-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #10727 - jdm:canvas_panic, r=pcwalton
Use DOM width/height for canvas display list item. Fixes #10705. r? @glennw <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10727) <!-- Reviewable:end -->
- Loading branch information
Showing
9 changed files
with
81 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/wpt/metadata/webgl/conformance-1.0.3/conformance/reading/read-pixels-test.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[read-pixels-test.html] | ||
type: testharness | ||
expected: CRASH | ||
expected: TIMEOUT |
2 changes: 1 addition & 1 deletion
2
...ata/webgl/conformance-1.0.3/conformance/state/state-uneffected-after-compositing.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...wpt/metadata/webgl/conformance-1.0.3/conformance/textures/texture-size-cube-maps.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[texture-size-cube-maps.html] | ||
type: testharness | ||
expected: CRASH | ||
expected: TIMEOUT |
4 changes: 1 addition & 3 deletions
4
tests/wpt/metadata/webgl/conformance-1.0.3/conformance/textures/texture-size-limit.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
[texture-size-limit.html] | ||
type: testharness | ||
expected: | ||
if os == "linux": CRASH | ||
if not debug and (os == "mac") and (version == "OS X 10.10.5") and (processor == "x86_64") and (bits == 64) and (backend == "cpu"): CRASH | ||
expected: TIMEOUT | ||
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas] | ||
expected: FAIL | ||
|
4 changes: 1 addition & 3 deletions
4
tests/wpt/metadata/webgl/conformance-1.0.3/conformance/textures/texture-size.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
[texture-size.html] | ||
type: testharness | ||
expected: | ||
if os == "linux": CRASH | ||
if not debug and (os == "mac") and (version == "OS X 10.10.5") and (processor == "x86_64") and (bits == 64) and (backend == "cpu"): CRASH | ||
expected: TIMEOUT | ||
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas] | ||
expected: FAIL | ||
|
23 changes: 23 additions & 0 deletions
23
...tests/html/rendering/replaced-elements/embedded-content-rendering-rules/canvas_scale.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>Verify that canvases are scaled up to their computed size</title> | ||
<link rel="match" href="canvas_scale_ref.html"> | ||
<style> | ||
canvas { | ||
width: 20px; | ||
height: 20px; | ||
} | ||
div { | ||
line-height: 0; | ||
} | ||
</style> | ||
<div><canvas width="16" height="16" data-color="#FF00FF"></canvas><canvas width="16" height="16" data-color="#00FF00"></canvas></div> | ||
<div><canvas width="16" height="16" data-color="#0000FF"></canvas><canvas width="16" height="16" data-color="#FF00FF"></canvas></div> | ||
<script> | ||
var canvases = document.getElementsByTagName('canvas'); | ||
for (var i = 0; i < canvases.length; i++) { | ||
var ctx = canvases[i].getContext('2d'); | ||
ctx.fillStyle = canvases[i].getAttribute('data-color'); | ||
ctx.fillRect(0, 0, 16, 16); | ||
} | ||
</script> |
14 changes: 14 additions & 0 deletions
14
...s/html/rendering/replaced-elements/embedded-content-rendering-rules/canvas_scale_ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<style> | ||
span { | ||
display: inline-block; | ||
width: 20px; | ||
height: 20px; | ||
} | ||
div { | ||
line-height: 0; | ||
} | ||
</style> | ||
<div><span style="background-color: #FF00FF"></span><span style="background-color: #00FF00"></span></div> | ||
<div><span style="background-color: #0000FF"></span><span style="background-color: #FF00FF"></span></div> |