⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 118653 in webkit


Ignore:
Timestamp:
May 28, 2012, 1:17:51 AM (14 years ago)
Author:
morrita@google.com
Message:

https://bugs.webkit.org/show_bug.cgi?id=87609
[Chromium] FrameLoaderClient::allowStyleScoped() should be implemented interms of WebPermissionClient

Reviewed by Kent Tamura.

Added allowStyleScoped() implementation which is essentially same as shadowDOMAllowed().

  • src/FrameLoaderClientImpl.cpp:
  • src/FrameLoaderClientImpl.h:

(FrameLoaderClientImpl):

Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r118605 r118653  
     12012-05-28  MORITA Hajime  <morrita@google.com>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=87609
     4        [Chromium] FrameLoaderClient::allowStyleScoped() should be implemented interms of WebPermissionClient
     5
     6        Reviewed by Kent Tamura.
     7
     8        Added allowStyleScoped() implementation which is essentially same as shadowDOMAllowed().
     9
     10        * src/FrameLoaderClientImpl.cpp:
     11        * src/FrameLoaderClientImpl.h:
     12        (FrameLoaderClientImpl):
     13
    1142012-05-25  Ryosuke Niwa  <rniwa@webkit.org>
    215
  • trunk/Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp

    r118097 r118653  
    249249}
    250250
     251bool FrameLoaderClientImpl::allowStyleScoped(bool enabledAsRuntimeFeature) OVERRIDE
     252{
     253    WebViewImpl* webview = m_webFrame->viewImpl();
     254    if (webview && webview->permissionClient())
     255        return webview->permissionClient()->allowWebComponents(m_webFrame, enabledAsRuntimeFeature);
     256
     257    return enabledAsRuntimeFeature;
     258}
     259
    251260void FrameLoaderClientImpl::didNotAllowScript()
    252261{
  • trunk/Source/WebKit/chromium/src/FrameLoaderClientImpl.h

    r118097 r118653  
    201201    virtual bool allowRunningInsecureContent(bool enabledPerSettings, WebCore::SecurityOrigin*, const WebCore::KURL&);
    202202    virtual bool shadowDOMAllowed(bool enabledAsRuntimeFeature) OVERRIDE;
     203    virtual bool allowStyleScoped(bool enabledAsRuntimeFeature) OVERRIDE;
    203204    virtual void didNotAllowScript();
    204205    virtual void didNotAllowPlugins();
Note: See TracChangeset for help on using the changeset viewer.