| Index: third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
|
| diff --git a/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm b/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
|
| index 350e9cb072ff92136e107450e6ab66a12decc15d..8c626cc5e1af784eb0fb0e02466ef437dd47fb95 100644
|
| --- a/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
|
| +++ b/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
|
| @@ -113,7 +113,9 @@ WebPoint getBaselinePoint(FrameView* frameView, const EphemeralRange& range, NSA
|
| {
|
| // Compute bottom left corner and convert to AppKit coordinates.
|
| // TODO(yosin) We shold avoid to create |Range| object. See crbug.com/529985.
|
| - IntRect stringRect = enclosingIntRect(createRange(range)->boundingRect());
|
| + IntRect stringRect = frameView->contentsToRootFrame(createRange(range)->boundingBox());
|
| + printf("=====stringRect: %d,%d,%d,%d\n", stringRect.x(), stringRect.y(),
|
| + stringRect.width(), stringRect.height());
|
| IntPoint stringPoint = stringRect.minXMaxYCorner();
|
| stringPoint.setY(frameView->height() - stringPoint.y());
|
|
|
|
|