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