Changeset 21329 in webkit
- Timestamp:
- May 9, 2007 12:52:41 AM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r21328 r21329 1 2007-05-09 Mitz Pettel <mitz@webkit.org> 2 3 Reviewed by Dave Hyatt. 4 5 - fix http://bugs.webkit.org/show_bug.cgi?id=13037 6 REGRESSION: Copy-on-scroll not reset properly after back/forward navigation 7 8 * page/FrameView.cpp: 9 (WebCore::FrameViewPrivate::FrameViewPrivate): Moved initialization of 10 m_slowRepaintObjectCount here. 11 (WebCore::FrameViewPrivate::reset): Do not reset the slow repaint object 12 count here. 13 (WebCore::FrameView::useSlowRepaints): 14 (WebCore::FrameView::addSlowRepaintObject): 15 (WebCore::FrameView::removeSlowRepaintObject): Added an assertion that the 16 object count is positive. 17 * rendering/RenderObject.cpp: 18 (WebCore::RenderObject::setStyle): Corrected a mix up between old and new 19 style, which caused the object count to be decremented when it was supposed 20 to be incremented and vice versa. 21 1 22 2007-05-09 Peter Müller <pm@one.com> 2 23 -
trunk/WebCore/page/FrameView.cpp
r21183 r21329 55 55 public: 56 56 FrameViewPrivate(FrameView* view) 57 : layoutTimer(view, &FrameView::layoutTimerFired) 57 : m_slowRepaintObjectCount(0) 58 , layoutTimer(view, &FrameView::layoutTimerFired) 58 59 , m_mediaType("screen") 59 60 , m_enqueueEvents(0) … … 70 71 { 71 72 useSlowRepaints = false; 72 slowRepaintObjectCount = 0;73 73 borderX = 30; 74 74 borderY = 30; … … 88 88 ScrollbarMode hmode; 89 89 bool useSlowRepaints; 90 unsigned slowRepaintObjectCount;90 unsigned m_slowRepaintObjectCount; 91 91 92 92 int borderX, borderY; … … 550 550 bool FrameView::useSlowRepaints() const 551 551 { 552 return d->useSlowRepaints || d-> slowRepaintObjectCount > 0;552 return d->useSlowRepaints || d->m_slowRepaintObjectCount > 0; 553 553 } 554 554 … … 561 561 void FrameView::addSlowRepaintObject() 562 562 { 563 if ( d->slowRepaintObjectCount == 0)563 if (!d->m_slowRepaintObjectCount) 564 564 setStaticBackground(true); 565 d-> slowRepaintObjectCount++;565 d->m_slowRepaintObjectCount++; 566 566 } 567 567 568 568 void FrameView::removeSlowRepaintObject() 569 569 { 570 d->slowRepaintObjectCount--; 571 if (d->slowRepaintObjectCount == 0) 570 ASSERT(d->m_slowRepaintObjectCount > 0); 571 d->m_slowRepaintObjectCount--; 572 if (!d->m_slowRepaintObjectCount) 572 573 setStaticBackground(d->useSlowRepaints); 573 574 } -
trunk/WebCore/rendering/RenderObject.cpp
r21216 r21329 2256 2256 // FIXME: A better solution would be to only invalidate the fixed regions when scrolling. It's overkill to 2257 2257 // prevent the entire view from blitting on a scroll. 2258 bool oldStyleSlowScroll = style && (style->position() == FixedPosition || style->hasFixedBackgroundImage());2259 bool newStyleSlowScroll = m_style && (m_style->position() == FixedPosition || m_style->hasFixedBackgroundImage());2258 bool newStyleSlowScroll = style && (style->position() == FixedPosition || style->hasFixedBackgroundImage()); 2259 bool oldStyleSlowScroll = m_style && (m_style->position() == FixedPosition || m_style->hasFixedBackgroundImage()); 2260 2260 if (oldStyleSlowScroll != newStyleSlowScroll) { 2261 2261 if (oldStyleSlowScroll)
Note: See TracChangeset
for help on using the changeset viewer.