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

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

Issue 2763893002: [WIP] Clean up DocumentMarkerController API (Closed)
Patch Set: Move CompositionMarkerList::at() into previous CL Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2211 matching lines...) Expand 10 before | Expand all | Expand 10 after
2222 frameView->performScrollAnchoringAdjustments(); 2222 frameView->performScrollAnchoringAdjustments();
2223 } 2223 }
2224 2224
2225 void Document::layoutUpdated() { 2225 void Document::layoutUpdated() {
2226 // Plugins can run script inside layout which can detach the page. 2226 // Plugins can run script inside layout which can detach the page.
2227 // TODO(esprehn): Can this still happen now that all plugins are out of 2227 // TODO(esprehn): Can this still happen now that all plugins are out of
2228 // process? 2228 // process?
2229 if (frame() && frame()->page()) 2229 if (frame() && frame()->page())
2230 frame()->page()->chromeClient().layoutUpdated(frame()); 2230 frame()->page()->chromeClient().layoutUpdated(frame());
2231 2231
2232 markers().invalidateRectsForAllMarkers(); 2232 markers().invalidateRectsForAllTextMatchMarkers();
2233 2233
2234 // The layout system may perform layouts with pending stylesheets. When 2234 // The layout system may perform layouts with pending stylesheets. When
2235 // recording first layout time, we ignore these layouts, since painting is 2235 // recording first layout time, we ignore these layouts, since painting is
2236 // suppressed for them. We're interested in tracking the time of the 2236 // suppressed for them. We're interested in tracking the time of the
2237 // first real or 'paintable' layout. 2237 // first real or 'paintable' layout.
2238 // TODO(esprehn): This doesn't really make sense, why not track the first 2238 // TODO(esprehn): This doesn't really make sense, why not track the first
2239 // beginFrame? This will catch the first layout in a page that does lots 2239 // beginFrame? This will catch the first layout in a page that does lots
2240 // of layout thrashing even though that layout might not be followed by 2240 // of layout thrashing even though that layout might not be followed by
2241 // a paint for many seconds. 2241 // a paint for many seconds.
2242 if (isRenderingReady() && body() && 2242 if (isRenderingReady() && body() &&
(...skipping 4398 matching lines...) Expand 10 before | Expand all | Expand 10 after
6641 } 6641 }
6642 6642
6643 void showLiveDocumentInstances() { 6643 void showLiveDocumentInstances() {
6644 WeakDocumentSet& set = liveDocumentSet(); 6644 WeakDocumentSet& set = liveDocumentSet();
6645 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6645 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6646 for (blink::Document* document : set) 6646 for (blink::Document* document : set)
6647 fprintf(stderr, "- Document %p URL: %s\n", document, 6647 fprintf(stderr, "- Document %p URL: %s\n", document,
6648 document->url().getString().utf8().data()); 6648 document->url().getString().utf8().data());
6649 } 6649 }
6650 #endif 6650 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698