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

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

Issue 2592423002: Reschedule sibling invalidations as descendant on removal. (Closed)
Patch Set: Moved DCHECK. Created 3 years, 12 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 4200 matching lines...) Expand 10 before | Expand all | Expand 10 after
4211 range->nodeWillBeRemoved(n); 4211 range->nodeWillBeRemoved(n);
4212 4212
4213 notifyNodeWillBeRemoved(n); 4213 notifyNodeWillBeRemoved(n);
4214 4214
4215 if (LocalFrame* frame = this->frame()) { 4215 if (LocalFrame* frame = this->frame()) {
4216 frame->selection().nodeWillBeRemoved(n); 4216 frame->selection().nodeWillBeRemoved(n);
4217 } 4217 }
4218 4218
4219 if (containsV1ShadowTree()) 4219 if (containsV1ShadowTree())
4220 n.checkSlotChangeBeforeRemoved(); 4220 n.checkSlotChangeBeforeRemoved();
4221
4222 if (n.inActiveDocument() && n.isElementNode())
4223 styleEngine().elementWillBeRemoved(toElement(n));
4221 } 4224 }
4222 4225
4223 void Document::dataWillChange(const CharacterData& characterData) { 4226 void Document::dataWillChange(const CharacterData& characterData) {
4224 if (LocalFrame* frame = this->frame()) 4227 if (LocalFrame* frame = this->frame())
4225 frame->selection().dataWillChange(characterData); 4228 frame->selection().dataWillChange(characterData);
4226 } 4229 }
4227 4230
4228 void Document::didInsertText(Node* text, unsigned offset, unsigned length) { 4231 void Document::didInsertText(Node* text, unsigned offset, unsigned length) {
4229 for (Range* range : m_ranges) 4232 for (Range* range : m_ranges)
4230 range->didInsertText(text, offset, length); 4233 range->didInsertText(text, offset, length);
(...skipping 2348 matching lines...) Expand 10 before | Expand all | Expand 10 after
6579 } 6582 }
6580 6583
6581 void showLiveDocumentInstances() { 6584 void showLiveDocumentInstances() {
6582 WeakDocumentSet& set = liveDocumentSet(); 6585 WeakDocumentSet& set = liveDocumentSet();
6583 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6586 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6584 for (Document* document : set) 6587 for (Document* document : set)
6585 fprintf(stderr, "- Document %p URL: %s\n", document, 6588 fprintf(stderr, "- Document %p URL: %s\n", document,
6586 document->url().getString().utf8().data()); 6589 document->url().getString().utf8().data());
6587 } 6590 }
6588 #endif 6591 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698