| 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 return ruleSet.release(); | 323 return ruleSet.release(); |
| 324 } | 324 } |
| 325 | 325 |
| 326 void StyleResolver::collectFeatures() | 326 void StyleResolver::collectFeatures() |
| 327 { | 327 { |
| 328 m_features.clear(); | 328 m_features.clear(); |
| 329 // Collect all ids and rules using sibling selectors (:first-child and simil
ar) | 329 // Collect all ids and rules using sibling selectors (:first-child and simil
ar) |
| 330 // in the current set of stylesheets. Style sharing code uses this informati
on to reject | 330 // in the current set of stylesheets. Style sharing code uses this informati
on to reject |
| 331 // sharing candidates. | 331 // sharing candidates. |
| 332 CSSDefaultStyleSheets& defaultStyleSheets = CSSDefaultStyleSheets::instance(
); | 332 CSSDefaultStyleSheets& defaultStyleSheets = CSSDefaultStyleSheets::instance(
); |
| 333 if (defaultStyleSheets.defaultStyle()) | 333 if (defaultStyleSheets.defaultStyle()) { |
| 334 m_features.add(defaultStyleSheets.defaultStyle()->features()); | 334 m_features.add(defaultStyleSheets.defaultStyle()->features()); |
| 335 m_hasFullscreenUAStyle = defaultStyleSheets.fullscreenStyleSheet(); |
| 336 } |
| 335 | 337 |
| 336 if (document().isViewSource()) | 338 if (document().isViewSource()) |
| 337 m_features.add(defaultStyleSheets.defaultViewSourceStyle()->features()); | 339 m_features.add(defaultStyleSheets.defaultViewSourceStyle()->features()); |
| 338 | 340 |
| 339 if (m_watchedSelectorsRules) | 341 if (m_watchedSelectorsRules) |
| 340 m_features.add(m_watchedSelectorsRules->features()); | 342 m_features.add(m_watchedSelectorsRules->features()); |
| 341 | 343 |
| 342 document().styleEngine().collectScopedStyleFeaturesTo(m_features); | 344 document().styleEngine().collectScopedStyleFeaturesTo(m_features); |
| 343 | 345 |
| 344 m_siblingRuleSet = makeRuleSet(m_features.siblingRules); | 346 m_siblingRuleSet = makeRuleSet(m_features.siblingRules); |
| (...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1612 visitor->trace(m_uncommonAttributeRuleSet); | 1614 visitor->trace(m_uncommonAttributeRuleSet); |
| 1613 visitor->trace(m_watchedSelectorsRules); | 1615 visitor->trace(m_watchedSelectorsRules); |
| 1614 visitor->trace(m_treeBoundaryCrossingScopes); | 1616 visitor->trace(m_treeBoundaryCrossingScopes); |
| 1615 visitor->trace(m_styleSharingLists); | 1617 visitor->trace(m_styleSharingLists); |
| 1616 visitor->trace(m_pendingStyleSheets); | 1618 visitor->trace(m_pendingStyleSheets); |
| 1617 visitor->trace(m_document); | 1619 visitor->trace(m_document); |
| 1618 #endif | 1620 #endif |
| 1619 } | 1621 } |
| 1620 | 1622 |
| 1621 } // namespace blink | 1623 } // namespace blink |
| OLD | NEW |