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

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

Issue 2140073002: [Typed-OM] Add compound type of CSSVariableReferenceValue and String with some tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@CSSTokenStreamValue
Patch Set: Rebase-update Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/cssom/CSSTokenStreamValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/cssom/CSSTokenStreamValue.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSTokenStreamValue.h b/third_party/WebKit/Source/core/css/cssom/CSSTokenStreamValue.h
index c1c8dd1a0c137589a6eafe1d3e13a62deab896e0..cead83b88fe6e72bcd5d408f786c4bb5fb18aef7 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSTokenStreamValue.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSTokenStreamValue.h
@@ -16,7 +16,7 @@ class CORE_EXPORT CSSTokenStreamValue final : public CSSStyleValue, public Value
WTF_MAKE_NONCOPYABLE(CSSTokenStreamValue);
DEFINE_WRAPPERTYPEINFO();
public:
- static CSSTokenStreamValue* create(const Vector<String>& fragments)
+ static CSSTokenStreamValue* create(const HeapVector<StringOrCSSVariableReferenceValue>& fragments)
{
return new CSSTokenStreamValue(fragments);
}
@@ -25,12 +25,18 @@ public:
StyleValueType type() const override { return TokenStreamType; }
- String fragmentAtIndex(int index) const { return m_fragments.at(index); }
+ StringOrCSSVariableReferenceValue fragmentAtIndex(int index) const { return m_fragments.at(index); }
size_t size() const { return m_fragments.size(); }
+ DEFINE_INLINE_VIRTUAL_TRACE()
+ {
+ visitor->trace(m_fragments);
+ CSSStyleValue::trace(visitor);
+ }
+
protected:
- CSSTokenStreamValue(const Vector<String>& fragments)
+ CSSTokenStreamValue(const HeapVector<StringOrCSSVariableReferenceValue>& fragments)
: CSSStyleValue()
, m_fragments(fragments)
{
@@ -39,7 +45,7 @@ protected:
private:
IterationSource* startIteration(ScriptState*, ExceptionState&) override;
- Vector<String> m_fragments;
+ HeapVector<StringOrCSSVariableReferenceValue> m_fragments;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/cssom/CSSTokenStreamValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698