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