[Webkit-unassigned] [Bug 43044] WebNode should provide access to computedStyle

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 27 15:04:58 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=43044





--- Comment #14 from Dominic Mazzoni <dmazzoni at google.com>  2010-07-27 15:04:58 PST ---
(In reply to comment #11)
> what about my suggestion to move these methods to WebElement?
> does it make sense for there to be computed style on other
> types of nodes?

I just thought that since WebCore::Node provides getComputedStyle, why not expose that and keep it simpler for the calling function? If it's better to use Element::getComputedStyle, why does Node::getComputedStyle exist?

But I'm happy either way, I'll move it to WebElement instead if you want.

Just let me know if you really want me to call layout() when I know this is going to be used in an inner loop...it seems inefficient.

- Dominic

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list