Emilio Cobos Álvarez
f654e10648
Bug 1453206: Fix IsInAnonymousSubtree to account for XBL in Shadow DOM. r=smaug
...
MozReview-Commit-ID: B2aYury8K7i
2018-04-14 11:59:06 +02:00
Andreea Pavel
3c8dab74ff
Backed out 2 changesets (bug 1453206) for crashtest failures on muliple files e.g. tests/reftest/tests/layout/base/crashtests/416107.xhtml on a CLOSED TREE
...
Backed out changeset 1844a120acda (bug 1453206)
Backed out changeset b12b7c5b8178 (bug 1453206)
2018-04-13 23:06:55 +03:00
Emilio Cobos Álvarez
f2979ee963
Bug 1453206: Fix IsInAnonymousSubtree to account for XBL in Shadow DOM. r=smaug
...
MozReview-Commit-ID: B2aYury8K7i
2018-04-13 21:05:48 +02:00
Andreea Pavel
5d93e58200
Merge mozilla-inbound to mozilla-central. a=merge
2018-04-11 17:36:09 +03:00
Ciure Andrei
40a9e70f9f
Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE
2018-04-11 12:00:35 +03:00
Ciure Andrei
ea89df62df
Backed out 8 changesets (bug 1451169) on request from njn a=backout
...
Backed out changeset b92f856e15a8 (bug 1451169)
Backed out changeset 348e825756fa (bug 1451169)
Backed out changeset 624d82428726 (bug 1451169)
Backed out changeset 4d51610ca08e (bug 1451169)
Backed out changeset bb76a9589717 (bug 1451169)
Backed out changeset c145fbd03947 (bug 1451169)
Backed out changeset 6d36289e0f54 (bug 1451169)
Backed out changeset 914fb7cd9fc3 (bug 1451169)
2018-04-11 11:22:05 +03:00
Nika Layzell
cccd4523db
Bug 1438026 - Part 3: Replace nsPresState with the new PresState type, r=baku
2018-04-10 17:49:44 -04:00
Boris Zbarsky
5b75c1416d
Bug 1449631 part 8. Remove nsIDOMEventTarget::GetEventTargetParent. r=smaug
...
MozReview-Commit-ID: 5wQ2LYrjUxf
2018-04-05 13:42:41 -04:00
Nicholas Nethercote
7ccd4b9401
Bug 1451169 - Use nsStaticAtom* instead of nsStaticAtom** in Element.h. r=baku
...
And then fix up everything else that needs to change as well.
MozReview-Commit-ID: GDMfERqdQAc
2018-04-03 13:21:06 +10:00
Emilio Cobos Álvarez
e2d66e585e
Bug 1452987: Simplify ImageValue. r=heycam
...
MozReview-Commit-ID: 5LRaaEPSSdY
2018-04-10 16:54:57 +02:00
Xidorn Quan
ea8b8b1e74
Bug 1449400 part 5 - Remove StyleSetHandle. r=emilio
...
This patch basically does:
* remove StyleSetHandle and its corresponding files
* revisit #includes of related header files and change correspondingly
* change nsIPresShell::mStyleSet to be UniquePtr<ServoStyleSet>
* change the creating path of ServoStyleSet to pass UniquePtr
* change other mentions of StyleSetHandle to ServoStyleSet*
* remove AsServo() calls on ServoStyleSet
Some unfortunate bits:
* some methods of (Servo)StyleSet only accepts ServoStyleSheet while
many places call into the methods with StyleSheet, so there are many
->AsServo() added to sheets
MozReview-Commit-ID: K4zYnuhOurA
2018-03-29 22:15:46 +11:00
Xidorn Quan
446685f672
Bug 1449798 - Remove GenericSpecifiedValues::ShouldComputeStyleStruct and mSIDs. r=emilio
...
This was useful because nsRuleData in the old style system may not hold
all the data, but the only subclass ServoSpecifiedValues is always able
to hold any data, and thus passes NS_STYLE_INHERIT_MASK to mSIDS. Given
this, this method and mSIDs seems to be useless and can be removed.
MozReview-Commit-ID: 4vWcV4DRS2i
2018-03-29 12:39:07 +11:00
Jonathan Watt
a47d409b48
Bug 1449566 - Remove GenericSpecifiedValues::ShouldIgnoreColors. r=emilio
2018-03-23 16:40:12 +00:00
Jonathan Watt
44d37e68d5
Bug 1449321 - Remove the IsServo and IsGecko methods from the style system code. r=emilio
2018-03-23 16:01:34 +00:00
Boris Zbarsky
152cd3ba6e
Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor
...
MozReview-Commit-ID: 202nkbmkwfR
2018-03-21 17:39:04 -04:00
Emilio Cobos Álvarez
b1a35fbef7
Bug 1447358: Unifdef the old style system code. r=jwatt
...
Summary:
This has been automatically generated using:
http://dotat.at/prog/unifdef/
And:
find $OBJDIR -type f -name '*.h' |
while read FILE; do
echo "$FILE"
unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done
find $OBJDIR -type f -name '*.cpp' |
while read FILE; do
echo "$FILE"
unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done
MozReview-Commit-ID: I4NdKqbMXzJ
Reviewers: jwatt
Bug #: 1447358
Differential Revision: https://phabricator.services.mozilla.com/D779
2018-03-21 10:20:34 +01:00
Boris Zbarsky
72b3558850
Bug 1446711 part 7. Switch the nsIDOMMouseEvent::MOZ_SOURCE_* constants over to MouseEventBinding. r=qdot
...
We can't include MouseEventBinding.h in MouseEvents.h because that produces
this include loop:
MouseEventBinding.h -> UIEventBinding.h ->
nsGlobalWindow.h -> nsGlobalWindowInner.h -> nsRefreshDriver.h ->
AnimationEventDispatcher.h -> AnimationComparator.h -> Animation.h ->
EffectCompositor.h -> PseudoElementHashEntry.h -> Element.h ->
PointerEventHandler.h -> MouseEvents.h -> MouseEventBinding.h
MozReview-Commit-ID: 6FNksGil7uD
2018-03-20 00:16:06 -04:00
Adrian Wielgosik
975ac50d53
Bug 1418077 - Remove nsIDOMHTMLFormElement. r=bz
...
MozReview-Commit-ID: 9eQxvfIMB22
2018-03-14 21:42:25 +01:00
Olli Pettay
fe9afade80
Bug 1066965, make contentEditable and spellchecking to work in ShadowDOM, r=mrbkap
2018-03-06 09:34:40 +09:00
Emilio Cobos Álvarez
2f2accaf59
Bug 1442080: Make IsOrHasAncestorWithDisplayNone faster in the Servo case. r=xidorn
...
The code there wasn't flushing anyway, so kept doing that...
MozReview-Commit-ID: CwGiwOs9xaI
2018-03-01 02:03:24 +01:00
Adrian Wielgosik
a9ff753f99
Bug 659610 - Remove nsGenericHTMLElement::SetAttrHelper and related helper macros. r=qdot
...
The only remaining instance of NS_IMPL_BOOL_ATTR macro was expanded by hand.
MozReview-Commit-ID: DQ8fGGNTl3y
2018-02-24 20:20:23 +01:00
Emilio Cobos Álvarez
954d76f2db
Bug 1432490: Make nsComputedDOMStyle::GetStyleContext / GetStyleContextNoFlush not take a presShell. r=bz
...
Everyone calls them with the shell of the current composed document, and this
allows the multi-presShell stuff to just be in UpdateCurrentStyleSources /
DoGetStyleContextNoFlush.
The only reason we need to use OwnerDoc()->GetShell() instead of the composed
doc in GetStyleContext / GetStyleContextNoFlush is Element::GetBindingURL, which
does expect to get the binding URL for stuff outside of the composed doc (and
changing that gave me a useless browser).
That's technically a behavior change on the cases that used to pass nullptr, but
I think all callers are fine with that. I could also just add a special function
for that particular case, it may be worth it.
MozReview-Commit-ID: 2XlnkgdgDCK
2018-02-25 02:23:59 +01:00
Emilio Cobos Álvarez
24dd511927
Bug 1439155: Be consistent about what does readonly apply to. r=smaug
...
MozReview-Commit-ID: 4NiDe7pUzGa
2018-02-22 08:07:55 +01:00
Hiroyuki Ikezoe
b1da8534e8
Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
...
It would be convenient to get nsPresContext from nsIDocument.
MozReview-Commit-ID: Ei6V3UE8XGr
2018-02-21 07:00:10 +09:00
Emilio Cobos Álvarez
3d1dcd443d
Bug 1405087: Make nsGenericHTMLElement::IsDisabled not virtual. r=bz
...
The state bit is never added to object / output anyway (see the CanBeDisabled
check).
MozReview-Commit-ID: DBPpaHA2tME
2018-02-15 21:49:00 +01:00
Emilio Cobos Álvarez
d6211e6535
Bug 1405087: Don't use -moz-user-input: disabled to decide event handling stuff. r=smaug
...
We only set it on disabled form controls anyway, so use the content state
directly.
MozReview-Commit-ID: 7jJ75dvszyC
2018-02-15 21:48:58 +01:00
decltype
402ab7cd6d
Bug 712130 - Defer autofocus until after frame construction. r=bz
...
The autofocus attribute on form elements forces layout in CheckIfFocusable.
To avoid unpleasant FOUCs, defer autofocus processing until frames are
constructed in PresShell::Initialize.
Resolve the race between nsAutoFocusEvent running and page load by checking the
readystate at time of event posting. Skip autofocus if the element moved to a
different window in the meantime.
MozReview-Commit-ID: 90jiJYJWmRg
2018-01-08 22:35:00 +01:00
Cameron McCormack
34288f7f48
Bug 1430014 - Part 5: Stop building old style system classes when MOZ_OLD_STYLE is not defined. r=xidorn
...
MozReview-Commit-ID: CIHyPdF7Exl
2018-02-01 15:04:04 +11:00
Gurzau Raul
c405d45d8d
Merge inbound to mozilla-central. a=merge
2018-01-30 12:01:49 +02:00
Boris Zbarsky
41c46ec098
Bug 1418085 part 6. Remove nsIDOMHTMLElement. r=mystor
...
MozReview-Commit-ID: 5QUyFeAQYZQ
2018-01-30 00:25:36 -05:00
Hiroyuki Ikezoe
a177b1a3e2
Bug 1433846 - Drop nsComputedDOMStyle::GetPresShellForContent(), use nsContentUtils::GetPresShellForContent(). r=xidorn
...
MozReview-Commit-ID: JcpEpqP32Yi
2018-01-29 14:19:25 +09:00
Boris Zbarsky
a86373f271
Bug 1418076 part 11. Eliminate the nsIDOMHTMLDocument interface. r=mystor
...
MozReview-Commit-ID: 4lEcUeenbg3
2018-01-26 01:03:25 -05:00
Boris Zbarsky
9dd08d91e3
Bug 1418076 part 9. Eliminate remaining uses of nsIDOMHTMLDocument. r=mystor
...
MozReview-Commit-ID: DqjJPKKRYOx
2018-01-26 01:01:25 -05:00
Boris Zbarsky
117877dd3e
Bug 1276438 part 5. Get rid of IsCurrentBodyElement. r=mystor
...
MozReview-Commit-ID: JMBFmVoMiMS
2018-01-26 00:53:35 -05:00
Boris Zbarsky
a04420f06a
Bug 1432186 part 19. Remove the nsIDOMNode::*_NODE constants. r=mccr8
...
MozReview-Commit-ID: KvKjeKIOB9K
2018-01-29 23:10:53 -05:00
Andrea Marchesini
8d41475807
Bug 1430997 - Rename nsINode::IndexOf to nsINode::ComputeIndexOf, r=catalinb
2018-01-23 14:30:18 +01:00
Boris Zbarsky
f49a0fc3b7
Bug 1431964 part 10. Remove nsIDOMAttr. r=mccr8
...
MozReview-Commit-ID: xj4QeXBF9V
2018-01-21 12:07:31 -05:00
Andrea Marchesini
6d68b56179
Bug 1425440 - Replace RemoveChildAt_Deprecated with RemoveChildNode in nsGenericHTMLElement, r=catalinb
2018-01-16 14:17:11 +01:00
Andrea Marchesini
da198e698b
Bug 1425440 - Get rid of GetChildAt_Deprecated in nsRange, r=catalinb
2018-01-12 15:33:13 +01:00
Emilio Cobos Álvarez
3fb51af7bf
Bug 1428339: Make attribute mapping work without a pres context. r=heycam
...
MozReview-Commit-ID: FisYWoArX0N
2018-01-05 13:47:04 +01:00
Andrea Marchesini
082fc2f0f2
Bug 1425321 - Renaming nsINode::RemoveChildAt to RemoveChildAt_Deprecated, r=catalinb
2018-01-03 14:01:03 +01:00
Emilio Cobos Álvarez
8a71d3197b
Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
...
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-25 17:50:10 +01:00
Emilio Cobos Álvarez
ecd202d763
Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me
2017-12-25 12:55:45 +01:00
Emilio Cobos Álvarez
b3956b6171
Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
...
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-07 19:13:50 +01:00
Kris Maglione
48e53b3df5
Bug 1415352: Part 1a - Pass subject principal through to ParseAttribute. r=bz
...
This is necessary in order to parse style attributes using the subject
principal of the caller, rather than defaulting to the page principal.
MozReview-Commit-ID: GIshajQ28la
2017-11-01 20:35:52 -07:00
Nika Layzell
d8c117bc28
Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
...
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.
MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Sebastian Hengst
2bab7a2d78
Backed out changeset 4427e7f72c8e (bug 1414233) for crashing in mochitest dom/base/test/test_bug1375050.html. r=backout on a CLOSED TREE
2017-11-06 23:38:00 +02:00
Catalin Badea
8b82ba4f1a
Bug 1414233 - Remove nsINode::GetChildAt from nsRange::GetInnerTextNoFlush. r=masayuki
2017-11-03 04:35:00 -04:00
Emilio Cobos Álvarez
cf5ec03009
Bug 1411612: Kill nsINode::eCONTENT. r=bz
...
MozReview-Commit-ID: ESlOqlwhcHI
2017-10-25 17:19:11 +02:00
Hiroyuki Ikezoe
f50a03dd72
Bug 1407463 - Drop unused pseudo atom argument from ResolveStyleLazily and ResolveStyleLazilyInternal. r=heycam
...
MozReview-Commit-ID: Lmjqbr7QsTU
2017-10-11 10:00:28 +09:00