Bug 136025 - Web Inspector: Rename DOM.RGBA and remove workarounds in the bindings generator
Summary: Web Inspector: Rename DOM.RGBA and remove workarounds in the bindings generator
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Brian Burg
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-08-17 11:26 PDT by Brian Burg
Modified: 2014-08-24 17:26 PDT (History)
5 users (show)

See Also:


Attachments
Patch (20.79 KB, patch)
2014-08-17 11:48 PDT, Brian Burg
joepeck: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Burg 2014-08-17 11:26:01 PDT
first refactoring!
Comment 1 Radar WebKit Bug Importer 2014-08-17 11:26:12 PDT
<rdar://problem/18043994>
Comment 2 Brian Burg 2014-08-17 11:48:30 PDT
Created attachment 236732 [details]
Patch
Comment 3 WebKit Commit Bot 2014-08-17 11:50:02 PDT
Attachment 236732 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/inspector/scripts/codegen/models.py:139:  [Type.raw_name] Instance of 'Type' has no '_name' member  [pylint/E1101] [5]
Total errors found: 1 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Joseph Pecoraro 2014-08-18 10:57:48 PDT
Comment on attachment 236732 [details]
Patch

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

r=me

> Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-object-type.json-result:363
>  namespace Test {
> -class HappyName;
>  class ParameterBundle;
> +class UnpleasantName;
>  } // Test

You could get rid of the  UnpleasantName portion of this test if you wanted. Fine to leave it in though.
Comment 5 Timothy Hatcher 2014-08-18 23:47:49 PDT
Comment on attachment 236732 [details]
Patch

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

> Source/WebCore/inspector/protocol/DOM.json:100
> +            "id": "RGBAColor",

Just "Color" would be fine too. The object could have all manner of properties for any type of color if we wanted. It is RGBA if r, g, b, a is supplied. But it could be HSLA if we added optional h, s, l properties.
Comment 6 Brian Burg 2014-08-24 17:26:25 PDT
Committed r172897: <http://trac.webkit.org/changeset/172897>