Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2622193002: Dispatch slotchange events in "notify mutation observers" steps (Closed)
Patch Set: fixed Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
(...skipping 2432 matching lines...) Expand 10 before | Expand all | Expand 10 after
2443 // ExecutionContext. 2443 // ExecutionContext.
2444 if (m_domWindow) 2444 if (m_domWindow)
2445 m_domWindow->clearEventQueue(); 2445 m_domWindow->clearEventQueue();
2446 2446
2447 if (m_layoutView) 2447 if (m_layoutView)
2448 m_layoutView->setIsInWindow(false); 2448 m_layoutView->setIsInWindow(false);
2449 2449
2450 if (registrationContext()) 2450 if (registrationContext())
2451 registrationContext()->documentWasDetached(); 2451 registrationContext()->documentWasDetached();
2452 2452
2453 MutationObserver::cleanSlotChangeList(*this);
2454
2453 m_hoverNode = nullptr; 2455 m_hoverNode = nullptr;
2454 m_activeHoverElement = nullptr; 2456 m_activeHoverElement = nullptr;
2455 m_autofocusElement = nullptr; 2457 m_autofocusElement = nullptr;
2456 2458
2457 if (m_focusedElement.get()) { 2459 if (m_focusedElement.get()) {
2458 Element* oldFocusedElement = m_focusedElement; 2460 Element* oldFocusedElement = m_focusedElement;
2459 m_focusedElement = nullptr; 2461 m_focusedElement = nullptr;
2460 if (frameHost()) 2462 if (frameHost())
2461 frameHost()->chromeClient().focusedNodeChanged(oldFocusedElement, 2463 frameHost()->chromeClient().focusedNodeChanged(oldFocusedElement,
2462 nullptr); 2464 nullptr);
(...skipping 4052 matching lines...) Expand 10 before | Expand all | Expand 10 after
6515 } 6517 }
6516 6518
6517 void showLiveDocumentInstances() { 6519 void showLiveDocumentInstances() {
6518 WeakDocumentSet& set = liveDocumentSet(); 6520 WeakDocumentSet& set = liveDocumentSet();
6519 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6521 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6520 for (Document* document : set) 6522 for (Document* document : set)
6521 fprintf(stderr, "- Document %p URL: %s\n", document, 6523 fprintf(stderr, "- Document %p URL: %s\n", document,
6522 document->url().getString().utf8().data()); 6524 document->url().getString().utf8().data());
6523 } 6525 }
6524 #endif 6526 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/dom/MutationObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698