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