Reviewed by Darin.
[WebKit-https.git] / WebCore / ChangeLog
1 2006-10-18  Timothy Hatcher  <timothy@apple.com>
2
3         Reviewed by Darin.
4
5         <rdar://problem/4752138> Manipulating popup in HTML page crashed Xcode
6
7         - Store the Mac popup button cell as a RetainPtr to prevent GC collection.
8         - Convert more ObjC local statics and member variables to use RetainPtr.
9         - Convert more CFRetain/CFRelease to HardRetain/HardRelease.
10
11         * bindings/objc/DOM.mm:
12         (ObjCNodeFilterCondition::ObjCNodeFilterCondition): use HardRetain and not CFRetain
13         (ObjCNodeFilterCondition::~ObjCNodeFilterCondition): use HardRelease and not CFRelease
14         * bridge/mac/AXObjectCacheMac.mm:
15         (WebCore::AXObjectCache::~AXObjectCache): use HardRelease and not CFRelease
16         (WebCore::AXObjectCache::get): use HardRetain and not CFRetain
17         (WebCore::AXObjectCache::remove): use HardRelease and not CFRelease
18         * bridge/mac/WebCoreFrameBridge.mm:
19         (+[WebCoreFrameBridge supportedImageResourceMIMETypes]): use RetainPtr
20         (+[WebCoreFrameBridge supportedImageMIMETypes]): ditto
21         * bridge/mac/WebCoreIconDatabaseBridge.mm:
22         (+[WebCoreIconDatabaseBridge sharedInstance]): use RetainPtr
23         * platform/PopupMenu.h: renamed popup to m_popup and switched to RetainPtr<NSPopUpButtonCell>
24         * platform/cf/RetainPtr.h:
25         (WTF::::operator): implement a missing operator= template function
26         * platform/mac/PopupMenuMac.mm:
27         (WebCore::PopupMenu::PopupMenu): remove nil initialization
28         (WebCore::PopupMenu::~PopupMenu): use .get(), remove release message and rename to m_popup
29         (WebCore::PopupMenu::clear): use .get() when sending a message and rename to m_popup
30         (WebCore::PopupMenu::populate): ditto 
31         (WebCore::PopupMenu::show): ditto
32         (WebCore::PopupMenu::hide): ditto
33         (WebCore::PopupMenu::addSeparator): ditto
34         (WebCore::PopupMenu::addGroupLabel): ditto
35         (WebCore::PopupMenu::addOption): ditto
36
37 2006-10-18  Geoffrey Garen  <ggaren@apple.com>
38
39         Reviewed by Adele.
40
41         Fixed <rdar://problem/3673233> JavaScript timers do not fire if controls
42         are tracking or menus are down (run loop modes)
43
44         I spent a few hours trying to write an automated test, but DRT doesn't
45         seem to support it. Manual tests attached to related bugs.
46         
47         * bridge/mac/FrameMac.mm:
48         (WebCore::FrameMac::passMouseDownEventToWidget):
49         * platform/mac/SharedTimerMac.cpp:
50         (WebCore::setSharedTimerFireTime):
51
52 2006-10-18  Sam Weinig  <sam.weinig@gmail.com>
53
54         Reviewed by Maciej.
55
56         More Win32 buildfix.
57
58         * bridge/win/FrameWin.h:
59
60 2006-10-18  Sam Weinig  <sam.weinig@gmail.com>
61
62         Reviewed by Mitz
63
64         Win32 build fix.
65
66         * bridge/win/BrowserExtensionWin.cpp:
67         (WebCore::BrowserExtensionWin::BrowserExtensionWin):
68         (WebCore::BrowserExtensionWin::createNewWindow):
69         * bridge/win/BrowserExtensionWin.h:
70         * bridge/win/FrameWin.cpp:
71         (WebCore::FrameWin::createNewWindow):
72         * bridge/win/FrameWin.h:
73         * platform/win/CursorWin.cpp:
74         * platform/win/TemporaryLinkStubs.cpp:
75         (Image::getHBITMAP):
76
77 2006-10-18  Justin Garcia  <justin.garcia@apple.com>
78
79         Reviewed by harrison
80         
81         <rdar://problem/4784823>
82         GMail Editor: Hang occurs when removing list styling on text in a rich text message
83
84         List removal moves the contents of every list item out of the list it's 
85         in. When the code tried to move the contents of an empty list item (an li 
86         with no child nodes, not even a placeholder br), moveParagraph didn't prune 
87         the li, like it would if the li had a placeholder inside it.  So the list 
88         removal code went into an infinite loop, continually attempting to de-list 
89         an empty list item.
90
91         * editing/CompositeEditCommand.cpp:
92         (WebCore::CompositeEditCommand::moveParagraphs): If the selection
93         to move was empty and in an empty block that doesn't require a 
94         placeholder to prop itself open (like a bordered div or an li), 
95         remove it during the move.
96
97 2006-10-18  Adele Peterson  <adele@apple.com>
98
99         Reviewed by Beth.
100
101         - Fixed http://bugs.webkit.org/show_bug.cgi?id=11343
102           REGRESSION (r16975): fast/events/objc-event-api is failing
103
104           When I moved the autoscroll code from FrameMac to Frame, I mistakingly changed the order of
105           a call to invalidateClick.  This change moves it back to the sequence that existed before.  This allows
106           the click count to get properly reset during a selection.
107
108         * page/Frame.cpp: (WebCore::Frame::handleMouseMoveEvent):
109
110 2006-10-17  Geoffrey Garen  <ggaren@apple.com>
111         
112         Reviewed by Anders.
113         
114         Factored common scaling code into a helper function.
115
116         * platform/mac/ScreenMac.mm:
117         (WebCore::scale):
118         (WebCore::scaleScreenRectToPageCoordinates):
119         (WebCore::scalePageRectToScreenCoordinates):
120
121 2006-10-17  Steve Falkenburg  <sfalken@apple.com>
122
123         Build fixes
124
125         * bridge/win/BrowserExtensionWin.cpp:
126         (WebCore::BrowserExtensionWin::createNewWindow):
127         * bridge/win/BrowserExtensionWin.h:
128         * bridge/win/FrameWin.cpp:
129         (WebCore::FrameWin::createNewWindow):
130         * bridge/win/FrameWin.h:
131         * platform/gdk/BrowserExtensionGdk.h:
132         * platform/gdk/TemporaryLinkStubs.cpp:
133         (BrowserExtensionGdk::createNewWindow):
134         * platform/qt/BrowserExtensionQt.cpp:
135         (WebCore::BrowserExtensionQt::createNewWindow):
136         * platform/qt/BrowserExtensionQt.h:
137
138 2006-10-17  Geoffrey Garen  <ggaren@apple.com>
139
140         Reviewed by Anders.
141         
142         Renamed WindowArgs to WindowFeatures, and moved it into its own header.
143         ("Features" is the term of art in IE documentation. "Args" is pirate
144         talk.)
145
146         * WebCore.xcodeproj/project.pbxproj:
147         * bindings/js/kjs_window.cpp:
148         (KJS::createNewWindow):
149         (KJS::showModalDialog):
150         (KJS::setWindowFeature):
151         (KJS::parseWindowFeatures):
152         (KJS::constrainToVisible):
153         (KJS::WindowFunc::callAsFunction):
154         * bridge/BrowserExtension.h:
155         * bridge/WindowFeatures.h: Added.
156         * bridge/mac/BrowserExtensionMac.h:
157         * bridge/mac/BrowserExtensionMac.mm:
158         (WebCore::BrowserExtensionMac::createNewWindow):
159
160 2006-10-17  Sam Weinig  <sam.weinig@gmail.com>
161
162         Reviewed by Tim H.
163
164         Patch for http://bugs.webkit.org/show_bug.cgi?id=11268
165         Implement the Objective-C DOM bindings for SVGNumber, SVGRect, and SVGPoint
166
167         - Adds implementation for DOMSVGNumber, DOMSVGRect, and DOMSVGPoint.
168
169         - Moves the contents of ksvg/bindings/js/ to bindings/js/.
170
171         - Moves SVGZoomEvent.idl from ksvg/svg/ to ksvg/events/.
172
173         - Adds isSVGColor() and isSVGPaint() methods to StyleBase, matching 
174           the other CSSValue classing, and allowing the bindings to allocate
175           appropriately.
176
177         - Removes #ifdefs around the getBBox() method in SVGLocatable.idl allowing
178           generation for Objective-C.
179
180         - Assorted style cleanups.
181
182         * DerivedSources.make:
183         * WebCore.xcodeproj/project.pbxproj:
184         * bindings/objc/DOMCSS.mm:
185         (+[DOMCSSValue _CSSValueWith:WebCore::]):
186         * bindings/objc/DOMEvents.mm:
187         (+[DOMEvent _eventWith:WebCore::]):
188         * bindings/objc/DOMSVG.h:
189         * bindings/objc/DOMSVGNumber.mm:
190         (-[DOMSVGNumber dealloc]):
191         (-[DOMSVGNumber finalize]):
192         (-[DOMSVGNumber value]):
193         (-[DOMSVGNumber setValue:]):
194         (-[DOMSVGNumber _SVGNumber]):
195         (-[DOMSVGNumber _initWithFloat:]):
196         (+[DOMSVGNumber _SVGNumberWith:]):
197         * bindings/objc/DOMSVGPoint.mm:
198         (-[DOMSVGPoint dealloc]):
199         (-[DOMSVGPoint finalize]):
200         (-[DOMSVGPoint x]):
201         (-[DOMSVGPoint setX:]):
202         (-[DOMSVGPoint y]):
203         (-[DOMSVGPoint setY:]):
204         (-[DOMSVGPoint WebCore::]):
205         (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
206         (+[DOMSVGPoint _SVGPointWith:WebCore::]):
207         * bindings/objc/DOMSVGRect.mm:
208         (-[DOMSVGRect dealloc]):
209         (-[DOMSVGRect finalize]):
210         (-[DOMSVGRect x]):
211         (-[DOMSVGRect setX:]):
212         (-[DOMSVGRect y]):
213         (-[DOMSVGRect setY:]):
214         (-[DOMSVGRect width]):
215         (-[DOMSVGRect setWidth:]):
216         (-[DOMSVGRect height]):
217         (-[DOMSVGRect setHeight:]):
218         (-[DOMSVGRect WebCore::]):
219         (-[DOMSVGRect _initWithFloatRect:WebCore::]):
220         (+[DOMSVGRect _SVGRectWith:WebCore::]):
221         * bindings/scripts/CodeGeneratorObjC.pm:
222         * css/StyleBase.h:
223         (WebCore::StyleBase::isSVGColor):
224         (WebCore::StyleBase::isSVGPaint):
225         * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp: Removed.
226         * ksvg2/bindings/js/JSSVGElementWrapperFactory.h: Removed.
227         * ksvg2/bindings/js/JSSVGNumber.cpp: Removed.
228         * ksvg2/bindings/js/JSSVGNumber.h: Removed.
229         * ksvg2/bindings/js/JSSVGPoint.cpp: Removed.
230         * ksvg2/bindings/js/JSSVGPoint.h: Removed.
231         * ksvg2/bindings/js/JSSVGRect.cpp: Removed.
232         * ksvg2/bindings/js/JSSVGRect.h: Removed.
233         * ksvg2/svg/SVGColor.h:
234         (WebCore::SVGColor::isSVGColor):
235         * ksvg2/svg/SVGFECompositeElement.idl:
236         * ksvg2/svg/SVGFEFloodElement.idl:
237         * ksvg2/svg/SVGLocatable.idl:
238         * ksvg2/svg/SVGMarkerElement.idl:
239         * ksvg2/svg/SVGPaint.h:
240         (WebCore::SVGPaint::isSVGPaint):
241         * ksvg2/svg/SVGRectElement.idl:
242         * ksvg2/svg/SVGZoomEvent.idl: Removed.
243
244 2006-10-17  David Hyatt  <hyatt@apple.com>
245
246         Prepare for the elimination of the RenderLayer for <html> elements.  The layer is still present,
247         but this patch makes everything work without a root layer being around.
248
249         Reviewed by beth
250
251         * rendering/RenderBlock.cpp:
252         (WebCore::RenderBlock::paint):
253         (WebCore::RenderBlock::paintChildren):
254         (WebCore::RenderBlock::nodeAtPoint):
255         * rendering/RenderLayer.cpp:
256         (WebCore::frameVisibleRect):
257         (WebCore::RenderLayer::hitTest):
258         (WebCore::RenderLayer::hitTestLayer):
259         (WebCore::RenderLayer::intersectsDamageRect):
260         * rendering/RenderObject.cpp:
261         (WebCore::RenderObject::setInnerNode):
262         * rendering/RenderView.cpp:
263         (WebCore::RenderView::paint):
264
265 2006-10-17  David Hyatt  <hyatt@apple.com>
266
267         Back out my previous patch to the WebCore memory cache.
268
269         * loader/Cache.cpp:
270         (WebCore::Cache::flush):
271         (WebCore::Cache::setSize):
272         (WebCore::Cache::getLRUListFor):
273         (WebCore::Cache::removeFromLRUList):
274         (WebCore::Cache::insertInLRUList):
275         * loader/Cache.h:
276         * loader/CachedCSSStyleSheet.cpp:
277         (WebCore::CachedCSSStyleSheet::deref):
278         * loader/CachedCSSStyleSheet.h:
279         * loader/CachedImage.cpp:
280         (WebCore::CachedImage::deref):
281         * loader/CachedImage.h:
282         * loader/CachedResource.cpp:
283         (WebCore::CachedResource::setRequest):
284         (WebCore::CachedResource::deref):
285         * loader/CachedResource.h:
286         (WebCore::CachedResource::allowInLRUList):
287         * loader/CachedScript.cpp:
288         (WebCore::CachedScript::deref):
289         * loader/CachedScript.h:
290         * loader/CachedXBLDocument.cpp:
291         (WebCore::CachedXBLDocument::deref):
292         * loader/CachedXBLDocument.h:
293         * loader/CachedXSLStyleSheet.cpp:
294         (WebCore::CachedXSLStyleSheet::deref):
295         * loader/CachedXSLStyleSheet.h:
296
297 2006-10-17  Oliver Hunt  <oliver@apple.com>
298
299         Reviewed by Anders.
300
301         Make north and east resize cursors use correct image
302
303         * platform/win/CursorWin.cpp:
304         (WebCore::eastResizeCursor):
305         (WebCore::northResizeCursor):
306
307 2006-10-17  Oliver Hunt  <oliver@apple.com>
308
309         Reviewed by Brady
310
311         Various cursor fixes
312
313         * page/FrameView.cpp:
314         (WebCore::FrameView::handleMouseMoveEvent):
315         * platform/Cursor.h:
316         * platform/mac/CursorMac.mm:
317         (WebCore::pointerCursor):
318         * platform/win/CursorWin.cpp:
319         (WebCore::supportsAlphaCursors):
320         (WebCore::Cursor::Cursor):
321         (WebCore::Cursor::~Cursor):
322         (WebCore::pointerCursor):
323
324 2006-10-17  Justin Garcia  <justin.garcia@apple.com>
325
326         Reviewed by harrison
327         
328         <rdar://problem/4776665>
329         REGRESSION: In Mail, caret is visible when the message body isn't focused
330
331         * page/Frame.cpp:
332         (WebCore::Frame::paintCaret): If a caret blink timer is ever on in error
333         (like when the frame that contains the caret isn't focused) then we don't 
334         want to paint the caret.  We should eventually move to using a single bool
335         for caret painting.
336
337 2006-10-17  Justin Garcia  <justin.garcia@apple.com>
338
339         Reviewed by harrison
340         
341         <rdar://problem/4774354>
342         REGRESSION: In Gmail, caret reappears when dragging a selection over some text in the message body
343
344         Functions call recomputCaretRect to see if the caret rect has changed, 
345         and, if it has, they invalidate (repaint) it.  recomputeCaretRect was 
346         returning false if the caret turned into a range selection or was blown 
347         away.
348
349         * editing/SelectionController.cpp:
350         (WebCore::SelectionController::recomputeCaretRect): Don't early return if
351         !isCaret().  Obtain the FrameView* using the m_frame pointer, because m_sel 
352         may now be null.
353
354 2006-10-17  Geoffrey Garen  <ggaren@apple.com>
355
356         Reviewed by Brady.
357
358         BrowserExtension cleanup.
359         
360         - Removed unnecessary #include of BrowserExtension in Frame.h, added
361         #includes to compensate in other files.
362         
363         - Removed unused versions of createNewWindow.
364         
365         * bindings/js/kjs_window.cpp:
366         * bridge/BrowserExtension.h:
367         * bridge/mac/BrowserExtensionMac.h:
368         * bridge/mac/BrowserExtensionMac.mm:
369         (WebCore::BrowserExtensionMac::createNewWindow):
370         * bridge/mac/WebCoreFrameBridge.mm:
371         * html/HTMLFormElement.cpp:
372         * loader/mac/LoaderFunctionsMac.mm:
373         * page/Frame.h:
374         * page/FramePrivate.h:
375
376 2006-10-15  Geoffrey Garen  <ggaren@apple.com>
377
378         Reviewed by Adam.
379         
380         - Fixed "FIXME: Violates Liskov Substitution principle."
381         
382         IFRAME was never a true subclass of FRAME, since they disagreed on a
383         number of behaviors, which, confusingly, IFRAME just overrode and contradicted. 
384
385         The fix here is to factor out things common to IFRAME and FRAME into a
386         common base class, HTMLFrameElementBase.
387         
388         I also changed some " *" to "* " and added #includes in files that implicitly
389         assumed that HTMLIFrameElement.h #included HTMLFrameElement.h.
390
391 2006-10-16  Justin Garcia  <justin.garcia@apple.com>
392
393         Reviewed by sullivan
394         
395         <rdar://problem/4776765>
396         REGRESSION: Caret's ghost left behind after inserting a paragraph separator (11237)
397
398         We set m_needsLayout to false and call caretRect() in the hopes that it will give us 
399         the old caret rect.  It in fact corrects the caret rect for an offset that it 
400         believes is due to scrolling but which is actually due to a change in selection
401         without an accompanying layout.  So it returns the new caret rect regardless of
402         what m_needsLayout is set to.
403         
404         * editing/SelectionController.cpp:
405         (WebCore::repaintRectForCaret): Moved the code from caretRepaintRect that
406         adds a one pixel slop to this new function.
407         (WebCore::SelectionController::caretRepaintRect): Moved this code to
408         repaintRectForCaret.
409         (WebCore::SelectionController::recomputeCaretRect): Compare the old
410         caret rect to the new one that's computed with a fresh layout.  If
411         they are different, invalidate both repaint rects.
412
413 2006-10-17  David Harrison  <harrison@apple.com>
414
415         Reviewed by Adele.
416
417         <rdar://problem/4770453> VO not honoring secure edit fields in web pages
418
419         * bridge/mac/WebCoreAXObject.mm:
420         (-[WebCoreAXObject isPasswordField]):
421         New. Checks for input with inputType() of PASSWORD.
422         
423         (-[WebCoreAXObject subrole]):
424         Returns NSAccessibilitySecureTextFieldSubrole if [self isPasswordField].
425         
426         (-[WebCoreAXObject roleDescription]):
427         Pass [self subrole] instead of nil when calling NSAccessibilityRoleDescription.
428         
429         (-[WebCoreAXObject value]):
430         Return nil if [self isPasswordField].
431         
432         (-[WebCoreAXObject accessibilityAttributeNames]):
433         Return generic attributes if [self isPasswordField].
434
435         (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
436         Return empty array if [self isPasswordField].
437
438 2006-10-17  David Hyatt  <hyatt@apple.com>
439
440         Fix "flash to white' problem on yahoo.com as it finishes loading.  Refine the FOUC suppression
441         code so that it will only run if the body still has no renderer.
442
443         * dom/Document.cpp:
444         (WebCore::Document::updateLayoutIgnorePendingStylesheets):
445
446 2006-10-17  David Hyatt  <hyatt@apple.com>
447
448         Fix a bug where the WebCore memory cache could grow without bound during extended browsing
449         sessions.
450
451         Reviewed by mjs
452
453         * loader/Cache.cpp:
454         (WebCore::Cache::flush):
455         (WebCore::Cache::setSize):
456         (WebCore::Cache::getLRUListFor):
457         (WebCore::Cache::removeFromLRUList):
458         (WebCore::Cache::insertInLRUList):
459         * loader/Cache.h:
460         * loader/CachedCSSStyleSheet.cpp:
461         * loader/CachedCSSStyleSheet.h:
462         * loader/CachedImage.cpp:
463         * loader/CachedImage.h:
464         * loader/CachedResource.cpp:
465         (WebCore::CachedResource::setRequest):
466         (WebCore::CachedResource::deref):
467         * loader/CachedResource.h:
468         (WebCore::CachedResource::allowInLRUList):
469         * loader/CachedScript.cpp:
470         * loader/CachedScript.h:
471         * loader/CachedXBLDocument.cpp:
472         * loader/CachedXBLDocument.h:
473         * loader/CachedXSLStyleSheet.cpp:
474         * loader/CachedXSLStyleSheet.h:
475
476 2006-10-13  Justin Garcia  <justin.garcia@apple.com>
477
478         Reviewed by harrison
479         
480         <rdar://problem/3655385>
481         Editing: -indent: method unimplemented
482
483         Added Frame and bridge methods.
484
485         * bridge/mac/WebCoreFrameBridge.h:
486         * bridge/mac/WebCoreFrameBridge.mm:
487         (-[WebCoreFrameBridge indent]):
488         (-[WebCoreFrameBridge outdent]):
489         * page/Frame.cpp:
490         (WebCore::Frame::indent): 
491         (WebCore::Frame::outdent):
492         * page/Frame.h:
493
494 2006-10-16  Adam Roben  <aroben@apple.com>
495
496         Reviewed by John.
497
498         More menulist cleanup/tweaking.
499
500         * html/HTMLSelectElement.cpp:
501         (WebCore::HTMLSelectElement::setSelectedIndex): Renamed 'index'
502         parameter to 'optionIndex' for clarity.
503         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Skip over
504         items that are not enabled <option> elements when using arrow keys, and
505         make sure we pass an option index to setSelectedIndex.
506         * platform/PopupMenu.h:
507         (WebCore::PopupMenu::setWasClicked): Specify default argument.
508         * rendering/RenderMenuList.cpp:
509         (WebCore::RenderMenuList::setTextFromOption): Strip whitespace from
510         option text before setting the control text so that options within
511         <optgroup>s don't appear indented in the actual control.
512
513 2006-10-16  Sam Weinig  <sam.weinig@gmail.com>
514
515         Reviewed by Adam.
516
517         Win32 build fix.
518
519         * WebCore.vcproj/WebCore/WebCore.vcproj:
520         * bridge/win/BrowserExtensionWin.cpp:
521         (WebCore::BrowserExtensionWin::createNewWindow):
522         * bridge/win/FrameWin.cpp:
523         (WebCore::FrameWin::urlSelected):
524         (WebCore::FrameWin::submitForm):
525         (WebCore::FrameWin::createNewWindow):
526         * bridge/win/FrameWin.h:
527         * loader/loader.cpp:
528         (WebCore::Loader::receivedResponse):
529         * platform/win/GraphicsContextWin.cpp:
530         (WebCore::GraphicsContext::getWindowsContext):
531         (WebCore::GraphicsContext::releaseWindowsContext):
532         * platform/win/TemporaryLinkStubs.cpp:
533         (FrameWin::openURLRequest):
534         (WebCore::ServeSynchronousRequest):
535         (WebCore::CheckIfReloading):
536         (WebCore::IsResponseURLEqualToURL):
537         (WebCore::ResponseMIMEType):
538         (WebCore::ResponseIsMultipart):
539         (WebCore::CacheObjectExpiresTime):
540         (CachedResource::setResponse):
541         (CachedResource::setAllData):
542         * rendering/RenderThemeWin.cpp:
543         (WebCore::doneDrawing):
544         (WebCore::RenderThemeWin::paintButton):
545         (WebCore::RenderThemeWin::paintTextField):
546
547 2006-10-16  David Hyatt  <hyatt@apple.com>
548
549         Fix for bug 9347, positioned elements have the wrong containing block.  This is a change from CSS2 to
550         CSS2.1.  In the absence of any other enclosing positioned elements, the containing block for a positioned
551         element is the initial containing block (our RenderView).
552
553         Reviewed by mjs
554
555         Test cases added to fast/block/positioning for quirks and strict modes.
556
557         * rendering/RenderBlock.cpp:
558         (WebCore::RenderBlock::lowestPosition):
559         (WebCore::RenderBlock::rightmostPosition):
560         (WebCore::RenderBlock::leftmostPosition):
561         * rendering/RenderBox.cpp:
562         (WebCore::RenderBox::containingBlockHeightForPositioned):
563         (WebCore::RenderBox::calcAbsoluteVertical):
564         * rendering/RenderObject.cpp:
565         (WebCore::RenderObject::containingBlock):
566         (WebCore::RenderObject::container):
567
568 2006-10-15  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
569
570         Reviewed by Anders.
571
572         Misc Gdk/Linux build fixes.
573
574         * platform/gdk/BrowserExtensionGdk.h:
575         * platform/gdk/FrameGdk.cpp:
576         (WebCore::FrameGdk::submitForm):
577         (WebCore::FrameGdk::urlSelected):
578         * platform/gdk/FrameGdk.h:
579         * platform/gdk/RenderPopupMenuGdk.cpp:
580         (WebCore::PopupMenu::PopupMenu):
581         (WebCore::PopupMenu::~PopupMenu):
582         (WebCore::PopupMenu::clear):
583         (WebCore::PopupMenu::populate):
584         (WebCore::PopupMenu::show):
585         (WebCore::PopupMenu::hide):
586         (WebCore::PopupMenu::addSeparator):
587         (WebCore::PopupMenu::addGroupLabel):
588         (WebCore::PopupMenu::addOption):
589         * platform/gdk/RenderPopupMenuGdk.h:
590         * platform/gdk/RenderThemeGdk.cpp:
591         * platform/gdk/RenderThemeGdk.h:
592         (WebCore::RenderThemeGdk::RenderThemeGdk):
593         * platform/gdk/TemporaryLinkStubs.cpp:
594         (BrowserExtensionGdk::createNewWindow):
595         (BrowserExtensionGdk::BrowserExtensionGdk):
596         (BrowserExtensionGdk::setTypedIconURL):
597         (BrowserExtensionGdk::setIconURL):
598         (BrowserExtensionGdk::getHistoryLength):
599         (WebCore::CheckIfReloading):
600         (WebCore::CacheObjectExpiresTime):
601         (WebCore::ResponseURL):
602         (WebCore::IsResponseURLEqualToURL):
603         (WebCore::ResponseIsMultipart):
604         (WebCore::ResponseMIMEType):
605         (WebCore::CachedResource::setResponse):
606         (WebCore::CachedResource::setAllData):
607         (FileChooser::disconnectUploadControl):
608         * rendering/RenderTheme.h:
609         * rendering/RenderThemeMac.h:
610
611 2006-10-15  Sam Weinig  <sam.weinig@gmail.com>
612
613         Reviewed by Mitz.
614
615         Fix for http://bugs.webkit.org/show_bug.cgi?id=11294
616         Add getModifierState method to KeyboardEvent
617
618         * bindings/objc/DOMEvents.h:
619         * bindings/objc/DOMEvents.mm:
620         * bindings/objc/PublicDOMInterfaces.h:
621         * dom/KeyboardEvent.cpp:
622         (WebCore::KeyboardEvent::getModifierState):
623         * dom/KeyboardEvent.h:
624         * dom/KeyboardEvent.idl:
625
626 2006-10-15  Nikolas Zimmermann  <zimmermann@kde.org>
627
628         Reviewed and landed by ap.
629
630         Changed PlatformResponse handling for Qt. Don't just store
631         a QString object containing the data but a new PlatformResponseQt struct
632         containing data and url, and store it as pointer. This is compatible
633         to the OS X handling and removes the Qt plaform specific hacks from
634         CachedCSSStyleSheet, CachedResource & loader.
635
636         Add new file LoaderFunctionsQt, similar to LoaderFunctionsMac, and move
637         all methods from TemporaryLinkStubs related to loading in there, and implement
638         some like ServeSynchronousRequest (yay for xslt handling!).
639
640         * CMakeLists.txt:
641         * loader/CachedCSSStyleSheet.cpp:
642         (WebCore::CachedCSSStyleSheet::checkNotify):
643         * loader/CachedResource.h:
644         (WebCore::CachedResource::CachedResource):
645         * loader/loader.cpp:
646         (WebCore::Loader::receivedResponse):
647         * platform/ResourceLoaderClient.h:
648         * platform/ResourceLoaderInternal.h:
649         * platform/qt/FrameQt.cpp:
650         (WebCore::FrameQt::~FrameQt):
651         (WebCore::FrameQt::createEmptyDocument):
652         * platform/qt/FrameQt.h:
653         (WebCore::QtFrame):
654         * platform/qt/FrameQtClient.cpp:
655         (WebCore::FrameQtClientDefault::setFrame):
656         (WebCore::FrameQtClientDefault::openURL):
657         (WebCore::FrameQtClientDefault::loadFinished):
658         (WebCore::FrameQtClientDefault::receivedAllData):
659         * platform/qt/FrameQtClient.h:
660         * platform/qt/LoaderFunctionsQt.cpp: Added.
661         (WebCore::ServeSynchronousRequest):
662         (WebCore::NumberOfPendingOrLoadingRequests):
663         (WebCore::CheckIfReloading):
664         (WebCore::CheckCacheObjectStatus):
665         (WebCore::IsResponseURLEqualToURL):
666         (WebCore::ResponseURL):
667         (WebCore::ResponseMIMEType):
668         (WebCore::ResponseIsMultipart):
669         (WebCore::CacheObjectExpiresTime):
670         (WebCore::CachedResource::setResponse):
671         (WebCore::CachedResource::setAllData):
672         * platform/qt/ResourceLoaderManager.cpp:
673         (WebCore::ResourceLoaderManager::remove):
674         * platform/qt/ResourceLoaderQt.cpp:
675         (WebCore::ResourceLoader::~ResourceLoader):
676         (WebCore::ResourceLoader::start):
677         (WebCore::ResourceLoader::assembleResponseHeaders):
678         (WebCore::ResourceLoader::receivedResponse):
679         * platform/qt/TemporaryLinkStubs.cpp:
680
681 2006-10-14  Rob Buis  <buis@kde.org>
682
683         Reviewed by Mitz.
684
685         http://bugs.webkit.org/show_bug.cgi?id=11217
686         Cleanup svg coding style
687
688         Cleanup coding style in svg basic datastructure classes.
689
690         * ksvg2/svg/SVGAngle.cpp:
691         (WebCore::SVGAngle::valueAsString):
692         (WebCore::SVGAngle::context):
693         (WebCore::SVGAngle::setContext):
694         * ksvg2/svg/SVGAngle.h:
695         * ksvg2/svg/SVGColor.cpp:
696         * ksvg2/svg/SVGColor.h:
697         * ksvg2/svg/SVGElement.cpp:
698         (WebCore::SVGElement::ownerSVGElement):
699         (WebCore::SVGElement::viewportElement):
700         (WebCore::SVGElement::parseMappedAttribute):
701         (WebCore::SVGElement::childShouldCreateRenderer):
702         * ksvg2/svg/SVGElement.h:
703         (WebCore::svg_dynamic_cast):
704         * ksvg2/svg/SVGFitToViewBox.cpp:
705         (WebCore::SVGFitToViewBox::parseViewBox):
706         * ksvg2/svg/SVGFitToViewBox.h:
707         * ksvg2/svg/SVGLangSpace.cpp:
708         (WebCore::SVGLangSpace::parseMappedAttribute):
709         * ksvg2/svg/SVGLangSpace.h:
710         * ksvg2/svg/SVGLength.cpp:
711         (WebCore::SVGLength::SVGLength):
712         (WebCore::SVGLength::setValueAsString):
713         (WebCore::SVGLength::dpi):
714         (WebCore::SVGLength::updateValue):
715         (WebCore::SVGLength::updateValueInSpecifiedUnits):
716         (WebCore::SVGLength::context):
717         (WebCore::SVGLength::setContext):
718         * ksvg2/svg/SVGLength.h:
719         * ksvg2/svg/SVGLengthList.cpp:
720         * ksvg2/svg/SVGLengthList.h:
721         * ksvg2/svg/SVGLocatable.cpp:
722         (WebCore::SVGLocatable::nearestViewportElement):
723         (WebCore::SVGLocatable::farthestViewportElement):
724         (WebCore::SVGLocatable::getBBox):
725         (WebCore::SVGLocatable::getCTM):
726         (WebCore::SVGLocatable::getScreenCTM):
727         * ksvg2/svg/SVGNumberList.cpp:
728         * ksvg2/svg/SVGNumberList.h:
729         * ksvg2/svg/SVGPreserveAspectRatio.cpp:
730         (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
731         (WebCore::SVGPreserveAspectRatio::getCTM):
732         * ksvg2/svg/SVGPreserveAspectRatio.h:
733         * ksvg2/svg/SVGStringList.cpp:
734         (WebCore::SVGStringList::reset):
735         * ksvg2/svg/SVGStringList.h:
736         * ksvg2/svg/SVGStylable.cpp:
737         * ksvg2/svg/SVGStylable.h:
738         * ksvg2/svg/SVGTests.cpp:
739         (WebCore::SVGTests::requiredFeatures):
740         (WebCore::SVGTests::requiredExtensions):
741         (WebCore::SVGTests::systemLanguage):
742         (WebCore::SVGTests::isValid):
743         (WebCore::SVGTests::parseMappedAttribute):
744         * ksvg2/svg/SVGTests.h:
745         * ksvg2/svg/SVGTransformable.cpp:
746         (WebCore::SVGTransformable::parseTransformAttribute):
747         * ksvg2/svg/SVGTransformable.h:
748         * ksvg2/svg/SVGURIReference.cpp:
749         (WebCore::SVGURIReference::parseMappedAttribute):
750         * ksvg2/svg/SVGZoomAndPan.cpp:
751         (WebCore::SVGZoomAndPan::parseMappedAttribute):
752         * ksvg2/svg/SVGZoomAndPan.h:
753
754 2006-10-15  Nikolas Zimmermann  <zimmermann@kde.org>
755
756         Reviewed by Oliver.
757
758         Implement some functions in FrameQt / ScrollViewQt.
759
760         Added comments what needs to be done in quite some places,
761         marked some functions as no-ops.
762
763         * CMakeLists.txt:
764         * platform/qt/FrameQt.cpp:
765         (WebCore::FrameQt::FrameQt):
766         (WebCore::FrameQt::runJavaScriptConfirm):
767         (WebCore::FrameQt::locationbarVisible):
768         (WebCore::FrameQt::createFrame):
769         (WebCore::FrameQt::passSubframeEventToSubframe):
770         (WebCore::FrameQt::menubarVisible):
771         (WebCore::FrameQt::personalbarVisible):
772         (WebCore::FrameQt::statusbarVisible):
773         (WebCore::FrameQt::toolbarVisible):
774         (WebCore::FrameQt::markedTextRange):
775         (WebCore::FrameQt::lastEventIsMouseUp):
776         (WebCore::FrameQt::openURLRequest):
777         (WebCore::FrameQt::scheduleClose):
778         (WebCore::FrameQt::unfocusWindow):
779         (WebCore::FrameQt::focusWindow):
780         (WebCore::FrameQt::overrideMediaType):
781         (WebCore::FrameQt::runJavaScriptPrompt):
782         (WebCore::FrameQt::bindingRootObject):
783         (WebCore::FrameQt::addPluginRootObject):
784         (WebCore::FrameQt::registerCommandForUndo):
785         (WebCore::FrameQt::registerCommandForRedo):
786         (WebCore::FrameQt::clearUndoRedoOperations):
787         (WebCore::FrameQt::respondToChangedSelection):
788         (WebCore::FrameQt::respondToChangedContents):
789         (WebCore::FrameQt::shouldChangeSelection):
790         (WebCore::FrameQt::canGoBackOrForward):
791         (WebCore::FrameQt::canPaste):
792         (WebCore::FrameQt::canRedo):
793         (WebCore::FrameQt::canUndo):
794         * platform/qt/FrameQt.h:
795         * platform/qt/FrameQtClient.cpp:
796         (WebCore::FrameQtClientDefault::runJavaScriptAlert):
797         (WebCore::FrameQtClientDefault::runJavaScriptConfirm):
798         (WebCore::FrameQtClientDefault::runJavaScriptPrompt):
799         (WebCore::FrameQtClientDefault::menubarVisible):
800         (WebCore::FrameQtClientDefault::toolbarVisible):
801         (WebCore::FrameQtClientDefault::statusbarVisible):
802         (WebCore::FrameQtClientDefault::personalbarVisible):
803         (WebCore::FrameQtClientDefault::locationbarVisible):
804         * platform/qt/FrameQtClient.h:
805         * platform/qt/ImageSourceQt.cpp:
806         * platform/qt/RenderThemeQt.cpp:
807         * platform/qt/ScrollViewQt.cpp:
808         (WebCore::ScrollView::scrollPointRecursively):
809         * platform/qt/TemporaryLinkStubs.cpp:
810         (WebCore::CachedResource::setResponse):
811         (WebCore::CachedResource::setAllData):
812
813 2006-10-14  David Harrison  <harrison@apple.com>
814
815         Reviewed by Geoff.
816
817         <rdar://problem/4775213> REGRESSION: Can't from tab from last link on the page to URL address field
818         <rdar://problem/4783926> REGRESSION: Typing tab key enters no text
819
820         The problem is that EventTargetNode::defaultEventHandler() calls event->setDefaultHandled() regardless
821         of whether frame->view()->advanceFocus() actually changed the focus.
822
823         Trivial fix is to preventDefault() only if advanceFocus() returns true.
824
825         * No test is possible because DumpRenderTree sets the WebView preference to
826         tab to links, and that preference cannot be changed dynamically after
827         the webview is initialized. Also, the "tab from last link" is not testable
828         because DumpRenderTree uses the WebView for the whole window, so tabs can't
829         shift focus out of the WebView regardless.
830
831         * dom/EventTargetNode.cpp:
832         (WebCore::EventTargetNode::defaultEventHandler):
833
834 2006-10-14  Nikolas Zimmermann  <zimmermann@kde.org>
835
836         Reviewed by Mitz.
837
838         Fix Qt/Linux build & some little fixes:
839
840         - Adapt to Maciej's FrameLoadRequest changes.
841         - Fix response handling - don't try to compare with '0' - for us it's a non-ptr QString object.
842         - Actually call setAllData from loader/loader.cpp (David Carson forgot that in his last commit)
843         - Fix CacheObjectExpiresTime/ResponseIsMultipart signature.
844
845         * loader/CachedCSSStyleSheet.cpp:
846         (WebCore::CachedCSSStyleSheet::checkNotify):
847         * loader/CachedResource.h:
848         (WebCore::CachedResource::CachedResource):
849         * loader/loader.cpp:
850         (WebCore::Loader::receivedAllData):
851         (WebCore::Loader::receivedResponse):
852         * platform/qt/BrowserExtensionQt.cpp:
853         (WebCore::BrowserExtensionQt::createNewWindow):
854         * platform/qt/BrowserExtensionQt.h:
855         * platform/qt/FrameQt.cpp:
856         (WebCore::FrameQt::submitForm):
857         (WebCore::FrameQt::urlSelected):
858         (WebCore::FrameQt::openURLRequest):
859         * platform/qt/FrameQt.h:
860         * platform/qt/GraphicsContextQt.cpp:
861         (WebCore::GraphicsContext::setURLForRect):
862         * platform/qt/TemporaryLinkStubs.cpp:
863         (WebCore::CacheObjectExpiresTime):
864         (WebCore::ResponseIsMultipart):
865         (WebCore::CachedResource::setResponse):
866         (WebCore::CachedResource::setAllData):
867
868 2006-10-14  David Carson  <dacarson@gmail.com>
869
870         Reviewed by Maciej.
871
872         Fix: http://bugs.webkit.org/show_bug.cgi?id=11257
873         Removed Mac platform dependance, changed WebCore functions to
874         use PlatformResponse/PlatformData rather than NSURLResponse/
875         NSData. 
876
877         * loader/CachedCSSStyleSheet.cpp:
878         (WebCore::CachedCSSStyleSheet::checkNotify):
879         * loader/CachedImage.cpp:
880         (WebCore::CachedImage::createImage):
881         * loader/CachedResource.cpp:
882         (WebCore::CachedResource::~CachedResource):
883         * loader/CachedResource.h:
884         (WebCore::CachedResource::CachedResource):
885         (WebCore::CachedResource::response):
886         (WebCore::CachedResource::allData):
887         * loader/LoaderFunctions.h:
888         * loader/loader.cpp:
889         (WebCore::Loader::receivedResponse):
890         * loader/mac/LoaderFunctionsMac.mm:
891         (WebCore::ResponseMIMEType):
892         (WebCore::ResponseIsMultipart):
893         (WebCore::CacheObjectExpiresTime):
894         (WebCore::CachedResource::setResponse):
895         (WebCore::CachedResource::setAllData):
896         * platform/qt/TemporaryLinkStubs.cpp:
897         (WebCore::CacheObjectExpiresTime):
898         (WebCore::ResponseIsMultipart):
899         (WebCore::ResponseMIMEType):
900         (WebCore::CachedResource::setResponse):
901         (WebCore::CachedResource::setAllData):
902         * platform/win/TemporaryLinkStubs.cpp:
903         (WebCore::CacheObjectExpiresTime):
904         (WebCore::ResponseIsMultipart):
905         (WebCore::ResponseMIMEType):
906         (WebCore::CachedResource::setResponse):
907         (WebCore::CachedResource::setAllData):
908
909 2006-10-14  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
910
911         Reviewed by Maciej.
912
913         Fix GDK build by defining FrameGdkClient() constructor as non-virtual.
914         Pure virtual classes require non-pure destructor, who knew.
915
916         Make CURL networking dependent on USE(CURL) instead of PLATFORM(GDK),
917         so that other platforms can also use CURL, if they wish.
918
919         Silence compiler warning about unused variable in SharedTimerLinux.cpp
920
921         * platform/ResourceLoaderInternal.h:
922         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
923         * platform/gdk/FrameGdk.h:
924         (WebCore::FrameGdkClient::~FrameGdkClient):
925         * platform/gdk/ResourceLoaderManager.cpp:
926         (WebCore::ResourceLoaderManager::downloadTimerCallback):
927         * platform/gdk/SharedTimerLinux.cpp:
928         (WebCore::stopSharedTimer):
929
930 2006-10-13  Beth Dakin  <bdakin@apple.com>
931
932         Reviewed by Geoff.
933
934         Build fix from my last check-in. Make hasOutlineAnnotation() non-
935         inline so that we don't have to include Document.h in 
936         RenderObject.h
937         Doing so causes a build failure in WebKit, and it probably isn't a 
938         good idea anyway.
939
940         * rendering/RenderObject.cpp:
941         (WebCore::RenderObject::hasOutlineAnnotation):
942         * rendering/RenderObject.h:
943         (WebCore::RenderObject::hasOutline):
944
945 2006-10-13  Beth Dakin  <bdakin@apple.com>
946
947         Patch written mostly by Ken Kraisler, but also by me.
948
949         Reviewed by Hyatt.
950
951         Fix for http://bugs.webkit.org/show_bug.cgi?id=10216 and <rdar://
952         problem/3391162> PDF created by printing should have live 
953         hyperlinks
954
955         * platform/GraphicsContext.cpp:
956         (WebCore::GraphicsContext::focusRingBoundingRect):
957         * platform/GraphicsContext.h:
958         * platform/cairo/GraphicsContextCairo.cpp:
959         (WebCore::GraphicsContext::setURLForRect):
960         * platform/cg/GraphicsContextCG.cpp:
961         (WebCore::GraphicsContext::setURLForRect): Implement method to add 
962         URL link to PDF document.
963         * rendering/InlineFlowBox.cpp:
964         (WebCore::InlineFlowBox::paint): Ask hasOutline() instead of 
965         querying the outline width
966         * rendering/RenderBlock.cpp:
967         (WebCore::RenderBlock::paintObject): Same as above.
968         * rendering/RenderFlow.cpp:
969         (WebCore::RenderFlow::paintLines): Call the new paintOutline()
970         (WebCore::RenderFlow::paintOutline): Take care of focus ring and 
971         pdf url rects, and outline painting.
972         * rendering/RenderFlow.h:
973         * rendering/RenderObject.cpp:
974         (WebCore::RenderObject::addPDFURLRect): Declaration to apply a PDF 
975         link to a rectanglular region.
976         (WebCore::RenderObject::paintOutline): Take care of pdf rects as 
977         well as focus ring painting.
978         * rendering/RenderObject.h:
979         (WebCore::RenderObject::hasOutlineAnnotation): Returns true is the 
980         element is a link and we are printing.
981         (WebCore::RenderObject::hasOutline): Returns true is the style has 
982         an outline and hasOutlineAnnotation() is true.
983         * rendering/RenderStyle.h:
984         (WebCore::RenderStyle::hasOutline): Returns true if outlineWidth is 
985         greater than 0 and outlineStyle is greater than BHIDDEN.
986
987 2006-10-13  Justin Garcia  <justin.garcia@apple.com>
988
989         Reviewed by ggaren and harrison
990         
991         <rdar://problem/4744008>
992         9A270: Mail crashes when I try to paste large items from Safari
993
994         * editing/ReplaceSelectionCommand.cpp:
995         (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
996         Even though we put nodes in the hash map in pre-order, they don't necessary
997         come out of the iterator that way.  If a node is a redundant style span
998         and one of its pruned ancestors comes off the hash map after it, and that
999         ancestor is a redundant style span or font tag, we will try to remove it
1000         even though it has already been removed and we'll crash.
1001         The test case added with the fix depends on our hash map implementation
1002         because it requires that a particular redundant style span come out of 
1003         the iterator before its parent. So, it may eventually not provide 
1004         coverage for the fix.
1005
1006 2006-10-13  Maciej Stachowiak  <mjs@apple.com>
1007
1008         Reviewed by Darin.
1009
1010         - split FrameLoadRequest off from ResourceRequest - it's a ResourceRequest plus frame name plus lockHistory bool
1011
1012         * WebCore.xcodeproj/project.pbxproj:
1013         * bindings/js/kjs_window.cpp:
1014         (KJS::createNewWindow):
1015         (KJS::WindowFunc::callAsFunction):
1016         * bridge/BrowserExtension.h:
1017         * bridge/mac/BrowserExtensionMac.h:
1018         * bridge/mac/BrowserExtensionMac.mm:
1019         (WebCore::BrowserExtensionMac::createNewWindow):
1020         * bridge/mac/FrameMac.h:
1021         * bridge/mac/FrameMac.mm:
1022         (WebCore::FrameMac::submitForm):
1023         (WebCore::FrameMac::openURLRequest):
1024         (WebCore::FrameMac::urlSelected):
1025         * bridge/win/BrowserExtensionWin.h:
1026         * page/Frame.cpp:
1027         (WebCore::Frame::changeLocation):
1028         (WebCore::Frame::urlSelected):
1029         (WebCore::Frame::requestFrame):
1030         (WebCore::Frame::submitForm):
1031         * page/Frame.h:
1032         * page/FrameLoadRequest.h: Added.
1033         (WebCore::FrameLoadRequest::FrameLoadRequest):
1034         (WebCore::FrameLoadRequest::lockHistory):
1035         (WebCore::FrameLoadRequest::setLockHistory):
1036         * page/ResourceRequest.h:
1037         (WebCore::ResourceRequest::ResourceRequest):
1038
1039 2006-10-13  John Sullivan  <sullivan@apple.com>
1040
1041         Reviewed by Maciej
1042
1043         * loader/mac/WebFrameLoader.mm:
1044         (-[WebFrameLoader loadDocumentLoader:]):
1045         Replace ASSERT(!policyDocumentLoader) with code that handles this case. This can
1046         happen when loading a page during a decidePolicyForNavigationAction callback.
1047
1048 2006-10-13  Dave Hyatt  <hyatt@apple.com>
1049
1050         Transparency layer work.
1051
1052         Reviewed by aroben
1053
1054         * platform/GraphicsContext.h:
1055         * platform/cg/GraphicsContextCG.cpp:
1056         (WebCore::GraphicsContext::beginTransparencyLayer):
1057         (WebCore::GraphicsContext::endTransparencyLayer):
1058         * platform/cg/GraphicsContextPlatformPrivate.h:
1059         (WebCore::GraphicsContextPlatformPrivate::beginTransparencyLayer):
1060         (WebCore::GraphicsContextPlatformPrivate::endTransparencyLayer):
1061
1062 2006-10-13  Rob Buis  <buis@kde.org>
1063
1064         Reviewed by Mitz.
1065
1066         http://bugs.webkit.org/show_bug.cgi?id=11217
1067         Cleanup svg coding style
1068
1069         Cleanup coding style in svg paint server classes.
1070
1071         * ksvg2/svg/SVGGradientElement.cpp:
1072         (WebCore::SVGGradientElement::SVGGradientElement):
1073         (WebCore::SVGGradientElement::parseMappedAttribute):
1074         (WebCore::SVGGradientElement::notifyAttributeChange):
1075         (WebCore::SVGGradientElement::canvasResource):
1076         (WebCore::SVGGradientElement::rebuildStops):
1077         * ksvg2/svg/SVGGradientElement.h:
1078         * ksvg2/svg/SVGLinearGradientElement.cpp:
1079         (WebCore::SVGLinearGradientElement::SVGLinearGradientElement):
1080         (WebCore::SVGLinearGradientElement::parseMappedAttribute):
1081         (WebCore::SVGLinearGradientElement::buildGradient):
1082         * ksvg2/svg/SVGLinearGradientElement.h:
1083         * ksvg2/svg/SVGPatternElement.cpp:
1084         (WebCore::SVGPatternElement::SVGPatternElement):
1085         (WebCore::SVGPatternElement::parseMappedAttribute):
1086         (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
1087         (WebCore::SVGPatternElement::drawPatternContentIntoTile):
1088         (WebCore::SVGPatternElement::notifyClientsToRepaint):
1089         (WebCore::SVGPatternElement::notifyAttributeChange):
1090         (WebCore::SVGPatternElement::canvasResource):
1091         (WebCore::SVGPatternElement::getCTM):
1092         * ksvg2/svg/SVGPatternElement.h:
1093         (WebCore::SVGPatternElement::rendererIsNeeded):
1094         * ksvg2/svg/SVGRadialGradientElement.cpp:
1095         (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
1096         (WebCore::SVGRadialGradientElement::parseMappedAttribute):
1097         (WebCore::SVGRadialGradientElement::buildGradient):
1098         * ksvg2/svg/SVGRadialGradientElement.h:
1099         * ksvg2/svg/SVGStopElement.cpp:
1100         (WebCore::SVGStopElement::SVGStopElement):
1101         (WebCore::SVGStopElement::parseMappedAttribute):
1102         * ksvg2/svg/SVGStopElement.h:
1103
1104 2006-10-13  Geoffrey Garen  <ggaren@apple.com>
1105
1106         Reviewed by Darin, John.
1107
1108         - Merged more frame and iframe code
1109         - Fixed a bug where iframes returned incorrect values for renderer-dependent 
1110         properties during javascript: loads because they didn't have renderers at 
1111         load time
1112         
1113         PLT insists this is a small performance win. Don't believe its lies.
1114
1115         * bindings/js/kjs_html.cpp:
1116         (KJS::JSHTMLElement::frameGetter): Renamed frameWidth and frameHeight to
1117         width and height, for consistency with the rest of the DOM.
1118         * dom/ContainerNode.cpp:
1119         (WebCore::ContainerNode::queuePostAttachCallback): Added a post-attach callback
1120         queue that gets drained after the render tree is fully constructed. Currently,
1121         this is only used for frame loading.
1122         (WebCore::ContainerNode::attach):
1123         * dom/ContainerNode.h:
1124         * html/HTMLFrameElement.cpp:
1125         (WebCore::HTMLFrameElement::insertedIntoDocument): Removed frame loading from
1126         attach() because loading iframes during attach() causes a crash. 
1127         Moved frame loading logic into insertedIntoDocument(). That's a more 
1128         logical place for it because  document insertion is what 
1129         triggers frame loading. Made frame loading a post-attach callback, instead
1130         of an immediate action, to fix the incorrect values bug.
1131         (WebCore::HTMLFrameElement::attach): Added setWidget call that used to be
1132         in HTMLIFrameElement::attach. IFRAME requires this call. FRAME will soon 
1133         require this call, once I remove the call from WebKit.
1134         (WebCore::HTMLFrameElement::setLocation):
1135         (WebCore::HTMLFrameElement::width):
1136         (WebCore::HTMLFrameElement::height):
1137         * html/HTMLFrameElement.h: Made openURL non-virtual to avoid the unnecessary
1138         killing of puppies.
1139         * html/HTMLIFrameElement.cpp: Merged code into HTMLFrameElement
1140         (WebCore::HTMLIFrameElement::rendererIsNeeded):
1141         (WebCore::HTMLIFrameElement::createRenderer):
1142         (WebCore::HTMLIFrameElement::insertedIntoDocument):
1143         (WebCore::HTMLIFrameElement::removedFromDocument):
1144         (WebCore::HTMLIFrameElement::attach):
1145         * page/FrameView.h: Removed unused method.
1146
1147 2006-10-13  David Harrison  <harrison@apple.com>
1148
1149         Reviewed by Justin.
1150
1151         <rdar://problem/4746860> Mail crash in WebCore::CSSMutableStyleDeclaration::merge(WebCore::CSSMutableStyleDeclaration*, bool)
1152
1153         Tests added or changed:
1154         * editing/style/style-boundary-005.html: Added. Matches steps from bug.
1155         * editing/execCommand/hilitecolor-expected.txt: Updated (no empty Apple style spans).
1156         * editing/style/remove-underline-across-paragraph-in-bold-expected.txt: Updated (no empty Apple style spans).
1157         * editing/style/remove-underline-in-bold-expected.txt: Updated (no empty Apple style spans).
1158         * editing/style/typing-style-003-expected.txt: Updated (no empty Apple style spans).
1159
1160         * dom/Text.cpp:
1161         (WebCore::Text::splitText):
1162         Comment changes.
1163         
1164         * editing/ApplyStyleCommand.cpp:
1165         (WebCore::isUnstyledStyleSpan):
1166         Renamed from isEmptyStyleSpan.
1167         
1168         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
1169         Rename emptySpans local to unstyledSpans.
1170         
1171         (WebCore::dummySpanAncestorForNode):
1172         New. To locate Apple style span created when splitting a text node.
1173         
1174         (WebCore::ApplyStyleCommand::cleanupUnstyledAppleStyleSpans):
1175         Renamed from cleanUpEmptyStyleSpans. Algorithm changed to scan children
1176         of dummy span's parents, rather than traversing up from start and
1177         end locations. Old algorithm would miss empty spans in the bug case.
1178         
1179         (WebCore::ApplyStyleCommand::applyInlineStyle):
1180         Use dummySpanAncestorForNode() and cleanupUnstyledAppleStyleSpans().
1181         
1182         (WebCore::ApplyStyleCommand::removeCSSStyle):
1183         Renamed isEmptyStyleSpan() to isUnstyledStyleSpan().
1184         
1185         (WebCore::ApplyStyleCommand::mergeStartWithPreviousIfIdentical):
1186         Comment changes.
1187         
1188         * editing/ApplyStyleCommand.h:
1189         Renamed cleanUpEmptyStyleSpans() to cleanupUnstyledAppleStyleSpans().
1190           
1191         * editing/ReplaceSelectionCommand.cpp:
1192         (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
1193         Allow for Apple style span to be unstyled, because old email may have this in the DOM.
1194         Use !node->hasChildNodes() instead of !node->firstChild().
1195         
1196         * editing/SplitTextNodeCommand.cpp:
1197         (WebCore::SplitTextNodeCommand::doApply):
1198         Comment changes.
1199         
1200         * rendering/RenderTreeAsText.cpp:
1201         (WebCore::isEmptyOrUnstyledAppleStyleSpan):
1202         (WebCore::operator<<):
1203         Flag empty or unstyled AppleStyleSpa nbecause we never want to leave them in the DOM
1204
1205 2006-10-13  Nikolas Zimmermann  <zimmermann@kde.org>
1206
1207         Reviewed by Eric.
1208
1209         Fix Qt/Linux build after Adele's popup menu changes.
1210
1211         * CMakeLists.txt:
1212         * platform/qt/FileChooserQt.cpp:
1213         (WebCore::FileChooser::disconnectUploadControl):
1214         * platform/qt/PopupMenuQt.cpp: Added.
1215         (WebCore::PopupMenu::PopupMenu):
1216         (WebCore::PopupMenu::~PopupMenu):
1217         (WebCore::PopupMenu::clear):
1218         (WebCore::PopupMenu::populate):
1219         (WebCore::PopupMenu::show):
1220         (WebCore::PopupMenu::hide):
1221         (WebCore::PopupMenu::addSeparator):
1222         (WebCore::PopupMenu::addGroupLabel):
1223         (WebCore::PopupMenu::addOption):
1224         * platform/qt/RenderPopupMenuQt.cpp: Removed.
1225         * platform/qt/RenderPopupMenuQt.h: Removed.
1226         * platform/qt/RenderThemeQt.cpp:
1227
1228 2006-10-13  Kevin McCullough  <KMcCullough@apple.com>
1229
1230         Reviewed by Darin.
1231
1232         fixed build failure 
1233
1234         * WebCore.xcodeproj/project.pbxproj:
1235         * loader/mac/WebFrameLoader.mm:
1236
1237 2006-10-13  Darin Adler  <darin@apple.com>
1238
1239         Reviewed by Adele.
1240
1241         - converted WebFormState from Objective-C to C++
1242
1243         * WebCore.exp: Added a new symbol, changed one symbol from C to C++.
1244
1245         * WebCore.xcodeproj/project.pbxproj: Made lots of headers "private" instead of "project".
1246         Added UChar.h and FrameLoaderTypes.h.
1247
1248         * loader/FrameLoaderTypes.h: Added. Has enums from WebFrameLoader.h.
1249
1250         * loader/mac/WebFormState.h: Converted class to C++.
1251         * loader/mac/WebFormState.mm: Ditto.
1252
1253         * loader/mac/WebFrameLoader.h:
1254         * loader/mac/WebFrameLoader.mm:
1255         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1256         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
1257         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1258         (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
1259         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
1260         (-[WebFrameLoader continueAfterNewWindowPolicy:]):
1261         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
1262         (-[WebFrameLoader continueAfterNavigationPolicy:]):
1263         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
1264         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
1265         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1266         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1267         Changed Objective-C WebFormState uses to C++ WebCore::FormState.
1268
1269 2006-10-13  Adele Peterson  <adele@apple.com>
1270
1271         Reviewed by Maciej.
1272
1273         - Fix for <rdar://problem/4768591> REGRESSION: List box selection color should just be a darker version of regular selection color
1274
1275         * rendering/RenderListBox.cpp:
1276         (WebCore::RenderListBox::paintItemForeground):
1277         * rendering/RenderTheme.cpp:
1278         (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
1279         (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
1280         (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
1281         (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
1282         * rendering/RenderThemeMac.h:
1283         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::activeListBoxSelectionBackgroundColor):
1284
1285 2006-10-13  Rob Buis  <buis@kde.org>
1286
1287         Reviewed by Mitz.
1288
1289         http://bugs.webkit.org/show_bug.cgi?id=11217
1290         Cleanup svg coding style
1291
1292         Cleanup coding style in svg structure classes.
1293
1294         * ksvg2/svg/SVGDefsElement.cpp:
1295         (WebCore::SVGDefsElement::SVGDefsElement):
1296         * ksvg2/svg/SVGDefsElement.h:
1297         * ksvg2/svg/SVGDescElement.cpp:
1298         (WebCore::SVGDescElement::SVGDescElement):
1299         * ksvg2/svg/SVGDescElement.h:
1300         * ksvg2/svg/SVGDocument.cpp:
1301         * ksvg2/svg/SVGDocument.h:
1302         * ksvg2/svg/SVGElementInstance.cpp:
1303         (WebCore::SVGElementInstance::SVGElementInstance):
1304         (WebCore::SVGElementInstance::correspondingElement):
1305         (WebCore::SVGElementInstance::correspondingUseElement):
1306         (WebCore::SVGElementInstance::parentNode):
1307         (WebCore::SVGElementInstance::childNodes):
1308         (WebCore::SVGElementInstance::previousSibling):
1309         (WebCore::SVGElementInstance::nextSibling):
1310         (WebCore::SVGElementInstance::firstChild):
1311         (WebCore::SVGElementInstance::lastChild):
1312         * ksvg2/svg/SVGElementInstance.h:
1313         * ksvg2/svg/SVGElementInstanceList.cpp:
1314         * ksvg2/svg/SVGElementInstanceList.h:
1315         * ksvg2/svg/SVGGElement.cpp:
1316         (WebCore::SVGGElement::SVGGElement):
1317         (WebCore::SVGGElement::parseMappedAttribute):
1318         (WebCore::SVGDummyElement::SVGDummyElement):
1319         * ksvg2/svg/SVGGElement.h:
1320         (WebCore::SVGGElement::rendererIsNeeded):
1321         * ksvg2/svg/SVGImageElement.cpp:
1322         (WebCore::SVGImageElement::createRenderer):
1323         * ksvg2/svg/SVGImageElement.h:
1324         * ksvg2/svg/SVGSVGElement.cpp:
1325         (WebCore::SVGSVGElement::SVGSVGElement):
1326         (WebCore::SVGSVGElement::pixelUnitToMillimeterX):
1327         (WebCore::SVGSVGElement::pixelUnitToMillimeterY):
1328         (WebCore::SVGSVGElement::currentScale):
1329         (WebCore::SVGSVGElement::setCurrentScale):
1330         (WebCore::SVGSVGElement::currentTranslate):
1331         (WebCore::SVGSVGElement::parseMappedAttribute):
1332         (WebCore::SVGSVGElement::suspendRedraw):
1333         (WebCore::SVGSVGElement::unsuspendRedraw):
1334         (WebCore::SVGSVGElement::unsuspendRedrawAll):
1335         (WebCore::SVGSVGElement::forceRedraw):
1336         (WebCore::SVGSVGElement::getIntersectionList):
1337         (WebCore::SVGSVGElement::getEnclosureList):
1338         (WebCore::SVGSVGElement::checkIntersection):
1339         (WebCore::SVGSVGElement::checkEnclosure):
1340         (WebCore::SVGSVGElement::deselectAll):
1341         (WebCore::SVGSVGElement::createSVGLength):
1342         (WebCore::SVGSVGElement::createSVGAngle):
1343         (WebCore::SVGSVGElement::createSVGMatrix):
1344         (WebCore::SVGSVGElement::createSVGTransform):
1345         (WebCore::SVGSVGElement::createSVGTransformFromMatrix):
1346         (WebCore::SVGSVGElement::getCTM):
1347         (WebCore::SVGSVGElement::getScreenCTM):
1348         (WebCore::SVGSVGElement::setCurrentTime):
1349         * ksvg2/svg/SVGSVGElement.h:
1350         (WebCore::SVGSVGElement::rendererIsNeeded):
1351         * ksvg2/svg/SVGSwitchElement.cpp:
1352         (WebCore::SVGSwitchElement::SVGSwitchElement):
1353         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
1354         * ksvg2/svg/SVGSwitchElement.h:
1355         (WebCore::SVGSwitchElement::rendererIsNeeded):
1356         * ksvg2/svg/SVGSymbolElement.cpp:
1357         (WebCore::SVGSymbolElement::SVGSymbolElement):
1358         (WebCore::SVGSymbolElement::parseMappedAttribute):
1359         * ksvg2/svg/SVGSymbolElement.h:
1360         (WebCore::SVGSymbolElement::shouldAttachChild):
1361         * ksvg2/svg/SVGTitleElement.cpp:
1362         (WebCore::SVGTitleElement::SVGTitleElement):
1363         * ksvg2/svg/SVGTitleElement.h:
1364         * ksvg2/svg/SVGUseElement.cpp:
1365         (WebCore::SVGUseElement::parseMappedAttribute):
1366         (WebCore::SVGUseElement::closeRenderer):
1367         * ksvg2/svg/SVGUseElement.h:
1368         (WebCore::SVGUseElement::rendererIsNeeded):
1369
1370 2006-10-12  Adele Peterson  <adele@apple.com>
1371
1372         Reviewed by Anders.
1373
1374         - Fix for http://bugs.webkit.org/show_bug.cgi?id=11172
1375           REGRESSION (NativeListBox): OPTION text paints over the edge of the select element at http://jobs.apple.com/
1376         
1377          Test: fast/forms/listbox-width-change.html
1378
1379         * rendering/RenderListBox.cpp: (WebCore::RenderListBox::updateFromElement):
1380           When the options change, call setNeedsLayoutAndMinMaxRecalc.
1381
1382 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
1383
1384         Reviewed by Oliver.
1385
1386         - moved a bunch of WebFrameBridge code down to WebCoreFrameBridge, now that it no longer has any WebKit dependencies
1387
1388         * WebCore.xcodeproj/project.pbxproj:
1389         * bridge/mac/WebCoreFrameBridge.h:
1390         * bridge/mac/WebCoreFrameBridge.mm:
1391         (stringByCollapsingNonPrintingCharacters):
1392         (-[WebCoreFrameBridge setTitle:]):
1393         (-[WebCoreFrameBridge didFirstLayout]):
1394         (-[WebCoreFrameBridge notifyIconChanged:]):
1395         (-[WebCoreFrameBridge originalRequestURL]):
1396         (-[WebCoreFrameBridge isLoadTypeReload]):
1397         (-[WebCoreFrameBridge frameDetached]):
1398         (-[WebCoreFrameBridge tokenizerProcessedData]):
1399         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
1400         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
1401         (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
1402         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
1403         (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
1404         (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
1405         (-[WebCoreFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
1406         (-[WebCoreFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1407         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1408         (-[WebCoreFrameBridge incomingReferrer]):
1409         (-[WebCoreFrameBridge isReloading]):
1410         (-[WebCoreFrameBridge handledOnloadEvents]):
1411         (-[WebCoreFrameBridge mainResourceURLResponse]):
1412         (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
1413         * loader/mac/LoaderNSURLExtras.h:
1414         * loader/mac/LoaderNSURLRequestExtras.h: Added.
1415         * loader/mac/LoaderNSURLRequestExtras.m: Added.
1416         (isConditionalRequest):
1417         (setHTTPReferrer):
1418         * loader/mac/WebFrameLoader.mm:
1419         * loader/mac/WebSubresourceLoader.mm:
1420
1421 2006-10-12  Adele Peterson  <adele@apple.com>
1422
1423         RS by Geoff.
1424
1425         Renamed menuListIsDetaching to disconnectMenuList, 
1426         uploadControlDetaching to disconnectUploadControl, and fileChooserDetachingSoon to disconnectFileChooser.  
1427         These names match similar methods in WebCore a little better.
1428
1429         * platform/FileChooser.h:
1430         * platform/PopupMenu.h: (WebCore::PopupMenu::disconnectMenuList):
1431         * platform/mac/FileChooserMac.mm: (-[OpenPanelController disconnectFileChooser]):
1432         (WebCore::FileChooser::disconnectUploadControl):
1433         * platform/win/TemporaryLinkStubs.cpp: (FileChooser::disconnectUploadControl):
1434         * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
1435         * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::~RenderMenuList):
1436
1437 2006-10-12  Adele Peterson  <adele@apple.com>
1438
1439         Reviewed by Maciej.
1440
1441         WebCore part of fix for <rdar://problem/4450613> need a means to attach user data to any menu that is popuped up in HTML
1442
1443         Added private delegate method for clients that want access to a PopupMenu's NSMenu.
1444
1445         * bridge/mac/FrameMac.h:
1446         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::willPopupMenu):
1447         * bridge/mac/WebCoreFrameBridge.h:
1448
1449         * platform/mac/PopupMenuMac.mm: (WebCore::PopupMenu::show): Calls willPopupMenu with the NSMenu about to be popped up.
1450
1451 2006-10-12  Adele Peterson  <adele@apple.com>
1452
1453         Reviewed by Alice.
1454
1455         - Fix for <rdar://problem/4707372> 
1456           After timers fix, crash in -[NSMenu performActionForItemAtIndex:] after moving/detroying active popup menu
1457
1458         * platform/PopupMenu.h: (WebCore::PopupMenu::menuListIsDetaching): Added. Zeros out the pointer to the menu list.
1459         * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::~RenderMenuList): Calls menuListIsDetaching.
1460         * platform/mac/PopupMenuMac.mm: (WebCore::PopupMenu::show): Added a RefPtr to protect the PopupMenu while the NSMenu is up,
1461           in case the RenderMenuList goes away.  Also, checks the pointer to the menu list immediately afterwards.
1462
1463 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
1464
1465         Reviewed by Maciej.
1466
1467         Trying to fix "DRT hangs on certain testcases" like fast/dom/Document/document-reopen.html
1468         document.open(); document.write(..); and NO document.close(). On the Qt platform this
1469         leaves a HTMLDocument which is still in parsing mode (parsing() always returns true).
1470         DRT waits forever, but m_frame->isComplete() is never true due the parsing mode problem.
1471
1472         Hmpf, this took me nine hours to debug today.
1473         Result: Couldn't find the real fix, going for a workaround for now.
1474         
1475         540 minutes, 1 line of code changed after all -> 0,0019 lines per minute.
1476
1477         * platform/qt/FrameQt.cpp:
1478         (WebCore::FrameQt::handledOnloadEvents): Call endIfNotLoading() manually.
1479         * platform/qt/FrameQtClient.cpp:
1480         (WebCore::FrameQtClientDefault::receivedData): Use write() again instead of addData().
1481
1482 2006-10-12  Adam Roben  <aroben@apple.com>
1483
1484         Reviewed by Adele.
1485
1486         Move popup menu code out of rendering/ and into platform/.
1487         RenderPopupMenu becomes PopupMenu, the
1488         RenderPopupMenuMac/RenderPopupMenuWin subclasses and all the associated
1489         virtual methods go away, RenderTheme gets to stop worrying about popup
1490         menus, PopupMenu becomes ref-counted, and everyone becomes happy.
1491
1492         * WebCore.vcproj/WebCore/WebCore.vcproj: Move files within project.
1493         * WebCore.xcodeproj/project.pbxproj: Ditto.
1494         * html/HTMLSelectElement.cpp: Remove unnecessary #include.
1495         * platform/PopupMenu.cpp: Moved from rendering/RenderPopupMenu.cpp.
1496         Also renamed showPopup()/hidePopup() to show()/hide() to disambiguate
1497         from RenderMenuList::showPopup/hidePopup.
1498         (WebCore::PopupMenu::create): New static creation method to hand back a
1499         PassRefPtr<PopupMenu>.
1500         (WebCore::PopupMenu::addItems): This platform-independent method should
1501         be called by PopupMenu::populate when the platform-specific
1502         implementation is ready to receive the menu items. Fixed an ASSERT
1503         while I was at it.
1504         * platform/PopupMenu.h: Moved from rendering/RenderPopupMenu.h. No more
1505         need for virtual methods.
1506         (WebCore::PopupMenu::wasClicked):
1507         (WebCore::PopupMenu::setWasClicked):
1508         (WebCore::PopupMenu::popupHandle):
1509         * platform/mac/PopupMenuMac.mm: Moved from
1510         rendering/RenderPopupMenuMac.mm. Much renaming ensues.
1511         (WebCore::PopupMenu::PopupMenu):
1512         (WebCore::PopupMenu::~PopupMenu):
1513         (WebCore::PopupMenu::clear):
1514         (WebCore::PopupMenu::populate):
1515         (WebCore::PopupMenu::show):
1516         (WebCore::PopupMenu::hide):
1517         (WebCore::PopupMenu::addSeparator):
1518         (WebCore::PopupMenu::addGroupLabel): Since we don't have our own
1519         RenderStyle anymore, just pick up the style from our RenderMenuList.
1520         (WebCore::PopupMenu::addOption): Ditto.
1521         * platform/win/TemporaryLinkStubs.cpp: Rename-fest.
1522         (PopupMenu::PopupMenu):
1523         (PopupMenu::~PopupMenu):
1524         (PopupMenu::clear):
1525         (PopupMenu::populate):
1526         (PopupMenu::show):
1527         (PopupMenu::hide):
1528         (PopupMenu::addSeparator):
1529         (PopupMenu::addGroupLabel):
1530         (PopupMenu::addOption):
1531         * rendering/RenderMenuList.cpp:
1532         (WebCore::RenderMenuList::~RenderMenuList):
1533         (WebCore::RenderMenuList::showPopup): Use nice new simple
1534         PopupMenu::create to make the popup.
1535         (WebCore::RenderMenuList::hidePopup):
1536         * rendering/RenderMenuList.h: Hold a RefPtr<PopupMenu> instead of a
1537         RenderPopupMenu*.
1538         (WebCore::RenderMenuList::popup):
1539         * rendering/RenderPopupMenu.cpp: Removed.
1540         * rendering/RenderPopupMenu.h: Removed.
1541         * rendering/RenderPopupMenuMac.h: Removed.
1542         * rendering/RenderPopupMenuMac.mm: Removed.
1543         * rendering/RenderPopupMenuWin.h: Removed.
1544         * rendering/RenderTheme.cpp: Get rid of createPopupMenu() method.
1545         * rendering/RenderTheme.h: Ditto.
1546         * rendering/RenderThemeMac.h: Ditto.
1547         * rendering/RenderThemeMac.mm: Ditto.
1548         * rendering/RenderThemeWin.cpp: Ditto.
1549         * rendering/RenderThemeWin.h: Ditto.
1550
1551 2006-10-12  Adele Peterson  <adele@apple.com>
1552
1553         Reviewed by Dave Harrison.
1554
1555         - Fixed <rdar://problem/4650813> REGRESSION: typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
1556
1557         * rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout):
1558         Make subtree layouts work for textareas as well as text fields.
1559
1560 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
1561
1562         Reviewed by MacDome.
1563
1564         Finally found a way to remove our begin() trickery in FrameQt.
1565         The (probably misnamed) Frame::setEncoding() function automatically
1566         calls Frame::receivedFirstData() which calls being on the working
1567         url, which has been passed to didOpenUrl(). Took me some hours
1568         to figure out that the missing charset logic, forced us to do hacks.
1569
1570         * platform/ResourceLoader.h:
1571         * platform/ResourceLoaderInternal.h:
1572         * platform/qt/FrameQt.cpp:
1573         (WebCore::FrameQt::tokenizerProcessedData):
1574         * platform/qt/FrameQt.h:
1575         * platform/qt/FrameQtClient.cpp:
1576         (WebCore::FrameQtClientDefault::FrameQtClientDefault):
1577         (WebCore::FrameQtClientDefault::openURL):
1578         (WebCore::FrameQtClientDefault::submitForm):
1579         (WebCore::FrameQtClientDefault::receivedData):
1580         (WebCore::FrameQtClientDefault::receivedAllData):
1581         * platform/qt/FrameQtClient.h:
1582         * platform/qt/ResourceLoaderManager.cpp:
1583         (WebCore::ResourceLoaderManager::slotData):
1584         (WebCore::ResourceLoaderManager::slotMimetype):
1585         (WebCore::ResourceLoaderManager::slotResult):
1586         (WebCore::ResourceLoaderManager::remove):
1587         * platform/qt/ResourceLoaderQt.cpp:
1588         (WebCore::ResourceLoader::retrieveCharset):
1589         (WebCore::ResourceLoader::extractCharsetFromHeaders):
1590
1591 2006-10-12  Adam Roben  <aroben@apple.com>
1592
1593         Reviewed by Hyatt.
1594
1595         Bandaid-ing a null-dereference crash until a real fix is made.
1596
1597         * page/FrameView.cpp:
1598         (WebCore::FrameView::windowClipRect):
1599
1600 2006-10-12  Rob Buis  <buis@kde.org>
1601
1602         Reviewed by Mitz.
1603
1604         http://bugs.webkit.org/show_bug.cgi?id=11217
1605         Cleanup svg coding style
1606
1607         Cleanup coding style in svg text classes.
1608
1609         * ksvg2/svg/SVGTRefElement.cpp:
1610         (WebCore::SVGTRefElement::SVGTRefElement):
1611         (WebCore::SVGTRefElement::updateReferencedText):
1612         (WebCore::SVGTRefElement::parseMappedAttribute):
1613         (WebCore::SVGTRefElement::childShouldCreateRenderer):
1614         (WebCore::SVGTRefElement::createRenderer):
1615         * ksvg2/svg/SVGTRefElement.h:
1616         (WebCore::SVGTRefElement::rendererIsNeeded):
1617         * ksvg2/svg/SVGTSpanElement.cpp:
1618         (WebCore::SVGTSpanElement::SVGTSpanElement):
1619         (WebCore::SVGTSpanElement::childShouldCreateRenderer):
1620         (WebCore::SVGTSpanElement::createRenderer):
1621         * ksvg2/svg/SVGTSpanElement.h:
1622         (WebCore::SVGTSpanElement::rendererIsNeeded):
1623         * ksvg2/svg/SVGTextContentElement.cpp:
1624         (WebCore::SVGTextContentElement::SVGTextContentElement):
1625         (WebCore::SVGTextContentElement::parseMappedAttribute):
1626         * ksvg2/svg/SVGTextContentElement.h:
1627         * ksvg2/svg/SVGTextElement.cpp:
1628         (WebCore::SVGTextElement::SVGTextElement):
1629         (WebCore::SVGTextElement::localMatrix):
1630         (WebCore::SVGTextElement::parseMappedAttribute):
1631         (WebCore::SVGTextElement::updateLocalTransform):
1632         (WebCore::SVGTextElement::nearestViewportElement):
1633         (WebCore::SVGTextElement::farthestViewportElement):
1634         (WebCore::SVGTextElement::getScreenCTM):
1635         (WebCore::SVGTextElement::getCTM):
1636         (WebCore::SVGTextElement::createRenderer):
1637         (WebCore::SVGTextElement::childShouldCreateRenderer):
1638         * ksvg2/svg/SVGTextElement.h:
1639         (WebCore::SVGTextElement::getTransformToElement):
1640         (WebCore::SVGTextElement::rendererIsNeeded):
1641         * ksvg2/svg/SVGTextPositioningElement.cpp:
1642         (WebCore::SVGTextPositioningElement::SVGTextPositioningElement):
1643         (WebCore::SVGTextPositioningElement::parseMappedAttribute):
1644         * ksvg2/svg/SVGTextPositioningElement.h:
1645
1646 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
1647
1648         Reviewed by Maciej.
1649
1650         Specialization of alert() for DumpRenderTree - just log the output, don't show any message box.
1651
1652         * platform/qt/FrameQt.cpp:
1653         (WebCore::FrameQt::runJavaScriptAlert): Move runJavaScriptAlert functionality to FrameQtClientDefault.
1654         * platform/qt/FrameQtClient.cpp:
1655         (WebCore::FrameQtClientDefault::runJavaScriptAlert):
1656         * platform/qt/FrameQtClient.h:
1657
1658 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
1659
1660         Reviewed by Eric.
1661
1662         - move m_responseMIMEType out of ResourceRequest, where it doesn't belong
1663
1664         * page/FramePrivate.h: Add m_responseMIMEType
1665         * page/ResourceRequest.h: Remove m_responseMIMEType
1666         * page/Frame.cpp:
1667         (WebCore::Frame::setResponseMIMEType): added
1668         (WebCore::Frame::responseMIMEType): added
1669         (WebCore::Frame::begin): get MIME type from the right place
1670         (WebCore::Frame::write): ditto
1671         * page/Frame.h:
1672         * bindings/js/kjs_window.cpp:
1673         (KJS::createNewWindow): updated to use new Frame methods
1674         (KJS::WindowFunc::callAsFunction): ditto
1675         * bridge/mac/WebCoreFrameBridge.mm:
1676         (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): ditto
1677         (-[WebCoreFrameBridge canProvideDocumentSource]): ditto
1678         * loader/PluginDocument.cpp:
1679         (WebCore::PluginTokenizer::createDocumentStructure): ditto
1680
1681 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
1682
1683         Reviewed by Eric.
1684         
1685         <rdar://problem/4774321> REGRESSION: "Can't find the server" error page contains unstyled text and missing image
1686
1687         We really need some way to test loadHTMLString since it keeps breaking!
1688         
1689         * loader/mac/WebFrameLoader.mm:
1690         (-[WebFrameLoader commitProvisionalLoad:]): Set stuff up on the proper data source.
1691
1692 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
1693
1694         Reviewed by Eric.
1695
1696         Fix Qt/Linux build.
1697
1698         * CMakeLists.txt:
1699         * platform/qt/FileChooserQt.cpp:
1700         (WebCore::FileChooser::create):
1701
1702 2006-10-12  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
1703
1704         Reviewed by Maciej.
1705
1706         Update Gdk\Linux build for recent changes, based on Qt code
1707
1708         * platform/gdk/FrameGdk.cpp:
1709         (WebCore::FrameGdkClientDefault::FrameGdkClientDefault):
1710         (WebCore::FrameGdkClientDefault::~FrameGdkClientDefault):
1711         (WebCore::FrameGdkClientDefault::setFrame):
1712         (WebCore::FrameGdkClientDefault::openURL):
1713         (WebCore::FrameGdkClientDefault::submitForm):
1714         (WebCore::FrameGdkClientDefault::receivedResponse):
1715         (WebCore::FrameGdkClientDefault::receivedData):
1716         (WebCore::FrameGdkClientDefault::receivedAllData):
1717         (WebCore::FrameGdk::FrameGdk):
1718         (WebCore::FrameGdk::openURL):
1719         (WebCore::FrameGdk::submitForm):
1720         (WebCore::FrameGdk::urlSelected):
1721         * platform/gdk/FrameGdk.h:
1722         * platform/gdk/TemporaryLinkStubs.cpp:
1723         (FrameGdk::createJavaAppletWidget):
1724         (FileChooser::create):
1725
1726 2006-10-12  Dave Hyatt  <hyatt@apple.com>
1727
1728         Patch to add more clipping retrieval functionality for widgets.
1729        
1730         Reviewed by mjs
1731
1732         * page/Frame.h:
1733         Remove windowResizerRect.  This is in the wrong place.
1734         
1735         * page/FrameView.cpp:
1736         (WebCore::FrameView::windowClipRect):
1737         (WebCore::FrameView::windowClipRectForLayer):
1738         Break out windowClipRect into helper functions that can be called separately (to make
1739         it easier for scrollbars in overflow sections and list boxes to get to an enclosing
1740         layer and get the right clip.
1741         
1742         * page/FrameView.h:
1743         Add the new windowClipRect helper methods.
1744         
1745         * platform/ScrollBar.h:
1746         Add a new interface to ScrollbarClient so that scrollbars can hand back proper
1747         clip rects for themselves depending on how they are used.
1748         
1749         * platform/ScrollView.h:
1750         Stub out methods for talking to a double buffer backing store on Win32.
1751         
1752         * platform/Widget.h:
1753         Add the ability to query for invalidation suppression.
1754         
1755         * rendering/RenderLayer.cpp:
1756         (WebCore::RenderLayer::windowClipRect):
1757         (WebCore::RenderLayer::paintOverflowControls):
1758         (WebCore::RenderLayer::calculateRects):
1759         (WebCore::RenderLayer::childrenClipRect):
1760         (WebCore::RenderLayer::selfClipRect):
1761         * rendering/RenderLayer.h:
1762         Enhance layers so that they can return either their foreground or background
1763         document clip rects.  Make sure a layer scrollbar can return a proper clip.
1764         
1765         * rendering/RenderListBox.cpp:
1766         (WebCore::RenderListBox::windowClipRect):
1767         * rendering/RenderListBox.h:
1768         Make sure a list box scrollbar can return a proper clip.
1769         
1770         * rendering/RenderObject.cpp:
1771         (WebCore::RenderObject::enclosingLayer):
1772         * rendering/RenderObject.h:
1773         Make enclosingLayer const.
1774         
1775 2006-10-11  Darin Adler  <darin@apple.com>
1776
1777         Reviewed by John.
1778
1779         - some changes to prepare for converting more code to C++
1780
1781         * bridge/mac/WebCoreFrameBridge.h: Added import of <Cocoa/Cocoa.h> so this header is
1782         self-sufficient.
1783
1784         * bridge/mac/WebCoreViewFactory.h: Added forward declaration of the NSMenu class.
1785         Needed since the class is used in this header (for some work I have not landed yet).
1786
1787         * loader/mac/LoaderNSURLExtras.h:
1788         * loader/mac/WebFormDataStream.h:
1789         Added extern "C" so this code can be used from C++.
1790
1791         * loader/mac/LoaderNSURLExtras.m:
1792         * loader/mac/WebDataProtocol.mm:
1793         * loader/mac/WebDocumentLoader.mm:
1794         * loader/mac/WebFormDataStream.m:
1795         * loader/mac/WebLoader.mm:
1796         * loader/mac/WebMainResourceLoader.mm:
1797         * loader/mac/WebNetscapePlugInStreamLoader.mm:
1798         * loader/mac/WebPolicyDecider.mm:
1799         * loader/mac/WebSubresourceLoader.mm:
1800         Added missing includes of config.h.
1801
1802 2006-10-11  John Sullivan  <sullivan@apple.com>
1803         
1804         Darin wrote this code; we tested it; I give it the thumbs up.
1805         
1806         - fixed regression from svn revision 16982 that was generating the wrong Obj-C classes
1807
1808         The hash table to look up an element class given a QualifiedName was
1809         not working at all.
1810
1811         * dom/QualifiedName.h:
1812         (WebCore::QualifiedName::impl):
1813         Added. This new accessor method for impl is needed if we want to use
1814         a QualifiedName as a hash table key without doing the kind of specialization
1815         we do for String. Maybe later we can do the String thing.
1816
1817         * bindings/objc/DOM.mm:
1818         (WebCore::addElementClass):
1819         Use QualifiedName.impl instead of the QualifiedName pointer itself.
1820         The QualifiedName pointer is *not* unique so almost nothing would be found
1821         in this hash table!
1822         (WebCore::elementClass):
1823         ditto
1824         
1825 2006-10-11  Adam Roben  <aroben@apple.com>
1826
1827         Rubberstamped by Anders.
1828
1829         Clean up FileChooser::create and Icon::newIconForFile.
1830
1831         * WebCore.xcodeproj/project.pbxproj:
1832         * platform/mac/FileChooserMac.mm:
1833         (WebCore::FileChooser::create):
1834         * platform/mac/IconMac.mm:
1835         (WebCore::Icon::newIconForFile):
1836
1837 2006-10-11  Oliver Hunt  <oliver@apple.com>
1838
1839         Reviewed by Adam.
1840
1841         Fix for http://bugs.webkit.org/show_bug.cgi?id=11251
1842         Corrects canvas tag to not throw JS exception when drawing
1843         zero sized rects, arcs, etc
1844
1845         * html/CanvasRenderingContext2D.cpp:
1846         (WebCore::CanvasRenderingContext2D::arcTo):
1847         (WebCore::CanvasRenderingContext2D::arc):
1848         (WebCore::CanvasRenderingContext2D::rect):
1849         (WebCore::CanvasRenderingContext2D::clearRect):
1850         (WebCore::CanvasRenderingContext2D::fillRect):
1851         (WebCore::CanvasRenderingContext2D::strokeRect):
1852
1853 2006-10-11  Rob Buis  <buis@kde.org>
1854
1855         Reviewed by Mitz.
1856
1857         http://bugs.webkit.org/show_bug.cgi?id=11221
1858         REGRESSION: iExploder crash due to style="cursor: url()"
1859
1860         Take better care of empty cursor lists.
1861
1862         Test: fast/css/invalid-cursor-property-crash.html
1863
1864         * css/cssparser.cpp:
1865         (WebCore::CSSParser::parseValue):
1866
1867 2006-10-11  Adam Roben  <aroben@apple.com>
1868
1869         Fixing Windows for real this time.
1870
1871         * platform/win/TemporaryLinkStubs.cpp:
1872         (FileChooser::create):
1873
1874 2006-10-11  Adam Roben  <aroben@apple.com>
1875
1876         Fix Windows build.
1877
1878         * platform/win/TemporaryLinkStubs.cpp:
1879         (FileChooser::create):
1880
1881 2006-10-11  Antti Koivisto  <koivisto@iki.fi>
1882
1883         Reviewed by Hyatt.
1884         
1885         http://bugs.webkit.org/show_bug.cgi?id=4377
1886         
1887         Respect css visibility semantics for layers too
1888
1889         * rendering/RenderContainer.cpp:
1890         (WebCore::RenderContainer::removeChildNode):
1891         (WebCore::RenderContainer::appendChildNode):
1892         (WebCore::RenderContainer::insertChildNode):
1893         * rendering/RenderLayer.cpp:
1894         (WebCore::RenderLayer::RenderLayer):
1895         (WebCore::RenderLayer::updateLayerPositions):
1896         (WebCore::RenderLayer::setHasVisibleContent):
1897         (WebCore::RenderLayer::dirtyVisibleContentStatus):
1898         (WebCore::RenderLayer::childVisibilityChanged):
1899         (WebCore::RenderLayer::dirtyVisibleDescendantStatus):
1900         (WebCore::RenderLayer::updateVisibilityStatus):
1901         (WebCore::RenderLayer::addChild):
1902         (WebCore::RenderLayer::removeChild):
1903         (WebCore::RenderLayer::updateZOrderLists):
1904         (WebCore::RenderLayer::collectLayers):
1905         * rendering/RenderLayer.h:
1906         (WebCore::RenderLayer::hasVisibleContent):
1907         * rendering/RenderObject.cpp:
1908         (WebCore::RenderObject::setStyle):
1909
1910 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
1911
1912         Reviewed by Oliver.
1913
1914         - added RetainPtr, smart pointer for refcounted ObjC objects and CFTypes
1915
1916         * WebCore.xcodeproj/project.pbxproj:
1917         * platform/cf/RetainPtr.h: Added.
1918         (WTF::):
1919         (WTF::RetainPtr::RetainPtr):
1920         (WTF::RetainPtr::~RetainPtr):
1921         (WTF::RetainPtr::get):
1922         (WTF::RetainPtr::operator*):
1923         (WTF::RetainPtr::operator->):
1924         (WTF::RetainPtr::operator!):
1925         (WTF::RetainPtr::operator UnspecifiedBoolType):
1926         (WTF::::operator):
1927         (WTF::::swap):
1928         (WTF::swap):
1929         (WTF::operator==):
1930         (WTF::operator!=):
1931         (WTF::static_pointer_cast):
1932         (WTF::const_pointer_cast):
1933         (WTF::getPtr):
1934         
1935         - use it in WidgetMac so it gets tested in at least one place
1936         
1937         * platform/mac/WidgetMac.mm:
1938         (WebCore::Widget::Widget):
1939         (WebCore::Widget::~Widget):
1940         (WebCore::Widget::setEnabled):
1941         (WebCore::Widget::isEnabled):
1942         (WebCore::Widget::setCursor):
1943         (WebCore::Widget::getView):
1944         (WebCore::Widget::setView):
1945         (WebCore::Widget::getOuterView):
1946
1947 2006-10-10  Brady Eidson  <beidson@apple.com>
1948
1949         Reviewed by Maciej.
1950
1951         Moved WebFrameLoader from WebFrameBridge into WebCoreFrameBridge
1952
1953         * bridge/mac/WebCoreFrameBridge.h:
1954         * bridge/mac/WebCoreFrameBridge.mm:
1955         (-[WebCoreFrameBridge initMainFrameWithPage:]):
1956         (-[WebCoreFrameBridge initSubframeWithOwnerElement:]):
1957         (-[WebCoreFrameBridge dealloc]):
1958         (-[WebCoreFrameBridge close]):
1959         (-[WebCoreFrameBridge setFrameLoaderClient:]):
1960         (-[WebCoreFrameBridge frameLoader]):
1961         * loader/mac/WebFrameLoader.h:
1962         * loader/mac/WebFrameLoader.mm:
1963         (-[WebFrameLoader initWithFrameBridge:]):
1964         (-[WebFrameLoader setFrameLoaderClient:]):
1965
1966 2006-10-10  Adam Roben  <aroben@apple.com>
1967
1968         Reviewed by Oliver.
1969
1970         Make FileChooser ref-counted.
1971
1972         * platform/FileChooser.h:
1973         * platform/mac/FileChooserMac.mm:
1974         (WebCore::FileChooser::create):
1975         * rendering/RenderFileUploadControl.cpp:
1976         (WebCore::RenderFileUploadControl::RenderFileUploadControl):
1977         (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
1978         * rendering/RenderFileUploadControl.h:
1979
1980 2006-10-10  Sam Weinig  <sam.weinig@gmail.com>
1981
1982         Reviewed by Tim H.
1983
1984         Patch for http://bugs.webkit.org/show_bug.cgi?id=11248
1985         Even More auto-generated Objective-C DOM bindings changes
1986
1987         - Auto-generate DOMSVGPathElement.
1988
1989         - Auto-generate the internal interfaces even for classes that have
1990           custom internal implementations.  Change IDL property from ObjCNoInternal
1991           to ObjCCustomInternalImpl to indicate the change.
1992
1993         - Add SVG classes to DOMNode and DOMEvent internal interfaces.
1994
1995         - Add isSVGZoomEvent() method to Event class to match other Event subclasses
1996           and make DOM binding possible.
1997
1998         - Assorted cleanups.
1999
2000         * DerivedSources.make:
2001         * WebCore.xcodeproj/project.pbxproj:
2002         * bindings/objc/DOM.mm:
2003         (WebCore::addElementClass):
2004         (WebCore::createElementClassMap):
2005         (WebCore::elementClass):
2006         (-[DOMNode description]):
2007         (+[DOMNode _nodeWith:WebCore::]):
2008         (-[DOMNode addEventListener:listener:useCapture:]):
2009         (-[DOMNode removeEventListener:listener:useCapture:]):
2010         (-[DOMElement _NPObject]):
2011         (WebCore::ObjCEventListener::handleEvent):
2012         * bindings/objc/DOMEvents.mm:
2013         (+[DOMEvent _eventWith:WebCore::]):
2014         * bindings/objc/DOMInternal.h:
2015         * bindings/objc/DOMRGBColor.mm:
2016         (-[DOMRGBColor WebCore::]):
2017         * bindings/objc/DOMSVGPathSegInternal.h: Removed.
2018         * bindings/scripts/CodeGeneratorObjC.pm:
2019         * css/CSSRule.idl:
2020         * css/CSSValue.idl:
2021         * css/StyleSheet.idl:
2022         * dom/Event.cpp:
2023         (WebCore::Event::isSVGZoomEvent):
2024         * dom/Event.h:
2025         * dom/Event.idl:
2026         * dom/Node.idl:
2027         * ksvg2/events/SVGZoomEvent.cpp:
2028         (WebCore::SVGZoomEvent::isSVGZoomEvent):
2029         * ksvg2/events/SVGZoomEvent.h:
2030         * ksvg2/svg/SVGAnimatedAngle.idl:
2031         * ksvg2/svg/SVGCircleElement.idl:
2032         * ksvg2/svg/SVGClipPathElement.idl:
2033         * ksvg2/svg/SVGPathElement.idl:
2034         * ksvg2/svg/SVGPathSeg.idl:
2035
2036 2006-10-10  Oliver Hunt  <oliver@apple.com>
2037
2038         rubber stamped by Anders.
2039
2040         More buildbot bustage
2041
2042         * kcanvas/SVGInlineFlowBox.cpp:
2043         (WebCore::placeBoxesVerticallyWithAbsBaseline):
2044
2045 2006-10-10  Oliver Hunt  <oliver@apple.com>
2046
2047         Reviewed by Anders 
2048
2049         Unbreak build bots
2050
2051         * dom/Text.cpp:
2052         * kcanvas/RenderSVGText.cpp:
2053         (WebCore::RenderSVGText::layout):
2054         * kcanvas/SVGInlineFlowBox.cpp:
2055         (WebCore::placePositionedBoxesHorizontally):
2056         (WebCore::placeBoxesVerticallyWithAbsBaseline):
2057
2058 2006-10-10  Oliver Hunt  <oliver@apple.com>
2059
2060         Reviewed by hyatt.
2061
2062         Fixes bugs #6423, #6559, #10380 and #10839 
2063
2064         * WebCore.xcodeproj/project.pbxproj:
2065         * css/svg.css:
2066         * dom/Text.cpp:
2067         (WebCore::Text::createRenderer):
2068         * kcanvas/RenderSVGInline.cpp: Added.
2069         (WebCore::RenderSVGInline::RenderSVGInline):
2070         (WebCore::RenderSVGInline::createInlineBox):
2071         * kcanvas/RenderSVGInline.h: Added.
2072         (WebCore::RenderSVGInline::renderName):
2073         (WebCore::RenderSVGInline::requiresLayer):
2074         * kcanvas/RenderSVGInlineText.cpp: Added.
2075         (WebCore::RenderSVGInlineText::RenderSVGInlineText):
2076         (WebCore::RenderSVGInlineText::absoluteRects):
2077         (WebCore::RenderSVGInlineText::selectionRect):
2078         * kcanvas/RenderSVGInlineText.h: Added.
2079         (WebCore::RenderSVGInlineText::renderName):
2080         (WebCore::RenderSVGInlineText::requiresLayer):
2081         * kcanvas/RenderSVGTSpan.cpp: Added.
2082         (WebCore::RenderSVGTSpan::RenderSVGTSpan):
2083         (WebCore::RenderSVGTSpan::absoluteRects):
2084         * kcanvas/RenderSVGTSpan.h: Added.
2085         (WebCore::RenderSVGTSpan::renderName):
2086         * kcanvas/RenderSVGText.cpp:
2087         (WebCore::RenderSVGText::RenderSVGText):
2088         (WebCore::RenderSVGText::computeAbsoluteRepaintRect):
2089         (WebCore::RenderSVGText::layout):
2090         (WebCore::RenderSVGText::createInlineBox):
2091         (WebCore::RenderSVGText::nodeAtPoint):
2092         (WebCore::RenderSVGText::absoluteRects):
2093         (WebCore::RenderSVGText::paint):
2094         (WebCore::RenderSVGText::relativeBBox):
2095         * kcanvas/RenderSVGText.h:
2096         (WebCore::RenderSVGText::renderName):
2097         * kcanvas/SVGInlineFlowBox.cpp: Added.
2098         (WebCore::SVGInlineFlowBox::paint):
2099         (WebCore::SVGInlineFlowBox::placeBoxesHorizontally):
2100         (WebCore::SVGInlineFlowBox::verticallyAlignBoxes):
2101         (WebCore::paintSVGInlineFlow):
2102         (WebCore::translateBox):
2103         (WebCore::placePositionedBoxesHorizontally):
2104         (WebCore::placeSVGFlowHorizontally):
2105         (WebCore::placeBoxesVerticallyWithAbsBaseline):
2106         (WebCore::placeSVGFlowVertically):
2107         * kcanvas/SVGInlineFlowBox.h: Added.
2108         (WebCore::SVGInlineFlowBox::SVGInlineFlowBox):
2109         * kcanvas/SVGRootInlineBox.cpp: Added.
2110         (WebCore::SVGRootInlineBox::paint):
2111         (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
2112         (WebCore::SVGRootInlineBox::verticallyAlignBoxes):
2113         * kcanvas/SVGRootInlineBox.h: Added.
2114         (WebCore::SVGRootInlineBox::SVGRootInlineBox):
2115         * ksvg2/svg/SVGTRefElement.cpp:
2116         (SVGTRefElement::createRenderer):
2117         * ksvg2/svg/SVGTSpanElement.cpp:
2118         (SVGTSpanElement::createRenderer):
2119         * rendering/InlineFlowBox.h:
2120
2121 2006-10-10  Adam Roben  <aroben@apple.com>
2122
2123         Reviewed by Adele.
2124
2125         Improve popup menu behavior.
2126
2127         * html/HTMLSelectElement.cpp:
2128         (WebCore::HTMLSelectElement::HTMLSelectElement): Cache
2129         m_lastOnChangeIndex so we know when to fire onChange.
2130         (WebCore::HTMLSelectElement::setSelectedIndex): Added parameter to
2131         specify whether we should fire onChange.
2132         (WebCore::HTMLSelectElement::dispatchBlurEvent): Fire onChange on blur.
2133         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Fire
2134         onChange when using the Enter key to change the selection.
2135         * html/HTMLSelectElement.h:
2136         * rendering/RenderMenuList.cpp:
2137         (WebCore::RenderMenuList::updateFromElement): Extract setText logic
2138         into its own method.
2139         (WebCore::RenderMenuList::setTextFromOption): New method.
2140         (WebCore::RenderMenuList::valueChanged): Let setSelectedIndex call
2141         onChange instead of calling it directly here.
2142         * rendering/RenderMenuList.h:
2143
2144 2006-10-10  Adele Peterson  <adele@apple.com>
2145
2146         Reviewed by Beth. 
2147
2148
2149         - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type=text>
2150           and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
2151
2152         Moved autoscroll code to the Frame class
2153
2154         * bridge/mac/FrameMac.h: Moved _mouseDownMayStartDrag and _mouseDownMayStartAutoscroll flags to the frame.
2155         * bridge/mac/FrameMac.mm: Use new getters and setters for drag and autoscroll flags.  Moved autoscroll code to Frame::handleMouseMoveEvent.
2156         (WebCore::FrameMac::FrameMac):
2157         (WebCore::FrameMac::handleMousePressEvent):
2158         (WebCore::FrameMac::eventMayStartDrag):
2159         (WebCore::FrameMac::handleMouseMoveEvent):
2160         (WebCore::FrameMac::mouseDown):
2161
2162         * bridge/mac/WebCoreFrameBridge.h: Removed handleAutoscrollForMouseDragged, which called over the bridge for AppKit to do autoscroll for us.
2163         Now we scroll our views in WebCore.
2164
2165         * page/Frame.cpp:
2166         (WebCore::Frame::handleMousePressEvent): Initialize the mouseDownMayStartAutoscroll flag.
2167         (WebCore::Frame::handleMouseMoveEvent): Now kicks off autoscroll if appropriate.  Moved from FrameMac.
2168         (WebCore::Frame::updateSelectionForMouseDragOverPosition): Factored code out from handleMouseMoveEvent so we can update the selection from autoscroll too.
2169         (WebCore::Frame::mouseDownMayStartAutoscroll): Added.
2170         (WebCore::Frame::setMouseDownMayStartAutoscroll): Added.
2171         (WebCore::Frame::mouseDownMayStartDrag): Added.
2172         (WebCore::Frame::setMouseDownMayStartDrag): Added.
2173         (WebCore::Frame::autoscrollRenderer): Added
2174         (WebCore::Frame::setAutoscrollRenderer): Added.
2175         (WebCore::Frame::handleAutoscroll): Updated to use autoscrollRenderer getter and setter.
2176         (WebCore::Frame::autoscrollTimerFired): ditto.
2177         (WebCore::Frame::stopAutoscrollTimer): ditto. 
2178         * page/Frame.h: Made autoscrollRenderer and stopAutoscrollTimer public, so the renderer being autoscrolled can kill the timer when it dies.
2179
2180         * page/FramePrivate.h:
2181         (WebCore::FramePrivate::FramePrivate): Added mouseDownMayStartDrag and mouseDownMayStartAutoscroll flags.  Moved from FrameMac.
2182
2183         * page/FrameView.cpp: Store the current mouse position in window coordinates.  The callers can convert to their own coordinate space.
2184         (WebCore::FrameView::handleMousePressEvent):
2185         (WebCore::FrameView::handleMouseDoubleClickEvent):
2186         (WebCore::FrameView::handleMouseMoveEvent):
2187         (WebCore::FrameView::handleMouseReleaseEvent):
2188
2189         * rendering/RenderLayer.cpp:
2190         (WebCore::RenderLayer::autoscroll): Rewrote this to scroll recursively, and to scroll based on the mouse position (not the selection).  
2191          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.
2192
2193         * rendering/RenderListBox.cpp:
2194         (WebCore::RenderListBox::autoscroll): Convert the mouse coordinates to the right space.
2195
2196         * rendering/RenderObject.cpp:
2197         (WebCore::RenderObject::shouldAutoscroll): Also return true if the renderer is a root (so we know to autoscroll views too)
2198         (WebCore::RenderObject::destroy): If this renderer is being autoscrolled, stop the frame's autoscroll timer.
2199
2200 2006-10-10  Darin Adler  <darin@apple.com>
2201
2202         Rubber stamped by Maciej.
2203
2204         - convert many of the loader source files to Objective-C++ to prepare
2205           to convert some of them to C++
2206
2207         * WebCore.xcodeproj/project.pbxproj:
2208         * loader/mac/WebDataProtocol.m: Removed.
2209         * loader/mac/WebDocumentLoader.m: Removed.
2210         * loader/mac/WebFormState.m: Removed.
2211         * loader/mac/WebFrameLoader.m: Removed.
2212         * loader/mac/WebLoader.m: Removed.
2213         * loader/mac/WebMainResourceLoader.m: Removed.
2214         * loader/mac/WebNetscapePlugInStreamLoader.m: Removed.
2215         * loader/mac/WebPolicyDecider.m: Removed.
2216         * loader/mac/WebSubresourceLoader.m: Removed.
2217         * loader/mac/WebDataProtocol.mm: Added.
2218         * loader/mac/WebDocumentLoader.mm: Added.
2219         * loader/mac/WebFormState.mm: Added.
2220         * loader/mac/WebFrameLoader.mm: Added.
2221         * loader/mac/WebLoader.mm: Added.
2222         * loader/mac/WebMainResourceLoader.mm: Added.
2223         * loader/mac/WebNetscapePlugInStreamLoader.mm: Added.
2224         * loader/mac/WebPolicyDecider.mm: Added.
2225         * loader/mac/WebSubresourceLoader.mm: Added.
2226
2227 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
2228
2229         Reviewed by Mitz.
2230
2231         - fixed REGRESSION (r16960): crash on navigating to site
2232         http://www.zoominfo.com/Search/CompanyDetail.aspx?CompanyID=62948057&cs=QGDwILZIE
2233         
2234         * loader/mac/WebFrameLoader.m:
2235         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
2236         Add back a mistakenly removed retain.
2237
2238 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
2239
2240         Not reviewed, build fix.
2241
2242         - fixed release build
2243
2244         * WebCore.xcodeproj/project.pbxproj:
2245
2246 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
2247
2248         Rubber stamped by Eric.
2249
2250         - moved a big honkin' pile of code over from WebKit; made minimal needed changes to compile
2251
2252         * WebCore.exp:
2253         * WebCore.xcodeproj/project.pbxproj:
2254         * loader/mac/LoaderNSURLExtras.m: Added.
2255         * loader/mac/WebDataProtocol.m: Added.
2256         * loader/mac/WebDocumentLoader.m: Added.
2257         * loader/mac/WebFormDataStream.m: Added.
2258         * loader/mac/WebFrameLoader.m: Added.
2259         * loader/mac/WebLoader.m: Added.
2260         (-[NSURLProtocol didReceiveResponse:]):
2261         (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
2262         * loader/mac/WebMainResourceLoader.m: Added.
2263         (-[WebMainResourceLoader didReceiveResponse:]):
2264         * loader/mac/WebPolicyDecider.m: Added.
2265         * loader/mac/WebSubresourceLoader.h: Added.
2266         * loader/mac/WebSubresourceLoader.m: Added.
2267
2268 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
2269
2270         Reviewed by Oliver (sort of?)
2271
2272         - WebCore part of moving down NSURL extras
2273
2274         * WebCore.exp:
2275         * platform/mac/WebCoreSystemInterface.h:
2276         * platform/mac/WebCoreSystemInterface.mm:
2277
2278 2006-10-09  Rob Buis  <buis@kde.org>
2279
2280         Reviewed by Mitz.
2281
2282         http://bugs.webkit.org/show_bug.cgi?id=11217
2283         Cleanup svg coding style
2284
2285         Cleanup coding style in svg animation classes.
2286
2287         * ksvg2/svg/SVGAnimateColorElement.cpp:
2288         (WebCore::SVGAnimateColorElement::handleTimerEvent):
2289         * ksvg2/svg/SVGAnimateElement.cpp:
2290         (WebCore::SVGAnimateElement::SVGAnimateElement):
2291         (WebCore::SVGAnimateElement::handleTimerEvent):
2292         * ksvg2/svg/SVGAnimateTransformElement.cpp:
2293         (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
2294         (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
2295         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
2296         (WebCore::SVGAnimateTransformElement::parseTransformValue):
2297         (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
2298         (WebCore::SVGAnimateTransformElement::initialMatrix):
2299         (WebCore::SVGAnimateTransformElement::transformMatrix):
2300         * ksvg2/svg/SVGAnimateTransformElement.h:
2301         * ksvg2/svg/SVGAnimatedPathData.cpp:
2302         * ksvg2/svg/SVGAnimatedPathData.h:
2303         * ksvg2/svg/SVGAnimatedPoints.cpp:
2304         * ksvg2/svg/SVGAnimatedPoints.h:
2305         * ksvg2/svg/SVGAnimationElement.cpp:
2306         (WebCore::SVGAnimationElement::targetElement):
2307
2308 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
2309
2310         Reviewed by Oliver.
2311
2312         - added isMainFrame and frameLoader to WebCoreFrameBridge for ease of future code motion
2313
2314         * bridge/mac/WebCoreFrameBridge.h:
2315         * bridge/mac/WebCoreFrameBridge.mm:
2316         (-[WebCoreFrameBridge isMainFrame]):
2317
2318 2006-10-09  Adam Roben  <aroben@apple.com>
2319
2320         Backing out accidental commit.
2321
2322         * page/Frame.cpp:
2323         (WebCore::Frame::finishedParsing):
2324
2325 2006-10-09  Adam Roben  <aroben@apple.com>
2326
2327         Reviewed by Darin.
2328
2329         Add ASSERTs to RefPtr to make sure we don't ref within a destructor, as
2330         this could cause recursive calls to the destructor. RefPtr now also
2331         inherits from Noncopyable.
2332
2333         * dom/NodeFilter.h:
2334         * dom/Traversal.h:
2335         * page/DOMWindow.h:
2336         * page/Frame.cpp:
2337         (WebCore::Frame::finishedParsing):
2338         * page/Frame.h:
2339         * page/Plugin.h:
2340         * platform/FontFallbackList.h:
2341         * platform/Icon.h:
2342         * platform/Shared.h:
2343         (WebCore::Shared::Shared):
2344         (WebCore::Shared::ref):
2345         (WebCore::Shared::deref):
2346         (WebCore::Shared::hasOneRef):
2347         (WebCore::Shared::refCount):
2348         * platform/StringImpl.h:
2349
2350 2006-10-09  Oliver Hunt <ohunt@apple.com>
2351
2352         Reviewed by Anders.
2353
2354         Correcting ifdef's
2355
2356         * html/CanvasGradient.cpp:
2357         (WebCore::CanvasGradient::CanvasGradient):
2358         (WebCore::CanvasGradient::~CanvasGradient):
2359         (WebCore::CanvasGradient::addColorStop):
2360         * html/CanvasGradient.h:
2361         * html/CanvasPattern.cpp:
2362         (WebCore::CanvasPattern::CanvasPattern):
2363         (WebCore::CanvasPattern::~CanvasPattern):
2364         * html/CanvasPattern.h:
2365         * html/CanvasRenderingContext2D.cpp:
2366         (WebCore::CanvasRenderingContext2D::fill):
2367         (WebCore::CanvasRenderingContext2D::stroke):
2368         (WebCore::CanvasRenderingContext2D::fillRect):
2369         (WebCore::CanvasRenderingContext2D::setShadow):
2370         (WebCore::CanvasRenderingContext2D::applyShadow):
2371         (WebCore::CanvasRenderingContext2D::drawImage):
2372         (WebCore::CanvasRenderingContext2D::createPattern):
2373         (WebCore::CanvasRenderingContext2D::applyStrokePattern):
2374         (WebCore::CanvasRenderingContext2D::applyFillPattern):
2375         * html/CanvasRenderingContext2D.h:
2376         * html/CanvasStyle.cpp:
2377         (WebCore::CanvasStyle::applyStrokeColor):
2378         (WebCore::CanvasStyle::applyFillColor):
2379         * html/HTMLCanvasElement.cpp:
2380         (WebCore::HTMLCanvasElement::paint):
2381         (WebCore::HTMLCanvasElement::createDrawingContext):
2382         * html/HTMLCanvasElement.h:
2383
2384 2006-10-09  Adam Roben  <aroben@apple.com>
2385
2386         Reviewed by Maciej.
2387
2388         Fix a possible recursive destructor call.
2389
2390         * page/Frame.cpp:
2391         (WebCore::Frame::~Frame): Add a FIXME about cleaning up the destructor.
2392         (WebCore::Frame::finishedParsing): Don't create a protector RefPtr if
2393         we're already being destroyed.
2394
2395 2006-10-09  Sam Weinig  <sam.weinig@gmail.com>
2396
2397         Reviewed by Tim H.
2398
2399         Patch for http://bugs.webkit.org/show_bug.cgi?id=11234
2400         Assorted Objective-C bindings changes
2401
2402         - Auto-generate DOMSVGPathSegArcAbs, DOMSVGPathSegArcRel, DOMSVGPathSegClosePath, 
2403           DOMSVGPathSegCurvetoCubicAbs, DOMSVGPathSegCurvetoCubicRel, 
2404           DOMSVGPathSegCurvetoCubicSmoothAbs, DOMSVGPathSegCurvetoCubicSmoothRel, 
2405           DOMSVGPathSegCurvetoQuadraticAbs, DOMSVGPathSegCurvetoQuadraticRel, 
2406           DOMSVGPathSegCurvetoQuadraticSmoothAbs, DOMSVGPathSegCurvetoQuadraticSmoothRel, 
2407           DOMSVGPathSegLinetoAbs, DOMSVGPathSegLinetoHorizontalAbs, 
2408           DOMSVGPathSegLinetoHorizontalRel, DOMSVGPathSegLinetoRel, 
2409           DOMSVGPathSegLinetoVerticalAbs, DOMSVGPathSegLinetoVerticalRel, 
2410           DOMSVGPathSegMovetoAbs, DOMSVGPathSegMovetoRel and DOMSVGSVGElement.
2411
2412         - Auto-generate absoluteImageURL method for DOMHTMLInputElement and
2413           DOMHTMLObjectElement.
2414
2415         - Auto-generate the internal methods for classes with ivars (notably 
2416           DOMNodeIterator and DOMTreeWalker)
2417
2418         - Put more methods in the WebCore namespace and factor out the  
2419           displayString method into DOMInternal.h as done by Darin in his 
2420           patch for http://bugs.webkit.org/show_bug.cgi?id=11219.
2421
2422         * DerivedSources.make:
2423         * WebCore.xcodeproj/project.pbxproj:
2424         * bindings/objc/DOM.mm:
2425         (-[DOMNode _initWithNode:WebCore::]):
2426         (+[DOMNode _nodeWith:WebCore::]):
2427         (-[DOMNode addEventListener:listener:useCapture:]):
2428         (-[DOMNode removeEventListener:listener:useCapture:]):
2429         (-[DOMNode dispatchEvent:]):
2430         (-[DOMElement _imageTIFFRepresentation]):
2431         (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
2432         (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
2433         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
2434         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
2435         * bindings/objc/DOMCSS.mm:
2436         (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
2437         (+[DOMStyleSheet _styleSheetWith:WebCore::]):
2438         (-[DOMCSSRule _initWithCSSRule:WebCore::]):
2439         (+[DOMCSSRule _CSSRuleWith:WebCore::]):
2440         (-[DOMCSSValue _initWithCSSValue:WebCore::]):
2441         (+[DOMCSSValue _CSSValueWith:WebCore::]):
2442         * bindings/objc/DOMEvents.mm:
2443         (-[DOMEvent _initWithEvent:WebCore::]):
2444         (+[DOMEvent _eventWith:WebCore::]):
2445         * bindings/objc/DOMExtensions.h:
2446         * bindings/objc/DOMHTML.mm:
2447         (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
2448         * bindings/objc/DOMInternal.h:
2449         (-[DOMNodeFilter WebCore::]):
2450         * bindings/objc/DOMInternal.mm:
2451         (-[WebScriptObject _init]):
2452         (-[WebScriptObject _initializeScriptDOMNodeImp]):
2453         (WebCore::displayString):
2454         * bindings/objc/DOMObject.mm:
2455         (-[DOMObject dealloc]):
2456         (-[DOMObject finalize]):
2457         * bindings/objc/DOMRGBColor.mm:
2458         (-[DOMRGBColor dealloc]):
2459         (-[DOMRGBColor finalize]):
2460         (-[DOMRGBColor color]):
2461         (-[DOMRGBColor _initWithRGB:WebCore::]):
2462         (+[DOMRGBColor _RGBColorWithRGB:WebCore::]):
2463         * bindings/objc/DOMSVG.h:
2464         * bindings/objc/DOMSVGPathSegInternal.h: Added.
2465         * bindings/objc/DOMSVGPathSegInternal.mm: Added.
2466         (-[DOMSVGPathSeg WebCore::]):
2467         (-[DOMSVGPathSeg _initWithSVGPathSeg:WebCore::]):
2468         (+[DOMSVGPathSeg _SVGPathSegWith:WebCore::]):
2469         * bindings/objc/DOMXPath.mm:
2470         (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
2471         (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
2472         * bindings/objc/PublicDOMInterfaces.h:
2473         * bindings/scripts/CodeGeneratorObjC.pm:
2474         * dom/NodeIterator.idl:
2475         * dom/TreeWalker.idl:
2476         * html/HTMLInputElement.idl:
2477         * html/HTMLObjectElement.idl:
2478         * ksvg2/svg/SVGDocument.idl:
2479         * ksvg2/svg/SVGElement.idl:
2480         * ksvg2/svg/SVGPathSeg.idl:
2481         * ksvg2/svg/SVGPathSegArcAbs.idl:
2482         * ksvg2/svg/SVGPathSegArcRel.idl:
2483         * ksvg2/svg/SVGPathSegClosePath.idl:
2484         * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl:
2485         * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl:
2486         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
2487         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl:
2488         * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl:
2489         * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl:
2490         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
2491         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
2492         * ksvg2/svg/SVGPathSegLinetoAbs.idl:
2493         * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl:
2494         * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl:
2495         * ksvg2/svg/SVGPathSegLinetoRel.idl:
2496         * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl:
2497         * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl:
2498         * ksvg2/svg/SVGPathSegMovetoAbs.idl:
2499         * ksvg2/svg/SVGPathSegMovetoRel.idl:
2500
2501 2006-10-09  Don Gibson  <dgibson77@gmail.com>
2502
2503         Unreviewed build fix.
2504
2505         Fix windows build bustage.
2506
2507         * platform/win/TemporaryLinkStubs.cpp:
2508
2509 2006-10-09  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
2510
2511         Reviewed by Geoff.
2512
2513         Fix memory leaks discovered via valgrind. Gdk build fixes.
2514
2515         * Projects/gdk/webcore-gdk.bkl:
2516         * make-generated-sources.sh:
2517         * platform/cairo/ImageCairo.cpp:
2518         (WebCore::Image::draw):
2519         * platform/gdk/FrameGdk.cpp:
2520         (WebCore::FrameGdk::handleGdkEvent):
2521         * platform/gdk/FrameGdk.h:
2522         * platform/gdk/PlatformScrollBar.h:
2523         (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
2524         (WebCore::PlatformScrollbar::verticalScrollbarWidth):
2525
2526 2006-10-09  Nikolas Zimmermann  <zimmermann@kde.org>
2527
2528         Reviewed by Beth.
2529
2530         Fix LayoutTests/fast/css/case-transform.html with Qt - the last crashing layout test.
2531
2532         * platform/qt/GlyphMapQt.cpp: Handle UTF-16 characters properly
2533         (WebCore::GlyphMap::fillPage):
2534
2535 2006-10-09  Nikolas Zimmermann  <zimmermann@kde.org>
2536
2537         Unreviewed build fix.
2538
2539         Fix for Qt/Linux build, based on fixes to the Win32 build in r16928 and r16929.
2540
2541         * platform/qt/FrameQt.cpp:
2542         (WebCore::FrameQt::createJavaAppletWidget):
2543         * platform/qt/FrameQt.h:
2544         * platform/qt/TemporaryLinkStubs.cpp:
2545
2546 2006-10-09  Brady Eidson  <beidson@apple.com>
2547
2548         Reviewed by Maciej
2549
2550         Tiny changes to help reorganize WebFrameLoader code in WebKit
2551
2552         * bridge/mac/WebCoreIconDatabaseBridge.h: Added "createInstance"
2553         * bridge/mac/WebCoreIconDatabaseBridge.mm:
2554         (+[WebCoreIconDatabaseBridge sharedInstance]): Added, uses createInstance from WebKit side
2555
2556 2006-10-09  Adam Roben  <aroben@apple.com>
2557
2558         Reviewed by Adele.
2559
2560         Remove redundant call to Frame::cancelAndClear from ~Frame, since it's
2561         already called frome ~FrameMac.
2562
2563         * page/Frame.cpp:
2564         (WebCore::Frame::~Frame):
2565
2566 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
2567
2568         * bridge/win/FrameWin.h:
2569         Add function declaration.
2570         
2571 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
2572
2573         * platform/win/TemporaryLinkStubs.cpp:
2574         (FrameWin::createJavaAppletWidget):
2575         Try fixing the Win32 build.
2576
2577 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
2578
2579         Reviewed by Adam.
2580
2581         Move applet widget creation to Frame and get rid of JavaAppletWidget.
2582         * WebCore.xcodeproj/project.pbxproj:
2583         * bridge/JavaAppletWidget.h: Removed.
2584         * bridge/mac/FrameMac.h:
2585         * bridge/mac/FrameMac.mm:
2586         (WebCore::FrameMac::createJavaAppletWidget):
2587         * bridge/mac/JavaAppletWidget.mm: Removed.
2588         * page/Frame.h:
2589         * rendering/RenderApplet.cpp:
2590         (WebCore::RenderApplet::createWidgetIfNecessary):
2591
2592 2006-10-09  Mitz Pettel  <mitz@webkit.org>
2593
2594         Reviewed by Darin.
2595
2596         - http://bugs.webkit.org/show_bug.cgi?id=11220
2597           Fix manual test for http://bugs.webkit.org/show_bug.cgi?id=8276
2598
2599         Subversion does not support resource forks and HFS metadata, so
2600         the resources for this test need to be on a disk image.
2601
2602         * manual-tests/plain-text-paste.html: Changed instructions to refer to the disk image.
2603         * manual-tests/resources/plain-text-paste.dmg: Added.
2604         * manual-tests/resources/plain-text-paste/._1.textClipping: Removed.
2605         * manual-tests/resources/plain-text-paste/._2.textClipping: Removed.
2606         * manual-tests/resources/plain-text-paste/._4.txt: Removed.
2607         * manual-tests/resources/plain-text-paste/._5.webloc: Removed.
2608         * manual-tests/resources/plain-text-paste/1.textClipping: Removed.
2609         * manual-tests/resources/plain-text-paste/2.textClipping: Removed.
2610         * manual-tests/resources/plain-text-paste/3.gif: Removed.
2611         * manual-tests/resources/plain-text-paste/4.txt: Removed.
2612         * manual-tests/resources/plain-text-paste/5.webloc: Removed.
2613
2614 2006-10-09  Rob Buis  <buis@kde.org>
2615
2616         Reviewed by Darin.
2617
2618         http://bugs.webkit.org/show_bug.cgi?id=11217
2619         Cleanup svg coding style
2620
2621         Cleanup coding style in filter classes.
2622
2623         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
2624         (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
2625         (WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute):
2626         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
2627         * ksvg2/svg/SVGFEBlendElement.cpp:
2628         (WebCore::SVGFEBlendElement::SVGFEBlendElement):
2629         (WebCore::SVGFEBlendElement::parseMappedAttribute):
2630         (WebCore::SVGFEBlendElement::filterEffect):
2631         * ksvg2/svg/SVGFEBlendElement.h:
2632         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
2633         (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
2634         (WebCore::SVGFEColorMatrixElement::parseMappedAttribute):
2635         (WebCore::SVGFEColorMatrixElement::filterEffect):
2636         * ksvg2/svg/SVGFEColorMatrixElement.h:
2637         * ksvg2/svg/SVGFECompositeElement.cpp:
2638         (WebCore::SVGFECompositeElement::parseMappedAttribute):
2639         * ksvg2/svg/SVGFECompositeElement.h:
2640         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
2641         (WebCore::SVGFEDisplacementMapElement::stringToChannel):
2642         * ksvg2/svg/SVGFEDisplacementMapElement.h:
2643         * ksvg2/svg/SVGFEFloodElement.cpp:
2644         (WebCore::SVGFEFloodElement::filterEffect):
2645         * ksvg2/svg/SVGFEFuncAElement.cpp:
2646         (WebCore::SVGFEFuncAElement::SVGFEFuncAElement):
2647         * ksvg2/svg/SVGFEFuncBElement.cpp:
2648         (WebCore::SVGFEFuncBElement::SVGFEFuncBElement):
2649         * ksvg2/svg/SVGFEFuncGElement.cpp:
2650         (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
2651         * ksvg2/svg/SVGFEFuncRElement.cpp:
2652         (WebCore::SVGFEFuncRElement::SVGFEFuncRElement):
2653         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
2654         (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
2655         (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
2656         (WebCore::SVGFEGaussianBlurElement::filterEffect):
2657         * ksvg2/svg/SVGFEGaussianBlurElement.h:
2658         * ksvg2/svg/SVGFELightElement.cpp:
2659         (WebCore::SVGFELightElement::SVGFELightElement):
2660         (WebCore::SVGFELightElement::parseMappedAttribute):
2661         * ksvg2/svg/SVGFELightElement.h:
2662         * ksvg2/svg/SVGFEMergeElement.cpp:
2663         (WebCore::SVGFEMergeElement::SVGFEMergeElement):
2664
2665 2006-10-09  Rob Buis  <buis@kde.org>
2666
2667         Reviewed by olliej.
2668
2669         http://bugs.webkit.org/show_bug.cgi?id=11217
2670         Cleanup svg coding style
2671
2672         Cleanup coding style in SVGPath* classes.
2673
2674         * ksvg2/svg/SVGPathElement.cpp:
2675         (WebCore::SVGPathElement::SVGPathElement):
2676         (WebCore::SVGPathElement::getPointAtLength):
2677         (WebCore::SVGPathElement::createSVGPathSegClosePath):
2678         (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
2679         (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
2680         (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
2681         (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
2682         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
2683         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
2684         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
2685         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
2686         (WebCore::SVGPathElement::createSVGPathSegArcAbs):
2687         (WebCore::SVGPathElement::createSVGPathSegArcRel):
2688         (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
2689         (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
2690         (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
2691         (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
2692         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
2693         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
2694         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
2695         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
2696         (WebCore::SVGPathElement::svgMoveTo):
2697         (WebCore::SVGPathElement::svgLineTo):
2698         (WebCore::SVGPathElement::svgLineToHorizontal):
2699         (WebCore::SVGPathElement::svgLineToVertical):
2700         (WebCore::SVGPathElement::svgCurveToCubic):
2701         (WebCore::SVGPathElement::svgCurveToCubicSmooth):
2702         (WebCore::SVGPathElement::svgCurveToQuadratic):
2703         (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
2704         (WebCore::SVGPathElement::svgArcTo):
2705         (WebCore::SVGPathElement::parseMappedAttribute):
2706         (WebCore::SVGPathElement::pathSegList):
2707         (WebCore::SVGPathElement::normalizedPathSegList):
2708         (WebCore::SVGPathElement::animatedPathSegList):
2709         (WebCore::SVGPathElement::animatedNormalizedPathSegList):
2710         (WebCore::SVGPathElement::toPathData):
2711         * ksvg2/svg/SVGPathElement.h:
2712         (WebCore::SVGPathElement::rendererIsNeeded):
2713         * ksvg2/svg/SVGPathSeg.h:
2714         * ksvg2/svg/SVGPathSegArc.cpp:
2715
2716 2006-10-09  Rob Buis  <buis@kde.org>
2717
2718         Reviewed by aroben.
2719
2720         http://bugs.webkit.org/show_bug.cgi?id=11217
2721         Cleanup svg coding style
2722
2723         Cleanup coding style in svg shape classes.
2724
2725         * ksvg2/svg/SVGCircleElement.cpp:
2726         (WebCore::SVGCircleElement::SVGCircleElement):
2727         (WebCore::SVGCircleElement::parseMappedAttribute):
2728         (WebCore::SVGCircleElement::pushAttributeContext):
2729         * ksvg2/svg/SVGCircleElement.h:
2730         (WebCore::SVGCircleElement::rendererIsNeeded):
2731         * ksvg2/svg/SVGEllipseElement.cpp:
2732         * ksvg2/svg/SVGEllipseElement.h:
2733         (WebCore::SVGEllipseElement::rendererIsNeeded):
2734         * ksvg2/svg/SVGLineElement.cpp:
2735         (WebCore::SVGLineElement::parseMappedAttribute):
2736         (WebCore::SVGLineElement::pushAttributeContext):
2737         * ksvg2/svg/SVGLineElement.h:
2738         (WebCore::SVGLineElement::rendererIsNeeded):
2739         * ksvg2/svg/SVGPolyElement.cpp:
2740         (WebCore::SVGPolyElement::SVGPolyElement):
2741         (WebCore::SVGPolyElement::points):
2742         (WebCore::SVGPolyElement::animatedPoints):
2743         (WebCore::SVGPolyElement::parseMappedAttribute):
2744         (WebCore::SVGPolyElement::notifyAttributeChange):
2745         * ksvg2/svg/SVGPolyElement.h:
2746         (WebCore::SVGPolyElement::rendererIsNeeded):
2747         * ksvg2/svg/SVGPolygonElement.cpp:
2748         (WebCore::SVGPolygonElement::SVGPolygonElement):
2749         (WebCore::SVGPolygonElement::toPathData):
2750         * ksvg2/svg/SVGPolygonElement.h:
2751         * ksvg2/svg/SVGPolylineElement.cpp:
2752         (WebCore::SVGPolylineElement::SVGPolylineElement):
2753         (WebCore::SVGPolylineElement::toPathData):
2754         * ksvg2/svg/SVGPolylineElement.h:
2755         * ksvg2/svg/SVGRectElement.cpp:
2756         (WebCore::SVGRectElement::parseMappedAttribute):
2757         (WebCore::SVGRectElement::pushAttributeContext):
2758         * ksvg2/svg/SVGRectElement.h:
2759         (WebCore::SVGRectElement::rendererIsNeeded):
2760
2761 2006-10-08  Darin Adler  <darin@apple.com>
2762
2763         Reviewed by Maciej.
2764
2765         - added a bit more WebCoreSystemInterface
2766
2767             wkGetNSURLResponseCalculatedExpiration
2768             wkGetNSURLResponseLastModifiedDate
2769             wkGetNSURLResponseMustRevalidate
2770
2771         * WebCore.exp: Added the new symbols.
2772         * platform/mac/WebCoreSystemInterface.h: Ditto.
2773         * platform/mac/WebCoreSystemInterface.mm: Ditto.
2774
2775         - quiet down the code generation script
2776
2777         * bindings/scripts/CodeGenerator.pm:
2778
2779 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
2780
2781         Reviewed by Darin.
2782
2783         - more code laundering - add wkSupportsMultipartXMixedReplace
2784
2785         * WebCore.exp:
2786         * platform/mac/WebCoreSystemInterface.h:
2787         * platform/mac/WebCoreSystemInterface.mm:
2788
2789 2006-10-08  Nikolas Zimmermann  <zimmermann@kde.org>
2790
2791         Reviewed by Darin and Oliver.
2792
2793         Fix artefacts when drawing polygons, most noticeable when painting <hr> elements.
2794
2795         * platform/qt/GraphicsContextQt.cpp: Fix wrong operator<< usage.
2796         (WebCore::GraphicsContext::drawConvexPolygon):
2797
2798 2006-10-08  Anders Carlsson  <acarlsson@apple.com>
2799
2800         Reviewed by Darin.
2801
2802         * page/Frame.cpp:
2803         (WebCore::Frame::submitForm):
2804         No need to use latin1() here.
2805
2806 2006-10-08  Nikolas Zimmermann  <zimmermann@kde.org>
2807
2808         Reviewed by Darin.
2809
2810         Kill warnings when generating IDL files on Qt/Linux, as the
2811         SOURCE_ROOT environment variable is not defined (and not needed) for us.
2812
2813         * bindings/scripts/CodeGenerator.pm:
2814
2815 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
2816
2817         Reviewed by Darin.
2818
2819         - split didNotOpenURL: into general and page-cache-specific parts
2820
2821         * bridge/mac/WebCoreFrameBridge.h:
2822         * bridge/mac/WebCoreFrameBridge.mm:
2823         (-[WebCoreFrameBridge didNotOpenURL:]):
2824         (-[WebCoreFrameBridge invalidatePageCache:]):
2825
2826 2006-10-08  Anders Carlsson  <acarlsson@apple.com>
2827
2828         Reviewed by Darin.
2829
2830         * loader/loader.cpp:
2831         Remove DeprecatedStringList.h include.
2832         
2833         * page/Frame.cpp:
2834         (WebCore::Frame::submitForm):
2835         Don't remove "attach" from mailto URLs, we don't do it anywhere else.
2836
2837 2006-10-08  Sam Weinig  <sam.weinig@gmail.com>
2838
2839         Reviewed by Darin.
2840
2841         Patch for http://bugs.webkit.org/show_bug.cgi?id=11215
2842         Yet another round of Objective-C SVG DOM bindings auto-generation
2843
2844         - Auto-generate DOMSVGPatternElement, DOMSVGPointList, DOMSVGPolygonElement, 
2845           DOMSVGPolylineElement, DOMSVGRadialGradientElement, DOMSVGRenderingIntent,
2846           DOMSVGScriptElement, DOMSVGSetElement, DOMSVGStopElement, DOMSVGSwitchElement, 
2847           DOMSVGSymbolElement, DOMSVGTRefElement, DOMSVGTSpanElement, 
2848           DOMSVGTextContentElement, DOMSVGTextElement, DOMSVGTextPositioningElement, 
2849           DOMSVGTitleElement, DOMSVGUnitTypes, DOMSVGUseElement, DOMSVGViewElement, 
2850           DOMSVGZoomAndPan and DOMSVGZoomEvent.
2851
2852         - Auto-generate the implementations of DOMHTMLAppletElement and DOMHTMLEmbedElement
2853           using the new [ConvertFromString] property.
2854
2855         - Add forward declarations for NS* types to auto-generated classes.
2856
2857         * DerivedSources.make:
2858         * WebCore.xcodeproj/project.pbxproj:
2859         * bindings/objc/DOMHTMLAppletElement.mm: Removed.
2860         * bindings/objc/DOMHTMLEmbedElement.mm: Removed.
2861         * bindings/objc/DOMInternal.h:
2862         * bindings/objc/DOMSVG.h:
2863         * bindings/scripts/CodeGeneratorObjC.pm:
2864         * html/HTMLAppletElement.idl:
2865         * html/HTMLEmbedElement.idl:
2866         * ksvg2/svg/SVGPatternElement.idl:
2867         * ksvg2/svg/SVGPolygonElement.idl:
2868         * ksvg2/svg/SVGPolylineElement.idl:
2869         * ksvg2/svg/SVGRadialGradientElement.idl:
2870         * ksvg2/svg/SVGRenderingIntent.idl:
2871         * ksvg2/svg/SVGScriptElement.idl:
2872         * ksvg2/svg/SVGSetElement.idl:
2873         * ksvg2/svg/SVGStopElement.idl:
2874         * ksvg2/svg/SVGSwitchElement.idl:
2875         * ksvg2/svg/SVGSymbolElement.idl:
2876         * ksvg2/svg/SVGTRefElement.idl:
2877         * ksvg2/svg/SVGTSpanElement.idl:
2878         * ksvg2/svg/SVGTextContentElement.idl:
2879         * ksvg2/svg/SVGTextElement.idl:
2880         * ksvg2/svg/SVGTextPositioningElement.idl:
2881         * ksvg2/svg/SVGTitleElement.idl:
2882         * ksvg2/svg/SVGUseElement.idl:
2883         * ksvg2/svg/SVGViewElement.idl:
2884         * ksvg2/svg/SVGZoomEvent.idl:
2885
2886 2006-10-07  Anders Carlsson  <acarlsson@apple.com>
2887
2888         Reviewed by Maciej.
2889
2890         Remove crossDomain, it was unused and is one of the last functions that use DeprecatedStringList.        
2891         * loader/loader.cpp:
2892         (WebCore::Loader::servePendingRequests):
2893         
2894 2006-10-07  Anders Carlsson  <acarlsson@apple.com>
2895
2896         Reviewed by Darin.
2897
2898         Convert a bunch of RefPtr<StringImpl> to String.
2899         
2900         * bridge/mac/FrameMac.h:
2901         * bridge/mac/FrameMac.mm:
2902         (WebCore::FrameMac::didTellBridgeAboutLoad):
2903         (WebCore::FrameMac::haveToldBridgeAboutLoad):
2904         * dom/BeforeUnloadEvent.cpp:
2905         (WebCore::BeforeUnloadEvent::storeResult):
2906         * dom/BeforeUnloadEvent.h:
2907         (WebCore::BeforeUnloadEvent::result):
2908         * dom/Document.cpp:
2909         (WebCore::Document::createEntityReference):
2910         * dom/Entity.cpp:
2911         (WebCore::Entity::Entity):
2912         (WebCore::Entity::nodeName):
2913         (WebCore::Entity::toString):
2914         * dom/Entity.h:
2915         (WebCore::Entity::publicId):
2916         (WebCore::Entity::systemId):
2917         (WebCore::Entity::notationName):
2918         * dom/EntityReference.cpp:
2919         (WebCore::EntityReference::EntityReference):
2920         (WebCore::EntityReference::nodeName):
2921         (WebCore::EntityReference::cloneNode):
2922         (WebCore::EntityReference::toString):
2923         * dom/EntityReference.h:
2924         * dom/KeyboardEvent.cpp:
2925         (WebCore::KeyboardEvent::KeyboardEvent):
2926         (WebCore::KeyboardEvent::initKeyboardEvent):
2927         * dom/KeyboardEvent.h:
2928         (WebCore::KeyboardEvent::keyIdentifier):
2929         * dom/MutationEvent.cpp:
2930         (WebCore::MutationEvent::MutationEvent):
2931         (WebCore::MutationEvent::initMutationEvent):
2932         * dom/MutationEvent.h:
2933         (WebCore::MutationEvent::prevValue):
2934         (WebCore::MutationEvent::newValue):
2935         (WebCore::MutationEvent::attrName):
2936         * dom/Notation.cpp:
2937         (WebCore::Notation::Notation):
2938         (WebCore::Notation::nodeName):
2939         * dom/Notation.h:
2940         (WebCore::Notation::publicId):
2941         (WebCore::Notation::systemId):
2942         * dom/ProcessingInstruction.cpp:
2943         (WebCore::ProcessingInstruction::ProcessingInstruction):
2944         (WebCore::ProcessingInstruction::setData):
2945         (WebCore::ProcessingInstruction::nodeName):
2946         (WebCore::ProcessingInstruction::nodeValue):
2947         (WebCore::ProcessingInstruction::cloneNode):
2948         (WebCore::ProcessingInstruction::checkStyleSheet):
2949         (WebCore::ProcessingInstruction::toString):
2950         * dom/ProcessingInstruction.h:
2951         (WebCore::ProcessingInstruction::target):
2952         (WebCore::ProcessingInstruction::data):
2953         (WebCore::ProcessingInstruction::localHref):
2954
2955 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
2956
2957         Reviewed by Tim H.
2958
2959         Patch for http://bugs.webkit.org/show_bug.cgi?id=11206
2960         10 more SVG Objective-C auto-generated bindings
2961
2962         - Auto-generate DOMSVGFilterElement, DOMSVGFitToViewBox, 
2963           DOMSVGForeignObjectElement, DOMSVGGElement, DOMSVGGradientElement,
2964           DOMSVGImageElement, DOMSVGLineElement, DOMSVGLinearGradientElement, 
2965           DOMSVGMarkerElement, DOMSVGMaskElement and DOMSVGPaint.
2966
2967         - Auto-generate the text method for DOMRange.
2968
2969         * DerivedSources.make:
2970         * WebCore.xcodeproj/project.pbxproj:
2971         * bindings/objc/DOM.mm:
2972         * bindings/objc/DOMExtensions.h:
2973         * bindings/objc/DOMInternal.h:
2974         * bindings/objc/DOMPrivate.h:
2975         * bindings/objc/DOMRGBColor.mm:
2976         * bindings/objc/DOMSVG.h:
2977         * bindings/objc/PublicDOMInterfaces.h:
2978         * bindings/scripts/CodeGeneratorObjC.pm:
2979         * dom/Range.idl:
2980         * ksvg2/svg/SVGFilterElement.cpp:
2981         * ksvg2/svg/SVGFilterElement.h:
2982         * ksvg2/svg/SVGFilterElement.idl:
2983         * ksvg2/svg/SVGForeignObjectElement.idl:
2984         * ksvg2/svg/SVGGElement.idl:
2985         * ksvg2/svg/SVGGradientElement.idl:
2986         * ksvg2/svg/SVGImageElement.idl:
2987         * ksvg2/svg/SVGLineElement.idl:
2988         * ksvg2/svg/SVGLinearGradientElement.idl:
2989         * ksvg2/svg/SVGMarkerElement.idl:
2990         * ksvg2/svg/SVGMaskElement.idl:
2991         * ksvg2/svg/SVGPaint.idl:
2992
2993 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
2994
2995         Reviewed by Tim H.
2996
2997         Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
2998         Auto-generate a few more Objective-C DOM interfaces
2999
3000         - Fully auto-generate DOMAbstractView and DOMRange.
3001
3002         - Auto-generate just the interface for DOMRGBColor.
3003
3004         - Add DOMRanges.h as the new top level file for Ranges
3005           module.
3006
3007         - Add DOMRanges.h and DOMXPath.h to DOM.mm
3008
3009         * DerivedSources.make:
3010         * WebCore.xcodeproj/project.pbxproj:
3011         * bindings/objc/DOM.h:
3012         * bindings/objc/DOM.mm:
3013         * bindings/objc/DOMAbstractView.h: Removed.
3014         * bindings/objc/DOMAbstractView.mm: Removed.
3015         * bindings/objc/DOMInternal.h:
3016         * bindings/objc/DOMPrivate.h:
3017         * bindings/objc/DOMRGBColor.h: Removed.
3018         * bindings/objc/DOMRGBColor.mm:
3019         * bindings/objc/DOMRange.h: Removed.
3020         * bindings/objc/DOMRanges.h: Added.
3021         * bindings/objc/PublicDOMInterfaces.h:
3022         * bindings/scripts/CodeGeneratorObjC.pm:
3023         * css/RGBColor.idl:
3024         * dom/Range.idl:
3025         * page/AbstractView.idl: Added.
3026
3027 2006-10-07  Andrew Wellington  <proton@wiretapped.net>
3028
3029         Reviewed by Eric.
3030
3031         Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
3032         http://bugzilla.opendarwin.org/show_bug.cgi?id=10837
3033
3034         Return null when there is no frame. This matches Firefox.
3035
3036         * bindings/js/kjs_html.cpp:
3037         (KJS::JSHTMLDocument::getValueProperty):
3038
3039 2006-10-07  David Hyatt  <hyatt@apple.com>
3040
3041         Implement scroll corner painting (a white rect fill) for overflow areas to cover up
3042         scrollbar joins properly.
3043
3044         Refactor painting of scrollbars and resizers into common functions.  Eliminate the
3045         extra 20 bytes per RenderLayer by cutting out m_resizerImage and m_resizerControlRect.
3046
3047         Reviewed by mitz
3048
3049         * page/FrameView.cpp:
3050         (WebCore::selectCursor):
3051         (WebCore::FrameView::handleMouseMoveEvent):
3052         * platform/mac/PlatformScrollBar.h:
3053         (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
3054         (WebCore::PlatformScrollbar::verticalScrollbarWidth):
3055         * rendering/RenderLayer.cpp:
3056         (WebCore::RenderLayer::RenderLayer):
3057         (WebCore::RenderLayer::~RenderLayer):
3058         (WebCore::RenderLayer::updateLayerPositions):
3059         (WebCore::scrollCornerRect):
3060         (WebCore::RenderLayer::positionOverflowControls):
3061         (WebCore::RenderLayer::paintOverflowControls):
3062         (WebCore::RenderLayer::isPointInResizeControl):
3063         (WebCore::RenderLayer::paintLayer):
3064         * rendering/RenderLayer.h:
3065
3066 2006-10-07  Mark Rowe  <bdash@webkit.org>
3067
3068         Reviewed by Mitz.
3069
3070         Linux/Gdk build fixes, primarily consisting of s/ScrollBar/Scrollbar/ and
3071         matching recent ResourceLoader changes.
3072
3073         * platform/gdk/FrameGdk.cpp:
3074         (WebCore::FrameGdk::openURL):
3075         (WebCore::FrameGdk::urlSelected):
3076         * platform/gdk/PlatformScrollBar.h:
3077         * platform/gdk/ResourceLoaderCurl.cpp:
3078         (WebCore::ResourceLoader::start):
3079         * platform/gdk/ScrollViewGdk.cpp:
3080         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
3081         (WebCore::ScrollView::resizeContents):
3082         (WebCore::ScrollView::scrollBy):
3083         (WebCore::ScrollView::hScrollbarMode):
3084         (WebCore::ScrollView::vScrollbarMode):
3085         (WebCore::ScrollView::suppressScrollbars):
3086         (WebCore::ScrollView::setHScrollbarMode):
3087         (WebCore::ScrollView::setVScrollbarMode):
3088         (WebCore::ScrollView::setScrollbarsMode):
3089         * platform/gdk/TemporaryLinkStubs.cpp:
3090         (FrameView::passMousePressEventToScrollbar):
3091         (Widget::removeFromParent):
3092         (ScrollView::addChild):
3093         (ScrollView::updateScrollbars):
3094         (ScrollView::scrollbarUnderMouse):
3095         (PlatformScrollbar::PlatformScrollbar):
3096         (PlatformScrollbar::~PlatformScrollbar):
3097         (PlatformScrollbar::width):
3098         (PlatformScrollbar::height):
3099         (PlatformScrollbar::setEnabled):
3100         (PlatformScrollbar::paint):
3101         (PlatformScrollbar::updateThumbPosition):
3102         (PlatformScrollbar::updateThumbProportion):
3103         (PlatformScrollbar::setRect):
3104         (Scrollbar::Scrollbar):
3105         (Scrollbar::setSteps):
3106         (Scrollbar::scroll):
3107         (Scrollbar::setValue):
3108         (Scrollbar::setProportion):
3109
3110 2006-10-06  Dave Hyatt  <hyatt@apple.com>
3111
3112         Implement a new method for obtaining accurate clip rectangles that can be used by plugins to properly clip.
3113
3114         * page/FrameView.cpp:
3115         (WebCore::FrameView::windowClipRect):
3116         * page/FrameView.h:
3117         * platform/ScrollView.h:
3118         * platform/Widget.cpp:
3119         (WebCore::Widget::windowClipRect):
3120         * platform/Widget.h:
3121         (WebCore::Widget::geometryChanged):
3122         (WebCore::Widget::handleMouseMoveEvent):
3123         (WebCore::Widget::handleMouseReleaseEvent):
3124         * platform/mac/ScrollViewMac.mm:
3125         (WebCore::ScrollView::addChild):
3126         * rendering/RenderLayer.cpp:
3127         (WebCore::RenderLayer::documentClipRect):
3128         * rendering/RenderLayer.h:
3129
3130 2006-10-06  Steve Falkenburg  <sfalken@apple.com>
3131
3132         Reviewed by Adam.
3133
3134         Add another method we'll need for scrollbar dodging
3135
3136         * platform/ScrollView.h:
3137         * platform/win/TemporaryLinkStubs.cpp:
3138         (ScrollView::resizerOverlapsContent):
3139
3140 2006-10-06  Sam Weinig  <sam.weinig@gmail.com>
3141
3142         Reviewed by Tim H.
3143
3144         Patch for http://bugs.webkit.org/show_bug.cgi?id=11191
3145         Auto-generate the interfaces even for Objective-C DOM 
3146         bindings that need custom implementations
3147
3148         - Fully auto-generate DOMEventTarget, DOMNodeFilter and 
3149           DOMHTMLOptionElement.
3150
3151         - Auto-generate just the interface for DOMHTMLAppletElement,
3152           DOMHTMLEmbedElement, DOMSVGNumber, DOMSVGPoint and DOMSVGRect
3153           using the new IDL property ObjCCustomImplementation.
3154
3155         * DerivedSources.make:
3156         * WebCore.xcodeproj/project.pbxproj:
3157         * bindings/objc/DOMEventTarget.h: Removed.
3158         * bindings/objc/DOMHTMLAppletElement.h: Removed.
3159         * bindings/objc/DOMHTMLEmbedElement.h: Removed.
3160         * bindings/objc/DOMHTMLOptionElement.h: Removed.
3161         * bindings/objc/DOMHTMLOptionElement.mm: Removed.
3162         * bindings/objc/DOMInternal.h:
3163         * bindings/objc/DOMNodeFilter.h: Removed.
3164         * bindings/objc/DOMSVGNumber.h: Removed.
3165         * bindings/objc/DOMSVGPoint.h: Removed.
3166         * bindings/objc/DOMSVGPoint.mm:
3167         (-[DOMSVGPoint matrixTransform:]):
3168         * bindings/objc/DOMSVGRect.h: Removed.
3169         * bindings/objc/PublicDOMInterfaces.h:
3170         * bindings/scripts/CodeGeneratorObjC.pm:
3171         * dom/EventTarget.idl:
3172         * html/HTMLAppletElement.idl:
3173         * html/HTMLEmbedElement.idl:
3174         * html/HTMLOptionElement.idl:
3175         * ksvg2/svg/SVGNumber.idl:
3176         * ksvg2/svg/SVGPoint.idl:
3177         * ksvg2/svg/SVGRect.idl:
3178
3179 2006-10-06  Nikolas Zimmermann  <zimmermann@kde.org>
3180
3181         Reviewed by Tim H.
3182
3183         Make Qt/Linux compile again completly.
3184
3185         * platform/qt/WidgetQt.cpp:
3186         (WebCore::Widget::removeFromParent):
3187
3188 2006-10-06  Nikolas Zimmermann  <zimmermann@kde.org>
3189
3190         Reviewed by Tim H.
3191
3192         Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ patch.
3193
3194         * platform/qt/PlatformScrollBar.h:
3195         * platform/qt/ScrollViewQt.cpp:
3196         (WebCore::ScrollView::hScrollbarMode):
3197         (WebCore::ScrollView::vScrollbarMode):
3198         (WebCore::ScrollView::suppressScrollbars):
3199         (WebCore::ScrollView::setHScrollbarMode):
3200         (WebCore::ScrollView::setVScrollbarMode):
3201         (WebCore::ScrollView::setScrollbarsMode):
3202         (WebCore::ScrollView::scrollbarUnderMouse):
3203         * platform/qt/TemporaryLinkStubs.cpp:
3204         (WebCore::Scrollbar::Scrollbar):
3205         (WebCore::Scrollbar::setSteps):
3206         (WebCore::Scrollbar::scroll):
3207         (WebCore::Scrollbar::setValue):
3208         (WebCore::Scrollbar::setProportion):
3209         (WebCore::PlatformScrollbar::PlatformScrollbar):
3210         (WebCore::PlatformScrollbar::~PlatformScrollbar):
3211         (WebCore::PlatformScrollbar::width):
3212         (WebCore::PlatformScrollbar::height):
3213         (WebCore::PlatformScrollbar::setEnabled):
3214         (WebCore::PlatformScrollbar::paint):
3215         (WebCore::PlatformScrollbar::updateThumbPosition):
3216         (WebCore::PlatformScrollbar::updateThumbProportion):
3217         (WebCore::PlatformScrollbar::setRect):
3218         (FrameView::passMousePressEventToScrollbar):
3219
3220 2006-10-06  Sam Weinig  <sam.weinig@gmail.com>
3221
3222         Reviewed by Tim H.
3223
3224         Patch for http://bugs.webkit.org/show_bug.cgi?id=11177
3225         Another round of Objective-C SVG DOM bindings auto-generation
3226
3227         - Auto-generate DOMSVGAnimatedNumberList, DOMSVGAnimatedRect, 
3228           DOMSVGComponentTransferFunctionElement, DOMSVGFEBlendElement, 
3229           DOMSVGFEColorMatrixElement, DOMSVGFEComponentTransferElement, 
3230           DOMSVGFECompositeElement, DOMSVGFEDiffuseLightingElement,
3231           DOMSVGFEDisplacementMapElement, DOMSVGFEDistantLightElement, 
3232           DOMSVGFEFloodElement, DOMSVGFEFuncAElement, DOMSVGFEFuncBElement, 
3233           DOMSVGFEFuncGElement, DOMSVGFEFuncRElement, DOMSVGFEGaussianBlurElement, 
3234           DOMSVGFEImageElement, DOMSVGFEMergeElement, DOMSVGFEMergeNodeElement, 
3235           DOMSVGFEOffsetElement, DOMSVGFEPointLightElement, 
3236           DOMSVGFESpecularLightingElement, DOMSVGFESpotLightElement, 
3237           DOMSVGFETileElement, DOMSVGFETurbulenceElement, 
3238           DOMSVGFilterPrimitiveStandardAttributes and DOMSVGNumberList. 
3239
3240         - Adds interfaces and implementation stubs for DOMSVGNumber, DOMSVGPoint
3241           and DOMSVGRect.
3242
3243         - IDL clean up.
3244
3245         - Make numOctaves in SVGFETurbulenceElement use a long instead of an int
3246           in it's macro declaration and definition.
3247
3248         * DerivedSources.make:
3249         * WebCore.xcodeproj/project.pbxproj:
3250         * bindings/objc/DOMCSS.mm:
3251         (+[DOMCSSValue _CSSValueWith:WebCore::]):
3252         * bindings/objc/DOMInternal.h:
3253         * bindings/objc/DOMSVG.h:
3254         * bindings/objc/DOMSVGNumber.h: Added.
3255         * bindings/objc/DOMSVGNumber.mm: Added.
3256         (-[DOMSVGNumber dealloc]):
3257         (-[DOMSVGNumber finalize]):
3258         (-[DOMSVGNumber value]):
3259         (-[DOMSVGNumber setValue:]):
3260         (-[DOMSVGNumber _SVGNumber]):
3261         (-[DOMSVGNumber _initWithFloat:]):
3262         (+[DOMSVGNumber _SVGNumberWith:]):
3263         * bindings/objc/DOMSVGPoint.h: Added.
3264         * bindings/objc/DOMSVGPoint.mm: Added.
3265         (-[DOMSVGPoint dealloc]):
3266         (-[DOMSVGPoint finalize]):
3267         (-[DOMSVGPoint x]):
3268         (-[DOMSVGPoint setX:]):
3269         (-[DOMSVGPoint y]):
3270         (-[DOMSVGPoint setY:]):
3271         (-[DOMSVGPoint WebCore::]):
3272         (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
3273         (+[DOMSVGPoint _SVGPointWith:WebCore::]):
3274         * bindings/objc/DOMSVGRect.h: Added.
3275         * bindings/objc/DOMSVGRect.mm: Added.
3276         (-[DOMSVGRect dealloc]):
3277         (-[DOMSVGRect finalize]):
3278         (-[DOMSVGRect x]):
3279         (-[DOMSVGRect setX:]):
3280         (-[DOMSVGRect y]):
3281         (-[DOMSVGRect setY:]):
3282         (-[DOMSVGRect width]):
3283         (-[DOMSVGRect setWidth:]):
3284         (-[DOMSVGRect height]):
3285         (-[DOMSVGRect setHeight:]):
3286         (-[DOMSVGRect WebCore::]):
3287         (-[DOMSVGRect _initWithFloatRect:WebCore::]):
3288         (+[DOMSVGRect _SVGRectWith:WebCore::]):
3289         * bindings/scripts/CodeGeneratorObjC.pm:
3290         * ksvg2/svg/SVGAnimatedNumberList.idl:
3291         * ksvg2/svg/SVGAnimatedRect.idl:
3292         * ksvg2/svg/SVGComponentTransferFunctionElement.idl:
3293         * ksvg2/svg/SVGCursorElement.idl:
3294         * ksvg2/svg/SVGFEBlendElement.idl:
3295         * ksvg2/svg/SVGFEColorMatrixElement.idl:
3296         * ksvg2/svg/SVGFEComponentTransferElement.idl:
3297         * ksvg2/svg/SVGFECompositeElement.idl:
3298         * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
3299         * ksvg2/svg/SVGFEDisplacementMapElement.idl:
3300         * ksvg2/svg/SVGFEDistantLightElement.idl:
3301         * ksvg2/svg/SVGFEFloodElement.idl:
3302         * ksvg2/svg/SVGFEFuncAElement.idl:
3303         * ksvg2/svg/SVGFEFuncBElement.idl:
3304         * ksvg2/svg/SVGFEFuncGElement.idl:
3305         * ksvg2/svg/SVGFEFuncRElement.idl:
3306         * ksvg2/svg/SVGFEGaussianBlurElement.idl:
3307         * ksvg2/svg/SVGFEImageElement.idl:
3308         * ksvg2/svg/SVGFEMergeElement.idl:
3309         * ksvg2/svg/SVGFEMergeNodeElement.idl:
3310         * ksvg2/svg/SVGFEOffsetElement.idl:
3311         * ksvg2/svg/SVGFEPointLightElement.idl:
3312         * ksvg2/svg/SVGFESpecularLightingElement.idl:
3313         * ksvg2/svg/SVGFESpotLightElement.idl:
3314         * ksvg2/svg/SVGFETileElement.idl:
3315         * ksvg2/svg/SVGFETurbulenceElement.cpp:
3316         * ksvg2/svg/SVGFETurbulenceElement.h:
3317         * ksvg2/svg/SVGFETurbulenceElement.idl:
3318         * ksvg2/svg/SVGNumberList.idl:
3319
3320 2006-10-06  Adam Roben  <aroben@apple.com>
3321
3322         Backing out my previous change.
3323
3324         * WebCore.xcodeproj/project.pbxproj:
3325         * page/FrameView.cpp:
3326         (WebCore::FrameView::adjustViewSize):
3327
3328 2006-10-06  Adam Roben  <aroben@apple.com>
3329
3330         Build fix.
3331
3332         * WebCore.xcodeproj/project.pbxproj:
3333         * page/FrameView.cpp:
3334         (WebCore::FrameView::windowResizerRect):
3335
3336 2006-10-06  Adam Roben  <aroben@apple.com>
3337
3338         Reviewed by Maciej.
3339
3340         More loader tweaks.
3341
3342         * platform/ResourceLoader.h:
3343         * platform/ResourceLoaderInternal.h:
3344         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
3345         * platform/win/TemporaryLinkStubs.cpp:
3346         (WebCore::ResourceLoader::newHTTPRequest):
3347
3348 2006-10-05  Steve Falkenburg  <sfalken@apple.com>
3349
3350         Reviewed by aroben.
3351
3352         Stub out some methods that we'll be able to use to dodge a window resizer.
3353
3354         * bridge/win/FrameWin.h:
3355         * page/Frame.h:
3356         (WebCore::Frame::windowResizerRect):
3357         * page/FrameView.h:
3358         * platform/ScrollView.h:
3359         (WebCore::ScrollView::windowResizerRect):
3360         * platform/Widget.h:
3361         * platform/win/TemporaryLinkStubs.cpp:
3362         (FrameView::windowResizerRect):
3363         (Widget::setParent):
3364         (Widget::parent):
3365         (FrameWin::windowResizerRect):
3366
3367 2006-10-05  Dave Hyatt  <hyatt@apple.com>
3368
3369         Stub out setFrameGeometry.
3370         
3371         * platform/ScrollView.h:
3372
3373 2006-10-05  Adele Peterson  <adele@apple.com>
3374
3375         Reverting autoscroll fix.  I need to rework this a little.
3376
3377         * page/Frame.cpp:
3378         (WebCore::Frame::handleAutoscroll):
3379         (WebCore::Frame::autoscrollTimerFired):
3380         (WebCore::Frame::stopAutoscrollTimer):
3381         * page/Frame.h:
3382         * rendering/RenderLayer.cpp:
3383         (WebCore::RenderLayer::~RenderLayer):
3384         * rendering/RenderListBox.cpp:
3385         (WebCore::RenderListBox::~RenderListBox):
3386
3387 2006-10-05  Alice  <alice.liu@apple.com>
3388
3389         Reviewed by Adam.
3390
3391         Fixed <rdar://problem/4731778>
3392
3393         * editing/CommandByName.cpp:
3394         (WebCore::Frame::Command::):
3395         was calling the wrong enabledFn for arrow selection and navigation
3396
3397 2006-10-05  Adele Peterson  <adele@apple.com>
3398
3399         Reviewed by Maciej.
3400
3401         - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
3402           and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
3403
3404         * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
3405         * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
3406
3407         * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
3408         (WebCore::Frame::handleAutoscroll):
3409         (WebCore::Frame::autoscrollTimerFired):
3410         (WebCore::Frame::autoscrollRenderer):
3411         (WebCore::Frame::setAutoscrollRenderer):
3412         (WebCore::Frame::stopAutoscrollTimer):
3413         * page/Frame.h:
3414
3415 2006-10-05  Don Gibson  <dgibson77@gmail.com>
3416
3417         Reviewed by Eric.
3418
3419         Fix win32 build bustage after ggaren's Scrollbar renaming changes.
3420         Properly include PlatformScrollBar.h in WbCore.vcproj.
3421         Clean up WidgetWin.cpp a bit.
3422
3423         * WebCore.vcproj/WebCore/WebCore.vcproj:
3424         * platform/Widget.h:
3425         * platform/win/PlatformScrollBar.h:
3426         * platform/win/ScrollViewWin.cpp:
3427         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
3428         (WebCore::ScrollView::resizeContents):
3429         (WebCore::ScrollView::scrollBy):
3430         (WebCore::ScrollView::hScrollbarMode):
3431         (WebCore::ScrollView::vScrollbarMode):
3432         (WebCore::ScrollView::suppressScrollbars):
3433         (WebCore::ScrollView::setHScrollbarMode):
3434         (WebCore::ScrollView::setVScrollbarMode):
3435         (WebCore::ScrollView::setScrollbarsMode):
3436         (WebCore::ScrollView::updateScrollbars):
3437         * platform/win/TemporaryLinkStubs.cpp:
3438         (FrameView::passMousePressEventToScrollbar):
3439         (Widget::removeFromParent):
3440         (ScrollView::scrollbarUnderMouse):
3441         (PlatformScrollbar::PlatformScrollbar):
3442         (PlatformScrollbar::~PlatformScrollbar):
3443         (PlatformScrollbar::width):
3444         (PlatformScrollbar::height):
3445         (PlatformScrollbar::setEnabled):
3446         (PlatformScrollbar::paint):
3447         (PlatformScrollbar::updateThumbPosition):
3448         (PlatformScrollbar::updateThumbProportion):
3449         (PlatformScrollbar::setRect):
3450         (Scrollbar::Scrollbar):
3451         (Scrollbar::setSteps):
3452         (Scrollbar::scroll):
3453         (Scrollbar::setValue):
3454         (Scrollbar::setProportion):
3455         * platform/win/WidgetWin.cpp:
3456         (WebCore::WidgetPrivate::WidgetPrivate):
3457         (WebCore::Widget::Widget):
3458         (WebCore::Widget::setContainingWindow):
3459         (WebCore::Widget::containingWindow):
3460
3461 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
3462
3463         build fix.
3464         
3465         * WebCore.xcodeproj/project.pbxproj:
3466         * bridge/mac/BrowserExtensionMac.mm:
3467         (WebCore::BrowserExtensionMac::createNewWindow):
3468         * bridge/mac/FrameMac.mm:
3469         (WebCore::FrameMac::createFrame):
3470         * bridge/mac/FrameViewMac.mm:
3471         (WebCore::FrameView::passMousePressEventToScrollbar):
3472         * bridge/mac/WebCoreFrameBridge.mm:
3473         (-[WebCoreFrameBridge installInFrame:]):
3474         * bridge/mac/WebCoreFrameView.h:
3475         * platform/ScrollBar.cpp:
3476         * platform/Widget.h:
3477         * platform/mac/PlatformScrollBar.h:
3478         * platform/mac/PlatformScrollBarMac.mm:
3479         (NSControlSizeForScrollBarControlSize):
3480         (-[WebCoreScrollBar initWithPlatformScrollbar:]):
3481         (-[WebCoreScrollBar detachPlatformScrollbar]):
3482         (-[WebCoreScrollBar scroll:]):
3483         (-[WebCoreScrollBar widget]):
3484         (WebCore::PlatformScrollbar::PlatformScrollbar):
3485         (WebCore::PlatformScrollbar::~PlatformScrollbar):
3486         (WebCore::PlatformScrollbar::updateThumbPosition):
3487         (WebCore::PlatformScrollbar::updateThumbProportion):
3488         (WebCore::PlatformScrollbar::scrollbarHit):
3489         (WebCore::PlatformScrollbar::width):
3490         (WebCore::PlatformScrollbar::height):
3491         (WebCore::PlatformScrollbar::setRect):
3492         (WebCore::PlatformScrollbar::setEnabled):
3493         (WebCore::PlatformScrollbar::paint):
3494         * platform/mac/ScrollViewMac.mm:
3495         (WebCore::ScrollView::setVScrollbarMode):
3496         (WebCore::ScrollView::setHScrollbarMode):
3497         (WebCore::ScrollView::setScrollbarsMode):
3498         (WebCore::ScrollView::vScrollbarMode):
3499         (WebCore::ScrollView::hScrollbarMode):
3500         (WebCore::ScrollView::suppressScrollbars):
3501         (WebCore::ScrollView::scrollbarUnderMouse):
3502         * platform/mac/WidgetMac.mm:
3503         (WebCore::Widget::removeFromParent):
3504         * rendering/RenderLayer.cpp:
3505         (WebCore::RenderLayer::destroyScrollbar):
3506
3507 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
3508
3509         build fix.
3510         
3511         * platform/Widget.h:
3512         * rendering/RenderLayer.cpp:
3513         (WebCore::RenderLayer::destroyScrollbar):
3514
3515 2006-10-06  Mitz Pettel  <mitz@webkit.org>
3516
3517         http://bugs.webkit.org/show_bug.cgi?id=8276
3518         Fix broken manual test added back in r13990.
3519
3520         Add resource forks for test resources.
3521
3522         * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
3523         * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
3524         * manual-tests/resources/plain-text-paste/._4.txt: Added.
3525         * manual-tests/resources/plain-text-paste/._5.webloc: Added.
3526
3527 2006-10-05  David Hyatt  <hyatt@apple.com>
3528
3529         Rename addClip to clip.
3530
3531         Reviewed by darin
3532
3533         * kcanvas/RenderForeignObject.cpp:
3534         (WebCore::RenderForeignObject::paint):
3535         * kcanvas/RenderSVGContainer.cpp:
3536         (WebCore::RenderSVGContainer::paint):
3537         * kcanvas/RenderSVGImage.cpp:
3538         (WebCore::RenderSVGImage::paint):
3539         * platform/GraphicsContext.h:
3540         * platform/cairo/GraphicsContextCairo.cpp:
3541         (WebCore::GraphicsContext::clip):
3542         * platform/cg/GraphicsContextCG.cpp:
3543         (WebCore::GraphicsContext::savePlatformState):
3544         (WebCore::GraphicsContext::restorePlatformState):
3545         (WebCore::GraphicsContext::clip):
3546         (WebCore::GraphicsContext::addRoundedRectClip):
3547         (WebCore::GraphicsContext::addInnerRoundedRectClip):
3548         (WebCore::GraphicsContext::scale):
3549         (WebCore::GraphicsContext::rotate):
3550         (WebCore::GraphicsContext::translate):
3551         (WebCore::GraphicsContext::concatCTM):
3552         * platform/cg/GraphicsContextPlatformPrivate.h:
3553         (WebCore::GraphicsContextPlatformPrivate::save):
3554         (WebCore::GraphicsContextPlatformPrivate::restore):
3555         (WebCore::GraphicsContextPlatformPrivate::clip):
3556         (WebCore::GraphicsContextPlatformPrivate::scale):
3557         (WebCore::GraphicsContextPlatformPrivate::rotate):
3558         (WebCore::GraphicsContextPlatformPrivate::translate):
3559         (WebCore::GraphicsContextPlatformPrivate::concatCTM):
3560         * platform/qt/GraphicsContextQt.cpp:
3561         (WebCore::GraphicsContext::clip):
3562         (WebCore::GraphicsContext::addInnerRoundedRectClip):
3563         (WebCore::GraphicsContext::addRoundedRectClip):
3564         * rendering/InlineFlowBox.cpp:
3565         (WebCore::InlineFlowBox::paintBackground):
3566         (WebCore::InlineFlowBox::paintBackgroundAndBorder):
3567         * rendering/InlineTextBox.cpp:
3568         (WebCore::InlineTextBox::paintSelection):
3569         (WebCore::InlineTextBox::paintTextMatchMarker):
3570         * rendering/RenderBox.cpp:
3571         (WebCore::RenderBox::paintBackgroundExtended):
3572         * rendering/RenderButton.cpp:
3573         (WebCore::RenderButton::paintObject):
3574         * rendering/RenderFileUploadControl.cpp:
3575         (WebCore::RenderFileUploadControl::paintObject):
3576         * rendering/RenderLayer.cpp:
3577         (WebCore::RenderLayer::beginTransparencyLayers):
3578         (WebCore::setClip):
3579         * rendering/RenderListBox.cpp:
3580         (WebCore::RenderListBox::paintObject):
3581         * rendering/RenderMenuList.cpp:
3582         (WebCore::RenderMenuList::paintObject):
3583         * rendering/RenderTableCell.cpp:
3584         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
3585
3586 2006-10-05  Mitz Pettel  <mitz@webkit.org>
3587
3588         Reviewed by Darin.
3589
3590         - http://bugs.webkit.org/show_bug.cgi?id=10386
3591           Delete RenderImageButton.* and remove references from .vcproj and .bkl files
3592
3593         * CMakeLists.txt:
3594         * WebCore.vcproj/WebCore/WebCore.vcproj:
3595         * WebCoreSources.bkl:
3596         * rendering/RenderImageButton.cpp: Removed.
3597         * rendering/RenderImageButton.h: Removed.