Bug 98315

Summary: Turn Compositing on by default in WebKit build
Product: WebKit Reporter: Rik Cabanier <cabanier>
Component: CSSAssignee: Rik Cabanier <cabanier>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarcelo, dbates, dglazkov, dino, donggwan.kim, macpherson, menard, roger_fong, simon.fraser, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 98681    
Bug Blocks: 91908    
Attachments:
Description Flags
first try
buildbot: commit-queue-
touched .in files
none
updated all featuresDefines files
none
forgot to update patch
webkit.review.bot: commit-queue-
tried changing expectations for chromium
none
fixed patch
simon.fraser: review+, simon.fraser: commit-queue-
updated comments and removed whitespace
buildbot: commit-queue-
dummy change to .in file
none
patched changelog
none
bots couldn't merge changelogs
none
Patch for landing none

Description Rik Cabanier 2012-10-03 16:04:11 PDT
Compositing is behind a define that is currently turned off in WebKit builds.

Simon Fraser recommended that it should be turned on.
Comment 1 Rik Cabanier 2012-10-03 16:15:15 PDT
Created attachment 166985 [details]
first try
Comment 2 Simon Fraser (smfr) 2012-10-03 16:20:50 PDT
Comment on attachment 166985 [details]
first try

View in context: https://bugs.webkit.org/attachment.cgi?id=166985&action=review

> Source/WebCore/Configurations/FeatureDefines.xcconfig:51
>  ENABLE_CSS_IMAGE_ORIENTATION = ;
>  ENABLE_CSS_IMAGE_RESOLUTION = ;
>  ENABLE_CSS_REGIONS = ENABLE_CSS_REGIONS;
>  ENABLE_CSS_SHADERS = ENABLE_CSS_SHADERS;
> -ENABLE_CSS_COMPOSITING = ;
> +ENABLE_CSS_COMPOSITING = ENABLE_CSS_COMPOSITING;
>  ENABLE_CSS_STICKY_POSITION = ENABLE_CSS_STICKY_POSITION;
>  ENABLE_CSS_VARIABLES = ;
>  ENABLE_CSS3_TEXT_DECORATION = ;

You need to do this in all the FeatureDefines.xcconfig files, and make sure ENABLE_CSS_COMPOSITING is included in the FEATURE_DEFINES lines.
Comment 3 Build Bot 2012-10-03 16:20:51 PDT
Comment on attachment 166985 [details]
first try

Attachment 166985 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/14132815
Comment 4 Rik Cabanier 2012-10-03 16:40:43 PDT
Created attachment 166991 [details]
touched .in files
Comment 5 WebKit Review Bot 2012-10-03 16:44:30 PDT
Attachment 166991 [details] did not pass style-queue:

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


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Rik Cabanier 2012-10-03 16:50:02 PDT
Created attachment 166994 [details]
updated all featuresDefines files
Comment 7 Simon Fraser (smfr) 2012-10-03 16:52:09 PDT
Comment on attachment 166994 [details]
updated all featuresDefines files

Bad patch
Comment 8 WebKit Review Bot 2012-10-03 16:53:54 PDT
Attachment 166994 [details] did not pass style-queue:

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


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 Rik Cabanier 2012-10-03 16:58:01 PDT
Created attachment 167000 [details]
forgot to update patch
Comment 10 Rik Cabanier 2012-10-03 19:16:35 PDT
Created attachment 167021 [details]
tried changing expectations for chromium
Comment 11 WebKit Review Bot 2012-10-03 19:18:29 PDT
Attachment 167021 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/css3..." exit_code: 1
LayoutTests/ChangeLog:16:  Need whitespace between colon and description  [changelog/filechangedescriptionwhitespace] [5]
Total errors found: 1 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 12 Rik Cabanier 2012-10-03 19:22:00 PDT
Created attachment 167023 [details]
fixed patch
Comment 13 WebKit Review Bot 2012-10-03 19:32:00 PDT
Comment on attachment 167000 [details]
forgot to update patch

Attachment 167000 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/14171011
Comment 14 WebKit Review Bot 2012-10-03 20:26:28 PDT
Comment on attachment 167000 [details]
forgot to update patch

Attachment 167000 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/14152347

New failing tests:
css3/compositing/blend-mode-property.html
css3/compositing/should-have-compositing-layer.html
Comment 15 Simon Fraser (smfr) 2012-10-04 10:08:04 PDT
Comment on attachment 167023 [details]
fixed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=167023&action=review

