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 3437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3448 // We just skip that case. | 3448 // We just skip that case. |
3449 if (!m_styleEngine) | 3449 if (!m_styleEngine) |
3450 return; | 3450 return; |
3451 | 3451 |
3452 m_styleEngine->resolverChanged(updateMode); | 3452 m_styleEngine->resolverChanged(updateMode); |
3453 | 3453 |
3454 if (didLayoutWithPendingStylesheets() && !m_styleEngine->hasPendingSheets())
{ | 3454 if (didLayoutWithPendingStylesheets() && !m_styleEngine->hasPendingSheets())
{ |
3455 // We need to manually repaint because we avoid doing all repaints in la
yout or style | 3455 // We need to manually repaint because we avoid doing all repaints in la
yout or style |
3456 // recalc while sheets are still loading to avoid FOUC. | 3456 // recalc while sheets are still loading to avoid FOUC. |
3457 m_pendingSheetLayout = IgnoreLayoutWithPendingSheets; | 3457 m_pendingSheetLayout = IgnoreLayoutWithPendingSheets; |
3458 renderView()->repaintViewAndCompositedLayers(); | 3458 |
| 3459 ASSERT(renderView() || importsController()); |
| 3460 if (renderView()) |
| 3461 renderView()->repaintViewAndCompositedLayers(); |
3459 } | 3462 } |
3460 } | 3463 } |
3461 | 3464 |
3462 void Document::styleResolverMayHaveChanged() | 3465 void Document::styleResolverMayHaveChanged() |
3463 { | 3466 { |
3464 styleResolverChanged(hasNodesWithPlaceholderStyle() ? FullStyleUpdate : Anal
yzedStyleUpdate); | 3467 styleResolverChanged(hasNodesWithPlaceholderStyle() ? FullStyleUpdate : Anal
yzedStyleUpdate); |
3465 } | 3468 } |
3466 | 3469 |
3467 void Document::setHoverNode(PassRefPtrWillBeRawPtr<Node> newHoverNode) | 3470 void Document::setHoverNode(PassRefPtrWillBeRawPtr<Node> newHoverNode) |
3468 { | 3471 { |
(...skipping 2395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5864 visitor->trace(m_compositorPendingAnimations); | 5867 visitor->trace(m_compositorPendingAnimations); |
5865 visitor->trace(m_contextDocument); | 5868 visitor->trace(m_contextDocument); |
5866 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); | 5869 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); |
5867 DocumentSupplementable::trace(visitor); | 5870 DocumentSupplementable::trace(visitor); |
5868 TreeScope::trace(visitor); | 5871 TreeScope::trace(visitor); |
5869 ContainerNode::trace(visitor); | 5872 ContainerNode::trace(visitor); |
5870 ExecutionContext::trace(visitor); | 5873 ExecutionContext::trace(visitor); |
5871 } | 5874 } |
5872 | 5875 |
5873 } // namespace WebCore | 5876 } // namespace WebCore |
OLD | NEW |