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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator.h

Issue 2921463004: [LayoutNG] PODify NGLayoutInputNode and sub-classes. (Closed)
Patch Set: new ng-bot expectations Created 3 years, 6 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/layout/ng/ng_block_child_iterator.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator.h b/third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator.h
index 6600cc1790031ec2aeffe9a0492a03a77401ae94..fee1a5bd6bd7af3c9f8ac8c63e50cbae97c157b9 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_child_iterator.h
@@ -6,6 +6,7 @@
#define NGBlockChildIterator_h
#include "core/CoreExport.h"
+#include "core/layout/ng/ng_layout_input_node.h"
#include "platform/heap/Handle.h"
#include "platform/wtf/RefPtr.h"
@@ -24,7 +25,7 @@ class CORE_EXPORT NGBlockChildIterator {
STACK_ALLOCATED();
public:
- NGBlockChildIterator(NGLayoutInputNode* first_child,
+ NGBlockChildIterator(NGLayoutInputNode first_child,
NGBlockBreakToken* break_token);
// Returns the next input node which should be laid out, along with its
@@ -33,7 +34,7 @@ class CORE_EXPORT NGBlockChildIterator {
Entry NextChild();
private:
- Persistent<NGLayoutInputNode> child_;
+ NGLayoutInputNode child_;
NGBlockBreakToken* break_token_;
// An index into break_token_'s ChildBreakTokens() vector. Used for keeping
@@ -44,10 +45,10 @@ class CORE_EXPORT NGBlockChildIterator {
struct NGBlockChildIterator::Entry {
STACK_ALLOCATED();
- Entry(NGLayoutInputNode* node, NGBreakToken* token)
+ Entry(NGLayoutInputNode node, NGBreakToken* token)
: node(node), token(token) {}
- Persistent<NGLayoutInputNode> node;
+ NGLayoutInputNode node;
NGBreakToken* token;
bool operator==(const NGBlockChildIterator::Entry& other) const {

Powered by Google App Engine
This is Rietveld 408576698