Bug 215516 - RenderTextControlSingleLine::scroll* functions should not call Element::scroll* on the inner text element
Summary: RenderTextControlSingleLine::scroll* functions should not call Element::scrol...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-08-14 10:51 PDT by zalan
Modified: 2020-08-14 17:28 PDT (History)
13 users (show)

See Also:


Attachments
Patch (3.46 KB, patch)
2020-08-14 15:15 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (3.46 KB, patch)
2020-08-14 15:23 PDT, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2020-08-14 10:51:38 PDT
...instead it should call the inner text element's renderer scroll functions.
Comment 1 zalan 2020-08-14 10:51:54 PDT
rdar://problem/64739768
Comment 2 zalan 2020-08-14 15:15:46 PDT
Created attachment 406625 [details]
Patch
Comment 3 Simon Fraser (smfr) 2020-08-14 15:18:09 PDT
Comment on attachment 406625 [details]
Patch

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

> Source/WebCore/ChangeLog:10
> +        The clients of these functions expect the geometry data to be inline with the rest of the rendering context

in-line or "agree with"? "inline" here confusing in this context.
Comment 4 Darin Adler 2020-08-14 15:20:51 PDT
Comment on attachment 406625 [details]
Patch

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

>> Source/WebCore/ChangeLog:10
>> +        The clients of these functions expect the geometry data to be inline with the rest of the rendering context
> 
> in-line or "agree with"? "inline" here confusing in this context.

Could use the word "consistent"
Comment 5 zalan 2020-08-14 15:23:07 PDT
Created attachment 406626 [details]
Patch
Comment 6 Darin Adler 2020-08-14 15:27:37 PDT
Comment on attachment 406626 [details]
Patch

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

> Source/WebCore/rendering/RenderTextControlSingleLine.cpp:360
> +    if (auto innerTextElement = this->innerTextElement(); innerTextElement && innerTextElement->renderer())

Wow, didn’t know about this syntax!
Comment 7 zalan 2020-08-14 15:35:01 PDT
(In reply to Darin Adler from comment #6)
> Comment on attachment 406626 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=406626&action=review
> 
> > Source/WebCore/rendering/RenderTextControlSingleLine.cpp:360
> > +    if (auto innerTextElement = this->innerTextElement(); innerTextElement && innerTextElement->renderer())
> 
> Wow, didn’t know about this syntax!
I discovered it a couple of months ago and been using it heavily ever since. It's super convenient (and the "discovered" part most likely went like: 1. me looking at Antti's patch. 2. wow, didn't know about this syntax!)
Comment 8 EWS 2020-08-14 17:28:57 PDT
Committed r265722: <https://trac.webkit.org/changeset/265722>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 406626 [details].