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