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

Unified Diff: Source/modules/accessibility/AXRenderObject.cpp

Issue 952273006: Make the constructor of a LayoutRect from an IntRect explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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: Source/modules/accessibility/AXRenderObject.cpp
diff --git a/Source/modules/accessibility/AXRenderObject.cpp b/Source/modules/accessibility/AXRenderObject.cpp
index 8d3786369eafdbf12f1297e8274aa572684e8106..5a829f105525ea016dbfe7e81c07fd839d529b47 100644
--- a/Source/modules/accessibility/AXRenderObject.cpp
+++ b/Source/modules/accessibility/AXRenderObject.cpp
@@ -2385,11 +2385,11 @@ LayoutRect AXRenderObject::computeElementRect() const
if (obj->isText()) {
Vector<FloatQuad> quads;
toRenderText(obj)->absoluteQuads(quads, 0, RenderText::ClipToEllipsis);
- result = boundingBoxForQuads(obj, quads);
+ result = LayoutRect(boundingBoxForQuads(obj, quads));
} else if (isWebArea() || obj->isSVGRoot()) {
- result = obj->absoluteBoundingBoxRect();
+ result = LayoutRect(obj->absoluteBoundingBoxRect());
} else {
- result = obj->absoluteFocusRingBoundingBoxRect();
+ result = LayoutRect(obj->absoluteFocusRingBoundingBoxRect());
}
Document* document = this->document();

Powered by Google App Engine
This is Rietveld 408576698