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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master 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
Index: Source/core/layout/LayoutSliderContainer.cpp
diff --git a/Source/core/layout/LayoutSliderContainer.cpp b/Source/core/layout/LayoutSliderContainer.cpp
index 27f38ade26e85b231a0e683a30095448b82b6199..1c6766ec1282df8202399d33d8bdfa9a1aac085b 100644
--- a/Source/core/layout/LayoutSliderContainer.cpp
+++ b/Source/core/layout/LayoutSliderContainer.cpp
@@ -57,8 +57,8 @@ inline static Decimal sliderPosition(HTMLInputElement* element)
inline static bool hasVerticalAppearance(HTMLInputElement* input)
{
- ASSERT(input->renderer());
- const LayoutStyle& sliderStyle = input->renderer()->styleRef();
+ ASSERT(input->layoutObject());
+ const LayoutStyle& sliderStyle = input->layoutObject()->styleRef();
return sliderStyle.appearance() == SliderVerticalPart;
}
@@ -68,7 +68,7 @@ void LayoutSliderContainer::computeLogicalHeight(LayoutUnit logicalHeight, Layou
HTMLInputElement* input = toHTMLInputElement(node()->shadowHost());
bool isVertical = hasVerticalAppearance(input);
- if (input->renderer()->isSlider() && !isVertical && input->list()) {
+ if (input->layoutObject()->isSlider() && !isVertical && input->list()) {
int offsetFromCenter = LayoutTheme::theme().sliderTickOffsetFromTrackCenter();
LayoutUnit trackHeight = 0;
if (offsetFromCenter < 0) {

Powered by Google App Engine
This is Rietveld 408576698