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