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