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

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

Issue 1133243008: Refactoring: Remove StyledMarkupAccumulator::shouldAnnotate* methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: yosin's review Created 5 years, 7 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 8857e8df8e2f1d1f766b34e76456162a6b719e79..7ab127b8adfc54d6795292156d7e8061ecc24e1b 100644
--- a/Source/core/editing/StyledMarkupAccumulator.h
+++ b/Source/core/editing/StyledMarkupAccumulator.h
@@ -80,9 +80,6 @@ public:
Node* highestNodeToBeSerialized() { return m_highestNodeToBeSerialized.get(); }
void setHighestNodeToBeSerialized(Node* highestNodeToBeSerialized) { m_highestNodeToBeSerialized = highestNodeToBeSerialized; }
void setWrappingStyle(PassRefPtrWillBeRawPtr<EditingStyle> wrappingStyle) { m_wrappingStyle = wrappingStyle; }
- bool shouldAnnotate() const { return m_shouldAnnotate == AnnotateForInterchange || m_shouldAnnotate == AnnotateForNavigationTransition; }
- bool shouldAnnotateForNavigationTransition() const { return m_shouldAnnotate == AnnotateForNavigationTransition; }
- bool shouldAnnotateForInterchange() const { return m_shouldAnnotate == AnnotateForInterchange; }
size_t length() const { return m_accumulator.length(); }
void concatenateMarkup(StringBuilder&) const;
@@ -95,6 +92,8 @@ private:
bool shouldApplyWrappingStyle(const Node&) const;
+ bool shouldAnnotate() const;
+
MarkupAccumulator m_accumulator;
const TextOffset m_start;
const TextOffset m_end;
« 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