[Webkit-unassigned] [Bug 87762] TextFieldDecorationElement should respect style attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 29 18:15:41 PDT 2012


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





--- Comment #4 from Kent Tamura <tkent at chromium.org>  2012-05-29 18:15:41 PST ---
(In reply to comment #2)
> (In reply to comment #1)
> > Kent-san, is this something that you can take or should I? If I should take this, can I get some guidance on how to proceed? I've glanced through the other implementations of customStyleForRenderer in the codebase, but none of them obviously have the functionality that I'm looking for.
> 
> Would you take this please?
> 
> I think the customStyleForRenderr() should be:
> 
> -    RefPtr<RenderStyle> style = RenderStyle::create();
> +    RefPtr<RenderStyle> style = document()->styleResolver()->styleForElement(this);

Ah, we need to clone it because we modify it.

RefPtr<RenderStyle> originalStyle = document()->styleResolver()->styleForElement(this);
RefPtr<RenderStyle> style = RenderStyle::clone(originalStyle.get());

-- 
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