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