aboutsummaryrefslogtreecommitdiff
path: root/dw/style.cc
AgeCommit message (Collapse)Author
2011-03-27dw/style.cc: drawBorder*(): use the correct border colors.Jeremy Henty
2010-11-25don't try to draw 0-width bordersJohannes Hofmann
2010-11-15mergeJorge Arellano Cid
2010-11-15Moved the table border model flag from style to DilloHtmlState (i.e. stack)Jorge Arellano Cid
2010-11-13Full CSS border-style implementationJorge Arellano Cid
The drawBorder{Top,Bottom,Left,Right} functions are similar. They use a trapezium as draw polygon, or drawTypedLine() for dots and dashes. Although the concept is simple, achieving pixel accuracy is laborious [1]. [1] http://www.dillo.org/css_compat/tests/border-style.html
2010-11-09mergeJorge Arellano Cid
2010-11-09css text-indent propertycorvid
thread: http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-November/007801.html
2010-10-24imported patch border-collapseJorge Arellano Cid
2010-10-21imported patch border-collapse-parsingJorge Arellano Cid
2010-10-07CSS part for font-variant: small-caps supportJorge Arellano Cid
(some uppercasing is done but not utf8)
2010-10-01fix last commitJohannes Hofmann
dw::core::style::Style must always hold the computed values of CSS properties, as those are inherited. The computed value of border-width is 0 if border-style is 'none', so avoid the combination of border-width != 0 and border-style 'none'. Refactor StyleEngine a bit.
2010-10-01rework border-width handlingJohannes Hofmann
The initial value of border-width-* is "medium" not 0 (see http://www.w3.org/TR/CSS2/box.html#border-width-properties). Redo the border handling for tables to deal with this.
2010-08-20add new vloat and clear members to hash and equals methodJohannes Hofmann
2010-08-20mergeJohannes Hofmann
2010-08-20import float prototype and test program by Sebastian GeerkenJohannes Hofmann
2010-04-20css word-spacing propertycorvid
2010-04-04line-heightcorvid, Johannes Hofmann
2010-01-05check cursor in StyleAttrs::equals() and StyleAttrs::hashValue()Johannes Hofmann
Noticed by corvid, see: http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-January/007146.html
2009-12-08add support for CSS property list-style-positionJohannes Hofmann
2009-11-17properly handle comma separated lists of font names in CSSJohannes Hofmann
2009-10-25recognize latin list style types as synonyms for alphacorvid
2009-10-17add letter-spacing support to CSS subsystemJohannes Hofmann
The implementation in the fltk backend is still missing.
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-03some tooltipscorvid
2009-09-24default valign is baselinecorvid
2009-09-02draw triangles if border sides differ in shadeJohannes Hofmann
2009-09-01update Style::drawBorder()Johannes Hofmann
Instead of drawing each side of the border as a single polygon, draw a rectangle and additional triangles as necessary. Borders can be huge and their size can overflow 16 bit X11 coordinates. Using rectangles for the largest part of a border side helps, as rectangles can easily be clipped to their visible part. Clipping arbitrary polygons would be much more complicated. Testcase: <div style="border: 10px solid grey; background-color: green"> foo bar <img src="space.gif" style="width: 1px; height: 33000px/> </div>
2009-08-31minor simplificationJohannes Hofmann
2009-05-19consistently use snprintfJohannes Hofmann
2009-03-02Updated the GPL copyright note in the source filesDetlef Riekenberg
2009-02-09whitespace cleanup: 's/ +$//g'Jorge Arellano Cid
2009-01-29make StyleAttrs::name const again (by jcid)Johannes Hofmann
This reverts part of 9a7684395cca and avoids warnings when assigning string constants to the name member of StyleAttrs as done in test/*.cc.
2009-01-28don't mix strdup() and deleteJohannes Hofmann
2009-01-16Added lout/msg.h and normalized debug messages to use it.Jorge Arellano Cid
2008-12-28merge with mainJohannes Hofmann
2008-12-22Added some const quialifiers.corvid
2008-12-11always use shaded colorsJohannes Hofmann
This makes things much simpler and improves sharing of colors. If computing two more shades really proves to be a performance issue, we can shade on demand without exposing this optimization to the interface.
2008-12-09the white-space property is inherited according to CSS 2.1Johannes Hofmann
2008-12-07make sure color is set properly in drawBorder()Johannes Hofmann
2008-12-04make drawing of individual border parts possibleJohannes Hofmann
2008-12-04text-align property is inherited according to CSS 2.1Johannes Hofmann
2008-11-08don't reset cursor propertyJohannes Hofmann
2008-11-08don't reset x_link property as everything within <a> and </a> should act as linkJohannes Hofmann
2008-09-24- Moved the dw2 tree into dillo2's tree.jcid
2011-03-24Fixed border colors mismatches in drawBorder* functionsJorge Arellano Cid
2011-01-22convex polygons for border drawingcorvid