[Webkit-unassigned] [Bug 42265] Runtime feature switch for device orientation
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 14 09:03:16 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=42265
--- Comment #4 from Steve Block <steveblock at google.com> 2010-07-14 09:03:16 PST ---
(From update of attachment 61526)
WebCore/bindings/generic/RuntimeEnabledFeatures.h:116
+ #if ENABLE(DEVICE_ORIENTATION)
It looks like some features choose to guard these blocks, others don't. I think we shouldn't use guards unless we need to, it just clutters the code.
WebCore/bindings/generic/RuntimeEnabledFeatures.h:117
+ static void setDeviceOrientationEventEnabled(bool isEnabled) { isDeviceOrientationEventEnabled = isEnabled; }
I think the flag should just be named for the feature, ie 'DeviceOrientation', in keeping with the other features.
WebCore/page/DOMWindow.idl:308
+ attribute [Conditional=DEVICE_ORIENTATION,EnabledAtRuntime] EventListener ondeviceorientation;
There should probably be a space here, though I notice the rest of the file is inconsistent
--
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