Index: third_party/WebKit/Source/core/dom/Range.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Range.cpp b/third_party/WebKit/Source/core/dom/Range.cpp |
index 4ccba20c1e763c9a6378159a32be036b4eb01fe7..d39c242afa2497270b376e9836aa0f80c099cc2a 100644 |
--- a/third_party/WebKit/Source/core/dom/Range.cpp |
+++ b/third_party/WebKit/Source/core/dom/Range.cpp |
@@ -1498,29 +1498,6 @@ void Range::didSplitTextNode(Text& oldNode) |
DCHECK(boundaryPointsValid()); |
} |
-void Range::expand(const String& unit, ExceptionState& exceptionState) |
-{ |
- VisiblePosition start = createVisiblePosition(startPosition()); |
- VisiblePosition end = createVisiblePosition(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().computeContainerNode(), start.deepEquivalent().computeOffsetInContainerNode(), exceptionState); |
- setEnd(end.deepEquivalent().computeContainerNode(), end.deepEquivalent().computeOffsetInContainerNode(), exceptionState); |
-} |
- |
ClientRectList* Range::getClientRects() const |
{ |
m_ownerDocument->updateLayoutIgnorePendingStylesheets(); |