2006-10-12 Nikolas Zimmermann <zimmermann@kde.org>
[WebKit-https.git] / WebCore / ChangeLog
1 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
2
3         Reviewed by Maciej.
4
5         Trying to fix "DRT hangs on certain testcases" like fast/dom/Document/document-reopen.html
6         document.open(); document.write(..); and NO document.close(). On the Qt platform this
7         leaves a HTMLDocument which is still in parsing mode (parsing() always returns true).
8         DRT waits forever, but m_frame->isComplete() is never true due the parsing mode problem.
9
10         Hmpf, this took me nine hours to debug today.
11         Result: Couldn't find the real fix, going for a workaround for now.
12         
13         540 minutes, 1 line of code changed after all -> 0,0019 lines per minute.
14
15         * platform/qt/FrameQt.cpp:
16         (WebCore::FrameQt::handledOnloadEvents): Call endIfNotLoading() manually.
17         * platform/qt/FrameQtClient.cpp:
18         (WebCore::FrameQtClientDefault::receivedData): Use write() again instead of addData().
19
20 2006-10-12  Adam Roben  <aroben@apple.com>
21
22         Reviewed by Adele.
23
24         Move popup menu code out of rendering/ and into platform/.
25         RenderPopupMenu becomes PopupMenu, the
26         RenderPopupMenuMac/RenderPopupMenuWin subclasses and all the associated
27         virtual methods go away, RenderTheme gets to stop worrying about popup
28         menus, PopupMenu becomes ref-counted, and everyone becomes happy.
29
30         * WebCore.vcproj/WebCore/WebCore.vcproj: Move files within project.
31         * WebCore.xcodeproj/project.pbxproj: Ditto.
32         * html/HTMLSelectElement.cpp: Remove unnecessary #include.
33         * platform/PopupMenu.cpp: Moved from rendering/RenderPopupMenu.cpp.
34         Also renamed showPopup()/hidePopup() to show()/hide() to disambiguate
35         from RenderMenuList::showPopup/hidePopup.
36         (WebCore::PopupMenu::create): New static creation method to hand back a
37         PassRefPtr<PopupMenu>.
38         (WebCore::PopupMenu::addItems): This platform-independent method should
39         be called by PopupMenu::populate when the platform-specific
40         implementation is ready to receive the menu items. Fixed an ASSERT
41         while I was at it.
42         * platform/PopupMenu.h: Moved from rendering/RenderPopupMenu.h. No more
43         need for virtual methods.
44         (WebCore::PopupMenu::wasClicked):
45         (WebCore::PopupMenu::setWasClicked):
46         (WebCore::PopupMenu::popupHandle):
47         * platform/mac/PopupMenuMac.mm: Moved from
48         rendering/RenderPopupMenuMac.mm. Much renaming ensues.
49         (WebCore::PopupMenu::PopupMenu):
50         (WebCore::PopupMenu::~PopupMenu):
51         (WebCore::PopupMenu::clear):
52         (WebCore::PopupMenu::populate):
53         (WebCore::PopupMenu::show):
54         (WebCore::PopupMenu::hide):
55         (WebCore::PopupMenu::addSeparator):
56         (WebCore::PopupMenu::addGroupLabel): Since we don't have our own
57         RenderStyle anymore, just pick up the style from our RenderMenuList.
58         (WebCore::PopupMenu::addOption): Ditto.
59         * platform/win/TemporaryLinkStubs.cpp: Rename-fest.
60         (PopupMenu::PopupMenu):
61         (PopupMenu::~PopupMenu):
62         (PopupMenu::clear):
63         (PopupMenu::populate):
64         (PopupMenu::show):
65         (PopupMenu::hide):
66         (PopupMenu::addSeparator):
67         (PopupMenu::addGroupLabel):
68         (PopupMenu::addOption):
69         * rendering/RenderMenuList.cpp:
70         (WebCore::RenderMenuList::~RenderMenuList):
71         (WebCore::RenderMenuList::showPopup): Use nice new simple
72         PopupMenu::create to make the popup.
73         (WebCore::RenderMenuList::hidePopup):
74         * rendering/RenderMenuList.h: Hold a RefPtr<PopupMenu> instead of a
75         RenderPopupMenu*.
76         (WebCore::RenderMenuList::popup):
77         * rendering/RenderPopupMenu.cpp: Removed.
78         * rendering/RenderPopupMenu.h: Removed.
79         * rendering/RenderPopupMenuMac.h: Removed.
80         * rendering/RenderPopupMenuMac.mm: Removed.
81         * rendering/RenderPopupMenuWin.h: Removed.
82         * rendering/RenderTheme.cpp: Get rid of createPopupMenu() method.
83         * rendering/RenderTheme.h: Ditto.
84         * rendering/RenderThemeMac.h: Ditto.
85         * rendering/RenderThemeMac.mm: Ditto.
86         * rendering/RenderThemeWin.cpp: Ditto.
87         * rendering/RenderThemeWin.h: Ditto.
88
89 2006-10-12  Adele Peterson  <adele@apple.com>
90
91         Reviewed by Dave Harrison.
92
93         - Fixed <rdar://problem/4650813> REGRESSION: typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
94
95         * rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout):
96         Make subtree layouts work for textareas as well as text fields.
97
98 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
99
100         Reviewed by MacDome.
101
102         Finally found a way to remove our begin() trickery in FrameQt.
103         The (probably misnamed) Frame::setEncoding() function automatically
104         calls Frame::receivedFirstData() which calls being on the working
105         url, which has been passed to didOpenUrl(). Took me some hours
106         to figure out that the missing charset logic, forced us to do hacks.
107
108         * platform/ResourceLoader.h:
109         * platform/ResourceLoaderInternal.h:
110         * platform/qt/FrameQt.cpp:
111         (WebCore::FrameQt::tokenizerProcessedData):
112         * platform/qt/FrameQt.h:
113         * platform/qt/FrameQtClient.cpp:
114         (WebCore::FrameQtClientDefault::FrameQtClientDefault):
115         (WebCore::FrameQtClientDefault::openURL):
116         (WebCore::FrameQtClientDefault::submitForm):
117         (WebCore::FrameQtClientDefault::receivedData):
118         (WebCore::FrameQtClientDefault::receivedAllData):
119         * platform/qt/FrameQtClient.h:
120         * platform/qt/ResourceLoaderManager.cpp:
121         (WebCore::ResourceLoaderManager::slotData):
122         (WebCore::ResourceLoaderManager::slotMimetype):
123         (WebCore::ResourceLoaderManager::slotResult):
124         (WebCore::ResourceLoaderManager::remove):
125         * platform/qt/ResourceLoaderQt.cpp:
126         (WebCore::ResourceLoader::retrieveCharset):
127         (WebCore::ResourceLoader::extractCharsetFromHeaders):
128
129 2006-10-12  Adam Roben  <aroben@apple.com>
130
131         Reviewed by Hyatt.
132
133         Bandaid-ing a null-dereference crash until a real fix is made.
134
135         * page/FrameView.cpp:
136         (WebCore::FrameView::windowClipRect):
137
138 2006-10-12  Rob Buis  <buis@kde.org>
139
140         Reviewed by Mitz.
141
142         http://bugs.webkit.org/show_bug.cgi?id=11217
143         Cleanup svg coding style
144
145         Cleanup coding style in svg text classes.
146
147         * ksvg2/svg/SVGTRefElement.cpp:
148         (WebCore::SVGTRefElement::SVGTRefElement):
149         (WebCore::SVGTRefElement::updateReferencedText):
150         (WebCore::SVGTRefElement::parseMappedAttribute):
151         (WebCore::SVGTRefElement::childShouldCreateRenderer):
152         (WebCore::SVGTRefElement::createRenderer):
153         * ksvg2/svg/SVGTRefElement.h:
154         (WebCore::SVGTRefElement::rendererIsNeeded):
155         * ksvg2/svg/SVGTSpanElement.cpp:
156         (WebCore::SVGTSpanElement::SVGTSpanElement):
157         (WebCore::SVGTSpanElement::childShouldCreateRenderer):
158         (WebCore::SVGTSpanElement::createRenderer):
159         * ksvg2/svg/SVGTSpanElement.h:
160         (WebCore::SVGTSpanElement::rendererIsNeeded):
161         * ksvg2/svg/SVGTextContentElement.cpp:
162         (WebCore::SVGTextContentElement::SVGTextContentElement):
163         (WebCore::SVGTextContentElement::parseMappedAttribute):
164         * ksvg2/svg/SVGTextContentElement.h:
165         * ksvg2/svg/SVGTextElement.cpp:
166         (WebCore::SVGTextElement::SVGTextElement):
167         (WebCore::SVGTextElement::localMatrix):
168         (WebCore::SVGTextElement::parseMappedAttribute):
169         (WebCore::SVGTextElement::updateLocalTransform):
170         (WebCore::SVGTextElement::nearestViewportElement):
171         (WebCore::SVGTextElement::farthestViewportElement):
172         (WebCore::SVGTextElement::getScreenCTM):
173         (WebCore::SVGTextElement::getCTM):
174         (WebCore::SVGTextElement::createRenderer):
175         (WebCore::SVGTextElement::childShouldCreateRenderer):
176         * ksvg2/svg/SVGTextElement.h:
177         (WebCore::SVGTextElement::getTransformToElement):
178         (WebCore::SVGTextElement::rendererIsNeeded):
179         * ksvg2/svg/SVGTextPositioningElement.cpp:
180         (WebCore::SVGTextPositioningElement::SVGTextPositioningElement):
181         (WebCore::SVGTextPositioningElement::parseMappedAttribute):
182         * ksvg2/svg/SVGTextPositioningElement.h:
183
184 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
185
186         Reviewed by Maciej.
187
188         Specialization of alert() for DumpRenderTree - just log the output, don't show any message box.
189
190         * platform/qt/FrameQt.cpp:
191         (WebCore::FrameQt::runJavaScriptAlert): Move runJavaScriptAlert functionality to FrameQtClientDefault.
192         * platform/qt/FrameQtClient.cpp:
193         (WebCore::FrameQtClientDefault::runJavaScriptAlert):
194         * platform/qt/FrameQtClient.h:
195
196 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
197
198         Reviewed by Eric.
199
200         - move m_responseMIMEType out of ResourceRequest, where it doesn't belong
201
202         * page/FramePrivate.h: Add m_responseMIMEType
203         * page/ResourceRequest.h: Remove m_responseMIMEType
204         * page/Frame.cpp:
205         (WebCore::Frame::setResponseMIMEType): added
206         (WebCore::Frame::responseMIMEType): added
207         (WebCore::Frame::begin): get MIME type from the right place
208         (WebCore::Frame::write): ditto
209         * page/Frame.h:
210         * bindings/js/kjs_window.cpp:
211         (KJS::createNewWindow): updated to use new Frame methods
212         (KJS::WindowFunc::callAsFunction): ditto
213         * bridge/mac/WebCoreFrameBridge.mm:
214         (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): ditto
215         (-[WebCoreFrameBridge canProvideDocumentSource]): ditto
216         * loader/PluginDocument.cpp:
217         (WebCore::PluginTokenizer::createDocumentStructure): ditto
218
219 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
220
221         Reviewed by Eric.
222         
223         <rdar://problem/4774321> REGRESSION: "Can't find the server" error page contains unstyled text and missing image
224
225         We really need some way to test loadHTMLString since it keeps breaking!
226         
227         * loader/mac/WebFrameLoader.mm:
228         (-[WebFrameLoader commitProvisionalLoad:]): Set stuff up on the proper data source.
229
230 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
231
232         Reviewed by Eric.
233
234         Fix Qt/Linux build.
235
236         * CMakeLists.txt:
237         * platform/qt/FileChooserQt.cpp:
238         (WebCore::FileChooser::create):
239
240 2006-10-12  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
241
242         Reviewed by Maciej.
243
244         Update Gdk\Linux build for recent changes, based on Qt code
245
246         * platform/gdk/FrameGdk.cpp:
247         (WebCore::FrameGdkClientDefault::FrameGdkClientDefault):
248         (WebCore::FrameGdkClientDefault::~FrameGdkClientDefault):
249         (WebCore::FrameGdkClientDefault::setFrame):
250         (WebCore::FrameGdkClientDefault::openURL):
251         (WebCore::FrameGdkClientDefault::submitForm):
252         (WebCore::FrameGdkClientDefault::receivedResponse):
253         (WebCore::FrameGdkClientDefault::receivedData):
254         (WebCore::FrameGdkClientDefault::receivedAllData):
255         (WebCore::FrameGdk::FrameGdk):
256         (WebCore::FrameGdk::openURL):
257         (WebCore::FrameGdk::submitForm):
258         (WebCore::FrameGdk::urlSelected):
259         * platform/gdk/FrameGdk.h:
260         * platform/gdk/TemporaryLinkStubs.cpp:
261         (FrameGdk::createJavaAppletWidget):
262         (FileChooser::create):
263
264 2006-10-12  Dave Hyatt  <hyatt@apple.com>
265
266         Patch to add more clipping retrieval functionality for widgets.
267        
268         Reviewed by mjs
269
270         * page/Frame.h:
271         Remove windowResizerRect.  This is in the wrong place.
272         
273         * page/FrameView.cpp:
274         (WebCore::FrameView::windowClipRect):
275         (WebCore::FrameView::windowClipRectForLayer):
276         Break out windowClipRect into helper functions that can be called separately (to make
277         it easier for scrollbars in overflow sections and list boxes to get to an enclosing
278         layer and get the right clip.
279         
280         * page/FrameView.h:
281         Add the new windowClipRect helper methods.
282         
283         * platform/ScrollBar.h:
284         Add a new interface to ScrollbarClient so that scrollbars can hand back proper
285         clip rects for themselves depending on how they are used.
286         
287         * platform/ScrollView.h:
288         Stub out methods for talking to a double buffer backing store on Win32.
289         
290         * platform/Widget.h:
291         Add the ability to query for invalidation suppression.
292         
293         * rendering/RenderLayer.cpp:
294         (WebCore::RenderLayer::windowClipRect):
295         (WebCore::RenderLayer::paintOverflowControls):
296         (WebCore::RenderLayer::calculateRects):
297         (WebCore::RenderLayer::childrenClipRect):
298         (WebCore::RenderLayer::selfClipRect):
299         * rendering/RenderLayer.h:
300         Enhance layers so that they can return either their foreground or background
301         document clip rects.  Make sure a layer scrollbar can return a proper clip.
302         
303         * rendering/RenderListBox.cpp:
304         (WebCore::RenderListBox::windowClipRect):
305         * rendering/RenderListBox.h:
306         Make sure a list box scrollbar can return a proper clip.
307         
308         * rendering/RenderObject.cpp:
309         (WebCore::RenderObject::enclosingLayer):
310         * rendering/RenderObject.h:
311         Make enclosingLayer const.
312         
313 2006-10-11  Darin Adler  <darin@apple.com>
314
315         Reviewed by John.
316
317         - some changes to prepare for converting more code to C++
318
319         * bridge/mac/WebCoreFrameBridge.h: Added import of <Cocoa/Cocoa.h> so this header is
320         self-sufficient.
321
322         * bridge/mac/WebCoreViewFactory.h: Added forward declaration of the NSMenu class.
323         Needed since the class is used in this header (for some work I have not landed yet).
324
325         * loader/mac/LoaderNSURLExtras.h:
326         * loader/mac/WebFormDataStream.h:
327         Added extern "C" so this code can be used from C++.
328
329         * loader/mac/LoaderNSURLExtras.m:
330         * loader/mac/WebDataProtocol.mm:
331         * loader/mac/WebDocumentLoader.mm:
332         * loader/mac/WebFormDataStream.m:
333         * loader/mac/WebLoader.mm:
334         * loader/mac/WebMainResourceLoader.mm:
335         * loader/mac/WebNetscapePlugInStreamLoader.mm:
336         * loader/mac/WebPolicyDecider.mm:
337         * loader/mac/WebSubresourceLoader.mm:
338         Added missing includes of config.h.
339
340 2006-10-11  John Sullivan  <sullivan@apple.com>
341         
342         Darin wrote this code; we tested it; I give it the thumbs up.
343         
344         - fixed regression from svn revision 16982 that was generating the wrong Obj-C classes
345
346         The hash table to look up an element class given a QualifiedName was
347         not working at all.
348
349         * dom/QualifiedName.h:
350         (WebCore::QualifiedName::impl):
351         Added. This new accessor method for impl is needed if we want to use
352         a QualifiedName as a hash table key without doing the kind of specialization
353         we do for String. Maybe later we can do the String thing.
354
355         * bindings/objc/DOM.mm:
356         (WebCore::addElementClass):
357         Use QualifiedName.impl instead of the QualifiedName pointer itself.
358         The QualifiedName pointer is *not* unique so almost nothing would be found
359         in this hash table!
360         (WebCore::elementClass):
361         ditto
362         
363 2006-10-11  Adam Roben  <aroben@apple.com>
364
365         Rubberstamped by Anders.
366
367         Clean up FileChooser::create and Icon::newIconForFile.
368
369         * WebCore.xcodeproj/project.pbxproj:
370         * platform/mac/FileChooserMac.mm:
371         (WebCore::FileChooser::create):
372         * platform/mac/IconMac.mm:
373         (WebCore::Icon::newIconForFile):
374
375 2006-10-11  Oliver Hunt  <oliver@apple.com>
376
377         Reviewed by Adam.
378
379         Fix for http://bugs.webkit.org/show_bug.cgi?id=11251
380         Corrects canvas tag to not throw JS exception when drawing
381         zero sized rects, arcs, etc
382
383         * html/CanvasRenderingContext2D.cpp:
384         (WebCore::CanvasRenderingContext2D::arcTo):
385         (WebCore::CanvasRenderingContext2D::arc):
386         (WebCore::CanvasRenderingContext2D::rect):
387         (WebCore::CanvasRenderingContext2D::clearRect):
388         (WebCore::CanvasRenderingContext2D::fillRect):
389         (WebCore::CanvasRenderingContext2D::strokeRect):
390
391 2006-10-11  Rob Buis  <buis@kde.org>
392
393         Reviewed by Mitz.
394
395         http://bugs.webkit.org/show_bug.cgi?id=11221
396         REGRESSION: iExploder crash due to style="cursor: url()"
397
398         Take better care of empty cursor lists.
399
400         Test: fast/css/invalid-cursor-property-crash.html
401
402         * css/cssparser.cpp:
403         (WebCore::CSSParser::parseValue):
404
405 2006-10-11  Adam Roben  <aroben@apple.com>
406
407         Fixing Windows for real this time.
408
409         * platform/win/TemporaryLinkStubs.cpp:
410         (FileChooser::create):
411
412 2006-10-11  Adam Roben  <aroben@apple.com>
413
414         Fix Windows build.
415
416         * platform/win/TemporaryLinkStubs.cpp:
417         (FileChooser::create):
418
419 2006-10-11  Antti Koivisto  <koivisto@iki.fi>
420
421         Reviewed by Hyatt.
422         
423         http://bugs.webkit.org/show_bug.cgi?id=4377
424         
425         Respect css visibility semantics for layers too
426
427         * rendering/RenderContainer.cpp:
428         (WebCore::RenderContainer::removeChildNode):
429         (WebCore::RenderContainer::appendChildNode):
430         (WebCore::RenderContainer::insertChildNode):
431         * rendering/RenderLayer.cpp:
432         (WebCore::RenderLayer::RenderLayer):
433         (WebCore::RenderLayer::updateLayerPositions):
434         (WebCore::RenderLayer::setHasVisibleContent):
435         (WebCore::RenderLayer::dirtyVisibleContentStatus):
436         (WebCore::RenderLayer::childVisibilityChanged):
437         (WebCore::RenderLayer::dirtyVisibleDescendantStatus):
438         (WebCore::RenderLayer::updateVisibilityStatus):
439         (WebCore::RenderLayer::addChild):
440         (WebCore::RenderLayer::removeChild):
441         (WebCore::RenderLayer::updateZOrderLists):
442         (WebCore::RenderLayer::collectLayers):
443         * rendering/RenderLayer.h:
444         (WebCore::RenderLayer::hasVisibleContent):
445         * rendering/RenderObject.cpp:
446         (WebCore::RenderObject::setStyle):
447
448 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
449
450         Reviewed by Oliver.
451
452         - added RetainPtr, smart pointer for refcounted ObjC objects and CFTypes
453
454         * WebCore.xcodeproj/project.pbxproj:
455         * platform/cf/RetainPtr.h: Added.
456         (WTF::):
457         (WTF::RetainPtr::RetainPtr):
458         (WTF::RetainPtr::~RetainPtr):
459         (WTF::RetainPtr::get):
460         (WTF::RetainPtr::operator*):
461         (WTF::RetainPtr::operator->):
462         (WTF::RetainPtr::operator!):
463         (WTF::RetainPtr::operator UnspecifiedBoolType):
464         (WTF::::operator):
465         (WTF::::swap):
466         (WTF::swap):
467         (WTF::operator==):
468         (WTF::operator!=):
469         (WTF::static_pointer_cast):
470         (WTF::const_pointer_cast):
471         (WTF::getPtr):
472         
473         - use it in WidgetMac so it gets tested in at least one place
474         
475         * platform/mac/WidgetMac.mm:
476         (WebCore::Widget::Widget):
477         (WebCore::Widget::~Widget):
478         (WebCore::Widget::setEnabled):
479         (WebCore::Widget::isEnabled):
480         (WebCore::Widget::setCursor):
481         (WebCore::Widget::getView):
482         (WebCore::Widget::setView):
483         (WebCore::Widget::getOuterView):
484
485 2006-10-10  Brady Eidson  <beidson@apple.com>
486
487         Reviewed by Maciej.
488
489         Moved WebFrameLoader from WebFrameBridge into WebCoreFrameBridge
490
491         * bridge/mac/WebCoreFrameBridge.h:
492         * bridge/mac/WebCoreFrameBridge.mm:
493         (-[WebCoreFrameBridge initMainFrameWithPage:]):
494         (-[WebCoreFrameBridge initSubframeWithOwnerElement:]):
495         (-[WebCoreFrameBridge dealloc]):
496         (-[WebCoreFrameBridge close]):
497         (-[WebCoreFrameBridge setFrameLoaderClient:]):
498         (-[WebCoreFrameBridge frameLoader]):
499         * loader/mac/WebFrameLoader.h:
500         * loader/mac/WebFrameLoader.mm:
501         (-[WebFrameLoader initWithFrameBridge:]):
502         (-[WebFrameLoader setFrameLoaderClient:]):
503
504 2006-10-10  Adam Roben  <aroben@apple.com>
505
506         Reviewed by Oliver.
507
508         Make FileChooser ref-counted.
509
510         * platform/FileChooser.h:
511         * platform/mac/FileChooserMac.mm:
512         (WebCore::FileChooser::create):
513         * rendering/RenderFileUploadControl.cpp:
514         (WebCore::RenderFileUploadControl::RenderFileUploadControl):
515         (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
516         * rendering/RenderFileUploadControl.h:
517
518 2006-10-10  Sam Weinig  <sam.weinig@gmail.com>
519
520         Reviewed by Tim H.
521
522         Patch for http://bugs.webkit.org/show_bug.cgi?id=11248
523         Even More auto-generated Objective-C DOM bindings changes
524
525         - Auto-generate DOMSVGPathElement.
526
527         - Auto-generate the internal interfaces even for classes that have
528           custom internal implementations.  Change IDL property from ObjCNoInternal
529           to ObjCCustomInternalImpl to indicate the change.
530
531         - Add SVG classes to DOMNode and DOMEvent internal interfaces.
532
533         - Add isSVGZoomEvent() method to Event class to match other Event subclasses
534           and make DOM binding possible.
535
536         - Assorted cleanups.
537
538         * DerivedSources.make:
539         * WebCore.xcodeproj/project.pbxproj:
540         * bindings/objc/DOM.mm:
541         (WebCore::addElementClass):
542         (WebCore::createElementClassMap):
543         (WebCore::elementClass):
544         (-[DOMNode description]):
545         (+[DOMNode _nodeWith:WebCore::]):
546         (-[DOMNode addEventListener:listener:useCapture:]):
547         (-[DOMNode removeEventListener:listener:useCapture:]):
548         (-[DOMElement _NPObject]):
549         (WebCore::ObjCEventListener::handleEvent):
550         * bindings/objc/DOMEvents.mm:
551         (+[DOMEvent _eventWith:WebCore::]):
552         * bindings/objc/DOMInternal.h:
553         * bindings/objc/DOMRGBColor.mm:
554         (-[DOMRGBColor WebCore::]):
555         * bindings/objc/DOMSVGPathSegInternal.h: Removed.
556         * bindings/scripts/CodeGeneratorObjC.pm:
557         * css/CSSRule.idl:
558         * css/CSSValue.idl:
559         * css/StyleSheet.idl:
560         * dom/Event.cpp:
561         (WebCore::Event::isSVGZoomEvent):
562         * dom/Event.h:
563         * dom/Event.idl:
564         * dom/Node.idl:
565         * ksvg2/events/SVGZoomEvent.cpp:
566         (WebCore::SVGZoomEvent::isSVGZoomEvent):
567         * ksvg2/events/SVGZoomEvent.h:
568         * ksvg2/svg/SVGAnimatedAngle.idl:
569         * ksvg2/svg/SVGCircleElement.idl:
570         * ksvg2/svg/SVGClipPathElement.idl:
571         * ksvg2/svg/SVGPathElement.idl:
572         * ksvg2/svg/SVGPathSeg.idl:
573
574 2006-10-10  Oliver Hunt  <oliver@apple.com>
575
576         rubber stamped by Anders.
577
578         More buildbot bustage
579
580         * kcanvas/SVGInlineFlowBox.cpp:
581         (WebCore::placeBoxesVerticallyWithAbsBaseline):
582
583 2006-10-10  Oliver Hunt  <oliver@apple.com>
584
585         Reviewed by Anders 
586
587         Unbreak build bots
588
589         * dom/Text.cpp:
590         * kcanvas/RenderSVGText.cpp:
591         (WebCore::RenderSVGText::layout):
592         * kcanvas/SVGInlineFlowBox.cpp:
593         (WebCore::placePositionedBoxesHorizontally):
594         (WebCore::placeBoxesVerticallyWithAbsBaseline):
595
596 2006-10-10  Oliver Hunt  <oliver@apple.com>
597
598         Reviewed by hyatt.
599
600         Fixes bugs #6423, #6559, #10380 and #10839 
601
602         * WebCore.xcodeproj/project.pbxproj:
603         * css/svg.css:
604         * dom/Text.cpp:
605         (WebCore::Text::createRenderer):
606         * kcanvas/RenderSVGInline.cpp: Added.
607         (WebCore::RenderSVGInline::RenderSVGInline):
608         (WebCore::RenderSVGInline::createInlineBox):
609         * kcanvas/RenderSVGInline.h: Added.
610         (WebCore::RenderSVGInline::renderName):
611         (WebCore::RenderSVGInline::requiresLayer):
612         * kcanvas/RenderSVGInlineText.cpp: Added.
613         (WebCore::RenderSVGInlineText::RenderSVGInlineText):
614         (WebCore::RenderSVGInlineText::absoluteRects):
615         (WebCore::RenderSVGInlineText::selectionRect):
616         * kcanvas/RenderSVGInlineText.h: Added.
617         (WebCore::RenderSVGInlineText::renderName):
618         (WebCore::RenderSVGInlineText::requiresLayer):
619         * kcanvas/RenderSVGTSpan.cpp: Added.
620         (WebCore::RenderSVGTSpan::RenderSVGTSpan):
621         (WebCore::RenderSVGTSpan::absoluteRects):
622         * kcanvas/RenderSVGTSpan.h: Added.
623         (WebCore::RenderSVGTSpan::renderName):
624         * kcanvas/RenderSVGText.cpp:
625         (WebCore::RenderSVGText::RenderSVGText):
626         (WebCore::RenderSVGText::computeAbsoluteRepaintRect):
627         (WebCore::RenderSVGText::layout):
628         (WebCore::RenderSVGText::createInlineBox):
629         (WebCore::RenderSVGText::nodeAtPoint):
630         (WebCore::RenderSVGText::absoluteRects):
631         (WebCore::RenderSVGText::paint):
632         (WebCore::RenderSVGText::relativeBBox):
633         * kcanvas/RenderSVGText.h:
634         (WebCore::RenderSVGText::renderName):
635         * kcanvas/SVGInlineFlowBox.cpp: Added.
636         (WebCore::SVGInlineFlowBox::paint):
637         (WebCore::SVGInlineFlowBox::placeBoxesHorizontally):
638         (WebCore::SVGInlineFlowBox::verticallyAlignBoxes):
639         (WebCore::paintSVGInlineFlow):
640         (WebCore::translateBox):
641         (WebCore::placePositionedBoxesHorizontally):
642         (WebCore::placeSVGFlowHorizontally):
643         (WebCore::placeBoxesVerticallyWithAbsBaseline):
644         (WebCore::placeSVGFlowVertically):
645         * kcanvas/SVGInlineFlowBox.h: Added.
646         (WebCore::SVGInlineFlowBox::SVGInlineFlowBox):
647         * kcanvas/SVGRootInlineBox.cpp: Added.
648         (WebCore::SVGRootInlineBox::paint):
649         (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
650         (WebCore::SVGRootInlineBox::verticallyAlignBoxes):
651         * kcanvas/SVGRootInlineBox.h: Added.
652         (WebCore::SVGRootInlineBox::SVGRootInlineBox):
653         * ksvg2/svg/SVGTRefElement.cpp:
654         (SVGTRefElement::createRenderer):
655         * ksvg2/svg/SVGTSpanElement.cpp:
656         (SVGTSpanElement::createRenderer):
657         * rendering/InlineFlowBox.h:
658
659 2006-10-10  Adam Roben  <aroben@apple.com>
660
661         Reviewed by Adele.
662
663         Improve popup menu behavior.
664
665         * html/HTMLSelectElement.cpp:
666         (WebCore::HTMLSelectElement::HTMLSelectElement): Cache
667         m_lastOnChangeIndex so we know when to fire onChange.
668         (WebCore::HTMLSelectElement::setSelectedIndex): Added parameter to
669         specify whether we should fire onChange.
670         (WebCore::HTMLSelectElement::dispatchBlurEvent): Fire onChange on blur.
671         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Fire
672         onChange when using the Enter key to change the selection.
673         * html/HTMLSelectElement.h:
674         * rendering/RenderMenuList.cpp:
675         (WebCore::RenderMenuList::updateFromElement): Extract setText logic
676         into its own method.
677         (WebCore::RenderMenuList::setTextFromOption): New method.
678         (WebCore::RenderMenuList::valueChanged): Let setSelectedIndex call
679         onChange instead of calling it directly here.
680         * rendering/RenderMenuList.h:
681
682 2006-10-10  Adele Peterson  <adele@apple.com>
683
684         Reviewed by Beth. 
685
686
687         - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type=text>
688           and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
689
690         Moved autoscroll code to the Frame class
691
692         * bridge/mac/FrameMac.h: Moved _mouseDownMayStartDrag and _mouseDownMayStartAutoscroll flags to the frame.
693         * bridge/mac/FrameMac.mm: Use new getters and setters for drag and autoscroll flags.  Moved autoscroll code to Frame::handleMouseMoveEvent.
694         (WebCore::FrameMac::FrameMac):
695         (WebCore::FrameMac::handleMousePressEvent):
696         (WebCore::FrameMac::eventMayStartDrag):
697         (WebCore::FrameMac::handleMouseMoveEvent):
698         (WebCore::FrameMac::mouseDown):
699
700         * bridge/mac/WebCoreFrameBridge.h: Removed handleAutoscrollForMouseDragged, which called over the bridge for AppKit to do autoscroll for us.
701         Now we scroll our views in WebCore.
702
703         * page/Frame.cpp:
704         (WebCore::Frame::handleMousePressEvent): Initialize the mouseDownMayStartAutoscroll flag.
705         (WebCore::Frame::handleMouseMoveEvent): Now kicks off autoscroll if appropriate.  Moved from FrameMac.
706         (WebCore::Frame::updateSelectionForMouseDragOverPosition): Factored code out from handleMouseMoveEvent so we can update the selection from autoscroll too.
707         (WebCore::Frame::mouseDownMayStartAutoscroll): Added.
708         (WebCore::Frame::setMouseDownMayStartAutoscroll): Added.
709         (WebCore::Frame::mouseDownMayStartDrag): Added.
710         (WebCore::Frame::setMouseDownMayStartDrag): Added.
711         (WebCore::Frame::autoscrollRenderer): Added
712         (WebCore::Frame::setAutoscrollRenderer): Added.
713         (WebCore::Frame::handleAutoscroll): Updated to use autoscrollRenderer getter and setter.
714         (WebCore::Frame::autoscrollTimerFired): ditto.
715         (WebCore::Frame::stopAutoscrollTimer): ditto. 
716         * page/Frame.h: Made autoscrollRenderer and stopAutoscrollTimer public, so the renderer being autoscrolled can kill the timer when it dies.
717
718         * page/FramePrivate.h:
719         (WebCore::FramePrivate::FramePrivate): Added mouseDownMayStartDrag and mouseDownMayStartAutoscroll flags.  Moved from FrameMac.
720
721         * page/FrameView.cpp: Store the current mouse position in window coordinates.  The callers can convert to their own coordinate space.
722         (WebCore::FrameView::handleMousePressEvent):
723         (WebCore::FrameView::handleMouseDoubleClickEvent):
724         (WebCore::FrameView::handleMouseMoveEvent):
725         (WebCore::FrameView::handleMouseReleaseEvent):
726
727         * rendering/RenderLayer.cpp:
728         (WebCore::RenderLayer::autoscroll): Rewrote this to scroll recursively, and to scroll based on the mouse position (not the selection).  
729          We also need to update the selection here, since autoscroll can occur without a mouseMove event, and the selection needs to get reset as we scroll.
730
731         * rendering/RenderListBox.cpp:
732         (WebCore::RenderListBox::autoscroll): Convert the mouse coordinates to the right space.
733
734         * rendering/RenderObject.cpp:
735         (WebCore::RenderObject::shouldAutoscroll): Also return true if the renderer is a root (so we know to autoscroll views too)
736         (WebCore::RenderObject::destroy): If this renderer is being autoscrolled, stop the frame's autoscroll timer.
737
738 2006-10-10  Darin Adler  <darin@apple.com>
739
740         Rubber stamped by Maciej.
741
742         - convert many of the loader source files to Objective-C++ to prepare
743           to convert some of them to C++
744
745         * WebCore.xcodeproj/project.pbxproj:
746         * loader/mac/WebDataProtocol.m: Removed.
747         * loader/mac/WebDocumentLoader.m: Removed.
748         * loader/mac/WebFormState.m: Removed.
749         * loader/mac/WebFrameLoader.m: Removed.
750         * loader/mac/WebLoader.m: Removed.
751         * loader/mac/WebMainResourceLoader.m: Removed.
752         * loader/mac/WebNetscapePlugInStreamLoader.m: Removed.
753         * loader/mac/WebPolicyDecider.m: Removed.
754         * loader/mac/WebSubresourceLoader.m: Removed.
755         * loader/mac/WebDataProtocol.mm: Added.
756         * loader/mac/WebDocumentLoader.mm: Added.
757         * loader/mac/WebFormState.mm: Added.
758         * loader/mac/WebFrameLoader.mm: Added.
759         * loader/mac/WebLoader.mm: Added.
760         * loader/mac/WebMainResourceLoader.mm: Added.
761         * loader/mac/WebNetscapePlugInStreamLoader.mm: Added.
762         * loader/mac/WebPolicyDecider.mm: Added.
763         * loader/mac/WebSubresourceLoader.mm: Added.
764
765 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
766
767         Reviewed by Mitz.
768
769         - fixed REGRESSION (r16960): crash on navigating to site
770         http://www.zoominfo.com/Search/CompanyDetail.aspx?CompanyID=62948057&cs=QGDwILZIE
771         
772         * loader/mac/WebFrameLoader.m:
773         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
774         Add back a mistakenly removed retain.
775
776 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
777
778         Not reviewed, build fix.
779
780         - fixed release build
781
782         * WebCore.xcodeproj/project.pbxproj:
783
784 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
785
786         Rubber stamped by Eric.
787
788         - moved a big honkin' pile of code over from WebKit; made minimal needed changes to compile
789
790         * WebCore.exp:
791         * WebCore.xcodeproj/project.pbxproj:
792         * loader/mac/LoaderNSURLExtras.m: Added.
793         * loader/mac/WebDataProtocol.m: Added.
794         * loader/mac/WebDocumentLoader.m: Added.
795         * loader/mac/WebFormDataStream.m: Added.
796         * loader/mac/WebFrameLoader.m: Added.
797         * loader/mac/WebLoader.m: Added.
798         (-[NSURLProtocol didReceiveResponse:]):
799         (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
800         * loader/mac/WebMainResourceLoader.m: Added.
801         (-[WebMainResourceLoader didReceiveResponse:]):
802         * loader/mac/WebPolicyDecider.m: Added.
803         * loader/mac/WebSubresourceLoader.h: Added.
804         * loader/mac/WebSubresourceLoader.m: Added.
805
806 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
807
808         Reviewed by Oliver (sort of?)
809
810         - WebCore part of moving down NSURL extras
811
812         * WebCore.exp:
813         * platform/mac/WebCoreSystemInterface.h:
814         * platform/mac/WebCoreSystemInterface.mm:
815
816 2006-10-09  Rob Buis  <buis@kde.org>
817
818         Reviewed by Mitz.
819
820         http://bugs.webkit.org/show_bug.cgi?id=11217
821         Cleanup svg coding style
822
823         Cleanup coding style in svg animation classes.
824
825         * ksvg2/svg/SVGAnimateColorElement.cpp:
826         (WebCore::SVGAnimateColorElement::handleTimerEvent):
827         * ksvg2/svg/SVGAnimateElement.cpp:
828         (WebCore::SVGAnimateElement::SVGAnimateElement):
829         (WebCore::SVGAnimateElement::handleTimerEvent):
830         * ksvg2/svg/SVGAnimateTransformElement.cpp:
831         (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
832         (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
833         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
834         (WebCore::SVGAnimateTransformElement::parseTransformValue):
835         (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
836         (WebCore::SVGAnimateTransformElement::initialMatrix):
837         (WebCore::SVGAnimateTransformElement::transformMatrix):
838         * ksvg2/svg/SVGAnimateTransformElement.h:
839         * ksvg2/svg/SVGAnimatedPathData.cpp:
840         * ksvg2/svg/SVGAnimatedPathData.h:
841         * ksvg2/svg/SVGAnimatedPoints.cpp:
842         * ksvg2/svg/SVGAnimatedPoints.h:
843         * ksvg2/svg/SVGAnimationElement.cpp:
844         (WebCore::SVGAnimationElement::targetElement):
845
846 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
847
848         Reviewed by Oliver.
849
850         - added isMainFrame and frameLoader to WebCoreFrameBridge for ease of future code motion
851
852         * bridge/mac/WebCoreFrameBridge.h:
853         * bridge/mac/WebCoreFrameBridge.mm:
854         (-[WebCoreFrameBridge isMainFrame]):
855
856 2006-10-09  Adam Roben  <aroben@apple.com>
857
858         Backing out accidental commit.
859
860         * page/Frame.cpp:
861         (WebCore::Frame::finishedParsing):
862
863 2006-10-09  Adam Roben  <aroben@apple.com>
864
865         Reviewed by Darin.
866
867         Add ASSERTs to RefPtr to make sure we don't ref within a destructor, as
868         this could cause recursive calls to the destructor. RefPtr now also
869         inherits from Noncopyable.
870
871         * dom/NodeFilter.h:
872         * dom/Traversal.h:
873         * page/DOMWindow.h:
874         * page/Frame.cpp:
875         (WebCore::Frame::finishedParsing):
876         * page/Frame.h:
877         * page/Plugin.h:
878         * platform/FontFallbackList.h:
879         * platform/Icon.h:
880         * platform/Shared.h:
881         (WebCore::Shared::Shared):
882         (WebCore::Shared::ref):
883         (WebCore::Shared::deref):
884         (WebCore::Shared::hasOneRef):
885         (WebCore::Shared::refCount):
886         * platform/StringImpl.h:
887
888 2006-10-09  Oliver Hunt <ohunt@apple.com>
889
890         Reviewed by Anders.
891
892         Correcting ifdef's
893
894         * html/CanvasGradient.cpp:
895         (WebCore::CanvasGradient::CanvasGradient):
896         (WebCore::CanvasGradient::~CanvasGradient):
897         (WebCore::CanvasGradient::addColorStop):
898         * html/CanvasGradient.h:
899         * html/CanvasPattern.cpp:
900         (WebCore::CanvasPattern::CanvasPattern):
901         (WebCore::CanvasPattern::~CanvasPattern):
902         * html/CanvasPattern.h:
903         * html/CanvasRenderingContext2D.cpp:
904         (WebCore::CanvasRenderingContext2D::fill):
905         (WebCore::CanvasRenderingContext2D::stroke):
906         (WebCore::CanvasRenderingContext2D::fillRect):
907         (WebCore::CanvasRenderingContext2D::setShadow):
908         (WebCore::CanvasRenderingContext2D::applyShadow):
909         (WebCore::CanvasRenderingContext2D::drawImage):
910         (WebCore::CanvasRenderingContext2D::createPattern):
911         (WebCore::CanvasRenderingContext2D::applyStrokePattern):
912         (WebCore::CanvasRenderingContext2D::applyFillPattern):
913         * html/CanvasRenderingContext2D.h:
914         * html/CanvasStyle.cpp:
915         (WebCore::CanvasStyle::applyStrokeColor):
916         (WebCore::CanvasStyle::applyFillColor):
917         * html/HTMLCanvasElement.cpp:
918         (WebCore::HTMLCanvasElement::paint):
919         (WebCore::HTMLCanvasElement::createDrawingContext):
920         * html/HTMLCanvasElement.h:
921
922 2006-10-09  Adam Roben  <aroben@apple.com>
923
924         Reviewed by Maciej.
925
926         Fix a possible recursive destructor call.
927
928         * page/Frame.cpp:
929         (WebCore::Frame::~Frame): Add a FIXME about cleaning up the destructor.
930         (WebCore::Frame::finishedParsing): Don't create a protector RefPtr if
931         we're already being destroyed.
932
933 2006-10-09  Sam Weinig  <sam.weinig@gmail.com>
934
935         Reviewed by Tim H.
936
937         Patch for http://bugs.webkit.org/show_bug.cgi?id=11234
938         Assorted Objective-C bindings changes
939
940         - Auto-generate DOMSVGPathSegArcAbs, DOMSVGPathSegArcRel, DOMSVGPathSegClosePath, 
941           DOMSVGPathSegCurvetoCubicAbs, DOMSVGPathSegCurvetoCubicRel, 
942           DOMSVGPathSegCurvetoCubicSmoothAbs, DOMSVGPathSegCurvetoCubicSmoothRel, 
943           DOMSVGPathSegCurvetoQuadraticAbs, DOMSVGPathSegCurvetoQuadraticRel, 
944           DOMSVGPathSegCurvetoQuadraticSmoothAbs, DOMSVGPathSegCurvetoQuadraticSmoothRel, 
945           DOMSVGPathSegLinetoAbs, DOMSVGPathSegLinetoHorizontalAbs, 
946           DOMSVGPathSegLinetoHorizontalRel, DOMSVGPathSegLinetoRel, 
947           DOMSVGPathSegLinetoVerticalAbs, DOMSVGPathSegLinetoVerticalRel, 
948           DOMSVGPathSegMovetoAbs, DOMSVGPathSegMovetoRel and DOMSVGSVGElement.
949
950         - Auto-generate absoluteImageURL method for DOMHTMLInputElement and
951           DOMHTMLObjectElement.
952
953         - Auto-generate the internal methods for classes with ivars (notably 
954           DOMNodeIterator and DOMTreeWalker)
955
956         - Put more methods in the WebCore namespace and factor out the  
957           displayString method into DOMInternal.h as done by Darin in his 
958           patch for http://bugs.webkit.org/show_bug.cgi?id=11219.
959
960         * DerivedSources.make:
961         * WebCore.xcodeproj/project.pbxproj:
962         * bindings/objc/DOM.mm:
963         (-[DOMNode _initWithNode:WebCore::]):
964         (+[DOMNode _nodeWith:WebCore::]):
965         (-[DOMNode addEventListener:listener:useCapture:]):
966         (-[DOMNode removeEventListener:listener:useCapture:]):
967         (-[DOMNode dispatchEvent:]):
968         (-[DOMElement _imageTIFFRepresentation]):
969         (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
970         (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
971         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
972         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
973         * bindings/objc/DOMCSS.mm:
974         (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
975         (+[DOMStyleSheet _styleSheetWith:WebCore::]):
976         (-[DOMCSSRule _initWithCSSRule:WebCore::]):
977         (+[DOMCSSRule _CSSRuleWith:WebCore::]):
978         (-[DOMCSSValue _initWithCSSValue:WebCore::]):
979         (+[DOMCSSValue _CSSValueWith:WebCore::]):
980         * bindings/objc/DOMEvents.mm:
981         (-[DOMEvent _initWithEvent:WebCore::]):
982         (+[DOMEvent _eventWith:WebCore::]):
983         * bindings/objc/DOMExtensions.h:
984         * bindings/objc/DOMHTML.mm:
985         (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
986         * bindings/objc/DOMInternal.h:
987         (-[DOMNodeFilter WebCore::]):
988         * bindings/objc/DOMInternal.mm:
989         (-[WebScriptObject _init]):
990         (-[WebScriptObject _initializeScriptDOMNodeImp]):
991         (WebCore::displayString):
992         * bindings/objc/DOMObject.mm:
993         (-[DOMObject dealloc]):
994         (-[DOMObject finalize]):
995         * bindings/objc/DOMRGBColor.mm:
996         (-[DOMRGBColor dealloc]):
997         (-[DOMRGBColor finalize]):
998         (-[DOMRGBColor color]):
999         (-[DOMRGBColor _initWithRGB:WebCore::]):
1000         (+[DOMRGBColor _RGBColorWithRGB:WebCore::]):
1001         * bindings/objc/DOMSVG.h:
1002         * bindings/objc/DOMSVGPathSegInternal.h: Added.
1003         * bindings/objc/DOMSVGPathSegInternal.mm: Added.
1004         (-[DOMSVGPathSeg WebCore::]):
1005         (-[DOMSVGPathSeg _initWithSVGPathSeg:WebCore::]):
1006         (+[DOMSVGPathSeg _SVGPathSegWith:WebCore::]):
1007         * bindings/objc/DOMXPath.mm:
1008         (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
1009         (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
1010         * bindings/objc/PublicDOMInterfaces.h:
1011         * bindings/scripts/CodeGeneratorObjC.pm:
1012         * dom/NodeIterator.idl:
1013         * dom/TreeWalker.idl:
1014         * html/HTMLInputElement.idl:
1015         * html/HTMLObjectElement.idl:
1016         * ksvg2/svg/SVGDocument.idl:
1017         * ksvg2/svg/SVGElement.idl:
1018         * ksvg2/svg/SVGPathSeg.idl:
1019         * ksvg2/svg/SVGPathSegArcAbs.idl:
1020         * ksvg2/svg/SVGPathSegArcRel.idl:
1021         * ksvg2/svg/SVGPathSegClosePath.idl:
1022         * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl:
1023         * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl:
1024         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
1025         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl:
1026         * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl:
1027         * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl:
1028         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
1029         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
1030         * ksvg2/svg/SVGPathSegLinetoAbs.idl:
1031         * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl:
1032         * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl:
1033         * ksvg2/svg/SVGPathSegLinetoRel.idl:
1034         * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl:
1035         * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl:
1036         * ksvg2/svg/SVGPathSegMovetoAbs.idl:
1037         * ksvg2/svg/SVGPathSegMovetoRel.idl:
1038
1039 2006-10-09  Don Gibson  <dgibson77@gmail.com>
1040
1041         Unreviewed build fix.
1042
1043         Fix windows build bustage.
1044
1045         * platform/win/TemporaryLinkStubs.cpp:
1046
1047 2006-10-09  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
1048
1049         Reviewed by Geoff.
1050
1051         Fix memory leaks discovered via valgrind. Gdk build fixes.
1052
1053         * Projects/gdk/webcore-gdk.bkl:
1054         * make-generated-sources.sh:
1055         * platform/cairo/ImageCairo.cpp:
1056         (WebCore::Image::draw):
1057         * platform/gdk/FrameGdk.cpp:
1058         (WebCore::FrameGdk::handleGdkEvent):
1059         * platform/gdk/FrameGdk.h:
1060         * platform/gdk/PlatformScrollBar.h:
1061         (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
1062         (WebCore::PlatformScrollbar::verticalScrollbarWidth):
1063
1064 2006-10-09  Nikolas Zimmermann  <zimmermann@kde.org>
1065
1066         Reviewed by Beth.
1067
1068         Fix LayoutTests/fast/css/case-transform.html with Qt - the last crashing layout test.
1069
1070         * platform/qt/GlyphMapQt.cpp: Handle UTF-16 characters properly
1071         (WebCore::GlyphMap::fillPage):
1072
1073 2006-10-09  Nikolas Zimmermann  <zimmermann@kde.org>
1074
1075         Unreviewed build fix.
1076
1077         Fix for Qt/Linux build, based on fixes to the Win32 build in r16928 and r16929.
1078
1079         * platform/qt/FrameQt.cpp:
1080         (WebCore::FrameQt::createJavaAppletWidget):
1081         * platform/qt/FrameQt.h:
1082         * platform/qt/TemporaryLinkStubs.cpp:
1083
1084 2006-10-09  Brady Eidson  <beidson@apple.com>
1085
1086         Reviewed by Maciej
1087
1088         Tiny changes to help reorganize WebFrameLoader code in WebKit
1089
1090         * bridge/mac/WebCoreIconDatabaseBridge.h: Added "createInstance"
1091         * bridge/mac/WebCoreIconDatabaseBridge.mm:
1092         (+[WebCoreIconDatabaseBridge sharedInstance]): Added, uses createInstance from WebKit side
1093
1094 2006-10-09  Adam Roben  <aroben@apple.com>
1095
1096         Reviewed by Adele.
1097
1098         Remove redundant call to Frame::cancelAndClear from ~Frame, since it's
1099         already called frome ~FrameMac.
1100
1101         * page/Frame.cpp:
1102         (WebCore::Frame::~Frame):
1103
1104 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
1105
1106         * bridge/win/FrameWin.h:
1107         Add function declaration.
1108         
1109 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
1110
1111         * platform/win/TemporaryLinkStubs.cpp:
1112         (FrameWin::createJavaAppletWidget):
1113         Try fixing the Win32 build.
1114
1115 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
1116
1117         Reviewed by Adam.
1118
1119         Move applet widget creation to Frame and get rid of JavaAppletWidget.
1120         * WebCore.xcodeproj/project.pbxproj:
1121         * bridge/JavaAppletWidget.h: Removed.
1122         * bridge/mac/FrameMac.h:
1123         * bridge/mac/FrameMac.mm:
1124         (WebCore::FrameMac::createJavaAppletWidget):
1125         * bridge/mac/JavaAppletWidget.mm: Removed.
1126         * page/Frame.h:
1127         * rendering/RenderApplet.cpp:
1128         (WebCore::RenderApplet::createWidgetIfNecessary):
1129
1130 2006-10-09  Mitz Pettel  <mitz@webkit.org>
1131
1132         Reviewed by Darin.
1133
1134         - http://bugs.webkit.org/show_bug.cgi?id=11220
1135           Fix manual test for http://bugs.webkit.org/show_bug.cgi?id=8276
1136
1137         Subversion does not support resource forks and HFS metadata, so
1138         the resources for this test need to be on a disk image.
1139
1140         * manual-tests/plain-text-paste.html: Changed instructions to refer to the disk image.
1141         * manual-tests/resources/plain-text-paste.dmg: Added.
1142         * manual-tests/resources/plain-text-paste/._1.textClipping: Removed.
1143         * manual-tests/resources/plain-text-paste/._2.textClipping: Removed.
1144         * manual-tests/resources/plain-text-paste/._4.txt: Removed.
1145         * manual-tests/resources/plain-text-paste/._5.webloc: Removed.
1146         * manual-tests/resources/plain-text-paste/1.textClipping: Removed.
1147         * manual-tests/resources/plain-text-paste/2.textClipping: Removed.
1148         * manual-tests/resources/plain-text-paste/3.gif: Removed.
1149         * manual-tests/resources/plain-text-paste/4.txt: Removed.
1150         * manual-tests/resources/plain-text-paste/5.webloc: Removed.
1151
1152 2006-10-09  Rob Buis  <buis@kde.org>
1153
1154         Reviewed by Darin.
1155
1156         http://bugs.webkit.org/show_bug.cgi?id=11217
1157         Cleanup svg coding style
1158
1159         Cleanup coding style in filter classes.
1160
1161         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1162         (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
1163         (WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute):
1164         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
1165         * ksvg2/svg/SVGFEBlendElement.cpp:
1166         (WebCore::SVGFEBlendElement::SVGFEBlendElement):
1167         (WebCore::SVGFEBlendElement::parseMappedAttribute):
1168         (WebCore::SVGFEBlendElement::filterEffect):
1169         * ksvg2/svg/SVGFEBlendElement.h:
1170         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1171         (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
1172         (WebCore::SVGFEColorMatrixElement::parseMappedAttribute):
1173         (WebCore::SVGFEColorMatrixElement::filterEffect):
1174         * ksvg2/svg/SVGFEColorMatrixElement.h:
1175         * ksvg2/svg/SVGFECompositeElement.cpp:
1176         (WebCore::SVGFECompositeElement::parseMappedAttribute):
1177         * ksvg2/svg/SVGFECompositeElement.h:
1178         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1179         (WebCore::SVGFEDisplacementMapElement::stringToChannel):
1180         * ksvg2/svg/SVGFEDisplacementMapElement.h:
1181         * ksvg2/svg/SVGFEFloodElement.cpp:
1182         (WebCore::SVGFEFloodElement::filterEffect):
1183         * ksvg2/svg/SVGFEFuncAElement.cpp:
1184         (WebCore::SVGFEFuncAElement::SVGFEFuncAElement):
1185         * ksvg2/svg/SVGFEFuncBElement.cpp:
1186         (WebCore::SVGFEFuncBElement::SVGFEFuncBElement):
1187         * ksvg2/svg/SVGFEFuncGElement.cpp:
1188         (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
1189         * ksvg2/svg/SVGFEFuncRElement.cpp:
1190         (WebCore::SVGFEFuncRElement::SVGFEFuncRElement):
1191         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1192         (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
1193         (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
1194         (WebCore::SVGFEGaussianBlurElement::filterEffect):
1195         * ksvg2/svg/SVGFEGaussianBlurElement.h:
1196         * ksvg2/svg/SVGFELightElement.cpp:
1197         (WebCore::SVGFELightElement::SVGFELightElement):
1198         (WebCore::SVGFELightElement::parseMappedAttribute):
1199         * ksvg2/svg/SVGFELightElement.h:
1200         * ksvg2/svg/SVGFEMergeElement.cpp:
1201         (WebCore::SVGFEMergeElement::SVGFEMergeElement):
1202
1203 2006-10-09  Rob Buis  <buis@kde.org>
1204
1205         Reviewed by olliej.
1206
1207         http://bugs.webkit.org/show_bug.cgi?id=11217
1208         Cleanup svg coding style
1209
1210         Cleanup coding style in SVGPath* classes.
1211
1212         * ksvg2/svg/SVGPathElement.cpp:
1213         (WebCore::SVGPathElement::SVGPathElement):
1214         (WebCore::SVGPathElement::getPointAtLength):
1215         (WebCore::SVGPathElement::createSVGPathSegClosePath):
1216         (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
1217         (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
1218         (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
1219         (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
1220         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
1221         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
1222         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
1223         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
1224         (WebCore::SVGPathElement::createSVGPathSegArcAbs):
1225         (WebCore::SVGPathElement::createSVGPathSegArcRel):
1226         (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
1227         (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
1228         (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
1229         (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
1230         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
1231         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
1232         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
1233         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
1234         (WebCore::SVGPathElement::svgMoveTo):
1235         (WebCore::SVGPathElement::svgLineTo):
1236         (WebCore::SVGPathElement::svgLineToHorizontal):
1237         (WebCore::SVGPathElement::svgLineToVertical):
1238         (WebCore::SVGPathElement::svgCurveToCubic):
1239         (WebCore::SVGPathElement::svgCurveToCubicSmooth):
1240         (WebCore::SVGPathElement::svgCurveToQuadratic):
1241         (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
1242         (WebCore::SVGPathElement::svgArcTo):
1243         (WebCore::SVGPathElement::parseMappedAttribute):
1244         (WebCore::SVGPathElement::pathSegList):
1245         (WebCore::SVGPathElement::normalizedPathSegList):
1246         (WebCore::SVGPathElement::animatedPathSegList):
1247         (WebCore::SVGPathElement::animatedNormalizedPathSegList):
1248         (WebCore::SVGPathElement::toPathData):
1249         * ksvg2/svg/SVGPathElement.h:
1250         (WebCore::SVGPathElement::rendererIsNeeded):
1251         * ksvg2/svg/SVGPathSeg.h:
1252         * ksvg2/svg/SVGPathSegArc.cpp:
1253
1254 2006-10-09  Rob Buis  <buis@kde.org>
1255
1256         Reviewed by aroben.
1257
1258         http://bugs.webkit.org/show_bug.cgi?id=11217
1259         Cleanup svg coding style
1260
1261         Cleanup coding style in svg shape classes.
1262
1263         * ksvg2/svg/SVGCircleElement.cpp:
1264         (WebCore::SVGCircleElement::SVGCircleElement):
1265         (WebCore::SVGCircleElement::parseMappedAttribute):
1266         (WebCore::SVGCircleElement::pushAttributeContext):
1267         * ksvg2/svg/SVGCircleElement.h:
1268         (WebCore::SVGCircleElement::rendererIsNeeded):
1269         * ksvg2/svg/SVGEllipseElement.cpp:
1270         * ksvg2/svg/SVGEllipseElement.h:
1271         (WebCore::SVGEllipseElement::rendererIsNeeded):
1272         * ksvg2/svg/SVGLineElement.cpp:
1273         (WebCore::SVGLineElement::parseMappedAttribute):
1274         (WebCore::SVGLineElement::pushAttributeContext):
1275         * ksvg2/svg/SVGLineElement.h:
1276         (WebCore::SVGLineElement::rendererIsNeeded):
1277         * ksvg2/svg/SVGPolyElement.cpp:
1278         (WebCore::SVGPolyElement::SVGPolyElement):
1279         (WebCore::SVGPolyElement::points):
1280         (WebCore::SVGPolyElement::animatedPoints):
1281         (WebCore::SVGPolyElement::parseMappedAttribute):
1282         (WebCore::SVGPolyElement::notifyAttributeChange):
1283         * ksvg2/svg/SVGPolyElement.h:
1284         (WebCore::SVGPolyElement::rendererIsNeeded):
1285         * ksvg2/svg/SVGPolygonElement.cpp:
1286         (WebCore::SVGPolygonElement::SVGPolygonElement):
1287         (WebCore::SVGPolygonElement::toPathData):
1288         * ksvg2/svg/SVGPolygonElement.h:
1289         * ksvg2/svg/SVGPolylineElement.cpp:
1290         (WebCore::SVGPolylineElement::SVGPolylineElement):
1291         (WebCore::SVGPolylineElement::toPathData):
1292         * ksvg2/svg/SVGPolylineElement.h:
1293         * ksvg2/svg/SVGRectElement.cpp:
1294         (WebCore::SVGRectElement::parseMappedAttribute):
1295         (WebCore::SVGRectElement::pushAttributeContext):
1296         * ksvg2/svg/SVGRectElement.h:
1297         (WebCore::SVGRectElement::rendererIsNeeded):
1298
1299 2006-10-08  Darin Adler  <darin@apple.com>
1300
1301         Reviewed by Maciej.
1302
1303         - added a bit more WebCoreSystemInterface
1304
1305             wkGetNSURLResponseCalculatedExpiration
1306             wkGetNSURLResponseLastModifiedDate
1307             wkGetNSURLResponseMustRevalidate
1308
1309         * WebCore.exp: Added the new symbols.
1310         * platform/mac/WebCoreSystemInterface.h: Ditto.
1311         * platform/mac/WebCoreSystemInterface.mm: Ditto.
1312
1313         - quiet down the code generation script
1314
1315         * bindings/scripts/CodeGenerator.pm:
1316
1317 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
1318
1319         Reviewed by Darin.
1320
1321         - more code laundering - add wkSupportsMultipartXMixedReplace
1322
1323         * WebCore.exp:
1324         * platform/mac/WebCoreSystemInterface.h:
1325         * platform/mac/WebCoreSystemInterface.mm:
1326
1327 2006-10-08  Nikolas Zimmermann  <zimmermann@kde.org>
1328
1329         Reviewed by Darin and Oliver.
1330
1331         Fix artefacts when drawing polygons, most noticeable when painting <hr> elements.
1332
1333         * platform/qt/GraphicsContextQt.cpp: Fix wrong operator<< usage.
1334         (WebCore::GraphicsContext::drawConvexPolygon):
1335
1336 2006-10-08  Anders Carlsson  <acarlsson@apple.com>
1337
1338         Reviewed by Darin.
1339
1340         * page/Frame.cpp:
1341         (WebCore::Frame::submitForm):
1342         No need to use latin1() here.
1343
1344 2006-10-08  Nikolas Zimmermann  <zimmermann@kde.org>
1345
1346         Reviewed by Darin.
1347
1348         Kill warnings when generating IDL files on Qt/Linux, as the
1349         SOURCE_ROOT environment variable is not defined (and not needed) for us.
1350
1351         * bindings/scripts/CodeGenerator.pm:
1352
1353 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
1354
1355         Reviewed by Darin.
1356
1357         - split didNotOpenURL: into general and page-cache-specific parts
1358
1359         * bridge/mac/WebCoreFrameBridge.h:
1360         * bridge/mac/WebCoreFrameBridge.mm:
1361         (-[WebCoreFrameBridge didNotOpenURL:]):
1362         (-[WebCoreFrameBridge invalidatePageCache:]):
1363
1364 2006-10-08  Anders Carlsson  <acarlsson@apple.com>
1365
1366         Reviewed by Darin.
1367
1368         * loader/loader.cpp:
1369         Remove DeprecatedStringList.h include.
1370         
1371         * page/Frame.cpp:
1372         (WebCore::Frame::submitForm):
1373         Don't remove "attach" from mailto URLs, we don't do it anywhere else.
1374
1375 2006-10-08  Sam Weinig  <sam.weinig@gmail.com>
1376
1377         Reviewed by Darin.
1378
1379         Patch for http://bugs.webkit.org/show_bug.cgi?id=11215
1380         Yet another round of Objective-C SVG DOM bindings auto-generation
1381
1382         - Auto-generate DOMSVGPatternElement, DOMSVGPointList, DOMSVGPolygonElement, 
1383           DOMSVGPolylineElement, DOMSVGRadialGradientElement, DOMSVGRenderingIntent,
1384           DOMSVGScriptElement, DOMSVGSetElement, DOMSVGStopElement, DOMSVGSwitchElement, 
1385           DOMSVGSymbolElement, DOMSVGTRefElement, DOMSVGTSpanElement, 
1386           DOMSVGTextContentElement, DOMSVGTextElement, DOMSVGTextPositioningElement, 
1387           DOMSVGTitleElement, DOMSVGUnitTypes, DOMSVGUseElement, DOMSVGViewElement, 
1388           DOMSVGZoomAndPan and DOMSVGZoomEvent.
1389
1390         - Auto-generate the implementations of DOMHTMLAppletElement and DOMHTMLEmbedElement
1391           using the new [ConvertFromString] property.
1392
1393         - Add forward declarations for NS* types to auto-generated classes.
1394
1395         * DerivedSources.make:
1396         * WebCore.xcodeproj/project.pbxproj:
1397         * bindings/objc/DOMHTMLAppletElement.mm: Removed.
1398         * bindings/objc/DOMHTMLEmbedElement.mm: Removed.
1399         * bindings/objc/DOMInternal.h:
1400         * bindings/objc/DOMSVG.h:
1401         * bindings/scripts/CodeGeneratorObjC.pm:
1402         * html/HTMLAppletElement.idl:
1403         * html/HTMLEmbedElement.idl:
1404         * ksvg2/svg/SVGPatternElement.idl:
1405         * ksvg2/svg/SVGPolygonElement.idl:
1406         * ksvg2/svg/SVGPolylineElement.idl:
1407         * ksvg2/svg/SVGRadialGradientElement.idl:
1408         * ksvg2/svg/SVGRenderingIntent.idl:
1409         * ksvg2/svg/SVGScriptElement.idl:
1410         * ksvg2/svg/SVGSetElement.idl:
1411         * ksvg2/svg/SVGStopElement.idl:
1412         * ksvg2/svg/SVGSwitchElement.idl:
1413         * ksvg2/svg/SVGSymbolElement.idl:
1414         * ksvg2/svg/SVGTRefElement.idl:
1415         * ksvg2/svg/SVGTSpanElement.idl:
1416         * ksvg2/svg/SVGTextContentElement.idl:
1417         * ksvg2/svg/SVGTextElement.idl:
1418         * ksvg2/svg/SVGTextPositioningElement.idl:
1419         * ksvg2/svg/SVGTitleElement.idl:
1420         * ksvg2/svg/SVGUseElement.idl:
1421         * ksvg2/svg/SVGViewElement.idl:
1422         * ksvg2/svg/SVGZoomEvent.idl:
1423
1424 2006-10-07  Anders Carlsson  <acarlsson@apple.com>
1425
1426         Reviewed by Maciej.
1427
1428         Remove crossDomain, it was unused and is one of the last functions that use DeprecatedStringList.        
1429         * loader/loader.cpp:
1430         (WebCore::Loader::servePendingRequests):
1431         
1432 2006-10-07  Anders Carlsson  <acarlsson@apple.com>
1433
1434         Reviewed by Darin.
1435
1436         Convert a bunch of RefPtr<StringImpl> to String.
1437         
1438         * bridge/mac/FrameMac.h:
1439         * bridge/mac/FrameMac.mm:
1440         (WebCore::FrameMac::didTellBridgeAboutLoad):
1441         (WebCore::FrameMac::haveToldBridgeAboutLoad):
1442         * dom/BeforeUnloadEvent.cpp:
1443         (WebCore::BeforeUnloadEvent::storeResult):
1444         * dom/BeforeUnloadEvent.h:
1445         (WebCore::BeforeUnloadEvent::result):
1446         * dom/Document.cpp:
1447         (WebCore::Document::createEntityReference):
1448         * dom/Entity.cpp:
1449         (WebCore::Entity::Entity):
1450         (WebCore::Entity::nodeName):
1451         (WebCore::Entity::toString):
1452         * dom/Entity.h:
1453         (WebCore::Entity::publicId):
1454         (WebCore::Entity::systemId):
1455         (WebCore::Entity::notationName):
1456         * dom/EntityReference.cpp:
1457         (WebCore::EntityReference::EntityReference):
1458         (WebCore::EntityReference::nodeName):
1459         (WebCore::EntityReference::cloneNode):
1460         (WebCore::EntityReference::toString):
1461         * dom/EntityReference.h:
1462         * dom/KeyboardEvent.cpp:
1463         (WebCore::KeyboardEvent::KeyboardEvent):
1464         (WebCore::KeyboardEvent::initKeyboardEvent):
1465         * dom/KeyboardEvent.h:
1466         (WebCore::KeyboardEvent::keyIdentifier):
1467         * dom/MutationEvent.cpp:
1468         (WebCore::MutationEvent::MutationEvent):
1469         (WebCore::MutationEvent::initMutationEvent):
1470         * dom/MutationEvent.h:
1471         (WebCore::MutationEvent::prevValue):
1472         (WebCore::MutationEvent::newValue):
1473         (WebCore::MutationEvent::attrName):
1474         * dom/Notation.cpp:
1475         (WebCore::Notation::Notation):
1476         (WebCore::Notation::nodeName):
1477         * dom/Notation.h:
1478         (WebCore::Notation::publicId):
1479         (WebCore::Notation::systemId):
1480         * dom/ProcessingInstruction.cpp:
1481         (WebCore::ProcessingInstruction::ProcessingInstruction):
1482         (WebCore::ProcessingInstruction::setData):
1483         (WebCore::ProcessingInstruction::nodeName):
1484         (WebCore::ProcessingInstruction::nodeValue):
1485         (WebCore::ProcessingInstruction::cloneNode):
1486         (WebCore::ProcessingInstruction::checkStyleSheet):
1487         (WebCore::ProcessingInstruction::toString):
1488         * dom/ProcessingInstruction.h:
1489         (WebCore::ProcessingInstruction::target):
1490         (WebCore::ProcessingInstruction::data):
1491         (WebCore::ProcessingInstruction::localHref):
1492
1493 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
1494
1495         Reviewed by Tim H.
1496
1497         Patch for http://bugs.webkit.org/show_bug.cgi?id=11206
1498         10 more SVG Objective-C auto-generated bindings
1499
1500         - Auto-generate DOMSVGFilterElement, DOMSVGFitToViewBox, 
1501           DOMSVGForeignObjectElement, DOMSVGGElement, DOMSVGGradientElement,
1502           DOMSVGImageElement, DOMSVGLineElement, DOMSVGLinearGradientElement, 
1503           DOMSVGMarkerElement, DOMSVGMaskElement and DOMSVGPaint.
1504
1505         - Auto-generate the text method for DOMRange.
1506
1507         * DerivedSources.make:
1508         * WebCore.xcodeproj/project.pbxproj:
1509         * bindings/objc/DOM.mm:
1510         * bindings/objc/DOMExtensions.h:
1511         * bindings/objc/DOMInternal.h:
1512         * bindings/objc/DOMPrivate.h:
1513         * bindings/objc/DOMRGBColor.mm:
1514         * bindings/objc/DOMSVG.h:
1515         * bindings/objc/PublicDOMInterfaces.h:
1516         * bindings/scripts/CodeGeneratorObjC.pm:
1517         * dom/Range.idl:
1518         * ksvg2/svg/SVGFilterElement.cpp:
1519         * ksvg2/svg/SVGFilterElement.h:
1520         * ksvg2/svg/SVGFilterElement.idl:
1521         * ksvg2/svg/SVGForeignObjectElement.idl:
1522         * ksvg2/svg/SVGGElement.idl:
1523         * ksvg2/svg/SVGGradientElement.idl:
1524         * ksvg2/svg/SVGImageElement.idl:
1525         * ksvg2/svg/SVGLineElement.idl:
1526         * ksvg2/svg/SVGLinearGradientElement.idl:
1527         * ksvg2/svg/SVGMarkerElement.idl:
1528         * ksvg2/svg/SVGMaskElement.idl:
1529         * ksvg2/svg/SVGPaint.idl:
1530
1531 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
1532
1533         Reviewed by Tim H.
1534
1535         Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
1536         Auto-generate a few more Objective-C DOM interfaces
1537
1538         - Fully auto-generate DOMAbstractView and DOMRange.
1539
1540         - Auto-generate just the interface for DOMRGBColor.
1541
1542         - Add DOMRanges.h as the new top level file for Ranges
1543           module.
1544
1545         - Add DOMRanges.h and DOMXPath.h to DOM.mm
1546
1547         * DerivedSources.make:
1548         * WebCore.xcodeproj/project.pbxproj:
1549         * bindings/objc/DOM.h:
1550         * bindings/objc/DOM.mm:
1551         * bindings/objc/DOMAbstractView.h: Removed.
1552         * bindings/objc/DOMAbstractView.mm: Removed.
1553         * bindings/objc/DOMInternal.h:
1554         * bindings/objc/DOMPrivate.h:
1555         * bindings/objc/DOMRGBColor.h: Removed.
1556         * bindings/objc/DOMRGBColor.mm:
1557         * bindings/objc/DOMRange.h: Removed.
1558         * bindings/objc/DOMRanges.h: Added.
1559         * bindings/objc/PublicDOMInterfaces.h:
1560         * bindings/scripts/CodeGeneratorObjC.pm:
1561         * css/RGBColor.idl:
1562         * dom/Range.idl:
1563         * page/AbstractView.idl: Added.
1564
1565 2006-10-07  Andrew Wellington  <proton@wiretapped.net>
1566
1567         Reviewed by Eric.
1568
1569         Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
1570         http://bugzilla.opendarwin.org/show_bug.cgi?id=10837
1571
1572         Return null when there is no frame. This matches Firefox.
1573
1574         * bindings/js/kjs_html.cpp:
1575         (KJS::JSHTMLDocument::getValueProperty):
1576
1577 2006-10-07  David Hyatt  <hyatt@apple.com>
1578
1579         Implement scroll corner painting (a white rect fill) for overflow areas to cover up
1580         scrollbar joins properly.
1581
1582         Refactor painting of scrollbars and resizers into common functions.  Eliminate the
1583         extra 20 bytes per RenderLayer by cutting out m_resizerImage and m_resizerControlRect.
1584
1585         Reviewed by mitz
1586
1587         * page/FrameView.cpp:
1588         (WebCore::selectCursor):
1589         (WebCore::FrameView::handleMouseMoveEvent):
1590         * platform/mac/PlatformScrollBar.h:
1591         (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
1592         (WebCore::PlatformScrollbar::verticalScrollbarWidth):
1593         * rendering/RenderLayer.cpp:
1594         (WebCore::RenderLayer::RenderLayer):
1595         (WebCore::RenderLayer::~RenderLayer):
1596         (WebCore::RenderLayer::updateLayerPositions):
1597         (WebCore::scrollCornerRect):
1598         (WebCore::RenderLayer::positionOverflowControls):
1599         (WebCore::RenderLayer::paintOverflowControls):
1600         (WebCore::RenderLayer::isPointInResizeControl):
1601         (WebCore::RenderLayer::paintLayer):
1602         * rendering/RenderLayer.h:
1603
1604 2006-10-07  Mark Rowe  <bdash@webkit.org>
1605
1606         Reviewed by Mitz.
1607
1608         Linux/Gdk build fixes, primarily consisting of s/ScrollBar/Scrollbar/ and
1609         matching recent ResourceLoader changes.
1610
1611         * platform/gdk/FrameGdk.cpp:
1612         (WebCore::FrameGdk::openURL):
1613         (WebCore::FrameGdk::urlSelected):
1614         * platform/gdk/PlatformScrollBar.h:
1615         * platform/gdk/ResourceLoaderCurl.cpp:
1616         (WebCore::ResourceLoader::start):
1617         * platform/gdk/ScrollViewGdk.cpp:
1618         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
1619         (WebCore::ScrollView::resizeContents):
1620         (WebCore::ScrollView::scrollBy):
1621         (WebCore::ScrollView::hScrollbarMode):
1622         (WebCore::ScrollView::vScrollbarMode):
1623         (WebCore::ScrollView::suppressScrollbars):
1624         (WebCore::ScrollView::setHScrollbarMode):
1625         (WebCore::ScrollView::setVScrollbarMode):
1626         (WebCore::ScrollView::setScrollbarsMode):
1627         * platform/gdk/TemporaryLinkStubs.cpp:
1628         (FrameView::passMousePressEventToScrollbar):
1629         (Widget::removeFromParent):
1630         (ScrollView::addChild):
1631         (ScrollView::updateScrollbars):
1632         (ScrollView::scrollbarUnderMouse):
1633         (PlatformScrollbar::PlatformScrollbar):
1634         (PlatformScrollbar::~PlatformScrollbar):
1635         (PlatformScrollbar::width):
1636         (PlatformScrollbar::height):
1637         (PlatformScrollbar::setEnabled):
1638         (PlatformScrollbar::paint):
1639         (PlatformScrollbar::updateThumbPosition):
1640         (PlatformScrollbar::updateThumbProportion):
1641         (PlatformScrollbar::setRect):
1642         (Scrollbar::Scrollbar):
1643         (Scrollbar::setSteps):
1644         (Scrollbar::scroll):
1645         (Scrollbar::setValue):
1646         (Scrollbar::setProportion):
1647
1648 2006-10-06  Dave Hyatt  <hyatt@apple.com>
1649
1650         Implement a new method for obtaining accurate clip rectangles that can be used by plugins to properly clip.
1651
1652         * page/FrameView.cpp:
1653         (WebCore::FrameView::windowClipRect):
1654         * page/FrameView.h:
1655         * platform/ScrollView.h:
1656         * platform/Widget.cpp:
1657         (WebCore::Widget::windowClipRect):
1658         * platform/Widget.h:
1659         (WebCore::Widget::geometryChanged):
1660         (WebCore::Widget::handleMouseMoveEvent):
1661         (WebCore::Widget::handleMouseReleaseEvent):
1662         * platform/mac/ScrollViewMac.mm:
1663         (WebCore::ScrollView::addChild):
1664         * rendering/RenderLayer.cpp:
1665         (WebCore::RenderLayer::documentClipRect):
1666         * rendering/RenderLayer.h:
1667
1668 2006-10-06  Steve Falkenburg  <sfalken@apple.com>
1669
1670         Reviewed by Adam.
1671
1672         Add another method we'll need for scrollbar dodging
1673
1674         * platform/ScrollView.h:
1675         * platform/win/TemporaryLinkStubs.cpp:
1676         (ScrollView::resizerOverlapsContent):
1677
1678 2006-10-06  Sam Weinig  <sam.weinig@gmail.com>
1679
1680         Reviewed by Tim H.
1681
1682         Patch for http://bugs.webkit.org/show_bug.cgi?id=11191
1683         Auto-generate the interfaces even for Objective-C DOM 
1684         bindings that need custom implementations
1685
1686         - Fully auto-generate DOMEventTarget, DOMNodeFilter and 
1687           DOMHTMLOptionElement.
1688
1689         - Auto-generate just the interface for DOMHTMLAppletElement,
1690           DOMHTMLEmbedElement, DOMSVGNumber, DOMSVGPoint and DOMSVGRect
1691           using the new IDL property ObjCCustomImplementation.
1692
1693         * DerivedSources.make:
1694         * WebCore.xcodeproj/project.pbxproj:
1695         * bindings/objc/DOMEventTarget.h: Removed.
1696         * bindings/objc/DOMHTMLAppletElement.h: Removed.
1697         * bindings/objc/DOMHTMLEmbedElement.h: Removed.
1698         * bindings/objc/DOMHTMLOptionElement.h: Removed.
1699         * bindings/objc/DOMHTMLOptionElement.mm: Removed.
1700         * bindings/objc/DOMInternal.h:
1701         * bindings/objc/DOMNodeFilter.h: Removed.
1702         * bindings/objc/DOMSVGNumber.h: Removed.
1703         * bindings/objc/DOMSVGPoint.h: Removed.
1704         * bindings/objc/DOMSVGPoint.mm:
1705         (-[DOMSVGPoint matrixTransform:]):
1706         * bindings/objc/DOMSVGRect.h: Removed.
1707         * bindings/objc/PublicDOMInterfaces.h:
1708         * bindings/scripts/CodeGeneratorObjC.pm:
1709         * dom/EventTarget.idl:
1710         * html/HTMLAppletElement.idl:
1711         * html/HTMLEmbedElement.idl:
1712         * html/HTMLOptionElement.idl:
1713         * ksvg2/svg/SVGNumber.idl:
1714         * ksvg2/svg/SVGPoint.idl:
1715         * ksvg2/svg/SVGRect.idl:
1716
1717 2006-10-06  Nikolas Zimmermann  <zimmermann@kde.org>
1718
1719         Reviewed by Tim H.
1720
1721         Make Qt/Linux compile again completly.
1722
1723         * platform/qt/WidgetQt.cpp:
1724         (WebCore::Widget::removeFromParent):
1725
1726 2006-10-06  Nikolas Zimmermann  <zimmermann@kde.org>
1727
1728         Reviewed by Tim H.
1729
1730         Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ patch.
1731
1732         * platform/qt/PlatformScrollBar.h:
1733         * platform/qt/ScrollViewQt.cpp:
1734         (WebCore::ScrollView::hScrollbarMode):
1735         (WebCore::ScrollView::vScrollbarMode):
1736         (WebCore::ScrollView::suppressScrollbars):
1737         (WebCore::ScrollView::setHScrollbarMode):
1738         (WebCore::ScrollView::setVScrollbarMode):
1739         (WebCore::ScrollView::setScrollbarsMode):
1740         (WebCore::ScrollView::scrollbarUnderMouse):
1741         * platform/qt/TemporaryLinkStubs.cpp:
1742         (WebCore::Scrollbar::Scrollbar):
1743         (WebCore::Scrollbar::setSteps):
1744         (WebCore::Scrollbar::scroll):
1745         (WebCore::Scrollbar::setValue):
1746         (WebCore::Scrollbar::setProportion):
1747         (WebCore::PlatformScrollbar::PlatformScrollbar):
1748         (WebCore::PlatformScrollbar::~PlatformScrollbar):
1749         (WebCore::PlatformScrollbar::width):
1750         (WebCore::PlatformScrollbar::height):
1751         (WebCore::PlatformScrollbar::setEnabled):
1752         (WebCore::PlatformScrollbar::paint):
1753         (WebCore::PlatformScrollbar::updateThumbPosition):
1754         (WebCore::PlatformScrollbar::updateThumbProportion):
1755         (WebCore::PlatformScrollbar::setRect):
1756         (FrameView::passMousePressEventToScrollbar):
1757
1758 2006-10-06  Sam Weinig  <sam.weinig@gmail.com>
1759
1760         Reviewed by Tim H.
1761
1762         Patch for http://bugs.webkit.org/show_bug.cgi?id=11177
1763         Another round of Objective-C SVG DOM bindings auto-generation
1764
1765         - Auto-generate DOMSVGAnimatedNumberList, DOMSVGAnimatedRect, 
1766           DOMSVGComponentTransferFunctionElement, DOMSVGFEBlendElement, 
1767           DOMSVGFEColorMatrixElement, DOMSVGFEComponentTransferElement, 
1768           DOMSVGFECompositeElement, DOMSVGFEDiffuseLightingElement,
1769           DOMSVGFEDisplacementMapElement, DOMSVGFEDistantLightElement, 
1770           DOMSVGFEFloodElement, DOMSVGFEFuncAElement, DOMSVGFEFuncBElement, 
1771           DOMSVGFEFuncGElement, DOMSVGFEFuncRElement, DOMSVGFEGaussianBlurElement, 
1772           DOMSVGFEImageElement, DOMSVGFEMergeElement, DOMSVGFEMergeNodeElement, 
1773           DOMSVGFEOffsetElement, DOMSVGFEPointLightElement, 
1774           DOMSVGFESpecularLightingElement, DOMSVGFESpotLightElement, 
1775           DOMSVGFETileElement, DOMSVGFETurbulenceElement, 
1776           DOMSVGFilterPrimitiveStandardAttributes and DOMSVGNumberList. 
1777
1778         - Adds interfaces and implementation stubs for DOMSVGNumber, DOMSVGPoint
1779           and DOMSVGRect.
1780
1781         - IDL clean up.
1782
1783         - Make numOctaves in SVGFETurbulenceElement use a long instead of an int
1784           in it's macro declaration and definition.
1785
1786         * DerivedSources.make:
1787         * WebCore.xcodeproj/project.pbxproj:
1788         * bindings/objc/DOMCSS.mm:
1789         (+[DOMCSSValue _CSSValueWith:WebCore::]):
1790         * bindings/objc/DOMInternal.h:
1791         * bindings/objc/DOMSVG.h:
1792         * bindings/objc/DOMSVGNumber.h: Added.
1793         * bindings/objc/DOMSVGNumber.mm: Added.
1794         (-[DOMSVGNumber dealloc]):
1795         (-[DOMSVGNumber finalize]):
1796         (-[DOMSVGNumber value]):
1797         (-[DOMSVGNumber setValue:]):
1798         (-[DOMSVGNumber _SVGNumber]):
1799         (-[DOMSVGNumber _initWithFloat:]):
1800         (+[DOMSVGNumber _SVGNumberWith:]):
1801         * bindings/objc/DOMSVGPoint.h: Added.
1802         * bindings/objc/DOMSVGPoint.mm: Added.
1803         (-[DOMSVGPoint dealloc]):
1804         (-[DOMSVGPoint finalize]):
1805         (-[DOMSVGPoint x]):
1806         (-[DOMSVGPoint setX:]):
1807         (-[DOMSVGPoint y]):
1808         (-[DOMSVGPoint setY:]):
1809         (-[DOMSVGPoint WebCore::]):
1810         (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
1811         (+[DOMSVGPoint _SVGPointWith:WebCore::]):
1812         * bindings/objc/DOMSVGRect.h: Added.
1813         * bindings/objc/DOMSVGRect.mm: Added.
1814         (-[DOMSVGRect dealloc]):
1815         (-[DOMSVGRect finalize]):
1816         (-[DOMSVGRect x]):
1817         (-[DOMSVGRect setX:]):
1818         (-[DOMSVGRect y]):
1819         (-[DOMSVGRect setY:]):
1820         (-[DOMSVGRect width]):
1821         (-[DOMSVGRect setWidth:]):
1822         (-[DOMSVGRect height]):
1823         (-[DOMSVGRect setHeight:]):
1824         (-[DOMSVGRect WebCore::]):
1825         (-[DOMSVGRect _initWithFloatRect:WebCore::]):
1826         (+[DOMSVGRect _SVGRectWith:WebCore::]):
1827         * bindings/scripts/CodeGeneratorObjC.pm:
1828         * ksvg2/svg/SVGAnimatedNumberList.idl:
1829         * ksvg2/svg/SVGAnimatedRect.idl:
1830         * ksvg2/svg/SVGComponentTransferFunctionElement.idl:
1831         * ksvg2/svg/SVGCursorElement.idl:
1832         * ksvg2/svg/SVGFEBlendElement.idl:
1833         * ksvg2/svg/SVGFEColorMatrixElement.idl:
1834         * ksvg2/svg/SVGFEComponentTransferElement.idl:
1835         * ksvg2/svg/SVGFECompositeElement.idl:
1836         * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
1837         * ksvg2/svg/SVGFEDisplacementMapElement.idl:
1838         * ksvg2/svg/SVGFEDistantLightElement.idl:
1839         * ksvg2/svg/SVGFEFloodElement.idl:
1840         * ksvg2/svg/SVGFEFuncAElement.idl:
1841         * ksvg2/svg/SVGFEFuncBElement.idl:
1842         * ksvg2/svg/SVGFEFuncGElement.idl:
1843         * ksvg2/svg/SVGFEFuncRElement.idl:
1844         * ksvg2/svg/SVGFEGaussianBlurElement.idl:
1845         * ksvg2/svg/SVGFEImageElement.idl:
1846         * ksvg2/svg/SVGFEMergeElement.idl:
1847         * ksvg2/svg/SVGFEMergeNodeElement.idl:
1848         * ksvg2/svg/SVGFEOffsetElement.idl:
1849         * ksvg2/svg/SVGFEPointLightElement.idl:
1850         * ksvg2/svg/SVGFESpecularLightingElement.idl:
1851         * ksvg2/svg/SVGFESpotLightElement.idl:
1852         * ksvg2/svg/SVGFETileElement.idl:
1853         * ksvg2/svg/SVGFETurbulenceElement.cpp:
1854         * ksvg2/svg/SVGFETurbulenceElement.h:
1855         * ksvg2/svg/SVGFETurbulenceElement.idl:
1856         * ksvg2/svg/SVGNumberList.idl:
1857
1858 2006-10-06  Adam Roben  <aroben@apple.com>
1859
1860         Backing out my previous change.
1861
1862         * WebCore.xcodeproj/project.pbxproj:
1863         * page/FrameView.cpp:
1864         (WebCore::FrameView::adjustViewSize):
1865
1866 2006-10-06  Adam Roben  <aroben@apple.com>
1867
1868         Build fix.
1869
1870         * WebCore.xcodeproj/project.pbxproj:
1871         * page/FrameView.cpp:
1872         (WebCore::FrameView::windowResizerRect):
1873
1874 2006-10-06  Adam Roben  <aroben@apple.com>
1875
1876         Reviewed by Maciej.
1877
1878         More loader tweaks.
1879
1880         * platform/ResourceLoader.h:
1881         * platform/ResourceLoaderInternal.h:
1882         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1883         * platform/win/TemporaryLinkStubs.cpp:
1884         (WebCore::ResourceLoader::newHTTPRequest):
1885
1886 2006-10-05  Steve Falkenburg  <sfalken@apple.com>
1887
1888         Reviewed by aroben.
1889
1890         Stub out some methods that we'll be able to use to dodge a window resizer.
1891
1892         * bridge/win/FrameWin.h:
1893         * page/Frame.h:
1894         (WebCore::Frame::windowResizerRect):
1895         * page/FrameView.h:
1896         * platform/ScrollView.h:
1897         (WebCore::ScrollView::windowResizerRect):
1898         * platform/Widget.h:
1899         * platform/win/TemporaryLinkStubs.cpp:
1900         (FrameView::windowResizerRect):
1901         (Widget::setParent):
1902         (Widget::parent):
1903         (FrameWin::windowResizerRect):
1904
1905 2006-10-05  Dave Hyatt  <hyatt@apple.com>
1906
1907         Stub out setFrameGeometry.
1908         
1909         * platform/ScrollView.h:
1910
1911 2006-10-05  Adele Peterson  <adele@apple.com>
1912
1913         Reverting autoscroll fix.  I need to rework this a little.
1914
1915         * page/Frame.cpp:
1916         (WebCore::Frame::handleAutoscroll):
1917         (WebCore::Frame::autoscrollTimerFired):
1918         (WebCore::Frame::stopAutoscrollTimer):
1919         * page/Frame.h:
1920         * rendering/RenderLayer.cpp:
1921         (WebCore::RenderLayer::~RenderLayer):
1922         * rendering/RenderListBox.cpp:
1923         (WebCore::RenderListBox::~RenderListBox):
1924
1925 2006-10-05  Alice  <alice.liu@apple.com>
1926
1927         Reviewed by Adam.
1928
1929         Fixed <rdar://problem/4731778>
1930
1931         * editing/CommandByName.cpp:
1932         (WebCore::Frame::Command::):
1933         was calling the wrong enabledFn for arrow selection and navigation
1934
1935 2006-10-05  Adele Peterson  <adele@apple.com>
1936
1937         Reviewed by Maciej.
1938
1939         - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
1940           and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
1941
1942         * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
1943         * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
1944
1945         * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
1946         (WebCore::Frame::handleAutoscroll):
1947         (WebCore::Frame::autoscrollTimerFired):
1948         (WebCore::Frame::autoscrollRenderer):
1949         (WebCore::Frame::setAutoscrollRenderer):
1950         (WebCore::Frame::stopAutoscrollTimer):
1951         * page/Frame.h:
1952
1953 2006-10-05  Don Gibson  <dgibson77@gmail.com>
1954
1955         Reviewed by Eric.
1956
1957         Fix win32 build bustage after ggaren's Scrollbar renaming changes.
1958         Properly include PlatformScrollBar.h in WbCore.vcproj.
1959         Clean up WidgetWin.cpp a bit.
1960
1961         * WebCore.vcproj/WebCore/WebCore.vcproj:
1962         * platform/Widget.h:
1963         * platform/win/PlatformScrollBar.h:
1964         * platform/win/ScrollViewWin.cpp:
1965         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
1966         (WebCore::ScrollView::resizeContents):
1967         (WebCore::ScrollView::scrollBy):
1968         (WebCore::ScrollView::hScrollbarMode):
1969         (WebCore::ScrollView::vScrollbarMode):
1970         (WebCore::ScrollView::suppressScrollbars):
1971         (WebCore::ScrollView::setHScrollbarMode):
1972         (WebCore::ScrollView::setVScrollbarMode):
1973         (WebCore::ScrollView::setScrollbarsMode):
1974         (WebCore::ScrollView::updateScrollbars):
1975         * platform/win/TemporaryLinkStubs.cpp:
1976         (FrameView::passMousePressEventToScrollbar):
1977         (Widget::removeFromParent):
1978         (ScrollView::scrollbarUnderMouse):
1979         (PlatformScrollbar::PlatformScrollbar):
1980         (PlatformScrollbar::~PlatformScrollbar):
1981         (PlatformScrollbar::width):
1982         (PlatformScrollbar::height):
1983         (PlatformScrollbar::setEnabled):
1984         (PlatformScrollbar::paint):
1985         (PlatformScrollbar::updateThumbPosition):
1986         (PlatformScrollbar::updateThumbProportion):
1987         (PlatformScrollbar::setRect):
1988         (Scrollbar::Scrollbar):
1989         (Scrollbar::setSteps):
1990         (Scrollbar::scroll):
1991         (Scrollbar::setValue):
1992         (Scrollbar::setProportion):
1993         * platform/win/WidgetWin.cpp:
1994         (WebCore::WidgetPrivate::WidgetPrivate):
1995         (WebCore::Widget::Widget):
1996         (WebCore::Widget::setContainingWindow):
1997         (WebCore::Widget::containingWindow):
1998
1999 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
2000
2001         build fix.
2002         
2003         * WebCore.xcodeproj/project.pbxproj:
2004         * bridge/mac/BrowserExtensionMac.mm:
2005         (WebCore::BrowserExtensionMac::createNewWindow):
2006         * bridge/mac/FrameMac.mm:
2007         (WebCore::FrameMac::createFrame):
2008         * bridge/mac/FrameViewMac.mm:
2009         (WebCore::FrameView::passMousePressEventToScrollbar):
2010         * bridge/mac/WebCoreFrameBridge.mm:
2011         (-[WebCoreFrameBridge installInFrame:]):
2012         * bridge/mac/WebCoreFrameView.h:
2013         * platform/ScrollBar.cpp:
2014         * platform/Widget.h:
2015         * platform/mac/PlatformScrollBar.h:
2016         * platform/mac/PlatformScrollBarMac.mm:
2017         (NSControlSizeForScrollBarControlSize):
2018         (-[WebCoreScrollBar initWithPlatformScrollbar:]):
2019         (-[WebCoreScrollBar detachPlatformScrollbar]):
2020         (-[WebCoreScrollBar scroll:]):
2021         (-[WebCoreScrollBar widget]):
2022         (WebCore::PlatformScrollbar::PlatformScrollbar):
2023         (WebCore::PlatformScrollbar::~PlatformScrollbar):
2024         (WebCore::PlatformScrollbar::updateThumbPosition):
2025         (WebCore::PlatformScrollbar::updateThumbProportion):
2026         (WebCore::PlatformScrollbar::scrollbarHit):
2027         (WebCore::PlatformScrollbar::width):
2028         (WebCore::PlatformScrollbar::height):
2029         (WebCore::PlatformScrollbar::setRect):
2030         (WebCore::PlatformScrollbar::setEnabled):
2031         (WebCore::PlatformScrollbar::paint):
2032         * platform/mac/ScrollViewMac.mm:
2033         (WebCore::ScrollView::setVScrollbarMode):
2034         (WebCore::ScrollView::setHScrollbarMode):
2035         (WebCore::ScrollView::setScrollbarsMode):
2036         (WebCore::ScrollView::vScrollbarMode):
2037         (WebCore::ScrollView::hScrollbarMode):
2038         (WebCore::ScrollView::suppressScrollbars):
2039         (WebCore::ScrollView::scrollbarUnderMouse):
2040         * platform/mac/WidgetMac.mm:
2041         (WebCore::Widget::removeFromParent):
2042         * rendering/RenderLayer.cpp:
2043         (WebCore::RenderLayer::destroyScrollbar):
2044
2045 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
2046
2047         build fix.
2048         
2049         * platform/Widget.h:
2050         * rendering/RenderLayer.cpp:
2051         (WebCore::RenderLayer::destroyScrollbar):
2052
2053 2006-10-06  Mitz Pettel  <mitz@webkit.org>
2054
2055         http://bugs.webkit.org/show_bug.cgi?id=8276
2056         Fix broken manual test added back in r13990.
2057
2058         Add resource forks for test resources.
2059
2060         * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
2061         * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
2062         * manual-tests/resources/plain-text-paste/._4.txt: Added.
2063         * manual-tests/resources/plain-text-paste/._5.webloc: Added.
2064
2065 2006-10-05  David Hyatt  <hyatt@apple.com>
2066
2067         Rename addClip to clip.
2068
2069         Reviewed by darin
2070
2071         * kcanvas/RenderForeignObject.cpp:
2072         (WebCore::RenderForeignObject::paint):
2073         * kcanvas/RenderSVGContainer.cpp:
2074         (WebCore::RenderSVGContainer::paint):
2075         * kcanvas/RenderSVGImage.cpp:
2076         (WebCore::RenderSVGImage::paint):
2077         * platform/GraphicsContext.h:
2078         * platform/cairo/GraphicsContextCairo.cpp:
2079         (WebCore::GraphicsContext::clip):
2080         * platform/cg/GraphicsContextCG.cpp:
2081         (WebCore::GraphicsContext::savePlatformState):
2082         (WebCore::GraphicsContext::restorePlatformState):
2083         (WebCore::GraphicsContext::clip):
2084         (WebCore::GraphicsContext::addRoundedRectClip):
2085         (WebCore::GraphicsContext::addInnerRoundedRectClip):
2086         (WebCore::GraphicsContext::scale):
2087         (WebCore::GraphicsContext::rotate):
2088         (WebCore::GraphicsContext::translate):
2089         (WebCore::GraphicsContext::concatCTM):
2090         * platform/cg/GraphicsContextPlatformPrivate.h:
2091         (WebCore::GraphicsContextPlatformPrivate::save):
2092         (WebCore::GraphicsContextPlatformPrivate::restore):
2093         (WebCore::GraphicsContextPlatformPrivate::clip):
2094         (WebCore::GraphicsContextPlatformPrivate::scale):
2095         (WebCore::GraphicsContextPlatformPrivate::rotate):
2096         (WebCore::GraphicsContextPlatformPrivate::translate):
2097         (WebCore::GraphicsContextPlatformPrivate::concatCTM):
2098         * platform/qt/GraphicsContextQt.cpp:
2099         (WebCore::GraphicsContext::clip):
2100         (WebCore::GraphicsContext::addInnerRoundedRectClip):
2101         (WebCore::GraphicsContext::addRoundedRectClip):
2102         * rendering/InlineFlowBox.cpp:
2103         (WebCore::InlineFlowBox::paintBackground):
2104         (WebCore::InlineFlowBox::paintBackgroundAndBorder):
2105         * rendering/InlineTextBox.cpp:
2106         (WebCore::InlineTextBox::paintSelection):
2107         (WebCore::InlineTextBox::paintTextMatchMarker):
2108         * rendering/RenderBox.cpp:
2109         (WebCore::RenderBox::paintBackgroundExtended):
2110         * rendering/RenderButton.cpp:
2111         (WebCore::RenderButton::paintObject):
2112         * rendering/RenderFileUploadControl.cpp:
2113         (WebCore::RenderFileUploadControl::paintObject):
2114         * rendering/RenderLayer.cpp:
2115         (WebCore::RenderLayer::beginTransparencyLayers):
2116         (WebCore::setClip):
2117         * rendering/RenderListBox.cpp:
2118         (WebCore::RenderListBox::paintObject):
2119         * rendering/RenderMenuList.cpp:
2120         (WebCore::RenderMenuList::paintObject):
2121         * rendering/RenderTableCell.cpp:
2122         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
2123
2124 2006-10-05  Mitz Pettel  <mitz@webkit.org>
2125
2126         Reviewed by Darin.
2127
2128         - http://bugs.webkit.org/show_bug.cgi?id=10386
2129           Delete RenderImageButton.* and remove references from .vcproj and .bkl files
2130
2131         * CMakeLists.txt:
2132         * WebCore.vcproj/WebCore/WebCore.vcproj:
2133         * WebCoreSources.bkl:
2134         * rendering/RenderImageButton.cpp: Removed.
2135         * rendering/RenderImageButton.h: Removed.
2136
2137 2006-10-05  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2138
2139         Reviewed by Darin.
2140
2141         - http://bugs.webkit.org/show_bug.cgi?id=11067
2142           manual-tests/scrollbar-hittest2.html is invalid
2143
2144         * manual-tests/scrollbar-hittest2.html:
2145
2146 2006-10-05  David Carson  <dacarson@gmail.com>
2147
2148         Reviewed by Darin.
2149
2150         http://bugs.webkit.org/show_bug.cgi?id=11152
2151         Adjust the tokenizer chunk size to be smaller for
2152         mobile devices, and also decrease the yield timer
2153         for the tokenizer so that it can resume earlier.
2154
2155         * html/HTMLTokenizer.cpp:
2156         * config.h:
2157
2158 2006-10-05  Adam Roben  <aroben@apple.com>
2159
2160         Removing accidentally-checked-in do-nothing code.
2161
2162         * html/HTMLInputElement.cpp:
2163         (WebCore::HTMLInputElement::defaultEventHandler):
2164
2165 2006-10-05  David Carson  <dacarson@gmail.com>
2166
2167         Reviewed by Mitz.
2168
2169         http://bugs.webkit.org/show_bug.cgi?id=11158
2170         Initialize class variables
2171
2172         * rendering/RenderLayer.cpp:
2173         (WebCore::RenderLayer::RenderLayer):
2174
2175 2006-10-05  Don Gibson  <dgibson77@gmail.com>
2176
2177         Reviewed by Darin, landed by Adam.
2178
2179         http://bugs.webkit.org/show_bug.cgi?id=11176
2180         Fix win32 build, adapt to Maciej's ResourceLoader changes.
2181
2182         * platform/win/ResourceLoaderWin.cpp:
2183         (WebCore::ResourceLoader::start):
2184
2185 2006-10-05  Marvin Decker  <marv.decker@gmail.com>
2186
2187         Reviewed by Darin.
2188
2189         http://bugs.webkit.org/show_bug.cgi?id=10989
2190         Provide a way for embedders to implement BrowserExtensionWin
2191
2192         * WebCore.vcproj/WebCore/WebCore.vcproj:
2193         * bridge/win/BrowserExtensionWin.cpp: Added.
2194         (BrowserExtensionWin::BrowserExtensionWin):
2195         (BrowserExtensionWin::setTypedIconURL):
2196         (BrowserExtensionWin::setIconURL):
2197         (BrowserExtensionWin::getHistoryLength):
2198         (BrowserExtensionWin::canRunModal):
2199         (BrowserExtensionWin::createNewWindow):
2200         (BrowserExtensionWin::canRunModalNow):
2201         (BrowserExtensionWin::runModal):
2202         (BrowserExtensionWin::goBackOrForward):
2203         (BrowserExtensionWin::historyURL):
2204         * bridge/win/BrowserExtensionWin.h:
2205         * bridge/win/FrameWin.cpp:
2206         (WebCore::FrameWin::createNewWindow):
2207         * bridge/win/FrameWin.h:
2208         * platform/win/TemporaryLinkStubs.cpp:
2209
2210 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
2211
2212         Reviewed by Darin.
2213         
2214         Fixed <rdar://problem/4766987>
2215         
2216         - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
2217         except for file names.
2218         
2219         - fixed RenderLayer to properly tear down scrollbars, removing them from
2220         their parents.
2221
2222         * bindings/js/kjs_window.cpp:
2223         (KJS::showModalDialog):
2224         (KJS::setWindowFeature):
2225         (KJS::parseWindowFeatures):
2226         * bridge/BrowserExtension.h:
2227         * dom/Document.cpp:
2228         (WebCore::Document::setInPageCache):
2229         * html/HTMLFrameElement.cpp:
2230         (WebCore::HTMLFrameElement::init):
2231         (WebCore::HTMLFrameElement::parseMappedAttribute):
2232         * html/HTMLFrameElement.h:
2233         (WebCore::HTMLFrameElement::scrollingMode):
2234         * page/Frame.cpp:
2235         (WebCore::Frame::finishedParsing):
2236         (WebCore::Frame::scrollbarsVisible):
2237         * page/FrameView.cpp:
2238         (WebCore::FrameViewPrivate::FrameViewPrivate):
2239         (WebCore::FrameViewPrivate::reset):
2240         (WebCore::FrameView::~FrameView):
2241         (WebCore::FrameView::resetScrollbars):
2242         (WebCore::FrameView::clear):
2243         (WebCore::FrameView::initScrollbars):
2244         (WebCore::FrameView::applyOverflowToViewport):
2245         (WebCore::FrameView::layout):
2246         (WebCore::FrameView::handleMousePressEvent):
2247         (WebCore::selectCursor):
2248         (WebCore::FrameView::handleMouseMoveEvent):
2249         (WebCore::FrameView::setScrollbarsMode):
2250         (WebCore::FrameView::setVScrollbarMode):
2251         (WebCore::FrameView::setHScrollbarMode):
2252         (WebCore::FrameView::restoreScrollbar):
2253         (WebCore::FrameView::dispatchMouseEvent):
2254         (WebCore::FrameView::scrollbarMoved):
2255         * page/FrameView.h:
2256         * page/MouseEventWithHitTestResults.cpp:
2257         (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
2258         * page/MouseEventWithHitTestResults.h:
2259         (WebCore::MouseEventWithHitTestResults::scrollbar):
2260         * platform/ScrollBar.cpp:
2261         (WebCore::Scrollbar::Scrollbar):
2262         (WebCore::Scrollbar::setValue):
2263         (WebCore::Scrollbar::setProportion):
2264         (WebCore::Scrollbar::setSteps):
2265         (WebCore::Scrollbar::scroll):
2266         * platform/ScrollBar.h:
2267         (WebCore::):
2268         (WebCore::ScrollbarClient::~ScrollbarClient):
2269         (WebCore::Scrollbar::~Scrollbar):
2270         (WebCore::Scrollbar::orientation):
2271         (WebCore::Scrollbar::controlSize):
2272         (WebCore::Scrollbar::hasPlatformScrollbars):
2273         (WebCore::Scrollbar::client):
2274         * platform/ScrollBarMode.h:
2275         (WebCore::):
2276         * platform/ScrollView.h:
2277         * rendering/RenderBlock.cpp:
2278         (WebCore::RenderBlock::isPointInScrollbar):
2279         * rendering/RenderLayer.cpp:
2280         (WebCore::RenderLayer::RenderLayer):
2281         (WebCore::RenderLayer::~RenderLayer):
2282         (WebCore::RenderLayer::scrollToOffset):
2283         (WebCore::RenderLayer::horizontaScrollbarWidget):
2284         (WebCore::RenderLayer::verticalScrollbarWidget):
2285         (WebCore::RenderLayer::valueChanged):
2286         (WebCore::RenderLayer::createScrollbar):
2287         (WebCore::RenderLayer::destroyScrollbar):
2288         (WebCore::RenderLayer::setHasHorizontalScrollbar):
2289         (WebCore::RenderLayer::setHasVerticalScrollbar):
2290         (WebCore::RenderLayer::verticalScrollbarWidth):
2291         (WebCore::RenderLayer::horizontalScrollbarHeight):
2292         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
2293         * rendering/RenderLayer.h:
2294         (WebCore::RenderLayer::horizontalScrollbar):
2295         (WebCore::RenderLayer::verticalScrollbar):
2296         * rendering/RenderListBox.cpp:
2297         (WebCore::RenderListBox::~RenderListBox):
2298         (WebCore::RenderListBox::calcMinMaxWidth):
2299         (WebCore::RenderListBox::isPointInScrollbar):
2300         (WebCore::RenderListBox::optionAtPoint):
2301         (WebCore::RenderListBox::valueChanged):
2302         * rendering/RenderListBox.h:
2303         * rendering/RenderObject.h:
2304         (WebCore::RenderObject::NodeInfo::scrollbar):
2305         (WebCore::RenderObject::NodeInfo::setScrollbar):
2306
2307 2006-10-05  Don Gibson  <dgibson77@gmail.com>
2308
2309         Reviewed by Adam.
2310
2311         http://bugs.webkit.org/show_bug.cgi?id=11138
2312         Incorrect mouse event generation on Windows
2313
2314         * platform/win/MouseEventWin.cpp:
2315         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2316         (1) Set mouse button even for non-click-related messages.
2317         (2) Track clicks correctly for all buttons, not just the left button.
2318
2319 2006-10-05  Nikolas Zimmermann  <zimmermann@kde.org>
2320
2321         Reviewed and landed by ap.
2322
2323         Fix Qt/Linux build, adapt to Eric's quartz changes and to Maciej's ResourceLoader changes.
2324
2325         * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
2326         (WebCore::KRenderingPaintServerLinearGradientQt::renderPath):
2327         (WebCore::KRenderingPaintServerLinearGradientQt::setup):
2328         (WebCore::KRenderingPaintServerRadialGradientQt::setup):
2329         (WebCore::KRenderingPaintServerRadialGradientQt::renderPath):
2330         * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
2331         (WebCore::KRenderingPaintServerPatternQt::renderPath):
2332         * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
2333         (WebCore::KRenderingPaintServerQt::setPenProperties):
2334         * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
2335         (WebCore::KRenderingPaintServerSolidQt::setup):
2336         (WebCore::KRenderingPaintServerSolidQt::renderPath):
2337         * kcanvas/device/qt/RenderPathQt.cpp:
2338         (WebCore::getPathStroke):
2339
2340 2006-10-05  Alexey Proskuryakov  <ap@nypop.com>
2341
2342         Reviewed by Darin.
2343
2344         http://bugs.webkit.org/show_bug.cgi?id=11054
2345         REGRESSION: Traditional Chinese encoding in login authentication
2346
2347         1. Treat GB2312 encoding as GBK (its more modern superset), to match other browsers.
2348         2. On the Web, GB2312 is encoded as EUC-CN or HZ, while ICU provides a native encoding
2349         for encoding GB_2312-80 and several others. So, we need to override this behavior, too.
2350
2351         * platform/StreamingTextDecoderICU.cpp:
2352         (WebCore::TextCodecICU::registerEncodingNames):
2353
2354 2006-10-05  Eric Seidel  <eric@eseidel.com>
2355
2356         Reviewed by mjs.
2357
2358         Removed dead code.
2359         Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
2360
2361         * WebCore.xcodeproj/project.pbxproj:
2362         * ksvg2/ecma/GlobalObject.cpp: Removed.
2363         * ksvg2/ecma/GlobalObject.h: Removed.
2364
2365 2006-10-05  Adam Roben  <aroben@apple.com>
2366
2367         Reviewed by Maciej.
2368
2369         Small ResourceLoaderInternal tweak.
2370
2371         * platform/ResourceLoaderInternal.h:
2372         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2373
2374 2006-10-05  Eric Seidel  <eric@eseidel.com>
2375
2376         Reviewed by mjs.
2377
2378         More incremental KCanvas cleanup and optimization.
2379         Added SVGRenderStyle::hasFill() and hasStroke() removed more KSVGPainterFactory methods.
2380         Optimized dash array usage to not malloc.
2381         Also removed un-needed KSVGRenderingStyle includes.
2382
2383         * kcanvas/KCanvasTreeDebug.cpp:
2384         (WebCore::operator<<):
2385         * kcanvas/RenderPath.cpp:
2386         (WebCore::RenderPath::nodeAtPoint):
2387         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
2388         (WebCore::RenderPath::strokeBBox):
2389         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
2390         (WebCore::KRenderingPaintServerGradientQuartz::setup):
2391         (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
2392         (WebCore::KRenderingPaintServerGradientQuartz::teardown):
2393         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
2394         (WebCore::KRenderingPaintServerSolidQuartz::setup):
2395         (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
2396         (WebCore::KRenderingPaintServerPatternQuartz::setup):
2397         (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
2398         * kcanvas/device/quartz/QuartzSupport.mm:
2399         (WebCore::applyStrokeStyleToContext):
2400         * ksvg2/css/SVGRenderStyle.h:
2401         (WebCore::SVGRenderStyle::hasStroke):
2402         (WebCore::SVGRenderStyle::hasFill):
2403         * ksvg2/misc/KCanvasRenderingStyle.cpp:
2404         (WebCore::KSVGPainterFactory::fillPaintServer):
2405         (WebCore::KSVGPainterFactory::strokePaintServer):
2406         * ksvg2/misc/KCanvasRenderingStyle.h:
2407
2408 2006-10-05  Maciej Stachowiak  <mjs@apple.com>
2409
2410         Reviewed by Adam.
2411
2412         - changed ResourceLoader to be refcounted
2413
2414         It keeps a ref on itself while loading as well. This makes
2415         for a much saner memory management model than the previous.
2416
2417         * bridge/mac/WebCoreResourceLoaderImp.mm:
2418         (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
2419         * dom/XMLTokenizer.cpp:
2420         (WebCore::openFunc):
2421         * loader/icon/IconLoader.cpp:
2422         (IconLoader::IconLoader):
2423         (IconLoader::~IconLoader):
2424         (IconLoader::startLoading):
2425         (IconLoader::stopLoading):
2426         (IconLoader::receivedData):
2427         * loader/icon/IconLoader.h:
2428         * loader/loader.cpp:
2429         (WebCore::Loader::servePendingRequests):
2430         * platform/ResourceLoader.cpp:
2431         (WebCore::ResourceLoader::create):
2432         (WebCore::ResourceLoader::kill):
2433         * platform/ResourceLoader.h:
2434         * platform/ResourceLoaderInternal.h:
2435         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2436         * platform/mac/ResourceLoaderMac.mm:
2437         (WebCore::ResourceLoader::start):
2438         * xml/XSLTProcessor.cpp:
2439         (WebCore::docLoaderFunc):
2440         * xml/xmlhttprequest.cpp:
2441         (WebCore::XMLHttpRequest::send):
2442         * xml/xmlhttprequest.h:
2443
2444 2006-10-05  Eric Seidel  <eric@eseidel.com>
2445
2446         Reviewed by mjs.
2447
2448         Improve SVG opacity performance by clipping to the object bbox before starting a new opacity layer.
2449         http://bugs.webkit.org/show_bug.cgi?id=11163
2450         
2451         No SVG performance tests yet.
2452
2453         * kcanvas/RenderForeignObject.cpp:
2454         (WebCore::RenderForeignObject::paint):
2455         * kcanvas/RenderSVGContainer.cpp:
2456         (WebCore::RenderSVGContainer::paint):
2457         * kcanvas/RenderSVGImage.cpp:
2458         (WebCore::RenderSVGImage::paint):
2459         * kcanvas/RenderSVGText.cpp:
2460         (WebCore::RenderSVGText::paint):
2461
2462 2006-10-05  Dave Hyatt  <hyatt@apple.com>
2463
2464         Stub out some stuff for widget focusability.
2465
2466         Reviewed by maciej
2467  
2468         * page/FrameView.cpp:
2469         (WebCore::FrameView::dispatchMouseEvent):
2470         * platform/ScrollView.h:
2471         * platform/Widget.h:
2472
2473 2006-10-05  Adam Roben  <aroben@apple.com>
2474
2475         Reviewed by Maciej and Tim H.
2476
2477         Copy some WebKit frame lifetime logic into WebCore -- just a step
2478         along the path to frame lifetime being handled completely in WebCore.
2479
2480         * bridge/mac/FrameMac.mm:
2481         (WebCore::FrameMac::setView): Move platform-independent parts of this
2482         method into Frame.
2483         * page/Frame.cpp:
2484         (WebCore::Frame::setView): Adding platform-independent parts of
2485         FrameMac::setView
2486         (WebCore::Frame::detachChildren): New method to accomplish what
2487         -[WebFrameBridge _detachChildren] currently does.
2488         (WebCore::Frame::clear): Call detachChildren
2489         * page/Frame.h: Add declaration for detachChildren
2490
2491 2006-10-04  Alice Liu  <alice.liu@apple.com>
2492
2493         Reviewed by Darin.
2494
2495         Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
2496
2497         * xml/xmlhttprequest.cpp:
2498         (WebCore::XMLHttpRequest::setRequestHeader):
2499         removed exception set when the request is not open yet
2500
2501 2006-10-04  Anders Carlsson  <acarlsson@apple.com>
2502
2503         Reviewed by John Sullivan.
2504
2505         <rdar://problem/4654328>
2506         Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
2507         
2508         * loader/PluginDocument.cpp:
2509         (WebCore::PluginTokenizer::writeRawData):
2510         Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
2511
2512 2006-10-03  Alexey Proskuryakov  <ap@nypop.com>
2513
2514         Reviewed by Tim H.
2515
2516         http://bugs.webkit.org/show_bug.cgi?id=11130
2517         Convert "undefined" to AE missing value
2518
2519         * bridge/mac/WebCoreFrameBridge.mm:
2520         (aeDescFromJSValue): return missing value for UndefinedType.
2521
2522 2006-10-03  Dave Hyatt  <hyatt@apple.com>
2523
2524         Scrolling work.  Eliminate convertTo/FromContainingWindow as cross-platform functions.  Add back in
2525         the windowToContents/contentsToWindow functions.
2526         
2527         Reviewed by anders
2528
2529         * bridge/mac/FrameMac.mm:
2530         (WebCore::FrameMac::eventMayStartDrag):
2531         (WebCore::FrameMac::dragHysteresisExceeded):
2532         (WebCore::FrameMac::mouseDown):
2533         (WebCore::FrameMac::shouldDragAutoNode):
2534         (WebCore::FrameMac::sendContextMenuEvent):
2535         * bridge/mac/FrameViewMac.mm:
2536         (WebCore::FrameView::passMousePressEventToScrollbar):
2537         * bridge/mac/WebCoreFrameBridge.mm:
2538         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
2539         * dom/EventTargetNode.cpp:
2540         (WebCore::EventTargetNode::dispatchMouseEvent):
2541         (WebCore::EventTargetNode::dispatchWheelEvent):
2542         * page/Frame.cpp:
2543         (WebCore::Frame::selectClosestWordFromMouseEvent):
2544         (WebCore::Frame::handleMousePressEventTripleClick):
2545         (WebCore::Frame::handleMousePressEventSingleClick):
2546         (WebCore::Frame::handleMouseMoveEvent):
2547         (WebCore::Frame::handleMouseReleaseEvent):
2548         * page/FrameView.cpp:
2549         (WebCore::FrameView::handleMousePressEvent):
2550         (WebCore::FrameView::handleMouseDoubleClickEvent):
2551         (WebCore::selectCursor):
2552         (WebCore::FrameView::handleMouseMoveEvent):
2553         (WebCore::FrameView::handleMouseReleaseEvent):
2554         (WebCore::FrameView::dispatchDragEvent):
2555         (WebCore::FrameView::prepareMouseEvent):
2556         (WebCore::FrameView::handleWheelEvent):
2557         * page/FrameView.h:
2558         * platform/ScrollBar.cpp:
2559         (WebCore::ScrollBar::setValue):
2560         * platform/ScrollView.h:
2561         * platform/Widget.h:
2562         (WebCore::Widget::scrolled):
2563         * platform/mac/ScrollViewMac.mm:
2564         (WebCore::ScrollView::contentsToWindow):
2565         (WebCore::ScrollView::windowToContents):
2566         (WebCore::ScrollView::scrollbarUnderMouse):
2567         * platform/mac/WidgetMac.mm:
2568         * rendering/RenderLayer.cpp:
2569         (WebCore::RenderLayer::resize):
2570         (WebCore::RenderLayer::positionScrollbars):
2571         * rendering/RenderReplaced.cpp:
2572         (WebCore::RenderReplaced::shouldPaint):
2573         * rendering/RenderView.cpp:
2574         * rendering/RenderView.h:
2575         * rendering/RenderWidget.cpp:
2576         (WebCore::RenderWidget::setWidget):
2577
2578 2006-09-26  David Smith  <catfish.man@gmail.com>
2579
2580         Reviewed by Timothy.
2581
2582         http://bugs.webkit.org/show_bug.cgi?id=3723
2583         Add -scrollDOMRangeToVisible:
2584
2585         No automated tests are possible as this code path isn't reachable from JavaScript.
2586
2587         * bridge/mac/WebCoreFrameBridge.h:
2588         * bridge/mac/WebCoreFrameBridge.mm:
2589         (-[WebCoreFrameBridge scrollDOMRangeToVisible:]):
2590
2591 2006-10-03  Graham Dennis  <graham.dennis@gmail.com>
2592
2593         Reviewed by Timothy.
2594
2595         <http://bugs.webkit.org/show_bug.cgi?id=10338>
2596         When contentEditable, cursor doesn't change to hand
2597         
2598         Allow the behaviour of editable links to be specified by a WebPreference
2599         The preference WebKitEditableLinkBehavior has four options:
2600          - AlwaysLive: Safari 2.0 behaviour
2601          - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
2602          - LiveWhenNotFocused: Editable links are live only when their editable block is not
2603              focused, or when the shift key is pressed
2604          - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
2605          
2606         No layout tests, just a modification of a manual-test as it isn't possible to test
2607         this automatically.
2608
2609         * bridge/mac/WebCoreSettings.h:
2610         * bridge/mac/WebCoreSettings.mm:
2611         (-[WebCoreSettings setEditableLinkBehavior:]):
2612         (-[WebCoreSettings editableLinkBehavior]):
2613         * html/HTMLAnchorElement.cpp:
2614         (WebCore::HTMLAnchorElement::HTMLAnchorElement):
2615         (WebCore::HTMLAnchorElement::defaultEventHandler):
2616         (WebCore::HTMLAnchorElement::setActive):
2617         * html/HTMLAnchorElement.h:
2618         * manual-tests/contenteditable-link.html:
2619         * page/FrameView.cpp:
2620         (WebCore::nodeIsNotBeingEdited):
2621         (WebCore::selectCursor):
2622         * page/Settings.h:
2623         (WebCore::Settings::):
2624         (WebCore::Settings::Settings):
2625         (WebCore::Settings::editableLinkBehavior):
2626         (WebCore::Settings::setEditableLinkBehavior):
2627
2628 2006-10-03  Beth Dakin  <bdakin@apple.com>
2629
2630         Reviewed Darin.
2631
2632         No test cases needed.
2633
2634         Implemented a version of StringImpl::append that takes a UChar* and 
2635         a length.
2636
2637         * platform/StringImpl.cpp:
2638         (WebCore::StringImpl::append):
2639         (WebCore::StringImpl::insert): Call new append instead of making a 
2640         new StringImpl.
2641         * platform/StringImpl.h:
2642
2643 2006-10-03  MorganL  <morganl.webkit@yahoo.com>
2644
2645         Reviewed by Darin.
2646
2647         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
2648         HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
2649
2650         * platform/win/ResourceLoaderWin.cpp:
2651         (WebCore::ResourceLoader::onHandleCreated):
2652
2653 2006-10-02  Geoffrey Garen  <ggaren@apple.com>
2654
2655         Feared, loathed, reviewed by Darin.
2656
2657         More frame/iframe merging. Merged IFRAME::willRemove and IFRAME::detach 
2658         into FRAME, plus other cleanup.
2659         
2660         No new behavior, so no new test. Layout tests pass. Basic browsing and
2661         Mail editing seem to work.
2662         
2663         * dom/Node.cpp:
2664         (WebCore::Node::detach): Removed random commented-out code.
2665         * html/HTMLFrameElement.cpp:
2666         (WebCore::HTMLFrameElement::isURLAllowed): 
2667         (1) Removed reference to FrameView, to dissociate frame loading from rendering.
2668         (2) Renamed newURL to completeURL because the difference between newURL
2669         and URLString is that newURL is a KURL that is the complete version of URLString,
2670         not that it is new.
2671         (WebCore::HTMLFrameElement::willRemove): 
2672         (1) Removed close() call and moved close() code into willRemove(), also removing 
2673         close() call from detach(), since willRemove is the well-defined place 
2674         from DOM tear-down, not detach().
2675         (2) Removed manual renderer detach code because the DOM is not responsible
2676         for managing the render tree. I confirmed that this change not
2677         regress <rdar://problem/4132581>.
2678         (3) Removed questionable ASSERT. The ASSERT assumed that iframe elements
2679         lost their content frames after being removed from the DOM. That's our 
2680         current behavior, but it's going to change in future rounds of refactoring.
2681         This also fixes <rdar://problem/4750835>.
2682         (WebCore::HTMLFrameElement::setLocation): Removed wacky manual calls to
2683         attach/detach, because the render tree should not be in charge of deciding
2684         when to load.
2685         * html/HTMLFrameElement.h:
2686         * html/HTMLIFrameElement.cpp:
2687         (WebCore::HTMLIFrameElement::attach): Renamed renderPart to renderPartObject,
2688         because the renderer is a renderPartObject, not a renderPart.
2689         * html/HTMLIFrameElement.h:
2690
2691 2006-10-03  Mark Rowe  <bdash@webkit.org>
2692
2693         Reviewed by Mitz.
2694
2695         http://bugs.webkit.org/show_bug.cgi?id=11137
2696         Bug 11137: GdkLauncher dies with "pure virtual method called" if
2697         window is closed while page still loading
2698
2699         * platform/gdk/FrameGdk.cpp:
2700         (WebCore::FrameGdk::~FrameGdk): Call cancelAndClear to allow virtual
2701         methods to be called before the FrameGdk portion of "this" is torn down.
2702
2703 2006-10-03  Adam Roben  <aroben@apple.com>
2704
2705         Reviewed by Darin.
2706
2707         Handle tab key presses in the DOM.
2708
2709         * dom/EventTargetNode.cpp:
2710         (WebCore::EventTargetNode::defaultEventHandler): Add tab key handling.
2711         * page/FrameView.cpp:
2712         (WebCore::FrameView::advanceFocus): Rename and reimplement
2713         focusNextPrevNode. Now we just call Element::focus().
2714         * page/FrameView.h: Rename focusNextPrevNode to advanceFocus and make
2715         it public.
2716
2717 2006-10-03  Justin Garcia  <justin.garcia@apple.com>
2718
2719         Reviewed by mjs
2720         
2721         <rdar://problem/4760612>
2722         TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints
2723         
2724         No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.
2725         
2726         * dom/Range.cpp:
2727         (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming 
2728         positions are non-null since most of it's callers would be in a bad state if the positions 
2729         were null.  boundaryPointsValid, which calls compareBoundaryPoints, is an exception.  
2730         Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it 
2731         from entering compareBoundaryPoints and hitting the assert.
2732
2733 2006-10-03  Adele Peterson  <adele@apple.com>
2734
2735         Reviewed by Geoff.
2736
2737         Make code for turning off new listbox implementation mac-only, since there's no implementation on other platforms.
2738
2739         * html/HTMLSelectElement.cpp:
2740         (WebCore::HTMLSelectElement::recalcStyle):
2741         (WebCore::HTMLSelectElement::isKeyboardFocusable):
2742         (WebCore::HTMLSelectElement::isMouseFocusable):
2743         (WebCore::HTMLSelectElement::createRenderer):
2744         (WebCore::HTMLSelectElement::setRecalcListItems):
2745         (WebCore::HTMLSelectElement::notifyOptionSelected):
2746         (WebCore::HTMLSelectElement::defaultEventHandler):
2747
2748 2006-10-04  Darin Adler  <darin@apple.com>
2749
2750         Reviewed by Geoff.
2751
2752         - fix http://bugs.webkit.org/show_bug.cgi?id=11132
2753           Caret disappears when you're typing
2754
2755         * editing/SelectionController.cpp:
2756         (WebCore::SelectionController::setSelection): Remove unnecessary call to
2757         clearCaretRectIfNeeded. The recomputeCaretRect now takes care of this.
2758         (WebCore::SelectionController::recomputeCaretRect): Explicitly set m_needsLayout
2759         to false so we can get the old caret repaint rect. Later we need to change the
2760         design so getting the rect doesn't have a side effect of causing a layout without
2761         invalidation.
2762
2763 2006-10-03  David Harrison  <harrison@apple.com>
2764
2765         Reviewed by Maciej.
2766
2767         <rdar://problem/4671286> Candidate Window isn't displayed and only first candidate is displayed at typing location.
2768
2769         Updated test:
2770         * fast/text/justified-text-rect.html
2771
2772         * bridge/mac/WebCoreFrameBridge.mm:
2773         (-[WebCoreFrameBridge convertToNSRange:]):
2774         (-[WebCoreFrameBridge convertToDOMRange:]):
2775         Make the selection's root editable element (or the document itself) be
2776         the basis for NSRange conversions. This supports "shadow DOM" like
2777         that for text fields and text areas.
2778         
2779         * editing/CompositeEditCommand.cpp:
2780         (WebCore::CompositeEditCommand::moveParagraphs):
2781         Pass the document element as the scope.
2782         
2783         * editing/TextIterator.cpp:
2784         (WebCore::TextIterator::rangeFromLocationAndLength):
2785         Make the first parameter the scope.
2786         
2787         * editing/TextIterator.h:
2788         Make the first parameter of rangeFromLocationAndLength() the scope.
2789
2790 2006-10-03  Nikolas Zimmermann  <zimmermann@kde.org>
2791
2792         Reviewed by Eric.
2793
2794         Fix Qt/Linux build.
2795
2796         * CMakeLists.txt: Add counter related files.
2797
2798 2006-10-03  Mark Rowe  <bdash@webkit.org>
2799
2800         Reviewed by Eric.
2801
2802         http://bugs.webkit.org/show_bug.cgi?id=10981
2803         Linux/GDK build fixes
2804
2805         Based on a patch by Krzysztof Kowalczyk.
2806
2807         * WebCoreSources.bkl:
2808         * platform/gdk/FrameGdk.cpp:
2809         (WebCore::doScroll):
2810         (WebCore::FrameGdk::handleGdkEvent):
2811         * platform/gdk/PlatformScrollBar.h: Added.
2812         (WebCore::PlatformScrollBar::isWidget):
2813         * platform/gdk/ScrollViewGdk.cpp:
2814         * platform/gdk/TemporaryLinkStubs.cpp:
2815         (FrameView::passMousePressEventToScrollbar):
2816         (FrameView::passMousePressEventToSubframe):
2817         (FrameView::passMouseReleaseEventToSubframe):
2818         (FrameView::passMouseMoveEventToSubframe):
2819         (FrameView::passWheelEventToSubframe):
2820         (Cursor::Cursor):
2821         (Widget::invalidate):
2822         (Widget::invalidateRect):
2823         (ScrollView::wheelEvent):
2824         (ScrollView::convertToContainingWindow):
2825         (ScrollView::convertFromContainingWindow):
2826         (GraphicsContext::clip):
2827         (PlatformScrollBar::PlatformScrollBar):
2828         (PlatformScrollBar::updateThumbPosition):
2829         (PlatformScrollBar::updateThumbProportion):
2830         (ScrollBar::ScrollBar):
2831         (ScrollBar::setProportion):
2832         (WebCore::supportedKeySizes):
2833         (WebCore::signedPublicKeyAndChallengeString):
2834         * platform/gdk/WheelEventGdk.cpp:
2835         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
2836         * platform/gdk/WidgetGdk.cpp:
2837         (WebCore::Widget::convertToContainingWindow):
2838         (WebCore::Widget::convertFromContainingWindow):
2839
2840 2006-10-02  Adam Roben  <aroben@apple.com>
2841
2842         Reviewed by Maciej.
2843
2844         Let Windows determine which mouse button is pressed.
2845
2846         * platform/PlatformMouseEvent.h: Add message parameter to constructor.
2847         * platform/win/MouseEventWin.cpp:
2848         (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
2849         parameter to determine which mouse button is pressed.
2850
2851 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
2852
2853         Reviewed by anders
2854         
2855         Build fix
2856         
2857         * editing/SelectionController.cpp:
2858         (WebCore::SelectionController::empty):
2859         * editing/SelectionController.h:
2860
2861 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
2862
2863         Reviewed by john
2864         
2865         <rdar://problem/4755287>
2866         Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
2867
2868         * editing/markup.cpp:
2869         (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced 
2870         elements).  Don't skip blocks that aren't containers (like horizontal rules).
2871
2872 2006-10-03  Darin Adler  <darin@apple.com>
2873
2874         Reviewed by Justin Garcia.
2875
2876         - correct mistaken code that would restart blinking every
2877           time "invalidateSelection" is called even if the caret
2878           has not moved
2879
2880         * editing/SelectionController.h:
2881         * editing/SelectionController.cpp:
2882         (WebCore::SelectionController::setSelection): Update for name change.
2883         (WebCore::SelectionController::recomputeCaretRect): New function.
2884         Computes caret rect and does any necessary invalidation if the rect
2885         changes.
2886         (WebCore::SelectionController::invalidateCaretRect): Renamed from
2887         needsCaretRepaint. Invalidates the caret rect unconditionally. Also
2888         calls recomputeCaretRect as a side effect.
2889
2890         * page/Frame.cpp:
2891         (WebCore::Frame::invalidateSelection): Remove unneeded call to
2892         clearCaretRectIfNeeded.
2893         (WebCore::Frame::clearCaretRectIfNeeded): Updated for name change.
2894         (WebCore::Frame::selectionLayoutChanged): Restructured to use the new
2895         recomputeCaretRect function and not restart blinking if caret has
2896         not changed position.
2897         (WebCore::Frame::caretBlinkTimerFired): Removed some checks that
2898         are not needed since selectionLayoutChanged already checks these.
2899
2900         * page/FramePrivate.h: Removed unused m_blinkCaret.
2901
2902 2006-10-02  Beth Dakin  <bdakin@apple.com>
2903
2904         Reviewed by Adam.
2905
2906         Build fix. Add counters to vcproj.
2907
2908         * WebCore.vcproj/WebCore/WebCore.vcproj:
2909
2910 2006-10-02  Brady Eidson  <beidson@apple.com>
2911
2912         Reviewed by Adele
2913
2914         If the Icon DB schema changes underneath you, the latest ToT can crash and burn when writing
2915         icon data out because we don't correctly check SQL error conditions.
2916
2917         * loader/icon/IconDataCache.cpp:
2918         (WebCore::IconDataCache::writeToDatabase):
2919
2920 2006-10-02  Steve Falkenburg  <sfalken@apple.com>
2921
2922         Reviewed by Hyatt.
2923
2924         Added method to find out whether a layout has occurred.
2925
2926         * page/FrameView.cpp:
2927         (WebCore::FrameView::didFirstLayout):
2928         * page/FrameView.h:
2929
2930 2006-10-02  Beth Dakin  <bdakin@apple.com>
2931
2932         Reviewed by Darin.
2933
2934         Initial implementation of CSS2 counters. See http://
2935         bugs.webkit.org/show_bug.cgi?id=4980 for more details.
2936
2937         * WebCore.xcodeproj/project.pbxproj:
2938         * css/CSSComputedStyleDeclaration.cpp: 
2939         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return 
2940         the increment/reset list now that this is implemented.
2941         * css/CSSPrimitiveValue.cpp:
2942         (WebCore::CSSPrimitiveValue::cssText): 
2943         * css/Counter.h:
2944         (WebCore::Counter::Counter):
2945         (WebCore::Counter::~Counter):
2946         (WebCore::Counter::identifier):
2947         (WebCore::Counter::listStyle):
2948         (WebCore::Counter::separator):
2949         (WebCore::Counter::listStyleNumber):
2950         (WebCore::Counter::setIdentifier):
2951         (WebCore::Counter::setListStyle):
2952         (WebCore::Counter::setSeparator):
2953         * css/cssparser.cpp:
2954         (WebCore::CSSParser::addProperty): Take care of reset/increment
2955         (WebCore::CSSParser::parseValue):
2956         (WebCore::CSSParser::parseContent): content can now take counters
2957         (WebCore::CSSParser::parseCounterContent): Parse counter() and 
2958         counters()
2959         (WebCore::CSSParser::parseCounter): Parse counter-reset and 
2960         counter-increment
2961         * css/cssparser.h:
2962         * css/cssstyleselector.cpp:
2963         (WebCore::CSSStyleSelector::matchUARules):
2964         (WebCore::CSSStyleSelector::applyProperty):
2965         * platform/PlatformString.h:
2966         * platform/String.cpp:
2967         (WebCore::String::insert): Implemented a version of insert that 
2968         accepts a UChar* and a length.
2969         * platform/StringImpl.cpp:
2970         (WebCore::StringImpl::insert): Same as above.
2971         * platform/StringImpl.h:
2972         * rendering/CounterListItem.h: Added.
2973         * rendering/CounterNode.cpp: Added.
2974         (WebCore::CounterNode::CounterNode):
2975         (WebCore::CounterNode::insertAfter):
2976         (WebCore::CounterNode::removeChild):
2977         (WebCore::CounterNode::remove):
2978         (WebCore::CounterNode::setUsesSeparator):
2979         (WebCore::CounterNode::recountAndGetNext):
2980         (WebCore::CounterNode::recountTree):
2981         (WebCore::CounterNode::setSelfDirty):
2982         (WebCore::CounterNode::setParentDirty):
2983         * rendering/CounterNode.h: Added.
2984         (WebCore::CounterNode::~CounterNode):
2985         (WebCore::CounterNode::parent):
2986         (WebCore::CounterNode::previousSibling):
2987         (WebCore::CounterNode::nextSibling):
2988         (WebCore::CounterNode::firstChild):
2989         (WebCore::CounterNode::lastChild):
2990         (WebCore::CounterNode::value):
2991         (WebCore::CounterNode::setValue):
2992         (WebCore::CounterNode::count):
2993         (WebCore::CounterNode::setCount):
2994         (WebCore::CounterNode::setHasSeparator):
2995         (WebCore::CounterNode::isReset):
2996         (WebCore::CounterNode::hasSeparator):
2997         (WebCore::CounterNode::willNeedLayout):
2998         (WebCore::CounterNode::setWillNeedLayout):
2999         (WebCore::CounterNode::isRoot):
3000         (WebCore::CounterNode::setRenderer):
3001         (WebCore::CounterNode::renderer):
3002         * rendering/CounterResetNode.cpp: Added.
3003         (WebCore::CounterResetNode::CounterResetNode):
3004         (WebCore::CounterResetNode::insertAfter):
3005         (WebCore::CounterResetNode::removeChild):
3006         (WebCore::CounterResetNode::recountAndGetNext):
3007         (WebCore::CounterResetNode::setParentDirty):
3008         (WebCore::CounterResetNode::updateTotal):
3009         * rendering/CounterResetNode.h: Added.
3010         (WebCore::CounterResetNode::firstChild):
3011         (WebCore::CounterResetNode::lastChild):
3012         (WebCore::CounterResetNode::isReset):
3013         (WebCore::CounterResetNode::total):
3014         * rendering/RenderContainer.cpp:
3015         (WebCore::RenderContainer::updatePseudoChildForObject): Account for 
3016         counter content.
3017         * rendering/RenderCounter.cpp: Added.
3018         (WebCore::RenderCounter::RenderCounter):
3019         (WebCore::RenderCounter::layout):
3020         (WebCore::toRoman):
3021         (WebCore::toLetterString):
3022         (WebCore::toHebrew):
3023         (WebCore::RenderCounter::convertValueToType):
3024         (WebCore::RenderCounter::calcMinMaxWidth):
3025         * rendering/RenderCounter.h: Added.
3026         (WebCore::RenderCounter::renderName):
3027         (WebCore::RenderCounter::isCounter):
3028         * rendering/RenderObject.cpp:
3029         (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to 
3030         maps of CounterNodes
3031         (WebCore::RenderObject::RenderObject):
3032         (WebCore::RenderObject::destroy): Destroy the maps.
3033         (WebCore::RenderObject::findCounter): Finds/creates counters.
3034         * rendering/RenderObject.h:
3035         (WebCore::RenderObject::isCounter):
3036         * rendering/RenderStyle.cpp:
3037         (WebCore::StyleVisualData::StyleVisualData):
3038         (WebCore::RenderStyle::arenaDelete):
3039         (WebCore::RenderStyle::RenderStyle):
3040         (WebCore::RenderStyle::diff):
3041         (WebCore::RenderStyle::setContent):
3042         (WebCore::ContentData::clearContent):
3043         (WebCore::RenderStyle::counterDataEquivalent):
3044         (WebCore::hasCounter):
3045         (WebCore::RenderStyle::hasCounterReset):
3046         (WebCore::RenderStyle::hasCounterIncrement):
3047         (WebCore::readCounter):
3048         (WebCore::RenderStyle::counterReset):
3049         (WebCore::RenderStyle::counterIncrement):
3050         * rendering/RenderStyle.h:
3051         (WebCore::StyleVisualData::operator==):
3052         (WebCore::CounterData::CounterData):
3053         (WebCore::CounterData::identifier):
3054         (WebCore::CounterData::listStyle):
3055         (WebCore::CounterData::separator):
3056         (WebCore::ContentData::contentCounter):
3057         (WebCore::ContentData::):
3058         (WebCore::RenderStyle::counterIncrement):
3059         (WebCore::RenderStyle::counterReset):
3060         (WebCore::RenderStyle::setCounterIncrement):
3061         (WebCore::RenderStyle::setCounterReset):
3062         (WebCore::RenderStyle::setCounterResetList):
3063         (WebCore::RenderStyle::setCounterIncrementList):
3064         (WebCore::RenderStyle::counterResetValueList):
3065         (WebCore::RenderStyle::counterIncrementValueList):
3066
3067 2006-10-02  Adele Peterson  <adele@apple.com>
3068
3069         Reviewed by Adam.
3070
3071         - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
3072
3073         There are a few outstanding issues, so I've left the old code in for now.  So you can use the old-style listboxes
3074         by using "-webkit-appearance:none".
3075
3076         * css/html4.css:
3077
3078 2006-10-02  David Harrison  <harrison@apple.com>
3079
3080         Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
3081         addressed at a deeper level by r16696, the patch for <http://bugs.webkit.org/show_bug.cgi?id=10842>.
3082         Left the layout test.
3083         
3084         * rendering/bidi.cpp:
3085         (WebCore::checkMidpoints):
3086
3087 2006-10-02  Nikolas Zimmermann  <zimmermann@kde.org>
3088
3089         Reviewed by eseidel.  Landed by eseidel.
3090
3091         Fix Qt/Linux build.
3092
3093         * platform/qt/TemporaryLinkStubs.cpp: s/DeprecatedStringList/Vector<String>/
3094         (WebCore::supportedKeySizes):
3095
3096 2006-10-02  Nikolas Zimmermann <zimmermann@kde.org>
3097
3098         Reviewed by eseidel & mjs.  Landed by eseidel.
3099
3100         Fix Qt/Linux build with older gcc 3.3.4.
3101         http://bugs.webkit.org/show_bug.cgi?id=11116
3102
3103         As discussed with Maciej, the GCC_ROOT_NS_HACK
3104         can be completely removed, as well as the friendship
3105         between cacheGlobalObject & the JS* objects.
3106
3107         * bindings/scripts/CodeGeneratorJS.pm: Remove friendship.
3108         * platform/image-decoders/png/pnggccrd.c: Fix comments for gcc3.
3109         (png_read_filter_row_mmx_avg):
3110         * platform/image-decoders/png/pngvcrd.c: Ditto.
3111         (png_mmx_support):
3112         (png_read_filter_row_mmx_avg):
3113
3114 2006-10-01  Maciej Stachowiak  <mjs@apple.com>
3115
3116         Rubber stamped by Alexey.
3117
3118         - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=10893 since it led to layout test crashes
3119
3120         * css/CSSGrammar.y:
3121
3122 2006-10-01  Eric Seidel  <eric@webkit.org>
3123
3124         Reviewed by mjs.
3125
3126         Eliminate a few more hotspots in SVG drawing code.
3127         
3128         No test cases were harmed in the making of this patch.  (And SVG has no perf tests.)
3129
3130         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
3131         (WebCore::KRenderingPaintServerSolidQuartz::setup): use a single shared colorspace, avoid a few mallocs
3132         * platform/mac/ColorMac.mm:
3133         (+[WebCoreControlTintObserver WebCore]): store a single shared colorspace instance
3134
3135 2006-10-01  Geoffrey Garen  <ggaren@apple.com>
3136
3137         Reviewed by Maciej.
3138         
3139         More frame/iframe merging.
3140         
3141         - Removed needWidgetUpdate and related code. needWidgetUpdate is always
3142         false, so this was dead code.
3143         - Removed FIXME about setInViewSourceMode inside openURL(). openURL(), rather
3144         than attach(), is the correct place for setInViewSourceMode, because
3145         openURL() is the function that creates our frame.
3146         - Moved IFRAME insertedIntoDocument() code into FRAME, and removed FRAME
3147         code that did the same thing in other places.
3148         - Made FRAME's attach() method suffuciently generic so that IFRAME could
3149         call up to it, rather than skipping its superclass and calling up directly 
3150         to ELEMENT.
3151         - Changed a few IFRAME up-calls to ELEMENT into up-calls to FRAME.
3152         - Replaced ad hoc frame loading code in FRAME::attach() with call to
3153         openURL(), the designated frame loading function.
3154
3155         Layout tests pass. I added a layout test for viewsource mode, since I
3156         broke it in the course of writing this patch.
3157
3158 2006-10-01  Anders Carlsson  <acarlsson@apple.com>
3159
3160         Reviewed by Geoff.
3161
3162         * dom/Document.cpp:
3163         (WebCore::Document::recalcStyleSelector):
3164         * dom/Document.h:
3165         Get rid of availableStyleSheets() and remove DeprecatedStringList.h include.
3166         
3167         * dom/Node.h:
3168         Remove DeprecatedStringList class forward declaration.
3169         
3170         * editing/markup.cpp:
3171         Include DeprecatedStringList.h here since it's not included by Document.h anymore.
3172         
3173         * kcanvas/KCanvasTreeDebug.cpp:
3174         * kcanvas/KCanvasTreeDebug.h:
3175         Remove unused functions.
3176         
3177         * loader/loader.cpp:
3178         * page/Frame.cpp:
3179         * page/Frame.h:
3180         * page/FrameView.h:
3181         Fixup DeprecatedStringList.h includes.
3182
3183 2006-09-30  David Harrison  <harrison@apple.com>
3184
3185         Reviewed by John Sullivan.
3186
3187         <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point
3188
3189         Problem was that the decision to trim was based only on whether the character
3190         is a soft hyphen, which caused pretty much any Japanese character to go.
3191         Changed to decide based on whether the character is ignorable whitespace.
3192         
3193         Test:
3194         * fast/text/international/wrap-CJK-001.html
3195
3196         * rendering/bidi.cpp:
3197         (WebCore::isTrimmableChar):
3198         New. Checks whether character is whitespace that can be ignored
3199         according to the text node's style.
3200         trimmed from the end of wrapped line.
3201         (WebCore::checkMidpoints):
3202         Call isTrimmable() rather than checking for char != SOFT_HYPHEN.
3203
3204 2006-10-01  Anders Carlsson  <acarlsson@apple.com>
3205
3206         Reviewed by Mitz Pettel.
3207
3208         Convert the SVG code to use Vector<String> instead of DeprecatedStringList.
3209
3210         * ksvg2/svg/SVGColor.cpp:
3211         (WebCore::SVGColor::setRGBColor):
3212         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
3213         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
3214         (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
3215         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
3216         (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
3217         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
3218         (SVGFESpecularLightingElement::parseMappedAttribute):
3219         * ksvg2/svg/SVGFETurbulenceElement.cpp:
3220         (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
3221         * ksvg2/svg/SVGLengthList.cpp:
3222         * ksvg2/svg/SVGNumberList.cpp:
3223         (SVGNumberList::parse):
3224         * ksvg2/svg/SVGNumberList.h:
3225         * ksvg2/svg/SVGPreserveAspectRatio.cpp:
3226         (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
3227         * ksvg2/svg/SVGStringList.cpp:
3228         (WebCore::SVGStringList::reset):
3229         * ksvg2/svg/SVGStringList.h:
3230         * ksvg2/svg/SVGTransformable.cpp:
3231         (SVGTransformable::parseTransformAttribute):
3232
3233 2006-10-01  Nikolas Zimmermann  <zimmermann@kde.org>
3234
3235         Reviewed by Eric, tweaked and landed by ap.
3236
3237         Fix Qt/Linux build.
3238
3239         * CMakeLists.txt:
3240         * platform/qt/PlatformScrollBar.h:
3241         * platform/qt/TemporaryLinkStubs.cpp:
3242         (WebCore::ScrollBar::ScrollBar):
3243         (WebCore::PlatformScrollBar::PlatformScrollBar):
3244         (FrameView::passMousePressEventToSubframe):
3245         (FrameView::passMouseMoveEventToSubframe):
3246         (FrameView::passMouseReleaseEventToSubframe):
3247         (FrameView::passWheelEventToSubframe):
3248         (FrameView::passMousePressEventToScrollbar):
3249         * ksvg2/svg/SVGDocument.h:
3250
3251 2006-10-01  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3252
3253         Reviewed by Darin.
3254
3255         Fix for http://bugs.webkit.org/show_bug.cgi?id=10190
3256         REGRESSION: Repro crash when navigating away from an image document that hasn't finished loading
3257
3258         No test case added (probably requires new DumpRenderTree functionality)
3259
3260         * rendering/RenderImage.cpp:
3261         (WebCore::RenderImage::imageChanged): Added early return if the document is
3262         being destroyed.
3263
3264 2006-10-01  Graham Dennis  <graham.dennis@gmail.com>
3265
3266         Reviewed by Hyatt.
3267
3268         Fix for http://bugs.webkit.org/show_bug.cgi?id=10842
3269         REGRESSION (r15418): contenteditable div truncates rightmost Japanese character
3270         
3271         Make sure we only break after a space (and not any other valid line-break) if
3272         the style is -webkit-line-break: after-white-space (e.g. for a contentEditable div).
3273         I also did a logic shuffle at Mitz's request to prevent doing an if on the same expression
3274         twice in quick succession.
3275
3276         * rendering/bidi.cpp:
3277         (WebCore::RenderBlock::findNextLineBreak): 
3278
3279 2006-10-01  Alexey Proskuryakov  <ap@nypop.com>
3280
3281         Reviewed by Maciej and Darin.
3282
3283         http://bugs.webkit.org/show_bug.cgi?id=4372
3284         JavaScript document.write page form does not submit in Safari
3285
3286         Test: fast/forms/document-write.html
3287
3288         * page/Frame.cpp:
3289         (WebCore::Frame::submitForm): Don't check for parsing().
3290
3291 2006-10-01  Alexey Proskuryakov  <ap@nypop.com>
3292
3293         Build fix.
3294
3295         * bridge/mac/FrameViewMac.mm: Add missing #imports.
3296
3297 2006-10-01  Dave Hyatt  <hyatt@apple.com>
3298
3299         Refactor the code that passes mouse presses to the Mac scrollbar and make it cross-platform.
3300        
3301         Reviewed by mitz
3302
3303         * bridge/mac/FrameMac.mm:
3304         (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
3305         * bridge/mac/FrameViewMac.mm:
3306         (WebCore::FrameView::passMousePressEventToScrollbar):
3307         * page/FrameView.cpp:
3308         (WebCore::FrameView::handleMousePressEvent):
3309         (WebCore::FrameView::setMousePressed):
3310         * page/FrameView.h:
3311         * platform/win/TemporaryLinkStubs.cpp:
3312         (FrameView::passMousePressEventToScrollbar):
3313
3314 2006-09-30  Sam Weinig  <sam.weinig@gmail.com>
3315
3316         Reviewed by Darin.
3317
3318         Patch for http://bugs.webkit.org/show_bug.cgi?id=11102
3319         Add more SVG Objective-C DOM bindings
3320
3321         - Auto-generate Objective-C DOM bindings for DOMSVGAElement,
3322           DOMSVGAnimateColorElement, DOMSVGAnimateElement, DOMSVGAnimateTransformElement,
3323           DOMSVGAnimatedPathData, DOMSVGAnimatedPoints, DOMSVGAnimatedPreserveAspectRatio,
3324           DOMSVGAnimationElement, DOMSVGCircleElement, DOMSVGClipPathElement, DOMSVGColor,
3325           DOMSVGCursorElement, DOMSVGDefsElement, DOMSVGDescElement, DOMSVGDocument, 
3326           DOMSVGEllipseElement, DOMSVGPreserveAspectRatio, and DOMSVGURIReference.
3327
3328         * DerivedSources.make:
3329         * WebCore.xcodeproj/project.pbxproj:
3330         * bindings/objc/DOMInternal.h:
3331         * bindings/objc/DOMSVG.h:
3332         * bindings/scripts/CodeGeneratorObjC.pm:
3333         * ksvg2/svg/SVGAElement.idl:
3334         * ksvg2/svg/SVGAnimateColorElement.idl:
3335         * ksvg2/svg/SVGAnimateElement.idl:
3336         * ksvg2/svg/SVGAnimateTransformElement.idl:
3337         * ksvg2/svg/SVGAnimatedPathData.idl:
3338         * ksvg2/svg/SVGAnimatedPoints.idl:
3339         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl:
3340         * ksvg2/svg/SVGAnimationElement.idl:
3341         * ksvg2/svg/SVGCircleElement.idl:
3342         * ksvg2/svg/SVGClipPathElement.idl:
3343         * ksvg2/svg/SVGColor.idl:
3344         * ksvg2/svg/SVGCursorElement.idl:
3345         * ksvg2/svg/SVGDefsElement.idl:
3346         * ksvg2/svg/SVGDescElement.idl:
3347         * ksvg2/svg/SVGDocument.idl:
3348         * ksvg2/svg/SVGEllipseElement.idl:
3349         * ksvg2/svg/SVGPointList.idl:
3350         * ksvg2/svg/SVGPreserveAspectRatio.idl:
3351         * ksvg2/svg/SVGRect.idl:
3352         * ksvg2/svg/SVGSVGElement.idl:
3353
3354 2006-09-30  Maciej Stachowiak  <mjs@apple.com>
3355
3356         Reviewed by Adele.
3357
3358         - fix build
3359
3360         * platform/FloatRect.h:
3361         (WebCore::FloatRect::contains): Added; not exactly the same semantic as IntRect containment
3362         but more appropriate for path-type stuff.
3363         * platform/cg/PathCG.cpp:
3364         (WebCore::Path::contains): Don't use enclosingIntRect, just use FloatRect::contains.
3365
3366 2006-09-30  Alexey Proskuryakov  <ap@nypop.com>
3367
3368         Reviewed by Darin.
3369
3370         http://bugs.webkit.org/show_bug.cgi?id=11011
3371         External CSS is parsed as iso-8859-1 even though the main document is utf-8
3372
3373         Test: fast/encoding/css-charset-default.xhtml
3374
3375         * loader/CachedResourceClient.h:
3376         (WebCore::CachedResourceClient::setCSSStyleSheet):
3377         (WebCore::CachedResourceClient::setXSLStyleSheet):
3378         Divided setStyleSheet into setCSSStyleSheet and setXSLStyleSheet. The former
3379         takes an additional charset parameter, to be passed to CSSStyleSheet constructor.
3380
3381         * css/CSSImportRule.cpp:
3382         (WebCore::CSSImportRule::setCSSStyleSheet):
3383         (WebCore::CSSImportRule::insertedIntoParent): Default to parent stylesheet's charset.
3384         * css/CSSImportRule.h:
3385
3386         * css/CSSStyleSheet.cpp:
3387         (WebCore::CSSStyleSheet::CSSStyleSheet):
3388         * css/CSSStyleSheet.h:
3389         Added an m_charset member to be used when loading child stylesheets. Removed an unused m_implicit
3390         member. Changed some String parameters to const String&.
3391
3392         * css/StyleSheet.cpp:
3393         (WebCore::StyleSheet::StyleSheet):
3394         * css/StyleSheet.h:
3395         Changed some String parameters to const String&. Removed an unused (even unimplemented) constructor.
3396
3397         * css/StyleSheetList.cpp:
3398         (WebCore::StyleSheetList::length):
3399         (WebCore::StyleSheetList::item):
3400         * css/StyleSheetList.h:
3401         Special-casing implicit stylesheets seemed to be dead code, removed.
3402
3403         * dom/Document.cpp:
3404         (WebCore::Document::setCSSStyleSheet):
3405         (WebCore::Document::recalcStyleSelector):
3406         * dom/Document.h:
3407         Renamed setStyleSheet() to setCSSStyleSheet().
3408
3409         * dom/ProcessingInstruction.cpp:
3410         (WebCore::ProcessingInstruction::checkStyleSheet): Pass a correct charset to requestCSSStyleSheet().
3411         (WebCore::ProcessingInstruction::setCSSStyleSheet):
3412         (WebCore::ProcessingInstruction::setXSLStyleSheet):
3413         (WebCore::ProcessingInstruction::parseStyleSheet):
3414         * dom/ProcessingInstruction.h:
3415
3416         * html/HTMLLinkElement.cpp:
3417         (WebCore::HTMLLinkElement::process): Default to document encoding if a charset attribute 
3418         is not specified.
3419         (WebCore::HTMLLinkElement::setCSSStyleSheet):
3420         * html/HTMLLinkElement.h:
3421
3422         * html/HTMLStyleElement.cpp:
3423         (WebCore::HTMLStyleElement::childrenChanged):
3424         * ksvg2/svg/SVGStyleElement.cpp:
3425         (WebCore::SVGStyleElement::childrenChanged):
3426         Inherit URL and charset from the document.
3427
3428         * loader/Cache.cpp:
3429         (WebCore::Cache::requestCSSStyleSheet):
3430         * loader/Cache.h:
3431         Adjust for setStyleSheet() renaming.
3432
3433         * loader/CachedCSSStyleSheet.h: Removed an unused constructor.
3434         * loader/CachedCSSStyleSheet.cpp:
3435         (WebCore::CachedCSSStyleSheet::ref):
3436         (WebCore::CachedCSSStyleSheet::deref):
3437         (WebCore::CachedCSSStyleSheet::checkNotify):
3438         Pass the encoding to setCSSStyleSheet().
3439
3440         * loader/CachedXSLStyleSheet.cpp:
3441         (WebCore::CachedXSLStyleSheet::ref):
3442         (WebCore::CachedXSLStyleSheet::checkNotify):
3443         * loader/DocLoader.cpp:
3444         (WebCore::DocLoader::requestCSSStyleSheet):
3445         * loader/DocLoader.h:
3446         * page/Frame.cpp:
3447         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
3448         (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
3449         * xml/XSLImportRule.cpp:
3450         (WebCore::XSLImportRule::setXSLStyleSheet):
3451         (WebCore::XSLImportRule::loadSheet):
3452         * xml/XSLImportRule.h:
3453         Adjust for setStyleSheet() renaming.
3454
3455 2006-09-30  Rob Buis  <buis@kde.org>
3456
3457         Reviewed by eseidel.
3458
3459         http://bugs.webkit.org/show_bug.cgi?id=11096
3460         Hit testing for polylines fails
3461
3462         Fix Path::contains so it handles filled, non-closed paths too.
3463
3464         * platform/cg/PathCG.cpp:
3465         (WebCore::Path::contains):
3466
3467 2006-09-30  Dave Hyatt  <hyatt@apple.com>
3468
3469         Refactor subframe event handling to hide more of the Mac-specific logic from the cross-platform code.
3470         Stub out a capturing API that mimics the way Web browsers capture events and route them to specific
3471         subframes while the mouse is down.
3472       
3473         Reviewed by mitzpettel
3474
3475         * bridge/mac/FrameMac.h:
3476         * bridge/mac/FrameMac.mm:
3477         (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
3478         (WebCore::FrameMac::passWheelEventToWidget):
3479         * bridge/mac/FrameViewMac.mm:
3480         (WebCore::FrameView::passMousePressEventToSubframe):
3481         (WebCore::FrameView::passMouseMoveEventToSubframe):
3482         (WebCore::FrameView::passMouseReleaseEventToSubframe):
3483         (WebCore::FrameView::passWheelEventToSubframe):
3484         * page/Frame.cpp:
3485         * page/Frame.h:
3486         * page/FrameView.cpp:
3487         (WebCore::subframeForTargetNode):
3488         (WebCore::FrameView::handleMousePressEvent):
3489         (WebCore::FrameView::handleMouseDoubleClickEvent):
3490         (WebCore::FrameView::handleMouseMoveEvent):
3491         (WebCore::FrameView::handleMouseReleaseEvent):
3492         (WebCore::FrameView::handleWheelEvent):
3493         * page/FrameView.h:
3494         * platform/ScrollBar.h:
3495         (WebCore::ScrollBar::handleMouseMoveEvent):
3496         (WebCore::ScrollBar::handleMouseOutEvent):
3497         * platform/Widget.h:
3498         (WebCore::Widget::handleMouseMoveEvent):
3499         (WebCore::Widget::handleMouseReleaseEvent):
3500         * platform/win/TemporaryLinkStubs.cpp:
3501         (FrameView::passMousePressEventToSubframe):
3502         (FrameView::passMouseMoveEventToSubframe):
3503         (FrameView::passMouseReleaseEventToSubframe):
3504         (FrameView::passWheelEventToSubframe):
3505         (Widget::capturingMouse):
3506         (Widget::setCapturingMouse):
3507         (Widget::capturingTarget):
3508         (Widget::capturingChild):
3509         (Widget::setCapturingChild):
3510         * rendering/RenderView.cpp:
3511         (WebCore::RenderView::paintBoxDecorations):
3512
3513 2006-09-29  MorganL  <morganl.webkit@yahoo.com>
3514
3515         Reviewed by Adele.
3516
3517         Fixes windows bustage:
3518         http://bugs.webkit.org/show_bug.cgi?id=11093
3519
3520         * platform/win/PlatformScrollBar.h:
3521         * platform/win/TemporaryLinkStubs.cpp:
3522         (PlatformScrollBar::PlatformScrollBar):
3523         (ScrollBar::ScrollBar):
3524
3525 2006-09-29  David Hyatt  <hyatt@apple.com>
3526
3527         Eliminate RenderLayer::gScrollBar in favor of caching the scrollbar hit
3528         in RenderObject::NodeInfo (and then propagating that Widget to
3529         MouseEventWithHitTestResults).
3530
3531         This allows RenderListBox and RenderBlock to do the same thing when the
3532         mouse is over the scrollbar.
3533
3534         Also land fix to support font-size: 0.
3535
3536         Reviewed by mjs (scrollbar), eric (font-size)
3537
3538         * dom/Document.cpp:
3539         (WebCore::Document::prepareMouseEvent):
3540         * page/Frame.cpp:
3541         (WebCore::Frame::passWidgetMouseDownEventToWidget):
3542         * page/FrameView.cpp:
3543         (WebCore::selectCursor):
3544         (WebCore::FrameView::handleMouseMoveEvent):
3545         (WebCore::FrameView::dispatchMouseEvent):
3546         * page/MouseEventWithHitTestResults.cpp:
3547         (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
3548         * page/MouseEventWithHitTestResults.h:
3549         (WebCore::MouseEventWithHitTestResults::scrollbar):
3550         * rendering/RenderBlock.cpp:
3551         (WebCore::RenderBlock::isPointInScrollbar):
3552         (WebCore::RenderBlock::nodeAtPoint):
3553         * rendering/RenderBlock.h:
3554         * rendering/RenderLayer.cpp:
3555         (WebCore::RenderLayer::hitTest):
3556         * rendering/RenderLayer.h:
3557         (WebCore::RenderLayer::getHiddenBehavior):
3558         * rendering/RenderListBox.cpp:
3559         (WebCore::RenderListBox::RenderListBox):
3560         (WebCore::RenderListBox::~RenderListBox):
3561         (WebCore::RenderListBox::isPointInScrollbar):
3562         * rendering/RenderListBox.h:
3563         * rendering/RenderObject.h:
3564         (WebCore::RenderObject::NodeInfo::NodeInfo):
3565         (WebCore::RenderObject::NodeInfo::scrollbar):
3566         (WebCore::RenderObject::NodeInfo::setScrollbar):
3567
3568 2006-09-29  MorganL  <morganl.webkit@yahoo.com>
3569
3570         Reviewed by Adele.
3571
3572         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
3573
3574         * platform/win/ScrollViewWin.cpp:
3575         (WebCore::ScrollView::convertToContainingWindow):
3576         (WebCore::ScrollView::convertFromContainingWindow):
3577         * platform/win/WidgetWin.cpp:
3578         (WebCore::Widget::convertToContainingWindow):
3579         (WebCore::Widget::convertFromContainingWindow):
3580
3581 2006-09-29  Adele Peterson  <adele@apple.com>
3582
3583         Updated with new argument for PlatformScrollBar.
3584
3585         * platform/win/TemporaryLinkStubs.cpp:
3586         (PlatformScrollBar::PlatformScrollBar):
3587
3588 2006-09-29  Adele Peterson  <adele@apple.com>
3589
3590         Reviewed by Hyatt.
3591
3592         Fixing build bustage with cast to int.
3593
3594         * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::lastSelectedListIndex):
3595
3596 2006-09-29  Adele Peterson  <adele@apple.com>
3597
3598         Fixing accidental include.
3599
3600         * rendering/RenderListBox.cpp:
3601
3602 2006-09-29  Adele Peterson  <adele@apple.com>
3603
3604         Adding RenderListBox files.
3605
3606         * WebCore.vcproj/WebCore/WebCore.vcproj:
3607
3608 2006-09-29  Adele Peterson  <adele@apple.com>
3609
3610         Reviewed by Adam.
3611
3612         Initial implementation of engine-based list box control.
3613
3614         * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
3615
3616         * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
3617         * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
3618         (WebCore::FrameMac::FrameMac):
3619         (WebCore::FrameMac::handleMousePressEvent):
3620         (WebCore::FrameMac::handleMouseMoveEvent):
3621         (WebCore::FrameMac::mouseDown):
3622
3623         * page/Frame.cpp:
3624         (WebCore::Frame::handleMouseMoveEvent):
3625