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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.h

Issue 2726733004: [Experimental] Implement some part of custom properties in style maps (Closed)
Patch Set: Merge branch 'remove-random' into computedstyle Created 3 years, 9 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
1 /* 1 /*
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 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 Lesser General Public 6 * modify it under the terms of the GNU Lesser 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 30 matching lines...) Expand all
41 class CORE_EXPORT CSSComputedStyleDeclaration final 41 class CORE_EXPORT CSSComputedStyleDeclaration final
42 : public CSSStyleDeclaration { 42 : public CSSStyleDeclaration {
43 public: 43 public:
44 static CSSComputedStyleDeclaration* create( 44 static CSSComputedStyleDeclaration* create(
45 Node* node, 45 Node* node,
46 bool allowVisitedStyle = false, 46 bool allowVisitedStyle = false,
47 const String& pseudoElementName = String()) { 47 const String& pseudoElementName = String()) {
48 return new CSSComputedStyleDeclaration(node, allowVisitedStyle, 48 return new CSSComputedStyleDeclaration(node, allowVisitedStyle,
49 pseudoElementName); 49 pseudoElementName);
50 } 50 }
51
52 static const Vector<CSSPropertyID>& computableProperties();
51 ~CSSComputedStyleDeclaration() override; 53 ~CSSComputedStyleDeclaration() override;
52 54
53 String getPropertyValue(CSSPropertyID) const; 55 String getPropertyValue(CSSPropertyID) const;
54 bool getPropertyPriority(CSSPropertyID) const; 56 bool getPropertyPriority(CSSPropertyID) const;
55 57
56 MutableStylePropertySet* copyProperties() const; 58 MutableStylePropertySet* copyProperties() const;
57 59
58 const CSSValue* getPropertyCSSValue(CSSPropertyID) const; 60 const CSSValue* getPropertyCSSValue(CSSPropertyID) const;
59 const CSSValue* getPropertyCSSValue(AtomicString customPropertyName) const; 61 const CSSValue* getPropertyCSSValue(AtomicString customPropertyName) const;
60 std::unique_ptr<HashMap<AtomicString, RefPtr<CSSVariableData>>> getVariables() 62 std::unique_ptr<HashMap<AtomicString, RefPtr<CSSVariableData>>> getVariables()
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const override; 113 bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const override;
112 114
113 Member<Node> m_node; 115 Member<Node> m_node;
114 PseudoId m_pseudoElementSpecifier; 116 PseudoId m_pseudoElementSpecifier;
115 bool m_allowVisitedStyle; 117 bool m_allowVisitedStyle;
116 }; 118 };
117 119
118 } // namespace blink 120 } // namespace blink
119 121
120 #endif // CSSComputedStyleDeclaration_h 122 #endif // CSSComputedStyleDeclaration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698