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

Unified Diff: third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h

Issue 1849653003: Implement ComputedStylePropertyMap for Typed OM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@maps-inline
Patch Set: Update global-interface-listing Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h
diff --git a/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h b/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h
index 6b3bffbad6e91e2cb6e5e3e7f2a74c367a479789..1eb606082eebef25b6091aa0faff1ebc7b9a4b12 100644
--- a/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h
+++ b/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h
@@ -20,15 +20,16 @@ class CORE_EXPORT StylePropertyMap : public GarbageCollectedFinalized<StylePrope
WTF_MAKE_NONCOPYABLE(StylePropertyMap);
DEFINE_WRAPPERTYPEINFO();
public:
+ typedef HeapVector<Member<StyleValue>> StyleValueVector;
+
virtual ~StylePropertyMap() { }
// Accessors.
StyleValue* get(const String& propertyName, ExceptionState&);
- HeapVector<Member<StyleValue>> getAll(const String& propertyName, ExceptionState&);
+ StyleValueVector getAll(const String& propertyName, ExceptionState&);
bool has(const String& propertyName, ExceptionState&);
- virtual StyleValue* get(CSSPropertyID) = 0;
- virtual HeapVector<Member<StyleValue>> getAll(CSSPropertyID) = 0;
+ virtual StyleValueVector getAll(CSSPropertyID) = 0;
virtual bool has(CSSPropertyID) = 0;
virtual Vector<String> getProperties() = 0;
@@ -48,6 +49,7 @@ protected:
StylePropertyMap() { }
IterationSource* startIteration(ScriptState*, ExceptionState&) override { return nullptr; }
+ StyleValueVector cssValueToStyleValueVector(CSSPropertyID, const CSSValue&);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698