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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 #include "core/page/FocusController.h" | 163 #include "core/page/FocusController.h" |
164 #include "core/page/FrameTree.h" | 164 #include "core/page/FrameTree.h" |
165 #include "core/page/MouseEventWithHitTestResults.h" | 165 #include "core/page/MouseEventWithHitTestResults.h" |
166 #include "core/page/Page.h" | 166 #include "core/page/Page.h" |
167 #include "core/page/PointerLockController.h" | 167 #include "core/page/PointerLockController.h" |
168 #include "core/page/scrolling/ScrollingCoordinator.h" | 168 #include "core/page/scrolling/ScrollingCoordinator.h" |
169 #include "core/rendering/FastTextAutosizer.h" | 169 #include "core/rendering/FastTextAutosizer.h" |
170 #include "core/rendering/HitTestResult.h" | 170 #include "core/rendering/HitTestResult.h" |
171 #include "core/rendering/RenderView.h" | 171 #include "core/rendering/RenderView.h" |
172 #include "core/rendering/TextAutosizer.h" | 172 #include "core/rendering/TextAutosizer.h" |
| 173 #include "core/rendering/compositing/RenderLayerCompositor.h" |
173 #include "core/svg/SVGDocumentExtensions.h" | 174 #include "core/svg/SVGDocumentExtensions.h" |
174 #include "core/svg/SVGFontFaceElement.h" | 175 #include "core/svg/SVGFontFaceElement.h" |
175 #include "core/svg/SVGStyleElement.h" | 176 #include "core/svg/SVGStyleElement.h" |
176 #include "core/svg/SVGUseElement.h" | 177 #include "core/svg/SVGUseElement.h" |
177 #include "core/workers/SharedWorkerRepositoryClient.h" | 178 #include "core/workers/SharedWorkerRepositoryClient.h" |
178 #include "core/xml/XSLTProcessor.h" | 179 #include "core/xml/XSLTProcessor.h" |
179 #include "core/xml/parser/XMLDocumentParser.h" | 180 #include "core/xml/parser/XMLDocumentParser.h" |
180 #include "platform/DateComponents.h" | 181 #include "platform/DateComponents.h" |
181 #include "platform/Language.h" | 182 #include "platform/Language.h" |
182 #include "platform/TraceEvent.h" | 183 #include "platform/TraceEvent.h" |
(...skipping 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1912 dirtyElementsForLayerUpdate(); | 1913 dirtyElementsForLayerUpdate(); |
1913 if (documentElement->shouldCallRecalcStyle(change)) | 1914 if (documentElement->shouldCallRecalcStyle(change)) |
1914 documentElement->recalcStyle(change); | 1915 documentElement->recalcStyle(change); |
1915 while (dirtyElementsForLayerUpdate()) | 1916 while (dirtyElementsForLayerUpdate()) |
1916 documentElement->recalcStyle(NoChange); | 1917 documentElement->recalcStyle(NoChange); |
1917 } | 1918 } |
1918 | 1919 |
1919 ensureStyleResolver().printStats(); | 1920 ensureStyleResolver().printStats(); |
1920 | 1921 |
1921 view()->recalcOverflowAfterStyleChange(); | 1922 view()->recalcOverflowAfterStyleChange(); |
1922 view()->updateCompositingLayersAfterStyleChange(); | 1923 renderView()->compositor()->setNeedsCompositingUpdate(CompositingUpdateAfter
CompositingInputChange); |
1923 | 1924 |
1924 clearChildNeedsStyleRecalc(); | 1925 clearChildNeedsStyleRecalc(); |
1925 | 1926 |
1926 if (m_styleEngine->hasResolver()) { | 1927 if (m_styleEngine->hasResolver()) { |
1927 // Pseudo element removal and similar may only work with these flags sti
ll set. Reset them after the style recalc. | 1928 // Pseudo element removal and similar may only work with these flags sti
ll set. Reset them after the style recalc. |
1928 StyleResolver& resolver = m_styleEngine->ensureResolver(); | 1929 StyleResolver& resolver = m_styleEngine->ensureResolver(); |
1929 m_styleEngine->resetCSSFeatureFlags(resolver.ensureUpdatedRuleFeatureSet
()); | 1930 m_styleEngine->resetCSSFeatureFlags(resolver.ensureUpdatedRuleFeatureSet
()); |
1930 resolver.clearStyleSharingList(); | 1931 resolver.clearStyleSharingList(); |
1931 } | 1932 } |
1932 | 1933 |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2165 void Document::attach(const AttachContext& context) | 2166 void Document::attach(const AttachContext& context) |
2166 { | 2167 { |
2167 ASSERT(m_lifecycle.state() == DocumentLifecycle::Inactive); | 2168 ASSERT(m_lifecycle.state() == DocumentLifecycle::Inactive); |
2168 ASSERT(!m_axObjectCache || this != topDocument()); | 2169 ASSERT(!m_axObjectCache || this != topDocument()); |
2169 | 2170 |
2170 m_renderView = new RenderView(this); | 2171 m_renderView = new RenderView(this); |
2171 setRenderer(m_renderView); | 2172 setRenderer(m_renderView); |
2172 | 2173 |
2173 m_renderView->setIsInWindow(true); | 2174 m_renderView->setIsInWindow(true); |
2174 m_renderView->setStyle(StyleResolver::styleForDocument(*this)); | 2175 m_renderView->setStyle(StyleResolver::styleForDocument(*this)); |
2175 view()->updateCompositingLayersAfterStyleChange(); | 2176 m_renderView->compositor()->setNeedsCompositingUpdate(CompositingUpdateAfter
CompositingInputChange); |
2176 | 2177 |
2177 ContainerNode::attach(context); | 2178 ContainerNode::attach(context); |
2178 | 2179 |
2179 // FastTextAutosizer can't update render view info while the Document is det
ached, so update now in case anything changed. | 2180 // FastTextAutosizer can't update render view info while the Document is det
ached, so update now in case anything changed. |
2180 if (FastTextAutosizer* textAutosizer = fastTextAutosizer()) | 2181 if (FastTextAutosizer* textAutosizer = fastTextAutosizer()) |
2181 textAutosizer->updatePageInfo(); | 2182 textAutosizer->updatePageInfo(); |
2182 | 2183 |
2183 m_lifecycle.advanceTo(DocumentLifecycle::StyleClean); | 2184 m_lifecycle.advanceTo(DocumentLifecycle::StyleClean); |
2184 } | 2185 } |
2185 | 2186 |
(...skipping 3627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5813 visitor->trace(m_compositorPendingAnimations); | 5814 visitor->trace(m_compositorPendingAnimations); |
5814 visitor->trace(m_contextDocument); | 5815 visitor->trace(m_contextDocument); |
5815 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); | 5816 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); |
5816 DocumentSupplementable::trace(visitor); | 5817 DocumentSupplementable::trace(visitor); |
5817 TreeScope::trace(visitor); | 5818 TreeScope::trace(visitor); |
5818 ContainerNode::trace(visitor); | 5819 ContainerNode::trace(visitor); |
5819 ExecutionContext::trace(visitor); | 5820 ExecutionContext::trace(visitor); |
5820 } | 5821 } |
5821 | 5822 |
5822 } // namespace WebCore | 5823 } // namespace WebCore |
OLD | NEW |