Closed
Bug 1459871
Opened 6 years ago
Closed 6 years ago
Remove other getPropertyCssValue-related interfaces.
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla62
Tracking | Status | |
---|---|---|
firefox62 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
(Keywords: dev-doc-complete, site-compat)
Attachments
(1 file)
No description provided.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d8d91bd3025bcf867a0165cd56d388a5fdbf020f
Updated•6 years ago
|
Priority: -- → P3
Comment 3•6 years ago
|
||
mozreview-review |
Comment on attachment 8973969 [details] Bug 1459871: Remove other getPropertyCSSValue-related interfaces. https://reviewboard.mozilla.org/r/242316/#review249812 ::: layout/style/nsDOMCSSRGBColor.h (Diff revision 1) > nsROCSSPrimitiveValue* aGreen, > nsROCSSPrimitiveValue* aBlue, > nsROCSSPrimitiveValue* aAlpha, > bool aHasAlpha); > > - NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(nsDOMCSSRGBColor) So... In theory, we could in fact have cycles through our members. It's probably OK as long as people don't mess up and have those nsROCSSPrimitiveValue instances point to this object. But it slightly worries me to remove the cycle-collection here. ::: layout/style/nsDOMCSSRect.h (Diff revision 1) > nsDOMCSSRect(nsROCSSPrimitiveValue* aTop, > nsROCSSPrimitiveValue* aRight, > nsROCSSPrimitiveValue* aBottom, > nsROCSSPrimitiveValue* aLeft); > > - NS_DECL_CYCLE_COLLECTING_ISUPPORTS Again, removing the cycle collection here has some risk. ::: layout/style/nsDOMCSSValueList.h (Diff revision 1) > #include "nsTArray.h" > > class nsDOMCSSValueList final : public mozilla::dom::CSSValue > { > public: > - NS_DECL_CYCLE_COLLECTING_ISUPPORTS And here. ::: layout/style/nsROCSSPrimitiveValue.h:28 (Diff revision 1) > * computed style. > */ > class nsROCSSPrimitiveValue final : public mozilla::dom::CSSValue > { > public: > - NS_DECL_CYCLE_COLLECTING_ISUPPORTS > + enum : uint16_t { Again, removing cycle collection here is a bit worrying.
Attachment #8973969 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 4•6 years ago
|
||
I thought about it a bit. All the usage of these types is relegated to getComputedStyle, which is to say, we only create them and call GetCssText on them. If you create a cycle manually using C++ you overflow the stack on GetCssText, so I think it's reasonably safe to remove the cycle collection bits.
Updated•6 years ago
|
Keywords: dev-doc-needed
Pushed by ecoal95@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/66fa28c2f438 Remove other getPropertyCSSValue-related interfaces. r=bz
Comment 6•6 years ago
|
||
Updated the site compatibility note: https://www.fxsitecompat.com/en-CA/docs/2018/cssstyledeclaration-getpropertycssvalue-and-related-interfaces-have-been-removed/
Keywords: site-compat
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/66fa28c2f438
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Comment 8•6 years ago
|
||
:emilio, can you add some tests to wpt/css/cssom/historical.html for these, especially if WebKit still implements them?
Assignee | ||
Comment 10•6 years ago
|
||
(In reply to Geoffrey Sneddon [:gsnedders] from comment #8) > :emilio, can you add some tests to wpt/css/cssom/historical.html for these, > especially if WebKit still implements them? https://github.com/w3c/web-platform-tests/pull/11163
Flags: needinfo?(emilio)
Comment 11•6 years ago
|
||
I've updated compat status for: https://developer.mozilla.org/en-US/docs/Web/API/CSSValue#Browser_compatibility https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue#Browser_compatibility https://developer.mozilla.org/en-US/docs/Web/API/CSSValueList#Browser_compatibility Marking dev-doc-complete, but please let me know if we need anything else.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•