aboutsummaryrefslogtreecommitdiff
path: root/src/table.cc
AgeCommit message (Collapse)Author
2024-04-28Allow relative width td attributes in tablesRodrigo Arias Mallo
Partially reverts commit f5a0b6030c2001e5a0fcacf8139afa800643eb47. Fixes the rendering test table-missing-width-in-one-column. Fixes: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/message/H7JEBC2HYNJ6FUPQM7ILBP7I5FLU33IZ/
2024-03-09Use Doxygen comments for C filesRodrigo Arias Mallo
2024-03-02Ignore percent width td attributes in tablesRodrigo Arias Mallo
The width attribute in tr and td tags is deprecated in HTML 4.01 and obsolete in HTML 5. However, we should still support it when loading the page in the transitional mode. Currently, the relative values of the width attribute are transformed into CSS values. They cause the available text width to be computed by applying the relative value to the cell width, which causes an unintended effect. The workaround for now is to simply ignore the value when it is specified as a percent.
2023-12-11Add support for thead, tbody and tfootwalley
2014-08-04bring some consistency to the bug messages.corvid
I generally tried to: - start with a capital letter. - end with a period. - put elements inside <>. - bring element names close to the beginning of the message.
2014-08-04bug messages: '\n' as separator instead of terminatorcorvid
Now no extra line at the bottom of the bugs, plus shorter strings.
2014-05-28Split up dw::TableCell in dw::AlignedTableCell (was: dw::TableCell) and ↵Sebastian Geerken
dw::SimpleTableCell (derived from dw::Textblock). The HTML parser now uses only one of these two classes for table cells, not dw::Textblock anymore.
2013-10-14Merge with main repo.Sebastian Geerken
2013-09-20Refactoring: some useful shortcuts in DilloHtml.Sebastian Geerken
2013-09-10html5, complain about assorted obsolete attributescorvid
2012-11-26rm unused arg in Style::createcorvid
2012-09-16fix erroneous BUG_MSG in display:none caseJohannes Hofmann
Move BUG_MSG() checks to the Html_tag_content_* function to avoid erroneous BUG_MSG in display:none case.
2012-09-14make a few BUG_MSGs more informativecorvid
2012-01-21add support for the CSS display: propertyJohannes Hofmann
2011-11-11locale-independent ASCII character case handlingcorvid
Basically, I and i are different letters in Turkic languages, and this causes problems for str(n)casecmp and toupper/tolower in these locales when dillo is dealing with ASCII.
2011-10-17don't reset table cells to white-space: normal when no nowrap attributecorvid
the value of the property is inherited, and might not be 'normal'
2011-07-15Eliminated a pack of compiler warnings (gcc-4.6.1 amd64)Jorge Arellano Cid
2010-11-24trim some spacescorvid
2010-11-15Moved the table border model flag from style to DilloHtmlState (i.e. stack)Jorge Arellano Cid
2010-10-24imported patch border-collapseJorge Arellano Cid
2010-10-11rework nonCssHints API of StyleEngineJohannes Hofmann
* Instead of passing the nonCssHints as a CssPropertyList, set the hints separately and create the list in StyleEngine. * The CssPropertyList holding the nonCssHints is now completely managed by StyleEngine and kept on the stack. * Replace the table_cell_props mechanic in html.cc/table.cc with a new method inheritNonCssHints() in StyleEngine.
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.
2009-10-29move link signal emitter/receiver from Widget to Layoutcorvid
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-October/006936.html
2009-09-29imported patch remove_use_tablesJeremy Henty
2009-07-06use CssLengthJohannes Hofmann
2009-05-09[mq]: replace-DW2TB-with-HT2TBJeremy Henty
2009-04-19wrap long lines in src/ css codecorvid
2009-03-06remove bg_color dillorc optionJohannes Hofmann
To set a custom background color add a line like: body {background-color: white} to your ~/.dillo/style.css file. This also works for plain text display and image viewing.
2009-03-05reduce number of styleEngine::style0() callsJohannes Hofmann
Rearrange code, so that for each new element, StyleEngine::setNonCssHints() is called before the first call to StyleEngine::style() or StyleEngine::wordStyle(). This avoids unnecessary CSS style computations which are expensive. Add an assertion to ensure this.
2009-02-20CssPropertyList leak in Html_tag_open_table_cellcorvid
2009-02-09whitespace cleanup: 's/ +$//g'Jorge Arellano Cid
2009-02-06add type to CSS propertiesJohannes Hofmann
2009-02-05move CssProperty::Name and CssProperty::Value out of CssProperty classJohannes Hofmann
2009-01-03remove a_Html_set_top_font() which is no longer usedJohannes Hofmann
2008-12-17remove dillo_dbg_rendering from table.ccJohannes Hofmann
One can get a similar effect by adding table, td {border: 1px solid black !important} to the user stylesheet.
2008-12-11fix table border widthJohannes Hofmann
2008-12-11remove border color assignment table codeJohannes Hofmann
2008-12-07check for table_cell_props == NULLJohannes Hofmann
2008-12-04use styleEngine->wordStyle() for adding text or parbreaksJohannes Hofmann
2008-11-28add workaround for table row coloringJohannes Hofmann
2008-11-14remove previously introduced shortcut properties as they break the cascadeJohannes Hofmann
2008-11-14setNonCssProperties() -> setNonCssHints()Johannes Hofmann
2008-11-13merge with cvsJohannes Hofmann
2008-11-13start implementing resolution of relative CSS valuesJohannes Hofmann
2008-11-12reconcile CssProperty::Name and Css_property_infoJohannes Hofmann
2008-11-10wordingJohannes Hofmann
2008-11-10minor rearrangementJohannes Hofmann
2008-11-10fix handling of bgcolor attributes in Html_tag_open_tr()Johannes Hofmann
2008-11-10add CSS_PROPERTY_BORDER_SPACING_HORIZONTAL, CSS_PROPERTY_BORDER_SPACING_VERTICALJohannes Hofmann
2008-11-10convert table code to new style handlingJohannes Hofmann