Commit Graph

212 Commits

Author SHA1 Message Date
Peter Van der Beken
4b7e268d87 Bug 1078744 - Replace SetIsDOMBinding with SetIsNonDOMBinding, remove nsWrapperCache::SetIsDOMBinding. r=bz.
--HG--
extra : rebase_source : 89c476cd9436530b2df5acc903909e34188417a0
2014-10-07 11:44:49 +02:00
William Chen
efc007e0f2 Bug 1076784 - Don't remove binding when shadow root host is removed from tree. r=smaug 2014-10-03 18:32:05 -07:00
Olli Pettay
11f3c495d9 Bug 1074738 - GetCurrentDoc fixes in content/base, r=wchen
--HG--
extra : rebase_source : 5bd87b39f04e5cef229e8e15bc2bf56aef9c5995
2014-10-02 21:45:44 +03:00
Brian Birtles
9af240110b Bug 1074054 part 2 - Make Element::GetAnimationPlayers return in-effect animations too; r=dbaron
This patch makes Element::GetAnimationPlayers return not only current animations
but also animations that have finished but are filling forwards. This brings the
implementation into line with recent changes to the Web Animations spec and
allows querying all the animations that are currently affecting an element or
which are scheduled to do so in the future.
2014-10-02 15:14:14 +09:00
Brian Birtles
6de21c8b65 Bug 1046055 part 2 - Rename AnimationPlayer::IsCurrent to HasCurrentSource; r=dbaron
It's not the player that's "current" (a Web Animations term for an animation
that hasn't yet finished), but its source content, if any. This patch renames
the method on AnimationPlayer accordingly.

At the same time this patch moves the method to the header file since it's
quite simple and could possibly benefit from inlining.
2014-10-02 15:14:13 +09:00
Brian Birtles
4f4e448913 Bug 1073396 - Make Element.getAnimationPlayers flush style; r=dbaron 2014-10-02 15:14:13 +09:00
William Chen
67ba5df791 Bug 1062578 - Call BindToTree/UnbindFromTree on shadow root children when host is bound/unbound from tree. r=smaug 2014-09-26 15:07:40 -07:00
Carsten "Tomcat" Book
9fbd35657c Backed out changeset 7d7ccb243db5 (bug 1062578) for breaking webplatform 4 tests 2014-09-26 08:14:23 +02:00
William Chen
4e2fd38b32 Bug 1062578 - Call BindToTree/UnbindFromTree on shadow root children when host is bound/unbound from tree. r=smaug 2014-09-25 21:53:20 -07:00
Giovanni Sferro
a00eae3420 Bug 1055533 - Implement Element.closest(). r=bz 2014-09-13 15:08:00 +02:00
L. David Baron
7fc557d455 Bug 977991 patch 6 - Use the faster eRestyle_StyleAttribute path for style attribute changes. r=birtles 2014-09-13 06:17:37 -07:00
Tom Schuster
e9bebd5db5 Bug 1065574 - Remove UserDataHandler. r=smaug f=bz 2014-09-11 12:22:30 +02:00
Boris Zbarsky
b5cf8ec94f Bug 880997 part 3. Change crossOrigin reflection to allow null values and be a limited enumerated attribute. r=smaug 2014-09-05 22:42:33 -04:00
Boris Zbarsky
63d80d9351 Bug 880997 part 1. Move GetEnumAttr up to Element so I can use it in SVG code. r=smag 2014-09-05 22:42:32 -04:00
Gabor Krizsanits
4a848bb681 Bug 1056841 - Always nulling mContainingShadow in Element::UnbindFromTree. r=wchen 2014-08-28 13:53:21 +02:00
Kearwood (Kip) Gilbert
152d087c78 Bug 1022818 - Part 2: Implement Smooth Scrolling. r=bz
- Updated ScrollTo method in nsGlobalWindow to accept a
  mozilla::dom::ScrollOptions parameter to select between the instant
  and smooth MSD motion.
- Updated WebIDL binding boilerplate scrolling functions in nsGlobalWindow
  to pass the correct value of mozilla::dom::ScrollBehavior to the
  implementation and functions, activating smooth scrolling.
- These functions will need to be updated again to support the scroll-behavior
  CSS property in Bug 1010538.

--HG--
extra : rebase_source : 7c9ce94d09fed5c4aea63442d683876c0a9a2e50
2014-08-05 15:01:34 -07:00
Kearwood (Kip) Gilbert
a38d0e6bab Bug 1022818 - Part 1: Update webidl interfaces. r=bz
- Extended the Element and Window webidl interfaces as described in the
  CSSOM-View smooth-scrolling specification.
- The Element.scrollTop and Element.scrollLeft changes have been omitted
  until either WebIDL is extended to allow properties to have union datatypes
  that contain dictionaries or the CSSOM-View smooth-scroll specification
  is upddated.  This will not prevent the other interface changes from being
  useful.
- Implemented wrapper functions for the nsGlobalWindow to connect to the new
  WebIDL bindings.  The ScrollOptions parameters are ignored in this patch,
  and used in Part 3 of this patch series.

--HG--
extra : rebase_source : db617cb63780e039ad69e4ed100c13042c676949
2014-08-05 15:01:32 -07:00
Olli Pettay
ceb34d2d4a Bug 314095 - Eliminate nsIContent::GetDocument, r=jst
--HG--
extra : rebase_source : dd8f690940825b298a478b65b68a57418a9962ff
2014-08-22 23:11:27 +03:00
Aryeh Gregor
2fe2eaeebb Bug 1052427 - Make nsContentUtils::ASCIIToLower/ASCIIToUpper infallible; r=smaug 2014-08-13 14:53:32 +03:00
Brian Birtles
ca53da1e82 Bug 1040543 part 6 - Rename mAnimations to mPlayers and likewise for similar local variables; r=bz
Now that we have both AnimationPlayer and Animation in use we need to clarify
which object we are referring to. This patch renames a number of member and
local variables to better reflect whether they point to an AnimationPlayer or an
Animation.

This patch is mostly renaming only with one exception. Since we are touching
a number of local variables used in loops (for looping over the array of
animation players) we take the opportunity to replace a number of instances of
uint32_t with size_t since that is the preferred type for array indices now.
2014-08-10 17:06:48 +10:00
Brian Birtles
01a7d9668f Bug 1040543 part 2 - Rename ElementAnimationCollection to AnimationPlayerCollection; r=bz 2014-08-10 17:06:46 +10:00
Brian Birtles
fec7182eb1 Bug 1040543 part 1 - Move/Rename ElementAnimations to dom::AnimationPlayer; r=bz
This patch renames mozilla::ElementAnimations to mozilla::dom::AnimationPlayer
and moves the code from layout/style/AnimationCommon.cpp to
dom/animation/AnimationPlayer.cpp.

It also moves various helper classes needed by AnimationPlayer to
AnimationPlayer.cpp and moves them from the mozilla::css namespace to the
mozilla namespace.

Beyond that, there are no functional changes contained in this patch.

The renaming of various members and variables that used to refer to
ElementAnimation objects but now refer to AnimationPlayer objects--to give them
a more appropriate name--is performed in a subsequent patch.

--HG--
rename : layout/style/AnimationCommon.cpp => dom/animation/AnimationPlayer.cpp
rename : layout/style/AnimationCommon.h => dom/animation/AnimationPlayer.h
2014-08-10 17:06:44 +10:00
Olli Pettay
70bc61a2af Bug 1026164, improve focus handling in shadow dom, r=wchen
--HG--
extra : rebase_source : 026b9ee49cdce82a703700593d7a1f0e5d27969f
2014-08-06 02:23:02 +03:00
Masayuki Nakano
a5ff074c2f Bug 1046101 part.5 Rename NS_KEY_EVENT to eKeyboardEventClass r=smaug 2014-08-04 14:28:48 +09:00
Masayuki Nakano
2c24a0ea29 Bug 1046101 part.1 Rename nsEventStructType to mozilla::EventClassID r=smaug 2014-08-04 14:28:46 +09:00
Boris Zbarsky
0023ed4d23 Bug 886308. Implement Element.matches. r=heycam 2014-08-01 23:37:09 -04:00
Olli Pettay
002765c2d0 Bug 1025933, support clientWidth, clientHeight, getBoundingClientRects etc for elements in shadow DOM, r=bz 2014-07-29 21:42:31 +03:00
Brian Birtles
13ee79ab71 Bug 1036287 part 5 - Drop aTime param from IsRunning(At) and IsCurrent(At), since they now use the current timeline time; r=dholbert 2014-07-16 09:02:33 +09:00
Brian Birtles
7976ecebaf Bug 1032573 part 5 - Add GetAnimationPlayers to Element; r=bz
This patch adds the WebIDL definitions and implementation of
getAnimationPlayers on Element.

It does not include the full definition of AnimationPlayer but only readonly
versions of the currentTime and startTime attributes since these are easy
to implement and enable identifying the different animations that are returned
for the sake of testing.

Web Animations defines getAnimationPlayers as only returning the animations that
are either running or will run in the future (known as "current" animations).
This will likely change since it seems desirable to be able query animations
that have finished but are applying a forwards fill. For now, however, this
patch makes us only return animations that have not finished.

This patch also removes an assertion in ElementAnimation::GetLocalTime that
would fail if called on a finished transition. This assertion is no longer
necessary since an earlier patch in this series removed the overloading of
the animation start time that meant calling this on a finished transition
was unsafe. Furthermore, this assertion, if it were not removed, would fail
if script holds onto a transition and queries its start time after it
completed.
2014-07-16 09:02:31 +09:00
Olli Pettay
d820dcea91 Bug 1026047, add IsInComposedDoc()/GetComposedDoc() and IsInUncomposedDoc()/GetUncomposedDoc() to make it more clear whether Shadow DOM is being handled, r=bz
--HG--
extra : rebase_source : 614cd9090b00039363e8a52f3060585f4a505b99
2014-07-03 20:02:07 +03:00
Steve Fink
59a0fb6bc4 Bug 1022773 - Return value rooting for content/, r=smaug
--HG--
extra : rebase_source : 02c70ac4a9830f686d03e1f7503a8fa6cb50bed3
2014-06-25 15:35:36 -07:00
Daniel Holbert
29f9a0dc57 Bug 1024328: Remove unnecessary #includes of nsFrameManager.h. r=jwatt 2014-06-19 22:07:46 -04:00
Kyle Huey
c46bed2510 Bug 737976: Remove nsINodeInfo. r=smaug
--HG--
rename : content/base/src/nsNodeInfo.cpp => dom/base/NodeInfo.cpp
rename : content/base/public/nsINodeInfo.h => dom/base/NodeInfo.h
rename : content/base/src/nsNodeInfo.h => dom/base/NodeInfoInlines.h
2014-06-19 19:01:40 -07:00
William Chen
6d093181ec Bug 1022741 - Use CrossShadowCurrentDoc() in Element::UpdateState. r=smaug 2014-06-10 14:41:31 -07:00
Cameron McCormack
4e1ee63233 Bug 1017798 - Part 2: Set content bits on elements in shadow trees indicating whether they are in a style scope from the light tree. r=bzbarsky 2014-06-06 15:23:40 +10:00
William Chen
0eff3949f3 Bug 992521 - Part 2: Make styles work when not in document, but contained by a ShadowRoot with a host in document. r=smaug 2014-06-07 01:42:54 -07:00
William Chen
5fa3c00da3 Bug 992521 - Part 1: Remove "in document" flag on ShadowRoot and its descendants. r=smaug 2014-06-07 01:42:53 -07:00
Ms2ger
cc2d84098c Bug 1017762 - Remove the language argument to EventListenerManager::SetEventHandler; r=smaug 2014-06-06 10:06:26 +02:00
Ms2ger
8775440177 Bug 741295 - Treat 'id' and 'class' as global attributes for all elements; r=bz 2014-05-30 09:36:53 +02:00
Birunthan Mohanathas
65f503e85a Bug 869836 - Part 11: Use Append('c') instead of AppendLiteral("c"). r=ehsan
--HG--
extra : rebase_source : 08bcbfd804f1adcab40c7d59fa56deda1f6e0829
2014-05-26 21:54:58 +03:00
Mats Palmgren
29e4d7d512 Bug 508665 - part 1, Change the signature of SetParent/GetParent from nsIFrame* to nsContainerFrame*. r=roc 2014-05-24 22:20:39 +00:00
William Chen
5c4b43981d Bug 999271 - Implement web components getDestinationInsertionPoints() extension to Element interface. r=mrbkap 2014-05-21 23:11:53 -07:00
Olli Pettay
e5fc05777e Bug 1009160, don't leak via SVGIFrame.sandbox, r=bz 2014-05-15 12:05:42 +03:00
Ryo HIKOSAKA
0fd5238936 Bug 949435, Part 1 - Move nsGenericHTMLElement::GetTokenList to Element. r=bz 2014-02-18 10:12:54 +09:00
Aryeh Gregor
eb84f75c4c Bug 805668 - Don't set editable flag on anonymous content; r=ehsan 2013-04-07 16:30:25 +03:00
Boris Zbarsky
fdbb455d4f Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Bobby Holley
858319911d Bug 986730 - Rename NODE_IS_IN_ANONYMOUS_SUBTREE to NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE, since that's what it is. r=smaug 2014-04-06 12:32:38 -07:00
Masayuki Nakano
5c4524957a Bug 989212 Rename nsEventStates to mozilla::EventStates r=smaug
--HG--
rename : dom/events/nsEventStates.h => dom/events/EventStates.h
2014-04-03 13:18:36 +09:00
Masayuki Nakano
a63f35fff1 Bug 984271 part.2 Rename nsEventStateManager to mozilla::EventStateManager r=smaug
--HG--
rename : dom/events/nsEventStateManager.cpp => dom/events/EventStateManager.cpp
rename : dom/events/nsEventStateManager.h => dom/events/EventStateManager.h
2014-04-01 13:09:23 +09:00
Ehsan Akhgari
345b35a6e8 Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg 2014-03-27 16:38:33 -04:00