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 r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1519 return false; | 1519 return false; |
1520 return true; | 1520 return true; |
1521 } | 1521 } |
1522 | 1522 |
1523 void Document::scheduleLayoutTreeUpdate() | 1523 void Document::scheduleLayoutTreeUpdate() |
1524 { | 1524 { |
1525 ASSERT(!hasPendingStyleRecalc()); | 1525 ASSERT(!hasPendingStyleRecalc()); |
1526 ASSERT(shouldScheduleLayoutTreeUpdate()); | 1526 ASSERT(shouldScheduleLayoutTreeUpdate()); |
1527 ASSERT(needsLayoutTreeUpdate()); | 1527 ASSERT(needsLayoutTreeUpdate()); |
1528 | 1528 |
1529 page()->animator().scheduleVisualUpdate(); | 1529 if (!view() || !view()->shouldThrottleRenderingPipeline()) |
| 1530 page()->animator().scheduleVisualUpdate(); |
1530 m_lifecycle.ensureStateAtMost(DocumentLifecycle::VisualUpdatePending); | 1531 m_lifecycle.ensureStateAtMost(DocumentLifecycle::VisualUpdatePending); |
1531 | 1532 |
1532 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Schedu
leStyleRecalculation", TRACE_EVENT_SCOPE_THREAD, "data", InspectorRecalculateSty
lesEvent::data(frame())); | 1533 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Schedu
leStyleRecalculation", TRACE_EVENT_SCOPE_THREAD, "data", InspectorRecalculateSty
lesEvent::data(frame())); |
1533 InspectorInstrumentation::didScheduleStyleRecalculation(this); | 1534 InspectorInstrumentation::didScheduleStyleRecalculation(this); |
1534 | 1535 |
1535 ++m_styleVersion; | 1536 ++m_styleVersion; |
1536 } | 1537 } |
1537 | 1538 |
1538 bool Document::hasPendingForcedStyleRecalc() const | 1539 bool Document::hasPendingForcedStyleRecalc() const |
1539 { | 1540 { |
(...skipping 4204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5744 #ifndef NDEBUG | 5745 #ifndef NDEBUG |
5745 using namespace blink; | 5746 using namespace blink; |
5746 void showLiveDocumentInstances() | 5747 void showLiveDocumentInstances() |
5747 { | 5748 { |
5748 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5749 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
5749 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5750 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5750 for (Document* document : set) | 5751 for (Document* document : set) |
5751 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5752 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5752 } | 5753 } |
5753 #endif | 5754 #endif |
OLD | NEW |