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 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 void RuleFeatureSet::updateInvalidationSetsForContentAttribute(const RuleData& r
uleData) | 382 void RuleFeatureSet::updateInvalidationSetsForContentAttribute(const RuleData& r
uleData) |
383 { | 383 { |
384 const StylePropertySet& propertySet = ruleData.rule()->properties(); | 384 const StylePropertySet& propertySet = ruleData.rule()->properties(); |
385 | 385 |
386 int propertyIndex = propertySet.findPropertyIndex(CSSPropertyContent); | 386 int propertyIndex = propertySet.findPropertyIndex(CSSPropertyContent); |
387 | 387 |
388 if (propertyIndex == -1) | 388 if (propertyIndex == -1) |
389 return; | 389 return; |
390 | 390 |
391 StylePropertySet::PropertyReference contentProperty = propertySet.propertyAt
(propertyIndex); | 391 StylePropertySet::PropertyReference contentProperty = propertySet.propertyAt
(propertyIndex); |
392 CSSValue* contentValue = contentProperty.value(); | 392 const CSSValue* contentValue = contentProperty.value(); |
393 | 393 |
394 if (!contentValue->isValueList()) | 394 if (!contentValue->isValueList()) |
395 return; | 395 return; |
396 | 396 |
397 for (auto& item : toCSSValueList(*contentValue)) { | 397 for (auto& item : toCSSValueList(*contentValue)) { |
398 if (!item->isFunctionValue()) | 398 if (!item->isFunctionValue()) |
399 continue; | 399 continue; |
400 const CSSFunctionValue* functionValue = toCSSFunctionValue(item.get()); | 400 const CSSFunctionValue* functionValue = toCSSFunctionValue(item.get()); |
401 if (functionValue->functionType() != CSSValueAttr) | 401 if (functionValue->functionType() != CSSValueAttr) |
402 continue; | 402 continue; |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 addFeaturesToInvalidationSet(universalSet.ensureSiblingDescendants(), de
scendantFeatures); | 876 addFeaturesToInvalidationSet(universalSet.ensureSiblingDescendants(), de
scendantFeatures); |
877 } | 877 } |
878 | 878 |
879 DEFINE_TRACE(RuleFeatureSet) | 879 DEFINE_TRACE(RuleFeatureSet) |
880 { | 880 { |
881 visitor->trace(siblingRules); | 881 visitor->trace(siblingRules); |
882 visitor->trace(uncommonAttributeRules); | 882 visitor->trace(uncommonAttributeRules); |
883 } | 883 } |
884 | 884 |
885 } // namespace blink | 885 } // namespace blink |
OLD | NEW |