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

Issue 21165005: Support author Shadow DOM for INPUT elements (Closed)

Created:
7 years, 4 months ago by tkent
Modified:
7 years, 3 months ago
CC:
blink-reviews, webcomponents-bugzilla_chromium.org, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Support author Shadow DOM for INPUT elements. When the first author ShadowRoot is added to an input element, we need to disable all of UI-specific behavior. * Add Element::didAddShadowRoot callback, and HTMLInputElmeent:: didAddShadowRoot replaces m_inputTypeView with one which disables UI-specific behavior, and re-attach a renderer. * InputType::destroyShadowSubTree: We should not remove the content of author ShadowRoots. We don't need to take care of removal of author ShadowRoots. It never happens. BUG=274205 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157510

Patch Set 1 : #

Patch Set 2 : Add tests #

Total comments: 2

Patch Set 3 : Test should work on Windows and Linux. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -17 lines) Patch
M LayoutTests/fast/dom/shadow/shadow-disable.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/shadow/shadow-disable-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/shadow/shadow-element-inactive.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/shadow/shadow-element-inactive-expected.txt View 1 2 chunks +3 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/shadowdom-for-input-appearance.html View 1 1 chunk +35 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/shadowdom-for-input-appearance-expected.html View 1 1 chunk +35 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/shadow/shadowdom-for-input-button-click.html View 1 chunk +0 lines, -4 lines 0 comments Download
A LayoutTests/fast/dom/shadow/shadowdom-for-input-checkbox.html View 1 chunk +70 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/shadowdom-for-input-checkbox-expected.html View 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change.html View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/shadowdom-for-input-type-change-expected.txt View 1 1 chunk +13 lines, -0 lines 0 comments Download
M Source/core/dom/Element.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Element.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/dom/shadow/ElementShadow.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLInputElement.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLInputElement.cpp View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/html/HTMLTextAreaElement.h View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/html/HTMLTextFormControlElement.h View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/html/InputType.cpp View 1 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/html/forms/InputTypeView.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/forms/InputTypeView.cpp View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
tkent
Finally the patch is reviewable.
7 years, 3 months ago (2013-09-05 06:14:34 UTC) #1
tkent
ideally, we should check all of INPUT element behavior with INPUT elements + author ShadowRoots. ...
7 years, 3 months ago (2013-09-05 06:17:09 UTC) #2
esprehn
On 2013/09/05 06:17:09, tkent wrote: > ideally, we should check all of INPUT element behavior ...
7 years, 3 months ago (2013-09-09 01:18:33 UTC) #3
tkent
On 2013/09/09 01:18:33, esprehn wrote: > You don't need the lazyReattach in the didAddShadowRoot callback. ...
7 years, 3 months ago (2013-09-09 02:32:49 UTC) #4
Hajime Morrita
Wow, it's finally coming! I haven't expected this to happen such early :-) Let's have ...
7 years, 3 months ago (2013-09-09 05:02:22 UTC) #5
tkent
On 2013/09/09 05:02:22, morrita1 wrote: > Wow, it's finally coming! I haven't expected this to ...
7 years, 3 months ago (2013-09-10 03:50:54 UTC) #6
tkent
I have updated the patch. On 2013/09/09 05:02:22, morrita1 wrote: > - dynamically updating @type ...
7 years, 3 months ago (2013-09-10 05:18:15 UTC) #7
Hajime Morrita
LGTM. Let's give it a try to see how fuzzer beats this. https://codereview.chromium.org/21165005/diff/26001/Source/core/dom/Element.h File Source/core/dom/Element.h ...
7 years, 3 months ago (2013-09-10 06:35:58 UTC) #8
Hajime Morrita
LGTM. Let's give it a try to see how fuzzer beats this.
7 years, 3 months ago (2013-09-10 06:35:59 UTC) #9
Hajime Morrita
LGTM. Let's give it a try to see how fuzzer beats this.
7 years, 3 months ago (2013-09-10 06:36:00 UTC) #10
tkent
https://codereview.chromium.org/21165005/diff/26001/Source/core/dom/Element.h File Source/core/dom/Element.h (right): https://codereview.chromium.org/21165005/diff/26001/Source/core/dom/Element.h#newcode447 Source/core/dom/Element.h:447: virtual void didAddShadowRoot(ShadowRoot&); On 2013/09/10 06:35:59, morrita1 wrote: > ...
7 years, 3 months ago (2013-09-10 06:42:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/21165005/34001
7 years, 3 months ago (2013-09-10 07:38:52 UTC) #12
commit-bot: I haz the power
7 years, 3 months ago (2013-09-10 07:44:07 UTC) #13
Message was sent while issue was closed.
Change committed as 157510

Powered by Google App Engine
This is Rietveld 408576698