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

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

Issue 430843002: Use tighter typing in editing: PlainTextRange / ReplaceNodeWithSpanCommand (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 5 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/PlainTextRange.cpp ('k') | Source/core/editing/ReplaceNodeWithSpanCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/ReplaceNodeWithSpanCommand.h
diff --git a/Source/core/editing/ReplaceNodeWithSpanCommand.h b/Source/core/editing/ReplaceNodeWithSpanCommand.h
index 1a5d00f8710a71757032904d9b02d14aa587000c..24c4bd2ea14429df37a06764e2f0ff3290cc84fc 100644
--- a/Source/core/editing/ReplaceNodeWithSpanCommand.h
+++ b/Source/core/editing/ReplaceNodeWithSpanCommand.h
@@ -36,6 +36,7 @@
namespace blink {
class HTMLElement;
+class HTMLSpanElement;
// More accurately, this is ReplaceElementWithSpanPreservingChildrenAndAttributesCommand
class ReplaceNodeWithSpanCommand FINAL : public SimpleEditCommand {
@@ -45,7 +46,7 @@ public:
return adoptRefWillBeNoop(new ReplaceNodeWithSpanCommand(element));
}
- HTMLElement* spanElement() { return m_spanElement.get(); }
+ HTMLSpanElement* spanElement() { return m_spanElement.get(); }
virtual void trace(Visitor*) OVERRIDE;
@@ -56,7 +57,7 @@ private:
virtual void doUnapply() OVERRIDE;
RefPtrWillBeMember<HTMLElement> m_elementToReplace;
- RefPtrWillBeMember<HTMLElement> m_spanElement;
+ RefPtrWillBeMember<HTMLSpanElement> m_spanElement;
};
} // namespace blink
« no previous file with comments | « Source/core/editing/PlainTextRange.cpp ('k') | Source/core/editing/ReplaceNodeWithSpanCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698