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

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: Update LayoutTests Created 4 years, 6 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 9fcbce718a489e0cfe62df858f7c3eafc566df35..d01d89562397cf1b583d7d41149e744ff233666f 100644
--- a/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h
+++ b/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h
@@ -22,6 +22,7 @@ class CORE_EXPORT StylePropertyMap : public GarbageCollectedFinalized<StylePrope
DEFINE_WRAPPERTYPEINFO();
public:
typedef HeapVector<Member<StyleValue>> StyleValueVector;
+ typedef std::pair<String, StyleValueOrStyleValueSequence> StylePropertyMapEntry;
virtual ~StylePropertyMap() { }
@@ -47,7 +48,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