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