18fa5836bb5fd60ecd69846bc45a85b86bd523d2
[WebKit-https.git] / WebCore / ChangeLog
1 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
2
3         Reviewed by Darin.
4
5         - split didNotOpenURL: into general and page-cache-specific parts
6
7         * bridge/mac/WebCoreFrameBridge.h:
8         * bridge/mac/WebCoreFrameBridge.mm:
9         (-[WebCoreFrameBridge didNotOpenURL:]):
10         (-[WebCoreFrameBridge invalidatePageCache:]):
11
12 2006-10-08  Anders Carlsson  <acarlsson@apple.com>
13
14         Reviewed by Darin.
15
16         * loader/loader.cpp:
17         Remove DeprecatedStringList.h include.
18         
19         * page/Frame.cpp:
20         (WebCore::Frame::submitForm):
21         Don't remove "attach" from mailto URLs, we don't do it anywhere else.
22
23 2006-10-08  Sam Weinig  <sam.weinig@gmail.com>
24
25         Reviewed by Darin.
26
27         Patch for http://bugs.webkit.org/show_bug.cgi?id=11215
28         Yet another round of Objective-C SVG DOM bindings auto-generation
29
30         - Auto-generate DOMSVGPatternElement, DOMSVGPointList, DOMSVGPolygonElement, 
31           DOMSVGPolylineElement, DOMSVGRadialGradientElement, DOMSVGRenderingIntent,
32           DOMSVGScriptElement, DOMSVGSetElement, DOMSVGStopElement, DOMSVGSwitchElement, 
33           DOMSVGSymbolElement, DOMSVGTRefElement, DOMSVGTSpanElement, 
34           DOMSVGTextContentElement, DOMSVGTextElement, DOMSVGTextPositioningElement, 
35           DOMSVGTitleElement, DOMSVGUnitTypes, DOMSVGUseElement, DOMSVGViewElement, 
36           DOMSVGZoomAndPan and DOMSVGZoomEvent.
37
38         - Auto-generate the implementations of DOMHTMLAppletElement and DOMHTMLEmbedElement
39           using the new [ConvertFromString] property.
40
41         - Add forward declarations for NS* types to auto-generated classes.
42
43         * DerivedSources.make:
44         * WebCore.xcodeproj/project.pbxproj:
45         * bindings/objc/DOMHTMLAppletElement.mm: Removed.
46         * bindings/objc/DOMHTMLEmbedElement.mm: Removed.
47         * bindings/objc/DOMInternal.h:
48         * bindings/objc/DOMSVG.h:
49         * bindings/scripts/CodeGeneratorObjC.pm:
50         * html/HTMLAppletElement.idl:
51         * html/HTMLEmbedElement.idl:
52         * ksvg2/svg/SVGPatternElement.idl:
53         * ksvg2/svg/SVGPolygonElement.idl:
54         * ksvg2/svg/SVGPolylineElement.idl:
55         * ksvg2/svg/SVGRadialGradientElement.idl:
56         * ksvg2/svg/SVGRenderingIntent.idl:
57         * ksvg2/svg/SVGScriptElement.idl:
58         * ksvg2/svg/SVGSetElement.idl:
59         * ksvg2/svg/SVGStopElement.idl:
60         * ksvg2/svg/SVGSwitchElement.idl:
61         * ksvg2/svg/SVGSymbolElement.idl:
62         * ksvg2/svg/SVGTRefElement.idl:
63         * ksvg2/svg/SVGTSpanElement.idl:
64         * ksvg2/svg/SVGTextContentElement.idl:
65         * ksvg2/svg/SVGTextElement.idl:
66         * ksvg2/svg/SVGTextPositioningElement.idl:
67         * ksvg2/svg/SVGTitleElement.idl:
68         * ksvg2/svg/SVGUseElement.idl:
69         * ksvg2/svg/SVGViewElement.idl:
70         * ksvg2/svg/SVGZoomEvent.idl:
71
72 2006-10-07  Anders Carlsson  <acarlsson@apple.com>
73
74         Reviewed by Maciej.
75
76         Remove crossDomain, it was unused and is one of the last functions that use DeprecatedStringList.        
77         * loader/loader.cpp:
78         (WebCore::Loader::servePendingRequests):
79         
80 2006-10-07  Anders Carlsson  <acarlsson@apple.com>
81
82         Reviewed by Darin.
83
84         Convert a bunch of RefPtr<StringImpl> to String.
85         
86         * bridge/mac/FrameMac.h:
87         * bridge/mac/FrameMac.mm:
88         (WebCore::FrameMac::didTellBridgeAboutLoad):
89         (WebCore::FrameMac::haveToldBridgeAboutLoad):
90         * dom/BeforeUnloadEvent.cpp:
91         (WebCore::BeforeUnloadEvent::storeResult):
92         * dom/BeforeUnloadEvent.h:
93         (WebCore::BeforeUnloadEvent::result):
94         * dom/Document.cpp:
95         (WebCore::Document::createEntityReference):
96         * dom/Entity.cpp:
97         (WebCore::Entity::Entity):
98         (WebCore::Entity::nodeName):
99         (WebCore::Entity::toString):
100         * dom/Entity.h:
101         (WebCore::Entity::publicId):
102         (WebCore::Entity::systemId):
103         (WebCore::Entity::notationName):
104         * dom/EntityReference.cpp:
105         (WebCore::EntityReference::EntityReference):
106         (WebCore::EntityReference::nodeName):
107         (WebCore::EntityReference::cloneNode):
108         (WebCore::EntityReference::toString):
109         * dom/EntityReference.h:
110         * dom/KeyboardEvent.cpp:
111         (WebCore::KeyboardEvent::KeyboardEvent):
112         (WebCore::KeyboardEvent::initKeyboardEvent):
113         * dom/KeyboardEvent.h:
114         (WebCore::KeyboardEvent::keyIdentifier):
115         * dom/MutationEvent.cpp:
116         (WebCore::MutationEvent::MutationEvent):
117         (WebCore::MutationEvent::initMutationEvent):
118         * dom/MutationEvent.h:
119         (WebCore::MutationEvent::prevValue):
120         (WebCore::MutationEvent::newValue):
121         (WebCore::MutationEvent::attrName):
122         * dom/Notation.cpp:
123         (WebCore::Notation::Notation):
124         (WebCore::Notation::nodeName):
125         * dom/Notation.h:
126         (WebCore::Notation::publicId):
127         (WebCore::Notation::systemId):
128         * dom/ProcessingInstruction.cpp:
129         (WebCore::ProcessingInstruction::ProcessingInstruction):
130         (WebCore::ProcessingInstruction::setData):
131         (WebCore::ProcessingInstruction::nodeName):
132         (WebCore::ProcessingInstruction::nodeValue):
133         (WebCore::ProcessingInstruction::cloneNode):
134         (WebCore::ProcessingInstruction::checkStyleSheet):
135         (WebCore::ProcessingInstruction::toString):
136         * dom/ProcessingInstruction.h:
137         (WebCore::ProcessingInstruction::target):
138         (WebCore::ProcessingInstruction::data):
139         (WebCore::ProcessingInstruction::localHref):
140
141 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
142
143         Reviewed by Tim H.
144
145         Patch for http://bugs.webkit.org/show_bug.cgi?id=11206
146         10 more SVG Objective-C auto-generated bindings
147
148         - Auto-generate DOMSVGFilterElement, DOMSVGFitToViewBox, 
149           DOMSVGForeignObjectElement, DOMSVGGElement, DOMSVGGradientElement,
150           DOMSVGImageElement, DOMSVGLineElement, DOMSVGLinearGradientElement, 
151           DOMSVGMarkerElement, DOMSVGMaskElement and DOMSVGPaint.
152
153         - Auto-generate the text method for DOMRange.
154
155         * DerivedSources.make:
156         * WebCore.xcodeproj/project.pbxproj:
157         * bindings/objc/DOM.mm:
158         * bindings/objc/DOMExtensions.h:
159         * bindings/objc/DOMInternal.h:
160         * bindings/objc/DOMPrivate.h:
161         * bindings/objc/DOMRGBColor.mm:
162         * bindings/objc/DOMSVG.h:
163         * bindings/objc/PublicDOMInterfaces.h:
164         * bindings/scripts/CodeGeneratorObjC.pm:
165         * dom/Range.idl:
166         * ksvg2/svg/SVGFilterElement.cpp:
167         * ksvg2/svg/SVGFilterElement.h:
168         * ksvg2/svg/SVGFilterElement.idl:
169         * ksvg2/svg/SVGForeignObjectElement.idl:
170         * ksvg2/svg/SVGGElement.idl:
171         * ksvg2/svg/SVGGradientElement.idl:
172         * ksvg2/svg/SVGImageElement.idl:
173         * ksvg2/svg/SVGLineElement.idl:
174         * ksvg2/svg/SVGLinearGradientElement.idl:
175         * ksvg2/svg/SVGMarkerElement.idl:
176         * ksvg2/svg/SVGMaskElement.idl:
177         * ksvg2/svg/SVGPaint.idl:
178
179 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
180
181         Reviewed by Tim H.
182
183         Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
184         Auto-generate a few more Objective-C DOM interfaces
185
186         - Fully auto-generate DOMAbstractView and DOMRange.
187
188         - Auto-generate just the interface for DOMRGBColor.
189
190         - Add DOMRanges.h as the new top level file for Ranges
191           module.
192
193         - Add DOMRanges.h and DOMXPath.h to DOM.mm
194
195         * DerivedSources.make:
196         * WebCore.xcodeproj/project.pbxproj:
197         * bindings/objc/DOM.h:
198         * bindings/objc/DOM.mm:
199         * bindings/objc/DOMAbstractView.h: Removed.
200         * bindings/objc/DOMAbstractView.mm: Removed.
201         * bindings/objc/DOMInternal.h:
202         * bindings/objc/DOMPrivate.h:
203         * bindings/objc/DOMRGBColor.h: Removed.
204         * bindings/objc/DOMRGBColor.mm:
205         * bindings/objc/DOMRange.h: Removed.
206         * bindings/objc/DOMRanges.h: Added.
207         * bindings/objc/PublicDOMInterfaces.h:
208         * bindings/scripts/CodeGeneratorObjC.pm:
209         * css/RGBColor.idl:
210         * dom/Range.idl:
211         * page/AbstractView.idl: Added.
212
213 2006-10-07  Andrew Wellington  <proton@wiretapped.net>
214
215         Reviewed by Eric.
216
217         Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
218         http://bugzilla.opendarwin.org/show_bug.cgi?id=10837
219
220         Return null when there is no frame. This matches Firefox.
221
222         * bindings/js/kjs_html.cpp:
223         (KJS::JSHTMLDocument::getValueProperty):
224
225 2006-10-07  David Hyatt  <hyatt@apple.com>
226
227         Implement scroll corner painting (a white rect fill) for overflow areas to cover up
228         scrollbar joins properly.
229
230         Refactor painting of scrollbars and resizers into common functions.  Eliminate the
231         extra 20 bytes per RenderLayer by cutting out m_resizerImage and m_resizerControlRect.
232
233         Reviewed by mitz
234
235         * page/FrameView.cpp:
236         (WebCore::selectCursor):
237         (WebCore::FrameView::handleMouseMoveEvent):
238         * platform/mac/PlatformScrollBar.h:
239         (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
240         (WebCore::PlatformScrollbar::verticalScrollbarWidth):
241         * rendering/RenderLayer.cpp:
242         (WebCore::RenderLayer::RenderLayer):
243         (WebCore::RenderLayer::~RenderLayer):
244         (WebCore::RenderLayer::updateLayerPositions):
245         (WebCore::scrollCornerRect):
246         (WebCore::RenderLayer::positionOverflowControls):
247         (WebCore::RenderLayer::paintOverflowControls):
248         (WebCore::RenderLayer::isPointInResizeControl):
249         (WebCore::RenderLayer::paintLayer):
250         * rendering/RenderLayer.h:
251
252 2006-10-07  Mark Rowe  <bdash@webkit.org>
253
254         Reviewed by Mitz.
255
256         Linux/Gdk build fixes, primarily consisting of s/ScrollBar/Scrollbar/ and
257         matching recent ResourceLoader changes.
258
259         * platform/gdk/FrameGdk.cpp:
260         (WebCore::FrameGdk::openURL):
261         (WebCore::FrameGdk::urlSelected):
262         * platform/gdk/PlatformScrollBar.h:
263         * platform/gdk/ResourceLoaderCurl.cpp:
264         (WebCore::ResourceLoader::start):
265         * platform/gdk/ScrollViewGdk.cpp:
266         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
267         (WebCore::ScrollView::resizeContents):
268         (WebCore::ScrollView::scrollBy):
269         (WebCore::ScrollView::hScrollbarMode):
270         (WebCore::ScrollView::vScrollbarMode):
271         (WebCore::ScrollView::suppressScrollbars):
272         (WebCore::ScrollView::setHScrollbarMode):
273         (WebCore::ScrollView::setVScrollbarMode):
274         (WebCore::ScrollView::setScrollbarsMode):
275         * platform/gdk/TemporaryLinkStubs.cpp:
276         (FrameView::passMousePressEventToScrollbar):
277         (Widget::removeFromParent):
278         (ScrollView::addChild):
279         (ScrollView::updateScrollbars):
280         (ScrollView::scrollbarUnderMouse):
281         (PlatformScrollbar::PlatformScrollbar):
282         (PlatformScrollbar::~PlatformScrollbar):
283         (PlatformScrollbar::width):
284         (PlatformScrollbar::height):
285         (PlatformScrollbar::setEnabled):
286         (PlatformScrollbar::paint):
287         (PlatformScrollbar::updateThumbPosition):
288         (PlatformScrollbar::updateThumbProportion):
289         (PlatformScrollbar::setRect):
290         (Scrollbar::Scrollbar):
291         (Scrollbar::setSteps):
292         (Scrollbar::scroll):
293         (Scrollbar::setValue):
294         (Scrollbar::setProportion):
295
296 2006-10-06  Dave Hyatt  <hyatt@apple.com>
297
298         Implement a new method for obtaining accurate clip rectangles that can be used by plugins to properly clip.
299
300         * page/FrameView.cpp:
301         (WebCore::FrameView::windowClipRect):
302         * page/FrameView.h:
303         * platform/ScrollView.h:
304         * platform/Widget.cpp:
305         (WebCore::Widget::windowClipRect):
306         * platform/Widget.h:
307         (WebCore::Widget::geometryChanged):
308         (WebCore::Widget::handleMouseMoveEvent):
309         (WebCore::Widget::handleMouseReleaseEvent):
310         * platform/mac/ScrollViewMac.mm:
311         (WebCore::ScrollView::addChild):
312         * rendering/RenderLayer.cpp:
313         (WebCore::RenderLayer::documentClipRect):
314         * rendering/RenderLayer.h:
315
316 2006-10-06  Steve Falkenburg  <sfalken@apple.com>
317
318         Reviewed by Adam.
319
320         Add another method we'll need for scrollbar dodging
321
322         * platform/ScrollView.h:
323         * platform/win/TemporaryLinkStubs.cpp:
324         (ScrollView::resizerOverlapsContent):
325
326 2006-10-06  Sam Weinig  <sam.weinig@gmail.com>
327
328         Reviewed by Tim H.
329
330         Patch for http://bugs.webkit.org/show_bug.cgi?id=11191
331         Auto-generate the interfaces even for Objective-C DOM 
332         bindings that need custom implementations
333
334         - Fully auto-generate DOMEventTarget, DOMNodeFilter and 
335           DOMHTMLOptionElement.
336
337         - Auto-generate just the interface for DOMHTMLAppletElement,
338           DOMHTMLEmbedElement, DOMSVGNumber, DOMSVGPoint and DOMSVGRect
339           using the new IDL property ObjCCustomImplementation.
340
341         * DerivedSources.make:
342         * WebCore.xcodeproj/project.pbxproj:
343         * bindings/objc/DOMEventTarget.h: Removed.
344         * bindings/objc/DOMHTMLAppletElement.h: Removed.
345         * bindings/objc/DOMHTMLEmbedElement.h: Removed.
346         * bindings/objc/DOMHTMLOptionElement.h: Removed.
347         * bindings/objc/DOMHTMLOptionElement.mm: Removed.
348         * bindings/objc/DOMInternal.h:
349         * bindings/objc/DOMNodeFilter.h: Removed.
350         * bindings/objc/DOMSVGNumber.h: Removed.
351         * bindings/objc/DOMSVGPoint.h: Removed.
352         * bindings/objc/DOMSVGPoint.mm:
353         (-[DOMSVGPoint matrixTransform:]):
354         * bindings/objc/DOMSVGRect.h: Removed.
355         * bindings/objc/PublicDOMInterfaces.h:
356         * bindings/scripts/CodeGeneratorObjC.pm:
357         * dom/EventTarget.idl:
358         * html/HTMLAppletElement.idl:
359         * html/HTMLEmbedElement.idl:
360         * html/HTMLOptionElement.idl:
361         * ksvg2/svg/SVGNumber.idl:
362         * ksvg2/svg/SVGPoint.idl:
363         * ksvg2/svg/SVGRect.idl:
364
365 2006-10-06  Nikolas Zimmermann  <zimmermann@kde.org>
366
367         Reviewed by Tim H.
368
369         Make Qt/Linux compile again completly.
370
371         * platform/qt/WidgetQt.cpp:
372         (WebCore::Widget::removeFromParent):
373
374 2006-10-06  Nikolas Zimmermann  <zimmermann@kde.org>
375
376         Reviewed by Tim H.
377
378         Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ patch.
379
380         * platform/qt/PlatformScrollBar.h:
381         * platform/qt/ScrollViewQt.cpp:
382         (WebCore::ScrollView::hScrollbarMode):
383         (WebCore::ScrollView::vScrollbarMode):
384         (WebCore::ScrollView::suppressScrollbars):
385         (WebCore::ScrollView::setHScrollbarMode):
386         (WebCore::ScrollView::setVScrollbarMode):
387         (WebCore::ScrollView::setScrollbarsMode):
388         (WebCore::ScrollView::scrollbarUnderMouse):
389         * platform/qt/TemporaryLinkStubs.cpp:
390         (WebCore::Scrollbar::Scrollbar):
391         (WebCore::Scrollbar::setSteps):
392         (WebCore::Scrollbar::scroll):
393         (WebCore::Scrollbar::setValue):
394         (WebCore::Scrollbar::setProportion):
395         (WebCore::PlatformScrollbar::PlatformScrollbar):
396         (WebCore::PlatformScrollbar::~PlatformScrollbar):
397         (WebCore::PlatformScrollbar::width):
398         (WebCore::PlatformScrollbar::height):
399         (WebCore::PlatformScrollbar::setEnabled):
400         (WebCore::PlatformScrollbar::paint):
401         (WebCore::PlatformScrollbar::updateThumbPosition):
402         (WebCore::PlatformScrollbar::updateThumbProportion):
403         (WebCore::PlatformScrollbar::setRect):
404         (FrameView::passMousePressEventToScrollbar):
405
406 2006-10-06  Sam Weinig  <sam.weinig@gmail.com>
407
408         Reviewed by Tim H.
409
410         Patch for http://bugs.webkit.org/show_bug.cgi?id=11177
411         Another round of Objective-C SVG DOM bindings auto-generation
412
413         - Auto-generate DOMSVGAnimatedNumberList, DOMSVGAnimatedRect, 
414           DOMSVGComponentTransferFunctionElement, DOMSVGFEBlendElement, 
415           DOMSVGFEColorMatrixElement, DOMSVGFEComponentTransferElement, 
416           DOMSVGFECompositeElement, DOMSVGFEDiffuseLightingElement,
417           DOMSVGFEDisplacementMapElement, DOMSVGFEDistantLightElement, 
418           DOMSVGFEFloodElement, DOMSVGFEFuncAElement, DOMSVGFEFuncBElement, 
419           DOMSVGFEFuncGElement, DOMSVGFEFuncRElement, DOMSVGFEGaussianBlurElement, 
420           DOMSVGFEImageElement, DOMSVGFEMergeElement, DOMSVGFEMergeNodeElement, 
421           DOMSVGFEOffsetElement, DOMSVGFEPointLightElement, 
422           DOMSVGFESpecularLightingElement, DOMSVGFESpotLightElement, 
423           DOMSVGFETileElement, DOMSVGFETurbulenceElement, 
424           DOMSVGFilterPrimitiveStandardAttributes and DOMSVGNumberList. 
425
426         - Adds interfaces and implementation stubs for DOMSVGNumber, DOMSVGPoint
427           and DOMSVGRect.
428
429         - IDL clean up.
430
431         - Make numOctaves in SVGFETurbulenceElement use a long instead of an int
432           in it's macro declaration and definition.
433
434         * DerivedSources.make:
435         * WebCore.xcodeproj/project.pbxproj:
436         * bindings/objc/DOMCSS.mm:
437         (+[DOMCSSValue _CSSValueWith:WebCore::]):
438         * bindings/objc/DOMInternal.h:
439         * bindings/objc/DOMSVG.h:
440         * bindings/objc/DOMSVGNumber.h: Added.
441         * bindings/objc/DOMSVGNumber.mm: Added.
442         (-[DOMSVGNumber dealloc]):
443         (-[DOMSVGNumber finalize]):
444         (-[DOMSVGNumber value]):
445         (-[DOMSVGNumber setValue:]):
446         (-[DOMSVGNumber _SVGNumber]):
447         (-[DOMSVGNumber _initWithFloat:]):
448         (+[DOMSVGNumber _SVGNumberWith:]):
449         * bindings/objc/DOMSVGPoint.h: Added.
450         * bindings/objc/DOMSVGPoint.mm: Added.
451         (-[DOMSVGPoint dealloc]):
452         (-[DOMSVGPoint finalize]):
453         (-[DOMSVGPoint x]):
454         (-[DOMSVGPoint setX:]):
455         (-[DOMSVGPoint y]):
456         (-[DOMSVGPoint setY:]):
457         (-[DOMSVGPoint WebCore::]):
458         (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
459         (+[DOMSVGPoint _SVGPointWith:WebCore::]):
460         * bindings/objc/DOMSVGRect.h: Added.
461         * bindings/objc/DOMSVGRect.mm: Added.
462         (-[DOMSVGRect dealloc]):
463         (-[DOMSVGRect finalize]):
464         (-[DOMSVGRect x]):
465         (-[DOMSVGRect setX:]):
466         (-[DOMSVGRect y]):
467         (-[DOMSVGRect setY:]):
468         (-[DOMSVGRect width]):
469         (-[DOMSVGRect setWidth:]):
470         (-[DOMSVGRect height]):
471         (-[DOMSVGRect setHeight:]):
472         (-[DOMSVGRect WebCore::]):
473         (-[DOMSVGRect _initWithFloatRect:WebCore::]):
474         (+[DOMSVGRect _SVGRectWith:WebCore::]):
475         * bindings/scripts/CodeGeneratorObjC.pm:
476         * ksvg2/svg/SVGAnimatedNumberList.idl:
477         * ksvg2/svg/SVGAnimatedRect.idl:
478         * ksvg2/svg/SVGComponentTransferFunctionElement.idl:
479         * ksvg2/svg/SVGCursorElement.idl:
480         * ksvg2/svg/SVGFEBlendElement.idl:
481         * ksvg2/svg/SVGFEColorMatrixElement.idl:
482         * ksvg2/svg/SVGFEComponentTransferElement.idl:
483         * ksvg2/svg/SVGFECompositeElement.idl:
484         * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
485         * ksvg2/svg/SVGFEDisplacementMapElement.idl:
486         * ksvg2/svg/SVGFEDistantLightElement.idl:
487         * ksvg2/svg/SVGFEFloodElement.idl:
488         * ksvg2/svg/SVGFEFuncAElement.idl:
489         * ksvg2/svg/SVGFEFuncBElement.idl:
490         * ksvg2/svg/SVGFEFuncGElement.idl:
491         * ksvg2/svg/SVGFEFuncRElement.idl:
492         * ksvg2/svg/SVGFEGaussianBlurElement.idl:
493         * ksvg2/svg/SVGFEImageElement.idl:
494         * ksvg2/svg/SVGFEMergeElement.idl:
495         * ksvg2/svg/SVGFEMergeNodeElement.idl:
496         * ksvg2/svg/SVGFEOffsetElement.idl:
497         * ksvg2/svg/SVGFEPointLightElement.idl:
498         * ksvg2/svg/SVGFESpecularLightingElement.idl:
499         * ksvg2/svg/SVGFESpotLightElement.idl:
500         * ksvg2/svg/SVGFETileElement.idl:
501         * ksvg2/svg/SVGFETurbulenceElement.cpp:
502         * ksvg2/svg/SVGFETurbulenceElement.h:
503         * ksvg2/svg/SVGFETurbulenceElement.idl:
504         * ksvg2/svg/SVGNumberList.idl:
505
506 2006-10-06  Adam Roben  <aroben@apple.com>
507
508         Backing out my previous change.
509
510         * WebCore.xcodeproj/project.pbxproj:
511         * page/FrameView.cpp:
512         (WebCore::FrameView::adjustViewSize):
513
514 2006-10-06  Adam Roben  <aroben@apple.com>
515
516         Build fix.
517
518         * WebCore.xcodeproj/project.pbxproj:
519         * page/FrameView.cpp:
520         (WebCore::FrameView::windowResizerRect):
521
522 2006-10-06  Adam Roben  <aroben@apple.com>
523
524         Reviewed by Maciej.
525
526         More loader tweaks.
527
528         * platform/ResourceLoader.h:
529         * platform/ResourceLoaderInternal.h:
530         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
531         * platform/win/TemporaryLinkStubs.cpp:
532         (WebCore::ResourceLoader::newHTTPRequest):
533
534 2006-10-05  Steve Falkenburg  <sfalken@apple.com>
535
536         Reviewed by aroben.
537
538         Stub out some methods that we'll be able to use to dodge a window resizer.
539
540         * bridge/win/FrameWin.h:
541         * page/Frame.h:
542         (WebCore::Frame::windowResizerRect):
543         * page/FrameView.h:
544         * platform/ScrollView.h:
545         (WebCore::ScrollView::windowResizerRect):
546         * platform/Widget.h:
547         * platform/win/TemporaryLinkStubs.cpp:
548         (FrameView::windowResizerRect):
549         (Widget::setParent):
550         (Widget::parent):
551         (FrameWin::windowResizerRect):
552
553 2006-10-05  Dave Hyatt  <hyatt@apple.com>
554
555         Stub out setFrameGeometry.
556         
557         * platform/ScrollView.h:
558
559 2006-10-05  Adele Peterson  <adele@apple.com>
560
561         Reverting autoscroll fix.  I need to rework this a little.
562
563         * page/Frame.cpp:
564         (WebCore::Frame::handleAutoscroll):
565         (WebCore::Frame::autoscrollTimerFired):
566         (WebCore::Frame::stopAutoscrollTimer):
567         * page/Frame.h:
568         * rendering/RenderLayer.cpp:
569         (WebCore::RenderLayer::~RenderLayer):
570         * rendering/RenderListBox.cpp:
571         (WebCore::RenderListBox::~RenderListBox):
572
573 2006-10-05  Alice  <alice.liu@apple.com>
574
575         Reviewed by Adam.
576
577         Fixed <rdar://problem/4731778>
578
579         * editing/CommandByName.cpp:
580         (WebCore::Frame::Command::):
581         was calling the wrong enabledFn for arrow selection and navigation
582
583 2006-10-05  Adele Peterson  <adele@apple.com>
584
585         Reviewed by Maciej.
586
587         - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
588           and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
589
590         * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
591         * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
592
593         * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
594         (WebCore::Frame::handleAutoscroll):
595         (WebCore::Frame::autoscrollTimerFired):
596         (WebCore::Frame::autoscrollRenderer):
597         (WebCore::Frame::setAutoscrollRenderer):
598         (WebCore::Frame::stopAutoscrollTimer):
599         * page/Frame.h:
600
601 2006-10-05  Don Gibson  <dgibson77@gmail.com>
602
603         Reviewed by Eric.
604
605         Fix win32 build bustage after ggaren's Scrollbar renaming changes.
606         Properly include PlatformScrollBar.h in WbCore.vcproj.
607         Clean up WidgetWin.cpp a bit.
608
609         * WebCore.vcproj/WebCore/WebCore.vcproj:
610         * platform/Widget.h:
611         * platform/win/PlatformScrollBar.h:
612         * platform/win/ScrollViewWin.cpp:
613         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
614         (WebCore::ScrollView::resizeContents):
615         (WebCore::ScrollView::scrollBy):
616         (WebCore::ScrollView::hScrollbarMode):
617         (WebCore::ScrollView::vScrollbarMode):
618         (WebCore::ScrollView::suppressScrollbars):
619         (WebCore::ScrollView::setHScrollbarMode):
620         (WebCore::ScrollView::setVScrollbarMode):
621         (WebCore::ScrollView::setScrollbarsMode):
622         (WebCore::ScrollView::updateScrollbars):
623         * platform/win/TemporaryLinkStubs.cpp:
624         (FrameView::passMousePressEventToScrollbar):
625         (Widget::removeFromParent):
626         (ScrollView::scrollbarUnderMouse):
627         (PlatformScrollbar::PlatformScrollbar):
628         (PlatformScrollbar::~PlatformScrollbar):
629         (PlatformScrollbar::width):
630         (PlatformScrollbar::height):
631         (PlatformScrollbar::setEnabled):
632         (PlatformScrollbar::paint):
633         (PlatformScrollbar::updateThumbPosition):
634         (PlatformScrollbar::updateThumbProportion):
635         (PlatformScrollbar::setRect):
636         (Scrollbar::Scrollbar):
637         (Scrollbar::setSteps):
638         (Scrollbar::scroll):
639         (Scrollbar::setValue):
640         (Scrollbar::setProportion):
641         * platform/win/WidgetWin.cpp:
642         (WebCore::WidgetPrivate::WidgetPrivate):
643         (WebCore::Widget::Widget):
644         (WebCore::Widget::setContainingWindow):
645         (WebCore::Widget::containingWindow):
646
647 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
648
649         build fix.
650         
651         * WebCore.xcodeproj/project.pbxproj:
652         * bridge/mac/BrowserExtensionMac.mm:
653         (WebCore::BrowserExtensionMac::createNewWindow):
654         * bridge/mac/FrameMac.mm:
655         (WebCore::FrameMac::createFrame):
656         * bridge/mac/FrameViewMac.mm:
657         (WebCore::FrameView::passMousePressEventToScrollbar):
658         * bridge/mac/WebCoreFrameBridge.mm:
659         (-[WebCoreFrameBridge installInFrame:]):
660         * bridge/mac/WebCoreFrameView.h:
661         * platform/ScrollBar.cpp:
662         * platform/Widget.h:
663         * platform/mac/PlatformScrollBar.h:
664         * platform/mac/PlatformScrollBarMac.mm:
665         (NSControlSizeForScrollBarControlSize):
666         (-[WebCoreScrollBar initWithPlatformScrollbar:]):
667         (-[WebCoreScrollBar detachPlatformScrollbar]):
668         (-[WebCoreScrollBar scroll:]):
669         (-[WebCoreScrollBar widget]):
670         (WebCore::PlatformScrollbar::PlatformScrollbar):
671         (WebCore::PlatformScrollbar::~PlatformScrollbar):
672         (WebCore::PlatformScrollbar::updateThumbPosition):
673         (WebCore::PlatformScrollbar::updateThumbProportion):
674         (WebCore::PlatformScrollbar::scrollbarHit):
675         (WebCore::PlatformScrollbar::width):
676         (WebCore::PlatformScrollbar::height):
677         (WebCore::PlatformScrollbar::setRect):
678         (WebCore::PlatformScrollbar::setEnabled):
679         (WebCore::PlatformScrollbar::paint):
680         * platform/mac/ScrollViewMac.mm:
681         (WebCore::ScrollView::setVScrollbarMode):
682         (WebCore::ScrollView::setHScrollbarMode):
683         (WebCore::ScrollView::setScrollbarsMode):
684         (WebCore::ScrollView::vScrollbarMode):
685         (WebCore::ScrollView::hScrollbarMode):
686         (WebCore::ScrollView::suppressScrollbars):
687         (WebCore::ScrollView::scrollbarUnderMouse):
688         * platform/mac/WidgetMac.mm:
689         (WebCore::Widget::removeFromParent):
690         * rendering/RenderLayer.cpp:
691         (WebCore::RenderLayer::destroyScrollbar):
692
693 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
694
695         build fix.
696         
697         * platform/Widget.h:
698         * rendering/RenderLayer.cpp:
699         (WebCore::RenderLayer::destroyScrollbar):
700
701 2006-10-06  Mitz Pettel  <mitz@webkit.org>
702
703         http://bugs.webkit.org/show_bug.cgi?id=8276
704         Fix broken manual test added back in r13990.
705
706         Add resource forks for test resources.
707
708         * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
709         * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
710         * manual-tests/resources/plain-text-paste/._4.txt: Added.
711         * manual-tests/resources/plain-text-paste/._5.webloc: Added.
712
713 2006-10-05  David Hyatt  <hyatt@apple.com>
714
715         Rename addClip to clip.
716
717         Reviewed by darin
718
719         * kcanvas/RenderForeignObject.cpp:
720         (WebCore::RenderForeignObject::paint):
721         * kcanvas/RenderSVGContainer.cpp:
722         (WebCore::RenderSVGContainer::paint):
723         * kcanvas/RenderSVGImage.cpp:
724         (WebCore::RenderSVGImage::paint):
725         * platform/GraphicsContext.h:
726         * platform/cairo/GraphicsContextCairo.cpp:
727         (WebCore::GraphicsContext::clip):
728         * platform/cg/GraphicsContextCG.cpp:
729         (WebCore::GraphicsContext::savePlatformState):
730         (WebCore::GraphicsContext::restorePlatformState):
731         (WebCore::GraphicsContext::clip):
732         (WebCore::GraphicsContext::addRoundedRectClip):
733         (WebCore::GraphicsContext::addInnerRoundedRectClip):
734         (WebCore::GraphicsContext::scale):
735         (WebCore::GraphicsContext::rotate):
736         (WebCore::GraphicsContext::translate):
737         (WebCore::GraphicsContext::concatCTM):
738         * platform/cg/GraphicsContextPlatformPrivate.h:
739         (WebCore::GraphicsContextPlatformPrivate::save):
740         (WebCore::GraphicsContextPlatformPrivate::restore):
741         (WebCore::GraphicsContextPlatformPrivate::clip):
742         (WebCore::GraphicsContextPlatformPrivate::scale):
743         (WebCore::GraphicsContextPlatformPrivate::rotate):
744         (WebCore::GraphicsContextPlatformPrivate::translate):
745         (WebCore::GraphicsContextPlatformPrivate::concatCTM):
746         * platform/qt/GraphicsContextQt.cpp:
747         (WebCore::GraphicsContext::clip):
748         (WebCore::GraphicsContext::addInnerRoundedRectClip):
749         (WebCore::GraphicsContext::addRoundedRectClip):
750         * rendering/InlineFlowBox.cpp:
751         (WebCore::InlineFlowBox::paintBackground):
752         (WebCore::InlineFlowBox::paintBackgroundAndBorder):
753         * rendering/InlineTextBox.cpp:
754         (WebCore::InlineTextBox::paintSelection):
755         (WebCore::InlineTextBox::paintTextMatchMarker):
756         * rendering/RenderBox.cpp:
757         (WebCore::RenderBox::paintBackgroundExtended):
758         * rendering/RenderButton.cpp:
759         (WebCore::RenderButton::paintObject):
760         * rendering/RenderFileUploadControl.cpp:
761         (WebCore::RenderFileUploadControl::paintObject):
762         * rendering/RenderLayer.cpp:
763         (WebCore::RenderLayer::beginTransparencyLayers):
764         (WebCore::setClip):
765         * rendering/RenderListBox.cpp:
766         (WebCore::RenderListBox::paintObject):
767         * rendering/RenderMenuList.cpp:
768         (WebCore::RenderMenuList::paintObject):
769         * rendering/RenderTableCell.cpp:
770         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
771
772 2006-10-05  Mitz Pettel  <mitz@webkit.org>
773
774         Reviewed by Darin.
775
776         - http://bugs.webkit.org/show_bug.cgi?id=10386
777           Delete RenderImageButton.* and remove references from .vcproj and .bkl files
778
779         * CMakeLists.txt:
780         * WebCore.vcproj/WebCore/WebCore.vcproj:
781         * WebCoreSources.bkl:
782         * rendering/RenderImageButton.cpp: Removed.
783         * rendering/RenderImageButton.h: Removed.
784
785 2006-10-05  Mitz Pettel  <opendarwin.org@mitzpettel.com>
786
787         Reviewed by Darin.
788
789         - http://bugs.webkit.org/show_bug.cgi?id=11067
790           manual-tests/scrollbar-hittest2.html is invalid
791
792         * manual-tests/scrollbar-hittest2.html:
793
794 2006-10-05  David Carson  <dacarson@gmail.com>
795
796         Reviewed by Darin.
797
798         http://bugs.webkit.org/show_bug.cgi?id=11152
799         Adjust the tokenizer chunk size to be smaller for
800         mobile devices, and also decrease the yield timer
801         for the tokenizer so that it can resume earlier.
802
803         * html/HTMLTokenizer.cpp:
804         * config.h:
805
806 2006-10-05  Adam Roben  <aroben@apple.com>
807
808         Removing accidentally-checked-in do-nothing code.
809
810         * html/HTMLInputElement.cpp:
811         (WebCore::HTMLInputElement::defaultEventHandler):
812
813 2006-10-05  David Carson  <dacarson@gmail.com>
814
815         Reviewed by Mitz.
816
817         http://bugs.webkit.org/show_bug.cgi?id=11158
818         Initialize class variables
819
820         * rendering/RenderLayer.cpp:
821         (WebCore::RenderLayer::RenderLayer):
822
823 2006-10-05  Don Gibson  <dgibson77@gmail.com>
824
825         Reviewed by Darin, landed by Adam.
826
827         http://bugs.webkit.org/show_bug.cgi?id=11176
828         Fix win32 build, adapt to Maciej's ResourceLoader changes.
829
830         * platform/win/ResourceLoaderWin.cpp:
831         (WebCore::ResourceLoader::start):
832
833 2006-10-05  Marvin Decker  <marv.decker@gmail.com>
834
835         Reviewed by Darin.
836
837         http://bugs.webkit.org/show_bug.cgi?id=10989
838         Provide a way for embedders to implement BrowserExtensionWin
839
840         * WebCore.vcproj/WebCore/WebCore.vcproj:
841         * bridge/win/BrowserExtensionWin.cpp: Added.
842         (BrowserExtensionWin::BrowserExtensionWin):
843         (BrowserExtensionWin::setTypedIconURL):
844         (BrowserExtensionWin::setIconURL):
845         (BrowserExtensionWin::getHistoryLength):
846         (BrowserExtensionWin::canRunModal):
847         (BrowserExtensionWin::createNewWindow):
848         (BrowserExtensionWin::canRunModalNow):
849         (BrowserExtensionWin::runModal):
850         (BrowserExtensionWin::goBackOrForward):
851         (BrowserExtensionWin::historyURL):
852         * bridge/win/BrowserExtensionWin.h:
853         * bridge/win/FrameWin.cpp:
854         (WebCore::FrameWin::createNewWindow):
855         * bridge/win/FrameWin.h:
856         * platform/win/TemporaryLinkStubs.cpp:
857
858 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
859
860         Reviewed by Darin.
861         
862         Fixed <rdar://problem/4766987>
863         
864         - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
865         except for file names.
866         
867         - fixed RenderLayer to properly tear down scrollbars, removing them from
868         their parents.
869
870         * bindings/js/kjs_window.cpp:
871         (KJS::showModalDialog):
872         (KJS::setWindowFeature):
873         (KJS::parseWindowFeatures):
874         * bridge/BrowserExtension.h:
875         * dom/Document.cpp:
876         (WebCore::Document::setInPageCache):
877         * html/HTMLFrameElement.cpp:
878         (WebCore::HTMLFrameElement::init):
879         (WebCore::HTMLFrameElement::parseMappedAttribute):
880         * html/HTMLFrameElement.h:
881         (WebCore::HTMLFrameElement::scrollingMode):
882         * page/Frame.cpp:
883         (WebCore::Frame::finishedParsing):
884         (WebCore::Frame::scrollbarsVisible):
885         * page/FrameView.cpp:
886         (WebCore::FrameViewPrivate::FrameViewPrivate):
887         (WebCore::FrameViewPrivate::reset):
888         (WebCore::FrameView::~FrameView):
889         (WebCore::FrameView::resetScrollbars):
890         (WebCore::FrameView::clear):
891         (WebCore::FrameView::initScrollbars):
892         (WebCore::FrameView::applyOverflowToViewport):
893         (WebCore::FrameView::layout):
894         (WebCore::FrameView::handleMousePressEvent):
895         (WebCore::selectCursor):
896         (WebCore::FrameView::handleMouseMoveEvent):
897         (WebCore::FrameView::setScrollbarsMode):
898         (WebCore::FrameView::setVScrollbarMode):
899         (WebCore::FrameView::setHScrollbarMode):
900         (WebCore::FrameView::restoreScrollbar):
901         (WebCore::FrameView::dispatchMouseEvent):
902         (WebCore::FrameView::scrollbarMoved):
903         * page/FrameView.h:
904         * page/MouseEventWithHitTestResults.cpp:
905         (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
906         * page/MouseEventWithHitTestResults.h:
907         (WebCore::MouseEventWithHitTestResults::scrollbar):
908         * platform/ScrollBar.cpp:
909         (WebCore::Scrollbar::Scrollbar):
910         (WebCore::Scrollbar::setValue):
911         (WebCore::Scrollbar::setProportion):
912         (WebCore::Scrollbar::setSteps):
913         (WebCore::Scrollbar::scroll):
914         * platform/ScrollBar.h:
915         (WebCore::):
916         (WebCore::ScrollbarClient::~ScrollbarClient):
917         (WebCore::Scrollbar::~Scrollbar):
918         (WebCore::Scrollbar::orientation):
919         (WebCore::Scrollbar::controlSize):
920         (WebCore::Scrollbar::hasPlatformScrollbars):
921         (WebCore::Scrollbar::client):
922         * platform/ScrollBarMode.h:
923         (WebCore::):
924         * platform/ScrollView.h:
925         * rendering/RenderBlock.cpp:
926         (WebCore::RenderBlock::isPointInScrollbar):
927         * rendering/RenderLayer.cpp:
928         (WebCore::RenderLayer::RenderLayer):
929         (WebCore::RenderLayer::~RenderLayer):
930         (WebCore::RenderLayer::scrollToOffset):
931         (WebCore::RenderLayer::horizontaScrollbarWidget):
932         (WebCore::RenderLayer::verticalScrollbarWidget):
933         (WebCore::RenderLayer::valueChanged):
934         (WebCore::RenderLayer::createScrollbar):
935         (WebCore::RenderLayer::destroyScrollbar):
936         (WebCore::RenderLayer::setHasHorizontalScrollbar):
937         (WebCore::RenderLayer::setHasVerticalScrollbar):
938         (WebCore::RenderLayer::verticalScrollbarWidth):
939         (WebCore::RenderLayer::horizontalScrollbarHeight):
940         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
941         * rendering/RenderLayer.h:
942         (WebCore::RenderLayer::horizontalScrollbar):
943         (WebCore::RenderLayer::verticalScrollbar):
944         * rendering/RenderListBox.cpp:
945         (WebCore::RenderListBox::~RenderListBox):
946         (WebCore::RenderListBox::calcMinMaxWidth):
947         (WebCore::RenderListBox::isPointInScrollbar):
948         (WebCore::RenderListBox::optionAtPoint):
949         (WebCore::RenderListBox::valueChanged):
950         * rendering/RenderListBox.h:
951         * rendering/RenderObject.h:
952         (WebCore::RenderObject::NodeInfo::scrollbar):
953         (WebCore::RenderObject::NodeInfo::setScrollbar):
954
955 2006-10-05  Don Gibson  <dgibson77@gmail.com>
956
957         Reviewed by Adam.
958
959         http://bugs.webkit.org/show_bug.cgi?id=11138
960         Incorrect mouse event generation on Windows
961
962         * platform/win/MouseEventWin.cpp:
963         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
964         (1) Set mouse button even for non-click-related messages.
965         (2) Track clicks correctly for all buttons, not just the left button.
966
967 2006-10-05  Nikolas Zimmermann  <zimmermann@kde.org>
968
969         Reviewed and landed by ap.
970
971         Fix Qt/Linux build, adapt to Eric's quartz changes and to Maciej's ResourceLoader changes.
972
973         * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
974         (WebCore::KRenderingPaintServerLinearGradientQt::renderPath):
975         (WebCore::KRenderingPaintServerLinearGradientQt::setup):
976         (WebCore::KRenderingPaintServerRadialGradientQt::setup):
977         (WebCore::KRenderingPaintServerRadialGradientQt::renderPath):
978         * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
979         (WebCore::KRenderingPaintServerPatternQt::renderPath):
980         * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
981         (WebCore::KRenderingPaintServerQt::setPenProperties):
982         * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
983         (WebCore::KRenderingPaintServerSolidQt::setup):
984         (WebCore::KRenderingPaintServerSolidQt::renderPath):
985         * kcanvas/device/qt/RenderPathQt.cpp:
986         (WebCore::getPathStroke):
987
988 2006-10-05  Alexey Proskuryakov  <ap@nypop.com>
989
990         Reviewed by Darin.
991
992         http://bugs.webkit.org/show_bug.cgi?id=11054
993         REGRESSION: Traditional Chinese encoding in login authentication
994
995         1. Treat GB2312 encoding as GBK (its more modern superset), to match other browsers.
996         2. On the Web, GB2312 is encoded as EUC-CN or HZ, while ICU provides a native encoding
997         for encoding GB_2312-80 and several others. So, we need to override this behavior, too.
998
999         * platform/StreamingTextDecoderICU.cpp:
1000         (WebCore::TextCodecICU::registerEncodingNames):
1001
1002 2006-10-05  Eric Seidel  <eric@eseidel.com>
1003
1004         Reviewed by mjs.
1005
1006         Removed dead code.
1007         Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
1008
1009         * WebCore.xcodeproj/project.pbxproj:
1010         * ksvg2/ecma/GlobalObject.cpp: Removed.
1011         * ksvg2/ecma/GlobalObject.h: Removed.
1012
1013 2006-10-05  Adam Roben  <aroben@apple.com>
1014
1015         Reviewed by Maciej.
1016
1017         Small ResourceLoaderInternal tweak.
1018
1019         * platform/ResourceLoaderInternal.h:
1020         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1021
1022 2006-10-05  Eric Seidel  <eric@eseidel.com>
1023
1024         Reviewed by mjs.
1025
1026         More incremental KCanvas cleanup and optimization.
1027         Added SVGRenderStyle::hasFill() and hasStroke() removed more KSVGPainterFactory methods.
1028         Optimized dash array usage to not malloc.
1029         Also removed un-needed KSVGRenderingStyle includes.
1030
1031         * kcanvas/KCanvasTreeDebug.cpp:
1032         (WebCore::operator<<):
1033         * kcanvas/RenderPath.cpp:
1034         (WebCore::RenderPath::nodeAtPoint):
1035         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
1036         (WebCore::RenderPath::strokeBBox):
1037         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
1038         (WebCore::KRenderingPaintServerGradientQuartz::setup):
1039         (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
1040         (WebCore::KRenderingPaintServerGradientQuartz::teardown):
1041         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1042         (WebCore::KRenderingPaintServerSolidQuartz::setup):
1043         (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
1044         (WebCore::KRenderingPaintServerPatternQuartz::setup):
1045         (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
1046         * kcanvas/device/quartz/QuartzSupport.mm:
1047         (WebCore::applyStrokeStyleToContext):
1048         * ksvg2/css/SVGRenderStyle.h:
1049         (WebCore::SVGRenderStyle::hasStroke):
1050         (WebCore::SVGRenderStyle::hasFill):
1051         * ksvg2/misc/KCanvasRenderingStyle.cpp:
1052         (WebCore::KSVGPainterFactory::fillPaintServer):
1053         (WebCore::KSVGPainterFactory::strokePaintServer):
1054         * ksvg2/misc/KCanvasRenderingStyle.h:
1055
1056 2006-10-05  Maciej Stachowiak  <mjs@apple.com>
1057
1058         Reviewed by Adam.
1059
1060         - changed ResourceLoader to be refcounted
1061
1062         It keeps a ref on itself while loading as well. This makes
1063         for a much saner memory management model than the previous.
1064
1065         * bridge/mac/WebCoreResourceLoaderImp.mm:
1066         (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
1067         * dom/XMLTokenizer.cpp:
1068         (WebCore::openFunc):
1069         * loader/icon/IconLoader.cpp:
1070         (IconLoader::IconLoader):
1071         (IconLoader::~IconLoader):
1072         (IconLoader::startLoading):
1073         (IconLoader::stopLoading):
1074         (IconLoader::receivedData):
1075         * loader/icon/IconLoader.h:
1076         * loader/loader.cpp:
1077         (WebCore::Loader::servePendingRequests):
1078         * platform/ResourceLoader.cpp:
1079         (WebCore::ResourceLoader::create):
1080         (WebCore::ResourceLoader::kill):
1081         * platform/ResourceLoader.h:
1082         * platform/ResourceLoaderInternal.h:
1083         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1084         * platform/mac/ResourceLoaderMac.mm:
1085         (WebCore::ResourceLoader::start):
1086         * xml/XSLTProcessor.cpp:
1087         (WebCore::docLoaderFunc):
1088         * xml/xmlhttprequest.cpp:
1089         (WebCore::XMLHttpRequest::send):
1090         * xml/xmlhttprequest.h:
1091
1092 2006-10-05  Eric Seidel  <eric@eseidel.com>
1093
1094         Reviewed by mjs.
1095
1096         Improve SVG opacity performance by clipping to the object bbox before starting a new opacity layer.
1097         http://bugs.webkit.org/show_bug.cgi?id=11163
1098         
1099         No SVG performance tests yet.
1100
1101         * kcanvas/RenderForeignObject.cpp:
1102         (WebCore::RenderForeignObject::paint):
1103         * kcanvas/RenderSVGContainer.cpp:
1104         (WebCore::RenderSVGContainer::paint):
1105         * kcanvas/RenderSVGImage.cpp:
1106         (WebCore::RenderSVGImage::paint):
1107         * kcanvas/RenderSVGText.cpp:
1108         (WebCore::RenderSVGText::paint):
1109
1110 2006-10-05  Dave Hyatt  <hyatt@apple.com>
1111
1112         Stub out some stuff for widget focusability.
1113
1114         Reviewed by maciej
1115  
1116         * page/FrameView.cpp:
1117         (WebCore::FrameView::dispatchMouseEvent):
1118         * platform/ScrollView.h:
1119         * platform/Widget.h:
1120
1121 2006-10-05  Adam Roben  <aroben@apple.com>
1122
1123         Reviewed by Maciej and Tim H.
1124
1125         Copy some WebKit frame lifetime logic into WebCore -- just a step
1126         along the path to frame lifetime being handled completely in WebCore.
1127
1128         * bridge/mac/FrameMac.mm:
1129         (WebCore::FrameMac::setView): Move platform-independent parts of this
1130         method into Frame.
1131         * page/Frame.cpp:
1132         (WebCore::Frame::setView): Adding platform-independent parts of
1133         FrameMac::setView
1134         (WebCore::Frame::detachChildren): New method to accomplish what
1135         -[WebFrameBridge _detachChildren] currently does.
1136         (WebCore::Frame::clear): Call detachChildren
1137         * page/Frame.h: Add declaration for detachChildren
1138
1139 2006-10-04  Alice Liu  <alice.liu@apple.com>
1140
1141         Reviewed by Darin.
1142
1143         Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
1144
1145         * xml/xmlhttprequest.cpp:
1146         (WebCore::XMLHttpRequest::setRequestHeader):
1147         removed exception set when the request is not open yet
1148
1149 2006-10-04  Anders Carlsson  <acarlsson@apple.com>
1150
1151         Reviewed by John Sullivan.
1152
1153         <rdar://problem/4654328>
1154         Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
1155         
1156         * loader/PluginDocument.cpp:
1157         (WebCore::PluginTokenizer::writeRawData):
1158         Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
1159
1160 2006-10-03  Alexey Proskuryakov  <ap@nypop.com>
1161
1162         Reviewed by Tim H.
1163
1164         http://bugs.webkit.org/show_bug.cgi?id=11130
1165         Convert "undefined" to AE missing value
1166
1167         * bridge/mac/WebCoreFrameBridge.mm:
1168         (aeDescFromJSValue): return missing value for UndefinedType.
1169
1170 2006-10-03  Dave Hyatt  <hyatt@apple.com>
1171
1172         Scrolling work.  Eliminate convertTo/FromContainingWindow as cross-platform functions.  Add back in
1173         the windowToContents/contentsToWindow functions.
1174         
1175         Reviewed by anders
1176
1177         * bridge/mac/FrameMac.mm:
1178         (WebCore::FrameMac::eventMayStartDrag):
1179         (WebCore::FrameMac::dragHysteresisExceeded):
1180         (WebCore::FrameMac::mouseDown):
1181         (WebCore::FrameMac::shouldDragAutoNode):
1182         (WebCore::FrameMac::sendContextMenuEvent):
1183         * bridge/mac/FrameViewMac.mm:
1184         (WebCore::FrameView::passMousePressEventToScrollbar):
1185         * bridge/mac/WebCoreFrameBridge.mm:
1186         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
1187         * dom/EventTargetNode.cpp:
1188         (WebCore::EventTargetNode::dispatchMouseEvent):
1189         (WebCore::EventTargetNode::dispatchWheelEvent):
1190         * page/Frame.cpp:
1191         (WebCore::Frame::selectClosestWordFromMouseEvent):
1192         (WebCore::Frame::handleMousePressEventTripleClick):
1193         (WebCore::Frame::handleMousePressEventSingleClick):
1194         (WebCore::Frame::handleMouseMoveEvent):
1195         (WebCore::Frame::handleMouseReleaseEvent):
1196         * page/FrameView.cpp:
1197         (WebCore::FrameView::handleMousePressEvent):
1198         (WebCore::FrameView::handleMouseDoubleClickEvent):
1199         (WebCore::selectCursor):
1200         (WebCore::FrameView::handleMouseMoveEvent):
1201         (WebCore::FrameView::handleMouseReleaseEvent):
1202         (WebCore::FrameView::dispatchDragEvent):
1203         (WebCore::FrameView::prepareMouseEvent):
1204         (WebCore::FrameView::handleWheelEvent):
1205         * page/FrameView.h:
1206         * platform/ScrollBar.cpp:
1207         (WebCore::ScrollBar::setValue):
1208         * platform/ScrollView.h:
1209         * platform/Widget.h:
1210         (WebCore::Widget::scrolled):
1211         * platform/mac/ScrollViewMac.mm:
1212         (WebCore::ScrollView::contentsToWindow):
1213         (WebCore::ScrollView::windowToContents):
1214         (WebCore::ScrollView::scrollbarUnderMouse):
1215         * platform/mac/WidgetMac.mm:
1216         * rendering/RenderLayer.cpp:
1217         (WebCore::RenderLayer::resize):
1218         (WebCore::RenderLayer::positionScrollbars):
1219         * rendering/RenderReplaced.cpp:
1220         (WebCore::RenderReplaced::shouldPaint):
1221         * rendering/RenderView.cpp:
1222         * rendering/RenderView.h:
1223         * rendering/RenderWidget.cpp:
1224         (WebCore::RenderWidget::setWidget):
1225
1226 2006-09-26  David Smith  <catfish.man@gmail.com>
1227
1228         Reviewed by Timothy.
1229
1230         http://bugs.webkit.org/show_bug.cgi?id=3723
1231         Add -scrollDOMRangeToVisible:
1232
1233         No automated tests are possible as this code path isn't reachable from JavaScript.
1234
1235         * bridge/mac/WebCoreFrameBridge.h:
1236         * bridge/mac/WebCoreFrameBridge.mm:
1237         (-[WebCoreFrameBridge scrollDOMRangeToVisible:]):
1238
1239 2006-10-03  Graham Dennis  <graham.dennis@gmail.com>
1240
1241         Reviewed by Timothy.
1242
1243         <http://bugs.webkit.org/show_bug.cgi?id=10338>
1244         When contentEditable, cursor doesn't change to hand
1245         
1246         Allow the behaviour of editable links to be specified by a WebPreference
1247         The preference WebKitEditableLinkBehavior has four options:
1248          - AlwaysLive: Safari 2.0 behaviour
1249          - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
1250          - LiveWhenNotFocused: Editable links are live only when their editable block is not
1251              focused, or when the shift key is pressed
1252          - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
1253          
1254         No layout tests, just a modification of a manual-test as it isn't possible to test
1255         this automatically.
1256
1257         * bridge/mac/WebCoreSettings.h:
1258         * bridge/mac/WebCoreSettings.mm:
1259         (-[WebCoreSettings setEditableLinkBehavior:]):
1260         (-[WebCoreSettings editableLinkBehavior]):
1261         * html/HTMLAnchorElement.cpp:
1262         (WebCore::HTMLAnchorElement::HTMLAnchorElement):
1263         (WebCore::HTMLAnchorElement::defaultEventHandler):
1264         (WebCore::HTMLAnchorElement::setActive):
1265         * html/HTMLAnchorElement.h:
1266         * manual-tests/contenteditable-link.html:
1267         * page/FrameView.cpp:
1268         (WebCore::nodeIsNotBeingEdited):
1269         (WebCore::selectCursor):
1270         * page/Settings.h:
1271         (WebCore::Settings::):
1272         (WebCore::Settings::Settings):
1273         (WebCore::Settings::editableLinkBehavior):
1274         (WebCore::Settings::setEditableLinkBehavior):
1275
1276 2006-10-03  Beth Dakin  <bdakin@apple.com>
1277
1278         Reviewed Darin.
1279
1280         No test cases needed.
1281
1282         Implemented a version of StringImpl::append that takes a UChar* and 
1283         a length.
1284
1285         * platform/StringImpl.cpp:
1286         (WebCore::StringImpl::append):
1287         (WebCore::StringImpl::insert): Call new append instead of making a 
1288         new StringImpl.
1289         * platform/StringImpl.h:
1290
1291 2006-10-03  MorganL  <morganl.webkit@yahoo.com>
1292
1293         Reviewed by Darin.
1294
1295         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
1296         HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
1297
1298         * platform/win/ResourceLoaderWin.cpp:
1299         (WebCore::ResourceLoader::onHandleCreated):
1300
1301 2006-10-02  Geoffrey Garen  <ggaren@apple.com>
1302
1303         Feared, loathed, reviewed by Darin.
1304
1305         More frame/iframe merging. Merged IFRAME::willRemove and IFRAME::detach 
1306         into FRAME, plus other cleanup.
1307         
1308         No new behavior, so no new test. Layout tests pass. Basic browsing and
1309         Mail editing seem to work.
1310         
1311         * dom/Node.cpp:
1312         (WebCore::Node::detach): Removed random commented-out code.
1313         * html/HTMLFrameElement.cpp:
1314         (WebCore::HTMLFrameElement::isURLAllowed): 
1315         (1) Removed reference to FrameView, to dissociate frame loading from rendering.
1316         (2) Renamed newURL to completeURL because the difference between newURL
1317         and URLString is that newURL is a KURL that is the complete version of URLString,
1318         not that it is new.
1319         (WebCore::HTMLFrameElement::willRemove): 
1320         (1) Removed close() call and moved close() code into willRemove(), also removing 
1321         close() call from detach(), since willRemove is the well-defined place 
1322         from DOM tear-down, not detach().
1323         (2) Removed manual renderer detach code because the DOM is not responsible
1324         for managing the render tree. I confirmed that this change not
1325         regress <rdar://problem/4132581>.
1326         (3) Removed questionable ASSERT. The ASSERT assumed that iframe elements
1327         lost their content frames after being removed from the DOM. That's our 
1328         current behavior, but it's going to change in future rounds of refactoring.
1329         This also fixes <rdar://problem/4750835>.
1330         (WebCore::HTMLFrameElement::setLocation): Removed wacky manual calls to
1331         attach/detach, because the render tree should not be in charge of deciding
1332         when to load.
1333         * html/HTMLFrameElement.h:
1334         * html/HTMLIFrameElement.cpp:
1335         (WebCore::HTMLIFrameElement::attach): Renamed renderPart to renderPartObject,
1336         because the renderer is a renderPartObject, not a renderPart.
1337         * html/HTMLIFrameElement.h:
1338
1339 2006-10-03  Mark Rowe  <bdash@webkit.org>
1340
1341         Reviewed by Mitz.
1342
1343         http://bugs.webkit.org/show_bug.cgi?id=11137
1344         Bug 11137: GdkLauncher dies with "pure virtual method called" if
1345         window is closed while page still loading
1346
1347         * platform/gdk/FrameGdk.cpp:
1348         (WebCore::FrameGdk::~FrameGdk): Call cancelAndClear to allow virtual
1349         methods to be called before the FrameGdk portion of "this" is torn down.
1350
1351 2006-10-03  Adam Roben  <aroben@apple.com>
1352
1353         Reviewed by Darin.
1354
1355         Handle tab key presses in the DOM.
1356
1357         * dom/EventTargetNode.cpp:
1358         (WebCore::EventTargetNode::defaultEventHandler): Add tab key handling.
1359         * page/FrameView.cpp:
1360         (WebCore::FrameView::advanceFocus): Rename and reimplement
1361         focusNextPrevNode. Now we just call Element::focus().
1362         * page/FrameView.h: Rename focusNextPrevNode to advanceFocus and make
1363         it public.
1364
1365 2006-10-03  Justin Garcia  <justin.garcia@apple.com>
1366
1367         Reviewed by mjs
1368         
1369         <rdar://problem/4760612>
1370         TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints
1371         
1372         No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.
1373         
1374         * dom/Range.cpp:
1375         (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming 
1376         positions are non-null since most of it's callers would be in a bad state if the positions 
1377         were null.  boundaryPointsValid, which calls compareBoundaryPoints, is an exception.  
1378         Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it 
1379         from entering compareBoundaryPoints and hitting the assert.
1380
1381 2006-10-03  Adele Peterson  <adele@apple.com>
1382
1383         Reviewed by Geoff.
1384
1385         Make code for turning off new listbox implementation mac-only, since there's no implementation on other platforms.
1386
1387         * html/HTMLSelectElement.cpp:
1388         (WebCore::HTMLSelectElement::recalcStyle):
1389         (WebCore::HTMLSelectElement::isKeyboardFocusable):
1390         (WebCore::HTMLSelectElement::isMouseFocusable):
1391         (WebCore::HTMLSelectElement::createRenderer):
1392         (WebCore::HTMLSelectElement::setRecalcListItems):
1393         (WebCore::HTMLSelectElement::notifyOptionSelected):
1394         (WebCore::HTMLSelectElement::defaultEventHandler):
1395
1396 2006-10-04  Darin Adler  <darin@apple.com>
1397
1398         Reviewed by Geoff.
1399
1400         - fix http://bugs.webkit.org/show_bug.cgi?id=11132
1401           Caret disappears when you're typing
1402
1403         * editing/SelectionController.cpp:
1404         (WebCore::SelectionController::setSelection): Remove unnecessary call to
1405         clearCaretRectIfNeeded. The recomputeCaretRect now takes care of this.
1406         (WebCore::SelectionController::recomputeCaretRect): Explicitly set m_needsLayout
1407         to false so we can get the old caret repaint rect. Later we need to change the
1408         design so getting the rect doesn't have a side effect of causing a layout without
1409         invalidation.
1410
1411 2006-10-03  David Harrison  <harrison@apple.com>
1412
1413         Reviewed by Maciej.
1414
1415         <rdar://problem/4671286> Candidate Window isn't displayed and only first candidate is displayed at typing location.
1416
1417         Updated test:
1418         * fast/text/justified-text-rect.html
1419
1420         * bridge/mac/WebCoreFrameBridge.mm:
1421         (-[WebCoreFrameBridge convertToNSRange:]):
1422         (-[WebCoreFrameBridge convertToDOMRange:]):
1423         Make the selection's root editable element (or the document itself) be
1424         the basis for NSRange conversions. This supports "shadow DOM" like
1425         that for text fields and text areas.
1426         
1427         * editing/CompositeEditCommand.cpp:
1428         (WebCore::CompositeEditCommand::moveParagraphs):
1429         Pass the document element as the scope.
1430         
1431         * editing/TextIterator.cpp:
1432         (WebCore::TextIterator::rangeFromLocationAndLength):
1433         Make the first parameter the scope.
1434         
1435         * editing/TextIterator.h:
1436         Make the first parameter of rangeFromLocationAndLength() the scope.
1437
1438 2006-10-03  Nikolas Zimmermann  <zimmermann@kde.org>
1439
1440         Reviewed by Eric.
1441
1442         Fix Qt/Linux build.
1443
1444         * CMakeLists.txt: Add counter related files.
1445
1446 2006-10-03  Mark Rowe  <bdash@webkit.org>
1447
1448         Reviewed by Eric.
1449
1450         http://bugs.webkit.org/show_bug.cgi?id=10981
1451         Linux/GDK build fixes
1452
1453         Based on a patch by Krzysztof Kowalczyk.
1454
1455         * WebCoreSources.bkl:
1456         * platform/gdk/FrameGdk.cpp:
1457         (WebCore::doScroll):
1458         (WebCore::FrameGdk::handleGdkEvent):
1459         * platform/gdk/PlatformScrollBar.h: Added.
1460         (WebCore::PlatformScrollBar::isWidget):
1461         * platform/gdk/ScrollViewGdk.cpp:
1462         * platform/gdk/TemporaryLinkStubs.cpp:
1463         (FrameView::passMousePressEventToScrollbar):
1464         (FrameView::passMousePressEventToSubframe):
1465         (FrameView::passMouseReleaseEventToSubframe):
1466         (FrameView::passMouseMoveEventToSubframe):
1467         (FrameView::passWheelEventToSubframe):
1468         (Cursor::Cursor):
1469         (Widget::invalidate):
1470         (Widget::invalidateRect):
1471         (ScrollView::wheelEvent):
1472         (ScrollView::convertToContainingWindow):
1473         (ScrollView::convertFromContainingWindow):
1474         (GraphicsContext::clip):
1475         (PlatformScrollBar::PlatformScrollBar):
1476         (PlatformScrollBar::updateThumbPosition):
1477         (PlatformScrollBar::updateThumbProportion):
1478         (ScrollBar::ScrollBar):
1479         (ScrollBar::setProportion):
1480         (WebCore::supportedKeySizes):
1481         (WebCore::signedPublicKeyAndChallengeString):
1482         * platform/gdk/WheelEventGdk.cpp:
1483         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1484         * platform/gdk/WidgetGdk.cpp:
1485         (WebCore::Widget::convertToContainingWindow):
1486         (WebCore::Widget::convertFromContainingWindow):
1487
1488 2006-10-02  Adam Roben  <aroben@apple.com>
1489
1490         Reviewed by Maciej.
1491
1492         Let Windows determine which mouse button is pressed.
1493
1494         * platform/PlatformMouseEvent.h: Add message parameter to constructor.
1495         * platform/win/MouseEventWin.cpp:
1496         (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
1497         parameter to determine which mouse button is pressed.
1498
1499 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
1500
1501         Reviewed by anders
1502         
1503         Build fix
1504         
1505         * editing/SelectionController.cpp:
1506         (WebCore::SelectionController::empty):
1507         * editing/SelectionController.h:
1508
1509 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
1510
1511         Reviewed by john
1512         
1513         <rdar://problem/4755287>
1514         Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
1515
1516         * editing/markup.cpp:
1517         (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced 
1518         elements).  Don't skip blocks that aren't containers (like horizontal rules).
1519
1520 2006-10-03  Darin Adler  <darin@apple.com>
1521
1522         Reviewed by Justin Garcia.
1523
1524         - correct mistaken code that would restart blinking every
1525           time "invalidateSelection" is called even if the caret
1526           has not moved
1527
1528         * editing/SelectionController.h:
1529         * editing/SelectionController.cpp:
1530         (WebCore::SelectionController::setSelection): Update for name change.
1531         (WebCore::SelectionController::recomputeCaretRect): New function.
1532         Computes caret rect and does any necessary invalidation if the rect
1533         changes.
1534         (WebCore::SelectionController::invalidateCaretRect): Renamed from
1535         needsCaretRepaint. Invalidates the caret rect unconditionally. Also
1536         calls recomputeCaretRect as a side effect.
1537
1538         * page/Frame.cpp:
1539         (WebCore::Frame::invalidateSelection): Remove unneeded call to
1540         clearCaretRectIfNeeded.
1541         (WebCore::Frame::clearCaretRectIfNeeded): Updated for name change.
1542         (WebCore::Frame::selectionLayoutChanged): Restructured to use the new
1543         recomputeCaretRect function and not restart blinking if caret has
1544         not changed position.
1545         (WebCore::Frame::caretBlinkTimerFired): Removed some checks that
1546         are not needed since selectionLayoutChanged already checks these.
1547
1548         * page/FramePrivate.h: Removed unused m_blinkCaret.
1549
1550 2006-10-02  Beth Dakin  <bdakin@apple.com>
1551
1552         Reviewed by Adam.
1553
1554         Build fix. Add counters to vcproj.
1555
1556         * WebCore.vcproj/WebCore/WebCore.vcproj:
1557
1558 2006-10-02  Brady Eidson  <beidson@apple.com>
1559
1560         Reviewed by Adele
1561
1562         If the Icon DB schema changes underneath you, the latest ToT can crash and burn when writing
1563         icon data out because we don't correctly check SQL error conditions.
1564
1565         * loader/icon/IconDataCache.cpp:
1566         (WebCore::IconDataCache::writeToDatabase):
1567
1568 2006-10-02  Steve Falkenburg  <sfalken@apple.com>
1569
1570         Reviewed by Hyatt.
1571
1572         Added method to find out whether a layout has occurred.
1573
1574         * page/FrameView.cpp:
1575         (WebCore::FrameView::didFirstLayout):
1576         * page/FrameView.h:
1577
1578 2006-10-02  Beth Dakin  <bdakin@apple.com>
1579
1580         Reviewed by Darin.
1581
1582         Initial implementation of CSS2 counters. See http://
1583         bugs.webkit.org/show_bug.cgi?id=4980 for more details.
1584
1585         * WebCore.xcodeproj/project.pbxproj:
1586         * css/CSSComputedStyleDeclaration.cpp: 
1587         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return 
1588         the increment/reset list now that this is implemented.
1589         * css/CSSPrimitiveValue.cpp:
1590         (WebCore::CSSPrimitiveValue::cssText): 
1591         * css/Counter.h:
1592         (WebCore::Counter::Counter):
1593         (WebCore::Counter::~Counter):
1594         (WebCore::Counter::identifier):
1595         (WebCore::Counter::listStyle):
1596         (WebCore::Counter::separator):
1597         (WebCore::Counter::listStyleNumber):
1598         (WebCore::Counter::setIdentifier):
1599         (WebCore::Counter::setListStyle):
1600         (WebCore::Counter::setSeparator):
1601         * css/cssparser.cpp:
1602         (WebCore::CSSParser::addProperty): Take care of reset/increment
1603         (WebCore::CSSParser::parseValue):
1604         (WebCore::CSSParser::parseContent): content can now take counters
1605         (WebCore::CSSParser::parseCounterContent): Parse counter() and 
1606         counters()
1607         (WebCore::CSSParser::parseCounter): Parse counter-reset and 
1608         counter-increment
1609         * css/cssparser.h:
1610         * css/cssstyleselector.cpp:
1611         (WebCore::CSSStyleSelector::matchUARules):
1612         (WebCore::CSSStyleSelector::applyProperty):
1613         * platform/PlatformString.h:
1614         * platform/String.cpp:
1615         (WebCore::String::insert): Implemented a version of insert that 
1616         accepts a UChar* and a length.
1617         * platform/StringImpl.cpp:
1618         (WebCore::StringImpl::insert): Same as above.
1619         * platform/StringImpl.h:
1620         * rendering/CounterListItem.h: Added.
1621         * rendering/CounterNode.cpp: Added.
1622         (WebCore::CounterNode::CounterNode):
1623         (WebCore::CounterNode::insertAfter):
1624         (WebCore::CounterNode::removeChild):
1625         (WebCore::CounterNode::remove):
1626         (WebCore::CounterNode::setUsesSeparator):
1627         (WebCore::CounterNode::recountAndGetNext):
1628         (WebCore::CounterNode::recountTree):
1629         (WebCore::CounterNode::setSelfDirty):
1630         (WebCore::CounterNode::setParentDirty):
1631         * rendering/CounterNode.h: Added.
1632         (WebCore::CounterNode::~CounterNode):
1633         (WebCore::CounterNode::parent):
1634         (WebCore::CounterNode::previousSibling):
1635         (WebCore::CounterNode::nextSibling):
1636         (WebCore::CounterNode::firstChild):
1637         (WebCore::CounterNode::lastChild):
1638         (WebCore::CounterNode::value):
1639         (WebCore::CounterNode::setValue):
1640         (WebCore::CounterNode::count):
1641         (WebCore::CounterNode::setCount):
1642         (WebCore::CounterNode::setHasSeparator):
1643         (WebCore::CounterNode::isReset):
1644         (WebCore::CounterNode::hasSeparator):
1645         (WebCore::CounterNode::willNeedLayout):
1646         (WebCore::CounterNode::setWillNeedLayout):
1647         (WebCore::CounterNode::isRoot):
1648         (WebCore::CounterNode::setRenderer):
1649         (WebCore::CounterNode::renderer):
1650         * rendering/CounterResetNode.cpp: Added.
1651         (WebCore::CounterResetNode::CounterResetNode):
1652         (WebCore::CounterResetNode::insertAfter):
1653         (WebCore::CounterResetNode::removeChild):
1654         (WebCore::CounterResetNode::recountAndGetNext):
1655         (WebCore::CounterResetNode::setParentDirty):
1656         (WebCore::CounterResetNode::updateTotal):
1657         * rendering/CounterResetNode.h: Added.
1658         (WebCore::CounterResetNode::firstChild):
1659         (WebCore::CounterResetNode::lastChild):
1660         (WebCore::CounterResetNode::isReset):
1661         (WebCore::CounterResetNode::total):
1662         * rendering/RenderContainer.cpp:
1663         (WebCore::RenderContainer::updatePseudoChildForObject): Account for 
1664         counter content.
1665         * rendering/RenderCounter.cpp: Added.
1666         (WebCore::RenderCounter::RenderCounter):
1667         (WebCore::RenderCounter::layout):
1668         (WebCore::toRoman):
1669         (WebCore::toLetterString):
1670         (WebCore::toHebrew):
1671         (WebCore::RenderCounter::convertValueToType):
1672         (WebCore::RenderCounter::calcMinMaxWidth):
1673         * rendering/RenderCounter.h: Added.
1674         (WebCore::RenderCounter::renderName):
1675         (WebCore::RenderCounter::isCounter):
1676         * rendering/RenderObject.cpp:
1677         (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to 
1678         maps of CounterNodes
1679         (WebCore::RenderObject::RenderObject):
1680         (WebCore::RenderObject::destroy): Destroy the maps.
1681         (WebCore::RenderObject::findCounter): Finds/creates counters.
1682         * rendering/RenderObject.h:
1683         (WebCore::RenderObject::isCounter):
1684         * rendering/RenderStyle.cpp:
1685         (WebCore::StyleVisualData::StyleVisualData):
1686         (WebCore::RenderStyle::arenaDelete):
1687         (WebCore::RenderStyle::RenderStyle):
1688         (WebCore::RenderStyle::diff):
1689         (WebCore::RenderStyle::setContent):
1690         (WebCore::ContentData::clearContent):
1691         (WebCore::RenderStyle::counterDataEquivalent):
1692         (WebCore::hasCounter):
1693         (WebCore::RenderStyle::hasCounterReset):
1694         (WebCore::RenderStyle::hasCounterIncrement):
1695         (WebCore::readCounter):
1696         (WebCore::RenderStyle::counterReset):
1697         (WebCore::RenderStyle::counterIncrement):
1698         * rendering/RenderStyle.h:
1699         (WebCore::StyleVisualData::operator==):
1700         (WebCore::CounterData::CounterData):
1701         (WebCore::CounterData::identifier):
1702         (WebCore::CounterData::listStyle):
1703         (WebCore::CounterData::separator):
1704         (WebCore::ContentData::contentCounter):
1705         (WebCore::ContentData::):
1706         (WebCore::RenderStyle::counterIncrement):
1707         (WebCore::RenderStyle::counterReset):
1708         (WebCore::RenderStyle::setCounterIncrement):
1709         (WebCore::RenderStyle::setCounterReset):
1710         (WebCore::RenderStyle::setCounterResetList):
1711         (WebCore::RenderStyle::setCounterIncrementList):
1712         (WebCore::RenderStyle::counterResetValueList):
1713         (WebCore::RenderStyle::counterIncrementValueList):
1714
1715 2006-10-02  Adele Peterson  <adele@apple.com>
1716
1717         Reviewed by Adam.
1718
1719         - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
1720
1721         There are a few outstanding issues, so I've left the old code in for now.  So you can use the old-style listboxes
1722         by using "-webkit-appearance:none".
1723
1724         * css/html4.css:
1725
1726 2006-10-02  David Harrison  <harrison@apple.com>
1727
1728         Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
1729         addressed at a deeper level by r16696, the patch for <http://bugs.webkit.org/show_bug.cgi?id=10842>.
1730         Left the layout test.
1731         
1732         * rendering/bidi.cpp:
1733         (WebCore::checkMidpoints):
1734
1735 2006-10-02  Nikolas Zimmermann  <zimmermann@kde.org>
1736
1737         Reviewed by eseidel.  Landed by eseidel.
1738
1739         Fix Qt/Linux build.
1740
1741         * platform/qt/TemporaryLinkStubs.cpp: s/DeprecatedStringList/Vector<String>/
1742         (WebCore::supportedKeySizes):
1743
1744 2006-10-02  Nikolas Zimmermann <zimmermann@kde.org>
1745
1746         Reviewed by eseidel & mjs.  Landed by eseidel.
1747
1748         Fix Qt/Linux build with older gcc 3.3.4.
1749         http://bugs.webkit.org/show_bug.cgi?id=11116
1750
1751         As discussed with Maciej, the GCC_ROOT_NS_HACK
1752         can be completely removed, as well as the friendship
1753         between cacheGlobalObject & the JS* objects.
1754
1755         * bindings/scripts/CodeGeneratorJS.pm: Remove friendship.
1756         * platform/image-decoders/png/pnggccrd.c: Fix comments for gcc3.
1757         (png_read_filter_row_mmx_avg):
1758         * platform/image-decoders/png/pngvcrd.c: Ditto.
1759         (png_mmx_support):
1760         (png_read_filter_row_mmx_avg):
1761
1762 2006-10-01  Maciej Stachowiak  <mjs@apple.com>
1763
1764         Rubber stamped by Alexey.
1765
1766         - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=10893 since it led to layout test crashes
1767
1768         * css/CSSGrammar.y:
1769
1770 2006-10-01  Eric Seidel  <eric@webkit.org>
1771
1772         Reviewed by mjs.
1773
1774         Eliminate a few more hotspots in SVG drawing code.
1775         
1776         No test cases were harmed in the making of this patch.  (And SVG has no perf tests.)
1777
1778         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1779         (WebCore::KRenderingPaintServerSolidQuartz::setup): use a single shared colorspace, avoid a few mallocs
1780         * platform/mac/ColorMac.mm:
1781         (+[WebCoreControlTintObserver WebCore]): store a single shared colorspace instance
1782
1783 2006-10-01  Geoffrey Garen  <ggaren@apple.com>
1784
1785         Reviewed by Maciej.
1786         
1787         More frame/iframe merging.
1788         
1789         - Removed needWidgetUpdate and related code. needWidgetUpdate is always
1790         false, so this was dead code.
1791         - Removed FIXME about setInViewSourceMode inside openURL(). openURL(), rather
1792         than attach(), is the correct place for setInViewSourceMode, because
1793         openURL() is the function that creates our frame.
1794         - Moved IFRAME insertedIntoDocument() code into FRAME, and removed FRAME
1795         code that did the same thing in other places.
1796         - Made FRAME's attach() method suffuciently generic so that IFRAME could
1797         call up to it, rather than skipping its superclass and calling up directly 
1798         to ELEMENT.
1799         - Changed a few IFRAME up-calls to ELEMENT into up-calls to FRAME.
1800         - Replaced ad hoc frame loading code in FRAME::attach() with call to
1801         openURL(), the designated frame loading function.
1802
1803         Layout tests pass. I added a layout test for viewsource mode, since I
1804         broke it in the course of writing this patch.
1805
1806 2006-10-01  Anders Carlsson  <acarlsson@apple.com>
1807
1808         Reviewed by Geoff.
1809
1810         * dom/Document.cpp:
1811         (WebCore::Document::recalcStyleSelector):
1812         * dom/Document.h:
1813         Get rid of availableStyleSheets() and remove DeprecatedStringList.h include.
1814         
1815         * dom/Node.h:
1816         Remove DeprecatedStringList class forward declaration.
1817         
1818         * editing/markup.cpp:
1819         Include DeprecatedStringList.h here since it's not included by Document.h anymore.
1820         
1821         * kcanvas/KCanvasTreeDebug.cpp:
1822         * kcanvas/KCanvasTreeDebug.h:
1823         Remove unused functions.
1824         
1825         * loader/loader.cpp:
1826         * page/Frame.cpp:
1827         * page/Frame.h:
1828         * page/FrameView.h:
1829         Fixup DeprecatedStringList.h includes.
1830
1831 2006-09-30  David Harrison  <harrison@apple.com>
1832
1833         Reviewed by John Sullivan.
1834
1835         <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point
1836
1837         Problem was that the decision to trim was based only on whether the character
1838         is a soft hyphen, which caused pretty much any Japanese character to go.
1839         Changed to decide based on whether the character is ignorable whitespace.
1840         
1841         Test:
1842         * fast/text/international/wrap-CJK-001.html
1843
1844         * rendering/bidi.cpp:
1845         (WebCore::isTrimmableChar):
1846         New. Checks whether character is whitespace that can be ignored
1847         according to the text node's style.
1848         trimmed from the end of wrapped line.
1849         (WebCore::checkMidpoints):
1850         Call isTrimmable() rather than checking for char != SOFT_HYPHEN.
1851
1852 2006-10-01  Anders Carlsson  <acarlsson@apple.com>
1853
1854         Reviewed by Mitz Pettel.
1855
1856         Convert the SVG code to use Vector<String> instead of DeprecatedStringList.
1857
1858         * ksvg2/svg/SVGColor.cpp:
1859         (WebCore::SVGColor::setRGBColor):
1860         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1861         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1862         (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
1863         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1864         (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
1865         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1866         (SVGFESpecularLightingElement::parseMappedAttribute):
1867         * ksvg2/svg/SVGFETurbulenceElement.cpp:
1868         (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
1869         * ksvg2/svg/SVGLengthList.cpp:
1870         * ksvg2/svg/SVGNumberList.cpp:
1871         (SVGNumberList::parse):
1872         * ksvg2/svg/SVGNumberList.h:
1873         * ksvg2/svg/SVGPreserveAspectRatio.cpp:
1874         (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
1875         * ksvg2/svg/SVGStringList.cpp:
1876         (WebCore::SVGStringList::reset):
1877         * ksvg2/svg/SVGStringList.h:
1878         * ksvg2/svg/SVGTransformable.cpp:
1879         (SVGTransformable::parseTransformAttribute):
1880
1881 2006-10-01  Nikolas Zimmermann  <zimmermann@kde.org>
1882
1883         Reviewed by Eric, tweaked and landed by ap.
1884
1885         Fix Qt/Linux build.
1886
1887         * CMakeLists.txt:
1888         * platform/qt/PlatformScrollBar.h:
1889         * platform/qt/TemporaryLinkStubs.cpp:
1890         (WebCore::ScrollBar::ScrollBar):
1891         (WebCore::PlatformScrollBar::PlatformScrollBar):
1892         (FrameView::passMousePressEventToSubframe):
1893         (FrameView::passMouseMoveEventToSubframe):
1894         (FrameView::passMouseReleaseEventToSubframe):
1895         (FrameView::passWheelEventToSubframe):
1896         (FrameView::passMousePressEventToScrollbar):
1897         * ksvg2/svg/SVGDocument.h:
1898
1899 2006-10-01  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1900
1901         Reviewed by Darin.
1902
1903         Fix for http://bugs.webkit.org/show_bug.cgi?id=10190
1904         REGRESSION: Repro crash when navigating away from an image document that hasn't finished loading
1905
1906         No test case added (probably requires new DumpRenderTree functionality)
1907
1908         * rendering/RenderImage.cpp:
1909         (WebCore::RenderImage::imageChanged): Added early return if the document is
1910         being destroyed.
1911
1912 2006-10-01  Graham Dennis  <graham.dennis@gmail.com>
1913
1914         Reviewed by Hyatt.
1915
1916         Fix for http://bugs.webkit.org/show_bug.cgi?id=10842
1917         REGRESSION (r15418): contenteditable div truncates rightmost Japanese character
1918         
1919         Make sure we only break after a space (and not any other valid line-break) if
1920         the style is -webkit-line-break: after-white-space (e.g. for a contentEditable div).
1921         I also did a logic shuffle at Mitz's request to prevent doing an if on the same expression
1922         twice in quick succession.
1923
1924         * rendering/bidi.cpp:
1925         (WebCore::RenderBlock::findNextLineBreak): 
1926
1927 2006-10-01  Alexey Proskuryakov  <ap@nypop.com>
1928
1929         Reviewed by Maciej and Darin.
1930
1931         http://bugs.webkit.org/show_bug.cgi?id=4372
1932         JavaScript document.write page form does not submit in Safari
1933
1934         Test: fast/forms/document-write.html
1935
1936         * page/Frame.cpp:
1937         (WebCore::Frame::submitForm): Don't check for parsing().
1938
1939 2006-10-01  Alexey Proskuryakov  <ap@nypop.com>
1940
1941         Build fix.
1942
1943         * bridge/mac/FrameViewMac.mm: Add missing #imports.
1944
1945 2006-10-01  Dave Hyatt  <hyatt@apple.com>
1946
1947         Refactor the code that passes mouse presses to the Mac scrollbar and make it cross-platform.
1948        
1949         Reviewed by mitz
1950
1951         * bridge/mac/FrameMac.mm:
1952         (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
1953         * bridge/mac/FrameViewMac.mm:
1954         (WebCore::FrameView::passMousePressEventToScrollbar):
1955         * page/FrameView.cpp:
1956         (WebCore::FrameView::handleMousePressEvent):
1957         (WebCore::FrameView::setMousePressed):
1958         * page/FrameView.h:
1959         * platform/win/TemporaryLinkStubs.cpp:
1960         (FrameView::passMousePressEventToScrollbar):
1961
1962 2006-09-30  Sam Weinig  <sam.weinig@gmail.com>
1963
1964         Reviewed by Darin.
1965
1966         Patch for http://bugs.webkit.org/show_bug.cgi?id=11102
1967         Add more SVG Objective-C DOM bindings
1968
1969         - Auto-generate Objective-C DOM bindings for DOMSVGAElement,
1970           DOMSVGAnimateColorElement, DOMSVGAnimateElement, DOMSVGAnimateTransformElement,
1971           DOMSVGAnimatedPathData, DOMSVGAnimatedPoints, DOMSVGAnimatedPreserveAspectRatio,
1972           DOMSVGAnimationElement, DOMSVGCircleElement, DOMSVGClipPathElement, DOMSVGColor,
1973           DOMSVGCursorElement, DOMSVGDefsElement, DOMSVGDescElement, DOMSVGDocument, 
1974           DOMSVGEllipseElement, DOMSVGPreserveAspectRatio, and DOMSVGURIReference.
1975
1976         * DerivedSources.make:
1977         * WebCore.xcodeproj/project.pbxproj:
1978         * bindings/objc/DOMInternal.h:
1979         * bindings/objc/DOMSVG.h:
1980         * bindings/scripts/CodeGeneratorObjC.pm:
1981         * ksvg2/svg/SVGAElement.idl:
1982         * ksvg2/svg/SVGAnimateColorElement.idl:
1983         * ksvg2/svg/SVGAnimateElement.idl:
1984         * ksvg2/svg/SVGAnimateTransformElement.idl:
1985         * ksvg2/svg/SVGAnimatedPathData.idl:
1986         * ksvg2/svg/SVGAnimatedPoints.idl:
1987         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl:
1988         * ksvg2/svg/SVGAnimationElement.idl:
1989         * ksvg2/svg/SVGCircleElement.idl:
1990         * ksvg2/svg/SVGClipPathElement.idl:
1991         * ksvg2/svg/SVGColor.idl:
1992         * ksvg2/svg/SVGCursorElement.idl:
1993         * ksvg2/svg/SVGDefsElement.idl:
1994         * ksvg2/svg/SVGDescElement.idl:
1995         * ksvg2/svg/SVGDocument.idl:
1996         * ksvg2/svg/SVGEllipseElement.idl:
1997         * ksvg2/svg/SVGPointList.idl:
1998         * ksvg2/svg/SVGPreserveAspectRatio.idl:
1999         * ksvg2/svg/SVGRect.idl:
2000         * ksvg2/svg/SVGSVGElement.idl:
2001
2002 2006-09-30  Maciej Stachowiak  <mjs@apple.com>
2003
2004         Reviewed by Adele.
2005
2006         - fix build
2007
2008         * platform/FloatRect.h:
2009         (WebCore::FloatRect::contains): Added; not exactly the same semantic as IntRect containment
2010         but more appropriate for path-type stuff.
2011         * platform/cg/PathCG.cpp:
2012         (WebCore::Path::contains): Don't use enclosingIntRect, just use FloatRect::contains.
2013
2014 2006-09-30  Alexey Proskuryakov  <ap@nypop.com>
2015
2016         Reviewed by Darin.
2017
2018         http://bugs.webkit.org/show_bug.cgi?id=11011
2019         External CSS is parsed as iso-8859-1 even though the main document is utf-8
2020
2021         Test: fast/encoding/css-charset-default.xhtml
2022
2023         * loader/CachedResourceClient.h:
2024         (WebCore::CachedResourceClient::setCSSStyleSheet):
2025         (WebCore::CachedResourceClient::setXSLStyleSheet):
2026         Divided setStyleSheet into setCSSStyleSheet and setXSLStyleSheet. The former
2027         takes an additional charset parameter, to be passed to CSSStyleSheet constructor.
2028
2029         * css/CSSImportRule.cpp:
2030         (WebCore::CSSImportRule::setCSSStyleSheet):
2031         (WebCore::CSSImportRule::insertedIntoParent): Default to parent stylesheet's charset.
2032         * css/CSSImportRule.h:
2033
2034         * css/CSSStyleSheet.cpp:
2035         (WebCore::CSSStyleSheet::CSSStyleSheet):
2036         * css/CSSStyleSheet.h:
2037         Added an m_charset member to be used when loading child stylesheets. Removed an unused m_implicit
2038         member. Changed some String parameters to const String&.
2039
2040         * css/StyleSheet.cpp:
2041         (WebCore::StyleSheet::StyleSheet):
2042         * css/StyleSheet.h:
2043         Changed some String parameters to const String&. Removed an unused (even unimplemented) constructor.
2044
2045         * css/StyleSheetList.cpp:
2046         (WebCore::StyleSheetList::length):
2047         (WebCore::StyleSheetList::item):
2048         * css/StyleSheetList.h:
2049         Special-casing implicit stylesheets seemed to be dead code, removed.
2050
2051         * dom/Document.cpp:
2052         (WebCore::Document::setCSSStyleSheet):
2053         (WebCore::Document::recalcStyleSelector):
2054         * dom/Document.h:
2055         Renamed setStyleSheet() to setCSSStyleSheet().
2056
2057         * dom/ProcessingInstruction.cpp:
2058         (WebCore::ProcessingInstruction::checkStyleSheet): Pass a correct charset to requestCSSStyleSheet().
2059         (WebCore::ProcessingInstruction::setCSSStyleSheet):
2060         (WebCore::ProcessingInstruction::setXSLStyleSheet):
2061         (WebCore::ProcessingInstruction::parseStyleSheet):
2062         * dom/ProcessingInstruction.h:
2063
2064         * html/HTMLLinkElement.cpp:
2065         (WebCore::HTMLLinkElement::process): Default to document encoding if a charset attribute 
2066         is not specified.
2067         (WebCore::HTMLLinkElement::setCSSStyleSheet):
2068         * html/HTMLLinkElement.h:
2069
2070         * html/HTMLStyleElement.cpp:
2071         (WebCore::HTMLStyleElement::childrenChanged):
2072         * ksvg2/svg/SVGStyleElement.cpp:
2073         (WebCore::SVGStyleElement::childrenChanged):
2074         Inherit URL and charset from the document.
2075
2076         * loader/Cache.cpp:
2077         (WebCore::Cache::requestCSSStyleSheet):
2078         * loader/Cache.h:
2079         Adjust for setStyleSheet() renaming.
2080
2081         * loader/CachedCSSStyleSheet.h: Removed an unused constructor.
2082         * loader/CachedCSSStyleSheet.cpp:
2083         (WebCore::CachedCSSStyleSheet::ref):
2084         (WebCore::CachedCSSStyleSheet::deref):
2085         (WebCore::CachedCSSStyleSheet::checkNotify):
2086         Pass the encoding to setCSSStyleSheet().
2087
2088         * loader/CachedXSLStyleSheet.cpp:
2089         (WebCore::CachedXSLStyleSheet::ref):
2090         (WebCore::CachedXSLStyleSheet::checkNotify):
2091         * loader/DocLoader.cpp:
2092         (WebCore::DocLoader::requestCSSStyleSheet):
2093         * loader/DocLoader.h:
2094         * page/Frame.cpp:
2095         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
2096         (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
2097         * xml/XSLImportRule.cpp:
2098         (WebCore::XSLImportRule::setXSLStyleSheet):
2099         (WebCore::XSLImportRule::loadSheet):
2100         * xml/XSLImportRule.h:
2101         Adjust for setStyleSheet() renaming.
2102
2103 2006-09-30  Rob Buis  <buis@kde.org>
2104
2105         Reviewed by eseidel.
2106
2107         http://bugs.webkit.org/show_bug.cgi?id=11096
2108         Hit testing for polylines fails
2109
2110         Fix Path::contains so it handles filled, non-closed paths too.
2111
2112         * platform/cg/PathCG.cpp:
2113         (WebCore::Path::contains):
2114
2115 2006-09-30  Dave Hyatt  <hyatt@apple.com>
2116
2117         Refactor subframe event handling to hide more of the Mac-specific logic from the cross-platform code.
2118         Stub out a capturing API that mimics the way Web browsers capture events and route them to specific
2119         subframes while the mouse is down.
2120       
2121         Reviewed by mitzpettel
2122
2123         * bridge/mac/FrameMac.h:
2124         * bridge/mac/FrameMac.mm:
2125         (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
2126         (WebCore::FrameMac::passWheelEventToWidget):
2127         * bridge/mac/FrameViewMac.mm:
2128         (WebCore::FrameView::passMousePressEventToSubframe):
2129         (WebCore::FrameView::passMouseMoveEventToSubframe):
2130         (WebCore::FrameView::passMouseReleaseEventToSubframe):
2131         (WebCore::FrameView::passWheelEventToSubframe):
2132         * page/Frame.cpp:
2133         * page/Frame.h:
2134         * page/FrameView.cpp:
2135         (WebCore::subframeForTargetNode):
2136         (WebCore::FrameView::handleMousePressEvent):
2137         (WebCore::FrameView::handleMouseDoubleClickEvent):
2138         (WebCore::FrameView::handleMouseMoveEvent):
2139         (WebCore::FrameView::handleMouseReleaseEvent):
2140         (WebCore::FrameView::handleWheelEvent):
2141         * page/FrameView.h:
2142         * platform/ScrollBar.h:
2143         (WebCore::ScrollBar::handleMouseMoveEvent):
2144         (WebCore::ScrollBar::handleMouseOutEvent):
2145         * platform/Widget.h:
2146         (WebCore::Widget::handleMouseMoveEvent):
2147         (WebCore::Widget::handleMouseReleaseEvent):
2148         * platform/win/TemporaryLinkStubs.cpp:
2149         (FrameView::passMousePressEventToSubframe):
2150         (FrameView::passMouseMoveEventToSubframe):
2151         (FrameView::passMouseReleaseEventToSubframe):
2152         (FrameView::passWheelEventToSubframe):
2153         (Widget::capturingMouse):
2154         (Widget::setCapturingMouse):
2155         (Widget::capturingTarget):
2156         (Widget::capturingChild):
2157         (Widget::setCapturingChild):
2158         * rendering/RenderView.cpp:
2159         (WebCore::RenderView::paintBoxDecorations):
2160
2161 2006-09-29  MorganL  <morganl.webkit@yahoo.com>
2162
2163         Reviewed by Adele.
2164
2165         Fixes windows bustage:
2166         http://bugs.webkit.org/show_bug.cgi?id=11093
2167
2168         * platform/win/PlatformScrollBar.h:
2169         * platform/win/TemporaryLinkStubs.cpp:
2170         (PlatformScrollBar::PlatformScrollBar):
2171         (ScrollBar::ScrollBar):
2172
2173 2006-09-29  David Hyatt  <hyatt@apple.com>
2174
2175         Eliminate RenderLayer::gScrollBar in favor of caching the scrollbar hit
2176         in RenderObject::NodeInfo (and then propagating that Widget to
2177         MouseEventWithHitTestResults).
2178
2179         This allows RenderListBox and RenderBlock to do the same thing when the
2180         mouse is over the scrollbar.
2181
2182         Also land fix to support font-size: 0.
2183
2184         Reviewed by mjs (scrollbar), eric (font-size)
2185
2186         * dom/Document.cpp:
2187         (WebCore::Document::prepareMouseEvent):
2188         * page/Frame.cpp:
2189         (WebCore::Frame::passWidgetMouseDownEventToWidget):
2190         * page/FrameView.cpp:
2191         (WebCore::selectCursor):
2192         (WebCore::FrameView::handleMouseMoveEvent):
2193         (WebCore::FrameView::dispatchMouseEvent):
2194         * page/MouseEventWithHitTestResults.cpp:
2195         (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
2196         * page/MouseEventWithHitTestResults.h:
2197         (WebCore::MouseEventWithHitTestResults::scrollbar):
2198         * rendering/RenderBlock.cpp:
2199         (WebCore::RenderBlock::isPointInScrollbar):
2200         (WebCore::RenderBlock::nodeAtPoint):
2201         * rendering/RenderBlock.h:
2202         * rendering/RenderLayer.cpp:
2203         (WebCore::RenderLayer::hitTest):
2204         * rendering/RenderLayer.h:
2205         (WebCore::RenderLayer::getHiddenBehavior):
2206         * rendering/RenderListBox.cpp:
2207         (WebCore::RenderListBox::RenderListBox):
2208         (WebCore::RenderListBox::~RenderListBox):
2209         (WebCore::RenderListBox::isPointInScrollbar):
2210         * rendering/RenderListBox.h:
2211         * rendering/RenderObject.h:
2212         (WebCore::RenderObject::NodeInfo::NodeInfo):
2213         (WebCore::RenderObject::NodeInfo::scrollbar):
2214         (WebCore::RenderObject::NodeInfo::setScrollbar):
2215
2216 2006-09-29  MorganL  <morganl.webkit@yahoo.com>
2217
2218         Reviewed by Adele.
2219
2220         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
2221
2222         * platform/win/ScrollViewWin.cpp:
2223         (WebCore::ScrollView::convertToContainingWindow):
2224         (WebCore::ScrollView::convertFromContainingWindow):
2225         * platform/win/WidgetWin.cpp:
2226         (WebCore::Widget::convertToContainingWindow):
2227         (WebCore::Widget::convertFromContainingWindow):
2228
2229 2006-09-29  Adele Peterson  <adele@apple.com>
2230
2231         Updated with new argument for PlatformScrollBar.
2232
2233         * platform/win/TemporaryLinkStubs.cpp:
2234         (PlatformScrollBar::PlatformScrollBar):
2235
2236 2006-09-29  Adele Peterson  <adele@apple.com>
2237
2238         Reviewed by Hyatt.
2239
2240         Fixing build bustage with cast to int.
2241
2242         * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::lastSelectedListIndex):
2243
2244 2006-09-29  Adele Peterson  <adele@apple.com>
2245
2246         Fixing accidental include.
2247
2248         * rendering/RenderListBox.cpp:
2249
2250 2006-09-29  Adele Peterson  <adele@apple.com>
2251
2252         Adding RenderListBox files.
2253
2254         * WebCore.vcproj/WebCore/WebCore.vcproj:
2255
2256 2006-09-29  Adele Peterson  <adele@apple.com>
2257
2258         Reviewed by Adam.
2259
2260         Initial implementation of engine-based list box control.
2261
2262         * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
2263
2264         * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
2265         * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
2266         (WebCore::FrameMac::FrameMac):
2267         (WebCore::FrameMac::handleMousePressEvent):
2268         (WebCore::FrameMac::handleMouseMoveEvent):
2269         (WebCore::FrameMac::mouseDown):
2270
2271         * page/Frame.cpp:
2272         (WebCore::Frame::handleMouseMoveEvent):
2273         (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
2274         (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
2275         (WebCore::Frame::autoscrollTimerFired): ditto.
2276         (WebCore::Frame::stopAutoscrollTimer): ditto.
2277         (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
2278         * page/Frame.h:
2279         * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
2280
2281         * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
2282         (WebCore::FrameViewPrivate::reset):
2283         (WebCore::FrameView::currentMousePosition):
2284         (WebCore::FrameView::handleMousePressEvent):
2285         (WebCore::FrameView::handleMouseDoubleClickEvent):
2286         (WebCore::selectCursor):
2287         (WebCore::FrameView::handleMouseMoveEvent):
2288         (WebCore::FrameView::handleMouseReleaseEvent):
2289         * page/FrameView.h:
2290
2291         * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument.  The list box will use a smaller scroll bar size.
2292         * platform/ScrollBar.h:
2293         (WebCore::):
2294         (WebCore::ScrollBar::controlSize):
2295         * platform/mac/PlatformScrollBar.h:
2296         * platform/mac/PlatformScrollBarMac.mm:
2297         (NSControlSizeForScrollBarControlSize):
2298         (-[WebCoreScrollBar initWithPlatformScrollBar:]):
2299         (WebCore::PlatformScrollBar::PlatformScrollBar):
2300
2301         * rendering/RenderBlock.h:
2302         * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
2303         * rendering/RenderLayer.h:
2304         * rendering/RenderObject.cpp:
2305         (WebCore::RenderObject::shouldAutoscroll):
2306         (WebCore::RenderObject::autoscroll):
2307         * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
2308
2309         * css/html4.css: Added properties for new list boxes.
2310
2311         * html/HTMLOptionElement.cpp:
2312         (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
2313         (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
2314         * html/HTMLOptionElement.h: Added disabled method.
2315
2316         * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
2317         (WebCore::HTMLSelectElement::recalcStyle):
2318         (WebCore::HTMLSelectElement::lastSelectedListIndex):
2319         (WebCore::HTMLSelectElement::deselectItems):
2320         (WebCore::HTMLSelectElement::setSelectedIndex):
2321         (WebCore::HTMLSelectElement::isKeyboardFocusable):
2322         (WebCore::HTMLSelectElement::isMouseFocusable):
2323         (WebCore::HTMLSelectElement::createRenderer):
2324         (WebCore::HTMLSelectElement::recalcListItems):
2325         (WebCore::HTMLSelectElement::setRecalcListItems):
2326         (WebCore::HTMLSelectElement::reset):
2327         (WebCore::HTMLSelectElement::notifyOptionSelected):
2328         (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
2329         (WebCore::HTMLSelectElement::nextSelectableListIndex):
2330         (WebCore::HTMLSelectElement::previousSelectableListIndex):
2331         * html/HTMLSelectElement.h:
2332
2333         * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
2334         (WebCore::RenderTheme::paint):
2335         (WebCore::RenderTheme::paintBorderOnly):
2336         (WebCore::RenderTheme::paintDecorations):
2337         (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
2338         (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
2339         (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
2340         (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
2341         (WebCore::RenderTheme::isControlStyled):
2342         (WebCore::RenderTheme::supportsFocusRing):
2343         * rendering/RenderTheme.h:
2344         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
2345
2346         * rendering/RenderListBox.cpp: Added.
2347         (WebCore::RenderListBox::RenderListBox):
2348         (WebCore::RenderListBox::~RenderListBox):
2349         (WebCore::RenderListBox::setStyle):
2350         (WebCore::RenderListBox::updateFromElement):
2351         (WebCore::RenderListBox::calcMinMaxWidth):
2352         (WebCore::RenderListBox::size):
2353         (WebCore::RenderListBox::numItems):
2354         (WebCore::RenderListBox::calcHeight):
2355         (WebCore::RenderListBox::baselinePosition):
2356         (WebCore::RenderListBox::itemBoundingBoxRect):
2357         (WebCore::RenderListBox::paintObject):
2358         (WebCore::RenderListBox::paintScrollbar):
2359         (WebCore::RenderListBox::paintItemForeground):
2360         (WebCore::RenderListBox::paintItemBackground):
2361         (WebCore::RenderListBox::scrollBarTarget):
2362         (WebCore::RenderListBox::isPointInScrollbar):
2363         (WebCore::RenderListBox::optionAtPoint):
2364         (WebCore::RenderListBox::autoscroll):
2365         (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
2366         (WebCore::RenderListBox::scroll):
2367         (WebCore::RenderListBox::valueChanged):
2368         * rendering/RenderListBox.h: Added.
2369         (WebCore::RenderListBox::isListBox):
2370         (WebCore::RenderListBox::selectionChanged):
2371         (WebCore::RenderListBox::setSelectionChanged):
2372         (WebCore::RenderListBox::canHaveChildren):
2373         (WebCore::RenderListBox::renderName):
2374         (WebCore::RenderListBox::setOptionsChanged):
2375         (WebCore::RenderListBox::shouldAutoscroll):
2376         (WebCore::RenderListBox::listIndexIsVisible):
2377
2378 2006-09-29  Beth Dakin  <bdakin@apple.com>
2379
2380         Reviewed by Darin.
2381
2382         We had a bug where html4.css was ignoring Media Queries. In the end 
2383         the problem was that we were trying to send a char* to the 
2384         MediaQueryEvaluator constructor that expects a String, but the 
2385         char* got interpreted as a bool, the wrong constructor was called, 
2386         and the media type was never set.
2387
2388         No test case possible since this only affects html4.css
2389
2390         * css/MediaQueryEvaluator.cpp: New constructor that expects takes a 
2391         char*
2392         (WebCore::MediaQueryEvaluator):
2393         * css/MediaQueryEvaluator.h: Same.
2394
2395 2006-09-29  Geoffrey Garen  <ggaren@apple.com>
2396
2397         Reviewed by John, Maciej.
2398         
2399         Integrated some frame and iframe code. I'm trying to fix up frame ownership
2400         and loading. Reducing the number of different code paths involved
2401         seemed like a good first step.
2402         
2403         As a side effect, I fixed a bug where FRAME elements would report their
2404         src attributes as relative, rather than compelete, URLs. (IFRAME elements
2405         had the correct complete URL behavior.)
2406
2407         * html/HTMLFrameElement.cpp:
2408         (WebCore::HTMLFrameElement::isURLAllowed): Fixed comment typo
2409         (WebCore::HTMLFrameElement::openURL):
2410             (1) Removed checks that requestFrame does for us
2411             (2) Added isURLAllowed check, to have one clear bottleneck for it
2412             (3) Added viewsource check, to have one clear bottleneck for it
2413         (WebCore::HTMLFrameElement::close): Changed to use the common contentFrame()
2414         method, instead of finding our content frame in our own unique way.
2415         (WebCore::HTMLFrameElement::setLocation): Removed isURLAllowed check,
2416         since openURL does this for us now.
2417         (WebCore::HTMLFrameElement::src): Return complete URL instead of relative.
2418         This is what FF does, and it made no sense to have different behaviors
2419         for FRAME and IFRAME elements.
2420         * html/HTMLIFrameElement.cpp:
2421         (WebCore::HTMLIFrameElement::HTMLIFrameElement): Removed duplicate init
2422         code.
2423         * html/HTMLIFrameElement.h: Removed src() and openURL() methods, since
2424         HTMLFrameElement now does everything we need.
2425
2426 2006-09-30  Nikolas Zimmermann  <zimmermann@kde.org>
2427
2428         Reviewed by Hyatt.
2429
2430         Fix Qt/Linux build.
2431
2432         * CMakeLists.txt:
2433         * platform/qt/ScrollViewQt.cpp:
2434         (WebCore::ScrollView::convertToContainingWindow):
2435         (WebCore::ScrollView::convertFromContainingWindow):
2436         * platform/qt/TemporaryLinkStubs.cpp:
2437         (WebCore::signedPublicKeyAndChallengeString):
2438         * platform/qt/WidgetQt.cpp:
2439         (WebCore::Widget::convertToContainingWindow):
2440         (WebCore::Widget::convertFromContainingWindow):
2441
2442 2006-09-29  Sam Weinig  <sam.weinig@gmail.com>
2443
2444         Reviewed by Tim H.
2445
2446         Patch for http://bugs.webkit.org/show_bug.cgi?id=11082
2447         Simplify Internal methods for the auto-generated Objective-C DOM code
2448
2449         - Auto-generate the internal methods for more Objective-C classes.
2450
2451         * WebCore.xcodeproj/project.pbxproj:
2452         * bindings/objc/DOM.mm:
2453         * bindings/objc/DOMCSS.mm:
2454         (-[DOMStyleSheet WebCore::]):
2455         (+[DOMStyleSheet _styleSheetWith:WebCore::]):
2456         (-[DOMCSSRule WebCore::]):
2457         (-[DOMCSSRule _initWithCSSRule:WebCore::]):
2458         (+[DOMCSSRule _CSSRuleWith:WebCore::]):
2459         (-[DOMCSSValue WebCore::]):
2460         (-[DOMCSSValue _initWithCSSValue:WebCore::]):
2461         (+[DOMCSSValue _CSSValueWith:WebCore::]):
2462         * bindings/objc/DOMHTMLAppletElement.mm:
2463         (-[DOMHTMLAppletElement WebCore::]):
2464         (+[DOMHTMLAppletElement _HTMLOptionElementWith:WebCore::]):
2465         * bindings/objc/DOMHTMLEmbedElement.mm:
2466         (-[DOMHTMLEmbedElement WebCore::]):
2467         (+[DOMHTMLEmbedElement _HTMLEmbedElementWith:WebCore::]):
2468         * bindings/objc/DOMInternal.h:
2469         * bindings/objc/DOMInternal.mm:
2470         * bindings/scripts/CodeGeneratorObjC.pm:
2471         * css/CSSCharsetRule.idl:
2472         * css/CSSFontFaceRule.idl:
2473         * css/CSSImportRule.idl:
2474         * css/CSSMediaRule.idl:
2475         * css/CSSPageRule.idl:
2476         * css/CSSPrimitiveValue.idl:
2477         * css/CSSStyleRule.idl:
2478         * css/CSSStyleSheet.idl:
2479         * css/CSSUnknownRule.idl:
2480         * css/CSSValueList.idl:
2481         * dom/KeyboardEvent.idl:
2482         * dom/MouseEvent.idl:
2483         * dom/MutationEvent.idl:
2484         * dom/NodeIterator.idl:
2485         * dom/OverflowEvent.idl:
2486         * dom/UIEvent.idl:
2487         * dom/WheelEvent.idl:
2488
2489 2006-09-29  David Harrison  <harrison@apple.com>
2490
2491         Reviewed by John Sullivan.
2492
2493         <rdar://problem/4663772> REGRESSION: Cannot type in Japanese after replying to a particular message
2494         <rdar://problem/4673293> REGRESSION: Can't enter the Japanese characters in Mail or Blot
2495
2496         Test added
2497         * fast/text/attributed-substring-from-range-001.html
2498
2499         * bridge/mac/FrameMac.mm:
2500         (WebCore::FrameMac::attributedString):
2501         Handle non-zero offsets when start and/or end node is a container. Offset used to be ignored in this case.
2502         Also, add validation of the range.
2503
2504 2006-09-29  Rob Buis  <buis@kde.org>
2505
2506         Reviewed by Maciej.
2507
2508         http://bugs.webkit.org/show_bug.cgi?id=10893
2509         InsertRule can not handle @import statements
2510
2511         Allow @import as part of a css rule.
2512
2513         * css/CSSGrammar.y:
2514
2515 2006-09-28  David Hyatt  <hyatt@apple.com>
2516
2517         Switch over the Mac-specific uses of viewportToContents/contentsToViewport.
2518
2519         * bridge/mac/FrameMac.mm:
2520         (WebCore::FrameMac::eventMayStartDrag):
2521         (WebCore::FrameMac::dragHysteresisExceeded):
2522         (WebCore::FrameMac::mouseDown):
2523         (WebCore::FrameMac::shouldDragAutoNode):
2524         (WebCore::FrameMac::sendContextMenuEvent):
2525         * bridge/mac/WebCoreFrameBridge.mm:
2526         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
2527
2528 2006-09-28  Dave Hyatt  <hyatt@apple.com>
2529
2530         This patch eliminates viewportToContents/contentsToViewport in favor of convertTo/FromContainingWindow.
2531         ScrollView now subclasses these methods to factor in its scrollOffset and to deal with the document
2532         view.
2533        
2534         Reviewed by mjs (the convertTo/From changes), (I added the elimination of viewportToContents to
2535         the patch after review, once I realized that these new functions essentially do the same thing.)
2536
2537         * dom/EventTargetNode.cpp:
2538         (WebCore::EventTargetNode::dispatchMouseEvent):
2539         (WebCore::EventTargetNode::dispatchWheelEvent):
2540         * page/Frame.cpp:
2541         (WebCore::Frame::selectClosestWordFromMouseEvent):
2542         (WebCore::Frame::handleMousePressEventTripleClick):
2543         (WebCore::Frame::handleMousePressEventSingleClick):
2544         (WebCore::Frame::handleMouseMoveEvent):
2545         (WebCore::Frame::handleMouseReleaseEvent):
2546         * page/FrameView.cpp:
2547         (WebCore::FrameView::handleMousePressEvent):
2548         (WebCore::selectCursor):
2549         (WebCore::FrameView::dispatchDragEvent):
2550         (WebCore::FrameView::prepareMouseEvent):
2551         (WebCore::FrameView::handleWheelEvent):
2552         * platform/ScrollView.h:
2553         * platform/Widget.cpp:
2554         (WebCore::Widget::convertToContainingWindow):
2555         * platform/Widget.h:
2556         * platform/mac/ScrollViewMac.mm:
2557         (WebCore::ScrollView::convertToContainingWindow):
2558         (WebCore::ScrollView::convertFromContainingWindow):
2559         * platform/mac/WidgetMac.mm:
2560         (WebCore::Widget::convertToContainingWindow):
2561         (WebCore::Widget::convertFromContainingWindow):
2562         * platform/win/ScrollViewWin.cpp:
2563         (WebCore::ScrollView::convertToContainingWindow):
2564         (WebCore::ScrollView::convertFromContainingWindow):
2565         * rendering/RenderLayer.cpp:
2566         (WebCore::RenderLayer::resize):
2567
2568 2006-09-28  Alice Liu  <alice.liu@apple.com>
2569
2570         Build fix by adding missing files for CommandByName
2571
2572         * WebCore.xcodeproj/project.pbxproj:
2573
2574 2006-09-28  Alice Liu  <alice.liu@apple.com>
2575
2576         Adding CommandByName files to the vcproj
2577
2578         * WebCore.vcproj/WebCore/WebCore.vcproj:
2579
2580 2006-09-28  Alice Liu  <alice.liu@apple.com>
2581
2582         Reviewed by Adam Roben.
2583
2584         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. 
2585         This patch also exposes some UBRK-related utilities so that they can be used elsewhere.
2586         This patch also changes windows PlatformMouseEvent so that we can detect multiple-click mouse events
2587
2588         * editing/CommandByName.cpp: Added.
2589         Added a command class that hangs off the frame so the frame can call commands more easily.  
2590         (WebCore::Frame::commandImp):
2591         (WebCore::Frame::execCopy):
2592         (WebCore::Frame::execCut):
2593         (WebCore::Frame::execDelete):
2594         (WebCore::Frame::execForwardDelete):
2595         (WebCore::Frame::execPaste):
2596         (WebCore::Frame::execMoveLeft):
2597         (WebCore::Frame::execMoveRight):
2598         (WebCore::Frame::execMoveUp):
2599         (WebCore::Frame::execMoveDown):
2600         (WebCore::Frame::execSelectAll):
2601         (WebCore::Frame::execSelectLeft):
2602         (WebCore::Frame::execSelectRight):
2603         (WebCore::Frame::execSelectUp):
2604         (WebCore::Frame::execSelectDown):
2605         (WebCore::Frame::enabled):
2606         (WebCore::Frame::enabledAnySelection):
2607         (WebCore::Frame::enabledAnyEditableSelection):
2608         (WebCore::Frame::enabledPaste):
2609         (WebCore::Frame::enabledAnyRangeSelection):
2610         (WebCore::Frame::enabledAnyEditableRangeSelection):
2611         (WebCore::Frame::createCommandDictionary):
2612         (WebCore::Frame::Command::):
2613         (WebCore:::m_frame):
2614         (WebCore::CommandByName::execCommand):
2615         * editing/CommandByName.h: Added.
2616         * page/Frame.cpp:
2617         Added implementation of accessor for CommandByName member
2618         (WebCore::Frame::command):
2619         * page/Frame.h:
2620         Added accessor for CommandByName member
2621         * page/FramePrivate.h:
2622         Added a CommandByName member
2623         (WebCore::FramePrivate::FramePrivate):
2624         * platform/PlatformMouseEvent.h:
2625         Changed constructor prototype
2626         * platform/StringImpl.cpp:
2627         Exposing getWordBreakIterator to be used elsewhere
2628         (WebCore::getWordBreakIterator):
2629         * platform/StringImpl.h:
2630         Exposing getWordBreakIterator to be used elsewhere
2631         * platform/win/MouseEventWin.cpp:
2632         Changed the PlatformMouseEvent on windows so that we "roll our own" multi-click mouse events instead of relying on the system to tell us, enabling us to detect triple-clicks
2633         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2634
2635 2006-09-28  Adam Roben  <aroben@apple.com>
2636
2637         Reviewed by Adele.
2638
2639         Remove no-longer-used PopUpButton.
2640
2641         * WebCore.vcproj/WebCore/WebCore.vcproj: Remove PopUpButton.h
2642         * WebCore.xcodeproj/project.pbxproj: Remove PopUpButton.h,
2643         PopUpButtonMac.mm
2644         * platform/PopUpButton.h: Removed.
2645         * platform/mac/PopUpButtonMac.mm: Removed.
2646         * platform/win/TemporaryLinkStubs.cpp: Remove PopUpButton:: methods
2647         * rendering/DeprecatedRenderSelect.cpp: Change #include of
2648         PopUpButton.h to ListBox.h
2649
2650 2006-09-28  Darin Adler  <darin@apple.com>
2651
2652         Reviewed by Alice.
2653
2654         - change that should fix <rdar://problem/4733044> REGRESSION: XML iBench shows
2655           10% perf. regression (copying strings while decoding)
2656
2657         Use Vector<UChar> instead of String when building up the decoded string in
2658         the ICU and Mac decoders. Using String leads to O(n^2) behavior because
2659         String grows the buffer every single time that append is called. Using
2660         Vector::append instead of String::append also avoids constructing a string
2661         each time just to append and a questionable copy that is done inside the
2662         String::append function which also contributed to the slowness.
2663
2664         * platform/PlatformString.h:
2665         * platform/String.cpp: (WebCore::String::adopt): Added. Makes a String from a
2666         Vector<UChar>, adopting the buffer from the vector to avoid copying and memory
2667         allocation.
2668         * platform/StringImpl.h:
2669         * platform/StringImpl.cpp: (WebCore::StringImpl::adopt): Ditto.
2670
2671         * platform/StreamingTextDecoder.h:
2672         * platform/StreamingTextDecoder.cpp: (WebCore::TextCodec::appendOmittingBOM):
2673         Change to use a Vector<UChar> instead of a String, since vectors have better
2674         resizing performance (they store a separate capacity).
2675
2676         * platform/StreamingTextDecoderICU.cpp: (WebCore::TextCodecICU::decode):
2677         * platform/mac/StreamingTextDecoderMac.cpp: (WebCore::TextCodecMac::decode):
2678         Change to use Vector<UChar> instead of String and then create a string at
2679         the end of the process using the new adopt function.
2680
2681 2006-09-28  Sam Weinig  <sam.weinig@gmail.com>
2682
2683         Reviewed by Tim H.
2684
2685         Patch for http://bugs.webkit.org/show_bug.cgi?id=11057
2686         Auto-generate more SVG Objective-C bindings
2687
2688         - Auto-generates DOMSVGAnimatedAngle, DOMSVGAnimatedBoolean, 
2689           DOMSVGAnimatedEnumeration, DOMSVGAnimatedInteger, DOMSVGAnimatedLength,
2690           DOMSVGAnimatedLengthList, DOMSVGAnimatedNumber, DOMSVGAnimatedString,
2691           DOMSVGAnimatedTransformList, DOMSVGExternalResourcesRequired,
2692           DOMSVGLangSpace, DOMSVGLocatable, DOMSVGMetadataElement, DOMSVGRectElement,
2693           DOMSVGStringList, DOMSVGStylable, DOMSVGStyleElement, DOMSVGTests, 
2694           and DOMSVGTransformable.
2695
2696         - Adds ability to CodeGeneratorObjC.pm to handle interfaces with mulitple
2697           parent interfaces and the SVG animated classes.
2698
2699         - Corrects CodeGenerator.pm to only skip the first parent for the main 
2700           interface.
2701
2702         * DerivedSources.make:
2703         * WebCore.xcodeproj/project.pbxproj:
2704         * bindings/objc/DOMInternal.h:
2705         * bindings/objc/DOMSVG.h:
2706         * bindings/scripts/CodeGenerator.pm:
2707         * bindings/scripts/CodeGeneratorObjC.pm:
2708         * ksvg2/svg/SVGAnimatedAngle.idl:
2709         * ksvg2/svg/SVGAnimatedBoolean.idl:
2710         * ksvg2/svg/SVGAnimatedEnumeration.idl:
2711         * ksvg2/svg/SVGAnimatedInteger.idl:
2712         * ksvg2/svg/SVGAnimatedLength.idl:
2713         * ksvg2/svg/SVGAnimatedLengthList.idl:
2714         * ksvg2/svg/SVGAnimatedNumber.idl:
2715         * ksvg2/svg/SVGAnimatedPathData.idl:
2716         * ksvg2/svg/SVGAnimatedString.idl:
2717         * ksvg2/svg/SVGAnimatedTransformList.idl:
2718         * ksvg2/svg/SVGExternalResourcesRequired.idl:
2719         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl:
2720         * ksvg2/svg/SVGFitToViewBox.idl:
2721         * ksvg2/svg/SVGLangSpace.idl:
2722         * ksvg2/svg/SVGLocatable.idl:
2723         * ksvg2/svg/SVGMetadataElement.idl:
2724         * ksvg2/svg/SVGStringList.idl:
2725         * ksvg2/svg/SVGStylable.idl:
2726         * ksvg2/svg/SVGStyleElement.idl:
2727         * ksvg2/svg/SVGTests.idl:
2728         * ksvg2/svg/SVGTransformable.idl:
2729         * ksvg2/svg/SVGURIReference.idl:
2730         * ksvg2/svg/SVGUnitTypes.idl:
2731         * ksvg2/svg/SVGZoomAndPan.idl:
2732
2733 2006-09-28  Brady Eidson  <beidson@apple.com>
2734
2735         Reviewed by Mitz Pettel!!!
2736
2737         Change the error code check for common functions from SQLResultOk to SQLResultDone 
2738
2739         * loader/icon/IconDatabase.cpp:
2740         (WebCore::IconDatabase::forgetPageURLQuery):
2741         (WebCore::IconDatabase::setIconIDForPageURLQuery):
2742         (WebCore::IconDatabase::addIconForIconURLQuery):
2743
2744 2006-09-28  Dave Hyatt  <hyatt@apple.com>
2745
2746         Just eliminate MapWindowPoints usage and use the HWND as
2747         the viewport.
2748
2749         * platform/win/MouseEventWin.cpp:
2750         (WebCore::positionForEvent):
2751         * platform/win/ScrollViewWin.cpp:
2752         (WebCore::ScrollView::viewportToContents):
2753         (WebCore::ScrollView::contentsToViewport):
2754
2755 2006-09-27  David Hyatt  <hyatt@apple.com>
2756
2757         Fix for bug 9222, cursor is wrong when mousing over overflow scrollbars in textareas.  Make sure
2758         selectCursor checks for whether or not a scrollbar was hit.  Also stub out a mouseMoved method for
2759         scrollbars to provide hover feedback if needed.
2760
2761         Reviewed by Eric
2762
2763         * page/FrameView.cpp:
2764         (WebCore::selectCursor):
2765         (WebCore::FrameView::handleMouseMoveEvent):
2766         * platform/ScrollBar.h:
2767         (WebCore::ScrollBar::mouseMoved):
2768
2769 2006-09-27  MorganL  <morganl.webkit@yahoo.com>
2770
2771         Reviewed by Maciej and Adam, landed by Adam
2772
2773         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11072
2774         Windows build is busted
2775
2776         * platform/win/TemporaryLinkStubs.cpp:
2777         (ScrollView::paint):
2778         (ScrollView::themeChanged):
2779
2780 2006-09-27  Eric Seidel  <eric@eseidel.com>
2781
2782         Reviewed by mitz.
2783
2784         paths with no fill specified default to black but do not recieve paint-related mouse events
2785         http://bugs.webkit.org/show_bug.cgi?id=11069
2786         The default fill was being applied at the wrong place in the rendering chain, causing this problem.
2787
2788         Test: svg/custom/hover-default-fill.svg
2789
2790         * kcanvas/RenderPath.cpp:
2791         (WebCore::RenderPath::nodeAtPoint): use isFilled and isStroked
2792         * ksvg2/css/SVGRenderStyle.h: use defaultFill() and defaultStroke()
2793         * ksvg2/misc/KCanvasRenderingStyle.cpp:
2794         (WebCore::KSVGPainterFactory::isFilled): remove null check
2795         (WebCore::KSVGPainterFactory::fillPaintServer): remove null check
2796         (WebCore::KSVGPainterFactory::isStroked): remove null check
2797         (WebCore::KSVGPainterFactory::strokePaintServer): remove null check
2798         * ksvg2/svg/SVGPaint.cpp:
2799         (WebCore::SVGPaint::defaultFill): added.
2800         (WebCore::SVGPaint::defaultStroke): added.
2801         * ksvg2/svg/SVGPaint.h:
2802
2803 2006-09-27  Rob Buis  <buis@kde.org>
2804
2805         Reviewed by eseidel.
2806
2807         http://bugs.webkit.org/show_bug.cgi?id=11015
2808         SVG handles em units incorrectly
2809
2810         Calculate viewport coordinates at layout time, since
2811         at this point the font size is known and lengths depending
2812         on font sizes can be calculated correctly.
2813
2814         * kcanvas/RenderSVGContainer.cpp:
2815         (WebCore::RenderSVGContainer::layout):
2816         (WebCore::RenderSVGContainer::viewport):
2817         (WebCore::RenderSVGContainer::calcViewport):
2818         * kcanvas/RenderSVGContainer.h:
2819         * ksvg2/svg/SVGLength.cpp:
2820         (WebCore::SVGLength::updateValue):
2821         * ksvg2/svg/SVGMarkerElement.cpp:
2822         (WebCore::SVGMarkerElement::createRenderer):
2823         * ksvg2/svg/SVGSVGElement.cpp:
2824         (WebCore::SVGSVGElement::createRenderer):
2825         (WebCore::SVGSVGElement::attributeChanged):
2826         * ksvg2/svg/SVGSVGElement.h:
2827
2828 2006-09-27  Eric Seidel  <eric@eseidel.com>
2829
2830         Reviewed by darin.
2831
2832         Change our invalid-fill error behavior to match Opera (and soon Firefox)
2833         http://bugs.webkit.org/show_bug.cgi?id=11017
2834
2835         * ksvg2/misc/KCanvasRenderingStyle.cpp:
2836         (WebCore::KSVGPainterFactory::isFilled):
2837         (WebCore::KSVGPainterFactory::fillPaintServer):
2838         (WebCore::KSVGPainterFactory::isStroked):
2839         (WebCore::KSVGPainterFactory::strokePaintServer):
2840
2841 2006-09-27  Brady Eidson  <beidson@apple.com>
2842
2843         Build fix
2844
2845         * loader/icon/IconDatabase.cpp:
2846         (WebCore::readySQLStatement):
2847
2848 2006-09-27  Brady Eidson  <beidson@apple.com>
2849
2850         Reviewed by Adam
2851
2852         In very specific circumstances, prepared SQLStatements can become invalid without
2853         any warning.  This checks for that state and re-prepares the statement and also
2854         adds more aggressive error-checking everywhere these statements are used.
2855
2856         * loader/icon/IconDatabase.cpp:
2857         (WebCore::readySQLStatement): Check if the statement is expired - reprepare it
2858         (WebCore::IconDatabase::imageDataForIconURLQuery): More thoroughly catch error cases
2859         (WebCore::IconDatabase::timeStampForIconURLQuery): Ditto
2860         (WebCore::IconDatabase::iconURLForPageURLQuery): Ditto
2861         (WebCore::IconDatabase::forgetPageURLQuery): Ditto
2862         (WebCore::IconDatabase::setIconIDForPageURLQuery): Ditto
2863         (WebCore::IconDatabase::getIconIDForIconURLQuery): Ditto
2864         (WebCore::IconDatabase::addIconForIconURLQuery): Ditto
2865         (WebCore::IconDatabase::hasIconForIconURLQuery): Ditto
2866         * loader/icon/SQLStatement.cpp:
2867         (WebCore::SQLStatement::isExpired): Added (accessor to sqlite3_expired())
2868         * loader/icon/SQLStatement.h:
2869
2870 2006-09-26  Darin Adler  <darin@apple.com>
2871
2872         Reviewed by Steve.
2873
2874         - clean up options for font code path
2875
2876         * platform/Font.h:
2877         * platform/Font.cpp:
2878         (WebCore::Font::setCodePath): Added. Replaces boolean version.
2879         (WebCore::Font::canUseGlyphCache): Update to handle "never use complex" case too.
2880
2881         * platform/mac/WebCoreTextRenderer.mm:
2882         (WebCoreSetAlwaysUseATSU): Change to call setCodePath.
2883
2884 2006-09-26  John Sullivan  <sullivan@apple.com>
2885
2886         Reviewed by Darin
2887
2888         * bridge/mac/WebCoreFrameBridge.h:
2889         * bridge/mac/WebCoreFrameBridge.mm:
2890         (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:limit:]):
2891         Added limit parameter, passed down to Frame
2892         
2893         * page/Frame.h:
2894         * page/Frame.cpp:
2895         (WebCore::Frame::markAllMatchesForText):
2896         Added limit parameter. Stop the search if it hits limit.
2897
2898 2006-09-26  Sean Gies  <seangies@apple.com>
2899
2900         Reviewed by Brady Eidson.
2901
2902         * platform/cg/ImageCG.cpp: Removed #if's -- Darin said we don't need these.
2903
2904 2006-09-26  Justin Garcia  <justin.garcia@apple.com>
2905
2906         Reviewed by john
2907         
2908         <rdar://problem/4747695> 
2909         Gmail Editor: Crash at WebCore::Range::startPosition() when decreasing a indent
2910         
2911         * editing/DeleteSelectionCommand.cpp:
2912         (WebCore::DeleteSelectionCommand::initializeStartEnd): Stop expanding
2913         to select special elements that are fully selected after expansion
2914         moves to positions that are visually distinct from the originals.
2915         * editing/InsertListCommand.cpp:
2916         (WebCore::InsertListCommand::doApply): If the content of the list 
2917         item will be moved into another list, put it in a list item.
2918
2919 2006-09-26  Geoffrey Garen <ggaren@apple.com>
2920
2921         Reviewed by Darin.
2922         
2923         Temporary work-around for frame lifetime issue.
2924
2925         * page/Frame.cpp:
2926         (WebCore::Frame::clear):
2927         (WebCore::Frame::disconnectOwnerElement):
2928
2929 2006-09-26  Sam Weinig  <sam.weinig@gmail.com>
2930
2931         Reviewed by Tim H.
2932
2933         Patch for http://bugs.webkit.org/show_bug.cgi?id=11038
2934         Auto-generate DOMSVGElement for the Objective-C bindings
2935
2936         - Auto-generates DOMSVGElement.
2937
2938         - Make SVGExceptions work like all the other ExceptionCode
2939           extensions (Range, XPath, etc.) by adding SVGExceptionOffset
2940           and SVGExceptionMax.
2941
2942         * DerivedSources.make:
2943         * WebCore.xcodeproj/project.pbxproj:
2944         * bindings/js/kjs_binding.cpp:
2945         (KJS::):
2946         (KJS::setDOMException):
2947         * bindings/objc/DOMInternal.h:
2948         * bindings/objc/DOMInternal.mm:
2949         (raiseDOMException):
2950         * bindings/objc/DOMSVG.h:
2951         * bindings/objc/DOMSVGExecption.h: Added.
2952         * ksvg2/ksvg.h:
2953         * ksvg2/svg/SVGElement.cpp:
2954         (WebCore::SVGElement::setId):
2955         (WebCore::SVGElement::setXmlbase):
2956         * ksvg2/svg/SVGElement.h:
2957         * ksvg2/svg/SVGElement.idl:
2958         * ksvg2/svg/SVGException.h: Added.
2959         (WebCore::):
2960
2961 2006-09-26  Eric Seidel  <eric@eseidel.com>
2962
2963         Reviewed by Tim H.
2964         
2965         viewbox parser does not allow <tab> as a delimiter
2966         http://bugs.webkit.org/show_bug.cgi?id=11014
2967
2968         Test: svg/hixie/viewbox/003.xml
2969
2970         * ksvg2/svg/svgpathparser.cpp:
2971         (WebCore::isWhitespace): new function
2972         (WebCore::skipOptionalSpaces):
2973         (WebCore::skipOptionalSpacesOrComma):
2974
2975 2006-09-26  Eric Seidel  <eric@eseidel.com>
2976
2977         Reviewed by Tim H.
2978
2979         SVGDocument::createElement does not create elements in the SVG namespace
2980         http://bugs.webkit.org/show_bug.cgi?id=10932
2981         
2982         Test: svg/custom/createelement.svg
2983
2984         * ksvg2/svg/SVGDocument.cpp:
2985         (WebCore::SVGDocument::createElement):
2986         * ksvg2/svg/SVGDocument.h:
2987
2988 2006-09-26  Eric Seidel  <eric@eseidel.com>
2989
2990         Reviewed by Tim H.
2991         
2992         RenderPath::nodeAtPoint does not respect stroke width
2993         http://bugs.webkit.org/show_bug.cgi?id=10829
2994
2995         Test: svg/custom/stroke-width-click.svg
2996
2997         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
2998         (WebCore::RenderPath::strokeContains):
2999         * kcanvas/device/quartz/QuartzSupport.h:
3000         * kcanvas/device/quartz/QuartzSupport.mm:
3001
3002 2006-09-26  Eric Seidel  <eric@eseidel.com>
3003
3004         Reviewed by mitz.
3005
3006         Bring animation back to life
3007         http://bugs.webkit.org/show_bug.cgi?id=11021
3008         
3009         Register/unregister SVGSVGElements as time containers on insertion/removal.
3010         Replace uses of DeprecatedString with String in SVGAnimationElement
3011         Various whitespace clean-up.
3012
3013         * ksvg2/misc/KSVGTimeScheduler.cpp:
3014         (WebCore::SVGTimer::notifyAll):
3015         * ksvg2/misc/SVGDocumentExtensions.cpp:
3016         (WebCore::SVGDocumentExtensions::startAnimations):
3017         (WebCore::SVGDocumentExtensions::pauseAnimations):
3018         (WebCore::SVGDocumentExtensions::unpauseAnimations):
3019         * ksvg2/svg/SVGAnimateTransformElement.cpp:
3020         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
3021         (WebCore::SVGAnimateTransformElement::parseTransformValue):
3022         * ksvg2/svg/SVGAnimateTransformElement.h:
3023         * ksvg2/svg/SVGAnimationElement.cpp:
3024         (WebCore::SVGAnimationElement::SVGAnimationElement):
3025         (WebCore::SVGAnimationElement::parseMappedAttribute):
3026         (WebCore::SVGAnimationElement::parseClockValue):
3027         (WebCore::SVGAnimationElement::targetAttribute):
3028         (WebCore::SVGAnimationElement::setTargetAttribute):
3029         (WebCore::SVGAnimationElement::attributeName):
3030         * ksvg2/svg/SVGAnimationElement.h:
3031         (WebCore::SVGAnimationElement::rendererIsNeeded):
3032         * ksvg2/svg/SVGSVGElement.cpp:
3033         (WebCore::SVGSVGElement::getScreenCTM):
3034         (WebCore::SVGSVGElement::createRenderer):
3035         (WebCore::SVGSVGElement::insertedIntoDocument): added, calls addTimeContainer(this)
3036         (WebCore::SVGSVGElement::removedFromDocument): added, calls removeTimeContainer(this)
3037         * ksvg2/svg/SVGSVGElement.h:
3038         * ksvg2/svg/SVGSetElement.cpp:
3039         (WebCore::SVGSetElement::handleTimerEvent):
3040         * ksvg2/svg/SVGURIReference.cpp:
3041         (WebCore::SVGURIReference::getTarget):
3042         * ksvg2/svg/SVGURIReference.h:
3043
3044 2006-09-26  Graham Dennis  <graham.dennis@gmail.com>
3045
3046         Reviewed by mitzpettel.
3047
3048         - fix http://bugs.webkit.org/show_bug.cgi?id=11020
3049         No-SVG build broken since r16549
3050         
3051         Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT
3052
3053         * css/cssparser.cpp:
3054         (WebCore::CSSParser::parseValue):
3055         * css/cssstyleselector.cpp:
3056         (WebCore::CSSStyleSelector::applyProperty):
3057         * page/FrameView.cpp:
3058         (WebCore::selectCursor):
3059         * platform/qt/GraphicsContextQt.cpp:
3060
3061 2006-09-26  Anders Carlsson  <acarlsson@apple.com>
3062
3063         Reviewed by Maciej.
3064
3065         http://bugs.webkit.org/show_bug.cgi?id=10820
3066         Add StringImpl::toDouble() and remove uses of .deprecatedString().toDouble()
3067         
3068         (Originally written by Eric Seidel).
3069         
3070         * bindings/js/kjs_window.cpp:
3071         (KJS::floatFeature):
3072         * ksvg2/svg/SVGAngle.cpp:
3073         (SVGAngle::setValueAsString):
3074         * ksvg2/svg/SVGAnimationElement.cpp:
3075         (SVGAnimationElement::parseMappedAttribute):
3076         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
3077         (SVGComponentTransferFunctionElement::parseMappedAttribute):
3078         * ksvg2/svg/SVGFECompositeElement.cpp:
3079         (WebCore::SVGFECompositeElement::parseMappedAttribute):
3080         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
3081         (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
3082         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
3083         (SVGFEDisplacementMapElement::parseMappedAttribute):
3084         * ksvg2/svg/SVGFELightElement.cpp:
3085         (SVGFELightElement::parseMappedAttribute):
3086         * ksvg2/svg/SVGFEOffsetElement.cpp:
3087         (WebCore::SVGFEOffsetElement::parseMappedAttribute):
3088         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
3089         (SVGFESpecularLightingElement::parseMappedAttribute):
3090         * ksvg2/svg/SVGFETurbulenceElement.cpp:
3091         (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
3092         * ksvg2/svg/SVGStopElement.cpp:
3093         (SVGStopElement::parseMappedAttribute):
3094         * platform/AtomicString.h:
3095         (WebCore::AtomicString::toDouble):
3096         * platform/PlatformString.h:
3097         * platform/String.cpp:
3098         (WebCore::String::toDouble):
3099         * platform/StringImpl.cpp:
3100         (WebCore::StringImpl::toDouble):
3101         * platform/StringImpl.h:
3102         * rendering/DeprecatedSlider.cpp:
3103         (WebCore::DeprecatedSlider::updateFromElement):
3104         * xml/XPathGrammar.y:
3105
3106 2006-09-25  David Harrison  <harrison@apple.com>
3107
3108         Reviewed by Tim Omernick and Tim Hatcher.
3109
3110         <rdar://problem/4717965> Text Field text parameterized attributes should work
3111         <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
3112
3113         * bridge/mac/WebCoreAXObject.mm:
3114         (-[WebCoreAXObject accessibilityAttributeValue:]):
3115         Use new line number support to implement NSAccessibilityInsertionPointLineNumberAttribute.
3116         
3117         (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
3118         Cleaned up. Added text field and text area parameterzed attributes.
3119         
3120         (-[WebCoreAXObject doAXLineForTextMarker:]):
3121         Fixed to be zero-based and to deal with the first position properly.
3122         
3123         (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
3124         Minor formatting.
3125         
3126         (-[WebCoreAXObject textMarkerForIndex:lastIndexOK:]):
3127         (-[WebCoreAXObject indexForTextMarker:]):
3128         (-[WebCoreAXObject textMarkerRangeForRange:]):
3129         (-[WebCoreAXObject rangeForTextMarkerRange:]):
3130         New utility methods.
3131         
3132         (-[WebCoreAXObject doAXLineForIndex:]):
3133         (-[WebCoreAXObject doAXRangeForLine:]):
3134         (-[WebCoreAXObject doAXStringForRange:]):
3135         (-[WebCoreAXObject doAXRangeForPosition:]):
3136         (-[WebCoreAXObject doAXRangeForIndex:]):
3137         (-[WebCoreAXObject doAXBoundsForRange:]):
3138         (-[WebCoreAXObject doAXAttributedStringForRange:]):
3139         (-[WebCoreAXObject doAXRTFForRange:]):
3140         (-[WebCoreAXObject doAXStyleRangeForIndex:]):
3141         Implement text field and text area parameterized attributes.
3142          
3143         (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
3144         Added text field and text area parameterzed attributes.
3145
3146         * rendering/RenderTextControl.h:
3147         Made indexForVisiblePosition() and visiblePositionForIndex() public.
3148
3149 2006-09-25  Adam Roben  <aroben@apple.com>
3150
3151         Reviewed by Brady.
3152
3153         Build fixes.
3154
3155         * WebCore.vcproj/WebCore/WebCore.vcproj: Fix malformed XML.
3156         * platform/ResourceLoader.h: Store whether a particular job
3157         has received a response within the ResourceLoader object itself, since
3158         it's possible that we will enter the InternetReadFileExA while loop
3159         twice for the same job.
3160         * platform/ResourceLoaderInternal.h: Add private instance variable to
3161         store whether we've received a response.
3162         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
3163         * platform/win/GraphicsContextWin.cpp: Fix order of preprocessor
3164         directives.
3165         * platform/win/ResourceLoaderWin.cpp: 
3166         (WebCore::ResourceLoader::onRequestComplete): Ask the ResourceLoader
3167         whether it has received a response instead of assuming it hasn't.
3168         (WebCore::ResourceLoader::setHasReceivedResponse): Added.
3169         (WebCore::ResourceLoader::hasReceivedResponse): Added.
3170         * platform/win/TemporaryLinkStubs.cpp: Rename setKnobProportion to
3171         setProportion
3172         (ScrollBar::setProportion):
3173
3174 2006-09-25  Brady Eidson  <beidson@apple.com>
3175
3176         Requested by ggaren
3177
3178         Disabled IconDatabase logging by default
3179
3180         * platform/Logging.cpp:
3181         (WebCore::):
3182
3183 2006-09-25  Steve Falkenburg  <sfalken@apple.com>
3184
3185         Build fix
3186
3187         * platform/cf/ResourceLoaderCFNet.cpp:
3188         (WebCore::willCacheResponse):
3189
3190 2006-09-25  Justin Garcia  <justin.garcia@apple.com>
3191
3192         Reviewed by john
3193         
3194         <http://bugs.webkit.org/show_bug.cgi?id=11002>
3195         Gmail Editor: Crash at WebCore::SplitElementCommand::doApply() when attempting to indent in a new message
3196         
3197         * editing/IndentOutdentCommand.cpp:
3198         (WebCore::IndentOutdentCommand::indentRegion): Special case
3199         an empty root editable element.
3200
3201 2006-09-25  Brady Eidson  <beidson@apple.com>
3202
3203         Reviewed by Steve
3204
3205         Math error in SystemTimeWin
3206
3207         * platform/win/SystemTimeWin.cpp:
3208         (WebCore::currentTime):
3209
3210 2006-09-25  Alexey Proskuryakov  <ap@nypop.com>
3211
3212         Reviewed by Eric.
3213
3214         Whitespace cleanup; rename *job variables to *loader.
3215
3216         * bindings/js/JSXMLHttpRequest.cpp:
3217         (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
3218         (KJS::JSXMLHttpRequestConstructorImp::implementsConstruct):
3219         (KJS::JSXMLHttpRequestConstructorImp::construct):
3220         (KJS::JSXMLHttpRequest::getOwnPropertySlot):
3221         (KJS::JSXMLHttpRequest::getValueProperty):
3222         (KJS::JSXMLHttpRequest::put):
3223         (KJS::JSXMLHttpRequest::putValueProperty):
3224         (KJS::JSXMLHttpRequest::mark):
3225         (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
3226         (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
3227         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
3228         * bindings/js/JSXMLHttpRequest.h:
3229         (KJS::JSXMLHttpRequest::toBoolean):
3230         * xml/xmlhttprequest.cpp:
3231         (WebCore::XMLHttpRequest::XMLHttpRequest):
3232         (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
3233         (WebCore::XMLHttpRequest::send):
3234         (WebCore::XMLHttpRequest::abort):
3235         (WebCore::XMLHttpRequest::receivedAllData):
3236         (WebCore::XMLHttpRequest::receivedData):
3237         * xml/xmlhttprequest.h:
3238         (WebCore::):
3239
3240 2006-09-25  Timothy Hatcher  <timothy@apple.com>
3241
3242         Reviewed by Brady.
3243
3244         - Deprecate the rest of the old-style methods that are not generated.
3245         - Add @property syntax to DOMRange.
3246
3247         * WebCore.xcodeproj/project.pbxproj:
3248         * bindings/objc/DOM.mm:
3249         (-[DOMRange setStart:offset:]):
3250         (-[DOMRange setEnd:offset:]):
3251         (-[DOMRange compareBoundaryPoints:sourceRange:]):
3252         (-[DOMRange setStart::]):
3253         (-[DOMRange setEnd::]):
3254         (-[DOMRange compareBoundaryPoints::]):
3255         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
3256         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
3257         (-[DOMDocument createNodeIterator::::]):
3258         (-[DOMDocument createTreeWalker::::]):
3259         * bindings/objc/DOMCSS.h:
3260         * bindings/objc/DOMCSS.mm:
3261         (-[DOMDocument getComputedStyle:pseudoElement:]):
3262         (-[DOMDocument getComputedStyle::]):
3263         (-[DOMDocument getMatchedCSSRules:pseudoElement:]):
3264         * bindings/objc/DOMExtensions.h:
3265         * bindings/objc/DOMHTML.h:
3266         * bindings/objc/DOMRange.h:
3267         * bindings/objc/DOMTraversal.h:
3268
3269 2006-09-25  Eric Seidel  <eric@eseidel.com>
3270
3271         Reviewed by mjs.
3272         
3273         Outermost <svg> element should clip to viewport
3274         http://bugs.webkit.org/show_bug.cgi?id=11007
3275
3276         Test: svg/custom/viewport-clip.svg
3277
3278         * css/svg.css: change svg:root overflow: from 'visible' to 'hidden'
3279
3280 2006-09-25  Anders Carlsson  <acarlsson@apple.com>
3281
3282         Reviewed by Maciej.
3283
3284         * css/MediaList.cpp:
3285         Remove unused header.
3286         
3287         * dom/Document.cpp:
3288         (WebCore::Document::clear):
3289         Use clear instead of iterating through the list of event listeners, removing each one.
3290         (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
3291         
3292         * html/HTMLKeygenElement.cpp:
3293         (WebCore::HTMLKeygenElement::HTMLKeygenElement):
3294         (WebCore::HTMLKeygenElement::appendFormData):
3295         Update due to changes in the SSL key generator.
3296         
3297         * ksvg2/svg/SVGAngle.cpp:
3298         Remove unused header.
3299         
3300         * ksvg2/svg/SVGAnimationElement.cpp:
3301         (SVGAnimationElement::parseMappedAttribute):
3302         Rename methods and pass Strings instead of DeprecatedStrings to
3303         parseSeparatedList.
3304         
3305         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
3306         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
3307         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
3308         * ksvg2/svg/SVGFEMergeElement.cpp:
3309         * ksvg2/svg/SVGFEOffsetElement.cpp:
3310         Remove unused headers.
3311         
3312         * ksvg2/svg/SVGHelper.cpp:
3313         (WebCore::SVGHelper::parseSeparatedList):
3314         * ksvg2/svg/SVGHelper.h:
3315         Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a 
3316         DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
3317         
3318         * ksvg2/svg/SVGLengthList.cpp:
3319         (WebCore::SVGLengthList::parse):
3320         * ksvg2/svg/SVGLengthList.h:
3321         Use Vector<String> instead of DeprecatedStringList.
3322         
3323         * loader/Cache.cpp:
3324         (WebCore::Cache::requestImage):
3325         (WebCore::Cache::requestStyleSheet):
3326         (WebCore::Cache::requestScript):
3327         (WebCore::Cache::requestXSLStyleSheet):
3328         (WebCore::Cache::requestXBLDocument):
3329         (WebCore::Cache::remove):
3330         (WebCore::Cache::get):
3331         Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
3332         
3333         * loader/DocLoader.cpp:
3334         (WebCore::DocLoader::needReload):
3335         * loader/DocLoader.h:
3336         Use a HashSet instead of DeprecatedStringList.
3337         
3338         * page/FrameView.h:
3339         Remove declarations that have no functions.
3340         
3341         * platform/SSLKeyGenerator.h:
3342         * platform/mac/SSLKeyGeneratorMac.mm:
3343         (WebCore::supportedKeySizes):
3344         (WebCore::signedPublicKeyAndChallengeString):
3345         Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
3346         DeprecatedString.
3347
3348 2006-09-25  Dave Hyatt  <hyatt@apple.com>
3349
3350         Shunt the RenderTheme world transform adoption between
3351         Cairo and Windows into getWindowsContext and move the method
3352         out of GraphicsContextCairo and into GraphicsContextWin.
3353
3354         * ChangeLog:
3355         * WebCore.vcproj/WebCore/WebCore.vcproj:
3356         * platform/cairo/GraphicsContextCairo.cpp:
3357         * platform/win/GraphicsContextWin.cpp: Added.
3358         (WebCore::GraphicsContext::getWindowsContext):
3359         (WebCore::GraphicsContext::releaseWindowsContext):
3360         * rendering/RenderThemeWin.cpp:
3361         (WebCore::prepareForDrawing):
3362
3363 2006-09-24  Eric Seidel  <eric@eseidel.com>
3364
3365         Reviewed by hyatt.
3366
3367         <svg:a> cannot be styled with a:hover
3368         http://bugs.webkit.org/show_bug.cgi?id=11005
3369         
3370         Test: svg/hixie/cascade/002.xml
3371
3372         * css/cssstyleselector.cpp:
3373         (WebCore::checkPseudoState):
3374
3375 2006-09-24  Sam Weinig  <sam.weinig@gmail.com>
3376
3377         Reviewed by Tim H.
3378
3379         Patch for http://bugs.webkit.org/show_bug.cgi?id=10882
3380         SVG needs Obj-C DOM bindings
3381
3382         - Auto-generate the first 8 Objective-C SVG DOM bindings.  The 
3383           auto-generated classes are DOMSVGAngle, DOMSVGLength, DOMSVGLengthList,
3384           DOMSVGMatrix, DOMSVGPathSeg, DOMSVGPathSegList, DOMSVGTransform, and 
3385           DOMSVGTransformList.
3386
3387         * DerivedSources.make:
3388         * WebCore.xcodeproj/project.pbxproj:
3389         * bindings/objc/DOMInternal.h:
3390         * bindings/objc/DOMSVG.h: Added.
3391         * ksvg2/svg/SVGAngle.idl:
3392         * ksvg2/svg/SVGLength.idl:
3393         * ksvg2/svg/SVGLengthList.idl:
3394         * ksvg2/svg/SVGMatrix.idl:
3395         * ksvg2/svg/SVGPathSeg.idl:
3396         * ksvg2/svg/SVGPathSegList.idl:
3397         * ksvg2/svg/SVGTransform.idl:
3398         * ksvg2/svg/SVGTransformList.idl:
3399
3400 2006-09-24  Rob Buis  <buis@kde.org>
3401
3402         Reviewed by eseidel.
3403
3404         Fix for http://bugs.webkit.org/show_bug.cgi?id=6001
3405         WebKit does not handle fallback custom cursors
3406         Fix for http://bugs.webkit.org/show_bug.cgi?id=6002
3407         WebKit does not properly handle SVG <cursor> element
3408
3409         Add support for svg cursor images. Also make sure hotspot
3410         settings are handled correctly. Add tests for handling of css3
3411         cursor syntax with hotspots in strict and quirks mode. Finally
3412         implement fallback.
3413
3414         * WebCore.xcodeproj/project.pbxproj:
3415         * css/CSSComputedStyleDeclaration.cpp:
3416         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3417         * css/CSSCursorImageValue.cpp: Added.
3418         (WebCore::CSSCursorImageValue::CSSCursorImageValue):
3419         (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
3420         * css/CSSCursorImageValue.h: Added.
3421         (WebCore::CSSCursorImageValue::hotspot):
3422         * css/cssparser.cpp:
3423         (WebCore::CSSParser::parseValue):
3424         * css/cssstyleselector.cpp:
3425         (WebCore::CSSStyleSelector::applyProperty):
3426         * ksvg2/svg/SVGCursorElement.cpp:
3427         * manual-tests/css3-cursor-fallback-quirks.html: Added.
3428         * manual-tests/css3-cursor-fallback-strict.html: Added.
3429         * manual-tests/cursorfallback.xml: Added.
3430         * page/FrameView.cpp:
3431         (WebCore::selectCursor):
3432         * platform/Cursor.h:
3433         * platform/mac/CursorMac.mm:
3434         (WebCore::createCustomCursor):
3435         (WebCore::Cursor::Cursor):
3436         * platform/qt/CursorQt.cpp:
3437         (WebCore::Cursor::Cursor):
3438         * rendering/RenderStyle.cpp:
3439         (WebCore::StyleInheritedData::StyleInheritedData):
3440         (WebCore::StyleInheritedData::operator==):
3441         (WebCore::RenderStyle::diff):
3442         (WebCore::RenderStyle::addCursor):
3443         (WebCore::RenderStyle::addSVGCursor):
3444         (WebCore::RenderStyle::setCursorList):
3445         (WebCore::RenderStyle::clearCursorList):
3446         * rendering/RenderStyle.h:
3447         (WebCore::CursorData::CursorData):
3448         (WebCore::CursorList::operator[]):
3449         (WebCore::CursorList::size):
3450         (WebCore::CursorList::append):
3451         (WebCore::RenderStyle::cursors):
3452
3453 2006-09-24  Sam Weinig  <sam.weinig@gmail.com>
3454
3455         Reviewed by Tim H.
3456
3457         Patch for http://bugs.webkit.org/show_bug.cgi?id=11009
3458         Auto-generate the internal methods interfaces for the Objective-C bindings
3459
3460         - Auto-generate the internal method declarations into their own files
3461           named in the form DOMFooBarInternal.h for class DOMFooBar.
3462
3463         - Remove all use of DOM_cast from code.
3464
3465         - Assorted cleanups.
3466
3467         * WebCore.xcodeproj/project.pbxproj:
3468         * bindings/objc/DOM.mm:
3469         (-[DOMNode _initWithNode:WebCore::]):
3470         (-[DOMNode WebCore::]):
3471         (-[DOMRange dealloc]):
3472         (-[DOMRange finalize]):
3473         (-[DOMRange _initWithRange:WebCore::]):
3474         (-[DOMRange WebCore::]):
3475         (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
3476         (-[DOMNodeFilter WebCore::]):
3477         (-[DOMNodeFilter dealloc]):
3478         (-[DOMNodeFilter finalize]):
3479         (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
3480         (-[DOMNodeIterator WebCore::]):
3481         (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
3482         (-[DOMTreeWalker WebCore::]):
3483         * bindings/objc/DOMAbstractView.mm:
3484         (-[DOMAbstractView _initWithAbstractView:WebCore::]):
3485         * bindings/objc/DOMCSS.mm:
3486         (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
3487         (-[DOMCSSRule _initWithRule:WebCore::]):
3488         (-[DOMCSSValue _initWithValue:WebCore::]):
3489         * bindings/objc/DOMEvents.mm:
3490         (-[DOMEvent _initWithEvent:WebCore::]):
3491         * bindings/objc/DOMHTMLAppletElement.mm:
3492         (-[DOMHTMLAppletElement align]):
3493         (-[DOMHTMLAppletElement setAlign:]):
3494         (-[DOMHTMLAppletElement alt]):
3495         (-[DOMHTMLAppletElement setAlt:]):
3496         (-[DOMHTMLAppletElement archive]):
3497         (-[DOMHTMLAppletElement setArchive:]):
3498         (-[DOMHTMLAppletElement code]):
3499         (-[DOMHTMLAppletElement setCode:]):
3500         (-[DOMHTMLAppletElement codeBase]):
3501         (-[DOMHTMLAppletElement setCodeBase:]):
3502         (-[DOMHTMLAppletElement height]):
3503         (-[DOMHTMLAppletElement setHeight:]):
3504         (-[DOMHTMLAppletElement hspace]):
3505         (-[DOMHTMLAppletElement setHspace:]):
3506         (-[DOMHTMLAppletElement name]):
3507         (-[DOMHTMLAppletElement setName:]):
3508         (-[DOMHTMLAppletElement object]):
3509         (-[DOMHTMLAppletElement setObject:]):
3510         (-[DOMHTMLAppletElement vspace]):
3511         (-[DOMHTMLAppletElement setVspace:]):
3512         (-[DOMHTMLAppletElement width]):
3513         (-[DOMHTMLAppletElement setWidth:]):
3514         * bindings/objc/DOMInternal.h:
3515         (getDOMWrapper):
3516         (addDOMWrapper):
3517         (raiseOnDOMError):
3518         * bindings/objc/DOMXPath.mm:
3519         (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
3520         * bindings/scripts/CodeGeneratorObjC.pm:
3521
3522 2006-09-24  Nikolas Zimmermann  <zimmermann@kde.org>
3523
3524         Reviewed by eseidel.
3525
3526         Fix Qt/Linux build after Dave's Scrollbar changes.
3527
3528         * platform/qt/PlatformScrollBar.h: (Somehow this contained the file twice! Removed one instance!)
3529         * platform/qt/TemporaryLinkStubs.cpp:
3530         (WebCore::ScrollBar::setProportion):
3531         (WebCore::PlatformScrollBar::updateThumbPosition):
3532         (WebCore::PlatformScrollBar::updateThumbProportion):
3533
3534 2006-09-24  Nikolas Zimmermann  <zimmermann@kde.org>
3535
3536         Reviewed by eseidel.
3537
3538         Qt/Linux build system changes: enable xpath/xslt by default.
3539         Offer possibility to change all of these using 'ccmake'.
3540
3541         * CMakeLists.txt:
3542
3543 2006-09-24  Dave Hyatt  <hyatt@apple.com>
3544
3545         Cleanup of Scrollbar APIs.  Rename setKnobProportion to setProportion.  Rename setScrollbarValue to updateThumbPosition.
3546         Give setProportion a base class implementation and implement it using the same pattern as setValue/updateThumbPosition (so that
3547         the base calls a protected virtual function, updateThumbProportion, implemented by the derived class to update the actual scrollbar itself).
3548
3549         * platform/ScrollBar.cpp:
3550         (WebCore::ScrollBar::setValue):
3551         (WebCore::ScrollBar::setProportion):
3552         * platform/ScrollBar.h:
3553         (WebCore::ScrollBar::value):
3554         * platform/mac/PlatformScrollBar.h:
3555         * platform/mac/PlatformScrollBarMac.mm:
3556         (WebCore::PlatformScrollBar::updateThumbPosition):
3557         (WebCore::PlatformScrollBar::updateThumbProportion):
3558         * platform/win/PlatformScrollBar.h:
3559         * platform/win/TemporaryLinkStubs.cpp:
3560         (PlatformScrollBar::updateThumbPosition):
3561         (PlatformScrollBar::updateThumbProportion):
3562         * rendering/RenderLayer.cpp:
3563         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
3564
3565 2006-09-23  Alexey Proskuryakov  <ap@nypop.com>
3566
3567         Reviewed by Eric.
3568
3569         http://bugs.webkit.org/show_bug.cgi?id=4872
3570         XMLHttpRequest fails to throw an exception when there is a security violation
3571         (mismatching domains)
3572
3573         Raise an exception if there is a security violation, and also in cases required by
3574         the current draft of XHR specification.
3575
3576         * bindings/js/JSXMLHttpRequest.cpp:
3577         (KJS::JSXMLHttpRequest::getValueProperty): Raise an exception if a DOM method reports one.
3578         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Raise an exception if a DOM method
3579         reports one, and also if there were too few arguments passed. 
3580
3581         * bindings/js/kjs_binding.cpp:
3582         (KJS::setDOMException): Added support for custom XHR exceptions.
3583
3584         * xml/xmlhttprequest.h: Changed state names to match the current spec. Defined an
3585         exception code range for XHR exceptions.
3586
3587         * xml/xmlhttprequest.cpp:
3588         (WebCore::XMLHttpRequest::open): Removed a check for m_aborted that could never succeed.
3589         (WebCore::XMLHttpRequest::send):
3590         (WebCore::XMLHttpRequest::setRequestHeader):
3591         (WebCore::XMLHttpRequest::getStatus):
3592         (WebCore::XMLHttpRequest::getStatusText):
3593         (WebCore::XMLHttpRequest::processSyncLoadResults):
3594         (WebCore::XMLHttpRequest::receivedAllData):
3595         (WebCore::XMLHttpRequest::receivedData):
3596
3597 2006-09-22  Steve Falkenburg  <sfalken@apple.com>
3598
3599         Reviewed by Jeff Jenkins.
3600
3601         Tweak CF types.
3602
3603         * platform/cf/ResourceLoaderCFNet.cpp:
3604         (WebCore::willCacheResponse):
3605
3606 2006-09-22  Justin Garcia  <justin.garcia@apple.com>
3607
3608         Reviewed by darin
3609
3610         <http://bugs.webkit.org/show_bug.cgi?id=8029>
3611         Rename Node::isAncestor and RenderObject::hasAncestor to isDescendantOf
3612
3613         * dom/Document.cpp:
3614         (WebCore::Document::clearSelectionIfNeeded):
3615         * dom/Element.cpp:
3616         (WebCore::Element::contains):
3617         * dom/Node.cpp:
3618         (WebCore::Node::traverseNextNode):
3619         (WebCore::Node::traverseNextSibling):
3620         (WebCore::Node::traversePreviousNodePostOrder):
3621         (WebCore::Node::checkAddChild):
3622         (WebCore::Node::isDescendantOf):
3623         * dom/Node.h:
3624         * dom/NodeIterator.cpp:
3625         (WebCore::NodeIterator::notifyBeforeNodeRemoval):
3626         * editing/ApplyStyleCommand.cpp:
3627         (WebCore::ApplyStyleCommand::applyBlockStyle):
3628         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
3629         (WebCore::ApplyStyleCommand::applyInlineStyle):
3630         (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode):
3631         * editing/CompositeEditCommand.cpp:
3632         (WebCore::CompositeEditCommand::mergeIdenticalElements):
3633         (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
3634         * editing/DeleteSelectionCommand.cpp:
3635         (WebCore::updatePositionForNodeRemoval):
3636         (WebCore::DeleteSelectionCommand::handleGeneralDelete):
3637         (WebCore::DeleteSelectionCommand::mergeParagraphs):
3638         * editing/FormatBlockCommand.cpp:
3639         (WebCore::FormatBlockCommand::doApply):
3640         * editing/IndentOutdentCommand.cpp:
3641         (WebCore::enclosingListOrBlockquote):
3642         * editing/Selection.cpp:
3643         (WebCore::Selection::validate):
3644         * editing/SelectionController.cpp:
3645         (WebCore::SelectionController::nodeWillBeRemoved):
3646         * editing/TextIterator.cpp:
3647         (WebCore::SimplifiedBackwardsTextIterator::advance):
3648         * editing/VisiblePosition.cpp:
3649         (WebCore::VisiblePosition::next):
3650         (WebCore::VisiblePosition::previous):
3651         (WebCore::VisiblePosition::canonicalPosition):
3652         (WebCore::isFirstVisiblePositionInNode):
3653         (WebCore::isLastVisiblePositionInNode):
3654         * editing/htmlediting.cpp:
3655         (WebCore::firstEditablePositionAfterPositionInRoot):
3656         (WebCore::lastEditablePositionBeforePositionInRoot):
3657         (WebCore::enclosingNodeWithTag):
3658         (WebCore::enclosingList):
3659         (WebCore::enclosingListChild):
3660         * editing/markup.cpp:
3661         (WebCore::createMarkup):
3662
3663 2006-09-22  Timothy Hatcher  <timothy@apple.com>
3664
3665         Reviewed by Darin.
3666
3667         - Added @property syntax to non-generated headers
3668           inside #ifndef BUILDING_ON_TIGER.
3669         - Changed the DOMEventTarget protocol to have have new versions
3670           of addEventListener and removeEventListener with named parameters.
3671           These old style methods can be removed once Mail changes to use
3672           the new methods <rdar://problem/4746649>.
3673
3674         * WebCorePrefix.h: define BUILDING_ON_TIGER when Tiger is the target
3675         * bindings/objc/DOM.mm:
3676         (-[DOMNode addEventListener:listener:useCapture:]):
3677         (-[DOMNode addEventListener:::]): call the new method
3678         (-[DOMNode removeEventListener:listener:useCapture:]):
3679         (-[DOMNode removeEventListener:::]): call the new method
3680         * bindings/objc/DOMAbstractView.h:
3681         * bindings/objc/DOMEventTarget.h:
3682         * bindings/objc/DOMHTMLAppletElement.h:
3683         * bindings/objc/DOMHTMLEmbedElement.h:
3684         * bindings/objc/DOMHTMLOptionElement.h:
3685         * bindings/objc/DOMObject.h:
3686         * bindings/objc/DOMRGBColor.h:
3687
3688 2006-09-22  Nikolas Zimmermann  <zimmermann@kde.org>
3689
3690         Reviewed by Eric.
3691
3692         Fix Qt/Linux build and a really stupid mixup in GraphicsContextQt.
3693
3694         * platform/qt/FrameQt.cpp:
3695         * platform/qt/GraphicsContextQt.cpp:
3696         (WebCore::GraphicsContext::translate): Make it actually translate, not scale! :-)
3697         (WebCore::GraphicsContext::origin):
3698         * platform/qt/PlatformScrollBar.h: Added.
3699         (WebCore::PlatformScrollBar::isWidget):
3700         * platform/qt/WidgetQt.cpp:
3701         (WebCore::Widget::invalidate):
3702         (WebCore::Widget::invalidateRect):
3703
3704 2006-09-22  Dave Hyatt <hyatt@apple.com>
3705
3706         Super-minor tweaks to the systemFont function on Mac.
3707         Set the generic family to None rather than to Serif, and
3708         don't waste time setting the computed size, since that is
3709         set from the specified size over in CSSStyleSelector anyway.
3710
3711         * rendering/RenderThemeMac.mm:
3712         (WebCore::RenderThemeMac::systemFont):
3713
3714 2006-09-22  Timothy Hatcher  <timothy@apple.com>
3715
3716         Reviewed by Brady.
3717
3718         Build fix for Xcode 2.3. Convert GraphicsContext::translate() to
3719         take floats. There was already an implicit conversion to float/double
3720         when calling CGContextTranslateCTM or cairo_translate.
3721
3722         * platform/GraphicsContext.h:
3723         * platform/cairo/GraphicsContextCairo.cpp:
3724         (WebCore::GraphicsContext::translate):
3725         * platform/cg/GraphicsContextCG.cpp:
3726         (WebCore::GraphicsContext::translate):
3727
3728 2006-09-22  Brady Eidson  <beidson@apple.com>
3729
3730         Reviewed by Sfalken
3731
3732         Add redirect and other cleanup to ResourceLoaderWin.cpp
3733         Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10927
3734         Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10744
3735
3736         * WebCore.xcodeproj/project.pbxproj:
3737         * platform/ResourceLoader.h:
3738         * platform/win/ResourceLoaderWin.cpp:
3739         (WebCore::ResourceLoaderWndProc):
3740         (WebCore::initializeOffScreenResourceLoaderWindow):
3741         (WebCore::ResourceLoader::onHandleCreated):
3742         (WebCore::ResourceLoader::onRequestRedirected):
3743         (WebCore::ResourceLoader::onRequestComplete):
3744         (WebCore::transferJobStatusCallback):
3745
3746 2006-09-22  Alexey Proskuryakov  <ap@nypop.com>
3747
3748         Reviewed by Geoff.
3749
3750         http://bugs.webkit.org/show_bug.cgi?id=10803
3751         REGRESSION (r15536-r15544): manual-tests/bugzilla-6821.html failing
3752
3753         * page/FrameView.cpp:
3754         (WebCore::FrameView::hoverTimerFired): Use the current event.
3755
3756 2006-09-22  Nikolas Zimmermann  <zimmermann@kde.org>
3757
3758         Reviewed by Anders.
3759
3760         Fix (last) svg memory leak.
3761
3762         * ksvg2/svg/SVGTransformable.cpp: delete 't' in error case.
3763         (SVGTransformable::parseTransformAttribute):
3764
3765 2006-09-22  Eric Seidel  <eric@eseidel.com>
3766
3767         No review necessary, just removing a dead file.
3768
3769         Remove unused file (added previously by mistake) to make room for real implementation.
3770
3771         * platform/mac/BitmapImageMac.mm: Removed.
3772
3773 2006-09-22  Dave Hyatt <hyatt@apple.com>
3774
3775         Move PlatformScrollBar.h down into the platforms.
3776         
3777         Reviewed by andersca
3778
3779         * platform/PlatformScrollBar.h: Removed.
3780         * platform/win/PlatformScrollBar.h: Added.
3781         * platform/mac/PlatformScrollBar.h: Added.
3782
3783 2006-09-22   Dave Hyatt  <hyatt@apple.com>
3784
3785         Add support for invalidation of widgets.  This will be needed for the Win32 widget subsystem (and for
3786         any widget subsystems that don't have any underlying native objects backing the widgets.
3787
3788         Reviewed by anders
3789
3790         * platform/Widget.h:
3791         * platform/mac/WidgetMac.mm:
3792         (WebCore::Widget::invalidate):
3793         (WebCore::Widget::invalidateRect):
3794         * platform/win/TemporaryLinkStubs.cpp:
3795         (Widget::invalidate):
3796         (Widget::invalidateRect):
3797
3798 2006-09-22  Rob Buis  <buis@kd.org>
3799
3800         Reviewed by eseidel.
3801
3802         http://bugs.webkit.org/show_bug.cgi?id=10901
3803         Merge build fixes from unity
3804
3805         * CMakeLists.txt:
3806
3807 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
3808
3809         Reviewed by eseidel.
3810
3811         http://bugs.webkit.org/show_bug.cgi?id=10977
3812         SVGDocument does not expose 'rootElement' property
3813
3814         Enable 'rootElement' property.
3815
3816         * ksvg2/svg/SVGDocument.idl:
3817
3818 2006-09-21  Steve Falkenburg  <sfalken@apple.com>
3819
3820         Tweak includes.
3821
3822         * platform/ResourceLoaderInternal.h:
3823
3824 2006-09-21  Geoffrey Garen  <ggaren@apple.com>
3825
3826         build fixed. band happy.
3827         
3828         * platform/cg/GraphicsContextCG.cpp:
3829         (WebCore::GraphicsContext::translate):
3830         * platform/mac/WidgetMac.mm:
3831
3832 2006-09-21  Geoffrey Garen  <ggaren@apple.com>
3833
3834         Reviewed by Maciej.
3835         
3836         Some Widget refactoring.
3837
3838         * WebCore.vcproj/WebCore/WebCore.vcproj:
3839         * bridge/mac/FrameMac.mm:
3840         * bridge/win/FrameWin.cpp:
3841         (WebCore::FrameWin::runJavaScriptAlert):
3842         (WebCore::FrameWin::runJavaScriptConfirm):
3843         * bridge/win/PageWin.cpp:
3844         (WebCore::Page::Page):
3845         (WebCore::rootWindowForFrame):
3846         * html/CanvasRenderingContext2D.cpp:
3847         (WebCore::CanvasRenderingContext2D::translate):
3848         * page/FrameView.cpp:
3849         (WebCore::FrameView::isFrameView):
3850         * page/Page.h:
3851         (WebCore::Page::setInstanceHandle):
3852         (WebCore::Page::instanceHandle):
3853         * platform/GraphicsContext.h:
3854         * platform/ScrollView.h:
3855         * platform/Widget.h:
3856         * platform/cairo/GraphicsContextCairo.cpp:
3857         (WebCore::GraphicsContext::translate):
3858         (WebCore::GraphicsContext::origin):
3859         * platform/mac/WidgetMac.mm:
3860         (WebCore::Widget::clearFocus):
3861         * platform/win/ResourceLoaderWin.cpp:
3862         (WebCore::initializeOffScreenResourceLoaderWindow):
3863         * platform/win/ScreenWin.cpp:
3864         (WebCore::monitorInfo):
3865         * platform/win/ScrollViewWin.cpp:
3866         (WebCore::ScrollView::updateContents):
3867         (WebCore::ScrollView::visibleWidth):
3868         (WebCore::ScrollView::visibleHeight):
3869         (WebCore::ScrollView::visibleContentRect):
3870         (WebCore::ScrollView::viewportToContents):
3871         (WebCore::ScrollView::contentsToViewport):
3872         (WebCore::ScrollView::scrollBy):
3873         (WebCore::ScrollView::updateScrollInfo):
3874         (WebCore::ScrollView::updateScrollBars):
3875         * platform/win/SharedTimerWin.cpp:
3876         (WebCore::initializeOffScreenTimerWindow):
3877         * platform/win/TemporaryLinkStubs.cpp:
3878         (FrameView::updateBorder):
3879         (ScrollView::paint):
3880         (GraphicsContext::clip):
3881         * platform/win/WidgetWin.cpp:
3882         (WebCore::Widget::Widget):
3883         (WebCore::Widget::parentWindow):
3884         (WebCore::Widget::setParentWindow):
3885         (WebCore::Widget::frameGeometry):
3886         (WebCore::Widget::hasFocus):
3887         (WebCore::Widget::setFocus):
3888         (WebCore::Widget::show):
3889         (WebCore::Widget::hide):
3890         (WebCore::Widget::setFrameGeometry):
3891
3892 2006-09-22  Anders Carlsson  <acarlsson@apple.com>
3893
3894         Reviewed by Tim H.
3895
3896         * platform/TextEncoding.cpp:
3897         (WebCore::TextEncoding::backslashAsCurrencySymbol):
3898         Add comment clarifying why backslashAsCurrencySymbol is needed.
3899
3900 2006-09-21  Sean Gies  <seangies@apple.com>
3901
3902         Reviewed by Adam Roben.
3903
3904         Add utility functions to get and release HDC from GraphicsContext.
3905
3906         * platform/GraphicsContext.h: Add utilities to get and release HDC.
3907         * platform/cairo/GraphicsContextCairo.cpp: Implement new utilities.
3908         * rendering/RenderThemeWin.cpp: Switch to new utilities.
3909
3910 2006-09-21  Justin Garcia  <justin.garcia@apple.com>
3911
3912         Reviewed by anders
3913         
3914         <rdar://problem/4426622>
3915         Plain text paste slow.  Time spent mostly in WebCore::rebalanceWhitespaceInTextNode(...)
3916
3917         * editing/htmlediting.cpp:
3918         (WebCore::rebalanceWhitespaceInTextNode): We no longer need to use a RegExp replace because we
3919         aren't producing complicated sequences here.  Use multiple UChar -> UChar replaces instead for speed.
3920         Got rid of uses of DepricatedString.
3921
3922 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
3923
3924         Reviewed by eseidel.
3925
3926         Don't crash if no IconDatabase is available (ie. on Qt/Gdk)
3927
3928         * page/Frame.cpp:
3929         (WebCore::Frame::endIfNotLoading):
3930
3931 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
3932
3933         Reviewed by eseidel.
3934
3935         Fix Qt/Linux build.
3936
3937         * CMakeLists.txt:
3938         * kcanvas/device/qt/KCanvasClipperQt.h:
3939         * kcanvas/device/qt/KRenderingDeviceQt.cpp:
3940         * platform/qt/FrameQt.cpp:
3941         (WebCore::FrameQt::isLoadTypeReload):
3942         (WebCore::FrameQt::originalRequestURL):
3943         * platform/qt/FrameQt.h:
3944         * platform/qt/GraphicsContextQt.cpp:
3945         (WebCore::GraphicsContext::concatCTM):
3946         * platform/qt/ScrollViewQt.cpp:
3947         (WebCore::ScrollView::wheelEvent):
3948         * platform/qt/TemporaryLinkStubs.cpp:
3949         (WebCore::IconDatabase::setIconURLForPageURL):
3950
3951 2006-09-20  Justin Garcia  <justin.garcia@apple.com>
3952
3953         Reviewed by john
3954         
3955         <http://bugs.webkit.org/show_bug.cgi?id=7165>
3956         TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
3957
3958         * editing/MoveSelectionCommand.cpp:
3959         (WebCore::MoveSelectionCommand::MoveSelectionCommand): Set the document
3960         to the position-to-move-to's document, not the fragment's document.  The 
3961         fragment's document is the document used to create the fragment and is irrelavant.
3962
3963 === Safari-521.27 ===
3964
3965 2006-09-21  Brady Eidson  <beidson@apple.com>
3966
3967         Reviewed by Anders
3968
3969         When your assumption is "IconDatabase::sharedIconDatabase()" will never fail but it does, you're in trouble
3970         This fixes Spinneret so it won't crash on its first load!
3971
3972         * page/Frame.cpp:
3973         (WebCore::Frame::endIfNotLoading):
3974
3975 2006-09-21  Brady Eidson  <beidson@apple.com>
3976
3977         Build fix
3978
3979         * platform/win/TemporaryLinkStubs.cpp:
3980         (ScrollView::wheelEvent):
3981
3982 2006-09-20  Rob Buis  <buis@kde.org>
3983
3984         Reviewed by eseidel.
3985
3986         http://bugs.webkit.org/show_bug.cgi?id=10946
3987         new marker code draws end-marker in wrong place
3988
3989         Keep track of the start of the subpath so we can handle
3990         closeTo/moveTo correctly.
3991
3992         * kcanvas/RenderPath.cpp:
3993         (WebCore::DrawMarkersData::DrawMarkersData):
3994         (WebCore::updateMarkerDataForElement):
3995
3996 2006-09-21  David Hyatt <hyatt@apple.com>
3997
3998         Wheel scrolling prep for Win32.
3999
4000         WARNING: NO TEST CASES ADDED OR CHANGED
4001
4002         * platform/PlatformWheelEvent.h:
4003         * platform/ScrollBar.h:
4004         * platform/ScrollView.h:
4005         * platform/mac/ScrollViewMac.mm:
4006         (WebCore::ScrollView::wheelEvent):
4007         * rendering/RenderLayer.cpp:
4008
4009 2006-09-20  Timothy Hatcher  <timothy@apple.com>
4010
4011         Reviewed by Hyatt.
4012
4013         Bug 10917: REGRESSION (r16027): iFrame transparency broken
4014         http://bugs.webkit.org/show_bug.cgi?id=10917
4015
4016         Don't paint the base background color if we transparent.
4017
4018         * rendering/RenderBox.cpp:
4019         (WebCore::RenderBox::paintBackgroundExtended):
4020
4021 2006-09-20  Adam Roben  <aroben@apple.com>
4022
4023         Reviewed by andersca.
4024
4025         * platform/FileChooser.h: Remove no-longer-necessary namespace std
4026
4027 2006-09-20  Eric Seidel  <eric@eseidel.com>
4028
4029         Reviewed by beth.
4030
4031         Cleanup style in KCanvas.
4032         Remove extra white-space, unneeded arguments, etc.
4033
4034         * WebCore.xcodeproj/project.pbxproj:
4035         * kcanvas/KCanvasClipper.cpp:
4036         (WebCore::operator<<):
4037         (WebCore::KCanvasClipper::externalRepresentation):
4038         * kcanvas/KCanvasClipper.h:
4039         * kcanvas/KCanvasFilters.cpp:
4040         (WebCore::KCanvasFilter::externalRepresentation):
4041         (WebCore::operator<<):
4042         (WebCore::KCanvasFilterEffect::externalRepresentation):
4043         (WebCore::KCPointLightSource::externalRepresentation):
4044         (WebCore::KCSpotLightSource::externalRepresentation):
4045         (WebCore::KCDistantLightSource::externalRepresentation):
4046         (WebCore::KCanvasFEBlend::externalRepresentation):
4047         (WebCore::KCanvasFEColorMatrix::externalRepresentation):
4048         (WebCore::KCanvasFEComponentTransfer::externalRepresentation):
4049         (WebCore::KCanvasFEComposite::externalRepresentation):
4050         (WebCore::KCanvasFEConvolveMatrix::externalRepresentation):
4051         (WebCore::KCanvasFEDiffuseLighting::externalRepresentation):
4052         (WebCore::KCanvasFEDisplacementMap::externalRepresentation):
4053         (WebCore::KCanvasFEFlood::externalRepresentation):
4054         (WebCore::KCanvasFEGaussianBlur::externalRepresentation):
4055         (WebCore::KCanvasFEImage::externalRepresentation):
4056         (WebCore::KCanvasFEMerge::externalRepresentation):
4057         (WebCore::KCanvasFEMorphology::externalRepresentation):
4058         (WebCore::KCanvasFEOffset::externalRepresentation):
4059         (WebCore::KCanvasFESpecularLighting::externalRepresentation):
4060         (WebCore::KCanvasFETile::externalRepresentation):
4061         (WebCore::KCanvasFETurbulence::externalRepresentation):
4062         * kcanvas/KCanvasFilters.h:
4063         (WebCore::KCanvasFEDiffuseLighting::lightSource):
4064         (WebCore::KCanvasFESpecularLighting::lightSource):
4065         * kcanvas/KCanvasImage.h:
4066         * kcanvas/KCanvasMarker.cpp:
4067         (WebCore::KCanvasMarker::externalRepresentation):
4068         * kcanvas/KCanvasMarker.h:
4069         * kcanvas/KCanvasResource.cpp:
4070         (WebCore::operator<<):
4071         * kcanvas/KCanvasResource.h:
4072         * kcanvas/KCanvasTreeDebug.cpp:
4073         (WebCore::operator<<):
4074         (WebCore::writeIndent):
4075         (WebCore::writeStyle):
4076         (WebCore::write):
4077         (WebCore::writeRenderResources):
4078         * kcanvas/KCanvasTreeDebug.h:
4079         (WebCore::operator<<):
4080         * kcanvas/RenderForeignObject.cpp:
4081         (WebCore::RenderForeignObject::paint):
4082         * kcanvas/RenderPath.cpp:
4083         (WebCore::RenderPath::paint):
4084         (WebCore::drawStartAndMidMarkers):
4085         * kcanvas/RenderSVGContainer.cpp:
4086         (WebCore::RenderSVGContainer::paint):
4087         * kcanvas/RenderSVGImage.cpp:
4088         (WebCore::RenderSVGImage::translateForAttributes):
4089         * kcanvas/RenderSVGImage.h:
4090         * kcanvas/device/KRenderingDevice.cpp:
4091         (WebCore::KRenderingDevice::currentContext):
4092         (WebCore::KRenderingDevice::popContext):
4093         (WebCore::KRenderingDevice::pushContext):
4094         * kcanvas/device/KRenderingDevice.h:
4095         * kcanvas/device/KRenderingFillPainter.h:
4096         * kcanvas/device/KRenderingPaintServer.h:
4097         (WebCore::KRenderingPaintServer::KRenderingPaintServer):
4098         (WebCore::KRenderingPaintServer::activeClient):
4099         (WebCore::KRenderingPaintServer::setActiveClient):
4100         * kcanvas/device/KRenderingPaintServerGradient.cpp:
4101         (WebCore::operator<<):
4102         (WebCore::KRenderingPaintServerGradient::externalRepresentation):
4103         (WebCore::KRenderingPaintServerLinearGradient::externalRepresentation):
4104         (WebCore::KRenderingPaintServerGradient::listener):
4105         (WebCore::KRenderingPaintServerGradient::setListener):
4106         (WebCore::KRenderingPaintServerRadialGradient::externalRepresentation):
4107         * kcanvas/device/KRenderingPaintServerGradient.h:
4108         * kcanvas/device/KRenderingPaintServerPattern.cpp:
4109         (WebCore::KRenderingPaintServerPattern::tile):
4110         (WebCore::KRenderingPaintServerPattern::setTile):
4111         (WebCore::KRenderingPaintServerPattern::listener):
4112         (WebCore::KRenderingPaintServerPattern::setListener):
4113         (WebCore::KRenderingPaintServerPattern::externalRepresentation):
4114         * kcanvas/device/KRenderingPaintServerPattern.h:
4115         * kcanvas/device/KRenderingPaintServerSolid.cpp:
4116         (WebCore::KRenderingPaintServerSolid::externalRepresentation):
4117         * kcanvas/device/KRenderingPaintServerSolid.h:
4118         * kcanvas/device/KRenderingStrokePainter.cpp:
4119         (WebCore::KRenderingStrokePainter::strokeMiterLimit):
4120         (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
4121         * kcanvas/device/KRenderingStrokePainter.h:
4122         * kcanvas/device/quartz/KCanvasFilterQuartz.h:
4123         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
4124         (WebCore::KCanvasFilterQuartz::prepareFilter):
4125         * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
4126         * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
4127         (WebCore::KCanvasMaskerQuartz::applyMask):
4128         * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
4129         (WebCore::KCanvasImageQuartz::init):
4130         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
4131         (WebCore::KCanvasClipperQuartz::applyClip):
4132         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
4133         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
4134         (WebCore::KRenderingDeviceQuartz::quartzContext):
4135         (WebCore::KRenderingDeviceQuartz::contextForImage):
4136         (WebCore::KRenderingDeviceQuartz::createPaintServer):
4137         (WebCore::KRenderingDeviceQuartz::createResource):
4138         (WebCore::KRenderingDeviceQuartz::createFilterEffect):
4139         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
4140         (WebCore::CGShadingRefForLinearGradient):
4141         (WebCore::CGShadingRefForRadialGradient):
4142         (WebCore::KRenderingPaintServerGradientQuartz::updateQuartzGradientCache):
4143         (WebCore::KRenderingPaintServerGradientQuartz::teardown):
4144         * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
4145         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
4146         (WebCore::KRenderingPaintServerQuartzHelper::strokePath):
4147         (WebCore::KRenderingPaintServerQuartzHelper::clipToStrokePath):
4148         (WebCore::KRenderingPaintServerQuartzHelper::fillPath):
4149         (WebCore::KRenderingPaintServerQuartzHelper::clipToFillPath):
4150         (WebCore::KRenderingPaintServerSolidQuartz::draw):
4151         (WebCore::KRenderingPaintServerSolidQuartz::setup):
4152         (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
4153         (WebCore::KRenderingPaintServerPatternQuartz::setup):
4154         (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
4155         (WebCore::KRenderingPaintServerPatternQuartz::teardown):
4156         * kcanvas/device/quartz/QuartzSupport.h:
4157         * kcanvas/device/quartz/QuartzSupport.mm:
4158         (WebCore::applyStrokeStyleToContext):
4159
4160 2006-09-20  Anders Carlsson  <acarlsson@apple.com>
4161
4162         Reviewed by Dave Hyatt.
4163
4164         * dom/WheelEvent.cpp:
4165         (WebCore::WheelEvent::WheelEvent):
4166         Use lroundf instead of lround since deltas are floats.
4167
4168 2006-09-20  Julien Palmas  <julien.palmas@gmail.com>
4169
4170         Reviewed by eseidel.  Landed by eseidel.
4171
4172         Test: svg/custom/pattern-y-offset.svg
4173
4174         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
4175         (WebCore::KRenderingPaintServerPatternQuartz::setup):
4176
4177 2006-09-20  David Hyatt  <hyatt@apple.com>
4178
4179         Add a new wheelEvent method to ScrollView.  Platforms that wish
4180         to handle the wheel event for the scroll view themselves can then
4181         do so there.  (Mac lets the underlying NSScrollView do it for now.)
4182
4183         * page/FrameView.cpp:
4184         (WebCore::FrameView::handleWheelEvent):
4185         * platform/ScrollView.h:
4186         (WebCore::ScrollView::wheelEvent):
4187
4188 2006-09-20  Brady Eidson  <beidson@apple.com>
4189
4190         Reviewed by Tim Omernick
4191
4192         Part of fixing a crash Tim O showed me that I missed in a release build.
4193         WebKit should be able to call through the bridge to WebCore no matter what -
4194         Replace the _iconDB member with calls to IconDatabase::sharedIconDatabase()
4195
4196         * bridge/mac/WebCoreIconDatabaseBridge.h:
4197         * bridge/mac/WebCoreIconDatabaseBridge.mm:
4198         (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
4199         (-[WebCoreIconDatabaseBridge isOpen]):
4200         (-[WebCoreIconDatabaseBridge removeAllIcons]):
4201         (-[WebCoreIconDatabaseBridge _isEmpty]):
4202         (-[WebCoreIconDatabaseBridge isIconExpiredForIconURL:]):
4203         (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
4204         (-[WebCoreIconDatabaseBridge privateBrowsingEnabled]):
4205         (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
4206         (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
4207         (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
4208         (-[WebCoreIconDatabaseBridge retainIconForURL:]):
4209         (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
4210         (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
4211         (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
4212         (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
4213         (-[WebCoreIconDatabaseBridge _hasEntryForIconURL:]):
4214         (-[WebCoreIconDatabaseBridge _setEnabled:]):
4215         (-[WebCoreIconDatabaseBridge _isEnabled]):
4216
4217 2006-09-20  Anders Carlsson  <acarlsson@apple.com>
4218
4219         Reviewed by Darin.
4220
4221         Add String::split which returns a Vector of Strings and use it instead of 
4222         DeprecatedStringList.
4223         
4224         * bindings/js/kjs_events.cpp:
4225         (KJS::Clipboard::getValueProperty):
4226         * bindings/js/kjs_window.cpp:
4227         (KJS::parseModalDialogFeatures):
4228         * css/MediaList.cpp:
4229         (WebCore::MediaList::setMediaText):
4230         * dom/Clipboard.h:
4231         * html/HTMLFormElement.cpp:
4232         (WebCore::HTMLFormElement::formData):
4233         * html/HTMLLinkElement.cpp:
4234         (WebCore::HTMLLinkElement::tokenizeRelAttribute):
4235         * platform/PlatformString.h:
4236         * platform/String.cpp:
4237         (WebCore::String::split):
4238         * platform/StringImpl.cpp:
4239         * platform/StringImpl.h:
4240         * platform/mac/ClipboardMac.h:
4241         * platform/mac/ClipboardMac.mm:
4242         (WebCore::ClipboardMac::types):
4243
4244 2006-09-20  Justin Garcia  <justin.garcia@apple.com>
4245
4246         Reviewed by harrison
4247
4248         * css/cssstyleselector.cpp:
4249         (WebCore::CSSStyleSelector::adjustRenderStyle): Don't call 
4250         HTMLElement::isContentEditable just to check the Frame's editability, since
4251         it calls updateRenderering, which can get us into infinite recursion.
4252
4253 2006-09-20  Brady Eidson  <beidson@apple.com>
4254
4255         Reviewed by Darin
4256
4257         Cleaned up my last patch alot, and made the WebCore icon database disabled by default
4258
4259         * loader/icon/IconDatabase.cpp:
4260         (WebCore::IconDatabase::IconDatabase): Disabled by default
4261         (WebCore::IconDatabase::removeAllIcons): Respect just isOpen() (disabled database will always be closed)
4262         (WebCore::IconDatabase::setPrivateBrowsingEnabled): Ditto
4263         (WebCore::IconDatabase::iconForPageURL): Ditto
4264         (WebCore::IconDatabase::isIconExpiredForIconURL): Ditto
4265         (WebCore::IconDatabase::iconURLForPageURL): Ditto
4266         (WebCore::IconDatabase::retainIconForPageURL): Ditto
4267         (WebCore::IconDatabase::releaseIconForPageURL): Ditto
4268         (WebCore::IconDatabase::setIconDataForIconURL): Ditto
4269         (WebCore::IconDatabase::setIconURLForPageURL): Ditto
4270         (WebCore::IconDatabase::hasEntryForIconURL): Ditto
4271         (WebCore::IconDatabase::setEnabled): Fixed a big bug here!
4272
4273 2006-09-20  Adam Roben  <aroben@apple.com>
4274
4275         Reviewed by Adele.
4276
4277         Fixes http://bugs.webkit.org/show_bug.cgi?id=10935
4278         REGRESSION: file upload control with direction:rtl or text-align:right
4279         draws button on&