Commit Graph

73 Commits

Author SHA1 Message Date
Kerem Kat
2ee5a8361c Bug 37468 - Implement ServoStyleRule::SetSelectorText method for setting CSS rule selectorText from JS. r=xidorn 2018-04-14 19:05:44 +03:00
Coroiu Cristina
125647bc2c Backed out 2 changesets (bug 37468) for linting failure at builds/worker/checkouts/gecko/tools/lint/wpt.yml
Backed out changeset 5e7a1db60298 (bug 37468)
Backed out changeset bd0a3fdb037c (bug 37468)
2018-04-15 03:23:36 +03:00
Kerem Kat
eba253e585 Bug 37468 - Implement ServoStyleRule::SetSelectorText method for setting CSS rule selectorText from JS. r=xidorn 2018-04-14 19:05:44 +03:00
Xidorn Quan
95cf2af905 Bug 1451216 - Remove Rule::Clone method. r=emilio
MozReview-Commit-ID: 6Re8DENmdUT
2018-04-05 18:18:17 +10: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
Xidorn Quan
800bb29076 Bug 1449390 - Remove Rule::GetType() and its corresponding constants. r=emilio
MozReview-Commit-ID: 5r64ATHUAux
2018-03-28 14:22:01 +11:00
Xidorn Quan
d3ef7674f0 Bug 1449089 part 5 - Remove nsCSSPseudoClasses.{h,cpp} and nsCSSPseudoClassList.h. r=emilio
MozReview-Commit-ID: 7KYFiQ5vUxg
2018-03-28 09:41:04 +11:00
Daniel Holbert
c243a70ecb Bug 1437723: Preemptively fix unified bustage in layout/style by adding missing includes/namespaces/forward-decls. r=emilio
MozReview-Commit-ID: 8ljZkAqgT4N
2018-02-12 16:53:44 -08:00
Boris Zbarsky
c57e2f672e Bug 1434390. Mostly get rid of GetCssTextImpl. r=emilio
MozReview-Commit-ID: 5fejArxQckq
2018-01-30 16:30:08 -05:00
Boris Zbarsky
dc0c056826 Bug 1428610 part 1. Devirtualize nsICSSDeclaration::GetDocGroup. r=emilio
MozReview-Commit-ID: 7OGRkYTjTSQ
2018-01-30 14:48:26 -05:00
Brad Werth
28e83157dd Bug 1415940 Part 4: Generalize a StyleSheet cast in ServoStyleRuleDeclaration::SetCSSDeclaration to prevent a NULL dereference from AsServo(). r=bz
MozReview-Commit-ID: GXHb3gLOEkt
2018-01-12 14:54:48 -08:00
Cameron McCormack
cdd75371da Bug 1427512 - Part 17: Remove nsICSSStyleRuleDOMWrapper. r=xidorn
This interface is unused since bug 1427419.

MozReview-Commit-ID: HJH628fhfK6
2018-01-11 16:17:56 +08:00
Cameron McCormack
90e1256cb0 Bug 1427512 - Part 16: Remove nsIDOMCSSRule. r=xidorn,jryans,bz
MozReview-Commit-ID: GvVdW9w5Cc4
2018-01-11 16:17:56 +08:00
Cameron McCormack
b46da1f018 Bug 1427512 - Part 15: Remove nsIDOMCSSStyleRule. r=xidorn,jryans
MozReview-Commit-ID: 7riPO9da5KL
2018-01-11 16:17:56 +08:00
Edgar Chen
d9444e4dd3 Bug 1422197 - Add fast path to get DocGroup in binding code for [CEReactions]; r=smaug
MozReview-Commit-ID: HgbFo9ddr0o
2017-11-27 16:10:27 +08:00
Emilio Cobos Álvarez
ae4565f9fe Bug 1420762: Make StyleSheets notify directly to their StyleSets. r=heycam
This also makes the rule map not process all the stylesheets for the document,
which would be a mess with shadow DOM.

Far from the final, ideal state, but hey, progress.

MozReview-Commit-ID: 7TrifME9VZ
2017-12-01 08:46:39 +01:00
Brindusan Cristian
267e0964fa Backed out 2 changesets (bug 1420762) for merge conflicts r=merge a=merge
Backed out changeset ba350c82d823 (bug 1420762)
Backed out changeset 00287b88254b (bug 1420762)
2017-12-01 00:20:10 +02:00
Emilio Cobos Álvarez
25703a1dfa Bug 1420762: Make StyleSheets notify directly to their StyleSets. r=heycam
This also makes the rule map not process all the stylesheets for the document,
which would be a mess with shadow DOM.

