2842dfbbc0c7e8fde13daaaea5c642cd192ae9d7
[WebKit-https.git] / WebCore / ChangeLog
1 2006-03-09  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2
3         No test because this fixes an existing pixel test (and does not affect
4         the render tree).
5
6         Reviewed by Maciej.
7
8         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7664
9           REGRESSION: tests that include numeric list markers fail in pixel mode
10
11         * platform/GraphicsContext.cpp:
12         (WebCore::GraphicsContext::drawText): Restored AlignRight behavior.
13
14 2006-03-09  Mitz Pettel  <opendarwin.org@mitzpettel.com>
15
16         No test because we couldn't figure out how to write one.
17
18         Reviewed by Darin.
19
20         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7680
21           REGRESSION: Ellipsis painted over the chrome and in invalid contexts
22
23         * rendering/render_line.cpp:
24         (WebCore::EllipsisBox::paint): Replaced call to Font::drawText with
25         GraphicsContext::drawText, which checks the paintingDisabled flag.
26
27 2006-03-09  Maciej Stachowiak  <mjs@apple.com>
28
29         Reviewed by Eric.
30
31         - make link clicks work by propagating them up to a client
32
33         * Viewer/ImageView.cpp:
34         * bridge/win/FrameWin.cpp:
35         * bridge/win/FrameWin.h:
36         * platform/win/TemporaryLinkStubs.cpp:
37         (FrameWin::incomingReferrer):
38
39 2006-03-09  Eric Seidel  <eseidel@apple.com>
40
41         Reviewed by mjs.
42
43         Add support for Timers under 10ms.
44         Fix random crashers due to multi-threaded loading.
45
46         * platform/TransferJob.h:
47         * platform/TransferJobInternal.h:
48         (WebCore::TransferJobInternal::TransferJobInternal):
49         * platform/Widget.h:
50         * platform/win/SharedTimerWin.cpp:
51         (WebCore::TimerWindowWndProc):
52         (WebCore::initializeOffScreenTimerWindow):
53         (WebCore::setSharedTimerFireTime):
54         * platform/win/TemporaryLinkStubs.cpp:
55         (WebCore::TransferJob::assembleResponseHeaders):
56         (WebCore::TransferJob::retrieveCharset):
57         * platform/win/TransferJobWin.cpp:
58         (WebCore::addToOutstandingJobs):
59         (WebCore::removeFromOutstandingJobs):
60         (WebCore::lookupTransferJob):
61         (WebCore::TransferJobWndProc):
62         (WebCore::initializeOffScreenTransferJobWindow):
63         (WebCore::TransferJob::~TransferJob):
64         (WebCore::transferJobStatusCallback):
65         (WebCore::TransferJob::start):
66         (WebCore::TransferJob::cancel):
67         * platform/win/WidgetWin.cpp:
68
69 2006-03-08  Justin Garcia  <justin.garcia@apple.com>
70
71         Reviewed by darin
72         
73         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7579>
74         TinyMCE: Implement execCommand(insertImage, ...)
75         
76         Implemented InsertImage and also changed paste to use a single 
77         rule for when to remove junk that remains after node removal. 
78
79         * editing/ReplaceSelectionCommand.cpp:
80         (WebCore::ReplaceSelectionCommand::removeNodeAndPruneAncestors):
81         (WebCore::ReplaceSelectionCommand::doApply):
82         (WebCore::ReplaceSelectionCommand::removeLinePlaceholderIfNeeded):
83         * editing/ReplaceSelectionCommand.h:
84         * editing/htmlediting.cpp:
85         * editing/jsediting.cpp:
86
87 2006-03-08  Eric Seidel  <eseidel@apple.com>
88
89         Reviewed by hyatt.
90
91         Fix build script to properly copy dll files.
92
93         * WebCore.vcproj/WebCore/build-generated-files.sh:
94
95 2006-03-08  Rob Buis  <buis@kde.org>
96
97         Reviewed by eseidel.
98
99         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6899 SVG <rect> does not respect display: none
100
101         For svg elements that can render, call StyledElementImpl::rendererIsNeeded
102         to decide whether the element should render. In particular this way
103         any setting of display="none" is handled.
104
105         * ksvg2/svg/SVGAElementImpl.h:
106         (WebCore::SVGAElementImpl::rendererIsNeeded):
107         * ksvg2/svg/SVGCircleElementImpl.h:
108         (WebCore::SVGCircleElementImpl::rendererIsNeeded):
109         * ksvg2/svg/SVGEllipseElementImpl.h:
110         (WebCore::SVGEllipseElementImpl::rendererIsNeeded):
111         * ksvg2/svg/SVGForeignObjectElementImpl.h:
112         (WebCore::SVGForeignObjectElementImpl::rendererIsNeeded):
113         * ksvg2/svg/SVGGElementImpl.h:
114         (WebCore::SVGGElementImpl::rendererIsNeeded):
115         * ksvg2/svg/SVGImageElementImpl.h:
116         (WebCore::SVGImageElementImpl::rendererIsNeeded):
117         * ksvg2/svg/SVGLineElementImpl.h:
118         (WebCore::SVGLineElementImpl::rendererIsNeeded):
119         * ksvg2/svg/SVGMarkerElementImpl.h:
120         (WebCore::SVGMarkerElementImpl::rendererIsNeeded):
121         * ksvg2/svg/SVGMaskElementImpl.h:
122         (WebCore::SVGMaskElementImpl::rendererIsNeeded):
123         * ksvg2/svg/SVGPathElementImpl.h:
124         (WebCore::SVGPathElementImpl::rendererIsNeeded):
125         * ksvg2/svg/SVGPatternElementImpl.h:
126         (WebCore::SVGPatternElementImpl::rendererIsNeeded):
127         * ksvg2/svg/SVGPolyElementImpl.h:
128         (WebCore::SVGPolyElementImpl::rendererIsNeeded):
129         * ksvg2/svg/SVGRectElementImpl.h:
130         (WebCore::SVGRectElementImpl::rendererIsNeeded):
131         * ksvg2/svg/SVGSVGElementImpl.h:
132         (WebCore::SVGSVGElementImpl::rendererIsNeeded):
133         * ksvg2/svg/SVGSwitchElementImpl.h:
134         (WebCore::SVGSwitchElementImpl::rendererIsNeeded):
135         * ksvg2/svg/SVGTSpanElementImpl.h:
136         (WebCore::SVGTSpanElementImpl::rendererIsNeeded):
137         * ksvg2/svg/SVGTextElementImpl.h:
138         (WebCore::SVGTextElementImpl::rendererIsNeeded):
139         * ksvg2/svg/SVGUseElementImpl.h:
140         (WebCore::SVGUseElementImpl::rendererIsNeeded):
141
142 2006-03-08  Eric Seidel  <eseidel@apple.com>
143
144         Reviewed by mjs.
145
146         Add stubs to allow JavaScript-enabled WebCore to not crash.
147         Add ScreenWin implementation.
148         Add alert() support.
149
150         * WebCore.vcproj/WebCore/WebCore.vcproj:
151         * bridge/win/FrameWin.cpp:
152         (WebCore::FrameWin::runJavaScriptAlert):
153         (WebCore::FrameWin::runJavaScriptConfirm):
154         * platform/win/ScreenWin.cpp: Added.
155         (WebCore::monitorInfoForWidget):
156         (WebCore::WebCore::screenRect):
157         (WebCore::WebCore::screenDepth):
158         (WebCore::WebCore::usableScreenRect):
159         * platform/win/TemporaryLinkStubs.cpp:
160         (FrameWin::canUndo):
161         (FrameWin::runJavaScriptPrompt):
162         (FrameWin::canPaste):
163         (WebCore::setCookies):
164         (WebCore::cookies):
165         (WebCore::cookiesEnabled):
166         (PlugInInfoStore::createPluginInfoForPluginAtIndex):
167         (PlugInInfoStore::pluginCount):
168         (WebCore::refreshPlugins):
169         (FrameWin::clearUndoRedoOperations):
170         (FrameWin::incomingReferrer):
171
172 2006-03-08  Darin Adler  <darin@apple.com>
173
174         Reviewed by Maciej.
175
176         - fix another instance of the bug I just fixed in the Macintosh-specific code path
177
178         * platform/image-decoders/gif/GIFImageReader.h: Remove not-so-useful 100ms constant.
179         * platform/image-decoders/gif/GIFImageReader.cpp: (GIFImageReader::read):
180         Use the correct rule for minimum frame durations.
181
182 2006-03-08  Maciej Stachowiak  <mjs@apple.com>
183
184         Reviewed by Eric.
185
186         - very rough implementation of networking in TransferJob for windows
187
188         * platform/TransferJob.h:
189         * platform/TransferJobInternal.h:
190         (WebCore::TransferJobInternal::TransferJobInternal):
191         * platform/win/TransferJobWin.cpp:
192         (WebCore::transferJobStatusCallback):
193         (WebCore::TransferJob::start):
194
195 2006-03-08  Maciej Stachowiak  <mjs@apple.com>
196
197         Reviewed by Darin.
198
199         - fix win32 build
200
201         * platform/win/FontWin.cpp:
202         (WebCore::Font::drawText):
203         (WebCore::Font::drawHighlightForText):
204         * platform/win/TemporaryLinkStubs.cpp:
205         (GraphicsContext::clearFocusRing):
206         (GraphicsContext::selectedTextBackgroundColor):
207         (Font::selectionRectForText):
208
209 2006-03-08  Darin Adler  <darin@apple.com>
210
211         Reviewed by Maciej.
212
213         - fix one more thing from http://bugzilla.opendarwin.org/show_bug.cgi?id=7528
214           REGRESSION: GIF animation speeds are wrong on a page with many animated GIFs
215
216         No layout test because I don't know how to test animated GIF speed.
217
218         * platform/mac/ImageSourceMac.cpp: (WebCore::ImageSource::frameDurationAtIndex):
219         Use the correct rule for minimum frame durations. It's a bit non-intuitive, so
220         I made the comment more explicit. The old code in WebKit had this rule.
221
222 2006-03-08  David Hyatt  <hyatt@apple.com>
223
224         Make GraphicsContext call into Font to draw all text and eliminate
225         all knowledge of WebTextRenderers from it.
226
227         Reviewed by darin
228
229         * platform/Font.h:
230         * platform/GraphicsContext.cpp:
231         (WebCore::GraphicsContext::drawText):
232         (WebCore::GraphicsContext::drawHighlightForText):
233         (WebCore::GraphicsContext::drawLineForText):
234         (WebCore::GraphicsContext::drawLineForMisspelling):
235         (WebCore::GraphicsContext::misspellingLineThickness):
236         * platform/GraphicsContext.h:
237         (WebCore::GraphicsContext::platformContext):
238         * platform/cairo/GraphicsContextCairo.cpp:
239         (WebCore::GraphicsContext::platformContext):
240         * platform/mac/FontMac.mm:
241         (WebCore::Font::drawText):
242         (WebCore::Font::drawHighlightForText):
243         (WebCore::Font::drawLineForText):
244         (WebCore::Font::drawLineForMisspelling):
245         (WebCore::Font::misspellingLineThickness):
246         * platform/mac/GraphicsContextMac.mm:
247         * platform/win/FontWin.cpp:
248         (WebCore::Font::drawText):
249         * rendering/InlineTextBox.cpp:
250         (WebCore::InlineTextBox::paint):
251         (WebCore::InlineTextBox::paintSelection):
252         (WebCore::InlineTextBox::paintMarkedTextBackground):
253         (WebCore::InlineTextBox::paintTextMatchMarker):
254
255 2006-03-08  Darin Adler  <darin@apple.com>
256
257         Reviewed by Hyatt.
258
259         - fixed super-fast animation of many animated GIFs
260
261         No layout test because I don't know how to test animated GIF speed.
262
263         * platform/mac/ImageSourceMac.cpp: (WebCore::ImageSource::frameDurationAtIndex):
264         Always take the minimum duration into account, even if there's some kind of failure
265         getting the duration from the GIF.
266
267 2006-03-07  Darin Adler  <darin@apple.com>
268
269         Reviewed by Anders.
270
271         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7655
272           unwanted output while running layout tests
273
274         * khtml/xsl/xsl_stylesheetimpl.cpp: (WebCore::XSLStyleSheetImpl::parseString):
275         Pass XML_PARSE_NOERROR and XML_PARSE_NOWARNING. We don't want errors and warnings
276         to be logged to stdout or stderr. If we later decide we want the error messages,
277         then we should do the additional work to put them into the web page or the
278         console (along with the JavaScript errors).
279
280         * platform/ArrayImpl.cpp: (WebCore::ArrayImpl::resize): Add a preflight to protect
281         against integer overflow due to large array size. Noticed this while looking into
282         the malloc error message.
283
284 2006-03-07  Darin Adler  <darin@apple.com>
285
286         Reviewed by Adele.
287
288         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7647
289           Crash when typing into text contols
290
291         I missed a couple places that were still saying KWQWidgetHolder
292         in the change I landed late last night.
293
294         * kwq/KWQTextArea.h:
295         * kwq/KWQTextArea.mm:
296         * kwq/KWQTextField.h:
297         Changed them all to say WebCoreWidgetHolder.
298
299 2006-03-07  Eric Seidel  <eseidel@apple.com>
300
301         Reviewed by hyatt.
302
303         Fix cursor support on win32.
304
305         * platform/win/WidgetWin.cpp:
306         (WebCore::Widget::setCursor):
307
308 2006-03-07  Eric Seidel  <eseidel@apple.com>
309
310         Reviewed by hyatt.
311
312         Fix basic text support.
313
314         * WebCore.vcproj/WebCore/WebCore.vcproj:
315         * platform/cairo/GraphicsContextCairo.cpp:
316         (WebCore::GraphicsContext::drawText):
317
318 2006-03-07  Dave Hyatt <hyatt@apple.com>
319
320         Eliminate the unused parameters of the QString version of drawText.
321
322         Reviewed by eric
323
324         * platform/GraphicsContext.h:
325         * platform/cairo/GraphicsContextCairo.cpp:
326         (WebCore::GraphicsContext::drawText):
327         * platform/mac/GraphicsContextMac.mm:
328         (WebCore::GraphicsContext::drawText):
329         * rendering/render_image.cpp:
330         (WebCore::RenderImage::paint):
331         * rendering/render_list.cpp:
332         (WebCore::RenderListMarker::paint):
333
334 2006-03-07  Eric Seidel  <eseidel@apple.com>
335
336         Reviewed by hyatt.
337
338         Add very basic text support.
339         Sort a few more stubs.
340
341         * WebCore.vcproj/WebCore/WebCore.vcproj:
342         * platform/cairo/GraphicsContextCairo.cpp:
343         (WebCore::GraphicsContext::font):
344         (WebCore::GraphicsContext::setFont):
345         (WebCore::GraphicsContext::drawText):
346         * platform/win/FontWin.cpp: Added.
347         (WebCore::Font::drawText):
348         * platform/win/TemporaryLinkStubs.cpp:
349         (QComboBox::focusPolicy):
350         (ScrollView::scrollXOffset):
351         (Font::isFixedPitch):
352         (Path::boundingRect):
353
354 2006-03-07  Adele Peterson  <adele@apple.com>
355
356         Reviewed by Hyatt.
357
358         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7319
359         Can't see caret at the end of a contenteditable div with overflow:hidden
360
361         No tests added since I don't think the blinking caret will show up in our tests.
362
363         * rendering/RenderBlock.cpp:
364         (WebCore::RenderBlock::rightmostPosition): When calculating the rightmostPosition for editable blocks, 
365         we need to account for the caret that can be drawn 1 px past the last child inline box.
366
367 2006-03-07  David Kilzer  <ddkilzer@kilzer.net>
368
369         Reviewed by Darin.
370
371         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=3905
372         Missing </title> makes page blank
373
374         Test: fast/js/exception-linenums-in-html-1.html
375         Test: fast/js/exception-linenums-in-html-2.html
376         Test: fast/js/missing-title-end-tag-js.html
377         Test: fast/tokenizer/missing-title-end-tag-1.html
378         Test: fast/tokenizer/missing-title-end-tag-2.html
379
380         * khtml/html/htmlparser.cpp:
381         (WebCore::HTMLParser::handleError): Add check for missing </title> tag and handle
382         this condition if identified.
383         * khtml/html/htmltokenizer.cpp:
384         (WebCore::HTMLTokenizer::parseTag): If parseSpecial() consumes the rest of the
385         document looking for a </title> tag, reset the state of the tokenizer and
386         retokenize with no special handling for <title>.  The parser will handle the
387         missing </title> tag in HTMLParser::handleError().
388         * platform/SegmentedString.cpp:
389         (WebCore::SegmentedString::SegmentedString): Added copy constructor.
390         (WebCore::SegmentedString::operator=): Added assignment operator.  Previously the
391         compiler was generating a default method for the assignment operator, but it did
392         not handle m_currentChar properly.
393         * platform/SegmentedString.h: Added prototypes for copy constructor and
394         assignment operator.
395
396 2006-03-07  Eric Seidel  <eseidel@apple.com>
397
398         Fix win32 link stubs.
399
400         * platform/win/TemporaryLinkStubs.cpp:
401         (WebCore::searchableIndexIntroduction):
402         (WebCore::setCookies):
403         (WebCore::cookies):
404         (WebCore::cookiesEnabled):
405         (WebCore::findNextSentenceFromIndex):
406         (WebCore::findSentenceBoundary):
407         (WebCore::findNextWordFromIndex):
408         (WebCore::findWordBoundary):
409         (WebCore::submitButtonDefaultLabel):
410         (WebCore::inputElementAltText):
411         (WebCore::resetButtonDefaultLabel):
412         (WebCore::defaultLanguage):
413
414 2006-03-07  Darin Adler  <darin@apple.com>
415
416         Reviewed by Adele, except for the first change listed.
417
418         - fix recently-introduced bug that GuardMalloc found while I was debugging my other change
419
420         * rendering/render_frames.cpp: (WebCore::RenderPart::~RenderPart):
421         Set m_widget to 0 before calling deref so we don't end up trying to do unwanted work.
422
423         - removed 10 more files from KWQ
424
425         * ForwardingHeaders/klocale.h: Removed.
426
427         * khtml/misc/helper.cpp: Removed.
428         * khtml/misc/helper.h: Removed.
429
430         * kwq/KWQCollection.h: Removed.
431         * kwq/KWQKCookieJar.h: Removed.
432         * kwq/KWQKCookieJar.mm: Removed.
433         * kwq/KWQKLocale.h: Removed.
434         * kwq/KWQKLocale.mm: Removed.
435         * kwq/KWQKURL.h: Removed.
436         * kwq/KWQKURL.mm: Removed.
437         * kwq/KWQTextUtilities.h: Removed.
438         * kwq/KWQTextUtilities.mm: Removed.
439         * kwq/KWQView.h: Removed.
440
441         * platform/CookieJar.h: Added.
442         * platform/Language.h: Added.
443         * platform/LocalizedStrings.h: Added.
444         * platform/TextBoundaries.h: Added.
445         * platform/mac/CookieJar.mm: Added.
446         * platform/mac/Language.mm: Added.
447         * platform/mac/LocalizedStringsMac.mm: Added.
448         * platform/mac/TextBoundaries.mm: Added.
449         * platform/mac/WebCoreWidgetHolder.h: Added.
450
451         * WebCore.xcodeproj/project.pbxproj: Updated for removed and added files.
452         * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for removed and added files.
453
454         * bridge/mac/WebCoreFrameBridge.mm: Updated includes.
455         (-[WebCoreFrameBridge elementForView:]): Changed KWQWidgetHolder to WebCoreWidgetHolder.
456
457         * editing/visible_units.cpp:
458         (WebCore::previousWordPositionBoundary):
459         (WebCore::nextWordPositionBoundary):
460         (WebCore::previousSentencePositionBoundary):
461         (WebCore::nextSentencePositionBoundary):
462         Call TextBoundaries.h functions instead of helper.h ones.
463
464         * khtml/ecma/kjs_navigator.cpp: (KJS::Navigator::getValueProperty):
465         * ksvg2/svg/SVGTestsImpl.cpp: (WebCore::SVGTestsImpl::isValid):
466         Changed to call defaultLanguage; cleaned up formatting.
467
468         * khtml/html/HTMLFormElementImpl.cpp: Removed stray comment.
469
470         * khtml/html/html_documentimpl.cpp:
471         (WebCore::HTMLDocumentImpl::cookie):
472         (WebCore::HTMLDocumentImpl::setCookie):
473         Call CookieJar.h functions.
474
475         * css/css_valueimpl.cpp:
476         * css/cssparser.cpp:
477         * css/cssstyleselector.cpp:
478         * dom/DocumentImpl.cpp:
479         * dom/dom_position.cpp:
480         * khtml/ecma/kjs_window.cpp:
481         * khtml/html/HTMLInputElementImpl.cpp:
482         * khtml/html/html_headimpl.cpp:
483         * khtml/html/htmlparser.cpp:
484         * khtml/misc/decoder.cpp:
485         * ksvg2/svg/SVGDocumentImpl.cpp:
486         * kwq/KWQComboBox.mm:
487         * kwq/KWQKSSLKeyGen.mm:
488         * kwq/KWQListBox.mm:
489         * kwq/KWQListImpl.cpp:
490         * kwq/KWQListImpl.h:
491         * kwq/KWQScrollBar.mm:
492         * kwq/KWQSlider.mm:
493         * kwq/KWQTextField.mm:
494         * kwq/KWQValueList.h:
495         * loader/DocLoader.cpp:
496         * page/Frame.cpp:
497         * page/FrameView.cpp:
498         * platform/mac/WidgetMac.mm:
499         (WebCore::Widget::beforeMouseDown):
500         (WebCore::Widget::afterMouseDown):
501         * rendering/render_applet.cpp:
502         * rendering/render_form.cpp:
503         * rendering/render_image.cpp:
504         * rendering/render_list.cpp:
505         Updated includes and protocol names.
506
507         * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::write): Remove
508         QT_VERSION code.
509         * platform/QString.h: Remove QT_VERSION.
510
511         * kwq/KWQPtrList.h: Change to no longer use QPtrCollection.
512
513         * kwq/KWQRenderTreeDebug.h:
514         * kwq/KWQRenderTreeDebug.cpp: (externalRepresentation):
515         Remove unused debuggingRenderTree boolean.
516
517 2006-03-07  Eric Seidel  <eseidel@apple.com>
518
519         Reviewed by darin.
520
521         * platform/mac/GraphicsContextMac.mm: Add Widget.h to fix no-svg build.
522
523 2006-03-06  Eric Seidel  <eseidel@apple.com>
524
525         Reviewed by hyatt.
526
527         Make spinneret run again, fix webview to support dynamic resize.
528
529         * platform/win/TemporaryLinkStubs.cpp:
530         (Widget::setDrawingAlpha):
531         * platform/win/WidgetWin.cpp:
532         (WebCore::Widget::Widget):
533         (WebCore::Widget::setClient):
534         (WebCore::Widget::client):
535         (WebCore::Widget::frameGeometry):
536
537 2006-03-06  Eric Seidel  <eseidel@apple.com>
538
539         Reviewed by darin.
540
541         Fix win32 build.
542
543         * platform/win/TemporaryLinkStubs.cpp:
544         (QScrollBar::QScrollBar):
545         (QTextEdit::setAlignment):
546         (Widget::client):
547         (Widget::setClient):
548         (QLineEdit::setAlignment):
549
550 2006-03-06  Beth Dakin  <bdakin@apple.com>
551
552         Reviewed by Darin.
553
554         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7566 (also 
555         <rdar://problem/4467128> ). Must call update() on a Font before 
556         attempting to use it because the FontRenderer is not created until 
557         update() is called.
558
559         * kwq/KWQListBox.mm:
560         (QListBox::sizeForNumberOfLines): Call update()
561         (-[KWQTableView drawRow:clipRect:]): Call update()
562
563 2006-03-06  Darin Adler  <darin@apple.com>
564
565         Reviewed by Adele.
566
567         - http://bugzilla.opendarwin.org/show_bug.cgi?id=7564
568           remove QObject, QGuardedPtr, slots, and signals
569
570         I had written a detailed change log entry, but I lost it!
571         I'm too annoyed to write one all over again.
572
573         * ForwardingHeaders/qguardedptr.h: Removed.
574         * ForwardingHeaders/qobject.h: Removed.
575
576         * kwq/KWQGuardedPtr.cpp: Removed.
577         * kwq/KWQGuardedPtr.h: Removed.
578         * kwq/KWQNamespace.h: Removed.
579         * kwq/KWQObject.cpp: Removed.
580         * kwq/KWQObject.h: Removed.
581         * kwq/KWQSignal.cpp: Removed.
582         * kwq/KWQSignal.h: Removed.
583         * kwq/KWQSlot.cpp: Removed.
584         * kwq/KWQSlot.h: Removed.
585
586         * platform/WidgetClient.h: Added.
587
588         * WebCore.xcodeproj/project.pbxproj: Updated for removed and added files.
589         * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
590
591         * bindings/js/JSDOMCore.cpp: Touched.
592         * bindings/js/JSDOMEvents.cpp: Ditto.
593
594         * bridge/BrowserExtension.h:
595         (WebCore::BrowserExtension::~BrowserExtension):
596         * bridge/mac/WebCoreFrameBridge.mm:
597         (-[WebCoreFrameBridge elementForView:]):
598         * dom/CDATASectionImpl.cpp:
599         (WebCore::CDATASectionImpl::cloneNode):
600         * dom/DocumentImpl.cpp:
601         (WebCore::DocumentImpl::~DocumentImpl):
602         * dom/DocumentImpl.h:
603         * kcanvas/device/KRenderingDevice.h:
604         * khtml/ecma/kjs_css.cpp:
605         (KJS::DOMCSSStyleDeclaration::put):
606         * khtml/ecma/kjs_window.cpp:
607         (KJS::FrameArray::indexGetter):
608         (KJS::FrameArray::nameGetter):
609         * khtml/html/html_documentimpl.cpp:
610         (WebCore::HTMLDocumentImpl::createTokenizer):
611         * khtml/html/htmlparser.cpp:
612         (WebCore::HTMLParser::HTMLParser):
613         (WebCore::HTMLParser::insertNode):
614         (WebCore::HTMLParser::handleError):
615         (WebCore::HTMLParser::commentCreateErrorCheck):
616         (WebCore::HTMLParser::noscriptCreateErrorCheck):
617         (WebCore::HTMLParser::isInline):
618         (WebCore::HTMLParser::finished):
619         * khtml/html/htmlparser.h:
620         * khtml/html/htmltokenizer.cpp:
621         (WebCore::HTMLTokenizer::HTMLTokenizer):
622         (WebCore::HTMLTokenizer::scriptHandler):
623         (WebCore::HTMLTokenizer::scriptExecution):
624         (WebCore::HTMLTokenizer::parseComment):
625         (WebCore::HTMLTokenizer::parseTag):
626         (WebCore::HTMLTokenizer::stopParsing):
627         (WebCore::HTMLTokenizer::timerFired):
628         (WebCore::HTMLTokenizer::processToken):
629         (WebCore::parseHTMLDocumentFragment):
630         * khtml/html/htmltokenizer.h:
631         * kwq/KWQComboBox.h:
632         * kwq/KWQComboBox.mm:
633         (-[KWQPopUpButton setPopulatingMenu:QComboBox:::]):
634         (QComboBox::itemSelected):
635         (-[KWQPopUpButton becomeFirstResponder]):
636         (-[KWQPopUpButton resignFirstResponder]):
637         * kwq/KWQFileButton.h:
638         (KWQFileButton::filename):
639         * kwq/KWQFileButton.mm:
640         (KWQFileButton::KWQFileButton):
641         (KWQFileButton::filenameChanged):
642         (-[KWQFileButtonAdapter filenameChanged:]):
643         (-[KWQFileButtonAdapter focusChanged:]):
644         (-[KWQFileButtonAdapter clicked]):
645         * kwq/KWQLineEdit.h:
646         * kwq/KWQLineEdit.mm:
647         (QLineEdit::QLineEdit):
648         (QLineEdit::setAlignment):
649         (KWQNSTextAlignment):
650         * kwq/KWQListBox.h:
651         (QListBox::changingSelection):
652         * kwq/KWQListBox.mm:
653         (QListBox::QListBox):
654         (-[KWQTableView becomeFirstResponder]):
655         (-[KWQTableView resignFirstResponder]):
656         (-[KWQTableView tableViewSelectionDidChange:]):
657         * kwq/KWQScrollBar.h:
658         (WebCore::):
659         (QScrollBar::orientation):
660         * kwq/KWQScrollBar.mm:
661         (-[KWQScrollBar initWithQScrollBar:]):
662         (QScrollBar::QScrollBar):
663         (QScrollBar::valueChanged):
664         (QScrollBar::scroll):
665         * kwq/KWQSlider.h:
666         * kwq/KWQSlider.mm:
667         (-[KWQSlider mouseDown:]):
668         (-[KWQSlider slide:]):
669         (-[KWQSlider becomeFirstResponder]):
670         (-[KWQSlider resignFirstResponder]):
671         (QSlider::QSlider):
672         (QSlider::sliderValueChanged):
673         (QSlider::dimensions):
674         * kwq/KWQTextArea.mm:
675         (-[KWQTextAreaTextView textViewDidChangeSelection:]):
676         (-[KWQTextAreaTextView textDidChange:]):
677         (-[KWQTextAreaTextView becomeFirstResponder]):
678         (-[KWQTextAreaTextView resignFirstResponder]):
679         (-[KWQTextAreaTextView mouseDown:]):
680         (-[KWQTextAreaTextView dispatchHTMLEvent:]):
681         * kwq/KWQTextEdit.h:
682         * kwq/KWQTextEdit.mm:
683         (QTextEdit::QTextEdit):
684         (QTextEdit::setAlignment):
685         * kwq/KWQTextField.mm:
686         (-[KWQTextFieldController action:]):
687         (-[KWQTextFieldController controlTextDidEndEditing:]):
688         (-[KWQTextFieldController controlTextDidChange:]):
689         (-[KWQTextFieldController textChanged]):
690         (-[KWQTextFieldController textView:didHandleEvent:]):
691         (-[KWQTextFieldController setHasFocus:]):
692         (-[KWQTextFieldController textViewDidChangeSelection:]):
693         * loader/CachedObject.h:
694         * page/Frame.cpp:
695         (WebCore::Frame::Frame):
696         (WebCore::Frame::~Frame):
697         (WebCore::Frame::setOpener):
698         (WebCore::Frame::nodeForWidget):
699         (WebCore::Frame::disconnectOwnerRenderer):
700         * page/Frame.h:
701         * page/FramePrivate.h:
702         (WebCore::FramePrivate::FramePrivate):
703         * page/FrameView.cpp:
704         (WebCore::FrameView::~FrameView):
705         * platform/Brush.h:
706         * platform/Pen.h:
707         * platform/Widget.cpp:
708         (WebCore::Widget::isFrameView):
709         * platform/Widget.h:
710         (WebCore::):
711         * platform/mac/GraphicsContextMac.mm:
712         (WebCore::GraphicsContext::drawText):
713         * platform/mac/WidgetMac.mm:
714         (WebCore::Widget::Widget):
715         (WebCore::Widget::focusPolicy):
716         (WebCore::Widget::sendConsumedMouseUp):
717         (WebCore::Widget::setClient):
718         (WebCore::Widget::client):
719         * rendering/InlineTextBox.cpp:
720         (WebCore::InlineTextBox::operator delete):
721         * rendering/render_applet.cpp:
722         (WebCore::RenderApplet::createWidgetIfNecessary):
723         * rendering/render_form.cpp:
724         (WebCore::RenderFormElement::clicked):
725         (WebCore::RenderFormElement::textAlignment):
726         (WebCore::RenderLineEdit::RenderLineEdit):
727         (WebCore::RenderLineEdit::selectionChanged):
728         (WebCore::RenderLineEdit::returnPressed):
729         (WebCore::RenderLineEdit::performSearch):
730         (WebCore::RenderLineEdit::valueChanged):
731         (WebCore::RenderFileButton::RenderFileButton):
732         (WebCore::RenderFileButton::returnPressed):
733         (WebCore::RenderFileButton::valueChanged):
734         (WebCore::RenderLegend::RenderLegend):
735         (WebCore::RenderSelect::RenderSelect):
736         (WebCore::RenderSelect::updateFromElement):
737         (WebCore::RenderSelect::valueChanged):
738         (WebCore::RenderSelect::selectionChanged):
739         (WebCore::RenderSelect::createListBox):
740         (WebCore::RenderTextArea::RenderTextArea):
741         (WebCore::RenderTextArea::valueChanged):
742         (WebCore::RenderTextArea::selectionChanged):
743         (WebCore::RenderSlider::RenderSlider):
744         (WebCore::RenderSlider::valueChanged):
745         * rendering/render_form.h:
746         (WebCore::RenderFormElement::element):
747         (WebCore::RenderLineEdit::element):
748         (WebCore::RenderFileButton::element):
749         (WebCore::RenderFileButton::isEditable):
750         (WebCore::RenderSelect::element):
751         (WebCore::RenderTextArea::element):
752         (WebCore::RenderSlider::element):
753         * rendering/render_frames.cpp:
754         (WebCore::RenderPart::RenderPart):
755         (WebCore::RenderPart::~RenderPart):
756         (WebCore::RenderPart::setFrame):
757         (WebCore::RenderPart::setWidget):
758         (WebCore::RenderPart::deleteWidget):
759         (WebCore::RenderFrame::RenderFrame):
760         (WebCore::RenderPartObject::RenderPartObject):
761         (WebCore::RenderPartObject::layout):
762         * rendering/render_frames.h:
763         * rendering/render_layer.cpp:
764         (WebCore::RenderLayer::RenderLayer):
765         (WebCore::RenderLayer::~RenderLayer):
766         (WebCore::RenderLayer::valueChanged):
767         (WebCore::RenderLayer::setHasHorizontalScrollbar):
768         (WebCore::RenderLayer::setHasVerticalScrollbar):
769         (WebCore::RenderLayer::hitTest):
770         * rendering/render_layer.h:
771         (WebCore::RenderLayer::parent):
772         (WebCore::RenderLayer::previousSibling):
773         (WebCore::RenderLayer::nextSibling):
774         (WebCore::RenderLayer::firstChild):
775         (WebCore::RenderLayer::lastChild):
776         * rendering/render_list.cpp:
777         (WebCore::RenderListMarker::paint):
778         * rendering/render_replaced.cpp:
779         (WebCore::RenderWidget::RenderWidget):
780         (WebCore::RenderWidget::destroy):
781         (WebCore::RenderWidget::~RenderWidget):
782         (WebCore::RenderWidget::setWidget):
783         (WebCore::RenderWidget::layout):
784         (WebCore::RenderWidget::sendConsumedMouseUp):
785         (WebCore::RenderWidget::focusIn):
786         (WebCore::RenderWidget::focusOut):
787         (WebCore::RenderWidget::scrollToVisible):
788         (WebCore::RenderWidget::isVisible):
789         (WebCore::RenderWidget::element):
790         (WebCore::RenderWidget::deleteWidget):
791         * rendering/render_replaced.h:
792         * xml/xmlhttprequest.cpp:
793         (WebCore::requestsByDocument):
794         (WebCore::addToRequestsByDocument):
795         (WebCore::removeFromRequestsByDocument):
796         (WebCore::XMLHttpRequest::getResponseText):
797         (WebCore::XMLHttpRequest::getResponseXML):
798         (WebCore::XMLHttpRequest::XMLHttpRequest):
799         (WebCore::XMLHttpRequest::~XMLHttpRequest):
800         (WebCore::XMLHttpRequest::callReadyStateChangeListener):
801         (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
802         (WebCore::XMLHttpRequest::open):
803         (WebCore::XMLHttpRequest::send):
804         (WebCore::XMLHttpRequest::abort):
805         (WebCore::XMLHttpRequest::overrideMIMEType):
806         (WebCore::XMLHttpRequest::setRequestHeader):
807         (WebCore::XMLHttpRequest::getRequestHeader):
808         (WebCore::XMLHttpRequest::getAllResponseHeaders):
809         (WebCore::XMLHttpRequest::getResponseHeader):
810         (WebCore::XMLHttpRequest::getSpecificHeader):
811         (WebCore::XMLHttpRequest::responseIsXML):
812         (WebCore::XMLHttpRequest::getStatus):
813         (WebCore::XMLHttpRequest::getStatusText):
814         (WebCore::XMLHttpRequest::receivedAllData):
815         (WebCore::XMLHttpRequest::receivedRedirect):
816         (WebCore::XMLHttpRequest::receivedData):
817         (WebCore::XMLHttpRequest::cancelRequests):
818         (WebCore::XMLHttpRequest::detachRequests):
819         * xml/xmlhttprequest.h:
820
821 2006-03-06  Eric Seidel  <eseidel@apple.com>
822
823         Reviewed by beth.
824
825         Reorganize link stubs (alphabetically).
826         Stub out Path methods to make cnn.com work.
827
828         * platform/win/TemporaryLinkStubs.cpp:
829         (FrameView::viewportToGlobal):
830         (FrameView::updateBorder):
831         (FrameView::isFrameView):
832         (FrameView::topLevelWidget):
833         (QScrollBar::~QScrollBar):
834         (QScrollBar::setSteps):
835         (QScrollBar::scroll):
836         (QScrollBar::QScrollBar):
837         (QScrollBar::setValue):
838         (QScrollBar::setKnobProportion):
839         (QListBox::QListBox):
840         (QListBox::setSelected):
841         (QListBox::sizeForNumberOfLines):
842         (QListBox::isSelected):
843         (QListBox::appendItem):
844         (QListBox::doneAppendingItems):
845         (ScrollView::scrollXOffset):
846         (QComboBox::focusPolicy):
847         (QTextEdit::QTextEdit):
848         (QTextEdit::~QTextEdit):
849         (QTextEdit::textWithHardLineBreaks):
850         (QTextEdit::sizeWithColumnsAndRows):
851         (QTextEdit::setColors):
852         (QTextEdit::setFont):
853         (QTextEdit::setWritingDirection):
854         (QTextEdit::checksDescendantsForFocus):
855         (QTextEdit::selectionStart):
856         (QTextEdit::hasSelectedText):
857         (QTextEdit::setReadOnly):
858         (QTextEdit::setDisabled):
859         (QTextEdit::setLineHeight):
860         (QTextEdit::setSelectionStart):
861         (QTextEdit::text):
862         (QTextEdit::setWordWrap):
863         (QTextEdit::setAlignment):
864         (QTextEdit::getCursorPosition):
865         (QTextEdit::setSelectionRange):
866         (Widget::enableFlushDrawing):
867         (Widget::isEnabled):
868         (Widget::focusPolicy):
869         (Widget::disableFlushDrawing):
870         (Widget::setIsSelected):
871         (Widget::unlockDrawingFocus):
872         (KJavaAppletWidget::KJavaAppletWidget):
873         (ScrollView::scrollPointRecursively):
874         (ScrollView::scrollBy):
875         (QLineEdit::selectAll):
876         (QLineEdit::addSearchResult):
877         (QLineEdit::selectionStart):
878         (QLineEdit::hasSelectedText):
879         (QLineEdit::selectedText):
880         (QLineEdit::setAutoSaveName):
881         (QLineEdit::checksDescendantsForFocus):
882         (QLineEdit::setMaxResults):
883         (GraphicsContext::GraphicsContext):
884         (GraphicsContext::addFocusRingRect):
885         (GraphicsContext::drawLineForMisspelling):
886         (GraphicsContext::drawFocusRing):
887         (GraphicsContext::selectedTextBackgroundColor):
888         (GraphicsContext::drawHighlightForText):
889         (GraphicsContext::misspellingLineThickness):
890         (GraphicsContext::addRoundedRectClip):
891         (QSlider::QSlider):
892         (QSlider::sizeHint):
893         (QSlider::setValue):
894         (QSlider::setMaxValue):
895         (QSlider::~QSlider):
896         (QSlider::setFont):
897         (QListBox::setFont):
898         (QListBox::~QListBox):
899         (QListBox::setSelectionMode):
900         (QListBox::setEnabled):
901         (QListBox::clear):
902         (QListBox::checksDescendantsForFocus):
903         (KWQFileButton::KWQFileButton):
904         (KWQFileButton::click):
905         (KWQFileButton::sizeForCharacterWidth):
906         (KWQFileButton::frameGeometry):
907         (KWQFileButton::setFilename):
908         (KWQFileButton::baselinePosition):
909         (KWQFileButton::setFrameGeometry):
910         (QSlider::focusPolicy):
911         (QListBox::focusPolicy):
912         (Cursor::Cursor):
913         (MouseEvent::MouseEvent):
914         (KWQKCookieJar::cookieEnabled):
915         (WebCore::screenDepth):
916         (WebCore::usableScreenRect):
917         (FrameWin::createPlugin):
918         (ScrollView::resizeContents):
919         (ScrollView::visibleHeight):
920         (ScrollView::visibleWidth):
921         (ScrollView::setContentsPos):
922         (ScrollView::contentsHeight):
923         (ScrollView::contentsWidth):
924         (ScrollView::inWindow):
925         (Path::~Path):
926         (Path::Path):
927         (Path::contains):
928         (Path::translate):
929         (Path::boundingRect):
930         (Path::operator=):
931
932 2006-03-03  Justin Garcia  <justin.garcia@apple.com>
933
934         Reviewed by darin
935         
936         <http://bugzilla.opendarwin.org/show_bug.cgi?id=6844>
937         elementAtPoint returns the list when the point is over a list marker
938
939         Call RenderObject::setInnerNode(), which sets both the 
940         innerNode and the innerNonSharedNode.
941
942         * rendering/render_list.cpp:
943         (WebCore::RenderListItem::nodeAtPoint):
944         * rendering/render_list.h:
945
946 2006-03-05  Darin Adler  <darin@apple.com>
947
948         * WebCore.vcproj/WebCore/WebCore.vcproj: Removed a lot of long-ago-deleted files
949         from the kwq directory.
950
951 2006-03-05  Darin Adler  <darin@apple.com>
952
953         Reviewed by Maciej.
954
955         - moved all the remnants of the public C++ DOM API out of khtml/dom
956         - changed from "int" to "ExceptionCode" for DOM exceptions
957         - removed unused CSS_HTML_RELATIVE
958         - changed offsetInCharacters to be a member function of NodeImpl
959         - changed DOM functions that take a NodeType to use NodeType instead of
960           unsigned short for clarity (will still be unsigned short in bindings)
961         - changed exception constants so they can be used directly in the
962           implementation code (added in the offsets for different types of exceptions)
963         - replaced the eventListenerType function with an isHTMLEventListener function
964         - got rid of EventListenerEvent, which is a synonym for EventImpl*
965         - eliminated handleEventImpl, whish is now the same as handleEvent
966
967         - did other preparation for the "remove Impl suffix" renaming
968           (tested by using a script that does the renaming)
969
970         * khtml/dom/css_rule.h: Removed.
971         * khtml/dom/css_stylesheet.h: Removed.
972         * khtml/dom/css_value.h: Removed.
973         * khtml/dom/dom2_events.cpp: Removed.
974         * khtml/dom/dom2_events.h: Removed.
975         * khtml/dom/dom2_range.h: Removed.
976         * khtml/dom/dom2_traversal.cpp: Removed.
977         * khtml/dom/dom2_traversal.h: Removed.
978         * khtml/dom/dom_exception.h: Removed.
979         * khtml/dom/dom_node.h: Removed.
980
981         * dom/EventListener.h: Added.
982         * dom/ExceptionCode.h: Added.
983
984         * WebCore+SVG/kdom.h: Removed NodeType and ExceptionCodes
985         * WebCore+SVG/kdomevents.h: Removed.
986
987         * WebCore.xcodeproj/project.pbxproj: Updated for file changes.
988         * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
989
990         * bindings/scripts/CodeGeneratorJS.pm: Removed unneeded DOM:: prefix. Updated file
991         names and exception prefix for changes in DOM exceptions.
992
993         * bindings/js/JSDOMCore.cpp: Touched to cause auto-generated code to be
994         recompiled. We need to get this fixed!
995         * bindings/js/JSDOMEvents.cpp: Ditto.
996
997         * dom/Attr.idl:
998         * dom/CharacterData.idl:
999         * dom/DOMImplementation.idl:
1000         * dom/DocumentType.idl:
1001         * dom/Element.idl:
1002         * dom/Entity.idl:
1003         * dom/MutationEvent.idl:
1004         * dom/Notation.idl:
1005         * dom/ProcessingInstruction.idl:
1006         * dom/Text.idl:
1007         * dom/WheelEvent.idl:
1008         Touched all IDL files so that changes in CodeGeneratorJS.pm would take effect.
1009         Added license headers.
1010
1011         * bindings/objc/DOM.mm: Fixed garbled license agreement. Updated includes.
1012         Changed from a single "using namespace WebCore" to individual using statements
1013         because of the imminent conflict between DOMImplementation in Objective C
1014         and WebCore::DOMImplementation (currently has an Impl suffix). Added a typedef
1015         for WebCore::DOMImplementationImpl. Changed to use ExceptionCode instead of int.
1016
1017         * bindings/objc/DOMCSS.h: Removed DOMCSSException and the special CSS exception
1018         codes. This is a feature of DOM Level 1 only. In DOM Level 2 these were eliminated
1019         and use basic DOM exception codes instead. We might have to do something for binary
1020         compatibility eventually, but perhaps not.
1021
1022         * bindings/objc/DOMCSS.mm:
1023         * bindings/objc/DOMEvents.mm:
1024         * bindings/objc/DOMEventsInternal.h:
1025         * bindings/objc/DOMHTML.mm:
1026         * bindings/objc/DOMHTMLInternal.h:
1027         * bindings/objc/DOMViews.mm:
1028         * bindings/objc/DOMViewsInternal.h:
1029         Fixed garbled license agreements.
1030         Changed to use ExceptionCode instead of int and name the variable "ec".
1031
1032         * bindings/objc/DOMInternal.h: Changed addDOMWrapperImpl to take NSObject* instead
1033         of id. This helps with overload resolution when addDOMWrapperImpl is renamed to be
1034         addDOMWrapper. Changed ALLOW_DOM_CAST to always use "class" in from of the type name
1035         of the WebCore class. This helps work around what seems like a bug in namespace support
1036         in Objective-C mode, although the bug only happens after the "remove Impl" renaming.
1037         * bindings/objc/DOMInternal.mm:
1038         (getDOMWrapperImpl): Changed to use HashMap.
1039         (addDOMWrapperImpl): Ditto.
1040         (removeDOMWrapper): Ditto.
1041         (raiseDOMException): Update to use new names for exception number ranges.
1042
1043         * bridge/mac/WebCoreFrameBridge.mm:
1044         * khtml/ecma/xmlserializer.cpp:
1045         * kwq/KWQAccObject.mm:
1046         Removed unneeded includes.
1047
1048         * css/css_ruleimpl.h: Moved "rule type" into this header.
1049
1050         * dom/CommentImpl.h:
1051         * dom/CommentImpl.cpp: (WebCore::CommentImpl::offsetInCharacters): Added. Returns true.
1052
1053         * khtml/ecma/XSLTProcessor.cpp: (KJS::XSLTProcessorProtoFunc::callAsFunction):
1054         Changed this around so we don't have a local variable named docImpl.
1055
1056         * khtml/ecma/kjs_binding.cpp: (KJS::setDOMException): Updated for new form of exception
1057         constants.
1058
1059         * khtml/ecma/kjs_events.h:
1060         * khtml/ecma/kjs_events.cpp:
1061         (KJS::JSAbstractEventListener::handleEvent): Changed to no longer use EventListenerEvent.
1062         (KJS::JSAbstractEventListener::isHTMLEventListener): Added.
1063
1064         * rendering/RenderTextField.h: Updated includes. Tweaked the code formatting of
1065         InputMutationListener. (Might be unnecessary since this class might be deleted soon.)
1066
1067         * bridge/mac/MacFrame.mm:
1068         * css/css_computedstyle.cpp:
1069         * css/css_computedstyle.h:
1070         * css/css_ruleimpl.cpp:
1071         * css/css_stylesheetimpl.cpp:
1072         * css/css_stylesheetimpl.h:
1073         * css/css_valueimpl.cpp:
1074         * css/css_valueimpl.cpp:
1075         * css/css_valueimpl.h:
1076         * css/css_valueimpl.h:
1077         * css/cssparser.cpp:
1078         * css/cssstyleselector.cpp:
1079         * dom/CDATASectionImpl.cpp:
1080         * dom/CDATASectionImpl.h:
1081         * dom/CharacterDataImpl.cpp:
1082         * dom/CharacterDataImpl.h:
1083         * dom/ContainerNodeImpl.cpp:
1084         * dom/DOMImplementationImpl.cpp:
1085         * dom/DocumentFragmentImpl.cpp:
1086         * dom/DocumentFragmentImpl.h:
1087         * dom/DocumentImpl.cpp:
1088         * dom/DocumentImpl.h:
1089         * dom/DocumentTypeImpl.cpp:
1090         * dom/DocumentTypeImpl.h:
1091         * dom/NamedNodeMapImpl.h:
1092         * dom/NodeImpl.cpp:
1093         * dom/NodeImpl.h:
1094         * dom/NodeListImpl.cpp:
1095         * dom/TextImpl.cpp:
1096         * dom/TextImpl.h:
1097         * dom/dom2_eventsimpl.cpp:
1098         * dom/dom2_eventsimpl.h:
1099         * dom/dom2_rangeimpl.cpp:
1100         * dom/dom2_rangeimpl.h:
1101         * dom/dom2_traversalimpl.cpp:
1102         * dom/dom2_traversalimpl.h:
1103         * dom/dom_elementimpl.cpp:
1104         * dom/dom_elementimpl.h:
1105         * dom/dom_position.cpp:
1106         * dom/dom_xmlimpl.cpp:
1107         * dom/dom_xmlimpl.h:
1108         * dom/xml_tokenizer.cpp:
1109         * editing/AppendNodeCommand.cpp:
1110         * editing/ApplyStyleCommand.cpp:
1111         * editing/CompositeEditCommand.cpp:
1112         * editing/DeleteFromTextNodeCommand.cpp:
1113         * editing/InsertIntoTextNodeCommand.cpp:
1114         * editing/InsertLineBreakCommand.cpp:
1115         * editing/InsertNodeBeforeCommand.cpp:
1116         * editing/InsertParagraphSeparatorCommand.cpp:
1117         * editing/JoinTextNodesCommand.cpp:
1118         * editing/MergeIdenticalElementsCommand.cpp:
1119         * editing/RemoveNodeAttributeCommand.cpp:
1120         * editing/RemoveNodeCommand.cpp:
1121         * editing/ReplaceSelectionCommand.cpp:
1122         * editing/Selection.cpp:
1123         * editing/SelectionController.cpp:
1124         * editing/SelectionController.h:
1125         * editing/SetNodeAttributeCommand.cpp:
1126         * editing/SplitElementCommand.cpp:
1127         * editing/SplitTextNodeCommand.cpp:
1128         * editing/VisiblePosition.cpp:
1129         * editing/WrapContentsInDummySpanCommand.cpp:
1130         * editing/htmlediting.cpp:
1131         * editing/markup.cpp:
1132         * editing/visible_text.cpp:
1133         * khtml/ecma/kjs_binding.h:
1134         * khtml/ecma/kjs_css.cpp:
1135         * khtml/ecma/kjs_dom.cpp:
1136         * khtml/ecma/kjs_html.cpp:
1137         * khtml/ecma/kjs_range.cpp:
1138         * khtml/ecma/kjs_traversal.cpp:
1139         * khtml/ecma/kjs_traversal.h:
1140         * khtml/ecma/kjs_window.cpp:
1141         * khtml/html/HTMLElementImpl.cpp:
1142         * khtml/html/HTMLOptionElementImpl.cpp:
1143         * khtml/html/HTMLOptionElementImpl.h:
1144         * khtml/html/HTMLOptionsCollectionImpl.cpp:
1145         * khtml/html/HTMLSelectElementImpl.cpp:
1146         * khtml/html/HTMLTextAreaElementImpl.cpp:
1147         * khtml/html/html_documentimpl.cpp:
1148         * khtml/html/html_documentimpl.h:
1149         * khtml/html/html_headimpl.cpp:
1150         * khtml/html/html_tableimpl.cpp:
1151         * khtml/html/html_tableimpl.h:
1152         * khtml/html/htmlparser.cpp:
1153         * khtml/xbl/xbl_tokenizer.cpp:
1154         * khtml/xsl/xsl_stylesheetimpl.cpp:
1155         * ksvg2/misc/SVGDocumentExtensions.cpp:
1156         * ksvg2/svg/SVGAnimationElementImpl.cpp:
1157         * ksvg2/svg/SVGDOMImplementationImpl.cpp:
1158         * ksvg2/svg/SVGDOMImplementationImpl.h:
1159         * ksvg2/svg/SVGDocumentImpl.cpp:
1160         * ksvg2/svg/SVGDocumentImpl.h:
1161         * ksvg2/svg/SVGElementImpl.cpp:
1162         * ksvg2/svg/SVGLengthImpl.cpp:
1163         * ksvg2/svg/SVGLocatableImpl.cpp:
1164         * ksvg2/svg/SVGPolyElementImpl.cpp:
1165         * ksvg2/svg/SVGSVGElementImpl.cpp:
1166         * ksvg2/svg/SVGStyleElementImpl.cpp:
1167         * ksvg2/svg/SVGStyleElementImpl.h:
1168         * ksvg2/svg/SVGUseElementImpl.cpp:
1169         * page/Frame.cpp:
1170         * page/FrameView.cpp:
1171         * rendering/render_object.cpp:
1172         * xml/xmlhttprequest.cpp:
1173         Changed to use ExceptionCode instead of int and name the variable "ec".
1174         Also updated use of exception codes and other constants to get them from
1175         their new locations.
1176
1177 2006-03-06  Eric Seidel  <eseidel@apple.com>
1178
1179         Reviewed by mjs.
1180
1181         Fix more pages (apple.com, yahoo.com) by returning empty error image.
1182         Empty a couple more stubs and clean up stub style a little.
1183
1184         * platform/cairo/ImageCairo.cpp:
1185         (WebCore::Image::loadResource):
1186         * platform/win/TemporaryLinkStubs.cpp:
1187         (QListBox::isSelected):
1188         (QSlider::sizeHint):
1189         (QScrollBar::~QScrollBar):
1190         (FrameWin::getObjectInstanceForWidget):
1191         (FrameWin::getEmbedInstanceForWidget):
1192         (FrameWin::recordFormValue):
1193         (FrameWin::getAppletInstanceForWidget):
1194         (FrameWin::passMouseDownEventToWidget):
1195         (FrameWin::passWheelEventToChildWidget):
1196         (FrameWin::createPlugin):
1197         (BrowserExtensionWin::createNewWindow):
1198         (Path::Path):
1199         (QLineEdit::~QLineEdit):
1200         (QLineEdit::setLiveSearch):
1201         (QComboBox::~QComboBox):
1202
1203 2006-03-06  Eric Seidel  <eseidel@apple.com>
1204
1205         Reviewed by andersca.
1206
1207         Empty enough stubs to make apple.com load.
1208
1209         * platform/win/TemporaryLinkStubs.cpp:
1210         (QTextEdit::sizeWithColumnsAndRows):
1211         (GraphicsContext::misspellingLineThickness):
1212         (QTextEdit::selectAll):
1213         (QTextEdit::setSelectionStart):
1214         (Widget::unlockDrawingFocus):
1215         (QLineEdit::setAutoSaveName):
1216         (ScrollView::scrollYOffset):
1217         (KWQFileButton::setFilename):
1218         (QListBox::setFont):
1219         (GraphicsContext::beginTransparencyLayer):
1220         (GraphicsContext::endTransparencyLayer):
1221         (QComboBox::QComboBox):
1222         (QComboBox::setFont):
1223         (QComboBox::baselinePosition):
1224         (QComboBox::setWritingDirection):
1225         (QComboBox::clear):
1226         (QComboBox::appendItem):
1227         (QComboBox::setCurrentItem):
1228         (QComboBox::sizeHint):
1229         (QComboBox::frameGeometry):
1230         (QComboBox::setFrameGeometry):
1231         (QLineEdit::setLiveSearch):
1232
1233 2006-03-06  Eric Seidel  <eseidel@apple.com>
1234
1235         Reviewed by darin.
1236
1237         Fix external resource loading.
1238         Make a bunch of stubs not abort (to fix slashdot).
1239
1240         * platform/win/TemporaryLinkStubs.cpp:
1241         (QTextEdit::textWithHardLineBreaks):
1242         (KWQFileButton::click):
1243         (QComboBox::setFrameGeometry):
1244         (QTextEdit::setText):
1245         (QListBox::appendItem):
1246         (GraphicsContext::endTransparencyLayer):
1247         (QLineEdit::selectionStart):
1248         (QTextEdit::QTextEdit):
1249         (QListBox::isSelected):
1250         (QComboBox::focusPolicy):
1251         (QTextEdit::setCursorPosition):
1252         (QTextEdit::setAlignment):
1253         (QLineEdit::selectedText):
1254         (ScrollView::scrollPointRecursively):
1255         (QScrollBar::setSteps):
1256         (QComboBox::appendItem):
1257         (GraphicsContext::drawLineForMisspelling):
1258         (KWQFileButton::setFilename):
1259         (QListBox::setWritingDirection):
1260         (QListBox::focusPolicy):
1261         (MouseEvent::MouseEvent):
1262         (QSlider::setFont):
1263         (Widget::setEnabled):
1264         (Widget::paint):
1265         (ScrollView::addChild):
1266         (ScrollView::inWindow):
1267         (GraphicsContext::setShadow):
1268         (GraphicsContext::clearShadow):
1269         (RenderThemeWin::paintCheckbox):
1270         (RenderThemeWin::paintRadio):
1271         (RenderThemeWin::paintButton):
1272         (RenderThemeWin::paintTextField):
1273         (QLineEdit::QLineEdit):
1274         (QLineEdit::setFont):
1275         (QLineEdit::setAlignment):
1276         (QLineEdit::setWritingDirection):
1277         (QLineEdit::maxLength):
1278         (QLineEdit::setMaxLength):
1279         (QLineEdit::text):
1280         (QLineEdit::setText):
1281         (QLineEdit::cursorPosition):
1282         (QLineEdit::setCursorPosition):
1283         (QLineEdit::setEdited):
1284         (QLineEdit::setReadOnly):
1285         (QLineEdit::setPlaceholderString):
1286         (QLineEdit::setColors):
1287         (QLineEdit::sizeForCharacterWidth):
1288         (QLineEdit::baselinePosition):
1289         * platform/win/TransferJobWin.cpp:
1290         (WebCore::TransferJob::fileLoadTimer):
1291         (WebCore::TransferJob::cancel):
1292
1293 2006-03-05  Darin Adler  <darin@apple.com>
1294
1295         Reviewed by Maciej.
1296
1297         - fix failure seen running editing layout tests
1298
1299         * editing/ReplaceSelectionCommand.cpp:
1300         (WebCore::ReplacementFragment::ReplacementFragment):
1301         Use selectNodeContents instead of rolling our own.
1302         It handles the "nothing at all" edge case properly.
1303
1304 2006-03-05  Eric Seidel  <eseidel@apple.com>
1305
1306         Reviewed by darin.
1307
1308         Make updateContents invalidate entire window for now.
1309         Fix indentation in fileLoadTimer.
1310
1311         * platform/win/ScrollViewWin.cpp:
1312         (WebCore::ScrollView::updateContents):
1313         * platform/win/TransferJobWin.cpp:
1314         (WebCore::TransferJob::fileLoadTimer):
1315
1316 2006-03-05  Eric Seidel  <eseidel@apple.com>
1317
1318         Reviewed by adele.
1319
1320         Add missing files to vcproj (fix win32 build).
1321         Also add svn:eol-style=native to new files.
1322
1323         * WebCore.vcproj/WebCore/WebCore.vcproj:
1324
1325 2006-03-05  Darin Adler  <mjs@apple.com>
1326
1327         - fix build
1328
1329         * rendering/render_style.h: (compareEqual): Made it inline, fixed variable name.
1330
1331 2006-03-05  Adele Peterson  <adele@apple.com>
1332
1333         Reviewed by Darin.
1334
1335         - Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=6987
1336         Implement maxlength for new text fields
1337
1338         Test added:
1339         * fast/forms/input-appearance-maxlength.html
1340
1341         * WebCore.xcodeproj/project.pbxproj: 
1342          Added BeforeTextInsertedEventImpl.h, BeforeTextInsertedEventImpl.cpp, HTMLTextFieldInnerElementImpl.h, and HTMLTextFieldInnerElementImpl.cpp
1343
1344         * khtml/html/HTMLInputElementImpl.cpp:
1345         (WebCore::HTMLInputElementImpl::init): initialize max length to 1024.
1346         (WebCore::HTMLInputElementImpl::defaultEventHandler): Added case to use the khtmlBeforeTextInsertedEvent to check for maxlength.
1347         (WebCore::HTMLInputElementImpl::parseMappedAttribute): Makes sure that maxlength is between 0 and 1024.
1348
1349         * editing/ReplaceSelectionCommand.cpp:
1350         (WebCore::ReplacementFragment::ReplacementFragment): After doing a test insert of the fragment,
1351          Send khtmlBeforeTextInsertedEvent to the root editable element so the event handler can update the text, and we can update the fragment.
1352         * editing/TypingCommand.cpp:
1353         (WebCore::TypingCommand::insertText): Send khtmlBeforeTextInsertedEvent to the root editable element so the event handler can update the text if necessary.
1354         * editing/EditCommand.cpp:
1355         (WebCore::EditCommand::apply): If we've just applied a command, send the khtmlTextInsertedEvent to the root editable element. 
1356         (WebCore::EditCommand::unapply): ditto.
1357         (WebCore::EditCommand::reapply): ditto.
1358
1359         * khtml/html/HTMLTextFieldInnerElementImpl.h: Added this class to store a pointer to the input element for the text field and to handle default events.
1360         (DOM::HTMLTextFieldInnerElementImpl::shadowParentNode): Added.
1361         (DOM::HTMLTextFieldInnerElementImpl::setShadowParentNode): Added.
1362         * khtml/html/HTMLTextFieldInnerElementImpl.cpp: Added.
1363         (WebCore::HTMLTextFieldInnerElementImpl::HTMLTextFieldInnerElementImpl):
1364         (WebCore::HTMLTextFieldInnerElementImpl::~HTMLTextFieldInnerElementImpl):
1365         (WebCore::HTMLTextFieldInnerElementImpl::defaultEventHandler):
1366          Sends khtmlBeforeTextInsertedEvents to the shadowParentNode, 
1367          and handles khtmlTextInsertedEvents by telling the renderer that the subtree has changed.
1368
1369         * rendering/RenderTextField.cpp: Removed InputMutationListener since subtreeHasChanged is now called from the editing code.
1370         (WebCore::RenderTextField::~RenderTextField): removed event listener code.
1371         (WebCore::RenderTextField::updateFromElement): ditto.  And creates HTMLTextFieldInnerElementImpl.
1372         (WebCore::RenderTextField::subtreeHasChanged): calls new text() method.
1373         (WebCore::RenderTextField::text): created to get a String of all text in the RenderTextField.
1374         * rendering/RenderTextField.h: Removed InputMutationListener class.
1375
1376         * dom/EventNames.h: Added khtmlTextInserted and khtmlBeforeTextInserted.
1377         * dom/BeforeTextInsertedEventImpl.cpp: Added.
1378         (WebCore::BeforeTextInsertedEventImpl::BeforeTextInsertedEventImpl):
1379         * dom/BeforeTextInsertedEventImpl.h: Added.
1380         (WebCore::BeforeTextInsertedEventImpl::isBeforeTextInsertedEvent):
1381         (WebCore::BeforeTextInsertedEventImpl::text):
1382         * dom/dom2_eventsimpl.cpp: (WebCore::EventImpl::isBeforeTextInsertedEvent): Added.
1383         * dom/dom2_eventsimpl.h: Added isBeforeTextInsertedEvent.
1384
1385 2006-03-05  Maciej Stachowiak  <mjs@apple.com>
1386
1387         - fix build, give this a return type.
1388
1389         * rendering/render_style.h:
1390         (compareEqual):
1391
1392 2006-03-05  Eric Seidel  <eseidel@apple.com>
1393
1394         Add "Font.h" to (try to) fix the no-svg build.
1395
1396         * platform/mac/GraphicsContextMac.mm:
1397
1398 2006-03-05  Maciej Stachowiak  <mjs@apple.com>
1399
1400         Rubber stamped by Darin.
1401
1402         - fix win32 build by avoiding use of typeof
1403
1404         * rendering/render_style.h:
1405         (compareEqual):
1406
1407 2006-03-05  Geoffrey Garen  <ggaren@apple.com>
1408
1409         Reviewed by Maciej.
1410
1411         - Second cut at fixing <rdar://problem/4467143> JavaScript enumeration 
1412         of HTML element properties skips DOM node properties
1413  
1414         The approach here is for prototypes, in their constructor methods, 
1415         to set their own prototypes, preserving the prototype 
1416         chain in cases of multiple levels of inheritance. (Previously, our
1417         code assumed that a prototype never had a prototype of its own,
1418         and always used an empty object as a prototype's prototype).
1419
1420         * bindings/scripts/CodeGeneratorJS.pm: Use the new
1421         DEFINE_PROTOTYPE_WITH_PROTOTYPE macro in place of the  
1422         KJS_IMPLEMENT_PROTOTYPE_WITH_PARENT macro.
1423         * khtml/ecma/kjs_dom.cpp: Ditto.
1424         * khtml/ecma/kjs_dom.h: Ditto.
1425         * khtml/ecma/kjs_events.cpp: Ditto.
1426
1427         Touched these files to force a rebuild:
1428
1429         * bindings/js/JSDOMCore.cpp:
1430         * bindings/js/JSDOMEvents.cpp:
1431         * dom/Attr.idl:
1432         * dom/CharacterData.idl:
1433         * dom/DOMImplementation.idl:
1434         * dom/DocumentType.idl:
1435         * dom/Element.idl:
1436         * dom/Entity.idl:
1437         * dom/MutationEvent.idl:
1438         * dom/Notation.idl:
1439         * dom/ProcessingInstruction.idl:
1440         * dom/Text.idl:
1441         * dom/WheelEvent.idl:
1442
1443 2006-03-05  Maciej Stachowiak  <mjs@apple.com>
1444
1445         Reviewed by Darin.
1446
1447         - use unsigned bitfields when storing enums in them, to avoid mangling on win32 (was causing all layout to be RTL)
1448         http://bugzilla.opendarwin.org/show_bug.cgi?id=7618
1449
1450         * css/css_base.cpp:
1451         (WebCore::CSSSelector::operator == ):
1452         (WebCore::CSSSelector::selectorText):
1453         * css/css_base.h:
1454         (WebCore::CSSSelector::CSSSelector):
1455         (WebCore::CSSSelector::pseudoType):
1456         (WebCore::CSSSelector::relation):
1457         * css/css_grammar.y:
1458         * css/cssstyleselector.cpp:
1459         (WebCore::CSSStyleSelector::checkSelector):
1460         (WebCore::CSSStyleSelector::checkOneSelector):
1461         * kcanvas/KCanvasPath.cpp:
1462         (WebCore::operator<<):
1463         * kcanvas/KCanvasPath.h:
1464         (WebCore::KCClipData::windRule):
1465         (WebCore::KCClipDataList::addPath):
1466         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
1467         (WebCore::KCanvasClipperQuartz::applyClip):
1468         * khtml/ecma/kjs_html.h:
1469         * khtml/html/HTMLButtonElementImpl.h:
1470         * khtml/html/HTMLInputElementImpl.cpp:
1471         (WebCore::HTMLInputElementImpl::setInputType):
1472         * khtml/html/HTMLInputElementImpl.h:
1473         (DOM::HTMLInputElementImpl::inputType):
1474         * khtml/html/html_tableimpl.h:
1475         * khtml/xbl/xbl_protohandler.cpp:
1476         (XBL::m_button):
1477         * khtml/xbl/xbl_protohandler.h:
1478         * ksvg2/css/SVGRenderStyle.h:
1479         (WebCore::SVGRenderStyle::InheritedFlags::):
1480         (WebCore::SVGRenderStyle::NonInheritedFlags::):
1481         (WebCore::SVGRenderStyle::setBitDefaults):
1482         * ksvg2/svg/SVGAnimateTransformElementImpl.h:
1483         * ksvg2/svg/SVGAnimationElementImpl.cpp:
1484         (SVGAnimationElementImpl::targetAttribute):
1485         (SVGAnimationElementImpl::setTargetAttribute):
1486         * ksvg2/svg/SVGAnimationElementImpl.h:
1487         * ksvg2/svg/SVGLengthImpl.cpp:
1488         (SVGLengthImpl::value):
1489         * ksvg2/svg/SVGLengthImpl.h:
1490         * kwq/KWQKHTMLSettings.h:
1491         * loader/CachedImage.h:
1492         * loader/DocLoader.cpp:
1493         (WebCore::DocLoader::setCachePolicy):
1494         (WebCore::DocLoader::setShowAnimations):
1495         * loader/DocLoader.h:
1496         (WebCore::DocLoader::showAnimations):
1497         * platform/FontDescription.h:
1498         (WebCore::FontDescription::genericFamily):
1499         * platform/QString.cpp:
1500         (HandleNode::):
1501         * platform/QString.h:
1502         * rendering/RenderBlock.cpp:
1503         (WebCore::RenderBlock::setSelectionState):
1504         (WebCore::RenderBlock::leftRelOffset):
1505         (WebCore::RenderBlock::rightRelOffset):
1506         (WebCore::RenderBlock::leftBottom):
1507         (WebCore::RenderBlock::rightBottom):
1508         (WebCore::RenderBlock::addOverhangingFloats):
1509         (WebCore::RenderBlock::addIntrudingFloats):
1510         * rendering/RenderBlock.h:
1511         (WebCore::RenderBlock::selectionState):
1512         (WebCore::RenderBlock::FloatingObject::FloatingObject):
1513         (WebCore::RenderBlock::FloatingObject::type):
1514         * rendering/RenderTable.h:
1515         (WebCore::RenderTable::getRules):
1516         * rendering/bidi.cpp:
1517         (khtml::BidiContext::BidiContext):
1518         (khtml::operator==):
1519         (khtml::embed):
1520         (khtml::RenderBlock::computeHorizontalPositionsForLine):
1521         (khtml::RenderBlock::bidiReorderLine):
1522         (khtml::RenderBlock::layoutInlineChildren):
1523         * rendering/bidi.h:
1524         (khtml::BidiContext::dir):
1525         (khtml::BidiContext::basicDir):
1526         (khtml::BidiRun::BidiRun):
1527         * rendering/render_canvasimage.h:
1528         * rendering/render_layer.h:
1529         (WebCore::Marquee::whiteSpace):
1530         * rendering/render_object.cpp:
1531         (WebCore::RenderObject::paintBorderImage):
1532         * rendering/render_replaced.cpp:
1533         (WebCore::RenderWidget::setSelectionState):
1534         * rendering/render_replaced.h:
1535         (WebCore::RenderReplaced::selectionState):
1536         * rendering/render_style.cpp:
1537         (WebCore::RenderStyle::getPseudoStyle):
1538         * rendering/render_style.h:
1539         (khtml::BorderValue::BorderValue):
1540         (khtml::BorderValue::style):
1541         (khtml::BorderValue::nonZero):
1542         (khtml::BorderValue::operator==):
1543         (khtml::OutlineValue::operator==):
1544         (khtml::CollapsedBorderValue::style):
1545         (khtml::BorderImage::horizontalRule):
1546         (khtml::BorderImage::verticalRule):
1547         (khtml::BorderData::borderLeftWidth):
1548         (khtml::BorderData::borderRightWidth):
1549         (khtml::BorderData::borderTopWidth):
1550         (khtml::BorderData::borderBottomWidth):
1551         (khtml::BackgroundLayer::backgroundClip):
1552         (khtml::BackgroundLayer::backgroundOrigin):
1553         (khtml::BackgroundLayer::backgroundRepeat):
1554         (khtml::RenderStyle::styleType):
1555         (khtml::RenderStyle::display):
1556         (khtml::RenderStyle::originalDisplay):
1557         (khtml::RenderStyle::position):
1558         (khtml::RenderStyle::floating):
1559         (khtml::RenderStyle::borderLeftStyle):
1560         (khtml::RenderStyle::borderLeftColor):
1561         (khtml::RenderStyle::borderRightStyle):
1562         (khtml::RenderStyle::borderRightColor):
1563         (khtml::RenderStyle::borderTopStyle):
1564         (khtml::RenderStyle::borderTopColor):
1565         (khtml::RenderStyle::borderBottomStyle):
1566         (khtml::RenderStyle::borderBottomColor):
1567         (khtml::RenderStyle::outlineWidth):
1568         (khtml::RenderStyle::outlineStyle):
1569         (khtml::RenderStyle::overflow):
1570         (khtml::RenderStyle::visibility):
1571         (khtml::RenderStyle::verticalAlign):
1572         (khtml::RenderStyle::unicodeBidi):
1573         (khtml::RenderStyle::clear):
1574         (khtml::RenderStyle::tableLayout):
1575         (khtml::RenderStyle::textAlign):
1576         (khtml::RenderStyle::textTransform):
1577         (khtml::RenderStyle::direction):
1578         (khtml::RenderStyle::whiteSpace):
1579         (khtml::RenderStyle::backgroundRepeat):
1580         (khtml::RenderStyle::backgroundClip):
1581         (khtml::RenderStyle::backgroundOrigin):
1582         (khtml::RenderStyle::emptyCells):
1583         (khtml::RenderStyle::captionSide):
1584         (khtml::RenderStyle::listStyleType):
1585         (khtml::RenderStyle::listStylePosition):
1586         (khtml::RenderStyle::cursor):
1587         (khtml::RenderStyle::pageBreakInside):
1588         (khtml::RenderStyle::pageBreakBefore):
1589         (khtml::RenderStyle::pageBreakAfter):
1590         (khtml::RenderStyle::outlineOffset):
1591         (khtml::RenderStyle::appearance):
1592         (khtml::RenderStyle::boxAlign):
1593         (khtml::RenderStyle::boxDirection):
1594         (khtml::RenderStyle::boxLines):
1595         (khtml::RenderStyle::boxOrient):
1596         (khtml::RenderStyle::boxPack):
1597         (khtml::RenderStyle::boxSizing):
1598         (khtml::RenderStyle::marqueeBehavior):
1599         (khtml::RenderStyle::marqueeDirection):
1600         (khtml::RenderStyle::userModify):
1601         (khtml::RenderStyle::userDrag):
1602         (khtml::RenderStyle::userSelect):
1603         (khtml::RenderStyle::marginTopCollapse):
1604         (khtml::RenderStyle::marginBottomCollapse):
1605         (khtml::RenderStyle::wordWrap):
1606         (khtml::RenderStyle::nbspMode):
1607         (khtml::RenderStyle::khtmlLineBreak):
1608         (khtml::RenderStyle::matchNearestMailBlockquoteColor):
1609         (khtml::RenderStyle::setBorderLeftWidth):
1610         (khtml::RenderStyle::setBorderLeftStyle):
1611         (khtml::RenderStyle::setBorderLeftColor):
1612         (khtml::RenderStyle::setBorderRightWidth):
1613         (khtml::RenderStyle::setBorderRightStyle):
1614         (khtml::RenderStyle::setBorderRightColor):
1615         (khtml::RenderStyle::setBorderTopWidth):
1616         (khtml::RenderStyle::setBorderTopStyle):
1617         (khtml::RenderStyle::setBorderTopColor):
1618         (khtml::RenderStyle::setBorderBottomWidth):
1619         (khtml::RenderStyle::setBorderBottomStyle):
1620         (khtml::RenderStyle::setBorderBottomColor):
1621         (khtml::RenderStyle::setOutlineWidth):
1622         (khtml::RenderStyle::setOutlineStyle):
1623         (khtml::RenderStyle::pseudoState):
1624
1625 2006-03-05  Geoffrey Garen  <ggaren@apple.com>
1626
1627         - Rolled out the fix for <rdar://problem/4467143> because it's the
1628         wrong approach. Maciej and I discussed this on IRC.
1629
1630         * khtml/ecma/kjs_dom.cpp:
1631         (KJS::): Don't use classInfo to express prototype inheritance.
1632         classInfo is only for representing a c++ superclass relationship.
1633
1634 2006-03-05  Eric Seidel  <eseidel@apple.com>
1635
1636         Move improperly placed #endif causing no-svg build to fail.
1637
1638         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
1639
1640 2006-03-05  Alexander Kellett  <lypanov@kde.org>
1641
1642         Reviewed by Eric.
1643
1644         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6890
1645           and http://bugzilla.opendarwin.org/show_bug.cgi?id=6951
1646           by being more tolerant towards invalid points data
1647
1648         - new tests:
1649           svg/custom/polyline-setattribute-points-null.svg
1650           svg/custom/polyline-invalid-points.svg
1651
1652         * ksvg2/svg/svgpathparser.cpp:
1653         (SVGPolyParser::parsePoints):
1654
1655 2006-03-05  Maciej Stachowiak  <mjs@apple.com>
1656
1657         Rubber stamped by Eric.
1658
1659         - remove no longer used KDOMSettings and KSVGSettings
1660
1661         * WebCore+SVG/KDOMSettings.cpp: Removed.
1662         * WebCore+SVG/KDOMSettings.h: Removed.
1663         * WebCore.xcodeproj/project.pbxproj:
1664         * ksvg2/KSVGSettings.h: Removed.
1665         * ksvg2/svg/SVGStyledElementImpl.cpp:
1666
1667 2006-03-05  Eric Seidel  <eseidel@apple.com>
1668
1669         Reviewed by mjs.
1670
1671         * platform/Font.cpp:
1672         (WebCore::Font::update): remove extra ref causing large leak.
1673
1674 2006-03-04  Eric Seidel  <eseidel@apple.com>
1675
1676         Reviewed by hyatt.
1677
1678         Re-work ImageViewer to use GraphicsContext.
1679         Add GraphicsContext(cairo_t*) constructor to make double-buffering easier.
1680         Add one more stub to prevent slashdot from crashing.
1681         Also fixed win32 build after Font change.
1682
1683         * Viewer.vcproj:
1684         * Viewer/ImageView.cpp:
1685         * platform/Color.h:
1686         * platform/GraphicsContext.h:
1687         * platform/cairo/GraphicsContextCairo.cpp:
1688         (WebCore::GraphicsContext::GraphicsContext):
1689         * platform/win/TemporaryLinkStubs.cpp:
1690         (FrameWin::createPlugin):
1691         (BrowserExtensionWin::setTypedIconURL):
1692
1693 2006-03-05  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1694
1695         Reviewed by Darin, landed by ap.
1696
1697         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4840
1698           Frames only resize wider, can't make them narrower
1699
1700         * khtml/html/html_baseimpl.cpp:
1701         (WebCore::HTMLFrameSetElementImpl::HTMLFrameSetElementImpl): Removed unused m_resizing flag.
1702         * khtml/html/html_baseimpl.h:
1703         * manual-tests/bugzilla-4840.html: Added.
1704         * page/FrameView.cpp:
1705         (WebCore::FrameViewPrivate::reset):
1706         (WebCore::FrameView::viewportMouseMoveEvent):
1707         (WebCore::FrameView::viewportMouseReleaseEvent):
1708         (WebCore::FrameView::setResizingFrameSet): New method. When a resizing frameset is set,
1709         mouse move and mouse release events target it instead of hit-testing.
1710         * page/FrameView.h:
1711         * rendering/render_frames.cpp:
1712         (WebCore::RenderFrameSet::setResizing): Inform the FrameView that we are resizing (or not).
1713
1714 2006-03-04  David Hyatt  <hyatt@apple.com>
1715
1716         Fix for bug 7586, eliminate QFontMetrics.
1717
1718         Reviewed by eric
1719
1720         * WebCore.xcodeproj/project.pbxproj:
1721         * css/css_valueimpl.cpp:
1722         (WebCore::CSSPrimitiveValueImpl::computeLengthFloat):
1723         * ksvg2/svg/SVGLengthImpl.cpp:
1724         (SVGLengthImpl::updateValue):
1725         * kwq/KWQFontMetrics.h: Removed.
1726         * kwq/KWQFontMetrics.mm: Removed.
1727         * platform/Font.cpp:
1728         (WebCore::m_wordSpacing):
1729         (WebCore::Font::Font):
1730         (WebCore::Font::operator=):
1731         (WebCore::Font::~Font):
1732         (WebCore::Font::update):
1733         (WebCore::Font::width):
1734         * platform/Font.h:
1735         (WebCore::Font::operator==):
1736         (WebCore::Font::width):
1737         (WebCore::Font::height):
1738         * platform/FontRenderer.h: Added.
1739         (WebCore::FontRenderer::isFixedPitch):
1740         * platform/GraphicsContext.h:
1741         * platform/mac/FontMac.mm: Added.
1742         (WebCore::m_renderer):
1743         (WebCore::FontRenderer::getWebCoreFont):
1744         (WebCore::FontRenderer::getRenderer):
1745         (WebCore::FontRenderer::determinePitch):
1746         (WebCore::FontRenderer::update):
1747         (WebCore::Font::getWebCoreFont):
1748         (WebCore::Font::ascent):
1749         (WebCore::Font::descent):
1750         (WebCore::Font::lineSpacing):
1751         (WebCore::Font::xHeight):
1752         (WebCore::Font::isFixedPitch):
1753         (WebCore::Font::selectionRectForText):
1754         (WebCore::Font::drawHighlightForText):
1755         (WebCore::Font::drawText):
1756         (WebCore::Font::floatWidth):
1757         (WebCore::Font::checkSelectionPoint):
1758         * platform/mac/GraphicsContextMac.mm:
1759         * rendering/InlineTextBox.h:
1760         * rendering/RenderBlock.cpp:
1761         (WebCore::stripTrailingSpace):
1762         * rendering/RenderText.cpp:
1763         (WebCore::RenderText::trimmedMinMaxWidth):
1764         * rendering/RenderText.h:
1765         * rendering/RenderTextField.cpp:
1766         (WebCore::RenderTextField::calcMinMaxWidth):
1767         * rendering/bidi.cpp:
1768         (khtml::RenderBlock::tabWidth):
1769         (khtml::RenderBlock::checkLinesForTextOverflow):
1770         * rendering/render_box.cpp:
1771         (WebCore::RenderBox::caretRect):
1772         * rendering/render_br.cpp:
1773         (WebCore::RenderBR::lineHeight):
1774         * rendering/render_flow.cpp:
1775         (WebCore::RenderFlow::lineHeight):
1776         (WebCore::RenderFlow::caretRect):
1777         * rendering/render_image.cpp:
1778         (WebCore::RenderImage::imageChanged):
1779         (WebCore::RenderImage::paint):
1780         * rendering/render_line.cpp:
1781         (WebCore::InlineFlowBox::placeBoxesVertically):
1782         * rendering/render_list.cpp:
1783         (WebCore::toHebrew):
1784         (WebCore::RenderListMarker::paint):
1785         (WebCore::RenderListMarker::calcMinMaxWidth):
1786         (WebCore::RenderListMarker::baselinePosition):
1787         (WebCore::RenderListMarker::getRelativeMarkerRect):
1788         * rendering/render_object.cpp:
1789         (WebCore::RenderObject::getVerticalPosition):
1790         (WebCore::RenderObject::lineHeight):
1791         (WebCore::RenderObject::baselinePosition):
1792         * rendering/render_object.h:
1793         * rendering/render_style.h:
1794
1795 2006-03-04  Eric Seidel  <eseidel@apple.com>
1796
1797         Reviewed by ggaren.
1798
1799         Add urlSelected stub, adjust font metrics, and fix view size/move bug.
1800
1801         * platform/win/TemporaryLinkStubs.cpp:
1802         (MouseEvent::MouseEvent):
1803         (FrameWin::urlSelected):
1804         (QFontMetrics::height):
1805         (QFontMetrics::xHeight):
1806         (QFontMetrics::ascent):
1807         (QFontMetrics::descent):
1808         (ScrollView::resizeContents):
1809         (ScrollView::setContentsPos):
1810
1811 2006-03-04  Maciej Stachowiak  <mjs@apple.com>
1812
1813         Reviewed by Eric.
1814
1815         - stop background image loads from crashing
1816
1817         * platform/cairo/GraphicsContextCairo.cpp:
1818         (WebCore::GraphicsContext::drawTiledImage):
1819         (WebCore::GraphicsContext::drawScaledAndTiledImage):
1820
1821         - fix termination condition on file load loop
1822
1823         * platform/win/TransferJobWin.cpp:
1824         (WebCore::TransferJob::fileLoadTimer):
1825
1826 2006-03-04  Geoffrey Garen  <ggaren@apple.com>
1827
1828         Reviewed by Darin.
1829
1830         - Fixed <rdar://problem/4467143> JavaScript enumeration of HTML 
1831         element properties skips DOM node properties
1832
1833         No test case yet because this is a preliminary step toward enabling my
1834         uber test case for DOM support, which will cover this.
1835
1836         * khtml/ecma/kjs_dom.cpp:
1837         (KJS::): Make DOMNode's classinfo reflect inheritance from 
1838         DOMNodeProto, so a for in enumeration can properly walk the 
1839         inheritance chain.
1840         * khtml/ecma/kjs_html.cpp:
1841         (KJS::): Used a script to sort classInfo data alphbetically.
1842         (KJS::KJS::HTMLElement::classInfo): Ditto.
1843
1844 2006-03-04  Maciej Stachowiak  <mjs@apple.com
1845
1846         Reviewed by Eric.
1847
1848          - fix mistake in TransferJob::start that made it cause a crash
1849         on non-file URLs
1850
1851         * platform/win/TransferJobWin.cpp:
1852         (WebCore::TransferJob::start):
1853
1854 2006-03-04  Maciej Stachowiak  <mjs@apple.com
1855
1856         Reviewed by Eric.
1857
1858         - make TransferJobWin handle file: URLs, and fix other bugs
1859         as needed to make local file image loads work
1860         http://bugzilla.opendarwin.org/show_bug.cgi?id=7587
1861
1862         * WebCore.vcproj/WebCore/WebCore.vcproj: add TransferJobWin
1863         to build.
1864         * bridge/win/FrameWin.cpp:
1865         (WebCore::FrameWin::FrameWin): Set autoLoadImages to true.
1866         * platform/TransferJob.cpp:
1867         (WebCore::TransferJob::TransferJob): Pass this to internal
1868         constructor, so windows version can initialize timer
1869         * platform/TransferJob.h:
1870         * platform/TransferJobInternal.h:
1871         (WebCore::TransferJobInternal::TransferJobInternal): On windows,
1872         prepare a timer for file loads.
1873         * platform/cairo/GraphicsContextCairo.cpp:
1874         (WebCore::GraphicsContext::drawFloatImage): If passed-in context
1875         is null, use our built-in context (this is probably not the best,
1876         but should work for now).
1877         * platform/win/TemporaryLinkStubs.cpp:
1878         (FrameWin::issueRedoCommand): Don't break.
1879         (WebCore::TransferJob::assembleResponseHeaders): ditto
1880         (FrameWin::saveDocumentState): ditto
1881         (FrameWin::clearUndoRedoOperations): ditto
1882         * platform/win/TransferJobWin.cpp:
1883         (WebCore::TransferJobInternal::~TransferJobInternal): Close file
1884         handle if we have one.
1885         (WebCore::TransferJob::~TransferJob): Empty.
1886         (WebCore::TransferJob::start): Open a windows file handle.
1887         (WebCore::TransferJob::fileLoadTimer): Load from windows file
1888         handle.
1889         (WebCore::TransferJob::cancel): Stop timer and close windows file 
1890         handle if present.
1891
1892 2006-03-03  Eric Seidel  <eseidel@apple.com>
1893
1894         Reviewed by hyatt.
1895
1896         Fix QString crasher on Win32, also remove c-style casts from file.
1897         Add a few more stubs to allow more layout tests to not crash.
1898         Make dlls only copy when changed.
1899         Add RenderThemeWin stubs.
1900
1901         * WebCore.vcproj/WebCore/WebCore.vcproj:
1902         * WebCore.vcproj/WebCore/build-generated-files.sh:
1903         * platform/QString.cpp:
1904         (QString::stripWhiteSpace):
1905         (QString::simplifyWhiteSpace):
1906         (QString::setLatin1):
1907         (QString::sprintf):
1908         (QString::insert):
1909         (QString::fill):
1910         * platform/win/TemporaryLinkStubs.cpp:
1911         (WebCore::usableScreenRect):
1912         (FrameWin::respondToChangedContents):
1913         (FrameWin::unfocusWindow):
1914         (FrameWin::locationbarVisible):
1915         (FrameWin::clearUndoRedoOperations):
1916         (FrameWin::issueRedoCommand):
1917         (FrameWin::canRedo):
1918         (FrameWin::canUndo):
1919         (FrameWin::saveDocumentState):
1920         (FrameWin::print):
1921         (FrameWin::issueCutCommand):
1922         (FrameWin::issueCopyCommand):
1923         (FrameWin::issueUndoCommand):
1924         (FrameWin::mimeTypeForFileName):
1925         (FrameWin::clearRecordedFormValues):
1926         (FrameWin::issuePasteCommand):
1927         (FrameWin::scheduleClose):
1928         (FrameWin::menubarVisible):
1929         (FrameWin::personalbarVisible):
1930         (FrameWin::statusbarVisible):
1931         (FrameWin::toolbarVisible):
1932         (FrameWin::issueTransposeCommand):
1933         (FrameWin::canPaste):
1934         (FrameWin::incomingReferrer):
1935         (FrameWin::canGoBackOrForward):
1936         (FrameWin::issuePasteAndMatchStyleCommand):
1937         (FrameWin::createPlugin):
1938         (BrowserExtensionWin::getHistoryLength):
1939         (BrowserExtensionWin::canRunModal):
1940         (BrowserExtensionWin::openURLNotify):
1941         (BrowserExtensionWin::canRunModalNow):
1942         (BrowserExtensionWin::runModal):
1943         (QListBox::setFont):
1944         (WebCore::TransferJob::assembleResponseHeaders):
1945         (WebCore::TransferJob::~TransferJob):
1946         (QFontMetrics::QFontMetrics):
1947         (QFontMetrics::lineSpacing):
1948         (QFontMetrics::xHeight):
1949         (QFontMetrics::ascent):
1950         (FrameWin::shouldChangeSelection):
1951         (FrameWin::generateFrameName):
1952         (FrameWin::createFrame):
1953         (RenderThemeWin::paintCheckbox):
1954         (RenderThemeWin::paintRadio):
1955         (RenderThemeWin::paintButton):
1956         (RenderThemeWin::paintTextField):
1957         * rendering/RenderThemeWin.cpp: Added.
1958         (WebCore::theme):
1959         * rendering/RenderThemeWin.h: Added.
1960
1961 2006-03-03  Geoffrey Garen  <ggaren@apple.com>
1962
1963         Test case for <rdar://problem/4465598> REGRESSION (TOT): Crash occurs at 
1964         http://maps.google.com/?output=html ( KJS::Identifier::add(KJS::UString::Rep*)
1965
1966         * manual-tests/property-map-save-crash.html: Added.
1967
1968 2006-03-03  Eric Seidel  <eseidel@apple.com>
1969
1970         Reviewed by adele.
1971
1972         Fix clearly bogus cairo elipse drawing code.
1973         Make QFontMetrics stubs slightly more sane.
1974
1975         * platform/cairo/GraphicsContextCairo.cpp:
1976         (WebCore::GraphicsContext::drawEllipse):
1977         * platform/win/TemporaryLinkStubs.cpp:
1978         (QFontMetrics::floatWidth):
1979         (QFontMetrics::height):
1980         (QFontMetrics::width):
1981         (QFontMetrics::isFixedPitch):
1982
1983 2006-03-03  Darin Adler  <darin@apple.com>
1984
1985         Reviewed by Eric.
1986
1987         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7480
1988           non-HTML elems w/o children in HTML docs get serialized self-closing
1989         - fix problem where the HTML tokenizer would discard the first newline after </pre>
1990
1991         Test: fast/innerHTML/innerHTML-custom-tag.html
1992
1993         * editing/markup.cpp: (WebCore::shouldSelfClose): Refined rule so that it doesn't
1994         try to do any self-closing tags in HTML documents at all; updated comment.
1995
1996         * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::parseTag): Added a check
1997         of beginTag in the <pre> tag case. We were accidentally discarding a newline after
1998         a </pre> tag.
1999
2000 2006-03-03  Maciej Stachowiak  <mjs@apple.com>
2001
2002         Rubber stamped by Eric.
2003
2004         - add new files to build, fix link stubs.
2005
2006         * WebCore.vcproj/WebCore/WebCore.vcproj:
2007         * platform/win/TemporaryLinkStubs.cpp:
2008         (KWQKCookieJar::cookieEnabled):
2009         (WebCore::TransferJob::retrieveCharset):
2010         (WebCore::TransferJob::assembleResponseHeaders):
2011         (WebCore::TransferJob::~TransferJob):
2012         * platform/win/TransferJobWin.cpp: Added.
2013
2014 2006-03-03  Maciej Stachowiak  <mjs@apple.com>
2015
2016         - add file I forgot in my last commit.
2017
2018         * platform/TransferJobInternal.h: Added.
2019         (WebCore::TransferJobInternal::TransferJobInternal):
2020
2021 2006-03-03  Eric Seidel  <eseidel@apple.com>
2022
2023         Reviewed by mjs.
2024
2025         Wire up WidgetWin, CursorWin, ScrollViewWin.
2026         Stub out methods for selection and cursors.
2027
2028         * Viewer/ImageDocument.h:
2029         * WebCore.vcproj/WebCore/WebCore.vcproj:
2030         * bridge/win/FrameWin.cpp:
2031         * khtml/ecma/kjs_proxy.cpp:
2032         (WebCore::KJSProxyImpl::initScriptIfNeeded):
2033         * platform/IntRect.h:
2034         (WebCore::IntRect::IntRect):
2035         * platform/Widget.h:
2036         * platform/win/CursorWin.cpp:
2037         (WebCore::eastResizeCursor):
2038         (WebCore::northResizeCursor):
2039         (WebCore::northEastResizeCursor):
2040         (WebCore::northWestResizeCursor):
2041         (WebCore::southResizeCursor):
2042         (WebCore::southEastResizeCursor):
2043         (WebCore::southWestResizeCursor):
2044         (WebCore::westResizeCursor):
2045         * platform/win/IntRectWin.cpp:
2046         (WebCore::IntRect::IntRect):
2047         (WebCore::IntRect::operator RECT):
2048         * platform/win/MouseEventWin.cpp:
2049         * platform/win/ScrollViewWin.cpp: Added.
2050         (WebCore::ScrollView::updateContents):
2051         * platform/win/TemporaryLinkStubs.cpp:
2052         (QTextEdit::textWithHardLineBreaks):
2053         (QLineEdit::setPlaceholderString):
2054         (QScrollBar::scroll):
2055         (GraphicsContext::beginTransparencyLayer):
2056         (Widget::setIsSelected):
2057         (QLineEdit::selectedText):
2058         (QComboBox::sizeHint):
2059         (KWQFileButton::focusPolicy):
2060         (QTextEdit::focusPolicy):
2061         (QSlider::focusPolicy):
2062         (QListBox::focusPolicy):
2063         (QLineEdit::focusPolicy):
2064         (WebCore::moveCursor):
2065         (ScrollView::scrollBy):
2066         (KWQKCookieJar::cookieEnabled):
2067         (WebCore::TransferJob::TransferJob):
2068         (WebCore::screenDepth):
2069         (WebCore::usableScreenRect):
2070         (FrameWin::getObjectInstanceForWidget):
2071         (FrameWin::getEmbedInstanceForWidget):
2072         (FrameWin::getAppletInstanceForWidget):
2073         (FrameWin::passMouseDownEventToWidget):
2074         (FrameWin::issuePasteCommand):
2075         (FrameWin::issueTransposeCommand):
2076         (QSlider::setFont):
2077         (QLineEdit::setFont):
2078         (QListBox::setFont):
2079         (QFontMetrics::QFontMetrics):
2080         (QComboBox::setFont):
2081         (QTextEdit::setFont):
2082         (QTextEdit::setWritingDirection):
2083         (QFontMetrics::setFontDescription):
2084         (QFontMetrics::checkSelectionPoint):
2085         (FrameWin::addMessageToConsole):
2086         (FrameWin::shouldChangeSelection):
2087         (ScrollView::resizeContents):
2088         (ScrollView::visibleHeight):
2089         (ScrollView::visibleWidth):
2090         (ScrollView::setContentsPos):
2091         (ScrollView::contentsX):
2092         (ScrollView::contentsY):
2093         (ScrollView::contentsHeight):
2094         (ScrollView::contentsWidth):
2095         (ScrollView::viewportToContents):
2096         * platform/win/WidgetWin.cpp: Added.
2097         (WebCore::Widget::Widget):
2098         (WebCore::Widget::~Widget):
2099         (WebCore::Widget::windowHandle):
2100         (WebCore::Widget::setWindowHandle):
2101         (WebCore::Widget::setActiveWindow):
2102         (WebCore::Widget::frameGeometry):
2103         (WebCore::Widget::hasFocus):
2104         (WebCore::Widget::setFocus):
2105         (WebCore::Widget::clearFocus):
2106         (WebCore::Widget::font):
2107         (WebCore::Widget::setFont):
2108         (WebCore::Widget::setCursor):
2109         (WebCore::Widget::show):
2110         (WebCore::Widget::hide):
2111         (WebCore::Widget::setFrameGeometry):
2112         (WebCore::Widget::mapFromGlobal):
2113
2114 2006-03-03  Maciej Stachowiak  <mjs@apple.com>
2115
2116         Reviewed by Eric.
2117
2118         - move TransferJob from kwq to platform, separate platform from non-platform bits
2119
2120         * ForwardingHeaders/kio/job.h: Removed.
2121         * ForwardingHeaders/kio/jobclasses.h: Removed.
2122         * WebCore.xcodeproj/project.pbxproj:
2123         * bridge/mac/MacFrame.mm:
2124         * dom/xml_tokenizer.cpp:
2125         * khtml/xsl/xslt_processorimpl.cpp:
2126         * kwq/KWQKJobClasses.h: Removed.
2127         * kwq/KWQKJobClasses.mm: Removed.
2128         * kwq/KWQLoader.mm:
2129         * kwq/KWQResourceLoader.mm:
2130         * kwq/TransferJobClient.h: Removed.
2131         * loader/Cache.cpp:
2132         * loader/loader.cpp:
2133         * page/Frame.cpp:
2134         * platform/TransferJob.cpp: Added.
2135         (WebCore::TransferJob::TransferJob):
2136         (WebCore::TransferJob::queryMetaData):
2137         (WebCore::TransferJob::addMetaData):
2138         * platform/TransferJob.h: Added.
2139         * platform/TransferJobClient.h: Added.
2140         * platform/mac/TransferJobMac.mm: Added.
2141         (WebCore::TransferJobInternal::~TransferJobInternal):
2142         (WebCore::TransferJob::retrieveCharset):
2143         (WebCore::TransferJob::cancel):
2144         * xml/xmlhttprequest.cpp:
2145
2146 2006-03-03  Maciej Stachowiak  <mjs@apple.com>
2147
2148         Reviewed by Eric.
2149
2150         - enough link stubs to "display" local copy of WebKit site w/o hitting breakpoint
2151
2152         * platform/win/TemporaryLinkStubs.cpp:
2153         (QLineEdit::setReadOnly):
2154         (QTextEdit::setCursorPosition):
2155         (QLineEdit::setCursorPosition):
2156         (QFontMetrics::width):
2157         (GraphicsContext::drawText):
2158         (GraphicsContext::drawLineForText):
2159
2160 2006-03-02  Maciej Stachowiak  <mjs@apple.com>
2161
2162         Rubber stamped by Eric.
2163
2164         - remove function that is now gone
2165
2166         * platform/win/TemporaryLinkStubs.cpp:
2167
2168 2006-03-02  Maciej Stachowiak  <mjs@apple.com>
2169
2170         Reviewed by Eric.
2171         
2172         - move logic to kick off load from KWQLoader function to a TransferJob method
2173
2174         * kwq/KWQKJobClasses.h:
2175         * kwq/KWQKJobClasses.mm:
2176         (WebCore::TransferJob::start):
2177         * kwq/KWQLoader.h:
2178         * kwq/KWQLoader.mm:
2179         * loader/loader.cpp:
2180         (WebCore::Loader::servePendingRequests):
2181         * xml/xmlhttprequest.cpp:
2182         (WebCore::XMLHttpRequest::send):
2183
2184 2006-03-02  Maciej Stachowiak  <mjs@apple.com>
2185
2186         Rubber stamped by Eric.
2187
2188         - remove unused loader parameter to KWQServeRequest.
2189
2190         * kwq/KWQLoader.h:
2191         * kwq/KWQLoader.mm:
2192         (KWQServeRequest):
2193         * loader/loader.cpp:
2194         (WebCore::Loader::servePendingRequests):
2195         * xml/xmlhttprequest.cpp:
2196         (WebCore::XMLHttpRequest::send):
2197
2198 2006-03-02  Maciej Stachowiak  <mjs@apple.com>
2199
2200         Reviewed by Eric.
2201
2202         - remove one of the versions of KWQServeRequest.
2203
2204         * kwq/KWQLoader.h:
2205         * kwq/KWQLoader.mm:
2206         * loader/loader.cpp:
2207         (WebCore::Loader::servePendingRequests):
2208         * platform/win/TemporaryLinkStubs.cpp:
2209         (Widget::isEnabled):
2210         (KWQServeRequest):
2211
2212 2006-03-02  Maciej Stachowiak  <mjs@apple.com>
2213
2214         Rubber stamped by Eric.
2215
2216         - win32 build fix.
2217
2218         * platform/win/MouseEventWin.cpp:
2219
2220 2006-03-02  Justin Garcia  <justin.garcia@apple.com>
2221
2222         Reviewed by eric
2223         
2224         <http://bugzilla.opendarwin.org/show_bug.cgi?id=3894>
2225         uses of <cmath> should change to <math>
2226
2227         * ksvg2/svg/SVGAnimateTransformElementImpl.cpp:
2228         * ksvg2/svg/SVGAnimationElementImpl.cpp:
2229         * ksvg2/svg/SVGHelper.cpp:
2230         * ksvg2/svg/SVGLengthImpl.cpp:
2231
2232 2006-03-02  Andrew Wellington  <proton@wiretapped.net>
2233
2234         Reviewed by Darin, landed by Beth
2235
2236         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=3230
2237         CSS1: Words with inline elements get extra capital letters
2238
2239         Does not use UBreakIterator (yet?) for this, but a relatively
2240         simple change that fixes our failure in the CSS1 test suite 
2241         (5.4.5).
2242
2243         * platform/StringImpl.cpp:
2244         (WebCore::StringImpl::capitalize): Specify if this is a run-on
2245         * platform/StringImpl.h:
2246         * rendering/RenderContainer.cpp:
2247         (WebCore::RenderContainer::addChild): Change to re-run 
2248         capitalisation when added into tree as previous text node changes
2249         * rendering/RenderText.cpp:
2250         (WebCore::RenderText::setText): Check if previous node is text that
2251         doesn't end in a space
2252
2253 2006-03-02  Justin Garcia  <justin.garcia@apple.com>
2254
2255         Reviewed by sullivan
2256         
2257         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7542>
2258         REGRESSION: (r13028) Scrolling causes incomplete drawing of <ul> bullets
2259
2260         * rendering/render_list.cpp:
2261         (WebCore::RenderListMarker::paint):
2262
2263 2006-03-02  Eric Seidel  <eseidel@apple.com>
2264
2265         Reviewed by ggaren.
2266
2267         Add (partially stubbed out) mouse event handling for Win32.
2268
2269         * WebCore.vcproj/WebCore/WebCore.vcproj:
2270         * platform/IntPoint.h:
2271         * platform/MouseEvent.h:
2272         * platform/win/IntPointWin.cpp: Added.
2273         (WebCore::IntPoint::IntPoint):
2274         (WebCore::IntPoint::operator POINT):
2275         * platform/win/MouseEventWin.cpp: Added.
2276         (WebCore::MouseEvent::MouseEvent):
2277         * platform/win/TemporaryLinkStubs.cpp:
2278         (QLineEdit::setMaxLength):
2279         (ScrollView::scrollBy):
2280         (WebCore::Widget::setFocus):
2281         (FrameWin::respondToChangedSelection):
2282         (FrameWin::runJavaScriptPrompt):
2283         (FrameWin::recordFormValue):
2284         (FrameWin::registerCommandForRedo):
2285         (FrameWin::runJavaScriptAlert):
2286         (FrameWin::runJavaScriptConfirm):
2287         (FrameWin::openURL):
2288         (FrameWin::registerCommandForUndo):
2289         (FrameWin::addMessageToConsole):
2290         (FrameWin::mimeTypeForFileName):
2291         (FrameWin::shouldChangeSelection):
2292         (FrameWin::markMisspellingsInAdjacentWords):
2293         (FrameWin::markMisspellings):
2294         (FrameWin::personalbarVisible):
2295         (FrameWin::objectContentType):
2296         (FrameWin::createFrame):
2297         (FrameWin::createPlugin):
2298         (BrowserExtensionWin::setTypedIconURL):
2299         (BrowserExtensionWin::getHistoryLength):
2300         (BrowserExtensionWin::canRunModal):
2301         (BrowserExtensionWin::openURLNotify):
2302         (BrowserExtensionWin::createNewWindow):
2303         (BrowserExtensionWin::canRunModalNow):
2304         (BrowserExtensionWin::runModal):
2305         (BrowserExtensionWin::goBackOrForward):
2306         (BrowserExtensionWin::setIconURL):
2307         (FrameWin::passSubframeEventToSubframe):
2308         (FrameWin::lastEventIsMouseUp):
2309         (BrowserExtensionWin::BrowserExtensionWin):
2310         (Widget::setCursor):
2311         (ScrollView::visibleHeight):
2312         (ScrollView::visibleWidth):
2313         (ScrollView::setContentsPos):
2314         (ScrollView::contentsX):
2315         (ScrollView::contentsY):
2316         (ScrollView::contentsHeight):
2317         (ScrollView::contentsWidth):
2318         (ScrollView::viewportToContents):
2319         (TransferJob::TransferJob):
2320         (TransferJob::addMetaData):
2321
2322 2006-03-02  Justin Garcia  <justin.garcia@apple.com>
2323
2324         Reviewed by mjs
2325         
2326         <http://tinymce.moxiecode.com/example_full.php?example=true>
2327         TinyMCE: Undo still enabled after a location change, crashes if performed
2328         
2329         Can't clear undo/redo operations registered by subframes in didOpenURL,
2330         because subframes have already been detached.
2331
2332         * page/Frame.cpp:
2333         (WebCore::Frame::didOpenURL):
2334         (WebCore::Frame::closeURL):
2335
2336 2006-03-01  Maciej Stachowiak  <mjs@apple.com>
2337
2338         Reviewed by Darin.
2339
2340         - WebCore updates for "Set up new prototype macros and avoid using #if without defined() in JSC"
2341         http://bugzilla.opendarwin.org/show_bug.cgi?id=7387
2342         
2343         Add Platform.h 
2344
2345         * ForwardingHeaders/kxmlcore/Platform.h: Added.
2346         * bridge/mac/WebCoreFrameNamespaces.m:
2347         * bridge/mac/WebCoreViewFactory.m:
2348         * bridge/mac/WebDashboardRegion.m:
2349         * config.h:
2350         * platform/Logging.cpp:
2351         * platform/mac/ScrollViewMac.mm:
2352         (WebCore::ScrollView::addChild):
2353         * platform/mac/WebCoreCookieAdapter.m:
2354         * platform/mac/WebCoreGraphicsBridge.m:
2355         * platform/mac/WebCoreHistory.m:
2356         * platform/mac/WebCoreImageRendererFactory.m:
2357         * platform/mac/WebCoreKeyGenerator.m:
2358         * platform/mac/WebCoreView.m:
2359
2360 2006-03-02  Eric Seidel  <eseidel@apple.com>
2361
2362         * WebCore.xcodeproj/project.pbxproj: update GraphicsContext.cpp path to fix build
2363
2364 2006-03-01  Eric Seidel  <eseidel@apple.com>
2365
2366         Reviewed by andersca.
2367
2368         Add first-stab GraphicsContextCairo.
2369         Shuffle a few more link stubs around, remove uncessary WebCore::
2370
2371         * WebCore.vcproj/WebCore/WebCore.vcproj:
2372         * platform/GraphicsContext.cpp: Added.
2373         * platform/GraphicsContext.h:
2374         * platform/cairo/GraphicsContextCairo.cpp:
2375         (WebCore::GraphicsContextState::GraphicsContextState):
2376         (WebCore::setColor):
2377         (WebCore::fillRectSourceOver):
2378         (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
2379         (WebCore::GraphicsContextPrivate::~GraphicsContextPrivate):
2380         (WebCore::GraphicsContext::GraphicsContext):
2381         (WebCore::GraphicsContext::~GraphicsContext):
2382         (WebCore::GraphicsContext::pen):
2383         (WebCore::GraphicsContext::setPen):
2384         (WebCore::GraphicsContext::setBrush):
2385         (WebCore::GraphicsContext::brush):
2386         (WebCore::GraphicsContext::save):
2387         (WebCore::GraphicsContext::restore):
2388         (WebCore::GraphicsContext::drawRect):
2389         (WebCore::GraphicsContext::setColorFromBrush):
2390         (WebCore::GraphicsContext::setColorFromPen):
2391         (WebCore::adjustLineToPixelBounderies):
2392         (WebCore::GraphicsContext::drawLine):
2393         (WebCore::GraphicsContext::drawEllipse):
2394         (WebCore::GraphicsContext::drawArc):
2395         (WebCore::GraphicsContext::drawConvexPolygon):
2396         (WebCore::GraphicsContext::drawFloatImage):
2397         (WebCore::GraphicsContext::drawTiledImage):
2398         (WebCore::GraphicsContext::drawScaledAndTiledImage):
2399         (WebCore::GraphicsContext::fillRect):
2400         (WebCore::GraphicsContext::addClip):
2401         (WebCore::GraphicsContext::setPaintingDisabled):
2402         (WebCore::GraphicsContext::paintingDisabled):
2403         * platform/cairo/ImageCairo.cpp:
2404         * platform/cg/GraphicsContextCG.cpp: Removed.
2405         * platform/win/TemporaryLinkStubs.cpp:
2406         (QLineEdit::selectAll):
2407         (Widget::mapFromGlobal):
2408         (QLineEdit::cursorPosition):
2409         (QTextEdit::setScrollBarModes):
2410         (QTextEdit::selectAll):
2411         (QComboBox::focusPolicy):
2412         (GraphicsContext::clearShadow):
2413         (QTextEdit::setCursorPosition):
2414         (GraphicsContext::drawText):
2415         (QLineEdit::setLiveSearch):
2416         (QComboBox::QComboBox):
2417         (Widget::lockDrawingFocus):
2418         (QTextEdit::setSelectionRange):
2419         (QSlider::QSlider):
2420         (ScrollView::scrollYOffset):
2421         (QComboBox::sizeHint):
2422         (QLineEdit::edited):
2423         (QTextEdit::text):
2424         (QSlider::value):
2425         (WebCore::Widget::setFocus):
2426         (WebCore::TransferJob::addMetaData):
2427         (FrameWin::respondToChangedContents):
2428         (FrameWin::unfocusWindow):
2429         (FrameWin::locationbarVisible):
2430         (FrameWin::respondToChangedSelection):
2431         (FrameWin::clearUndoRedoOperations):
2432         (FrameWin::issueRedoCommand):
2433         (FrameWin::getObjectInstanceForWidget):
2434         (FrameWin::getEmbedInstanceForWidget):
2435         (FrameWin::canRedo):
2436         (FrameWin::canUndo):
2437         (FrameWin::runJavaScriptPrompt):
2438         (FrameWin::recordFormValue):
2439         (FrameWin::registerCommandForRedo):
2440         (FrameWin::runJavaScriptAlert):
2441         (FrameWin::runJavaScriptConfirm):
2442         (FrameWin::openURL):
2443         (FrameWin::saveDocumentState):
2444         (FrameWin::print):
2445         (FrameWin::getAppletInstanceForWidget):
2446         (FrameWin::passMouseDownEventToWidget):
2447         (FrameWin::registerCommandForUndo):
2448         (FrameWin::issueCutCommand):
2449         (FrameWin::issueCopyCommand):
2450         (FrameWin::addMessageToConsole):
2451         (FrameWin::passWheelEventToChildWidget):
2452         (FrameWin::issueUndoCommand):
2453         (FrameWin::mimeTypeForFileName):
2454         (FrameWin::clearRecordedFormValues):
2455         (FrameWin::issuePasteCommand):
2456         (FrameWin::shouldChangeSelection):
2457         (FrameWin::scheduleClose):
2458         (FrameWin::markMisspellingsInAdjacentWords):
2459         (FrameWin::markMisspellings):
2460         (FrameWin::menubarVisible):
2461         (FrameWin::personalbarVisible):
2462         (FrameWin::lastEventIsMouseUp):
2463         (FrameWin::statusbarVisible):
2464         (FrameWin::toolbarVisible):
2465         (FrameWin::issueTransposeCommand):
2466         (FrameWin::userAgent):
2467         (FrameWin::canPaste):
2468         (FrameWin::incomingReferrer):
2469         (FrameWin::objectContentType):
2470         (FrameWin::passSubframeEventToSubframe):
2471         (FrameWin::createFrame):
2472         (FrameWin::canGoBackOrForward):
2473         (FrameWin::issuePasteAndMatchStyleCommand):
2474         (FrameWin::createPlugin):
2475         (FrameWin::generateFrameName):
2476         (QTextEdit::setWritingDirection):
2477         (QFontMetrics::checkSelectionPoint):
2478         (GraphicsContext::GraphicsContext):
2479         (QFontMetrics::isFixedPitch):
2480         (FrameWin::restoreDocumentState):
2481         (FrameWin::partClearedInBegin):
2482         (FrameWin::createEmptyDocument):
2483         (FrameWin::overrideMediaType):
2484         (FrameWin::setTitle):
2485         (FrameWin::handledOnloadEvents):
2486         (FrameWin::markedTextRange):
2487         (GraphicsContext::font):
2488         (GraphicsContext::setFont):
2489
2490 2006-03-02  Alexey Proskuryakov  <ap@nypop.com>
2491
2492         Reviewed by Darin.
2493
2494         Changed an Objective-C forward declaration from "class" to "@class".
2495         This doesn't appear to fix any problems, though.
2496
2497         * platform/StringImpl.h:
2498
2499 2006-03-01  Justin Garcia  <justin.garcia@apple.com>
2500
2501         Reviewed by darin
2502         
2503         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7059>
2504         TinyMCE: Select All + delete sends you Back intsead of deleting
2505
2506         * page/Frame.cpp:
2507         (WebCore::Frame::selectFrameElementInParentIfFullySelected):
2508
2509 2006-03-01  David Harrison  <harrison@apple.com>
2510
2511         Reviewed by Justin.
2512         (missed these in my earlier commit for <rdar://problem/4359736>)
2513
2514         * bridge/mac/WebCoreFrameBridge.h:
2515         * bridge/mac/WebCoreFrameBridge.mm:
2516         (-[WebCoreFrameBridge canIncreaseSelectionListLevel]):
2517         (-[WebCoreFrameBridge canDecreaseSelectionListLevel]):
2518         (-[WebCoreFrameBridge increaseSelectionListLevel]):
2519         (-[WebCoreFrameBridge decreaseSelectionListLevel]):
2520
2521 2006-03-01  Eric Seidel  <eseidel@apple.com>
2522
2523         Reviewed by mjs.
2524
2525         Fix win32 build, add IntRectWin and GraphicsContextCairo stub.
2526
2527         * Viewer/ImageDocument.cpp:
2528         * Viewer/ImageMainFrame.cpp:
2529         * WebCore.vcproj/WebCore/WebCore.vcproj:
2530         * platform/IntRect.h:
2531         * platform/cairo/GraphicsContextCairo.cpp: Added.
2532         * platform/win/TemporaryLinkStubs.cpp:
2533         (GraphicsContext::drawLineForText):
2534         (WebCore::GraphicsContext::fillRect):
2535         (WebCore::TransferJob::TransferJob):
2536         (GraphicsContext::GraphicsContext):
2537         (WebCore::GraphicsContext::~GraphicsContext):
2538
2539 2006-02-23  David Harrison  <harrison@apple.com>
2540
2541         Reviewed by Justin.
2542
2543         <rdar://problem/4359736> Support outlining ability with lists
2544
2545         Added Mail SPI for list level changes.  It is SPI because it is not complete support
2546         for outlining.  See <rdar://problem/4457070> "API for html lists as note outlines".
2547         Additional support is to end a list when return is typed on empty list item.
2548
2549         * WebCore.vcproj/WebCore/WebCore.vcproj:
2550         * WebCore.xcodeproj/project.pbxproj:
2551         Added ModifySelectionListLevelCommand.cpp and ModifySelectionListLevelCommand.h
2552         
2553         * bridge/mac/WebCoreFrameBridge.h:
2554         * bridge/mac/WebCoreFrameBridge.mm:
2555         (-[WebCoreFrameBridge canIncreaseSelectionListLevel]):
2556         (-[WebCoreFrameBridge canDecreaseSelectionListLevel]):
2557         (-[WebCoreFrameBridge increaseSelectionListLevel]):
2558         (-[WebCoreFrameBridge decreaseSelectionListLevel]):
2559         Supply list level calls in the bridge.
2560         
2561         * editing/InsertParagraphSeparatorCommand.cpp:
2562         (WebCore::createListItemElement):
2563         New.  Creates an li.
2564         
2565         (WebCore::InsertParagraphSeparatorCommand::doApply):
2566         - slight logic cleanup
2567         - on empty list item, end the list
2568         
2569         * editing/ModifySelectionListLevelCommand.cpp: Added.
2570         (WebCore::ModifySelectionListLevelCommand::ModifySelectionListLevelCommand):
2571         (WebCore::ModifySelectionListLevelCommand::preservesTypingStyle):
2572         (WebCore::ModifySelectionListLevelCommand::doApply):
2573         (WebCore::ModifySelectionListLevelCommand::canIncreaseSelectionListLevel):
2574         (WebCore::ModifySelectionListLevelCommand::canDecreaseSelectionListLevel):
2575         (WebCore::ModifySelectionListLevelCommand::increaseSelectionListLevel):
2576         (WebCore::ModifySelectionListLevelCommand::decreaseSelectionListLevel):
2577         (WebCore::modifySelectionListLevel):
2578         (WebCore::getStartEndListChildren):
2579         (WebCore::canIncreaseListLevel):
2580         (WebCore::canDecreaseListLevel):
2581         (WebCore::ModifySelectionListLevelCommand::insertSiblingNodeRangeBefore):
2582         (WebCore::ModifySelectionListLevelCommand::insertSiblingNodeRangeAfter):
2583         (WebCore::ModifySelectionListLevelCommand::appendSiblingNodeRange):
2584         (WebCore::ModifySelectionListLevelCommand::increaseListLevel):
2585         (WebCore::ModifySelectionListLevelCommand::decreaseListLevel):
2586         * editing/ModifySelectionListLevelCommand.h: Added.
2587         New editing command for adjusting the list level.
2588         
2589         * editing/ReplaceSelectionCommand.cpp:
2590         (WebCore::ReplaceSelectionCommand::doApply):
2591         Slight logic cleanup
2592
2593         * editing/htmlediting.cpp:
2594         (WebCore::isListElement):
2595         (WebCore::enclosingListChild):
2596         New helpers.
2597         
2598         (WebCore::isTableElement):
2599         Allow caller to pass 0... return false in that case.
2600         
2601         * editing/htmlediting.h:
2602         New helpers.
2603         
2604         * rendering/RenderContainer.cpp:
2605         (WebCore::updateListMarkerNumbers):
2606         Allow for list children that are not li nodes.  Ignore and continue rather than stopping.
2607         
2608         (WebCore::RenderContainer::addChild):
2609         Allow for nil beforeChild, meaning "add at end".
2610         
2611 2006-03-01  Eric Seidel  <eseidel@apple.com>
2612
2613         Reviewed by justing.
2614
2615         Update ESelectionGranulartiy enum to use newer CamelCase styling.
2616
2617         * bridge/mac/WebCoreFrameBridge.mm:
2618         (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
2619         * editing/Selection.cpp:
2620         (WebCore::Selection::Selection):
2621         (WebCore::Selection::validate):
2622         * editing/SelectionController.cpp:
2623         (WebCore::SelectionController::modifyExtendingRightForward):
2624         (WebCore::SelectionController::modifyMovingRightForward):
2625         (WebCore::SelectionController::modifyExtendingLeftBackward):
2626         (WebCore::SelectionController::modifyMovingLeftBackward):
2627         (WebCore::SelectionController::modify):
2628         * editing/TypingCommand.cpp:
2629         (WebCore::TypingCommand::deleteKeyPressed):
2630         (WebCore::TypingCommand::forwardDeleteKeyPressed):
2631         * editing/jsediting.cpp:
2632         * editing/text_granularity.h:
2633         (WebCore::):
2634         * page/Frame.cpp:
2635         (WebCore::Frame::selectClosestWordFromMouseEvent):
2636         (WebCore::Frame::handleMousePressEventTripleClick):
2637         (WebCore::Frame::handleMousePressEventSingleClick):
2638         (WebCore::Frame::handleMouseMoveEventSelection):
2639
2640 2006-03-01  Alexander Kellett  <lypanov@kde.org>
2641
2642         Reviewed by Maciej.
2643
2644         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=5966
2645
2646         Fixes already existing test:
2647           svg/W3C-SVG-1.1/coords-viewattr-02-b.svg
2648
2649         * kcanvas/RenderSVGImage.cpp:
2650         (WebCore::RenderSVGImage::adjustRectsForAspectRatio):
2651         (WebCore::RenderSVGImage::paint):
2652         * kcanvas/RenderSVGImage.h:
2653
2654 2006-03-01  Alexey Proskuryakov  <ap@nypop.com>
2655
2656         Reviewed by Darin.
2657
2658         - http://bugzilla.opendarwin.org/show_bug.cgi?id=3812
2659           XMLHttpRequest: PUT, DELETE, HEAD and all other methods but POST actually do a GET.
2660
2661         HEAD is currently unimplemented because of what seems to be a bug in NSURLConnection,
2662         and does a GET instead.
2663
2664         * kwq/KWQKJobClasses.h: Add a method parameter to TransferJob.
2665         * kwq/KWQKJobClasses.mm:
2666         (WebCore::TransferJobPrivate::TransferJobPrivate):
2667         (WebCore::TransferJob::TransferJob):
2668         (WebCore::TransferJob::method):
2669         * bridge/mac/WebCoreFrameBridge.h: URL loading functions now take a method parameter.
2670         * dom/xml_tokenizer.cpp:
2671         (WebCore::openFunc):
2672         * khtml/xsl/xslt_processorimpl.cpp:
2673         (DOM::docLoaderFunc):
2674         * kwq/KWQLoader.mm:
2675         (KWQServeRequest):
2676         (KWQServeSynchronousRequest):
2677         * loader/loader.cpp:
2678         (WebCore::Loader::servePendingRequests):
2679         * page/Frame.cpp:
2680         (WebCore::Frame::didOpenURL):
2681         * xml/xmlhttprequest.cpp:
2682         (WebCore::XMLHttpRequest::send): Honor the method passed in open().
2683         * khtml/ecma/JSXMLHttpRequest.cpp:
2684         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Don't serialize null as "null".
2685
2686 2006-03-01  Timothy Hatcher  <timothy@apple.com>
2687
2688         Reviewed by Darin.
2689         
2690         http://bugzilla.opendarwin.org/show_bug.cgi?id=7450
2691         elementAtPoint is expensive and should return a smart dictionary
2692         
2693         <rdar://problem/2952761> moving the mouse around eats more CPU than I would expect (7450)
2694
2695         Support for WebKit. This removes the old elementAtPoint: on the bridge.
2696         WebKit now uses the bridge method getInnerNonSharedNode:innerNode:URLElement:atPoint:
2697
2698         * WebCore.exp: removes the WebCore* dictionary keys
2699         * bindings/objc/DOM.mm:
2700         (-[DOMElement image]): new method to get an NSImage if the element has an image renderer
2701         * bindings/objc/DOMHTML.mm:
2702         (-[DOMHTMLElement titleDisplayString]): new method that returns the title after doing the backslash as currency symbol conversion
2703         (-[DOMHTMLInputElement altDisplayString]): ditto for alt
2704         (-[DOMHTMLImageElement altDisplayString]): ditto
2705         (-[DOMHTMLAppletElement altDisplayString]): ditto
2706         (-[DOMHTMLAreaElement altDisplayString]): ditto
2707         (-[DOMHTMLAnchorElement absoluteLinkURL]): new method to get the absolute NSURL
2708         (-[DOMHTMLAreaElement absoluteLinkURL]): ditto
2709         (-[DOMHTMLLinkElement absoluteLinkURL]): ditto
2710         (-[DOMHTMLInputElement absoluteImageURL]): new method to get the absolute image location as an NSURL
2711         (-[DOMHTMLImageElement absoluteImageURL]): ditto
2712         (-[DOMHTMLObjectElement absoluteImageURL]): ditto
2713         * bindings/objc/DOMPrivate.h:
2714         * bridge/mac/WebCoreFrameBridge.h:
2715         * bridge/mac/WebCoreFrameBridge.mm:
2716         (-[WebCoreFrameBridge getInnerNonSharedNode:innerNode:URLElement:atPoint:]):
2717         (-[WebCoreFrameBridge isPointInsideSelection:]):
2718         * dom/DocumentImpl.cpp:
2719         (WebCore::DocumentImpl::prepareMouseEvent):
2720         (WebCore::DocumentImpl::backslashAsCurrencySymbol):
2721         * dom/DocumentImpl.h:
2722         * rendering/render_layer.cpp:
2723         (WebCore::RenderLayer::hitTest):
2724         * rendering/render_object.h:
2725         (WebCore::RenderObject::NodeInfo::URLElement):
2726         (WebCore::RenderObject::NodeInfo::setURLElement):
2727
2728 2006-03-01  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2729
2730         Test: fast/css/hover-subselector.html
2731
2732         Reviewed by Hyatt.
2733
2734         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7327
2735           REGRESSION (r12869): :hover subselector does not work in quirks mode
2736
2737         * css/cssstyleselector.h:
2738         * css/cssstyleselector.cpp:
2739         (WebCore::CSSStyleSelector::checkSelector): Pass flag to indicate sub-selector.
2740         (WebCore::CSSStyleSelector::checkOneSelector): Apply the *:hover and *:active quirks only
2741         when there are no sub-selectors.
2742
2743 2006-03-01  Maciej Stachowiak  <mjs@apple.com>
2744
2745         Rubber stamped by Hyatt.
2746
2747         - fix win32 build (and make dumprendertree run)
2748
2749         * kwq/KWQComboBox.h:
2750         * platform/win/TemporaryLinkStubs.cpp:
2751         (QTextEdit::selectionEnd):
2752         (Widget::~Widget):
2753         (GraphicsContext::beginTransparencyLayer):
2754         (QComboBox::populate):
2755         (GraphicsContext::drawConvexPolygon):
2756         (QFontMetrics::selectionRectForText):
2757         (GraphicsContext::setShadow):
2758         (GraphicsContext::clearFocusRing):
2759         (GraphicsContext::drawImageInRect):
2760         (KWQFileButton::setFilename):
2761         (KWQFileButton::focusPolicy):
2762         (KWQFileButton::frameGeometry):
2763         (QSlider::focusPolicy):
2764         (WebCore::GraphicsContext::font):
2765         (QTextEdit::setWritingDirection):
2766         (QFontMetrics::checkSelectionPoint):
2767         (QFontMetrics::isFixedPitch):
2768         (WebCore::TransferJob::addMetaData):
2769
2770 2006-02-28  Darin Adler  <darin@apple.com>
2771
2772         Reviewed by Eric.
2773
2774         - http://bugzilla.opendarwin.org/show_bug.cgi?id=7444
2775           move QPainter to platform directory and name it GraphicsContext
2776
2777         * platform/GraphicsContext.h: Added.
2778         * platform/TextDirection.h: Added.
2779         * platform/cg/GraphicsContextCG.cpp: Added.
2780         * platform/mac/GraphicsContextMac.mm: Added.
2781
2782         * kwq/KWQPainter.h: Removed.
2783         * kwq/KWQPainter.mm: Removed.
2784         * ForwardingHeaders/qpainter.h: Removed.
2785
2786         * WebCore.xcodeproj/project.pbxproj: Updated for moved files.
2787         * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for moved files.
2788         * platform/win/TemporaryLinkStubs.cpp: Updated.
2789
2790         * bridge/mac/MacFrame.mm: (WebCore::MacFrame::setDisplaysWithFocusAttributes):
2791         * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge drawRect:]):
2792         * editing/SelectionController.h:
2793         * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
2794         * kcanvas/KCanvasResources.cpp: (WebCore::KCanvasMarker::draw):
2795         * khtml/ecma/kjs_html.cpp:
2796         (KJS::KJS::Context2DFunction::callAsFunction):
2797         (KJS::Context2D::putValueProperty):
2798         (KJS::drawPattern):
2799         * page/Frame.h:
2800         * page/Frame.cpp:
2801         (WebCore::Frame::paintCaret):
2802         (WebCore::Frame::paintDragCaret):
2803         (WebCore::Frame::paint):
2804         (WebCore::Frame::adjustPageHeight):
2805         * page/FrameView.h:
2806         * platform/Font.h:
2807         * platform/Font.cpp:
2808         (WebCore::Font::selectionRectForText):
2809         (WebCore::Font::drawHighlightForText):
2810         (WebCore::Font::drawText):
2811         * platform/Widget.h:
2812         * platform/mac/WidgetMac.mm: (WebCore::Widget::paint):
2813         * rendering/InlineTextBox.h:
2814         * rendering/InlineTextBox.cpp:
2815         (WebCore::InlineTextBox::paint):
2816         (WebCore::InlineTextBox::paintSelection):
2817         (WebCore::InlineTextBox::paintMarkedTextBackground):
2818         (WebCore::InlineTextBox::paintDecoration):
2819         (WebCore::InlineTextBox::paintSpellingMarker):
2820         (WebCore::InlineTextBox::paintTextMatchMarker):
2821         (WebCore::InlineTextBox::paintAllMarkersOfType):
2822         (WebCore::InlineTextBox::paintMarkedTextUnderline):
2823         (WebCore::InlineTextBox::offsetForPosition):
2824         * rendering/RenderTableCell.cpp:
2825         (WebCore::outlineBox):
2826         (WebCore::RenderTableCell::paintCollapsedBorder):
2827         (WebCore::RenderTableCell::paintBoxDecorations):
2828         * rendering/RenderTableCell.h:
2829         * rendering/render_box.cpp:
2830         (WebCore::RenderBox::paintBackgrounds):
2831         (WebCore::RenderBox::paintBackground):
2832         (WebCore::RenderBox::paintBackgroundExtended):
2833         (WebCore::RenderBox::outlineBox):
2834         * rendering/render_box.h:
2835         * rendering/render_button.cpp:
2836         (WebCore::RenderButton::RenderButton):
2837         (WebCore::RenderButton::paintObject):
2838         * rendering/render_button.h:
2839         (WebCore::RenderButton::removeLeftoverAnonymousBoxes):
2840         * rendering/render_canvas.cpp:
2841         * rendering/render_canvasimage.cpp:
2842         (WebCore::RenderCanvasImage::paint):
2843         * rendering/render_flow.cpp:
2844         (WebCore::RenderFlow::addFocusRingRects):
2845         (WebCore::RenderFlow::paintFocusRing):
2846         (WebCore::RenderFlow::paintOutlines):
2847         (WebCore::RenderFlow::paintOutlineForLine):
2848         * rendering/render_flow.h:
2849         * rendering/render_form.cpp:
2850         (WebCore::RenderLineEdit::setStyle):
2851         (WebCore::RenderFieldset::paintBorderMinusLegend):
2852         (WebCore::RenderSelect::setWidgetWritingDirection):
2853         (WebCore::RenderTextArea::setStyle):
2854         * rendering/render_form.h:
2855         (WebCore::RenderFieldset::renderName):
2856         * rendering/render_frames.cpp:
2857         (WebCore::RenderFrameSet::userResize):
2858         * rendering/render_image.cpp:
2859         (WebCore::RenderImage::paint):
2860         * rendering/render_layer.cpp:
2861         (WebCore::RenderLayer::beginTransparencyLayers):
2862         (WebCore::RenderLayer::paintScrollbars):
2863         (WebCore::RenderLayer::paint):
2864         (WebCore::setClip):
2865         (WebCore::restoreClip):
2866         (WebCore::RenderLayer::paintLayer):
2867         (WebCore::Marquee::direction):
2868         * rendering/render_layer.h:
2869         * rendering/render_line.cpp:
2870         (WebCore::InlineFlowBox::paintBackgrounds):
2871         (WebCore::InlineFlowBox::paintBackground):
2872         (WebCore::InlineFlowBox::paintBackgroundAndBorder):
2873         (WebCore::InlineFlowBox::paintDecorations):
2874         (WebCore::EllipsisBox::paint):
2875         * rendering/render_line.h:
2876         * rendering/render_list.cpp:
2877         (WebCore::RenderListMarker::paint):
2878         * rendering/render_object.cpp:
2879         (WebCore::RenderObject::drawBorder):
2880         (WebCore::RenderObject::paintBorderImage):
2881         (WebCore::RenderObject::paintBorder):
2882         (WebCore::RenderObject::addFocusRingRects):
2883         (WebCore::RenderObject::paintOutline):
2884         (WebCore::RenderObject::selectionColor):
2885         * rendering/render_object.h:
2886         (WebCore::RenderObject::element):
2887         (WebCore::RenderObject::document):
2888         (WebCore::RenderObject::setNode):
2889         (WebCore::RenderObject::node):
2890         (WebCore::RenderObject::PaintInfo::PaintInfo):
2891         (WebCore::RenderObject::paintBoxDecorations):
2892         (WebCore::RenderObject::paintBackgroundExtended):
2893         (WebCore::RenderObject::printBoxDecorations):
2894         * rendering/render_replaced.cpp: (WebCore::RenderReplaced::selectionColor):
2895         * rendering/render_replaced.h:
2896         Updated to use GraphicsContext instead of QPainter.
2897
2898         * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty):
2899         * kwq/KWQComboBox.h:
2900         * kwq/KWQComboBox.mm: (QComboBox::setWritingDirection):
2901         * kwq/KWQLineEdit.h:
2902         * kwq/KWQLineEdit.mm: (QLineEdit::setWritingDirection):
2903         * kwq/KWQListBox.h:
2904         * kwq/KWQListBox.mm: (QListBox::setWritingDirection):
2905         * kwq/KWQTextEdit.h:
2906         * kwq/KWQTextEdit.mm: (QTextEdit::setWritingDirection):
2907         * rendering/bidi.cpp:
2908         (khtml::bidiNext):
2909         (khtml::bidiFirst):
2910         Updated to use TextDirection instead of QPainter::TextDirection and EDirection.
2911
2912         * kcanvas/device/KRenderingDevice.h: Added renderingDevice here to
2913         replace QPainter::renderingDevice for now.
2914
2915         * khtml/ecma/kjs_html.h: Fixed comments to mention GraphicsContext.
2916
2917         * khtml/html/html_imageimpl.h:
2918         * page/FrameView.cpp:
2919         * rendering/RenderBlock.cpp:
2920         Added include needed since I reduced includes elsewhere.
2921
2922         * kwq/KWQFontMetrics.h:
2923         * kwq/KWQFontMetrics.mm: (QFontMetrics::checkSelectionPoint):
2924         Changed QChar* to be const QChar*.
2925
2926         * platform/FontDescription.h: Added include that was missing.
2927         * rendering/render_theme.cpp: Ditto.
2928
2929         * platform/Image.h: Removed unnecessary forward declaration of QPainter.
2930
2931         * rendering/RenderText.h: Clean up types, use const.
2932
2933         * rendering/render_style.h: Removed EDirection and replaced it with TextDirection.
2934
2935         * kcanvas/KCanvasCreator.cpp:
2936         (WebCore::KCanvasCreator::createRoundedRectangle):
2937         (WebCore::KCanvasCreator::createRectangle):
2938         (WebCore::KCanvasCreator::createEllipse):
2939         (WebCore::KCanvasCreator::createLine):
2940         * kcanvas/KCanvasPath.cpp: (WebCore::operator<<):
2941         * kcanvas/KCanvasTreeDebug.cpp: (WebCore::operator<<):
2942         * kcanvas/RenderForeignObject.cpp: (WebCore::RenderForeignObject::paint):
2943         * kcanvas/RenderPath.cpp: (WebCore::RenderPath::paint):
2944         * kcanvas/RenderSVGImage.cpp:
2945         (WebCore::RenderSVGImage::paint):
2946         (WebCore::RenderSVGImage::translateForAttributes):
2947         * kcanvas/RenderSVGText.cpp:
2948         (WebCore::RenderSVGText::paint):
2949         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
2950         (WebCore::KCanvasFilterQuartz::prepareFilter):
2951         (WebCore::KCanvasFilterQuartz::applyFilter):
2952         * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
2953         (WebCore::KCanvasMaskerQuartz::applyMask):
2954         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
2955         (WebCore::KCanvasContainerQuartz::paint):
2956         (WebCore::KCanvasClipperQuartz::applyClip):
2957         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
2958         (WebCore::KRenderingDeviceQuartz::pushContext):
2959         (WebCore::KRenderingDeviceQuartz::popContext):
2960         (WebCore::renderingDevice):
2961         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
2962         (WebCore::KRenderingPaintServerGradientQuartz::setup):
2963         (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
2964         (WebCore::KRenderingPaintServerGradientQuartz::teardown):
2965         * ksvg2/misc/KCanvasRenderingStyle.cpp: (WebCore::sharedSolidPaintServer):
2966         * ksvg2/svg/SVGAElementImpl.cpp: (SVGAElementImpl::createRenderer):
2967         * ksvg2/svg/SVGClipPathElementImpl.cpp: (SVGClipPathElementImpl::canvasResource):
2968         * ksvg2/svg/SVGFEBlendElementImpl.cpp: (SVGFEBlendElementImpl::filterEffect):
2969         * ksvg2/svg/SVGFEColorMatrixElementImpl.cpp: (SVGFEColorMatrixElementImpl::filterEffect):
2970         * ksvg2/svg/SVGFEComponentTransferElementImpl.cpp: (SVGFEComponentTransferElementImpl::filterEffect):
2971         * ksvg2/svg/SVGFECompositeElementImpl.cpp: (SVGFECompositeElementImpl::filterEffect):
2972         * ksvg2/svg/SVGFEDiffuseLightingElementImpl.cpp: (WebCore::SVGFEDiffuseLightingElementImpl::filterEffect):
2973         * ksvg2/svg/SVGFEDisplacementMapElementImpl.cpp: (SVGFEDisplacementMapElementImpl::filterEffect):
2974         * ksvg2/svg/SVGFEFloodElementImpl.cpp: (SVGFEFloodElementImpl::filterEffect):
2975         * ksvg2/svg/SVGFEGaussianBlurElementImpl.cpp: (SVGFEGaussianBlurElementImpl::filterEffect):
2976         * ksvg2/svg/SVGFEImageElementImpl.cpp: (SVGFEImageElementImpl::filterEffect):
2977         * ksvg2/svg/SVGFEMergeElementImpl.cpp: (SVGFEMergeElementImpl::filterEffect):
2978         * ksvg2/svg/SVGFEOffsetElementImpl.cpp: (SVGFEOffsetElementImpl::filterEffect):
2979         * ksvg2/svg/SVGFESpecularLightingElementImpl.cpp: (SVGFESpecularLightingElementImpl::filterEffect):
2980         * ksvg2/svg/SVGFETileElementImpl.cpp: (SVGFETileElementImpl::filterEffect):
2981         * ksvg2/svg/SVGFETurbulenceElementImpl.cpp: (SVGFETurbulenceElementImpl::filterEffect):
2982         * ksvg2/svg/SVGFilterElementImpl.cpp: (SVGFilterElementImpl::canvasResource):
2983         * ksvg2/svg/SVGGElementImpl.cpp: (SVGGElementImpl::createRenderer):
2984         * ksvg2/svg/SVGGradientElementImpl.cpp: (SVGGradientElementImpl::canvasResource):
2985         * ksvg2/svg/SVGMarkerElementImpl.cpp:
2986         (WebCore::SVGMarkerElementImpl::canvasResource):
2987         (WebCore::SVGMarkerElementImpl::createRenderer):
2988         * ksvg2/svg/SVGMaskElementImpl.cpp:
2989         (WebCore::SVGMaskElementImpl::drawMaskerContent):
2990         (WebCore::SVGMaskElementImpl::createRenderer):
2991         (WebCore::SVGMaskElementImpl::canvasResource):
2992         * ksvg2/svg/SVGPathElementImpl.cpp: (WebCore::SVGPathElementImpl::toPathData):
2993         * ksvg2/svg/SVGPatternElementImpl.cpp:
2994         (WebCore::SVGPatternElementImpl::drawPatternContentIntoTile):
2995         (WebCore::SVGPatternElementImpl::createRenderer):
2996         (WebCore::SVGPatternElementImpl::canvasResource):
2997         * ksvg2/svg/SVGPolygonElementImpl.cpp: (SVGPolygonElementImpl::toPathData):
2998         * ksvg2/svg/SVGPolylineElementImpl.cpp: (SVGPolylineElementImpl::toPathData):
2999         * ksvg2/svg/SVGSVGElementImpl.cpp: (WebCore::SVGSVGElementImpl::createRenderer):
3000         * ksvg2/svg/SVGStyledElementImpl.cpp: (WebCore::SVGStyledElementImpl::createRenderer):
3001         * ksvg2/svg/SVGSwitchElementImpl.cpp: (SVGSwitchElementImpl::createRenderer):
3002         * ksvg2/svg/SVGUseElementImpl.cpp: (SVGUseElementImpl::createRenderer):
3003         Updated to use renderingDevice instead of QPainter::renderingDevice.
3004
3005 2006-02-28  Darin Adler  <darin@apple.com>
3006
3007         - fixed part of the reason the build is broken
3008
3009         * WebCore.xcodeproj/project.pbxproj: Updated project file.
3010
3011 2006-02-28  Darin Adler  <darin@apple.com>
3012
3013         Rubber-stamped by Hyatt.
3014
3015         - moved the WebCoreXXX files from kwq to appropriate directories
3016
3017         No changes to the contents of the files.
3018
3019         * WebCore.xcodeproj/project.pbxproj: Updated project file.
3020         * bridge/mac/WebCoreCache.h: Added.
3021         * bridge/mac/WebCoreCache.mm: Added.
3022         * bridge/mac/WebCoreEncodings.h: Added.
3023         * bridge/mac/WebCoreEncodings.mm: Added.
3024         * bridge/mac/WebCoreFrameNamespaces.h: Added.
3025         * bridge/mac/WebCoreFrameNamespaces.m: Added.
3026         * bridge/mac/WebCoreFrameView.h: Added.
3027         * bridge/mac/WebCoreJavaScript.h: Added.
3028         * bridge/mac/WebCoreJavaScript.mm: Added.
3029         * bridge/mac/WebCoreKeyboardAccess.h: Added.
3030         * bridge/mac/WebCoreResourceLoader.h: Added.
3031         * bridge/mac/WebCoreScriptDebugger.h: Added.
3032         * bridge/mac/WebCoreScriptDebugger.mm: Added.
3033         * bridge/mac/WebCoreSettings.h: Added.
3034         * bridge/mac/WebCoreSettings.mm: Added.
3035         * bridge/mac/WebCoreTextDecoder.h: Added.
3036         * bridge/mac/WebCoreTextDecoder.mm: Added.
3037         * bridge/mac/WebCoreViewFactory.h: Added.
3038         * bridge/mac/WebCoreViewFactory.m: Added.
3039         * bridge/mac/WebDashboardRegion.h: Added.
3040         * bridge/mac/WebDashboardRegion.m: Added.
3041         * kwq/WebCoreCache.h: Removed.
3042         * kwq/WebCoreCache.mm: Removed.
3043         * kwq/WebCoreCookieAdapter.h: Removed.
3044         * kwq/WebCoreCookieAdapter.m: Removed.
3045         * kwq/WebCoreEncodings.h: Removed.
3046         * kwq/WebCoreEncodings.mm: Removed.
3047         * kwq/WebCoreFrameNamespaces.h: Removed.
3048         * kwq/WebCoreFrameNamespaces.m: Removed.
3049         * kwq/WebCoreFrameView.h: Removed.
3050         * kwq/WebCoreGraphicsBridge.h: Removed.
3051         * kwq/WebCoreGraphicsBridge.m: Removed.
3052         * kwq/WebCoreHistory.h: Removed.
3053         * kwq/WebCoreHistory.m: Removed.
3054         * kwq/WebCoreImageRenderer.h: Removed.
3055         * kwq/WebCoreImageRendererFactory.h: Removed.
3056         * kwq/WebCoreImageRendererFactory.m: Removed.
3057         * kwq/WebCoreJavaScript.h: Removed.
3058         * kwq/WebCoreJavaScript.mm: Removed.
3059         * kwq/WebCoreKeyGenerator.h: Removed.
3060         * kwq/WebCoreKeyGenerator.m: Removed.
3061         * kwq/WebCoreKeyboardAccess.h: Removed.
3062         * kwq/WebCoreResourceLoader.h: Removed.
3063         * kwq/WebCoreScriptDebugger.h: Removed.
3064         * kwq/WebCoreScriptDebugger.mm: Removed.
3065         * kwq/WebCoreSettings.h: Removed.
3066         * kwq/WebCoreSettings.mm: Removed.
3067         * kwq/WebCoreTextDecoder.h: Removed.
3068         * kwq/WebCoreTextDecoder.mm: Removed.
3069         * kwq/WebCoreTextRenderer.h: Removed.
3070         * kwq/WebCoreTextRendererFactory.h: Removed.
3071         * kwq/WebCoreTextRendererFactory.mm: Removed.
3072         * kwq/WebCoreView.h: Removed.
3073         * kwq/WebCoreView.m: Removed.
3074         * kwq/WebCoreViewFactory.h: Removed.
3075         * kwq/WebCoreViewFactory.m: Removed.
3076         * kwq/WebDashboardRegion.h: Removed.
3077         * kwq/WebDashboardRegion.m: Removed.
3078         * platform/mac/WebCoreCookieAdapter.h: Added.
3079         * platform/mac/WebCoreCookieAdapter.m: Added.
3080         * platform/mac/WebCoreGraphicsBridge.h: Added.
3081         * platform/mac/WebCoreGraphicsBridge.m: Added.
3082         * platform/mac/WebCoreHistory.h: Added.
3083         * platform/mac/WebCoreHistory.m: Added.
3084         * platform/mac/WebCoreImageRenderer.h: Added.
3085         * platform/mac/WebCoreImageRendererFactory.h: Added.
3086         * platform/mac/WebCoreImageRendererFactory.m: Added.
3087         * platform/mac/WebCoreKeyGenerator.h: Added.
3088         * platform/mac/WebCoreKeyGenerator.m: Added.
3089         * platform/mac/WebCoreTextRenderer.h: Added.
3090         * platform/mac/WebCoreTextRendererFactory.h: Added.
3091         * platform/mac/WebCoreTextRendererFactory.mm: Added.
3092         * platform/mac/WebCoreView.h: Added.
3093         * platform/mac/WebCoreView.m: Added.
3094
3095 2006-02-28  David Hyatt  <hyatt@apple.com>
3096
3097         Fold QFont into Font and eliminate QFont completely.
3098
3099         Reviewed by eric
3100
3101         * ForwardingHeaders/qfont.h: Removed.
3102         * WebCore.xcodeproj/project.pbxproj:
3103         * bindings/objc/DOM.mm:
3104         (-[DOMElement _font]):
3105         * bridge/mac/MacFrame.mm:
3106         (WebCore::MacFrame::attributedString):
3107         (WebCore::MacFrame::fontForSelection):
3108         (WebCore::MacFrame::fontAttributesForSelectionStart):
3109         * bridge/mac/WebCoreFrameBridge.mm:
3110         * css/css_computedstyle.cpp:
3111         (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
3112         * css/cssstyleselector.cpp:
3113         (WebCore::CSSStyleSelector::applyProperty):
3114         * dom/DocumentImpl.cpp:
3115         (WebCore::DocumentImpl::recalcStyle):
3116         * ksvg2/svg/SVGLengthImpl.cpp:
3117         (SVGLengthImpl::updateValue):
3118         * kwq/KWQAccObject.mm:
3119         (AXAttributeStringSetStyle):
3120         * kwq/KWQComboBox.h:
3121         * kwq/KWQComboBox.mm:
3122         (QComboBox::setFont):
3123         * kwq/KWQFont.h: Removed.
3124         * kwq/KWQFont.mm: Removed.
3125         * kwq/KWQFontMetrics.h:
3126         * kwq/KWQFontMetrics.mm:
3127         (QFontMetricsPrivate::QFontMetricsPrivate):
3128         (QFontMetricsPrivate::~QFontMetricsPrivate):
3129         (QFontMetricsPrivate::getRenderer):
3130         (QFontMetricsPrivate::fontDescription):
3131         (QFontMetricsPrivate::setFontDescription):
3132         (QFontMetricsPrivate::getWebCoreFont):
3133         (QFontMetricsPrivate::isFixedPitch):
3134         (QFontMetricsPrivate::determinePitch):
3135         (QFontMetrics::QFontMetrics):
3136         (QFontMetrics::setFontDescription):
3137         (QFontMetrics::width):
3138         (QFontMetrics::floatWidth):
3139         (QFontMetrics::selectionRectForText):
3140         (QFontMetrics::checkSelectionPoint):
3141         (QFontMetrics::getWebCoreFont):
3142         (QFontMetrics::isFixedPitch):
3143         * kwq/KWQKHTMLSettings.h:
3144         * kwq/KWQLineEdit.h:
3145         * kwq/KWQLineEdit.mm:
3146         (-[NSSearchField _addStringToRecentSearches:]):
3147         (QLineEdit::setFont):
3148         * kwq/KWQListBox.h:
3149         * kwq/KWQListBox.mm:
3150         (QListBox::sizeForNumberOfLines):
3151         (QListBox::setFont):
3152         (-[KWQTableView drawRow:clipRect:]):
3153         * kwq/KWQPainter.h:
3154         * kwq/KWQPainter.mm:
3155         (WebCore::QPainter::font):
3156         (WebCore::QPainter::setFont):
3157         (WebCore::QPainter::fontMetrics):
3158         (WebCore::QPainter::_updateRenderer):
3159         (WebCore::QPainter::drawText):
3160         (WebCore::QPainter::drawHighlightForText):
3161         * kwq/KWQSlider.h:
3162         * kwq/KWQSlider.mm:
3163         (QSlider::setFont):
3164         * kwq/KWQTextEdit.h:
3165         * kwq/KWQTextEdit.mm:
3166         (QTextEdit::setFont):
3167         * platform/Font.cpp:
3168         (khtml::Font::update):
3169         * platform/Font.h:
3170         (WebCore::):
3171         (WebCore::Font::m_wordSpacing):
3172         (WebCore::Font::Font):
3173         (WebCore::Font::operator==):
3174         (WebCore::Font::operator!=):
3175         (WebCore::Font::fontMetrics):
3176         (WebCore::Font::pixelSize):
3177         (WebCore::Font::size):
3178         (WebCore::Font::letterSpacing):
3179         (WebCore::Font::setWordSpacing):
3180         (WebCore::Font::setLetterSpacing):
3181         (WebCore::Font::isFixedPitch):
3182         (WebCore::Font::isPrinterFont):
3183         (WebCore::Font::firstFamily):
3184         (WebCore::Font::family):
3185         (WebCore::Font::italic):
3186         (WebCore::Font::weight):
3187         (WebCore::Font::getNSFamily):
3188         (WebCore::Font::getNSFont):
3189         (WebCore::Font::getWebCoreFont):
3190         * platform/FontDescription.h:
3191         (WebCore::FontDescription::FontDescription):
3192         * platform/FontFamily.h:
3193         * platform/Widget.h:
3194         * platform/mac/WidgetMac.mm:
3195         (WebCore::Widget::font):
3196         (WebCore::Widget::setFont):
3197         * rendering/InlineTextBox.cpp:
3198         (WebCore::InlineTextBox::selectionRect):
3199         (WebCore::InlineTextBox::paint):
3200         (WebCore::InlineTextBox::positionForOffset):
3201         * rendering/RenderBlock.cpp:
3202         (WebCore::stripTrailingSpace):
3203         * rendering/RenderText.cpp:
3204         (WebCore::RenderText::cacheWidths):
3205         (WebCore::RenderText::trimmedMinMaxWidth):
3206         (WebCore::RenderText::calcMinMaxWidth):
3207         (WebCore::RenderText::font):
3208         (WebCore::RenderText::width):
3209         * rendering/RenderText.h:
3210         * rendering/bidi.cpp:
3211         (khtml::RenderBlock::computeHorizontalPositionsForLine):
3212         (khtml::RenderBlock::findNextLineBreak):
3213         * rendering/render_br.cpp:
3214         (WebCore::RenderBR::lineHeight):
3215         * rendering/render_flow.cpp:
3216         (WebCore::RenderFlow::lineHeight):
3217         * rendering/render_form.cpp:
3218         (WebCore::RenderFormElement::setStyle):
3219         (WebCore::RenderFormElement::addIntrinsicMarginsIfAllowed):
3220         * rendering/render_image.cpp:
3221         (WebCore::RenderImage::paint):
3222         * rendering/render_line.cpp:
3223         (WebCore::InlineFlowBox::placeBoxesHorizontally):
3224         (WebCore::InlineFlowBox::paintDecorations):
3225         (WebCore::EllipsisBox::paint):
3226         * rendering/render_list.cpp:
3227         (RenderListMarker::paint):
3228         * rendering/render_object.cpp:
3229         (WebCore::RenderObject::getVerticalPosition):
3230         (WebCore::RenderObject::lineHeight):
3231         * rendering/render_object.h:
3232         (WebCore::RenderObject::font):
3233         * rendering/render_replaced.cpp:
3234         (WebCore::RenderWidget::setStyle):
3235         * rendering/render_style.h:
3236         (khtml::RenderStyle::fontSize):
3237         (khtml::RenderStyle::fontMetrics):
3238         (khtml::RenderStyle::wordSpacing):
3239         (khtml::RenderStyle::letterSpacing):
3240         (khtml::RenderStyle::setFontDescription):
3241         (khtml::RenderStyle::setWordSpacing):
3242         (khtml::RenderStyle::setLetterSpacing):
3243
3244 2006-02-28  Darin Adler  <darin@apple.com>
3245
3246         Reviewed by Adele.
3247
3248         - remove obsolete WebCoreScrollView class
3249
3250         * WebCore.exp: Remove WebCoreScrollView class name.
3251
3252         * kwq/WebCoreScrollView.h: Removed.
3253         * kwq/WebCoreScrollView.m: Removed.
3254         * WebCore.xcodeproj/project.pbxproj: Remove WebCoreScrollView source files.
3255
3256         * kwq/KWQListBox.mm: (-[KWQListBoxScrollView autoforwardsScrollWheelEvents]): Added.
3257         * kwq/KWQTextArea.h: Change base class to NSScrollView instead of WebCoreScrollView.
3258         * kwq/KWQTextArea.mm: (-[KWQTextAreaTextView autoforwardsScrollWheelEvents]): Ditto.
3259
3260 2006-02-28  Eric Seidel  <eseidel@apple.com>
3261
3262         Reviewed by mjs.
3263
3264         Fix spacing/style on several of the stubs.
3265         Reorganize stubs, separating empty stubs.
3266         Remove the abort from certain stubs blocking DRT.
3267         Add a virtual setView call to Frame baseclass.
3268
3269         * bridge/mac/MacFrame.h: mark setView virtual
3270         * dom/DocumentImpl.cpp:
3271         (WebCore::DocumentImpl::attach): remove no-renderer hack
3272         * page/Frame.cpp:
3273         (WebCore::Frame::view): fix spacing
3274         (WebCore::Frame::setView): added.
3275         * page/Frame.h:
3276         * platform/win/TemporaryLinkStubs.cpp:
3277         (notImplemented): make break directly into debugger.
3278         Moved, modified several other stubs not mentioned here.
3279
3280 2006-02-28  Justin Garcia  <justin.garcia@apple.com>
3281
3282         Reviewed by mjs
3283         
3284         <http://bugzilla.opendarwin.org/show_bug.cgi?id=6647>
3285         TinyMCE: document.execCommand("insertHTML", ...) unimplemented
3286
3287         * editing/jsediting.cpp:
3288
3289 2006-02-28  Maciej Stachowiak  <mjs@apple.com>
3290
3291         Reviewed by Darin.
3292
3293         - make win32 DumpRenderTree run without crashing
3294         http://bugzilla.opendarwin.org/show_bug.cgi?id=7511
3295
3296         * WebCore.vcproj/WebCore/WebCore.vcproj:
3297         * bridge/win/BrowserExtensionWin.h: Added.
3298         * bridge/win/FrameWin.cpp:
3299         (WebCore::FrameWin::FrameWin): Initialize browser
3300         extension and settings.
3301         * dom/DocumentImpl.cpp:
3302         (WebCore::DocumentImpl::attach): Don't create renderers 
3303         for now.
3304         * dom/EventNames.cpp:
3305         (WebCore::EventNames::init): use placement new even when
3306         not avoiding static constructors.
3307         * khtml/html/htmlnames.cpp:
3308         (WebCore::HTMLNames::init): ditto
3309         * dom/QualifiedName.cpp:
3310         (WebCore::QualifiedName::init): ditto
3311         * dom/QualifiedName.h:
3312         (WebCore::QualifiedName::QualifiedName): Added default
3313         constructor but only in ifdef.
3314         * page/Frame.h:
3315         * platform/AtomicString.cpp:
3316         (WebCore::AtomicString::init): use placement new even when
3317         not avoiding static constructors
3318         * platform/StaticConstructors.h: don't initialize when
3319         not avoiding static constructors, just default construct
3320         and let initialization happen normally
3321         * platform/win/TemporaryLinkStubs.cpp: Stub out some more things
3322         (Cursor::~Cursor):
3323         (QFont::~QFont):
3324         (QFontMetrics::~QFontMetrics):
3325         (WebCore::FrameWin::restoreDocumentState):
3326         (WebCore::FrameWin::partClearedInBegin):
3327         (WebCore::FrameWin::createEmptyDocument):
3328         (WebCore::BrowserExtensionWin::getHistoryLength):
3329         (WebCore::BrowserExtensionWin::canRunModal):
3330         (WebCore::BrowserExtensionWin::openURLNotify):
3331         (WebCore::BrowserExtensionWin::canRunModalNow):
3332         (WebCore::BrowserExtensionWin::runModal):
3333         (WebCore::BrowserExtensionWin::goBackOrForward):
3334
3335 2006-02-27  Eric Seidel  <eseidel@apple.com>
3336
3337         Reviewed by mjs.
3338
3339         Remove abort() from constructors to allow DRT to run.
3340
3341         * platform/win/TemporaryLinkStubs.cpp:
3342         (QFont::QFont):
3343         (QFontMetrics::QFontMetrics):
3344
3345 2006-02-27  Justin Garcia  <justin.garcia@apple.com>
3346
3347         Reviewed by darin
3348         
3349         <http://bugzilla.opendarwin.org/show_bug.cgi?id=6893> 
3350         REGRESSION: Major bug with TinyMCE, no value submitted from textarea
3351         <rdar://problem/3465857> value from textarea form field inside of hidden div isn't submitted
3352         <rdar://problem/3968059> Textarea with hard-wrap: pre-filled text doesn't get hard-wrapped
3353         
3354         Canonicalize line endings in textareas to avoid the workarounds that were a source of bugs,
3355         Also call textWithHardLineWraps inside appendFormData (and nowhere else) if wrap="hard".
3356
3357         * khtml/html/HTMLTextAreaElementImpl.cpp:
3358         (WebCore::HTMLTextAreaElementImpl::HTMLTextAreaElementImpl):
3359         (WebCore::HTMLTextAreaElementImpl::select):
3360         (WebCore::HTMLTextAreaElementImpl::appendFormData):
3361         (WebCore::HTMLTextAreaElementImpl::rendererWillBeDestroyed):
3362         (WebCore::HTMLTextAreaElementImpl::updateValue):
3363         (WebCore::HTMLTextAreaElementImpl::value):
3364         (WebCore::HTMLTextAreaElementImpl::setValue):
3365         (WebCore::HTMLTextAreaElementImpl::defaultValue):
3366         * khtml/html/HTMLTextAreaElementImpl.h:
3367         (DOM::HTMLTextAreaElementImpl::invalidateValue):
3368         * kwq/KWQTextArea.h:
3369         * kwq/KWQTextArea.mm:
3370         (-[KWQTextAreaTextView textDidChange:]):
3371         (-[KWQTextAreaTextView text]):
3372         (-[KWQTextAreaTextView textWithHardLineBreaks]):
3373         (-[KWQTextAreaTextView setSelectedRange:]):
3374         (-[KWQTextAreaTextView selectedRange]):
3375         (-[KWQTextAreaTextView getCursorPositionAsIndex:inParagraph:]):
3376         (RangeOfParagraph):
3377         (-[KWQTextAreaTextView textView:shouldChangeTextInRange:replacementString:]):
3378         * rendering/render_form.cpp:
3379         (WebCore::RenderTextArea::destroy):
3380         (WebCore::RenderTextArea::updateFromElement):
3381         (WebCore::RenderTextArea::text):
3382         (WebCore::RenderTextArea::textWithHardLineBreaks):
3383         * rendering/render_form.h:
3384
3385 2006-02-27  Eric Seidel  <eseidel@apple.com>
3386
3387         Reviewed by darin.
3388
3389         Copy missing dlls to build directory.
3390
3391         * Viewer.cpp: fix line endings
3392         * Viewer/ImageView.cpp: fix line endings
3393         * Viewer/stdafx.cpp: fix line endings
3394         * WebCore.vcproj/WebCore/build-generated-files.sh:
3395
3396 2006-02-27  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3397
3398         Test: added to fast/dom/css-selectorText.html
3399
3400         Reviewed by Darin.
3401
3402         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7338
3403           Incorrect selectorText for multiple subselectors.
3404
3405         * css/css_base.cpp:
3406         (CSSSelector::selectorText): Iterate over subselectors
3407
3408 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
3409
3410         Reviewed by Darin.
3411
3412         - write a portable ICU version of TextEncoding::fromUnicode for use on win32
3413
3414         * platform/StreamingTextDecoder.h:
3415         * platform/TextEncoding.cpp:
3416         (WebCore::TextEncoding::fromUnicode): added
3417         (WebCore::getConverter): helper
3418         (WebCore::cacheConverter): ditto
3419         (WebCore::effectiveEncoding): ditto
3420         * platform/mac/TextEncodingMac.cpp: Add comment
3421         * platform/win/TemporaryLinkStubs.cpp:
3422         (WebCore::TextEncoding::fromUnicode): remove
3423
3424 2006-02-27  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3425
3426         Test: fast/text/in-rendered-text-rtl.html
3427
3428         Reviewed by Darin.
3429
3430         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7433
3431           REGRESSION (r12789): Second RTL text run on a line cannot be selected
3432
3433         * dom/dom_position.cpp:
3434         (WebCore::Position::inRenderedText): If the RenderText contains
3435         reversed text, the text boxes are not necessarily ordered by start
3436         position, so iterate through all of them.
3437         (WebCore::Position::isRenderedCharacter): Ditto.
3438
3439 2006-02-27  David Kilzer  <ddkilzer@kilzer.net>
3440
3441         Reviewed by Darin.
3442
3443         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7321
3444         REGRESSION: style tag in body causes two head elements to appear in the DOM
3445
3446         * khtml/html/htmlparser.cpp: Handle the head node like form and map nodes.
3447         (WebCore::HTMLParser::parseToken):
3448         (WebCore::HTMLParser::headCreateErrorCheck):
3449
3450 2006-02-27  Eric Seidel  <eseidel@apple.com>
3451
3452         Reviewed by darin.
3453
3454         Add stub to make DRT link.
3455         Make WebCore copy libxml.dll into build directory when building.
3456
3457         * WebCore.vcproj/WebCore/build-generated-files.sh:
3458         * platform/win/TemporaryLinkStubs.cpp:
3459         (WebCore::TextEncoding::fromUnicode):
3460
3461 2006-02-27  Darin Adler  <darin@apple.com>
3462
3463         Reviewed by Eric.
3464
3465         - fix regression in layout tests
3466
3467         * dom/dom_elementimpl.cpp: (WebCore::StyledElementImpl::addCSSLength):
3468         Fix some code that was not properly truncating. I broke it in my
3469         string change this morning. 
3470
3471 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
3472
3473         Rubber stamped by Eric.
3474
3475         - add stubs for FrameWin overrides of pure virtual Frame methods
3476
3477         * platform/win/TemporaryLinkStubs.cpp:
3478         (WebCore::FrameWin::respondToChangedContents):
3479         (WebCore::FrameWin::unfocusWindow):
3480         (WebCore::FrameWin::locationbarVisible):
3481         (WebCore::FrameWin::respondToChangedSelection):
3482         (WebCore::FrameWin::clearUndoRedoOperations):
3483         (WebCore::FrameWin::issueRedoCommand):
3484         (WebCore::FrameWin::canRedo):
3485         (WebCore::FrameWin::restoreDocumentState):
3486         (WebCore::FrameWin::canUndo):
3487         (WebCore::FrameWin::overrideMediaType):
3488         (WebCore::FrameWin::saveDocumentState):
3489         (WebCore::FrameWin::print):
3490         (WebCore::FrameWin::issueCutCommand):
3491         (WebCore::FrameWin::issueCopyCommand):
3492         (WebCore::FrameWin::partClearedInBegin):
3493         (WebCore::FrameWin::issueUndoCommand):
3494         (WebCore::FrameWin::clearRecordedFormValues):
3495         (WebCore::FrameWin::issuePasteCommand):
3496         (WebCore::FrameWin::markedTextRange):
3497         (WebCore::FrameWin::shouldChangeSelection):
3498         (WebCore::FrameWin::scheduleClose):
3499         (WebCore::FrameWin::menubarVisible):
3500         (WebCore::FrameWin::personalbarVisible):
3501         (WebCore::FrameWin::createEmptyDocument):
3502         (WebCore::FrameWin::lastEventIsMouseUp):
3503         (WebCore::FrameWin::statusbarVisible):
3504         (WebCore::FrameWin::toolbarVisible):
3505         (WebCore::FrameWin::issueTransposeCommand):
3506         (WebCore::FrameWin::userAgent):
3507         (WebCore::FrameWin::canPaste):
3508         (WebCore::FrameWin::incomingReferrer):
3509         (WebCore::FrameWin::canGoBackOrForward):
3510         (WebCore::FrameWin::issuePasteAndMatchStyleCommand):
3511         (WebCore::FrameWin::handledOnloadEvents):
3512         (WebCore::FrameWin::generateFrameName):
3513
3514 2006-02-27  Eric Seidel  <eseidel@apple.com>
3515
3516         Reviewed by mjs.
3517
3518         Add constructor and destructor. 
3519
3520         * bridge/win/FrameWin.cpp:
3521         (WebCore::FrameWin::FrameWin):
3522         (WebCore::FrameWin::~FrameWin):
3523
3524 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
3525
3526         Rubber stamped by Eric (sorta).
3527
3528         - add return values where needed
3529
3530         * platform/win/TemporaryLinkStubs.cpp:
3531         (KWQServeRequest):
3532         (KWQServeSynchronousRequest):
3533
3534 2006-02-27  Eric Seidel  <eseidel@apple.com>
3535
3536         Reviewed by mjs.
3537
3538         Add a couple more stubs to make Win32 link.
3539
3540         * platform/win/TemporaryLinkStubs.cpp:
3541         (KWQServeSynchronousRequest):
3542         (WebCore::FrameView::topLevelWidget):
3543
3544 2006-02-27  Eric Seidel  <eseidel@apple.com>
3545
3546         Reviewed by mjs.
3547
3548         Move mac-specific logging logic up into WebCore (from JavaScriptCore).
3549         Remove KWQ prefixes from default log channels.
3550         http://bugzilla.opendarwin.org/show_bug.cgi?id=7503
3551
3552         * bridge/mac/WebCorePageBridge.mm:
3553         (initializeLogChannel):
3554         (initializeLoggingChannelsIfNecessary):
3555         (-[WebCorePageBridge init]):
3556         * page/Frame.h:
3557         * platform/Logging.cpp:
3558         * platform/Logging.h:
3559
3560 2006-02-27  Darin Adler  <darin@apple.com>
3561
3562         Reviewed by Maciej.
3563
3564         - fix <rdar://problem/4104575> hang due to slow saveDocumentState method
3565
3566         * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge saveDocumentState]):
3567         Change code that iterates a QStringList with indices to use iterator instead.
3568
3569 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
3570
3571         Reviewed by Eric.
3572
3573         - portable version of QString::utf8
3574
3575         * platform/QString.cpp:
3576         (QString::utf8): moved here, rewritten to use TextCodec
3577         * platform/mac/QStringMac.mm:
3578         (QString::utf8): removed from here
3579
3580 2006-02-27  Eric Seidel  <eseidel@apple.com>
3581
3582         Rubber-stamped by mjs.
3583
3584         Fix FrameWin.h to use consistant line endings.
3585         Fix TemporaryLinkStubs to better match style guidelines.
3586
3587         * bridge/win/FrameWin.h:
3588         (WebCore::Win):
3589         * platform/win/TemporaryLinkStubs.cpp:
3590         (QLineEdit::selectAll):
3591         (QPainter::save):
3592         (Widget::enableFlushDrawing):
3593         (QPainter::drawHighlightForText):
3594         (QFont::setPrinterFont):
3595         (QTextEdit::textWithHardLineBreaks):
3596         (Widget::mapFromGlobal):
3597         (QPainter::addClip):
3598         (QLineEdit::cursorPosition):
3599         (QPainter::setPen):
3600         (QPainter::selectedTextBackgroundColor):
3601         (QPainter::fontMetrics):
3602         (Widget::show):
3603         (QFont::setItalic):
3604         (QSlider::setValue):
3605         (QLineEdit::addSearchResult):
3606         (KWQFileButton::click):
3607         (QLineEdit::setWritingDirection):
3608         (QPainter::drawFocusRing):
3609         (KWQFileButton::sizeForCharacterWidth):
3610         (QTextEdit::sizeWithColumnsAndRows):
3611         (QComboBox::clear):
3612         (QPainter::misspellingLineThickness):
3613         (QComboBox::setFrameGeometry):
3614         (QLineEdit::maxLength):
3615         (Widget::isEnabled):
3616         (KWQServeRequest):
3617         (QTextEdit::setText):
3618         (Widget::paint):
3619         (QPainter::addRoundedRectClip):
3620         (FrameView::viewportToGlobal):
3621         (QTextEdit::selectionEnd):
3622         (QFont::determinePitch):
3623         (QTextEdit::setScrollBarModes):
3624         (QPainter::drawEllipse):
3625         (QTextEdit::setReadOnly):
3626         (QListBox::appendItem):
3627         (QLineEdit::setPlaceholderString):
3628         (Cursor::Cursor):
3629         (Widget::focusPolicy):
3630         (ScrollView::removeChild):
3631         (QTextEdit::selectAll):
3632         (QPainter::fillRect):
3633         (QPainter::endTransparencyLayer):
3634         (QFont::QFont):
3635         (ScrollView::addChild):
3636         (QTextEdit::setDisabled):
3637         (QScrollBar::scroll):
3638         (Widget::~Widget):
3639         (QPainter::xForm):
3640         (QListBox::sizeForNumberOfLines):
3641         (ScrollView::resizeContents):
3642         (QLineEdit::selectionStart):
3643         (QLineEdit::QLineEdit):
3644         (FrameView::updateBorder):
3645         (QLineEdit::hasSelectedText):
3646         (QScrollBar::QScrollBar):
3647         (QListBox::doneAppendingItems):
3648         (QTextEdit::QTextEdit):
3649         (ScrollView::inWindow):
3650         (QScrollBar::setValue):
3651         (QFont::setFirstFamily):
3652         (QTextEdit::hasSelectedText):
3653         (QTextEdit::selectionStart):
3654         (QFont::setWeight):
3655         (ScrollView::scrollXOffset):
3656         (QListBox::isSelected):
3657         (QLineEdit::setReadOnly):
3658         (QPainter::drawLineForText):
3659         (QPainter::QPainter):
3660         (QComboBox::~QComboBox):
3661         (QComboBox::focusPolicy):
3662         (QPainter::drawImageAtPoint):
3663         (QPainter::clearShadow):
3664         (QTextEdit::setLineHeight):
3665         (QScrollBar::setKnobProportion):
3666         (KWQFileButton::KWQFileButton):
3667         (QFontMetrics::boundingRect):
3668         (QTextEdit::setSelectionStart):
3669         (QPainter::beginTransparencyLayer):
3670         (QFontMetrics::setFont):
3671         (QComboBox::setFont):
3672         (Widget::frameGeometry):
3673         (QListBox::setSelected):
3674         (QPainter::addFocusRingRect):
3675         (QTextEdit::setCursorPosition):
3676         (QPainter::restore):
3677         (QFontMetrics::width):
3678         (Widget::setEnabled):
3679         (QTextEdit::setSelectionEnd):
3680         (QComboBox::populate):
3681         (ScrollView::setStaticBackground):
3682         (QPainter::font):
3683         (QTextEdit::setAlignment):
3684         (QLineEdit::setCursorPosition):
3685         (QPainter::drawText):
3686         (QPainter::pen):
3687         (KJavaAppletWidget::KJavaAppletWidget):
3688         (QFontMetrics::descent):
3689         (QListBox::QListBox):
3690         (QFontMetrics::ascent):
3691         (QLineEdit::selectedText):
3692         (Widget::setIsSelected):
3693         (QLineEdit::text):
3694         (Widget::unlockDrawingFocus):
3695         (QLineEdit::setLiveSearch):
3696         (QPainter::paintingDisabled):
3697         (QComboBox::QComboBox):
3698         (QPainter::drawConvexPolygon):
3699         (Widget::setFont):
3700         (QSlider::setMaxValue):
3701         (Widget::lockDrawingFocus):
3702         (QPainter::drawLine):
3703         (QPainter::setBrush):
3704         (QTextEdit::setSelectionRange):
3705         (ScrollView::scrollPointRecursively):
3706         (QLineEdit::sizeForCharacterWidth):
3707         (Cursor::~Cursor):
3708         (QFontMetrics::selectionRectForText):
3709         (ScrollView::suppressScrollBars):
3710         (QFontMetrics::checkSelectionPoint):
3711         (QTextEdit::getCursorPosition):
3712         (FrameView::isFrameView):
3713         (QScrollBar::setSteps):
3714         (QLineEdit::setMaxLength):
3715         (Widget::setCursor):
3716         (QLineEdit::setAutoSaveName):
3717         (QComboBox::baselinePosition):
3718         (QComboBox::appendItem):
3719         (QPainter::setShadow):
3720         (QTextEdit::setWritingDirection):
3721         (Widget::setDrawingAlpha):
3722         (QSlider::QSlider):
3723         (ScrollView::setVScrollBarMode):
3724         (QPainter::drawScaledAndTiledImage):
3725         (ScrollView::scrollYOffset):
3726         (QPainter::drawImage):
3727         (QComboBox::setCurrentItem):
3728         (QFontMetrics::height):
3729         (QComboBox::setWritingDirection):
3730         (ScrollView::setScrollBarsMode):
3731         (QComboBox::sizeHint):
3732         (QPainter::drawRect):
3733         (QFont::setPixelSize):
3734         (Widget::setFrameGeometry):
3735         (QLineEdit::setSelection):
3736         (QLineEdit::setMaxResults):
3737         (QListBox::clear):
3738         (QLineEdit::edited):
3739         (QPainter::drawTiledImage):
3740         (QPainter::clearFocusRing):
3741         (QFont::operator==):
3742         (Widget::Widget):
3743         (QTextEdit::text):
3744         (QPainter::drawImageInRect):
3745         (QPainter::setFont):
3746         (Widget::disableFlushDrawing):
3747         (QPainter::initFocusRing):
3748         (QSlider::setMinValue):
3749         (QTextEdit::setWordWrap):
3750         (QPainter::drawLineForMisspelling):
3751         (QLineEdit::setText):
3752         (QSlider::value):
3753         (QListBox::setSelectionMode):
3754         (KWQFileButton::setFilename):
3755         (QFontMetrics::QFontMetrics):
3756         (QFontMetrics::lineSpacing):
3757         (QLineEdit::setEdited):
3758         (QComboBox::frameGeometry):
3759         (QListBox::setWritingDirection):
3760         (QLineEdit::setAlignment):
3761         (ScrollView::updateContents):
3762         (QFontMetrics::floatWidth):
3763         (ScrollView::setHScrollBarMode):
3764         (KWQFileButton::focusPolicy):
3765         (QListBox::setFont):
3766         (QLineEdit::checksDescendantsForFocus):
3767         (KWQFileButton::baselinePosition):
3768         (QSlider::~QSlider):
3769         (KWQFileButton::setFrameGeometry):
3770         (QListBox::~QListBox):
3771         (KWQFileButton::frameGeometry):
3772         (QTextEdit::setFont):
3773         (QLineEdit::setFont):
3774         (KWQFileButton::~KWQFileButton):
3775         (QTextEdit::focusPolicy):
3776         (QSlider::focusPolicy):
3777         (QSlider::setFont):
3778         (QListBox::setEnabled):
3779         (QListBox::checksDescendantsForFocus):
3780         (QListBox::focusPolicy):
3781         (QLineEdit::baselinePosition):
3782         (QSlider::sizeHint):
3783         (QLineEdit::~QLineEdit):
3784         (QTextEdit::~QTextEdit):
3785         (QTextEdit::checksDescendantsForFocus):
3786         (QLineEdit::focusPolicy):
3787         (QScrollBar::~QScrollBar):
3788         (Path::operator=):
3789         (QLineEdit::setColors):
3790         (QTextEdit::setColors):
3791         (searchableIndexIntroduction):
3792         (KWQKCookieJar::setCookie):
3793         (KWQKCookieJar::cookie):
3794         (WebCore::screenRect):
3795         (WebCore::Widget::clearFocus):
3796         (WebCore::historyContains):
3797         (KWQFindNextSentenceFromIndex):
3798         (KWQFindSentenceBoundary):
3799         (KWQFindNextWordFromIndex):
3800         (KWQFindWordBoundary):
3801         (submitButtonDefaultLabel):
3802         (inputElementAltText):
3803         (resetButtonDefaultLabel):
3804         (KWQKCookieJar::cookieEnabled):
3805         (WebCore::Widget::setFocus):
3806         (WebCore::QPainter::fillRect):
3807         (WebCore::QPainter::~QPainter):
3808         (WebCore::ScrollView::viewportToContents):
3809         (WebCore::TransferJob::kill):
3810         (WebCore::TransferJob::addMetaData):
3811         (WebCore::TransferJob::queryMetaData):
3812         (WebCore::TransferJob::error):
3813         (WebCore::TransferJob::errorText):
3814         (WebCore::TransferJob::isErrorPage):
3815         (WebCore::TransferJob::TransferJob):
3816         (WebCore::Widget::hide):
3817         (KLocale::language):
3818         (PlugInInfoStore::createPluginInfoForPluginAtIndex):
3819         (WebCore::screenDepth):
3820         (QFont::italic):
3821         (QFontMetrics::operator=):
3822         (QFontMetrics::xHeight):
3823         (WebCore::usableScreenRect):
3824         (QFont::operator=):
3825         (Widget::setActiveWindow):
3826         (KWQCheckIfReloading):
3827         (WebCore::ScrollView::contentsX):
3828         (WebCore::ScrollView::contentsY):
3829         (WebCore::ScrollView::contentsHeight):
3830         (WebCore::ScrollView::contentsWidth):
3831         (WebCore::ScrollView::visibleHeight):
3832         (WebCore::ScrollView::visibleWidth):
3833         (WebCore::ScrollView::hScrollBarMode):
3834         (WebCore::ScrollView::vScrollBarMode):
3835         (KWQCheckCacheObjectStatus):
3836
3837 2006-02-27  Justin Garcia  <justin.garcia@apple.com>
3838
3839         Reviewed by darin
3840         
3841         <http://bugzilla.opendarwin.org/show_bug.cgi?id=6844>
3842         elementAtPoint returns the list when the point is over a list marker
3843         
3844         Consider the case of outside list markers in nodeAtPoint.  Had to pull 
3845         the code out of RenderListMarker::paint that computed the position/size 
3846         of the list marker.
3847
3848         Added:
3849         * fast/events/onclick-list-marker.html
3850
3851         * rendering/render_list.cpp:
3852         (RenderListItem::nodeAtPoint):
3853         (RenderListItem::getAbsoluteRepaintRect):
3854         (RenderListMarker::paint):
3855         (RenderListMarker::nodeAtPoint):
3856         (RenderListMarker::getRelativeMarkerRect):
3857         * rendering/render_list.h:
3858         * rendering/render_object.h:
3859
3860 2006-02-27  Eric Seidel  <eseidel@apple.com>
3861
3862         Reviewed by timo.
3863
3864         Fix xcode project after previous KWQLogging move.
3865
3866         * WebCore.xcodeproj/project.pbxproj:
3867         * platform/Logging.h:
3868
3869 2006-02-27  Eric Seidel  <eseidel@apple.com>
3870
3871         Reviewed by timo.
3872
3873         Move KWQLogging to platform and rename as Logging.*, fix headers.
3874         This will break the mac build, which I will fix on my next commit.
3875
3876         * WebCore.vcproj/WebCore/WebCore.vcproj:
3877         * dom/DocumentImpl.cpp:
3878         * dom/dom_position.cpp:
3879         * editing/DeleteSelectionCommand.cpp:
3880         * editing/InsertLineBreakCommand.cpp:
3881         * editing/InsertParagraphSeparatorCommand.cpp:
3882         * editing/InsertTextCommand.cpp:
3883         * editing/VisiblePosition.cpp:
3884         * editing/markup.cpp:
3885         * khtml/ecma/kjs_window.cpp:
3886         * kwq/KWQLogging.h: Removed.
3887         * kwq/KWQLogging.m: Removed.
3888         * kwq/KWQRegExp.cpp:
3889         * kwq/KWQTextStream.cpp:
3890         * platform/Logging.cpp: Added.
3891         * platform/Logging.h: Added.
3892         * platform/QString.cpp:
3893         * platform/win/TemporaryLinkStubs.cpp:
3894         (WebCore::ScrollView::vScrollBarMode):
3895         (WebCore::theme):
3896
3897 2006-02-27  Eric Seidel  <eseidel@apple.com>
3898
3899         Reviewed by hyatt.
3900
3901         Fix a bunch more link errors in the win32 build, mostly by adding stubs.
3902
3903         * WebCore.vcproj/WebCore/WebCore.vcproj: add JSXMLHttpRequest and PlugInInfoStore
3904         * WebCore.vcproj/WebCore/build-generated-files.sh: update for JSXMLHttpRequest
3905         * khtml/ecma/JSXMLHttpRequest.cpp:
3906         (KJS::JSXMLHttpRequest::getValueProperty): fix switch to compile
3907         * platform/PlugInInfoStore.h:
3908         * platform/mac/PlugInInfoStoreMac.mm:
3909         * platform/win/TemporaryLinkStubs.cpp: add a bunch of stubs.
3910         (WebCore::TransferJob::errorText):
3911         (WebCore::TransferJob::isErrorPage):
3912         (WebCore::Widget::hide):
3913         (PlugInInfoStore::createPluginInfoForPluginAtIndex):
3914         (PlugInInfoStore::pluginCount):
3915         (WebCore::refreshPlugins):
3916         (QFont::QFont):
3917         (QFont::~QFont):
3918         (QFont::italic):
3919         (QFont::weight):
3920         (QFontMetrics::QFontMetrics):
3921         (QFontMetrics::~QFontMetrics):
3922         (QFontMetrics::xHeight):
3923         (Widget::setActiveWindow):
3924         (WebCore::ScrollView::contentsX):
3925         (WebCore::ScrollView::contentsY):
3926         (WebCore::ScrollView::contentsHeight):
3927         (WebCore::ScrollView::contentsWidth):
3928         (WebCore::ScrollView::visibleHeight):
3929         (WebCore::ScrollView::visibleWidth):
3930         (WebCore::ScrollView::hScrollBarMode):
3931         (WebCore::ScrollView::vScrollBarMode):
3932
3933 2006-02-27  Eric Seidel  <eseidel@apple.com>
3934
3935         Reviewed by timo.
3936
3937         Add missing include to fix build.
3938
3939         * platform/win/TemporaryLinkStubs.cpp:
3940
3941 2006-02-27  Eric Seidel  <eseidel@apple.com>
3942
3943         Reviewed by ggaren.
3944
3945         Move KConfig to platform/PlugInInfoStore and add test.
3946         http://bugzilla.opendarwin.org/show_bug.cgi?id=7498
3947
3948         Test: plugins/plugin-javascript-access.html
3949
3950         * ForwardingHeaders/kconfig.h: Removed.
3951         * WebCore.xcodeproj/project.pbxproj:
3952         * khtml/ecma/kjs_navigator.cpp:
3953         (KJS::PluginBase::PluginBase):
3954         * khtml/ecma/kjs_window.cpp:
3955         * kwq/KWQKConfigBase.h: Removed.
3956         * kwq/KWQKConfigBase.mm: Removed.
3957         * platform/PlugInInfoStore.h: Added.
3958         * platform/mac/PlugInInfoStoreMac.mm: Added.
3959         (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
3960         (WebCore::PlugInInfoStore::pluginCount):
3961         (WebCore::refreshPlugins):
3962
3963 2006-02-27  Darin Adler  <darin@apple.com>
3964
3965         Reviewed by Eric.
3966
3967         * platform/win/TemporaryLinkStubs.cpp: Added more stubs.
3968
3969 2006-02-27  Eric Seidel  <eseidel@apple.com>
3970
3971         Reviewed by darin.
3972
3973         Reworked KConfig and plugin architecture to be much more sane.
3974         This is part one.  Once this lands, I'll move it under platform with a better name.
3975
3976         Darin had several great suggested further improvements as part of:
3977         http://bugzilla.opendarwin.org/show_bug.cgi?id=7451
3978         I'll make some of those when I move this to platform.
3979
3980         No layout test possible (no way to control which plugins DRT sees).
3981
3982         * khtml/ecma/kjs_navigator.cpp:
3983         (KJS::PluginBase::PluginBase):
3984         (KJS::PluginBase::~PluginBase):
3985         (KJS::PluginBase::refresh):
3986         (KJS::Plugins::getValueProperty):
3987         (KJS::Plugins::nameGetter):
3988         (KJS::Plugins::getOwnPropertySlot):
3989         (KJS::MimeTypes::getValueProperty):
3990         (KJS::MimeTypes::nameGetter):
3991         (KJS::MimeTypes::getOwnPropertySlot):
3992         (KJS::Plugin::getValueProperty):
3993         (KJS::Plugin::nameGetter):
3994         (KJS::Plugin::getOwnPropertySlot):
3995         * khtml/ecma/kjs_navigator.h:
3996         * khtml/ecma/kjs_window.cpp:
3997         * kwq/KWQKConfigBase.h:
3998         (WebCore::PluginInfoStore::PluginInfoStore):
3999         * kwq/KWQKConfigBase.mm:
4000         (WebCore::PluginInfoStore::createPluginInfoForPluginAtIndex):
4001         (WebCore::PluginInfoStore::pluginCount):
4002         (WebCore::refreshPlugins):
4003
4004 2006-02-27  Eric Seidel  <eseidel@apple.com>
4005
4006         Reviewed by darin.
4007
4008         Build fix: cast to unsigned from size_t.
4009
4010         * platform/StreamingTextDecoder.cpp:
4011
4012 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
4013  
4014         Reviewed by Darin.
4015
4016         - add Selection.cpp to win32 build
4017         http://bugzilla.opendarwin.org/show_bug.cgi?id=7490
4018
4019         * WebCore.vcproj/WebCore/WebCore.vcproj:
4020
4021 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
4022
4023         - use proper header for std::min.
4024
4025         * platform/StreamingTextDecoder.cpp:
4026
4027 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
4028
4029         Reviewed by Darin.
4030
4031         - add new TextEncoding stuff to win32 build
4032         http://bugzilla.opendarwin.org/show_bug.cgi?id=7491
4033
4034         * WebCore.vcproj/WebCore/WebCore.vcproj:
4035         * WebCore.vcproj/WebCore/build-generated-files.sh:
4036         * platform/StreamingTextDecoder.cpp:
4037         (WebCore::StreamingTextDecoder::convertUTF16):
4038         * platform/TextEncoding.cpp:
4039
4040 2006-02-27  Darin Adler  <darin@apple.com>
4041
4042         - try to fix Windows build
4043
4044         * WebCore.vcproj/WebCore/WebCore.vcproj: Removed rendering/font.* and added platform/Font.*.
4045
4046 2006-02-27  Darin Adler  <darin@apple.com>
4047
4048         * css/csshelper.cpp: (WebCore::parseURL): Actually, the second version was fine. Rolling
4049         back to that; apologies for the churn.
4050
4051 2006-02-27  Darin Adler  <darin@apple.com>
4052
4053         * css/csshelper.cpp: (WebCore::parseURL): Third time's the charm.
4054
4055 2006-02-27  Darin Adler  <darin@apple.com>
4056
4057         * css/csshelper.cpp: (WebCore::parseURL): Oops! Checked in fixed version of this file.
4058
4059 2006-02-27  Darin Adler  <darin@apple.com>
4060
4061         Reviewed by Maciej.
4062
4063         - http://bugzilla.opendarwin.org/show_bug.cgi?id=7486
4064           a first step in improving String/StringImpl API -- use "s" and "l" less
4065
4066         * css/csshelper.cpp: (WebCore::parseURL): Use a local buffer rather than
4067         manipulating the characters directly inside a StringImpl buffer.
4068
4069         * css/cssstyleselector.cpp: (WebCore::parseUASheet): Copy the data to parse
4070         it rather than going out of our way to hack StringImpl to not copy the data.
4071         It would be better not to copy, but this is one-time work.
4072
4073         * dom/DOMImplementationImpl.cpp: (WebCore::DOMImplementationImpl::createDocument):
4074         * dom/dom2_viewsimpl.cpp: (DOM::AbstractViewImpl::getMatchedCSSRules):
4075         * dom/dom_elementimpl.cpp: (WebCore::StyledElementImpl::addCSSLength):
4076         * dom/dom_xmlimpl.cpp: (WebCore::EntityImpl::toString):
4077         * editing/CompositeEditCommand.cpp: (WebCore::CompositeEditCommand::deleteInsignificantText):
4078         * khtml/html/htmlparser.cpp: (WebCore::HTMLParser::handleError):
4079         * platform/AtomicString.cpp:
4080         (WebCore::CStringTranslator::equal):
4081         (WebCore::QCharBufferTranslator::equal):
4082         (WebCore::AtomicString::add):
4083         * platform/StringImpl.h:
4084         (WebCore::StringImpl::unicode): Added.
4085         (KXMLCore::CaseInsensitiveHash::hash): 
4086         (KXMLCore::CaseInsensitiveHash::equal):
4087         * rendering/InlineTextBox.cpp: (khtml::InlineTextBox::selectionStartEnd):
4088         * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateFirstLetter):
4089         * rendering/RenderText.cpp:
4090         (WebCore::getCharacterBreakIterator):
4091         (WebCore::RenderText::RenderText):
4092         (WebCore::RenderText::atLineWrap):
4093         (WebCore::RenderText::allAscii):
4094         (WebCore::RenderText::widthFromCache):
4095         (WebCore::RenderText::trimmedMinMaxWidth):
4096         (WebCore::RenderText::containsOnlyWhitespace):
4097         (WebCore::RenderText::setSelectionState):
4098         (WebCore::RenderText::setTextWithOffset):
4099         (WebCore::RenderText::setText):
4100         (WebCore::RenderText::width):
4101         (WebCore::RenderText::selectionRect):
4102         (WebCore::RenderText::caretMaxOffset):
4103         * rendering/RenderTextFragment.cpp:
4104         (khtml::RenderTextFragment::RenderTextFragment):
4105         (khtml::RenderTextFragment::originalString):
4106         Use length() instead of l, unicode() instead of s, and (*x)[] instead of x->s[].
4107
4108         * editing/visible_units.cpp:
4109         (WebCore::startOfParagraph): Use const.
4110         (WebCore::endOfParagraph): Ditto.
4111
4112 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
4113
4114         - fix problem with a prototype that broke win32 build
4115
4116         * platform/StreamingTextDecoder.h:
4117         (WebCore::StreamingTextDecoder::convert):
4118
4119 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
4120
4121         - fix debug build (broken by my last commit)
4122
4123         * platform/StreamingTextDecoder.cpp:
4124         (WebCore::StreamingTextDecoder::createICUConverter):
4125         (WebCore::StreamingTextDecoder::convertUsingICU):
4126
4127 2006-02-26  Maciej Stachowiak  <mjs@apple.com>
4128
4129         Reviewed by Darin.
4130
4131         - platformize KWQTextCodec
4132         http://bugzilla.opendarwin.org/show_bug.cgi?id=7487
4133         
4134         I renamed QTextCodec to TextEncoding and QTextDecoder to
4135         StreamingTextDecoder. I also made a bunch of other changes to make
4136         the API more sensible.
4137         
4138         * ForwardingHeaders/qtextcodec.h: Removed.
4139         * WebCore.xcodeproj/project.pbxproj:
4140         * bridge/mac/MacFrame.mm:
4141         * bridge/mac/WebCoreFrameBridge.mm:
4142         (-[WebCoreFrameBridge URLWithAttributeString:]):
4143         (-[WebCoreFrameBridge textEncoding]):
4144         (+[WebCoreFrameBridge stringWithData:textEncoding:]):
4145         (+[WebCoreFrameBridge stringWithData:textEncodingName:]):
4146         * dom/DocumentImpl.cpp:
4147         (WebCore::DocumentImpl::completeURL):
4148         * khtml/ecma/kjs_dom.cpp:
4149         (KJS::DOMDocument::getValueProperty):
4150         (KJS::DOMDocument::putValueProperty):
4151         * khtml/html/FormDataList.cpp:
4152         (DOM::FormDataList::FormDataList):
4153         (DOM::FormDataList::appendString):
4154         * khtml/html/FormDataList.h:
4155         * khtml/html/HTMLFormElementImpl.cpp:
4156         (WebCore::HTMLFormElementImpl::HTMLFormElementImpl):
4157         (WebCore::HTMLFormElementImpl::formData):
4158         * khtml/html/htmltokenizer.cpp:
4159         * khtml/misc/decoder.cpp:
4160         (Decoder::Decoder):
4161         (Decoder::setEncodingName):
4162         (Decoder::encodingName):
4163         (Decoder::decode):
4164         * khtml/misc/decoder.h:
4165         (khtml::Decoder::):
4166         (khtml::Decoder::visuallyOrdered):
4167         (khtml::Decoder::encoding):
4168         * khtml/xsl/xslt_processorimpl.cpp:
4169         (DOM::XSLTProcessorImpl::createDocumentFromSource):
4170         * kwq/KWQCharsets.cpp: Removed.
4171         * kwq/KWQCharsets.h: Removed.
4172         * kwq/KWQTextCodec.cpp: Removed.
4173         * kwq/KWQTextCodec.h: Removed.
4174         * kwq/WebCoreTextDecoder.h:
4175         * kwq/WebCoreTextDecoder.mm:
4176         * kwq/can-convert.mm: Removed.
4177         * kwq/character-sets.txt: Removed.
4178         * kwq/mac-encodings.txt: Removed.
4179         * kwq/make-charset-table.pl: Removed.
4180         * loader/CachedCSSStyleSheet.cpp:
4181         (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
4182         (WebCore::CachedCSSStyleSheet::setCharset):
4183         (WebCore::CachedCSSStyleSheet::data):
4184         * loader/CachedCSSStyleSheet.h:
4185         * loader/CachedScript.cpp:
4186         (WebCore::CachedScript::CachedScript):
4187         (WebCore::CachedScript::setCharset):
4188         (WebCore::CachedScript::data):
4189         * loader/CachedScript.h:
4190         * loader/CachedXSLStyleSheet.cpp:
4191         (WebCore::CachedXSLStyleSheet::setCharset):
4192         * page/Frame.cpp:
4193         (WebCore::Frame::write):
4194         (WebCore::Frame::gotoAnchor):
4195         (WebCore::Frame::encoding):
4196         (WebCore::Frame::backslashAsCurrencySymbol):
4197         * platform/CharsetNames.cpp: Added.
4198         (KXMLCore::):
4199         (WebCore::EncodingHash::equal):
4200         (WebCore::EncodingHash::hash):
4201         (WebCore::buildDictionaries):
4202         (WebCore::textEncodingIDFromCharsetName):
4203         (WebCore::charsetNameFromTextEncodingID):
4204         * platform/CharsetNames.h: Added.
4205         * platform/KURL.cpp:
4206         (KURL::KURL):
4207         (KURL::decode_string):
4208         (encodeRelativeString):
4209         * platform/KURL.h:
4210         * platform/QString.cpp:
4211         (QString::fromUtf8):
4212         * platform/StreamingTextDecoder.cpp: Added.
4213         (WebCore::StreamingTextDecoder::StreamingTextDecoder):
4214         (WebCore::StreamingTextDecoder::convertLatin1):
4215         (WebCore::StreamingTextDecoder::~StreamingTextDecoder):
4216         (WebCore::StreamingTextDecoder::convertUTF16):
4217         (WebCore::effectiveEncoding):
4218         (WebCore::StreamingTextDecoder::createICUConverter):
4219         (WebCore::unwanted):
4220         (WebCore::StreamingTextDecoder::appendOmittingUnwanted):
4221         (WebCore::StreamingTextDecoder::convertUsingICU):
4222         (WebCore::StreamingTextDecoder::convert):
4223         (WebCore::StreamingTextDecoder::toUnicode):
4224         * platform/StreamingTextDecoder.h: Added.
4225         (WebCore::StreamingTextDecoder::convert):
4226         * platform/TextEncoding.cpp: Added.
4227         (WebCore::TextEncoding::TextEncoding):
4228         (WebCore::TextEncoding::name):
4229         (WebCore::effectiveEncoding):
4230         (WebCore::TextEncoding::backslashAsCurrencySymbol):
4231         (WebCore::TextEncoding::toUnicode):
4232         * platform/TextEncoding.h: Added.
4233         (WebCore::):
4234         (WebCore::TextEncoding::):
4235         (WebCore::TextEncoding::TextEncoding):
4236         (WebCore::TextEncoding::isValid):
4237         (WebCore::TextEncoding::usesVisualOrdering):
4238         (WebCore::TextEncoding::isJapanese):
4239         (WebCore::TextEncoding::encodingID):
4240         (WebCore::TextEncoding::flags):
4241         (WebCore::operator==):
4242         (WebCore::operator!=):
4243         * platform/character-sets.txt: Added.
4244         * platform/mac/ExtraCFEncodings.h: Added.
4245         * platform/mac/QStringMac.mm:
4246         * platform/mac/TextEncodingMac.cpp: Added.
4247         (WebCore::effectiveEncoding):
4248         (WebCore::TextEncoding::fromUnicode):
4249         * platform/mac/can-convert.mm: Added.
4250         * platform/mac/mac-encodings.txt: Added.
4251         * platform/make-charset-table.pl: Added.
4252         * platform/win/win-encodings.txt: Added.
4253         * rendering/render_object.cpp:
4254         (WebCore::RenderObject::backslashAsCurrencySymbol):
4255         * xml/xmlhttprequest.cpp:
4256         (WebCore::XMLHttpRequest::send):
4257         (WebCore::XMLHttpRequest::slotData):
4258
4259 2006-02-27  Darin Adler  <darin@apple.com>
4260
4261         - fix Windows build
4262
4263         * platform/win/TemporaryLinkStubs.cpp: Change KIO::TransferJob to WebCore::TransferJob.
4264
4265 2006-02-26  Darin Adler  <darin@apple.com>
4266
4267         Reviewed by Maciej.
4268
4269         - merged Job and TransferJob into TransferJob and moved it to WebCore namespace
4270         - changed TransferJob to use a TransferJobClient object instead of signals
4271
4272         * ForwardingHeaders/kio/job.h: Changed to point to "KWQKJobClasses.h".
4273         * kwq/KWQKJob.h: Removed.
4274         * kwq/TransferJobClient.h: Added.
4275
4276         * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for file changes.
4277         * WebCore.xcodeproj/project.pbxproj: Ditto.
4278
4279         * dom/xml_tokenizer.cpp: (WebCore::openFunc):
4280         * khtml/xsl/xslt_processorimpl.cpp: (DOM::docLoaderFunc):
4281         Use "new TransferJob" instead of "KIO::get" and "KIO::http_post".
4282
4283         * kwq/KWQKJobClasses.h: Eliminate Job. Add a TransferJobClient* parameter to
4284         TransferJob. Eliminate the deliverAllData parameter to TransferJob constructor.