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 1810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1821 return; | 1821 return; |
1822 | 1822 |
1823 // Entering here from inside layout, paint etc. would be catastrophic since | 1823 // Entering here from inside layout, paint etc. would be catastrophic since |
1824 // recalcStyle can tear down the layout tree or (unfortunately) run | 1824 // recalcStyle can tear down the layout tree or (unfortunately) run |
1825 // script. Kill the whole layoutObject if someone managed to get into here in | 1825 // script. Kill the whole layoutObject if someone managed to get into here in |
1826 // states not allowing tree mutations. | 1826 // states not allowing tree mutations. |
1827 RELEASE_ASSERT(lifecycle().stateAllowsTreeMutations()); | 1827 RELEASE_ASSERT(lifecycle().stateAllowsTreeMutations()); |
1828 | 1828 |
1829 TRACE_EVENT_BEGIN1("blink,devtools.timeline", "UpdateLayoutTree", "beginData", | 1829 TRACE_EVENT_BEGIN1("blink,devtools.timeline", "UpdateLayoutTree", "beginData", |
1830 InspectorRecalculateStylesEvent::data(frame())); | 1830 InspectorRecalculateStylesEvent::data(frame())); |
1831 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "UpdateLayoutTree"); | |
1832 | 1831 |
1833 unsigned startElementCount = styleEngine().styleForElementCount(); | 1832 unsigned startElementCount = styleEngine().styleForElementCount(); |
1834 | 1833 |
1835 InspectorInstrumentation::willRecalculateStyle(this); | 1834 InspectorInstrumentation::willRecalculateStyle(this); |
1836 | 1835 |
1837 DocumentAnimations::updateAnimationTimingIfNeeded(*this); | 1836 DocumentAnimations::updateAnimationTimingIfNeeded(*this); |
1838 evaluateMediaQueryListIfNeeded(); | 1837 evaluateMediaQueryListIfNeeded(); |
1839 updateUseShadowTreesIfNeeded(); | 1838 updateUseShadowTreesIfNeeded(); |
1840 updateDistribution(); | 1839 updateDistribution(); |
1841 updateStyleInvalidationIfNeeded(); | 1840 updateStyleInvalidationIfNeeded(); |
(...skipping 4560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6402 } | 6401 } |
6403 | 6402 |
6404 void showLiveDocumentInstances() { | 6403 void showLiveDocumentInstances() { |
6405 WeakDocumentSet& set = liveDocumentSet(); | 6404 WeakDocumentSet& set = liveDocumentSet(); |
6406 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6405 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6407 for (Document* document : set) | 6406 for (Document* document : set) |
6408 fprintf(stderr, "- Document %p URL: %s\n", document, | 6407 fprintf(stderr, "- Document %p URL: %s\n", document, |
6409 document->url().getString().utf8().data()); | 6408 document->url().getString().utf8().data()); |
6410 } | 6409 } |
6411 #endif | 6410 #endif |
OLD | NEW |