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

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: bug fix: rebasing failed 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
« no previous file with comments | « no previous file | Source/core/editing/StyledMarkupAccumulator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/StyledMarkupAccumulator.h
diff --git a/Source/core/editing/StyledMarkupAccumulator.h b/Source/core/editing/StyledMarkupAccumulator.h
index 1901f4b8e4ed749f8022234468f5550930a1429d..6402ee4cda5edeb578e3fba576a8075b66f94862 100644
--- a/Source/core/editing/StyledMarkupAccumulator.h
+++ b/Source/core/editing/StyledMarkupAccumulator.h
@@ -46,24 +46,25 @@ 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();
void appendText(Text&);
+ void appendTextWithInlineStyle(Text&);
// TODO(hajimehoshi): These functions are called from the serializer, but
// should not.
Node* highestNodeToBeSerialized() { return m_highestNodeToBeSerialized.get(); }
void setHighestNodeToBeSerialized(Node* highestNodeToBeSerialized) { m_highestNodeToBeSerialized = highestNodeToBeSerialized; }
+ EditingStyle* wrappingStyle() const { return m_wrappingStyle.get(); }
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&);
@@ -71,13 +72,10 @@ public:
bool shouldApplyWrappingStyle(const Node&) const;
private:
- void appendTextWithInlineStyle(Text&);
-
String renderedText(Text&);
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698