Changeset 124824 in webkit


Ignore:
Timestamp:
Aug 6, 2012 5:47:52 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[CSS Exclusions] Add a command-line flag to enable / disable exclusions
https://bugs.webkit.org/show_bug.cgi?id=91420

Patch by Bear Travis <betravis@adobe.com> on 2012-08-06
Reviewed by Dimitri Glazkov.

Adding the interface code to expose the css exclusions runtime flag to
Chromium.

  • public/WebRuntimeFeatures.h:

(WebRuntimeFeatures): Adding getters/setters for cssExclusions

  • src/WebRuntimeFeatures.cpp:

(WebKit::WebRuntimeFeatures::enableCSSExclusions):
(WebKit):
(WebKit::WebRuntimeFeatures::isCSSExclusionsEnabled):

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

Legend:

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

    r124813 r124824  
     12012-08-06  Bear Travis  <betravis@adobe.com>
     2
     3        [CSS Exclusions] Add a command-line flag to enable / disable exclusions
     4        https://bugs.webkit.org/show_bug.cgi?id=91420
     5
     6        Reviewed by Dimitri Glazkov.
     7
     8        Adding the interface code to expose the css exclusions runtime flag to
     9        Chromium.
     10
     11        * public/WebRuntimeFeatures.h:
     12        (WebRuntimeFeatures): Adding getters/setters for cssExclusions
     13        * src/WebRuntimeFeatures.cpp:
     14        (WebKit::WebRuntimeFeatures::enableCSSExclusions):
     15        (WebKit):
     16        (WebKit::WebRuntimeFeatures::isCSSExclusionsEnabled):
     17
    1182012-08-06  Adam Barth  <abarth@webkit.org>
    219
  • trunk/Source/WebKit/chromium/public/WebRuntimeFeatures.h

    r123826 r124824  
    158158    WEBKIT_EXPORT static bool isDialogElementEnabled();
    159159
     160    WEBKIT_EXPORT static void enableCSSExclusions(bool);
     161    WEBKIT_EXPORT static bool isCSSExclusionsEnabled();
     162
    160163private:
    161164    WebRuntimeFeatures();
  • trunk/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

    r123937 r124824  
    640640}
    641641
     642void WebRuntimeFeatures::enableCSSExclusions(bool enable)
     643{
     644    RuntimeEnabledFeatures::setCSSExclusionsEnabled(enable);
     645}
     646
     647bool WebRuntimeFeatures::isCSSExclusionsEnabled()
     648{
     649    return RuntimeEnabledFeatures::cssExclusionsEnabled();
     650}
    642651
    643652} // namespace WebKit
Note: See TracChangeset for help on using the changeset viewer.