Bug 150312

Summary: Add ouput formatters for FillLayer and all it entails
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: New BugsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: ryanhaddad, simon.fraser, thorton
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch thorton: review+

Simon Fraser (smfr)
Reported 2015-10-18 22:05:24 PDT
Add ouput formatters for FillLayer and all it entails
Attachments
Patch (19.41 KB, patch)
2015-10-18 22:06 PDT, Simon Fraser (smfr)
no flags
Patch (23.31 KB, patch)
2015-10-19 12:11 PDT, Simon Fraser (smfr)
thorton: review+
Simon Fraser (smfr)
Comment 1 2015-10-18 22:06:17 PDT
Simon Fraser (smfr)
Comment 2 2015-10-18 22:07:09 PDT
Sample output: (fill-layer (x-position [0%]) (y-position [50%]) (size-length width=[25%] height=[100%]) (size-type size-length) (size type=size-length size=width=[25%] height=[100%]) (background-origin left top) (repeat no-repeat no-repeat) (clip border) (origin padding) (composite 2) (blend-mode normal) (mask-type alpha) (fill-layer (x-position [100%]) (y-position [50%]) (size-length width=[45%] height=[100%]) (size-type size-none) (size type=size-none size=width=[45%] height=[100%]) (background-origin left top) (repeat no-repeat no-repeat) (clip border) (origin padding) (composite 2) (blend-mode normal) (mask-type alpha))) I'm open to better Length formatting.
Tim Horton
Comment 3 2015-10-19 08:52:21 PDT
Two formatting questions: (In reply to comment #2) > Sample output: > > (fill-layer > (x-position [0%]) What are the square brackets for? (Might be able to find out by reading the patch, but I haven't yet). > (size-length width=[25%] height=[100%]) > (size-type size-length) > (size type=size-length size=width=[25%] height=[100%]) Why all three? It seems like the one with the 'size' key matches the other two. Also, the equal signs? This should probably read like below, no? > (size > (type length) > (width [25%]) > (height [100%]))
Simon Fraser (smfr)
Comment 4 2015-10-19 12:11:37 PDT
Simon Fraser (smfr)
Comment 5 2015-10-19 12:12:03 PDT
Output is now: (fill-layer (position 0% 50%) (size size-length 25% 100%) (background-origin left top) (repeat no-repeat no-repeat) (clip border) (origin padding) (composite source-over) (blend-mode screen) (mask-type alpha) (fill-layer (position 100% 50%) (size size-none 45% 100%) (background-origin left top) (repeat no-repeat no-repeat) (clip border) (origin padding) (composite source-over) (blend-mode screen) (mask-type alpha)))
Ryan Haddad
Comment 6 2015-10-19 15:20:10 PDT
Simon is already investigating, but this caused 13 tests to crash in debug with ASSERTION FAILED: blendOp < numBlendOperatorNames
Simon Fraser (smfr)
Comment 7 2015-10-19 15:22:03 PDT
Simon Fraser (smfr)
Comment 8 2015-10-19 15:22:39 PDT
Note You need to log in before you can comment on or make changes to this bug.