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