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