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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutInline.cpp

Issue 2470233009: WTF/std normalization: replace WTF::Vector::first() with ::front() (Closed)
Patch Set: rebase Created 4 years 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
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. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // *after* |current| and append them all to the |cloneInlineParent|. 463 // *after* |current| and append them all to the |cloneInlineParent|.
464 currentParent->moveChildrenToIgnoringContinuation(cloneInlineParent, 464 currentParent->moveChildrenToIgnoringContinuation(cloneInlineParent,
465 current->nextSibling()); 465 current->nextSibling());
466 466
467 currentParent = current; 467 currentParent = current;
468 cloneInlineParent = cloneInline; 468 cloneInlineParent = cloneInline;
469 } 469 }
470 470
471 // The last inline to clone is |this|, and the current |cloneInline| is cloned 471 // The last inline to clone is |this|, and the current |cloneInline| is cloned
472 // from |this|. 472 // from |this|.
473 ASSERT(this == inlinesToClone.first()); 473 ASSERT(this == inlinesToClone.front());
474 474
475 // Hook |cloneInline| up as the continuation of the middle block. 475 // Hook |cloneInline| up as the continuation of the middle block.
476 cloneInline->setContinuation(oldCont); 476 cloneInline->setContinuation(oldCont);
477 middleBlock->setContinuation(cloneInline); 477 middleBlock->setContinuation(cloneInline);
478 478
479 // Now take all of the children from |beforeChild| to the end and remove 479 // Now take all of the children from |beforeChild| to the end and remove
480 // them from |this| and place them in the clone. 480 // them from |this| and place them in the clone.
481 moveChildrenToIgnoringContinuation(cloneInline, beforeChild); 481 moveChildrenToIgnoringContinuation(cloneInline, beforeChild);
482 } 482 }
483 483
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason); 1512 paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason);
1513 } 1513 }
1514 1514
1515 // TODO(lunalu): Not to just dump 0, 0 as the x and y here 1515 // TODO(lunalu): Not to just dump 0, 0 as the x and y here
1516 LayoutRect LayoutInline::debugRect() const { 1516 LayoutRect LayoutInline::debugRect() const {
1517 IntRect linesBox = enclosingIntRect(linesBoundingBox()); 1517 IntRect linesBox = enclosingIntRect(linesBoundingBox());
1518 return LayoutRect(IntRect(0, 0, linesBox.width(), linesBox.height())); 1518 return LayoutRect(IntRect(0, 0, linesBox.width(), linesBox.height()));
1519 } 1519 }
1520 1520
1521 } // namespace blink 1521 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698