John Dai
95546cdb0c
Bug 556743 - Implement the labels attribute. r=smaug
2017-06-15 20:04:00 -04:00
Olli Pettay
8943ab6bf7
Bug 1367552 - Use IdleDispatch for ContentUnbinder , r=ehsan
2017-05-24 18:06:32 -04:00
Kirk Steuber
9386a2f3e1
Bug 1359556 - Optimize cloneNode by preinitializing attribute and child arrays r=bz
...
Currently, attribute and child arrays (implemented in dom/base/nsAttrAndChildArray.h) start out empty. When cloning, the array ends up being resized multiple times in order to add the attributes and children that are being cloned from the original node. This would be quicker if the array was initialized to the correct size in the first place so that resizes are not necessary.
However, preallocating space for children is only necessary when performing a deep clone. Therefore, an additional parameter is being added to the Clone, CopyInnerTo, and CloneDocHelper methods to indicate whether preallocation of children should happen. Attributes are copied either way, so that part of the array is preallocated in both cases.
MozReview-Commit-ID: 3iVezeAKXnI
2017-04-20 12:57:48 -07:00
Emilio Cobos Álvarez
d951b3cb69
Bug 1331047: Return the correct flattened tree parent for ::before and ::after of the root element. r=bholley
...
MozReview-Commit-ID: LEuf9dyknh4
2017-04-27 17:09:27 +02:00
Boris Zbarsky
81120d1e38
Bug 1356498. Change nsDocument's unlink to unbind/remove its kids the same way other places (including FragmentOrElement's unlink) do. r=mystor
...
This prevents us from trying to re-set the base URI to the href of a <base> element that's being unlinked.
2017-04-18 20:56:45 -04:00
Xidorn Quan
3c8434fe47
Bug 1343964 part 4 - Have document and svg:use element own URLExtraData. r=bholley,bz
...
MozReview-Commit-ID: 8451L5qJvEx
2017-04-06 16:51:29 +10:00
Xidorn Quan
ae8df35ddf
Bug 1349059 - Replace XMLBaseAttributeWithStyledElement with XMLBaseAttributeForStyleAttr for a more accurate measurement. r=bz
...
MozReview-Commit-ID: DXILBM79r2Q
2017-03-21 11:32:19 +11:00
Manish Goregaokar
b937485251
Bug 1341086 - Part 3: stylo: Add thread-safe version of nsStyleUtil::IsSignificantChild(); r=emilio
...
MozReview-Commit-ID: 3l8cNwDHKFl
2017-03-16 14:10:22 -07:00
Edgar Chen
c0bad72da1
Bug 1347634 - GetCustomElementData and SetCustomElementData don't need to be virtual; r=smaug
2017-03-16 12:21:12 +08:00
Xidorn Quan
522b943280
Bug 1345343 - Add a pref to turn off effect of xml:base on style attribute. r=bz
...
MozReview-Commit-ID: EzNLxIW0OCv
2017-03-10 18:04:34 +11:00
Xidorn Quan
edc859cdf6
Bug 1344102 - Add a telemetry for xml:base on styled element. r=bz
...
MozReview-Commit-ID: 9vqlxDi5KB8
2017-03-03 14:32:11 +11:00
Tobias Schneider
18718b4035
Bug 1337936 - (intersection-observer) Revise lifetime management. r=smaug
...
MozReview-Commit-ID: 4pzm00igBLR
2017-02-22 10:45:13 -08:00
Sebastian Hengst
71f8399713
Backed out changeset 5f93d62d9229 (bug 1337936) for asserting in crashtest 869038.html. r=backout
2017-02-22 14:06:26 +01:00
Tobias Schneider
6c083f71b2
Bug 1337936 - (intersection-observer) Revise lifetime management. r=smaug
...
MozReview-Commit-ID: AvdDJaRELXm
2017-02-21 03:13:39 -08:00
Xidorn Quan
32f3b9001f
Bug 1340926 part 3 - Deprecate usage of xml:base. r=Ehsan,francois
...
MozReview-Commit-ID: EpuKLrCj0qc
2017-02-20 12:41:11 +11:00
Xidorn Quan
c1cd490029
Bug 1340061 part 2 - Remove explicit base URI facility. r=bz
...
MozReview-Commit-ID: JaUzecbdT2F
2017-02-16 18:35:52 +11:00
Xidorn Quan
64bbc88a8a
Bug 1340061 part 1 - Use source doc URI for SVG <use> anonymous content. r=bz
...
MozReview-Commit-ID: 2fkDfYh79b
2017-02-16 18:14:46 +11:00
Bill McCloskey
f79edeabc9
Bug 1339289 - Give names to a lot of common runnables (r=ehsan)
...
MozReview-Commit-ID: 5IdvK6kgoAW
2017-02-15 12:30:01 -08:00
Boris Zbarsky
04a6827ac6
Bug 1338725 part 2. Move GetClasses/DoGetClasses from nsIContent to Element. r=baku
2017-02-13 16:06:45 -05:00
Boris Zbarsky
bfd6b94cb0
Bug 1332322 part 3. Rename nsWrapperCache::IsBlackAndDoesNotNeedTracing to nsWrapperCache::HasKnownLiveWrapperAndDoesNotNeedTracing. r=mccr8
2017-01-24 20:39:37 -05:00
Boris Zbarsky
33b60b6ff4
Bug 1332322 part 2. Rename nsWrapperCache::IsBlack to nsWrapperCache::HasKnownLiveWrapper. r=mccr8
2017-01-24 20:38:58 -05:00
Boris Zbarsky
24f13892a5
Bug 1330536 part 7. Change nsINode::GetTextContent to take an OOMReporter, not an ErrorResult. r=smaug
2017-01-17 23:52:29 -05:00
Tobias Schneider
ccfb6d3e98
Bug 1326194 - Unlink observed targets as soon as DOMSlots gets unlinked. r=mrbkap
...
MozReview-Commit-ID: 4OnDvyc98S8
2017-01-06 13:47:06 -08:00
Olli Pettay
3898f7d882
Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
2017-01-03 21:47:55 +02:00
Tobias Schneider
1a0e6c07a2
Bug 1325103 - Clear mRegisteredIntersectionObservers when unlinking DOMSlots. r=mstange
2016-12-20 15:20:03 -08:00
Masayuki Nakano
e8e68353a3
Bug 564411 Move all methods/attributes of nsIEditorIMESupport to nsIEditor r=smaug
...
Doing QI from nsIEditor to nsIEditorIMESupport doesn't make sense because editor should always support all methods and attributes of nsIEditorIMESupport (it does NOT mean that all nsIEditor implementation need to support IME).
This patch moves all of them to nsIEditor for avoiding redundant QIs.
MozReview-Commit-ID: DzIKuGHG4iy
2016-12-20 21:47:31 +09:00
Bobby Holley
9ffff0d620
Bug 1294572 - Drop Servo data in SetXBLInsertionParent, and call StyleNewSubtree after all bindings have been removed and applied. r=heycam
...
MozReview-Commit-ID: Iv7uyq4uQye
2016-12-14 10:14:46 -08:00
Phil Ringnalda
91e318935a
Backed out changeset 62ad968c5c5d (bug 1294572) for mass crashes in mozilla::dom::FragmentOrElement::SetXBLInsertionParent
...
CLOSED TREE
MozReview-Commit-ID: Fw9sxk3lnML
2016-12-13 22:15:48 -08:00
Bobby Holley
004c395928
Bug 1294572 - Drop Servo data in SetXBLInsertionParent, and call StyleNewSubtree after all bindings have been removed and applied. r=heycam
...
MozReview-Commit-ID: Iv7uyq4uQye
2016-12-13 21:32:56 -08:00
Cameron McCormack
4d3500f51e
Bug 1321284 - Part 2: Add nsINode::GetFlattenedTreeParentNodeForStyle. r=bholley
...
MozReview-Commit-ID: AmDyeE21N8g
2016-12-01 14:55:09 +08:00
Bobby Holley
3775205e64
Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal. r=emilio
...
MozReview-Commit-ID: 7wH5XcILVmX
2016-11-25 10:06:39 -08:00
Stone Shih
b921261b1b
Bug 1305458 Part1: Rename nsIDOMEventTarget::PreHandleEvent to nsIDOMEventTarget::GetEventTargetParent. r=smaug
...
MozReview-Commit-ID: FM3vDUyLOCb
2016-10-21 10:11:07 +08:00
Xidorn Quan
a11f4224c9
Bug 1294299 part 2 - Use DeclarationBlock for SMIL override style. r=heycam
...
MozReview-Commit-ID: 573o5vmC81z
2016-11-03 14:41:02 +11:00
Ehsan Akhgari
4a54efddd1
Bug 1310385 - Remove support for UndoManager; r=smaug
...
There hasn't been any traction on this feature, and we keep
paying the maintenance and code size and memory usage penalty
of having this implementation.
We can revive this from VCS history in the future if we decide
to start working on it again. In the mean time, it's better
to remove it.
2016-10-17 10:06:11 -04:00
Stone Shih
4bd3a2177a
Bug 1292063 - Part 3: Add mComposedInNativeAnonymousContent to determine which events can cross the boundary of native anonymous content. r=smaug
2016-09-12 18:15:16 +08:00
Stone Shih
9f15c2f463
Bug 1292063 - Part 1: Add Event.composed. r=smaug
2016-08-31 11:16:11 +08:00
Nicholas Nethercote
8eaacb0d8b
Bug 1297300 - Add missing checks to GetSpec() calls in dom/base/. r=bz.
2016-09-08 14:17:58 +10:00
Phil Ringnalda
7b10b4dfd9
Bug 1298723 followup, make it actually compile, on a CLOSED TREE
2016-08-29 21:48:30 -07:00
Nicholas Nethercote
65904812bb
Bug 1298723 - Remove an unnecessary null check in ShouldClearPurple. r=mccr8.
2016-08-30 14:23:08 +10:00
Bobby Holley
046b455094
Bug 1292279 - Add an API on nsIContent to propagate the dirty bit up the tree, and use it in ServoRestyleManager. r=heycam
...
We don't need this API outside of its current consumers yet, but will probably
need it when we handle lazy frame construction.
2016-08-25 21:34:25 -07:00
Bobby Holley
e55613ed13
Bug 1296509 - Optimize GetFlattenedTreeParent. r=smaug
...
We need to call it on some hot paths in stylo, and this allows us to do
quick inline check before delegating to the slow path.
2016-08-19 14:43:53 -07:00
Bobby Holley
5e08b0a816
Bug 1296509 - Devirtualize and inline GetShadowRoot. r=smaug
2016-08-19 14:43:51 -07:00
Igor
9c81c3c1ee
Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj
2016-08-14 23:43:21 -07:00
Igor
972b8460e2
Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj
2016-08-14 23:44:00 -07:00
Nicholas Nethercote
1f65390cc9
Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
...
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.
As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +10:00
Olli Pettay
efe21f51ae
Bug 741760 - svg-documents-as-images end up to CC graph, r=mccr8, dholbert
2016-06-18 22:50:45 +03:00
Sebastian Hengst
715969ec13
Backed out changeset 44256084ae2e (bug 741760) for reftest leaks. r=backout on a CLOSED TREE
2016-06-16 15:56:55 +02:00
Olli Pettay
7b9f4013b1
Bug 741760 - svg-documents-as-images end up to CC graph, r=mccr8, dholbert
2016-06-16 11:32:58 +01:00
Kyle Huey
a9cf047227
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Masayuki Nakano
252086d000
Bug 1259656 part.7 Rename WidgetEvent::originalTarget to WidgetEvent::mOriginalTarget r=smaug
...
MozReview-Commit-ID: G1WVCWkS0Lt
2016-04-19 01:33:23 +09:00