<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[168601] trunk/Source/WebCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/168601">168601</a></dd>
<dt>Author</dt> <dd>zalan@apple.com</dd>
<dt>Date</dt> <dd>2014-05-11 12:46:53 -0700 (Sun, 11 May 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Subpixel rendering[iOS]: &lt;select&gt; decoration is misaligned when the renderer is on subpixel position.
https://bugs.webkit.org/show_bug.cgi?id=132779
&lt;rdar://problem/16631071&gt;

Reviewed by Simon Fraser.

Push &lt;select&gt; theme decoration's rect to device pixel position to ensure
that the theme bounds are aligned with the renderer's bounds. (in painting terms)
However, as the decoration code paints multiple items, they all need to use snapped
final coordinates for painting : tracked here https://bugs.webkit.org/show_bug.cgi?id=132780
This patch also changes the padding values for &lt;select&gt; [iOS] to compensate for the integer
truncation that happened before subpixel.

Not testable.

* css/html.css:
(select):
* platform/efl/RenderThemeEfl.cpp:
(WebCore::RenderThemeEfl::paintMenuListButtonDecorations):
* platform/efl/RenderThemeEfl.h:
* platform/gtk/RenderThemeGtk.cpp:
(WebCore::RenderThemeGtk::paintMenuListButtonDecorations):
* platform/gtk/RenderThemeGtk.h:
* rendering/RenderTheme.cpp:
(WebCore::RenderTheme::paintDecorations):
* rendering/RenderTheme.h:
(WebCore::RenderTheme::paintMenuListButtonDecorations):
* rendering/RenderThemeIOS.h:
* rendering/RenderThemeIOS.mm:
(WebCore::RenderThemeIOS::paintMenuListButtonDecorations):
* rendering/RenderThemeMac.h:
* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::paintMenuListButtonDecorations):
* rendering/RenderThemeSafari.cpp:
(WebCore::RenderThemeSafari::paintMenuListButtonDecorations):
* rendering/RenderThemeSafari.h:
* rendering/RenderThemeWin.cpp:
(WebCore::RenderThemeWin::paintMenuList):
(WebCore::RenderThemeWin::paintMenuListButtonDecorations):
* rendering/RenderThemeWin.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecsshtmlcss">trunk/Source/WebCore/css/html.css</a></li>
<li><a href="#trunkSourceWebCoreplatformeflRenderThemeEflcpp">trunk/Source/WebCore/platform/efl/RenderThemeEfl.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformeflRenderThemeEflh">trunk/Source/WebCore/platform/efl/RenderThemeEfl.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgtkRenderThemeGtkcpp">trunk/Source/WebCore/platform/gtk/RenderThemeGtk.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgtkRenderThemeGtkh">trunk/Source/WebCore/platform/gtk/RenderThemeGtk.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemecpp">trunk/Source/WebCore/rendering/RenderTheme.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeh">trunk/Source/WebCore/rendering/RenderTheme.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeIOSh">trunk/Source/WebCore/rendering/RenderThemeIOS.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeIOSmm">trunk/Source/WebCore/rendering/RenderThemeIOS.mm</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeMach">trunk/Source/WebCore/rendering/RenderThemeMac.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeMacmm">trunk/Source/WebCore/rendering/RenderThemeMac.mm</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeSafaricpp">trunk/Source/WebCore/rendering/RenderThemeSafari.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeSafarih">trunk/Source/WebCore/rendering/RenderThemeSafari.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeWincpp">trunk/Source/WebCore/rendering/RenderThemeWin.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeWinh">trunk/Source/WebCore/rendering/RenderThemeWin.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/ChangeLog        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -1,3 +1,46 @@
</span><ins>+2014-05-11  Zalan Bujtas  &lt;zalan@apple.com&gt;
+
+        Subpixel rendering[iOS]: &lt;select&gt; decoration is misaligned when the renderer is on subpixel position.
+        https://bugs.webkit.org/show_bug.cgi?id=132779
+        &lt;rdar://problem/16631071&gt;
+
+        Reviewed by Simon Fraser.
+
+        Push &lt;select&gt; theme decoration's rect to device pixel position to ensure
+        that the theme bounds are aligned with the renderer's bounds. (in painting terms)
+        However, as the decoration code paints multiple items, they all need to use snapped 
+        final coordinates for painting : tracked here https://bugs.webkit.org/show_bug.cgi?id=132780
+        This patch also changes the padding values for &lt;select&gt; [iOS] to compensate for the integer
+        truncation that happened before subpixel. 
+
+        Not testable.
+
+        * css/html.css:
+        (select):
+        * platform/efl/RenderThemeEfl.cpp:
+        (WebCore::RenderThemeEfl::paintMenuListButtonDecorations):
+        * platform/efl/RenderThemeEfl.h:
+        * platform/gtk/RenderThemeGtk.cpp:
+        (WebCore::RenderThemeGtk::paintMenuListButtonDecorations):
+        * platform/gtk/RenderThemeGtk.h:
+        * rendering/RenderTheme.cpp:
+        (WebCore::RenderTheme::paintDecorations):
+        * rendering/RenderTheme.h:
+        (WebCore::RenderTheme::paintMenuListButtonDecorations):
+        * rendering/RenderThemeIOS.h:
+        * rendering/RenderThemeIOS.mm:
+        (WebCore::RenderThemeIOS::paintMenuListButtonDecorations):
+        * rendering/RenderThemeMac.h:
+        * rendering/RenderThemeMac.mm:
+        (WebCore::RenderThemeMac::paintMenuListButtonDecorations):
+        * rendering/RenderThemeSafari.cpp:
+        (WebCore::RenderThemeSafari::paintMenuListButtonDecorations):
+        * rendering/RenderThemeSafari.h:
+        * rendering/RenderThemeWin.cpp:
+        (WebCore::RenderThemeWin::paintMenuList):
+        (WebCore::RenderThemeWin::paintMenuListButtonDecorations):
+        * rendering/RenderThemeWin.h:
+
</ins><span class="cx"> 2014-05-11  Zan Dobersek  &lt;zdobersek@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Move Source/WebCore/workers/ code to std::unique_ptr
</span></span></pre></div>
<a id="trunkSourceWebCorecsshtmlcss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/html.css (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/html.css        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/css/html.css        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -882,7 +882,7 @@
</span><span class="cx">     /* We want to be as close to background:transparent as possible without actually being transparent */
</span><span class="cx">     background-color: rgba(255, 255, 255, 0.01);
</span><span class="cx">     font: 11px Helvetica;
</span><del>-    padding: 0 0.5em 0 0.5em;
</del><ins>+    padding: 0 0.4em 0 0.4em;
</ins><span class="cx"> #else
</span><span class="cx">     -webkit-appearance: menulist;
</span><span class="cx">     border: 1px solid;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformeflRenderThemeEflcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/efl/RenderThemeEfl.cpp (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/efl/RenderThemeEfl.cpp        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/platform/efl/RenderThemeEfl.cpp        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -863,9 +863,9 @@
</span><span class="cx">     adjustMenuListStyle(styleResolver, style, element);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool RenderThemeEfl::paintMenuListButtonDecorations(const RenderObject&amp; object, const PaintInfo&amp; info, const IntRect&amp; rect)
</del><ins>+bool RenderThemeEfl::paintMenuListButtonDecorations(const RenderObject&amp; object, const PaintInfo&amp; info, const FloatRect&amp; rect)
</ins><span class="cx"> {
</span><del>-    return paintMenuList(object, info, rect);
</del><ins>+    return paintMenuList(object, info, IntRect(rect));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void RenderThemeEfl::adjustTextFieldStyle(StyleResolver* styleResolver, RenderStyle* style, Element* element) const
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformeflRenderThemeEflh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/efl/RenderThemeEfl.h (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/efl/RenderThemeEfl.h        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/platform/efl/RenderThemeEfl.h        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -129,7 +129,7 @@
</span><span class="cx">     virtual bool paintMenuList(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</span><span class="cx"> 
</span><span class="cx">     virtual void adjustMenuListButtonStyle(StyleResolver*, RenderStyle*, Element*) const;
</span><del>-    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</del><ins>+    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const FloatRect&amp;);
</ins><span class="cx"> 
</span><span class="cx">     virtual void adjustSearchFieldResultsDecorationPartStyle(StyleResolver*, RenderStyle*, Element*) const;
</span><span class="cx">     virtual bool paintSearchFieldResultsDecorationPart(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgtkRenderThemeGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/gtk/RenderThemeGtk.cpp (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/gtk/RenderThemeGtk.cpp        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/platform/gtk/RenderThemeGtk.cpp        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -241,9 +241,9 @@
</span><span class="cx">     adjustMenuListStyle(styleResolver, style, e);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool RenderThemeGtk::paintMenuListButtonDecorations(const RenderObject&amp; object, const PaintInfo&amp; info, const IntRect&amp; rect)
</del><ins>+bool RenderThemeGtk::paintMenuListButtonDecorations(const RenderObject&amp; object, const PaintInfo&amp; info, const FloatRect&amp; rect)
</ins><span class="cx"> {
</span><del>-    return paintMenuList(object, info, rect);
</del><ins>+    return paintMenuList(object, info, IntRect(rect));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool RenderThemeGtk::paintTextArea(const RenderObject&amp; o, const PaintInfo&amp; i, const IntRect&amp; r)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgtkRenderThemeGtkh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/gtk/RenderThemeGtk.h (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/gtk/RenderThemeGtk.h        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/platform/gtk/RenderThemeGtk.h        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -138,7 +138,7 @@
</span><span class="cx">     virtual void adjustMenuListStyle(StyleResolver*, RenderStyle*, Element*) const;
</span><span class="cx">     virtual void adjustMenuListButtonStyle(StyleResolver*, RenderStyle*, Element*) const;
</span><span class="cx">     virtual bool paintMenuList(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</span><del>-    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</del><ins>+    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const FloatRect&amp;);
</ins><span class="cx"> 
</span><span class="cx">     virtual void adjustSearchFieldResultsDecorationPartStyle(StyleResolver*, RenderStyle*, Element*) const;
</span><span class="cx">     virtual bool paintSearchFieldResultsDecorationPart(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderTheme.cpp (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderTheme.cpp        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/rendering/RenderTheme.cpp        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -476,7 +476,7 @@
</span><span class="cx">     // Call the appropriate paint method based off the appearance value.
</span><span class="cx">     switch (renderer.style().appearance()) {
</span><span class="cx">     case MenulistButtonPart:
</span><del>-        return paintMenuListButtonDecorations(renderer, paintInfo, integralSnappedRect);
</del><ins>+        return paintMenuListButtonDecorations(renderer, paintInfo, devicePixelSnappedRect);
</ins><span class="cx">     case TextFieldPart:
</span><span class="cx">         return paintTextFieldDecorations(renderer, paintInfo, devicePixelSnappedRect);
</span><span class="cx">     case TextAreaPart:
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderTheme.h (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderTheme.h        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/rendering/RenderTheme.h        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -302,7 +302,7 @@
</span><span class="cx">     virtual bool paintMenuListDecorations(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;) { return true; }
</span><span class="cx"> 
</span><span class="cx">     virtual void adjustMenuListButtonStyle(StyleResolver*, RenderStyle*, Element*) const;
</span><del>-    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;) { return true; }
</del><ins>+    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const FloatRect&amp;) { return true; }
</ins><span class="cx"> 
</span><span class="cx">     virtual bool paintPushButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;) { return true; }
</span><span class="cx">     virtual bool paintSquareButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;) { return true; }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeIOSh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderThemeIOS.h (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeIOS.h        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/rendering/RenderThemeIOS.h        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx">     virtual bool paintTextAreaDecorations(const RenderObject&amp;, const PaintInfo&amp;, const FloatRect&amp;) override;
</span><span class="cx"> 
</span><span class="cx">     virtual void adjustMenuListButtonStyle(StyleResolver*, RenderStyle*, Element*) const override;
</span><del>-    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;) override;
</del><ins>+    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const FloatRect&amp;) override;
</ins><span class="cx"> 
</span><span class="cx">     virtual void adjustSliderTrackStyle(StyleResolver*, RenderStyle*, Element*) const override;
</span><span class="cx">     virtual bool paintSliderTrack(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;) override;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderThemeIOS.mm (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeIOS.mm        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/rendering/RenderThemeIOS.mm        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -583,7 +583,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool RenderThemeIOS::paintMenuListButtonDecorations(const RenderObject&amp; box, const PaintInfo&amp; paintInfo, const IntRect&amp; rect)
</del><ins>+bool RenderThemeIOS::paintMenuListButtonDecorations(const RenderObject&amp; box, const PaintInfo&amp; paintInfo, const FloatRect&amp; rect)
</ins><span class="cx"> {
</span><span class="cx">     RenderStyle&amp; style = box.style();
</span><span class="cx">     float borderTopWidth = style.borderTopWidth();
</span><span class="lines">@@ -637,7 +637,7 @@
</span><span class="cx">         int count = 3;
</span><span class="cx">         int padding = 3;
</span><span class="cx"> 
</span><del>-        IntRect ellipse(buttonClip.x() + (buttonClip.width() - count * (size + padding) + padding) / 2.0, buttonClip.maxY() - 10.0, size, size);
</del><ins>+        FloatRect ellipse(buttonClip.x() + (buttonClip.width() - count * (size + padding) + padding) / 2.0, buttonClip.maxY() - 10.0, size, size);
</ins><span class="cx"> 
</span><span class="cx">         for (int i = 0; i &lt; count; ++i) {
</span><span class="cx">             paintInfo.context-&gt;drawRaisedEllipse(ellipse, Color::white, ColorSpaceDeviceRGB, Color(0.0f, 0.0f, 0.0f, 0.5f), ColorSpaceDeviceRGB);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeMach"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderThemeMac.h (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeMac.h        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/rendering/RenderThemeMac.h        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -134,7 +134,7 @@
</span><span class="cx">     virtual bool paintMenuList(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</span><span class="cx">     virtual void adjustMenuListStyle(StyleResolver*, RenderStyle*, Element*) const;
</span><span class="cx"> 
</span><del>-    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</del><ins>+    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const FloatRect&amp;);
</ins><span class="cx">     virtual void adjustMenuListButtonStyle(StyleResolver*, RenderStyle*, Element*) const;
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(PROGRESS_ELEMENT)
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderThemeMac.mm (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeMac.mm        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/rendering/RenderThemeMac.mm        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -1267,7 +1267,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool RenderThemeMac::paintMenuListButtonDecorations(const RenderObject&amp; renderer, const PaintInfo&amp; paintInfo, const IntRect&amp; rect)
</del><ins>+bool RenderThemeMac::paintMenuListButtonDecorations(const RenderObject&amp; renderer, const PaintInfo&amp; paintInfo, const FloatRect&amp; rect)
</ins><span class="cx"> {
</span><span class="cx">     IntRect bounds = IntRect(rect.x() + renderer.style().borderLeftWidth(),
</span><span class="cx">         rect.y() + renderer.style().borderTopWidth(),
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeSafaricpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderThemeSafari.cpp (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeSafari.cpp        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/rendering/RenderThemeSafari.cpp        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -810,7 +810,7 @@
</span><span class="cx">     paintInfo.context-&gt;restore();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool RenderThemeSafari::paintMenuListButtonDecorations(const RenderObject&amp; renderer, const PaintInfo&amp; paintInfo, const IntRect&amp; rect)
</del><ins>+bool RenderThemeSafari::paintMenuListButtonDecorations(const RenderObject&amp; renderer, const PaintInfo&amp; paintInfo, const FloatRect&amp; rect)
</ins><span class="cx"> {
</span><span class="cx">     IntRect bounds = IntRect(rect.x() + renderer.style().borderLeftWidth(),
</span><span class="cx">         rect.y() + renderer.style().borderTopWidth(),
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeSafarih"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderThemeSafari.h (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeSafari.h        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/rendering/RenderThemeSafari.h        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -105,7 +105,7 @@
</span><span class="cx">     virtual bool paintMenuList(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</span><span class="cx">     virtual void adjustMenuListStyle(StyleResolver*, RenderStyle*, Element*) const;
</span><span class="cx"> 
</span><del>-    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</del><ins>+    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const FloatRect&amp;);
</ins><span class="cx">     virtual void adjustMenuListButtonStyle(StyleResolver*, RenderStyle*, Element*) const;
</span><span class="cx"> 
</span><span class="cx">     virtual bool paintSliderTrack(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeWincpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderThemeWin.cpp (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeWin.cpp        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/rendering/RenderThemeWin.cpp        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -794,7 +794,7 @@
</span><span class="cx"> 
</span><span class="cx">     drawControl(paintInfo.context, renderer, theme, ThemeData(part, determineState(renderer)), rect);
</span><span class="cx">     
</span><del>-    return paintMenuListButtonDecorations(renderer, paintInfo, rect);
</del><ins>+    return paintMenuListButtonDecorations(renderer, paintInfo, FloatRect(rect));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void RenderThemeWin::adjustMenuListStyle(StyleResolver* styleResolver, RenderStyle* style, Element* e) const
</span><span class="lines">@@ -834,7 +834,7 @@
</span><span class="cx">     style-&gt;setWhiteSpace(PRE);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool RenderThemeWin::paintMenuListButtonDecorations(const RenderObject&amp; renderer, const PaintInfo&amp; paintInfo, const IntRect&amp; rect)
</del><ins>+bool RenderThemeWin::paintMenuListButtonDecorations(const RenderObject&amp; renderer, const PaintInfo&amp; paintInfo, const FloatRect&amp; rect)
</ins><span class="cx"> {
</span><span class="cx">     // FIXME: Don't make hardcoded assumptions about the thickness of the textfield border.
</span><span class="cx">     int borderThickness = haveTheme ? 1 : 2;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeWinh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderThemeWin.h (168600 => 168601)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeWin.h        2014-05-11 19:10:41 UTC (rev 168600)
+++ trunk/Source/WebCore/rendering/RenderThemeWin.h        2014-05-11 19:46:53 UTC (rev 168601)
</span><span class="lines">@@ -89,7 +89,7 @@
</span><span class="cx">     virtual bool paintMenuList(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</span><span class="cx">     virtual void adjustMenuListButtonStyle(StyleResolver*, RenderStyle*, Element*) const;
</span><span class="cx"> 
</span><del>-    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</del><ins>+    virtual bool paintMenuListButtonDecorations(const RenderObject&amp;, const PaintInfo&amp;, const FloatRect&amp;);
</ins><span class="cx"> 
</span><span class="cx">     virtual bool paintSliderTrack(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</span><span class="cx">     virtual bool paintSliderThumb(const RenderObject&amp;, const PaintInfo&amp;, const IntRect&amp;);
</span></span></pre>
</div>
</div>

</body>
</html>