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