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

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

Issue 2665823002: Invalidate caret during paint invalidation (Closed)
Patch Set: - Created 3 years, 10 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 4227 matching lines...) Expand 10 before | Expand all | Expand 10 after
4238 4238
4239 notifyNodeWillBeRemoved(n); 4239 notifyNodeWillBeRemoved(n);
4240 4240
4241 if (containsV1ShadowTree()) 4241 if (containsV1ShadowTree())
4242 n.checkSlotChangeBeforeRemoved(); 4242 n.checkSlotChangeBeforeRemoved();
4243 4243
4244 if (n.inActiveDocument() && n.isElementNode()) 4244 if (n.inActiveDocument() && n.isElementNode())
4245 styleEngine().elementWillBeRemoved(toElement(n)); 4245 styleEngine().elementWillBeRemoved(toElement(n));
4246 } 4246 }
4247 4247
4248 void Document::dataWillChange(const CharacterData& characterData) {
4249 if (LocalFrame* frame = this->frame())
4250 frame->selection().dataWillChange(characterData);
4251 }
4252
4253 void Document::didInsertText(Node* text, unsigned offset, unsigned length) { 4248 void Document::didInsertText(Node* text, unsigned offset, unsigned length) {
4254 for (Range* range : m_ranges) 4249 for (Range* range : m_ranges)
4255 range->didInsertText(text, offset, length); 4250 range->didInsertText(text, offset, length);
4256 4251
4257 m_markers->shiftMarkers(text, offset, length); 4252 m_markers->shiftMarkers(text, offset, length);
4258 } 4253 }
4259 4254
4260 void Document::didRemoveText(Node* text, unsigned offset, unsigned length) { 4255 void Document::didRemoveText(Node* text, unsigned offset, unsigned length) {
4261 for (Range* range : m_ranges) 4256 for (Range* range : m_ranges)
4262 range->didRemoveText(text, offset, length); 4257 range->didRemoveText(text, offset, length);
(...skipping 2306 matching lines...) Expand 10 before | Expand all | Expand 10 after
6569 } 6564 }
6570 6565
6571 void showLiveDocumentInstances() { 6566 void showLiveDocumentInstances() {
6572 WeakDocumentSet& set = liveDocumentSet(); 6567 WeakDocumentSet& set = liveDocumentSet();
6573 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6568 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6574 for (blink::Document* document : set) 6569 for (blink::Document* document : set)
6575 fprintf(stderr, "- Document %p URL: %s\n", document, 6570 fprintf(stderr, "- Document %p URL: %s\n", document,
6576 document->url().getString().utf8().data()); 6571 document->url().getString().utf8().data());
6577 } 6572 }
6578 #endif 6573 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698