[Webkit-unassigned] [Bug 149843] Backgrounds bleed out of natively rendered text fields
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 8 16:59:39 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=149843
--- Comment #17 from Wenson Hsieh <wenson_hsieh at apple.com> ---
Comment on attachment 262705
--> https://bugs.webkit.org/attachment.cgi?id=262705
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=262705&action=review
>> Source/WebCore/rendering/RenderThemeMac.mm:856
>> + FloatRect adjustedPaintRect(r);
>
> I think this needs a brief, precise comment explaining why the code does this. The sequence starting on this line is a perfect example of code that is not self explanatory! Maybe something like the change log, but shorter.
Got it. I'll write a sentence about why this adjustment is necessary, and include a link to the radar.
>> Source/WebCore/rendering/RenderThemeMac.mm:860
>> + adjustedPaintRect.inflateY(LayoutUnit::fromPixel(1) / transform.yScale());
>
> Does this yield a different result than if you write:
>
> adjustedPaintRect.inflateX(1 / transform.xScale());
> adjustedPaintRect.inflateY(1 / transform.xScale());
>
> Iâm not sure why itâs helpful to involve LayoutUnit since xScale and yScale are already floating point.
Yes -- just verified that it yields the same result. I'll change it to just use the literal value.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151008/33752366/attachment.html>
More information about the webkit-unassigned
mailing list