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