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

Unified Diff: Source/core/testing/Internals.cpp

Issue 1303413004: Convert some call sites to use explicit LayoutRect->FloatRect conversion. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/paint/InlineTextBoxPainter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 9dd1de88e29323a343b9ed150a9794c91e4c00f0..7904b658dee7d7d8b6835c345decef3672a5c03a 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2004,7 +2004,7 @@ ClientRectList* Internals::annotatedRegions(Document* document, bool draggable,
Vector<FloatQuad> quads;
for (size_t i = 0; i < regions.size(); ++i) {
if (regions[i].draggable == draggable)
- quads.append(FloatQuad(regions[i].bounds));
+ quads.append(FloatQuad(FloatRect(regions[i].bounds)));
}
return ClientRectList::create(quads);
}
@@ -2121,7 +2121,7 @@ ClientRect* Internals::selectionBounds(ExceptionState& exceptionState)
return nullptr;
}
- return ClientRect::create(document->frame()->selection().bounds());
+ return ClientRect::create(FloatRect(document->frame()->selection().bounds()));
}
String Internals::markerTextForListItem(Element* element)
« no previous file with comments | « Source/core/paint/InlineTextBoxPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698