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

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

Issue 1124993002: Cleanup: Only need one bit (not two) to express flow thread state. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 353
354 LayoutBoxModelObject::addChild(newChild, beforeChild); 354 LayoutBoxModelObject::addChild(newChild, beforeChild);
355 355
356 newChild->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutIn validationReason::ChildChanged); 356 newChild->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutIn validationReason::ChildChanged);
357 } 357 }
358 358
359 LayoutInline* LayoutInline::clone() const 359 LayoutInline* LayoutInline::clone() const
360 { 360 {
361 LayoutInline* cloneInline = new LayoutInline(node()); 361 LayoutInline* cloneInline = new LayoutInline(node());
362 cloneInline->setStyle(mutableStyle()); 362 cloneInline->setStyle(mutableStyle());
363 cloneInline->setFlowThreadState(flowThreadState()); 363 cloneInline->setIsInsideFlowThread(isInsideFlowThread());
364 return cloneInline; 364 return cloneInline;
365 } 365 }
366 366
367 void LayoutInline::moveChildrenToIgnoringContinuation(LayoutInline* to, LayoutOb ject* startChild) 367 void LayoutInline::moveChildrenToIgnoringContinuation(LayoutInline* to, LayoutOb ject* startChild)
368 { 368 {
369 LayoutObject* child = startChild; 369 LayoutObject* child = startChild;
370 while (child) { 370 while (child) {
371 LayoutObject* currentChild = child; 371 LayoutObject* currentChild = child;
372 child = currentChild->nextSibling(); 372 child = currentChild->nextSibling();
373 to->addChildIgnoringContinuation(children()->removeChildNode(this, curre ntChild), nullptr); 373 to->addChildIgnoringContinuation(children()->removeChildNode(this, curre ntChild), nullptr);
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 } 1449 }
1450 1450
1451 void LayoutInline::invalidateDisplayItemClients(const LayoutBoxModelObject& pain tInvalidationContainer) const 1451 void LayoutInline::invalidateDisplayItemClients(const LayoutBoxModelObject& pain tInvalidationContainer) const
1452 { 1452 {
1453 LayoutBoxModelObject::invalidateDisplayItemClients(paintInvalidationContaine r); 1453 LayoutBoxModelObject::invalidateDisplayItemClients(paintInvalidationContaine r);
1454 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox()) 1454 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox())
1455 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box); 1455 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box);
1456 } 1456 }
1457 1457
1458 } // namespace blink 1458 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698