Far from the final, ideal state, but hey, progress.

MozReview-Commit-ID: 7TrifME9VZ
2017-11-30 15:42:45 +01:00
Xidorn Quan
bf834867de Bug 1412145 - Drop more backpointers of CSSOM objects in dtor and unlink. r=bz
MozReview-Commit-ID: Ftg3WMBBNlO
2017-11-28 17:06:51 -06:00
Tiberius Oros
662da4c6c2 Backed out changeset 5043401c5447 (bug 1412145)for failing layout/style/test/test_any_dynamic.html r=backout on a CLOSED TREE 2017-11-28 21:50:29 +02:00
Xidorn Quan
5d76b68ffd Bug 1412145 - Drop more backpointers of CSSOM objects in dtor and unlink. r=bz
MozReview-Commit-ID: Ftg3WMBBNlO
2017-10-24 12:20:50 +11:00
Kris Maglione
913a54b7fe Bug 1415352: Part 1d - Use correct subject principal in CSS environment when modifying attr declarations. r=bz
MozReview-Commit-ID: AnurVwl65fX
2017-11-05 13:23:49 -08:00
Cameron McCormack
60f6a2cb30 Bug 1408311 - Part 2: Add GetDeclarationBlock method to BindingStyleRule. r=xidorn
MozReview-Commit-ID: 5adkbeTOHQU
2017-10-19 15:55:42 +08:00
Nicholas Nethercote
7dbfdaf890 Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP
2017-10-03 09:05:19 +11:00
Nicholas Nethercote
9fda5528d2 Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam.
This patch merges nsAtom into nsIAtom. For the moment, both names can be used
interchangeably due to a typedef. The patch also devirtualizes nsIAtom, by
making it not inherit from nsISupports, removing NS_DECL_NSIATOM, and dropping
the use of NS_IMETHOD_. It also removes nsIAtom's IIDs.

These changes trigger knock-on changes throughout the codebase, changing the
types of lots of things as follows.

- nsCOMPtr<nsIAtom> --> RefPtr<nsIAtom>

- nsCOMArray<nsIAtom> --> nsTArray<RefPtr<nsIAtom>>
  - Count() --> Length()
  - ObjectAt() --> ElementAt()
  - AppendObject() --> AppendElement()
  - RemoveObjectAt() --> RemoveElementAt()

- ns*Hashtable<nsISupportsHashKey, ...> -->
  ns*Hashtable<nsRefPtrHashKey<nsIAtom>, ...>

- nsInterfaceHashtable<T, nsIAtom> --> nsRefPtrHashtable<T, nsIAtom>
  - This requires adding a Get() method to nsRefPtrHashtable that it lacks but
    nsInterfaceHashtable has.

- nsCOMPtr<nsIMutableArray> --> nsTArray<RefPtr<nsIAtom>>
  - nsArrayBase::Create() --> nsTArray()
  - GetLength() --> Length()
  - do_QueryElementAt() --> operator[]

The patch also has some changes to Rust code that manipulates nsIAtom.

