- 30 May, 2020 1 commit
-
-
Sylvestre Ledru authored
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D77580
-
- 26 May, 2020 1 commit
-
-
Cameron McCormack authored
Differential Revision: https://phabricator.services.mozilla.com/D76946
-
- 06 Mar, 2020 1 commit
-
-
Emilio Cobos Álvarez authored
Bug 1620359 - Don't clear the "uses viewport units" bit when a font that doesn't cause a style change loads. r=jfkthame This is probably an old-ish bug made more frequent by the font loading optimizations. PostRebuildAllStyleData is a bit of a misnomer, but was always calling ClearCachedData() on the style set, even if we weren't guaranteed to restyle every element. This means both wasted work and correctness issues (as the "uses <rare-feature>" bits are cleared during this call, on the assumption that we'll then visit all elements and that'd recompute it properly). For now, unify a bit the different code paths and only clear these bits if we're guaranteed to restyle all elements. I should rename this to something better in a follow-up, and ideally also decouple the ClearCachedData() calls a bit... Differential Revision: https://phabricator.services.mozilla.com/D65740 --HG-- extra : moz-landing-system : lando
-
- 06 Oct, 2019 1 commit
-
-
Emilio Cobos Álvarez authored
Bug 1585882 - Fix the case where where a node with an up-to-date style loses its frame due to a DOM mutation of siblings. r=heycam This fixes another edge-case that I thought of while debugging this, I think this makes our behavior correct now. The comment and test-case should be self-descriptive. Differential Revision: https://phabricator.services.mozilla.com/D48135 --HG-- extra : moz-landing-system : lando
-
- 29 Jul, 2019 1 commit
-
-
Emilio Cobos Álvarez authored
Bug 1568778 - Do suppress adjustments when switching an undisplayed element to be abspos. r=dholbert One of the issues with the test-case in this bug is that the page consumes a ton of CPU due to scroll anchor adjustments being triggered from scroll events, which in turn cause other scroll events to fire. This happens in Chrome as well (just scroll to the bottom of the test-case, and do `addEventListener("scroll", () => console.log("scroll"))` on devtools. But I think it's worth fixing. This patch fixes it and overall I think it's a slightly better approach to suppress adjustments than what we're doing. Differential Revision: https://phabricator.services.mozilla.com/D39339 --HG-- extra : moz-landing-system : lando
-
- 19 Jul, 2019 1 commit
-
-
Emilio Cobos Álvarez authored
This is IMO the right RestyleManager change for what bug 1527210 tried to fix. We need to apply the animation hints to the primary frame, not the style frame. The other non-RestyleManager bits of that bug still apply and look fine to me. Differential Revision: https://phabricator.services.mozilla.com/D38598 --HG-- extra : moz-landing-system : lando
-
- 24 Jun, 2019 1 commit
-
-
Emilio Cobos Álvarez authored
Differential Revision: https://phabricator.services.mozilla.com/D35157 --HG-- extra : moz-landing-system : lando
-
- 26 Mar, 2019 1 commit
-
-
Mats Palmgren authored
Differential Revision: https://phabricator.services.mozilla.com/D25003 --HG-- extra : rebase_source : 999373f16c816cdd0dd64b1cc3f9f3f30bb12003 extra : amend_source : 829c0fc25afc55d50b70aebc1f3b9f0e8f06c458
-
- 29 Mar, 2019 3 commits
-
-
Masayuki Nakano authored
Bug 1540015 - part 2: Make nsPresContext.h stop including nsIPresShel.h and nsIPresShellInlines.h r=smaug `*Inlines.h` shouldn't be included by another header file, but `nsPresContext.h` does it. This causes include-hell which blocks the following fix. Additionally, it causes an include hell between `PresShell.h` vs. `nsIPresShell.h` and `nsPresContext.h if `Document.h` includes `PresShell.h`. Therefore, this patch also solves this include hell with adding `nsPresContextInlines.h`. Differential Revision: https://phabricator.services.mozilla.com/D25333 --HG-- extra : moz-landing-system : lando
-
Dorel Luca authored
Backed out changeset 7b71c9da0214 (bug 1540015) Backed out changeset 5723ddbc5c44 (bug 1540015) Backed out changeset 9561d2c36fa5 (bug 1540015)
-
Masayuki Nakano authored
Bug 1540015 - part 2: Make nsPresContext.h stop including nsIPresShel.h and nsIPresShellInlines.h r=smaug `*Inlines.h` shouldn't be included by another header file, but `nsPresContext.h` does it. This causes include-hell which blocks the following fix. Additionally, it causes an include hell between `PresShell.h` vs. `nsIPresShell.h` and `nsPresContext.h if `Document.h` includes `PresShell.h`. Therefore, this patch also solves this include hell with adding `nsPresContextInlines.h`. Differential Revision: https://phabricator.services.mozilla.com/D25333 --HG-- extra : moz-landing-system : lando
-
- 18 Mar, 2019 1 commit
-
-
Brian Birtles authored
Bug 1518816 - Rename EffectSet::GetEffectSet(const nsIFrame*) to make it more clear what it does; r=hiro Differential Revision: https://phabricator.services.mozilla.com/D23286 --HG-- extra : moz-landing-system : lando
-
- 14 Mar, 2019 1 commit
-
-
Emilio Cobos Álvarez authored
Differential Revision: https://phabricator.services.mozilla.com/D22828 --HG-- extra : moz-landing-system : lando
-
- 01 Mar, 2019 3 commits
-
-
Narcis Beleuzu authored
Backed out changeset 60128088f862 (bug 1531582) for reftest failures on value-prop.html . CLOSED TREE
-
Emilio Cobos Álvarez authored
This doesn't matter yet because all the states that return a change hint are on stylesheets, but will matter with bug 1472637. Differential Revision: https://phabricator.services.mozilla.com/D21616 --HG-- extra : moz-landing-system : lando
-
Emilio Cobos Álvarez authored
This doesn't matter yet because all the states that return a change hint are on stylesheets, but will matter with bug 1472637. Differential Revision: https://phabricator.services.mozilla.com/D21616
-
- 19 Feb, 2019 1 commit
-
-
Emilio Cobos Álvarez authored
Bug 1525955 - Include anon boxes in CSSPseudoElementType, to remove ComputedStyle::mPseudoTag. r=heycam This is more consistent with what the Rust bits of the style system do, and removes a pointer from ComputedStyle which is always nice. This also aligns the Rust bits with the C++ bits re. not treating xul pseudos as anonymous boxes. See the comment in nsTreeStyleCache.cpp regarding those. Can't wait for XUL trees to die. Depends on D19001 Differential Revision: https://phabricator.services.mozilla.com/D19002 --HG-- extra : moz-landing-system : lando
-
- 29 Jan, 2019 3 commits
-
-
garvitdelhi authored
Differential Revision: https://phabricator.services.mozilla.com/D17073
-
Cosmin Sabou authored
Backed out changeset e1de5282e21a (bug 1519185) Backed out changeset 00d8afb01890 (bug 1519185) --HG-- extra : rebase_source : d92a7d4606992503f24c66093d35676e12a84ff0
-
garvitdelhi authored
Differential Revision: https://phabricator.services.mozilla.com/D17073 --HG-- extra : moz-landing-system : lando
-
- 30 Nov, 2018 1 commit
-
-
Sylvestre Ledru authored
# ignore-this-changeset --HG-- extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
-
- 21 Sep, 2018 1 commit
-
-
Ting-Yu Lin authored
Differential Revision: https://phabricator.services.mozilla.com/D6452 --HG-- extra : moz-landing-system : lando
-
- 06 Aug, 2018 1 commit
-
-
Emilio Cobos Álvarez authored
Differential Revision: https://phabricator.services.mozilla.com/D2766 --HG-- extra : moz-landing-system : lando
-
- 30 Jul, 2018 1 commit
-
-
Hiroyuki Ikezoe authored
Bug 1478643 - Apply change hints for transform animation in the case where the current transform style is 'none' and no change hint produced in AddLayerChangesForAnimation. r=birtles The applying change hints are the same as what we apply for transform style changed from something to 'none'. All test cases pass with this fix fail without the fix. MozReview-Commit-ID: 7HStU26lRPq --HG-- extra : rebase_source : 701361d477ab7954ab15fde75fd40d98724e47b3
-
- 15 May, 2018 1 commit
-
-
Emilio Cobos Álvarez authored
Now that BeginUpdate is useless for the UPDATE_STYLE case, we don't need the update mechanism at all. Just ensure that ApplicableStylesChanged is called on the pres shell via the relevant RuleChanged, etc. notifications. There's a big hidden gotcha here. nsIDocument::BeginUpdate does put a script blocker on the stack for these updates. However it's not needed, since no script can run during these notifications (only the stylesheet events we post for devtools, but those use AsyncEventDispatcher and PostDOMEvents, so they don't try to run immediately). nsIDocument::BeginUpdate also does XBL binding attached queue stuff, but we can't change bindings during these notifications anyway, so it also doesn't matter. MozReview-Commit-ID: HJvK6zQfloh
-
- 09 Apr, 2018 1 commit
-
-
Jonathan Watt authored
Bug 1452170 - Remove RestyleLogging.h, RestyleTrackerInlines.h and related RESTYLE_LOGGING cruft. r=heycam
-
- 07 Apr, 2018 4 commits
-
-
Emilio Cobos Álvarez authored
MozReview-Commit-ID: H7tl6O8Ju32
-
Emilio Cobos Álvarez authored
Not worth to keep the dead code, even if we may end up having to do something about it in bug 1376082. MozReview-Commit-ID: 8GG7O9ujtk0
-
Emilio Cobos Álvarez authored
This leaves ServoRestyleManager as just a typedef. MozReview-Commit-ID: 5wfTkiDc2Nr
-
Emilio Cobos Álvarez authored
Much in the spirit of bug 1442207. They're not only unneeded, and cheap to get, but also we call them inconsistently with the light DOM and flattened tree parent (like ContentRemoved for display: contents), so they're really confusing, and kind of a footgun. MozReview-Commit-ID: 9u3Kp8Kpp5i
-
- 22 Mar, 2018 3 commits
-
-
Emilio Cobos Álvarez authored
Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt on a CLOSED TREE MozReview-Commit-ID: JPopq0LudD
-
Emilio Cobos Álvarez authored
Back out changeset b683bb3f22a1 (Bug 1447483) for not landing with all the files. r=me on a CLOSED TREE This reverts commit 1808914126bb9f9e4a82d2c3d7ac961885fe7d62. MozReview-Commit-ID: 5skESBseEvo
-
Emilio Cobos Álvarez authored
MozReview-Commit-ID: JPopq0LudD
-
- 28 Mar, 2018 1 commit
-
-
Xidorn Quan authored
MozReview-Commit-ID: 6sh4eKvDpRF --HG-- extra : rebase_source : 7d83f2b2d4e2739333016ed82754bf3a4a700de4 extra : source : 147ca562a24652c3f30add793213db70aff65e9e
-
- 28 Nov, 2017 1 commit
-
-
Jeremy Chen authored
It is expected to use 64-bit for all the restyle generation counters, since the getter methods all return uint64_t type at present. However, we're using uint32_t for the actual counter variables, which means the potential overflow issue is not avoided. In this patch, we use 64-bit for the restyle generation counters, so the overflow issue can be avoided as expected. MozReview-Commit-ID: 2y2afIcuwvc --HG-- extra : rebase_source : 3fe64d7d3fc00fa1031eef9f0c15b64405435dfd
-
- 17 Apr, 2018 1 commit
-
-
Emilio Cobos Álvarez authored
MozReview-Commit-ID: DILRptmC8wJ
-
- 27 Feb, 2018 1 commit
-
-
Emilio Cobos Álvarez authored
This unfortunately doesn't fix my test-case (because we're replacing the text content all the time and all that), but it's still worth it, since it fixes the case we care about (the parser appending). We could also optimize pure insertions (since in that case we can still figure out what the old text was), but it's probably annoying and not worth the churn. In any case, we cannot optimize anything that resembles any kind of removal, because from there we don't know the old text in any way (and the text nodes like to reuse string buffers and such). We could do two other optimizations to replace / extend this one, in that order: * Pass the buffer and length to CharacterDataWillChange, and use that to get the exact old text and the new one in RestyleManager. That would make the optimization exact. * Pass some sort of Maybe<bool> mWasWhitespace down the CharacterDataChangeInfo which is computed like: HasFlag(NS_CACHED_TEXT_IS_ONLY_WHITESPACE) ? Some(NS_TEXT_IS_ONLY_WHITESPACE) : Nothing() It's not clear to me it's going to be completely worth the churn, so I haven't done those yet, if we see code in the wild which resembles my testcase, we can think of doing it. MozReview-Commit-ID: 2rTWaZti8rv --HG-- extra : rebase_source : 7390b8740801eb7b91700bb2533c43c173ac5db9
-
- 02 Oct, 2017 1 commit
-
-
Nicholas Nethercote authored
(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
-
- 16 Aug, 2017 1 commit
-
-
Eric Rahm authored
We should not be declaring forward declarations for nsString classes directly, instead we should use nsStringFwd.h. This will make changing the underlying types easier. --HG-- extra : rebase_source : b2c7554e8632f078167ff2f609392e63a136c299
-
- 14 Aug, 2017 1 commit
-
-
Sebastian Hengst authored
Backed out changeset 27e08c76b767 (bug 1388692) for failing mochitest layout/style/test/test_animations_styles_on_event.html on Android. r=backout
-