-
Notifications
You must be signed in to change notification settings - Fork 3
/
ChangeLog-2002-12-03
17943 lines (14023 loc) · 710 KB
/
ChangeLog-2002-12-03
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2002-12-03 David Hyatt <[email protected]>
Fix for 3078227, hanging in table code. Make sure <form>s
don't get wrapped in anonymous rows and cells.
Reviewed by: rjw
* khtml/rendering/render_table.cpp:
(RenderTable::addChild):
(RenderTableSection::addChild):
(RenderTableRow::addChild):
2002-12-03 David Hyatt <[email protected]>
Backing out a file that I did not intend to check in.
* khtml/misc/loader.cpp:
2002-12-03 Richard Williamson <[email protected]>
D'oh. Fixed last minute change that broke the build.
* kwq/KWQFont.mm:
(QFont::getNSFont):
2002-12-03 David Hyatt <[email protected]>
Remove the moveWidgetsAside function. This fixes all the
form controls on livepage.apple.com that were getting hosed
by the scrolling marquee.
Reviewed by: darin
* khtml/html/html_tableimpl.cpp:
(HTMLTableRowElementImpl::addChild):
* khtml/misc/loader.cpp:
* khtml/rendering/render_root.cpp:
(RenderRoot::layout):
* kwq/KWQKHTMLPart.h:
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::KWQKHTMLPart):
(KWQKHTMLPart::paint):
2002-12-03 Richard Williamson <[email protected]>
Fixed 3019986. Use an array of font families instead of a single
font family to support CSS family lists.
r=hyatt
* kwq/KWQFont.h:
* kwq/KWQFont.mm:
(QFont::getNSFont):
* kwq/KWQFontMetrics.mm:
(QFontMetrics::width):
(QFontMetrics::floatWidth):
(QFontMetrics::floatCharacterWidths):
* kwq/KWQPainter.mm:
(QPainter::drawText):
(QPainter::drawUnderlineForText):
* kwq/WebCoreTextRenderer.h:
* kwq/WebCoreTextRendererFactory.h:
* kwq/WebCoreTextRendererFactory.m:
(-[WebCoreTextRendererFactory rendererWithFamilies:traits:size:]):
(-[WebCoreTextRendererFactory fontWithFamilies:traits:size:]):
2002-12-03 David Hyatt <[email protected]>
Fix for 3112599, aol.com shopping page doesn't work. Apply
the same form demotion trick to <tr> that I did already for
<tbody> and <table>.
r=gramps
* khtml/html/dtd.cpp:
(DOM::checkChild):
* khtml/html/html_tableimpl.cpp:
(HTMLTableRowElementImpl::addChild):
* khtml/html/html_tableimpl.h:
2002-12-03 David Hyatt <[email protected]>
Fix link feedback regression on aintitcool.com. Observe
the wacky feedback we give now (yes, it matches MacIE and
Gecko). Gotta love this malformed page.
<a><h4>...</h4></a>
r=mjs
* khtml/rendering/render_object.cpp:
(RenderObject::nodeAtPoint):
2002-12-03 David Hyatt <[email protected]>
Eliminate the KONQBLOCK hack. Fixes ipodhacks.com (a mislayout
caused by malformed html... <table><br>...)
r=mjs
* khtml/css/html4.css:
* khtml/html/dtd.cpp:
(DOM::checkChild):
* khtml/html/html_elementimpl.cpp:
(HTMLElementImpl::isInline):
* khtml/html/htmlparser.cpp:
(KHTMLParser::reset):
(KHTMLParser::insertNode):
* khtml/html/htmlparser.h:
* khtml/misc/htmltags.c:
(hash_tag):
(findTag):
* khtml/misc/htmltags.h:
* khtml/misc/htmltags.in:
* khtml/rendering/render_flow.cpp:
(RenderFlow::layoutBlockChildren):
2002-12-02 David Hyatt <[email protected]>
Fix for 3032557, wsj.com DHTML elements in the wrong position.
This patch adds support for img.x and img.y (a Mozilla extension
from NS4 days), which is used by the site to position the menus.
r=kocienda on the patch.
* khtml/dom/html_image.cpp:
(HTMLImageElement::x):
(HTMLImageElement::y):
* khtml/dom/html_image.h:
* khtml/ecma/kjs_html.cpp:
(KJS::HTMLElement::getValueProperty):
* khtml/ecma/kjs_html.h:
* khtml/ecma/kjs_html.lut.h:
2002-12-02 David Hyatt <[email protected]>
Undo my changes to margin collapsing for blocks inside inlines.
Although they may be correct in a strict mode, they don't
work with the real-world Web. For now, I'm just backing out
the code. The CSS WG hasn't decided how this should work yet
anyway, so I'll just let the quirk behavior be our behavior
in both modes.
This fixes aintitcool.com.
* khtml/rendering/render_flow.cpp:
(RenderFlow::layoutBlockChildren):
2002-12-01 David Hyatt <[email protected]>
Convert the WebCore cache from LRU to size-adjusted and
popularity-aware LRU (LRU-SP). With the improved cache,
the size restriction on images can be relaxed back to 40K
(from 16K) while retaining the same score on cvs-base.
This should result in better real-world performance.
* khtml/misc/loader.cpp:
(CachedObject::ref):
(CachedObject::setSize):
(m_tail):
(LRUList::~LRUList):
(Cache::flush):
(FastLog2):
(Cache::getLRUListFor):
(Cache::removeFromLRUList):
(Cache::insertInLRUList):
(Cache::adjustSize):
* khtml/misc/loader.h:
2002-11-29 Don Melton <[email protected]>
* khtml/css/html4.css:
Finally tweak headline font sizes and margins to match Gecko and CSS
standard:
- increase H1 font-size from 1.7em to 2em
- increase H2 font-size from 1.4em to 1.5em
- make H2 top and bottom margin match (bottom was strangely .87em)
- increase H4 margin from 1.0em to 1.33em
2002-11-27 David Hyatt <[email protected]>
Fix DHTML on phoenix.com. Add support for window.addEventListener
and window.removeEventListener.
* khtml/ecma/kjs_window.cpp:
(Window::get):
(WindowFunc::tryCall):
* khtml/ecma/kjs_window.h:
* khtml/ecma/kjs_window.lut.h:
2002-11-27 Maciej Stachowiak <[email protected]>
- avoid doing any work when setting the document's link colors if
there is no change. This avoids superfluous style updates and
results in a 20% improvment on the JavaScript iBench.
* khtml/ecma/kjs_html.cpp:
(KJS::HTMLDocument::putValue):
2002-11-27 David Hyatt <[email protected]>
Fix <br clear=""> and <br clear> to just behave like <br>
rather than <br clear="all">. Matches behavior in other
browsers.
* khtml/html/html_inlineimpl.cpp:
(HTMLBRElementImpl::parseAttribute):
2002-11-27 David Hyatt <[email protected]>
Numerous overflow: hidden improvements to fix espn.com.
First stop absolute positioned overflow hidden elements
from growing to accommodate their overflow. (Actually
absolute positioned elements should never grow to do this,
but fixing it for non-overflow hidden elements is hard,
so later.)
Second fix the render layer code to not allow background/borders
of the object with overflow: hidden from being clipped. This
involves an extra paint step where the object paints its
background and borders prior to establishing the clip rect
for the children. (This will also be necessary for overflow:auto
and overflow:scroll).
* ChangeLog:
* khtml/rendering/render_box.cpp:
(RenderBox::getClipRect):
(RenderBox::calcAbsoluteVertical):
* khtml/rendering/render_layer.cpp:
(RenderLayer::paint):
* khtml/rendering/render_object.h:
2002-11-27 David Hyatt <[email protected]>
* khtml/rendering/render_box.cpp:
(RenderBox::getClipRect):
(RenderBox::calcAbsoluteVertical):
* khtml/rendering/render_layer.cpp:
(RenderLayer::paint):
2002-11-27 David Hyatt <[email protected]>
Fix for 3105502. drop-downs wrapping to next line.
* khtml/css/html4.css:
2002-11-26 David Hyatt <[email protected]>
Smarter block inside inline handling. Eliminate whitespace
that is in between blocks inside inilnes.
* khtml/xml/dom_textimpl.cpp:
(TextImpl::attach):
2002-11-26 David Hyatt <[email protected]>
Don't let blocks inside inlines collapse with their surroundings
ever.
* khtml/rendering/render_flow.cpp:
(RenderFlow::layoutBlockChildren):
2002-11-26 David Hyatt <[email protected]>
Fix a collapsing margin regression on aintitcool caused by
my support of blocks inside inlines. A block could be wrapped
by an inline, e.g., <font><p>foo</p></font>, and in this case,
you do not apply the collapsing margin quirk. The margin stays.
* khtml/rendering/render_flow.cpp:
(RenderFlow::layoutBlockChildren):
2002-11-26 David Hyatt <[email protected]>
Fix the font family stuff to be refcounted, so copying
fonts stays cheap. Re-enabling it.
Patch the render_arena code with some debugging info
to help detect when memory gets trashed.
Fix the background painting code to deal with negative
x and y bakcground positions. Fixes the brain on
brainjar.com.
* khtml/css/cssstyleselector.cpp:
* khtml/rendering/render_arena.cpp:
(RenderArena::free):
* khtml/rendering/render_box.cpp:
(RenderBox::paintBackground):
* kwq/KWQFont.h:
* kwq/KWQFont.mm:
(QFontFamily::QFontFamily):
(QFontFamily::operator=):
=== Alexander-34 ===
2002-11-26 David Hyatt <[email protected]>
Backing out support for multiple font families for now.
The support is still there in QFont. I've just stopped
the style selector from walking the entire value list (it
will only put the first family into the font).
The original change caused a 5% perf regression.
I'm going to see what kinds of tricks I can pull to get
some of this back before re-enabling the feature.
* khtml/css/cssstyleselector.cpp:
2002-11-26 David Hyatt <[email protected]>
Fix render object removal to remerge adjacent anonymous inline boxes
when an intervening block box gets removed.
* khtml/rendering/render_flow.cpp:
(RenderFlow::removeChild):
* khtml/rendering/render_flow.h:
2002-11-25 Richard Williamson <[email protected]>
Cleanup up leaking objects in page cache.
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::openURLFromPageCache):
* kwq/WebCoreBridge.mm:
(-[KWQPageState initWithDocument:DOM::URL:windowProperties:KJS::locationProperties:KJS::]):
(-[KWQPageState dealloc]):
2002-11-25 Richard Williamson <[email protected]>
Added check for non-nil doc.
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::setView):
2002-11-25 David Hyatt <[email protected]>
Fix for the DHTML on hrweb. With these changes it works
except for some odd vertical spacing issues.
* khtml/rendering/render_flow.cpp:
(RenderFlow::addChildToFlow):
(RenderFlow::makeChildrenNonInline):
2002-11-25 Richard Williamson <[email protected]>
Tweaked some debugging info.
* khtml/xml/dom_docimpl.cpp:
(DocumentImpl::~DocumentImpl):
(DocumentImpl::detach):
2002-11-25 Chris Blumenberg <[email protected]>
Use ^= to refer to OBJECTs with TYPEs that start with "image/". This is better than hard-coding image mime types.
* khtml/css/html4.css:
2002-11-25 Chris Blumenberg <[email protected]>
Fixed: 2987001 - spurious mime-type errors from <object> images
KHTML didn't seem to have any clean support for OBJECT tags that are images. Added support for that.
* khtml/css/html4.css: OBJECTs that are images should be rendered inline
* khtml/html/html_objectimpl.cpp:
(HTMLObjectElementImpl::attach): if the type is an image, create a render image
* khtml/rendering/render_image.cpp:
(RenderImage::updateFromElement): if the element is an object, use DATA for the URL
* kwq/KWQDOMNode.cpp:
(isImage): if it is an OBJECT element, check the type
* kwq/WebCoreBridge.mm:
(-[WebCoreBridge elementAtPoint:]): if the element is an object, use DATA for the URL
2002-11-25 David Hyatt <[email protected]>
Fix this even further. JUst drop support for arbitrary
property lookup by name on the document. Mac IE and
Gecko only do this for img and form, and this makes things
a lot faster.
* khtml/ecma/kjs_html.cpp:
(KJS::HTMLDocument::hasProperty):
(KJS::HTMLDocument::tryGet):
2002-11-25 David Hyatt <[email protected]>
Rewrite the img/form document property lookup strategy. This
should be faster and actually work (gasp!). Fixes the dhtml
on hrweb to at least show up.
* khtml/ecma/kjs_html.cpp:
(KJS::HTMLDocument::tryGet):
* khtml/html/html_miscimpl.cpp:
(HTMLCollectionImpl::nextItem):
2002-11-25 David Hyatt <[email protected]>
Add support to QFont for multiple families. NOw all that's left
is getting the multiple families out of the font and down into
WebKit.
* khtml/css/cssstyleselector.cpp:
* khtml/rendering/font.cpp:
(Font::update):
* khtml/rendering/font.h:
* khtml/xml/dom_docimpl.cpp:
(DocumentImpl::recalcStyle):
* kwq/KWQFont.h:
* kwq/KWQFont.mm:
(QFontFamily::QFontFamily):
(QFontFamily::operator=):
(QFontFamily::family):
(QFontFamily::setFamily):
(QFontFamily::operator==):
(QFont::QFont):
(QFont::family):
(QFont::setFamily):
(QFont::getNSFontWithFamily):
2002-11-25 Richard Williamson <[email protected]>
Changes for back/forward. Currently disabled.
* ForwardingHeaders/kjs/property_map.h: Added.
* khtml/ecma/kjs_window.cpp:
(Window::hasTimeouts):
(WindowQObject::hasTimeouts):
* khtml/ecma/kjs_window.h:
* khtml/khtmlpart_p.h:
* khtml/xml/dom_docimpl.cpp:
(DocumentImpl::DocumentImpl):
(DocumentImpl::detach):
(DocumentImpl::inPageCache):
(DocumentImpl::setInPageCache):
* khtml/xml/dom_docimpl.h:
* kwq/KWQKHTMLPart.h:
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::setView):
(KWQKHTMLPart::userAgent):
(KWQKHTMLPart::nextKeyViewForWidget):
(KWQKHTMLPart::canCachePage):
(KWQKHTMLPart::saveWindowProperties):
(KWQKHTMLPart::saveLocationProperties):
(KWQKHTMLPart::restoreWindowProperties):
(KWQKHTMLPart::restoreLocationProperties):
(KWQKHTMLPart::openURLFromPageCache):
* kwq/WebCoreBridge.h:
* kwq/WebCoreBridge.mm:
(-[WebCoreBridge openURL:reload:headers:lastModified:pageCache:]):
(-[WebCoreBridge saveDocumentToPageCache]):
(-[WebCoreBridge canCachePage]):
(attributedString):
(-[KWQPageState initWithDocument:DOM::URL:windowProperties:KJS::locationProperties:KJS::]):
(-[KWQPageState dealloc]):
(-[KWQPageState DOM::]):
(-[KWQPageState URL]):
(-[KWQPageState KJS::]):
2002-11-25 David Hyatt <[email protected]>
Fix for 3025963. Ensure that KJS looks for the form on the
element itself when pushing it onto the scope chain, since
the <form> may not be an ancestor of the element.
* khtml/ecma/kjs_html.cpp:
(getForm):
(KJS::HTMLElement::pushEventHandlerScope):
* khtml/html/html_elementimpl.h:
2002-11-25 David Hyatt <[email protected]>
Fix for 3020493, another fun little margin collapsing quirk
that I missed. (<td><div><p>). The <div> has to pick up the quirk
from the <p> so that the margins of the <p> still get collapsed
away.
* khtml/rendering/render_flow.cpp:
(RenderFlow::layoutBlockChildren):
2002-11-25 David Hyatt <[email protected]>
Don't add in the halfleading for align=texttop. That's incorrect.
* khtml/rendering/render_object.cpp:
(RenderObject::getVerticalPosition):
2002-11-24 Maciej Stachowiak <[email protected]>
Fixed support for onLoad handlers on images - this is in
APPLE_CHANGES because khtml used a different mechanism. Also
implemented onError on images. As a result:
- fixed 3084916 - blank page at aol
- fixed 3093162 - golfswitch doesn't work
* khtml/html/html_imageimpl.cpp:
(HTMLImageElementImpl::parseAttribute): Remove "implement this"
comment from onError attribute.
* khtml/misc/loader.h:
* khtml/misc/loader.cpp:
(CachedImage::CachedImage): Initialize m_loading to true.
(CachedImage::ref): Send notifyFinished to the new client if the
image is not loading.
(CachedImage::data): If at eof, set m_loading to false and notify.
(CachedImage::error): Set m_loading to false and notify.
(CachedImage::checkNotify): New method to notify all clients of
changes.
* khtml/rendering/render_image.cpp:
(RenderImage::notifyFinished): Deliver the appropriate choice of
LOAD_EVENT or ERROR_EVENT.
2002-11-24 David Hyatt <[email protected]>
This landing adds support for blocks inside inlines. It
gets rid of the old broken way KHTML used to handle this
and implements a brand new mechanism.
With this change, I have decreased the tag priority of <font>
and <a> to match other inlines (<i>, <span>, etc.), and I
now allow all the inlines to contain blocks for relaxed parsing.
Now if you open an <i> or a <b> and just leave it open across
blocks, this will work.
I also fixed a bad DHTML bug caused by the WebCoreBridge
forceLayout method. The basic pattern is that someone does
a tiny repaint of just a sliver of the window, then someone
schedules a layout (which means they want a full repaint), but
then drawRect comes along and calls forceLayout which unschedules
the layout, thus preventing the full repaint from occurring.
Any basic DHTML that used append/remove child was broken because
of this pattern. For now I have just removed the unscheduleLayout
call at the end of forceLayout.
* khtml/html/dtd.cpp:
(DOM::checkChild):
* khtml/html/htmlparser.cpp:
(KHTMLParser::popInlineBlocks):
* khtml/rendering/render_container.cpp:
(RenderContainer::removeChild):
(RenderContainer::removeLeftoverAnonymousBoxes):
* khtml/rendering/render_flow.cpp:
(RenderFlow::setStyle):
(RenderFlow::layoutBlockChildren):
(RenderFlow::continuationBefore):
(cloneInline):
(RenderFlow::splitInlines):
(RenderFlow::splitFlow):
(RenderFlow::addChildWithContinuation):
(RenderFlow::addChild):
(RenderFlow::addChildToFlow):
* khtml/rendering/render_flow.h:
* khtml/rendering/render_object.cpp:
(RenderObject::mouseInside):
* khtml/rendering/render_object.h:
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::forceLayout):
* kwq/WebCoreBridge.mm:
(-[WebCoreBridge copyRenderNode:copier:]):
2002-11-24 Chris Blumenberg <[email protected]>
Added element keys for the image ALT and link TITLE attributes. This will eventually be used to fix other bugs. Also made WebKit and WebCore use the same element keys to simplify the conversion of the element dictionary.
* kwq/WebCoreBridge.h:
* kwq/WebCoreBridge.mm:
(-[WebCoreBridge elementAtPoint:]):
2002-11-24 Darin Adler <[email protected]>
* force-js-clean-timestamp: Touch for ScopeChain change.
2002-11-24 Maciej Stachowiak <[email protected]>
- fixed 3067939 - no support for window.document.lastModified
* kwq/WebCoreBridge.h:
* kwq/WebCoreBridge.mm:
(-[WebCoreBridge openURL:reload:headers:lastModified:]): Set
"modified" metadata based on passed in last mdified date.
2002-11-24 Maciej Stachowiak <[email protected]>
- fixed 3081946 - bookmarklet reports the wrong "windowfull" size
This isn't really beta 1 material but the fix was so tirivial I
couldn't resist.
* khtml/ecma/kjs_html.cpp:
(KJS::HTMLDocument::tryGet): Use contentWidth and contentHeight
for document.width and document.height instead of visibleWidth for
both.
2002-11-22 Darin Adler <[email protected]>
* khtml/ecma/kjs_window.cpp: Remove _COLLECTOR hack.
* kwq/WebCoreJavaScript.h:
* kwq/WebCoreJavaScript.mm:
(+[WebCoreJavaScript rootObjectClasses]):
Update for name change -- root object classes, not all live object classes.
* force-js-clean-timestamp: Make sure we don't have more build problems.
2002-11-22 David Hyatt <[email protected]>
Fix for 3107658, text doubling problem caused by layers being
constructed for <td>s. Just disallow positioning of <td>.
* khtml/rendering/render_box.cpp:
(RenderBox::setStyle):
* khtml/rendering/render_flow.cpp:
(RenderFlow::setStyle):
2002-11-22 David Hyatt <[email protected]>
Oops. I meant to do that for <input type=button> and not
<button>. Just do it for <select>s for now.
* khtml/rendering/render_box.cpp:
(RenderBox::calcReplacedWidth):
2002-11-22 David Hyatt <[email protected]>
Make <select>s and <button>s ignore a CSS-specified width if that
width is smaller than their intrinsic width.
Fixes the <select> at the top of livepage.apple.com.
* khtml/rendering/render_box.cpp:
(RenderBox::calcReplacedWidth):
2002-11-22 Darin Adler <[email protected]>
- started checking in all our generated source files for the benefit of B&I
* .cvsignore:
* WebCore-combined.exp: Added.
* khtml/css/.cvsignore:
* khtml/css/cssproperties.c: Added.
* khtml/css/cssproperties.h: Added.
* khtml/css/cssvalues.c: Added.
* khtml/css/cssvalues.h: Added.
* khtml/ecma/.cvsignore:
* khtml/ecma/kjs_css.lut.h: Added.
* khtml/ecma/kjs_dom.lut.h: Added.
* khtml/ecma/kjs_events.lut.h: Added.
* khtml/ecma/kjs_html.lut.h: Added.
* khtml/ecma/kjs_navigator.lut.h: Added.
* khtml/ecma/kjs_range.lut.h: Added.
* khtml/ecma/kjs_traversal.lut.h: Added.
* khtml/ecma/kjs_views.lut.h: Added.
* khtml/ecma/kjs_window.lut.h: Added.
* khtml/html/.cvsignore:
* khtml/html/kentities.c: Added.
* khtml/misc/.cvsignore:
* khtml/misc/htmlattrs.c: Added.
* khtml/misc/htmlattrs.h: Added.
* khtml/misc/htmltags.c: Added.
* khtml/misc/htmltags.h: Added.
* kwq/.cvsignore:
* kwq/KWQCharsetData.c: Added.
2002-11-22 David Hyatt <[email protected]>
Fix for the table/form regressions. Also landing beginnings
of the block/inline work.
* khtml/html/html_tableimpl.cpp:
(HTMLTableSectionElementImpl::addChild):
* khtml/html/html_tableimpl.h:
* khtml/rendering/render_flow.cpp:
(RenderFlow::RenderFlow):
* khtml/rendering/render_flow.h:
2002-11-22 Darin Adler <[email protected]>
* khtml/ecma/kjs_dom.cpp: (DOMNode::pushEventHandlerScope): Change to push handlers
on an existing scope chain rather than returning one. Name change too.
* khtml/ecma/kjs_dom.h: More of the same.
* khtml/ecma/kjs_html.cpp: (KJS::HTMLElement::pushEventHandlerScope): And here.
* khtml/ecma/kjs_html.h: And here.
* khtml/ecma/kjs_events.cpp: (JSEventListener::handleEvent): Use the pushEventHandlerScope
function, and also don't worry about optimizing the "no change" case, because that already
works pretty efficiently.
2002-11-22 David Hyatt <[email protected]>
Fix for the weather.com, slate and espn malformations that
could occur. Also reverting an earlier change for handling
font tags like other inlines. Both FONT and A need to be
given special treatment until I can implement a strategy that
will allow them to be handled just like the other inlines.
* khtml/html/dtd.cpp:
(DOM::checkChild):
* khtml/html/html_elementimpl.cpp:
(HTMLElementImpl::isInline):
* khtml/html/html_elementimpl.h:
* khtml/xml/dom_nodeimpl.h:
2002-11-21 Darin Adler <[email protected]>
* khtml/ecma/kjs_dom.cpp: (DOMNode::eventHandlerScope): List -> ScopeChain.
* khtml/ecma/kjs_dom.h: List -> ScopeChain.
* khtml/ecma/kjs_events.cpp: (JSEventListener::handleEvent): List -> ScopeChain.
* khtml/ecma/kjs_html.cpp: (KJS::HTMLElement::eventHandlerScope): List -> ScopeChain.
* khtml/ecma/kjs_html.h: List -> ScopeChain.
* force-js-clean-timestamp: Not sure this is required, but better safe than sorry.
2002-11-21 Maciej Stachowiak <[email protected]>
* force-js-clean-timestamp: Touch so other people's builds work.
2002-11-21 David Hyatt <[email protected]>
Nested <a>s are never allowed. Make sure to always pop the
<a> blocks.
* khtml/html/htmlparser.cpp:
(KHTMLParser::getElement):
2002-11-21 David Hyatt <[email protected]>
Stop table cells from repainting the whole table when they
get a repaint. Gives another big boost to link rollover
performance when links' containing blocks are table cells.
* khtml/rendering/render_table.cpp:
(RenderTableCell::repaint):
2002-11-21 David Hyatt <[email protected]>
Fix <font> so that behaves just like <i>, <b>, etc. Stop
the (incorrect) allowance of blocks inside <font> tags.
This fixes the mispositioning on avoyagetoarcturus.blogspot.com
and fixes the vertical gaps on www.ve3d.com.
* khtml/html/dtd.cpp:
(DOM::checkChild):
2002-11-21 Maciej Stachowiak <[email protected]>
* Makefile.am: Pass symroots for this tree to pbxbuild.
2002-11-21 David Hyatt <[email protected]>
Fixed for tables. Make the percentage height calculation
more robust. Also add a hack for replaced elements to
subtract out their margins when computing percentage widths.
This keeps them from spilling out of table cells.
* khtml/rendering/render_box.cpp:
(RenderBox::calcReplacedWidth):
(RenderBox::calcReplacedHeight):
* khtml/rendering/render_table.cpp:
(RenderTable::layoutRows):
* khtml/xml/dom_nodeimpl.h:
=== Alexander-33 ===
2002-11-21 Richard Williamson <[email protected]>
Fixed from SK's copy/paste whitespace issue.
This fixes 3076236 and a regression due to additional whitespace
in the DOM.
* kwq/WebCoreBridge.mm:
(attributedString):
2002-11-21 David Hyatt <[email protected]>
Fix mac.com regression (and weather.com regression).
* khtml/rendering/bidi.cpp:
(RenderFlow::findNextLineBreak):
2002-11-21 Richard Williamson <[email protected]>
Fixed performance regression! Argh.
* khtml/rendering/font.cpp:
(Font::width):
2002-11-21 Darin Adler <[email protected]>
* force-js-clean-timestamp: Trigger a rebuild because of the
size change in ValueImp.
2002-11-21 Darin Adler <[email protected]>
- fixed 3107286 -- REGRESSION: unrepro assertion failure in KWQKHTMLPart.mm keyEvent
* kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::keyEvent):
Handle case of nil document as well as case of nil focus node.
* kwq/WebCoreBridge.mm: Tweak whitespace.
2002-11-20 Darin Adler <[email protected]>
- fixed 3107383 -- clicking link on cnet.com leads to assertion failure
When we removed a frame, we were leaving behind an empty WebView. Yuck.
* kwq/KWQScrollView.mm:
(QScrollView::addChild): Use the new getOuterView.
(QScrollView::removeChild): Ditto. This was the bug fix.
* kwq/KWQWidget.h: Add getOuterView.
* kwq/KWQWidget.mm:
(QWidget::frameGeometry): Use the new getOuterView.
(QWidget::setFrameGeometry): Ditto.
(QWidget::getOuterView): Added. Does the WebCoreFrameView magic to find
the WebView instead of the WebHTMLView. Yuck.
(QWidget::paint): Use the new getOuterView.
2002-11-20 Darin Adler <[email protected]>
* force-js-clean-timestamp: Again.
2002-11-20 David Hyatt <[email protected]>
Fix the mac.com line-breaking bug. This was not a regression
but was present in Konq.
* khtml/rendering/bidi.cpp:
(RenderFlow::findNextLineBreak):
2002-11-20 Maciej Stachowiak <[email protected]>
* force-js-clean-timestamp: Work around PB lameness yet again.
2002-11-19 Darin Adler <[email protected]>
* force-js-clean-timestamp: Make other people's builds work.
2002-11-19 David Hyatt <[email protected]>
I screwed up the line breaking for inline replaced elements.
* khtml/rendering/render_flow.cpp:
(RenderFlow::calcInlineMinMaxWidth):
2002-11-19 Darin Adler <[email protected]>
- another atomic identifier scrub pass; make the conversion to Identifier explicit
* khtml/ecma/kjs_html.cpp:
(KJS::HTMLCollection::tryCall): Add explicit Identifier() conversion.
(KJS::HTMLCollectionProtoFunc::tryCall): Ditto.
* khtml/ecma/kjs_window.cpp: (WindowFunc::tryCall): And again.
2002-11-19 David Hyatt <[email protected]>
Fix for 3049663. Table cells don't grow to accommodate block
overflow.
* khtml/rendering/bidi.cpp:
(RenderFlow::layoutInlineChildren):
* khtml/rendering/render_flow.cpp:
(RenderFlow::RenderFlow):
(RenderFlow::layout):
(RenderFlow::layoutBlockChildren):
* khtml/rendering/render_flow.h:
* khtml/rendering/render_object.h:
2002-11-19 Darin Adler <[email protected]>
- next step towards atomic identifiers; Identifier is no longer derived from UString
* khtml/ecma/kjs_binding.cpp:
(Identifier::string): Added.
(Identifier::qstring): Added.
* khtml/ecma/kjs_binding.h:
* khtml/ecma/kjs_css.cpp:
(jsNameToProp):
(DOMCSSStyleDeclaration::tryPut):
(DOMStyleSheet::tryPut):
(DOMStyleSheetList::tryGet):
(DOMMediaList::tryGet):
(DOMCSSRuleList::tryGet):
(DOMCSSValueList::tryGet):
* khtml/ecma/kjs_dom.cpp:
(DOMNodeList::hasProperty):
(DOMNodeList::tryGet):
(DOMNodeListFunc::DOMNodeListFunc):
(DOMElement::tryGet):
(DOMNamedNodeMap::hasProperty):
(DOMNamedNodeMap::tryGet):
(DOMNamedNodesCollection::tryGet):
* khtml/ecma/kjs_html.cpp:
(KJS::HTMLDocument::tryGet):
(HTMLElementFunction::HTMLElementFunction):
(KJS::HTMLElement::putValue):
(KJS::HTMLCollection::hasProperty):
(KJS::HTMLCollection::tryGet):
(KJS::HTMLSelectCollection::tryPut):
(OptionConstructorImp::OptionConstructorImp):
* khtml/ecma/kjs_navigator.cpp:
(Plugins::get):
(MimeTypes::get):
(Plugin::get):
* khtml/ecma/kjs_window.cpp:
(WindowFunc::tryCall):
(FrameArray::get):
Use lengthPropertyName instead of "length" for better speed.
2002-11-19 David Hyatt <[email protected]>
Fix backgrounds not painting in deployment builds.
* khtml/rendering/render_box.cpp:
(RenderBox::paintBackground):
2002-11-19 Darin Adler <[email protected]>
- a first step towards atomic identifiers in JavaScript
Most places that work with identifiers now use Identifier
instead of UString.
* khtml/ecma/kjs_binding.cpp:
* khtml/ecma/kjs_binding.h:
* khtml/ecma/kjs_css.cpp:
* khtml/ecma/kjs_css.h:
* khtml/ecma/kjs_dom.cpp:
* khtml/ecma/kjs_dom.h:
* khtml/ecma/kjs_events.cpp:
* khtml/ecma/kjs_events.h:
* khtml/ecma/kjs_html.cpp:
* khtml/ecma/kjs_html.h:
* khtml/ecma/kjs_navigator.cpp:
* khtml/ecma/kjs_navigator.h:
* khtml/ecma/kjs_range.cpp:
* khtml/ecma/kjs_range.h:
* khtml/ecma/kjs_traversal.cpp:
* khtml/ecma/kjs_traversal.h:
* khtml/ecma/kjs_views.cpp:
* khtml/ecma/kjs_views.h:
* khtml/ecma/kjs_window.cpp:
* khtml/ecma/kjs_window.h:
2002-11-18 Darin Adler <[email protected]>
* force-js-clean-timestamp: Another Object change.
2002-11-18 David Hyatt <[email protected]>
Implement phased painting to correct the paint order of blocks,
floats, and inlines.
* khtml/rendering/render_body.cpp:
(RenderBody::paintBoxDecorations):
* khtml/rendering/render_body.h:
* khtml/rendering/render_box.cpp:
(RenderBox::paint):
(RenderBox::paintBoxDecorations):
(RenderBox::paintBackground):
* khtml/rendering/render_box.h:
* khtml/rendering/render_br.h:
* khtml/rendering/render_flow.cpp:
(RenderFlow::paint):
(RenderFlow::paintObject):
(RenderFlow::paintFloats):
(RenderFlow::addChild):
* khtml/rendering/render_flow.h:
* khtml/rendering/render_html.cpp:
(RenderHtml::setStyle):
(RenderHtml::paint):
(RenderHtml::paintBoxDecorations):
* khtml/rendering/render_html.h:
* khtml/rendering/render_image.cpp:
(RenderImage::setStyle):
(RenderImage::paintObject):
* khtml/rendering/render_image.h:
* khtml/rendering/render_layer.cpp:
(RenderLayer::paint):
(RenderLayer::nodeAtPoint):
* khtml/rendering/render_list.cpp:
(RenderListItem::paint):
(RenderListItem::paintObject):
(RenderListMarker::paint):
(RenderListMarker::paintObject):
* khtml/rendering/render_list.h:
* khtml/rendering/render_object.cpp:
(RenderObject::RenderObject):
(RenderObject::paintBorder):
(RenderObject::paintOutline):
(RenderObject::paint):
(RenderObject::dump):
(RenderObject::setStyle):
* khtml/rendering/render_object.h:
* khtml/rendering/render_replaced.cpp:
(RenderReplaced::paint):
(RenderWidget::setStyle):
(RenderWidget::paintObject):