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