mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 00:38:48 +00:00
LibWeb/DOM: Rename Node::{paint => paintable}_box()
It returns a PaintableBox, not a 'PaintBox'.
This commit is contained in:
parent
754e458d0a
commit
d58b671ff6
Notes:
sideshowbarker
2024-07-17 06:40:21 +09:00
Author: https://github.com/linusg
Commit: d58b671ff6
Pull-request: https://github.com/SerenityOS/serenity/pull/18440
8 changed files with 25 additions and 25 deletions
|
@ -112,8 +112,8 @@ unsigned HTMLImageElement::width() const
|
|||
const_cast<DOM::Document&>(document()).update_layout();
|
||||
|
||||
// Return the rendered width of the image, in CSS pixels, if the image is being rendered.
|
||||
if (auto* paint_box = this->paint_box())
|
||||
return paint_box->content_width().value();
|
||||
if (auto* paintable_box = this->paintable_box())
|
||||
return paintable_box->content_width().value();
|
||||
|
||||
// NOTE: This step seems to not be in the spec, but all browsers do it.
|
||||
auto width_attr = get_attribute(HTML::AttributeNames::width);
|
||||
|
@ -140,8 +140,8 @@ unsigned HTMLImageElement::height() const
|
|||
const_cast<DOM::Document&>(document()).update_layout();
|
||||
|
||||
// Return the rendered height of the image, in CSS pixels, if the image is being rendered.
|
||||
if (auto* paint_box = this->paint_box())
|
||||
return paint_box->content_height().value();
|
||||
if (auto* paintable_box = this->paintable_box())
|
||||
return paintable_box->content_height().value();
|
||||
|
||||
// NOTE: This step seems to not be in the spec, but all browsers do it.
|
||||
auto height_attr = get_attribute(HTML::AttributeNames::height);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue