mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 21:42:19 +00:00
LibWeb: Stub out Element.currentCSSZoom
This commit is contained in:
parent
20bdda7f02
commit
82f8b64017
Notes:
sideshowbarker
2024-07-17 01:10:58 +09:00
Author: https://github.com/awesomekling
Commit: 82f8b64017
Pull-request: https://github.com/SerenityOS/serenity/pull/23964
3 changed files with 9 additions and 1 deletions
|
@ -992,6 +992,13 @@ int Element::client_height() const
|
||||||
return paintable_box()->absolute_padding_box_rect().height().to_int();
|
return paintable_box()->absolute_padding_box_rect().height().to_int();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://drafts.csswg.org/cssom-view/#dom-element-currentcsszoom
|
||||||
|
double Element::current_css_zoom() const
|
||||||
|
{
|
||||||
|
dbgln("FIXME: Implement Element::current_css_zoom()");
|
||||||
|
return 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
void Element::inserted()
|
void Element::inserted()
|
||||||
{
|
{
|
||||||
Base::inserted();
|
Base::inserted();
|
||||||
|
|
|
@ -134,6 +134,7 @@ public:
|
||||||
int client_left() const;
|
int client_left() const;
|
||||||
int client_width() const;
|
int client_width() const;
|
||||||
int client_height() const;
|
int client_height() const;
|
||||||
|
[[nodiscard]] double current_css_zoom() const;
|
||||||
|
|
||||||
void for_each_attribute(NOESCAPE Function<void(Attr const&)>) const;
|
void for_each_attribute(NOESCAPE Function<void(Attr const&)>) const;
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ interface Element : Node {
|
||||||
readonly attribute long clientLeft;
|
readonly attribute long clientLeft;
|
||||||
readonly attribute long clientWidth;
|
readonly attribute long clientWidth;
|
||||||
readonly attribute long clientHeight;
|
readonly attribute long clientHeight;
|
||||||
// FIXME: readonly attribute double currentCSSZoom;
|
readonly attribute double currentCSSZoom;
|
||||||
|
|
||||||
// https://w3c.github.io/DOM-Parsing/#extensions-to-the-element-interface
|
// https://w3c.github.io/DOM-Parsing/#extensions-to-the-element-interface
|
||||||
[CEReactions, LegacyNullToEmptyString] attribute DOMString outerHTML;
|
[CEReactions, LegacyNullToEmptyString] attribute DOMString outerHTML;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue