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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.cpp

Issue 2401343002: Tracking filter mutation via SVGElementProxy (Closed)
Patch Set: referenceChanged -> proxiedElementChanged Created 4 years, 1 month 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) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
10 * (http://www.torchmobile.com/) 10 * (http://www.torchmobile.com/)
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 if (style.getWritingMode() != ComputedStyle::initialWritingMode() || 129 if (style.getWritingMode() != ComputedStyle::initialWritingMode() ||
130 style.direction() != ComputedStyle::initialDirection()) 130 style.direction() != ComputedStyle::initialDirection())
131 return false; 131 return false;
132 // The cache assumes static knowledge about which properties are inherited. 132 // The cache assumes static knowledge about which properties are inherited.
133 // Without a flat tree parent, StyleBuilder::applyProperty will not 133 // Without a flat tree parent, StyleBuilder::applyProperty will not
134 // setHasExplicitlyInheritedProperties on the parent style. 134 // setHasExplicitlyInheritedProperties on the parent style.
135 if (!state.parentNode() || parentStyle.hasExplicitlyInheritedProperties()) 135 if (!state.parentNode() || parentStyle.hasExplicitlyInheritedProperties())
136 return false; 136 return false;
137 if (style.hasVariableReferenceFromNonInheritedProperty()) 137 if (style.hasVariableReferenceFromNonInheritedProperty())
138 return false; 138 return false;
139 if (style.hasFilter() && style.filter().hasReferenceFilter())
esprehn 2016/10/25 01:18:42 Hmm, can you explain why you need to turn off matc
fs 2016/10/25 15:00:53 Because mutations to the DOM tree does not reflect
140 return false;
139 return true; 141 return true;
140 } 142 }
141 143
142 DEFINE_TRACE(MatchedPropertiesCache) { 144 DEFINE_TRACE(MatchedPropertiesCache) {
143 visitor->trace(m_cache); 145 visitor->trace(m_cache);
144 } 146 }
145 147
146 } // namespace blink 148 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698