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

Unified Diff: Source/core/dom/Document.cpp

Issue 14178009: Remove CSS_REGIONS compile flag from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use RuntimeEnabledFeatures::cssRegionsEnabled all over the places. Guard WEBKIT_REGION_RULE at runt… 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/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index e5fb9d1ba1cad97415af88843fd382318160bd0d..696b70ac77128791158bfbd210d9542352cb237c 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1087,11 +1087,6 @@ bool Document::cssStickyPositionEnabled() const
return settings() && settings()->cssStickyPositionEnabled();
}
-bool Document::cssRegionsEnabled() const
-{
- return RuntimeEnabledFeatures::cssRegionsEnabled();
-}
-
bool Document::cssCompositingEnabled() const
{
return RuntimeEnabledFeatures::cssCompositingEnabled();
@@ -1102,11 +1097,9 @@ bool Document::cssGridLayoutEnabled() const
return settings() && settings()->cssGridLayoutEnabled();
}
-#if ENABLE(CSS_REGIONS)
-
PassRefPtr<DOMNamedFlowCollection> Document::webkitGetNamedFlows()
{
- if (!cssRegionsEnabled() || !renderer())
+ if (!RuntimeEnabledFeatures::cssRegionsEnabled() || !renderer())
return 0;
updateStyleIfNeeded();
@@ -1114,8 +1107,6 @@ PassRefPtr<DOMNamedFlowCollection> Document::webkitGetNamedFlows()
return namedFlows()->createCSSOMSnapshot();
}
-#endif
-
NamedFlowCollection* Document::namedFlows()
{
if (!m_namedFlows)

Powered by Google App Engine
This is Rietveld 408576698