Changeset 74045 in webkit
- Timestamp:
- Dec 14, 2010 11:34:32 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r74042 r74045 1 2010-12-14 Beth Dakin <bdakin@apple.com> 2 3 Reviewed by Darin Adler. 4 5 New test for https://bugs.webkit.org/show_bug.cgi?id=50974 6 getComputedStyle() returns wrong values for zoomed elements when 7 display is none 8 -and corresponding- 9 <rdar://problem/8522731> 10 11 * fast/css/getComputedStyle/zoom-on-display-none-expected.txt: Added. 12 * fast/css/getComputedStyle/zoom-on-display-none.html: Added. 13 1 14 2010-12-14 Pavel Feldman <pfeldman@chromium.org> 2 15 -
trunk/WebCore/ChangeLog
r74044 r74045 1 2010-12-14 Beth Dakin <bdakin@apple.com> 2 3 Reviewed by Darin Adler. 4 5 Fix for https://bugs.webkit.org/show_bug.cgi?id=50974 6 getComputedStyle() returns wrong values for zoomed elements when 7 display is none 8 -and corresponding- 9 <rdar://problem/8522731> 10 11 If there is no renderer but the RenderStyle's value is a fixed 12 length, send it through zoomAdjustedPixelValue(). There's not much 13 we can do for other length types without a renderer. 14 * css/CSSComputedStyleDeclaration.cpp: 15 (WebCore::zoomAdjustedPixelValueForLength): 16 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): 17 1 18 2010-12-13 Dimitri Glazkov <dglazkov@chromium.org> 2 19 -
trunk/WebCore/css/CSSComputedStyleDeclaration.cpp
r73219 r74045 341 341 } 342 342 343 static PassRefPtr<CSSValue> zoomAdjustedPixelValueForLength(const Length& length, const RenderStyle* style) 344 { 345 if (length.isFixed()) 346 return zoomAdjustedPixelValue(length.value(), style); 347 return CSSPrimitiveValue::create(length); 348 } 349 343 350 static PassRefPtr<CSSValue> valueForReflection(const StyleReflection* reflection, const RenderStyle* style) 344 351 { … … 1063 1070 if (renderer) 1064 1071 return zoomAdjustedPixelValue(sizingBox(renderer).height(), style.get()); 1065 return CSSPrimitiveValue::create(style->height());1072 return zoomAdjustedPixelValueForLength(style->height(), style.get()); 1066 1073 case CSSPropertyWebkitHighlight: 1067 1074 if (style->highlight() == nullAtom) … … 1303 1310 if (renderer) 1304 1311 return zoomAdjustedPixelValue(sizingBox(renderer).width(), style.get()); 1305 return CSSPrimitiveValue::create(style->width());1312 return zoomAdjustedPixelValueForLength(style->width(), style.get()); 1306 1313 case CSSPropertyWordBreak: 1307 1314 return CSSPrimitiveValue::create(style->wordBreak()); … … 1475 1482 } 1476 1483 else { 1477 list->append(CSSPrimitiveValue::create(style->perspectiveOriginX())); 1478 list->append(CSSPrimitiveValue::create(style->perspectiveOriginY())); 1484 list->append(zoomAdjustedPixelValueForLength(style->perspectiveOriginX(), style.get())); 1485 list->append(zoomAdjustedPixelValueForLength(style->perspectiveOriginY(), style.get())); 1486 1479 1487 } 1480 1488 return list.release(); … … 1519 1527 list->append(zoomAdjustedPixelValue(style->transformOriginZ(), style.get())); 1520 1528 } else { 1521 list->append( CSSPrimitiveValue::create(style->transformOriginX()));1522 list->append( CSSPrimitiveValue::create(style->transformOriginY()));1529 list->append(zoomAdjustedPixelValueForLength(style->transformOriginX(), style.get())); 1530 list->append(zoomAdjustedPixelValueForLength(style->transformOriginY(), style.get())); 1523 1531 if (style->transformOriginZ() != 0) 1524 1532 list->append(zoomAdjustedPixelValue(style->transformOriginZ(), style.get()));
Note: See TracChangeset
for help on using the changeset viewer.