Bug 137727 - Use is<>() / downcast<>() for RenderTextControl / RenderTextControlSingleLine
Summary: Use is<>() / downcast<>() for RenderTextControl / RenderTextControlSingleLine
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on: 137424
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-14 18:56 PDT by Chris Dumez
Modified: 2014-10-15 10:36 PDT (History)
5 users (show)

See Also:


Attachments
Patch (16.73 KB, patch)
2014-10-14 19:00 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (16.68 KB, patch)
2014-10-15 10:16 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2014-10-14 18:56:24 PDT
Use is<>() / downcast<>() for RenderTextControl / RenderTextControlSingleLine.
Comment 1 Chris Dumez 2014-10-14 19:00:21 PDT
Created attachment 239838 [details]
Patch
Comment 2 Darin Adler 2014-10-15 09:18:23 PDT
Comment on attachment 239838 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=239838&action=review

> Source/WebCore/page/EventHandler.cpp:3696
> +        if (auto* renderer = element->renderer()) {
> +            if (is<RenderTextControlSingleLine>(renderer))

Should either use *renderer here, or eliminate the if that checks renderer for null.
Comment 3 Chris Dumez 2014-10-15 10:16:55 PDT
Created attachment 239875 [details]
Patch
Comment 4 WebKit Commit Bot 2014-10-15 10:36:43 PDT
Comment on attachment 239875 [details]
Patch

Clearing flags on attachment: 239875

Committed r174732: <http://trac.webkit.org/changeset/174732>
Comment 5 WebKit Commit Bot 2014-10-15 10:36:48 PDT
All reviewed patches have been landed.  Closing bug.