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

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

Issue 18080016: [CSS Regions] Elements in a region should be assignable to a named flow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Implemented suggestions from esprehn Created 7 years, 6 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/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index e4b478f129e06776c5d9e69e3de002e8d3ec93b4..bb21ed59be9a2d37b25871d9b5fae26bccac0963 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -2331,6 +2331,19 @@ bool Element::isUnresolvedCustomElement()
return isCustomElement() && document()->registry()->isUnresolved(this);
}
+void Element::setIsInsideRegion(bool value)
+{
+ if (value == isInsideRegion())
+ return;
+
+ ensureElementRareData()->setIsInsideRegion(value);
+}
+
+bool Element::isInsideRegion() const
+{
+ return hasRareData() ? elementRareData()->isInsideRegion() : false;
+}
+
void Element::setRegionOversetState(RegionOversetState state)
{
ensureElementRareData()->setRegionOversetState(state);
@@ -2629,6 +2642,24 @@ RenderRegion* Element::renderRegion() const
return 0;
}
+bool Element::shouldMoveToFlowThread(RenderStyle* styleToUse) const
+{
+ ASSERT(styleToUse);
+
+#if ENABLE(FULLSCREEN_API)
+ if (FullScreenController::isActiveFullScreenElement(this))
+ return false;
+#endif
+
+ if (isInShadowTree())
+ return false;
+
+ if (styleToUse->flowThread().isEmpty())
+ return false;
+
+ return !this->isRegisteredWithNamedFlow(document()->renderView()->flowThreadController());
esprehn 2013/07/01 18:27:19 I don't think you need "this->"
+}
+
const AtomicString& Element::webkitRegionOverset() const
{
document()->updateLayoutIgnorePendingStylesheets();

Powered by Google App Engine
This is Rietveld 408576698