Reviewed by Darin.
[WebKit-https.git] / WebCore / ChangeLog
1 2006-10-04  Alice Liu  <alice.liu@apple.com>
2
3         Reviewed by Darin.
4
5         Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
6
7         * xml/xmlhttprequest.cpp:
8         (WebCore::XMLHttpRequest::setRequestHeader):
9         removed exception set when the request is not open yet
10
11 2006-10-04  Anders Carlsson  <acarlsson@apple.com>
12
13         Reviewed by John Sullivan.
14
15         <rdar://problem/4654328>
16         Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
17         
18         * loader/PluginDocument.cpp:
19         (WebCore::PluginTokenizer::writeRawData):
20         Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
21
22 2006-10-03  Alexey Proskuryakov  <ap@nypop.com>
23
24         Reviewed by Tim H.
25
26         http://bugs.webkit.org/show_bug.cgi?id=11130
27         Convert "undefined" to AE missing value
28
29         * bridge/mac/WebCoreFrameBridge.mm:
30         (aeDescFromJSValue): return missing value for UndefinedType.
31
32 2006-10-03  Dave Hyatt  <hyatt@apple.com>
33
34         Scrolling work.  Eliminate convertTo/FromContainingWindow as cross-platform functions.  Add back in
35         the windowToContents/contentsToWindow functions.
36         
37         Reviewed by anders
38
39         * bridge/mac/FrameMac.mm:
40         (WebCore::FrameMac::eventMayStartDrag):
41         (WebCore::FrameMac::dragHysteresisExceeded):
42         (WebCore::FrameMac::mouseDown):
43         (WebCore::FrameMac::shouldDragAutoNode):
44         (WebCore::FrameMac::sendContextMenuEvent):
45         * bridge/mac/FrameViewMac.mm:
46         (WebCore::FrameView::passMousePressEventToScrollbar):
47         * bridge/mac/WebCoreFrameBridge.mm:
48         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
49         * dom/EventTargetNode.cpp:
50         (WebCore::EventTargetNode::dispatchMouseEvent):
51         (WebCore::EventTargetNode::dispatchWheelEvent):
52         * page/Frame.cpp:
53         (WebCore::Frame::selectClosestWordFromMouseEvent):
54         (WebCore::Frame::handleMousePressEventTripleClick):
55         (WebCore::Frame::handleMousePressEventSingleClick):
56         (WebCore::Frame::handleMouseMoveEvent):
57         (WebCore::Frame::handleMouseReleaseEvent):
58         * page/FrameView.cpp:
59         (WebCore::FrameView::handleMousePressEvent):
60         (WebCore::FrameView::handleMouseDoubleClickEvent):
61         (WebCore::selectCursor):
62         (WebCore::FrameView::handleMouseMoveEvent):
63         (WebCore::FrameView::handleMouseReleaseEvent):
64         (WebCore::FrameView::dispatchDragEvent):
65         (WebCore::FrameView::prepareMouseEvent):
66         (WebCore::FrameView::handleWheelEvent):
67         * page/FrameView.h:
68         * platform/ScrollBar.cpp:
69         (WebCore::ScrollBar::setValue):
70         * platform/ScrollView.h:
71         * platform/Widget.h:
72         (WebCore::Widget::scrolled):
73         * platform/mac/ScrollViewMac.mm:
74         (WebCore::ScrollView::contentsToWindow):
75         (WebCore::ScrollView::windowToContents):
76         (WebCore::ScrollView::scrollbarUnderMouse):
77         * platform/mac/WidgetMac.mm:
78         * rendering/RenderLayer.cpp:
79         (WebCore::RenderLayer::resize):
80         (WebCore::RenderLayer::positionScrollbars):
81         * rendering/RenderReplaced.cpp:
82         (WebCore::RenderReplaced::shouldPaint):
83         * rendering/RenderView.cpp:
84         * rendering/RenderView.h:
85         * rendering/RenderWidget.cpp:
86         (WebCore::RenderWidget::setWidget):
87
88 2006-09-26  David Smith  <catfish.man@gmail.com>
89
90         Reviewed by Timothy.
91
92         http://bugs.webkit.org/show_bug.cgi?id=3723
93         Add -scrollDOMRangeToVisible:
94
95         No automated tests are possible as this code path isn't reachable from JavaScript.
96
97         * bridge/mac/WebCoreFrameBridge.h:
98         * bridge/mac/WebCoreFrameBridge.mm:
99         (-[WebCoreFrameBridge scrollDOMRangeToVisible:]):
100
101 2006-10-03  Graham Dennis  <graham.dennis@gmail.com>
102
103         Reviewed by Timothy.
104
105         <http://bugs.webkit.org/show_bug.cgi?id=10338>
106         When contentEditable, cursor doesn't change to hand
107         
108         Allow the behaviour of editable links to be specified by a WebPreference
109         The preference WebKitEditableLinkBehavior has four options:
110          - AlwaysLive: Safari 2.0 behaviour
111          - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
112          - LiveWhenNotFocused: Editable links are live only when their editable block is not
113              focused, or when the shift key is pressed
114          - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
115          
116         No layout tests, just a modification of a manual-test as it isn't possible to test
117         this automatically.
118
119         * bridge/mac/WebCoreSettings.h:
120         * bridge/mac/WebCoreSettings.mm:
121         (-[WebCoreSettings setEditableLinkBehavior:]):
122         (-[WebCoreSettings editableLinkBehavior]):
123         * html/HTMLAnchorElement.cpp:
124         (WebCore::HTMLAnchorElement::HTMLAnchorElement):
125         (WebCore::HTMLAnchorElement::defaultEventHandler):
126         (WebCore::HTMLAnchorElement::setActive):
127         * html/HTMLAnchorElement.h:
128         * manual-tests/contenteditable-link.html:
129         * page/FrameView.cpp:
130         (WebCore::nodeIsNotBeingEdited):
131         (WebCore::selectCursor):
132         * page/Settings.h:
133         (WebCore::Settings::):
134         (WebCore::Settings::Settings):
135         (WebCore::Settings::editableLinkBehavior):
136         (WebCore::Settings::setEditableLinkBehavior):
137
138 2006-10-03  Beth Dakin  <bdakin@apple.com>
139
140         Reviewed Darin.
141
142         No test cases needed.
143
144         Implemented a version of StringImpl::append that takes a UChar* and 
145         a length.
146
147         * platform/StringImpl.cpp:
148         (WebCore::StringImpl::append):
149         (WebCore::StringImpl::insert): Call new append instead of making a 
150         new StringImpl.
151         * platform/StringImpl.h:
152
153 2006-10-03  MorganL  <morganl.webkit@yahoo.com>
154
155         Reviewed by Darin.
156
157         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
158         HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
159
160         * platform/win/ResourceLoaderWin.cpp:
161         (WebCore::ResourceLoader::onHandleCreated):
162
163 2006-10-02  Geoffrey Garen  <ggaren@apple.com>
164
165         Feared, loathed, reviewed by Darin.
166
167         More frame/iframe merging. Merged IFRAME::willRemove and IFRAME::detach 
168         into FRAME, plus other cleanup.
169         
170         No new behavior, so no new test. Layout tests pass. Basic browsing and
171         Mail editing seem to work.
172         
173         * dom/Node.cpp:
174         (WebCore::Node::detach): Removed random commented-out code.
175         * html/HTMLFrameElement.cpp:
176         (WebCore::HTMLFrameElement::isURLAllowed): 
177         (1) Removed reference to FrameView, to dissociate frame loading from rendering.
178         (2) Renamed newURL to completeURL because the difference between newURL
179         and URLString is that newURL is a KURL that is the complete version of URLString,
180         not that it is new.
181         (WebCore::HTMLFrameElement::willRemove): 
182         (1) Removed close() call and moved close() code into willRemove(), also removing 
183         close() call from detach(), since willRemove is the well-defined place 
184         from DOM tear-down, not detach().
185         (2) Removed manual renderer detach code because the DOM is not responsible
186         for managing the render tree. I confirmed that this change not
187         regress <rdar://problem/4132581>.
188         (3) Removed questionable ASSERT. The ASSERT assumed that iframe elements
189         lost their content frames after being removed from the DOM. That's our 
190         current behavior, but it's going to change in future rounds of refactoring.
191         This also fixes <rdar://problem/4750835>.
192         (WebCore::HTMLFrameElement::setLocation): Removed wacky manual calls to
193         attach/detach, because the render tree should not be in charge of deciding
194         when to load.
195         * html/HTMLFrameElement.h:
196         * html/HTMLIFrameElement.cpp:
197         (WebCore::HTMLIFrameElement::attach): Renamed renderPart to renderPartObject,
198         because the renderer is a renderPartObject, not a renderPart.
199         * html/HTMLIFrameElement.h:
200
201 2006-10-03  Mark Rowe  <bdash@webkit.org>
202
203         Reviewed by Mitz.
204
205         http://bugs.webkit.org/show_bug.cgi?id=11137
206         Bug 11137: GdkLauncher dies with "pure virtual method called" if
207         window is closed while page still loading
208
209         * platform/gdk/FrameGdk.cpp:
210         (WebCore::FrameGdk::~FrameGdk): Call cancelAndClear to allow virtual
211         methods to be called before the FrameGdk portion of "this" is torn down.
212
213 2006-10-03  Adam Roben  <aroben@apple.com>
214
215         Reviewed by Darin.
216
217         Handle tab key presses in the DOM.
218
219         * dom/EventTargetNode.cpp:
220         (WebCore::EventTargetNode::defaultEventHandler): Add tab key handling.
221         * page/FrameView.cpp:
222         (WebCore::FrameView::advanceFocus): Rename and reimplement
223         focusNextPrevNode. Now we just call Element::focus().
224         * page/FrameView.h: Rename focusNextPrevNode to advanceFocus and make
225         it public.
226
227 2006-10-03  Justin Garcia  <justin.garcia@apple.com>
228
229         Reviewed by mjs
230         
231         <rdar://problem/4760612>
232         TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints
233         
234         No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.
235         
236         * dom/Range.cpp:
237         (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming 
238         positions are non-null since most of it's callers would be in a bad state if the positions 
239         were null.  boundaryPointsValid, which calls compareBoundaryPoints, is an exception.  
240         Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it 
241         from entering compareBoundaryPoints and hitting the assert.
242
243 2006-10-03  Adele Peterson  <adele@apple.com>
244
245         Reviewed by Geoff.
246
247         Make code for turning off new listbox implementation mac-only, since there's no implementation on other platforms.
248
249         * html/HTMLSelectElement.cpp:
250         (WebCore::HTMLSelectElement::recalcStyle):
251         (WebCore::HTMLSelectElement::isKeyboardFocusable):
252         (WebCore::HTMLSelectElement::isMouseFocusable):
253         (WebCore::HTMLSelectElement::createRenderer):
254         (WebCore::HTMLSelectElement::setRecalcListItems):
255         (WebCore::HTMLSelectElement::notifyOptionSelected):
256         (WebCore::HTMLSelectElement::defaultEventHandler):
257
258 2006-10-04  Darin Adler  <darin@apple.com>
259
260         Reviewed by Geoff.
261
262         - fix http://bugs.webkit.org/show_bug.cgi?id=11132
263           Caret disappears when you're typing
264
265         * editing/SelectionController.cpp:
266         (WebCore::SelectionController::setSelection): Remove unnecessary call to
267         clearCaretRectIfNeeded. The recomputeCaretRect now takes care of this.
268         (WebCore::SelectionController::recomputeCaretRect): Explicitly set m_needsLayout
269         to false so we can get the old caret repaint rect. Later we need to change the
270         design so getting the rect doesn't have a side effect of causing a layout without
271         invalidation.
272
273 2006-10-03  David Harrison  <harrison@apple.com>
274
275         Reviewed by Maciej.
276
277         <rdar://problem/4671286> Candidate Window isn't displayed and only first candidate is displayed at typing location.
278
279         Updated test:
280         * fast/text/justified-text-rect.html
281
282         * bridge/mac/WebCoreFrameBridge.mm:
283         (-[WebCoreFrameBridge convertToNSRange:]):
284         (-[WebCoreFrameBridge convertToDOMRange:]):
285         Make the selection's root editable element (or the document itself) be
286         the basis for NSRange conversions. This supports "shadow DOM" like
287         that for text fields and text areas.
288         
289         * editing/CompositeEditCommand.cpp:
290         (WebCore::CompositeEditCommand::moveParagraphs):
291         Pass the document element as the scope.
292         
293         * editing/TextIterator.cpp:
294         (WebCore::TextIterator::rangeFromLocationAndLength):
295         Make the first parameter the scope.
296         
297         * editing/TextIterator.h:
298         Make the first parameter of rangeFromLocationAndLength() the scope.
299
300 2006-10-03  Nikolas Zimmermann  <zimmermann@kde.org>
301
302         Reviewed by Eric.
303
304         Fix Qt/Linux build.
305
306         * CMakeLists.txt: Add counter related files.
307
308 2006-10-03  Mark Rowe  <bdash@webkit.org>
309
310         Reviewed by Eric.
311
312         http://bugs.webkit.org/show_bug.cgi?id=10981
313         Linux/GDK build fixes
314
315         Based on a patch by Krzysztof Kowalczyk.
316
317         * WebCoreSources.bkl:
318         * platform/gdk/FrameGdk.cpp:
319         (WebCore::doScroll):
320         (WebCore::FrameGdk::handleGdkEvent):
321         * platform/gdk/PlatformScrollBar.h: Added.
322         (WebCore::PlatformScrollBar::isWidget):
323         * platform/gdk/ScrollViewGdk.cpp:
324         * platform/gdk/TemporaryLinkStubs.cpp:
325         (FrameView::passMousePressEventToScrollbar):
326         (FrameView::passMousePressEventToSubframe):
327         (FrameView::passMouseReleaseEventToSubframe):
328         (FrameView::passMouseMoveEventToSubframe):
329         (FrameView::passWheelEventToSubframe):
330         (Cursor::Cursor):
331         (Widget::invalidate):
332         (Widget::invalidateRect):
333         (ScrollView::wheelEvent):
334         (ScrollView::convertToContainingWindow):
335         (ScrollView::convertFromContainingWindow):
336         (GraphicsContext::clip):
337         (PlatformScrollBar::PlatformScrollBar):
338         (PlatformScrollBar::updateThumbPosition):
339         (PlatformScrollBar::updateThumbProportion):
340         (ScrollBar::ScrollBar):
341         (ScrollBar::setProportion):
342         (WebCore::supportedKeySizes):
343         (WebCore::signedPublicKeyAndChallengeString):
344         * platform/gdk/WheelEventGdk.cpp:
345         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
346         * platform/gdk/WidgetGdk.cpp:
347         (WebCore::Widget::convertToContainingWindow):
348         (WebCore::Widget::convertFromContainingWindow):
349
350 2006-10-02  Adam Roben  <aroben@apple.com>
351
352         Reviewed by Maciej.
353
354         Let Windows determine which mouse button is pressed.
355
356         * platform/PlatformMouseEvent.h: Add message parameter to constructor.
357         * platform/win/MouseEventWin.cpp:
358         (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
359         parameter to determine which mouse button is pressed.
360
361 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
362
363         Reviewed by anders
364         
365         Build fix
366         
367         * editing/SelectionController.cpp:
368         (WebCore::SelectionController::empty):
369         * editing/SelectionController.h:
370
371 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
372
373         Reviewed by john
374         
375         <rdar://problem/4755287>
376         Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
377
378         * editing/markup.cpp:
379         (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced 
380         elements).  Don't skip blocks that aren't containers (like horizontal rules).
381
382 2006-10-03  Darin Adler  <darin@apple.com>
383
384         Reviewed by Justin Garcia.
385
386         - correct mistaken code that would restart blinking every
387           time "invalidateSelection" is called even if the caret
388           has not moved
389
390         * editing/SelectionController.h:
391         * editing/SelectionController.cpp:
392         (WebCore::SelectionController::setSelection): Update for name change.
393         (WebCore::SelectionController::recomputeCaretRect): New function.
394         Computes caret rect and does any necessary invalidation if the rect
395         changes.
396         (WebCore::SelectionController::invalidateCaretRect): Renamed from
397         needsCaretRepaint. Invalidates the caret rect unconditionally. Also
398         calls recomputeCaretRect as a side effect.
399
400         * page/Frame.cpp:
401         (WebCore::Frame::invalidateSelection): Remove unneeded call to
402         clearCaretRectIfNeeded.
403         (WebCore::Frame::clearCaretRectIfNeeded): Updated for name change.
404         (WebCore::Frame::selectionLayoutChanged): Restructured to use the new
405         recomputeCaretRect function and not restart blinking if caret has
406         not changed position.
407         (WebCore::Frame::caretBlinkTimerFired): Removed some checks that
408         are not needed since selectionLayoutChanged already checks these.
409
410         * page/FramePrivate.h: Removed unused m_blinkCaret.
411
412 2006-10-02  Beth Dakin  <bdakin@apple.com>
413
414         Reviewed by Adam.
415
416         Build fix. Add counters to vcproj.
417
418         * WebCore.vcproj/WebCore/WebCore.vcproj:
419
420 2006-10-02  Brady Eidson  <beidson@apple.com>
421
422         Reviewed by Adele
423
424         If the Icon DB schema changes underneath you, the latest ToT can crash and burn when writing
425         icon data out because we don't correctly check SQL error conditions.
426
427         * loader/icon/IconDataCache.cpp:
428         (WebCore::IconDataCache::writeToDatabase):
429
430 2006-10-02  Steve Falkenburg  <sfalken@apple.com>
431
432         Reviewed by Hyatt.
433
434         Added method to find out whether a layout has occurred.
435
436         * page/FrameView.cpp:
437         (WebCore::FrameView::didFirstLayout):
438         * page/FrameView.h:
439
440 2006-10-02  Beth Dakin  <bdakin@apple.com>
441
442         Reviewed by Darin.
443
444         Initial implementation of CSS2 counters. See http://
445         bugs.webkit.org/show_bug.cgi?id=4980 for more details.
446
447         * WebCore.xcodeproj/project.pbxproj:
448         * css/CSSComputedStyleDeclaration.cpp: 
449         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return 
450         the increment/reset list now that this is implemented.
451         * css/CSSPrimitiveValue.cpp:
452         (WebCore::CSSPrimitiveValue::cssText): 
453         * css/Counter.h:
454         (WebCore::Counter::Counter):
455         (WebCore::Counter::~Counter):
456         (WebCore::Counter::identifier):
457         (WebCore::Counter::listStyle):
458         (WebCore::Counter::separator):
459         (WebCore::Counter::listStyleNumber):
460         (WebCore::Counter::setIdentifier):
461         (WebCore::Counter::setListStyle):
462         (WebCore::Counter::setSeparator):
463         * css/cssparser.cpp:
464         (WebCore::CSSParser::addProperty): Take care of reset/increment
465         (WebCore::CSSParser::parseValue):
466         (WebCore::CSSParser::parseContent): content can now take counters
467         (WebCore::CSSParser::parseCounterContent): Parse counter() and 
468         counters()
469         (WebCore::CSSParser::parseCounter): Parse counter-reset and 
470         counter-increment
471         * css/cssparser.h:
472         * css/cssstyleselector.cpp:
473         (WebCore::CSSStyleSelector::matchUARules):
474         (WebCore::CSSStyleSelector::applyProperty):
475         * platform/PlatformString.h:
476         * platform/String.cpp:
477         (WebCore::String::insert): Implemented a version of insert that 
478         accepts a UChar* and a length.
479         * platform/StringImpl.cpp:
480         (WebCore::StringImpl::insert): Same as above.
481         * platform/StringImpl.h:
482         * rendering/CounterListItem.h: Added.
483         * rendering/CounterNode.cpp: Added.
484         (WebCore::CounterNode::CounterNode):
485         (WebCore::CounterNode::insertAfter):
486         (WebCore::CounterNode::removeChild):
487         (WebCore::CounterNode::remove):
488         (WebCore::CounterNode::setUsesSeparator):
489         (WebCore::CounterNode::recountAndGetNext):
490         (WebCore::CounterNode::recountTree):
491         (WebCore::CounterNode::setSelfDirty):
492         (WebCore::CounterNode::setParentDirty):
493         * rendering/CounterNode.h: Added.
494         (WebCore::CounterNode::~CounterNode):
495         (WebCore::CounterNode::parent):
496         (WebCore::CounterNode::previousSibling):
497         (WebCore::CounterNode::nextSibling):
498         (WebCore::CounterNode::firstChild):
499         (WebCore::CounterNode::lastChild):
500         (WebCore::CounterNode::value):
501         (WebCore::CounterNode::setValue):
502         (WebCore::CounterNode::count):
503         (WebCore::CounterNode::setCount):
504         (WebCore::CounterNode::setHasSeparator):
505         (WebCore::CounterNode::isReset):
506         (WebCore::CounterNode::hasSeparator):
507         (WebCore::CounterNode::willNeedLayout):
508         (WebCore::CounterNode::setWillNeedLayout):
509         (WebCore::CounterNode::isRoot):
510         (WebCore::CounterNode::setRenderer):
511         (WebCore::CounterNode::renderer):
512         * rendering/CounterResetNode.cpp: Added.
513         (WebCore::CounterResetNode::CounterResetNode):
514         (WebCore::CounterResetNode::insertAfter):
515         (WebCore::CounterResetNode::removeChild):
516         (WebCore::CounterResetNode::recountAndGetNext):
517         (WebCore::CounterResetNode::setParentDirty):
518         (WebCore::CounterResetNode::updateTotal):
519         * rendering/CounterResetNode.h: Added.
520         (WebCore::CounterResetNode::firstChild):
521         (WebCore::CounterResetNode::lastChild):
522         (WebCore::CounterResetNode::isReset):
523         (WebCore::CounterResetNode::total):
524         * rendering/RenderContainer.cpp:
525         (WebCore::RenderContainer::updatePseudoChildForObject): Account for 
526         counter content.
527         * rendering/RenderCounter.cpp: Added.
528         (WebCore::RenderCounter::RenderCounter):
529         (WebCore::RenderCounter::layout):
530         (WebCore::toRoman):
531         (WebCore::toLetterString):
532         (WebCore::toHebrew):
533         (WebCore::RenderCounter::convertValueToType):
534         (WebCore::RenderCounter::calcMinMaxWidth):
535         * rendering/RenderCounter.h: Added.
536         (WebCore::RenderCounter::renderName):
537         (WebCore::RenderCounter::isCounter):
538         * rendering/RenderObject.cpp:
539         (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to 
540         maps of CounterNodes
541         (WebCore::RenderObject::RenderObject):
542         (WebCore::RenderObject::destroy): Destroy the maps.
543         (WebCore::RenderObject::findCounter): Finds/creates counters.
544         * rendering/RenderObject.h:
545         (WebCore::RenderObject::isCounter):
546         * rendering/RenderStyle.cpp:
547         (WebCore::StyleVisualData::StyleVisualData):
548         (WebCore::RenderStyle::arenaDelete):
549         (WebCore::RenderStyle::RenderStyle):
550         (WebCore::RenderStyle::diff):
551         (WebCore::RenderStyle::setContent):
552         (WebCore::ContentData::clearContent):
553         (WebCore::RenderStyle::counterDataEquivalent):
554         (WebCore::hasCounter):
555         (WebCore::RenderStyle::hasCounterReset):
556         (WebCore::RenderStyle::hasCounterIncrement):
557         (WebCore::readCounter):
558         (WebCore::RenderStyle::counterReset):
559         (WebCore::RenderStyle::counterIncrement):
560         * rendering/RenderStyle.h:
561         (WebCore::StyleVisualData::operator==):
562         (WebCore::CounterData::CounterData):
563         (WebCore::CounterData::identifier):
564         (WebCore::CounterData::listStyle):
565         (WebCore::CounterData::separator):
566         (WebCore::ContentData::contentCounter):
567         (WebCore::ContentData::):
568         (WebCore::RenderStyle::counterIncrement):
569         (WebCore::RenderStyle::counterReset):
570         (WebCore::RenderStyle::setCounterIncrement):
571         (WebCore::RenderStyle::setCounterReset):
572         (WebCore::RenderStyle::setCounterResetList):
573         (WebCore::RenderStyle::setCounterIncrementList):
574         (WebCore::RenderStyle::counterResetValueList):
575         (WebCore::RenderStyle::counterIncrementValueList):
576
577 2006-10-02  Adele Peterson  <adele@apple.com>
578
579         Reviewed by Adam.
580
581         - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
582
583         There are a few outstanding issues, so I've left the old code in for now.  So you can use the old-style listboxes
584         by using "-webkit-appearance:none".
585
586         * css/html4.css:
587
588 2006-10-02  David Harrison  <harrison@apple.com>
589
590         Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
591         addressed at a deeper level by r16696, the patch for <http://bugs.webkit.org/show_bug.cgi?id=10842>.
592         Left the layout test.
593         
594         * rendering/bidi.cpp:
595         (WebCore::checkMidpoints):
596
597 2006-10-02  Nikolas Zimmermann  <zimmermann@kde.org>
598
599         Reviewed by eseidel.  Landed by eseidel.
600
601         Fix Qt/Linux build.
602
603         * platform/qt/TemporaryLinkStubs.cpp: s/DeprecatedStringList/Vector<String>/
604         (WebCore::supportedKeySizes):
605
606 2006-10-02  Nikolas Zimmermann <zimmermann@kde.org>
607
608         Reviewed by eseidel & mjs.  Landed by eseidel.
609
610         Fix Qt/Linux build with older gcc 3.3.4.
611         http://bugs.webkit.org/show_bug.cgi?id=11116
612
613         As discussed with Maciej, the GCC_ROOT_NS_HACK
614         can be completely removed, as well as the friendship
615         between cacheGlobalObject & the JS* objects.
616
617         * bindings/scripts/CodeGeneratorJS.pm: Remove friendship.
618         * platform/image-decoders/png/pnggccrd.c: Fix comments for gcc3.
619         (png_read_filter_row_mmx_avg):
620         * platform/image-decoders/png/pngvcrd.c: Ditto.
621         (png_mmx_support):
622         (png_read_filter_row_mmx_avg):
623
624 2006-10-01  Maciej Stachowiak  <mjs@apple.com>
625
626         Rubber stamped by Alexey.
627
628         - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=10893 since it led to layout test crashes
629
630         * css/CSSGrammar.y:
631
632 2006-10-01  Eric Seidel  <eric@webkit.org>
633
634         Reviewed by mjs.
635
636         Eliminate a few more hotspots in SVG drawing code.
637         
638         No test cases were harmed in the making of this patch.  (And SVG has no perf tests.)
639
640         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
641         (WebCore::KRenderingPaintServerSolidQuartz::setup): use a single shared colorspace, avoid a few mallocs
642         * platform/mac/ColorMac.mm:
643         (+[WebCoreControlTintObserver WebCore]): store a single shared colorspace instance
644
645 2006-10-01  Geoffrey Garen  <ggaren@apple.com>
646
647         Reviewed by Maciej.
648         
649         More frame/iframe merging.
650         
651         - Removed needWidgetUpdate and related code. needWidgetUpdate is always
652         false, so this was dead code.
653         - Removed FIXME about setInViewSourceMode inside openURL(). openURL(), rather
654         than attach(), is the correct place for setInViewSourceMode, because
655         openURL() is the function that creates our frame.
656         - Moved IFRAME insertedIntoDocument() code into FRAME, and removed FRAME
657         code that did the same thing in other places.
658         - Made FRAME's attach() method suffuciently generic so that IFRAME could
659         call up to it, rather than skipping its superclass and calling up directly 
660         to ELEMENT.
661         - Changed a few IFRAME up-calls to ELEMENT into up-calls to FRAME.
662         - Replaced ad hoc frame loading code in FRAME::attach() with call to
663         openURL(), the designated frame loading function.
664
665         Layout tests pass. I added a layout test for viewsource mode, since I
666         broke it in the course of writing this patch.
667
668 2006-10-01  Anders Carlsson  <acarlsson@apple.com>
669
670         Reviewed by Geoff.
671
672         * dom/Document.cpp:
673         (WebCore::Document::recalcStyleSelector):
674         * dom/Document.h:
675         Get rid of availableStyleSheets() and remove DeprecatedStringList.h include.
676         
677         * dom/Node.h:
678         Remove DeprecatedStringList class forward declaration.
679         
680         * editing/markup.cpp:
681         Include DeprecatedStringList.h here since it's not included by Document.h anymore.
682         
683         * kcanvas/KCanvasTreeDebug.cpp:
684         * kcanvas/KCanvasTreeDebug.h:
685         Remove unused functions.
686         
687         * loader/loader.cpp:
688         * page/Frame.cpp:
689         * page/Frame.h:
690         * page/FrameView.h:
691         Fixup DeprecatedStringList.h includes.
692
693 2006-09-30  David Harrison  <harrison@apple.com>
694
695         Reviewed by John Sullivan.
696
697         <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point
698
699         Problem was that the decision to trim was based only on whether the character
700         is a soft hyphen, which caused pretty much any Japanese character to go.
701         Changed to decide based on whether the character is ignorable whitespace.
702         
703         Test:
704         * fast/text/international/wrap-CJK-001.html
705
706         * rendering/bidi.cpp:
707         (WebCore::isTrimmableChar):
708         New. Checks whether character is whitespace that can be ignored
709         according to the text node's style.
710         trimmed from the end of wrapped line.
711         (WebCore::checkMidpoints):
712         Call isTrimmable() rather than checking for char != SOFT_HYPHEN.
713
714 2006-10-01  Anders Carlsson  <acarlsson@apple.com>
715
716         Reviewed by Mitz Pettel.
717
718         Convert the SVG code to use Vector<String> instead of DeprecatedStringList.
719
720         * ksvg2/svg/SVGColor.cpp:
721         (WebCore::SVGColor::setRGBColor):
722         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
723         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
724         (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
725         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
726         (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
727         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
728         (SVGFESpecularLightingElement::parseMappedAttribute):
729         * ksvg2/svg/SVGFETurbulenceElement.cpp:
730         (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
731         * ksvg2/svg/SVGLengthList.cpp:
732         * ksvg2/svg/SVGNumberList.cpp:
733         (SVGNumberList::parse):
734         * ksvg2/svg/SVGNumberList.h:
735         * ksvg2/svg/SVGPreserveAspectRatio.cpp:
736         (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
737         * ksvg2/svg/SVGStringList.cpp:
738         (WebCore::SVGStringList::reset):
739         * ksvg2/svg/SVGStringList.h:
740         * ksvg2/svg/SVGTransformable.cpp:
741         (SVGTransformable::parseTransformAttribute):
742
743 2006-10-01  Nikolas Zimmermann  <zimmermann@kde.org>
744
745         Reviewed by Eric, tweaked and landed by ap.
746
747         Fix Qt/Linux build.
748
749         * CMakeLists.txt:
750         * platform/qt/PlatformScrollBar.h:
751         * platform/qt/TemporaryLinkStubs.cpp:
752         (WebCore::ScrollBar::ScrollBar):
753         (WebCore::PlatformScrollBar::PlatformScrollBar):
754         (FrameView::passMousePressEventToSubframe):
755         (FrameView::passMouseMoveEventToSubframe):
756         (FrameView::passMouseReleaseEventToSubframe):
757         (FrameView::passWheelEventToSubframe):
758         (FrameView::passMousePressEventToScrollbar):
759         * ksvg2/svg/SVGDocument.h:
760
761 2006-10-01  Mitz Pettel  <opendarwin.org@mitzpettel.com>
762
763         Reviewed by Darin.
764
765         Fix for http://bugs.webkit.org/show_bug.cgi?id=10190
766         REGRESSION: Repro crash when navigating away from an image document that hasn't finished loading
767
768         No test case added (probably requires new DumpRenderTree functionality)
769
770         * rendering/RenderImage.cpp:
771         (WebCore::RenderImage::imageChanged): Added early return if the document is
772         being destroyed.
773
774 2006-10-01  Graham Dennis  <graham.dennis@gmail.com>
775
776         Reviewed by Hyatt.
777
778         Fix for http://bugs.webkit.org/show_bug.cgi?id=10842
779         REGRESSION (r15418): contenteditable div truncates rightmost Japanese character
780         
781         Make sure we only break after a space (and not any other valid line-break) if
782         the style is -webkit-line-break: after-white-space (e.g. for a contentEditable div).
783         I also did a logic shuffle at Mitz's request to prevent doing an if on the same expression
784         twice in quick succession.
785
786         * rendering/bidi.cpp:
787         (WebCore::RenderBlock::findNextLineBreak): 
788
789 2006-10-01  Alexey Proskuryakov  <ap@nypop.com>
790
791         Reviewed by Maciej and Darin.
792
793         http://bugs.webkit.org/show_bug.cgi?id=4372
794         JavaScript document.write page form does not submit in Safari
795
796         Test: fast/forms/document-write.html
797
798         * page/Frame.cpp:
799         (WebCore::Frame::submitForm): Don't check for parsing().
800
801 2006-10-01  Alexey Proskuryakov  <ap@nypop.com>
802
803         Build fix.
804
805         * bridge/mac/FrameViewMac.mm: Add missing #imports.
806
807 2006-10-01  Dave Hyatt  <hyatt@apple.com>
808
809         Refactor the code that passes mouse presses to the Mac scrollbar and make it cross-platform.
810        
811         Reviewed by mitz
812
813         * bridge/mac/FrameMac.mm:
814         (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
815         * bridge/mac/FrameViewMac.mm:
816         (WebCore::FrameView::passMousePressEventToScrollbar):
817         * page/FrameView.cpp:
818         (WebCore::FrameView::handleMousePressEvent):
819         (WebCore::FrameView::setMousePressed):
820         * page/FrameView.h:
821         * platform/win/TemporaryLinkStubs.cpp:
822         (FrameView::passMousePressEventToScrollbar):
823
824 2006-09-30  Sam Weinig  <sam.weinig@gmail.com>
825
826         Reviewed by Darin.
827
828         Patch for http://bugs.webkit.org/show_bug.cgi?id=11102
829         Add more SVG Objective-C DOM bindings
830
831         - Auto-generate Objective-C DOM bindings for DOMSVGAElement,
832           DOMSVGAnimateColorElement, DOMSVGAnimateElement, DOMSVGAnimateTransformElement,
833           DOMSVGAnimatedPathData, DOMSVGAnimatedPoints, DOMSVGAnimatedPreserveAspectRatio,
834           DOMSVGAnimationElement, DOMSVGCircleElement, DOMSVGClipPathElement, DOMSVGColor,
835           DOMSVGCursorElement, DOMSVGDefsElement, DOMSVGDescElement, DOMSVGDocument, 
836           DOMSVGEllipseElement, DOMSVGPreserveAspectRatio, and DOMSVGURIReference.
837
838         * DerivedSources.make:
839         * WebCore.xcodeproj/project.pbxproj:
840         * bindings/objc/DOMInternal.h:
841         * bindings/objc/DOMSVG.h:
842         * bindings/scripts/CodeGeneratorObjC.pm:
843         * ksvg2/svg/SVGAElement.idl:
844         * ksvg2/svg/SVGAnimateColorElement.idl:
845         * ksvg2/svg/SVGAnimateElement.idl:
846         * ksvg2/svg/SVGAnimateTransformElement.idl:
847         * ksvg2/svg/SVGAnimatedPathData.idl:
848         * ksvg2/svg/SVGAnimatedPoints.idl:
849         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl:
850         * ksvg2/svg/SVGAnimationElement.idl:
851         * ksvg2/svg/SVGCircleElement.idl:
852         * ksvg2/svg/SVGClipPathElement.idl:
853         * ksvg2/svg/SVGColor.idl:
854         * ksvg2/svg/SVGCursorElement.idl:
855         * ksvg2/svg/SVGDefsElement.idl:
856         * ksvg2/svg/SVGDescElement.idl:
857         * ksvg2/svg/SVGDocument.idl:
858         * ksvg2/svg/SVGEllipseElement.idl:
859         * ksvg2/svg/SVGPointList.idl:
860         * ksvg2/svg/SVGPreserveAspectRatio.idl:
861         * ksvg2/svg/SVGRect.idl:
862         * ksvg2/svg/SVGSVGElement.idl:
863
864 2006-09-30  Maciej Stachowiak  <mjs@apple.com>
865
866         Reviewed by Adele.
867
868         - fix build
869
870         * platform/FloatRect.h:
871         (WebCore::FloatRect::contains): Added; not exactly the same semantic as IntRect containment
872         but more appropriate for path-type stuff.
873         * platform/cg/PathCG.cpp:
874         (WebCore::Path::contains): Don't use enclosingIntRect, just use FloatRect::contains.
875
876 2006-09-30  Alexey Proskuryakov  <ap@nypop.com>
877
878         Reviewed by Darin.
879
880         http://bugs.webkit.org/show_bug.cgi?id=11011
881         External CSS is parsed as iso-8859-1 even though the main document is utf-8
882
883         Test: fast/encoding/css-charset-default.xhtml
884
885         * loader/CachedResourceClient.h:
886         (WebCore::CachedResourceClient::setCSSStyleSheet):
887         (WebCore::CachedResourceClient::setXSLStyleSheet):
888         Divided setStyleSheet into setCSSStyleSheet and setXSLStyleSheet. The former
889         takes an additional charset parameter, to be passed to CSSStyleSheet constructor.
890
891         * css/CSSImportRule.cpp:
892         (WebCore::CSSImportRule::setCSSStyleSheet):
893         (WebCore::CSSImportRule::insertedIntoParent): Default to parent stylesheet's charset.
894         * css/CSSImportRule.h:
895
896         * css/CSSStyleSheet.cpp:
897         (WebCore::CSSStyleSheet::CSSStyleSheet):
898         * css/CSSStyleSheet.h:
899         Added an m_charset member to be used when loading child stylesheets. Removed an unused m_implicit
900         member. Changed some String parameters to const String&.
901
902         * css/StyleSheet.cpp:
903         (WebCore::StyleSheet::StyleSheet):
904         * css/StyleSheet.h:
905         Changed some String parameters to const String&. Removed an unused (even unimplemented) constructor.
906
907         * css/StyleSheetList.cpp:
908         (WebCore::StyleSheetList::length):
909         (WebCore::StyleSheetList::item):
910         * css/StyleSheetList.h:
911         Special-casing implicit stylesheets seemed to be dead code, removed.
912
913         * dom/Document.cpp:
914         (WebCore::Document::setCSSStyleSheet):
915         (WebCore::Document::recalcStyleSelector):
916         * dom/Document.h:
917         Renamed setStyleSheet() to setCSSStyleSheet().
918
919         * dom/ProcessingInstruction.cpp:
920         (WebCore::ProcessingInstruction::checkStyleSheet): Pass a correct charset to requestCSSStyleSheet().
921         (WebCore::ProcessingInstruction::setCSSStyleSheet):
922         (WebCore::ProcessingInstruction::setXSLStyleSheet):
923         (WebCore::ProcessingInstruction::parseStyleSheet):
924         * dom/ProcessingInstruction.h:
925
926         * html/HTMLLinkElement.cpp:
927         (WebCore::HTMLLinkElement::process): Default to document encoding if a charset attribute 
928         is not specified.
929         (WebCore::HTMLLinkElement::setCSSStyleSheet):
930         * html/HTMLLinkElement.h:
931
932         * html/HTMLStyleElement.cpp:
933         (WebCore::HTMLStyleElement::childrenChanged):
934         * ksvg2/svg/SVGStyleElement.cpp:
935         (WebCore::SVGStyleElement::childrenChanged):
936         Inherit URL and charset from the document.
937
938         * loader/Cache.cpp:
939         (WebCore::Cache::requestCSSStyleSheet):
940         * loader/Cache.h:
941         Adjust for setStyleSheet() renaming.
942
943         * loader/CachedCSSStyleSheet.h: Removed an unused constructor.
944         * loader/CachedCSSStyleSheet.cpp:
945         (WebCore::CachedCSSStyleSheet::ref):
946         (WebCore::CachedCSSStyleSheet::deref):
947         (WebCore::CachedCSSStyleSheet::checkNotify):
948         Pass the encoding to setCSSStyleSheet().
949
950         * loader/CachedXSLStyleSheet.cpp:
951         (WebCore::CachedXSLStyleSheet::ref):
952         (WebCore::CachedXSLStyleSheet::checkNotify):
953         * loader/DocLoader.cpp:
954         (WebCore::DocLoader::requestCSSStyleSheet):
955         * loader/DocLoader.h:
956         * page/Frame.cpp:
957         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
958         (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
959         * xml/XSLImportRule.cpp:
960         (WebCore::XSLImportRule::setXSLStyleSheet):
961         (WebCore::XSLImportRule::loadSheet):
962         * xml/XSLImportRule.h:
963         Adjust for setStyleSheet() renaming.
964
965 2006-09-30  Rob Buis  <buis@kde.org>
966
967         Reviewed by eseidel.
968
969         http://bugs.webkit.org/show_bug.cgi?id=11096
970         Hit testing for polylines fails
971
972         Fix Path::contains so it handles filled, non-closed paths too.
973
974         * platform/cg/PathCG.cpp:
975         (WebCore::Path::contains):
976
977 2006-09-30  Dave Hyatt  <hyatt@apple.com>
978
979         Refactor subframe event handling to hide more of the Mac-specific logic from the cross-platform code.
980         Stub out a capturing API that mimics the way Web browsers capture events and route them to specific
981         subframes while the mouse is down.
982       
983         Reviewed by mitzpettel
984
985         * bridge/mac/FrameMac.h:
986         * bridge/mac/FrameMac.mm:
987         (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
988         (WebCore::FrameMac::passWheelEventToWidget):
989         * bridge/mac/FrameViewMac.mm:
990         (WebCore::FrameView::passMousePressEventToSubframe):
991         (WebCore::FrameView::passMouseMoveEventToSubframe):
992         (WebCore::FrameView::passMouseReleaseEventToSubframe):
993         (WebCore::FrameView::passWheelEventToSubframe):
994         * page/Frame.cpp:
995         * page/Frame.h:
996         * page/FrameView.cpp:
997         (WebCore::subframeForTargetNode):
998         (WebCore::FrameView::handleMousePressEvent):
999         (WebCore::FrameView::handleMouseDoubleClickEvent):
1000         (WebCore::FrameView::handleMouseMoveEvent):
1001         (WebCore::FrameView::handleMouseReleaseEvent):
1002         (WebCore::FrameView::handleWheelEvent):
1003         * page/FrameView.h:
1004         * platform/ScrollBar.h:
1005         (WebCore::ScrollBar::handleMouseMoveEvent):
1006         (WebCore::ScrollBar::handleMouseOutEvent):
1007         * platform/Widget.h:
1008         (WebCore::Widget::handleMouseMoveEvent):
1009         (WebCore::Widget::handleMouseReleaseEvent):
1010         * platform/win/TemporaryLinkStubs.cpp:
1011         (FrameView::passMousePressEventToSubframe):
1012         (FrameView::passMouseMoveEventToSubframe):
1013         (FrameView::passMouseReleaseEventToSubframe):
1014         (FrameView::passWheelEventToSubframe):
1015         (Widget::capturingMouse):
1016         (Widget::setCapturingMouse):
1017         (Widget::capturingTarget):
1018         (Widget::capturingChild):
1019         (Widget::setCapturingChild):
1020         * rendering/RenderView.cpp:
1021         (WebCore::RenderView::paintBoxDecorations):
1022
1023 2006-09-29  MorganL  <morganl.webkit@yahoo.com>
1024
1025         Reviewed by Adele.
1026
1027         Fixes windows bustage:
1028         http://bugs.webkit.org/show_bug.cgi?id=11093
1029
1030         * platform/win/PlatformScrollBar.h:
1031         * platform/win/TemporaryLinkStubs.cpp:
1032         (PlatformScrollBar::PlatformScrollBar):
1033         (ScrollBar::ScrollBar):
1034
1035 2006-09-29  David Hyatt  <hyatt@apple.com>
1036
1037         Eliminate RenderLayer::gScrollBar in favor of caching the scrollbar hit
1038         in RenderObject::NodeInfo (and then propagating that Widget to
1039         MouseEventWithHitTestResults).
1040
1041         This allows RenderListBox and RenderBlock to do the same thing when the
1042         mouse is over the scrollbar.
1043
1044         Also land fix to support font-size: 0.
1045
1046         Reviewed by mjs (scrollbar), eric (font-size)
1047
1048         * dom/Document.cpp:
1049         (WebCore::Document::prepareMouseEvent):
1050         * page/Frame.cpp:
1051         (WebCore::Frame::passWidgetMouseDownEventToWidget):
1052         * page/FrameView.cpp:
1053         (WebCore::selectCursor):
1054         (WebCore::FrameView::handleMouseMoveEvent):
1055         (WebCore::FrameView::dispatchMouseEvent):
1056         * page/MouseEventWithHitTestResults.cpp:
1057         (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
1058         * page/MouseEventWithHitTestResults.h:
1059         (WebCore::MouseEventWithHitTestResults::scrollbar):
1060         * rendering/RenderBlock.cpp:
1061         (WebCore::RenderBlock::isPointInScrollbar):
1062         (WebCore::RenderBlock::nodeAtPoint):
1063         * rendering/RenderBlock.h:
1064         * rendering/RenderLayer.cpp:
1065         (WebCore::RenderLayer::hitTest):
1066         * rendering/RenderLayer.h:
1067         (WebCore::RenderLayer::getHiddenBehavior):
1068         * rendering/RenderListBox.cpp:
1069         (WebCore::RenderListBox::RenderListBox):
1070         (WebCore::RenderListBox::~RenderListBox):
1071         (WebCore::RenderListBox::isPointInScrollbar):
1072         * rendering/RenderListBox.h:
1073         * rendering/RenderObject.h:
1074         (WebCore::RenderObject::NodeInfo::NodeInfo):
1075         (WebCore::RenderObject::NodeInfo::scrollbar):
1076         (WebCore::RenderObject::NodeInfo::setScrollbar):
1077
1078 2006-09-29  MorganL  <morganl.webkit@yahoo.com>
1079
1080         Reviewed by Adele.
1081
1082         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
1083
1084         * platform/win/ScrollViewWin.cpp:
1085         (WebCore::ScrollView::convertToContainingWindow):
1086         (WebCore::ScrollView::convertFromContainingWindow):
1087         * platform/win/WidgetWin.cpp:
1088         (WebCore::Widget::convertToContainingWindow):
1089         (WebCore::Widget::convertFromContainingWindow):
1090
1091 2006-09-29  Adele Peterson  <adele@apple.com>
1092
1093         Updated with new argument for PlatformScrollBar.
1094
1095         * platform/win/TemporaryLinkStubs.cpp:
1096         (PlatformScrollBar::PlatformScrollBar):
1097
1098 2006-09-29  Adele Peterson  <adele@apple.com>
1099
1100         Reviewed by Hyatt.
1101
1102         Fixing build bustage with cast to int.
1103
1104         * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::lastSelectedListIndex):
1105
1106 2006-09-29  Adele Peterson  <adele@apple.com>
1107
1108         Fixing accidental include.
1109
1110         * rendering/RenderListBox.cpp:
1111
1112 2006-09-29  Adele Peterson  <adele@apple.com>
1113
1114         Adding RenderListBox files.
1115
1116         * WebCore.vcproj/WebCore/WebCore.vcproj:
1117
1118 2006-09-29  Adele Peterson  <adele@apple.com>
1119
1120         Reviewed by Adam.
1121
1122         Initial implementation of engine-based list box control.
1123
1124         * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
1125
1126         * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
1127         * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
1128         (WebCore::FrameMac::FrameMac):
1129         (WebCore::FrameMac::handleMousePressEvent):
1130         (WebCore::FrameMac::handleMouseMoveEvent):
1131         (WebCore::FrameMac::mouseDown):
1132
1133         * page/Frame.cpp:
1134         (WebCore::Frame::handleMouseMoveEvent):
1135         (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
1136         (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
1137         (WebCore::Frame::autoscrollTimerFired): ditto.
1138         (WebCore::Frame::stopAutoscrollTimer): ditto.
1139         (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
1140         * page/Frame.h:
1141         * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
1142
1143         * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
1144         (WebCore::FrameViewPrivate::reset):
1145         (WebCore::FrameView::currentMousePosition):
1146         (WebCore::FrameView::handleMousePressEvent):
1147         (WebCore::FrameView::handleMouseDoubleClickEvent):
1148         (WebCore::selectCursor):
1149         (WebCore::FrameView::handleMouseMoveEvent):
1150         (WebCore::FrameView::handleMouseReleaseEvent):
1151         * page/FrameView.h:
1152
1153         * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument.  The list box will use a smaller scroll bar size.
1154         * platform/ScrollBar.h:
1155         (WebCore::):
1156         (WebCore::ScrollBar::controlSize):
1157         * platform/mac/PlatformScrollBar.h:
1158         * platform/mac/PlatformScrollBarMac.mm:
1159         (NSControlSizeForScrollBarControlSize):
1160         (-[WebCoreScrollBar initWithPlatformScrollBar:]):
1161         (WebCore::PlatformScrollBar::PlatformScrollBar):
1162
1163         * rendering/RenderBlock.h:
1164         * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
1165         * rendering/RenderLayer.h:
1166         * rendering/RenderObject.cpp:
1167         (WebCore::RenderObject::shouldAutoscroll):
1168         (WebCore::RenderObject::autoscroll):
1169         * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
1170
1171         * css/html4.css: Added properties for new list boxes.
1172
1173         * html/HTMLOptionElement.cpp:
1174         (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
1175         (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
1176         * html/HTMLOptionElement.h: Added disabled method.
1177
1178         * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
1179         (WebCore::HTMLSelectElement::recalcStyle):
1180         (WebCore::HTMLSelectElement::lastSelectedListIndex):
1181         (WebCore::HTMLSelectElement::deselectItems):
1182         (WebCore::HTMLSelectElement::setSelectedIndex):
1183         (WebCore::HTMLSelectElement::isKeyboardFocusable):
1184         (WebCore::HTMLSelectElement::isMouseFocusable):
1185         (WebCore::HTMLSelectElement::createRenderer):
1186         (WebCore::HTMLSelectElement::recalcListItems):
1187         (WebCore::HTMLSelectElement::setRecalcListItems):
1188         (WebCore::HTMLSelectElement::reset):
1189         (WebCore::HTMLSelectElement::notifyOptionSelected):
1190         (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
1191         (WebCore::HTMLSelectElement::nextSelectableListIndex):
1192         (WebCore::HTMLSelectElement::previousSelectableListIndex):
1193         * html/HTMLSelectElement.h:
1194
1195         * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
1196         (WebCore::RenderTheme::paint):
1197         (WebCore::RenderTheme::paintBorderOnly):
1198         (WebCore::RenderTheme::paintDecorations):
1199         (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
1200         (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
1201         (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
1202         (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
1203         (WebCore::RenderTheme::isControlStyled):
1204         (WebCore::RenderTheme::supportsFocusRing):
1205         * rendering/RenderTheme.h:
1206         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
1207
1208         * rendering/RenderListBox.cpp: Added.
1209         (WebCore::RenderListBox::RenderListBox):
1210         (WebCore::RenderListBox::~RenderListBox):
1211         (WebCore::RenderListBox::setStyle):
1212         (WebCore::RenderListBox::updateFromElement):
1213         (WebCore::RenderListBox::calcMinMaxWidth):
1214         (WebCore::RenderListBox::size):
1215         (WebCore::RenderListBox::numItems):
1216         (WebCore::RenderListBox::calcHeight):
1217         (WebCore::RenderListBox::baselinePosition):
1218         (WebCore::RenderListBox::itemBoundingBoxRect):
1219         (WebCore::RenderListBox::paintObject):
1220         (WebCore::RenderListBox::paintScrollbar):
1221         (WebCore::RenderListBox::paintItemForeground):
1222         (WebCore::RenderListBox::paintItemBackground):
1223         (WebCore::RenderListBox::scrollBarTarget):
1224         (WebCore::RenderListBox::isPointInScrollbar):
1225         (WebCore::RenderListBox::optionAtPoint):
1226         (WebCore::RenderListBox::autoscroll):
1227         (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
1228         (WebCore::RenderListBox::scroll):
1229         (WebCore::RenderListBox::valueChanged):
1230         * rendering/RenderListBox.h: Added.
1231         (WebCore::RenderListBox::isListBox):
1232         (WebCore::RenderListBox::selectionChanged):
1233         (WebCore::RenderListBox::setSelectionChanged):
1234         (WebCore::RenderListBox::canHaveChildren):
1235         (WebCore::RenderListBox::renderName):
1236         (WebCore::RenderListBox::setOptionsChanged):
1237         (WebCore::RenderListBox::shouldAutoscroll):
1238         (WebCore::RenderListBox::listIndexIsVisible):
1239
1240 2006-09-29  Beth Dakin  <bdakin@apple.com>
1241
1242         Reviewed by Darin.
1243
1244         We had a bug where html4.css was ignoring Media Queries. In the end 
1245         the problem was that we were trying to send a char* to the 
1246         MediaQueryEvaluator constructor that expects a String, but the 
1247         char* got interpreted as a bool, the wrong constructor was called, 
1248         and the media type was never set.
1249
1250         No test case possible since this only affects html4.css
1251
1252         * css/MediaQueryEvaluator.cpp: New constructor that expects takes a 
1253         char*
1254         (WebCore::MediaQueryEvaluator):
1255         * css/MediaQueryEvaluator.h: Same.
1256
1257 2006-09-29  Geoffrey Garen  <ggaren@apple.com>
1258
1259         Reviewed by John, Maciej.
1260         
1261         Integrated some frame and iframe code. I'm trying to fix up frame ownership
1262         and loading. Reducing the number of different code paths involved
1263         seemed like a good first step.
1264         
1265         As a side effect, I fixed a bug where FRAME elements would report their
1266         src attributes as relative, rather than compelete, URLs. (IFRAME elements
1267         had the correct complete URL behavior.)
1268
1269         * html/HTMLFrameElement.cpp:
1270         (WebCore::HTMLFrameElement::isURLAllowed): Fixed comment typo
1271         (WebCore::HTMLFrameElement::openURL):
1272             (1) Removed checks that requestFrame does for us
1273             (2) Added isURLAllowed check, to have one clear bottleneck for it
1274             (3) Added viewsource check, to have one clear bottleneck for it
1275         (WebCore::HTMLFrameElement::close): Changed to use the common contentFrame()
1276         method, instead of finding our content frame in our own unique way.
1277         (WebCore::HTMLFrameElement::setLocation): Removed isURLAllowed check,
1278         since openURL does this for us now.
1279         (WebCore::HTMLFrameElement::src): Return complete URL instead of relative.
1280         This is what FF does, and it made no sense to have different behaviors
1281         for FRAME and IFRAME elements.
1282         * html/HTMLIFrameElement.cpp:
1283         (WebCore::HTMLIFrameElement::HTMLIFrameElement): Removed duplicate init
1284         code.
1285         * html/HTMLIFrameElement.h: Removed src() and openURL() methods, since
1286         HTMLFrameElement now does everything we need.
1287
1288 2006-09-30  Nikolas Zimmermann  <zimmermann@kde.org>
1289
1290         Reviewed by Hyatt.
1291
1292         Fix Qt/Linux build.
1293
1294         * CMakeLists.txt:
1295         * platform/qt/ScrollViewQt.cpp:
1296         (WebCore::ScrollView::convertToContainingWindow):
1297         (WebCore::ScrollView::convertFromContainingWindow):
1298         * platform/qt/TemporaryLinkStubs.cpp:
1299         (WebCore::signedPublicKeyAndChallengeString):
1300         * platform/qt/WidgetQt.cpp:
1301         (WebCore::Widget::convertToContainingWindow):
1302         (WebCore::Widget::convertFromContainingWindow):
1303
1304 2006-09-29  Sam Weinig  <sam.weinig@gmail.com>
1305
1306         Reviewed by Tim H.
1307
1308         Patch for http://bugs.webkit.org/show_bug.cgi?id=11082
1309         Simplify Internal methods for the auto-generated Objective-C DOM code
1310
1311         - Auto-generate the internal methods for more Objective-C classes.
1312
1313         * WebCore.xcodeproj/project.pbxproj:
1314         * bindings/objc/DOM.mm:
1315         * bindings/objc/DOMCSS.mm:
1316         (-[DOMStyleSheet WebCore::]):
1317         (+[DOMStyleSheet _styleSheetWith:WebCore::]):
1318         (-[DOMCSSRule WebCore::]):
1319         (-[DOMCSSRule _initWithCSSRule:WebCore::]):
1320         (+[DOMCSSRule _CSSRuleWith:WebCore::]):
1321         (-[DOMCSSValue WebCore::]):
1322         (-[DOMCSSValue _initWithCSSValue:WebCore::]):
1323         (+[DOMCSSValue _CSSValueWith:WebCore::]):
1324         * bindings/objc/DOMHTMLAppletElement.mm:
1325         (-[DOMHTMLAppletElement WebCore::]):
1326         (+[DOMHTMLAppletElement _HTMLOptionElementWith:WebCore::]):
1327         * bindings/objc/DOMHTMLEmbedElement.mm:
1328         (-[DOMHTMLEmbedElement WebCore::]):
1329         (+[DOMHTMLEmbedElement _HTMLEmbedElementWith:WebCore::]):
1330         * bindings/objc/DOMInternal.h:
1331         * bindings/objc/DOMInternal.mm:
1332         * bindings/scripts/CodeGeneratorObjC.pm:
1333         * css/CSSCharsetRule.idl:
1334         * css/CSSFontFaceRule.idl:
1335         * css/CSSImportRule.idl:
1336         * css/CSSMediaRule.idl:
1337         * css/CSSPageRule.idl:
1338         * css/CSSPrimitiveValue.idl:
1339         * css/CSSStyleRule.idl:
1340         * css/CSSStyleSheet.idl:
1341         * css/CSSUnknownRule.idl:
1342         * css/CSSValueList.idl:
1343         * dom/KeyboardEvent.idl:
1344         * dom/MouseEvent.idl:
1345         * dom/MutationEvent.idl:
1346         * dom/NodeIterator.idl:
1347         * dom/OverflowEvent.idl:
1348         * dom/UIEvent.idl:
1349         * dom/WheelEvent.idl:
1350
1351 2006-09-29  David Harrison  <harrison@apple.com>
1352
1353         Reviewed by John Sullivan.
1354
1355         <rdar://problem/4663772> REGRESSION: Cannot type in Japanese after replying to a particular message
1356         <rdar://problem/4673293> REGRESSION: Can't enter the Japanese characters in Mail or Blot
1357
1358         Test added
1359         * fast/text/attributed-substring-from-range-001.html
1360
1361         * bridge/mac/FrameMac.mm:
1362         (WebCore::FrameMac::attributedString):
1363         Handle non-zero offsets when start and/or end node is a container. Offset used to be ignored in this case.
1364         Also, add validation of the range.
1365
1366 2006-09-29  Rob Buis  <buis@kde.org>
1367
1368         Reviewed by Maciej.
1369
1370         http://bugs.webkit.org/show_bug.cgi?id=10893
1371         InsertRule can not handle @import statements
1372
1373         Allow @import as part of a css rule.
1374
1375         * css/CSSGrammar.y:
1376
1377 2006-09-28  David Hyatt  <hyatt@apple.com>
1378
1379         Switch over the Mac-specific uses of viewportToContents/contentsToViewport.
1380
1381         * bridge/mac/FrameMac.mm:
1382         (WebCore::FrameMac::eventMayStartDrag):
1383         (WebCore::FrameMac::dragHysteresisExceeded):
1384         (WebCore::FrameMac::mouseDown):
1385         (WebCore::FrameMac::shouldDragAutoNode):
1386         (WebCore::FrameMac::sendContextMenuEvent):
1387         * bridge/mac/WebCoreFrameBridge.mm:
1388         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
1389
1390 2006-09-28  Dave Hyatt  <hyatt@apple.com>
1391
1392         This patch eliminates viewportToContents/contentsToViewport in favor of convertTo/FromContainingWindow.
1393         ScrollView now subclasses these methods to factor in its scrollOffset and to deal with the document
1394         view.
1395        
1396         Reviewed by mjs (the convertTo/From changes), (I added the elimination of viewportToContents to
1397         the patch after review, once I realized that these new functions essentially do the same thing.)
1398
1399         * dom/EventTargetNode.cpp:
1400         (WebCore::EventTargetNode::dispatchMouseEvent):
1401         (WebCore::EventTargetNode::dispatchWheelEvent):
1402         * page/Frame.cpp:
1403         (WebCore::Frame::selectClosestWordFromMouseEvent):
1404         (WebCore::Frame::handleMousePressEventTripleClick):
1405         (WebCore::Frame::handleMousePressEventSingleClick):
1406         (WebCore::Frame::handleMouseMoveEvent):
1407         (WebCore::Frame::handleMouseReleaseEvent):
1408         * page/FrameView.cpp:
1409         (WebCore::FrameView::handleMousePressEvent):
1410         (WebCore::selectCursor):
1411         (WebCore::FrameView::dispatchDragEvent):
1412         (WebCore::FrameView::prepareMouseEvent):
1413         (WebCore::FrameView::handleWheelEvent):
1414         * platform/ScrollView.h:
1415         * platform/Widget.cpp:
1416         (WebCore::Widget::convertToContainingWindow):
1417         * platform/Widget.h:
1418         * platform/mac/ScrollViewMac.mm:
1419         (WebCore::ScrollView::convertToContainingWindow):
1420         (WebCore::ScrollView::convertFromContainingWindow):
1421         * platform/mac/WidgetMac.mm:
1422         (WebCore::Widget::convertToContainingWindow):
1423         (WebCore::Widget::convertFromContainingWindow):
1424         * platform/win/ScrollViewWin.cpp:
1425         (WebCore::ScrollView::convertToContainingWindow):
1426         (WebCore::ScrollView::convertFromContainingWindow):
1427         * rendering/RenderLayer.cpp:
1428         (WebCore::RenderLayer::resize):
1429
1430 2006-09-28  Alice Liu  <alice.liu@apple.com>
1431
1432         Build fix by adding missing files for CommandByName
1433
1434         * WebCore.xcodeproj/project.pbxproj:
1435
1436 2006-09-28  Alice Liu  <alice.liu@apple.com>
1437
1438         Adding CommandByName files to the vcproj
1439
1440         * WebCore.vcproj/WebCore/WebCore.vcproj:
1441
1442 2006-09-28  Alice Liu  <alice.liu@apple.com>
1443
1444         Reviewed by Adam Roben.
1445
1446         This patch adds a command class that is attached to the frame so the frame can more easily execute commands such as copy, paste, select, etc. 
1447         This patch also exposes some UBRK-related utilities so that they can be used elsewhere.
1448         This patch also changes windows PlatformMouseEvent so that we can detect multiple-click mouse events
1449
1450         * editing/CommandByName.cpp: Added.
1451         Added a command class that hangs off the frame so the frame can call commands more easily.  
1452         (WebCore::Frame::commandImp):
1453         (WebCore::Frame::execCopy):
1454         (WebCore::Frame::execCut):
1455         (WebCore::Frame::execDelete):
1456         (WebCore::Frame::execForwardDelete):
1457         (WebCore::Frame::execPaste):
1458         (WebCore::Frame::execMoveLeft):
1459         (WebCore::Frame::execMoveRight):
1460         (WebCore::Frame::execMoveUp):
1461         (WebCore::Frame::execMoveDown):
1462         (WebCore::Frame::execSelectAll):
1463         (WebCore::Frame::execSelectLeft):
1464         (WebCore::Frame::execSelectRight):
1465         (WebCore::Frame::execSelectUp):
1466         (WebCore::Frame::execSelectDown):
1467         (WebCore::Frame::enabled):
1468         (WebCore::Frame::enabledAnySelection):
1469         (WebCore::Frame::enabledAnyEditableSelection):
1470         (WebCore::Frame::enabledPaste):
1471         (WebCore::Frame::enabledAnyRangeSelection):
1472         (WebCore::Frame::enabledAnyEditableRangeSelection):
1473         (WebCore::Frame::createCommandDictionary):
1474         (WebCore::Frame::Command::):
1475         (WebCore:::m_frame):
1476         (WebCore::CommandByName::execCommand):
1477         * editing/CommandByName.h: Added.
1478         * page/Frame.cpp:
1479         Added implementation of accessor for CommandByName member
1480         (WebCore::Frame::command):
1481         * page/Frame.h:
1482         Added accessor for CommandByName member
1483         * page/FramePrivate.h:
1484         Added a CommandByName member
1485         (WebCore::FramePrivate::FramePrivate):
1486         * platform/PlatformMouseEvent.h:
1487         Changed constructor prototype
1488         * platform/StringImpl.cpp:
1489         Exposing getWordBreakIterator to be used elsewhere
1490         (WebCore::getWordBreakIterator):
1491         * platform/StringImpl.h:
1492         Exposing getWordBreakIterator to be used elsewhere
1493         * platform/win/MouseEventWin.cpp:
1494         Changed the PlatformMouseEvent on windows so that we "roll our own" multi-click mouse events instead of relying on the system to tell us, enabling us to detect triple-clicks
1495         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1496
1497 2006-09-28  Adam Roben  <aroben@apple.com>
1498
1499         Reviewed by Adele.
1500
1501         Remove no-longer-used PopUpButton.
1502
1503         * WebCore.vcproj/WebCore/WebCore.vcproj: Remove PopUpButton.h
1504         * WebCore.xcodeproj/project.pbxproj: Remove PopUpButton.h,
1505         PopUpButtonMac.mm
1506         * platform/PopUpButton.h: Removed.
1507         * platform/mac/PopUpButtonMac.mm: Removed.
1508         * platform/win/TemporaryLinkStubs.cpp: Remove PopUpButton:: methods
1509         * rendering/DeprecatedRenderSelect.cpp: Change #include of
1510         PopUpButton.h to ListBox.h
1511
1512 2006-09-28  Darin Adler  <darin@apple.com>
1513
1514         Reviewed by Alice.
1515
1516         - change that should fix <rdar://problem/4733044> REGRESSION: XML iBench shows
1517           10% perf. regression (copying strings while decoding)
1518
1519         Use Vector<UChar> instead of String when building up the decoded string in
1520         the ICU and Mac decoders. Using String leads to O(n^2) behavior because
1521         String grows the buffer every single time that append is called. Using
1522         Vector::append instead of String::append also avoids constructing a string
1523         each time just to append and a questionable copy that is done inside the
1524         String::append function which also contributed to the slowness.
1525
1526         * platform/PlatformString.h:
1527         * platform/String.cpp: (WebCore::String::adopt): Added. Makes a String from a
1528         Vector<UChar>, adopting the buffer from the vector to avoid copying and memory
1529         allocation.
1530         * platform/StringImpl.h:
1531         * platform/StringImpl.cpp: (WebCore::StringImpl::adopt): Ditto.
1532
1533         * platform/StreamingTextDecoder.h:
1534         * platform/StreamingTextDecoder.cpp: (WebCore::TextCodec::appendOmittingBOM):
1535         Change to use a Vector<UChar> instead of a String, since vectors have better
1536         resizing performance (they store a separate capacity).
1537
1538         * platform/StreamingTextDecoderICU.cpp: (WebCore::TextCodecICU::decode):
1539         * platform/mac/StreamingTextDecoderMac.cpp: (WebCore::TextCodecMac::decode):
1540         Change to use Vector<UChar> instead of String and then create a string at
1541         the end of the process using the new adopt function.
1542
1543 2006-09-28  Sam Weinig  <sam.weinig@gmail.com>
1544
1545         Reviewed by Tim H.
1546
1547         Patch for http://bugs.webkit.org/show_bug.cgi?id=11057
1548         Auto-generate more SVG Objective-C bindings
1549
1550         - Auto-generates DOMSVGAnimatedAngle, DOMSVGAnimatedBoolean, 
1551           DOMSVGAnimatedEnumeration, DOMSVGAnimatedInteger, DOMSVGAnimatedLength,
1552           DOMSVGAnimatedLengthList, DOMSVGAnimatedNumber, DOMSVGAnimatedString,
1553           DOMSVGAnimatedTransformList, DOMSVGExternalResourcesRequired,
1554           DOMSVGLangSpace, DOMSVGLocatable, DOMSVGMetadataElement, DOMSVGRectElement,
1555           DOMSVGStringList, DOMSVGStylable, DOMSVGStyleElement, DOMSVGTests, 
1556           and DOMSVGTransformable.
1557
1558         - Adds ability to CodeGeneratorObjC.pm to handle interfaces with mulitple
1559           parent interfaces and the SVG animated classes.
1560
1561         - Corrects CodeGenerator.pm to only skip the first parent for the main 
1562           interface.
1563
1564         * DerivedSources.make:
1565         * WebCore.xcodeproj/project.pbxproj:
1566         * bindings/objc/DOMInternal.h:
1567         * bindings/objc/DOMSVG.h:
1568         * bindings/scripts/CodeGenerator.pm:
1569         * bindings/scripts/CodeGeneratorObjC.pm:
1570         * ksvg2/svg/SVGAnimatedAngle.idl:
1571         * ksvg2/svg/SVGAnimatedBoolean.idl:
1572         * ksvg2/svg/SVGAnimatedEnumeration.idl:
1573         * ksvg2/svg/SVGAnimatedInteger.idl:
1574         * ksvg2/svg/SVGAnimatedLength.idl:
1575         * ksvg2/svg/SVGAnimatedLengthList.idl:
1576         * ksvg2/svg/SVGAnimatedNumber.idl:
1577         * ksvg2/svg/SVGAnimatedPathData.idl:
1578         * ksvg2/svg/SVGAnimatedString.idl:
1579         * ksvg2/svg/SVGAnimatedTransformList.idl:
1580         * ksvg2/svg/SVGExternalResourcesRequired.idl:
1581         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl:
1582         * ksvg2/svg/SVGFitToViewBox.idl:
1583         * ksvg2/svg/SVGLangSpace.idl:
1584         * ksvg2/svg/SVGLocatable.idl:
1585         * ksvg2/svg/SVGMetadataElement.idl:
1586         * ksvg2/svg/SVGStringList.idl:
1587         * ksvg2/svg/SVGStylable.idl:
1588         * ksvg2/svg/SVGStyleElement.idl:
1589         * ksvg2/svg/SVGTests.idl:
1590         * ksvg2/svg/SVGTransformable.idl:
1591         * ksvg2/svg/SVGURIReference.idl:
1592         * ksvg2/svg/SVGUnitTypes.idl:
1593         * ksvg2/svg/SVGZoomAndPan.idl:
1594
1595 2006-09-28  Brady Eidson  <beidson@apple.com>
1596
1597         Reviewed by Mitz Pettel!!!
1598
1599         Change the error code check for common functions from SQLResultOk to SQLResultDone 
1600
1601         * loader/icon/IconDatabase.cpp:
1602         (WebCore::IconDatabase::forgetPageURLQuery):
1603         (WebCore::IconDatabase::setIconIDForPageURLQuery):
1604         (WebCore::IconDatabase::addIconForIconURLQuery):
1605
1606 2006-09-28  Dave Hyatt  <hyatt@apple.com>
1607
1608         Just eliminate MapWindowPoints usage and use the HWND as
1609         the viewport.
1610
1611         * platform/win/MouseEventWin.cpp:
1612         (WebCore::positionForEvent):
1613         * platform/win/ScrollViewWin.cpp:
1614         (WebCore::ScrollView::viewportToContents):
1615         (WebCore::ScrollView::contentsToViewport):
1616
1617 2006-09-27  David Hyatt  <hyatt@apple.com>
1618
1619         Fix for bug 9222, cursor is wrong when mousing over overflow scrollbars in textareas.  Make sure
1620         selectCursor checks for whether or not a scrollbar was hit.  Also stub out a mouseMoved method for
1621         scrollbars to provide hover feedback if needed.
1622
1623         Reviewed by Eric
1624
1625         * page/FrameView.cpp:
1626         (WebCore::selectCursor):
1627         (WebCore::FrameView::handleMouseMoveEvent):
1628         * platform/ScrollBar.h:
1629         (WebCore::ScrollBar::mouseMoved):
1630
1631 2006-09-27  MorganL  <morganl.webkit@yahoo.com>
1632
1633         Reviewed by Maciej and Adam, landed by Adam
1634
1635         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11072
1636         Windows build is busted
1637
1638         * platform/win/TemporaryLinkStubs.cpp:
1639         (ScrollView::paint):
1640         (ScrollView::themeChanged):
1641
1642 2006-09-27  Eric Seidel  <eric@eseidel.com>
1643
1644         Reviewed by mitz.
1645
1646         paths with no fill specified default to black but do not recieve paint-related mouse events
1647         http://bugs.webkit.org/show_bug.cgi?id=11069
1648         The default fill was being applied at the wrong place in the rendering chain, causing this problem.
1649
1650         Test: svg/custom/hover-default-fill.svg
1651
1652         * kcanvas/RenderPath.cpp:
1653         (WebCore::RenderPath::nodeAtPoint): use isFilled and isStroked
1654         * ksvg2/css/SVGRenderStyle.h: use defaultFill() and defaultStroke()
1655         * ksvg2/misc/KCanvasRenderingStyle.cpp:
1656         (WebCore::KSVGPainterFactory::isFilled): remove null check
1657         (WebCore::KSVGPainterFactory::fillPaintServer): remove null check
1658         (WebCore::KSVGPainterFactory::isStroked): remove null check
1659         (WebCore::KSVGPainterFactory::strokePaintServer): remove null check
1660         * ksvg2/svg/SVGPaint.cpp:
1661         (WebCore::SVGPaint::defaultFill): added.
1662         (WebCore::SVGPaint::defaultStroke): added.
1663         * ksvg2/svg/SVGPaint.h:
1664
1665 2006-09-27  Rob Buis  <buis@kde.org>
1666
1667         Reviewed by eseidel.
1668
1669         http://bugs.webkit.org/show_bug.cgi?id=11015
1670         SVG handles em units incorrectly
1671
1672         Calculate viewport coordinates at layout time, since
1673         at this point the font size is known and lengths depending
1674         on font sizes can be calculated correctly.
1675
1676         * kcanvas/RenderSVGContainer.cpp:
1677         (WebCore::RenderSVGContainer::layout):
1678         (WebCore::RenderSVGContainer::viewport):
1679         (WebCore::RenderSVGContainer::calcViewport):
1680         * kcanvas/RenderSVGContainer.h:
1681         * ksvg2/svg/SVGLength.cpp:
1682         (WebCore::SVGLength::updateValue):
1683         * ksvg2/svg/SVGMarkerElement.cpp:
1684         (WebCore::SVGMarkerElement::createRenderer):
1685         * ksvg2/svg/SVGSVGElement.cpp:
1686         (WebCore::SVGSVGElement::createRenderer):
1687         (WebCore::SVGSVGElement::attributeChanged):
1688         * ksvg2/svg/SVGSVGElement.h:
1689
1690 2006-09-27  Eric Seidel  <eric@eseidel.com>
1691
1692         Reviewed by darin.
1693
1694         Change our invalid-fill error behavior to match Opera (and soon Firefox)
1695         http://bugs.webkit.org/show_bug.cgi?id=11017
1696
1697         * ksvg2/misc/KCanvasRenderingStyle.cpp:
1698         (WebCore::KSVGPainterFactory::isFilled):
1699         (WebCore::KSVGPainterFactory::fillPaintServer):
1700         (WebCore::KSVGPainterFactory::isStroked):
1701         (WebCore::KSVGPainterFactory::strokePaintServer):
1702
1703 2006-09-27  Brady Eidson  <beidson@apple.com>
1704
1705         Build fix
1706
1707         * loader/icon/IconDatabase.cpp:
1708         (WebCore::readySQLStatement):
1709
1710 2006-09-27  Brady Eidson  <beidson@apple.com>
1711
1712         Reviewed by Adam
1713
1714         In very specific circumstances, prepared SQLStatements can become invalid without
1715         any warning.  This checks for that state and re-prepares the statement and also
1716         adds more aggressive error-checking everywhere these statements are used.
1717
1718         * loader/icon/IconDatabase.cpp:
1719         (WebCore::readySQLStatement): Check if the statement is expired - reprepare it
1720         (WebCore::IconDatabase::imageDataForIconURLQuery): More thoroughly catch error cases
1721         (WebCore::IconDatabase::timeStampForIconURLQuery): Ditto
1722         (WebCore::IconDatabase::iconURLForPageURLQuery): Ditto
1723         (WebCore::IconDatabase::forgetPageURLQuery): Ditto
1724         (WebCore::IconDatabase::setIconIDForPageURLQuery): Ditto
1725         (WebCore::IconDatabase::getIconIDForIconURLQuery): Ditto
1726         (WebCore::IconDatabase::addIconForIconURLQuery): Ditto
1727         (WebCore::IconDatabase::hasIconForIconURLQuery): Ditto
1728         * loader/icon/SQLStatement.cpp:
1729         (WebCore::SQLStatement::isExpired): Added (accessor to sqlite3_expired())
1730         * loader/icon/SQLStatement.h:
1731
1732 2006-09-26  Darin Adler  <darin@apple.com>
1733
1734         Reviewed by Steve.
1735
1736         - clean up options for font code path
1737
1738         * platform/Font.h:
1739         * platform/Font.cpp:
1740         (WebCore::Font::setCodePath): Added. Replaces boolean version.
1741         (WebCore::Font::canUseGlyphCache): Update to handle "never use complex" case too.
1742
1743         * platform/mac/WebCoreTextRenderer.mm:
1744         (WebCoreSetAlwaysUseATSU): Change to call setCodePath.
1745
1746 2006-09-26  John Sullivan  <sullivan@apple.com>
1747
1748         Reviewed by Darin
1749
1750         * bridge/mac/WebCoreFrameBridge.h:
1751         * bridge/mac/WebCoreFrameBridge.mm:
1752         (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:limit:]):
1753         Added limit parameter, passed down to Frame
1754         
1755         * page/Frame.h:
1756         * page/Frame.cpp:
1757         (WebCore::Frame::markAllMatchesForText):
1758         Added limit parameter. Stop the search if it hits limit.
1759
1760 2006-09-26  Sean Gies  <seangies@apple.com>
1761
1762         Reviewed by Brady Eidson.
1763
1764         * platform/cg/ImageCG.cpp: Removed #if's -- Darin said we don't need these.
1765
1766 2006-09-26  Justin Garcia  <justin.garcia@apple.com>
1767
1768         Reviewed by john
1769         
1770         <rdar://problem/4747695> 
1771         Gmail Editor: Crash at WebCore::Range::startPosition() when decreasing a indent
1772         
1773         * editing/DeleteSelectionCommand.cpp:
1774         (WebCore::DeleteSelectionCommand::initializeStartEnd): Stop expanding
1775         to select special elements that are fully selected after expansion
1776         moves to positions that are visually distinct from the originals.
1777         * editing/InsertListCommand.cpp:
1778         (WebCore::InsertListCommand::doApply): If the content of the list 
1779         item will be moved into another list, put it in a list item.
1780
1781 2006-09-26  Geoffrey Garen <ggaren@apple.com>
1782
1783         Reviewed by Darin.
1784         
1785         Temporary work-around for frame lifetime issue.
1786
1787         * page/Frame.cpp:
1788         (WebCore::Frame::clear):
1789         (WebCore::Frame::disconnectOwnerElement):
1790
1791 2006-09-26  Sam Weinig  <sam.weinig@gmail.com>
1792
1793         Reviewed by Tim H.
1794
1795         Patch for http://bugs.webkit.org/show_bug.cgi?id=11038
1796         Auto-generate DOMSVGElement for the Objective-C bindings
1797
1798         - Auto-generates DOMSVGElement.
1799
1800         - Make SVGExceptions work like all the other ExceptionCode
1801           extensions (Range, XPath, etc.) by adding SVGExceptionOffset
1802           and SVGExceptionMax.
1803
1804         * DerivedSources.make:
1805         * WebCore.xcodeproj/project.pbxproj:
1806         * bindings/js/kjs_binding.cpp:
1807         (KJS::):
1808         (KJS::setDOMException):
1809         * bindings/objc/DOMInternal.h:
1810         * bindings/objc/DOMInternal.mm:
1811         (raiseDOMException):
1812         * bindings/objc/DOMSVG.h:
1813         * bindings/objc/DOMSVGExecption.h: Added.
1814         * ksvg2/ksvg.h:
1815         * ksvg2/svg/SVGElement.cpp:
1816         (WebCore::SVGElement::setId):
1817         (WebCore::SVGElement::setXmlbase):
1818         * ksvg2/svg/SVGElement.h:
1819         * ksvg2/svg/SVGElement.idl:
1820         * ksvg2/svg/SVGException.h: Added.
1821         (WebCore::):
1822
1823 2006-09-26  Eric Seidel  <eric@eseidel.com>
1824
1825         Reviewed by Tim H.
1826         
1827         viewbox parser does not allow <tab> as a delimiter
1828         http://bugs.webkit.org/show_bug.cgi?id=11014
1829
1830         Test: svg/hixie/viewbox/003.xml
1831
1832         * ksvg2/svg/svgpathparser.cpp:
1833         (WebCore::isWhitespace): new function
1834         (WebCore::skipOptionalSpaces):
1835         (WebCore::skipOptionalSpacesOrComma):
1836
1837 2006-09-26  Eric Seidel  <eric@eseidel.com>
1838
1839         Reviewed by Tim H.
1840
1841         SVGDocument::createElement does not create elements in the SVG namespace
1842         http://bugs.webkit.org/show_bug.cgi?id=10932
1843         
1844         Test: svg/custom/createelement.svg
1845
1846         * ksvg2/svg/SVGDocument.cpp:
1847         (WebCore::SVGDocument::createElement):
1848         * ksvg2/svg/SVGDocument.h:
1849
1850 2006-09-26  Eric Seidel  <eric@eseidel.com>
1851
1852         Reviewed by Tim H.
1853         
1854         RenderPath::nodeAtPoint does not respect stroke width
1855         http://bugs.webkit.org/show_bug.cgi?id=10829
1856
1857         Test: svg/custom/stroke-width-click.svg
1858
1859         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
1860         (WebCore::RenderPath::strokeContains):
1861         * kcanvas/device/quartz/QuartzSupport.h:
1862         * kcanvas/device/quartz/QuartzSupport.mm:
1863
1864 2006-09-26  Eric Seidel  <eric@eseidel.com>
1865
1866         Reviewed by mitz.
1867
1868         Bring animation back to life
1869         http://bugs.webkit.org/show_bug.cgi?id=11021
1870         
1871         Register/unregister SVGSVGElements as time containers on insertion/removal.
1872         Replace uses of DeprecatedString with String in SVGAnimationElement
1873         Various whitespace clean-up.
1874
1875         * ksvg2/misc/KSVGTimeScheduler.cpp:
1876         (WebCore::SVGTimer::notifyAll):
1877         * ksvg2/misc/SVGDocumentExtensions.cpp:
1878         (WebCore::SVGDocumentExtensions::startAnimations):
1879         (WebCore::SVGDocumentExtensions::pauseAnimations):
1880         (WebCore::SVGDocumentExtensions::unpauseAnimations):
1881         * ksvg2/svg/SVGAnimateTransformElement.cpp:
1882         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
1883         (WebCore::SVGAnimateTransformElement::parseTransformValue):
1884         * ksvg2/svg/SVGAnimateTransformElement.h:
1885         * ksvg2/svg/SVGAnimationElement.cpp:
1886         (WebCore::SVGAnimationElement::SVGAnimationElement):
1887         (WebCore::SVGAnimationElement::parseMappedAttribute):
1888         (WebCore::SVGAnimationElement::parseClockValue):
1889         (WebCore::SVGAnimationElement::targetAttribute):
1890         (WebCore::SVGAnimationElement::setTargetAttribute):
1891         (WebCore::SVGAnimationElement::attributeName):
1892         * ksvg2/svg/SVGAnimationElement.h:
1893         (WebCore::SVGAnimationElement::rendererIsNeeded):
1894         * ksvg2/svg/SVGSVGElement.cpp:
1895         (WebCore::SVGSVGElement::getScreenCTM):
1896         (WebCore::SVGSVGElement::createRenderer):
1897         (WebCore::SVGSVGElement::insertedIntoDocument): added, calls addTimeContainer(this)
1898         (WebCore::SVGSVGElement::removedFromDocument): added, calls removeTimeContainer(this)
1899         * ksvg2/svg/SVGSVGElement.h:
1900         * ksvg2/svg/SVGSetElement.cpp:
1901         (WebCore::SVGSetElement::handleTimerEvent):
1902         * ksvg2/svg/SVGURIReference.cpp:
1903         (WebCore::SVGURIReference::getTarget):
1904         * ksvg2/svg/SVGURIReference.h:
1905
1906 2006-09-26  Graham Dennis  <graham.dennis@gmail.com>
1907
1908         Reviewed by mitzpettel.
1909
1910         - fix http://bugs.webkit.org/show_bug.cgi?id=11020
1911         No-SVG build broken since r16549
1912         
1913         Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT
1914
1915         * css/cssparser.cpp:
1916         (WebCore::CSSParser::parseValue):
1917         * css/cssstyleselector.cpp:
1918         (WebCore::CSSStyleSelector::applyProperty):
1919         * page/FrameView.cpp:
1920         (WebCore::selectCursor):
1921         * platform/qt/GraphicsContextQt.cpp:
1922
1923 2006-09-26  Anders Carlsson  <acarlsson@apple.com>
1924
1925         Reviewed by Maciej.
1926
1927         http://bugs.webkit.org/show_bug.cgi?id=10820
1928         Add StringImpl::toDouble() and remove uses of .deprecatedString().toDouble()
1929         
1930         (Originally written by Eric Seidel).
1931         
1932         * bindings/js/kjs_window.cpp:
1933         (KJS::floatFeature):
1934         * ksvg2/svg/SVGAngle.cpp:
1935         (SVGAngle::setValueAsString):
1936         * ksvg2/svg/SVGAnimationElement.cpp:
1937         (SVGAnimationElement::parseMappedAttribute):
1938         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1939         (SVGComponentTransferFunctionElement::parseMappedAttribute):
1940         * ksvg2/svg/SVGFECompositeElement.cpp:
1941         (WebCore::SVGFECompositeElement::parseMappedAttribute):
1942         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1943         (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
1944         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1945         (SVGFEDisplacementMapElement::parseMappedAttribute):
1946         * ksvg2/svg/SVGFELightElement.cpp:
1947         (SVGFELightElement::parseMappedAttribute):
1948         * ksvg2/svg/SVGFEOffsetElement.cpp:
1949         (WebCore::SVGFEOffsetElement::parseMappedAttribute):
1950         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1951         (SVGFESpecularLightingElement::parseMappedAttribute):
1952         * ksvg2/svg/SVGFETurbulenceElement.cpp:
1953         (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
1954         * ksvg2/svg/SVGStopElement.cpp:
1955         (SVGStopElement::parseMappedAttribute):
1956         * platform/AtomicString.h:
1957         (WebCore::AtomicString::toDouble):
1958         * platform/PlatformString.h:
1959         * platform/String.cpp:
1960         (WebCore::String::toDouble):
1961         * platform/StringImpl.cpp:
1962         (WebCore::StringImpl::toDouble):
1963         * platform/StringImpl.h:
1964         * rendering/DeprecatedSlider.cpp:
1965         (WebCore::DeprecatedSlider::updateFromElement):
1966         * xml/XPathGrammar.y:
1967
1968 2006-09-25  David Harrison  <harrison@apple.com>
1969
1970         Reviewed by Tim Omernick and Tim Hatcher.
1971
1972         <rdar://problem/4717965> Text Field text parameterized attributes should work
1973         <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
1974
1975         * bridge/mac/WebCoreAXObject.mm:
1976         (-[WebCoreAXObject accessibilityAttributeValue:]):
1977         Use new line number support to implement NSAccessibilityInsertionPointLineNumberAttribute.
1978         
1979         (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
1980         Cleaned up. Added text field and text area parameterzed attributes.
1981         
1982         (-[WebCoreAXObject doAXLineForTextMarker:]):
1983         Fixed to be zero-based and to deal with the first position properly.
1984         
1985         (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
1986         Minor formatting.
1987         
1988         (-[WebCoreAXObject textMarkerForIndex:lastIndexOK:]):
1989         (-[WebCoreAXObject indexForTextMarker:]):
1990         (-[WebCoreAXObject textMarkerRangeForRange:]):
1991         (-[WebCoreAXObject rangeForTextMarkerRange:]):
1992         New utility methods.
1993         
1994         (-[WebCoreAXObject doAXLineForIndex:]):
1995         (-[WebCoreAXObject doAXRangeForLine:]):
1996         (-[WebCoreAXObject doAXStringForRange:]):
1997         (-[WebCoreAXObject doAXRangeForPosition:]):
1998         (-[WebCoreAXObject doAXRangeForIndex:]):
1999         (-[WebCoreAXObject doAXBoundsForRange:]):
2000         (-[WebCoreAXObject doAXAttributedStringForRange:]):
2001         (-[WebCoreAXObject doAXRTFForRange:]):
2002         (-[WebCoreAXObject doAXStyleRangeForIndex:]):
2003         Implement text field and text area parameterized attributes.
2004          
2005         (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
2006         Added text field and text area parameterzed attributes.
2007
2008         * rendering/RenderTextControl.h:
2009         Made indexForVisiblePosition() and visiblePositionForIndex() public.
2010
2011 2006-09-25  Adam Roben  <aroben@apple.com>
2012
2013         Reviewed by Brady.
2014
2015         Build fixes.
2016
2017         * WebCore.vcproj/WebCore/WebCore.vcproj: Fix malformed XML.
2018         * platform/ResourceLoader.h: Store whether a particular job
2019         has received a response within the ResourceLoader object itself, since
2020         it's possible that we will enter the InternetReadFileExA while loop
2021         twice for the same job.
2022         * platform/ResourceLoaderInternal.h: Add private instance variable to
2023         store whether we've received a response.
2024         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2025         * platform/win/GraphicsContextWin.cpp: Fix order of preprocessor
2026         directives.
2027         * platform/win/ResourceLoaderWin.cpp: 
2028         (WebCore::ResourceLoader::onRequestComplete): Ask the ResourceLoader
2029         whether it has received a response instead of assuming it hasn't.
2030         (WebCore::ResourceLoader::setHasReceivedResponse): Added.
2031         (WebCore::ResourceLoader::hasReceivedResponse): Added.
2032         * platform/win/TemporaryLinkStubs.cpp: Rename setKnobProportion to
2033         setProportion
2034         (ScrollBar::setProportion):
2035
2036 2006-09-25  Brady Eidson  <beidson@apple.com>
2037
2038         Requested by ggaren
2039
2040         Disabled IconDatabase logging by default
2041
2042         * platform/Logging.cpp:
2043         (WebCore::):
2044
2045 2006-09-25  Steve Falkenburg  <sfalken@apple.com>
2046
2047         Build fix
2048
2049         * platform/cf/ResourceLoaderCFNet.cpp:
2050         (WebCore::willCacheResponse):
2051
2052 2006-09-25  Justin Garcia  <justin.garcia@apple.com>
2053
2054         Reviewed by john
2055         
2056         <http://bugs.webkit.org/show_bug.cgi?id=11002>
2057         Gmail Editor: Crash at WebCore::SplitElementCommand::doApply() when attempting to indent in a new message
2058         
2059         * editing/IndentOutdentCommand.cpp:
2060         (WebCore::IndentOutdentCommand::indentRegion): Special case
2061         an empty root editable element.
2062
2063 2006-09-25  Brady Eidson  <beidson@apple.com>
2064
2065         Reviewed by Steve
2066
2067         Math error in SystemTimeWin
2068
2069         * platform/win/SystemTimeWin.cpp:
2070         (WebCore::currentTime):
2071
2072 2006-09-25  Alexey Proskuryakov  <ap@nypop.com>
2073
2074         Reviewed by Eric.
2075
2076         Whitespace cleanup; rename *job variables to *loader.
2077
2078         * bindings/js/JSXMLHttpRequest.cpp:
2079         (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
2080         (KJS::JSXMLHttpRequestConstructorImp::implementsConstruct):
2081         (KJS::JSXMLHttpRequestConstructorImp::construct):
2082         (KJS::JSXMLHttpRequest::getOwnPropertySlot):
2083         (KJS::JSXMLHttpRequest::getValueProperty):
2084         (KJS::JSXMLHttpRequest::put):
2085         (KJS::JSXMLHttpRequest::putValueProperty):
2086         (KJS::JSXMLHttpRequest::mark):
2087         (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
2088         (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
2089         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
2090         * bindings/js/JSXMLHttpRequest.h:
2091         (KJS::JSXMLHttpRequest::toBoolean):
2092         * xml/xmlhttprequest.cpp:
2093         (WebCore::XMLHttpRequest::XMLHttpRequest):
2094         (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
2095         (WebCore::XMLHttpRequest::send):
2096         (WebCore::XMLHttpRequest::abort):
2097         (WebCore::XMLHttpRequest::receivedAllData):
2098         (WebCore::XMLHttpRequest::receivedData):
2099         * xml/xmlhttprequest.h:
2100         (WebCore::):
2101
2102 2006-09-25  Timothy Hatcher  <timothy@apple.com>
2103
2104         Reviewed by Brady.
2105
2106         - Deprecate the rest of the old-style methods that are not generated.
2107         - Add @property syntax to DOMRange.
2108
2109         * WebCore.xcodeproj/project.pbxproj:
2110         * bindings/objc/DOM.mm:
2111         (-[DOMRange setStart:offset:]):
2112         (-[DOMRange setEnd:offset:]):
2113         (-[DOMRange compareBoundaryPoints:sourceRange:]):
2114         (-[DOMRange setStart::]):
2115         (-[DOMRange setEnd::]):
2116         (-[DOMRange compareBoundaryPoints::]):
2117         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
2118         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
2119         (-[DOMDocument createNodeIterator::::]):
2120         (-[DOMDocument createTreeWalker::::]):
2121         * bindings/objc/DOMCSS.h:
2122         * bindings/objc/DOMCSS.mm:
2123         (-[DOMDocument getComputedStyle:pseudoElement:]):
2124         (-[DOMDocument getComputedStyle::]):
2125         (-[DOMDocument getMatchedCSSRules:pseudoElement:]):
2126         * bindings/objc/DOMExtensions.h:
2127         * bindings/objc/DOMHTML.h:
2128         * bindings/objc/DOMRange.h:
2129         * bindings/objc/DOMTraversal.h:
2130
2131 2006-09-25  Eric Seidel  <eric@eseidel.com>
2132
2133         Reviewed by mjs.
2134         
2135         Outermost <svg> element should clip to viewport
2136         http://bugs.webkit.org/show_bug.cgi?id=11007
2137
2138         Test: svg/custom/viewport-clip.svg
2139
2140         * css/svg.css: change svg:root overflow: from 'visible' to 'hidden'
2141
2142 2006-09-25  Anders Carlsson  <acarlsson@apple.com>
2143
2144         Reviewed by Maciej.
2145
2146         * css/MediaList.cpp:
2147         Remove unused header.
2148         
2149         * dom/Document.cpp:
2150         (WebCore::Document::clear):
2151         Use clear instead of iterating through the list of event listeners, removing each one.
2152         (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
2153         
2154         * html/HTMLKeygenElement.cpp:
2155         (WebCore::HTMLKeygenElement::HTMLKeygenElement):
2156         (WebCore::HTMLKeygenElement::appendFormData):
2157         Update due to changes in the SSL key generator.
2158         
2159         * ksvg2/svg/SVGAngle.cpp:
2160         Remove unused header.
2161         
2162         * ksvg2/svg/SVGAnimationElement.cpp:
2163         (SVGAnimationElement::parseMappedAttribute):
2164         Rename methods and pass Strings instead of DeprecatedStrings to
2165         parseSeparatedList.
2166         
2167         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
2168         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2169         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
2170         * ksvg2/svg/SVGFEMergeElement.cpp:
2171         * ksvg2/svg/SVGFEOffsetElement.cpp:
2172         Remove unused headers.
2173         
2174         * ksvg2/svg/SVGHelper.cpp:
2175         (WebCore::SVGHelper::parseSeparatedList):
2176         * ksvg2/svg/SVGHelper.h:
2177         Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a 
2178         DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
2179         
2180         * ksvg2/svg/SVGLengthList.cpp:
2181         (WebCore::SVGLengthList::parse):
2182         * ksvg2/svg/SVGLengthList.h:
2183         Use Vector<String> instead of DeprecatedStringList.
2184         
2185         * loader/Cache.cpp:
2186         (WebCore::Cache::requestImage):
2187         (WebCore::Cache::requestStyleSheet):
2188         (WebCore::Cache::requestScript):
2189         (WebCore::Cache::requestXSLStyleSheet):
2190         (WebCore::Cache::requestXBLDocument):
2191         (WebCore::Cache::remove):
2192         (WebCore::Cache::get):
2193         Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
2194         
2195         * loader/DocLoader.cpp:
2196         (WebCore::DocLoader::needReload):
2197         * loader/DocLoader.h:
2198         Use a HashSet instead of DeprecatedStringList.
2199         
2200         * page/FrameView.h:
2201         Remove declarations that have no functions.
2202         
2203         * platform/SSLKeyGenerator.h:
2204         * platform/mac/SSLKeyGeneratorMac.mm:
2205         (WebCore::supportedKeySizes):
2206         (WebCore::signedPublicKeyAndChallengeString):
2207         Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
2208         DeprecatedString.
2209
2210 2006-09-25  Dave Hyatt  <hyatt@apple.com>
2211
2212         Shunt the RenderTheme world transform adoption between
2213         Cairo and Windows into getWindowsContext and move the method
2214         out of GraphicsContextCairo and into GraphicsContextWin.
2215
2216         * ChangeLog:
2217         * WebCore.vcproj/WebCore/WebCore.vcproj:
2218         * platform/cairo/GraphicsContextCairo.cpp:
2219         * platform/win/GraphicsContextWin.cpp: Added.
2220         (WebCore::GraphicsContext::getWindowsContext):
2221         (WebCore::GraphicsContext::releaseWindowsContext):
2222         * rendering/RenderThemeWin.cpp:
2223         (WebCore::prepareForDrawing):
2224
2225 2006-09-24  Eric Seidel  <eric@eseidel.com>
2226
2227         Reviewed by hyatt.
2228
2229         <svg:a> cannot be styled with a:hover
2230         http://bugs.webkit.org/show_bug.cgi?id=11005
2231         
2232         Test: svg/hixie/cascade/002.xml
2233
2234         * css/cssstyleselector.cpp:
2235         (WebCore::checkPseudoState):
2236
2237 2006-09-24  Sam Weinig  <sam.weinig@gmail.com>
2238
2239         Reviewed by Tim H.
2240
2241         Patch for http://bugs.webkit.org/show_bug.cgi?id=10882
2242         SVG needs Obj-C DOM bindings
2243
2244         - Auto-generate the first 8 Objective-C SVG DOM bindings.  The 
2245           auto-generated classes are DOMSVGAngle, DOMSVGLength, DOMSVGLengthList,
2246           DOMSVGMatrix, DOMSVGPathSeg, DOMSVGPathSegList, DOMSVGTransform, and 
2247           DOMSVGTransformList.
2248
2249         * DerivedSources.make:
2250         * WebCore.xcodeproj/project.pbxproj:
2251         * bindings/objc/DOMInternal.h:
2252         * bindings/objc/DOMSVG.h: Added.
2253         * ksvg2/svg/SVGAngle.idl:
2254         * ksvg2/svg/SVGLength.idl:
2255         * ksvg2/svg/SVGLengthList.idl:
2256         * ksvg2/svg/SVGMatrix.idl:
2257         * ksvg2/svg/SVGPathSeg.idl:
2258         * ksvg2/svg/SVGPathSegList.idl:
2259         * ksvg2/svg/SVGTransform.idl:
2260         * ksvg2/svg/SVGTransformList.idl:
2261
2262 2006-09-24  Rob Buis  <buis@kde.org>
2263
2264         Reviewed by eseidel.
2265
2266         Fix for http://bugs.webkit.org/show_bug.cgi?id=6001
2267         WebKit does not handle fallback custom cursors
2268         Fix for http://bugs.webkit.org/show_bug.cgi?id=6002
2269         WebKit does not properly handle SVG <cursor> element
2270
2271         Add support for svg cursor images. Also make sure hotspot
2272         settings are handled correctly. Add tests for handling of css3
2273         cursor syntax with hotspots in strict and quirks mode. Finally
2274         implement fallback.
2275
2276         * WebCore.xcodeproj/project.pbxproj:
2277         * css/CSSComputedStyleDeclaration.cpp:
2278         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2279         * css/CSSCursorImageValue.cpp: Added.
2280         (WebCore::CSSCursorImageValue::CSSCursorImageValue):
2281         (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
2282         * css/CSSCursorImageValue.h: Added.
2283         (WebCore::CSSCursorImageValue::hotspot):
2284         * css/cssparser.cpp:
2285         (WebCore::CSSParser::parseValue):
2286         * css/cssstyleselector.cpp:
2287         (WebCore::CSSStyleSelector::applyProperty):
2288         * ksvg2/svg/SVGCursorElement.cpp:
2289         * manual-tests/css3-cursor-fallback-quirks.html: Added.
2290         * manual-tests/css3-cursor-fallback-strict.html: Added.
2291         * manual-tests/cursorfallback.xml: Added.
2292         * page/FrameView.cpp:
2293         (WebCore::selectCursor):
2294         * platform/Cursor.h:
2295         * platform/mac/CursorMac.mm:
2296         (WebCore::createCustomCursor):
2297         (WebCore::Cursor::Cursor):
2298         * platform/qt/CursorQt.cpp:
2299         (WebCore::Cursor::Cursor):
2300         * rendering/RenderStyle.cpp:
2301         (WebCore::StyleInheritedData::StyleInheritedData):
2302         (WebCore::StyleInheritedData::operator==):
2303         (WebCore::RenderStyle::diff):
2304         (WebCore::RenderStyle::addCursor):
2305         (WebCore::RenderStyle::addSVGCursor):
2306         (WebCore::RenderStyle::setCursorList):
2307         (WebCore::RenderStyle::clearCursorList):
2308         * rendering/RenderStyle.h:
2309         (WebCore::CursorData::CursorData):
2310         (WebCore::CursorList::operator[]):
2311         (WebCore::CursorList::size):
2312         (WebCore::CursorList::append):
2313         (WebCore::RenderStyle::cursors):
2314
2315 2006-09-24  Sam Weinig  <sam.weinig@gmail.com>
2316
2317         Reviewed by Tim H.
2318
2319         Patch for http://bugs.webkit.org/show_bug.cgi?id=11009
2320         Auto-generate the internal methods interfaces for the Objective-C bindings
2321
2322         - Auto-generate the internal method declarations into their own files
2323           named in the form DOMFooBarInternal.h for class DOMFooBar.
2324
2325         - Remove all use of DOM_cast from code.
2326
2327         - Assorted cleanups.
2328
2329         * WebCore.xcodeproj/project.pbxproj:
2330         * bindings/objc/DOM.mm:
2331         (-[DOMNode _initWithNode:WebCore::]):
2332         (-[DOMNode WebCore::]):
2333         (-[DOMRange dealloc]):
2334         (-[DOMRange finalize]):
2335         (-[DOMRange _initWithRange:WebCore::]):
2336         (-[DOMRange WebCore::]):
2337         (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
2338         (-[DOMNodeFilter WebCore::]):
2339         (-[DOMNodeFilter dealloc]):
2340         (-[DOMNodeFilter finalize]):
2341         (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
2342         (-[DOMNodeIterator WebCore::]):
2343         (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
2344         (-[DOMTreeWalker WebCore::]):
2345         * bindings/objc/DOMAbstractView.mm:
2346         (-[DOMAbstractView _initWithAbstractView:WebCore::]):
2347         * bindings/objc/DOMCSS.mm:
2348         (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
2349         (-[DOMCSSRule _initWithRule:WebCore::]):
2350         (-[DOMCSSValue _initWithValue:WebCore::]):
2351         * bindings/objc/DOMEvents.mm:
2352         (-[DOMEvent _initWithEvent:WebCore::]):
2353         * bindings/objc/DOMHTMLAppletElement.mm:
2354         (-[DOMHTMLAppletElement align]):
2355         (-[DOMHTMLAppletElement setAlign:]):
2356         (-[DOMHTMLAppletElement alt]):
2357         (-[DOMHTMLAppletElement setAlt:]):
2358         (-[DOMHTMLAppletElement archive]):
2359         (-[DOMHTMLAppletElement setArchive:]):
2360         (-[DOMHTMLAppletElement code]):
2361         (-[DOMHTMLAppletElement setCode:]):
2362         (-[DOMHTMLAppletElement codeBase]):
2363         (-[DOMHTMLAppletElement setCodeBase:]):
2364         (-[DOMHTMLAppletElement height]):
2365         (-[DOMHTMLAppletElement setHeight:]):
2366         (-[DOMHTMLAppletElement hspace]):
2367         (-[DOMHTMLAppletElement setHspace:]):
2368         (-[DOMHTMLAppletElement name]):
2369         (-[DOMHTMLAppletElement setName:]):
2370         (-[DOMHTMLAppletElement object]):
2371         (-[DOMHTMLAppletElement setObject:]):
2372         (-[DOMHTMLAppletElement vspace]):
2373         (-[DOMHTMLAppletElement setVspace:]):
2374         (-[DOMHTMLAppletElement width]):
2375         (-[DOMHTMLAppletElement setWidth:]):
2376         * bindings/objc/DOMInternal.h:
2377         (getDOMWrapper):
2378         (addDOMWrapper):
2379         (raiseOnDOMError):
2380         * bindings/objc/DOMXPath.mm:
2381         (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
2382         * bindings/scripts/CodeGeneratorObjC.pm:
2383
2384 2006-09-24  Nikolas Zimmermann  <zimmermann@kde.org>
2385
2386         Reviewed by eseidel.
2387
2388         Fix Qt/Linux build after Dave's Scrollbar changes.
2389
2390         * platform/qt/PlatformScrollBar.h: (Somehow this contained the file twice! Removed one instance!)
2391         * platform/qt/TemporaryLinkStubs.cpp:
2392         (WebCore::ScrollBar::setProportion):
2393         (WebCore::PlatformScrollBar::updateThumbPosition):
2394         (WebCore::PlatformScrollBar::updateThumbProportion):
2395
2396 2006-09-24  Nikolas Zimmermann  <zimmermann@kde.org>
2397
2398         Reviewed by eseidel.
2399
2400         Qt/Linux build system changes: enable xpath/xslt by default.
2401         Offer possibility to change all of these using 'ccmake'.
2402
2403         * CMakeLists.txt:
2404
2405 2006-09-24  Dave Hyatt  <hyatt@apple.com>
2406
2407         Cleanup of Scrollbar APIs.  Rename setKnobProportion to setProportion.  Rename setScrollbarValue to updateThumbPosition.
2408         Give setProportion a base class implementation and implement it using the same pattern as setValue/updateThumbPosition (so that
2409         the base calls a protected virtual function, updateThumbProportion, implemented by the derived class to update the actual scrollbar itself).
2410
2411         * platform/ScrollBar.cpp:
2412         (WebCore::ScrollBar::setValue):
2413         (WebCore::ScrollBar::setProportion):
2414         * platform/ScrollBar.h:
2415         (WebCore::ScrollBar::value):
2416         * platform/mac/PlatformScrollBar.h:
2417         * platform/mac/PlatformScrollBarMac.mm:
2418         (WebCore::PlatformScrollBar::updateThumbPosition):
2419         (WebCore::PlatformScrollBar::updateThumbProportion):
2420         * platform/win/PlatformScrollBar.h:
2421         * platform/win/TemporaryLinkStubs.cpp:
2422         (PlatformScrollBar::updateThumbPosition):
2423         (PlatformScrollBar::updateThumbProportion):
2424         * rendering/RenderLayer.cpp:
2425         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
2426
2427 2006-09-23  Alexey Proskuryakov  <ap@nypop.com>
2428
2429         Reviewed by Eric.
2430
2431         http://bugs.webkit.org/show_bug.cgi?id=4872
2432         XMLHttpRequest fails to throw an exception when there is a security violation
2433         (mismatching domains)
2434
2435         Raise an exception if there is a security violation, and also in cases required by
2436         the current draft of XHR specification.
2437
2438         * bindings/js/JSXMLHttpRequest.cpp:
2439         (KJS::JSXMLHttpRequest::getValueProperty): Raise an exception if a DOM method reports one.
2440         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Raise an exception if a DOM method
2441         reports one, and also if there were too few arguments passed. 
2442
2443         * bindings/js/kjs_binding.cpp:
2444         (KJS::setDOMException): Added support for custom XHR exceptions.
2445
2446         * xml/xmlhttprequest.h: Changed state names to match the current spec. Defined an
2447         exception code range for XHR exceptions.
2448
2449         * xml/xmlhttprequest.cpp:
2450         (WebCore::XMLHttpRequest::open): Removed a check for m_aborted that could never succeed.
2451         (WebCore::XMLHttpRequest::send):
2452         (WebCore::XMLHttpRequest::setRequestHeader):
2453         (WebCore::XMLHttpRequest::getStatus):
2454         (WebCore::XMLHttpRequest::getStatusText):
2455         (WebCore::XMLHttpRequest::processSyncLoadResults):
2456         (WebCore::XMLHttpRequest::receivedAllData):
2457         (WebCore::XMLHttpRequest::receivedData):
2458
2459 2006-09-22  Steve Falkenburg  <sfalken@apple.com>
2460
2461         Reviewed by Jeff Jenkins.
2462
2463         Tweak CF types.
2464
2465         * platform/cf/ResourceLoaderCFNet.cpp:
2466         (WebCore::willCacheResponse):
2467
2468 2006-09-22  Justin Garcia  <justin.garcia@apple.com>
2469
2470         Reviewed by darin
2471
2472         <http://bugs.webkit.org/show_bug.cgi?id=8029>
2473         Rename Node::isAncestor and RenderObject::hasAncestor to isDescendantOf
2474
2475         * dom/Document.cpp:
2476         (WebCore::Document::clearSelectionIfNeeded):
2477         * dom/Element.cpp:
2478         (WebCore::Element::contains):
2479         * dom/Node.cpp:
2480         (WebCore::Node::traverseNextNode):
2481         (WebCore::Node::traverseNextSibling):
2482         (WebCore::Node::traversePreviousNodePostOrder):
2483         (WebCore::Node::checkAddChild):
2484         (WebCore::Node::isDescendantOf):
2485         * dom/Node.h:
2486         * dom/NodeIterator.cpp:
2487         (WebCore::NodeIterator::notifyBeforeNodeRemoval):
2488         * editing/ApplyStyleCommand.cpp:
2489         (WebCore::ApplyStyleCommand::applyBlockStyle):
2490         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
2491         (WebCore::ApplyStyleCommand::applyInlineStyle):
2492         (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode):
2493         * editing/CompositeEditCommand.cpp:
2494         (WebCore::CompositeEditCommand::mergeIdenticalElements):
2495         (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
2496         * editing/DeleteSelectionCommand.cpp:
2497         (WebCore::updatePositionForNodeRemoval):
2498         (WebCore::DeleteSelectionCommand::handleGeneralDelete):
2499         (WebCore::DeleteSelectionCommand::mergeParagraphs):
2500         * editing/FormatBlockCommand.cpp:
2501         (WebCore::FormatBlockCommand::doApply):
2502         * editing/IndentOutdentCommand.cpp:
2503         (WebCore::enclosingListOrBlockquote):
2504         * editing/Selection.cpp:
2505         (WebCore::Selection::validate):
2506         * editing/SelectionController.cpp:
2507         (WebCore::SelectionController::nodeWillBeRemoved):
2508         * editing/TextIterator.cpp:
2509         (WebCore::SimplifiedBackwardsTextIterator::advance):
2510         * editing/VisiblePosition.cpp:
2511         (WebCore::VisiblePosition::next):
2512         (WebCore::VisiblePosition::previous):
2513         (WebCore::VisiblePosition::canonicalPosition):
2514         (WebCore::isFirstVisiblePositionInNode):
2515         (WebCore::isLastVisiblePositionInNode):
2516         * editing/htmlediting.cpp:
2517         (WebCore::firstEditablePositionAfterPositionInRoot):
2518         (WebCore::lastEditablePositionBeforePositionInRoot):
2519         (WebCore::enclosingNodeWithTag):
2520         (WebCore::enclosingList):
2521         (WebCore::enclosingListChild):
2522         * editing/markup.cpp:
2523         (WebCore::createMarkup):
2524
2525 2006-09-22  Timothy Hatcher  <timothy@apple.com>
2526
2527         Reviewed by Darin.
2528
2529         - Added @property syntax to non-generated headers
2530           inside #ifndef BUILDING_ON_TIGER.
2531         - Changed the DOMEventTarget protocol to have have new versions
2532           of addEventListener and removeEventListener with named parameters.
2533           These old style methods can be removed once Mail changes to use
2534           the new methods <rdar://problem/4746649>.
2535
2536         * WebCorePrefix.h: define BUILDING_ON_TIGER when Tiger is the target
2537         * bindings/objc/DOM.mm:
2538         (-[DOMNode addEventListener:listener:useCapture:]):
2539         (-[DOMNode addEventListener:::]): call the new method
2540         (-[DOMNode removeEventListener:listener:useCapture:]):
2541         (-[DOMNode removeEventListener:::]): call the new method
2542         * bindings/objc/DOMAbstractView.h:
2543         * bindings/objc/DOMEventTarget.h:
2544         * bindings/objc/DOMHTMLAppletElement.h:
2545         * bindings/objc/DOMHTMLEmbedElement.h:
2546         * bindings/objc/DOMHTMLOptionElement.h:
2547         * bindings/objc/DOMObject.h:
2548         * bindings/objc/DOMRGBColor.h:
2549
2550 2006-09-22  Nikolas Zimmermann  <zimmermann@kde.org>
2551
2552         Reviewed by Eric.
2553
2554         Fix Qt/Linux build and a really stupid mixup in GraphicsContextQt.
2555
2556         * platform/qt/FrameQt.cpp:
2557         * platform/qt/GraphicsContextQt.cpp:
2558         (WebCore::GraphicsContext::translate): Make it actually translate, not scale! :-)
2559         (WebCore::GraphicsContext::origin):
2560         * platform/qt/PlatformScrollBar.h: Added.
2561         (WebCore::PlatformScrollBar::isWidget):
2562         * platform/qt/WidgetQt.cpp:
2563         (WebCore::Widget::invalidate):
2564         (WebCore::Widget::invalidateRect):
2565
2566 2006-09-22  Dave Hyatt <hyatt@apple.com>
2567
2568         Super-minor tweaks to the systemFont function on Mac.
2569         Set the generic family to None rather than to Serif, and
2570         don't waste time setting the computed size, since that is
2571         set from the specified size over in CSSStyleSelector anyway.
2572
2573         * rendering/RenderThemeMac.mm:
2574         (WebCore::RenderThemeMac::systemFont):
2575
2576 2006-09-22  Timothy Hatcher  <timothy@apple.com>
2577
2578         Reviewed by Brady.
2579
2580         Build fix for Xcode 2.3. Convert GraphicsContext::translate() to
2581         take floats. There was already an implicit conversion to float/double
2582         when calling CGContextTranslateCTM or cairo_translate.
2583
2584         * platform/GraphicsContext.h:
2585         * platform/cairo/GraphicsContextCairo.cpp:
2586         (WebCore::GraphicsContext::translate):
2587         * platform/cg/GraphicsContextCG.cpp:
2588         (WebCore::GraphicsContext::translate):
2589
2590 2006-09-22  Brady Eidson  <beidson@apple.com>
2591
2592         Reviewed by Sfalken
2593
2594         Add redirect and other cleanup to ResourceLoaderWin.cpp
2595         Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10927
2596         Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10744
2597
2598         * WebCore.xcodeproj/project.pbxproj:
2599         * platform/ResourceLoader.h:
2600         * platform/win/ResourceLoaderWin.cpp:
2601         (WebCore::ResourceLoaderWndProc):
2602         (WebCore::initializeOffScreenResourceLoaderWindow):
2603         (WebCore::ResourceLoader::onHandleCreated):
2604         (WebCore::ResourceLoader::onRequestRedirected):
2605         (WebCore::ResourceLoader::onRequestComplete):
2606         (WebCore::transferJobStatusCallback):
2607
2608 2006-09-22  Alexey Proskuryakov  <ap@nypop.com>
2609
2610         Reviewed by Geoff.
2611
2612         http://bugs.webkit.org/show_bug.cgi?id=10803
2613         REGRESSION (r15536-r15544): manual-tests/bugzilla-6821.html failing
2614
2615         * page/FrameView.cpp:
2616         (WebCore::FrameView::hoverTimerFired): Use the current event.
2617
2618 2006-09-22  Nikolas Zimmermann  <zimmermann@kde.org>
2619
2620         Reviewed by Anders.
2621
2622         Fix (last) svg memory leak.
2623
2624         * ksvg2/svg/SVGTransformable.cpp: delete 't' in error case.
2625         (SVGTransformable::parseTransformAttribute):
2626
2627 2006-09-22  Eric Seidel  <eric@eseidel.com>
2628
2629         No review necessary, just removing a dead file.
2630
2631         Remove unused file (added previously by mistake) to make room for real implementation.
2632
2633         * platform/mac/BitmapImageMac.mm: Removed.
2634
2635 2006-09-22  Dave Hyatt <hyatt@apple.com>
2636
2637         Move PlatformScrollBar.h down into the platforms.
2638         
2639         Reviewed by andersca
2640
2641         * platform/PlatformScrollBar.h: Removed.
2642         * platform/win/PlatformScrollBar.h: Added.
2643         * platform/mac/PlatformScrollBar.h: Added.
2644
2645 2006-09-22   Dave Hyatt  <hyatt@apple.com>
2646
2647         Add support for invalidation of widgets.  This will be needed for the Win32 widget subsystem (and for
2648         any widget subsystems that don't have any underlying native objects backing the widgets.
2649
2650         Reviewed by anders
2651
2652         * platform/Widget.h:
2653         * platform/mac/WidgetMac.mm:
2654         (WebCore::Widget::invalidate):
2655         (WebCore::Widget::invalidateRect):
2656         * platform/win/TemporaryLinkStubs.cpp:
2657         (Widget::invalidate):
2658         (Widget::invalidateRect):
2659
2660 2006-09-22  Rob Buis  <buis@kd.org>
2661
2662         Reviewed by eseidel.
2663
2664         http://bugs.webkit.org/show_bug.cgi?id=10901
2665         Merge build fixes from unity
2666
2667         * CMakeLists.txt:
2668
2669 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
2670
2671         Reviewed by eseidel.
2672
2673         http://bugs.webkit.org/show_bug.cgi?id=10977
2674         SVGDocument does not expose 'rootElement' property
2675
2676         Enable 'rootElement' property.
2677
2678         * ksvg2/svg/SVGDocument.idl:
2679
2680 2006-09-21  Steve Falkenburg  <sfalken@apple.com>
2681
2682         Tweak includes.
2683
2684         * platform/ResourceLoaderInternal.h:
2685
2686 2006-09-21  Geoffrey Garen  <ggaren@apple.com>
2687
2688         build fixed. band happy.
2689         
2690         * platform/cg/GraphicsContextCG.cpp:
2691         (WebCore::GraphicsContext::translate):
2692         * platform/mac/WidgetMac.mm:
2693
2694 2006-09-21  Geoffrey Garen  <ggaren@apple.com>
2695
2696         Reviewed by Maciej.
2697         
2698         Some Widget refactoring.
2699
2700         * WebCore.vcproj/WebCore/WebCore.vcproj:
2701         * bridge/mac/FrameMac.mm:
2702         * bridge/win/FrameWin.cpp:
2703         (WebCore::FrameWin::runJavaScriptAlert):
2704         (WebCore::FrameWin::runJavaScriptConfirm):
2705         * bridge/win/PageWin.cpp:
2706         (WebCore::Page::Page):
2707         (WebCore::rootWindowForFrame):
2708         * html/CanvasRenderingContext2D.cpp:
2709         (WebCore::CanvasRenderingContext2D::translate):
2710         * page/FrameView.cpp:
2711         (WebCore::FrameView::isFrameView):
2712         * page/Page.h:
2713         (WebCore::Page::setInstanceHandle):
2714         (WebCore::Page::instanceHandle):
2715         * platform/GraphicsContext.h:
2716         * platform/ScrollView.h:
2717         * platform/Widget.h:
2718         * platform/cairo/GraphicsContextCairo.cpp:
2719         (WebCore::GraphicsContext::translate):
2720         (WebCore::GraphicsContext::origin):
2721         * platform/mac/WidgetMac.mm:
2722         (WebCore::Widget::clearFocus):
2723         * platform/win/ResourceLoaderWin.cpp:
2724         (WebCore::initializeOffScreenResourceLoaderWindow):
2725         * platform/win/ScreenWin.cpp:
2726         (WebCore::monitorInfo):
2727         * platform/win/ScrollViewWin.cpp:
2728         (WebCore::ScrollView::updateContents):
2729         (WebCore::ScrollView::visibleWidth):
2730         (WebCore::ScrollView::visibleHeight):
2731         (WebCore::ScrollView::visibleContentRect):
2732         (WebCore::ScrollView::viewportToContents):
2733         (WebCore::ScrollView::contentsToViewport):
2734         (WebCore::ScrollView::scrollBy):
2735         (WebCore::ScrollView::updateScrollInfo):
2736         (WebCore::ScrollView::updateScrollBars):
2737         * platform/win/SharedTimerWin.cpp:
2738         (WebCore::initializeOffScreenTimerWindow):
2739         * platform/win/TemporaryLinkStubs.cpp:
2740         (FrameView::updateBorder):
2741         (ScrollView::paint):
2742         (GraphicsContext::clip):
2743         * platform/win/WidgetWin.cpp:
2744         (WebCore::Widget::Widget):
2745         (WebCore::Widget::parentWindow):
2746         (WebCore::Widget::setParentWindow):
2747         (WebCore::Widget::frameGeometry):
2748         (WebCore::Widget::hasFocus):
2749         (WebCore::Widget::setFocus):
2750         (WebCore::Widget::show):
2751         (WebCore::Widget::hide):
2752         (WebCore::Widget::setFrameGeometry):
2753
2754 2006-09-22  Anders Carlsson  <acarlsson@apple.com>
2755
2756         Reviewed by Tim H.
2757
2758         * platform/TextEncoding.cpp:
2759         (WebCore::TextEncoding::backslashAsCurrencySymbol):
2760         Add comment clarifying why backslashAsCurrencySymbol is needed.
2761
2762 2006-09-21  Sean Gies  <seangies@apple.com>
2763
2764         Reviewed by Adam Roben.
2765
2766         Add utility functions to get and release HDC from GraphicsContext.
2767
2768         * platform/GraphicsContext.h: Add utilities to get and release HDC.
2769         * platform/cairo/GraphicsContextCairo.cpp: Implement new utilities.
2770         * rendering/RenderThemeWin.cpp: Switch to new utilities.
2771
2772 2006-09-21  Justin Garcia  <justin.garcia@apple.com>
2773
2774         Reviewed by anders
2775         
2776         <rdar://problem/4426622>
2777         Plain text paste slow.  Time spent mostly in WebCore::rebalanceWhitespaceInTextNode(...)
2778
2779         * editing/htmlediting.cpp:
2780         (WebCore::rebalanceWhitespaceInTextNode): We no longer need to use a RegExp replace because we
2781         aren't producing complicated sequences here.  Use multiple UChar -> UChar replaces instead for speed.
2782         Got rid of uses of DepricatedString.
2783
2784 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
2785
2786         Reviewed by eseidel.
2787
2788         Don't crash if no IconDatabase is available (ie. on Qt/Gdk)
2789
2790         * page/Frame.cpp:
2791         (WebCore::Frame::endIfNotLoading):
2792
2793 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
2794
2795         Reviewed by eseidel.
2796
2797         Fix Qt/Linux build.
2798
2799         * CMakeLists.txt:
2800         * kcanvas/device/qt/KCanvasClipperQt.h:
2801         * kcanvas/device/qt/KRenderingDeviceQt.cpp:
2802         * platform/qt/FrameQt.cpp:
2803         (WebCore::FrameQt::isLoadTypeReload):
2804         (WebCore::FrameQt::originalRequestURL):
2805         * platform/qt/FrameQt.h:
2806         * platform/qt/GraphicsContextQt.cpp:
2807         (WebCore::GraphicsContext::concatCTM):
2808         * platform/qt/ScrollViewQt.cpp:
2809         (WebCore::ScrollView::wheelEvent):
2810         * platform/qt/TemporaryLinkStubs.cpp:
2811         (WebCore::IconDatabase::setIconURLForPageURL):
2812
2813 2006-09-20  Justin Garcia  <justin.garcia@apple.com>
2814
2815         Reviewed by john
2816         
2817         <http://bugs.webkit.org/show_bug.cgi?id=7165>
2818         TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
2819
2820         * editing/MoveSelectionCommand.cpp:
2821         (WebCore::MoveSelectionCommand::MoveSelectionCommand): Set the document
2822         to the position-to-move-to's document, not the fragment's document.  The 
2823         fragment's document is the document used to create the fragment and is irrelavant.
2824
2825 === Safari-521.27 ===
2826
2827 2006-09-21  Brady Eidson  <beidson@apple.com>
2828
2829         Reviewed by Anders
2830
2831         When your assumption is "IconDatabase::sharedIconDatabase()" will never fail but it does, you're in trouble
2832         This fixes Spinneret so it won't crash on its first load!
2833
2834         * page/Frame.cpp:
2835         (WebCore::Frame::endIfNotLoading):
2836
2837 2006-09-21  Brady Eidson  <beidson@apple.com>
2838
2839         Build fix
2840
2841         * platform/win/TemporaryLinkStubs.cpp:
2842         (ScrollView::wheelEvent):
2843
2844 2006-09-20  Rob Buis  <buis@kde.org>
2845
2846         Reviewed by eseidel.
2847
2848         http://bugs.webkit.org/show_bug.cgi?id=10946
2849         new marker code draws end-marker in wrong place
2850
2851         Keep track of the start of the subpath so we can handle
2852         closeTo/moveTo correctly.
2853
2854         * kcanvas/RenderPath.cpp:
2855         (WebCore::DrawMarkersData::DrawMarkersData):
2856         (WebCore::updateMarkerDataForElement):
2857
2858 2006-09-21  David Hyatt <hyatt@apple.com>
2859
2860         Wheel scrolling prep for Win32.
2861
2862         WARNING: NO TEST CASES ADDED OR CHANGED
2863
2864         * platform/PlatformWheelEvent.h:
2865         * platform/ScrollBar.h:
2866         * platform/ScrollView.h:
2867         * platform/mac/ScrollViewMac.mm:
2868         (WebCore::ScrollView::wheelEvent):
2869         * rendering/RenderLayer.cpp:
2870
2871 2006-09-20  Timothy Hatcher  <timothy@apple.com>
2872
2873         Reviewed by Hyatt.
2874
2875         Bug 10917: REGRESSION (r16027): iFrame transparency broken
2876         http://bugs.webkit.org/show_bug.cgi?id=10917
2877
2878         Don't paint the base background color if we transparent.
2879
2880         * rendering/RenderBox.cpp:
2881         (WebCore::RenderBox::paintBackgroundExtended):
2882
2883 2006-09-20  Adam Roben  <aroben@apple.com>
2884
2885         Reviewed by andersca.
2886
2887         * platform/FileChooser.h: Remove no-longer-necessary namespace std
2888
2889 2006-09-20  Eric Seidel  <eric@eseidel.com>
2890
2891         Reviewed by beth.
2892
2893         Cleanup style in KCanvas.
2894         Remove extra white-space, unneeded arguments, etc.
2895
2896         * WebCore.xcodeproj/project.pbxproj:
2897         * kcanvas/KCanvasClipper.cpp:
2898         (WebCore::operator<<):
2899         (WebCore::KCanvasClipper::externalRepresentation):
2900         * kcanvas/KCanvasClipper.h:
2901         * kcanvas/KCanvasFilters.cpp:
2902         (WebCore::KCanvasFilter::externalRepresentation):
2903         (WebCore::operator<<):
2904         (WebCore::KCanvasFilterEffect::externalRepresentation):
2905         (WebCore::KCPointLightSource::externalRepresentation):
2906         (WebCore::KCSpotLightSource::externalRepresentation):
2907         (WebCore::KCDistantLightSource::externalRepresentation):
2908         (WebCore::KCanvasFEBlend::externalRepresentation):
2909         (WebCore::KCanvasFEColorMatrix::externalRepresentation):
2910         (WebCore::KCanvasFEComponentTransfer::externalRepresentation):
2911         (WebCore::KCanvasFEComposite::externalRepresentation):
2912         (WebCore::KCanvasFEConvolveMatrix::externalRepresentation):
2913         (WebCore::KCanvasFEDiffuseLighting::externalRepresentation):
2914         (WebCore::KCanvasFEDisplacementMap::externalRepresentation):
2915         (WebCore::KCanvasFEFlood::externalRepresentation):
2916         (WebCore::KCanvasFEGaussianBlur::externalRepresentation):
2917         (WebCore::KCanvasFEImage::externalRepresentation):
2918         (WebCore::KCanvasFEMerge::externalRepresentation):
2919         (WebCore::KCanvasFEMorphology::externalRepresentation):
2920         (WebCore::KCanvasFEOffset::externalRepresentation):
2921         (WebCore::KCanvasFESpecularLighting::externalRepresentation):
2922         (WebCore::KCanvasFETile::externalRepresentation):
2923         (WebCore::KCanvasFETurbulence::externalRepresentation):
2924         * kcanvas/KCanvasFilters.h:
2925         (WebCore::KCanvasFEDiffuseLighting::lightSource):
2926         (WebCore::KCanvasFESpecularLighting::lightSource):
2927         * kcanvas/KCanvasImage.h:
2928         * kcanvas/KCanvasMarker.cpp:
2929         (WebCore::KCanvasMarker::externalRepresentation):
2930         * kcanvas/KCanvasMarker.h:
2931         * kcanvas/KCanvasResource.cpp:
2932         (WebCore::operator<<):
2933         * kcanvas/KCanvasResource.h:
2934         * kcanvas/KCanvasTreeDebug.cpp:
2935         (WebCore::operator<<):
2936         (WebCore::writeIndent):
2937         (WebCore::writeStyle):
2938         (WebCore::write):
2939         (WebCore::writeRenderResources):
2940         * kcanvas/KCanvasTreeDebug.h:
2941         (WebCore::operator<<):
2942         * kcanvas/RenderForeignObject.cpp:
2943         (WebCore::RenderForeignObject::paint):
2944         * kcanvas/RenderPath.cpp:
2945         (WebCore::RenderPath::paint):
2946         (WebCore::drawStartAndMidMarkers):
2947         * kcanvas/RenderSVGContainer.cpp:
2948         (WebCore::RenderSVGContainer::paint):
2949         * kcanvas/RenderSVGImage.cpp:
2950         (WebCore::RenderSVGImage::translateForAttributes):
2951         * kcanvas/RenderSVGImage.h:
2952         * kcanvas/device/KRenderingDevice.cpp:
2953         (WebCore::KRenderingDevice::currentContext):
2954         (WebCore::KRenderingDevice::popContext):
2955         (WebCore::KRenderingDevice::pushContext):
2956         * kcanvas/device/KRenderingDevice.h:
2957         * kcanvas/device/KRenderingFillPainter.h:
2958         * kcanvas/device/KRenderingPaintServer.h:
2959         (WebCore::KRenderingPaintServer::KRenderingPaintServer):
2960         (WebCore::KRenderingPaintServer::activeClient):
2961         (WebCore::KRenderingPaintServer::setActiveClient):
2962         * kcanvas/device/KRenderingPaintServerGradient.cpp:
2963         (WebCore::operator<<):
2964         (WebCore::KRenderingPaintServerGradient::externalRepresentation):
2965         (WebCore::KRenderingPaintServerLinearGradient::externalRepresentation):
2966         (WebCore::KRenderingPaintServerGradient::listener):
2967         (WebCore::KRenderingPaintServerGradient::setListener):
2968         (WebCore::KRenderingPaintServerRadialGradient::externalRepresentation):
2969         * kcanvas/device/KRenderingPaintServerGradient.h:
2970         * kcanvas/device/KRenderingPaintServerPattern.cpp:
2971         (WebCore::KRenderingPaintServerPattern::tile):
2972         (WebCore::KRenderingPaintServerPattern::setTile):
2973         (WebCore::KRenderingPaintServerPattern::listener):
2974         (WebCore::KRenderingPaintServerPattern::setListener):
2975         (WebCore::KRenderingPaintServerPattern::externalRepresentation):
2976         * kcanvas/device/KRenderingPaintServerPattern.h:
2977         * kcanvas/device/KRenderingPaintServerSolid.cpp:
2978         (WebCore::KRenderingPaintServerSolid::externalRepresentation):
2979         * kcanvas/device/KRenderingPaintServerSolid.h:
2980         * kcanvas/device/KRenderingStrokePainter.cpp:
2981         (WebCore::KRenderingStrokePainter::strokeMiterLimit):
2982         (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
2983         * kcanvas/device/KRenderingStrokePainter.h:
2984         * kcanvas/device/quartz/KCanvasFilterQuartz.h:
2985         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
2986         (WebCore::KCanvasFilterQuartz::prepareFilter):
2987         * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
2988         * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
2989         (WebCore::KCanvasMaskerQuartz::applyMask):
2990         * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
2991         (WebCore::KCanvasImageQuartz::init):
2992         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
2993         (WebCore::KCanvasClipperQuartz::applyClip):
2994         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
2995         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
2996         (WebCore::KRenderingDeviceQuartz::quartzContext):
2997         (WebCore::KRenderingDeviceQuartz::contextForImage):
2998         (WebCore::KRenderingDeviceQuartz::createPaintServer):
2999         (WebCore::KRenderingDeviceQuartz::createResource):
3000         (WebCore::KRenderingDeviceQuartz::createFilterEffect):
3001         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
3002         (WebCore::CGShadingRefForLinearGradient):
3003         (WebCore::CGShadingRefForRadialGradient):
3004         (WebCore::KRenderingPaintServerGradientQuartz::updateQuartzGradientCache):
3005         (WebCore::KRenderingPaintServerGradientQuartz::teardown):
3006         * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
3007         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
3008         (WebCore::KRenderingPaintServerQuartzHelper::strokePath):
3009         (WebCore::KRenderingPaintServerQuartzHelper::clipToStrokePath):
3010         (WebCore::KRenderingPaintServerQuartzHelper::fillPath):
3011         (WebCore::KRenderingPaintServerQuartzHelper::clipToFillPath):
3012         (WebCore::KRenderingPaintServerSolidQuartz::draw):
3013         (WebCore::KRenderingPaintServerSolidQuartz::setup):
3014         (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
3015         (WebCore::KRenderingPaintServerPatternQuartz::setup):
3016         (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
3017         (WebCore::KRenderingPaintServerPatternQuartz::teardown):
3018         * kcanvas/device/quartz/QuartzSupport.h:
3019         * kcanvas/device/quartz/QuartzSupport.mm:
3020         (WebCore::applyStrokeStyleToContext):
3021
3022 2006-09-20  Anders Carlsson  <acarlsson@apple.com>
3023
3024         Reviewed by Dave Hyatt.
3025
3026         * dom/WheelEvent.cpp:
3027         (WebCore::WheelEvent::WheelEvent):
3028         Use lroundf instead of lround since deltas are floats.
3029
3030 2006-09-20  Julien Palmas  <julien.palmas@gmail.com>
3031
3032         Reviewed by eseidel.  Landed by eseidel.
3033
3034         Test: svg/custom/pattern-y-offset.svg
3035
3036         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
3037         (WebCore::KRenderingPaintServerPatternQuartz::setup):
3038
3039 2006-09-20  David Hyatt  <hyatt@apple.com>
3040
3041         Add a new wheelEvent method to ScrollView.  Platforms that wish
3042         to handle the wheel event for the scroll view themselves can then
3043         do so there.  (Mac lets the underlying NSScrollView do it for now.)
3044
3045         * page/FrameView.cpp:
3046         (WebCore::FrameView::handleWheelEvent):
3047         * platform/ScrollView.h:
3048         (WebCore::ScrollView::wheelEvent):
3049
3050 2006-09-20  Brady Eidson  <beidson@apple.com>
3051
3052         Reviewed by Tim Omernick
3053
3054         Part of fixing a crash Tim O showed me that I missed in a release build.
3055         WebKit should be able to call through the bridge to WebCore no matter what -
3056         Replace the _iconDB member with calls to IconDatabase::sharedIconDatabase()
3057
3058         * bridge/mac/WebCoreIconDatabaseBridge.h:
3059         * bridge/mac/WebCoreIconDatabaseBridge.mm:
3060         (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
3061         (-[WebCoreIconDatabaseBridge isOpen]):
3062         (-[WebCoreIconDatabaseBridge removeAllIcons]):
3063         (-[WebCoreIconDatabaseBridge _isEmpty]):
3064         (-[WebCoreIconDatabaseBridge isIconExpiredForIconURL:]):
3065         (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
3066         (-[WebCoreIconDatabaseBridge privateBrowsingEnabled]):
3067         (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
3068         (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
3069         (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
3070         (-[WebCoreIconDatabaseBridge retainIconForURL:]):
3071         (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
3072         (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
3073         (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
3074         (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
3075         (-[WebCoreIconDatabaseBridge _hasEntryForIconURL:]):
3076         (-[WebCoreIconDatabaseBridge _setEnabled:]):
3077         (-[WebCoreIconDatabaseBridge _isEnabled]):
3078
3079 2006-09-20  Anders Carlsson  <acarlsson@apple.com>
3080
3081         Reviewed by Darin.
3082
3083         Add String::split which returns a Vector of Strings and use it instead of 
3084         DeprecatedStringList.
3085         
3086         * bindings/js/kjs_events.cpp:
3087         (KJS::Clipboard::getValueProperty):
3088         * bindings/js/kjs_window.cpp:
3089         (KJS::parseModalDialogFeatures):
3090         * css/MediaList.cpp:
3091         (WebCore::MediaList::setMediaText):
3092         * dom/Clipboard.h:
3093         * html/HTMLFormElement.cpp:
3094         (WebCore::HTMLFormElement::formData):
3095         * html/HTMLLinkElement.cpp:
3096         (WebCore::HTMLLinkElement::tokenizeRelAttribute):
3097         * platform/PlatformString.h:
3098         * platform/String.cpp:
3099         (WebCore::String::split):
3100         * platform/StringImpl.cpp:
3101         * platform/StringImpl.h:
3102         * platform/mac/ClipboardMac.h:
3103         * platform/mac/ClipboardMac.mm:
3104         (WebCore::ClipboardMac::types):
3105
3106 2006-09-20  Justin Garcia  <justin.garcia@apple.com>
3107
3108         Reviewed by harrison
3109
3110         * css/cssstyleselector.cpp:
3111         (WebCore::CSSStyleSelector::adjustRenderStyle): Don't call 
3112         HTMLElement::isContentEditable just to check the Frame's editability, since
3113         it calls updateRenderering, which can get us into infinite recursion.
3114
3115 2006-09-20  Brady Eidson  <beidson@apple.com>
3116
3117         Reviewed by Darin
3118
3119         Cleaned up my last patch alot, and made the WebCore icon database disabled by default
3120
3121         * loader/icon/IconDatabase.cpp:
3122         (WebCore::IconDatabase::IconDatabase): Disabled by default
3123         (WebCore::IconDatabase::removeAllIcons): Respect just isOpen() (disabled database will always be closed)
3124         (WebCore::IconDatabase::setPrivateBrowsingEnabled): Ditto
3125         (WebCore::IconDatabase::iconForPageURL): Ditto
3126         (WebCore::IconDatabase::isIconExpiredForIconURL): Ditto
3127         (WebCore::IconDatabase::iconURLForPageURL): Ditto
3128         (WebCore::IconDatabase::retainIconForPageURL): Ditto
3129         (WebCore::IconDatabase::releaseIconForPageURL): Ditto
3130         (WebCore::IconDatabase::setIconDataForIconURL): Ditto
3131         (WebCore::IconDatabase::setIconURLForPageURL): Ditto
3132         (WebCore::IconDatabase::hasEntryForIconURL): Ditto
3133         (WebCore::IconDatabase::setEnabled): Fixed a big bug here!
3134
3135 2006-09-20  Adam Roben  <aroben@apple.com>
3136
3137         Reviewed by Adele.
3138
3139         Fixes http://bugs.webkit.org/show_bug.cgi?id=10935
3140         REGRESSION: file upload control with direction:rtl or text-align:right
3141         draws button on top of filename/icon
3142
3143         * rendering/RenderFileUploadControl.cpp:
3144         (WebCore::RenderFileUploadControl::setStyle): Force text-align to
3145         match direction
3146         (WebCore::RenderFileUploadControl::paintObject): Fix positioning of
3147         the filename and icon in RTL
3148
3149 2006-09-20  Alice Liu  <alice.liu@apple.com>
3150
3151         Reviewed by Adam Roben.
3152
3153         fixed windows build
3154
3155         * dom/WheelEvent.cpp:
3156         (WebCore::WheelEvent::WheelEvent):
3157         changed lrint to lround
3158
3159 2006-09-20  Sam Weinig  <sam.weinig@gmail.com>
3160
3161         Build Fix.  Adds isHorizontal attribute back to WheelEvent
3162         for the Objective-C bindings.  If it is found that isHorizontal
3163         is not used, we should remove it again but also remove it's
3164         declaration from PublicDOMInterfaces.h
3165
3166         * dom/WheelEvent.h:
3167         (WebCore::WheelEvent::isHorizontal):
3168         * dom/WheelEvent.idl:
3169
3170 2006-09-20  David Hyatt  <hyatt@apple.com>
3171
3172         Fix for 10945, WheelEvent should support two dimensions at once, since
3173         MacBooks allow for diagonal scrolling.  Also enhance the PlatformWheelEvent
3174         to allow for diagonal scrolling.
3175
3176         Reviewed by Eric
3177
3178         * dom/EventTargetNode.cpp:
3179         (WebCore::EventTargetNode::dispatchWheelEvent):
3180         * dom/WheelEvent.cpp:
3181         (WebCore::WheelEvent::WheelEvent):
3182         (WebCore::WheelEvent::initWheelEvent):
3183         * dom/WheelEvent.h:
3184         (WebCore::WheelEvent::wheelDelta):
3185         (WebCore::WheelEvent::wheelDeltaX):
3186         (WebCore::WheelEvent::wheelDeltaY):
3187         * dom/WheelEvent.idl:
3188         * page/FrameView.cpp:
3189         (WebCore::FrameView::handleWheelEvent):
3190         * platform/PlatformWheelEvent.h:
3191         (WebCore::PlatformWheelEvent::deltaX):
3192         (WebCore::PlatformWheelEvent::deltaY):
3193         (WebCore::PlatformWheelEvent::normalize):
3194         * platform/mac/WheelEventMac.mm:
3195         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
3196
3197 2006-09-19  Eric Seidel  <eric@eseidel.com>
3198
3199         Reviewed by hyatt.
3200
3201         Split KCanvasResources.* into multiple files (and some other minor spacing changes).
3202         
3203         No tests were harmed in the making of this patch.
3204
3205         * WebCore.xcodeproj/project.pbxproj:
3206         * kcanvas/KCanvasClipper.cpp: Added.
3207         (WebCore::operator<<):
3208         * kcanvas/KCanvasClipper.h: Added.
3209         * kcanvas/KCanvasFilters.h:
3210         * kcanvas/KCanvasImage.h:
3211         * kcanvas/KCanvasMarker.cpp: Added.
3212         * kcanvas/KCanvasMarker.h: Added.
3213         * kcanvas/KCanvasMasker.cpp: Added.
3214         (WebCore::KCanvasMasker::KCanvasMasker):
3215         (WebCore::KCanvasMasker::setMask):
3216         (WebCore::KCanvasMasker::externalRepresentation):
3217         (WebCore::getMaskerById):
3218         * kcanvas/KCanvasMasker.h: Added.
3219         * kcanvas/KCanvasResource.cpp: Added.
3220         (WebCore::KCanvasResource::invalidate):
3221         (WebCore::KCanvasResource::externalRepresentation):
3222         (WebCore::getResourceById):
3223         (WebCore::getPaintServerById):
3224         * kcanvas/KCanvasResource.h: Added.
3225         * kcanvas/KCanvasResources.cpp: Removed.
3226         * kcanvas/KCanvasResources.h: Removed.
3227         * kcanvas/RenderPath.cpp:
3228         * kcanvas/RenderSVGContainer.cpp:
3229         * kcanvas/RenderSVGImage.cpp:
3230         * kcanvas/RenderSVGText.cpp:
3231         * kcanvas/device/KRenderingPaintServer.h:
3232         * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
3233         * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
3234         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
3235         * ksvg2/svg/SVGClipPathElement.h:
3236         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
3237         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
3238         * ksvg2/svg/SVGFECompositeElement.cpp:
3239         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
3240         * ksvg2/svg/SVGFELightElement.cpp:
3241         * ksvg2/svg/SVGFEOffsetElement.cpp:
3242         * ksvg2/svg/SVGFETurbulenceElement.cpp:
3243         * ksvg2/svg/SVGFilterElement.cpp:
3244         * ksvg2/svg/SVGLinearGradientElement.cpp:
3245         * ksvg2/svg/SVGMarkerElement.h:
3246         * ksvg2/svg/SVGMaskElement.h:
3247
3248 2006-09-19  Brady Eidson <beidson@apple.com>
3249
3250         Reviewed by Sarge Decker
3251
3252         <rdar://problem/4739892> and <rdar://problem/4729797>
3253         - WebCore::IconDatabase needs to have and respect an enabled() flag
3254         - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
3255
3256         * bridge/mac/WebCoreIconDatabaseBridge.h:
3257         * bridge/mac/WebCoreIconDatabaseBridge.mm:
3258         (-[WebCoreIconDatabaseBridge _setEnabled:]): Added
3259         (-[WebCoreIconDatabaseBridge _isEnabled]): Added
3260         * loader/icon/IconDatabase.cpp:
3261         (WebCore::IconDatabase::IconDatabase):
3262         (WebCore::IconDatabase::open): Don't open if disabled
3263         (WebCore::IconDatabase::removeAllIcons): Ignore if disabled/closed
3264         (WebCore::IconDatabase::setPrivateBrowsingEnabled): Ignore if disabled/closed
3265         (WebCore::IconDatabase::iconForPageURL): Default Icon if disabled/closed
3266         (WebCore::IconDatabase::isIconExpiredForIconURL): Default return if disabled/closed
3267         (WebCore::IconDatabase::iconURLForPageURL): Default return if disabled/closed
3268         (WebCore::IconDatabase::retainIconForPageURL): Ignore if disabled/closed
3269         (WebCore::IconDatabase::releaseIconForPageURL): Ignore if disabled/closed
3270         (WebCore::IconDatabase::releaseIconURL):
3271         (WebCore::IconDatabase::setIconDataForIconURL): Ignore if disabled/closed
3272         (WebCore::IconDatabase::setIconURLForPageURL): Ignore if disabled/closed
3273         (WebCore::IconDatabase::hasEntryForIconURL): Default return if disabled/closed
3274         (WebCore::IconDatabase::setEnabled): Added
3275         * loader/icon/IconDatabase.h:
3276         (WebCore::IconDatabase::enabled): Added
3277         * page/Frame.cpp:
3278         (WebCore::Frame::endIfNotLoading): do an IconDatabase::enabled() check before bothering to load the icon
3279         * platform/mac/ResourceLoaderMac.mm: Removed extraneous #include
3280
3281 2006-09-20  David Hyatt  <hyatt@apple.com>
3282
3283         Massage mouse wheel handling so that it is more cross-platform.  Make
3284         all the work happen in handleWheelEvent on the FrameView.
3285
3286         Reviewed by bradee-oh
3287
3288         * bridge/mac/FrameMac.mm:
3289         (WebCore::FrameMac::wheelEvent):
3290         * page/FrameView.cpp:
3291         (WebCore::FrameView::handleWheelEvent):
3292         * platform/PlatformWheelEvent.h:
3293         (WebCore::PlatformWheelEvent::platformDelta):
3294         (WebCore::PlatformWheelEvent::delta):
3295         * platform/mac/WheelEventMac.mm:
3296         (WebCore::platformDeltaForEvent):
3297         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
3298         * rendering/RenderLayer.cpp:
3299         (WebCore::RenderLayer::scroll):
3300         * rendering/RenderObject.cpp:
3301         (WebCore::RenderObject::scroll):
3302
3303 2006-09-19  Eric Seidel  <eric@eseidel.com>
3304
3305         Reviewed by adele.
3306
3307         Improve test output for filters with bounding-box relative sizes.
3308         http://bugs.webkit.org/show_bug.cgi?id=8585
3309
3310         Many test results updated.
3311
3312         * kcanvas/KCanvasFilters.cpp:
3313         (WebCore::KCanvasFilter::externalRepresentation):
3314
3315 2006-09-19  Eric Seidel  <eric@eseidel.com>
3316
3317         Reviewed by adele.
3318         
3319         Markers should clip to their viewport.
3320         http://bugs.webkit.org/show_bug.cgi?id=5967
3321
3322         Test: svg/custom/marker-overflow-clip.svg
3323
3324         * kcanvas/KCanvasResources.cpp:
3325         (WebCore::KCanvasMarker::KCanvasMarker):
3326         (WebCore::KCanvasMarker::setMarker):
3327         (WebCore::KCanvasMarker::draw):
3328         * kcanvas/KCanvasResources.h:
3329         (WebCore::KCanvasMasker::mask):
3330         * ksvg2/svg/SVGMarkerElement.cpp:
3331         (WebCore::SVGMarkerElement::SVGMarkerElement):
3332         (WebCore::SVGMarkerElement::parseMappedAttribute):
3333         (WebCore::SVGMarkerElement::canvasResource):
3334         (WebCore::SVGMarkerElement::createRenderer):
3335
3336 2006-09-19  Justin Garcia  <justin.garcia@apple.com>
3337
3338         Reviewed by eseidel
3339
3340         Backing out my recent change.
3341
3342         * css/cssstyleselector.cpp:
3343         (WebCore::CSSStyleSelector::adjustRenderStyle): 
3344
3345 2006-09-19  Brady Eidson  <beidson@apple.com>
3346
3347         Reviewed by Kevin McCullough
3348
3349         http://bugs.webkit.org/show_bug.cgi?id=10940
3350         Opening a PDF in a new tab/window creates a documentless-frame
3351         and we deref the document without checking its validity
3352
3353         * page/Frame.cpp:
3354         (WebCore::Frame::iconURL):
3355
3356 2006-09-19  Justin Garcia  <justin.garcia@apple.com>
3357
3358         Reviewed by harrison
3359         
3360         <rdar://problem/4735272>
3361         Can not click into link in programmatically editable content
3362
3363         * css/cssstyleselector.cpp:
3364         (WebCore::CSSStyleSelector::adjustRenderStyle): We stopped using
3365         userModify to implement document wide editability.
3366
3367 2006-09-19  MorganL  <morlmor@yahoo.com>
3368
3369         Reviewed by Darin and landed by Brady
3370
3371         Fixes http://bugs.webkit.org/show_bug.cgi?id=10939
3372         Build broken when SVG is not enabled.
3373
3374         * dom/XMLTokenizer.cpp:
3375         (WebCore::XMLTokenizer::startElementNs):
3376
3377 2006-09-19  Justin Garcia  <justin.garcia@apple.com>
3378
3379         Reviewed by harrison
3380         
3381         <rdar://problem/4727383> REGRESSION: Pasting plain text with tabs into Blot converts the tabs to single spaces
3382
3383         Pasting plain text results in a match style paste, and the insertion
3384         position is whitespace normal, which clobbers the whitespace:pre on 
3385         tab spans.  Skip changes to the whitespace mode when computing a style
3386         change for tab spans or the text nodes inside tab spans.
3387
3388         * editing/ApplyStyleCommand.cpp:
3389         (WebCore::StyleChange::init): Don't change the whitespace mode inside
3390         tab spans.
3391
3392 2006-09-19  David Hyatt  <hyatt@apple.com>
3393
3394         Fix for bug 5298, shape=default not supported for image maps.  Implement
3395         support for it.
3396
3397         Reviewed by timo
3398
3399         * html/HTMLAreaElement.cpp:
3400         (WebCore::HTMLAreaElement::getRegion):
3401         * html/HTMLMapElement.cpp:
3402         (WebCore::HTMLMapElement::mapMouseEvent):
3403
3404 2006-09-19  Adam Roben  <aroben@apple.com>
3405
3406         Reviewed by Adele.
3407
3408         Fixes http://bugs.webkit.org/show_bug.cgi?id=10824
3409         "no file selected" placeholder text missing from file upload control
3410
3411         * WebCore.xcodeproj/project.pbxproj:
3412         * rendering/RenderFileUploadControl.cpp: Remove class
3413         RenderFileUploadInnerFileBox, rename defaultFilenameNumChars to
3414         defaultWidthNumChars
3415         (WebCore::RenderFileUploadControl::RenderFileUploadControl): Call
3416         RenderBlock constructor instead of RenderFlexibleBox, 
3417         (WebCore::RenderFileUploadControl::setStyle): Remove references to
3418         m_fileBox.
3419         (WebCore::RenderFileUploadControl::valueChanged): Call repaint()
3420         instead of updateIconAndFileName() (which has been removed)
3421         (WebCore::RenderFileUploadControl::updateFromElement): Remove
3422         references to m_fileBox, don't call updateIconAndFilename()
3423         (WebCore::RenderFileUploadControl::maxFilenameWidth): Calculate width
3424         without using m_fileBox
3425         (WebCore::RenderFileUploadControl::createButtonStyle): Remove
3426         now-unnecessary display:box rule.
3427         (WebCore::RenderFileUploadControl::paintObject): Remove redundant call
3428         to paintingDisabled() now that Icon::paint() does it, and add code to
3429         paint the filename directly.
3430         (WebCore::RenderFileUploadControl::calcMinMaxWidth): Move this method
3431         out of RenderFileUploadInnerFileBox and into RenderFileUploadControl
3432         * rendering/RenderFileUploadControl.h: Make RenderFileUploadControl a
3433         subclass of RenderBlock instead of RenderFlexibleBox, remove
3434         updateIconAndFilename() method, remove m_fileBox instance variable.
3435
3436 2006-09-19  Eric Seidel  <eric@eseidel.com>
3437
3438         Reviewed by hyatt.
3439
3440         Exceptions thrown from <script> tags in XHTML/SVG docs show the wrong line numbers
3441         http://bugs.webkit.org/show_bug.cgi?id=10846
3442         
3443         No automated test case possible until http://bugs.webkit.org/show_bug.cgi?id=10905 is resolved.
3444
3445         * dom/XMLTokenizer.cpp:
3446         (WebCore::XMLTokenizer::XMLTokenizer):
3447         (WebCore::XMLTokenizer::startElementNs):
3448         (WebCore::XMLTokenizer::endElementNs):
3449
3450 2006-09-19  Krzysztof Kowalczyk <kkowalczyk@gmail.com>
3451
3452         Reviewed by eseidel.  Landed by eseidel.
3453         
3454         Build fix only, no tests affected.
3455
3456         * platform/gdk/FontPlatformDataGdk.cpp:
3457         (WebCore::FontPlatformData::FontPlatformData):
3458         (WebCore::FontPlatformData::~FontPlatformData):
3459         * platform/gdk/FrameGdk.h:
3460         * platform/gdk/TemporaryLinkStubs.cpp:
3461         (FrameGdk::isLoadTypeReload):
3462         (FrameGdk::originalRequestURL):
3463         (IconDatabase::setIconURLForPageURL):
3464
3465 2006-09-19  David Hyatt  <hyatt@apple.com>
3466
3467         Refine the fix for 9805 to really get all the complex cases right.
3468
3469         Reviewed by Eric
3470
3471         * rendering/RenderBlock.cpp:
3472         (WebCore::RenderBlock::clearFloatsIfNeeded):
3473         (WebCore::RenderBlock::handleBottomOfBlock):
3474
3475 2006-09-18  David Hyatt  <hyatt@apple.com>
3476
3477         Fix for 9805, <hr> not positioned properly following a previous empty sibling
3478         that had clear:both set on it.  Update self-collapsing block clearance
3479         behavior to match what is specified in the latest draft of CSS2.1.
3480
3481         Reviewed by Eric
3482
3483         Added fast/block/margin-collapse/empty-clear-blocks.html
3484
3485         * rendering/RenderBlock.cpp:
3486         (WebCore::RenderBlock::clearFloatsIfNeeded):
3487         (WebCore::RenderBlock::handleBottomOfBlock):
3488
3489 2006-09-18  MorganL  <morlmor@yahoo.com>
3490
3491         Reviewed by Brady, landed by Brady
3492
3493         Send receivedResponse callback to ResourceLoaderClient when loading
3494         file URLs.
3495
3496         See http://bugs.webkit.org/show_bug.cgi?id=10845
3497
3498         * platform/win/ResourceLoaderWin.cpp:
3499         (WebCore::ResourceLoader::fileLoadTimer):
3500
3501 2006-09-18  Brady Eidson  <beidson@apple.com>
3502
3503         Reviewed by Anders
3504
3505         <rdar://problem/3028061> - WebKit never updates favicon
3506         The WebKit enforced expiration date for icons has worked for some time, but the
3507         move to the new Icon Loader broke the "always get the icon if the user refreshes the page" 
3508         functionality.  This patch fixes that up, along with some other architectural improvements,
3509         the main one being that WebCore::Document now contains an iconURL for the Frame to query if needed.
3510
3511         * bridge/mac/FrameMac.h: Added isLoadTypeReload()
3512         * bridge/mac/FrameMac.mm:
3513         (WebCore::FrameMac::isLoadTypeReload): Implementation, calls into the bridge
3514         * bridge/mac/WebCoreFrameBridge.h: Added isLoadTypeReload:
3515         * bridge/win/FrameWin.h: Added isLoadTypeReload() for temporary link stub
3516         * dom/Document.h: Added m_iconURL
3517         (WebCore::Document::iconURL): Added
3518         (WebCore::Document::setIconURL): Ditto
3519         * html/HTMLLinkElement.cpp:
3520         (WebCore::HTMLLinkElement::process): Sets the iconURL in the Document instead of the Frame
3521         * page/Frame.cpp:
3522         (WebCore::Frame::iconURL): Calculates the iconURL based on the document, then the default favicon.ico url
3523         (WebCore::Frame::endIfNotLoading): Checks for the load type - always loads icon on Reload
3524         * page/Frame.h: Nuked setIconURL(), added isLoadTypeReload()
3525         * page/FramePrivate.h: Nuked IconURL
3526         * platform/win/TemporaryLinkStubs.cpp:
3527         (FrameWin::isLoadTypeReload):
3528
3529 2006-09-18  Sam Weinig  <sam.weinig@gmail.com>
3530
3531         Reviewed by Tim H.
3532
3533         - Re-add private method [DOMRGBColor _color] to DOMPrivate.h as
3534           it is it turns out that AppKit uses it.
3535
3536         * bindings/objc/DOMPrivate.h:
3537         * bindings/objc/DOMRGBColor.mm:
3538         (-[DOMRGBColor _color]):
3539
3540 2006-09-18  Sam Weinig  <sam.weinig@gmail.com>
3541
3542         Reviewed by Tim H.
3543
3544         Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
3545         Yet Another Objective-C Bindings Patch
3546
3547         - Whitespace cleanup for IDLParser.pm
3548
3549         - Split DOMException, DOMRangeException, DOMXPathException, DOMEventsException
3550           and DOMAbstractView into their own files.
3551
3552         - Remove private method [DOMRGBColor _color] from DOMPrivate.h as
3553           it is not used and a public method is available now.
3554
3555         - Remove internal method [DOMDocument _ownerElement] from DOMInternal.h
3556           as it not used.
3557
3558         - Auto-generate method isContentEditable for DOMNode.
3559
3560         - General cleanup of bindings code including removing unneeded #imports
3561           and whitespace cleanup
3562
3563         * WebCore.xcodeproj/project.pbxproj:
3564         * bindings/objc/DOM.mm:
3565         (addElementClass):
3566         (elementClass):
3567         (-[DOMNode _initWithNode:WebCore::]):
3568         (+[DOMNode _nodeWith:WebCore::]):
3569         (-[DOMNode WebCore::]):
3570         (-[DOMNode KJS::Bindings::]):
3571         (-[DOMNode addEventListener:::]):
3572         (-[DOMNode removeEventListener:::]):
3573         (-[DOMNode dispatchEvent:]):
3574         (-[DOMElement image]):
3575         (-[DOMElement _font]):
3576         (-[DOMElement _imageTIFFRepresentation]):
3577         (-[DOMElement _getURLAttribute:]):
3578         (-[DOMElement _NPObject]):
3579         (-[DOMElement isFocused]):
3580         (-[DOMRange dealloc]):
3581         (-[DOMRange finalize]):
3582         (-[DOMRange description]):
3583         (-[DOMRange startContainer]):
3584         (-[DOMRange startOffset]):
3585         (-[DOMRange endContainer]):
3586         (-[DOMRange endOffset]):
3587         (-[DOMRange collapsed]):
3588         (-[DOMRange commonAncestorContainer]):
3589         (-[DOMRange setStart::]):
3590         (-[DOMRange setEnd::]):
3591         (-[DOMRange setStartBefore:]):
3592         (-[DOMRange setStartAfter:]):
3593         (-[DOMRange setEndBefore:]):
3594         (-[DOMRange setEndAfter:]):
3595         (-[DOMRange collapse:]):
3596         (-[DOMRange selectNode:]):
3597         (-[DOMRange selectNodeContents:]):
3598         (-[DOMRange compareBoundaryPoints::]):
3599         (-[DOMRange deleteContents]):
3600         (-[DOMRange extractContents]):
3601         (-[DOMRange cloneContents]):
3602         (-[DOMRange insertNode:]):
3603         (-[DOMRange surroundContents:]):
3604         (-[DOMRange cloneRange]):
3605         (-[DOMRange toString]):
3606         (-[DOMRange detach]):
3607         (-[DOMRange _initWithRange:WebCore::]):
3608         (+[DOMRange _rangeWith:WebCore::]):
3609         (-[DOMRange WebCore::]):
3610         (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
3611         (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
3612         (-[DOMNodeFilter WebCore::]):
3613         (-[DOMNodeFilter dealloc]):