mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
layout: Implement basic style sharing.
No improvement on the rainbow page, but necessary for some other optimizations we want to do.
This commit is contained in:
parent
cf8203848a
commit
1678cc9a88
16 changed files with 502 additions and 274 deletions
|
@ -794,7 +794,7 @@ impl Flow for InlineFlow {
|
|||
//
|
||||
// The spec does not state which font to use. Previous versions of the code used
|
||||
// the parent's font; this code uses the current font.
|
||||
let parent_text_top = cur_box.style().Font.font_size;
|
||||
let parent_text_top = cur_box.style().Font.get().font_size;
|
||||
|
||||
// We should calculate the distance from baseline to the bottom of the parent's
|
||||
// content area. But for now we assume it's zero.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue