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

Unified Diff: third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp

Issue 2374183004: Make non-null VisibleSelections creatable only by createVisibleSelection[Deprecated] (Closed)
Patch Set: Fix mac compile error Created 4 years, 3 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: third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp b/third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp
index 7ef58f48053516a95dbaa8c54efc64d60733a9aa..0f979ead3c259db23568dc8fd79b03c160f7090f 100644
--- a/third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp
@@ -197,7 +197,7 @@ void SVGTextContentElement::selectSubString(unsigned charnum, unsigned nchars, E
for (unsigned i = 0; i < nchars; ++i)
end = nextPositionOf(end);
- document().frame()->selection().setSelection(VisibleSelection(start, end));
+ document().frame()->selection().setSelection(createVisibleSelectionDeprecated(start, end));
}
bool SVGTextContentElement::isPresentationAttribute(const QualifiedName& name) const

Powered by Google App Engine
This is Rietveld 408576698