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 fd20ad1e8de777f48bef6fb2724f840745adbab0..1084434b5e6c6eaa65a46973fea511d235469238 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.h |
+++ b/third_party/WebKit/Source/core/frame/FrameView.h |
@@ -40,7 +40,6 @@ |
#include "core/paint/PaintInvalidationCapableScrollableArea.h" |
#include "core/paint/PaintPhase.h" |
#include "core/paint/ScrollbarManager.h" |
-#include "platform/FrameViewBase.h" |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/animation/CompositorAnimationHost.h" |
#include "platform/animation/CompositorAnimationTimeline.h" |
@@ -102,7 +101,6 @@ typedef unsigned long long DOMTimeStamp; |
class CORE_EXPORT FrameView final |
: public GarbageCollectedFinalized<FrameView>, |
- public FrameViewBase, |
public FrameOrPlugin, |
public PaintInvalidationCapableScrollableArea { |
USING_GARBAGE_COLLECTED_MIXIN(FrameView); |
@@ -126,7 +124,7 @@ class CORE_EXPORT FrameView final |
int Width() const { return frame_rect_.Width(); } |
int Height() const { return frame_rect_.Height(); } |
IntSize Size() const { return frame_rect_.Size(); } |
- IntPoint Location() const override { return frame_rect_.Location(); } |
+ IntPoint Location() const { return frame_rect_.Location(); } |
void Resize(int width, int height) { |
SetFrameRect(IntRect(frame_rect_.X(), frame_rect_.Y(), width, height)); |
} |
@@ -479,9 +477,6 @@ class CORE_EXPORT FrameView final |
// and repaints to the host window in the window's coordinate space. |
PlatformChromeClient* GetChromeClient() const; |
- typedef HeapHashSet<Member<FrameOrPlugin>> ChildrenSet; |
- typedef HeapHashSet<Member<Scrollbar>> ScrollbarsSet; |
- |
// Functions for child manipulation and inspection. |
bool IsSelfVisible() const { |
return self_visible_; |
@@ -499,10 +494,12 @@ class CORE_EXPORT FrameView final |
FrameView* Root() const; |
void RemoveChild(FrameOrPlugin*); |
void AddChild(FrameOrPlugin*); |
+ typedef HeapHashSet<Member<FrameOrPlugin>> ChildrenSet; |
const ChildrenSet& Children() const { return children_; } |
- void RemoveScrollbar(Scrollbar*); |
- void AddScrollbar(Scrollbar*); |
- const ScrollbarsSet& Scrollbars() const { return scrollbars_; } |
+ // Custom PaintLayer scrollbars need to be called with StyleChanged |
+ // whenever window focus is changed. |
+ void RemovePaintScrollbar(Scrollbar*); |
dcheng
2017/05/09 08:05:55
Is the term "PaintScrollbar" used elsewhere in Chr
joelhockey
2017/05/10 04:17:13
No, I don't believe PaintScrollbar is used elsewhe
dcheng
2017/05/10 07:27:00
Unless I'm missing something, I think the original
|
+ void AddPaintScrollbar(Scrollbar*); |
// If the scroll view does not use a native widget, then it will have |
// cross-platform Scrollbars. These functions can be used to obtain those |
@@ -649,6 +646,9 @@ class CORE_EXPORT FrameView final |
IntRect ConvertToRootFrame(const IntRect&) const; |
IntPoint ConvertToRootFrame(const IntPoint&) const; |
+ IntRect ConvertFromRootFrame(const IntRect&) const; |
+ IntPoint ConvertFromRootFrame(const IntPoint&) const override; |
+ FloatPoint ConvertFromRootFrame(const FloatPoint&) const; |
IntPoint ConvertSelfToChild(const IntPoint&, const IntPoint&) const; |
// Handles painting of the contents of the view as well as the scrollbars. |
@@ -1144,7 +1144,7 @@ class CORE_EXPORT FrameView final |
bool vertical_scrollbar_lock_; |
ChildrenSet children_; |
- ScrollbarsSet scrollbars_; |
+ HeapHashSet<Member<Scrollbar>> paint_scrollbars_; |
ScrollOffset pending_scroll_delta_; |
ScrollOffset scroll_offset_; |
@@ -1262,11 +1262,6 @@ inline void FrameView::IncrementVisuallyNonEmptyPixelCount( |
} |
DEFINE_TYPE_CASTS(FrameView, |
- FrameViewBase, |
- frameViewBase, |
- frameViewBase->IsFrameView(), |
- frameViewBase.IsFrameView()); |
-DEFINE_TYPE_CASTS(FrameView, |
FrameOrPlugin, |
frame_or_plugin, |
frame_or_plugin->IsFrameView(), |