WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
35530
Enum value FORWARD, BACKWARD, RIGHT, LEFT are causing macro conflicts.
https://bugs.webkit.org/show_bug.cgi?id=35530
Summary
Enum value FORWARD, BACKWARD, RIGHT, LEFT are causing macro conflicts.
Lyon Chen
Reported
Monday, March 1, 2010 4:55:46 PM UTC
Enum value FORWARD, BACKWARD, RIGHT, LEFT of EDirection in SelectionController will cause compile error if any of them is defined as MACRO before. Undefine all of them ahead of EDirection declaration remove potential conflict. undef FORWARD undef BACKWARD undef RIGHT undef LEFT Of course this doesn't really remove the conflict, so maybe we should use (EForward, EBackward, ERight, ELeft) for EDirection values instead?
Attachments
Simple fix for bug 35530.
(1.06 KB, patch)
2010-03-01 09:03 PST
,
Lyon Chen
darin
: review-
Details
Formatted Diff
Diff
WebCore patch for bug 35530.
(44.23 KB, patch)
2010-03-01 21:21 PST
,
Lyon Chen
no flags
Details
Formatted Diff
Diff
WebKit/qt patch for bug 35530.
(1.49 KB, patch)
2010-03-01 21:22 PST
,
Lyon Chen
no flags
Details
Formatted Diff
Diff
WebKit/haiku patch for bug 35530.
(4.07 KB, patch)
2010-03-01 21:22 PST
,
Lyon Chen
no flags
Details
Formatted Diff
Diff
WebKit/chromium patch for bug 35530.
(1.55 KB, patch)
2010-03-01 21:23 PST
,
Lyon Chen
no flags
Details
Formatted Diff
Diff
Combined patch for bug 35530.
(52.41 KB, patch)
2010-03-01 21:59 PST
,
Lyon Chen
no flags
Details
Formatted Diff
Diff
Combined patch for bug 35530, with style issue fixed.
(129.69 KB, patch)
2010-03-02 09:16 PST
,
Lyon Chen
eric
: review-
eric
: commit-queue-
Details
Formatted Diff
Diff
Coding style patch.
(116.53 KB, patch)
2010-03-25 21:36 PDT
,
Lyon Chen
darin
: review-
Details
Formatted Diff
Diff
Patch for bug 35530.
(50.14 KB, patch)
2010-03-26 09:08 PDT
,
Lyon Chen
ojan
: review-
Details
Formatted Diff
Diff
Cleanup patch for 35530
(122.75 KB, patch)
2010-05-30 09:55 PDT
,
Lyon Chen
no flags
Details
Formatted Diff
Diff
Patch for bug 35530.
(61.80 KB, patch)
2010-05-30 09:55 PDT
,
Lyon Chen
darin
: review+
Details
Formatted Diff
Diff
Patch for bug 35530 with the "E" in all enumeration values removed.
(61.56 KB, patch)
2010-05-30 11:21 PDT
,
Lyon Chen
darin
: review+
commit-queue
: commit-queue-
Details
Formatted Diff
Diff
Patch updated to 108b044c
(61.57 KB, patch)
2010-05-31 17:35 PDT
,
Lyon Chen
tkent
: review-
Details
Formatted Diff
Diff
Patch regenerated.
(55.65 KB, patch)
2010-05-31 17:52 PDT
,
Lyon Chen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(12)
View All
Add attachment
proposed patch, testcase, etc.
Lyon Chen
Comment 1
Monday, March 1, 2010 5:03:32 PM UTC
Created
attachment 49727
[details]
Simple fix for
bug 35530
.
Darin Adler
Comment 2
Monday, March 1, 2010 10:06:23 PM UTC
Comment on
attachment 49727
[details]
Simple fix for
bug 35530
. A change like this needs a comment. Having these #undef at the top of the file with no comment is not good. The extra blank line before the class definition is not wanted. A better change would be to change these identifiers. There's no reason to use all capitals for these. While the #undef will work it's probably not a major project to simply change these to use normal mixed case as per the WebKit coding guidelines. review- because there needs to be a comment
Lyon Chen
Comment 3
Monday, March 1, 2010 10:28:01 PM UTC
OK, will change these enumeration define instead.
Lyon Chen
Comment 4
Tuesday, March 2, 2010 5:21:17 AM UTC
Created
attachment 49776
[details]
WebCore patch for
bug 35530
.
Lyon Chen
Comment 5
Tuesday, March 2, 2010 5:22:10 AM UTC
Created
attachment 49777
[details]
WebKit/qt patch for
bug 35530
.
Lyon Chen
Comment 6
Tuesday, March 2, 2010 5:22:55 AM UTC
Created
attachment 49778
[details]
WebKit/haiku patch for
bug 35530
.
Lyon Chen
Comment 7
Tuesday, March 2, 2010 5:23:29 AM UTC
Created
attachment 49779
[details]
WebKit/chromium patch for
bug 35530
.
WebKit Review Bot
Comment 8
Tuesday, March 2, 2010 5:27:56 AM UTC
Attachment 49776
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebCore/editing/SelectionController.cpp:243: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] WebCore/editing/SelectionController.cpp:609: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] WebCore/editing/SelectionController.cpp:645: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] WebCore/editing/SelectionController.cpp:707: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] WebCore/editing/SelectionController.cpp:749: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] WebCore/editing/Editor.cpp:244: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] Total errors found: 6 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 9
Tuesday, March 2, 2010 5:30:21 AM UTC
Attachment 49779
[details]
did not build on chromium: Build output:
http://webkit-commit-queue.appspot.com/results/320509
WebKit Review Bot
Comment 10
Tuesday, March 2, 2010 5:41:00 AM UTC
Attachment 49776
[details]
did not build on chromium: Build output:
http://webkit-commit-queue.appspot.com/results/321431
Lyon Chen
Comment 11
Tuesday, March 2, 2010 5:59:54 AM UTC
Created
attachment 49780
[details]
Combined patch for
bug 35530
.
WebKit Review Bot
Comment 12
Tuesday, March 2, 2010 6:06:23 AM UTC
Attachment 49780
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebCore/editing/Editor.cpp:244: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] Total errors found: 1 in 15 files If any of these errors are false positives, please file a bug against check-webkit-style.
Lyon Chen
Comment 13
Tuesday, March 2, 2010 5:16:23 PM UTC
Created
attachment 49807
[details]
Combined patch for
bug 35530
, with style issue fixed. This patch also include many coding style fix for files related to this bug, to pass coding style check.
George Staikos
Comment 14
Tuesday, March 2, 2010 5:34:55 PM UTC
Sorry to be a pain but is it possible to separate the style changes from the actual patch? They could go in separately.
Lyon Chen
Comment 15
Tuesday, March 2, 2010 5:52:56 PM UTC
George, that will mean 2 patches for this one bug, is that fine? If it's fine I can do it. Or should I open a new bug just for the coding style change? (Personally I prefer not open a new bug).
George Staikos
Comment 16
Tuesday, March 2, 2010 6:40:13 PM UTC
Comment on
attachment 49807
[details]
Combined patch for
bug 35530
, with style issue fixed. I guess it's fine as-is.
WebKit Commit Bot
Comment 17
Tuesday, March 2, 2010 10:40:37 PM UTC
Comment on
attachment 49807
[details]
Combined patch for
bug 35530
, with style issue fixed. Rejecting patch 49807 from commit-queue. Unexpected failure when landing patch! Please file a bug against webkit-patch. Failed to run "['WebKitTools/Scripts/webkit-patch', '--status-host=webkit-commit-queue.appspot.com', 'land-attachment', '--force-clean', '--non-interactive', '--no-update', '--parent-command=commit-queue', '--build-style=both', '--quiet', '49807']" exit_code: 1 Last 500 characters of output: ebkitpy/statusserver.py", line 87, in update_status return NetworkTransaction().run(lambda: self._post_to_server(queue_name, status, patch, results_file)) File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/networktransaction.py", line 52, in run self._check_for_timeout() File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/networktransaction.py", line 58, in _check_for_timeout raise NetworkTimeout() webkitpy.networktransaction.NetworkTimeout
Lyon Chen
Comment 18
Wednesday, March 3, 2010 4:09:39 AM UTC
File a bug against webkit-patch? Is this what supposed to be done?
Lyon Chen
Comment 19
Wednesday, March 3, 2010 4:55:26 AM UTC
As error info shown below, isn't this just a network timeout? line 52, in run self._check_for_timeout() File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/networktransaction.py", line 58, in _check_for_timeout raise NetworkTimeout() webkitpy.networktransaction.NetworkTimeout
Adam Barth
Comment 20
Wednesday, March 3, 2010 5:50:30 AM UTC
Eric: Is this related to my recent change to the network timeout code?
Eric Seidel (no email)
Comment 21
Friday, March 5, 2010 8:14:38 PM UTC
Comment on
attachment 49807
[details]
Combined patch for
bug 35530
, with style issue fixed. Not sure, but lets try again.
WebKit Commit Bot
Comment 22
Saturday, March 6, 2010 3:12:07 AM UTC
Comment on
attachment 49807
[details]
Combined patch for
bug 35530
, with style issue fixed. Rejecting patch 49807 from commit-queue. Unexpected failure when landing patch! Please file a bug against webkit-patch. Failed to run "['WebKitTools/Scripts/webkit-patch', '--status-host=webkit-commit-queue.appspot.com', 'land-attachment', '--force-clean', '--non-interactive', '--no-update', '--parent-command=commit-queue', '--build-style=both', '--quiet', '49807']" exit_code: 1 Last 500 characters of output: ebkitpy/statusserver.py", line 87, in update_status return NetworkTransaction().run(lambda: self._post_to_server(queue_name, status, patch, results_file)) File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/networktransaction.py", line 52, in run self._check_for_timeout() File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/networktransaction.py", line 58, in _check_for_timeout raise NetworkTimeout() webkitpy.networktransaction.NetworkTimeout
Eric Seidel (no email)
Comment 23
Saturday, March 6, 2010 3:23:49 AM UTC
Comment on
attachment 49807
[details]
Combined patch for
bug 35530
, with style issue fixed. We don't know what's causing this yet. Adam added this code recently. We'll figure it out. :)
Eric Seidel (no email)
Comment 24
Saturday, March 6, 2010 3:25:47 AM UTC
Comment on
attachment 49807
[details]
Combined patch for
bug 35530
, with style issue fixed. It's hitting an error due to the failure log being too large. This must be breaking Mac somehow.
Eric Seidel (no email)
Comment 25
Thursday, March 25, 2010 4:08:43 AM UTC
Comment on
attachment 49807
[details]
Combined patch for
bug 35530
, with style issue fixed. Lyon isn't a committer. So it seems that the cq- is effectively the same as an r-. Please revise and resubmit this patch.
Lyon Chen
Comment 26
Friday, March 26, 2010 5:36:20 AM UTC
Created
attachment 51713
[details]
Coding style patch. This is a pre-patch, it fixes the coding style issues in files to be changed.
Lyon Chen
Comment 27
Friday, March 26, 2010 5:08:10 PM UTC
Created
attachment 51746
[details]
Patch for
bug 35530
. This is the real change.
Darin Adler
Comment 28
Friday, March 26, 2010 5:15:13 PM UTC
Comment on
attachment 51713
[details]
Coding style patch.
> #include "AXObjectCache.h" > #include "ApplyStyleCommand.h" > -#include "CharacterNames.h" > -#include "CompositionEvent.h" > -#include "CreateLinkCommand.h" > #include "CSSComputedStyleDeclaration.h" > #include "CSSMutableStyleDeclaration.h" > #include "CSSProperty.h" > #include "CSSPropertyNames.h" > #include "CSSValueKeywords.h" > +#include "CharacterNames.h" > #include "ClipboardEvent.h" > +#include "CompositionEvent.h" > +#include "CreateLinkCommand.h" > #include "DeleteButtonController.h" > #include "DeleteSelectionCommand.h" > #include "DocLoader.h"
This is incorrect. The coding style specifies: "#include statements should be in sorted order (case sensitive, as done by the command-line sort tool or the Xcode sort selection command)." You have changed them from case sensitive sort order to a different sort order.
Lyon Chen
Comment 29
Friday, March 26, 2010 5:19:52 PM UTC
Hmmm, so the current check-webkit-style has bug? It give me zero error for all files.
Lyon Chen
Comment 30
Friday, March 26, 2010 5:29:12 PM UTC
Darin, checked again, could not find what's wrong. Could you please let me know which line of change in Editor.cpp is in wrong sort order?
Kent Tamura
Comment 31
Thursday, May 20, 2010 11:31:40 AM UTC
Comment on
attachment 51713
[details]
Coding style patch. (In reply to
comment #30
)
> Darin, checked again, could not find what's wrong. Could you please let me know which line of change in Editor.cpp is in wrong sort order?
I think your change is correct. WebCore/ChangeLog:5 + Enum value FORWARD, BACKWARD, RIGHT, LEFT are causing macro conflicts. +
https://bugs.webkit.org/show_bug.cgi?id=35530
This 1-line description doesn't represent the change. WebCore/ChangeLog:8 + No new tests. (OOPS!) Remove this line.
Ojan Vafai
Comment 32
Thursday, May 27, 2010 10:19:22 PM UTC
Comment on
attachment 51746
[details]
Patch for
bug 35530
. Ugh. Sorry, my comment got lost with my r-. Anyways, the code changes look good here. r- for the changelog issues in
comment 30
. Sorry for the long wait on review. I can r+ this quickly once the changelog issues are resolved.
Ojan Vafai
Comment 33
Thursday, May 27, 2010 10:20:11 PM UTC
Ugh. By
comment 30
, I obviously mean 31.
Lyon Chen
Comment 34
Thursday, May 27, 2010 10:24:01 PM UTC
Thanks, Ojan, will update.
Ojan Vafai
Comment 35
Thursday, May 27, 2010 10:40:54 PM UTC
Comment on
attachment 51713
[details]
Coding style patch. Sorry you had to wait so long to get a followup review here. I ran the includes in question through sort and it looks like what you have is correct. So, I can r+ this once you fix the ChangeLog descriptions and update this patch to tip of tree. WebCore/ChangeLog:8 + No new tests. (OOPS!) Please remove this line and add a line explaining that these are style cleanups in preparation for fixing
bug 35530
. WebKit/qt/ChangeLog:7 + Please add a line explaining that these are style cleanups in preparation for fixing
bug 35530
.
Lyon Chen
Comment 36
Sunday, May 30, 2010 5:55:14 PM UTC
Created
attachment 57420
[details]
Cleanup patch for 35530
Lyon Chen
Comment 37
Sunday, May 30, 2010 5:55:59 PM UTC
Created
attachment 57421
[details]
Patch for
bug 35530
.
Darin Adler
Comment 38
Sunday, May 30, 2010 7:06:48 PM UTC
Comment on
attachment 57421
[details]
Patch for
bug 35530
. These are fine except for the "E" prefix. They should be "DirectionForward" not "EDirectionForward". I know the enums currently have names with "E" prefixes, but it's not our standard coding style and pretty ugly! I'm going to say r=me assuming this doesn't break the build, but I don't like all that "E".
Lyon Chen
Comment 39
Sunday, May 30, 2010 7:21:59 PM UTC
Created
attachment 57424
[details]
Patch for
bug 35530
with the "E" in all enumeration values removed. Hi, Darin, I removed the "E" prefix in all these 6 changed enumeration values in the new patch.
Darin Adler
Comment 40
Sunday, May 30, 2010 7:24:33 PM UTC
Comment on
attachment 57424
[details]
Patch for
bug 35530
with the "E" in all enumeration values removed. r=me
Kent Tamura
Comment 41
Sunday, May 30, 2010 11:26:45 PM UTC
Comment on
attachment 57420
[details]
Cleanup patch for 35530 OK.
WebKit Commit Bot
Comment 42
Monday, May 31, 2010 1:52:07 AM UTC
Comment on
attachment 57420
[details]
Cleanup patch for 35530 Clearing flags on attachment: 57420 Committed
r60421
: <
http://trac.webkit.org/changeset/60421
>
Nikolas Zimmermann
Comment 43
Monday, May 31, 2010 2:54:53 PM UTC
Comment on
attachment 57424
[details]
Patch for
bug 35530
with the "E" in all enumeration values removed. Set cq+, on Lyons request.
WebKit Commit Bot
Comment 44
Monday, May 31, 2010 3:30:50 PM UTC
Comment on
attachment 57424
[details]
Patch for
bug 35530
with the "E" in all enumeration values removed. Rejecting patch 57424 from commit-queue. Unexpected failure when landing patch! Please file a bug against webkit-patch. Failed to run "['./WebKitTools/Scripts/webkit-patch', '--status-host=webkit-commit-queue.appspot.com', 'land-attachment', '--force-clean', '--build', '--non-interactive', '--ignore-builders', '--build-style=both', '--quiet', 57424, '--test', '--parent-command=commit-queue', '--no-update']" exit_code: 1 Last 500 characters of output: date_status return NetworkTransaction().run(lambda: self._post_status_to_server(queue_name, status, patch, results_file)) File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/common/net/networktransaction.py", line 56, in run self._check_for_timeout() File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/common/net/networktransaction.py", line 63, in _check_for_timeout raise NetworkTimeout() webkitpy.common.net.networktransaction.NetworkTimeout
Eric Seidel (no email)
Comment 45
Monday, May 31, 2010 6:28:19 PM UTC
Comment on
attachment 57424
[details]
Patch for
bug 35530
with the "E" in all enumeration values removed. The NetworkTimeout error often means that it's trying to upload a failure log which is too large for the server. Which means this patch probably fails on Mac. Looks like it also fails to apply for the stylebot. We'll try again just to make sure.
WebKit Commit Bot
Comment 46
Monday, May 31, 2010 10:18:40 PM UTC
Comment on
attachment 57424
[details]
Patch for
bug 35530
with the "E" in all enumeration values removed. Rejecting patch 57424 from commit-queue. Unexpected failure when landing patch! Please file a bug against webkit-patch. Failed to run "['./WebKitTools/Scripts/webkit-patch', '--status-host=webkit-commit-queue.appspot.com', 'land-attachment', '--force-clean', '--build', '--non-interactive', '--ignore-builders', '--build-style=both', '--quiet', 57424, '--test', '--parent-command=commit-queue', '--no-update']" exit_code: 1 Last 500 characters of output: date_status return NetworkTransaction().run(lambda: self._post_status_to_server(queue_name, status, patch, results_file)) File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/common/net/networktransaction.py", line 56, in run self._check_for_timeout() File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/common/net/networktransaction.py", line 63, in _check_for_timeout raise NetworkTimeout() webkitpy.common.net.networktransaction.NetworkTimeout
Lyon Chen
Comment 47
Tuesday, June 1, 2010 1:35:01 AM UTC
Created
attachment 57501
[details]
Patch updated to 108b044c Updated to commit till 108b044c.
Kent Tamura
Comment 48
Tuesday, June 1, 2010 1:39:07 AM UTC
Comment on
attachment 57501
[details]
Patch updated to 108b044c The diff for WebCore/ChangeLog is not a good format. Please make a patch with the latest revision of WebKit.
Lyon Chen
Comment 49
Tuesday, June 1, 2010 1:52:57 AM UTC
Created
attachment 57503
[details]
Patch regenerated.
Kent Tamura
Comment 50
Tuesday, June 1, 2010 4:30:20 AM UTC
Comment on
attachment 57503
[details]
Patch regenerated. OK
WebKit Commit Bot
Comment 51
Tuesday, June 1, 2010 5:03:25 AM UTC
Comment on
attachment 57503
[details]
Patch regenerated. Rejecting patch 57503 from commit-queue. Unexpected failure when landing patch! Please file a bug against webkit-patch. Failed to run "['./WebKitTools/Scripts/webkit-patch', '--status-host=webkit-commit-queue.appspot.com', 'land-attachment', '--force-clean', '--build', '--non-interactive', '--ignore-builders', '--build-style=both', '--quiet', 57503, '--test', '--parent-command=commit-queue', '--no-update']" exit_code: 1 Last 500 characters of output: date_status return NetworkTransaction().run(lambda: self._post_status_to_server(queue_name, status, patch, results_file)) File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/common/net/networktransaction.py", line 56, in run self._check_for_timeout() File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/common/net/networktransaction.py", line 63, in _check_for_timeout raise NetworkTimeout() webkitpy.common.net.networktransaction.NetworkTimeout
Lyon Chen
Comment 52
Tuesday, June 1, 2010 5:12:54 AM UTC
Already reported a bug (
https://bugs.webkit.org/show_bug.cgi?id=39954
) for this patch landing error, and this is at least the 3rd time, not sure what to do anymore. Before the patch landing script issues are fixed, I don't see I have any choice but giving up.
Eric Seidel (no email)
Comment 53
Tuesday, June 1, 2010 5:46:27 AM UTC
This patch breaks mac. But the error report is too large to upload. that's why the commit-bot is failing. someone will have to test this on mac manually to get you the error.
Kent Tamura
Comment 54
Tuesday, June 1, 2010 7:12:01 AM UTC
The error was: WebKit/mac/WebView/WebTextCompletionController.mm: In function ‘void -[WebTextCompletionController doCompletion](WebTextCompletionController*, objc_selector*)’: WebKit/mac/WebView/WebTextCompletionController.mm:175: error: ‘EXTEND’ is not a member of ‘WebCore::SelectionController’ WebKit/mac/WebView/WebTextCompletionController.mm:176: error: ‘BACKWARD’ is not a member of ‘WebCore::SelectionController’ ok, I'll land the patch with a fix for the above error.
Kent Tamura
Comment 55
Tuesday, June 1, 2010 7:13:42 AM UTC
Committed
r60463
: <
http://trac.webkit.org/changeset/60463
>
Lyon Chen
Comment 56
Tuesday, June 1, 2010 3:19:04 PM UTC
Thanks, Kent. Now I know why I failed at Mac build, because when I did a global search, I forgot to search for .m/.mm files!
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