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

Issue 23035007: Replace HTMLTextFormControlElement::fixPlaceholderRenderer with an override of RenderTextControl::a… (Closed)

Created:
7 years, 4 months ago by esprehn
Modified:
7 years, 4 months ago
Reviewers:
tkent, eseidel, ojan
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, jchaffraix+rendering, leviw+renderwatch
Visibility:
Public.

Description

Replace HTMLTextFormControlElement::fixPlaceholderRenderer with an override of RenderTextControl::addChild fixPlaceholderRenderer was used to rearrange the render tree to make sure that the placeholder text was always first. It required a synchronous attach hook though so isntead just teach RenderTextControl::addChild how to do this reordering. The hack is still really ugly, but at least it's contained in one place. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156619

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add TestExpectations and clean up #

Patch Set 3 : Rebase #

Patch Set 4 : Just delete the test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -82 lines) Patch
D LayoutTests/fast/dom/shadow/shadowdom-for-textarea-with-placeholder.html View 1 2 3 1 chunk +0 lines, -21 lines 0 comments Download
D LayoutTests/fast/dom/shadow/shadowdom-for-textarea-with-placeholder-expected.html View 1 2 3 1 chunk +0 lines, -17 lines 0 comments Download
M Source/core/html/HTMLTextAreaElement.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/HTMLTextAreaElement.cpp View 1 2 3 chunks +3 lines, -10 lines 0 comments Download
M Source/core/html/HTMLTextFormControlElement.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/HTMLTextFormControlElement.cpp View 1 2 1 chunk +0 lines, -18 lines 0 comments Download
M Source/core/html/TextFieldInputType.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/TextFieldInputType.cpp View 1 2 2 chunks +3 lines, -13 lines 0 comments Download
M Source/core/rendering/RenderTextControl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderTextControl.cpp View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
esprehn
7 years, 4 months ago (2013-08-20 21:28:44 UTC) #1
eseidel
lgtm
7 years, 4 months ago (2013-08-20 21:38:29 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/23035007/1
7 years, 4 months ago (2013-08-20 21:38:43 UTC) #3
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=2869
7 years, 4 months ago (2013-08-21 05:18:33 UTC) #4
esprehn
This doesn't work right now because there's tests for what happens when you reproject the ...
7 years, 4 months ago (2013-08-22 03:53:42 UTC) #5
tkent
On 2013/08/22 03:53:42, esprehn wrote: > This doesn't work right now because there's tests for ...
7 years, 4 months ago (2013-08-22 03:59:06 UTC) #6
ojan
lgtm https://codereview.chromium.org/23035007/diff/1/Source/core/html/TextFieldInputType.cpp File Source/core/html/TextFieldInputType.cpp (right): https://codereview.chromium.org/23035007/diff/1/Source/core/html/TextFieldInputType.cpp#newcode419 Source/core/html/TextFieldInputType.cpp:419: element()->userAgentShadowRoot()->insertBefore(m_placeholder, m_container ? m_container->nextSibling() : innerTextElement()->nextSibling(), ASSERT_NO_EXCEPTION); Can ...
7 years, 4 months ago (2013-08-22 18:41:47 UTC) #7
esprehn
On 2013/08/22 18:41:47, ojan wrote: > lgtm > > https://codereview.chromium.org/23035007/diff/1/Source/core/html/TextFieldInputType.cpp > File Source/core/html/TextFieldInputType.cpp (right): > ...
7 years, 4 months ago (2013-08-23 01:41:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/23035007/18001
7 years, 4 months ago (2013-08-23 01:44:47 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=2943
7 years, 4 months ago (2013-08-23 03:06:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/23035007/36001
7 years, 4 months ago (2013-08-23 03:47:45 UTC) #11
commit-bot: I haz the power
7 years, 4 months ago (2013-08-23 05:43:35 UTC) #12
Message was sent while issue was closed.
Change committed as 156619

Powered by Google App Engine
This is Rietveld 408576698