WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 58516
Have canvas drawImageFromRect just redirect to use drawImage
https://bugs.webkit.org/show_bug.cgi?id=58516
Summary
Have canvas drawImageFromRect just redirect to use drawImage
Matthew Delaney
Reported
2011-04-13 22:53:50 PDT
Currently drawImageFromRect re-implements pretty much everything drawImage does already for it. It should just use drawImage directly instead.
Attachments
Patch
(8.79 KB, patch)
2011-04-14 11:08 PDT
,
Matthew Delaney
no flags
Details
Formatted Diff
Diff
Patch
(7.00 KB, patch)
2011-04-14 11:48 PDT
,
Matthew Delaney
simon.fraser
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Matthew Delaney
Comment 1
2011-04-14 11:08:58 PDT
Created
attachment 89608
[details]
Patch
Simon Fraser (smfr)
Comment 2
2011-04-14 11:15:38 PDT
Comment on
attachment 89608
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=89608&action=review
> Source/WebCore/bindings/js/JSCanvasRenderingContext2DCustom.cpp:299 > - ustringToString(exec->argument(9).toString(exec))); > - return jsUndefined(); > + ustringToString(exec->argument(9).toString(exec)), ec); > + setDOMException(exec, ec); > + > + return jsUndefined();
This change looks unrelated. If you did intend to include it, then the changelog should describe it, and the testcase should exercise it.
WebKit Review Bot
Comment 3
2011-04-14 11:21:16 PDT
Attachment 89608
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/8397690
Matthew Delaney
Comment 4
2011-04-14 11:48:14 PDT
Created
attachment 89616
[details]
Patch
Matthew Delaney
Comment 5
2011-04-14 11:50:48 PDT
> > Source/WebCore/bindings/js/JSCanvasRenderingContext2DCustom.cpp:299 > > - ustringToString(exec->argument(9).toString(exec))); > > - return jsUndefined(); > > + ustringToString(exec->argument(9).toString(exec)), ec); > > + setDOMException(exec, ec); > > + > > + return jsUndefined(); > > This change looks unrelated. If you did intend to include it, then the changelog should describe it, and the testcase should exercise it.
Good call. I initially thought it would be best for drawImageFromRect to behave just as drawImage does WRT dom exceptions and such. Though, since it's simply a legacy routine used by only a few sites and dashboard widgets, I think it's best to leave its behavior as-is. Updated patch does so.
WebKit Review Bot
Comment 6
2011-04-14 12:11:39 PDT
Attachment 89608
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/8400761
Matthew Delaney
Comment 7
2011-04-14 13:31:54 PDT
Committed
r83888
: <
http://trac.webkit.org/changeset/83888
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug