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

Side by Side Diff: Source/core/dom/Document.cpp

Issue 319613004: Rename scheduleLayerUpdate now that it's only used for SVG filters. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename all the things Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 return true; 1606 return true;
1607 return false; 1607 return false;
1608 } 1608 }
1609 1609
1610 bool Document::needsFullRenderTreeUpdate() const 1610 bool Document::needsFullRenderTreeUpdate() const
1611 { 1611 {
1612 if (!isActive() || !view()) 1612 if (!isActive() || !view())
1613 return false; 1613 return false;
1614 if (!m_useElementsNeedingUpdate.isEmpty()) 1614 if (!m_useElementsNeedingUpdate.isEmpty())
1615 return true; 1615 return true;
1616 if (!m_layerUpdateElements.isEmpty()) 1616 if (!m_layerUpdateSVGFilterElements.isEmpty())
1617 return true; 1617 return true;
1618 if (needsStyleRecalc()) 1618 if (needsStyleRecalc())
1619 return true; 1619 return true;
1620 if (needsStyleInvalidation()) 1620 if (needsStyleInvalidation())
1621 return true; 1621 return true;
1622 // FIXME: The childNeedsDistributionRecalc bit means either self or children , we should fix that. 1622 // FIXME: The childNeedsDistributionRecalc bit means either self or children , we should fix that.
1623 if (childNeedsDistributionRecalc()) 1623 if (childNeedsDistributionRecalc())
1624 return true; 1624 return true;
1625 if (DocumentAnimations::needsOutdatedAnimationPlayerUpdate(*this)) 1625 if (DocumentAnimations::needsOutdatedAnimationPlayerUpdate(*this))
1626 return true; 1626 return true;
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
2089 m_isViewSource = isViewSource; 2089 m_isViewSource = isViewSource;
2090 if (!m_isViewSource) 2090 if (!m_isViewSource)
2091 return; 2091 return;
2092 2092
2093 setSecurityOrigin(SecurityOrigin::createUnique()); 2093 setSecurityOrigin(SecurityOrigin::createUnique());
2094 didUpdateSecurityOrigin(); 2094 didUpdateSecurityOrigin();
2095 } 2095 }
2096 2096
2097 bool Document::dirtyElementsForLayerUpdate() 2097 bool Document::dirtyElementsForLayerUpdate()
2098 { 2098 {
2099 if (m_layerUpdateElements.isEmpty()) 2099 if (m_layerUpdateSVGFilterElements.isEmpty())
2100 return false; 2100 return false;
2101 HashSet<Element*>::iterator end = m_layerUpdateElements.end(); 2101 HashSet<Element*>::iterator end = m_layerUpdateSVGFilterElements.end();
2102 for (HashSet<Element*>::iterator it = m_layerUpdateElements.begin(); it != e nd; ++it) 2102 for (HashSet<Element*>::iterator it = m_layerUpdateSVGFilterElements.begin() ; it != end; ++it)
2103 (*it)->setNeedsStyleRecalc(LocalStyleChange); 2103 (*it)->setNeedsStyleRecalc(LocalStyleChange);
2104 m_layerUpdateElements.clear(); 2104 m_layerUpdateSVGFilterElements.clear();
2105 return true; 2105 return true;
2106 } 2106 }
2107 2107
2108 void Document::scheduleLayerUpdate(Element& element) 2108 void Document::scheduleSVGFilterLayerUpdateHack(Element& element)
2109 { 2109 {
2110 if (element.styleChangeType() == NeedsReattachStyleChange) 2110 if (element.styleChangeType() == NeedsReattachStyleChange)
2111 return; 2111 return;
2112 element.setNeedsLayerUpdate(); 2112 element.setSVGFilterNeedsLayerUpdate();
2113 m_layerUpdateElements.add(&element); 2113 m_layerUpdateSVGFilterElements.add(&element);
2114 scheduleRenderTreeUpdateIfNeeded(); 2114 scheduleRenderTreeUpdateIfNeeded();
2115 } 2115 }
2116 2116
2117 void Document::unscheduleLayerUpdate(Element& element) 2117 void Document::unscheduleSVGFilterLayerUpdateHack(Element& element)
2118 { 2118 {
2119 element.clearNeedsLayerUpdate(); 2119 element.clearSVGFilterNeedsLayerUpdate();
2120 m_layerUpdateElements.remove(&element); 2120 m_layerUpdateSVGFilterElements.remove(&element);
2121 } 2121 }
2122 2122
2123 void Document::scheduleUseShadowTreeUpdate(SVGUseElement& element) 2123 void Document::scheduleUseShadowTreeUpdate(SVGUseElement& element)
2124 { 2124 {
2125 m_useElementsNeedingUpdate.add(&element); 2125 m_useElementsNeedingUpdate.add(&element);
2126 scheduleRenderTreeUpdateIfNeeded(); 2126 scheduleRenderTreeUpdateIfNeeded();
2127 } 2127 }
2128 2128
2129 void Document::unscheduleUseShadowTreeUpdate(SVGUseElement& element) 2129 void Document::unscheduleUseShadowTreeUpdate(SVGUseElement& element)
2130 { 2130 {
(...skipping 3681 matching lines...) Expand 10 before | Expand all | Expand 10 after
5812 visitor->trace(m_compositorPendingAnimations); 5812 visitor->trace(m_compositorPendingAnimations);
5813 visitor->trace(m_contextDocument); 5813 visitor->trace(m_contextDocument);
5814 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5814 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5815 DocumentSupplementable::trace(visitor); 5815 DocumentSupplementable::trace(visitor);
5816 TreeScope::trace(visitor); 5816 TreeScope::trace(visitor);
5817 ContainerNode::trace(visitor); 5817 ContainerNode::trace(visitor);
5818 ExecutionContext::trace(visitor); 5818 ExecutionContext::trace(visitor);
5819 } 5819 }
5820 5820
5821 } // namespace WebCore 5821 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698