Commit Graph

72 Commits

Author SHA1 Message Date
Nicholas Nethercote
d376f9f82e Bug 1260871 - Remove do_GetAtom() and rename NS_NewAtom() as NS_Atomize(). r=erahm.
do_GetAtom() is currently just a synonym for NS_NewAtom().

--HG--
extra : rebase_source : f4409784f931616cbc300591e6b843d30805c273
2016-03-29 10:09:43 +11:00
Masayuki Nakano
cea0b9cf02 Bug 1256589 part.6 Move the implementation of IsTrusted() from dom::Event to WidgetEvent r=smaug
MozReview-Commit-ID: 1SgMbTL8csl

--HG--
extra : rebase_source : 748fa8a594176edf7b2addd038b8031019d0dd35
extra : source : f4ce36e68ce06c405a6fab31facc120b94709aed
2016-03-17 16:01:30 +09:00
Ting-Yu Lin
22224242ba Bug 1249556 - Implement toggling details by keyboard. r=smaug
The user can switch to the main <summary> by tab key, and toggle the
<details> by either 'space' key or 'enter' key.

'return' key is handled with 'keypress', and the 'space' key is handled
with 'keyup' like the HTMLInputElement.

MozReview-Commit-ID: HE6IduUGCpj

--HG--
extra : rebase_source : 34598d95f35bf6b5bd927457ee09e42eb6ec0a68
2016-03-19 20:37:09 +08:00
Ting-Yu Lin
03310cda94 Bug 1249556 - Rename override to disallowOverridingFocusability. r=bz
Rename 'override' to 'disallowOverridingFocusability' in
nsGenericHTMLElement::IsHTMLFocusable() to make the implementation
reflect the semantic that the subclass is disallow to override the value
returned in aIsFocusable described in nsGenericHTMLElement.h.

Also 'override' is a new specifier since C++11. Rename it make the
syntax highlight looks right.

MozReview-Commit-ID: CShdChjBv7j

--HG--
extra : rebase_source : 6cf17cf1771c3f75fb31d1d6f882daffa015ab1c
2016-03-18 13:47:50 +08:00
Mats Palmgren
93262a673a Bug 1250315 - Make <input type=number readonly> match :-moz-read-only and allow context events. r=jwatt 2016-03-02 23:39:34 +01:00
Olli Pettay
53efc9997d Bug 1212116, dispatch wheel events on disabled form controls, r=bz
--HG--
extra : rebase_source : 9575bef16cca8d178ca43d5052584acaf3a857fa
2016-02-26 23:04:34 +02:00
Cameron McCormack
7c95c39734 Bug 1244068 - Part 4: Use StyleSetHandle instead of concrete style set class in most places. r=dholbert 2016-02-24 18:01:11 +11:00
Deepthi Venkitaramanan
008e6b8991 Bug 1244328 - Merge the functionality of DOMSettableTokenList into DOMTokenList and make everything that used to refer to DOMSettableTokenList refer to DOMTokenList instead. r=bzbarsky 2016-02-11 17:50:42 -05:00
Kyle Huey
91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Ting-Yu Lin
1889f6bc41 Bug 1227927 Part 2 - Remove nsIFrame::GetFirstPrincipalChild(). r=mats
--HG--
extra : commitid : 5qtaK1nS8RC
extra : rebase_source : dcc98f423b2446269beb6fa6a9d092ae8213f38e
2016-01-29 22:42:14 +08:00
Xidorn Quan
cc43119a67 Bug 1040668 followup 3 - Wrap lang attribute mapping code in NS_STYLE_INHERIT_BIT test. r=dbaron
--HG--
extra : source : 08c7fa7f0d4563c69b3a17ae676eaddfed237034
2015-12-08 03:12:44 +11:00
Franziskus Kiefer
6bf24410e1 Bug 1187357 - rename referrer attribute to referrerpolicy. r=hsivonen 2015-11-30 16:13:03 -08:00
Xidorn Quan
2917ce080e Bug 1040668 part 15 - Make the default value of text-emphasis-position aware of the language. r=dbaron
--HG--
extra : source : a4618d9f75ddcb7912ee5088d05842c3a4881f35
2015-11-28 11:56:33 +11:00
Robert O'Callahan
81ca4c4489 Bug 1226293. Followup: add SVG tests. r=bz
--HG--
extra : commitid : 8JNnozpGBij
2015-11-23 18:09:39 +13:00
Robert O'Callahan
c8ae753205 Bug 1226293. innerText for non-display:none elements with display:none ancestors should use textContent. r=bz
--HG--
extra : commitid : 15c4gKDyb8I
extra : rebase_source : 35de63c7ef87a1de6f78c50c112704a4b4c61dc2
2015-11-20 17:14:57 +13:00
L. David Baron
8edfb62b0c Bug 1223653 patch 2 - Use an enum class for NS_STYLE_BOX_SIZING_*. r=heycam
The casts in nsCSSProps.cpp (defining kBoxSizingKTable) and in
nsComputedDOMStyle::DoGetBoxSizing (using
nsCSSProps::ValueToKeywordEnum) are a little bit annoying, though aren't
a net reduction in typesafety.

