mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 04:34:59 +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
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