Changeset 154311 in webkit


Ignore:
Timestamp:
Aug 19, 2013 9:49:37 PM (11 years ago)
Author:
rniwa@webkit.org
Message:

<https://webkit.org/b/120041> Remove superfluous min calls in RenderBlock::computeOverflow

Reviewed by Simon Fraser.

Merge https://chromium.googlesource.com/chromium/blink/+/29cad35d6b4642804e6b7c1a30f0b4435dd7a71d

They are contained in an "if" statement that ensures that textIndent < 0 and so the min will never be 0.

  • rendering/RenderBlock.cpp:

(WebCore::RenderBlock::computeOverflow):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r154308 r154311  
     12013-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
    1142013-08-19  Ryosuke Niwa  <rniwa@webkit.org>
    215
  • trunk/Source/WebCore/rendering/RenderBlock.cpp

    r154286 r154311  
    18201820    if (textIndent < 0) {
    18211821        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());
    18231823        addVisualOverflow(rectToApply);
    18241824    }
Note: See TracChangeset for help on using the changeset viewer.