mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
Bug 1531417
- fix marionette test. r=me CLOSED TREE
This commit is contained in:
parent
8ce632b49b
commit
7f0bdd5469
@ -133,6 +133,13 @@ capture.canvas = function(win, left, top, width, height,
|
||||
canvas.height = canvasHeight;
|
||||
}
|
||||
|
||||
if (width * scale > MAX_SKIA_DIMENSIONS) {
|
||||
width = Math.floor(MAX_SKIA_DIMENSIONS / scale);
|
||||
}
|
||||
if (height * scale > MAX_SKIA_DIMENSIONS) {
|
||||
height = Math.floor(MAX_SKIA_DIMENSIONS / scale);
|
||||
}
|
||||
|
||||
let ctx = canvas.getContext(CONTEXT_2D);
|
||||
if (flags === null) {
|
||||
flags = ctx.DRAWWINDOW_DRAW_CARET;
|
||||
|
Loading…
Reference in New Issue
Block a user