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

Side by Side Diff: sky/engine/core/rendering/RenderInline.cpp

Issue 696493003: Remove createsAnonymousWrapper. It's dead code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 void RenderInline::splitFlow(RenderObject* beforeChild, RenderBlock* newBlockBox , 442 void RenderInline::splitFlow(RenderObject* beforeChild, RenderBlock* newBlockBox ,
443 RenderObject* newChild, RenderBoxModelObject* oldCo nt) 443 RenderObject* newChild, RenderBoxModelObject* oldCo nt)
444 { 444 {
445 RenderBlock* pre = 0; 445 RenderBlock* pre = 0;
446 RenderBlock* block = containingBlock(); 446 RenderBlock* block = containingBlock();
447 447
448 // Delete our line boxes before we do the inline split into continuations. 448 // Delete our line boxes before we do the inline split into continuations.
449 block->deleteLineBoxTree(); 449 block->deleteLineBoxTree();
450 450
451 bool madeNewBeforeBlock = false; 451 bool madeNewBeforeBlock = false;
452 if (block->isAnonymousBlock() && (!block->parent() || !block->parent()->crea tesAnonymousWrapper())) { 452 if (block->isAnonymousBlock()) {
453 // We can reuse this block and make it the preBlock of the next continua tion. 453 // We can reuse this block and make it the preBlock of the next continua tion.
454 pre = block; 454 pre = block;
455 pre->removePositionedObjects(0); 455 pre->removePositionedObjects(0);
456 block = block->containingBlock(); 456 block = block->containingBlock();
457 } else { 457 } else {
458 // No anonymous block available for use. Make one. 458 // No anonymous block available for use. Make one.
459 pre = block->createAnonymousBlock(); 459 pre = block->createAnonymousBlock();
460 madeNewBeforeBlock = true; 460 madeNewBeforeBlock = true;
461 } 461 }
462 462
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 pixelSnappedBox.maxY(), 1499 pixelSnappedBox.maxY(),
1500 pixelSnappedBox.maxX() + outlineWidth, 1500 pixelSnappedBox.maxX() + outlineWidth,
1501 pixelSnappedBox.maxY() + outlineWidth, 1501 pixelSnappedBox.maxY() + outlineWidth,
1502 BSBottom, outlineColor, outlineStyle, 1502 BSBottom, outlineColor, outlineStyle,
1503 outlineWidth, 1503 outlineWidth,
1504 outlineWidth, 1504 outlineWidth,
1505 antialias); 1505 antialias);
1506 } 1506 }
1507 1507
1508 } // namespace blink 1508 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698