[Webkit-unassigned] [Bug 38603] Expose the editing behavior setting in DRT to test all editing code paths

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 12 17:02:14 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38603





--- Comment #18 from Darin Fisher (:fishd, Google) <fishd at chromium.org>  2010-05-12 17:02:13 PST ---
(From update of attachment 55251)
WebKit/chromium/public/WebSettings.h:47
 +          EditingBehaviorMac = 1,
If you do not assign 1 to EditingBehaviorMac, then it will have a value of 0,
and that will mean that EditingBehaviorMac == WebCore::EditingMacBehavior
and EditingBehaviorWindows == WebCore::EditingWindowsBehavior.

This means that in the .cpp file you can just static_cast between the two
enum types.

Then to ensure that they do not get out of sync, you can add some lines to
chromium/src/AssertMatchingEnums.cpp (note that the enum groups are alphabetized).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list