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

Side by Side Diff: sky/engine/core/css/resolver/StyleResolverState.h

Issue 667003003: Remove most of visited link support. (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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const CSSToLengthConversionData& cssToLengthConversionData() const { return m_cssToLengthConversionData; } 67 const CSSToLengthConversionData& cssToLengthConversionData() const { return m_cssToLengthConversionData; }
68 68
69 void setAnimationUpdate(PassOwnPtrWillBeRawPtr<CSSAnimationUpdate>); 69 void setAnimationUpdate(PassOwnPtrWillBeRawPtr<CSSAnimationUpdate>);
70 const CSSAnimationUpdate* animationUpdate() { return m_animationUpdate.get() ; } 70 const CSSAnimationUpdate* animationUpdate() { return m_animationUpdate.get() ; }
71 PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> takeAnimationUpdate(); 71 PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> takeAnimationUpdate();
72 72
73 void setParentStyle(PassRefPtr<RenderStyle> parentStyle) { m_parentStyle = p arentStyle; } 73 void setParentStyle(PassRefPtr<RenderStyle> parentStyle) { m_parentStyle = p arentStyle; }
74 const RenderStyle* parentStyle() const { return m_parentStyle.get(); } 74 const RenderStyle* parentStyle() const { return m_parentStyle.get(); }
75 RenderStyle* parentStyle() { return m_parentStyle.get(); } 75 RenderStyle* parentStyle() { return m_parentStyle.get(); }
76 76
77 // FIXME: These are effectively side-channel "out parameters" for the variou s
78 // map functions. When we map from CSS to style objects we use this state ob ject
79 // to track various meta-data about that mapping (e.g. if it's cache-able).
80 // We need to move this data off of StyleResolverState and closer to the
81 // objects it applies to. Possibly separating (immutable) inputs from (mutab le) outputs.
82 void setApplyPropertyToRegularStyle(bool isApply) { m_applyPropertyToRegular Style = isApply; }
83 void setApplyPropertyToVisitedLinkStyle(bool isApply) { m_applyPropertyToVis itedLinkStyle = isApply; }
84 bool applyPropertyToRegularStyle() const { return m_applyPropertyToRegularSt yle; }
85 bool applyPropertyToVisitedLinkStyle() const { return m_applyPropertyToVisit edLinkStyle; }
86
87 // Holds all attribute names found while applying "content" properties that contain an "attr()" value. 77 // Holds all attribute names found while applying "content" properties that contain an "attr()" value.
88 Vector<AtomicString>& contentAttrValues() { return m_contentAttrValues; } 78 Vector<AtomicString>& contentAttrValues() { return m_contentAttrValues; }
89 79
90 void setLineHeightValue(CSSValue* value) { m_lineHeightValue = value; } 80 void setLineHeightValue(CSSValue* value) { m_lineHeightValue = value; }
91 CSSValue* lineHeightValue() { return m_lineHeightValue; } 81 CSSValue* lineHeightValue() { return m_lineHeightValue; }
92 82
93 ElementStyleResources& elementStyleResources() { return m_elementStyleResour ces; } 83 ElementStyleResources& elementStyleResources() { return m_elementStyleResour ces; }
94 const CSSToStyleMap& styleMap() const { return m_styleMap; } 84 const CSSToStyleMap& styleMap() const { return m_styleMap; }
95 CSSToStyleMap& styleMap() { return m_styleMap; } 85 CSSToStyleMap& styleMap() { return m_styleMap; }
96 86
(...skipping 25 matching lines...) Expand all
122 RefPtr<RenderStyle> m_style; 112 RefPtr<RenderStyle> m_style;
123 113
124 CSSToLengthConversionData m_cssToLengthConversionData; 114 CSSToLengthConversionData m_cssToLengthConversionData;
125 115
126 // m_parentStyle is not always just element->parentNode()->style() 116 // m_parentStyle is not always just element->parentNode()->style()
127 // so we keep it separate from m_elementContext. 117 // so we keep it separate from m_elementContext.
128 RefPtr<RenderStyle> m_parentStyle; 118 RefPtr<RenderStyle> m_parentStyle;
129 119
130 OwnPtrWillBeMember<CSSAnimationUpdate> m_animationUpdate; 120 OwnPtrWillBeMember<CSSAnimationUpdate> m_animationUpdate;
131 121
132 bool m_applyPropertyToRegularStyle;
133 bool m_applyPropertyToVisitedLinkStyle;
134
135 RawPtrWillBeMember<CSSValue> m_lineHeightValue; 122 RawPtrWillBeMember<CSSValue> m_lineHeightValue;
136 123
137 FontBuilder m_fontBuilder; 124 FontBuilder m_fontBuilder;
138 125
139 ElementStyleResources m_elementStyleResources; 126 ElementStyleResources m_elementStyleResources;
140 // CSSToStyleMap is a pure-logic class and only contains 127 // CSSToStyleMap is a pure-logic class and only contains
141 // a back-pointer to this object. 128 // a back-pointer to this object.
142 CSSToStyleMap m_styleMap; 129 CSSToStyleMap m_styleMap;
143 Vector<AtomicString> m_contentAttrValues; 130 Vector<AtomicString> m_contentAttrValues;
144 }; 131 };
145 132
146 } // namespace blink 133 } // namespace blink
147 134
148 #endif // StyleResolverState_h 135 #endif // StyleResolverState_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/StyleBuilderCustom.cpp ('k') | sky/engine/core/css/resolver/StyleResolverState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698