top level:
[WebKit-https.git] / WebCore / ChangeLog
1 2006-11-19  Simon Hausmann  <hausmann@kde.org>
2
3         Reviewed by Zack.
4
5         http://bugs.webkit.org/show_bug.cgi?id=11649
6         Fix CMake files for Qt-only build without KDE cmake files.
7         Fix Qt/KDE build for the SVG support.
8         Fix Qt-only build in the resource handler.
9
10         * CMakeLists.txt:
11         * platform/graphics/svg/qt/SVGResourceFilterQt.cpp: Added.
12         (WebCore::SVGResourceFilter::SVGResourceFilter):
13         (WebCore::SVGResourceFilter::~SVGResourceFilter):
14         (WebCore::SVGResourceFilter::prepareFilter):
15         (WebCore::SVGResourceFilter::applyFilter):
16         * platform/network/qt/ResourceHandleManager.cpp:
17         (WebCore::ResourceHandleManager::cancel):
18         (WebCore::ResourceHandleManager::slotData):
19         (WebCore::ResourceHandleManager::slotMimetype):
20         (WebCore::ResourceHandleManager::slotResult):
21         (WebCore::ResourceHandleManager::deliverJobData):
22         * platform/network/qt/ResourceHandleManager.h:
23         * platform/network/qt/ResourceHandleQt.cpp:
24         * platform/qt/CursorQt.cpp:
25         (WebCore::noDropCursor):
26         (WebCore::progressCursor):
27         (WebCore::aliasCursor):
28
29 2006-11-19  Mitz Pettel  <mitz@webkit.org>
30
31         Reviewed by Maciej.
32
33         - http://bugs.webkit.org/show_bug.cgi?id=11626
34           Automate test for rdar://problem/4056100
35
36         * manual-tests/delete-into-nested-block.html: Removed.
37
38 2006-11-19  Nikolas Zimmermann  <zimmermann@kde.org>
39
40         Reviewed by Oliver.
41
42         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11596
43
44         Split up KCanvasFilters & KCanvasFilterQuartz into several
45         new classes (SVGFEBlend, SVGFEComposite...) and move them
46         into platform/graphics/svg. This is still a temporary location,
47         as discussed with Darin; the whole platform/graphics/svg directory
48         will probably be moved into ksvg2/ in near future.
49
50         This finally removes the duplicated enumerations in the svg filter
51         classes and within kcanvas. ksvg2/ and platform/graphics/svg share
52         their enums now. As KCanvasFilters is gone now, The kcanvas/ subdirectory
53         is empty.
54
55         * CMakeLists.txt:
56         * WebCore.xcodeproj/project.pbxproj:
57         * bindings/scripts/CodeGeneratorJS.pm:
58         * kcanvas/KCanvasFilters.cpp: Removed.
59         * kcanvas/KCanvasFilters.h: Removed.
60         * kcanvas/device/KRenderingDevice.h:
61         * kcanvas/device/qt/KRenderingDeviceQt.cpp:
62         (WebCore::KRenderingDeviceQt::createFilterEffect):
63         * kcanvas/device/qt/KRenderingDeviceQt.h:
64         * kcanvas/device/quartz/KCanvasFilterQuartz.h: Removed.
65         * kcanvas/device/quartz/KCanvasFilterQuartz.mm: Removed.
66         * kcanvas/device/quartz/KCanvasItemQuartz.cpp:
67         * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
68         (WebCore::KRenderingDeviceQuartz::createResource):
69         (WebCore::KRenderingDeviceQuartz::createFilterEffect):
70         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
71         * kcanvas/device/quartz/filters/WKArithmeticFilter.cikernel: Removed.
72         * kcanvas/device/quartz/filters/WKArithmeticFilter.h: Removed.
73         * kcanvas/device/quartz/filters/WKArithmeticFilter.m: Removed.
74         * kcanvas/device/quartz/filters/WKComponentMergeFilter.cikernel: Removed.
75         * kcanvas/device/quartz/filters/WKComponentMergeFilter.h: Removed.
76         * kcanvas/device/quartz/filters/WKComponentMergeFilter.m: Removed.
77         * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.cikernel: Removed.
78         * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.h: Removed.
79         * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.m: Removed.
80         * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.cikernel: Removed.
81         * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.h: Removed.
82         * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.m: Removed.
83         * kcanvas/device/quartz/filters/WKDisplacementMapFilter.cikernel: Removed.
84         * kcanvas/device/quartz/filters/WKDisplacementMapFilter.h: Removed.
85         * kcanvas/device/quartz/filters/WKDisplacementMapFilter.m: Removed.
86         * kcanvas/device/quartz/filters/WKDistantLightFilter.cikernel: Removed.
87         * kcanvas/device/quartz/filters/WKDistantLightFilter.h: Removed.
88         * kcanvas/device/quartz/filters/WKDistantLightFilter.m: Removed.
89         * kcanvas/device/quartz/filters/WKGammaTransferFilter.cikernel: Removed.
90         * kcanvas/device/quartz/filters/WKGammaTransferFilter.h: Removed.
91         * kcanvas/device/quartz/filters/WKGammaTransferFilter.m: Removed.
92         * kcanvas/device/quartz/filters/WKIdentityTransferFilter.h: Removed.
93         * kcanvas/device/quartz/filters/WKIdentityTransferFilter.m: Removed.
94         * kcanvas/device/quartz/filters/WKLinearTransferFilter.cikernel: Removed.
95         * kcanvas/device/quartz/filters/WKLinearTransferFilter.h: Removed.
96         * kcanvas/device/quartz/filters/WKLinearTransferFilter.m: Removed.
97         * kcanvas/device/quartz/filters/WKNormalMapFilter.cikernel: Removed.
98         * kcanvas/device/quartz/filters/WKNormalMapFilter.h: Removed.
99         * kcanvas/device/quartz/filters/WKNormalMapFilter.m: Removed.
100         * kcanvas/device/quartz/filters/WKPointLightFilter.cikernel: Removed.
101         * kcanvas/device/quartz/filters/WKPointLightFilter.h: Removed.
102         * kcanvas/device/quartz/filters/WKPointLightFilter.m: Removed.
103         * kcanvas/device/quartz/filters/WKSpecularLightingFilter.cikernel: Removed.
104         * kcanvas/device/quartz/filters/WKSpecularLightingFilter.h: Removed.
105         * kcanvas/device/quartz/filters/WKSpecularLightingFilter.m: Removed.
106         * kcanvas/device/quartz/filters/WKSpotLightFilter.cikernel: Removed.
107         * kcanvas/device/quartz/filters/WKSpotLightFilter.h: Removed.
108         * kcanvas/device/quartz/filters/WKSpotLightFilter.m: Removed.
109         * kcanvas/device/quartz/filters/WKTableTransferFilter.cikernel: Removed.
110         * kcanvas/device/quartz/filters/WKTableTransferFilter.h: Removed.
111         * kcanvas/device/quartz/filters/WKTableTransferFilter.m: Removed.
112         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
113         (WebCore::SVGComponentTransferFunctionElement::transferFunction):
114         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
115         * ksvg2/svg/SVGFEBlendElement.cpp:
116         (WebCore::SVGFEBlendElement::filterEffect):
117         * ksvg2/svg/SVGFEBlendElement.h:
118         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
119         (WebCore::SVGFEColorMatrixElement::filterEffect):
120         * ksvg2/svg/SVGFEColorMatrixElement.h:
121         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
122         (WebCore::SVGFEComponentTransferElement::filterEffect):
123         * ksvg2/svg/SVGFEComponentTransferElement.h:
124         * ksvg2/svg/SVGFECompositeElement.cpp:
125         (WebCore::SVGFECompositeElement::filterEffect):
126         * ksvg2/svg/SVGFECompositeElement.h:
127         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
128         (WebCore::SVGFEDiffuseLightingElement::filterEffect):
129         (WebCore::SVGFEDiffuseLightingElement::updateLights):
130         * ksvg2/svg/SVGFEDiffuseLightingElement.h:
131         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
132         (WebCore::SVGFEDisplacementMapElement::stringToChannel):
133         (WebCore::SVGFEDisplacementMapElement::filterEffect):
134         * ksvg2/svg/SVGFEDisplacementMapElement.h:
135         * ksvg2/svg/SVGFEDistantLightElement.cpp:
136         (WebCore::SVGFEDistantLightElement::lightSource):
137         * ksvg2/svg/SVGFEDistantLightElement.h:
138         * ksvg2/svg/SVGFEFloodElement.cpp:
139         (WebCore::SVGFEFloodElement::filterEffect):
140         * ksvg2/svg/SVGFEFloodElement.h:
141         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
142         (WebCore::SVGFEGaussianBlurElement::filterEffect):
143         * ksvg2/svg/SVGFEGaussianBlurElement.h:
144         * ksvg2/svg/SVGFEImageElement.cpp:
145         (WebCore::SVGFEImageElement::filterEffect):
146         * ksvg2/svg/SVGFEImageElement.h:
147         * ksvg2/svg/SVGFELightElement.h:
148         * ksvg2/svg/SVGFEMergeElement.cpp:
149         (WebCore::SVGFEMergeElement::filterEffect):
150         * ksvg2/svg/SVGFEMergeElement.h:
151         * ksvg2/svg/SVGFEOffsetElement.cpp:
152         (WebCore::SVGFEOffsetElement::filterEffect):
153         * ksvg2/svg/SVGFEOffsetElement.h:
154         * ksvg2/svg/SVGFEPointLightElement.cpp:
155         (WebCore::SVGFEPointLightElement::lightSource):
156         * ksvg2/svg/SVGFEPointLightElement.h:
157         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
158         (WebCore::SVGFESpecularLightingElement::filterEffect):
159         (WebCore::SVGFESpecularLightingElement::updateLights):
160         * ksvg2/svg/SVGFESpecularLightingElement.h:
161         * ksvg2/svg/SVGFESpotLightElement.cpp:
162         (WebCore::SVGFESpotLightElement::lightSource):
163         * ksvg2/svg/SVGFESpotLightElement.h:
164         * ksvg2/svg/SVGFETileElement.cpp:
165         (WebCore::SVGFETileElement::filterEffect):
166         * ksvg2/svg/SVGFETileElement.h:
167         * ksvg2/svg/SVGFETurbulenceElement.cpp:
168         (WebCore::SVGFETurbulenceElement::filterEffect):
169         * ksvg2/svg/SVGFETurbulenceElement.h:
170         (WebCore::):
171         * ksvg2/svg/SVGFilterElement.cpp:
172         (WebCore::SVGFilterElement::canvasResource):
173         * ksvg2/svg/SVGFilterElement.h:
174         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
175         (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
176         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
177         * platform/graphics/FloatPoint3D.cpp: Added.
178         (WebCore::FloatPoint3D::FloatPoint3D):
179         (WebCore::FloatPoint3D::x):
180         (WebCore::FloatPoint3D::setX):
181         (WebCore::FloatPoint3D::y):
182         (WebCore::FloatPoint3D::setY):
183         (WebCore::FloatPoint3D::z):
184         (WebCore::FloatPoint3D::setZ):
185         (WebCore::FloatPoint3D::normalize):
186         * platform/graphics/FloatPoint3D.h: Added.
187         * platform/graphics/svg/SVGResourceFilter.cpp: Added.
188         (WebCore::SVGResourceFilter::clearEffects):
189         (WebCore::SVGResourceFilter::addFilterEffect):
190         (WebCore::SVGResourceFilter::filterBBoxForItemBBox):
191         (WebCore::SVGResourceFilter::externalRepresentation):
192         (WebCore::getFilterById):
193         * platform/graphics/svg/SVGResourceFilter.h: Added.
194         (WebCore::SVGResourceFilter::isFilter):
195         (WebCore::SVGResourceFilter::filterBoundingBoxMode):
196         (WebCore::SVGResourceFilter::setFilterBoundingBoxMode):
197         (WebCore::SVGResourceFilter::effectBoundingBoxMode):
198         (WebCore::SVGResourceFilter::setEffectBoundingBoxMode):
199         (WebCore::SVGResourceFilter::filterRect):
200         (WebCore::SVGResourceFilter::setFilterRect):
201         * platform/graphics/svg/SVGResourceImage.h:
202         * platform/graphics/svg/SVGResourceListener.h:
203         (SVGResourceListener::SVGResourceListener):
204         (SVGResourceListener::~SVGResourceListener):
205         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
206         * platform/graphics/svg/cg/SVGResourceFilterCg.mm: Added.
207         (WebCore::SVGResourceFilter::SVGResourceFilter):
208         (WebCore::SVGResourceFilter::~SVGResourceFilter):
209         (WebCore::SVGResourceFilter::prepareFilter):
210         (WebCore::SVGResourceFilter::applyFilter):
211         (WebCore::SVGResourceFilter::getCIFilterStack):
212         (WebCore::SVGResourceFilter::imageForName):
213         (WebCore::SVGResourceFilter::setImageForName):
214         (WebCore::SVGResourceFilter::setOutputImage):
215         (WebCore::alphaImageForImage):
216         (WebCore::SVGResourceFilter::inputImage):
217         * platform/graphics/svg/cg/SVGResourceMaskerCg.h: Removed.
218         * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
219         * platform/graphics/svg/filters/SVGDistantLightSource.h: Added.
220         (WebCore::SVGDistantLightSource::SVGDistantLightSource):
221         (WebCore::SVGDistantLightSource::azimuth):
222         (WebCore::SVGDistantLightSource::elevation):
223         * platform/graphics/svg/filters/SVGFEBlend.cpp: Added.
224         (WebCore::SVGFEBlend::in2):
225         (WebCore::SVGFEBlend::setIn2):
226         (WebCore::SVGFEBlend::blendMode):
227         (WebCore::SVGFEBlend::setBlendMode):
228         (WebCore::operator<<):
229         (WebCore::SVGFEBlend::externalRepresentation):
230         * platform/graphics/svg/filters/SVGFEBlend.h: Added.
231         (WebCore::):
232         * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: Added.
233         (WebCore::SVGFEColorMatrix::type):
234         (WebCore::SVGFEColorMatrix::setType):
235         (WebCore::SVGFEColorMatrix::values):
236         (WebCore::SVGFEColorMatrix::setValues):
237         (WebCore::operator<<):
238         (WebCore::SVGFEColorMatrix::externalRepresentation):
239         * platform/graphics/svg/filters/SVGFEColorMatrix.h: Added.
240         (WebCore::):
241         * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: Added.
242         (WebCore::SVGFEComponentTransfer::redFunction):
243         (WebCore::SVGFEComponentTransfer::setRedFunction):
244         (WebCore::SVGFEComponentTransfer::greenFunction):
245         (WebCore::SVGFEComponentTransfer::setGreenFunction):
246         (WebCore::SVGFEComponentTransfer::blueFunction):
247         (WebCore::SVGFEComponentTransfer::setBlueFunction):
248         (WebCore::SVGFEComponentTransfer::alphaFunction):
249         (WebCore::SVGFEComponentTransfer::setAlphaFunction):
250         (WebCore::operator<<):
251         (WebCore::SVGFEComponentTransfer::externalRepresentation):
252         * platform/graphics/svg/filters/SVGFEComponentTransfer.h: Added.
253         (WebCore::):
254         (WebCore::SVGComponentTransferFunction::SVGComponentTransferFunction):
255         * platform/graphics/svg/filters/SVGFEComposite.cpp: Added.
256         (WebCore::SVGFEComposite::in2):
257         (WebCore::SVGFEComposite::setIn2):
258         (WebCore::SVGFEComposite::operation):
259         (WebCore::SVGFEComposite::setOperation):
260         (WebCore::SVGFEComposite::k1):
261         (WebCore::SVGFEComposite::setK1):
262         (WebCore::SVGFEComposite::k2):
263         (WebCore::SVGFEComposite::setK2):
264         (WebCore::SVGFEComposite::k3):
265         (WebCore::SVGFEComposite::setK3):
266         (WebCore::SVGFEComposite::k4):
267         (WebCore::SVGFEComposite::setK4):
268         (WebCore::SVGFEComposite::externalRepresentation):
269         * platform/graphics/svg/filters/SVGFEComposite.h: Added.
270         (WebCore::):
271         * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: Added.
272         (WebCore::SVGFEConvolveMatrix::kernelSize):
273         (WebCore::SVGFEConvolveMatrix::setKernelSize):
274         (WebCore::SVGFEConvolveMatrix::kernel):
275         (WebCore::SVGFEConvolveMatrix::setKernel):
276         (WebCore::SVGFEConvolveMatrix::divisor):
277         (WebCore::SVGFEConvolveMatrix::setDivisor):
278         (WebCore::SVGFEConvolveMatrix::bias):
279         (WebCore::SVGFEConvolveMatrix::setBias):
280         (WebCore::SVGFEConvolveMatrix::targetOffset):
281         (WebCore::SVGFEConvolveMatrix::setTargetOffset):
282         (WebCore::SVGFEConvolveMatrix::edgeMode):
283         (WebCore::SVGFEConvolveMatrix::setEdgeMode):
284         (WebCore::SVGFEConvolveMatrix::kernelUnitLength):
285         (WebCore::SVGFEConvolveMatrix::setKernelUnitLength):
286         (WebCore::SVGFEConvolveMatrix::preserveAlpha):
287         (WebCore::SVGFEConvolveMatrix::setPreserveAlpha):
288         (WebCore::operator<<):
289         (WebCore::SVGFEConvolveMatrix::externalRepresentation):
290         * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: Added.
291         (WebCore::):
292         * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: Added.
293         (WebCore::SVGFEDiffuseLighting::SVGFEDiffuseLighting):
294         (WebCore::SVGFEDiffuseLighting::~SVGFEDiffuseLighting):
295         (WebCore::SVGFEDiffuseLighting::lightingColor):
296         (WebCore::SVGFEDiffuseLighting::setLightingColor):
297         (WebCore::SVGFEDiffuseLighting::surfaceScale):
298         (WebCore::SVGFEDiffuseLighting::setSurfaceScale):
299         (WebCore::SVGFEDiffuseLighting::diffuseConstant):
300         (WebCore::SVGFEDiffuseLighting::setDiffuseConstant):
301         (WebCore::SVGFEDiffuseLighting::kernelUnitLengthX):
302         (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthX):
303         (WebCore::SVGFEDiffuseLighting::kernelUnitLengthY):
304         (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthY):
305         (WebCore::SVGFEDiffuseLighting::lightSource):
306         (WebCore::SVGFEDiffuseLighting::setLightSource):
307         (WebCore::SVGFEDiffuseLighting::externalRepresentation):
308         * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: Added.
309         * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: Added.
310         (WebCore::SVGFEDisplacementMap::SVGFEDisplacementMap):
311         (WebCore::SVGFEDisplacementMap::in2):
312         (WebCore::SVGFEDisplacementMap::setIn2):
313         (WebCore::SVGFEDisplacementMap::xChannelSelector):
314         (WebCore::SVGFEDisplacementMap::setXChannelSelector):
315         (WebCore::SVGFEDisplacementMap::yChannelSelector):
316         (WebCore::SVGFEDisplacementMap::setYChannelSelector):
317         (WebCore::SVGFEDisplacementMap::scale):
318         (WebCore::SVGFEDisplacementMap::setScale):
319         (WebCore::operator<<):
320         (WebCore::SVGFEDisplacementMap::externalRepresentation):
321         * platform/graphics/svg/filters/SVGFEDisplacementMap.h: Added.
322         (WebCore::):
323         * platform/graphics/svg/filters/SVGFEFlood.cpp: Added.
324         (WebCore::SVGFEFlood::floodColor):
325         (WebCore::SVGFEFlood::setFloodColor):
326         (WebCore::SVGFEFlood::floodOpacity):
327         (WebCore::SVGFEFlood::setFloodOpacity):
328         (WebCore::SVGFEFlood::externalRepresentation):
329         * platform/graphics/svg/filters/SVGFEFlood.h: Added.
330         * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: Added.
331         (WebCore::SVGFEGaussianBlur::stdDeviationX):
332         (WebCore::SVGFEGaussianBlur::setStdDeviationX):
333         (WebCore::SVGFEGaussianBlur::stdDeviationY):
334         (WebCore::SVGFEGaussianBlur::setStdDeviationY):
335         (WebCore::SVGFEGaussianBlur::externalRepresentation):
336         * platform/graphics/svg/filters/SVGFEGaussianBlur.h: Added.
337         * platform/graphics/svg/filters/SVGFEImage.cpp: Added.
338         (WebCore::SVGFEImage::SVGFEImage):
339         (WebCore::SVGFEImage::~SVGFEImage):
340         (WebCore::SVGFEImage::cachedImage):
341         (WebCore::SVGFEImage::setCachedImage):
342         (WebCore::SVGFEImage::externalRepresentation):
343         * platform/graphics/svg/filters/SVGFEImage.h: Added.
344         * platform/graphics/svg/filters/SVGFEMerge.cpp: Added.
345         (WebCore::SVGFEMerge::mergeInputs):
346         (WebCore::SVGFEMerge::setMergeInputs):
347         (WebCore::SVGFEMerge::externalRepresentation):
348         * platform/graphics/svg/filters/SVGFEMerge.h: Added.
349         * platform/graphics/svg/filters/SVGFEMorphology.cpp: Added.
350         (WebCore::SVGFEMorphology::morphologyOperator):
351         (WebCore::SVGFEMorphology::setMorphologyOperator):
352         (WebCore::SVGFEMorphology::radiusX):
353         (WebCore::SVGFEMorphology::setRadiusX):
354         (WebCore::SVGFEMorphology::radiusY):
355         (WebCore::SVGFEMorphology::setRadiusY):
356         (WebCore::operator<<):
357         (WebCore::SVGFEMorphology::externalRepresentation):
358         * platform/graphics/svg/filters/SVGFEMorphology.h: Added.
359         (WebCore::):
360         * platform/graphics/svg/filters/SVGFEOffset.cpp: Added.
361         (WebCore::SVGFEOffset::dx):
362         (WebCore::SVGFEOffset::setDx):
363         (WebCore::SVGFEOffset::dy):
364         (WebCore::SVGFEOffset::setDy):
365         (WebCore::SVGFEOffset::externalRepresentation):
366         * platform/graphics/svg/filters/SVGFEOffset.h: Added.
367         * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: Added.
368         (WebCore::SVGFESpecularLighting::SVGFESpecularLighting):
369         (WebCore::SVGFESpecularLighting::~SVGFESpecularLighting):
370         (WebCore::SVGFESpecularLighting::lightingColor):
371         (WebCore::SVGFESpecularLighting::setLightingColor):
372         (WebCore::SVGFESpecularLighting::surfaceScale):
373         (WebCore::SVGFESpecularLighting::setSurfaceScale):
374         (WebCore::SVGFESpecularLighting::specularConstant):
375         (WebCore::SVGFESpecularLighting::setSpecularConstant):
376         (WebCore::SVGFESpecularLighting::specularExponent):
377         (WebCore::SVGFESpecularLighting::setSpecularExponent):
378         (WebCore::SVGFESpecularLighting::kernelUnitLengthX):
379         (WebCore::SVGFESpecularLighting::setKernelUnitLengthX):
380         (WebCore::SVGFESpecularLighting::kernelUnitLengthY):
381         (WebCore::SVGFESpecularLighting::setKernelUnitLengthY):
382         (WebCore::SVGFESpecularLighting::lightSource):
383         (WebCore::SVGFESpecularLighting::setLightSource):
384         (WebCore::SVGFESpecularLighting::externalRepresentation):
385         * platform/graphics/svg/filters/SVGFESpecularLighting.h: Added.
386         * platform/graphics/svg/filters/SVGFETile.h: Added.
387         * platform/graphics/svg/filters/SVGFETurbulence.cpp: Added.
388         (WebCore::SVGFETurbulence::type):
389         (WebCore::SVGFETurbulence::setType):
390         (WebCore::SVGFETurbulence::baseFrequencyY):
391         (WebCore::SVGFETurbulence::setBaseFrequencyY):
392         (WebCore::SVGFETurbulence::baseFrequencyX):
393         (WebCore::SVGFETurbulence::setBaseFrequencyX):
394         (WebCore::SVGFETurbulence::seed):
395         (WebCore::SVGFETurbulence::setSeed):
396         (WebCore::SVGFETurbulence::numOctaves):
397         (WebCore::SVGFETurbulence::setNumOctaves):
398         (WebCore::SVGFETurbulence::stitchTiles):
399         (WebCore::SVGFETurbulence::setStitchTiles):
400         (WebCore::operator<<):
401         (WebCore::SVGFETurbulence::externalRepresentation):
402         * platform/graphics/svg/filters/SVGFETurbulence.h: Added.
403         (WebCore::):
404         * platform/graphics/svg/filters/SVGFilterEffect.cpp: Added.
405         (WebCore::SVGFilterEffect::subRegion):
406         (WebCore::SVGFilterEffect::setSubRegion):
407         (WebCore::SVGFilterEffect::in):
408         (WebCore::SVGFilterEffect::setIn):
409         (WebCore::SVGFilterEffect::result):
410         (WebCore::SVGFilterEffect::setResult):
411         (WebCore::SVGFilterEffect::externalRepresentation):
412         (WebCore::operator<<):
413         * platform/graphics/svg/filters/SVGFilterEffect.h: Added.
414         (WebCore::):
415         (WebCore::SVGFilterEffect::SVGFilterEffect):
416         (WebCore::SVGFilterEffect::~SVGFilterEffect):
417         (WebCore::SVGFilterEffect::effectType):
418         * platform/graphics/svg/filters/SVGLightSource.cpp: Added.
419         (WebCore::operator<<):
420         (WebCore::SVGPointLightSource::externalRepresentation):
421         (WebCore::SVGSpotLightSource::externalRepresentation):
422         (WebCore::SVGDistantLightSource::externalRepresentation):
423         * platform/graphics/svg/filters/SVGLightSource.h: Added.
424         (WebCore::):
425         (WebCore::SVGLightSource::SVGLightSource):
426         (WebCore::SVGLightSource::~SVGLightSource):
427         (WebCore::SVGLightSource::type):
428         * platform/graphics/svg/filters/SVGPointLightSource.h: Added.
429         (WebCore::SVGPointLightSource::SVGPointLightSource):
430         (WebCore::SVGPointLightSource::position):
431         * platform/graphics/svg/filters/SVGSpotLightSource.h: Added.
432         (WebCore::SVGSpotLightSource::SVGSpotLightSource):
433         (WebCore::SVGSpotLightSource::position):
434         (WebCore::SVGSpotLightSource::direction):
435         (WebCore::SVGSpotLightSource::specularExponent):
436         (WebCore::SVGSpotLightSource::limitingConeAngle):
437         * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: Added.
438         (WebCore::SVGFEBlend::getCIFilter):
439         * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: Added.
440         (WebCore::SVGFEColorMatrix::getCIFilter):
441         * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: Added.
442         (WebCore::genImageFromTable):
443         (WebCore::setParametersForComponentFunc):
444         (WebCore::filterForComponentFunc):
445         (WebCore::getFilterForFunc):
446         (WebCore::SVGFEComponentTransfer::getFunctionFilter):
447         (WebCore::SVGFEComponentTransfer::getCIFilter):
448         * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: Added.
449         (WebCore::SVGFEComposite::getCIFilter):
450         * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: Added.
451         (WebCore::SVGFEDiffuseLighting::getCIFilter):
452         * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: Added.
453         (WebCore::SVGFEDisplacementMap::getCIFilter):
454         * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: Added.
455         (WebCore::SVGFEFlood::getCIFilter):
456         * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: Added.
457         (WebCore::SVGFEGaussianBlur::getCIFilter):
458         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: Added.
459         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: Added.
460         (WebCore::getVectorForChannel):
461         (WebCore::ciColor):
462         (WebCore::getPointLightVectors):
463         (WebCore::getLightVectors):
464         (WebCore::getNormalMap):
465         * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: Added.
466         (WebCore::SVGFEImage::getCIFilter):
467         * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: Added.
468         (WebCore::SVGFEMerge::getCIFilter):
469         * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: Added.
470         (WebCore::SVGFEOffset::getCIFilter):
471         * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: Added.
472         (WebCore::SVGFESpecularLighting::getCIFilter):
473         * platform/graphics/svg/filters/cg/SVGFETileCg.mm: Added.
474         (WebCore::SVGFETile::getCIFilter):
475         * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: Added.
476         (WebCore::SVGFilterEffect::getCIFilter):
477         * rendering/RenderPath.cpp:
478         (WebCore::RenderPath::getAbsoluteRepaintRect):
479         (WebCore::RenderPath::paint):
480         * rendering/RenderSVGContainer.cpp:
481         (WebCore::RenderSVGContainer::paint):
482         (WebCore::RenderSVGContainer::getAbsoluteRepaintRect):
483         * rendering/RenderSVGImage.cpp:
484         (WebCore::RenderSVGImage::paint):
485         (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
486         * rendering/SVGInlineFlowBox.cpp:
487         (WebCore::paintSVGInlineFlow):
488
489 2006-11-18  Rob Buis  <buis@kde.org>
490
491         Reviewed by Maciej.
492
493         http://bugs.webkit.org/show_bug.cgi?id=11321
494         Element with :target pseudo-class still matched after fragment identifier change
495
496         Make sure the page does a style recalculation and possible rendering
497         when navigating back from a page with an anchor to a page without
498         an anchor.
499
500         * loader/FrameLoader.cpp:
501         (WebCore::FrameLoader::gotoAnchor):
502
503 2006-11-18  Don Gibson  <dgibson77@gmail.com>
504
505         Reviewed by Sam Weinig.
506
507         http://bugs.webkit.org/show_bug.cgi?id=11634:
508         Fix segfault on startup for Windows build.  Also fix segfault when
509         typing in a URL.
510         Clean up some of the style of the patch that landed in r17816.
511
512         * WebCore.vcproj/WebCore/WebCore.vcproj:
513         * bridge/win/ChromeClientWin.h:
514         (WebCore::ChromeClientWin::~ChromeClientWin):
515         (WebCore::ChromeClientWin::ref):
516         (WebCore::ChromeClientWin::deref):
517         * bridge/win/ContextMenuClientWin.h:
518         (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
519         (WebCore::ContextMenuClientWin::ref):
520         (WebCore::ContextMenuClientWin::deref):
521         * bridge/win/EditorClientWin.h:
522         (WebCore::EditorClientWin::~EditorClientWin):
523         (WebCore::EditorClientWin::ref):
524         (WebCore::EditorClientWin::deref):
525         * bridge/win/FrameWin.cpp:
526         (WebCore::FrameWin::FrameWin):
527         * bridge/win/FrameWin.h:
528         (WebCore::Win):
529         * loader/win/FrameLoaderClientWin.h: Added.
530         (WebCore::FrameLoaderClientWin::~FrameLoaderClientWin):
531         (WebCore::FrameLoaderClientWin::ref):
532         (WebCore::FrameLoaderClientWin::deref):
533         * platform/win/TemporaryLinkStubs.cpp:
534         (WebCore::ChromeClientWin::createWindow):
535         (WebCore::ChromeClientWin::createModalDialog):
536         (WebCore::EditorClientWin::selectWordBeforeMenuEvent):
537         (WebCore::EditorClientWin::isEditable):
538         (WebCore::EditorClientWin::shouldBeginEditing):
539         (WebCore::EditorClientWin::shouldEndEditing):
540         (WebCore::EditorClientWin::shouldApplyStyle):
541         (WebCore::EditorClientWin::didBeginEditing):
542         (WebCore::EditorClientWin::respondToChangedContents):
543         (WebCore::EditorClientWin::didEndEditing):
544         (WebCore::EditorClientWin::registerCommandForUndo):
545         (WebCore::EditorClientWin::registerCommandForRedo):
546         (WebCore::EditorClientWin::clearUndoRedoOperations):
547         (WebCore::EditorClientWin::canUndo):
548         (WebCore::EditorClientWin::canRedo):
549         (WebCore::EditorClientWin::undo):
550         (WebCore::EditorClientWin::redo):
551         (WebCore::FrameLoader::createFrame):
552         (WebCore::FrameLoader::createPlugin):
553         (WebCore::FrameLoaderClientWin::hasWebView):
554         (WebCore::FrameLoaderClientWin::hasFrameView):
555         (WebCore::FrameLoaderClientWin::hasBackForwardList):
556         (WebCore::FrameLoaderClientWin::resetBackForwardList):
557         (WebCore::FrameLoaderClientWin::provisionalItemIsTarget):
558         (WebCore::FrameLoaderClientWin::loadProvisionalItemFromPageCache):
559         (WebCore::FrameLoaderClientWin::invalidateCurrentItemPageCache):
560         (WebCore::FrameLoaderClientWin::privateBrowsingEnabled):
561         (WebCore::FrameLoaderClientWin::makeDocumentView):
562         (WebCore::FrameLoaderClientWin::makeRepresentation):
563         (WebCore::FrameLoaderClientWin::forceLayout):
564         (WebCore::FrameLoaderClientWin::forceLayoutForNonHTML):
565         (WebCore::FrameLoaderClientWin::updateHistoryForCommit):
566         (WebCore::FrameLoaderClientWin::updateHistoryForBackForwardNavigation):
567         (WebCore::FrameLoaderClientWin::updateHistoryForReload):
568         (WebCore::FrameLoaderClientWin::updateHistoryForStandardLoad):
569         (WebCore::FrameLoaderClientWin::updateHistoryForInternalLoad):
570         (WebCore::FrameLoaderClientWin::updateHistoryAfterClientRedirect):
571         (WebCore::FrameLoaderClientWin::setCopiesOnScroll):
572         (WebCore::FrameLoaderClientWin::tokenForLoadErrorReset):
573         (WebCore::FrameLoaderClientWin::resetAfterLoadError):
574         (WebCore::FrameLoaderClientWin::doNotResetAfterLoadError):
575         (WebCore::FrameLoaderClientWin::willCloseDocument):
576         (WebCore::FrameLoaderClientWin::detachedFromParent1):
577         (WebCore::FrameLoaderClientWin::detachedFromParent2):
578         (WebCore::FrameLoaderClientWin::detachedFromParent3):
579         (WebCore::FrameLoaderClientWin::detachedFromParent4):
580         (WebCore::FrameLoaderClientWin::loadedFromPageCache):
581         (WebCore::FrameLoaderClientWin::dispatchDidHandleOnloadEvents):
582         (WebCore::FrameLoaderClientWin::dispatchDidReceiveServerRedirectForProvisionalLoad):
583         (WebCore::FrameLoaderClientWin::dispatchDidCancelClientRedirect):
584         (WebCore::FrameLoaderClientWin::dispatchWillPerformClientRedirect):
585         (WebCore::FrameLoaderClientWin::dispatchDidChangeLocationWithinPage):
586         (WebCore::FrameLoaderClientWin::dispatchWillClose):
587         (WebCore::FrameLoaderClientWin::dispatchDidReceiveIcon):
588         (WebCore::FrameLoaderClientWin::dispatchDidStartProvisionalLoad):
589         (WebCore::FrameLoaderClientWin::dispatchDidReceiveTitle):
590         (WebCore::FrameLoaderClientWin::dispatchDidCommitLoad):
591         (WebCore::FrameLoaderClientWin::dispatchDidFinishLoad):
592         (WebCore::FrameLoaderClientWin::dispatchDidFirstLayout):
593         (WebCore::FrameLoaderClientWin::dispatchShow):
594         (WebCore::FrameLoaderClientWin::cancelPolicyCheck):
595         (WebCore::FrameLoaderClientWin::dispatchWillSubmitForm):
596         (WebCore::FrameLoaderClientWin::dispatchDidLoadMainResource):
597         (WebCore::FrameLoaderClientWin::clearLoadingFromPageCache):
598         (WebCore::FrameLoaderClientWin::isLoadingFromPageCache):
599         (WebCore::FrameLoaderClientWin::revertToProvisionalState):
600         (WebCore::FrameLoaderClientWin::clearUnarchivingState):
601         (WebCore::FrameLoaderClientWin::progressStarted):
602         (WebCore::FrameLoaderClientWin::progressCompleted):
603         (WebCore::FrameLoaderClientWin::setMainFrameDocumentReady):
604         (WebCore::FrameLoaderClientWin::willChangeTitle):
605         (WebCore::FrameLoaderClientWin::didChangeTitle):
606         (WebCore::FrameLoaderClientWin::finishedLoading):
607         (WebCore::FrameLoaderClientWin::finalSetupForReplace):
608         (WebCore::FrameLoaderClientWin::setDefersLoading):
609         (WebCore::FrameLoaderClientWin::isArchiveLoadPending):
610         (WebCore::FrameLoaderClientWin::cancelPendingArchiveLoad):
611         (WebCore::FrameLoaderClientWin::clearArchivedResources):
612         (WebCore::FrameLoaderClientWin::canShowMIMEType):
613         (WebCore::FrameLoaderClientWin::representationExistsForURLScheme):
614         (WebCore::FrameLoaderClientWin::generatedMIMETypeForURLScheme):
615         (WebCore::FrameLoaderClientWin::frameLoadCompleted):
616         (WebCore::FrameLoaderClientWin::restoreScrollPositionAndViewState):
617         (WebCore::FrameLoaderClientWin::provisionalLoadStarted):
618         (WebCore::FrameLoaderClientWin::shouldTreatURLAsSameAsCurrent):
619         (WebCore::FrameLoaderClientWin::addHistoryItemForFragmentScroll):
620         (WebCore::FrameLoaderClientWin::didFinishLoad):
621         (WebCore::FrameLoaderClientWin::prepareForDataSourceReplacement):
622         (WebCore::FrameLoaderClientWin::setTitle):
623         (WebCore::FrameLoaderClientWin::userAgent):
624
625 2006-11-18  Alexey Proskuryakov  <ap@webkit.org>
626
627         Reviewed by Rob (yay!).
628
629         http://bugs.webkit.org/show_bug.cgi?id=11640
630         XMLHttpRequest produces undefined:undefined HTTP authentication
631
632         * bindings/js/JSXMLHttpRequest.cpp:
633         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
634         Treat undefined credentials as missing ones.
635
636 2006-11-17  Lars Naesbye Christensen  <larsnaesbye@stud.ku.dk>
637
638         Reviewed by Tim H.
639
640         http://bugs.webkit.org/show_bug.cgi?id=11638
641         [CSS 2.1+3] add support for alias, progress, no-drop and not-allowed cursor styles
642
643         * Resources/aliasCursor.png: Added.
644         * Resources/noDropCursor.png: Added.
645         * Resources/progressCursor.png: Added.
646         * WebCore.xcodeproj/project.pbxproj:
647         * css/CSSComputedStyleDeclaration.cpp:
648         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
649         * css/CSSValueKeywords.in:
650         * manual-tests/cursor.html:
651         * page/EventHandler.cpp:
652         (WebCore::selectCursor):
653         * platform/Cursor.h:
654         * platform/mac/CursorMac.mm:
655         (WebCore::handCursor):
656         (WebCore::aliasCursor):
657         (WebCore::progressCursor):
658         (WebCore::noDropCursor):
659         * rendering/RenderStyle.h:
660         (WebCore::):
661
662 2006-11-18  Steve Falkenburg  <sfalken@apple.com>
663
664         Reviewed by Adam.
665
666         Properly adjust CFAbsoluteTime to time_t to fix date calculations.
667         
668         Compare lastModified w/ MAX_TIME_T when setting last modified date
669         instead of comparing expiration against MAX_TIME_T.
670
671         * platform/network/cf/ResourceResponseCFNet.cpp:
672         (WebCore::getResourceResponse): Add kCFAbsoluteTimeIntervalSince1970 in assignment
673
674 2006-11-17  Anders Carlsson  <acarlsson@apple.com>
675
676         Reviewed by Geoff.
677
678         More conversions from DeprecatedValueList to Vector and HashSet.
679         
680         * css/CSSValueList.cpp:
681         (WebCore::CSSValueList::~CSSValueList):
682         (WebCore::CSSValueList::append):
683         (WebCore::CSSValueList::cssText):
684         * css/CSSValueList.h:
685         (WebCore::CSSValueList::length):
686         (WebCore::CSSValueList::item):
687         * dom/Document.cpp:
688         (WebCore::Document::attachNodeIterator):
689         (WebCore::Document::notifyBeforeNodeRemoval):
690         * dom/Document.h:
691         * ksvg2/svg/SVGGradientElement.cpp:
692         (WebCore::SVGGradientElement::notifyAttributeChange):
693         * ksvg2/svg/SVGPatternElement.cpp:
694         (WebCore::SVGPatternElement::notifyClientsToRepaint):
695         * platform/graphics/svg/SVGResource.cpp:
696         (WebCore::SVGResource::invalidate):
697         (WebCore::SVGResource::addClient):
698         * platform/graphics/svg/SVGResource.h:
699         * rendering/RenderBlock.h:
700
701 === Safari-521.31 ===
702
703 2006-11-17  Timothy Hatcher  <timothy@apple.com>
704
705         Reviewed by Harrison.
706
707         <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
708
709         Disable the delete button controller when cloning nodes, Mail does this before saving a draft.
710
711         * dom/ContainerNode.cpp:
712         (WebCore::ContainerNode::cloneChildNodes):
713         * editing/markup.cpp:
714         (WebCore::createFragmentFromNodes):
715
716 2006-11-17  Justin Garcia  <justin.garcia@apple.com>
717
718         Reviewed by harrison
719         
720         <rdar://problem/4237467> REGRESSION: Pasting word from quoted text quotes the destination
721         <rdar://problem/4017358> quoted text is wrong color, when pasted as quotation
722
723         * editing/ReplaceSelectionCommand.cpp:
724         (WebCore::isMailPasteAsQuotationNode): Added.  Checks for the node
725         that Mail wraps around an incoming fragment when it wants it to be pasted
726         with quoting (no merging should be done).
727         (WebCore::ReplaceSelectionCommand::removeNodePreservingChildren): Added
728         this virtual method in order to adjust the nodes that ReplaceSelectionCommand
729         tracks.
730         (WebCore::ReplaceSelectionCommand::shouldMerge): Don't merge from content
731         inside a Mail Paste as Quotation node.  Allow merging from Mail blockquotes.
732         (WebCore::ReplaceSelectionCommand::removeRedundantStyles): When pasting into
733         a Mail blockquote, we ignore the parts of the source document's default style
734         that are overriden by styles from the Mail blockquote.  This is necessary in order
735         for text that's black (because black is the source document's default font color) 
736         to appear blue/green/whatever when it's pasted into a Mail blockquote.
737         (WebCore::ReplaceSelectionCommand::handlePasteAsQuotationNode): Turn an inserted
738         Mail Paste as Quotation node into a normal Mail blockquote.  This will prevent
739         a copied blockquote that was inserted into the document using Paste as Quotation
740         from triggering Paste as Quotation behavior when it's pasted.
741         (WebCore::ReplaceSelectionCommand::doApply): Call the new/altered methods.
742         * editing/ReplaceSelectionCommand.h:
743         * editing/markup.cpp:
744         (WebCore::styleFromMatchedRulesForElement): Put this code into a subroutine.
745         (WebCore::removeEnclosingMailBlockquoteStyle): Added.
746         (WebCore::startMarkup): When wrapping text nodes in style spans, leave out
747         styles that Mail blockquotes contribute, so that Mail blockquote styles can
748         be differentiated from styles that the user has applied.  When creating markup
749         for elements, do the same thing.
750         (WebCore::createMarkup): Call the new subroutine.
751
752 2006-11-17  Rob Buis  <buis@kde.org>
753
754         Reviewed by Mitz.
755
756         http://bugs.webkit.org/show_bug.cgi?id=11635
757         Bug 11635: Fix potential issue with non-xslt build
758
759         Fix the issue and do style guideline corrections.
760
761         * dom/ProcessingInstruction.cpp:
762         (WebCore::ProcessingInstruction::checkStyleSheet):
763         (WebCore::ProcessingInstruction::sheetLoaded):
764         (WebCore::ProcessingInstruction::setCSSStyleSheet):
765         (WebCore::ProcessingInstruction::setXSLStyleSheet):
766         (WebCore::ProcessingInstruction::parseStyleSheet):
767
768 2006-11-17  Timothy Hatcher  <timothy@apple.com>
769
770         Reviewed by Harrison.
771
772         <rdar://problem/4843131> text entry is slow inside element that has the deletion rectangle around it
773
774         Only disable/enable the delete button inside applyCommand() to prevent slowing down typing.
775         This reintroduces <rdar://problem/4796657> table deletion outline does not always follow the table size as editing occurs inside
776
777         * editing/EditCommand.cpp:
778         (WebCore::EditCommand::apply):
779         (WebCore::EditCommand::unapply):
780         (WebCore::EditCommand::reapply):
781         (WebCore::applyCommand):
782         * editing/EditCommand.h:
783
784 2006-11-17  Zack Rusin  <zack@kde.org>
785
786         Reviewed by Mitz. Landed by Niko.
787
788         Making platform Qt/KDE compile and work after
789         the latest api changes. Reported as
790         http://bugs.webkit.org/show_bug.cgi?id=11617
791
792         * CMakeLists.txt:
793         * page/qt/EventHandlerQt.cpp: Added.
794         (WebCore::isKeyboardOptionTab):
795         (WebCore::EventHandler::tabsToLinks):
796         (WebCore::EventHandler::tabsToAllControls):
797         (WebCore::EventHandler::freeClipboard):
798         (WebCore::EventHandler::focusDocumentView):
799         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
800         (WebCore::EventHandler::passMouseDownEventToWidget):
801         (WebCore::EventHandler::lastEventIsMouseUp):
802         (WebCore::EventHandler::dragHysteresisExceeded):
803         (WebCore::EventHandler::handleDrag):
804         (WebCore::EventHandler::handleMouseUp):
805         (WebCore::EventHandler::passSubframeEventToSubframe):
806         (WebCore::EventHandler::passWheelEventToWidget):
807         (WebCore::EventHandler::shouldDragAutoNode):
808         (WebCore::EventHandler::dispatchDragSrcEvent):
809         (WebCore::EventHandler::passMousePressEventToSubframe):
810         (WebCore::EventHandler::passMouseMoveEventToSubframe):
811         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
812         (WebCore::EventHandler::passWheelEventToSubframe):
813         (WebCore::EventHandler::passMousePressEventToScrollbar):
814         * platform/ContextMenu.h:
815         * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
816         (WebCore::SVGResourceClipper::applyClip):
817         * platform/qt/ContextMenuClientQt.cpp: Added.
818         (WebCore::ContextMenuClientQt::addCustomContextMenuItems):
819         (WebCore::ContextMenuClientQt::ref):
820         (WebCore::ContextMenuClientQt::deref):
821         * platform/qt/ContextMenuClientQt.h: Added.
822         * platform/qt/ContextMenuQt.cpp: Added.
823         (WebCore::ContextMenu::appendItem):
824         (WebCore::ContextMenu::itemCount):
825         (WebCore::ContextMenu::insertItem):
826         (WebCore::ContextMenu::setPlatformMenuDescription):
827         * platform/qt/EditorClientQt.cpp:
828         (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
829         (WebCore::EditorClientQt::isEditable):
830         (WebCore::EditorClientQt::registerCommandForUndo):
831         (WebCore::EditorClientQt::registerCommandForRedo):
832         (WebCore::EditorClientQt::clearUndoRedoOperations):
833         (WebCore::EditorClientQt::canUndo):
834         (WebCore::EditorClientQt::canRedo):
835         (WebCore::EditorClientQt::undo):
836         (WebCore::EditorClientQt::redo):
837         * platform/qt/EditorClientQt.h:
838         * platform/qt/ScrollViewCanvasQt.cpp:
839         (WebCore::ScrollViewCanvasQt::mousePressEvent):
840         * platform/qt/TemporaryLinkStubs.cpp:
841         (FrameView::updateBorder):
842
843 2006-11-17  David Harrison  <harrison@apple.com>
844
845         Reviewed by Adele.
846
847         <rdar://problem/4799899> Frame::revealSelection() only scrolls the startContainer's layer
848
849         Replace an assert with a fixme that refers to this bug.
850         
851         * page/Frame.cpp:
852         (WebCore::Frame::revealSelection):
853
854 2006-11-16  Rob Buis  <buis@kde.org>
855
856         Reviewed and landed by Brady
857
858         Fixes http://bugs.webkit.org/show_bug.cgi?id=11590 -
859         REGRESSION (r17726-r17742): Wikipedia page intermittently loads but doesn't render
860         Fix the regression by setting m_loadCompleted correctly.
861
862         * css/CSSStyleSheet.cpp:
863         (WebCore::CSSStyleSheet::checkLoaded):
864         * dom/Node.h:
865         (WebCore::Node::sheetLoaded):
866         * dom/ProcessingInstruction.cpp:
867         (WebCore::ProcessingInstruction::sheetLoaded):
868         * dom/ProcessingInstruction.h:
869         * html/HTMLLinkElement.cpp:
870         (WebCore::HTMLLinkElement::sheetLoaded):
871         * html/HTMLLinkElement.h:
872         * html/HTMLStyleElement.cpp:
873         (WebCore::HTMLStyleElement::sheetLoaded):
874         * html/HTMLStyleElement.h:
875
876 2006-11-16  David Harrison  <harrison@apple.com>
877
878         Reviewed by Beth.
879
880         <rdar://problem/4056100> REGRESSION (Tiger): Deleting top part of reply email leaves fails to clear text at end of message
881
882         The problem was triggered by the fact that the parent div was changing both
883         in position and in height. The renderer normally bifurcates its logic for
884         x-position changes vs height changes.
885
886         Call repaintDuringLayoutIfMoved() with old rect (incl. width and height) instead of just the old position.
887
888         Test added:
889         * manual-tests/delete-into-nested-block.html
890         
891         * rendering/RenderBlock.cpp:
892         (WebCore::RenderBlock::layoutBlockChildren):
893         (WebCore::RenderBlock::positionNewFloats):
894         * rendering/RenderBox.cpp:
895         (WebCore::RenderBox::repaintDuringLayoutIfMoved):
896         * rendering/RenderBox.h:
897         * rendering/RenderFlexibleBox.cpp:
898         (WebCore::RenderFlexibleBox::placeChild):
899         * rendering/RenderObject.cpp:
900         (WebCore::RenderObject::repaintDuringLayoutIfMoved):
901         * rendering/RenderObject.h:
902         * rendering/RenderTableSection.cpp:
903         (WebCore::RenderTableSection::layoutRows):
904
905 2006-11-16  Adele Peterson  <adele@apple.com>
906
907         Reviewed by Adam.
908
909         Slider cleanup.  Let the theme set the size of the slider thumb.
910
911         * rendering/RenderSlider.cpp:
912         (WebCore::RenderSlider::setStyle): Moving the thumb's appearance adjustment to createThumbStyle.
913         (WebCore::RenderSlider::createThumbStyle):
914         (WebCore::RenderSlider::layout): Let the theme set the size of the thumb.
915         * rendering/RenderTheme.cpp: (WebCore::RenderTheme::adjustSliderThumbSize):  Added.
916         * rendering/RenderTheme.h: ditto.
917         * rendering/RenderThemeMac.h: ditto.
918         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::adjustSliderThumbSize): ditto.
919
920 2006-11-15  Anders Carlsson  <acarlsson@apple.com>
921
922         Reviewed by Darin.
923
924         Use Vector instead of DeprecatedValueList in a few places.
925         
926         * bindings/js/kjs_dom.cpp:
927         (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
928         (KJS::DOMNamedNodesCollection::lengthGetter):
929         (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
930         * bindings/js/kjs_dom.h:
931         * bindings/js/kjs_html.cpp:
932         (KJS::JSHTMLDocument::namedItemGetter):
933         (KJS::JSHTMLElement::classInfo):
934         (KJS::JSHTMLElement::accessors):
935         (KJS::JSHTMLCollection::getNamedItems):
936         * bindings/objc/DOM.mm:
937         * bridge/mac/FrameMac.mm:
938         (WebCore::FrameMac::dashboardRegionsDictionary):
939         * css/CSSStyleDeclaration.cpp:
940         (WebCore::CSSStyleDeclaration::diff):
941         * html/HTMLCollection.cpp:
942         (WebCore::HTMLCollection::namedItems):
943         * html/HTMLCollection.h:
944         * kcanvas/KCanvasFilters.cpp:
945         (WebCore::KCanvasFilter::externalRepresentation):
946         * kcanvas/KCanvasFilters.h:
947         (WebCore::KCanvasFEColorMatrix::values):
948         (WebCore::KCanvasFEColorMatrix::setValues):
949         (WebCore::KCanvasFEConvolveMatrix::kernel):
950         (WebCore::KCanvasFEConvolveMatrix::setKernel):
951         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
952         (WebCore::KCanvasFilterQuartz::getCIFilterStack):
953         (WebCore::KCanvasFEColorMatrixQuartz::getCIFilter):
954         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
955         (WebCore::SVGFEColorMatrixElement::filterEffect):
956         * platform/graphics/svg/SVGResourceClipper.h:
957         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
958         (WebCore::SVGResourceClipper::applyClip):
959         * platform/network/FormData.h:
960         * rendering/RenderPath.h:
961         * rendering/SVGRenderTreeAsText.h:
962         (WebCore::operator<<):
963
964 2006-11-16  Anders Carlsson  <acarlsson@apple.com>
965
966         Reviewed by Tim.
967
968         * editing/markup.cpp:
969         (WebCore::createMarkup):
970         Add null-checks for the frame, it might not exist for all documents.
971         
972 2006-11-16  Don Gibson  <dgibson77@gmail.com>
973
974         Reviewed and landed by ap.
975
976         http://bugs.webkit.org/show_bug.cgi?id=11509:
977         Windows build bustage.
978
979         Also reorganizes WebCore.vcproj to add files whose absence wasn't
980         causing compile errors, but which should have been there, and to
981         make the include directory ordering (and contents) sane.
982         Also reorganizes TemporaryLinkStubs.cpp to put headers and
983         function groups in alphabetical order, and ensure that all functions
984         in the file call notImplemented().
985
986         * WebCore.vcproj/WebCore/WebCore.vcproj:
987         * bridge/win/ChromeClientWin.h:
988         (WebCore::ChromeClientWin::ref):
989         (WebCore::ChromeClientWin::deref):
990         * bridge/win/ContextMenuClientWin.h: Added.
991         (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
992         (WebCore::ContextMenuClientWin::ref):
993         (WebCore::ContextMenuClientWin::deref):
994         * bridge/win/EditorClientWin.h:
995         * bridge/win/FrameWin.cpp:
996         (WebCore::FrameWin::~FrameWin):
997         (WebCore::FrameWin::keyPress):
998         * bridge/win/FrameWin.h:
999         * bridge/win/PageWin.cpp: Removed.
1000         * editing/EditCommand.h:
1001         * loader/FormState.h:
1002         * loader/FrameLoader.h:
1003         * page/EventHandler.cpp:
1004         * platform/MimeTypeRegistry.cpp:
1005         (WebCore::initialiseSupportedImageMIMETypes):
1006         * platform/graphics/win/ImageWin.cpp:
1007         * platform/network/ResourceError.cpp:
1008         * platform/network/ResourceHandleInternal.h:
1009         * platform/network/win/ResourceHandleWin.cpp:
1010         (WebCore::ResourceHandle::onHandleCreated):
1011         (WebCore::ResourceHandle::onRequestRedirected):
1012         (WebCore::ResourceHandle::start):
1013         (WebCore::ResourceHandle::cancel):
1014         * platform/win/ScreenWin.cpp:
1015         (WebCore::monitorInfo):
1016         (WebCore::screenRect):
1017         (WebCore::screenAvailableRect):
1018         (WebCore::screenDepth):
1019         * platform/win/SoundWin.cpp: Added.
1020         (WebCore::systemBeep):
1021         * platform/win/TemporaryLinkStubs.cpp:
1022         (WebCore::CacheObjectExpiresTime):
1023         (WebCore::CheckCacheObjectStatus):
1024         (WebCore::CheckIfReloading):
1025         (WebCore::defaultLanguage):
1026         (WebCore::fileButtonChooseFileLabel):
1027         (WebCore::fileButtonNoFileSelectedLabel):
1028         (WebCore::findNextSentenceFromIndex):
1029         (WebCore::findNextWordFromIndex):
1030         (WebCore::findSentenceBoundary):
1031         (WebCore::findWordBoundary):
1032         (WebCore::focusRingColor):
1033         (WebCore::historyContains):
1034         (WebCore::inputElementAltText):
1035         (WebCore::IsResponseURLEqualToURL):
1036         (WebCore::cellCursor):
1037         (WebCore::contextMenuCursor):
1038         (WebCore::moveCursor):
1039         (WebCore::verticalTextCursor):
1040         (WebCore::refreshPlugins):
1041         (WebCore::resetButtonDefaultLabel):
1042         (WebCore::ResponseIsMultipart):
1043         (WebCore::ResponseMIMEType):
1044         (WebCore::ResponseURL):
1045         (WebCore::screenDepthPerComponent):
1046         (WebCore::screenIsMonochrome):
1047         (WebCore::searchableIndexIntroduction):
1048         (WebCore::ServeSynchronousRequest):
1049         (WebCore::setFocusRingColorChangeFunction):
1050         (WebCore::submitButtonDefaultLabel):
1051         (WebCore::CachedResource::setPlatformResponse):
1052         (WebCore::CachedResource::setAllData):
1053         (WebCore::ChromeClientWin::setWindowRect):
1054         (WebCore::ChromeClientWin::windowRect):
1055         (WebCore::ChromeClientWin::pageRect):
1056         (WebCore::ChromeClientWin::scaleFactor):
1057         (WebCore::ChromeClientWin::focus):
1058         (WebCore::ChromeClientWin::unfocus):
1059         (WebCore::ChromeClientWin::createWindow):
1060         (WebCore::ChromeClientWin::createModalDialog):
1061         (WebCore::ChromeClientWin::show):
1062         (WebCore::ChromeClientWin::canRunModal):
1063         (WebCore::ChromeClientWin::runModal):
1064         (WebCore::ChromeClientWin::setToolbarsVisible):
1065         (WebCore::ChromeClientWin::toolbarsVisible):
1066         (WebCore::ChromeClientWin::setStatusbarVisible):
1067         (WebCore::ChromeClientWin::statusbarVisible):
1068         (WebCore::ChromeClientWin::setScrollbarsVisible):
1069         (WebCore::ChromeClientWin::scrollbarsVisible):
1070         (WebCore::ChromeClientWin::setMenubarVisible):
1071         (WebCore::ChromeClientWin::menubarVisible):
1072         (WebCore::ChromeClientWin::setResizable):
1073         (WebCore::ContextMenu::appendItem):
1074         (WebCore::ContextMenuClientWin::addCustomContextMenuItems):
1075         (WebCore::DocumentLoader::setFrame):
1076         (WebCore::DocumentLoader::frameLoader):
1077         (WebCore::DocumentLoader::URL):
1078         (WebCore::DocumentLoader::isStopping):
1079         (WebCore::DocumentLoader::stopLoading):
1080         (WebCore::DocumentLoader::setLoading):
1081         (WebCore::DocumentLoader::updateLoading):
1082         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
1083         (WebCore::DocumentLoader::isLoadingInAPISense):
1084         (WebCore::DocumentLoader::stopRecordingResponses):
1085         (WebCore::EditorClientWin::shouldDeleteRange):
1086         (WebCore::EditorClientWin::shouldShowDeleteInterface):
1087         (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
1088         (WebCore::EditorClientWin::isGrammarCheckingEnabled):
1089         (WebCore::EditorClientWin::spellCheckerDocumentTag):
1090         (WebCore::EventHandler::focusDocumentView):
1091         (WebCore::EventHandler::handleDrag):
1092         (WebCore::EventHandler::handleMouseUp):
1093         (WebCore::EventHandler::lastEventIsMouseUp):
1094         (WebCore::EventHandler::passMousePressEventToSubframe):
1095         (WebCore::EventHandler::passMouseMoveEventToSubframe):
1096         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
1097         (WebCore::EventHandler::passWheelEventToSubframe):
1098         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
1099         (WebCore::EventHandler::passMousePressEventToScrollbar):
1100         (WebCore::EventHandler::shouldDragAutoNode):
1101         (WebCore::EventHandler::tabsToAllControls):
1102         (WebCore::EventHandler::tabsToLinks):
1103         (WebCore::Frame::setNeedsReapplyStyles):
1104         (WebCore::FrameLoader::didFirstLayout):
1105         (WebCore::FrameLoader::overrideMediaType):
1106         (WebCore::FrameLoader::createJavaAppletWidget):
1107         (WebCore::FrameLoader::redirectDataToPlugin):
1108         (WebCore::FrameLoader::getHistoryLength):
1109         (WebCore::FrameLoader::setTitle):
1110         (WebCore::FrameLoader::referrer):
1111         (WebCore::FrameLoader::saveDocumentState):
1112         (WebCore::FrameLoader::restoreDocumentState):
1113         (WebCore::FrameLoader::goBackOrForward):
1114         (WebCore::FrameLoader::historyURL):
1115         (WebCore::FrameLoader::urlSelected):
1116         (WebCore::FrameLoader::createFrame):
1117         (WebCore::FrameLoader::submitForm):
1118         (WebCore::FrameLoader::partClearedInBegin):
1119         (WebCore::FrameLoader::originalRequestURL):
1120         (WebCore::FrameLoader::canGoBackOrForward):
1121         (WebCore::FrameLoader::objectContentType):
1122         (WebCore::FrameLoader::createPlugin):
1123         (WebCore::FrameLoader::detachFromParent):
1124         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
1125         (WebCore::FrameView::updateBorder):
1126         (WebCore::FrameWin::bindingRootObject):
1127         (WebCore::FrameWin::canPaste):
1128         (WebCore::FrameWin::issuePasteAndMatchStyleCommand):
1129         (WebCore::FrameWin::markedTextRange):
1130         (WebCore::FrameWin::passSubframeEventToSubframe):
1131         (WebCore::FrameWin::lastEventIsMouseUp):
1132         (WebCore::FrameWin::addMessageToConsole):
1133         (WebCore::FrameWin::shouldChangeSelection):
1134         (WebCore::FrameWin::respondToChangedSelection):
1135         (WebCore::FrameWin::clearUndoRedoOperations):
1136         (WebCore::FrameWin::markMisspellingsInAdjacentWords):
1137         (WebCore::FrameWin::respondToChangedContents):
1138         (WebCore::GraphicsContext::addRoundedRectClip):
1139         (WebCore::GraphicsContext::setShadow):
1140         (WebCore::GraphicsContext::clearShadow):
1141         (WebCore::GraphicsContext::beginTransparencyLayer):
1142         (WebCore::GraphicsContext::endTransparencyLayer):
1143         (WebCore::GraphicsContext::clearRect):
1144         (WebCore::GraphicsContext::strokeRect):
1145         (WebCore::GraphicsContext::setLineWidth):
1146         (WebCore::GraphicsContext::setLineCap):
1147         (WebCore::GraphicsContext::setLineJoin):
1148         (WebCore::GraphicsContext::setMiterLimit):
1149         (WebCore::GraphicsContext::setAlpha):
1150         (WebCore::GraphicsContext::setCompositeOperation):
1151         (WebCore::GraphicsContext::clip):
1152         (WebCore::GraphicsContext::rotate):
1153         (WebCore::GraphicsContext::scale):
1154         (WebCore::Icon::Icon):
1155         (WebCore::Icon::~Icon):
1156         (WebCore::Icon::newIconForFile):
1157         (WebCore::Icon::paint):
1158         (WebCore::IconDatabase::isIconExpiredForIconURL):
1159         (WebCore::IconDatabase::hasEntryForIconURL):
1160         (WebCore::IconDatabase::sharedIconDatabase):
1161         (WebCore::IconDatabase::setIconURLForPageURL):
1162         (WebCore::IconDatabase::setIconDataForIconURL):
1163         (WebCore::Image::drawTiled):
1164         (WebCore::Image::getHBITMAP):
1165         (WebCore::Path::Path):
1166         (WebCore::Path::~Path):
1167         (WebCore::Path::contains):
1168         (WebCore::Path::translate):
1169         (WebCore::Path::boundingRect):
1170         (WebCore::Path::operator=):
1171         (WebCore::Path::clear):
1172         (WebCore::Path::moveTo):
1173         (WebCore::Path::addLineTo):
1174         (WebCore::Path::addQuadCurveTo):
1175         (WebCore::Path::addBezierCurveTo):
1176         (WebCore::Path::addArcTo):
1177         (WebCore::Path::closeSubpath):
1178         (WebCore::Path::addArc):
1179         (WebCore::Path::addRect):
1180         (WebCore::Path::addEllipse):
1181         (WebCore::Path::transform):
1182         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1183         (WebCore::PlatformScrollbar::PlatformScrollbar):
1184         (WebCore::PlatformScrollbar::~PlatformScrollbar):
1185         (WebCore::PlatformScrollbar::width):
1186         (WebCore::PlatformScrollbar::height):
1187         (WebCore::PlatformScrollbar::setEnabled):
1188         (WebCore::PlatformScrollbar::paint):
1189         (WebCore::PlatformScrollbar::updateThumbPosition):
1190         (WebCore::PlatformScrollbar::updateThumbProportion):
1191         (WebCore::PlatformScrollbar::setRect):
1192         (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
1193         (WebCore::PlugInInfoStore::pluginCount):
1194         (WebCore::PlugInInfoStore::supportsMIMEType):
1195         (WebCore::PolicyCheck::PolicyCheck):
1196         (WebCore::PolicyCheck::clear):
1197         (WebCore::PolicyCheck::clearRequest):
1198         (WebCore::PolicyCheck::call):
1199         (WebCore::RenderThemeWin::systemFont):
1200         (WebCore::RenderThemeWin::paintMenuList):
1201         (WebCore::RenderThemeWin::adjustMenuListStyle):
1202         (WebCore::ResourceLoader::cancel):
1203         (WebCore::ScrollView::addChild):
1204         (WebCore::ScrollView::removeChild):
1205         (WebCore::ScrollView::scrollPointRecursively):
1206         (WebCore::ScrollView::inWindow):
1207         (WebCore::ScrollView::paint):
1208         (WebCore::ScrollView::wheelEvent):
1209         (WebCore::ScrollView::themeChanged):
1210         (WebCore::ScrollView::convertChildToSelf):
1211         (WebCore::ScrollView::convertSelfToChild):
1212         (WebCore::ScrollView::geometryChanged):
1213         (WebCore::ScrollView::scrollbarUnderMouse):
1214         (WebCore::ScrollView::setFrameGeometry):
1215         (WebCore::ScrollView::windowResizerRect):
1216         (WebCore::ScrollView::resizerOverlapsContent):
1217         (WebCore::TextField::selectAll):
1218         (WebCore::TextField::addSearchResult):
1219         (WebCore::TextField::selectionStart):
1220         (WebCore::TextField::hasSelectedText):
1221         (WebCore::TextField::selectedText):
1222         (WebCore::TextField::setAutoSaveName):
1223         (WebCore::TextField::checksDescendantsForFocus):
1224         (WebCore::TextField::setSelection):
1225         (WebCore::TextField::setMaxResults):
1226         (WebCore::TextField::edited):
1227         (WebCore::TextField::focusPolicy):
1228         (WebCore::TextField::TextField):
1229         (WebCore::TextField::~TextField):
1230         (WebCore::TextField::setFont):
1231         (WebCore::TextField::setAlignment):
1232         (WebCore::TextField::setWritingDirection):
1233         (WebCore::TextField::maxLength):
1234         (WebCore::TextField::setMaxLength):
1235         (WebCore::TextField::text):
1236         (WebCore::TextField::setText):
1237         (WebCore::TextField::cursorPosition):
1238         (WebCore::TextField::setCursorPosition):
1239         (WebCore::TextField::setEdited):
1240         (WebCore::TextField::setReadOnly):
1241         (WebCore::TextField::setPlaceholderString):
1242         (WebCore::TextField::setColors):
1243         (WebCore::TextField::sizeForCharacterWidth):
1244         (WebCore::TextField::baselinePosition):
1245         (WebCore::TextField::setLiveSearch):
1246         (WebCore::Widget::enableFlushDrawing):
1247         (WebCore::Widget::isEnabled):
1248         (WebCore::Widget::focusPolicy):
1249         (WebCore::Widget::disableFlushDrawing):
1250         (WebCore::Widget::removeFromParent):
1251         (WebCore::Widget::lockDrawingFocus):
1252         (WebCore::Widget::unlockDrawingFocus):
1253         (WebCore::Widget::capturingMouse):
1254         (WebCore::Widget::setCapturingMouse):
1255         (WebCore::Widget::capturingTarget):
1256         (WebCore::Widget::capturingChild):
1257         (WebCore::Widget::setCapturingChild):
1258         (WebCore::Widget::convertChildToSelf):
1259         (WebCore::Widget::convertSelfToChild):
1260         (WebCore::Widget::setParent):
1261         (WebCore::Widget::parent):
1262         (WebCore::Widget::setEnabled):
1263         (WebCore::Widget::paint):
1264         (WebCore::Widget::setIsSelected):
1265         (WebCore::Widget::invalidate):
1266         (WebCore::Widget::invalidateRect):
1267         * platform/win/WidgetWin.cpp:
1268         (WebCore::Widget::clearFocus):
1269
1270 2006-11-16  Timothy Hatcher  <timothy@apple.com>
1271
1272         Reviewed by Adam.
1273
1274         <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
1275
1276         * editing/markup.cpp:
1277         (WebCore::createMarkup): disable the delete button so it's elements are not serialized into the markup
1278
1279 2006-11-16  George Staikos  <staikos@kde.org>
1280
1281         Rubberstamped by Maciej.
1282
1283         Making the code valgrind clean.
1284
1285         * rendering/RenderTableCell.cpp: initialize variable m_widthChanged
1286         (WebCore::RenderTableCell::RenderTableCell):
1287         * rendering/RenderTableCell.h: remove unused variable nWrap
1288
1289 2006-11-16  David Harrison  <harrison@apple.com>
1290
1291         Reviewed by Darin and Tim.
1292
1293         <rdar://problem/4799949> REGRESSION: Crash in FrameMac::eventMayStartDrag() by clicking on a page
1294         
1295         * page/mac/EventHandlerMac.mm:
1296         (WebCore::EventHandler::eventMayStartDrag):
1297         Add nil check of hitTest's result.innerNode().
1298
1299 2006-11-16  Timothy Hatcher  <timothy@apple.com>
1300
1301         Reviewed by Darin.
1302
1303         <rdar://problem/4836897> Deletion rectangle disappears when multiple list items are selected
1304
1305         Consider the container of the selection range for deletion before asking enclosingNodeOfType().
1306
1307         * editing/DeleteButtonController.cpp:
1308         (WebCore::enclosingDeletableElement):
1309
1310 2006-11-16  Rob Buis  <buis@kde.org>
1311
1312         Reviewed by hyatt.
1313
1314         Removal of unused m_styleElement.
1315
1316         * dom/Node.cpp:
1317         (WebCore::Node::Node):
1318         (WebCore::Node::dump):
1319         * dom/Node.h:
1320         (WebCore::Node::isLink): should be styleElement, a bug?
1321
1322 2006-11-15  Adam Roben  <aroben@apple.com>
1323
1324         Build fix.
1325
1326         Rename the items in the ContextMenuAction enum so that they don't
1327         conflict with WebKit names.
1328
1329         * WebCore.xcodeproj/project.pbxproj:
1330         * platform/ContextMenu.cpp:
1331         (WebCore::ContextMenu::populate):
1332         * platform/ContextMenu.h:
1333         (WebCore::):
1334         (WebCore::ContextMenuItem::ContextMenuItem):
1335
1336 2006-11-15  Adam Roben  <aroben@apple.com>
1337
1338         Reviewed by Anders.
1339
1340         Change m_contextMenu to an OwnPtr.
1341
1342         * WebCore.xcodeproj/project.pbxproj:
1343         * page/ContextMenuController.cpp:
1344         (WebCore::ContextMenuController::handleContextMenuEvent):
1345         * page/ContextMenuController.h:
1346
1347 2006-11-15  Adam Roben  <aroben@apple.com>
1348
1349         Reviewed by Anders.
1350
1351         Add new ContextMenuController and ContextMenuClient classes, and move
1352         context menu responsibilities from Chrome and ChromeClient to them.
1353
1354         * WebCore.exp:
1355         * WebCore.xcodeproj/project.pbxproj: Add new files to project, and
1356         alphabetize some others.
1357         * page/Chrome.cpp: Remove context menu-related code.
1358         * page/Chrome.h: Ditto.
1359         * page/ChromeClient.h:
1360         * page/ContextMenuClient.h: Added.
1361         * page/ContextMenuController.cpp: Added.
1362         (WebCore::ContextMenuController::ContextMenuController):
1363         (WebCore::ContextMenuController::~ContextMenuController):
1364         (WebCore::ContextMenuController::handleContextMenuEvent):
1365         (WebCore::ContextMenuController::contextMenuActionSelected):
1366         * page/ContextMenuController.h: Added.
1367         (WebCore::ContextMenuController::client):
1368         * page/Page.cpp: Every Page now has a ContextMenuController.
1369         (WebCore::Page::Page):
1370         * page/Page.h: Made m_dragCaretController and m_chrome objects instead
1371         of pointers to objects.
1372         (WebCore::Page::contextMenuController):
1373         * platform/ContextMenu.cpp:
1374         (WebCore::ContextMenu::populate): Removed the call to Chrome to ask the
1375         delegate to add its menu items, and moved the code from the static
1376         addDefaultItems function into this method.
1377         * platform/ContextMenu.h:
1378         (WebCore::ContextMenu::show): Added an empty method body since this
1379         method is now called from ContextMenuController (although no one calls
1380         into ContextMenuController yet, so it's OK for this to be empty).
1381         (WebCore::ContextMenu::hide): Ditto.
1382
1383 2006-11-15  Anders Carlsson  <acarlsson@apple.com>
1384
1385         Reviewed by Darin.
1386
1387         Add null checks on the node filter, they can be null if no filter was passed to the respective
1388         create functions.
1389         
1390         * bindings/js/JSNodeIteratorCustom.cpp:
1391         (WebCore::JSNodeIterator::mark):
1392         * bindings/js/JSTreeWalkerCustom.cpp:
1393         (WebCore::JSTreeWalker::mark):
1394
1395 2006-11-15  Oliver Hunt  <oliver@apple.com>
1396
1397         Reviewed by Anders.
1398
1399         Allow <embed> and <object> tags to include non-plugin
1400         content when plugins are disabled
1401
1402         Fixes <rdar://problems/4839488>
1403
1404         * html/HTMLEmbedElement.cpp:
1405         (WebCore::HTMLEmbedElement::rendererIsNeeded):
1406         * html/HTMLObjectElement.cpp:
1407         (WebCore::HTMLObjectElement::rendererIsNeeded):
1408         * loader/FrameLoader.cpp:
1409         (WebCore::FrameLoader::requestObject):
1410
1411 2006-11-15  Adele Peterson  <adele@apple.com>
1412
1413         Build fix.  Another type problem that I don't see locally.
1414
1415         * rendering/RenderSlider.cpp: (WebCore::RenderSlider::setPositionFromValue):
1416
1417 2006-11-15  Adele Peterson  <adele@apple.com>
1418
1419         Reviewed by Adam.
1420
1421         Adding MathExtras header.
1422
1423         * rendering/RenderSlider.cpp:
1424
1425 2006-11-15  Timothy Hatcher  <timothy@apple.com>
1426
1427         Reviewed by Harrison.
1428
1429         <rdar://problem/4832894> Crash deleting an element inside a list while deletion rectangle is visible (compareBoundaryPoints)
1430
1431         * Disable and hide the deletion UI for each editing command. This prevents editing commands from being affected
1432           by the deletion UI elements we insert. The deletion UI is then shown after the editing commands are completely done.
1433
1434         * Multiple calls to DeleteButtonController's disable() needed to be paired with the same number of enable() calls before
1435           the deletion UI is enabled again. This allows for nested editing commands to be called without thrashing the deletion UI.
1436
1437         * Make sure the the renderers are currently reflecting the latest style changes, so call updateLayoutIgnorePendingStylesheets().
1438
1439         * editing/DeleteButtonController.cpp:
1440         (WebCore::DeleteButtonController::DeleteButtonController):
1441         (WebCore::isDeletableElement):
1442         (WebCore::DeleteButtonController::respondToChangedSelection): check the enabled state
1443         (WebCore::DeleteButtonController::respondToChangedContents): check the enabled state
1444         (WebCore::DeleteButtonController::show): call isDeletableElement() to make sure the element is allowed
1445         (WebCore::DeleteButtonController::deleteTarget): check the enabled state
1446         * editing/DeleteButtonController.h:
1447         (WebCore::DeleteButtonController::disable):
1448         (WebCore::DeleteButtonController::enable):
1449         (WebCore::DeleteButtonController::enabled):
1450         * editing/EditCommand.cpp:
1451         (WebCore::EditCommand::apply): hide and disable the deletion UI, then show at the end
1452         (WebCore::EditCommand::unapply): ditto
1453         (WebCore::EditCommand::reapply): ditto
1454
1455 2006-11-15  Adele Peterson  <adele@apple.com>
1456
1457         Reviewed by Adam.
1458
1459         New implementation of slider control.
1460
1461         * WebCore.xcodeproj/project.pbxproj: Removed DeprecatedSlider and Slider classes, added RenderSlider class.
1462         * rendering/DeprecatedSlider.cpp: Removed.
1463         * rendering/DeprecatedSlider.h: Removed.
1464         * platform/Slider.h: Removed.
1465         * platform/mac/SliderMac.mm: Removed.
1466         * platform/win/TemporaryLinkStubs.cpp:
1467
1468         * css/CSSSelector.h: (WebCore::CSSSelector::): Added PseudoElement for thumb, PseudoSliderThumb.
1469         * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType): Added code for "-webkit-slider-thumb".
1470         * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkOneSelector): 
1471         * rendering/RenderStyle.cpp:
1472         (WebCore::):
1473         (WebCore::pseudoBit):
1474         * rendering/RenderStyle.h: (WebCore::RenderStyle::):
1475
1476         * css/html4.css: Added style for input[type="range"] and input[type="range"]::-webkit-slider-thumb
1477
1478         * html/HTMLInputElement.cpp:
1479         (WebCore::HTMLInputElement::createRenderer): Create RenderSlider for input type="range" elements.
1480         (WebCore::HTMLInputElement::defaultEventHandler): Allow the renderer to forward events, and set thumb position when click occurs on the track.
1481
1482         * page/EventHandler.cpp:  Added concept of a node that will capture all mouse events.  This will be used by the slider thumb, so it can
1483           continue to capture mouse move events during the drag, even though those events aren't directly over the slider.
1484         (WebCore::EventHandler::EventHandler):
1485         (WebCore::EventHandler::setCapturingMouseEventsNode):
1486         (WebCore::EventHandler::dispatchMouseEvent): If the capturingMouseEventsNode is set, then dispatch all mouse events to that node.
1487         * page/EventHandler.h:
1488
1489         * rendering/RenderSlider.cpp: Added.
1490         (WebCore::HTMLSliderThumbElement::isShadowNode):
1491         (WebCore::HTMLSliderThumbElement::shadowParentNode):
1492         (WebCore::HTMLSliderThumbElement::inDragMode): Keeps track of whether or not the thumb is in drag mode.
1493         (WebCore::HTMLSliderThumbElement::HTMLSliderThumbElement):
1494         (WebCore::HTMLSliderThumbElement::defaultEventHandler): Handles positioning of slider thumb during drag.
1495         (WebCore::RenderSlider::RenderSlider):
1496         (WebCore::RenderSlider::~RenderSlider):
1497         (WebCore::RenderSlider::baselinePosition):
1498         (WebCore::RenderSlider::calcMinMaxWidth):
1499         (WebCore::RenderSlider::setStyle):
1500         (WebCore::RenderSlider::createThumbStyle):
1501         (WebCore::RenderSlider::layout): Positions the thumb to be centered on the track.
1502         (WebCore::RenderSlider::updateFromElement):
1503         (WebCore::RenderSlider::mouseEventIsInThumb):
1504         (WebCore::RenderSlider::setValueForPosition):
1505         (WebCore::RenderSlider::setPositionFromValue):
1506         (WebCore::RenderSlider::positionForOffset):
1507         (WebCore::RenderSlider::valueChanged):
1508         (WebCore::RenderSlider::currentPosition):
1509         (WebCore::RenderSlider::setCurrentPosition):
1510         (WebCore::RenderSlider::trackSize):
1511         (WebCore::RenderSlider::forwardEvent):
1512         (WebCore::RenderSlider::inDragMode):
1513         * rendering/RenderSlider.h: Added.
1514         (WebCore::RenderSlider::renderName):
1515
1516          * rendering/RenderTheme.cpp: Added drawing code for slider track and thumb.
1517         (WebCore::RenderTheme::adjustStyle):
1518         (WebCore::RenderTheme::paint):
1519         (WebCore::RenderTheme::paintBorderOnly):
1520         (WebCore::RenderTheme::paintDecorations):
1521         (WebCore::RenderTheme::adjustSliderTrackStyle):
1522         (WebCore::RenderTheme::adjustSliderThumbStyle):
1523         * rendering/RenderTheme.h:
1524         (WebCore::RenderTheme::paintSliderTrack):
1525         (WebCore::RenderTheme::paintSliderThumb):
1526         * rendering/RenderThemeMac.h:
1527         * rendering/RenderThemeMac.mm:
1528         (WebCore::RenderThemeMac::RenderThemeMac):
1529         (WebCore::TrackGradientInterpolate):
1530         (WebCore::RenderThemeMac::paintSliderTrack):
1531         (WebCore::RenderThemeMac::paintSliderThumb):
1532         (WebCore::RenderThemeMac::adjustSliderTrackStyle):
1533         (WebCore::RenderThemeMac::adjustSliderThumbStyle):
1534
1535 2006-11-15  Beth Dakin  <bdakin@apple.com>
1536
1537         Reviewed by Adam.
1538
1539         Oops! Forgot to add this!
1540
1541         * platform/mac/ContextMenuMac.mm: Added.
1542         (-[MenuTarget forwardContextMenuAction:initWithContextMenu:WebCore::]):
1543         (-[MenuTarget WebCore::]):
1544         (-[MenuTarget setMenu:WebCore::]):
1545         (-[MenuTarget forwardContextMenuAction:]):
1546         (getNSMenuItem):
1547         (ContextMenu::appendItem):
1548         (ContextMenu::itemCount):
1549         (ContextMenu::insertItem):
1550         (ContextMenu::setPlatformMenuDescription):
1551
1552 2006-11-15  Beth Dakin  <bdakin@apple.com>
1553         &   Adam Roben  <aroben@apple.com>
1554
1555         Reviewed by Adam and Beth.
1556
1557         Initial cut at pushing Context Menus into WebCore. Nobody actually 
1558         calls this code just yet.
1559
1560         * WebCore.exp:
1561         * WebCore.xcodeproj/project.pbxproj:
1562         * page/Chrome.cpp:
1563         (WebCore::Chrome::addCustomContextMenuItems): Use the chrome to 
1564         call into addContextMenuItems on the UIDelegate.
1565         * page/Chrome.h:
1566         * page/ChromeClient.h:
1567         * platform/ContextMenu.cpp: Added.
1568         (WebCore::addDefaultItems):
1569         (WebCore::ContextMenu::populate):
1570         * platform/ContextMenu.h: Added.
1571         (WebCore::):
1572         (WebCore::ContextMenuItem::ContextMenuItem):
1573         (WebCore::ContextMenu::ContextMenu):
1574         (WebCore::ContextMenu::hitTestResult):
1575         (WebCore::ContextMenu::platformMenuDescription):
1576
1577 2006-11-15  Adele Peterson  <adele@apple.com>
1578
1579         Reviewed by Hyatt.
1580
1581         - Fix for <rdar://problem/4780306> REGRESSION: clicking in textarea does not set selection at PunBB.org
1582
1583         * css/html4.css: Removed "-webkit-user-select: ignore" for labels.
1584
1585 2006-11-15  David Harrison  <harrison@apple.com>
1586
1587         Reviewed by Darin.
1588
1589         <rdar://problem/4836034> REGRESSION: Hang while spell-checking (advanceToNextMisspelling)
1590
1591         Test:
1592         * manual-tests/keep_spelling_markers.html:
1593         Updated to include checking for this bug.
1594         
1595         * bridge/mac/FrameMac.mm:
1596         (WebCore::FrameMac::advanceToNextMisspelling):
1597         it.advance() even when current string is a single space.
1598
1599 2006-11-15  Brady Eidson  <beidson@apple.com>
1600
1601         Reviewed by lamadio
1602
1603         Backing out macro expansion
1604
1605         * WebCore.xcodeproj/project.pbxproj:
1606         * html/HTMLElement.cpp:
1607         (WebCore::HTMLElement::isRecognizedTagName):
1608         * ksvg2/scripts/make_names.pl:
1609
1610 2006-11-15  David Harrison  <harrison@apple.com>
1611
1612         Reviewed by Darin.
1613
1614         <rdar://problem/4770453> VO not honoring secure edit fields in web pages
1615
1616         The remaining problem was the password fields would return their contents
1617         even though they did not advertise that they could. Apparently, VoiceOver
1618         does not read the ads.
1619
1620         * bridge/mac/WebCoreAXObject.mm:
1621         (isPasswordFieldElement):
1622         (-[WebCoreAXObject isPasswordField]):
1623         (-[WebCoreAXObject textMarkerForVisiblePosition:]):
1624         (-[WebCoreAXObject accessibilityAttributeValue:]):
1625         (-[WebCoreAXObject doAXStringForRange:]):
1626
1627 2006-11-13  Lou Amadio  <lamadio@apple.com>
1628
1629         Reviewed by Darin Adler, Maciej Stachowiak
1630
1631         Cleanup: Expanded macros in generated files
1632
1633         * html/HTMLElement.cpp:
1634         (WebCore::HTMLElement::isRecognizedTagName):
1635         * ksvg2/scripts/make_names.pl:
1636
1637 2006-11-16  Anders Carlsson  <acarlsson@apple.com>
1638
1639         Reviewed by Geoff.
1640
1641         Use Vector instead of DeprecatedPtrList.
1642         
1643         * editing/ApplyStyleCommand.cpp:
1644         (WebCore::ApplyStyleCommand::applyBlockStyle):
1645         * editing/BreakBlockquoteCommand.cpp:
1646         * rendering/RenderFlow.cpp:
1647         (WebCore::RenderFlow::paintOutline):
1648
1649 2006-11-15  Adam Roben  <aroben@apple.com>
1650
1651         Build fix.
1652
1653         * page/EventHandler.h:
1654
1655 2006-11-14  Beth Dakin  <bdakin@apple.com>
1656
1657         Reviewed by Geoff.
1658
1659         Move things off the bridge, and move sendContextMenuEvent() from 
1660         EventHandlerMac to EventHandler.
1661
1662         * WebCore.exp:
1663         * WebCore.xcodeproj/project.pbxproj:
1664         * bridge/EditorClient.h:
1665         * bridge/mac/WebCoreFrameBridge.h:
1666         * editing/Editor.cpp:
1667         (WebCore::Editor::selectWordBeforeMenuEvent):
1668         (WebCore::Editor::clientIsEditable):
1669         * editing/Editor.h:
1670         * page/EventHandler.cpp:
1671         (WebCore::EventHandler::sendContextMenuEvent):
1672         * page/EventHandler.h:
1673         * page/mac/EventHandlerMac.mm:
1674
1675 2006-11-14  Timothy Hatcher  <timothy@apple.com>
1676
1677         Reviewed by Harrison.
1678
1679         <rdar://problem/4766635> Safari should never follow links in editable areas (add a WebKitEditableLinkNeverLive option)
1680
1681         Adds an EditableLinkNeverLive setting that will make links in editable areas always dead.
1682
1683         * bridge/mac/WebCoreSettings.mm:
1684         (-[WebCoreSettings setEditableLinkBehavior:]):
1685         * html/HTMLAnchorElement.cpp:
1686         (WebCore::HTMLAnchorElement::defaultEventHandler):
1687         (WebCore::HTMLAnchorElement::setActive):
1688         (WebCore::HTMLAnchorElement::isLiveLink):
1689         * page/FrameView.cpp:
1690         (WebCore::selectCursor):
1691         * page/Settings.h:
1692         (WebCore::Settings::):
1693
1694 2006-11-14  Mark Rowe  <bdash@webkit.org>
1695
1696         Reviewed by Oliver.
1697
1698         Build fix
1699
1700         * bindings/scripts/CodeGenerator.pm:
1701
1702 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
1703
1704         Turns out I wasn't forcing DWARF on the world at all, 
1705         it's now the default!
1706
1707         * WebCore.xcodeproj/project.pbxproj:
1708
1709 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
1710
1711         I must stop trying to force DWARF on the world.
1712         
1713         * WebCore.xcodeproj/project.pbxproj:
1714
1715 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
1716
1717         Reviewed by harrison
1718         
1719         <rdar://problem/4806874>
1720         Missing background image after paste
1721         
1722         * editing/markup.cpp:
1723         (WebCore::createMarkup): If the body is fully selected, add a 
1724         div with its CSS properties to the markup.  Migrated a use of 
1725         enclosingBlockFlowElement to enclosingBlock to fix an infinite 
1726         loop when pasting <div><input></div>.
1727
1728 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
1729
1730         Reviewed by Adam.
1731
1732         Add Undo/Redo to execCommand.
1733         
1734         * editing/Editor.cpp:
1735         (WebCore::execRedo):
1736         (WebCore::execUndo):
1737         (WebCore::canRedo):
1738         (WebCore::canUndo):
1739         (WebCore::CommandEntry::):
1740
1741 2006-11-14  Darin Adler  <darin@apple.com>
1742
1743         Reviewed by Anders.
1744
1745         - created EventHandler class, moved event handling code from both
1746           Frame and FrameView in there
1747
1748         - added ScrollTypes.h header so you can include the scroller-related
1749           enums without all of Scrollbar.h
1750
1751         * page/EventHandler.cpp: Added.
1752         * page/EventHandler.h: Added.
1753         * page/mac/EventHandlerMac.mm: Added.
1754
1755         * platform/ScrollBarMode.h: Removed.
1756         * platform/ScrollTypes.h: Added.
1757
1758         * WebCore.exp:
1759         * WebCore.xcodeproj/project.pbxproj:
1760         * bridge/mac/FrameMac.h:
1761         * bridge/mac/FrameMac.mm:
1762         (WebCore::FrameMac::FrameMac):
1763         (WebCore::FrameMac::~FrameMac):
1764         (WebCore::FrameMac::bridgeForWidget):
1765         (WebCore::FrameMac::imageFromRect):
1766         * bridge/mac/FrameViewMac.mm:
1767         * bridge/mac/WebCoreFrameBridge.mm:
1768         (-[WebCoreFrameBridge scrollOverflowInDirection:granularity:]):
1769         (-[WebCoreFrameBridge nextKeyView]):
1770         (-[WebCoreFrameBridge previousKeyView]):
1771         (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
1772         (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
1773         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
1774         (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
1775         (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
1776         (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
1777         (-[WebCoreFrameBridge dragSourceMovedTo:]):
1778         (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
1779         * dom/Document.cpp:
1780         (WebCore::Document::hoveredNodeDetached):
1781         * dom/Element.h:
1782         * dom/EventTargetNode.cpp:
1783         (WebCore::EventTargetNode::defaultEventHandler):
1784         * editing/SelectionController.cpp:
1785         (WebCore::SelectionController::SelectionController):
1786         * editing/SelectionController.h:
1787         (WebCore::SelectionController::setCaretBlinkingSuspended):
1788         (WebCore::SelectionController::isCaretBlinkingSuspended):
1789         * html/HTMLAnchorElement.cpp:
1790         (WebCore::HTMLAnchorElement::isKeyboardFocusable):
1791         * html/HTMLFrameElementBase.cpp:
1792         (WebCore::HTMLFrameElementBase::setFocus):
1793         * html/HTMLFrameElementBase.h:
1794         * html/HTMLGenericFormElement.cpp:
1795         (WebCore::HTMLGenericFormElement::isKeyboardFocusable):
1796         * html/HTMLInputElement.cpp:
1797         (WebCore::HTMLInputElement::defaultEventHandler):
1798         * html/HTMLSelectElement.cpp:
1799         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
1800         * loader/FrameLoader.cpp:
1801         (WebCore::FrameLoader::clear):
1802         (WebCore::FrameLoader::open):
1803
1804         * page/Frame.cpp:
1805         (WebCore::Frame::caretBlinkTimerFired):
1806         (WebCore::Frame::frameForWidget):
1807         (WebCore::Frame::eventHandler):
1808         (WebCore::Frame::setProhibitsScrolling):
1809         (WebCore::FramePrivate::FramePrivate):
1810         * page/Frame.h:
1811         * page/FramePrivate.h:
1812         * page/FrameView.cpp:
1813         (WebCore::FrameViewPrivate::FrameViewPrivate):
1814         (WebCore::FrameViewPrivate::reset):
1815         (WebCore::FrameView::FrameView):
1816         (WebCore::FrameView::~FrameView):
1817         (WebCore::FrameView::clear):
1818         (WebCore::FrameView::adjustViewSize):
1819         (WebCore::FrameView::addRepaintInfo):
1820         (WebCore::FrameView::layout):
1821         (WebCore::FrameView::scrollPointRecursively):
1822         (WebCore::FrameView::setContentsPos):
1823         (WebCore::FrameView::scheduleRelayoutOfSubtree):
1824         (WebCore::FrameView::scheduleEvent):
1825         (WebCore::FrameView::updateOverflowStatus):
1826         (WebCore::FrameView::dispatchScheduledEvents):
1827         (WebCore::FrameView::windowClipRectForLayer):
1828         (WebCore::FrameView::handleMouseMoveEvent):
1829         (WebCore::FrameView::handleMouseReleaseEvent):
1830         * page/FrameView.h:
1831         * page/PageState.cpp:
1832         (WebCore::PageState::PageState):
1833         (WebCore::PageState::restore):
1834         * page/PageState.h:
1835         * platform/ScrollBar.h:
1836         * platform/ScrollView.h:
1837         * platform/mac/ClipboardMac.mm:
1838         * platform/mac/PopupMenuMac.mm:
1839         (WebCore::PopupMenu::show):
1840         * platform/mac/SliderMac.mm:
1841         (-[WebCoreSlider becomeFirstResponder]):
1842         (-[WebCoreSlider nextKeyView]):
1843         (-[WebCoreSlider previousKeyView]):
1844         (-[WebCoreSlider canBecomeKeyView]):
1845         (Slider::focusPolicy):
1846         * platform/mac/WebCoreTextField.mm:
1847         (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
1848         (-[WebCoreTextFieldController setHasFocus:]):
1849         (-[WebCoreSearchField nextKeyView]):
1850         (-[WebCoreSearchField previousKeyView]):
1851         (-[WebCoreSearchFieldCell _addStringToRecentSearches:]):
1852         * platform/mac/WidgetMac.mm:
1853         (WebCore::Widget::hasFocus):
1854         (WebCore::Widget::clearFocus):
1855         * rendering/RenderFrameSet.cpp:
1856         (WebCore::RenderFrameSet::setResizing):
1857         * rendering/RenderLayer.cpp:
1858         (WebCore::RenderLayer::autoscroll):
1859         (WebCore::RenderLayer::resize):
1860         (WebCore::RenderLayer::updateOverflowStatus):
1861         * rendering/RenderLayer.h:
1862         * rendering/RenderListBox.cpp:
1863         (WebCore::RenderListBox::autoscroll):
1864         * rendering/RenderObject.cpp:
1865         (WebCore::RenderObject::draggableNode):
1866         (WebCore::RenderObject::destroy):
1867         * rendering/RenderObject.h:
1868         (WebCore::RenderObject::RepaintInfo::RepaintInfo):
1869         * rendering/RenderPartObject.cpp:
1870         (WebCore::RenderPartObject::viewCleared):
1871
1872 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
1873
1874         Reviewed by Darin.
1875
1876         Let the editor client handle undo/redo.
1877         
1878         * WebCore.exp:
1879         * WebCore.xcodeproj/project.pbxproj:
1880         * bridge/EditorClient.h:
1881         * bridge/mac/FrameMac.h:
1882         * bridge/mac/FrameMac.mm:
1883         (WebCore::FrameMac::canUndo):
1884         (WebCore::FrameMac::canRedo):
1885         * bridge/mac/WebCoreEditCommand.h: Removed.
1886         * bridge/mac/WebCoreEditCommand.mm: Removed.
1887         * bridge/mac/WebCoreFrameBridge.h:
1888         * bridge/mac/WebCoreFrameBridge.mm:
1889         * editing/Editor.cpp:
1890         (WebCore::Editor::appliedEditing):
1891         (WebCore::Editor::unappliedEditing):
1892         (WebCore::Editor::reappliedEditing):
1893         * editing/JSEditor.cpp:
1894         * loader/FrameLoader.cpp:
1895         (WebCore::FrameLoader::closeURL):
1896         * page/Frame.cpp:
1897         * page/Frame.h:
1898         * rendering/RenderTextControl.cpp:
1899         (WebCore::RenderTextControl::updateFromElement):
1900
1901 2006-11-14  Nikolas Zimmermann  <zimmermann@kde.org>
1902
1903         Reviewed and landed by Brady
1904
1905         Fix Qt/Linux build.
1906
1907         * ChangeLog:
1908         * loader/qt/FrameLoaderQt.cpp:
1909         (WebCore::FrameLoader::submitForm):
1910         * platform/network/qt/ResourceHandleManager.cpp:
1911         (WebCore::ResourceHandleManager::add):
1912         * platform/qt/FrameQtClient.cpp:
1913         (WebCore::FrameQtClientDefault::submitForm):
1914         * platform/qt/FrameQtClient.h:
1915
1916 2006-11-14  Brady Eidson  <beidson@apple.com>
1917
1918         Reviewed by Anders
1919
1920         Cleanup of my patch last night and merging with aroben-style changes from this morning
1921         (More ref-counted FormData stuff)
1922
1923         * html/HTMLFormElement.cpp:
1924         (WebCore::HTMLFormElement::submit):
1925         * loader/FrameLoader.cpp:
1926         (WebCore::FrameLoader::submitForm):
1927         * platform/network/ResourceHandle.cpp:
1928         (WebCore::ResourceHandle::postData):
1929         * platform/network/ResourceHandle.h:
1930         * platform/network/cf/FormDataStreamCFNet.cpp:
1931         (WebCore::setHTTPBody):
1932         * platform/network/mac/FormDataStreamMac.h:
1933         * platform/network/mac/FormDataStreamMac.mm:
1934         (WebCore::getStreamFormDatas):
1935         (WebCore::formCreate):
1936         (WebCore::formFinalize):
1937         (WebCore::setHTTPBody):
1938         (WebCore::httpBodyFromStream):
1939         * platform/network/mac/ResourceRequestMac.mm:
1940         (WebCore::getResourceRequest):
1941
1942 2006-11-14  Rob Buis  <buis@kde.org>
1943
1944         Reviewed by Darin.
1945
1946         http://bugs.webkit.org/show_bug.cgi?id=11575
1947         Bug 11575: REGRESSION: WebCore crash in CSSParser/HTMLTokenizer
1948
1949         Test: fast/css/css-imports.html
1950
1951         * css/CSSImportRule.cpp:
1952         (WebCore::CSSImportRule::insertedIntoParent):
1953         Fix the crash by testing for null pointer.
1954
1955 2006-11-14  Alexey Proskuryakov  <ap@webkit.org>
1956
1957         Reviewed by Tim H.
1958
1959         Test for http://bugs.webkit.org/show_bug.cgi?id=3387
1960         Redundant keydown, keypress, keyup events sent for arrow keys
1961
1962         * manual-tests/arrow-key-events.html: Added.
1963
1964 2006-11-14  Darin Adler  <darin@apple.com>
1965
1966         Reviewed by Adam.
1967
1968         Fix up usages of FormData within CFNet loader code.
1969
1970         * platform/network/ResourceRequest.h:
1971         (WebCore::ResourceRequest::httpBody):
1972         * platform/network/cf/FormDataStreamCFNet.cpp:
1973         (WebCore::getStreamFormDatas): Store RefPtr<FormData>s in the
1974         streamFormDatas HashMap.
1975         (WebCore::formCreate):
1976         (WebCore::formFinalize): Removed delete because the remove() will deref
1977         and delete if necessary.
1978         (WebCore::setHTTPBody): Changed parameter to PassRefPtr.
1979         (WebCore::httpBodyFromStream):
1980         * platform/network/cf/FormDataStreamCFNet.h: Fix declarations.
1981         * platform/network/cf/ResourceRequestCFNet.cpp:
1982         (WebCore::getResourceRequest):
1983
1984 2006-11-14  Greg Jackson  <gjspanner@gmail.com>
1985
1986         Reviewed by Darin.
1987
1988         Preserves any pre-existing value for WEBCORE_NAVIGATOR_PLATFORM
1989         rather than overriding it based on platform detection.
1990
1991         * bindings/js/kjs_navigator.cpp:
1992
1993 2006-11-13  Brady Eidson  <beidson@apple.com>
1994
1995         Reviewed by Maciej
1996
1997         Made FormData Shared, and pass it around as such.
1998
1999         * WebCore.xcodeproj/project.pbxproj: Reordered some items
2000         * html/HTMLFormElement.cpp:
2001         (WebCore::HTMLFormElement::formData):
2002         (WebCore::HTMLFormElement::submit):
2003         * html/HTMLFormElement.h:
2004         * loader/FrameLoader.cpp:
2005         (WebCore::FormSubmission::FormSubmission):
2006         (WebCore::FrameLoader::submitForm):
2007         * loader/FrameLoader.h:
2008         * loader/mac/FrameLoaderMac.mm:
2009         (WebCore::FrameLoader::post):
2010         (WebCore::FrameLoader::loadResourceSynchronously):
2011         * loader/mac/SubresourceLoaderMac.mm:
2012         (WebCore::SubresourceLoader::create):
2013         * platform/network/FormData.h: Made FormData shared
2014         * platform/network/ResourceHandle.h:
2015         * platform/network/ResourceHandle.cpp:
2016         (WebCore::ResourceHandle::postData): 
2017         * platform/network/ResourceRequest.h:
2018         (WebCore::ResourceRequest::httpBody):
2019         (WebCore::ResourceRequest::setHTTPBody): 
2020         * platform/network/mac/ResourceRequestMac.mm:
2021         (WebCore::getResourceRequest):
2022         (WebCore::nsURLRequest): 
2023
2024         * platform/network/mac/FormDataStreamMac.h:
2025         * platform/network/mac/FormDataStreamMac.mm:
2026         (WebCore::getStreamFormDatas): Hash Streams to RefPtr<FormData>s
2027         (WebCore::formCreate):
2028         (WebCore::formFinalize):
2029         (WebCore::setHTTPBody):
2030         (WebCore::httpBodyFromStream):
2031
2032         * xml/xmlhttprequest.cpp:
2033         (WebCore::XMLHttpRequest::send):
2034
2035 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
2036
2037         Reviewed by harrison
2038         
2039         <rdar://problem/4828264>
2040         In Mail, a crash occurs at WebCore::Selection::toRange() when selecting this web content (http://www.cnet.com/)
2041         
2042         The start of the selection is in an editable area, and the end is in an 
2043         input field inside that editable area.  The code that should pull the end
2044         of such a selection outside the input field didn't escape shadow nodes,
2045         it would leave a dangling end, causing the crash in toRange.
2046         
2047         * editing/Selection.cpp:
2048         (WebCore::Selection::adjustForEditableContent):  Added an ASSERT and a fixup
2049         to prevent crashes like this in future Release builds.
2050         * editing/htmlediting.cpp:
2051         (WebCore::firstEditablePositionAfterPositionInRoot): Let this function 
2052         escape shadow nodes.  We might eventually push this code down into 
2053         next/previous{VisuallyDistinct}Canditate.
2054         (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.
2055
2056 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
2057
2058         Reviewed by darin
2059         
2060         * editing/DeleteSelectionCommand.cpp:
2061         (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor):
2062         * editing/Editor.cpp:
2063         (WebCore::Editor::appliedEditing):
2064         * editing/Editor.h:
2065         (WebCore::Editor::setRemovedAnchor): Pass a PassRefPtr.
2066
2067 2006-11-10  Justin Garcia  <justin.garcia@apple.com>
2068
2069         Reviewed by Oliver
2070         
2071         <rdar://problem/4820026>
2072         copy/paste of news.google.com yields text from hidden select element options
2073
2074         We were adding descendants of unrendered select elements. 
2075
2076         * editing/markup.cpp:
2077         (WebCore::createMarkup): Don't traverse into nodes without renderers, unless 
2078         they are grandfathered in by a rendered select element.
2079         
2080 2006-11-12  Simon Hausmann  <hausmann@kde.org>
2081
2082         Reviewed by Sam Weinig.
2083
2084         Fix Qt build. Missing AbstractShared implementation.
2085         http://bugs.webkit.org/show_bug.cgi?id=11581
2086
2087         * loader/qt/FrameLoaderClientQt.cpp:
2088         (WebCore::FrameLoaderClientQt::ref):
2089         (WebCore::FrameLoaderClientQt::deref):
2090         * loader/qt/FrameLoaderClientQt.h:
2091         * platform/qt/ChromeClientQt.cpp:
2092         (WebCore::ChromeClientQt::ref):
2093         (WebCore::ChromeClientQt::deref):
2094         * platform/qt/ChromeClientQt.h:
2095         * platform/qt/EditorClientQt.cpp:
2096         (WebCore::EditorClientQt::ref):
2097         (WebCore::EditorClientQt::deref):
2098         * platform/qt/EditorClientQt.h:
2099
2100 2006-11-13  Mark Rowe  <bdash@webkit.org>
2101
2102         Reviewed by Mitz.
2103
2104         Fix some Linux/Gdk build issues noted by Alp Toker.
2105
2106         * Projects/gdk/webcore-gdk.bkl:
2107         * WebCoreSources.bkl:
2108         * platform/graphics/gdk/ImageGdk.cpp:
2109         (WebCore::Image::loadPlatformResource):
2110
2111 2006-11-12  Brady Eidson <beidson@apple.com>
2112
2113         Reviewed by Anders
2114
2115         Logging channel plumbing for future work
2116
2117         * platform/Logging.cpp:
2118         (WebCore::):
2119         * platform/Logging.h:
2120         * platform/mac/LoggingMac.mm:
2121         (WebCore::InitializeLoggingChannelsIfNecessary):
2122
2123 2006-11-12  Mark Rowe  <bdash@webkit.org>
2124
2125         Reviewed by Mitz.
2126
2127         Linux/Gdk compilation fixes, and bakefile cleanups.  Based on patches by
2128         Alp Toker.
2129
2130         * Projects/gdk/webcore-gdk.bkl:
2131         * WebCoreSources.bkl:
2132         * page/PageState.cpp:
2133         * platform/gdk/ChromeClientGdk.h:
2134         (WebCore::ChromeClientGdk::ref):
2135         (WebCore::ChromeClientGdk::deref):
2136         * platform/gdk/FrameGdk.cpp:
2137         (WebCore::FrameGdkClientDefault::openURL):
2138         (WebCore::FrameGdkClientDefault::didReceiveData):
2139         (WebCore::FrameGdkClientDefault::receivedAllData):
2140         (WebCore::FrameGdk::FrameGdk):
2141         (WebCore::FrameGdk::~FrameGdk):
2142         * platform/gdk/FrameGdk.h:
2143         * platform/gdk/KeyEventGdk.cpp:
2144         (WebCore::keyIdentifierForGdkKeyCode):
2145         * platform/gdk/ScreenClientGdk.h: Removed.
2146         * platform/gdk/TemporaryLinkStubs.cpp:
2147         (FrameGdk::canPaste):
2148         (FrameGdk::originalRequestURL):
2149         (TextField::TextField):
2150         * platform/network/gdk/ResourceHandleManager.cpp:
2151         (WebCore::ResourceHandleManager::downloadTimerCallback):
2152         (WebCore::ResourceHandleManager::add):
2153         (WebCore::ResourceHandleManager::cancel):
2154         * webcore-base.bkl:
2155
2156 2006-11-11  Geoffrey Garen  <ggaren@apple.com>
2157
2158         Reviewed by Maciej Stachowiak.
2159         
2160         - Fixed loader crash by clarifying ownership of WebKit client objects. 
2161         WebCore objects own their WebKit clients, and ref and deref through 
2162         virtual methods, leaving WebKit free to use whatever client / reference-counting 
2163         implementation it likes.
2164         
2165         * WebCore.exp:
2166         * WebCore.xcodeproj/project.pbxproj:
2167         * bridge/EditorClient.h: Fixed up function prototypes for style.
2168         * loader/FrameLoader.cpp: Removed detachFrameLoader, since its real purpose
2169         was to implement an alternative ownership model.
2170         (WebCore::FrameLoader::~FrameLoader): Removed empty destructor.
2171         (WebCore::FrameLoader::setClient): This function now takes ownership
2172         (WebCore::FrameLoader::client):
2173         * loader/FrameLoader.h:
2174         * loader/FrameLoaderClient.h:
2175         * page/ChromeClient.h:
2176         * platform/AbstractShared.h: Added. This is the virtual function-based refcounting
2177         complement to Shared.
2178         (WebCore::AbstractShared::~AbstractShared):
2179
2180 2006-11-11  George Staikos  <staikos@kde.org>
2181
2182         Reviewed by Maciej.
2183
2184         Fix uninitialized variable.
2185
2186         * rendering/RenderStyle.h:
2187
2188 2006-11-11  Nikolas Zimmermann  <zimmermann@kde.org>
2189
2190         Reviewed/landed by Adam.
2191
2192         Complete cleanup of the CMakeLists.txt.
2193         Now all files to be built are sorted in alphabetic order.
2194
2195         General style cleanup, remove all tabs etc.
2196
2197         * CMakeLists.txt:
2198
2199 2006-11-11  Geoffrey Garen  <ggaren@apple.com>
2200
2201         Reviewed by Maciej Stachowiak.
2202         
2203         Added missing initializer to ResourceRequest -- fixes some loader crashes
2204         due to assuming a request always has a non-null httpMethod.
2205
2206         * platform/network/ResourceRequest.h:
2207         (WebCore::ResourceRequest::ResourceRequest):
2208
2209 2006-11-11  Brady Eidson <beidson@apple.com>
2210
2211         Reviewed by Maciej
2212
2213         Fixed header guard
2214
2215         * loader/FrameLoaderClient.h:
2216
2217 2006-11-11  Darin Adler  <darin@apple.com>
2218
2219         - attempt to fix Qt build
2220
2221         * platform/qt/CursorQt.cpp:
2222         (WebCore::verticalTextCursor): Added. Just returns pointer cursor.
2223         (WebCore::cellCursor): Ditto.
2224         (WebCore::contextMenuCursor): Ditto.
2225
2226 2006-11-11  Rob Buis  <buis@kde.org>
2227
2228         Reviewed by hyatt.
2229
2230         http://bugs.webkit.org/show_bug.cgi?id=10893
2231         InsertRule can not handle @import statements
2232
2233         Allow @import as part of a css rule.
2234
2235         * css/CSSGrammar.y:
2236         * css/CSSImportRule.cpp:
2237         (WebCore::CSSImportRule::insertedIntoParent):
2238         * css/CSSStyleSheet.cpp:
2239         (WebCore::CSSStyleSheet::CSSStyleSheet):
2240         (WebCore::CSSStyleSheet::checkLoaded):
2241         * css/CSSStyleSheet.h:
2242         (WebCore::CSSStyleSheet::loadCompleted):
2243
2244 2006-11-11  Alexey Proskuryakov  <ap@webkit.org>
2245
2246         Attempt to fix Qt build.
2247
2248         * CMakeLists.txt: PathQt.cpp is in graphics/qt now.
2249
2250 2006-11-11  Lars Naesbye Christensen  <larsnaesbye@stud.ku.dk>
2251
2252         Tortured by Sam Weinig, Tim H., Maciej, Mitz and Alexey :-)
2253
2254         [CSS 3] support for vertical-text, cell and context-menu cursors
2255         http://bugs.webkit.org/show_bug.cgi?id=11494
2256
2257         * Resources/cellCursor.png: Added.
2258         * Resources/contextMenuCursor.png: Added.
2259         * Resources/verticalTextCursor.png: Added.
2260         * WebCore.xcodeproj/project.pbxproj:
2261         * css/CSSComputedStyleDeclaration.cpp:
2262         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2263         * css/CSSValueKeywords.in:
2264         * manual-tests/cursor.html:
2265         * page/FrameView.cpp:
2266         (WebCore::selectCursor):
2267         * platform/Cursor.h:
2268         * platform/mac/CursorMac.mm:
2269         (WebCore::verticalTextCursor):
2270         (WebCore::cellCursor):
2271         (WebCore::contextMenuCursor):
2272         * rendering/RenderStyle.h:
2273         (WebCore::):
2274
2275 2006-11-11  Nikolas Zimmermann  <zimmermann@kde.org>
2276
2277         Reviewed by aroben and ap, landed by ap.
2278
2279         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11468
2280
2281         Group graphics related files in platform/graphics.
2282         Move certain files from certain subdirectories
2283         into platform/graphics/{win,mac,cg,gdk,qt}
2284
2285         * CMakeLists.txt:
2286         * WebCore.xcodeproj/project.pbxproj:
2287         * platform/AffineTransform.cpp: Removed.
2288         * platform/AffineTransform.h: Removed.
2289         * platform/Color.cpp: Removed.
2290         * platform/Color.h: Removed.
2291         * platform/FloatPoint.cpp: Removed.
2292         * platform/FloatPoint.h: Removed.
2293         * platform/FloatRect.cpp: Removed.
2294         * platform/FloatRect.h: Removed.
2295         * platform/FloatSize.cpp: Removed.
2296         * platform/FloatSize.h: Removed.
2297         * platform/Icon.h: Removed.
2298         * platform/Image.cpp: Removed.
2299         * platform/Image.h: Removed.
2300         * platform/ImageSource.h: Removed.
2301         * platform/IntPoint.h: Removed.
2302         * platform/IntRect.cpp: Removed.
2303         * platform/IntRect.h: Removed.
2304         * platform/IntSize.h: Removed.
2305         * platform/IntSizeHash.h: Removed.
2306         * platform/Path.cpp: Removed.
2307         * platform/Path.h: Removed.
2308         * platform/Pen.cpp: Removed.
2309         * platform/Pen.h: Removed.
2310         * platform/cairo/AffineTransformCairo.cpp: Removed.
2311         * platform/cairo/GraphicsContextCairo.cpp: Removed.
2312         * platform/cairo/ImageCairo.cpp: Removed.
2313         * platform/cairo/ImageSourceCairo.cpp: Removed.
2314         * platform/cairo/cairo/AUTHORS: Removed.
2315         * platform/cairo/cairo/COPYING: Removed.
2316         * platform/cairo/cairo/COPYING-LGPL-2.1: Removed.
2317         * platform/cairo/cairo/COPYING-MPL-1.1: Removed.
2318         * platform/cairo/cairo/INSTALL: Removed.
2319         * platform/cairo/cairo/NEWS: Removed.
2320         * platform/cairo/cairo/README: Removed.
2321         * platform/cairo/cairo/TODO: Removed.
2322         * platform/cairo/cairo/src/Makefile.in: Removed.
2323         * platform/cairo/cairo/src/cairo-arc-private.h: Removed.
2324         * platform/cairo/cairo/src/cairo-arc.c: Removed.
2325         * platform/cairo/cairo/src/cairo-array.c: Removed.
2326         * platform/cairo/cairo/src/cairo-atsui-font.c: Removed.
2327         * platform/cairo/cairo/src/cairo-atsui.h: Removed.
2328         * platform/cairo/cairo/src/cairo-beos-surface.cpp: Removed.
2329         * platform/cairo/cairo/src/cairo-beos.h: Removed.
2330         * platform/cairo/cairo/src/cairo-cache-private.h: Removed.
2331         * platform/cairo/cairo/src/cairo-cache.c: Removed.
2332         * platform/cairo/cairo/src/cairo-clip-private.h: Removed.
2333         * platform/cairo/cairo/src/cairo-clip.c: Removed.
2334         * platform/cairo/cairo/src/cairo-color.c: Removed.
2335         * platform/cairo/cairo/src/cairo-debug.c: Removed.
2336         * platform/cairo/cairo/src/cairo-debug.h: Removed.
2337         * platform/cairo/cairo/src/cairo-directfb-surface.c: Removed.
2338         * platform/cairo/cairo/src/cairo-directfb.h: Removed.
2339         * platform/cairo/cairo/src/cairo-features.h: Removed.
2340         * platform/cairo/cairo/src/cairo-features.h.in: Removed.
2341         * platform/cairo/cairo/src/cairo-fixed.c: Removed.
2342         * platform/cairo/cairo/src/cairo-font-options.c: Removed.
2343         * platform/cairo/cairo/src/cairo-font-subset-private.h: Removed.
2344         * platform/cairo/cairo/src/cairo-font-subset.c: Removed.
2345         * platform/cairo/cairo/src/cairo-font.c: Removed.
2346         * platform/cairo/cairo/src/cairo-ft-font.c: Removed.
2347         * platform/cairo/cairo/src/cairo-ft-private.h: Removed.
2348         * platform/cairo/cairo/src/cairo-ft.h: Removed.
2349         * platform/cairo/cairo/src/cairo-glitz-surface.c: Removed.
2350         * platform/cairo/cairo/src/cairo-glitz.h: Removed.
2351         * platform/cairo/cairo/src/cairo-gstate-private.h: Removed.
2352         * platform/cairo/cairo/src/cairo-gstate.c: Removed.
2353         * platform/cairo/cairo/src/cairo-hash-private.h: Removed.
2354         * platform/cairo/cairo/src/cairo-hash.c: Removed.
2355         * platform/cairo/cairo/src/cairo-hull.c: Removed.
2356         * platform/cairo/cairo/src/cairo-image-surface.c: Removed.
2357         * platform/cairo/cairo/src/cairo-matrix.c: Removed.
2358         * platform/cairo/cairo/src/cairo-meta-surface-private.h: Removed.
2359         * platform/cairo/cairo/src/cairo-meta-surface.c: Removed.
2360         * platform/cairo/cairo/src/cairo-output-stream.c: Removed.
2361         * platform/cairo/cairo/src/cairo-paginated-surface-private.h: Removed.
2362         * platform/cairo/cairo/src/cairo-paginated-surface.c: Removed.
2363         * platform/cairo/cairo/src/cairo-path-bounds.c: Removed.
2364         * platform/cairo/cairo/src/cairo-path-data-private.h: Removed.
2365         * platform/cairo/cairo/src/cairo-path-data.c: Removed.
2366         * platform/cairo/cairo/src/cairo-path-fill.c: Removed.
2367         * platform/cairo/cairo/src/cairo-path-fixed-private.h: Removed.
2368         * platform/cairo/cairo/src/cairo-path-stroke.c: Removed.
2369         * platform/cairo/cairo/src/cairo-path.c: Removed.
2370         * platform/cairo/cairo/src/cairo-pattern.c: Removed.
2371         * platform/cairo/cairo/src/cairo-pdf-surface.c: Removed.
2372         * platform/cairo/cairo/src/cairo-pdf.h: Removed.
2373         * platform/cairo/cairo/src/cairo-pen.c: Removed.
2374         * platform/cairo/cairo/src/cairo-platform.h: Removed.
2375         * platform/cairo/cairo/src/cairo-png.c: Removed.
2376         * platform/cairo/cairo/src/cairo-polygon.c: Removed.
2377         * platform/cairo/cairo/src/cairo-private.h: Removed.
2378         * platform/cairo/cairo/src/cairo-ps-surface.c: Removed.
2379         * platform/cairo/cairo/src/cairo-ps.h: Removed.
2380         * platform/cairo/cairo/src/cairo-quartz-private.h: Removed.
2381         * platform/cairo/cairo/src/cairo-quartz-surface.c: Removed.
2382         * platform/cairo/cairo/src/cairo-quartz.h: Removed.
2383         * platform/cairo/cairo/src/cairo-quartz2-surface.c: Removed.
2384         * platform/cairo/cairo/src/cairo-quartz2.h: Removed.
2385         * platform/cairo/cairo/src/cairo-region.c: Removed.
2386         * platform/cairo/cairo/src/cairo-scaled-font.c: Removed.
2387         * platform/cairo/cairo/src/cairo-slope.c: Removed.
2388         * platform/cairo/cairo/src/cairo-spline.c: Removed.
2389         * platform/cairo/cairo/src/cairo-stroke-style.c: Removed.
2390         * platform/cairo/cairo/src/cairo-surface-fallback-private.h: Removed.
2391         * platform/cairo/cairo/src/cairo-surface-fallback.c: Removed.
2392         * platform/cairo/cairo/src/cairo-surface.c: Removed.
2393         * platform/cairo/cairo/src/cairo-svg-surface.c: Removed.
2394         * platform/cairo/cairo/src/cairo-svg.h: Removed.
2395         * platform/cairo/cairo/src/cairo-traps.c: Removed.
2396         * platform/cairo/cairo/src/cairo-unicode.c: Removed.
2397         * platform/cairo/cairo/src/cairo-wideint.c: Removed.
2398         * platform/cairo/cairo/src/cairo-wideint.h: Removed.
2399         * platform/cairo/cairo/src/cairo-win32-font.c: Removed.
2400         * platform/cairo/cairo/src/cairo-win32-private.h: Removed.
2401         * platform/cairo/cairo/src/cairo-win32-surface.c: Removed.
2402         * platform/cairo/cairo/src/cairo-win32.h: Removed.
2403         * platform/cairo/cairo/src/cairo-xcb-surface.c: Removed.
2404         * platform/cairo/cairo/src/cairo-xcb-xrender.h: Removed.
2405         * platform/cairo/cairo/src/cairo-xcb.h: Removed.
2406         * platform/cairo/cairo/src/cairo-xlib-private.h: Removed.
2407         * platform/cairo/cairo/src/cairo-xlib-screen.c: Removed.
2408         * platform/cairo/cairo/src/cairo-xlib-surface.c: Removed.
2409         * platform/cairo/cairo/src/cairo-xlib-test.h: Removed.
2410         * platform/cairo/cairo/src/cairo-xlib-xrender.h: Removed.
2411         * platform/cairo/cairo/src/cairo-xlib.h: Removed.
2412         * platform/cairo/cairo/src/cairo.c: Removed.
2413         * platform/cairo/cairo/src/cairo.h: Removed.
2414         * platform/cairo/cairo/src/cairoint.h: Removed.
2415         * platform/cairo/cairo/src/test-fallback-surface.c: Removed.
2416         * platform/cairo/cairo/src/test-fallback-surface.h: Removed.
2417         * platform/cairo/cairo/src/test-meta-surface.c: Removed.
2418         * platform/cairo/cairo/src/test-meta-surface.h: Removed.
2419         * platform/cairo/cairo/src/test-paginated-surface.c: Removed.
2420         * platform/cairo/cairo/src/test-paginated-surface.h: Removed.
2421         * platform/cairo/pixman/AUTHORS: Removed.
2422         * platform/cairo/pixman/COPYING: Removed.
2423         * platform/cairo/pixman/README: Removed.
2424         * platform/cairo/pixman/src/Makefile.in: Removed.
2425         * platform/cairo/pixman/src/fbcompose.c: Removed.
2426         * platform/cairo/pixman/src/fbedge.c: Removed.
2427         * platform/cairo/pixman/src/fbedgeimp.h: Removed.
2428         * platform/cairo/pixman/src/fbmmx.c: Removed.
2429         * platform/cairo/pixman/src/fbmmx.h: Removed.
2430         * platform/cairo/pixman/src/fbpict.c: Removed.
2431         * platform/cairo/pixman/src/fbpict.h: Removed.
2432         * platform/cairo/pixman/src/fbtrap.c: Removed.
2433         * platform/cairo/pixman/src/icblt.c: Removed.
2434         * platform/cairo/pixman/src/icbltone.c: Removed.
2435         * platform/cairo/pixman/src/iccolor.c: Removed.
2436         * platform/cairo/pixman/src/icformat.c: Removed.
2437         * platform/cairo/pixman/src/icimage.c: Removed.
2438         * platform/cairo/pixman/src/icimage.h: Removed.
2439         * platform/cairo/pixman/src/icint.h: Removed.
2440         * platform/cairo/pixman/src/icpixels.c: Removed.
2441         * platform/cairo/pixman/src/icrect.c: Removed.
2442         * platform/cairo/pixman/src/icrop.h: Removed.
2443         * platform/cairo/pixman/src/icstipple.c: Removed.
2444         * platform/cairo/pixman/src/ictransform.c: Removed.
2445         * platform/cairo/pixman/src/ictrap.c: Removed.
2446         * platform/cairo/pixman/src/ictri.c: Removed.
2447         * platform/cairo/pixman/src/icutil.c: Removed.
2448         * platform/cairo/pixman/src/pixman-remap.h: Removed.
2449         * platform/cairo/pixman/src/pixman-xserver-compat.h: Removed.
2450         * platform/cairo/pixman/src/pixman.h: Removed.
2451         * platform/cairo/pixman/src/pixregion.c: Removed.
2452         * platform/cairo/pixman/src/pixregionint.h: Removed.
2453         * platform/cairo/pixman/src/renderedge.c: Removed.
2454         * platform/cairo/pixman/src/renderedge.h: Removed.
2455         * platform/cairo/pixman/src/slim_internal.h: Removed.
2456         * platform/cairo/rgb24-hacks.txt: Removed.
2457         * platform/cairo/scale-removal.txt: Removed.
2458         * platform/cg/AffineTransformCG.cpp: Removed.
2459         * platform/cg/FloatPointCG.cpp: Removed.
2460         * platform/cg/FloatRectCG.cpp: Removed.
2461         * platform/cg/FloatSizeCG.cpp: Removed.
2462         * platform/cg/GraphicsContextCG.cpp: Removed.
2463         * platform/cg/GraphicsContextPlatformPrivate.h: Removed.
2464         * platform/cg/ImageCG.cpp: Removed.
2465         * platform/cg/ImageSourceCG.cpp: Removed.
2466         * platform/cg/IntPointCG.cpp: Removed.
2467         * platform/cg/IntRectCG.cpp: Removed.
2468         * platform/cg/IntSizeCG.cpp: Removed.
2469         * platform/cg/PDFDocumentImage.cpp: Removed.
2470         * platform/cg/PDFDocumentImage.h: Removed.
2471         * platform/cg/PathCG.cpp: Removed.
2472         * platform/gdk/ImageGdk.cpp: Removed.
2473         * platform/mac/ColorMac.mm: Removed.
2474         * platform/mac/FloatPointMac.mm: Removed.
2475         * platform/mac/FloatRectMac.mm: Removed.
2476         * platform/mac/FloatSizeMac.mm: Removed.
2477         * platform/mac/GraphicsContextMac.mm:
2478         * platform/mac/IconMac.mm: Removed.
2479         * platform/mac/ImageMac.mm: Removed.
2480         * platform/mac/IntPointMac.mm: Removed.
2481         * platform/mac/IntRectMac.mm: Removed.
2482         * platform/mac/IntSizeMac.mm: Removed.
2483         * platform/qt/AffineTransformQt.cpp: Removed.
2484         * platform/qt/ColorQt.cpp: Removed.
2485         * platform/qt/FloatPointQt.cpp: Removed.
2486         * platform/qt/FloatRectQt.cpp: Removed.
2487         * platform/qt/IconQt.cpp: Removed.
2488         * platform/qt/ImageQt.cpp: Removed.
2489         * platform/qt/ImageSourceQt.cpp: Removed.
2490         * platform/qt/IntPointQt.cpp: Removed.
2491         * platform/qt/IntRectQt.cpp: Removed.
2492         * platform/qt/IntSizeQt.cpp: Removed.
2493         * platform/qt/PathQt.cpp: Removed.
2494         * platform/win/ImageWin.cpp: Removed.
2495         * platform/win/IntPointWin.cpp: Removed.
2496         * platform/win/IntRectWin.cpp: Removed.
2497         * platform/win/IntSizeWin.cpp: Removed.
2498
2499 2006-11-11  Graham Dennis  <graham.dennis@gmail.com>
2500
2501         Reviewed by hyatt.
2502
2503         A layout test was added when this bug was fixed, so none needed now.
2504         
2505         Cleanup after:
2506         REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
2507         http://bugs.webkit.org/show_bug.cgi?id=11570
2508         
2509         * rendering/RenderStyle.h:
2510         (WebCore::RenderStyle::isSpace): Removed.
2511         * rendering/RenderText.cpp:
2512         (WebCore::isSpace): Added.
2513         (WebCore::RenderText::calcMinMaxWidth): Use inline function instead of polluting RenderStyle.
2514
2515 2006-11-11  Graham Dennis  <graham.dennis@gmail.com>
2516
2517         Reviewed by mitz.
2518         
2519         REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
2520         http://bugs.webkit.org/show_bug.cgi?id=11570
2521
2522         * rendering/RenderStyle.h:
2523         (WebCore::RenderStyle::isSpace): Added.
2524         * rendering/RenderText.cpp:
2525         (WebCore::RenderText::calcMinMaxWidth): For the purposes of calculating the line widths, 
2526         treat non-breaking spaces the same as normal spaces if -webkit-nbsp-mode is 'space'
2527
2528 2006-11-10  Zalan Bujtas <zalan.bujtas@nokia.com>
2529
2530         Reviewed by Maciej.
2531
2532         Added basic types for symbian platform.
2533         http://bugs.webkit.org/show_bug.cgi?id=11540
2534
2535         * config.h:
2536         * platform/AtomicString.h:
2537         (WebCore::AtomicString::AtomicString):
2538         (WebCore::AtomicString::operator TPtrC):
2539         * platform/DeprecatedString.cpp:
2540         (WebCore::initializeHandleNodeBlock):
2541         * platform/DeprecatedString.h: char _internalBuffer has to be in front of
2542           the bitfields as Codewarrior (3.2.5 build 461) compiler cannot cope with
2543           bitfields and breaks byte aligment
2544         * platform/FloatPoint.h:
2545         * platform/FloatRect.h:
2546         * platform/IntPoint.h:
2547         * platform/IntRect.h:
2548         * platform/IntSize.h:
2549         * platform/PlatformString.h:
2550         (WebCore::String::operator TPtrC):
2551         (WebCore::String::des):
2552         * platform/StringImpl.h:
2553         * platform/symbian/DeprecatedStringSymbian.cpp: Added.
2554         (WebCore::DeprecatedString::setBufferFromDes):
2555         (WebCore::DeprecatedString::fromDes):
2556         (WebCore::DeprecatedString::des):
2557         (WebCore::DeprecatedString::des8):
2558         * platform/symbian/FloatPointSymbian.cpp: Added.
2559         (WebCore::FloatPoint::FloatPoint):
2560         (WebCore::FloatPoint::operator TPoint):
2561         * platform/symbian/FloatRectSymbian.cpp: Added.
2562         (WebCore::FloatRect::FloatRect):
2563         (WebCore::FloatRect::operator TRect):
2564         (WebCore::FloatRect::rect):
2565         * platform/symbian/IntPointSymbian.cpp: Added.
2566         (WebCore::IntPoint::IntPoint):
2567         (WebCore::IntPoint::operator TPoint):
2568         * platform/symbian/IntRectSymbian.cpp: Added.
2569         (WebCore::IntRect::IntRect):
2570         (WebCore::IntRect::operator TRect):
2571         (WebCore::IntRect::Rect):
2572         * platform/symbian/IntSizeSymbian.cpp: Added.
2573         (WebCore::IntSize::IntSize):
2574         (WebCore::IntSize::operator TSize):
2575         * platform/symbian/StringImplSymbian.cpp: Added.
2576         (WebCore::StringImpl::StringImpl):
2577         (WebCore::StringImpl::des):
2578         * platform/symbian/StringSymbian.cpp: Added.
2579         (WebCore::String::String):
2580
2581 2006-11-10  Zack Rusin  <zack@kde.org>
2582
2583         Reviewed by Anders.
2584
2585         Adjust to the changes Brady made in the Qt code.
2586
2587         * loader/qt/FrameLoaderClientQt.cpp:
2588         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
2589         * loader/qt/FrameLoaderClientQt.h:
2590
2591 2006-11-10  Justin Garcia  <justin.garcia@apple.com>
2592
2593         Reviewed by harrison
2594         
2595         <rdar://problem/4069359>
2596         Deleting hyperlink text, then typing uses link typing style but loses the link itself
2597         
2598         The removed anchor element needs to stick around temporarily, in the same way
2599         that the typing style hangs off the caret until the user moves it.  Also text
2600         insertion around anchors didn't match TextEdit.
2601
2602         * editing/DeleteSelectionCommand.cpp:
2603         (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor): Added.
2604         (WebCore::DeleteSelectionCommand::doApply): Call saveFullySelectedAnchor.
2605         * editing/DeleteSelectionCommand.h:
2606         * editing/EditCommand.cpp:
2607         (WebCore::EditCommand::apply): Clear the removed anchor after any top level
2608         editing command that doesn't preserve the typing style (matches TextEdit).
2609         * editing/Editor.cpp:
2610         (WebCore::Editor::appliedEditing): Added a fixme: we shouldn't call 
2611         setSelection with a message telling it to clear the typing style 
2612         (and the saved anchor) here.  Save/restore the saved anchor because of this.
2613         * editing/Editor.h:
2614         (WebCore::Editor::removedAnchor): Getter.
2615         (WebCore::Editor::setRemovedAnchor): Setter.
2616         * editing/InsertTextCommand.cpp:
2617         (WebCore::InsertTextCommand::prepareForTextInsertion): Insert the saved anchor
2618         if one exists.
2619         * editing/SelectionController.cpp:
2620         (WebCore::SelectionController::setSelection): Clear the removed anchor whenever
2621         we make a selection change that clears the typing style.
2622         (WebCore::SelectionController::nodeWillBeRemoved): Removed an old outdated FIXME.
2623         * editing/htmlediting.cpp:
2624         (WebCore::positionAvoidingSpecialElementBoundary): Cleaned up and
2625         made some changes to match TextEdit's behavior.  First, insert content
2626         inside the anchor when the caret is after it, unless the caret is at the
2627         end of the document, or if the caret is before it and at the start of a 
2628         paragraph.
2629
2630 === Safari-521.30 ===
2631
2632 2006-11-10  Timothy Hatcher  <timothy@apple.com>
2633
2634         Reviewed by Hyatt.
2635
2636         Check for BHIDDEN in isVisible() also.
2637
2638         * rendering/RenderStyle.h:
2639         (WebCore::BorderValue::isVisible):
2640
2641 2006-11-10  Timothy Hatcher  <timothy@apple.com>
2642
2643         Reviewed by Adam.
2644
2645         <rdar://problem/4821423> element deletion UI appears for Mail blockquote and others with less than three visible borders
2646
2647         Added a new function to BorderValue called isVisible(). This checks nonZero() and !isTransparent().
2648
2649         * editing/DeleteButtonController.cpp:
2650         (WebCore::isDeletableElement):
2651         * rendering/RenderStyle.h:
2652         (WebCore::BorderValue::isVisible):
2653
2654 2006-11-10  Adam Roben  <aroben@apple.com>
2655
2656         Rubberstamped by Anders.
2657
2658         Back out some accidentally-committed changes from r17711.
2659
2660         * page/Frame.cpp:
2661         (WebCore::Frame::command):
2662         (WebCore::FramePrivate::FramePrivate):
2663         * page/Frame.h:
2664         * page/FramePrivate.h:
2665
2666 2006-11-10  Anders Carlsson  <acarlsson@apple.com>
2667
2668         Reviewed by Geoff.
2669
2670         Add more commands, make toggleBold and toggleItalic executable commands.
2671
2672         * WebCore.exp:
2673         * editing/Editor.cpp:
2674         (WebCore::execCopy):
2675         (WebCore::execCut):
2676         (WebCore::execDelete):
2677         (WebCore::execForwardDelete):
2678         (WebCore::execPaste):
2679         (WebCore::execSelectAll):
2680         (WebCore::execToggleBold):
2681         (WebCore::execToggleItalic):
2682         (WebCore::enabled):
2683         (WebCore::canPaste):
2684         (WebCore::hasEditableSelection):
2685         (WebCore::hasEditableRangeSelection):
2686         (WebCore::hasRangeSelection):
2687         (WebCore::hasRichlyEditableSelection):
2688         (WebCore::CommandEntry::):
2689         * editing/Editor.h:
2690
2691 2006-11-10  Anders Carlsson  <acarlsson@apple.com>
2692
2693         Reviewed by Maciej, Geoff.
2694
2695         Added an execCommand method to Editor. The idea is that this should replace the CommandByName object. Get rid of
2696         the alterCurrentSelection method in the bridge. WebKit can just call execCommand directly.
2697
2698         * WebCore.exp:
2699         * bridge/mac/WebCoreFrameBridge.h:
2700         * bridge/mac/WebCoreFrameBridge.mm:
2701         * editing/Editor.cpp:
2702         (WebCore::execMoveBackward):
2703         (WebCore::execMoveBackwardAndModifySelection):
2704         (WebCore::execMoveDown):
2705         (WebCore::execMoveDownAndModifySelection):
2706         (WebCore::execMoveForward):
2707         (WebCore::execMoveForwardAndModifySelection):
2708         (WebCore::execMoveLeft):
2709         (WebCore::execMoveLeftAndModifySelection):
2710         (WebCore::execMoveRight):
2711         (WebCore::execMoveRightAndModifySelection):
2712         (WebCore::execMoveToBeginningOfDocument):
2713         (WebCore::execMoveToBeginningOfDocumentAndModifySelection):
2714         (WebCore::execMoveToBeginningOfSentence):
2715         (WebCore::execMoveToBeginningOfSentenceAndModifySelection):
2716         (WebCore::execMoveToBeginningOfLine):
2717         (WebCore::execMoveToBeginningOfLineAndModifySelection):
2718         (WebCore::execMoveToBeginningOfParagraph):
2719         (WebCore::execMoveToBeginningOfParagraphAndModifySelection):
2720         (WebCore::execMoveToEndOfDocument):
2721         (WebCore::execMoveToEndOfDocumentAndModifySelection):
2722         (WebCore::execMoveToEndOfSentence):
2723         (WebCore::execMoveToEndOfSentenceAndModifySelection):
2724         (WebCore::execMoveToEndOfLine):
2725         (WebCore::execMoveToEndOfLineAndModifySelection):
2726         (WebCore::execMoveToEndOfParagraph):
2727         (WebCore::execMoveToEndOfParagraphAndModifySelection):
2728         (WebCore::execMoveParagraphBackwardAndModifySelection):
2729         (WebCore::execMoveParagraphForwardAndModifySelection):
2730         (WebCore::execMoveUp):
2731         (WebCore::execMoveUpAndModifySelection):
2732         (WebCore::execMoveWordBackward):
2733         (WebCore::execMoveWordBackwardAndModifySelection):
2734         (WebCore::execMoveWordForward):
2735         (WebCore::execMoveWordForwardAndModifySelection):
2736         (WebCore::execMoveWordLeft):
2737         (WebCore::execMoveWordLeftAndModifySelection):
2738         (WebCore::execMoveWordRight):
2739         (WebCore::execMoveWordRightAndModifySelection):
2740         (WebCore::enabledAnySelection):
2741         (WebCore::createCommandMap):
2742         (WebCore::CommandEntry::):
2743         (WebCore::Editor::execCommand):
2744         * editing/Editor.h:
2745
2746 2006-11-10  Brady Eidson  <beidson@apple.com>
2747
2748         Reviewed by Darin
2749
2750         Took out WebIconDatabaseBridge and made WebKit call IconDatabase directly
2751
2752         * WebCore.exp:
2753         * WebCore.xcodeproj/project.pbxproj:
2754         * bridge/mac/WebCoreIconDatabaseBridge.h: Removed.
2755         * bridge/mac/WebCoreIconDatabaseBridge.mm: Removed.
2756         * loader/FrameLoaderClient.h:
2757         * loader/icon/IconDatabase.cpp:
2758         (WebCore::IconDatabase::sharedIconDatabase):
2759         (WebCore::IconDatabase::~IconDatabase):
2760         * loader/icon/IconDatabase.h:
2761         (WebCore::IconDatabase::isPrivateBrowsingEnabled):
2762         (WebCore::IconDatabase::enabled):
2763         * loader/icon/IconLoader.cpp:
2764         (WebCore::IconLoader::finishLoading):
2765         * loader/mac/FrameLoaderMac.mm:
2766
2767 2006-11-10  Zack Rusin  <zack@kde.org>
2768
2769         Reviewed and landed by Anders.
2770
2771         Adjust platform Qt/KDE code to the recent loader
2772         changes. 
2773
2774         * CMakeLists.txt:
2775         * loader/DocumentLoader.h:
2776         * loader/FrameLoader.cpp:
2777         (WebCore::FrameLoader::createEmptyDocument):
2778         * loader/FrameLoader.h:
2779         * loader/FrameLoaderClient.h:
2780         * loader/qt/DocumentLoaderQt.cpp: Added.
2781         (WebCore::canonicalizedTitle):
2782         (WebCore::DocumentLoader::DocumentLoader):
2783         (WebCore::DocumentLoader::frameLoader):
2784         (WebCore::DocumentLoader::~DocumentLoader):
2785         (WebCore::DocumentLoader::URL):
2786         (WebCore::DocumentLoader::unreachableURL):
2787         (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
2788         (WebCore::DocumentLoader::isStopping):
2789         (WebCore::DocumentLoader::clearErrors):
2790         (WebCore::DocumentLoader::stopLoading):
2791         (WebCore::DocumentLoader::setupForReplace):
2792         (WebCore::DocumentLoader::commitIfReady):
2793         (WebCore::DocumentLoader::finishedLoading):
2794         (WebCore::DocumentLoader::setCommitted):
2795         (WebCore::DocumentLoader::isCommitted):
2796         (WebCore::DocumentLoader::setLoading):
2797         (WebCore::DocumentLoader::isLoading):
2798         (WebCore::DocumentLoader::doesProgressiveLoad):
2799         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
2800         (WebCore::DocumentLoader::updateLoading):
2801         (WebCore::DocumentLoader::setFrame):
2802         (WebCore::DocumentLoader::attachToFrame):
2803         (WebCore::DocumentLoader::detachFromFrame):
2804         (WebCore::DocumentLoader::prepareForLoadStart):
2805         (WebCore::DocumentLoader::loadingStartedTime):
2806         (WebCore::DocumentLoader::setIsClientRedirect):
2807         (WebCore::DocumentLoader::isClientRedirect):
2808         (WebCore::DocumentLoader::setPrimaryLoadComplete):
2809         (WebCore::DocumentLoader::isLoadingInAPISense):
2810         (WebCore::DocumentLoader::stopRecordingResponses):
2811         (WebCore::DocumentLoader::title):
2812         (WebCore::DocumentLoader::triggeringAction):
2813         (WebCore::DocumentLoader::setTriggeringAction):
2814         (WebCore::DocumentLoader::setOverrideEncoding):
2815         (WebCore::DocumentLoader::overrideEncoding):
2816         (WebCore::DocumentLoader::setTitle):
2817         (WebCore::DocumentLoader::URLForHistory):
2818         * loader/qt/FrameLoaderClientQt.cpp: Added.
2819         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2820         (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
2821         (WebCore::FrameLoaderClientQt::detachFrameLoader):
2822         (WebCore::FrameLoaderClientQt::hasWebView):
2823         (WebCore::FrameLoaderClientQt::hasFrameView):
2824         (WebCore::FrameLoaderClientQt::hasBackForwardList):
2825         (WebCore::FrameLoaderClientQt::resetBackForwardList):
2826         (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
2827         (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
2828         (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
2829         (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
2830         (WebCore::FrameLoaderClientQt::makeDocumentView):
2831         (WebCore::FrameLoaderClientQt::makeRepresentation):
2832         (WebCore::FrameLoaderClientQt::forceLayout):
2833         (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
2834         (WebCore::FrameLoaderClientQt::updateHistoryForCommit):
2835         (WebCore::FrameLoaderClientQt::updateHistoryForBackForwardNavigation):
2836         (WebCore::FrameLoaderClientQt::updateHistoryForReload):
2837         (WebCore::FrameLoaderClientQt::updateHistoryForStandardLoad):
2838         (WebCore::FrameLoaderClientQt::updateHistoryForInternalLoad):
2839         (WebCore::FrameLoaderClientQt::updateHistoryAfterClientRedirect):
2840         (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
2841         (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
2842         (WebCore::FrameLoaderClientQt::resetAfterLoadError):
2843         (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
2844         (WebCore::FrameLoaderClientQt::willCloseDocument):
2845         (WebCore::FrameLoaderClientQt::detachedFromParent1):
2846         (WebCore::FrameLoaderClientQt::detachedFromParent2):
2847         (WebCore::FrameLoaderClientQt::detachedFromParent3):
2848         (WebCore::FrameLoaderClientQt::detachedFromParent4):
2849         (WebCore::FrameLoaderClientQt::loadedFromPageCache):
2850         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2851         (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
2852         (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
2853         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2854         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
2855         (WebCore::FrameLoaderClientQt::dispatchWillClose):
2856         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2857         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2858         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2859         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2860         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
2861         (WebCore::FrameLoaderClientQt::dispatchShow):
2862         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
2863         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
2864         (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
2865         (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
2866         (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
2867         (WebCore::FrameLoaderClientQt::revertToProvisionalState):
2868         (WebCore::FrameLoaderClientQt::clearUnarchivingState):
2869         (WebCore::FrameLoaderClientQt::progressStarted):
2870         (WebCore::FrameLoaderClientQt::progressCompleted):
2871         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2872         (WebCore::FrameLoaderClientQt::willChangeTitle):
2873         (WebCore::FrameLoaderClientQt::didChangeTitle):
2874         (WebCore::FrameLoaderClientQt::finishedLoading):
2875         (WebCore::FrameLoaderClientQt::finalSetupForReplace):
2876         (WebCore::FrameLoaderClientQt::setDefersLoading):
2877         (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
2878         (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
2879         (WebCore::FrameLoaderClientQt::clearArchivedResources):
2880         (WebCore::FrameLoaderClientQt::canShowMIMEType):
2881         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
2882         (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
2883         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
2884         (WebCore::FrameLoaderClientQt::restoreScrollPositionAndViewState):
2885         (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
2886         (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
2887         (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
2888         (WebCore::FrameLoaderClientQt::didFinishLoad):
2889         (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
2890         (WebCore::FrameLoaderClientQt::setTitle):
2891         (WebCore::FrameLoaderClientQt::userAgent):
2892         * loader/qt/FrameLoaderClientQt.h: Added.
2893         * loader/qt/FrameLoaderQt.cpp:
2894         (WebCore::FrameLoader::submitForm):
2895         (WebCore::FrameLoader::overrideMediaType):
2896         (WebCore::FrameLoader::getHistoryLength):
2897         (WebCore::FrameLoader::referrer):
2898         (WebCore::FrameLoader::detachFromParent):
2899         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
2900         (WebCore::FrameLoader::goBackOrForward):
2901         (WebCore::FrameLoader::historyURL):
2902         (WebCore::FrameLoader::didFirstLayout):
2903         (WebCore::FrameLoader::canGoBackOrForward):
2904         (WebCore::FrameLoader::partClearedInBegin):
2905         (WebCore::FrameLoader::saveDocumentState):
2906         (WebCore::FrameLoader::restoreDocumentState):
2907         (WebCore::FrameLoader::didChangeTitle):
2908         (WebCore::FrameLoader::redirectDataToPlugin):
2909         (WebCore::PolicyCheck::PolicyCheck):
2910         (WebCore::PolicyCheck::clear):
2911         (WebCore::PolicyCheck::set):
2912         (WebCore::PolicyCheck::call):
2913         (WebCore::PolicyCheck::clearRequest):
2914         * loader/qt/NavigationActionQt.cpp: Added.
2915         (WebCore::navigationType):
2916         (WebCore::NavigationAction::NavigationAction):
2917         * loader/qt/ResourceLoaderQt.cpp: Added.
2918         (WebCore::ResourceLoader::ResourceLoader):
2919         (WebCore::ResourceLoader::~ResourceLoader):
2920         (WebCore::ResourceLoader::setDefersLoading):
2921         (WebCore::ResourceLoader::cancel):
2922         (WebCore::ResourceLoader::loadsBlocked):
2923         * platform/MimeTypeRegistry.cpp:
2924         (WebCore::initialiseSupportedImageMIMETypes):
2925         * platform/network/qt/ResourceHandleManager.cpp:
2926         (WebCore::ResourceHandleManager::slotResult):
2927         (WebCore::ResourceHandleManager::cancel):
2928         * platform/qt/ChromeClientQt.cpp: Added.
2929         (WebCore::rootWindowForFrame):
2930         (WebCore::ChromeClientQt::ChromeClientQt):
2931         (WebCore::ChromeClientQt::~ChromeClientQt):
2932         (WebCore::ChromeClientQt::setWindowRect):
2933         (WebCore::ChromeClientQt::windowRect):
2934         (WebCore::ChromeClientQt::pageRect):
2935         (WebCore::ChromeClientQt::scaleFactor):
2936         (WebCore::ChromeClientQt::focus):
2937         (WebCore::ChromeClientQt::unfocus):
2938         (WebCore::ChromeClientQt::createWindow):
2939         (WebCore::ChromeClientQt::createModalDialog):
2940         (WebCore::ChromeClientQt::show):
2941         (WebCore::ChromeClientQt::canRunModal):
2942         (WebCore::ChromeClientQt::runModal):
2943         (WebCore::ChromeClientQt::setToolbarsVisible):
2944         (WebCore::ChromeClientQt::toolbarsVisible):
2945         (WebCore::ChromeClientQt::setStatusbarVisible):
2946         (WebCore::ChromeClientQt::statusbarVisible):
2947         (WebCore::ChromeClientQt::setScrollbarsVisible):
2948         (WebCore::ChromeClientQt::scrollbarsVisible):
2949         (WebCore::ChromeClientQt::setMenubarVisible):
2950         (WebCore::ChromeClientQt::menubarVisible):
2951         (WebCore::ChromeClientQt::setResizable):
2952         * platform/qt/ChromeClientQt.h: Added.
2953         * platform/qt/EditorClientQt.cpp:
2954         (WebCore::EditorClientQt::shouldBeginEditing):
2955         (WebCore::EditorClientQt::shouldEndEditing):
2956         (WebCore::EditorClientQt::shouldApplyStyle):
2957         (WebCore::EditorClientQt::didBeginEditing):
2958         (WebCore::EditorClientQt::respondToChangedContents):
2959         (WebCore::EditorClientQt::didEndEditing):
2960         * platform/qt/EditorClientQt.h:
2961         * platform/qt/FrameQt.cpp:
2962         (WebCore::FrameQt::FrameQt):
2963         (WebCore::FrameQt::~FrameQt):
2964         (WebCore::FrameQt::keyEvent):
2965         * platform/qt/FrameQt.h:
2966         * platform/qt/FrameQtClient.cpp:
2967         (WebCore::FrameQtClientDefault::openURL):
2968         (WebCore::FrameQtClientDefault::didReceiveData):
2969         (WebCore::FrameQtClientDefault::receivedAllData):
2970         * platform/qt/ImageQt.cpp:
2971         * platform/qt/MimeTypeRegistryQt.cpp: Added.
2972         (WebCore::getMIMETypeForUTI):
2973         (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
2974         * platform/qt/PageQt.cpp:
2975         * platform/qt/PlatformKeyboardEventQt.cpp:
2976         (WebCore::keyIdentifierForQtKeyCode):
2977         * platform/qt/ScreenQt.cpp:
2978         * platform/qt/TemporaryLinkStubs.cpp:
2979         (WebCore::TextField::TextField):
2980         (WebCore::screenDepth):
2981         (WebCore::screenDepthPerComponent):
2982         (WebCore::screenIsMonochrome):
2983         (WebCore::screenRect):
2984         (WebCore::screenAvailableRect):
2985
2986 2006-11-10  Brady Eidson <beidson@apple.com>
2987
2988         Reviewed by Mitz
2989
2990         http://bugs.webkit.org/show_bug.cgi?id=11554
2991         Fix the above bug (in didFinishLoading) and also another potential bug in didFailWithError
2992         in case the icon load fails after some data has been received. 
2993
2994         * loader/icon/IconLoader.cpp:
2995         (WebCore::IconLoader::didFailWithError): Clear the buffer so half-an-image isn't commited to the DB
2996         on error.  Also, as a loader re-factoring sanity check, added an assertion
2997         (WebCore::IconLoader::didFinishLoading): If an icon loader resulted in an error-response, the icon 
2998         is already committed to the DB.  Skip doing that step twice.
2999
3000 2006-11-09  Oliver Hunt  <oliver@apple.com>
3001
3002         Reviewed by Brady.
3003
3004         Pulled MIME type handling out of WebFrameBridge and added
3005         a general C++ class to store/query MIME info
3006         Added an Obj-C bridge to provide WebKit with access to the
3007         MimeTypeRegistry for non-Obj-C++ classes.
3008         
3009         * WebCore.exp:
3010         * WebCore.xcodeproj/project.pbxproj:
3011         * bridge/mac/WebCoreFrameBridge.h:
3012         * bridge/mac/WebCoreFrameBridge.mm:
3013         * bridge/mac/WebMimeTypeRegistryBridge.h: Added.
3014         * bridge/mac/WebMimeTypeRegistryBridge.mm: Added.
3015         (+[WebMimeTypeRegistryBridge supportsImageWithMIMEType:]):
3016         (+[WebMimeTypeRegistryBridge supportsNonImageWithMIMEType:]):
3017         (+[WebMimeTypeRegistryBridge supportedNonImageMIMETypes]):
3018         (+[WebMimeTypeRegistryBridge supportedImageMIMETypes]):
3019         (+[WebMimeTypeRegistryBridge supportedImageResourceMIMETypes]):
3020         * platform/Image.cpp:
3021         (WebCore::Image::supportsType):
3022         * platform/Image.h:
3023         * platform/MimeTypeRegistry.cpp: Added.
3024         (WebCore::initialiseSupportedImageMIMETypes):
3025         (WebCore::initialiseSupportedNonImageMimeTypes):
3026         (WebCore::initialiseMimeTypeRegistry):
3027         (WebCore::MimeTypeRegistry::isSupportedImageMIMEType):
3028         (WebCore::MimeTypeRegistry::isSupportedImageResourceMIMEType):
3029         (WebCore::MimeTypeRegistry::isSupportedNonImageMIMEType):
3030         (WebCore::MimeTypeRegistry::getSupportedImageMIMETypes):
3031         (WebCore::MimeTypeRegistry::getSupportedImageResourceMIMETypes):
3032         (WebCore::MimeTypeRegistry::getSupportedNonImageMIMETypes):
3033         * platform/MimeTypeRegistry.h: Added.
3034         * platform/mac/ImageMac.mm:
3035         * platform/mac/MimeTypeRegistryMac.mm: Added.
3036         (WebCore::getMIMETypeForUTI):
3037         (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
3038
3039 2006-11-09  Maciej Stachowiak  <mjs@apple.com>
3040
3041         Reviewed by Oliver.
3042
3043         - rename String::sprintf and DeprecatedString::sprintf to ...::format to avoid needlessly tweaking a search
3044         for insecure functions. Neither of these has risk of buffer overruns since they calculate the buffer size
3045         for you and use vsnprintf.
3046
3047         * bindings/js/kjs_window.cpp:
3048         (KJS::Window::isSafeScript):
3049         * css/cssparser.cpp:
3050         (WebCore::CSSParser::parseColorFromValue):
3051         * dom/StyledElement.cpp:
3052         (WebCore::StyledElement::addCSSColor):
3053         * dom/XMLTokenizer.cpp:
3054         (WebCore::XMLTokenizer::handleError):
3055         * ksvg2/css/SVGCSSParser.cpp:
3056         (WebCore::CSSParser::parseSVGPaint):
3057         (WebCore::CSSParser::parseSVGColor):
3058         * ksvg2/svg/SVGPathSegArc.h:
3059         (WebCore::SVGPathSegArcAbs::toString):
3060         (WebCore::SVGPathSegArcRel::toString):
3061         * ksvg2/svg/SVGPathSegCurvetoCubic.h:
3062         (WebCore::SVGPathSegCurvetoCubicAbs::toString):
3063         (WebCore::SVGPathSegCurvetoCubicRel::toString):
3064         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
3065         (WebCore::SVGPathSegCurvetoCubicSmoothAbs::toString):
3066         (WebCore::SVGPathSegCurvetoCubicSmoothRel::toString):
3067         * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
3068         (WebCore::SVGPathSegCurvetoQuadraticAbs::toString):
3069         (WebCore::SVGPathSegCurvetoQuadraticRel::toString):
3070         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
3071         (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::toString):
3072         (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::toString):
3073         * ksvg2/svg/SVGPathSegLineto.h:
3074         (WebCore::SVGPathSegLinetoAbs::toString):
3075         (WebCore::SVGPathSegLinetoRel::toString):
3076         * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
3077         (WebCore::SVGPathSegLinetoHorizontalAbs::toString):
3078         (WebCore::SVGPathSegLinetoHorizontalRel::toString):
3079         * ksvg2/svg/SVGPathSegLinetoVertical.h:
3080         (WebCore::SVGPathSegLinetoVerticalAbs::toString):
3081         (WebCore::SVGPathSegLinetoVerticalRel::toString):
3082         * ksvg2/svg/SVGPathSegMoveto.h:
3083         (WebCore::SVGPathSegMovetoAbs::toString):
3084         (WebCore::SVGPathSegMovetoRel::toString):
3085         * ksvg2/svg/SVGPolyElement.cpp:
3086         (WebCore::SVGPolyElement::notifyAttributeChange):
3087         * ksvg2/svg/SVGUseElement.cpp:
3088         (WebCore::SVGUseElement::closeRenderer):
3089         * loader/icon/IconDatabase.cpp:
3090         (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
3091         * loader/icon/SQLDatabase.cpp:
3092         (WebCore::SQLDatabase::setSynchronous):
3093         * platform/Color.cpp:
3094         (WebCore::Color::name):
3095         * platform/DeprecatedString.cpp:
3096         (WebCore::DeprecatedString::setNum):
3097         (WebCore::DeprecatedString::format):
3098         * platform/DeprecatedString.h:
3099         * platform/PlatformString.h:
3100         * platform/String.cpp:
3101         (WebCore::String::format):
3102         (WebCore::String::number):
3103         * platform/mac/KeyEventMac.mm:
3104         (WebCore::keyIdentifierForKeyEvent):
3105         * platform/win/KeyEventWin.cpp:
3106         (WebCore::keyIdentifierForWindowsKeyCode):
3107         * rendering/RenderListMarker.cpp:
3108         (WebCore::RenderListMarker::calcMinMaxWidth):
3109
3110 2006-11-09  Maciej Stachowiak  <mjs@apple.com>
3111
3112         Reviewed by Anders.
3113
3114         - fixed "Regression: Can't log into gmail.com"
3115         - fixed "iBench doesn't report results - tests run but no number is recorded"
3116         
3117         * platform/network/cf/FormDataStreamCFNet.cpp:
3118         (WebCore::setHTTPBody): Removed extra ! character.
3119
3120 2006-11-09  Beth Dakin  <bdakin@apple.com>
3121
3122         Reviewed by Hyatt.
3123
3124         Fix for <rdar://problem/4805409> REGRESSION: Reproducible crash in 
3125         WebCore::RenderBlock::skipWhitespace
3126
3127         Note that this will still crash on Debug builds because it will hit 
3128         an assertion failure in editing. (One of the reasons there is no 
3129         layout test along with this fix.) There is definitely some editing 
3130         wackiness happening. See http://bugs.webkit.org/show_bug.cgi?
3131         id=10144 for updates on the assertion failure bug.
3132
3133         * rendering/RootInlineBox.cpp:
3134         (WebCore::RootInlineBox::childRemoved): It is possible for a 
3135         prevRootBox and its prevRootBox to share a lineBreakObj. So instead 
3136         of just clearing the lineBreakObj of the prevRootBox, cycle through 
3137         all prevRootBoxs with the same lineBreakObj. 
3138
3139 2006-11-09  Adam Roben  <aroben@apple.com>
3140
3141         Reviewed by Geoff.
3142
3143         Fix the change in behavior I caused in r17680 with my build fix.
3144
3145         * rendering/RenderObject.cpp:
3146         (WebCore::RenderObject::maxTopMargin):
3147         (WebCore::RenderObject::maxBottomMargin):
3148
3149 2006-11-09  Anders Carlsson  <acarlsson@apple.com>
3150
3151         Reviewed by Adam, Oliver.
3152
3153         Move more functions to Editor.
3154
3155         * bridge/EditorClient.h:
3156         * bridge/mac/FrameMac.h:
3157         * bridge/mac/FrameMac.mm:
3158         * bridge/mac/WebCoreFrameBridge.h:
3159         * editing/EditCommand.cpp:
3160         (WebCore::EditCommand::apply):
3161         (WebCore::EditCommand::unapply):
3162         (WebCore::EditCommand::reapply):
3163         * editing/Editor.cpp:
3164         (WebCore::Editor::respondToChangedContents):
3165         (WebCore::dispatchEditableContentChangedEvents):
3166         (WebCore::Editor::appliedEditing):
3167         (WebCore::Editor::unappliedEditing):
3168         (WebCore::Editor::reappliedEditing):
3169         * editing/Editor.h:
3170         * editing/TypingCommand.cpp:
3171         (WebCore::TypingCommand::typingAddedToOpenCommand):
3172         * page/Frame.cpp:
3173         * page/Frame.h:
3174
3175 2006-11-09  Darin Adler  <darin@apple.com>
3176
3177         * rendering/RenderObject.h: Oops! Fixed accidentally checked-in ifdef.
3178
3179 2006-11-09  Alice Liu  <alice.liu@apple.com>
3180
3181         Reviewed by Beth Dakin.
3182
3183         Fixed <rdar://problem/4808720> Hamachi test tool crashes Safari in WebCore::HTMLTableSectionElement::deleteRow
3184         All existing layout tests pass
3185
3186         * html/HTMLTableElement.cpp:
3187         (WebCore::HTMLTableElement::deleteRow):
3188         check lastSection before deleting row
3189
3190 2006-11-09  Darin Adler  <darin@apple.com>
3191
3192         - improved version of last night's build fix (should not do using namespace in a header)
3193
3194         * rendering/RenderObject.h:
3195         * rendering/RenderObject.cpp:
3196         (WebCore::RenderObject::maxTopMargin):
3197         (WebCore::RenderObject::maxBottomMargin):
3198
3199 2006-11-08  Maciej Stachowiak  <mjs@apple.com>
3200
3201         Reviewed by Geoff.
3202         
3203         - added ResourceError class and didFailWithError client method
3204
3205         * WebCore.xcodeproj/project.pbxproj:
3206         * loader/icon/IconLoader.cpp:
3207         (WebCore::IconLoader::didFailWithError):
3208         (WebCore::IconLoader::didFinishLoading):
3209         * loader/icon/IconLoader.h:
3210         * loader/loader.cpp:
3211         (WebCore::Loader::receivedAllData):
3212         (WebCore::Loader::didFailWithError):
3213         * loader/loader.h:
3214         * loader/mac/SubresourceLoaderMac.mm:
3215         (WebCore::SubresourceLoader::didFail):
3216         (WebCore::SubresourceLoader::didCancel):
3217         * platform/cf/RetainPtr.h:
3218         (WebCore::):
3219         (WebCore::adoptCFReference):
3220         (WebCore::RetainPtr::RetainPtr):
3221         (WebCore::::adopt):
3222         * platform/network/ResourceError.cpp: Added.
3223         * platform/network/ResourceError.h: Added.
3224         (WebCore::ResourceError::ResourceError):
3225         (WebCore::ResourceError::domain):
3226         (WebCore::ResourceError::errorCode):
3227         (WebCore::ResourceError::failingURL):
3228         (WebCore::ResourceError::localizedDescription):
3229         (WebCore::ResourceError::unpackPlatformErrorIfNeeded):
3230         * platform/network/ResourceHandle.cpp:
3231         * platform/network/ResourceHandle.h:
3232         * platform/network/ResourceHandleClient.h:
3233         (WebCore::ResourceHandleClient::didFailWithError):
3234         * platform/network/cf/ResourceHandleCFNet.cpp:
3235         (WebCore::didFail):
3236         (WebCore::ResourceHandle::cancel):
3237         * platform/network/mac/ResourceErrorMac.mm: Added.
3238         (-[NSError WebCore]):
3239         * platform/network/mac/ResourceHandleMac.mm:
3240         (WebCore::ResourceHandle::reportError):
3241         * xml/xmlhttprequest.cpp:
3242         (WebCore::XMLHttpRequest::didFailWithError):
3243         (WebCore::XMLHttpRequest::didFinishLoading):
3244         * xml/xmlhttprequest.h:
3245
3246 2006-11-08  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
3247
3248         Reviewed by Maciej.
3249
3250         Linux\Gdk fixes.
3251
3252         * platform/gdk/ChromeClientGdk.h:
3253         (WebCore::ChromeClientGdk::~ChromeClientGdk):
3254         * platform/gdk/CursorGdk.cpp:
3255         (WebCore::Cursor::Cursor):
3256         (WebCore::moveCursor):
3257         * platform/gdk/FrameGdk.cpp:
3258         (WebCore::FrameGdk::FrameGdk):
3259         (WebCore::FrameGdk::submitForm):
3260         (WebCore::FrameGdk::urlSelected):
3261         * platform/gdk/PageGdk.cpp:
3262         * platform/gdk/ScreenClientGdk.h: Added.
3263         (WebCore::ScreenClientGdk::~ScreenClientGdk):
3264         * platform/gdk/ScreenGdk.cpp:
3265         (WebCore::ScreenClientGdk::depth):
3266         (WebCore::ScreenClientGdk::depthPerComponent):
3267         (WebCore::ScreenClientGdk::isMonochrome):
3268         (WebCore::ScreenClientGdk::rect):
3269         (WebCore::ScreenClientGdk::usableRect):
3270         * platform/gdk/TemporaryLinkStubs.cpp:
3271         (FrameGdk::historyURL):
3272         (ChromeClientGdk::windowRect):
3273         (ChromeClientGdk::setWindowRect):
3274         (ChromeClientGdk::pageRect):
3275         (ChromeClientGdk::scaleFactor):
3276         (ChromeClientGdk::focus):
3277         (ChromeClientGdk::unfocus):
3278         (ChromeClientGdk::createWindow):
3279         (ChromeClientGdk::createModalDialog):
3280         (ChromeClientGdk::show):
3281         (ChromeClientGdk::canRunModal):
3282         (ChromeClientGdk::runModal):
3283         (ChromeClientGdk::setToolbarsVisible):
3284         (ChromeClientGdk::toolbarsVisible):
3285         (ChromeClientGdk::setStatusbarVisible):
3286         (ChromeClientGdk::statusbarVisible):
3287         (ChromeClientGdk::setScrollbarsVisible):
3288         (ChromeClientGdk::scrollbarsVisible):
3289         (ChromeClientGdk::setMenubarVisible):
3290         (ChromeClientGdk::menubarVisible):
3291         (ChromeClientGdk::setResizable):
3292         * platform/network/ResourceHandleInternal.h:
3293         (WebCore::ResourceHandleInternal::client):
3294         * platform/network/gdk/ResourceHandleManager.cpp:
3295         (WebCore::writeCallback):
3296         (WebCore::ResourceHandleManager::downloadTimerCallback):
3297         (WebCore::ResourceHandleManager::remove):
3298
3299 2006-11-08  Adam Roben  <aroben@apple.com>
3300
3301         Build fix.
3302
3303         * rendering/RenderObject.h:
3304         (WebCore::RenderObject::maxTopMargin):
3305         (WebCore::RenderObject::maxBottomMargin):
3306
3307 2006-11-08  Geoffrey Garen  <ggaren@apple.com>
3308
3309         Reviewed by Anders Carlsson.
3310
3311         Made Screen a good platform citizen by removing its reference to Page. This
3312         made a class unnecessary, so all screen fuctions are stand-alone now.
3313
3314         * bindings/js/kjs_window.cpp: Removed unnecessary subtractions
3315         when computing the screen's available dimensions.
3316
3317 2006-11-08  Sam Weinig  <sam.weinig@gmail.com>
3318
3319         Reviewed by Mitz.
3320
3321         Fix for http://bugs.webkit.org/show_bug.cgi?id=11506
3322         Cleanup RenderObject
3323
3324         * rendering/RenderObject.cpp:
3325         (WebCore::RenderObject::operator delete):
3326         (WebCore::RenderObject::createObject):
3327         (WebCore::RenderObjectCounter::~RenderObjectCounter):
3328         (WebCore::RenderObject::RenderObject):
3329         (WebCore::RenderObject::isDescendantOf):
3330         (WebCore::RenderObject::isRoot):
3331         (WebCore::RenderObject::addChild):
3332         (WebCore::RenderObject::removeChildNode):
3333         (WebCore::RenderObject::removeChild):
3334         (WebCore::RenderObject::appendChildNode):
3335         (WebCore::RenderObject::insertChildNode):
3336         (WebCore::RenderObject::nextInPreOrder):
3337         (WebCore::RenderObject::nextInPreOrderAfterChildren):
3338         (WebCore::RenderObject::previousInPreOrder):
3339         (WebCore::RenderObject::isEditable):
3340         (WebCore::RenderObject::nextEditable):
3341         (WebCore::RenderObject::previousEditable):
3342         (WebCore::RenderObject::firstLeafChild):
3343         (WebCore::RenderObject::lastLeafChild):
3344         (WebCore::RenderObject::addLayers):
3345         (WebCore::RenderObject::removeLayers):
3346         (WebCore::RenderObject::moveLayers):
3347         (WebCore::RenderObject::findNextLayer):
3348         (WebCore::RenderObject::enclosingLayer):
3349         (WebCore::RenderObject::updateFirstLetter):
3350         (WebCore::RenderObject::offsetParent):
3351         (WebCore::RenderObject::scroll):
3352         (WebCore::RenderObject::hasStaticX):
3353         (WebCore::RenderObject::setNeedsLayout):
3354         (WebCore::RenderObject::setChildNeedsLayout):
3355         (WebCore::RenderObject::markContainingBlocksForLayout):
3356         (WebCore::RenderObject::containingBlock):
3357         (WebCore::RenderObject::containingBlockWidth):
3358         (WebCore::RenderObject::containingBlockHeight):
3359         (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
3360         (WebCore::RenderObject::drawBorderArc):
3361         (WebCore::RenderObject::drawBorder):
3362         (WebCore::RenderObject::paintBorderImage):
3363         (WebCore::RenderObject::paintBorder):
3364         (WebCore::RenderObject::absoluteRects):
3365         (WebCore::RenderObject::addPDFURLRect):
3366         (WebCore::RenderObject::addFocusRingRects):
3367         (WebCore::RenderObject::paintOutline):
3368         (WebCore::RenderObject::repaint):
3369         (WebCore::RenderObject::repaintRectangle):
3370         (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
3371         (WebCore::RenderObject::repaintObjectsBeforeLayout):
3372         (WebCore::RenderObject::getAbsoluteRepaintRectWithOutline):
3373         (WebCore::RenderObject::information):
3374         (WebCore::RenderObject::dump):
3375         (WebCore::selectStartNode):
3376         (WebCore::RenderObject::shouldSelect):
3377         (WebCore::RenderObject::draggableNode):
3378         (WebCore::RenderObject::createAnonymousBlock):
3379         (WebCore::RenderObject::handleDynamicFloatPositionChange):
3380         (WebCore::RenderObject::setStyle):
3381         (WebCore::RenderObject::setStyleInternal):
3382         (WebCore::RenderObject::updateBackgroundImages):
3383         (WebCore::RenderObject::absolutePosition):
3384         (WebCore::RenderObject::caretRect):
3385         (WebCore::RenderObject::paddingTop):
3386         (WebCore::RenderObject::paddingBottom):
3387         (WebCore::RenderObject::paddingLeft):
3388         (WebCore::RenderObject::paddingRight):
3389         (WebCore::RenderObject::tabWidth):
3390         (WebCore::RenderObject::container):
3391         (WebCore::RenderObject::removeFromObjectLists):
3392         (WebCore::RenderObject::destroy):
3393         (WebCore::RenderObject::arenaDelete):
3394         (WebCore::RenderObject::hitTest):
3395         (WebCore::RenderObject::setInnerNode):
3396         (WebCore::RenderObject::nodeAtPoint):
3397         (WebCore::RenderObject::verticalPositionHint):
3398         (WebCore::RenderObject::getVerticalPosition):
3399         (WebCore::RenderObject::lineHeight):
3400         (WebCore::RenderObject::invalidateVerticalPositions):
3401         (WebCore::RenderObject::recalcMinMaxWidths):
3402         (WebCore::RenderObject::scheduleRelayout):
3403         (WebCore::RenderObject::setInlineBoxWrapper):
3404         (WebCore::RenderObject::firstLineStyle):
3405         (WebCore::RenderObject::getPseudoStyle):
3406         (WebCore::RenderObject::getTextDecorationColors):
3407         (WebCore::RenderObject::addDashboardRegions):
3408         (WebCore::RenderObject::collectDashboardRegions):
3409         (WebCore::RenderObject::avoidsFloats):
3410         (WebCore::RenderObject::findCounter):
3411         (WebCore::RenderObject::backslashAsCurrencySymbol):
3412         (WebCore::RenderObject::imageChanged):
3413         (WebCore::RenderObject::previousOffset):
3414         (WebCore::RenderObject::nextOffset):
3415         (WebCore::RenderObject::inlineBox):
3416         * rendering/RenderObject.h:
3417         (WebCore::):
3418         (WebCore::RenderObject::renderName):
3419         (WebCore::RenderObject::parent):
3420         (WebCore::RenderObject::previousSibling):
3421         (WebCore::RenderObject::nextSibling):
3422         (WebCore::RenderObject::firstChild):
3423         (WebCore::RenderObject::lastChild):
3424         (WebCore::RenderObject::getOverflowClipRect):
3425         (WebCore::RenderObject::getClipRect):
3426         (WebCore::RenderObject::getBaselineOfFirstLineBox):
3427         (WebCore::RenderObject::setEdited):
3428         (WebCore::RenderObject::setStaticX):
3429         (WebCore::RenderObject::setStaticY):
3430         (WebCore::RenderObject::setPreviousSibling):
3431         (WebCore::RenderObject::setNextSibling):
3432         (WebCore::RenderObject::setParent):
3433         (WebCore::RenderObject::isInlineBlockOrInlineTable):
3434         (WebCore::RenderObject::isRenderView):
3435         (WebCore::RenderObject::childrenInline):
3436         (WebCore::RenderObject::setChildrenInline):
3437         (WebCore::RenderObject::isAnonymousBlock):
3438         (WebCore::RenderObject::isDragging):
3439         (WebCore::RenderObject::needsLayout):
3440         (WebCore::RenderObject::setMinMaxKnown):
3441         (WebCore::RenderObject::setNeedsLayoutAndMinMaxRecalc):
3442         (WebCore::RenderObject::setPositioned):
3443         (WebCore::RenderObject::setRelPositioned):
3444         (WebCore::RenderObject::setFloating):
3445         (WebCore::RenderObject::setInline):
3446         (WebCore::RenderObject::setShouldPaintBackgroundOrBorder):
3447         (WebCore::RenderObject::setReplaced):
3448         (WebCore::RenderObject::PaintInfo::PaintInfo):
3449         (WebCore::RenderObject::paintBackgroundExtended):
3450         (WebCore::RenderObject::calcWidth):
3451         (WebCore::RenderObject::updateFromElement):
3452         (WebCore::RenderObject::RepaintInfo::RepaintInfo):
3453         (WebCore::RenderObject::setOverrideSize):
3454         (WebCore::RenderObject::setPos):
3455         (WebCore::RenderObject::setWidth):
3456         (WebCore::RenderObject::setHeight):
3457         (WebCore::RenderObject::absolutePositionForContent):
3458         (WebCore::RenderObject::overflowHeight):
3459         (WebCore::RenderObject::overflowWidth):
3460         (WebCore::RenderObject::setOverflowHeight):
3461         (WebCore::RenderObject::setOverflowWidth):
3462         (WebCore::RenderObject::overflowLeft):
3463         (WebCore::RenderObject::overflowTop):
3464         (WebCore::RenderObject::overflowRect):
3465         (WebCore::RenderObject::stopAutoscroll):
3466         (WebCore::RenderObject::collapsedMarginTop):
3467         (WebCore::RenderObject::collapsedMarginBottom):
3468         (WebCore::RenderObject::maxTopMargin):
3469         (WebCore::RenderObject::maxBottomMargin):
3470         (WebCore::RenderObject::):
3471         (WebCore::RenderObject::setTable):
3472         (WebCore::RenderObject::isFloatingOrPositioned):
3473         (WebCore::RenderObject::containsFloat):
3474         (WebCore::RenderObject::setSelectionState):
3475         (WebCore::RenderObject::SelectionInfo::SelectionInfo):
3476         (WebCore::RenderObject::lowestPosition):
3477         (WebCore::RenderObject::rightmostPosition):
3478         (WebCore::RenderObject::leftmostPosition):
3479         (WebCore::RenderObject::calcVerticalMargins):
3480         (WebCore::RenderObject::font):
3481
3482 2006-11-08  Darin Adler  <darin@apple.com>
3483
3484         Reviewed by Anders.
3485
3486         - added event parameters to focus-related functions so we can
3487           implement the "option-tab to all links" behavior without relying
3488           on a global "current event" -- also makes it work with DOM events
3489
3490         * page/Frame.h: Removed unneeded includes. Moved some functions
3491         that were misplaced into the appropriate sections.
3492         * page/Frame.cpp:
3493         (WebCore::Frame::doTextFieldCommandFromEvent): Changed parameter from
3494         PlatformKeyboardEvent to the DOM keyboard event class.
3495         (WebCore::Frame::tabsToLinks): Added event parameter.
3496         (WebCore::Frame::tabsToAllControls): Ditto.
3497         (WebCore::scanForForm): Fixed code that incorrectly assumes
3498         that an iframe is an HTMLFrameElement (no longer true since Geoff
3499         changed the class hierarchy a bit).
3500         (WebCore::Frame::hitTestResultAtPoint): Ditto.
3501
3502         * bridge/mac/FrameMac.h: Removed unneeded includes. Moved some functions
3503         that were misplaced into the appropriate sections.
3504         * bridge/mac/FrameMac.mm:
3505         (WebCore::selectorForKeyEvent): Changed to use a DOM event instead of
3506         a PlatformKeyboardEvent.
3507         (WebCore::FrameMac::nextKeyViewInFrame): Changed to use currentKeyboardEvent()
3508         and pass event into next/previousFocusNode.
3509         (WebCore::FrameMac::currentKeyboardEvent): Added. Creates a DOM event from
3510         the AppKit current event, if it's a keyboard event. Really just a hack that's
3511         needed to preserve some code we can remove once we deal with the last NSView-
3512         based form control.
3513         (WebCore::isKeyboardOptionTab): Added.
3514         (WebCore::FrameMac::tabsToLinks): Added event parameter, used to check if the
3515         option (alt) key is down.
3516         (WebCore::FrameMac::tabsToAllControls): Ditto.
3517         (WebCore::FrameMac::keyEvent): Changed call to prepareForUserAction() to just
3518         call resetMultipleFormSubmissionProtection() explicitly instead.
3519         (WebCore::FrameMac::mouseDown): Ditto.
3520
3521         * bridge/mac/WebCoreAXObject.mm:
3522         (-[WebCoreAXObject accessibilityDescription]): Fixed code that incorrectly
3523         assumes that an iframe is an HTMLFrameElement (no longer true since Geoff
3524         changed the class hierarchy a bit).
3525         (-[WebCoreAXObject accessibilityPerformAction:]): Changed call to
3526         prepareForUserAction() to call resetMultipleFormSubmissionProtection()
3527         explicitly instead.
3528
3529         * page/FrameView.h:
3530         * page/FrameView.cpp:
3531         (WebCore::FrameView::advanceFocus): Changed function to take an
3532         event parameter, and decide the direction based on the shift key
3533         modifier instead of a passed-in boolean.
3534
3535         * dom/Document.h:
3536         * dom/Document.cpp:
3537         (WebCore::Document::nextFocusNode): Added event parameter.
3538         (WebCore::Document::previousFocusNode): Ditto.
3539         * dom/Node.h:
3540         * dom/Node.cpp:
3541         (WebCore::Node::isKeyboardFocusable): Ditto.
3542         * html/HTMLAnchorElement.h:
3543         * html/HTMLAnchorElement.cpp:
3544         (WebCore::HTMLAnchorElement::isKeyboardFocusable): Ditto.
3545         * html/HTMLGenericFormElement.h:
3546         * html/HTMLGenericFormElement.cpp:
3547         (WebCore::HTMLGenericFormElement::isKeyboardFocusable): Ditto.
3548         * html/HTMLInputElement.h: