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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 #include "core/events/ThreadLocalEventNames.h" | 112 #include "core/events/ThreadLocalEventNames.h" |
113 #include "core/fetch/ResourceFetcher.h" | 113 #include "core/fetch/ResourceFetcher.h" |
114 #include "core/frame/ContentSecurityPolicy.h" | 114 #include "core/frame/ContentSecurityPolicy.h" |
115 #include "core/frame/DOMWindow.h" | 115 #include "core/frame/DOMWindow.h" |
116 #include "core/frame/Frame.h" | 116 #include "core/frame/Frame.h" |
117 #include "core/frame/FrameHost.h" | 117 #include "core/frame/FrameHost.h" |
118 #include "core/frame/FrameView.h" | 118 #include "core/frame/FrameView.h" |
119 #include "core/frame/History.h" | 119 #include "core/frame/History.h" |
120 #include "core/frame/PageConsole.h" | 120 #include "core/frame/PageConsole.h" |
121 #include "core/frame/Settings.h" | 121 #include "core/frame/Settings.h" |
122 #include "core/frame/animation/AnimationController.h" | |
123 #include "core/html/HTMLAllCollection.h" | 122 #include "core/html/HTMLAllCollection.h" |
124 #include "core/html/HTMLAnchorElement.h" | 123 #include "core/html/HTMLAnchorElement.h" |
125 #include "core/html/HTMLCanvasElement.h" | 124 #include "core/html/HTMLCanvasElement.h" |
126 #include "core/html/HTMLCollection.h" | 125 #include "core/html/HTMLCollection.h" |
127 #include "core/html/HTMLDialogElement.h" | 126 #include "core/html/HTMLDialogElement.h" |
128 #include "core/html/HTMLDocument.h" | 127 #include "core/html/HTMLDocument.h" |
129 #include "core/html/HTMLFrameOwnerElement.h" | 128 #include "core/html/HTMLFrameOwnerElement.h" |
130 #include "core/html/HTMLHeadElement.h" | 129 #include "core/html/HTMLHeadElement.h" |
131 #include "core/html/HTMLIFrameElement.h" | 130 #include "core/html/HTMLIFrameElement.h" |
132 #include "core/html/HTMLImport.h" | 131 #include "core/html/HTMLImport.h" |
(...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1803 | 1802 |
1804 void Document::updateStyleIfNeeded() | 1803 void Document::updateStyleIfNeeded() |
1805 { | 1804 { |
1806 ASSERT(isMainThread()); | 1805 ASSERT(isMainThread()); |
1807 ASSERT(!view() || (!view()->isInPerformLayout() && !view()->isPainting())); | 1806 ASSERT(!view() || (!view()->isInPerformLayout() && !view()->isPainting())); |
1808 | 1807 |
1809 if (!shouldCallRecalcStyleForDocument()) | 1808 if (!shouldCallRecalcStyleForDocument()) |
1810 return; | 1809 return; |
1811 | 1810 |
1812 RefPtr<Frame> holder(m_frame); | 1811 RefPtr<Frame> holder(m_frame); |
1813 AnimationUpdateBlock animationUpdateBlock(m_frame ? &m_frame->animation() :
0); | |
1814 recalcStyle(NoChange); | 1812 recalcStyle(NoChange); |
1815 DocumentAnimations::serviceAfterStyleRecalc(*this); | 1813 DocumentAnimations::serviceAfterStyleRecalc(*this); |
1816 } | 1814 } |
1817 | 1815 |
1818 void Document::updateStyleForNodeIfNeeded(Node* node) | 1816 void Document::updateStyleForNodeIfNeeded(Node* node) |
1819 { | 1817 { |
1820 if (!shouldCallRecalcStyleForDocument()) | 1818 if (!shouldCallRecalcStyleForDocument()) |
1821 return; | 1819 return; |
1822 | 1820 |
1823 // At this point, we know that we need to recalc some style on the document
in order to fully update styles. | 1821 // At this point, we know that we need to recalc some style on the document
in order to fully update styles. |
(...skipping 3581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5405 void Document::defaultEventHandler(Event* event) | 5403 void Document::defaultEventHandler(Event* event) |
5406 { | 5404 { |
5407 if (frame() && frame()->remotePlatformLayer()) { | 5405 if (frame() && frame()->remotePlatformLayer()) { |
5408 frame()->chromeClient().forwardInputEvent(this, event); | 5406 frame()->chromeClient().forwardInputEvent(this, event); |
5409 return; | 5407 return; |
5410 } | 5408 } |
5411 Node::defaultEventHandler(event); | 5409 Node::defaultEventHandler(event); |
5412 } | 5410 } |
5413 | 5411 |
5414 } // namespace WebCore | 5412 } // namespace WebCore |
OLD | NEW |