The casts in nsRuleNode.cpp (SetDiscrete) are a little more annoying,
though the change in this patch should be sufficient for converting all
properties -- but that may also mean reducing typesafety a bit for all
properties.

I'd like to find something better to do about them, but I think I'm ok
landing this before doing that.  Bug 1224918 covers doing better.

--HG--
extra : commitid : GEVyZB5b23F
2015-11-19 18:09:29 -08:00
L. David Baron
a3eadb1b86 Bug 1221436 patch 2 - For style attributes, only store a css::Declaration instead of a css::StyleRule. r=heycam
Now that Declaration implements nsIStyleRule, we don't need the memory
overhead of storing a StyleRule object for style attributes.

We also need to change this prior to patch 5, because the changes in
patch 5 that will allow rules to change (but declarations not) would
otherwise break due to style attribute object merging done by
nsAttrValue::ParseStyleAttribute.

--HG--
extra : commitid : Ij4yRdba7wa
2015-11-09 15:57:16 +08:00
Robert O'Callahan
7c373233ed Bug 264412. Implement HTMLElement.innerText. r=smaug,mats
--HG--
extra : commitid : KjCvQzulwP3
extra : rebase_source : 01aae50d1ee8304e56d3d1e21a7c65c2f9060a72
2015-10-30 18:37:03 +13:00
Kyle Huey
c7d3c4e21a Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
Robert O'Callahan
0e2b65352f Revert incorrectly committed changes ab657569f554 and a396f4262479
--HG--
extra : commitid : IHQ60dccnSZ
extra : amend_source : 9302339fd951446a37909b31a1ccb56aff470325
2015-10-24 22:38:22 +13:00
Robert O'Callahan
b09242d6c1 Bug 264412. Implement HTMLElement.innerText. r=smaug,mats
--HG--
extra : commitid : LLiSI8usEMT
extra : rebase_source : 928b4fd451c28b57a43a873f05b7bf030ba13083
2015-10-21 10:23:17 +13:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Boris Zbarsky
8d9b5ee469 Bug 218093. Whitelist more mouse movement events to apply to disabled form controls. r=smaug 2015-10-16 14:36:19 -04:00
Bobby Holley
110f12e7ca Bug 1072150 - Use the opt-out for various sloppy consumers. r=bz 2015-09-24 14:02:41 -07:00
Neil Deakin
77303a0ee5 Bug 1168042, return a bool from PerformAccessKey indicating if focus was changed, r=masayuki 2015-09-18 08:18:42 -04:00
Masayuki Nakano
35e18152d5 Bug 895274 part.70 Rename NS_BLUR_CONTENT to eBlur r=smaug 2015-09-02 15:08:00 +09:00
Masayuki Nakano
cc5db3b160 Bug 895274 part.69 Rename NS_FOCUS_CONTENT to eFocus r=smaug 2015-09-02 15:08:00 +09:00
Masayuki Nakano
a516285180 Bug 895274 part.31 Rename NS_MOUSE_CLICK to eMouseClick r=smaug 2015-08-29 08:58:32 +09:00
Masayuki Nakano
717c415187 Bug 895274 part.25 Rename NS_MOUSE_MOVE to eMouseMove r=smaug 2015-08-29 08:58:29 +09:00
Masayuki Nakano
0d22745cda Bug 895274 part.3 Make the enum of event messages a named enum IGNORE IDL r=smaug 2015-08-26 21:56:59 +09:00
Masayuki Nakano
66f2c27305 Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug 2015-08-22 10:34:51 +09:00
William Chen
148ff86273 Bug 1181130 - Part 3: Keep track of editable descendants per node and prevent NS_STYLE_USER_SELECT_ALL selection for nodes with editable descendants. r=bz 2015-08-14 10:52:38 -07:00
Robert O'Callahan
d5d49432af Bug 1184842. Allow BeforeSetAttr to preparse aValue. r=peterv
We will pass the preparsed value into AttributeWillChange.

