Changeset 156606 in webkit
- Timestamp:
- Sep 28, 2013 9:14:00 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 8 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r156605 r156606 1 2013-09-28 Gurpreet Kaur <k.gurpreet@samsung.com> 2 3 filter: drop-shadow doesnot support viewport units 4 https://bugs.webkit.org/show_bug.cgi?id=122053 5 6 Reviewed by Darin Adler. 7 8 * fast/css/drop-shadow-viewport-height-expected-mismatch.html: Added. 9 * fast/css/drop-shadow-viewport-height.html: Added. 10 * fast/css/drop-shadow-viewport-vmax-expected-mismatch.html: Added. 11 * fast/css/drop-shadow-viewport-vmax.html: Added. 12 * fast/css/drop-shadow-viewport-vmin-expected-mismatch.html: Added. 13 * fast/css/drop-shadow-viewport-vmin.html: Added. 14 * fast/css/drop-shadow-viewport-width-expected-mismatch.html: Added. 15 * fast/css/drop-shadow-viewport-width.html: Added. 16 Added new tests for verifying that drop-shadow properties are applied 17 when its values are viewport units. 18 1 19 2013-09-28 Gurpreet Kaur <k.gurpreet@samsung.com> 2 20 -
trunk/Source/WebCore/ChangeLog
r156605 r156606 1 2013-09-28 Gurpreet Kaur <k.gurpreet@samsung.com> 2 3 filter: drop-shadow doesnot support viewport units 4 https://bugs.webkit.org/show_bug.cgi?id=122053 5 6 Reviewed by Darin Adler. 7 8 drop-shadow properties were not applied incase its values 9 were given in vh, vw, vmax, vmin units. 10 11 Tests: fast/css/drop-shadow-viewport-height.html 12 fast/css/drop-shadow-viewport-vmax.html 13 fast/css/drop-shadow-viewport-vmin.html 14 fast/css/drop-shadow-viewport-width.html 15 16 * css/StyleResolver.cpp: 17 (WebCore::StyleResolver::createFilterOperations): 18 Calculating the drop-shadow values which has been specified in viewport 19 units.The vh/vw units are calcultated as percent of viewport height and 20 viewport width respectively. 1vmax: 1vw or 1vh, whatever is largest. 21 1vmin: 1vw or 1vh, whatever is smallest. 22 1 23 2013-09-28 Gurpreet Kaur <k.gurpreet@samsung.com> 2 24 -
trunk/Source/WebCore/css/StyleResolver.cpp
r156601 r156606 3873 3873 3874 3874 ShadowValue* item = static_cast<ShadowValue*>(cssValue); 3875 IntPoint location(item->x->computeLength<int>(style, rootStyle, zoomFactor), 3876 item->y->computeLength<int>(style, rootStyle, zoomFactor)); 3875 int x = item->x->computeLength<int>(style, rootStyle, zoomFactor); 3876 if (item->x->isViewportPercentageLength()) 3877 x = viewportPercentageValue(*item->x, x); 3878 int y = item->y->computeLength<int>(style, rootStyle, zoomFactor); 3879 if (item->y->isViewportPercentageLength()) 3880 y = viewportPercentageValue(*item->y, y); 3881 IntPoint location(x, y); 3877 3882 int blur = item->blur ? item->blur->computeLength<int>(style, rootStyle, zoomFactor) : 0; 3883 if (item->blur && item->blur->isViewportPercentageLength()) 3884 blur = viewportPercentageValue(*item->blur, blur); 3878 3885 Color color; 3879 3886 if (item->color)
Note: See TracChangeset
for help on using the changeset viewer.