Changeset 52379 in webkit


Ignore:
Timestamp:
Dec 18, 2009 10:40:22 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-18 Peter Kasting <pkasting@google.com>

Reviewed by Simon Fraser.

Add a comment about some confusing code that otherwise would look like
it might be a bug.
https://bugs.webkit.org/show_bug.cgi?id=32534

  • rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateScrollInfoAfterLayout):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r52375 r52379  
     12009-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
    1122009-12-18  Nikolas Zimmermann  <nzimmermann@rim.com>
    213
  • trunk/WebCore/rendering/RenderLayer.cpp

    r52341 r52379  
    18911891        m_hBar->setSteps(cScrollbarPixelsPerLineStep, pageStep);
    18921892        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).
    18931901        m_hBar->setValue(scrollXOffset());
    18941902    }
Note: See TracChangeset for help on using the changeset viewer.