| 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 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1845 | 1845 |
| 1846 // Ditto. | 1846 // Ditto. |
| 1847 if (needsOverflowRecalcAfterStyleChange() && oldStyle->position() != m_s
tyle->position()) | 1847 if (needsOverflowRecalcAfterStyleChange() && oldStyle->position() != m_s
tyle->position()) |
| 1848 markAncestorsForOverflowRecalcIfNeeded(); | 1848 markAncestorsForOverflowRecalcIfNeeded(); |
| 1849 | 1849 |
| 1850 setNeedsLayoutAndPrefWidthsRecalc(LayoutInvalidationReason::StyleChange)
; | 1850 setNeedsLayoutAndPrefWidthsRecalc(LayoutInvalidationReason::StyleChange)
; |
| 1851 } else if (diff.needsPositionedMovementLayout()) { | 1851 } else if (diff.needsPositionedMovementLayout()) { |
| 1852 setNeedsPositionedMovementLayout(); | 1852 setNeedsPositionedMovementLayout(); |
| 1853 } | 1853 } |
| 1854 | 1854 |
| 1855 if (diff.scrollAnchorDisablingPropertyChanged()) |
| 1856 setScrollAnchorDisablingStyleChanged(true); |
| 1857 |
| 1855 // Don't check for paint invalidation here; we need to wait until the layer
has been | 1858 // Don't check for paint invalidation here; we need to wait until the layer
has been |
| 1856 // updated by subclasses before we know if we have to invalidate paints (in
setStyle()). | 1859 // updated by subclasses before we know if we have to invalidate paints (in
setStyle()). |
| 1857 | 1860 |
| 1858 if (oldStyle && !areCursorsEqual(oldStyle, style())) { | 1861 if (oldStyle && !areCursorsEqual(oldStyle, style())) { |
| 1859 if (LocalFrame* frame = this->frame()) { | 1862 if (LocalFrame* frame = this->frame()) { |
| 1860 // Cursor update scheduling is done by the local root, which is the
main frame if there | 1863 // Cursor update scheduling is done by the local root, which is the
main frame if there |
| 1861 // are no RemoteFrame ancestors in the frame tree. Use of localFrame
Root() is | 1864 // are no RemoteFrame ancestors in the frame tree. Use of localFrame
Root() is |
| 1862 // discouraged but will change when cursor update scheduling is move
d from EventHandler | 1865 // discouraged but will change when cursor update scheduling is move
d from EventHandler |
| 1863 // to PageEventHandler. | 1866 // to PageEventHandler. |
| 1864 frame->localFrameRoot()->eventHandler().scheduleCursorUpdate(); | 1867 frame->localFrameRoot()->eventHandler().scheduleCursorUpdate(); |
| (...skipping 1603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3468 const blink::LayoutObject* root = object1; | 3471 const blink::LayoutObject* root = object1; |
| 3469 while (root->parent()) | 3472 while (root->parent()) |
| 3470 root = root->parent(); | 3473 root = root->parent(); |
| 3471 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3474 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3472 } else { | 3475 } else { |
| 3473 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3476 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
| 3474 } | 3477 } |
| 3475 } | 3478 } |
| 3476 | 3479 |
| 3477 #endif | 3480 #endif |
| OLD | NEW |