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