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