Changeset 201407 in webkit
- Timestamp:
- May 25, 2016 4:01:51 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r201404 r201407 1 2016-05-25 Zalan Bujtas <zalan@apple.com> 2 3 Setting overflow:hidden does not always repaint clipped content. 4 https://bugs.webkit.org/show_bug.cgi?id=116994 5 rdar://problem/26476697 6 7 Issue repaint for both layout and visual overflow rects when the container starts 8 clipping overflow content. 9 10 Reviewed by David Hyatt. 11 12 * fast/repaint/overflow-hidden-repaint-expected.html: Added. 13 * fast/repaint/overflow-hidden-repaint.html: Added. 14 1 15 2016-05-25 Daniel Bates <dabates@apple.com> and Brent Fulgham <bfulgham@apple.com> 2 16 -
trunk/Source/WebCore/ChangeLog
r201406 r201407 1 2016-05-25 Zalan Bujtas <zalan@apple.com> 2 3 Setting overflow:hidden does not always repaint clipped content. 4 https://bugs.webkit.org/show_bug.cgi?id=116994 5 rdar://problem/26476697 6 7 Issue repaint for both layout and visual overflow rects when the container starts 8 clipping overflow content. 9 10 Reviewed by David Hyatt. 11 12 Test: fast/repaint/overflow-hidden-repaint.html 13 14 * rendering/RenderBox.cpp: 15 (WebCore::RenderBox::updateFromStyle): 16 1 17 2016-05-25 Anders Carlsson <andersca@apple.com> 2 18 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r201205 r201407 517 517 } 518 518 } 519 520 519 // Check for overflow clip. 521 520 // It's sufficient to just check one direction, since it's illegal to have visible on only one overflow value. 522 521 if (boxHasOverflowClip) { 523 if (!s_hadOverflowClip) 524 // Erase the overflow 525 repaint(); 522 if (!s_hadOverflowClip && hasRenderOverflow()) { 523 // Erase the overflow. 524 // Overflow changes have to result in immediate repaints of the entire layout overflow area because 525 // repaints issued by removal of descendants get clipped using the updated style when they shouldn't. 526 repaintRectangle(visualOverflowRect()); 527 repaintRectangle(layoutOverflowRect()); 528 } 526 529 setHasOverflowClip(); 527 530 } 528 531 } 529 530 532 setHasTransformRelatedProperty(styleToUse.hasTransformRelatedProperty()); 531 533 setHasReflection(styleToUse.boxReflect());
Note: See TracChangeset
for help on using the changeset viewer.