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

Unified Diff: third_party/WebKit/Source/core/dom/RangeTest.cpp

Issue 2880273002: Remove Range::TextQuads() and instead use ComputeTextQuads. (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/Source/core/dom/RangeTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/RangeTest.cpp b/third_party/WebKit/Source/core/dom/RangeTest.cpp
index bec09849d920cfbcd5a299846b7e4b57a4b8a39d..fbca336ea04424bd7f8cbd35ae842f9cbe2f3708 100644
--- a/third_party/WebKit/Source/core/dom/RangeTest.cpp
+++ b/third_party/WebKit/Source/core/dom/RangeTest.cpp
@@ -10,6 +10,7 @@
#include "core/dom/NodeList.h"
#include "core/dom/Text.h"
#include "core/editing/EditingTestBase.h"
+#include "core/editing/VisibleUnits.h"
#include "core/frame/Settings.h"
#include "core/html/HTMLBodyElement.h"
#include "core/html/HTMLDivElement.h"
@@ -250,7 +251,7 @@ TEST_F(RangeTest, MultipleTextQuads) {
Position end(GetDocument().getElementById("two")->firstChild(), 3);
Range* range = Range::Create(GetDocument(), start, end);
Vector<FloatQuad> quads;
- range->TextQuads(quads);
+ quads.AppendVector(ComputeTextQuads(EphemeralRange(range)));
EXPECT_EQ(2u, quads.size());
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Range.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698