Changeset 52379 in webkit
- Timestamp:
- Dec 18, 2009 10:40:22 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r52375 r52379 1 2009-12-18 Peter Kasting <pkasting@google.com> 2 3 Reviewed by Simon Fraser. 4 5 Add a comment about some confusing code that otherwise would look like 6 it might be a bug. 7 https://bugs.webkit.org/show_bug.cgi?id=32534 8 9 * rendering/RenderLayer.cpp: 10 (WebCore::RenderLayer::updateScrollInfoAfterLayout): 11 1 12 2009-12-18 Nikolas Zimmermann <nzimmermann@rim.com> 2 13 -
trunk/WebCore/rendering/RenderLayer.cpp
r52341 r52379 1891 1891 m_hBar->setSteps(cScrollbarPixelsPerLineStep, pageStep); 1892 1892 m_hBar->setProportion(clientWidth, m_scrollWidth); 1893 // Explicitly set the horizontal scroll value. This ensures that when a 1894 // right-to-left scrollable area's width (or content width) changes, the 1895 // top right corner of the content doesn't shift with respect to the top 1896 // right corner of the area. Conceptually, right-to-left areas have 1897 // their origin at the top-right, but RenderLayer is top-left oriented, 1898 // so this is needed to keep everything working (see how scrollXOffset() 1899 // differs from scrollYOffset() to get an idea of why the horizontal and 1900 // vertical scrollbars need to be treated differently). 1893 1901 m_hBar->setValue(scrollXOffset()); 1894 1902 }
Note: See TracChangeset
for help on using the changeset viewer.