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

Unified Diff: Source/core/page/RuntimeCSSEnabled.cpp

Issue 22849019: Unexpose -webkit-marquee-direction (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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
« no previous file with comments | « Source/core/html/HTMLMarqueeElement.cpp ('k') | Source/core/page/UseCounter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/RuntimeCSSEnabled.cpp
diff --git a/Source/core/page/RuntimeCSSEnabled.cpp b/Source/core/page/RuntimeCSSEnabled.cpp
index fa6a89ae2171fbb7009a4334b59eb7aafbfc75df..593be64e57a18e59a9b20d0a003d167dffd7e0c7 100644
--- a/Source/core/page/RuntimeCSSEnabled.cpp
+++ b/Source/core/page/RuntimeCSSEnabled.cpp
@@ -119,6 +119,11 @@ size_t indexForProperty(CSSPropertyID propertyId)
bool RuntimeCSSEnabled::isCSSPropertyEnabled(CSSPropertyID propertyId)
{
+ // Internal properties shouldn't be exposed to the web
+ // so they are considered to be always disabled.
+ if (isInternalProperty(propertyId))
+ return false;
+
return propertySwitches()[indexForProperty(propertyId)];
}
« no previous file with comments | « Source/core/html/HTMLMarqueeElement.cpp ('k') | Source/core/page/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698