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