Changeset 96874 in webkit
- Timestamp:
- Oct 6, 2011 4:42:57 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r96873 r96874 1 2011-10-06 Dan Bernstein <mitz@apple.com> 2 3 <rdar://problem/9717490> Flash of white when navigating daringfireball.net 4 https://bugs.webkit.org/show_bug.cgi?id=69581 5 6 Reviewed by Darin Adler. 7 8 * platform/ScrollView.cpp: 9 (WebCore::ScrollView::updateScrollbars): Moved the calls to Scrollbar::setEnabled() into the code 10 section where invalidation is suppressed if necessary, so that they do not trigger premature invalidation. 11 1 12 2011-10-06 Dan Bernstein <mitz@apple.com> 2 13 -
trunk/Source/WebCore/platform/ScrollView.cpp
r96639 r96874 533 533 if (m_horizontalScrollbar) { 534 534 int clientWidth = visibleWidth(); 535 m_horizontalScrollbar->setEnabled(contentsWidth() > clientWidth);536 535 int pageStep = max(max<int>(clientWidth * Scrollbar::minFractionToStepWhenPaging(), clientWidth - Scrollbar::maxOverlapBetweenPages()), 1); 537 536 IntRect oldRect(m_horizontalScrollbar->frameRect()); … … 546 545 if (m_scrollbarsSuppressed) 547 546 m_horizontalScrollbar->setSuppressInvalidation(true); 547 m_horizontalScrollbar->setEnabled(contentsWidth() > clientWidth); 548 548 m_horizontalScrollbar->setSteps(Scrollbar::pixelsPerLineStep(), pageStep); 549 549 m_horizontalScrollbar->setProportion(clientWidth, contentsWidth()); … … 554 554 if (m_verticalScrollbar) { 555 555 int clientHeight = visibleHeight(); 556 m_verticalScrollbar->setEnabled(contentsHeight() > clientHeight);557 556 int pageStep = max(max<int>(clientHeight * Scrollbar::minFractionToStepWhenPaging(), clientHeight - Scrollbar::maxOverlapBetweenPages()), 1); 558 557 IntRect oldRect(m_verticalScrollbar->frameRect()); … … 567 566 if (m_scrollbarsSuppressed) 568 567 m_verticalScrollbar->setSuppressInvalidation(true); 568 m_verticalScrollbar->setEnabled(contentsHeight() > clientHeight); 569 569 m_verticalScrollbar->setSteps(Scrollbar::pixelsPerLineStep(), pageStep); 570 570 m_verticalScrollbar->setProportion(clientHeight, contentsHeight());
Note: See TracChangeset
for help on using the changeset viewer.