mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibWeb: Respect the document's link_color for Linktext identifiers
This commit is contained in:
parent
ec190baa55
commit
7a766bdb83
3 changed files with 13 additions and 3 deletions
|
@ -194,8 +194,6 @@ Color IdentifierStyleValue::to_color(Optional<Layout::NodeWithStyle const&> node
|
|||
return SystemColor::highlight();
|
||||
case ValueID::Highlighttext:
|
||||
return SystemColor::highlight_text();
|
||||
case ValueID::Linktext:
|
||||
return SystemColor::link_text();
|
||||
case ValueID::Mark:
|
||||
return SystemColor::mark();
|
||||
case ValueID::Marktext:
|
||||
|
@ -216,7 +214,7 @@ Color IdentifierStyleValue::to_color(Optional<Layout::NodeWithStyle const&> node
|
|||
}
|
||||
|
||||
auto& document = node->document();
|
||||
if (id() == CSS::ValueID::LibwebLink)
|
||||
if (id() == CSS::ValueID::LibwebLink || id() == ValueID::Linktext)
|
||||
return document.link_color();
|
||||
|
||||
if (!document.page())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue