Cameron McCormack
6e9ab08423
Bug 1408311 - Part 2: Add GetDeclarationBlock method to BindingStyleRule. r=xidorn
...
MozReview-Commit-ID: 5adkbeTOHQU
--HG--
extra : rebase_source : 67d196ac36b5f6daca8e20f6ec6063b3f2f8c84d
2017-10-19 15:55:42 +08:00
Nicholas Nethercote
d225f7151b
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
--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Nicholas Nethercote
dfd3b7e7aa
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
--HG--
extra : rebase_source : 254404e318e94b4c93ec8d4081ff0f0fda8aa7d1
2017-09-26 08:33:21 +10:00
Chris Peterson
5698729243
Bug 870698 - Part 10: Replace Append(NS_LITERAL_STRING("")) with AppendLiteral(u""). r=erahm
...
The NS_LITERAL_STRING macro creates a temporary nsLiteralString to encapsulate the char16_t string literal and its length, but AssignLiteral() can determine the char16_t string literal's length at compile-time without nsLiteralString.
MozReview-Commit-ID: H9I6vNDMdIr
--HG--
extra : rebase_source : cf537a1f65af003c6c4f8919b925b0f305c1dd4d
extra : source : 13b89ce4e6a66c840f82a335c71f5a12938aba22
2017-09-07 18:32:54 -07:00
Chris Peterson
45aa2a8e8e
Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
...
MozReview-Commit-ID: CrkIP4iHP1U
--HG--
extra : rebase_source : 5dc4e91a3f1860773c199f1abf3f66479218834a
extra : intermediate-source : ba51cc79847f2b43ba616f4a5d2bbc6958ca9f6d
extra : source : 1fda2fa990cc918c748ffa14fcc5dbe13fe3bdc3
2017-09-03 22:14:11 -07:00
Xidorn Quan
372bd402fb
Bug 1387905 part 2 - Use 10bit for specificity in Gecko as well. r=heycam
...
MozReview-Commit-ID: G5qq0FY0HQ8
--HG--
extra : rebase_source : 2572ad7845c4275d0f0a580204697e6ee87a4a5f
2017-09-04 12:07:24 +10:00
Xidorn Quan
441c9db551
Bug 1387905 part 1 - Count pseudo-element into specificity. r=heycam
...
MozReview-Commit-ID: IWlINaYAhql
--HG--
extra : rebase_source : f0d12277ecda1c7e498ba208cec0e0cde6fc5a25
2017-09-04 12:05:56 +10:00
Andrew McCreight
78807d8776
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
--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Fernando Jimenez Moreno
31a637df14
Bug 1367615 - Part 1: Move inDOMUtils style rules related functionality to BindingStyleRule. r=emilio
...
MozReview-Commit-ID: 7d96KT2yYBF
--HG--
extra : rebase_source : ebfff1ea39b8c360c731fa721fd0d67127fb23f3
2017-06-07 17:48:49 +02:00
Nazım Can Altınova
ce383280c3
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
--HG--
extra : rebase_source : f342774ed349c65f377cf85865f5905520784ca5
2017-05-11 19:06:43 +03:00
Xidorn Quan
987754e4dc
Bug 1343964 part 7 - Use URLExtraData for declaration modification directly for Servo backend. r=heycam
...
MozReview-Commit-ID: 78JRYKk9hgV
--HG--
extra : rebase_source : 1a86db507451637379e35ea17d9dbd88e8dc6902
2017-04-04 16:09:20 +10:00
Boris Zbarsky
2daa8920fe
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
0da388ba25
Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam
2017-01-13 10:41:03 -05:00
Boris Zbarsky
4fe3d0c6dd
Bug 851892 part 7. Push the nsIDOMCSSRule implementation up to css::Rule. r=heycam
2017-01-13 10:41:02 -05:00
Boris Zbarsky
1d545c87da
Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam
2017-01-13 10:41:02 -05:00
Boris Zbarsky
0591cf1be7
Bug 851892 part 5. Get rid of DOMCSSStyleRule. r=heycam,smaug
2017-01-13 10:41:02 -05:00
Boris Zbarsky
637e48e6e3
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
6e795d159b
Bug 851892 part 2. Remove the now-unused GetExistingDOMRule method. r=heycam
2017-01-13 10:41:02 -05:00
Boris Zbarsky
65f894384a
Bug 851892 part 1. Make all CSS rules cycle-collected. r=heycam,smaug
2016-11-30 18:18:14 -05:00
Sebastian Hengst
3c9c348769
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
c2dff8d692
Backed out changeset 795ebf4423ba (bug 851892)
2017-01-20 19:30:59 +01:00
Sebastian Hengst
63caf1fba9
Backed out changeset 3be6690b9f0a (bug 851892)
2017-01-20 19:30:50 +01:00
Sebastian Hengst
1c3bfd1016
Backed out changeset 2c2afe732553 (bug 851892)
2017-01-20 19:30:46 +01:00
Sebastian Hengst
7f2820fd7b
Backed out changeset 271c7cd7b59a (bug 851892)
2017-01-20 19:30:41 +01:00
Sebastian Hengst
24246c7ba1
Backed out changeset 659550973d4d (bug 851892)
2017-01-20 19:30:37 +01:00
Sebastian Hengst
bcb6968086
Backed out changeset 9ef39356f62c (bug 851892)
2017-01-20 19:30:32 +01:00
Sebastian Hengst
d4070f77eb
Backed out changeset 31103a03f2c2 (bug 851892)
2017-01-20 19:30:14 +01:00
Boris Zbarsky
2132f0075d
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
4cc8d36e13
Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam
2017-01-13 10:41:03 -05:00
Boris Zbarsky
e1ec75387e
Bug 851892 part 7. Push the nsIDOMCSSRule implementation up to css::Rule. r=heycam
2017-01-13 10:41:02 -05:00
Boris Zbarsky
18c01c8290
Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam
2017-01-13 10:41:02 -05:00
Boris Zbarsky
bae3c90b82
Bug 851892 part 5. Get rid of DOMCSSStyleRule. r=heycam,smaug
2017-01-13 10:41:02 -05:00
Boris Zbarsky
ec2fad773f
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
5bb4a84030
Bug 851892 part 2. Remove the now-unused GetExistingDOMRule method. r=heycam
2017-01-13 10:41:02 -05:00
Boris Zbarsky
e92f7dfbdc
Bug 851892 part 1. Make all CSS rules cycle-collected. r=heycam,smaug
2016-11-30 18:18:14 -05:00
Boris Zbarsky
89948607fd
Bug 1332353. Make it clearer when a stylesheet is really owned by its mDocument. r=heycam
2017-01-19 23:49:44 -05:00
Phil Ringnalda
686006613e
Backed out 20 changesets (bug 851892) for load failures in Android crashtest-4
...
Backed out changeset b9c4115cdeac (bug 851892)
Backed out changeset 5f491bf49b85 (bug 851892)
Backed out changeset 9bf5bcb3e8c5 (bug 851892)
Backed out changeset a9cab46e8b45 (bug 851892)
Backed out changeset 73858e15c8c0 (bug 851892)
Backed out changeset a25638588b6b (bug 851892)
Backed out changeset d58e0e5069ef (bug 851892)
Backed out changeset d8da2a3d8f10 (bug 851892)
Backed out changeset a8da3c34983f (bug 851892)
Backed out changeset 29cf8acbd21e (bug 851892)
Backed out changeset c53cd7bdf8b3 (bug 851892)
Backed out changeset e841a2796375 (bug 851892)
Backed out changeset 2eab85b00159 (bug 851892)
Backed out changeset ca4b1fb9cae4 (bug 851892)
Backed out changeset 74c0ba66f108 (bug 851892)
Backed out changeset 719bb9f41e5b (bug 851892)
Backed out changeset d6aa4c6192df (bug 851892)
Backed out changeset dc81a167a75d (bug 851892)
Backed out changeset 65422477b3a5 (bug 851892)
Backed out changeset 3089dd379077 (bug 851892)
2017-01-15 11:50:10 -08:00
Boris Zbarsky
12d9bfeec4
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
13b4594e28
Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam
2017-01-13 10:41:03 -05:00
Boris Zbarsky
52920d72fc
Bug 851892 part 7. Push the nsIDOMCSSRule implementation up to css::Rule. r=heycam
2017-01-13 10:41:02 -05:00
Boris Zbarsky
f7a5133a06
Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam
2017-01-13 10:41:02 -05:00
Boris Zbarsky
1bde6ae3c2
Bug 851892 part 5. Get rid of DOMCSSStyleRule. r=heycam
2017-01-13 10:41:02 -05:00
Boris Zbarsky
56e3ade4f8
Bug 851892 part 4. Make css::Rule wrappercached. r=heycam,peterv
...
Note that this increases the size of css::Rule by three words, unfortunately.
2017-01-13 10:41:02 -05:00
Boris Zbarsky
ff9df2fc65
Bug 851892 part 2. Remove the now-unused GetExistingDOMRule method. r=heycam
2017-01-13 10:41:02 -05:00
Boris Zbarsky
b428dc3b24
Bug 851892 part 1. Make all CSS rules cycle-collected. r=heycam
2016-11-30 18:18:14 -05:00
Boris Zbarsky
0c844d909c
Back out bug 851892 for Windows build bustage on CLOSED TREE
2017-01-13 11:47:22 -05:00
Boris Zbarsky
440a3a3356
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
c2d6f05094
Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam
2017-01-13 10:41:03 -05:00
Boris Zbarsky
75a4f847c1
Bug 851892 part 7. Push the nsIDOMCSSRule implementation up to css::Rule. r=heycam
2017-01-13 10:41:02 -05:00
Boris Zbarsky
edd491c862
Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam
2017-01-13 10:41:02 -05:00