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

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

Issue 2730633004: [CSS Typed OM] Rearrange StylePropertyMap classes to match the new spec. (Closed)
Patch Set: Remove spurious : 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 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 cb3eb3f804b2178e5e094b29f2139694e4189644..4e26a329d5745b938dde7635c379a1b1fc792f0c 100644
--- a/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h
+++ b/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h
@@ -5,40 +5,17 @@
#ifndef StylePropertyMap_h
#define StylePropertyMap_h
-#include "bindings/core/v8/CSSStyleValueOrCSSStyleValueSequence.h"
-#include "bindings/core/v8/CSSStyleValueOrCSSStyleValueSequenceOrString.h"
-#include "bindings/core/v8/Iterable.h"
-#include "bindings/core/v8/ScriptWrappable.h"
-#include "core/CSSPropertyNames.h"
-#include "core/CoreExport.h"
-#include "core/css/cssom/CSSStyleValue.h"
+#include "core/css/cssom/StylePropertyMapReadonly.h"
namespace blink {
class ExceptionState;
-class CORE_EXPORT StylePropertyMap
- : public GarbageCollectedFinalized<StylePropertyMap>,
- public ScriptWrappable,
- public PairIterable<String, CSSStyleValueOrCSSStyleValueSequence> {
- WTF_MAKE_NONCOPYABLE(StylePropertyMap);
+class CORE_EXPORT StylePropertyMap : public StylePropertyMapReadonly {
DEFINE_WRAPPERTYPEINFO();
+ WTF_MAKE_NONCOPYABLE(StylePropertyMap);
public:
- typedef std::pair<String, CSSStyleValueOrCSSStyleValueSequence>
- StylePropertyMapEntry;
-
- virtual ~StylePropertyMap() {}
-
- // Accessors.
- virtual CSSStyleValue* get(const String& propertyName, ExceptionState&);
- virtual CSSStyleValueVector getAll(const String& propertyName,
- ExceptionState&);
- virtual bool has(const String& propertyName, ExceptionState&);
-
- virtual Vector<String> getProperties() = 0;
-
- // Modifiers.
void set(const String& propertyName,
CSSStyleValueOrCSSStyleValueSequenceOrString& item,
ExceptionState&);
@@ -55,17 +32,9 @@ class CORE_EXPORT StylePropertyMap
ExceptionState&) = 0;
virtual void remove(CSSPropertyID, ExceptionState&) = 0;
- DEFINE_INLINE_VIRTUAL_TRACE() {}
-
protected:
StylePropertyMap() {}
- virtual CSSStyleValueVector getAllInternal(CSSPropertyID) = 0;
- virtual CSSStyleValueVector getAllInternal(
- AtomicString customPropertyName) = 0;
-
- virtual HeapVector<StylePropertyMapEntry> getIterationEntries() = 0;
- IterationSource* startIteration(ScriptState*, ExceptionState&) override;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698