mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1695578 part 1: Add macro to implement HTMLMarqueeElement::FromNodeOrNull, so that some marquee-specific zero-intrinsic-sizing code is actually marquee-specific. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D107034
This commit is contained in:
parent
e2592a6219
commit
57389ad625
@ -17,6 +17,8 @@ class HTMLMarqueeElement final : public nsGenericHTMLElement {
|
||||
explicit HTMLMarqueeElement(already_AddRefed<dom::NodeInfo>&& aNodeInfo)
|
||||
: nsGenericHTMLElement(std::move(aNodeInfo)) {}
|
||||
|
||||
NS_IMPL_FROMNODE_HTML_WITH_TAG(HTMLMarqueeElement, marquee);
|
||||
|
||||
nsresult BindToTree(BindContext&, nsINode& aParent) override;
|
||||
void UnbindFromTree(bool aNullParent = true) override;
|
||||
|
||||
|
@ -0,0 +1,9 @@
|
||||
<!doctype html>
|
||||
<title>Test reference</title>
|
||||
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
|
||||
<link rel="author" href="https://mozilla.org" title="Mozilla">
|
||||
<body>
|
||||
<input type="date">
|
||||
<br>
|
||||
<input type="date">
|
||||
</body>
|
@ -0,0 +1,11 @@
|
||||
<!doctype html>
|
||||
<title>Test: the date field's min-content and max-content sizes should be the same as its automatic size</title>
|
||||
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
|
||||
<link rel="author" href="https://mozilla.org" title="Mozilla">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1695578">
|
||||
<link rel="match" href="input-date-content-size-ref.html">
|
||||
<body>
|
||||
<input type="date" style="width: min-content">
|
||||
<br>
|
||||
<input type="date" style="width: max-content">
|
||||
</body>
|
Loading…
Reference in New Issue
Block a user