Changeset 50796 in webkit


Ignore:
Timestamp:
Nov 11, 2009 1:38:36 AM (15 years ago)
Author:
eric@webkit.org
Message:

2009-11-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>

Reviewed by Eric Seidel.

[Qt] Make the default style background color valid.
Currently the color is transparent but invalid, this causes
list boxes in QtWebKit to be drawn with a black background
since r49242.
https://bugs.webkit.org/show_bug.cgi?id=31295

  • rendering/style/RenderStyle.h: (WebCore::InheritedFlags::initialBackgroundColor):
  • rendering/style/StyleBackgroundData.cpp: (WebCore::StyleBackgroundData::StyleBackgroundData):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r50792 r50796  
     12009-11-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [Qt] Make the default style background color valid.
     6        Currently the color is transparent but invalid, this causes
     7        list boxes in QtWebKit to be drawn with a black background
     8        since r49242.
     9        https://bugs.webkit.org/show_bug.cgi?id=31295
     10
     11        * rendering/style/RenderStyle.h:
     12        (WebCore::InheritedFlags::initialBackgroundColor):
     13        * rendering/style/StyleBackgroundData.cpp:
     14        (WebCore::StyleBackgroundData::StyleBackgroundData):
     15
    1162009-11-10  Gavin Barraclough  <barraclough@apple.com>
    217
  • trunk/WebCore/rendering/style/RenderStyle.h

    r50760 r50796  
    11821182    static Length initialPerspectiveOriginX() { return Length(50.0, Percent); }
    11831183    static Length initialPerspectiveOriginY() { return Length(50.0, Percent); }
     1184    static Color initialBackgroundColor() { return Color::transparent; }
    11841185
    11851186    // Keep these at the end.
  • trunk/WebCore/rendering/style/StyleBackgroundData.cpp

    r36587 r50796  
    2323#include "StyleBackgroundData.h"
    2424
     25#include "RenderStyle.h"
    2526#include "RenderStyleConstants.h"
    2627
     
    2930StyleBackgroundData::StyleBackgroundData()
    3031    : m_background(BackgroundFillLayer)
     32    , m_color(RenderStyle::initialBackgroundColor())
    3133{
    3234}
Note: See TracChangeset for help on using the changeset viewer.