OLD | NEW |
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 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1731 setNeedsLayoutAndPrefWidthsRecalc(); | 1731 setNeedsLayoutAndPrefWidthsRecalc(); |
1732 else if (updatedDiff.needsPositionedMovementLayout()) | 1732 else if (updatedDiff.needsPositionedMovementLayout()) |
1733 setNeedsPositionedMovementLayout(); | 1733 setNeedsPositionedMovementLayout(); |
1734 } | 1734 } |
1735 | 1735 |
1736 if (diff.transformChanged() && !needsLayout()) { | 1736 if (diff.transformChanged() && !needsLayout()) { |
1737 if (RenderBlock* container = containingBlock()) | 1737 if (RenderBlock* container = containingBlock()) |
1738 container->setNeedsOverflowRecalcAfterStyleChange(); | 1738 container->setNeedsOverflowRecalcAfterStyleChange(); |
1739 } | 1739 } |
1740 | 1740 |
| 1741 if (diff.visualOverflowChanged() && !needsLayout() && isRenderBlock()) |
| 1742 setNeedsOverflowRecalcAfterStyleChange(); |
| 1743 |
1741 if (updatedDiff.needsPaintInvalidationLayer()) | 1744 if (updatedDiff.needsPaintInvalidationLayer()) |
1742 toRenderLayerModelObject(this)->layer()->setShouldDoFullPaintInvalidatio
nIncludingNonCompositingDescendants(); | 1745 toRenderLayerModelObject(this)->layer()->setShouldDoFullPaintInvalidatio
nIncludingNonCompositingDescendants(); |
1743 else if (diff.needsPaintInvalidationObject() || updatedDiff.needsPaintInvali
dationObject()) | 1746 else if (diff.needsPaintInvalidationObject() || updatedDiff.needsPaintInvali
dationObject()) |
1744 setShouldDoFullPaintInvalidation(true); | 1747 setShouldDoFullPaintInvalidation(true); |
1745 } | 1748 } |
1746 | 1749 |
1747 static inline bool rendererHasBackground(const RenderObject* renderer) | 1750 static inline bool rendererHasBackground(const RenderObject* renderer) |
1748 { | 1751 { |
1749 return renderer && renderer->hasBackground(); | 1752 return renderer && renderer->hasBackground(); |
1750 } | 1753 } |
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3183 { | 3186 { |
3184 if (object1) { | 3187 if (object1) { |
3185 const blink::RenderObject* root = object1; | 3188 const blink::RenderObject* root = object1; |
3186 while (root->parent()) | 3189 while (root->parent()) |
3187 root = root->parent(); | 3190 root = root->parent(); |
3188 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3191 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3189 } | 3192 } |
3190 } | 3193 } |
3191 | 3194 |
3192 #endif | 3195 #endif |
OLD | NEW |