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

Unified Diff: Source/core/html/forms/TextFieldInputType.cpp

Issue 922423002: Move rendering/RenderTextControl* to layout/LayoutTextControl* (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/html/forms/NumberInputType.cpp ('k') | Source/core/html/shadow/TextControlInnerElements.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/TextFieldInputType.cpp
diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp
index aee43ee1027571b0e6dda51c996c4fa5d7bcf8d4..9e02622b69284e96467a1856abfec63605709c35 100644
--- a/Source/core/html/forms/TextFieldInputType.cpp
+++ b/Source/core/html/forms/TextFieldInputType.cpp
@@ -48,11 +48,11 @@
#include "core/html/shadow/ShadowElementNames.h"
#include "core/html/shadow/TextControlInnerElements.h"
#include "core/layout/Layer.h"
+#include "core/layout/LayoutTextControlSingleLine.h"
#include "core/layout/LayoutTheme.h"
#include "core/page/Chrome.h"
#include "core/page/ChromeClient.h"
#include "core/rendering/RenderDetailsMarker.h"
-#include "core/rendering/RenderTextControlSingleLine.h"
#include "platform/EventDispatchForbiddenScope.h"
#include "wtf/text/WTFString.h"
@@ -228,7 +228,7 @@ void TextFieldInputType::forwardEvent(Event* event)
}
if (element().renderer() && (event->isMouseEvent() || event->isDragEvent() || event->hasInterface(EventNames::WheelEvent) || event->type() == EventTypeNames::blur || event->type() == EventTypeNames::focus)) {
- RenderTextControlSingleLine* renderTextControl = toRenderTextControlSingleLine(element().renderer());
+ LayoutTextControlSingleLine* renderTextControl = toLayoutTextControlSingleLine(element().renderer());
if (event->type() == EventTypeNames::blur) {
if (RenderBox* innerEditorRenderer = element().innerEditorElement()->renderBox()) {
// FIXME: This class has no need to know about Layer!
@@ -270,7 +270,7 @@ bool TextFieldInputType::shouldSubmitImplicitly(Event* event)
LayoutObject* TextFieldInputType::createRenderer(const LayoutStyle&) const
{
- return new RenderTextControlSingleLine(&element());
+ return new LayoutTextControlSingleLine(&element());
}
bool TextFieldInputType::shouldHaveSpinButton() const
@@ -306,7 +306,7 @@ void TextFieldInputType::createShadowSubtree()
if (shouldHaveDataListIndicator)
container->appendChild(DataListIndicatorElement::create(document));
// FIXME: Because of a special handling for a spin button in
- // RenderTextControlSingleLine, we need to put it to the last position. It's
+ // LayoutTextControlSingleLine, we need to put it to the last position. It's
// inconsistent with multiple-fields date/time types.
if (shouldHaveSpinButton)
container->appendChild(SpinButtonElement::create(document, *this));
« no previous file with comments | « Source/core/html/forms/NumberInputType.cpp ('k') | Source/core/html/shadow/TextControlInnerElements.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698