Bug 138974

Summary: Remove the Timer parameters from timer callbacks
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal CC: clopez, commit-queue, gyuyoung.kim, koivisto, ossy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch koivisto: review+

Description Anders Carlsson 2014-11-21 11:41:47 PST
Remove the Timer parameters from timer callbacks
Comment 1 Anders Carlsson 2014-11-21 11:50:06 PST
Created attachment 242059 [details]
Patch
Comment 2 WebKit Commit Bot 2014-11-21 11:51:57 PST
Attachment 242059 [details] did not pass style-queue:


ERROR: Source/WebCore/html/canvas/WebGLRenderingContext.cpp:490:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/WebCore/html/canvas/WebGLRenderingContext.cpp:492:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/WebCore/page/Frame.cpp:165:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/WebCore/Modules/geolocation/Geolocation.h:189:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
ERROR: Source/WebCore/platform/Scrollbar.cpp:79:  Wrong number of spaces before statement. (expected: 25)  [whitespace/indent] [4]
Total errors found: 5 in 240 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Anders Carlsson 2014-11-21 12:00:39 PST
Created attachment 242062 [details]
Patch
Comment 4 WebKit Commit Bot 2014-11-21 12:03:17 PST
Attachment 242062 [details] did not pass style-queue:


ERROR: Source/WebCore/html/canvas/WebGLRenderingContext.cpp:490:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/WebCore/html/canvas/WebGLRenderingContext.cpp:492:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/WebCore/page/Frame.cpp:165:  Wrong number of spaces before statement. (expected: 8)  [whitespace/indent] [4]
ERROR: Source/WebCore/Modules/geolocation/Geolocation.h:189:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
ERROR: Source/WebCore/platform/Scrollbar.cpp:79:  Wrong number of spaces before statement. (expected: 25)  [whitespace/indent] [4]
Total errors found: 5 in 242 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Anders Carlsson 2014-11-21 12:10:02 PST
Committed r176459: <http://trac.webkit.org/changeset/176459>
Comment 6 Carlos Alberto Lopez Perez 2014-11-21 13:19:36 PST
(In reply to comment #5)
> Committed r176459: <http://trac.webkit.org/changeset/176459>

This broke both the GTK and EFL builds: https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20%28Build%29/builds/52986
Comment 7 Gyuyoung Kim 2014-11-21 19:28:13 PST
(In reply to comment #6)
> (In reply to comment #5)
> > Committed r176459: <http://trac.webkit.org/changeset/176459>
> 
> This broke both the GTK and EFL builds:
> https://build.webkit.org/builders/GTK%20Linux%2064-
> bit%20Release%20%28Build%29/builds/52986

I fix this build break on EFL port - <http://trac.webkit.org/changeset/176495>

I hope this commit will fix GTK port as well.
Comment 8 Csaba Osztrogonác 2014-11-22 01:18:29 PST
Comment on attachment 242062 [details]
Patch

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

> Source/WebCore/Modules/mediastream/MediaStream.cpp:89
> -    , m_scheduledEventTimer(this, &MediaStream::scheduledEventTimerFired)
> +    , m_scheduledEventtimer(*this, &MediaStream::scheduledEventTimerFired)

Why did you change the camal case?

> Source/WebCore/Modules/mediastream/RTCDTMFSender.cpp:68
> -    , m_scheduledEventTimer(this, &RTCDTMFSender::scheduledEventTimerFired)
> +    , m_scheduledEventtimer(*this, &RTCDTMFSender::scheduledEventTimerFired)

ditto

> Source/WebCore/Modules/mediastream/RTCDataChannel.cpp:98
> -    , m_scheduledEventTimer(this, &RTCDataChannel::scheduledEventTimerFired)
> +    , m_scheduledEventtimer(*this, &RTCDataChannel::scheduledEventTimerFired)

ditto

> Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:177
> -    , m_scheduledEventTimer(this, &RTCPeerConnection::scheduledEventTimerFired)
> +    , m_scheduledEventtimer(*this, &RTCPeerConnection::scheduledEventTimerFired)

ditto
Comment 9 Csaba Osztrogonác 2014-11-22 01:27:34 PST
(In reply to comment #3) - 2014-11-21 12:00:39 PST 
> Created attachment 242062 [details]
> Patch

(In reply to comment #5) - 2014-11-21 12:10:02 PST 
> Committed r176459: <http://trac.webkit.org/changeset/176459>

Common, was it really necessary to land this huge patch in 9.5 minutes 
after uploading and breaking GTK/EFL builds with trivial typos and not
complete grepping? And then just let it broken. :((

https://trac.webkit.org/changeset/176495 fixed many issues in WebCore.
Is there a new rule that you are allowed to break WebCore build too?
As far as I know, it is for WebKit2 only, not for WebCore.
Comment 10 Csaba Osztrogonác 2014-11-22 01:46:08 PST
GTK fix landed in https://trac.webkit.org/changeset/176503