author | Ryan VanderMeulen <ryanvm@gmail.com> |
Wed, 29 Oct 2014 16:27:15 -0400 | |
changeset 213013 | a009be3f978a5493b4451ed51caf640d6c5bb520 |
parent 213012 | e30de6729affd6aa103bbccb40be280af22cad93 |
child 213014 | 3629ea724086b7195adcb26e57c5244d6df9403c |
push id | 27738 |
push user | cbook@mozilla.com |
push date | Thu, 30 Oct 2014 13:46:07 +0000 |
treeherder | mozilla-central@1aa1b23d799e [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
bugs | 1087378 |
milestone | 36.0a1 |
backs out | 4b4c7462ec89a4f090f950f7cef82eba6740829f |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/accessible/base/moz.build +++ b/accessible/base/moz.build @@ -58,17 +58,16 @@ if CONFIG['A11Y_LOG']: ] LOCAL_INCLUDES += [ '/accessible/generic', '/accessible/html', '/accessible/ipc', '/accessible/xpcom', '/accessible/xul', - '/dom/base', '/dom/xbl', '/ipc/chromium/src', '/layout/generic', '/layout/style', '/layout/svg', '/layout/xul', '/layout/xul/tree/', ]
--- a/dom/events/MessageEvent.cpp +++ b/dom/events/MessageEvent.cpp @@ -136,18 +136,18 @@ MessageEvent::Constructor(const GlobalOb event->mOrigin = aParam.mOrigin.Value(); } if (aParam.mLastEventId.WasPassed()) { event->mLastEventId = aParam.mLastEventId.Value(); } if (!aParam.mSource.IsNull()) { - if (aParam.mSource.Value().IsWindow()) { - event->mWindowSource = aParam.mSource.Value().GetAsWindow(); + if (aParam.mSource.Value().IsWindowProxy()) { + event->mWindowSource = aParam.mSource.Value().GetAsWindowProxy(); } else { event->mPortSource = aParam.mSource.Value().GetAsMessagePort(); } MOZ_ASSERT(event->mWindowSource || event->mPortSource); } if (aParam.mPorts.WasPassed() && !aParam.mPorts.Value().IsNull()) {
--- a/dom/webidl/CompositionEvent.webidl +++ b/dom/webidl/CompositionEvent.webidl @@ -4,24 +4,26 @@ * You can obtain one at http://mozilla.org/MPL/2.0/. * * http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-CompositionEvent * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ +interface WindowProxy; + interface CompositionEvent : UIEvent { readonly attribute DOMString? data; readonly attribute DOMString locale; }; partial interface CompositionEvent { [Throws] void initCompositionEvent(DOMString typeArg, boolean canBubbleArg, boolean cancelableArg, - Window? viewArg, + WindowProxy? viewArg, DOMString? dataArg, DOMString localeArg); };
--- a/dom/webidl/DragEvent.webidl +++ b/dom/webidl/DragEvent.webidl @@ -1,23 +1,25 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +interface WindowProxy; + interface DragEvent : MouseEvent { readonly attribute DataTransfer? dataTransfer; [Throws] void initDragEvent(DOMString type, boolean canBubble, boolean cancelable, - Window? aView, + WindowProxy? aView, long aDetail, long aScreenX, long aScreenY, long aClientX, long aClientY, boolean aCtrlKey, boolean aAltKey, boolean aShiftKey,
--- a/dom/webidl/KeyEvent.webidl +++ b/dom/webidl/KeyEvent.webidl @@ -1,14 +1,16 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ +interface WindowProxy; + // http://www.w3.org/TR/1999/WD-DOM-Level-2-19990923/events.html#Events-KeyEvent interface KeyEvent { const unsigned long DOM_VK_CANCEL = 0x03; const unsigned long DOM_VK_HELP = 0x06; const unsigned long DOM_VK_BACK_SPACE = 0x08; const unsigned long DOM_VK_TAB = 0x09; const unsigned long DOM_VK_CLEAR = 0x0C; @@ -223,16 +225,16 @@ interface KeyEvent // OEM specific virtual keyCode of Windows should pass through DOM keyCode // for compatibility with the other web browsers on Windows. const unsigned long DOM_VK_WIN_OEM_CLEAR = 0xFE; [Throws] void initKeyEvent(DOMString type, boolean canBubble, boolean cancelable, - Window? view, + WindowProxy? view, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, unsigned long keyCode, unsigned long charCode); };
--- a/dom/webidl/KeyboardEvent.webidl +++ b/dom/webidl/KeyboardEvent.webidl @@ -1,14 +1,16 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ +interface WindowProxy; + [Constructor(DOMString typeArg, optional KeyboardEventInit keyboardEventInitDict)] interface KeyboardEvent : UIEvent { readonly attribute unsigned long charCode; readonly attribute unsigned long keyCode; readonly attribute boolean altKey; readonly attribute boolean ctrlKey;
--- a/dom/webidl/MessageEvent.webidl +++ b/dom/webidl/MessageEvent.webidl @@ -2,16 +2,18 @@ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * For more information on this interface, please see * http://www.whatwg.org/specs/web-apps/current-work/#messageevent */ +interface WindowProxy; + [Constructor(DOMString type, optional MessageEventInit eventInitDict), Exposed=(Window,Worker,System)] interface MessageEvent : Event { /** * Custom data associated with this event. */ [GetterThrows] readonly attribute any data; @@ -42,11 +44,11 @@ interface MessageEvent : Event { */ readonly attribute MessagePortList? ports; }; dictionary MessageEventInit : EventInit { any data; DOMString origin; DOMString lastEventId; - (Window or MessagePort)? source = null; + (WindowProxy or MessagePort)? source = null; sequence<MessagePort>? ports; };
--- a/dom/webidl/MouseEvent.webidl +++ b/dom/webidl/MouseEvent.webidl @@ -23,17 +23,17 @@ interface MouseEvent : UIEvent { readonly attribute unsigned short buttons; readonly attribute EventTarget? relatedTarget; readonly attribute DOMString? region; // Deprecated in DOM Level 3: [Throws] void initMouseEvent(DOMString typeArg, boolean canBubbleArg, boolean cancelableArg, - Window? viewArg, + WindowProxy? viewArg, long detailArg, long screenXArg, long screenYArg, long clientXArg, long clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, @@ -47,17 +47,25 @@ interface MouseEvent : UIEvent { // Event Constructor Syntax: [Constructor(DOMString typeArg, optional MouseEventInit mouseEventInitDict)] partial interface MouseEvent { }; // Suggested initMouseEvent replacement initializer: -dictionary MouseEventInit : UIEventInit { +dictionary MouseEventInit { + // Attributes from Event: + boolean bubbles = false; + boolean cancelable = false; + + // Attributes from UIEvent: + WindowProxy? view = null; + long detail = 0; + // Attributes for MouseEvent: long screenX = 0; long screenY = 0; long clientX = 0; long clientY = 0; boolean ctrlKey = false; boolean shiftKey = false; boolean altKey = false; @@ -87,17 +95,17 @@ partial interface MouseEvent const unsigned short MOZ_SOURCE_KEYBOARD = 6; readonly attribute unsigned short mozInputSource; [Throws] void initNSMouseEvent(DOMString typeArg, boolean canBubbleArg, boolean cancelableArg, - Window? viewArg, + WindowProxy? viewArg, long detailArg, long screenXArg, long screenYArg, long clientXArg, long clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg,
--- a/dom/webidl/MouseScrollEvent.webidl +++ b/dom/webidl/MouseScrollEvent.webidl @@ -1,26 +1,28 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ +interface WindowProxy; + interface MouseScrollEvent : MouseEvent { const long HORIZONTAL_AXIS = 1; const long VERTICAL_AXIS = 2; readonly attribute long axis; [Throws] void initMouseScrollEvent(DOMString type, boolean canBubble, boolean cancelable, - Window? view, + WindowProxy? view, long detail, long screenX, long screenY, long clientX, long clientY, boolean ctrlKey, boolean altKey, boolean shiftKey,
--- a/dom/webidl/ScrollAreaEvent.webidl +++ b/dom/webidl/ScrollAreaEvent.webidl @@ -1,24 +1,26 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ +interface WindowProxy; + interface ScrollAreaEvent : UIEvent { readonly attribute float x; readonly attribute float y; readonly attribute float width; readonly attribute float height; [Throws] void initScrollAreaEvent(DOMString type, boolean canBubble, boolean cancelable, - Window? view, + WindowProxy? view, long detail, float x, float y, float width, float height); };
--- a/dom/webidl/SimpleGestureEvent.webidl +++ b/dom/webidl/SimpleGestureEvent.webidl @@ -1,16 +1,18 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * For more information see nsIDOMSimpleGestureEvent.idl. */ +interface WindowProxy; + interface SimpleGestureEvent : MouseEvent { const unsigned long DIRECTION_UP = 1; const unsigned long DIRECTION_DOWN = 2; const unsigned long DIRECTION_LEFT = 4; const unsigned long DIRECTION_RIGHT = 8; const unsigned long ROTATION_COUNTERCLOCKWISE = 1; @@ -23,17 +25,17 @@ interface SimpleGestureEvent : MouseEven readonly attribute double delta; readonly attribute unsigned long clickCount; [Throws] void initSimpleGestureEvent(DOMString typeArg, boolean canBubbleArg, boolean cancelableArg, - Window? viewArg, + WindowProxy? viewArg, long detailArg, long screenXArg, long screenYArg, long clientXArg, long clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg,
--- a/dom/webidl/TimeEvent.webidl +++ b/dom/webidl/TimeEvent.webidl @@ -5,16 +5,18 @@ * * For more information on this interface please see * http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ +interface WindowProxy; + interface TimeEvent : Event { readonly attribute long detail; readonly attribute WindowProxy? view; void initTimeEvent(DOMString aType, - Window? aView, + WindowProxy? aView, long aDetail); };
--- a/dom/webidl/TouchEvent.webidl +++ b/dom/webidl/TouchEvent.webidl @@ -1,30 +1,32 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ +interface WindowProxy; + [Func="mozilla::dom::TouchEvent::PrefEnabled"] interface TouchEvent : UIEvent { readonly attribute TouchList touches; readonly attribute TouchList targetTouches; readonly attribute TouchList changedTouches; readonly attribute boolean altKey; readonly attribute boolean metaKey; readonly attribute boolean ctrlKey; readonly attribute boolean shiftKey; [Throws] void initTouchEvent(DOMString type, boolean canBubble, boolean cancelable, - Window? view, + WindowProxy? view, long detail, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, TouchList? touches, TouchList? targetTouches, TouchList? changedTouches);
--- a/dom/webidl/UIEvent.webidl +++ b/dom/webidl/UIEvent.webidl @@ -5,25 +5,27 @@ * * For more information on this interface please see * http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html * * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C * liability, trademark and document use rules apply. */ +interface WindowProxy; + [Constructor(DOMString type, optional UIEventInit eventInitDict)] interface UIEvent : Event { readonly attribute WindowProxy? view; readonly attribute long detail; void initUIEvent(DOMString aType, boolean aCanBubble, boolean aCancelable, - Window? aView, + WindowProxy? aView, long aDetail); }; // Additional DOM0 properties. partial interface UIEvent { const long SCROLL_PAGE_UP = -32768; const long SCROLL_PAGE_DOWN = 32768; @@ -35,11 +37,11 @@ partial interface UIEvent { readonly attribute Node? rangeParent; readonly attribute long rangeOffset; attribute boolean cancelBubble; readonly attribute boolean isChar; }; dictionary UIEventInit : EventInit { - Window? view = null; - long detail = 0; + WindowProxy? view = null; + long detail = 0; };
--- a/dom/webidl/XULCommandEvent.webidl +++ b/dom/webidl/XULCommandEvent.webidl @@ -1,28 +1,30 @@ /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ +interface WindowProxy; + [Func="IsChromeOrXBL"] interface XULCommandEvent : UIEvent { readonly attribute boolean ctrlKey; readonly attribute boolean shiftKey; readonly attribute boolean altKey; readonly attribute boolean metaKey; readonly attribute Event? sourceEvent; [Throws] void initCommandEvent(DOMString type, boolean canBubble, boolean cancelable, - Window? view, + WindowProxy? view, long detail, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, Event? sourceEvent); };