Fix a minor bug with the computation of glyph offsets in Cairo/Win32.
[WebKit-https.git] / WebCore / ChangeLog
1 2006-05-24  Dave Hyatt <hyatt@apple.com>
2
3         Fix a bug with the computation of the Cairo glyph offsets
4         on the Win32 code path.
5
6         * ChangeLog:
7         * platform/GlyphBuffer.h:
8         (WebCore::GlyphBuffer::add):
9         * platform/win/FontWin.cpp:
10         (WebCore::Font::drawGlyphs):
11
12 2006-05-23  Dave Hyatt <hyatt@apple.com>
13
14         Disable some code in Cairo that is attempting to clip
15         runs of text to their glyph boundaries, since:
16
17         (a) Why re-measure text again when I just gave you
18         the glyph bounds anyway.
19         (b) It gets the measurements wrong.
20
21         * platform/GlyphBuffer.h:
22         (WebCore::GlyphBuffer::add):
23         * platform/cairo/cairo/src/cairo-surface-fallback.c:
24         (_cairo_surface_fallback_show_glyphs):
25         * platform/cairo/clipping-cleartype-font-bug-patch.txt: Added.
26         * platform/win/FontWin.cpp:
27         (WebCore::Font::drawGlyphs):
28
29 2006-05-23  Timothy Hatcher  <timothy@apple.com>
30
31         Reviewed by Eric.
32
33         Remove the recent idl files from the WebCore target to prevent them
34         from being copied into the framework resources.
35
36         * WebCore.xcodeproj/project.pbxproj:
37
38 2006-05-23  John Sullivan  <sullivan@apple.com>
39
40         Reviewed by Justin Garcia and Levi Weintraub.
41         
42         - fixed Bug 9072: REGRESSION: Misspelling marker incorrect in editing/deleting/delete-and-undo.html
43
44         * dom/Document.cpp:
45         (WebCore::Document::removeMarkers):
46         One more time to get this right, ugh. There is still one case where we don't want to advance the
47         iterator, and that's when we remove a marker and do not insert a replacement marker. So I undid
48         my previous patch, and added it++ to each of the two cases that insert a replacement marker. Now
49         the layout tests pass even with the pixel tests enabled.
50
51 2006-05-23  Dave Hyatt <hyatt@apple.com>
52
53         Do an initial implementation of CookieJar on Win32.  No policy
54         checking yet and the cookies are just always on.
55
56         Reviewed by mjs
57
58         * WebCore.vcproj/WebCore/WebCore.vcproj:
59         * platform/win/CookieJarWin.cpp: Added.
60         (WebCore::setCookies):
61         (WebCore::cookies):
62         (WebCore::cookiesEnabled):
63         * platform/win/TemporaryLinkStubs.cpp:
64
65 2006-05-23  Dave Hyatt <hyatt@apple.com>
66
67         Fix the JS autogeneration for WebCore so that the hashtables
68         are correct on Win32.
69
70         Switch to using GetCharWidthI so that we can obtain widths
71         for glyphs instead of having to obtain them from UChars.
72
73         Reviewed by eric (autogeneration) and maciej (fonts)
74
75         * bindings/scripts/CodeGeneratorJS.pm:
76         * platform/Font.cpp:
77         (WebCore::WidthIterator::advance):
78         * platform/FontData.cpp:
79         (WebCore::m_smallCapsFontData):
80         (WebCore::FontData::widthForGlyph):
81         * platform/FontData.h:
82         * platform/mac/FontDataMac.mm:
83         (-[NSFont WebCore]):
84         * platform/win/FontDataWin.cpp:
85         (WebCore::FontData::platformWidthForGlyph):
86
87 2006-05-23  Levi Weintraub  <lweintraub@apple.com>
88
89         Reviewed by Hyatt.
90
91         Cleaned up changes to markup by adding the non-virtual
92         nodeNamePreservingCase accessor function.
93
94         * dom/Element.cpp:
95         (WebCore::Element::nodeNamePreservingCase):
96         * dom/Element.h:
97         * editing/markup.cpp:
98         (WebCore::startMarkup):
99         (WebCore::endMarkup):
100
101 2006-05-23  John Sullivan  <sullivan@apple.com>
102
103         Reviewed by Anders Carlsson.
104
105         * dom/Document.cpp:
106         (WebCore::Document::removeMarkers):
107         Fix to my previous checkin (which broke a layout test).
108         Advance the iterator position every time through the loop; formerly it was not advanced in the 
109         case where a marker was actually removed, causing an infinite loop in certain cases. Also
110         modified a comment that was confusing the situation by falsely claiming that iterating over a 
111         just-inserted node would always be OK.
112
113 2006-05-23  Anders Carlsson  <acarlsson@apple.com>
114
115         Reviewed by Maciej.
116
117         http://bugzilla.opendarwin.org/show_bug.cgi?id=9017
118         Weather2.css incorrectly treated as JavaScript file @ www.live.com
119         
120         * dom/Element.cpp:
121         (WebCore::Element::getAttribute):
122         (WebCore::Element::setAttribute):
123         (WebCore::Element::removeAttribute):
124         (WebCore::Element::getAttributeNode):
125         (WebCore::Element::hasAttribute):
126         Use new getAttributeItem method.
127         
128         * dom/NamedAttrMap.cpp:
129         (WebCore::NamedAttrMap::getNamedItem):
130         (WebCore::NamedAttrMap::removeNamedItem):
131         Use new getAttributeItem method.
132         
133         (WebCore::NamedAttrMap::getAttributeItem):
134         * dom/NamedAttrMap.h:
135         New method which returns the attribute based on the nodeName.
136
137 2006-05-22  Eric Seidel  <eric@eseidel.com>
138
139         Rubber-stamped by adele.
140
141         * bindings/js/kjs_html.h: simple style cleanup.
142
143 === WebCore-521.10 ===
144
145 2006-05-22  John Sullivan  <sullivan@apple.com>
146
147         Reviewed by Anders Carlsson.
148         
149         - fixed Bug 9038: Rework Document::TextMarker mechanism to not use deprecated data structures
150
151         Changed Document::markersForNode and Document::MarkerMap to use Vector rather than 
152         DeprecatedValueList and DeprecatedValueListIterator.
153         
154         * dom/Document.h:
155         * dom/Document.cpp:
156         (WebCore::Document::addMarker):
157         (WebCore::Document::copyMarkers):
158         (WebCore::Document::removeMarkers):
159         (WebCore::Document::markersForNode):
160         (WebCore::Document::repaintMarkers):
161         (WebCore::Document::shiftMarkers):
162         
163         * rendering/InlineTextBox.cpp:
164         (WebCore::InlineTextBox::paintAllMarkersOfType):
165
166 2006-05-22  Levi Weintraub  <lweintraub@apple.com>
167
168         Reviewed by Eric.
169         
170         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8393
171           <br>s created by createMarkup aren't valid xhtml
172           Fixed uppered output from innerHTML
173
174         * editing/markup.cpp:
175         (WebCore::startMarkup):
176         (WebCore::endMarkup):
177
178 2006-05-21  Dave Hyatt <hyatt@apple.com>
179
180         Fix Win32 bustage.   I forgot to add a bunch of files.
181         Also tweak some existing functions a bit (just cleanup).
182
183         * platform/FontCache.cpp:
184         (WebCore::FontCache::getCachedFontPlatformData):
185         (WebCore::FontCache::getFontData):
186         * platform/FontCache.h:
187         * platform/mac/FontCacheMac.mm:
188         (WebCore::FontCache::createFontPlatformData):
189         * platform/win/FontDataWin.cpp:
190         (WebCore::FontData::platformDestroy):
191         (WebCore::FontData::smallCapsFontData):
192
193 2006-05-21  Adele Peterson  <adele@apple.com>
194
195         Reviewed by Maciej.
196
197         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9016
198         crash loading live.com in TreeShared::ref because accessing RenderTextField::text() can destroy the RenderTextField
199
200         * rendering/RenderTextField.cpp: (WebCore::RenderTextField::text):
201         Reverting recent change to user innerText instead of textContent.  For textareas,
202         we need a better solution than textContent that also takes newlines into account,
203         but this should fix this crasher.
204
205 2006-05-21  Anders Carlsson  <acarlsson@apple.com>
206
207         Fix build.
208         
209         * ForwardingHeaders/wtf/MathExtras.h: Added.
210
211 2006-05-20  Dave Hyatt <hyatt@apple.com>
212
213         Switch on Cairo-based text rendering on Win32.  This is tracked
214         by bug 9019.
215
216         Reviewed by maciej
217
218         * WebCore.vcproj/WebCore/WebCore.vcproj:
219         * config.h:
220         * platform/Font.cpp:
221         (WebCore::WidthIterator::advance):
222         (WebCore::WidthIterator::normalizeVoicingMarks):
223         (WebCore::Font::width):
224         * platform/Font.h:
225         (WebCore::Font::isRoundingHackCharacter):
226         * platform/FontCache.cpp:
227         (WebCore::computeHash):
228         (WebCore::FontPlatformDataCacheKeyTraits::deletedValue):
229         (WebCore::FontPlatformDataCacheKeyTraits::emptyValue):
230         (WebCore::FontDataCacheKeyTraits::deletedValue):
231         (WebCore::FontDataCacheKeyTraits::emptyValue):
232         * platform/FontData.cpp:
233         (WebCore::m_smallCapsFontData):
234         (WebCore::FontData::widthForGlyph):
235         * platform/FontData.h:
236         * platform/FontPlatformData.h: Removed.
237         * platform/GlyphBuffer.h:
238         (WebCore::GlyphBuffer::clear):
239         (WebCore::GlyphBuffer::glyphs):
240         (WebCore::GlyphBuffer::advances):
241         (WebCore::GlyphBuffer::swap):
242         (WebCore::GlyphBuffer::glyphAt):
243         (WebCore::GlyphBuffer::advanceAt):
244         (WebCore::GlyphBuffer::add):
245         * platform/GlyphMap.cpp:
246         (WebCore::GlyphMap::locatePage):
247         * platform/cairo/cairo/src/cairo-win32-font.c:
248         (cairo_win32_scaled_font_select_font):
249         * platform/cairo/font-bug-patch.txt: Added.
250         * platform/mac/FontDataMac.mm:
251         (-[NSFont WebCore]):
252         * platform/mac/FontPlatformData.h: Added.
253         (WebCore::FontPlatformData::FontPlatformData):
254         * platform/win/FontDataWin.cpp: Added.
255         (WebCore::FontData::platformInit):
256         (WebCore::FontData::platformDestroy):
257         (WebCore::FontData::smallCapsFontData):
258         (WebCore::FontData::containsCharacters):
259         (WebCore::FontData::determinePitch):
260         (WebCore::FontData::platformWidthForGlyph):
261         * platform/win/FontPlatformDataWin.cpp:
262         (WebCore::m_size):
263         (WebCore::FontPlatformData::~FontPlatformData):
264         * platform/win/FontWin.cpp:
265         (WebCore::notImplemented):
266         (WebCore::Font::drawGlyphs):
267         (WebCore::Font::selectionRectForComplexText):
268         (WebCore::Font::drawComplexText):
269         (WebCore::Font::floatWidthForComplexText):
270         (WebCore::Font::offsetForPositionForComplexText):
271
272 2006-05-20  Alexey Proskuryakov  <ap@nypop.com>
273
274         Reviewed by Darin.
275
276         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8991
277           REGRESSION: missing or broken CSS custom cursors are displayed as 
278           a missing image icon
279
280         * page/FrameView.cpp:
281         (WebCore::selectCursor): Fallback to CURSOR_AUTO if the image is an error image.
282         * manual-tests/custom-cursors.html: Added.
283
284 2006-05-20  Mitz Pettel  <opendarwin.org@mitzpettel.com>
285
286         Reviewed and landed by ap.
287
288         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9009
289           REGRESSION: ToT crash in WebCore at Zap2it
290
291         Test: fast/table/empty-section-crash.html
292
293         * rendering/RenderTableSection.cpp:
294         (WebCore::RenderTableSection::paint): Return immediately if the section
295         has 0 rows or 0 columns.
296
297 2006-05-19  Levi Weintraub  <lweintraub@apple.com>
298
299         Reviewed by justin.
300         
301         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8931>
302         Drag caret not painted for editable sub-frames
303         
304         Moved the drag caret out of Frame and into Page.
305         Only the Frame that contains the drag caret will paint it.
306
307         * editing/SelectionController.h:
308         * page/Frame.cpp:
309         (WebCore::Frame::dragCaret):
310         (WebCore::Frame::setDragCaret):
311         (WebCore::Frame::paintDragCaret):
312         * page/FramePrivate.h:
313         * page/Page.cpp:
314         (WebCore::Page::dragCaret):
315         (WebCore::Page::setDragCaret):
316         * page/Page.h:
317
318 2006-05-19  Alice Liu  <alice.liu@apple.com>
319
320         Reviewed by Adele.
321
322         * html/HTMLButtonElement.idl:
323         added support for HTMLButtonElement.click()
324
325 2006-05-19  Geoffrey Garen  <ggaren@apple.com>
326
327         Reviewed by Eric.
328
329         - Fixed non-autogenerated global constructors to match autogenerated
330         ones and FF. (Found this bug while @ the GOOG.)
331
332         (1) They're no longer read-only, so they can be overridden.
333         (2) They now have the default object prototype, so they can do things 
334         like 'toString' and 'valueOf', necessary for general functionality,
335         including my layout test.
336         (3) Their prototype properties are now enumerable and not read-only.
337         
338         * bindings/js/JSDOMParser.cpp:
339         (KJS::DOMParserConstructorImp::DOMParserConstructorImp):
340         * bindings/js/JSXMLHttpRequest.cpp:
341         (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
342         * bindings/js/JSXMLHttpRequest.h:
343         * bindings/js/JSXMLSerializer.cpp:
344         (KJS::XMLSerializerConstructorImp::XMLSerializerConstructorImp):
345         * bindings/js/JSXSLTProcessor.cpp:
346         (KJS::XSLTProcessorConstructorImp::XSLTProcessorConstructorImp):
347         * bindings/js/kjs_html.cpp:
348         (KJS::OptionConstructorImp::OptionConstructorImp):
349         (KJS::ImageConstructorImp::ImageConstructorImp):
350         * bindings/js/kjs_window.cpp:
351
352 2006-05-19  Anders Carlsson  <acarlsson@apple.com>
353
354         Reviewed by Eric.
355
356         http://bugzilla.opendarwin.org/show_bug.cgi?id=8983
357         Autogenerate another 22 HTML classes
358         
359         Already covered by existing DOM tests.
360
361         * DerivedSources.make:
362         * WebCore.vcproj/WebCore/WebCore.vcproj:
363         * WebCore.xcodeproj/project.pbxproj:
364         Add new IDL files and generated sources.
365         
366         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
367         (WebCore::JSCanvasRenderingContext2D::drawImage):
368         (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
369         (WebCore::JSCanvasRenderingContext2D::createPattern):
370         Use JSHTMLImageElement::info in inherits.
371         
372         * bindings/js/JSHTMLElementWrapperFactory.cpp:
373         (WebCore::createJSWrapper):
374         Add macros for the functions and the code to populate the hash set.
375         
376         * bindings/js/kjs_html.cpp:
377         (KJS::):
378         (KJS::JSHTMLElement::classInfo):
379         (KJS::JSHTMLElement::accessors):
380         (KJS::HTMLElementFunction::callAsFunction):
381         * bindings/js/kjs_html.h:
382         (KJS::JSHTMLElement::):
383         Delete old cruft.
384         
385         * bindings/scripts/CodeGeneratorJS.pm:
386         Add support for creating a JS object from a HTMLCollection.
387         
388         * html/HTMLAreaElement.idl: Added.
389         * html/HTMLBRElement.idl: Added.
390         * html/HTMLBaseFontElement.idl: Added.
391         * html/HTMLBlockquoteElement.idl: Added.
392         
393         * html/HTMLBodyElement.cpp:
394         (WebCore::HTMLBodyElement::scrollLeft):
395         (WebCore::HTMLBodyElement::setScrollLeft):
396         (WebCore::HTMLBodyElement::scrollTop):
397         (WebCore::HTMLBodyElement::setScrollTop):
398         (WebCore::HTMLBodyElement::scrollHeight):
399         (WebCore::HTMLBodyElement::scrollWidth):        
400         * html/HTMLBodyElement.h:
401         Add new functions that used to be implemented in kjs_html.cpp
402         
403         * html/HTMLBodyElement.idl: Added.
404         * html/HTMLFieldSetElement.idl: Added.
405         * html/HTMLFontElement.idl: Added.
406         * html/HTMLHRElement.idl: Added.
407         * html/HTMLHeadingElement.idl: Added.
408         * html/HTMLImageElement.idl: Added.
409         * html/HTMLIsIndexElement.idl: Added.
410         * html/HTMLLIElement.idl: Added.
411         * html/HTMLLabelElement.idl: Added.
412         * html/HTMLLegendElement.idl: Added.
413         * html/HTMLMapElement.idl: Added.
414         * html/HTMLMenuElement.idl: Added.
415         * html/HTMLModElement.idl: Added.
416         * html/HTMLParagraphElement.idl: Added.
417         * html/HTMLParamElement.idl: Added.
418         * html/HTMLPreElement.idl: Added.
419         * html/HTMLQuoteElement.idl: Added.
420         * html/HTMLScriptElement.idl: Added.
421
422 2006-05-18  David Hyatt  <hyatt@apple.com>
423
424         Turn off responding to font changes while running.  It doesn't work
425         right anyway.
426
427         Reviewed by darin
428
429         * platform/FontCache.cpp:
430         (WebCore::FontCache::getCachedFontPlatformData):
431         * platform/FontCache.h:
432         * platform/GlyphMap.h:
433         (WebCore::GlyphMap::~GlyphMap):
434         * platform/GlyphWidthMap.h:
435         (WebCore::GlyphWidthMap::~GlyphWidthMap):
436         * platform/mac/FontCacheMac.mm:
437         (WebCore::FontCache::platformInit):
438
439 2006-05-18  Darin Adler  <darin@apple.com>
440
441         - try to fix the Windows build
442
443         * platform/TextEncoding.h: Changed a ";" to a ",".
444         * WebCore.vcproj/WebCore/WebCore.vcproj: Removed
445         JSCanvasRenderingContext2DBase.cpp and
446         JSCanvasRenderingContext2DBase.h. Added
447         JSCanvasRenderingContext2DCustom.cpp.
448
449 2006-05-18  Sam Weinig  <sam.weinig@gmail.com>
450
451         Reviewed by Hyatt.
452
453         Fix for <http://bugzilla.opendarwin.org/show_bug.cgi?id=8896>
454         Bug 8896: Absolutely positioned elements should use their parent's
455         direction when left, right and width are auto in quirks mode.
456
457         Use the parent's direction instead of the containing
458         block's in quirks mode for absolute positioning to match
459         WinIE.
460
461         * rendering/RenderBox.cpp:
462         (WebCore::RenderBox::calcAbsoluteHorizontal):
463         (WebCore::RenderBox::calcAbsoluteHorizontalValues):
464         (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
465         * rendering/RenderBox.h:
466
467 2006-05-18  Mitz Pettel  <opendarwin.org@mitzpettel.com>
468
469         Reviewed and tweaked (way too much) by Darin.
470
471         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8937
472           EncodingMap uses 0 as its empty value but 0 is a valid TextEncodingID
473
474         * platform/CharsetNames.cpp:
475         (WebCore::TextEncodingIDHashTraits::emptyValue): Added a non-zero empty value,
476         InvalidEncoding, and used InvalidEncoding2 for the deleted value.
477         (WebCore::buildCharsetMaps): Added an assertion that the deleted and empty
478         values are not valid encodings.
479         * platform/TextEncoding.h: Defined InvalidEncoding2.
480
481 2006-05-18  David Hyatt  <hyatt@apple.com>
482
483         Horrible glyph map performance regression fix.
484         The initial page of the map was being rebuilt over and over again.
485
486         Reviewed by andersca
487
488         * platform/GlyphMap.cpp:
489         (WebCore::GlyphMap::locatePage):
490         * platform/GlyphWidthMap.cpp:
491         (WebCore::GlyphWidthMap::locatePage):
492
493 2006-05-18  Anders Carlsson  <acarlsson@apple.com>
494
495         Reviewed by Darin.
496
497         http://bugzilla.opendarwin.org/show_bug.cgi?id=8964
498         Autogenerate more HTML classes
499         
500         * DerivedSources.make:
501         * WebCore.xcodeproj/project.pbxproj:
502         Add new files.
503         
504         * bindings/js/JSHTMLElementWrapperFactory.cpp:
505         (WebCore::createAnchorWrapper):
506         (WebCore::createAppletWrapper):
507         (WebCore::createDivWrapper):
508         (WebCore::createDirectoryWrapper):
509         (WebCore::createDListWrapper):
510         (WebCore::createHtmlWrapper):
511         (WebCore::createOListWrapper):
512         (WebCore::createUListWrapper):
513         (WebCore::createJSWrapper):
514         Add wrappers.
515         
516         * bindings/js/kjs_html.cpp:
517         (KJS::):
518         (KJS::JSHTMLElement::classInfo):
519         (KJS::JSHTMLElement::accessors):
520         (KJS::HTMLElementFunction::callAsFunction):
521         * bindings/js/kjs_html.h:
522         (KJS::JSHTMLElement::):
523         Delete the old implementations.
524         
525         * html/HTMLAnchorElement.cpp:
526         (WebCore::HTMLAnchorElement::hash):
527         (WebCore::HTMLAnchorElement::host):
528         (WebCore::HTMLAnchorElement::hostname):
529         (WebCore::HTMLAnchorElement::pathname):
530         (WebCore::HTMLAnchorElement::port):
531         (WebCore::HTMLAnchorElement::protocol):
532         (WebCore::HTMLAnchorElement::search):
533         (WebCore::HTMLAnchorElement::text):
534         * html/HTMLAnchorElement.h:
535         Add some new accessor methods which used to be in kjs_html.cpp.
536         
537         * html/HTMLAnchorElement.idl: Added.
538         * html/HTMLAppletElement.idl: Added.
539         * html/HTMLDListElement.idl: Added.
540         * html/HTMLDirectoryElement.idl: Added.
541         * html/HTMLDivElement.idl: Added.
542         * html/HTMLHtmlElement.idl: Added.
543         * html/HTMLOListElement.idl: Added.
544         * html/HTMLUListElement.idl: Added.
545
546 2006-05-17  David Hyatt  <hyatt@apple.com>
547
548         Convert the width map for glyphs into the same new HashMap-style as the
549         glyph map for characters.
550
551         * WebCore.xcodeproj/project.pbxproj:
552         * platform/FontData.cpp:
553         (WebCore::FontData::~FontData):
554         (WebCore::FontData::widthForGlyph):
555         * platform/FontData.h:
556         * platform/GlyphWidthMap.cpp: Added.
557         (WebCore::GlyphWidthMap::widthForGlyph):
558         (WebCore::GlyphWidthMap::setWidthForGlyph):
559         (WebCore::GlyphWidthMap::locatePage):
560         * platform/GlyphWidthMap.h: Added.
561         (WebCore::GlyphWidthMap::GlyphWidthMap):
562         (WebCore::GlyphWidthMap::~GlyphWidthMap):
563         (WebCore::GlyphWidthMap::GlyphWidthPage::widthForGlyph):
564         (WebCore::GlyphWidthMap::GlyphWidthPage::setWidthForGlyph):
565         (WebCore::GlyphWidthMap::GlyphWidthPage::setWidthForIndex):
566
567 2006-05-17  David Hyatt  <hyatt@apple.com>
568
569         Rename FontData.mm to FontData.cpp, since it has no obj-c in it.
570
571         * WebCore.xcodeproj/project.pbxproj:
572         * platform/FontData.cpp: Added.
573
574 2006-05-17  David Hyatt  <hyatt@apple.com>
575
576         Split FontData.mm into platform-specific and cross-platform pieces.
577
578         Reviewed by andersca
579
580         * WebCore.xcodeproj/project.pbxproj:
581         * platform/FontData.h:
582         (WebCore::FontData::xHeight):
583         * platform/mac/FontData.mm:
584         (WebCore::FontData::widthForGlyph):
585         (WebCore::m_smallCapsFontData):
586         (WebCore::FontData::~FontData):
587         (WebCore::extendWidthMap):
588
589 2006-05-17  John Sullivan  <sullivan@apple.com>
590
591         Reviewed by Darin Adler
592         
593         Improvement to my previous patch, suggested by Darin
594
595         * dom/Document.cpp:
596         (WebCore::Document::repaintMarkers):
597         new method, similar in structure to removeMarkers but just repaints each node that
598         has a marker of the specified type
599         * dom/Document.h:
600         declare new method, and tweak style in related method declarations
601         
602         * page/Frame.cpp:
603         (WebCore::Frame::setMarkedTextMatchesAreHighlighted):
604         if the value changes, call repaintMarkers
605
606 2006-05-17  Eric Seidel  <eseidel@apple.com>
607
608         Reviewed by andersca.
609
610         Autogenerate button, optgroup, option, input and textarea js bindings
611         http://bugzilla.opendarwin.org/show_bug.cgi?id=8953
612
613         * DerivedSources.make:
614         * WebCore.xcodeproj/project.pbxproj:
615         * bindings/js/JSHTMLElementWrapperFactory.cpp:
616         (WebCore::createButtonWrapper):
617         (WebCore::createInputWrapper):
618         (WebCore::createOptGroupWrapper):
619         (WebCore::createOptionWrapper):
620         (WebCore::createTextAreaWrapper):
621         (WebCore::createJSWrapper):
622         * bindings/js/JSHTMLInputElementBase.cpp: Added.
623         (WebCore::JSHTMLInputElementBaseProtoFunc::callAsFunction):
624         (WebCore::):
625         (WebCore::JSHTMLInputElementBase::JSHTMLInputElementBase):
626         (WebCore::JSHTMLInputElementBase::getOwnPropertySlot):
627         * bindings/js/JSHTMLInputElementBase.h: Added.
628         (WebCore::JSHTMLInputElementBase::classInfo):
629         (WebCore::JSHTMLInputElementBase::):
630         (WebCore::JSHTMLInputElementBase::impl):
631         * bindings/js/JSHTMLOptionElementConstructor.cpp: Added.
632         (WebCore::JSHTMLOptionElementConstructor::JSHTMLOptionElementConstructor):
633         (WebCore::JSHTMLOptionElementConstructor::implementsConstruct):
634         (WebCore::JSHTMLOptionElementConstructor::construct):
635         * bindings/js/JSHTMLOptionElementConstructor.h: Added.
636         * bindings/js/kjs_domnode.h:
637         * bindings/js/kjs_html.cpp:
638         (KJS::):
639         (KJS::JSHTMLElement::classInfo):
640         (KJS::JSHTMLElement::accessors):
641         (KJS::JSHTMLElement::getOwnPropertySlot):
642         (KJS::HTMLElementFunction::callAsFunction):
643         (KJS::JSHTMLElement::put):
644         (KJS::JSHTMLElement::htmlSetter):
645         * bindings/js/kjs_html.h:
646         (KJS::JSHTMLElement::):
647         * bindings/js/kjs_window.cpp:
648         (KJS::Window::getValueProperty):
649         * bindings/scripts/CodeGeneratorJS.pm:
650         * html/HTMLButtonElement.idl: Added.
651         * html/HTMLInputElement.idl: Added.
652         * html/HTMLOptGroupElement.idl: Added.
653         * html/HTMLOptionElement.idl: Added.
654         * html/HTMLTextAreaElement.idl: Added.
655
656 2006-05-17  Adele Peterson  <adele@apple.com>
657
658         Reviewed by Hyatt.
659
660         First step for http://bugzilla.opendarwin.org/show_bug.cgi?id=8948
661         Switch to use new text field implementation for <textarea>
662
663         New textareas can be turned on by setting -webkit-appearance:textarea.
664
665         Tests:
666         * LayoutTests/fast/block/float/032.html - Updated results.
667
668         * bridge/mac/FrameMac.h: Added textDidChangeinTextArea to send notification over the bridge to form delegate.
669         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::textDidChangeInTextArea): ditto.
670         * page/Frame.cpp: (WebCore::Frame::textDidChangeInTextArea): ditto.
671         * page/Frame.h: ditto.
672
673         * css/CSSValueKeywords.in: Added textarea.
674         * css/cssparser.cpp: (WebCore::CSSParser::parseValue): Updates to check for textarea.
675         * css/html4.css: Added style for textarea.  Leaved background-color and appearance values commented out.
676         * rendering/render_style.h: (WebCore::): Added TextAreaAppearance.
677
678         * rendering/RenderTheme.cpp:
679         (WebCore::RenderTheme::adjustStyle): Updated for textarea.
680         (WebCore::RenderTheme::paint): ditto.
681         (WebCore::RenderTheme::paintBorderOnly): ditto.
682         (WebCore::RenderTheme::isControlStyled): ditto.
683         (WebCore::RenderTheme::supportsFocusRing): ditto.
684         (WebCore::RenderTheme::adjustTextFieldStyle): ditto.
685         (WebCore::RenderTheme::adjustTextAreaStyle): ditto.
686         * rendering/RenderTheme.h: (WebCore::RenderTheme::paintTextArea): Added.
687         * rendering/RenderThemeMac.h: Added adjustTextAreaStyle.
688         Note- I didn't add a paintTextArea function for RenderThemeMac, since we can just paint the border 
689         specified in html4.css to match the NSTextView border.  Added a paintTextArea function to the Windows
690         theme can override that border.
691         * rendering/RenderThemeMac.mm:
692         (WebCore::RenderThemeMac::isControlStyled): Updated for textarea.
693         (WebCore::RenderThemeMac::adjustTextAreaStyle): ditto.
694
695         * html/HTMLGenericFormElement.cpp: (WebCore::HTMLGenericFormElement::HTMLGenericFormElement):
696         Moved m_valueMatchesRenderer and its setters and getters into this class so HTMLInputElement and
697         HTMLTextArea can share.
698         * html/HTMLGenericFormElement.h:
699         (WebCore::HTMLGenericFormElement::valueMatchesRenderer): Added.
700         (WebCore::HTMLGenericFormElement::setValueMatchesRenderer): Added.
701         * html/HTMLInputElement.cpp:
702         (WebCore::HTMLInputElement::init): Remove m_valueMatchesRenderer intialization.
703         (WebCore::HTMLInputElement::isKeyboardFocusable): Updated spelling.
704         (WebCore::HTMLInputElement::createRenderer): Pass multiLine bool to RenderTextField constructor.
705         (WebCore::HTMLInputElement::parseMappedAttribute): Use setValueMatchesRenderer instead of m_valueMatchesRenderer.
706         (WebCore::HTMLInputElement::detach): ditto.
707         (WebCore::HTMLInputElement::setValue): ditto.
708         (WebCore::HTMLInputElement::setValueFromRenderer): ditto.
709         * html/HTMLInputElement.h: Remove setValueMatchesRenderer and valueMatchesRenderer and m_valueMatchesRenderer.
710         * html/HTMLTextAreaElement.cpp:
711         (WebCore::HTMLTextAreaElement::HTMLTextAreaElement): Calls setValueMatchesRenderer to intialize m_valueMatchesRenderer.
712         (WebCore::HTMLTextAreaElement::selectionStart): Uses appearance to determine which renderer to use.
713         (WebCore::HTMLTextAreaElement::selectionEnd): ditto.
714         (WebCore::HTMLTextAreaElement::setSelectionStart): ditto.
715         (WebCore::HTMLTextAreaElement::setSelectionEnd): ditto.
716         (WebCore::HTMLTextAreaElement::select): ditto.
717         (WebCore::HTMLTextAreaElement::setSelectionRange): ditto.
718         (WebCore::HTMLTextAreaElement::createRenderer): ditto.
719         (WebCore::HTMLTextAreaElement::appendFormData): ditto.
720         (WebCore::HTMLTextAreaElement::updateValue): ditto.
721         (WebCore::HTMLTextAreaElement::isKeyboardFocusable): Added.
722         (WebCore::HTMLTextAreaElement::isMouseFocusable): Added.
723         (WebCore::HTMLTextAreaElement::focus): Added.
724         (WebCore::HTMLTextAreaElement::defaultEventHandler): Added to forward events to the inner div.
725         (WebCore::HTMLTextAreaElement::setValue): Calls setValueMatchesRenderer.
726         * html/HTMLTextAreaElement.h: Added defaultEventHandler, isMouseFocusable, isKeyboardFocusable, and focus methods.
727         Removed invalidateValue and m_valueMatchesRenderer since those are now handled in the base class.
728         * html/HTMLTextFieldInnerElement.cpp: (WebCore::HTMLTextFieldInnerElement::defaultEventHandler):
729         Updated to handle textareas.
730         * rendering/RenderTextArea.cpp: (WebCore::RenderTextArea::valueChanged):
731         Calls setValueMatchesRenderer(false) instead of invalidateValue.
732
733         * rendering/RenderTextField.h: Changed to be a RenderFlexibleBox instead of a RenderBlock.
734         This was necessary to get the inner div's height to grow and shrink with the size of the textarea.
735         Added m_multiLine bool, and calcHeight, canHaveChildren, baselinePosition, isTextArea, textWithHardLineBreaks, selectionChanged.
736         (WebCore::RenderTextField::canHaveChildren): Returns false now so that no renderer gets created for
737         the textarea's child text node for its initial contents.
738         (WebCore::RenderTextField::isTextField): Returns true if m_multiLine is false.
739         (WebCore::RenderTextField::isTextArea): Returns true if m_multiLine is true.
740         * rendering/RenderTextField.cpp:
741         (WebCore::RenderTextField::RenderTextField):  Initializes m_multiLine.
742         (WebCore::RenderTextField::~RenderTextField): Notifies HTMLTextAreaElement that the renderer is being destroyed so the value gets updated.
743         (WebCore::RenderTextField::setStyle): Makes sure there's no overflow clip on the RenderTextField, since we're handling overflow on the inner div.
744         (WebCore::RenderTextField::createDivStyle): Sets white-space, box-flex, overflow, word-wrap styles needed for text area.
745         (WebCore::RenderTextField::updateFromElement): Updated for textarea elements.
746         (WebCore::RenderTextField::setSelectionRange): Optimized caret case by checking to see if start is equal to end before calculating
747         the same VisiblePosition twice.
748         (WebCore::RenderTextField::subtreeHasChanged): Updated for textarea elements.
749         (WebCore::RenderTextField::text): Use innerText so newlines are considered.
750         (WebCore::RenderTextField::textWithHardLineBreaks): Added.  Not implemented yet. Just calls text method.
751         (WebCore::RenderTextField::calcHeight): Added. Sets initial height based on specified number of rows, and then calls the base class.
752         (WebCore::RenderTextField::baselinePosition): Added. Unlike text fields, textareas align to the bottom.
753         (WebCore::RenderTextField::calcMinMaxWidth): Updated for textareas.
754         (WebCore::RenderTextField::selectionChanged): Added. Not implemented yet.
755
756 2006-05-17  David Hyatt  <hyatt@apple.com>
757
758         Fix for 8954, separate the glyph map out into its own files and make it
759         cross-platform.
760
761         Reviewed by darin
762
763         * WebCore.xcodeproj/project.pbxproj:
764         * platform/Font.cpp:
765         (WebCore::WidthIterator::advance):
766         * platform/FontData.h:
767         (WebCore::FontData::glyphDataForCharacter):
768         (WebCore::FontData::setGlyphDataForCharacter):
769         * platform/GlyphMap.cpp: Added.
770         (WebCore::GlyphMap::glyphDataForCharacter):
771         (WebCore::GlyphMap::setGlyphDataForCharacter):
772         (WebCore::GlyphMap::locatePage):
773         * platform/GlyphMap.h: Added.
774         (WebCore::GlyphMap::GlyphMap):
775         (WebCore::GlyphMap::~GlyphMap):
776         (WebCore::GlyphMap::GlyphPage::glyphDataForCharacter):
777         (WebCore::GlyphMap::GlyphPage::setGlyphDataForCharacter):
778         (WebCore::GlyphMap::GlyphPage::setGlyphDataForIndex):
779         * platform/mac/FontData.mm:
780         (-[NSFont WebCore]):
781         (WidthMap::m_ATSUMirrors):
782         (WidthMap::FontData::~FontData):
783         (WidthMap::FontData::xHeight):
784         (WidthMap::FontData::platformInit):
785         (WidthMap::extendWidthMap):
786         * platform/mac/GlyphMapMac.cpp: Added.
787         (WebCore::GlyphMap::fillPage):
788         * platform/mac/WebCoreSystemInterface.h:
789
790 2006-05-17  Anders Carlsson  <acarlsson@apple.com>
791
792         Reviewed by Maciej.
793
794         http://bugzilla.opendarwin.org/show_bug.cgi?id=8958
795         Should be able to have custom implementations for JS methods
796         
797         * DerivedSources.make:
798         * WebCore.xcodeproj/project.pbxproj:
799         * bindings/js/JSCanvasRenderingContext2DBase.cpp: Removed.
800         * bindings/js/JSCanvasRenderingContext2DBase.h: Removed.
801         * bindings/js/JSCanvasRenderingContext2DCustom.cpp: Added.
802         Remove JSCanvasRenderingContext2DBase and add 
803         JSCanvasRenderingContext2DCustom with custom implementations.
804         
805         (WebCore::toJS):
806         (WebCore::toHTMLCanvasStyle):
807         (WebCore::JSCanvasRenderingContext2D::strokeStyle):
808         (WebCore::JSCanvasRenderingContext2D::setStrokeStyle):
809         (WebCore::JSCanvasRenderingContext2D::fillStyle):
810         (WebCore::JSCanvasRenderingContext2D::setFillStyle):
811         (WebCore::JSCanvasRenderingContext2D::setFillColor):
812         (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
813         (WebCore::JSCanvasRenderingContext2D::strokeRect):
814         (WebCore::JSCanvasRenderingContext2D::drawImage):
815         (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
816         (WebCore::JSCanvasRenderingContext2D::setShadow):
817         (WebCore::JSCanvasRenderingContext2D::createPattern):
818         Move implementations from JSCanvasRenderingContext2DBase.
819         
820         * bindings/scripts/CodeGeneratorJS.pm:
821         Add new "Custom" extended attribute for functions and attributes. When a function or 
822         attribute has this attribute, a custom implementation is called instead of calling down to
823         the DOM object.
824         
825         * html/CanvasRenderingContext2D.idl:
826         Add bunch of custom attributes and functions.
827
828 2006-05-17  John Sullivan  <sullivan@apple.com>
829
830         Reviewed by Maciej.
831         
832         First step towards making text-matching mechanism more flexible; now caller can 
833         control whether or not the matches are highlighted.
834
835         * bridge/mac/WebCoreFrameBridge.h:
836         * bridge/mac/WebCoreFrameBridge.mm:
837         (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:]):
838         renamed from highlightAllMatchesForString:
839         (-[WebCoreFrameBridge markedTextMatchesAreHighlighted]):
840         new getter method
841         (-[WebCoreFrameBridge setMarkedTextMatchesAreHighlighted:]):
842         new setter method
843         (-[WebCoreFrameBridge unmarkAllTextMatches]):
844         renamed from clearHighlightedMatches
845         
846         * page/Frame.h:
847         * page/Frame.cpp:
848         (WebCore::Frame::markAllMatchesForText):
849         renamed from highlightAllMatchesForString
850         (WebCore::Ferame::markedTextMatchesAreHighlighted):
851         new getter method, uses boolean ivar in FramePrivate
852         (WebCore::Frame::setMarkedTextMatchesAreHighlighted):
853         new setter method, uses boolean ivar in FramePrivate
854         
855         * page/FramePrivate.h:
856         (WebCore::FramePrivate::FramePrivate):
857         added boolean ivar m_highlightTextMatches, initialized to 0
858         
859         * rendering/InlineTextBox.cpp:
860         (WebCore::InlineTextBox::paint):
861         respect markedTextMatchesAreHighlighted
862
863         * WebCore.xcodeproj/project.pbxproj:
864         newer Xcode removed some obsolete settings
865        
866 2006-05-17  Adele Peterson  <adele@apple.com>
867
868         Reviewed by Beth.
869
870         * editing/htmlediting.cpp: (WebCore::editingIgnoresContent):
871         Reverting change that Darin made a few weeks ago.  He was trying
872         to make editingIgnoresContent return true for the new text fields, but the code
873         actually didn't change that result.  When the new text fields actually do return
874         true for editingIgnoresContent, other editing problems are exposed. For example,
875         moving the cursor around an editable area that contains a text field will cross the
876         text field boundary and descend into the shadow tree.  So for now, we'll revert this
877         change.
878
879 2006-05-17  Mitz Pettel  <opendarwin.org@mitzpettel.com>
880
881         Reviewed by Maciej, tweaked by Darin.
882
883         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8951
884           AtomicString hash corrupted by high-bit Latin-1
885
886         Test: fast/encoding/high-bit-latin1.html
887
888         * platform/AtomicString.cpp: (WebCore::CStringTranslator::equal): Use an
889         unsigned char local.
890         * platform/StringImpl.cpp: (WebCore::StringImpl::init): Ditto.
891
892 2006-05-17  Rob Buis  <buis@kde.org>
893
894         Reviewed by Maciej.
895
896         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7492
897         CSS attribute selectors fail when the setAttribute() method is used
898         to create an attribute and the attribute name is not Class or ID.
899
900         Keep track of attributes used in attribute selectors to
901         check after setAttribute whether a style recalc is needed.
902
903         Test: fast/css/selector-set-attribute.html
904
905         * css/cssstyleselector.cpp:
906         (WebCore::CSSStyleSelector::checkOneSelector):
907         (WebCore::CSSStyleSelector::hasSelectorForAttribute):
908         * css/cssstyleselector.h:
909         * dom/StyledElement.cpp:
910         (WebCore::StyledElement::attributeChanged):
911
912 2006-05-17  Rob Buis  <buis@kde.org>
913
914         Reviewed by Darin.
915
916         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=5264
917         document.createElementNS() should not allow to insert a second <html> element
918
919         Do extra checks for document nodes to detect multiple document elements
920         and document types.
921
922         Test: fast/dom/createDocumentType2.html
923         Test: fast/dom/createElementNS.html
924
925         * dom/Document.cpp:
926         (WebCore::Document::childTypeAllowed):
927         * dom/Document.h:
928
929 2006-05-17  Anders Carlsson  <acarlsson@apple.com>
930
931         Reviewed by Darin.
932
933         * DerivedSources.make:
934         Conditionally generate the SVG and XPath related files based on the value of 
935         FEATURE_DEFINES. Also, pass FEATURE_DEFINES to the bindings generator.
936         
937         * WebCore.xcodeproj/project.pbxproj:
938         Add FEATURE_DEFINES as a toplevel build setting and set it to "SVG_SUPPORT XPATH_SUPPORT"
939         to keep SVG and XPath support turned on. Add FEATURE_DEFINES to the CPP defines.
940         
941         * bindings/js/kjs_binding.cpp:
942         (KJS::setDOMException):
943         Add #ifdefs around the XPath code.
944         
945         * bindings/scripts/CodeGeneratorJS.pm:
946         Add "Conditional" extended attribute for interfaces. If this is set, the generated code will be
947         surrounded by an #if.
948         
949         * bindings/scripts/IDLParser.pm:
950         Pass the define flags on to the preprocessor.
951         
952         * bindings/scripts/generate-bindings.pl:
953         Add a --defines property and pass it on to the parser.
954         
955         * css/cssstyleselector.h:
956         Add DeprecatedString.h include.
957         
958         * dom/Document.idl:
959         Put back #if around the XPath functions
960         
961         * page/DOMWindow.idl:
962         Put #if around the XPath constructors
963         
964         * xpath/XPathEvaluator.idl:
965         * xpath/XPathExpression.idl:
966         * xpath/XPathNSResolver.cpp:
967         * xpath/XPathNSResolver.idl:
968         * xpath/XPathNamespace.cpp:
969         * xpath/XPathResult.idl:
970         Add "Conditional=XPATH" to all interfaces.
971         
972 2006-05-16  Darin Adler  <darin@apple.com>
973
974         Reviewed by Anders.
975
976         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8940
977           remove extra copy of image code
978
979         * WebCore.xcodeproj/project.pbxproj: Removed WebCoreImageRenderer.h.
980         * platform/mac/WebCoreImageRenderer.h: Removed.
981
982         * bridge/mac/WebCoreFrameBridge.h: Added supportedImageResourceMIMETypes.
983         Like supportedImageMIMETypes, but includes PDF and PostScript.
984         * bridge/mac/WebCoreFrameBridge.mm:
985         (+[WebCoreFrameBridge supportedImageResourceMIMETypes]): Added.
986         Has code that came from -[WebImageRendererFactory supportedMIMETypes].
987         (+[WebCoreFrameBridge supportedImageMIMETypes]):
988
989         * platform/mac/ImageMac.mm:
990         (WebCore::Image::supportsType): Instead of calling the old
991         -[WebCoreImageRendererFactory supportedMIMETypes], call the new
992         +[WebCoreFrameBridge supportedImageResourceMIMETypes].
993         (WebCore::Image::drawTiled): Use wkSetPatternPhaseInUserSpace instead of
994         the WebCoreImageRendererFactory.
995
996         * platform/mac/ClipboardMac.mm: Removed an unneeded include of
997         WebCoreImageRenderer.h.
998
999         * platform/mac/WebCoreImageRendererFactory.h: Removed everything except
1000         for the one remaining method, imageDataForName:, which gets resources
1001         from the WebKit localized resources. We should figure out how to remove
1002         that one too later.
1003         * platform/mac/WebCoreImageRendererFactory.m: Ditto.
1004
1005         * platform/mac/WebCoreSystemInterface.h: Added some new calls.
1006         * platform/mac/WebCoreSystemInterface.mm: Ditto.
1007         * WebCore.exp: Ditto.
1008
1009         * platform/cairo/ImageCairo.cpp: Moved a stub to the stubs file. If it's
1010         here it has to have a FIXME comment and also it contains a big commented-out
1011         pile of code. Better to have it in the stubs file with all the other stubs.
1012         * platform/win/TemporaryLinkStubs.cpp: (Image::drawTiled): Put stub here
1013         instead of having it in ImageCairo.cpp.
1014
1015 2006-05-16  Anders Carlsson  <acarlsson@apple.com>
1016
1017         Reviewed by Dave Hyatt.
1018
1019         http://bugzilla.opendarwin.org/show_bug.cgi?id=8941
1020         document.cookie undefined for documents of type text/javascript
1021         
1022         * loader/TextDocument.cpp:
1023         (WebCore::TextDocument::TextDocument):
1024         * loader/TextDocument.h:
1025         Inherit from HTMLDocument.
1026
1027 2006-05-16  Darin Adler  <darin@apple.com>
1028
1029         Reviewed by Hyatt.
1030
1031         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8898
1032           REGRESSION: Attempting to right-click image in own tab on website causes crash
1033         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8919
1034           REGRESSION: image could not be dragged, subsequent click-drag activity caused crash
1035
1036         * bridge/mac/WebCoreFrameBridge.mm:
1037         (-[WebCoreFrameBridge domain]): Removed unneeded check of isHTMLDocument.
1038         (-[WebCoreFrameBridge getData:andResponse:forURL:]): Handle document() of 0.
1039         (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]): Ditto.
1040
1041 2006-05-16  Eric Seidel  <eseidel@apple.com>
1042
1043         Reviewed by andersca.
1044
1045         Autogenerate BASE, HEAD, LINK, STYLE and TITLE JS bindings.
1046
1047         Already covered by existing dom tests.
1048
1049         * DerivedSources.make:
1050         * WebCore.xcodeproj/project.pbxproj:
1051         * bindings/js/JSHTMLElementWrapperFactory.cpp:
1052         (WebCore::createBaseWrapper):
1053         (WebCore::createHeadWrapper):
1054         (WebCore::createLinkWrapper):
1055         (WebCore::createStyleWrapper):
1056         (WebCore::createTitleWrapper):
1057         (WebCore::createJSWrapper):
1058         * bindings/js/kjs_html.cpp:
1059         (KJS::):
1060         (KJS::JSHTMLElement::classInfo):
1061         (KJS::JSHTMLElement::accessors):
1062         * bindings/js/kjs_html.h:
1063         * html/HTMLBaseElement.idl: Added.
1064         * html/HTMLHeadElement.idl: Added.
1065         * html/HTMLLinkElement.idl: Added.
1066         * html/HTMLStyleElement.idl: Added.
1067         * html/HTMLTitleElement.idl: Added.
1068
1069 2006-05-16  Anders Carlsson  <acarlsson@apple.com>
1070
1071         Reviewed by Maciej.
1072
1073         http://bugzilla.opendarwin.org/show_bug.cgi?id=8921
1074         Use WebCore to render full-frame images.
1075
1076         * WebCore.xcodeproj/project.pbxproj:
1077         Add ImageDocument.
1078         
1079         * bridge/mac/WebCoreFrameBridge.h:
1080         Add mainResourceURLResponse and imageTitleForFilename.
1081         
1082         * bridge/mac/WebCoreFrameBridge.mm:
1083         (+[WebCoreFrameBridge supportedNonImageMIMETypes]):
1084         This used to be supportedMIMETypes but WebKit requires that we handle the
1085         image MIME types separately.
1086         
1087         (+[WebCoreFrameBridge supportedImageMIMETypes]):
1088         Add image types from WebCoreImageRendererFactory.
1089         
1090         (-[WebCoreFrameBridge canProvideDocumentSource]):
1091         Return no for image types.
1092         
1093         * dom/xml_tokenizer.h:
1094         (WebCore::Tokenizer::wantsRawData):
1095         (WebCore::Tokenizer::writeRawData):
1096         New virtual functions which tokenizers can override if they want to get
1097         raw data (which isn't fed through the decoder)
1098         
1099         * html/HTMLImageElement.h:
1100         (WebCore::HTMLImageElement::setLoadManually):
1101         New function which calls HTMLImageLoader::setLoadManually
1102         
1103         * html/HTMLImageLoader.cpp:
1104         (WebCore::HTMLImageLoader::HTMLImageLoader):
1105         (WebCore::HTMLImageLoader::updateFromElement):
1106         Don't request the image from the loader if the load is set to be manual.
1107         
1108         * html/HTMLImageLoader.h:
1109         (WebCore::HTMLImageLoader::setLoadManually):
1110         New function which decides if the image data should be fed manually or loaded
1111         by the loader.
1112         
1113         * loader/DocLoader.h:
1114         Add HTMLImageLoader as a friend.
1115         
1116         * loader/ImageDocument.cpp: Added.
1117         (WebCore::ImageTokenizer::ImageTokenizer):
1118         (WebCore::ImageTokenizer::wantsRawData):
1119         (WebCore::ImageTokenizer::write):
1120         (WebCore::ImageTokenizer::writeRawData):
1121         (WebCore::ImageTokenizer::stopParsing):
1122         (WebCore::ImageTokenizer::finish):
1123         (WebCore::ImageTokenizer::isWaitingForScripts):
1124         (WebCore::ImageDocument::ImageDocument):
1125         (WebCore::ImageDocument::createTokenizer):
1126         * loader/ImageDocument.h: Added.
1127         Add new ImageDocument class which will feed its data to a created image element.
1128
1129         * loader/TextDocument.h:
1130         Inherit from HTMLDocument here too, in case any broken web pages want to manipulate
1131         the DOM of any plain text documents.
1132         
1133         * page/Frame.cpp:
1134         (WebCore::Frame::begin):
1135         (WebCore::Frame::write):
1136         Don't create or use the decoder if the tokenizer is in "raw mode".
1137         
1138 2006-05-16  Eric Seidel  <eseidel@apple.com>
1139
1140         Reviewed by andersca.
1141
1142         Autogenerate JSHTMLMetaElement.
1143         http://bugzilla.opendarwin.org/show_bug.cgi?id=8938
1144
1145         Test: fast/dom/HTMLMetaElement/meta-attributes.html
1146
1147         * DerivedSources.make:
1148         * WebCore.xcodeproj/project.pbxproj:
1149         * bindings/js/JSHTMLElementWrapperFactory.cpp:
1150         (WebCore::createMetaWrapper):
1151         (WebCore::createJSWrapper):
1152         * bindings/js/kjs_html.cpp:
1153         (KJS::):
1154         (KJS::JSHTMLElement::classInfo):
1155         (KJS::JSHTMLElement::accessors):
1156         * bindings/js/kjs_html.h:
1157         * html/HTMLMetaElement.h:
1158
1159 2006-05-16  David Hyatt  <hyatt@apple.com>
1160
1161         Bug 8936, eliminate WebTextRendererFactory and convert it over to the
1162         new FontCache.
1163
1164         Reviewed by andersca
1165
1166         * WebCore.xcodeproj/project.pbxproj:
1167         * bridge/mac/WebCoreStringTruncator.mm:
1168         * kwq/KWQComboBox.mm:
1169         * kwq/KWQLineEdit.mm:
1170         * kwq/KWQListBox.mm:
1171         * platform/Font.h:
1172         (WebCore::Font::bold):
1173         * platform/FontCache.cpp: Added.
1174         (WebCore::FontPlatformDataCacheKey::m_italic):
1175         (WebCore::FontPlatformDataCacheKey::operator==):
1176         (WebCore::computeHash):
1177         (WebCore::FontPlatformDataCacheKeyHash::hash):
1178         (WebCore::FontPlatformDataCacheKeyHash::equal):
1179         (WebCore::FontPlatformDataCacheKeyTraits::deletedValue):
1180         (WebCore::FontCache::getCachedFontPlatformData):
1181         (WebCore::FontDataCacheKeyHash::hash):
1182         (WebCore::FontDataCacheKeyHash::equal):
1183         (WebCore::FontDataCacheKeyTraits::deletedValue):
1184         (WebCore::FontCache::getCachedFontData):
1185         (WebCore::FontCache::getFontData):
1186         (WebCore::FontCache::clearCommonCaches):
1187         * platform/FontCache.h:
1188         * platform/FontData.h:
1189         * platform/FontFamily.cpp:
1190         (WebCore::FontFamily::FontFamily):
1191         (WebCore::FontFamily::operator=):
1192         (WebCore::FontFamily::setFamily):
1193         * platform/FontFamily.h:
1194         (WebCore::FontFamily::familyIsEmpty):
1195         * platform/FontPlatformData.h:
1196         (WebCore::FontPlatformData::hash):
1197         (WebCore::FontPlatformData::operator==):
1198         * platform/mac/FontCacheMac.mm:
1199         (WebCore::getAppDefaultValue):
1200         (WebCore::getUserDefaultValue):
1201         (WebCore::getLCDScaleParameters):
1202         (WebCore::fontsChanged):
1203         (WebCore::FontCache::registerForFontChanges):
1204         (WebCore::FontCache::clearCaches):
1205         (WebCore::FontCache::getFontDataForCharacters):
1206         (WebCore::FontCache::getSimilarFontPlatformData):
1207         (WebCore::FontCache::getLastResortFallbackFont):
1208         (WebCore::FontCache::createFontPlatformData):
1209         * platform/mac/FontData.mm:
1210         (-[NSFont WebCore]):
1211         (WidthMap::FontData::xHeight):
1212         (WidthMap::FontData::smallCapsFontData):
1213         (WidthMap::computeWidthForSpace):
1214         (WidthMap::setUpFont):
1215         (WidthMap::fillStyleWithAttributes):
1216         (WidthMap::FontData::determinePitch):
1217         * platform/mac/FontFallbackListMac.mm:
1218         (WebCore::FontFallbackList::setPlatformFont):
1219         * platform/mac/FontFamilyMac.mm: Removed.
1220         * platform/mac/FontMac.mm:
1221         * platform/mac/WebCoreTextRenderer.mm:
1222         (WebCoreFindFont):
1223         * platform/mac/WebFontCache.h: Added.
1224         * platform/mac/WebFontCache.mm: Added.
1225         (acceptableChoice):
1226         (betterChoice):
1227         (+[WebFontCache fontWithFamily:traits:size:]):
1228         * platform/mac/WebTextRendererFactory.h: Removed.
1229         * platform/mac/WebTextRendererFactory.mm: Removed.
1230
1231 2006-05-16  Eric Seidel  <eseidel@apple.com>
1232
1233         Reviewed by andersca.
1234
1235         Add Rect.idl, even though it can't be used quite yet due to generator limitations.
1236
1237         * WebCore.xcodeproj/project.pbxproj:
1238         * css/Rect.idl: Added.
1239
1240 2006-05-16  Sam Weinig  <sam.weinig@gmail.com>
1241
1242         Reviewed by darin.  Landed by eseidel.
1243
1244         Patch for <http://bugzilla.opendarwin.org/show_bug.cgi?id=8924>
1245         Bug 8924: re-apply the 'disabled type=file' change
1246         from bug 5882 to RenderFileButton
1247         
1248         * rendering/RenderFileButton.cpp:
1249         (WebCore::RenderFileButton::updateFromElement):
1250
1251 2006-05-16  Eric Seidel  <eseidel@apple.com>
1252
1253         Reviewed by hyatt.
1254
1255         Split css_base.* into separate files (one per class).
1256         http://bugzilla.opendarwin.org/show_bug.cgi?id=8935
1257
1258         * WebCore.xcodeproj/project.pbxproj:
1259         * bindings/js/kjs_css.cpp:
1260         * css/CSSBorderImageValue.cpp:
1261         * css/CSSBorderImageValue.h:
1262         * css/CSSCharsetRule.h:
1263         * css/CSSFontFaceRule.h:
1264         * css/CSSGrammar.y:
1265         * css/CSSImportRule.h:
1266         * css/CSSInheritedValue.cpp:
1267         * css/CSSInitialValue.cpp:
1268         * css/CSSMediaRule.h:
1269         * css/CSSMutableStyleDeclaration.h:
1270         * css/CSSNamespace.h: Added.
1271         (WebCore::CSSNamespace::CSSNamespace):
1272         (WebCore::CSSNamespace::namespaceForPrefix):
1273         * css/CSSPageRule.h:
1274         * css/CSSPrimitiveValue.h:
1275         * css/CSSProperty.cpp:
1276         * css/CSSProperty.h:
1277         * css/CSSRule.h:
1278         * css/CSSRuleList.cpp:
1279         * css/CSSSelector.cpp: Added.
1280         * css/CSSSelector.h: Added.
1281         (WebCore::CSSSelector::CSSSelector):
1282         * css/CSSStyleDeclaration.h:
1283         * css/CSSStyleRule.cpp:
1284         * css/CSSStyleRule.h:
1285         * css/CSSStyleSheet.cpp:
1286         (WebCore::CSSStyleSheet::~CSSStyleSheet):
1287         * css/CSSStyleSheet.h:
1288         * css/CSSValue.h:
1289         * css/CSSValueList.cpp:
1290         * css/CSSValueList.h:
1291         * css/FontFamilyValue.cpp:
1292         * css/FontValue.cpp:
1293         * css/FontValue.h:
1294         * css/MediaList.h:
1295         * css/ShadowValue.cpp:
1296         * css/ShadowValue.h:
1297         * css/StyleBase.cpp: Added.
1298         (WebCore::StyleBase::stylesheet):
1299         * css/StyleBase.h: Added.
1300         (WebCore::StyleBase::StyleBase):
1301         * css/StyleList.cpp: Added.
1302         * css/StyleList.h: Added.
1303         * css/StyleSheet.h:
1304         * css/css_base.cpp: Removed.
1305         * css/css_base.h: Removed.
1306         * css/cssparser.cpp:
1307         * css/cssstyleselector.cpp:
1308         (WebCore::CSSStyleSelector::matchRulesForList):
1309         * css/cssstyleselector.h:
1310         * dom/CSSMappedAttributeDeclaration.h:
1311         * ksvg2/svg/SVGColor.cpp:
1312         (WebCore::SVGColor::SVGColor):
1313         (WebCore::SVGColor::setRGBColor):
1314         (WebCore::SVGColor::setRGBColorICCColor):
1315         (WebCore::SVGColor::setColor):
1316         (WebCore::SVGColor::cssText):
1317         (WebCore::SVGColor::color):
1318         * ksvg2/svg/SVGColor.h:
1319         * ksvg2/svg/SVGStyledElement.cpp:
1320         (WebCore::SVGStyledElement::SVGStyledElement):
1321         (WebCore::SVGStyledElement::className):
1322         (WebCore::SVGStyledElement::createRenderer):
1323         (WebCore::SVGStyledElement::parseMappedAttribute):
1324         (WebCore::SVGStyledElement::notifyAttributeChange):
1325         (WebCore::SVGStyledElement::attributeChanged):
1326         (WebCore::SVGStyledElement::canvas):
1327         (WebCore::SVGStyledElement::updateCanvasItem):
1328         (WebCore::SVGStyledElement::pushAttributeContext):
1329
1330 2006-05-15  Eric Seidel  <eseidel@apple.com>
1331
1332         Reviewed by hyatt.
1333
1334         Split css_valueimpl.* and css_ruleimpl.* into separate files (one per class).
1335         http://bugzilla.opendarwin.org/show_bug.cgi?id=8934
1336
1337         * WebCore+SVG/RGBColor.cpp:
1338         (WebCore::RGBColor::RGBColor):
1339         * WebCore.vcproj/WebCore/WebCore.vcproj:
1340         * WebCore.xcodeproj/project.pbxproj:
1341         * bindings/js/kjs_css.cpp:
1342         (KJS::DOMCSSRule::classInfo):
1343         * bindings/js/kjs_css.h:
1344         * bindings/js/kjs_dom.cpp:
1345         * bindings/js/kjs_html.cpp:
1346         * bindings/js/kjs_window.cpp:
1347         * bindings/objc/DOMCSS.mm:
1348         * bindings/scripts/CodeGeneratorJS.pm:
1349         * css/CSSBorderImageValue.cpp: Added.
1350         (WebCore::CSSBorderImageValue::CSSBorderImageValue):
1351         * css/CSSBorderImageValue.h: Added.
1352         * css/CSSCharsetRule.h: Added.
1353         (WebCore::CSSCharsetRule::CSSCharsetRule):
1354         * css/CSSComputedStyleDeclaration.cpp:
1355         (WebCore::valueForShadow):
1356         (WebCore::):
1357         * css/CSSComputedStyleDeclaration.h:
1358         * css/CSSFontFaceRule.cpp: Added.
1359         (WebCore::CSSFontFaceRule::CSSFontFaceRule):
1360         * css/CSSFontFaceRule.h: Added.
1361         (WebCore::CSSFontFaceRule::isFontFaceRule):
1362         * css/CSSGrammar.y:
1363         * css/CSSImageValue.cpp: Added.
1364         (WebCore::CSSImageValue::CSSImageValue):
1365         * css/CSSImageValue.h: Added.
1366         * css/CSSImportRule.cpp: Added.
1367         * css/CSSImportRule.h: Added.
1368         * css/CSSInheritedValue.cpp: Added.
1369         * css/CSSInheritedValue.h: Added.
1370         * css/CSSInitialValue.cpp: Added.
1371         * css/CSSInitialValue.h: Added.
1372         * css/CSSMediaRule.cpp: Added.
1373         (WebCore::CSSMediaRule::CSSMediaRule):
1374         (WebCore::CSSMediaRule::~CSSMediaRule):
1375         (WebCore::CSSMediaRule::append):
1376         (WebCore::CSSMediaRule::deleteRule):
1377         (WebCore::CSSMediaRule::cssText):
1378         * css/CSSMediaRule.h: Added.
1379         (WebCore::CSSMediaRule::media):
1380         (WebCore::CSSMediaRule::cssRules):
1381         * css/CSSMutableStyleDeclaration.cpp: Added.
1382         (WebCore::CSSMutableStyleDeclaration::CSSMutableStyleDeclaration):
1383         (WebCore::CSSMutableStyleDeclaration::setChanged):
1384         * css/CSSMutableStyleDeclaration.h: Added.
1385         * css/CSSPageRule.cpp: Added.
1386         (WebCore::CSSPageRule::CSSPageRule):
1387         * css/CSSPageRule.h: Added.
1388         (WebCore::CSSPageRule::isPageRule):
1389         * css/CSSPrimitiveValue.cpp: Added.
1390         * css/CSSPrimitiveValue.h: Added.
1391         * css/CSSProperty.cpp: Added.
1392         (WebCore::CSSProperty::cssText):
1393         * css/CSSProperty.h: Added.
1394         (WebCore::CSSProperty::CSSProperty):
1395         * css/CSSQuirkPrimitiveValue.h: Added.
1396         * css/CSSRule.cpp: Added.
1397         * css/CSSRule.h: Added.
1398         (WebCore::CSSRule::CSSRule):
1399         * css/CSSRuleList.cpp: Added.
1400         (WebCore::CSSRuleList::CSSRuleList):
1401         (WebCore::CSSRuleList::~CSSRuleList):
1402         (WebCore::CSSRuleList::deleteRule):
1403         (WebCore::CSSRuleList::append):
1404         (WebCore::CSSRuleList::insertRule):
1405         * css/CSSRuleList.h: Added.
1406         (WebCore::CSSRuleList::item):
1407         * css/CSSStyleDeclaration.cpp: Added.
1408         (WebCore::CSSStyleDeclaration::CSSStyleDeclaration):
1409         (WebCore::CSSStyleDeclaration::diff):
1410         * css/CSSStyleDeclaration.h: Added.
1411         * css/CSSStyleRule.cpp: Added.
1412         (WebCore::CSSStyleRule::CSSStyleRule):
1413         (WebCore::CSSStyleRule::selectorText):
1414         * css/CSSStyleRule.h: Added.
1415         * css/CSSStyleSheet.cpp:
1416         (WebCore::CSSStyleSheet::ownerRule):
1417         * css/CSSUnknownRule.h: Added.
1418         (WebCore::CSSUnknownRule::CSSUnknownRule):
1419         * css/CSSValue.h: Added.
1420         * css/CSSValueList.cpp: Added.
1421         * css/CSSValueList.h: Added.
1422         * css/Counter.h: Added.
1423         * css/DashboardRegion.h: Added.
1424         * css/FontFamilyValue.cpp: Added.
1425         * css/FontFamilyValue.h: Added.
1426         (WebCore::FontFamilyValue::genericFamilyType):
1427         * css/FontValue.cpp: Added.
1428         (WebCore::FontValue::cssText):
1429         * css/FontValue.h: Added.
1430         * css/MediaList.cpp:
1431         * css/Pair.h: Added.
1432         (WebCore::Pair::~Pair):
1433         * css/RectImpl.h: Added.
1434         (WebCore::RectImpl::~RectImpl):
1435         * css/ShadowValue.cpp: Added.
1436         (WebCore::ShadowValue::ShadowValue):
1437         * css/ShadowValue.h: Added.
1438         * css/css_base.cpp:
1439         * css/css_ruleimpl.cpp: Removed.
1440         * css/css_ruleimpl.h: Removed.
1441         * css/css_valueimpl.cpp: Removed.
1442         * css/css_valueimpl.h: Removed.
1443         * css/cssparser.cpp:
1444         (WebCore::CSSParser::parseColor):
1445         (WebCore::CSSParser::parseFontFamily):
1446         * css/cssstyleselector.cpp:
1447         (WebCore::CSSStyleSelector::locateCousinList):
1448         (WebCore::CSSStyleSelector::checkSelector):
1449         (WebCore::CSSRuleSet::addRulesFromSheet):
1450         (WebCore::CSSStyleSelector::applyProperty):
1451         (WebCore::CSSStyleSelector::mapBackgroundImage):
1452         * css/cssstyleselector.h:
1453         * dom/CSSMappedAttributeDeclaration.h:
1454         (WebCore::CSSMappedAttributeDeclaration::CSSMappedAttributeDeclaration):
1455         * dom/Document.cpp:
1456         * editing/ApplyStyleCommand.cpp:
1457         * editing/CompositeEditCommand.h:
1458         * editing/EditCommand.cpp:
1459         * editing/InsertLineBreakCommand.cpp:
1460         (WebCore::InsertLineBreakCommand::doApply):
1461         * editing/InsertLineBreakCommand.h:
1462         * editing/InsertTextCommand.cpp:
1463         (WebCore::InsertTextCommand::input):
1464         * editing/RemoveCSSPropertyCommand.cpp:
1465         (WebCore::RemoveCSSPropertyCommand::RemoveCSSPropertyCommand):
1466         (WebCore::RemoveCSSPropertyCommand::~RemoveCSSPropertyCommand):
1467         * editing/RemoveCSSPropertyCommand.h:
1468         (WebCore::RemoveCSSPropertyCommand::styleDeclaration):
1469         * html/HTMLBodyElement.cpp:
1470         * html/HTMLElement.cpp:
1471         * html/HTMLScriptElement.h:
1472         * html/HTMLTokenizer.h:
1473         * kcanvas/KCanvasFilters.h:
1474         (WebCore::KCanvasFEColorMatrix::values):
1475         (WebCore::KCanvasFEColorMatrix::setValues):
1476         (WebCore::KCanvasFEConvolveMatrix::kernel):
1477         (WebCore::KCanvasFEConvolveMatrix::setKernel):
1478         * kcanvas/KCanvasPath.h:
1479         * kcanvas/KCanvasTreeDebug.h:
1480         (WebCore::operator<<):
1481         * kcanvas/RenderPath.h:
1482         * ksvg2/css/SVGCSSParser.cpp:
1483         (WebCore::CSSParser::parseSVGValue):
1484         (WebCore::CSSParser::parseSVGStrokeDasharray):
1485         (WebCore::CSSParser::parseSVGPaint):
1486         (WebCore::CSSParser::parseSVGColor):
1487         * ksvg2/css/SVGCSSStyleSelector.cpp:
1488         (WebCore::CSSStyleSelector::applySVGProperty):
1489         * ksvg2/css/SVGRenderStyleDefs.h:
1490         * ksvg2/ecma/Ecma.cpp:
1491         * ksvg2/misc/KCanvasRenderingStyle.cpp:
1492         * ksvg2/misc/KCanvasRenderingStyle.h:
1493         * ksvg2/svg/SVGAnimationElement.cpp:
1494         * ksvg2/svg/SVGColor.cpp:
1495         * ksvg2/svg/SVGColor.h:
1496         * ksvg2/svg/SVGCursorElement.h:
1497         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1498         (SVGFEColorMatrixElement::filterEffect):
1499         * page/DOMWindow.cpp:
1500         * page/Frame.cpp:
1501         * page/FramePrivate.h:
1502         * platform/DeprecatedValueList.h:
1503         * rendering/RenderTextField.cpp:
1504
1505 2006-05-15  Darin Adler  <darin@apple.com>
1506
1507         * WebCore.xcodeproj/project.pbxproj: Removed duplicate files that were
1508         screwing up Xcode.
1509
1510 2006-05-15  Darin Adler  <darin@apple.com>
1511
1512         * make-generated-sources.sh: Changed to be executable and removed
1513         text in the file generated by "svn diff".
1514         * move-js-headers.sh: Ditto.
1515
1516 2006-05-15  Eric Seidel  <eseidel@apple.com>
1517
1518         Reviewed by mjs.
1519
1520         Split css_stylesheetimpl.* into separate files (one per class).
1521         http://bugzilla.opendarwin.org/show_bug.cgi?id=8933
1522
1523         * WebCore.vcproj/WebCore/WebCore.vcproj:
1524         * WebCore.xcodeproj/project.pbxproj:
1525         * css/CSSStyleSheet.cpp: Added.
1526         (WebCore::CSSStyleSheet::CSSStyleSheet):
1527         (WebCore::CSSStyleSheet::addRule):
1528         (WebCore::CSSStyleSheet::deleteRule):
1529         (WebCore::CSSStyleSheet::parseString):
1530         (WebCore::CSSStyleSheet::docLoader):
1531         * css/CSSStyleSheet.h: Added.
1532         * css/MediaList.cpp: Added.
1533         (WebCore::MediaList::MediaList):
1534         (WebCore::MediaList::contains):
1535         (WebCore::MediaList::parentStyleSheet):
1536         (WebCore::MediaList::parentRule):
1537         (WebCore::MediaList::deleteMedium):
1538         (WebCore::MediaList::setMediaText):
1539         * css/MediaList.h: Added.
1540         * css/StyleSheet.cpp: Added.
1541         (WebCore::StyleSheet::StyleSheet):
1542         (WebCore::StyleSheet::parentStyleSheet):
1543         (WebCore::StyleSheet::setMedia):
1544         * css/StyleSheet.h: Added.
1545         (WebCore::StyleSheet::ownerNode):
1546         * css/StyleSheetList.cpp: Added.
1547         (WebCore::StyleSheetList::~StyleSheetList):
1548         (WebCore::StyleSheetList::add):
1549         (WebCore::StyleSheetList::remove):
1550         (WebCore::StyleSheetList::item):
1551         * css/StyleSheetList.h: Added.
1552         * css/css_stylesheetimpl.cpp: Removed.
1553         * css/css_stylesheetimpl.h: Removed.
1554
1555 2006-05-15  Eric Seidel  <eseidel@apple.com>
1556
1557         * WebCore.xcodeproj/project.pbxproj: build fix.
1558
1559 2006-05-15  Eric Seidel  <eseidel@apple.com>
1560
1561         Reviewed by ggaren.
1562
1563         Split dom_xmlimpl.* into separate files (one per class).
1564
1565         * WebCore.xcodeproj/project.pbxproj:
1566         * dom/Entity.cpp: Added.
1567         (WebCore::Entity::Entity):
1568         * dom/Entity.h: Added.
1569         * dom/EntityReference.cpp: Added.
1570         (WebCore::EntityReference::EntityReference):
1571         * dom/EntityReference.h: Added.
1572         * dom/Notation.cpp: Added.
1573         (WebCore::Notation::Notation):
1574         * dom/Notation.h: Added.
1575         * dom/ProcessingInstruction.cpp: Added.
1576         (WebCore::ProcessingInstruction::ProcessingInstruction):
1577         * dom/ProcessingInstruction.h: Added.
1578         * dom/dom_xmlimpl.cpp: Removed.
1579         * dom/dom_xmlimpl.h: Removed.
1580
1581 2006-05-15  Eric Seidel  <eseidel@apple.com>
1582
1583         Reviewed by Tim Hatcher.
1584
1585         Split html_imageimpl.* into separate files (one per class).
1586         http://bugzilla.opendarwin.org/show_bug.cgi?id=8929
1587
1588         * WebCore.xcodeproj/project.pbxproj:
1589         * bindings/js/JSCanvasRenderingContext2DBase.cpp:
1590         * bindings/js/kjs_events.cpp:
1591         * bindings/js/kjs_html.cpp:
1592         * bindings/objc/DOMHTML.mm:
1593         * bridge/mac/WebCoreFrameBridge.mm:
1594         * dom/Document.cpp:
1595         * editing/JSEditor.cpp:
1596         * html/CanvasRenderingContext2D.cpp:
1597         * html/HTMLAnchorElement.cpp:
1598         * html/HTMLAreaElement.cpp: Added.
1599         (WebCore::HTMLAreaElement::HTMLAreaElement):
1600         (WebCore::HTMLAreaElement::mapMouseEvent):
1601         (WebCore::HTMLAreaElement::getRect):
1602         (WebCore::HTMLAreaElement::getRegion):
1603         * html/HTMLAreaElement.h: Added.
1604         * html/HTMLCanvasElement.h:
1605         * html/HTMLDocument.cpp:
1606         * html/HTMLElementFactory.cpp:
1607         * html/HTMLFormCollection.cpp:
1608         * html/HTMLFormElement.cpp:
1609         * html/HTMLImageElement.cpp: Added.
1610         (WebCore::HTMLImageElement::HTMLImageElement):
1611         * html/HTMLImageElement.h: Added.
1612         * html/HTMLImageLoader.cpp: Added.
1613         (WebCore::HTMLImageLoader::HTMLImageLoader):
1614         * html/HTMLImageLoader.h: Added.
1615         * html/HTMLInputElement.cpp:
1616         * html/HTMLMapElement.cpp: Added.
1617         (WebCore::HTMLMapElement::mapMouseEvent):
1618         (WebCore::HTMLMapElement::parseMappedAttribute):
1619         * html/HTMLMapElement.h: Added.
1620         * html/HTMLObjectElement.cpp:
1621         * html/HTMLParser.cpp:
1622         * html/html_imageimpl.cpp: Removed.
1623         * html/html_imageimpl.h: Removed.
1624         * ksvg2/misc/SVGImageLoader.h:
1625         * kwq/WebCoreAXObject.mm:
1626         (-[WebCoreAXObject addChildrenToArray:]):
1627         * page/Frame.cpp:
1628         * rendering/RenderImage.cpp:
1629         (WebCore::RenderImage::RenderImage):
1630         (WebCore::RenderImage::nodeAtPoint):
1631
1632 2006-05-15  Eric Seidel  <eseidel@apple.com>
1633
1634         Reviewed by beth.
1635
1636         Split html_blockimpl.* into separate files (one per class).
1637         http://bugzilla.opendarwin.org/show_bug.cgi?id=8927
1638
1639         * WebCore.xcodeproj/project.pbxproj:
1640         * bindings/js/kjs_html.cpp:
1641         * bindings/objc/DOMHTML.mm:
1642         * html/HTMLBlockquoteElement.cpp: Added.
1643         (WebCore::HTMLBlockquoteElement::HTMLBlockquoteElement):
1644         * html/HTMLBlockquoteElement.h: Added.
1645         * html/HTMLDivElement.cpp: Added.
1646         * html/HTMLDivElement.h: Added.
1647         * html/HTMLElementFactory.cpp:
1648         * html/HTMLHRElement.cpp: Added.
1649         * html/HTMLHRElement.h: Added.
1650         * html/HTMLHeadingElement.cpp: Added.
1651         * html/HTMLHeadingElement.h: Added.
1652         * html/HTMLMarqueeElement.cpp: Added.
1653         (WebCore::HTMLMarqueeElement::HTMLMarqueeElement):
1654         (WebCore::HTMLMarqueeElement::parseMappedAttribute):
1655         * html/HTMLMarqueeElement.h: Added.
1656         * html/HTMLParagraphElement.cpp: Added.
1657         * html/HTMLParagraphElement.h: Added.
1658         * html/HTMLParser.cpp:
1659         * html/HTMLPreElement.cpp: Added.
1660         (WebCore::HTMLPreElement::HTMLPreElement):
1661         (WebCore::HTMLPreElement::setWrap):
1662         * html/HTMLPreElement.h: Added.
1663         * html/HTMLTextFieldInnerElement.h:
1664         * html/html_blockimpl.cpp: Removed.
1665         * html/html_blockimpl.h: Removed.
1666         * rendering/RenderLayer.cpp:
1667
1668 2006-05-15  Eric Seidel  <eseidel@apple.com>
1669
1670         Reviewed by ggaren.
1671
1672         Split render_list.* and html_listimpl.* into separate files (one per class).
1673         http://bugzilla.opendarwin.org/show_bug.cgi?id=8925
1674
1675         * WebCore.xcodeproj/project.pbxproj:
1676         * bindings/js/kjs_html.cpp:
1677         * bindings/objc/DOMHTML.mm:
1678         * bridge/mac/FrameMac.mm:
1679         (WebCore::FrameMac::attributedString):
1680         * html/HTMLDListElement.cpp: Added.
1681         (WebCore::HTMLDListElement::HTMLDListElement):
1682         * html/HTMLDListElement.h: Added.
1683         * html/HTMLDirectoryElement.cpp: Added.
1684         (WebCore::HTMLDirectoryElement::HTMLDirectoryElement):
1685         * html/HTMLDirectoryElement.h: Added.
1686         * html/HTMLElementFactory.cpp:
1687         * html/HTMLKeygenElement.cpp:
1688         * html/HTMLLIElement.cpp: Added.
1689         (WebCore::HTMLLIElement::HTMLLIElement):
1690         (WebCore::HTMLLIElement::parseMappedAttribute):
1691         (WebCore::HTMLLIElement::attach):
1692         (WebCore::HTMLLIElement::setType):
1693         * html/HTMLLIElement.h: Added.
1694         * html/HTMLMenuElement.cpp: Added.
1695         (WebCore::HTMLMenuElement::HTMLMenuElement):
1696         * html/HTMLMenuElement.h: Added.
1697         * html/HTMLOListElement.cpp: Added.
1698         (WebCore::HTMLOListElement::HTMLOListElement):
1699         (WebCore::HTMLOListElement::parseMappedAttribute):
1700         (WebCore::HTMLOListElement::setType):
1701         * html/HTMLOListElement.h: Added.
1702         (WebCore::HTMLOListElement::start):
1703         * html/HTMLOptionElement.cpp:
1704         (WebCore::HTMLOptionElement::HTMLOptionElement):
1705         (WebCore::HTMLOptionElement::checkDTD):
1706         (WebCore::HTMLOptionElement::text):
1707         (WebCore::HTMLOptionElement::setText):
1708         (WebCore::HTMLOptionElement::getSelect):
1709         (WebCore::HTMLOptionElement::setLabel):
1710         * html/HTMLOptionElement.h:
1711         * html/HTMLParser.cpp:
1712         * html/HTMLSelectElement.cpp:
1713         (WebCore::HTMLSelectElement::HTMLSelectElement):
1714         * html/HTMLUListElement.cpp: Added.
1715         (WebCore::HTMLUListElement::HTMLUListElement):
1716         * html/HTMLUListElement.h: Added.
1717         * html/html_listimpl.cpp: Removed.
1718         * html/html_listimpl.h: Removed.
1719         * kwq/WebCoreAXObject.mm:
1720         * rendering/InlineFlowBox.cpp:
1721         * rendering/ListMarkerBox.cpp: Added.
1722         (WebCore::ListMarkerBox::ListMarkerBox):
1723         (WebCore::ListMarkerBox::isText):
1724         * rendering/ListMarkerBox.h: Added.
1725         * rendering/RenderContainer.cpp:
1726         (WebCore::updateListMarkerNumbers):
1727         (WebCore::RenderContainer::addChild):
1728         (WebCore::RenderContainer::removeChild):
1729         (WebCore::RenderContainer::layout):
1730         (WebCore::RenderContainer::removeLeftoverAnonymousBoxes):
1731         (WebCore::RenderContainer::positionForCoordinates):
1732         (WebCore::RenderContainer::lineBoxRects):
1733         * rendering/RenderListItem.cpp: Added.
1734         (WebCore::RenderListItem::RenderListItem):
1735         (WebCore::RenderListItem::setStyle):
1736         (WebCore::RenderListItem::calcValue):
1737         (WebCore::RenderListItem::markerStringValue):
1738         * rendering/RenderListItem.h: Added.
1739         (WebCore::RenderListItem::renderName):
1740         (WebCore::RenderListItem::setValue):
1741         (WebCore::RenderListItem::setNotInList):
1742         (WebCore::RenderListItem::notInList):
1743         * rendering/RenderListMarker.cpp: Added.
1744         (WebCore::RenderListMarker::RenderListMarker):
1745         (WebCore::RenderListMarker::setStyle):
1746         (WebCore::RenderListMarker::paint):
1747         (WebCore::RenderListMarker::layout):
1748         (WebCore::RenderListMarker::calcMinMaxWidth):
1749         * rendering/RenderListMarker.h: Added.
1750         (WebCore::RenderListMarker::renderName):
1751         * rendering/RenderObject.cpp:
1752         * rendering/render_list.cpp: Removed.
1753         * rendering/render_list.h: Removed.
1754
1755 2006-05-15  Sam Weinig  <sam.weinig@gmail.com>
1756
1757         Reviewed by eseidel.
1758
1759         Split render_form.* into separate files (one per class).
1760         http://bugzilla.opendarwin.org/show_bug.cgi?id=8889
1761
1762         * WebCore.xcodeproj/project.pbxproj:
1763         * html/HTMLButtonElement.cpp:
1764         (WebCore::HTMLButtonElement::HTMLButtonElement):
1765         * html/HTMLFieldSetElement.cpp:
1766         * html/HTMLFormElement.cpp:
1767         * html/HTMLInputElement.cpp:
1768         * html/HTMLLabelElement.cpp:
1769         * html/HTMLLegendElement.cpp:
1770         (WebCore::HTMLLegendElement::createRenderer):
1771         * html/HTMLOptionElement.cpp:
1772         * html/HTMLSelectElement.cpp:
1773         * html/HTMLTextAreaElement.cpp:
1774         (WebCore::HTMLTextAreaElement::selectionStart):
1775         (WebCore::HTMLTextAreaElement::selectionEnd):
1776         (WebCore::HTMLTextAreaElement::setSelectionStart):
1777         (WebCore::HTMLTextAreaElement::setSelectionEnd):
1778         (WebCore::HTMLTextAreaElement::setSelectionRange):
1779         (WebCore::HTMLTextAreaElement::parseMappedAttribute):
1780         (WebCore::HTMLTextAreaElement::createRenderer):
1781         (WebCore::HTMLTextAreaElement::setValue):
1782         (WebCore::HTMLTextAreaElement::setDefaultValue):
1783         (WebCore::HTMLTextAreaElement::setAccessKey):
1784         * kwq/KWQComboBox.mm:
1785         * kwq/KWQFileButton.mm:
1786         * kwq/KWQListBox.mm:
1787         * kwq/KWQSlider.mm:
1788         * platform/mac/WebCoreTextField.mm:
1789         * rendering/RenderFieldset.cpp: Added.
1790         (WebCore::RenderFieldset::RenderFieldset):
1791         (WebCore::RenderFieldset::findLegend):
1792         (WebCore::RenderFieldset::paintBorderMinusLegend):
1793         (WebCore::RenderFieldset::setStyle):
1794         * rendering/RenderFieldset.h: Added.
1795         (WebCore::RenderFieldset::renderName):
1796         * rendering/RenderFileButton.cpp: Added.
1797         (WebCore::RenderFileButton::RenderFileButton):
1798         (WebCore::RenderFileButton::calcMinMaxWidth):
1799         (WebCore::RenderFileButton::updateFromElement):
1800         (WebCore::RenderFileButton::click):
1801         * rendering/RenderFileButton.h: Added.
1802         (WebCore::RenderFileButton::renderName):
1803         (WebCore::RenderFileButton::calcReplacedHeight):
1804         (WebCore::RenderFileButton::isEditable):
1805         * rendering/RenderFormElement.cpp: Added.
1806         (WebCore::RenderFormElement::RenderFormElement):
1807         (WebCore::RenderFormElement::baselinePosition):
1808         (WebCore::RenderFormElement::layout):
1809         * rendering/RenderFormElement.h: Added.
1810         (WebCore::RenderFormElement::renderName):
1811         (WebCore::RenderFormElement::isFormElement):
1812         (WebCore::RenderFormElement::borderTop):
1813         (WebCore::RenderFormElement::borderBottom):
1814         (WebCore::RenderFormElement::borderLeft):
1815         (WebCore::RenderFormElement::borderRight):
1816         (WebCore::RenderFormElement::paddingTop):
1817         (WebCore::RenderFormElement::paddingBottom):
1818         (WebCore::RenderFormElement::paddingLeft):
1819         (WebCore::RenderFormElement::paddingRight):
1820         (WebCore::RenderFormElement::canHaveIntrinsicMargins):
1821         (WebCore::RenderFormElement::intrinsicMargin):
1822         (WebCore::RenderFormElement::isEditable):
1823         * rendering/RenderImageButton.cpp: Added.
1824         (WebCore::RenderImageButton::RenderImageButton):
1825         * rendering/RenderImageButton.h: Added.
1826         (WebCore::RenderImageButton::renderName):
1827         (WebCore::RenderImageButton::isImageButton):
1828         * rendering/RenderLabel.cpp: Added.
1829         (WebCore::RenderLabel::RenderLabel):
1830         * rendering/RenderLabel.h: Added.
1831         (WebCore::RenderLabel::renderName):
1832         * rendering/RenderLegend.cpp: Added.
1833         (WebCore::RenderLegend::RenderLegend):
1834         * rendering/RenderLegend.h: Added.
1835         (WebCore::RenderLegend::renderName):
1836         * rendering/RenderLineEdit.cpp: Added.
1837         (WebCore::RenderLineEdit::RenderLineEdit):
1838         * rendering/RenderLineEdit.h: Added.
1839         (WebCore::RenderLineEdit::renderName):
1840         (WebCore::RenderLineEdit::calcReplacedHeight):
1841         (WebCore::RenderLineEdit::canHaveIntrinsicMargins):
1842         (WebCore::RenderLineEdit::isTextField):
1843         (WebCore::RenderLineEdit::isEditable):
1844         * rendering/RenderSelect.cpp: Added.
1845         (WebCore::RenderSelect::RenderSelect):
1846         (WebCore::RenderSelect::setWidgetWritingDirection):
1847         (WebCore::RenderSelect::setStyle):
1848         (WebCore::RenderSelect::updateFromElement):
1849         (WebCore::RenderSelect::baselinePosition):
1850         (WebCore::RenderSelect::calcMinMaxWidth):
1851         (WebCore::RenderSelect::layout):
1852         (WebCore::RenderSelect::valueChanged):
1853         (WebCore::RenderSelect::selectionChanged):
1854         (WebCore::RenderSelect::updateSelection):
1855         * rendering/RenderSelect.h: Added.
1856         (WebCore::RenderSelect::renderName):
1857         (WebCore::RenderSelect::calcReplacedHeight):
1858         (WebCore::RenderSelect::canHaveIntrinsicMargins):
1859         (WebCore::RenderSelect::selectionChanged):
1860         (WebCore::RenderSelect::setSelectionChanged):
1861         * rendering/RenderSlider.cpp: Added.
1862         (WebCore::RenderSlider::calcMinMaxWidth):
1863         (WebCore::RenderSlider::updateFromElement):
1864         * rendering/RenderSlider.h: Added.
1865         (WebCore::RenderSlider::renderName):
1866         (WebCore::RenderSlider::canHaveIntrinsicMargins):
1867         * rendering/RenderTextArea.cpp: Added.
1868         (WebCore::RenderTextArea::RenderTextArea):
1869         (WebCore::RenderTextArea::calcMinMaxWidth):
1870         (WebCore::RenderTextArea::setStyle):
1871         (WebCore::RenderTextArea::updateFromElement):
1872         (WebCore::RenderTextArea::selectionStart):
1873         (WebCore::RenderTextArea::selectionEnd):
1874         (WebCore::RenderTextArea::setSelectionStart):
1875         (WebCore::RenderTextArea::setSelectionEnd):
1876         (WebCore::RenderTextArea::select):
1877         (WebCore::RenderTextArea::setSelectionRange):
1878         * rendering/RenderTextArea.h: Added.
1879         (WebCore::RenderTextArea::renderName):
1880         (WebCore::RenderTextArea::isTextArea):
1881         (WebCore::RenderTextArea::isEdited):
1882         (WebCore::RenderTextArea::canHaveIntrinsicMargins):
1883         (WebCore::RenderTextArea::isEditable):
1884         * rendering/render_form.cpp: Removed.
1885         * rendering/render_form.h: Removed.
1886
1887 2006-05-15  Anders Carlsson  <acarlsson@apple.com>
1888
1889         Reviewed by Eric.
1890
1891         Remove the XPath log calls. They were causing leaks and were never
1892         really useful.
1893         
1894         * bridge/mac/WebCorePageBridge.mm:
1895         (initializeLoggingChannelsIfNecessary):
1896         * platform/Logging.cpp:
1897         * platform/Logging.h:
1898         * xpath/XPathResult.cpp:
1899         (WebCore::XPathResult::convertTo):
1900         * xpath/impl/XPathFunctions.cpp:
1901         (round):
1902         (WebCore::XPath::FunCount::doEvaluate):
1903         (WebCore::XPath::FunSum::doEvaluate):
1904         (WebCore::XPath::FunctionLibrary::createFunction):
1905         * xpath/impl/XPathPath.cpp:
1906         (WebCore::XPath::Filter::doEvaluate):
1907         (WebCore::XPath::LocationPath::doEvaluate):
1908         * xpath/impl/XPathPredicate.cpp:
1909         (WebCore::XPath::Negative::doEvaluate):
1910         (WebCore::XPath::NumericOp::doEvaluate):
1911         (WebCore::XPath::Union::doEvaluate):
1912         * xpath/impl/XPathStep.cpp:
1913         (WebCore::XPath::Step::evaluate):
1914         (WebCore::XPath::Step::nodesInAxis):
1915         (WebCore::XPath::Step::nodeTestMatches):
1916         * xpath/impl/XPathValue.cpp:
1917         (WebCore::XPath::Value::toNodeVector):
1918
1919 2006-05-15  Eric Seidel  <eseidel@apple.com>
1920
1921         Fix linux build.
1922
1923         * html/HTMLBodyElement.cpp: Fix case of #include "cssstyleselector.h"
1924
1925 2006-05-15  Anders Carlsson  <acarlsson@apple.com>
1926
1927         Reviewed by Maciej.
1928
1929         http://bugzilla.opendarwin.org/show_bug.cgi?id=8913
1930         REGRESSION: Can view source for text files
1931         
1932         * bridge/mac/WebCoreFrameBridge.h:
1933         * bridge/mac/WebCoreFrameBridge.mm:
1934         (-[WebCoreFrameBridge canProvideDocumentSource]):
1935         (-[WebCoreFrameBridge canSaveAsWebArchive]):
1936
1937 2006-05-15  David Hyatt  <hyatt@apple.com>
1938
1939         Remove the .forPrinter boolean from FontPlatformData.  After the initial
1940         acquisition of an NSFont, the font is then adjusted to printer or screen
1941         when put into a FontPlatformData.  Then it can simply be used in the hash
1942         lookup to get a FontData.
1943
1944         Reviewed by mjs
1945
1946         * platform/Font.cpp:
1947         (WebCore::WidthIterator::advance):
1948         * platform/FontData.h:
1949         * platform/FontDescription.h:
1950         (WebCore::FontDescription::bold):
1951         * platform/FontPlatformData.h:
1952         (WebCore::FontPlatformData::syntheticOblique):
1953         * platform/mac/FontCacheMac.mm:
1954         (WebCore::FontCache::getFontDataForCharacters):
1955         * platform/mac/FontData.mm:
1956         (WebCore::FontData::smallCapsFontData):
1957         (WebCore::getSmallCapsFontData):
1958         (WebCore::setUpFont):
1959         * platform/mac/FontMac.mm:
1960         (WebCore::ATSULayoutParameters::initialize):
1961         * platform/mac/WebTextRendererFactory.h:
1962         * platform/mac/WebTextRendererFactory.mm:
1963         (-[WebTextRendererFactory rendererWithFont:]):
1964         (-[WebTextRendererFactory fontWithDescription:WebCore::familyIndex:]):
1965
1966 2006-05-15  Anders Carlsson  <acarlsson@apple.com>
1967
1968         Reviewed by Maciej.
1969
1970         * dom/Document.idl:
1971         Remove #if XPATH_SUPPORT until we have a way to feed defines to the bindings generator
1972         (see http://bugzilla.opendarwin.org/show_bug.cgi?id=8912)
1973
1974 2006-05-14  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1975
1976         Reviewed by Hyatt.
1977
1978         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6838
1979           Incomplete repaint of collapsed table borders
1980           
1981         This patch updates the implementation of collapsing borders to match
1982         the current spec.
1983
1984         Test: fast/repaint/table-collapsed-border.html
1985
1986         * rendering/RenderTable.cpp:
1987         (WebCore::RenderTable::RenderTable):
1988         (WebCore::RenderTable::layout): Calculate horizontal overflows.
1989         (WebCore::RenderTable::calcMinMaxWidth): Added call to recalcHorizontalBorders.
1990         (WebCore::RenderTable::colElement): Made const.
1991         (WebCore::RenderTable::calcBorderLeft): Calculates the left border. In the collapsing
1992         borders model, this is the left border of the leftmost cell of the first row.
1993         (WebCore::RenderTable::calcBorderRight): Ditto for the right border.
1994         (WebCore::RenderTable::recalcHorizontalBorders): Added.
1995         (WebCore::RenderTable::borderTop): Changed to return outerBorderTop in the
1996         collapsing case.
1997         (WebCore::RenderTable::borderBottom): Changed to return outerBorderBottom in
1998         the collapsing case.
1999         (WebCore::RenderTable::outerBorderTop): Added. Returns the table half of the
2000         top border, which is half the widest top border on the first row.
2001         (WebCore::RenderTable::outerBorderBottom): Added. Returns the table half of the
2002         bottom border, which is half the widest bottom border on the last row.
2003         (WebCore::RenderTable::outerBorderLeft): Added. Returns the table half of the
2004         left border, which is half the widest left border on the leftmost column.
2005         (WebCore::RenderTable::outerBorderRight): Added. Returns the table half of the
2006         right border, which is half the widest right border on the rightmost column.
2007         (WebCore::RenderTable::cellAbove): Return 0 if the cell is in the first row
2008         of the header.
2009         (WebCore::RenderTable::cellBelow): Return 0 if the cell is in the last row
2010         of the footer.
2011         * rendering/RenderTable.h:
2012         (WebCore::RenderTable::borderLeft):
2013         (WebCore::RenderTable::borderRight):
2014         (WebCore::RenderTable::overflowHeight):
2015         * rendering/RenderTableCell.cpp:
2016         (WebCore::RenderTableCell::borderLeft): Removed unnecessary use of floats.
2017         (WebCore::RenderTableCell::borderTop): Ditto.
2018         (WebCore::RenderTableCell::paint): Account for the table half of the vertical
2019         borders.
2020         (WebCore::RenderTableCell::paintCollapsedBorder): Removed unnecessary use of
2021         floats.
2022         * rendering/RenderTableSection.cpp:
2023         (WebCore::RenderTableSection::RenderTableSection):
2024         (WebCore::RenderTableSection::layoutRows): Added call to recalcOuterBorder.
2025         (WebCore::RenderTableSection::calcOuterBorderTop): Added. Calculates the outer half of
2026         the section's top border, which is half the widest top border on the first row.
2027         (WebCore::RenderTableSection::calcOuterBorderBottom): Ditto for the bottom border.
2028         (WebCore::RenderTableSection::calcOuterBorderLeft): Ditto for the left border.
2029         (WebCore::RenderTableSection::calcOuterBorderRight): Ditto for the right border.
2030         (WebCore::RenderTableSection::recalcOuterBorder): Added.
2031         (WebCore::RenderTableSection::paint): Account for the table half of the borders.
2032         * rendering/RenderTableSection.h:
2033         (WebCore::RenderTableSection::outerBorderTop):
2034         (WebCore::RenderTableSection::outerBorderBottom):
2035         (WebCore::RenderTableSection::outerBorderLeft):
2036         (WebCore::RenderTableSection::outerBorderRight):
2037         * rendering/render_style.cpp:
2038         (WebCore::RenderStyle::diff): Changed to return Layout if a border style changed
2039         from 'hidden' to 'none' or vice versa in the collapsing borders model, since
2040         'hidden' suppresses other borders.
2041
2042 2006-05-14  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2043
2044         Reviewed by Darin.
2045
2046         - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8739
2047           Crash in RenderTableSection::paint due to manipulating DOM on resize
2048
2049         * manual-tests/dom-manipulation-on-resize.html: Added.
2050
2051 2006-05-14  Rob Buis  <buis@kde.org>
2052
2053         Reviewed by Darin.
2054
2055         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=5882:
2056         disabled type="file" element doesn't appear disabled
2057
2058         Be sure to call setDisabled on the file button when in
2059         RenderFileButton::updateFromElement.
2060
2061         * kwq/KWQFileButton.h:
2062         * kwq/KWQFileButton.mm:
2063         (-[WebFileChooserButton setEnabled:]):
2064         (KWQFileButton::setDisabled):
2065         * rendering/render_form.cpp:
2066         (WebCore::RenderFileButton::updateFromElement):
2067
2068 2006-05-14  Steve Falkenburg  <sfalken@apple.com>
2069
2070         Fix Windows build.
2071
2072         * platform/win/FontWin.cpp:
2073         (WebCore::FontFallbackList::fontDataAt):
2074         (WebCore::hackishExtentForString):
2075         (WebCore::Font::floatWidth):
2076         (WebCore::Font::drawText):
2077         (WebCore::Font::selectionRectForText):
2078         (WebCore::Font::offsetForPosition):
2079
2080 2006-05-14  David Hyatt  <hyatt@apple.com>
2081
2082         Bug 8895.  Rework font substitution and fallback.  Lift the concept of
2083         substitution and fallback out of FontData and up into the FontFallbackList.
2084         See the bug for details of issues fixed in the fallback code.
2085
2086         Reviewed by darin
2087
2088         * WebCore.xcodeproj/project.pbxproj:
2089         * platform/Font.cpp:
2090         (WebCore::m_finalRoundingWidth):
2091         (WebCore::WidthIterator::advance):
2092         (WebCore::Font::primaryFont):
2093         (WebCore::Font::fontDataAt):
2094         (WebCore::Font::fontDataForCharacters):
2095         (WebCore::Font::ascent):
2096         (WebCore::Font::descent):
2097         (WebCore::Font::lineSpacing):
2098         (WebCore::Font::xHeight):
2099         (WebCore::Font::isFixedPitch):
2100         * platform/Font.h:
2101         (WebCore::Font::getNSFont):
2102         * platform/FontCache.h: Added.
2103         * platform/FontData.h:
2104         (WebCore::FontData::pitch):
2105         (WebCore::FontData::getNSFont):
2106         (WebCore::):
2107         * platform/FontFallbackList.cpp: Added.
2108         (WebCore::m_pitch):
2109         (WebCore::FontFallbackList::~FontFallbackList):
2110         (WebCore::FontFallbackList::invalidate):
2111         (WebCore::FontFallbackList::determinePitch):
2112         (WebCore::FontFallbackList::fontDataAt):
2113         (WebCore::FontFallbackList::fontDataForCharacters):
2114         * platform/FontFallbackList.h:
2115         (WebCore::FontFallbackList::isFixedPitch):
2116         (WebCore::FontFallbackList::primaryFont):
2117         * platform/FontFamily.h:
2118         * platform/mac/FontCacheMac.mm: Added.
2119         (WebCore::FontCache::getFontData):
2120         (WebCore::FontCache::getFontDataForCharacters):
2121         * platform/mac/FontData.mm:
2122         (WebCore::FontData::containsCharacters):
2123         * platform/mac/FontMac.mm:
2124         (WebCore::ATSULayoutParameters::initialize):
2125         * platform/mac/WebTextRendererFactory.h:
2126         * platform/mac/WebTextRendererFactory.mm:
2127         (-[WebTextRendererFactory fallbackFontWithTraits:size:]):
2128         (-[WebTextRendererFactory fontWithDescription:WebCore::familyIndex:]):
2129         * platform/win/FontWin.cpp:
2130         (WebCore::FontFallbackList::determinePitch):
2131         (WebCore::FontFallbackList::primaryFont):
2132         (WebCore::FontFallbackList::fontDataAt):
2133         (WebCore::FontFallbackList::fontDataForCharacters):
2134
2135 2006-05-14  Sam Weinig  <sam.weinig@gmail.com>
2136
2137         Reviewed by Hyatt, landed by ap.
2138
2139         Fix for <http://bugzilla.opendarwin.org/show_bug.cgi?id=8387>
2140         "border-left/padding-Left do not show up on multiline rtl inline boxes"
2141
2142         Test: fast/inline/inline-borders-with-bidi-override.html: added
2143
2144         * rendering/InlineFlowBox.cpp:
2145         (WebCore::InlineFlowBox::determineSpacingForFlowBoxes):
2146
2147 2006-05-14  Steve Falkenburg  <sfalken@apple.com>
2148
2149         Fix the Windows build the rest of the way
2150
2151         * WebCore.vcproj/WebCore/WebCore.vcproj:
2152
2153 2006-05-14  Steve Falkenburg  <sfalken@apple.com>
2154
2155         Get FontWin.cpp compiling.
2156         WebCore and JSCore now build, but Spinneret still gets link errors.
2157
2158         * platform/win/FontWin.cpp:
2159         (WebCore::Font::offsetForPosition):
2160
2161 2006-05-14  Steve Falkenburg  <sfalken@apple.com>
2162
2163         Reviewed by maciej.
2164
2165         Fix Windows build except for fontwin.cpp.
2166
2167         * WebCore/platform/win/FontWin.cpp:
2168         * WebCore.vcproj/WebCore/WebCore.vcproj:
2169         * bridge/win/FrameWin.cpp:
2170
2171 2006-05-13  Kevin M. Ollivier  <kevino@theolliviers.com>
2172
2173         Reviewed by Darin, landed by ap.
2174
2175         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8528
2176           Bakefiles (and generated Makefiles) for wx and gdk ports
2177         
2178         * make-generated-sources.sh: 
2179         Added script to configure environment to run DerivedSources.make
2180         
2181         * move-js-headers.sh:
2182         Added script to copy JavaScriptCore includes into one dir so that 
2183         Framework-style includes will work on all OSes. (written by Mike Emmel)
2184         
2185         * platform/wx: New dir, home for the wxWidgets port
2186         * platform/wx/wx-encodings.txt: Added temp. stub for wx encodings file.
2187         
2188         * Projects: New dir, for various project files for ports.
2189         
2190         * Projects/gdk: New dir, GDK port files.
2191         * Projects/webcore-gdk.bkl: Bakefile to generate GDK port project files
2192         
2193         * Projects/wx: New dir, wxWidgets port files.
2194         * Projects/webcore-wx.bkl: Bakefile to generate wxWidgets port project files
2195
2196 2006-05-13  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2197
2198         Reviewed by Darin, landed by ap.
2199
2200         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8485
2201           iExploder(#11705): Freeze in RenderBlock::layout()
2202
2203         Test: fast/text/midword-break-hang.html
2204
2205         * rendering/bidi.cpp:
2206         (WebCore::RenderBlock::findNextLineBreak): If this is a mid-word break,
2207         ignore breakOnlyAfterWhiteSpace.
2208
2209 2006-05-13  Alexey Proskuryakov  <ap@nypop.com>
2210
2211         Fix release build.
2212
2213         * rendering/RenderBox.cpp:
2214         (WebCore::RenderBox::calcAbsoluteHorizontalValues): Initialize leftValue. 
2215         This value will never be used, because 'left' and 'right' cannot both be 'auto'.
2216         (WebCore::RenderBox::calcAbsoluteVerticalValues): Initialize topValue. 
2217         (WebCore::RenderBox::calcAbsoluteVerticalReplaced): Same changes as above. 
2218
2219 2006-05-13  Alexey Proskuryakov  <ap@nypop.com>
2220
2221         Re-applied the fix for bug 8835 (REGRESSION: Line moves but selection
2222         highlight stays behind) to a correct file; removed the stale one.
2223
2224         * rendering/RootInlineBox.cpp:
2225         (WebCore::RootInlineBox::adjustPosition): Adjust m_selectionTop
2226         and m_selectionBottom.
2227         * rendering/render_line.cpp: Removed.
2228
2229 2006-05-13  Rob Buis  <buis@kde.org>
2230
2231         Reviewed by Darin, landed by ap.
2232
2233         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8132
2234         CSS parser sometimes accepts real number as integer
2235
2236         Add a boolean variable per css value to catch whether values
2237         are specified as floats or integers.
2238
2239         Test: fast/css/rgb-float.html
2240
2241         * css/CSSGrammar.y:
2242         * css/cssparser.cpp:
2243         (WebCore::CSSParser::validUnit):
2244         (WebCore::CSSParser::lex):
2245         * css/cssparser.h:
2246         * css/tokenizer.flex:
2247
2248 2006-05-13  Sam Weinig  <sam.weinig@gmail.com>
2249
2250         Reviewed by Hyatt, landed by ap.
2251
2252         Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=7604
2253         calcAbsoluteHorizontalValues() is being getting passed arguments
2254         in the wrong order in calcAbsoluteHorizontal()
2255
2256         Cleans up the RenderBox code for absolutely positioned elements
2257         and adds new functions for replaced absolutely positioned 
2258         elements. Now uses Length so that magic number -666666 for 
2259         auto lengths is no longer used.
2260
2261         * rendering/RenderBox.cpp:
2262         (WebCore::RenderBox::calcAbsoluteHorizontal):
2263         (WebCore::RenderBox::calcAbsoluteHorizontalValues):
2264         (WebCore::RenderBox::calcAbsoluteVertical):
2265         (WebCore::RenderBox::calcAbsoluteVerticalValues): 
2266         (WebCore::RenderBox::calcAbsoluteHorizontalReplaced): Handle replaced
2267         case separately.
2268         (WebCore::RenderBox::calcAbsoluteVerticalReplaced): ditto.
2269         * rendering/RenderBox.h:
2270
2271 2006-05-12  David Hyatt  <hyatt@apple.com>
2272
2273         Bug 8880, remove the remaining drawing/hit testing code from
2274         FontData.
2275
2276         Reviewed by tim h
2277
2278         * platform/Font.cpp:
2279         (WebCore::m_finalRoundingWidth):
2280         (WebCore::WidthIterator::advanceOneCharacter):
2281         (WebCore::Font::selectionRectForText):
2282         (WebCore::Font::selectionRectForSimpleText):
2283         (WebCore::Font::offsetForPosition):
2284         (WebCore::Font::offsetForPositionForSimpleText):
2285         * platform/Font.h:
2286         (WebCore::TextRun::makeComplete):
2287         * platform/FontData.h:
2288         * platform/GlyphBuffer.h:
2289         (WebCore::GlyphBuffer::clear):
2290         * platform/mac/FontData.mm:
2291         * platform/mac/FontMac.mm:
2292         (WebCore::Font::selectionRectForComplexText):
2293         (WebCore::Font::offsetForPositionForComplexText):
2294
2295 2006-05-12  Kevin M. Ollivier  <kevino@theolliviers.com>
2296
2297         Reviewed by Maciej.
2298
2299         Add missing include.
2300         
2301         * dom/Node.h: Add missing include for DeprecatedString.
2302
2303 2006-05-12  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2304
2305         Reviewed by Darin.
2306
2307         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8835
2308           REGRESSION: Line moves but selection highlight stays behind
2309
2310         Test: fast/dynamic/selection-highlight-adjust.html
2311
2312         * rendering/render_line.cpp:
2313         (WebCore::RootInlineBox::adjustPosition): Adjust m_selectionTop
2314         and m_selectionBottom.
2315
2316 2006-05-12  Timothy Hatcher  <timothy@apple.com>
2317
2318         Reviewed by Darin.
2319
2320         http://bugzilla.opendarwin.org/show_bug.cgi?id=7156
2321         Bug 7156: TinyMCE: Links are actually activated in editable area, not editable.
2322         
2323         Links in editable areas will not activate or perform a navigation
2324         change (on par with WinIE and Firefox.) To visit the link
2325         you can shift-click. Manual test added.
2326
2327         * css/cssstyleselector.cpp:
2328         (WebCore::CSSStyleSelector::adjustRenderStyle):
2329         * html/HTMLAnchorElement.cpp:
2330         (WebCore::HTMLAnchorElement::defaultEventHandler):
2331         (WebCore::HTMLAnchorElement::setActive):
2332         * html/HTMLAnchorElement.h:
2333         * manual-tests/contenteditable-link.html: Added.
2334         * page/FrameView.cpp:
2335         (WebCore::selectCursor):
2336
2337 2006-05-12  Eric Seidel  <eseidel@apple.com>
2338
2339         Reviewed by timo.
2340
2341         Split out html_inlineimpl.* into separate files (one per class).
2342
2343         * WebCore.xcodeproj/project.pbxproj:
2344         * bindings/js/kjs_html.cpp:
2345         * bindings/objc/DOMHTML.mm:
2346         * editing/CreateLinkCommand.cpp:
2347         * editing/UnlinkCommand.cpp:
2348         * html/HTMLAnchorElement.cpp: Added.
2349         (WebCore::HTMLAnchorElement::HTMLAnchorElement):
2350         * html/HTMLAnchorElement.h: Added.
2351         * html/HTMLBRElement.cpp: Added.
2352         * html/HTMLBRElement.h: Added.
2353         * html/HTMLElementFactory.cpp:
2354         * html/HTMLFontElement.cpp: Added.
2355         (WebCore::HTMLFontElement::HTMLFontElement):
2356         (WebCore::HTMLFontElement::setColor):
2357         (WebCore::HTMLFontElement::setFace):
2358         (WebCore::HTMLFontElement::setSize):
2359         * html/HTMLFontElement.h: Added.
2360         * html/HTMLModElement.cpp: Added.
2361         (WebCore::HTMLModElement::setCite):
2362         (WebCore::HTMLModElement::setDateTime):
2363         * html/HTMLModElement.h: Added.
2364         * html/HTMLQuoteElement.cpp: Added.
2365         * html/HTMLQuoteElement.h: Added.
2366         * html/html_imageimpl.h:
2367         * html/html_inlineimpl.cpp: Removed.
2368         * html/html_inlineimpl.h: Removed.
2369         * page/FrameView.cpp:
2370
2371 2006-05-12  Eric Seidel  <eseidel@apple.com>
2372
2373         Reviewed by beth.
2374
2375         Fix build error.
2376
2377         * rendering/InlineFlowBox.cpp:
2378         * rendering/RootInlineBox.cpp:
2379
2380 2006-05-12  Eric Seidel  <eseidel@apple.com>
2381
2382         Reviewed by beth.
2383
2384         Split out render_line.* into separate files (one per class).
2385
2386         * WebCore.xcodeproj/project.pbxproj:
2387         * dom/ContainerNode.cpp:
2388         * rendering/EllipsisBox.cpp: Added.
2389         * rendering/EllipsisBox.h: Added.
2390         (WebCore::EllipsisBox::EllipsisBox):
2391         * rendering/InlineBox.cpp: Added.
2392         * rendering/InlineBox.h: Added.
2393         (WebCore::InlineBox::InlineBox):
2394         (WebCore::InlineBox::~InlineBox):
2395         (WebCore::InlineBox::bottomOverflow):
2396         (WebCore::InlineBox::rightOverflow):
2397         * rendering/InlineFlowBox.cpp: Added.
2398         (WebCore::InlineFlowBox::placeBoxesHorizontally):
2399         * rendering/InlineFlowBox.h: Added.
2400         * rendering/InlineRunBox.h: Added.
2401         (WebCore::InlineRunBox::InlineRunBox):
2402         (WebCore::InlineRunBox::paintBackgroundAndBorder):
2403         (WebCore::InlineRunBox::paintDecorations):
2404         * rendering/InlineTextBox.h:
2405         * rendering/RenderBlock.h:
2406         * rendering/RenderFlow.h:
2407         * rendering/RenderReplaced.cpp:
2408         * rendering/RootInlineBox.cpp: Added.
2409         * rendering/RootInlineBox.h: Added.
2410         (WebCore::RootInlineBox::RootInlineBox):
2411         * rendering/render_line.h: Removed.
2412
2413 2006-05-12  Eric Seidel  <eseidel@apple.com>
2414
2415         Reviewed by hyatt.
2416
2417         Split out table_layout.* into separate files (one per class).
2418         Search replace instance variables "foo" with "m_foo" to comply with modern style.
2419
2420         * WebCore.xcodeproj/project.pbxproj:
2421         * rendering/AutoTableLayout.cpp: Added.
2422         (WebCore::AutoTableLayout::AutoTableLayout):
2423         (WebCore::AutoTableLayout::recalcColumn):
2424         (WebCore::AutoTableLayout::fullRecalc):
2425         (WebCore::AutoTableLayout::calcMinMaxWidth):
2426         (WebCore::AutoTableLayout::calcEffectiveWidth):
2427         (WebCore::AutoTableLayout::insertSpanCell):
2428         (WebCore::AutoTableLayout::layout):
2429         (WebCore::AutoTableLayout::calcPercentages):
2430         * rendering/AutoTableLayout.h: Added.
2431         (WebCore::AutoTableLayout::totalPercent):
2432         (WebCore::AutoTableLayout::Layout::Layout):
2433         * rendering/FixedTableLayout.cpp: Added.
2434         (WebCore::FixedTableLayout::FixedTableLayout):
2435         (WebCore::FixedTableLayout::calcWidthArray):
2436         (WebCore::FixedTableLayout::calcMinMaxWidth):
2437         (WebCore::FixedTableLayout::layout):
2438         * rendering/FixedTableLayout.h: Added.
2439         * rendering/RenderTable.cpp:
2440         * rendering/TableLayout.h: Added.
2441         (WebCore::TableLayout::TableLayout):
2442         * rendering/table_layout.cpp: Removed.
2443         * rendering/table_layout.h: Removed.
2444
2445 2006-05-12  David Hyatt  <hyatt@apple.com>
2446
2447         Bug 8877.  Change form controls and the bridge entry points from the
2448         Safari UI to use Font instead of FontData.
2449
2450         Reviewed by mjs
2451
2452         * bridge/mac/WebCoreStringTruncator.mm:
2453         (stringWidth):
2454         (truncateString):
2455         (+[WebCoreStringTruncator widthOfString:font:]):
2456         (+[WebCoreStringTruncator clear]):
2457         * kwq/KWQComboBox.mm:
2458         (QComboBox::sizeHint):
2459         * kwq/KWQLineEdit.mm:
2460         (QLineEdit::sizeForCharacterWidth):
2461         * kwq/KWQListBox.mm:
2462         (itemTextRenderer):
2463         (groupLabelTextRenderer):
2464         (QListBox::sizeForNumberOfLines):
2465         (QListBox::clearCachedTextRenderers):
2466         (-[KWQTableView drawRow:clipRect:]):
2467         * platform/Font.cpp:
2468         (WebCore::Font::drawSimpleText):
2469         (WebCore::Font::drawText):
2470         * platform/Font.h:
2471         (WebCore::TextStyle::disableRoundingHacks):
2472         (WebCore::TextStyle::setRTL):
2473         * platform/FontData.h:
2474         * platform/FontFallbackList.h:
2475         * platform/FontPlatformData.h:
2476         (WebCore::FontPlatformData::syntheticOblique):
2477         * platform/Pen.h:
2478         * platform/mac/FontData.mm:
2479         (WebCore::FontData::smallCapsFontData):
2480         (WebCore::findSubstituteRenderer):
2481         * platform/mac/FontMac.mm:
2482         (WebCore::FontFallbackList::setPlatformFont):
2483         (WebCore::m_wordSpacing):
2484         (WebCore::Font::drawComplexText):
2485         * platform/mac/WebCoreTextRenderer.mm:
2486         (WebCoreDrawTextAtPoint):
2487         (WebCoreTextFloatWidth):
2488         * platform/win/FontWin.cpp:
2489         (WebCore::Font::drawText):
2490         * rendering/InlineTextBox.cpp:
2491         (WebCore::InlineTextBox::positionForOffset):
2492
2493 2006-05-12  Eric Seidel  <eseidel@apple.com>
2494
2495         Reviewed by kevin.
2496
2497         Move render_button to RenderButton.
2498         Various small style cleanup.
2499
2500         * WebCore.xcodeproj/project.pbxproj:
2501         * html/HTMLButtonElement.cpp:
2502         * html/HTMLElement.cpp:
2503         * html/HTMLGenericFormElement.cpp:
2504         * html/HTMLInputElement.cpp:
2505         * platform/mac/WebCoreTextArea.mm:
2506         * rendering/RenderApplet.h:
2507         * rendering/RenderBox.cpp:
2508         * rendering/RenderButton.cpp: Added.
2509         (WebCore::RenderButton::RenderButton):
2510         (WebCore::RenderButton::addChild):
2511         (WebCore::RenderButton::removeChild):
2512         * rendering/RenderButton.h: Added.
2513         * rendering/RenderEmptyApplet.h:
2514         * rendering/RenderHTMLCanvas.h:
2515         * rendering/RenderTreeAsText.cpp:
2516         * rendering/render_button.cpp: Removed.
2517         * rendering/render_button.h: Removed.
2518         * rendering/table_layout.cpp:
2519         (WebCore::FixedTableLayout::FixedTableLayout):
2520         (WebCore::FixedTableLayout::calcWidthArray):
2521         (WebCore::FixedTableLayout::calcMinMaxWidth):
2522         (WebCore::FixedTableLayout::layout):
2523         (WebCore::AutoTableLayout::AutoTableLayout):
2524         (WebCore::AutoTableLayout::recalcColumn):
2525         (WebCore::AutoTableLayout::fullRecalc):
2526         (WebCore::AutoTableLayout::calcMinMaxWidth):
2527         (WebCore::AutoTableLayout::calcEffectiveWidth):
2528         (WebCore::AutoTableLayout::insertSpanCell):
2529         (WebCore::AutoTableLayout::layout):
2530         * rendering/table_layout.h:
2531         (WebCore::TableLayout::TableLayout):
2532         (WebCore::AutoTableLayout::totalPercent):
2533         (WebCore::AutoTableLayout::Layout::Layout):
2534
2535 2006-05-12  Eric Seidel  <eseidel@apple.com>
2536
2537         Reviewed by mjs.
2538
2539         Split render_frames.* render_replaced.* and html_baseimpl.* into separate files (one class per file).
2540         http://bugzilla.opendarwin.org/show_bug.cgi?id=8878
2541
2542         * WebCore.xcodeproj/project.pbxproj:
2543         * bindings/js/kjs_html.cpp:
2544         (KJS::JSHTMLDocumentProtoFunc::callAsFunction):
2545         (KJS::JSHTMLDocument::namedItemGetter):
2546         (KJS::JSHTMLDocument::getValueProperty):
2547         (KJS::JSHTMLDocument::getOwnPropertySlot):
2548         (KJS::JSHTMLDocument::putValueProperty):
2549         (KJS::JSHTMLElement::formIndexGetter):
2550         (KJS::JSHTMLElement::formNameGetter):
2551         (KJS::JSHTMLElement::selectIndexGetter):
2552         (KJS::JSHTMLElement::framesetNameGetter):
2553         (KJS::JSHTMLElement::runtimeObjectGetter):
2554         (KJS::JSHTMLElement::runtimeObjectPropertyGetter):
2555         (KJS::JSHTMLElement::getOwnPropertySlot):
2556         (KJS::JSHTMLElement::implementsCall):
2557         (KJS::JSHTMLElement::callAsFunction):
2558         (KJS::JSHTMLElement::getValueProperty):
2559         (KJS::JSHTMLElement::toString):
2560         (KJS::getForm):
2561         (KJS::JSHTMLElement::pushEventHandlerScope):
2562         (KJS::HTMLElementFunction::callAsFunction):
2563         (KJS::JSHTMLElement::put):
2564         (KJS::JSHTMLElement::selectSetter):
2565         (KJS::JSHTMLElement::putValueProperty):
2566         (KJS::toHTMLElement):
2567         (KJS::toHTMLTableCaptionElement):
2568         (KJS::toHTMLTableSectionElement):
2569         (KJS::JSHTMLCollection::lengthGetter):
2570         (KJS::JSHTMLCollection::indexGetter):
2571         (KJS::JSHTMLCollection::nameGetter):
2572         (KJS::JSHTMLCollection::getOwnPropertySlot):
2573         (KJS::HTMLCollectionProtoFunc::callAsFunction):
2574         (KJS::JSHTMLSelectCollection::selectedIndexGetter):
2575         (KJS::JSHTMLSelectCollection::put):
2576         (KJS::OptionConstructorImp::construct):
2577         (KJS::getSelectHTMLCollection):
2578         * bindings/objc/DOMHTML.mm:
2579         * bridge/mac/FrameMac.mm:
2580         (WebCore::FrameMac::createFrame):
2581         * bridge/mac/WebCoreFrameBridge.mm:
2582         (-[WebCoreFrameBridge copyRenderNode:copier:]):
2583         * dom/Document.cpp:
2584         (WebCore::widgetForNode):
2585         * html/HTMLBodyElement.cpp: Added.
2586         (WebCore::HTMLBodyElement::HTMLBodyElement):
2587         (WebCore::HTMLBodyElement::parseMappedAttribute):
2588         * html/HTMLBodyElement.h: Added.
2589         * html/HTMLDocument.cpp:
2590         * html/HTMLElementFactory.cpp:
2591         * html/HTMLEmbedElement.cpp:
2592         * html/HTMLFrameElement.cpp: Added.
2593         (WebCore::HTMLFrameElement::isURLAllowed):
2594         (WebCore::HTMLFrameElement::parseMappedAttribute):
2595         (WebCore::HTMLFrameElement::setLocation):
2596         * html/HTMLFrameElement.h: Added.
2597         * html/HTMLFrameSetElement.cpp: Added.
2598         (WebCore::HTMLFrameSetElement::HTMLFrameSetElement):
2599         (WebCore::HTMLFrameSetElement::parseMappedAttribute):
2600         (WebCore::HTMLFrameSetElement::attach):
2601         (WebCore::HTMLFrameSetElement::defaultEventHandler):
2602         (WebCore::HTMLFrameSetElement::recalcStyle):
2603         * html/HTMLFrameSetElement.h: Added.
2604         * html/HTMLHeadElement.cpp: Added.
2605         (WebCore::HTMLHeadElement::HTMLHeadElement):
2606         * html/HTMLHeadElement.h: Added.
2607         * html/HTMLHtmlElement.cpp: Added.
2608         (WebCore::HTMLHtmlElement::HTMLHtmlElement):
2609         * html/HTMLHtmlElement.h: Added.
2610         * html/HTMLIFrameElement.cpp: Added.
2611         (WebCore::HTMLIFrameElement::HTMLIFrameElement):
2612         * html/HTMLIFrameElement.h: Added.
2613         * html/HTMLObjectElement.cpp:
2614         * html/HTMLParser.cpp:
2615         * html/html_baseimpl.cpp: Removed.
2616         * html/html_baseimpl.h: Removed.
2617         * kwq/WebCoreAXObject.mm:
2618         * page/Frame.cpp:
2619         (WebCore::isFrameElement):
2620         (WebCore::Frame::applyEditingStyleToBodyElement):
2621         (WebCore::Frame::removeEditingStyleFromBodyElement):
2622         (WebCore::Frame::applyEditingStyleToElement):
2623         (WebCore::Frame::removeEditingStyleFromElement):
2624         (WebCore::Frame::selectionRect):
2625         (WebCore::Frame::isFrameSet):
2626         (WebCore::scanForForm):
2627         (WebCore::Frame::currentForm):
2628         (WebCore::Frame::nodeInfoAtPoint):
2629         (WebCore::Frame::adjustPageHeight):
2630         (WebCore::Frame::frameForWidget):
2631         (WebCore::Frame::forceLayoutWithPageWidthRange):
2632         (WebCore::Frame::passWidgetMouseDownEventToWidget):
2633         * page/FrameView.cpp:
2634         * rendering/RenderFrame.cpp: Added.
2635         (WebCore::RenderFrame::viewCleared):
2636         * rendering/RenderFrame.h: Added.
2637         * rendering/RenderFrameSet.cpp: Added.
2638         (WebCore::RenderFrameSet::RenderFrameSet):
2639         (WebCore::RenderFrameSet::~RenderFrameSet):
2640         (WebCore::RenderFrameSet::layout):
2641         (WebCore::RenderFrameSet::positionFrames):
2642         (WebCore::RenderFrameSet::userResize):
2643         (WebCore::RenderFrameSet::canResize):
2644         (WebCore::RenderFrameSet::dump):
2645         * rendering/RenderFrameSet.h: Added.
2646         * rendering/RenderImage.h:
2647         * rendering/RenderPart.cpp: Added.
2648         (WebCore::RenderPart::RenderPart):
2649         * rendering/RenderPart.h: Added.
2650         * rendering/RenderPartObject.cpp: Added.
2651         (WebCore::isURLAllowed):
2652         (WebCore::RenderPartObject::updateWidget):
2653         (WebCore::RenderPartObject::viewCleared):
2654         * rendering/RenderPartObject.h: Added.
2655         * rendering/RenderReplaced.cpp: Added.
2656         (WebCore::RenderReplaced::selectionColor):
2657         * rendering/RenderReplaced.h: Added.
2658         * rendering/RenderWidget.cpp: Added.
2659         (WebCore::RenderWidget::deleteWidget):
2660         * rendering/RenderWidget.h: Added.
2661         * rendering/render_form.h:
2662         * rendering/render_frames.cpp: Removed.
2663         * rendering/render_frames.h: Removed.
2664         * rendering/render_replaced.cpp: Removed.
2665         * rendering/render_replaced.h: Removed.
2666
2667 2006-05-12  Eric Seidel  <eseidel@apple.com>
2668
2669         Reviewed by beth.
2670
2671         Split html_headimpl.* into separate files (one per class)
2672         http://bugzilla.opendarwin.org/show_bug.cgi?id=8875
2673
2674         * WebCore.xcodeproj/project.pbxproj:
2675         * bindings/js/kjs_css.cpp:
2676         * bindings/js/kjs_html.cpp:
2677         (KJS::JSHTMLElement::headGetter):
2678         (KJS::JSHTMLElement::linkGetter):
2679         * bindings/objc/DOMCSS.mm:
2680         (+[DOMCounter _counterWith:]):
2681         (-[DOMCounter finalize]):
2682         (-[DOMCounter _DOMStyleSheet]):
2683         (-[DOMStyleSheet _initWithStyleSheet:]):
2684         (-[DOMStyleSheetList dealloc]):
2685         (-[DOMStyleSheetList finalize]):
2686         (-[DOMStyleSheetList _styleSheetList]):
2687         (-[DOMStyleSheetList _initWithStyleSheetList:]):
2688         (-[DOMCSSStyleSheet _CSSStyleSheet]):
2689         (-[DOMMediaList dealloc]):
2690         (-[DOMMediaList finalize]):
2691         (-[DOMMediaList _mediaList]):
2692         (-[DOMMediaList _initWithMediaList:]):
2693         (-[DOMCSSRuleList dealloc]):
2694         (-[DOMCSSRuleList finalize]):
2695         (-[DOMCSSRuleList _ruleList]):
2696         (-[DOMCSSRuleList _initWithRuleList:]):
2697         (-[DOMCSSRule dealloc]):
2698         (-[DOMCSSRule finalize]):
2699         (-[DOMCSSRule _rule]):
2700         (-[DOMCSSRule _initWithRule:]):
2701         (-[DOMCSSStyleRule _styleRule]):
2702         (-[DOMCSSMediaRule _mediaRule]):
2703         (-[DOMCSSFontFaceRule _fontFaceRule]):
2704         (-[DOMCSSPageRule _pageRule]):
2705         (-[DOMCSSImportRule _importRule]):
2706         (-[DOMCSSCharsetRule _importRule]):
2707         (-[DOMCSSStyleDeclaration dealloc]):
2708         (-[DOMCSSStyleDeclaration finalize]):
2709         (-[DOMCSSStyleDeclaration _initWithStyleDeclaration:]):
2710         (-[DOMCSSStyleDeclaration _styleDeclaration]):
2711         (-[DOMCSSValue dealloc]):
2712         (-[DOMCSSValue finalize]):
2713         (-[DOMCSSValue _value]):
2714         (-[DOMCSSValue _initWithValue:]):
2715         (-[DOMCSSPrimitiveValue _primitiveValue]):
2716         (-[DOMCSSValueList _valueList]):
2717         (getWrapperForRGB):
2718         (setWrapperForRGB):
2719         (removeWrapperForRGB):
2720         (-[DOMRGBColor _initWithRGB:]):
2721         (-[DOMRect dealloc]):
2722         (-[DOMRect finalize]):
2723         (-[DOMRect _rect]):
2724         (-[DOMRect _initWithRect:]):
2725         (-[DOMCounter dealloc]):
2726         (-[DOMCounter _counter]):
2727         (-[DOMCounter _initWithCounter:]):
2728         (-[DOMObject sheet]):
2729         * bindings/objc/DOMHTML.mm:
2730         (-[DOMHTMLCollection dealloc]):
2731         (-[DOMHTMLCollection finalize]):
2732         (-[DOMHTMLCollection _collection]):
2733         (-[DOMHTMLCollection _initWithCollection:]):
2734         (-[DOMHTMLOptionsCollection dealloc]):
2735         (-[DOMHTMLOptionsCollection finalize]):
2736         (-[DOMHTMLOptionsCollection _initWithOptionsCollection:]):
2737         (-[DOMHTMLOptionsCollection _optionsCollection]):
2738         (+[DOMHTMLElement _elementWith:]):
2739         (-[DOMHTMLElement _HTMLElement]):
2740         (-[DOMHTMLDocument _HTMLDocument]):
2741         (-[DOMHTMLHtmlElement _HTMLHtmlElement]):
2742         (-[DOMHTMLHeadElement _headElement]):
2743         (-[DOMHTMLLinkElement _linkElement]):
2744         (-[DOMHTMLTitleElement _titleElement]):
2745         (-[DOMHTMLMetaElement _metaElement]):
2746         (-[DOMHTMLBaseElement _baseElement]):
2747         (-[DOMHTMLStyleElement _styleElement]):
2748         (-[DOMHTMLBodyElement _bodyElement]):
2749         (-[DOMHTMLFormElement _formElement]):
2750         (+[DOMHTMLFormElement _formElementWith:]):
2751         (-[DOMHTMLIsIndexElement _isIndexElement]):
2752         (-[DOMHTMLSelectElement _selectElement]):
2753         (-[DOMHTMLOptGroupElement _optGroupElement]):
2754         (-[DOMHTMLOptionElement _optionElement]):
2755         (-[DOMHTMLInputElement _inputElement]):
2756         (-[DOMHTMLTextAreaElement _textAreaElement]):
2757         (-[DOMHTMLButtonElement _buttonElement]):
2758         (-[DOMHTMLLabelElement _labelElement]):
2759         (-[DOMHTMLLabelElement form]):
2760         (-[DOMHTMLFieldSetElement _fieldSetElement]):
2761         (-[DOMHTMLLegendElement _legendElement]):
2762         (-[DOMHTMLUListElement _uListElement]):
2763         (-[DOMHTMLOListElement _oListElement]):
2764         (-[DOMHTMLDListElement _dListElement]):
2765         (-[DOMHTMLDirectoryElement _directoryListElement]):
2766         (-[DOMHTMLMenuElement _menuListElement]):
2767         (-[DOMHTMLLIElement _liElement]):
2768         (-[DOMHTMLQuoteElement _quoteElement]):
2769         (-[DOMHTMLDivElement _divElement]):
2770         (-[DOMHTMLParagraphElement _paragraphElement]):
2771         (-[DOMHTMLHeadingElement _headingElement]):
2772         (-[DOMHTMLPreElement _preElement]):
2773         (-[DOMHTMLBRElement _BRElement]):
2774         (-[DOMHTMLBaseFontElement _baseFontElement]):
2775         (-[DOMHTMLFontElement _fontElement]):
2776         (-[DOMHTMLHRElement _HRElement]):
2777         (-[DOMHTMLModElement _modElement]):
2778         (-[DOMHTMLAnchorElement _anchorElement]):
2779         (-[DOMHTMLImageElement _imageElement]):
2780         (-[DOMHTMLObjectElement _objectElement]):
2781         (-[DOMHTMLParamElement _paramElement]):
2782         (-[DOMHTMLMapElement _mapElement]):
2783         (-[DOMHTMLAreaElement _areaElement]):
2784         (-[DOMHTMLScriptElement _scriptElement]):
2785         (+[DOMHTMLTableCaptionElement _tableCaptionElementWith:]):
2786         (-[DOMHTMLTableCaptionElement _tableCaptionElement]):
2787         (+[DOMHTMLTableSectionElement _tableSectionElementWith:]):
2788         (-[DOMHTMLTableSectionElement _tableSectionElement]):
2789         (-[DOMHTMLTableElement createTHead]):
2790         (-[DOMHTMLTableElement createTFoot]):
2791         (-[DOMHTMLTableElement createCaption]):
2792         (-[DOMHTMLTableElement insertRow:]):
2793         (+[DOMHTMLTableElement _tableElementWith:]):
2794         (-[DOMHTMLTableElement _tableElement]):
2795         (-[DOMHTMLTableColElement _tableColElement]):
2796         (-[DOMHTMLTableRowElement _tableRowElement]):
2797         (-[DOMHTMLTableRowElement insertCell:]):
2798         (+[DOMHTMLTableCellElement _tableCellElementWith:]):
2799         (-[DOMHTMLTableCellElement _tableCellElement]):
2800         (-[DOMHTMLFrameSetElement _frameSetElement]):
2801         (-[DOMHTMLFrameElement _frameElement]):
2802         (-[DOMHTMLIFrameElement _IFrameElement]):
2803         (-[DOMHTMLEmbedElement _embedElement]):
2804         (viewForElement):
2805         * bridge/mac/FrameMac.mm:
2806         (WebCore::FrameMac::searchForLabelsAboveCell):
2807         (WebCore::FrameMac::searchForLabelsBeforeElement):
2808         (WebCore::FrameMac::createFrame):
2809         (WebCore::FrameMac::passMouseDownEventToWidget):
2810         (WebCore::FrameMac::passSubframeEventToSubframe):
2811         (WebCore::FrameMac::passWheelEventToChildWidget):
2812         (WebCore::FrameMac::fileWrapperForElement):
2813         (WebCore::listParent):
2814         (WebCore::FrameMac::attributedString):
2815         (WebCore::FrameMac::shouldBeginEditing):
2816         (WebCore::FrameMac::shouldEndEditing):
2817         (WebCore::FrameMac::setMarkedTextRange):
2818         * dom/Document.cpp:
2819         * dom/xml_tokenizer.cpp:
2820         * html/HTMLBaseElement.cpp: Added.
2821         (WebCore::HTMLBaseElement::removedFromDocument):
2822         (WebCore::HTMLBaseElement::process):
2823         * html/HTMLBaseElement.h: Added.
2824         * html/HTMLDocument.cpp:
2825         * html/HTMLElementFactory.cpp:
2826         * html/HTMLLinkElement.cpp: Added.
2827         (WebCore::HTMLLinkElement::HTMLLinkElement):
2828         (WebCore::HTMLLinkElement::process):
2829         * html/HTMLLinkElement.h: Added.
2830         * html/HTMLMetaElement.cpp: Added.
2831         (WebCore::HTMLMetaElement::HTMLMetaElement):
2832         (WebCore::HTMLMetaElement::parseMappedAttribute):
2833         (WebCore::HTMLMetaElement::process):
2834         (WebCore::HTMLMetaElement::setContent):
2835         (WebCore::HTMLMetaElement::setHttpEquiv):
2836         (WebCore::HTMLMetaElement::setName):
2837         * html/HTMLMetaElement.h: Added.
2838         * html/HTMLParser.cpp:
2839         * html/HTMLScriptElement.cpp: Added.
2840         (WebCore::HTMLScriptElement::HTMLScriptElement):
2841         (WebCore::HTMLScriptElement::parseMappedAttribute):
2842         (WebCore::HTMLScriptElement::evaluateScript):
2843         * html/HTMLScriptElement.h: Added.
2844         * html/HTMLStyleElement.cpp: Added.
2845         (WebCore::HTMLStyleElement::HTMLStyleElement):
2846         * html/HTMLStyleElement.h: Added.
2847         * html/HTMLTitleElement.cpp: Added.
2848         (WebCore::HTMLTitleElement::HTMLTitleElement):
2849         (WebCore::HTMLTitleElement::text):
2850         (WebCore::HTMLTitleElement::setText):
2851         * html/HTMLTitleElement.h: Added.
2852         * html/html_headimpl.cpp: Removed.
2853         * html/html_headimpl.h: Removed.
2854         * loader/CachedCSSStyleSheet.h:
2855         * rendering/RenderTableCell.cpp:
2856         (WebCore::RenderTableCell::updateFromElement):
2857         * rendering/RenderTableCol.cpp:
2858         (WebCore::RenderTableCol::updateFromElement):
2859
2860 2006-05-12  Eric Seidel  <eseidel@apple.com>
2861
2862         Reviewed by beth.
2863
2864         Split out html_tableimpl.* into multiple files (one per class)
2865         http://bugzilla.opendarwin.org/show_bug.cgi?id=8873
2866
2867         * WebCore.xcodeproj/project.pbxproj:
2868         * html/HTMLTableCaptionElement.cpp: Added.
2869         (WebCore::HTMLTableCaptionElement::HTMLTableCaptionElement):
2870         * html/HTMLTableCaptionElement.h: Added.
2871         * html/HTMLTableCellElement.cpp: Added.
2872         (WebCore::HTMLTableCellElement::HTMLTableCellElement):
2873         * html/HTMLTableCellElement.h: Added.
2874         * html/HTMLTableColElement.cpp: Added.
2875         (WebCore::HTMLTableColElement::HTMLTableColElement):
2876         (WebCore::HTMLTableColElement::endTagRequirement):
2877         (WebCore::HTMLTableColElement::tagPriority):
2878         (WebCore::HTMLTableColElement::checkDTD):
2879         * html/HTMLTableColElement.h: Added.
2880         * html/HTMLTableElement.cpp: Added.
2881         (WebCore::HTMLTableElement::HTMLTableElement):
2882         (WebCore::HTMLTableElement::setCaption):
2883         (WebCore::HTMLTableElement::setTHead):
2884         (WebCore::HTMLTableElement::setTFoot):
2885         (WebCore::HTMLTableElement::setTBody):
2886         (WebCore::HTMLTableElement::createTHead):
2887         (WebCore::HTMLTableElement::deleteTHead):
2888         (WebCore::HTMLTableElement::createTFoot):
2889         (WebCore::HTMLTableElement::deleteTFoot):
2890         (WebCore::HTMLTableElement::createCaption):
2891         (WebCore::HTMLTableElement::deleteCaption):
2892         (WebCore::HTMLTableElement::insertRow):
2893         (WebCore::HTMLTableElement::deleteRow):
2894         (WebCore::HTMLTableElement::addChild):
2895         (WebCore::HTMLTableElement::parseMappedAttribute):
2896         (WebCore::HTMLTableElement::attach):
2897         * html/HTMLTableElement.h: Added.
2898         * html/HTMLTablePartElement.cpp: Added.
2899         (WebCore::HTMLTablePartElement::parseMappedAttribute):
2900         * html/HTMLTablePartElement.h: Added.
2901         * html/HTMLTableRowElement.cpp: Added.
2902         (WebCore::HTMLTableRowElement::HTMLTableRowElement):
2903         (WebCore::HTMLTableRowElement::rowIndex):
2904         * html/HTMLTableRowElement.h: Added.
2905         * html/HTMLTableSectionElement.cpp: Added.
2906         (WebCore::HTMLTableSectionElement::insertRow):
2907         * html/HTMLTableSectionElement.h: Added.
2908         * html/html_tableimpl.cpp: Removed.
2909         * html/html_tableimpl.h: Removed.
2910
2911 2006-05-10  Eric Seidel  <eseidel@apple.com>
2912
2913         Reviewed by mjs & adele.
2914
2915         Split html_objectimpl.* into multiple files (one per class)
2916         http://bugzilla.opendarwin.org/show_bug.cgi?id=8836
2917
2918         * WebCore.xcodeproj/project.pbxproj:
2919         * bindings/js/kjs_dom.cpp:
2920         (KJS::DOMNamedNodeMap::lengthGetter):
2921         (KJS::DOMNamedNodeMap::indexGetter):
2922         (KJS::DOMNamedNodeMap::nameGetter):
2923         (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
2924         (KJS::getRuntimeObject):
2925         * bindings/js/kjs_html.cpp:
2926         * html/HTMLAppletElement.cpp: Added.
2927         * html/HTMLAppletElement.h: Added.
2928         * html/HTMLElementFactory.cpp:
2929         * html/HTMLEmbedElement.cpp: Added.
2930         (WebCore::HTMLEmbedElement::HTMLEmbedElement):
2931         (WebCore::HTMLEmbedElement::getInstance):
2932         (WebCore::HTMLEmbedElement::parseMappedAttribute):
2933         * html/HTMLEmbedElement.h: Added.
2934         * html/HTMLNameCollection.cpp:
2935         (WebCore::HTMLNameCollection::traverseNextItem):
2936         * html/HTMLObjectElement.cpp: Added.
2937         (WebCore::HTMLObjectElement::getInstance):
2938         (WebCore::HTMLObjectElement::form):
2939         (WebCore::HTMLObjectElement::parseMappedAttribute):
2940         (WebCore::HTMLObjectElement::updateDocNamedItem):
2941         * html/HTMLObjectElement.h: Added.
2942         * html/HTMLParamElement.cpp: Added.
2943         * html/HTMLParamElement.h: Added.
2944         * html/HTMLParser.cpp:
2945         * html/HTMLPlugInElement.cpp: Added.
2946         * html/HTMLPlugInElement.h: Added.
2947         * html/html_objectimpl.cpp: Removed.
2948         * html/html_objectimpl.h: Removed.
2949         * page/Frame.cpp:
2950         (WebCore::Frame::handleFallbackContent):
2951         * rendering/RenderApplet.cpp:
2952         * rendering/render_frames.cpp:
2953         (WebCore::RenderPartObject::updateWidget):
2954
2955 2006-05-12  Darin Adler  <darin@apple.com>
2956
2957         Reviewed by Adele.
2958
2959         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8521
2960           crash bringing up context menu with CSS generated content
2961
2962         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::sendContextMenuEvent):
2963         Added a null check.
2964
2965         * manual-tests/context-click-generated-content.html: Added.
2966
2967 2006-05-12  Darin Adler  <darin@apple.com>
2968
2969         Reviewed by Adele.
2970
2971         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8715
2972           REGRESSION: Caret to the right of an image is a big black rectangle.
2973
2974         * rendering/RenderBox.cpp: (WebCore::RenderBox::caretRect): Move caret to the
2975         right side of the rect when the offset is non-zero, rather than expanding it.
2976
2977         * manual-tests/caret-image.html: Added.
2978
2979 2006-05-12  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2980
2981         Reviewed and landed by Anders.
2982         
2983         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8866
2984           REGRESSION: Incorrect caret position in RTL text
2985
2986         Test: fast/text/international/rtl-caret.html
2987
2988         * rendering/InlineTextBox.cpp:
2989         (WebCore::InlineTextBox::positionForOffset): Added missing m_toAdd argument.
2990
2991 2006-05-12  David Hyatt  <hyatt@apple.com>
2992
2993         Bug 8864. Lift WebCoreTextStyle up into the API (as TextStyle).
2994
2995         Reviewed by mjs
2996
2997         * platform/Font.cpp:
2998         (WebCore::m_finalRoundingWidth):
2999         (WebCore::WidthIterator::advance):
3000         (WebCore::Font::width):
3001         (WebCore::Font::drawSimpleText):
3002         (WebCore::Font::drawText):
3003         (WebCore::Font::floatWidth):
3004         (WebCore::Font::floatWidthForSimpleText):
3005         * platform/Font.h:
3006         (WebCore::TextStyle::m_attemptFontSubstitution):
3007         (WebCore::TextStyle::tabWidth):
3008         (WebCore::TextStyle::xPos):
3009         (WebCore::TextStyle::padding):
3010         (WebCore::TextStyle::rtl):
3011         (WebCore::TextStyle::ltr):
3012         (WebCore::TextStyle::directionalOverride):
3013         (WebCore::TextStyle::applyRunRounding):
3014         (WebCore::TextStyle::applyWordRounding):
3015         (WebCore::TextStyle::attemptFontSubstitution):
3016         (WebCore::Font::operator==):
3017         * platform/GraphicsContext.cpp:
3018         (WebCore::GraphicsContext::drawText):
3019         (WebCore::GraphicsContext::drawHighlightForText):
3020         * platform/GraphicsContext.h:
3021         * platform/mac/FontMac.mm:
3022         (WebCore::overrideLayoutOperation):
3023         (WebCore::ATSULayoutParameters::initialize):
3024         (WebCore::Font::selectionRectForText):
3025         (WebCore::Font::drawComplexText):
3026         (WebCore::Font::floatWidthForComplexText):
3027         (WebCore::Font::offsetForPosition):
3028         * rendering/InlineTextBox.cpp:
3029         (WebCore::InlineTextBox::selectionRect):
3030         (WebCore::InlineTextBox::paint):
3031         (WebCore::InlineTextBox::paintSelection):
3032         (WebCore::InlineTextBox::paintMarkedTextBackground):
3033         (WebCore::InlineTextBox::paintTextMatchMarker):
3034         (WebCore::InlineTextBox::offsetForPosition):
3035         (WebCore::InlineTextBox::positionForOffset):
3036         * rendering/RenderText.cpp:
3037         (WebCore::RenderText::widthFromCache):
3038         (WebCore::RenderText::calcMinMaxWidth):
3039         (WebCore::RenderText::width):
3040         * rendering/RenderTextField.cpp:
3041         (WebCore::RenderTextField::calcMinMaxWidth):
3042         * rendering/render_line.cpp:
3043         (WebCore::EllipsisBox::paint):
3044
3045 2006-05-11  Alexey Proskuryakov  <ap@nypop.com>
3046
3047         Reviewed by Darin.
3048
3049         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8770
3050           XMLHttpRequest should strip CR/LF characters from the URL
3051
3052         Test: fast/loader/url-strip-cr-lf-tab.html
3053
3054         * platform/KURL.cpp:
3055         (appendEscapingBadChars): Strip CR, LF and TAB, as Firefox and IE do.
3056
3057 2006-05-11  David Hyatt  <hyatt@apple.com>
3058
3059         Remove the misspelling drawing code from Font and FontData.  Implement it
3060         natively in GraphicContext instead.
3061
3062         Reviewed by maciej
3063
3064         * platform/FontData.h:
3065         * platform/GraphicsContext.cpp:
3066         * platform/GraphicsContext.h:
3067         * platform/cairo/GraphicsContextCairo.cpp:
3068         (WebCore::GraphicsContext::drawLineForMisspelling):
3069         * platform/mac/FontData.mm:
3070         * platform/mac/FontMac.mm:
3071         * platform/mac/GraphicsContextMac.mm:
3072         (WebCore::GraphicsContext::drawLineForMisspelling):
3073         * platform/win/FontWin.cpp:
3074         * rendering/InlineTextBox.cpp:
3075         (WebCore::InlineTextBox::paintSpellingMarker):
3076
3077 2006-05-11  David Hyatt  <hyatt@apple.com>
3078
3079         Remove drawLineForText from the Font API.  Implement it natively in
3080         the two GraphicsContexts (CG and Cairo) instead.
3081
3082         Reviewed by maciej
3083
3084         * platform/Font.h:
3085         * platform/FontData.h:
3086         * platform/GraphicsContext.cpp:
3087         * platform/GraphicsContext.h:
3088         * platform/cairo/GraphicsContextCairo.cpp:
3089         (WebCore::GraphicsContext::drawLineForText):
3090         * platform/cg/GraphicsContextCG.cpp:
3091         (WebCore::GraphicsContext::drawLineForText):
3092         * platform/mac/FontData.mm:
3093         * platform/mac/FontMac.mm:
3094         * platform/win/FontWin.cpp:
3095         (WebCore::Font::drawLineForText):
3096         * rendering/InlineTextBox.cpp:
3097         (WebCore::InlineTextBox::paintDecoration):
3098         (WebCore::InlineTextBox::paintMarkedTextUnderline):
3099         * rendering/render_line.cpp:
3100         (WebCore::InlineFlowBox::paintDecorations):
3101
3102 2006-05-11  Steve Falkenburg  <sfalken@apple.com>
3103
3104         Reviewed by eric.
3105
3106         Fix last fix.
3107
3108         * dom/QualifiedName.h:
3109         (WebCore::QualifiedName::QualifiedName):
3110
3111 2006-05-11  Steve Falkenburg  <sfalken@apple.com>
3112
3113         Reviewed by eric.
3114
3115         Fix crash on static constructors builds at exit due to qualified name default constructor not
3116         initializing m_impl.
3117
3118         * dom/QualifiedName.cpp:
3119         (WebCore::QualifiedName::deref):
3120
3121 2006-05-11  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3122
3123         Reviewed by hyatt
3124
3125         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8851
3126           REGRESSION: RTL text shifted to the right
3127
3128         Already covered by several tests in fast/text
3129
3130         * platform/Font.h:
3131         (WebCore::TextRun::TextRun): Added length parameter.
3132         * rendering/InlineTextBox.cpp: Pass the length to the TextRun constructor.
3133         (WebCore::InlineTextBox::selectionRect):
3134         (WebCore::InlineTextBox::paint):
3135         (WebCore::InlineTextBox::paintSelection):
3136         (WebCore::InlineTextBox::paintMarkedTextBackground):
3137         (WebCore::InlineTextBox::paintTextMatchMarker):
3138         (WebCore::InlineTextBox::offsetForPosition):
3139         (WebCore::InlineTextBox::positionForOffset):
3140         * rendering/RenderText.cpp:
3141         (WebCore::RenderText::widthFromCache): Pass length and from instead of from and to
3142         to the TextRun constructor.
3143         (WebCore::RenderText::width): Ditto.
3144
3145 2006-05-11  David Hyatt  <hyatt@apple.com>
3146
3147         Fix a regression from the TextRun landing.  Delete the characters in
3148         the adjustedRun, not the ones in the original run!
3149
3150         Reviewed by beth
3151
3152         * platform/mac/FontMac.mm:
3153         (WebCore::Font::drawComplexText):
3154
3155 2006-05-10  Justin Garcia  <justin.garcia@apple.com>
3156
3157         Reviewed by thatcher, levi
3158
3159         * editing/ReplaceSelectionCommand.cpp:
3160         (WebCore::ReplaceSelectionCommand::doApply):
3161         Removed a use fragment.hasMoreThanOneBlock to decide if the paragraph containing the
3162         position pasted into must be split to avoid block nesting.  We now split unnecessarily
3163         some times, but the end merge cleans up for us.
3164
3165 2006-05-11  David Hyatt  <hyatt@apple.com>
3166
3167         This patch makes drawHighlightForText a completely cross-platform method
3168         implemented by the GraphicsContext.  The platform-specific implementations
3169         of the method in the Font class have been eliminated.
3170
3171         Reviewed by andersca
3172
3173         * platform/Font.h:
3174         * platform/FontData.h:
3175         Remove the drawHighlight methods.  Change the selectionRect method in
3176         Font to return a FloatRect so that the GraphicsContext can do an accurate
3177         fill.
3178
3179         * platform/GraphicsContext.cpp:
3180         (WebCore::GraphicsContext::drawHighlightForText):
3181         Implement the drawHighlightFunction in terms of the cross-platform
3182         Font selectionRect functions and a new float-based fillRect graphics context
3183         function.
3184
3185         * platform/GraphicsContext.h:
3186         * platform/cairo/GraphicsContextCairo.cpp:
3187         (WebCore::GraphicsContext::fillRect):
3188         * platform/cg/GraphicsContextCG.cpp:
3189         (WebCore::GraphicsContext::fillRect):
3190         Add the new float-based fillRect function for Cairo and CG.
3191
3192         * platform/mac/FontData.mm:
3193         (WebCore::CG_draw):
3194         (WebCore::ATSU_draw):
3195         Removed the CG and ATSU drawHighlight methods.  Remove the drawing of
3196         the background from the deprecated draw methods (they'll be removed
3197         soon).
3198
3199         * platform/mac/FontMac.mm:
3200         (WebCore::Font::selectionRectForText):
3201         * platform/win/FontWin.cpp:
3202         (WebCore::Font::selectionRectForText):
3203         Change selectionRectForText to return a FloatRect instead of an IntRect,
3204         so that the GraphicsContext can do a precise fill.
3205
3206         * rendering/InlineTextBox.cpp:
3207         (WebCore::InlineTextBox::selectionRect):
3208         (WebCore::InlineTextBox::positionForOffset):
3209         Modify the callers who expect an int-based selection rect so that they call
3210         enclosingIntRect.
3211
3212 2006-05-11  Darin Adler  <darin@apple.com>
3213
3214         Reviewed by Adele.
3215
3216         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8743
3217           REGRESSION: focus() on input field selects all text within it
3218           (was: cannot select cities on British Rail reservation site)
3219
3220         Test: fast/forms/double-focus.html
3221
3222         * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::focus):
3223         Changed to only call setFocusNode, select, and revealSelection
3224         if the element is not already focused. Also changed to use return
3225         a bit more rather than else.
3226
3227 2006-05-11  Darin Adler  <darin@apple.com>
3228
3229         Reviewed by Tim Hatcher (earlier version).
3230
3231         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8821
3232           use the preprocessor for IDL files
3233
3234         * bindings/scripts/IDLParser.pm: Invoke the preprocessor via the "gcc"
3235         driver script, passing "-E" so we only preprocess, "-P" so we don't get
3236         "#line" directives, and "-x c++" so we handle both C and C++ comments.
3237         Removed the code to eliminate comments since the preprocessor handles that.
3238         * css/make-css-file-arrays.pl: This already invoked the preprocessor, but
3239         updated it to do the same way as above.
3240
3241 2006-05-11  Anders Carlsson  <acarlsson@apple.com>
3242
3243         Reviewed by Darin.
3244
3245         http://bugzilla.opendarwin.org/show_bug.cgi?id=7838
3246         Add support for mozilla-style node constructors as properties of the window object
3247         
3248         * DerivedSources.make:
3249         * WebCore.xcodeproj/project.pbxproj:
3250         Add new generated files.
3251         
3252         * bindings/js/JSCanvasRenderingContext2DBase.cpp:
3253         (WebCore::JSCanvasRenderingContext2DBaseProtoFunc::callAsFunction):
3254         * bindings/js/JSHTMLElementWrapperFactory.cpp:
3255         (WebCore::createJSWrapper):
3256         Specify the KJS namespace for JSHTMLElmement.
3257                 
3258         * bindings/js/kjs_dom.cpp:
3259         (KJS::toJS):
3260         Create a WebCore::JSHTMLDocument for document nodes. Also, create
3261         JSDocumentFragments for document fragments (instead of plain node objects).
3262         
3263         * bindings/js/kjs_html.cpp:
3264         (KJS::JSHTMLDocumentProtoFunc::callAsFunction):
3265         (KJS::JSHTMLDocument::JSHTMLDocument):
3266         (KJS::JSHTMLDocument::getOwnPropertySlot):
3267         Add a prototype for JSHTMLDocument and move all functions there.
3268         
3269         (KJS::JSHTMLElement::JSHTMLElement):
3270         (KJS::JSHTMLElement::getOwnPropertySlot):
3271         Update since JSHTMLElement now inherits from WebCore::JSHTMLElement.
3272         
3273         (KJS::JSHTMLElement::getValueProperty):
3274         (KJS::JSHTMLElement::putValueProperty):
3275         Remove title setter and getter. Those are autogenerated now.
3276         
3277         * bindings/js/kjs_html.h:
3278         (KJS::JSHTMLElement::):
3279         Inherit from WebCore::JSHTMLElement. Clarify the inheritance chain.
3280         
3281         * bindings/scripts/CodeGeneratorJS.pm:
3282         Always generate a prototype object, regardless of whether the object has any functions or
3283         constants.
3284         
3285         Use the type of generator attributes to determine what constructor to use. This is useful for
3286         the XMLDocument property in DOMWindow.idl, since that's just an alias for the Document constructor.
3287         
3288         * dom/DocumentFragment.idl: Added.        
3289         * html/HTMLDocument.idl: Added.
3290         * html/HTMLElement.idl: Added.
3291         
3292         * page/DOMWindow.idl:
3293         Add constructors for DocumentFragment, HTMLElement, HTMLDocument and XMLDocument. XMLDocument is just
3294         an alias for the Document constructor.
3295         
3296 2006-05-11  David Hyatt  <hyatt@apple.com>
3297
3298         Bug 8845.  Define a TextRun (similar to the old WebCoreTextRun) and
3299         make it the new API for Font and GraphicsContext when drawing/measuring
3300         text.
3301
3302         Reviewed by andersca
3303
3304         * platform/Font.cpp:
3305         (WebCore::m_finalRoundingWidth):
3306         (WebCore::WidthIterator::advance):
3307         (WebCore::WidthIterator::normalizeVoicingMarks):
3308         (WebCore::Font::width):
3309         (WebCore::Font::canUseGlyphCache):
3310         (WebCore::Font::drawSimpleText):
3311         (WebCore::Font::drawText):
3312         (WebCore::Font::floatWidth):
3313         (WebCore::Font::floatWidthForSimpleText):
3314         * platform/Font.h:
3315         (WebCore::TextRun::m_to):
3316         (WebCore::TextRun::operator[]):
3317         (WebCore::TextRun::data):
3318         (WebCore::TextRun::adjustFrom):
3319         (WebCore::TextRun::adjustTo):
3320         (WebCore::TextRun::characters):
3321         (WebCore::TextRun::length):
3322         (WebCore::TextRun::from):
3323         (WebCore::TextRun::to):
3324         * platform/GraphicsContext.cpp:
3325         (WebCore::GraphicsContext::drawText):
3326         (WebCore::GraphicsContext::drawHighlightForText):
3327         * platform/GraphicsContext.h:
3328         * platform/mac/FontMac.mm:
3329         (WebCore::addDirectionalOverride):
3330         (WebCore::overrideLayoutOperation):
3331         (WebCore::ATSULayoutParameters::initialize):
3332         (WebCore::Font::selectionRectForText):
3333         (WebCore::Font::drawComplexText):
3334         (WebCore::Font::drawHighlightForText):
3335         (WebCore::Font::floatWidthForComplexText):
3336         (WebCore::Font::checkSelectionPoint):
3337         * platform/win/FontWin.cpp:
3338         (WebCore::hackishExtentForString):
3339         (WebCore::Font::floatWidth):
3340         (WebCore::Font::drawText):
3341         (WebCore::Font::drawHighlightForText):
3342         (WebCore::Font::selectionRectForText):
3343         (WebCore::Font::checkSelectionPoint):
3344         * rendering/InlineTextBox.cpp:
3345         (WebCore::InlineTextBox::selectionRect):
3346         (WebCore::InlineTextBox::paint):
3347         (WebCore::InlineTextBox::paintSelection):
3348         (WebCore::InlineTextBox::paintMarkedTextBackground):
3349         (WebCore::InlineTextBox::paintTextMatchMarker):
3350         (WebCore::InlineTextBox::offsetForPosition):
3351         (WebCore::InlineTextBox::positionForOffset):
3352         * rendering/RenderBlock.cpp:
3353         (WebCore::stripTrailingSpace):
3354         * rendering/RenderFlexibleBox.cpp:
3355         (WebCore::RenderFlexibleBox::layoutVerticalBox):
3356         * rendering/RenderImage.cpp:
3357         (WebCore::RenderImage::imageChanged):
3358         (WebCore::RenderImage::paint):
3359         * rendering/RenderText.cpp:
3360         (WebCore::RenderText::cacheWidths):
3361         (WebCore::RenderText::widthFromCache):
3362         (WebCore::RenderText::trimmedMinMaxWidth):
3363         (WebCore::RenderText::calcMinMaxWidth):
3364         (WebCore::RenderText::width):
3365         * rendering/RenderTextField.cpp:
3366         (WebCore::RenderTextField::calcMinMaxWidth):
3367         * rendering/bidi.cpp:
3368         (WebCore::RenderBlock::tabWidth):
3369         (WebCore::RenderBlock::checkLinesForTextOverflow):
3370         * rendering/render_line.cpp:
3371         (WebCore::EllipsisBox::paint):
3372         * rendering/render_list.cpp:
3373         (WebCore::RenderListMarker::paint):
3374         (WebCore::RenderListMarker::calcMinMaxWidth):
3375         (WebCore::RenderListMarker::getRelativeMarkerRect):
3376
3377 2006-05-10  Justin Garcia  <justin.garcia@apple.com>
3378
3379         Reviewed by darin
3380
3381         * editing/ReplaceSelectionCommand.cpp:
3382         (WebCore::ReplaceSelectionCommand::doApply):
3383         Removed the code to find out if we must later add smart replace whitespace.  We can 
3384         wait until we've done the insertion to figure it out, and the position sampled (startPos)
3385         to make the decision about trailing whitespace was wrong.
3386         Changed the order that work is done during a paste: 1) Insert everything 2) Do one of
3387         the following: a) handle a trailing interchange newline, b) uncollapse the last incoming
3388         br if it has been collapsed because of quirks mode, c) do an end merge 3) Add smart replace
3389         whitespace (2 and 3 were reversed because the end merge must happen before we can know
3390         whether or not we need to add a trailing space).
3391         Don't do an end merge if the last node inserted was a br because the end merge will 
3392         clobber it.
3393         
3394         (WebCore::ReplaceSelectionCommand::removeEndBRIfNeeded):
3395         brs where [br, 0] is at the end of a block and not at the start of a paragraph
3396         are the ones that are collapsed because of quirks mode.
3397
3398 2006-05-10  David Hyatt  <hyatt@apple.com>
3399
3400         Rename isSpace to treatAsSpace.  Move it and the rounding hack function into
3401         Font and make them static methods (inlined in the header).  Make the rounding
3402         hack character table a static member as well.  Remove the redundant space/rounding
3403         functions from FontData.mm.
3404
3405         Reviewed by darin
3406
3407         * platform/Font.cpp:
3408         (WebCore::):
3409         (WebCore::m_finalRoundingWidth):
3410         (WebCore::WidthIterator::advance):
3411         * platform/Font.h:
3412         (WebCore::Font::treatAsSpace):
3413         (WebCore::Font::isRoundingHackCharacter):
3414         * platform/mac/FontData.mm:
3415         (WebCore::overrideLayoutOperation):
3416         (WebCore::createATSULayoutParameters):
3417         (WebCore::initializeWidthIterator):
3418         (WebCore::advanceWidthIterator):
3419         * platform/mac/FontMac.mm:
3420         (WebCore::overrideLayoutOperation):
3421         (WebCore::ATSULayoutParameters::initialize):
3422
3423 2006-05-10  Darin Adler  <darin@apple.com>
3424
3425         * WebCore: Removed an extra WebCore subtree that somehow got checked in.
3426
3427 2006-05-10  David Carson <dacarson@gmail.com>
3428
3429         - Fix for bug 8833. Removed inline keyword from functions declared
3430         in .mm and .cpp files. inline function code needs to reside in the
3431         header file for the linker to find the code. 
3432         http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-9.7
3433
3434         Reviewed by Darin, landed by Timothy.
3435
3436         * platform/Font.cpp:
3437         (WebCore::isSpace):
3438         * platform/mac/FontData.mm:
3439         (WebCore::widthForGlyph):
3440         (WebCore::isRoundingHackCharacter):
3441         (WebCore::glyphForCharacter):
3442
3443 2006-05-10  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3444
3445         Reviewed and landed by Anders.
3446
3447         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8830
3448           REGRESSION: Words render on top of each other when fallback font is used
3449
3450         Already covered by several pixel tests in fast/text
3451
3452         * platform/Font.cpp:
3453         (WebCore::Font::drawSimpleText):
3454
3455 2006-05-10  David Hyatt  <hyatt@apple.com>
3456
3457         Fix for bug 8809, lift the Mac-specific WebTextRenderer code for
3458         drawing and measuring of runs up into the Font class.  The fast code
3459         path is in Font.cpp and is designed to be mostly cross-platform.  The
3460         slow code path is in FontMac.cpp and is Mac-specific.
3461
3462         Reviewed by darin
3463
3464         * WebCore.xcodeproj/project.pbxproj:
3465         * platform/Font.cpp:
3466         (WebCore::isSpace):
3467         (WebCore::):
3468         (WebCore::isRoundingHackCharacter):
3469         (WebCore::m_finalRoundingWidth):
3470         (WebCore::WidthIterator::advance):
3471         (WebCore::WidthIterator::normalizeVoicingMarks):
3472         (WebCore::Font::primaryFont):
3473         (WebCore::Font::setAlwaysUseComplexPath):
3474         (WebCore::Font::canUseGlyphCache):
3475         (WebCore::Font::drawSimpleText):
3476         (WebCore::Font::drawText):
3477         (WebCore::Font::floatWidth):
3478         (WebCore::Font::floatWidthForSimpleText):
3479         * platform/Font.h:
3480         * platform/FontData.h:
3481         (WebCore::FontData::platformData):
3482         * platform/GlyphBuffer.h: Added.
3483         (WebCore::GlyphBuffer::GlyphBuffer):
3484         (WebCore::GlyphBuffer::isEmpty):
3485         (WebCore::GlyphBuffer::size):
3486         (WebCore::GlyphBuffer::glyphs):
3487         (WebCore::GlyphBuffer::advances):
3488         (WebCore::GlyphBuffer::fontDataAt):
3489         (WebCore::GlyphBuffer::swap):
3490         (WebCore::GlyphBuffer::glyphAt):
3491         (WebCore::GlyphBuffer::advanceAt):
3492         (WebCore::GlyphBuffer::add):
3493         * platform/mac/FontData.mm:
3494         (WebCore::isSpace):
3495         (WebCore::isRoundingHackCharacter):
3496         (WebCore::FontData::widthForGlyph):
3497         (WebCore::m_ATSUMirrors):
3498         (WebCore::FontData::xHeight):
3499         (WebCore::FontData::smallCapsFontData):
3500         (WebCore::findSubstituteFont):
3501         (WebCore::rendererForAlternateFont):
3502         (WebCore::findSubstituteRenderer):
3503         (WebCore::FontData::findSubstituteFontData):
3504         (WebCore::computeWidthForSpace):
3505         (WebCore::FontData::updateGlyphMapEntry):
3506         (WebCore::extendGlyphMap):
3507         (WebCore::extendWidthMap):
3508         (WebCore::createATSULayoutParameters):
3509         (WebCore::FontData::glyphForCharacter):
3510         (WebCore::advanceWidthIterator):
3511         (WebCore::shouldUseATSU):
3512         * platform/mac/FontMac.mm:
3513         (WebCore::ATSULayoutParameters::m_padPerSpace):
3514         (WebCore::addDirectionalOverride):
3515         (WebCore::initializeATSUStyle):
3516         (WebCore::overrideLayoutOperation):
3517         (WebCore::ATSULayoutParameters::initialize):
3518         (WebCore::disposeATSULayoutParameters):
3519         (WebCore::Font::drawComplexText):
3520         (WebCore::Font::floatWidthForComplexText):
3521         (WebCore::Font::drawGlyphs):
3522         * platform/mac/WebCoreTextRenderer.mm:
3523         (WebCoreSetAlwaysUseATSU):
3524
3525 2006-05-10  Darin Adler  <darin@apple.com>
3526
3527         - another try at fixing the Windows build
3528
3529         * platform/win/FontWin.cpp: (WebCore::getFontData): Use characters()
3530         instead of unicode().
3531
3532 == Rolled over to ChangeLog-2006-05-10 ==