changeset 681:c5e18de0d8eb

remove border style definition for <img> from user-agent style
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Mon, 15 Dec 2008 17:01:24 +0100
parents d79762895bd9
children 7f134e04fe6a
files src/css.cc src/html.cc
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/css.cc	Mon Dec 15 16:40:50 2008 +0100
+++ b/src/css.cc	Mon Dec 15 17:01:24 2008 +0100
@@ -267,8 +267,7 @@
      ":visited {color: green; text-decoration: underline; cursor: pointer; } "
      "h1, h2, h3, h4, h5, h6, b, strong {font-weight: bolder; } "
      "i, em, cite, address {font-style: italic; } "
-     "img {border-style: solid } "
-     "img:link, img:visited {border-width: 1px } "
+     "img:link, img:visited {border: 1px solid } "
      "frameset, ul, ol, dir {margin-left: 40px} "
      "h1 {font-size: 2em; margin-top: .67em; margin-bottom: 0em;} "
      "h2 {font-size: 1.5em; margin-top: .75em; margin-bottom: 0em;} "
--- a/src/html.cc	Mon Dec 15 16:40:50 2008 +0100
+++ b/src/html.cc	Mon Dec 15 17:01:24 2008 +0100
@@ -2062,6 +2062,11 @@
          props.set (CssProperty::CSS_PROPERTY_BORDER_BOTTOM_WIDTH, border);
          props.set (CssProperty::CSS_PROPERTY_BORDER_LEFT_WIDTH, border);
          props.set (CssProperty::CSS_PROPERTY_BORDER_RIGHT_WIDTH, border);
+
+         props.set (CssProperty::CSS_PROPERTY_BORDER_TOP_STYLE, BORDER_SOLID);
+         props.set (CssProperty::CSS_PROPERTY_BORDER_BOTTOM_STYLE, BORDER_SOLID);
+         props.set (CssProperty::CSS_PROPERTY_BORDER_LEFT_STYLE, BORDER_SOLID);
+         props.set (CssProperty::CSS_PROPERTY_BORDER_RIGHT_STYLE, BORDER_SOLID);
       }
    }