Remove extra </Filter> tag which prevented the vcproj from being parsed corre...
[WebKit-https.git] / WebCore / ChangeLog
1 2007-11-30   Anders Carlsson  <andersca@apple.com>
2
3         Remove extra </Filter> tag which prevented the vcproj from being parsed correctly.
4         
5         * WebCore.vcproj/WebCore.vcproj:
6
7 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
8
9         Not reviewed. Try to fix qt/gtk build.
10
11         * WebCore.pro:
12
13 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
14
15         Rubber stamped by Eric.
16
17         Final integration of ksvg2 in WebKit. Moving ksvg2/ to svg/ and killing all it's subdirectories,
18         by moving the files into approriate locations (css, rendering, ...) - as dicsussed on the
19         mailing list and on IRC with David/Darin & Eric.
20
21         Updated all build files - though I can't guarantee it builds on non-mac. Need buildbot to verify.
22
23         * DerivedSources.make:
24         * WebCore.pro:
25         * WebCore.vcproj/WebCore.vcproj:
26         * WebCore.xcodeproj/project.pbxproj:
27         * bindings/js/JSSVGLazyEventListener.cpp: Copied from ksvg2/events/JSSVGLazyEventListener.cpp.
28         * bindings/js/JSSVGLazyEventListener.h: Copied from ksvg2/events/JSSVGLazyEventListener.h.
29         * css/SVGCSSComputedStyleDeclaration.cpp: Copied from ksvg2/css/SVGCSSComputedStyleDeclaration.cpp.
30         * css/SVGCSSParser.cpp: Copied from ksvg2/css/SVGCSSParser.cpp.
31         * css/SVGCSSPropertyNames.in: Copied from ksvg2/css/SVGCSSPropertyNames.in.
32         * css/SVGCSSStyleSelector.cpp: Copied from ksvg2/css/SVGCSSStyleSelector.cpp.
33         * css/SVGCSSValueKeywords.in: Copied from ksvg2/css/SVGCSSValueKeywords.in.
34         * dom/make_names.pl: Copied from ksvg2/scripts/make_names.pl.
35         * ksvg2/css/SVGCSSComputedStyleDeclaration.cpp: Removed.
36         * ksvg2/css/SVGCSSParser.cpp: Removed.
37         * ksvg2/css/SVGCSSPropertyNames.in: Removed.
38         * ksvg2/css/SVGCSSStyleSelector.cpp: Removed.
39         * ksvg2/css/SVGCSSValueKeywords.in: Removed.
40         * ksvg2/css/SVGRenderStyle.cpp: Removed.
41         * ksvg2/css/SVGRenderStyle.h: Removed.
42         * ksvg2/css/SVGRenderStyleDefs.cpp: Removed.
43         * ksvg2/css/SVGRenderStyleDefs.h: Removed.
44         * ksvg2/events/JSSVGLazyEventListener.cpp: Removed.
45         * ksvg2/events/JSSVGLazyEventListener.h: Removed.
46         * ksvg2/events/SVGZoomEvent.cpp: Removed.
47         * ksvg2/events/SVGZoomEvent.h: Removed.
48         * ksvg2/events/SVGZoomEvent.idl: Removed.
49         * ksvg2/misc/PointerEventsHitRules.cpp: Removed.
50         * ksvg2/misc/PointerEventsHitRules.h: Removed.
51         * ksvg2/misc/SVGDocumentExtensions.cpp: Removed.
52         * ksvg2/misc/SVGDocumentExtensions.h: Removed.
53         * ksvg2/misc/SVGImageLoader.cpp: Removed.
54         * ksvg2/misc/SVGImageLoader.h: Removed.
55         * ksvg2/misc/SVGTimer.cpp: Removed.
56         * ksvg2/misc/SVGTimer.h: Removed.
57         * ksvg2/misc/TimeScheduler.cpp: Removed.
58         * ksvg2/misc/TimeScheduler.h: Removed.
59         * ksvg2/misc/xlinkattrs.in: Removed.
60         * ksvg2/scripts/make_names.pl: Removed.
61         * ksvg2/svg: Removed.
62         * ksvg2/svg/ColorDistance.cpp: Removed.
63         * ksvg2/svg/ColorDistance.h: Removed.
64         * ksvg2/svg/GradientAttributes.h: Removed.
65         * ksvg2/svg/LinearGradientAttributes.h: Removed.
66         * ksvg2/svg/PatternAttributes.h: Removed.
67         * ksvg2/svg/RadialGradientAttributes.h: Removed.
68         * ksvg2/svg/SVGAElement.cpp: Removed.
69         * ksvg2/svg/SVGAElement.h: Removed.
70         * ksvg2/svg/SVGAElement.idl: Removed.
71         * ksvg2/svg/SVGAngle.cpp: Removed.
72         * ksvg2/svg/SVGAngle.h: Removed.
73         * ksvg2/svg/SVGAngle.idl: Removed.
74         * ksvg2/svg/SVGAnimateColorElement.cpp: Removed.
75         * ksvg2/svg/SVGAnimateColorElement.h: Removed.
76         * ksvg2/svg/SVGAnimateColorElement.idl: Removed.
77         * ksvg2/svg/SVGAnimateElement.cpp: Removed.
78         * ksvg2/svg/SVGAnimateElement.h: Removed.
79         * ksvg2/svg/SVGAnimateElement.idl: Removed.
80         * ksvg2/svg/SVGAnimateMotionElement.cpp: Removed.
81         * ksvg2/svg/SVGAnimateMotionElement.h: Removed.
82         * ksvg2/svg/SVGAnimateTransformElement.cpp: Removed.
83         * ksvg2/svg/SVGAnimateTransformElement.h: Removed.
84         * ksvg2/svg/SVGAnimateTransformElement.idl: Removed.
85         * ksvg2/svg/SVGAnimatedAngle.idl: Removed.
86         * ksvg2/svg/SVGAnimatedBoolean.idl: Removed.
87         * ksvg2/svg/SVGAnimatedEnumeration.idl: Removed.
88         * ksvg2/svg/SVGAnimatedInteger.idl: Removed.
89         * ksvg2/svg/SVGAnimatedLength.idl: Removed.
90         * ksvg2/svg/SVGAnimatedLengthList.idl: Removed.
91         * ksvg2/svg/SVGAnimatedNumber.idl: Removed.
92         * ksvg2/svg/SVGAnimatedNumberList.idl: Removed.
93         * ksvg2/svg/SVGAnimatedPathData.cpp: Removed.
94         * ksvg2/svg/SVGAnimatedPathData.h: Removed.
95         * ksvg2/svg/SVGAnimatedPathData.idl: Removed.
96         * ksvg2/svg/SVGAnimatedPoints.cpp: Removed.
97         * ksvg2/svg/SVGAnimatedPoints.h: Removed.
98         * ksvg2/svg/SVGAnimatedPoints.idl: Removed.
99         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl: Removed.
100         * ksvg2/svg/SVGAnimatedRect.idl: Removed.
101         * ksvg2/svg/SVGAnimatedString.idl: Removed.
102         * ksvg2/svg/SVGAnimatedTemplate.h: Removed.
103         * ksvg2/svg/SVGAnimatedTransformList.idl: Removed.
104         * ksvg2/svg/SVGAnimationElement.cpp: Removed.
105         * ksvg2/svg/SVGAnimationElement.h: Removed.
106         * ksvg2/svg/SVGAnimationElement.idl: Removed.
107         * ksvg2/svg/SVGCircleElement.cpp: Removed.
108         * ksvg2/svg/SVGCircleElement.h: Removed.
109         * ksvg2/svg/SVGCircleElement.idl: Removed.
110         * ksvg2/svg/SVGClipPathElement.cpp: Removed.
111         * ksvg2/svg/SVGClipPathElement.h: Removed.
112         * ksvg2/svg/SVGClipPathElement.idl: Removed.
113         * ksvg2/svg/SVGColor.cpp: Removed.
114         * ksvg2/svg/SVGColor.h: Removed.
115         * ksvg2/svg/SVGColor.idl: Removed.
116         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp: Removed.
117         * ksvg2/svg/SVGComponentTransferFunctionElement.h: Removed.
118         * ksvg2/svg/SVGComponentTransferFunctionElement.idl: Removed.
119         * ksvg2/svg/SVGCursorElement.cpp: Removed.
120         * ksvg2/svg/SVGCursorElement.h: Removed.
121         * ksvg2/svg/SVGCursorElement.idl: Removed.
122         * ksvg2/svg/SVGDefinitionSrcElement.cpp: Removed.
123         * ksvg2/svg/SVGDefinitionSrcElement.h: Removed.
124         * ksvg2/svg/SVGDefinitionSrcElement.idl: Removed.
125         * ksvg2/svg/SVGDefsElement.cpp: Removed.
126         * ksvg2/svg/SVGDefsElement.h: Removed.
127         * ksvg2/svg/SVGDefsElement.idl: Removed.
128         * ksvg2/svg/SVGDescElement.cpp: Removed.
129         * ksvg2/svg/SVGDescElement.h: Removed.
130         * ksvg2/svg/SVGDescElement.idl: Removed.
131         * ksvg2/svg/SVGDocument.cpp: Removed.
132         * ksvg2/svg/SVGDocument.h: Removed.
133         * ksvg2/svg/SVGDocument.idl: Removed.
134         * ksvg2/svg/SVGElement.cpp: Removed.
135         * ksvg2/svg/SVGElement.h: Removed.
136         * ksvg2/svg/SVGElement.idl: Removed.
137         * ksvg2/svg/SVGElementInstance.cpp: Removed.
138         * ksvg2/svg/SVGElementInstance.h: Removed.
139         * ksvg2/svg/SVGElementInstance.idl: Removed.
140         * ksvg2/svg/SVGElementInstanceList.cpp: Removed.
141         * ksvg2/svg/SVGElementInstanceList.h: Removed.
142         * ksvg2/svg/SVGElementInstanceList.idl: Removed.
143         * ksvg2/svg/SVGEllipseElement.cpp: Removed.
144         * ksvg2/svg/SVGEllipseElement.h: Removed.
145         * ksvg2/svg/SVGEllipseElement.idl: Removed.
146         * ksvg2/svg/SVGException.h: Removed.
147         * ksvg2/svg/SVGException.idl: Removed.
148         * ksvg2/svg/SVGExternalResourcesRequired.cpp: Removed.
149         * ksvg2/svg/SVGExternalResourcesRequired.h: Removed.
150         * ksvg2/svg/SVGExternalResourcesRequired.idl: Removed.
151         * ksvg2/svg/SVGFEBlendElement.cpp: Removed.
152         * ksvg2/svg/SVGFEBlendElement.h: Removed.
153         * ksvg2/svg/SVGFEBlendElement.idl: Removed.
154         * ksvg2/svg/SVGFEColorMatrixElement.cpp: Removed.
155         * ksvg2/svg/SVGFEColorMatrixElement.h: Removed.
156         * ksvg2/svg/SVGFEColorMatrixElement.idl: Removed.
157         * ksvg2/svg/SVGFEComponentTransferElement.cpp: Removed.
158         * ksvg2/svg/SVGFEComponentTransferElement.h: Removed.
159         * ksvg2/svg/SVGFEComponentTransferElement.idl: Removed.
160         * ksvg2/svg/SVGFECompositeElement.cpp: Removed.
161         * ksvg2/svg/SVGFECompositeElement.h: Removed.
162         * ksvg2/svg/SVGFECompositeElement.idl: Removed.
163         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp: Removed.
164         * ksvg2/svg/SVGFEDiffuseLightingElement.h: Removed.
165         * ksvg2/svg/SVGFEDiffuseLightingElement.idl: Removed.
166         * ksvg2/svg/SVGFEDisplacementMapElement.cpp: Removed.
167         * ksvg2/svg/SVGFEDisplacementMapElement.h: Removed.
168         * ksvg2/svg/SVGFEDisplacementMapElement.idl: Removed.
169         * ksvg2/svg/SVGFEDistantLightElement.cpp: Removed.
170         * ksvg2/svg/SVGFEDistantLightElement.h: Removed.
171         * ksvg2/svg/SVGFEDistantLightElement.idl: Removed.
172         * ksvg2/svg/SVGFEFloodElement.cpp: Removed.
173         * ksvg2/svg/SVGFEFloodElement.h: Removed.
174         * ksvg2/svg/SVGFEFloodElement.idl: Removed.
175         * ksvg2/svg/SVGFEFuncAElement.cpp: Removed.
176         * ksvg2/svg/SVGFEFuncAElement.h: Removed.
177         * ksvg2/svg/SVGFEFuncAElement.idl: Removed.
178         * ksvg2/svg/SVGFEFuncBElement.cpp: Removed.
179         * ksvg2/svg/SVGFEFuncBElement.h: Removed.
180         * ksvg2/svg/SVGFEFuncBElement.idl: Removed.
181         * ksvg2/svg/SVGFEFuncGElement.cpp: Removed.
182         * ksvg2/svg/SVGFEFuncGElement.h: Removed.
183         * ksvg2/svg/SVGFEFuncGElement.idl: Removed.
184         * ksvg2/svg/SVGFEFuncRElement.cpp: Removed.
185         * ksvg2/svg/SVGFEFuncRElement.h: Removed.
186         * ksvg2/svg/SVGFEFuncRElement.idl: Removed.
187         * ksvg2/svg/SVGFEGaussianBlurElement.cpp: Removed.
188         * ksvg2/svg/SVGFEGaussianBlurElement.h: Removed.
189         * ksvg2/svg/SVGFEGaussianBlurElement.idl: Removed.
190         * ksvg2/svg/SVGFEImageElement.cpp: Removed.
191         * ksvg2/svg/SVGFEImageElement.h: Removed.
192         * ksvg2/svg/SVGFEImageElement.idl: Removed.
193         * ksvg2/svg/SVGFELightElement.cpp: Removed.
194         * ksvg2/svg/SVGFELightElement.h: Removed.
195         * ksvg2/svg/SVGFEMergeElement.cpp: Removed.
196         * ksvg2/svg/SVGFEMergeElement.h: Removed.
197         * ksvg2/svg/SVGFEMergeElement.idl: Removed.
198         * ksvg2/svg/SVGFEMergeNodeElement.cpp: Removed.
199         * ksvg2/svg/SVGFEMergeNodeElement.h: Removed.
200         * ksvg2/svg/SVGFEMergeNodeElement.idl: Removed.
201         * ksvg2/svg/SVGFEOffsetElement.cpp: Removed.
202         * ksvg2/svg/SVGFEOffsetElement.h: Removed.
203         * ksvg2/svg/SVGFEOffsetElement.idl: Removed.
204         * ksvg2/svg/SVGFEPointLightElement.cpp: Removed.
205         * ksvg2/svg/SVGFEPointLightElement.h: Removed.
206         * ksvg2/svg/SVGFEPointLightElement.idl: Removed.
207         * ksvg2/svg/SVGFESpecularLightingElement.cpp: Removed.
208         * ksvg2/svg/SVGFESpecularLightingElement.h: Removed.
209         * ksvg2/svg/SVGFESpecularLightingElement.idl: Removed.
210         * ksvg2/svg/SVGFESpotLightElement.cpp: Removed.
211         * ksvg2/svg/SVGFESpotLightElement.h: Removed.
212         * ksvg2/svg/SVGFESpotLightElement.idl: Removed.
213         * ksvg2/svg/SVGFETileElement.cpp: Removed.
214         * ksvg2/svg/SVGFETileElement.h: Removed.
215         * ksvg2/svg/SVGFETileElement.idl: Removed.
216         * ksvg2/svg/SVGFETurbulenceElement.cpp: Removed.
217         * ksvg2/svg/SVGFETurbulenceElement.h: Removed.
218         * ksvg2/svg/SVGFETurbulenceElement.idl: Removed.
219         * ksvg2/svg/SVGFilterElement.cpp: Removed.
220         * ksvg2/svg/SVGFilterElement.h: Removed.
221         * ksvg2/svg/SVGFilterElement.idl: Removed.
222         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp: Removed.
223         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h: Removed.
224         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl: Removed.
225         * ksvg2/svg/SVGFitToViewBox.cpp: Removed.
226         * ksvg2/svg/SVGFitToViewBox.h: Removed.
227         * ksvg2/svg/SVGFitToViewBox.idl: Removed.
228         * ksvg2/svg/SVGFontFaceElement.cpp: Removed.
229         * ksvg2/svg/SVGFontFaceElement.h: Removed.
230         * ksvg2/svg/SVGFontFaceElement.idl: Removed.
231         * ksvg2/svg/SVGFontFaceFormatElement.cpp: Removed.
232         * ksvg2/svg/SVGFontFaceFormatElement.h: Removed.
233         * ksvg2/svg/SVGFontFaceFormatElement.idl: Removed.
234         * ksvg2/svg/SVGFontFaceNameElement.cpp: Removed.
235         * ksvg2/svg/SVGFontFaceNameElement.h: Removed.
236         * ksvg2/svg/SVGFontFaceNameElement.idl: Removed.
237         * ksvg2/svg/SVGFontFaceSrcElement.cpp: Removed.
238         * ksvg2/svg/SVGFontFaceSrcElement.h: Removed.
239         * ksvg2/svg/SVGFontFaceSrcElement.idl: Removed.
240         * ksvg2/svg/SVGFontFaceUriElement.cpp: Removed.
241         * ksvg2/svg/SVGFontFaceUriElement.h: Removed.
242         * ksvg2/svg/SVGFontFaceUriElement.idl: Removed.
243         * ksvg2/svg/SVGForeignObjectElement.cpp: Removed.
244         * ksvg2/svg/SVGForeignObjectElement.h: Removed.
245         * ksvg2/svg/SVGForeignObjectElement.idl: Removed.
246         * ksvg2/svg/SVGGElement.cpp: Removed.
247         * ksvg2/svg/SVGGElement.h: Removed.
248         * ksvg2/svg/SVGGElement.idl: Removed.
249         * ksvg2/svg/SVGGradientElement.cpp: Removed.
250         * ksvg2/svg/SVGGradientElement.h: Removed.
251         * ksvg2/svg/SVGGradientElement.idl: Removed.
252         * ksvg2/svg/SVGImageElement.cpp: Removed.
253         * ksvg2/svg/SVGImageElement.h: Removed.
254         * ksvg2/svg/SVGImageElement.idl: Removed.
255         * ksvg2/svg/SVGLangSpace.cpp: Removed.
256         * ksvg2/svg/SVGLangSpace.h: Removed.
257         * ksvg2/svg/SVGLangSpace.idl: Removed.
258         * ksvg2/svg/SVGLength.cpp: Removed.
259         * ksvg2/svg/SVGLength.h: Removed.
260         * ksvg2/svg/SVGLength.idl: Removed.
261         * ksvg2/svg/SVGLengthList.cpp: Removed.
262         * ksvg2/svg/SVGLengthList.h: Removed.
263         * ksvg2/svg/SVGLengthList.idl: Removed.
264         * ksvg2/svg/SVGLineElement.cpp: Removed.
265         * ksvg2/svg/SVGLineElement.h: Removed.
266         * ksvg2/svg/SVGLineElement.idl: Removed.
267         * ksvg2/svg/SVGLinearGradientElement.cpp: Removed.
268         * ksvg2/svg/SVGLinearGradientElement.h: Removed.
269         * ksvg2/svg/SVGLinearGradientElement.idl: Removed.
270         * ksvg2/svg/SVGList.h: Removed.
271         * ksvg2/svg/SVGListTraits.h: Removed.
272         * ksvg2/svg/SVGLocatable.cpp: Removed.
273         * ksvg2/svg/SVGLocatable.h: Removed.
274         * ksvg2/svg/SVGLocatable.idl: Removed.
275         * ksvg2/svg/SVGMPathElement.cpp: Removed.
276         * ksvg2/svg/SVGMPathElement.h: Removed.
277         * ksvg2/svg/SVGMarkerElement.cpp: Removed.
278         * ksvg2/svg/SVGMarkerElement.h: Removed.
279         * ksvg2/svg/SVGMarkerElement.idl: Removed.
280         * ksvg2/svg/SVGMaskElement.cpp: Removed.
281         * ksvg2/svg/SVGMaskElement.h: Removed.
282         * ksvg2/svg/SVGMaskElement.idl: Removed.
283         * ksvg2/svg/SVGMatrix.idl: Removed.
284         * ksvg2/svg/SVGMetadataElement.cpp: Removed.
285         * ksvg2/svg/SVGMetadataElement.h: Removed.
286         * ksvg2/svg/SVGMetadataElement.idl: Removed.
287         * ksvg2/svg/SVGNumber.idl: Removed.
288         * ksvg2/svg/SVGNumberList.cpp: Removed.
289         * ksvg2/svg/SVGNumberList.h: Removed.
290         * ksvg2/svg/SVGNumberList.idl: Removed.
291         * ksvg2/svg/SVGPaint.cpp: Removed.
292         * ksvg2/svg/SVGPaint.h: Removed.
293         * ksvg2/svg/SVGPaint.idl: Removed.
294         * ksvg2/svg/SVGParserUtilities.cpp: Removed.
295         * ksvg2/svg/SVGParserUtilities.h: Removed.
296         * ksvg2/svg/SVGPathElement.cpp: Removed.
297         * ksvg2/svg/SVGPathElement.h: Removed.
298         * ksvg2/svg/SVGPathElement.idl: Removed.
299         * ksvg2/svg/SVGPathSeg.h: Removed.
300         * ksvg2/svg/SVGPathSeg.idl: Removed.
301         * ksvg2/svg/SVGPathSegArc.cpp: Removed.
302         * ksvg2/svg/SVGPathSegArc.h: Removed.
303         * ksvg2/svg/SVGPathSegArcAbs.idl: Removed.
304         * ksvg2/svg/SVGPathSegArcRel.idl: Removed.
305         * ksvg2/svg/SVGPathSegClosePath.cpp: Removed.
306         * ksvg2/svg/SVGPathSegClosePath.h: Removed.
307         * ksvg2/svg/SVGPathSegClosePath.idl: Removed.
308         * ksvg2/svg/SVGPathSegCurvetoCubic.cpp: Removed.
309         * ksvg2/svg/SVGPathSegCurvetoCubic.h: Removed.
310         * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl: Removed.
311         * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl: Removed.
312         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp: Removed.
313         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h: Removed.
314         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl: Removed.
315         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl: Removed.
316         * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp: Removed.
317         * ksvg2/svg/SVGPathSegCurvetoQuadratic.h: Removed.
318         * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl: Removed.
319         * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl: Removed.
320         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp: Removed.
321         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h: Removed.
322         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl: Removed.
323         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl: Removed.
324         * ksvg2/svg/SVGPathSegLineto.cpp: Removed.
325         * ksvg2/svg/SVGPathSegLineto.h: Removed.
326         * ksvg2/svg/SVGPathSegLinetoAbs.idl: Removed.
327         * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp: Removed.
328         * ksvg2/svg/SVGPathSegLinetoHorizontal.h: Removed.
329         * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl: Removed.
330         * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl: Removed.
331         * ksvg2/svg/SVGPathSegLinetoRel.idl: Removed.
332         * ksvg2/svg/SVGPathSegLinetoVertical.cpp: Removed.
333         * ksvg2/svg/SVGPathSegLinetoVertical.h: Removed.
334         * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl: Removed.
335         * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl: Removed.
336         * ksvg2/svg/SVGPathSegList.cpp: Removed.
337         * ksvg2/svg/SVGPathSegList.h: Removed.
338         * ksvg2/svg/SVGPathSegList.idl: Removed.
339         * ksvg2/svg/SVGPathSegMoveto.cpp: Removed.
340         * ksvg2/svg/SVGPathSegMoveto.h: Removed.
341         * ksvg2/svg/SVGPathSegMovetoAbs.idl: Removed.
342         * ksvg2/svg/SVGPathSegMovetoRel.idl: Removed.
343         * ksvg2/svg/SVGPatternElement.cpp: Removed.
344         * ksvg2/svg/SVGPatternElement.h: Removed.
345         * ksvg2/svg/SVGPatternElement.idl: Removed.
346         * ksvg2/svg/SVGPoint.idl: Removed.
347         * ksvg2/svg/SVGPointList.cpp: Removed.
348         * ksvg2/svg/SVGPointList.h: Removed.
349         * ksvg2/svg/SVGPointList.idl: Removed.
350         * ksvg2/svg/SVGPolyElement.cpp: Removed.
351         * ksvg2/svg/SVGPolyElement.h: Removed.
352         * ksvg2/svg/SVGPolygonElement.cpp: Removed.
353         * ksvg2/svg/SVGPolygonElement.h: Removed.
354         * ksvg2/svg/SVGPolygonElement.idl: Removed.
355         * ksvg2/svg/SVGPolylineElement.cpp: Removed.
356         * ksvg2/svg/SVGPolylineElement.h: Removed.
357         * ksvg2/svg/SVGPolylineElement.idl: Removed.
358         * ksvg2/svg/SVGPreserveAspectRatio.cpp: Removed.
359         * ksvg2/svg/SVGPreserveAspectRatio.h: Removed.
360         * ksvg2/svg/SVGPreserveAspectRatio.idl: Removed.
361         * ksvg2/svg/SVGRadialGradientElement.cpp: Removed.
362         * ksvg2/svg/SVGRadialGradientElement.h: Removed.
363         * ksvg2/svg/SVGRadialGradientElement.idl: Removed.
364         * ksvg2/svg/SVGRect.idl: Removed.
365         * ksvg2/svg/SVGRectElement.cpp: Removed.
366         * ksvg2/svg/SVGRectElement.h: Removed.
367         * ksvg2/svg/SVGRectElement.idl: Removed.
368         * ksvg2/svg/SVGRenderingIntent.h: Removed.
369         * ksvg2/svg/SVGRenderingIntent.idl: Removed.
370         * ksvg2/svg/SVGSVGElement.cpp: Removed.
371         * ksvg2/svg/SVGSVGElement.h: Removed.
372         * ksvg2/svg/SVGSVGElement.idl: Removed.
373         * ksvg2/svg/SVGScriptElement.cpp: Removed.
374         * ksvg2/svg/SVGScriptElement.h: Removed.
375         * ksvg2/svg/SVGScriptElement.idl: Removed.
376         * ksvg2/svg/SVGSetElement.cpp: Removed.
377         * ksvg2/svg/SVGSetElement.h: Removed.
378         * ksvg2/svg/SVGSetElement.idl: Removed.
379         * ksvg2/svg/SVGStopElement.cpp: Removed.
380         * ksvg2/svg/SVGStopElement.h: Removed.
381         * ksvg2/svg/SVGStopElement.idl: Removed.
382         * ksvg2/svg/SVGStringList.cpp: Removed.
383         * ksvg2/svg/SVGStringList.h: Removed.
384         * ksvg2/svg/SVGStringList.idl: Removed.
385         * ksvg2/svg/SVGStylable.cpp: Removed.
386         * ksvg2/svg/SVGStylable.h: Removed.
387         * ksvg2/svg/SVGStylable.idl: Removed.
388         * ksvg2/svg/SVGStyleElement.cpp: Removed.
389         * ksvg2/svg/SVGStyleElement.h: Removed.
390         * ksvg2/svg/SVGStyleElement.idl: Removed.
391         * ksvg2/svg/SVGStyledElement.cpp: Removed.
392         * ksvg2/svg/SVGStyledElement.h: Removed.
393         * ksvg2/svg/SVGStyledLocatableElement.cpp: Removed.
394         * ksvg2/svg/SVGStyledLocatableElement.h: Removed.
395         * ksvg2/svg/SVGStyledTransformableElement.cpp: Removed.
396         * ksvg2/svg/SVGStyledTransformableElement.h: Removed.
397         * ksvg2/svg/SVGSwitchElement.cpp: Removed.
398         * ksvg2/svg/SVGSwitchElement.h: Removed.
399         * ksvg2/svg/SVGSwitchElement.idl: Removed.
400         * ksvg2/svg/SVGSymbolElement.cpp: Removed.
401         * ksvg2/svg/SVGSymbolElement.h: Removed.
402         * ksvg2/svg/SVGSymbolElement.idl: Removed.
403         * ksvg2/svg/SVGTRefElement.cpp: Removed.
404         * ksvg2/svg/SVGTRefElement.h: Removed.
405         * ksvg2/svg/SVGTRefElement.idl: Removed.
406         * ksvg2/svg/SVGTSpanElement.cpp: Removed.
407         * ksvg2/svg/SVGTSpanElement.h: Removed.
408         * ksvg2/svg/SVGTSpanElement.idl: Removed.
409         * ksvg2/svg/SVGTests.cpp: Removed.
410         * ksvg2/svg/SVGTests.h: Removed.
411         * ksvg2/svg/SVGTests.idl: Removed.
412         * ksvg2/svg/SVGTextContentElement.cpp: Removed.
413         * ksvg2/svg/SVGTextContentElement.h: Removed.
414         * ksvg2/svg/SVGTextContentElement.idl: Removed.
415         * ksvg2/svg/SVGTextElement.cpp: Removed.
416         * ksvg2/svg/SVGTextElement.h: Removed.
417         * ksvg2/svg/SVGTextElement.idl: Removed.
418         * ksvg2/svg/SVGTextPathElement.cpp: Removed.
419         * ksvg2/svg/SVGTextPathElement.h: Removed.
420         * ksvg2/svg/SVGTextPathElement.idl: Removed.
421         * ksvg2/svg/SVGTextPositioningElement.cpp: Removed.
422         * ksvg2/svg/SVGTextPositioningElement.h: Removed.
423         * ksvg2/svg/SVGTextPositioningElement.idl: Removed.
424         * ksvg2/svg/SVGTitleElement.cpp: Removed.
425         * ksvg2/svg/SVGTitleElement.h: Removed.
426         * ksvg2/svg/SVGTitleElement.idl: Removed.
427         * ksvg2/svg/SVGTransform.cpp: Removed.
428         * ksvg2/svg/SVGTransform.h: Removed.
429         * ksvg2/svg/SVGTransform.idl: Removed.
430         * ksvg2/svg/SVGTransformDistance.cpp: Removed.
431         * ksvg2/svg/SVGTransformDistance.h: Removed.
432         * ksvg2/svg/SVGTransformList.cpp: Removed.
433         * ksvg2/svg/SVGTransformList.h: Removed.
434         * ksvg2/svg/SVGTransformList.idl: Removed.
435         * ksvg2/svg/SVGTransformable.cpp: Removed.
436         * ksvg2/svg/SVGTransformable.h: Removed.
437         * ksvg2/svg/SVGTransformable.idl: Removed.
438         * ksvg2/svg/SVGURIReference.cpp: Removed.
439         * ksvg2/svg/SVGURIReference.h: Removed.
440         * ksvg2/svg/SVGURIReference.idl: Removed.
441         * ksvg2/svg/SVGUnitTypes.h: Removed.
442         * ksvg2/svg/SVGUnitTypes.idl: Removed.
443         * ksvg2/svg/SVGUseElement.cpp: Removed.
444         * ksvg2/svg/SVGUseElement.h: Removed.
445         * ksvg2/svg/SVGUseElement.idl: Removed.
446         * ksvg2/svg/SVGViewElement.cpp: Removed.
447         * ksvg2/svg/SVGViewElement.h: Removed.
448         * ksvg2/svg/SVGViewElement.idl: Removed.
449         * ksvg2/svg/SVGViewSpec.cpp: Removed.
450         * ksvg2/svg/SVGViewSpec.h: Removed.
451         * ksvg2/svg/SVGViewSpec.idl: Removed.
452         * ksvg2/svg/SVGZoomAndPan.cpp: Removed.
453         * ksvg2/svg/SVGZoomAndPan.h: Removed.
454         * ksvg2/svg/SVGZoomAndPan.idl: Removed.
455         * ksvg2/svg/svgattrs.in: Removed.
456         * ksvg2/svg/svgtags.in: Removed.
457         * rendering/PointerEventsHitRules.cpp: Copied from ksvg2/misc/PointerEventsHitRules.cpp.
458         * rendering/PointerEventsHitRules.h: Copied from ksvg2/misc/PointerEventsHitRules.h.
459         * rendering/SVGRenderStyle.cpp: Copied from ksvg2/css/SVGRenderStyle.cpp.
460         * rendering/SVGRenderStyle.h: Copied from ksvg2/css/SVGRenderStyle.h.
461         * rendering/SVGRenderStyleDefs.cpp: Copied from ksvg2/css/SVGRenderStyleDefs.cpp.
462         * rendering/SVGRenderStyleDefs.h: Copied from ksvg2/css/SVGRenderStyleDefs.h.
463         * svg: Copied from ksvg2/svg.
464         * svg/SVGDocumentExtensions.cpp: Copied from ksvg2/misc/SVGDocumentExtensions.cpp.
465         * svg/SVGDocumentExtensions.h: Copied from ksvg2/misc/SVGDocumentExtensions.h.
466         * svg/SVGImageLoader.cpp: Copied from ksvg2/misc/SVGImageLoader.cpp.
467         * svg/SVGImageLoader.h: Copied from ksvg2/misc/SVGImageLoader.h.
468         * svg/SVGTimer.cpp: Copied from ksvg2/misc/SVGTimer.cpp.
469         * svg/SVGTimer.h: Copied from ksvg2/misc/SVGTimer.h.
470         * svg/SVGZoomEvent.cpp: Copied from ksvg2/events/SVGZoomEvent.cpp.
471         * svg/SVGZoomEvent.h: Copied from ksvg2/events/SVGZoomEvent.h.
472         * svg/SVGZoomEvent.idl: Copied from ksvg2/events/SVGZoomEvent.idl.
473         * svg/TimeScheduler.cpp: Copied from ksvg2/misc/TimeScheduler.cpp.
474         * svg/TimeScheduler.h: Copied from ksvg2/misc/TimeScheduler.h.
475         * svg/xlinkattrs.in: Copied from ksvg2/misc/xlinkattrs.in.
476
477 2007-11-30  Kevin Ollivier  <kevino@theolliviers.com>
478
479         wx build fix. Add WebCore/platform/graphics/wx to includes.
480
481         * webcore-wx.bkl:
482
483 2007-11-30  Brady Eidson  <beidson@apple.com>
484
485         Reviewed by Geoff
486
487         Further hookup of Database API
488         With this change, any database operation that writes to the database (UPDATE, INSERT, CREATE, etc) will
489         result in a didModifyDatabase notification when the transaction is successfully committed
490
491         * storage/DatabaseAuthorizer.cpp: Global rename of "m_lastActionIncreasedSize" to "m_lastActionChangedDatabase"
492         (WebCore::DatabaseAuthorizer::reset):
493         (WebCore::DatabaseAuthorizer::createTable):
494         (WebCore::DatabaseAuthorizer::allowAlterTable):
495         (WebCore::DatabaseAuthorizer::createIndex):
496         (WebCore::DatabaseAuthorizer::createTrigger):
497         (WebCore::DatabaseAuthorizer::createVTable):
498         (WebCore::DatabaseAuthorizer::allowInsert):
499         (WebCore::DatabaseAuthorizer::allowUpdate):
500         * storage/DatabaseAuthorizer.h:
501         (WebCore::DatabaseAuthorizer::lastActionChangedDatabase):
502
503         * storage/DatabaseTracker.cpp:
504         (WebCore::DatabaseTracker::notifyDatabaseChanged): Added.  Allow external entities (SQLTransaction) to be able
505           to request a didModifyDatabase notification to the delegate
506         * storage/DatabaseTracker.h:
507
508         * storage/SQLTransaction.cpp: Added m_modifiedDatabase flag which tracks if any statement over the course of 
509           a transaction resulted in a change to the database.
510         (WebCore::SQLTransaction::SQLTransaction):
511         (WebCore::SQLTransaction::runCurrentStatement): Set m_modifiedDatabase to true if the authorizer reports a mutation
512           statement occurred
513         (WebCore::SQLTransaction::postflightAndCommit): If the transaction successfully commits, call DatabaseTracker::notifyDatabaseChanged
514         (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback): Ditto
515         * storage/SQLTransaction.h:
516
517 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
518
519         Rubber stamped by David.
520
521         Next round of moves - platform reorganization.
522         Move text/font/glyph related files from the individual port directories
523         into platform/text/<port> or platform/graphics/<port>.
524
525         * DerivedSources.make:
526         * WebCore.pro:
527         * WebCore.vcproj/WebCore.vcproj:
528         * WebCore.xcodeproj/project.pbxproj:
529         * platform/cf/StringCF.cpp: Removed.
530         * platform/cf/StringImplCF.cpp: Removed.
531         * platform/graphics/gtk/FontCacheGtk.cpp: Copied from platform/gtk/FontCacheGtk.cpp.
532         * platform/graphics/gtk/FontDataGtk.cpp: Copied from platform/gtk/FontDataGtk.cpp.
533         * platform/graphics/gtk/FontGtk.cpp: Copied from platform/gtk/FontGtk.cpp.
534         * platform/graphics/gtk/FontPlatformData.h: Copied from platform/gtk/FontPlatformData.h.
535         * platform/graphics/gtk/FontPlatformDataGtk.cpp: Copied from platform/gtk/FontPlatformDataGtk.cpp.
536         * platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp: Copied from platform/gtk/GlyphPageTreeNodeGtk.cpp.
537         * platform/graphics/mac/FontCacheMac.mm: Copied from platform/mac/FontCacheMac.mm.
538         * platform/graphics/mac/FontCustomPlatformData.cpp: Copied from platform/mac/FontCustomPlatformData.cpp.
539         * platform/graphics/mac/FontCustomPlatformData.h: Copied from platform/mac/FontCustomPlatformData.h.
540         * platform/graphics/mac/FontDataMac.mm: Copied from platform/mac/FontDataMac.mm.
541         * platform/graphics/mac/FontMac.mm: Copied from platform/mac/FontMac.mm.
542         * platform/graphics/mac/FontPlatformData.h: Copied from platform/mac/FontPlatformData.h.
543         * platform/graphics/mac/FontPlatformDataMac.mm: Copied from platform/mac/FontPlatformDataMac.mm.
544         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp: Copied from platform/mac/GlyphPageTreeNodeMac.cpp.
545         * platform/graphics/qt/FontCacheQt.cpp: Copied from platform/qt/FontCacheQt.cpp.
546         * platform/graphics/qt/FontCustomPlatformData.cpp: Copied from platform/qt/FontCustomPlatformData.cpp.
547         * platform/graphics/qt/FontCustomPlatformData.h: Copied from platform/qt/FontCustomPlatformData.h.
548         * platform/graphics/qt/FontDataQt.cpp: Copied from platform/qt/FontDataQt.cpp.
549         * platform/graphics/qt/FontPlatformData.h: Copied from platform/qt/FontPlatformData.h.
550         * platform/graphics/qt/FontQt.cpp: Copied from platform/qt/FontQt.cpp.
551         * platform/graphics/qt/GlyphPageTreeNodeQt.cpp: Copied from platform/qt/GlyphPageTreeNodeQt.cpp.
552         * platform/graphics/win/FontCacheWin.cpp: Copied from platform/win/FontCacheWin.cpp.
553         * platform/graphics/win/FontCustomPlatformData.cpp: Copied from platform/win/FontCustomPlatformData.cpp.
554         * platform/graphics/win/FontCustomPlatformData.h: Copied from platform/win/FontCustomPlatformData.h.
555         * platform/graphics/win/FontDataWin.cpp: Copied from platform/win/FontDataWin.cpp.
556         * platform/graphics/win/FontDatabase.cpp: Copied from platform/win/FontDatabase.cpp.
557         * platform/graphics/win/FontDatabase.h: Copied from platform/win/FontDatabase.h.
558         * platform/graphics/win/FontPlatformData.h: Copied from platform/win/FontPlatformData.h.
559         * platform/graphics/win/FontPlatformDataWin.cpp: Copied from platform/win/FontPlatformDataWin.cpp.
560         * platform/graphics/win/FontWin.cpp: Copied from platform/win/FontWin.cpp.
561         * platform/graphics/win/GlyphPageTreeNodeWin.cpp: Copied from platform/win/GlyphPageTreeNodeWin.cpp.
562         * platform/graphics/wx/FontCacheWx.cpp: Copied from platform/wx/FontCacheWx.cpp.
563         * platform/graphics/wx/FontDataWx.cpp: Copied from platform/wx/FontDataWx.cpp.
564         * platform/graphics/wx/FontPlatformData.h: Copied from platform/wx/FontPlatformData.h.
565         * platform/graphics/wx/FontPlatformDataWx.cpp: Copied from platform/wx/FontPlatformDataWx.cpp.
566         * platform/graphics/wx/FontWx.cpp: Copied from platform/wx/FontWx.cpp.
567         * platform/graphics/wx/GlyphMapWx.cpp: Copied from platform/wx/GlyphMapWx.cpp.
568         * platform/gtk/FontCacheGtk.cpp: Removed.
569         * platform/gtk/FontDataGtk.cpp: Removed.
570         * platform/gtk/FontGtk.cpp: Removed.
571         * platform/gtk/FontPlatformData.h: Removed.
572         * platform/gtk/FontPlatformDataGtk.cpp: Removed.
573         * platform/gtk/GlyphPageTreeNodeGtk.cpp: Removed.
574         * platform/gtk/TextBreakIteratorInternalICUGtk.cpp: Removed.
575         * platform/mac/FontCacheMac.mm: Removed.
576         * platform/mac/FontCustomPlatformData.cpp: Removed.
577         * platform/mac/FontCustomPlatformData.h: Removed.
578         * platform/mac/FontDataMac.mm: Removed.
579         * platform/mac/FontMac.mm: Removed.
580         * platform/mac/FontPlatformData.h: Removed.
581         * platform/mac/FontPlatformDataMac.mm: Removed.
582         * platform/mac/GlyphPageTreeNodeMac.cpp: Removed.
583         * platform/mac/ShapeArabic.c: Removed.
584         * platform/mac/ShapeArabic.h: Removed.
585         * platform/mac/StringImplMac.mm: Removed.
586         * platform/mac/StringMac.mm: Removed.
587         * platform/mac/TextBoundaries.mm: Removed.
588         * platform/mac/TextBreakIteratorInternalICUMac.mm: Removed.
589         * platform/mac/TextCodecMac.cpp: Removed.
590         * platform/mac/TextCodecMac.h: Removed.
591         * platform/mac/character-sets.txt: Removed.
592         * platform/mac/mac-encodings.txt: Removed.
593         * platform/mac/make-charset-table.pl: Removed.
594         * platform/qt/FontCacheQt.cpp: Removed.
595         * platform/qt/FontCustomPlatformData.cpp: Removed.
596         * platform/qt/FontCustomPlatformData.h: Removed.
597         * platform/qt/FontDataQt.cpp: Removed.
598         * platform/qt/FontPlatformData.h: Removed.
599         * platform/qt/FontQt.cpp: Removed.
600         * platform/qt/GlyphPageTreeNodeQt.cpp: Removed.
601         * platform/qt/StringQt.cpp: Removed.
602         * platform/qt/TextBoundaries.cpp: Removed.
603         * platform/qt/TextBreakIteratorQt.cpp: Removed.
604         * platform/qt/TextCodecQt.cpp: Removed.
605         * platform/qt/TextCodecQt.h: Removed.
606         * platform/symbian/StringImplSymbian.cpp: Removed.
607         * platform/symbian/StringSymbian.cpp: Removed.
608         * platform/text/cf: Added.
609         * platform/text/cf/StringCF.cpp: Copied from platform/cf/StringCF.cpp.
610         * platform/text/cf/StringImplCF.cpp: Copied from platform/cf/StringImplCF.cpp.
611         * platform/text/gtk: Added.
612         * platform/text/gtk/TextBreakIteratorInternalICUGtk.cpp: Copied from platform/gtk/TextBreakIteratorInternalICUGtk.cpp.
613         * platform/text/mac/ShapeArabic.c: Copied from platform/mac/ShapeArabic.c.
614         * platform/text/mac/ShapeArabic.h: Copied from platform/mac/ShapeArabic.h.
615         * platform/text/mac/StringImplMac.mm: Copied from platform/mac/StringImplMac.mm.
616         * platform/text/mac/StringMac.mm: Copied from platform/mac/StringMac.mm.
617         * platform/text/mac/TextBoundaries.mm: Copied from platform/mac/TextBoundaries.mm.
618         * platform/text/mac/TextBreakIteratorInternalICUMac.mm: Copied from platform/mac/TextBreakIteratorInternalICUMac.mm.
619         * platform/text/mac/TextCodecMac.cpp: Copied from platform/mac/TextCodecMac.cpp.
620         * platform/text/mac/TextCodecMac.h: Copied from platform/mac/TextCodecMac.h.
621         * platform/text/mac/character-sets.txt: Copied from platform/mac/character-sets.txt.
622         * platform/text/mac/mac-encodings.txt: Copied from platform/mac/mac-encodings.txt.
623         * platform/text/mac/make-charset-table.pl: Copied from platform/mac/make-charset-table.pl.
624         * platform/text/qt: Added.
625         * platform/text/qt/StringQt.cpp: Copied from platform/qt/StringQt.cpp.
626         * platform/text/qt/TextBoundaries.cpp: Copied from platform/qt/TextBoundaries.cpp.
627         * platform/text/qt/TextBreakIteratorQt.cpp: Copied from platform/qt/TextBreakIteratorQt.cpp.
628         * platform/text/qt/TextCodecQt.cpp: Copied from platform/qt/TextCodecQt.cpp.
629         * platform/text/qt/TextCodecQt.h: Copied from platform/qt/TextCodecQt.h.
630         * platform/text/symbian: Added.
631         * platform/text/symbian/StringImplSymbian.cpp: Copied from platform/symbian/StringImplSymbian.cpp.
632         * platform/text/symbian/StringSymbian.cpp: Copied from platform/symbian/StringSymbian.cpp.
633         * platform/text/win: Added.
634         * platform/text/win/TextBreakIteratorInternalICUWin.cpp: Copied from platform/win/TextBreakIteratorInternalICUWin.cpp.
635         * platform/text/wx: Added.
636         * platform/text/wx/StringWx.cpp: Copied from platform/wx/StringWx.cpp.
637         * platform/win/FontCacheWin.cpp: Removed.
638         * platform/win/FontCustomPlatformData.cpp: Removed.
639         * platform/win/FontCustomPlatformData.h: Removed.
640         * platform/win/FontDataWin.cpp: Removed.
641         * platform/win/FontDatabase.cpp: Removed.
642         * platform/win/FontDatabase.h: Removed.
643         * platform/win/FontPlatformData.h: Removed.
644         * platform/win/FontPlatformDataWin.cpp: Removed.
645         * platform/win/FontWin.cpp: Removed.
646         * platform/win/GlyphPageTreeNodeWin.cpp: Removed.
647         * platform/win/TextBreakIteratorInternalICUWin.cpp: Removed.
648         * platform/wx/FontCacheWx.cpp: Removed.
649         * platform/wx/FontDataWx.cpp: Removed.
650         * platform/wx/FontPlatformData.h: Removed.
651         * platform/wx/FontPlatformDataWx.cpp: Removed.
652         * platform/wx/FontWx.cpp: Removed.
653         * platform/wx/GlyphMapWx.cpp: Removed.
654         * platform/wx/StringWx.cpp: Removed.
655         * webcore-wx.bkl:
656
657 2007-11-30  Kevin Ollivier  <kevino@theolliviers.com>
658
659         Build fix for wx port. Adding editing/RemoveFormatCommand.cpp
660
661         * WebCoreSources.bkl:
662
663 2007-11-30  Simon Hausmann  <hausmann@webkit.org>
664
665         Reviewed by Adam Roben.
666
667         Fix the build with DATABASE=0.
668
669         * page/Settings.cpp:
670         (WebCore::Settings::setDefaultDatabaseOriginQuota):
671         (WebCore::Settings::defaultDatabaseOriginQuota):
672
673 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
674
675         Rubber stamped by Darin.
676
677         Fix misplaced file. The name "FontStyle" is not correct though - it probably
678         needs yet another move - but this time inside platform/graphics - as soon
679         as we agree on a better name.
680
681         * WebCore.xcodeproj/project.pbxproj:
682         * platform/graphics/FontStyle.h: Copied from platform/text/FontStyle.h.
683         * platform/text/FontStyle.h: Removed.
684
685 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
686
687         Reviewed by Sam.
688
689         Rename "FontStyle FontStyle(...)" to "FontStyle fontStyle(...)".
690         I scripted a bit too much while doing the TextStyle -> FontStyle change.
691
692         * platform/win/PopupMenuWin.cpp:
693         (WebCore::PopupMenu::paint):
694         * rendering/EllipsisBox.cpp:
695         (WebCore::EllipsisBox::paint):
696         * rendering/RenderFileUploadControl.cpp:
697         (WebCore::RenderFileUploadControl::paintObject):
698         * rendering/RenderListBox.cpp:
699         (WebCore::RenderListBox::updateFromElement):
700         (WebCore::RenderListBox::paintItemForeground):
701         * rendering/RenderTextControl.cpp:
702         (WebCore::RenderTextControl::setStyle):
703         (WebCore::RenderTextControl::createInnerTextStyle):
704         (WebCore::RenderTextControl::createSubtreeIfNeeded):
705         * rendering/RenderTextControl.h:
706         * rendering/SVGRootInlineBox.cpp:
707         (WebCore::svgFontStyleForInlineTextBox):
708
709 2007-11-30  Alp Toker  <alp@atoker.com>
710
711         GTK+ build fix following the recent text reorganization.
712
713         * WebCore.pro:
714
715 2007-11-29  Jon Honeycutt  <jhoneycutt@apple.com>
716
717         Reviewed by Adam.
718
719         Part of <rdar://problem/5506522> Seed: cannot type into text box in
720         Facebook, don't see plugin content (Adobe Flash)
721
722         * plugins/win/PluginViewWin.cpp:
723         (WebCore::PluginViewWin::handleMouseEvent): Focus the plugin's parent
724         frame  
725
726 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
727
728         Not reviewed. Trying to fix gtk/qt/wx build. (I expected problems because of the moves)
729
730         * WebCore.pro:
731         * webcore-base.bkl:
732
733 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
734
735         Rubber stamped by Brady.
736
737         Started platform reorganization (platform/text addition).
738         Moving string/text/font related classes into new places - as discussed on webkit-dev.
739
740         In a follow-up commit I'll move classes out of platform/{mac,win,...} into
741         platform/text/{mac,win,...}, and also do the ksvg2/ -> svg/ move.
742
743         * WebCore.order:
744         * WebCore.pro:
745         * WebCore.vcproj/WebCore.vcproj:
746         * WebCore.xcodeproj/project.pbxproj:
747         * WebCoreSources.bkl:
748         * editing/ReplaceSelectionCommand.cpp:
749         (WebCore::ReplacementFragment::insertFragmentForTestRendering):
750         * platform/AtomicString.cpp: Removed.
751         * platform/AtomicString.h: Removed.
752         * platform/AtomicStringImpl.h: Removed.
753         * platform/Base64.cpp: Removed.
754         * platform/Base64.h: Removed.
755         * platform/BidiContext.cpp: Removed.
756         * platform/BidiContext.h: Removed.
757         * platform/BidiResolver.h: Removed.
758         * platform/CString.cpp: Removed.
759         * platform/CString.h: Removed.
760         * platform/CharacterNames.h: Removed.
761         * platform/CharsetData.h: Removed.
762         * platform/Font.cpp: Removed.
763         * platform/Font.h: Removed.
764         * platform/FontCache.cpp: Removed.
765         * platform/FontCache.h: Removed.
766         * platform/FontData.cpp: Removed.
767         * platform/FontData.h: Removed.
768         * platform/FontDescription.h: Removed.
769         * platform/FontFallbackList.cpp: Removed.
770         * platform/FontFallbackList.h: Removed.
771         * platform/FontFamily.cpp: Removed.
772         * platform/FontFamily.h: Removed.
773         * platform/FontSelector.h: Removed.
774         * platform/GlyphBuffer.h: Removed.
775         * platform/GlyphPageTreeNode.cpp: Removed.
776         * platform/GlyphPageTreeNode.h: Removed.
777         * platform/GlyphWidthMap.cpp: Removed.
778         * platform/GlyphWidthMap.h: Removed.
779         * platform/PlatformString.h: Removed.
780         * platform/RegularExpression.cpp: Removed.
781         * platform/RegularExpression.h: Removed.
782         * platform/SegmentedString.cpp: Removed.
783         * platform/SegmentedString.h: Removed.
784         * platform/String.cpp: Removed.
785         * platform/StringHash.h: Removed.
786         * platform/StringImpl.cpp: Removed.
787         * platform/StringImpl.h: Removed.
788         * platform/StringTruncator.cpp: Removed.
789         * platform/StringTruncator.h: Removed.
790         * platform/TextBoundaries.h: Removed.
791         * platform/TextBoundariesICU.cpp: Removed.
792         * platform/TextBreakIterator.h: Removed.
793         * platform/TextBreakIteratorICU.cpp: Removed.
794         * platform/TextBreakIteratorInternalICU.h: Removed.
795         * platform/TextCodec.cpp: Removed.
796         * platform/TextCodec.h: Removed.
797         * platform/TextCodecICU.cpp: Removed.
798         * platform/TextCodecICU.h: Removed.
799         * platform/TextCodecLatin1.cpp: Removed.
800         * platform/TextCodecLatin1.h: Removed.
801         * platform/TextCodecUTF16.cpp: Removed.
802         * platform/TextCodecUTF16.h: Removed.
803         * platform/TextCodecUserDefined.cpp: Removed.
804         * platform/TextCodecUserDefined.h: Removed.
805         * platform/TextDecoder.cpp: Removed.
806         * platform/TextDecoder.h: Removed.
807         * platform/TextDirection.h: Removed.
808         * platform/TextEncoding.cpp: Removed.
809         * platform/TextEncoding.h: Removed.
810         * platform/TextEncodingRegistry.cpp: Removed.
811         * platform/TextEncodingRegistry.h: Removed.
812         * platform/TextStream.cpp: Removed.
813         * platform/TextStream.h: Removed.
814         * platform/TextStyle.h: Removed.
815         * platform/UnicodeRange.cpp: Removed.
816         * platform/UnicodeRange.h: Removed.
817         * platform/graphics/Font.cpp: Copied from platform/Font.cpp.
818         (WebCore::WidthIterator::WidthIterator):
819         (WebCore::Font::width):
820         (WebCore::Font::drawSimpleText):
821         (WebCore::Font::drawGlyphBuffer):
822         (WebCore::Font::drawText):
823         (WebCore::Font::floatWidth):
824         (WebCore::Font::floatWidthForSimpleText):
825         (WebCore::Font::selectionRectForText):
826         (WebCore::Font::selectionRectForSimpleText):
827         (WebCore::Font::offsetForPosition):
828         (WebCore::Font::offsetForPositionForSimpleText):
829         * platform/graphics/Font.h: Copied from platform/Font.h.
830         * platform/graphics/FontCache.cpp: Copied from platform/FontCache.cpp.
831         * platform/graphics/FontCache.h: Copied from platform/FontCache.h.
832         * platform/graphics/FontData.cpp: Copied from platform/FontData.cpp.
833         * platform/graphics/FontData.h: Copied from platform/FontData.h.
834         * platform/graphics/FontDescription.h: Copied from platform/FontDescription.h.
835         * platform/graphics/FontFallbackList.cpp: Copied from platform/FontFallbackList.cpp.
836         * platform/graphics/FontFallbackList.h: Copied from platform/FontFallbackList.h.
837         * platform/graphics/FontFamily.cpp: Copied from platform/FontFamily.cpp.
838         * platform/graphics/FontFamily.h: Copied from platform/FontFamily.h.
839         * platform/graphics/FontSelector.h: Copied from platform/FontSelector.h.
840         * platform/graphics/GlyphBuffer.h: Copied from platform/GlyphBuffer.h.
841         * platform/graphics/GlyphPageTreeNode.cpp: Copied from platform/GlyphPageTreeNode.cpp.
842         * platform/graphics/GlyphPageTreeNode.h: Copied from platform/GlyphPageTreeNode.h.
843         * platform/graphics/GlyphWidthMap.cpp: Copied from platform/GlyphWidthMap.cpp.
844         * platform/graphics/GlyphWidthMap.h: Copied from platform/GlyphWidthMap.h.
845         * platform/graphics/GraphicsContext.cpp:
846         (WebCore::GraphicsContext::drawText):
847         (WebCore::GraphicsContext::drawBidiText):
848         (WebCore::GraphicsContext::drawHighlightForText):
849         * platform/graphics/GraphicsContext.h:
850         * platform/graphics/StringTruncator.cpp: Copied from platform/StringTruncator.cpp.
851         (WebCore::stringWidth):
852         * platform/graphics/StringTruncator.h: Copied from platform/StringTruncator.h.
853         * platform/graphics/qt/GraphicsContextQt.cpp:
854         * platform/gtk/FontGtk.cpp:
855         (WebCore::Font::drawComplexText):
856         (WebCore::Font::floatWidthForComplexText):
857         (WebCore::Font::offsetForPositionForComplexText):
858         (WebCore::Font::selectionRectForComplexText):
859         * platform/mac/FontMac.mm:
860         (WebCore::ATSULayoutParameters::ATSULayoutParameters):
861         (WebCore::Font::selectionRectForComplexText):
862         (WebCore::Font::drawComplexText):
863         (WebCore::Font::floatWidthForComplexText):
864         (WebCore::Font::offsetForPositionForComplexText):
865         * platform/mac/WebCoreTextRenderer.mm:
866         (WebCoreDrawTextAtPoint):
867         (WebCoreTextFloatWidth):
868         * platform/qt/FontQt.cpp:
869         (WebCore::generateComponents):
870         (WebCore::Font::drawText):
871         (WebCore::Font::width):
872         (WebCore::Font::floatWidth):
873         (WebCore::Font::offsetForPosition):
874         (WebCore::cursorToX):
875         (WebCore::Font::selectionRectForText):
876         * platform/text: Added.
877         * platform/text/AtomicString.cpp: Copied from platform/AtomicString.cpp.
878         * platform/text/AtomicString.h: Copied from platform/AtomicString.h.
879         * platform/text/AtomicStringImpl.h: Copied from platform/AtomicStringImpl.h.
880         * platform/text/Base64.cpp: Copied from platform/Base64.cpp.
881         * platform/text/Base64.h: Copied from platform/Base64.h.
882         * platform/text/BidiContext.cpp: Copied from platform/BidiContext.cpp.
883         * platform/text/BidiContext.h: Copied from platform/BidiContext.h.
884         * platform/text/BidiResolver.h: Copied from platform/BidiResolver.h.
885         * platform/text/CString.cpp: Copied from platform/CString.cpp.
886         * platform/text/CString.h: Copied from platform/CString.h.
887         * platform/text/CharacterNames.h: Copied from platform/CharacterNames.h.
888         * platform/text/FontStyle.h: Copied from platform/TextStyle.h.
889         (WebCore::FontStyle::FontStyle):
890         * platform/text/PlatformString.h: Copied from platform/PlatformString.h.
891         * platform/text/RegularExpression.cpp: Copied from platform/RegularExpression.cpp.
892         * platform/text/RegularExpression.h: Copied from platform/RegularExpression.h.
893         * platform/text/SegmentedString.cpp: Copied from platform/SegmentedString.cpp.
894         * platform/text/SegmentedString.h: Copied from platform/SegmentedString.h.
895         * platform/text/String.cpp: Copied from platform/String.cpp.
896         * platform/text/StringHash.h: Copied from platform/StringHash.h.
897         * platform/text/StringImpl.cpp: Copied from platform/StringImpl.cpp.
898         * platform/text/StringImpl.h: Copied from platform/StringImpl.h.
899         * platform/text/TextBoundaries.h: Copied from platform/TextBoundaries.h.
900         * platform/text/TextBoundariesICU.cpp: Copied from platform/TextBoundariesICU.cpp.
901         (WebCore::findNextWordFromIndex):
902         * platform/text/TextBreakIterator.h: Copied from platform/TextBreakIterator.h.
903         * platform/text/TextBreakIteratorICU.cpp: Copied from platform/TextBreakIteratorICU.cpp.
904         * platform/text/TextBreakIteratorInternalICU.h: Copied from platform/TextBreakIteratorInternalICU.h.
905         * platform/text/TextCodec.cpp: Copied from platform/TextCodec.cpp.
906         * platform/text/TextCodec.h: Copied from platform/TextCodec.h.
907         * platform/text/TextCodecICU.cpp: Copied from platform/TextCodecICU.cpp.
908         * platform/text/TextCodecICU.h: Copied from platform/TextCodecICU.h.
909         * platform/text/TextCodecLatin1.cpp: Copied from platform/TextCodecLatin1.cpp.
910         * platform/text/TextCodecLatin1.h: Copied from platform/TextCodecLatin1.h.
911         * platform/text/TextCodecUTF16.cpp: Copied from platform/TextCodecUTF16.cpp.
912         * platform/text/TextCodecUTF16.h: Copied from platform/TextCodecUTF16.h.
913         * platform/text/TextCodecUserDefined.cpp: Copied from platform/TextCodecUserDefined.cpp.
914         * platform/text/TextCodecUserDefined.h: Copied from platform/TextCodecUserDefined.h.
915         * platform/text/TextDecoder.cpp: Copied from platform/TextDecoder.cpp.
916         * platform/text/TextDecoder.h: Copied from platform/TextDecoder.h.
917         * platform/text/TextDirection.h: Copied from platform/TextDirection.h.
918         * platform/text/TextEncoding.cpp: Copied from platform/TextEncoding.cpp.
919         * platform/text/TextEncoding.h: Copied from platform/TextEncoding.h.
920         * platform/text/TextEncodingRegistry.cpp: Copied from platform/TextEncodingRegistry.cpp.
921         * platform/text/TextEncodingRegistry.h: Copied from platform/TextEncodingRegistry.h.
922         * platform/text/TextStream.cpp: Copied from platform/TextStream.cpp.
923         * platform/text/TextStream.h: Copied from platform/TextStream.h.
924         * platform/text/UnicodeRange.cpp: Copied from platform/UnicodeRange.cpp.
925         * platform/text/UnicodeRange.h: Copied from platform/UnicodeRange.h.
926         * platform/text/mac: Added.
927         * platform/text/mac/CharsetData.h: Copied from platform/CharsetData.h.
928         * platform/win/FontWin.cpp:
929         (WebCore::Font::selectionRectForComplexText):
930         (WebCore::Font::drawComplexText):
931         (WebCore::Font::floatWidthForComplexText):
932         (WebCore::Font::offsetForPositionForComplexText):
933         * platform/win/PopupMenuWin.cpp:
934         (WebCore::PopupMenu::paint):
935         * platform/win/UniscribeController.cpp:
936         (WebCore::UniscribeController::UniscribeController):
937         * platform/win/UniscribeController.h:
938         * platform/win/WebCoreTextRenderer.cpp:
939         (WebCore::doDrawTextAtPoint):
940         * platform/wx/FontWx.cpp:
941         (WebCore::Font::selectionRectForComplexText):
942         (WebCore::Font::drawComplexText):
943         (WebCore::Font::floatWidthForComplexText):
944         (WebCore::Font::offsetForPositionForComplexText):
945         * rendering/EllipsisBox.cpp:
946         (WebCore::EllipsisBox::paint):
947         * rendering/InlineTextBox.cpp:
948         (WebCore::InlineTextBox::selectionRect):
949         (WebCore::InlineTextBox::paint):
950         (WebCore::InlineTextBox::paintSelection):
951         (WebCore::InlineTextBox::paintCompositionBackground):
952         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
953         (WebCore::InlineTextBox::paintTextMatchMarker):
954         (WebCore::InlineTextBox::offsetForPosition):
955         (WebCore::InlineTextBox::positionForOffset):
956         * rendering/RenderFileUploadControl.cpp:
957         (WebCore::RenderFileUploadControl::paintObject):
958         (WebCore::RenderFileUploadControl::calcPrefWidths):
959         * rendering/RenderImage.cpp:
960         * rendering/RenderListBox.cpp:
961         (WebCore::RenderListBox::updateFromElement):
962         (WebCore::RenderListBox::paintItemForeground):
963         * rendering/RenderMenuList.cpp:
964         (WebCore::RenderMenuList::updateOptionsWidth):
965         * rendering/RenderText.cpp:
966         (WebCore::RenderText::widthFromCache):
967         (WebCore::RenderText::calcPrefWidths):
968         (WebCore::RenderText::width):
969         * rendering/RenderTextControl.cpp:
970         (WebCore::RenderTextControl::setStyle):
971         (WebCore::RenderTextControl::createInnerFontStyle):
972         (WebCore::RenderTextControl::createSubtreeIfNeeded):
973         (WebCore::RenderTextControl::calcPrefWidths):
974         * rendering/RenderTextControl.h:
975         * rendering/SVGInlineTextBox.cpp:
976         (WebCore::SVGInlineTextBox::calculateGlyphWidth):
977         (WebCore::SVGInlineTextBox::paintCharacters):
978         (WebCore::SVGInlineTextBox::paintSelection):
979         * rendering/SVGRootInlineBox.cpp:
980         (WebCore::cummulatedWidthOfInlineBoxCharacterRange):
981         (WebCore::svgFontStyleForInlineTextBox):
982         * rendering/SVGRootInlineBox.h:
983
984 2007-11-30  Adele Peterson  <adele@apple.com>
985
986         Reviewed by Darin.
987
988         Fix for http://bugs.webkit.org/show_bug.cgi?id=16072
989         <rdar://problem/5463821> REGRESSION: Mousemove event isn't fired when mouse moves over scrollbar with pressed button (16072)
990
991         Test: fast/events/mousemove-after-drag-over-scrollbar.html
992
993         * page/EventHandler.cpp:
994         (WebCore::EventHandler::handleMouseMoveEvent): If the mouse is pressed, and we've moved over a new scrollbar, then we can clear m_lastScrollbarUnderMouse.
995          We should only need to show the hover effect when the mouse isn't pressed.
996
997 2007-11-29  Brady Eidson <beidson@apple.com>
998
999         Reviewed by Tim
1000
1001         Part of <rdar://problem/5556377> - Need to accurately track and enforce database quota
1002
1003         SQLite has the ability to enforce the page usage for databases.  This gives us bulletproof
1004         enforcement of the database size limit with reasonable granularity (within 1023 bytes by 
1005         default on OS X with SQLite 3.4.0)
1006
1007         This also involved enhancing the ability to install/remove the authorizer to run the PRAGMA
1008         statements involved
1009
1010         Note this patch does not actually use the new maximumSize() functionality of the 
1011         SQLiteDatabase class - that can be reviewed/landed seperately
1012         
1013         * platform/sql/SQLiteDatabase.cpp:
1014         (WebCore::SQLiteDatabase::SQLiteDatabase): 
1015         (WebCore::SQLiteDatabase::maximumSize): Return the current maximum size in bytes
1016         (WebCore::SQLiteDatabase::setMaximumSize): Based on m_pageSize, set the maximum page count
1017           to enforce the maximum size in bytes
1018         (WebCore::SQLiteDatabase::pageSize): Fetch m_pageSize if it hasn't been fetched, or return
1019           the cached value
1020         (WebCore::SQLiteDatabase::setAuthorizer): Use enableAuthorizer for the sqlite_* level 
1021           authorizer setup
1022         (WebCore::SQLiteDatabase::enableAuthorizer): Install or remove the sqlite authorizer handler
1023         * platform/sql/SQLiteDatabase.h: Add the m_pageSize member so we only have to fetch it once
1024
1025 2007-11-29  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1026
1027         Reviewed by Maciej.
1028
1029         * Fix fast/events/mousedown_in_scrollbar.html
1030         * This test used to crash in PlatformScrollbarQt::mouse*Event due parent() returning 0.
1031         * Extend the current check that the scrollbar in the mev can be go away.
1032         This happens if we destroy a RenderLayer as the result of a click. In the
1033         case of Qt we can have this scrollbar in m_lastScrollbarUnderMouse. The RenderLayer
1034         is the ScrollbarClient, m_lastScrollbarUnderMouse is a RefPtr and keeps the
1035         last reference. When calling into this scrollbar the m_client pointer is a dangling pointer.
1036         We extend the check to set m_lastScrollbarUnderMouse back to zero when it was the
1037         scrollbar in the old mev and is gone in the new one.
1038         * This happens only on the Qt port because we send more/different move events.
1039
1040         * page/EventHandler.cpp:
1041         (WebCore::EventHandler::handleMousePressEvent):
1042
1043 2007-11-29  Antti Koivisto  <antti@apple.com>
1044
1045         Reviewed by Mitz.
1046
1047         Fix aspect ratio calculation of video.
1048         
1049         Video should always be treated as a replaced element in size calculation.
1050         
1051         Test: media/video-aspect-ratio.html
1052
1053         * rendering/RenderBox.cpp:
1054         (WebCore::RenderBox::calcWidth):
1055         (WebCore::RenderBox::calcHeight):
1056         * rendering/RenderBox.h:
1057         (WebCore::RenderBox::shouldCalculateSizeAsReplaced):
1058         * rendering/RenderMedia.h:
1059         (WebCore::RenderMedia::shouldCalculateSizeAsReplaced):
1060
1061 2007-11-29  Sam Weinig  <sam@webkit.org>
1062
1063         Reviewed by Oliver.
1064
1065         Additional fix for <rdar://problem/5592988> / http://bugs.webkit.org/show_bug.cgi?id=15936
1066         - More closely match IE's policy for frame navigation.
1067
1068         * bindings/js/kjs_window.cpp:
1069         (KJS::WindowProtoFuncOpen::callAsFunction):
1070         * loader/FrameLoader.cpp:
1071         (WebCore::FrameLoader::shouldAllowNavigation):
1072         * page/FrameTree.cpp:
1073         (WebCore::FrameTree::top):
1074         * page/FrameTree.h:
1075
1076 2007-11-29  Dan Bernstein  <mitz@apple.com>
1077
1078         Reviewed by Adam Roben and John Sullivan.
1079
1080         - make the recent searches popup extend only along the straight part of
1081           the search field (unless it needs to be wider).
1082
1083         * platform/PopupMenuClient.h:
1084           Added clientInsetLeft() and clientInsetRight() for clients to
1085           specify desired horizontal insets for the menu.
1086         * platform/win/PopupMenuWin.cpp:
1087         (WebCore::PopupMenu::calculatePositionAndSize):
1088         (WebCore::PopupMenu::paint):
1089         * rendering/RenderMenuList.cpp:
1090         (WebCore::RenderMenuList::clientInsetLeft): Added. Returns 0.
1091         (WebCore::RenderMenuList::clientInsetRight): Ditto.
1092         * rendering/RenderMenuList.h:
1093         * rendering/RenderTextControl.cpp:
1094         (WebCore::RenderTextControl::clientInsetLeft): Added. Returns half the
1095         control's height, which is the radius of the cap on the left.
1096         (WebCore::RenderTextControl::clientInsetRight): Added.
1097         * rendering/RenderTextControl.h:
1098
1099 2007-11-30  Alp Toker  <alp@atoker.com>
1100
1101         Reviewed by Maciej.
1102
1103         http://bugs.webkit.org/show_bug.cgi?id=16173
1104         Licensing change
1105
1106         Change license from BSD to LGPL.
1107
1108         This is being done to encourage vendors to contribute their fixes back
1109         upstream.
1110
1111         * platform/graphics/gtk/ColorGtk.cpp:
1112         * platform/graphics/gtk/IntPointGtk.cpp:
1113         * platform/graphics/gtk/IntRectGtk.cpp:
1114         * platform/graphics/svg/cairo/RenderPathCairo.cpp:
1115         * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp:
1116         * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp:
1117         * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp:
1118         * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp:
1119         * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp:
1120         * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp:
1121         * platform/gtk/Language.cpp:
1122         * platform/gtk/LoggingGtk.cpp:
1123         * platform/gtk/SoundGtk.cpp:
1124         * platform/gtk/SystemTimeGtk.cpp:
1125         * platform/gtk/TextBreakIteratorInternalICUGtk.cpp:
1126
1127 2007-11-29  Darin Adler  <darin@apple.com>
1128
1129         Reviewed by Adele.
1130
1131         - fix http://bugs.webkit.org/show_bug.cgi?id=16191
1132           REGRESSION: cannot tab to radio input after setting checked to false
1133
1134         Test: fast/forms/input-radio-checked-tab.html
1135
1136         * html/HTMLFormElement.cpp:
1137         (WebCore::HTMLFormElement::CheckedRadioButtons::addButton): Fix this code
1138         so that it doesn't call setChecked(false) until after the map has been updated.
1139         Otherwise, we can end up deallocating the map before manipulating it. As long
1140         as I was changing the function, I decided to make it do only a single hash
1141         table lookup.
1142
1143         * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::setChecked):
1144         Remove the button from the radio buttons set before changing the checked
1145         state. This matches the idiom used elsewhere and fixes the problem where
1146         setting checked to false would not remove it from the set.
1147
1148 2007-11-29  Justin Garcia  <justin.garcia@apple.com>
1149
1150         Reviewed by Darin Adler.
1151
1152         <rdar://problem/5620093> Brief hang when Safari caches page text of XML document
1153
1154         * editing/TextIterator.cpp:
1155         (WebCore::TextIterator::representNodeOffsetZero): When we haven't been emitting any 
1156         characters, shouldRepresentNodeOffsetZero() can create VisiblePositions, which is
1157         expensive.  So, we perform the inexpensive checks on m_node to see if it necessitates 
1158         emitting a character first and will early return before encountering 
1159         shouldRepresentNodeOffsetZero()s worse case behavior.
1160
1161 2007-11-29  Anders Carlsson  <andersca@apple.com>
1162
1163         Reviewed by Sam.
1164
1165         Don't install event handlers or set the zoom cursor if auto-shrink has been disabled.
1166
1167         * loader/ImageDocument.cpp:
1168         (WebCore::ImageDocument::createDocumentStructure):
1169         (WebCore::ImageDocument::imageChanged):
1170
1171 2007-11-29  Beth Dakin  <bdakin@apple.com>
1172
1173         Reviewed by Geoff.
1174
1175         Fix for <rdar://problem/5620151> Disable JavaScript for SVG as 
1176         image for <img> and CSS images
1177
1178         * platform/graphics/svg/SVGImage.cpp:
1179         (WebCore::SVGImage::dataChanged): When we create the empty clients, 
1180         explicitly disable JavaScript in the settings.
1181
1182 2007-11-29  Brady Eidson  <beidson@apple.com>
1183
1184         Reviewed by Anders
1185
1186         Support for <rdar://problem/5556381> and <rdar://problem/5556379>
1187
1188         The Database feature in the engine needs to support delegate calls for policy decisions and
1189         also provide notifications when origins and databases change their state.
1190
1191         This patch also polishes off the missing features of the management API
1192
1193         * page/Chrome.cpp: Implement the two UIDelegate methods
1194         (WebCore::Chrome::requestQuotaIncreaseForNewDatabase): Ask for more space to create a new database if it won't fit
1195         (WebCore::Chrome::requestQuotaIncreaseForDatabaseOperation): Ask for more space to complete an in-progress operation
1196         * page/Chrome.h:
1197         * page/ChromeClient.h:
1198         * platform/graphics/svg/SVGImageEmptyClients.h:
1199         (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForNewDatabase):
1200         (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForDatabaseOperation):
1201
1202         * storage/Database.cpp:
1203         (WebCore::Database::openDatabase): Check to see if this database can be opened - the quota must be high 
1204           enough and if it isn't, the UIDelegate should have a change to bump the quota.
1205           Also update the UI-relevant details (display name and estimated size) upon successful opening of the database
1206
1207         * storage/DatabaseDetails.h: Remove the version parameter as it is a programatic detail of a
1208           site database and is not important to API clients
1209         (WebCore::DatabaseDetails::DatabaseDetails):
1210         (WebCore::DatabaseDetails::isValid):
1211         (WebCore::DatabaseDetails::name):
1212
1213         * storage/DatabaseTracker.cpp:
1214         (WebCore::DatabaseTracker::openTrackerDatabase): Tweaked the schema here - there was a horrible bug with the old schema that would
1215           prevent you from having two databases of the same name from two different origins.  Also simplify the origin-management schema
1216         (WebCore::DatabaseTracker::canEstablishDatabase): Added.  Does some estimated size vs quota checks, and asks the UI delegate for 
1217           more space if necessary
1218         (WebCore::DatabaseTracker::hasEntryForOrigin):
1219         (WebCore::DatabaseTracker::establishEntryForOrigin): Establishes a tracker entry for the given origin with the current default quota
1220           Also notifies the client of the new origin
1221         (WebCore::DatabaseTracker::setDatabaseDetails): Update the display name and estimated size for the given database
1222         (WebCore::DatabaseTracker::fullPathForDatabase): Tweak to add the ability to get the path without creating it - for management purposes
1223         (WebCore::DatabaseTracker::populateOrigins): Populate origins from the Origins table instead of the Databases table
1224         (WebCore::DatabaseTracker::origins):
1225         (WebCore::DatabaseTracker::detailsForNameAndOrigin): For API management
1226         (WebCore::DatabaseTracker::usageForDatabase):
1227         (WebCore::DatabaseTracker::usageForOrigin):
1228         (WebCore::DatabaseTracker::quotaForOrigin):
1229         (WebCore::DatabaseTracker::setQuota): Notify the client
1230         (WebCore::DatabaseTracker::addDatabase): Notify the client 
1231         (WebCore::DatabaseTracker::deleteAllDatabases):
1232         (WebCore::DatabaseTracker::deleteDatabasesWithOrigin):
1233         (WebCore::DatabaseTracker::deleteDatabase):
1234         (WebCore::DatabaseTracker::deleteDatabaseFile):
1235         * storage/DatabaseTracker.h:
1236
1237 2007-11-29  Dan Bernstein  <mitz@apple.com>
1238
1239         Reviewed by Beth Dakin and Darin Adler.
1240
1241         - manual test for <rdar://problem/5346394> Contextmenu event doesn't fire on body element inside frame
1242
1243         * manual-tests/context-click-unfocused-frame.html: Added.
1244
1245 2007-11-28  Antti Koivisto  <antti@apple.com>
1246
1247         Reviewed by Geoff.
1248         
1249         Fallback content inside media elements should not be rendered.
1250
1251         Test: media/fallback.html
1252
1253         * rendering/RenderMedia.h:
1254         (WebCore::RenderMedia::canHaveChildren):
1255
1256 2007-11-28  Mark Rowe  <mrowe@apple.com>
1257
1258         Windows build fix.
1259
1260         * WebCore.vcproj/WebCore.vcproj:
1261
1262 2007-11-28  Mark Rowe  <mrowe@apple.com>
1263
1264         Gtk build fix.
1265
1266         * WebCore.pro:
1267
1268 2007-11-28  Antti Koivisto  <antti@apple.com>
1269
1270         Reviewed by Oliver.
1271
1272         Make QTMovieView fill color transparent. This behavior matches the specification
1273         (and allows nice alpha blended video).
1274
1275         * platform/graphics/mac/MoviePrivateQTKit.mm:
1276         (WebCore::MoviePrivate::createQTMovieView):
1277
1278 2007-11-28  Antti Koivisto  <antti@apple.com>
1279
1280         Reviewed by Darin.
1281
1282         Test: media/video-controls.html
1283         
1284         <rdar://problem/5605668>
1285         Implement controls attribute for video element
1286         
1287         - Add RenderMedia and make RenderVideo its subclass. Controls code goes to RenderMedia while
1288           video specific (painting etc) code stays in RenderVideo. For example audio controls can be implemented
1289           later by just instantiating RenderMedia as renderer.
1290         - Make media renderer hierarchy inherit from RenderBlock instead of RenderReplaced so it can 
1291           have child nodes (for controls).
1292         - Controls are implemented as a shadow DOM.
1293         - Current look is a placeholder. It is defined purely in CSS.
1294         - Some things like volume controls are not yet implemented.
1295         - Fade-in/out is done manually, CSS animations don't work well in shadow trees.
1296           
1297         * WebCore.xcodeproj/project.pbxproj:
1298         * css/html4.css:
1299         * html/HTMLMediaElement.cpp:
1300         (WebCore::HTMLMediaElement::attributeChanged):
1301         (WebCore::HTMLMediaElement::updateMovie):
1302         (WebCore::HTMLMediaElement::defaultEventHandler):
1303         * html/HTMLMediaElement.h:
1304         * rendering/RenderMedia.cpp: Added.
1305         (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement):
1306         (WebCore::MediaControlShadowRootElement::isShadowNode):
1307         (WebCore::MediaControlShadowRootElement::shadowParentNode):
1308         (WebCore::MediaControlInputElement::MediaControlInputElement):
1309         (WebCore::MediaControlInputElement::attachToParent):
1310         (WebCore::MediaControlPlayButtonElement::MediaControlPlayButtonElement):
1311         (WebCore::MediaControlPlayButtonElement::inPausedState):
1312         (WebCore::MediaControlPlayButtonElement::defaultEventHandler):
1313         (WebCore::MediaControlPlayButtonElement::update):
1314         (WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
1315         (WebCore::MediaControlTimelineElement::defaultEventHandler):
1316         (WebCore::MediaControlTimelineElement::update):
1317         (WebCore::RenderMedia::RenderMedia):
1318         (WebCore::RenderMedia::~RenderMedia):
1319         (WebCore::RenderMedia::mediaElement):
1320         (WebCore::RenderMedia::movie):
1321         (WebCore::RenderMedia::setStyle):
1322         (WebCore::RenderMedia::createControlsShadowRoot):
1323         (WebCore::RenderMedia::createPanel):
1324         (WebCore::RenderMedia::createPlayButton):
1325         (WebCore::RenderMedia::createTimeline):
1326         (WebCore::RenderMedia::createTimeDisplay):
1327         (WebCore::RenderMedia::updateFromElement):
1328         (WebCore::RenderMedia::updateControls):
1329         (WebCore::RenderMedia::timeUpdateTimerFired):
1330         (WebCore::RenderMedia::updateTimeDisplay):
1331         (WebCore::RenderMedia::updateControlVisibility):
1332         (WebCore::RenderMedia::changeOpacity):
1333         (WebCore::RenderMedia::opacityAnimationTimerFired):
1334         (WebCore::RenderMedia::forwardEvent):
1335         * rendering/RenderMedia.h: Added.
1336         (WebCore::RenderMedia::renderName):
1337         (WebCore::RenderMedia::isMedia):
1338         (WebCore::RenderMedia::intrinsicSize):
1339         * rendering/RenderObject.h:
1340         (WebCore::RenderObject::isMedia):
1341         * rendering/RenderVideo.cpp:
1342         (WebCore::RenderVideo::RenderVideo):
1343         (WebCore::RenderVideo::videoSizeChanged):
1344         (WebCore::RenderVideo::paintObject):
1345         (WebCore::RenderVideo::layout):
1346         (WebCore::RenderVideo::updateFromElement):
1347         (WebCore::RenderVideo::calcAspectRatioWidth):
1348         (WebCore::RenderVideo::calcAspectRatioHeight):
1349         * rendering/RenderVideo.h:
1350
1351 2007-11-28  Justin Garcia  <justin.garcia@apple.com>
1352
1353         Reviewed by Darin Adler.
1354
1355         <rdar://problem/5573879> GMail Beta: Crash in when undoing Remove Formating
1356         
1357         In the new beta, Google has added some custom code on top of our RemoveFormat
1358         to work around a bug where fully selected lists aren't removed.  This code corrupts
1359         the undo stack and causes crashes.  This change fixes two problems with RemoveFormat
1360         so that Google doesn't have to have any custom code. After checking this in I'll 
1361         work on bulletproofing the undo stack
1362
1363         * WebCore.xcodeproj/project.pbxproj: 
1364         * editing/CompositeEditCommand.cpp:
1365         (WebCore::CompositeEditCommand::insertLineBreak): Added this convenience method.
1366         (WebCore::CompositeEditCommand::inputText): Added code to select all inserted text, not
1367         just the last paragraph.  Added code to support an input string with '\n's.
1368         * editing/CompositeEditCommand.h:
1369         * editing/Editor.cpp:
1370         (WebCore::Editor::removeFormattingAndStyle): Moved code to its own EditCommand.
1371         * editing/RemoveFormatCommand.cpp: Added. Moved code from removeFormattingAndStyle here.
1372         (WebCore::RemoveFormatCommand::RemoveFormatCommand):
1373         (WebCore::RemoveFormatCommand::doApply): Added code to remove fully selected lists.
1374         * editing/RemoveFormatCommand.h: Added.
1375         (WebCore::RemoveFormatCommand::editingAction):
1376
1377 2007-11-28  Dan Bernstein  <mitz@apple.com>
1378
1379         Reviewed by Dave Hyatt.
1380
1381         - fix <rdar://problem/5612459> CrashTracer: [REGRESSION] 61 crashes in Safari at com.apple.WebCore: WebCore::AutoTableLayout::layout + 2046
1382
1383         Test: fast/table/empty-auto-column-zero-divide.html
1384
1385         * rendering/AutoTableLayout.cpp:
1386         (WebCore::AutoTableLayout::recalcColumn):
1387         (WebCore::AutoTableLayout::fullRecalc):
1388         (WebCore::AutoTableLayout::calcEffectiveWidth):
1389         (WebCore::AutoTableLayout::layout): When distributing the remaining
1390         width among columns, skip those whose effective (rather than
1391         specified) width is auto and contain only empty cells.
1392
1393 2007-11-28  Peter Kasting  <zerodpx@gmail.com>
1394
1395         Reviewed by Alp Toker.
1396
1397         http://bugs.webkit.org/show_bug.cgi?id=16169
1398         GIF decoder needs to set hasAlpha() correctly on subsequent frames.
1399         
1400         This also removes the workaround for this problem in
1401         ImageSourceCairo.cpp.
1402
1403         * platform/graphics/cairo/ImageSourceCairo.cpp:
1404         (WebCore::ImageSource::frameHasAlphaAtIndex):
1405         * platform/image-decoders/gif/GIFImageDecoder.cpp:
1406         (WebCore::GIFImageDecoder::initFrameBuffer):
1407
1408 2007-11-28  Dan Bernstein  <mitz@apple.com>
1409
1410         Reviewed by Darin Adler and Adam Roben.
1411
1412         - <rdar://problem/5057218> Reenable "recent searches" search field menu when menu is fully implemented
1413
1414         * platform/win/SearchPopupMenuWin.cpp:
1415         (WebCore::SearchPopupMenu::enabled): Changed to return true.
1416         (WebCore::autosaveKey): Added. Returns a preferences key for the
1417         autosave name by prefixing it with "com.apple.WebKit.searchField:".
1418         (WebCore::SearchPopupMenu::saveRecentSearches): Implemented.
1419         (WebCore::SearchPopupMenu::loadRecentSearches): Implemented.
1420
1421 2007-11-28  Alp Toker  <alp@atoker.com>
1422
1423         Reviewed by Mark Rowe.
1424
1425         http://bugs.webkit.org/show_bug.cgi?id=15689
1426         [GTK] Background of loading images is always black
1427
1428         frameHasAlphaAtIndex() exists only to allow optimization for cases we
1429         are certain the image can be blitted rather than composited.
1430
1431         Thus we need to be conservative, returning false only when we are
1432         absolutely certain there is no need for composited copying, and true
1433         otherwise.
1434
1435         CG doesn't even bother with this optimization at all and always
1436         returns true.
1437
1438         Patch includes a workaround for
1439           http://bugs.webkit.org/show_bug.cgi?id=16169
1440           GIF ImageDecoder hasAlpha() return value incorrect
1441
1442         * platform/graphics/cairo/ImageSourceCairo.cpp:
1443         (WebCore::ImageSource::frameHasAlphaAtIndex):
1444
1445 2007-11-27  Alp Toker  <alp@atoker.com>
1446
1447         Reviewed by Mark Rowe.
1448
1449         Install the JavaScriptCore headers as part of the GTK+ port.
1450
1451         * WebCore.pro:
1452
1453 2007-11-27  Beth Dakin  <bdakin@apple.com>
1454
1455         Reviewed by Oliver.
1456
1457         Fix for <rdar://problem/5616052> SVGs with width or height of 100% 
1458         hang when used as a background-image (16164)
1459
1460         * platform/graphics/svg/SVGImage.cpp:
1461         (WebCore::SVGImage::size): Use valueAsPercentage() for percents 
1462         instead of valueInSpecifiedUnits(). valueInSpecifiedUnits() 
1463         returns, for example, 50 for 50%, so multiplying percentages by the 
1464         default size of 300 x 150 led to ridiculously huge dimensions for 
1465         SVG images, and the subsequent hang. 
1466
1467 2007-11-27  Jon Honeycutt  <jhoneycutt@apple.com>
1468
1469         Reviewed by Adam.
1470
1471         Set haveRegisteredWindowClass when we register the window class.
1472
1473         * plugins/win/PluginViewWin.cpp:
1474         (WebCore::registerPluginView):
1475
1476 2007-11-27  Timothy Hatcher  <timothy@apple.com>
1477
1478         Reviewed by Sam Weinig.
1479
1480         Bug 16165: Dragging the inspector toolbar should move the window
1481         http://bugs.webkit.org/show_bug.cgi?id=16165
1482
1483         * page/inspector/DocumentPanel.js: Call the new drag functions, and cleanup code.
1484         * page/inspector/inspector.css: Only make the toolbar transparent in detached mode.
1485         * page/inspector/inspector.js: Call the new drag functions, and cleanup code. Add
1486           toolbar drag functions that move the window.
1487
1488 2007-11-27  Antti Koivisto  <antti@apple.com>
1489
1490         Reviewed by Mitz.
1491
1492         Small changes to make RenderSlider a bit more generic so it can be used in video controls.
1493
1494         * html/HTMLInputElement.cpp:
1495         (WebCore::HTMLInputElement::defaultEventHandler): Fix coordinates with forwarded events.
1496         * rendering/RenderSlider.cpp:
1497         (WebCore::HTMLSliderThumbElement::defaultEventHandler): Fix coordinates with forwarded events.
1498         (WebCore::RenderSlider::setStyle):
1499         (WebCore::RenderSlider::createThumbStyle): Copy thumb left and top from the orginal style so position does not reset.
1500         (WebCore::RenderSlider::mouseEventIsInThumb): Make this work with forwarded events.
1501         * rendering/RenderSlider.h:
1502
1503 2007-11-27  Antti Koivisto  <antti@apple.com>
1504
1505         Reviewed by Darin.
1506
1507         - Don't use hasPseudoId() optimization for pseudo styles used in shadow trees. These styles
1508           generally exist when asked for so the optimization does not do much. This reverses the continuing
1509           growth of the _pseudoBits bitfield in RenderStyle.
1510         - Add some pseudo elements for media controls
1511
1512         * css/CSSSelector.cpp:
1513         (WebCore::CSSSelector::extractPseudoType):
1514         * css/CSSSelector.h:
1515         (WebCore::CSSSelector::):
1516         * css/CSSStyleSelector.cpp:
1517         (WebCore::CSSStyleSelector::matchRulesForList):
1518         (WebCore::CSSStyleSelector::checkOneSelector):
1519         * rendering/RenderObject.cpp:
1520         (WebCore::RenderObject::getPseudoStyle):
1521         * rendering/RenderStyle.cpp:
1522         (WebCore::pseudoBit):
1523         (WebCore::RenderStyle::hasPseudoStyle):
1524         (WebCore::RenderStyle::setHasPseudoStyle):
1525         * rendering/RenderStyle.h:
1526         (WebCore::RenderStyle::):
1527
1528 2007-11-27  Timothy Hatcher  <timothy@apple.com>
1529
1530         Reviewed by Kevin McCullough.
1531
1532         Bug 16161: window.moveBy(0, 0) moves the window by -22px vertically
1533         http://bugs.webkit.org/show_bug.cgi?id=16161
1534
1535         Removed the "Adjust the window rect to be in the coordinate space of
1536         the screen rect" step which was always adding (0,22) to the window
1537         position (on the main screen). Instead, account for screen X and Y
1538         in the bottom and right constrain step.
1539
1540         Added more test cases to: fast/dom/Window/window-resize.html
1541
1542         * bindings/js/kjs_window.cpp:
1543         (KJS::adjustWindowRect):
1544
1545 2007-11-27  Timothy Hatcher  <timothy@apple.com>
1546
1547         Reviewed by Adam Roben.
1548
1549         * page/inspector/inspector.css: Make the text in the Network
1550         panel legend more readable.
1551
1552 2007-11-27  Timothy Hatcher  <timothy@apple.com>
1553
1554         Reviewed by Adam Roben.
1555
1556         Don't call setNeedsReapplyStylesInAllFrames if the
1557         authorAndUserStylesEnabled setting didn't change.
1558
1559         * page/Settings.cpp:
1560         (WebCore::Settings::setAuthorAndUserStylesEnabled):
1561
1562 2007-11-27  Alp Toker  <alp@atoker.com>
1563
1564         Fix potential broken build due to a missing DEPENDPATH.
1565
1566         * WebCore.pro:
1567
1568 2007-11-26  Timothy Hatcher  <timothy@apple.com>
1569
1570         Reviewed by Dave Hyatt.
1571
1572         <rdar://problem/5569233> Add the ability to disable author and user CSS styles
1573
1574         * WebCore.base.exp: Add the Settings::setAuthorAndUserStylesEnabled symbol.
1575         * css/CSSStyleSelector.cpp:
1576         (WebCore::CSSStyleSelector::CSSStyleSelector): Add a new matchAuthorAndUserStyles parameter.
1577         (WebCore::CSSStyleSelector::styleForElement): Check m_matchAuthorAndUserStyles before
1578         matching user and author rules.
1579         (WebCore::CSSStyleSelector::pseudoStyleForElement): Ditto.
1580         (WebCore::CSSStyleSelector::styleRulesForElement): Ditto.
1581         * css/CSSStyleSelector.h: Add m_matchAuthorAndUserStyles and new constructor parameter.
1582         * dom/Document.cpp:
1583         (WebCore::Document::Document): Pass Settings::authorAndUserStylesEnabled to the CSSStyleSelector.
1584         (WebCore::Document::recalcStyleSelector): Skip collecting the author stylesheets if
1585         Settings::authorAndUserStylesEnabled is false, and pass that to the CSSStyleSelector.
1586         * page/Settings.cpp:
1587         (WebCore::Settings::Settings): Initialize m_authorAndUserStylesEnabled to true.
1588         (WebCore::Settings::setAuthorAndUserStylesEnabled): Recalc style in all the frames
1589         when the setting changes.
1590         * page/Settings.h: Add m_authorAndUserStylesEnabled.
1591         (WebCore::Settings::authorAndUserStylesEnabled): Return m_authorAndUserStylesEnabled.
1592
1593 2007-11-27  Alp Toker  <alp@atoker.com>
1594
1595         Reviewed by Mark Rowe.
1596
1597         Based on changes by Mike Emmel.
1598
1599         CURL HTTP backend local file fixes:
1600
1601         Set a MIME type for local files based on the file extension.
1602
1603         Remove any HTTP query part sent to a local file.
1604
1605         * platform/network/curl/ResourceHandleManager.cpp:
1606         (WebCore::ResourceHandleManager::startJob):
1607
1608 2007-11-26  Brady Eidson  <beidson@apple.com>
1609
1610         Reviewed by Mark Rowe
1611
1612         Allow setting the default storage quota per database origin
1613
1614         * WebCore.base.exp:
1615
1616         * page/Settings.cpp:
1617         (WebCore::Settings::setDefaultDatabaseOriginQuota):
1618         (WebCore::Settings::defaultDatabaseOriginQuota):
1619         * page/Settings.h:
1620
1621         * storage/DatabaseTracker.cpp:
1622         (WebCore::DatabaseTracker::DatabaseTracker):
1623         (WebCore::DatabaseTracker::setDefaultOriginQuota):
1624         (WebCore::DatabaseTracker::defaultOriginQuota):
1625         * storage/DatabaseTracker.h:
1626
1627 2007-11-26  Peter Kasting  <zerodpx@gmail.com>
1628
1629         Reviewed by Alp Toker.
1630
1631         http://bugs.webkit.org/show_bug.cgi?id=15974
1632         GIF decoding should respect frames' specified disposal methods.
1633
1634         * platform/image-decoders/ImageDecoder.h:
1635         (WebCore::RGBA32Buffer::):
1636         (WebCore::RGBA32Buffer::RGBA32Buffer):
1637         (WebCore::RGBA32Buffer::disposalMethod):
1638         (WebCore::RGBA32Buffer::setDisposalMethod):
1639         * platform/image-decoders/gif/GIFImageDecoder.cpp:
1640         (WebCore::GIFImageDecoder::frameBufferAtIndex):
1641         (WebCore::GIFImageDecoder::initFrameBuffer):
1642         (WebCore::GIFImageDecoder::prepEmptyFrameBuffer):
1643         (WebCore::GIFImageDecoder::haveDecodedRow):
1644         (WebCore::GIFImageDecoder::frameComplete):
1645         * platform/image-decoders/gif/GIFImageDecoder.h:
1646         * platform/image-decoders/gif/GIFImageReader.cpp:
1647         (GIFImageReader::read):
1648         * platform/image-decoders/gif/GIFImageReader.h:
1649         (GIFFrameReader::GIFFrameReader):
1650
1651 2007-11-26  Adam Roben  <aroben@apple.com>
1652
1653         Add a Color(CGColorRef) constructor
1654
1655         Reviewed by Darin.
1656
1657         * platform/graphics/Color.h:
1658         * platform/graphics/cg/ColorCG.cpp:
1659         (WebCore::Color::Color): Added.
1660
1661 2007-11-26  Adele Peterson  <adele@apple.com>
1662
1663         Reviewed by Darin.
1664
1665         Update to last change.  Moved addPendingSheet call to within nil check for m_cachedSheet.
1666
1667         * page/Frame.cpp:
1668         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
1669
1670 2007-11-26  Adele Peterson  <adele@apple.com>
1671
1672         Reviewed by Darin.
1673
1674         Fix for <rdar://problem/5591583> CrashTracer: [USER] 157 in Mail crashes at -[WebCoreFrameBridge reapplyStylesForDeviceType:]
1675
1676         * page/Frame.cpp: Add nil checks since every other caller of requestCSSStyleSheet checks for nil.
1677         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
1678         (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader):
1679
1680 2007-11-26  Mark Rowe  <mrowe@apple.com>
1681
1682         GCC 4.2 build fix.
1683
1684         * xml/XSLTUnicodeSort.cpp: Add another WTF_ATTRIBUTE_PRINTF.
1685
1686 2007-11-26  Feng Qian <ian.eng.webkit@gmail.com>
1687
1688         Reviewed and touched up by Sam Weinig.
1689
1690         Fix for http://bugs.webkit.org/show_bug.cgi?id=16073
1691
1692         Test: http/tests/security/xss-DENIED-invalid-domain-change.html
1693
1694         * dom/Document.cpp:
1695         (WebCore::Document::setDomain): Don't set the securityOrigin policy unless
1696         the set succeeds.  Adds some early returns as well.
1697
1698 2007-11-26  Steve Falkenburg  <sfalken@apple.com>
1699
1700         Build fix.
1701
1702         * WebCore.vcproj/WebCore.make:
1703         * WebCore.vcproj/migrate-idls.sh:
1704
1705 2007-11-26  Sam Weinig  <sam@webkit.org>
1706
1707         Fix potential null-dereference.
1708
1709         Reviewed by Adam Roben.
1710
1711         * page/FrameTree.cpp:
1712         (WebCore::FrameTree::isDescendantOf):
1713
1714 2007-11-26  Sam Weinig  <sam@webkit.org>
1715
1716         Reviewed by Darin.
1717
1718         Fix for <rdar://problem/5592988>
1719         - Enforce tighter restrictions on what frames in other domains
1720           can be navigated.
1721
1722         Tests: http/tests/security/frameNavigation/xss-ALLOWED-parent-navigation-change.html
1723                http/tests/security/frameNavigation/xss-ALLOWED-targeted-subframe-navigation-change.html
1724
1725         * bindings/js/kjs_window.cpp:
1726         (KJS::Window::put):
1727         (KJS::Location::put):
1728         (KJS::LocationProtoFuncReplace::callAsFunction):
1729         (KJS::LocationProtoFuncAssign::callAsFunction):
1730         * loader/FrameLoader.cpp:
1731         (WebCore::FrameLoader::createWindow):
1732         (WebCore::FrameLoader::load):
1733         (WebCore::FrameLoader::shouldAllowNavigation): Move and update logic from canTarget().
1734         * loader/FrameLoader.h:
1735         * page/FrameTree.cpp:
1736         (WebCore::FrameTree::isDescendantOf): Make this O(1) in the case when both frames are not
1737         in the same page.
1738
1739 2007-11-26  Steve Falkenburg  <sfalken@apple.com>
1740
1741         Build fix.
1742
1743         * WebCore.vcproj/migrate-idls.sh:
1744
1745 2007-11-26  Dan Bernstein  <mitz@apple.com>
1746
1747         Reviewed by Dave Hyatt.
1748
1749         - fix <rdar://problem/5609337> Making a float shorter does not remove it from the floating object list of a nested block it intruded into
1750
1751         Test: fast/dynamic/float-withdrawal-2.html
1752
1753         * rendering/RenderBlock.cpp:
1754         (WebCore::RenderBlock::layoutBlockChildren): When a float may have
1755         been withdrawn from a child, mark all descendants if necessary and not
1756         just the child.
1757
1758 2007-11-26  Steve Falkenburg  <sfalken@apple.com>
1759
1760         Build fix.
1761
1762         * WebCore.vcproj/MigrateIDLAndScripts: Copied from WebCore.vcproj/MigrateIDLAndScripts.make.
1763         * WebCore.vcproj/MigrateIDLAndScripts.make: Removed.
1764         * WebCore.vcproj/migrate-idls.sh:
1765
1766 2007-11-26  Brady Eidson  <beidson@apple.com>
1767
1768         Reviewed by Anders (and typo lovingly found by Adam)
1769
1770         Change Databases to be stored in a per-origin directory hierarchy - this will make
1771         storage quotas much easier to enforce
1772
1773         * platform/SecurityOriginData.cpp:
1774         (WebCore::SecurityOriginData::SecurityOriginData): Parse string based on '_' instead of ':'
1775         (WebCore::SecurityOriginData::stringIdentifier): Change to use '_' as a separator instead of ':'.  
1776           '_' still works due to not being allowed in domain names, but also is a valid filename character '
1777           on all filesystems we care about
1778
1779         * storage/DatabaseTracker.cpp:
1780         (WebCore::DatabaseTracker::fullPathForDatabase): Create a per-origin directory hierarchy to categorize
1781           databases by origin
1782
1783 2007-11-26  Timothy Hatcher  <timothy@apple.com>
1784
1785         Reviewed by Adam Roben.
1786
1787         Bug 16137: Web Inspector window on Leopard should have a unified toolbar and window title
1788         http://bugs.webkit.org/show_bug.cgi?id=16137
1789
1790         On Leopard the toolbar background will be transparent, to allow the
1791         window background to show through the transparent WebView. The 
1792         search results divs needed to move inside the "main" div, so they
1793         would be clipped and not show where the toolbar is.
1794
1795         * page/InspectorController.cpp:
1796         (WebCore::platform): Return a string for which platform we are.
1797         (WebCore::InspectorController::windowScriptObjectAvailable):
1798         Define the platform function on the JavaScript class.
1799         * page/inspector/Panel.js: Add panels to the panels div.
1800         * page/inspector/inspector.css: On the Leopard platform make
1801         the toolbar background transparent so the window background shows.
1802         * page/inspector/inspector.html: Add a panels div and move search
1803         result divs inside the main div.
1804         * page/inspector/inspector.js: Tweak the resize code to acount for
1805         the search results divs moving inside the main div.
1806
1807 2007-11-25  Rodney Dawes  <dobey@wayofthemonkey.com>
1808
1809         Reviewed by Maciej Stachowiak.
1810
1811         Remove the unneeded CFNETWORK #ifdefs.
1812
1813         * loader/NetscapePlugInStreamLoader.h:
1814
1815 2007-11-24  Laszlo Gombos  <laszlo.gombos@gmail.com>
1816
1817         Reviewed by Sam Weinig.
1818
1819         Add printf format attribute to several functions. Use the the new WTF_ATTRIBUTE_PRINTF define.
1820
1821         * dom/XMLTokenizer.cpp:
1822         * dom/XMLTokenizer.h:
1823         * platform/DeprecatedString.h:
1824         * platform/PlatformString.h:
1825
1826 2007-11-25  Dan Bernstein  <mitz@apple.com>
1827
1828         Reviewed by Adam Roben.
1829
1830         - fix off-center error images
1831
1832         Covered by many pixel tests with missing images
1833
1834         * rendering/RenderImage.cpp:
1835         (WebCore::RenderImage::paint): Account for the 1 pixel outline when
1836         positioning the error image.
1837
1838 2007-11-25  Kevin Ollivier  <kevino@theolliviers.com>
1839
1840         wx build fix. Fix filename case for case-sensitive filesystems.
1841
1842         * WebCoreSources.bkl:
1843
1844 2007-11-22  Nikolas Zimmermann  <zimmermann@kde.org>
1845
1846         Reviewed by Adam Roben.
1847
1848         Fixes: http://bugs.webkit.org/show_bug.cgi?id=15564
1849
1850         Fix problems with hidden glyphs. They were taken into account for quite
1851         some operations (hit testing, length calulcations etc..) except painting.
1852         Especially fixes boundaries of <textPath> (see using Web Inspector) if
1853         text-anchor isn't equal to 'start'.
1854
1855         Added testcase:
1856         svg/text/textPathBoundsBug.svg
1857
1858         Fixed testcase: (all showed text selection problems on text paths)
1859         svg/batik/text/textGlyphOrientationHorizontal.svg
1860         svg/batik/text/textOnPath.svg
1861         svg/batik/text/textOnPath3.svg
1862         svg/batik/text/verticalTextOnPath.svg
1863         svg/text/text-align-04-b.svg
1864         svg/W3C-SVG-1.1/text-align-04-b.svg
1865
1866         * rendering/SVGCharacterLayoutInfo.cpp:
1867         (WebCore::SVGChar::isHidden):
1868         * rendering/SVGCharacterLayoutInfo.h:
1869         (WebCore::SVGCharOnPath::SVGCharOnPath):
1870         * rendering/SVGInlineTextBox.cpp:
1871         (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::chunkPortionCallback):
1872         (WebCore::SVGInlineTextBoxSelectionRectWalker::chunkPortionCallback):
1873         * rendering/SVGRootInlineBox.cpp:
1874         (WebCore::topLeftPositionOfCharacterRange):
1875         (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
1876         (WebCore::cummulatedWidthOrHeightOfTextChunk):
1877         (WebCore::applyTextAnchorToTextChunk):
1878         (WebCore::applyTextLengthCorrectionToTextChunk):
1879         (WebCore::SVGRootInlineBox::layoutInlineBoxes):
1880         (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
1881         (WebCore::SVGRootInlineBox::buildTextChunks):
1882
1883 2007-11-25  Alexey Proskuryakov  <ap@webkit.org>
1884
1885         Reviewed by Maciej.
1886
1887         http://bugs.webkit.org/show_bug.cgi?id=15919
1888         XSLTProcessor.transformToFragment creates an extra not defined TEXT_NODE at the end
1889
1890         Test: fast/xsl/extra-lf-at-end.html
1891
1892         * xml/XSLTProcessor.cpp:
1893         (WebCore::writeToVector): Changed to use Vector to avoid slow String::apend().
1894         (WebCore::saveResultToString): Remove trailing line feed if present.
1895
1896 2007-11-24  Mark Rowe  <mrowe@apple.com>
1897
1898         Reviewed by Tim Hatcher.
1899
1900         Fix <rdar://problem/5432686> 333MB RPRVT seems to leak @ www.43folders.com (1hr plug-in stream).
1901         http://bugs.webkit.org/show_bug.cgi?id=13705
1902
1903         Don't buffer the entire stream contents in memory in the ResourceLoader.
1904
1905         * loader/mac/NetscapePlugInStreamLoaderMac.mm:
1906         (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
1907         (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
1908         * loader/mac/WebPlugInStreamLoaderDelegate.h:
1909
1910 2007-11-23  Adam Roben  <aroben@apple.com>
1911
1912         Get rid of WebCoreSystemInterface on Windows
1913
1914         The one function defined in that file is now in WebKitSystemInterface.
1915
1916         Reviewed by Tim.
1917
1918         * WebCore.vcproj/WebCore.vcproj: Removed
1919         WebCoreSystemInterface.{cpp,h}.
1920         * platform/graphics/cg/ImageCG.cpp: Made #include of
1921         WebCoreSystemInterface.h Mac-only.
1922         * platform/win/GraphicsContextWin.cpp: Ditto.
1923         * platform/win/WebCoreSystemInterface.cpp: Removed.
1924         * platform/win/WebCoreSystemInterface.h: Removed.
1925
1926 2007-11-24  Adam Roben  <aroben@apple.com>
1927
1928         Replace uses of %@ with %s in the inspector
1929
1930         Rubberstamped by Tim.
1931
1932         * English.lproj/InspectorLocalizedStrings.js: Changed %@ to %s.
1933         * page/inspector/DatabasePanel.js: Ditto.
1934         * page/inspector/StylesSidebarPane.js: Ditto.
1935         * page/inspector/inspector.js: Ditto.
1936         * page/inspector/utilities.js:
1937         (String.vsprintf): Removed @ as a format specifier.
1938
1939 2007-11-24  Adam Roben  <aroben@apple.com>
1940
1941         Windows build fix
1942
1943         Turn off the change made in r27984 on Windows for now.
1944
1945         * xml/XSLTProcessor.cpp:
1946         (WebCore::XSLTProcessor::transformToString):
1947         * xml/XSLTUnicodeSort.cpp:
1948
1949 2007-11-24  Timothy Hatcher  <timothy@apple.com>
1950
1951         Reviewed by Adam Roben.
1952
1953         Bug 16121: Web Inspector needs helper functions that pass a 'this' object to
1954         addEventListener and setTimeout
1955         http://bugs.webkit.org/show_bug.cgi?id=16121
1956
1957         Add Function.prototype.bind. This helper will return a wrapper function
1958         that will call the original function with the supplied arguments
1959         and using the supplied 'this' object.
1960
1961         * page/inspector/Database.js: Remove a use of setTimeout by
1962           inheriting some common functions from Resource.
1963         * page/inspector/DatabasePanel.js: Use the new bind function.
1964         * page/inspector/ConsolePanel.js: Ditto.
1965         * page/inspector/DocumentPanel.js: Ditto.
1966         * page/inspector/NetworkPanel.js: Ditto.
1967         * page/inspector/PropertiesSection.js: Ditto.
1968         * page/inspector/Resource.js: Ditto.
1969         * page/inspector/SidebarPane.js: Ditto.
1970         * page/inspector/inspector.html: Moved Database.js after Resource.js,
1971           now that Database.js uses it.
1972         * page/inspector/inspector.js: Use the new bind function. Also
1973           removed a setTimeout used for the localized strings code. There is
1974           now a load event listener added to the localized strings script
1975           element that will call WebInspector.loaded.
1976         * page/inspector/utilities.js: Add Function.prototype.bind.
1977
1978 2007-11-24  Timothy Hatcher  <timothy@apple.com>
1979
1980         Reviewed by Adam Roben.
1981
1982         Bug 16112: Some Web Inspector UI elements use offsetWidth and offsetHeight before the stylesheet loads
1983         http://bugs.webkit.org/show_bug.cgi?id=16112
1984
1985         In the places where we use offsetWidth and offsetHeight before
1986         the stylesheet loads there is now a check. If the body's
1987         offsetWidth is not greater than zero, then set a timeout
1988         to do the updates requiring the stylesheet later.
1989
1990         The three places this happened:
1991         - DOM tree selection highlight would show up at the wrong height
1992           when using Inspect Element to open the inspector.
1993         - DOM tree breadcrumbs would not collapse when using Inspect Element
1994           to open the inspector.
1995         - Network Timeline divider lines would not show when opening directly
1996           into the timeline.
1997
1998         * page/inspector/DocumentPanel.js: Check if the stylesheet loaded.
1999         * page/inspector/NetworkPanel.js: Ditto.
2000         * page/inspector/inspector.html: Include the stylesheet before
2001           any scripts, this will help get it loaded sooner.
2002
2003 2007-11-24  Kevin Ollivier  <kevino@theolliviers.com>
2004
2005         Add wx implementation for pathGetFilename
2006
2007         Reviewed by David D. Kilzer.
2008
2009         * html/HTMLFormElement.cpp:
2010         (WebCore::pathGetFilename):
2011
2012 2007-11-23  Timothy Hatcher  <timothy@apple.com>
2013
2014         Reviewed by Adam Roben.
2015
2016         Bug 16110: Clicking inside the resource headers in the network timeline collapses them
2017         http://bugs.webkit.org/show_bug.cgi?id=16110
2018
2019         Toggle the resource headers only if the click happens on the
2020         resource row, not within the headers area.
2021
2022         * WebCore.xcodeproj/project.pbxproj:
2023         * page/inspector/NetworkPanel.js:
2024
2025 2007-11-23  Kevin Ollivier  <kevino@theolliviers.com>
2026
2027         Win build fixes. CURL needs winsock, so don't disable it, and
2028         include pthreads.h to get the threadsafe *_r functions.
2029
2030         Reviewed by Adam Roben.
2031
2032         * config.h:
2033         * loader/FTPDirectoryDocument.cpp:
2034         * loader/FTPDirectoryParser.cpp:
2035
2036 2007-11-23  Kevin Ollivier  <kevino@theolliviers.com>
2037
2038         wx build fix. Move wx settings to project build settings,
2039         remove some old settings that were masking a build problem,
2040         and fix include ordering to ensure proper config.h and
2041         unicode/utf8.h headers are used. 
2042
2043         * webcore-base.bkl:
2044         * webcore-wx.bkl:
2045
2046 2007-11-23  Simon Hausmann  <hausmann@webkit.org>
2047
2048         Reviewed by George Staikos <staikos@kde.org>.
2049
2050         Another build fix specific to trunk (instead of the stable branch) to fix make clean (which the buildbots call).
2051
2052         * WebCore.pro:
2053
2054 2007-11-23  Alexey Proskuryakov  <ap@webkit.org>
2055
2056         Not reviewed, trivial leak fix.
2057
2058         Fix xsltUnicodeSortFunction() memory leaks.
2059
2060         * xml/XSLTUnicodeSort.cpp:
2061         (WebCore::xsltUnicodeSortFunction):
2062
2063 2007-11-23  Alexey Proskuryakov  <ap@webkit.org>
2064
2065         Reviewed by Maciej.
2066
2067         <rdar://problem/5539306> REGRESSION: redirect fails when subframe's document is opened but
2068         not closed (affects digg.com)
2069
2070         Tests: fast/loader/meta-refresh-vs-open.html
2071                fast/loader/redirect-with-open-subframe-2.html
2072                fast/loader/redirect-with-open-subframe.html
2073                http/tests/loading/onload-vs-immediate-refresh.pl
2074
2075         * loader/FrameLoader.cpp:
2076         (WebCore::FrameLoader::scheduleRedirection): Only check whether the load is complete for
2077         HTTP redirects - JavaScript-initiated ones are effective immediately.
2078
2079 2007-11-23  Dan Bernstein  <mitz@apple.com>
2080
2081         Reviewed by Alexey Proskuryakov.
2082
2083         - apply matrix transforms on the correct side of the transformation
2084           matrix (not on the side where the vector is multiplied).
2085
2086         Test: fast/transforms/matrix-02.html
2087
2088         * rendering/RenderStyle.h:
2089         (WebCore::MatrixTransformOperation::apply):
2090
2091 2007-11-23  Alexey Proskuryakov  <ap@webkit.org>
2092
2093         Reviewed by Maciej.
2094
2095         http://bugs.webkit.org/show_bug.cgi?id=16077
2096         <rdar://problem/5609785> XSLT processor <xsl:sort> algorithm is incompatible with other
2097         browser implementations
2098
2099         Test: fast/xsl/sort-unicode.xml
2100
2101         * xml/XSLTProcessor.cpp:
2102         (WebCore::XSLTProcessor::transformToString): Set a custom sort function.
2103
2104         * xml/XSLTUnicodeSort.cpp: Added.
2105         (init_xsltTransformError):
2106         (xsltTransformError):
2107         (WebCore::xsltUnicodeSortFunction):
2108         * xml/XSLTUnicodeSort.h: Added.
2109         ICU-based implementation of xsl:sort, using an example from libxslt distribution.
2110         Only minimal coding style fixes to ease synchronization with upstream in the future.
2111
2112         * icu/unicode/ucol.h: Added.
2113         * icu/unicode/uset.h: Added.
2114         Taken from ICU 3.2
2115
2116         * WebCore.pro:
2117         * WebCore.vcproj/WebCore.vcproj:
2118         * WebCore.xcodeproj/project.pbxproj:
2119         * WebCoreSources.bkl:
2120         Added XSLTUnicodeSort.cpp.
2121
2122 2007-11-22  Alexey Proskuryakov  <ap@webkit.org>
2123
2124         Reviewed by Maciej.
2125
2126         http://bugs.webkit.org/show_bug.cgi?id=14977
2127         Hixie's DOM Core performance test shows insert >10x slower than append
2128
2129         Each invocation of Element.childNodes[n] was creating and registering a new ChildNodeList,
2130         which persisted and listened to notifications until GC.
2131
2132         A fix is to avoid registering child node lists for notifications - they don't need them, as
2133         they share a common cache in Node.
2134
2135         * dom/Node.cpp:
2136         (WebCore::Node::registerNodeList):
2137         (WebCore::Node::unregisterNodeList):
2138         (WebCore::Node::notifyLocalNodeListsAttributeChanged):
2139         (WebCore::Node::notifyLocalNodeListsChildrenChanged):
2140         * dom/NodeList.h:
2141         (WebCore::NodeList::needsNotifications):
2142
2143 2007-11-22  Dan Bernstein  <mitz@apple.com>
2144
2145         Reviewed by Antti Koivisto.
2146
2147         - fix http://bugs.webkit.org/show_bug.cgi?id=15811
2148           WebKit plug-ins can re-enter WebKit under attach()
2149           <rdar://problem/5577978>
2150
2151         Defer plug-in loading until after attach and recalcStyle using the
2152         post-attach callback mechanism. Netscape plug-ins are still loaded only
2153         after layout.
2154
2155         * dom/ContainerNode.cpp:
2156         Made NodeCallbackQueue elements retain the Node because callbacks might
2157         delete nodes that are in the callback queue.
2158         (WebCore::ContainerNode::suspendPostAttachCallbacks): Added. Needed to
2159         prevent post-attach callbacks from being dispatched under recalcStyle().
2160         (WebCore::ContainerNode::resumePostAttachCallbacks): Ditto.
2161         (WebCore::ContainerNode::dispatchPostAttachCallbacks): Factored out from
2162         attach().
2163         (WebCore::ContainerNode::attach):
2164         * dom/ContainerNode.h:
2165         * dom/Document.cpp:
2166         (WebCore::Document::recalcStyle): Added calls to
2167         suspendPostAttachCallbacks() and resumePostAttachCallbacks().
2168         * html/HTMLEmbedElement.cpp:
2169         (WebCore::HTMLEmbedElement::HTMLEmbedElement):
2170         (WebCore::HTMLEmbedElement::attach): Changed to queue the widget update
2171         for post-attach.
2172         (WebCore::HTMLEmbedElement::updateWidget): Added. Called by the
2173         post-attach callback.
2174         * html/HTMLEmbedElement.h: Added an m_needWidgetUpdate member needed to
2175         prevent a double update if another plug-in's post-attach updateWidget()
2176         triggers a layout which updates the widget before this plug-in's
2177         post-attach callback is invoked.
2178         (WebCore::HTMLEmbedElement::setNeedWidgetUpdate): Added a setter for
2179         m_needWidgetUpdate.
2180         * html/HTMLObjectElement.cpp:
2181         (WebCore::HTMLObjectElement::attach): Changed to queue the widget update
2182         for post-attach.
2183         (WebCore::HTMLObjectElement::updateWidget): Added. Called by the
2184         post-attach callback.
2185         * html/HTMLObjectElement.h:
2186         (WebCore::HTMLObjectElement::setNeedWidgetUpdate): Added a setter for
2187         m_needWidgetUpdate.
2188         * html/HTMLPlugInElement.cpp:
2189         (WebCore::HTMLPlugInElement::updateWidgetCallback): Added.
2190         * html/HTMLPlugInElement.h:
2191         (WebCore::HTMLPlugInElement::updateWidget):
2192         * rendering/RenderPartObject.cpp:
2193         (WebCore::RenderPartObject::updateWidget): Added calls to
2194         setNeedWidgetUpdate(false) so that if this method is called from
2195         FrameView::layout() during post-attach dispatch of another plug-in,
2196         it will not be called again when this plug-in's post-attach callback
2197         is dispatched.
2198         * rendering/RenderPartObject.h:
2199         (WebCore::RenderPartObject::updateWidget) Renamed argument to match
2200         the method definition.
2201
2202 2007-11-22  Timothy Hatcher  <timothy@apple.com>
2203
2204         Reviewed by Dan Bernstein.
2205
2206         Fix the Element.hasStyleClass and Element.removeStyleClass helpers
2207         to not find and replace substrings, but whole class names at the
2208         beginning or end of the string or surrounded by whitespace.
2209
2210         * page/inspector/utilities.js:
2211
2212 2007-11-22  Timothy Hatcher  <timothy@apple.com>
2213
2214         Revert part of my r27935 change that made the Tip balloons
2215         animate with CSS transitions. The balloon was only opacity 0,
2216         so it would cause its row to highlight when hovering over
2217         another row.
2218
2219         * page/inspector/NetworkPanel.js:
2220         * page/inspector/inspector.css:
2221
2222 2007-11-22  Dan Bernstein  <mitz@apple.com>
2223
2224         Reviewed by Maciej Stachowiak.
2225
2226         - fix http://bugs.webkit.org/show_bug.cgi?id=15943
2227           -webkit-transform matrix does not work
2228
2229         Test: fast/transforms/matrix-01.html
2230
2231         Parse all six matrix entries as numbers.
2232
2233         * css/CSSParser.cpp:
2234         (WebCore::TransformOperationInfo::TransformOperationInfo):
2235         (WebCore::CSSParser::parseTransform):
2236         * css/CSSStyleSelector.cpp:
2237         (WebCore::CSSStyleSelector::applyProperty):
2238         * rendering/RenderStyle.cpp:
2239         (WebCore::MatrixTransformOperation::blend):
2240         * rendering/RenderStyle.h:
2241         (WebCore::MatrixTransformOperation::MatrixTransformOperation):
2242         (WebCore::MatrixTransformOperation::apply):
2243
2244 2007-11-22  Laszlo Gombos  <laszlo.gombos@gmail.com>
2245
2246         Reviewed by Alp Toker.
2247
2248         Fix some compilation warnings.  Do not reference undefined (platform) specific type (WebCore::CachedFont::m_fontData)
2249
2250         * loader/CachedFont.cpp:
2251         (WebCore::CachedFont::~CachedFont):
2252         (WebCore::CachedFont::allReferencesRemoved):
2253
2254 2007-11-22  Alp Toker  <alp@atoker.com>
2255
2256         Reviewed by Mark Rowe.
2257
2258         GTK+ drawing fix.
2259
2260         Add a check to avoid crashing when the GraphicsContext is not
2261         associated with a GdkEventExpose. This was noticed when adding
2262         printing support but might be triggered in other situations too.
2263
2264         * platform/gtk/WidgetGtk.cpp:
2265         (WebCore::Widget::paint):
2266
2267 2007-11-22  Julien Chaffraix  <julien.chaffraix@gmail.com>
2268
2269         Reviewed by Alexey.
2270
2271         Bug 15530: XMLHttpRequest should not support certain methods
2272
2273         Test: http/tests/xmlhttprequest/xmlhttprequest-forbidden-methods-exception.html
2274
2275         * xml/XMLHttpRequest.cpp:
2276         (WebCore::XMLHttpRequest::open):
2277
2278 2007-11-22  Simon Hausmann  <hausmann@kde.org>
2279
2280         Reviewed by George.
2281
2282         For the build inside Qt include qbase.pri and don't duplicate what qbase.pri otherwise does (install targets, etc.)
2283
2284         * WebCore.pro:
2285
2286 2007-11-22  Simon Hausmann  <hausmann@kde.org>
2287
2288         Reviewed by George.
2289
2290         Don't set OBJECTS_DIR when building inside Qt
2291
2292         * WebCore.pro:
2293
2294 2007-11-22  Simon Hausmann  <hausmann@kde.org>
2295
2296         Reviewed by George.
2297
2298         Use ../generated as path for the generated sources for builds inside Qt
2299
2300         * WebCore.pro:
2301
2302 2007-11-22  Simon Hausmann  <hausmann@kde.org>
2303
2304         Reviewed by George.
2305
2306         Make the directory of where to put the generated sources configurable through the GENERATED_SOURCE_DIR variable
2307
2308         * WebCore.pro:
2309
2310 2007-11-22  Simon Hausmann  <hausmann@kde.org>
2311
2312         Reviewed by George.
2313
2314         Centralize the setup for all the extra compilers in a addExtraCompiler function.
2315         
2316         This allows adding a "generated_files" target that builds all generated files using "make generated_files".
2317         For the build inside Qt we do not generate actual rules for the extra compilers but instead
2318         do the variable substitution of compiler.output manually and add the generated sources to SOURCES.
2319
2320         * WebCore.pro:
2321
2322 2007-11-21  Timothy Hatcher  <timothy@apple.com>
2323
2324         Reviewed by Eric Seidel.
2325
2326         Show Fonts as Yellow in the network timeline.
2327
2328         * page/inspector/NetworkPanel.js:
2329         * page/inspector/inspector.css:
2330
2331 2007-11-21  Dan Bernstein  <mitz@apple.com>
2332
2333         Reviewed by Eric Seidel.
2334
2335         - fix <rdar://problem/5607037> REGRESSION (r27351): Departure date does not repaint when changed on Google Maps public transit planner (16034)
2336
2337         Test: fast/repaint/subtree-root-skipped.html
2338
2339         * page/FrameView.cpp:
2340         (WebCore::FrameViewPrivate::FrameViewPrivate): Initialize the layout
2341         root to 0.
2342         (WebCore::FrameView::layoutRoot): Changed to return a RenderObject
2343         instead of a Node.
2344         (WebCore::FrameView::layout): Changed for layout root being a renderer
2345         rather than a DOM node. Also replaced clearing the repaint rects
2346         set with asserting that it is empty if this is the top-level call to
2347         layout(). If it is not, the set may contain rects from enclosing
2348         layout() and those should not be removed.
2349         (WebCore::FrameView::scheduleRelayout): Changed for layout root being
2350         a renderer rather than a DOM node.
2351         (WebCore::isObjectAncestorContainerOf): Added this helper function that
2352         tests whether one object will be marked by calling
2353         markContainingBlocksForLayout() on the other.
2354         (WebCore::FrameView::scheduleRelayoutOfSubtree): Changed for layout
2355         root being a renderer rather than a DOM node. Changed the check if new
2356         and current layout roots are on the same path from the root to use
2357         the subgraph of the render tree defined by container()hood instead of
2358         the DOM tree and parenthood.
2359         * page/FrameView.h:
2360         * rendering/RenderBox.cpp: 
2361         (WebCore::RenderBox::calcWidth): Changed for layout root being a
2362         renderer rather than a DOM node.
2363         * rendering/RenderObject.cpp:
2364         (WebCore::RenderObject::~RenderObject): Added an assertion that the
2365         object being deleted is not currently the layout root.
2366         (WebCore::RenderObject::scheduleRelayout): Changed for layout root being
2367         a renderer rather than a DOM node.
2368
2369 2007-11-21  Mark Rowe  <mrowe@apple.com>
2370
2371         Reviewed by Eric.
2372
2373         Fix WebCore to build without warnings under GCC 4.2.
2374
2375         * Configurations/Base.xcconfig:
2376         * css/CSSRuleList.cpp:
2377         (WebCore::CSSRuleList::deleteRule):
2378         * css/CSSStyleSelector.cpp:
2379         (WebCore::CSSStyleSelector::locateSharedStyle):
2380         * html/HTMLParser.cpp:
2381         (WebCore::HTMLParser::allowNestedRedundantTag):
2382         * rendering/RenderBlock.cpp:
2383         (WebCore::RenderBlock::fillInlineSelectionGaps):
2384         (WebCore::RenderBlock::fillBlockSelectionGaps):
2385         * rendering/RenderLayer.cpp:
2386         (WebCore::RenderLayer::stackingContext):
2387         (WebCore::RenderLayer::enclosingPositionedAncestor):
2388         (WebCore::RenderLayer::transparentAncestor):
2389         * rendering/RenderStyle.cpp:
2390         (WebCore::BackgroundLayer::fillUnsetProperties):
2391         (WebCore::Transition::fillUnsetProperties):
2392         * rendering/RenderText.cpp:
2393         (WebCore::RenderText::containsOnlyWhitespace):
2394         * rendering/bidi.cpp:
2395         (WebCore::RenderBlock::determineStartPosition):
2396
2397 2007-11-21  Alp Toker  <alp@atoker.com>
2398
2399         Reviewed by Mark Rowe.
2400
2401         http://bugs.webkit.org/show_bug.cgi?id=16071
2402         Curl backend handles EINTR incorrectly
2403
2404         Defer timers during select() to avoid interruption by timer signals.
2405
2406         * platform/network/curl/ResourceHandleManager.cpp:
2407         (WebCore::ResourceHandleManager::downloadTimerCallback):
2408
2409 2007-11-21  Mark Rowe  <mrowe@apple.com>
2410
2411         Reviewed by Tim Hatcher.
2412
2413         Changes due to <rdar://problem/5602936> Need to resolve new GCC 4.2 warnings
2414
2415         Update format strings to use format specifiers that match the argument types.
2416
2417         * loader/icon/IconDatabase.cpp:
2418         (WebCore::IconDatabase::performURLImport):
2419         (WebCore::IconDatabase::writeToDatabase):
2420         * platform/mac/TextCodecMac.cpp:
2421         (WebCore::TextCodecMac::decode):
2422         * storage/Database.cpp:
2423         (WebCore::Database::deliverAllPendingCallbacks):
2424
2425 2007-11-21  Xan Lopez  <xan@gnome.org>
2426
2427         Reviewed by Alp Toker.
2428
2429         Clarify scroll event processing with a comment.
2430
2431         * platform/gtk/PlatformScrollBarGtk.cpp:
2432         (gtkScrollEventCallback):
2433
2434 2007-11-21  Timothy Hatcher  <timothy@apple.com>
2435
2436         Reviewed by Adam Roben.
2437
2438         Bug 16085: Web Inspector's Network Timeline graph code clean up and misc. fixes
2439         http://bugs.webkit.org/show_bug.cgi?id=16085
2440         
2441         Changes include:
2442         - Refactor the drawing code as nested functions instead of global functions.
2443         - Compute the segment percentages only once per call to drawSummaryGraph.
2444         - Account for percentages that rounded down to total less-than 100%.
2445         - Draw the pill shadow better using the canvas shadow drawing properties.
2446         - Removes a couple canvas context saves and restores.
2447
2448         * page/inspector/NetworkPanel.js:
2449
2450 2007-11-21  Alexey Proskuryakov  <ap@webkit.org>
2451
2452         Reviewed by Adam Roben.
2453
2454         http://bugs.webkit.org/show_bug.cgi?id=16056
2455         Unicode not being interpreted correctly in Web Inspector source view
2456
2457         Cannot be tested automatically.
2458
2459         * loader/CachedCSSStyleSheet.cpp:
2460         (WebCore::CachedCSSStyleSheet::encoding):
2461         * loader/CachedCSSStyleSheet.h:
2462         * loader/CachedResource.h:
2463         (WebCore::CachedResource::encoding):
2464         * loader/CachedScript.cpp:
2465         (WebCore::CachedScript::encoding):
2466         * loader/CachedScript.h:
2467         * loader/CachedXBLDocument.cpp:
2468         (WebCore::CachedXBLDocument::encoding):
2469         * loader/CachedXBLDocument.h:
2470         * loader/CachedXSLStyleSheet.cpp:
2471         (WebCore::CachedXSLStyleSheet::encoding):
2472         * loader/CachedXSLStyleSheet.h:
2473         Teach textual CachedResources to report their encodings.
2474
2475         * page/InspectorController.cpp:
2476         (WebCore::addSourceToFrame):
2477         (WebCore::updateResourceResponse):
2478         Use the actual encoding - the network layer has little idea about it.
2479
2480 2007-11-20  Mark Rowe  <mrowe@apple.com>
2481
2482         Reviewed by Maciej Stachowiak.
2483
2484         Fix <rdar://problem/5609579> (DOMParser().parseFromString() freezes Safari when parsing large nodes with XML entities)
2485         http://bugs.webkit.org/show_bug.cgi?id=16076
2486
2487         XMLTokenizer was calling CharacterData::appendData twice per entity in the fragment of XML being
2488         parsed (once for text before the entity, once for the entity itself).  This triggered O(n^2) copying
2489         of the CharacterData's string due to resizing.  We now prevent this happening by buffering all the
2490         content for a given Text node in the XMLTokenizer before sending it out to the node in a single go.
2491
2492         * dom/XMLTokenizer.cpp:
2493         (WebCore::XMLTokenizer::characters): Append the characters to the buffer.
2494         (WebCore::XMLTokenizer::endDocument): Ensure the buffer is flushed when the document has ended.
2495         (WebCore::endDocumentHandler):
2496         (WebCore::XMLTokenizer::enterText):
2497         (WebCore::XMLTokenizer::exitText): Append the contents of the buffer to the node.
2498         (WebCore::XMLTokenizer::initializeParserContext): Add the endDocument handler.
2499         (WebCore::parseXMLDocumentFragment): Force endDocument to be called when parsing a fragment to ensure
2500         that the buffer gets flushed to the node.
2501         * dom/XMLTokenizer.h:
2502
2503 2007-11-20  Timothy Hatcher  <timothy@apple.com>
2504
2505         Reviewed by Mark Rowe.
2506
2507         Animate the status area and tip balloons in the Web Inspector
2508         with CSS animations.
2509
2510         * page/inspector/NetworkPanel.js:
2511         * page/inspector/inspector.css:
2512         * page/inspector/inspector.js:
2513
2514 2007-11-20  Kevin Ollivier  <kevino@theolliviers.com>
2515
2516         wx build fix for Windows. Don't use WebCore/move-js-headers.sh as
2517         it indiscriminately copies any headers inside JavaScriptCore,
2518         which includes Tiger ICU headers. 
2519
2520         * webcore-base.bkl:
2521         Remove references to the WebCore/include dir generated by
2522         move-js-headers.sh, and also get headers from JavaScriptCore
2523         directly rather than from WebCore/ForwardingHeaders. 
2524
2525 2007-11-20  Alp Toker  <alp@atoker.com>
2526
2527         Reviewed by Mark Rowe.
2528
2529         Avoid pointlessly mallocing and freeing this transform matrix.
2530
2531         * platform/gtk/FontPlatformDataGtk.cpp:
2532         (WebCore::FontPlatformData::FontPlatformData):
2533
2534 2007-11-20  Naiem Shaik  <naiem.shaik@gmail.com>
2535
2536         Reviewed by Alp Toker.
2537
2538         http://bugs.webkit.org/show_bug.cgi?id=15763
2539         [GTK] Enter key does not take to the link highlighted.
2540
2541         Add missing keycode cases.
2542
2543         * platform/gtk/KeyEventGtk.cpp:
2544         (WebCore::keyIdentifierForGdkKeyCode):
2545         (WebCore::windowsKeyCodeForKeyEvent):
2546         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2547
2548 2007-11-20  Mark Rowe  <mrowe@apple.com>
2549
2550         Reviewed by Sam Weinig.
2551
2552         Fix http://bugs.webkit.org/show_bug.cgi?id=16074
2553         Bug 16074: execCommand("InsertHorizontalRule", false, "") results in id="" being inserted
2554
2555         For consistency with InsertOrderedList and InsertUnorderedList a value parameter of "" should
2556         not result in an id being set.
2557
2558         * editing/JSEditor.cpp: Don't set the id attribute if value is empty.
2559
2560 2007-11-20  Dan Bernstein  <mitz@apple.com>
2561
2562         Reviewed by Adam Roben.
2563
2564         - fix <rdar://problem/5090708> Textareas render broken-looking scrollbars when too short to show full scrollbar
2565
2566         * platform/win/PlatformScrollBar.h:
2567         * platform/win/PlatformScrollBarSafari.cpp:
2568         Added the "hit inset" constants (representing how far the track eats
2569         into the button).
2570         (WebCore::PlatformScrollbar::paint): Changed to paint the buttons and
2571         the thumb only if they should be showing.
2572         (WebCore::PlatformScrollbar::hasButtons): Added. Returns whether the
2573         arrows should be drawn.
2574         (WebCore::PlatformScrollbar::hasThumb): Added. Returns whether the thumb
2575         should be drawn.
2576         (WebCore::PlatformScrollbar::forwardButtonRect):
2577         (WebCore::PlatformScrollbar::trackRect): Changed to return the entire
2578         bounds of the scrollbar if the scrollbar has no buttons.
2579         (WebCore::PlatformScrollbar::paintTrack): Changed to paint a disabled
2580         track along the entire scrollbar if it has not buttons.
2581         (WebCore::PlatformScrollbar::hitTest): Changed to hit test only the
2582         parts that the scrollbar has in its current dimensions.
2583
2584 2007-11-20  Mark Rowe  <mrowe@apple.com>
2585
2586         Reviewed by Alp Toker.
2587
2588         * config.h: Change #if to #ifdef to silence warnings on non-Apple platforms.
2589
2590 2007-11-20  Simon Hausmann  <hausmann@kde.org>
2591
2592         Reviewed by Adam Treat <treat@kde.org>.
2593
2594         Remove static linkage of QtWebKit against the ICO image format plugin.
2595         Instead build the support for the ICO image format as a proper standalone qt image format plugin and install it.
2596
2597         * WebCore.pro:
2598         * platform/graphics/qt/ImageDecoderQt.cpp:
2599
2600 2007-11-20  David D. Kilzer  <ddkilzer@webkit.org>
2601
2602         no-svg build broken after r27278
2603         <http://bugs.webkit.org/show_bug.cgi?id=16061>
2604
2605         Reviewed by Eric.
2606
2607         * bindings/scripts/CodeGeneratorObjC.pm: Always generate DOMHTMLEmbedElementPrivate.h
2608         and DOMHTMLObjectElementPrivate.h for no-svg build.
2609
2610 2007-11-20  Adam Treat  <treat@kde.org>
2611
2612         Reviewed by Simon.
2613
2614         * Don't use so much heap memory.
2615
2616         * platform/graphics/qt/ImageDecoderQt.cpp:
2617         * platform/graphics/qt/ImageDecoderQt.h:
2618         * platform/graphics/qt/ImageSourceQt.cpp:
2619         (WebCore::ImageSource::createFrameAtIndex):
2620
2621 2007-11-20  Lars Knoll  <lars@trolltech.com>
2622
2623         Reviewed by Simon.
2624
2625         Fix text break interators.
2626         
2627         The break iterators where trying to be smart about the input
2628         string and caching their results. Unfortunately a pointer/string length
2629         comparison is not good enough in all cases (since some input is stack based
2630         temp strings). Removed the caching but at the same time started to use a more
2631         efficient constructor of QTextBoundaryFinder that doesn't need to malloc for
2632         most strings.
2633         
2634         Fixes two test cases that test "text-transform: capitalize".
2635
2636         * platform/qt/TextBreakIteratorQt.cpp:
2637         (WebCore::wordBreakIterator):
2638         (WebCore::characterBreakIterator):
2639         (WebCore::lineBreakIterator):
2640         (WebCore::sentenceBreakIterator):
2641
2642 2007-11-20  Adam Treat  <treat@kde.org>
2643
2644         Reviewed by George.
2645
2646         * Make gif animations work for instance.
2647
2648         * platform/graphics/qt/ImageDecoderQt.cpp:
2649         (WebCore::ImageDecoderQt::reset):
2650         (WebCore::ImageDecoderQt::setData):
2651         (WebCore::ImageDecoderQt::frameCount):
2652         (WebCore::ImageDecoderQt::repetitionCount):
2653         * platform/graphics/qt/ImageDecoderQt.h:
2654
2655 2007-11-20  Adam Treat  <treat@kde.org>
2656
2657         * Build in release mode
2658
2659         * platform/NotImplemented.h:
2660
2661 2007-11-20  Adam Treat  <treat@kde.org>
2662
2663         Reviewed by Simon and George.
2664
2665         * Be quiet and allow suppression of NotImplemented calls at runtime.
2666
2667         * platform/NotImplemented.h:
2668
2669 2007-11-19  Doug Turner  <dougt@meer.net>
2670
2671         Reviewed by Alp Toker.
2672
2673         http://bugs.webkit.org/show_bug.cgi?id=16054
2674         Crash when GlyphPage::fill is called with more than 256 bytes of data
2675
2676         http://bugs.webkit.org/show_bug.cgi?id=14446
2677         [GDK] Crash on http://www.wikipedia.org/
2678
2679         setGlyphDataForIndex() uses a fixed array of size 256 which we can't
2680         exceed. We need to return failure if the buffer has Unicode
2681         supplementary characters for now.
2682
2683         This strategy matches the Win port, which also doesn't support this
2684         case yet.
2685
2686         Add an assertion so nobody makes this mistake again.
2687
2688         * platform/GlyphPageTreeNode.h:
2689         (WebCore::GlyphPage::setGlyphDataForIndex):
2690         * platform/gtk/GlyphPageTreeNodeGtk.cpp:
2691         (WebCore::GlyphPage::fill):
2692
2693 2007-11-19  Doug Turner  <dougt@meer.net>
2694
2695         Reviewed by Timothy Hatcher.
2696
2697         http://bugs.webkit.org/show_bug.cgi?id=16050
2698         sqlite3_prepare16_v2 build bustage.
2699
2700         Using the correct SQLITE_VERSION_NUMBER around sqlite_prepare16_v2
2701         to fix build bustage.
2702
2703         * platform/sql/SQLiteStatement.cpp:
2704         (WebCore::SQLiteStatement::prepare):
2705
2706 2007-11-19  Mark Rowe  <mrowe@apple.com>
2707
2708         Build fix.  Don't over-qualify the constructor name.
2709
2710         * storage/DatabaseDetails.h:
2711
2712 2007-11-19  Brady Eidson <beidson@apple.com>
2713
2714         Reviewed by Maciej
2715
2716         Stub out the WebCore parts of the WebKit API
2717
2718         * WebCore.base.exp:
2719         * WebCore.xcodeproj/project.pbxproj:
2720
2721         * storage/DatabaseDetails.h: Added.  Simple container for vitals on a specific database
2722         (WebCore::DatabaseDetails::DatabaseDetails::DatabaseDetails):
2723         (WebCore::DatabaseDetails::DatabaseDetails):
2724         (WebCore::DatabaseDetails::isValid):
2725         (WebCore::DatabaseDetails::name):
2726         (WebCore::DatabaseDetails::version):
2727         (WebCore::DatabaseDetails::displayName):
2728         (WebCore::DatabaseDetails::expectedUsage):
2729         (WebCore::DatabaseDetails::currentUsage):
2730
2731         * storage/DatabaseTracker.cpp:  Added various methods for API usage
2732         (WebCore::DatabaseTracker::detailsForNameAndOrigin):
2733         (WebCore::DatabaseTracker::usageForOrigin):
2734         (WebCore::DatabaseTracker::quotaForOrigin):
2735         (WebCore::DatabaseTracker::setQuota):
2736         * storage/DatabaseTracker.h:
2737
2738 2007-11-19  Kevin Ollivier  <kevino@theolliviers.com>
2739
2740         wx port build fix.
2741
2742         * platform/graphics/wx/AffineTransformWx.cpp:
2743         (WebCore::AffineTransform::operator== ):
2744         m_transform is only available when using wxGraphicsContext.
2745
2746 2007-11-19  Alp Toker  <alp@atoker.com>
2747
2748         Reviewed by Mark Rowe.
2749
2750         GTK+ drawing fixes.
2751
2752         Add a check to avoid crashing when the GraphicsContext is not
2753         associated with a GdkDrawable. This was noticed when adding printing
2754         support but might be triggered in other situations too.
2755
2756         Do not render themes when painting is disabled. This is an
2757         optimisation for cases where GraphicsContext is used to calculate page
2758         dimensions etc. without actually rendering.
2759
2760         * platform/graphics/cairo/GraphicsContextCairo.cpp:
2761         (WebCore::GraphicsContext::gdkDrawable):
2762         * platform/gtk/RenderThemeGtk.cpp:
2763         (WebCore::paintMozWidget):
2764
2765 2007-11-13  Rahul Abrol  <ra5ul@comcast.net>
2766
2767         Reviewed by Tim Hatcher.
2768
2769         http://bugs.webkit.org/show_bug.cgi?id=15977
2770         Resizing images preference now toggles default image state.
2771
2772         * loader/ImageDocument.cpp:
2773         (WebCore::ImageDocument::ImageDocument):
2774         (WebCore::ImageDocument::createDocumentStructure):
2775         (WebCore::ImageDocument::imageChanged):
2776
2777 2007-11-19  Kevin Ollivier  <kevino@theolliviers.com>
2778
2779         Update wx port build sources with recent changes, update
2780         wx FontPlatformData to be a class (MSVC7 gets confused
2781         otherwise...) and implement its hash() method.
2782
2783         Reviewed by Adam.
2784
2785         * WebCoreSources.bkl:
2786         * platform/wx/FontPlatformData.h:
2787         (WebCore::FontPlatformData::hash):
2788
2789 2007-11-19  Julien Chaffraix  <julien.chaffraix@gmail.com>
2790
2791         Reviewed by Darin.
2792
2793         http://bugs.webkit.org/show_bug.cgi?id=12194
2794         Bug 12194: Trying to access XMLHttpRequest.responseText or responseXML when they 
2795         are not available should raise an exception
2796
2797         Tests: http/tests/xmlhttprequest/xmlhttprequest-responseText-exception.html
2798                http/tests/xmlhttprequest/xmlhttprequest-responseXML-exception.html
2799
2800         * bindings/js/JSXMLHttpRequest.cpp:
2801         (KJS::JSXMLHttpRequest::getValueProperty):
2802         * xml/XMLHttpRequest.cpp:
2803         (WebCore::XMLHttpRequest::getResponseText):
2804         (WebCore::XMLHttpRequest::getResponseXML):
2805         * xml/XMLHttpRequest.h:
2806
2807 2007-11-19  Peter Kasting  <zerodpx@gmail.com>
2808
2809         Reviewed by Darin Adler.
2810
2811         http://bugs.webkit.org/show_bug.cgi?id=15971
2812         The GIF decoder should not fail decoding if the caller asks it to
2813         decode again when no new data has arrived since the last call.
2814
2815         * platform/image-decoders/gif/GIFImageReader.cpp:
2816         (GIFImageReader::read):
2817
2818 2007-11-18  Brady Eidson <beidson@apple.com>
2819
2820         Reviewed by Eric
2821
2822         Fix a crash hashing a default SecurityOriginData object 
2823
2824         * storage/DatabaseTracker.cpp:
2825         (WebCore::SecurityOriginDataHash::hash): The default object has some default strings with NULL
2826           StringImpls - don't try to hash those!
2827
2828 2007-11-18  Timothy Hatcher  <timothy@apple.com>
2829
2830         Reviewed by Sam Weinig.
2831
2832         Bug 16043: Remove InspectorController.log now that console.log works
2833         http://bugs.webkit.org/show_bug.cgi?id=16043
2834
2835         Remove the last uses of InspectorController.log. Once use was no longer needed,
2836         checking an erro case that can't happen anymore. The other case now uses console.error.
2837
2838         * page/InspectorController.cpp: Remove the log function.
2839         (WebCore::InspectorController::windowScriptObjectAvailable): Remove the log function from
2840         InspectorController script class.
2841         * page/inspector/DocumentPanel.js: Remove a use of InspectorController.log that isn't needed.
2842         * page/inspector/Panel.js: Change InspectorController.log to console.log and early return.
2843
2844 2007-11-18  Timothy Hatcher  <timothy@apple.com>
2845
2846         Reviewed by Brady.
2847
2848         Bug 16041: REGRESSION: the Database panel in the Inspector stopped showing errors
2849         http://bugs.webkit.org/show_bug.cgi?id=16041
2850
2851         * page/inspector/DatabasePanel.js: Implement error callbacks to pass to executeSql()
2852           and transaction(). Refactored some code for the success and error callbacks to use.
2853
2854 2007-11-18  Alexey Proskuryakov  <ap@webkit.org>
2855
2856         Reviewed by Maciej.
2857
2858         <rdar://problem/5546393> Whitespace handling doesn't match HTML5.
2859
2860         HTML5 definition is the same as MSIE's, with the exception that the latter strips null
2861         characters. Firefox also treats U+0008 as whitespace, but not U+000B or U+000C.
2862
2863         Test: fast/parser/html-whitespace.html
2864
2865         * html/HTMLTokenizer.cpp:
2866         (WebCore::HTMLTokenizer::parseSpecial):
2867         (WebCore::HTMLTokenizer::parseTag):
2868         Use isASCIISpace, which matches HTML5 definition of whitespace, and also what we use to
2869         check for whitespace almost everywhere.
2870
2871 2007-11-17  Mark Rowe  <mrowe@apple.com>
2872
2873         Reviewed by Darin Adler.
2874
2875         Fix: <rdar://problem/5607032> REGRESSION: testapi exits with assertion failure in debug build
2876              <rdar://problem/5440659> JSGlobalContextCreate throws away globalObjectClass's prototype
2877              http://bugs.webkit.org/show_bug.cgi?id=16033
2878
2879         Update for changes in Interpreter method signatures.
2880
2881         * bindings/js/kjs_binding.cpp:
2882         (KJS::ScriptInterpreter::ScriptInterpreter):
2883         * bindings/js/kjs_window.cpp:
2884         (KJS::Window::clear):
2885
2886 2007-11-17  Timothy Hatcher  <timothy@apple.com>
2887
2888         Reviewed by Mark Rowe.
2889
2890         Bug 13470: i18n: The Web Inspector is not localizable
2891         http://bugs.webkit.org/show_bug.cgi?id=13470
2892
2893         Add support for localization to the Web Inspector. Clients need to
2894         implement localizedStringsURL() to return the URL of the
2895         InspectorLocalizedStrings.js that best matches the user's language.
2896
2897         * English.lproj: Added.
2898         * English.lproj/InspectorLocalizedStrings.js: Added.
2899         * WebCore.xcodeproj/project.pbxproj: Add InspectorLocalizedStrings.js.
2900         * page/InspectorClient.h: Add localizedStringsURL.
2901         * page/InspectorController.cpp: Add localizedStringsURL that calls
2902           the client. Also added a version exposed to JavaScript.
2903         * page/InspectorController.h: Add localizedStringsURL.
2904         * page/inspector/ConsolePanel.js: Call WebInspector.UIString
2905           for user visible strings.
2906         * page/inspector/DatabasePanel.js: Ditto.
2907         * page/inspector/DocumentPanel.js: Ditto.
2908         * page/inspector/ImagePanel.js: Ditto.
2909         * page/inspector/MetricsSidebarPane.js: Ditto.
2910         * page/inspector/NetworkPanel.js: Ditto.
2911         * page/inspector/Panel.js: Ditto.
2912         * page/inspector/PropertiesSidebarPane.js: Ditto.
2913         * page/inspector/Resource.js: Ditto.
2914         * page/inspector/ResourceCategory.js: Ditto.
2915         * page/inspector/SourcePanel.js: Ditto.
2916         * page/inspector/StylesSidebarPane.js: Ditto.
2917         * page/inspector/inspector.css: Use pre-wrap so database errors can use \n.
2918         * page/inspector/inspector.html: Remove some user visible strings.
2919         * page/inspector/inspector.js: Added WebInspector.UIString and call
2920           WebInspector.UIString for user visible strings. Some code needed to be 
2921           moved to WebInspector.loaded to use UIString after the localized strings
2922           get loaded.
2923         * platform/graphics/svg/SVGImageEmptyClients.h:
2924         (WebCore::SVGEmptyFrameLoaderClient::redirectDataToPlugin): Remove WebCore:: prefix.
2925         (WebCore::SVGEmptyInspectorClient::createPage): Ditto.
2926         (WebCore::SVGEmptyInspectorClient::localizedStringsURL): Add empty stub.
2927         (WebCore::SVGEmptyInspectorClient::highlight): Remove WebCore:: prefix.
2928         (WebCore::SVGEmptyInspectorClient::inspectedURLChanged): Ditto.
2929
2930 2007-11-17  Timothy Hatcher  <timothy@apple.com>
2931
2932         Reviewed by Adam.
2933
2934         Reworte String.sprintf to fix many bad bugs and to not use RegExp. Also added
2935         String.vsprintf so it can be used later for the localization function.
2936
2937         This version only supports argument reordering, precision for floats, and these
2938         format characters: d, f, s and @. Any unsupported format characters are logged
2939         and substituted like strings.
2940
2941         * page/inspector/utilities.js:
2942
2943 2007-11-17  Alexey Proskuryakov  <ap@webkit.org>
2944
2945         Windows build fix.
2946
2947         * editing/Editor.h: Made canSmartCopyOrDelete public, as Windows WebView still needs it.
2948
2949 2007-11-17  Alexey Proskuryakov  <ap@webkit.org>
2950
2951         Reviewed by Darin.
2952
2953         http://bugs.webkit.org/show_bug.cgi?id=15969
2954         Eliminate Editor::deleteRange()
2955
2956         No change in functionality.
2957
2958         * editing/CompositeEditCommand.h: Removed unimplemented deleteKeyPressed().
2959
2960         * editing/Editor.cpp:
2961         (WebCore::Editor::deleteWithDirection):
2962         (WebCore::Editor::cut):
2963         (WebCore::Editor::performDelete):
2964         * editing/Editor.h:
2965         Moved relevant Editor::deleteRange() functionality to its callers.
2966         Removed deleteSelectionWithSmartDelete(void), which was more confusing than helpful
2967         in my opinion.
2968
2969         * editing/mac/EditorMac.mm:
2970         (WebCore::initializeKillRingIfNeeded):
2971         (WebCore::Editor::addToKillRing):
2972         (WebCore::Editor::yank):
2973         (WebCore::Editor::yankAndSelect):
2974         (WebCore::Editor::setMark):
2975         (WebCore::unionDOMRanges):
2976         (WebCore::Editor::deleteToMark):
2977         (WebCore::Editor::selectToMark):
2978         (WebCore::Editor::swapWithMark):
2979         Pushed kill ring handling down from WebCore.
2980
2981         * page/mac/WebCoreFrameBridge.h:
2982         * page/mac/WebCoreFrameBridge.mm:
2983         Removed setMarkDOMRange (the corresponding getter is still needed).
2984
2985         * WebCore.base.exp: No longer need to export Editor::deleteRange() and Editor::insertTextWithoutSendingTextEvent().
2986         Export the new kill ring functions.
2987
2988 2007-11-16  Ryan Leavengood  <leavengood@gmail.com>
2989
2990         Reviewed by David Kilzer.
2991
2992         Build fix: the needed headers for POSIX file functions were not
2993         included.
2994
2995         * platform/posix/FileSystemPOSIX.cpp:
2996
2997 2007-11-16  Dan Bernstein  <mitz@apple.com>
2998
2999         Reviewed by Darin Adler.
3000
3001         - fix the common case of <http://bugs.webkit.org/show_bug.cgi?id=15994>
3002           REGRESSION: Incomplete repaint of CSS image substitution
3003
3004         Test: fast/repaint/clip-with-layout-delta.html
3005
3006         * rendering/LayoutState.cpp:
3007         (WebCore::LayoutState::LayoutState): Account for layout delta when
3008         pushing additional clip.
3009
3010 2007-11-16  Antti Koivisto  <antti@apple.com>
3011
3012         Reviewed by Adele.
3013         
3014         Seeking related fixes, updates to match the latest specification
3015         - rename loopCount of HTMLMediaElement to playCount
3016         - add explicit seeking attribute to HTMLMediaElement to get semantics right
3017         - implement the specification behavior that currentTime must immediately return seeked position in HTMLMediaElement 
3018           instead of MoviePrivateQTKit 
3019         - fix broken behavior when seeking past end of the media, add tests
3020         - replace Movie didEnd callback with broader timeChanged callback (which gets called in didEnd case too)
3021         - use setDelayCallbacks: in various MoviePrivateQTKit methods to avoid bug prone synchronous callbacks from QT, make
3022           HTMLMediaElement not depend on synchronous callbacks
3023         - do some cleanups and simplifications in MoviePrivateQTKit, get rid of m_rateBeforeSeek and m_blockStateUpdate variables
3024
3025         Tests: http/tests/media/video-seekable-stall.html
3026                media/video-seeking.html
3027                media/video-seek-past-end-paused.html
3028                media/video-seek-past-end-playing.html
3029
3030         * html/HTMLAttributeNames.in: 
3031         * html/HTMLMediaElement.cpp:
3032         (WebCore::HTMLMediaElement::HTMLMediaElement):
3033         (WebCore::HTMLMediaElement::load):
3034         (WebCore::HTMLMediaElement::movieNetworkStateChanged):
3035         (WebCore::HTMLMediaElement::setReadyState):
3036         (WebCore::HTMLMediaElement::seek):
3037         (WebCore::HTMLMediaElement::seeking):
3038         (WebCore::HTMLMediaElement::currentTime):
3039         (WebCore::HTMLMediaElement::ended):
3040         (WebCore::HTMLMediaElement::play):
3041         (WebCore::HTMLMediaElement::pause):
3042         (WebCore::HTMLMediaElement::playCount):
3043         (WebCore::HTMLMediaElement::setPlayCount):
3044         (WebCore::HTMLMediaElement::checkIfSeekNeeded):
3045         (WebCore::HTMLMediaElement::movieTimeChanged):
3046         (WebCore::HTMLMediaElement::endedPlayback):
3047         (WebCore::HTMLMediaElement::updateMovie):
3048         * html/HTMLMediaElement.h:
3049         * html/HTMLMediaElement.idl:
3050         * platform/graphics/Movie.cpp:
3051         (WebCore::Movie::timeChanged):
3052         * platform/graphics/Movie.h:
3053         (WebCore::MovieClient::movieTimeChanged):
3054         * platform/graphics/mac/MoviePrivateQTKit.h:
3055         * platform/graphics/mac/MoviePrivateQTKit.mm:
3056         (WebCore::MoviePrivate::MoviePrivate):
3057         (WebCore::MoviePrivate::load):
3058         (WebCore::MoviePrivate::play):
3059         (WebCore::MoviePrivate::pause):
3060         (WebCore::MoviePrivate::currentTime):
3061         (WebCore::MoviePrivate::seek):
3062         (WebCore::MoviePrivate::doSeek):
3063         (WebCore::MoviePrivate::cancelSeek):
3064         (WebCore::MoviePrivate::seekTimerFired):
3065         (WebCore::MoviePrivate::startCuePointTimerIfNeeded):
3066         (WebCore::MoviePrivate::paused):
3067         (WebCore::MoviePrivate::updateStates):
3068         (WebCore::MoviePrivate::timeChanged):
3069         (WebCore::MoviePrivate::didEnd):
3070
3071 2007-11-16  Anders Carlsson  <andersca@apple.com>
3072
3073         Reviewed by Adam.
3074
3075         <rdar://problem/5603832>
3076         XMLHttpRequest readyState 3 & responseText buffer issues.
3077
3078         * platform/network/cf/ResourceHandleCFNet.cpp:
3079         (WebCore::makeFinalRequest):
3080         Add new parameter which controls whether content sniffing should be turned off.
3081         
3082         (WebCore::ResourceHandle::loadResourceSynchronously):
3083         Always content sniff sync loads.
3084         
3085         * platform/network/cf/ResourceRequestCFNet.cpp:
3086         (WebCore::ResourceRequest::doUpdatePlatformRequest):
3087         If the ResourceRequest already has a backing CFURLRequest, make a copy of it. This preserves
3088         any properties set on the CFURLRequest.
3089
3090 2007-11-16  Jon Honeycutt  <jhoneycutt@apple.com>
3091
3092         Reviewed by Ollie.
3093
3094         <rdar://problem/5605175> Crash closing or leaving window with ViewPoint 
3095         Media player plugin
3096
3097         ViewPoint plugin requires that we pass a valid NPSavedData* to
3098         NPP_Destroy.
3099
3100         * plugins/win/PluginViewWin.cpp: Pass a valid NPSavedData* to
3101         NPP_Destroy. If the plugin allocates data, discard it
3102
3103 2007-11-16  Mark Rowe  <mrowe@apple.com>
3104
3105         Reviewed by Tim Hatcher.
3106
3107         Build WebCore as a sub-framework of WebKit in all configurations.
3108
3109         * Configurations/WebCore.xcconfig:
3110         * WebCore.xcodeproj/project.pbxproj:
3111
3112 2007-11-16  Doug Turner  <dougt@meer.net>
3113
3114         Reviewed by Alp.
3115
3116         http://bugs.webkit.org/show_bug.cgi?id=16018
3117         build bustage when building on debian 4.0
3118
3119         Fix build bustage on GTK+ with older versions of Pango.
3120
3121         Don't cache the return value since the docs say it can change.
3122
3123         * platform/gtk/Language.cpp:
3124         (WebCore::defaultLanguage):
3125
3126 2007-11-16  Brady Eidson  <beidson@apple.com>
3127
3128         Build fix
3129
3130         * platform/SecurityOriginData.h:
3131         (WebCore::operator!=): Whoops!
3132
3133 2007-11-16  Brady Eidson  <beidson@apple.com>
3134
3135         Reviewed by Sam
3136
3137         Further purify DatabaseTracker to use SecurityOriginData instead of "a String"
3138
3139         * WebCore.base.exp:
3140         * WebCore.xcodeproj/project.pbxproj:
3141         * WebCore.vcproj/WebCore.vcproj
3142         * WebCore.pro
3143
3144         * platform/SecurityOriginData.cpp: Added.
3145         (WebCore::SecurityOriginData::SecurityOriginData): Add a constructor that takes a "stringIdentifier"-style string,
3146           since that form is what will be stored in the Databases.db on disk
3147         (WebCore::SecurityOriginData::stringIdentifier):
3148         * platform/SecurityOriginData.h:
3149         (WebCore::SecurityOriginData::protocol):
3150         (WebCore::SecurityOriginData::host):
3151         (WebCore::SecurityOriginData::port):
3152
3153         * storage/DatabaseTracker.cpp:
3154         (WebCore::SecurityOriginDataHash::hash): Follow the pattern Darin set in FontCache.cpp to make a decent hash for 
3155           a SecurityOriginData object
3156         (WebCore::SecurityOriginDataHash::equal):
3157         (WebCore::SecurityOriginDataTraits::deletedValue): "file::1" will never exist in normal operation
3158         (WebCore::SecurityOriginDataTraits::emptyValue): "file::2" will never exist in normal operation
3159         (WebCore::DatabaseTracker::fullPathForDatabase):
3160         (WebCore::DatabaseTracker::populateOrigins):
3161         (WebCore::DatabaseTracker::origins):
3162         (WebCore::DatabaseTracker::addDatabase):
3163         * storage/DatabaseTracker.h:
3164
3165 2007-11-16  Alexey Proskuryakov  <ap@webkit.org>
3166
3167         Windows build fix.
3168
3169         * WebCore.vcproj/WebCore.vcproj: Removed VoidCallback.cpp, added JSCustomVoidCallback.{h,cpp}.
3170
3171 2007-11-16  Nikolas Zimmermann  <zimmermann@kde.org>
3172
3173         Reviewed by Eric.
3174
3175         Fixes: http://bugs.webkit.org/show_bug.cgi?id=12290
3176
3177         Implement all SVGTextContentElement DOM methods.
3178         This is the last missing SVG text feature. SVG fonts is next.
3179
3180         Added testcase: svg/custom/text-dom-01-f.svg (tests all new methods)
3181
3182         * ksvg2/svg/SVGTextContentElement.cpp:
3183         (WebCore::cummulatedCharacterRangeLength):
3184         (WebCore::SVGInlineTextBoxQueryWalker::):
3185         (WebCore::SVGInlineTextBoxQueryWalker::SVGInlineTextBoxQueryWalker):
3186         (WebCore::SVGInlineTextBoxQueryWalker::chunkPortionCallback):
3187         (WebCore::SVGInlineTextBoxQueryWalker::setQueryInputParameters):
3188         (WebCore::SVGInlineTextBoxQueryWalker::longResult):
3189         (WebCore::SVGInlineTextBoxQueryWalker::floatResult):
3190         (WebCore::SVGInlineTextBoxQueryWalker::pointResult):
3191         (WebCore::SVGInlineTextBoxQueryWalker::rectResult):
3192         (WebCore::SVGInlineTextBoxQueryWalker::stopProcessing):
3193         (WebCore::findInlineTextBoxInTextChunks):
3194         (WebCore::rootInlineBoxForTextContentElement):
3195         (WebCore::executeTextQuery):
3196         (WebCore::SVGTextContentElement::getNumberOfChars):
3197         (WebCore::SVGTextContentElement::getComputedTextLength):
3198         (WebCore::SVGTextContentElement::getSubStringLength):
3199         (WebCore::SVGTextContentElement::getStartPositionOfChar):
3200         (WebCore::SVGTextContentElement::getEndPositionOfChar):
3201         (WebCore::SVGTextContentElement::getExtentOfChar):
3202         (WebCore::SVGTextContentElement::getRotationOfChar):
3203         (WebCore::SVGTextContentElement::getCharNumAtPosition):
3204         (WebCore::SVGTextContentElement::selectSubString):
3205         * ksvg2/svg/SVGTextContentElement.h:
3206         * rendering/SVGInlineTextBox.h:
3207
3208 2007-11-15  Adele Peterson  <adele@apple.com>
3209
3210         Reviewed by Oliver.
3211
3212         Fix for <rdar://problem/5566652> CrashTracer: [USER] 3 crashes in Safari at HTMLSelectElement::menuListDefaultEventHandler (reproducible on mactc30.com)
3213
3214         Test: fast/forms/menulist-no-renderer-onmousedown.html
3215
3216         * html/HTMLSelectElement.cpp:
3217         (WebCore::HTMLSelectElement::defaultEventHandler): Nil check the renderer here.  None of the default behavior makes sense if there's no renderer.
3218         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Moved the nil check to the main defaultEventHandler.
3219
3220 2007-11-15  Antti Koivisto  <antti@apple.com>
3221
3222         Reviewed by Adele.
3223
3224         Fix <rdar://problem/5601598>
3225         The movie tag should do initialization on need and not during startup.
3226         
3227         Initialize Movie MIME type hash on demand
3228
3229         * platform/MIMETypeRegistry.cpp:
3230         (WebCore::initialiseSupportedMovieMIMETypes):
3231         (WebCore::initialiseMIMETypeRegistry):
3232         (WebCore::MIMETypeRegistry::isSupportedMovieMIMEType):
3233         (WebCore::MIMETypeRegistry::getSupportedMovieMIMETypes):
3234
3235 2007-11-15  Mark Rowe  <mrowe@apple.com>
3236
3237         Build fix for Qt on Windows.
3238
3239         * xml/XPathStep.cpp:
3240         (WebCore::XPath::Step::nodesInAxis):
3241
3242 2007-11-15  Timothy Hatcher  <timothy@apple.com>
3243
3244         Reviewed by Mark Rowe.
3245
3246         Bug 14761: Web Inspector leaks JS objects and DOM nodes
3247         http://bugs.webkit.org/show_bug.cgi?id=14761
3248
3249         * page/InspectorController.cpp:
3250         (WebCore::InspectorController::~InspectorController):
3251         Change the tear down order so that inspectorDestroyed() is called before
3252         InspectorController private data is set to Zero. The inspectorDestroyed()
3253         call ends up closing the WebView and triggering InspectorController::close()
3254         which unprotects m_scriptObject. This didn't happen when the private data
3255         was cleared before calling inspectorDestroyed().
3256
3257 2007-11-15  Mark Rowe  <mrowe@apple.com>
3258
3259         Gtk build fix.
3260
3261         * WebCore.pro:
3262
3263 2007-11-15  Alexey Proskuryakov  <ap@webkit.org>
3264
3265         Reviewed by Darin.
3266
3267         http://bugs.webkit.org/show_bug.cgi?id=15989
3268         XPath queries with predicates incorrectly retains the current node across unions
3269
3270         Test: fast/xpath/union-context-node.xhtml
3271
3272         * xml/XPathPath.cpp:
3273         (WebCore::XPath::LocationPath::evaluate): Restore context after evaluation.
3274         * xml/XPathStep.cpp:
3275         (WebCore::XPath::Step::evaluate): Do not backup context, as we can easily re-create it.
3276
3277 2007-11-15  Alexey Proskuryakov  <ap@webkit.org>
3278
3279         Reviewed by Darin.
3280
3281         http://bugs.webkit.org/show_bug.cgi?id=15988
3282         REGRESSION: XPath preceding-axis query misses nested elements
3283
3284         Test: fast/xpath/preceding-axis.xhtml
3285
3286         * xml/XPathStep.cpp:
3287         (WebCore::XPath::Step::nodesInAxis): Hopefully correct this time.
3288
3289 2007-11-15  Timothy Hatcher  <timothy@apple.com>
3290
3291         Reviewed by Mark Rowe and Sam.
3292
3293         This corrects a couple of issues in the Web Inspector where selected search results
3294         would not have the right text color when the window is inactive or the results are focused.
3295
3296         * page/inspector/inspector.css:
3297
3298 2007-11-15  Timothy Hatcher  <timothy@apple.com>
3299
3300         Reviewed by Sam.
3301
3302         Bug 16007: REGRESSION: Disclosure triangle click zone for resource categories is off by 10 pixels
3303         http://bugs.webkit.org/show_bug.cgi?id=16007
3304
3305         Makes the click width an option on TreeElement and make ResourceCategoryTreeElement
3306         a true subclass of TreeElement. The click width for ResourceCategoryTreeElement is 
3307         20 pixels, and the default is 10 pixels.
3308
3309         * page/inspector/ResourceCategory.js:
3310         * page/inspector/treeoutline.js:
3311
3312 2007-11-15  Anders Carlsson  <andersca@apple.com>
3313
3314         Reviewed by Brady.
3315
3316         Pass a VoidCallback to Database::transaction and Database::changeVersion.
3317         This is not yet hooked up to the database machinery.
3318         
3319         * WebCore.vcproj/WebCore.vcproj:
3320         * bindings/js/JSDatabaseCustom.cpp:
3321         (WebCore::JSDatabase::changeVersion):
3322         (WebCore::JSDatabase::transaction):
3323         * storage/Database.cpp:
3324         (WebCore::Database::changeVersion):
3325         (WebCore::Database::transaction):
3326         * storage/Database.h:
3327
3328 2007-11-15  Timothy Hatcher  <timothy@apple.com>
3329
3330         Reviewed by Adam.
3331
3332         Bug 16005: Hovering in the breadcrumbs causes jumpy behavior
3333         http://bugs.webkit.org/show_bug.cgi?id=16005
3334
3335         Hovering over cumbs no longer exposes new crumbs. Clicking on a collapsed
3336         crumb will expose as many hidden crumbs as possible to the user. Also crumbs
3337         that have ID attributes will compact to the ID over the tag name.
3338
3339         * page/inspector/DocumentPanel.js:
3340
3341 2007-11-15  Anders Carlsson  <andersca@apple.com>
3342
3343         Reviewed by Sam.
3344
3345         Make the VoidCallback DOM interface behave more like our other DOM interfaces.
3346         
3347         * bindings/js/JSCustomVoidCallback.h: Added.
3348         * bindings/js/JSCustomVoidCallback.cpp: Added.
3349         (WebCore::JSCustomVoidCallback::JSCustomVoidCallback):
3350         (WebCore::JSCustomVoidCallback::handleEvent):
3351         VoidCallback implementation that wraps a JS object.
3352         
3353         (WebCore::toVoidCallback):
3354         New method that creates a VoidCallback implementation given a JS object.
3355         
3356         * bindings/scripts/CodeGeneratorJS.pm:
3357         Specify that VoidCallback can fail conversion and add a custom conversion function.
3358         
3359         * html/HTMLMediaElement.cpp:
3360         (WebCore::HTMLMediaElement::movieCuePointReached):
3361         Call handleEvent on the callback.
3362         
3363         (WebCore::HTMLMediaElement::removeCuePoint):
3364         Comment out parts of this method, it has already been removed in the HTML5 spec and it relies
3365         on overriding VoidCallback equality.
3366         
3367         * html/VoidCallback.cpp: Removed.
3368         
3369         * html/VoidCallback.h:
3370         (WebCore::VoidCallback::VoidCallback):
3371         (WebCore::VoidCallback::~VoidCallback):
3372         Make this an abstract class with a pure virtual handleEvent method.
3373         
3374 2007-11-15  Adam Roben  <aroben@apple.com>
3375
3376         Fix <rdar://5485108> Type-select while a <select> menu is open doesn't work
3377
3378         There were two things broken here:
3379            - WebView now requires a WM_CHAR message to be sent before it will
3380              create a keyboard event with a charCode, but we were only sending
3381              a WM_KEYDOWN event.
3382            - The popup menu was not updating its focused index when the
3383              <select> element's selectedIndex changed.
3384
3385         Reviewed by Adele.
3386
3387         * platform/win/PopupMenuWin.cpp:
3388         (WebCore::PopupMenu::updateFromElement): Update the focused index from
3389         the client's selected index.
3390         (WebCore::PopupWndProc): When we receive a WM_CHAR message for a
3391         printable character, manufacture a WM_KEYDOWN message for it and post
3392         both that and the current WM_CHAR message to the WebView.
3393
3394 2007-11-15  Brady Eidson  <beidson@apple.com>
3395
3396         Build fix
3397
3398         * storage/DatabaseTracker.cpp:
3399         (WebCore::DatabaseTracker::fullPathForDatabase):
3400         (WebCore::DatabaseTracker::databaseNamesForOrigin):
3401
3402 2007-11-15  Brady Eidson  <beidson@apple.com>
3403
3404         Reviewed by John and Sam
3405
3406         Stubbing out everything required for a WebKit API for databases
3407
3408         Biggest change in WebCore is that we passed around SecurityOriginData as the representation
3409         of a SecurityOrigin, instead of a String or a SecurityOrigin itself (which is an opaque object
3410         that has a different purpose besides just hanging on to the data)
3411
3412         * WebCore.base.exp:
3413         * WebCore.xcodeproj/project.pbxproj:
3414
3415         * platform/SecurityOrigin.cpp:
3416         * platform/SecurityOrigin.h:
3417         * platform/SecurityOriginData.h: Added.  Simple object to encapsulate the 3
3418           pieces of data in the SecurityOrigin tuple
3419         (WebCore::SecurityOriginData::SecurityOriginData):
3420         (WebCore::SecurityOriginData::protocol):
3421         (WebCore::SecurityOriginData::host):
3422         (WebCore::SecurityOriginData::port):
3423         (WebCore::SecurityOriginData::toString): Simple concatenation of the 3 components,
3424           colon separated
3425
3426         * storage/Database.cpp:
3427         (WebCore::Database::Database): Use SecurityOriginData instead
3428
3429         * storage/DatabaseTracker.cpp:
3430         (WebCore::DatabaseTracker::fullPathForDatabase):
3431         (WebCore::DatabaseTracker::databaseNamesForOrigin):
3432         (WebCore::DatabaseTracker::deleteDatabasesWithOrigin):
3433         (WebCore::DatabaseTracker::deleteDatabase):
3434         * storage/DatabaseTracker.h:
3435
3436         * storage/DatabaseTrackerClient.h: Added.  For dispatching notifications up to WebKit
3437         (WebCore::DatabaseTrackerClient::~DatabaseTrackerClient):2007-11-15  Jon Honeycutt  <jhoneycutt@apple.com>
3438
3439 2007-11-15  Jon Honeycutt  <jhoneycutt@apple.com>
3440
3441         Reviewed by Anders.
3442
3443         NP_ASFILEONLY streams should not buffer data in m_deliveryData.
3444
3445         * plugins/win/PluginStreamWin.cpp:
3446         (WebCore::PluginStreamWin::didReceiveData):
3447
3448 2007-11-15  Justin Garcia  <justin.garcia@apple.com>
3449
3450         Reviewed by Adele Peterson.
3451
3452         <rdar://problem/5497643> Crash at Node::isDescendantOf when switching out of Edit HTML Source mode
3453         
3454         A textarea that contained the selection was removed but the selection wasn't cleared,
3455         and we'd crash in code that assumed a valid, in-document selection.
3456
3457         * editing/SelectionController.cpp:
3458         (WebCore::removingNodeRemovesPosition): Clear the selection if the node being removed is the
3459         shadowAncestorNode of the node that contains the position, not just if the node being removed
3460         contains that shadowAncestorNode.
3461
3462 2007-11-15  Nikolas Zimmermann  <zimmermann@kde.org>
3463
3464         Reviewed by Maciej.
3465
3466         Fix logic error: calculateGlyphBoundaries takes RTL text into account itself, no need to adjust offsets before.
3467
3468         * rendering/SVGInlineTextBox.cpp:
3469         (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::chunkPortionCallback):
3470         (WebCore::SVGInlineTextBoxSelectionRectWalker::chunkPortionCallback):
3471
3472 2007-11-15  Anders Carlsson  <andersca@apple.com>
3473
3474         Reviewed by Brady.
3475
3476         <rdar://problem/5562470>
3477         openDatabase does not work when the version string is empty
3478
3479         If the string is empty, pass a real empty string to sqlite3_bind_text16.
3480         
3481         * platform/sql/SQLiteStatement.cpp:
3482         (WebCore::SQLiteStatement::bindText):
3483
3484 2007-11-15  Anders Carlsson  <andersca@apple.com>
3485
3486         Reviewed by Brady.
3487
3488         Get rid of SQLiteStatement::bindText and rename bindText16 to bindText.
3489         Remove the copy parameter from bindText and bindBlob and always copy passed in data instead.
3490
3491         * loader/icon/IconDatabase.cpp:
3492         (WebCore::IconDatabase::setIconIDForPageURLInSQLDatabase):
3493         (WebCore::IconDatabase::removePageURLFromSQLDatabase):
3494         (WebCore::IconDatabase::getIconIDForIconURLFromSQLDatabase):
3495         (WebCore::IconDatabase::addIconURLToSQLDatabase):
3496         (WebCore::IconDatabase::getImageDataForIconURLFromSQLDatabase):
3497         (WebCore::IconDatabase::writeIconSnapshotToSQLDatabase):
3498         * platform/sql/SQLiteStatement.cpp:
3499         (WebCore::SQLiteStatement::prepare):
3500         * platform/sql/SQLiteStatement.h:
3501         * storage/Database.cpp:
3502         (WebCore::setTextValueInDatabase):
3503         * storage/DatabaseTracker.cpp:
3504         (WebCore::DatabaseTracker::fullPathForDatabase):
3505         (WebCore::DatabaseTracker::databaseNamesForOrigin):
3506         (WebCore::DatabaseTracker::addDatabase):
3507
3508 2007-11-14  Brady Eidson <beidson@apple.com>
3509
3510         Rubberstamped by Sam
3511
3512         * platform/SecurityOrigin.h: Lets make this an unsigned short and *not* rule out half the possible ports?
3513
3514 2007-11-14  Alexey Proskuryakov  <ap@webkit.org>
3515
3516         Reviewed by Justin Garcia.
3517
3518         http://bugs.webkit.org/show_bug.cgi?id=15781
3519         REGRESSION: Ligatures fail to form when typing in Devanagari (because WebKit can't handle
3520         a marked range that covers half of a composed character sequence)
3521
3522         Test: platform/mac/editing/input/devanagari-ligature.html
3523
3524         This fix is somewhat of a hack, as it asks editing commands to work with invalid selections.
3525         However, this is not entirely new for them, as Roman accents are typed in a similar manner.
3526
3527         In the future, we probably want to make commands work with ranges (or Positions explicitly).
3528
3529         * editing/Editor.cpp:
3530         (WebCore::Editor::selectComposition): Force selection to composition range.
3531         * editing/InsertTextCommand.cpp:
3532         (WebCore::InsertTextCommand::input): Force ending selection to inserted text range.
3533
3534 2007-11-14  Beth Dakin  <bdakin@apple.com>
3535
3536         Reviewed by Hyatt.