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 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1540 | 1540 |
1541 InspectorInstrumentation::didScheduleStyleRecalculation(this); | 1541 InspectorInstrumentation::didScheduleStyleRecalculation(this); |
1542 } | 1542 } |
1543 | 1543 |
1544 void Document::unscheduleStyleRecalc() | 1544 void Document::unscheduleStyleRecalc() |
1545 { | 1545 { |
1546 ASSERT(!isActive() || (!needsStyleRecalc() && !childNeedsStyleRecalc())); | 1546 ASSERT(!isActive() || (!needsStyleRecalc() && !childNeedsStyleRecalc())); |
1547 m_styleRecalcTimer.stop(); | 1547 m_styleRecalcTimer.stop(); |
1548 } | 1548 } |
1549 | 1549 |
1550 bool Document::hasPendingStyleRecalc() const | |
1551 { | |
1552 return m_styleRecalcTimer.isActive() && !m_inStyleRecalc; | |
1553 } | |
1554 | |
1555 bool Document::hasPendingForcedStyleRecalc() const | 1550 bool Document::hasPendingForcedStyleRecalc() const |
1556 { | 1551 { |
1557 return hasPendingStyleRecalc() && styleChangeType() >= SubtreeStyleChange; | 1552 return m_styleRecalcTimer.isActive() && !m_inStyleRecalc && styleChangeType(
) >= SubtreeStyleChange; |
1558 } | 1553 } |
1559 | 1554 |
1560 void Document::styleRecalcTimerFired(Timer<Document>*) | 1555 void Document::styleRecalcTimerFired(Timer<Document>*) |
1561 { | 1556 { |
1562 updateStyleIfNeeded(); | 1557 updateStyleIfNeeded(); |
1563 } | 1558 } |
1564 | 1559 |
1565 void Document::updateDistributionIfNeeded() | 1560 void Document::updateDistributionIfNeeded() |
1566 { | 1561 { |
1567 if (!childNeedsDistributionRecalc()) | 1562 if (!childNeedsDistributionRecalc()) |
(...skipping 3748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5316 } | 5311 } |
5317 if (m_hasAutofocused) | 5312 if (m_hasAutofocused) |
5318 return; | 5313 return; |
5319 m_hasAutofocused = true; | 5314 m_hasAutofocused = true; |
5320 ASSERT(!m_autofocusElement); | 5315 ASSERT(!m_autofocusElement); |
5321 m_autofocusElement = element; | 5316 m_autofocusElement = element; |
5322 m_taskRunner->postTask(AutofocusTask::create()); | 5317 m_taskRunner->postTask(AutofocusTask::create()); |
5323 } | 5318 } |
5324 | 5319 |
5325 } // namespace WebCore | 5320 } // namespace WebCore |
OLD | NEW |