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 | 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 Loading... | |
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)); | |
esprehn
2016/12/22 17:19:59
Hooking here is unusual, we'd normally do Element:
rune
2016/12/23 00:06:37
You were thinking along the lines of having a will
| |
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 Loading... | |
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 |
OLD | NEW |