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

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

Issue 1124993002: Cleanup: Only need one bit (not two) to express flow thread state. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | « no previous file | Source/core/layout/LayoutBlock.cpp » ('j') | Source/core/layout/LayoutObject.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/LayoutTreeBuilder.cpp
diff --git a/Source/core/dom/LayoutTreeBuilder.cpp b/Source/core/dom/LayoutTreeBuilder.cpp
index eb6543a89d12274277ad7d697381d072b13aadbb..de0fe15439396e63bebb6cd2ca2039aff0d91122 100644
--- a/Source/core/dom/LayoutTreeBuilder.cpp
+++ b/Source/core/dom/LayoutTreeBuilder.cpp
@@ -132,7 +132,7 @@ void LayoutTreeBuilderForElement::createLayoutObject()
// Make sure the LayoutObject already knows it is going to be added to a LayoutFlowThread before we set the style
// for the first time. Otherwise code using inLayoutFlowThread() in the styleWillChange and styleDidChange will fail.
- newLayoutObject->setFlowThreadState(parentLayoutObject->flowThreadState());
+ newLayoutObject->setIsInsideFlowThread(parentLayoutObject->isInsideFlowThread());
LayoutObject* nextLayoutObject = this->nextLayoutObject();
m_node->setLayoutObject(newLayoutObject);
@@ -163,7 +163,7 @@ void LayoutTreeBuilderForText::createLayoutObject()
// Make sure the LayoutObject already knows it is going to be added to a LayoutFlowThread before we set the style
// for the first time. Otherwise code using inLayoutFlowThread() in the styleWillChange and styleDidChange will fail.
- newLayoutObject->setFlowThreadState(parentLayoutObject->flowThreadState());
+ newLayoutObject->setIsInsideFlowThread(parentLayoutObject->isInsideFlowThread());
LayoutObject* nextLayoutObject = this->nextLayoutObject();
m_node->setLayoutObject(newLayoutObject);
« no previous file with comments | « no previous file | Source/core/layout/LayoutBlock.cpp » ('j') | Source/core/layout/LayoutObject.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698