Bug 55094

Summary: WebCursorInfo needs to match enums in platform/Cursor.h
Product: WebKit Reporter: Avi Drissman <avi>
Component: PlatformAssignee: Avi Drissman <avi>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, commit-queue, dglazkov, eric, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: OS X 10.5   
Attachments:
Description Flags
Patch for missing values
avi: review-, avi: commit-queue-
Updated version; adds checks to keep three enum lists from getting out of sync again.
eric: review+, eric: commit-queue-
Try again. Clarified ChangeLog, though no code change. none

Avi Drissman
Reported 2011-02-23 15:35:32 PST
In WebKit/chromium/src/WebCursorInfo.cpp: WebCursorInfo::WebCursorInfo(const Cursor& cursor) { type = static_cast<Type>(cursor.impl().type()); yet WebCursorInfo::Type has two fewer items in the enum than Cursor::Type. This needs to be fixed.
Attachments
Patch for missing values (991 bytes, patch)
2011-02-23 16:07 PST, Avi Drissman
avi: review-
avi: commit-queue-
Updated version; adds checks to keep three enum lists from getting out of sync again. (6.58 KB, patch)
2011-02-23 16:59 PST, Avi Drissman
eric: review+
eric: commit-queue-
Try again. Clarified ChangeLog, though no code change. (6.56 KB, patch)
2011-02-28 07:25 PST, Avi Drissman
no flags
Avi Drissman
Comment 1 2011-02-23 16:07:06 PST
Created attachment 83571 [details] Patch for missing values
James Robinson
Comment 2 2011-02-23 16:08:04 PST
Comment on attachment 83571 [details] Patch for missing values R=me
WebKit Review Bot
Comment 3 2011-02-23 16:25:22 PST
Avi Drissman
Comment 4 2011-02-23 16:59:16 PST
Created attachment 83581 [details] Updated version; adds checks to keep three enum lists from getting out of sync again.
WebKit Review Bot
Comment 5 2011-02-23 17:08:50 PST
Eric Seidel (no email)
Comment 6 2011-02-24 02:39:31 PST
Comment on attachment 83581 [details] Updated version; adds checks to keep three enum lists from getting out of sync again. View in context: https://bugs.webkit.org/attachment.cgi?id=83581&action=review OK. > Source/WebCore/ChangeLog:8 > + No new tests. (OOPS!) This shoudl be replaced by either a list of tests or explainaion why testing is impossible.
Eric Seidel (no email)
Comment 7 2011-02-24 02:39:49 PST
Comment on attachment 83581 [details] Updated version; adds checks to keep three enum lists from getting out of sync again. cq would fail,a nd cr-linux is borked anyway.
Avi Drissman
Comment 8 2011-02-24 04:36:45 PST
This is temporarily blocked by some issues on the Chromium side; will fix today. There is no functional code being added, just enums. Tests are being added: a list of compile asserts that everything matches up so that this won't happen again.
Avi Drissman
Comment 9 2011-02-28 07:25:07 PST
Created attachment 84056 [details] Try again. Clarified ChangeLog, though no code change. The dependency on the Chromium side was fixed; this should pass all trybots.
James Robinson
Comment 10 2011-02-28 15:15:14 PST
Comment on attachment 84056 [details] Try again. Clarified ChangeLog, though no code change. Looks good.
WebKit Commit Bot
Comment 11 2011-02-28 16:52:00 PST
Comment on attachment 84056 [details] Try again. Clarified ChangeLog, though no code change. Clearing flags on attachment: 84056 Committed r79942: <http://trac.webkit.org/changeset/79942>
WebKit Commit Bot
Comment 12 2011-02-28 16:52:05 PST
All reviewed patches have been landed. Closing bug.
WebKit Review Bot
Comment 13 2011-02-28 18:07:42 PST
http://trac.webkit.org/changeset/79942 might have broken Qt Linux Release The following tests are not passing: fast/events/tabindex-focus-blur-all.html fast/frames/iframe-plugin-load-remove-document-crash.html fast/frames/sandboxed-iframe-attribute-parsing.html fast/layers/clip-rects-transformed.html fast/replaced/object-with-non-empty-classid-triggers-fallback.html plugins/createScriptableObject-before-start.html plugins/destroy-on-setwindow.html plugins/destroy-plugin-from-callback.html plugins/destroy-stream-twice.html plugins/document-open.html plugins/evaluate-js-after-removing-plugin-element.html plugins/get-file-url.html plugins/get-url-that-the-resource-load-delegate-will-disallow.html plugins/get-url-with-javascript-destroying-plugin.html plugins/geturl-replace-query.html plugins/geturlnotify-during-document-teardown.html plugins/instance-available-before-stylesheets-loaded-object.html plugins/invalid-mime-with-valid-extension-shows-missing-plugin.html plugins/js-from-destroy.html
Avi Drissman
Comment 14 2011-03-01 07:11:10 PST
(In reply to comment #13) > http://trac.webkit.org/changeset/79942 might have broken Qt Linux Release > The following tests are not passing: Huh? All the patch did was add enums to platform/chromium.
Note You need to log in before you can comment on or make changes to this bug.