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