Bug 93481 - Accelerated canvas elements shouldn't share style
Summary: Accelerated canvas elements shouldn't share style
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-08 07:42 PDT by Filip Spacek
Modified: 2013-04-19 14:26 PDT (History)
10 users (show)

See Also:


Attachments
Don't share styles for accelerated canvases (1.19 KB, patch)
2012-08-08 07:42 PDT, Filip Spacek
no flags Details | Formatted Diff | Diff
Don't share styles for accelerated canvases (1.30 KB, patch)
2012-08-08 07:52 PDT, Filip Spacek
simon.fraser: review-
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
Don't share styles for accelerated canvases (1.41 KB, patch)
2012-08-09 18:39 PDT, Filip Spacek
thorton: review-
thorton: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Spacek 2012-08-08 07:42:11 PDT
Created attachment 157216 [details]
Don't share styles for accelerated canvases

Style sharing causes style recalculation to short circuit which results in the canvas elements not getting their own layer when they become accelerated.
Comment 1 WebKit Review Bot 2012-08-08 07:44:51 PDT
Attachment 157216 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 2 Filip Spacek 2012-08-08 07:52:54 PDT
Created attachment 157217 [details]
Don't share styles for accelerated canvases

Add bug number
Comment 3 George Staikos 2012-08-08 09:07:31 PDT
Comment on attachment 157217 [details]
Don't share styles for accelerated canvases

Need to set the r? flag if you want review...
Comment 4 George Staikos 2012-08-08 18:50:22 PDT
Comment on attachment 157217 [details]
Don't share styles for accelerated canvases

I don't think you can CQ this because you removed the Reviewed By: line, but let's try and see how smart the scripts are :)
Comment 5 WebKit Review Bot 2012-08-08 19:07:03 PDT
Comment on attachment 157217 [details]
Don't share styles for accelerated canvases

Rejecting attachment 157217 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1

ERROR: /mnt/git/webkit-commit-queue/Source/WebCore/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive).

Full output: http://queues.webkit.org/results/13455733
Comment 6 Simon Fraser (smfr) 2012-08-08 19:49:27 PDT
Comment on attachment 157217 [details]
Don't share styles for accelerated canvases

Looking through the canvas code, we usually do USE(IOSURFACE_CANVAS_BACKING_STORE) || ENABLE(ACCELERATED_2D_CANVAS). The latter is not used for Mac builds, confusingly.
Comment 7 Filip Spacek 2012-08-09 18:39:46 PDT
Created attachment 157608 [details]
Don't share styles for accelerated canvases
Comment 8 Simon Fraser (smfr) 2012-08-09 19:48:18 PDT
I think you should try to make a testcase for this.
Comment 9 George Staikos 2012-08-09 20:17:51 PDT
(In reply to comment #6)
> (From update of attachment 157217 [details])
> Looking through the canvas code, we usually do USE(IOSURFACE_CANVAS_BACKING_STORE) || ENABLE(ACCELERATED_2D_CANVAS). The latter is not used for Mac builds, confusingly.

We need to unify this.  It's really not clear

(In reply to comment #8)
> I think you should try to make a testcase for this.

Is there a way to test something like this?  Seems ... challenging.
Comment 10 Simon Fraser (smfr) 2012-08-10 11:00:30 PDT
(In reply to comment #9)
> (In reply to comment #6)
> > (From update of attachment 157217 [details] [details])
> > Looking through the canvas code, we usually do USE(IOSURFACE_CANVAS_BACKING_STORE) || ENABLE(ACCELERATED_2D_CANVAS). The latter is not used for Mac builds, confusingly.
> 
> We need to unify this.  It's really not clear

Agreed.

> (In reply to comment #8)
> > I think you should try to make a testcase for this.
> 
> Is there a way to test something like this?  Seems ... challenging.

If you look at the history for some of the other "don't share style" criteria, you may find testcases. I recall making one for iframes, I think.
Comment 11 Tim Horton 2013-04-19 14:26:49 PDT
Comment on attachment 157608 [details]
Don't share styles for accelerated canvases

r- to remove from the review queue until there's a test.