Commit 4af12b86 authored by Stephan Hartmann's avatar Stephan Hartmann Committed by Commit Bot

libstdc++: make NGPhysicalContainerFragment::ConstIterator usable with std::all_of

Use of std::all_of requires STL compliant iterator. However,
NGPhysicalContainerFragment::ConstIterator does not define
iterator_tag and therefore is no STL iterator. To make it
compliant derive NGPhysicalContainerFragment::ConstIterator from
std::iterator.

Bug: 957519
Change-Id: Id042f987ca093ece6cd1cd10f601eb1909700d08
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2153148Reviewed-by: default avatarAleks Totic <atotic@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#762806}
parent 24e47a66
......@@ -5,6 +5,8 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_NG_PHYSICAL_CONTAINER_FRAGMENT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_NG_PHYSICAL_CONTAINER_FRAGMENT_H_
#include <iterator>
#include "base/containers/span.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/layout/geometry/physical_rect.h"
......@@ -31,7 +33,8 @@ class CORE_EXPORT NGPhysicalContainerFragment : public NGPhysicalFragment {
PostLayoutChildLinkList(wtf_size_t count, const NGLink* buffer)
: count_(count), buffer_(buffer) {}
class ConstIterator {
class ConstIterator
: public std::iterator<std::input_iterator_tag, NGLink> {
STACK_ALLOCATED();
public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment