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

Side by Side Diff: Source/core/rendering/RenderObject.cpp

Issue 561303002: Style changes to visual overflow do not require a layout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 2 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 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 setNeedsLayoutAndPrefWidthsRecalc(); 1697 setNeedsLayoutAndPrefWidthsRecalc();
1698 else if (updatedDiff.needsPositionedMovementLayout()) 1698 else if (updatedDiff.needsPositionedMovementLayout())
1699 setNeedsPositionedMovementLayout(); 1699 setNeedsPositionedMovementLayout();
1700 } 1700 }
1701 1701
1702 if (diff.transformChanged() && !needsLayout()) { 1702 if (diff.transformChanged() && !needsLayout()) {
1703 if (RenderBlock* container = containingBlock()) 1703 if (RenderBlock* container = containingBlock())
1704 container->setNeedsOverflowRecalcAfterStyleChange(); 1704 container->setNeedsOverflowRecalcAfterStyleChange();
1705 } 1705 }
1706 1706
1707 if (diff.visualOverflowChanged() && !needsLayout() && isRenderBlock())
1708 setNeedsOverflowRecalcAfterStyleChange();
1709
1707 if (updatedDiff.needsPaintInvalidationLayer()) 1710 if (updatedDiff.needsPaintInvalidationLayer())
1708 toRenderLayerModelObject(this)->layer()->setShouldDoFullPaintInvalidatio nIncludingNonCompositingDescendants(); 1711 toRenderLayerModelObject(this)->layer()->setShouldDoFullPaintInvalidatio nIncludingNonCompositingDescendants();
1709 else if (diff.needsPaintInvalidationObject() || updatedDiff.needsPaintInvali dationObject()) 1712 else if (diff.needsPaintInvalidationObject() || updatedDiff.needsPaintInvali dationObject())
1710 setShouldDoFullPaintInvalidation(); 1713 setShouldDoFullPaintInvalidation();
1711 } 1714 }
1712 1715
1713 static inline bool rendererHasBackground(const RenderObject* renderer) 1716 static inline bool rendererHasBackground(const RenderObject* renderer)
1714 { 1717 {
1715 return renderer && renderer->hasBackground(); 1718 return renderer && renderer->hasBackground();
1716 } 1719 }
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
3139 { 3142 {
3140 if (object1) { 3143 if (object1) {
3141 const blink::RenderObject* root = object1; 3144 const blink::RenderObject* root = object1;
3142 while (root->parent()) 3145 while (root->parent())
3143 root = root->parent(); 3146 root = root->parent();
3144 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3147 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3145 } 3148 }
3146 } 3149 }
3147 3150
3148 #endif 3151 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698