Bug 84175 - Change RenderThemeChromiumSkia paint methods to use pixel snapping
Summary: Change RenderThemeChromiumSkia paint methods to use pixel snapping
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: Emil A Eklund
URL:
Keywords:
Depends on:
Blocks: 60318
  Show dependency treegraph
 
Reported: 2012-04-17 11:42 PDT by Emil A Eklund
Modified: 2012-04-17 17:31 PDT (History)
6 users (show)

See Also:


Attachments
Patch (8.06 KB, patch)
2012-04-17 12:09 PDT, Emil A Eklund
no flags Details | Formatted Diff | Diff
Patch (8.09 KB, patch)
2012-04-17 16:28 PDT, Emil A Eklund
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emil A Eklund 2012-04-17 11:42:46 PDT
Change RenderThemeChromiumSkia paint methods to use pixel snapping in preparation for turning on subpixel layout.
Comment 1 Emil A Eklund 2012-04-17 12:09:18 PDT
Created attachment 137578 [details]
Patch
Comment 2 WebKit Review Bot 2012-04-17 14:41:26 PDT
Comment on attachment 137578 [details]
Patch

Attachment 137578 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12425092
Comment 3 Emil A Eklund 2012-04-17 16:28:41 PDT
Created attachment 137630 [details]
Patch
Comment 4 Eric Seidel (no email) 2012-04-17 16:59:48 PDT
Comment on attachment 137630 [details]
Patch

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

> Source/WebCore/rendering/RenderThemeChromiumSkia.cpp:286
> +    LayoutUnit cancelButtonSize = std::min(inputContentBox.width(), std::min(inputContentBox.height(), r.height()));

Don't we normally have "using namespace std;" at the top of cpp files which need min/max?
Comment 5 Emil A Eklund 2012-04-17 17:04:24 PDT
Comment on attachment 137630 [details]
Patch

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

>> Source/WebCore/rendering/RenderThemeChromiumSkia.cpp:286
>> +    LayoutUnit cancelButtonSize = std::min(inputContentBox.width(), std::min(inputContentBox.height(), r.height()));
> 
> Don't we normally have "using namespace std;" at the top of cpp files which need min/max?

Normally we do, I wanted to be consistent with the rest of the file though. If you'd like I could change all of it.
Comment 6 Eric Seidel (no email) 2012-04-17 17:13:25 PDT
Yeah, I noticed that after I made the comment, so I just set cq+.  It's fine. :)
Comment 7 WebKit Review Bot 2012-04-17 17:31:51 PDT
Comment on attachment 137630 [details]
Patch

Clearing flags on attachment: 137630

Committed r114471: <http://trac.webkit.org/changeset/114471>
Comment 8 WebKit Review Bot 2012-04-17 17:31:55 PDT
All reviewed patches have been landed.  Closing bug.