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

Unified Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp

Issue 2721133003: Rename platform/Widget to platform/FrameViewBase in platform. (Closed)
Patch Set: Rename platform/Widget to platform/FrameViewBase in platform. Created 3 years, 10 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 | « third_party/WebKit/Source/platform/scroll/Scrollbar.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
index e4bf898e7dbe5d671e32e2a0fa6865cb4e7b165e..1783e6c8e40d6ff3117ce656d787a9b128dad550 100644
--- a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
+++ b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
@@ -74,7 +74,7 @@ Scrollbar::Scrollbar(ScrollableArea* scrollableArea,
m_themeScrollbarThickness = thickness;
if (m_hostWindow)
thickness = m_hostWindow->windowToViewportScalar(thickness);
- Widget::setFrameRect(IntRect(0, 0, thickness, thickness));
+ FrameViewBase::setFrameRect(IntRect(0, 0, thickness, thickness));
m_currentPos = scrollableAreaCurrentPos();
}
@@ -86,14 +86,14 @@ Scrollbar::~Scrollbar() {
DEFINE_TRACE(Scrollbar) {
visitor->trace(m_scrollableArea);
visitor->trace(m_hostWindow);
- Widget::trace(visitor);
+ FrameViewBase::trace(visitor);
}
void Scrollbar::setFrameRect(const IntRect& frameRect) {
if (frameRect == this->frameRect())
return;
- Widget::setFrameRect(frameRect);
+ FrameViewBase::setFrameRect(frameRect);
setNeedsPaintInvalidation(AllParts);
}
@@ -157,7 +157,7 @@ void Scrollbar::paint(GraphicsContext& context,
return;
if (!theme().paint(*this, context, cullRect))
- Widget::paint(context, cullRect);
+ FrameViewBase::paint(context, cullRect);
}
void Scrollbar::autoscrollTimerFired(TimerBase*) {
@@ -573,7 +573,7 @@ IntRect Scrollbar::convertToContainingWidget(const IntRect& localRect) const {
return m_scrollableArea->convertFromScrollbarToContainingWidget(*this,
localRect);
- return Widget::convertToContainingWidget(localRect);
+ return FrameViewBase::convertToContainingWidget(localRect);
}
IntRect Scrollbar::convertFromContainingWidget(
@@ -582,7 +582,7 @@ IntRect Scrollbar::convertFromContainingWidget(
return m_scrollableArea->convertFromContainingWidgetToScrollbar(*this,
parentRect);
- return Widget::convertFromContainingWidget(parentRect);
+ return FrameViewBase::convertFromContainingWidget(parentRect);
}
IntPoint Scrollbar::convertToContainingWidget(
@@ -591,7 +591,7 @@ IntPoint Scrollbar::convertToContainingWidget(
return m_scrollableArea->convertFromScrollbarToContainingWidget(*this,
localPoint);
- return Widget::convertToContainingWidget(localPoint);
+ return FrameViewBase::convertToContainingWidget(localPoint);
}
IntPoint Scrollbar::convertFromContainingWidget(
@@ -600,7 +600,7 @@ IntPoint Scrollbar::convertFromContainingWidget(
return m_scrollableArea->convertFromContainingWidgetToScrollbar(
*this, parentPoint);
- return Widget::convertFromContainingWidget(parentPoint);
+ return FrameViewBase::convertFromContainingWidget(parentPoint);
}
float Scrollbar::scrollableAreaCurrentPos() const {
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698