Changeset 100201 in webkit
- Timestamp:
- Nov 14, 2011, 3:33:30 PM (15 years ago)
- Location:
- branches/subpixellayout/Source/WebCore
- Files:
-
- 4 edited
-
html/TextFieldInputType.cpp (modified) (1 diff)
-
rendering/RenderLayer.cpp (modified) (3 diffs)
-
rendering/RenderLayer.h (modified) (3 diffs)
-
rendering/RenderTreeAsText.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/subpixellayout/Source/WebCore/html/TextFieldInputType.cpp
r98391 r100201 148 148 if (RenderBox* innerTextRenderer = innerTextElement()->renderBox()) { 149 149 if (RenderLayer* innerLayer = innerTextRenderer->layer()) 150 innerLayer->scrollToOffset(!renderTextControl->style()->isLeftToRightDirection() ? innerLayer->scrollWidth() : LayoutUnit(0), 0, RenderLayer::ScrollOffsetClamped);150 innerLayer->scrollToOffset(!renderTextControl->style()->isLeftToRightDirection() ? innerLayer->scrollWidth() : 0, 0, RenderLayer::ScrollOffsetClamped); 151 151 } 152 152 -
branches/subpixellayout/Source/WebCore/rendering/RenderLayer.cpp
r100188 r100201 2164 2164 } 2165 2165 2166 LayoutUnit RenderLayer::scrollWidth()2166 int RenderLayer::scrollWidth() 2167 2167 { 2168 2168 if (m_scrollDimensionsDirty) … … 2171 2171 } 2172 2172 2173 LayoutUnit RenderLayer::scrollHeight()2173 int RenderLayer::scrollHeight() 2174 2174 { 2175 2175 if (m_scrollDimensionsDirty) … … 2216 2216 2217 2217 m_scrollDimensionsDirty = false; 2218 2219 m_scrollOverflow.setWidth(overflowLeft() - box->borderLeft()); 2220 m_scrollOverflow.setHeight(overflowTop() - box->borderTop()); 2221 2222 m_scrollSize.setWidth(overflowRight() - overflowLeft()); 2223 m_scrollSize.setHeight(overflowBottom() - overflowTop()); 2224 2218 m_scrollOverflow.setWidth((overflowLeft() - box->borderLeft()).round()); 2219 m_scrollOverflow.setHeight((overflowTop() - box->borderTop()).round()); 2220 2221 m_scrollSize.setWidth((overflowRight() - overflowLeft()).round()); 2222 m_scrollSize.setHeight((overflowBottom() - overflowTop()).round()); 2223 2225 2224 setScrollOrigin(IntPoint(-m_scrollOverflow.width(), -m_scrollOverflow.height())); 2226 2225 -
branches/subpixellayout/Source/WebCore/rendering/RenderLayer.h
r100188 r100201 268 268 LayoutRect rect() const { return LayoutRect(location(), size()); } 269 269 270 LayoutUnit scrollWidth();271 LayoutUnit scrollHeight();270 int scrollWidth(); 271 int scrollHeight(); 272 272 273 273 void panScrollFromPoint(const LayoutPoint&); … … 281 281 void scrollByRecursively(LayoutUnit xDelta, LayoutUnit yDelta, ScrollOffsetClamping = ScrollOffsetUnclamped); 282 282 283 LayoutSize scrolledContentOffset() const { return scrollOffset() + m_scrollOverflow; }283 IntSize scrolledContentOffset() const { return scrollOffset() + m_scrollOverflow; } 284 284 285 285 int scrollXOffset() const { return m_scrollOffset.width() + scrollOrigin().x(); } … … 789 789 IntSize m_scrollOffset; 790 790 791 LayoutSize m_scrollOverflow;791 IntSize m_scrollOverflow; 792 792 793 793 // The width/height of our scrolled area. -
branches/subpixellayout/Source/WebCore/rendering/RenderTreeAsText.cpp
r100189 r100201 667 667 ts << " scrollY " << l.scrollYOffset(); 668 668 if (l.renderBox() && l.renderBox()->clientWidth() != l.scrollWidth()) 669 ts << " scrollWidth " << l.scrollWidth() .toInt();669 ts << " scrollWidth " << l.scrollWidth(); 670 670 if (l.renderBox() && l.renderBox()->clientHeight() != l.scrollHeight()) 671 ts << " scrollHeight " << l.scrollHeight() .toInt();671 ts << " scrollHeight " << l.scrollHeight(); 672 672 } 673 673
Note:
See TracChangeset
for help on using the changeset viewer.