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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSUnparsedValue.cpp

Issue 2683853005: bindings: Make some value iterator properties aliases to Array.prototype functions (Closed)
Patch Set: Remove constexpr from Internals.h to fix the Android build Created 3 years, 10 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/CSSUnparsedValue.cpp
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSUnparsedValue.cpp b/third_party/WebKit/Source/core/css/cssom/CSSUnparsedValue.cpp
index 695f35e9633a951d697aa918b24076d40c070827..f5e8180ec7bc68d8eccb3f524aaff1518eb0da07 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSUnparsedValue.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/CSSUnparsedValue.cpp
@@ -12,31 +12,6 @@ namespace blink {
namespace {
-class UnparsedValueIterationSource final
- : public ValueIterable<StringOrCSSVariableReferenceValue>::IterationSource {
- public:
- explicit UnparsedValueIterationSource(CSSUnparsedValue* unparsedValue)
- : m_unparsedValue(unparsedValue) {}
-
- bool next(ScriptState*,
- StringOrCSSVariableReferenceValue& value,
- ExceptionState&) override {
- if (m_index >= m_unparsedValue->size())
- return false;
- value = m_unparsedValue->fragmentAtIndex(m_index);
- return true;
- }
-
- DEFINE_INLINE_VIRTUAL_TRACE() {
- visitor->trace(m_unparsedValue);
- ValueIterable<StringOrCSSVariableReferenceValue>::IterationSource::trace(
- visitor);
- }
-
- private:
- const Member<CSSUnparsedValue> m_unparsedValue;
-};
-
StringView findVariableName(CSSParserTokenRange& range) {
range.consumeWhitespace();
return range.consume().value();
@@ -89,11 +64,6 @@ HeapVector<StringOrCSSVariableReferenceValue> parserTokenRangeToFragments(
} // namespace
-ValueIterable<StringOrCSSVariableReferenceValue>::IterationSource*
-CSSUnparsedValue::startIteration(ScriptState*, ExceptionState&) {
- return new UnparsedValueIterationSource(this);
-}
-
CSSUnparsedValue* CSSUnparsedValue::fromCSSValue(
const CSSVariableReferenceValue& cssVariableReferenceValue) {
return CSSUnparsedValue::create(parserTokenRangeToFragments(

Powered by Google App Engine
This is Rietveld 408576698