Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Unified Diff: Source/core/css/CSSParser.cpp

Issue 14324009: Add support for disabling CSS Properties at runtime (Closed) Base URL: http://src.chromium.org/blink/trunk/Source/
Patch Set: Updated per Mitica's comments Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/css/CSSParser.cpp
diff --git a/Source/core/css/CSSParser.cpp b/Source/core/css/CSSParser.cpp
index 3b269bb78a06a5596f777a6141d1603c7a505767..ece90f6ad1716a6edb55f1902c5c1b74a1fdb33e 100644
--- a/Source/core/css/CSSParser.cpp
+++ b/Source/core/css/CSSParser.cpp
@@ -1284,6 +1284,8 @@ bool CSSParser::parseValue(StylePropertySet* declaration, CSSPropertyID property
bool CSSParser::parseValue(StylePropertySet* declaration, CSSPropertyID propertyID, const String& string, bool important, StyleSheetContents* contextStyleSheet)
{
+ // FIXME: Check RuntimeCSSEnabled::isCSSPropertyEnabled and isCSSValueEnabled.
+
setStyleSheet(contextStyleSheet);
setupParser("@-internal-value{", string, "} ");

Powered by Google App Engine
This is Rietveld 408576698