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

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

Issue 1181703003: Refactoring: Move StyledMarkupAccumulator::createInlineStyle to the serializer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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: Source/core/editing/StyledMarkupAccumulator.h
diff --git a/Source/core/editing/StyledMarkupAccumulator.h b/Source/core/editing/StyledMarkupAccumulator.h
index 9fb84e147f914d0c12b592481794f60e170217fc..0f3b0b7bb05dc82441ba836f976c9f1ff67ec2ab 100644
--- a/Source/core/editing/StyledMarkupAccumulator.h
+++ b/Source/core/editing/StyledMarkupAccumulator.h
@@ -46,7 +46,6 @@ class StyledMarkupAccumulator final {
public:
StyledMarkupAccumulator(EAbsoluteURLs, const TextOffset& start, const TextOffset& end, const PassRefPtrWillBeRawPtr<Document>, EAnnotateForInterchange, Node*);
- void appendStartTag(Node&);
void appendEndTag(const Element&);
void appendInterchangeNewline();
@@ -56,14 +55,15 @@ public:
// should not.
Node* highestNodeToBeSerialized() { return m_highestNodeToBeSerialized.get(); }
void setHighestNodeToBeSerialized(Node* highestNodeToBeSerialized) { m_highestNodeToBeSerialized = highestNodeToBeSerialized; }
+ PassRefPtrWillBeRawPtr<EditingStyle> wrappingStyle() const { return m_wrappingStyle; }
tkent 2015/06/16 22:27:00 The return type should be |EditingStyle*|, or shou
hajimehoshi 2015/06/17 04:33:51 Done.
void setWrappingStyle(PassRefPtrWillBeRawPtr<EditingStyle> wrappingStyle) { m_wrappingStyle = wrappingStyle; }
void wrapWithStyleNode(StylePropertySet*);
String takeResults();
void pushMarkup(const String&);
- RefPtrWillBeRawPtr<EditingStyle> createInlineStyle(Element&);
+ void appendElement(const Element&, PassRefPtrWillBeRawPtr<EditingStyle>);
void appendElement(StringBuilder&, const Element&);
void appendElementWithInlineStyle(StringBuilder&, const Element&, PassRefPtrWillBeRawPtr<EditingStyle>);
void appendStartMarkup(Node&);
@@ -78,7 +78,6 @@ private:
String stringValueForRange(const Text&);
bool shouldAnnotate() const;
- void appendElement(const Element&, PassRefPtrWillBeRawPtr<EditingStyle>);
void appendEndMarkup(StringBuilder&, const Element&);
MarkupFormatter m_formatter;
« no previous file with comments | « no previous file | Source/core/editing/StyledMarkupAccumulator.cpp » ('j') | Source/core/editing/StyledMarkupSerializer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698