X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fplugin-loading%2Fplugin_iframe_support.cpp;h=2e1c8c6d39b329d9f5acdeed74400ab64700b0d7;hb=fde81536bf4177b0ca88091eddf7afbf23ffb4bf;hp=311d847307a936002e83590b559087f9d71145fb;hpb=9922aaf128e9e5ecee4f80fe7bd717bd903ec688;p=platform%2Fframework%2Fweb%2Fwrt-plugins-common.git diff --git a/src/plugin-loading/plugin_iframe_support.cpp b/src/plugin-loading/plugin_iframe_support.cpp index 311d847..2e1c8c6 100644 --- a/src/plugin-loading/plugin_iframe_support.cpp +++ b/src/plugin-loading/plugin_iframe_support.cpp @@ -30,28 +30,29 @@ void IframesSupport::registerDeclaration( LogDebug("Registration iframes-supported plugins " << declaration->getName()); - if(declaration->getParentName().find('.') != std::string::npos) - { + if (declaration->getParentName().find('.') != std::string::npos) { LogWarning("The object will not be loaded to iframes"); return; } m_iframesObjects.push_back(declaration); } -void IframesSupport::registerIframe(const JSObjectPtr& iframe){ +void IframesSupport::registerIframe(const JSObjectPtr& iframe) +{ LogDebug("LoadedIframes size: " << m_loadedIframes.size() ); m_loadedIframes.insert(iframe); } -void IframesSupport::unregisterIframe(const JSObjectPtr& iframe){ +void IframesSupport::unregisterIframe(const JSObjectPtr& iframe) +{ LogDebug("LoadedIframes size: " << m_loadedIframes.size() ); auto it_loaded = std::find_if(m_loadedIframes.begin(), - m_loadedIframes.end(), - std::bind2nd(EqualToJSObjectPtr(), iframe)); + m_loadedIframes.end(), + std::bind2nd(EqualToJSObjectPtr(), iframe)); //object not found, so thats the new iframe - if(it_loaded == m_loadedIframes.end()){ + if (it_loaded == m_loadedIframes.end()) { LogDebug("Nothing to unregister"); return; }