Bug 93111 introduced a new method in Range called transformFriendlyBoundingBox. However, these methods should be moved out of Range in order to attach as much as possible to the DOM specification. This patch moves this functionality to a static method in RenderView. It also updates the code making using of such method.
Created attachment 159169 [details] Patch
Comment on attachment 159169 [details] Patch I suggest using RenderObject instead of RenderView as it implements a very similar method called absoluteBoundingBoxRect.
I'd like to hear smfr's opinion here.
Comment on attachment 159169 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=159169&action=review Looks good. > Source/WebCore/rendering/RenderObject.h:714 > + static FloatRect absoluteBoundingBoxRectForRange(Range*); Can that be a const Range*?
Created attachment 159519 [details] Patch
Comment on attachment 159169 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=159169&action=review >> Source/WebCore/rendering/RenderObject.h:714 >> + static FloatRect absoluteBoundingBoxRectForRange(Range*); > > Can that be a const Range*? Fixed.
Comment on attachment 159519 [details] Patch I'll land this manually.
Committed r126074: <http://trac.webkit.org/changeset/126074>