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 WebCore { |
| 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 addValues(const MatchResult&, bool isImportant, int startIndex, int end
Index); |
| 28 void applyValues(CSSPropertyID start, CSSPropertyID end, bool inheritedOnly
= false); |
| 29 |
| 30 private: |
| 31 void addValue(CSSPropertyID, CSSValue*, const StyleRule*, SelectorChecker::L
inkMatchMask); |
| 32 void addValues(const StylePropertySet*, const StyleRule*, bool isImportant,
PropertyWhitelistType, SelectorChecker::LinkMatchMask); |
| 33 void addAllProperty(CSSValue*, SelectorChecker::LinkMatchMask); |
| 34 |
| 35 CSSValue* values[numCSSProperties]; |
| 36 CSSValue* visitedLinkValues[numCSSProperties]; |
| 37 |
| 38 StyleResolverState& state; |
| 39 TextDirection direction; |
| 40 WritingMode writingMode; |
| 41 }; |
| 42 |
| 43 } // namespace WebCore |
| 44 |
| 45 #endif // CascadedValues_h |
OLD | NEW |