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