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

Unified Diff: Source/core/layout/LayoutObject.cpp

Issue 1306993002: Cleanup friends of LayoutObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/layout/LayoutObject.h ('k') | Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index fb0062c7711f8310c7700117e88d6e360ffe14e5..54d3bf27b3a6b1f4901c96a29e0b556c00e47e57 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -361,6 +361,14 @@ void LayoutObject::removeChild(LayoutObject* oldChild)
children->removeChildNode(this, oldChild);
}
+void LayoutObject::setDangerousOneWayParent(LayoutObject* parent)
+{
+ ASSERT(!previousSibling());
+ ASSERT(!nextSibling());
+ ASSERT(!parent || !m_parent);
+ setParent(parent);
+}
+
void LayoutObject::registerSubtreeChangeListenerOnDescendants(bool value)
{
// If we're set to the same value then we're done as that means it's
@@ -1762,13 +1770,13 @@ void LayoutObject::firstLineStyleDidChange(const ComputedStyle& oldStyle, const
void LayoutObject::markContainingBlocksForOverflowRecalc()
{
for (LayoutBlock* container = containingBlock(); container && !container->childNeedsOverflowRecalcAfterStyleChange(); container = container->containingBlock())
- container->setChildNeedsOverflowRecalcAfterStyleChange(true);
+ container->setChildNeedsOverflowRecalcAfterStyleChange();
}
void LayoutObject::setNeedsOverflowRecalcAfterStyleChange()
{
bool neededRecalc = needsOverflowRecalcAfterStyleChange();
- setSelfNeedsOverflowRecalcAfterStyleChange(true);
+ setSelfNeedsOverflowRecalcAfterStyleChange();
if (!neededRecalc)
markContainingBlocksForOverflowRecalc();
}
« no previous file with comments | « Source/core/layout/LayoutObject.h ('k') | Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698