Changeset 23944 in webkit
- Timestamp:
- Jul 3, 2007 6:42:11 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r23941 r23944 1 2007-07-03 Antti Koivisto <antti@apple.com> 2 3 Reviewed by Maciej. 4 5 Test for REGRESSION: misplaced selection ring remains after link is no longer focused. 6 <rdar://problem/5205580> 7 8 * fast/repaint/focus-layers-expected.checksum: Added. 9 * fast/repaint/focus-layers-expected.png: Added. 10 * fast/repaint/focus-layers-expected.txt: Added. 11 * fast/repaint/focus-layers.html: Added. 12 1 13 2007-07-02 Adam Roben <aroben@apple.com> 2 14 -
trunk/WebCore/ChangeLog
r23943 r23944 1 2007-07-03 Antti Koivisto <antti@apple.com> 2 3 Reviewed by Maciej. 4 5 REGRESSION: misplaced selection ring remains after link is no longer focused. 6 <rdar://problem/5205580> 7 8 Fix placement of selection ring when part of the ring is in a different layer. 9 10 * rendering/RenderFlow.cpp: 11 (WebCore::RenderFlow::addFocusRingRects): Get coordinates right when moving to a different layer. 12 * rendering/RenderObject.cpp: 13 (WebCore::RenderObject::setStyle): 14 Don't reset state variables when not necessary. When repaint() was called at the end of setSyle() it would 15 get repaint rects wrong in some cases. 16 1 17 2007-07-03 Antti Koivisto <antti@apple.com> 2 18 -
trunk/WebCore/rendering/RenderFlow.cpp
r21605 r23944 690 690 691 691 for (RenderObject* curr = firstChild(); curr; curr = curr->nextSibling()) 692 if (!curr->isText() && !curr->isListMarker()) 693 curr->addFocusRingRects(graphicsContext, tx + curr->xPos(), ty + curr->yPos()); 692 if (!curr->isText() && !curr->isListMarker()) { 693 int x = 0; 694 int y = 0; 695 if (curr->layer()) 696 curr->absolutePosition(x, y); 697 else { 698 x = tx + curr->xPos(); 699 y = ty + curr->yPos(); 700 } 701 curr->addFocusRingRects(graphicsContext, x, y); 702 } 694 703 } 695 704 -
trunk/WebCore/rendering/RenderObject.cpp
r23809 r23944 2275 2275 2276 2276 // reset style flags 2277 m_floating = false; 2278 m_positioned = false; 2279 m_relPositioned = false; 2277 if (d == RenderStyle::Layout) { 2278 m_floating = false; 2279 m_positioned = false; 2280 m_relPositioned = false; 2281 } 2280 2282 m_paintBackground = false; 2281 2283 m_hasOverflowClip = false;
Note: See TracChangeset
for help on using the changeset viewer.