Changeset 179893 in webkit
- Timestamp:
- Feb 10, 2015, 3:49:28 PM (12 years ago)
- Location:
- branches/safari-600.1.4.15-branch
- Files:
-
- 3 edited
- 4 copied
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/compositing/contents-opaque/opaque-with-scrolled-expected.txt (copied) (copied from trunk/LayoutTests/compositing/contents-opaque/opaque-with-scrolled-expected.txt )
-
LayoutTests/compositing/contents-opaque/opaque-with-scrolled.html (copied) (copied from trunk/LayoutTests/compositing/contents-opaque/opaque-with-scrolled.html )
-
LayoutTests/fast/backgrounds/opaque-scrolled-paint-background-expected.html (copied) (copied from trunk/LayoutTests/fast/backgrounds/opaque-scrolled-paint-background-expected.html )
-
LayoutTests/fast/backgrounds/opaque-scrolled-paint-background.html (copied) (copied from trunk/LayoutTests/fast/backgrounds/opaque-scrolled-paint-background.html )
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderBox.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-600.1.4.15-branch/LayoutTests/ChangeLog
r179892 r179893 1 2015-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 1 21 2015-02-10 Babak Shafiei <bshafiei@apple.com> 2 22 -
branches/safari-600.1.4.15-branch/Source/WebCore/ChangeLog
r179892 r179893 1 2015-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 1 34 2015-02-10 Babak Shafiei <bshafiei@apple.com> 2 35 -
branches/safari-600.1.4.15-branch/Source/WebCore/rendering/RenderBox.cpp
r179032 r179893 1397 1397 return false; 1398 1398 if (childLayer->hasTransform() || childLayer->isTransparent() || childLayer->hasFilter()) 1399 return false; 1400 if (!childBox.scrolledContentOffset().isZero()) 1399 1401 return false; 1400 1402 }
Note:
See TracChangeset
for help on using the changeset viewer.