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