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

Unified Diff: Source/core/layout/LayoutListBox.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/layout/LayoutListBox.h ('k') | Source/core/layout/LayoutListItem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutListBox.cpp
diff --git a/Source/core/rendering/RenderListBox.cpp b/Source/core/layout/LayoutListBox.cpp
similarity index 90%
rename from Source/core/rendering/RenderListBox.cpp
rename to Source/core/layout/LayoutListBox.cpp
index 1ed3fdf02741b2f3a80928dfed8e1d11e0c14425..34d5925b3b86519580c1962c2ca5ccd9ee6a2279 100644
--- a/Source/core/rendering/RenderListBox.cpp
+++ b/Source/core/layout/LayoutListBox.cpp
@@ -28,7 +28,7 @@
*/
#include "config.h"
-#include "core/rendering/RenderListBox.h"
+#include "core/layout/LayoutListBox.h"
#include "core/HTMLNames.h"
#include "core/css/CSSFontSelector.h"
@@ -70,7 +70,7 @@ const int defaultSize = 4;
const int defaultPaddingBottom = 1;
-RenderListBox::RenderListBox(Element* element)
+LayoutListBox::LayoutListBox(Element* element)
: RenderBlockFlow(element)
{
ASSERT(element);
@@ -78,16 +78,16 @@ RenderListBox::RenderListBox(Element* element)
ASSERT(isHTMLSelectElement(element));
}
-RenderListBox::~RenderListBox()
+LayoutListBox::~LayoutListBox()
{
}
-inline HTMLSelectElement* RenderListBox::selectElement() const
+inline HTMLSelectElement* LayoutListBox::selectElement() const
{
return toHTMLSelectElement(node());
}
-int RenderListBox::size() const
+int LayoutListBox::size() const
{
int specifiedSize = selectElement()->size();
if (specifiedSize >= 1)
@@ -96,12 +96,12 @@ int RenderListBox::size() const
return defaultSize;
}
-LayoutUnit RenderListBox::defaultItemHeight() const
+LayoutUnit LayoutListBox::defaultItemHeight() const
{
return style()->fontMetrics().height() + defaultPaddingBottom;
}
-LayoutUnit RenderListBox::itemHeight() const
+LayoutUnit LayoutListBox::itemHeight() const
{
HTMLSelectElement* select = selectElement();
if (!select)
@@ -121,7 +121,7 @@ LayoutUnit RenderListBox::itemHeight() const
return toRenderBox(baseItemRenderer)->size().height();
}
-void RenderListBox::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const
+void LayoutListBox::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const
{
LayoutUnit height = itemHeight() * size();
// FIXME: The item height should have been added before updateLogicalHeight was called to avoid this hack.
@@ -132,7 +132,7 @@ void RenderListBox::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop, Logi
RenderBox::computeLogicalHeight(height, logicalTop, computedValues);
}
-void RenderListBox::stopAutoscroll()
+void LayoutListBox::stopAutoscroll()
{
HTMLSelectElement* select = selectElement();
if (select->isDisabledFormControl())
@@ -140,14 +140,14 @@ void RenderListBox::stopAutoscroll()
select->handleMouseRelease();
}
-void RenderListBox::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const
+void LayoutListBox::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const
{
RenderBlockFlow::computeIntrinsicLogicalWidths(minLogicalWidth, maxLogicalWidth);
if (style()->width().isPercent())
minLogicalWidth = 0;
}
-void RenderListBox::scrollToRect(const LayoutRect& rect)
+void LayoutListBox::scrollToRect(const LayoutRect& rect)
{
if (hasOverflowClip()) {
ASSERT(layer());
« no previous file with comments | « Source/core/layout/LayoutListBox.h ('k') | Source/core/layout/LayoutListItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698