-
Notifications
You must be signed in to change notification settings - Fork 3
/
ChangeLog-2003-10-25
18662 lines (13895 loc) · 722 KB
/
ChangeLog-2003-10-25
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
=== Safari-111 ===
2003-10-24 Richard Williamson <[email protected]>
Fixed 3425358. Don't try to create page cache for pages that
have a nil view().
Reviewed by Hyatt.
* kwq/WebCoreBridge.mm:
(-[WebCoreBridge saveDocumentToPageCache]):
2003-10-24 David Hyatt <[email protected]>
Fix for 3133375, the minwidth computation for pres is wrong. There were a couple of bugs here.
One is that pres only should have a breakable character if they contain a newline. Otherwise they're
treated essentially like nowrap. The other was that m_beginMinWidth and m_endMinWidth needed to be
set to the maxwidth of the first line and the maxwidth of the last line respectively for pres instead of
being only the first and last words.
Reviewed by mjs
* khtml/rendering/render_text.cpp:
(RenderText::calcMinMaxWidth):
2003-10-24 David Hyatt <[email protected]>
Two fixes to the computation of min/max width for text runs.
(1) Make sure that pre runs don't add in word-spacing to the last word on a line (e.g., when a newline explicitly
breaks a pre).
(2) Fix a bug where breakable characters weren't getting factored into minwidth properly. When a word got broken
because of a breakable character, we were treating the breakable character like a space, and not including its
width as part of the minimum width of the text run.
Reviewed by john
* khtml/rendering/render_text.cpp:
(RenderText::calcMinMaxWidth):
2003-10-23 David Hyatt <[email protected]>
This patch fixes the pseudo-elements ::first-line and ::first-letter to inherit styles properly. More
specifically it does the following:
(1) Implements caching of pseudo-styles once computed off the style() which originated the pseudo-style.
The old code did this, and this was a regression from my previous patch.
(2) Fixes first-letter checking so that it happens at layout time rather than during render object
construction time, since that makes first-letter more dynamic and causes it to be discovered in cases
where it was being missed before. This fixes the front page of meyerweb.com.
(3) Make first-letter inherit from first-line like it's supposed to, and also make first-line styles
cross blocks and inherit properly from enclosing containers.
(4) Make first-letter changes cause a detach/attach to fire just as when the display changes. I generalized
the notion of needing to detach on a style change by making it a new kind of hint in dom_nodeimpl's style
diff function.
(5) Fixed isBlockFlow to return true for inline-blocks.
Reviewed by john
* khtml/rendering/render_block.cpp:
(khtml::RenderBlock::addChildToFlow):
(khtml::RenderBlock::layoutBlock):
(khtml::RenderBlock::getFirstLineBox):
(khtml::RenderBlock::firstLineBlock):
(khtml::RenderBlock::updateFirstLetter):
* khtml/rendering/render_block.h:
(khtml::RenderBlock::isBlockFlow):
* khtml/rendering/render_line.cpp:
(InlineFlowBox::paintBackgroundAndBorder):
* khtml/rendering/render_list.cpp:
(RenderListItem::setStyle):
* khtml/rendering/render_object.cpp:
(RenderObject::RenderObject):
(RenderObject::firstLineBlock):
(RenderObject::updateFirstLetter):
(RenderObject::dump):
(RenderObject::setStyle):
(RenderObject::recalcMinMaxWidths):
(RenderObject::style):
(RenderObject::getPseudoStyle):
* khtml/rendering/render_object.h:
(khtml::RenderObject::overhangingContents):
* khtml/rendering/render_style.cpp:
(pseudoBit):
* khtml/rendering/render_style.h:
(khtml::RenderStyle::):
* khtml/rendering/render_table.cpp:
(RenderTable::firstLineBlock):
(RenderTable::updateFirstLetter):
* khtml/rendering/render_table.h:
* khtml/rendering/render_text.cpp:
(RenderText::paintObject):
(RenderText::htmlFont):
* khtml/xml/dom_elementimpl.cpp:
(ElementImpl::recalcStyle):
* khtml/xml/dom_nodeimpl.cpp:
(NodeImpl::diff):
* khtml/xml/dom_nodeimpl.h:
(DOM::NodeImpl::):
2003-10-23 Ken Kocienda <[email protected]>
Reviewed by David
Fix for these bugs:
<rdar://problem/3171929>: Safari picks a different button in a
form when you hit return if the first button has no name
<rdar://problem/3200386>: investigate which button is activated
when hitting return in form text input fields
HTML spec says that buttons must have names to be considered
successful. However, other browsers do not impose this constraint.
Therefore, we behave differently, and can use different buttons than
the author intended.
* khtml/html/html_formimpl.cpp:
(HTMLButtonElementImpl::isSuccessfulSubmitButton)
(HTMLInputElementImpl::isSuccessfulSubmitButton)
2003-10-22 David Hyatt <[email protected]>
Fix for 3460726, the user agent string was returning nil.
Fix for 3386544, empty documents did not get a layout, and so they looked white. Also fixed the positioning
of widgets to account for border/padding in updateWidgetPositions.
Fix for espn.com crasher, 3458143, caused by layout object not being properly cleared when layouts were
unscheduled.
Reviewed by darin
* khtml/khtmlview.cpp:
* khtml/rendering/render_canvas.cpp:
(RenderCanvas::RenderCanvas):
* khtml/rendering/render_replaced.cpp:
(RenderWidget::updateWidgetPositions):
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::userAgent):
2003-10-22 Maciej Stachowiak <[email protected]>
Reviewed by
- fixed 3460664 - Exception handlers not properly removed
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::mouseMoved): Don't return from exception block
(KWQKHTMLPart::khtmlMouseReleaseEvent): Add exception blocking (whoops)
2003-10-22 John Sullivan <[email protected]>
- fixed 3460652 -- REGRESSION (100-110+): Can't tab out of a
frameset page
Reviewed by Darin (actually he made the change on my machine)
* khtml/html/html_baseimpl.cpp:
(HTMLFrameSetElementImpl::defaultEventHandler):
only set defaultHandled for the one event that we actually
handle (mouse event to resize frame borders); this was always
being set, hence preventing key events from being used elsewhere.
2003-10-22 Richard Williamson <[email protected]>
Fixed 3454067. RenderText's repaint wasn't called because of recent changes to de-virtualize repaint. Modified getAbsoluteRepaintRect() to return containing block's getAbsoluteRepaintRect().
Also removed the long standing +1 from QFontMetrics::height().
Reviewed by Hyatt.
* khtml/rendering/render_text.cpp:
(RenderText::getAbsoluteRepaintRect):
* khtml/rendering/render_text.h:
* kwq/KWQFontMetrics.mm:
(QFontMetrics::height):
2003-10-22 David Hyatt <[email protected]>
Fix visibility to be done when widgets are added or when styles are set rather than at paint time. Fixes
the ads painting on top of content at tvguide.com.
Reviewed by cblu
* khtml/rendering/render_replaced.cpp:
(RenderWidget::setQWidget):
(RenderWidget::setStyle):
(RenderWidget::paintObject):
* kwq/KWQWidget.h:
* kwq/KWQWidget.mm:
(QWidget::QWidget):
(QWidget::show):
(QWidget::hide):
2003-10-21 Maciej Stachowiak <[email protected]>
Reviewed by Dave.
Finished exception blocking changes, so now I can finally say:
- fixed 3137084 - Many non-reproducible crashers in ContextImp::mark / ScopeChain::mark
- fixed 3308848 - nil-deref in KHTMLView::topLevelWidget
- fixed 3311511 - nil deref inside KJS::Screen
- fixed 3397422 - 7B51: Safari crashed in KJS::ObjectImp::mark()
- fixed 3408373 - Panther7B58 : Safari Crashed in KJS::ObjectImp::mark
- fixed 3409307 - 7B55: safari crashed in KJS::Interpreter::globalExec() (idle, nothing particular going on)
- fixed 3410160 - 7B60 Safari crashed in KHTMLPart::parentPart called from JS while in the background
- fixed 3413224 - unrepro crash in KJS::Window::mark
- fixed 3419940 - unrepro crash in KJS::Collector::allocate trying to access http://www.lindyinthepalms.com
- fixed 3420123 - Panther7B66: Safari crashed while going to http://www.tangents.co.uk/index2.html
- fixed 3423225 - Safari crash in vtable for KWQMapImpl (vtable for KWQMapImpl + 8).
- fixed 3437190 - nil-deref on quit in calling marked() from ScopeChain::mark()
* WebCore.pbproj/project.pbxproj:
* kwq/KWQFontMetrics.mm:
* kwq/KWQPainter.mm:
(QPainter::drawPixmap):
(QPainter::drawTiledPixmap):
(QPainter::_updateRenderer):
* kwq/WebCoreTextRenderer.h:
2003-10-21 David Hyatt <[email protected]>
http://placenamehere.com/safari/fixedbgtest.html is now fixed with a patch from the KHTML trunk.
Fixed backgrounds repeated when they weren't supposed to.
* khtml/rendering/render_box.cpp:
(RenderBox::paintBackgroundExtended):
2003-10-21 David Hyatt <[email protected]>
Change pseudo-element style resolution to be lazy and to not occur until the style is actually asked
for by the front end render objects. Also fix first-letter to inherit properly from first-line styles.
Reviewed by mjs
* khtml/css/cssstyleselector.cpp:
(khtml::CSSStyleSelector::initForStyleResolve):
(khtml::CSSStyleSelector::styleForElement):
(khtml::CSSStyleSelector::pseudoStyleForElement):
(khtml::CSSStyleSelector::checkSelector):
(khtml::CSSStyleSelector::checkOneSelector):
* khtml/css/cssstyleselector.h:
* khtml/rendering/render_block.cpp:
(khtml::RenderBlock::addChildToFlow):
* khtml/rendering/render_container.cpp:
(RenderContainer::updatePseudoChild):
* khtml/rendering/render_object.cpp:
(RenderObject::setStyle):
(RenderObject::createInlineBox):
(RenderObject::style):
(RenderObject::getPseudoStyle):
* khtml/rendering/render_object.h:
* khtml/rendering/render_style.cpp:
(pseudoBit):
(RenderStyle::hasPseudoStyle):
(RenderStyle::setHasPseudoStyle):
(RenderStyle::getPseudoStyle):
(RenderStyle::addPseudoStyle):
* khtml/rendering/render_style.h:
(khtml::RenderStyle::NonInheritedFlags::operator==):
(khtml::RenderStyle::setBitDefaults):
* khtml/rendering/render_text.cpp:
(InlineTextBox::paintSelection):
(RenderText::paintObject):
(RenderText::htmlFont):
2003-10-21 Maciej Stachowiak <[email protected]>
Reviewed by Dave.
More exception blocking.
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::~KWQKHTMLPart):
(KWQKHTMLPart::generateFrameName):
(KWQKHTMLPart::openURL):
(KWQKHTMLPart::openURLRequest):
(regExpForLabels):
(KWQKHTMLPart::clearRecordedFormValues):
(KWQKHTMLPart::recordFormValue):
(KWQKHTMLPart::submitForm):
(KHTMLPart::frameDetached):
(KWQKHTMLPart::urlSelected):
(KWQKHTMLPart::createPart):
(KWQKHTMLPart::setTitle):
(KWQKHTMLPart::setStatusBarText):
(KWQKHTMLPart::scheduleClose):
(KWQKHTMLPart::unfocusWindow):
(KWQKHTMLPart::jumpToSelection):
(KWQKHTMLPart::redirectionTimerStartedOrStopped):
(KWQKHTMLPart::userAgent):
(KWQKHTMLPart::mimeTypeForFileName):
(KWQKHTMLPart::nextKeyView):
(KWQKHTMLPart::currentEventIsMouseDownInWidget):
(KWQKHTMLPart::openURLFromPageCache):
(KWQKHTMLPart::saveDocumentState):
(KWQKHTMLPart::restoreDocumentState):
(KWQKHTMLPart::requestedURLString):
(KWQKHTMLPart::incomingReferrer):
(KWQKHTMLPart::runJavaScriptAlert):
(KWQKHTMLPart::runJavaScriptConfirm):
(KWQKHTMLPart::runJavaScriptPrompt):
(KWQKHTMLPart::createEmptyDocument):
(KWQKHTMLPart::keyEvent):
(KWQKHTMLPart::khtmlMousePressEvent):
(KWQKHTMLPart::passWidgetMouseDownEventToWidget):
(KWQKHTMLPart::lastEventIsMouseUp):
(findViewInSubviews):
(KWQKHTMLPart::khtmlMouseMoveEvent):
(KWQKHTMLPart::passSubframeEventToSubframe):
(KWQKHTMLPart::buttonForCurrentEvent):
(KWQKHTMLPart::stateForCurrentEvent):
(KWQKHTMLPart::mouseDown):
(KWQKHTMLPart::mouseDragged):
(KWQKHTMLPart::mouseUp):
(KWQKHTMLPart::sendFakeEventsAfterWidgetTracking):
(KWQKHTMLPart::mouseMoved):
(KWQKHTMLPart::sendContextMenuEvent):
(fileWrapperForElement):
(KWQKHTMLPart::attributedString):
(KWQKHTMLPart::keyboardUIMode):
2003-10-21 Chris Blumenberg <[email protected]>
Fixed: <rdar://problem/3176170>: OBJECT tag with no or empty TYPE is mishandled
Reviewed by rjw.
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::createPart): call renamed frameRequiredForMIMEType:URL:
* kwq/WebCoreBridge.h: renamed frameRequiredForMIMEType: to frameRequiredForMIMEType:URL:
2003-10-20 David Hyatt <[email protected]>
Fix generated content (before/after) so that it no longer has any restrictions on it. CSS2.1 lifted
restrictions preventing the floating/positioning of generated content.
Reviewed by rjw
* khtml/css/cssstyleselector.cpp:
(khtml::CSSStyleSelector::adjustRenderStyle):
* khtml/rendering/render_container.cpp:
(RenderContainer::updatePseudoChild):
2003-10-20 Ken Kocienda <[email protected]>
Reviewed by David
* khtml/dom/dom2_events.cpp:
(UIEvent::keyCode): Change over to use ascii value for key code.
(UIEvent::which): Ditto.
(KeyboardEvent::KeyboardEvent): New key event class which
tracks the DOM Level 3 spec more closely.
(KeyboardEvent::operator = ): New function.
(KeyboardEvent::~KeyboardEvent): New function.
(KeyboardEvent::ctrlKey): New function.
(KeyboardEvent::shiftKey): New function.
(KeyboardEvent::altKey): New function.
(KeyboardEvent::metaKey): New function.
(KeyboardEvent::altGraphKey): New function.
(KeyboardEvent::initKeyboardEvent): New function.
* khtml/dom/dom2_events.h: Ditto.
* khtml/html/html_formimpl.cpp:
(HTMLGenericFormElementImpl::defaultEventHandler): Use key
identifiers to test which key was pressed, instead of removed keyVal().
(HTMLInputElementImpl::defaultEventHandler): Ditto.
(HTMLSelectElementImpl::defaultEventHandler): Ditto.
* khtml/html/html_inlineimpl.cpp:
(HTMLAnchorElementImpl::defaultEventHandler): Change casts to match new
class name. Use key identifiers to test which key was pressed,
instead of removed keyVal(). Use new modifier accessors.
* khtml/xml/dom2_eventsimpl.cpp:
(EventImpl::typeToId): Some reorganization of the constants in the
switch statements. Name change for these to remove the KHTML_ prefix
from the key up and key down events will happen soon.
(EventImpl::idToType): Ditto.
(KeyboardEventImpl::KeyboardEventImpl): New key event class which
tracks the DOM Level 3 spec more closely.
(KeyboardEventImpl::~KeyboardEventImpl): Ditto.
(KeyboardEventImpl::initKeyboardEvent): Ditto.
* khtml/xml/dom2_eventsimpl.h:
(DOM::EventImpl::): Some reorganization of the constants in the
switch statements. Name change for these to remove the KHTML_ prefix
from the key up and key down events will happen soon.
(DOM::KeyboardEventImpl::keyIdentifier): New function.
(DOM::KeyboardEventImpl::keyLocation): New function.
(DOM::KeyboardEventImpl::ctrlKey): New function.
(DOM::KeyboardEventImpl::shiftKey): New function.
(DOM::KeyboardEventImpl::altKey): New function.
(DOM::KeyboardEventImpl::metaKey): New function.
(DOM::KeyboardEventImpl::altGraphKey): New function.
(DOM::KeyboardEventImpl::qKeyEvent): New function.
* khtml/xml/dom_docimpl.cpp:
(DocumentImpl::createEvent): Now can create keyboard events.
* khtml/xml/dom_nodeimpl.cpp:
(NodeImpl::dispatchKeyEvent): Class name changes.
* kwq/KWQEvent.h: Added QString identifier member.
* kwq/KWQEvent.mm:
(hexDigit): Added helper.
(identifierForKeyText): Added new function to map keys to DOM
key identifiers as listed in the DOM spec.
(QKeyEvent::identifier): Added accessor.
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::stateForCurrentEvent): Added check to see if
a key press is on one of the numeric keypad keys.
* kwq/KWQLogging.h: Added log constant for DOM events.
* kwq/KWQLogging.m: Ditto
2003-10-20 David Hyatt <[email protected]>
Make first-letter and before/after work with text transforms.
Reviewed by mjs
* khtml/rendering/render_block.cpp:
(khtml::RenderBlock::addChildToFlow):
* khtml/rendering/render_container.cpp:
(RenderContainer::updatePseudoChild):
* khtml/rendering/render_text.cpp:
(RenderText::setStyle):
(RenderText::isTextFragment):
(RenderText::originalString):
(RenderText::setText):
(m_generatedContentStr):
(m_start):
(RenderTextFragment::~RenderTextFragment):
(RenderTextFragment::isTextFragment):
(RenderTextFragment::originalString):
* khtml/rendering/render_text.h:
(khtml::RenderTextFragment::start):
(khtml::RenderTextFragment::end):
(khtml::RenderTextFragment::contentString):
* khtml/xml/dom_nodeimpl.h:
(DOM::NodeImpl::setRenderer):
2003-10-19 David Hyatt <[email protected]>
Remove the "flow-around-floats" hack for lists. Other browsers don't do this.
Reviewed by darin
* khtml/css/quirks.css:
2003-10-19 David Hyatt <[email protected]>
Fix for a regression/crash on tivocommunity.com caused by faulty border-collapse code in the collapsedRightBorder
case. I forgot to deal with colspans.
Reviewed by darin
* khtml/rendering/render_table.cpp:
(RenderTable::cellRight):
(RenderTableCell::collapsedRightBorder):
2003-10-19 David Hyatt <[email protected]>
Patch from KHTML trunk that makes textareas work properly even when they have no render objects.
* khtml/html/html_formimpl.cpp:
(HTMLTextAreaElementImpl::encoding):
(HTMLTextAreaElementImpl::value):
2003-10-18 Darin Adler <[email protected]>
Reviewed by Maciej.
- fixed 3454444 -- contents of mailto form shows up in Mail title instead of body (IE sends mail directly)
* kwq/KWQKURL.mm: (KURL::parse): Changed non-hierarchical code to consider everything
after a question mark as a query, just the way the hierarchical code does. This makes
the code that constructs the mailto URL work properly.
2003-10-18 David Hyatt <[email protected]>
Fix the intrinsic minmax width computation for blocks and XUL boxes to actually check fixed min/max CSS widths.
Reviewed by darin
* khtml/rendering/render_block.cpp:
(khtml::RenderBlock::calcMinMaxWidth):
* khtml/rendering/render_flexbox.cpp:
(khtml::RenderFlexibleBox::calcMinMaxWidth):
2003-10-18 David Hyatt <[email protected]>
Change the names of the border-spacing properties to border-horizontal-spacing and border-vertical-spacing.
* khtml/css/cssparser.cpp:
(CSSParser::parseValue):
* khtml/css/cssproperties.c:
(findProp):
* khtml/css/cssproperties.h:
* khtml/css/cssproperties.in:
* khtml/css/cssstyleselector.cpp:
(khtml::CSSStyleSelector::applyRule):
2003-10-18 David Hyatt <[email protected]>
Fix for diveintomark className parsing bug. class="bigblue blue" would fail to match a rule with .blue.
The bug was in the selector matching code for class attributes.
Also fixing a minmax width bug for blocks on the mozilla.org Web site. XUL boxes had the same bug as
well.
Reviewed by darin
* khtml/css/cssstyleselector.cpp:
(khtml::CSSStyleSelector::checkOneSelector):
* khtml/rendering/render_block.cpp:
(khtml::RenderBlock::calcMinMaxWidth):
* khtml/rendering/render_flexbox.cpp:
(khtml::RenderFlexibleBox::calcMinMaxWidth):
2003-10-18 David Hyatt <[email protected]>
Fix for 3443502, generated content sometimes doesn't generate. The bug is caused by an
uninitialized variable. m_isContinuation needed to be set to false in the RenderInline
constructor.
* khtml/rendering/render_inline.cpp:
(m_isContinuation):
2003-10-17 Darin Adler <[email protected]>
Reviewed by Maciej.
- make text areas set the base writing direction based on the direction in the CSS style
* kwq/KWQTextArea.h: Added setBaseWritingDirection method.
* kwq/KWQTextArea.mm:
(-[KWQTextArea _createTextView]): Use _KWQ_setTypingParagraphStyle.
(-[KWQTextArea setWordWrap:]): Use _KWQ_setTypingParagraphStyle.
(-[KWQTextArea setBaseWritingDirection:]): Added. New method that sets the base writing
direction in both the style of the text and the typing attributes.
(-[NSTextView _KWQ_typingParagraphStyle]): Added. Helper method to make setBaseWritingDirection:
a little less gigantic.
(-[NSTextView _KWQ_setTypingParagraphStyle:]): Ditto.
(-[NSTextStorage _KWQ_setBaseWritingDirection:]): Ditto.
* kwq/KWQTextEdit.mm: (QTextEdit::setAlignment): Set both alignment and base writing direction.
2003-10-17 David Hyatt <[email protected]>
Implement horizontal and vertical border-spacing. Allow them to be specified individually.
Reviewed by mjs
------
Fix the calcWidth method of tables to account for horizontal margins properly.
Reviewed by john
------
Implement border collapsing in tables.
Reviewed by kocienda
* khtml/css/cssparser.cpp:
(CSSParser::parseValue):
* khtml/css/cssproperties.c:
(hash_prop):
(findProp):
* khtml/css/cssproperties.h:
* khtml/css/cssproperties.in:
* khtml/css/cssstyleselector.cpp:
(khtml::CSSStyleSelector::applyRule):
* khtml/css/cssvalues.c:
* khtml/css/cssvalues.h:
* khtml/css/cssvalues.in:
* khtml/rendering/bidi.cpp:
(khtml::RenderBlock::layoutInlineChildren):
* khtml/rendering/render_box.cpp:
(RenderBox::paintBoxDecorations):
* khtml/rendering/render_form.cpp:
(RenderFieldset::paintBorderMinusLegend):
* khtml/rendering/render_object.cpp:
(RenderObject::paintBorder):
(RenderObject::collectBorders):
* khtml/rendering/render_object.h:
* khtml/rendering/render_style.cpp:
(StyleInheritedData::StyleInheritedData):
(StyleInheritedData::operator==):
(RenderStyle::diff):
* khtml/rendering/render_style.h:
(khtml::):
(khtml::CollapsedBorderValue::precedence):
(khtml::CollapsedBorderValue::width):
(khtml::CollapsedBorderValue::style):
(khtml::CollapsedBorderValue::exists):
(khtml::CollapsedBorderValue::color):
(khtml::CollapsedBorderValue::isTransparent):
(khtml::CollapsedBorderValue::operator==):
(khtml::RenderStyle::borderLeft):
(khtml::RenderStyle::borderRight):
(khtml::RenderStyle::borderTop):
(khtml::RenderStyle::borderBottom):
(khtml::RenderStyle::horizontalBorderSpacing):
(khtml::RenderStyle::verticalBorderSpacing):
(khtml::RenderStyle::setHorizontalBorderSpacing):
(khtml::RenderStyle::setVerticalBorderSpacing):
* khtml/rendering/render_table.cpp:
(RenderTable::RenderTable):
(RenderTable::setStyle):
(RenderTable::calcWidth):
(RenderTable::paint):
(RenderTable::borderLeft):
(RenderTable::borderRight):
(RenderTable::borderTop):
(RenderTable::borderBottom):
(RenderTable::cellAbove):
(RenderTable::cellBelow):
(RenderTable::cellLeft):
(RenderTable::cellRight):
(RenderTableSection::setCellWidths):
(RenderTableSection::calcRowHeight):
(RenderTableSection::layoutRows):
(compareBorders):
(RenderTableCell::collapsedLeftBorder):
(RenderTableCell::collapsedRightBorder):
(RenderTableCell::collapsedTopBorder):
(RenderTableCell::collapsedBottomBorder):
(RenderTableCell::borderLeft):
(RenderTableCell::borderRight):
(RenderTableCell::borderTop):
(RenderTableCell::borderBottom):
(collapsedBorderStyle):
(CollapsedBorder::CollapsedBorder):
(CollapsedBorders:::count):
(CollapsedBorders::addBorder):
(CollapsedBorders::nextBorder):
(addBorderStyle):
(RenderTableCell::collectBorders):
(RenderTableCell::paintCollapsedBorder):
(RenderTableCell::paintObject):
(RenderTableCell::paintBoxDecorations):
* khtml/rendering/render_table.h:
(khtml::RenderTable::hBorderSpacing):
(khtml::RenderTable::vBorderSpacing):
(khtml::RenderTable::bordersPaddingAndSpacing):
(khtml::RenderTable::currentBorderStyle):
* khtml/rendering/table_layout.cpp:
(FixedTableLayout::layout):
(AutoTableLayout::calcEffectiveWidth):
(AutoTableLayout::layout):
2003-10-16 Maciej Stachowiak <[email protected]>
Reviewed by John.
More exception blocking.
* kwq/KWQFont.mm:
(QFont::isFixedPitch):
(QFont::getNSFont):
* kwq/KWQKJobClasses.mm:
(KIO::TransferJob::~TransferJob):
* kwq/KWQLoader.mm:
(KWQServeRequest):
(KWQCheckIfReloading):
(KWQCheckCacheObjectStatus):
(KWQRetainResponse):
(KWQReleaseResponse):
(KWQResponseMIMEType):
=== Safari-110 ===
2003-10-16 Darin Adler <[email protected]>
Reviewed by vicki.
- fix buildit build failure
* kwq/KWQScrollView.mm:
(QScrollView::resizeContents):
2003-10-15 Darin Adler <[email protected]>
Reviewed by Ken.
- change "volatile X * volatile" to "X * volatile" in cases where the
pointer needs to be volatile but the object pointed to do does not
* kwq/KWQKConfigBase.mm: (KConfig::readEntry):
* kwq/KWQKCursor.mm: (+[NSCursor _WebCore_cursorWithName:hotSpot:]):
* kwq/KWQKLocale.mm:
(inputElementAltText):
(resetButtonDefaultLabel):
(searchableIndexIntroduction):
(submitButtonDefaultLabel):
(KLocale::language):
* kwq/KWQLineEdit.mm: (QLineEdit::text):
* kwq/KWQScrollView.mm:
(QScrollView::setContentsPos):
(QScrollView::addChild):
(QScrollView::updateContents):
(QScrollView::contentsToViewport):
(QScrollView::viewportToContents):
(QScrollView::getDocumentView):
* kwq/KWQTextEdit.mm:
(QTextEdit::text):
(QTextEdit::textWithHardLineBreaks):
* kwq/KWQWidget.mm: (QWidget::getOuterView):
Removed the excess volatiles and excess casts that go with them.
* kwq/KWQKCookieJar.mm: (KWQKCookieJar::cookie): Do the same, but also
remove an unnecessary nil check that is the same as QString::fromNSString's
default behavior.
2003-10-15 Maciej Stachowiak <[email protected]>
Reviewed by Dave.
More objc-exception-blocking excitement.
* kwq/KWQKConfigBase.mm:
(KConfig::readEntry):
(KConfig::readNumEntry):
(RefreshPlugins):
* kwq/KWQKCursor.mm:
(+[NSCursor _WebCore_cursorWithName:hotSpot:]):
* kwq/KWQKJavaAppletWidget.mm:
(KJavaAppletWidget::showApplet):
* kwq/KWQKLocale.mm:
(inputElementAltText):
(resetButtonDefaultLabel):
(searchableIndexIntroduction):
(submitButtonDefaultLabel):
(KLocale::language):
* kwq/KWQRegion.mm:
(QRegion::QRegion):
2003-10-14 David Hyatt <[email protected]>
Fix an obvious little typo with smallCaps inheritance. Richard reviewed.
Also merge in Dirk's patch to fix a crasher caused by an obvious deref mistake.
Reviewed by rjw and nobody
* khtml/css/cssstyleselector.cpp:
(khtml::convertToLength):
(khtml::CSSStyleSelector::applyRule):
2003-10-14 Ken Kocienda <[email protected]>
Reviewed by Hyatt
* khtml/dom/dom_misc.h: Declared TristateFlag enum used to implement
inheritance behavior for inheritable attributes like designMode.
* khtml/dom/html_document.cpp:
(HTMLDocument::designMode): Added getter.
(HTMLDocument::setDesignMode): Added setter.
* khtml/dom/html_document.h: Added declarations for designMode getter and setter.
* khtml/dom/html_element.cpp:
(HTMLElement::isContentEditable): Added convenience.
(HTMLElement::contentEditable): Added getter.
(HTMLElement::setContentEditable): Added setter.
* khtml/dom/html_element.h: Added declarations for contentEditable accessors.
* khtml/ecma/kjs_html.cpp: Added js support for contentEditable and designMode.
(KJS::HTMLDocument::tryGet)
(KJS::HTMLDocument::putValue)
(KJS::HTMLElement::getValueProperty)
(KJS::HTMLElement::putValue)
* khtml/ecma/kjs_html.h:
(KJS::HTMLDocument::): Added DesignMode to attribuute enum.
(KJS::HTMLElement::): Added ContentEditable to attribute enum.
* khtml/html/html_documentimpl.cpp:
(HTMLDocumentImpl::designMode): Added getter.
(HTMLDocumentImpl::setDesignMode): Added setter.
* khtml/html/html_documentimpl.h: Declared designMode accessors.
* khtml/html/html_elementimpl.cpp:
(HTMLElementImpl::HTMLElementImpl):
(HTMLElementImpl::parseAttribute): Added support for contentEditable.
(HTMLElementImpl::isContentEditable): Added. Implements inheritance feature
for this attribute.
(HTMLElementImpl::contentEditable): Getter for contentEditable attribute.
(HTMLElementImpl::setContentEditable): Setter for contentEditable attribute.
* khtml/html/html_elementimpl.h:
* khtml/khtml_part.cpp:
(KHTMLPart::setEditMode): Added.
(KHTMLPart::editMode): Added. Implements inheritance behavior for
attribute.
(KHTMLPart::inEditMode): Helper that calls on editMode function.
(KHTMLPart::parentPart): Made const.
* khtml/khtml_part.h: Rolled in a couple of typo fixes. Added
declarations for the changes made in the implementation file.
* khtml/khtmlpart_p.h:
(KHTMLPartPrivate::KHTMLPartPrivate): Declared editMode flag.
Also added support for editMode flag in initializers and copy function.
* khtml/misc/htmlattrs.in: Added contentEditable as an attribute name.
2003-10-13 David Hyatt <[email protected]>
Fix for a small-caps rendering error when used in conjunction with ::first-line. Always update
the Font variable even when QFonts are the same, since small-caps is not stored in QFonts.
Reviewed by rjw
* khtml/rendering/render_text.cpp:
(RenderText::paintObject):
2003-10-13 Richard Williamson (Home0 <[email protected]>
Updated layout tests actuals to reflect implementation of small-caps style.
* layout-tests/css1/font_properties/font-expected.txt:
* layout-tests/css1/font_properties/font_variant-expected.txt:
* layout-tests/css1/pseudo/firstline-expected.txt:
* layout-tests/css1/pseudo/multiple_pseudo_elements-expected.txt:
2003-10-13 Richard Williamson <[email protected]>
Added support for small-caps.
Reviewed by John.
* khtml/rendering/font.h:
(khtml::Font::isSmallCaps):
* khtml/rendering/render_text.cpp:
(RenderText::shouldUseMonospaceCache):
2003-10-12 Darin Adler <[email protected]>
* layout-tests/fast/js/date-parse-test.html: Fixed a couple of silly mistakes.
* kwq/character-sets.txt: New version of file from www.iana.org. No substantive change.
Also, now that we don't use MIB numbers any more, I could leave out our one local change,
the MIB number we added for ISO-10646-J-1.
2003-10-10 David Hyatt <[email protected]>
Beginning of work on border collapsing. This patch makes sure that cell spacing between cells is
ignored and that padding on tables is ignored. This ensures that there is no space between cells
or between the edges of cells and the border of the table itself.
Reviewed by john
* khtml/rendering/render_style.h:
(khtml::RenderStyle::setBitDefaults):
* khtml/rendering/render_table.cpp:
(RenderTable::setStyle):
(RenderTable::layout):
* khtml/rendering/render_table.h:
(khtml::RenderTable::collapseBorders):
(khtml::RenderTable::bordersPaddingAndSpacing):
2003-10-10 David Hyatt <[email protected]>
Fix for table regression 3449444, as well as a patch to support padding on tables and to stop
honoring borders on row groups (both of which are correct for the "separate" border model).
* khtml/rendering/render_table.cpp:
(RenderTable::layout):
(RenderTableSection::calcRowHeight):
(RenderTableSection::layoutRows):
* khtml/rendering/render_table.h:
(khtml::RenderTable::bordersPaddingAndSpacing):
* khtml/rendering/table_layout.cpp:
(FixedTableLayout::calcMinMaxWidth):
(FixedTableLayout::layout):
(AutoTableLayout::calcMinMaxWidth):
(AutoTableLayout::layout):
Reviewed by darin
2003-10-10 David Hyatt <[email protected]>
Patch to move the widgets during layout instead of at paint time.
Reviewed by darin
* khtml/khtmlview.cpp:
* khtml/rendering/render_canvas.cpp:
(RenderCanvas::repaintViewRectangle):
* khtml/rendering/render_form.cpp:
(RenderFormElement::baselinePosition):
(RenderFormElement::layout):
* khtml/rendering/render_object.cpp:
(RenderObject::updateWidgetPositions):
* khtml/rendering/render_object.h:
* khtml/rendering/render_replaced.cpp:
(RenderWidget::layout):
(RenderWidget::updateWidgetPositions):
* khtml/rendering/render_replaced.h:
* kwq/KWQCheckBox.h:
* kwq/KWQCheckBox.mm:
(QCheckBox::baselinePosition):
* kwq/KWQComboBox.h:
* kwq/KWQComboBox.mm:
(QComboBox::baselinePosition):
* kwq/KWQFileButton.h:
* kwq/KWQFileButton.mm:
(KWQFileButton::baselinePosition):
* kwq/KWQLineEdit.h:
* kwq/KWQLineEdit.mm:
(QLineEdit::baselinePosition):
* kwq/KWQPushButton.h:
* kwq/KWQPushButton.mm:
(QPushButton::baselinePosition):
* kwq/KWQRadioButton.h:
* kwq/KWQRadioButton.mm:
(QRadioButton::baselinePosition):
* kwq/KWQWidget.h:
* kwq/KWQWidget.mm:
(QWidget::baselinePosition):
(QWidget::setFrameGeometry):
* kwq/WebCoreBridge.h:
* kwq/WebCoreBridge.mm:
2003-10-10 David Hyatt <[email protected]>
Make sure the i-beam cursor is only forced if you have a selection.
Reviewed by John
* khtml/khtmlview.cpp
2003-10-10 Ken Kocienda <[email protected]>
Reviewed by John
Fix for this bug:
<rdar://problem/3440703>: Textarea form controls do not respect disabled attribute
* khtml/rendering/render_form.cpp:
(RenderTextArea::updateFromElement): Check for disabled attribute.
* kwq/KWQTextArea.h:
* kwq/KWQTextArea.mm:
(-[KWQTextArea setEnabled:]): Added.
(-[KWQTextArea isEnabled]): Added.
(-[KWQTextArea drawRect:]): Draws a disabled-looking bezel when disabled.
(-[KWQTextAreaTextView becomeFirstResponder]): Return NO if disabled.
(-[KWQTextAreaTextView mouseDown:]): Block events if disabled.
(-[KWQTextAreaTextView keyDown:]): Ditto.
(-[KWQTextAreaTextView keyUp:]): Ditto.
(-[KWQTextAreaTextView setEnabled:]): Added. Pass value through to editable
attribute on text view.
(-[KWQTextAreaTextView isEnabled]): Added.
(-[KWQTextAreaTextView drawRect:]): Set the text color to a disabled color
when disabled.
* kwq/KWQTextEdit.h:
* kwq/KWQTextEdit.mm:
(QTextEdit::isDisabled): Added.
(QTextEdit::setDisabled): Added.
2003-10-10 Maciej Stachowiak <[email protected]>
- fixed 3449405 - REGRESSION: reproducible crash changing focus w/ button on page, e.g. on www.aa.com
More fallout from the exception blocking.
* kwq/KWQButton.mm:
(QButton::focusPolicy): Don't return from exception block (caught
by Darin).
2003-10-09 Darin Adler <[email protected]>
Reviewed by Maciej.
- fixed 3449280 -- REGRESSION: crash copying a selection that ends in a <br>
* khtml/rendering/render_br.h: Add checkSelectionPointIgnoringContinuations.
* khtml/rendering/render_br.cpp: (RenderBR::checkSelectionPointIgnoringContinuations):
Override to never return an offset of 1. We can't use a character offset because the
DOM doesn't know that we're implemented as a text object. So an offset of 1 turns into
"after this element".
2003-10-09 Maciej Stachowiak <[email protected]>
- fixed crash I just added.
* kwq/KWQWidget.mm:
(QWidget::setCursor): Move BLOCK_NS_EXCEPTIONS macros so
you don't `break' out of the blocking code.
2003-10-09 Maciej Stachowiak <[email protected]>
Reviewed by Ken.
More Cocoa exception blocking work.
* kwq/KWQFrame.mm:
(QFrame::setFrameStyle):
* kwq/KWQLineEdit.mm:
(QLineEdit::QLineEdit):
(QLineEdit::~QLineEdit):
(QLineEdit::setEchoMode):
(QLineEdit::setFont):
(QLineEdit::setText):
(QLineEdit::text):
(QLineEdit::isReadOnly):
(QLineEdit::setReadOnly):