mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Remove the inherited_style getter from StyleBuilder.
The concept of inherited style is about to get a bit more complicated, and this will prevent consumers from doing it wrong. Part 1 of Gecko bug1382806. r=emilio
This commit is contained in:
parent
799988578e
commit
648c0a3d0b
8 changed files with 53 additions and 33 deletions
|
@ -446,7 +446,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
let relevant_link_visited = if flags.contains(IS_LINK) {
|
||||
flags.contains(IS_VISITED_LINK)
|
||||
} else {
|
||||
self.style.inherited_style().flags.contains(IS_RELEVANT_LINK_VISITED)
|
||||
self.style.inherited_flags().contains(IS_RELEVANT_LINK_VISITED)
|
||||
};
|
||||
|
||||
if relevant_link_visited {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue