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

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

Issue 24430002: Rename attach and detach to createRenderTree/destroyRenderTree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/NodeRenderingTraversal.cpp
diff --git a/Source/core/dom/NodeRenderingTraversal.cpp b/Source/core/dom/NodeRenderingTraversal.cpp
index 7353a13d10a3a7d71acef437de72df0fcb11f554..7d8408a432d87c3a2e2c5b3b1d45832b86c23016 100644
--- a/Source/core/dom/NodeRenderingTraversal.cpp
+++ b/Source/core/dom/NodeRenderingTraversal.cpp
@@ -38,18 +38,18 @@ void ParentDetails::didTraverseInsertionPoint(InsertionPoint* insertionPoint)
{
if (!m_insertionPoint) {
m_insertionPoint = insertionPoint;
- m_resetStyleInheritance = m_resetStyleInheritance || insertionPoint->resetStyleInheritance();
+ m_resetStyleInheritance = m_resetStyleInheritance || insertionPoint->resetStyleInheritance();
}
}
void ParentDetails::didTraverseShadowRoot(const ShadowRoot* root)
{
- m_resetStyleInheritance = m_resetStyleInheritance || root->resetStyleInheritance();
+ m_resetStyleInheritance = m_resetStyleInheritance || root->resetStyleInheritance();
}
ContainerNode* parent(const Node* node, ParentDetails* details)
{
- // FIXME: Once everything lazy attaches we should assert that we don't need a distribution recalc here.
+ // FIXME: We should probably ASSERT(!node->document().childNeedsDistributionRecalc()) here.
ComposedTreeWalker walker(node, ComposedTreeWalker::CanStartFromShadowBoundary);
ContainerNode* found = toContainerNode(walker.traverseParent(walker.get(), details));
return details->outOfComposition() ? 0 : found;

Powered by Google App Engine
This is Rietveld 408576698