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

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
Index: Source/core/editing/StyledMarkupSerializer.h
diff --git a/Source/core/editing/StyledMarkupSerializer.h b/Source/core/editing/StyledMarkupSerializer.h
index 78460b57fd5a6c9a05e034a2b93a69388b130aa7..2d6d5b44592f2c0ee26e1f01edb98b2ee470d12a 100644
--- a/Source/core/editing/StyledMarkupSerializer.h
+++ b/Source/core/editing/StyledMarkupSerializer.h
@@ -51,11 +51,14 @@ public:
private:
bool convertBlocksToInlines() const { return m_convertBlocksToInlines == ConvertBlocksToInlines::Convert; }
+ bool shouldAnnotate() const { return m_shouldAnnotate == AnnotateForInterchange; }
Node* serializeNodes(Node* startNode, Node* pastEnd, StyledMarkupAccumulator*);
Node* traverseNodesForSerialization(Node* startNode, Node* pastEnd, StyledMarkupAccumulator*);
void wrapWithNode(StyledMarkupAccumulator&, ContainerNode&, PassRefPtrWillBeRawPtr<EditingStyle>);
RefPtrWillBeRawPtr<EditingStyle> createInlineStyleIfNeeded(StyledMarkupAccumulator&, Node&);
bool needsInlineStyle(const Element&);
+ void appendStartMarkup(StyledMarkupAccumulator&, Node&);
+ bool shouldApplyWrappingStyle(const StyledMarkupAccumulator&, const Node&) const;
const PositionType m_start;
const PositionType m_end;

Powered by Google App Engine
This is Rietveld 408576698