summaryrefslogtreecommitdiff
path: root/dw/textblock.cc
AgeCommit message (Collapse)Author
2011-08-27collapse parent top margin with first child's top marginJohannes Hofmann
2011-08-27don't count margin-bottom twiceJohannes Hofmann
Avoid margin-bottom being counted twice. Testcase: <div style="border: 1px solid black; margin-bottom: 100px">foo bar</div> <div style="border: 1px solid black">foo bar</div>
2011-08-11crossing-events-part5: fix hoverTooltip accuracy for a corner caseJorge Arellano Cid
This is not a bug in the event dispatcher but a problem with "hoverTooltip", which doesn't hold accurate data in some cases. Making it static solves the problem.
2011-08-09crossing-events part4 (fix corner case: moving into the common ancestor)Jorge Arellano Cid
In this case the ancestor is already in "entered" state, but we need to emit the signal again, for it to reset its state and resume.
2011-08-01crossing-events part3 (fix leaving a link into a non-dw widget)Jorge Arellano Cid
This patch also disables unused code in Layout::leaveNotify()
2011-07-27Layout::moveToWidget(): send crossing events (part 2)Jorge Arellano Cid
This patch fixes 3f74e4d60ac1 (which is partly wrong). The idea is to avoid spurious leave/enter events, and thus prevent bugs. * avoid issuing spurious leave/enter events, and send the necessary ones. * remove the need for a workaround linkEnter() call in Textblock::leaveNotifyImpl().
2011-06-16rm unused double-click codecorvid
2011-06-07widgets draw their own border and backgroundJohannes Hofmann
Don't draw background for widgets in Textblock::drawLine(). This fixes the border_background_margin.html test in css_compat.
2010-11-19include line1OffsetEff in first word extremescorvid
for the sake of text-indent and tables.
2010-11-19don't use text-indent when nesting blockscorvid
2010-11-09css text-indent propertycorvid
thread: http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-November/007801.html
2010-09-29Adjusted thickness for {under/over}line, and height for strikeJorge Arellano Cid
2010-08-23add lout::misc::roundInt() for double -> int conversionJohannes Hofmann
Add lout::misc::roundInt() and use it for double -> int conversion instead of doing the + 0.5 trick all over the place. It was wrong for negative values and we might even replace roundInt() with rint() from libm in the future. Reported-by: corvid
2010-05-28remindercorvid
2010-04-29don't need switch anymorecorvid
it became unnecessary when anchors were separated out in November
2010-04-29fix redraw optimizationJohannes Hofmann
When a widget changes it's height, this may affect the position of other words in the same line. Take care by only applying the redraw optimization if there are no other words in the line. This special case is quite common e.g with nested <div>'s or table based layouts and the redraw optimization avoids unnecessary redraws. Reported by: Dennis Nezic
2010-04-21use line height when drawing space background as wellcorvid
Using line height for this and the earlier Word change seems to make the appearance closer to firefox's. Of course, I'm sure there will be counterexamples...
2010-04-21draw background for all Words, not just textcorvid
2010-04-20css word-spacing propertycorvid
2010-04-07handle sup/sub alignment in content ascent/descentcorvid
2010-04-06Line content ascent/descentcorvid
2010-04-06rename Line ascent/descentcorvid
2010-04-04line-heightcorvid, Johannes Hofmann
2010-03-30white-space: pre-wrapcorvid
thread: http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-March/007420.html
2010-03-20fix selection and empty Textblockscorvid, Johannes Hofmann
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-February/007368.html I'm committing a modified version that Johannes made. It moves the (un)highlight checks into queueDrawRange() and add checks for valid wordIndex in findLineOfWord().
2010-02-24clean addLinecorvid
2010-02-24more rearrangingcorvid
2010-02-24rearrange wordWrap()corvid
Group things conceptually, etc. No change in behaviour is intended. (I would like to rip out all of the DBG stuff someday, which I think does more harm than good by making the src hard to read.)
2010-02-24clean up textblock a bitcorvid
No change in functionality is intended.
2010-02-21add a todo remindercorvid
2009-12-25adjust findLineIndexcorvid
I noticed that when I was highlighting text in line n, Dillo was also redrawing line n-1. Incidentally, it seems that the default arrow cursor points with the tip of the black arrow itself, and not with the tip of the white border surrounding it.
2009-12-07adjust comments (submitted by Tim Nieradzik)Johannes Hofmann
2009-11-30Separate Anchors out from Wordscorvid
The reason for this is that they were in the way when adding parbreaks. http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-November/007044.html
2009-11-10Textblock::handOverBreakcorvid
2009-11-09fix some references to DwPagecorvid
2009-11-05hasListitemValue for Textblockcorvid
2009-11-05listitem alignmentcorvid
2009-10-29shouldn't need lines() test in addSpacecorvid
2009-10-29return to earlier-space-style-prevailscorvid
I had changed it in rev. f231450b81a1 a few days ago. http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-October/006943.html
2009-10-29make popup menus work for unoccupied regions of tablescorvid
2009-10-29move link signal emitter/receiver from Widget to Layoutcorvid
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-October/006936.html
2009-10-26clean up addSpacecorvid
2009-10-26let later space override previous spacecorvid
The earlier space is less likely to be styled with the intended appearance.
2009-10-26return Word from findWordcorvid
2009-10-26use spaceStyle in Textblock::motionNotifyImpl when appropriatecorvid
2009-10-24tiny cleanup of addParbreakcorvid
2009-10-23don't crash with LIST_STYLE_TYPE_NONEcorvid
2009-10-15remove "using namespace" statements from header filesJohannes Hofmann
"using namespace" in headers also affects all files that include the header which is unwanted and unexpected in most cases.
2009-10-03clear tooltip when leaving textblockcorvid
2009-09-27extraneous variablecorvid