| Index: Source/core/css/resolver/CascadedValues.h
|
| diff --git a/Source/core/css/resolver/CascadedValues.h b/Source/core/css/resolver/CascadedValues.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..604238388bb68978f44bc7a073cfbcd67e023af4
|
| --- /dev/null
|
| +++ b/Source/core/css/resolver/CascadedValues.h
|
| @@ -0,0 +1,45 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CascadedValues_h
|
| +#define CascadedValues_h
|
| +
|
| +#include "core/CSSPropertyNames.h"
|
| +#include "core/css/RuleSet.h"
|
| +#include "core/css/SelectorChecker.h"
|
| +#include "core/rendering/style/RenderStyleConstants.h"
|
| +#include "platform/text/TextDirection.h"
|
| +#include "platform/text/WritingMode.h"
|
| +
|
| +namespace WebCore {
|
| +
|
| +class CSSValue;
|
| +class MatchResult;
|
| +class StyleResolverState;
|
| +class StyleRule;
|
| +
|
| +class CascadedValues {
|
| + STACK_ALLOCATED();
|
| +public:
|
| + CascadedValues(StyleResolverState&, const MatchResult&);
|
| +
|
| + void addValues(const MatchResult&, bool isImportant, int startIndex, int endIndex);
|
| + void applyValues(CSSPropertyID start, CSSPropertyID end, bool inheritedOnly = false);
|
| +
|
| +private:
|
| + void addValue(CSSPropertyID, CSSValue*, const StyleRule*, SelectorChecker::LinkMatchMask);
|
| + void addValues(const StylePropertySet*, const StyleRule*, bool isImportant, PropertyWhitelistType, SelectorChecker::LinkMatchMask);
|
| + void addAllProperty(CSSValue*, SelectorChecker::LinkMatchMask);
|
| +
|
| + CSSValue* values[numCSSProperties];
|
| + CSSValue* visitedLinkValues[numCSSProperties];
|
| +
|
| + StyleResolverState& state;
|
| + TextDirection direction;
|
| + WritingMode writingMode;
|
| +};
|
| +
|
| +} // namespace WebCore
|
| +
|
| +#endif // CascadedValues_h
|
|
|