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

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

Issue 2891173002: [DMC #9] Rename DocumentMarkerController::InvalidateRects*() methods (Closed)
Patch Set: Created 3 years, 7 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 2261 matching lines...) Expand 10 before | Expand all | Expand 10 after
2272 frame_view->PerformScrollAnchoringAdjustments(); 2272 frame_view->PerformScrollAnchoringAdjustments();
2273 } 2273 }
2274 2274
2275 void Document::LayoutUpdated() { 2275 void Document::LayoutUpdated() {
2276 // Plugins can run script inside layout which can detach the page. 2276 // Plugins can run script inside layout which can detach the page.
2277 // TODO(esprehn): Can this still happen now that all plugins are out of 2277 // TODO(esprehn): Can this still happen now that all plugins are out of
2278 // process? 2278 // process?
2279 if (GetFrame() && GetFrame()->GetPage()) 2279 if (GetFrame() && GetFrame()->GetPage())
2280 GetFrame()->GetPage()->GetChromeClient().LayoutUpdated(GetFrame()); 2280 GetFrame()->GetPage()->GetChromeClient().LayoutUpdated(GetFrame());
2281 2281
2282 Markers().InvalidateRectsForAllMarkers(); 2282 Markers().InvalidateRectsForAllTextMatchMarkers();
2283 2283
2284 // The layout system may perform layouts with pending stylesheets. When 2284 // The layout system may perform layouts with pending stylesheets. When
2285 // recording first layout time, we ignore these layouts, since painting is 2285 // recording first layout time, we ignore these layouts, since painting is
2286 // suppressed for them. We're interested in tracking the time of the 2286 // suppressed for them. We're interested in tracking the time of the
2287 // first real or 'paintable' layout. 2287 // first real or 'paintable' layout.
2288 // TODO(esprehn): This doesn't really make sense, why not track the first 2288 // TODO(esprehn): This doesn't really make sense, why not track the first
2289 // beginFrame? This will catch the first layout in a page that does lots 2289 // beginFrame? This will catch the first layout in a page that does lots
2290 // of layout thrashing even though that layout might not be followed by 2290 // of layout thrashing even though that layout might not be followed by
2291 // a paint for many seconds. 2291 // a paint for many seconds.
2292 if (IsRenderingReady() && body() && 2292 if (IsRenderingReady() && body() &&
(...skipping 4521 matching lines...) Expand 10 before | Expand all | Expand 10 after
6814 } 6814 }
6815 6815
6816 void showLiveDocumentInstances() { 6816 void showLiveDocumentInstances() {
6817 WeakDocumentSet& set = liveDocumentSet(); 6817 WeakDocumentSet& set = liveDocumentSet();
6818 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6818 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6819 for (blink::Document* document : set) 6819 for (blink::Document* document : set)
6820 fprintf(stderr, "- Document %p URL: %s\n", document, 6820 fprintf(stderr, "- Document %p URL: %s\n", document,
6821 document->Url().GetString().Utf8().data()); 6821 document->Url().GetString().Utf8().data());
6822 } 6822 }
6823 #endif 6823 #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