[Webkit-unassigned] [Bug 63368] RenderTextFragment should have regular children instead of magical first-letter child

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 25 16:21:47 PDT 2011


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





--- Comment #3 from Ryosuke Niwa <rniwa at webkit.org>  2011-06-25 16:21:47 PST ---
There are 2 possible approaches:
1. Keep RenderTextFragment inherit from RenderText.  In this approach, RenderTextFragment will act like RenderText and we can work-around most of issues in editing by adding a method to return the entire text instead "everything but first letter".

The problem with this approach is that renderes of inline text boxes will still be that of internal RenderText unless we wrap renderer() as well.

2. Make RenderTextFragment a render inline.  In this approach, we'll reimplement first-letter and act like anonymous node that contains two RenderText.

There are a lot of uncertainlies and risks but the biggest problem is that Text DOM nodes's renderer() will no longer return RenderText.  It might complicate many logics in editing and accessibility in addition to rendering, hit testing, and caret rendering, etc...

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