| 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 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1636 | 1636 |
| 1637 void Document::styleResolverChanged() | 1637 void Document::styleResolverChanged() |
| 1638 { | 1638 { |
| 1639 // styleResolverChanged() can be invoked during Document destruction. | 1639 // styleResolverChanged() can be invoked during Document destruction. |
| 1640 // We just skip that case. | 1640 // We just skip that case. |
| 1641 if (!m_styleEngine) | 1641 if (!m_styleEngine) |
| 1642 return; | 1642 return; |
| 1643 | 1643 |
| 1644 m_styleEngine->resolverChanged(); | 1644 m_styleEngine->resolverChanged(); |
| 1645 | 1645 |
| 1646 // FIXME(sky): didLayoutWithPendingStylesheets never returns true anymore. R
emove this. |
| 1646 if (didLayoutWithPendingStylesheets()) { | 1647 if (didLayoutWithPendingStylesheets()) { |
| 1647 // We need to manually repaint because we avoid doing all repaints in la
yout or style | 1648 // We need to manually repaint because we avoid doing all repaints in la
yout or style |
| 1648 // recalc while sheets are still loading to avoid FOUC. | 1649 // recalc while sheets are still loading to avoid FOUC. |
| 1649 m_pendingSheetLayout = IgnoreLayoutWithPendingSheets; | 1650 m_pendingSheetLayout = IgnoreLayoutWithPendingSheets; |
| 1650 | |
| 1651 ASSERT(renderView() || importsController()); | |
| 1652 if (renderView()) | |
| 1653 renderView()->setShouldDoFullPaintInvalidation(true); | |
| 1654 } | 1651 } |
| 1655 } | 1652 } |
| 1656 | 1653 |
| 1657 void Document::setHoverNode(PassRefPtr<Node> newHoverNode) | 1654 void Document::setHoverNode(PassRefPtr<Node> newHoverNode) |
| 1658 { | 1655 { |
| 1659 m_hoverNode = newHoverNode; | 1656 m_hoverNode = newHoverNode; |
| 1660 } | 1657 } |
| 1661 | 1658 |
| 1662 void Document::setActiveHoverElement(PassRefPtr<Element> newActiveElement) | 1659 void Document::setActiveHoverElement(PassRefPtr<Element> newActiveElement) |
| 1663 { | 1660 { |
| (...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2711 using namespace blink; | 2708 using namespace blink; |
| 2712 void showLiveDocumentInstances() | 2709 void showLiveDocumentInstances() |
| 2713 { | 2710 { |
| 2714 WeakDocumentSet& set = liveDocumentSet(); | 2711 WeakDocumentSet& set = liveDocumentSet(); |
| 2715 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 2712 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 2716 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 2713 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 2717 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 2714 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 2718 } | 2715 } |
| 2719 } | 2716 } |
| 2720 #endif | 2717 #endif |
| OLD | NEW |