X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fweb%2Fmac%2FWebSubstringUtil.mm;h=665f33a032805f69aa0a23b69da70c7bbf883149;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=cc50e3387aa4351c73b33d8997a43718539b99cf;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm b/src/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm index cc50e33..665f33a 100644 --- a/src/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm +++ b/src/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm @@ -71,7 +71,7 @@ static NSAttributedString* attributedSubstringFromRange(const Range* range) if (!numCharacters) continue; - Node* container = it.range()->startContainer(); + Node* container = it.startContainer(); RenderObject* renderer = container->renderer(); ASSERT(renderer); if (!renderer) @@ -114,9 +114,9 @@ namespace blink { NSAttributedString* WebSubstringUtil::attributedWordAtPoint(WebView* view, WebPoint point, WebPoint& baselinePoint) { HitTestResult result = static_cast(view)->coreHitTestResultAt(point); - if (!result.targetNode()) + if (!result.innerNode()) return nil; - LocalFrame* frame = result.targetNode()->document().frame(); + LocalFrame* frame = result.innerNode()->document().frame(); FrameView* frameView = frame->view(); RefPtrWillBeRawPtr range = frame->rangeForPoint(result.roundedPointInInnerNodeFrame());