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

Unified Diff: third_party/WebKit/WebCore/rendering/RenderObject.cpp

Issue 20076: WebKit merge 40500:40539 [WebKit side] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 11 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/WebCore/rendering/RenderObject.cpp
===================================================================
--- third_party/WebKit/WebCore/rendering/RenderObject.cpp (revision 9118)
+++ third_party/WebKit/WebCore/rendering/RenderObject.cpp (working copy)
@@ -234,32 +234,11 @@
ASSERT_NOT_REACHED();
}
-RenderObject* RenderObject::removeChildNode(RenderObject*, bool)
-{
- ASSERT_NOT_REACHED();
- return 0;
-}
-
void RenderObject::removeChild(RenderObject*)
{
ASSERT_NOT_REACHED();
}
-void RenderObject::moveChildNode(RenderObject*)
-{
- ASSERT_NOT_REACHED();
-}
-
-void RenderObject::appendChildNode(RenderObject*, bool)
-{
- ASSERT_NOT_REACHED();
-}
-
-void RenderObject::insertChildNode(RenderObject*, RenderObject*, bool)
-{
- ASSERT_NOT_REACHED();
-}
-
RenderObject* RenderObject::nextInPreOrder() const
{
if (RenderObject* o = firstChild())
@@ -1880,12 +1859,13 @@
setInline(style()->isDisplayInlineType());
if (isInline() != parent()->childrenInline()) {
if (!isInline())
- static_cast<RenderBox*>(parent())->childBecameNonInline(this);
+ toRenderBox(parent())->childBecameNonInline(this);
else {
// An anonymous block must be made to wrap this inline.
- RenderBlock* box = createAnonymousBlock();
- parent()->insertChildNode(box, this);
- box->appendChildNode(parent()->removeChildNode(this));
+ RenderBlock* block = createAnonymousBlock();
+ RenderObjectChildList* childlist = parent()->virtualChildren();
+ childlist->insertChildNode(parent(), block, this);
+ block->children()->appendChildNode(block, childlist->removeChildNode(parent(), this));
}
}
}
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderObject.h ('k') | third_party/WebKit/WebCore/rendering/RenderObjectChildList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698