Changeset 154311 in webkit
- Timestamp:
- Aug 19, 2013 9:49:37 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r154308 r154311 1 2013-08-19 Ryosuke Niwa <rniwa@webkit.org> 2 3 <https://webkit.org/b/120041> Remove superfluous min calls in RenderBlock::computeOverflow 4 5 Reviewed by Simon Fraser. 6 7 Merge https://chromium.googlesource.com/chromium/blink/+/29cad35d6b4642804e6b7c1a30f0b4435dd7a71d 8 9 They are contained in an "if" statement that ensures that textIndent < 0 and so the min will never be 0. 10 11 * rendering/RenderBlock.cpp: 12 (WebCore::RenderBlock::computeOverflow): 13 1 14 2013-08-19 Ryosuke Niwa <rniwa@webkit.org> 2 15 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r154286 r154311 1820 1820 if (textIndent < 0) { 1821 1821 LayoutRect clientRect(clientBoxRect()); 1822 LayoutRect rectToApply = LayoutRect(clientRect.x() + min<LayoutUnit>(0, textIndent), clientRect.y(), clientRect.width() - min<LayoutUnit>(0, textIndent), clientRect.height());1822 LayoutRect rectToApply = LayoutRect(clientRect.x() + textIndent, clientRect.y(), clientRect.width() - min<LayoutUnit>(0, textIndent), clientRect.height()); 1823 1823 addVisualOverflow(rectToApply); 1824 1824 }
Note: See TracChangeset
for help on using the changeset viewer.