Chromium Code Reviews

Unified Diff: Source/core/rendering/RenderObject.cpp

Issue 23467007: Have Range constructor take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/core/rendering/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index 7731a94081e5247a31f901a9363d3a31f3367495..6c0e758f8b56b5263eb88fbc2b915da35f2d3ad8 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -1270,8 +1270,7 @@ FloatRect RenderObject::absoluteBoundingBoxRectForRange(const Range* range)
if (!range || !range->startContainer())
return FloatRect();
- if (range->ownerDocument())
- range->ownerDocument()->updateLayout();
+ range->ownerDocument().updateLayout();
Vector<FloatQuad> quads;
range->textQuads(quads);

Powered by Google App Engine