Commit 53f3dec7 authored by hyatt's avatar hyatt
Browse files

Fix Hixie's blog. Background images can be transparent, so

	if the root's color isn't valid always do a fixup even if you
	have a valid background image.

        * khtml/rendering/render_html.cpp:
        (RenderHtml::printBoxDecorations):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2698 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent df95e87e
2002-11-15 David Hyatt <hyatt@apple.com>
Fix Hixie's blog. Background images can be transparent, so
if the root's color isn't valid always do a fixup even if you
have a valid background image.
* khtml/rendering/render_html.cpp:
(RenderHtml::printBoxDecorations):
2002-11-15 Darin Adler <darin@apple.com>
 
* kwq/KWQWindowWidget.mm: (KWQWindowWidget::setFrameGeometry):
......
2002-11-15 David Hyatt <hyatt@apple.com>
Fix Hixie's blog. Background images can be transparent, so
if the root's color isn't valid always do a fixup even if you
have a valid background image.
* khtml/rendering/render_html.cpp:
(RenderHtml::printBoxDecorations):
2002-11-15 Darin Adler <darin@apple.com>
 
* kwq/KWQWindowWidget.mm: (KWQWindowWidget::setFrameGeometry):
......
2002-11-15 David Hyatt <hyatt@apple.com>
Fix Hixie's blog. Background images can be transparent, so
if the root's color isn't valid always do a fixup even if you
have a valid background image.
* khtml/rendering/render_html.cpp:
(RenderHtml::printBoxDecorations):
2002-11-15 Darin Adler <darin@apple.com>
 
* kwq/KWQWindowWidget.mm: (KWQWindowWidget::setFrameGeometry):
......
......@@ -68,10 +68,11 @@ void RenderHtml::printBoxDecorations(QPainter *p,int, int _y,
c = firstChild()->style()->backgroundColor();
if (!bg)
bg = firstChild()->style()->backgroundImage();
if( !c.isValid() && root()->view())
c = root()->view()->palette().active().color(QColorGroup::Base);
}
if( !c.isValid() && root()->view())
c = root()->view()->palette().active().color(QColorGroup::Base);
int w = width();
int h = height();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment