mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +00:00
LibWeb: Rename LayoutNode::is_root() => is_initial_containing_block()
Let's use spec language for this. :^)
This commit is contained in:
parent
e0809f78a9
commit
169a9150cb
6 changed files with 8 additions and 8 deletions
|
@ -49,7 +49,7 @@ StackingContext::StackingContext(Box& box, StackingContext* parent)
|
|||
|
||||
void StackingContext::paint(PaintContext& context, PaintPhase phase)
|
||||
{
|
||||
if (!m_box.is_root()) {
|
||||
if (!m_box.is_initial_containing_block()) {
|
||||
m_box.paint(context, phase);
|
||||
} else {
|
||||
// NOTE: InitialContainingBlockBox::paint() merely calls StackingContext::paint()
|
||||
|
@ -64,7 +64,7 @@ void StackingContext::paint(PaintContext& context, PaintPhase phase)
|
|||
HitTestResult StackingContext::hit_test(const Gfx::IntPoint& position, HitTestType type) const
|
||||
{
|
||||
HitTestResult result;
|
||||
if (!m_box.is_root()) {
|
||||
if (!m_box.is_initial_containing_block()) {
|
||||
result = m_box.hit_test(position, type);
|
||||
} else {
|
||||
// NOTE: InitialContainingBlockBox::hit_test() merely calls StackingContext::hit_test()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue