[webkit-help] I want to change style of HTML on run time natively (Inside web core, I am having Element pointer).

Umesh Singh sumeshfirst at gmail.com
Fri Apr 26 06:30:03 PDT 2013


Hi Mukesh,
                 Its better to get to the Node, then get the RenderObject
of that node, from Render Object get to the Render Style object for that
node then use Render Style object to
set the style of the particular Node.

Regards,
Umesh


On Fri, Apr 26, 2013 at 6:21 PM, 85.mukesh <85.mukesh at gmail.com> wrote:

> Hi ,
>
> I want to change style of HTML on run time natively (Inside web core, I am
> having Element pointer). But using Element.setAttribute("style",
> "background-color: green;"); is overriding my style but I want to update
> the style without changing existing one. Please let me know if any trick is
> there to update style.
>
> I tried below things.
>
> 1. First get attribute and do string manipulation to add your style and
> the setattribute. This method is ok. But so much string manipulation.
>
> 2. I am not sure how we can directly handle code inside webcore natively
> for below JS code. Element.style.backgroundColor = "green";
>
>
>
> Regards,
>
> MK
>
>
> _______________________________________________
> webkit-help mailing list
> webkit-help at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-help
>
>


-- 
Regards,
Umesh Singh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20130426/34c1338d/attachment.html>


More information about the webkit-help mailing list