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

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: New version 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
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 66f0cf4d37d7d4640ffcd7f51710b07c0cedc3af..19644ce4102d7ecd46e2777c36551dcc019daeb4 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1098,11 +1098,6 @@ bool Document::cssStickyPositionEnabled() const
return settings() && settings()->cssStickyPositionEnabled();
}
-bool Document::cssRegionsEnabled() const
-{
- return RuntimeEnabledFeatures::cssRegionsEnabled();
-}
-
bool Document::cssCompositingEnabled() const
{
return RuntimeEnabledFeatures::cssCompositingEnabled();
@@ -1113,11 +1108,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();
@@ -1125,8 +1118,6 @@ PassRefPtr<DOMNamedFlowCollection> Document::webkitGetNamedFlows()
return namedFlows()->createCSSOMSnapshot();
}
-#endif
-
NamedFlowCollection* Document::namedFlows()
{
if (!m_namedFlows)
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698