[Webkit-unassigned] [Bug 73546] Add support for text auto-sizing.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 21 18:14:50 PST 2012


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





--- Comment #6 from Yael <yael.aharon at nokia.com>  2012-01-21 18:14:49 PST ---
(From update of attachment 117405)
View in context: https://bugs.webkit.org/attachment.cgi?id=117405&action=review

> Source/WebCore/dom/Document.cpp:4866
> +            RefPtr<RenderStyle> newParentStyle = cloneRenderStyleWithState(parentStyle);
> +            newParentStyle->setLineHeight(Length(lineHeight, Fixed));
> +            newParentStyle->setSpecifiedLineHeight(lineHeightLength);
> +            newParentStyle->setFontDescription(fontDescription);
> +            newParentStyle->font().update(autoSizingNode->document()->styleSelector()->fontSelector());
> +            parentRenderer->setStyle(newParentStyle.release());

This will cause you to loose visitedStyle if this is a visited link.
You should copy the visitedStyle too, here and in other places that clone and change the style.

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