| 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.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights 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 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 if (propertyWhitelistType == PropertyWhitelistCue) | 1388 if (propertyWhitelistType == PropertyWhitelistCue) |
| 1389 return isValidCueStyleProperty(property) && !shouldIgnoreTextTrackAuthor
Style(document); | 1389 return isValidCueStyleProperty(property) && !shouldIgnoreTextTrackAuthor
Style(document); |
| 1390 | 1390 |
| 1391 ASSERT_NOT_REACHED(); | 1391 ASSERT_NOT_REACHED(); |
| 1392 return true; | 1392 return true; |
| 1393 } | 1393 } |
| 1394 | 1394 |
| 1395 // This method expands the 'all' shorthand property to longhand properties | 1395 // This method expands the 'all' shorthand property to longhand properties |
| 1396 // and applies the expanded longhand properties. | 1396 // and applies the expanded longhand properties. |
| 1397 template <CSSPropertyPriority priority> | 1397 template <CSSPropertyPriority priority> |
| 1398 void StyleResolver::applyAllProperty(StyleResolverState& state, CSSValue* allVal
ue, bool inheritedOnly, PropertyWhitelistType propertyWhitelistType) | 1398 void StyleResolver::applyAllProperty(StyleResolverState& state, const CSSValue*
allValue, bool inheritedOnly, PropertyWhitelistType propertyWhitelistType) |
| 1399 { | 1399 { |
| 1400 // The 'all' property doesn't apply to variables: | 1400 // The 'all' property doesn't apply to variables: |
| 1401 // https://drafts.csswg.org/css-variables/#defining-variables | 1401 // https://drafts.csswg.org/css-variables/#defining-variables |
| 1402 if (priority == ResolveVariables) | 1402 if (priority == ResolveVariables) |
| 1403 return; | 1403 return; |
| 1404 | 1404 |
| 1405 unsigned startCSSProperty = CSSPropertyPriorityData<priority>::first(); | 1405 unsigned startCSSProperty = CSSPropertyPriorityData<priority>::first(); |
| 1406 unsigned endCSSProperty = CSSPropertyPriorityData<priority>::last(); | 1406 unsigned endCSSProperty = CSSPropertyPriorityData<priority>::last(); |
| 1407 | 1407 |
| 1408 for (unsigned i = startCSSProperty; i <= endCSSProperty; ++i) { | 1408 for (unsigned i = startCSSProperty; i <= endCSSProperty; ++i) { |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1746 visitor->trace(m_siblingRuleSet); | 1746 visitor->trace(m_siblingRuleSet); |
| 1747 visitor->trace(m_uncommonAttributeRuleSet); | 1747 visitor->trace(m_uncommonAttributeRuleSet); |
| 1748 visitor->trace(m_watchedSelectorsRules); | 1748 visitor->trace(m_watchedSelectorsRules); |
| 1749 visitor->trace(m_treeBoundaryCrossingScopes); | 1749 visitor->trace(m_treeBoundaryCrossingScopes); |
| 1750 visitor->trace(m_styleSharingLists); | 1750 visitor->trace(m_styleSharingLists); |
| 1751 visitor->trace(m_pendingStyleSheets); | 1751 visitor->trace(m_pendingStyleSheets); |
| 1752 visitor->trace(m_document); | 1752 visitor->trace(m_document); |
| 1753 } | 1753 } |
| 1754 | 1754 |
| 1755 } // namespace blink | 1755 } // namespace blink |
| OLD | NEW |