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