mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement getComputedStyle
This commit is contained in:
parent
416931f4be
commit
e484d6b5e3
24 changed files with 886 additions and 152 deletions
|
@ -1989,7 +1989,7 @@ impl Fragment {
|
|||
if self.style().get_effects().mix_blend_mode != mix_blend_mode::T::normal {
|
||||
return true
|
||||
}
|
||||
if self.style().get_effects().transform.is_some() {
|
||||
if self.style().get_effects().transform.0.is_some() {
|
||||
return true
|
||||
}
|
||||
match self.style().get_used_transform_style() {
|
||||
|
@ -2036,7 +2036,7 @@ impl Fragment {
|
|||
let mut overflow = border_box;
|
||||
|
||||
// Box shadows cause us to draw outside our border box.
|
||||
for box_shadow in self.style().get_effects().box_shadow.iter() {
|
||||
for box_shadow in self.style().get_effects().box_shadow.0.iter() {
|
||||
let offset = Point2D::new(box_shadow.offset_x, box_shadow.offset_y);
|
||||
let inflation = box_shadow.spread_radius + box_shadow.blur_radius *
|
||||
BLUR_INFLATION_FACTOR;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue