RESOLVED FIXED 115775
Make CanvasStyle a plain object instead of an RefCounted object
https://bugs.webkit.org/show_bug.cgi?id=115775
Summary Make CanvasStyle a plain object instead of an RefCounted object
Benjamin Poulain
Reported 2013-05-07 21:31:11 PDT
Make CanvasStyle a plain object instead of an RefCounted object
Attachments
Patch (27.28 KB, patch)
2013-05-07 21:37 PDT, Benjamin Poulain
no flags
Patch (27.29 KB, patch)
2013-05-07 22:14 PDT, Benjamin Poulain
no flags
Patch (27.21 KB, patch)
2013-05-08 13:57 PDT, Benjamin Poulain
no flags
Benjamin Poulain
Comment 1 2013-05-07 21:37:01 PDT
WebKit Commit Bot
Comment 2 2013-05-07 21:38:50 PDT
Attachment 201026 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/bindings/js/JSCanvasRenderingContext2DCustom.cpp', u'Source/WebCore/html/HTMLCanvasElement.cpp', u'Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp', u'Source/WebCore/html/canvas/CanvasRenderingContext2D.h', u'Source/WebCore/html/canvas/CanvasStyle.cpp', u'Source/WebCore/html/canvas/CanvasStyle.h']" exit_code: 1 Source/WebCore/html/canvas/CanvasStyle.h:76: Missing spaces around && [whitespace/operators] [3] Source/WebCore/html/canvas/CanvasStyle.h:77: Missing spaces around && [whitespace/operators] [3] Source/WebCore/html/canvas/CanvasStyle.h:81: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 3 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Early Warning System Bot
Comment 3 2013-05-07 21:41:18 PDT
Early Warning System Bot
Comment 4 2013-05-07 21:43:22 PDT
kov's GTK+ EWS bot
Comment 5 2013-05-07 21:44:23 PDT
EFL EWS Bot
Comment 6 2013-05-07 21:57:39 PDT
EFL EWS Bot
Comment 7 2013-05-07 21:57:48 PDT
Build Bot
Comment 8 2013-05-07 22:03:01 PDT
Benjamin Poulain
Comment 9 2013-05-07 22:14:43 PDT
WebKit Commit Bot
Comment 10 2013-05-07 22:16:43 PDT
Attachment 201029 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/bindings/js/JSCanvasRenderingContext2DCustom.cpp', u'Source/WebCore/html/HTMLCanvasElement.cpp', u'Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp', u'Source/WebCore/html/canvas/CanvasRenderingContext2D.h', u'Source/WebCore/html/canvas/CanvasStyle.cpp', u'Source/WebCore/html/canvas/CanvasStyle.h']" exit_code: 1 Source/WebCore/html/canvas/CanvasStyle.h:76: Missing spaces around && [whitespace/operators] [3] Source/WebCore/html/canvas/CanvasStyle.h:77: Missing spaces around && [whitespace/operators] [3] Source/WebCore/html/canvas/CanvasStyle.h:81: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 3 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Andreas Kling
Comment 11 2013-05-08 06:33:45 PDT
Comment on attachment 201029 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=201029&action=review r=me > Source/WebCore/html/canvas/CanvasStyle.h:46 > + CanvasStyle(RGBA32); I'd prefer this to be explicit. > Source/WebCore/html/canvas/CanvasStyle.h:51 > + CanvasStyle(PassRefPtr<CanvasGradient>); > + CanvasStyle(PassRefPtr<CanvasPattern>); Ditto for these. > Source/WebCore/html/canvas/CanvasStyle.h:111 > + Type m_type; I'd make this member const, as it should never change after construction.
Benjamin Poulain
Comment 12 2013-05-08 13:57:38 PDT
WebKit Commit Bot
Comment 13 2013-05-08 17:14:53 PDT
Attachment 201105 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/bindings/js/JSCanvasRenderingContext2DCustom.cpp', u'Source/WebCore/html/HTMLCanvasElement.cpp', u'Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp', u'Source/WebCore/html/canvas/CanvasRenderingContext2D.h', u'Source/WebCore/html/canvas/CanvasStyle.cpp', u'Source/WebCore/html/canvas/CanvasStyle.h']" exit_code: 1 Source/WebCore/html/canvas/CanvasStyle.h:76: Missing spaces around && [whitespace/operators] [3] Source/WebCore/html/canvas/CanvasStyle.h:77: Missing spaces around && [whitespace/operators] [3] Source/WebCore/html/canvas/CanvasStyle.h:81: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 3 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Benjamin Poulain
Comment 14 2013-05-11 01:36:10 PDT
Note You need to log in before you can comment on or make changes to this bug.