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

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

Issue 1874623002: Implement iterable<DOMString, (StyleValue or sequence<StyleValue>)> for InlineStylePropertyMap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@computed-stylepropertymap-2
Patch Set: Address review comments Created 4 years, 8 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 1eb606082eebef25b6091aa0faff1ebc7b9a4b12..3031dc907f3fcb680307eaefdec35225b668c6f9 100644
--- a/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h
+++ b/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h
@@ -21,6 +21,7 @@ class CORE_EXPORT StylePropertyMap : public GarbageCollectedFinalized<StylePrope
DEFINE_WRAPPERTYPEINFO();
public:
typedef HeapVector<Member<StyleValue>> StyleValueVector;
+ typedef std::pair<String, StyleValueOrStyleValueSequence> StylePropertyMapEntry;
virtual ~StylePropertyMap() { }
@@ -48,7 +49,8 @@ public:
protected:
StylePropertyMap() { }
- IterationSource* startIteration(ScriptState*, ExceptionState&) override { return nullptr; }
+ virtual HeapVector<StylePropertyMapEntry> getIterationEntries() = 0;
+ IterationSource* startIteration(ScriptState*, ExceptionState&) override;
StyleValueVector cssValueToStyleValueVector(CSSPropertyID, const CSSValue&);
};

Powered by Google App Engine
This is Rietveld 408576698