Changeset 139799 in webkit
- Timestamp:
- Jan 15, 2013 3:40:29 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r139798 r139799 1 2013-01-15 Levi Weintraub <leviw@chromium.org> 2 3 Unreviewed, rolling out r139790. 4 http://trac.webkit.org/changeset/139790 5 https://bugs.webkit.org/show_bug.cgi?id=106948 6 7 The patch is failing its own test. 8 9 * fast/dom/MutationObserver/parser-mutations-expected.txt: Removed. 10 * fast/dom/MutationObserver/parser-mutations.html: Removed. 11 1 12 2013-01-15 Emil A Eklund <eae@chromium.org> 2 13 -
trunk/Source/JavaScriptCore/ChangeLog
r139765 r139799 1 2013-01-15 Levi Weintraub <leviw@chromium.org> 2 3 Unreviewed, rolling out r139790. 4 http://trac.webkit.org/changeset/139790 5 https://bugs.webkit.org/show_bug.cgi?id=106948 6 7 The patch is failing its own test. 8 9 * bytecode/GlobalResolveInfo.h: Removed property svn:mergeinfo. 10 1 11 2013-01-15 Zan Dobersek <zandobersek@gmail.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r139798 r139799 1 2013-01-15 Levi Weintraub <leviw@chromium.org> 2 3 Unreviewed, rolling out r139790. 4 http://trac.webkit.org/changeset/139790 5 https://bugs.webkit.org/show_bug.cgi?id=106948 6 7 The patch is failing its own test. 8 9 * dom/ContainerNode.cpp: 10 (WebCore::ContainerNode::parserInsertBefore): 11 (WebCore::ContainerNode::parserRemoveChild): 12 (WebCore::ContainerNode::parserAppendChild): 13 * html/parser/HTMLScriptRunner.cpp: 14 (WebCore::HTMLScriptRunner::executeParsingBlockingScript): 15 (WebCore::HTMLScriptRunner::executePendingScriptAndDispatchEvent): 16 (WebCore::HTMLScriptRunner::execute): 17 (WebCore::HTMLScriptRunner::executeScriptsWaitingForLoad): 18 (WebCore::HTMLScriptRunner::executeScriptsWaitingForStylesheets): 19 (WebCore::HTMLScriptRunner::executeScriptsWaitingForParsing): 20 (WebCore::HTMLScriptRunner::runScript): 21 1 22 2013-01-15 Emil A Eklund <eae@chromium.org> 2 23 -
trunk/Source/WebCore/dom/ContainerNode.cpp
r139790 r139799 332 332 insertBeforeCommon(nextChild, newChild.get()); 333 333 334 #if ENABLE(MUTATION_OBSERVERS)335 ChildListMutationScope(this).childAdded(newChild.get());336 #endif337 338 334 childrenChanged(true, newChild->previousSibling(), nextChild, 1); 339 335 ChildNodeInsertionNotifier(this).notify(newChild.get()); … … 556 552 Node* prev = oldChild->previousSibling(); 557 553 Node* next = oldChild->nextSibling(); 558 559 #if ENABLE(MUTATION_OBSERVERS)560 ChildListMutationScope(this).willRemoveChild(oldChild);561 oldChild->notifyMutationObserversNodeWillDetach();562 #endif563 554 564 555 removeBetween(prev, next, oldChild); … … 706 697 treeScope()->adoptIfNeeded(newChild.get()); 707 698 } 708 709 #if ENABLE(MUTATION_OBSERVERS)710 ChildListMutationScope(this).childAdded(newChild.get());711 #endif712 699 713 700 childrenChanged(true, last, 0, 1); -
trunk/Source/WebCore/html/parser/HTMLScriptRunner.cpp
r139790 r139799 37 37 #include "HTMLScriptRunnerHost.h" 38 38 #include "IgnoreDestructiveWriteCountIncrementer.h" 39 #include "MutationObserver.h"40 39 #include "NestingLevelIncrementer.h" 41 40 #include "NotImplemented.h" … … 112 111 { 113 112 ASSERT(m_document); 114 ASSERT(! isExecutingScript());113 ASSERT(!m_scriptNestingLevel); 115 114 ASSERT(m_document->haveStylesheetsLoaded()); 116 115 ASSERT(isPendingScriptReady(m_parserBlockingScript)); … … 128 127 if (pendingScript.cachedScript() && pendingScript.watchingForLoad()) 129 128 stopWatchingForLoad(pendingScript); 130 131 #if ENABLE(MUTATION_OBSERVERS)132 if (!isExecutingScript())133 MutationObserver::deliverAllMutations();134 #endif135 129 136 130 // Clear the pending script before possible rentrancy from executeScript() … … 147 141 } 148 142 } 149 ASSERT(! isExecutingScript());143 ASSERT(!m_scriptNestingLevel); 150 144 } 151 145 … … 177 171 178 172 if (hasParserBlockingScript()) { 179 if ( isExecutingScript())173 if (m_scriptNestingLevel) 180 174 return; // Unwind to the outermost HTMLScriptRunner::execute before continuing parsing. 181 175 // If preload scanner got created, it is missing the source after the current insertion point. Append it and scan. … … 199 193 void HTMLScriptRunner::executeScriptsWaitingForLoad(CachedResource* cachedScript) 200 194 { 201 ASSERT(! isExecutingScript());195 ASSERT(!m_scriptNestingLevel); 202 196 ASSERT(hasParserBlockingScript()); 203 197 ASSERT_UNUSED(cachedScript, m_parserBlockingScript.cachedScript() == cachedScript); … … 212 206 // to prevent parser or script re-entry during </style> parsing. 213 207 ASSERT(hasScriptsWaitingForStylesheets()); 214 ASSERT(! isExecutingScript());208 ASSERT(!m_scriptNestingLevel); 215 209 ASSERT(m_document->haveStylesheetsLoaded()); 216 210 executeParsingBlockingScripts(); … … 220 214 { 221 215 while (!m_scriptsToExecuteAfterParsing.isEmpty()) { 222 ASSERT(! isExecutingScript());216 ASSERT(!m_scriptNestingLevel); 223 217 ASSERT(!hasParserBlockingScript()); 224 218 ASSERT(m_scriptsToExecuteAfterParsing.first().cachedScript()); … … 281 275 ASSERT(!hasParserBlockingScript()); 282 276 { 277 InsertionPointRecord insertionPointRecord(m_host->inputStream()); 278 NestingLevelIncrementer nestingLevelIncrementer(m_scriptNestingLevel); 279 283 280 ScriptElement* scriptElement = toScriptElement(script); 284 281 … … 290 287 if (!scriptElement) 291 288 return; 292 293 #if ENABLE(MUTATION_OBSERVERS)294 // FIXME: This may be too agressive as we always deliver mutations at295 // every script element, even if it's not ready to execute yet. There's296 // unfortuantely no obvious way to tell if prepareScript is going to297 // execute the script from out here.298 if (!isExecutingScript())299 MutationObserver::deliverAllMutations();300 #endif301 302 InsertionPointRecord insertionPointRecord(m_host->inputStream());303 NestingLevelIncrementer nestingLevelIncrementer(m_scriptNestingLevel);304 289 305 290 scriptElement->prepareScript(scriptStartPosition);
Note: See TracChangeset
for help on using the changeset viewer.