WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
Bug 95939
[Refactoring] ButtonInputType of <input> element should have innerElement to make <input> AuthorShadowDOM-ready
https://bugs.webkit.org/show_bug.cgi?id=95939
Summary
[Refactoring] ButtonInputType of <input> element should have innerElement to ...
Shinya Kawanaka
Reported
2012-09-06 00:07:31 PDT
ButtonInputType creates a ButtonRenderer, and its text is rendered using ButtonRenderer::setText. Since the renderer of its text is always appended as last child of RenderButton, we cannot get text for <shadow> element. We should create some inner element for ButtonInputType to make <input> AuthorShadowDOM ready.
Attachments
WIP
(211.38 KB, patch)
2012-09-06 04:34 PDT
,
Shinya Kawanaka
no flags
Details
Formatted Diff
Diff
Patch
(11.54 KB, patch)
2012-09-06 23:41 PDT
,
Shinya Kawanaka
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Shinya Kawanaka
Comment 1
2012-09-06 04:34:45 PDT
Created
attachment 162474
[details]
WIP
Shinya Kawanaka
Comment 2
2012-09-06 05:33:31 PDT
Needs a lot of rebaseline and a few tests have image diff. We have to fix them. editing/selection/3690703.html
Dimitri Glazkov (Google)
Comment 3
2012-09-06 09:34:25 PDT
Comment on
attachment 162474
[details]
WIP Wow, this patch certainly cleans up the guts of the RenderButton nicely! Do we still need the RenderButton?
Erik Arvidsson
Comment 4
2012-09-06 10:53:46 PDT
Comment on
attachment 162474
[details]
WIP View in context:
https://bugs.webkit.org/attachment.cgi?id=162474&action=review
> Source/WebCore/html/BaseButtonInputType.cpp:70 > + element()->userAgentShadowRoot()->replaceChild(text, element()->userAgentShadowRoot()->firstChild());
Is there a reason why this uses replaceChild instead of updating the existing text node using setData
Shinya Kawanaka
Comment 5
2012-09-06 19:18:01 PDT
(In reply to
comment #4
)
> (From update of
attachment 162474
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=162474&action=review
> > > Source/WebCore/html/BaseButtonInputType.cpp:70 > > + element()->userAgentShadowRoot()->replaceChild(text, element()->userAgentShadowRoot()->firstChild()); > > Is there a reason why this uses replaceChild instead of updating the existing text node using setData
Thanks! I've searched only Text class. I should have checked CharacterData.
Shinya Kawanaka
Comment 6
2012-09-06 19:23:14 PDT
(In reply to
comment #3
)
> (From update of
attachment 162474
[details]
) > Wow, this patch certainly cleans up the guts of the RenderButton nicely! Do we still need the RenderButton?
When we could remove m_inner block, we might be able to do it. It's beyond the scope of this patch, though.
Shinya Kawanaka
Comment 7
2012-09-06 22:31:19 PDT
Hmm. According to this discussion, we should not be able to select text in a button.
https://bugs.webkit.org/show_bug.cgi?id=13624
Shinya Kawanaka
Comment 8
2012-09-06 23:41:06 PDT
Created
attachment 162682
[details]
Patch
Shinya Kawanaka
Comment 9
2012-09-06 23:42:05 PDT
Now we're using TextFragment.
WebKit Review Bot
Comment 10
2012-09-19 19:07:05 PDT
Comment on
attachment 162682
[details]
Patch Clearing flags on attachment: 162682 Committed
r129086
: <
http://trac.webkit.org/changeset/129086
>
WebKit Review Bot
Comment 11
2012-09-19 19:07:10 PDT
All reviewed patches have been landed. Closing bug.
WebKit Review Bot
Comment 12
2012-09-21 02:18:05 PDT
Re-opened since this is blocked by 97312
Shinya Kawanaka
Comment 13
2012-09-21 02:19:44 PDT
Check this
https://bugs.webkit.org/show_bug.cgi?id=97310
Kent Tamura
Comment 14
2013-06-18 21:22:22 PDT
Shadow DOM API was removed.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug