ladybird/Libraries/LibHTML/DOM
Andreas Kling 9808d35554 LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb">
This patch implements basic support for presentational hints, which are
old-school HTML attributes that affect style.

You add support for a presentational hint attribute by overriding
Element::apply_presentational_hints(StyleProperties&) and setting all
of the corresponding CSS properties as appropriate.

To make the background color fill the entire document, not just the
bounds of the <body> element's LayoutNode, we special-case it in the
HtmlView::paint_event() code for now. I'm not entirely sure what the
nicest solution would be, but I'm sure we'll discover it eventually.
2019-10-04 21:05:52 +02:00
..
Document.cpp LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
Document.h LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
Element.cpp LibHTML: Make sure every DOM Node belongs to a Document 2019-09-29 11:43:07 +02:00
Element.h LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
HTMLAnchorElement.cpp LibHTML: Detect hovering over links 2019-09-29 11:59:38 +02:00
HTMLAnchorElement.h LibHTML: Detect hovering over links 2019-09-29 11:59:38 +02:00
HTMLBodyElement.cpp LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
HTMLBodyElement.h LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
HTMLElement.cpp LibHTML: Detect hovering over links 2019-09-29 11:59:38 +02:00
HTMLElement.h LibHTML: Implement basic HTMLElement.title support 2019-09-29 12:26:13 +02:00
HTMLHeadElement.cpp LibHTML: Add a way to get a Document's title 2019-09-29 16:24:57 +02:00
HTMLHeadElement.h LibHTML: Add a way to get a Document's title 2019-09-29 16:24:57 +02:00
HTMLHeadingElement.cpp LibHTML: Add HTMLHeadingElement for <h1> through <h6> 2019-09-29 12:26:15 +02:00
HTMLHeadingElement.h LibHTML: Add HTMLHeadingElement for <h1> through <h6> 2019-09-29 12:26:15 +02:00
HTMLHRElement.cpp LibHTML: Implement the <hr> element 2019-10-01 20:50:11 +02:00
HTMLHRElement.h LibHTML: Implement the <hr> element 2019-10-01 20:50:11 +02:00
HTMLHtmlElement.cpp LibHTML: Add a way to get a Document's title 2019-09-29 16:24:57 +02:00
HTMLHtmlElement.h LibHTML: Add a way to get a Document's title 2019-09-29 16:24:57 +02:00
HTMLStyleElement.cpp LibHTML: Add a simple <style> element for inline CSS 2019-09-29 17:45:42 +02:00
HTMLStyleElement.h LibHTML: Add a simple <style> element for inline CSS 2019-09-29 17:45:42 +02:00
HTMLTitleElement.cpp LibHTML: Add a way to get a Document's title 2019-09-29 16:24:57 +02:00
HTMLTitleElement.h LibHTML: Add a way to get a Document's title 2019-09-29 16:24:57 +02:00
Node.cpp LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
Node.h LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
ParentNode.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
ParentNode.h LibHTML: Make sure every DOM Node belongs to a Document 2019-09-29 11:43:07 +02:00
Text.cpp LibHTML: Make sure every DOM Node belongs to a Document 2019-09-29 11:43:07 +02:00
Text.h LibHTML: Add Node::text_content() 2019-09-29 16:23:09 +02:00