| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 #include "core/css/RuleSet.h" | 57 #include "core/css/RuleSet.h" |
| 58 #include "core/css/StylePropertySet.h" | 58 #include "core/css/StylePropertySet.h" |
| 59 #include "core/css/resolver/AnimatedStyleBuilder.h" | 59 #include "core/css/resolver/AnimatedStyleBuilder.h" |
| 60 #include "core/css/resolver/MatchResult.h" | 60 #include "core/css/resolver/MatchResult.h" |
| 61 #include "core/css/resolver/MediaQueryResult.h" | 61 #include "core/css/resolver/MediaQueryResult.h" |
| 62 #include "core/css/resolver/SharedStyleFinder.h" | 62 #include "core/css/resolver/SharedStyleFinder.h" |
| 63 #include "core/css/resolver/StyleAdjuster.h" | 63 #include "core/css/resolver/StyleAdjuster.h" |
| 64 #include "core/css/resolver/StyleBuilder.h" | 64 #include "core/css/resolver/StyleBuilder.h" |
| 65 #include "core/css/resolver/ViewportStyleResolver.h" | 65 #include "core/css/resolver/ViewportStyleResolver.h" |
| 66 #include "core/dom/NodeRenderStyle.h" | 66 #include "core/dom/NodeRenderStyle.h" |
| 67 #include "core/dom/StyleSheetCollections.h" | 67 #include "core/dom/StyleEngine.h" |
| 68 #include "core/dom/Text.h" | 68 #include "core/dom/Text.h" |
| 69 #include "core/dom/shadow/ElementShadow.h" | 69 #include "core/dom/shadow/ElementShadow.h" |
| 70 #include "core/dom/shadow/ShadowRoot.h" | 70 #include "core/dom/shadow/ShadowRoot.h" |
| 71 #include "core/html/HTMLIFrameElement.h" | 71 #include "core/html/HTMLIFrameElement.h" |
| 72 #include "core/inspector/InspectorInstrumentation.h" | 72 #include "core/inspector/InspectorInstrumentation.h" |
| 73 #include "core/page/Frame.h" | 73 #include "core/page/Frame.h" |
| 74 #include "core/page/FrameView.h" | 74 #include "core/page/FrameView.h" |
| 75 #include "core/rendering/RenderView.h" | 75 #include "core/rendering/RenderView.h" |
| 76 #include "core/rendering/style/KeyframeList.h" | 76 #include "core/rendering/style/KeyframeList.h" |
| 77 #include "core/rendering/style/StyleCustomFilterProgramCache.h" | 77 #include "core/rendering/style/StyleCustomFilterProgramCache.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 m_medium = adoptPtr(new MediaQueryEvaluator("all")); | 129 m_medium = adoptPtr(new MediaQueryEvaluator("all")); |
| 130 | 130 |
| 131 if (root) | 131 if (root) |
| 132 m_rootDefaultStyle = styleForElement(root, 0, DisallowStyleSharing, Matc
hOnlyUserAgentRules); | 132 m_rootDefaultStyle = styleForElement(root, 0, DisallowStyleSharing, Matc
hOnlyUserAgentRules); |
| 133 | 133 |
| 134 if (m_rootDefaultStyle && view) | 134 if (m_rootDefaultStyle && view) |
| 135 m_medium = adoptPtr(new MediaQueryEvaluator(view->mediaType(), &view->fr
ame(), m_rootDefaultStyle.get())); | 135 m_medium = adoptPtr(new MediaQueryEvaluator(view->mediaType(), &view->fr
ame(), m_rootDefaultStyle.get())); |
| 136 | 136 |
| 137 m_styleTree.clear(); | 137 m_styleTree.clear(); |
| 138 | 138 |
| 139 StyleSheetCollections* styleSheetCollection = document.styleSheetCollections
(); | 139 StyleEngine* styleSheetCollection = document.styleEngine(); |
| 140 m_ruleSets.initUserStyle(styleSheetCollection, *m_medium, *this); | 140 m_ruleSets.initUserStyle(styleSheetCollection, *m_medium, *this); |
| 141 | 141 |
| 142 #if ENABLE(SVG_FONTS) | 142 #if ENABLE(SVG_FONTS) |
| 143 if (document.svgExtensions()) { | 143 if (document.svgExtensions()) { |
| 144 const HashSet<SVGFontFaceElement*>& svgFontFaceElements = document.svgEx
tensions()->svgFontFaceElements(); | 144 const HashSet<SVGFontFaceElement*>& svgFontFaceElements = document.svgEx
tensions()->svgFontFaceElements(); |
| 145 HashSet<SVGFontFaceElement*>::const_iterator end = svgFontFaceElements.e
nd(); | 145 HashSet<SVGFontFaceElement*>::const_iterator end = svgFontFaceElements.e
nd(); |
| 146 for (HashSet<SVGFontFaceElement*>::const_iterator it = svgFontFaceElemen
ts.begin(); it != end; ++it) | 146 for (HashSet<SVGFontFaceElement*>::const_iterator it = svgFontFaceElemen
ts.begin(); it != end; ++it) |
| 147 fontSelector()->addFontFaceRule((*it)->fontFaceRule()); | 147 fontSelector()->addFontFaceRule((*it)->fontFaceRule()); |
| 148 } | 148 } |
| 149 #endif | 149 #endif |
| (...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1566 m_matchedPropertiesSearches, m_matchedPropertiesHit, m_matchedProperties
SharedInheritedHit, m_matchedPropertiesToCache, m_matchedPropertiesEnteredIntoCa
che); | 1566 m_matchedPropertiesSearches, m_matchedPropertiesHit, m_matchedProperties
SharedInheritedHit, m_matchedPropertiesToCache, m_matchedPropertiesEnteredIntoCa
che); |
| 1567 | 1567 |
| 1568 fprintf(stderr, "Total:\n"); | 1568 fprintf(stderr, "Total:\n"); |
| 1569 printStyleStats(m_totalSearches, m_totalElementsEligibleForSharing, m_totalS
tylesShared, m_totalSearchFoundSiblingForSharing, m_totalSearchesMissedSharing, | 1569 printStyleStats(m_totalSearches, m_totalElementsEligibleForSharing, m_totalS
tylesShared, m_totalSearchFoundSiblingForSharing, m_totalSearchesMissedSharing, |
| 1570 m_totalMatchedPropertiesSearches, m_totalMatchedPropertiesHit, m_totalMa
tchedPropertiesSharedInheritedHit, m_totalMatchedPropertiesToCache, m_totalMatch
edPropertiesEnteredIntoCache); | 1570 m_totalMatchedPropertiesSearches, m_totalMatchedPropertiesHit, m_totalMa
tchedPropertiesSharedInheritedHit, m_totalMatchedPropertiesToCache, m_totalMatch
edPropertiesEnteredIntoCache); |
| 1571 fprintf(stderr, "-----------------------------------------------------------
---------------------\n"); | 1571 fprintf(stderr, "-----------------------------------------------------------
---------------------\n"); |
| 1572 } | 1572 } |
| 1573 #endif | 1573 #endif |
| 1574 | 1574 |
| 1575 } // namespace WebCore | 1575 } // namespace WebCore |
| OLD | NEW |