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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 #include "core/page/EventHandler.h" | 158 #include "core/page/EventHandler.h" |
159 #include "core/page/FocusController.h" | 159 #include "core/page/FocusController.h" |
160 #include "core/page/FrameTree.h" | 160 #include "core/page/FrameTree.h" |
161 #include "core/page/MouseEventWithHitTestResults.h" | 161 #include "core/page/MouseEventWithHitTestResults.h" |
162 #include "core/page/Page.h" | 162 #include "core/page/Page.h" |
163 #include "core/page/PointerLockController.h" | 163 #include "core/page/PointerLockController.h" |
164 #include "core/page/scrolling/ScrollingCoordinator.h" | 164 #include "core/page/scrolling/ScrollingCoordinator.h" |
165 #include "core/rendering/FastTextAutosizer.h" | 165 #include "core/rendering/FastTextAutosizer.h" |
166 #include "core/rendering/HitTestResult.h" | 166 #include "core/rendering/HitTestResult.h" |
167 #include "core/rendering/RenderView.h" | 167 #include "core/rendering/RenderView.h" |
168 #include "core/rendering/RenderWidget.h" | |
169 #include "core/rendering/TextAutosizer.h" | 168 #include "core/rendering/TextAutosizer.h" |
170 #include "core/svg/SVGDocumentExtensions.h" | 169 #include "core/svg/SVGDocumentExtensions.h" |
171 #include "core/svg/SVGFontFaceElement.h" | 170 #include "core/svg/SVGFontFaceElement.h" |
172 #include "core/svg/SVGStyleElement.h" | 171 #include "core/svg/SVGStyleElement.h" |
173 #include "core/svg/SVGUseElement.h" | 172 #include "core/svg/SVGUseElement.h" |
174 #include "core/workers/SharedWorkerRepositoryClient.h" | 173 #include "core/workers/SharedWorkerRepositoryClient.h" |
175 #include "core/xml/XSLTProcessor.h" | 174 #include "core/xml/XSLTProcessor.h" |
176 #include "core/xml/parser/XMLDocumentParser.h" | 175 #include "core/xml/parser/XMLDocumentParser.h" |
177 #include "platform/DateComponents.h" | 176 #include "platform/DateComponents.h" |
178 #include "platform/Language.h" | 177 #include "platform/Language.h" |
(...skipping 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1784 if (svgExtensions()) | 1783 if (svgExtensions()) |
1785 accessSVGExtensions().removePendingSVGFontFaceElementsForRemoval(); | 1784 accessSVGExtensions().removePendingSVGFontFaceElementsForRemoval(); |
1786 #endif | 1785 #endif |
1787 InspectorInstrumentation::didRecalculateStyle(cookie); | 1786 InspectorInstrumentation::didRecalculateStyle(cookie); |
1788 } | 1787 } |
1789 | 1788 |
1790 void Document::updateStyle(StyleRecalcChange change) | 1789 void Document::updateStyle(StyleRecalcChange change) |
1791 { | 1790 { |
1792 TRACE_EVENT0("webkit", "Document::updateStyle"); | 1791 TRACE_EVENT0("webkit", "Document::updateStyle"); |
1793 | 1792 |
1794 RenderWidget::UpdateSuspendScope suspendWidgetHierarchyUpdates; | 1793 HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpdates; |
1795 m_lifecycle.advanceTo(DocumentLifecycle::InStyleRecalc); | 1794 m_lifecycle.advanceTo(DocumentLifecycle::InStyleRecalc); |
1796 | 1795 |
1797 if (styleChangeType() >= SubtreeStyleChange) | 1796 if (styleChangeType() >= SubtreeStyleChange) |
1798 change = Force; | 1797 change = Force; |
1799 | 1798 |
1800 // FIXME: Cannot access the ensureStyleResolver() before calling styleForDoc
ument below because | 1799 // FIXME: Cannot access the ensureStyleResolver() before calling styleForDoc
ument below because |
1801 // apparently the StyleResolver's constructor has side effects. We should fi
x it. | 1800 // apparently the StyleResolver's constructor has side effects. We should fi
x it. |
1802 // See printing/setPrinting.html, printing/width-overflow.html though they o
nly fail on | 1801 // See printing/setPrinting.html, printing/width-overflow.html though they o
nly fail on |
1803 // mac when accessing the resolver by what appears to be a viewport size dif
ference. | 1802 // mac when accessing the resolver by what appears to be a viewport size dif
ference. |
1804 | 1803 |
(...skipping 3717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5522 } | 5521 } |
5523 | 5522 |
5524 void Document::invalidateNodeListCaches(const QualifiedName* attrName) | 5523 void Document::invalidateNodeListCaches(const QualifiedName* attrName) |
5525 { | 5524 { |
5526 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); | 5525 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); |
5527 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) | 5526 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) |
5528 (*it)->invalidateCache(attrName); | 5527 (*it)->invalidateCache(attrName); |
5529 } | 5528 } |
5530 | 5529 |
5531 } // namespace WebCore | 5530 } // namespace WebCore |
OLD | NEW |