> Source/JavaScriptCore/ChangeLog:9
> +        smfr said that this feature should be turned on and that browser can elect to
> +        pick it up

A better comment would be "enable this feature on trunk." I don't think any further justification is required, but you might want to reference a bug or bugs about enabling it on other platforms.

> Source/WebCore/css/CSSPropertyNames.in:8
>  //
> +
>  // Microsoft extensions are documented here:

Whitespace

> Source/WebCore/css/CSSValueKeywords.in:45
>  all
> +
>  //

Whitespace
Comment 16 Rik Cabanier 2012-10-04 10:23:20 PDT
Created attachment 167121 [details]
updated comments and removed whitespace
Comment 17 Build Bot 2012-10-04 10:31:49 PDT
Comment on attachment 167121 [details]
updated comments and removed whitespace

Attachment 167121 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/14181052
Comment 18 Rik Cabanier 2012-10-04 10:40:46 PDT
Created attachment 167126 [details]
dummy change to .in file
Comment 19 Simon Fraser (smfr) 2012-10-04 11:23:38 PDT
Comment on attachment 167126 [details]
dummy change to .in file

View in context: https://bugs.webkit.org/attachment.cgi?id=167126&action=review

> LayoutTests/ChangeLog:9
> +        smfr said that this feature should be turned on and that browser can elect to
> +        pick it up. Existing test are now passing. New baselines submitted.

Has old comment.
Comment 20 Rik Cabanier 2012-10-04 11:26:02 PDT
Created attachment 167143 [details]
patched changelog
Comment 21 WebKit Review Bot 2012-10-04 15:13:25 PDT
Comment on attachment 167143 [details]
patched changelog

Rejecting attachment 167143 [details] from commit-queue.

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

Last 500 characters of output:
ted in Chromium rebaselines after r130411.
Auto-merging Source/JavaScriptCore/ChangeLog
Failed to merge in the changes.
Patch failed at 0001 Chromium rebaselines after r130411.

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

rebase refs/remotes/origin/master: command returned error: 1

Died at Tools/Scripts/update-webkit line 164.

Full output: http://queues.webkit.org/results/14176247
Comment 22 WebKit Review Bot 2012-10-04 17:21:26 PDT
Comment on attachment 167143 [details]
patched changelog

Rejecting attachment 167143 [details] from commit-queue.

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

Last 500 characters of output:
LICT (content): Merge conflict in Source/WebCore/ChangeLog
Failed to merge in the changes.
Patch failed at 0001 IndexedDB: promote objectstore/index backend ids to the frontend

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

rebase refs/remotes/origin/master: command returned error: 1

Died at Tools/Scripts/update-webkit line 164.

Full output: http://queues.webkit.org/results/14168509
Comment 23 Rik Cabanier 2012-10-04 19:03:49 PDT
Created attachment 167224 [details]
bots couldn't merge changelogs
Comment 24 Rik Cabanier 2012-10-04 19:21:11 PDT
Created attachment 167229 [details]
Patch for landing
Comment 25 WebKit Review Bot 2012-10-04 21:56:34 PDT
Comment on attachment 167229 [details]
Patch for landing

Clearing flags on attachment: 167229

Committed r130460: <http://trac.webkit.org/changeset/130460>
Comment 26 WebKit Review Bot 2012-10-04 21:56:40 PDT
All reviewed patches have been landed.  Closing bug.
Comment 27 Roger Fong 2012-10-12 13:41:39 PDT
Hello, can I go ahead and enable this on Windows too? Shouldn't cause any issues right?
Comment 28 Rik Cabanier 2012-10-12 13:45:00 PDT
(In reply to comment #27)
> Hello, can I go ahead and enable this on Windows too? Shouldn't cause any issues right?

No, feel free to do so.
Will all the CALayer and CG code work there too?
Comment 29 Roger Fong 2012-10-12 13:46:40 PDT
(In reply to comment #28)
> (In reply to comment #27)
> > Hello, can I go ahead and enable this on Windows too? Shouldn't cause any issues right?
> 
> No, feel free to do so.
> Will all the CALayer and CG code work there too?

Should be fine yeah
Thanks
Comment 30 Roger Fong 2012-10-12 14:32:42 PDT
Just kidding.
Simon says that the blend stuff uses CIFilters and on Windows there are no CIFilters.
So that won't work at all.
I think I'll just keep blending disabled and skip the tests on Windows.
Comment 31 Dean Jackson 2012-10-12 14:43:11 PDT
We'll be able to do some of the operations on Windows using a back door. It will require code though.