Bug 161103 - Add enum traits and use them in the IPC::Decoder
Summary: Add enum traits and use them in the IPC::Decoder
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
Depends on:
Blocks: 162077 212290
  Show dependency treegraph
 
Reported: 2016-08-23 14:11 PDT by Anders Carlsson
Modified: 2020-05-22 16:56 PDT (History)
6 users (show)

See Also:


Attachments
Patch (24.35 KB, patch)
2016-08-23 14:17 PDT, Anders Carlsson
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2016-08-23 14:11:12 PDT
Add enum traits and use them in the IPC::Decoder
Comment 1 Anders Carlsson 2016-08-23 14:17:57 PDT
Created attachment 286773 [details]
Patch
Comment 2 WebKit Commit Bot 2016-08-23 14:20:51 PDT
Attachment 286773 [details] did not pass style-queue:


ERROR: Tools/TestWebKitAPI/Tests/WTF/EnumTraits.cpp:31:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/EnumTraits.cpp:32:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Tools/TestWebKitAPI/Tests/WTF/EnumTraits.cpp:33:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WTF/wtf/EnumTraits.h:59:  This { should be at the end of the previous line  [whitespace/braces] [4]
ERROR: Source/WebKit2/Shared/mac/ArgumentCodersMac.mm:58:  enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums.  [readability/enum_casing] [4]
ERROR: Source/WebKit2/Shared/mac/ArgumentCodersMac.mm:546:  preprocessor directives (e.g., #ifdef, #define, #import) should never be indented.  [whitespace/indent] [4]
ERROR: Source/WebKit2/Shared/mac/ArgumentCodersMac.mm:548:  preprocessor directives (e.g., #ifdef, #define, #import) should never be indented.  [whitespace/indent] [4]
ERROR: Source/WebKit2/Shared/mac/ArgumentCodersMac.mm:551:  preprocessor directives (e.g., #ifdef, #define, #import) should never be indented.  [whitespace/indent] [4]
ERROR: Source/WebKit2/Shared/mac/ArgumentCodersMac.mm:553:  preprocessor directives (e.g., #ifdef, #define, #import) should never be indented.  [whitespace/indent] [4]
ERROR: Source/WebKit2/Platform/IPC/Decoder.h:89:  This { should be at the end of the previous line  [whitespace/braces] [4]
Total errors found: 10 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Sam Weinig 2016-08-23 16:49:40 PDT
Comment on attachment 286773 [details]
Patch

r=me if you make sure the builds work.
Comment 4 Anders Carlsson 2016-08-24 12:16:15 PDT
Committed r204916: <http://trac.webkit.org/changeset/204916>
Comment 5 David Kilzer (:ddkilzer) 2016-09-16 11:14:21 PDT
(In reply to comment #4)
> Committed r204916: <http://trac.webkit.org/changeset/204916>

It appears that this commented-out code got committed by accident:

diff --git a/Source/WebKit2/UIProcess/WebPageProxy.cpp b/Source/WebKit2/UIProcess/WebPageProxy.cpp
index 7cf79dd..ea472c0 100644
--- a/Source/WebKit2/UIProcess/WebPageProxy.cpp
+++ b/Source/WebKit2/UIProcess/WebPageProxy.cpp
@@ -2348,1 +2348,1 @@ void WebPageProxy::terminateProcess()
-    ASSERT(m_process->state() != WebProcessProxy::State::Launching);
+//    ASSERT(m_process->state() != WebProcessProxy::State::Launching);

Should this specific change be reverted?
Comment 6 David Kilzer (:ddkilzer) 2016-09-16 11:25:59 PDT
(In reply to comment #5)
> (In reply to comment #4)
> > Committed r204916: <http://trac.webkit.org/changeset/204916>
> 
> It appears that this commented-out code got committed by accident:
> 
> diff --git a/Source/WebKit2/UIProcess/WebPageProxy.cpp
> b/Source/WebKit2/UIProcess/WebPageProxy.cpp
> index 7cf79dd..ea472c0 100644
> --- a/Source/WebKit2/UIProcess/WebPageProxy.cpp
> +++ b/Source/WebKit2/UIProcess/WebPageProxy.cpp
> @@ -2348,1 +2348,1 @@ void WebPageProxy::terminateProcess()
> -    ASSERT(m_process->state() != WebProcessProxy::State::Launching);
> +//    ASSERT(m_process->state() != WebProcessProxy::State::Launching);
> 
> Should this specific change be reverted?

I filed:  Bug 162077: ASSERT accidentally commented out in r204916