Summary: | RenderTextControlSingleLine should not assume that its text element has a renderer | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dominic Cooney <dominicc> | ||||
Component: | Layout and Rendering | Assignee: | Dominic Cooney <dominicc> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | dglazkov, eric, esprehn+autocc, inferno, leviw, mifenton, ojan.autocc, ojan, tkent, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Dominic Cooney
2013-03-07 23:32:54 PST
Created attachment 192161 [details]
Patch
Comment on attachment 192161 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=192161&action=review > Source/WebCore/rendering/RenderTextControlSingleLine.cpp:176 > + ASSERT(innerTextRenderer); Having a placeholderBox always means you'll also have a innerTextRenderer? Comment on attachment 192161 [details] Patch Clearing flags on attachment: 192161 Committed r145239: <http://trac.webkit.org/changeset/145239> All reviewed patches have been landed. Closing bug. Comment on attachment 192161 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=192161&action=review > Source/WebCore/rendering/RenderTextControlSingleLine.cpp:134 > + if (innerTextRenderer) this check is not necessary, because just above you added innerTextRenderer to the if... (In reply to comment #2) > Having a placeholderBox always means you'll also have a innerTextRenderer? I thought so, but now digging into TextFieldInputType::createShadowDOM I am not so sure. I will investigate. (In reply to comment #5) > (From update of attachment 192161 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=192161&action=review > > > Source/WebCore/rendering/RenderTextControlSingleLine.cpp:134 > > + if (innerTextRenderer) > > this check is not necessary, because just above you added innerTextRenderer to the if... Oops. Code blindness. I filed bug 112406. (In reply to comment #6) > (In reply to comment #2) > > Having a placeholderBox always means you'll also have a innerTextRenderer? > > I thought so, but now digging into TextFieldInputType::createShadowDOM I am not so sure. I will investigate. I have filed bug 112410 for this. I think HTMLTextFormControlElement::fixPlaceholderRenderer makes this assumption too, but the assumption is wrong. |