Index: Source/core/dom/Range.cpp |
diff --git a/Source/core/dom/Range.cpp b/Source/core/dom/Range.cpp |
index f9cb4fef91945ad16ed3263304134eb07c4c9f5d..6102fdd49f5ff9b3fedd32e0f268942bdbe43f82 100644 |
--- a/Source/core/dom/Range.cpp |
+++ b/Source/core/dom/Range.cpp |
@@ -1620,29 +1620,6 @@ void Range::didSplitTextNode(Text& oldNode) |
ASSERT(boundaryPointsValid()); |
} |
-void Range::expand(const String& unit, ExceptionState& exceptionState) |
-{ |
- VisiblePosition start(startPosition()); |
- VisiblePosition end(endPosition()); |
- if (unit == "word") { |
- start = startOfWord(start); |
- end = endOfWord(end); |
- } else if (unit == "sentence") { |
- start = startOfSentence(start); |
- end = endOfSentence(end); |
- } else if (unit == "block") { |
- start = startOfParagraph(start); |
- end = endOfParagraph(end); |
- } else if (unit == "document") { |
- start = startOfDocument(start); |
- end = endOfDocument(end); |
- } else { |
- return; |
- } |
- setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().computeOffsetInContainerNode(), exceptionState); |
- setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOffsetInContainerNode(), exceptionState); |
-} |
- |
ClientRectList* Range::getClientRects() const |
{ |
m_ownerDocument->updateLayoutIgnorePendingStylesheets(); |