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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 #include "core/editing/spellcheck/SpellChecker.h" | 113 #include "core/editing/spellcheck/SpellChecker.h" |
114 #include "core/events/BeforeUnloadEvent.h" | 114 #include "core/events/BeforeUnloadEvent.h" |
115 #include "core/events/Event.h" | 115 #include "core/events/Event.h" |
116 #include "core/events/EventFactory.h" | 116 #include "core/events/EventFactory.h" |
117 #include "core/events/EventListener.h" | 117 #include "core/events/EventListener.h" |
118 #include "core/events/HashChangeEvent.h" | 118 #include "core/events/HashChangeEvent.h" |
119 #include "core/events/PageTransitionEvent.h" | 119 #include "core/events/PageTransitionEvent.h" |
120 #include "core/events/ScopedEventQueue.h" | 120 #include "core/events/ScopedEventQueue.h" |
121 #include "core/fetch/ResourceFetcher.h" | 121 #include "core/fetch/ResourceFetcher.h" |
122 #include "core/frame/DOMTimer.h" | 122 #include "core/frame/DOMTimer.h" |
123 #include "core/frame/DeprecatedScheduleStyleRecalcDuringLayout.h" | |
123 #include "core/frame/EventHandlerRegistry.h" | 124 #include "core/frame/EventHandlerRegistry.h" |
124 #include "core/frame/FrameConsole.h" | 125 #include "core/frame/FrameConsole.h" |
125 #include "core/frame/FrameHost.h" | 126 #include "core/frame/FrameHost.h" |
126 #include "core/frame/FrameView.h" | 127 #include "core/frame/FrameView.h" |
127 #include "core/frame/History.h" | 128 #include "core/frame/History.h" |
128 #include "core/frame/LocalDOMWindow.h" | 129 #include "core/frame/LocalDOMWindow.h" |
129 #include "core/frame/LocalFrame.h" | 130 #include "core/frame/LocalFrame.h" |
130 #include "core/frame/OriginsUsingFeatures.h" | 131 #include "core/frame/OriginsUsingFeatures.h" |
131 #include "core/frame/Settings.h" | 132 #include "core/frame/Settings.h" |
132 #include "core/frame/csp/ContentSecurityPolicy.h" | 133 #include "core/frame/csp/ContentSecurityPolicy.h" |
(...skipping 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2094 m_layerUpdateSVGFilterElements.clear(); | 2095 m_layerUpdateSVGFilterElements.clear(); |
2095 return true; | 2096 return true; |
2096 } | 2097 } |
2097 | 2098 |
2098 void Document::scheduleSVGFilterLayerUpdateHack(Element& element) | 2099 void Document::scheduleSVGFilterLayerUpdateHack(Element& element) |
2099 { | 2100 { |
2100 if (element.styleChangeType() == NeedsReattachStyleChange) | 2101 if (element.styleChangeType() == NeedsReattachStyleChange) |
2101 return; | 2102 return; |
2102 element.setSVGFilterNeedsLayerUpdate(); | 2103 element.setSVGFilterNeedsLayerUpdate(); |
2103 m_layerUpdateSVGFilterElements.add(&element); | 2104 m_layerUpdateSVGFilterElements.add(&element); |
2105 | |
2106 DeprecatedScheduleStyleRecalcDuringLayout marker(lifecycle()); | |
esprehn
2016/01/22 19:24:44
Yeah this is supposed to be forced on all the user
| |
2107 // This function can sometimes be called while performing layout, | |
2108 // e.g. when invalidating filters because of relative lengths. | |
2104 scheduleLayoutTreeUpdateIfNeeded(); | 2109 scheduleLayoutTreeUpdateIfNeeded(); |
2105 } | 2110 } |
2106 | 2111 |
2107 void Document::unscheduleSVGFilterLayerUpdateHack(Element& element) | 2112 void Document::unscheduleSVGFilterLayerUpdateHack(Element& element) |
2108 { | 2113 { |
2109 element.clearSVGFilterNeedsLayerUpdate(); | 2114 element.clearSVGFilterNeedsLayerUpdate(); |
2110 m_layerUpdateSVGFilterElements.remove(&element); | 2115 m_layerUpdateSVGFilterElements.remove(&element); |
2111 } | 2116 } |
2112 | 2117 |
2113 void Document::scheduleUseShadowTreeUpdate(SVGUseElement& element) | 2118 void Document::scheduleUseShadowTreeUpdate(SVGUseElement& element) |
(...skipping 3764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5878 #ifndef NDEBUG | 5883 #ifndef NDEBUG |
5879 using namespace blink; | 5884 using namespace blink; |
5880 void showLiveDocumentInstances() | 5885 void showLiveDocumentInstances() |
5881 { | 5886 { |
5882 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5887 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
5883 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5888 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5884 for (Document* document : set) | 5889 for (Document* document : set) |
5885 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data()); | 5890 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data()); |
5886 } | 5891 } |
5887 #endif | 5892 #endif |
OLD | NEW |