Fix the "style rules" display for display:table elements. Bug 122557,
r=caillon, sr=hewitt git-svn-id: svn://10.0.0.236/trunk@197455 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
586c7facf0
commit
c61ba654b0
@ -86,12 +86,11 @@ inDOMUtils::GetStyleRules(nsIDOMElement *aElement, nsISupportsArray **_retval)
|
||||
// query to a content node
|
||||
nsCOMPtr<nsIContent> content;
|
||||
content = do_QueryInterface(aElement);
|
||||
|
||||
nsIFrame* frame = nsnull;
|
||||
nsCOMPtr<nsIStyleContext> styleContext;
|
||||
nsresult rv = shell->GetPrimaryFrameFor(content, &frame);
|
||||
if (NS_FAILED(rv) || !frame) return rv;
|
||||
shell->GetStyleContextFor(frame, getter_AddRefs(styleContext));
|
||||
|
||||
nsresult rv = mCSSUtils->GetStyleContextForContent(shell, content,
|
||||
getter_AddRefs(styleContext));
|
||||
|
||||
if (NS_FAILED(rv) || !styleContext) return rv;
|
||||
|
||||
// create a resource for all the style rules from the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user