Skip to content

Snap to screen pixels instead of px - #7667

Merged
bors-servo merged 2 commits into
servo:masterfrom
mbrubeck:oh-snap
Sep 18, 2015
Merged

bors-servo merged 2 commits into
servo:masterfrom
mbrubeck:oh-snap

Conversation

@mbrubeck

Copy link
Copy Markdown
Contributor

Fixes #7665. r? @glennw

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 18, 2015
@mbrubeck

Copy link
Copy Markdown
Contributor Author

Note: I haven't tested this on an actual retina-style display, but I simulated it by zooming and by using --device-pixel-ratio.

Also, I forgot to add a test, which I'll do shortly.

Comment thread components/gfx/paint_context.rs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this also apply the scale?

@mbrubeck

Copy link
Copy Markdown
Contributor Author

AzIntSize::to_nearest_azure_size was dead code. Removed in the latest version.

@glennw

glennw commented Sep 18, 2015

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 9333f02 has been approved by glennw

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 9333f02 with merge 491d62c...

@highfive highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Sep 18, 2015
bors-servo pushed a commit that referenced this pull request Sep 18, 2015
@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Sep 18, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Sep 18, 2015
@mbrubeck

Copy link
Copy Markdown
Contributor Author

@bors-servo retry

#7422

@bors-servo

Copy link
Copy Markdown
Contributor

⚡ Previous build results for android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css are reusable. Rebuilding only mac-rel-wpt...

@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

@bors-servo
bors-servo merged commit 9333f02 into servo:master Sep 18, 2015
@SimonSapin SimonSapin removed the S-tests-failed The changes caused existing tests to fail. label Jan 27, 2016
@mbrubeck
mbrubeck deleted the oh-snap branch May 11, 2016 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants