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

Side by Side Diff: Source/core/css/resolver/CascadedValues.h

Issue 350333003: Cascade declared property values instead of applying values on top of each other (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698