[Webkit-unassigned] [Bug 62096] [Meta] Reduce the number of hand-built RenderObjects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 22 02:02:10 PDT 2011


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





--- Comment #1 from Kent Tamura <tkent at chromium.org>  2011-06-22 02:02:10 PST ---
I made some changes of RenderSlider and RenderTextControlSingleLine to reduce the amount of custom layout code.  However, they still have a lot of custom code.

I had no good idea to realize the followings with CSS.

In RenderTextControlSingleLine, we have two nodes in the simplest case; <input> and the inner editable text <div>.
 - If the <input> height is auto, it is calculated from the height of the inner <div>.  This has no problem.
 - If the <input> content height is taller than the height of the inner <div>, center the inner <div> in the <input> content vertically.
  Is this realized with CSS?
 - If the <input> content height is smaller than the height of the inner <div>, the inner <div> height should be shrunk, or the inner <div> should be clipped by the <input>.

If a text field has some decoration elements such as a search cancel button or a spin button, we wrap the inner <div> and the decoration elements with a flexible box container.  The flexible box container resolved the issue of vertical centering, but I had no good idea to make the flexible box container height same as the <input> content height.

As for RenderSlider, it has problems similar to RenderTextControlSingleLine.

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