Reviewed by Darin, Geoff.
[WebKit-https.git] / WebCore / ChangeLog
1 2006-12-04  Anders Carlsson  <acarlsson@apple.com>
2
3         Reviewed by Darin, Geoff.
4
5         Get rid of ResourceHandle::kill(), all it did was to balance out a ref() in ResourceHandle::start().
6         We use RefPtrs to ResourceHandle instead.
7
8         * loader/icon/IconLoader.cpp:
9         (WebCore::IconLoader::~IconLoader):
10         (WebCore::IconLoader::stopLoading):
11         (WebCore::IconLoader::didReceiveResponse):
12         * loader/loader.cpp:
13         (WebCore::Loader::servePendingRequests):
14         (WebCore::Loader::cancelRequests):
15         (WebCore::Loader::jobForRequest):
16         * loader/loader.h:
17         * platform/network/ResourceHandle.cpp:
18         * platform/network/ResourceHandle.h:
19         * platform/network/mac/ResourceHandleMac.mm:
20         (WebCore::ResourceHandle::start):
21         (WebCore::ResourceHandle::finishJobAndHandle):
22         (WebCore::ResourceHandle::reportError):
23         * xml/xmlhttprequest.cpp:
24         (WebCore::XMLHttpRequest::abort):
25         (WebCore::XMLHttpRequest::didFinishLoading):
26
27 2006-12-04  Oliver Hunt  <oliver@apple.com>
28
29         Build fix for non-SVG builds
30
31         * bindings/js/JSSVGPoint.cpp:
32         (WebCore::JSSVGPointProtoFunc::callAsFunction):
33
34 2006-12-04  Darin Adler  <darin@apple.com>
35
36         Reviewed by Beth.
37
38         - fix http://bugs.webkit.org/show_bug.cgi?id=11632
39           AKA <rdar://problem/4858866> REGRESSION (r17770): Overflow areas' scrollbars don't work
40
41         No test case added at the moment, but Beth said she'd investigate
42         adding one after the fact.
43
44         * page/mac/EventHandlerMac.mm:
45         (WebCore::EventHandler::passMousePressEventToScrollbar):
46         Fix obvious-in-retrospect copy and paste error -- call
47         passMouseDownEventToWidget instead of passWheelEventToWidget.
48
49 2006-12-04  Don Gibson  <dgibson77@gmail.com>
50
51         Reviewed and landed by Alexey.
52
53         http://bugs.webkit.org/show_bug.cgi?id=11738:
54         Make link clicking work again on Windows.
55
56         This re-implements a few functions that used to be part of FrameWin in
57         their new loader-based locations, and copies a few things from the Mac
58         and Qt event handling code that aren't strictly necessary but are
59         pretty simple.
60
61         * WebCore.vcproj/WebCore/WebCore.vcproj:
62         * bridge/win/ChromeClientWin.h:
63         * bridge/win/ContextMenuClientWin.h:
64         * bridge/win/EditorClientWin.h:
65         * bridge/win/FrameWin.cpp:
66         (WebCore::FrameWin::client):
67         * bridge/win/FrameWin.h:
68         * loader/win/DocumentLoaderWin.cpp: Added.
69         (WebCore::DocumentLoader::setTitle):
70         * loader/win/FrameLoaderClientWin.cpp: Added.
71         (WebCore::FrameLoaderClientWin::userAgent):
72         * loader/win/FrameLoaderClientWin.h:
73         * loader/win/FrameLoaderWin.cpp: Added.
74         (WebCore::FrameLoader::urlSelected):
75         (WebCore::FrameLoader::submitForm):
76         (WebCore::FrameLoader::setTitle):
77         * page/win/EventHandlerWin.cpp: Added.
78         (WebCore::EventHandler::passMousePressEventToSubframe):
79         (WebCore::EventHandler::passMouseMoveEventToSubframe):
80         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
81         (WebCore::EventHandler::passWheelEventToSubframe):
82         (WebCore::EventHandler::passMousePressEventToScrollbar):
83         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
84         * platform/win/TemporaryLinkStubs.cpp:
85         (WebCore::EventHandler::tabsToLinks):
86         (WebCore::EventHandler::tabsToAllControls):
87         (WebCore::EventHandler::lastEventIsMouseUp):
88         (WebCore::EventHandler::passSubframeEventToSubframe):
89         (WebCore::EventHandler::passMouseDownEventToWidget):
90         (WebCore::EventHandler::passWheelEventToWidget):
91         (WebCore::FrameLoader::getHistoryLength):
92         (WebCore::FrameLoader::historyURL):
93         (WebCore::FrameLoader::createFrame):
94         (WebCore::FrameLoaderClientWin::setTitle):
95
96 2006-12-04  Don Gibson  <dgibson77@gmail.com>
97
98         Reviewed by Mitz.
99
100         http://bugs.webkit.org/show_bug.cgi?id=11748:
101         Windows build bustage.
102
103         * WebCore.vcproj/WebCore/WebCore.vcproj:
104         * platform/ContextMenuItem.h:
105         * platform/win/TemporaryLinkStubs.cpp:
106         (WebCore::ContextMenuItem::ContextMenuItem):
107         (WebCore::ContextMenuItem::platformDescription):
108         (WebCore::ContextMenuItem::action):
109         (WebCore::ContextMenuItem::setAction):
110         (WebCore::ContextMenuItem::title):
111         (WebCore::ContextMenuItem::setTitle):
112         (WebCore::ContextMenuItem::platformSubMenu):
113         (WebCore::ContextMenuItem::setSubMenu):
114
115 2006-12-04  John Sullivan  <sullivan@apple.com>
116
117         Reviewed by Anders
118
119         Moved EditorMac.mm to its appropriate location
120
121         * platform/mac/EditorMac.mm: Removed.
122         * editing/mac/EditorMac.mm: Added
123
124         * WebCore.xcodeproj/project.pbxproj:
125         updated for this change
126
127 2006-12-04  Rob Buis  <buis@kde.org>
128
129         Reviewed by dhyatt.
130
131         Patch by pmax.
132
133         http://bugs.webkit.org/show_bug.cgi?id=3280
134         With LEGEND element, align=right value is not supported
135         http://bugs.webkit.org/show_bug.cgi?id=11544
136         <legend> rendering doesn't take align into account
137
138         Allow aligning for legends in both RTL and LTR mode.
139
140         * rendering/RenderFieldset.cpp:
141         (WebCore::RenderFieldset::layoutLegend):
142
143 2006-12-03  Mark Rowe  <bdash@webkit.org>
144
145         Reviewed by Alexey.
146
147         http://bugs.webkit.org/show_bug.cgi?id=11730
148         Bug 11730: Meta HTTP Refresh that contains a fraction / decimal get ignored.
149
150         * dom/Document.cpp:
151         (WebCore::Document::processHttpEquiv): Parse the refresh interval as a double rather than an integer.
152
153 2006-12-03  Nikolas Zimmermann  <zimmermann@kde.org>
154
155         Reviewed by Oliver.
156
157         Fix following bugs:
158         http://bugs.webkit.org/show_bug.cgi?id=11734
159         http://bugs.webkit.org/show_bug.cgi?id=11685
160
161         SVGPoint/SVGRect/SVGNumber were missing put() support.
162         SVGPoint.matrixTransform() was missing.
163
164         In SVG DOM there are no cases where a readwrite property
165         exists of type SVGRect/SVGNumber/SVGPoint. Only function
166         calls returns instances of these objects. It would make
167         no sense to be able to write "someObj.getBbox().x = 100", and
168         modify the actual stored internal value of "someObj".
169
170         The only cases where these modification makes sense, is
171         when these SVGPoint/SVGRect/SVGNumber objects are created
172         via document.rootElement.createSVGPoint/Rect/Number (SVGSVGElement interface).
173
174         Result: The current implementation, where we just modify the stored FloatPoint/FloatRect/double
175         values in the JSSVGPoint/Rect/Number wrappers directly, is sufficient.
176
177         Patch created by Rob & me - co production.
178         Long live the great carto.next examples! :-)
179
180         * CMakeLists.txt:
181         * DerivedSources.make:
182         * bindings/js/JSSVGNumber.cpp:
183         (WebCore::):
184         (WebCore::JSSVGNumber::getOwnPropertySlot):
185         (WebCore::JSSVGNumber::getValueProperty):
186         (WebCore::JSSVGNumber::put):
187         (WebCore::JSSVGNumber::putValueProperty):
188         * bindings/js/JSSVGNumber.h:
189         (WebCore::JSSVGNumber::):
190         (WebCore::JSSVGNumber::impl):
191         * bindings/js/JSSVGPoint.cpp:
192         (WebCore::JSSVGPoint::JSSVGPoint):
193         (WebCore::JSSVGPoint::put):
194         (WebCore::JSSVGPoint::putValueProperty):
195         (WebCore::JSSVGPointProtoFunc::callAsFunction):
196         * bindings/js/JSSVGPoint.h:
197         (WebCore::JSSVGPoint::):
198         * bindings/js/JSSVGRect.cpp:
199         (WebCore::JSSVGRect::put):
200         (WebCore::JSSVGRect::putValueProperty):
201         * bindings/js/JSSVGRect.h:
202         * bindings/objc/DOMSVGPoint.mm:
203         (-[DOMSVGPoint matrixTransform:]):
204         * platform/graphics/FloatPoint.cpp:
205         (WebCore::FloatPoint::matrixTransform):
206         * platform/graphics/FloatPoint.h:
207
208 2006-12-03  Nikolas Zimmermann  <zimmermann@kde.org>
209
210         Reviewed by Dave.
211
212         Another missing piece in the platform/graphics move.
213
214         * WebCore.xcodeproj/project.pbxproj:
215         * platform/ImageAnimationObserver.h: Moved to platform/graphics.
216
217 2006-12-03  Rob Buis  <buis@kde.org>
218
219         Reviewed by Oliver.
220
221         http://bugs.webkit.org/show_bug.cgi?id=11667
222         SVG: method .getTransformToElement(elt) in SVGLocatable not implemented
223
224         Implement getTransformToElement functionality. Introduce virtual
225         baseclass SVGLocatable to allow one implementation of the functionality.
226         Finally cleanup some code.
227
228         * ksvg2/svg/SVGLocatable.cpp:
229         (WebCore::SVGLocatable::getTransformToElement):
230         * ksvg2/svg/SVGLocatable.h:
231         * ksvg2/svg/SVGStyledLocatableElement.cpp:
232         (WebCore::SVGStyledLocatableElement::SVGStyledLocatableElement):
233         (WebCore::SVGStyledLocatableElement::nearestViewportElement):
234         (WebCore::SVGStyledLocatableElement::farthestViewportElement):
235         (WebCore::SVGStyledLocatableElement::getCTM):
236         (WebCore::SVGStyledLocatableElement::getScreenCTM):
237         * ksvg2/svg/SVGStyledLocatableElement.h:
238         * ksvg2/svg/SVGStyledTransformableElement.cpp:
239         (WebCore::SVGStyledTransformableElement::SVGStyledTransformableElement):
240         (WebCore::SVGStyledTransformableElement::localMatrix):
241         (WebCore::SVGStyledTransformableElement::getCTM):
242         (WebCore::SVGStyledTransformableElement::getScreenCTM):
243         (WebCore::SVGStyledTransformableElement::updateLocalTransform):
244         (WebCore::SVGStyledTransformableElement::parseMappedAttribute):
245         (WebCore::SVGStyledTransformableElement::nearestViewportElement):
246         (WebCore::SVGStyledTransformableElement::farthestViewportElement):
247         * ksvg2/svg/SVGStyledTransformableElement.h:
248         * ksvg2/svg/SVGTextElement.h:
249         * ksvg2/svg/SVGTransformable.h:
250
251 2006-12-03  Nikolas Zimmermann  <zimmermann@kde.org>
252
253         Reviewed by Rob.
254
255         Move some files around, which have been forgotton in the platform/graphics move.
256
257         * CMakeLists.txt:
258         * WebCore.xcodeproj/project.pbxproj:
259         * platform/mac/GraphicsContextMac.mm: Moved to platform/graphics/mac.
260         * platform/qt/GraphicsContextQt.cpp: Moved to platform/grahpics/qt.
261
262 2006-12-03  Nikolas Zimmermann  <zimmermann@kde.org>
263
264         Reviewed by Mitz.
265
266         Fix non-svg build.
267
268         * platform/graphics/GraphicsContext.h:
269         * platform/mac/GraphicsContextMac.mm:
270
271 2006-12-02  John Sullivan  <sullivan@apple.com>
272
273         Reviewed by Tim Omernick
274
275         Removed a couple of big chunks of duplicated code from the spelling and grammar stuff by merging
276         the find-next-instance functions with the mark-all-instances functions.
277
278         * bridge/mac/FrameMac.mm:
279         (WebCore::findFirstMisspellingInRange):
280         added markAll parameter, and reworked loop so that if markAll parameter is true, this function loops
281         through the entire range and marks each misspelling
282         (WebCore::findFirstGrammarDetailInRange):
283         extracted from findFirstBadGrammarInRange; loops through the potentially-multiple details in a given
284         ungrammatical phrase (e.g., multiple grammar errors in one sentence). Has a markAll parameter akin
285         to the one in findFirstMisspellingInRange.
286         (WebCore::findFirstBadGrammarInRange):
287         added markAll parameter like the one in findFirstMisspellingInRange, and extracted findFirstGrammarDetailInRange
288         (WebCore::FrameMac::advanceToNextMisspelling):
289         pass "false" for new markAll parameters
290         (WebCore::markAllMisspellingsInRange):
291         now just calls findFirstMisspellingInRange with markAll = true, thus removing a big hunk of duplicated code
292         (WebCore::markAllBadGrammarInRange):
293         now just calls findFirstBadGrammarInRange with markAll = true, thus removing a big hunk of duplicated code
294
295 2006-12-02  Mitz Pettel  <mitz@webkit.org>
296
297         Reviewed by Hyatt.
298
299         - fix http://bugs.webkit.org/show_bug.cgi?id=11672
300           REGRESSION (r17068): Repro crash due to painting without layout
301
302         Test: fast/dynamic/containing-block-change.html
303
304         * rendering/RenderObject.cpp:
305         (WebCore::RenderObject::setStyle): Changed the logic used
306         to find absolutely positioned descendant's current containing block to
307         match the changes made to containingBlock() in the fix for bug 9347.
308
309 2006-12-02  MorganL  <morganl.webkit@yahoo.com>
310
311         Reviewed by Darin.
312
313         http://bugs.webkit.org/show_bug.cgi?id=11709
314         DeprecatedString::format is broken on Windows
315
316         Use _vscprintf on Windows to compute the length of the buffer that
317         vsnprintf would need.
318
319         * platform/DeprecatedString.cpp:
320         (WebCore::DeprecatedString::format):
321         * platform/String.cpp:
322         (WebCore::String::format):
323
324 2006-12-01  Beth Dakin  <bdakin@apple.com>
325
326         Reviewed by Adam.
327
328         Support for sub-menus in WebCore context menus. This also re-
329         architects the ContextMenuItem class so that it is more like
330         ContextMenu in that the class is now really just a wrapper for the
331         platformDescription
332
333         * WebCore.exp:
334         * WebCore.xcodeproj/project.pbxproj:
335         * page/ContextMenuController.cpp:
336         (WebCore::ContextMenuController::contextMenuItemSelected): Add
337         place-holders for new tags for the sub-menu items. I will flesh
338         these out in a separate check-in.
339         * platform/ContextMenu.cpp:
340         (WebCore::createFontSubMenu):
341         (WebCore::createSpellingAndGrammarSubMenu):
342         (WebCore::createSpellingSubMenu):
343         (WebCore::createSpeechSubMenu):
344         (WebCore::createWritingDirectionSubMenu):
345         (WebCore::ContextMenu::populate): Call the above functions to add
346         the appropriate sub-menus to editing context menus.
347         * platform/ContextMenu.h:
348         * platform/ContextMenuItem.h:
349         (WebCore::): New tags in the ContextMenuAction enumeration.
350         (WebCore::ContextMenuItem::parentMenu):
351         (WebCore::ContextMenuItem::setType):
352         * platform/PlatformMenuDescription.h: Added. This defines
353         PlatformMenuDesciption. It needs to be its own header because we
354        have to include it from ContextMenu.h and ContextMenuItem.h
355         * platform/mac/ContextMenuItemMac.mm: Lots of adjustments here to
356         make this class basically just be a wrapper for NSMenuItem.
357         (WebCore::ContextMenuItem::ContextMenuItem):
358         (WebCore::ContextMenuItem::~ContextMenuItem):
359         (WebCore::ContextMenuItem::platformDescription):
360         (WebCore::ContextMenuItem::action):
361         (WebCore::ContextMenuItem::title):
362         (WebCore::ContextMenuItem::platformSubMenu):
363         (WebCore::ContextMenuItem::setAction):
364         (WebCore::ContextMenuItem::setTitle):
365         (WebCore::ContextMenuItem::setSubMenu):
366         * platform/mac/ContextMenuMac.mm:
367         (WebCore::ContextMenu::ContextMenu):
368         (WebCore::getNSMenuItem): Now we only have to get the
369         platformDescription of the ContextMenuItem and then set its target
370         and action.
371         (WebCore::ContextMenu::itemCount):
372
373 2006-12-01  Kevin McCullough  <KMcCullough@apple.com>
374
375         Reviewed by .
376
377         - accidentally checked in with previous checkin
378
379         * platform/qt/FrameQt.cpp:
380         (WebCore::FrameQt::keyEvent):
381
382 2006-12-01  Kevin McCullough  <KMcCullough@apple.com>
383
384         Reviewed by Adam.
385
386         - better solution to the ambiguous reference
387
388         * platform/Widget.h:
389         (WebCore::Widget::handleMouseMoveEvent):
390         (WebCore::Widget::handleMouseReleaseEvent):
391         * platform/qt/FrameQt.cpp:
392         (WebCore::FrameQt::keyEvent):
393         * platform/win/PlatformScrollBar.h:
394         * platform/win/TemporaryLinkStubs.cpp:
395         (WebCore::PlatformScrollbar::handleMouseMoveEvent):
396         (WebCore::PlatformScrollbar::handleMouseReleaseEvent):
397
398 2006-12-01  Justin Garcia  <justin.garcia@apple.com>
399
400         Reviewed by john
401         
402         <rdar://problem/4826940>
403         Selection change performed even when delete delegate replies NO (11415)
404
405         No layout test for the bug fix, because there's no way to register a custom
406         editing delegate from a layout test.  Layout tests are effected by the change
407         to avoid sending unnecessary shouldChangeSelections, however. 
408
409         * editing/Editor.cpp:
410         (WebCore::Editor::appliedEditing): Don't bother sending shouldChangeSelection
411         if the editing operation didn't change the selection.  Still call
412         setSelection though, because it does work in this case that's necessary,
413         like clearing the typing style.
414         (WebCore::Editor::unappliedEditing): Ditto.
415         (WebCore::Editor::reappliedEditing): Ditto.
416         * editing/TypingCommand.cpp:
417         (WebCore::TypingCommand::deleteKeyPressed): Don't set the starting
418         selection if the editing delegate returns NO from shouldDeleteRange.
419         Notice we now call setStartingSelection in the case where
420         the current selection was a range selection.  This is fine because
421         it's a no-op (the starting selection is already the current selection).
422         (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
423
424 2006-12-01  John Sullivan  <sullivan@apple.com>
425
426         Reviewed by Darin
427         
428         Move subrange helper function from spellchecking code to TextIterator
429
430         * editing/TextIterator.h:
431         added TextIterator::subrange
432         * editing/TextIterator.cpp:
433         (WebCore::CharacterIterator::advance):
434         early return if count is <= 0; assert that it's not < 0
435         (WebCore::TextIterator::subrange):
436         new function, moved from FrameMac.mmm
437
438         * bridge/mac/FrameMac.mm:
439         moved subrange() function to TextIterator
440         (WebCore::FrameMac::advanceToNextMisspelling):
441         use TextIterator::subrange
442         (WebCore::markAllMisspellingsInRange):
443         ditto
444         (WebCore::markAllBadGrammarInRange):
445         ditto
446
447 2006-12-01  Darin Adler  <darin@apple.com>
448
449         Reviewed by Mitz.
450
451         - fix http://bugs.webkit.org/show_bug.cgi?id=11628
452           REGRESSION (r17597): Command-return in native text fields doesn't open a new tab or window
453
454         I couldn't think of an easy way to make a regression test for this, but maybe
455         I'll get an idea later about how to do it.
456
457         The main thing I did was add a concept of a DOM event having an "underlying event".
458         That allows the DOM activate event to contain inside it the original keyboard event
459         that triggered the form submission, and thus allows WebKit to see the modifier keys
460         from that original event. The code that uses the underlying event is in WebKit, but
461         the code to set it up is here in WebCore.
462
463         - also do some clean-up to related event handling code
464
465         * bindings/js/kjs_events.cpp: (KJS::DOMEvent::getValueProperty): Updated for the
466         name change of cancelBubble.
467
468         * dom/Event.h: Removed a useless comment. Fixed some whitespace and formatting.
469         Renamed getCancelBubble to cancelBubble to match the DOM -- I suspect the old
470         name predated the use of the m_ prefix on data members. Added the underlying event,
471         and a getter and setter.
472         * dom/Event.cpp:
473         (WebCore::Event::setTarget): Updated to take a PassRefPtr.
474         (WebCore::Event::setUnderlyingEvent): Added.
475
476         * dom/EventTargetNode.h: Added an optional underlyingEvent parameter to
477         dispatchUIEvent, one of the overloads of dispatchMouseEvent, and
478         dispatchSimulatedMouseEvent. Added a new dispatchSimulatedClick function here that
479         mostly replaces the click function in HTMLElement.
480         * dom/EventTargetNode.cpp:
481         (WebCore::EventTargetNode::dispatchGenericEvent): Updated for the name change
482         of cancelBubble.
483         (WebCore::EventTargetNode::dispatchUIEvent): Added an underlying event parameter,
484         which gets attached to the UIEvent object after it's created.
485         (WebCore::EventTargetNode::dispatchMouseEvent): Tweaked formatting and parameter
486         name for the version that creates a mouse event for a real platform mouse event.
487         Added an underlying event parameter to the main version, and attached it to all
488         three of the events that can be dispatched.
489         (WebCore::EventTargetNode::dispatchSimulatedMouseEvent): Added an underlying
490         event parameter, passed it along to dispatchMouseEvent.
491         (WebCore::EventTargetNode::dispatchSimulatedClick): Moved this here from HTMLElement
492         and renamed it from click. Added an underlyingEvent parameter, and passed that along
493         in all three of the calls to dispatchSimulatedMouseEvent.
494
495         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::shouldClose): Updated call to
496         setTarget that no longer needs a get().
497         * ksvg2/svg/SVGElement.cpp: (WebCore::SVGElement::sendSVGLoadEventIfPossible): Ditto.
498
499         * html/HTMLAnchorElement.cpp:
500         (WebCore::HTMLAnchorElement::defaultEventHandler): Converted a call to click
501         to a call to dispatchSimulatedClick.
502         (WebCore::HTMLAnchorElement::accessKeyAction): Ditto.
503         * html/HTMLButtonElement.cpp:
504         (WebCore::HTMLButtonElement::accessKeyAction): Ditto.
505         * html/HTMLElement.h: Removed the parameters to click and made it non-virtual.
506         We could move it down to the input and button elements, now that it's just
507         a single function call, but it's also OK to just leave it here.
508         * html/HTMLElement.cpp:
509         (WebCore::HTMLElement::click): Removed the parameters and changed this to just
510         call dispatchSimulatedClick. The real work is now in dispatchSimulatedClick.
511         (WebCore::HTMLElement::accessKeyAction): Converted a call to click to a call to
512         dispatchSimulatedClick.
513         * html/HTMLFormElement.cpp:
514         (WebCore::HTMLFormElement::submitClick): Ditto. But unlike accessKeyAction callers,
515         pass the event along as the underlying event.
516         * html/HTMLInputElement.h:
517         * html/HTMLInputElement.cpp: Removed override of virtual click function. The
518         special cases for the file control and hidden input elements aren't needed.
519         (WebCore::HTMLInputElement::accessKeyAction): Converted a call to click to a call to
520         dispatchSimulatedClick.
521         (WebCore::HTMLInputElement::defaultEventHandler): Converted calls to click to calls to
522         dispatchSimulatedClick, passing along the event as the underlying event.
523         * html/HTMLLabelElement.cpp:
524         (WebCore::HTMLLabelElement::defaultEventHandler): Converted a call to click to a call
525         to dispatchSimulatedClick, passing the event along as the underlying event. Also
526         changed the local variable for the element to a RefPtr since the code assumes it's
527         still around after calling arbitrary JavaScript code.
528         * html/HTMLSelectElement.cpp:
529         (WebCore::HTMLSelectElement::accessKeyAction): Converted a call to click to a call to
530         dispatchSimulatedClick.
531
532         * rendering/RenderFileUploadControl.h:
533         * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::click):
534         Removed unneeded ignored parameter to the click function, and also made it non-virtual.
535
536         * loader/NavigationAction.h: Removed unneeded includes.
537         * loader/NavigationAction.cpp: Moved all the code here from NavigationActionMac.mm,
538         since none of it is Mac-specific any more.
539         * loader/mac/NavigationActionMac.mm: Removed.
540         * WebCore.xcodeproj/project.pbxproj: Updated for removed file.
541
542         * ksvg2/svg/SVGAElement.cpp: Removed an unnecessary include.
543
544         * loader/FrameLoader.cpp: Added a newly-needed incluude.
545         * loader/mac/DocumentLoaderMac.mm: Ditto.
546         * loader/mac/FrameLoaderMac.mm: Ditto.
547         * rendering/RenderWidget.cpp: Ditto.
548
549 2006-12-01  John Sullivan  <sullivan@apple.com>
550
551         Reviewed by Darin
552
553         - fixed <rdar://problem/4811175> Many false reports of bad grammar appear, caused by 
554           insufficient context passed to grammar checker
555
556         * bridge/mac/FrameMac.mm:
557         (WebCore::markAllMisspellingsInRange):
558         new function, extracted from markMisspellings -- ignores grammar
559         (WebCore::markAllBadGrammarInRange):
560         new function, extracted from markMisspellings -- ignores spelling, and operates on
561         appropriately-sized chunks of text
562         (WebCore::FrameMac::markMisspellings):
563         now calls markAllMisspellingsInRange and (optionally) markAllBadGrammarInRange rather
564         than trying to interweave the spelling and grammar logic
565
566 2006-12-01  John Sullivan  <sullivan@apple.com>
567
568         Reviewed by Darin
569
570         With these changes, grammar checking works correctly for the one-by-one case.
571         It still doesn't work correctly for the check-as-you-type case; I need to make these
572         same kinds of changes in markMisspellings, and refactor to share more code between
573         the two cases, but I wanted to get this working code in before modifying it further.
574
575         The major change here is that advanceToNextMisspelling used to look at small chunks of
576         text at a time, checking each one for both misspellings and questionable grammar. But
577         grammar checking needs at least paragraph-sized chunks of text to have enough context
578         to work correctly, so the old mechanism was causing many spurious complaints of bad
579         grammar (e.g., almost every word seemed to be at the start of a sentence so the checker
580         would complain about missing capitalization). So now the spell checker runs in the
581         specified range first. Then the grammar checker runs on the same range (stopping at the
582         next misspelling, if any), but expanded to paragraph-aligned boundaries.
583
584         * bridge/mac/FrameMac.mm:
585         (WebCore::findFirstMisspellingInRange):
586         new function, extracted from advanceToNextMisspelling, and ignores grammar
587         (WebCore::paragraphAlignedRangeForRange):
588         new function, used by findNextBadGrammarInRange
589         (WebCore::findFirstBadGrammarInRange):
590         new function, extracted from advanceToNextMisspelling, and rewritten to use paragraph-aligned
591         chunks, and ignores spelling
592         (WebCore::subrange):
593         new helper function, used by advanceToNextMisspelling
594         (WebCore::FrameMac::advanceToNextMisspelling):
595         now calls out to both findFirstMisspellingInRange and findFirstBadGrammarInRange separately
596         instead of trying to interweave the spelling and grammar logic
597
598 2006-12-01  Don Gibson  <dgibson77@gmail.com>
599
600         Reviewed by Mitz.
601
602         http://bugs.webkit.org/show_bug.cgi?id=11732:
603         Windows build bustage.
604
605         * WebCore.vcproj/WebCore/WebCore.vcproj:
606         * bridge/win/ChromeClientWin.h:
607         * bridge/win/ContextMenuClientWin.h:
608         * bridge/win/EditorClientWin.h:
609         * bridge/win/FrameWin.cpp:
610         (WebCore::FrameWin::FrameWin):
611         (WebCore::FrameWin::keyPress):
612         * bridge/win/FrameWin.h:
613         * loader/win/FrameLoaderClientWin.h:
614         * platform/ContextMenu.h:
615         * platform/Widget.h:
616         * platform/win/PlatformScrollBar.h:
617         * platform/win/TemporaryLinkStubs.cpp:
618         (WebCore::ChromeClientWin::chromeDestroyed):
619         (WebCore::ChromeClientWin::addMessageToConsole):
620         (WebCore::ContextMenu::ContextMenu):
621         (WebCore::ContextMenu::~ContextMenu):
622         (WebCore::ContextMenu::appendItem):
623         (WebCore::ContextMenuClientWin::contextMenuDestroyed):
624         (WebCore::ContextMenuClientWin::contextMenuItemSelected):
625         (WebCore::ContextMenuItem::~ContextMenuItem):
626         (WebCore::Editor::newGeneralClipboard):
627         (WebCore::EditorClientWin::pageDestroyed):
628         (WebCore::EditorClientWin::smartInsertDeleteEnabled):
629         (WebCore::EditorClientWin::shouldInsertNode):
630         (WebCore::FrameLoader::createPlugin):
631         (WebCore::FrameLoaderClientWin::frameLoaderDestroyed):
632         (WebCore::FrameLoaderClientWin::hasWebView):
633         (WebCore::FrameLoaderClientWin::canHandleRequest):
634         (WebCore::FrameWin::unfocusWindow):
635         (WebCore::FrameWin::bindingRootObject):
636         (WebCore::FrameWin::issueCopyCommand):
637         (WebCore::FrameWin::markMisspellings):
638         (WebCore::FrameWin::issueTransposeCommand):
639         (WebCore::FrameWin::markedTextRange):
640         (WebCore::FrameWin::respondToChangedSelection):
641         (WebCore::FrameWin::markMisspellingsInAdjacentWords):
642         (WebCore::FrameWin::isSelectionMisspelled):
643         (WebCore::FrameWin::guessesForMisspelledSelection):
644         (WebCore::Pasteboard::generalPasteboard):
645         (WebCore::Pasteboard::writeSelection):
646         (WebCore::Pasteboard::clearTypes):
647         (WebCore::Pasteboard::canSmartReplace):
648         (WebCore::Pasteboard::documentFragment):
649         (WebCore::Pasteboard::plainText):
650         (WebCore::Pasteboard::Pasteboard):
651         (WebCore::Pasteboard::~Pasteboard):
652         (WebCore::Pasteboard::registerSelectionPasteboardTypes):
653         (WebCore::Pasteboard::replaceNBSP):
654         (WebCore::Pasteboard::createHandle):
655         (WebCore::Pasteboard::createCF_HTMLFromRange):
656
657 2006-11-30  Geoffrey Garen  <ggaren@apple.com>
658
659         Rubber Stamped by Anders Carlsson.
660
661         Global rename of Document::focusNode to Document::focusedNode. 'focusNode'
662         suggested a command, and conflicted with a different meaning for 'focusNode'
663         in the Mozilla selection API.
664
665 2006-11-30  John Sullivan  <sullivan@apple.com>
666
667         Reviewed by Justin
668
669         With Darin, fixed a problem in the Range constructors found while implementing grammar checking.
670         That revealed another problem in the layout tests involving bad parameters passed to the Range
671         constructors.
672         
673         With these fixes in place, one layout test (editing/execCommand/create-list-from-range-selection.html)
674         no longer works as intended. This is apparently due to yet another bug being flushed out somewhere.
675         I'm going to update the results for that test and file a separate radar about it, which Justin will
676         investigate.
677
678         * dom/Position.h:
679         removed equivalentRangeCompliantPosition(), which was declared but not implemented or called.
680         
681         * dom/Range.cpp:
682         (WebCore::Range::Range):
683         Call setStart and setEnd in the two Range constructors that take parameters, rather than just 
684         directly setting the instance variables. This makes Range perform the boundary checks and
685         compensations that the DOM spec requires.
686         
687         * editing/CompositeEditCommand.cpp:
688         (WebCore::CompositeEditCommand::moveParagraphs):
689         Use rangeCompliantEquivalent() on "editing-style" Positions before creating Ranges from them.
690         
691         * editing/TextIterator.cpp:
692         (WebCore::TextIterator::TextIterator):
693         Assert that the boundary points of the range are valid.
694
695 2006-11-30  Lou Amadio  <lamadio@apple.com>
696
697         Reviewed by Dave Hyatt
698         Cleaned up generated files.
699
700         * html/HTMLElement.cpp:
701         (WebCore::HTMLElement::isRecognizedTagName):
702                 Uses the new method for retrieving the list of supported tags
703         * ksvg2/scripts/make_names.pl:
704                 Generates tag lists without using macros.
705
706 2006-11-30  Adam Roben  <aroben@apple.com>
707
708         Reviewed by Beth.
709
710         Store ContextMenu's NSMutableArray inside a RetainPtr so that we
711         will retain/release it correctly.
712
713         * WebCore.exp:
714         * platform/ContextMenu.cpp:
715         (WebCore::ContextMenu::populate): Added a FIXME.
716         * platform/ContextMenu.h:
717         * platform/mac/ContextMenuMac.mm: 
718         (WebCore::ContextMenu::ContextMenu):
719         (WebCore::ContextMenu::~ContextMenu):
720         (WebCore::getNSMenuItem):
721         (WebCore::ContextMenu::appendItem):
722         (WebCore::ContextMenu::itemCount):
723         (WebCore::ContextMenu::insertItem):
724         (WebCore::ContextMenu::setPlatformDescription):
725         (WebCore::ContextMenu::platformDescription):
726
727 2006-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
728
729         Reviewed by Eric. Rubber stamped by Oliver.
730
731         Fixes: http://bugs.webkit.org/show_bug.cgi?id=10383
732      
733         This is the final patch after the long "die kcanvas" journey.
734
735         All old kcanvas code is gone now, and properly integrated within
736         WebCore (stuff like GraphicsContext changes etc.). It shares
737         the platform/ design concept: no subclassing, but instead
738         implementing parts of the classes/methods per-platform.
739
740         This commit removes the last pieces: KRenderingDevice & KRenderingDeviceContext.
741         This layer was just obsolete, given the powerful GraphicsContext API we have
742         since quite a while now. All the ugly pushContext/popContext stuff is gone now.
743
744         LayoutTests affected: svg/W3C-SVG-1.1/pservers-grad-11-b.svg
745         Radial gradients as fill color for texts, work again!
746         Though "Gradient on text stroke" remains broken. Funny thing:
747         With this patch, if you "select" the text using the mouse, as
748         soon as the selection rectangle is drawn, you see the correct
749         gradient on stroke rendering - at least a hint where it breaks!
750
751         All svg layout tests have subtle text rendering changes - with and without this
752         patch, it seems it was forgotton to update svg pixel test baseline, a while ago.
753
754         * CMakeLists.txt:
755         * WebCore.xcodeproj/project.pbxproj:
756         * kcanvas/device/KRenderingDevice.cpp: Removed.
757         * kcanvas/device/KRenderingDevice.h: Removed.
758         * kcanvas/device/qt/KRenderingDeviceQt.cpp: Removed.
759         * kcanvas/device/qt/KRenderingDeviceQt.h: Removed.
760         * kcanvas/device/qt/RenderPathQt.cpp: Moved to platform/graphics/qt
761         * kcanvas/device/quartz/KCanvasItemQuartz.cpp: Moved to platform/graphics/svg/cg/RenderPathCg.cpp
762         * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp: Removed.
763         * kcanvas/device/quartz/KRenderingDeviceQuartz.h: Removed.
764         * kcanvas/device/quartz/QuartzSupport.cpp: Moved to platform/graphics/svg/cg/CgSupport.cpp
765         * kcanvas/device/quartz/QuartzSupport.h: Moved to platform/graphics/svg/cg/CgSupport.h
766         * ksvg2/misc/KCanvasRenderingStyle.cpp:
767         (WebCore::sharedSolidPaintServer):
768         * ksvg2/misc/KCanvasRenderingStyle.h:
769         * ksvg2/svg/SVGAElement.cpp:
770         * ksvg2/svg/SVGClipPathElement.cpp:
771         * ksvg2/svg/SVGFEBlendElement.cpp:
772         (WebCore::SVGFEBlendElement::filterEffect):
773         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
774         (WebCore::SVGFEColorMatrixElement::filterEffect):
775         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
776         (WebCore::SVGFEComponentTransferElement::SVGFEComponentTransferElement):
777         (WebCore::SVGFEComponentTransferElement::parseMappedAttribute):
778         (WebCore::SVGFEComponentTransferElement::filterEffect):
779         * ksvg2/svg/SVGFECompositeElement.cpp:
780         (WebCore::SVGFECompositeElement::SVGFECompositeElement):
781         (WebCore::SVGFECompositeElement::filterEffect):
782         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
783         (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
784         (WebCore::SVGFEDiffuseLightingElement::filterEffect):
785         (WebCore::SVGFEDiffuseLightingElement::updateLights):
786         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
787         (WebCore::SVGFEDisplacementMapElement::filterEffect):
788         * ksvg2/svg/SVGFEDistantLightElement.cpp:
789         (WebCore::SVGFEDistantLightElement::SVGFEDistantLightElement):
790         (WebCore::SVGFEDistantLightElement::lightSource):
791         * ksvg2/svg/SVGFEFloodElement.cpp:
792         (WebCore::SVGFEFloodElement::SVGFEFloodElement):
793         (WebCore::SVGFEFloodElement::parseMappedAttribute):
794         (WebCore::SVGFEFloodElement::filterEffect):
795         * ksvg2/svg/SVGFEFuncAElement.cpp:
796         * ksvg2/svg/SVGFEFuncBElement.cpp:
797         * ksvg2/svg/SVGFEFuncGElement.cpp:
798         (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
799         * ksvg2/svg/SVGFEFuncRElement.cpp:
800         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
801         (WebCore::SVGFEGaussianBlurElement::filterEffect):
802         * ksvg2/svg/SVGFEImageElement.cpp:
803         (WebCore::SVGFEImageElement::SVGFEImageElement):
804         (WebCore::SVGFEImageElement::parseMappedAttribute):
805         (WebCore::SVGFEImageElement::notifyFinished):
806         (WebCore::SVGFEImageElement::filterEffect):
807         * ksvg2/svg/SVGFELightElement.cpp:
808         * ksvg2/svg/SVGFEMergeElement.cpp:
809         (WebCore::SVGFEMergeElement::filterEffect):
810         * ksvg2/svg/SVGFEMergeNodeElement.cpp:
811         * ksvg2/svg/SVGFEOffsetElement.cpp:
812         (WebCore::SVGFEOffsetElement::SVGFEOffsetElement):
813         (WebCore::SVGFEOffsetElement::parseMappedAttribute):
814         (WebCore::SVGFEOffsetElement::filterEffect):
815         * ksvg2/svg/SVGFEPointLightElement.cpp:
816         (WebCore::SVGFEPointLightElement::lightSource):
817         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
818         (WebCore::SVGFESpecularLightingElement::SVGFESpecularLightingElement):
819         (WebCore::SVGFESpecularLightingElement::filterEffect):
820         (WebCore::SVGFESpecularLightingElement::updateLights):
821         * ksvg2/svg/SVGFESpotLightElement.cpp:
822         (WebCore::SVGFESpotLightElement::SVGFESpotLightElement):
823         (WebCore::SVGFESpotLightElement::lightSource):
824         * ksvg2/svg/SVGFETileElement.cpp:
825         (WebCore::SVGFETileElement::SVGFETileElement):
826         (WebCore::SVGFETileElement::parseMappedAttribute):
827         (WebCore::SVGFETileElement::filterEffect):
828         * ksvg2/svg/SVGFETurbulenceElement.cpp:
829         (WebCore::SVGFETurbulenceElement::filterEffect):
830         * ksvg2/svg/SVGFilterElement.cpp:
831         (WebCore::SVGFilterElement::canvasResource):
832         * ksvg2/svg/SVGGradientElement.cpp:
833         (WebCore::SVGGradientElement::canvasResource):
834         * ksvg2/svg/SVGLinearGradientElement.cpp:
835         * ksvg2/svg/SVGMarkerElement.cpp:
836         * ksvg2/svg/SVGMaskElement.cpp:
837         (WebCore::SVGMaskElement::parseMappedAttribute):
838         (WebCore::SVGMaskElement::drawMaskerContent):
839         (WebCore::SVGMaskElement::canvasResource):
840         * ksvg2/svg/SVGPatternElement.cpp:
841         (WebCore::SVGPatternElement::drawPatternContentIntoTile):
842         (WebCore::SVGPatternElement::canvasResource):
843         * ksvg2/svg/SVGStyledElement.cpp:
844         * ksvg2/svg/SVGStyledElement.h:
845         * platform/graphics/GraphicsContext.h:
846         * platform/graphics/svg/SVGPaintServer.h:
847         * platform/graphics/svg/SVGPaintServerGradient.cpp:
848         (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
849         * platform/graphics/svg/SVGPaintServerGradient.h:
850         * platform/graphics/svg/SVGPaintServerLinearGradient.h:
851         * platform/graphics/svg/SVGPaintServerPattern.h:
852         * platform/graphics/svg/SVGPaintServerRadialGradient.h:
853         * platform/graphics/svg/SVGPaintServerSolid.h:
854         * platform/graphics/svg/SVGResource.cpp:
855         * platform/graphics/svg/SVGResource.h:
856         * platform/graphics/svg/SVGResourceClipper.h:
857         * platform/graphics/svg/SVGResourceFilter.h:
858         * platform/graphics/svg/SVGResourceMasker.h:
859         * platform/graphics/svg/cg/RenderPathCg.cpp: Added.
860         * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
861         (WebCore::SVGPaintServer::draw):
862         (WebCore::SVGPaintServer::teardown):
863         (WebCore::SVGPaintServer::renderPath):
864         * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
865         (WebCore::SVGPaintServerGradient::teardown):
866         (WebCore::SVGPaintServerGradient::renderPath):
867         (WebCore::SVGPaintServerGradient::setup):
868         * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
869         (WebCore::SVGPaintServerPattern::setup):
870         (WebCore::SVGPaintServerPattern::teardown):
871         * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
872         (WebCore::SVGPaintServerSolid::setup):
873         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
874         (WebCore::SVGResourceClipper::applyClip):
875         * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
876         (WebCore::SVGResourceFilter::SVGResourceFilter):
877         (WebCore::SVGResourceFilter::createFilterEffect):
878         (WebCore::SVGResourceFilter::prepareFilter):
879         (WebCore::SVGResourceFilter::applyFilter):
880         * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
881         (WebCore::SVGResourceMasker::applyMask):
882         * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
883         * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
884         (WebCore::SVGPaintServerLinearGradient::setup):
885         * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
886         (WebCore::SVGPaintServerPattern::setup):
887         * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
888         (WebCore::SVGPaintServer::draw):
889         (WebCore::SVGPaintServer::teardown):
890         (WebCore::SVGPaintServer::renderPath):
891         * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
892         (WebCore::setup):
893         * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
894         (WebCore::SVGPaintServerSolid::setup):
895         * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
896         (WebCore::SVGResourceClipper::applyClip):
897         * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
898         (WebCore::SVGResourceFilter::createFilterEffect):
899         (WebCore::SVGResourceFilter::prepareFilter):
900         (WebCore::SVGResourceFilter::applyFilter):
901         * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
902         (WebCore::SVGResourceMasker::applyMask):
903         * platform/qt/GraphicsContextQt.cpp:
904         (WebCore::GraphicsContext::beginPath):
905         (WebCore::GraphicsContext::addPath):
906         (WebCore::GraphicsContext::setFillRule):
907         (WebCore::GraphicsContext::currentPath):
908         (WebCore::GraphicsContext::strokeRect):
909         (WebCore::contextForImage):
910         * rendering/RenderForeignObject.cpp:
911         (WebCore::RenderForeignObject::paint):
912         * rendering/RenderPath.cpp:
913         (WebCore::RenderPath::paint):
914         * rendering/RenderSVGContainer.cpp:
915         (WebCore::RenderSVGContainer::paint):
916         * rendering/RenderSVGImage.cpp:
917         (WebCore::RenderSVGImage::paint):
918         * rendering/RenderSVGImage.h:
919         * rendering/RenderSVGInline.cpp:
920         (WebCore::RenderSVGInline::RenderSVGInline):
921         (WebCore::RenderSVGInline::createInlineBox):
922         * rendering/RenderSVGInlineText.cpp:
923         (WebCore::RenderSVGInlineText::RenderSVGInlineText):
924         * rendering/RenderSVGTSpan.cpp:
925         (WebCore::RenderSVGTSpan::RenderSVGTSpan):
926         * rendering/RenderSVGText.cpp:
927         (WebCore::RenderSVGText::paint):
928         * rendering/SVGInlineFlowBox.cpp:
929         (WebCore::paintSVGInlineFlow):
930         * rendering/SVGRenderTreeAsText.cpp:
931         (WebCore::writeStyle):
932
933 2006-11-30  Geoffrey Garen  <ggaren@apple.com>
934
935         Reviewed by Beth Dakin.
936         
937         Fixed up garbage collection at window close time.
938
939         * bindings/js/kjs_proxy.cpp: Don't garbage collect in the KJSProxy
940         destructor, since the global object hasn't been freed yet.
941         * bindings/js/kjs_proxy.h:
942         * loader/FrameLoader.cpp:
943         (WebCore::FrameLoader::detachFromParent): Made this function cross-
944         platform.
945         * loader/FrameLoader.h:
946         * loader/mac/FrameLoaderMac.mm:
947         (WebCore::FrameLoader::setTitle): Moved this function to FrameLoaderMac,
948         since it's Mac-only.
949         (WebCore::FrameLoader::closeBridge):
950         * page/Page.cpp:
951         (WebCore::Page::~Page): Don't garbage collect in the Page destructor,
952         since the Interpreter destructor will do it for us.
953
954 2006-11-30  Brady Eidson  <beidson@apple.com>
955
956         Reviewed by Tim's rubberstamp
957
958         Amazingly, DocumentLoader.h survived all this time without a header guard...
959
960         * loader/DocumentLoader.h:  Added header guard
961
962 2006-11-30  Timothy Hatcher  <timothy@apple.com>
963
964         Reviewed by Brady and Eric.
965
966         XMLHttpRequest fails in a page loaded with WebFrame's loadHTMLString: or loadData:
967         http://bugs.webkit.org/show_bug.cgi?id=11723
968
969         Allow cross-domain XMLHTTPRequest for applewebdata URLs. No automated way to test,
970         tested in Safari's debug Snippet Editor.
971
972         * xml/xmlhttprequest.cpp:
973         (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
974
975 2006-11-29  Anders Carlsson  <acarlsson@apple.com>
976
977         Reviewed by Brady.
978
979         Get rid of PlatformResponse, the platform specific response object is stored inside of 
980         the ResourceResponse object now. This also gets rid of receivedResponse in ResourceHandleClient.
981         
982         * bridge/mac/WebCoreFrameBridge.mm:
983         (-[WebCoreFrameBridge getData:andResponse:forURL:]):
984         (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
985         * loader/CachedResource.cpp:
986         (WebCore::CachedResource::CachedResource):
987         (WebCore::CachedResource::~CachedResource):
988         * loader/CachedResource.h:
989         (WebCore::CachedResource::response):
990         * loader/loader.cpp:
991         * loader/loader.h:
992         * loader/mac/ImageDocumentMac.mm:
993         (WebCore::finishImageLoad):
994         * loader/mac/LoaderFunctionsMac.mm:
995         (WebCore::CheckCacheObjectStatus):
996         * loader/mac/SubresourceLoaderMac.mm:
997         (WebCore::SubresourceLoader::didReceiveResponse):
998         * platform/network/ResourceHandle.h:
999         * platform/network/ResourceResponse.h:
1000         (WebCore::ResourceResponse::nsURLResponse):
1001         (WebCore::ResourceResponse::cfURLResponse):
1002         * platform/network/mac/ResourceHandleMac.mm:
1003         (WebCore::ResourceHandle::didReceiveResponse):
1004
1005 2006-11-29  Justin Garcia  <justin.garcia@apple.com>
1006
1007         Reviewed by sullivan
1008         
1009         <rdar://problem/4845371>
1010         In Mail, a crash occurs at WebCore::Node::traverseNextNode() when cutting selected text from a HTML message
1011         
1012         * editing/DeleteSelectionCommand.cpp:
1013         (WebCore::DeleteSelectionCommand::initializeStartEnd): The start/end were
1014         being inflated even when they were the start/end of a partially selected
1015         special element.
1016
1017 2006-11-29  Anders Carlsson  <acarlsson@apple.com>
1018
1019         Reviewed by Oliver.
1020
1021         Fix fast/dom/xmlhttprequest-get layout test failure.
1022         
1023         * platform/network/mac/ResourceResponseMac.mm:
1024         Initialize the status code to 0 for non-http responses.
1025         
1026 2006-11-29  Geoffrey Garen  <ggaren@apple.com>
1027
1028         Reviewed by Anders Carlsson.
1029         
1030         Fixed http://bugs.webkit.org/show_bug.cgi?id=11712
1031         REGRESSION: Crash when clicking JS link on crateandbarrel.com (window.open("http[...]"))
1032         
1033         This was an accidental commit by Anders.
1034
1035         Chrome can't use the FrameView at window.open time, because it doesn't
1036         exist yet.
1037         
1038         * page/Chrome.cpp:
1039         (WebCore::Chrome::pageRect):
1040
1041 2006-11-29  Geoffrey Garen  <ggaren@apple.com>
1042
1043         Reviewed by Mitz Pettel.
1044         
1045         Fixed http://bugs.webkit.org/show_bug.cgi?id=11710
1046         REGRESSION (r17906): Crash in WebCore::FrameMac
1047
1048         Added null checks for EditorClient, since it can be NULL when the page
1049         has been destroyed. Removed external access to EditorClient, since it's
1050         an implementation detail of the Editor.
1051
1052         No test case because this crash depends on window tear-down. Layout tests
1053         pass.
1054         
1055 2006-11-29  Anders Carlsson  <acarlsson@apple.com>
1056
1057         Fix build.
1058         
1059         * platform/network/mac/ResourceHandleMac.mm:
1060         (WebCore::ResourceHandle::receivedResponse):
1061         Fix tyop.
1062
1063 2006-11-29  Anders Carlsson  <acarlsson@apple.com>
1064
1065         Reviewed by Darin.
1066
1067         Have ResourceResponse hold on to the platform object and do lazy
1068         initialization of the data members.
1069         
1070         * WebCore.xcodeproj/project.pbxproj:
1071         * loader/mac/FrameLoaderMac.mm:
1072         (WebCore::FrameLoader::loadResourceSynchronously):
1073         * platform/network/ResourceRequest.cpp:
1074         (WebCore::ResourceRequest::updatePlatformRequest):
1075         (WebCore::ResourceRequest::updateResourceRequest):
1076         * platform/network/ResourceResponse.cpp: Added.
1077         (WebCore::ResourceResponse::url):
1078         (WebCore::ResourceResponse::mimeType):
1079         (WebCore::ResourceResponse::expectedContentLength):
1080         (WebCore::ResourceResponse::textEncodingName):
1081         (WebCore::ResourceResponse::suggestedFilename):
1082         (WebCore::ResourceResponse::httpStatusCode):
1083         (WebCore::ResourceResponse::setHTTPStatusCode):
1084         (WebCore::ResourceResponse::httpStatusText):
1085         (WebCore::ResourceResponse::setHTTPStatusText):
1086         (WebCore::ResourceResponse::httpHeaderField):
1087         (WebCore::ResourceResponse::httpHeaderFields):
1088         (WebCore::ResourceResponse::setExpirationDate):
1089         (WebCore::ResourceResponse::expirationDate):
1090         (WebCore::ResourceResponse::setLastModifiedDate):
1091         (WebCore::ResourceResponse::lastModifiedDate):
1092         (WebCore::ResourceResponse::updateResourceResponse):
1093         * platform/network/ResourceResponse.h:
1094         (WebCore::ResourceResponse::ResourceResponse):
1095         (WebCore::ResourceResponse::isMultipart):
1096         * platform/network/mac/ResourceHandleMac.mm:
1097         (WebCore::ResourceHandle::receivedResponse):
1098         (WebCore::ResourceHandle::willSendRequest):
1099         * platform/network/mac/ResourceResponseMac.h: Removed.
1100         * platform/network/mac/ResourceResponseMac.mm:
1101         (-[NSURLResponse WebCore]):
1102
1103 2006-11-28  Alice Liu  <alice.liu@apple.com>
1104
1105         Reviewed by Maciej.
1106
1107         A fix for a couple failing layout tests involving copy/cut in iframes.
1108
1109         * bridge/EditorClient.h:
1110         Add frame parameter to dataForArchivedSelectionInFrame instead of
1111         just getting the webview's selectedFrame.
1112
1113         * platform/mac/PasteboardMac.mm:
1114         (Pasteboard::writeSelection):
1115         Pass in the frame
1116
1117 2006-11-28  Geoffrey Garen  <ggaren@apple.com>
1118
1119         Reviewed by Beth Dakin.
1120
1121         Fixed <rdar://problem/4844855> Should clarify when to create clients in 
1122         the WebCore client API
1123         
1124         All clients must now be supplied as constructor arguments. This clarifies 
1125         when you need to create clients, and also guarantees that objects can't 
1126         (for the most part) be in a clientless state.
1127
1128         Layout tests pass. No leaks reported.
1129         
1130         * bridge/mac/WebCoreFrameBridge.mm: I had to move some initialization up into
1131         WebKit to resolve circular dependencies at init time.
1132
1133 2006-11-28  Adam Roben  <aroben@apple.com>
1134
1135         Reviewed by Ada.
1136
1137         Add platform-specific constructor/destructor to ContextMenu so we can
1138         properly retain/release the platform menu description.
1139
1140         * platform/ContextMenu.h:
1141         (WebCore::ContextMenu::platformDescription):
1142         * platform/mac/ContextMenuMac.mm:
1143         (WebCore::ContextMenu::ContextMenu):
1144         (WebCore::ContextMenu::~ContextMenu):
1145         (WebCore::getNSMenuItem):
1146         (WebCore::ContextMenu::appendItem):
1147         (WebCore::ContextMenu::itemCount):
1148         (WebCore::ContextMenu::insertItem):
1149         (WebCore::ContextMenu::setPlatformDescription):
1150
1151 2006-11-28  Adam Roben  <aroben@apple.com>
1152
1153         Build fix.
1154
1155         * platform/network/mac/ResourceRequestMac.mm:
1156
1157 2006-11-28  David Harrison  <harrison@apple.com>
1158
1159         Reviewed by Adele.
1160
1161         <rdar://problem/4852804> selection color does not get drawn over the missing image rectangle
1162
1163         Test:
1164         * editing/selection/select-missing-image.html: Added.
1165
1166         * rendering/RenderImage.cpp:
1167         (WebCore::RenderImage::paint):
1168         Draw the selection tint even if the image itself is not available.
1169
1170 2006-11-28  Anders Carlsson  <acarlsson@apple.com>
1171
1172         Reviewed by Maciej.
1173
1174         Have ResourceRequest hold on to the platform object so we don't
1175         have to convert back and forth when nothing in the object changes.
1176
1177         * WebCore.exp:
1178         * WebCore.xcodeproj/project.pbxproj:
1179         * loader/mac/FrameLoaderMac.mm:
1180         (WebCore::FrameLoader::continueAfterNavigationPolicy):
1181         * page/Chrome.cpp:
1182         (WebCore::Chrome::pageRect):
1183         * platform/network/ResourceRequest.cpp: Added.
1184         (WebCore::ResourceRequest::isEmpty):
1185         (WebCore::ResourceRequest::url):
1186         (WebCore::ResourceRequest::setURL):
1187         (WebCore::ResourceRequest::cachePolicy):
1188         (WebCore::ResourceRequest::setCachePolicy):
1189         (WebCore::ResourceRequest::timeoutInterval):
1190         (WebCore::ResourceRequest::setTimeoutInterval):
1191         (WebCore::ResourceRequest::mainDocumentURL):
1192         (WebCore::ResourceRequest::setMainDocumentURL):
1193         (WebCore::ResourceRequest::httpMethod):
1194         (WebCore::ResourceRequest::setHTTPMethod):
1195         (WebCore::ResourceRequest::httpHeaderFields):
1196         (WebCore::ResourceRequest::httpHeaderField):
1197         (WebCore::ResourceRequest::setHTTPHeaderField):
1198         (WebCore::ResourceRequest::httpBody):
1199         (WebCore::ResourceRequest::setHTTPBody):
1200         (WebCore::ResourceRequest::allowHTTPCookies):
1201         (WebCore::ResourceRequest::setAllowHTTPCookies):
1202         (WebCore::ResourceRequest::updatePlatformRequest):
1203         (WebCore::ResourceRequest::updateResourceRequest):
1204         (WebCore::ResourceRequest::addHTTPHeaderField):
1205         (WebCore::ResourceRequest::addHTTPHeaderFields):
1206         * platform/network/ResourceRequest.h:
1207         (WebCore::ResourceRequest::ResourceRequest):
1208         * platform/network/mac/ResourceHandleMac.mm:
1209         (WebCore::ResourceHandle::willSendRequest):
1210         * platform/network/mac/ResourceRequestMac.h: Removed.
1211         * platform/network/mac/ResourceRequestMac.mm:
1212         (WebCore::ResourceRequest::nsURLRequest):
1213         (WebCore::ResourceRequest::doUpdateResourceRequest):
1214         (WebCore::ResourceRequest::doUpdatePlatformRequest):
1215
1216 2006-11-28  Adam Roben  <aroben@apple.com>
1217
1218         Reviewed by Beth.
1219
1220         More WebCore context menu work (still not turned on, however).
1221
1222         Split ContextMenuItem into its own files and make it a class.
1223
1224         * WebCore.exp: Updated symbols.
1225         * WebCore.xcodeproj/project.pbxproj: Added new ContextMenuItem files.
1226         * platform/ContextMenu.cpp:
1227         (WebCore::ContextMenu::populate): Code cleanup.
1228         * platform/ContextMenu.h: Split ContextMenuItem into a separate file,
1229         removed redundant "Menu" part of platformMenuDescription(),
1230         setPlatformMenuDescription().
1231         (WebCore::ContextMenu::ContextMenu):
1232         (WebCore::ContextMenu::hitTestResult):
1233         (WebCore::ContextMenu::platformDescription):
1234         * platform/ContextMenuItem.h: Added. Made ContextMenuItem a
1235         full-fledged class.
1236         (WebCore::):
1237         (WebCore::ContextMenuItem::ContextMenuItem):
1238         (WebCore::ContextMenuItem::menu):
1239         (WebCore::ContextMenuItem::platformDescription):
1240         (WebCore::ContextMenuItem::type):
1241         (WebCore::ContextMenuItem::action):
1242         (WebCore::ContextMenuItem::title):
1243         * platform/mac/ContextMenuItemMac.mm: Added.
1244         (WebCore::ContextMenuItem::ContextMenuItem):
1245         * platform/mac/ContextMenuMac.mm: Updated for ContextMenuItem changes.
1246         (-[MenuTarget forwardContextMenuAction:]):
1247         (getNSMenuItem): Handle separator items.
1248         (ContextMenu::appendItem):
1249         (ContextMenu::itemCount):
1250         (ContextMenu::insertItem):
1251         (ContextMenu::setPlatformDescription):
1252         * page/ContextMenuController.h: Updated declaration, added getter.
1253         (WebCore::ContextMenuController::contextMenu):
1254
1255         Added some more context menu plumbing.
1256
1257         * dom/EventTargetNode.cpp:
1258         (WebCore::EventTargetNode::defaultEventHandler): Added code to call the
1259         ContextMenuController when a context menu event is received.
1260         * page/ContextMenuClient.h: New client method declaration.
1261         * page/ContextMenuController.cpp:
1262         (WebCore::ContextMenuController::handleContextMenuEvent): Set the event
1263         defaultHandled after handling it.
1264         (WebCore::ContextMenuController::contextMenuItemSelected): Take a
1265         ContextMenuItem instead of a separate action and title.
1266
1267         Changed event-handling methods to return bools to signify whether the
1268         event was handled or not. This is needed so we can know whether to hand
1269         the event off to the OS. Also restructured some code to use early
1270         returns instead of nesting ifs.
1271
1272         * page/EventHandler.cpp:
1273         (WebCore::EventHandler::handleMousePressEventDoubleClick):
1274         (WebCore::EventHandler::handleMousePressEventTripleClick):
1275         (WebCore::EventHandler::handleMousePressEventSingleClick):
1276         (WebCore::EventHandler::handleMousePressEvent):
1277         (WebCore::EventHandler::handleMouseMoveEvent):
1278         (WebCore::EventHandler::handleMouseReleaseEvent):
1279         (WebCore::EventHandler::handleMouseDoubleClickEvent):
1280         (WebCore::EventHandler::handleWheelEvent):
1281         (WebCore::EventHandler::canMouseDownStartSelect):
1282         * page/EventHandler.h:
1283         * page/FrameView.cpp:
1284         (WebCore::FrameView::handleMouseMoveEvent):
1285         (WebCore::FrameView::handleMouseReleaseEvent):
1286         * page/FrameView.h:
1287         * platform/ScrollBar.h: More bool return values.
1288         (WebCore::Scrollbar::handleMouseMoveEvent):
1289         (WebCore::Scrollbar::handleMouseOutEvent):
1290         * platform/Widget.h: Ditto.
1291         (WebCore::Widget::handleMouseMoveEvent):
1292         (WebCore::Widget::handleMouseReleaseEvent):
1293
1294         Reverted the changes made in r17805 so that we can have fewer header
1295         #includes.
1296
1297         * page/Page.cpp:
1298         (WebCore::Page::Page):
1299         * page/Page.h: Ditto.
1300         (WebCore::Page::dragCaretController):
1301         (WebCore::Page::chrome):
1302         (WebCore::Page::contextMenuController):
1303
1304 2006-11-28  Alice Liu  <alice.liu@apple.com>
1305
1306         Reviewed by Justin and Adam.
1307
1308         All layout tests pass as they do without this patch
1309
1310         * WebCore.exp:
1311         Exposed functions in Editor and removed functions in FrameMac due to changes in WebHTMLView.m
1312
1313         * WebCore.xcodeproj/project.pbxproj:
1314         Added Pasteboard.h, PasteboardMac.mm, WebNSAttributedStringExtras.h&mm, EditorMac.mm
1315
1316         * bridge/EditorClient.h:
1317         Added smartInsertDeleteEnabled and shouldInsertNode and some mac-specific functions
1318
1319         * bridge/mac/FrameMac.h:
1320         * bridge/mac/FrameMac.mm:
1321         Removed dispatchCPPEvent and [can|try]DHTML[cut|copy|paste] since the Editor's are called now
1322
1323         * dom/CharacterData.h:
1324         (WebCore::CharacterData::isCharacterDataNode):
1325         * dom/Node.h:
1326         (WebCore::Node::isCharacterDataNode):
1327         Added a type-identifying function to Node and the proper subclass
1328
1329         * dom/Clipboard.h:
1330         Exposed setAccessPolicy as public
1331         
1332         * editing/Editor.h:
1333         * editing/Editor.cpp:
1334         Implemented the following
1335         (WebCore::Editor::canDHTMLCut):
1336         (WebCore::Editor::canDHTMLCopy):
1337         (WebCore::Editor::canDHTMLPaste):
1338         (WebCore::Editor::canSmartCopyOrDelete):
1339         (WebCore::Editor::deleteSelection):
1340         (WebCore::Editor::pasteAsPlainTextWithPasteboard):
1341         (WebCore::Editor::pasteWithPasteboard):
1342         (WebCore::Editor::canSmartReplaceWithPasteboard):
1343         (WebCore::Editor::shouldInsertFragment):
1344         (WebCore::Editor::replaceSelectionWithFragment):
1345         (WebCore::Editor::replaceSelectionWithText):
1346         (WebCore::Editor::selectedRange):
1347         (WebCore::Editor::shouldDeleteRange):
1348         (WebCore::Editor::tryDHTMLCopy):
1349         (WebCore::Editor::tryDHTMLCut):
1350         (WebCore::Editor::tryDHTMLPaste):
1351         (WebCore::Editor::writeSelectionToPasteboard):
1352         (WebCore::Editor::dispatchCPPEvent):
1353         (WebCore::Editor::cut):
1354         (WebCore::Editor::copy):
1355         (WebCore::Editor::paste):
1356                 
1357         * platform/mac/ClipboardAccessPolicy.h: Removed.
1358         Not removed, but moved to dom/ClipboardAccessPolicy.h
1359         
1360         * platform/mac/EditorMac.mm: Added.
1361         (WebCore::Editor::newGeneralClipboard):
1362
1363         * platform/Pasteboard.h: Added.
1364         * platform/mac/PasteboardMac.mm: Added.
1365         The pasteboard class follows a singleton pattern
1366         (Pasteboard::generalPasteboard):
1367         (Pasteboard::~Pasteboard):
1368         (Pasteboard::Pasteboard):
1369         (Pasteboard::clearTypes):
1370         (Pasteboard::writeSelection):
1371         (Pasteboard::selectionPasteboardTypes):
1372         (Pasteboard::canSmartReplace):
1373         (Pasteboard::plainText):
1374         (Pasteboard::documentFragment):
1375         
1376         * platform/mac/WebNSAttributedStringExtras.h: Added.
1377         * platform/mac/WebNSAttributedStringExtras.mm: Added.
1378         Added select portions of this file from WebKit because the pasteboard needed the following function:
1379         (-[NSAttributedString _web_attributedStringByStrippingAttachmentCharacters]):
1380
1381 2006-11-28  Justin Garcia  <justin.garcia@apple.com>
1382
1383         Reviewed by harrison
1384
1385         <rdar://problem/4397952>
1386         Cannot select buttons at the end of a document, preventing copy/paste
1387         
1388         There were no VisiblePositions before/after buttons because editingIgnoresContent
1389         returned false for buttons. 
1390
1391         * dom/Position.cpp:
1392         (WebCore::Position::upstream): Fixed a comment.
1393         (WebCore::Position::downstream): Ditto.
1394         * editing/DeleteSelectionCommand.cpp:
1395         (WebCore::DeleteSelectionCommand::initializeStartEnd): Ditto.
1396         * editing/htmlediting.cpp:
1397         (WebCore::editingIgnoresContent): It's unnecessary to prefer renderer 
1398         checks over tag name checks because it seems that a node of a tag name 
1399         that we do not ignore content for can't have a renderer of a type that we do.
1400         (WebCore::canHaveChildrenForEditing): Added selects, buttons, applets, and embeds.
1401         * editing/visible_units.cpp:
1402         (WebCore::previousLinePosition): Migrate to enclosingBlock.  Fixes a bug where the
1403         caret would get stuck moving up/down a line from a caret just before an 
1404         input element.
1405         (WebCore::nextLinePosition): Ditto.
1406
1407 2006-11-28  Geoffrey Garen  <ggaren@apple.com>
1408
1409         Reviewed by Adam.
1410
1411         Fixed <rdar://problem/4844848> REGRESSION: extra cross-library ref/deref 
1412         calls cause .5% PLT regression.
1413         
1414         Changed ref/deref calls to a single 'xxxDestroyed' call. Moved EditorClient
1415         from the Frame to the Page, since it's only responsible for
1416         Webview-level delegate calls.
1417         
1418         I don't really love this design, but it fixes the regression and allows
1419         a single WebKit object to implement multiple client interfaces.
1420         
1421         Layout tests pass.
1422
1423 2006-11-27  Anders Carlsson  <acarlsson@apple.com>
1424
1425         Try fixing the build.
1426         
1427         * platform/graphics/IntRect.cpp:
1428         (WebCore::IntRect::IntRect):
1429
1430 2006-11-27  Beth Dakin  <bdakin@apple.com>
1431
1432         Reviewed by Adam.
1433
1434         Getting rid of some of the critical FIXMEs in ContextMenu.cpp.
1435
1436         * bridge/mac/FrameMac.h: Two new spell checker functions from 
1437         WebKit. (We will be able to delete the WebKit versions once we 
1438         switch over to WebCore context menus.)
1439         * bridge/mac/FrameMac.mm:
1440         (WebCore::FrameMac::isSelectionMisspelled):
1441         (WebCore::core): Convert from NSArray of Strings to a Vector of 
1442         Strings.
1443         (WebCore::FrameMac::guessesForMisspelledSelection):
1444         * loader/FrameLoader.cpp:
1445         (WebCore::FrameLoader::canHandleRequest):
1446         * loader/FrameLoader.h: Make canHandleRequest available through the 
1447         FrameLoader.
1448         * loader/FrameLoaderClient.h: canHandleRequest takes a 
1449         ResourceRequest instead of an NSURLRequest.
1450         * loader/mac/FrameLoaderMac.mm:
1451         (WebCore::FrameLoader::continueAfterNavigationPolicy): Same
1452         * page/Frame.h: New spell checker functions moved to Frame. These 
1453         should be moved some place better some day, but FrameMac currently 
1454         seems to be the place to be for spell checker stuff.
1455         * platform/ContextMenu.cpp:
1456         (WebCore::ContextMenu::populate): Use new FrameLoader and spell 
1457         checking functionality to get rid of two if (true) statements. Also 
1458         add spelling guesses to the editing context menus.
1459
1460 2006-11-27  Alexey Proskuryakov  <ap@webkit.org>
1461
1462         Reviewed by Hyatt.
1463
1464         http://bugs.webkit.org/show_bug.cgi?id=11694
1465         XSLT output method does not default to HTML when the target document is HTML
1466
1467         Test: fast/xsl/default-html.html
1468
1469         * xml/XSLTProcessor.cpp:
1470         (WebCore::XSLTProcessor::transformToString): Make mimeType an input/output parameter, 
1471         serving as a hint when the stylesheet doesn't specify the output method.
1472         (WebCore::XSLTProcessor::transformToFragment): Set mimeType to text/html if the target
1473         document is HTML.
1474
1475 2006-11-27  Oliver Hunt  <oliver@apple.com>
1476
1477         Reviewed by Adam.
1478
1479         Fixes a crash in SVG caused by an attempt to 
1480         perform css overflow clipping by preventing
1481         the css overflow clip from being set in SVG.
1482         
1483         <rdar:/problems/4839568>
1484
1485         * WebCore.xcodeproj/project.pbxproj:
1486         * rendering/RenderForeignObject.cpp:
1487         (WebCore::RenderForeignObject::RenderForeignObject):
1488         * rendering/RenderForeignObject.h:
1489         * rendering/RenderSVGBlock.cpp: Added.
1490         (WebCore::RenderSVGBlock::RenderSVGBlock):
1491         (WebCore::RenderSVGBlock::setStyle):
1492         * rendering/RenderSVGBlock.h: Added.
1493         * rendering/RenderSVGText.cpp:
1494         (WebCore::RenderSVGText::RenderSVGText):
1495         * rendering/RenderSVGText.h:
1496
1497 2006-11-27  Anders Carlsson  <acarlsson@apple.com>
1498
1499         Reviewed by Adam.
1500
1501         Add an explicit IntRect constructor that takes a FloatRect.
1502         
1503         * platform/graphics/IntRect.cpp:
1504         (WebCore::IntRect::IntRect):
1505         * platform/graphics/IntRect.h:
1506
1507 2006-11-27  Ada Chan  <adachan@apple.com>
1508
1509         Reviewed by Adam.
1510
1511         Moved WebCoreCache up to WebKit.
1512
1513         * WebCore.exp:
1514         * WebCore.xcodeproj/project.pbxproj:
1515         * bridge/mac/WebCoreCache.h: Removed.
1516         * bridge/mac/WebCoreCache.mm: Removed.
1517
1518 2006-11-27  Anders Carlsson  <acarlsson@apple.com>
1519
1520         Reviewed by Adam.
1521
1522         Move addMessageToConsole to Chrome.
1523         
1524         * bindings/js/kjs_events.cpp:
1525         (KJS::JSAbstractEventListener::handleEvent):
1526         * bindings/js/kjs_proxy.cpp:
1527         (WebCore::KJSProxy::evaluate):
1528         * bindings/js/kjs_window.cpp:
1529         (KJS::Window::isSafeScript):
1530         (KJS::ScheduledAction::execute):
1531         * bridge/mac/FrameMac.h:
1532         * bridge/mac/FrameMac.mm:
1533         * bridge/mac/WebCoreFrameBridge.h:
1534         * page/Chrome.cpp:
1535         (WebCore::Chrome::addMessageToConsole):
1536         * page/Chrome.h:
1537         * page/ChromeClient.h:
1538         * page/Frame.h:
1539
1540 2006-11-27  Adele Peterson  <adele@apple.com>
1541
1542         Reviewed by Hyatt.
1543
1544         - Fix for http://bugs.webkit.org/show_bug.cgi?id=8062
1545           Caret color in new text field should take background color and foreground color into consideration
1546
1547         * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
1548           Use the foreground color of the rootEditableElement to determine the caret color.  This will work well for text controls in web pages (since the root is always the actual form control)
1549           as well as in editable WebViews, like in Mail, which will just pick up the color from the body element.
1550
1551 2006-11-26  Simon Hausmann  <hausmann@kde.org>
1552
1553         Reviewed by Maciej.
1554
1555         http://bugs.webkit.org/show_bug.cgi?id=11693
1556         Fix the Qt build, adapt to various enum/class renamings.
1557
1558         * kcanvas/device/qt/KRenderingDeviceQt.cpp:
1559         (WebCore::KRenderingDeviceQt::createResource):
1560         (WebCore::KRenderingDeviceQt::createPaintServer):
1561         * kcanvas/device/qt/KRenderingDeviceQt.h:
1562         * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
1563         (WebCore::SVGPaintServerLinearGradient::setup):
1564         * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
1565         (WebCore::SVGPaintServer::renderPath):
1566         * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
1567         (WebCore::setup):
1568         * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
1569         (WebCore::SVGPaintServerSolid::setup):
1570
1571 2006-11-24  Rob Buis  <buis@kde.org>
1572
1573         Reviewed by Mitz.
1574
1575         http://bugs.webkit.org/show_bug.cgi?id=11666
1576         .getScreenCTM() returns wrong values
1577
1578         Take into account the local transform matrix too and
1579         so fix getScreenCTM/getCTM for <text>.
1580
1581         * ksvg2/svg/SVGStyledTransformableElement.cpp:
1582         (SVGStyledTransformableElement::getCTM):
1583         (SVGStyledTransformableElement::getScreenCTM):
1584         * ksvg2/svg/SVGTextElement.cpp:
1585         (WebCore::SVGTextElement::getScreenCTM):
1586         (WebCore::SVGTextElement::getCTM):
1587         * ksvg2/svg/SVGTransformable.cpp:
1588         (WebCore::SVGTransformable::getCTM):
1589         (WebCore::SVGTransformable::getScreenCTM):
1590         * ksvg2/svg/SVGTransformable.h:
1591
1592 2006-11-22  Rob Buis  <buis@kde.org>
1593
1594         Reviewed by Eric.
1595
1596         http://bugs.webkit.org/show_bug.cgi?id=11661
1597         SVG: stroke not sensitive to mouse events (hit testing fails)
1598
1599         Use mapAbsolutePointToLocal when hit-testing strokes.
1600
1601         * rendering/RenderPath.cpp:
1602         (WebCore::RenderPath::fillContains):
1603         (WebCore::RenderPath::nodeAtPoint):
1604
1605 2006-11-21  Anders Carlsson  <acarlsson@apple.com>
1606
1607         Reviewed by Mitz.
1608
1609         General SVG cleanup. Change some enums to match the style guidelines, use PLATFORM(CG) instead of PLATFORM(MAC).
1610         Remove config.h inluce from AffineTransform.h
1611         
1612         * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
1613         (WebCore::KRenderingDeviceQuartz::createPaintServer):
1614         (WebCore::KRenderingDeviceQuartz::createResource):
1615         * ksvg2/misc/KCanvasRenderingStyle.cpp:
1616         (WebCore::sharedSolidPaintServer):
1617         * ksvg2/svg/SVGFilterElement.cpp:
1618         (WebCore::SVGFilterElement::canvasResource):
1619         * ksvg2/svg/SVGLinearGradientElement.cpp:
1620         (WebCore::SVGLinearGradientElement::buildGradient):
1621         * ksvg2/svg/SVGLinearGradientElement.h:
1622         (WebCore::SVGLinearGradientElement::gradientType):
1623         * ksvg2/svg/SVGPatternElement.cpp:
1624         (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
1625         (WebCore::SVGPatternElement::canvasResource):
1626         * ksvg2/svg/SVGRadialGradientElement.cpp:
1627         (WebCore::SVGRadialGradientElement::buildGradient):
1628         * ksvg2/svg/SVGRadialGradientElement.h:
1629         (WebCore::SVGRadialGradientElement::gradientType):
1630         * platform/graphics/AffineTransform.h:
1631         * platform/graphics/svg/SVGPaintServer.h:
1632         (WebCore::):
1633         * platform/graphics/svg/SVGPaintServerGradient.cpp:
1634         (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
1635         (WebCore::SVGPaintServerGradient::~SVGPaintServerGradient):
1636         * platform/graphics/svg/SVGPaintServerGradient.h:
1637         * platform/graphics/svg/SVGPaintServerLinearGradient.h:
1638         (WebCore::SVGPaintServerLinearGradient::type):
1639         * platform/graphics/svg/SVGPaintServerPattern.h:
1640         (WebCore::SVGPaintServerPattern::type):
1641         * platform/graphics/svg/SVGPaintServerRadialGradient.h:
1642         (WebCore::SVGPaintServerRadialGradient::type):
1643         * platform/graphics/svg/SVGPaintServerSolid.h:
1644         (WebCore::SVGPaintServerSolid::type):
1645         * platform/graphics/svg/SVGResource.h:
1646         (WebCore::):
1647         * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
1648         (WebCore::SVGPaintServer::renderPath):
1649         * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
1650         (WebCore::SVGPaintServerGradient::updateQuartzGradientCache):
1651         (WebCore::SVGPaintServerGradient::teardown):
1652         (WebCore::SVGPaintServerGradient::renderPath):
1653         (WebCore::SVGPaintServerGradient::setup):
1654         * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
1655         (WebCore::SVGPaintServerPattern::setup):
1656         * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
1657         (WebCore::SVGPaintServerSolid::setup):
1658         * rendering/RenderPath.cpp:
1659         (WebCore::RenderPath::paint):
1660         * rendering/SVGInlineFlowBox.cpp:
1661         (WebCore::paintSVGInlineFlow):
1662
1663 2006-11-21  Nikolas Zimmermann  <zimmermann@kde.org>
1664
1665         Reviewed by Oliver.
1666
1667         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11658
1668
1669         Move KRenderingPaintServer* classes to the location
1670         of all other resources (platform/graphics/svg).
1671
1672         Soon the whole platform/graphics/svg stuff will bemoved
1673         into ksvg2/ itself, as discussed with Darin.
1674
1675         * CMakeLists.txt:
1676         * WebCore.xcodeproj/project.pbxproj:
1677         * kcanvas/device/KRenderingDevice.h:
1678         * kcanvas/device/KRenderingPaintServer.h: Removed.
1679         * kcanvas/device/KRenderingPaintServerGradient.cpp: Removed.
1680         * kcanvas/device/KRenderingPaintServerGradient.h: Removed.
1681         * kcanvas/device/KRenderingPaintServerPattern.cpp: Removed.
1682         * kcanvas/device/KRenderingPaintServerPattern.h: Removed.
1683         * kcanvas/device/KRenderingPaintServerSolid.cpp: Removed.
1684         * kcanvas/device/KRenderingPaintServerSolid.h: Removed.
1685         * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp: Removed.
1686         * kcanvas/device/qt/KRenderingPaintServerGradientQt.h: Removed.
1687         * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp: Removed.
1688         * kcanvas/device/qt/KRenderingPaintServerPatternQt.h: Removed.
1689         * kcanvas/device/qt/KRenderingPaintServerQt.cpp: Removed.
1690         * kcanvas/device/qt/KRenderingPaintServerQt.h: Removed.
1691         * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp: Removed.
1692         * kcanvas/device/qt/KRenderingPaintServerSolidQt.h: Removed.
1693         * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
1694         * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
1695         (WebCore::KRenderingDeviceQuartz::createPaintServer):
1696         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
1697         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.cpp: Removed.
1698         * kcanvas/device/quartz/KRenderingPaintServerQuartz.cpp: Removed.
1699         * kcanvas/device/quartz/KRenderingPaintServerQuartz.h: Removed.
1700         * ksvg2/misc/KCanvasRenderingStyle.cpp:
1701         (WebCore::sharedSolidPaintServer):
1702         (WebCore::KSVGPainterFactory::fillPaintServer):
1703         (WebCore::KSVGPainterFactory::strokePaintServer):
1704         * ksvg2/misc/KCanvasRenderingStyle.h:
1705         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1706         * ksvg2/svg/SVGFEOffsetElement.cpp:
1707         * ksvg2/svg/SVGGradientElement.cpp:
1708         (WebCore::SVGGradientElement::canvasResource):
1709         (WebCore::SVGGradientElement::resourceNotification):
1710         (WebCore::SVGGradientElement::rebuildStops):
1711         * ksvg2/svg/SVGGradientElement.h:
1712         * ksvg2/svg/SVGLinearGradientElement.cpp:
1713         (WebCore::SVGLinearGradientElement::buildGradient):
1714         * ksvg2/svg/SVGLinearGradientElement.h:
1715         (WebCore::SVGLinearGradientElement::gradientType):
1716         * ksvg2/svg/SVGPatternElement.cpp:
1717         (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
1718         (WebCore::SVGPatternElement::canvasResource):
1719         * ksvg2/svg/SVGPatternElement.h:
1720         * ksvg2/svg/SVGRadialGradientElement.cpp:
1721         (WebCore::SVGRadialGradientElement::buildGradient):
1722         * ksvg2/svg/SVGRadialGradientElement.h:
1723         (WebCore::SVGRadialGradientElement::gradientType):
1724         * platform/graphics/svg/SVGPaintServer.cpp: Added.
1725         (WebCore::SVGPaintServer::SVGPaintServer):
1726         (WebCore::SVGPaintServer::~SVGPaintServer):
1727         (WebCore::SVGPaintServer::activeClient):
1728         (WebCore::SVGPaintServer::setActiveClient):
1729         (WebCore::SVGPaintServer::isPaintingText):
1730         (WebCore::SVGPaintServer::setPaintingText):
1731         (WebCore::operator<<):
1732         (WebCore::getPaintServerById):
1733         * platform/graphics/svg/SVGPaintServer.h: Added.
1734         (WebCore::):
1735         (WebCore::SVGPaintServer::isPaintServer):
1736         * platform/graphics/svg/SVGPaintServerGradient.cpp: Added.
1737         (WebCore::compareStopOffset):
1738         (WebCore::operator<<):
1739         (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
1740         (WebCore::SVGPaintServerGradient::~SVGPaintServerGradient):
1741         (WebCore::SVGPaintServerGradient::gradientStops):
1742         (WebCore::SVGPaintServerGradient::setGradientStops):
1743         (WebCore::SVGPaintServerGradient::spreadMethod):
1744         (WebCore::SVGPaintServerGradient::setGradientSpreadMethod):
1745         (WebCore::SVGPaintServerGradient::boundingBoxMode):
1746         (WebCore::SVGPaintServerGradient::setBoundingBoxMode):
1747         (WebCore::SVGPaintServerGradient::gradientTransform):
1748         (WebCore::SVGPaintServerGradient::setGradientTransform):
1749         (WebCore::SVGPaintServerGradient::listener):
1750         (WebCore::SVGPaintServerGradient::setListener):
1751         (WebCore::SVGPaintServerGradient::externalRepresentation):
1752         * platform/graphics/svg/SVGPaintServerGradient.h: Added.
1753         (WebCore::):
1754         (WebCore::SVGPaintServerGradient::):
1755         (WebCore::makeGradientStop):
1756         * platform/graphics/svg/SVGPaintServerLinearGradient.cpp: Added.
1757         (WebCore::SVGPaintServerLinearGradient::SVGPaintServerLinearGradient):
1758         (WebCore::SVGPaintServerLinearGradient::~SVGPaintServerLinearGradient):
1759         (WebCore::SVGPaintServerLinearGradient::gradientStart):
1760         (WebCore::SVGPaintServerLinearGradient::setGradientStart):
1761         (WebCore::SVGPaintServerLinearGradient::gradientEnd):
1762         (WebCore::SVGPaintServerLinearGradient::setGradientEnd):
1763         (WebCore::SVGPaintServerLinearGradient::externalRepresentation):
1764         * platform/graphics/svg/SVGPaintServerLinearGradient.h: Added.
1765         (WebCore::SVGPaintServerLinearGradient::type):
1766         * platform/graphics/svg/SVGPaintServerPattern.cpp: Added.
1767         (WebCore::SVGPaintServerPattern::SVGPaintServerPattern):
1768         (WebCore::SVGPaintServerPattern::~SVGPaintServerPattern):
1769         (WebCore::SVGPaintServerPattern::bbox):
1770         (WebCore::SVGPaintServerPattern::setBbox):
1771         (WebCore::SVGPaintServerPattern::boundingBoxMode):
1772         (WebCore::SVGPaintServerPattern::setBoundingBoxMode):
1773         (WebCore::SVGPaintServerPattern::tile):
1774         (WebCore::SVGPaintServerPattern::setTile):
1775         (WebCore::SVGPaintServerPattern::patternTransform):
1776         (WebCore::SVGPaintServerPattern::setPatternTransform):
1777         (WebCore::SVGPaintServerPattern::listener):
1778         (WebCore::SVGPaintServerPattern::setListener):
1779         (WebCore::SVGPaintServerPattern::externalRepresentation):
1780         * platform/graphics/svg/SVGPaintServerPattern.h: Added.
1781         (WebCore::SVGPaintServerPattern::type):
1782         * platform/graphics/svg/SVGPaintServerRadialGradient.cpp: Added.
1783         (WebCore::SVGPaintServerRadialGradient::SVGPaintServerRadialGradient):
1784         (WebCore::SVGPaintServerRadialGradient::~SVGPaintServerRadialGradient):
1785         (WebCore::SVGPaintServerRadialGradient::gradientCenter):
1786         (WebCore::SVGPaintServerRadialGradient::setGradientCenter):
1787         (WebCore::SVGPaintServerRadialGradient::gradientFocal):
1788         (WebCore::SVGPaintServerRadialGradient::setGradientFocal):
1789         (WebCore::SVGPaintServerRadialGradient::gradientRadius):
1790         (WebCore::SVGPaintServerRadialGradient::setGradientRadius):
1791         (WebCore::SVGPaintServerRadialGradient::externalRepresentation):
1792         * platform/graphics/svg/SVGPaintServerRadialGradient.h: Added.
1793         (WebCore::SVGPaintServerRadialGradient::type):
1794         * platform/graphics/svg/SVGPaintServerSolid.cpp: Added.
1795         (WebCore::SVGPaintServerSolid::SVGPaintServerSolid):
1796         (WebCore::SVGPaintServerSolid::~SVGPaintServerSolid):
1797         (WebCore::SVGPaintServerSolid::color):
1798         (WebCore::SVGPaintServerSolid::setColor):
1799         (WebCore::SVGPaintServerSolid::externalRepresentation):
1800         * platform/graphics/svg/SVGPaintServerSolid.h: Added.
1801         (WebCore::SVGPaintServerSolid::type):
1802         * platform/graphics/svg/SVGResource.cpp:
1803         * platform/graphics/svg/SVGResource.h:
1804         * platform/graphics/svg/SVGResourceClipper.cpp:
1805         * platform/graphics/svg/SVGResourceMarker.cpp:
1806         * platform/graphics/svg/SVGResourceMasker.cpp:
1807         * platform/graphics/svg/cg/SVGPaintServerCg.cpp: Added.
1808         (WebCore::SVGPaintServer::draw):
1809         (WebCore::SVGPaintServer::teardown):
1810         (WebCore::SVGPaintServer::renderPath):
1811         (WebCore::SVGPaintServer::strokePath):
1812         (WebCore::SVGPaintServer::clipToStrokePath):
1813         (WebCore::SVGPaintServer::fillPath):
1814         (WebCore::SVGPaintServer::clipToFillPath):
1815         * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: Added.
1816         (WebCore::cgGradientCallback):
1817         (WebCore::CGShadingRefForLinearGradient):
1818         (WebCore::CGShadingRefForRadialGradient):
1819         (WebCore::SVGPaintServerGradient::invalidateCaches):
1820         (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
1821         (WebCore::SVGPaintServerGradient::updateQuartzGradientCache):
1822         (WebCore::SVGPaintServerGradient::teardown):
1823         (WebCore::SVGPaintServerGradient::renderPath):
1824         (WebCore::SVGPaintServerGradient::setup):
1825         (WebCore::SVGPaintServerGradient::invalidate):
1826         * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: Added.
1827         (WebCore::patternCallback):
1828         (WebCore::SVGPaintServerPattern::setup):
1829         (WebCore::SVGPaintServerPattern::teardown):
1830         * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp: Added.
1831         (WebCore::SVGPaintServerSolid::setup):
1832         * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp: Added.
1833         (WebCore::SVGPaintServerGradient::fillColorArray):
1834         * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp: Added.
1835         (WebCore::SVGPaintServerLinearGradient::setup):
1836         * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp: Added.
1837         (WebCore::SVGPaintServerPattern::setup):
1838         * platform/graphics/svg/qt/SVGPaintServerQt.cpp: Added.
1839         (WebCore::SVGPaintServer::setPenProperties):
1840         (WebCore::SVGPaintServer::draw):
1841         (WebCore::SVGPaintServer::teardown):
1842         (WebCore::SVGPaintServer::renderPath):
1843         * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp: Added.
1844         (WebCore::setup):
1845         * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp: Added.
1846         (WebCore::SVGPaintServerSolid::setup):
1847         * rendering/RenderPath.cpp:
1848         (WebCore::RenderPath::paint):
1849         * rendering/SVGInlineFlowBox.cpp:
1850         (WebCore::paintSVGInlineFlow):
1851         * rendering/SVGRenderTreeAsText.cpp:
1852         (WebCore::writeStyle):
1853         (WebCore::writeRenderResources):
1854
1855 2006-11-21  Alex Taylor  <darwin@techvisual.co.nz>
1856
1857         Reviewed by Mitz.
1858
1859         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11587
1860
1861         Adds calculations for bottom right radius's position
1862         which was being drawn incorrectly.
1863
1864         * rendering/RenderObject.cpp:
1865         (WebCore::RenderObject::paintBorder):
1866
1867 2006-11-20  Rob Buis  <buis@kde.org>
1868
1869         Reviewed by Maciej.
1870
1871         http://bugs.webkit.org/show_bug.cgi?id=11519
1872         REGRESSION: Disabled file upload control doesn't have disabled appearance, failing fast/forms/file-input-disabled.html
1873
1874         Transport disabled state from DOM element to the shadow
1875         DOM/render object.
1876
1877         * rendering/RenderFileUploadControl.cpp:
1878         (WebCore::RenderFileUploadControl::updateFromElement):
1879         * rendering/RenderTheme.h:
1880
1881 2006-11-20  Anders Carlsson  <acarlsson@apple.com>
1882
1883         Reviewed by Maciej.
1884
1885         * loader/TextResourceDecoder.cpp:
1886         (WebCore::findXMLEncoding):
1887         Use CString instead of DeprecatedCString.
1888         
1889         * platform/CString.cpp:
1890         (WebCore::CString::find):
1891         * platform/CString.h:
1892         (WebCore::CString::data):
1893         Add find method, make data method inline.
1894         
1895         * platform/TextStream.cpp:
1896         * platform/TextStream.h:
1897         Remove DeprecatedCString functions.
1898
1899 2006-11-20  Anders Carlsson  <acarlsson@apple.com>
1900
1901         Reviewed by Maciej.
1902
1903         Use CString instead of DeprecatedCString.
1904         
1905         * html/FormDataList.cpp:
1906         (WebCore::FormDataList::appendString):
1907         (WebCore::fixLineBreaks):
1908         (WebCore::FormDataList::appendFile):
1909
1910 2006-11-20  Samuel Weinig  <sam@webkit.org>
1911
1912         Reviewed by Alexey.
1913
1914         Fix for http://bugs.webkit.org/show_bug.cgi?id=11656
1915         Fix Windows build
1916
1917         * WebCore.vcproj/WebCore/WebCore.vcproj:
1918         * bridge/win/ContextMenuClientWin.h:
1919         * bridge/win/EditorClientWin.h:
1920         * bridge/win/FrameWin.h:
1921         * platform/win/TemporaryLinkStubs.cpp:
1922         (WebCore::ContextMenu::show):
1923         (WebCore::ContextMenuClientWin::copyLinkToClipboard):
1924         (WebCore::ContextMenuClientWin::downloadURL):
1925         (WebCore::ContextMenuClientWin::copyImageToClipboard):
1926         (WebCore::ContextMenuClientWin::lookUpInDictionary):
1927         (WebCore::EditorClientWin::shouldInsertText):
1928         (WebCore::FrameLoader::reload):
1929         (WebCore::FrameWin::ignoreSpelling):
1930         (WebCore::FrameWin::learnSpelling):
1931
1932 2006-11-20  Alexey Proskuryakov  <ap@webkit.org>
1933
1934         Reviewed by Maciej.
1935
1936         http://bugs.webkit.org/show_bug.cgi?id=10736
1937         XMLHttpRequest.responseXML should be null on error
1938
1939         * dom/XMLTokenizer.cpp:
1940         (WebCore::XMLTokenizer::wellFormed):
1941         * dom/XMLTokenizer.h:
1942         (WebCore::Tokenizer::wellFormed):
1943         * dom/Document.cpp:
1944         (WebCore::Document::Document):
1945         (WebCore::Document::implicitClose):
1946         * dom/Document.h:
1947         (WebCore::Document::wellFormed):
1948         Tell whether XMLTokenizer saw an error. Always true (success) for HTML.
1949
1950         * xml/xmlhttprequest.cpp:
1951         (WebCore::XMLHttpRequest::getResponseXML): Set the document to null if it's not well-formed.
1952
1953 2006-11-20  Alexey Proskuryakov  <ap@webkit.org>
1954
1955         Reviewed by Sam Weinig.
1956
1957         http://bugs.webkit.org/show_bug.cgi?id=11633
1958         Implement XMLDocument properties xmlEncoding, xmlVersion, xmlStandalone
1959
1960         * dom/Document.cpp:
1961         (WebCore::Document::Document):
1962         (WebCore::Document::setXMLVersion):
1963         (WebCore::Document::setXMLStandalone):
1964         * dom/Document.h:
1965         (WebCore::Document::xmlEncoding):
1966         (WebCore::Document::xmlVersion):
1967         (WebCore::Document::xmlStandalone):
1968         (WebCore::Document::setXMLEncoding):
1969         * dom/Document.idl:
1970         * dom/XMLTokenizer.cpp:
1971         (WebCore::XMLTokenizer::startDocument):
1972         (WebCore::startDocumentHandler):
1973         (WebCore::XMLTokenizer::initializeParserContext):
1974         Added support for these properties, getting them from an libxml2 context.
1975
1976         * html/HTMLDocument.cpp:
1977         (WebCore::HTMLDocument::HTMLDocument):
1978         HTMLDocument is the only kind of document that doesn't have xmlVersion default to "1.0".
1979
1980         * bindings/scripts/CodeGeneratorJS.pm:
1981         * bindings/scripts/CodeGeneratorObjC.pm:
1982         Added WK_ucfirst to properly uppercase xmlVersion and xmlStandalone.
1983
1984 2006-11-20  Nikolas Zimmermann  <zimmermann@kde.org>
1985
1986         Reviewed by Rob.
1987
1988         Fix Qt/Linux build.
1989
1990         * platform/qt/ContextMenuClientQt.cpp:
1991         (WebCore::ContextMenuClientQt::ref):
1992         (WebCore::ContextMenuClientQt::deref):
1993         (WebCore::ContextMenuClientQt::copyLinkToClipboard):
1994         (WebCore::ContextMenuClientQt::downloadURL):
1995         (WebCore::ContextMenuClientQt::copyImageToClipboard):
1996         (WebCore::ContextMenuClientQt::lookUpInDictionary):
1997         * platform/qt/ContextMenuClientQt.h:
1998         * platform/qt/ContextMenuQt.cpp:
1999         (WebCore::ContextMenu::appendItem):
2000         (WebCore::ContextMenu::show):
2001         (WebCore::ContextMenu::itemCount):
2002         (WebCore::ContextMenu::insertItem):
2003         * platform/qt/EditorClientQt.cpp:
2004         (WebCore::EditorClientQt::shouldInsertText):
2005         * platform/qt/EditorClientQt.h:
2006         * platform/qt/FrameQt.cpp:
2007         (WebCore::FrameQt::ignoreSpelling):
2008         (WebCore::FrameQt::learnSpelling):
2009         * platform/qt/FrameQt.h:
2010         * platform/qt/TemporaryLinkStubs.cpp:
2011         (FrameLoader::reload):
2012
2013 2006-11-20  Samuel Weinig  <sam@webkit.org>
2014
2015         Reviewed by Maciej.
2016
2017         Fix for http://bugs.webkit.org/show_bug.cgi?id=11647
2018         Fix Win32 build
2019
2020         * config.h: add #define NOMINMAX for windows build
2021         * platform/win/FontCacheWin.cpp:
2022         (WebCore::FontCache::createFontPlatformData):
2023         * platform/win/TemporaryLinkStubs.cpp: add definitions for 
2024         new cursors.
2025         (WebCore::aliasCursor):
2026         (WebCore::noDropCursor):
2027         (WebCore::progressCursor):
2028
2029 2006-11-19  Beth Dakin  <bdakin@apple.com>
2030
2031         Reviewed by Adam.
2032
2033         Implementation of actions for the new context menus.
2034
2035         * WebCore.exp:
2036         * WebCore.xcodeproj/project.pbxproj:
2037         * bridge/EditorClient.h: Declaration of shouldInsertText.
2038         * bridge/mac/FrameMac.h: Two new spelling functions.
2039         * bridge/mac/FrameMac.mm:
2040         (WebCore::FrameMac::ignoreSpelling):
2041         (WebCore::FrameMac::learnSpelling):
2042         * editing/Editor.cpp:
2043         (WebCore::Editor::shouldInsertText): Call into the client.
2044         * editing/Editor.h:
2045         * editing/EditorInsertAction.h: Added.
2046         (WebCore::): The WebCore equivalent of WebViewInsertAction. This is 
2047         defined in its own header so that we can use it from Editor.h and 
2048         EditorClient.h without having one of the above include the other.
2049         * page/ContextMenuClient.h: A few currently WebKit-implemented 
2050         function needed for menu actions.
2051         * page/ContextMenuController.cpp:
2052         (WebCore::makeGoogleSearchURL):
2053         (WebCore::ContextMenuController::contextMenuActionSelected): The 
2054         actions!
2055         * page/ContextMenuController.h:
2056         * page/Frame.h: New pure-virtual spelling functions.
2057         * platform/ContextMenu.cpp:
2058         (WebCore::ContextMenu::controller): Get the controller from the 
2059         menu.
2060         * platform/ContextMenu.h:
2061         * platform/mac/ContextMenuMac.mm:
2062         (-[MenuTarget 
2063         forwardContextMenuAction:initWithContextMenuController:WebCore::]): 
2064         Use the controller instead of the menu
2065         (-[MenuTarget WebCore::]):
2066         (-[MenuTarget setMenuController:WebCore::]):
2067         (-[MenuTarget forwardContextMenuAction:]):
2068         (getNSMenuItem):
2069         (ContextMenu::show):
2070         (ContextMenu::hide):
2071
2072 2006-11-19  Simon Hausmann  <hausmann@kde.org>
2073
2074         Reviewed by Zack.
2075
2076         http://bugs.webkit.org/show_bug.cgi?id=11649
2077         Fix CMake files for Qt-only build without KDE cmake files.
2078         Fix Qt/KDE build for the SVG support.
2079         Fix Qt-only build in the resource handler.
2080
2081         * CMakeLists.txt:
2082         * platform/graphics/svg/qt/SVGResourceFilterQt.cpp: Added.
2083         (WebCore::SVGResourceFilter::SVGResourceFilter):
2084         (WebCore::SVGResourceFilter::~SVGResourceFilter):
2085         (WebCore::SVGResourceFilter::prepareFilter):
2086         (WebCore::SVGResourceFilter::applyFilter):
2087         * platform/network/qt/ResourceHandleManager.cpp:
2088         (WebCore::ResourceHandleManager::cancel):
2089         (WebCore::ResourceHandleManager::slotData):
2090         (WebCore::ResourceHandleManager::slotMimetype):
2091         (WebCore::ResourceHandleManager::slotResult):
2092         (WebCore::ResourceHandleManager::deliverJobData):
2093         * platform/network/qt/ResourceHandleManager.h:
2094         * platform/network/qt/ResourceHandleQt.cpp:
2095         * platform/qt/CursorQt.cpp:
2096         (WebCore::noDropCursor):
2097         (WebCore::progressCursor):
2098         (WebCore::aliasCursor):
2099
2100 2006-11-19  Mitz Pettel  <mitz@webkit.org>
2101
2102         Reviewed by Maciej.
2103
2104         - http://bugs.webkit.org/show_bug.cgi?id=11626
2105           Automate test for rdar://problem/4056100
2106
2107         * manual-tests/delete-into-nested-block.html: Removed.
2108
2109 2006-11-19  Nikolas Zimmermann  <zimmermann@kde.org>
2110
2111         Reviewed by Oliver.
2112
2113         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11596
2114
2115         Split up KCanvasFilters & KCanvasFilterQuartz into several
2116         new classes (SVGFEBlend, SVGFEComposite...) and move them
2117         into platform/graphics/svg. This is still a temporary location,
2118         as discussed with Darin; the whole platform/graphics/svg directory
2119         will probably be moved into ksvg2/ in near future.
2120
2121         This finally removes the duplicated enumerations in the svg filter
2122         classes and within kcanvas. ksvg2/ and platform/graphics/svg share
2123         their enums now. As KCanvasFilters is gone now, The kcanvas/ subdirectory
2124         is empty.
2125
2126         * CMakeLists.txt:
2127         * WebCore.xcodeproj/project.pbxproj:
2128         * bindings/scripts/CodeGeneratorJS.pm:
2129         * kcanvas/KCanvasFilters.cpp: Removed.
2130         * kcanvas/KCanvasFilters.h: Removed.
2131         * kcanvas/device/KRenderingDevice.h:
2132         * kcanvas/device/qt/KRenderingDeviceQt.cpp:
2133         (WebCore::KRenderingDeviceQt::createFilterEffect):
2134         * kcanvas/device/qt/KRenderingDeviceQt.h:
2135         * kcanvas/device/quartz/KCanvasFilterQuartz.h: Removed.
2136         * kcanvas/device/quartz/KCanvasFilterQuartz.mm: Removed.
2137         * kcanvas/device/quartz/KCanvasItemQuartz.cpp:
2138         * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
2139         (WebCore::KRenderingDeviceQuartz::createResource):
2140         (WebCore::KRenderingDeviceQuartz::createFilterEffect):
2141         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
2142         * kcanvas/device/quartz/filters/WKArithmeticFilter.cikernel: Removed.
2143         * kcanvas/device/quartz/filters/WKArithmeticFilter.h: Removed.
2144         * kcanvas/device/quartz/filters/WKArithmeticFilter.m: Removed.
2145         * kcanvas/device/quartz/filters/WKComponentMergeFilter.cikernel: Removed.
2146         * kcanvas/device/quartz/filters/WKComponentMergeFilter.h: Removed.
2147         * kcanvas/device/quartz/filters/WKComponentMergeFilter.m: Removed.
2148         * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.cikernel: Removed.
2149         * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.h: Removed.
2150         * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.m: Removed.
2151         * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.cikernel: Removed.
2152         * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.h: Removed.
2153         * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.m: Removed.
2154         * kcanvas/device/quartz/filters/WKDisplacementMapFilter.cikernel: Removed.
2155         * kcanvas/device/quartz/filters/WKDisplacementMapFilter.h: Removed.
2156         * kcanvas/device/quartz/filters/WKDisplacementMapFilter.m: Removed.
2157         * kcanvas/device/quartz/filters/WKDistantLightFilter.cikernel: Removed.
2158         * kcanvas/device/quartz/filters/WKDistantLightFilter.h: Removed.
2159         * kcanvas/device/quartz/filters/WKDistantLightFilter.m: Removed.
2160         * kcanvas/device/quartz/filters/WKGammaTransferFilter.cikernel: Removed.
2161         * kcanvas/device/quartz/filters/WKGammaTransferFilter.h: Removed.
2162         * kcanvas/device/quartz/filters/WKGammaTransferFilter.m: Removed.
2163         * kcanvas/device/quartz/filters/WKIdentityTransferFilter.h: Removed.
2164         * kcanvas/device/quartz/filters/WKIdentityTransferFilter.m: Removed.
2165         * kcanvas/device/quartz/filters/WKLinearTransferFilter.cikernel: Removed.
2166         * kcanvas/device/quartz/filters/WKLinearTransferFilter.h: Removed.
2167         * kcanvas/device/quartz/filters/WKLinearTransferFilter.m: Removed.
2168         * kcanvas/device/quartz/filters/WKNormalMapFilter.cikernel: Removed.
2169         * kcanvas/device/quartz/filters/WKNormalMapFilter.h: Removed.
2170         * kcanvas/device/quartz/filters/WKNormalMapFilter.m: Removed.
2171         * kcanvas/device/quartz/filters/WKPointLightFilter.cikernel: Removed.
2172         * kcanvas/device/quartz/filters/WKPointLightFilter.h: Removed.
2173         * kcanvas/device/quartz/filters/WKPointLightFilter.m: Removed.
2174         * kcanvas/device/quartz/filters/WKSpecularLightingFilter.cikernel: Removed.
2175         * kcanvas/device/quartz/filters/WKSpecularLightingFilter.h: Removed.
2176         * kcanvas/device/quartz/filters/WKSpecularLightingFilter.m: Removed.
2177         * kcanvas/device/quartz/filters/WKSpotLightFilter.cikernel: Removed.
2178         * kcanvas/device/quartz/filters/WKSpotLightFilter.h: Removed.
2179         * kcanvas/device/quartz/filters/WKSpotLightFilter.m: Removed.
2180         * kcanvas/device/quartz/filters/WKTableTransferFilter.cikernel: Removed.
2181         * kcanvas/device/quartz/filters/WKTableTransferFilter.h: Removed.
2182         * kcanvas/device/quartz/filters/WKTableTransferFilter.m: Removed.
2183         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
2184         (WebCore::SVGComponentTransferFunctionElement::transferFunction):
2185         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
2186         * ksvg2/svg/SVGFEBlendElement.cpp:
2187         (WebCore::SVGFEBlendElement::filterEffect):
2188         * ksvg2/svg/SVGFEBlendElement.h:
2189         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
2190         (WebCore::SVGFEColorMatrixElement::filterEffect):
2191         * ksvg2/svg/SVGFEColorMatrixElement.h:
2192         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
2193         (WebCore::SVGFEComponentTransferElement::filterEffect):
2194         * ksvg2/svg/SVGFEComponentTransferElement.h:
2195         * ksvg2/svg/SVGFECompositeElement.cpp:
2196         (WebCore::SVGFECompositeElement::filterEffect):
2197         * ksvg2/svg/SVGFECompositeElement.h:
2198         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2199         (WebCore::SVGFEDiffuseLightingElement::filterEffect):
2200         (WebCore::SVGFEDiffuseLightingElement::updateLights):
2201         * ksvg2/svg/SVGFEDiffuseLightingElement.h:
2202         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
2203         (WebCore::SVGFEDisplacementMapElement::stringToChannel):
2204         (WebCore::SVGFEDisplacementMapElement::filterEffect):
2205         * ksvg2/svg/SVGFEDisplacementMapElement.h:
2206         * ksvg2/svg/SVGFEDistantLightElement.cpp:
2207         (WebCore::SVGFEDistantLightElement::lightSource):
2208         * ksvg2/svg/SVGFEDistantLightElement.h:
2209         * ksvg2/svg/SVGFEFloodElement.cpp:
2210         (WebCore::SVGFEFloodElement::filterEffect):
2211         * ksvg2/svg/SVGFEFloodElement.h:
2212         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
2213         (WebCore::SVGFEGaussianBlurElement::filterEffect):
2214         * ksvg2/svg/SVGFEGaussianBlurElement.h:
2215         * ksvg2/svg/SVGFEImageElement.cpp:
2216         (WebCore::SVGFEImageElement::filterEffect):
2217         * ksvg2/svg/SVGFEImageElement.h:
2218         * ksvg2/svg/SVGFELightElement.h:
2219         * ksvg2/svg/SVGFEMergeElement.cpp:
2220         (WebCore::SVGFEMergeElement::filterEffect):
2221         * ksvg2/svg/SVGFEMergeElement.h:
2222         * ksvg2/svg/SVGFEOffsetElement.cpp:
2223         (WebCore::SVGFEOffsetElement::filterEffect):
2224         * ksvg2/svg/SVGFEOffsetElement.h:
2225         * ksvg2/svg/SVGFEPointLightElement.cpp:
2226         (WebCore::SVGFEPointLightElement::lightSource):
2227         * ksvg2/svg/SVGFEPointLightElement.h:
2228         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
2229         (WebCore::SVGFESpecularLightingElement::filterEffect):
2230         (WebCore::SVGFESpecularLightingElement::updateLights):
2231         * ksvg2/svg/SVGFESpecularLightingElement.h:
2232         * ksvg2/svg/SVGFESpotLightElement.cpp:
2233         (WebCore::SVGFESpotLightElement::lightSource):
2234         * ksvg2/svg/SVGFESpotLightElement.h:
2235         * ksvg2/svg/SVGFETileElement.cpp:
2236         (WebCore::SVGFETileElement::filterEffect):
2237         * ksvg2/svg/SVGFETileElement.h:
2238         * ksvg2/svg/SVGFETurbulenceElement.cpp:
2239         (WebCore::SVGFETurbulenceElement::filterEffect):
2240         * ksvg2/svg/SVGFETurbulenceElement.h:
2241         (WebCore::):
2242         * ksvg2/svg/SVGFilterElement.cpp:
2243         (WebCore::SVGFilterElement::canvasResource):
2244         * ksvg2/svg/SVGFilterElement.h:
2245         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
2246         (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
2247         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
2248         * platform/graphics/FloatPoint3D.cpp: Added.
2249         (WebCore::FloatPoint3D::FloatPoint3D):
2250         (WebCore::FloatPoint3D::x):
2251         (WebCore::FloatPoint3D::setX):
2252         (WebCore::FloatPoint3D::y):
2253         (WebCore::FloatPoint3D::setY):
2254         (WebCore::FloatPoint3D::z):
2255         (WebCore::FloatPoint3D::setZ):
2256         (WebCore::FloatPoint3D::normalize):
2257         * platform/graphics/FloatPoint3D.h: Added.
2258         * platform/graphics/svg/SVGResourceFilter.cpp: Added.
2259         (WebCore::SVGResourceFilter::clearEffects):
2260         (WebCore::SVGResourceFilter::addFilterEffect):
2261         (WebCore::SVGResourceFilter::filterBBoxForItemBBox):
2262         (WebCore::SVGResourceFilter::externalRepresentation):
2263         (WebCore::getFilterById):
2264         * platform/graphics/svg/SVGResourceFilter.h: Added.
2265         (WebCore::SVGResourceFilter::isFilter):
2266         (WebCore::SVGResourceFilter::filterBoundingBoxMode):
2267         (WebCore::SVGResourceFilter::setFilterBoundingBoxMode):
2268         (WebCore::SVGResourceFilter::effectBoundingBoxMode):
2269         (WebCore::SVGResourceFilter::setEffectBoundingBoxMode):
2270         (WebCore::SVGResourceFilter::filterRect):
2271         (WebCore::SVGResourceFilter::setFilterRect):
2272         * platform/graphics/svg/SVGResourceImage.h:
2273         * platform/graphics/svg/SVGResourceListener.h:
2274         (SVGResourceListener::SVGResourceListener):
2275         (SVGResourceListener::~SVGResourceListener):
2276         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
2277         * platform/graphics/svg/cg/SVGResourceFilterCg.mm: Added.
2278         (WebCore::SVGResourceFilter::SVGResourceFilter):
2279         (WebCore::SVGResourceFilter::~SVGResourceFilter):
2280         (WebCore::SVGResourceFilter::prepareFilter):
2281         (WebCore::SVGResourceFilter::applyFilter):
2282         (WebCore::SVGResourceFilter::getCIFilterStack):
2283         (WebCore::SVGResourceFilter::imageForName):
2284         (WebCore::SVGResourceFilter::setImageForName):
2285         (WebCore::SVGResourceFilter::setOutputImage):
2286         (WebCore::alphaImageForImage):
2287         (WebCore::SVGResourceFilter::inputImage):
2288         * platform/graphics/svg/cg/SVGResourceMaskerCg.h: Removed.
2289         * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
2290         * platform/graphics/svg/filters/SVGDistantLightSource.h: Added.
2291         (WebCore::SVGDistantLightSource::SVGDistantLightSource):
2292         (WebCore::SVGDistantLightSource::azimuth):
2293         (WebCore::SVGDistantLightSource::elevation):
2294         * platform/graphics/svg/filters/SVGFEBlend.cpp: Added.
2295         (WebCore::SVGFEBlend::in2):
2296         (WebCore::SVGFEBlend::setIn2):
2297         (WebCore::SVGFEBlend::blendMode):
2298         (WebCore::SVGFEBlend::setBlendMode):
2299         (WebCore::operator<<):
2300         (WebCore::SVGFEBlend::externalRepresentation):
2301         * platform/graphics/svg/filters/SVGFEBlend.h: Added.
2302         (WebCore::):
2303         * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: Added.
2304         (WebCore::SVGFEColorMatrix::type):
2305         (WebCore::SVGFEColorMatrix::setType):
2306         (WebCore::SVGFEColorMatrix::values):
2307         (WebCore::SVGFEColorMatrix::setValues):
2308         (WebCore::operator<<):
2309         (WebCore::SVGFEColorMatrix::externalRepresentation):
2310         * platform/graphics/svg/filters/SVGFEColorMatrix.h: Added.
2311         (WebCore::):
2312         * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: Added.
2313         (WebCore::SVGFEComponentTransfer::redFunction):
2314         (WebCore::SVGFEComponentTransfer::setRedFunction):
2315         (WebCore::SVGFEComponentTransfer::greenFunction):
2316         (WebCore::SVGFEComponentTransfer::setGreenFunction):
2317         (WebCore::SVGFEComponentTransfer::blueFunction):
2318         (WebCore::SVGFEComponentTransfer::setBlueFunction):
2319         (WebCore::SVGFEComponentTransfer::alphaFunction):
2320         (WebCore::SVGFEComponentTransfer::setAlphaFunction):
2321         (WebCore::operator<<):
2322         (WebCore::SVGFEComponentTransfer::externalRepresentation):
2323         * platform/graphics/svg/filters/SVGFEComponentTransfer.h: Added.
2324         (WebCore::):
2325         (WebCore::SVGComponentTransferFunction::SVGComponentTransferFunction):
2326         * platform/graphics/svg/filters/SVGFEComposite.cpp: Added.
2327         (WebCore::SVGFEComposite::in2):
2328         (WebCore::SVGFEComposite::setIn2):
2329         (WebCore::SVGFEComposite::operation):
2330         (WebCore::SVGFEComposite::setOperation):
2331         (WebCore::SVGFEComposite::k1):
2332         (WebCore::SVGFEComposite::setK1):
2333         (WebCore::SVGFEComposite::k2):
2334         (WebCore::SVGFEComposite::setK2):
2335         (WebCore::SVGFEComposite::k3):
2336         (WebCore::SVGFEComposite::setK3):
2337         (WebCore::SVGFEComposite::k4):
2338         (WebCore::SVGFEComposite::setK4):
2339         (WebCore::SVGFEComposite::externalRepresentation):
2340         * platform/graphics/svg/filters/SVGFEComposite.h: Added.
2341         (WebCore::):
2342         * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: Added.
2343         (WebCore::SVGFEConvolveMatrix::kernelSize):
2344         (WebCore::SVGFEConvolveMatrix::setKernelSize):
2345         (WebCore::SVGFEConvolveMatrix::kernel):
2346         (WebCore::SVGFEConvolveMatrix::setKernel):
2347         (WebCore::SVGFEConvolveMatrix::divisor):
2348         (WebCore::SVGFEConvolveMatrix::setDivisor):
2349         (WebCore::SVGFEConvolveMatrix::bias):
2350         (WebCore::SVGFEConvolveMatrix::setBias):
2351         (WebCore::SVGFEConvolveMatrix::targetOffset):
2352         (WebCore::SVGFEConvolveMatrix::setTargetOffset):
2353         (WebCore::SVGFEConvolveMatrix::edgeMode):
2354         (WebCore::SVGFEConvolveMatrix::setEdgeMode):
2355         (WebCore::SVGFEConvolveMatrix::kernelUnitLength):
2356         (WebCore::SVGFEConvolveMatrix::setKernelUnitLength):
2357         (WebCore::SVGFEConvolveMatrix::preserveAlpha):
2358         (WebCore::SVGFEConvolveMatrix::setPreserveAlpha):
2359         (WebCore::operator<<):
2360         (WebCore::SVGFEConvolveMatrix::externalRepresentation):
2361         * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: Added.
2362         (WebCore::):
2363         * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: Added.
2364         (WebCore::SVGFEDiffuseLighting::SVGFEDiffuseLighting):
2365         (WebCore::SVGFEDiffuseLighting::~SVGFEDiffuseLighting):
2366         (WebCore::SVGFEDiffuseLighting::lightingColor):
2367         (WebCore::SVGFEDiffuseLighting::setLightingColor):
2368         (WebCore::SVGFEDiffuseLighting::surfaceScale):
2369         (WebCore::SVGFEDiffuseLighting::setSurfaceScale):
2370         (WebCore::SVGFEDiffuseLighting::diffuseConstant):
2371         (WebCore::SVGFEDiffuseLighting::setDiffuseConstant):
2372         (WebCore::SVGFEDiffuseLighting::kernelUnitLengthX):
2373         (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthX):
2374         (WebCore::SVGFEDiffuseLighting::kernelUnitLengthY):
2375         (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthY):
2376         (WebCore::SVGFEDiffuseLighting::lightSource):
2377         (WebCore::SVGFEDiffuseLighting::setLightSource):
2378         (WebCore::SVGFEDiffuseLighting::externalRepresentation):
2379         * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: Added.
2380         * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: Added.
2381         (WebCore::SVGFEDisplacementMap::SVGFEDisplacementMap):
2382         (WebCore::SVGFEDisplacementMap::in2):
2383         (WebCore::SVGFEDisplacementMap::setIn2):
2384         (WebCore::SVGFEDisplacementMap::xChannelSelector):
2385         (WebCore::SVGFEDisplacementMap::setXChannelSelector):
2386         (WebCore::SVGFEDisplacementMap::yChannelSelector):
2387         (WebCore::SVGFEDisplacementMap::setYChannelSelector):
2388         (WebCore::SVGFEDisplacementMap::scale):
2389         (WebCore::SVGFEDisplacementMap::setScale):
2390         (WebCore::operator<<):
2391         (WebCore::SVGFEDisplacementMap::externalRepresentation):
2392         * platform/graphics/svg/filters/SVGFEDisplacementMap.h: Added.
2393         (WebCore::):
2394         * platform/graphics/svg/filters/SVGFEFlood.cpp: Added.
2395         (WebCore::SVGFEFlood::floodColor):
2396         (WebCore::SVGFEFlood::setFloodColor):
2397         (WebCore::SVGFEFlood::floodOpacity):
2398         (WebCore::SVGFEFlood::setFloodOpacity):
2399         (WebCore::SVGFEFlood::externalRepresentation):
2400         * platform/graphics/svg/filters/SVGFEFlood.h: Added.
2401         * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: Added.
2402         (WebCore::SVGFEGaussianBlur::stdDeviationX):
2403         (WebCore::SVGFEGaussianBlur::setStdDeviationX):
2404         (WebCore::SVGFEGaussianBlur::stdDeviationY):
2405         (WebCore::SVGFEGaussianBlur::setStdDeviationY):
2406         (WebCore::SVGFEGaussianBlur::externalRepresentation):
2407         * platform/graphics/svg/filters/SVGFEGaussianBlur.h: Added.
2408         * platform/graphics/svg/filters/SVGFEImage.cpp: Added.
2409         (WebCore::SVGFEImage::SVGFEImage):
2410         (WebCore::SVGFEImage::~SVGFEImage):
2411         (WebCore::SVGFEImage::cachedImage):
2412         (WebCore::SVGFEImage::setCachedImage):
2413         (WebCore::SVGFEImage::externalRepresentation):
2414         * platform/graphics/svg/filters/SVGFEImage.h: Added.
2415         * platform/graphics/svg/filters/SVGFEMerge.cpp: Added.
2416         (WebCore::SVGFEMerge::mergeInputs):
2417         (WebCore::SVGFEMerge::setMergeInputs):
2418         (WebCore::SVGFEMerge::externalRepresentation):
2419         * platform/graphics/svg/filters/SVGFEMerge.h: Added.
2420         * platform/graphics/svg/filters/SVGFEMorphology.cpp: Added.
2421         (WebCore::SVGFEMorphology::morphologyOperator):
2422         (WebCore::SVGFEMorphology::setMorphologyOperator):
2423         (WebCore::SVGFEMorphology::radiusX):
2424         (WebCore::SVGFEMorphology::setRadiusX):
2425         (WebCore::SVGFEMorphology::radiusY):
2426         (WebCore::SVGFEMorphology::setRadiusY):
2427         (WebCore::operator<<):
2428         (WebCore::SVGFEMorphology::externalRepresentation):
2429         * platform/graphics/svg/filters/SVGFEMorphology.h: Added.
2430         (WebCore::):
2431         * platform/graphics/svg/filters/SVGFEOffset.cpp: Added.
2432         (WebCore::SVGFEOffset::dx):
2433         (WebCore::SVGFEOffset::setDx):
2434         (WebCore::SVGFEOffset::dy):
2435         (WebCore::SVGFEOffset::setDy):
2436         (WebCore::SVGFEOffset::externalRepresentation):
2437         * platform/graphics/svg/filters/SVGFEOffset.h: Added.
2438         * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: Added.
2439         (WebCore::SVGFESpecularLighting::SVGFESpecularLighting):
2440         (WebCore::SVGFESpecularLighting::~SVGFESpecularLighting):
2441         (WebCore::SVGFESpecularLighting::lightingColor):
2442         (WebCore::SVGFESpecularLighting::setLightingColor):
2443         (WebCore::SVGFESpecularLighting::surfaceScale):
2444         (WebCore::SVGFESpecularLighting::setSurfaceScale):
2445         (WebCore::SVGFESpecularLighting::specularConstant):
2446         (WebCore::SVGFESpecularLighting::setSpecularConstant):
2447         (WebCore::SVGFESpecularLighting::specularExponent):
2448         (WebCore::SVGFESpecularLighting::setSpecularExponent):
2449         (WebCore::SVGFESpecularLighting::kernelUnitLengthX):
2450         (WebCore::SVGFESpecularLighting::setKernelUnitLengthX):
2451         (WebCore::SVGFESpecularLighting::kernelUnitLengthY):
2452         (WebCore::SVGFESpecularLighting::setKernelUnitLengthY):
2453         (WebCore::SVGFESpecularLighting::lightSource):
2454         (WebCore::SVGFESpecularLighting::setLightSource):
2455         (WebCore::SVGFESpecularLighting::externalRepresentation):
2456         * platform/graphics/svg/filters/SVGFESpecularLighting.h: Added.
2457         * platform/graphics/svg/filters/SVGFETile.h: Added.
2458         * platform/graphics/svg/filters/SVGFETurbulence.cpp: Added.
2459         (WebCore::SVGFETurbulence::type):
2460         (WebCore::SVGFETurbulence::setType):
2461         (WebCore::SVGFETurbulence::baseFrequencyY):
2462         (WebCore::SVGFETurbulence::setBaseFrequencyY):
2463         (WebCore::SVGFETurbulence::baseFrequencyX):
2464         (WebCore::SVGFETurbulence::setBaseFrequencyX):
2465         (WebCore::SVGFETurbulence::seed):
2466         (WebCore::SVGFETurbulence::setSeed):
2467         (WebCore::SVGFETurbulence::numOctaves):
2468         (WebCore::SVGFETurbulence::setNumOctaves):
2469         (WebCore::SVGFETurbulence::stitchTiles):
2470         (WebCore::SVGFETurbulence::setStitchTiles):
2471         (WebCore::operator<<):
2472         (WebCore::SVGFETurbulence::externalRepresentation):
2473         * platform/graphics/svg/filters/SVGFETurbulence.h: Added.
2474         (WebCore::):
2475         * platform/graphics/svg/filters/SVGFilterEffect.cpp: Added.
2476         (WebCore::SVGFilterEffect::subRegion):
2477         (WebCore::SVGFilterEffect::setSubRegion):
2478         (WebCore::SVGFilterEffect::in):
2479         (WebCore::SVGFilterEffect::setIn):
2480         (WebCore::SVGFilterEffect::result):
2481         (WebCore::SVGFilterEffect::setResult):
2482         (WebCore::SVGFilterEffect::externalRepresentation):
2483         (WebCore::operator<<):
2484         * platform/graphics/svg/filters/SVGFilterEffect.h: Added.
2485         (WebCore::):
2486         (WebCore::SVGFilterEffect::SVGFilterEffect):
2487         (WebCore::SVGFilterEffect::~SVGFilterEffect):
2488         (WebCore::SVGFilterEffect::effectType):
2489         * platform/graphics/svg/filters/SVGLightSource.cpp: Added.
2490         (WebCore::operator<<):
2491         (WebCore::SVGPointLightSource::externalRepresentation):
2492         (WebCore::SVGSpotLightSource::externalRepresentation):
2493         (WebCore::SVGDistantLightSource::externalRepresentation):
2494         * platform/graphics/svg/filters/SVGLightSource.h: Added.
2495         (WebCore::):
2496         (WebCore::SVGLightSource::SVGLightSource):
2497         (WebCore::SVGLightSource::~SVGLightSource):
2498         (WebCore::SVGLightSource::type):
2499         * platform/graphics/svg/filters/SVGPointLightSource.h: Added.
2500         (WebCore::SVGPointLightSource::SVGPointLightSource):
2501         (WebCore::SVGPointLightSource::position):
2502         * platform/graphics/svg/filters/SVGSpotLightSource.h: Added.
2503         (WebCore::SVGSpotLightSource::SVGSpotLightSource):
2504         (WebCore::SVGSpotLightSource::position):
2505         (WebCore::SVGSpotLightSource::direction):
2506         (WebCore::SVGSpotLightSource::specularExponent):
2507         (WebCore::SVGSpotLightSource::limitingConeAngle):
2508         * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: Added.
2509         (WebCore::SVGFEBlend::getCIFilter):
2510         * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: Added.
2511         (WebCore::SVGFEColorMatrix::getCIFilter):
2512         * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: Added.
2513         (WebCore::genImageFromTable):
2514         (WebCore::setParametersForComponentFunc):
2515         (WebCore::filterForComponentFunc):
2516         (WebCore::getFilterForFunc):
2517         (WebCore::SVGFEComponentTransfer::getFunctionFilter):
2518         (WebCore::SVGFEComponentTransfer::getCIFilter):
2519         * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: Added.
2520         (WebCore::SVGFEComposite::getCIFilter):
2521         * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: Added.
2522         (WebCore::SVGFEDiffuseLighting::getCIFilter):
2523         * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: Added.
2524         (WebCore::SVGFEDisplacementMap::getCIFilter):
2525         * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: Added.
2526         (WebCore::SVGFEFlood::getCIFilter):
2527         * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: Added.
2528         (WebCore::SVGFEGaussianBlur::getCIFilter):
2529         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: Added.
2530         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: Added.
2531         (WebCore::getVectorForChannel):
2532         (WebCore::ciColor):
2533         (WebCore::getPointLightVectors):
2534         (WebCore::getLightVectors):
2535         (WebCore::getNormalMap):
2536         * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: Added.
2537         (WebCore::SVGFEImage::getCIFilter):
2538         * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: Added.
2539         (WebCore::SVGFEMerge::getCIFilter):
2540         * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: Added.
2541         (WebCore::SVGFEOffset::getCIFilter):
2542         * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: Added.
2543         (WebCore::SVGFESpecularLighting::getCIFilter):
2544         * platform/graphics/svg/filters/cg/SVGFETileCg.mm: Added.
2545         (WebCore::SVGFETile::getCIFilter):
2546         * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: Added.
2547         (WebCore::SVGFilterEffect::getCIFilter):
2548         * rendering/RenderPath.cpp:
2549         (WebCore::RenderPath::getAbsoluteRepaintRect):
2550         (WebCore::RenderPath::paint):
2551         * rendering/RenderSVGContainer.cpp:
2552         (WebCore::RenderSVGContainer::paint):
2553         (WebCore::RenderSVGContainer::getAbsoluteRepaintRect):
2554         * rendering/RenderSVGImage.cpp:
2555         (WebCore::RenderSVGImage::paint):
2556         (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
2557         * rendering/SVGInlineFlowBox.cpp:
2558         (WebCore::paintSVGInlineFlow):
2559
2560 2006-11-18  Rob Buis  <buis@kde.org>
2561
2562         Reviewed by Maciej.
2563
2564         http://bugs.webkit.org/show_bug.cgi?id=11321
2565         Element with :target pseudo-class still matched after fragment identifier change
2566
2567         Make sure the page does a style recalculation and possible rendering
2568         when navigating back from a page with an anchor to a page without
2569         an anchor.
2570
2571         * loader/FrameLoader.cpp:
2572         (WebCore::FrameLoader::gotoAnchor):
2573
2574 2006-11-18  Don Gibson  <dgibson77@gmail.com>
2575
2576         Reviewed by Sam Weinig.
2577
2578         http://bugs.webkit.org/show_bug.cgi?id=11634:
2579         Fix segfault on startup for Windows build.  Also fix segfault when
2580         typing in a URL.
2581         Clean up some of the style of the patch that landed in r17816.
2582
2583         * WebCore.vcproj/WebCore/WebCore.vcproj:
2584         * bridge/win/ChromeClientWin.h:
2585         (WebCore::ChromeClientWin::~ChromeClientWin):
2586         (WebCore::ChromeClientWin::ref):
2587         (WebCore::ChromeClientWin::deref):
2588         * bridge/win/ContextMenuClientWin.h:
2589         (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
2590         (WebCore::ContextMenuClientWin::ref):
2591         (WebCore::ContextMenuClientWin::deref):
2592         * bridge/win/EditorClientWin.h:
2593         (WebCore::EditorClientWin::~EditorClientWin):
2594         (WebCore::EditorClientWin::ref):
2595         (WebCore::EditorClientWin::deref):
2596         * bridge/win/FrameWin.cpp:
2597         (WebCore::FrameWin::FrameWin):
2598         * bridge/win/FrameWin.h:
2599         (WebCore::Win):
2600         * loader/win/FrameLoaderClientWin.h: Added.
2601         (WebCore::FrameLoaderClientWin::~FrameLoaderClientWin):
2602         (WebCore::FrameLoaderClientWin::ref):
2603         (WebCore::FrameLoaderClientWin::deref):
2604         * platform/win/TemporaryLinkStubs.cpp:
2605         (WebCore::ChromeClientWin::createWindow):
2606         (WebCore::ChromeClientWin::createModalDialog):
2607         (WebCore::EditorClientWin::selectWordBeforeMenuEvent):
2608         (WebCore::EditorClientWin::isEditable):
2609         (WebCore::EditorClientWin::shouldBeginEditing):
2610         (WebCore::EditorClientWin::shouldEndEditing):
2611         (WebCore::EditorClientWin::shouldApplyStyle):
2612         (WebCore::EditorClientWin::didBeginEditing):
2613         (WebCore::EditorClientWin::respondToChangedContents):
2614         (WebCore::EditorClientWin::didEndEditing):
2615         (WebCore::EditorClientWin::registerCommandForUndo):
2616         (WebCore::EditorClientWin::registerCommandForRedo):
2617         (WebCore::EditorClientWin::clearUndoRedoOperations):
2618         (WebCore::EditorClientWin::canUndo):
2619         (WebCore::EditorClientWin::canRedo):
2620         (WebCore::EditorClientWin::undo):
2621         (WebCore::EditorClientWin::redo):
2622         (WebCore::FrameLoader::createFrame):
2623         (WebCore::FrameLoader::createPlugin):
2624         (WebCore::FrameLoaderClientWin::hasWebView):
2625         (WebCore::FrameLoaderClientWin::hasFrameView):
2626         (WebCore::FrameLoaderClientWin::hasBackForwardList):
2627         (WebCore::FrameLoaderClientWin::resetBackForwardList):
2628         (WebCore::FrameLoaderClientWin::provisionalItemIsTarget):
2629         (WebCore::FrameLoaderClientWin::loadProvisionalItemFromPageCache):
2630         (WebCore::FrameLoaderClientWin::invalidateCurrentItemPageCache):
2631         (WebCore::FrameLoaderClientWin::privateBrowsingEnabled):
2632         (WebCore::FrameLoaderClientWin::makeDocumentView):
2633         (WebCore::FrameLoaderClientWin::makeRepresentation):
2634         (WebCore::FrameLoaderClientWin::forceLayout):
2635         (WebCore::FrameLoaderClientWin::forceLayoutForNonHTML):
2636         (WebCore::FrameLoaderClientWin::updateHistoryForCommit):
2637         (WebCore::FrameLoaderClientWin::updateHistoryForBackForwardNavigation):
2638         (WebCore::FrameLoaderClientWin::updateHistoryForReload):
2639         (WebCore::FrameLoaderClientWin::updateHistoryForStandardLoad):
2640         (WebCore::FrameLoaderClientWin::updateHistoryForInternalLoad):
2641         (WebCore::FrameLoaderClientWin::updateHistoryAfterClientRedirect):
2642         (WebCore::FrameLoaderClientWin::setCopiesOnScroll):
2643         (WebCore::FrameLoaderClientWin::tokenForLoadErrorReset):
2644         (WebCore::FrameLoaderClientWin::resetAfterLoadError):
2645         (WebCore::FrameLoaderClientWin::doNotResetAfterLoadError):
2646         (WebCore::FrameLoaderClientWin::willCloseDocument):
2647         (WebCore::FrameLoaderClientWin::detachedFromParent1):
2648         (WebCore::FrameLoaderClientWin::detachedFromParent2):
2649         (WebCore::FrameLoaderClientWin::detachedFromParent3):
2650         (WebCore::FrameLoaderClientWin::detachedFromParent4):
2651         (WebCore::FrameLoaderClientWin::loadedFromPageCache):
2652         (WebCore::FrameLoaderClientWin::dispatchDidHandleOnloadEvents):
2653         (WebCore::FrameLoaderClientWin::dispatchDidReceiveServerRedirectForProvisionalLoad):
2654         (WebCore::FrameLoaderClientWin::dispatchDidCancelClientRedirect):
2655         (WebCore::FrameLoaderClientWin::dispatchWillPerformClientRedirect):
2656         (WebCore::FrameLoaderClientWin::dispatchDidChangeLocationWithinPage):
2657         (WebCore::FrameLoaderClientWin::dispatchWillClose):
2658         (WebCore::FrameLoaderClientWin::dispatchDidReceiveIcon):
2659         (WebCore::FrameLoaderClientWin::dispatchDidStartProvisionalLoad):
2660         (WebCore::FrameLoaderClientWin::dispatchDidReceiveTitle):
2661         (WebCore::FrameLoaderClientWin::dispatchDidCommitLoad):
2662         (WebCore::FrameLoaderClientWin::dispatchDidFinishLoad):
2663         (WebCore::FrameLoaderClientWin::dispatchDidFirstLayout):
2664         (WebCore::FrameLoaderClientWin::dispatchShow):
2665         (WebCore::FrameLoaderClientWin::cancelPolicyCheck):
2666         (WebCore::FrameLoaderClientWin::dispatchWillSubmitForm):
2667         (WebCore::FrameLoaderClientWin::dispatchDidLoadMainResource):
2668         (WebCore::FrameLoaderClientWin::clearLoadingFromPageCache):
2669         (WebCore::FrameLoaderClientWin::isLoadingFromPageCache):
2670         (WebCore::FrameLoaderClientWin::revertToProvisionalState):
2671         (WebCore::FrameLoaderClientWin::clearUnarchivingState):
2672         (WebCore::FrameLoaderClientWin::progressStarted):
2673         (WebCore::FrameLoaderClientWin::progressCompleted):
2674         (WebCore::FrameLoaderClientWin::setMainFrameDocumentReady):
2675         (WebCore::FrameLoaderClientWin::willChangeTitle):
2676         (WebCore::FrameLoaderClientWin::didChangeTitle):
2677         (WebCore::FrameLoaderClientWin::finishedLoading):
2678         (WebCore::FrameLoaderClientWin::finalSetupForReplace):
2679         (WebCore::FrameLoaderClientWin::setDefersLoading):
2680         (WebCore::FrameLoaderClientWin::isArchiveLoadPending):
2681         (WebCore::FrameLoaderClientWin::cancelPendingArchiveLoad):
2682         (WebCore::FrameLoaderClientWin::clearArchivedResources):
2683         (WebCore::FrameLoaderClientWin::canShowMIMEType):
2684         (WebCore::FrameLoaderClientWin::representationExistsForURLScheme):
2685         (WebCore::FrameLoaderClientWin::generatedMIMETypeForURLScheme):
2686         (WebCore::FrameLoaderClientWin::frameLoadCompleted):
2687         (WebCore::FrameLoaderClientWin::restoreScrollPositionAndViewState):
2688         (WebCore::FrameLoaderClientWin::provisionalLoadStarted):
2689         (WebCore::FrameLoaderClientWin::shouldTreatURLAsSameAsCurrent):
2690         (WebCore::FrameLoaderClientWin::addHistoryItemForFragmentScroll):
2691         (WebCore::FrameLoaderClientWin::didFinishLoad):
2692         (WebCore::FrameLoaderClientWin::prepareForDataSourceReplacement):
2693         (WebCore::FrameLoaderClientWin::setTitle):
2694         (WebCore::FrameLoaderClientWin::userAgent):
2695
2696 2006-11-18  Alexey Proskuryakov  <ap@webkit.org>
2697
2698         Reviewed by Rob (yay!).
2699
2700         http://bugs.webkit.org/show_bug.cgi?id=11640
2701         XMLHttpRequest produces undefined:undefined HTTP authentication
2702
2703         * bindings/js/JSXMLHttpRequest.cpp:
2704         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
2705         Treat undefined credentials as missing ones.
2706
2707 2006-11-17  Lars Naesbye Christensen  <larsnaesbye@stud.ku.dk>
2708
2709         Reviewed by Tim H.
2710
2711         http://bugs.webkit.org/show_bug.cgi?id=11638
2712         [CSS 2.1+3] add support for alias, progress, no-drop and not-allowed cursor styles
2713
2714         * Resources/aliasCursor.png: Added.
2715         * Resources/noDropCursor.png: Added.
2716         * Resources/progressCursor.png: Added.
2717         * WebCore.xcodeproj/project.pbxproj:
2718         * css/CSSComputedStyleDeclaration.cpp:
2719         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2720         * css/CSSValueKeywords.in:
2721         * manual-tests/cursor.html:
2722         * page/EventHandler.cpp:
2723         (WebCore::selectCursor):
2724         * platform/Cursor.h:
2725         * platform/mac/CursorMac.mm:
2726         (WebCore::handCursor):
2727         (WebCore::aliasCursor):
2728         (WebCore::progressCursor):
2729         (WebCore::noDropCursor):
2730         * rendering/RenderStyle.h:
2731         (WebCore::):
2732
2733 2006-11-18  Steve Falkenburg  <sfalken@apple.com>
2734
2735         Reviewed by Adam.
2736
2737         Properly adjust CFAbsoluteTime to time_t to fix date calculations.
2738         
2739         Compare lastModified w/ MAX_TIME_T when setting last modified date
2740         instead of comparing expiration against MAX_TIME_T.
2741
2742         * platform/network/cf/ResourceResponseCFNet.cpp:
2743         (WebCore::getResourceResponse): Add kCFAbsoluteTimeIntervalSince1970 in assignment
2744
2745 2006-11-17  Anders Carlsson  <acarlsson@apple.com>
2746
2747         Reviewed by Geoff.
2748
2749         More conversions from DeprecatedValueList to Vector and HashSet.
2750         
2751         * css/CSSValueList.cpp:
2752         (WebCore::CSSValueList::~CSSValueList):
2753         (WebCore::CSSValueList::append):
2754         (WebCore::CSSValueList::cssText):
2755         * css/CSSValueList.h:
2756         (WebCore::CSSValueList::length):
2757         (WebCore::CSSValueList::item):
2758         * dom/Document.cpp:
2759         (WebCore::Document::attachNodeIterator):
2760         (WebCore::Document::notifyBeforeNodeRemoval):
2761         * dom/Document.h:
2762         * ksvg2/svg/SVGGradientElement.cpp:
2763         (WebCore::SVGGradientElement::notifyAttributeChange):
2764         * ksvg2/svg/SVGPatternElement.cpp:
2765         (WebCore::SVGPatternElement::notifyClientsToRepaint):
2766         * platform/graphics/svg/SVGResource.cpp:
2767         (WebCore::SVGResource::invalidate):
2768         (WebCore::SVGResource::addClient):
2769         * platform/graphics/svg/SVGResource.h:
2770         * rendering/RenderBlock.h:
2771
2772 === Safari-521.31 ===
2773
2774 2006-11-17  Timothy Hatcher  <timothy@apple.com>
2775
2776         Reviewed by Harrison.
2777
2778         <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
2779
2780         Disable the delete button controller when cloning nodes, Mail does this before saving a draft.
2781
2782         * dom/ContainerNode.cpp:
2783         (WebCore::ContainerNode::cloneChildNodes):
2784         * editing/markup.cpp:
2785         (WebCore::createFragmentFromNodes):
2786
2787 2006-11-17  Justin Garcia  <justin.garcia@apple.com>
2788
2789         Reviewed by harrison
2790         
2791         <rdar://problem/4237467> REGRESSION: Pasting word from quoted text quotes the destination
2792         <rdar://problem/4017358> quoted text is wrong color, when pasted as quotation
2793
2794         * editing/ReplaceSelectionCommand.cpp:
2795         (WebCore::isMailPasteAsQuotationNode): Added.  Checks for the node
2796         that Mail wraps around an incoming fragment when it wants it to be pasted
2797         with quoting (no merging should be done).
2798         (WebCore::ReplaceSelectionCommand::removeNodePreservingChildren): Added
2799         this virtual method in order to adjust the nodes that ReplaceSelectionCommand
2800         tracks.
2801         (WebCore::ReplaceSelectionCommand::shouldMerge): Don't merge from content
2802         inside a Mail Paste as Quotation node.  Allow merging from Mail blockquotes.
2803         (WebCore::ReplaceSelectionCommand::removeRedundantStyles): When pasting into
2804         a Mail blockquote, we ignore the parts of the source document's default style
2805         that are overriden by styles from the Mail blockquote.  This is necessary in order
2806         for text that's black (because black is the source document's default font color) 
2807         to appear blue/green/whatever when it's pasted into a Mail blockquote.
2808         (WebCore::ReplaceSelectionCommand::handlePasteAsQuotationNode): Turn an inserted
2809         Mail Paste as Quotation node into a normal Mail blockquote.  This will prevent
2810         a copied blockquote that was inserted into the document using Paste as Quotation
2811         from triggering Paste as Quotation behavior when it's pasted.
2812         (WebCore::ReplaceSelectionCommand::doApply): Call the new/altered methods.
2813         * editing/ReplaceSelectionCommand.h:
2814         * editing/markup.cpp:
2815         (WebCore::styleFromMatchedRulesForElement): Put this code into a subroutine.
2816         (WebCore::removeEnclosingMailBlockquoteStyle): Added.
2817         (WebCore::startMarkup): When wrapping text nodes in style spans, leave out
2818         styles that Mail blockquotes contribute, so that Mail blockquote styles can
2819         be differentiated from styles that the user has applied.  When creating markup
2820         for elements, do the same thing.
2821         (WebCore::createMarkup): Call the new subroutine.
2822
2823 2006-11-17  Rob Buis  <buis@kde.org>
2824
2825         Reviewed by Mitz.
2826
2827         http://bugs.webkit.org/show_bug.cgi?id=11635
2828         Bug 11635: Fix potential issue with non-xslt build
2829
2830         Fix the issue and do style guideline corrections.
2831
2832         * dom/ProcessingInstruction.cpp:
2833         (WebCore::ProcessingInstruction::checkStyleSheet):
2834         (WebCore::ProcessingInstruction::sheetLoaded):
2835         (WebCore::ProcessingInstruction::setCSSStyleSheet):
2836         (WebCore::ProcessingInstruction::setXSLStyleSheet):
2837         (WebCore::ProcessingInstruction::parseStyleSheet):
2838
2839 2006-11-17  Timothy Hatcher  <timothy@apple.com>
2840
2841         Reviewed by Harrison.
2842
2843         <rdar://problem/4843131> text entry is slow inside element that has the deletion rectangle around it
2844
2845         Only disable/enable the delete button inside applyCommand() to prevent slowing down typing.
2846         This reintroduces <rdar://problem/4796657> table deletion outline does not always follow the table size as editing occurs inside
2847
2848         * editing/EditCommand.cpp:
2849         (WebCore::EditCommand::apply):
2850         (WebCore::EditCommand::unapply):
2851         (WebCore::EditCommand::reapply):
2852         (WebCore::applyCommand):
2853         * editing/EditCommand.h:
2854
2855 2006-11-17  Zack Rusin  <zack@kde.org>
2856
2857         Reviewed by Mitz. Landed by Niko.
2858
2859         Making platform Qt/KDE compile and work after
2860         the latest api changes. Reported as
2861         http://bugs.webkit.org/show_bug.cgi?id=11617
2862
2863         * CMakeLists.txt:
2864         * page/qt/EventHandlerQt.cpp: Added.
2865         (WebCore::isKeyboardOptionTab):
2866         (WebCore::EventHandler::tabsToLinks):
2867         (WebCore::EventHandler::tabsToAllControls):
2868         (WebCore::EventHandler::freeClipboard):
2869         (WebCore::EventHandler::focusDocumentView):
2870         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
2871         (WebCore::EventHandler::passMouseDownEventToWidget):
2872         (WebCore::EventHandler::lastEventIsMouseUp):
2873         (WebCore::EventHandler::dragHysteresisExceeded):
2874         (WebCore::EventHandler::handleDrag):
2875         (WebCore::EventHandler::handleMouseUp):
2876         (WebCore::EventHandler::passSubframeEventToSubframe):
2877         (WebCore::EventHandler::passWheelEventToWidget):
2878         (WebCore::EventHandler::shouldDragAutoNode):
2879         (WebCore::EventHandler::dispatchDragSrcEvent):
2880         (WebCore::EventHandler::passMousePressEventToSubframe):
2881         (WebCore::EventHandler::passMouseMoveEventToSubframe):
2882         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
2883         (WebCore::EventHandler::passWheelEventToSubframe):
2884         (WebCore::EventHandler::passMousePressEventToScrollbar):
2885         * platform/ContextMenu.h:
2886         * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
2887         (WebCore::SVGResourceClipper::applyClip):
2888         * platform/qt/ContextMenuClientQt.cpp: Added.
2889         (WebCore::ContextMenuClientQt::addCustomContextMenuItems):
2890         (WebCore::ContextMenuClientQt::ref):
2891         (WebCore::ContextMenuClientQt::deref):
2892         * platform/qt/ContextMenuClientQt.h: Added.
2893         * platform/qt/ContextMenuQt.cpp: Added.
2894         (WebCore::ContextMenu::appendItem):
2895         (WebCore::ContextMenu::itemCount):
2896         (WebCore::ContextMenu::insertItem):
2897         (WebCore::ContextMenu::setPlatformMenuDescription):
2898         * platform/qt/EditorClientQt.cpp:
2899         (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
2900         (WebCore::EditorClientQt::isEditable):
2901         (WebCore::EditorClientQt::registerCommandForUndo):
2902         (WebCore::EditorClientQt::registerCommandForRedo):
2903         (WebCore::EditorClientQt::clearUndoRedoOperations):
2904         (WebCore::EditorClientQt::canUndo):
2905         (WebCore::EditorClientQt::canRedo):
2906         (WebCore::EditorClientQt::undo):
2907         (WebCore::EditorClientQt::redo):
2908         * platform/qt/EditorClientQt.h:
2909         * platform/qt/ScrollViewCanvasQt.cpp:
2910         (WebCore::ScrollViewCanvasQt::mousePressEvent):
2911         * platform/qt/TemporaryLinkStubs.cpp:
2912         (FrameView::updateBorder):
2913
2914 2006-11-17  David Harrison  <harrison@apple.com>
2915
2916         Reviewed by Adele.
2917
2918         <rdar://problem/4799899> Frame::revealSelection() only scrolls the startContainer's layer
2919
2920         Replace an assert with a fixme that refers to this bug.
2921         
2922         * page/Frame.cpp:
2923         (WebCore::Frame::revealSelection):
2924
2925 2006-11-16  Rob Buis  <buis@kde.org>
2926
2927         Reviewed and landed by Brady
2928
2929         Fixes http://bugs.webkit.org/show_bug.cgi?id=11590 -
2930         REGRESSION (r17726-r17742): Wikipedia page intermittently loads but doesn't render
2931         Fix the regression by setting m_loadCompleted correctly.
2932
2933         * css/CSSStyleSheet.cpp:
2934         (WebCore::CSSStyleSheet::checkLoaded):
2935         * dom/Node.h:
2936         (WebCore::Node::sheetLoaded):
2937         * dom/ProcessingInstruction.cpp:
2938         (WebCore::ProcessingInstruction::sheetLoaded):
2939         * dom/ProcessingInstruction.h:
2940         * html/HTMLLinkElement.cpp:
2941         (WebCore::HTMLLinkElement::sheetLoaded):
2942         * html/HTMLLinkElement.h:
2943         * html/HTMLStyleElement.cpp:
2944         (WebCore::HTMLStyleElement::sheetLoaded):
2945         * html/HTMLStyleElement.h:
2946
2947 2006-11-16  David Harrison  <harrison@apple.com>
2948
2949         Reviewed by Beth.
2950
2951         <rdar://problem/4056100> REGRESSION (Tiger): Deleting top part of reply email leaves fails to clear text at end of message
2952
2953         The problem was triggered by the fact that the parent div was changing both
2954         in position and in height. The renderer normally bifurcates its logic for
2955         x-position changes vs height changes.
2956
2957         Call repaintDuringLayoutIfMoved() with old rect (incl. width and height) instead of just the old position.
2958
2959         Test added:
2960         * manual-tests/delete-into-nested-block.html
2961         
2962         * rendering/RenderBlock.cpp:
2963         (WebCore::RenderBlock::layoutBlockChildren):
2964         (WebCore::RenderBlock::positionNewFloats):
2965         * rendering/RenderBox.cpp:
2966         (WebCore::RenderBox::repaintDuringLayoutIfMoved):
2967         * rendering/RenderBox.h:
2968         * rendering/RenderFlexibleBox.cpp:
2969         (WebCore::RenderFlexibleBox::placeChild):
2970         * rendering/RenderObject.cpp:
2971         (WebCore::RenderObject::repaintDuringLayoutIfMoved):
2972         * rendering/RenderObject.h:
2973         * rendering/RenderTableSection.cpp:
2974         (WebCore::RenderTableSection::layoutRows):
2975
2976 2006-11-16  Adele Peterson  <adele@apple.com>
2977
2978         Reviewed by Adam.
2979
2980         Slider cleanup.  Let the theme set the size of the slider thumb.
2981
2982         * rendering/RenderSlider.cpp:
2983         (WebCore::RenderSlider::setStyle): Moving the thumb's appearance adjustment to createThumbStyle.
2984         (WebCore::RenderSlider::createThumbStyle):
2985         (WebCore::RenderSlider::layout): Let the theme set the size of the thumb.
2986         * rendering/RenderTheme.cpp: (WebCore::RenderTheme::adjustSliderThumbSize):  Added.
2987         * rendering/RenderTheme.h: ditto.
2988         * rendering/RenderThemeMac.h: ditto.
2989         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::adjustSliderThumbSize): ditto.
2990
2991 2006-11-15  Anders Carlsson  <acarlsson@apple.com>
2992
2993         Reviewed by Darin.
2994
2995         Use Vector instead of DeprecatedValueList in a few places.
2996         
2997         * bindings/js/kjs_dom.cpp:
2998         (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
2999         (KJS::DOMNamedNodesCollection::lengthGetter):
3000         (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
3001         * bindings/js/kjs_dom.h:
3002         * bindings/js/kjs_html.cpp:
3003         (KJS::JSHTMLDocument::namedItemGetter):
3004         (KJS::JSHTMLElement::classInfo):
3005         (KJS::JSHTMLElement::accessors):
3006         (KJS::JSHTMLCollection::getNamedItems):
3007         * bindings/objc/DOM.mm:
3008         * bridge/mac/FrameMac.mm:
3009         (WebCore::FrameMac::dashboardRegionsDictionary):
3010         * css/CSSStyleDeclaration.cpp:
3011         (WebCore::CSSStyleDeclaration::diff):
3012         * html/HTMLCollection.cpp:
3013         (WebCore::HTMLCollection::namedItems):
3014         * html/HTMLCollection.h:
3015         * kcanvas/KCanvasFilters.cpp:
3016         (WebCore::KCanvasFilter::externalRepresentation):
3017         * kcanvas/KCanvasFilters.h:
3018         (WebCore::KCanvasFEColorMatrix::values):
3019         (WebCore::KCanvasFEColorMatrix::setValues):
3020         (WebCore::KCanvasFEConvolveMatrix::kernel):
3021         (WebCore::KCanvasFEConvolveMatrix::setKernel):
3022         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
3023         (WebCore::KCanvasFilterQuartz::getCIFilterStack):
3024         (WebCore::KCanvasFEColorMatrixQuartz::getCIFilter):
3025         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
3026         (WebCore::SVGFEColorMatrixElement::filterEffect):
3027         * platform/graphics/svg/SVGResourceClipper.h:
3028         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
3029         (WebCore::SVGResourceClipper::applyClip):
3030         * platform/network/FormData.h:
3031         * rendering/RenderPath.h:
3032         * rendering/SVGRenderTreeAsText.h:
3033         (WebCore::operator<<):
3034
3035 2006-11-16  Anders Carlsson  <acarlsson@apple.com>
3036
3037         Reviewed by Tim.
3038
3039         * editing/markup.cpp:
3040         (WebCore::createMarkup):
3041         Add null-checks for the frame, it might not exist for all documents.
3042         
3043 2006-11-16  Don Gibson  <dgibson77@gmail.com>
3044
3045         Reviewed and landed by ap.
3046
3047         http://bugs.webkit.org/show_bug.cgi?id=11509:
3048         Windows build bustage.
3049
3050         Also reorganizes WebCore.vcproj to add files whose absence wasn't
3051         causing compile errors, but which should have been there, and to
3052         make the include directory ordering (and contents) sane.
3053         Also reorganizes TemporaryLinkStubs.cpp to put headers and
3054         function groups in alphabetical order, and ensure that all functions
3055         in the file call notImplemented().
3056
3057         * WebCore.vcproj/WebCore/WebCore.vcproj:
3058         * bridge/win/ChromeClientWin.h:
3059         (WebCore::ChromeClientWin::ref):
3060         (WebCore::ChromeClientWin::deref):
3061         * bridge/win/ContextMenuClientWin.h: Added.
3062         (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
3063         (WebCore::ContextMenuClientWin::ref):
3064         (WebCore::ContextMenuClientWin::deref):
3065         * bridge/win/EditorClientWin.h:
3066         * bridge/win/FrameWin.cpp:
3067         (WebCore::FrameWin::~FrameWin):
3068         (WebCore::FrameWin::keyPress):
3069         * bridge/win/FrameWin.h:
3070         * bridge/win/PageWin.cpp: Removed.
3071         * editing/EditCommand.h:
3072         * loader/FormState.h:
3073         * loader/FrameLoader.h:
3074         * page/EventHandler.cpp:
3075         * platform/MimeTypeRegistry.cpp:
3076         (WebCore::initialiseSupportedImageMIMETypes):
3077         * platform/graphics/win/ImageWin.cpp:
3078         * platform/network/ResourceError.cpp:
3079         * platform/network/ResourceHandleInternal.h:
3080         * platform/network/win/ResourceHandleWin.cpp:
3081         (WebCore::ResourceHandle::onHandleCreated):
3082         (WebCore::ResourceHandle::onRequestRedirected):
3083         (WebCore::ResourceHandle::start):
3084         (WebCore::ResourceHandle::cancel):
3085         * platform/win/ScreenWin.cpp:
3086         (WebCore::monitorInfo):
3087         (WebCore::screenRect):
3088         (WebCore::screenAvailableRect):
3089         (WebCore::screenDepth):
3090         * platform/win/SoundWin.cpp: Added.
3091         (WebCore::systemBeep):
3092         * platform/win/TemporaryLinkStubs.cpp:
3093         (WebCore::CacheObjectExpiresTime):
3094         (WebCore::CheckCacheObjectStatus):
3095         (WebCore::CheckIfReloading):
3096         (WebCore::defaultLanguage):
3097         (WebCore::fileButtonChooseFileLabel):
3098         (WebCore::fileButtonNoFileSelectedLabel):
3099         (WebCore::findNextSentenceFromIndex):
3100         (WebCore::findNextWordFromIndex):
3101         (WebCore::findSentenceBoundary):
3102         (WebCore::findWordBoundary):
3103         (WebCore::focusRingColor):
3104         (WebCore::historyContains):
3105         (WebCore::inputElementAltText):
3106         (WebCore::IsResponseURLEqualToURL):
3107         (WebCore::cellCursor):
3108         (WebCore::contextMenuCursor):
3109         (WebCore::moveCursor):
3110         (WebCore::verticalTextCursor):
3111         (WebCore::refreshPlugins):
3112         (WebCore::resetButtonDefaultLabel):
3113         (WebCore::ResponseIsMultipart):
3114         (WebCore::ResponseMIMEType):
3115         (WebCore::ResponseURL):
3116         (WebCore::screenDepthPerComponent):
3117         (WebCore::screenIsMonochrome):
3118         (WebCore::searchableIndexIntroduction):
3119         (WebCore::ServeSynchronousRequest):
3120         (WebCore::setFocusRingColorChangeFunction):
3121         (WebCore::submitButtonDefaultLabel):
3122         (WebCore::CachedResource::setPlatformResponse):
3123         (WebCore::CachedResource::setAllData):
3124         (WebCore::ChromeClientWin::setWindowRect):
3125         (WebCore::ChromeClientWin::windowRect):
3126         (WebCore::ChromeClientWin::pageRect):
3127         (WebCore::ChromeClientWin::scaleFactor):
3128         (WebCore::ChromeClientWin::focus):
3129         (WebCore::ChromeClientWin::unfocus):
3130         (WebCore::ChromeClientWin::createWindow):
3131         (WebCore::ChromeClientWin::createModalDialog):
3132         (WebCore::ChromeClientWin::show):
3133         (WebCore::ChromeClientWin::canRunModal):
3134         (WebCore::ChromeClientWin::runModal):
3135         (WebCore::ChromeClientWin::setToolbarsVisible):
3136         (WebCore::ChromeClientWin::toolbarsVisible):
3137         (WebCore::ChromeClientWin::setStatusbarVisible):
3138         (WebCore::ChromeClientWin::statusbarVisible):
3139         (WebCore::ChromeClientWin::setScrollbarsVisible):
3140         (WebCore::ChromeClientWin::scrollbarsVisible):
3141         (WebCore::ChromeClientWin::setMenubarVisible):
3142         (WebCore::ChromeClientWin::menubarVisible):
3143         (WebCore::ChromeClientWin::setResizable):
3144         (WebCore::ContextMenu::appendItem):
3145         (WebCore::ContextMenuClientWin::addCustomContextMenuItems):
3146         (WebCore::DocumentLoader::setFrame):
3147         (WebCore::DocumentLoader::frameLoader):
3148         (WebCore::DocumentLoader::URL):
3149         (WebCore::DocumentLoader::isStopping):
3150         (WebCore::DocumentLoader::stopLoading):
3151         (WebCore::DocumentLoader::setLoading):
3152         (WebCore::DocumentLoader::updateLoading):
3153         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
3154         (WebCore::DocumentLoader::isLoadingInAPISense):
3155         (WebCore::DocumentLoader::stopRecordingResponses):
3156         (WebCore::EditorClientWin::shouldDeleteRange):
3157         (WebCore::EditorClientWin::shouldShowDeleteInterface):
3158         (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
3159         (WebCore::EditorClientWin::isGrammarCheckingEnabled):
3160         (WebCore::EditorClientWin::spellCheckerDocumentTag):
3161         (WebCore::EventHandler::focusDocumentView):
3162         (WebCore::EventHandler::handleDrag):
3163         (WebCore::EventHandler::handleMouseUp):
3164         (WebCore::EventHandler::lastEventIsMouseUp):
3165         (WebCore::EventHandler::passMousePressEventToSubframe):
3166         (WebCore::EventHandler::passMouseMoveEventToSubframe):
3167         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
3168         (WebCore::EventHandler::passWheelEventToSubframe):
3169         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
3170         (WebCore::EventHandler::passMousePressEventToScrollbar):
3171         (WebCore::EventHandler::shouldDragAutoNode):
3172         (WebCore::EventHandler::tabsToAllControls):
3173         (WebCore::EventHandler::tabsToLinks):
3174         (WebCore::Frame::setNeedsReapplyStyles):
3175         (WebCore::FrameLoader::didFirstLayout):
3176         (WebCore::FrameLoader::overrideMediaType):
3177         (WebCore::FrameLoader::createJavaAppletWidget):
3178         (WebCore::FrameLoader::redirectDataToPlugin):
3179         (WebCore::FrameLoader::getHistoryLength):
3180         (WebCore::FrameLoader::setTitle):
3181         (WebCore::FrameLoader::referrer):
3182         (WebCore::FrameLoader::saveDocumentState):
3183         (WebCore::FrameLoader::restoreDocumentState):
3184         (WebCore::FrameLoader::goBackOrForward):
3185         (WebCore::FrameLoader::historyURL):
3186         (WebCore::FrameLoader::urlSelected):
3187         (WebCore::FrameLoader::createFrame):
3188         (WebCore::FrameLoader::submitForm):
3189         (WebCore::FrameLoader::partClearedInBegin):
3190         (WebCore::FrameLoader::originalRequestURL):
3191         (WebCore::FrameLoader::canGoBackOrForward):
3192         (WebCore::FrameLoader::objectContentType):
3193         (WebCore::FrameLoader::createPlugin):
3194         (WebCore::FrameLoader::detachFromParent):
3195         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
3196         (WebCore::FrameView::updateBorder):
3197         (WebCore::FrameWin::bindingRootObject):
3198         (WebCore::FrameWin::canPaste):
3199         (WebCore::FrameWin::issuePasteAndMatchStyleCommand):
3200         (WebCore::FrameWin::markedTextRange):
3201         (WebCore::FrameWin::passSubframeEventToSubframe):
3202         (WebCore::FrameWin::lastEventIsMouseUp):
3203         (WebCore::FrameWin::addMessageToConsole):
3204         (WebCore::FrameWin::shouldChangeSelection):
3205         (WebCore::FrameWin::respondToChangedSelection):
3206         (WebCore::FrameWin::clearUndoRedoOperations):
3207         (WebCore::FrameWin::markMisspellingsInAdjacentWords):
3208         (WebCore::FrameWin::respondToChangedContents):
3209         (WebCore::GraphicsContext::addRoundedRectClip):
3210         (WebCore::GraphicsContext::setShadow):
3211         (WebCore::GraphicsContext::clearShadow):
3212         (WebCore::GraphicsContext::beginTransparencyLayer):
3213         (WebCore::GraphicsContext::endTransparencyLayer):
3214         (WebCore::GraphicsContext::clearRect):
3215         (WebCore::GraphicsContext::strokeRect):
3216         (WebCore::GraphicsContext::setLineWidth):
3217         (WebCore::GraphicsContext::setLineCap):
3218         (WebCore::GraphicsContext::setLineJoin):
3219         (WebCore::GraphicsContext::setMiterLimit):
3220         (WebCore::GraphicsContext::setAlpha):
3221         (WebCore::GraphicsContext::setCompositeOperation):
3222         (WebCore::GraphicsContext::clip):
3223         (WebCore::GraphicsContext::rotate):
3224         (WebCore::GraphicsContext::scale):
3225         (WebCore::Icon::Icon):
3226         (WebCore::Icon::~Icon):
3227         (WebCore::Icon::newIconForFile):
3228         (WebCore::Icon::paint):
3229         (WebCore::IconDatabase::isIconExpiredForIconURL):
3230         (WebCore::IconDatabase::hasEntryForIconURL):
3231         (WebCore::IconDatabase::sharedIconDatabase):
3232         (WebCore::IconDatabase::setIconURLForPageURL):
3233         (WebCore::IconDatabase::setIconDataForIconURL):
3234         (WebCore::Image::drawTiled):
3235         (WebCore::Image::getHBITMAP):
3236         (WebCore::Path::Path):
3237         (WebCore::Path::~Path):
3238         (WebCore::Path::contains):
3239         (WebCore::Path::translate):
3240         (WebCore::Path::boundingRect):
3241         (WebCore::Path::operator=):
3242         (WebCore::Path::clear):
3243         (WebCore::Path::moveTo):
3244         (WebCore::Path::addLineTo):
3245         (WebCore::Path::addQuadCurveTo):
3246         (WebCore::Path::addBezierCurveTo):
3247         (WebCore::Path::addArcTo):
3248         (WebCore::Path::closeSubpath):
3249         (WebCore::Path::addArc):
3250         (WebCore::Path::addRect):
3251         (WebCore::Path::addEllipse):
3252         (WebCore::Path::transform):
3253         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3254         (WebCore::PlatformScrollbar::PlatformScrollbar):
3255         (WebCore::PlatformScrollbar::~PlatformScrollbar):
3256         (WebCore::PlatformScrollbar::width):
3257         (WebCore::PlatformScrollbar::height):
3258         (WebCore::PlatformScrollbar::setEnabled):
3259         (WebCore::PlatformScrollbar::paint):
3260         (WebCore::PlatformScrollbar::updateThumbPosition):
3261         (WebCore::PlatformScrollbar::updateThumbProportion):
3262         (WebCore::PlatformScrollbar::setRect):
3263         (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
3264         (WebCore::PlugInInfoStore::pluginCount):
3265         (WebCore::PlugInInfoStore::supportsMIMEType):
3266         (WebCore::PolicyCheck::PolicyCheck):
3267         (WebCore::PolicyCheck::clear):
3268         (WebCore::PolicyCheck::clearRequest):
3269         (WebCore::PolicyCheck::call):
3270         (WebCore::RenderThemeWin::systemFont):
3271         (WebCore::RenderThemeWin::paintMenuList):
3272         (WebCore::RenderThemeWin::adjustMenuListStyle):
3273         (WebCore::ResourceLoader::cancel):
3274         (WebCore::ScrollView::addChild):
3275         (WebCore::ScrollView::removeChild):
3276         (WebCore::ScrollView::scrollPointRecursively):
3277         (WebCore::ScrollView::inWindow):
3278         (WebCore::ScrollView::paint):
3279         (WebCore::ScrollView::wheelEvent):
3280         (WebCore::ScrollView::themeChanged):
3281         (WebCore::ScrollView::convertChildToSelf):
3282         (WebCore::ScrollView::convertSelfToChild):
3283         (WebCore::ScrollView::geometryChanged):
3284         (WebCore::ScrollView::scrollbarUnderMouse):
3285         (WebCore::ScrollView::setFrameGeometry):
3286         (WebCore::ScrollView::windowResizerRect):
3287         (WebCore::ScrollView::resizerOverlapsContent):
3288         (WebCore::TextField::selectAll):
3289         (WebCore::TextField::addSearchResult):
3290         (WebCore::TextField::selectionStart):
3291         (WebCore::TextField::hasSelectedText):
3292         (WebCore::TextField::selectedText):
3293         (WebCore::TextField::setAutoSaveName):
3294         (WebCore::TextField::checksDescendantsForFocus):
3295         (WebCore::TextField::setSelection):
3296         (WebCore::TextField::setMaxResults):
3297         (WebCore::TextField::edited):
3298         (WebCore::TextField::focusPolicy):
3299         (WebCore::TextField::TextField):
3300         (WebCore::TextField::~TextField):
3301         (WebCore::TextField::setFont):
3302         (WebCore::TextField::setAlignment):
3303         (WebCore::TextField::setWritingDirection):
3304         (WebCore::TextField::maxLength):
3305         (WebCore::TextField::setMaxLength):
3306         (WebCore::TextField::text):
3307         (WebCore::TextField::setText):
3308         (WebCore::TextField::cursorPosition):
3309         (WebCore::TextField::setCursorPosition):
3310         (WebCore::TextField::setEdited):
3311         (WebCore::TextField::setReadOnly):
3312         (WebCore::TextField::setPlaceholderString):
3313         (WebCore::TextField::setColors):
3314         (WebCore::TextField::sizeForCharacterWidth):
3315         (WebCore::TextField::baselinePosition):
3316         (WebCore::TextField::setLiveSearch):
3317         (WebCore::Widget::enableFlushDrawing):
3318         (WebCore::Widget::isEnabled):
3319         (WebCore::Widget::focusPolicy):
3320         (WebCore::Widget::disableFlushDrawing):
3321         (WebCore::Widget::removeFromParent):
3322         (WebCore::Widget::lockDrawingFocus):
3323         (WebCore::Widget::unlockDrawingFocus):
3324         (WebCore::Widget::capturingMouse):
3325         (WebCore::Widget::setCapturingMouse):
3326         (WebCore::Widget::capturingTarget):
3327         (WebCore::Widget::capturingChild):
3328         (WebCore::Widget::setCapturingChild):
3329         (WebCore::Widget::convertChildToSelf):
3330         (WebCore::Widget::convertSelfToChild):
3331         (WebCore::Widget::setParent):
3332         (WebCore::Widget::parent):
3333         (WebCore::Widget::setEnabled):
3334         (WebCore::Widget::paint):
3335         (WebCore::Widget::setIsSelected):
3336         (WebCore::Widget::invalidate):
3337         (WebCore::Widget::invalidateRect):
3338         * platform/win/WidgetWin.cpp:
3339         (WebCore::Widget::clearFocus):
3340
3341 2006-11-16  Timothy Hatcher  <timothy@apple.com>
3342
3343         Reviewed by Adam.
3344
3345         <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
3346
3347         * editing/markup.cpp:
3348         (WebCore::createMarkup): disable the delete button so it's elements are not serialized into the markup
3349
3350 2006-11-16  George Staikos  <staikos@kde.org>
3351
3352         Rubberstamped by Maciej.
3353
3354         Making the code valgrind clean.
3355
3356         * rendering/RenderTableCell.cpp: initialize variable m_widthChanged
3357         (WebCore::RenderTableCell::RenderTableCell):
3358         * rendering/RenderTableCell.h: remove unused variable nWrap
3359
3360 2006-11-16  David Harrison  <harrison@apple.com>
3361
3362         Reviewed by Darin and Tim.
3363
3364         <rdar://problem/4799949> REGRESSION: Crash in FrameMac::eventMayStartDrag() by clicking on a page
3365         
3366         * page/mac/EventHandlerMac.mm:
3367         (WebCore::EventHandler::eventMayStartDrag):
3368         Add nil check of hitTest's result.innerNode().
3369
3370 2006-11-16  Timothy Hatcher  <timothy@apple.com>
3371
3372         Reviewed by Darin.
3373
3374         <rdar://problem/4836897> Deletion rectangle disappears when multiple list items are selected
3375
3376         Consider the container of the selection range for deletion before asking enclosingNodeOfType().
3377
3378         * editing/DeleteButtonController.cpp:
3379         (WebCore::enclosingDeletableElement):
3380
3381 2006-11-16  Rob Buis  <buis@kde.org>
3382
3383         Reviewed by hyatt.
3384
3385         Removal of unused m_styleElement.
3386
3387         * dom/Node.cpp:
3388         (WebCore::Node::Node):
3389         (WebCore::Node::dump):
3390         * dom/Node.h:
3391         (WebCore::Node::isLink): should be styleElement, a bug?
3392
3393 2006-11-15  Adam Roben  <aroben@apple.com>
3394
3395         Build fix.
3396
3397         Rename the items in the ContextMenuAction enum so that they don't
3398         conflict with WebKit names.
3399
3400         * WebCore.xcodeproj/project.pbxproj:
3401         * platform/ContextMenu.cpp:
3402         (WebCore::ContextMenu::populate):
3403         * platform/ContextMenu.h:
3404         (WebCore::):
3405         (WebCore::ContextMenuItem::ContextMenuItem):
3406
3407 2006-11-15  Adam Roben  <aroben@apple.com>
3408
3409         Reviewed by Anders.
3410
3411         Change m_contextMenu to an OwnPtr.
3412
3413         * WebCore.xcodeproj/project.pbxproj:
3414         * page/ContextMenuController.cpp:
3415         (WebCore::ContextMenuController::handleContextMenuEvent):
3416         * page/ContextMenuController.h:
3417
3418 2006-11-15  Adam Roben  <aroben@apple.com>
3419
3420         Reviewed by Anders.
3421
3422         Add new ContextMenuController and ContextMenuClient classes, and move
3423         context menu responsibilities from Chrome and ChromeClient to them.
3424
3425         * WebCore.exp:
3426         * WebCore.xcodeproj/project.pbxproj: Add new files to project, and
3427         alphabetize some others.
3428         * page/Chrome.cpp: Remove context menu-related code.
3429         * page/Chrome.h: Ditto.
3430         * page/ChromeClient.h:
3431         * page/ContextMenuClient.h: Added.
3432         * page/ContextMenuController.cpp: Added.
3433         (WebCore::ContextMenuController::ContextMenuController):
3434         (WebCore::ContextMenuController::~ContextMenuController):
3435         (WebCore::ContextMenuController::handleContextMenuEvent):
3436         (WebCore::ContextMenuController::contextMenuActionSelected):
3437         * page/ContextMenuController.h: Added.
3438         (WebCore::ContextMenuController::client):
3439         * page/Page.cpp: Every Page now has a ContextMenuController.
3440         (WebCore::Page::Page):
3441         * page/Page.h: Made m_dragCaretController and m_chrome objects instead
3442         of pointers to objects.
3443         (WebCore::Page::contextMenuController):
3444         * platform/ContextMenu.cpp:
3445         (WebCore::ContextMenu::populate): Removed the call to Chrome to ask the
3446         delegate to add its menu items, and moved the code from the static
3447         addDefaultItems function into this method.
3448         * platform/ContextMenu.h:
3449         (WebCore::ContextMenu::show): Added an empty method body since this
3450         method is now called from ContextMenuController (although no one calls
3451         into ContextMenuController yet, so it's OK for this to be empty).
3452         (WebCore::ContextMenu::hide): Ditto.
3453
3454 2006-11-15  Anders Carlsson  <acarlsson@apple.com>
3455
3456         Reviewed by Darin.
3457
3458         Add null checks on the node filter, they can be null if no filter was passed to the respective
3459         create functions.
3460         
3461         * bindings/js/JSNodeIteratorCustom.cpp:
3462         (WebCore::JSNodeIterator::mark):
3463         * bindings/js/JSTreeWalkerCustom.cpp:
3464         (WebCore::JSTreeWalker::mark):
3465
3466 2006-11-15  Oliver Hunt  <oliver@apple.com>
3467
3468         Reviewed by Anders.
3469
3470         Allow <embed> and <object> tags to include non-plugin
3471         content when plugins are disabled
3472
3473         Fixes <rdar://problems/4839488>
3474
3475         * html/HTMLEmbedElement.cpp:
3476         (WebCore::HTMLEmbedElement::rendererIsNeeded):
3477         * html/HTMLObjectElement.cpp:
3478         (WebCore::HTMLObjectElement::rendererIsNeeded):
3479         * loader/FrameLoader.cpp:
3480         (WebCore::FrameLoader::requestObject):
3481
3482 2006-11-15  Adele Peterson  <adele@apple.com>
3483
3484         Build fix.  Another type problem that I don't see locally.
3485
3486         * rendering/RenderSlider.cpp: (WebCore::RenderSlider::setPositionFromValue):
3487
3488 2006-11-15  Adele Peterson  <adele@apple.com>
3489
3490         Reviewed by Adam.
3491
3492         Adding MathExtras header.
3493
3494         * rendering/RenderSlider.cpp:
3495
3496 2006-11-15  Timothy Hatcher  <timothy@apple.com>
3497
3498         Reviewed by Harrison.
3499
3500         <rdar://problem/4832894> Crash deleting an element inside a list while deletion rectangle is visible (compareBoundaryPoints)
3501
3502         * Disable and hide the deletion UI for each editing command. This prevents editing commands from being affected
3503           by the deletion UI elements we insert. The deletion UI is then shown after the editing commands are completely done.
3504
3505         * Multiple calls to DeleteButtonController's disable() needed to be paired with the same number of enable() calls before
3506           the deletion UI is enabled again. This allows for nested editing commands to be called without thrashing the deletion UI.
3507
3508         * Make sure the the renderers are currently reflecting the latest style changes, so call updateLayoutIgnorePendingStylesheets().
3509
3510         * editing/DeleteButtonController.cpp:
3511         (WebCore::DeleteButtonController::DeleteButtonController):
3512         (WebCore::isDeletableElement):
3513         (WebCore::DeleteButtonController::respondToChangedSelection): check the enabled state
3514         (WebCore::DeleteButtonController::respondToChangedContents): check the enabled state
3515         (WebCore::DeleteButtonController::show): call isDeletableElement() to make sure the element is allowed
3516         (WebCore::DeleteButtonController::deleteTarget): check the enabled state
3517         * editing/DeleteButtonController.h:
3518         (WebCore::DeleteButtonController::disable):
3519         (WebCore::DeleteButtonController::enable):
3520         (WebCore::DeleteButtonController::enabled):
3521         * editing/EditCommand.cpp:
3522         (WebCore::EditCommand::apply): hide and disable the deletion UI, then show at the end
3523         (WebCore::EditCommand::unapply): ditto
3524         (WebCore::EditCommand::reapply): ditto
3525
3526 2006-11-15  Adele Peterson  <adele@apple.com>
3527