Commit Graph

878 Commits

Author SHA1 Message Date
Boris Zbarsky
a860438a8a Bug 778044. Add a way to pref off Paris binding constructor objects. r=peterv 2012-09-05 13:37:28 -04:00
Mike Habicher
15e34763e4 Bug 779139 - Make DOM-facing camera objects cycle collection participants. r=jst
--HG--
rename : dom/camera/CameraControl.h => dom/camera/CameraControlImpl.h
rename : dom/camera/GonkCameraCapabilities.cpp => dom/camera/DOMCameraCapabilities.cpp
2012-09-04 21:01:56 -04:00
Brendan Dahl
e5b3162f1a Bug 745025 - Part 1 - Adds mozPrintCallback for canvas. r=smaug 2012-08-31 10:45:45 -07:00
Randell Jesup
29ac5c0b8c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Yoshi Huang
0ebab51824 Bug 744714 - Part 4 : DOMEvent. r=smaug 2012-06-11 19:28:16 +08:00
Yoshi Huang
633b06fe42 Bug 744714 - Part 2: MozIccManager. r=smaug 2012-06-28 16:21:48 +02:00
Yoshi Huang
331c92de7b Bug 785942 - Part 2: Update Impl. r=smaug 2012-08-27 14:34:10 -03:00
Olli Pettay
976f2acfb6 Bug 784259 - nsDOMMutationObserver should inherit nsWrapperCache, r=peterv 2012-08-28 18:25:19 +03:00
Philipp von Weitershausen
f47e2a9937 Bug 776825 - Separate message managers into senders and broadcasters. r=smaug
--HG--
rename : content/base/public/nsIFrameMessageManager.idl => content/base/public/nsIMessageManager.idl
2012-08-27 11:13:02 -03:00
Gabor Krizsanits
9a223560e1 Bug 738244 - Supporting DOM specific collection properties through xray wrappers; r=mrbkap 2012-08-27 15:06:34 +02:00
Andrew McCreight
9ed27ff7f0 Bug 765527. r=mrbkap 2012-08-25 14:56:45 -07:00
Kyle Huey
0cae034974 Bug 783162: Make mapped attributes hold the image alive. r=bz
The nsCSSValue in nsGenericHTMLElement::MapBackgroundInto is a temporary.  This causes a problem after Bug 697230 landed, because the nsCSSValue::Image we put into that value is destroyed once we're done doing style stuff.  Previously the nsImageLoader would grab the request off the nsCSSValue::Image and hold it alive.  Bug 697230 changed the behavior here; now when the nsCSSValue::Image is destroyed it tells the image loader to drop the request.  The result is that all the references to the request are dropped and the frame is never told it has a background.

The solution is to keep the nsCSSValue::Image alive longer.  This patch adds two new types of nsAttrValue.  The first is an nsCSSValue::URL.  A ParseBackgroundAttribute method is added on nsGenericHTMLElement that the relevant elements (body/td/th/table/tr/tbody/thead/tfoot) call that parses background into an nsCSSValue::URL.  The second is an nsCSSValue::Image.  nsGenericHTMLElement::MapBackgroundInto attempts to convert the nsCSSValue::URL into an nsCSSValue::Image by kicking off the image load.  The result is that image loads are only started when the element is actually visible.  This also mirrors the way background-image works.  This also allows us to fix two longstanding bugs in this code.  Since MapBackgroundInto doesn't have a pointer to the actual element, it relied on grabbing the principal of the document.  Now we can grab the principal of the node in ParseBackgroundAttribute.  MapBackgroundInto also has no way to get at the element's base URI (to honor xml:base), which is now possible in ParseBackgroundAttribute.

nsCSSValue::[Image|URL] have also been moved to be mozilla::css::[Image|URL]Value.  nsAttrValue.h is included in external linkage code, so it can't include nsCSSValue.h to get the declarations of nsCSSValue::[Image|URL], and nested classes can't be forward declared.  Moving the classes to a namespace solves the problem.

