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(); |