Bug 125175

Summary: Web Inspector: [CSS Shapes] Highlight margin-shape for shape-outside
Product: WebKit Reporter: Bear Travis <betravis>
Component: Web InspectorAssignee: Bear Travis <betravis>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, eflews.bot, esprehn+autocc, glenn, graouts, gyuyoung.kim, joepeck, kondapallykalyan, rniwa, syoichi, timothy, webkit-bug-importer
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 124070    
Attachments:
Description Flags
Initial patch
none
Updating patch to include image shapes
none
Renaming to buildDisplayPaths
none
Updated patch
none
Updated test to work with more formats
none
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion
none
Archive of layout-test-results from webkit-ews-13 for mac-mountainlion-wk2
none
Test fixup none

Description Bear Travis 2013-12-03 11:55:03 PST
When shape-outside and shape-margin are present, both the shape, and the shape with margin applied should display in the inspector.
Comment 1 Bear Travis 2013-12-03 12:55:14 PST
Created attachment 218328 [details]
Initial patch
Comment 2 Bear Travis 2013-12-04 18:13:52 PST
Created attachment 218479 [details]
Updating patch to include image shapes
Comment 3 Bear Travis 2013-12-05 11:31:24 PST
Created attachment 218525 [details]
Renaming to buildDisplayPaths
Comment 4 EFL EWS Bot 2013-12-05 11:54:42 PST
Comment on attachment 218525 [details]
Renaming to buildDisplayPaths

Attachment 218525 [details] did not pass efl-wk2-ews (efl-wk2):
Output: http://webkit-queues.appspot.com/results/42718115
Comment 5 Bear Travis 2013-12-05 16:36:36 PST
Created attachment 218553 [details]
Updated patch
Comment 6 Bear Travis 2013-12-09 10:53:48 PST
Created attachment 218777 [details]
Updated test to work with more formats
Comment 7 Joseph Pecoraro 2013-12-09 11:52:54 PST
Comment on attachment 218777 [details]
Updated test to work with more formats

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

Drive by comments that don't need to be addressed. Nice patch.

> Source/WebCore/inspector/InspectorOverlay.cpp:614
> -        shapeObject->setArray("path", shapePath.release());
> +        shapeObject->setArray("shape", shapePath.release());

Not new to this patch but we should start using ASCIILiteral for InspectorValue->set calls. Since the string literal is being turned into a WTF::String.

> LayoutTests/inspector-protocol/resources/shape-info-helper.js:52
> +            return (typeof actual == 'number'

Nit: == -> ===
Comment 8 Build Bot 2013-12-09 12:49:09 PST
Comment on attachment 218777 [details]
Updated test to work with more formats

Attachment 218777 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/47268162

New failing tests:
inspector-protocol/model/highlight-shape-outside-margin.html
Comment 9 Build Bot 2013-12-09 12:49:11 PST
Created attachment 218790 [details]
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-05  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 10 Build Bot 2013-12-09 12:54:15 PST
Comment on attachment 218777 [details]
Updated test to work with more formats

Attachment 218777 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/47308177

New failing tests:
inspector-protocol/model/highlight-shape-outside-margin.html
Comment 11 Build Bot 2013-12-09 12:54:18 PST
Created attachment 218791 [details]
Archive of layout-test-results from webkit-ews-13 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-13  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 12 Bear Travis 2013-12-10 22:55:34 PST
Created attachment 218934 [details]
Test fixup
Comment 13 WebKit Commit Bot 2013-12-11 13:30:03 PST
Comment on attachment 218934 [details]
Test fixup

Clearing flags on attachment: 218934

Committed r160451: <http://trac.webkit.org/changeset/160451>
Comment 14 WebKit Commit Bot 2013-12-11 13:30:06 PST
All reviewed patches have been landed.  Closing bug.