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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 1967823002: Only LayoutInline needs to implement addChildIgnoringContinuation(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase master Created 4 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
Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index d3b7dcef13f06ce0265e423d59454d24704d0fc4..8869f4720bbc3eb1f006565d2c43b933c94bda48 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -377,7 +377,7 @@ bool LayoutBlock::allowsOverflowClip() const
return node() != document().viewportDefiningElement();
}
-void LayoutBlock::addChildIgnoringContinuation(LayoutObject* newChild, LayoutObject* beforeChild)
+void LayoutBlock::addChild(LayoutObject* newChild, LayoutObject* beforeChild)
{
if (beforeChild && beforeChild->parent() != this) {
LayoutObject* beforeChildContainer = beforeChild->parent();
@@ -465,11 +465,6 @@ void LayoutBlock::addChildIgnoringContinuation(LayoutObject* newChild, LayoutObj
// this object may be dead here
}
-void LayoutBlock::addChild(LayoutObject* newChild, LayoutObject* beforeChild)
-{
- addChildIgnoringContinuation(newChild, beforeChild);
-}
-
static void getInlineRun(LayoutObject* start, LayoutObject* boundary,
LayoutObject*& inlineRunStart,
LayoutObject*& inlineRunEnd)
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | third_party/WebKit/Source/core/layout/LayoutTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698