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. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. |
7 * All rights reserved. | 7 * All rights reserved. |
8 * Copyright (C) 2009 Google Inc. All rights reserved. | 8 * Copyright (C) 2009 Google Inc. All rights reserved. |
9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
(...skipping 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1629 ? object->parent() | 1629 ? object->parent() |
1630 : object->containingBlock(); | 1630 : object->containingBlock(); |
1631 if (object) | 1631 if (object) |
1632 object->setChildNeedsOverflowRecalcAfterStyleChange(); | 1632 object->setChildNeedsOverflowRecalcAfterStyleChange(); |
1633 } while (object); | 1633 } while (object); |
1634 } | 1634 } |
1635 | 1635 |
1636 void LayoutObject::setNeedsOverflowRecalcAfterStyleChange() { | 1636 void LayoutObject::setNeedsOverflowRecalcAfterStyleChange() { |
1637 bool neededRecalc = needsOverflowRecalcAfterStyleChange(); | 1637 bool neededRecalc = needsOverflowRecalcAfterStyleChange(); |
1638 setSelfNeedsOverflowRecalcAfterStyleChange(); | 1638 setSelfNeedsOverflowRecalcAfterStyleChange(); |
1639 setMayNeedPaintInvalidation(); | |
1640 if (!neededRecalc) | 1639 if (!neededRecalc) |
1641 markAncestorsForOverflowRecalcIfNeeded(); | 1640 markAncestorsForOverflowRecalcIfNeeded(); |
1642 } | 1641 } |
1643 | 1642 |
1644 DISABLE_CFI_PERF | 1643 DISABLE_CFI_PERF |
1645 void LayoutObject::setStyle(PassRefPtr<ComputedStyle> style) { | 1644 void LayoutObject::setStyle(PassRefPtr<ComputedStyle> style) { |
1646 ASSERT(style); | 1645 ASSERT(style); |
1647 | 1646 |
1648 if (m_style == style) { | 1647 if (m_style == style) { |
1649 // We need to run through adjustStyleDifference() for iframes, plugins, and | 1648 // We need to run through adjustStyleDifference() for iframes, plugins, and |
(...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3654 const blink::LayoutObject* root = object1; | 3653 const blink::LayoutObject* root = object1; |
3655 while (root->parent()) | 3654 while (root->parent()) |
3656 root = root->parent(); | 3655 root = root->parent(); |
3657 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3656 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3658 } else { | 3657 } else { |
3659 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3658 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
3660 } | 3659 } |
3661 } | 3660 } |
3662 | 3661 |
3663 #endif | 3662 #endif |
OLD | NEW |