Changeset 104927 in webkit
- Timestamp:
- Jan 13, 2012 6:20:20 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r104921 r104927 1 2012-01-13 Jochen Eisinger <jochen@chromium.org> 2 3 Once we've prepared script element for execution, execute it, even if the script element was meanwhile removed from the dom tree. 4 https://bugs.webkit.org/show_bug.cgi?id=76083 5 6 Reviewed by Adam Barth. 7 8 * http/tests/misc/async-script-expected.txt: Added. 9 * http/tests/misc/async-script-removed-expected.txt: Added. 10 * http/tests/misc/async-script-removed.html: Added. 11 * http/tests/misc/async-script.html: Added. 12 * http/tests/misc/resources/delayed-log.php: Added. 13 1 14 2012-01-13 Alexander Pavlov <apavlov@chromium.org> 2 15 -
trunk/Source/WebCore/ChangeLog
r104926 r104927 1 2012-01-13 Jochen Eisinger <jochen@chromium.org> 2 3 Once we prepared a script element for execution, execute it, even if the script element was meanwhile removed from the dom tree. 4 https://bugs.webkit.org/show_bug.cgi?id=76083 5 6 Reviewed by Adam Barth. 7 8 This bug was caught by the following IE Test Center test: 9 10 http://samples.msdn.microsoft.com/ietestcenter/HTML5/show_async_test.htm?11_RemovingAsyncScript 11 12 Test: http/tests/misc/async-script-removed.html 13 http/tests/misc/async-script.html 14 15 * dom/ScriptElement.cpp: 16 * dom/ScriptElement.h: 17 * dom/ScriptRunner.cpp: 18 (WebCore::ScriptRunner::queueScriptForExecution): 19 * html/HTMLScriptElement.cpp: 20 * html/HTMLScriptElement.h: 21 * svg/SVGScriptElement.cpp: 22 * svg/SVGScriptElement.h: 23 1 24 2012-01-12 Nikolas Zimmermann <nzimmermann@rim.com> 2 25 -
trunk/Source/WebCore/dom/ScriptElement.cpp
r101792 r104927 81 81 } 82 82 83 void ScriptElement::removedFromDocument()84 {85 // Eventually stop loading any not-yet-finished content86 stopLoadRequest();87 }88 89 83 void ScriptElement::childrenChanged() 90 84 { -
trunk/Source/WebCore/dom/ScriptElement.h
r101792 r104927 68 68 // Helper functions used by our parent classes. 69 69 void insertedIntoDocument(); 70 void removedFromDocument();71 70 void childrenChanged(); 72 71 void handleSourceAttribute(const String& sourceUrl); -
trunk/Source/WebCore/dom/ScriptRunner.cpp
r101792 r104927 57 57 Element* element = scriptElement->element(); 58 58 ASSERT(element); 59 ASSERT(element->inDocument());60 59 61 60 m_document->incrementLoadEventDelayCount(); -
trunk/Source/WebCore/html/HTMLScriptElement.cpp
r99742 r104927 84 84 HTMLElement::insertedIntoDocument(); 85 85 ScriptElement::insertedIntoDocument(); 86 }87 88 void HTMLScriptElement::removedFromDocument()89 {90 HTMLElement::removedFromDocument();91 ScriptElement::removedFromDocument();92 86 } 93 87 -
trunk/Source/WebCore/html/HTMLScriptElement.h
r91404 r104927 47 47 virtual void parseMappedAttribute(Attribute*); 48 48 virtual void insertedIntoDocument(); 49 virtual void removedFromDocument();50 49 virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0); 51 50 virtual void attributeChanged(Attribute*, bool preserveDecls = false); -
trunk/Source/WebCore/svg/SVGScriptElement.cpp
r96307 r104927 143 143 } 144 144 145 void SVGScriptElement::removedFromDocument()146 {147 SVGElement::removedFromDocument();148 ScriptElement::removedFromDocument();149 }150 151 145 void SVGScriptElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) 152 146 { -
trunk/Source/WebCore/svg/SVGScriptElement.h
r91404 r104927 48 48 virtual void parseMappedAttribute(Attribute*); 49 49 virtual void insertedIntoDocument(); 50 virtual void removedFromDocument();51 50 virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0); 52 51
Note: See TracChangeset
for help on using the changeset viewer.