Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing set-presence-in-ImageData check from canvas.js #4420

Merged
merged 1 commit into from
Mar 13, 2014
Merged

Removing set-presence-in-ImageData check from canvas.js #4420

merged 1 commit into from
Mar 13, 2014

Conversation

ManasJayanth
Copy link
Contributor

Trying to Fix #4270

if (window.CanvasPixelArray) {
if (typeof window.CanvasPixelArray.prototype.set !== 'function') {
window.CanvasPixelArray.prototype.set = function(arr) {
for (var i = 0, ii = this.length; i < ii; i++) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@timvandermeij Have a look

Copy link
Contributor

Choose a reason for hiding this comment

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

That's better, yes.

@brendandahl
Copy link
Contributor

Could you remind me what browsers don't support set()? Also, is there any documentation that only browsers with CanvasPixelArray need the emulated set function?

@yurydelendik
Copy link
Contributor

That's mostly to remove ie9 logic from the main code

@@ -507,20 +507,15 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {

} else if (imgData.kind === ImageKind.RGBA_32BPP) {
// RGBA, 32-bits per pixel.
var haveSetAndSubarray = 'set' in dest && 'subarray' in src;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@brendandahl Removed!

@ManasJayanth
Copy link
Contributor Author

@yurydelendik Is everything okay with the PR now?

@yurydelendik
Copy link
Contributor

Looks good, thank you

yurydelendik added a commit that referenced this pull request Mar 13, 2014
…sence

Removing set-presence-in-ImageData check from canvas.js
@yurydelendik yurydelendik merged commit 31ea4e0 into mozilla:master Mar 13, 2014
@yurydelendik
Copy link
Contributor

oops, forgot

/botio-linux test

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_test from @yurydelendik received. Current queue size: 0

Live output at: http://107.21.233.14:8877/912ec6a20012099/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/912ec6a20012099/output.txt

Total script time: 26.47 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

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.

Remove "set"-presence-in-ImageData check from canvas.js
6 participants