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 2261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |