Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: sky/engine/core/dom/Document.cpp

Issue 791023006: Delete invalidateTreeIfNeeded. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 if (didLayoutWithPendingStylesheets()) { 1646 if (didLayoutWithPendingStylesheets()) {
1647 // We need to manually repaint because we avoid doing all repaints in la yout or style 1647 // 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. 1648 // recalc while sheets are still loading to avoid FOUC.
1649 m_pendingSheetLayout = IgnoreLayoutWithPendingSheets; 1649 m_pendingSheetLayout = IgnoreLayoutWithPendingSheets;
1650
1651 ASSERT(renderView() || importsController());
1652 if (renderView())
1653 renderView()->setShouldDoFullPaintInvalidation(true);
1654 } 1650 }
1655 } 1651 }
1656 1652
1657 void Document::setHoverNode(PassRefPtr<Node> newHoverNode) 1653 void Document::setHoverNode(PassRefPtr<Node> newHoverNode)
1658 { 1654 {
1659 m_hoverNode = newHoverNode; 1655 m_hoverNode = newHoverNode;
1660 } 1656 }
1661 1657
1662 void Document::setActiveHoverElement(PassRefPtr<Element> newActiveElement) 1658 void Document::setActiveHoverElement(PassRefPtr<Element> newActiveElement)
1663 { 1659 {
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
2711 using namespace blink; 2707 using namespace blink;
2712 void showLiveDocumentInstances() 2708 void showLiveDocumentInstances()
2713 { 2709 {
2714 WeakDocumentSet& set = liveDocumentSet(); 2710 WeakDocumentSet& set = liveDocumentSet();
2715 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 2711 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
2716 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 2712 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()); 2713 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
2718 } 2714 }
2719 } 2715 }
2720 #endif 2716 #endif
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/Element.cpp » ('j') | sky/engine/core/rendering/RenderObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698