Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/7bbf2a9ca0cd418f64b001b87f77c779433119fe
...commit
http://git.netsurf-browser.org/netsurf.git/commit/7bbf2a9ca0cd418f64b001b87f77c779433119fe
...tree
http://git.netsurf-browser.org/netsurf.git/tree/7bbf2a9ca0cd418f64b001b87f77c779433119fe
The branch, master has been updated
via 7bbf2a9ca0cd418f64b001b87f77c779433119fe (commit)
from ebcc27c330654d4408bd3aec34795f849c07e02f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=7bbf2a9ca0cd418f64b001b87f77c779433119fe
commit 7bbf2a9ca0cd418f64b001b87f77c779433119fe
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
HTML layout: Extend :after pseudo element handling to cover display:table.
This is used in a common clearfix variant.
http://nicolasgallagher.com/micro-clearfix-hack/
diff --git a/render/box_construct.c b/render/box_construct.c
index f2d0413..d0ffd9d 100644
--- a/render/box_construct.c
+++ b/render/box_construct.c
@@ -594,6 +594,7 @@ static void box_construct_generate(dom_node *n,
html_content *content,
struct box *box, const css_computed_style *style)
{
struct box *gen = NULL;
+ enum css_display_e computed_display;
const css_computed_content_item *c_item;
/* Nothing to generate if the parent box is not a block */
@@ -611,8 +612,10 @@ static void box_construct_generate(dom_node *n,
html_content *content,
}
/* create box for this element */
- if (css_computed_display(style, box_is_root(n)) == CSS_DISPLAY_BLOCK) {
- /* currently only support block level elements */
+ computed_display = css_computed_display(style, box_is_root(n));
+ if (computed_display == CSS_DISPLAY_BLOCK ||
+ computed_display == CSS_DISPLAY_TABLE) {
+ /* currently only support block level boxes */
/** \todo Not wise to drop const from the computed style */
gen = box_create(NULL, (css_computed_style *) style,
-----------------------------------------------------------------------
Summary of changes:
render/box_construct.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/render/box_construct.c b/render/box_construct.c
index f2d0413..d0ffd9d 100644
--- a/render/box_construct.c
+++ b/render/box_construct.c
@@ -594,6 +594,7 @@ static void box_construct_generate(dom_node *n,
html_content *content,
struct box *box, const css_computed_style *style)
{
struct box *gen = NULL;
+ enum css_display_e computed_display;
const css_computed_content_item *c_item;
/* Nothing to generate if the parent box is not a block */
@@ -611,8 +612,10 @@ static void box_construct_generate(dom_node *n,
html_content *content,
}
/* create box for this element */
- if (css_computed_display(style, box_is_root(n)) == CSS_DISPLAY_BLOCK) {
- /* currently only support block level elements */
+ computed_display = css_computed_display(style, box_is_root(n));
+ if (computed_display == CSS_DISPLAY_BLOCK ||
+ computed_display == CSS_DISPLAY_TABLE) {
+ /* currently only support block level boxes */
/** \todo Not wise to drop const from the computed style */
gen = box_create(NULL, (css_computed_style *) style,
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org