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

Side by Side Diff: Source/core/layout/LayoutScrollbar.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/layout/LayoutSliderContainer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 visitor->trace(m_owner); 86 visitor->trace(m_owner);
87 visitor->trace(m_owningFrame); 87 visitor->trace(m_owningFrame);
88 #endif 88 #endif
89 Scrollbar::trace(visitor); 89 Scrollbar::trace(visitor);
90 } 90 }
91 91
92 LayoutBox* LayoutScrollbar::owningRenderer() const 92 LayoutBox* LayoutScrollbar::owningRenderer() const
93 { 93 {
94 if (m_owningFrame) 94 if (m_owningFrame)
95 return m_owningFrame->ownerLayoutObject(); 95 return m_owningFrame->ownerLayoutObject();
96 return m_owner && m_owner->renderer() ? m_owner->renderer()->enclosingBox() : 0; 96 return m_owner && m_owner->layoutObject() ? m_owner->layoutObject()->enclosi ngBox() : 0;
97 } 97 }
98 98
99 void LayoutScrollbar::setParent(Widget* parent) 99 void LayoutScrollbar::setParent(Widget* parent)
100 { 100 {
101 Scrollbar::setParent(parent); 101 Scrollbar::setParent(parent);
102 if (!parent) { 102 if (!parent) {
103 // Destroy all of the scrollbar's LayoutBoxes. 103 // Destroy all of the scrollbar's LayoutBoxes.
104 updateScrollbarParts(true); 104 updateScrollbarParts(true);
105 } 105 }
106 } 106 }
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 int LayoutScrollbar::minimumThumbLength() 346 int LayoutScrollbar::minimumThumbLength()
347 { 347 {
348 LayoutScrollbarPart* partRenderer = m_parts.get(ThumbPart); 348 LayoutScrollbarPart* partRenderer = m_parts.get(ThumbPart);
349 if (!partRenderer) 349 if (!partRenderer)
350 return 0; 350 return 0;
351 partRenderer->layout(); 351 partRenderer->layout();
352 return orientation() == HorizontalScrollbar ? partRenderer->size().width() : partRenderer->size().height(); 352 return orientation() == HorizontalScrollbar ? partRenderer->size().width() : partRenderer->size().height();
353 } 353 }
354 354
355 } 355 }
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/layout/LayoutSliderContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698