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