| 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) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 1803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1814 | 1814 |
| 1815 // As a result of the style recalculation, the currently hovered element mig
ht have been | 1815 // As a result of the style recalculation, the currently hovered element mig
ht have been |
| 1816 // detached (for example, by setting display:none in the :hover style), sche
dule another mouseMove event | 1816 // detached (for example, by setting display:none in the :hover style), sche
dule another mouseMove event |
| 1817 // to check if any other elements ended up under the mouse pointer due to re
-layout. | 1817 // to check if any other elements ended up under the mouse pointer due to re
-layout. |
| 1818 if (hoverNode() && !hoverNode()->renderer() && frame()) | 1818 if (hoverNode() && !hoverNode()->renderer() && frame()) |
| 1819 frame()->eventHandler().dispatchFakeMouseMoveEventSoon(); | 1819 frame()->eventHandler().dispatchFakeMouseMoveEventSoon(); |
| 1820 | 1820 |
| 1821 if (m_focusedElement && !m_focusedElement->isFocusable()) | 1821 if (m_focusedElement && !m_focusedElement->isFocusable()) |
| 1822 clearFocusedElementSoon(); | 1822 clearFocusedElementSoon(); |
| 1823 | 1823 |
| 1824 DocumentAnimations::serviceAfterStyleRecalc(*this); | |
| 1825 | |
| 1826 InspectorInstrumentation::didRecalculateStyle(cookie); | 1824 InspectorInstrumentation::didRecalculateStyle(cookie); |
| 1827 } | 1825 } |
| 1828 | 1826 |
| 1829 void Document::updateStyleForNodeIfNeeded(Node* node) | 1827 void Document::updateStyleForNodeIfNeeded(Node* node) |
| 1830 { | 1828 { |
| 1831 if (!shouldCallRecalcStyleForDocument()) | 1829 if (!shouldCallRecalcStyleForDocument()) |
| 1832 return; | 1830 return; |
| 1833 | 1831 |
| 1834 // At this point, we know that we need to recalc some style on the document
in order to fully update styles. | 1832 // At this point, we know that we need to recalc some style on the document
in order to fully update styles. |
| 1835 // However, style on 'node' only needs to be recalculated if a global recomp
utation is needed, or a node on | 1833 // However, style on 'node' only needs to be recalculated if a global recomp
utation is needed, or a node on |
| (...skipping 3605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5441 void Document::defaultEventHandler(Event* event) | 5439 void Document::defaultEventHandler(Event* event) |
| 5442 { | 5440 { |
| 5443 if (frame() && frame()->remotePlatformLayer()) { | 5441 if (frame() && frame()->remotePlatformLayer()) { |
| 5444 frame()->chromeClient().forwardInputEvent(this, event); | 5442 frame()->chromeClient().forwardInputEvent(this, event); |
| 5445 return; | 5443 return; |
| 5446 } | 5444 } |
| 5447 Node::defaultEventHandler(event); | 5445 Node::defaultEventHandler(event); |
| 5448 } | 5446 } |
| 5449 | 5447 |
| 5450 } // namespace WebCore | 5448 } // namespace WebCore |
| OLD | NEW |