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

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

Issue 1177323005: Move StyledMarkupAccumulator::shouldApplyWrappingStyle to its serializer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: yosin's review 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 | « Source/core/editing/StyledMarkupAccumulator.cpp ('k') | Source/core/editing/StyledMarkupSerializer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/StyledMarkupSerializer.h
diff --git a/Source/core/editing/StyledMarkupSerializer.h b/Source/core/editing/StyledMarkupSerializer.h
index b39bbbe333bd896d4265c133870edf831dca2e02..5125754450c15155a5bf0290909e4e16fd77c900 100644
--- a/Source/core/editing/StyledMarkupSerializer.h
+++ b/Source/core/editing/StyledMarkupSerializer.h
@@ -55,10 +55,11 @@ private:
Node* serializeNodes(Node* startNode, Node* pastEnd, StyledMarkupAccumulator*);
Node* traverseNodesForSerialization(Node* startNode, Node* pastEnd, StyledMarkupAccumulator*);
void wrapWithNode(StyledMarkupAccumulator&, ContainerNode&, PassRefPtrWillBeRawPtr<EditingStyle>);
- RefPtrWillBeRawPtr<EditingStyle> createInlineStyle(StyledMarkupAccumulator&, Element&);
- RefPtrWillBeRawPtr<EditingStyle> createInlineStyleIfNeeded(StyledMarkupAccumulator&, Node&);
+ RefPtrWillBeRawPtr<EditingStyle> createInlineStyle(Element&);
+ RefPtrWillBeRawPtr<EditingStyle> createInlineStyleIfNeeded(Node&);
bool needsInlineStyle(const Element&);
void appendStartMarkup(StyledMarkupAccumulator&, Node&);
+ bool shouldApplyWrappingStyle(const Node&) const;
const PositionType m_start;
const PositionType m_end;
@@ -66,6 +67,8 @@ private:
const EAnnotateForInterchange m_shouldAnnotate;
const RefPtrWillBeMember<Node> m_highestNodeToBeSerialized;
const ConvertBlocksToInlines m_convertBlocksToInlines;
+ RawPtrWillBeMember<Node> m_lastClosed;
+ RefPtrWillBeMember<EditingStyle> m_wrappingStyle;
};
extern template class StyledMarkupSerializer<EditingStrategy>;
« no previous file with comments | « Source/core/editing/StyledMarkupAccumulator.cpp ('k') | Source/core/editing/StyledMarkupSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698