Bug 81866 - Expand RenderTextControlSingleLine::controlClipRect() to contain contentRect().
Summary: Expand RenderTextControlSingleLine::controlClipRect() to contain contentRect().
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kent Tamura
URL:
Keywords:
Depends on:
Blocks: 80479
  Show dependency treegraph
 
Reported: 2012-03-21 20:35 PDT by Kent Tamura
Modified: 2012-03-22 01:06 PDT (History)
3 users (show)

See Also:


Attachments
Patch (3.58 KB, patch)
2012-03-21 22:20 PDT, Kent Tamura
no flags Details | Formatted Diff | Diff
Patch 2 (3.18 KB, patch)
2012-03-22 00:13 PDT, Kent Tamura
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Tamura 2012-03-21 20:35:31 PDT
Clip by contentRect() instead of container's frameRect() in RenderTextControlSingleLine
Comment 1 Kent Tamura 2012-03-21 22:20:55 PDT
Created attachment 133189 [details]
Patch
Comment 2 Kent Tamura 2012-03-21 22:24:17 PDT
Comment on attachment 133189 [details]
Patch

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

> Source/WebCore/ChangeLog:28
> +          â ShadowRoot
> +             â container element
> +        âââââââââââââââ<input> box
> +        â ââââââââââââ â
> +        â âcontainer box       â â
> +        â ââââââââââââ â
> +        âââââââââââââââ

Broken by Bug 75394.  Please look at https://bugs.webkit.org/attachment.cgi?id=133189 instead.
Comment 3 Hajime Morrita 2012-03-21 23:52:13 PDT
Comment on attachment 133189 [details]
Patch

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

Do we really need to handle searchbox specially?
can be just compute union of content element and clip?

> Source/WebCore/rendering/RenderTextControlSingleLine.cpp:375
> +        RenderBox* containerBox = containerElement()->renderBox();

It looks we can expect containerbox being not null according to the original code?
Comment 4 Kent Tamura 2012-03-21 23:56:00 PDT
(In reply to comment #3)
> Do we really need to handle searchbox specially?
> can be just compute union of content element and clip?

Oh, union is a good idea.
Comment 5 Kent Tamura 2012-03-22 00:13:57 PDT
Created attachment 133197 [details]
Patch 2
Comment 6 WebKit Review Bot 2012-03-22 01:06:54 PDT
Comment on attachment 133197 [details]
Patch 2

Clearing flags on attachment: 133197

Committed r111660: <http://trac.webkit.org/changeset/111660>
Comment 7 WebKit Review Bot 2012-03-22 01:06:58 PDT
All reviewed patches have been landed.  Closing bug.