LayoutTests:
[WebKit-https.git] / WebCore / ChangeLog
1 2006-05-14  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2
3         Reviewed by Hyatt.
4
5         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6838
6           Incomplete repaint of collapsed table borders
7           
8         This patch updates the implementation of collapsing borders to match
9         the current spec.
10
11         Test: fast/repaint/table-collapsed-border.html
12
13         * rendering/RenderTable.cpp:
14         (WebCore::RenderTable::RenderTable):
15         (WebCore::RenderTable::layout): Calculate horizontal overflows.
16         (WebCore::RenderTable::calcMinMaxWidth): Added call to recalcHorizontalBorders.
17         (WebCore::RenderTable::colElement): Made const.
18         (WebCore::RenderTable::calcBorderLeft): Calculates the left border. In the collapsing
19         borders model, this is the left border of the leftmost cell of the first row.
20         (WebCore::RenderTable::calcBorderRight): Ditto for the right border.
21         (WebCore::RenderTable::recalcHorizontalBorders): Added.
22         (WebCore::RenderTable::borderTop): Changed to return outerBorderTop in the
23         collapsing case.
24         (WebCore::RenderTable::borderBottom): Changed to return outerBorderBottom in
25         the collapsing case.
26         (WebCore::RenderTable::outerBorderTop): Added. Returns the table half of the
27         top border, which is half the widest top border on the first row.
28         (WebCore::RenderTable::outerBorderBottom): Added. Returns the table half of the
29         bottom border, which is half the widest bottom border on the last row.
30         (WebCore::RenderTable::outerBorderLeft): Added. Returns the table half of the
31         left border, which is half the widest left border on the leftmost column.
32         (WebCore::RenderTable::outerBorderRight): Added. Returns the table half of the
33         right border, which is half the widest right border on the rightmost column.
34         (WebCore::RenderTable::cellAbove): Return 0 if the cell is in the first row
35         of the header.
36         (WebCore::RenderTable::cellBelow): Return 0 if the cell is in the last row
37         of the footer.
38         * rendering/RenderTable.h:
39         (WebCore::RenderTable::borderLeft):
40         (WebCore::RenderTable::borderRight):
41         (WebCore::RenderTable::overflowHeight):
42         * rendering/RenderTableCell.cpp:
43         (WebCore::RenderTableCell::borderLeft): Removed unnecessary use of floats.
44         (WebCore::RenderTableCell::borderTop): Ditto.
45         (WebCore::RenderTableCell::paint): Account for the table half of the vertical
46         borders.
47         (WebCore::RenderTableCell::paintCollapsedBorder): Removed unnecessary use of
48         floats.
49         * rendering/RenderTableSection.cpp:
50         (WebCore::RenderTableSection::RenderTableSection):
51         (WebCore::RenderTableSection::layoutRows): Added call to recalcOuterBorder.
52         (WebCore::RenderTableSection::calcOuterBorderTop): Added. Calculates the outer half of
53         the section's top border, which is half the widest top border on the first row.
54         (WebCore::RenderTableSection::calcOuterBorderBottom): Ditto for the bottom border.
55         (WebCore::RenderTableSection::calcOuterBorderLeft): Ditto for the left border.
56         (WebCore::RenderTableSection::calcOuterBorderRight): Ditto for the right border.
57         (WebCore::RenderTableSection::recalcOuterBorder): Added.
58         (WebCore::RenderTableSection::paint): Account for the table half of the borders.
59         * rendering/RenderTableSection.h:
60         (WebCore::RenderTableSection::outerBorderTop):
61         (WebCore::RenderTableSection::outerBorderBottom):
62         (WebCore::RenderTableSection::outerBorderLeft):
63         (WebCore::RenderTableSection::outerBorderRight):
64         * rendering/render_style.cpp:
65         (WebCore::RenderStyle::diff): Changed to return Layout if a border style changed
66         from 'hidden' to 'none' or vice versa in the collapsing borders model, since
67         'hidden' suppresses other borders.
68
69 2006-05-14  Mitz Pettel  <opendarwin.org@mitzpettel.com>
70
71         Reviewed by Darin.
72
73         - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8739
74           Crash in RenderTableSection::paint due to manipulating DOM on resize
75
76         * manual-tests/dom-manipulation-on-resize.html: Added.
77
78 2006-05-14  Rob Buis  <buis@kde.org>
79
80         Reviewed by Darin.
81
82         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=5882:
83         disabled type="file" element doesn't appear disabled
84
85         Be sure to call setDisabled on the file button when in
86         RenderFileButton::updateFromElement.
87
88         * kwq/KWQFileButton.h:
89         * kwq/KWQFileButton.mm:
90         (-[WebFileChooserButton setEnabled:]):
91         (KWQFileButton::setDisabled):
92         * rendering/render_form.cpp:
93         (WebCore::RenderFileButton::updateFromElement):
94
95 2006-05-14  Steve Falkenburg  <sfalken@apple.com>
96
97         Fix Windows build.
98
99         * platform/win/FontWin.cpp:
100         (WebCore::FontFallbackList::fontDataAt):
101         (WebCore::hackishExtentForString):
102         (WebCore::Font::floatWidth):
103         (WebCore::Font::drawText):
104         (WebCore::Font::selectionRectForText):
105         (WebCore::Font::offsetForPosition):
106
107 2006-05-14  David Hyatt  <hyatt@apple.com>
108
109         Bug 8895.  Rework font substitution and fallback.  Lift the concept of
110         substitution and fallback out of FontData and up into the FontFallbackList.
111         See the bug for details of issues fixed in the fallback code.
112
113         Reviewed by darin
114
115         * WebCore.xcodeproj/project.pbxproj:
116         * platform/Font.cpp:
117         (WebCore::m_finalRoundingWidth):
118         (WebCore::WidthIterator::advance):
119         (WebCore::Font::primaryFont):
120         (WebCore::Font::fontDataAt):
121         (WebCore::Font::fontDataForCharacters):
122         (WebCore::Font::ascent):
123         (WebCore::Font::descent):
124         (WebCore::Font::lineSpacing):
125         (WebCore::Font::xHeight):
126         (WebCore::Font::isFixedPitch):
127         * platform/Font.h:
128         (WebCore::Font::getNSFont):
129         * platform/FontCache.h: Added.
130         * platform/FontData.h:
131         (WebCore::FontData::pitch):
132         (WebCore::FontData::getNSFont):
133         (WebCore::):
134         * platform/FontFallbackList.cpp: Added.
135         (WebCore::m_pitch):
136         (WebCore::FontFallbackList::~FontFallbackList):
137         (WebCore::FontFallbackList::invalidate):
138         (WebCore::FontFallbackList::determinePitch):
139         (WebCore::FontFallbackList::fontDataAt):
140         (WebCore::FontFallbackList::fontDataForCharacters):
141         * platform/FontFallbackList.h:
142         (WebCore::FontFallbackList::isFixedPitch):
143         (WebCore::FontFallbackList::primaryFont):
144         * platform/FontFamily.h:
145         * platform/mac/FontCacheMac.mm: Added.
146         (WebCore::FontCache::getFontData):
147         (WebCore::FontCache::getFontDataForCharacters):
148         * platform/mac/FontData.mm:
149         (WebCore::FontData::containsCharacters):
150         * platform/mac/FontMac.mm:
151         (WebCore::ATSULayoutParameters::initialize):
152         * platform/mac/WebTextRendererFactory.h:
153         * platform/mac/WebTextRendererFactory.mm:
154         (-[WebTextRendererFactory fallbackFontWithTraits:size:]):
155         (-[WebTextRendererFactory fontWithDescription:WebCore::familyIndex:]):
156         * platform/win/FontWin.cpp:
157         (WebCore::FontFallbackList::determinePitch):
158         (WebCore::FontFallbackList::primaryFont):
159         (WebCore::FontFallbackList::fontDataAt):
160         (WebCore::FontFallbackList::fontDataForCharacters):
161
162 2006-05-14  Sam Weinig  <sam.weinig@gmail.com>
163
164         Reviewed by Hyatt, landed by ap.
165
166         Fix for <http://bugzilla.opendarwin.org/show_bug.cgi?id=8387>
167         "border-left/padding-Left do not show up on multiline rtl inline boxes"
168
169         Test: fast/inline/inline-borders-with-bidi-override.html: added
170
171         * rendering/InlineFlowBox.cpp:
172         (WebCore::InlineFlowBox::determineSpacingForFlowBoxes):
173
174 2006-05-14  Steve Falkenburg  <sfalken@apple.com>
175
176         Fix the Windows build the rest of the way
177
178         * WebCore.vcproj/WebCore/WebCore.vcproj:
179
180 2006-05-14  Steve Falkenburg  <sfalken@apple.com>
181
182         Get FontWin.cpp compiling.
183         WebCore and JSCore now build, but Spinneret still gets link errors.
184
185         * platform/win/FontWin.cpp:
186         (WebCore::Font::offsetForPosition):
187
188 2006-05-14  Steve Falkenburg  <sfalken@apple.com>
189
190         Reviewed by maciej.
191
192         Fix Windows build except for fontwin.cpp.
193
194         * WebCore/platform/win/FontWin.cpp:
195         * WebCore.vcproj/WebCore/WebCore.vcproj:
196         * bridge/win/FrameWin.cpp:
197
198 2006-05-13  Kevin M. Ollivier  <kevino@theolliviers.com>
199
200         Reviewed by Darin, landed by ap.
201
202         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8528
203           Bakefiles (and generated Makefiles) for wx and gdk ports
204         
205         * make-generated-sources.sh: 
206         Added script to configure environment to run DerivedSources.make
207         
208         * move-js-headers.sh:
209         Added script to copy JavaScriptCore includes into one dir so that 
210         Framework-style includes will work on all OSes. (written by Mike Emmel)
211         
212         * platform/wx: New dir, home for the wxWidgets port
213         * platform/wx/wx-encodings.txt: Added temp. stub for wx encodings file.
214         
215         * Projects: New dir, for various project files for ports.
216         
217         * Projects/gdk: New dir, GDK port files.
218         * Projects/webcore-gdk.bkl: Bakefile to generate GDK port project files
219         
220         * Projects/wx: New dir, wxWidgets port files.
221         * Projects/webcore-wx.bkl: Bakefile to generate wxWidgets port project files
222
223 2006-05-13  Mitz Pettel  <opendarwin.org@mitzpettel.com>
224
225         Reviewed by Darin, landed by ap.
226
227         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8485
228           iExploder(#11705): Freeze in RenderBlock::layout()
229
230         Test: fast/text/midword-break-hang.html
231
232         * rendering/bidi.cpp:
233         (WebCore::RenderBlock::findNextLineBreak): If this is a mid-word break,
234         ignore breakOnlyAfterWhiteSpace.
235
236 2006-05-13  Alexey Proskuryakov  <ap@nypop.com>
237
238         Fix release build.
239
240         * rendering/RenderBox.cpp:
241         (WebCore::RenderBox::calcAbsoluteHorizontalValues): Initialize leftValue. 
242         This value will never be used, because 'left' and 'right' cannot both be 'auto'.
243         (WebCore::RenderBox::calcAbsoluteVerticalValues): Initialize topValue. 
244         (WebCore::RenderBox::calcAbsoluteVerticalReplaced): Same changes as above. 
245
246 2006-05-13  Alexey Proskuryakov  <ap@nypop.com>
247
248         Re-applied the fix for bug 8835 (REGRESSION: Line moves but selection
249         highlight stays behind) to a correct file; removed the stale one.
250
251         * rendering/RootInlineBox.cpp:
252         (WebCore::RootInlineBox::adjustPosition): Adjust m_selectionTop
253         and m_selectionBottom.
254         * rendering/render_line.cpp: Removed.
255
256 2006-05-13  Rob Buis  <buis@kde.org>
257
258         Reviewed by Darin, landed by ap.
259
260         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8132
261         CSS parser sometimes accepts real number as integer
262
263         Add a boolean variable per css value to catch whether values
264         are specified as floats or integers.
265
266         Test: fast/css/rgb-float.html
267
268         * css/CSSGrammar.y:
269         * css/cssparser.cpp:
270         (WebCore::CSSParser::validUnit):
271         (WebCore::CSSParser::lex):
272         * css/cssparser.h:
273         * css/tokenizer.flex:
274
275 2006-05-13  Sam Weinig  <sam.weinig@gmail.com>
276
277         Reviewed by Hyatt, landed by ap.
278
279         Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=7604
280         calcAbsoluteHorizontalValues() is being getting passed arguments
281         in the wrong order in calcAbsoluteHorizontal()
282
283         Cleans up the RenderBox code for absolutely positioned elements
284         and adds new functions for replaced absolutely positioned 
285         elements. Now uses Length so that magic number -666666 for 
286         auto lengths is no longer used.
287
288         * rendering/RenderBox.cpp:
289         (WebCore::RenderBox::calcAbsoluteHorizontal):
290         (WebCore::RenderBox::calcAbsoluteHorizontalValues):
291         (WebCore::RenderBox::calcAbsoluteVertical):
292         (WebCore::RenderBox::calcAbsoluteVerticalValues): 
293         (WebCore::RenderBox::calcAbsoluteHorizontalReplaced): Handle replaced
294         case separately.
295         (WebCore::RenderBox::calcAbsoluteVerticalReplaced): ditto.
296         * rendering/RenderBox.h:
297
298 2006-05-12  David Hyatt  <hyatt@apple.com>
299
300         Bug 8880, remove the remaining drawing/hit testing code from
301         FontData.
302
303         Reviewed by tim h
304
305         * platform/Font.cpp:
306         (WebCore::m_finalRoundingWidth):
307         (WebCore::WidthIterator::advanceOneCharacter):
308         (WebCore::Font::selectionRectForText):
309         (WebCore::Font::selectionRectForSimpleText):
310         (WebCore::Font::offsetForPosition):
311         (WebCore::Font::offsetForPositionForSimpleText):
312         * platform/Font.h:
313         (WebCore::TextRun::makeComplete):
314         * platform/FontData.h:
315         * platform/GlyphBuffer.h:
316         (WebCore::GlyphBuffer::clear):
317         * platform/mac/FontData.mm:
318         * platform/mac/FontMac.mm:
319         (WebCore::Font::selectionRectForComplexText):
320         (WebCore::Font::offsetForPositionForComplexText):
321
322 2006-05-12  Kevin M. Ollivier  <kevino@theolliviers.com>
323
324         Reviewed by Maciej.
325
326         Add missing include.
327         
328         * dom/Node.h: Add missing include for DeprecatedString.
329
330 2006-05-12  Mitz Pettel  <opendarwin.org@mitzpettel.com>
331
332         Reviewed by Darin.
333
334         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8835
335           REGRESSION: Line moves but selection highlight stays behind
336
337         Test: fast/dynamic/selection-highlight-adjust.html
338
339         * rendering/render_line.cpp:
340         (WebCore::RootInlineBox::adjustPosition): Adjust m_selectionTop
341         and m_selectionBottom.
342
343 2006-05-12  Timothy Hatcher  <timothy@apple.com>
344
345         Reviewed by Darin.
346
347         http://bugzilla.opendarwin.org/show_bug.cgi?id=7156
348         Bug 7156: TinyMCE: Links are actually activated in editable area, not editable.
349         
350         Links in editable areas will not activate or perform a navigation
351         change (on par with WinIE and Firefox.) To visit the link
352         you can shift-click. Manual test added.
353
354         * css/cssstyleselector.cpp:
355         (WebCore::CSSStyleSelector::adjustRenderStyle):
356         * html/HTMLAnchorElement.cpp:
357         (WebCore::HTMLAnchorElement::defaultEventHandler):
358         (WebCore::HTMLAnchorElement::setActive):
359         * html/HTMLAnchorElement.h:
360         * manual-tests/contenteditable-link.html: Added.
361         * page/FrameView.cpp:
362         (WebCore::selectCursor):
363
364 2006-05-12  Eric Seidel  <eseidel@apple.com>
365
366         Reviewed by timo.
367
368         Split out html_inlineimpl.* into separate files (one per class).
369
370         * WebCore.xcodeproj/project.pbxproj:
371         * bindings/js/kjs_html.cpp:
372         * bindings/objc/DOMHTML.mm:
373         * editing/CreateLinkCommand.cpp:
374         * editing/UnlinkCommand.cpp:
375         * html/HTMLAnchorElement.cpp: Added.
376         (WebCore::HTMLAnchorElement::HTMLAnchorElement):
377         * html/HTMLAnchorElement.h: Added.
378         * html/HTMLBRElement.cpp: Added.
379         * html/HTMLBRElement.h: Added.
380         * html/HTMLElementFactory.cpp:
381         * html/HTMLFontElement.cpp: Added.
382         (WebCore::HTMLFontElement::HTMLFontElement):
383         (WebCore::HTMLFontElement::setColor):
384         (WebCore::HTMLFontElement::setFace):
385         (WebCore::HTMLFontElement::setSize):
386         * html/HTMLFontElement.h: Added.
387         * html/HTMLModElement.cpp: Added.
388         (WebCore::HTMLModElement::setCite):
389         (WebCore::HTMLModElement::setDateTime):
390         * html/HTMLModElement.h: Added.
391         * html/HTMLQuoteElement.cpp: Added.
392         * html/HTMLQuoteElement.h: Added.
393         * html/html_imageimpl.h:
394         * html/html_inlineimpl.cpp: Removed.
395         * html/html_inlineimpl.h: Removed.
396         * page/FrameView.cpp:
397
398 2006-05-12  Eric Seidel  <eseidel@apple.com>
399
400         Reviewed by beth.
401
402         Fix build error.
403
404         * rendering/InlineFlowBox.cpp:
405         * rendering/RootInlineBox.cpp:
406
407 2006-05-12  Eric Seidel  <eseidel@apple.com>
408
409         Reviewed by beth.
410
411         Split out render_line.* into separate files (one per class).
412
413         * WebCore.xcodeproj/project.pbxproj:
414         * dom/ContainerNode.cpp:
415         * rendering/EllipsisBox.cpp: Added.
416         * rendering/EllipsisBox.h: Added.
417         (WebCore::EllipsisBox::EllipsisBox):
418         * rendering/InlineBox.cpp: Added.
419         * rendering/InlineBox.h: Added.
420         (WebCore::InlineBox::InlineBox):
421         (WebCore::InlineBox::~InlineBox):
422         (WebCore::InlineBox::bottomOverflow):
423         (WebCore::InlineBox::rightOverflow):
424         * rendering/InlineFlowBox.cpp: Added.
425         (WebCore::InlineFlowBox::placeBoxesHorizontally):
426         * rendering/InlineFlowBox.h: Added.
427         * rendering/InlineRunBox.h: Added.
428         (WebCore::InlineRunBox::InlineRunBox):
429         (WebCore::InlineRunBox::paintBackgroundAndBorder):
430         (WebCore::InlineRunBox::paintDecorations):
431         * rendering/InlineTextBox.h:
432         * rendering/RenderBlock.h:
433         * rendering/RenderFlow.h:
434         * rendering/RenderReplaced.cpp:
435         * rendering/RootInlineBox.cpp: Added.
436         * rendering/RootInlineBox.h: Added.
437         (WebCore::RootInlineBox::RootInlineBox):
438         * rendering/render_line.h: Removed.
439
440 2006-05-12  Eric Seidel  <eseidel@apple.com>
441
442         Reviewed by hyatt.
443
444         Split out table_layout.* into separate files (one per class).
445         Search replace instance variables "foo" with "m_foo" to comply with modern style.
446
447         * WebCore.xcodeproj/project.pbxproj:
448         * rendering/AutoTableLayout.cpp: Added.
449         (WebCore::AutoTableLayout::AutoTableLayout):
450         (WebCore::AutoTableLayout::recalcColumn):
451         (WebCore::AutoTableLayout::fullRecalc):
452         (WebCore::AutoTableLayout::calcMinMaxWidth):
453         (WebCore::AutoTableLayout::calcEffectiveWidth):
454         (WebCore::AutoTableLayout::insertSpanCell):
455         (WebCore::AutoTableLayout::layout):
456         (WebCore::AutoTableLayout::calcPercentages):
457         * rendering/AutoTableLayout.h: Added.
458         (WebCore::AutoTableLayout::totalPercent):
459         (WebCore::AutoTableLayout::Layout::Layout):
460         * rendering/FixedTableLayout.cpp: Added.
461         (WebCore::FixedTableLayout::FixedTableLayout):
462         (WebCore::FixedTableLayout::calcWidthArray):
463         (WebCore::FixedTableLayout::calcMinMaxWidth):
464         (WebCore::FixedTableLayout::layout):
465         * rendering/FixedTableLayout.h: Added.
466         * rendering/RenderTable.cpp:
467         * rendering/TableLayout.h: Added.
468         (WebCore::TableLayout::TableLayout):
469         * rendering/table_layout.cpp: Removed.
470         * rendering/table_layout.h: Removed.
471
472 2006-05-12  David Hyatt  <hyatt@apple.com>
473
474         Bug 8877.  Change form controls and the bridge entry points from the
475         Safari UI to use Font instead of FontData.
476
477         Reviewed by mjs
478
479         * bridge/mac/WebCoreStringTruncator.mm:
480         (stringWidth):
481         (truncateString):
482         (+[WebCoreStringTruncator widthOfString:font:]):
483         (+[WebCoreStringTruncator clear]):
484         * kwq/KWQComboBox.mm:
485         (QComboBox::sizeHint):
486         * kwq/KWQLineEdit.mm:
487         (QLineEdit::sizeForCharacterWidth):
488         * kwq/KWQListBox.mm:
489         (itemTextRenderer):
490         (groupLabelTextRenderer):
491         (QListBox::sizeForNumberOfLines):
492         (QListBox::clearCachedTextRenderers):
493         (-[KWQTableView drawRow:clipRect:]):
494         * platform/Font.cpp:
495         (WebCore::Font::drawSimpleText):
496         (WebCore::Font::drawText):
497         * platform/Font.h:
498         (WebCore::TextStyle::disableRoundingHacks):
499         (WebCore::TextStyle::setRTL):
500         * platform/FontData.h:
501         * platform/FontFallbackList.h:
502         * platform/FontPlatformData.h:
503         (WebCore::FontPlatformData::syntheticOblique):
504         * platform/Pen.h:
505         * platform/mac/FontData.mm:
506         (WebCore::FontData::smallCapsFontData):
507         (WebCore::findSubstituteRenderer):
508         * platform/mac/FontMac.mm:
509         (WebCore::FontFallbackList::setPlatformFont):
510         (WebCore::m_wordSpacing):
511         (WebCore::Font::drawComplexText):
512         * platform/mac/WebCoreTextRenderer.mm:
513         (WebCoreDrawTextAtPoint):
514         (WebCoreTextFloatWidth):
515         * platform/win/FontWin.cpp:
516         (WebCore::Font::drawText):
517         * rendering/InlineTextBox.cpp:
518         (WebCore::InlineTextBox::positionForOffset):
519
520 2006-05-12  Eric Seidel  <eseidel@apple.com>
521
522         Reviewed by kevin.
523
524         Move render_button to RenderButton.
525         Various small style cleanup.
526
527         * WebCore.xcodeproj/project.pbxproj:
528         * html/HTMLButtonElement.cpp:
529         * html/HTMLElement.cpp:
530         * html/HTMLGenericFormElement.cpp:
531         * html/HTMLInputElement.cpp:
532         * platform/mac/WebCoreTextArea.mm:
533         * rendering/RenderApplet.h:
534         * rendering/RenderBox.cpp:
535         * rendering/RenderButton.cpp: Added.
536         (WebCore::RenderButton::RenderButton):
537         (WebCore::RenderButton::addChild):
538         (WebCore::RenderButton::removeChild):
539         * rendering/RenderButton.h: Added.
540         * rendering/RenderEmptyApplet.h:
541         * rendering/RenderHTMLCanvas.h:
542         * rendering/RenderTreeAsText.cpp:
543         * rendering/render_button.cpp: Removed.
544         * rendering/render_button.h: Removed.
545         * rendering/table_layout.cpp:
546         (WebCore::FixedTableLayout::FixedTableLayout):
547         (WebCore::FixedTableLayout::calcWidthArray):
548         (WebCore::FixedTableLayout::calcMinMaxWidth):
549         (WebCore::FixedTableLayout::layout):
550         (WebCore::AutoTableLayout::AutoTableLayout):
551         (WebCore::AutoTableLayout::recalcColumn):
552         (WebCore::AutoTableLayout::fullRecalc):
553         (WebCore::AutoTableLayout::calcMinMaxWidth):
554         (WebCore::AutoTableLayout::calcEffectiveWidth):
555         (WebCore::AutoTableLayout::insertSpanCell):
556         (WebCore::AutoTableLayout::layout):
557         * rendering/table_layout.h:
558         (WebCore::TableLayout::TableLayout):
559         (WebCore::AutoTableLayout::totalPercent):
560         (WebCore::AutoTableLayout::Layout::Layout):
561
562 2006-05-12  Eric Seidel  <eseidel@apple.com>
563
564         Reviewed by mjs.
565
566         Split render_frames.* render_replaced.* and html_baseimpl.* into separate files (one class per file).
567         http://bugzilla.opendarwin.org/show_bug.cgi?id=8878
568
569         * WebCore.xcodeproj/project.pbxproj:
570         * bindings/js/kjs_html.cpp:
571         (KJS::JSHTMLDocumentProtoFunc::callAsFunction):
572         (KJS::JSHTMLDocument::namedItemGetter):
573         (KJS::JSHTMLDocument::getValueProperty):
574         (KJS::JSHTMLDocument::getOwnPropertySlot):
575         (KJS::JSHTMLDocument::putValueProperty):
576         (KJS::JSHTMLElement::formIndexGetter):
577         (KJS::JSHTMLElement::formNameGetter):
578         (KJS::JSHTMLElement::selectIndexGetter):
579         (KJS::JSHTMLElement::framesetNameGetter):
580         (KJS::JSHTMLElement::runtimeObjectGetter):
581         (KJS::JSHTMLElement::runtimeObjectPropertyGetter):
582         (KJS::JSHTMLElement::getOwnPropertySlot):
583         (KJS::JSHTMLElement::implementsCall):
584         (KJS::JSHTMLElement::callAsFunction):
585         (KJS::JSHTMLElement::getValueProperty):
586         (KJS::JSHTMLElement::toString):
587         (KJS::getForm):
588         (KJS::JSHTMLElement::pushEventHandlerScope):
589         (KJS::HTMLElementFunction::callAsFunction):
590         (KJS::JSHTMLElement::put):
591         (KJS::JSHTMLElement::selectSetter):
592         (KJS::JSHTMLElement::putValueProperty):
593         (KJS::toHTMLElement):
594         (KJS::toHTMLTableCaptionElement):
595         (KJS::toHTMLTableSectionElement):
596         (KJS::JSHTMLCollection::lengthGetter):
597         (KJS::JSHTMLCollection::indexGetter):
598         (KJS::JSHTMLCollection::nameGetter):
599         (KJS::JSHTMLCollection::getOwnPropertySlot):
600         (KJS::HTMLCollectionProtoFunc::callAsFunction):
601         (KJS::JSHTMLSelectCollection::selectedIndexGetter):
602         (KJS::JSHTMLSelectCollection::put):
603         (KJS::OptionConstructorImp::construct):
604         (KJS::getSelectHTMLCollection):
605         * bindings/objc/DOMHTML.mm:
606         * bridge/mac/FrameMac.mm:
607         (WebCore::FrameMac::createFrame):
608         * bridge/mac/WebCoreFrameBridge.mm:
609         (-[WebCoreFrameBridge copyRenderNode:copier:]):
610         * dom/Document.cpp:
611         (WebCore::widgetForNode):
612         * html/HTMLBodyElement.cpp: Added.
613         (WebCore::HTMLBodyElement::HTMLBodyElement):
614         (WebCore::HTMLBodyElement::parseMappedAttribute):
615         * html/HTMLBodyElement.h: Added.
616         * html/HTMLDocument.cpp:
617         * html/HTMLElementFactory.cpp:
618         * html/HTMLEmbedElement.cpp:
619         * html/HTMLFrameElement.cpp: Added.
620         (WebCore::HTMLFrameElement::isURLAllowed):
621         (WebCore::HTMLFrameElement::parseMappedAttribute):
622         (WebCore::HTMLFrameElement::setLocation):
623         * html/HTMLFrameElement.h: Added.
624         * html/HTMLFrameSetElement.cpp: Added.
625         (WebCore::HTMLFrameSetElement::HTMLFrameSetElement):
626         (WebCore::HTMLFrameSetElement::parseMappedAttribute):
627         (WebCore::HTMLFrameSetElement::attach):
628         (WebCore::HTMLFrameSetElement::defaultEventHandler):
629         (WebCore::HTMLFrameSetElement::recalcStyle):
630         * html/HTMLFrameSetElement.h: Added.
631         * html/HTMLHeadElement.cpp: Added.
632         (WebCore::HTMLHeadElement::HTMLHeadElement):
633         * html/HTMLHeadElement.h: Added.
634         * html/HTMLHtmlElement.cpp: Added.
635         (WebCore::HTMLHtmlElement::HTMLHtmlElement):
636         * html/HTMLHtmlElement.h: Added.
637         * html/HTMLIFrameElement.cpp: Added.
638         (WebCore::HTMLIFrameElement::HTMLIFrameElement):
639         * html/HTMLIFrameElement.h: Added.
640         * html/HTMLObjectElement.cpp:
641         * html/HTMLParser.cpp:
642         * html/html_baseimpl.cpp: Removed.
643         * html/html_baseimpl.h: Removed.
644         * kwq/WebCoreAXObject.mm:
645         * page/Frame.cpp:
646         (WebCore::isFrameElement):
647         (WebCore::Frame::applyEditingStyleToBodyElement):
648         (WebCore::Frame::removeEditingStyleFromBodyElement):
649         (WebCore::Frame::applyEditingStyleToElement):
650         (WebCore::Frame::removeEditingStyleFromElement):
651         (WebCore::Frame::selectionRect):
652         (WebCore::Frame::isFrameSet):
653         (WebCore::scanForForm):
654         (WebCore::Frame::currentForm):
655         (WebCore::Frame::nodeInfoAtPoint):
656         (WebCore::Frame::adjustPageHeight):
657         (WebCore::Frame::frameForWidget):
658         (WebCore::Frame::forceLayoutWithPageWidthRange):
659         (WebCore::Frame::passWidgetMouseDownEventToWidget):
660         * page/FrameView.cpp:
661         * rendering/RenderFrame.cpp: Added.
662         (WebCore::RenderFrame::viewCleared):
663         * rendering/RenderFrame.h: Added.
664         * rendering/RenderFrameSet.cpp: Added.
665         (WebCore::RenderFrameSet::RenderFrameSet):
666         (WebCore::RenderFrameSet::~RenderFrameSet):
667         (WebCore::RenderFrameSet::layout):
668         (WebCore::RenderFrameSet::positionFrames):
669         (WebCore::RenderFrameSet::userResize):
670         (WebCore::RenderFrameSet::canResize):
671         (WebCore::RenderFrameSet::dump):
672         * rendering/RenderFrameSet.h: Added.
673         * rendering/RenderImage.h:
674         * rendering/RenderPart.cpp: Added.
675         (WebCore::RenderPart::RenderPart):
676         * rendering/RenderPart.h: Added.
677         * rendering/RenderPartObject.cpp: Added.
678         (WebCore::isURLAllowed):
679         (WebCore::RenderPartObject::updateWidget):
680         (WebCore::RenderPartObject::viewCleared):
681         * rendering/RenderPartObject.h: Added.
682         * rendering/RenderReplaced.cpp: Added.
683         (WebCore::RenderReplaced::selectionColor):
684         * rendering/RenderReplaced.h: Added.
685         * rendering/RenderWidget.cpp: Added.
686         (WebCore::RenderWidget::deleteWidget):
687         * rendering/RenderWidget.h: Added.
688         * rendering/render_form.h:
689         * rendering/render_frames.cpp: Removed.
690         * rendering/render_frames.h: Removed.
691         * rendering/render_replaced.cpp: Removed.
692         * rendering/render_replaced.h: Removed.
693
694 2006-05-12  Eric Seidel  <eseidel@apple.com>
695
696         Reviewed by beth.
697
698         Split html_headimpl.* into separate files (one per class)
699         http://bugzilla.opendarwin.org/show_bug.cgi?id=8875
700
701         * WebCore.xcodeproj/project.pbxproj:
702         * bindings/js/kjs_css.cpp:
703         * bindings/js/kjs_html.cpp:
704         (KJS::JSHTMLElement::headGetter):
705         (KJS::JSHTMLElement::linkGetter):
706         * bindings/objc/DOMCSS.mm:
707         (+[DOMCounter _counterWith:]):
708         (-[DOMCounter finalize]):
709         (-[DOMCounter _DOMStyleSheet]):
710         (-[DOMStyleSheet _initWithStyleSheet:]):
711         (-[DOMStyleSheetList dealloc]):
712         (-[DOMStyleSheetList finalize]):
713         (-[DOMStyleSheetList _styleSheetList]):
714         (-[DOMStyleSheetList _initWithStyleSheetList:]):
715         (-[DOMCSSStyleSheet _CSSStyleSheet]):
716         (-[DOMMediaList dealloc]):
717         (-[DOMMediaList finalize]):
718         (-[DOMMediaList _mediaList]):
719         (-[DOMMediaList _initWithMediaList:]):
720         (-[DOMCSSRuleList dealloc]):
721         (-[DOMCSSRuleList finalize]):
722         (-[DOMCSSRuleList _ruleList]):
723         (-[DOMCSSRuleList _initWithRuleList:]):
724         (-[DOMCSSRule dealloc]):
725         (-[DOMCSSRule finalize]):
726         (-[DOMCSSRule _rule]):
727         (-[DOMCSSRule _initWithRule:]):
728         (-[DOMCSSStyleRule _styleRule]):
729         (-[DOMCSSMediaRule _mediaRule]):
730         (-[DOMCSSFontFaceRule _fontFaceRule]):
731         (-[DOMCSSPageRule _pageRule]):
732         (-[DOMCSSImportRule _importRule]):
733         (-[DOMCSSCharsetRule _importRule]):
734         (-[DOMCSSStyleDeclaration dealloc]):
735         (-[DOMCSSStyleDeclaration finalize]):
736         (-[DOMCSSStyleDeclaration _initWithStyleDeclaration:]):
737         (-[DOMCSSStyleDeclaration _styleDeclaration]):
738         (-[DOMCSSValue dealloc]):
739         (-[DOMCSSValue finalize]):
740         (-[DOMCSSValue _value]):
741         (-[DOMCSSValue _initWithValue:]):
742         (-[DOMCSSPrimitiveValue _primitiveValue]):
743         (-[DOMCSSValueList _valueList]):
744         (getWrapperForRGB):
745         (setWrapperForRGB):
746         (removeWrapperForRGB):
747         (-[DOMRGBColor _initWithRGB:]):
748         (-[DOMRect dealloc]):
749         (-[DOMRect finalize]):
750         (-[DOMRect _rect]):
751         (-[DOMRect _initWithRect:]):
752         (-[DOMCounter dealloc]):
753         (-[DOMCounter _counter]):
754         (-[DOMCounter _initWithCounter:]):
755         (-[DOMObject sheet]):
756         * bindings/objc/DOMHTML.mm:
757         (-[DOMHTMLCollection dealloc]):
758         (-[DOMHTMLCollection finalize]):
759         (-[DOMHTMLCollection _collection]):
760         (-[DOMHTMLCollection _initWithCollection:]):
761         (-[DOMHTMLOptionsCollection dealloc]):
762         (-[DOMHTMLOptionsCollection finalize]):
763         (-[DOMHTMLOptionsCollection _initWithOptionsCollection:]):
764         (-[DOMHTMLOptionsCollection _optionsCollection]):
765         (+[DOMHTMLElement _elementWith:]):
766         (-[DOMHTMLElement _HTMLElement]):
767         (-[DOMHTMLDocument _HTMLDocument]):
768         (-[DOMHTMLHtmlElement _HTMLHtmlElement]):
769         (-[DOMHTMLHeadElement _headElement]):
770         (-[DOMHTMLLinkElement _linkElement]):
771         (-[DOMHTMLTitleElement _titleElement]):
772         (-[DOMHTMLMetaElement _metaElement]):
773         (-[DOMHTMLBaseElement _baseElement]):
774         (-[DOMHTMLStyleElement _styleElement]):
775         (-[DOMHTMLBodyElement _bodyElement]):
776         (-[DOMHTMLFormElement _formElement]):
777         (+[DOMHTMLFormElement _formElementWith:]):
778         (-[DOMHTMLIsIndexElement _isIndexElement]):
779         (-[DOMHTMLSelectElement _selectElement]):
780         (-[DOMHTMLOptGroupElement _optGroupElement]):
781         (-[DOMHTMLOptionElement _optionElement]):
782         (-[DOMHTMLInputElement _inputElement]):
783         (-[DOMHTMLTextAreaElement _textAreaElement]):
784         (-[DOMHTMLButtonElement _buttonElement]):
785         (-[DOMHTMLLabelElement _labelElement]):
786         (-[DOMHTMLLabelElement form]):
787         (-[DOMHTMLFieldSetElement _fieldSetElement]):
788         (-[DOMHTMLLegendElement _legendElement]):
789         (-[DOMHTMLUListElement _uListElement]):
790         (-[DOMHTMLOListElement _oListElement]):
791         (-[DOMHTMLDListElement _dListElement]):
792         (-[DOMHTMLDirectoryElement _directoryListElement]):
793         (-[DOMHTMLMenuElement _menuListElement]):
794         (-[DOMHTMLLIElement _liElement]):
795         (-[DOMHTMLQuoteElement _quoteElement]):
796         (-[DOMHTMLDivElement _divElement]):
797         (-[DOMHTMLParagraphElement _paragraphElement]):
798         (-[DOMHTMLHeadingElement _headingElement]):
799         (-[DOMHTMLPreElement _preElement]):
800         (-[DOMHTMLBRElement _BRElement]):
801         (-[DOMHTMLBaseFontElement _baseFontElement]):
802         (-[DOMHTMLFontElement _fontElement]):
803         (-[DOMHTMLHRElement _HRElement]):
804         (-[DOMHTMLModElement _modElement]):
805         (-[DOMHTMLAnchorElement _anchorElement]):
806         (-[DOMHTMLImageElement _imageElement]):
807         (-[DOMHTMLObjectElement _objectElement]):
808         (-[DOMHTMLParamElement _paramElement]):
809         (-[DOMHTMLMapElement _mapElement]):
810         (-[DOMHTMLAreaElement _areaElement]):
811         (-[DOMHTMLScriptElement _scriptElement]):
812         (+[DOMHTMLTableCaptionElement _tableCaptionElementWith:]):
813         (-[DOMHTMLTableCaptionElement _tableCaptionElement]):
814         (+[DOMHTMLTableSectionElement _tableSectionElementWith:]):
815         (-[DOMHTMLTableSectionElement _tableSectionElement]):
816         (-[DOMHTMLTableElement createTHead]):
817         (-[DOMHTMLTableElement createTFoot]):
818         (-[DOMHTMLTableElement createCaption]):
819         (-[DOMHTMLTableElement insertRow:]):
820         (+[DOMHTMLTableElement _tableElementWith:]):
821         (-[DOMHTMLTableElement _tableElement]):
822         (-[DOMHTMLTableColElement _tableColElement]):
823         (-[DOMHTMLTableRowElement _tableRowElement]):
824         (-[DOMHTMLTableRowElement insertCell:]):
825         (+[DOMHTMLTableCellElement _tableCellElementWith:]):
826         (-[DOMHTMLTableCellElement _tableCellElement]):
827         (-[DOMHTMLFrameSetElement _frameSetElement]):
828         (-[DOMHTMLFrameElement _frameElement]):
829         (-[DOMHTMLIFrameElement _IFrameElement]):
830         (-[DOMHTMLEmbedElement _embedElement]):
831         (viewForElement):
832         * bridge/mac/FrameMac.mm:
833         (WebCore::FrameMac::searchForLabelsAboveCell):
834         (WebCore::FrameMac::searchForLabelsBeforeElement):
835         (WebCore::FrameMac::createFrame):
836         (WebCore::FrameMac::passMouseDownEventToWidget):
837         (WebCore::FrameMac::passSubframeEventToSubframe):
838         (WebCore::FrameMac::passWheelEventToChildWidget):
839         (WebCore::FrameMac::fileWrapperForElement):
840         (WebCore::listParent):
841         (WebCore::FrameMac::attributedString):
842         (WebCore::FrameMac::shouldBeginEditing):
843         (WebCore::FrameMac::shouldEndEditing):
844         (WebCore::FrameMac::setMarkedTextRange):
845         * dom/Document.cpp:
846         * dom/xml_tokenizer.cpp:
847         * html/HTMLBaseElement.cpp: Added.
848         (WebCore::HTMLBaseElement::removedFromDocument):
849         (WebCore::HTMLBaseElement::process):
850         * html/HTMLBaseElement.h: Added.
851         * html/HTMLDocument.cpp:
852         * html/HTMLElementFactory.cpp:
853         * html/HTMLLinkElement.cpp: Added.
854         (WebCore::HTMLLinkElement::HTMLLinkElement):
855         (WebCore::HTMLLinkElement::process):
856         * html/HTMLLinkElement.h: Added.
857         * html/HTMLMetaElement.cpp: Added.
858         (WebCore::HTMLMetaElement::HTMLMetaElement):
859         (WebCore::HTMLMetaElement::parseMappedAttribute):
860         (WebCore::HTMLMetaElement::process):
861         (WebCore::HTMLMetaElement::setContent):
862         (WebCore::HTMLMetaElement::setHttpEquiv):
863         (WebCore::HTMLMetaElement::setName):
864         * html/HTMLMetaElement.h: Added.
865         * html/HTMLParser.cpp:
866         * html/HTMLScriptElement.cpp: Added.
867         (WebCore::HTMLScriptElement::HTMLScriptElement):
868         (WebCore::HTMLScriptElement::parseMappedAttribute):
869         (WebCore::HTMLScriptElement::evaluateScript):
870         * html/HTMLScriptElement.h: Added.
871         * html/HTMLStyleElement.cpp: Added.
872         (WebCore::HTMLStyleElement::HTMLStyleElement):
873         * html/HTMLStyleElement.h: Added.
874         * html/HTMLTitleElement.cpp: Added.
875         (WebCore::HTMLTitleElement::HTMLTitleElement):
876         (WebCore::HTMLTitleElement::text):
877         (WebCore::HTMLTitleElement::setText):
878         * html/HTMLTitleElement.h: Added.
879         * html/html_headimpl.cpp: Removed.
880         * html/html_headimpl.h: Removed.
881         * loader/CachedCSSStyleSheet.h:
882         * rendering/RenderTableCell.cpp:
883         (WebCore::RenderTableCell::updateFromElement):
884         * rendering/RenderTableCol.cpp:
885         (WebCore::RenderTableCol::updateFromElement):
886
887 2006-05-12  Eric Seidel  <eseidel@apple.com>
888
889         Reviewed by beth.
890
891         Split out html_tableimpl.* into multiple files (one per class)
892         http://bugzilla.opendarwin.org/show_bug.cgi?id=8873
893
894         * WebCore.xcodeproj/project.pbxproj:
895         * html/HTMLTableCaptionElement.cpp: Added.
896         (WebCore::HTMLTableCaptionElement::HTMLTableCaptionElement):
897         * html/HTMLTableCaptionElement.h: Added.
898         * html/HTMLTableCellElement.cpp: Added.
899         (WebCore::HTMLTableCellElement::HTMLTableCellElement):
900         * html/HTMLTableCellElement.h: Added.
901         * html/HTMLTableColElement.cpp: Added.
902         (WebCore::HTMLTableColElement::HTMLTableColElement):
903         (WebCore::HTMLTableColElement::endTagRequirement):
904         (WebCore::HTMLTableColElement::tagPriority):
905         (WebCore::HTMLTableColElement::checkDTD):
906         * html/HTMLTableColElement.h: Added.
907         * html/HTMLTableElement.cpp: Added.
908         (WebCore::HTMLTableElement::HTMLTableElement):
909         (WebCore::HTMLTableElement::setCaption):
910         (WebCore::HTMLTableElement::setTHead):
911         (WebCore::HTMLTableElement::setTFoot):
912         (WebCore::HTMLTableElement::setTBody):
913         (WebCore::HTMLTableElement::createTHead):
914         (WebCore::HTMLTableElement::deleteTHead):
915         (WebCore::HTMLTableElement::createTFoot):
916         (WebCore::HTMLTableElement::deleteTFoot):
917         (WebCore::HTMLTableElement::createCaption):
918         (WebCore::HTMLTableElement::deleteCaption):
919         (WebCore::HTMLTableElement::insertRow):
920         (WebCore::HTMLTableElement::deleteRow):
921         (WebCore::HTMLTableElement::addChild):
922         (WebCore::HTMLTableElement::parseMappedAttribute):
923         (WebCore::HTMLTableElement::attach):
924         * html/HTMLTableElement.h: Added.
925         * html/HTMLTablePartElement.cpp: Added.
926         (WebCore::HTMLTablePartElement::parseMappedAttribute):
927         * html/HTMLTablePartElement.h: Added.
928         * html/HTMLTableRowElement.cpp: Added.
929         (WebCore::HTMLTableRowElement::HTMLTableRowElement):
930         (WebCore::HTMLTableRowElement::rowIndex):
931         * html/HTMLTableRowElement.h: Added.
932         * html/HTMLTableSectionElement.cpp: Added.
933         (WebCore::HTMLTableSectionElement::insertRow):
934         * html/HTMLTableSectionElement.h: Added.
935         * html/html_tableimpl.cpp: Removed.
936         * html/html_tableimpl.h: Removed.
937
938 2006-05-10  Eric Seidel  <eseidel@apple.com>
939
940         Reviewed by mjs & adele.
941
942         Split html_objectimpl.* into multiple files (one per class)
943         http://bugzilla.opendarwin.org/show_bug.cgi?id=8836
944
945         * WebCore.xcodeproj/project.pbxproj:
946         * bindings/js/kjs_dom.cpp:
947         (KJS::DOMNamedNodeMap::lengthGetter):
948         (KJS::DOMNamedNodeMap::indexGetter):
949         (KJS::DOMNamedNodeMap::nameGetter):
950         (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
951         (KJS::getRuntimeObject):
952         * bindings/js/kjs_html.cpp:
953         * html/HTMLAppletElement.cpp: Added.
954         * html/HTMLAppletElement.h: Added.
955         * html/HTMLElementFactory.cpp:
956         * html/HTMLEmbedElement.cpp: Added.
957         (WebCore::HTMLEmbedElement::HTMLEmbedElement):
958         (WebCore::HTMLEmbedElement::getInstance):
959         (WebCore::HTMLEmbedElement::parseMappedAttribute):
960         * html/HTMLEmbedElement.h: Added.
961         * html/HTMLNameCollection.cpp:
962         (WebCore::HTMLNameCollection::traverseNextItem):
963         * html/HTMLObjectElement.cpp: Added.
964         (WebCore::HTMLObjectElement::getInstance):
965         (WebCore::HTMLObjectElement::form):
966         (WebCore::HTMLObjectElement::parseMappedAttribute):
967         (WebCore::HTMLObjectElement::updateDocNamedItem):
968         * html/HTMLObjectElement.h: Added.
969         * html/HTMLParamElement.cpp: Added.
970         * html/HTMLParamElement.h: Added.
971         * html/HTMLParser.cpp:
972         * html/HTMLPlugInElement.cpp: Added.
973         * html/HTMLPlugInElement.h: Added.
974         * html/html_objectimpl.cpp: Removed.
975         * html/html_objectimpl.h: Removed.
976         * page/Frame.cpp:
977         (WebCore::Frame::handleFallbackContent):
978         * rendering/RenderApplet.cpp:
979         * rendering/render_frames.cpp:
980         (WebCore::RenderPartObject::updateWidget):
981
982 2006-05-12  Darin Adler  <darin@apple.com>
983
984         Reviewed by Adele.
985
986         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8521
987           crash bringing up context menu with CSS generated content
988
989         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::sendContextMenuEvent):
990         Added a null check.
991
992         * manual-tests/context-click-generated-content.html: Added.
993
994 2006-05-12  Darin Adler  <darin@apple.com>
995
996         Reviewed by Adele.
997
998         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8715
999           REGRESSION: Caret to the right of an image is a big black rectangle.
1000
1001         * rendering/RenderBox.cpp: (WebCore::RenderBox::caretRect): Move caret to the
1002         right side of the rect when the offset is non-zero, rather than expanding it.
1003
1004         * manual-tests/caret-image.html: Added.
1005
1006 2006-05-12  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1007
1008         Reviewed and landed by Anders.
1009         
1010         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8866
1011           REGRESSION: Incorrect caret position in RTL text
1012
1013         Test: fast/text/international/rtl-caret.html
1014
1015         * rendering/InlineTextBox.cpp:
1016         (WebCore::InlineTextBox::positionForOffset): Added missing m_toAdd argument.
1017
1018 2006-05-12  David Hyatt  <hyatt@apple.com>
1019
1020         Bug 8864. Lift WebCoreTextStyle up into the API (as TextStyle).
1021
1022         Reviewed by mjs
1023
1024         * platform/Font.cpp:
1025         (WebCore::m_finalRoundingWidth):
1026         (WebCore::WidthIterator::advance):
1027         (WebCore::Font::width):
1028         (WebCore::Font::drawSimpleText):
1029         (WebCore::Font::drawText):
1030         (WebCore::Font::floatWidth):
1031         (WebCore::Font::floatWidthForSimpleText):
1032         * platform/Font.h:
1033         (WebCore::TextStyle::m_attemptFontSubstitution):
1034         (WebCore::TextStyle::tabWidth):
1035         (WebCore::TextStyle::xPos):
1036         (WebCore::TextStyle::padding):
1037         (WebCore::TextStyle::rtl):
1038         (WebCore::TextStyle::ltr):
1039         (WebCore::TextStyle::directionalOverride):
1040         (WebCore::TextStyle::applyRunRounding):
1041         (WebCore::TextStyle::applyWordRounding):
1042         (WebCore::TextStyle::attemptFontSubstitution):
1043         (WebCore::Font::operator==):
1044         * platform/GraphicsContext.cpp:
1045         (WebCore::GraphicsContext::drawText):
1046         (WebCore::GraphicsContext::drawHighlightForText):
1047         * platform/GraphicsContext.h:
1048         * platform/mac/FontMac.mm:
1049         (WebCore::overrideLayoutOperation):
1050         (WebCore::ATSULayoutParameters::initialize):
1051         (WebCore::Font::selectionRectForText):
1052         (WebCore::Font::drawComplexText):
1053         (WebCore::Font::floatWidthForComplexText):
1054         (WebCore::Font::offsetForPosition):
1055         * rendering/InlineTextBox.cpp:
1056         (WebCore::InlineTextBox::selectionRect):
1057         (WebCore::InlineTextBox::paint):
1058         (WebCore::InlineTextBox::paintSelection):
1059         (WebCore::InlineTextBox::paintMarkedTextBackground):
1060         (WebCore::InlineTextBox::paintTextMatchMarker):
1061         (WebCore::InlineTextBox::offsetForPosition):
1062         (WebCore::InlineTextBox::positionForOffset):
1063         * rendering/RenderText.cpp:
1064         (WebCore::RenderText::widthFromCache):
1065         (WebCore::RenderText::calcMinMaxWidth):
1066         (WebCore::RenderText::width):
1067         * rendering/RenderTextField.cpp:
1068         (WebCore::RenderTextField::calcMinMaxWidth):
1069         * rendering/render_line.cpp:
1070         (WebCore::EllipsisBox::paint):
1071
1072 2006-05-11  Alexey Proskuryakov  <ap@nypop.com>
1073
1074         Reviewed by Darin.
1075
1076         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8770
1077           XMLHttpRequest should strip CR/LF characters from the URL
1078
1079         Test: fast/loader/url-strip-cr-lf-tab.html
1080
1081         * platform/KURL.cpp:
1082         (appendEscapingBadChars): Strip CR, LF and TAB, as Firefox and IE do.
1083
1084 2006-05-11  David Hyatt  <hyatt@apple.com>
1085
1086         Remove the misspelling drawing code from Font and FontData.  Implement it
1087         natively in GraphicContext instead.
1088
1089         Reviewed by maciej
1090
1091         * platform/FontData.h:
1092         * platform/GraphicsContext.cpp:
1093         * platform/GraphicsContext.h:
1094         * platform/cairo/GraphicsContextCairo.cpp:
1095         (WebCore::GraphicsContext::drawLineForMisspelling):
1096         * platform/mac/FontData.mm:
1097         * platform/mac/FontMac.mm:
1098         * platform/mac/GraphicsContextMac.mm:
1099         (WebCore::GraphicsContext::drawLineForMisspelling):
1100         * platform/win/FontWin.cpp:
1101         * rendering/InlineTextBox.cpp:
1102         (WebCore::InlineTextBox::paintSpellingMarker):
1103
1104 2006-05-11  David Hyatt  <hyatt@apple.com>
1105
1106         Remove drawLineForText from the Font API.  Implement it natively in
1107         the two GraphicsContexts (CG and Cairo) instead.
1108
1109         Reviewed by maciej
1110
1111         * platform/Font.h:
1112         * platform/FontData.h:
1113         * platform/GraphicsContext.cpp:
1114         * platform/GraphicsContext.h:
1115         * platform/cairo/GraphicsContextCairo.cpp:
1116         (WebCore::GraphicsContext::drawLineForText):
1117         * platform/cg/GraphicsContextCG.cpp:
1118         (WebCore::GraphicsContext::drawLineForText):
1119         * platform/mac/FontData.mm:
1120         * platform/mac/FontMac.mm:
1121         * platform/win/FontWin.cpp:
1122         (WebCore::Font::drawLineForText):
1123         * rendering/InlineTextBox.cpp:
1124         (WebCore::InlineTextBox::paintDecoration):
1125         (WebCore::InlineTextBox::paintMarkedTextUnderline):
1126         * rendering/render_line.cpp:
1127         (WebCore::InlineFlowBox::paintDecorations):
1128
1129 2006-05-11  Steve Falkenburg  <sfalken@apple.com>
1130
1131         Reviewed by eric.
1132
1133         Fix last fix.
1134
1135         * dom/QualifiedName.h:
1136         (WebCore::QualifiedName::QualifiedName):
1137
1138 2006-05-11  Steve Falkenburg  <sfalken@apple.com>
1139
1140         Reviewed by eric.
1141
1142         Fix crash on static constructors builds at exit due to qualified name default constructor not
1143         initializing m_impl.
1144
1145         * dom/QualifiedName.cpp:
1146         (WebCore::QualifiedName::deref):
1147
1148 2006-05-11  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1149
1150         Reviewed by hyatt
1151
1152         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8851
1153           REGRESSION: RTL text shifted to the right
1154
1155         Already covered by several tests in fast/text
1156
1157         * platform/Font.h:
1158         (WebCore::TextRun::TextRun): Added length parameter.
1159         * rendering/InlineTextBox.cpp: Pass the length to the TextRun constructor.
1160         (WebCore::InlineTextBox::selectionRect):
1161         (WebCore::InlineTextBox::paint):
1162         (WebCore::InlineTextBox::paintSelection):
1163         (WebCore::InlineTextBox::paintMarkedTextBackground):
1164         (WebCore::InlineTextBox::paintTextMatchMarker):
1165         (WebCore::InlineTextBox::offsetForPosition):
1166         (WebCore::InlineTextBox::positionForOffset):
1167         * rendering/RenderText.cpp:
1168         (WebCore::RenderText::widthFromCache): Pass length and from instead of from and to
1169         to the TextRun constructor.
1170         (WebCore::RenderText::width): Ditto.
1171
1172 2006-05-11  David Hyatt  <hyatt@apple.com>
1173
1174         Fix a regression from the TextRun landing.  Delete the characters in
1175         the adjustedRun, not the ones in the original run!
1176
1177         Reviewed by beth
1178
1179         * platform/mac/FontMac.mm:
1180         (WebCore::Font::drawComplexText):
1181
1182 2006-05-10  Justin Garcia  <justin.garcia@apple.com>
1183
1184         Reviewed by thatcher, levi
1185
1186         * editing/ReplaceSelectionCommand.cpp:
1187         (WebCore::ReplaceSelectionCommand::doApply):
1188         Removed a use fragment.hasMoreThanOneBlock to decide if the paragraph containing the
1189         position pasted into must be split to avoid block nesting.  We now split unnecessarily
1190         some times, but the end merge cleans up for us.
1191
1192 2006-05-11  David Hyatt  <hyatt@apple.com>
1193
1194         This patch makes drawHighlightForText a completely cross-platform method
1195         implemented by the GraphicsContext.  The platform-specific implementations
1196         of the method in the Font class have been eliminated.
1197
1198         Reviewed by andersca
1199
1200         * platform/Font.h:
1201         * platform/FontData.h:
1202         Remove the drawHighlight methods.  Change the selectionRect method in
1203         Font to return a FloatRect so that the GraphicsContext can do an accurate
1204         fill.
1205
1206         * platform/GraphicsContext.cpp:
1207         (WebCore::GraphicsContext::drawHighlightForText):
1208         Implement the drawHighlightFunction in terms of the cross-platform
1209         Font selectionRect functions and a new float-based fillRect graphics context
1210         function.
1211
1212         * platform/GraphicsContext.h:
1213         * platform/cairo/GraphicsContextCairo.cpp:
1214         (WebCore::GraphicsContext::fillRect):
1215         * platform/cg/GraphicsContextCG.cpp:
1216         (WebCore::GraphicsContext::fillRect):
1217         Add the new float-based fillRect function for Cairo and CG.
1218
1219         * platform/mac/FontData.mm:
1220         (WebCore::CG_draw):
1221         (WebCore::ATSU_draw):
1222         Removed the CG and ATSU drawHighlight methods.  Remove the drawing of
1223         the background from the deprecated draw methods (they'll be removed
1224         soon).
1225
1226         * platform/mac/FontMac.mm:
1227         (WebCore::Font::selectionRectForText):
1228         * platform/win/FontWin.cpp:
1229         (WebCore::Font::selectionRectForText):
1230         Change selectionRectForText to return a FloatRect instead of an IntRect,
1231         so that the GraphicsContext can do a precise fill.
1232
1233         * rendering/InlineTextBox.cpp:
1234         (WebCore::InlineTextBox::selectionRect):
1235         (WebCore::InlineTextBox::positionForOffset):
1236         Modify the callers who expect an int-based selection rect so that they call
1237         enclosingIntRect.
1238
1239 2006-05-11  Darin Adler  <darin@apple.com>
1240
1241         Reviewed by Adele.
1242
1243         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8743
1244           REGRESSION: focus() on input field selects all text within it
1245           (was: cannot select cities on British Rail reservation site)
1246
1247         Test: fast/forms/double-focus.html
1248
1249         * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::focus):
1250         Changed to only call setFocusNode, select, and revealSelection
1251         if the element is not already focused. Also changed to use return
1252         a bit more rather than else.
1253
1254 2006-05-11  Darin Adler  <darin@apple.com>
1255
1256         Reviewed by Tim Hatcher (earlier version).
1257
1258         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8821
1259           use the preprocessor for IDL files
1260
1261         * bindings/scripts/IDLParser.pm: Invoke the preprocessor via the "gcc"
1262         driver script, passing "-E" so we only preprocess, "-P" so we don't get
1263         "#line" directives, and "-x c++" so we handle both C and C++ comments.
1264         Removed the code to eliminate comments since the preprocessor handles that.
1265         * css/make-css-file-arrays.pl: This already invoked the preprocessor, but
1266         updated it to do the same way as above.
1267
1268 2006-05-11  Anders Carlsson  <acarlsson@apple.com>
1269
1270         Reviewed by Darin.
1271
1272         http://bugzilla.opendarwin.org/show_bug.cgi?id=7838
1273         Add support for mozilla-style node constructors as properties of the window object
1274         
1275         * DerivedSources.make:
1276         * WebCore.xcodeproj/project.pbxproj:
1277         Add new generated files.
1278         
1279         * bindings/js/JSCanvasRenderingContext2DBase.cpp:
1280         (WebCore::JSCanvasRenderingContext2DBaseProtoFunc::callAsFunction):
1281         * bindings/js/JSHTMLElementWrapperFactory.cpp:
1282         (WebCore::createJSWrapper):
1283         Specify the KJS namespace for JSHTMLElmement.
1284                 
1285         * bindings/js/kjs_dom.cpp:
1286         (KJS::toJS):
1287         Create a WebCore::JSHTMLDocument for document nodes. Also, create
1288         JSDocumentFragments for document fragments (instead of plain node objects).
1289         
1290         * bindings/js/kjs_html.cpp:
1291         (KJS::JSHTMLDocumentProtoFunc::callAsFunction):
1292         (KJS::JSHTMLDocument::JSHTMLDocument):
1293         (KJS::JSHTMLDocument::getOwnPropertySlot):
1294         Add a prototype for JSHTMLDocument and move all functions there.
1295         
1296         (KJS::JSHTMLElement::JSHTMLElement):
1297         (KJS::JSHTMLElement::getOwnPropertySlot):
1298         Update since JSHTMLElement now inherits from WebCore::JSHTMLElement.
1299         
1300         (KJS::JSHTMLElement::getValueProperty):
1301         (KJS::JSHTMLElement::putValueProperty):
1302         Remove title setter and getter. Those are autogenerated now.
1303         
1304         * bindings/js/kjs_html.h:
1305         (KJS::JSHTMLElement::):
1306         Inherit from WebCore::JSHTMLElement. Clarify the inheritance chain.
1307         
1308         * bindings/scripts/CodeGeneratorJS.pm:
1309         Always generate a prototype object, regardless of whether the object has any functions or
1310         constants.
1311         
1312         Use the type of generator attributes to determine what constructor to use. This is useful for
1313         the XMLDocument property in DOMWindow.idl, since that's just an alias for the Document constructor.
1314         
1315         * dom/DocumentFragment.idl: Added.        
1316         * html/HTMLDocument.idl: Added.
1317         * html/HTMLElement.idl: Added.
1318         
1319         * page/DOMWindow.idl:
1320         Add constructors for DocumentFragment, HTMLElement, HTMLDocument and XMLDocument. XMLDocument is just
1321         an alias for the Document constructor.
1322         
1323 2006-05-11  David Hyatt  <hyatt@apple.com>
1324
1325         Bug 8845.  Define a TextRun (similar to the old WebCoreTextRun) and
1326         make it the new API for Font and GraphicsContext when drawing/measuring
1327         text.
1328
1329         Reviewed by andersca
1330
1331         * platform/Font.cpp:
1332         (WebCore::m_finalRoundingWidth):
1333         (WebCore::WidthIterator::advance):
1334         (WebCore::WidthIterator::normalizeVoicingMarks):
1335         (WebCore::Font::width):
1336         (WebCore::Font::canUseGlyphCache):
1337         (WebCore::Font::drawSimpleText):
1338         (WebCore::Font::drawText):
1339         (WebCore::Font::floatWidth):
1340         (WebCore::Font::floatWidthForSimpleText):
1341         * platform/Font.h:
1342         (WebCore::TextRun::m_to):
1343         (WebCore::TextRun::operator[]):
1344         (WebCore::TextRun::data):
1345         (WebCore::TextRun::adjustFrom):
1346         (WebCore::TextRun::adjustTo):
1347         (WebCore::TextRun::characters):
1348         (WebCore::TextRun::length):
1349         (WebCore::TextRun::from):
1350         (WebCore::TextRun::to):
1351         * platform/GraphicsContext.cpp:
1352         (WebCore::GraphicsContext::drawText):
1353         (WebCore::GraphicsContext::drawHighlightForText):
1354         * platform/GraphicsContext.h:
1355         * platform/mac/FontMac.mm:
1356         (WebCore::addDirectionalOverride):
1357         (WebCore::overrideLayoutOperation):
1358         (WebCore::ATSULayoutParameters::initialize):
1359         (WebCore::Font::selectionRectForText):
1360         (WebCore::Font::drawComplexText):
1361         (WebCore::Font::drawHighlightForText):
1362         (WebCore::Font::floatWidthForComplexText):
1363         (WebCore::Font::checkSelectionPoint):
1364         * platform/win/FontWin.cpp:
1365         (WebCore::hackishExtentForString):
1366         (WebCore::Font::floatWidth):
1367         (WebCore::Font::drawText):
1368         (WebCore::Font::drawHighlightForText):
1369         (WebCore::Font::selectionRectForText):
1370         (WebCore::Font::checkSelectionPoint):
1371         * rendering/InlineTextBox.cpp:
1372         (WebCore::InlineTextBox::selectionRect):
1373         (WebCore::InlineTextBox::paint):
1374         (WebCore::InlineTextBox::paintSelection):
1375         (WebCore::InlineTextBox::paintMarkedTextBackground):
1376         (WebCore::InlineTextBox::paintTextMatchMarker):
1377         (WebCore::InlineTextBox::offsetForPosition):
1378         (WebCore::InlineTextBox::positionForOffset):
1379         * rendering/RenderBlock.cpp:
1380         (WebCore::stripTrailingSpace):
1381         * rendering/RenderFlexibleBox.cpp:
1382         (WebCore::RenderFlexibleBox::layoutVerticalBox):
1383         * rendering/RenderImage.cpp:
1384         (WebCore::RenderImage::imageChanged):
1385         (WebCore::RenderImage::paint):
1386         * rendering/RenderText.cpp:
1387         (WebCore::RenderText::cacheWidths):
1388         (WebCore::RenderText::widthFromCache):
1389         (WebCore::RenderText::trimmedMinMaxWidth):
1390         (WebCore::RenderText::calcMinMaxWidth):
1391         (WebCore::RenderText::width):
1392         * rendering/RenderTextField.cpp:
1393         (WebCore::RenderTextField::calcMinMaxWidth):
1394         * rendering/bidi.cpp:
1395         (WebCore::RenderBlock::tabWidth):
1396         (WebCore::RenderBlock::checkLinesForTextOverflow):
1397         * rendering/render_line.cpp:
1398         (WebCore::EllipsisBox::paint):
1399         * rendering/render_list.cpp:
1400         (WebCore::RenderListMarker::paint):
1401         (WebCore::RenderListMarker::calcMinMaxWidth):
1402         (WebCore::RenderListMarker::getRelativeMarkerRect):
1403
1404 2006-05-10  Justin Garcia  <justin.garcia@apple.com>
1405
1406         Reviewed by darin
1407
1408         * editing/ReplaceSelectionCommand.cpp:
1409         (WebCore::ReplaceSelectionCommand::doApply):
1410         Removed the code to find out if we must later add smart replace whitespace.  We can 
1411         wait until we've done the insertion to figure it out, and the position sampled (startPos)
1412         to make the decision about trailing whitespace was wrong.
1413         Changed the order that work is done during a paste: 1) Insert everything 2) Do one of
1414         the following: a) handle a trailing interchange newline, b) uncollapse the last incoming
1415         br if it has been collapsed because of quirks mode, c) do an end merge 3) Add smart replace
1416         whitespace (2 and 3 were reversed because the end merge must happen before we can know
1417         whether or not we need to add a trailing space).
1418         Don't do an end merge if the last node inserted was a br because the end merge will 
1419         clobber it.
1420         
1421         (WebCore::ReplaceSelectionCommand::removeEndBRIfNeeded):
1422         brs where [br, 0] is at the end of a block and not at the start of a paragraph
1423         are the ones that are collapsed because of quirks mode.
1424
1425 2006-05-10  David Hyatt  <hyatt@apple.com>
1426
1427         Rename isSpace to treatAsSpace.  Move it and the rounding hack function into
1428         Font and make them static methods (inlined in the header).  Make the rounding
1429         hack character table a static member as well.  Remove the redundant space/rounding
1430         functions from FontData.mm.
1431
1432         Reviewed by darin
1433
1434         * platform/Font.cpp:
1435         (WebCore::):
1436         (WebCore::m_finalRoundingWidth):
1437         (WebCore::WidthIterator::advance):
1438         * platform/Font.h:
1439         (WebCore::Font::treatAsSpace):
1440         (WebCore::Font::isRoundingHackCharacter):
1441         * platform/mac/FontData.mm:
1442         (WebCore::overrideLayoutOperation):
1443         (WebCore::createATSULayoutParameters):
1444         (WebCore::initializeWidthIterator):
1445         (WebCore::advanceWidthIterator):
1446         * platform/mac/FontMac.mm:
1447         (WebCore::overrideLayoutOperation):
1448         (WebCore::ATSULayoutParameters::initialize):
1449
1450 2006-05-10  Darin Adler  <darin@apple.com>
1451
1452         * WebCore: Removed an extra WebCore subtree that somehow got checked in.
1453
1454 2006-05-10  David Carson <dacarson@gmail.com>
1455
1456         - Fix for bug 8833. Removed inline keyword from functions declared
1457         in .mm and .cpp files. inline function code needs to reside in the
1458         header file for the linker to find the code. 
1459         http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-9.7
1460
1461         Reviewed by Darin, landed by Timothy.
1462
1463         * platform/Font.cpp:
1464         (WebCore::isSpace):
1465         * platform/mac/FontData.mm:
1466         (WebCore::widthForGlyph):
1467         (WebCore::isRoundingHackCharacter):
1468         (WebCore::glyphForCharacter):
1469
1470 2006-05-10  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1471
1472         Reviewed and landed by Anders.
1473
1474         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8830
1475           REGRESSION: Words render on top of each other when fallback font is used
1476
1477         Already covered by several pixel tests in fast/text
1478
1479         * platform/Font.cpp:
1480         (WebCore::Font::drawSimpleText):
1481
1482 2006-05-10  David Hyatt  <hyatt@apple.com>
1483
1484         Fix for bug 8809, lift the Mac-specific WebTextRenderer code for
1485         drawing and measuring of runs up into the Font class.  The fast code
1486         path is in Font.cpp and is designed to be mostly cross-platform.  The
1487         slow code path is in FontMac.cpp and is Mac-specific.
1488
1489         Reviewed by darin
1490
1491         * WebCore.xcodeproj/project.pbxproj:
1492         * platform/Font.cpp:
1493         (WebCore::isSpace):
1494         (WebCore::):
1495         (WebCore::isRoundingHackCharacter):
1496         (WebCore::m_finalRoundingWidth):
1497         (WebCore::WidthIterator::advance):
1498         (WebCore::WidthIterator::normalizeVoicingMarks):
1499         (WebCore::Font::primaryFont):
1500         (WebCore::Font::setAlwaysUseComplexPath):
1501         (WebCore::Font::canUseGlyphCache):
1502         (WebCore::Font::drawSimpleText):
1503         (WebCore::Font::drawText):
1504         (WebCore::Font::floatWidth):
1505         (WebCore::Font::floatWidthForSimpleText):
1506         * platform/Font.h:
1507         * platform/FontData.h:
1508         (WebCore::FontData::platformData):
1509         * platform/GlyphBuffer.h: Added.
1510         (WebCore::GlyphBuffer::GlyphBuffer):
1511         (WebCore::GlyphBuffer::isEmpty):
1512         (WebCore::GlyphBuffer::size):
1513         (WebCore::GlyphBuffer::glyphs):
1514         (WebCore::GlyphBuffer::advances):
1515         (WebCore::GlyphBuffer::fontDataAt):
1516         (WebCore::GlyphBuffer::swap):
1517         (WebCore::GlyphBuffer::glyphAt):
1518         (WebCore::GlyphBuffer::advanceAt):
1519         (WebCore::GlyphBuffer::add):
1520         * platform/mac/FontData.mm:
1521         (WebCore::isSpace):
1522         (WebCore::isRoundingHackCharacter):
1523         (WebCore::FontData::widthForGlyph):
1524         (WebCore::m_ATSUMirrors):
1525         (WebCore::FontData::xHeight):
1526         (WebCore::FontData::smallCapsFontData):
1527         (WebCore::findSubstituteFont):
1528         (WebCore::rendererForAlternateFont):
1529         (WebCore::findSubstituteRenderer):
1530         (WebCore::FontData::findSubstituteFontData):
1531         (WebCore::computeWidthForSpace):
1532         (WebCore::FontData::updateGlyphMapEntry):
1533         (WebCore::extendGlyphMap):
1534         (WebCore::extendWidthMap):
1535         (WebCore::createATSULayoutParameters):
1536         (WebCore::FontData::glyphForCharacter):
1537         (WebCore::advanceWidthIterator):
1538         (WebCore::shouldUseATSU):
1539         * platform/mac/FontMac.mm:
1540         (WebCore::ATSULayoutParameters::m_padPerSpace):
1541         (WebCore::addDirectionalOverride):
1542         (WebCore::initializeATSUStyle):
1543         (WebCore::overrideLayoutOperation):
1544         (WebCore::ATSULayoutParameters::initialize):
1545         (WebCore::disposeATSULayoutParameters):
1546         (WebCore::Font::drawComplexText):
1547         (WebCore::Font::floatWidthForComplexText):
1548         (WebCore::Font::drawGlyphs):
1549         * platform/mac/WebCoreTextRenderer.mm:
1550         (WebCoreSetAlwaysUseATSU):
1551
1552 2006-05-10  Darin Adler  <darin@apple.com>
1553
1554         - another try at fixing the Windows build
1555
1556         * platform/win/FontWin.cpp: (WebCore::getFontData): Use characters()
1557         instead of unicode().
1558
1559 == Rolled over to ChangeLog-2006-05-10 ==