Changeset 20570 in webkit
- Timestamp:
- Mar 29, 2007 1:41:22 AM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r20568 r20570 1 2007-03-29 David Hyatt <hyatt@apple.com> 2 3 Fix for <rdar://problem/4545060>, technorati and arstechnica fail because of getComputedStyle not 4 reporting display:none properly when it is set. This is bugzilla bug 13103. 5 6 Reviewed by mitz 7 8 * css/CSSComputedStyleDeclaration.cpp: 9 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): 10 1 11 2007-03-28 Oliver Hunt <oliver@apple.com> 2 12 -
trunk/WebCore/css/CSSComputedStyleDeclaration.cpp
r20520 r20570 482 482 node->document()->updateLayout(); 483 483 484 // FIXME: This should work even if we do not have a renderer .484 // FIXME: This should work even if we do not have a renderer for all properties. 485 485 RenderObject* renderer = node->renderer(); 486 if (!renderer) 486 if (!renderer) { 487 // Handle display:none at the very least. By definition if we don't have a renderer 488 // we are considered to have no display. 489 if (propertyID == CSS_PROP_DISPLAY) 490 return new CSSPrimitiveValue(CSS_VAL_NONE); 487 491 return 0; 492 } 488 493 489 494 RenderStyle* style = renderer->style();
Note: See TracChangeset
for help on using the changeset viewer.