summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/svg/properties/svg_list_property_helper.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-06 12:48:11 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:33:43 +0000
commit7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (patch)
treefa14ba0ca8d2683ba2efdabd246dc9b18a1229c6 /chromium/third_party/blink/renderer/core/svg/properties/svg_list_property_helper.h
parent79b4f909db1049fca459c07cca55af56a9b54fe3 (diff)
downloadqtwebengine-chromium-7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3.tar.gz
BASELINE: Update Chromium to 84.0.4147.141
Change-Id: Ib85eb4cfa1cbe2b2b81e5022c8cad5c493969535 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/svg/properties/svg_list_property_helper.h')
-rw-r--r--chromium/third_party/blink/renderer/core/svg/properties/svg_list_property_helper.h33
1 files changed, 5 insertions, 28 deletions
diff --git a/chromium/third_party/blink/renderer/core/svg/properties/svg_list_property_helper.h b/chromium/third_party/blink/renderer/core/svg/properties/svg_list_property_helper.h
index dfea5e8c7b6..24f2aed8241 100644
--- a/chromium/third_party/blink/renderer/core/svg/properties/svg_list_property_helper.h
+++ b/chromium/third_party/blink/renderer/core/svg/properties/svg_list_property_helper.h
@@ -46,6 +46,7 @@ template <typename Derived, typename ItemProperty>
class SVGListPropertyHelper : public SVGPropertyHelper<Derived> {
public:
typedef ItemProperty ItemPropertyType;
+ using ItemPropertyListType = HeapVector<Member<ItemPropertyType>>;
SVGListPropertyHelper() = default;
@@ -64,33 +65,9 @@ class SVGListPropertyHelper : public SVGPropertyHelper<Derived> {
index);
}
- class ConstIterator {
- STACK_ALLOCATED();
-
- private:
- typedef typename HeapVector<Member<ItemPropertyType>>::const_iterator
- WrappedType;
-
- public:
- ConstIterator(WrappedType it) : it_(it) {}
-
- ConstIterator& operator++() {
- ++it_;
- return *this;
- }
-
- bool operator==(const ConstIterator& o) const { return it_ == o.it_; }
- bool operator!=(const ConstIterator& o) const { return it_ != o.it_; }
-
- ItemPropertyType* operator*() { return *it_; }
- ItemPropertyType* operator->() { return *it_; }
-
- private:
- WrappedType it_;
- };
-
- ConstIterator begin() const { return ConstIterator(values_.begin()); }
- ConstIterator end() const { return ConstIterator(values_.end()); }
+ using const_iterator = typename ItemPropertyListType::const_iterator;
+ const_iterator begin() const { return values_.begin(); }
+ const_iterator end() const { return values_.end(); }
void Append(ItemPropertyType* new_item) {
DCHECK(new_item);
@@ -146,7 +123,7 @@ class SVGListPropertyHelper : public SVGPropertyHelper<Derived> {
private:
inline bool CheckIndexBound(uint32_t, ExceptionState&);
- HeapVector<Member<ItemPropertyType>> values_;
+ ItemPropertyListType values_;
};
template <typename Derived, typename ItemProperty>