Changeset 20570 in webkit


Ignore:
Timestamp:
Mar 29, 2007 1:41:22 AM (17 years ago)
Author:
hyatt
Message:

Fix for <rdar://problem/4545060>, technorati and arstechnica fail because of getComputedStyle not
reporting display:none properly when it is set. This is bugzilla bug 13103.

Reviewed by mitz

  • css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r20568 r20570  
     12007-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
    1112007-03-28  Oliver Hunt  <oliver@apple.com>
    212
  • trunk/WebCore/css/CSSComputedStyleDeclaration.cpp

    r20520 r20570  
    482482        node->document()->updateLayout();
    483483
    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.
    485485    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);
    487491        return 0;
     492    }
    488493
    489494    RenderStyle* style = renderer->style();
Note: See TracChangeset for help on using the changeset viewer.