Chromium Code Reviews| Index: third_party/WebKit/Source/core/frame/FrameView.h |
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h |
| index d054ea6676a7ed7b07d3d7f6af28f86cc929dff4..3ed9283c423ad172ea9e38077e58b8e2c08cb4bc 100644 |
| --- a/third_party/WebKit/Source/core/frame/FrameView.h |
| +++ b/third_party/WebKit/Source/core/frame/FrameView.h |
| @@ -624,23 +624,9 @@ class CORE_EXPORT FrameView final |
| // event handlers (like Win32). |
| Scrollbar* ScrollbarAtFramePoint(const IntPoint&); |
| - IntPoint ConvertChildToSelf(const FrameViewBase* child, |
| - const IntPoint& point) const override { |
| - IntPoint new_point = point; |
| - if (!IsFrameViewScrollbar(child)) |
| - new_point = ContentsToFrame(point); |
| - new_point.MoveBy(child->Location()); |
| - return new_point; |
| - } |
| - |
| - IntPoint ConvertSelfToChild(const FrameViewBase* child, |
| - const IntPoint& point) const override { |
| - IntPoint new_point = point; |
| - if (!IsFrameViewScrollbar(child)) |
| - new_point = FrameToContents(point); |
| - new_point.MoveBy(-child->Location()); |
| - return new_point; |
| - } |
| + IntRect ConvertToRootFrame(const IntRect&) const; |
| + IntPoint ConvertToRootFrame(const IntPoint&) const; |
| + IntPoint ConvertSelfToChild(const FrameViewBase*, const IntPoint&) const; |
| // FrameViewBase override. Handles painting of the contents of the view as |
| // well as the scrollbars. |
| @@ -660,15 +646,6 @@ class CORE_EXPORT FrameView final |
| bool ScrollbarCornerPresent() const; |
| IntRect ScrollCornerRect() const override; |
| - IntRect ConvertFromScrollbarToContainingFrameViewBase( |
| - const Scrollbar&, |
| - const IntRect&) const override; |
| - IntRect ConvertFromContainingFrameViewBaseToScrollbar( |
| - const Scrollbar&, |
| - const IntRect&) const override; |
| - IntPoint ConvertFromScrollbarToContainingFrameViewBase( |
| - const Scrollbar&, |
| - const IntPoint&) const override; |
| IntPoint ConvertFromContainingFrameViewBaseToScrollbar( |
| const Scrollbar&, |
| const IntPoint&) const override; |
| @@ -971,10 +948,10 @@ class CORE_EXPORT FrameView final |
| // Override FrameViewBase methods to do point conversion via layoutObjects, in |
|
dcheng
2017/04/21 07:10:39
I think this comment needs to be updated.
joelhockey
2017/04/21 07:36:21
Done
|
| // order to take transforms into account. |
| - IntRect ConvertToContainingFrameViewBase(const IntRect&) const override; |
| - IntRect ConvertFromContainingFrameViewBase(const IntRect&) const override; |
| - IntPoint ConvertToContainingFrameViewBase(const IntPoint&) const override; |
| - IntPoint ConvertFromContainingFrameViewBase(const IntPoint&) const override; |
| + IntRect ConvertToContainingFrameViewBase(const IntRect&) const; |
| + IntPoint ConvertToContainingFrameViewBase(const IntPoint&) const; |
| + IntRect ConvertFromContainingFrameViewBase(const IntRect&) const; |
| + IntPoint ConvertFromContainingFrameViewBase(const IntPoint&) const; |
| void DidChangeGlobalRootScroller() override; |