Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(456)

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 2832883003: Remove unneeded Convert* methods and move many from FrameViewBase to FrameView (Closed)
Patch Set: remove scrollbar convert methods Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698