| 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 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1630 ? object->parent() | 1630 ? object->parent() |
| 1631 : object->containingBlock(); | 1631 : object->containingBlock(); |
| 1632 if (object) | 1632 if (object) |
| 1633 object->setChildNeedsOverflowRecalcAfterStyleChange(); | 1633 object->setChildNeedsOverflowRecalcAfterStyleChange(); |
| 1634 } while (object); | 1634 } while (object); |
| 1635 } | 1635 } |
| 1636 | 1636 |
| 1637 void LayoutObject::setNeedsOverflowRecalcAfterStyleChange() { | 1637 void LayoutObject::setNeedsOverflowRecalcAfterStyleChange() { |
| 1638 bool neededRecalc = needsOverflowRecalcAfterStyleChange(); | 1638 bool neededRecalc = needsOverflowRecalcAfterStyleChange(); |
| 1639 setSelfNeedsOverflowRecalcAfterStyleChange(); | 1639 setSelfNeedsOverflowRecalcAfterStyleChange(); |
| 1640 setMayNeedPaintInvalidation(); |
| 1640 if (!neededRecalc) | 1641 if (!neededRecalc) |
| 1641 markAncestorsForOverflowRecalcIfNeeded(); | 1642 markAncestorsForOverflowRecalcIfNeeded(); |
| 1642 } | 1643 } |
| 1643 | 1644 |
| 1644 DISABLE_CFI_PERF | 1645 DISABLE_CFI_PERF |
| 1645 void LayoutObject::setStyle(PassRefPtr<ComputedStyle> style) { | 1646 void LayoutObject::setStyle(PassRefPtr<ComputedStyle> style) { |
| 1646 ASSERT(style); | 1647 ASSERT(style); |
| 1647 | 1648 |
| 1648 if (m_style == style) { | 1649 if (m_style == style) { |
| 1649 // We need to run through adjustStyleDifference() for iframes, plugins, and | 1650 // We need to run through adjustStyleDifference() for iframes, plugins, and |
| (...skipping 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3674 const blink::LayoutObject* root = object1; | 3675 const blink::LayoutObject* root = object1; |
| 3675 while (root->parent()) | 3676 while (root->parent()) |
| 3676 root = root->parent(); | 3677 root = root->parent(); |
| 3677 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3678 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3678 } else { | 3679 } else { |
| 3679 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3680 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
| 3680 } | 3681 } |
| 3681 } | 3682 } |
| 3682 | 3683 |
| 3683 #endif | 3684 #endif |
| OLD | NEW |