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 2327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2338 if (f && f->script().canExecuteScripts(NotAboutToExecuteScript)) { | 2338 if (f && f->script().canExecuteScripts(NotAboutToExecuteScript)) { |
2339 ImageLoader::dispatchPendingBeforeLoadEvents(); | 2339 ImageLoader::dispatchPendingBeforeLoadEvents(); |
2340 ImageLoader::dispatchPendingLoadEvents(); | 2340 ImageLoader::dispatchPendingLoadEvents(); |
2341 ImageLoader::dispatchPendingErrorEvents(); | 2341 ImageLoader::dispatchPendingErrorEvents(); |
2342 | 2342 |
2343 HTMLLinkElement::dispatchPendingLoadEvents(); | 2343 HTMLLinkElement::dispatchPendingLoadEvents(); |
2344 HTMLStyleElement::dispatchPendingLoadEvents(); | 2344 HTMLStyleElement::dispatchPendingLoadEvents(); |
2345 } | 2345 } |
2346 | 2346 |
2347 // To align the HTML load event and the SVGLoad event for the outermost <svg
> element, fire it from | 2347 // To align the HTML load event and the SVGLoad event for the outermost <svg
> element, fire it from |
2348 // here, instead of doing it from SVGElement::finishedParsingChildren (if ex
ternalResourcesRequired="false", | 2348 // here, instead of doing it from SVGElement::finishedParsingChildren. |
2349 // which is the default, for ='true' its fired at a later time, once all ext
ernal resources finished loading). | |
2350 if (svgExtensions()) | 2349 if (svgExtensions()) |
2351 accessSVGExtensions()->dispatchSVGLoadEventToOutermostSVGElements(); | 2350 accessSVGExtensions()->dispatchSVGLoadEventToOutermostSVGElements(); |
2352 | 2351 |
2353 dispatchWindowLoadEvent(); | 2352 dispatchWindowLoadEvent(); |
2354 enqueuePageshowEvent(PageshowEventNotPersisted); | 2353 enqueuePageshowEvent(PageshowEventNotPersisted); |
2355 enqueuePopstateEvent(m_pendingStateObject ? m_pendingStateObject.release() :
SerializedScriptValue::nullValue()); | 2354 enqueuePopstateEvent(m_pendingStateObject ? m_pendingStateObject.release() :
SerializedScriptValue::nullValue()); |
2356 | 2355 |
2357 if (frame()) { | 2356 if (frame()) { |
2358 frame()->loader().client()->dispatchDidHandleOnloadEvents(); | 2357 frame()->loader().client()->dispatchDidHandleOnloadEvents(); |
2359 loader()->applicationCacheHost()->stopDeferringEvents(); | 2358 loader()->applicationCacheHost()->stopDeferringEvents(); |
(...skipping 2994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5354 void Document::modifiedStyleSheet(StyleSheet* sheet, RecalcStyleTime when, Style
ResolverUpdateMode updateMode) | 5353 void Document::modifiedStyleSheet(StyleSheet* sheet, RecalcStyleTime when, Style
ResolverUpdateMode updateMode) |
5355 { | 5354 { |
5356 if (!isActive()) | 5355 if (!isActive()) |
5357 return; | 5356 return; |
5358 | 5357 |
5359 styleEngine()->modifiedStyleSheet(sheet); | 5358 styleEngine()->modifiedStyleSheet(sheet); |
5360 styleResolverChanged(when, updateMode); | 5359 styleResolverChanged(when, updateMode); |
5361 } | 5360 } |
5362 | 5361 |
5363 } // namespace WebCore | 5362 } // namespace WebCore |
OLD | NEW |