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