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

Unified Diff: Source/core/dom/Element.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/Element.h ('k') | Source/core/dom/Element.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index f18ac2b05375b96c045b293df9af459255907fc3..1119464320b236836434168fc67878295d4d3c3f 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -1289,7 +1289,7 @@ void Element::attach()
void Element::unregisterNamedFlowContentNode()
{
- if (document()->cssRegionsEnabled() && inNamedFlow() && document()->renderView())
+ if (RuntimeEnabledFeatures::cssRegionsEnabled() && inNamedFlow() && document()->renderView())
document()->renderView()->flowThreadController()->unregisterNamedFlowContentNode(this);
}
@@ -2528,14 +2528,12 @@ RenderRegion* Element::renderRegion() const
return 0;
}
-#if ENABLE(CSS_REGIONS)
-
const AtomicString& Element::webkitRegionOverset() const
{
document()->updateLayoutIgnorePendingStylesheets();
DEFINE_STATIC_LOCAL(AtomicString, undefinedState, ("undefined", AtomicString::ConstructFromLiteral));
- if (!document()->cssRegionsEnabled() || !renderRegion())
+ if (!RuntimeEnabledFeatures::cssRegionsEnabled() || !renderRegion())
return undefinedState;
switch (renderRegion()->regionState()) {
@@ -2564,7 +2562,7 @@ Vector<RefPtr<Range> > Element::webkitGetRegionFlowRanges() const
document()->updateLayoutIgnorePendingStylesheets();
Vector<RefPtr<Range> > rangeObjects;
- if (document()->cssRegionsEnabled() && renderer() && renderer()->isRenderRegion()) {
+ if (RuntimeEnabledFeatures::cssRegionsEnabled() && renderer() && renderer()->isRenderRegion()) {
RenderRegion* region = toRenderRegion(renderer());
if (region->isValid())
region->getRanges(rangeObjects);
@@ -2573,8 +2571,6 @@ Vector<RefPtr<Range> > Element::webkitGetRegionFlowRanges() const
return rangeObjects;
}
-#endif
-
#ifndef NDEBUG
bool Element::fastAttributeLookupAllowed(const QualifiedName& name) const
{
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/Element.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698