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

Unified Diff: Source/core/editing/MarkupAccumulator.h

Issue 299353004: Oilpan: move editing objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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: Source/core/editing/MarkupAccumulator.h
diff --git a/Source/core/editing/MarkupAccumulator.h b/Source/core/editing/MarkupAccumulator.h
index fdbed0151df9108cb1b8c9ff947e687ec64c149f..0fbbd65efd5ba91fb5f5a2a056e71803bafc0ce0 100644
--- a/Source/core/editing/MarkupAccumulator.h
+++ b/Source/core/editing/MarkupAccumulator.h
@@ -64,9 +64,9 @@ enum SerializationType {
class MarkupAccumulator {
WTF_MAKE_NONCOPYABLE(MarkupAccumulator);
-
+ STACK_ALLOCATED();
public:
- MarkupAccumulator(Vector<Node*>*, EAbsoluteURLs, const Range* = 0, SerializationType = AsOwnerDocument);
+ MarkupAccumulator(WillBeHeapVector<RawPtrWillBeMember<Node> >*, EAbsoluteURLs, RawPtr<const Range> = nullptr, SerializationType = AsOwnerDocument);
zerny-chromium 2014/05/26 07:51:08 Nit: Do we need to change Range* to RawPtr<Range>?
sof 2014/05/28 08:31:35 Because it'll soon be a Range* again? :) No, no go
virtual ~MarkupAccumulator();
String serializeNodes(Node& targetNode, EChildrenOnly, Vector<QualifiedName>* tagNamesToSkip = 0);
@@ -103,8 +103,8 @@ protected:
bool elementCannotHaveEndTag(const Node&);
void appendEndMarkup(StringBuilder&, const Node&);
- Vector<Node*>* const m_nodes;
- const Range* const m_range;
+ WillBeHeapVector<RawPtrWillBeMember<Node> >* const m_nodes;
haraken 2014/05/26 02:36:12 Shall we use RawPtrWillBeMember<WillBeHeapVector<R
sof 2014/05/28 08:31:35 It shouldn't make a difference wrt stack scanning,
+ RawPtrWillBeMember<const Range> const m_range;
private:
String resolveURLIfNeeded(const Element&, const String&) const;

Powered by Google App Engine
This is Rietveld 408576698