summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/gtkhtml2/files/at-import_box-pos.patch
diff options
context:
space:
mode:
authorChris Lord <chris@openedhand.com>2006-02-07 04:22:50 +0000
committerChris Lord <chris@openedhand.com>2006-02-07 04:22:50 +0000
commit4fbba6350edd17d9272a668b5ba564f558974a94 (patch)
treedafc821fd7b7d4ec5e08966b6ac479f50f94e5df /openembedded/packages/gtkhtml2/files/at-import_box-pos.patch
parentef60244cc4a28777efdaed9260e8c7ae4872e2b1 (diff)
downloadpoky-4fbba6350edd17d9272a668b5ba564f558974a94.tar.gz
Add curl (new dependency of Web), fix a fontconfig-native build issue,
update gtkhtml2 patches and update to a newer more functional Web snapshot git-svn-id: https://svn.o-hand.com/repos/poky@251 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/gtkhtml2/files/at-import_box-pos.patch')
-rw-r--r--openembedded/packages/gtkhtml2/files/at-import_box-pos.patch193
1 files changed, 56 insertions, 137 deletions
diff --git a/openembedded/packages/gtkhtml2/files/at-import_box-pos.patch b/openembedded/packages/gtkhtml2/files/at-import_box-pos.patch
index 89e60e5d28..fb31d057a4 100644
--- a/openembedded/packages/gtkhtml2/files/at-import_box-pos.patch
+++ b/openembedded/packages/gtkhtml2/files/at-import_box-pos.patch
@@ -1,11 +1,8 @@
1Index: libgtkhtml/css/cssmatcher.c 1Index: libgtkhtml/css/cssmatcher.c
2=================================================================== 2===================================================================
3RCS file: /cvs/gnome/gtkhtml2/libgtkhtml/css/cssmatcher.c,v 3--- libgtkhtml/css/cssmatcher.c.orig 2006-02-04 20:10:47.000000000 +0000
4retrieving revision 1.53 4+++ libgtkhtml/css/cssmatcher.c 2006-02-05 18:19:15.000000000 +0000
5diff -u -r1.53 cssmatcher.c 5@@ -79,7 +79,7 @@ css_matcher_match_simple_selector (CssSi
6--- libgtkhtml/css/cssmatcher.c 26 Oct 2005 02:04:24 -0000 1.53
7+++ libgtkhtml/css/cssmatcher.c 18 Jan 2006 18:24:09 -0000
8@@ -79,7 +79,7 @@
9 element_name = html_atom_list_get_atom (html_atom_list, node->name); 6 element_name = html_atom_list_get_atom (html_atom_list, node->name);
10 7
11 /* Look at the element name */ 8 /* Look at the element name */
@@ -14,7 +11,7 @@ diff -u -r1.53 cssmatcher.c
14 return FALSE; 11 return FALSE;
15 12
16 str = xmlGetProp (node, "id"); 13 str = xmlGetProp (node, "id");
17@@ -2373,7 +2373,7 @@ 14@@ -2384,7 +2384,7 @@ css_matcher_sheet_stream_close (HtmlStre
18 CssStylesheet *ss; 15 CssStylesheet *ss;
19 16
20 if (html_stream_get_written (stream) != 0) { 17 if (html_stream_get_written (stream) != 0) {
@@ -23,7 +20,7 @@ diff -u -r1.53 cssmatcher.c
23 20
24 context->stat->s.import_rule.fetched = TRUE; 21 context->stat->s.import_rule.fetched = TRUE;
25 22
26@@ -2770,7 +2770,7 @@ 23@@ -2781,7 +2781,7 @@ css_matcher_get_style (HtmlDocument *doc
27 css_matcher_html_to_css (doc, style, node); 24 css_matcher_html_to_css (doc, style, node);
28 25
29 if (!default_stylesheet) { 26 if (!default_stylesheet) {
@@ -32,7 +29,7 @@ diff -u -r1.53 cssmatcher.c
32 } 29 }
33 30
34 css_matcher_apply_stylesheet (doc, default_stylesheet, node, &declaration_list, CSS_STYLESHEET_DEFAULT, pseudo); 31 css_matcher_apply_stylesheet (doc, default_stylesheet, node, &declaration_list, CSS_STYLESHEET_DEFAULT, pseudo);
35@@ -2789,7 +2789,7 @@ 32@@ -2800,7 +2800,7 @@ css_matcher_get_style (HtmlDocument *doc
36 prop = xmlGetProp (node, "style"); 33 prop = xmlGetProp (node, "style");
37 34
38 if (prop) { 35 if (prop) {
@@ -43,12 +40,9 @@ diff -u -r1.53 cssmatcher.c
43 if (rs) { 40 if (rs) {
44Index: libgtkhtml/css/cssparser.c 41Index: libgtkhtml/css/cssparser.c
45=================================================================== 42===================================================================
46RCS file: /cvs/gnome/gtkhtml2/libgtkhtml/css/cssparser.c,v 43--- libgtkhtml/css/cssparser.c.orig 2006-02-04 20:10:47.000000000 +0000
47retrieving revision 1.23 44+++ libgtkhtml/css/cssparser.c 2006-02-05 18:19:15.000000000 +0000
48diff -u -r1.23 cssparser.c 45@@ -49,7 +49,7 @@ const gchar *css_dimensions[] = {
49--- libgtkhtml/css/cssparser.c 25 Sep 2005 02:07:21 -0000 1.23
50+++ libgtkhtml/css/cssparser.c 18 Jan 2006 18:24:09 -0000
51@@ -49,7 +49,7 @@
52 46
53 const gint css_n_dimensions = sizeof (css_dimensions) / sizeof (css_dimensions[0]); 47 const gint css_n_dimensions = sizeof (css_dimensions) / sizeof (css_dimensions[0]);
54 48
@@ -57,7 +51,7 @@ diff -u -r1.23 cssparser.c
57 51
58 /* FIXME: Needs more whitespace types */ 52 /* FIXME: Needs more whitespace types */
59 static gint 53 static gint
60@@ -443,7 +443,7 @@ 54@@ -443,7 +443,7 @@ css_parser_parse_number (const gchar *bu
61 } 55 }
62 56
63 static gint 57 static gint
@@ -66,7 +60,7 @@ diff -u -r1.23 cssparser.c
66 { 60 {
67 gint pos; 61 gint pos;
68 HtmlAtom atom; 62 HtmlAtom atom;
69@@ -481,7 +481,7 @@ 63@@ -481,7 +481,7 @@ css_parser_parse_term (const gchar *buff
70 return -1; 64 return -1;
71 } 65 }
72 66
@@ -75,7 +69,7 @@ diff -u -r1.23 cssparser.c
75 69
76 if (pos == -1) { 70 if (pos == -1) {
77 /* 71 /*
78@@ -495,10 +495,48 @@ 72@@ -495,10 +495,48 @@ css_parser_parse_term (const gchar *buff
79 pos = func_end; 73 pos = func_end;
80 } 74 }
81 if (pos != -1) { 75 if (pos != -1) {
@@ -126,7 +120,7 @@ diff -u -r1.23 cssparser.c
126 } 120 }
127 121
128 /* This is due to the ) */ 122 /* This is due to the ) */
129@@ -566,7 +604,7 @@ 123@@ -566,7 +604,7 @@ css_parser_parse_term (const gchar *buff
130 } 124 }
131 125
132 static gint 126 static gint
@@ -135,7 +129,7 @@ diff -u -r1.23 cssparser.c
135 { 129 {
136 gint pos = start_pos; 130 gint pos = start_pos;
137 gint n = 0; 131 gint n = 0;
138@@ -589,7 +627,7 @@ 132@@ -589,7 +627,7 @@ css_parser_parse_value (const gchar *buf
139 css_value_list_append (list, term, list_sep); 133 css_value_list_append (list, term, list_sep);
140 } 134 }
141 135
@@ -144,7 +138,7 @@ diff -u -r1.23 cssparser.c
144 138
145 if (pos == -1) { 139 if (pos == -1) {
146 if (list) 140 if (list)
147@@ -618,7 +656,7 @@ 141@@ -618,7 +656,7 @@ css_parser_parse_value (const gchar *buf
148 } 142 }
149 else { 143 else {
150 /* Try and parse the term to see if it's valid */ 144 /* Try and parse the term to see if it's valid */
@@ -153,7 +147,7 @@ diff -u -r1.23 cssparser.c
153 if (term) 147 if (term)
154 css_value_unref (term); 148 css_value_unref (term);
155 if (list) 149 if (list)
156@@ -1005,7 +1043,7 @@ 150@@ -1005,7 +1043,7 @@ css_parser_parse_selectors (const gchar
157 } 151 }
158 152
159 static gint 153 static gint
@@ -162,7 +156,7 @@ diff -u -r1.23 cssparser.c
162 { 156 {
163 CssValue *value; 157 CssValue *value;
164 CssDeclaration *result; 158 CssDeclaration *result;
165@@ -1040,7 +1078,7 @@ 159@@ -1040,7 +1078,7 @@ css_parser_parse_declaration (const gcha
166 160
167 pos = css_parser_parse_whitespace (buffer, pos, prio_pos); 161 pos = css_parser_parse_whitespace (buffer, pos, prio_pos);
168 162
@@ -171,7 +165,7 @@ diff -u -r1.23 cssparser.c
171 165
172 if (pos == -1) { 166 if (pos == -1) {
173 return end_pos; 167 return end_pos;
174@@ -1063,7 +1101,7 @@ 168@@ -1063,7 +1101,7 @@ css_parser_parse_declaration (const gcha
175 } 169 }
176 170
177 static CssDeclaration ** 171 static CssDeclaration **
@@ -180,7 +174,7 @@ diff -u -r1.23 cssparser.c
180 { 174 {
181 gint pos = start_pos; 175 gint pos = start_pos;
182 gint cur_pos = start_pos; 176 gint cur_pos = start_pos;
183@@ -1079,7 +1117,7 @@ 177@@ -1079,7 +1117,7 @@ css_parser_parse_declarations (const gch
184 178
185 pos = css_parser_parse_to_char (buffer, ';', pos, end_pos); 179 pos = css_parser_parse_to_char (buffer, ';', pos, end_pos);
186 180
@@ -189,7 +183,7 @@ diff -u -r1.23 cssparser.c
189 183
190 if (declaration) { 184 if (declaration) {
191 if (n_decl == n_decl_max) 185 if (n_decl == n_decl_max)
192@@ -1100,7 +1138,7 @@ 186@@ -1100,7 +1138,7 @@ css_parser_parse_declarations (const gch
193 } 187 }
194 188
195 static gint 189 static gint
@@ -198,7 +192,7 @@ diff -u -r1.23 cssparser.c
198 { 192 {
199 gint cur_pos; 193 gint cur_pos;
200 gint pos; 194 gint pos;
201@@ -1143,7 +1181,7 @@ 195@@ -1143,7 +1181,7 @@ css_parser_parse_ruleset (const gchar *b
202 } 196 }
203 cur_pos = css_parser_parse_whitespace (buffer, cur_pos, end_pos); 197 cur_pos = css_parser_parse_whitespace (buffer, cur_pos, end_pos);
204 198
@@ -207,7 +201,7 @@ diff -u -r1.23 cssparser.c
207 201
208 pos++; 202 pos++;
209 203
210@@ -1186,7 +1224,8 @@ 204@@ -1186,7 +1224,8 @@ css_parser_prepare_stylesheet (const gch
211 } 205 }
212 else if (str[pos] == '/' && 206 else if (str[pos] == '/' &&
213 pos + 1 <= len && 207 pos + 1 <= len &&
@@ -217,7 +211,7 @@ diff -u -r1.23 cssparser.c
217 while (pos < len && 211 while (pos < len &&
218 str[pos] != '\n') 212 str[pos] != '\n')
219 pos++; 213 pos++;
220@@ -1204,7 +1243,7 @@ 214@@ -1204,7 +1243,7 @@ css_parser_prepare_stylesheet (const gch
221 } 215 }
222 216
223 static gint 217 static gint
@@ -226,7 +220,7 @@ diff -u -r1.23 cssparser.c
226 { 220 {
227 gint pos = start_pos; 221 gint pos = start_pos;
228 gint tmp_pos, cur_pos; 222 gint tmp_pos, cur_pos;
229@@ -1257,14 +1296,14 @@ 223@@ -1257,14 +1296,14 @@ css_parser_parse_atkeyword (const gchar
230 tmp_pos++; 224 tmp_pos++;
231 225
232 226
@@ -243,7 +237,7 @@ diff -u -r1.23 cssparser.c
243 237
244 if (n_rs == n_rs_max) 238 if (n_rs == n_rs_max)
245 rs = g_realloc (rs, sizeof (CssRuleset *) * 239 rs = g_realloc (rs, sizeof (CssRuleset *) *
246@@ -1277,7 +1316,7 @@ 240@@ -1277,7 +1316,7 @@ css_parser_parse_atkeyword (const gchar
247 241
248 pos = css_parser_parse_whitespace (buffer, tmp_pos + 1, end_pos); 242 pos = css_parser_parse_whitespace (buffer, tmp_pos + 1, end_pos);
249 243
@@ -252,7 +246,7 @@ diff -u -r1.23 cssparser.c
252 result->type = CSS_MEDIA_RULE; 246 result->type = CSS_MEDIA_RULE;
253 result->s.media_rule.rs = rs; 247 result->s.media_rule.rs = rs;
254 result->s.media_rule.n_rs = n_rs; 248 result->s.media_rule.n_rs = n_rs;
255@@ -1318,11 +1357,11 @@ 249@@ -1318,11 +1357,11 @@ css_parser_parse_atkeyword (const gchar
256 250
257 pos = css_parser_parse_whitespace (buffer, pos, cur_pos); 251 pos = css_parser_parse_whitespace (buffer, pos, cur_pos);
258 252
@@ -266,7 +260,7 @@ diff -u -r1.23 cssparser.c
266 result->type = CSS_PAGE_RULE; 260 result->type = CSS_PAGE_RULE;
267 result->s.page_rule.name = name; 261 result->s.page_rule.name = name;
268 result->s.page_rule.pseudo = pseudo; 262 result->s.page_rule.pseudo = pseudo;
269@@ -1337,8 +1376,8 @@ 263@@ -1337,8 +1376,8 @@ css_parser_parse_atkeyword (const gchar
270 pos = css_parser_parse_whitespace (buffer, pos + 1, end_pos); 264 pos = css_parser_parse_whitespace (buffer, pos + 1, end_pos);
271 cur_pos = css_parser_parse_to_char (buffer, '}', pos, end_pos); 265 cur_pos = css_parser_parse_to_char (buffer, '}', pos, end_pos);
272 266
@@ -277,7 +271,7 @@ diff -u -r1.23 cssparser.c
277 result->type = CSS_FONT_FACE_RULE; 271 result->type = CSS_FONT_FACE_RULE;
278 272
279 result->s.font_face_rule.n_decl = n_decl; 273 result->s.font_face_rule.n_decl = n_decl;
280@@ -1349,8 +1388,61 @@ 274@@ -1349,8 +1388,61 @@ css_parser_parse_atkeyword (const gchar
281 return cur_pos + 1; 275 return cur_pos + 1;
282 276
283 break; 277 break;
@@ -339,7 +333,7 @@ diff -u -r1.23 cssparser.c
339 /* Unknown keyword detected, skip to next block */ 333 /* Unknown keyword detected, skip to next block */
340 while (pos < end_pos) { 334 while (pos < end_pos) {
341 /* Handle a dangling semi-colon */ 335 /* Handle a dangling semi-colon */
342@@ -1373,7 +1465,7 @@ 336@@ -1373,7 +1465,7 @@ css_parser_parse_atkeyword (const gchar
343 } 337 }
344 338
345 CssRuleset * 339 CssRuleset *
@@ -348,7 +342,7 @@ diff -u -r1.23 cssparser.c
348 { 342 {
349 CssRuleset *result; 343 CssRuleset *result;
350 344
351@@ -1382,7 +1474,7 @@ 345@@ -1382,7 +1474,7 @@ css_parser_parse_style_attr (const gchar
352 346
353 /* FIXME: Are comments allowed here? */ 347 /* FIXME: Are comments allowed here? */
354 348
@@ -357,7 +351,7 @@ diff -u -r1.23 cssparser.c
357 351
358 if (!decl) 352 if (!decl)
359 return NULL; 353 return NULL;
360@@ -1397,9 +1489,8 @@ 354@@ -1397,9 +1489,8 @@ css_parser_parse_style_attr (const gchar
361 } 355 }
362 356
363 CssStylesheet * 357 CssStylesheet *
@@ -368,7 +362,7 @@ diff -u -r1.23 cssparser.c
368 CssStylesheet *result; 362 CssStylesheet *result;
369 GSList *stat = NULL; 363 GSList *stat = NULL;
370 gchar *buffer; 364 gchar *buffer;
371@@ -1413,26 +1504,23 @@ 365@@ -1413,26 +1504,23 @@ css_parser_parse_stylesheet (const gchar
372 end_pos = len; 366 end_pos = len;
373 while (pos < len) { 367 while (pos < len) {
374 if (buffer[pos] == '@') { 368 if (buffer[pos] == '@') {
@@ -405,7 +399,7 @@ diff -u -r1.23 cssparser.c
405 } 399 }
406 400
407 if (pos == -1) 401 if (pos == -1)
408@@ -1444,7 +1532,7 @@ 402@@ -1444,7 +1532,7 @@ css_parser_parse_stylesheet (const gchar
409 403
410 g_free (buffer); 404 g_free (buffer);
411 405
@@ -416,11 +410,8 @@ diff -u -r1.23 cssparser.c
416 return result; 410 return result;
417Index: libgtkhtml/css/cssparser.h 411Index: libgtkhtml/css/cssparser.h
418=================================================================== 412===================================================================
419RCS file: /cvs/gnome/gtkhtml2/libgtkhtml/css/cssparser.h,v 413--- libgtkhtml/css/cssparser.h.orig 2006-02-04 20:10:47.000000000 +0000
420retrieving revision 1.7 414+++ libgtkhtml/css/cssparser.h 2006-02-05 18:19:15.000000000 +0000
421diff -u -r1.7 cssparser.h
422--- libgtkhtml/css/cssparser.h 6 Dec 2002 17:16:54 -0000 1.7
423+++ libgtkhtml/css/cssparser.h 18 Jan 2006 18:24:09 -0000
424@@ -24,13 +24,14 @@ 415@@ -24,13 +24,14 @@
425 #define __CSSPARSER_H__ 416 #define __CSSPARSER_H__
426 417
@@ -440,12 +431,9 @@ diff -u -r1.7 cssparser.h
440 431
441Index: libgtkhtml/css/cssstylesheet.h 432Index: libgtkhtml/css/cssstylesheet.h
442=================================================================== 433===================================================================
443RCS file: /cvs/gnome/gtkhtml2/libgtkhtml/css/cssstylesheet.h,v 434--- libgtkhtml/css/cssstylesheet.h.orig 2006-02-04 20:10:47.000000000 +0000
444retrieving revision 1.7 435+++ libgtkhtml/css/cssstylesheet.h 2006-02-05 18:19:15.000000000 +0000
445diff -u -r1.7 cssstylesheet.h 436@@ -181,6 +181,7 @@ struct _CssTail {
446--- libgtkhtml/css/cssstylesheet.h 21 Apr 2004 14:17:00 -0000 1.7
447+++ libgtkhtml/css/cssstylesheet.h 18 Jan 2006 18:24:09 -0000
448@@ -181,6 +181,7 @@
449 }; 437 };
450 438
451 struct _CssStylesheet { 439 struct _CssStylesheet {
@@ -455,12 +443,9 @@ diff -u -r1.7 cssstylesheet.h
455 }; 443 };
456Index: libgtkhtml/css/cssvalue.c 444Index: libgtkhtml/css/cssvalue.c
457=================================================================== 445===================================================================
458RCS file: /cvs/gnome/gtkhtml2/libgtkhtml/css/cssvalue.c,v 446--- libgtkhtml/css/cssvalue.c.orig 2006-02-04 20:10:47.000000000 +0000
459retrieving revision 1.6 447+++ libgtkhtml/css/cssvalue.c 2006-02-04 20:13:33.000000000 +0000
460diff -u -r1.6 cssvalue.c 448@@ -64,7 +64,7 @@ css_value_function_new (HtmlAtom name, C
461--- libgtkhtml/css/cssvalue.c 21 Apr 2004 14:17:00 -0000 1.6
462+++ libgtkhtml/css/cssvalue.c 18 Jan 2006 18:24:09 -0000
463@@ -64,7 +64,7 @@
464 function->name = name; 449 function->name = name;
465 function->args = args; 450 function->args = args;
466 451
@@ -471,12 +456,9 @@ diff -u -r1.6 cssvalue.c
471 result->v.function = function; 456 result->v.function = function;
472Index: libgtkhtml/document/htmldocument.c 457Index: libgtkhtml/document/htmldocument.c
473=================================================================== 458===================================================================
474RCS file: /cvs/gnome/gtkhtml2/libgtkhtml/document/htmldocument.c,v 459--- libgtkhtml/document/htmldocument.c.orig 2006-02-04 20:10:47.000000000 +0000
475retrieving revision 1.122 460+++ libgtkhtml/document/htmldocument.c 2006-02-05 18:19:17.000000000 +0000
476diff -u -r1.122 htmldocument.c 461@@ -134,14 +134,42 @@ static void
477--- libgtkhtml/document/htmldocument.c 21 Feb 2005 17:31:31 -0000 1.122
478+++ libgtkhtml/document/htmldocument.c 18 Jan 2006 18:24:11 -0000
479@@ -139,14 +139,42 @@
480 html_document_stylesheet_stream_close (const gchar *buffer, gint len, gpointer data) 462 html_document_stylesheet_stream_close (const gchar *buffer, gint len, gpointer data)
481 { 463 {
482 CssStylesheet *sheet; 464 CssStylesheet *sheet;
@@ -522,7 +504,7 @@ diff -u -r1.122 htmldocument.c
522 document->stylesheets = g_slist_append (document->stylesheets, sheet); 504 document->stylesheets = g_slist_append (document->stylesheets, sheet);
523 505
524 /* Restyle the document */ 506 /* Restyle the document */
525@@ -184,9 +212,15 @@ 507@@ -179,9 +207,15 @@ html_document_node_inserted_traverser (H
526 508
527 if (str && (strcasecmp (str, "stylesheet") == 0)) { 509 if (str && (strcasecmp (str, "stylesheet") == 0)) {
528 gchar *url = xmlGetProp (node->xmlnode, "href"); 510 gchar *url = xmlGetProp (node->xmlnode, "href");
@@ -540,7 +522,7 @@ diff -u -r1.122 htmldocument.c
540 522
541 g_signal_emit (G_OBJECT (document), document_signals [REQUEST_URL], 0, url, stream); 523 g_signal_emit (G_OBJECT (document), document_signals [REQUEST_URL], 0, url, stream);
542 } 524 }
543@@ -247,12 +281,39 @@ 525@@ -242,12 +276,39 @@ html_document_node_inserted_traverser (H
544 526
545 CssStylesheet *ss; 527 CssStylesheet *ss;
546 HtmlStyleChange style_change; 528 HtmlStyleChange style_change;
@@ -586,11 +568,8 @@ diff -u -r1.122 htmldocument.c
586 else if ((node->xmlnode->type == XML_TEXT_NODE || node->xmlnode->type == XML_COMMENT_NODE) && node->xmlnode->parent && strcasecmp (node->xmlnode->parent->name, "script") == 0) { 568 else if ((node->xmlnode->type == XML_TEXT_NODE || node->xmlnode->type == XML_COMMENT_NODE) && node->xmlnode->parent && strcasecmp (node->xmlnode->parent->name, "script") == 0) {
587Index: libgtkhtml/document/htmldocument.h 569Index: libgtkhtml/document/htmldocument.h
588=================================================================== 570===================================================================
589RCS file: /cvs/gnome/gtkhtml2/libgtkhtml/document/htmldocument.h,v 571--- libgtkhtml/document/htmldocument.h.orig 2006-02-04 20:10:47.000000000 +0000
590retrieving revision 1.35 572+++ libgtkhtml/document/htmldocument.h 2006-02-05 18:19:17.000000000 +0000
591diff -u -r1.35 htmldocument.h
592--- libgtkhtml/document/htmldocument.h 13 Feb 2005 15:33:19 -0000 1.35
593+++ libgtkhtml/document/htmldocument.h 18 Jan 2006 18:24:12 -0000
594@@ -25,6 +25,7 @@ 573@@ -25,6 +25,7 @@
595 574
596 typedef struct _HtmlDocument HtmlDocument; 575 typedef struct _HtmlDocument HtmlDocument;
@@ -599,7 +578,7 @@ diff -u -r1.35 htmldocument.h
599 578
600 #include <gtk/gtk.h> 579 #include <gtk/gtk.h>
601 580
602@@ -93,6 +94,10 @@ 581@@ -93,6 +94,10 @@ struct _HtmlDocumentClass {
603 gboolean (*dom_mouse_out) (HtmlDocument *document, DomEvent *event); 582 gboolean (*dom_mouse_out) (HtmlDocument *document, DomEvent *event);
604 }; 583 };
605 584
@@ -612,12 +591,9 @@ diff -u -r1.35 htmldocument.h
612 591
613Index: libgtkhtml/layout/htmlboxblock.c 592Index: libgtkhtml/layout/htmlboxblock.c
614=================================================================== 593===================================================================
615RCS file: /cvs/gnome/gtkhtml2/libgtkhtml/layout/htmlboxblock.c,v 594--- libgtkhtml/layout/htmlboxblock.c.orig 2006-02-04 20:10:47.000000000 +0000
616retrieving revision 1.115 595+++ libgtkhtml/layout/htmlboxblock.c 2006-02-04 20:13:33.000000000 +0000
617diff -u -r1.115 htmlboxblock.c 596@@ -100,17 +100,21 @@ html_real_box_block_update_geometry (Htm
618--- libgtkhtml/layout/htmlboxblock.c 6 Jan 2004 10:09:56 -0000 1.115
619+++ libgtkhtml/layout/htmlboxblock.c 18 Jan 2006 18:24:14 -0000
620@@ -100,17 +100,21 @@
621 HtmlBoxBlock *block = HTML_BOX_BLOCK (self); 597 HtmlBoxBlock *block = HTML_BOX_BLOCK (self);
622 gint full_width; 598 gint full_width;
623 599
@@ -640,68 +616,11 @@ diff -u -r1.115 htmlboxblock.c
640 full_width = MAX (line->width, line->full_width); 616 full_width = MAX (line->width, line->full_width);
641 617
642 if (full_width > block->full_width) 618 if (full_width > block->full_width)
643@@ -233,7 +237,7 @@
644 HtmlBoxBlock *block = HTML_BOX_BLOCK (self);
645 HtmlLineBox *line;
646
647- /* If it is a flotbox, just add it */
648+ /* If it is a floatbox, just add it */
649 if (HTML_BOX_GET_STYLE (box)->Float != HTML_FLOAT_NONE) {
650 html_box_block_handle_float (self, relayout, box, *y, boxwidth);
651 return NULL;
652Index: libgtkhtml/layout/htmlstyleinherited.c
653===================================================================
654RCS file: /cvs/gnome/gtkhtml2/libgtkhtml/layout/htmlstyleinherited.c,v
655retrieving revision 1.15
656diff -u -r1.15 htmlstyleinherited.c
657--- libgtkhtml/layout/htmlstyleinherited.c 6 Dec 2002 17:17:15 -0000 1.15
658+++ libgtkhtml/layout/htmlstyleinherited.c 18 Jan 2006 18:24:15 -0000
659@@ -300,6 +300,37 @@
660 *size = (gint) (val->v.d * old_size);
661 return TRUE;
662 default:
663+ switch (val->v.atom) {
664+ /* FIXME: These values are copy/pasted from html.css.h, X_SMALL is guessed */
665+ case HTML_ATOM_XX_SMALL:
666+ *size = (gint) (0.67 * old_size);
667+ return TRUE;
668+ case HTML_ATOM_X_SMALL:
669+ *size = (gint) (0.75 * old_size);
670+ return TRUE;
671+ case HTML_ATOM_SMALL:
672+ *size = (gint) (0.83 * old_size);
673+ return TRUE;
674+ case HTML_ATOM_MEDIUM:
675+ *size = (gint) (1 * old_size);
676+ return TRUE;
677+ case HTML_ATOM_LARGE:
678+ *size = (gint) (1.17 * old_size);
679+ return TRUE;
680+ case HTML_ATOM_X_LARGE:
681+ *size = (gint) (1.5 * old_size);
682+ return TRUE;
683+ case HTML_ATOM_XX_LARGE:
684+ *size = (gint) (2 * old_size);
685+ return TRUE;
686+ /* FIXME: These are absolutely guessed. Size should always be one of the above seven. */
687+ case HTML_ATOM_LARGER:
688+ *size = (gint) (0.8 * old_size);
689+ return TRUE;
690+ case HTML_ATOM_SMALLER:
691+ *size = (gint) (1.2 * old_size);
692+ return TRUE;
693+ }
694 return FALSE;
695 }
696 }
697Index: libgtkhtml/view/htmlevent.c 619Index: libgtkhtml/view/htmlevent.c
698=================================================================== 620===================================================================
699RCS file: /cvs/gnome/gtkhtml2/libgtkhtml/view/htmlevent.c,v 621--- libgtkhtml/view/htmlevent.c.orig 2006-02-04 20:10:47.000000000 +0000
700retrieving revision 1.41 622+++ libgtkhtml/view/htmlevent.c 2006-02-04 20:13:33.000000000 +0000
701diff -u -r1.41 htmlevent.c 623@@ -46,14 +46,48 @@ html_event_find_parent_dom_node (HtmlBox
702--- libgtkhtml/view/htmlevent.c 14 Sep 2004 06:34:27 -0000 1.41
703+++ libgtkhtml/view/htmlevent.c 18 Jan 2006 18:24:17 -0000
704@@ -46,14 +46,48 @@
705 static gboolean 624 static gboolean
706 html_event_xy_in_box (HtmlBox *box, gint tx, gint ty, gint x, gint y) 625 html_event_xy_in_box (HtmlBox *box, gint tx, gint ty, gint x, gint y)
707 { 626 {
@@ -752,7 +671,7 @@ diff -u -r1.41 htmlevent.c
752 } 671 }
753 672
754 static void 673 static void
755@@ -64,12 +98,6 @@ 674@@ -64,12 +98,6 @@ html_event_find_box_traverser (HtmlBox *
756 box = self->children; 675 box = self->children;
757 676
758 while (box) { 677 while (box) {