Changeset 25487 in webkit


Ignore:
Timestamp:
Sep 10, 2007 10:19:57 PM (17 years ago)
Author:
bdash
Message:

2007-09-10 Mitz Pettel <mitz@webkit.org>

Reviewed by Maciej Stachowiak.

Test: fast/repaint/body-background-image.html

  • rendering/RenderBox.cpp: (WebCore::RenderBox::imageChanged): Refined the logic for when the root takes over painting the background, to match paintBoxDecorations(). In particular, if the root has defined a background, the body should paint its own background.

2007-09-10 Mitz Pettel <mitz@webkit.org>

Reviewed by Maciej Stachowiak.

  • fast/repaint/body-background-image.html: Added.
  • platform/mac/fast/repaint/body-background-image-expected.checksum: Added.
  • platform/mac/fast/repaint/body-background-image-expected.png: Added.
  • platform/mac/fast/repaint/body-background-image-expected.txt: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r25484 r25487  
     12007-09-10  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        - repaint test for http://bugs.webkit.org/show_bug.cgi?id=15157
     6          Image defined in background-position: top center gets unexpectedly truncated
     7          <rdar://problem/5469095>
     8
     9        * fast/repaint/body-background-image.html: Added.
     10        * platform/mac/fast/repaint/body-background-image-expected.checksum: Added.
     11        * platform/mac/fast/repaint/body-background-image-expected.png: Added.
     12        * platform/mac/fast/repaint/body-background-image-expected.txt: Added.
     13
    1142007-09-10  David Harrison  <harrison@apple.com>
    215
  • trunk/WebCore/ChangeLog

    r25484 r25487  
     12007-09-10  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=15157
     6          Image defined in background-position: top center gets unexpectedly truncated
     7          <rdar://problem/5469095>
     8
     9        Test: fast/repaint/body-background-image.html
     10
     11        * rendering/RenderBox.cpp:
     12        (WebCore::RenderBox::imageChanged): Refined the logic for when the root takes
     13        over painting the background, to match paintBoxDecorations(). In particular,
     14        if the root has defined a background, the body should paint its own background.
     15
    1162007-09-10  David Harrison  <harrison@apple.com>
    217
  • trunk/WebCore/rendering/RenderBox.cpp

    r24970 r25487  
    469469    RenderBox* backgroundRenderer;
    470470
    471     if (isBody() || isRoot()) {
     471    if (isRoot() || (isBody() && document()->isHTMLDocument() && !document()->documentElement()->renderer()->style()->hasBackground())) {
    472472        // Our background propagates to the root.
    473473        backgroundRenderer = view();
Note: See TracChangeset for help on using the changeset viewer.