mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:02:43 +00:00 
			
		
		
		
	LibWeb: Rename Layout::Node::style() => computed_values()
This commit is contained in:
		
							parent
							
								
									e187a5365a
								
							
						
					
					
						commit
						e5490ae1d1
					
				
					 6 changed files with 22 additions and 22 deletions
				
			
		|  | @ -57,7 +57,7 @@ Node::~Node() | |||
| 
 | ||||
| bool Node::can_contain_boxes_with_position_absolute() const | ||||
| { | ||||
|     return style().position() != CSS::Position::Static || is<InitialContainingBlockBox>(*this); | ||||
|     return computed_values().position() != CSS::Position::Static || is<InitialContainingBlockBox>(*this); | ||||
| } | ||||
| 
 | ||||
| const BlockBox* Node::containing_block() const | ||||
|  | @ -72,7 +72,7 @@ const BlockBox* Node::containing_block() const | |||
|     if (is<TextNode>(*this)) | ||||
|         return nearest_block_ancestor(); | ||||
| 
 | ||||
|     auto position = style().position(); | ||||
|     auto position = computed_values().position(); | ||||
| 
 | ||||
|     if (position == CSS::Position::Absolute) { | ||||
|         auto* ancestor = parent(); | ||||
|  | @ -186,19 +186,19 @@ bool Node::is_floating() const | |||
| { | ||||
|     if (!has_style()) | ||||
|         return false; | ||||
|     return style().float_() != CSS::Float::None; | ||||
|     return computed_values().float_() != CSS::Float::None; | ||||
| } | ||||
| 
 | ||||
| bool Node::is_positioned() const | ||||
| { | ||||
|     return has_style() && style().position() != CSS::Position::Static; | ||||
|     return has_style() && computed_values().position() != CSS::Position::Static; | ||||
| } | ||||
| 
 | ||||
| bool Node::is_absolutely_positioned() const | ||||
| { | ||||
|     if (!has_style()) | ||||
|         return false; | ||||
|     auto position = style().position(); | ||||
|     auto position = computed_values().position(); | ||||
|     return position == CSS::Position::Absolute || position == CSS::Position::Fixed; | ||||
| } | ||||
| 
 | ||||
|  | @ -206,7 +206,7 @@ bool Node::is_fixed_position() const | |||
| { | ||||
|     if (!has_style()) | ||||
|         return false; | ||||
|     auto position = style().position(); | ||||
|     auto position = computed_values().position(); | ||||
|     return position == CSS::Position::Fixed; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling