2006-11-14 Darin Adler <darin@apple.com>
[WebKit-https.git] / WebCore / ChangeLog
1 2006-11-14  Darin Adler  <darin@apple.com>
2
3         Reviewed by Adam.
4
5         Fix up usages of FormData within CFNet loader code.
6
7         * platform/network/ResourceRequest.h:
8         (WebCore::ResourceRequest::httpBody):
9         * platform/network/cf/FormDataStreamCFNet.cpp:
10         (WebCore::getStreamFormDatas): Store RefPtr<FormData>s in the
11         streamFormDatas HashMap.
12         (WebCore::formCreate):
13         (WebCore::formFinalize): Removed delete because the remove() will deref
14         and delete if necessary.
15         (WebCore::setHTTPBody): Changed parameter to PassRefPtr.
16         (WebCore::httpBodyFromStream):
17         * platform/network/cf/FormDataStreamCFNet.h: Fix declarations.
18         * platform/network/cf/ResourceRequestCFNet.cpp:
19         (WebCore::getResourceRequest):
20
21 2006-11-14  Greg Jackson  <gjspanner@gmail.com>
22
23         Reviewed by Darin.
24
25         Preserves any pre-existing value for WEBCORE_NAVIGATOR_PLATFORM
26         rather than overriding it based on platform detection.
27
28         * bindings/js/kjs_navigator.cpp:
29
30 2006-11-13  Brady Eidson  <beidson@apple.com>
31
32         Reviewed by Maciej
33
34         Made FormData Shared, and pass it around as such.
35
36         * WebCore.xcodeproj/project.pbxproj: Reordered some items
37         * html/HTMLFormElement.cpp:
38         (WebCore::HTMLFormElement::formData):
39         (WebCore::HTMLFormElement::submit):
40         * html/HTMLFormElement.h:
41         * loader/FrameLoader.cpp:
42         (WebCore::FormSubmission::FormSubmission):
43         (WebCore::FrameLoader::submitForm):
44         * loader/FrameLoader.h:
45         * loader/mac/FrameLoaderMac.mm:
46         (WebCore::FrameLoader::post):
47         (WebCore::FrameLoader::loadResourceSynchronously):
48         * loader/mac/SubresourceLoaderMac.mm:
49         (WebCore::SubresourceLoader::create):
50         * platform/network/FormData.h: Made FormData shared
51         * platform/network/ResourceHandle.h:
52         * platform/network/ResourceHandle.cpp:
53         (WebCore::ResourceHandle::postData): 
54         * platform/network/ResourceRequest.h:
55         (WebCore::ResourceRequest::httpBody):
56         (WebCore::ResourceRequest::setHTTPBody): 
57         * platform/network/mac/ResourceRequestMac.mm:
58         (WebCore::getResourceRequest):
59         (WebCore::nsURLRequest): 
60
61         * platform/network/mac/FormDataStreamMac.h:
62         * platform/network/mac/FormDataStreamMac.mm:
63         (WebCore::getStreamFormDatas): Hash Streams to RefPtr<FormData>s
64         (WebCore::formCreate):
65         (WebCore::formFinalize):
66         (WebCore::setHTTPBody):
67         (WebCore::httpBodyFromStream):
68
69         * xml/xmlhttprequest.cpp:
70         (WebCore::XMLHttpRequest::send):
71
72 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
73
74         Reviewed by harrison
75         
76         <rdar://problem/4828264>
77         In Mail, a crash occurs at WebCore::Selection::toRange() when selecting this web content (http://www.cnet.com/)
78         
79         The start of the selection is in an editable area, and the end is in an 
80         input field inside that editable area.  The code that should pull the end
81         of such a selection outside the input field didn't escape shadow nodes,
82         it would leave a dangling end, causing the crash in toRange.
83         
84         * editing/Selection.cpp:
85         (WebCore::Selection::adjustForEditableContent):  Added an ASSERT and a fixup
86         to prevent crashes like this in future Release builds.
87         * editing/htmlediting.cpp:
88         (WebCore::firstEditablePositionAfterPositionInRoot): Let this function 
89         escape shadow nodes.  We might eventually push this code down into 
90         next/previous{VisuallyDistinct}Canditate.
91         (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.
92
93 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
94
95         Reviewed by darin
96         
97         * editing/DeleteSelectionCommand.cpp:
98         (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor):
99         * editing/Editor.cpp:
100         (WebCore::Editor::appliedEditing):
101         * editing/Editor.h:
102         (WebCore::Editor::setRemovedAnchor): Pass a PassRefPtr.
103
104 2006-11-10  Justin Garcia  <justin.garcia@apple.com>
105
106         Reviewed by Oliver
107         
108         <rdar://problem/4820026>
109         copy/paste of news.google.com yields text from hidden select element options
110
111         We were adding descendants of unrendered select elements. 
112
113         * editing/markup.cpp:
114         (WebCore::createMarkup): Don't traverse into nodes without renderers, unless 
115         they are grandfathered in by a rendered select element.
116         
117 2006-11-12  Simon Hausmann  <hausmann@kde.org>
118
119         Reviewed by Sam Weinig.
120
121         Fix Qt build. Missing AbstractShared implementation.
122         http://bugs.webkit.org/show_bug.cgi?id=11581
123
124         * loader/qt/FrameLoaderClientQt.cpp:
125         (WebCore::FrameLoaderClientQt::ref):
126         (WebCore::FrameLoaderClientQt::deref):
127         * loader/qt/FrameLoaderClientQt.h:
128         * platform/qt/ChromeClientQt.cpp:
129         (WebCore::ChromeClientQt::ref):
130         (WebCore::ChromeClientQt::deref):
131         * platform/qt/ChromeClientQt.h:
132         * platform/qt/EditorClientQt.cpp:
133         (WebCore::EditorClientQt::ref):
134         (WebCore::EditorClientQt::deref):
135         * platform/qt/EditorClientQt.h:
136
137 2006-11-13  Mark Rowe  <bdash@webkit.org>
138
139         Reviewed by Mitz.
140
141         Fix some Linux/Gdk build issues noted by Alp Toker.
142
143         * Projects/gdk/webcore-gdk.bkl:
144         * WebCoreSources.bkl:
145         * platform/graphics/gdk/ImageGdk.cpp:
146         (WebCore::Image::loadPlatformResource):
147
148 2006-11-12  Brady Eidson <beidson@apple.com>
149
150         Reviewed by Anders
151
152         Logging channel plumbing for future work
153
154         * platform/Logging.cpp:
155         (WebCore::):
156         * platform/Logging.h:
157         * platform/mac/LoggingMac.mm:
158         (WebCore::InitializeLoggingChannelsIfNecessary):
159
160 2006-11-12  Mark Rowe  <bdash@webkit.org>
161
162         Reviewed by Mitz.
163
164         Linux/Gdk compilation fixes, and bakefile cleanups.  Based on patches by
165         Alp Toker.
166
167         * Projects/gdk/webcore-gdk.bkl:
168         * WebCoreSources.bkl:
169         * page/PageState.cpp:
170         * platform/gdk/ChromeClientGdk.h:
171         (WebCore::ChromeClientGdk::ref):
172         (WebCore::ChromeClientGdk::deref):
173         * platform/gdk/FrameGdk.cpp:
174         (WebCore::FrameGdkClientDefault::openURL):
175         (WebCore::FrameGdkClientDefault::didReceiveData):
176         (WebCore::FrameGdkClientDefault::receivedAllData):
177         (WebCore::FrameGdk::FrameGdk):
178         (WebCore::FrameGdk::~FrameGdk):
179         * platform/gdk/FrameGdk.h:
180         * platform/gdk/KeyEventGdk.cpp:
181         (WebCore::keyIdentifierForGdkKeyCode):
182         * platform/gdk/ScreenClientGdk.h: Removed.
183         * platform/gdk/TemporaryLinkStubs.cpp:
184         (FrameGdk::canPaste):
185         (FrameGdk::originalRequestURL):
186         (TextField::TextField):
187         * platform/network/gdk/ResourceHandleManager.cpp:
188         (WebCore::ResourceHandleManager::downloadTimerCallback):
189         (WebCore::ResourceHandleManager::add):
190         (WebCore::ResourceHandleManager::cancel):
191         * webcore-base.bkl:
192
193 2006-11-11  Geoffrey Garen  <ggaren@apple.com>
194
195         Reviewed by Maciej Stachowiak.
196         
197         - Fixed loader crash by clarifying ownership of WebKit client objects. 
198         WebCore objects own their WebKit clients, and ref and deref through 
199         virtual methods, leaving WebKit free to use whatever client / reference-counting 
200         implementation it likes.
201         
202         * WebCore.exp:
203         * WebCore.xcodeproj/project.pbxproj:
204         * bridge/EditorClient.h: Fixed up function prototypes for style.
205         * loader/FrameLoader.cpp: Removed detachFrameLoader, since its real purpose
206         was to implement an alternative ownership model.
207         (WebCore::FrameLoader::~FrameLoader): Removed empty destructor.
208         (WebCore::FrameLoader::setClient): This function now takes ownership
209         (WebCore::FrameLoader::client):
210         * loader/FrameLoader.h:
211         * loader/FrameLoaderClient.h:
212         * page/ChromeClient.h:
213         * platform/AbstractShared.h: Added. This is the virtual function-based refcounting
214         complement to Shared.
215         (WebCore::AbstractShared::~AbstractShared):
216
217 2006-11-11  George Staikos  <staikos@kde.org>
218
219         Reviewed by Maciej.
220
221         Fix uninitialized variable.
222
223         * rendering/RenderStyle.h:
224
225 2006-11-11  Nikolas Zimmermann  <zimmermann@kde.org>
226
227         Reviewed/landed by Adam.
228
229         Complete cleanup of the CMakeLists.txt.
230         Now all files to be built are sorted in alphabetic order.
231
232         General style cleanup, remove all tabs etc.
233
234         * CMakeLists.txt:
235
236 2006-11-11  Geoffrey Garen  <ggaren@apple.com>
237
238         Reviewed by Maciej Stachowiak.
239         
240         Added missing initializer to ResourceRequest -- fixes some loader crashes
241         due to assuming a request always has a non-null httpMethod.
242
243         * platform/network/ResourceRequest.h:
244         (WebCore::ResourceRequest::ResourceRequest):
245
246 2006-11-11  Brady Eidson <beidson@apple.com>
247
248         Reviewed by Maciej
249
250         Fixed header guard
251
252         * loader/FrameLoaderClient.h:
253
254 2006-11-11  Darin Adler  <darin@apple.com>
255
256         - attempt to fix Qt build
257
258         * platform/qt/CursorQt.cpp:
259         (WebCore::verticalTextCursor): Added. Just returns pointer cursor.
260         (WebCore::cellCursor): Ditto.
261         (WebCore::contextMenuCursor): Ditto.
262
263 2006-11-11  Rob Buis  <buis@kde.org>
264
265         Reviewed by hyatt.
266
267         http://bugs.webkit.org/show_bug.cgi?id=10893
268         InsertRule can not handle @import statements
269
270         Allow @import as part of a css rule.
271
272         * css/CSSGrammar.y:
273         * css/CSSImportRule.cpp:
274         (WebCore::CSSImportRule::insertedIntoParent):
275         * css/CSSStyleSheet.cpp:
276         (WebCore::CSSStyleSheet::CSSStyleSheet):
277         (WebCore::CSSStyleSheet::checkLoaded):
278         * css/CSSStyleSheet.h:
279         (WebCore::CSSStyleSheet::loadCompleted):
280
281 2006-11-11  Alexey Proskuryakov  <ap@webkit.org>
282
283         Attempt to fix Qt build.
284
285         * CMakeLists.txt: PathQt.cpp is in graphics/qt now.
286
287 2006-11-11  Lars Naesbye Christensen  <larsnaesbye@stud.ku.dk>
288
289         Tortured by Sam Weinig, Tim H., Maciej, Mitz and Alexey :-)
290
291         [CSS 3] support for vertical-text, cell and context-menu cursors
292         http://bugs.webkit.org/show_bug.cgi?id=11494
293
294         * Resources/cellCursor.png: Added.
295         * Resources/contextMenuCursor.png: Added.
296         * Resources/verticalTextCursor.png: Added.
297         * WebCore.xcodeproj/project.pbxproj:
298         * css/CSSComputedStyleDeclaration.cpp:
299         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
300         * css/CSSValueKeywords.in:
301         * manual-tests/cursor.html:
302         * page/FrameView.cpp:
303         (WebCore::selectCursor):
304         * platform/Cursor.h:
305         * platform/mac/CursorMac.mm:
306         (WebCore::verticalTextCursor):
307         (WebCore::cellCursor):
308         (WebCore::contextMenuCursor):
309         * rendering/RenderStyle.h:
310         (WebCore::):
311
312 2006-11-11  Nikolas Zimmermann  <zimmermann@kde.org>
313
314         Reviewed by aroben and ap, landed by ap.
315
316         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11468
317
318         Group graphics related files in platform/graphics.
319         Move certain files from certain subdirectories
320         into platform/graphics/{win,mac,cg,gdk,qt}
321
322         * CMakeLists.txt:
323         * WebCore.xcodeproj/project.pbxproj:
324         * platform/AffineTransform.cpp: Removed.
325         * platform/AffineTransform.h: Removed.
326         * platform/Color.cpp: Removed.
327         * platform/Color.h: Removed.
328         * platform/FloatPoint.cpp: Removed.
329         * platform/FloatPoint.h: Removed.
330         * platform/FloatRect.cpp: Removed.
331         * platform/FloatRect.h: Removed.
332         * platform/FloatSize.cpp: Removed.
333         * platform/FloatSize.h: Removed.
334         * platform/Icon.h: Removed.
335         * platform/Image.cpp: Removed.
336         * platform/Image.h: Removed.
337         * platform/ImageSource.h: Removed.
338         * platform/IntPoint.h: Removed.
339         * platform/IntRect.cpp: Removed.
340         * platform/IntRect.h: Removed.
341         * platform/IntSize.h: Removed.
342         * platform/IntSizeHash.h: Removed.
343         * platform/Path.cpp: Removed.
344         * platform/Path.h: Removed.
345         * platform/Pen.cpp: Removed.
346         * platform/Pen.h: Removed.
347         * platform/cairo/AffineTransformCairo.cpp: Removed.
348         * platform/cairo/GraphicsContextCairo.cpp: Removed.
349         * platform/cairo/ImageCairo.cpp: Removed.
350         * platform/cairo/ImageSourceCairo.cpp: Removed.
351         * platform/cairo/cairo/AUTHORS: Removed.
352         * platform/cairo/cairo/COPYING: Removed.
353         * platform/cairo/cairo/COPYING-LGPL-2.1: Removed.
354         * platform/cairo/cairo/COPYING-MPL-1.1: Removed.
355         * platform/cairo/cairo/INSTALL: Removed.
356         * platform/cairo/cairo/NEWS: Removed.
357         * platform/cairo/cairo/README: Removed.
358         * platform/cairo/cairo/TODO: Removed.
359         * platform/cairo/cairo/src/Makefile.in: Removed.
360         * platform/cairo/cairo/src/cairo-arc-private.h: Removed.
361         * platform/cairo/cairo/src/cairo-arc.c: Removed.
362         * platform/cairo/cairo/src/cairo-array.c: Removed.
363         * platform/cairo/cairo/src/cairo-atsui-font.c: Removed.
364         * platform/cairo/cairo/src/cairo-atsui.h: Removed.
365         * platform/cairo/cairo/src/cairo-beos-surface.cpp: Removed.
366         * platform/cairo/cairo/src/cairo-beos.h: Removed.
367         * platform/cairo/cairo/src/cairo-cache-private.h: Removed.
368         * platform/cairo/cairo/src/cairo-cache.c: Removed.
369         * platform/cairo/cairo/src/cairo-clip-private.h: Removed.
370         * platform/cairo/cairo/src/cairo-clip.c: Removed.
371         * platform/cairo/cairo/src/cairo-color.c: Removed.
372         * platform/cairo/cairo/src/cairo-debug.c: Removed.
373         * platform/cairo/cairo/src/cairo-debug.h: Removed.
374         * platform/cairo/cairo/src/cairo-directfb-surface.c: Removed.
375         * platform/cairo/cairo/src/cairo-directfb.h: Removed.
376         * platform/cairo/cairo/src/cairo-features.h: Removed.
377         * platform/cairo/cairo/src/cairo-features.h.in: Removed.
378         * platform/cairo/cairo/src/cairo-fixed.c: Removed.
379         * platform/cairo/cairo/src/cairo-font-options.c: Removed.
380         * platform/cairo/cairo/src/cairo-font-subset-private.h: Removed.
381         * platform/cairo/cairo/src/cairo-font-subset.c: Removed.
382         * platform/cairo/cairo/src/cairo-font.c: Removed.
383         * platform/cairo/cairo/src/cairo-ft-font.c: Removed.
384         * platform/cairo/cairo/src/cairo-ft-private.h: Removed.
385         * platform/cairo/cairo/src/cairo-ft.h: Removed.
386         * platform/cairo/cairo/src/cairo-glitz-surface.c: Removed.
387         * platform/cairo/cairo/src/cairo-glitz.h: Removed.
388         * platform/cairo/cairo/src/cairo-gstate-private.h: Removed.
389         * platform/cairo/cairo/src/cairo-gstate.c: Removed.
390         * platform/cairo/cairo/src/cairo-hash-private.h: Removed.
391         * platform/cairo/cairo/src/cairo-hash.c: Removed.
392         * platform/cairo/cairo/src/cairo-hull.c: Removed.
393         * platform/cairo/cairo/src/cairo-image-surface.c: Removed.
394         * platform/cairo/cairo/src/cairo-matrix.c: Removed.
395         * platform/cairo/cairo/src/cairo-meta-surface-private.h: Removed.
396         * platform/cairo/cairo/src/cairo-meta-surface.c: Removed.
397         * platform/cairo/cairo/src/cairo-output-stream.c: Removed.
398         * platform/cairo/cairo/src/cairo-paginated-surface-private.h: Removed.
399         * platform/cairo/cairo/src/cairo-paginated-surface.c: Removed.
400         * platform/cairo/cairo/src/cairo-path-bounds.c: Removed.
401         * platform/cairo/cairo/src/cairo-path-data-private.h: Removed.
402         * platform/cairo/cairo/src/cairo-path-data.c: Removed.
403         * platform/cairo/cairo/src/cairo-path-fill.c: Removed.
404         * platform/cairo/cairo/src/cairo-path-fixed-private.h: Removed.
405         * platform/cairo/cairo/src/cairo-path-stroke.c: Removed.
406         * platform/cairo/cairo/src/cairo-path.c: Removed.
407         * platform/cairo/cairo/src/cairo-pattern.c: Removed.
408         * platform/cairo/cairo/src/cairo-pdf-surface.c: Removed.
409         * platform/cairo/cairo/src/cairo-pdf.h: Removed.
410         * platform/cairo/cairo/src/cairo-pen.c: Removed.
411         * platform/cairo/cairo/src/cairo-platform.h: Removed.
412         * platform/cairo/cairo/src/cairo-png.c: Removed.
413         * platform/cairo/cairo/src/cairo-polygon.c: Removed.
414         * platform/cairo/cairo/src/cairo-private.h: Removed.
415         * platform/cairo/cairo/src/cairo-ps-surface.c: Removed.
416         * platform/cairo/cairo/src/cairo-ps.h: Removed.
417         * platform/cairo/cairo/src/cairo-quartz-private.h: Removed.
418         * platform/cairo/cairo/src/cairo-quartz-surface.c: Removed.
419         * platform/cairo/cairo/src/cairo-quartz.h: Removed.
420         * platform/cairo/cairo/src/cairo-quartz2-surface.c: Removed.
421         * platform/cairo/cairo/src/cairo-quartz2.h: Removed.
422         * platform/cairo/cairo/src/cairo-region.c: Removed.
423         * platform/cairo/cairo/src/cairo-scaled-font.c: Removed.
424         * platform/cairo/cairo/src/cairo-slope.c: Removed.
425         * platform/cairo/cairo/src/cairo-spline.c: Removed.
426         * platform/cairo/cairo/src/cairo-stroke-style.c: Removed.
427         * platform/cairo/cairo/src/cairo-surface-fallback-private.h: Removed.
428         * platform/cairo/cairo/src/cairo-surface-fallback.c: Removed.
429         * platform/cairo/cairo/src/cairo-surface.c: Removed.
430         * platform/cairo/cairo/src/cairo-svg-surface.c: Removed.
431         * platform/cairo/cairo/src/cairo-svg.h: Removed.
432         * platform/cairo/cairo/src/cairo-traps.c: Removed.
433         * platform/cairo/cairo/src/cairo-unicode.c: Removed.
434         * platform/cairo/cairo/src/cairo-wideint.c: Removed.
435         * platform/cairo/cairo/src/cairo-wideint.h: Removed.
436         * platform/cairo/cairo/src/cairo-win32-font.c: Removed.
437         * platform/cairo/cairo/src/cairo-win32-private.h: Removed.
438         * platform/cairo/cairo/src/cairo-win32-surface.c: Removed.
439         * platform/cairo/cairo/src/cairo-win32.h: Removed.
440         * platform/cairo/cairo/src/cairo-xcb-surface.c: Removed.
441         * platform/cairo/cairo/src/cairo-xcb-xrender.h: Removed.
442         * platform/cairo/cairo/src/cairo-xcb.h: Removed.
443         * platform/cairo/cairo/src/cairo-xlib-private.h: Removed.
444         * platform/cairo/cairo/src/cairo-xlib-screen.c: Removed.
445         * platform/cairo/cairo/src/cairo-xlib-surface.c: Removed.
446         * platform/cairo/cairo/src/cairo-xlib-test.h: Removed.
447         * platform/cairo/cairo/src/cairo-xlib-xrender.h: Removed.
448         * platform/cairo/cairo/src/cairo-xlib.h: Removed.
449         * platform/cairo/cairo/src/cairo.c: Removed.
450         * platform/cairo/cairo/src/cairo.h: Removed.
451         * platform/cairo/cairo/src/cairoint.h: Removed.
452         * platform/cairo/cairo/src/test-fallback-surface.c: Removed.
453         * platform/cairo/cairo/src/test-fallback-surface.h: Removed.
454         * platform/cairo/cairo/src/test-meta-surface.c: Removed.
455         * platform/cairo/cairo/src/test-meta-surface.h: Removed.
456         * platform/cairo/cairo/src/test-paginated-surface.c: Removed.
457         * platform/cairo/cairo/src/test-paginated-surface.h: Removed.
458         * platform/cairo/pixman/AUTHORS: Removed.
459         * platform/cairo/pixman/COPYING: Removed.
460         * platform/cairo/pixman/README: Removed.
461         * platform/cairo/pixman/src/Makefile.in: Removed.
462         * platform/cairo/pixman/src/fbcompose.c: Removed.
463         * platform/cairo/pixman/src/fbedge.c: Removed.
464         * platform/cairo/pixman/src/fbedgeimp.h: Removed.
465         * platform/cairo/pixman/src/fbmmx.c: Removed.
466         * platform/cairo/pixman/src/fbmmx.h: Removed.
467         * platform/cairo/pixman/src/fbpict.c: Removed.
468         * platform/cairo/pixman/src/fbpict.h: Removed.
469         * platform/cairo/pixman/src/fbtrap.c: Removed.
470         * platform/cairo/pixman/src/icblt.c: Removed.
471         * platform/cairo/pixman/src/icbltone.c: Removed.
472         * platform/cairo/pixman/src/iccolor.c: Removed.
473         * platform/cairo/pixman/src/icformat.c: Removed.
474         * platform/cairo/pixman/src/icimage.c: Removed.
475         * platform/cairo/pixman/src/icimage.h: Removed.
476         * platform/cairo/pixman/src/icint.h: Removed.
477         * platform/cairo/pixman/src/icpixels.c: Removed.
478         * platform/cairo/pixman/src/icrect.c: Removed.
479         * platform/cairo/pixman/src/icrop.h: Removed.
480         * platform/cairo/pixman/src/icstipple.c: Removed.
481         * platform/cairo/pixman/src/ictransform.c: Removed.
482         * platform/cairo/pixman/src/ictrap.c: Removed.
483         * platform/cairo/pixman/src/ictri.c: Removed.
484         * platform/cairo/pixman/src/icutil.c: Removed.
485         * platform/cairo/pixman/src/pixman-remap.h: Removed.
486         * platform/cairo/pixman/src/pixman-xserver-compat.h: Removed.
487         * platform/cairo/pixman/src/pixman.h: Removed.
488         * platform/cairo/pixman/src/pixregion.c: Removed.
489         * platform/cairo/pixman/src/pixregionint.h: Removed.
490         * platform/cairo/pixman/src/renderedge.c: Removed.
491         * platform/cairo/pixman/src/renderedge.h: Removed.
492         * platform/cairo/pixman/src/slim_internal.h: Removed.
493         * platform/cairo/rgb24-hacks.txt: Removed.
494         * platform/cairo/scale-removal.txt: Removed.
495         * platform/cg/AffineTransformCG.cpp: Removed.
496         * platform/cg/FloatPointCG.cpp: Removed.
497         * platform/cg/FloatRectCG.cpp: Removed.
498         * platform/cg/FloatSizeCG.cpp: Removed.
499         * platform/cg/GraphicsContextCG.cpp: Removed.
500         * platform/cg/GraphicsContextPlatformPrivate.h: Removed.
501         * platform/cg/ImageCG.cpp: Removed.
502         * platform/cg/ImageSourceCG.cpp: Removed.
503         * platform/cg/IntPointCG.cpp: Removed.
504         * platform/cg/IntRectCG.cpp: Removed.
505         * platform/cg/IntSizeCG.cpp: Removed.
506         * platform/cg/PDFDocumentImage.cpp: Removed.
507         * platform/cg/PDFDocumentImage.h: Removed.
508         * platform/cg/PathCG.cpp: Removed.
509         * platform/gdk/ImageGdk.cpp: Removed.
510         * platform/mac/ColorMac.mm: Removed.
511         * platform/mac/FloatPointMac.mm: Removed.
512         * platform/mac/FloatRectMac.mm: Removed.
513         * platform/mac/FloatSizeMac.mm: Removed.
514         * platform/mac/GraphicsContextMac.mm:
515         * platform/mac/IconMac.mm: Removed.
516         * platform/mac/ImageMac.mm: Removed.
517         * platform/mac/IntPointMac.mm: Removed.
518         * platform/mac/IntRectMac.mm: Removed.
519         * platform/mac/IntSizeMac.mm: Removed.
520         * platform/qt/AffineTransformQt.cpp: Removed.
521         * platform/qt/ColorQt.cpp: Removed.
522         * platform/qt/FloatPointQt.cpp: Removed.
523         * platform/qt/FloatRectQt.cpp: Removed.
524         * platform/qt/IconQt.cpp: Removed.
525         * platform/qt/ImageQt.cpp: Removed.
526         * platform/qt/ImageSourceQt.cpp: Removed.
527         * platform/qt/IntPointQt.cpp: Removed.
528         * platform/qt/IntRectQt.cpp: Removed.
529         * platform/qt/IntSizeQt.cpp: Removed.
530         * platform/qt/PathQt.cpp: Removed.
531         * platform/win/ImageWin.cpp: Removed.
532         * platform/win/IntPointWin.cpp: Removed.
533         * platform/win/IntRectWin.cpp: Removed.
534         * platform/win/IntSizeWin.cpp: Removed.
535
536 2006-11-11  Graham Dennis  <graham.dennis@gmail.com>
537
538         Reviewed by hyatt.
539
540         A layout test was added when this bug was fixed, so none needed now.
541         
542         Cleanup after:
543         REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
544         http://bugs.webkit.org/show_bug.cgi?id=11570
545         
546         * rendering/RenderStyle.h:
547         (WebCore::RenderStyle::isSpace): Removed.
548         * rendering/RenderText.cpp:
549         (WebCore::isSpace): Added.
550         (WebCore::RenderText::calcMinMaxWidth): Use inline function instead of polluting RenderStyle.
551
552 2006-11-11  Graham Dennis  <graham.dennis@gmail.com>
553
554         Reviewed by mitz.
555         
556         REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
557         http://bugs.webkit.org/show_bug.cgi?id=11570
558
559         * rendering/RenderStyle.h:
560         (WebCore::RenderStyle::isSpace): Added.
561         * rendering/RenderText.cpp:
562         (WebCore::RenderText::calcMinMaxWidth): For the purposes of calculating the line widths, 
563         treat non-breaking spaces the same as normal spaces if -webkit-nbsp-mode is 'space'
564
565 2006-11-10  Zalan Bujtas <zalan.bujtas@nokia.com>
566
567         Reviewed by Maciej.
568
569         Added basic types for symbian platform.
570         http://bugs.webkit.org/show_bug.cgi?id=11540
571
572         * config.h:
573         * platform/AtomicString.h:
574         (WebCore::AtomicString::AtomicString):
575         (WebCore::AtomicString::operator TPtrC):
576         * platform/DeprecatedString.cpp:
577         (WebCore::initializeHandleNodeBlock):
578         * platform/DeprecatedString.h: char _internalBuffer has to be in front of
579           the bitfields as Codewarrior (3.2.5 build 461) compiler cannot cope with
580           bitfields and breaks byte aligment
581         * platform/FloatPoint.h:
582         * platform/FloatRect.h:
583         * platform/IntPoint.h:
584         * platform/IntRect.h:
585         * platform/IntSize.h:
586         * platform/PlatformString.h:
587         (WebCore::String::operator TPtrC):
588         (WebCore::String::des):
589         * platform/StringImpl.h:
590         * platform/symbian/DeprecatedStringSymbian.cpp: Added.
591         (WebCore::DeprecatedString::setBufferFromDes):
592         (WebCore::DeprecatedString::fromDes):
593         (WebCore::DeprecatedString::des):
594         (WebCore::DeprecatedString::des8):
595         * platform/symbian/FloatPointSymbian.cpp: Added.
596         (WebCore::FloatPoint::FloatPoint):
597         (WebCore::FloatPoint::operator TPoint):
598         * platform/symbian/FloatRectSymbian.cpp: Added.
599         (WebCore::FloatRect::FloatRect):
600         (WebCore::FloatRect::operator TRect):
601         (WebCore::FloatRect::rect):
602         * platform/symbian/IntPointSymbian.cpp: Added.
603         (WebCore::IntPoint::IntPoint):
604         (WebCore::IntPoint::operator TPoint):
605         * platform/symbian/IntRectSymbian.cpp: Added.
606         (WebCore::IntRect::IntRect):
607         (WebCore::IntRect::operator TRect):
608         (WebCore::IntRect::Rect):
609         * platform/symbian/IntSizeSymbian.cpp: Added.
610         (WebCore::IntSize::IntSize):
611         (WebCore::IntSize::operator TSize):
612         * platform/symbian/StringImplSymbian.cpp: Added.
613         (WebCore::StringImpl::StringImpl):
614         (WebCore::StringImpl::des):
615         * platform/symbian/StringSymbian.cpp: Added.
616         (WebCore::String::String):
617
618 2006-11-10  Zack Rusin  <zack@kde.org>
619
620         Reviewed by Anders.
621
622         Adjust to the changes Brady made in the Qt code.
623
624         * loader/qt/FrameLoaderClientQt.cpp:
625         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
626         * loader/qt/FrameLoaderClientQt.h:
627
628 2006-11-10  Justin Garcia  <justin.garcia@apple.com>
629
630         Reviewed by harrison
631         
632         <rdar://problem/4069359>
633         Deleting hyperlink text, then typing uses link typing style but loses the link itself
634         
635         The removed anchor element needs to stick around temporarily, in the same way
636         that the typing style hangs off the caret until the user moves it.  Also text
637         insertion around anchors didn't match TextEdit.
638
639         * editing/DeleteSelectionCommand.cpp:
640         (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor): Added.
641         (WebCore::DeleteSelectionCommand::doApply): Call saveFullySelectedAnchor.
642         * editing/DeleteSelectionCommand.h:
643         * editing/EditCommand.cpp:
644         (WebCore::EditCommand::apply): Clear the removed anchor after any top level
645         editing command that doesn't preserve the typing style (matches TextEdit).
646         * editing/Editor.cpp:
647         (WebCore::Editor::appliedEditing): Added a fixme: we shouldn't call 
648         setSelection with a message telling it to clear the typing style 
649         (and the saved anchor) here.  Save/restore the saved anchor because of this.
650         * editing/Editor.h:
651         (WebCore::Editor::removedAnchor): Getter.
652         (WebCore::Editor::setRemovedAnchor): Setter.
653         * editing/InsertTextCommand.cpp:
654         (WebCore::InsertTextCommand::prepareForTextInsertion): Insert the saved anchor
655         if one exists.
656         * editing/SelectionController.cpp:
657         (WebCore::SelectionController::setSelection): Clear the removed anchor whenever
658         we make a selection change that clears the typing style.
659         (WebCore::SelectionController::nodeWillBeRemoved): Removed an old outdated FIXME.
660         * editing/htmlediting.cpp:
661         (WebCore::positionAvoidingSpecialElementBoundary): Cleaned up and
662         made some changes to match TextEdit's behavior.  First, insert content
663         inside the anchor when the caret is after it, unless the caret is at the
664         end of the document, or if the caret is before it and at the start of a 
665         paragraph.
666
667 === Safari-521.30 ===
668
669 2006-11-10  Timothy Hatcher  <timothy@apple.com>
670
671         Reviewed by Hyatt.
672
673         Check for BHIDDEN in isVisible() also.
674
675         * rendering/RenderStyle.h:
676         (WebCore::BorderValue::isVisible):
677
678 2006-11-10  Timothy Hatcher  <timothy@apple.com>
679
680         Reviewed by Adam.
681
682         <rdar://problem/4821423> element deletion UI appears for Mail blockquote and others with less than three visible borders
683
684         Added a new function to BorderValue called isVisible(). This checks nonZero() and !isTransparent().
685
686         * editing/DeleteButtonController.cpp:
687         (WebCore::isDeletableElement):
688         * rendering/RenderStyle.h:
689         (WebCore::BorderValue::isVisible):
690
691 2006-11-10  Adam Roben  <aroben@apple.com>
692
693         Rubberstamped by Anders.
694
695         Back out some accidentally-committed changes from r17711.
696
697         * page/Frame.cpp:
698         (WebCore::Frame::command):
699         (WebCore::FramePrivate::FramePrivate):
700         * page/Frame.h:
701         * page/FramePrivate.h:
702
703 2006-11-10  Anders Carlsson  <acarlsson@apple.com>
704
705         Reviewed by Geoff.
706
707         Add more commands, make toggleBold and toggleItalic executable commands.
708
709         * WebCore.exp:
710         * editing/Editor.cpp:
711         (WebCore::execCopy):
712         (WebCore::execCut):
713         (WebCore::execDelete):
714         (WebCore::execForwardDelete):
715         (WebCore::execPaste):
716         (WebCore::execSelectAll):
717         (WebCore::execToggleBold):
718         (WebCore::execToggleItalic):
719         (WebCore::enabled):
720         (WebCore::canPaste):
721         (WebCore::hasEditableSelection):
722         (WebCore::hasEditableRangeSelection):
723         (WebCore::hasRangeSelection):
724         (WebCore::hasRichlyEditableSelection):
725         (WebCore::CommandEntry::):
726         * editing/Editor.h:
727
728 2006-11-10  Anders Carlsson  <acarlsson@apple.com>
729
730         Reviewed by Maciej, Geoff.
731
732         Added an execCommand method to Editor. The idea is that this should replace the CommandByName object. Get rid of
733         the alterCurrentSelection method in the bridge. WebKit can just call execCommand directly.
734
735         * WebCore.exp:
736         * bridge/mac/WebCoreFrameBridge.h:
737         * bridge/mac/WebCoreFrameBridge.mm:
738         * editing/Editor.cpp:
739         (WebCore::execMoveBackward):
740         (WebCore::execMoveBackwardAndModifySelection):
741         (WebCore::execMoveDown):
742         (WebCore::execMoveDownAndModifySelection):
743         (WebCore::execMoveForward):
744         (WebCore::execMoveForwardAndModifySelection):
745         (WebCore::execMoveLeft):
746         (WebCore::execMoveLeftAndModifySelection):
747         (WebCore::execMoveRight):
748         (WebCore::execMoveRightAndModifySelection):
749         (WebCore::execMoveToBeginningOfDocument):
750         (WebCore::execMoveToBeginningOfDocumentAndModifySelection):
751         (WebCore::execMoveToBeginningOfSentence):
752         (WebCore::execMoveToBeginningOfSentenceAndModifySelection):
753         (WebCore::execMoveToBeginningOfLine):
754         (WebCore::execMoveToBeginningOfLineAndModifySelection):
755         (WebCore::execMoveToBeginningOfParagraph):
756         (WebCore::execMoveToBeginningOfParagraphAndModifySelection):
757         (WebCore::execMoveToEndOfDocument):
758         (WebCore::execMoveToEndOfDocumentAndModifySelection):
759         (WebCore::execMoveToEndOfSentence):
760         (WebCore::execMoveToEndOfSentenceAndModifySelection):
761         (WebCore::execMoveToEndOfLine):
762         (WebCore::execMoveToEndOfLineAndModifySelection):
763         (WebCore::execMoveToEndOfParagraph):
764         (WebCore::execMoveToEndOfParagraphAndModifySelection):
765         (WebCore::execMoveParagraphBackwardAndModifySelection):
766         (WebCore::execMoveParagraphForwardAndModifySelection):
767         (WebCore::execMoveUp):
768         (WebCore::execMoveUpAndModifySelection):
769         (WebCore::execMoveWordBackward):
770         (WebCore::execMoveWordBackwardAndModifySelection):
771         (WebCore::execMoveWordForward):
772         (WebCore::execMoveWordForwardAndModifySelection):
773         (WebCore::execMoveWordLeft):
774         (WebCore::execMoveWordLeftAndModifySelection):
775         (WebCore::execMoveWordRight):
776         (WebCore::execMoveWordRightAndModifySelection):
777         (WebCore::enabledAnySelection):
778         (WebCore::createCommandMap):
779         (WebCore::CommandEntry::):
780         (WebCore::Editor::execCommand):
781         * editing/Editor.h:
782
783 2006-11-10  Brady Eidson  <beidson@apple.com>
784
785         Reviewed by Darin
786
787         Took out WebIconDatabaseBridge and made WebKit call IconDatabase directly
788
789         * WebCore.exp:
790         * WebCore.xcodeproj/project.pbxproj:
791         * bridge/mac/WebCoreIconDatabaseBridge.h: Removed.
792         * bridge/mac/WebCoreIconDatabaseBridge.mm: Removed.
793         * loader/FrameLoaderClient.h:
794         * loader/icon/IconDatabase.cpp:
795         (WebCore::IconDatabase::sharedIconDatabase):
796         (WebCore::IconDatabase::~IconDatabase):
797         * loader/icon/IconDatabase.h:
798         (WebCore::IconDatabase::isPrivateBrowsingEnabled):
799         (WebCore::IconDatabase::enabled):
800         * loader/icon/IconLoader.cpp:
801         (WebCore::IconLoader::finishLoading):
802         * loader/mac/FrameLoaderMac.mm:
803
804 2006-11-10  Zack Rusin  <zack@kde.org>
805
806         Reviewed and landed by Anders.
807
808         Adjust platform Qt/KDE code to the recent loader
809         changes. 
810
811         * CMakeLists.txt:
812         * loader/DocumentLoader.h:
813         * loader/FrameLoader.cpp:
814         (WebCore::FrameLoader::createEmptyDocument):
815         * loader/FrameLoader.h:
816         * loader/FrameLoaderClient.h:
817         * loader/qt/DocumentLoaderQt.cpp: Added.
818         (WebCore::canonicalizedTitle):
819         (WebCore::DocumentLoader::DocumentLoader):
820         (WebCore::DocumentLoader::frameLoader):
821         (WebCore::DocumentLoader::~DocumentLoader):
822         (WebCore::DocumentLoader::URL):
823         (WebCore::DocumentLoader::unreachableURL):
824         (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
825         (WebCore::DocumentLoader::isStopping):
826         (WebCore::DocumentLoader::clearErrors):
827         (WebCore::DocumentLoader::stopLoading):
828         (WebCore::DocumentLoader::setupForReplace):
829         (WebCore::DocumentLoader::commitIfReady):
830         (WebCore::DocumentLoader::finishedLoading):
831         (WebCore::DocumentLoader::setCommitted):
832         (WebCore::DocumentLoader::isCommitted):
833         (WebCore::DocumentLoader::setLoading):
834         (WebCore::DocumentLoader::isLoading):
835         (WebCore::DocumentLoader::doesProgressiveLoad):
836         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
837         (WebCore::DocumentLoader::updateLoading):
838         (WebCore::DocumentLoader::setFrame):
839         (WebCore::DocumentLoader::attachToFrame):
840         (WebCore::DocumentLoader::detachFromFrame):
841         (WebCore::DocumentLoader::prepareForLoadStart):
842         (WebCore::DocumentLoader::loadingStartedTime):
843         (WebCore::DocumentLoader::setIsClientRedirect):
844         (WebCore::DocumentLoader::isClientRedirect):
845         (WebCore::DocumentLoader::setPrimaryLoadComplete):
846         (WebCore::DocumentLoader::isLoadingInAPISense):
847         (WebCore::DocumentLoader::stopRecordingResponses):
848         (WebCore::DocumentLoader::title):
849         (WebCore::DocumentLoader::triggeringAction):
850         (WebCore::DocumentLoader::setTriggeringAction):
851         (WebCore::DocumentLoader::setOverrideEncoding):
852         (WebCore::DocumentLoader::overrideEncoding):
853         (WebCore::DocumentLoader::setTitle):
854         (WebCore::DocumentLoader::URLForHistory):
855         * loader/qt/FrameLoaderClientQt.cpp: Added.
856         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
857         (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
858         (WebCore::FrameLoaderClientQt::detachFrameLoader):
859         (WebCore::FrameLoaderClientQt::hasWebView):
860         (WebCore::FrameLoaderClientQt::hasFrameView):
861         (WebCore::FrameLoaderClientQt::hasBackForwardList):
862         (WebCore::FrameLoaderClientQt::resetBackForwardList):
863         (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
864         (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
865         (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
866         (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
867         (WebCore::FrameLoaderClientQt::makeDocumentView):
868         (WebCore::FrameLoaderClientQt::makeRepresentation):
869         (WebCore::FrameLoaderClientQt::forceLayout):
870         (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
871         (WebCore::FrameLoaderClientQt::updateHistoryForCommit):
872         (WebCore::FrameLoaderClientQt::updateHistoryForBackForwardNavigation):
873         (WebCore::FrameLoaderClientQt::updateHistoryForReload):
874         (WebCore::FrameLoaderClientQt::updateHistoryForStandardLoad):
875         (WebCore::FrameLoaderClientQt::updateHistoryForInternalLoad):
876         (WebCore::FrameLoaderClientQt::updateHistoryAfterClientRedirect):
877         (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
878         (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
879         (WebCore::FrameLoaderClientQt::resetAfterLoadError):
880         (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
881         (WebCore::FrameLoaderClientQt::willCloseDocument):
882         (WebCore::FrameLoaderClientQt::detachedFromParent1):
883         (WebCore::FrameLoaderClientQt::detachedFromParent2):
884         (WebCore::FrameLoaderClientQt::detachedFromParent3):
885         (WebCore::FrameLoaderClientQt::detachedFromParent4):
886         (WebCore::FrameLoaderClientQt::loadedFromPageCache):
887         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
888         (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
889         (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
890         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
891         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
892         (WebCore::FrameLoaderClientQt::dispatchWillClose):
893         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
894         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
895         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
896         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
897         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
898         (WebCore::FrameLoaderClientQt::dispatchShow):
899         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
900         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
901         (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
902         (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
903         (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
904         (WebCore::FrameLoaderClientQt::revertToProvisionalState):
905         (WebCore::FrameLoaderClientQt::clearUnarchivingState):
906         (WebCore::FrameLoaderClientQt::progressStarted):
907         (WebCore::FrameLoaderClientQt::progressCompleted):
908         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
909         (WebCore::FrameLoaderClientQt::willChangeTitle):
910         (WebCore::FrameLoaderClientQt::didChangeTitle):
911         (WebCore::FrameLoaderClientQt::finishedLoading):
912         (WebCore::FrameLoaderClientQt::finalSetupForReplace):
913         (WebCore::FrameLoaderClientQt::setDefersLoading):
914         (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
915         (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
916         (WebCore::FrameLoaderClientQt::clearArchivedResources):
917         (WebCore::FrameLoaderClientQt::canShowMIMEType):
918         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
919         (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
920         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
921         (WebCore::FrameLoaderClientQt::restoreScrollPositionAndViewState):
922         (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
923         (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
924         (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
925         (WebCore::FrameLoaderClientQt::didFinishLoad):
926         (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
927         (WebCore::FrameLoaderClientQt::setTitle):
928         (WebCore::FrameLoaderClientQt::userAgent):
929         * loader/qt/FrameLoaderClientQt.h: Added.
930         * loader/qt/FrameLoaderQt.cpp:
931         (WebCore::FrameLoader::submitForm):
932         (WebCore::FrameLoader::overrideMediaType):
933         (WebCore::FrameLoader::getHistoryLength):
934         (WebCore::FrameLoader::referrer):
935         (WebCore::FrameLoader::detachFromParent):
936         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
937         (WebCore::FrameLoader::goBackOrForward):
938         (WebCore::FrameLoader::historyURL):
939         (WebCore::FrameLoader::didFirstLayout):
940         (WebCore::FrameLoader::canGoBackOrForward):
941         (WebCore::FrameLoader::partClearedInBegin):
942         (WebCore::FrameLoader::saveDocumentState):
943         (WebCore::FrameLoader::restoreDocumentState):
944         (WebCore::FrameLoader::didChangeTitle):
945         (WebCore::FrameLoader::redirectDataToPlugin):
946         (WebCore::PolicyCheck::PolicyCheck):
947         (WebCore::PolicyCheck::clear):
948         (WebCore::PolicyCheck::set):
949         (WebCore::PolicyCheck::call):
950         (WebCore::PolicyCheck::clearRequest):
951         * loader/qt/NavigationActionQt.cpp: Added.
952         (WebCore::navigationType):
953         (WebCore::NavigationAction::NavigationAction):
954         * loader/qt/ResourceLoaderQt.cpp: Added.
955         (WebCore::ResourceLoader::ResourceLoader):
956         (WebCore::ResourceLoader::~ResourceLoader):
957         (WebCore::ResourceLoader::setDefersLoading):
958         (WebCore::ResourceLoader::cancel):
959         (WebCore::ResourceLoader::loadsBlocked):
960         * platform/MimeTypeRegistry.cpp:
961         (WebCore::initialiseSupportedImageMIMETypes):
962         * platform/network/qt/ResourceHandleManager.cpp:
963         (WebCore::ResourceHandleManager::slotResult):
964         (WebCore::ResourceHandleManager::cancel):
965         * platform/qt/ChromeClientQt.cpp: Added.
966         (WebCore::rootWindowForFrame):
967         (WebCore::ChromeClientQt::ChromeClientQt):
968         (WebCore::ChromeClientQt::~ChromeClientQt):
969         (WebCore::ChromeClientQt::setWindowRect):
970         (WebCore::ChromeClientQt::windowRect):
971         (WebCore::ChromeClientQt::pageRect):
972         (WebCore::ChromeClientQt::scaleFactor):
973         (WebCore::ChromeClientQt::focus):
974         (WebCore::ChromeClientQt::unfocus):
975         (WebCore::ChromeClientQt::createWindow):
976         (WebCore::ChromeClientQt::createModalDialog):
977         (WebCore::ChromeClientQt::show):
978         (WebCore::ChromeClientQt::canRunModal):
979         (WebCore::ChromeClientQt::runModal):
980         (WebCore::ChromeClientQt::setToolbarsVisible):
981         (WebCore::ChromeClientQt::toolbarsVisible):
982         (WebCore::ChromeClientQt::setStatusbarVisible):
983         (WebCore::ChromeClientQt::statusbarVisible):
984         (WebCore::ChromeClientQt::setScrollbarsVisible):
985         (WebCore::ChromeClientQt::scrollbarsVisible):
986         (WebCore::ChromeClientQt::setMenubarVisible):
987         (WebCore::ChromeClientQt::menubarVisible):
988         (WebCore::ChromeClientQt::setResizable):
989         * platform/qt/ChromeClientQt.h: Added.
990         * platform/qt/EditorClientQt.cpp:
991         (WebCore::EditorClientQt::shouldBeginEditing):
992         (WebCore::EditorClientQt::shouldEndEditing):
993         (WebCore::EditorClientQt::shouldApplyStyle):
994         (WebCore::EditorClientQt::didBeginEditing):
995         (WebCore::EditorClientQt::respondToChangedContents):
996         (WebCore::EditorClientQt::didEndEditing):
997         * platform/qt/EditorClientQt.h:
998         * platform/qt/FrameQt.cpp:
999         (WebCore::FrameQt::FrameQt):
1000         (WebCore::FrameQt::~FrameQt):
1001         (WebCore::FrameQt::keyEvent):
1002         * platform/qt/FrameQt.h:
1003         * platform/qt/FrameQtClient.cpp:
1004         (WebCore::FrameQtClientDefault::openURL):
1005         (WebCore::FrameQtClientDefault::didReceiveData):
1006         (WebCore::FrameQtClientDefault::receivedAllData):
1007         * platform/qt/ImageQt.cpp:
1008         * platform/qt/MimeTypeRegistryQt.cpp: Added.
1009         (WebCore::getMIMETypeForUTI):
1010         (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
1011         * platform/qt/PageQt.cpp:
1012         * platform/qt/PlatformKeyboardEventQt.cpp:
1013         (WebCore::keyIdentifierForQtKeyCode):
1014         * platform/qt/ScreenQt.cpp:
1015         * platform/qt/TemporaryLinkStubs.cpp:
1016         (WebCore::TextField::TextField):
1017         (WebCore::screenDepth):
1018         (WebCore::screenDepthPerComponent):
1019         (WebCore::screenIsMonochrome):
1020         (WebCore::screenRect):
1021         (WebCore::screenAvailableRect):
1022
1023 2006-11-10  Brady Eidson <beidson@apple.com>
1024
1025         Reviewed by Mitz
1026
1027         http://bugs.webkit.org/show_bug.cgi?id=11554
1028         Fix the above bug (in didFinishLoading) and also another potential bug in didFailWithError
1029         in case the icon load fails after some data has been received. 
1030
1031         * loader/icon/IconLoader.cpp:
1032         (WebCore::IconLoader::didFailWithError): Clear the buffer so half-an-image isn't commited to the DB
1033         on error.  Also, as a loader re-factoring sanity check, added an assertion
1034         (WebCore::IconLoader::didFinishLoading): If an icon loader resulted in an error-response, the icon 
1035         is already committed to the DB.  Skip doing that step twice.
1036
1037 2006-11-09  Oliver Hunt  <oliver@apple.com>
1038
1039         Reviewed by Brady.
1040
1041         Pulled MIME type handling out of WebFrameBridge and added
1042         a general C++ class to store/query MIME info
1043         Added an Obj-C bridge to provide WebKit with access to the
1044         MimeTypeRegistry for non-Obj-C++ classes.
1045         
1046         * WebCore.exp:
1047         * WebCore.xcodeproj/project.pbxproj:
1048         * bridge/mac/WebCoreFrameBridge.h:
1049         * bridge/mac/WebCoreFrameBridge.mm:
1050         * bridge/mac/WebMimeTypeRegistryBridge.h: Added.
1051         * bridge/mac/WebMimeTypeRegistryBridge.mm: Added.
1052         (+[WebMimeTypeRegistryBridge supportsImageWithMIMEType:]):
1053         (+[WebMimeTypeRegistryBridge supportsNonImageWithMIMEType:]):
1054         (+[WebMimeTypeRegistryBridge supportedNonImageMIMETypes]):
1055         (+[WebMimeTypeRegistryBridge supportedImageMIMETypes]):
1056         (+[WebMimeTypeRegistryBridge supportedImageResourceMIMETypes]):
1057         * platform/Image.cpp:
1058         (WebCore::Image::supportsType):
1059         * platform/Image.h:
1060         * platform/MimeTypeRegistry.cpp: Added.
1061         (WebCore::initialiseSupportedImageMIMETypes):
1062         (WebCore::initialiseSupportedNonImageMimeTypes):
1063         (WebCore::initialiseMimeTypeRegistry):
1064         (WebCore::MimeTypeRegistry::isSupportedImageMIMEType):
1065         (WebCore::MimeTypeRegistry::isSupportedImageResourceMIMEType):
1066         (WebCore::MimeTypeRegistry::isSupportedNonImageMIMEType):
1067         (WebCore::MimeTypeRegistry::getSupportedImageMIMETypes):
1068         (WebCore::MimeTypeRegistry::getSupportedImageResourceMIMETypes):
1069         (WebCore::MimeTypeRegistry::getSupportedNonImageMIMETypes):
1070         * platform/MimeTypeRegistry.h: Added.
1071         * platform/mac/ImageMac.mm:
1072         * platform/mac/MimeTypeRegistryMac.mm: Added.
1073         (WebCore::getMIMETypeForUTI):
1074         (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
1075
1076 2006-11-09  Maciej Stachowiak  <mjs@apple.com>
1077
1078         Reviewed by Oliver.
1079
1080         - rename String::sprintf and DeprecatedString::sprintf to ...::format to avoid needlessly tweaking a search
1081         for insecure functions. Neither of these has risk of buffer overruns since they calculate the buffer size
1082         for you and use vsnprintf.
1083
1084         * bindings/js/kjs_window.cpp:
1085         (KJS::Window::isSafeScript):
1086         * css/cssparser.cpp:
1087         (WebCore::CSSParser::parseColorFromValue):
1088         * dom/StyledElement.cpp:
1089         (WebCore::StyledElement::addCSSColor):
1090         * dom/XMLTokenizer.cpp:
1091         (WebCore::XMLTokenizer::handleError):
1092         * ksvg2/css/SVGCSSParser.cpp:
1093         (WebCore::CSSParser::parseSVGPaint):
1094         (WebCore::CSSParser::parseSVGColor):
1095         * ksvg2/svg/SVGPathSegArc.h:
1096         (WebCore::SVGPathSegArcAbs::toString):
1097         (WebCore::SVGPathSegArcRel::toString):
1098         * ksvg2/svg/SVGPathSegCurvetoCubic.h:
1099         (WebCore::SVGPathSegCurvetoCubicAbs::toString):
1100         (WebCore::SVGPathSegCurvetoCubicRel::toString):
1101         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
1102         (WebCore::SVGPathSegCurvetoCubicSmoothAbs::toString):
1103         (WebCore::SVGPathSegCurvetoCubicSmoothRel::toString):
1104         * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
1105         (WebCore::SVGPathSegCurvetoQuadraticAbs::toString):
1106         (WebCore::SVGPathSegCurvetoQuadraticRel::toString):
1107         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
1108         (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::toString):
1109         (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::toString):
1110         * ksvg2/svg/SVGPathSegLineto.h:
1111         (WebCore::SVGPathSegLinetoAbs::toString):
1112         (WebCore::SVGPathSegLinetoRel::toString):
1113         * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
1114         (WebCore::SVGPathSegLinetoHorizontalAbs::toString):
1115         (WebCore::SVGPathSegLinetoHorizontalRel::toString):
1116         * ksvg2/svg/SVGPathSegLinetoVertical.h:
1117         (WebCore::SVGPathSegLinetoVerticalAbs::toString):
1118         (WebCore::SVGPathSegLinetoVerticalRel::toString):
1119         * ksvg2/svg/SVGPathSegMoveto.h:
1120         (WebCore::SVGPathSegMovetoAbs::toString):
1121         (WebCore::SVGPathSegMovetoRel::toString):
1122         * ksvg2/svg/SVGPolyElement.cpp:
1123         (WebCore::SVGPolyElement::notifyAttributeChange):
1124         * ksvg2/svg/SVGUseElement.cpp:
1125         (WebCore::SVGUseElement::closeRenderer):
1126         * loader/icon/IconDatabase.cpp:
1127         (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
1128         * loader/icon/SQLDatabase.cpp:
1129         (WebCore::SQLDatabase::setSynchronous):
1130         * platform/Color.cpp:
1131         (WebCore::Color::name):
1132         * platform/DeprecatedString.cpp:
1133         (WebCore::DeprecatedString::setNum):
1134         (WebCore::DeprecatedString::format):
1135         * platform/DeprecatedString.h:
1136         * platform/PlatformString.h:
1137         * platform/String.cpp:
1138         (WebCore::String::format):
1139         (WebCore::String::number):
1140         * platform/mac/KeyEventMac.mm:
1141         (WebCore::keyIdentifierForKeyEvent):
1142         * platform/win/KeyEventWin.cpp:
1143         (WebCore::keyIdentifierForWindowsKeyCode):
1144         * rendering/RenderListMarker.cpp:
1145         (WebCore::RenderListMarker::calcMinMaxWidth):
1146
1147 2006-11-09  Maciej Stachowiak  <mjs@apple.com>
1148
1149         Reviewed by Anders.
1150
1151         - fixed "Regression: Can't log into gmail.com"
1152         - fixed "iBench doesn't report results - tests run but no number is recorded"
1153         
1154         * platform/network/cf/FormDataStreamCFNet.cpp:
1155         (WebCore::setHTTPBody): Removed extra ! character.
1156
1157 2006-11-09  Beth Dakin  <bdakin@apple.com>
1158
1159         Reviewed by Hyatt.
1160
1161         Fix for <rdar://problem/4805409> REGRESSION: Reproducible crash in 
1162         WebCore::RenderBlock::skipWhitespace
1163
1164         Note that this will still crash on Debug builds because it will hit 
1165         an assertion failure in editing. (One of the reasons there is no 
1166         layout test along with this fix.) There is definitely some editing 
1167         wackiness happening. See http://bugs.webkit.org/show_bug.cgi?
1168         id=10144 for updates on the assertion failure bug.
1169
1170         * rendering/RootInlineBox.cpp:
1171         (WebCore::RootInlineBox::childRemoved): It is possible for a 
1172         prevRootBox and its prevRootBox to share a lineBreakObj. So instead 
1173         of just clearing the lineBreakObj of the prevRootBox, cycle through 
1174         all prevRootBoxs with the same lineBreakObj. 
1175
1176 2006-11-09  Adam Roben  <aroben@apple.com>
1177
1178         Reviewed by Geoff.
1179
1180         Fix the change in behavior I caused in r17680 with my build fix.
1181
1182         * rendering/RenderObject.cpp:
1183         (WebCore::RenderObject::maxTopMargin):
1184         (WebCore::RenderObject::maxBottomMargin):
1185
1186 2006-11-09  Anders Carlsson  <acarlsson@apple.com>
1187
1188         Reviewed by Adam, Oliver.
1189
1190         Move more functions to Editor.
1191
1192         * bridge/EditorClient.h:
1193         * bridge/mac/FrameMac.h:
1194         * bridge/mac/FrameMac.mm:
1195         * bridge/mac/WebCoreFrameBridge.h:
1196         * editing/EditCommand.cpp:
1197         (WebCore::EditCommand::apply):
1198         (WebCore::EditCommand::unapply):
1199         (WebCore::EditCommand::reapply):
1200         * editing/Editor.cpp:
1201         (WebCore::Editor::respondToChangedContents):
1202         (WebCore::dispatchEditableContentChangedEvents):
1203         (WebCore::Editor::appliedEditing):
1204         (WebCore::Editor::unappliedEditing):
1205         (WebCore::Editor::reappliedEditing):
1206         * editing/Editor.h:
1207         * editing/TypingCommand.cpp:
1208         (WebCore::TypingCommand::typingAddedToOpenCommand):
1209         * page/Frame.cpp:
1210         * page/Frame.h:
1211
1212 2006-11-09  Darin Adler  <darin@apple.com>
1213
1214         * rendering/RenderObject.h: Oops! Fixed accidentally checked-in ifdef.
1215
1216 2006-11-09  Alice Liu  <alice.liu@apple.com>
1217
1218         Reviewed by Beth Dakin.
1219
1220         Fixed <rdar://problem/4808720> Hamachi test tool crashes Safari in WebCore::HTMLTableSectionElement::deleteRow
1221         All existing layout tests pass
1222
1223         * html/HTMLTableElement.cpp:
1224         (WebCore::HTMLTableElement::deleteRow):
1225         check lastSection before deleting row
1226
1227 2006-11-09  Darin Adler  <darin@apple.com>
1228
1229         - improved version of last night's build fix (should not do using namespace in a header)
1230
1231         * rendering/RenderObject.h:
1232         * rendering/RenderObject.cpp:
1233         (WebCore::RenderObject::maxTopMargin):
1234         (WebCore::RenderObject::maxBottomMargin):
1235
1236 2006-11-08  Maciej Stachowiak  <mjs@apple.com>
1237
1238         Reviewed by Geoff.
1239         
1240         - added ResourceError class and didFailWithError client method
1241
1242         * WebCore.xcodeproj/project.pbxproj:
1243         * loader/icon/IconLoader.cpp:
1244         (WebCore::IconLoader::didFailWithError):
1245         (WebCore::IconLoader::didFinishLoading):
1246         * loader/icon/IconLoader.h:
1247         * loader/loader.cpp:
1248         (WebCore::Loader::receivedAllData):
1249         (WebCore::Loader::didFailWithError):
1250         * loader/loader.h:
1251         * loader/mac/SubresourceLoaderMac.mm:
1252         (WebCore::SubresourceLoader::didFail):
1253         (WebCore::SubresourceLoader::didCancel):
1254         * platform/cf/RetainPtr.h:
1255         (WebCore::):
1256         (WebCore::adoptCFReference):
1257         (WebCore::RetainPtr::RetainPtr):
1258         (WebCore::::adopt):
1259         * platform/network/ResourceError.cpp: Added.
1260         * platform/network/ResourceError.h: Added.
1261         (WebCore::ResourceError::ResourceError):
1262         (WebCore::ResourceError::domain):
1263         (WebCore::ResourceError::errorCode):
1264         (WebCore::ResourceError::failingURL):
1265         (WebCore::ResourceError::localizedDescription):
1266         (WebCore::ResourceError::unpackPlatformErrorIfNeeded):
1267         * platform/network/ResourceHandle.cpp:
1268         * platform/network/ResourceHandle.h:
1269         * platform/network/ResourceHandleClient.h:
1270         (WebCore::ResourceHandleClient::didFailWithError):
1271         * platform/network/cf/ResourceHandleCFNet.cpp:
1272         (WebCore::didFail):
1273         (WebCore::ResourceHandle::cancel):
1274         * platform/network/mac/ResourceErrorMac.mm: Added.
1275         (-[NSError WebCore]):
1276         * platform/network/mac/ResourceHandleMac.mm:
1277         (WebCore::ResourceHandle::reportError):
1278         * xml/xmlhttprequest.cpp:
1279         (WebCore::XMLHttpRequest::didFailWithError):
1280         (WebCore::XMLHttpRequest::didFinishLoading):
1281         * xml/xmlhttprequest.h:
1282
1283 2006-11-08  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
1284
1285         Reviewed by Maciej.
1286
1287         Linux\Gdk fixes.
1288
1289         * platform/gdk/ChromeClientGdk.h:
1290         (WebCore::ChromeClientGdk::~ChromeClientGdk):
1291         * platform/gdk/CursorGdk.cpp:
1292         (WebCore::Cursor::Cursor):
1293         (WebCore::moveCursor):
1294         * platform/gdk/FrameGdk.cpp:
1295         (WebCore::FrameGdk::FrameGdk):
1296         (WebCore::FrameGdk::submitForm):
1297         (WebCore::FrameGdk::urlSelected):
1298         * platform/gdk/PageGdk.cpp:
1299         * platform/gdk/ScreenClientGdk.h: Added.
1300         (WebCore::ScreenClientGdk::~ScreenClientGdk):
1301         * platform/gdk/ScreenGdk.cpp:
1302         (WebCore::ScreenClientGdk::depth):
1303         (WebCore::ScreenClientGdk::depthPerComponent):
1304         (WebCore::ScreenClientGdk::isMonochrome):
1305         (WebCore::ScreenClientGdk::rect):
1306         (WebCore::ScreenClientGdk::usableRect):
1307         * platform/gdk/TemporaryLinkStubs.cpp:
1308         (FrameGdk::historyURL):
1309         (ChromeClientGdk::windowRect):
1310         (ChromeClientGdk::setWindowRect):
1311         (ChromeClientGdk::pageRect):
1312         (ChromeClientGdk::scaleFactor):
1313         (ChromeClientGdk::focus):
1314         (ChromeClientGdk::unfocus):
1315         (ChromeClientGdk::createWindow):
1316         (ChromeClientGdk::createModalDialog):
1317         (ChromeClientGdk::show):
1318         (ChromeClientGdk::canRunModal):
1319         (ChromeClientGdk::runModal):
1320         (ChromeClientGdk::setToolbarsVisible):
1321         (ChromeClientGdk::toolbarsVisible):
1322         (ChromeClientGdk::setStatusbarVisible):
1323         (ChromeClientGdk::statusbarVisible):
1324         (ChromeClientGdk::setScrollbarsVisible):
1325         (ChromeClientGdk::scrollbarsVisible):
1326         (ChromeClientGdk::setMenubarVisible):
1327         (ChromeClientGdk::menubarVisible):
1328         (ChromeClientGdk::setResizable):
1329         * platform/network/ResourceHandleInternal.h:
1330         (WebCore::ResourceHandleInternal::client):
1331         * platform/network/gdk/ResourceHandleManager.cpp:
1332         (WebCore::writeCallback):
1333         (WebCore::ResourceHandleManager::downloadTimerCallback):
1334         (WebCore::ResourceHandleManager::remove):
1335
1336 2006-11-08  Adam Roben  <aroben@apple.com>
1337
1338         Build fix.
1339
1340         * rendering/RenderObject.h:
1341         (WebCore::RenderObject::maxTopMargin):
1342         (WebCore::RenderObject::maxBottomMargin):
1343
1344 2006-11-08  Geoffrey Garen  <ggaren@apple.com>
1345
1346         Reviewed by Anders Carlsson.
1347
1348         Made Screen a good platform citizen by removing its reference to Page. This
1349         made a class unnecessary, so all screen fuctions are stand-alone now.
1350
1351         * bindings/js/kjs_window.cpp: Removed unnecessary subtractions
1352         when computing the screen's available dimensions.
1353
1354 2006-11-08  Sam Weinig  <sam.weinig@gmail.com>
1355
1356         Reviewed by Mitz.
1357
1358         Fix for http://bugs.webkit.org/show_bug.cgi?id=11506
1359         Cleanup RenderObject
1360
1361         * rendering/RenderObject.cpp:
1362         (WebCore::RenderObject::operator delete):
1363         (WebCore::RenderObject::createObject):
1364         (WebCore::RenderObjectCounter::~RenderObjectCounter):
1365         (WebCore::RenderObject::RenderObject):
1366         (WebCore::RenderObject::isDescendantOf):
1367         (WebCore::RenderObject::isRoot):
1368         (WebCore::RenderObject::addChild):
1369         (WebCore::RenderObject::removeChildNode):
1370         (WebCore::RenderObject::removeChild):
1371         (WebCore::RenderObject::appendChildNode):
1372         (WebCore::RenderObject::insertChildNode):
1373         (WebCore::RenderObject::nextInPreOrder):
1374         (WebCore::RenderObject::nextInPreOrderAfterChildren):
1375         (WebCore::RenderObject::previousInPreOrder):
1376         (WebCore::RenderObject::isEditable):
1377         (WebCore::RenderObject::nextEditable):
1378         (WebCore::RenderObject::previousEditable):
1379         (WebCore::RenderObject::firstLeafChild):
1380         (WebCore::RenderObject::lastLeafChild):
1381         (WebCore::RenderObject::addLayers):
1382         (WebCore::RenderObject::removeLayers):
1383         (WebCore::RenderObject::moveLayers):
1384         (WebCore::RenderObject::findNextLayer):
1385         (WebCore::RenderObject::enclosingLayer):
1386         (WebCore::RenderObject::updateFirstLetter):
1387         (WebCore::RenderObject::offsetParent):
1388         (WebCore::RenderObject::scroll):
1389         (WebCore::RenderObject::hasStaticX):
1390         (WebCore::RenderObject::setNeedsLayout):
1391         (WebCore::RenderObject::setChildNeedsLayout):
1392         (WebCore::RenderObject::markContainingBlocksForLayout):
1393         (WebCore::RenderObject::containingBlock):
1394         (WebCore::RenderObject::containingBlockWidth):
1395         (WebCore::RenderObject::containingBlockHeight):
1396         (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
1397         (WebCore::RenderObject::drawBorderArc):
1398         (WebCore::RenderObject::drawBorder):
1399         (WebCore::RenderObject::paintBorderImage):
1400         (WebCore::RenderObject::paintBorder):
1401         (WebCore::RenderObject::absoluteRects):
1402         (WebCore::RenderObject::addPDFURLRect):
1403         (WebCore::RenderObject::addFocusRingRects):
1404         (WebCore::RenderObject::paintOutline):
1405         (WebCore::RenderObject::repaint):
1406         (WebCore::RenderObject::repaintRectangle):
1407         (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
1408         (WebCore::RenderObject::repaintObjectsBeforeLayout):
1409         (WebCore::RenderObject::getAbsoluteRepaintRectWithOutline):
1410         (WebCore::RenderObject::information):
1411         (WebCore::RenderObject::dump):
1412         (WebCore::selectStartNode):
1413         (WebCore::RenderObject::shouldSelect):
1414         (WebCore::RenderObject::draggableNode):
1415         (WebCore::RenderObject::createAnonymousBlock):
1416         (WebCore::RenderObject::handleDynamicFloatPositionChange):
1417         (WebCore::RenderObject::setStyle):
1418         (WebCore::RenderObject::setStyleInternal):
1419         (WebCore::RenderObject::updateBackgroundImages):
1420         (WebCore::RenderObject::absolutePosition):
1421         (WebCore::RenderObject::caretRect):
1422         (WebCore::RenderObject::paddingTop):
1423         (WebCore::RenderObject::paddingBottom):
1424         (WebCore::RenderObject::paddingLeft):
1425         (WebCore::RenderObject::paddingRight):
1426         (WebCore::RenderObject::tabWidth):
1427         (WebCore::RenderObject::container):
1428         (WebCore::RenderObject::removeFromObjectLists):
1429         (WebCore::RenderObject::destroy):
1430         (WebCore::RenderObject::arenaDelete):
1431         (WebCore::RenderObject::hitTest):
1432         (WebCore::RenderObject::setInnerNode):
1433         (WebCore::RenderObject::nodeAtPoint):
1434         (WebCore::RenderObject::verticalPositionHint):
1435         (WebCore::RenderObject::getVerticalPosition):
1436         (WebCore::RenderObject::lineHeight):
1437         (WebCore::RenderObject::invalidateVerticalPositions):
1438         (WebCore::RenderObject::recalcMinMaxWidths):
1439         (WebCore::RenderObject::scheduleRelayout):
1440         (WebCore::RenderObject::setInlineBoxWrapper):
1441         (WebCore::RenderObject::firstLineStyle):
1442         (WebCore::RenderObject::getPseudoStyle):
1443         (WebCore::RenderObject::getTextDecorationColors):
1444         (WebCore::RenderObject::addDashboardRegions):
1445         (WebCore::RenderObject::collectDashboardRegions):
1446         (WebCore::RenderObject::avoidsFloats):
1447         (WebCore::RenderObject::findCounter):
1448         (WebCore::RenderObject::backslashAsCurrencySymbol):
1449         (WebCore::RenderObject::imageChanged):
1450         (WebCore::RenderObject::previousOffset):
1451         (WebCore::RenderObject::nextOffset):
1452         (WebCore::RenderObject::inlineBox):
1453         * rendering/RenderObject.h:
1454         (WebCore::):
1455         (WebCore::RenderObject::renderName):
1456         (WebCore::RenderObject::parent):
1457         (WebCore::RenderObject::previousSibling):
1458         (WebCore::RenderObject::nextSibling):
1459         (WebCore::RenderObject::firstChild):
1460         (WebCore::RenderObject::lastChild):
1461         (WebCore::RenderObject::getOverflowClipRect):
1462         (WebCore::RenderObject::getClipRect):
1463         (WebCore::RenderObject::getBaselineOfFirstLineBox):
1464         (WebCore::RenderObject::setEdited):
1465         (WebCore::RenderObject::setStaticX):
1466         (WebCore::RenderObject::setStaticY):
1467         (WebCore::RenderObject::setPreviousSibling):
1468         (WebCore::RenderObject::setNextSibling):
1469         (WebCore::RenderObject::setParent):
1470         (WebCore::RenderObject::isInlineBlockOrInlineTable):
1471         (WebCore::RenderObject::isRenderView):
1472         (WebCore::RenderObject::childrenInline):
1473         (WebCore::RenderObject::setChildrenInline):
1474         (WebCore::RenderObject::isAnonymousBlock):
1475         (WebCore::RenderObject::isDragging):
1476         (WebCore::RenderObject::needsLayout):
1477         (WebCore::RenderObject::setMinMaxKnown):
1478         (WebCore::RenderObject::setNeedsLayoutAndMinMaxRecalc):
1479         (WebCore::RenderObject::setPositioned):
1480         (WebCore::RenderObject::setRelPositioned):
1481         (WebCore::RenderObject::setFloating):
1482         (WebCore::RenderObject::setInline):
1483         (WebCore::RenderObject::setShouldPaintBackgroundOrBorder):
1484         (WebCore::RenderObject::setReplaced):
1485         (WebCore::RenderObject::PaintInfo::PaintInfo):
1486         (WebCore::RenderObject::paintBackgroundExtended):
1487         (WebCore::RenderObject::calcWidth):
1488         (WebCore::RenderObject::updateFromElement):
1489         (WebCore::RenderObject::RepaintInfo::RepaintInfo):
1490         (WebCore::RenderObject::setOverrideSize):
1491         (WebCore::RenderObject::setPos):
1492         (WebCore::RenderObject::setWidth):
1493         (WebCore::RenderObject::setHeight):
1494         (WebCore::RenderObject::absolutePositionForContent):
1495         (WebCore::RenderObject::overflowHeight):
1496         (WebCore::RenderObject::overflowWidth):
1497         (WebCore::RenderObject::setOverflowHeight):
1498         (WebCore::RenderObject::setOverflowWidth):
1499         (WebCore::RenderObject::overflowLeft):
1500         (WebCore::RenderObject::overflowTop):
1501         (WebCore::RenderObject::overflowRect):
1502         (WebCore::RenderObject::stopAutoscroll):
1503         (WebCore::RenderObject::collapsedMarginTop):
1504         (WebCore::RenderObject::collapsedMarginBottom):
1505         (WebCore::RenderObject::maxTopMargin):
1506         (WebCore::RenderObject::maxBottomMargin):
1507         (WebCore::RenderObject::):
1508         (WebCore::RenderObject::setTable):
1509         (WebCore::RenderObject::isFloatingOrPositioned):
1510         (WebCore::RenderObject::containsFloat):
1511         (WebCore::RenderObject::setSelectionState):
1512         (WebCore::RenderObject::SelectionInfo::SelectionInfo):
1513         (WebCore::RenderObject::lowestPosition):
1514         (WebCore::RenderObject::rightmostPosition):
1515         (WebCore::RenderObject::leftmostPosition):
1516         (WebCore::RenderObject::calcVerticalMargins):
1517         (WebCore::RenderObject::font):
1518
1519 2006-11-08  Darin Adler  <darin@apple.com>
1520
1521         Reviewed by Anders.
1522
1523         - added event parameters to focus-related functions so we can
1524           implement the "option-tab to all links" behavior without relying
1525           on a global "current event" -- also makes it work with DOM events
1526
1527         * page/Frame.h: Removed unneeded includes. Moved some functions
1528         that were misplaced into the appropriate sections.
1529         * page/Frame.cpp:
1530         (WebCore::Frame::doTextFieldCommandFromEvent): Changed parameter from
1531         PlatformKeyboardEvent to the DOM keyboard event class.
1532         (WebCore::Frame::tabsToLinks): Added event parameter.
1533         (WebCore::Frame::tabsToAllControls): Ditto.
1534         (WebCore::scanForForm): Fixed code that incorrectly assumes
1535         that an iframe is an HTMLFrameElement (no longer true since Geoff
1536         changed the class hierarchy a bit).
1537         (WebCore::Frame::hitTestResultAtPoint): Ditto.
1538
1539         * bridge/mac/FrameMac.h: Removed unneeded includes. Moved some functions
1540         that were misplaced into the appropriate sections.
1541         * bridge/mac/FrameMac.mm:
1542         (WebCore::selectorForKeyEvent): Changed to use a DOM event instead of
1543         a PlatformKeyboardEvent.
1544         (WebCore::FrameMac::nextKeyViewInFrame): Changed to use currentKeyboardEvent()
1545         and pass event into next/previousFocusNode.
1546         (WebCore::FrameMac::currentKeyboardEvent): Added. Creates a DOM event from
1547         the AppKit current event, if it's a keyboard event. Really just a hack that's
1548         needed to preserve some code we can remove once we deal with the last NSView-
1549         based form control.
1550         (WebCore::isKeyboardOptionTab): Added.
1551         (WebCore::FrameMac::tabsToLinks): Added event parameter, used to check if the
1552         option (alt) key is down.
1553         (WebCore::FrameMac::tabsToAllControls): Ditto.
1554         (WebCore::FrameMac::keyEvent): Changed call to prepareForUserAction() to just
1555         call resetMultipleFormSubmissionProtection() explicitly instead.
1556         (WebCore::FrameMac::mouseDown): Ditto.
1557
1558         * bridge/mac/WebCoreAXObject.mm:
1559         (-[WebCoreAXObject accessibilityDescription]): Fixed code that incorrectly
1560         assumes that an iframe is an HTMLFrameElement (no longer true since Geoff
1561         changed the class hierarchy a bit).
1562         (-[WebCoreAXObject accessibilityPerformAction:]): Changed call to
1563         prepareForUserAction() to call resetMultipleFormSubmissionProtection()
1564         explicitly instead.
1565
1566         * page/FrameView.h:
1567         * page/FrameView.cpp:
1568         (WebCore::FrameView::advanceFocus): Changed function to take an
1569         event parameter, and decide the direction based on the shift key
1570         modifier instead of a passed-in boolean.
1571
1572         * dom/Document.h:
1573         * dom/Document.cpp:
1574         (WebCore::Document::nextFocusNode): Added event parameter.
1575         (WebCore::Document::previousFocusNode): Ditto.
1576         * dom/Node.h:
1577         * dom/Node.cpp:
1578         (WebCore::Node::isKeyboardFocusable): Ditto.
1579         * html/HTMLAnchorElement.h:
1580         * html/HTMLAnchorElement.cpp:
1581         (WebCore::HTMLAnchorElement::isKeyboardFocusable): Ditto.
1582         * html/HTMLGenericFormElement.h:
1583         * html/HTMLGenericFormElement.cpp:
1584         (WebCore::HTMLGenericFormElement::isKeyboardFocusable): Ditto.
1585         * html/HTMLInputElement.h:
1586         * html/HTMLInputElement.cpp:
1587         (WebCore::HTMLInputElement::isKeyboardFocusable): Ditto.
1588         (WebCore::HTMLInputElement::defaultEventHandler): Ditto.
1589         * html/HTMLSelectElement.h:
1590         * html/HTMLSelectElement.cpp:
1591         (WebCore::HTMLSelectElement::isKeyboardFocusable): Ditto.
1592         * html/HTMLTextAreaElement.h:
1593         * html/HTMLTextAreaElement.cpp:
1594         (WebCore::HTMLTextAreaElement::isKeyboardFocusable): Ditto.
1595
1596         * dom/EventTargetNode.cpp:
1597         (WebCore::EventTargetNode::defaultEventHandler): Pass event to the
1598         advanceFocus function.
1599
1600         * platform/TextField.h:
1601         * platform/mac/TextFieldMac.mm: Removed the non-search field code.
1602
1603         * platform/mac/WebCoreTextField.h:
1604         * platform/mac/WebCoreTextField.mm: Removed the non-search field code.
1605         (-[WebCoreTextFieldController controlTextDidChange:]): Removed the
1606         call to FrameMac::handleKeyboardOptionTabInView, which is no longer
1607         needed since the default handler in HTMLInputElement takes care of
1608         option-tab.
1609
1610         * platform/mac/SliderMac.mm:
1611         (-[WebCoreSlider canBecomeKeyView]): Changed to use currentKeyboardEvent()
1612         and pass event into tabsToAllControls.
1613         (Slider::focusPolicy): Ditto.
1614
1615         * rendering/RenderLineEdit.cpp:
1616         (WebCore::RenderLineEdit::RenderLineEdit): Removed the non-search field code.
1617         (WebCore::RenderLineEdit::updateFromElement): Ditto.
1618
1619 2006-11-08  Brady Eidson  <beidson@apple.com>
1620
1621         Reviewed by Dave Harrison, Oliver, and Darin 
1622         (oh my!  where was superkevin on this one?)
1623
1624         <rdar://problem/4816196> "Xcode Help" crashes in WebCore::DocumentLoader::setPrimaryLoadComplete(bool)
1625
1626         More "free nil checking" we lost in the transition from ObjC to C++
1627
1628         * loader/mac/FrameLoaderMac.mm:
1629         (WebCore::FrameLoader::startLoading): Null check m_provisionalDocumentLoader and bail early.
1630         (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Ditto
1631
1632 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
1633
1634         Reviewed by Adam.
1635
1636         Move more code into editor.
1637         
1638         * WebCore.exp:
1639         * bridge/EditorClient.h:
1640         * bridge/mac/FrameMac.h:
1641         * bridge/mac/FrameMac.mm:
1642         * bridge/mac/WebCoreFrameBridge.h:
1643         * dom/Document.cpp:
1644         (WebCore::Document::relinquishesEditingFocus):
1645         (WebCore::Document::acceptsEditingFocus):
1646         (WebCore::Document::didBeginEditing):
1647         (WebCore::Document::didEndEditing):
1648         * editing/Editor.cpp:
1649         (WebCore::Editor::indent):
1650         (WebCore::Editor::outdent):
1651         * editing/Editor.h:
1652         * page/Frame.cpp:
1653         * page/Frame.h:
1654
1655 2006-11-08  Beth Dakin  <bdakin@apple.com>
1656
1657         Reviewed by Adam.
1658
1659         Add ability to HitTestResult to ask if the inner non-shared node is 
1660         content editable.
1661
1662         * WebCore.exp: Export HitTestResult::isContentEditable()
1663         * rendering/HitTestResult.cpp:
1664         (WebCore::HitTestResult::isContentEditable):
1665         * rendering/HitTestResult.h:
1666
1667 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
1668
1669         Build fix.
1670         
1671         * WebCore.xcodeproj/project.pbxproj:
1672         Add DOMCSSStyleDeclarationInternal.h to the "Copy Generated Headers" build phase.
1673
1674 2006-11-08  Timothy Hatcher  <timothy@apple.com>
1675
1676         Reviewed by Darin.
1677
1678         <rdar://problem/4713280> Would like to get an array of bounding rects rather than just the union of them for a DOMRange
1679         <rdar://problem/4804317> Would like SPI to get bounding box for a DOM range without having to change the selection
1680
1681         Added lineBoxRects and boundingBox to Range and DOMRange. These methods correspond to the DOMNode methods.
1682
1683         * bindings/objc/DOM.mm:
1684         (WebCore::kit):
1685         (-[DOMNode lineBoxRects]):
1686         (-[DOMRange boundingBox]):
1687         (-[DOMRange lineBoxRects]):
1688         * bindings/objc/DOMPrivate.h:
1689         * dom/Range.cpp:
1690         (WebCore::Range::boundingBox):
1691         (WebCore::Range::addLineBoxRects):
1692         * dom/Range.h:
1693         * rendering/RenderContainer.cpp:
1694         (WebCore::RenderContainer::addLineBoxRects):
1695         * rendering/RenderContainer.h:
1696         * rendering/RenderObject.cpp:
1697         (WebCore::RenderObject::addLineBoxRects):
1698         * rendering/RenderObject.h:
1699         * rendering/RenderText.cpp:
1700         (WebCore::RenderText::addLineBoxRects):
1701         * rendering/RenderText.h:
1702
1703 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
1704
1705         Reviewed by Oliver.
1706         
1707         Move methods from the bridge and frame into editor.
1708         
1709         * WebCore.exp:
1710         * bridge/EditorClient.h:
1711         * bridge/mac/WebCoreFrameBridge.h:
1712         * bridge/mac/WebCoreFrameBridge.mm:
1713         * editing/Editor.cpp:
1714         (WebCore::Editor::removeFormattingAndStyle):
1715         (WebCore::Editor::applyStyle):
1716         (WebCore::Editor::applyParagraphStyle):
1717         (WebCore::Editor::applyStyleToSelection):
1718         (WebCore::Editor::applyParagraphStyleToSelection):
1719         (WebCore::Editor::toggleBold):
1720         (WebCore::Editor::toggleItalic):
1721         (WebCore::Editor::selectionStartHasStyle):
1722         * editing/Editor.h:
1723         * editing/JSEditor.cpp:
1724         * page/Frame.cpp:
1725         * page/Frame.h:
1726
1727 2006-11-08  Geoffrey Garen  <ggaren@apple.com>
1728
1729         Reviewed by Beth.
1730         
1731         Fixed regression in fast/events/objc-event-api. DumpRenderTree expects to
1732         be able to dispatch user events even when off-screen, so we have to support
1733         off-screen windows when handling mouse events.
1734
1735         * platform/Screen.h:
1736         * platform/mac/PlatformMouseEventMac.mm:
1737         (WebCore::globalPoint): Grab the best screen instead of the screen you're
1738         on, since you might be off-screen.
1739         * platform/mac/ScreenMac.mm:
1740         (WebCore::screenForWindow):
1741
1742 2006-11-08  Darin Adler  <darin@apple.com>
1743
1744         - fix bug caused by last-minute change to my check-in last night
1745           that is causing layout tests to hang
1746
1747         * dom/Document.cpp: (WebCore::Document::completeURL): Added comments.
1748         * loader/FrameLoader.cpp: (WebCore::FrameLoader::submitForm): Turn
1749         a null string into an empty string before calling completeURL.
1750
1751 2006-11-08  Brady Eidson <beidson@apple.com>
1752
1753         Reviewed by Maciej
1754
1755         If the request has already been aborted, bail out of didFinishLoading()
1756         immediately.  This prevents state change notifications that aren't
1757         needed.
1758
1759         * xml/xmlhttprequest.cpp:
1760         (WebCore::XMLHttpRequest::didFinishLoading):
1761
1762 2006-11-08  Darin Adler  <darin@apple.com>
1763
1764         - another attempt to fix Qt build
1765
1766         * loader/qt/FrameLoaderQt.cpp: Added missing include of FrameLoader.h.
1767
1768 2006-11-08  Darin Adler  <darin@apple.com>
1769
1770         Reviewed by Geoff.
1771
1772         - stray bits of my FrameLoader patch that I left out by accident
1773
1774         * loader/FrameLoader.cpp:
1775         (WebCore::FrameLoader::createWindow): Use m_outgoingReferrer instead of outgoingReferrer()
1776         inside the FrameLoader class.
1777         (WebCore::FrameLoader::requestFrame): Use less DeprecatedString.
1778         (WebCore::FrameLoader::clear): Stop the redirection timer.
1779         (WebCore::FrameLoader::receivedFirstData): Added an early return instead of nesting the
1780         entire function in an if statement. Use less DeprecatedString.
1781         (WebCore::FrameLoader::scheduleLocationChange): Fix backwards ? : operator.
1782         (WebCore::FrameLoader::scheduleRefresh): Ditto.
1783         (WebCore::FrameLoader::urlSelected): Use m_outgoingReferrer instead of outgoingReferrer()
1784         inside the FrameLoader class.
1785         * loader/mac/FrameLoaderMac.mm:
1786         (WebCore::FrameLoader::load): Ditto.
1787         (WebCore::FrameLoader::loadResourceSynchronously): Ditto.
1788
1789 2006-11-07  Beth Dakin  <bdakin@apple.com>
1790
1791         Reviewed by Hyatt.
1792
1793         Another go at fix for <rdar://problem/4820814> A crash occurs at 
1794         WebCore::HitTestResult::spellingToolTip() when mousing down on 
1795         iframe at www.macsurfer.com
1796
1797         The fix from yesterday caused a layout test regression which 
1798         exposed an existing bug. The existing bug was that we allowed text 
1799         nodes to stay in the head tag, but other browsers move them to the 
1800         body. The previous fix also caused a performance regression, which 
1801         was seemingly easy to fix by moving the new clause in 
1802         HTMLParser::handleError() to be below the HTMLElement case.
1803
1804         * html/HTMLDocument.cpp:
1805         (WebCore::HTMLDocument::childAllowed): Don't allow comment nodes to 
1806         be the child of the document.
1807         * html/HTMLHeadElement.cpp:
1808         (WebCore::HTMLHeadElement::childAllowed): Do not allow non-
1809         whitespace text nodes to be children of the head.
1810         * html/HTMLHeadElement.h:
1811         * html/HTMLParser.cpp:
1812         (WebCore::HTMLParser::handleError): Error case for comment nodes.
1813         * page/FrameView.cpp:
1814         (WebCore::FrameView::handleMousePressEvent): Safety-net null check 
1815         for the original crash. 
1816
1817 2006-11-07  Darin Adler  <darin@apple.com>
1818
1819         - another attempt to fix Qt build
1820
1821         * loader/icon/IconLoader.h: Added missing include.
1822
1823 2006-11-06  Geoffrey Garen  <ggaren@apple.com>
1824
1825         Reviewed by Tim Hatcher.
1826         
1827         Removed ScreenClient. It was highly unpopular, risking my midterm re-election.
1828         
1829         None of Screen's responsibilities require up-calls to WebKit or delegates, 
1830         so WebCore can handle it all.
1831         
1832         Moved Screen back from page/ to platform/ because it's a platform
1833         abstraction again.
1834
1835         Merged scaling and flipping functions into 'toUserSpace' and 'toDeviceSpace',
1836         since the two were always used together.
1837         
1838         Changed pixel depth queries to query the deepest screen. Darin mentioned
1839         that it might have been a feature, not a bug, to use the main/menubar screen
1840         regardless of the screen you were on. For scaling and flipping that's not
1841         the case, but for querying pixel depth I think it is. You want to know
1842         about the highest pixel depth your content may display on.
1843         
1844         Tests still pass.
1845
1846         * WebCore.exp:
1847         * WebCore.xcodeproj/project.pbxproj:
1848         * page/Page.cpp:
1849         (WebCore::Page::Page):
1850         * page/Page.h:
1851         * page/Screen.cpp: Removed.
1852         * page/Screen.h: Removed.
1853         * page/ScreenClient.h: Removed.
1854         * platform/mac/PlatformMouseEventMac.mm:
1855         (WebCore::globalPoint):
1856         * platform/mac/ScreenMac.mm:
1857         (WebCore::window):
1858         (WebCore::bestScreen):
1859         (WebCore::Screen::depth):
1860         (WebCore::Screen::depthPerComponent):
1861         (WebCore::Screen::isMonochrome):
1862         (WebCore::Screen::rect):
1863         (WebCore::Screen::usableRect):
1864         (WebCore::toUserSpace):
1865         (WebCore::toDeviceSpace):
1866
1867 2006-11-07  Darin Adler  <darin@apple.com>
1868
1869         - try to fix Qt build
1870
1871         * CMakeLists.txt: Updated for some file changes.
1872         * WebCoreSources.bkl: Ditto.
1873
1874 2006-11-07  Darin Adler  <darin@apple.com>
1875
1876         Reviewed by Geoff.
1877
1878         - moved loader code from Frame/FrameMac to FrameLoader
1879
1880         * WebCore.exp:
1881         * WebCore.xcodeproj/project.pbxproj:
1882         * bindings/js/JSXSLTProcessor.h:
1883         * bindings/js/kjs_events.cpp:
1884         (KJS::JSLazyEventListener::parseCode):
1885         * bindings/js/kjs_html.cpp:
1886         (KJS::JSHTMLDocument::putValueProperty):
1887         * bindings/js/kjs_navigator.cpp:
1888         (KJS::Navigator::getValueProperty):
1889         * bindings/js/kjs_proxy.cpp:
1890         (WebCore::KJSProxy::initScriptIfNeeded):
1891         * bindings/js/kjs_window.cpp:
1892         (KJS::Screen::Screen):
1893         (KJS::createNewWindow):
1894         (KJS::Window::getValueProperty):
1895         (KJS::Window::put):
1896         (KJS::Window::isSafeScript):
1897         (KJS::WindowFunc::callAsFunction):
1898         (KJS::ScheduledAction::execute):
1899         (KJS::Location::getValueProperty):
1900         (KJS::Location::put):
1901         (KJS::Location::toString):
1902         (KJS::LocationFunc::callAsFunction):
1903         (KJS::History::getValueProperty):
1904         (KJS::HistoryFunc::callAsFunction):
1905         * bindings/objc/DOM.mm:
1906         (+[DOMNode _nodeWith:WebCore::]):
1907         * bridge/mac/FrameMac.h:
1908         * bridge/mac/FrameMac.mm:
1909         (WebCore::FrameMac::~FrameMac):
1910         (WebCore::FrameMac::setView):
1911         (WebCore::FrameMac::setStatusBarText):
1912         * bridge/mac/WebCoreFrameBridge.h:
1913         * bridge/mac/WebCoreFrameBridge.mm:
1914         (-[WebCoreFrameBridge close]):
1915         (-[WebCoreFrameBridge addData:]):
1916         (-[WebCoreFrameBridge createFrameViewWithNSView:marginWidth:marginHeight:]):
1917         (-[WebCoreFrameBridge reapplyStylesForDeviceType:]):
1918         (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
1919         (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
1920         (-[WebCoreFrameBridge baseURL]):
1921         (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
1922         (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
1923         (-[WebCoreFrameBridge canProvideDocumentSource]):
1924         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
1925         * css/cssparser.cpp:
1926         (WebCore::CSSParser::parseContent):
1927         * dom/DOMImplementation.cpp:
1928         (WebCore::DOMImplementation::createDocument):
1929         (WebCore::DOMImplementation::createHTMLDocument):
1930         * dom/DOMImplementation.h:
1931         * dom/Document.cpp:
1932         (WebCore::Document::readyState):
1933         (WebCore::Document::updateTitle):
1934         (WebCore::Document::open):
1935         (WebCore::Document::close):
1936         (WebCore::Document::implicitClose):
1937         (WebCore::Document::processHttpEquiv):
1938         (WebCore::Document::referrer):
1939         (WebCore::Document::finishedParsing):
1940         * dom/ProcessingInstruction.cpp:
1941         (WebCore::ProcessingInstruction::checkStyleSheet):
1942         * dom/XMLTokenizer.cpp:
1943         (WebCore::XMLTokenizer::endElementNs):
1944         (WebCore::ignorableWhitespaceHandler):
1945         (WebCore::XMLTokenizer::notifyFinished):
1946         * editing/TextIterator.cpp:
1947         (WebCore::TextIterator::rangeFromLocationAndLength):
1948         * html/HTMLAnchorElement.cpp:
1949         (WebCore::HTMLAnchorElement::defaultEventHandler):
1950         * html/HTMLBaseElement.cpp:
1951         (WebCore::HTMLBaseElement::process):
1952         * html/HTMLDocument.cpp:
1953         (WebCore::HTMLDocument::lastModified):
1954         * html/HTMLFormElement.cpp:
1955         (WebCore::HTMLFormElement::formData):
1956         (WebCore::HTMLFormElement::submit):
1957         * html/HTMLFrameElementBase.cpp:
1958         (WebCore::HTMLFrameElementBase::isURLAllowed):
1959         (WebCore::HTMLFrameElementBase::openURL):
1960         (WebCore::HTMLFrameElementBase::willRemove):
1961         * html/HTMLInputElement.cpp:
1962         (WebCore::HTMLInputElement::setValueFromRenderer):
1963         * html/HTMLLinkElement.cpp:
1964         (WebCore::HTMLLinkElement::process):
1965         * html/HTMLParser.cpp:
1966         (WebCore::HTMLParser::handleError):
1967         (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
1968         * html/HTMLPreElement.idl:
1969         * html/HTMLScriptElement.cpp:
1970         (WebCore::HTMLScriptElement::parseMappedAttribute):
1971         (WebCore::HTMLScriptElement::insertedIntoDocument):
1972         * html/HTMLTokenizer.cpp:
1973         (WebCore::HTMLTokenizer::scriptExecution):
1974         (WebCore::HTMLTokenizer::parseTag):
1975         (WebCore::HTMLTokenizer::write):
1976         (WebCore::HTMLTokenizer::stopParsing):
1977         (WebCore::HTMLTokenizer::timerFired):
1978         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
1979         (WebCore::KCanvasFilterQuartz::prepareFilter):
1980         * ksvg2/svg/SVGAElement.cpp:
1981         (WebCore::SVGAElement::defaultEventHandler):
1982         * ksvg2/svg/SVGElement.cpp:
1983         (WebCore::SVGElement::sendSVGLoadEventIfPossible):
1984         * loader/DocLoader.cpp:
1985         (WebCore::DocLoader::setLoadInProgress):
1986         * loader/FrameLoader.cpp:
1987         (WebCore::FormSubmission::FormSubmission):
1988         (WebCore::ScheduledRedirection::):
1989         (WebCore::ScheduledRedirection::ScheduledRedirection):
1990         (WebCore::cancelAll):
1991         (WebCore::getString):
1992         (WebCore::isBackForwardLoadType):
1993         (WebCore::numRequests):
1994         (WebCore::FrameLoader::FrameLoader):
1995         (WebCore::FrameLoader::~FrameLoader):
1996         (WebCore::FrameLoader::createWindow):
1997         (WebCore::FrameLoader::changeLocation):
1998         (WebCore::FrameLoader::urlSelected):
1999         (WebCore::FrameLoader::requestFrame):
2000         (WebCore::FrameLoader::loadSubframe):
2001         (WebCore::FrameLoader::submitFormAgain):
2002         (WebCore::FrameLoader::submitForm):
2003         (WebCore::FrameLoader::stopLoading):
2004         (WebCore::FrameLoader::stop):
2005         (WebCore::FrameLoader::closeURL):
2006         (WebCore::FrameLoader::cancelRedirection):
2007         (WebCore::FrameLoader::iconURL):
2008         (WebCore::FrameLoader::didOpenURL):
2009         (WebCore::FrameLoader::didExplicitOpen):
2010         (WebCore::FrameLoader::replaceContentsWithScriptResult):
2011         (WebCore::FrameLoader::executeScript):
2012         (WebCore::FrameLoader::cancelAndClear):
2013         (WebCore::FrameLoader::clear):
2014         (WebCore::FrameLoader::receivedFirstData):
2015         (WebCore::FrameLoader::responseMIMEType):
2016         (WebCore::FrameLoader::setResponseMIMEType):
2017         (WebCore::FrameLoader::begin):
2018         (WebCore::FrameLoader::write):
2019         (WebCore::FrameLoader::end):
2020         (WebCore::FrameLoader::endIfNotLoading):
2021         (WebCore::FrameLoader::startIconLoader):
2022         (WebCore::FrameLoader::commitIconURLToIconDatabase):
2023         (WebCore::FrameLoader::gotoAnchor):
2024         (WebCore::FrameLoader::finishedParsing):
2025         (WebCore::FrameLoader::loadDone):
2026         (WebCore::FrameLoader::checkCompleted):
2027         (WebCore::FrameLoader::checkEmitLoadEvent):
2028         (WebCore::FrameLoader::baseURL):
2029         (WebCore::FrameLoader::baseTarget):
2030         (WebCore::FrameLoader::completeURL):
2031         (WebCore::FrameLoader::scheduleRedirection):
2032         (WebCore::FrameLoader::scheduleLocationChange):
2033         (WebCore::FrameLoader::scheduleRefresh):
2034         (WebCore::FrameLoader::isScheduledLocationChangePending):
2035         (WebCore::FrameLoader::scheduleHistoryNavigation):
2036         (WebCore::FrameLoader::redirectionTimerFired):
2037         (WebCore::FrameLoader::encoding):
2038         (WebCore::FrameLoader::requestObject):
2039         (WebCore::FrameLoader::shouldUsePlugin):
2040         (WebCore::FrameLoader::loadPlugin):
2041         (WebCore::FrameLoader::clearRecordedFormValues):
2042         (WebCore::FrameLoader::recordFormValue):
2043         (WebCore::FrameLoader::parentCompleted):
2044         (WebCore::FrameLoader::outgoingReferrer):
2045         (WebCore::FrameLoader::lastModified):
2046         (WebCore::FrameLoader::opener):
2047         (WebCore::FrameLoader::setOpener):
2048         (WebCore::FrameLoader::openedByJavaScript):
2049         (WebCore::FrameLoader::setOpenedByJavaScript):
2050         (WebCore::FrameLoader::handleFallbackContent):
2051         (WebCore::FrameLoader::provisionalLoadStarted):
2052         (WebCore::FrameLoader::userGestureHint):
2053         (WebCore::FrameLoader::didNotOpenURL):
2054         (WebCore::FrameLoader::resetMultipleFormSubmissionProtection):
2055         (WebCore::FrameLoader::setEncoding):
2056         (WebCore::FrameLoader::addData):
2057         (WebCore::FrameLoader::canCachePage):
2058         (WebCore::FrameLoader::updatePolicyBaseURL):
2059         (WebCore::FrameLoader::setPolicyBaseURL):
2060         (WebCore::FrameLoader::scrollToAnchor):
2061         (WebCore::FrameLoader::isComplete):
2062         (WebCore::FrameLoader::isLoadingMainResource):
2063         (WebCore::FrameLoader::url):
2064         (WebCore::FrameLoader::startRedirectionTimer):
2065         (WebCore::FrameLoader::stopRedirectionTimer):
2066         (WebCore::FrameLoader::updateBaseURLForEmptyDocument):
2067         (WebCore::FrameLoader::completed):
2068         (WebCore::FrameLoader::started):
2069         (WebCore::FrameLoader::containsPlugins):
2070         (WebCore::FrameLoader::prepareForLoadStart):
2071         (WebCore::FrameLoader::setupForReplace):
2072         (WebCore::FrameLoader::setupForReplaceByMIMEType):
2073         (WebCore::FrameLoader::finalSetupForReplace):
2074         (WebCore::FrameLoader::load):
2075         (WebCore::FrameLoader::canTarget):
2076         (WebCore::FrameLoader::stopLoadingPlugIns):
2077         (WebCore::FrameLoader::stopLoadingSubresources):
2078         (WebCore::FrameLoader::stopLoadingSubframes):
2079         (WebCore::FrameLoader::stopAllLoaders):
2080         (WebCore::FrameLoader::cancelMainResourceLoad):
2081         (WebCore::FrameLoader::cancelPendingArchiveLoad):
2082         (WebCore::FrameLoader::activeDocumentLoader):
2083         (WebCore::FrameLoader::addPlugInStreamLoader):
2084         (WebCore::FrameLoader::removePlugInStreamLoader):
2085         (WebCore::FrameLoader::hasMainResourceLoader):
2086         (WebCore::FrameLoader::isLoadingSubresources):
2087         (WebCore::FrameLoader::isLoadingPlugIns):
2088         (WebCore::FrameLoader::isLoading):
2089         (WebCore::FrameLoader::addSubresourceLoader):
2090         (WebCore::FrameLoader::removeSubresourceLoader):
2091         (WebCore::FrameLoader::releaseMainResourceLoader):
2092         (WebCore::FrameLoader::setDocumentLoader):
2093         (WebCore::FrameLoader::documentLoader):
2094         (WebCore::FrameLoader::setPolicyDocumentLoader):
2095         (WebCore::FrameLoader::provisionalDocumentLoader):
2096         (WebCore::FrameLoader::setProvisionalDocumentLoader):
2097         (WebCore::FrameLoader::state):
2098         (WebCore::FrameLoader::timeOfLastCompletedLoad):
2099         (WebCore::FrameLoader::setState):
2100         (WebCore::FrameLoader::clearProvisionalLoad):
2101         (WebCore::FrameLoader::markLoadComplete):
2102         (WebCore::FrameLoader::commitProvisionalLoad):
2103         (WebCore::FrameLoader::privateBrowsingEnabled):
2104         (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
2105         (WebCore::FrameLoader::clientRedirected):
2106         (WebCore::FrameLoader::shouldReload):
2107         (WebCore::FrameLoader::closeOldDataSources):
2108         (WebCore::FrameLoader::open):
2109         (WebCore::FrameLoader::isStopping):
2110         (WebCore::FrameLoader::finishedLoading):
2111         (WebCore::FrameLoader::URL):
2112         (WebCore::FrameLoader::isArchiveLoadPending):
2113         (WebCore::FrameLoader::isHostedByObjectElement):
2114         (WebCore::FrameLoader::isLoadingMainFrame):
2115         (WebCore::FrameLoader::canShowMIMEType):
2116         (WebCore::FrameLoader::representationExistsForURLScheme):
2117         (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
2118         (WebCore::FrameLoader::cancelContentPolicyCheck):
2119         (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
2120         (WebCore::FrameLoader::finishedLoadingDocument):
2121         (WebCore::FrameLoader::isReplacing):
2122         (WebCore::FrameLoader::setReplacing):
2123         (WebCore::FrameLoader::revertToProvisional):
2124         (WebCore::FrameLoader::subframeIsLoading):
2125         (WebCore::FrameLoader::willChangeTitle):
2126         (WebCore::FrameLoader::loadType):
2127         (WebCore::FrameLoader::stopPolicyCheck):
2128         (WebCore::FrameLoader::continueAfterContentPolicy):
2129         (WebCore::FrameLoader::continueAfterWillSubmitForm):
2130         (WebCore::FrameLoader::didFirstLayout):
2131         (WebCore::FrameLoader::frameLoadCompleted):
2132         (WebCore::FrameLoader::firstLayoutDone):
2133         (WebCore::FrameLoader::isQuickRedirectComing):
2134         (WebCore::FrameLoader::closeDocument):
2135         (WebCore::FrameLoader::detachChildren):
2136         (WebCore::FrameLoader::checkLoadComplete):
2137         (WebCore::FrameLoader::numPendingOrLoadingRequests):
2138         (WebCore::FrameLoader::setClient):
2139         (WebCore::FrameLoader::client):
2140         (WebCore::FrameLoader::userAgent):
2141         (WebCore::FrameLoader::createEmptyDocument):
2142         (WebCore::FrameLoader::tokenizerProcessedData):
2143         (WebCore::FrameLoader::didTellBridgeAboutLoad):
2144         (WebCore::FrameLoader::haveToldBridgeAboutLoad):
2145         (WebCore::FrameLoader::handledOnloadEvents):
2146         (WebCore::FrameLoader::frameDetached):
2147         (WebCore::FrameLoader::setTitle):
2148         (WebCore::FrameLoaderClient::~FrameLoaderClient):
2149         * loader/FrameLoader.h:
2150         (WebCore::):
2151         * loader/FrameLoaderClient.h:
2152         * loader/PluginDocument.cpp:
2153         (WebCore::PluginTokenizer::createDocumentStructure):
2154         (WebCore::PluginTokenizer::writeRawData):
2155         * loader/ResourceLoader.h:
2156         * loader/TextResourceDecoder.cpp:
2157         (WebCore::TextResourceDecoder::checkForHeadCharset):
2158         * loader/icon/IconLoader.cpp:
2159         (WebCore::IconLoader::startLoading):
2160         (WebCore::IconLoader::finishLoading):
2161         * loader/loader.cpp:
2162         (WebCore::Loader::didReceiveResponse):
2163         * loader/mac/DocumentLoaderMac.mm:
2164         (WebCore::DocumentLoader::~DocumentLoader):
2165         (WebCore::DocumentLoader::stopLoading):
2166         (WebCore::DocumentLoader::finishedLoading):
2167         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
2168         (WebCore::DocumentLoader::setPrimaryLoadComplete):
2169         * loader/mac/FrameLoaderMac.mm:
2170         (WebCore::FrameLoader::load):
2171         (WebCore::FrameLoader::startLoading):
2172         (WebCore::FrameLoader::cancelMainResourceLoad):
2173         (WebCore::FrameLoader::receivedMainResourceError):
2174         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
2175         (WebCore::FrameLoader::commitProvisionalLoad):
2176         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
2177         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
2178         (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
2179         (WebCore::FrameLoader::detachFromParent):
2180         (WebCore::FrameLoader::addExtraFieldsToRequest):
2181         (WebCore::FrameLoader::loadResourceSynchronously):
2182         (WebCore::FrameLoader::createFrame):
2183         (WebCore::FrameLoader::objectContentType):
2184         (WebCore::nsArray):
2185         (WebCore::FrameLoader::createPlugin):
2186         (WebCore::FrameLoader::redirectDataToPlugin):
2187         (WebCore::FrameLoader::createJavaAppletWidget):
2188         (WebCore::FrameLoader::partClearedInBegin):
2189         (WebCore::FrameLoader::saveDocumentState):
2190         (WebCore::FrameLoader::restoreDocumentState):
2191         (WebCore::FrameLoader::overrideMediaType):
2192         (WebCore::FrameLoader::mainResourceData):
2193         (WebCore::FrameLoader::canGoBackOrForward):
2194         (WebCore::FrameLoader::originalRequestURL):
2195         (WebCore::FrameLoader::getHistoryLength):
2196         (WebCore::FrameLoader::goBackOrForward):
2197         (WebCore::FrameLoader::historyURL):
2198         (WebCore::FrameLoader::didFinishLoad):
2199         * loader/mac/LoaderFunctionsMac.mm:
2200         (WebCore::ServeSynchronousRequest):
2201         (WebCore::CheckCacheObjectStatus):
2202         * loader/mac/ResourceLoaderMac.mm:
2203         (WebCore::ResourceLoader::cancel):
2204         * loader/mac/SubresourceLoaderMac.mm:
2205         (WebCore::SubresourceLoader::create):
2206         * loader/qt/FrameLoaderQt.cpp: Added.
2207         (WebCore::FrameLoader::submitForm):
2208         (WebCore::FrameLoader::urlSelected):
2209         (WebCore::FrameLoader::setTitle):
2210         (WebCore::FrameLoader::createFrame):
2211         (WebCore::FrameLoader::objectContentType):
2212         (WebCore::FrameLoader::createPlugin):
2213         (WebCore::FrameLoader::createJavaAppletWidget):
2214         (WebCore::FrameLoader::originalRequestURL):
2215         * page/DOMWindow.cpp:
2216         (WebCore::DOMWindow::document):
2217         * page/Frame.cpp:
2218         (WebCore::Frame::~Frame):
2219         (WebCore::Frame::reparseConfiguration):
2220         (WebCore::Frame::shouldDragAutoNode):
2221         (WebCore::Frame::prepareForUserAction):
2222         (WebCore::FramePrivate::FramePrivate):
2223         (WebCore::FramePrivate::~FramePrivate):
2224         * page/Frame.h:
2225         * page/FramePrivate.h:
2226         * page/FrameView.cpp:
2227         (WebCore::FrameView::layout):
2228         (WebCore::FrameView::mediaType):
2229         * page/FrameView.h:
2230         * page/PageState.cpp:
2231         (WebCore::PageState::PageState):
2232         (WebCore::PageState::restoreJavaScriptState):
2233         * platform/mac/CookieJar.mm:
2234         (WebCore::setCookies):
2235         * platform/mac/TextCodecMac.cpp:
2236         * platform/mac/WebFontCache.mm:
2237         (+[WebFontCache fontWithFamily:traits:size:]):
2238         * platform/network/cf/ResourceHandleCFNet.cpp:
2239         (WebCore::ResourceHandle::start):
2240         * platform/network/mac/ResourceHandleMac.mm:
2241         (WebCore::ResourceHandle::start):
2242         * platform/qt/FrameQt.cpp:
2243         * platform/qt/FrameQt.h:
2244         * rendering/RenderApplet.cpp:
2245         (WebCore::RenderApplet::createWidgetIfNecessary):
2246         * rendering/RenderBlock.h:
2247         * rendering/RenderPartObject.cpp:
2248         (WebCore::isURLAllowed):
2249         (WebCore::RenderPartObject::updateWidget):
2250         * xml/DOMParser.cpp:
2251         (WebCore::DOMParser::parseFromString):
2252         * xml/XSLTProcessor.cpp:
2253         (WebCore::XSLTProcessor::createDocumentFromSource):
2254         * xml/xmlhttprequest.cpp:
2255         (WebCore::XMLHttpRequest::getResponseXML):
2256
2257 2006-11-07  Anders Carlsson  <acarlsson@apple.com>
2258
2259         Reviewed by Geoff.
2260
2261         Get rid of some duplicate editing enums. Also rename EAlter to EAlteration.
2262         
2263         * bridge/mac/FrameMac.mm:
2264         (WebCore::FrameMac::registerCommandForUndoOrRedo):
2265         * bridge/mac/WebCoreFrameBridge.h:
2266         * bridge/mac/WebCoreFrameBridge.mm:
2267         (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
2268         (-[WebCoreFrameBridge alterCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
2269         (-[WebCoreFrameBridge alterCurrentSelection:SelectionController::verticalDistance:]):
2270         (-[WebCoreFrameBridge selectionGranularity]):
2271         (-[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:]):
2272         (-[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:]):
2273         (-[WebCoreFrameBridge setTypingStyle:withUndoAction:]):
2274         (-[WebCoreFrameBridge applyStyle:withUndoAction:]):
2275         (-[WebCoreFrameBridge applyParagraphStyle:withUndoAction:]):
2276         * editing/SelectionController.cpp:
2277         (WebCore::SelectionController::setModifyBias):
2278         (WebCore::SelectionController::modify):
2279         * editing/SelectionController.h:
2280         (WebCore::SelectionController::):
2281         * editing/TextGranularity.h:
2282
2283 2006-11-07  Brady Eidson  <beidson@apple.com>
2284
2285         Reviewed by Maciej
2286
2287         Changed the check for "top level frame" to something much more valid
2288
2289         * page/Frame.cpp:
2290         (WebCore::Frame::endIfNotLoading):
2291
2292 2006-11-07  Beth Dakin  <bdakin@apple.com>
2293
2294         Reviewed by Hyatt (yesterday).
2295
2296         Here is part of my patch from yesterday that is safe to roll back 
2297         in. It will make the BuildBot happy.
2298
2299         * rendering/HitTestResult.cpp:
2300         (WebCore::HitTestResult::spellingToolTip): Null-check 
2301         m_innerNonSharedNode.
2302
2303 2006-11-07  Darin Adler  <darin@apple.com>
2304
2305         * loader/icon/IconLoader.cpp: (WebCore::IconLoader::didReceiveResponse):
2306         Comment grammar fix.
2307
2308 2006-11-07  Darin Adler  <darin@apple.com>
2309
2310         Rolled out change for <rdar://problem/4820814>.
2311
2312         Beth's planning on landing a new change for it soon, but in the mean time
2313         we need layout tests succeeding again.
2314
2315 2006-11-07  Darin Adler  <darin@apple.com>
2316
2317         Reviewed by Brady.
2318
2319         - fix <rdar://problem/4752069> 9A274: World of Warcraft Launcher
2320           crashes on launch in WebCore::ResourceLoader::start
2321
2322         No layout test, because this depends on cached icons, although there's
2323         perhaps a way to write a test for it with some further ingenuity.
2324
2325         * loader/icon/IconLoader.h: Make IconLoader inherit from Noncopyable
2326         to make explicit the fact that it can't be successfully copied.
2327         Remove notifyIconChanged function and put the contents in the caller.
2328         This eliminates the need for IconLoaderMac.mm. Added finishedLoading
2329         and clearLoadingState functions to share code. Removed m_url, since the
2330         resource handle already stores the URL. Renamed m_resourceLoader to
2331         m_handle to reflect the class's name change. Removed the 4096-byte
2332         inline buffer from m_data, since the malloc savings is not sufficient
2333         to offset the additional memory use. Removed m_httpStatusCode because
2334         we can instead cancel the load when we get a status code that reflects
2335         failure. Added m_loadIsInProgress boolean because we need to detect
2336         loads that complete during the ResourceHandle::create function call.
2337
2338         * loader/icon/IconLoader.cpp:
2339         (WebCore::IconLoader::IconLoader): Initialize m_loadIsInProgress.
2340         Don't initialize m_httpStatusCode.
2341         (WebCore::IconLoader::~IconLoader): Updated for name change.
2342         (WebCore::IconLoader::startLoading): Added code to use the
2343         m_loadIsInProgress flag to detect if the load completed while inside
2344         the ResourceHandle::create function. Removed code to set m_url.
2345         (WebCore::IconLoader::stopLoading): Call clearLoadingState to share
2346         more code.
2347         (WebCore::IconLoader::didReceiveResponse): Kill the ResourceHandle
2348         and finish loading if the HTTP status code indicates failure.
2349         (WebCore::IconLoader::didReceiveData): Removed assertion that checks
2350         the ResourceHandle, since we can't do that any more.
2351         (WebCore::IconLoader::didFinishLoading): Changed to call finishLoading
2352         so we can share code with the new didReceiveResponse code path.
2353         (WebCore::IconLoader::finishLoading): Moved code here from the
2354         didFinishLoading callback. Pass a URL when calling
2355         commitIconURLToIconDatabase. Call notifyIconChanged directly here
2356         instead of using a separate function. Call clearLoadingState to
2357         share more code with stopLoading.
2358         (WebCore::IconLoader::clearLoadingState): Added.
2359
2360         * loader/mac/IconLoaderMac.mm: Removed.
2361         * WebCore.xcodeproj/project.pbxproj: Removed IconLoaderMac.mm.
2362
2363 2006-11-06  David Harrison  <harrison@apple.com>
2364
2365         Reviewed by Darin.
2366
2367         <rdar://problem/4714993> REGRESSION: After replacing a misspelled word in a sentence, the selected word wraps down to next line (10428)
2368
2369         * editing/pasteboard/3976872-expected.txt:
2370         * editing/pasteboard/4076267-2-expected.txt:
2371         * editing/pasteboard/4076267-3-expected.txt:
2372         * editing/pasteboard/4076267-expected.txt:
2373         * editing/pasteboard/8145-1-expected.txt:
2374         * editing/pasteboard/paste-empty-startcontainer-expected.txt: Removed.
2375         * editing/pasteboard/paste-match-style-001-expected.txt:
2376         * editing/pasteboard/paste-match-style-002-expected.txt:
2377         * editing/pasteboard/paste-text-019-expected.txt:
2378         * editing/pasteboard/pasting-tabs-expected.txt:
2379         Updated because pasting text with no newlines does not use intermediate div.
2380         
2381         * editing/markup.cpp:
2382         (WebCore::fillContainerFromString):
2383         First parameter is now a Container so a fragment can be passed.
2384         
2385         (WebCore::createFragmentFromText):
2386         A string with no newlines gets added inline, rather than being put into a paragraph.
2387
2388 2006-11-06  Beth Dakin  <bdakin@apple.com>
2389
2390         Reviewed by Hyatt.
2391
2392         Fix for <rdar://problem/4820814> A crash occurs at 
2393         WebCore::HitTestResult::spellingToolTip() when mousing down on 
2394         iframe at www.macsurfer.com
2395
2396         The bug here is that the source of the iframe is only a comment, 
2397         and we were not properly constructing the frame because it was 
2398         sort-of empty but not.
2399
2400         * html/HTMLDocument.cpp:
2401         (WebCore::HTMLDocument::childAllowed): newChild is NOT allowed if 
2402         it is a comment node.
2403         * html/HTMLParser.cpp:
2404         (WebCore::HTMLParser::handleError): if n is a comment node and 
2405         there is no head, we create a head, insert in the document, and add 
2406         the comment node as a child. This is what Firefox does too. 
2407         * page/FrameView.cpp:
2408         (WebCore::FrameView::handleMousePressEvent): Safe-guard for the 
2409         fix. It is possible to get a mouse event without a target node, so 
2410         we null check it. (Of course, in the case of this bug, it should 
2411         not have been null, but it is a good thing to check for anyway.
2412         * rendering/HitTestResult.cpp:
2413         (WebCore::HitTestResult::spellingToolTip): Null-check 
2414         m_innerNonSharedNode.
2415
2416 2006-11-06  Justin Garcia  <justin.garcia@apple.com>
2417
2418         Reviewed by harrison
2419         
2420         <rdar://problem/4641880>
2421         Setting bullets to existing text grabs subsequent paragraph
2422         
2423         When a selection ends at the start of a paragraph, we rarely paint 
2424         the selection gap before that paragraph, because there often is no gap.  
2425         In a case like this, it's not obvious to the user that the selection 
2426         ends "inside" that paragraph, so it would be confusing if 
2427         InsertUn{Ordered}List and Indent/Outdent operated on that paragraph.
2428         
2429         * editing/FormatBlockCommand.cpp:
2430         (WebCore::FormatBlockCommand::doApply): Moved the check for editability of
2431         the selection to a more appropriate place.  Change the endingSelection
2432         if it ends at the start of a paragraph.
2433         * editing/IndentOutdentCommand.cpp:
2434         (WebCore::IndentOutdentCommand::doApply): Ditto.
2435         * editing/InsertListCommand.cpp:
2436         (WebCore::InsertListCommand::doApply): Ditto.
2437
2438 2006-11-06  Brady Eidson  <beidson@apple.com>
2439
2440         Reviewed by Sarge
2441
2442         <rdar://problem/4822911> - ASSERTION was a little overzealous.  
2443         Toned it down a bit.
2444
2445         * xml/xmlhttprequest.cpp:
2446         (WebCore::XMLHttpRequest::didFinishLoading):  Toned down assertion
2447
2448 2006-11-06  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
2449
2450         Reviewed by Maciej.
2451
2452         Linux\Gdk build fixes.
2453
2454         * loader/icon/IconDatabase.cpp:
2455         * loader/icon/SQLStatement.h:
2456         * platform/gdk/ChromeClientGdk.h: Added.
2457         (WebCore::ChromeClientGdk::~ChromeClientGdk):
2458         * platform/gdk/CursorGdk.cpp:
2459         (WebCore::pointerCursor):
2460         * platform/gdk/FrameGdk.cpp:
2461         (WebCore::doScroll):
2462         (WebCore::FrameGdk::FrameGdk):
2463         (WebCore::FrameGdk::submitForm):
2464         (WebCore::FrameGdk::urlSelected):
2465         (WebCore::FrameGdk::openURL):
2466         (WebCore::FrameGdk::handleGdkEvent):
2467         * platform/gdk/FrameGdk.h:
2468         (WebCore::FrameGdk::client):
2469         * platform/gdk/RenderPopupMenuGdk.cpp:
2470         (WebCore::PopupMenu::updateFromElement):
2471         * platform/gdk/ScreenGdk.cpp:
2472         * platform/gdk/TemporaryLinkStubs.cpp:
2473         (Slider::focusPolicy):
2474         (WebCore::ServeSynchronousRequest):
2475         (FrameGdk::goBackOrForward):
2476         (FrameGdk::getHistoryLength):
2477         (FrameGdk::historyURL):
2478         (ChromeClientGdk::canRunModal):
2479         (ChromeClientGdk::runModal):
2480         (WebCore::systemBeep):
2481         (WebCore::CachedResource::setPlatformResponse):
2482         (Path::transform):
2483         (ResourceLoader::loadsBlocked):
2484         (IconLoader::notifyIconChanged):
2485         * platform/network/gdk/ResourceHandleManager.cpp:
2486         (WebCore::writeCallback):
2487         (WebCore::ResourceHandleManager::downloadTimerCallback):
2488         (WebCore::ResourceHandleManager::remove):
2489         (WebCore::ResourceHandleManager::add):
2490
2491 2006-11-06  Geoffrey Garen  <ggaren@apple.com>
2492
2493         build fix.
2494         
2495         * WebCore.xcodeproj/project.pbxproj:
2496
2497 2006-11-06  Geoffrey Garen  <ggaren@apple.com>
2498
2499         Reviewed by Maciej, Anders, Darin.
2500
2501         Removed the Page bridge. Beefed up Chrome. Added Screen and ScreenClient.
2502         Fixed a minor where WebCore would always assume it was displayed on the 
2503         monitor containing the menubar. window.open and window.showModalDialog 
2504         are now cross-platform. 
2505         
2506         Layout tests, manual-tests/show-modal-dialog, and manual-tests/
2507         window-open-features-parsing all pass. I verified the new screen functionality
2508         by running in DRT, and checking whether WebCore knew it was off-screen.
2509         
2510         Some refactoring remains, as all were not pleased by this design. I see
2511         in my future another patch.
2512
2513         * bindings/js/kjs_window.cpp: Screen is now a stand-alone object with a
2514         client, to encapsulate asking the platform questions about the screen occupied by
2515         the page. (Previously, we always assumed we were on screen 0, which was a bug.)
2516         * bridge/mac/WebCoreFrameBridge.mm:
2517         (createMouseEventFromDraggingInfo): Reversed argument order, to match other
2518         functions.
2519         (-[WebCoreFrameBridge dragSourceMovedTo:]): ditto
2520         (-[WebCoreFrameBridge dragSourceEndedAt:operation:]): ditto
2521         * bridge/mac/WebCoreFrameNamespaces.h: Removed. Dead Code.
2522         * bridge/mac/WebCoreFrameNamespaces.mm: Removed. Dead Code.
2523         * bridge/mac/WebCorePageBridge.h: Removed. Dead Code.
2524         * bridge/mac/WebCorePageBridge.mm: Removed. Dead Code.
2525         * manual-tests/window-open-features-parsing.html: Updated for accuracy.
2526         (In this case, neither size nor position is specified, so you should
2527         get the default window size and position.)
2528         * page/Screen.cpp: Added. Includes screen-related helper functions used
2529         in WebCore and WebKit.
2530         * platform/PlatformMouseEvent.h: Exported common code so it doesn't have
2531         to be duplicated. Renamed "position" to "point" since both were used,
2532         and "point" seemed clearer.
2533         * platform/Screen.h: Removed. Dead Code.
2534         * platform/mac/LoggingMac.mm: Added. Moved code here from WebCorePageBridge
2535         initialization.
2536
2537 2006-11-06  Graham Dennis  <graham.dennis@gmail.com>
2538
2539         Reviewed by Tim Hatcher.
2540
2541         Part of patch for http://bugs.webkit.org/show_bug.cgi?id=11323
2542         Link dragging behaviour does not obey WebKitEditableLinkBehavior WebPref
2543         
2544         No layout tests added as this must be tested manually by the test
2545         WebCore/manual-tests/contenteditable-link.html
2546
2547         * WebCore.exp: Exported HitTestResult::isLiveLink().
2548         * html/HTMLAnchorElement.cpp:
2549         (WebCore::HTMLAnchorElement::HTMLAnchorElement):
2550         (WebCore::HTMLAnchorElement::defaultEventHandler):
2551         (WebCore::HTMLAnchorElement::isLiveLink):
2552         * html/HTMLAnchorElement.h: added m_wasShiftKeyDownOnMouseDown variable
2553         to track shift key status.
2554         * manual-tests/contenteditable-link.html: Added description about link
2555         dragging behaviour.
2556         * rendering/HitTestResult.cpp:
2557         (WebCore::HitTestResult::isLiveLink): Added.
2558         * rendering/HitTestResult.h:
2559
2560 2006-11-06  Brady Eidson  <beidson@apple.com>
2561
2562         Reviewed by Oliver
2563
2564         Fixes <rdar://problem/4812674> and http://bugs.webkit.org/show_bug.cgi?id=11530
2565         For now, we have to not load favicons when we have no Document - linking directly 
2566         to PDFs being the common case
2567
2568         * loader/icon/IconLoader.cpp:
2569         (WebCore::IconLoader::startLoading): Check for the document and return if none
2570
2571 2006-11-06  Brady Eidson  <beidson@apple.com>
2572
2573         Reviewed by Dave Harrison
2574
2575         <rdar://problem/4801066>
2576         Added a critical null frameLoader() check
2577
2578         * loader/mac/MainResourceLoaderMac.mm:
2579         (WebCore::MainResourceLoader::loadNow):
2580
2581 2006-11-06  David Harrison  <harrison@apple.com>
2582
2583         Reviewed by Darin.
2584
2585         <rdar://problem/4813973> Pressing delete key to remove empty quoted line leaves cursor mis-positioned
2586
2587         Test:
2588         * editing/deleting/delete-br-012.html
2589         
2590         * editing/DeleteSelectionCommand.cpp:
2591         (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete):
2592         Update m_endingPosition when preventing merge.
2593         Also removed setting of m_mergeBlocksAfterDelete when this function returns true, because is is not checked in this case.
2594
2595 2006-11-06  Mark Rowe  <bdash@webkit.org>
2596
2597         Reviewed by Maciej.
2598
2599         http://bugs.webkit.org/show_bug.cgi?id=11526
2600         Bug 11526: REGRESSION(r17610): Layout test failure in svg/custom/create-metadata-element.svg
2601
2602         Update DOMNode::toString to always use className rather than preferring nodeName.
2603
2604         * bindings/js/kjs_dom.cpp:
2605         (KJS::DOMNode::toString): Match the format returned by valueOf.
2606
2607 2006-11-06  Oliver Hunt  <oliver@apple.com>
2608
2609         Reviewed by Maciej.
2610
2611         Fix RTL text in SVG to have correct positioning
2612
2613         * rendering/SVGRootInlineBox.cpp:
2614         (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
2615
2616 2006-11-06  Alexey Proskuryakov  <ap@webkit.org>
2617
2618         Reviewed by Maciej.
2619
2620         http://bugs.webkit.org/show_bug.cgi?id=11517
2621         REGRESSION: Flash clicks/interactivity not working properly
2622
2623         * bridge/mac/FrameMac.mm:
2624         (WebCore::FrameMac::handleMouseMoveEvent):
2625         (WebCore::FrameMac::handleMouseReleaseEvent):
2626         Restore parts of event dispatching that were removed when fixing
2627         bug 7323 - just bypass those for subframes.
2628
2629 2006-11-05  Darin Adler  <darin@apple.com>
2630
2631         - quick attempt to fix the no-SVG build
2632
2633         * platform/graphics/svg/SVGResource.cpp:
2634         * platform/graphics/svg/SVGResource.h:
2635         * platform/graphics/svg/SVGResourceClipper.cpp:
2636         * platform/graphics/svg/SVGResourceClipper.h:
2637         * platform/graphics/svg/SVGResourceImage.h:
2638         * platform/graphics/svg/SVGResourceMarker.cpp:
2639         * platform/graphics/svg/SVGResourceMarker.h:
2640         * platform/graphics/svg/SVGResourceMasker.cpp:
2641         * platform/graphics/svg/SVGResourceMasker.h:
2642         * platform/graphics/svg/cg/SVGResourceMaskerCg.h:
2643         * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
2644         * platform/graphics/svg/qt/SVGResourceImageQt.cpp:
2645         * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
2646         Added #ifdef SVG_SUPPORT to these files.
2647
2648 2006-11-05  MorganL  <morganl.webkit@yahoo.com>
2649
2650         Reviewed & landed by Maciej.
2651
2652         Fixes http://bugs.webkit.org/show_bug.cgi?id=11265
2653
2654         * platform/win/ResourceLoaderWin.cpp:
2655         (WebCore::transferJobStatusCallback):
2656         (WebCore::ResourceLoader::start):
2657
2658 2006-11-04  Maciej Stachowiak  <mjs@apple.com>
2659
2660         Reviewed by Oliver.
2661
2662         - moved FormData and FormDataStream to platform/network directory
2663
2664         * WebCore.xcodeproj/project.pbxproj:
2665         * bridge/mac/WebCoreFrameBridge.mm:
2666         * loader/FormData.cpp: Removed.
2667         * loader/FormData.h: Removed.
2668         * loader/mac/FormDataStream.h: Removed.
2669         * loader/mac/FormDataStream.m: Removed.
2670         * loader/mac/FrameLoaderMac.mm:
2671         * loader/mac/SubresourceLoaderMac.mm:
2672         * platform/network/mac/FormDataStreamMac.h: Added.
2673         * platform/network/mac/FormDataStreamMac.mm: Added.
2674         * platform/network/mac/ResourceRequestMac.mm:
2675
2676 2006-11-05  Steve Falkenburg  <sfalken@apple.com>
2677
2678         Fix build breaks
2679
2680         * loader/DocumentLoader.h:
2681         * platform/win/ScreenWin.cpp:
2682
2683 2006-11-05  Darin Adler  <darin@apple.com>
2684
2685         Reviewed by Geoff.
2686
2687         - more preparation for splitting up Frame into sub-pieces
2688         - removed unnecessary includes from Frame.h
2689
2690         * page/Frame.h: Removed unneeded includes and forward declarations.
2691         Added additional forward declarations. Removed the constant
2692         NoXPosForVerticalArrowNavigation, now moved inside SelectionController.
2693         Created sections of functions to be moved into Chrome, Editor,
2694         EventHandler, FrameLoader, SelectionController, and the Platform
2695         directory, as well as marking one function for deletion.
2696
2697         * page/FramePrivate.h: Removed the definition of the constructor and
2698         destructor and removed unnecessary includes.
2699
2700         * page/FrameView.h: Removed unneeded forward declarations and friend
2701         declarations. Created a section of functions and data to be moved into
2702         EventHandler.
2703
2704         * bridge/mac/FrameMac.h: Removed unneeded forward declarations.
2705         Created sections of functions and data to be moved into Chrome,
2706         Editor, EventHandler, FrameLoader, and the Platform directory.
2707
2708         * bridge/mac/WebCoreFrameBridge.h: Removed obsolete comment.
2709         Removed unused methods areScrollbarsVisible,
2710         nextValidKeyViewOutsideWebFrameViews, and fileWrapperForURL:.
2711
2712         * page/Frame.cpp:
2713         (WebCore::Frame::begin): Added an overload, so Frame.h doesn't have
2714         to include KURL.h just for the KURL default constructor.
2715         (WebCore::FramePrivate::FramePrivate): Moved here from FramePrivate.h.
2716         (WebCore::FramePrivate::~FramePrivate): Ditto.
2717
2718         * page/FrameView.cpp: Removed unused scrollbarMoved and scrollingSelf
2719         booleans, scrollbarMoved and cleared funcitons.
2720         (WebCore::FrameView::clear): Moved the code from the cleared
2721         function in here.
2722         (WebCore::FrameView::scrollTo): Removed code to set scrollingSelf.
2723
2724         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac): Updated
2725         for changes to header.
2726
2727         * editing/SelectionController.cpp:
2728         (WebCore::SelectionController::setSelection):
2729         (WebCore::SelectionController::xPosForVerticalArrowNavigation):
2730         Moved NoXPosForVerticalArrowNavigation into this file.
2731
2732         * bindings/js/kjs_events.cpp:
2733         * bindings/js/kjs_html.cpp:
2734         * bindings/js/kjs_window.cpp:
2735         * bridge/mac/WebCoreAXObject.mm:
2736         * bridge/mac/WebCoreFrameBridge.mm:
2737         * css/cssstyleselector.cpp:
2738         * dom/Document.cpp:
2739         * dom/Element.cpp:
2740         * dom/EventTargetNode.cpp:
2741         * dom/MouseRelatedEvent.cpp:
2742         * dom/XMLTokenizer.cpp:
2743         * html/HTMLBaseElement.cpp:
2744         * html/HTMLDocument.cpp:
2745         * html/HTMLEmbedElement.cpp:
2746         * html/HTMLFrameElementBase.cpp:
2747         * html/HTMLGenericFormElement.cpp:
2748         * html/HTMLObjectElement.cpp:
2749         * html/HTMLTokenizer.cpp:
2750         * loader/mac/FrameLoaderMac.mm:
2751         * page/PageState.cpp:
2752         * rendering/RenderApplet.cpp:
2753         * rendering/RenderBlock.cpp:
2754         * rendering/RenderLayer.cpp:
2755         * rendering/RenderObject.cpp:
2756         * rendering/RenderPartObject.cpp:
2757         * rendering/RenderTreeAsText.cpp:
2758         * xml/XSLTProcessor.cpp:
2759         Added includes as needed to keep compiling, since there are fewer
2760         includes in Frame.h.
2761
2762 2006-11-05  Alexey Proskuryakov  <ap@nypop.com>
2763
2764         Reviewed by Dave Harrison.
2765
2766         http://bugs.webkit.org/show_bug.cgi?id=11402
2767         REGRESSION: onChange does not work anymore for 1st item in popup
2768
2769         * html/HTMLSelectElement.cpp:
2770         (WebCore::HTMLSelectElement::HTMLSelectElement):
2771         (WebCore::HTMLSelectElement::reset):
2772         Set m_lastOnChangeIndex to -1.
2773
2774 2006-11-04  Darin Adler  <darin@apple.com>
2775
2776         Reviewed by Anders.
2777
2778         - fix http://bugs.webkit.org/show_bug.cgi?id=11453
2779           REGRESSION: Status bar always shows cancelled opening the page
2780
2781         * platform/network/mac/ResourceHandleMac.mm:
2782         (WebCore::ResourceHandle::~ResourceHandle): Removed call to cancel.
2783         Since the subresource owns the resource handle, there's no need to cancel.
2784         This arrangement is only temporary, anyway, since Maciej will soon change
2785         things so that the subresource loader uses the resource handle and the
2786         resource handle doesn't know anything about the subresource loader.
2787
2788 2006-11-04  Darin Adler  <darin@apple.com>
2789
2790         Reviewed by Maciej.
2791
2792         - converted more of the loader machinery to work with cross-platform
2793           data structures instead of Macintosh-specific ones
2794
2795           converted most uses of NSURL to KURL and NSEvent to DOM Event in
2796           loader classes
2797
2798           moved download function out of FrameLoader.h to avoid reference to
2799           NSURLConnection
2800
2801           added DOM Event parameters to various functions so that the handlers
2802           can use the DOM Event instead of the global "current NSEvent";
2803           includes Frame::submitForm, HTMLFormElement::prepareSubmit,
2804           HTMLFormElement::submit, FrameLoader::load
2805
2806           moved the setMainFrame call that hands ownership to the Page
2807           into one of the Frame constructors, and removed it from all
2808           the clients
2809
2810           removed const from Event parameter to the urlSelected function
2811           (we rarely use const with DOM elements)
2812
2813           removed some redundant includes and declarations from various
2814           header files
2815
2816           removed NSURL parameter from userAgent function -- if we need it we
2817           can add it back, but converting from NSURL to KURL and back is
2818           inefficient enough that it's best to have it out for now (since it's
2819           been unused for years) -- if we add it back, we can choose an
2820           appropriate parameter type that's always inexpensive to pass
2821
2822           did some basic cleanup in the IconLoader class, including removing
2823           an unnecessary loop that added icon data a byte at a time
2824
2825           renamed safeLoad to load, since it's no different from the other
2826           FrameLoader load functions, safety-wise
2827
2828           fixed some code that was trying to distinguish null frame name from
2829           empty string frame name -- both should be handled the same, but callers
2830           were doing it by checking for empty and turning it into null (in a way
2831           that was causing extra round trips between NSString and WebCore::String)
2832
2833           corrected all uses of "get" and "post" to be uppercase "GET" and "POST"
2834           and got rid of case-insensitive compares of methods
2835
2836         * WebCore.exp:
2837         * WebCore.xcodeproj/project.pbxproj:
2838         * bindings/js/kjs_navigator.cpp:
2839         (KJS::Navigator::getValueProperty):
2840         * bridge/mac/FrameMac.h:
2841         * bridge/mac/FrameMac.mm:
2842         (WebCore::FrameMac::submitForm):
2843         (WebCore::FrameMac::urlSelected):
2844         (WebCore::FrameMac::userAgent):
2845         * bridge/mac/FrameViewMac.mm:
2846         * bridge/mac/WebCoreAXObject.mm:
2847         (-[WebCoreAXObject rendererForView:]):
2848         * bridge/mac/WebCorePageBridge.h:
2849         * bridge/mac/WebCorePageBridge.mm:
2850         * bridge/mac/WebCoreSettings.mm:
2851         * bridge/win/FrameWin.cpp:
2852         (WebCore::FrameWin::urlSelected):
2853         (WebCore::FrameWin::submitForm):
2854         * bridge/win/FrameWin.h:
2855         * dom/MouseRelatedEvent.cpp:
2856         * dom/MouseRelatedEvent.h:
2857         * dom/UIEvent.cpp:
2858         (WebCore::UIEvent::~UIEvent):
2859         * dom/UIEvent.h:
2860         * dom/UIEventWithKeyState.h:
2861         * dom/XMLTokenizer.cpp:
2862         (WebCore::openFunc):
2863         * html/HTMLAnchorElement.cpp:
2864         (WebCore::HTMLAnchorElement::defaultEventHandler):
2865         * html/HTMLButtonElement.cpp:
2866         (WebCore::HTMLButtonElement::defaultEventHandler):
2867         * html/HTMLFormElement.cpp:
2868         (WebCore::HTMLFormElement::submitClick):
2869         (WebCore::HTMLFormElement::prepareSubmit):
2870         (WebCore::HTMLFormElement::submit):
2871         * html/HTMLFormElement.h:
2872         * html/HTMLInputElement.cpp:
2873         (WebCore::HTMLInputElement::defaultEventHandler):
2874         * html/HTMLSelectElement.cpp:
2875         (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
2876         * loader/DocumentLoader.h:
2877         * loader/FrameLoader.h:
2878         * loader/FrameLoaderClient.h:
2879         * loader/NavigationAction.h:
2880         (WebCore::NavigationAction::event):
2881         * loader/icon/IconLoader.cpp:
2882         (WebCore::IconLoader::create):
2883         (WebCore::IconLoader::startLoading):
2884         (WebCore::IconLoader::didReceiveData):
2885         (WebCore::IconLoader::didFinishLoading):
2886         * loader/icon/IconLoader.h:
2887         * loader/loader.cpp:
2888         * loader/mac/DocumentLoaderMac.mm:
2889         (WebCore::DocumentLoader::URL):
2890         (WebCore::DocumentLoader::unreachableURL):
2891         (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
2892         (WebCore::DocumentLoader::URLForHistory):
2893         * loader/mac/FrameLoaderMac.mm:
2894         (WebCore::FrameLoader::load):
2895         (WebCore::FrameLoader::willSendRequest):
2896         (WebCore::FrameLoader::clientRedirected):
2897         (WebCore::FrameLoader::shouldReload):
2898         (WebCore::FrameLoader::notifyIconChanged):
2899         (WebCore::FrameLoader::URL):
2900         (WebCore::FrameLoader::reloadAllowingStaleData):
2901         (WebCore::FrameLoader::reload):
2902         (WebCore::FrameLoader::didChangeTitle):
2903         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
2904         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
2905         (WebCore::FrameLoader::post):
2906         (WebCore::FrameLoader::addExtraFieldsToRequest):
2907         (WebCore::FrameLoader::loadResourceSynchronously):
2908         * loader/mac/IconLoaderMac.mm:
2909         (WebCore::IconLoader::notifyIconChanged):
2910         * loader/mac/LoaderFunctionsMac.mm:
2911         * loader/mac/MainResourceLoaderMac.mm:
2912         (WebCore::shouldLoadAsEmptyDocument):
2913         (WebCore::MainResourceLoader::continueAfterContentPolicy):
2914         * loader/mac/NavigationActionMac.mm:
2915         (WebCore::navigationType):
2916         (WebCore::NavigationAction::NavigationAction):
2917         * loader/mac/ResourceLoaderMac.mm:
2918         * loader/mac/SubresourceLoaderMac.mm:
2919         * page/Frame.cpp:
2920         (WebCore::Frame::Frame):
2921         (WebCore::Frame::urlSelected):
2922         (WebCore::Frame::submitFormAgain):
2923         (WebCore::Frame::submitForm):
2924         (WebCore::Frame::endIfNotLoading):
2925         (WebCore::Frame::hitTestResultAtPoint):
2926         * page/Frame.h:
2927         * page/FramePrivate.h:
2928         * platform/gdk/FrameGdk.cpp:
2929         (WebCore::FrameGdk::FrameGdk):
2930         (WebCore::FrameGdk::submitForm):
2931         (WebCore::FrameGdk::urlSelected):
2932         * platform/gdk/FrameGdk.h:
2933         * platform/mac/TextFieldMac.mm:
2934         * platform/network/HTTPHeaderMap.h:
2935         * platform/network/ResourceHandle.h:
2936         * platform/network/ResourceHandleClient.h:
2937         * platform/network/ResourceHandleInternal.h:
2938         * platform/network/mac/ResourceHandleMac.mm:
2939         * platform/network/mac/ResourceResponseMac.h:
2940         * platform/network/mac/ResourceResponseMac.mm:
2941         (-[NSURLResponse WebCore]):
2942         * platform/network/win/ResourceHandleWin.cpp:
2943         * platform/qt/FrameQt.cpp:
2944         (WebCore::FrameQt::submitForm):
2945         (WebCore::FrameQt::urlSelected):
2946         * platform/qt/FrameQt.h:
2947         * rendering/RenderLineEdit.cpp:
2948         (WebCore::RenderLineEdit::returnPressed):
2949         * xml/XSLTProcessor.cpp:
2950         (WebCore::docLoaderFunc):
2951         * xml/xmlhttprequest.cpp:
2952
2953 2006-11-03  Maciej Stachowiak  <mjs@apple.com>
2954
2955         Reviewed by Adele.
2956
2957         - replaced receivedRedirect with new willSendRequest delegate
2958         - removed most mac-specific loader functions
2959         - use ResourceResponse more in loader code
2960
2961         * WebCore.xcodeproj/project.pbxproj: Add new files.
2962         * bridge/mac/WebCoreFrameBridge.mm:
2963         (-[WebCoreFrameBridge getData:andResponse:forURL:]): Adapted
2964         for CachedResource method renames.
2965         (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
2966         Ditto.
2967         * loader/CachedCSSStyleSheet.cpp:
2968         (WebCore::CachedCSSStyleSheet::checkNotify): simplified
2969         based on ResourceResponse
2970         * loader/CachedImage.cpp:
2971         (WebCore::CachedImage::createImage): adapt for ResourceResponse
2972         * loader/CachedResource.cpp:
2973         (WebCore::CachedResource::CachedResource): store a ResourceResponse;
2974         platform response is now called platformResponse and expiration date
2975         is removed.
2976         (WebCore::CachedResource::~CachedResource): ditto
2977         (WebCore::CachedResource::isExpired): ditto
2978         * loader/CachedResource.h:
2979         (WebCore::CachedResource::platformResponse): ditto
2980         (WebCore::CachedResource::setResponse): ditto
2981         (WebCore::CachedResource::canDelete): ditto
2982         * loader/LoaderFunctions.h:
2983         * loader/loader.cpp:
2984         (WebCore::Loader::receivedResponse): Adjusted for renames.
2985         (WebCore::Loader::didReceiveResponse): Store whole ResourceResponse
2986         in the CachedResource.
2987         * loader/loader.h:
2988         * loader/mac/FormDataStream.h:
2989         * loader/mac/FormDataStream.m:
2990         (WebCore::getStreamFormDatas): Rearranged things so it's
2991         possible to get a FormData back out of a form data stream.
2992         (WebCore::formCreate): ditto
2993         (WebCore::formFinalize): ditto
2994         (WebCore::httpBodyFromStream): ditto
2995         * loader/mac/ImageDocumentMac.mm:
2996         (WebCore::finishImageLoad): s/response/platformResponse/
2997         * loader/mac/LoaderFunctionsMac.mm:
2998         (WebCore::CheckCacheObjectStatus): ditto
2999         (WebCore::CachedResource::setPlatformResponse): ditto
3000         * loader/mac/SubresourceLoaderMac.mm:
3001         (WebCore::SubresourceLoader::willSendRequest): send redirect
3002         to client appropriately
3003         * platform/network/ResourceHandle.h:
3004         * platform/network/ResourceHandleClient.h:
3005         (WebCore::ResourceHandleClient::willSendRequest): new entry
3006         point for SubresourceLoader, dispatch to client.
3007         * platform/network/ResourceRequest.h:
3008         (WebCore::ResourceRequest::allowHTTPCookies): implemented
3009         (WebCore::ResourceRequest::setAllowHTTPCookies): ditto
3010         * platform/network/ResourceResponse.h:
3011         (WebCore::ResourceResponse::ResourceResponse): initialize expiration
3012         date(!)
3013         * platform/network/cf/FormDataStreamCFNet.cpp: Added.
3014         (WebCore::getStreamFormDatas): Added this, ported from NSURL version.
3015         (WebCore::openNextStream): ditto
3016         (WebCore::formCreate): ditto
3017         (WebCore::formFinalize): ditto
3018         (WebCore::formCanRead): ditto
3019         (WebCore::formEventCallback): ditto
3020         (WebCore::setHTTPBody): ditto
3021         (WebCore::httpBodyFromStream): ditto
3022         * platform/network/cf/FormDataStreamCFNet.h: Added.
3023         * platform/network/cf/ResourceHandleCFNet.cpp:
3024         (WebCore::willSendRequest): implemented
3025         (WebCore::ResourceHandle::start): use new ResourceRequest stuff
3026         * platform/network/cf/ResourceResponseCFNet.cpp:
3027         (WebCore::getResourceResponse): do nothing for a null response
3028         * platform/network/mac/ResourceHandleMac.mm:
3029         (WebCore::ResourceHandle::willSendRequest): Implemented; dispatch to client.
3030         * platform/network/mac/ResourceRequestMac.h: Added.
3031         * platform/network/mac/ResourceRequestMac.mm: Added.
3032         (WebCore::getResourceRequest): Added way to convert an NSURLRequest
3033         to a ResourceRequest.
3034         (WebCore::nsURLRequest): Opposite of the above.
3035         * platform/network/cf/ResourceRequestCFNet.h: Added.
3036         * platform/network/cf/ResourceRequestCFNet.cpp: Added.
3037         (WebCore::getResourceRequest): Added way to convert an CFURLRequest
3038         to a ResourceRequest.
3039         (WebCore::cfURLRequest): Opposite of the above.
3040         * xml/xmlhttprequest.cpp:
3041         (WebCore::XMLHttpRequest::willSendRequest): Renamed from receivedRedirect,
3042         adjusted.
3043         * xml/xmlhttprequest.h:
3044
3045 2006-11-04  Darin Adler  <darin@apple.com>
3046
3047         Change suggested by Mitz.
3048
3049         - fix http://bugs.webkit.org/show_bug.cgi?id=11514
3050           REGRESSION (r17438): Repro crash when opening a web archive
3051
3052         * bridge/mac/WebCorePageState.mm:
3053         (-[WebCorePageState dealloc]): Add null check.
3054         (-[WebCorePageState finalize]): Ditto.
3055
3056 2006-11-04  Bertrand Guiheneuf <guiheneuf@gmail.com>
3057
3058         Reviewed by Maciej, tweaked and landed by Alexey (using a patch by Don Gibson).
3059
3060         http://bugs.webkit.org/show_bug.cgi?id=11433
3061         Fixes to get WebKit to run on Windows; implemented AffineTransformCairo.
3062
3063         * WebCore.vcproj/WebCore/WebCore.vcproj:
3064         Added platform/graphics platform/network and platform/network/win to headers search paths
3065         Created platform/graphics and platform/network filters in hierarchy
3066         Moved GraphicsContext and GraphicsTypes to their respective filters
3067         Added EditorClient.h
3068         Added FrameLoader* files in loader/
3069         Added HitTest* files in rendering/
3070         Added Editor.* files in editing/
3071         Added DeleteButton.* and DeleteButtonController.* in editing/
3072
3073         * bridge/win/ChromeClientWin.h: Added.
3074         (WebCore::ChromeClientWin::~ChromeClientWin):
3075         * bridge/win/EditorClientWin.h: Added.
3076         (WebCore::EditorClientWin::~EditorClientWin):
3077
3078         * bridge/win/FrameWin.cpp:
3079         (WebCore::FrameWin::FrameWin):
3080         (WebCore::FrameWin::urlSelected):
3081         (WebCore::FrameWin::submitForm):
3082         (WebCore::FrameWin::createNewWindow):
3083         * bridge/win/FrameWin.h:
3084         Added EditorClient parameter to constructor
3085         Replace usage of FrameLoadRequest::m_request with FrameLoadRequest::resourceRequest()
3086         Removed openURL() and openURLRequest from class definition
3087
3088         * bridge/win/PageWin.cpp:
3089         * platform/AffineTransform.h:
3090         * platform/cairo/AffineTransformCairo.cpp: Added.
3091         (WebCore::AffineTransform::AffineTransform):
3092         (WebCore::AffineTransform::setMatrix):
3093         (WebCore::AffineTransform::map):
3094         (WebCore::AffineTransform::mapRect):
3095         (WebCore::AffineTransform::isIdentity):
3096         (WebCore::AffineTransform::m11):
3097         (WebCore::AffineTransform::m12):
3098         (WebCore::AffineTransform::m21):
3099         (WebCore::AffineTransform::m22):
3100         (WebCore::AffineTransform::dx):
3101         (WebCore::AffineTransform::dy):
3102         (WebCore::AffineTransform::reset):
3103         (WebCore::AffineTransform::scale):
3104         (WebCore::AffineTransform::rotate):
3105         (WebCore::AffineTransform::translate):
3106         (WebCore::AffineTransform::shear):
3107         (WebCore::AffineTransform::det):
3108         (WebCore::AffineTransform::invert):
3109         (WebCore::AffineTransform::operator cairo_matrix_t):
3110         (WebCore::AffineTransform::operator== ):
3111         (WebCore::AffineTransform::operator*= ):
3112         (WebCore::AffineTransform::operator* ):
3113         * platform/cairo/GraphicsContextCairo.cpp:
3114         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
3115         * platform/network/win/ResourceHandleWin.cpp:
3116         (WebCore::ResourceHandle::onHandleCreated):
3117         (WebCore::ResourceHandle::start):
3118         (WebCore::ResourceHandle::fileLoadTimer):
3119         (WebCore::ResourceHandle::cancel):
3120         * platform/win/TemporaryLinkStubs.cpp:
3121         (WebCore::FrameWin::goBackOrForward):
3122         (WebCore::FrameWin::getHistoryLength):
3123         (WebCore::FrameWin::historyURL):
3124         (WebCore::ServeSynchronousRequest):
3125         (WebCore::ChromeClientWin::canRunModal):
3126         (WebCore::ChromeClientWin::runModal):
3127         (WebCore::EditorClientWin::shouldDeleteRange):
3128         (WebCore::EditorClientWin::shouldShowDeleteInterface):
3129         (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
3130         (WebCore::EditorClientWin::isGrammarCheckingEnabled):
3131         (WebCore::EditorClientWin::spellCheckerDocumentTag):
3132         (WebCore::Path::transform):
3133         (WebCore::PopupMenu::updateFromElement):
3134         (WebCore::ResourceLoader::loadsBlocked):
3135         (WebCore::systemBeep):
3136         * rendering/RenderThemeWin.cpp:
3137         (WebCore::RenderThemeWin::paintButton):
3138         (WebCore::RenderThemeWin::paintTextField):
3139
3140 2006-11-04  Alexey Proskuryakov  <ap@nypop.com>
3141
3142         Reviewed by Maciej.
3143
3144         http://bugs.webkit.org/show_bug.cgi?id=11448
3145         &lang; and &rang; entities are mapped to the incorrect Unicode codepoint
3146
3147         * html/HTMLEntityNames.gperf: Use canonical Unicode equivalents for these characters.
3148
3149 2006-11-03  Mark Rowe  <bdash@webkit.org>
3150
3151         Reviewed by Oliver.
3152
3153         Update Windows and Qt project files for file removals in r17585.
3154
3155         * CMakeLists.txt:
3156         * WebCore.vcproj/WebCore/WebCore.vcproj:
3157
3158 2006-11-03  Zack Rusin  <zack@kde.org>
3159
3160         Reviewed by Maciej.
3161
3162         The patch fixes text field drawing on the Qt platform.
3163
3164         * platform/qt/RenderThemeQt.cpp:
3165         (WebCore::RenderThemeQt::paintTextField): Use the style to correctly
3166         render the text field
3167
3168 2006-11-03  Oliver Hunt  <oliver@apple.com>
3169
3170         Reviewed by Tim.
3171
3172         Correct incorrect call to SetCursor
3173
3174         * rendering/RenderFrameSet.cpp:
3175         (WebCore::RenderFrameSet::userResize):
3176
3177 2006-11-03  Adele Peterson  <adele@apple.com>
3178
3179         Reviewed by Oliver.
3180
3181         Removed DeprecatedRenderSelect and ListBox classes.
3182
3183         * WebCore.xcodeproj/project.pbxproj:
3184         * css/html4.css:
3185         * html/HTMLOptionElement.h:
3186         * html/HTMLSelectElement.cpp:
3187         (WebCore::HTMLSelectElement::recalcStyle):
3188         (WebCore::HTMLSelectElement::isKeyboardFocusable):
3189         (WebCore::HTMLSelectElement::isMouseFocusable):
3190         (WebCore::HTMLSelectElement::createRenderer):
3191         (WebCore::HTMLSelectElement::setRecalcListItems):
3192         (WebCore::HTMLSelectElement::notifyOptionSelected):
3193         (WebCore::HTMLSelectElement::defaultEventHandler):
3194         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
3195         (WebCore::HTMLSelectElement::updateListBoxSelection):
3196         * html/HTMLSelectElement.h:
3197         * platform/ListBox.h: Removed.
3198         * platform/mac/FontCacheMac.mm:
3199         * platform/mac/ListBoxMac.mm: Removed.
3200         * platform/win/TemporaryLinkStubs.cpp:
3201         * rendering/DeprecatedRenderSelect.cpp: Removed.
3202         * rendering/DeprecatedRenderSelect.h: Removed.
3203
3204 2006-11-03  Maciej Stachowiak  <mjs@apple.com>
3205
3206         Not reviewed, fix for accidental commit.
3207
3208         - rolled back more of the accidentall commit that I forgot.
3209
3210         * platform/network/mac/ResourceRequestMac.h: Removed.
3211         * platform/network/mac/ResourceRequestMac.mm: Removed.
3212
3213 2006-11-03  Maciej Stachowiak  <mjs@apple.com>
3214
3215         Not reviewed, fix for accidental commit.
3216
3217         - roll back some network changes accidentally committed with a previous patch.
3218
3219         * WebCore.xcodeproj/project.pbxproj:
3220         * bridge/mac/WebCoreFrameBridge.mm:
3221         (-[WebCoreFrameBridge getData:andResponse:forURL:]):
3222         (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
3223         * loader/CachedCSSStyleSheet.cpp:
3224         (WebCore::CachedCSSStyleSheet::checkNotify):
3225         * loader/CachedImage.cpp:
3226         (WebCore::CachedImage::createImage):
3227         * loader/CachedResource.cpp:
3228         (WebCore::CachedResource::CachedResource):
3229         (WebCore::CachedResource::~CachedResource):
3230         (WebCore::CachedResource::setExpireDate):
3231         (WebCore::CachedResource::isExpired):
3232         * loader/CachedResource.h:
3233         (WebCore::CachedResource::response):
3234         * loader/LoaderFunctions.h:
3235         * loader/loader.cpp:
3236         (WebCore::Loader::receivedResponse):
3237         (WebCore::Loader::didReceivedResponse):
3238         * loader/loader.h:
3239         * loader/mac/FormDataStream.h:
3240         * loader/mac/FormDataStream.m:
3241         (WebCore::formCreate):
3242         (WebCore::formFinalize):
3243         * loader/mac/ImageDocumentMac.mm:
3244         (WebCore::finishImageLoad):
3245         * loader/mac/LoaderFunctionsMac.mm:
3246         (WebCore::CheckCacheObjectStatus):
3247         (WebCore::CachedResource::setResponse):
3248         * loader/mac/SubresourceLoaderMac.mm:
3249         (WebCore::SubresourceLoader::willSendRequest):
3250         * platform/network/ResourceHandle.h:
3251         * platform/network/ResourceHandleClient.h:
3252         (WebCore::ResourceHandleClient::receivedRedirect):
3253         * platform/network/ResourceRequest.h:
3254         * platform/network/ResourceResponse.h:
3255         (WebCore::ResourceResponse::ResourceResponse):
3256         * platform/network/mac/ResourceHandleMac.mm:
3257         (WebCore::ResourceHandle::redirectedToURL):
3258         * xml/xmlhttprequest.cpp:
3259         (WebCore::XMLHttpRequest::receivedRedirect):
3260         * xml/xmlhttprequest.h:
3261
3262 2006-11-03  Anders Carlsson  <acarlsson@apple.com>
3263
3264         Rubber-stamped by Oliver.
3265
3266         Remove these, they have been merged with SVGRenderTreeAsText.
3267         
3268         * rendering/SVGRenderAsText.cpp: Removed.
3269         * rendering/SVGRenderAsText.h: Removed.
3270
3271 2006-11-03  Anders Carlsson  <acarlsson@apple.com>
3272
3273         Build fix.
3274         
3275         * platform/network/cf/ResourceHandleCFNet.cpp:
3276         (WebCore::willSendRequest):
3277
3278 2006-11-02  Geoffrey Garen  <ggaren@apple.com>
3279
3280         Reviewed by Darin, Beth.
3281         
3282         First cut at factoring Page's UIDelegate-related functions into Chrome
3283         and ChromeClient.
3284
3285         Layout tests pass.
3286         
3287         * bridge/mac/PageMac.mm: Removed platform-specific constructor, added
3288         setBridge method to replace it.
3289         (WebCore::Page::setBridge):
3290
3291         * bridge/mac/WebCorePageBridge.h: Simplified some things based on the fact
3292         that WebCorePageBridge.h doesn't need to be included by ObjC-only files,
3293         and, now that it uses PassRefPtr, can't be.
3294         
3295         * page/Chrome.cpp: Added. Code copied and converted to c++ from WebCorePageBridge.mm.
3296
3297         * page/Page.h:
3298         (WebCore::Page::dragCaretController): Made this function non-const so that
3299         m_dragCaretController doesn't have to be mutable.
3300
3301 2006-11-03  Alexey Proskuryakov  <ap@nypop.com>
3302
3303         Reviewed by Adele.
3304
3305         http://bugs.webkit.org/show_bug.cgi?id=7323
3306         REGRESSION (10.4.4): ondrag* events don't fire on page in a frame
3307
3308         * bridge/mac/FrameMac.h: Moved drag source information to a static variable
3309         in FrameMac.mm. There can be only one drag active at any moment, and having 
3310         this information here was making sharing this information between 
3311         subframes hard.
3312
3313         * bridge/mac/FrameMac.mm:
3314         (WebCore::FrameMac::FrameMac): Initialize sharedDragInfo.
3315         (WebCore::FrameMac::freeClipboard):
3316         (WebCore::FrameMac::dragHysteresisExceeded):
3317         (WebCore::FrameMac::handleMouseMoveEvent):
3318         (WebCore::FrameMac::handleMouseReleaseEvent):
3319         (WebCore::FrameMac::mouseDown):
3320         (WebCore::FrameMac::dragSourceMovedTo):
3321         (WebCore::FrameMac::dragSourceEndedAt):
3322         (WebCore::FrameMac::dispatchDragSrcEvent):
3323         Access drag source info via sharedDragInfo - this fixes drag source even dispatching.
3324         Also removed some old code that was forwarding mouse events to subviews to make 
3325         HTML editing work in subframes.
3326
3327         * page/FrameView.cpp:
3328         (WebCore::FrameView::updateDragAndDrop):
3329         (WebCore::FrameView::cancelDragAndDrop):
3330         (WebCore::FrameView::performDragAndDrop):
3331         Forward events to subframes for dispatching - this fixes drag target events.
3332
3333 2006-11-03  Zack Rusin  <zack@kde.org>
3334
3335         Reviewed by Tim.
3336
3337         Fixing compile.
3338
3339         * platform/qt/LoaderFunctionsQt.cpp:
3340         (WebCore::CachedResource::setPlatformResponse): Renamed from setResponse
3341
3342 2006-11-01  Zack Rusin  <zack@kde.org>
3343
3344         Reviewed by Maciej.
3345
3346         Moving the word/sentence seperators into a file of their own
3347         and implementing findWordBoundary.
3348
3349         * CMakeLists.txt:
3350         * platform/qt/TemporaryLinkStubs.cpp:
3351         * platform/qt/TextBoundaries.cpp: Added.
3352         (WebCore::findNextSentenceFromIndex):
3353         (WebCore::findSentenceBoundary):
3354         (WebCore::findNextWordFromIndex):
3355         (WebCore::findWordBoundary):
3356
3357 2006-11-03  Zack Rusin  <zack@kde.org>
3358
3359         Reviewed by Maciej.
3360
3361         Compile on both KDE and Qt platforms
3362
3363         * CMakeLists.txt: add zlib explicitly
3364         * platform/network/qt/ResourceHandleManager.cpp:
3365         (WebCore::ResourceHandleManager::self):
3366         (WebCore::QtJob::QtJob):
3367         (WebCore::QtJob::timerEvent): Integrate both implementations
3368         so that moc can parse it
3369         (WebCore::ResourceHandleManager::deliverJobData):
3370         (WebCore::ResourceHandleManager::remove):
3371         * platform/network/qt/ResourceHandleManager.h:
3372
3373 2006-11-03  Maciej Stachowiak  <mjs@apple.com>
3374
3375         No review, suggested by Mitz.
3376
3377         - fix a #if to be #ifdef
3378
3379         * platform/graphics/svg/cg/SVGResourceImageCg.cpp:
3380
3381 2006-11-03  Zack Rusin  <zack@kde.org>
3382
3383         Reviewed and landed by Maciej.
3384         
3385         Compile on the Qt platform.
3386
3387         * ksvg2/misc/KCanvasRenderingStyle.h:
3388         * platform/qt/RenderThemeQt.cpp:
3389         (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
3390
3391 2006-11-03  Zack Rusin  <zack@kde.org>
3392
3393         Reviewed by Hyatt. Landed by Maciej.
3394
3395         Adding setPlatformPen/setPlatformFont/setPlatformFillColor
3396         to graphics context to be able to set consistant state
3397         on the platform specific painter without having to change
3398         fill/stroke/font on every operation. This fixes color/stroke/fill
3399         and font handling in the Qt port.
3400
3401         * platform/graphics/GraphicsContext.cpp:
3402         (WebCore::GraphicsContext::setFont):
3403         (WebCore::GraphicsContext::setPen):
3404         (WebCore::GraphicsContext::setFillColor):
3405         (WebCore::GraphicsContext::setPlatformPen):
3406         (WebCore::GraphicsContext::setPlatformFillColor):
3407         (WebCore::GraphicsContext::setPlatformFont):
3408         * platform/graphics/GraphicsContext.h:
3409         * platform/qt/GraphicsContextQt.cpp:
3410         (WebCore::toQtCompositionMode):
3411         (WebCore::toQtLineCap):
3412         (WebCore::toQtLineJoin):
3413         (WebCore::toQPenStyle):
3414         (WebCore::penToQPen):
3415         (WebCore::TransparencyLayer::TransparencyLayer):
3416         (WebCore::GraphicsContext::addRoundedRectClip):
3417         (WebCore::GraphicsContext::setPlatformFont):
3418         (WebCore::GraphicsContext::setPlatformPen):
3419         (WebCore::GraphicsContext::setPlatformFillColor):
3420         * platform/qt/ScrollViewCanvasQt.cpp:
3421         (WebCore::ScrollViewCanvasQt::ScrollViewCanvasQt):
3422         (WebCore::ScrollViewCanvasQt::paintEvent):
3423         (WebCore::ScrollViewCanvasQt::handleKeyEvent):
3424         * platform/qt/ScrollViewCanvasQt.h:
3425
3426 2006-11-02  Adele Peterson  <adele@apple.com>
3427
3428         Reviewed by Anders.
3429
3430         - Fix for http://bugs.webkit.org/show_bug.cgi?id=9581
3431         REGRESSION: The new NativeTextArea scrolls to the top when the control is unfocused.
3432
3433         Test: fast/forms/textarea-no-scroll-on-blur.html
3434
3435         * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::forwardEvent):
3436           On blur, only scroll back to the start for text fields.
3437
3438 2006-11-02  Anders Carlsson  <acarlsson@apple.com>
3439
3440         Another build fix.
3441         
3442         * rendering/RenderFileUploadControl.cpp:
3443         (WebCore::RenderFileUploadControl::paintObject):
3444
3445 2006-11-02  Anders Carlsson  <acarlsson@apple.com>
3446
3447         Build fix.
3448         
3449         * page/FramePrivate.h:
3450         (WebCore::FramePrivate::FramePrivate):
3451
3452 2006-11-02  Kevin Ollivier <kevino@theolliviers.com>
3453
3454         Reviewed by Geoff, landed by Anders.
3455         
3456         Fix dependency problems caused when running move-js-headers.sh
3457         
3458         * move-js-headers.sh:
3459         Use cp -p instead of just cp so that the modification time
3460         of the original files are used.
3461
3462 2006-11-02  Adam Roben  <aroben@apple.com>
3463
3464         Reviewed by Tim H, landed by Anders.
3465
3466         Fixes http://bugs.webkit.org/show_bug.cgi?id=10840
3467         REGRESSION: Shadow of file upload button is clipped
3468
3469         * rendering/RenderFileUploadControl.cpp:
3470         (WebCore::RenderFileUploadControl::paintObject): Add 2px to the clip
3471         height to keep from clipping in the shadow
3472
3473 2006-11-02  Eike Preuss  <mail@eikepreuss.de>
3474
3475         Reviewed by Maciej, landed by Anders.
3476
3477         * platform/qt/ScrollViewQt.cpp: Fix translation of coordinates between
3478         content and window. ScrollViewQt already receives correct content
3479         coordinates from QScrollArea.
3480         (WebCore::ScrollView::contentsToWindow):
3481         (WebCore::ScrollView::windowToContents):
3482
3483 2006-11-02  Simon Hausmann  <hausmann@kde.org>
3484
3485         Reviewed by Maciej, landed by Anders
3486
3487         * CMakeLists.txt: Make linkage against KDE libraries conditional
3488         * platform/network/qt/ResourceHandleManager.cpp: Added a simple
3489           Qt base resource handler that supports only requests to the
3490           local filesystem. Used when compiling without KDE support.
3491           ResourceHandleManager.cpp/h are to be split up into ResourceHandleManagerKDE
3492           and ResourceHandleManagerQt in the future, as well as QtJob.cpp/h.
3493         (WebCore::QtJob::QtJob):
3494         (WebCore::QtJob::timerEvent):
3495         (WebCore::ResourceHandleManager::ResourceHandleManager):
3496         (WebCore::ResourceHandleManager::~ResourceHandleManager):
3497         (WebCore::ResourceHandleManager::self):
3498         (WebCore::ResourceHandleManager::remove):
3499         (WebCore::ResourceHandleManager::add):
3500         (WebCore::ResourceHandleManager::cancel):
3501         (WebCore::ResourceHandleManager::deliverJobData):
3502         * platform/network/qt/ResourceHandleManager.h:
3503         * platform/qt/FrameQtClient.cpp:
3504         (WebCore::FrameQtClientDefault::runJavaScriptAlert):
3505         (WebCore::FrameQtClientDefault::runJavaScriptConfirm):
3506         (WebCore::FrameQtClientDefault::runJavaScriptPrompt):
3507         * platform/qt/LoaderFunctionsQt.cpp: Use the Qt messagebox and
3508           input dialog functions when compiling without KDE support
3509         (WebCore::ServeSynchronousRequest):
3510
3511 2006-11-02  David Carson  <dacarson@gmail.com>
3512
3513         Reviewed by Geoff, landed by Anders.
3514
3515         Fix for: http://bugs.webkit.org/show_bug.cgi?id=11471
3516         Initializing variable in constructor.
3517
3518         * page/FramePrivate.h:
3519         (WebCore::FramePrivate::FramePrivate):
3520
3521 2006-11-02  Anders Carlsson  <acarlsson@apple.com>
3522
3523         Reviewed by Geoff.
3524
3525         Use CFMutableURLRequestRef instead of CFHTTPMessageRef since not all URL requests are http requests.
3526         
3527         * platform/network/cf/ResourceHandleCFNet.cpp:
3528         (WebCore::addHeadersFromHashMap):
3529         Don't set all headers at once since that clears any previous headers set.
3530         
3531         (WebCore::ResourceHandle::start):
3532
3533 2006-11-02  Adele Peterson  <adele@apple.com>
3534
3535         Reviewed by Mitz and Geoff.
3536
3537         - Fix for:
3538         <rdar://problem/4650271> REGRESSION(NativeTextArea): Textareas don't get scrollbars when text gets too big for content area (10105)
3539         <rdar://problem/4650813> REGRESSION(tiger-leopard): typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
3540         <rdar://problem/4658779> REGRESSION: Text selection is weird in textareas in Trac wiki editing pages
3541
3542         Test: fast/forms/textarea-scrollbar.html
3543
3544         To avoid some of our flexbox bugs for textareas, we're moving the text controls back to RenderBlock.  This should make them
3545         a lot more stable.  In the future, when we've worked out more of the flexbox kinks, we may want to consider moving them back.
3546
3547         * rendering/RenderTextControl.h: Convert text controls back to RenderBlock instead of RenderFlexibleBox.
3548         * rendering/RenderTextControl.cpp: 
3549         (WebCore::RenderTextControl::RenderTextControl):
3550         (WebCore::RenderTextControl::setStyle):
3551         (WebCore::RenderTextControl::createDivStyle):
3552         (WebCore::RenderTextControl::updateFromElement):
3553         (WebCore::RenderTextControl::calcHeight):