Patch for bug #200795

Andrea Iacovitti aiacovitti at libero.it
Mon Nov 30 12:14:59 GMT 2009


Il giovedì 26 novembre 2009 18:50:18 Andrea Iacovitti ha scritto:
> Il mercoledì 25 novembre 2009 19:59:08 Germain Garand ha scritto:
> > Le mercredi 18 novembre 2009, Andrea Iacovitti a écrit :
> > > Hi,
> > > revision 1046447 fixes half of bug, there are some cases where
> > > *buttons* does not respect border:none , like in comment #4 and #5:
> > >
> > > http://bugs.kde.org/show_bug.cgi?id=200795#c4
> > > http://bugs.kde.org/show_bug.cgi?id=200795#c5
> > >
> > > (another test case would be:
> > > http://sol.cib.unibo.it/SebinaOpac/Opac?sysb=UBOSB , here some buttons
> > > must not have borders)
> > >
> > > Attached a proposed (tested) patch (same logic as in revision 1046447).
> >
> > Hi Andrea,
>
> Hi Germain
>
> > your patch makes plain sense indeed...
> >
> > but then we'd better factor this code in some more readable
> > method  I guess (e.g. shouldDisableNativeBorders() ?)
>
> Yes, i agree. That's the same Allan suggested to do first time i sent the
> patch, unfortunately i haven't had enough time to work on a patch in that
> direction and, sorry, i can't promise i will, but i will try...
>
> > if only because one day some usability option could want to have the
> > native borders still painted in the 'border:none' case (bringing much
> > better discoverability of form widgets ... I thought about adding such an
> > option already when making form widgets more obedient to CSS styling...
> > some people with slight disabilities might prefer a lot to have widgets
> > that stand out, even against the web designer's will.)
> >
> > Maybe also renaming shouldPaintBorder() to shouldPaintCSSBorders() would
> > be clearer, what do you think?
>
> Yes, as a newbie to khtml code i had some difficult to understand the sense
> of shouldPaintBorder, for sure shouldPaintCSSBorders is more appropriate.
> What about to also rename setShouldPaintBackgroundOrBorder() to
> setShouldPaintCSSBackgroundOrBorders(), am i wrong?
>
> Thanks a lot,
> Andrea

Hi all,
please would you verify the attached patch, that:
Introduce shouldDisableNativeBorders() function (at the moment, simply = 
(!shouldPaintBackgroundOrBorder() && canHaveBorder()) ).
Rename shouldPaintBorder() to shouldPaintCSSBorders().
Fix condition under which we have to disable native borders on button.
Fix condition under which to show clear button for lineedit (don't show it if 
we don't have native borders).

It is worth to mention here that while doing tests I found two new bugs (not 
regressed by the patch).
They are related to widged style changes via javascript.
I opened for those bug report #216795

thanks for your attention

Best Rgeards,
Andrea.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: border_none_render.diff
Type: text/x-diff
Size: 4009 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20091130/e8c10818/attachment.diff>


More information about the kfm-devel mailing list