Changeset 85577 in webkit


Ignore:
Timestamp:
May 2, 2011 7:22:44 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-02 Ben Wells <benwells@chromium.org>

Reviewed by Simon Fraser.

Cleanup variable usage in RenderObject.cpp paintOutline()
https://bugs.webkit.org/show_bug.cgi?id=59911

No new tests for this, there should be no change in behaviour.

  • rendering/RenderObject.cpp: (WebCore::RenderObject::paintOutline):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r85572 r85577  
     12011-05-02  Ben Wells  <benwells@chromium.org>
     2
     3        Reviewed by Simon Fraser.
     4
     5        Cleanup variable usage in RenderObject.cpp paintOutline()
     6        https://bugs.webkit.org/show_bug.cgi?id=59911
     7
     8        No new tests for this, there should be no change in behaviour.
     9
     10        * rendering/RenderObject.cpp:
     11        (WebCore::RenderObject::paintOutline):
     12
    1132011-05-02  Ryosuke Niwa  <rniwa@webkit.org>
    214
  • trunk/Source/WebCore/rendering/RenderObject.cpp

    r85512 r85577  
    10271027
    10281028    RenderStyle* styleToUse = style();
    1029     int ow = styleToUse->outlineWidth();
    1030     EBorderStyle os = styleToUse->outlineStyle();
    1031 
    1032     Color oc = styleToUse->visitedDependentColor(CSSPropertyOutlineColor);
     1029    int outlineWidth = styleToUse->outlineWidth();
     1030    EBorderStyle outlineStyle = styleToUse->outlineStyle();
     1031
     1032    Color outlineColor = styleToUse->visitedDependentColor(CSSPropertyOutlineColor);
    10331033
    10341034    int offset = styleToUse->outlineOffset();
     
    10521052        return;
    10531053
    1054     drawLineForBoxSide(graphicsContext, tx - ow, ty - ow, tx, ty + h + ow, BSLeft, oc, os, ow, ow);
    1055     drawLineForBoxSide(graphicsContext, tx - ow, ty - ow, tx + w + ow, ty, BSTop, oc, os, ow, ow);
    1056     drawLineForBoxSide(graphicsContext, tx + w, ty - ow, tx + w + ow, ty + h + ow, BSRight, oc, os, ow, ow);
    1057     drawLineForBoxSide(graphicsContext, tx - ow, ty + h, tx + w + ow, ty + h + ow, BSBottom, oc, os, ow, ow);
     1054    int leftOuter = tx - outlineWidth;
     1055    int leftInner = tx;
     1056    int rightOuter = tx + w + outlineWidth;
     1057    int rightInner = tx + w;
     1058    int topOuter = ty - outlineWidth;
     1059    int topInner = ty;
     1060    int bottomOuter = ty + h + outlineWidth;
     1061    int bottomInner = ty + h;
     1062   
     1063    drawLineForBoxSide(graphicsContext, leftOuter, topOuter, leftInner, bottomOuter, BSLeft, outlineColor, outlineStyle, outlineWidth, outlineWidth);
     1064    drawLineForBoxSide(graphicsContext, leftOuter, topOuter, rightOuter, topInner, BSTop, outlineColor, outlineStyle, outlineWidth, outlineWidth);
     1065    drawLineForBoxSide(graphicsContext, rightInner, topOuter, rightOuter, bottomOuter, BSRight, outlineColor, outlineStyle, outlineWidth, outlineWidth);
     1066    drawLineForBoxSide(graphicsContext, leftOuter, bottomInner, rightOuter, bottomOuter, BSBottom, outlineColor, outlineStyle, outlineWidth, outlineWidth);
    10581067}
    10591068
Note: See TracChangeset for help on using the changeset viewer.