WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
146273
Subpixel rendering: roundToDevicePixel() snaps to wrong value.
https://bugs.webkit.org/show_bug.cgi?id=146273
Summary
Subpixel rendering: roundToDevicePixel() snaps to wrong value.
alan
Reported
2015-06-23 20:16:46 PDT
RenderLayer::paintForegroundForFragmentsWithPhase() gets a fragment with a foregroundRect of, say: (WebCore::LayoutRect) $23 = (m_location = { x = -96452px (-6172928), y = 0px (0) }, m_size = { width = 146px (9344), height = 310px (19840) }) where -96452 is the left edge of the layer (negative, because we're in vertical-rl content). snapRectToDevicePixels() is converting that to: (const WebCore::FloatRect) $24 = { m_location = (m_x = -96451.5, m_y = 0) m_size = (m_width = 146, m_height = 310) }
Attachments
Patch
(4.70 KB, patch)
2015-06-23 21:08 PDT
,
alan
no flags
Details
Formatted Diff
Diff
Patch
(4.80 KB, patch)
2015-06-24 09:58 PDT
,
alan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
alan
Comment 1
2015-06-23 20:18:10 PDT
rdar://problem/18509840
alan
Comment 2
2015-06-23 21:08:48 PDT
Created
attachment 255471
[details]
Patch
alan
Comment 3
2015-06-24 09:58:58 PDT
Created
attachment 255487
[details]
Patch
WebKit Commit Bot
Comment 4
2015-06-24 10:54:34 PDT
Comment on
attachment 255487
[details]
Patch Clearing flags on attachment: 255487 Committed
r185916
: <
http://trac.webkit.org/changeset/185916
>
WebKit Commit Bot
Comment 5
2015-06-24 10:54:37 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 6
2015-06-24 14:52:46 PDT
Comment on
attachment 255471
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=255471&action=review
> Source/WebCore/platform/LayoutUnit.h:875 > inline float roundToDevicePixel(LayoutUnit value, const float pixelSnappingFactor, bool needsDirectionalRounding = false)
The const here adds nothing and should be removed.
alan
Comment 7
2015-06-24 15:10:06 PDT
(In reply to
comment #6
)
> Comment on
attachment 255471
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=255471&action=review
> > > Source/WebCore/platform/LayoutUnit.h:875 > > inline float roundToDevicePixel(LayoutUnit value, const float pixelSnappingFactor, bool needsDirectionalRounding = false) > > The const here adds nothing and should be removed.
Indeed. Thanks.
alan
Comment 8
2015-06-30 13:06:43 PDT
Addressing post-review comment:
http://trac.webkit.org/changeset/186128
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug