JavaScriptCore:
[WebKit-https.git] / WebCore / ChangeLog
1 2006-03-03  Geoffrey Garen  <ggaren@apple.com>
2
3         Test case for <rdar://problem/4465598> REGRESSION (TOT): Crash occurs at 
4         http://maps.google.com/?output=html ( KJS::Identifier::add(KJS::UString::Rep*)
5
6         * manual-tests/property-map-save-crash.html: Added.
7
8 2006-03-03  Eric Seidel  <eseidel@apple.com>
9
10         Reviewed by adele.
11
12         Fix clearly bogus cairo elipse drawing code.
13         Make QFontMetrics stubs slightly more sane.
14
15         * platform/cairo/GraphicsContextCairo.cpp:
16         (WebCore::GraphicsContext::drawEllipse):
17         * platform/win/TemporaryLinkStubs.cpp:
18         (QFontMetrics::floatWidth):
19         (QFontMetrics::height):
20         (QFontMetrics::width):
21         (QFontMetrics::isFixedPitch):
22
23 2006-03-03  Darin Adler  <darin@apple.com>
24
25         Reviewed by Eric.
26
27         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7480
28           non-HTML elems w/o children in HTML docs get serialized self-closing
29         - fix problem where the HTML tokenizer would discard the first newline after </pre>
30
31         Test: fast/innerHTML/innerHTML-custom-tag.html
32
33         * editing/markup.cpp: (WebCore::shouldSelfClose): Refined rule so that it doesn't
34         try to do any self-closing tags in HTML documents at all; updated comment.
35
36         * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::parseTag): Added a check
37         of beginTag in the <pre> tag case. We were accidentally discarding a newline after
38         a </pre> tag.
39
40 2006-03-03  Maciej Stachowiak  <mjs@apple.com>
41
42         Rubber stamped by Eric.
43
44         - add new files to build, fix link stubs.
45
46         * WebCore.vcproj/WebCore/WebCore.vcproj:
47         * platform/win/TemporaryLinkStubs.cpp:
48         (KWQKCookieJar::cookieEnabled):
49         (WebCore::TransferJob::retrieveCharset):
50         (WebCore::TransferJob::assembleResponseHeaders):
51         (WebCore::TransferJob::~TransferJob):
52         * platform/win/TransferJobWin.cpp: Added.
53
54 2006-03-03  Maciej Stachowiak  <mjs@apple.com>
55
56         - add file I forgot in my last commit.
57
58         * platform/TransferJobInternal.h: Added.
59         (WebCore::TransferJobInternal::TransferJobInternal):
60
61 2006-03-03  Eric Seidel  <eseidel@apple.com>
62
63         Reviewed by mjs.
64
65         Wire up WidgetWin, CursorWin, ScrollViewWin.
66         Stub out methods for selection and cursors.
67
68         * Viewer/ImageDocument.h:
69         * WebCore.vcproj/WebCore/WebCore.vcproj:
70         * bridge/win/FrameWin.cpp:
71         * khtml/ecma/kjs_proxy.cpp:
72         (WebCore::KJSProxyImpl::initScriptIfNeeded):
73         * platform/IntRect.h:
74         (WebCore::IntRect::IntRect):
75         * platform/Widget.h:
76         * platform/win/CursorWin.cpp:
77         (WebCore::eastResizeCursor):
78         (WebCore::northResizeCursor):
79         (WebCore::northEastResizeCursor):
80         (WebCore::northWestResizeCursor):
81         (WebCore::southResizeCursor):
82         (WebCore::southEastResizeCursor):
83         (WebCore::southWestResizeCursor):
84         (WebCore::westResizeCursor):
85         * platform/win/IntRectWin.cpp:
86         (WebCore::IntRect::IntRect):
87         (WebCore::IntRect::operator RECT):
88         * platform/win/MouseEventWin.cpp:
89         * platform/win/ScrollViewWin.cpp: Added.
90         (WebCore::ScrollView::updateContents):
91         * platform/win/TemporaryLinkStubs.cpp:
92         (QTextEdit::textWithHardLineBreaks):
93         (QLineEdit::setPlaceholderString):
94         (QScrollBar::scroll):
95         (GraphicsContext::beginTransparencyLayer):
96         (Widget::setIsSelected):
97         (QLineEdit::selectedText):
98         (QComboBox::sizeHint):
99         (KWQFileButton::focusPolicy):
100         (QTextEdit::focusPolicy):
101         (QSlider::focusPolicy):
102         (QListBox::focusPolicy):
103         (QLineEdit::focusPolicy):
104         (WebCore::moveCursor):
105         (ScrollView::scrollBy):
106         (KWQKCookieJar::cookieEnabled):
107         (WebCore::TransferJob::TransferJob):
108         (WebCore::screenDepth):
109         (WebCore::usableScreenRect):
110         (FrameWin::getObjectInstanceForWidget):
111         (FrameWin::getEmbedInstanceForWidget):
112         (FrameWin::getAppletInstanceForWidget):
113         (FrameWin::passMouseDownEventToWidget):
114         (FrameWin::issuePasteCommand):
115         (FrameWin::issueTransposeCommand):
116         (QSlider::setFont):
117         (QLineEdit::setFont):
118         (QListBox::setFont):
119         (QFontMetrics::QFontMetrics):
120         (QComboBox::setFont):
121         (QTextEdit::setFont):
122         (QTextEdit::setWritingDirection):
123         (QFontMetrics::setFontDescription):
124         (QFontMetrics::checkSelectionPoint):
125         (FrameWin::addMessageToConsole):
126         (FrameWin::shouldChangeSelection):
127         (ScrollView::resizeContents):
128         (ScrollView::visibleHeight):
129         (ScrollView::visibleWidth):
130         (ScrollView::setContentsPos):
131         (ScrollView::contentsX):
132         (ScrollView::contentsY):
133         (ScrollView::contentsHeight):
134         (ScrollView::contentsWidth):
135         (ScrollView::viewportToContents):
136         * platform/win/WidgetWin.cpp: Added.
137         (WebCore::Widget::Widget):
138         (WebCore::Widget::~Widget):
139         (WebCore::Widget::windowHandle):
140         (WebCore::Widget::setWindowHandle):
141         (WebCore::Widget::setActiveWindow):
142         (WebCore::Widget::frameGeometry):
143         (WebCore::Widget::hasFocus):
144         (WebCore::Widget::setFocus):
145         (WebCore::Widget::clearFocus):
146         (WebCore::Widget::font):
147         (WebCore::Widget::setFont):
148         (WebCore::Widget::setCursor):
149         (WebCore::Widget::show):
150         (WebCore::Widget::hide):
151         (WebCore::Widget::setFrameGeometry):
152         (WebCore::Widget::mapFromGlobal):
153
154 2006-03-03  Maciej Stachowiak  <mjs@apple.com>
155
156         Reviewed by Eric.
157
158         - move TransferJob from kwq to platform, separate platform from non-platform bits
159
160         * ForwardingHeaders/kio/job.h: Removed.
161         * ForwardingHeaders/kio/jobclasses.h: Removed.
162         * WebCore.xcodeproj/project.pbxproj:
163         * bridge/mac/MacFrame.mm:
164         * dom/xml_tokenizer.cpp:
165         * khtml/xsl/xslt_processorimpl.cpp:
166         * kwq/KWQKJobClasses.h: Removed.
167         * kwq/KWQKJobClasses.mm: Removed.
168         * kwq/KWQLoader.mm:
169         * kwq/KWQResourceLoader.mm:
170         * kwq/TransferJobClient.h: Removed.
171         * loader/Cache.cpp:
172         * loader/loader.cpp:
173         * page/Frame.cpp:
174         * platform/TransferJob.cpp: Added.
175         (WebCore::TransferJob::TransferJob):
176         (WebCore::TransferJob::queryMetaData):
177         (WebCore::TransferJob::addMetaData):
178         * platform/TransferJob.h: Added.
179         * platform/TransferJobClient.h: Added.
180         * platform/mac/TransferJobMac.mm: Added.
181         (WebCore::TransferJobInternal::~TransferJobInternal):
182         (WebCore::TransferJob::retrieveCharset):
183         (WebCore::TransferJob::cancel):
184         * xml/xmlhttprequest.cpp:
185
186 2006-03-03  Maciej Stachowiak  <mjs@apple.com>
187
188         Reviewed by Eric.
189
190         - enough link stubs to "display" local copy of WebKit site w/o hitting breakpoint
191
192         * platform/win/TemporaryLinkStubs.cpp:
193         (QLineEdit::setReadOnly):
194         (QTextEdit::setCursorPosition):
195         (QLineEdit::setCursorPosition):
196         (QFontMetrics::width):
197         (GraphicsContext::drawText):
198         (GraphicsContext::drawLineForText):
199
200 2006-03-02  Maciej Stachowiak  <mjs@apple.com>
201
202         Rubber stamped by Eric.
203
204         - remove function that is now gone
205
206         * platform/win/TemporaryLinkStubs.cpp:
207
208 2006-03-02  Maciej Stachowiak  <mjs@apple.com>
209
210         Reviewed by Eric.
211         
212         - move logic to kick off load from KWQLoader function to a TransferJob method
213
214         * kwq/KWQKJobClasses.h:
215         * kwq/KWQKJobClasses.mm:
216         (WebCore::TransferJob::start):
217         * kwq/KWQLoader.h:
218         * kwq/KWQLoader.mm:
219         * loader/loader.cpp:
220         (WebCore::Loader::servePendingRequests):
221         * xml/xmlhttprequest.cpp:
222         (WebCore::XMLHttpRequest::send):
223
224 2006-03-02  Maciej Stachowiak  <mjs@apple.com>
225
226         Rubber stamped by Eric.
227
228         - remove unused loader parameter to KWQServeRequest.
229
230         * kwq/KWQLoader.h:
231         * kwq/KWQLoader.mm:
232         (KWQServeRequest):
233         * loader/loader.cpp:
234         (WebCore::Loader::servePendingRequests):
235         * xml/xmlhttprequest.cpp:
236         (WebCore::XMLHttpRequest::send):
237
238 2006-03-02  Maciej Stachowiak  <mjs@apple.com>
239
240         Reviewed by Eric.
241
242         - remove one of the versions of KWQServeRequest.
243
244         * kwq/KWQLoader.h:
245         * kwq/KWQLoader.mm:
246         * loader/loader.cpp:
247         (WebCore::Loader::servePendingRequests):
248         * platform/win/TemporaryLinkStubs.cpp:
249         (Widget::isEnabled):
250         (KWQServeRequest):
251
252 2006-03-02  Maciej Stachowiak  <mjs@apple.com>
253
254         Rubber stamped by Eric.
255
256         - win32 build fix.
257
258         * platform/win/MouseEventWin.cpp:
259
260 2006-03-02  Justin Garcia  <justin.garcia@apple.com>
261
262         Reviewed by eric
263         
264         <http://bugzilla.opendarwin.org/show_bug.cgi?id=3894>
265         uses of <cmath> should change to <math>
266
267         * ksvg2/svg/SVGAnimateTransformElementImpl.cpp:
268         * ksvg2/svg/SVGAnimationElementImpl.cpp:
269         * ksvg2/svg/SVGHelper.cpp:
270         * ksvg2/svg/SVGLengthImpl.cpp:
271
272 2006-03-02  Andrew Wellington  <proton@wiretapped.net>
273
274         Reviewed by Darin, landed by Beth
275
276         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=3230
277         CSS1: Words with inline elements get extra capital letters
278
279         Does not use UBreakIterator (yet?) for this, but a relatively
280         simple change that fixes our failure in the CSS1 test suite 
281         (5.4.5).
282
283         * platform/StringImpl.cpp:
284         (WebCore::StringImpl::capitalize): Specify if this is a run-on
285         * platform/StringImpl.h:
286         * rendering/RenderContainer.cpp:
287         (WebCore::RenderContainer::addChild): Change to re-run 
288         capitalisation when added into tree as previous text node changes
289         * rendering/RenderText.cpp:
290         (WebCore::RenderText::setText): Check if previous node is text that
291         doesn't end in a space
292
293 2006-03-02  Justin Garcia  <justin.garcia@apple.com>
294
295         Reviewed by sullivan
296         
297         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7542>
298         REGRESSION: (r13028) Scrolling causes incomplete drawing of <ul> bullets
299
300         * rendering/render_list.cpp:
301         (WebCore::RenderListMarker::paint):
302
303 2006-03-02  Eric Seidel  <eseidel@apple.com>
304
305         Reviewed by ggaren.
306
307         Add (partially stubbed out) mouse event handling for Win32.
308
309         * WebCore.vcproj/WebCore/WebCore.vcproj:
310         * platform/IntPoint.h:
311         * platform/MouseEvent.h:
312         * platform/win/IntPointWin.cpp: Added.
313         (WebCore::IntPoint::IntPoint):
314         (WebCore::IntPoint::operator POINT):
315         * platform/win/MouseEventWin.cpp: Added.
316         (WebCore::MouseEvent::MouseEvent):
317         * platform/win/TemporaryLinkStubs.cpp:
318         (QLineEdit::setMaxLength):
319         (ScrollView::scrollBy):
320         (WebCore::Widget::setFocus):
321         (FrameWin::respondToChangedSelection):
322         (FrameWin::runJavaScriptPrompt):
323         (FrameWin::recordFormValue):
324         (FrameWin::registerCommandForRedo):
325         (FrameWin::runJavaScriptAlert):
326         (FrameWin::runJavaScriptConfirm):
327         (FrameWin::openURL):
328         (FrameWin::registerCommandForUndo):
329         (FrameWin::addMessageToConsole):
330         (FrameWin::mimeTypeForFileName):
331         (FrameWin::shouldChangeSelection):
332         (FrameWin::markMisspellingsInAdjacentWords):
333         (FrameWin::markMisspellings):
334         (FrameWin::personalbarVisible):
335         (FrameWin::objectContentType):
336         (FrameWin::createFrame):
337         (FrameWin::createPlugin):
338         (BrowserExtensionWin::setTypedIconURL):
339         (BrowserExtensionWin::getHistoryLength):
340         (BrowserExtensionWin::canRunModal):
341         (BrowserExtensionWin::openURLNotify):
342         (BrowserExtensionWin::createNewWindow):
343         (BrowserExtensionWin::canRunModalNow):
344         (BrowserExtensionWin::runModal):
345         (BrowserExtensionWin::goBackOrForward):
346         (BrowserExtensionWin::setIconURL):
347         (FrameWin::passSubframeEventToSubframe):
348         (FrameWin::lastEventIsMouseUp):
349         (BrowserExtensionWin::BrowserExtensionWin):
350         (Widget::setCursor):
351         (ScrollView::visibleHeight):
352         (ScrollView::visibleWidth):
353         (ScrollView::setContentsPos):
354         (ScrollView::contentsX):
355         (ScrollView::contentsY):
356         (ScrollView::contentsHeight):
357         (ScrollView::contentsWidth):
358         (ScrollView::viewportToContents):
359         (TransferJob::TransferJob):
360         (TransferJob::addMetaData):
361
362 2006-03-02  Justin Garcia  <justin.garcia@apple.com>
363
364         Reviewed by mjs
365         
366         <http://tinymce.moxiecode.com/example_full.php?example=true>
367         TinyMCE: Undo still enabled after a location change, crashes if performed
368         
369         Can't clear undo/redo operations registered by subframes in didOpenURL,
370         because subframes have already been detached.
371
372         * page/Frame.cpp:
373         (WebCore::Frame::didOpenURL):
374         (WebCore::Frame::closeURL):
375
376 2006-03-01  Maciej Stachowiak  <mjs@apple.com>
377
378         Reviewed by Darin.
379
380         - WebCore updates for "Set up new prototype macros and avoid using #if without defined() in JSC"
381         http://bugzilla.opendarwin.org/show_bug.cgi?id=7387
382         
383         Add Platform.h 
384
385         * ForwardingHeaders/kxmlcore/Platform.h: Added.
386         * bridge/mac/WebCoreFrameNamespaces.m:
387         * bridge/mac/WebCoreViewFactory.m:
388         * bridge/mac/WebDashboardRegion.m:
389         * config.h:
390         * platform/Logging.cpp:
391         * platform/mac/ScrollViewMac.mm:
392         (WebCore::ScrollView::addChild):
393         * platform/mac/WebCoreCookieAdapter.m:
394         * platform/mac/WebCoreGraphicsBridge.m:
395         * platform/mac/WebCoreHistory.m:
396         * platform/mac/WebCoreImageRendererFactory.m:
397         * platform/mac/WebCoreKeyGenerator.m:
398         * platform/mac/WebCoreView.m:
399
400 2006-03-02  Eric Seidel  <eseidel@apple.com>
401
402         * WebCore.xcodeproj/project.pbxproj: update GraphicsContext.cpp path to fix build
403
404 2006-03-01  Eric Seidel  <eseidel@apple.com>
405
406         Reviewed by andersca.
407
408         Add first-stab GraphicsContextCairo.
409         Shuffle a few more link stubs around, remove uncessary WebCore::
410
411         * WebCore.vcproj/WebCore/WebCore.vcproj:
412         * platform/GraphicsContext.cpp: Added.
413         * platform/GraphicsContext.h:
414         * platform/cairo/GraphicsContextCairo.cpp:
415         (WebCore::GraphicsContextState::GraphicsContextState):
416         (WebCore::setColor):
417         (WebCore::fillRectSourceOver):
418         (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
419         (WebCore::GraphicsContextPrivate::~GraphicsContextPrivate):
420         (WebCore::GraphicsContext::GraphicsContext):
421         (WebCore::GraphicsContext::~GraphicsContext):
422         (WebCore::GraphicsContext::pen):
423         (WebCore::GraphicsContext::setPen):
424         (WebCore::GraphicsContext::setBrush):
425         (WebCore::GraphicsContext::brush):
426         (WebCore::GraphicsContext::save):
427         (WebCore::GraphicsContext::restore):
428         (WebCore::GraphicsContext::drawRect):
429         (WebCore::GraphicsContext::setColorFromBrush):
430         (WebCore::GraphicsContext::setColorFromPen):
431         (WebCore::adjustLineToPixelBounderies):
432         (WebCore::GraphicsContext::drawLine):
433         (WebCore::GraphicsContext::drawEllipse):
434         (WebCore::GraphicsContext::drawArc):
435         (WebCore::GraphicsContext::drawConvexPolygon):
436         (WebCore::GraphicsContext::drawFloatImage):
437         (WebCore::GraphicsContext::drawTiledImage):
438         (WebCore::GraphicsContext::drawScaledAndTiledImage):
439         (WebCore::GraphicsContext::fillRect):
440         (WebCore::GraphicsContext::addClip):
441         (WebCore::GraphicsContext::setPaintingDisabled):
442         (WebCore::GraphicsContext::paintingDisabled):
443         * platform/cairo/ImageCairo.cpp:
444         * platform/cg/GraphicsContextCG.cpp: Removed.
445         * platform/win/TemporaryLinkStubs.cpp:
446         (QLineEdit::selectAll):
447         (Widget::mapFromGlobal):
448         (QLineEdit::cursorPosition):
449         (QTextEdit::setScrollBarModes):
450         (QTextEdit::selectAll):
451         (QComboBox::focusPolicy):
452         (GraphicsContext::clearShadow):
453         (QTextEdit::setCursorPosition):
454         (GraphicsContext::drawText):
455         (QLineEdit::setLiveSearch):
456         (QComboBox::QComboBox):
457         (Widget::lockDrawingFocus):
458         (QTextEdit::setSelectionRange):
459         (QSlider::QSlider):
460         (ScrollView::scrollYOffset):
461         (QComboBox::sizeHint):
462         (QLineEdit::edited):
463         (QTextEdit::text):
464         (QSlider::value):
465         (WebCore::Widget::setFocus):
466         (WebCore::TransferJob::addMetaData):
467         (FrameWin::respondToChangedContents):
468         (FrameWin::unfocusWindow):
469         (FrameWin::locationbarVisible):
470         (FrameWin::respondToChangedSelection):
471         (FrameWin::clearUndoRedoOperations):
472         (FrameWin::issueRedoCommand):
473         (FrameWin::getObjectInstanceForWidget):
474         (FrameWin::getEmbedInstanceForWidget):
475         (FrameWin::canRedo):
476         (FrameWin::canUndo):
477         (FrameWin::runJavaScriptPrompt):
478         (FrameWin::recordFormValue):
479         (FrameWin::registerCommandForRedo):
480         (FrameWin::runJavaScriptAlert):
481         (FrameWin::runJavaScriptConfirm):
482         (FrameWin::openURL):
483         (FrameWin::saveDocumentState):
484         (FrameWin::print):
485         (FrameWin::getAppletInstanceForWidget):
486         (FrameWin::passMouseDownEventToWidget):
487         (FrameWin::registerCommandForUndo):
488         (FrameWin::issueCutCommand):
489         (FrameWin::issueCopyCommand):
490         (FrameWin::addMessageToConsole):
491         (FrameWin::passWheelEventToChildWidget):
492         (FrameWin::issueUndoCommand):
493         (FrameWin::mimeTypeForFileName):
494         (FrameWin::clearRecordedFormValues):
495         (FrameWin::issuePasteCommand):
496         (FrameWin::shouldChangeSelection):
497         (FrameWin::scheduleClose):
498         (FrameWin::markMisspellingsInAdjacentWords):
499         (FrameWin::markMisspellings):
500         (FrameWin::menubarVisible):
501         (FrameWin::personalbarVisible):
502         (FrameWin::lastEventIsMouseUp):
503         (FrameWin::statusbarVisible):
504         (FrameWin::toolbarVisible):
505         (FrameWin::issueTransposeCommand):
506         (FrameWin::userAgent):
507         (FrameWin::canPaste):
508         (FrameWin::incomingReferrer):
509         (FrameWin::objectContentType):
510         (FrameWin::passSubframeEventToSubframe):
511         (FrameWin::createFrame):
512         (FrameWin::canGoBackOrForward):
513         (FrameWin::issuePasteAndMatchStyleCommand):
514         (FrameWin::createPlugin):
515         (FrameWin::generateFrameName):
516         (QTextEdit::setWritingDirection):
517         (QFontMetrics::checkSelectionPoint):
518         (GraphicsContext::GraphicsContext):
519         (QFontMetrics::isFixedPitch):
520         (FrameWin::restoreDocumentState):
521         (FrameWin::partClearedInBegin):
522         (FrameWin::createEmptyDocument):
523         (FrameWin::overrideMediaType):
524         (FrameWin::setTitle):
525         (FrameWin::handledOnloadEvents):
526         (FrameWin::markedTextRange):
527         (GraphicsContext::font):
528         (GraphicsContext::setFont):
529
530 2006-03-02  Alexey Proskuryakov  <ap@nypop.com>
531
532         Reviewed by Darin.
533
534         Changed an Objective-C forward declaration from "class" to "@class".
535         This doesn't appear to fix any problems, though.
536
537         * platform/StringImpl.h:
538
539 2006-03-01  Justin Garcia  <justin.garcia@apple.com>
540
541         Reviewed by darin
542         
543         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7059>
544         TinyMCE: Select All + delete sends you Back intsead of deleting
545
546         * page/Frame.cpp:
547         (WebCore::Frame::selectFrameElementInParentIfFullySelected):
548
549 2006-03-01  David Harrison  <harrison@apple.com>
550
551         Reviewed by Justin.
552         (missed these in my earlier commit for <rdar://problem/4359736>)
553
554         * bridge/mac/WebCoreFrameBridge.h:
555         * bridge/mac/WebCoreFrameBridge.mm:
556         (-[WebCoreFrameBridge canIncreaseSelectionListLevel]):
557         (-[WebCoreFrameBridge canDecreaseSelectionListLevel]):
558         (-[WebCoreFrameBridge increaseSelectionListLevel]):
559         (-[WebCoreFrameBridge decreaseSelectionListLevel]):
560
561 2006-03-01  Eric Seidel  <eseidel@apple.com>
562
563         Reviewed by mjs.
564
565         Fix win32 build, add IntRectWin and GraphicsContextCairo stub.
566
567         * Viewer/ImageDocument.cpp:
568         * Viewer/ImageMainFrame.cpp:
569         * WebCore.vcproj/WebCore/WebCore.vcproj:
570         * platform/IntRect.h:
571         * platform/cairo/GraphicsContextCairo.cpp: Added.
572         * platform/win/TemporaryLinkStubs.cpp:
573         (GraphicsContext::drawLineForText):
574         (WebCore::GraphicsContext::fillRect):
575         (WebCore::TransferJob::TransferJob):
576         (GraphicsContext::GraphicsContext):
577         (WebCore::GraphicsContext::~GraphicsContext):
578
579 2006-02-23  David Harrison  <harrison@apple.com>
580
581         Reviewed by Justin.
582
583         <rdar://problem/4359736> Support outlining ability with lists
584
585         Added Mail SPI for list level changes.  It is SPI because it is not complete support
586         for outlining.  See <rdar://problem/4457070> "API for html lists as note outlines".
587         Additional support is to end a list when return is typed on empty list item.
588
589         * WebCore.vcproj/WebCore/WebCore.vcproj:
590         * WebCore.xcodeproj/project.pbxproj:
591         Added ModifySelectionListLevelCommand.cpp and ModifySelectionListLevelCommand.h
592         
593         * bridge/mac/WebCoreFrameBridge.h:
594         * bridge/mac/WebCoreFrameBridge.mm:
595         (-[WebCoreFrameBridge canIncreaseSelectionListLevel]):
596         (-[WebCoreFrameBridge canDecreaseSelectionListLevel]):
597         (-[WebCoreFrameBridge increaseSelectionListLevel]):
598         (-[WebCoreFrameBridge decreaseSelectionListLevel]):
599         Supply list level calls in the bridge.
600         
601         * editing/InsertParagraphSeparatorCommand.cpp:
602         (WebCore::createListItemElement):
603         New.  Creates an li.
604         
605         (WebCore::InsertParagraphSeparatorCommand::doApply):
606         - slight logic cleanup
607         - on empty list item, end the list
608         
609         * editing/ModifySelectionListLevelCommand.cpp: Added.
610         (WebCore::ModifySelectionListLevelCommand::ModifySelectionListLevelCommand):
611         (WebCore::ModifySelectionListLevelCommand::preservesTypingStyle):
612         (WebCore::ModifySelectionListLevelCommand::doApply):
613         (WebCore::ModifySelectionListLevelCommand::canIncreaseSelectionListLevel):
614         (WebCore::ModifySelectionListLevelCommand::canDecreaseSelectionListLevel):
615         (WebCore::ModifySelectionListLevelCommand::increaseSelectionListLevel):
616         (WebCore::ModifySelectionListLevelCommand::decreaseSelectionListLevel):
617         (WebCore::modifySelectionListLevel):
618         (WebCore::getStartEndListChildren):
619         (WebCore::canIncreaseListLevel):
620         (WebCore::canDecreaseListLevel):
621         (WebCore::ModifySelectionListLevelCommand::insertSiblingNodeRangeBefore):
622         (WebCore::ModifySelectionListLevelCommand::insertSiblingNodeRangeAfter):
623         (WebCore::ModifySelectionListLevelCommand::appendSiblingNodeRange):
624         (WebCore::ModifySelectionListLevelCommand::increaseListLevel):
625         (WebCore::ModifySelectionListLevelCommand::decreaseListLevel):
626         * editing/ModifySelectionListLevelCommand.h: Added.
627         New editing command for adjusting the list level.
628         
629         * editing/ReplaceSelectionCommand.cpp:
630         (WebCore::ReplaceSelectionCommand::doApply):
631         Slight logic cleanup
632
633         * editing/htmlediting.cpp:
634         (WebCore::isListElement):
635         (WebCore::enclosingListChild):
636         New helpers.
637         
638         (WebCore::isTableElement):
639         Allow caller to pass 0... return false in that case.
640         
641         * editing/htmlediting.h:
642         New helpers.
643         
644         * rendering/RenderContainer.cpp:
645         (WebCore::updateListMarkerNumbers):
646         Allow for list children that are not li nodes.  Ignore and continue rather than stopping.
647         
648         (WebCore::RenderContainer::addChild):
649         Allow for nil beforeChild, meaning "add at end".
650         
651 2006-03-01  Eric Seidel  <eseidel@apple.com>
652
653         Reviewed by justing.
654
655         Update ESelectionGranulartiy enum to use newer CamelCase styling.
656
657         * bridge/mac/WebCoreFrameBridge.mm:
658         (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
659         * editing/Selection.cpp:
660         (WebCore::Selection::Selection):
661         (WebCore::Selection::validate):
662         * editing/SelectionController.cpp:
663         (WebCore::SelectionController::modifyExtendingRightForward):
664         (WebCore::SelectionController::modifyMovingRightForward):
665         (WebCore::SelectionController::modifyExtendingLeftBackward):
666         (WebCore::SelectionController::modifyMovingLeftBackward):
667         (WebCore::SelectionController::modify):
668         * editing/TypingCommand.cpp:
669         (WebCore::TypingCommand::deleteKeyPressed):
670         (WebCore::TypingCommand::forwardDeleteKeyPressed):
671         * editing/jsediting.cpp:
672         * editing/text_granularity.h:
673         (WebCore::):
674         * page/Frame.cpp:
675         (WebCore::Frame::selectClosestWordFromMouseEvent):
676         (WebCore::Frame::handleMousePressEventTripleClick):
677         (WebCore::Frame::handleMousePressEventSingleClick):
678         (WebCore::Frame::handleMouseMoveEventSelection):
679
680 2006-03-01  Alexander Kellett  <lypanov@kde.org>
681
682         Reviewed by Maciej.
683
684         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=5966
685
686         Fixes already existing test:
687           svg/W3C-SVG-1.1/coords-viewattr-02-b.svg
688
689         * kcanvas/RenderSVGImage.cpp:
690         (WebCore::RenderSVGImage::adjustRectsForAspectRatio):
691         (WebCore::RenderSVGImage::paint):
692         * kcanvas/RenderSVGImage.h:
693
694 2006-03-01  Alexey Proskuryakov  <ap@nypop.com>
695
696         Reviewed by Darin.
697
698         - http://bugzilla.opendarwin.org/show_bug.cgi?id=3812
699           XMLHttpRequest: PUT, DELETE, HEAD and all other methods but POST actually do a GET.
700
701         HEAD is currently unimplemented because of what seems to be a bug in NSURLConnection,
702         and does a GET instead.
703
704         * kwq/KWQKJobClasses.h: Add a method parameter to TransferJob.
705         * kwq/KWQKJobClasses.mm:
706         (WebCore::TransferJobPrivate::TransferJobPrivate):
707         (WebCore::TransferJob::TransferJob):
708         (WebCore::TransferJob::method):
709         * bridge/mac/WebCoreFrameBridge.h: URL loading functions now take a method parameter.
710         * dom/xml_tokenizer.cpp:
711         (WebCore::openFunc):
712         * khtml/xsl/xslt_processorimpl.cpp:
713         (DOM::docLoaderFunc):
714         * kwq/KWQLoader.mm:
715         (KWQServeRequest):
716         (KWQServeSynchronousRequest):
717         * loader/loader.cpp:
718         (WebCore::Loader::servePendingRequests):
719         * page/Frame.cpp:
720         (WebCore::Frame::didOpenURL):
721         * xml/xmlhttprequest.cpp:
722         (WebCore::XMLHttpRequest::send): Honor the method passed in open().
723         * khtml/ecma/JSXMLHttpRequest.cpp:
724         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Don't serialize null as "null".
725
726 2006-03-01  Timothy Hatcher  <timothy@apple.com>
727
728         Reviewed by Darin.
729         
730         http://bugzilla.opendarwin.org/show_bug.cgi?id=7450
731         elementAtPoint is expensive and should return a smart dictionary
732         
733         <rdar://problem/2952761> moving the mouse around eats more CPU than I would expect (7450)
734
735         Support for WebKit. This removes the old elementAtPoint: on the bridge.
736         WebKit now uses the bridge method getInnerNonSharedNode:innerNode:URLElement:atPoint:
737
738         * WebCore.exp: removes the WebCore* dictionary keys
739         * bindings/objc/DOM.mm:
740         (-[DOMElement image]): new method to get an NSImage if the element has an image renderer
741         * bindings/objc/DOMHTML.mm:
742         (-[DOMHTMLElement titleDisplayString]): new method that returns the title after doing the backslash as currency symbol conversion
743         (-[DOMHTMLInputElement altDisplayString]): ditto for alt
744         (-[DOMHTMLImageElement altDisplayString]): ditto
745         (-[DOMHTMLAppletElement altDisplayString]): ditto
746         (-[DOMHTMLAreaElement altDisplayString]): ditto
747         (-[DOMHTMLAnchorElement absoluteLinkURL]): new method to get the absolute NSURL
748         (-[DOMHTMLAreaElement absoluteLinkURL]): ditto
749         (-[DOMHTMLLinkElement absoluteLinkURL]): ditto
750         (-[DOMHTMLInputElement absoluteImageURL]): new method to get the absolute image location as an NSURL
751         (-[DOMHTMLImageElement absoluteImageURL]): ditto
752         (-[DOMHTMLObjectElement absoluteImageURL]): ditto
753         * bindings/objc/DOMPrivate.h:
754         * bridge/mac/WebCoreFrameBridge.h:
755         * bridge/mac/WebCoreFrameBridge.mm:
756         (-[WebCoreFrameBridge getInnerNonSharedNode:innerNode:URLElement:atPoint:]):
757         (-[WebCoreFrameBridge isPointInsideSelection:]):
758         * dom/DocumentImpl.cpp:
759         (WebCore::DocumentImpl::prepareMouseEvent):
760         (WebCore::DocumentImpl::backslashAsCurrencySymbol):
761         * dom/DocumentImpl.h:
762         * rendering/render_layer.cpp:
763         (WebCore::RenderLayer::hitTest):
764         * rendering/render_object.h:
765         (WebCore::RenderObject::NodeInfo::URLElement):
766         (WebCore::RenderObject::NodeInfo::setURLElement):
767
768 2006-03-01  Mitz Pettel  <opendarwin.org@mitzpettel.com>
769
770         Test: fast/css/hover-subselector.html
771
772         Reviewed by Hyatt.
773
774         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7327
775           REGRESSION (r12869): :hover subselector does not work in quirks mode
776
777         * css/cssstyleselector.h:
778         * css/cssstyleselector.cpp:
779         (WebCore::CSSStyleSelector::checkSelector): Pass flag to indicate sub-selector.
780         (WebCore::CSSStyleSelector::checkOneSelector): Apply the *:hover and *:active quirks only
781         when there are no sub-selectors.
782
783 2006-03-01  Maciej Stachowiak  <mjs@apple.com>
784
785         Rubber stamped by Hyatt.
786
787         - fix win32 build (and make dumprendertree run)
788
789         * kwq/KWQComboBox.h:
790         * platform/win/TemporaryLinkStubs.cpp:
791         (QTextEdit::selectionEnd):
792         (Widget::~Widget):
793         (GraphicsContext::beginTransparencyLayer):
794         (QComboBox::populate):
795         (GraphicsContext::drawConvexPolygon):
796         (QFontMetrics::selectionRectForText):
797         (GraphicsContext::setShadow):
798         (GraphicsContext::clearFocusRing):
799         (GraphicsContext::drawImageInRect):
800         (KWQFileButton::setFilename):
801         (KWQFileButton::focusPolicy):
802         (KWQFileButton::frameGeometry):
803         (QSlider::focusPolicy):
804         (WebCore::GraphicsContext::font):
805         (QTextEdit::setWritingDirection):
806         (QFontMetrics::checkSelectionPoint):
807         (QFontMetrics::isFixedPitch):
808         (WebCore::TransferJob::addMetaData):
809
810 2006-02-28  Darin Adler  <darin@apple.com>
811
812         Reviewed by Eric.
813
814         - http://bugzilla.opendarwin.org/show_bug.cgi?id=7444
815           move QPainter to platform directory and name it GraphicsContext
816
817         * platform/GraphicsContext.h: Added.
818         * platform/TextDirection.h: Added.
819         * platform/cg/GraphicsContextCG.cpp: Added.
820         * platform/mac/GraphicsContextMac.mm: Added.
821
822         * kwq/KWQPainter.h: Removed.
823         * kwq/KWQPainter.mm: Removed.
824         * ForwardingHeaders/qpainter.h: Removed.
825
826         * WebCore.xcodeproj/project.pbxproj: Updated for moved files.
827         * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for moved files.
828         * platform/win/TemporaryLinkStubs.cpp: Updated.
829
830         * bridge/mac/MacFrame.mm: (WebCore::MacFrame::setDisplaysWithFocusAttributes):
831         * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge drawRect:]):
832         * editing/SelectionController.h:
833         * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
834         * kcanvas/KCanvasResources.cpp: (WebCore::KCanvasMarker::draw):
835         * khtml/ecma/kjs_html.cpp:
836         (KJS::KJS::Context2DFunction::callAsFunction):
837         (KJS::Context2D::putValueProperty):
838         (KJS::drawPattern):
839         * page/Frame.h:
840         * page/Frame.cpp:
841         (WebCore::Frame::paintCaret):
842         (WebCore::Frame::paintDragCaret):
843         (WebCore::Frame::paint):
844         (WebCore::Frame::adjustPageHeight):
845         * page/FrameView.h:
846         * platform/Font.h:
847         * platform/Font.cpp:
848         (WebCore::Font::selectionRectForText):
849         (WebCore::Font::drawHighlightForText):
850         (WebCore::Font::drawText):
851         * platform/Widget.h:
852         * platform/mac/WidgetMac.mm: (WebCore::Widget::paint):
853         * rendering/InlineTextBox.h:
854         * rendering/InlineTextBox.cpp:
855         (WebCore::InlineTextBox::paint):
856         (WebCore::InlineTextBox::paintSelection):
857         (WebCore::InlineTextBox::paintMarkedTextBackground):
858         (WebCore::InlineTextBox::paintDecoration):
859         (WebCore::InlineTextBox::paintSpellingMarker):
860         (WebCore::InlineTextBox::paintTextMatchMarker):
861         (WebCore::InlineTextBox::paintAllMarkersOfType):
862         (WebCore::InlineTextBox::paintMarkedTextUnderline):
863         (WebCore::InlineTextBox::offsetForPosition):
864         * rendering/RenderTableCell.cpp:
865         (WebCore::outlineBox):
866         (WebCore::RenderTableCell::paintCollapsedBorder):
867         (WebCore::RenderTableCell::paintBoxDecorations):
868         * rendering/RenderTableCell.h:
869         * rendering/render_box.cpp:
870         (WebCore::RenderBox::paintBackgrounds):
871         (WebCore::RenderBox::paintBackground):
872         (WebCore::RenderBox::paintBackgroundExtended):
873         (WebCore::RenderBox::outlineBox):
874         * rendering/render_box.h:
875         * rendering/render_button.cpp:
876         (WebCore::RenderButton::RenderButton):
877         (WebCore::RenderButton::paintObject):
878         * rendering/render_button.h:
879         (WebCore::RenderButton::removeLeftoverAnonymousBoxes):
880         * rendering/render_canvas.cpp:
881         * rendering/render_canvasimage.cpp:
882         (WebCore::RenderCanvasImage::paint):
883         * rendering/render_flow.cpp:
884         (WebCore::RenderFlow::addFocusRingRects):
885         (WebCore::RenderFlow::paintFocusRing):
886         (WebCore::RenderFlow::paintOutlines):
887         (WebCore::RenderFlow::paintOutlineForLine):
888         * rendering/render_flow.h:
889         * rendering/render_form.cpp:
890         (WebCore::RenderLineEdit::setStyle):
891         (WebCore::RenderFieldset::paintBorderMinusLegend):
892         (WebCore::RenderSelect::setWidgetWritingDirection):
893         (WebCore::RenderTextArea::setStyle):
894         * rendering/render_form.h:
895         (WebCore::RenderFieldset::renderName):
896         * rendering/render_frames.cpp:
897         (WebCore::RenderFrameSet::userResize):
898         * rendering/render_image.cpp:
899         (WebCore::RenderImage::paint):
900         * rendering/render_layer.cpp:
901         (WebCore::RenderLayer::beginTransparencyLayers):
902         (WebCore::RenderLayer::paintScrollbars):
903         (WebCore::RenderLayer::paint):
904         (WebCore::setClip):
905         (WebCore::restoreClip):
906         (WebCore::RenderLayer::paintLayer):
907         (WebCore::Marquee::direction):
908         * rendering/render_layer.h:
909         * rendering/render_line.cpp:
910         (WebCore::InlineFlowBox::paintBackgrounds):
911         (WebCore::InlineFlowBox::paintBackground):
912         (WebCore::InlineFlowBox::paintBackgroundAndBorder):
913         (WebCore::InlineFlowBox::paintDecorations):
914         (WebCore::EllipsisBox::paint):
915         * rendering/render_line.h:
916         * rendering/render_list.cpp:
917         (WebCore::RenderListMarker::paint):
918         * rendering/render_object.cpp:
919         (WebCore::RenderObject::drawBorder):
920         (WebCore::RenderObject::paintBorderImage):
921         (WebCore::RenderObject::paintBorder):
922         (WebCore::RenderObject::addFocusRingRects):
923         (WebCore::RenderObject::paintOutline):
924         (WebCore::RenderObject::selectionColor):
925         * rendering/render_object.h:
926         (WebCore::RenderObject::element):
927         (WebCore::RenderObject::document):
928         (WebCore::RenderObject::setNode):
929         (WebCore::RenderObject::node):
930         (WebCore::RenderObject::PaintInfo::PaintInfo):
931         (WebCore::RenderObject::paintBoxDecorations):
932         (WebCore::RenderObject::paintBackgroundExtended):
933         (WebCore::RenderObject::printBoxDecorations):
934         * rendering/render_replaced.cpp: (WebCore::RenderReplaced::selectionColor):
935         * rendering/render_replaced.h:
936         Updated to use GraphicsContext instead of QPainter.
937
938         * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty):
939         * kwq/KWQComboBox.h:
940         * kwq/KWQComboBox.mm: (QComboBox::setWritingDirection):
941         * kwq/KWQLineEdit.h:
942         * kwq/KWQLineEdit.mm: (QLineEdit::setWritingDirection):
943         * kwq/KWQListBox.h:
944         * kwq/KWQListBox.mm: (QListBox::setWritingDirection):
945         * kwq/KWQTextEdit.h:
946         * kwq/KWQTextEdit.mm: (QTextEdit::setWritingDirection):
947         * rendering/bidi.cpp:
948         (khtml::bidiNext):
949         (khtml::bidiFirst):
950         Updated to use TextDirection instead of QPainter::TextDirection and EDirection.
951
952         * kcanvas/device/KRenderingDevice.h: Added renderingDevice here to
953         replace QPainter::renderingDevice for now.
954
955         * khtml/ecma/kjs_html.h: Fixed comments to mention GraphicsContext.
956
957         * khtml/html/html_imageimpl.h:
958         * page/FrameView.cpp:
959         * rendering/RenderBlock.cpp:
960         Added include needed since I reduced includes elsewhere.
961
962         * kwq/KWQFontMetrics.h:
963         * kwq/KWQFontMetrics.mm: (QFontMetrics::checkSelectionPoint):
964         Changed QChar* to be const QChar*.
965
966         * platform/FontDescription.h: Added include that was missing.
967         * rendering/render_theme.cpp: Ditto.
968
969         * platform/Image.h: Removed unnecessary forward declaration of QPainter.
970
971         * rendering/RenderText.h: Clean up types, use const.
972
973         * rendering/render_style.h: Removed EDirection and replaced it with TextDirection.
974
975         * kcanvas/KCanvasCreator.cpp:
976         (WebCore::KCanvasCreator::createRoundedRectangle):
977         (WebCore::KCanvasCreator::createRectangle):
978         (WebCore::KCanvasCreator::createEllipse):
979         (WebCore::KCanvasCreator::createLine):
980         * kcanvas/KCanvasPath.cpp: (WebCore::operator<<):
981         * kcanvas/KCanvasTreeDebug.cpp: (WebCore::operator<<):
982         * kcanvas/RenderForeignObject.cpp: (WebCore::RenderForeignObject::paint):
983         * kcanvas/RenderPath.cpp: (WebCore::RenderPath::paint):
984         * kcanvas/RenderSVGImage.cpp:
985         (WebCore::RenderSVGImage::paint):
986         (WebCore::RenderSVGImage::translateForAttributes):
987         * kcanvas/RenderSVGText.cpp:
988         (WebCore::RenderSVGText::paint):
989         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
990         (WebCore::KCanvasFilterQuartz::prepareFilter):
991         (WebCore::KCanvasFilterQuartz::applyFilter):
992         * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
993         (WebCore::KCanvasMaskerQuartz::applyMask):
994         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
995         (WebCore::KCanvasContainerQuartz::paint):
996         (WebCore::KCanvasClipperQuartz::applyClip):
997         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
998         (WebCore::KRenderingDeviceQuartz::pushContext):
999         (WebCore::KRenderingDeviceQuartz::popContext):
1000         (WebCore::renderingDevice):
1001         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
1002         (WebCore::KRenderingPaintServerGradientQuartz::setup):
1003         (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
1004         (WebCore::KRenderingPaintServerGradientQuartz::teardown):
1005         * ksvg2/misc/KCanvasRenderingStyle.cpp: (WebCore::sharedSolidPaintServer):
1006         * ksvg2/svg/SVGAElementImpl.cpp: (SVGAElementImpl::createRenderer):
1007         * ksvg2/svg/SVGClipPathElementImpl.cpp: (SVGClipPathElementImpl::canvasResource):
1008         * ksvg2/svg/SVGFEBlendElementImpl.cpp: (SVGFEBlendElementImpl::filterEffect):
1009         * ksvg2/svg/SVGFEColorMatrixElementImpl.cpp: (SVGFEColorMatrixElementImpl::filterEffect):
1010         * ksvg2/svg/SVGFEComponentTransferElementImpl.cpp: (SVGFEComponentTransferElementImpl::filterEffect):
1011         * ksvg2/svg/SVGFECompositeElementImpl.cpp: (SVGFECompositeElementImpl::filterEffect):
1012         * ksvg2/svg/SVGFEDiffuseLightingElementImpl.cpp: (WebCore::SVGFEDiffuseLightingElementImpl::filterEffect):
1013         * ksvg2/svg/SVGFEDisplacementMapElementImpl.cpp: (SVGFEDisplacementMapElementImpl::filterEffect):
1014         * ksvg2/svg/SVGFEFloodElementImpl.cpp: (SVGFEFloodElementImpl::filterEffect):
1015         * ksvg2/svg/SVGFEGaussianBlurElementImpl.cpp: (SVGFEGaussianBlurElementImpl::filterEffect):
1016         * ksvg2/svg/SVGFEImageElementImpl.cpp: (SVGFEImageElementImpl::filterEffect):
1017         * ksvg2/svg/SVGFEMergeElementImpl.cpp: (SVGFEMergeElementImpl::filterEffect):
1018         * ksvg2/svg/SVGFEOffsetElementImpl.cpp: (SVGFEOffsetElementImpl::filterEffect):
1019         * ksvg2/svg/SVGFESpecularLightingElementImpl.cpp: (SVGFESpecularLightingElementImpl::filterEffect):
1020         * ksvg2/svg/SVGFETileElementImpl.cpp: (SVGFETileElementImpl::filterEffect):
1021         * ksvg2/svg/SVGFETurbulenceElementImpl.cpp: (SVGFETurbulenceElementImpl::filterEffect):
1022         * ksvg2/svg/SVGFilterElementImpl.cpp: (SVGFilterElementImpl::canvasResource):
1023         * ksvg2/svg/SVGGElementImpl.cpp: (SVGGElementImpl::createRenderer):
1024         * ksvg2/svg/SVGGradientElementImpl.cpp: (SVGGradientElementImpl::canvasResource):
1025         * ksvg2/svg/SVGMarkerElementImpl.cpp:
1026         (WebCore::SVGMarkerElementImpl::canvasResource):
1027         (WebCore::SVGMarkerElementImpl::createRenderer):
1028         * ksvg2/svg/SVGMaskElementImpl.cpp:
1029         (WebCore::SVGMaskElementImpl::drawMaskerContent):
1030         (WebCore::SVGMaskElementImpl::createRenderer):
1031         (WebCore::SVGMaskElementImpl::canvasResource):
1032         * ksvg2/svg/SVGPathElementImpl.cpp: (WebCore::SVGPathElementImpl::toPathData):
1033         * ksvg2/svg/SVGPatternElementImpl.cpp:
1034         (WebCore::SVGPatternElementImpl::drawPatternContentIntoTile):
1035         (WebCore::SVGPatternElementImpl::createRenderer):
1036         (WebCore::SVGPatternElementImpl::canvasResource):
1037         * ksvg2/svg/SVGPolygonElementImpl.cpp: (SVGPolygonElementImpl::toPathData):
1038         * ksvg2/svg/SVGPolylineElementImpl.cpp: (SVGPolylineElementImpl::toPathData):
1039         * ksvg2/svg/SVGSVGElementImpl.cpp: (WebCore::SVGSVGElementImpl::createRenderer):
1040         * ksvg2/svg/SVGStyledElementImpl.cpp: (WebCore::SVGStyledElementImpl::createRenderer):
1041         * ksvg2/svg/SVGSwitchElementImpl.cpp: (SVGSwitchElementImpl::createRenderer):
1042         * ksvg2/svg/SVGUseElementImpl.cpp: (SVGUseElementImpl::createRenderer):
1043         Updated to use renderingDevice instead of QPainter::renderingDevice.
1044
1045 2006-02-28  Darin Adler  <darin@apple.com>
1046
1047         - fixed part of the reason the build is broken
1048
1049         * WebCore.xcodeproj/project.pbxproj: Updated project file.
1050
1051 2006-02-28  Darin Adler  <darin@apple.com>
1052
1053         Rubber-stamped by Hyatt.
1054
1055         - moved the WebCoreXXX files from kwq to appropriate directories
1056
1057         No changes to the contents of the files.
1058
1059         * WebCore.xcodeproj/project.pbxproj: Updated project file.
1060         * bridge/mac/WebCoreCache.h: Added.
1061         * bridge/mac/WebCoreCache.mm: Added.
1062         * bridge/mac/WebCoreEncodings.h: Added.
1063         * bridge/mac/WebCoreEncodings.mm: Added.
1064         * bridge/mac/WebCoreFrameNamespaces.h: Added.
1065         * bridge/mac/WebCoreFrameNamespaces.m: Added.
1066         * bridge/mac/WebCoreFrameView.h: Added.
1067         * bridge/mac/WebCoreJavaScript.h: Added.
1068         * bridge/mac/WebCoreJavaScript.mm: Added.
1069         * bridge/mac/WebCoreKeyboardAccess.h: Added.
1070         * bridge/mac/WebCoreResourceLoader.h: Added.
1071         * bridge/mac/WebCoreScriptDebugger.h: Added.
1072         * bridge/mac/WebCoreScriptDebugger.mm: Added.
1073         * bridge/mac/WebCoreSettings.h: Added.
1074         * bridge/mac/WebCoreSettings.mm: Added.
1075         * bridge/mac/WebCoreTextDecoder.h: Added.
1076         * bridge/mac/WebCoreTextDecoder.mm: Added.
1077         * bridge/mac/WebCoreViewFactory.h: Added.
1078         * bridge/mac/WebCoreViewFactory.m: Added.
1079         * bridge/mac/WebDashboardRegion.h: Added.
1080         * bridge/mac/WebDashboardRegion.m: Added.
1081         * kwq/WebCoreCache.h: Removed.
1082         * kwq/WebCoreCache.mm: Removed.
1083         * kwq/WebCoreCookieAdapter.h: Removed.
1084         * kwq/WebCoreCookieAdapter.m: Removed.
1085         * kwq/WebCoreEncodings.h: Removed.
1086         * kwq/WebCoreEncodings.mm: Removed.
1087         * kwq/WebCoreFrameNamespaces.h: Removed.
1088         * kwq/WebCoreFrameNamespaces.m: Removed.
1089         * kwq/WebCoreFrameView.h: Removed.
1090         * kwq/WebCoreGraphicsBridge.h: Removed.
1091         * kwq/WebCoreGraphicsBridge.m: Removed.
1092         * kwq/WebCoreHistory.h: Removed.
1093         * kwq/WebCoreHistory.m: Removed.
1094         * kwq/WebCoreImageRenderer.h: Removed.
1095         * kwq/WebCoreImageRendererFactory.h: Removed.
1096         * kwq/WebCoreImageRendererFactory.m: Removed.
1097         * kwq/WebCoreJavaScript.h: Removed.
1098         * kwq/WebCoreJavaScript.mm: Removed.
1099         * kwq/WebCoreKeyGenerator.h: Removed.
1100         * kwq/WebCoreKeyGenerator.m: Removed.
1101         * kwq/WebCoreKeyboardAccess.h: Removed.
1102         * kwq/WebCoreResourceLoader.h: Removed.
1103         * kwq/WebCoreScriptDebugger.h: Removed.
1104         * kwq/WebCoreScriptDebugger.mm: Removed.
1105         * kwq/WebCoreSettings.h: Removed.
1106         * kwq/WebCoreSettings.mm: Removed.
1107         * kwq/WebCoreTextDecoder.h: Removed.
1108         * kwq/WebCoreTextDecoder.mm: Removed.
1109         * kwq/WebCoreTextRenderer.h: Removed.
1110         * kwq/WebCoreTextRendererFactory.h: Removed.
1111         * kwq/WebCoreTextRendererFactory.mm: Removed.
1112         * kwq/WebCoreView.h: Removed.
1113         * kwq/WebCoreView.m: Removed.
1114         * kwq/WebCoreViewFactory.h: Removed.
1115         * kwq/WebCoreViewFactory.m: Removed.
1116         * kwq/WebDashboardRegion.h: Removed.
1117         * kwq/WebDashboardRegion.m: Removed.
1118         * platform/mac/WebCoreCookieAdapter.h: Added.
1119         * platform/mac/WebCoreCookieAdapter.m: Added.
1120         * platform/mac/WebCoreGraphicsBridge.h: Added.
1121         * platform/mac/WebCoreGraphicsBridge.m: Added.
1122         * platform/mac/WebCoreHistory.h: Added.
1123         * platform/mac/WebCoreHistory.m: Added.
1124         * platform/mac/WebCoreImageRenderer.h: Added.
1125         * platform/mac/WebCoreImageRendererFactory.h: Added.
1126         * platform/mac/WebCoreImageRendererFactory.m: Added.
1127         * platform/mac/WebCoreKeyGenerator.h: Added.
1128         * platform/mac/WebCoreKeyGenerator.m: Added.
1129         * platform/mac/WebCoreTextRenderer.h: Added.
1130         * platform/mac/WebCoreTextRendererFactory.h: Added.
1131         * platform/mac/WebCoreTextRendererFactory.mm: Added.
1132         * platform/mac/WebCoreView.h: Added.
1133         * platform/mac/WebCoreView.m: Added.
1134
1135 2006-02-28  David Hyatt  <hyatt@apple.com>
1136
1137         Fold QFont into Font and eliminate QFont completely.
1138
1139         Reviewed by eric
1140
1141         * ForwardingHeaders/qfont.h: Removed.
1142         * WebCore.xcodeproj/project.pbxproj:
1143         * bindings/objc/DOM.mm:
1144         (-[DOMElement _font]):
1145         * bridge/mac/MacFrame.mm:
1146         (WebCore::MacFrame::attributedString):
1147         (WebCore::MacFrame::fontForSelection):
1148         (WebCore::MacFrame::fontAttributesForSelectionStart):
1149         * bridge/mac/WebCoreFrameBridge.mm:
1150         * css/css_computedstyle.cpp:
1151         (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
1152         * css/cssstyleselector.cpp:
1153         (WebCore::CSSStyleSelector::applyProperty):
1154         * dom/DocumentImpl.cpp:
1155         (WebCore::DocumentImpl::recalcStyle):
1156         * ksvg2/svg/SVGLengthImpl.cpp:
1157         (SVGLengthImpl::updateValue):
1158         * kwq/KWQAccObject.mm:
1159         (AXAttributeStringSetStyle):
1160         * kwq/KWQComboBox.h:
1161         * kwq/KWQComboBox.mm:
1162         (QComboBox::setFont):
1163         * kwq/KWQFont.h: Removed.
1164         * kwq/KWQFont.mm: Removed.
1165         * kwq/KWQFontMetrics.h:
1166         * kwq/KWQFontMetrics.mm:
1167         (QFontMetricsPrivate::QFontMetricsPrivate):
1168         (QFontMetricsPrivate::~QFontMetricsPrivate):
1169         (QFontMetricsPrivate::getRenderer):
1170         (QFontMetricsPrivate::fontDescription):
1171         (QFontMetricsPrivate::setFontDescription):
1172         (QFontMetricsPrivate::getWebCoreFont):
1173         (QFontMetricsPrivate::isFixedPitch):
1174         (QFontMetricsPrivate::determinePitch):
1175         (QFontMetrics::QFontMetrics):
1176         (QFontMetrics::setFontDescription):
1177         (QFontMetrics::width):
1178         (QFontMetrics::floatWidth):
1179         (QFontMetrics::selectionRectForText):
1180         (QFontMetrics::checkSelectionPoint):
1181         (QFontMetrics::getWebCoreFont):
1182         (QFontMetrics::isFixedPitch):
1183         * kwq/KWQKHTMLSettings.h:
1184         * kwq/KWQLineEdit.h:
1185         * kwq/KWQLineEdit.mm:
1186         (-[NSSearchField _addStringToRecentSearches:]):
1187         (QLineEdit::setFont):
1188         * kwq/KWQListBox.h:
1189         * kwq/KWQListBox.mm:
1190         (QListBox::sizeForNumberOfLines):
1191         (QListBox::setFont):
1192         (-[KWQTableView drawRow:clipRect:]):
1193         * kwq/KWQPainter.h:
1194         * kwq/KWQPainter.mm:
1195         (WebCore::QPainter::font):
1196         (WebCore::QPainter::setFont):
1197         (WebCore::QPainter::fontMetrics):
1198         (WebCore::QPainter::_updateRenderer):
1199         (WebCore::QPainter::drawText):
1200         (WebCore::QPainter::drawHighlightForText):
1201         * kwq/KWQSlider.h:
1202         * kwq/KWQSlider.mm:
1203         (QSlider::setFont):
1204         * kwq/KWQTextEdit.h:
1205         * kwq/KWQTextEdit.mm:
1206         (QTextEdit::setFont):
1207         * platform/Font.cpp:
1208         (khtml::Font::update):
1209         * platform/Font.h:
1210         (WebCore::):
1211         (WebCore::Font::m_wordSpacing):
1212         (WebCore::Font::Font):
1213         (WebCore::Font::operator==):
1214         (WebCore::Font::operator!=):
1215         (WebCore::Font::fontMetrics):
1216         (WebCore::Font::pixelSize):
1217         (WebCore::Font::size):
1218         (WebCore::Font::letterSpacing):
1219         (WebCore::Font::setWordSpacing):
1220         (WebCore::Font::setLetterSpacing):
1221         (WebCore::Font::isFixedPitch):
1222         (WebCore::Font::isPrinterFont):
1223         (WebCore::Font::firstFamily):
1224         (WebCore::Font::family):
1225         (WebCore::Font::italic):
1226         (WebCore::Font::weight):
1227         (WebCore::Font::getNSFamily):
1228         (WebCore::Font::getNSFont):
1229         (WebCore::Font::getWebCoreFont):
1230         * platform/FontDescription.h:
1231         (WebCore::FontDescription::FontDescription):
1232         * platform/FontFamily.h:
1233         * platform/Widget.h:
1234         * platform/mac/WidgetMac.mm:
1235         (WebCore::Widget::font):
1236         (WebCore::Widget::setFont):
1237         * rendering/InlineTextBox.cpp:
1238         (WebCore::InlineTextBox::selectionRect):
1239         (WebCore::InlineTextBox::paint):
1240         (WebCore::InlineTextBox::positionForOffset):
1241         * rendering/RenderBlock.cpp:
1242         (WebCore::stripTrailingSpace):
1243         * rendering/RenderText.cpp:
1244         (WebCore::RenderText::cacheWidths):
1245         (WebCore::RenderText::trimmedMinMaxWidth):
1246         (WebCore::RenderText::calcMinMaxWidth):
1247         (WebCore::RenderText::font):
1248         (WebCore::RenderText::width):
1249         * rendering/RenderText.h:
1250         * rendering/bidi.cpp:
1251         (khtml::RenderBlock::computeHorizontalPositionsForLine):
1252         (khtml::RenderBlock::findNextLineBreak):
1253         * rendering/render_br.cpp:
1254         (WebCore::RenderBR::lineHeight):
1255         * rendering/render_flow.cpp:
1256         (WebCore::RenderFlow::lineHeight):
1257         * rendering/render_form.cpp:
1258         (WebCore::RenderFormElement::setStyle):
1259         (WebCore::RenderFormElement::addIntrinsicMarginsIfAllowed):
1260         * rendering/render_image.cpp:
1261         (WebCore::RenderImage::paint):
1262         * rendering/render_line.cpp:
1263         (WebCore::InlineFlowBox::placeBoxesHorizontally):
1264         (WebCore::InlineFlowBox::paintDecorations):
1265         (WebCore::EllipsisBox::paint):
1266         * rendering/render_list.cpp:
1267         (RenderListMarker::paint):
1268         * rendering/render_object.cpp:
1269         (WebCore::RenderObject::getVerticalPosition):
1270         (WebCore::RenderObject::lineHeight):
1271         * rendering/render_object.h:
1272         (WebCore::RenderObject::font):
1273         * rendering/render_replaced.cpp:
1274         (WebCore::RenderWidget::setStyle):
1275         * rendering/render_style.h:
1276         (khtml::RenderStyle::fontSize):
1277         (khtml::RenderStyle::fontMetrics):
1278         (khtml::RenderStyle::wordSpacing):
1279         (khtml::RenderStyle::letterSpacing):
1280         (khtml::RenderStyle::setFontDescription):
1281         (khtml::RenderStyle::setWordSpacing):
1282         (khtml::RenderStyle::setLetterSpacing):
1283
1284 2006-02-28  Darin Adler  <darin@apple.com>
1285
1286         Reviewed by Adele.
1287
1288         - remove obsolete WebCoreScrollView class
1289
1290         * WebCore.exp: Remove WebCoreScrollView class name.
1291
1292         * kwq/WebCoreScrollView.h: Removed.
1293         * kwq/WebCoreScrollView.m: Removed.
1294         * WebCore.xcodeproj/project.pbxproj: Remove WebCoreScrollView source files.
1295
1296         * kwq/KWQListBox.mm: (-[KWQListBoxScrollView autoforwardsScrollWheelEvents]): Added.
1297         * kwq/KWQTextArea.h: Change base class to NSScrollView instead of WebCoreScrollView.
1298         * kwq/KWQTextArea.mm: (-[KWQTextAreaTextView autoforwardsScrollWheelEvents]): Ditto.
1299
1300 2006-02-28  Eric Seidel  <eseidel@apple.com>
1301
1302         Reviewed by mjs.
1303
1304         Fix spacing/style on several of the stubs.
1305         Reorganize stubs, separating empty stubs.
1306         Remove the abort from certain stubs blocking DRT.
1307         Add a virtual setView call to Frame baseclass.
1308
1309         * bridge/mac/MacFrame.h: mark setView virtual
1310         * dom/DocumentImpl.cpp:
1311         (WebCore::DocumentImpl::attach): remove no-renderer hack
1312         * page/Frame.cpp:
1313         (WebCore::Frame::view): fix spacing
1314         (WebCore::Frame::setView): added.
1315         * page/Frame.h:
1316         * platform/win/TemporaryLinkStubs.cpp:
1317         (notImplemented): make break directly into debugger.
1318         Moved, modified several other stubs not mentioned here.
1319
1320 2006-02-28  Justin Garcia  <justin.garcia@apple.com>
1321
1322         Reviewed by mjs
1323         
1324         <http://bugzilla.opendarwin.org/show_bug.cgi?id=6647>
1325         TinyMCE: document.execCommand("insertHTML", ...) unimplemented
1326
1327         * editing/jsediting.cpp:
1328
1329 2006-02-28  Maciej Stachowiak  <mjs@apple.com>
1330
1331         Reviewed by Darin.
1332
1333         - make win32 DumpRenderTree run without crashing
1334         http://bugzilla.opendarwin.org/show_bug.cgi?id=7511
1335
1336         * WebCore.vcproj/WebCore/WebCore.vcproj:
1337         * bridge/win/BrowserExtensionWin.h: Added.
1338         * bridge/win/FrameWin.cpp:
1339         (WebCore::FrameWin::FrameWin): Initialize browser
1340         extension and settings.
1341         * dom/DocumentImpl.cpp:
1342         (WebCore::DocumentImpl::attach): Don't create renderers 
1343         for now.
1344         * dom/EventNames.cpp:
1345         (WebCore::EventNames::init): use placement new even when
1346         not avoiding static constructors.
1347         * khtml/html/htmlnames.cpp:
1348         (WebCore::HTMLNames::init): ditto
1349         * dom/QualifiedName.cpp:
1350         (WebCore::QualifiedName::init): ditto
1351         * dom/QualifiedName.h:
1352         (WebCore::QualifiedName::QualifiedName): Added default
1353         constructor but only in ifdef.
1354         * page/Frame.h:
1355         * platform/AtomicString.cpp:
1356         (WebCore::AtomicString::init): use placement new even when
1357         not avoiding static constructors
1358         * platform/StaticConstructors.h: don't initialize when
1359         not avoiding static constructors, just default construct
1360         and let initialization happen normally
1361         * platform/win/TemporaryLinkStubs.cpp: Stub out some more things
1362         (Cursor::~Cursor):
1363         (QFont::~QFont):
1364         (QFontMetrics::~QFontMetrics):
1365         (WebCore::FrameWin::restoreDocumentState):
1366         (WebCore::FrameWin::partClearedInBegin):
1367         (WebCore::FrameWin::createEmptyDocument):
1368         (WebCore::BrowserExtensionWin::getHistoryLength):
1369         (WebCore::BrowserExtensionWin::canRunModal):
1370         (WebCore::BrowserExtensionWin::openURLNotify):
1371         (WebCore::BrowserExtensionWin::canRunModalNow):
1372         (WebCore::BrowserExtensionWin::runModal):
1373         (WebCore::BrowserExtensionWin::goBackOrForward):
1374
1375 2006-02-27  Eric Seidel  <eseidel@apple.com>
1376
1377         Reviewed by mjs.
1378
1379         Remove abort() from constructors to allow DRT to run.
1380
1381         * platform/win/TemporaryLinkStubs.cpp:
1382         (QFont::QFont):
1383         (QFontMetrics::QFontMetrics):
1384
1385 2006-02-27  Justin Garcia  <justin.garcia@apple.com>
1386
1387         Reviewed by darin
1388         
1389         <http://bugzilla.opendarwin.org/show_bug.cgi?id=6893> 
1390         REGRESSION: Major bug with TinyMCE, no value submitted from textarea
1391         <rdar://problem/3465857> value from textarea form field inside of hidden div isn't submitted
1392         <rdar://problem/3968059> Textarea with hard-wrap: pre-filled text doesn't get hard-wrapped
1393         
1394         Canonicalize line endings in textareas to avoid the workarounds that were a source of bugs,
1395         Also call textWithHardLineWraps inside appendFormData (and nowhere else) if wrap="hard".
1396
1397         * khtml/html/HTMLTextAreaElementImpl.cpp:
1398         (WebCore::HTMLTextAreaElementImpl::HTMLTextAreaElementImpl):
1399         (WebCore::HTMLTextAreaElementImpl::select):
1400         (WebCore::HTMLTextAreaElementImpl::appendFormData):
1401         (WebCore::HTMLTextAreaElementImpl::rendererWillBeDestroyed):
1402         (WebCore::HTMLTextAreaElementImpl::updateValue):
1403         (WebCore::HTMLTextAreaElementImpl::value):
1404         (WebCore::HTMLTextAreaElementImpl::setValue):
1405         (WebCore::HTMLTextAreaElementImpl::defaultValue):
1406         * khtml/html/HTMLTextAreaElementImpl.h:
1407         (DOM::HTMLTextAreaElementImpl::invalidateValue):
1408         * kwq/KWQTextArea.h:
1409         * kwq/KWQTextArea.mm:
1410         (-[KWQTextAreaTextView textDidChange:]):
1411         (-[KWQTextAreaTextView text]):
1412         (-[KWQTextAreaTextView textWithHardLineBreaks]):
1413         (-[KWQTextAreaTextView setSelectedRange:]):
1414         (-[KWQTextAreaTextView selectedRange]):
1415         (-[KWQTextAreaTextView getCursorPositionAsIndex:inParagraph:]):
1416         (RangeOfParagraph):
1417         (-[KWQTextAreaTextView textView:shouldChangeTextInRange:replacementString:]):
1418         * rendering/render_form.cpp:
1419         (WebCore::RenderTextArea::destroy):
1420         (WebCore::RenderTextArea::updateFromElement):
1421         (WebCore::RenderTextArea::text):
1422         (WebCore::RenderTextArea::textWithHardLineBreaks):
1423         * rendering/render_form.h:
1424
1425 2006-02-27  Eric Seidel  <eseidel@apple.com>
1426
1427         Reviewed by darin.
1428
1429         Copy missing dlls to build directory.
1430
1431         * Viewer.cpp: fix line endings
1432         * Viewer/ImageView.cpp: fix line endings
1433         * Viewer/stdafx.cpp: fix line endings
1434         * WebCore.vcproj/WebCore/build-generated-files.sh:
1435
1436 2006-02-27  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1437
1438         Test: added to fast/dom/css-selectorText.html
1439
1440         Reviewed by Darin.
1441
1442         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7338
1443           Incorrect selectorText for multiple subselectors.
1444
1445         * css/css_base.cpp:
1446         (CSSSelector::selectorText): Iterate over subselectors
1447
1448 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
1449
1450         Reviewed by Darin.
1451
1452         - write a portable ICU version of TextEncoding::fromUnicode for use on win32
1453
1454         * platform/StreamingTextDecoder.h:
1455         * platform/TextEncoding.cpp:
1456         (WebCore::TextEncoding::fromUnicode): added
1457         (WebCore::getConverter): helper
1458         (WebCore::cacheConverter): ditto
1459         (WebCore::effectiveEncoding): ditto
1460         * platform/mac/TextEncodingMac.cpp: Add comment
1461         * platform/win/TemporaryLinkStubs.cpp:
1462         (WebCore::TextEncoding::fromUnicode): remove
1463
1464 2006-02-27  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1465
1466         Test: fast/text/in-rendered-text-rtl.html
1467
1468         Reviewed by Darin.
1469
1470         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7433
1471           REGRESSION (r12789): Second RTL text run on a line cannot be selected
1472
1473         * dom/dom_position.cpp:
1474         (WebCore::Position::inRenderedText): If the RenderText contains
1475         reversed text, the text boxes are not necessarily ordered by start
1476         position, so iterate through all of them.
1477         (WebCore::Position::isRenderedCharacter): Ditto.
1478
1479 2006-02-27  David Kilzer  <ddkilzer@kilzer.net>
1480
1481         Reviewed by Darin.
1482
1483         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7321
1484         REGRESSION: style tag in body causes two head elements to appear in the DOM
1485
1486         * khtml/html/htmlparser.cpp: Handle the head node like form and map nodes.
1487         (WebCore::HTMLParser::parseToken):
1488         (WebCore::HTMLParser::headCreateErrorCheck):
1489
1490 2006-02-27  Eric Seidel  <eseidel@apple.com>
1491
1492         Reviewed by darin.
1493
1494         Add stub to make DRT link.
1495         Make WebCore copy libxml.dll into build directory when building.
1496
1497         * WebCore.vcproj/WebCore/build-generated-files.sh:
1498         * platform/win/TemporaryLinkStubs.cpp:
1499         (WebCore::TextEncoding::fromUnicode):
1500
1501 2006-02-27  Darin Adler  <darin@apple.com>
1502
1503         Reviewed by Eric.
1504
1505         - fix regression in layout tests
1506
1507         * dom/dom_elementimpl.cpp: (WebCore::StyledElementImpl::addCSSLength):
1508         Fix some code that was not properly truncating. I broke it in my
1509         string change this morning. 
1510
1511 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
1512
1513         Rubber stamped by Eric.
1514
1515         - add stubs for FrameWin overrides of pure virtual Frame methods
1516
1517         * platform/win/TemporaryLinkStubs.cpp:
1518         (WebCore::FrameWin::respondToChangedContents):
1519         (WebCore::FrameWin::unfocusWindow):
1520         (WebCore::FrameWin::locationbarVisible):
1521         (WebCore::FrameWin::respondToChangedSelection):
1522         (WebCore::FrameWin::clearUndoRedoOperations):
1523         (WebCore::FrameWin::issueRedoCommand):
1524         (WebCore::FrameWin::canRedo):
1525         (WebCore::FrameWin::restoreDocumentState):
1526         (WebCore::FrameWin::canUndo):
1527         (WebCore::FrameWin::overrideMediaType):
1528         (WebCore::FrameWin::saveDocumentState):
1529         (WebCore::FrameWin::print):
1530         (WebCore::FrameWin::issueCutCommand):
1531         (WebCore::FrameWin::issueCopyCommand):
1532         (WebCore::FrameWin::partClearedInBegin):
1533         (WebCore::FrameWin::issueUndoCommand):
1534         (WebCore::FrameWin::clearRecordedFormValues):
1535         (WebCore::FrameWin::issuePasteCommand):
1536         (WebCore::FrameWin::markedTextRange):
1537         (WebCore::FrameWin::shouldChangeSelection):
1538         (WebCore::FrameWin::scheduleClose):
1539         (WebCore::FrameWin::menubarVisible):
1540         (WebCore::FrameWin::personalbarVisible):
1541         (WebCore::FrameWin::createEmptyDocument):
1542         (WebCore::FrameWin::lastEventIsMouseUp):
1543         (WebCore::FrameWin::statusbarVisible):
1544         (WebCore::FrameWin::toolbarVisible):
1545         (WebCore::FrameWin::issueTransposeCommand):
1546         (WebCore::FrameWin::userAgent):
1547         (WebCore::FrameWin::canPaste):
1548         (WebCore::FrameWin::incomingReferrer):
1549         (WebCore::FrameWin::canGoBackOrForward):
1550         (WebCore::FrameWin::issuePasteAndMatchStyleCommand):
1551         (WebCore::FrameWin::handledOnloadEvents):
1552         (WebCore::FrameWin::generateFrameName):
1553
1554 2006-02-27  Eric Seidel  <eseidel@apple.com>
1555
1556         Reviewed by mjs.
1557
1558         Add constructor and destructor. 
1559
1560         * bridge/win/FrameWin.cpp:
1561         (WebCore::FrameWin::FrameWin):
1562         (WebCore::FrameWin::~FrameWin):
1563
1564 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
1565
1566         Rubber stamped by Eric (sorta).
1567
1568         - add return values where needed
1569
1570         * platform/win/TemporaryLinkStubs.cpp:
1571         (KWQServeRequest):
1572         (KWQServeSynchronousRequest):
1573
1574 2006-02-27  Eric Seidel  <eseidel@apple.com>
1575
1576         Reviewed by mjs.
1577
1578         Add a couple more stubs to make Win32 link.
1579
1580         * platform/win/TemporaryLinkStubs.cpp:
1581         (KWQServeSynchronousRequest):
1582         (WebCore::FrameView::topLevelWidget):
1583
1584 2006-02-27  Eric Seidel  <eseidel@apple.com>
1585
1586         Reviewed by mjs.
1587
1588         Move mac-specific logging logic up into WebCore (from JavaScriptCore).
1589         Remove KWQ prefixes from default log channels.
1590         http://bugzilla.opendarwin.org/show_bug.cgi?id=7503
1591
1592         * bridge/mac/WebCorePageBridge.mm:
1593         (initializeLogChannel):
1594         (initializeLoggingChannelsIfNecessary):
1595         (-[WebCorePageBridge init]):
1596         * page/Frame.h:
1597         * platform/Logging.cpp:
1598         * platform/Logging.h:
1599
1600 2006-02-27  Darin Adler  <darin@apple.com>
1601
1602         Reviewed by Maciej.
1603
1604         - fix <rdar://problem/4104575> hang due to slow saveDocumentState method
1605
1606         * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge saveDocumentState]):
1607         Change code that iterates a QStringList with indices to use iterator instead.
1608
1609 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
1610
1611         Reviewed by Eric.
1612
1613         - portable version of QString::utf8
1614
1615         * platform/QString.cpp:
1616         (QString::utf8): moved here, rewritten to use TextCodec
1617         * platform/mac/QStringMac.mm:
1618         (QString::utf8): removed from here
1619
1620 2006-02-27  Eric Seidel  <eseidel@apple.com>
1621
1622         Rubber-stamped by mjs.
1623
1624         Fix FrameWin.h to use consistant line endings.
1625         Fix TemporaryLinkStubs to better match style guidelines.
1626
1627         * bridge/win/FrameWin.h:
1628         (WebCore::Win):
1629         * platform/win/TemporaryLinkStubs.cpp:
1630         (QLineEdit::selectAll):
1631         (QPainter::save):
1632         (Widget::enableFlushDrawing):
1633         (QPainter::drawHighlightForText):
1634         (QFont::setPrinterFont):
1635         (QTextEdit::textWithHardLineBreaks):
1636         (Widget::mapFromGlobal):
1637         (QPainter::addClip):
1638         (QLineEdit::cursorPosition):
1639         (QPainter::setPen):
1640         (QPainter::selectedTextBackgroundColor):
1641         (QPainter::fontMetrics):
1642         (Widget::show):
1643         (QFont::setItalic):
1644         (QSlider::setValue):
1645         (QLineEdit::addSearchResult):
1646         (KWQFileButton::click):
1647         (QLineEdit::setWritingDirection):
1648         (QPainter::drawFocusRing):
1649         (KWQFileButton::sizeForCharacterWidth):
1650         (QTextEdit::sizeWithColumnsAndRows):
1651         (QComboBox::clear):
1652         (QPainter::misspellingLineThickness):
1653         (QComboBox::setFrameGeometry):
1654         (QLineEdit::maxLength):
1655         (Widget::isEnabled):
1656         (KWQServeRequest):
1657         (QTextEdit::setText):
1658         (Widget::paint):
1659         (QPainter::addRoundedRectClip):
1660         (FrameView::viewportToGlobal):
1661         (QTextEdit::selectionEnd):
1662         (QFont::determinePitch):
1663         (QTextEdit::setScrollBarModes):
1664         (QPainter::drawEllipse):
1665         (QTextEdit::setReadOnly):
1666         (QListBox::appendItem):
1667         (QLineEdit::setPlaceholderString):
1668         (Cursor::Cursor):
1669         (Widget::focusPolicy):
1670         (ScrollView::removeChild):
1671         (QTextEdit::selectAll):
1672         (QPainter::fillRect):
1673         (QPainter::endTransparencyLayer):
1674         (QFont::QFont):
1675         (ScrollView::addChild):
1676         (QTextEdit::setDisabled):
1677         (QScrollBar::scroll):
1678         (Widget::~Widget):
1679         (QPainter::xForm):
1680         (QListBox::sizeForNumberOfLines):
1681         (ScrollView::resizeContents):
1682         (QLineEdit::selectionStart):
1683         (QLineEdit::QLineEdit):
1684         (FrameView::updateBorder):
1685         (QLineEdit::hasSelectedText):
1686         (QScrollBar::QScrollBar):
1687         (QListBox::doneAppendingItems):
1688         (QTextEdit::QTextEdit):
1689         (ScrollView::inWindow):
1690         (QScrollBar::setValue):
1691         (QFont::setFirstFamily):
1692         (QTextEdit::hasSelectedText):
1693         (QTextEdit::selectionStart):
1694         (QFont::setWeight):
1695         (ScrollView::scrollXOffset):
1696         (QListBox::isSelected):
1697         (QLineEdit::setReadOnly):
1698         (QPainter::drawLineForText):
1699         (QPainter::QPainter):
1700         (QComboBox::~QComboBox):
1701         (QComboBox::focusPolicy):
1702         (QPainter::drawImageAtPoint):
1703         (QPainter::clearShadow):
1704         (QTextEdit::setLineHeight):
1705         (QScrollBar::setKnobProportion):
1706         (KWQFileButton::KWQFileButton):
1707         (QFontMetrics::boundingRect):
1708         (QTextEdit::setSelectionStart):
1709         (QPainter::beginTransparencyLayer):
1710         (QFontMetrics::setFont):
1711         (QComboBox::setFont):
1712         (Widget::frameGeometry):
1713         (QListBox::setSelected):
1714         (QPainter::addFocusRingRect):
1715         (QTextEdit::setCursorPosition):
1716         (QPainter::restore):
1717         (QFontMetrics::width):
1718         (Widget::setEnabled):
1719         (QTextEdit::setSelectionEnd):
1720         (QComboBox::populate):
1721         (ScrollView::setStaticBackground):
1722         (QPainter::font):
1723         (QTextEdit::setAlignment):
1724         (QLineEdit::setCursorPosition):
1725         (QPainter::drawText):
1726         (QPainter::pen):
1727         (KJavaAppletWidget::KJavaAppletWidget):
1728         (QFontMetrics::descent):
1729         (QListBox::QListBox):
1730         (QFontMetrics::ascent):
1731         (QLineEdit::selectedText):
1732         (Widget::setIsSelected):
1733         (QLineEdit::text):
1734         (Widget::unlockDrawingFocus):
1735         (QLineEdit::setLiveSearch):
1736         (QPainter::paintingDisabled):
1737         (QComboBox::QComboBox):
1738         (QPainter::drawConvexPolygon):
1739         (Widget::setFont):
1740         (QSlider::setMaxValue):
1741         (Widget::lockDrawingFocus):
1742         (QPainter::drawLine):
1743         (QPainter::setBrush):
1744         (QTextEdit::setSelectionRange):
1745         (ScrollView::scrollPointRecursively):
1746         (QLineEdit::sizeForCharacterWidth):
1747         (Cursor::~Cursor):
1748         (QFontMetrics::selectionRectForText):
1749         (ScrollView::suppressScrollBars):
1750         (QFontMetrics::checkSelectionPoint):
1751         (QTextEdit::getCursorPosition):
1752         (FrameView::isFrameView):
1753         (QScrollBar::setSteps):
1754         (QLineEdit::setMaxLength):
1755         (Widget::setCursor):
1756         (QLineEdit::setAutoSaveName):
1757         (QComboBox::baselinePosition):
1758         (QComboBox::appendItem):
1759         (QPainter::setShadow):
1760         (QTextEdit::setWritingDirection):
1761         (Widget::setDrawingAlpha):
1762         (QSlider::QSlider):
1763         (ScrollView::setVScrollBarMode):
1764         (QPainter::drawScaledAndTiledImage):
1765         (ScrollView::scrollYOffset):
1766         (QPainter::drawImage):
1767         (QComboBox::setCurrentItem):
1768         (QFontMetrics::height):
1769         (QComboBox::setWritingDirection):
1770         (ScrollView::setScrollBarsMode):
1771         (QComboBox::sizeHint):
1772         (QPainter::drawRect):
1773         (QFont::setPixelSize):
1774         (Widget::setFrameGeometry):
1775         (QLineEdit::setSelection):
1776         (QLineEdit::setMaxResults):
1777         (QListBox::clear):
1778         (QLineEdit::edited):
1779         (QPainter::drawTiledImage):
1780         (QPainter::clearFocusRing):
1781         (QFont::operator==):
1782         (Widget::Widget):
1783         (QTextEdit::text):
1784         (QPainter::drawImageInRect):
1785         (QPainter::setFont):
1786         (Widget::disableFlushDrawing):
1787         (QPainter::initFocusRing):
1788         (QSlider::setMinValue):
1789         (QTextEdit::setWordWrap):
1790         (QPainter::drawLineForMisspelling):
1791         (QLineEdit::setText):
1792         (QSlider::value):
1793         (QListBox::setSelectionMode):
1794         (KWQFileButton::setFilename):
1795         (QFontMetrics::QFontMetrics):
1796         (QFontMetrics::lineSpacing):
1797         (QLineEdit::setEdited):
1798         (QComboBox::frameGeometry):
1799         (QListBox::setWritingDirection):
1800         (QLineEdit::setAlignment):
1801         (ScrollView::updateContents):
1802         (QFontMetrics::floatWidth):
1803         (ScrollView::setHScrollBarMode):
1804         (KWQFileButton::focusPolicy):
1805         (QListBox::setFont):
1806         (QLineEdit::checksDescendantsForFocus):
1807         (KWQFileButton::baselinePosition):
1808         (QSlider::~QSlider):
1809         (KWQFileButton::setFrameGeometry):
1810         (QListBox::~QListBox):
1811         (KWQFileButton::frameGeometry):
1812         (QTextEdit::setFont):
1813         (QLineEdit::setFont):
1814         (KWQFileButton::~KWQFileButton):
1815         (QTextEdit::focusPolicy):
1816         (QSlider::focusPolicy):
1817         (QSlider::setFont):
1818         (QListBox::setEnabled):
1819         (QListBox::checksDescendantsForFocus):
1820         (QListBox::focusPolicy):
1821         (QLineEdit::baselinePosition):
1822         (QSlider::sizeHint):
1823         (QLineEdit::~QLineEdit):
1824         (QTextEdit::~QTextEdit):
1825         (QTextEdit::checksDescendantsForFocus):
1826         (QLineEdit::focusPolicy):
1827         (QScrollBar::~QScrollBar):
1828         (Path::operator=):
1829         (QLineEdit::setColors):
1830         (QTextEdit::setColors):
1831         (searchableIndexIntroduction):
1832         (KWQKCookieJar::setCookie):
1833         (KWQKCookieJar::cookie):
1834         (WebCore::screenRect):
1835         (WebCore::Widget::clearFocus):
1836         (WebCore::historyContains):
1837         (KWQFindNextSentenceFromIndex):
1838         (KWQFindSentenceBoundary):
1839         (KWQFindNextWordFromIndex):
1840         (KWQFindWordBoundary):
1841         (submitButtonDefaultLabel):
1842         (inputElementAltText):
1843         (resetButtonDefaultLabel):
1844         (KWQKCookieJar::cookieEnabled):
1845         (WebCore::Widget::setFocus):
1846         (WebCore::QPainter::fillRect):
1847         (WebCore::QPainter::~QPainter):
1848         (WebCore::ScrollView::viewportToContents):
1849         (WebCore::TransferJob::kill):
1850         (WebCore::TransferJob::addMetaData):
1851         (WebCore::TransferJob::queryMetaData):
1852         (WebCore::TransferJob::error):
1853         (WebCore::TransferJob::errorText):
1854         (WebCore::TransferJob::isErrorPage):
1855         (WebCore::TransferJob::TransferJob):
1856         (WebCore::Widget::hide):
1857         (KLocale::language):
1858         (PlugInInfoStore::createPluginInfoForPluginAtIndex):
1859         (WebCore::screenDepth):
1860         (QFont::italic):
1861         (QFontMetrics::operator=):
1862         (QFontMetrics::xHeight):
1863         (WebCore::usableScreenRect):
1864         (QFont::operator=):
1865         (Widget::setActiveWindow):
1866         (KWQCheckIfReloading):
1867         (WebCore::ScrollView::contentsX):
1868         (WebCore::ScrollView::contentsY):
1869         (WebCore::ScrollView::contentsHeight):
1870         (WebCore::ScrollView::contentsWidth):
1871         (WebCore::ScrollView::visibleHeight):
1872         (WebCore::ScrollView::visibleWidth):
1873         (WebCore::ScrollView::hScrollBarMode):
1874         (WebCore::ScrollView::vScrollBarMode):
1875         (KWQCheckCacheObjectStatus):
1876
1877 2006-02-27  Justin Garcia  <justin.garcia@apple.com>
1878
1879         Reviewed by darin
1880         
1881         <http://bugzilla.opendarwin.org/show_bug.cgi?id=6844>
1882         elementAtPoint returns the list when the point is over a list marker
1883         
1884         Consider the case of outside list markers in nodeAtPoint.  Had to pull 
1885         the code out of RenderListMarker::paint that computed the position/size 
1886         of the list marker.
1887
1888         Added:
1889         * fast/events/onclick-list-marker.html
1890
1891         * rendering/render_list.cpp:
1892         (RenderListItem::nodeAtPoint):
1893         (RenderListItem::getAbsoluteRepaintRect):
1894         (RenderListMarker::paint):
1895         (RenderListMarker::nodeAtPoint):
1896         (RenderListMarker::getRelativeMarkerRect):
1897         * rendering/render_list.h:
1898         * rendering/render_object.h:
1899
1900 2006-02-27  Eric Seidel  <eseidel@apple.com>
1901
1902         Reviewed by timo.
1903
1904         Fix xcode project after previous KWQLogging move.
1905
1906         * WebCore.xcodeproj/project.pbxproj:
1907         * platform/Logging.h:
1908
1909 2006-02-27  Eric Seidel  <eseidel@apple.com>
1910
1911         Reviewed by timo.
1912
1913         Move KWQLogging to platform and rename as Logging.*, fix headers.
1914         This will break the mac build, which I will fix on my next commit.
1915
1916         * WebCore.vcproj/WebCore/WebCore.vcproj:
1917         * dom/DocumentImpl.cpp:
1918         * dom/dom_position.cpp:
1919         * editing/DeleteSelectionCommand.cpp:
1920         * editing/InsertLineBreakCommand.cpp:
1921         * editing/InsertParagraphSeparatorCommand.cpp:
1922         * editing/InsertTextCommand.cpp:
1923         * editing/VisiblePosition.cpp:
1924         * editing/markup.cpp:
1925         * khtml/ecma/kjs_window.cpp:
1926         * kwq/KWQLogging.h: Removed.
1927         * kwq/KWQLogging.m: Removed.
1928         * kwq/KWQRegExp.cpp:
1929         * kwq/KWQTextStream.cpp:
1930         * platform/Logging.cpp: Added.
1931         * platform/Logging.h: Added.
1932         * platform/QString.cpp:
1933         * platform/win/TemporaryLinkStubs.cpp:
1934         (WebCore::ScrollView::vScrollBarMode):
1935         (WebCore::theme):
1936
1937 2006-02-27  Eric Seidel  <eseidel@apple.com>
1938
1939         Reviewed by hyatt.
1940
1941         Fix a bunch more link errors in the win32 build, mostly by adding stubs.
1942
1943         * WebCore.vcproj/WebCore/WebCore.vcproj: add JSXMLHttpRequest and PlugInInfoStore
1944         * WebCore.vcproj/WebCore/build-generated-files.sh: update for JSXMLHttpRequest
1945         * khtml/ecma/JSXMLHttpRequest.cpp:
1946         (KJS::JSXMLHttpRequest::getValueProperty): fix switch to compile
1947         * platform/PlugInInfoStore.h:
1948         * platform/mac/PlugInInfoStoreMac.mm:
1949         * platform/win/TemporaryLinkStubs.cpp: add a bunch of stubs.
1950         (WebCore::TransferJob::errorText):
1951         (WebCore::TransferJob::isErrorPage):
1952         (WebCore::Widget::hide):
1953         (PlugInInfoStore::createPluginInfoForPluginAtIndex):
1954         (PlugInInfoStore::pluginCount):
1955         (WebCore::refreshPlugins):
1956         (QFont::QFont):
1957         (QFont::~QFont):
1958         (QFont::italic):
1959         (QFont::weight):
1960         (QFontMetrics::QFontMetrics):
1961         (QFontMetrics::~QFontMetrics):
1962         (QFontMetrics::xHeight):
1963         (Widget::setActiveWindow):
1964         (WebCore::ScrollView::contentsX):
1965         (WebCore::ScrollView::contentsY):
1966         (WebCore::ScrollView::contentsHeight):
1967         (WebCore::ScrollView::contentsWidth):
1968         (WebCore::ScrollView::visibleHeight):
1969         (WebCore::ScrollView::visibleWidth):
1970         (WebCore::ScrollView::hScrollBarMode):
1971         (WebCore::ScrollView::vScrollBarMode):
1972
1973 2006-02-27  Eric Seidel  <eseidel@apple.com>
1974
1975         Reviewed by timo.
1976
1977         Add missing include to fix build.
1978
1979         * platform/win/TemporaryLinkStubs.cpp:
1980
1981 2006-02-27  Eric Seidel  <eseidel@apple.com>
1982
1983         Reviewed by ggaren.
1984
1985         Move KConfig to platform/PlugInInfoStore and add test.
1986         http://bugzilla.opendarwin.org/show_bug.cgi?id=7498
1987
1988         Test: plugins/plugin-javascript-access.html
1989
1990         * ForwardingHeaders/kconfig.h: Removed.
1991         * WebCore.xcodeproj/project.pbxproj:
1992         * khtml/ecma/kjs_navigator.cpp:
1993         (KJS::PluginBase::PluginBase):
1994         * khtml/ecma/kjs_window.cpp:
1995         * kwq/KWQKConfigBase.h: Removed.
1996         * kwq/KWQKConfigBase.mm: Removed.
1997         * platform/PlugInInfoStore.h: Added.
1998         * platform/mac/PlugInInfoStoreMac.mm: Added.
1999         (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
2000         (WebCore::PlugInInfoStore::pluginCount):
2001         (WebCore::refreshPlugins):
2002
2003 2006-02-27  Darin Adler  <darin@apple.com>
2004
2005         Reviewed by Eric.
2006
2007         * platform/win/TemporaryLinkStubs.cpp: Added more stubs.
2008
2009 2006-02-27  Eric Seidel  <eseidel@apple.com>
2010
2011         Reviewed by darin.
2012
2013         Reworked KConfig and plugin architecture to be much more sane.
2014         This is part one.  Once this lands, I'll move it under platform with a better name.
2015
2016         Darin had several great suggested further improvements as part of:
2017         http://bugzilla.opendarwin.org/show_bug.cgi?id=7451
2018         I'll make some of those when I move this to platform.
2019
2020         No layout test possible (no way to control which plugins DRT sees).
2021
2022         * khtml/ecma/kjs_navigator.cpp:
2023         (KJS::PluginBase::PluginBase):
2024         (KJS::PluginBase::~PluginBase):
2025         (KJS::PluginBase::refresh):
2026         (KJS::Plugins::getValueProperty):
2027         (KJS::Plugins::nameGetter):
2028         (KJS::Plugins::getOwnPropertySlot):
2029         (KJS::MimeTypes::getValueProperty):
2030         (KJS::MimeTypes::nameGetter):
2031         (KJS::MimeTypes::getOwnPropertySlot):
2032         (KJS::Plugin::getValueProperty):
2033         (KJS::Plugin::nameGetter):
2034         (KJS::Plugin::getOwnPropertySlot):
2035         * khtml/ecma/kjs_navigator.h:
2036         * khtml/ecma/kjs_window.cpp:
2037         * kwq/KWQKConfigBase.h:
2038         (WebCore::PluginInfoStore::PluginInfoStore):
2039         * kwq/KWQKConfigBase.mm:
2040         (WebCore::PluginInfoStore::createPluginInfoForPluginAtIndex):
2041         (WebCore::PluginInfoStore::pluginCount):
2042         (WebCore::refreshPlugins):
2043
2044 2006-02-27  Eric Seidel  <eseidel@apple.com>
2045
2046         Reviewed by darin.
2047
2048         Build fix: cast to unsigned from size_t.
2049
2050         * platform/StreamingTextDecoder.cpp:
2051
2052 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
2053  
2054         Reviewed by Darin.
2055
2056         - add Selection.cpp to win32 build
2057         http://bugzilla.opendarwin.org/show_bug.cgi?id=7490
2058
2059         * WebCore.vcproj/WebCore/WebCore.vcproj:
2060
2061 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
2062
2063         - use proper header for std::min.
2064
2065         * platform/StreamingTextDecoder.cpp:
2066
2067 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
2068
2069         Reviewed by Darin.
2070
2071         - add new TextEncoding stuff to win32 build
2072         http://bugzilla.opendarwin.org/show_bug.cgi?id=7491
2073
2074         * WebCore.vcproj/WebCore/WebCore.vcproj:
2075         * WebCore.vcproj/WebCore/build-generated-files.sh:
2076         * platform/StreamingTextDecoder.cpp:
2077         (WebCore::StreamingTextDecoder::convertUTF16):
2078         * platform/TextEncoding.cpp:
2079
2080 2006-02-27  Darin Adler  <darin@apple.com>
2081
2082         - try to fix Windows build
2083
2084         * WebCore.vcproj/WebCore/WebCore.vcproj: Removed rendering/font.* and added platform/Font.*.
2085
2086 2006-02-27  Darin Adler  <darin@apple.com>
2087
2088         * css/csshelper.cpp: (WebCore::parseURL): Actually, the second version was fine. Rolling
2089         back to that; apologies for the churn.
2090
2091 2006-02-27  Darin Adler  <darin@apple.com>
2092
2093         * css/csshelper.cpp: (WebCore::parseURL): Third time's the charm.
2094
2095 2006-02-27  Darin Adler  <darin@apple.com>
2096
2097         * css/csshelper.cpp: (WebCore::parseURL): Oops! Checked in fixed version of this file.
2098
2099 2006-02-27  Darin Adler  <darin@apple.com>
2100
2101         Reviewed by Maciej.
2102
2103         - http://bugzilla.opendarwin.org/show_bug.cgi?id=7486
2104           a first step in improving String/StringImpl API -- use "s" and "l" less
2105
2106         * css/csshelper.cpp: (WebCore::parseURL): Use a local buffer rather than
2107         manipulating the characters directly inside a StringImpl buffer.
2108
2109         * css/cssstyleselector.cpp: (WebCore::parseUASheet): Copy the data to parse
2110         it rather than going out of our way to hack StringImpl to not copy the data.
2111         It would be better not to copy, but this is one-time work.
2112
2113         * dom/DOMImplementationImpl.cpp: (WebCore::DOMImplementationImpl::createDocument):
2114         * dom/dom2_viewsimpl.cpp: (DOM::AbstractViewImpl::getMatchedCSSRules):
2115         * dom/dom_elementimpl.cpp: (WebCore::StyledElementImpl::addCSSLength):
2116         * dom/dom_xmlimpl.cpp: (WebCore::EntityImpl::toString):
2117         * editing/CompositeEditCommand.cpp: (WebCore::CompositeEditCommand::deleteInsignificantText):
2118         * khtml/html/htmlparser.cpp: (WebCore::HTMLParser::handleError):
2119         * platform/AtomicString.cpp:
2120         (WebCore::CStringTranslator::equal):
2121         (WebCore::QCharBufferTranslator::equal):
2122         (WebCore::AtomicString::add):
2123         * platform/StringImpl.h:
2124         (WebCore::StringImpl::unicode): Added.
2125         (KXMLCore::CaseInsensitiveHash::hash): 
2126         (KXMLCore::CaseInsensitiveHash::equal):
2127         * rendering/InlineTextBox.cpp: (khtml::InlineTextBox::selectionStartEnd):
2128         * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateFirstLetter):
2129         * rendering/RenderText.cpp:
2130         (WebCore::getCharacterBreakIterator):
2131         (WebCore::RenderText::RenderText):
2132         (WebCore::RenderText::atLineWrap):
2133         (WebCore::RenderText::allAscii):
2134         (WebCore::RenderText::widthFromCache):
2135         (WebCore::RenderText::trimmedMinMaxWidth):
2136         (WebCore::RenderText::containsOnlyWhitespace):
2137         (WebCore::RenderText::setSelectionState):
2138         (WebCore::RenderText::setTextWithOffset):
2139         (WebCore::RenderText::setText):
2140         (WebCore::RenderText::width):
2141         (WebCore::RenderText::selectionRect):
2142         (WebCore::RenderText::caretMaxOffset):
2143         * rendering/RenderTextFragment.cpp:
2144         (khtml::RenderTextFragment::RenderTextFragment):
2145         (khtml::RenderTextFragment::originalString):
2146         Use length() instead of l, unicode() instead of s, and (*x)[] instead of x->s[].
2147
2148         * editing/visible_units.cpp:
2149         (WebCore::startOfParagraph): Use const.
2150         (WebCore::endOfParagraph): Ditto.
2151
2152 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
2153
2154         - fix problem with a prototype that broke win32 build
2155
2156         * platform/StreamingTextDecoder.h:
2157         (WebCore::StreamingTextDecoder::convert):
2158
2159 2006-02-27  Maciej Stachowiak  <mjs@apple.com>
2160
2161         - fix debug build (broken by my last commit)
2162
2163         * platform/StreamingTextDecoder.cpp:
2164         (WebCore::StreamingTextDecoder::createICUConverter):
2165         (WebCore::StreamingTextDecoder::convertUsingICU):
2166
2167 2006-02-26  Maciej Stachowiak  <mjs@apple.com>
2168
2169         Reviewed by Darin.
2170
2171         - platformize KWQTextCodec
2172         http://bugzilla.opendarwin.org/show_bug.cgi?id=7487
2173         
2174         I renamed QTextCodec to TextEncoding and QTextDecoder to
2175         StreamingTextDecoder. I also made a bunch of other changes to make
2176         the API more sensible.
2177         
2178         * ForwardingHeaders/qtextcodec.h: Removed.
2179         * WebCore.xcodeproj/project.pbxproj:
2180         * bridge/mac/MacFrame.mm:
2181         * bridge/mac/WebCoreFrameBridge.mm:
2182         (-[WebCoreFrameBridge URLWithAttributeString:]):
2183         (-[WebCoreFrameBridge textEncoding]):
2184         (+[WebCoreFrameBridge stringWithData:textEncoding:]):
2185         (+[WebCoreFrameBridge stringWithData:textEncodingName:]):
2186         * dom/DocumentImpl.cpp:
2187         (WebCore::DocumentImpl::completeURL):
2188         * khtml/ecma/kjs_dom.cpp:
2189         (KJS::DOMDocument::getValueProperty):
2190         (KJS::DOMDocument::putValueProperty):
2191         * khtml/html/FormDataList.cpp:
2192         (DOM::FormDataList::FormDataList):
2193         (DOM::FormDataList::appendString):
2194         * khtml/html/FormDataList.h:
2195         * khtml/html/HTMLFormElementImpl.cpp:
2196         (WebCore::HTMLFormElementImpl::HTMLFormElementImpl):
2197         (WebCore::HTMLFormElementImpl::formData):
2198         * khtml/html/htmltokenizer.cpp:
2199         * khtml/misc/decoder.cpp:
2200         (Decoder::Decoder):
2201         (Decoder::setEncodingName):
2202         (Decoder::encodingName):
2203         (Decoder::decode):
2204         * khtml/misc/decoder.h:
2205         (khtml::Decoder::):
2206         (khtml::Decoder::visuallyOrdered):
2207         (khtml::Decoder::encoding):
2208         * khtml/xsl/xslt_processorimpl.cpp:
2209         (DOM::XSLTProcessorImpl::createDocumentFromSource):
2210         * kwq/KWQCharsets.cpp: Removed.
2211         * kwq/KWQCharsets.h: Removed.
2212         * kwq/KWQTextCodec.cpp: Removed.
2213         * kwq/KWQTextCodec.h: Removed.
2214         * kwq/WebCoreTextDecoder.h:
2215         * kwq/WebCoreTextDecoder.mm:
2216         * kwq/can-convert.mm: Removed.
2217         * kwq/character-sets.txt: Removed.
2218         * kwq/mac-encodings.txt: Removed.
2219         * kwq/make-charset-table.pl: Removed.
2220         * loader/CachedCSSStyleSheet.cpp:
2221         (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
2222         (WebCore::CachedCSSStyleSheet::setCharset):
2223         (WebCore::CachedCSSStyleSheet::data):
2224         * loader/CachedCSSStyleSheet.h:
2225         * loader/CachedScript.cpp:
2226         (WebCore::CachedScript::CachedScript):
2227         (WebCore::CachedScript::setCharset):
2228         (WebCore::CachedScript::data):
2229         * loader/CachedScript.h:
2230         * loader/CachedXSLStyleSheet.cpp:
2231         (WebCore::CachedXSLStyleSheet::setCharset):
2232         * page/Frame.cpp:
2233         (WebCore::Frame::write):
2234         (WebCore::Frame::gotoAnchor):
2235         (WebCore::Frame::encoding):
2236         (WebCore::Frame::backslashAsCurrencySymbol):
2237         * platform/CharsetNames.cpp: Added.
2238         (KXMLCore::):
2239         (WebCore::EncodingHash::equal):
2240         (WebCore::EncodingHash::hash):
2241         (WebCore::buildDictionaries):
2242         (WebCore::textEncodingIDFromCharsetName):
2243         (WebCore::charsetNameFromTextEncodingID):
2244         * platform/CharsetNames.h: Added.
2245         * platform/KURL.cpp:
2246         (KURL::KURL):
2247         (KURL::decode_string):
2248         (encodeRelativeString):
2249         * platform/KURL.h:
2250         * platform/QString.cpp:
2251         (QString::fromUtf8):
2252         * platform/StreamingTextDecoder.cpp: Added.
2253         (WebCore::StreamingTextDecoder::StreamingTextDecoder):
2254         (WebCore::StreamingTextDecoder::convertLatin1):
2255         (WebCore::StreamingTextDecoder::~StreamingTextDecoder):
2256         (WebCore::StreamingTextDecoder::convertUTF16):
2257         (WebCore::effectiveEncoding):
2258         (WebCore::StreamingTextDecoder::createICUConverter):
2259         (WebCore::unwanted):
2260         (WebCore::StreamingTextDecoder::appendOmittingUnwanted):
2261         (WebCore::StreamingTextDecoder::convertUsingICU):
2262         (WebCore::StreamingTextDecoder::convert):
2263         (WebCore::StreamingTextDecoder::toUnicode):
2264         * platform/StreamingTextDecoder.h: Added.
2265         (WebCore::StreamingTextDecoder::convert):
2266         * platform/TextEncoding.cpp: Added.
2267         (WebCore::TextEncoding::TextEncoding):
2268         (WebCore::TextEncoding::name):
2269         (WebCore::effectiveEncoding):
2270         (WebCore::TextEncoding::backslashAsCurrencySymbol):
2271         (WebCore::TextEncoding::toUnicode):
2272         * platform/TextEncoding.h: Added.
2273         (WebCore::):
2274         (WebCore::TextEncoding::):
2275         (WebCore::TextEncoding::TextEncoding):
2276         (WebCore::TextEncoding::isValid):
2277         (WebCore::TextEncoding::usesVisualOrdering):
2278         (WebCore::TextEncoding::isJapanese):
2279         (WebCore::TextEncoding::encodingID):
2280         (WebCore::TextEncoding::flags):
2281         (WebCore::operator==):
2282         (WebCore::operator!=):
2283         * platform/character-sets.txt: Added.
2284         * platform/mac/ExtraCFEncodings.h: Added.
2285         * platform/mac/QStringMac.mm:
2286         * platform/mac/TextEncodingMac.cpp: Added.
2287         (WebCore::effectiveEncoding):
2288         (WebCore::TextEncoding::fromUnicode):
2289         * platform/mac/can-convert.mm: Added.
2290         * platform/mac/mac-encodings.txt: Added.
2291         * platform/make-charset-table.pl: Added.
2292         * platform/win/win-encodings.txt: Added.
2293         * rendering/render_object.cpp:
2294         (WebCore::RenderObject::backslashAsCurrencySymbol):
2295         * xml/xmlhttprequest.cpp:
2296         (WebCore::XMLHttpRequest::send):
2297         (WebCore::XMLHttpRequest::slotData):
2298
2299 2006-02-27  Darin Adler  <darin@apple.com>
2300
2301         - fix Windows build
2302
2303         * platform/win/TemporaryLinkStubs.cpp: Change KIO::TransferJob to WebCore::TransferJob.
2304
2305 2006-02-26  Darin Adler  <darin@apple.com>
2306
2307         Reviewed by Maciej.
2308
2309         - merged Job and TransferJob into TransferJob and moved it to WebCore namespace
2310         - changed TransferJob to use a TransferJobClient object instead of signals
2311
2312         * ForwardingHeaders/kio/job.h: Changed to point to "KWQKJobClasses.h".
2313         * kwq/KWQKJob.h: Removed.
2314         * kwq/TransferJobClient.h: Added.
2315
2316         * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for file changes.
2317         * WebCore.xcodeproj/project.pbxproj: Ditto.
2318
2319         * dom/xml_tokenizer.cpp: (WebCore::openFunc):
2320         * khtml/xsl/xslt_processorimpl.cpp: (DOM::docLoaderFunc):
2321         Use "new TransferJob" instead of "KIO::get" and "KIO::http_post".
2322
2323         * kwq/KWQKJobClasses.h: Eliminate Job. Add a TransferJobClient* parameter to
2324         TransferJob. Eliminate the deliverAllData parameter to TransferJob constructor.
2325         Remove the signals from TransferJob.
2326         * kwq/KWQKJobClasses.mm:
2327         (WebCore::TransferJobPrivate::TransferJobPrivate): Store a client pointer.
2328         (WebCore::TransferJob::TransferJob): Store a client pointer, remove the
2329         deliverAllData boolean.
2330         (WebCore::TransferJob::receivedResponse): Added. Replaces the old emitReceivedResponse
2331         function; uses client instead of a signal.
2332         (WebCore::TransferJob::client): Added.
2333
2334         * kwq/KWQLoader.h: Switched things to mention the WebCore namespace.
2335         Changed KIO::TransferJob to WebCore::TransferJob.
2336         * kwq/KWQLoader.mm: Ditto.
2337
2338         * kwq/KWQObject.h:
2339         * kwq/KWQObject.cpp: Removed isKHTMLLoader.
2340
2341         * kwq/KWQResourceLoader.h: Changed KIO::TransferJob to WebCore::TransferJob.
2342         * kwq/KWQResourceLoader.mm:
2343         (-[KWQResourceLoader receivedResponse:]): Call receivedResponse function on
2344         the job instead of emitReceivedResponse.
2345         (-[KWQResourceLoader redirectedToURL:]): Call receivedRedirect function on the
2346         client directly instead of emitRedirection on the job.
2347         (-[KWQResourceLoader addData:]): Call receivedData function on the
2348         client directly instead of emitData on the job.
2349         (-[KWQResourceLoader finishJobAndHandle:]): Call receivedAllData function on the
2350         client directly instead of emitResult on the job. Also fixed a potential memory leak
2351         where the handle was not released if the job was 0.
2352
2353         * kwq/KWQSignal.h:
2354         * kwq/KWQSignal.cpp:
2355         * kwq/KWQSlot.h:
2356         * kwq/KWQSlot.cpp:
2357         Removed the job-related signals and slots.
2358
2359         * loader/CachedObject.h: Removed unneeded declaration of TransferJob.
2360
2361         * loader/loader.h:
2362         * loader/loader.cpp:
2363         (WebCore::Loader::servePendingRequests): Use "new TransferJob" instead of "KIO::get".
2364         Also don't connect signals.
2365         (WebCore::Loader::receivedAllData): New name for slotFinished.
2366         (WebCore::Loader::receivedResponse): New name for slotReceivedResponse.
2367         (WebCore::Loader::receivedData): New name for slotData.
2368         (WebCore::Loader::cancelRequests): Changed KIO::Job to TransferJob.
2369         (WebCore::Loader::jobForRequest): Ditto.
2370
2371         * page/Frame.h:
2372         * page/Frame.cpp:
2373         (WebCore::Frame::didOpenURL): Use "new TransferJob" instead of "KIO::get" and
2374         "KIO::http_post". Also don't connect signals.
2375         (WebCore::Frame::receivedAllData): Renamed from slotFinished. Also slightly
2376         cleaned up the logic.
2377         (WebCore::Frame::receivedRedirect): Renamed from slotRedirection.
2378         * page/FramePrivate.h: Changed KIO::TransferJob to WebCore::TransferJob.
2379
2380         * xml/xmlhttprequest.h:
2381         * xml/xmlhttprequest.cpp:
2382         (WebCore::XMLHttpRequest::XMLHttpRequest): Eliminate XMLHttpRequestQObject.
2383         (WebCore::XMLHttpRequest::send): Use "new TransferJob" instead of
2384         "KIO::get" and "KIO::http_post". Also don't connect signals.
2385         (WebCore::XMLHttpRequest::processSyncLoadResults): Change to call the functions
2386         by their new names (names changed to use with TransferJobClient).
2387         (WebCore::XMLHttpRequest::receivedAllData): Renamed from slotFinished.
2388         (WebCore::XMLHttpRequest::receivedRedirect): Renamed from slotRedirection.
2389         (WebCore::XMLHttpRequest::receivedData): Renamed from slotData.
2390
2391 2006-02-26  Darin Adler  <darin@apple.com>
2392
2393         - try again after seeing errors from buildbot
2394
2395         * loader/CachedCSSStyleSheet.cpp:
2396         (WebCore::CachedCSSStyleSheet::checkNotify):
2397         * loader/CachedImage.cpp:
2398         (WebCore::CachedImage::data):
2399         Add __APPLE__ ifdefs to two more uses of response.
2400
2401 2006-02-26  Darin Adler  <darin@apple.com>
2402
2403         - try again after seeing errors from buildbot
2404
2405         * loader/CachedObject.cpp: (WebCore::CachedObject::~CachedObject):
2406         * loader/CachedObject.h: (WebCore::CachedObject::CachedObject):
2407         * loader/loader.cpp:
2408         Add __APPLE__ ifdefs to calls to setResponse and setAllData.
2409
2410         * platform/win/TemporaryLinkStubs.cpp: Add missing includes.
2411
2412 2006-02-26  Darin Adler  <darin@apple.com>
2413
2414         Reviewed by Maciej.
2415
2416         - more Win32 link fixes
2417
2418         * loader/CachedObject.h: Put some Mac-specific stuff inside
2419         __APPLE__ ifdefs.
2420         * platform/win/TemporaryLinkStubs.cpp: Added more stubs.
2421
2422 2006-02-26  Darin Adler  <darin@apple.com>
2423
2424         - try again after seeing errors from buildbot
2425
2426         * platform/win/TemporaryLinkStubs.cpp: Added more includes.
2427
2428 2006-02-26  Darin Adler  <darin@apple.com>
2429
2430         - try again after seeing errors from buildbot
2431
2432         * platform/win/TemporaryLinkStubs.cpp: Added more includes.
2433
2434 2006-02-26  Darin Adler  <darin@apple.com>
2435
2436         Reviewed by Maciej.
2437
2438         - work toward getting the Win32 build to link
2439
2440         * WebCore.vcproj/WebCore/WebCore.vcproj: Added KWQObject.cpp.
2441         * platform/win/TemporaryLinkStubs.cpp: Added more stubs.
2442
2443 2006-02-24  Antti Koivisto  <koivisto@iki.fi>
2444
2445         Reviewed by Hyatt.
2446
2447         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7440
2448         Floats not positioned correctly
2449
2450         Test: fast/block/float/multiple-float-positioning.html
2451
2452         * rendering/RenderBlock.cpp: 
2453         (WebCore::RenderBlock::positionNewFloats): Correct iteration of the float list
2454
2455 2006-02-24  Graham Dennis  <Graham.Dennis@gmail.com>
2456
2457         <http://bugzilla.opendarwin.org/show_bug.cgi?id=6933>
2458         Selection extends beyond focus ring for some contentEditable divs
2459
2460         Reviewed by justin
2461
2462         * rendering/RenderBlock.cpp:
2463         (WebCore::RenderBlock::isSelectionRoot): Have root editable elements paint their
2464         own selection gaps.
2465
2466 2006-02-24  Darin Adler  <darin@apple.com>
2467
2468         Reviewed by Maciej.
2469
2470         - fix <rdar://problem/4456287> REGRESSION: assertion failure at mypage.apple.com
2471           in WebCore::TimerBase::nextFireInterval() const + 100 (Timer.cpp:188)
2472
2473         Test: fast/dom/Window/redirect-with-timer.html
2474
2475         * platform/Timer.h: Made isActive no longer inline. Added inHeap function.
2476         * platform/Timer.cpp: Changed assertions to use inHeap function for clarity.
2477         (WebCore::TimerBase::isActive): Return true for timers that are ready to fire.
2478         They have a next fire time of 0, but they should still be considered active.
2479         (WebCore::TimerBase::checkConsistency): Correct the consistency check. The new
2480         rule is that timers with a next fire time of 0 are not in the heap, and all other
2481         timers are.
2482
2483 2006-02-24  Graham Dennis  <Graham.Dennis@gmail.com>
2484
2485         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7245>
2486         caret does not display at the end of some lines in contenteditable divs
2487
2488         Reviewed by justin
2489
2490         * khtml/html/HTMLElementImpl.cpp:
2491         (WebCore::HTMLElementImpl::setContentEditable):
2492         * page/Frame.cpp:
2493         (WebCore::Frame::applyEditingStyleToElement):
2494         (WebCore::Frame::removeEditingStyleFromElement):
2495
2496 2006-02-24  Eric Seidel  <eseidel@apple.com>
2497
2498         Reviewed by mjs.
2499
2500         Move dom_qname to QualifiedName and dom_atomicstringlist to AtomicStringList.
2501
2502         * WebCore+SVG/KDOMHeaders.h:
2503         * WebCore.vcproj/WebCore/WebCore.vcproj:
2504         * WebCore.xcodeproj/project.pbxproj:
2505         * css/css_base.h:
2506         * dom/AtomicStringList.h: Added.
2507         (WebCore::AtomicStringList::AtomicStringList):
2508         * dom/QualifiedName.cpp: Added.
2509         * dom/QualifiedName.h: Added.
2510         * dom/dom_atomicstringlist.h: Removed.
2511         * dom/dom_elementimpl.h:
2512         * dom/dom_qname.cpp: Removed.
2513         * dom/dom_qname.h: Removed.
2514         * editing/RemoveNodeAttributeCommand.h:
2515         * editing/SetNodeAttributeCommand.h:
2516         * khtml/html/htmlnames.h:
2517         * khtml/html/htmltokenizer.h:
2518         * ksvg2/scripts/make_names.pl: update for new headers
2519
2520 2006-02-24  Eric Seidel  <eseidel@apple.com>
2521
2522         Reviewed by beth.
2523
2524         Made a few methods on frame pure virtual.
2525         Added a bunch of stub functions for win32 linking.
2526
2527         * bridge/mac/MacFrame.h:
2528         * bridge/mac/MacFrame.mm:
2529         (WebCore::MacFrame::print):
2530         (WebCore::MacFrame::canUndo):
2531         (WebCore::MacFrame::canRedo):
2532         (WebCore::MacFrame::canPaste):
2533         * bridge/win/FrameWin.h:
2534         * page/Frame.h:
2535         * platform/win/TemporaryLinkStubs.cpp:
2536         (QTextEdit::sizeWithColumnsAndRows):
2537         (QLineEdit::maxLength):
2538         (QPainter::drawEllipse):
2539         (QTextEdit::setLineHeight):
2540         (QPainter::beginTransparencyLayer):
2541         (QLineEdit::selectedText):
2542         (Widget::setIsSelected):
2543         (QPainter::paintingDisabled):
2544         (QFontMetrics::selectionRectForText):
2545         (QTextEdit::getCursorPosition):
2546         (QSlider::QSlider):
2547         (WebCore::crossCursor):
2548         (WebCore::handCursor):
2549         (WebCore::moveCursor):
2550         (WebCore::iBeamCursor):
2551         (WebCore::waitCursor):
2552         (WebCore::helpCursor):
2553         (WebCore::eastResizeCursor):
2554         (WebCore::northResizeCursor):
2555         (WebCore::northEastResizeCursor):
2556         (WebCore::northWestResizeCursor):
2557         (WebCore::southResizeCursor):
2558         (WebCore::southEastResizeCursor):
2559         (WebCore::southWestResizeCursor):
2560         (WebCore::westResizeCursor):
2561
2562 2006-02-24  Sam Weinig  <sam.weinig@gmail.com>
2563
2564         Reviewed by Hyatt, tweaked and landed by ggaren.
2565
2566         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=5146
2567           max-height/max-width not resizing images with correct aspect ratio
2568
2569         This patch is a port and adaptation of Allan Sandfeld Jensen's (carewolf)
2570         patch of http://bugs.kde.org/show_bug.cgi?id=120107 with the needed
2571         modifications to suit the Webcore tree.  Makes images respect min/max 
2572         sizes and their intrinsic aspect ratios at the same time according to 
2573         CSS 2.1 (http://www.w3.org/TR/CSS21/visudet.html#min-max-widths).  
2574
2575         Test: fast/replaced/maxheight-percent.html
2576         Test: fast/replaced/maxheight-pxs.html
2577         Test: fast/replaced/maxwidth-percent.html
2578         Test: fast/replaced/maxwidth-pxs.html
2579         Test: fast/replaced/minheight-percent.html
2580         Test: fast/replaced/minheight-pxs.html
2581         Test: fast/replaced/minwidth-percent.html
2582         Test: fast/replaced/minwidth-pxs.html
2583
2584         * rendering/render_box.cpp:
2585         (WebCore::RenderBox::calcReplacedWidth):
2586         (WebCore::RenderBox::calcReplacedWidthUsing):
2587         (WebCore::RenderBox::calcReplacedHeight): 
2588         (WebCore::RenderBox::calcReplacedHeightUsing): Calculate percent heights correctly
2589         * rendering/render_image.cpp: Respect aspect ratios and calculate max/min
2590         (WebCore::RenderImage::calcReplacedWidth):
2591         (WebCore::RenderImage::calcReplacedHeight):
2592         (WebCore::RenderImage::calcAspectRatioWidth): Added
2593         (WebCore::RenderImage::calcAspectRatioHeight): Added
2594         (WebCore::RenderImage::calcMinMaxWidth): Added
2595         * rendering/render_image.h:
2596
2597 2006-02-24  Vicki Murley <vicki@apple.com>
2598
2599         - add missing resources for manual-tests/scrolling-nestedframesets.html
2600
2601         * manual-tests/resources/testframe-link_text.html: Added.
2602         * manual-tests/resources/testframeset.html: Added.
2603
2604 2006-02-24  Vicki Murley <vicki@apple.com>
2605
2606         - test case for <rdar://problem/4394910> calling Javascript window.close() does not trigger onbeforeunload event
2607
2608         * manual-tests/onbeforeunload-close_with_javascript.html: Added.
2609
2610 2006-02-24  Eric Seidel  <eseidel@apple.com>
2611
2612         Reviewed by mjs.
2613
2614         Add Path stubs for Win32 build.
2615
2616         * WebCore.vcproj/WebCore/WebCore.vcproj:
2617         * platform/win/TemporaryLinkStubs.cpp:
2618         (Path::Path):
2619         (Path::~Path):
2620         (Path::operator=):
2621         (Path::contains):
2622         (Path::translate):
2623         (Path::boundingRect):
2624
2625 2006-02-24  David Hyatt  <hyatt@apple.com>
2626
2627         In preparation for the elimination of QFont and QFontMetrics, rename methods on RenderStyle.  htmlFont() becomes simply
2628         font().  The old font() method turns into qfont().  Also added a helper for obtaining the fontDescription() directly from
2629         the RenderStyle (without first obtaining the htmlFont()).
2630
2631         Reviewed by darin
2632
2633         * WebCore.xcodeproj/project.pbxproj:
2634         * bindings/objc/DOM.mm:
2635         (-[DOMElement _font]):
2636         * bridge/mac/MacFrame.mm:
2637         (WebCore::MacFrame::attributedString):
2638         (WebCore::MacFrame::fontForSelection):
2639         (WebCore::MacFrame::fontAttributesForSelectionStart):
2640         * css/css_computedstyle.cpp:
2641         (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
2642         * css/css_valueimpl.cpp:
2643         (WebCore::CSSPrimitiveValueImpl::computeLengthFloat):
2644         * css/cssstyleselector.cpp:
2645         (WebCore::CSSStyleSelector::styleForElement):
2646         (WebCore::CSSStyleSelector::pseudoStyleForElement):
2647         (WebCore::CSSStyleSelector::applyProperty):
2648         (WebCore::CSSStyleSelector::checkForTextSizeAdjust):
2649         (WebCore::CSSStyleSelector::checkForGenericFamilyChange):
2650         * dom/DocumentImpl.cpp:
2651         (WebCore::DocumentImpl::recalcStyle):
2652         * editing/visible_text.cpp:
2653         (khtml::TextIterator::exitNode):
2654         * ksvg2/svg/SVGLengthImpl.cpp:
2655         (SVGLengthImpl::updateValue):
2656         * kwq/KWQAccObject.mm:
2657         (AXAttributeStringSetStyle):
2658         * rendering/InlineTextBox.cpp:
2659         (khtml::InlineTextBox::paint):
2660         (khtml::InlineTextBox::offsetForPosition):
2661         * rendering/RenderText.cpp:
2662         (WebCore::RenderText::shouldUseMonospaceCache):
2663         (WebCore::RenderText::font):
2664         (WebCore::RenderText::width):
2665         (WebCore::RenderText::htmlFont):
2666         * rendering/bidi.cpp:
2667         (khtml::RenderBlock::tabWidth):
2668         (khtml::RenderBlock::checkLinesForTextOverflow):
2669         * rendering/render_br.cpp:
2670         (WebCore::RenderBR::lineHeight):
2671         * rendering/render_flexbox.cpp:
2672         (khtml::RenderFlexibleBox::layoutVerticalBox):
2673         * rendering/render_flow.cpp:
2674         (WebCore::RenderFlow::lineHeight):
2675         * rendering/render_form.cpp:
2676         (WebCore::RenderFormElement::setStyle):
2677         (WebCore::RenderFormElement::addIntrinsicMarginsIfAllowed):
2678         * rendering/render_image.cpp:
2679         (WebCore::RenderImage::paint):
2680         * rendering/render_line.cpp:
2681         (WebCore::InlineFlowBox::paintDecorations):
2682         (WebCore::EllipsisBox::paint):
2683         * rendering/render_list.cpp:
2684         (RenderListItem::getAbsoluteRepaintRect):
2685         (RenderListMarker::paint):
2686         * rendering/render_object.cpp:
2687         (WebCore::RenderObject::lineHeight):
2688         * rendering/render_object.h:
2689         (WebCore::RenderObject::font):
2690         * rendering/render_replaced.cpp:
2691         (WebCore::RenderWidget::setStyle):
2692         * rendering/render_style.h:
2693         (khtml::RenderStyle::font):
2694         (khtml::RenderStyle::fontDescription):
2695         (khtml::RenderStyle::qfont):
2696         * rendering/render_theme_mac.mm:
2697         (WebCore::RenderThemeMac::setFontFromControlSize):
2698
2699 2006-02-24  Maciej Stachowiak  <mjs@apple.com>
2700
2701         Reviewed by Eric.
2702
2703         - add link stubs for symbols only referenced from the link stubs file
2704
2705         * platform/win/TemporaryLinkStubs.cpp:
2706         (KWQFileButton::focusPolicy):
2707         (QLineEdit::checksDescendantsForFocus):
2708         (KWQFileButton::baselinePosition):
2709         (QSlider::~QSlider):
2710         (QListBox::~QListBox):
2711         (KWQFileButton::frameGeometry):
2712         (KWQFileButton::~KWQFileButton):
2713         (QTextEdit::focusPolicy):
2714         (QSlider::focusPolicy):
2715         (QListBox::setEnabled):
2716         (QListBox::checksDescendantsForFocus):
2717         (QListBox::focusPolicy):
2718         (QLineEdit::baselinePosition):
2719         (QSlider::sizeHint):
2720         (QLineEdit::~QLineEdit):
2721         (QTextEdit::~QTextEdit):
2722         (QTextEdit::checksDescendantsForFocus):
2723         (QLineEdit::focusPolicy):
2724         (QScrollBar::~QScrollBar):
2725
2726 2006-02-24  Maciej Stachowiak  <mjs@apple.com>
2727
2728         Rubber stamped by Eric.
2729
2730         - fix up font.h inclues to be Font.h to fix build.
2731
2732         * css/css_computedstyle.cpp:
2733         * css/css_valueimpl.cpp:
2734         * platform/Font.cpp:
2735         * rendering/render_style.h:
2736
2737 2006-02-24  Eric Seidel  <eseidel@apple.com>
2738
2739         Reviewed by mjs.
2740
2741         Fix mac build by changing constants to an enum.
2742
2743         * khtml/dom/dom2_events.h:
2744         (DOM::KeyboardEvent::):
2745
2746 2006-02-24  David Hyatt  <hyatt@apple.com>
2747
2748         Move rendering/font to platform/Font.
2749
2750         Reviewed by mjs
2751
2752         * WebCore.xcodeproj/project.pbxproj:
2753         * css/cssstyleselector.cpp:
2754         * platform/Font.cpp: Added.
2755         * platform/Font.h: Added.
2756         * rendering/font.cpp: Removed.
2757         * rendering/font.h: Removed.
2758         * rendering/render_theme_mac.mm:
2759
2760 2006-02-24  Eric Seidel  <eseidel@apple.com>
2761
2762         Reviewed by mjs.
2763
2764         Remove delcarations causing duplicate symbols on win32.
2765
2766         * khtml/dom/dom2_events.cpp:
2767
2768 2006-02-24  Eric Seidel  <eseidel@apple.com>
2769
2770         * bridge/win/FrameWin.cpp: fix line endings
2771
2772 2006-02-24  Eric Seidel  <eseidel@apple.com>
2773
2774         Reviewed by beth.
2775
2776         Removed WebCore:: prefixes added using namespace WebCore, fixes win32 build.
2777
2778         * platform/win/TemporaryLinkStubs.cpp:
2779         (QPainter::save):
2780         (Widget::enableFlushDrawing):
2781         (QPainter::drawHighlightForText):
2782         (QTextEdit::textWithHardLineBreaks):
2783         (QPainter::setPen):
2784         (QPainter::selectedTextBackgroundColor):
2785         (QPainter::fontMetrics):
2786         (Widget::show):
2787         (QLineEdit::setWritingDirection):
2788         (KWQFileButton::sizeForCharacterWidth):
2789         (QTextEdit::sizeWithColumnsAndRows):
2790         (iBeamCursor):
2791         (QPainter::misspellingLineThickness):
2792         (westResizeCursor):
2793         (Widget::isEnabled):
2794         (northWestResizeCursor):
2795         (QPainter::drawEllipse):
2796         (southWestResizeCursor):
2797         (Widget::focusPolicy):
2798         (waitCursor):
2799         (QPainter::endTransparencyLayer):
2800         (ScrollView::addChild):
2801         (Widget::~Widget):
2802         (QListBox::sizeForNumberOfLines):
2803         (FrameView::updateBorder):
2804         (QPainter::drawLineForText):
2805         (QPainter::QPainter):
2806         (QComboBox::focusPolicy):
2807         (QPainter::drawImageAtPoint):
2808         (QPainter::clearShadow):
2809         (eastResizeCursor):
2810         (QFontMetrics::boundingRect):
2811         (QPainter::beginTransparencyLayer):
2812         (northEastResizeCursor):
2813         (Widget::frameGeometry):
2814         (QPainter::addFocusRingRect):
2815         (QPainter::restore):
2816         (Widget::setEnabled):
2817         (QPainter::font):
2818         (QPainter::pen):
2819         (crossCursor):
2820         (Widget::setIsSelected):
2821         (handCursor):
2822         (QLineEdit::text):
2823         (Widget::unlockDrawingFocus):
2824         (QPainter::paintingDisabled):
2825         (northResizeCursor):
2826         (Widget::lockDrawingFocus):
2827         (QPainter::drawLine):
2828         (QPainter::setBrush):
2829         (QPainter::drawText):
2830         (QLineEdit::sizeForCharacterWidth):
2831         (Cursor::~Cursor):
2832         (QFontMetrics::selectionRectForText):
2833         (southResizeCursor):
2834         (moveCursor):
2835         (FrameView::isFrameView):
2836         (helpCursor):
2837         (QTextEdit::setWritingDirection):
2838         (Widget::setDrawingAlpha):
2839         (southEastResizeCursor):
2840         (QPainter::drawScaledAndTiledImage):
2841         (QPainter::drawImage):
2842         (QComboBox::setWritingDirection):
2843         (QComboBox::sizeHint):
2844         (QPainter::drawRect):
2845         (QPainter::drawTiledImage):
2846         (QPainter::clearFocusRing):
2847         (Widget::Widget):
2848         (QTextEdit::text):
2849         (QPainter::drawImageInRect):
2850         (Widget::disableFlushDrawing):
2851         (QPainter::initFocusRing):
2852         (QPainter::drawLineForMisspelling):
2853         (QComboBox::frameGeometry):
2854         (QListBox::setWritingDirection):
2855         (ScrollView::updateContents):
2856
2857 2006-02-24  Darin Adler  <darin@apple.com>
2858
2859         Reviewed by Hyatt.
2860
2861         - moved QScrollView from kwq to platform directory
2862
2863         * kwq/KWQScrollView.h: Removed.
2864         * kwq/KWQScrollView.mm: Removed.
2865
2866         * platform/ScrollBarMode.h: Added. Just the enum for scroll bar mode.
2867         * platform/ScrollView.h: Added. The rest of the former QScrollView.
2868         * platform/mac/ScrollViewMac.mm: Added.
2869
2870         * WebCore.xcodeproj/project.pbxproj: Updated.
2871         * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
2872         * platform/win/TemporaryLinkStubs.cpp: Updated.
2873
2874         * bridge/mac/MacFrame.mm: (WebCore::MacFrame::createFrame):
2875         * khtml/html/html_baseimpl.cpp:
2876         (WebCore::HTMLFrameElementImpl::init):
2877         (WebCore::HTMLFrameElementImpl::parseMappedAttribute):
2878         * page/Frame.cpp: (WebCore::Frame::scrollbarsVisible):
2879         Changed scrolling constants to use new names.
2880
2881         * khtml/ecma/kjs_html.cpp: (KJS::HTMLElement::bodySetter):
2882         Use FrameView instead of QScrollView for a local variable.
2883
2884         * khtml/html/html_baseimpl.h: Use ScrollBarMode instead of
2885         QScrollView::ScrollBarMode.
2886
2887         * kwq/KWQListBox.h: Use WebCore::ScrollView instead of
2888         QScrollView and WebCore::ScrollBarMode instead of QScrollView::ScrollBarMode.
2889         * kwq/KWQTextEdit.h: Ditto.
2890         * kwq/KWQTextEdit.mm:
2891         (QTextEdit::setScrollBarModes): Ditto.
2892         (QTextEdit::focusPolicy): Ditto.
2893
2894         * page/FrameView.h:
2895         * page/FrameView.cpp:
2896         (WebCore::FrameViewPrivate::FrameViewPrivate): Use ScrollBarMode
2897         instead of QScrollView::ScrollBarMode.
2898         (WebCore::FrameView::FrameView): Remove mention of QScrollView.
2899         (WebCore::FrameView::resetScrollBars): Rename QScrollView to ScrollView.
2900         (WebCore::FrameView::applyOverflowToViewport): Use newly-named constants.
2901         (WebCore::FrameView::layout): Ditto.
2902         (WebCore::FrameView::setScrollBarsMode): Rename QScrollView to ScrollView.
2903         (WebCore::FrameView::setVScrollBarMode): Ditto.
2904         (WebCore::FrameView::setHScrollBarMode): Ditto.
2905         (WebCore::FrameView::restoreScrollBar): Ditto.
2906
2907         * platform/mac/MouseEventMac.mm: (WebCore::positionForEvent): Fixed comment.
2908         * platform/mac/WheelEventMac.mm: (WebCore::positionForEvent): Ditto.
2909         * platform/mac/WidgetMac.mm: (WebCore::Widget::getOuterView): Ditto.
2910
2911         * rendering/render_form.cpp: (WebCore::RenderTextArea::setStyle):
2912         Use ScrollBarMode instead of QScrollView::ScrollBarMode, and new constants.
2913         * rendering/render_frames.cpp:
2914         (WebCore::RenderFrameSet::userResize): Changed to use an IntRect to pass to
2915         updateContents so we can remove the overload.
2916         (WebCore::RenderPart::updateWidgetPosition): Remove unnecessary of QScrollView.
2917
2918         * rendering/render_layer.cpp:
2919         (WebCore::RenderLayer::scrollRectToVisible): Use FrameView instead of QScrollView.
2920         (WebCore::RenderLayer::setHasHorizontalScrollbar): Ditto.
2921         (WebCore::RenderLayer::setHasVerticalScrollbar): Ditto.
2922
2923 2006-02-24  Eric Seidel  <eseidel@apple.com>
2924
2925         Reviewed by anders.
2926
2927         Fix the win32 build.
2928
2929         * page/Frame.cpp:
2930         (WebCore::Frame::adjustPageHeight):
2931         (WebCore::Frame::forceLayoutWithPageWidthRange):
2932
2933 2006-02-23  David Hyatt  <hyatt@apple.com>
2934
2935         Rename FontDef to FontDescription and move it into the platform directory.
2936
2937         Reviewed by darin
2938
2939         * WebCore.xcodeproj/project.pbxproj:
2940         * bridge/mac/MacFrame.mm:
2941         (WebCore::MacFrame::attributedString):
2942         * css/css_computedstyle.cpp:
2943         (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
2944         * css/css_valueimpl.cpp:
2945         (WebCore::CSSPrimitiveValueImpl::computeLengthFloat):
2946         * css/cssstyleselector.cpp:
2947         (WebCore::CSSStyleSelector::applyProperty):
2948         (WebCore::CSSStyleSelector::checkForTextSizeAdjust):
2949         (WebCore::CSSStyleSelector::checkForGenericFamilyChange):
2950         (WebCore::CSSStyleSelector::setFontSize):
2951         * css/cssstyleselector.h:
2952         * dom/DocumentImpl.cpp:
2953         (WebCore::DocumentImpl::recalcStyle):
2954         * editing/visible_text.cpp:
2955         (khtml::TextIterator::exitNode):
2956         * platform/FontDescription.h: Added.
2957         (WebCore::FontDescription::):
2958         (WebCore::FontDescription::FontDescription):
2959         (WebCore::FontDescription::operator!=):
2960         (WebCore::FontDescription::family):
2961         (WebCore::FontDescription::firstFamily):
2962         (WebCore::FontDescription::specifiedSize):
2963         (WebCore::FontDescription::computedSize):
2964         (WebCore::FontDescription::italic):
2965         (WebCore::FontDescription::computedPixelSize):
2966         (WebCore::FontDescription::smallCaps):
2967         (WebCore::FontDescription::isAbsoluteSize):
2968         (WebCore::FontDescription::weight):
2969         (WebCore::FontDescription::genericFamily):
2970         (WebCore::FontDescription::usePrinterFont):
2971         (WebCore::FontDescription::setFamily):
2972         (WebCore::FontDescription::setComputedSize):
2973         (WebCore::FontDescription::setSpecifiedSize):
2974         (WebCore::FontDescription::setItalic):
2975         (WebCore::FontDescription::setSmallCaps):
2976         (WebCore::FontDescription::setIsAbsoluteSize):
2977         (WebCore::FontDescription::setWeight):
2978         (WebCore::FontDescription::setGenericFamily):
2979         (WebCore::FontDescription::setUsePrinterFont):
2980         (WebCore::FontDescription::operator==):
2981         * rendering/RenderText.cpp:
2982         (WebCore::RenderText::widthFromCache):
2983         (WebCore::RenderText::trimmedMinMaxWidth):
2984         * rendering/bidi.cpp:
2985         (khtml::RenderBlock::computeHorizontalPositionsForLine):
2986         * rendering/font.cpp:
2987         (khtml::Font::selectionRectForText):
2988         (khtml::Font::drawHighlightForText):
2989         (khtml::Font::drawText):
2990         (khtml::Font::update):
2991         * rendering/font.h:
2992         (WebCore::Font::Font):
2993         (WebCore::Font::operator==):
2994         (WebCore::Font::fontDescription):
2995         (WebCore::Font::isSmallCaps):
2996         (WebCore::Font::wordSpacing):
2997         (WebCore::Font::floatWidth):
2998         (WebCore::Font::checkSelectionPoint):
2999         (WebCore::Font::width):
3000         * rendering/render_line.cpp:
3001         (WebCore::InlineFlowBox::placeBoxesHorizontally):
3002         * rendering/render_list.cpp:
3003         (RenderListItem::getAbsoluteRepaintRect):
3004         * rendering/render_style.h:
3005         (khtml::RenderStyle::wordSpacing):
3006         (khtml::RenderStyle::letterSpacing):
3007         (khtml::RenderStyle::setFontDescription):
3008         (khtml::RenderStyle::setWordSpacing):
3009         (khtml::RenderStyle::setLetterSpacing):
3010         * rendering/render_theme_mac.mm:
3011         (WebCore::RenderThemeMac::setFontFromControlSize):
3012
3013 2006-02-23  Maciej Stachowiak  <mjs@apple.com>
3014
3015         - fix build by making some pointless changes to files that Xcode doesn't 
3016         rebuild otherwise
3017
3018         * bindings/js/JSDOMCore.cpp:
3019         * bindings/js/JSDOMEvents.cpp:
3020         * dom/Element.idl:
3021         * dom/WheelEvent.idl:
3022         
3023         - add -Y 3 flag to linking; this makes the linker say what files reference 
3024         unresolved symbols
3025         
3026         * WebCore.xcodeproj/project.pbxproj:
3027
3028 2006-02-23  Darin Adler  <darin@apple.com>
3029
3030         - try to fix Windows build
3031
3032         * platform/win/TemporaryLinkStubs.cpp: Removed childX/Y stubs.
3033
3034 2006-02-23  Darin Adler  <darin@apple.com>
3035
3036         - try to fix Windows build
3037
3038         * platform/win/TemporaryLinkStubs.cpp: Removed QPalette-related stubs.
3039
3040         - remove unused forwarding headers
3041
3042         * ForwardingHeaders/kurl.h: Removed.
3043         * ForwardingHeaders/qlist.h: Removed.
3044         * ForwardingHeaders/qregion.h: Removed.
3045         * ForwardingHeaders/qsortedlist.h: Removed.
3046
3047 2006-02-23  Darin Adler  <darin@apple.com>
3048
3049         Reviewed by Maciej.
3050
3051         - removed QPalette, QRegion, QPrinter
3052         - added Path to replace QRegion
3053         - removed unused QScrollView functions
3054
3055         * ForwardingHeaders/qpalette.h: Removed.
3056         * kwq/KWQPalette.h: Removed.
3057         * kwq/KWQPalette.mm: Removed.
3058         * kwq/KWQPrinter.h: Removed.
3059         * kwq/KWQRegion.cpp: Removed.
3060         * kwq/KWQRegion.h: Removed.
3061
3062         * platform/Path.h: Added. Replaces QRegion.
3063         * platform/cg: Added.
3064         * platform/cg/PathCG.cpp: Added.
3065
3066         * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for file changes.
3067         * WebCore.xcodeproj/project.pbxproj: Ditto.
3068
3069         * bridge/mac/MacFrame.mm: Removed use of KWQPrinter.h.
3070         (WebCore::MacFrame::khtmlMouseMoveEvent): Removed use of viewport().
3071         * bridge/mac/WebCoreFrameBridge.mm: Removed use of KWQPrinter.h.
3072         * khtml/html/html_imageimpl.cpp:
3073         (WebCore::HTMLAreaElementImpl::getRect): Replaced QRegion with Path.
3074         (WebCore::HTMLAreaElementImpl::getRegion): Ditto.
3075         * khtml/html/html_imageimpl.h: Ditto.
3076         * kwq/KWQPainter.mm: Removed use of QRegion.
3077         * page/Frame.cpp: (WebCore::Frame::~Frame): Removed use of viewport().
3078         * page/FrameView.cpp:
3079         (WebCore::FrameView::FrameView): Ditto.
3080         (WebCore::FrameView::viewportMouseMoveEvent): Ditto.
3081         * rendering/render_frames.cpp: (WebCore::RenderFrameSet::userResize): Ditto.
3082         * rendering/render_layer.cpp: (WebCore::RenderLayer::scrollRectToVisible): Ditto.
3083
3084         * kwq/KWQScrollView.h: Removed viewport(), hasVerticalScrollBar(),
3085         hasHorizontalScrollBar(), childX(), childY().
3086         * kwq/KWQScrollView.mm: Ditto.
3087
3088         * rendering/render_box.cpp: (WebCore::RenderBox::paintBackgroundExtended):
3089         Removed use of QPalette that always yields white.
3090         * rendering/render_canvas.cpp: (WebCore::RenderCanvas::paintBoxDecorations):
3091         Ditto.
3092
3093         * platform/Widget.h:
3094         * platform/mac/WidgetMac.mm: Removed palette() and setPalette().
3095
3096         * kwq/KWQLineEdit.h: Replaced setPalette with setColors.
3097         * kwq/KWQLineEdit.mm: (QLineEdit::setColors): Replaced setPalette.
3098         * kwq/KWQTextEdit.h: Ditto.
3099         * kwq/KWQTextEdit.mm: (QTextEdit::setColors): Ditto.
3100
3101         * rendering/render_form.cpp:
3102         (WebCore::RenderFormElement::updateFromElement): Removed call to setPalette.
3103         (WebCore::RenderLineEdit::updateFromElement): Added call to setColors.
3104         (WebCore::RenderTextArea::updateFromElement): Ditto.
3105
3106         * rendering/render_replaced.cpp: (WebCore::RenderWidget::paint):
3107         Removed use of childX and childY functions.
3108
3109 2006-02-23  Maciej Stachowiak  <mjs@apple.com>
3110
3111         Reviewed by Darin.
3112
3113         - add KURL to windows build and fix its compile issues
3114         http://bugzilla.opendarwin.org/show_bug.cgi?id=7439
3115
3116         * WebCore.vcproj/WebCore/WebCore.vcproj:
3117         * platform/KURL.cpp:
3118
3119 2006-02-23  Maciej Stachowiak  <mjs@apple.com>
3120
3121         - fix build (header name changed)
3122
3123         * platform/mac/KURLMac.mm:
3124
3125 2006-02-23  Maciej Stachowiak  <mjs@apple.com>
3126
3127         Reviewed by Eric.
3128
3129         - add temporary stubs that call abort() for functions only called from render and editing code 
3130         http://bugzilla.opendarwin.org/show_bug.cgi?id=7429
3131
3132         This gets rid of a couple hundred link errors.
3133
3134         * WebCore.vcproj/WebCore/WebCore.vcproj:
3135         * kwq/KWQFontMetrics.h:
3136         * kwq/KWQSignal.h:
3137         (KWQSignal::KWQSignal):
3138         * platform/win/TemporaryLinkStubs.cpp: Added.
3139         (notImplemented):
3140         (QLineEdit::selectAll):
3141         (WebCore::QPainter::save):
3142         (WebCore::Widget::enableFlushDrawing):
3143         (WebCore::QPainter::drawHighlightForText):
3144         (QFont::setPrinterFont):
3145         (QTextEdit::textWithHardLineBreaks):
3146         (QLineEdit::cursorPosition):
3147         (WebCore::QPainter::setPen):
3148         (WebCore::QPainter::selectedTextBackgroundColor):
3149         (WebCore::QPainter::fontMetrics):
3150         (WebCore::Widget::show):
3151         (QFont::setItalic):
3152         (QSlider::setValue):
3153         (QLineEdit::addSearchResult):
3154         (KWQFileButton::click):
3155         (QLineEdit::setWritingDirection):
3156         (KWQFileButton::sizeForCharacterWidth):
3157         (QTextEdit::sizeWithColumnsAndRows):
3158         (WebCore::iBeamCursor):
3159         (QComboBox::clear):
3160         (WebCore::QPainter::misspellingLineThickness):
3161         (QLineEdit::maxLength):
3162         (WebCore::westResizeCursor):
3163         (WebCore::Widget::isEnabled):
3164         (WebCore::northWestResizeCursor):
3165         (QTextEdit::selectionEnd):
3166         (QFont::determinePitch):
3167         (QTextEdit::setScrollBarModes):
3168         (WebCore::QPainter::drawEllipse):
3169         (WebCore::southWestResizeCursor):
3170         (QTextEdit::setReadOnly):
3171         (QListBox::appendItem):
3172         (WebCore::Widget::focusPolicy):
3173         (QTextEdit::selectAll):
3174         (WebCore::waitCursor):
3175         (WebCore::QPainter::endTransparencyLayer):
3176         (QScrollView::addChild):
3177         (QTextEdit::setDisabled):
3178         (QScrollBar::scroll):
3179         (WebCore::Widget::~Widget):
3180         (QListBox::sizeForNumberOfLines):
3181         (QScrollView::resizeContents):
3182         (QLineEdit::selectionStart):
3183         (QLineEdit::QLineEdit):
3184         (WebCore::FrameView::updateBorder):
3185         (QLineEdit::hasSelectedText):
3186         (QListBox::doneAppendingItems):
3187         (QScrollView::inWindow):
3188         (QScrollBar::setValue):
3189         (QTextEdit::hasSelectedText):
3190         (QTextEdit::selectionStart):
3191         (QFont::setWeight):
3192         (QScrollView::scrollXOffset):
3193         (QListBox::isSelected):
3194         (QLineEdit::setReadOnly):
3195         (WebCore::QPainter::drawLineForText):
3196         (QObject::disconnect):
3197         (WebCore::QPainter::QPainter):
3198         (QComboBox::~QComboBox):
3199         (QComboBox::focusPolicy):
3200         (WebCore::QPainter::drawImageAtPoint):
3201         (WebCore::QPainter::clearShadow):
3202         (QTextEdit::setLineHeight):
3203         (QMouseEvent::QMouseEvent):
3204         (WebCore::eastResizeCursor):
3205         (QScrollBar::setKnobProportion):
3206         (QFontMetrics::boundingRect):
3207         (QTextEdit::setSelectionStart):
3208         (WebCore::QPainter::beginTransparencyLayer):
3209         (WebCore::northEastResizeCursor):
3210         (WebCore::Widget::frameGeometry):
3211         (QListBox::setSelected):
3212         (WebCore::QPainter::addFocusRingRect):
3213         (QTextEdit::setCursorPosition):
3214         (WebCore::QPainter::restore):
3215         (QFontMetrics::width):
3216         (WebCore::Widget::setEnabled):
3217         (QTextEdit::setSelectionEnd):
3218         (QComboBox::populate):
3219         (QScrollView::setStaticBackground):
3220         (WebCore::QPainter::font):
3221         (QTextEdit::setAlignment):
3222         (QLineEdit::setCursorPosition):
3223         (WebCore::Widget::palette):
3224         (WebCore::QPainter::pen):
3225         (QFontMetrics::descent):
3226         (QListBox::QListBox):
3227         (QFontMetrics::ascent):
3228         (QLineEdit::selectedText):
3229         (WebCore::crossCursor):
3230         (WebCore::Widget::setIsSelected):
3231         (WebCore::handCursor):
3232         (QLineEdit::text):
3233         (WebCore::Widget::unlockDrawingFocus):
3234         (QLineEdit::setLiveSearch):
3235         (WebCore::QPainter::paintingDisabled):
3236         (WebCore::northResizeCursor):
3237         (QComboBox::QComboBox):
3238         (QSlider::setMaxValue):
3239         (WebCore::Widget::lockDrawingFocus):
3240         (WebCore::QPainter::drawLine):
3241         (WebCore::QPainter::setBrush):
3242         (QTextEdit::setSelectionRange):
3243         (WebCore::QPainter::drawText):
3244         (QScrollView::scrollPointRecursively):
3245         (QLineEdit::sizeForCharacterWidth):
3246         (WebCore::Cursor::~Cursor):
3247         (QFontMetrics::selectionRectForText):
3248         (WebCore::southResizeCursor):
3249         (QScrollView::suppressScrollBars):
3250         (QFontMetrics::checkSelectionPoint):
3251         (QTextEdit::getCursorPosition):
3252         (WebCore::moveCursor):
3253         (WebCore::FrameView::isFrameView):
3254         (QScrollBar::setSteps):
3255         (QLineEdit::setMaxLength):
3256         (QComboBox::baselinePosition):
3257         (QComboBox::appendItem):
3258         (WebCore::helpCursor):
3259         (QTextEdit::setWritingDirection):
3260         (WebCore::Widget::setDrawingAlpha):
3261         (QSlider::QSlider):
3262         (WebCore::southEastResizeCursor):
3263         (QScrollView::setVScrollBarMode):
3264         (WebCore::QPainter::drawScaledAndTiledImage):
3265         (QScrollView::scrollYOffset):
3266         (WebCore::QPainter::drawImage):
3267         (QComboBox::setCurrentItem):
3268         (QFontMetrics::height):
3269         (QComboBox::setWritingDirection):
3270         (QScrollView::setScrollBarsMode):
3271         (QComboBox::sizeHint):
3272         (WebCore::QPainter::drawRect):
3273         (QFont::setPixelSize):
3274         (QLineEdit::setSelection):
3275         (QLineEdit::setMaxResults):
3276         (QListBox::clear):
3277         (QLineEdit::edited):
3278         (WebCore::QPainter::drawTiledImage):
3279         (WebCore::QPainter::clearFocusRing):
3280         (WebCore::Widget::Widget):
3281         (QTextEdit::text):
3282         (WebCore::QPainter::drawImageInRect):
3283         (WebCore::Widget::disableFlushDrawing):
3284         (WebCore::QPainter::initFocusRing):
3285         (QSlider::setMinValue):
3286         (QTextEdit::setWordWrap):
3287         (WebCore::QPainter::drawLineForMisspelling):
3288         (QSlider::value):
3289         (QListBox::setSelectionMode):
3290         (QFontMetrics::lineSpacing):
3291         (QLineEdit::setEdited):
3292         (QComboBox::frameGeometry):
3293         (QListBox::setWritingDirection):
3294         (QLineEdit::setAlignment):
3295         (QScrollView::updateContents):
3296         (QFontMetrics::floatWidth):
3297         (QScrollView::setHScrollBarMode):
3298
3299 2006-02-23  Maciej Stachowiak  <mjs@apple.com>
3300
3301         Reviewed by Eric.
3302         
3303         - Move KURL from kwq to platform, make portable
3304         http://bugzilla.opendarwin.org/show_bug.cgi?id=7437
3305
3306         * WebCore.xcodeproj/project.pbxproj:
3307         * css/css_ruleimpl.cpp:
3308         * css/cssparser.cpp:
3309         * css/cssstyleselector.cpp:
3310         * dom/DocumentImpl.h:
3311         * khtml/html/html_baseimpl.cpp:
3312         * khtml/html/html_documentimpl.cpp:
3313         * khtml/html/html_headimpl.cpp:
3314         * khtml/xbl/xbl_binding.cpp:
3315         * ksvg2/svg/SVGDocumentImpl.cpp:
3316         * kwq/KWQTextCodec.cpp:
3317         (QTextCodec::codecForName):
3318         (QTextCodec::utf8Codec):
3319         (QTextCodec::codecForNameEightBitOnly):
3320         (QTextCodec::codecForLocale):
3321         (QTextCodec::name):
3322         (QTextCodec::makeDecoder):
3323         * kwq/KWQTextCodec.h:
3324         * loader/CachedObject.cpp:
3325         * loader/DocLoader.cpp:
3326         * page/Frame.h:
3327         * platform/KURL.cpp: Added.
3328         (KURL::decode_string):
3329         (encodeRelativeString):
3330         * platform/KURL.h: Added.
3331         * platform/mac/KURLMac.mm: Added.
3332         (KURL::getNSURL):
3333         * xml/xmlhttprequest.h:
3334
3335 2006-02-23  Darin Adler  <darin@apple.com>
3336
3337         Reviewed by John Sullivan.
3338
3339         - moved QMouseEvent, QKeyEvent, QWheelEvent, and "Foundation extras"
3340           from kwq to platform directory
3341         - moved history function from kwq to bridge directory
3342         - eliminated QEvent, MousePressEvent, MouseDoubleClickEvent, MouseMoveEvent,
3343           MoveReleaseEvent, and DrawContents classes
3344         - merged NodeImpl::MouseEvent and the MouseEvent from khtml_events.h into
3345           a single class in the page directory
3346         - broke khtmllayout.h out into a file for the Length structure in the css
3347           directory and a file for the GapRects structure in the rendering directory
3348         - redid the Length structure to work more portably by not relying on bitfield
3349           layout and improve the names to no longer explicitly mention "width"
3350         - reduced use of QGuardedPtr and other uses of the QObject "destroyed" signal
3351
3352         * ForwardingHeaders/kparts: Removed.
3353         * ForwardingHeaders/qevent.h: Removed.
3354         * khtml/khtml_events.cpp: Removed.
3355         * khtml/khtml_events.h: Removed.
3356         * khtml/misc/khtmllayout.h: Removed.
3357         * kwq/KWQEvent.h: Removed.
3358         * kwq/KWQEvent.mm: Removed.
3359         * kwq/KWQFoundationExtras.h: Removed.
3360         * kwq/KWQKHistoryProvider.mm: Removed.
3361         * kwq/KWQKPartsHistoryProvider.h: Removed.
3362
3363         * bridge/History.h: Added.
3364         * bridge/mac/HistoryMac.mm: Added.
3365         * css/Length.h: Added.
3366         * page/MouseEventWithHitTestResults.h: Added.
3367         * platform/KeyEvent.h: Added.
3368         * platform/MouseEvent.h: Added.
3369         * platform/WheelEvent.h: Added.
3370         * platform/mac/FoundationExtras.h: Added.
3371         * platform/mac/KeyEventMac.mm: Added.
3372         * platform/mac/MouseEventMac.mm: Added.
3373         * platform/mac/WheelEventMac.mm: Added.
3374         * rendering/GapRects.h: Added.
3375
3376         * WebCore.xcodeproj/project.pbxproj: Updated for above changes.
3377         * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for above changes.
3378
3379         * bridge/mac/MacFrame.h: Removed unused parameters from urlSelected functions.
3380         Replaced MouseEvent, MousePressEvent, MouseMoveEvent, and MouseReleaseEvent
3381         with MouseEventWithHitTestResults.
3382         * bridge/mac/MacFrame.mm:
3383         (WebCore::MacFrame::urlSelected): Removed unused parameters.
3384         (WebCore::MacFrame::wheelEvent): Changed to use WheelEvent.
3385         (WebCore::MacFrame::keyEvent): Changed to use KeyEvent.
3386         (WebCore::MacFrame::khtmlMousePressEvent): Changed parameter type.
3387         (WebCore::MacFrame::khtmlMouseMoveEvent): Ditto.
3388         (WebCore::MacFrame::khtmlMouseReleaseEvent): Ditto.
3389         (WebCore::MacFrame::passSubframeEventToSubframe): Ditto.
3390         (WebCore::MacFrame::mouseDown): Changed to use MouseEvent.
3391         (WebCore::MacFrame::mouseDragged): Ditto.
3392         (WebCore::MacFrame::mouseUp): Ditto.
3393         (WebCore::MacFrame::mouseMoved): Ditto.
3394         (WebCore::MacFrame::sendContextMenuEvent): Ditto.
3395
3396         * css/csshelper.h: Removed a bunch of unused declarations.
3397
3398         * dom/DocumentImpl.h:
3399         * dom/DocumentImpl.cpp:
3400         (WebCore::DocumentImpl::prepareMouseEvent): Changed to take a MouseEvent
3401         and return a MouseEventWithHitTestResults.
3402         (WebCore::DocumentImpl::defaultEventHandler): Changed to use KeyEvent.
3403
3404         * dom/NodeImpl.h: Removed NodeImpl::MouseEvent and NodeImpl::MouseEventType.
3405         * dom/NodeImpl.cpp:
3406         (WebCore::NodeImpl::dispatchMouseEvent): Changed to always get the type and
3407         detail values from the caller, never from the event. Changed to use MouseEvent.
3408         (WebCore::NodeImpl::dispatchKeyEvent): Changed to use KeyEvent.
3409         (WebCore::NodeImpl::dispatchWheelEvent): Changed to use WheelEvent.
3410
3411         * dom/dom2_eventsimpl.h:
3412         * dom/dom2_eventsimpl.cpp:
3413         (WebCore::KeyboardEventImpl::KeyboardEventImpl): Changed to use KeyEvent.
3414         (WebCore::KeyboardEventImpl::charCode): Ditto.
3415
3416         * dom/dom_elementimpl.h: Removed unused mouseEventHandler function.
3417
3418         * khtml/ecma/domparser.h: Use RefPtr instead of QGuardedPtr to hold the reference
3419         to the document.
3420
3421         * khtml/ecma/kjs_proxy.h: (WebCore::KJSProxyImpl::haveInterpreter): Added. For
3422         use in the Frame destructor so we can get an existing KJS::Window object without
3423         creating a new interpreter and window object.
3424
3425         * khtml/ecma/kjs_window.h: Merged WindowQObject into Window. Changed all the
3426         guarded pointers to Frame to use plain old pointers that are cleared by the
3427         Frame explicitly (by the function disconnectFrame). Made the pointers to all
3428         the sub-objects of KJS::Window be mutable so we don't have to const_cast in
3429         the functions to get (and lazily create) them.
3430         * khtml/ecma/kjs_window.cpp:
3431         (KJS::DOMWindowTimer::DOMWindowTimer): Use Window* instead of WindowQObject*.
3432         (KJS::History::disconnectFrame): Added. Clears m_frame.
3433         (KJS::FrameArray::disconnectFrame): Added. Clears m_frame.
3434         (KJS::Window::Window): Removed code to create a WindowQObject.
3435         (KJS::Window::~Window): Removed code to delete a WindowQObject.
3436         (KJS::Window::location): Remove now-unneeded const_cast.
3437         (KJS::Window::selection): Ditto.
3438         (KJS::Window::locationbar): Ditto.
3439         (KJS::Window::menubar): Ditto.
3440         (KJS::Window::personalbar): Ditto.
3441         (KJS::Window::statusbar): Ditto.
3442         (KJS::Window::toolbar): Ditto.
3443         (KJS::Window::scrollbars): Ditto.
3444         (KJS::Window::getValueProperty): Update since m_frame is now a raw pointer.
3445         (KJS::Window::getOwnPropertySlot): Ditto.
3446         (KJS::Window::toBoolean): Ditto.
3447         (KJS::Window::scheduleClose): Remove assert that WindowQObject* is not null.
3448         (KJS::Window::isSafeScript): Update since m_frame is now a raw pointer.
3449         (KJS::Window::clear): Remove code to delete a WindowQObject. Added a call
3450         to clearAllTimeouts instead.
3451         (KJS::Window::clearAllTimeouts): Added. Does equivalent of the WindowQObject
3452         destructor.
3453         (KJS::Window::installTimeout): Moved to Window from WindowQObject.
3454         (KJS::Window::pauseTimeouts): Ditto.
3455         (KJS::Window::resumeTimeouts): Ditto.
3456         (KJS::Window::clearTimeout): Ditto.
3457         (KJS::Window::timerFired): Ditto.
3458         (KJS::Window::disconnectFrame): Added. Sets all the frame pointers to 0.
3459         (KJS::FrameArray::getOwnPropertySlot): Update since m_frame is now a raw pointer.
3460         (KJS::Location::getOwnPropertySlot): Ditto.
3461         (KJS::Location::put): Ditto.
3462         (KJS::Selection::getOwnPropertySlot): Ditto.
3463         (KJS::BarInfo::getOwnPropertySlot): Ditto.
3464
3465         * khtml/html/html_baseimpl.h: Forward-declare Length instead of including khtmllayout.h.
3466         * khtml/html/html_imageimpl.h: Ditto.
3467
3468         * khtml/html/html_inlineimpl.cpp: (WebCore::HTMLAnchorElementImpl::defaultEventHandler):
3469         Changed to use KeyEvent and removed the code to extract the button and state from the
3470         DOM even to pass to urlSelected.
3471         * ksvg2/svg/SVGAElementImpl.cpp: (SVGAElementImpl::defaultEventHandler): Ditto.
3472
3473         * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::timerFired): Change to use
3474         a RefPtr instead of a QGuardedPtr.
3475
3476         * khtml/misc/helper.h:
3477         * khtml/misc/helper.cpp: Removed printpainter and setPrintPainter.
3478
3479         * ksvg2/svg/SVGDocumentImpl.h:
3480         * ksvg2/svg/SVGDocumentImpl.cpp: (WebCore::SVGDocumentImpl::dispatchKeyEvent):
3481         Change to use KeyEvent.
3482
3483         * kwq/KWQComboBox.mm:
3484         (-[KWQPopUpButton becomeFirstResponder]):
3485         (-[KWQPopUpButton resignFirstResponder]):
3486         * kwq/KWQFileButton.mm:
3487         (KWQFileButton::focusChanged):
3488         * kwq/KWQListBox.mm:
3489         (-[KWQTableView becomeFirstResponder]):
3490         (-[KWQTableView resignFirstResponder]):
3491         * kwq/KWQSlider.mm:
3492         (-[KWQSlider becomeFirstResponder]):
3493         (-[KWQSlider resignFirstResponder]):
3494         * kwq/KWQTextArea.mm:
3495         (-[KWQTextAreaTextView becomeFirstResponder]):
3496         (-[KWQTextAreaTextView resignFirstResponder]):
3497         * kwq/KWQTextField.mm:
3498         (-[KWQTextFieldController setHasFocus:]):
3499         Updated to use new eventFilterFocusIn/Out instead of the general purpose
3500         eventFilter function. This allows us to remove QEvent and the focus events.
3501
3502         * kwq/KWQNamespace.h: Removed ButtonState.
3503
3504         * kwq/KWQObject.h:
3505         * kwq/KWQObject.cpp: Replaced eventFilter function with eventFilterFocusIn and
3506         eventFilterFocusOut, allowing us to remove QEvent. Removed event function.
3507
3508         * kwq/KWQSlot.cpp:
3509         (KWQSlot::KWQSlot): Removed the parentDestroyed slot.
3510         (KWQSlot::call): Ditto.
3511
3512         * page/Frame.h:
3513         * page/Frame.cpp:
3514         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader): Renamed from
3515         PartStyleSheetLoader. Removed a lot of unneeded null checks. Use a
3516         raw Frame pointer instead of a QGuardedPtr, and count on the Frame
3517         to delete us when it's being deleted.
3518         (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader): No longer
3519         a virtual function. This is not a polymorphic class.
3520         (WebCore::UserStyleSheetLoader::setStyleSheet): Remove code to delete
3521         ourselves -- that's now the frame's responsibility.
3522         (WebCore::Frame::~Frame): Call disconnectFrame on the KJS::Window and
3523         delete m_userStyleSheetLoader.
3524         (WebCore::Frame::changeLocation): Update since urlSelected no longer takes
3525         button and state parameters.
3526         (WebCore::Frame::setUserStyleSheet): Delete existing loader to stop a load
3527         in progress before starting a new load. Store reference to loader.
3528         (WebCore::Frame::urlSelected): Remove button and state parameters and unused
3529         local variable hasTarget.
3530         (WebCore::Frame::selectClosestWordFromMouseEvent): Change from QMouseEvent
3531         to MouseEvent.
3532         (WebCore::Frame::handleMousePressEventDoubleClick): Change from MousePressEvent
3533         to MouseEventWithHitTestResults.
3534         (WebCore::Frame::handleMousePressEventTripleClick): Ditto.
3535         (WebCore::Frame::handleMousePressEventSingleClick): Ditto.
3536         (WebCore::Frame::khtmlMousePressEvent): Ditto.
3537         (WebCore::Frame::handleMouseMoveEventSelection): Change from MouseMoveEvent
3538         to MouseEventWithHitTestResults.
3539         (WebCore::Frame::khtmlMouseMoveEvent): Ditto.
3540         (WebCore::Frame::khtmlMouseReleaseEvent): Change from MouseReleaseEvent
3541         to MouseEventWithHitTestResults.
3542         (WebCore::Frame::khtmlMouseDoubleClickEvent): Change from
3543         MouseReleaseDoubleClickEvent to MouseEventWithHitTestResults.
3544         (WebCore::Frame::passWidgetMouseDownEventToWidget): Change from
3545         NodeImpl::MouseEvent to MouseEventWithHitTestResults.
3546
3547         * page/FramePrivate.h: Added m_userStyleSheetLoader.
3548
3549         * page/FrameView.h:
3550         * page/FrameView.cpp:
3551         (WebCore::FrameView::viewportMousePressEvent): Change from QMouseEvent to
3552         MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults.
3553         (WebCore::FrameView::viewportMouseDoubleClickEvent): Ditto.
3554         (WebCore::selectCursor): Ditto.
3555         (WebCore::FrameView::viewportMouseMoveEvent): Ditto.
3556         (WebCore::FrameView::viewportMouseReleaseEvent): Ditto.
3557         (WebCore::FrameView::keyPressEvent): Change from QKeyEvent to KeyEvent.
3558         (WebCore::FrameView::dispatchMouseEvent): Change from QMouseEvent to
3559         MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults.
3560         (WebCore::FrameView::viewportWheelEvent): Change from QWheelEvent to
3561         WheelEvent.
3562         (WebCore::FrameView::hoverTimerFired): Update for change to prepareMouseEvent
3563         parameters.
3564
3565         * platform/Widget.h:
3566         * platform/Widget.cpp: Removed event function.
3567
3568         * rendering/render_form.h: Removed LineEditWidget, ComboBoxWidget, TextAreaWidget.
3569         * rendering/render_form.cpp:
3570         (WebCore::RenderFormElement::slotClicked): Changed from QMouseEvent to MouseEvent.
3571         (WebCore::RenderFormElement::addIntrinsicMarginsIfAllowed): Updated for changes
3572         to the Length class.
3573         (WebCore::RenderSelect::setWidgetWritingDirection): Updated for removal of
3574         ComboBoxWidget.
3575         (WebCore::RenderSelect::slotSelected): Ditto.
3576         (WebCore::RenderSelect::createComboBox): Ditto.
3577
3578         * rendering/render_replaced.h:
3579         * rendering/render_replaced.cpp:
3580         (WebCore::RenderWidget::destroy): Updated since removeEventFilter no longer takes
3581         a parameter.
3582         (WebCore::RenderWidget::setQWidget): Ditto.
3583         (WebCore::RenderWidget::eventFilterFocusIn): Added. Replaces eventFilter.
3584         (WebCore::RenderWidget::eventFilterFocusOut): Ditto.
3585
3586         * css/css_computedstyle.cpp:
3587         (WebCore::valueForLength):
3588         (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
3589         * css/cssstyleselector.cpp:
3590         (WebCore::checkPseudoState):
3591         (WebCore::CSSStyleSelector::applyProperty):
3592         (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
3593         * khtml/html/html_imageimpl.cpp:
3594         (WebCore::HTMLAreaElementImpl::getRegion):
3595         * rendering/RenderBlock.cpp:
3596         (WebCore::RenderBlock::MarginInfo::MarginInfo):
3597         (WebCore::RenderBlock::isSelfCollapsingBlock):
3598         (WebCore::RenderBlock::layoutBlock):
3599         (WebCore::RenderBlock::determineHorizontalPosition):
3600         (WebCore::RenderBlock::leftRelOffset):
3601         (WebCore::RenderBlock::rightRelOffset):
3602         (WebCore::RenderBlock::calcMinMaxWidth):
3603         (WebCore::getBPMWidth):
3604         (WebCore::RenderBlock::calcInlineMinMaxWidth):
3605         (WebCore::RenderBlock::calcBlockMinMaxWidth):
3606         * rendering/RenderTable.cpp:
3607         (WebCore::RenderTable::calcWidth):
3608         (WebCore::RenderTable::layout):
3609         * rendering/RenderTableCell.cpp:
3610         (WebCore::RenderTableCell::calcMinMaxWidth):
3611         * rendering/RenderTableSection.cpp:
3612         (WebCore::RenderTableSection::addChild):
3613         (WebCore::RenderTableSection::addCell):
3614         (WebCore::RenderTableSection::calcRowHeight):
3615         (WebCore::RenderTableSection::layoutRows):
3616         * rendering/RenderText.h: