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

Unified Diff: Source/core/inspector/InspectorStyleTextEditor.h

Issue 216553004: [Oilpan]: Move CSSPropertySourceData, InspectorStyleProperty, CSSStyleSourceData, and CSSRuleSource… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase + plugin finds Created 6 years, 9 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
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.cpp ('k') | Source/core/inspector/InspectorStyleTextEditor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorStyleTextEditor.h
diff --git a/Source/core/inspector/InspectorStyleTextEditor.h b/Source/core/inspector/InspectorStyleTextEditor.h
index abad8c8bcb9cd54af83703e9881c907ccd4c95b9..7d408c00986346a419747b36ab65f20072e384d8 100644
--- a/Source/core/inspector/InspectorStyleTextEditor.h
+++ b/Source/core/inspector/InspectorStyleTextEditor.h
@@ -25,6 +25,7 @@
#ifndef InspectorStyleTextEditor_h
#define InspectorStyleTextEditor_h
+#include "heap/Handle.h"
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
@@ -37,17 +38,17 @@ struct SourceRange;
typedef std::pair<String, String> NewLineAndWhitespace;
class InspectorStyleTextEditor {
+ STACK_ALLOCATED();
public:
- InspectorStyleTextEditor(Vector<InspectorStyleProperty>* allProperties,const String& styleText, const NewLineAndWhitespace& format);
+ InspectorStyleTextEditor(WillBeHeapVector<InspectorStyleProperty>* allProperties, const String& styleText, const NewLineAndWhitespace& format);
void insertProperty(unsigned index, const String& propertyText, unsigned styleBodyLength);
void replaceProperty(unsigned index, const String& newText);
- void removeProperty(unsigned index);
const String& styleText() const { return m_styleText; }
private:
void internalReplaceProperty(const InspectorStyleProperty&, const String& newText);
- Vector<InspectorStyleProperty>* m_allProperties;
+ WillBeHeapVector<InspectorStyleProperty>* m_allProperties;
String m_styleText;
const std::pair<String, String> m_format;
};
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.cpp ('k') | Source/core/inspector/InspectorStyleTextEditor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698