OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CascadedValues_h | |
6 #define CascadedValues_h | |
7 | |
8 #include "core/CSSPropertyNames.h" | |
9 #include "core/css/RuleSet.h" | |
10 #include "core/css/SelectorChecker.h" | |
11 #include "core/rendering/style/RenderStyleConstants.h" | |
12 #include "platform/text/TextDirection.h" | |
13 #include "platform/text/WritingMode.h" | |
14 | |
15 namespace blink { | |
16 | |
17 class CSSValue; | |
18 class MatchResult; | |
19 class StyleResolverState; | |
20 class StyleRule; | |
21 | |
22 class CascadedValues { | |
23 STACK_ALLOCATED(); | |
24 public: | |
25 CascadedValues(StyleResolverState&, const MatchResult&); | |
26 | |
27 void addMatchResult(const MatchResult&, bool isImportant, int firstIndex, in t lastIndex); | |
28 void applyValues(CSSPropertyID first, CSSPropertyID last, bool inheritedOnly = false); | |
29 | |
30 private: | |
31 void addMatchResultInternal(const MatchResult&, bool isImportant, int firstI ndex, int lastIndex, CSSPropertyID firstId, CSSPropertyID lastId); | |
32 void addStylePropertySet(const StylePropertySet*, const StyleRule*, bool isI mportant, CSSPropertyID first, CSSPropertyID last, PropertyWhitelistType, Select orChecker::LinkMatchMask); | |
33 void addValue(CSSPropertyID, CSSValue*, const StyleRule*, SelectorChecker::L inkMatchMask); | |
34 void addAllProperty(CSSValue*, SelectorChecker::LinkMatchMask); | |
35 | |
36 CSSValue* values[numCSSProperties]; | |
37 CSSValue* visitedLinkValues[numCSSProperties]; | |
38 | |
39 StyleResolverState& state; | |
40 TextDirection direction; | |
41 WritingMode writingMode; | |
esprehn
2014/07/21 18:50:34
Missing m_ on all the members.
Timothy Loh
2014/07/22 14:32:48
Oops, fixed.
| |
42 }; | |
43 | |
44 } // namespace blink | |
45 | |
46 #endif // CascadedValues_h | |
OLD | NEW |