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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextControl.cpp

Issue 1478573002: Double-clicking whitespace after value text should select the last word in INPUT/TEXTAREA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « third_party/WebKit/Source/core/layout/LayoutTextControl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutTextControl.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextControl.cpp b/third_party/WebKit/Source/core/layout/LayoutTextControl.cpp
index ebe5ed1cbe5d06093aa6be13bfbbb3156091b82f..c3e6049dc0619a6a5b3257553048cafac1be9bbe 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextControl.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTextControl.cpp
@@ -51,17 +51,6 @@ HTMLElement* LayoutTextControl::innerEditorElement() const
return textFormControlElement()->innerEditorElement();
}
-void LayoutTextControl::addChild(LayoutObject* newChild, LayoutObject* beforeChild)
-{
- // FIXME: This is a terrible hack to get the caret over the placeholder text since it'll
- // make us paint the placeholder first. (See https://trac.webkit.org/changeset/118733)
- Node* node = newChild->node();
- if (node && node->isElementNode() && toElement(node)->shadowPseudoId() == "-webkit-input-placeholder")
- LayoutBlockFlow::addChild(newChild, firstChild());
- else
- LayoutBlockFlow::addChild(newChild, beforeChild);
-}
-
void LayoutTextControl::styleDidChange(StyleDifference diff, const ComputedStyle* oldStyle)
{
LayoutBlockFlow::styleDidChange(diff, oldStyle);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTextControl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698