| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #include "core/css/CSSValueList.h" | 52 #include "core/css/CSSValueList.h" |
| 53 #include "core/css/CSSValuePool.h" | 53 #include "core/css/CSSValuePool.h" |
| 54 #include "core/css/ElementRuleCollector.h" | 54 #include "core/css/ElementRuleCollector.h" |
| 55 #include "core/css/FontFace.h" | 55 #include "core/css/FontFace.h" |
| 56 #include "core/css/MediaQueryEvaluator.h" | 56 #include "core/css/MediaQueryEvaluator.h" |
| 57 #include "core/css/PageRuleCollector.h" | 57 #include "core/css/PageRuleCollector.h" |
| 58 #include "core/css/StylePropertySet.h" | 58 #include "core/css/StylePropertySet.h" |
| 59 #include "core/css/StyleRuleImport.h" | 59 #include "core/css/StyleRuleImport.h" |
| 60 #include "core/css/StyleSheetContents.h" | 60 #include "core/css/StyleSheetContents.h" |
| 61 #include "core/css/resolver/AnimatedStyleBuilder.h" | 61 #include "core/css/resolver/AnimatedStyleBuilder.h" |
| 62 #include "core/css/resolver/CSSVariableResolver.h" |
| 62 #include "core/css/resolver/MatchResult.h" | 63 #include "core/css/resolver/MatchResult.h" |
| 63 #include "core/css/resolver/MediaQueryResult.h" | 64 #include "core/css/resolver/MediaQueryResult.h" |
| 64 #include "core/css/resolver/ScopedStyleResolver.h" | 65 #include "core/css/resolver/ScopedStyleResolver.h" |
| 65 #include "core/css/resolver/SharedStyleFinder.h" | 66 #include "core/css/resolver/SharedStyleFinder.h" |
| 66 #include "core/css/resolver/StyleAdjuster.h" | 67 #include "core/css/resolver/StyleAdjuster.h" |
| 67 #include "core/css/resolver/StyleResolverParentScope.h" | 68 #include "core/css/resolver/StyleResolverParentScope.h" |
| 68 #include "core/css/resolver/StyleResolverState.h" | 69 #include "core/css/resolver/StyleResolverState.h" |
| 69 #include "core/css/resolver/StyleResolverStats.h" | 70 #include "core/css/resolver/StyleResolverStats.h" |
| 70 #include "core/css/resolver/ViewportStyleResolver.h" | 71 #include "core/css/resolver/ViewportStyleResolver.h" |
| 71 #include "core/dom/CSSSelectorWatch.h" | 72 #include "core/dom/CSSSelectorWatch.h" |
| (...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1326 // Unfortunately the link status is treated like an inherited proper
ty. We need to explicitly restore it. | 1327 // Unfortunately the link status is treated like an inherited proper
ty. We need to explicitly restore it. |
| 1327 state.style()->setInsideLink(linkStatus); | 1328 state.style()->setInsideLink(linkStatus); |
| 1328 | 1329 |
| 1329 updateFont(state); | 1330 updateFont(state); |
| 1330 | 1331 |
| 1331 return; | 1332 return; |
| 1332 } | 1333 } |
| 1333 applyInheritedOnly = true; | 1334 applyInheritedOnly = true; |
| 1334 } | 1335 } |
| 1335 | 1336 |
| 1337 if (RuntimeEnabledFeatures::cssVariablesEnabled() && document().styleEngine(
).usesVariables()) { |
| 1338 applyMatchedProperties<ResolveVariables>(state, matchResult, false, matc
hResult.beginAuthor(), matchResult.endAuthor(), applyInheritedOnly); |
| 1339 // TODO(leviw): stop recalculating every time |
| 1340 CSSVariableResolver::resolveVariableDefinitions(state); |
| 1341 } |
| 1342 |
| 1336 // Now we have all of the matched rules in the appropriate order. Walk the r
ules and apply | 1343 // Now we have all of the matched rules in the appropriate order. Walk the r
ules and apply |
| 1337 // high-priority properties first, i.e., those properties that other propert
ies depend on. | 1344 // high-priority properties first, i.e., those properties that other propert
ies depend on. |
| 1338 // The order is (1) high-priority not important, (2) high-priority important
, (3) normal not important | 1345 // The order is (1) high-priority not important, (2) high-priority important
, (3) normal not important |
| 1339 // and (4) normal important. | 1346 // and (4) normal important. |
| 1340 applyMatchedProperties<HighPropertyPriority>(state, matchResult, false, matc
hResult.begin(), matchResult.end(), applyInheritedOnly); | 1347 applyMatchedProperties<HighPropertyPriority>(state, matchResult, false, matc
hResult.begin(), matchResult.end(), applyInheritedOnly); |
| 1341 applyMatchedProperties<HighPropertyPriority>(state, matchResult, true, match
Result.beginAuthor(), matchResult.endAuthor(), applyInheritedOnly); | 1348 applyMatchedProperties<HighPropertyPriority>(state, matchResult, true, match
Result.beginAuthor(), matchResult.endAuthor(), applyInheritedOnly); |
| 1342 applyMatchedProperties<HighPropertyPriority>(state, matchResult, true, match
Result.beginUA(), matchResult.endUA(), applyInheritedOnly); | 1349 applyMatchedProperties<HighPropertyPriority>(state, matchResult, true, match
Result.beginUA(), matchResult.endUA(), applyInheritedOnly); |
| 1343 | 1350 |
| 1344 if (UNLIKELY(isSVGForeignObjectElement(element))) { | 1351 if (UNLIKELY(isSVGForeignObjectElement(element))) { |
| 1345 // LayoutSVGRoot handles zooming for the whole SVG subtree, so foreignOb
ject content should not be scaled again. | 1352 // LayoutSVGRoot handles zooming for the whole SVG subtree, so foreignOb
ject content should not be scaled again. |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1468 visitor->trace(m_watchedSelectorsRules); | 1475 visitor->trace(m_watchedSelectorsRules); |
| 1469 visitor->trace(m_treeBoundaryCrossingRules); | 1476 visitor->trace(m_treeBoundaryCrossingRules); |
| 1470 visitor->trace(m_styleResourceLoader); | 1477 visitor->trace(m_styleResourceLoader); |
| 1471 visitor->trace(m_styleSharingLists); | 1478 visitor->trace(m_styleSharingLists); |
| 1472 visitor->trace(m_pendingStyleSheets); | 1479 visitor->trace(m_pendingStyleSheets); |
| 1473 visitor->trace(m_document); | 1480 visitor->trace(m_document); |
| 1474 #endif | 1481 #endif |
| 1475 } | 1482 } |
| 1476 | 1483 |
| 1477 } // namespace blink | 1484 } // namespace blink |
| OLD | NEW |