Emilio Cobos Álvarez
60812fc63c
Bug 1711437
- Don't EnsureUniqueInner from the cssRules getter. r=layout-reviewers,jfkthame
...
Instead, fix up the various content data structures when the stylesheet
is mutated. This makes reading a stylesheet not disable style sharing.
Differential Revision: https://phabricator.services.mozilla.com/D115203
2021-07-20 13:17:02 +00:00
Dorel Luca
d1e1f219ba
Backed out changeset 0e17878eeb86 (bug 1711437
) for causing Bug 1719963. a=backout DONTBUILD
2021-07-14 00:36:05 +03:00
Emilio Cobos Álvarez
241951bce9
Bug 1711437
- Don't EnsureUniqueInner from the cssRules getter. r=layout-reviewers,jfkthame
...
Instead, fix up the various content data structures when the stylesheet
is mutated. This makes reading a stylesheet not disable style sharing.
Differential Revision: https://phabricator.services.mozilla.com/D115203
2021-07-12 16:02:58 +00:00
Alexandru Michis
6550c23862
Backed out changeset 998af7ced46f (bug 1711437
) for causing Bug 1719963. a=backout
2021-07-10 12:44:08 +03:00
Emilio Cobos Álvarez
3de336bbc1
Bug 1711437
- Don't EnsureUniqueInner from the cssRules getter. r=layout-reviewers,jfkthame
...
Instead, fix up the various content data structures when the stylesheet
is mutated. This makes reading a stylesheet not disable style sharing.
Differential Revision: https://phabricator.services.mozilla.com/D115203
2021-07-09 16:25:54 +00:00
Butkovits Atila
95df13ddf8
Backed out changeset f7944c3f9e5b (bug 1711437
) for causing mochitest failures. CLOSED TREE
2021-05-25 18:56:00 +03:00
Emilio Cobos Álvarez
4da4bb9699
Bug 1711437
- Don't EnsureUniqueInner from the cssRules getter. r=layout-reviewers,jfkthame
...
Instead, fix up the various content data structures when the stylesheet
is mutated. This makes reading a stylesheet not disable style sharing.
Differential Revision: https://phabricator.services.mozilla.com/D115203
2021-05-25 13:23:35 +00:00
Dorel Luca
08f063f4c8
Backed out changeset 2c95330ad7c7 (bug 1711437
) for Devtools failures in devtools/client/inspector/markup/test/browser_markup_shadowdom.js. CLOSED TREE
2021-05-24 23:01:46 +03:00
Emilio Cobos Álvarez
510cae01ca
Bug 1711437
- Don't EnsureUniqueInner from the cssRules getter. r=layout-reviewers,jfkthame
...
Instead, fix up the various content data structures when the stylesheet
is mutated. This makes reading a stylesheet not disable style sharing.
Differential Revision: https://phabricator.services.mozilla.com/D115203
2021-05-24 17:18:44 +00:00
Emilio Cobos Álvarez
039592f4d8
Bug 1682003 - Avoid UTF-8 -> UTF-16 conversion during CSSOM serialization. r=heycam
...
This lifts a bunch of string conversions higher up the stack, but allows
us to make the servo code use utf-8 unconditionally, and seemed faster
in my benchmarking (see comment 0).
It should also make a bunch of attribute setters faster too (like
setting .cssText), now that we use UTF8String for them (we couldn't
because we couldn't specify different string types for the getter and
setters).
Differential Revision: https://phabricator.services.mozilla.com/D99590
2020-12-17 14:04:35 +00:00
Simon Giesecke
dd80614fa0
Bug 1678062 - Remove unnecessary includes. r=andi
...
Differential Revision: https://phabricator.services.mozilla.com/D97467
Depends on D96561
2020-11-23 16:12:02 +00:00
Emilio Cobos Álvarez
73560dc1dd
Bug 1673199 - Make MediaList objects return a style sheet parent so that we associate reflectors to the right global. r=smaug
...
Otherwise if devtools or other privileged JS access them then content
can choke.
Differential Revision: https://phabricator.services.mozilla.com/D95121
2020-10-29 10:15:47 +00:00
Boris Zbarsky
3d4c7db0aa
Bug 1614165 part 2. Improve some error messages in style code. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D62155
--HG--
extra : moz-landing-system : lando
2020-02-09 03:40:48 +00:00
Kagami Sascha Rosylight
e30a6dbb4a
Bug 824857: Support IDL stringifier attributes r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D48355
--HG--
extra : moz-landing-system : lando
2019-10-23 04:55:54 +00:00
Cameron McCormack
e95797966a
Bug 1539159 - Prevent modification of UA style sheets. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D25661
--HG--
extra : moz-landing-system : lando
2019-04-29 05:34:06 +00:00
Emilio Cobos Álvarez
f59ad7aa8e
Bug 1490401 - MatchMedia should work inside display: none iframes. r=heycam
...
Differential Revision: https://phabricator.services.mozilla.com/D25926
--HG--
extra : moz-landing-system : lando
2019-04-04 11:25:31 +00:00
Emilio Cobos Álvarez
d2ed260822
Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
...
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.
Overall it's not a very interesting patch I think.
nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.
I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.
While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Cameron McCormack
81599f34a7
Bug 1473735 - Add memory reporting for MediaQueryLists. r=emilio
...
MozReview-Commit-ID: 87rgRtQOOyG
--HG--
extra : rebase_source : a2ba4e1ed29fd7249378f9496c2059fa26316c3c
2018-07-06 11:09:12 +10:00
Cameron McCormack
a051633346
Bug 1473776 - Remove out of date comment. r=emilio
...
MozReview-Commit-ID: 1FqcJpu5L81
--HG--
extra : rebase_source : 33a21100fcfcbe3afe8f86a357ad3ea6dc08574f
2018-07-06 11:23:09 +10:00
Emilio Cobos Álvarez
ec8bd0a587
Bug 1456471: Unify MediaList and ServoMediaList. r=xidorn
...
MozReview-Commit-ID: KFWxoohpGlb
2018-04-25 10:37:04 +02:00
Boris Zbarsky
5956959873
Bug 1455807. Align MediaList idl bits a bit better with the CSSOM draft. r=heycam
...
MozReview-Commit-ID: GdPASJilQXC
2018-04-23 12:36:10 -04:00
Xidorn Quan
1cf8082e67
Bug 1447828 part 3 - Remove StyleBackendType uses from MediaList. r=emilio
...
MozReview-Commit-ID: 9sG73iLeBw4
--HG--
extra : rebase_source : a2626f6d1f8af02caeb7f3d37b7d258b4544b62d
extra : source : 2f443463446897080b85ac0da5b7a9ea6ccc9de2
2018-03-29 02:31:46 +11:00
Jonathan Watt
68e78b291f
Bug 1449321 - Remove the IsServo and IsGecko methods from the style system code. r=emilio
...
--HG--
extra : source : 763277b299e42d8ee7eafede027ee690b66a7a2a
2018-03-23 16:01:34 +00:00
Chris Peterson
d09123f248
Bug 1436263 - Part 1: Replace `final override` virtual function specifiers with just `final`. r=froydnj
...
MozReview-Commit-ID: DE5HkIhsZ6D
--HG--
extra : rebase_source : 94831c1e13a840dd2ea0600f64bcf70c2bf938d9
extra : source : cf9283bf1b0bca3a6311c98e227329d451f80ecb
2018-02-05 22:46:57 -08:00
Chris Peterson
37efe4d0e6
Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
...
MozReview-Commit-ID: DCPTnyBooIe
--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Cameron McCormack
09a1815a08
Bug 1427512 - Part 20: Remove nsIDOMMediaList. r=xidorn,jryans,bz
...
MozReview-Commit-ID: KKnTf7aFfjA
2018-01-11 16:17:56 +08:00
Bobby Holley
c10cdf7282
Bug 1429126 - Avoid unified bustage. r=emilio
...
The next patch adds a cpp file, which shuffles the unified buckets and
exposes missing includes.
MozReview-Commit-ID: EP88MXYNEuS
2018-01-09 18:09:55 -08:00
Xidorn Quan
783034684d
Bug 1412145 - Drop more backpointers of CSSOM objects in dtor and unlink. r=bz
...
MozReview-Commit-ID: Ftg3WMBBNlO
--HG--
extra : rebase_source : 65834280c2ae9736861096172ca3f1d4e789c7a4
extra : source : ecbc4f545e09e969b8212e77d013a6b46b983763
2017-11-28 17:06:51 -06:00
Tiberius Oros
c1f0b328fa
Backed out changeset 5043401c5447 (bug 1412145)for failing layout/style/test/test_any_dynamic.html r=backout on a CLOSED TREE
...
--HG--
extra : amend_source : 7779c8e296c0e8e1a9677608f67d28f171cdf654
2017-11-28 21:50:29 +02:00
Xidorn Quan
80a94641e2
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
Emilio Cobos Álvarez
d631a75643
Bug 1410074: Make the caller type from MatchMedia arrive to the CSS code. r=xidorn,bz
...
MozReview-Commit-ID: LUiobfHSUq1
2017-10-25 16:04:48 +02:00
Emilio Cobos Álvarez
a2a4795bd3
Bug 1325878: followup - cleanup MediaList::Matches callers. r=me
...
MozReview-Commit-ID: Ck9hlZ0qkxj
2017-04-14 11:31:47 +08:00
Emilio Cobos Álvarez
49654bf1af
Bug 1325878: Simplify MediaList creation. r=xidorn
...
MozReview-Commit-ID: Jre50YpuD7F
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:12 +08:00
Emilio Cobos Álvarez
f7cf08128a
Bug 1325878: Pass the MediaList down to Servo, making <style media> work. r=xidorn
...
MozReview-Commit-ID: BUCSQJs2CNI
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:10 +08:00
Emilio Cobos Álvarez
6ec12dc4f5
Bug 1325878: Don't hardode nsMediaList in dom::StyleSheet. r=xidorn
...
MozReview-Commit-ID: IynF1NFUSLf
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:09 +08:00
Emilio Cobos Álvarez
c0d9b6a9d7
Bug 1325878: Use dom::MediaList in the CSS Loader. r=xidorn
...
MozReview-Commit-ID: 8KcKYrkk3jI
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:05 +08:00
Emilio Cobos Álvarez
16cd642c17
Bug 1325878: Create less hardcoded nsMediaList instances. r=xidorn
...
MozReview-Commit-ID: K6T3MM1ZrFb
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:03 +08:00
Emilio Cobos Álvarez
3cb9f7d4fb
Bug 1325878: Allow creating empty Servo MediaList. r=xidorn
...
MozReview-Commit-ID: H7owjPB8dRi
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:01 +08:00
Xidorn Quan
85464df1c1
Bug 1315601 part 3 - Add base class MediaList and move part of nsMediaList to it. r=heycam
...
MozReview-Commit-ID: A2uJpbGgO55
--HG--
extra : rebase_source : 40a9171307b6a30288169e27caa43595349d2df7
2016-11-09 17:28:24 +11:00