Changeset 85577 in webkit
- Timestamp:
- May 2, 2011 7:22:44 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r85572 r85577 1 2011-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 1 13 2011-05-02 Ryosuke Niwa <rniwa@webkit.org> 2 14 -
trunk/Source/WebCore/rendering/RenderObject.cpp
r85512 r85577 1027 1027 1028 1028 RenderStyle* styleToUse = style(); 1029 int o w= styleToUse->outlineWidth();1030 EBorderStyle o s= styleToUse->outlineStyle();1031 1032 Color o c= styleToUse->visitedDependentColor(CSSPropertyOutlineColor);1029 int outlineWidth = styleToUse->outlineWidth(); 1030 EBorderStyle outlineStyle = styleToUse->outlineStyle(); 1031 1032 Color outlineColor = styleToUse->visitedDependentColor(CSSPropertyOutlineColor); 1033 1033 1034 1034 int offset = styleToUse->outlineOffset(); … … 1052 1052 return; 1053 1053 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); 1058 1067 } 1059 1068
Note: See TracChangeset
for help on using the changeset viewer.