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

Unified Diff: Source/core/layout/LayoutScrollbar.cpp

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | « Source/core/layout/LayoutScrollbar.h ('k') | Source/core/layout/LayoutSlider.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutScrollbar.cpp
diff --git a/Source/core/layout/LayoutScrollbar.cpp b/Source/core/layout/LayoutScrollbar.cpp
index e78f71283b4d0e2363a98f1f3f8974e1b7116875..76b3fad68d2a761866f7d8889279ff4c05c61985 100644
--- a/Source/core/layout/LayoutScrollbar.cpp
+++ b/Source/core/layout/LayoutScrollbar.cpp
@@ -89,10 +89,10 @@ DEFINE_TRACE(LayoutScrollbar)
Scrollbar::trace(visitor);
}
-RenderBox* LayoutScrollbar::owningRenderer() const
+LayoutBox* LayoutScrollbar::owningRenderer() const
{
if (m_owningFrame) {
- RenderBox* currentRenderer = m_owningFrame->ownerRenderer();
+ LayoutBox* currentRenderer = m_owningFrame->ownerRenderer();
return currentRenderer;
}
return m_owner && m_owner->renderer() ? m_owner->renderer()->enclosingBox() : 0;
@@ -102,7 +102,7 @@ void LayoutScrollbar::setParent(Widget* parent)
{
Scrollbar::setParent(parent);
if (!parent) {
- // Destroy all of the scrollbar's RenderBoxes.
+ // Destroy all of the scrollbar's LayoutBoxes.
updateScrollbarParts(true);
}
}
@@ -190,7 +190,7 @@ void LayoutScrollbar::updateScrollbarParts(bool destroy)
if (newThickness != oldThickness) {
setFrameRect(IntRect(location(), IntSize(isHorizontal ? width() : newThickness, isHorizontal ? newThickness : height())));
- if (RenderBox* box = owningRenderer()) {
+ if (LayoutBox* box = owningRenderer()) {
if (box->isRenderBlock())
toRenderBlock(box)->notifyScrollbarThicknessChanged();
box->setChildNeedsLayout();
« no previous file with comments | « Source/core/layout/LayoutScrollbar.h ('k') | Source/core/layout/LayoutSlider.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698