private void restyle(InlineBox ib) {
private void restyle(Box ib) {
    private void restyle(InlineBox ib) {        if(prev == ib) {            return;        }        if(ib == null) panel.hovered_element = null;        else panel.hovered_element = ib.getRealElement();        // if moved out of the old block then unstyle it        if(prev != null) {            boolean restyled = panel.getContext().css.wasHoverRestyled(prev.getRealElement());            //u.p("previous was styled = " + restyled);            //u.p("prev = " + prev);            CalculatedStyle style = panel.getContext().css.getStyle(prev.getRealElement());            //u.p("prev calc style = " + style);            //u.p("prev color = " + style.getColor());            if(restyled) {                Layout lt = LayoutFactory.getLayout(prev.getRealElement());                if(lt instanceof InlineLayout) {                    ((InlineLayout)lt).restyle(panel.getContext(), prev);                    panel.repaint();                }            }        }        prev = ib;        // return if no new hovered block;        if(ib == null) { return; }                boolean restyled = panel.getContext().css.wasHoverRestyled(ib.getRealElement());        //u.p("was styled = " + restyled);                CalculatedStyle style = panel.getContext().css.getStyle(ib.getRealElement());        //u.p("color = " + style.getColor());        // if the block has a hover style then restyle it        if(restyled) {            Layout lt = LayoutFactory.getLayout(ib.getRealElement());            if(lt instanceof InlineLayout) {                ((InlineLayout)lt).restyle(panel.getContext(), ib);                panel.repaint();            }        }    }