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 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1810 | 1810 |
1811 // As a result of the style recalculation, the currently hovered element mig
ht have been | 1811 // As a result of the style recalculation, the currently hovered element mig
ht have been |
1812 // detached (for example, by setting display:none in the :hover style), sche
dule another mouseMove event | 1812 // detached (for example, by setting display:none in the :hover style), sche
dule another mouseMove event |
1813 // to check if any other elements ended up under the mouse pointer due to re
-layout. | 1813 // to check if any other elements ended up under the mouse pointer due to re
-layout. |
1814 if (hoverNode() && !hoverNode()->renderer() && frame()) | 1814 if (hoverNode() && !hoverNode()->renderer() && frame()) |
1815 frame()->eventHandler().dispatchFakeMouseMoveEventSoon(); | 1815 frame()->eventHandler().dispatchFakeMouseMoveEventSoon(); |
1816 | 1816 |
1817 if (m_focusedElement && !m_focusedElement->isFocusable()) | 1817 if (m_focusedElement && !m_focusedElement->isFocusable()) |
1818 clearFocusedElementSoon(); | 1818 clearFocusedElementSoon(); |
1819 | 1819 |
1820 DocumentAnimations::serviceAfterStyleRecalc(*this); | |
1821 | |
1822 InspectorInstrumentation::didRecalculateStyle(cookie); | 1820 InspectorInstrumentation::didRecalculateStyle(cookie); |
1823 } | 1821 } |
1824 | 1822 |
1825 void Document::updateStyleForNodeIfNeeded(Node* node) | 1823 void Document::updateStyleForNodeIfNeeded(Node* node) |
1826 { | 1824 { |
1827 if (!shouldCallRecalcStyleForDocument()) | 1825 if (!shouldCallRecalcStyleForDocument()) |
1828 return; | 1826 return; |
1829 | 1827 |
1830 // At this point, we know that we need to recalc some style on the document
in order to fully update styles. | 1828 // At this point, we know that we need to recalc some style on the document
in order to fully update styles. |
1831 // However, style on 'node' only needs to be recalculated if a global recomp
utation is needed, or a node on | 1829 // 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... |
5437 void Document::defaultEventHandler(Event* event) | 5435 void Document::defaultEventHandler(Event* event) |
5438 { | 5436 { |
5439 if (frame() && frame()->remotePlatformLayer()) { | 5437 if (frame() && frame()->remotePlatformLayer()) { |
5440 frame()->chromeClient().forwardInputEvent(this, event); | 5438 frame()->chromeClient().forwardInputEvent(this, event); |
5441 return; | 5439 return; |
5442 } | 5440 } |
5443 Node::defaultEventHandler(event); | 5441 Node::defaultEventHandler(event); |
5444 } | 5442 } |
5445 | 5443 |
5446 } // namespace WebCore | 5444 } // namespace WebCore |
OLD | NEW |