| 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 4230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4241 | 4241 |
| 4242 notifyNodeWillBeRemoved(n); | 4242 notifyNodeWillBeRemoved(n); |
| 4243 | 4243 |
| 4244 if (containsV1ShadowTree()) | 4244 if (containsV1ShadowTree()) |
| 4245 n.checkSlotChangeBeforeRemoved(); | 4245 n.checkSlotChangeBeforeRemoved(); |
| 4246 | 4246 |
| 4247 if (n.inActiveDocument() && n.isElementNode()) | 4247 if (n.inActiveDocument() && n.isElementNode()) |
| 4248 styleEngine().elementWillBeRemoved(toElement(n)); | 4248 styleEngine().elementWillBeRemoved(toElement(n)); |
| 4249 } | 4249 } |
| 4250 | 4250 |
| 4251 void Document::dataWillChange(const CharacterData& characterData) { | |
| 4252 if (LocalFrame* frame = this->frame()) | |
| 4253 frame->selection().dataWillChange(characterData); | |
| 4254 } | |
| 4255 | |
| 4256 void Document::didInsertText(Node* text, unsigned offset, unsigned length) { | 4251 void Document::didInsertText(Node* text, unsigned offset, unsigned length) { |
| 4257 for (Range* range : m_ranges) | 4252 for (Range* range : m_ranges) |
| 4258 range->didInsertText(text, offset, length); | 4253 range->didInsertText(text, offset, length); |
| 4259 | 4254 |
| 4260 m_markers->shiftMarkers(text, offset, length); | 4255 m_markers->shiftMarkers(text, offset, length); |
| 4261 } | 4256 } |
| 4262 | 4257 |
| 4263 void Document::didRemoveText(Node* text, unsigned offset, unsigned length) { | 4258 void Document::didRemoveText(Node* text, unsigned offset, unsigned length) { |
| 4264 for (Range* range : m_ranges) | 4259 for (Range* range : m_ranges) |
| 4265 range->didRemoveText(text, offset, length); | 4260 range->didRemoveText(text, offset, length); |
| (...skipping 2314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6580 } | 6575 } |
| 6581 | 6576 |
| 6582 void showLiveDocumentInstances() { | 6577 void showLiveDocumentInstances() { |
| 6583 WeakDocumentSet& set = liveDocumentSet(); | 6578 WeakDocumentSet& set = liveDocumentSet(); |
| 6584 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6579 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6585 for (blink::Document* document : set) | 6580 for (blink::Document* document : set) |
| 6586 fprintf(stderr, "- Document %p URL: %s\n", document, | 6581 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6587 document->url().getString().utf8().data()); | 6582 document->url().getString().utf8().data()); |
| 6588 } | 6583 } |
| 6589 #endif | 6584 #endif |
| OLD | NEW |