WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(27.29 KB, patch)
2013-05-07 22:14 PDT
,
Benjamin Poulain
no flags
Details
Formatted Diff
Diff
Patch
(27.21 KB, patch)
2013-05-08 13:57 PDT
,
Benjamin Poulain
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2013-05-07 21:37:01 PDT
Created
attachment 201026
[details]
Patch
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
Comment on
attachment 201026
[details]
Patch
Attachment 201026
[details]
did not pass qt-ews (qt): Output:
http://webkit-queues.appspot.com/results/310115
Early Warning System Bot
Comment 4
2013-05-07 21:43:22 PDT
Comment on
attachment 201026
[details]
Patch
Attachment 201026
[details]
did not pass qt-wk2-ews (qt-wk2): Output:
http://webkit-queues.appspot.com/results/424039
kov's GTK+ EWS bot
Comment 5
2013-05-07 21:44:23 PDT
Comment on
attachment 201026
[details]
Patch
Attachment 201026
[details]
did not pass gtk-ews (gtk): Output:
http://webkit-queues.appspot.com/results/377533
EFL EWS Bot
Comment 6
2013-05-07 21:57:39 PDT
Comment on
attachment 201026
[details]
Patch
Attachment 201026
[details]
did not pass efl-wk2-ews (efl-wk2): Output:
http://webkit-queues.appspot.com/results/398075
EFL EWS Bot
Comment 7
2013-05-07 21:57:48 PDT
Comment on
attachment 201026
[details]
Patch
Attachment 201026
[details]
did not pass efl-ews (efl): Output:
http://webkit-queues.appspot.com/results/377534
Build Bot
Comment 8
2013-05-07 22:03:01 PDT
Comment on
attachment 201026
[details]
Patch
Attachment 201026
[details]
did not pass win-ews (win): Output:
http://webkit-queues.appspot.com/results/302084
Benjamin Poulain
Comment 9
2013-05-07 22:14:43 PDT
Created
attachment 201029
[details]
Patch
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
Created
attachment 201105
[details]
Patch
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
Committed
r149928
: <
http://trac.webkit.org/changeset/149928
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug