⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 179893 in webkit


Ignore:
Timestamp:
Feb 10, 2015, 3:49:28 PM (12 years ago)
Author:
bshafiei@apple.com
Message:

Merged r178490. rdar://problem/19709240

Location:
branches/safari-600.1.4.15-branch
Files:
3 edited
4 copied

Legend:

Unmodified
Added
Removed
  • branches/safari-600.1.4.15-branch/LayoutTests/ChangeLog

    r179892 r179893  
     12015-02-10  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Merge r178490.
     4
     5    2015-01-14  Simon Fraser  <simon.fraser@apple.com>
     6
     7            Graphics corruption after Find on some pages
     8            https://bugs.webkit.org/show_bug.cgi?id=140489
     9
     10            Reviewed by Zalan Bujtas.
     11
     12            Two new tests. The first one just reports that we have an opaque compositing
     13            layer. The second one tests the the user-visible symptom of the missing
     14            background.
     15
     16            * compositing/contents-opaque/opaque-with-scrolled-expected.txt: Added.
     17            * compositing/contents-opaque/opaque-with-scrolled.html: Added.
     18            * fast/backgrounds/opaque-scrolled-paint-background-expected.html: Added.
     19            * fast/backgrounds/opaque-scrolled-paint-background.html: Added.
     20
    1212015-02-10  Babak Shafiei  <bshafiei@apple.com>
    222
  • branches/safari-600.1.4.15-branch/Source/WebCore/ChangeLog

    r179892 r179893  
     12015-02-10  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Merge r178490.
     4
     5    2015-01-14  Simon Fraser  <simon.fraser@apple.com>
     6
     7            Graphics corruption after Find on some pages
     8            https://bugs.webkit.org/show_bug.cgi?id=140489
     9
     10            Reviewed by Zalan Bujtas.
     11
     12            After doing a Find on http://shop.outlier.cc/shop/retail/chino.html,
     13            garbage could appear on some parts of the page. This is caused by creating
     14            a compositing layer which is marked as opaque, yet failing to paint the entire
     15            layer contents.
     16
     17            This was caused by a bug in RenderBox::computeBackgroundIsKnownToBeObscured()
     18            logic. On the page in question, doing a Find could cause overflow:hidden sections
     19            to get scrolled (since Find can reveal the selection by scrolling overflow).
     20            However, the render tree walking under RenderBox::foregroundIsKnownToBeOpaqueInRect()
     21            fails to take overflow scrolling into account, so gives the wrong answer
     22            in some content configurations. As a result, we'd think that the background
     23            is obscured, and never paint it.
     24
     25            Conservative fix is to have isCandidateForOpaquenessTest() return false
     26            when the content has any non-zero scroll offset.
     27
     28            Tests: compositing/contents-opaque/opaque-with-scrolled.html
     29                   fast/backgrounds/opaque-scrolled-paint-background.html
     30
     31            * rendering/RenderBox.cpp:
     32            (WebCore::isCandidateForOpaquenessTest):
     33
    1342015-02-10  Babak Shafiei  <bshafiei@apple.com>
    235
  • branches/safari-600.1.4.15-branch/Source/WebCore/rendering/RenderBox.cpp

    r179032 r179893  
    13971397            return false;
    13981398        if (childLayer->hasTransform() || childLayer->isTransparent() || childLayer->hasFilter())
     1399            return false;
     1400        if (!childBox.scrolledContentOffset().isZero())
    13991401            return false;
    14001402    }
Note: See TracChangeset for help on using the changeset viewer.