OLD | NEW |
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 if (style.Unique() || | 124 if (style.Unique() || |
125 (style.StyleType() != kPseudoIdNone && parent_style.Unique())) | 125 (style.StyleType() != kPseudoIdNone && parent_style.Unique())) |
126 return false; | 126 return false; |
127 if (style.Zoom() != ComputedStyle::InitialZoom()) | 127 if (style.Zoom() != ComputedStyle::InitialZoom()) |
128 return false; | 128 return false; |
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() || parent_style.HasExplicitlyInheritedProperties()) | 135 if (!state.ParentNode() || parent_style.HasExplicitlyInheritedProperties()) |
136 return false; | 136 return false; |
137 if (style.HasVariableReferenceFromNonInheritedProperty()) | 137 if (style.HasVariableReferenceFromNonInheritedProperty()) |
138 return false; | 138 return false; |
139 return true; | 139 return true; |
140 } | 140 } |
141 | 141 |
142 DEFINE_TRACE(MatchedPropertiesCache) { | 142 DEFINE_TRACE(MatchedPropertiesCache) { |
143 visitor->Trace(cache_); | 143 visitor->Trace(cache_); |
144 } | 144 } |
145 | 145 |
146 } // namespace blink | 146 } // namespace blink |
OLD | NEW |