Closed
Bug 1360112
Opened 8 years ago
Closed 8 years ago
Correct background image position
Categories
(Core :: Graphics: WebRender, enhancement)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: ethlin, Assigned: ethlin)
References
Details
Attachments
(2 files, 1 obsolete file)
1.65 KB,
patch
|
Details | Diff | Splinter Review | |
6.04 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
According to the test failures [1] (background-repeat-space-1b.html), looks like I missed some calculations for the image position.
https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://queue.taskcluster.net/v1/task/bcFFpERLQM2S-w27Qjiqog/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1
Assignee | ||
Comment 1•8 years ago
|
||
I should calculate firstTilePos[1] for the top-left or the image will be blocked by the border.
[1] https://dxr.mozilla.org/mozilla-central/source/layout/base/nsLayoutUtils.cpp#6765
Attachment #8862303 -
Flags: review?(matt.woodrow)
Comment 2•8 years ago
|
||
I changed some of this code to be strongly typed and to stop using NSRectToRect on the graphics branch (in bug 1359842). I rebased your patch on top of my changes - I thought it might be complicated but it turned out to be pretty simple. Attaching it here since I already did the work.
Comment 3•8 years ago
|
||
Comment on attachment 8862303 [details] [diff] [review]
correct position
Review of attachment 8862303 [details] [diff] [review]:
-----------------------------------------------------------------
Can you move the nsLayoutUtils code into a public helper and then just use that in both places?
Assignee | ||
Comment 4•8 years ago
|
||
I only need the code of firstTilePos. Could I just create a static function to retrieve the firstTilePos?
Attachment #8862303 -
Attachment is obsolete: true
Attachment #8862303 -
Flags: review?(matt.woodrow)
Attachment #8862717 -
Flags: review?(matt.woodrow)
Updated•8 years ago
|
Attachment #8862717 -
Flags: review?(matt.woodrow) → review+
Assignee | ||
Comment 5•8 years ago
|
||
Pushed by ethlin@mozilla.com:
https://hg.mozilla.org/projects/graphics/rev/eb77f99d677f
Correct background image position when enabling webrender background image. r=mattwoodrow
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment 7•8 years ago
|
||
status-firefox55:
--- → fixed
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•