Commit b12fa148 authored by andersca's avatar andersca

2006-06-28 Anders Carlsson <acarlsson@apple.com>

        Reviewed by Darin.

        * css/CSSComputedStyleDeclaration.cpp:
        (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
        Move FIXME comment here.
        
        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::getComputedStyle):
        Don't do a null check on the renderer here. Everything's handled by 
        CSSComputedStyleDeclaration anyway.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b18807a1
2006-06-28 Anders Carlsson <acarlsson@apple.com>
Reviewed by Darin.
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
Move FIXME comment here.
* page/DOMWindow.cpp:
(WebCore::DOMWindow::getComputedStyle):
Don't do a null check on the renderer here. Everything's handled by
CSSComputedStyleDeclaration anyway.
2006-06-27 Justin Garcia <justin.garcia@apple.com>
Reviewed by darin
......
......@@ -336,6 +336,7 @@ PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(int proper
if (updateLayout)
node->document()->updateLayout();
// FIXME: This should work even if we do not have a renderer.
RenderObject* renderer = node->renderer();
if (!renderer)
return 0;
......
......@@ -69,14 +69,7 @@ PassRefPtr<CSSStyleDeclaration> DOMWindow::getComputedStyle(Element* elt, const
if (!elt)
return 0;
if (elt->inDocument())
elt->document()->updateLayoutIgnorePendingStylesheets();
// FIXME: This should work even if we do not have a renderer.
// FIXME: This needs to work with pseudo elements.
if (!elt->renderer())
return 0;
// FIXME: This needs to work with pseudo elements.
return new CSSComputedStyleDeclaration(elt);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment