Title: [124824] trunk/Source/WebKit/chromium
Revision
124824
Author
[email protected]
Date
2012-08-06 17:47:52 -0700 (Mon, 06 Aug 2012)

Log 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 <[email protected]> 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):

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (124823 => 124824)


--- trunk/Source/WebKit/chromium/ChangeLog	2012-08-07 00:29:14 UTC (rev 124823)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-08-07 00:47:52 UTC (rev 124824)
@@ -1,3 +1,20 @@
+2012-08-06  Bear Travis  <[email protected]>
+
+        [CSS Exclusions] Add a command-line flag to enable / disable exclusions
+        https://bugs.webkit.org/show_bug.cgi?id=91420
+
+        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):
+
 2012-08-06  Adam Barth  <[email protected]>
 
         [Chromium] WebTouchCandidatesInfo should be part of the Client API

Modified: trunk/Source/WebKit/chromium/public/WebRuntimeFeatures.h (124823 => 124824)


--- trunk/Source/WebKit/chromium/public/WebRuntimeFeatures.h	2012-08-07 00:29:14 UTC (rev 124823)
+++ trunk/Source/WebKit/chromium/public/WebRuntimeFeatures.h	2012-08-07 00:47:52 UTC (rev 124824)
@@ -157,6 +157,9 @@
     WEBKIT_EXPORT static void enableDialogElement(bool);
     WEBKIT_EXPORT static bool isDialogElementEnabled();
 
+    WEBKIT_EXPORT static void enableCSSExclusions(bool);
+    WEBKIT_EXPORT static bool isCSSExclusionsEnabled();
+
 private:
     WebRuntimeFeatures();
 };

Modified: trunk/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp (124823 => 124824)


--- trunk/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp	2012-08-07 00:29:14 UTC (rev 124823)
+++ trunk/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp	2012-08-07 00:47:52 UTC (rev 124824)
@@ -639,5 +639,14 @@
 #endif
 }
 
+void WebRuntimeFeatures::enableCSSExclusions(bool enable)
+{
+    RuntimeEnabledFeatures::setCSSExclusionsEnabled(enable);
+}
 
+bool WebRuntimeFeatures::isCSSExclusionsEnabled()
+{
+    return RuntimeEnabledFeatures::cssExclusionsEnabled();
+}
+
 } // namespace WebKit
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to