Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Side by Side Diff: sky/engine/core/css/resolver/StyleResolver.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.
11 * Copyright (C) 2012 Google Inc. All rights reserved. 11 * Copyright (C) 2012 Google Inc. All rights reserved.
12 * 12 *
13 * This library is free software; you can redistribute it and/or 13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Library General Public 14 * modify it under the terms of the GNU Library General Public
15 * License as published by the Free Software Foundation; either 15 * License as published by the Free Software Foundation; either
16 * version 2 of the License, or (at your option) any later version. 16 * version 2 of the License, or (at your option) any later version.
17 * 17 *
18 * This library is distributed in the hope that it will be useful, 18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Library General Public License for more details. 21 * Library General Public License for more details.
22 * 22 *
23 * You should have received a copy of the GNU Library General Public License 23 * You should have received a copy of the GNU Library General Public License
24 * along with this library; see the file COPYING.LIB. If not, write to 24 * along with this library; see the file COPYING.LIB. If not, write to
25 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 25 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
26 * Boston, MA 02110-1301, USA. 26 * Boston, MA 02110-1301, USA.
27 */ 27 */
28 28
29 #include "config.h" 29 #include "sky/engine/config.h"
30 #include "core/css/resolver/StyleResolver.h" 30 #include "sky/engine/core/css/resolver/StyleResolver.h"
31 31
32 #include "gen/sky/core/CSSPropertyNames.h" 32 #include "gen/sky/core/CSSPropertyNames.h"
33 #include "gen/sky/core/MediaTypeNames.h" 33 #include "gen/sky/core/MediaTypeNames.h"
34 #include "gen/sky/core/StylePropertyShorthand.h" 34 #include "gen/sky/core/StylePropertyShorthand.h"
35 #include "core/animation/ActiveAnimations.h"
36 #include "core/animation/Animation.h"
37 #include "core/animation/AnimationTimeline.h"
38 #include "core/animation/StyleInterpolation.h"
39 #include "core/animation/animatable/AnimatableValue.h"
40 #include "core/animation/css/CSSAnimatableValueFactory.h"
41 #include "core/animation/css/CSSAnimations.h"
42 #include "core/css/CSSCalculationValue.h"
43 #include "core/css/CSSFontSelector.h"
44 #include "core/css/CSSKeyframeRule.h"
45 #include "core/css/CSSKeyframesRule.h"
46 #include "core/css/CSSRuleList.h"
47 #include "core/css/CSSSelector.h"
48 #include "core/css/CSSStyleRule.h"
49 #include "core/css/CSSValueList.h"
50 #include "core/css/CSSValuePool.h"
51 #include "core/css/ElementRuleCollector.h"
52 #include "core/css/FontFace.h"
53 #include "core/css/MediaQueryEvaluator.h"
54 #include "core/css/RuleSet.h"
55 #include "core/css/StylePropertySet.h"
56 #include "core/css/StyleSheetContents.h"
57 #include "core/css/parser/BisonCSSParser.h"
58 #include "core/css/resolver/AnimatedStyleBuilder.h"
59 #include "core/css/resolver/MatchResult.h"
60 #include "core/css/resolver/MediaQueryResult.h"
61 #include "core/css/resolver/SharedStyleFinder.h"
62 #include "core/css/resolver/StyleAdjuster.h"
63 #include "core/css/resolver/StyleResolverState.h"
64 #include "core/css/resolver/StyleResolverStats.h"
65 #include "core/dom/NodeRenderStyle.h"
66 #include "core/dom/StyleEngine.h"
67 #include "core/dom/Text.h"
68 #include "core/dom/shadow/ElementShadow.h"
69 #include "core/dom/shadow/ShadowRoot.h"
70 #include "core/frame/FrameView.h"
71 #include "core/frame/LocalFrame.h"
72 #include "core/rendering/RenderView.h"
73 #include "core/rendering/style/KeyframeList.h"
74 #include "gen/sky/platform/RuntimeEnabledFeatures.h" 35 #include "gen/sky/platform/RuntimeEnabledFeatures.h"
75 #include "wtf/LeakAnnotations.h" 36 #include "sky/engine/core/animation/ActiveAnimations.h"
76 #include "wtf/StdLibExtras.h" 37 #include "sky/engine/core/animation/Animation.h"
38 #include "sky/engine/core/animation/AnimationTimeline.h"
39 #include "sky/engine/core/animation/StyleInterpolation.h"
40 #include "sky/engine/core/animation/animatable/AnimatableValue.h"
41 #include "sky/engine/core/animation/css/CSSAnimatableValueFactory.h"
42 #include "sky/engine/core/animation/css/CSSAnimations.h"
43 #include "sky/engine/core/css/CSSCalculationValue.h"
44 #include "sky/engine/core/css/CSSFontSelector.h"
45 #include "sky/engine/core/css/CSSKeyframeRule.h"
46 #include "sky/engine/core/css/CSSKeyframesRule.h"
47 #include "sky/engine/core/css/CSSRuleList.h"
48 #include "sky/engine/core/css/CSSSelector.h"
49 #include "sky/engine/core/css/CSSStyleRule.h"
50 #include "sky/engine/core/css/CSSValueList.h"
51 #include "sky/engine/core/css/CSSValuePool.h"
52 #include "sky/engine/core/css/ElementRuleCollector.h"
53 #include "sky/engine/core/css/FontFace.h"
54 #include "sky/engine/core/css/MediaQueryEvaluator.h"
55 #include "sky/engine/core/css/RuleSet.h"
56 #include "sky/engine/core/css/StylePropertySet.h"
57 #include "sky/engine/core/css/StyleSheetContents.h"
58 #include "sky/engine/core/css/parser/BisonCSSParser.h"
59 #include "sky/engine/core/css/resolver/AnimatedStyleBuilder.h"
60 #include "sky/engine/core/css/resolver/MatchResult.h"
61 #include "sky/engine/core/css/resolver/MediaQueryResult.h"
62 #include "sky/engine/core/css/resolver/SharedStyleFinder.h"
63 #include "sky/engine/core/css/resolver/StyleAdjuster.h"
64 #include "sky/engine/core/css/resolver/StyleResolverState.h"
65 #include "sky/engine/core/css/resolver/StyleResolverStats.h"
66 #include "sky/engine/core/dom/NodeRenderStyle.h"
67 #include "sky/engine/core/dom/StyleEngine.h"
68 #include "sky/engine/core/dom/Text.h"
69 #include "sky/engine/core/dom/shadow/ElementShadow.h"
70 #include "sky/engine/core/dom/shadow/ShadowRoot.h"
71 #include "sky/engine/core/frame/FrameView.h"
72 #include "sky/engine/core/frame/LocalFrame.h"
73 #include "sky/engine/core/rendering/RenderView.h"
74 #include "sky/engine/core/rendering/style/KeyframeList.h"
75 #include "sky/engine/wtf/LeakAnnotations.h"
76 #include "sky/engine/wtf/StdLibExtras.h"
77 77
78 namespace { 78 namespace {
79 79
80 using namespace blink; 80 using namespace blink;
81 81
82 void setAnimationUpdateIfNeeded(StyleResolverState& state, Element& element) 82 void setAnimationUpdateIfNeeded(StyleResolverState& state, Element& element)
83 { 83 {
84 // If any changes to CSS Animations were detected, stash the update away for application after the 84 // If any changes to CSS Animations were detected, stash the update away for application after the
85 // render object is updated if we're in the appropriate scope. 85 // render object is updated if we're in the appropriate scope.
86 if (state.animationUpdate()) 86 if (state.animationUpdate())
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 bool StyleResolver::mediaQueryAffectedByViewportChange() const 995 bool StyleResolver::mediaQueryAffectedByViewportChange() const
996 { 996 {
997 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) { 997 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) {
998 if (m_medium->eval(m_viewportDependentMediaQueryResults[i]->expression() ) != m_viewportDependentMediaQueryResults[i]->result()) 998 if (m_medium->eval(m_viewportDependentMediaQueryResults[i]->expression() ) != m_viewportDependentMediaQueryResults[i]->result())
999 return true; 999 return true;
1000 } 1000 }
1001 return false; 1001 return false;
1002 } 1002 }
1003 1003
1004 } // namespace blink 1004 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/StyleResolver.h ('k') | sky/engine/core/css/resolver/StyleResolverState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698