Finally some old inoperative quirks mode code was removed.  This code has done nothing since Bug 273078 was landed in 2004.
2012-08-24 10:50:49 -07:00
Luke Wagner
ce71e55555 Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley)
--HG--
extra : rebase_source : 12acf2288285f5caefd7fecea8207de3a47eab5b
2012-08-21 18:42:53 -07:00
Peter Van der Beken
854457d901 Fix for bug 768692 (Move DOM list binding generation to the new DOM binding codegen). r=bzbarsky.
--HG--
extra : rebase_source : 651a0fac4c9a87ef1c0a9cd91588c6421fd050c4
2012-05-22 15:46:20 +02:00
Ehsan Akhgari
a8a14f9163 Merge the landing of bug 579517 to mozilla-inbound 2012-08-22 12:12:15 -04:00
Eric Chou
5ea354700f Bug 783520 - [b2g-bluetooth] follow-up to bug 730992, r=qdot 2012-08-22 18:37:08 +08:00
Gina Yeh
2326b507ac Bug 783454 - v1: Create devicefound event with event generator, r=qdot 2012-08-21 10:54:28 +08:00
Olli Pettay
e1b92aea91 Bug 783856 - Autogen PopupBlockedEvent, r=jst 2012-08-20 11:26:34 -07:00
Ehsan Akhgari
8c296bbcd4 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Eric Chou
987b293c10 Bug 730992 - Patch 1: The DOM boilerplate for BluetoothPairingEvent, r=qdot, sr=mrbkap
---
 dom/base/nsDOMClassInfo.cpp                   |    9 +++
 dom/base/nsDOMClassInfoClasses.h              |    1 +
 dom/bluetooth/BluetoothPairingEvent.cpp       |   78 +++++++++++++++++++++++++
 dom/bluetooth/BluetoothPairingEvent.h         |   70 ++++++++++++++++++++++
 dom/bluetooth/Makefile.in                     |    2 +
 dom/bluetooth/nsIDOMBluetoothPairingEvent.idl |   15 +++++
 6 files changed, 175 insertions(+), 0 deletions(-)
 create mode 100644 dom/bluetooth/BluetoothPairingEvent.cpp
 create mode 100644 dom/bluetooth/BluetoothPairingEvent.h
 create mode 100644 dom/bluetooth/nsIDOMBluetoothPairingEvent.idl