MozReview-Commit-ID: DykOl8aEnUJ
2017-09-26 08:33:21 +10:00
Andrew McCreight
84ee98de3c Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1
2017-08-29 16:02:48 -07:00
Fernando Jimenez Moreno
7a98ebd788 Bug 1387934 - stylo: inDOMUtils::SelectorMatchesElement should not match with bogus pseudo. r=xidorn
MozReview-Commit-ID: 8jG6dWzn8eI
2017-08-14 12:28:58 +02:00
Fernando Jimenez Moreno
927b04ed2d Bug 1370502 - stylo: Implement ServoStyleRule::SelectorMatchesElement. r=emilio
MozReview-Commit-ID: JMoBRHzDQZq
2017-07-04 15:37:34 +02:00
Fernando Jimenez Moreno
805337871e Bug 1370501 - stylo: Implement ServoStyleRule::GetSpecificity. r=emilio
MozReview-Commit-ID: Kxa7Q3Yw4It
2017-06-12 14:54:44 +02:00
Fernando Jimenez Moreno
53e33db02c Bug 1370501 - stylo: Fix ServoStyleRule::GetSelectorTextFromIndex. r=emilio
MozReview-Commit-ID: 6STojaOLggZ
2017-06-12 14:54:39 +02:00
Fernando Jimenez Moreno
e229421927 Bug 1367615 - Part 3: Implement ServoStyleRule::GetSelectorCount and GetSelectorText. r=emilio
MozReview-Commit-ID: 9MIY9ing11V
2017-06-07 17:48:49 +02:00
Fernando Jimenez Moreno
79d92cde23 Bug 1367615 - Part 2: Make ServoStyleRule implement nsICSSStyleRuleDOMWrapper. r=xidorn
MozReview-Commit-ID: 20UWQl50zvl
2017-06-07 17:48:49 +02:00
Fernando Jimenez Moreno
ccd922f671 Bug 1367615 - Part 1: Move inDOMUtils style rules related functionality to BindingStyleRule. r=emilio
MozReview-Commit-ID: 7d96KT2yYBF
2017-06-07 17:48:49 +02:00
Fernando Jimenez Moreno
0374c674f9 Bug 1350175 - Part 2: FFI changes to get line and column. r=xidorn
MozReview-Commit-ID: 87pVnoLmjPl
2017-04-25 16:24:39 +02:00
Nazım Can Altınova
7aed30d8da Bug 1360488 - Part 1: stylo: Add ServoCSSParsingEnvironment and pass this instead of URLExtraData r=bholley
It was inconsistent with gecko side and also we needed to pass nsCompatibility enum along with URLExtraData.

MozReview-Commit-ID: 2ceutBfqBrg
2017-05-11 19:06:43 +03:00
Carsten "Tomcat" Book
e8b6d02e37 Merge mozilla-central to mozilla-inbound 2017-04-10 10:38:33 +02:00
Nicholas Nethercote
d1e195a649 Bug 1353948 - Add SizeOfIncludingThis() methods to ServoStyle{Set,Sheet,SheetInner}. r=heycam.
This fills things in a bit more on the Gecko side.
2017-04-06 12:22:36 +10:00
J. Ryan Stinnett
99b23ecf37 Bug 1345206 - Create ServoPageRule. r=xidorn
Adds `ServoPageRule` for use as the CSSOM representation of @page rules parsed
by Servo.

MozReview-Commit-ID: 7AIErJmoZN
2017-03-31 16:13:12 -05:00
Xidorn Quan
c61841a1ad Bug 1343964 part 7 - Use URLExtraData for declaration modification directly for Servo backend. r=heycam
MozReview-Commit-ID: 78JRYKk9hgV
2017-04-04 16:09:20 +10:00
Boris Zbarsky
07ac6be52e Bug 851892 part 12. Convert CSSStyleRule to WebIDL. r=peterv,heycam,mccr8
The .style PutForwards bit is coming along for the ride; I did check that Chrome
already implements this, so we're not the only ones.
2017-01-13 10:41:03 -05:00
Boris Zbarsky
7f8371f7b5 Bug 851892 part 7. Push the nsIDOMCSSRule implementation up to css::Rule. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky
048878096a Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky
29566dfbe6 Bug 851892 part 4. Make css::Rule wrappercached. r=heycam,peterv,smaug
Note that this increases the size of css::Rule by three words, unfortunately.
2017-01-13 10:41:02 -05:00
Boris Zbarsky
e152128ba1 Bug 851892 part 1. Make all CSS rules cycle-collected. r=heycam,smaug 2016-11-30 18:18:14 -05:00
Sebastian Hengst
f7032ba0ea Backed out changeset 9a4b96c10b23 (bug 851892) for build bustage. r=backout on a CLOSED TREE 2017-01-20 19:31:31 +01:00
Sebastian Hengst
189192c717 Backed out changeset 3be6690b9f0a (bug 851892) 2017-01-20 19:30:50 +01:00
Sebastian Hengst
f21d58966b Backed out changeset 271c7cd7b59a (bug 851892) 2017-01-20 19:30:41 +01:00
Sebastian Hengst
d61de95f28 Backed out changeset 659550973d4d (bug 851892) 2017-01-20 19:30:37 +01:00
Sebastian Hengst
7cab842632 Backed out changeset 31103a03f2c2 (bug 851892) 2017-01-20 19:30:14 +01:00
Boris Zbarsky
f7f00f8c97 Bug 851892 part 12. Convert CSSStyleRule to WebIDL. r=peterv,heycam,mccr8
The .style PutForwards bit is coming along for the ride; I did check that Chrome
already implements this, so we're not the only ones.
2017-01-13 10:41:03 -05:00