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