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

Unified Diff: Source/core/html/HTMLSelectElement.cpp

Issue 931423003: Rename rendering/RenderList* to layout/LayoutList* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove spurious LayoutLayerModelObject reference 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/html/HTMLOListElement.cpp ('k') | Source/core/layout/LayoutCounter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLSelectElement.cpp
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp
index 44c3f9e1f274fe378fbc60091114483463c72973..b86dc8c56508dfbfdb37d8968b4aed26c032f294 100644
--- a/Source/core/html/HTMLSelectElement.cpp
+++ b/Source/core/html/HTMLSelectElement.cpp
@@ -51,12 +51,12 @@
#include "core/html/forms/FormController.h"
#include "core/layout/HitTestRequest.h"
#include "core/layout/HitTestResult.h"
+#include "core/layout/LayoutListBox.h"
#include "core/layout/LayoutTheme.h"
#include "core/page/AutoscrollController.h"
#include "core/page/EventHandler.h"
#include "core/page/Page.h"
#include "core/page/SpatialNavigation.h"
-#include "core/rendering/RenderListBox.h"
#include "core/rendering/RenderMenuList.h"
#include "core/rendering/RenderView.h"
#include "platform/PlatformMouseEvent.h"
@@ -382,7 +382,7 @@ LayoutObject* HTMLSelectElement::createRenderer(const LayoutStyle&)
{
if (usesMenuList())
return new RenderMenuList(this);
- return new RenderListBox(this);
+ return new LayoutListBox(this);
}
PassRefPtrWillBeRawPtr<HTMLCollection> HTMLSelectElement::selectedOptions()
@@ -583,7 +583,7 @@ int HTMLSelectElement::nextSelectableListIndexPageAway(int startIndex, SkipDirec
// Can't use m_size because renderer forces a minimum size.
int pageSize = 0;
if (renderer()->isListBox())
- pageSize = toRenderListBox(renderer())->size() - 1; // -1 so we still show context.
+ pageSize = toLayoutListBox(renderer())->size() - 1; // -1 so we still show context.
// One page away, but not outside valid bounds.
// If there is a valid option item one page away, the index is chosen.
@@ -897,7 +897,7 @@ void HTMLSelectElement::scrollToIndex(int listIndex)
if (!renderer() || !renderer()->isListBox())
return;
LayoutRect bounds = items[listIndex]->boundingBox();
- toRenderListBox(renderer())->scrollToRect(bounds);
+ toLayoutListBox(renderer())->scrollToRect(bounds);
}
void HTMLSelectElement::optionSelectionStateChanged(HTMLOptionElement* option, bool optionIsSelected)
« no previous file with comments | « Source/core/html/HTMLOListElement.cpp ('k') | Source/core/layout/LayoutCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698