Changeset 150696 in webkit
- Timestamp:
- May 25, 2013 5:51:00 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r150695 r150696 1 2013-05-25 Alberto Garcia <agarcia@igalia.com> 2 3 Path: clean up addPathForRoundedRect() 4 https://bugs.webkit.org/show_bug.cgi?id=116765 5 6 Reviewed by Andreas Kling. 7 8 Reorganize code that is a bit redundant. 9 10 No new tests, no behavior change. 11 12 * platform/graphics/Path.cpp: 13 (WebCore::Path::addPathForRoundedRect): 14 1 15 2013-05-25 Simon Fraser <simon.fraser@apple.com> 2 16 -
trunk/Source/WebCore/platform/graphics/Path.cpp
r150646 r150696 146 146 void Path::addPathForRoundedRect(const FloatRect& rect, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius, RoundedRectStrategy strategy) 147 147 { 148 if (strategy == PreferBezierRoundedRect) { 149 addBeziersForRoundedRect(rect, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius); 148 if (strategy == PreferNativeRoundedRect) { 149 #if USE(CG) || PLATFORM(BLACKBERRY) 150 platformAddPathForRoundedRect(rect, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius); 150 151 return; 152 #endif 151 153 } 152 154 153 #if USE(CG) || PLATFORM(BLACKBERRY)154 platformAddPathForRoundedRect(rect, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius);155 #else156 155 addBeziersForRoundedRect(rect, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius); 157 #endif158 156 } 159 157
Note: See TracChangeset
for help on using the changeset viewer.