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 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2092 return; | 2092 return; |
2093 | 2093 |
2094 setSecurityOrigin(SecurityOrigin::createUnique()); | 2094 setSecurityOrigin(SecurityOrigin::createUnique()); |
2095 didUpdateSecurityOrigin(); | 2095 didUpdateSecurityOrigin(); |
2096 } | 2096 } |
2097 | 2097 |
2098 bool Document::dirtyElementsForLayerUpdate() | 2098 bool Document::dirtyElementsForLayerUpdate() |
2099 { | 2099 { |
2100 if (m_layerUpdateSVGFilterElements.isEmpty()) | 2100 if (m_layerUpdateSVGFilterElements.isEmpty()) |
2101 return false; | 2101 return false; |
2102 HashSet<Element*>::iterator end = m_layerUpdateSVGFilterElements.end(); | 2102 |
2103 for (HashSet<Element*>::iterator it = m_layerUpdateSVGFilterElements.begin()
; it != end; ++it) | 2103 for (WillBeHeapHashSet<RawPtrWillBeMember<Element> >::iterator it = m_layerU
pdateSVGFilterElements.begin(), end = m_layerUpdateSVGFilterElements.end(); it !
= end; ++it) |
2104 (*it)->setNeedsStyleRecalc(LocalStyleChange); | 2104 (*it)->setNeedsStyleRecalc(LocalStyleChange); |
2105 m_layerUpdateSVGFilterElements.clear(); | 2105 m_layerUpdateSVGFilterElements.clear(); |
2106 return true; | 2106 return true; |
2107 } | 2107 } |
2108 | 2108 |
2109 void Document::scheduleSVGFilterLayerUpdateHack(Element& element) | 2109 void Document::scheduleSVGFilterLayerUpdateHack(Element& element) |
2110 { | 2110 { |
2111 if (element.styleChangeType() == NeedsReattachStyleChange) | 2111 if (element.styleChangeType() == NeedsReattachStyleChange) |
2112 return; | 2112 return; |
2113 element.setSVGFilterNeedsLayerUpdate(); | 2113 element.setSVGFilterNeedsLayerUpdate(); |
(...skipping 18 matching lines...) Expand all Loading... |
2132 m_useElementsNeedingUpdate.remove(&element); | 2132 m_useElementsNeedingUpdate.remove(&element); |
2133 } | 2133 } |
2134 | 2134 |
2135 void Document::updateUseShadowTreesIfNeeded() | 2135 void Document::updateUseShadowTreesIfNeeded() |
2136 { | 2136 { |
2137 ScriptForbiddenScope forbidScript; | 2137 ScriptForbiddenScope forbidScript; |
2138 | 2138 |
2139 if (m_useElementsNeedingUpdate.isEmpty()) | 2139 if (m_useElementsNeedingUpdate.isEmpty()) |
2140 return; | 2140 return; |
2141 | 2141 |
2142 Vector<SVGUseElement*> elements; | 2142 WillBeHeapVector<RawPtrWillBeMember<SVGUseElement> > elements; |
2143 copyToVector(m_useElementsNeedingUpdate, elements); | 2143 copyToVector(m_useElementsNeedingUpdate, elements); |
2144 m_useElementsNeedingUpdate.clear(); | 2144 m_useElementsNeedingUpdate.clear(); |
2145 | 2145 |
2146 Vector<SVGUseElement*>::iterator end = elements.end(); | 2146 for (WillBeHeapVector<RawPtrWillBeMember<SVGUseElement> >::iterator it = ele
ments.begin(), end = elements.end(); it != end; ++it) |
2147 for (Vector<SVGUseElement*>::iterator it = elements.begin(); it != end; ++it
) | |
2148 (*it)->buildPendingResource(); | 2147 (*it)->buildPendingResource(); |
2149 } | 2148 } |
2150 | 2149 |
2151 StyleResolver* Document::styleResolver() const | 2150 StyleResolver* Document::styleResolver() const |
2152 { | 2151 { |
2153 return m_styleEngine->resolver(); | 2152 return m_styleEngine->resolver(); |
2154 } | 2153 } |
2155 | 2154 |
2156 StyleResolver& Document::ensureStyleResolver() const | 2155 StyleResolver& Document::ensureStyleResolver() const |
2157 { | 2156 { |
(...skipping 3674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5832 visitor->trace(m_styleEngine); | 5831 visitor->trace(m_styleEngine); |
5833 visitor->trace(m_formController); | 5832 visitor->trace(m_formController); |
5834 visitor->trace(m_domWindow); | 5833 visitor->trace(m_domWindow); |
5835 visitor->trace(m_fetcher); | 5834 visitor->trace(m_fetcher); |
5836 visitor->trace(m_parser); | 5835 visitor->trace(m_parser); |
5837 visitor->trace(m_contextFeatures); | 5836 visitor->trace(m_contextFeatures); |
5838 visitor->trace(m_styleSheetList); | 5837 visitor->trace(m_styleSheetList); |
5839 visitor->trace(m_mediaQueryMatcher); | 5838 visitor->trace(m_mediaQueryMatcher); |
5840 visitor->trace(m_registrationContext); | 5839 visitor->trace(m_registrationContext); |
5841 visitor->trace(m_associatedFormControls); | 5840 visitor->trace(m_associatedFormControls); |
| 5841 visitor->trace(m_useElementsNeedingUpdate); |
| 5842 visitor->trace(m_layerUpdateSVGFilterElements); |
5842 visitor->trace(m_templateDocument); | 5843 visitor->trace(m_templateDocument); |
5843 visitor->trace(m_templateDocumentHost); | 5844 visitor->trace(m_templateDocumentHost); |
5844 visitor->trace(m_visibilityObservers); | 5845 visitor->trace(m_visibilityObservers); |
5845 visitor->trace(m_userActionElements); | 5846 visitor->trace(m_userActionElements); |
5846 visitor->trace(m_svgExtensions); | 5847 visitor->trace(m_svgExtensions); |
5847 visitor->trace(m_timeline); | 5848 visitor->trace(m_timeline); |
5848 visitor->trace(m_compositorPendingAnimations); | 5849 visitor->trace(m_compositorPendingAnimations); |
5849 visitor->trace(m_contextDocument); | 5850 visitor->trace(m_contextDocument); |
5850 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); | 5851 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); |
5851 DocumentSupplementable::trace(visitor); | 5852 DocumentSupplementable::trace(visitor); |
5852 TreeScope::trace(visitor); | 5853 TreeScope::trace(visitor); |
5853 ContainerNode::trace(visitor); | 5854 ContainerNode::trace(visitor); |
5854 ExecutionContext::trace(visitor); | 5855 ExecutionContext::trace(visitor); |
5855 } | 5856 } |
5856 | 5857 |
5857 } // namespace WebCore | 5858 } // namespace WebCore |
OLD | NEW |