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