--HG--
extra : commitid : HCiY4DRKWkC
extra : rebase_source : aa17a819a20578322380d388299279e4e41a690b
2015-08-01 17:14:06 +12:00
Franziskus Kiefer
b4e4b6d771 Bug 1174913 - remove unnecessary attribute parsing. r=bz 2015-07-13 18:04:42 -07:00
Dragana Damjanovic
7987d2203e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Franziskus Kiefer
2ae91f6891 Bug 1166910 - Referrer attribute for img tag. r=ckerschb, r=hsivonen, r=bz
--HG--
extra : rebase_source : ceb3a3d18acf7deb9d13cfae499b7e112db8ffce
2015-06-05 15:25:24 -07:00
Carsten "Tomcat" Book
8bc87efb1e Backed out changeset f5f3827ffcf1 (bug 1166910) for bustage 2015-07-01 08:19:28 +02:00
Franziskus Kiefer
91b0523177 Bug 1166910 - referrer attribute for img tag. r=hsivonen 2015-06-05 15:25:24 -07:00
Andrea Marchesini
c627d235d3 Bug 1170274 - patch 2 - A better string parser for nsGenericHTMLElement::GetURIListAttr, r=ehsan CLOSED TREE 2015-06-17 17:00:37 +01:00
Andrea Marchesini
4e81d0cdf5 Bug 1170274 - A better string parser for nsGenericHTMLElement::GetURIListAttr, r=ehsan 2015-06-17 15:02:18 +01:00
Carsten "Tomcat" Book
83a5ac66d0 Backed out changeset 689ce5819b24 (bug 1170274) for w2 test failures 2015-06-17 15:59:45 +02:00
Andrea Marchesini
e408c5990a Bug 1170274 - A better string parser for nsGenericHTMLElement::GetURIListAttr, r=ehsan 2015-06-17 12:43:53 +01:00
Ryan VanderMeulen
887437e1c0 Backed out changeset e44f689c3756 (bug 1170274) for reflection-embedded.html w-p-t failures.
CLOSED TREE
2015-06-16 11:31:59 -04:00
Andrea Marchesini
f512499e19 Bug 1170274 - Better tokenizer function for nsGenericHTMLElement::GetURIListAttr. r=ehsan
--HG--
extra : rebase_source : 02266cf6f57afd6a1a61daecb22d2576247b5f57
2015-06-16 08:52:12 -04:00
Karl Tomlinson
75c800d128 bug 1116382 accept abstract strings in NewURIFromString() r=bholley
--HG--
extra : rebase_source : d859eb7a484b4d558c7d6c9017d350fee77a5c58
2015-05-22 17:12:13 +12:00
Andrew McCreight
9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Boris Zbarsky
1540774b0c Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Denis Volk
32e981896d Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
Ehsan Akhgari
883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Tooru Fujisawa
de4b4e39c8 Bug 1141455 - Do not treat an element with tabindex as an interactive content in label. r=smaug 2015-03-18 05:42:14 +09:00