Changeset 149028 in webkit


Ignore:
Timestamp:
Apr 24, 2013 5:17:32 AM (11 years ago)
Author:
kangil.han@samsung.com
Message:

[Minor code cleanup] Remove duplicated condition check
https://bugs.webkit.org/show_bug.cgi?id=115082

Reviewed by Andreas Kling.

areRectsPartiallyAligned() has duplicated condition check, so remove it.

  • page/SpatialNavigation.cpp:

(WebCore::areRectsPartiallyAligned):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r149026 r149028  
     12013-04-24  Kangil Han  <kangil.han@samsung.com>
     2
     3        [Minor code cleanup] Remove duplicated condition check
     4        https://bugs.webkit.org/show_bug.cgi?id=115082
     5
     6        Reviewed by Andreas Kling.
     7
     8        areRectsPartiallyAligned() has duplicated condition check, so remove it.
     9
     10        * page/SpatialNavigation.cpp:
     11        (WebCore::areRectsPartiallyAligned):
     12
    1132013-04-24  Krzysztof Wolanski  <k.wolanski@samsung.com>
    214
  • trunk/Source/WebCore/page/SpatialNavigation.cpp

    r147039 r149028  
    235235    // ... and variants of the above cases.
    236236    return ((bStart >= aStart && bStart <= aEnd)
    237             || (bEnd >= aStart && bEnd <= aEnd)
    238237            || (bMiddle >= aStart && bMiddle <= aEnd)
    239238            || (bEnd >= aStart && bEnd <= aEnd));
Note: See TracChangeset for help on using the changeset viewer.