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 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2219 frameView->performScrollAnchoringAdjustments(); | 2219 frameView->performScrollAnchoringAdjustments(); |
2220 } | 2220 } |
2221 | 2221 |
2222 void Document::layoutUpdated() { | 2222 void Document::layoutUpdated() { |
2223 // Plugins can run script inside layout which can detach the page. | 2223 // Plugins can run script inside layout which can detach the page. |
2224 // TODO(esprehn): Can this still happen now that all plugins are out of | 2224 // TODO(esprehn): Can this still happen now that all plugins are out of |
2225 // process? | 2225 // process? |
2226 if (frame() && frame()->page()) | 2226 if (frame() && frame()->page()) |
2227 frame()->page()->chromeClient().layoutUpdated(frame()); | 2227 frame()->page()->chromeClient().layoutUpdated(frame()); |
2228 | 2228 |
2229 markers().invalidateRectsForAllMarkers(); | 2229 markers().invalidateRectsForAllTextMatchMarkers(); |
2230 | 2230 |
2231 // The layout system may perform layouts with pending stylesheets. When | 2231 // The layout system may perform layouts with pending stylesheets. When |
2232 // recording first layout time, we ignore these layouts, since painting is | 2232 // recording first layout time, we ignore these layouts, since painting is |
2233 // suppressed for them. We're interested in tracking the time of the | 2233 // suppressed for them. We're interested in tracking the time of the |
2234 // first real or 'paintable' layout. | 2234 // first real or 'paintable' layout. |
2235 // TODO(esprehn): This doesn't really make sense, why not track the first | 2235 // TODO(esprehn): This doesn't really make sense, why not track the first |
2236 // beginFrame? This will catch the first layout in a page that does lots | 2236 // beginFrame? This will catch the first layout in a page that does lots |
2237 // of layout thrashing even though that layout might not be followed by | 2237 // of layout thrashing even though that layout might not be followed by |
2238 // a paint for many seconds. | 2238 // a paint for many seconds. |
2239 if (isRenderingReady() && body() && | 2239 if (isRenderingReady() && body() && |
(...skipping 4421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6661 } | 6661 } |
6662 | 6662 |
6663 void showLiveDocumentInstances() { | 6663 void showLiveDocumentInstances() { |
6664 WeakDocumentSet& set = liveDocumentSet(); | 6664 WeakDocumentSet& set = liveDocumentSet(); |
6665 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6665 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6666 for (blink::Document* document : set) | 6666 for (blink::Document* document : set) |
6667 fprintf(stderr, "- Document %p URL: %s\n", document, | 6667 fprintf(stderr, "- Document %p URL: %s\n", document, |
6668 document->url().getString().utf8().data()); | 6668 document->url().getString().utf8().data()); |
6669 } | 6669 } |
6670 #endif | 6670 #endif |
OLD | NEW |