2012-08-17 18:35:59 +08:00
Aryeh Gregor
982100775b Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Alexander Boldyrev
f61c980db5 Bug 738866 - Implement WEBGL_depth_texture extension - r=jgilbert 2012-08-13 18:17:55 -07:00
Phil Ringnalda
be4c3892b1 Bug 782167 - Downgrade MOZ_ASSERT(win->IsClosedOrClosing()) to an NS_ASSERTION until it stops happening so often, r=khuey
--HG--
extra : rebase_source : 774096aa4cfa058d1aa1a32596ae65e464e1baf9
2012-08-12 20:52:21 -07:00
David Keeler
37763d23ef Bug 741130 - Attach XBL bindings for html:objects in nsElementSH::PostCreate. r=bz, r=jwein 2012-08-10 09:19:24 -07:00
Ryan VanderMeulen
212cdce23a Merge inbound to m-c. 2012-08-11 22:33:42 -04:00
Masayuki Nakano
acbe3bbdd7 Bug 719320 part.1 Add DOM3 WheelEvent r=smaug, sr=jst 2012-08-12 10:42:34 +09:00
Ms2ger
8bdc098996 Backout changeset c77acb256aec for failing to work. 2012-08-11 18:12:54 +02:00
Doug Turner
84dd794e39 Bug 777088 - device Storage - file stat API. r=bent 2012-07-31 12:28:23 -07:00
Ms2ger
c2bbcc10c0 Bug 781058 - Part c: Fix -Werror=int-to-pointer-cast in nsDOMClassInfo; r=mounir 2012-08-09 09:20:29 +02:00
Ms2ger
c1ce519fa3 Bug 780146 - Part e: Move all standard classes resolution code into the !ObjectIsNativeWrapper() branch; r=jst 2012-08-09 09:19:53 +02:00
Ms2ger
0df17d5667 Bug 780146 - Part c: Don't define constructors by contract ID; r=jst 2012-08-09 09:19:48 +02:00
Ms2ger
a7f199e451 Bug 780146 - Part b: Inline nsDOMClassInfo::RegisterClassName; r=jst 2012-08-09 09:19:42 +02:00
Ms2ger
198f4a2ae7 Bug 780146 - Part a: Move window._content into IDL; r=jst 2012-08-09 09:16:09 +02:00
Ms2ger
b3d4060c1a Bug 780993 - Reinstate support for setting indexed properties on HTMLSelectElement to null; r=bz 2012-08-09 09:10:21 +02:00
Anant Narayanan
c733e8406b Bug 779626: Javascript-global-constructor objects should be passed a window reference; r=mrbkap 2012-08-03 08:35:00 -07:00
Boris Zbarsky
c08e92b300 Bug 753517 part 2. Make all CSS declarations wrappercached and make them correctly handle preserved wrappers. r=mccr8,peterv,smaug,dbaron 2012-08-05 22:16:30 -04:00
Boris Zbarsky
6eb7534148 Bug 753517 part 1. Make GetParentObject() on CSS declarations return a useful nsINode if possible. r=peterv,dbaron 2012-08-05 22:14:52 -04:00
Ms2ger
2543680179 Bug 780165 - Part b: Use nsPIDOMWindow::GetDoc() in the special case for window.document in nsDOMClassInfo; r=smaug 2012-08-04 09:44:01 +02:00
Ms2ger
cb4d106015 Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug 2012-08-04 09:44:00 +02:00
Ed Morley
4eb11bee72 Revert inbound to 3d5d1daa2505 to stop OS X M5 failures (backout not clean/could have been a bad merge) on a CLOSED TREE 2012-08-04 18:05:15 +01:00
Ms2ger
e2870d523a Bug 780165 - Part b: Use nsPIDOMWindow::GetDoc() in the special case for window.document in nsDOMClassInfo; r=smaug 2012-08-04 09:44:01 +02:00
Ms2ger
b927c10310 Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug 2012-08-04 09:44:00 +02:00
Doug Turner
045acc0826 Bug 779864 - onchange notifications of DeviceStorage should use code generator. r=smaug 2012-08-02 13:25:16 -07:00
Wes Johnston
7fe524d43a Bug 777706 - Backout new dom bindings for touchlists. r=smaug 2012-08-02 10:41:42 -07:00
Doug Turner
e0b1269b07 Bug 763976 - Add onchange notifications to DeviceStorage. r=khuey 2012-08-01 23:29:34 -07:00
Eric Faust
6d4e293e26 Bug 752223 - Implement JS_NumberValue(), replacing JS_NewNumberValue(). (r=luke) 2012-08-01 17:59:47 -07:00
Cameron McCormack
78727e2c15 Bug 649740 - Implement @supports. r=dbaron,bz 2012-08-02 10:32:12 +10:00
Olli Pettay
4f6e139505 Bug 777278 - Implement nsIDOMStorageEvent using event implementation codegen, r=mayhemer 2012-08-01 19:17:19 +03:00
Olli Pettay
fb67655737 Bug 777285 - Autogenerate SettingsEvent implementation, r=anygregor
--HG--
extra : rebase_source : 038f38a4f9efae15a3fbf4236c4456bf9cfa4577
2012-08-01 12:48:35 +03:00
Kyle Machulis
2fb1dd9763 Bug 761511: Patch 1 - Boilerplate for BluetoothPropertyEvent DOM Object r=bent; sr=mrbkap 2012-07-31 21:49:59 -07:00