Brian Birtles
107642839f
Bug 1246320 part 5 - Simplify KeyframeEffect(ReadOnly) Constructor overloads further; r=hiro
...
As well as generally simplifying the different KeyframeEffect(ReadOnly)
constructor methods, this patch also means we will use the realm document for
parsing timing functions in all cases. Although this currently doesn't have
any impact (the current set of timing functions are expected to be parsed
identically regardless of the document used) it may become significant if, in
future, it becomes possible to register hooks with certain documents for
parsing CSS properties as part of the houdini efforts.
MozReview-Commit-ID: 4gAZi1G1uAD
--HG--
extra : rebase_source : f619592a02ddcbe56835344ec1fb3023219cd2d3
2016-03-12 22:14:10 +09:00
Brian Birtles
6846d9e23b
Bug 1246320 part 4 - Pass a document to TimingParams; r=hiro
...
MozReview-Commit-ID: 9Sh8eWHdDD6
--HG--
extra : rebase_source : 2dc0da7076b8acaaca257583f3780266ae62b430
2016-03-11 17:27:34 +09:00
Boris Chiou
ee4902f582
Bug 1254418 - Part 1: Support generated-content element for Element.getAnimations. r=birtles
2016-03-10 21:50:00 -05:00
Daisuke Akatsuka
2d2c72ccbf
Bug 1237173 - Part3: Throw TypeError if duration is NaN, negative value or not 'auto' string. r=birtles, r=smaug
2016-03-09 14:01:45 +09:00
Boris Chiou
c0917bf747
Bug 1241784 - Part 1: Add a helper function for Element.animate(). r=birtles
...
Therefore, CSSPseudoElement.animate() can also use it.
2016-03-04 00:54:00 +01:00
Boris Chiou
1c9da6a517
Bug 1234403 - Part 1: Implement CSSPseudoElement.getAnimations. r=birtles
2016-02-18 02:21:00 +01:00
Olli Pettay
3af8f71a7e
Bug 1249428 - Unlink binding properly from element , r=mccr8
...
--HG--
extra : rebase_source : e549e1f2722173d2829c61a0c98c0d3c338379a5
2016-02-19 21:13:42 +02:00
Boris Chiou
185a769719
Bug 1244049 - Part 1: Define scoped enum for CSSPseudoElement type. r=dbaron
...
--HG--
extra : rebase_source : e53dd269e47fa97eb259ebd9295d012eacbdb612
2016-02-16 23:07:00 +01:00
Xidorn Quan
7f068cc774
Bug 743198 part 11 - Update locales string to the new spelling as well as unprefixed API. r=smaug
...
The main motivation of this patch is to fix the prefixed function name
used in one string. But updated string should have different a different
identifier, otherwise it might be ignored. Since we should eventually
prefer using word "fullscreen" over "full-screen", it is easier to just
change all of them together.
--HG--
extra : source : 1e9ab6a7503102b5562475784510581720bd1bad
2016-02-17 08:47:11 +08:00
Xidorn Quan
52ccd4a553
Bug 743198 part 4 - Rename LogFullScreenDenied to nsIDocument::DispatchFullscreenError, and reuse it in Element::RequestFullscreen. r=smaug
...
--HG--
extra : source : 3896197f9747aab588f6226efce4d67998619407
2016-02-17 08:47:11 +08:00
Xidorn Quan
61f1684757
Bug 743198 part 2 - Add unprefixed Fullscreen API to Document and Element. r=smaug
...
--HG--
extra : source : aaf4d12b511ba25ba93e6135cb849a3264435f7c
2016-02-17 08:47:11 +08:00
Ryo Motozawa
deefe8b274
Bug 1244586 part 3 - Remove unnecessary spaces in dom/base/Element.cpp. r=smaug
2016-02-15 09:34:47 +09:00
Ryo Motozawa
cc127029f8
Bug 1244586 part 1 - Add KeyframeEffect constructor in dom/webidl/KeyframeEffect.webidl. r=smaug,birtles
2016-02-15 09:34:47 +09: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
Boris Chiou
2f694d7e1e
Bug 1174575 - Part 2: Replace Element in KeyframeEffectReadOnly WebIDL. r=birtles, r=smaug
...
Use (Element or CSSPseudoElement)? as the first arguement of constructor and
the type of target.
2016-02-05 19:01:00 +01:00
Hiroyuki Ikezoe
c3619f4a48
Bug 1216842 - Part 5: Store ComputedTimingFunction in TimingParams. r=cam
...
The reason why we use Maybe<> to store the function is that CSS
animations/transitions do not have the function property.
2016-01-29 14:45:00 +01:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Brian Birtles
5358a5c81e
Bug 1096773 part 3 - Implement Animatable.animate(); r=bz
2016-01-29 12:37:52 +11:00
Chris Peterson
c824bef9fe
Bug 1240265 - Annotate intentional switch fallthroughs in dom/. r=mrbkap
...
dom/base/Element.cpp:2920:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/Element.cpp:2935:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsDocument.cpp:6595:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsDocument.cpp:7631:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsDocument.cpp:7922:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsGlobalWindow.cpp:7573:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsXMLContentSerializer.cpp:1393:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/cache/AutoUtils.cpp:487:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/html/HTMLInputElement.cpp:3808:15 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/html/HTMLInputElement.cpp:3836:15 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/storage/DOMStorageDBThread.cpp:224:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/workers/ScriptLoader.cpp:1994:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
--HG--
extra : rebase_source : ba9bd93b2c65e2db05b26e7b4c203dd7710516f3
2015-11-25 23:26:32 -08:00
Brian Birtles
47fefa9489
Bug 1226091 - Use MayHaveAnimations in Element::UnbindFromTree; r=smaug
2016-01-19 08:04:25 +09:00
Hiroyuki Ikezoe
df09492fe4
Bug 1212720 - Part 1: Implement Document.getAnimations(). r=heycam, r=smaug
2016-01-06 14:21:00 -05:00
Boris Zbarsky
4bbfb08573
Bug 1227458. Make setAttributeNode be an alias for setAttributeNodeNS and setNamedItem on the attribute map be an alias for setNamedItemNS. r=smaug
2015-12-04 09:51:04 -05:00
Olli Pettay
b8e5626be9
Bug 1228634 - Implement Element.getAttributeNames, r=peterv
...
--HG--
extra : rebase_source : e5b4b880618e7d01eb8a806fcfb26539b659ceaf
2015-12-02 23:04:53 +02:00
Franziskus Kiefer
6bf24410e1
Bug 1187357 - rename referrer attribute to referrerpolicy. r=hsivonen
2015-11-30 16:13:03 -08:00
Brian Birtles
fd320ec088
Bug 1225699 part 5 - Use EffectSet in Element::GetAnimations; r=heycam
2015-11-26 16:53:53 +09:00
Olli Pettay
f50a8c0983
Bug 1223445 - KeyframeEffectReadOnly objects end up keeping lots of other objects alive too long, r=birtles
...
--HG--
extra : rebase_source : df6828ce26e22e53b632f25952fd1741a693c36a
2015-11-16 19:44:55 +02: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
Xidorn Quan
932d0fcec1
Bug 1216087 - Unlock pointer whenever the element is unbound from the tree. r=smaug
...
--HG--
extra : rebase_source : c23d4bd5ac8c90fc2bfd4dac7c9df846a4378bce
extra : source : 5afd69a459ec2840e452f16cabcd8736a1d3921b
2015-10-20 10:02:03 +11: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
Brian Grinstead
d23fa8b95a
Bug 1034110 - Provide a way to observe mutations for ::before/::after pseudo elements;r=smaug
...
Adds a new chrome-only MutationObserverInit option called nativeAnonymousChildList
that will cause a mutation to fire when a native anonymous root is bound or unbound
2015-09-24 08:23:32 -07:00
Jeff Walden
4046fe1490
Bug 1179003 - Convert the infallible objectClassIs proxy hook into a fallible getBuiltinClass hook that indicates class type via outparam. r=efaust, r=bz on DOM bits, r=billm on IPC bits
...
--HG--
extra : rebase_source : 6ddc3727c411fdfced6338e5e383a10572575f0f
2015-08-28 21:55:40 -07:00
Boris Zbarsky
9fe6d747e1
Bug 1176313. Reland the changes to make Attr handling follow the spec again. This is a relanding of bug 1075702, effectively. r=smaug
2015-09-22 13:13:26 -04:00
Andrew McCreight
b4177a8a75
Bug 1205424 - Use swap instead of NS_RELEASE in UnbindFromTree. r=baku
2015-09-18 09:16:00 +02:00
Masayuki Nakano
25e0050d19
Bug 895274 part.102 Rename NS_MUTATION_ATTRMODIFIED to eLegacyAttrModified r=smaug
2015-09-07 23:55:51 +09:00
Masayuki Nakano
5c484163a4
Bug 895274 part.72 Rename NS_UI_ACTIVATE to eLegacyDOMActivate r=smaug
2015-09-02 15:08:01 +09: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
7645260328
Bug 895274 part.34 Rename NS_MOUSE_OUT to eMouseOut r=smaug
2015-08-29 08:58:32 +09:00
Masayuki Nakano
da4db5d296
Bug 895274 part.33 Rename NS_MOUSE_OVER to eMouseOver r=smaug
2015-08-29 08:58:32 +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
db00b74a82
Bug 895274 part.27 Rename NS_MOUSE_BUTTON_DOWN to eMouseDown r=smaug
2015-08-29 08:58:30 +09:00
Masayuki Nakano
d311a11cc1
Bug 895274 part.9 Rename NS_KEY_PRESS to eKeyPress r=smaug
2015-08-29 08:58:27 +09:00
Masayuki Nakano
24352f9317
Bug 930843 part.2 NS_UI_ACTIVATE event should be trusted event even if it's caused by an untrusted event r=smaug
2015-08-22 13:02:39 +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
e0c16e6fbc
Bug 1184842. Preparse class attribute values in Element::BeforeSetAttr. r=peterv
...
--HG--
extra : commitid : KVTSQfwhBot
extra : rebase_source : da0c24026074356610f77d81fa87861cd82f4c8f
2015-08-01 17:46:15 +12:00
Robert O'Callahan
a1da6d11df
Bug 1184842. Pass preparsed attribute values to nsNodeUtils::AttributeWillChange. r=peterv
...
--HG--
extra : commitid : DTJHf8BqlZS
extra : rebase_source : 36b264f69be235b9095bf95634bd263f6124a711
2015-07-22 15:53:35 +12: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
Robert O'Callahan
4339caede4
Bug 1184842. Add aOldValue parameter to nsNodeUtils::AttributeChanged. r=peterv
...
--HG--
extra : commitid : KqRNGrLrGkl
extra : rebase_source : 232a10b649b7c580a0ad3afa0a11a09cdb8b907d
2015-07-21 16:13:53 +12:00
Robert O'Callahan
27590d7e61
Bug 1184842. Make SetAttrAndNotify use the real old value instead of aOldValue when possible. r=bz
...
--HG--
extra : commitid : Kmg02dVtOG1
extra : rebase_source : 2cb6231765a2f914be9733a54698c665afcbb85c
2015-07-25 17:57:13 +12:00