Reviewed by Levi
[WebKit-https.git] / WebCore / ChangeLog
1 2006-06-27  Brady Eidson  <beidson@apple.com>
2
3         Reviewed by Levi
4
5         Some SQLDatabase cleanup (style stuff) and enhancements
6
7         * icon/SQLDatabase.cpp:
8         (SQLDatabase::open):
9         (SQLDatabase::executeCommand):
10         (SQLDatabase::returnsAtLeastOneResult):  Accessor to see if this query returns results
11         (SQLDatabase::lastInsertRowID):  Accessor for the rowid of the last insert
12         * icon/SQLDatabase.h:
13         (WebCore::SQLStatement::prepareAndStep):
14         * icon/SQLStatement.cpp:
15         (WebCore::SQLStatement::bindInt64):
16         -All of the following used to require the user to manually prepare and step a statement
17         before asking for the result.  Now it will prepare and step itself so you can use a temporary
18         object to get a quick result
19         (WebCore::SQLStatement::getColumnName):
20         (WebCore::SQLStatement::getColumnName16):
21         (WebCore::SQLStatement::getColumnText):
22         (WebCore::SQLStatement::getColumnText16):
23         (WebCore::SQLStatement::getColumnDouble):
24         (WebCore::SQLStatement::getColumnInt):
25         (WebCore::SQLStatement::getColumnInt64):
26         (WebCore::SQLStatement::getColumnBlobAsVector):
27         (WebCore::SQLStatement::getColumnBlob):
28
29 2006-06-27  Ada Chan <adachan@apple.com>
30
31         Reviewed by sfalken.
32
33         Fixed build.
34
35         * WebCore.vcproj/WebCore/WebCore.vcproj:
36
37 2006-06-27  Beth Dakin  <bdakin@apple.com>
38
39         Reviewed by Hyatt.
40
41         Fix for <rdar://problem/4602635> Media queries must be extended to 
42         address CSS pixel scaling factor
43
44         * css/MediaFeatureNames.h: Add -webkit-device-pixel-ratio, -webkit-
45         min-device-pixel-ratio, and -webkit-max-device-pixel-ratio to the 
46         list of feature names.
47         * css/MediaQueryEvaluator.cpp:
48         (WebCore::cmpvalue): Added a version of cmpvalue that compares 
49         floats.
50         (WebCore::device_pixel_ratioMediaFeatureEval):
51         (WebCore::min_device_pixel_ratioMediaFeatureEval):
52         (WebCore::max_device_pixel_ratioMediaFeatureEval):
53
54 2006-06-27  Darin Adler  <darin@apple.com>
55
56         Reviewed by Geoff.
57
58         - finish with http://bugzilla.opendarwin.org/show_bug.cgi?id=9606
59           REGRESSION: some callers are still using clientX/Y to get pageX/Y
60
61         * rendering/RenderFrameSet.cpp: (WebCore::RenderFrameSet::userResize):
62         Change to use pageX/Y, but this really doesn't matter since framesets
63         can't be scrolled -- it's the frames that are scrolled. So this change
64         has no user-visible effect, but it's still better this way.
65
66 2006-06-27  Darin Adler  <darin@apple.com>
67
68         Reviewed by Geoff.
69
70         - fix 2/3 of http://bugzilla.opendarwin.org/show_bug.cgi?id=9606
71           REGRESSION: some callers are still using clientX/Y to get pageX/Y
72
73         Test: fast/events/anchor-image-scrolled-x-y.html
74         Test: fast/events/input-image-scrolled-x-y.html
75
76         * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::defaultEventHandler): Use pageX/Y.
77         * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler): Ditto.
78
79 2006-06-27  Brady Eidson  <beidson@apple.com>
80
81         Reviewed by Maciej
82
83         Added functionality to WebCore::Image to get multiple representations/sizes into TIFF data
84
85         * platform/mac/ImageMac.mm:
86         (WebCore::Image::getTIFFRepresentation):
87
88 2006-06-26  David Hyatt  <hyatt@apple.com>
89
90         Fix for 9538, support syntax highlighted HTML source.  Lots of loose
91         ends still (script/style/comments/doctype/entities/accurate whitespace).
92
93         Reviewed by darin
94
95         * DerivedSources.make:
96         * WebCore.xcodeproj/project.pbxproj:
97         * bridge/mac/WebCoreFrameBridge.h:
98         * bridge/mac/WebCoreFrameBridge.mm:
99         (-[WebCoreFrameBridge setInViewSourceMode:]):
100         (-[WebCoreFrameBridge inViewSourceMode]):
101         * css/cssstyleselector.cpp:
102         (WebCore::CSSStyleSelector::loadDefaultStyle):
103         (WebCore::CSSStyleSelector::matchUARules):
104         * css/cssstyleselector.h:
105         * css/view-source.css: Added.
106         * dom/Document.cpp:
107         (WebCore::Document::implicitClose):
108         * dom/xml_tokenizer.h:
109         (WebCore::Tokenizer::Tokenizer):
110         (WebCore::Tokenizer::~Tokenizer):
111         (WebCore::Tokenizer::inViewSourceMode):
112         (WebCore::Tokenizer::setInViewSourceMode):
113         * html/HTMLAttributeNames.in:
114         * html/HTMLFrameElement.cpp:
115         (WebCore::HTMLFrameElement::init):
116         (WebCore::HTMLFrameElement::parseMappedAttribute):
117         (WebCore::HTMLFrameElement::attach):
118         * html/HTMLFrameElement.h:
119         (WebCore::HTMLFrameElement::viewSourceMode):
120         * html/HTMLTokenizer.cpp:
121         (WebCore::HTMLTokenizer::HTMLTokenizer):
122         (WebCore::HTMLTokenizer::scriptHandler):
123         (WebCore::HTMLTokenizer::scriptExecution):
124         (WebCore::HTMLTokenizer::parseTag):
125         (WebCore::HTMLTokenizer::continueProcessing):
126         (WebCore::HTMLTokenizer::write):
127         (WebCore::HTMLTokenizer::timerFired):
128         (WebCore::HTMLTokenizer::end):
129         (WebCore::HTMLTokenizer::processToken):
130         (WebCore::HTMLTokenizer::notifyFinished):
131         * html/HTMLTokenizer.h:
132         * html/HTMLViewSourceDocument.cpp: Added.
133         (WebCore::HTMLViewSourceDocument::HTMLViewSourceDocument):
134         (WebCore::HTMLViewSourceDocument::createTokenizer):
135         (WebCore::HTMLViewSourceDocument::addViewSourceToken):
136         (WebCore::HTMLViewSourceDocument::addViewSourceAttribute):
137         (WebCore::HTMLViewSourceDocument::addSpanWithClassName):
138         * html/HTMLViewSourceDocument.h: Added.
139         * page/Frame.cpp:
140         (WebCore::Frame::begin):
141         (WebCore::Frame::inViewSourceMode):
142         (WebCore::Frame::setInViewSourceMode):
143         * page/Frame.h:
144         * page/FramePrivate.h:
145         (WebCore::FramePrivate::FramePrivate):
146         * rendering/RenderPartObject.cpp:
147         (WebCore::RenderPartObject::updateWidget):
148
149 2006-06-26  Anders Carlsson  <acarlsson@apple.com>
150
151         Reviewed by Darin.
152
153         http://bugzilla.opendarwin.org/show_bug.cgi?id=9031
154         REGRESSION: Crash when closing tabs on newegg.com
155         
156         * page/Frame.cpp:
157         (WebCore::Frame::pageDestroyed):        
158         * page/Frame.h:
159         Add new method which is invoked when the frame's page has been destroyed.
160         Currently this function disassociates the JS Window object with the frame, 
161         stopping any running JS timers.
162         
163         * page/Page.cpp:
164         (WebCore::Page::~Page):
165         Call pageDestroyed on all frames.
166
167 2006-06-26  Rob Buis  <buis@kde.org>
168
169         Reviewed and reworked by Darin.
170
171         Code cleanup, calculate clientX/clientY in one central place.
172
173         * dom/EventTargetNode.h:
174         * dom/EventTargetNode.cpp: (WebCore::EventTargetNode::dispatchMouseEvent):
175         Renamed parameters to pageX/Y since they aren't clientX/Y values.
176         Removed code to compute clientX/Y (was a bit confused in naming before),
177         because that's now done inside MouseEvent.
178
179         * dom/MouseEvent.h:
180         * dom/MouseEvent.cpp:
181         (WebCore::MouseEvent::MouseEvent): Removed clientX/Y parameters.
182         (WebCore::MouseEvent::initMouseEvent): Added comments about problems I noticed.
183         (WebCore::MouseEvent::which): Fixed comment that confusingly mentioned KHTML,
184         when it was talking about the DOM standard.
185
186         * dom/MouseRelatedEvent.h:
187         * dom/MouseRelatedEvent.cpp:
188         (WebCore::contentsX): Added helper function.
189         (WebCore::contentsY): Ditto.
190         (WebCore::MouseRelatedEvent::MouseRelatedEvent): Removed clientX/Y parameter,
191         and added code to compute clientX/Y based on pageX/Y.
192         (WebCore::MouseRelatedEvent::receivedTarget): Fixed comments.
193
194         * dom/WheelEvent.h:
195         * dom/WheelEvent.cpp: (WebCore::WheelEvent::WheelEvent): Removed clientX/Y
196         parameter.
197
198         * page/FrameView.cpp: (WebCore::FrameView::dispatchDragEvent): Removed the code
199         to compute coordinates, and renamed the confusingly named clientPos (which was
200         a page-relative position) to contentsPos.
201
202 2006-06-25  David Carson  <dacarson@gmail.com>
203
204         Reviewed and tweaked by Darin.
205
206         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9185
207         REGRESSION: UserID field appears with an incorrect height 
208         on americanexpresslogin page
209         - Height and Width attribute only applies to IMAGE and HIDDEN
210         types.
211
212         * dom/NamedMappedAttrMap.h:
213         (WebCore::NamedMappedAttrMap::getAttributeItem):
214         Added to static_cast method.
215
216         * html/HTMLInputElement.cpp:
217         (WebCore::HTMLInputElement::setInputType):
218         Update the style decl if input type has changed.
219         (WebCore::HTMLInputElement::mapToEntry):
220         Only Cache height and width if it is an IMAGE or HIDDEN
221         (WebCore::HTMLInputElement::parseMappedAttribute):
222         Check type before adding height and width style.
223         (WebCore::HTMLInputElement::attach):
224         Remove code for discarding width.
225
226         * html/HTMLInputElement.h:
227         (WebCore::HTMLInputElement::respectHeightAndWidthAttrs):
228         New method added to report if this input type uses height & width.
229
230 2006-06-25  David Kilzer  <ddkilzer@kilzer.net>
231
232         Reviewed by Darin.
233
234         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9537
235           REGRESSION: Reproducible crash in WebCore::RenderTextField::textWithHardLineBreaks()
236
237         Test: fast/forms/textarea-hard-linewrap-empty.html
238
239         * rendering/RenderTextField.cpp:
240         (WebCore::RenderTextField::textWithHardLineBreaks): Added null check for
241         m_div->firstChild()->renderer().
242
243 2006-06-25  Mitz Pettel  <opendarwin.org@mitzpettel.com>
244
245         Reviewed by Darin.
246
247         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9388
248           REGRESSION: outlines don't get erased when removed in some cases
249
250         Test: fast/repaint/outline-shrinking.html
251
252         * rendering/RenderObject.cpp:
253         (WebCore::RenderObject::setStyle): Always repaint with the old style if the outline is
254         becoming narrower, even if we are going to relayout.
255
256 2006-06-25  Rob Buis  <buis@kde.org>
257
258         Reviewed by Darin.
259
260         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8707:
261         event.clientX and event.clientY should be relative to the viewport, not the canvas
262
263         Make sure clientX and clientY take into account the scroll offsets
264         of the view.
265
266         * dom/EventTargetNode.cpp:
267         (WebCore::EventTargetNode::dispatchMouseEvent):
268         * dom/MouseEvent.cpp:
269         (WebCore::MouseEvent::MouseEvent):
270         * dom/MouseEvent.h:
271         * dom/MouseRelatedEvent.cpp:
272         (WebCore::MouseRelatedEvent::MouseRelatedEvent):
273         (WebCore::MouseRelatedEvent::initCoordinates):
274         * dom/MouseRelatedEvent.h:
275         * dom/WheelEvent.cpp:
276         (WebCore::WheelEvent::WheelEvent):
277         * page/FrameView.cpp:
278         (WebCore::FrameView::dispatchDragEvent):
279
280 2006-06-25  Timothy Hatcher  <timothy@apple.com>
281
282         Reviewed by Darin.
283
284         Bug 9574: Drosera should show inline scripts within the original HTML
285         http://bugzilla.opendarwin.org/show_bug.cgi?id=9574
286
287         * Pass the starting line number and error message to the debugger.
288         * Call parsedSource even if there was a script parse error so the
289           debugger can show the parse error.
290         * Pass NSURL objects to the ObjC delegate for the script URLs.
291
292         * bridge/mac/WebCoreScriptDebugger.h:
293         * bridge/mac/WebCoreScriptDebugger.mm:
294         (toNSURL):
295         (WebCoreScriptDebuggerImp::sourceParsed):
296
297 2006-06-24  David Kilzer  <ddkilzer@kilzer.net>
298
299         Build fix.  Reviewed by NOBODY.
300
301         - Backed out patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=8707
302           event.clientX and event.clientY should be relative to the viewport, not the canvas
303
304         * dom/EventTargetNode.cpp:
305         (WebCore::EventTargetNode::dispatchMouseEvent):
306         * dom/MouseEvent.cpp:
307         (WebCore::MouseEvent::MouseEvent):
308         * dom/MouseEvent.h:
309         * dom/MouseRelatedEvent.cpp:
310         (WebCore::MouseRelatedEvent::MouseRelatedEvent):
311         (WebCore::MouseRelatedEvent::initCoordinates):
312         * dom/MouseRelatedEvent.h:
313         * dom/WheelEvent.cpp:
314         (WebCore::WheelEvent::WheelEvent):
315
316 2006-06-24  Rob Buis  <buis@kde.org>
317
318         Reviewed by Darin.
319
320         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8707:
321         event.clientX and event.clientY should be relative to the viewport, not the canvas
322
323         Make sure clientX and clientY take into account the scroll offsets
324         of the view.
325
326         Test: fast/dom/window-xy-properties.html
327
328         * dom/EventTargetNode.cpp:
329         (WebCore::EventTargetNode::dispatchMouseEvent):
330         * dom/MouseEvent.cpp:
331         (WebCore::MouseEvent::MouseEvent):
332         * dom/MouseEvent.h:
333         * dom/MouseRelatedEvent.cpp:
334         (WebCore::MouseRelatedEvent::MouseRelatedEvent):
335         (WebCore::MouseRelatedEvent::initCoordinates):
336         * dom/MouseRelatedEvent.h:
337         * dom/WheelEvent.cpp:
338         (WebCore::WheelEvent::WheelEvent):
339
340 2006-06-24  Rob Buis  <buis@kde.org>
341
342         Reviewed by Darin.
343
344         http://bugzilla.opendarwin.org/show_bug.cgi?id=9352
345         Webkit doesn't respect stroke-width in SVG for smaller <circle>s
346
347         Make sure the stroke path is set before applying gradient transforms.
348
349         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
350         (WebCore::KRenderingPaintServerGradientQuartz::setup):
351         (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
352
353 2006-06-24  Alexey Proskuryakov  <ap@nypop.com>
354
355         Rubber-stamped by Eric.
356
357         Add a -h (do not follow symlinks) option to ln in derived sources build script (without it,
358         a symlink was created inside the source directory on second build).
359
360         * WebCore.xcodeproj/project.pbxproj:
361
362 2006-06-24  James G. Speth  <speth@end.com>
363
364         Reviewed by Darin.  Copyrights tweaked by ddkilzer.
365         
366         Bug 8331: DOMNodeLists returned to Objective-C are not properly wrapped
367         http://bugzilla.opendarwin.org/show_bug.cgi?id=8331
368         
369         DOMNodes were the only objects handled by createObjcInstanceForValue.
370         now it handles all of these: DOMNode, DOMNodeList, DOMNamedNodeMap, DOMStyleSheetList,
371         DOMStyleSheet, DOMMediaList, DOMCSSRuleList, DOMCSSRule, DOMCSSStyleDeclaration, and DOMCSSValue
372         
373         * WebCore.xcodeproj/project.pbxproj: added file DOMCSSInternal.h to project
374         * bindings/js/kjs_css.cpp:
375         (KJS::): changed ClassInfo for DOMCSSStyleSheet to have DOMStyleSheet as its parent class
376         * bindings/objc/DOM.mm:
377         (-[DOMDocumentType :]):  moved DOMNamedNodeMap (WebCoreInternal) interface to DOMInternal.h
378         * bindings/objc/DOMCSS.mm: moved WebCoreInternal interfaces to DOMCSSInternal.h
379         * bindings/objc/DOMCSSInternal.h: Added file, contains WebCoreInternal interface for CSS classes
380         * bindings/objc/DOMInternal.h: added DOMNamedNodeMap (WebCoreInternal) interface
381         * bindings/objc/DOMUtility.mm:
382         (KJS::ScriptInterpreter::createObjcInstanceForValue): support for more classes
383
384 2006-06-24  David Kilzer  <ddkilzer@kilzer.net>
385
386         Reviewed by Timothy.
387
388         * Info.plist: Fixed copyright to include 2003-2006.
389         * manual-tests/NPN_Invoke/Info.plist: Added copyright statement.
390
391 2006-06-24  Mitz Pettel  <opendarwin.org@mitzpettel.com>
392
393         Reviewed by Darin, landed by ap.
394
395         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9547
396           Resize corner does not track the mouse accurately
397
398         Test: fast/css/resize-corner-tracking.html
399
400         * page/FrameView.cpp:
401         (WebCore::FrameView::handleMousePressEvent): Store the offset from the layer's
402         resizing corner where dragging has started.
403         (WebCore::FrameView::handleMouseMoveEvent): Pass the stored offset to the
404         layer's resize method.
405         * rendering/RenderLayer.cpp:
406         (WebCore::RenderLayer::resize): Added an offset parameter, which is added to
407         the mouse location.
408         For objects that may have intrinsic margins applied to them,
409         added code to lift the margins into the object's style in order to keep them
410         constant.
411         Changed to take the content size as the base size if the box-sizing property
412         is content-box.
413         (WebCore::RenderLayer::offsetFromResizeCorner): Added. Returns the offset of the
414         given point from the corner that tracks the mouse when resizing.
415         * rendering/RenderLayer.h:
416
417 2006-06-24  Mitz Pettel  <opendarwin.org@mitzpettel.com>
418
419         Reviewed by Darin, landed by ap.
420
421         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9316
422           REGRESSION: text field width shrinks on first keystroke
423
424         Test: fast/forms/floating-textfield-relayout.html
425
426         * page/FrameView.cpp:
427         (WebCore::FrameView::layoutRoot): Added. During subtree relayout, returns
428         the subtree root. Otherwise returns 0.
429         (WebCore::FrameView::layoutPending): Made const.
430         * page/FrameView.h:
431         * rendering/RenderBox.cpp:
432         (WebCore::RenderBox::calcWidth): Added early return if this is the root
433         of a subtree being laid out. 
434
435 2006-06-24  Mitz Pettel  <opendarwin.org@mitzpettel.com>
436
437         Reviewed by Hyatt.
438
439         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9531
440           Pages that need only a horizontal scroll bar get a vertical one as well
441
442         The change affects many existing tests.
443
444         * page/FrameView.cpp:
445         (WebCore::FrameView::layout): Mark the body renderer as needing layout if
446         the view's height has changed and the body stretches to the view's height.
447         * rendering/RenderBox.cpp:
448         (WebCore::RenderBox::calcHeight):
449         * rendering/RenderBox.h:
450         (WebCore::RenderBox::stretchesToViewHeight): Added. Moved the logic for when
451         the HTML block needs to stretch to the view's height from calcHeight() here.
452
453 2006-06-24  Alexey Proskuryakov  <ap@nypop.com>
454
455         Reviewed by Darin.
456
457         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7461
458           Always encode the path part of an URI as UTF-8
459
460         Test: http/tests/uri/utf8-path.html
461
462         * platform/KURL.cpp:
463         (encodeRelativeString): Always set pathEncoding to UTF-8.
464
465 2006-06-24  Graham Dennis  <Graham.Dennis@gmail.com>
466
467         Reviewed by Darin, landed by ap.
468         
469         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9467
470           TreeWalker/NodeIterator do not restrict the traversal
471         
472         Test: traversal/stay-within-root.html
473
474         * dom/Node.cpp:
475         (WebCore::Node::traversePreviousNode):
476         * dom/Node.h:
477         Add a stayWithin argument to traversePreviousNode just like the other
478         traversal functions
479         * dom/NodeIterator.cpp:
480         (WebCore::NodeIterator::findNextNode):
481         (WebCore::NodeIterator::findPreviousNode):
482         Ensure that when moving forward or backward that the root node is not
483         exited
484         * dom/TreeWalker.cpp:
485         (WebCore::TreeWalker::previousNode):
486         (WebCore::TreeWalker::nextNode):
487         Ditto
488         (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
489
490 2006-06-24  Jonas Witt <jonas.witt@gmail.com>
491
492         Reviewed by ggaren, landed by ap.
493
494         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9181
495           Complete DOMUIEvent Obj-C API to reflect UIEvent
496
497         * WebCore.exp: add new classes DOMKeyboardEvent and DOMWheelEvent to the exported 
498           symbols list of WebCore.framework
499
500         Updated DOMUIEvent to include all DOM Level 2 properties
501         Added DOMKeyboardEvent (DOM Level 3)
502         Added two non-W3C accessors (keyCode, charCode) of DOMKeyboardEvent to a separate file (DOMEventsNonstandard)
503         Added DOMWheelEvent (non-W3C) in separate file (DOMEventsNonstandard)
504         Added this file (DOMEventsNonstandard) to the build process
505
506         * WebCore.xcodeproj/project.pbxproj:
507         * bindings/objc/DOM.h:
508         * bindings/objc/DOMEvents.h:
509         * bindings/objc/DOMEvents.mm:
510         (+[DOMEvent _eventWith:]):
511         (-[DOMUIEvent _UIEvent]):
512         (-[DOMUIEvent view]):
513         (-[DOMUIEvent detail]):
514         (-[DOMUIEvent initUIEvent:::::]):
515         (-[DOMKeyboardEvent _keyboardEvent]):
516         (-[DOMKeyboardEvent keyIdentifier]):
517         (-[DOMKeyboardEvent keyLocation]):
518         (-[DOMKeyboardEvent ctrlKey]):
519         (-[DOMKeyboardEvent shiftKey]):
520         (-[DOMKeyboardEvent altKey]):
521         (-[DOMKeyboardEvent metaKey]):
522         (-[DOMKeyboardEvent getModifierState:]):
523         (-[DOMMouseEvent button]):
524         * bindings/objc/DOMEventsNonstandard.mm: Added.
525         (-[DOMWheelEvent _wheelEvent]):
526         (-[DOMWheelEvent screenX]):
527         (-[DOMWheelEvent screenY]):
528         (-[DOMWheelEvent clientX]):
529         (-[DOMWheelEvent clientY]):
530         (-[DOMWheelEvent ctrlKey]):
531         (-[DOMWheelEvent shiftKey]):
532         (-[DOMWheelEvent altKey]):
533         (-[DOMWheelEvent metaKey]):
534         (-[DOMWheelEvent isHorizontal]):
535         (-[DOMWheelEvent wheelDelta]):
536         (-[DOMKeyboardEvent _keyboardEvent]):
537         (-[DOMKeyboardEvent keyCode]):
538         (-[DOMKeyboardEvent charCode]):
539         * bindings/objc/DOMPrivate.h:
540
541 2006-06-24  Mitz Pettel  <opendarwin.org@mitzpettel.com>
542
543         Reviewed and landed by ap.
544
545         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9563
546           Remove unused layoutSuppressed field and inLayout() method
547
548         No test added because there is no change in functionality.
549
550         * page/FrameView.cpp:
551         (WebCore::FrameViewPrivate::reset):
552         (WebCore::FrameView::layout):
553         * page/FrameView.h:
554         * rendering/RenderView.cpp:
555         (WebCore::RenderView::layout):
556
557 2006-06-24  Alexey Proskuryakov  <ap@nypop.com>
558
559         Reviewed by Darin.
560
561         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8177
562         Javascript search incredibly slow
563
564         No change in functionality, thus no test.
565
566         Use info sharing for named collections, too. Moved shared HTMLCollection infos from HTMLDocument 
567         to Document.  Renamed collection types to use the preferred WebKit style. Replaced direct
568         HTMLCollection creation with using accessors from Document in a few places.
569
570         * bindings/objc/DOMHTML.mm:
571         (-[DOMHTMLElement children]):
572         (-[DOMHTMLDocument images]):
573         (-[DOMHTMLDocument applets]):
574         (-[DOMHTMLDocument links]):
575         (-[DOMHTMLDocument forms]):
576         (-[DOMHTMLDocument anchors]):
577         (-[DOMHTMLMapElement areas]):
578         (-[DOMHTMLTableSectionElement rows]):
579         (-[DOMHTMLTableElement rows]):
580         (-[DOMHTMLTableElement tBodies]):
581         (-[DOMHTMLTableRowElement cells]):
582         * dom/Document.cpp:
583         (WebCore::Document::images):
584         (WebCore::Document::applets):
585         (WebCore::Document::embeds):
586         (WebCore::Document::objects):
587         (WebCore::Document::scripts):
588         (WebCore::Document::links):
589         (WebCore::Document::forms):
590         (WebCore::Document::anchors):
591         (WebCore::Document::all):
592         (WebCore::Document::windowNamedItems):
593         (WebCore::Document::documentNamedItems):
594         (WebCore::Document::nameCollectionInfo):
595         * dom/Document.h:
596         (WebCore::Document::collectionInfo):
597         * html/HTMLCollection.cpp:
598         (WebCore::HTMLCollection::HTMLCollection):
599         (WebCore::HTMLCollection::traverseNextItem):
600         (WebCore::HTMLCollection::checkForNameMatch):
601         (WebCore::HTMLCollection::updateNameCache):
602         * html/HTMLCollection.h:
603         (WebCore::HTMLCollection::):
604         * html/HTMLDocument.h:
605         * html/HTMLElement.cpp:
606         (WebCore::HTMLElement::children):
607         * html/HTMLMapElement.cpp:
608         (WebCore::HTMLMapElement::areas):
609         * html/HTMLNameCollection.h:
610         * html/HTMLNameCollection.cpp:
611         (WebCore::HTMLNameCollection::HTMLNameCollection):
612         (WebCore::HTMLNameCollection::traverseNextItem):
613         * html/HTMLFormCollection.cpp:
614         * html/HTMLOptionsCollection.cpp:
615         (WebCore::HTMLOptionsCollection::HTMLOptionsCollection):
616         * html/HTMLSelectElement.h:
617         (WebCore::HTMLSelectElement::collectionInfo):
618         * html/HTMLTableElement.cpp:
619         (WebCore::HTMLTableElement::rows):
620         (WebCore::HTMLTableElement::tBodies):
621         * html/HTMLTableRowElement.cpp:
622         (WebCore::HTMLTableRowElement::cells):
623         * html/HTMLTableSectionElement.cpp:
624         (WebCore::HTMLTableSectionElement::rows):
625         * kwq/WebCoreAXObject.mm:
626         (-[WebCoreAXObject accessibilityAttributeValue:]):
627         * page/Frame.cpp:
628         (WebCore::Frame::gotoAnchor):
629
630 2006-06-24  Alexey Proskuryakov  <ap@nypop.com>
631
632         Reviewed by Darin.
633
634         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9418
635         WebKit will not build when Space exists in path
636
637         * WebCore.xcodeproj/project.pbxproj: Enclose search paths in quotes; create symlinks to 
638         avoid passing paths with spaces to make.
639
640 2006-06-23  Tim Omernick  <timo@apple.com>
641
642         Reviewed by Tim Hatcher.
643
644         <rdar://problem/4560947> Leopard REGRESSION: Dragging to TileGame Widget is broken
645
646         * page/FrameView.cpp:
647         (WebCore::FrameView::updateDragAndDrop):
648         Use the passed mouse event, instead of the "current" event.  There is no such thing as
649         a "drag event".  Asking for the current event during a drag returns a weird system-
650         internal event with an invalid mouse location.
651
652 2006-06-23  Timothy Hatcher  <timothy@apple.com>
653
654         Reviewed by Eric.
655
656         Manual test added: cursor.html
657
658         Bug 9560: should support new CSS3 cursor types to get more resizing directions
659         http://bugzilla.opendarwin.org/show_bug.cgi?id=9560
660
661         Adds support for ew-resize, ns-resize, nesw-resize, nwse-resize,
662         col-resize and row-resize CSS3 cursor values.
663
664         Also converted some of the cursor images to grayscale tiffs,
665         some were RGB but had no color data.
666
667         * Resources/eastResizeCursor.tiff:
668         * Resources/eastWestResizeCursor.tiff: Added.
669         * Resources/helpCursor.tiff:
670         * Resources/moveCursor.tiff:
671         * Resources/northEastResizeCursor.tiff:
672         * Resources/northEastSouthWestResizeCursor.tiff: Added.
673         * Resources/northResizeCursor.tiff:
674         * Resources/northSouthResizeCursor.tiff: Added.
675         * Resources/northWestResizeCursor.tiff:
676         * Resources/northWestSouthEastResizeCursor.tiff: Added.
677         * Resources/southEastResizeCursor.tiff:
678         * Resources/southResizeCursor.tiff:
679         * Resources/southWestResizeCursor.tiff:
680         * Resources/textAreaResizeCorner.tiff:
681         * Resources/waitCursor.tiff:
682         * Resources/westResizeCursor.tiff:
683         * WebCore.xcodeproj/project.pbxproj:
684         * css/CSSComputedStyleDeclaration.cpp:
685         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
686         * css/CSSValueKeywords.in:
687         * css/cssparser.cpp:
688         (WebCore::CSSParser::parseValue):
689         * manual-tests/cursor.html: Added.
690         * page/FrameView.cpp:
691         (WebCore::selectCursor):
692         * platform/Cursor.h:
693         * platform/mac/CursorMac.mm:
694         (WebCore::northSouthResizeCursor):
695         (WebCore::eastWestResizeCursor):
696         (WebCore::northEastSouthWestResizeCursor):
697         (WebCore::northWestSouthEastResizeCursor):
698         (WebCore::columnResizeCursor):
699         (WebCore::rowResizeCursor):
700         * platform/win/CursorWin.cpp:
701         (WebCore::northSouthResizeCursor):
702         (WebCore::eastWestResizeCursor):
703         (WebCore::northEastSouthWestResizeCursor):
704         (WebCore::northWestSouthEastResizeCursor):
705         (WebCore::columnResizeCursor):
706         (WebCore::rowResizeCursor):
707         * rendering/render_style.h: cursor needs 5 bits now
708
709 2006-06-23  John Sullivan  <sullivan@apple.com>
710
711         Reviewed by Tim Omernick
712         
713         - fixed <rdar://problem/4597685> stale rects for document markers can be left behind in certain cases
714
715         * dom/Document.h:
716         * dom/Document.cpp:
717         (WebCore::Document::setRenderedRectForMarker):
718         changed parameter from IntRect to const IntRect& at Darin's request
719         (WebCore::Document::invalidateRenderedRectsForMarkersInRect):
720         new method, tests whether the rendered rect for each marker intersects the
721         passed rect. If so, sets the rendered rect back to the placeholder rect that
722         means that the rect for this marker isn't known.
723         
724         * page/Frame.cpp:
725         (WebCore::Frame::paint):
726         call invalidateRenderedRectsForMarkersInRect on the rect we're about to paint.
727         This ensures that old stale rects won't be preserved if the associated marker
728         has moved such that it is out of the painted area.
729
730 2006-06-23  Justin Garcia  <justin.garcia@apple.com>
731
732         Reviewed by levi
733
734         <rdar://problem/4527702>
735         REGRESSION: Quote bars go away on first paragraph when I delete reply text
736
737         * editing/DeleteSelectionCommand.cpp:
738         (WebCore::DeleteSelectionCommand::mergeParagraphs):
739         Add a rule for when to merge into empty blocks.
740
741 === WebCore-521.13 ===
742
743 2006-06-23  Patrick Beard  <beard@apple.com>
744
745         Reviewed by Tim Hatcher.
746
747         <rdar://problem/4223619> Safari crashed in -[NSFont __isSystemFont]
748         CFRetain and CFRelease NSFont's when FontPlatformData has a reference.
749         We only do this when GC is enabled for performance reasons.
750         No tests possible.
751
752         * platform/mac/FontPlatformData.h:
753         (WebCore::FontPlatformData::FontPlatformData):
754         (WebCore::FontPlatformData::~FontPlatformData):
755
756 2006-06-23  Justin Garcia  <justin.garcia@apple.com>
757
758         Reviewed by levi
759         
760         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8074>
761         Caret before/after block tables is too small
762         <rdar://problem/4598331>
763         right arrow out of a table shows cursor in a weird place
764
765         * rendering/RenderBox.cpp:
766         (WebCore::RenderBox::caretRect): Don't propagate to children, 
767         VisiblePositions inside containers don't refer to children.
768         Don't use the font height for tables.
769
770 2006-06-23  Brady Eidson  <beidson@apple.com>
771
772         Reviewed by Kevin.
773
774         Added 64-bit String::number() functions
775
776         * platform/PlatformString.h:
777         * platform/String.cpp:
778         (WebCore::String::number):
779
780 2006-06-22  Mitz Pettel  <opendarwin.org@mitzpettel.com>
781
782         Reviewed by Hyatt.
783
784         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9497
785           REGRESSION: Incomplete repainting when scrolling thumbnails on Flickr
786
787         Test: fast/repaint/clipped-relative.html
788
789         * page/FrameView.cpp:
790         (WebCore::FrameView::layout):
791         * rendering/RenderBlock.cpp:
792         (WebCore::RenderBlock::removePositionedObjects): Removed call to computeRepaintRects().
793         Previously, it was needed to update the cached rects before RenderBox::setStyle()
794         called updateLayerPositions().
795         * rendering/RenderBox.cpp:
796         (WebCore::RenderBox::setStyle): Changed to call updateLayerPositions() for a newly-
797         created layer only if it does not need layout. Otherwise,  updateLayerPositions() will
798         be called after layout. This saves a repaint in some cases.
799         * rendering/RenderLayer.cpp:
800         (WebCore::RenderLayer::checkForRepaintOnResize): Renamed computeRepaintRects() to
801         this and deleted the code that cached the absolute position and repaint rects.
802         (WebCore::RenderLayer::updateLayerPositions): Added code to cache the absolute
803         position and repaint rects right after updating the layer's position.
804         * rendering/RenderLayer.h:
805
806 2006-06-22  Beth Dakin  <bdakin@apple.com>
807
808         Reviewed by Maciej.
809
810         Fix for <rdar://problem/4599015> REGRESSION: Hand on clock widget 
811         don't appear at all
812
813         This regression was caused by <rdar://problem/4567520> HIDPI: pixel 
814         cracks in weather widget at 1.83 scaling
815
816         * html/CanvasRenderingContext2D.cpp:
817         (WebCore::CanvasRenderingContext2D::drawImage): Do the contains 
818         check before rounding to integral device pixels.
819
820 2006-06-22  Anders Carlsson  <acarlsson@apple.com>
821
822         Reviewed by John.
823
824         <rdar://problem/4529334> REGRESSION: Can't configure RadarInMotion widget for U.S. locations on Leopard (Javascript errors)
825         
826         * dom/Document.cpp:
827         (WebCore::Document::completeURL):
828         Check if both the URL and base URL are empty instead of using URL() which returns "about:blank" if the URL is empty.
829         
830 2006-06-22  Anders Carlsson  <acarlsson@apple.com>
831
832         Reviewed by Maciej.
833
834         <rdar://problem/4499675> Package Tracker widget always crashes in WebCore::Frame::jScriptEnabled() const + 0
835
836         * html/HTMLParser.cpp:
837         (WebCore::HTMLParser::noscriptCreateErrorCheck):
838         (WebCore::HTMLParser::canvasCreateErrorCheck):
839         (WebCore::HTMLParser::isInline):
840         Add null-checks for document->frame() since it can be 0 for documents created using createHTMLDocument.
841
842 2006-06-22  Anders Carlsson  <acarlsson@apple.com>
843
844         Reviewed by Maciej.
845
846         <rdar://problem/4524840> Entities contained in DOCTYPE referenced DTD in XSLT source document are unknown
847         
848         * dom/xml_tokenizer.cpp:
849         (WebCore::shouldAllowExternalLoad):
850         Use correct path for the catalog.
851         
852         (WebCore::errorFunc):
853         Add error function to keep parser errors from going to the console.
854         
855         (WebCore::XMLTokenizer::write):
856         Remove if (0 &&)
857         
858         (WebCore::XMLTokenizer::end):
859         Pass DocLoader to xmlDocPtrForString.
860         
861         (WebCore::xmlDocPtrForString):        
862         * dom/xml_tokenizer.h:
863         Add DocLoader argument to xmlDocPtrForString so external DTDs and entities can be loaded.
864         
865         * xml/XSLTProcessor.cpp:
866         (WebCore::xmlDocPtrFromNode):
867         Pass DocLoader to xmlDocPtrForString
868         
869 >>>>>>> .r15049
870 2006-06-21  David Hyatt  <hyatt@apple.com>
871
872         Back out -webkit-overlay and just rename it back to overlay.
873
874         Reviewed by darin
875
876         * css/CSSComputedStyleDeclaration.cpp:
877         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
878         * css/CSSValueKeywords.in:
879         * css/cssparser.cpp:
880         (WebCore::CSSParser::parseValue):
881         * css/cssstyleselector.cpp:
882         (WebCore::CSSStyleSelector::applyProperty):
883
884 2006-06-21  Justin Garcia  <justin.garcia@apple.com>
885
886         Reviewed by levi
887
888         * editing/DeleteSelectionCommand.cpp:
889         (WebCore::DeleteSelectionCommand::initializePositionData): Fix a bug in the code
890         to stop merges across table cells.
891         (WebCore::DeleteSelectionCommand::mergeParagraphs): Move the code to stop merges
892         across table cells to initializePositionData so that its changes to 
893         m_mergeBlocksAfterDelete can take effect on the endingPosition.
894         * editing/InsertParagraphSeparatorCommand.cpp:
895         (WebCore::InsertParagraphSeparatorCommand::doApply): Turn into an InsertLineBreak
896         instead of splitting/cloning a table cell.
897
898 2006-06-21  Beth Dakin  <bdakin@apple.com>
899
900         Reviewed by John.
901
902         Fix for <rdar://problem/3914965> Misspelled text underline doesn't 
903         look right at non-standard scale factors
904
905         * platform/mac/GraphicsContextMac.mm:
906         (WebCore::GraphicsContext::drawLineForMisspelling): We need to call  
907         into our previously-created SPI for pattern-drawing so that the 
908         phase is right at all scale factors.
909
910 2006-06-21  David Hyatt  <hyatt@apple.com>
911
912         Fix for 7362, implement the CSS3 overflow-x and overflow-y properties.
913
914         Reviewed by adele
915
916         * WebCore.xcodeproj/project.pbxproj:
917         * css/CSSComputedStyleDeclaration.cpp:
918         (WebCore::):
919         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
920         * css/CSSPropertyNames.in:
921         * css/cssparser.cpp:
922         (WebCore::CSSParser::parseValue):
923         * css/cssstyleselector.cpp:
924         (WebCore::CSSStyleSelector::adjustRenderStyle):
925         (WebCore::CSSStyleSelector::applyProperty):
926         * page/FrameView.cpp:
927         (WebCore::FrameView::applyOverflowToViewport):
928         (WebCore::FrameView::layout):
929         * rendering/RenderBlock.cpp:
930         (WebCore::RenderBlock::layoutBlock):
931         (WebCore::RenderBlock::determineHorizontalPosition):
932         (WebCore::RenderBlock::layoutBlockChildren):
933         (WebCore::RenderBlock::rightOffset):
934         (WebCore::RenderBlock::rightmostPosition):
935         (WebCore::RenderBlock::calcMinMaxWidth):
936         * rendering/RenderBox.cpp:
937         (WebCore::RenderBox::setStyle):
938         (WebCore::RenderBox::contentWidth):
939         (WebCore::RenderBox::contentHeight):
940         (WebCore::RenderBox::sizesToIntrinsicWidth):
941         (WebCore::RenderBox::calcHeight):
942         (WebCore::RenderBox::calcPercentageHeight):
943         * rendering/RenderFlexibleBox.cpp:
944         (WebCore::RenderFlexibleBox::layoutBlock):
945         * rendering/RenderLayer.cpp:
946         (WebCore::RenderLayer::scrollToOffset):
947         (WebCore::RenderLayer::shouldAutoscroll):
948         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
949         (WebCore::RenderLayer::styleChanged):
950         * rendering/RenderLayer.h:
951         * rendering/RenderObject.cpp:
952         (WebCore::RenderObject::clientWidth):
953         (WebCore::RenderObject::clientHeight):
954         * rendering/RenderObject.h:
955         (WebCore::RenderObject::hasAutoVerticalScrollbar):
956         (WebCore::RenderObject::hasAutoHorizontalScrollbar):
957         (WebCore::RenderObject::scrollsOverflow):
958         (WebCore::RenderObject::scrollsOverflowX):
959         (WebCore::RenderObject::scrollsOverflowY):
960         (WebCore::RenderObject::includeVerticalScrollbarSize):
961         (WebCore::RenderObject::includeHorizontalScrollbarSize):
962         * rendering/RenderTextArea.cpp:
963         (WebCore::RenderTextArea::setStyle):
964         * rendering/RenderTextField.cpp:
965         (WebCore::RenderTextField::createDivStyle):
966         (WebCore::RenderTextField::calcHeight):
967         (WebCore::RenderTextField::calcMinMaxWidth):
968         * rendering/bidi.cpp:
969         (WebCore::RenderBlock::layoutInlineChildren):
970         * rendering/render_style.cpp:
971         (WebCore::RenderStyle::diff):
972         * rendering/render_style.h:
973         (WebCore::):
974         (WebCore::RenderStyle::NonInheritedFlags::operator==):
975         (WebCore::RenderStyle::setBitDefaults):
976         (WebCore::RenderStyle::overflowX):
977         (WebCore::RenderStyle::overflowY):
978         (WebCore::RenderStyle::setOverflowX):
979         (WebCore::RenderStyle::setOverflowY):
980         (WebCore::RenderStyle::initialOverflowX):
981         (WebCore::RenderStyle::initialOverflowY):
982
983 2006-06-21  Justin Garcia  <justin.garcia@apple.com>
984
985         Reviewed by levi
986         
987         <rdar://problem/4590366>
988         REGRESSION: Selection incorrectly paints gaps on TOT
989
990         * dom/Document.cpp:
991         (WebCore::Document::updateSelection): Use the leftmost candidate for the end of the
992         selection and the rightmost candidate for the start of the selection.
993         * dom/Position.cpp:
994         (WebCore::Position::upstream): Cross line wraps so that we can use upstream/downstream
995         to get to candidates before/after linewraps.
996         (WebCore::Position::downstream):
997         (WebCore::Position::inRenderedContent):
998         * editing/DeleteSelectionCommand.cpp:
999         (WebCore::DeleteSelectionCommand::handleGeneralDelete):
1000         (WebCore::DeleteSelectionCommand::mergeParagraphs):
1001         * editing/InsertParagraphSeparatorCommand.cpp:
1002         (WebCore::InsertParagraphSeparatorCommand::doApply): 
1003         Ensure that the leftmost candidate is used.  We should sample the style from that one.
1004         When the block to insert is after a br, a br should be inserted even in strict mode.
1005         * editing/InsertTextCommand.cpp:
1006         (WebCore::InsertTextCommand::input): 
1007         Insert at the leftmost candidate, get rid of a use of trailingWhitespacePosition.
1008         Don't apply a style if its unnecessary.
1009         * editing/ReplaceSelectionCommand.cpp:
1010         (WebCore::ReplaceSelectionCommand::doApply): "pos" can be invalidated, don't use it.
1011         * editing/VisiblePosition.cpp:
1012         Renamed initDeepPosition and made it return the canonical position.
1013         (WebCore::VisiblePosition::init):
1014         (WebCore::VisiblePosition::canonicalPosition):
1015         * editing/VisiblePosition.h: 
1016         (WebCore::VisiblePosition::characterBefore): Added.
1017         * editing/visible_units.cpp:
1018         (WebCore::startOfParagraph):
1019         * rendering/InlineTextBox.cpp:
1020         (WebCore::InlineTextBox::selectionState): When a selection ends at a line wrap, it shouldn't extend
1021         onto the next line.
1022
1023 2006-06-21  David Hyatt  <hyatt@apple.com>
1024
1025         Reviewed and committed by Beth.
1026
1027         Fix for <rdar://problem/4595337> Resizing a containing block 
1028         strictly vertically does not cause contained height:100% element to 
1029         also be resized.
1030
1031         * rendering/RenderBlock.cpp:
1032         (WebCore::RenderBlock::layoutBlockChildren): Also layout if the 
1033         child's min or max height is a percent.
1034
1035 2006-06-21  Anders Carlsson  <acarlsson@apple.com>
1036
1037         Reviewed by Geoff.
1038
1039         http://bugzilla.opendarwin.org/show_bug.cgi?id=6058
1040         XMLTokenizer runs all <script> tags at once instead of as they're encountered
1041         
1042         * dom/xml_tokenizer.cpp:
1043         (WebCore::XMLTokenizer::XMLTokenizer):
1044         Initialize new members.
1045         
1046         (WebCore::XMLTokenizer::endElementNs):
1047         If we've encountered a script tag, execute the script here. If the script
1048         tag refers to an external resource, pause the parser while loading it.
1049         
1050         (WebCore::XMLTokenizer::end):
1051         Move code from finish() to here
1052         
1053         (WebCore::XMLTokenizer::finish):
1054         Only call end() if the parser isn't paused.
1055         
1056         (WebCore::XMLTokenizer::notifyFinished):
1057         Evaluate the script here and resume the parser.
1058         
1059         (WebCore::XMLTokenizer::resumeParsing):
1060         If finish() was called, call end() after writing all data.
1061
1062 2006-06-21  Steve Falkenburg  <sfalken@apple.com>
1063
1064         Fix build break
1065
1066         * platform/win/TemporaryLinkStubs.cpp:
1067         (FrameWin::shouldInterruptJavaScript):
1068
1069 2006-06-21  Anders Carlsson  <acarlsson@apple.com>
1070
1071         Move FrameWin::shouldInterruptJavaScript to TemporaryLinkStubs.cpp
1072         
1073         * bridge/win/FrameWin.cpp:
1074         * platform/win/TemporaryLinkStubs.cpp:
1075         (FrameWin::shouldInterruptJavaScript):
1076
1077 2006-06-21  Ben Goodger <bengoodger@gmail.com>
1078
1079         Reviewed by Maciej. 
1080
1081         Fix for: http://bugzilla.opendarwin.org/show_bug.cgi?id=9523
1082         More Win32 build bustage.
1083  
1084         * WebCore.vcproj/WebCore/WebCore.vcproj:
1085         * bridge/win/FrameWin.cpp:
1086         (WebCore::FrameWin::shouldInterruptJavaScript):
1087         * bridge/win/FrameWin.h:
1088
1089 2006-06-20  Adele Peterson  <adele@apple.com>
1090
1091         Reviewed by Anders.
1092
1093         Fix for: http://bugzilla.opendarwin.org/show_bug.cgi?id=8948
1094         Switch to use new text field implementation for <textarea>
1095
1096         * css/html4.css:
1097         * html/HTMLTextAreaElement.cpp:
1098         (WebCore::HTMLTextAreaElement::selectionStart):
1099         (WebCore::HTMLTextAreaElement::selectionEnd):
1100         (WebCore::HTMLTextAreaElement::setSelectionStart):
1101         (WebCore::HTMLTextAreaElement::setSelectionEnd):
1102         (WebCore::HTMLTextAreaElement::select):
1103         (WebCore::HTMLTextAreaElement::setSelectionRange):
1104         (WebCore::HTMLTextAreaElement::createRenderer):
1105         (WebCore::HTMLTextAreaElement::appendFormData):
1106         (WebCore::HTMLTextAreaElement::isKeyboardFocusable):
1107         (WebCore::HTMLTextAreaElement::isMouseFocusable):
1108         (WebCore::HTMLTextAreaElement::focus):
1109         (WebCore::HTMLTextAreaElement::defaultEventHandler):
1110         (WebCore::HTMLTextAreaElement::updateValue):
1111         (WebCore::HTMLTextAreaElement::setValue):
1112
1113 2006-06-20  Brady Eidson  <beidson@apple.com>
1114
1115         Reviewed by Maciej
1116
1117         Fixed capitalization mistake that I made, someone else fixed, then I accidentally made it go back to the old way
1118
1119         * icon/SQLStatement.cpp:
1120
1121 2006-06-20  Brady Eidson  <beidson@apple.com>
1122
1123         Reviewed by Maciej.
1124
1125         More changes/additions setting the stage for the major IconDatabase hookup.
1126
1127         * WebCore.xcodeproj/project.pbxproj:  Added SQLTransaction.cpp
1128
1129         * bridge/mac/WebCoreIconDatabaseBridge.h: Added call-throughs and translations to pass WebKit DB to WebCore DB
1130         * bridge/mac/WebCoreIconDatabaseBridge.mm:
1131         (+[WebCoreIconDatabaseBridge sharedBridgeInstance]):
1132         (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
1133         (-[WebCoreIconDatabaseBridge iconForURL:withSize:]):
1134         (-[WebCoreIconDatabaseBridge iconURLForURL:]):
1135         (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
1136         (-[WebCoreIconDatabaseBridge retainIconForURL:]):
1137         (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
1138         (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
1139         (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
1140         (-[WebCoreIconDatabaseBridge _setIconURL:forURL:]):
1141         (-[WebCoreIconDatabaseBridge _hasIconForIconURL:]):
1142
1143         * bridge/mac/WebCorePageBridge.mm: Added WebCore's IconDatabase logging channel to the user-prefs check
1144         (initializeLoggingChannelsIfNecessary):
1145
1146         * icon/IconDatabase.cpp:  Added stubs and basic SQL usage to create the sqlite DB and respond to WebKit calls
1147         (WebCore::IconDatabase::IconDatabase):
1148         (WebCore::IconDatabase::open):
1149         (WebCore::IconDatabase::close):
1150         (WebCore::IconDatabase::isValidDatabase):
1151         (WebCore::IconDatabase::recreateDatabase):
1152         (WebCore::IconDatabase::setPrivateBrowsingEnabled):
1153         (WebCore::IconDatabase::iconForURL):
1154         (WebCore::IconDatabase::iconURLForURL):
1155         (WebCore::IconDatabase::defaultIcon):
1156         (WebCore::IconDatabase::retainIconForURL):
1157         (WebCore::IconDatabase::releaseIconForURL):
1158         (WebCore::IconDatabase::setIconForIconURL):
1159         (WebCore::IconDatabase::setHaveNoIconForIconURL):
1160         (WebCore::IconDatabase::setIconURLForPageURL):
1161         (WebCore::IconDatabase::hasIconForIconURL):
1162
1163         * icon/IconDatabase.h:  WebIcon will be an internal class used in IconDatabase but is not complete yet
1164         (WebCore::WebIcon::getExpiration):
1165         (WebCore::WebIcon::getTouch):
1166
1167         * icon/SQLDatabase.cpp:  Added more SQLite convenience methods
1168         (SQLDatabase::setFullsync):
1169         (SQLDatabase::setBusyTimeout):
1170         (SQLDatabase::setBusyHandler):
1171         * icon/SQLDatabase.h:
1172         * icon/SQLStatement.cpp:
1173         (WebCore::SQLStatement::returnsAtLeastOneResult):
1174
1175         * icon/SQLTransaction.cpp: Added basic commit/rollback support with this simple class
1176         (SQLTransaction::SQLTransaction):
1177         (SQLTransaction::~SQLTransaction):
1178         (SQLTransaction::begin):
1179         (SQLTransaction::commit):
1180         (SQLTransaction::rollback):
1181
1182 2006-06-20  Adele Peterson  <adele@apple.com>
1183
1184         Reviewed by Maciej.
1185
1186         Fixes for:
1187         http://bugzilla.opendarwin.org/show_bug.cgi?id=8724
1188         REGRESSION: onSelect handler doesn't work for text fields
1189
1190         http://bugzilla.opendarwin.org/show_bug.cgi?id=7676
1191         REGRESSION: Selection methods on new text fields don't work if text field is hidden
1192
1193         http://bugzilla.opendarwin.org/show_bug.cgi?id=8867
1194         REGRESSION: selectionStart/End return 0 for input element once it no longer has focus
1195
1196         Implemented onSelect for new text fields and textareas.  Also fixed selection restore
1197         behavior to better match other browsers and Safari 2.0 behavior.
1198
1199         Tests:
1200         * fast/forms/input-selection-restore.html
1201         * fast/forms/input-selection-hidden.html
1202         * fast/forms/onselect-textarea.html
1203         * fast/forms/onselect-textfield.html
1204
1205         * html/HTMLInputElement.h: (WebCore::HTMLInputElement::cacheSelection): Added.
1206         * html/HTMLInputElement.cpp:
1207         (WebCore::HTMLInputElement::init): Initializes cached selection.
1208         (WebCore::HTMLInputElement::selectionStart): If this element doesn't have focus, return the cached selection value.
1209         (WebCore::HTMLInputElement::selectionEnd): ditto.
1210         (WebCore::HTMLInputElement::setValue): Restore a caret at the starting point of the old selection.  Matches Safari 2.0 behavior.
1211
1212         * html/HTMLTextAreaElement.h: (WebCore::HTMLTextAreaElement::cacheSelection): Added.
1213         * html/HTMLTextAreaElement.cpp:
1214         (WebCore::HTMLTextAreaElement::HTMLTextAreaElement): Initializes cached selection.
1215         (WebCore::HTMLTextAreaElement::selectionStart): If this element doesn't have focus, return the cached selection value.
1216         (WebCore::HTMLTextAreaElement::selectionEnd): ditto.
1217         (WebCore::HTMLTextAreaElement::focus): If this is the first focus, set a caret at the end of the text.  Otherwise,
1218         restore the cached selection.  This matches other browsers' behavior.
1219         (WebCore::HTMLTextAreaElement::setValue): Restore a caret at the starting point of the old selection.  Matches Safari 2.0 behavior.
1220
1221         * page/Frame.h: Added notifyRendererOfSelectionChange method. 
1222         * page/Frame.cpp:
1223         (WebCore::Frame::notifyRendererOfSelectionChange): Added.  Calls selectionChanged for text fields and textareas.  Forwards a userTriggered
1224         argument so selectionChanged knows whether or not to fire onSelect.
1225         (WebCore::Frame::setSelection): Calls notifyRendererOfSelectionChange(false).  This gets called for all selection changes, so the renderer
1226         can always update its cached selection values.
1227         (WebCore::Frame::handleMouseReleaseEvent): Calls notifyRendererOfSelectionChange(true) so onSelect will get fired when the user is done
1228         making a selection with the mouse.
1229         * bridge/mac/WebCoreFrameBridge.mm:
1230         (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]): Calls notifyRendererOfSelectionChange(true) so onSelect gets
1231         fired when the user makes a selection with the keyboard.
1232         (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]): ditto.
1233
1234         * rendering/RenderTextField.h: Add userTriggered parameter to selectionChanged.
1235         * rendering/RenderTextField.cpp:
1236         (WebCore::RenderTextField::setSelectionRange): For visibility:hidden, cache the selection and 
1237         return early since we won't be able to actually set the selection.
1238         (WebCore::RenderTextField::selectionChanged): Caches the selection.  
1239         If the selection is a range, and its triggered by user action, then fire the onSelect event.
1240
1241 2006-06-21  Anders Carlsson  <acarlsson@apple.com>
1242
1243         * bridge/win/FrameWin.cpp:
1244         (WebCore::shouldInterruptJavaScript):
1245         * bridge/win/FrameWin.h:
1246         Try fixing the Windows build.
1247
1248 2006-06-20  Adele Peterson  <adele@apple.com>
1249
1250         RS by Tim Hatcher.
1251
1252         Renamed RenderSelect to DeprecatedRenderSelect to prepare for new popup menu and list menu implementations.
1253        
1254         * WebCore.xcodeproj/project.pbxproj:
1255         * html/HTMLOptionElement.h:
1256         * html/HTMLSelectElement.cpp:
1257         (WebCore::HTMLSelectElement::recalcStyle):
1258         (WebCore::HTMLSelectElement::createRenderer):
1259         (WebCore::HTMLSelectElement::setRecalcListItems):
1260         (WebCore::HTMLSelectElement::reset):
1261         (WebCore::HTMLSelectElement::notifyOptionSelected):
1262         * html/HTMLSelectElement.h:
1263         * rendering/DeprecatedRenderSelect.cpp: Added.
1264         (WebCore::DeprecatedRenderSelect::DeprecatedRenderSelect):
1265         (WebCore::DeprecatedRenderSelect::setWidgetWritingDirection):
1266         (WebCore::DeprecatedRenderSelect::setStyle):
1267         (WebCore::DeprecatedRenderSelect::updateFromElement):
1268         (WebCore::DeprecatedRenderSelect::baselinePosition):
1269         (WebCore::DeprecatedRenderSelect::calcMinMaxWidth):
1270         (WebCore::DeprecatedRenderSelect::layout):
1271         (WebCore::DeprecatedRenderSelect::valueChanged):
1272         (WebCore::DeprecatedRenderSelect::selectionChanged):
1273         (WebCore::DeprecatedRenderSelect::setOptionsChanged):
1274         (WebCore::DeprecatedRenderSelect::createListBox):
1275         (WebCore::DeprecatedRenderSelect::updateSelection):
1276         * rendering/DeprecatedRenderSelect.h: Added.
1277         (WebCore::DeprecatedRenderSelect::renderName):
1278         * rendering/RenderSelect.cpp: Removed.
1279         * rendering/RenderSelect.h: Removed.
1280
1281 2006-06-20  Anders Carlsson  <acarlsson@apple.com>
1282
1283         Reviewed by Geoff.
1284
1285         http://bugzilla.opendarwin.org/show_bug.cgi?id=9509
1286         Would like a way to pause/resume XML parsing
1287
1288         * dom/xml_tokenizer.cpp:
1289         (WebCore::PendingCallbacks::PendingCallbacks):
1290         (WebCore::PendingCallbacks::appendStartElementNSCallback):
1291         (WebCore::PendingCallbacks::appendEndElementNSCallback):
1292         (WebCore::PendingCallbacks::appendCharactersCallback):
1293         (WebCore::PendingCallbacks::appendProcessingInstructionCallback):
1294         (WebCore::PendingCallbacks::appendCDATABlockCallback):
1295         (WebCore::PendingCallbacks::appendCommentCallback):
1296         (WebCore::PendingCallbacks::appendInternalSubsetCallback):
1297         (WebCore::PendingCallbacks::appendErrorCallback):
1298         (WebCore::PendingCallbacks::callAndRemoveFirstCallback):
1299         (WebCore::PendingCallbacks::isEmpty):
1300         (WebCore::PendingCallbacks::PendingCallback::~PendingCallback):
1301         (WebCore::PendingCallbacks::PendingStartElementNSCallback::~PendingStartElementNSCallback):
1302         (WebCore::PendingCallbacks::PendingStartElementNSCallback::call):
1303         (WebCore::PendingCallbacks::PendingEndElementNSCallback::call):
1304         (WebCore::PendingCallbacks::PendingCharactersCallback::~PendingCharactersCallback):
1305         (WebCore::PendingCallbacks::PendingCharactersCallback::call):
1306         (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::~PendingProcessingInstructionCallback):
1307         (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::call):
1308         (WebCore::PendingCallbacks::PendingCDATABlockCallback::~PendingCDATABlockCallback):
1309         (WebCore::PendingCallbacks::PendingCDATABlockCallback::call):
1310         (WebCore::PendingCallbacks::PendingCommentCallback::~PendingCommentCallback):
1311         (WebCore::PendingCallbacks::PendingCommentCallback::call):
1312         (WebCore::PendingCallbacks::PendingInternalSubsetCallback::~PendingInternalSubsetCallback):
1313         (WebCore::PendingCallbacks::PendingInternalSubsetCallback::call):
1314         (WebCore::PendingCallbacks::):
1315         New classes which manage a list of pending SAX callbacks that have not yet
1316         been sent to the tokenizer.
1317         
1318         (WebCore::XMLTokenizer::XMLTokenizer):
1319         Initialize new member variables.
1320         
1321         (WebCore::XMLTokenizer::~XMLTokenizer):
1322         Delete PendingCallbacks object.
1323         
1324         (WebCore::XMLTokenizer::write):
1325         If the parser is paused, queue the data to be written.
1326         
1327         (WebCore::XMLTokenizer::startElementNs):
1328         (WebCore::XMLTokenizer::endElementNs):
1329         (WebCore::XMLTokenizer::characters):
1330         (WebCore::XMLTokenizer::error):
1331         (WebCore::XMLTokenizer::processingInstruction):
1332         (WebCore::XMLTokenizer::cdataBlock):
1333         (WebCore::XMLTokenizer::comment):
1334         (WebCore::XMLTokenizer::internalSubset):
1335         If the parser has been paused, queue the callbacks instead.
1336
1337         (WebCore::XMLTokenizer::handleError):
1338         New function, called by both ::error and :PendingCallbacks::callAndRemoveFirstCallback
1339         
1340         (WebCore::XMLTokenizer::finish):
1341         (WebCore::XMLTokenizer::pauseParsing):
1342          Set m_parserPaused to true.
1343         
1344         (WebCore::XMLTokenizer::resumeParsing):
1345         Call the pending callbacks and then parse the pending source.
1346         
1347 2006-06-20  David Hyatt  <hyatt@apple.com>
1348
1349         Don't send the custom highlighter callback when painting is disabled.
1350
1351         Reviewed by harrison
1352
1353         * WebCore.xcodeproj/project.pbxproj:
1354         * rendering/InlineTextBox.cpp:
1355         (WebCore::InlineTextBox::paint):
1356
1357 2006-06-20  Anders Carlsson  <acarlsson@apple.com>
1358
1359         Reviewed by John
1360
1361         <rdar://problem/4592244> REGRESSION (417.9.3 - 420+): (some?) plain text files have all lines concatenated into one line
1362         
1363         * loader/TextDocument.cpp:
1364         (WebCore::TextTokenizer::checkBuffer):
1365         (WebCore::TextTokenizer::TextTokenizer):
1366         (WebCore::TextTokenizer::write):        
1367         (WebCore::TextTokenizer::finish):
1368         Add a text buffer which is used for translation of CR and CRLF to plain LF, 
1369         like the HTML tokenizer does.
1370
1371 2006-06-20  Maciej Stachowiak  <mjs@apple.com>
1372
1373         Reviewed by Eric.
1374
1375         - fix crasher on one of the layout tests caused by my recent checkin
1376
1377         * kcanvas/RenderSVGText.cpp:
1378         (WebCore::RenderSVGText::paint):
1379
1380 2006-06-19  Alexey Proskuryakov  <ap@nypop.com>
1381
1382         Reviewed by Darin.
1383
1384         - http://bugzilla.opendarwin.org/show_bug.cgi?id=5499
1385         Page reload does not send any cache control headers
1386
1387         Test: http/tests/misc/refresh-headers.php
1388
1389         * bindings/js/kjs_window.cpp:
1390         (KJS::LocationFunc::callAsFunction): Call scheduleRefresh() for Location::Reload.
1391
1392         * page/Frame.h: Add scheduleRefresh(). Don't derive from TransferJob or implement its methods - that was
1393         used only for storing response HTTP headers, which was an overkill.
1394
1395         * page/FramePrivate.h: Replace TransferJob with a HashMap for storing response headers.
1396
1397         * page/Frame.cpp:
1398         (WebCore::Frame::didOpenURL): Don't needlessly change d->m_cachePolicy. Don't create a TransferJob.
1399         (WebCore::Frame::stopLoading): Directly access the metadata map, instead of going through a TransferJob.
1400         (WebCore::Frame::receivedFirstData): Ditto.
1401         (WebCore::Frame::addMetaData): Ditto.
1402         (WebCore::Frame::scheduleRefresh): A new function that schedules a refresh, similarly to what
1403         scheduleRedirection() does.
1404         (WebCore::Frame::changeLocation): Set request.reload attribute based on the current cache policy.
1405
1406 2006-06-19  Ben Goodger  <bengoodger@gmail.com>
1407
1408         Reviewed by Darin.
1409
1410         http://bugzilla.opendarwin.org/show_bug.cgi?id=9501
1411         Windows build fails with link error CharsetTable not defined
1412
1413         * platform/make-charset-table.pl:
1414         (process_iana_charsets): Move test for equality to alias "None" until after
1415         normalization steps to ensure escape characters in the input data don't
1416         interfere with processing.  Convert nearby tabs to 4 spaces in this function.
1417
1418 2006-06-18  Maciej Stachowiak  <mjs@apple.com>
1419
1420         Reviewed by Darin.
1421
1422         - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=9488
1423         "Animated GIFs do not respect transforms in SVG"
1424         
1425         http://bugzilla.opendarwin.org/show_bug.cgi?id=6946
1426         "SVG shows invalidation issues in WebKit"
1427         
1428         http://www.treebuilder.de/default.asp?file=441875.xml
1429         "Invalidation issues with "SVG 3d" demo"
1430         
1431         http://code.google.com/webstats/2005-12/pages.html
1432         "SVG text doesn't repaint correctly"
1433
1434         * kcanvas/KCanvasContainer.cpp:
1435         (WebCore::KCanvasContainer::computeAbsoluteRepaintRect): Override base class, and apply
1436         appropriate transforms, so damage rects in transformed SVG content get propagated up properly.
1437         (WebCore::KCanvasContainer::getAbsoluteRepaintRect): note a FIXME; this method
1438         seems wrong.
1439         * kcanvas/KCanvasContainer.h: Prototype new method.
1440
1441         * css/svg.css: Don't apply overflow:hidden to foreignObject, since that makes it a RenderLayer
1442         so it paints twice.
1443         * kcanvas/RenderForeignObject.cpp:
1444         (WebCore::RenderForeignObject::paint): Transform the damage rect before passing it down to HTML content,
1445         so everything paints that is supposed to. Also handle opacity here since we won't get layers.
1446         (WebCore::RenderForeignObject::computeAbsoluteRepaintRect): Override base class, and apply
1447         appropriate transforms, so damage rects in HTML embedded in SVG get propagated up properly.
1448         (WebCore::RenderForeignObject::requiresLayer): Never use a RenderLayer.
1449         (WebCore::RenderForeignObject::layout): Make sure to dirty our previous bounds when layout
1450         changes, as by transform.
1451         * kcanvas/RenderForeignObject.h:
1452
1453         * kcanvas/RenderSVGImage.cpp:
1454         (WebCore::RenderSVGImage::paint): Transform the damage rect when painting. Also handle opacity 
1455         here since we won't get layers.
1456         (WebCore::RenderForeignObject::computeAbsoluteRepaintRect): Override base class, and apply
1457         appropriate transforms, so damage rects in SVG images  get propagated up properly.
1458         (WebCore::RenderSVGImage::translationForAttributes): New helper method, factored out of below.
1459         (WebCore::RenderSVGImage::translateForAttributes): Use above.
1460         (WebCore::RenderSVGImage::requiresLayer): Never use a RenderLayer.
1461         (WebCore::RenderSVGImage::layout): Make sure to properly dirty the old bounds, accounting
1462         for transforms.
1463         (WebCore::RenderSVGImage::relativeBBox): Correct bbox computation.
1464         * kcanvas/RenderSVGImage.h:
1465
1466         * kcanvas/RenderSVGText.cpp:
1467         (WebCore::RenderSVGText::paint): Transform incoming damage rect. Handle opacity here since we
1468         won't get a layer.
1469         (WebCore::RenderSVGText::computeAbsoluteRepaintRect): Apply transforms.
1470         (WebCore::RenderSVGText::requiresLayer): Never use a RenderLayer.
1471         (WebCore::RenderSVGText::layout): Make sure to dirty the old bounds.
1472
1473         * platform/cg/GraphicsContextCG.cpp:
1474         (WebCore::GraphicsContext::roundToDevicePixels): Instead of transforming rect to device space
1475         and back to user space, do this for the origin and lower right corner of the rect. Otherwise the
1476         rect will get inflated if user space is rotated or skewed.
1477
1478         * kcanvas/RenderPath.cpp:
1479         (WebCore::RenderPath::layout): Make sure to dirty the old bounds.
1480         (WebCore::RenderPath::paint): Hhandle opacity here.
1481         
1482         Bonus fix:
1483         
1484         * kcanvas/RenderSVGImage.cpp:
1485         (WebCore::RenderSVGImage::nodeAtPoint): Fix hit testing. Wasn't applying the x/y
1486         attribute transform.
1487
1488 2006-06-19  Sam Weinig  <sam.weinig@gmail.com>
1489
1490         Reviewed by Darin.
1491
1492         - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9500
1493           Split dom2_eventsimpl.* into separate files (one class per file).
1494
1495         * WebCore.xcodeproj/project.pbxproj:
1496         * bindings/js/kjs_binding.cpp:
1497         * bindings/js/kjs_dom.cpp:
1498         * bindings/js/kjs_events.cpp:
1499         * bindings/js/kjs_html.cpp:
1500         * bindings/js/kjs_window.cpp:
1501         * bindings/objc/DOM.mm:
1502         * bindings/objc/DOMEvents.mm:
1503         * bindings/objc/DOMInternal.mm:
1504         * bindings/scripts/CodeGeneratorJS.pm:
1505         * bridge/mac/FrameMac.mm:
1506         * dom/BeforeTextInsertedEvent.h:
1507         * dom/BeforeUnloadEvent.cpp: Added.
1508         * dom/BeforeUnloadEvent.h: Added.
1509         (WebCore::BeforeUnloadEvent::result):
1510         * dom/CharacterData.cpp:
1511         * dom/Clipboard.h: Added.
1512         (WebCore::Clipboard::~Clipboard):
1513         * dom/ClipboardEvent.cpp: Added.
1514         (WebCore::ClipboardEvent::ClipboardEvent):
1515         * dom/ClipboardEvent.h: Added.
1516         (WebCore::ClipboardEvent::clipboard):
1517         * dom/ContainerNode.cpp:
1518         * dom/Document.cpp:
1519         * dom/Event.cpp: Added.
1520         (WebCore::Event::Event):
1521         (WebCore::Event::initEvent):
1522         * dom/Event.h: Added.
1523         (WebCore::):
1524         (WebCore::Event::):
1525         (WebCore::Event::type):
1526         (WebCore::Event::target):
1527         (WebCore::Event::currentTarget):
1528         (WebCore::Event::setCurrentTarget):
1529         (WebCore::Event::eventPhase):
1530         (WebCore::Event::setEventPhase):
1531         (WebCore::Event::bubbles):
1532         (WebCore::Event::cancelable):
1533         (WebCore::Event::timeStamp):
1534         (WebCore::Event::stopPropagation):
1535         (WebCore::Event::propagationStopped):
1536         (WebCore::Event::defaultPrevented):
1537         (WebCore::Event::setDefaultHandled):
1538         (WebCore::Event::defaultHandled):
1539         (WebCore::Event::preventDefault):
1540         (WebCore::Event::setDefaultPrevented):
1541         (WebCore::Event::setCancelBubble):
1542         (WebCore::Event::getCancelBubble):
1543         (WebCore::Event::dispatched):
1544         * dom/EventTargetNode.cpp:
1545         * dom/KeyboardEvent.cpp: Added.
1546         (WebCore::KeyboardEvent::KeyboardEvent):
1547         (WebCore::KeyboardEvent::initKeyboardEvent):
1548         * dom/KeyboardEvent.h: Added.
1549         (WebCore::KeyboardEvent::):
1550         (WebCore::KeyboardEvent::keyIdentifier):
1551         (WebCore::KeyboardEvent::keyLocation):
1552         (WebCore::KeyboardEvent::altGraphKey):
1553         (WebCore::KeyboardEvent::keyEvent):
1554         * dom/MouseEvent.cpp: Added.
1555         (WebCore::MouseEvent::MouseEvent):
1556         (WebCore::MouseEvent::initMouseEvent):
1557         (WebCore::MouseEvent::isDragEvent):
1558         (WebCore::MouseEvent::toElement):
1559         (WebCore::MouseEvent::fromElement):
1560         * dom/MouseEvent.h: Added.
1561         (WebCore::MouseEvent::button):
1562         (WebCore::MouseEvent::relatedTarget):
1563         (WebCore::MouseEvent::clipboard):
1564         * dom/MouseRelatedEvent.cpp: Added.
1565         (WebCore::MouseRelatedEvent::MouseRelatedEvent):
1566         * dom/MouseRelatedEvent.h: Added.
1567         (WebCore::MouseRelatedEvent::screenX):
1568         (WebCore::MouseRelatedEvent::screenY):
1569         (WebCore::MouseRelatedEvent::clientX):
1570         (WebCore::MouseRelatedEvent::clientY):
1571         (WebCore::MouseRelatedEvent::layerX):
1572         (WebCore::MouseRelatedEvent::layerY):
1573         (WebCore::MouseRelatedEvent::offsetX):
1574         (WebCore::MouseRelatedEvent::offsetY):
1575         (WebCore::MouseRelatedEvent::isSimulated):
1576         * dom/MutationEvent.cpp: Added.
1577         (WebCore::MutationEvent::MutationEvent):
1578         (WebCore::MutationEvent::initMutationEvent):
1579         * dom/MutationEvent.h: Added.
1580         (WebCore::MutationEvent::):
1581         (WebCore::MutationEvent::relatedNode):
1582         (WebCore::MutationEvent::prevValue):
1583         (WebCore::MutationEvent::newValue):
1584         (WebCore::MutationEvent::attrName):
1585         (WebCore::MutationEvent::attrChange):
1586         * dom/RegisteredEventListener.cpp: Added.
1587         (WebCore::RegisteredEventListener::RegisteredEventListener):
1588         (WebCore::operator==):
1589         * dom/RegisteredEventListener.h: Added.
1590         (WebCore::RegisteredEventListener::eventType):
1591         (WebCore::RegisteredEventListener::listener):
1592         (WebCore::RegisteredEventListener::useCapture):
1593         (WebCore::RegisteredEventListener::removed):
1594         (WebCore::RegisteredEventListener::setRemoved):
1595         (WebCore::operator!=):
1596         * dom/UIEvent.cpp: Added.
1597         (WebCore::UIEvent::UIEvent):
1598         (WebCore::UIEvent::initUIEvent):
1599         * dom/UIEvent.h: Added.
1600         (WebCore::UIEvent::view):
1601         (WebCore::UIEvent::detail):
1602         * dom/UIEventWithKeyState.h: Added.
1603         (WebCore::UIEventWithKeyState::UIEventWithKeyState):
1604         (WebCore::UIEventWithKeyState::ctrlKey):
1605         (WebCore::UIEventWithKeyState::shiftKey):
1606         (WebCore::UIEventWithKeyState::altKey):
1607         (WebCore::UIEventWithKeyState::metaKey):
1608         * dom/WheelEvent.cpp: Added.
1609         (WebCore::WheelEvent::WheelEvent):
1610         * dom/WheelEvent.h: Added.
1611         (WebCore::WheelEvent::isHorizontal):
1612         (WebCore::WheelEvent::wheelDelta):
1613         * dom/dom2_eventsimpl.cpp: Removed.
1614         * dom/dom2_eventsimpl.h: Removed.
1615         * editing/EditCommand.cpp:
1616         * editing/SelectionController.cpp:
1617         * html/HTMLAnchorElement.cpp:
1618         * html/HTMLButtonElement.cpp:
1619         * html/HTMLDocument.cpp:
1620         * html/HTMLElement.cpp:
1621         * html/HTMLFrameSetElement.cpp:
1622         * html/HTMLInputElement.cpp:
1623         * html/HTMLSelectElement.cpp:
1624         * html/HTMLTextAreaElement.cpp:
1625         * ksvg2/events/SVGZoomEvent.h:
1626         * ksvg2/svg/SVGAElement.cpp:
1627         * page/Frame.cpp:
1628         * page/FrameView.cpp:
1629         * platform/PlatformKeyboardEvent.h:
1630         * platform/PlatformMouseEvent.h:
1631         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1632         * platform/PlatformWheelEvent.h:
1633         * platform/mac/ClipboardMac.h:
1634         * rendering/RenderFrameSet.cpp:
1635         * rendering/RenderLayer.cpp:
1636         * rendering/RenderObject.cpp:
1637         * rendering/RenderTextField.cpp:
1638         * xml/xmlhttprequest.cpp:
1639
1640 2006-06-19  Darin Adler  <darin@apple.com>
1641
1642         Reviewed by Brady.
1643
1644         - removed a few empty/unused files Brady found by tracking down the nm error message
1645
1646         * editing/VisibleRange.cpp: Removed.
1647         * editing/VisibleRange.h: Removed.
1648         * kcanvas/KCanvasImage.cpp: Removed.
1649
1650         * WebCore.vcproj/WebCore/WebCore.vcproj: Removed VisibleRange.cpp/h.
1651         * WebCore.xcodeproj/project.pbxproj: Removed VisibleRange.cpp/h and KCanvasImage.cpp.
1652         * WebCoreSources.bkl: Removed VisibleRange.cpp.
1653
1654 2006-06-19  Alexey Proskuryakov  <ap@nypop.com>
1655
1656         Reviewed by Darin.
1657
1658         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9492
1659         Fix or remove window.debug.
1660
1661         It was only available in newly created windows, and became undefined after changing the URL
1662         or reloading. Let's try removing it; hopefully, no-one will notice.
1663
1664         * bindings/js/kjs_proxy.cpp:
1665         (WebCore::KJSProxy::initScriptIfNeeded): Don't add window.debug.
1666
1667 2006-06-19  Alexey Proskuryakov  <ap@nypop.com>
1668
1669         Reviewed by Darin.
1670
1671         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8972
1672         REGRESSION: invalid UTF-8 sequences are not displayed
1673
1674         Test: LayoutTests/fast/encoding/invalid-UTF-8.html
1675
1676         * dom/xml_tokenizer.cpp:
1677         (WebCore::getXHTMLEntity): Properly null-terminate the result. This didn't matter
1678         before, because the garbage at the end was guaranteed to be invalid UTF-8, and was 
1679         omitted in appendOmittingUnwanted();
1680
1681         * platform/StreamingTextDecoder.cpp:
1682         (WebCore::StreamingTextDecoder::appendOmittingBOM): Only omit BOM characters.
1683         Renamed back from appendOmittingUnwanted();
1684
1685         (WebCore::StreamingTextDecoder::convertUsingICU):
1686         * platform/StreamingTextDecoder.h:
1687         Update for the above function renaming.
1688
1689 2006-06-18  David Kilzer  <ddkilzer@kilzer.net>
1690
1691         Reviewed by darin.
1692
1693         http://bugzilla.opendarwin.org/show_bug.cgi?id=9498
1694         Remove dead code left in JSHTMLDocument::getOwnPropertySlot() from r14298 (Bug 7838)
1695
1696         * bindings/js/kjs_html.cpp:
1697         (KJS::JSHTMLDocument::getOwnPropertySlot): Remove dead code.
1698
1699 2006-06-18  David Kilzer  <ddkilzer@kilzer.net>
1700
1701         Reviewed by ggaren.
1702
1703         * manual-tests/redraw-page-cache-visited-links.html: Changed to use DOM mouse event.
1704
1705 2006-06-18  David Kilzer  <ddkilzer@kilzer.net>
1706
1707         Reviewed by ggaren.
1708
1709         - Update a manual test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9150
1710           DumpRenderTree should be able to keep URL history during runs
1711
1712         * manual-tests/redraw-page-cache-visited-links.html: Added note about window.history hack.
1713         Fixed coordinates for mouse events.  Added call to keepWebHistory().
1714         * manual-tests/resources/redraw-page-cache-visited-links-2.html: Added note about
1715         window.history hack.
1716
1717 2006-06-17  Anders Carlsson  <acarlsson@apple.com>
1718
1719         Reviewed by Geoff.
1720
1721         * bindings/js/kjs_binding.cpp:
1722         (KJS::ScriptInterpreter::ScriptInterpreter):
1723         Set the default script timeout.
1724         
1725         (KJS::ScriptInterpreter::shouldInterruptScript):
1726         New function which asks the frame if the script should be interrupted.
1727         
1728         * bindings/js/kjs_binding.h:
1729                 
1730         * bindings/js/kjs_events.cpp:
1731         (KJS::JSAbstractEventListener::handleEvent):
1732         * bindings/js/kjs_proxy.cpp:
1733         (WebCore::KJSProxy::evaluate):
1734         Add calls to startTimeoutCheck/stopTimeoutCheck
1735         
1736         * bindings/js/kjs_window.cpp:
1737         (KJS::WindowFunc::callAsFunction):
1738         Add calls to pauseTimeoutCheck/unpauseTimeoutCheck 
1739         
1740         (KJS::ScheduledAction::execute):
1741         Add calls to startTimeoutCheck/stopTimeoutCheck
1742         
1743         * bridge/mac/FrameMac.h:
1744         * bridge/mac/FrameMac.mm:
1745         (WebCore::FrameMac::shouldInterruptJavaScript):
1746         New function which asks the bridge if the script should be interrupted.
1747         
1748         * bridge/mac/WebCoreFrameBridge.h:
1749         * page/Frame.h:
1750         Add function declarations.
1751         
1752 2006-06-17  Alexey Proskuryakov  <ap@nypop.com>
1753
1754         Reviewed by ggaren.
1755
1756         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8131
1757         Some properties and methods of window and document objects cannot be converted to a string
1758
1759         Most of the properties were already fixed, this just adds adds a prototype to window.debug.
1760
1761         Test: fast/dom/everything-to-string.html
1762
1763         * bindings/js/kjs_proxy.cpp:
1764         (WebCore::TestFunctionImp::TestFunctionImp): 
1765         (WebCore::KJSProxy::initScriptIfNeeded):
1766
1767 2006-06-17  David Kilzer  <ddkilzer@kilzer.net>
1768
1769         Reviewed by Maciej.
1770
1771         - Fix capitalization issue for case-sensitive filesystems.
1772
1773         * icon/SQLStatement.cpp: Change assertions.h to Assertions.h.
1774
1775 2006-06-17  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1776
1777         Reviewed by Hyatt.
1778
1779         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7395
1780           Table not properly re-flowed when floated div removed from layout
1781
1782         Test: fast/block/float/table-relayout.html
1783
1784         * rendering/RenderBlock.cpp:
1785         (WebCore::RenderBlock::markAllDescendantsWithFloatsForLayout): Added marking
1786         of children that use lineWidth.
1787         * rendering/RenderBlock.h: Added a FIXME.
1788
1789 2006-06-17  Rob Buis  <buis@kde.org>
1790
1791         Reviewed by Darin.
1792
1793         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6282:
1794         Adding new Option with new Option(text, value, defaultSelected, selected) fails to update selectedIndex
1795
1796         Update selectedIndex when a new option is added using javascript.
1797
1798         * bindings/js/kjs_html.cpp:
1799         (KJS::JSHTMLSelectCollection::put):
1800         * html/HTMLSelectElement.cpp:
1801         (WebCore::HTMLSelectElement::setSelectedIndex):
1802         (WebCore::HTMLSelectElement::setOption):
1803         (WebCore::HTMLSelectElement::setLength):
1804         * html/HTMLSelectElement.h:
1805
1806 2006-06-17  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1807
1808         Reviewed by Darin.
1809
1810         - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9466
1811           Assertion failure when dragging an image from the document into Safari's address bar
1812
1813         * manual-tests/reset-initiatedDrag.html: Added.
1814
1815 2006-06-16  David Kilzer  <ddkilzer@kilzer.net>
1816
1817         Reviewed by darin.
1818
1819         http://bugzilla.opendarwin.org/show_bug.cgi?id=9463
1820         REGRESSION (r14879): Assertion failure in CSSParser::sinkFloatingSelector()
1821         (m_floatingSelectors.contains(selector)) in some CSS tests
1822
1823         * css/CSSGrammar.y: Create CSSSelector for FUNCTION using CSSParser::createFloatingSelector()
1824         instead of the bare constructor.
1825
1826 2006-06-16  David Harrison  <harrison@apple.com>
1827
1828         Reviewed by Hatcher.
1829
1830         <rdar://problem/4565312> Mail has a weird drawing artifact with dotted red lines running across the window
1831
1832         Problem was that revision lost a check to not draw the markers
1833         when paintingDisabled().   This led the markers to be drawn when
1834         the window deactivated, at which time the view happens to be flipped.
1835
1836         It is similar but not the same as the Mail ToDo highlighting
1837         issue, which is due to the custom highlight method
1838         drawing when the focusView is nil.  Mail team knows this
1839         and has tested the fix.
1840
1841         * platform/mac/GraphicsContextMac.mm:
1842         (WebCore::GraphicsContext::drawLineForMisspelling):
1843         Early return if paintingDisabled().
1844
1845 2006-06-16  Adele Peterson  <adele@apple.com>
1846
1847         Reviewed by Hyatt.
1848
1849         Adjust padding of inner div so text lines up with text fields.
1850         Adjust height of textarea so it only leaves room for the horizontal
1851         scrollbar if overflow is set to scroll, or if overflow is set to
1852         auto and there's no word wrap.
1853
1854         These changes will be tested by current layout tests when the
1855         new textarea implementation takes effect.
1856
1857         * rendering/RenderTextField.cpp:
1858         (WebCore::RenderTextField::createDivStyle):
1859         (WebCore::RenderTextField::calcHeight):
1860
1861 2006-06-16  John Sullivan  <sullivan@apple.com>
1862
1863         Reviewed by Darin
1864         
1865         - fixed <rdar://problem/4590062> crash in marker code with particular set of steps on daringfireball.net
1866
1867         * dom/Document.cpp:
1868         (WebCore::Document::addMarker):
1869         Store [it - markers.begin()] in a local variable before modifying markers, since modifying markers can
1870         change value of [it - markers.begin()].
1871
1872 2006-06-16  Adele Peterson  <adele@apple.com>
1873
1874         Reviewed by Alice.
1875
1876         Added code to draw Cocoa-like border for textareas instead of just using CSS.
1877
1878         * WebCore.exp:
1879         * css/html4.css: Sets a 1px solid border.
1880         * platform/mac/WebCoreSystemInterface.h:
1881         * platform/mac/WebCoreSystemInterface.mm:
1882         * rendering/RenderThemeMac.h: Formatting changes.
1883         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintTextArea):
1884         Uses new wkDrawBezeledTextArea to draw border.
1885
1886 2006-06-16  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1887
1888         Reviewed by hyatt.
1889
1890         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9432
1891           REGRESSION: crash in capitalization code due to empty-string generated content
1892
1893         Test: fast/text/capitalize-empty-generated-string.html
1894
1895         * rendering/RenderText.cpp:
1896         (WebCore::RenderText::setText): Skip empty-string text renderers when
1897         looking for the previous character.
1898
1899 2006-06-15  Justin Garcia  <justin.garcia@apple.com>
1900
1901         Reviewed by levi
1902
1903         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8637>
1904         REGRESSION (11-16-05): Selection gaps left behind after delete
1905
1906         * editing/SelectionController.cpp:
1907         (WebCore::SelectionController::nodeWillBeRemoved): Invalidate the selection so that 
1908         selection gaps are invalidated.
1909
1910 2006-06-15  Timothy Hatcher  <timothy@apple.com>
1911
1912         Reviewed by Geoff and Darin.
1913         
1914         Prefer the DWARF debugging symbols format for use in Xcode 2.3.
1915
1916         * WebCore.xcodeproj/project.pbxproj:
1917
1918 2006-06-15  Justin Garcia  <justin.garcia@apple.com>
1919
1920         Reviewed by harrison
1921         
1922         * editing/CompositeEditCommand.cpp:
1923         (WebCore::hasARenderedDescendant):
1924         (WebCore::CompositeEditCommand::prune): Ascend using the DOM
1925         (WebCore::CompositeEditCommand::moveParagraphs): Placeholder insertion
1926         during deletion is fixed, removing the fall back.
1927
1928 2006-06-15  Nicholas Shanks  <contact@nickshanks.com>
1929
1930         Reviewed by Hyatt, landed by Joost de Valk.
1931
1932         Fix http://bugzilla.opendarwin.org/show_bug.cgi?id=3233
1933
1934         Add support for the :lang pseudo-class.
1935
1936         * css/CSSGrammar.y:
1937         * css/CSSSelector.cpp:
1938         (WebCore::CSSSelector::operator == ):
1939         * css/CSSSelector.h:
1940         (WebCore::CSSSelector::CSSSelector):
1941         * css/cssparser.cpp:
1942         (WebCore::CSSParser::lex):
1943         * css/cssstyleselector.cpp:
1944         (WebCore::CSSStyleSelector::checkOneSelector):
1945         * css/tokenizer.flex:
1946
1947 2006-06-15  Justin Garcia  <justin.garcia@apple.com>
1948
1949         Reviewed by harrison
1950         
1951         <http://bugzilla.opendarwin.org/show_bug.cgi?id=9456>
1952         REGRESSION (417.9.2-420+): Cmd-G doesn't work in Safari after double-click and Cmd-E
1953         
1954         * page/Frame.cpp:
1955         (WebCore::Frame::findString): When comparing the found range with
1956         what's currently selected a) build a selection with the found
1957         range to remove collapsed whitespace and b) compare ranges 
1958         instead of selection objects to ignore the way that the 
1959         current selection was made (to ignore the base and extent).
1960
1961 2006-06-15  David Kilzer  <ddkilzer@kilzer.net>
1962
1963         Reviewed by mjs.
1964
1965         http://bugzilla.opendarwin.org/show_bug.cgi?id=9382
1966         IDL files missing copyright/license headers
1967
1968         Add Apple BSD license and copyright to IDL files.
1969
1970         * ksvg2/bindings/idl/svg/GetSVGDocument.idl:
1971         * ksvg2/bindings/idl/svg/SVGAElement.idl:
1972         * ksvg2/bindings/idl/svg/SVGAnimateColorElement.idl:
1973         * ksvg2/bindings/idl/svg/SVGAnimateElement.idl:
1974         * ksvg2/bindings/idl/svg/SVGAnimateTransformElement.idl:
1975         * ksvg2/bindings/idl/svg/SVGAnimatedAngle.idl:
1976         * ksvg2/bindings/idl/svg/SVGAnimatedBoolean.idl:
1977         * ksvg2/bindings/idl/svg/SVGAnimatedEnumeration.idl:
1978         * ksvg2/bindings/idl/svg/SVGAnimatedInteger.idl:
1979         * ksvg2/bindings/idl/svg/SVGAnimatedLengthList.idl:
1980         * ksvg2/bindings/idl/svg/SVGAnimatedNumber.idl:
1981         * ksvg2/bindings/idl/svg/SVGAnimatedNumberList.idl:
1982         * ksvg2/bindings/idl/svg/SVGAnimatedPathData.idl:
1983         * ksvg2/bindings/idl/svg/SVGAnimatedPoints.idl:
1984         * ksvg2/bindings/idl/svg/SVGAnimatedPreserveAspectRatio.idl:
1985         * ksvg2/bindings/idl/svg/SVGAnimatedRect.idl:
1986         * ksvg2/bindings/idl/svg/SVGAnimatedString.idl:
1987         * ksvg2/bindings/idl/svg/SVGAnimatedTransformList.idl:
1988         * ksvg2/bindings/idl/svg/SVGAnimationElement.idl:
1989         * ksvg2/bindings/idl/svg/SVGCircleElement.idl:
1990         * ksvg2/bindings/idl/svg/SVGClipPathElement.idl:
1991         * ksvg2/bindings/idl/svg/SVGComponentTransferFunctionElement.idl:
1992         * ksvg2/bindings/idl/svg/SVGCursorElement.idl:
1993         * ksvg2/bindings/idl/svg/SVGDOMImplementation.idl:
1994         * ksvg2/bindings/idl/svg/SVGDefsElement.idl:
1995         * ksvg2/bindings/idl/svg/SVGDescElement.idl:
1996         * ksvg2/bindings/idl/svg/SVGElementInstance.idl:
1997         * ksvg2/bindings/idl/svg/SVGElementInstanceList.idl:
1998         * ksvg2/bindings/idl/svg/SVGEllipseElement.idl:
1999         * ksvg2/bindings/idl/svg/SVGEvent.idl:
2000         * ksvg2/bindings/idl/svg/SVGException.idl:
2001         * ksvg2/bindings/idl/svg/SVGExternalResourcesRequired.idl:
2002         * ksvg2/bindings/idl/svg/SVGFEBlendElement.idl:
2003         * ksvg2/bindings/idl/svg/SVGFEColorMatrixElement.idl:
2004         * ksvg2/bindings/idl/svg/SVGFEComponentTransferElement.idl:
2005         * ksvg2/bindings/idl/svg/SVGFECompositeElement.idl:
2006         * ksvg2/bindings/idl/svg/SVGFEFloodElement.idl:
2007         * ksvg2/bindings/idl/svg/SVGFEFuncAElement.idl:
2008         * ksvg2/bindings/idl/svg/SVGFEFuncBElement.idl:
2009         * ksvg2/bindings/idl/svg/SVGFEFuncGElement.idl:
2010         * ksvg2/bindings/idl/svg/SVGFEFuncRElement.idl:
2011         * ksvg2/bindings/idl/svg/SVGFEGaussianBlurElement.idl:
2012         * ksvg2/bindings/idl/svg/SVGFEImageElement.idl:
2013         * ksvg2/bindings/idl/svg/SVGFEMergeElement.idl:
2014         * ksvg2/bindings/idl/svg/SVGFEMergeNodeElement.idl:
2015         * ksvg2/bindings/idl/svg/SVGFEOffsetElement.idl:
2016         * ksvg2/bindings/idl/svg/SVGFETileElement.idl:
2017         * ksvg2/bindings/idl/svg/SVGFETurbulenceElement.idl:
2018         * ksvg2/bindings/idl/svg/SVGFilterElement.idl:
2019         * ksvg2/bindings/idl/svg/SVGFilterPrimitiveStandardAttributes.idl:
2020         * ksvg2/bindings/idl/svg/SVGFitToViewBox.idl:
2021         * ksvg2/bindings/idl/svg/SVGGElement.idl:
2022         * ksvg2/bindings/idl/svg/SVGGradientElement.idl:
2023         * ksvg2/bindings/idl/svg/SVGICCColor.idl:
2024         * ksvg2/bindings/idl/svg/SVGImageElement.idl:
2025         * ksvg2/bindings/idl/svg/SVGLangSpace.idl:
2026         * ksvg2/bindings/idl/svg/SVGLengthList.idl:
2027         * ksvg2/bindings/idl/svg/SVGLineElement.idl:
2028         * ksvg2/bindings/idl/svg/SVGLinearGradientElement.idl:
2029         * ksvg2/bindings/idl/svg/SVGLocatable.idl:
2030         * ksvg2/bindings/idl/svg/SVGMarkerElement.idl:
2031         * ksvg2/bindings/idl/svg/SVGNumberList.idl:
2032         * ksvg2/bindings/idl/svg/SVGPaint.idl:
2033         * ksvg2/bindings/idl/svg/SVGPathElement.idl:
2034         * ksvg2/bindings/idl/svg/SVGPathSeg.idl:
2035         * ksvg2/bindings/idl/svg/SVGPathSegArc.idl:
2036         * ksvg2/bindings/idl/svg/SVGPathSegClosePath.idl:
2037         * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubic.idl:
2038         * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubicSmooth.idl:
2039         * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadratic.idl:
2040         * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadraticSmooth.idl:
2041         * ksvg2/bindings/idl/svg/SVGPathSegLineto.idl:
2042         * ksvg2/bindings/idl/svg/SVGPathSegLinetoHorizontal.idl:
2043         * ksvg2/bindings/idl/svg/SVGPathSegLinetoVertical.idl:
2044         * ksvg2/bindings/idl/svg/SVGPathSegList.idl:
2045         * ksvg2/bindings/idl/svg/SVGPathSegMoveto.idl:
2046         * ksvg2/bindings/idl/svg/SVGPatternElement.idl:
2047         * ksvg2/bindings/idl/svg/SVGPointList.idl:
2048         * ksvg2/bindings/idl/svg/SVGPolygonElement.idl:
2049         * ksvg2/bindings/idl/svg/SVGPolylineElement.idl:
2050         * ksvg2/bindings/idl/svg/SVGPreserveAspectRatio.idl:
2051         * ksvg2/bindings/idl/svg/SVGRadialGradientElement.idl:
2052         * ksvg2/bindings/idl/svg/SVGRectElement.idl:
2053         * ksvg2/bindings/idl/svg/SVGRenderingIntent.idl:
2054         * ksvg2/bindings/idl/svg/SVGScriptElement.idl:
2055         * ksvg2/bindings/idl/svg/SVGSetElement.idl:
2056         * ksvg2/bindings/idl/svg/SVGStopElement.idl:
2057         * ksvg2/bindings/idl/svg/SVGStringList.idl:
2058         * ksvg2/bindings/idl/svg/SVGStylable.idl:
2059         * ksvg2/bindings/idl/svg/SVGStyleElement.idl:
2060         * ksvg2/bindings/idl/svg/SVGSwitchElement.idl:
2061         * ksvg2/bindings/idl/svg/SVGSymbolElement.idl:
2062         * ksvg2/bindings/idl/svg/SVGTSpanElement.idl:
2063         * ksvg2/bindings/idl/svg/SVGTests.idl:
2064         * ksvg2/bindings/idl/svg/SVGTextContentElement.idl:
2065         * ksvg2/bindings/idl/svg/SVGTextElement.idl:
2066         * ksvg2/bindings/idl/svg/SVGTextPositioningElement.idl:
2067         * ksvg2/bindings/idl/svg/SVGTitleElement.idl:
2068         * ksvg2/bindings/idl/svg/SVGTransformList.idl:
2069         * ksvg2/bindings/idl/svg/SVGTransformable.idl:
2070         * ksvg2/bindings/idl/svg/SVGURIReference.idl:
2071         * ksvg2/bindings/idl/svg/SVGUnitTypes.idl:
2072         * ksvg2/bindings/idl/svg/SVGUseElement.idl:
2073         * ksvg2/bindings/idl/svg/SVGViewElement.idl:
2074         * ksvg2/bindings/idl/svg/SVGZoomAndPan.idl:
2075         * ksvg2/bindings/idl/svg/SVGZoomEvent.idl:
2076         * ksvg2/svg/SVGAnimatedLength.idl:
2077
2078 2006-06-14  Justin Garcia  <justin.garcia@apple.com>
2079
2080         Reviewed by levi
2081
2082         <rdar://problem/4439248>
2083         REGRESSION(412-417): [RTL] Serious problem with RTL signatures in Mail.app in 10.4.4 (7766)
2084
2085         * editing/markup.cpp:
2086         (WebCore::renderedText): Use plainText so that we'll pull rendered text but in DOM order.
2087
2088 2006-06-14  Levi Weintraub  <lweintraub@apple.com>
2089
2090         Reviewed by justin
2091
2092         <http://bugzilla.opendarwin.org/show_bug.cgi?id=7580>
2093         TinyMCE: Implement execCommand(formatBlock, ...)
2094
2095         * WebCore.xcodeproj/project.pbxproj: Added FormatBlock.{h,cpp} to the project.
2096         * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
2097         * bridge/mac/WebCoreFrameBridge.h: Added WebUndoActions
2098         * editing/CompositeEditCommand.cpp:
2099         (WebCore::CompositeEditCommand::moveParagraph): Added a preserveStyle bool.
2100         (WebCore::CompositeEditCommand::moveParagraphs): Ditto.  downstream() the start
2101         or else we'll move collapsed whitespace and uncollapse it.
2102         * editing/CompositeEditCommand.h:
2103         * editing/DeleteSelectionCommand.cpp:
2104         (WebCore::DeleteSelectionCommand::initializePositionData):
2105         (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete): Don't update m_endingPosition
2106         because that's removeNode's responsibility.
2107         (WebCore::updatePositionForNodeRemoval): Added.
2108         (WebCore::DeleteSelectionCommand::removeNode): Turned removeFullySelectedNode into a virtual
2109         overload of removeNode so that we can update positions as we remove nodes.
2110         (WebCore::updatePositionForTextRemoval): Added.
2111         (WebCore::DeleteSelectionCommand::deleteTextFromNode):
2112         (WebCore::DeleteSelectionCommand::handleGeneralDelete): 
2113         (WebCore::DeleteSelectionCommand::fixupWhitespace): Got rid of m_trailingWhitespaceValid
2114         since m_trailingWhitespace is always valid (we update it as we remove nodes).
2115         (WebCore::DeleteSelectionCommand::mergeParagraphs):
2116         (WebCore::DeleteSelectionCommand::doApply): Leading and trailing spaces should
2117         be fixed if they have collapsed before merging paragraphs.
2118         * editing/DeleteSelectionCommand.h:
2119         * editing/EditAction.h:
2120         (WebCore::):
2121         * editing/FormatBlockCommand.cpp: Added.
2122         (WebCore::FormatBlockCommand::FormatBlockCommand):
2123         (WebCore::FormatBlockCommand::modifyRange): Similar to InsertListCommand::modifyRange().
2124         (WebCore::FormatBlockCommand::doApply):
2125         * editing/FormatBlockCommand.h: Added.
2126         (WebCore::FormatBlockCommand::editingAction):
2127         * editing/InsertListCommand.h:
2128         (WebCore::InsertListCommand::editingAction):
2129         * editing/JSEditor.cpp:
2130         * editing/MergeIdenticalElementsCommand.cpp:
2131         (WebCore::MergeIdenticalElementsCommand::doApply):
2132         * editing/htmlediting.cpp:
2133         (WebCore::validBlockTag):
2134         (WebCore::createElement):
2135         * editing/htmlediting.h:
2136
2137 2006-06-14  Maciej Stachowiak  <mjs@apple.com>
2138
2139         Reviewed by Anders.
2140
2141         - fixed <rdar://problem/4586051> 10.4.7 regression: 'Saved and recent' button on mapquest.com does not work
2142
2143         * dom/EventTargetNode.cpp:
2144         (WebCore::EventTargetNode::dispatchWindowEvent):
2145
2146 2006-06-14  David Hyatt  <hyatt@apple.com>
2147
2148         Rename RenderSlider to DeprecatedSlider, so that I can start work on
2149         the new NSView-less slider.
2150
2151         Reviewed by john
2152
2153         * WebCore.vcproj/WebCore/WebCore.vcproj:
2154         * WebCore.xcodeproj/project.pbxproj:
2155         * html/HTMLInputElement.cpp:
2156         (WebCore::HTMLInputElement::createRenderer):
2157         * rendering/DeprecatedSlider.cpp: Added.
2158         (WebCore::DeprecatedSlider::DeprecatedSlider):
2159         (WebCore::DeprecatedSlider::calcMinMaxWidth):
2160         (WebCore::DeprecatedSlider::updateFromElement):
2161         (WebCore::DeprecatedSlider::valueChanged):
2162         * rendering/DeprecatedSlider.h: Added.
2163         (WebCore::DeprecatedSlider::renderName):
2164         * rendering/RenderSlider.cpp: Removed.
2165         * rendering/RenderSlider.h: Removed.
2166
2167 2006-06-13  Geoffrey Garen  <ggaren@apple.com>
2168
2169         Reviewed by Maciej.
2170         
2171         - Fixed <rdar://problem/4562192> Creating a new DOMHTMLDocument 
2172         appears challenging.
2173         
2174         - Added createHTMLDocument to Objc bindings, fixed up implementation
2175         to comply with the DOM 2 Candidate Recommendation in which is was defined.
2176         (It never made the final spec.) Also removed use of deprecatedString,
2177         to avoid unnecessary killing of puppies.
2178
2179         * WebCore.xcodeproj/project.pbxproj:
2180         * bindings/objc/DOM.mm:
2181         (-[DOMImplementation createHTMLDocument:]):
2182         * bindings/objc/DOMPrivate.h:
2183         * dom/DOMImplementation.cpp:
2184         (WebCore::DOMImplementation::createDocument):
2185         (WebCore::DOMImplementation::createHTMLDocument):
2186
2187 2006-06-13  Alice Liu  <alice.liu@apple.com>
2188
2189         Reviewed by Adele.
2190
2191         fixed <rdar://problem/4457902> HTMLSelectElement.remove() can't handle an option obj being passed to it, results in hang on http://www.ibc-solar.de/www_ibc/fst_solarmonitoring.jsp
2192
2193         * bindings/js/kjs_html.cpp:
2194         (KJS::HTMLElementFunction::callAsFunction):
2195         support this by converting the argument to an options object
2196         before passing to remove()
2197
2198 2006-06-13  Darin Adler  <darin@apple.com>
2199
2200         Reviewed by Geoff.
2201
2202         - fix <rdar://problem/4585333> Changing location for weather on yahoo.com home page redirects to another page
2203
2204         This patch fixes a bug where the event listener cache does not distinguish
2205         HTML and non-HTML listeners. Incorrect behavior where stopPropagation also
2206         prevented default masked a case of this bug on the yahoo.com home page until
2207         we fixed bug 5180 on 2005-10-03.
2208
2209         Test: fast/events/event-listener-html-non-html-confusion.html
2210
2211         * bindings/js/kjs_window.h: Add additional listener maps for HTML event listeners.
2212
2213         * bindings/js/kjs_window.cpp:
2214         (KJS::Window::~Window): Go through the additional maps when clearing the window object
2215         pointer in event listeners.
2216         (KJS::Window::getJSEventListener): Look in the HTML or non-HTML map depending on the
2217         argument passed.
2218         (KJS::Window::getJSUnprotectedEventListener): Ditto.
2219
2220         * bindings/js/kjs_events.cpp:
2221         (KJS::JSUnprotectedEventListener::JSUnprotectedEventListener): Add to either the HTML
2222         or non-HTML map depending on the argument passed.
2223         (KJS::JSUnprotectedEventListener::~JSUnprotectedEventListener): Remove from either the
2224         HTML or non-HTML map depending on whether the HTML flag is set.
2225         (KJS::JSEventListener::JSEventListener): More of the same.
2226         (KJS::JSEventListener::~JSEventListener): Ditto.
2227         (KJS::JSLazyEventListener::parseCode): Same thing here. In a lazy event listener there
2228         is not a listener at construction time, thus the code here to put the listener into a
2229         map needs the HTML vs. non-HTML logic.
2230
2231 2006-06-13  Maciej Stachowiak  <mjs@apple.com>
2232
2233         Reviewed by Darin.
2234         
2235         <rdar://problem/4583892> 10.4.7 regression: Hang occurs when attempting to load search results at mapquest.com
2236
2237         * dom/EventTargetNode.cpp:
2238         (WebCore::EventTargetNode::dispatchGenericEvent): Don't allow
2239         "load" events to propagate up to the window. We need this quirk to
2240         avoid site hangs, because they depend on an old Mozilla bug.
2241
2242 2006-06-13  Antti Koivisto  <koivisto@iki.fi>
2243
2244         Reviewed by Hyatt.
2245
2246         http://bugzilla.opendarwin.org/show_bug.cgi?id=9314
2247         Relative positioned block size doesnt update root layer size
2248
2249         - take relative positioning into account in leftmost/rightmost/lowestPosition()
2250         - ignore zero width/height boxes in leftmost/rightmost/lowestPosition()
2251         - split relativePositionOffset() to x and y functions
2252         
2253         * rendering/RenderBox.cpp:
2254         (WebCore::RenderBox::absolutePosition):
2255         (WebCore::RenderBox::relativePositionOffsetX):
2256         (WebCore::RenderBox::relativePositionOffsetY):
2257         (WebCore::RenderBox::lowestPosition):
2258         (WebCore::RenderBox::rightmostPosition):
2259         (WebCore::RenderBox::leftmostPosition):
2260         * rendering/RenderBox.h:
2261         * rendering/RenderFlow.cpp:
2262         (WebCore::RenderFlow::lowestPosition):
2263         (WebCore::RenderFlow::rightmostPosition):
2264         (WebCore::RenderFlow::leftmostPosition):
2265         * rendering/RenderLayer.cpp:
2266         (WebCore::RenderLayer::updateLayerPosition):
2267         * rendering/RenderObject.cpp:
2268         (WebCore::RenderObject::offsetLeft):
2269         (WebCore::RenderObject::offsetTop):
2270
2271 2006-06-13  Anders Carlsson  <acarlsson@apple.com>
2272
2273         Reviewed by Dave Hyatt.
2274
2275         http://bugzilla.opendarwin.org/show_bug.cgi?id=9427
2276         xml-stylesheet processing instructions outside of the prolog should have no effect.
2277
2278         * dom/ProcessingInstruction.cpp:
2279         (WebCore::ProcessingInstruction::checkStyleSheet):
2280         Remove todo comment.
2281         
2282         * dom/xml_tokenizer.cpp:
2283         (WebCore::XMLTokenizer::processingInstruction):
2284         Only check for style sheet if the root element hasn't yet been encountered.
2285
2286 2006-06-13  Anders Carlsson  <acarlsson@apple.com>
2287
2288         Reviewed by Geoff.
2289
2290         http://bugzilla.opendarwin.org/show_bug.cgi?id=9406
2291         REGRESSION: fix for bug 9390 broke two layout tests
2292         
2293         * loader/PluginDocument.cpp:
2294         (WebCore::PluginTokenizer::writeRawData):
2295         Call finished() after setting up the document structure so we'll emit onload events.
2296
2297 2006-06-12  Geoffrey Garen  <ggaren@apple.com>
2298
2299         build fix -- forgot to svn add this file
2300         
2301         * ForwardingHeaders/kjs/SavedBuiltins.h: Added.
2302
2303 2006-06-12  Brady Eidson  <beidson@apple.com>
2304
2305         Reviewed by Maciej.
2306
2307         Fixed a bug in append(char) and append(UChar) where our intended copy-on-write semantics was ignored!
2308
2309         * platform/String.cpp:
2310         (WebCore::String::append):
2311
2312 2006-06-12  Geoffrey Garen  <ggaren@apple.com>
2313
2314         Reviewed by TimO, Maciej.
2315
2316         - WebCore part of merging InterpreterImp into Interpreter. No test
2317         because there's no behavior change.
2318         
2319         A substantive change here is that ScriptInterpreter::mark must now chain to
2320         Interpreter::mark, since Interpreter needs to mark the things that
2321         InterpreterImp used to mark.
2322         
2323         * WebCore.xcodeproj/project.pbxproj:
2324         * bindings/js/kjs_binding.cpp:
2325         * bindings/js/kjs_window.cpp:
2326         (KJS::Window::put):
2327         * bridge/mac/WebCoreFrameBridge.mm:
2328         * bridge/mac/WebCoreScriptDebugger.mm:
2329         (-[WebCoreScriptCallFrame evaluateWebScript:]):
2330         * kwq/KWQPageState.mm:
2331
2332 2006-06-12  Brady Eidson <beidson@apple.com>
2333
2334         Reviewed by Maciej.
2335
2336         Changed String::ascii() to return a Vector<char> instead of const char*
2337         This allows us to use it "regularly" as the returned vector will destruct
2338         and not leak memory like the previous approach.
2339         We can now do a String.ascii().data() to get a char* buffer instead of 
2340         String.deprecatedString().ascii().  It doesn't improve the style much but
2341         dumping the memory-leak issue is a plus.
2342
2343         * icon/IconDatabase.cpp:
2344         (WebCore::IconDatabase::open):
2345         (WebCore::IconDatabase::clearDatabase):
2346         * icon/SQLDatabase.cpp:
2347         (SQLDatabase::open):
2348         * icon/SQLStatement.cpp:
2349         (WebCore::SQLStatement::prepare):
2350         (WebCore::SQLStatement::step):
2351         (WebCore::SQLStatement::returnTextResults):
2352         (WebCore::SQLStatement::returnTextResults16):
2353         (WebCore::SQLStatement::returnIntResults):
2354         (WebCore::SQLStatement::returnInt64Results):
2355         (WebCore::SQLStatement::returnDoubleResults):
2356         In addition to the changes to the string classes, changed my database code over to the new
2357         preferred method.
2358
2359         * platform/PlatformString.h:
2360         * platform/String.cpp:
2361         (WebCore::String::ascii):
2362         * platform/StringImpl.cpp:
2363         (WebCore::StringImpl::ascii):
2364         * platform/StringImpl.h:
2365
2366 2006-06-12  Dave Hyatt <hyatt@apple.com>
2367
2368         Add the notion of a selection foreground color to the engine for
2369         Win32.  Rename existing selectionColor methods to be
2370         selectionBackgroundColor instead.
2371
2372         Change the 60% alpha blend rule for transparent selection to
2373         instead be a range from 60-80%, with less transparency being
2374         used as needed to ensure the transformed color more closely
2375         approximates the original operating system color when blended
2376         with a white background.
2377
2378         Reviewed by mjs
2379
2380         * platform/Color.cpp:
2381         (WebCore::blend):
2382         (WebCore::Color::blendWithWhite):
2383         * platform/Color.h:
2384         * rendering/InlineTextBox.cpp:
2385         (WebCore::InlineTextBox::paint):
2386         (WebCore::InlineTextBox::paintSelection):
2387         * rendering/RenderBlock.cpp:
2388         (WebCore::RenderBlock::fillHorizontalSelectionGap):
2389         (WebCore::RenderBlock::fillVerticalSelectionGap):
2390         (WebCore::RenderBlock::fillLeftSelectionGap):
2391         (WebCore::RenderBlock::fillRightSelectionGap):
2392         * rendering/RenderHTMLCanvas.cpp:
2393         (WebCore::RenderHTMLCanvas::paint):
2394         * rendering/RenderImage.cpp:
2395         (WebCore::RenderImage::paint):
2396         * rendering/RenderListMarker.cpp:
2397         (WebCore::RenderListMarker::paint):
2398         * rendering/RenderObject.cpp:
2399         (WebCore::RenderObject::selectionBackgroundColor):
2400         (WebCore::RenderObject::selectionForegroundColor):
2401         * rendering/RenderObject.h:
2402         * rendering/RenderTheme.cpp:
2403         (WebCore::RenderTheme::activeSelectionBackgroundColor):
2404         (WebCore::RenderTheme::inactiveSelectionBackgroundColor):
2405         (WebCore::RenderTheme::platformActiveSelectionBackgroundColor):
2406         (WebCore::RenderTheme::platformInactiveSelectionBackgroundColor):
2407         (WebCore::RenderTheme::platformActiveSelectionForegroundColor):
2408         (WebCore::RenderTheme::platformInactiveSelectionForegroundColor):
2409         * rendering/RenderTheme.h:
2410         * rendering/RenderThemeMac.h:
2411         * rendering/RenderThemeMac.mm:
2412         (WebCore::RenderThemeMac::platformActiveSelectionBackgroundColor):
2413         (WebCore::RenderThemeMac::platformInactiveSelectionBackgroundColor):
2414         * rendering/RenderThemeWin.cpp:
2415         (WebCore::RenderThemeWin::platformActiveSelectionBackgroundColor):
2416         (WebCore::RenderThemeWin::platformInactiveSelectionBackgroundColor):
2417         (WebCore::RenderThemeWin::platformActiveSelectionForegroundColor):
2418         (WebCore::RenderThemeWin::platformInactiveSelectionForegroundColor):
2419         * rendering/RenderThemeWin.h:
2420         * rendering/RenderWidget.cpp:
2421         (WebCore::RenderWidget::paint):
2422
2423 2006-06-12  John Sullivan  <sullivan@apple.com>
2424
2425         Reviewed by Darin Adler.
2426         
2427         * page/Frame.cpp:
2428         (WebCore::Frame::markAllMatchesForText):
2429         Do a "fake" paint here so that the rectangles for the text matches will have been
2430         computed by the time this method returns.
2431
2432 2006-06-12  Brady Eidson  <beidson@apple.com>
2433
2434         Reviewed by Levi and Tim Omernick.
2435
2436         -Added a skeleton sqlite3 icon database file to IconDatabase
2437         -Added functionality to validate and recreate this icon.db file
2438         -Fixed some buggys in SQLDatabase.cpp
2439
2440         * icon/IconDatabase.cpp:
2441         (WebCore::IconDatabase::open):
2442         (WebCore::IconDatabase::isValidDatabase):
2443         (WebCore::IconDatabase::clearDatabase):
2444         (WebCore::IconDatabase::recreateDatabase):
2445         * icon/IconDatabase.h:
2446
2447         * icon/SQLStatement.cpp:
2448         (WebCore::SQLStatement::columnCount):
2449         (WebCore::SQLStatement::getColumnName):
2450         (WebCore::SQLStatement::getColumnName16):
2451         (WebCore::SQLStatement::getColumnText):
2452         (WebCore::SQLStatement::getColumnText16):
2453         (WebCore::SQLStatement::getColumnDouble):
2454         (WebCore::SQLStatement::getColumnInt):
2455         (WebCore::SQLStatement::getColumnInt64):
2456         (WebCore::SQLStatement::getColumnBlob):
2457         -Added checks to make sure we had a valid working sqlite3_statement as the sqlite3_*
2458         function calls weren't as error-tolerant as documentation advertised
2459         (maybe differences between the 3.3 docs I looked at and the 3.1.3 version installed on OSX)
2460
2461 2006-06-12  Brady Eidson  <beidson@apple.com>
2462
2463         Reviewed by Levi.
2464
2465         -Added SQLite helper wrappers to ease use of SQLite in the IconDatabase.  
2466         -Changed the base IconDatabase over to this new framework.
2467
2468         * WebCore.xcodeproj/project.pbxproj:
2469         * bridge/mac/WebCoreIconDatabaseBridge.mm:
2470         (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
2471             -By popular request, removed an annoying log message I'd accidentally left in
2472
2473         * icon/IconDatabase.cpp:
2474         (WebCore::IconDatabase::IconDatabase):
2475         (WebCore::IconDatabase::open):
2476         (WebCore::IconDatabase::close):
2477         (WebCore::IconDatabase::~IconDatabase):
2478         * icon/IconDatabase.h:
2479         (WebCore::IconDatabase::isOpen):
2480             -Changed over IconDatabase from direct sqlite3_* calls to the new SQLDatabase calls
2481
2482         * icon/SQLDatabase.cpp: Added.
2483         (SQLDatabase::SQLDatabase):
2484         (SQLDatabase::open):
2485         (SQLDatabase::close):
2486         (SQLDatabase::executeCommand):
2487         (SQLDatabase::tableExists):
2488         * icon/SQLDatabase.h: Added.
2489         (WebCore::SQLDatabase::isOpen):
2490         (WebCore::SQLDatabase::getPath):
2491         (WebCore::SQLDatabase::lastError):
2492         (WebCore::SQLDatabase::lastErrorMsg):
2493         (WebCore::SQLStatement::isPrepared):
2494         (WebCore::SQLStatement::lastError):
2495         (WebCore::SQLStatement::lastErrorMsg):
2496         * icon/SQLStatement.cpp: Added.
2497         (WebCore::SQLStatement::SQLStatement):
2498         (WebCore::SQLStatement::~SQLStatement):
2499         (WebCore::SQLStatement::prepare):
2500         (WebCore::SQLStatement::step):
2501         (WebCore::SQLStatement::finalize):
2502         (WebCore::SQLStatement::reset):
2503         (WebCore::SQLStatement::executeCommand):
2504         (WebCore::SQLStatement::bindBlob):
2505         (WebCore::SQLStatement::bindText):
2506         (WebCore::SQLStatement::columnCount):
2507         (WebCore::SQLStatement::getColumnName):
2508         (WebCore::SQLStatement::getColumnName16):
2509         (WebCore::SQLStatement::getColumnText):
2510         (WebCore::SQLStatement::getColumnText16):
2511         (WebCore::SQLStatement::getColumnDouble):
2512         (WebCore::SQLStatement::getColumnInt):
2513         (WebCore::SQLStatement::getColumnInt64):
2514         (WebCore::SQLStatement::getColumnBlob):
2515         (WebCore::SQLStatement::returnTextResults):
2516         (WebCore::SQLStatement::returnTextResults16):
2517         (WebCore::SQLStatement::returnIntResults):
2518         (WebCore::SQLStatement::returnInt64Results):
2519         (WebCore::SQLStatement::returnDoubleResults):
2520             -Initial checking of SQLDatabase framework
2521
2522         * platform/PlatformString.h:
2523         * platform/String.cpp:
2524         (WebCore::String::String):
2525             -Added an explicit UChar* constructor to our string class as much of sqlite3's UTF16 handling is based on 
2526             null-terminated UTF16 which we didn't yet support.
2527
2528 2006-06-11  David Kilzer  <ddkilzer@kilzer.net>
2529
2530         Reviewed by Maciej.
2531
2532         http://bugzilla.opendarwin.org/show_bug.cgi?id=9408
2533         Clean build fails with "make: *** No rule to make target `SVGElementFactory.cpp', needed by `all'. Stop"
2534
2535         * DerivedSources.make: Fix clean builds.
2536
2537 2006-06-11  Darin Adler  <darin@apple.com>
2538
2539         - another try at fixing Windows
2540
2541         * loader/CachedResource.h:
2542         * platform/cairo/GraphicsContextCairo.cpp:
2543         * platform/image-decoders/ImageDecoder.h:
2544         (WebCore::ImageDecoder::setData):
2545         * platform/image-decoders/gif/GIFImageDecoder.cpp:
2546         (WebCore::GIFImageDecoderPrivate::decode):
2547         (WebCore::GIFImageDecoder::setData):
2548         * platform/image-decoders/gif/GIFImageDecoder.h:
2549         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
2550         (WebCore::JPEGImageReader::decode):
2551         (WebCore::JPEGImageDecoder::setData):
2552         * platform/image-decoders/jpeg/JPEGImageDecoder.h:
2553         * platform/image-decoders/png/PNGImageDecoder.cpp:
2554         (WebCore::PNGImageReader::decode):
2555         (WebCore::PNGImageDecoder::setData):
2556         * platform/image-decoders/png/PNGImageDecoder.h:
2557         s/DeprecatedByteArray/Vector<char>/
2558
2559 2006-06-11  Darin Adler  <darin@apple.com>
2560
2561         - try to fix Windows build
2562
2563         * platform/cairo/ImageCairo.cpp: (WebCore::Image::loadResource):
2564         Use Vector<char> instead of DeprecatedByteArray.
2565
2566         * platform/win/TemporaryLinkStubs.cpp: (KWQServeSynchronousRequest):
2567         Don't try to return 0 from a function that returns a Vector<char>.
2568
2569 2006-06-11  Sam Weinig  <sam.weinig@gmail.com>
2570
2571         Reviewed by Hyatt, tweaked quite a bit and landed by Darin.
2572
2573         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8039
2574           Remove use of DeprecatedArray in favor of new Vector class
2575
2576         This removes most of the uses of DeprecatedArray and 
2577         DeprecatedByteArray, with the exception of DeprecatedCString.
2578
2579         No test cases added because there is no change in
2580         functionality.
2581
2582         * loader/CachedCSSStyleSheet.cpp:
2583         (WebCore::CachedCSSStyleSheet::data):
2584         * loader/CachedCSSStyleSheet.h:
2585         * loader/CachedImage.cpp:
2586         (WebCore::CachedImage::bufferData):
2587         (WebCore::CachedImage::data):
2588         (WebCore::CachedImage::checkNotify):
2589         (WebCore::CachedImage::shouldStopAnimation):
2590         * loader/CachedImage.h:
2591         * loader/CachedObject.cpp:
2592         (WebCore::CachedObject::bufferData):
2593         (WebCore::CachedObject::setExpireDate):
2594         * loader/CachedObject.h:
2595         (WebCore::CachedObject::setCharset):
2596         * loader/CachedScript.cpp:
2597         (WebCore::CachedScript::data):
2598         * loader/CachedScript.h:
2599         * loader/CachedXBLDocument.cpp:
2600         (WebCore::CachedXBLDocument::data):
2601         (WebCore::CachedXBLDocument::checkNotify):
2602         * loader/CachedXBLDocument.h:
2603         * loader/CachedXSLStyleSheet.cpp:
2604         (WebCore::CachedXSLStyleSheet::data):
2605         * loader/CachedXSLStyleSheet.h:
2606         * loader/Request.cpp:
2607         (WebCore::Request::Request):
2608         (WebCore::Request::~Request):
2609         * loader/Request.h:
2610         (WebCore::Request::buffer):
2611         (WebCore::Request::cachedObject):
2612         (WebCore::Request::docLoader):
2613         (WebCore::Request::isIncremental):
2614         (WebCore::Request::setIsIncremental):
2615         (WebCore::Request::isMultipart):
2616         (WebCore::Request::setIsMultipart):
2617         * loader/loader.cpp:
2618         (WebCore::crossDomain):
2619         (WebCore::Loader::Loader):
2620         (WebCore::Loader::load):
2621         (WebCore::Loader::servePendingRequests):
2622         (WebCore::Loader::receivedAllData):
2623         (WebCore::Loader::receivedResponse):
2624         (WebCore::Loader::receivedData):
2625         (WebCore::Loader::numRequests):
2626         (WebCore::Loader::cancelRequests):
2627         (WebCore::Loader::removeBackgroundDecodingRequest):
2628         (WebCore::Loader::jobForRequest):
2629         * platform/Image.cpp:
2630         (WebCore::Image::setData):
2631         * platform/Image.h:
2632         (WebCore::Image::dataBuffer):
2633
2634         * css/cssstyleselector.cpp:
2635         (WebCore::CSSStyleSelector::init):
2636         (WebCore::CSSStyleSelector::matchRules):
2637         (WebCore::CSSStyleSelector::matchRulesForList):
2638         (WebCore::CSSStyleSelector::sortMatchedRules):
2639         (WebCore::CSSStyleSelector::initForStyleResolve):
2640         (WebCore::CSSStyleSelector::createStyleForElement):
2641         (WebCore::CSSStyleSelector::createPseudoStyleForElement):
2642         * css/cssstyleselector.h:
2643         (WebCore::CSSStyleSelector::addMatchedRule):
2644         (WebCore::CSSStyleSelector::addMatchedDeclaration):
2645         * dom/xml_tokenizer.cpp:
2646         (WebCore::OffsetBuffer::OffsetBuffer):
2647         (WebCore::openFunc):
2648         * html/HTMLOptionElement.cpp:
2649         (WebCore::HTMLOptionElement::index):
2650         * html/HTMLSelectElement.cpp:
2651         (WebCore::HTMLSelectElement::selectedIndex):
2652         (WebCore::HTMLSelectElement::setSelectedIndex):
2653         (WebCore::HTMLSelectElement::length):
2654         (WebCore::HTMLSelectElement::remove):
2655         (WebCore::HTMLSelectElement::value):
2656         (WebCore::HTMLSelectElement::setValue):
2657         (WebCore::HTMLSelectElement::state):
2658         (WebCore::HTMLSelectElement::restoreState):
2659         (WebCore::HTMLSelectElement::appendFormData):
2660         (WebCore::HTMLSelectElement::optionToListIndex):
2661         (WebCore::HTMLSelectElement::listToOptionIndex):
2662         (WebCore::HTMLSelectElement::recalcListItems):
2663         (WebCore::HTMLSelectElement::reset):
2664         (WebCore::HTMLSelectElement::notifyOptionSelected):
2665         * html/HTMLSelectElement.h:
2666         (WebCore::HTMLSelectElement::listItems):
2667         * kwq/KWQLoader.h:
2668         * kwq/KWQLoader.mm:
2669         (KWQServeSynchronousRequest):
2670         * kwq/KWQTextStream.cpp:
2671         (QTextStream::operator<<):
2672         * kwq/KWQTextStream.h:
2673         * loader/FormData.cpp:
2674         (WebCore::FormData::flatten):
2675         (WebCore::FormData::flattenToString):
2676         * loader/FormData.h:
2677         (WebCore::FormDataElement::FormDataElement):
2678         * platform/DeprecatedString.cpp:
2679         * platform/DeprecatedString.h:
2680         * platform/IntPointArray.cpp: Removed.
2681         * platform/IntPointArray.h: Removed.
2682         * platform/TextEncoding.cpp:
2683         (WebCore::TextEncoding::toUnicode):
2684         * platform/TextEncoding.h:
2685         * platform/cairo/pixman/src/pixregion.c:
2686         * platform/cg/PathCG.cpp:
2687         (WebCore::Path::Path):
2688         * rendering/RenderObject.cpp:
2689         (WebCore::RenderObject::drawBorder):
2690         * rendering/RenderTable.h:
2691         (WebCore::RenderTable::colToEffCol):
2692         (WebCore::RenderTable::effColToCol):
2693         * rendering/RenderTableSection.cpp:
2694         (WebCore::RenderTableSection::ensureRows):
2695         (WebCore::RenderTableSection::addCell):
2696         (WebCore::RenderTableSection::setCellWidths):
2697         * rendering/RenderTableSection.h:
2698         * rendering/bidi.cpp:
2699         (WebCore::addMidpoint):
2700         (WebCore::RenderBlock::layoutInlineChildren):
2701         * rendering/render_form.cpp:
2702         (WebCore::RenderSelect::updateFromElement):
2703         (WebCore::RenderSelect::layout):
2704         (WebCore::RenderSelect::valueChanged):
2705         (WebCore::RenderSelect::selectionChanged):
2706         (WebCore::RenderSelect::updateSelection):
2707         * rendering/table_layout.cpp:
2708         (WebCore::FixedTableLayout::layout):
2709         * rendering/table_layout.h:
2710         * xml/XSLTProcessor.cpp:
2711         (WebCore::docLoaderFunc):
2712         * xml/xmlhttprequest.cpp:
2713         (WebCore::XMLHttpRequest::send):
2714         (WebCore::XMLHttpRequest::processSyncLoadResults):
2715         * xml/xmlhttprequest.h:
2716
2717 2006-06-11  David Kilzer  <ddkilzer@kilzer.net>
2718
2719         Reviewed by darin.
2720
2721         http://bugzilla.opendarwin.org/show_bug.cgi?id=9394
2722         Fix no-SVG build
2723
2724         * DerivedSources.make: Removed tabs. Create empty SVGElementFactory.cpp on no-svg build.
2725         * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp: Added #if SVG_SUPPORT/#endif.
2726         * ksvg2/bindings/js/JSSVGElementWrapperFactory.h: Ditto.
2727         * ksvg2/bindings/idl/svg/SVGAElement.idl: Add "Conditional=SVG" to all interfaces.
2728         * ksvg2/bindings/idl/svg/SVGAnimateColorElement.idl: Ditto.
2729         * ksvg2/bindings/idl/svg/SVGAnimateElement.idl: Ditto.
2730         * ksvg2/bindings/idl/svg/SVGAnimateTransformElement.idl: Ditto.
2731         * ksvg2/bindings/idl/svg/SVGAnimatedAngle.idl: Ditto.
2732         * ksvg2/bindings/idl/svg/SVGAnimatedBoolean.idl: Ditto.
2733         * ksvg2/bindings/idl/svg/SVGAnimatedEnumeration.idl: Ditto.
2734         * ksvg2/bindings/idl/svg/SVGAnimatedInteger.idl: Ditto.
2735         * ksvg2/bindings/idl/svg/SVGAnimatedLengthList.idl: Ditto.
2736         * ksvg2/bindings/idl/svg/SVGAnimatedNumber.idl: Ditto.
2737         * ksvg2/bindings/idl/svg/SVGAnimatedNumberList.idl: Ditto.
2738         * ksvg2/bindings/idl/svg/SVGAnimatedPathData.idl: Ditto.
2739         * ksvg2/bindings/idl/svg/SVGAnimatedPoints.idl: Ditto.
2740         * ksvg2/bindings/idl/svg/SVGAnimatedPreserveAspectRatio.idl: Ditto.
2741         * ksvg2/bindings/idl/svg/SVGAnimatedRect.idl: Ditto.
2742         * ksvg2/bindings/idl/svg/SVGAnimatedString.idl: Ditto.
2743         * ksvg2/bindings/idl/svg/SVGAnimatedTransformList.idl: Ditto.
2744         * ksvg2/bindings/idl/svg/SVGAnimationElement.idl: Ditto.
2745         * ksvg2/bindings/idl/svg/SVGCircleElement.idl: Ditto.
2746         * ksvg2/bindings/idl/svg/SVGClipPathElement.idl: Ditto.
2747         * ksvg2/bindings/idl/svg/SVGComponentTransferFunctionElement.idl: Ditto.
2748         * ksvg2/bindings/idl/svg/SVGCursorElement.idl: Ditto.
2749         * ksvg2/bindings/idl/svg/SVGDOMImplementation.idl: Ditto.
2750         * ksvg2/bindings/idl/svg/SVGDefsElement.idl: Ditto.
2751         * ksvg2/bindings/idl/svg/SVGDescElement.idl: Ditto.
2752         * ksvg2/bindings/idl/svg/SVGElementInstance.idl: Ditto.
2753         * ksvg2/bindings/idl/svg/SVGElementInstanceList.idl: Ditto.
2754         * ksvg2/bindings/idl/svg/SVGEllipseElement.idl: Ditto.
2755         * ksvg2/bindings/idl/svg/SVGEvent.idl: Ditto.
2756         * ksvg2/bindings/idl/svg/SVGException.idl: Ditto.
2757         * ksvg2/bindings/idl/svg/SVGExternalResourcesRequired.idl: Ditto.
2758         * ksvg2/bindings/idl/svg/SVGFEBlendElement.idl: Ditto.
2759         * ksvg2/bindings/idl/svg/SVGFEColorMatrixElement.idl: Ditto.
2760         * ksvg2/bindings/idl/svg/SVGFEComponentTransferElement.idl: Ditto.
2761         * ksvg2/bindings/idl/svg/SVGFECompositeElement.idl: Ditto.
2762         * ksvg2/bindings/idl/svg/SVGFEFloodElement.idl: Ditto.
2763         * ksvg2/bindings/idl/svg/SVGFEFuncAElement.idl: Ditto.
2764         * ksvg2/bindings/idl/svg/SVGFEFuncBElement.idl: Ditto.
2765         * ksvg2/bindings/idl/svg/SVGFEFuncGElement.idl: Ditto.
2766         * ksvg2/bindings/idl/svg/SVGFEFuncRElement.idl: Ditto.
2767         * ksvg2/bindings/idl/svg/SVGFEGaussianBlurElement.idl: Ditto.
2768         * ksvg2/bindings/idl/svg/SVGFEImageElement.idl: Ditto.
2769         * ksvg2/bindings/idl/svg/SVGFEMergeElement.idl: Ditto.
2770         * ksvg2/bindings/idl/svg/SVGFEMergeNodeElement.idl: Ditto.
2771         * ksvg2/bindings/idl/svg/SVGFEOffsetElement.idl: Ditto.
2772         * ksvg2/bindings/idl/svg/SVGFETileElement.idl: Ditto.
2773         * ksvg2/bindings/idl/svg/SVGFETurbulenceElement.idl: Ditto.
2774         * ksvg2/bindings/idl/svg/SVGFilterElement.idl: Ditto.
2775         * ksvg2/bindings/idl/svg/SVGFilterPrimitiveStandardAttributes.idl: Ditto.
2776         * ksvg2/bindings/idl/svg/SVGFitToViewBox.idl: Ditto.
2777         * ksvg2/bindings/idl/svg/SVGGElement.idl: Ditto.
2778         * ksvg2/bindings/idl/svg/SVGGradientElement.idl: Ditto.
2779         * ksvg2/bindings/idl/svg/SVGICCColor.idl: Ditto.
2780         * ksvg2/bindings/idl/svg/SVGImageElement.idl: Ditto.
2781         * ksvg2/bindings/idl/svg/SVGLangSpace.idl: Ditto.
2782         * ksvg2/bindings/idl/svg/SVGLengthList.idl: Ditto.
2783         * ksvg2/bindings/idl/svg/SVGLineElement.idl: Ditto.
2784         * ksvg2/bindings/idl/svg/SVGLinearGradientElement.idl: Ditto.
2785         * ksvg2/bindings/idl/svg/SVGLocatable.idl: Ditto.
2786         * ksvg2/bindings/idl/svg/SVGMarkerElement.idl: Ditto.
2787         * ksvg2/bindings/idl/svg/SVGNumberList.idl: Ditto.
2788         * ksvg2/bindings/idl/svg/SVGPaint.idl: Ditto.
2789         * ksvg2/bindings/idl/svg/SVGPathElement.idl: Ditto.
2790         * ksvg2/bindings/idl/svg/SVGPathSeg.idl: Ditto.
2791         * ksvg2/bindings/idl/svg/SVGPathSegArc.idl: Ditto.
2792         * ksvg2/bindings/idl/svg/SVGPathSegClosePath.idl: Ditto.
2793         * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubic.idl: Ditto.
2794         * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubicSmooth.idl: Ditto.
2795         * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadratic.idl: Ditto.
2796         * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadraticSmooth.idl: Ditto.
2797         * ksvg2/bindings/idl/svg/SVGPathSegLineto.idl: Ditto.
2798         * ksvg2/bindings/idl/svg/SVGPathSegLinetoHorizontal.idl: Ditto.
2799         * ksvg2/bindings/idl/svg/SVGPathSegLinetoVertical.idl: Ditto.
2800         * ksvg2/bindings/idl/svg/SVGPathSegList.idl: Ditto.
2801         * ksvg2/bindings/idl/svg/SVGPathSegMoveto.idl: Ditto.
2802         * ksvg2/bindings/idl/svg/SVGPatternElement.idl: Ditto.
2803         * ksvg2/bindings/idl/svg/SVGPointList.idl: Ditto.
2804         * ksvg2/bindings/idl/svg/SVGPolygonElement.idl: Ditto.
2805         * ksvg2/bindings/idl/svg/SVGPolylineElement.idl: Ditto.
2806         * ksvg2/bindings/idl/svg/SVGPreserveAspectRatio.idl: Ditto.
2807         * ksvg2/bindings/idl/svg/SVGRadialGradientElement.idl: Ditto.
2808         * ksvg2/bindings/idl/svg/SVGRectElement.idl: Ditto.
2809         * ksvg2/bindings/idl/svg/SVGRenderingIntent.idl: Ditto.
2810         * ksvg2/bindings/idl/svg/SVGScriptElement.idl: Ditto.
2811         * ksvg2/bindings/idl/svg/SVGSetElement.idl: Ditto.
2812         * ksvg2/bindings/idl/svg/SVGStopElement.idl: Ditto.
2813         * ksvg2/bindings/idl/svg/SVGStringList.idl: Ditto.
2814         * ksvg2/bindings/idl/svg/SVGStylable.idl: Ditto.
2815         * ksvg2/bindings/idl/svg/SVGStyleElement.idl: Ditto.
2816         * ksvg2/bindings/idl/svg/SVGSwitchElement.idl: Ditto.
2817         * ksvg2/bindings/idl/svg/SVGSymbolElement.idl: Ditto.
2818         * ksvg2/bindings/idl/svg/SVGTSpanElement.idl: Ditto.
2819         * ksvg2/bindings/idl/svg/SVGTests.idl: Ditto.
2820         * ksvg2/bindings/idl/svg/SVGTextContentElement.idl: Ditto.
2821         * ksvg2/bindings/idl/svg/SVGTextElement.idl: Ditto.
2822         * ksvg2/bindings/idl/svg/SVGTextPositioningElement.idl: Ditto.
2823         * ksvg2/bindings/idl/svg/SVGTitleElement.idl: Ditto.
2824         * ksvg2/bindings/idl/svg/SVGTransformList.idl: Ditto.
2825         * ksvg2/bindings/idl/svg/SVGTransformable.idl: Ditto.
2826         * ksvg2/bindings/idl/svg/SVGURIReference.idl: Ditto.
2827         * ksvg2/bindings/idl/svg/SVGUnitTypes.idl: Ditto.
2828         * ksvg2/bindings/idl/svg/SVGUseElement.idl: Ditto.
2829         * ksvg2/bindings/idl/svg/SVGViewElement.idl: Ditto.
2830         * ksvg2/bindings/idl/svg/SVGZoomAndPan.idl: Ditto.
2831         * ksvg2/bindings/idl/svg/SVGZoomEvent.idl: Ditto.
2832         * ksvg2/svg/SVGAngle.idl: Ditto.
2833         * ksvg2/svg/SVGAnimatedLength.idl: Ditto.
2834         * ksvg2/svg/SVGColor.idl: Ditto.
2835         * ksvg2/svg/SVGDocument.idl: Ditto.
2836         * ksvg2/svg/SVGElement.idl: Ditto.
2837         * ksvg2/svg/SVGEvent.idl: Ditto.
2838         * ksvg2/svg/SVGLength.idl: Ditto.
2839         * ksvg2/svg/SVGMatrix.idl: Ditto.
2840         * ksvg2/svg/SVGNumber.idl: Ditto.
2841         * ksvg2/svg/SVGPoint.idl: Ditto.
2842         * ksvg2/svg/SVGRect.idl: Ditto.
2843         * ksvg2/svg/SVGSVGElement.idl: Ditto.
2844         * ksvg2/svg/SVGTransform.idl: Ditto.
2845
2846 2006-06-11  Anders Carlsson  <acarlsson@apple.com>
2847
2848         Reviewed by Geoff.
2849
2850         http://bugzilla.opendarwin.org/show_bug.cgi?id=9390
2851         Move full-frame plugins to WebCore
2852         
2853         * WebCore.vcproj/WebCore/WebCore.vcproj:
2854         * WebCore.xcodeproj/project.pbxproj:
2855         Add PluginDocument
2856         
2857         * bridge/mac/FrameMac.h:
2858         * bridge/mac/FrameMac.mm:
2859         (WebCore::FrameMac::redirectDataToPlugin):
2860         Call the bridge.
2861         
2862         * bridge/mac/WebCoreFrameBridge.h:
2863         * bridge/mac/WebCoreFrameBridge.mm:
2864         Add redirectDataToPlugin which is used to redirect incoming data
2865         to a plugin.
2866         
2867         * bridge/mac/WebCoreViewFactory.h:
2868         Add pluginSupportsMIMEType which returns whether any plugins support a given MIME type.
2869         
2870         * dom/DOMImplementation.cpp:
2871         * dom/DOMImplementation.h:
2872         Get rid of createTextDocument and just create a text document explicitly when needed.
2873         
2874         * dom/Document.h:
2875         (WebCore::Document::isPluginDocument):
2876         * loader/PluginDocument.cpp: Added.
2877         (WebCore::PluginTokenizer::PluginTokenizer):
2878         (WebCore::PluginTokenizer::wantsRawData):
2879         (WebCore::PluginTokenizer::write):
2880         (WebCore::PluginTokenizer::createDocumentStructure):
2881         (WebCore::PluginTokenizer::writeRawData):
2882         (WebCore::PluginTokenizer::stopParsing):
2883         (WebCore::PluginTokenizer::finish):
2884         (WebCore::PluginTokenizer::isWaitingForScripts):
2885         (WebCore::PluginDocument::PluginDocument):
2886         (WebCore::PluginDocument::createTokenizer):
2887         * loader/PluginDocument.h: Added.
2888         (WebCore::PluginDocument::isPluginDocument):
2889         Add PluginDocument.
2890         
2891         * page/Frame.cpp:
2892         (WebCore::Frame::begin):
2893         Possibly create a plugin document.
2894         
2895         * page/Frame.h:
2896         (WebCore::Frame::redirectDataToPlugin):
2897         Add declaration.
2898         
2899         * platform/PlugInInfoStore.h:
2900         * platform/mac/PlugInInfoStoreMac.mm:
2901         (WebCore::PlugInInfoStore::supportsMIMEType):
2902         Ask WebCoreViewFactory if the MIME type is supported.
2903
2904 2006-06-10  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2905
2906         Reviewed by hyatt.
2907
2908         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9334
2909           Incomplete repaint when changing block from non-positioned to positioned
2910
2911         Test: fast/repaint/static-to-positioned.html
2912
2913         * rendering/RenderObject.cpp:
2914         (WebCore::RenderObject::setStyle): If changing from static to positioned, repaint
2915         as static.
2916
2917 2006-06-10  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2918
2919         Reviewed by hyatt.
2920
2921         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9193
2922           REGRESSION: setting an opacity on an element with an outline causes the outline to disappear completely
2923
2924         Test: fast/layers/opacity-outline.html
2925
2926         - fix repainting of layer children's outlines that extend beyond the layer
2927
2928         Test: fast/repaint/layer-child-outline.html
2929
2930         * rendering/RenderLayer.cpp:
2931         (WebCore::RenderLayer::intersectsDamageRect): Account for outlines.
2932         (WebCore::RenderLayer::absoluteBoundingBox): Ditto.
2933         * rendering/RenderObject.cpp:
2934         (WebCore::RenderObject::maximalOutlineSize): Changed to return the view's maximal
2935         outline size rather than 0 for PaintPhaseChildOutlines.
2936
2937 2006-06-10  Steve Falkenburg  <sfalken@apple.com>
2938
2939         Fix build break
2940
2941         * platform/cairo/GraphicsContextCairo.cpp:
2942         * platform/win/TemporaryLinkStubs.cpp:
2943         (GraphicsContext::scale):
2944
2945 2006-06-10  Geoffrey Garen  <ggaren@apple.com>
2946
2947         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8515
2948         Linux porting compile bug
2949         
2950         Fix by Mike Emmel, Reviewed by Darin.
2951
2952         * Projects/gdk/webcore-gdk.bkl:
2953         * WebCoreSources.bkl:
2954         * css/maketokenizer:
2955         * html/HTMLCanvasElement.cpp:
2956         * html/HTMLImageElement.h:
2957         * icon/IconDatabase.cpp:
2958         * make-generated-sources.sh:
2959         * page/Frame.h:
2960         * page/FramePrivate.h:
2961         * platform/Cursor.h:
2962         * platform/FontData.h:
2963         (WebCore::FontData::getGlyphIndex):
2964         * platform/GlyphBuffer.h:
2965         (WebCore::GlyphBuffer::glyphAt):
2966         (WebCore::GlyphBuffer::advanceAt):
2967         (WebCore::GlyphBuffer::add):
2968         * platform/GraphicsContext.h:
2969         * platform/PlatformKeyboardEvent.h:
2970         * platform/PlatformMouseEvent.h:
2971         * platform/PlatformWheelEvent.h:
2972         * platform/ScrollView.h:
2973         * platform/TransferJob.h:
2974         (WebCore::TransferJob::getInternal):
2975         * platform/TransferJobInternal.h:
2976         (WebCore::TransferJobInternal::TransferJobInternal):
2977         * platform/Widget.h:
2978         * platform/cairo/GraphicsContextCairo.cpp:
2979         (WebCore::GraphicsContext::GraphicsContext):
2980         (WebCore::GraphicsContext::roundToDevicePixels):
2981         * webcore-base.bkl:
2982         * xpath/impl/XPathValue.cpp:
2983
2984 2006-06-09  John Sullivan  <sullivan@apple.com>
2985
2986         Reviewed by Tim Omernick and Dave Hyatt.
2987
2988         WebCore support for computing but not highlighting rects for text matches.
2989
2990         * dom/Document.h:
2991         added setRenderedRectForMarker() and renderedRectsForMarkers(), and redefined
2992         MarkerMap to be a hashtable of node -> (pair of vectors), one vector of markers
2993         and one vector of rects
2994         
2995         * dom/Document.cpp:
2996         (placeholderRectForMarker()):
2997         new function, returns a recognizable degenerate rect used until a real rect has been set
2998         (WebCore::Document::addMarker):
2999         Reworked for new MarkerMap data structure; now adds parallel placeholder rect
3000         along with marker
3001         (WebCore::Document::copyMarkers):
3002         Reworked for new MarkerMap data structure
3003         (WebCore::Document::removeMarkers):
3004         Reworked for new MarkerMap data structure; now removed corresponding rect along
3005         with marker
3006         (WebCore::Document::markersForNode):
3007         Reworked for new MarkerMap data structure
3008         (WebCore::Document::renderedRectsForMarkers):
3009         New method, returns an array of all non-placeholder rects for the given marker type
3010         (WebCore::Document::repaintMarkers):
3011         Reworked for new MarkerMap data structure
3012         (WebCore::Document::setRenderedRectForMarker):
3013         New method, sets the rendered rect for a given marker
3014         (WebCore::Document::shiftMarkers):
3015         Reworked for new MarkerMap data structure; resets rendered rects to placeholders.
3016         
3017         * rendering/InlineTextBox.cpp:
3018         (WebCore::InlineTextBox::paint):
3019         removed markedTextMatchesAreHighlighted guard; we always want to call paintTextMatchMarker
3020         now, but sometimes we will end up only computing the rect, not actually highlighting it.
3021         (Maybe some names should be improved here?)
3022         (WebCore::InlineTextBox::paintTextMatchMarker):
3023         Reorganized to move all the code that actually draws into a block that's guarded by
3024         markedTextMatchesAreHighlighted. The rest of the code computes where the highlight will
3025         go, and now we always use that computation in order to call setRenderedRectForMarker.
3026
3027         * bridge/mac/WebCoreFrameBridge.h:
3028         * bridge/mac/WebCoreFrameBridge.mm:
3029         (-[WebCoreFrameBridge rectsForTextMatches]):
3030         New method, returns an array of NSValues representing NSRects. Gets them
3031         from Document::renderedRectsForMarkers
3032         
3033 2006-06-10  Anders Carlsson  <acarlsson@apple.com>
3034
3035         Reviewed by Eric.
3036
3037         * bindings/js/kjs_html.cpp:
3038         (KJS::JSHTMLElement::put):
3039         Call WebCore::JSHTMLElement::put so that autogenerated setters will work 
3040         for HTMLElement.
3041
3042 2006-06-09  Geoffrey Garen  <ggaren@apple.com>
3043
3044         - Build fix after last JSC check-in (oops!)
3045         
3046         * bridge/mac/WebCoreScriptDebugger.mm:
3047         (-[WebCoreScriptCallFrame scopeChain]):
3048         (-[WebCoreScriptCallFrame functionName]):
3049         (-[WebCoreScriptCallFrame evaluateWebScript:]):
3050
3051 2006-06-09  David Hyatt  <hyatt@apple.com>
3052
3053         Rename m_isFocused on the frame to m_isActive, since it isn't really
3054         about focus but is instead about whether or not the top-level window is
3055         active.
3056
3057         Pull code that was incorrectly factored into Mac-only code out of FrameMac
3058         and back up into Frame.
3059
3060         Reviewed by andersca
3061
3062         * bridge/mac/FrameMac.h:
3063         * bridge/mac/FrameMac.mm:
3064         * page/Frame.cpp:
3065         (WebCore::Frame::setFocusNodeIfNeeded):
3066         (WebCore::Frame::isActive):
3067         (WebCore::Frame::setIsActive):
3068         * page/FramePrivate.h:
3069         (WebCore::FramePrivate::FramePrivate):
3070
3071 2006-06-09  David Hyatt  <hyatt@apple.com>
3072
3073         Rework selection coloring.  Rename displaysWithFocusAttributes
3074         to isActive.  Move the white-blending code onto the Color API to make
3075         it more convenient to mutate colors for selection blending.  Eliminate all
3076         the selection state from the GraphicsContext and move it to the RenderTheme.
3077         Implement both Win32 and Mac theme selection colors.
3078
3079         Reviewed by sfalken
3080
3081         * bridge/mac/FrameMac.h:
3082         * bridge/mac/FrameMac.mm:
3083         (WebCore::FrameMac::setIsActive):
3084         * bridge/mac/WebCoreFrameBridge.h:
3085         * bridge/mac/WebCoreFrameBridge.mm:
3086         (-[WebCoreFrameBridge drawRect:]):
3087         (-[WebCoreFrameBridge setIsActive:]):
3088         (-[WebCoreFrameBridge selectionColor]):
3089         * css/cssstyleselector.cpp:
3090         (WebCore::CSSStyleSelector::checkOneSelector):
3091         * page/Frame.cpp:
3092         (WebCore::Frame::isActive):
3093         (WebCore::Frame::setIsActive):
3094         * page/Frame.h:
3095         * platform/Color.cpp:
3096         (WebCore::blend):
3097         (WebCore::Color::blendWithWhite):
3098         * platform/Color.h:
3099         (WebCore::Color::hasAlpha):
3100         * platform/GraphicsContext.cpp:
3101         (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
3102         * platform/GraphicsContext.h:
3103         * platform/mac/GraphicsContextMac.mm:
3104         * platform/win/TemporaryLinkStubs.cpp:
3105         (GraphicsContext::endTransparencyLayer):
3106         * rendering/InlineTextBox.cpp:
3107         (WebCore::InlineTextBox::paintSelection):
3108         * rendering/RenderBlock.cpp:
3109         (WebCore::RenderBlock::fillHorizontalSelectionGap):
3110         (WebCore::RenderBlock::fillVerticalSelectionGap):
3111         (WebCore::RenderBlock::fillLeftSelectionGap):
3112         (WebCore::RenderBlock::fillRightSelectionGap):
3113         * rendering/RenderHTMLCanvas.cpp:
3114         (WebCore::RenderHTMLCanvas::paint):
3115         * rendering/RenderImage.cpp:
3116         (WebCore::RenderImage::paint):
3117         * rendering/RenderListMarker.cpp:
3118         (WebCore::RenderListMarker::paint):
3119         * rendering/RenderListMarker.h:
3120         * rendering/RenderObject.cpp:
3121         (WebCore::RenderObject::selectionColor):
3122         * rendering/RenderObject.h:
3123         * rendering/RenderReplaced.cpp:
3124         * rendering/RenderReplaced.h:
3125         * rendering/RenderTheme.cpp:
3126         (WebCore::RenderTheme::activeSelectionColor):
3127         (WebCore::RenderTheme::inactiveSelectionColor):
3128         (WebCore::RenderTheme::platformActiveSelectionColor):
3129         (WebCore::RenderTheme::platformInactiveSelectionColor):
3130         * rendering/RenderTheme.h:
3131         * rendering/RenderThemeMac.h:
3132         * rendering/RenderThemeMac.mm:
3133         (WebCore::RenderThemeMac::platformActiveSelectionColor):
3134         (WebCore::RenderThemeMac::platformInactiveSelectionColor):
3135         * rendering/RenderThemeWin.cpp:
3136         (WebCore::RenderThemeWin::platformActiveSelectionColor):
3137         (WebCore::RenderThemeWin::platformInactiveSelectionColor):
3138         * rendering/RenderThemeWin.h:
3139         * rendering/RenderWidget.cpp:
3140         (WebCore::RenderWidget::paint):
3141
3142 2006-06-09  Justin Garcia  <justin.garcia@apple.com>
3143
3144         Reviewed by levi
3145         
3146         <rdar://problem/4549980>
3147         REGRESSION: "Find Again" can get stuck when searching for string with a trailing space
3148
3149         * bridge/mac/FrameMac.h: Moved findString to Frame.
3150         * bridge/mac/FrameMac.mm: Ditto.
3151         * bridge/mac/WebCoreFrameBridge.mm:
3152         (-[WebCoreFrameBridge searchFor:direction:caseSensitive:wrap:]): 
3153         Convert the NSString to a String.
3154         * editing/JSEditor.cpp: Added execCommand(FindString, ...)
3155         * editing/Selection.cpp: Added a constructor for Ranges
3156         (WebCore::Selection::Selection): 
3157         * editing/Selection.h:
3158         * page/Frame.cpp:
3159         (WebCore::Frame::findString): Moved from FrameMac.  Compare a selection created 
3160         using the found range with the current selection in case the current selection is
3161         the found range minus some collapsed whitespace on the edges.
3162         * page/Frame.h:
3163
3164 2006-06-09  Steve Falkenburg  <sfalken@apple.com>
3165
3166         Fix build break
3167
3168         * WebCore.vcproj/WebCore/WebCore.vcproj:
3169         * css/MediaQueryEvaluator.cpp:
3170         * platform/win/TemporaryLinkStubs.cpp:
3171         (GraphicsContext::addRoundedRectClip):
3172         (GraphicsContext::addInnerRoundedRectClip):
3173         (WebCore::screenDepthPerComponent):
3174         (WebCore::screenIsMonochrome):
3175
3176 2006-06-09  Kimmo Kinnunen  <kimmo.t.kinnunen@nokia.com>
3177
3178         Reviewed by Hyatt. Tweaked by Maciej. Tweaks reviewed by Beth. 
3179         Landed by Beth.
3180
3181         CSS3 Media Queries implementation.
3182         <http://bugzilla.opendarwin.org/show_bug.cgi?id=4127>
3183
3184         * WebCore.xcodeproj/project.pbxproj:
3185         * bindings/js/kjs_css.cpp:
3186         (KJS::DOMMediaList::put):
3187         (KJS::KJS::DOMMediaListProtoFunc::callAsFunction):
3188         * bindings/objc/DOMCSS.mm:
3189         (-[DOMMediaList setMediaText:]):
3190         (-[DOMMediaList deleteMedium:]):
3191         (-[DOMMediaList appendMedium:]):
3192         * css/CSSGrammar.y:
3193         * css/MediaFeatureNames.cpp: Added.
3194         (WebCore::MediaFeatureNames::init):
3195         * css/MediaFeatureNames.h: Added.
3196         * css/MediaList.cpp:
3197         (WebCore::MediaList::MediaList):
3198         (WebCore::MediaList::~MediaList):
3199         (WebCore::parseMediaDescriptor):
3200         (WebCore::MediaList::deleteMedium):
3201         (WebCore::MediaList::mediaText):
3202         (WebCore::MediaList::setMediaText):
3203         (WebCore::MediaList::item):
3204         (WebCore::MediaList::appendMedium):
3205         (WebCore::MediaList::appendMediaQuery):
3206         * css/MediaList.h:
3207         (WebCore::MediaList::MediaList):
3208         (WebCore::MediaList::length):
3209         (WebCore::MediaList::mediaQueries):
3210         * css/MediaQuery.cpp: Added.
3211         (WebCore::MediaQuery::MediaQuery):
3212         (WebCore::MediaQuery::~MediaQuery):
3213         (WebCore::MediaQuery::operator==):
3214         (WebCore::MediaQuery::cssText):
3215         * css/MediaQuery.h: Added.
3216         (WebCore::MediaQuery::):
3217         (WebCore::MediaQuery::restrictor):
3218         (WebCore::MediaQuery::expressions):
3219         (WebCore::MediaQuery::mediaType):
3220         (WebCore::MediaQuery::append):
3221         * css/MediaQueryEvaluator.cpp: Added.
3222         (WebCore::):
3223         (WebCore::MediaQueryEvaluator):
3224         (WebCore::MediaQueryEvaluator::~MediaQueryEvaluator):
3225         (WebCore::MediaQueryEvaluator::mediaTypeMatch):
3226         (WebCore::applyRestrictor):
3227         (WebCore::MediaQueryEvaluator::eval):
3228         (WebCore::parseAspectRatio):
3229         (WebCore::cmpvalue):
3230         (WebCore::numberValue):
3231         (WebCore::colorMediaFeatureEval):
3232         (WebCore::monochromeMediaFeatureEval):
3233         (WebCore::device_aspect_ratioMediaFeatureEval):
3234         (WebCore::gridMediaFeatureEval):
3235         (WebCore::device_heightMediaFeatureEval):
3236         (WebCore::device_widthMediaFeatureEval):
3237         (WebCore::heightMediaFeatureEval):
3238         (WebCore::widthMediaFeatureEval):
3239         (WebCore::min_colorMediaFeatureEval):
3240         (WebCore::max_colorMediaFeatureEval):
3241         (WebCore::min_monochromeMediaFeatureEval):
3242         (WebCore::max_monochromeMediaFeatureEval):
3243         (WebCore::min_device_aspect_ratioMediaFeatureEval):
3244         (WebCore::max_device_aspect_ratioMediaFeatureEval):
3245         (WebCore::min_heightMediaFeatureEval):
3246         (WebCore::max_heightMediaFeatureEval):
3247         (WebCore::min_widthMediaFeatureEval):
3248         (WebCore::max_widthMediaFeatureEval):
3249         (WebCore::min_device_heightMediaFeatureEval):
3250         (WebCore::max_device_heightMediaFeatureEval):
3251         (WebCore::min_device_widthMediaFeatureEval):
3252         (WebCore::max_device_widthMediaFeatureEval):
3253         (WebCore::createFunctionMap):
3254         * css/MediaQueryEvaluator.h: Added.
3255         * css/MediaQueryExp.cpp: Added.
3256         (WebCore::MediaQueryExp::MediaQueryExp):
3257         (WebCore::MediaQueryExp::~MediaQueryExp):
3258         * css/MediaQueryExp.h: Added.
3259         (WebCore::MediaQueryExp::mediaFeature):
3260         (WebCore::MediaQueryExp::value):
3261         (WebCore::MediaQueryExp::operator==):
3262         * css/StyleSheet.cpp:
3263         (WebCore::StyleSheet::setMedia):
3264         * css/cssparser.cpp:
3265         (WebCore::CSSParser::CSSParser):
3266         (WebCore::CSSParser::~CSSParser):
3267         (WebCore::CSSParser::setupParser):
3268         (WebCore::CSSParser::parseMediaQuery):
3269         (WebCore::CSSParser::createFloatingMediaQueryExp):
3270         (WebCore::CSSParser::sinkFloatingMediaQueryExp):
3271         (WebCore::CSSParser::createFloatingMediaQueryExpList):
3272         (WebCore::CSSParser::sinkFloatingMediaQueryExpList):
3273         (WebCore::CSSParser::createFloatingMediaQuery):
3274         (WebCore::CSSParser::sinkFloatingMediaQuery):
3275         * css/cssparser.h:
3276         * css/cssstyleselector.cpp:
3277         (WebCore::CSSStyleSelector::CSSStyleSelector):
3278         (WebCore::CSSStyleSelector::init):
3279         (WebCore::CSSStyleSelector::~CSSStyleSelector):
3280         (WebCore::CSSStyleSelector::loadDefaultStyle):
3281         (WebCore::CSSStyleSelector::matchUARules):
3282         (WebCore::CSSStyleSelector::styleForElement):
3283         (WebCore::CSSStyleSelector::pseudoStyleForElement):
3284         (WebCore::CSSStyleSelector::updateFont):
3285         (WebCore::CSSStyleSelector::cacheBorderAndBackground):
3286         (WebCore::CSSStyleSelector::styleRulesForElement):
3287         (WebCore::CSSRuleSet::addRulesFromSheet):
3288         * css/cssstyleselector.h:
3289         * css/maketokenizer:
3290         * css/tokenizer.flex:
3291         * dom/DOMImplementation.cpp:
3292         (WebCore::DOMImplementation::createCSSStyleSheet):
3293         * html/HTMLLinkElement.cpp:
3294         (WebCore::HTMLLinkElement::process):
3295         (WebCore::HTMLLinkElement::setStyleSheet):
3296         * html/HTMLStyleElement.cpp:
3297         (WebCore::HTMLStyleElement::childrenChanged):
3298         * ksvg2/svg/SVGDOMImplementation.cpp:
3299         (SVGDOMImplementation::createCSSStyleSheet):
3300         * ksvg2/svg/SVGStyleElement.cpp:
3301         (WebCore::SVGStyleElement::childrenChanged):
3302         * page/Frame.cpp:
3303         (WebCore::Frame::Frame):
3304         * platform/Screen.h:
3305         * platform/mac/ScreenMac.mm:
3306         (WebCore::screenDepthPerComponent):
3307         (WebCore::screenIsMonochrome):
3308
3309 2006-06-08  Levi Weintraub  <lweintraub@apple.com>
3310
3311         Reviewed by justin
3312         
3313         <http://bugzilla.opendarwin.org/show_bug.cgi?id=4468>
3314         Implement execCommand(Insert{Un}OrderedList)
3315
3316         * WebCore.xcodeproj/project.pbxproj: Added InsertListCommand.{h,cpp} to the project.
3317         * dom/Position.cpp:
3318         (WebCore::hasRenderedNonAnonymousDescendantsWithHeight): 
3319         Added. A block with height is only a candidate if this is false.  This should fix the problems
3320         getting carets into empty blocks.
3321         (WebCore::Position::inRenderedContent):
3322         * editing/AppendNodeCommand.cpp:
3323         (WebCore::AppendNodeCommand::doApply):
3324         * editing/CompositeEditCommand.cpp:
3325         (WebCore::hasARenderedDescendant):
3326         (WebCore::CompositeEditCommand::prune): A node can have DOM descendants that are rendered, yet
3327         have a renderer with no descendants.  Fixed the pruning rule to avoid removing a node like this.
3328         (WebCore::CompositeEditCommand::mergeIdenticalElements): Put the two elements next to
3329         each other if they aren't already, as a convenience.
3330         (WebCore::CompositeEditCommand::moveParagraph): Added code to preserve the current selection.
3331         (WebCore::CompositeEditCommand::moveParagraphs): Ditto. 
3332         * editing/CompositeEditCommand.h:
3333         * editing/DeleteSelectionCommand.cpp:
3334         (WebCore::DeleteSelectionCommand::initializeStartEnd): Expansion for special elements should
3335         continue to happen until it is no longer possible.
3336         (WebCore::DeleteSelectionCommand::handleGeneralDelete): The code to adjust the start node
3337         wouldn't always avoid removing the start block.
3338         * editing/InsertListCommand.cpp: Added.
3339         (WebCore::InsertListCommand::fixOrphanedListChild): Puts a list item that isn't inside a list
3340         into a list.
3341         (WebCore::InsertListCommand::InsertListCommand):
3342         (WebCore::InsertListCommand::modifyRange):
3343         (WebCore::InsertListCommand::doApply):
3344         * editing/InsertListCommand.h: Added.
3345         (WebCore::InsertListCommand::):
3346         * editing/InsertNodeBeforeCommand.cpp:
3347         (WebCore::InsertNodeBeforeCommand::doApply):
3348         * editing/InsertParagraphSeparatorCommand.cpp:
3349         * editing/JSEditor.cpp:
3350         * editing/TextIterator.cpp:
3351         (WebCore::TextIterator::advance): Don't handle a node if the end of the range used to create the 
3352         iterator ends at the start of that node.
3353         * editing/VisiblePosition.cpp:
3354         (WebCore::VisiblePosition::next):
3355         (WebCore::VisiblePosition::previous):
3356         * editing/VisiblePosition.h: 
3357         Added a parameter to next/previous that can prevent them from leaving the current editable region.
3358         * editing/htmlediting.cpp:
3359         (WebCore::highestAncestor):
3360         (WebCore::enclosingList):
3361         (WebCore::enclosingListChild):
3362         (WebCore::outermostEnclosingList):
3363         (WebCore::createListItemElement):
3364         * editing/htmlediting.h:
3365         * page/Frame.cpp:
3366         (WebCore::Frame::selectionListState): Added.
3367         * page/Frame.h:
3368
3369 2006-06-08  David Harrison  <harrison@apple.com>
3370
3371         Reviewed by Geoff and John.
3372
3373         <rdar://problem/4558879> -[DOMCSSPrimitiveValue setStringValue:] throws an exception (12)
3374         
3375         Problem was the primitive value was getting reset to a generic state before the parameter
3376         check that relies on that state.
3377
3378         Test: fast/dom/setPrimitiveValue.html
3379
3380         * css/CSSPrimitiveValue.cpp:
3381         (WebCore::CSSPrimitiveValue::setFloatValue):
3382         (WebCore::CSSPrimitiveValue::setStringValue):
3383         Move parameter checks ahead of call to cleanup().
3384
3385 2006-06-08  Alice Liu  <alice.liu@apple.com>
3386
3387         Reviewed by justin.
3388
3389         - fixed <rdar://problem/4578115> support Range.isPointInRange
3390         - fixed <rdar://problem/4578123> support Range.comparePoint
3391
3392         * dom/Range.cpp:
3393         (WebCore::Range::isPointInRange):
3394         added implementation
3395         (WebCore::Range::comparePoint):
3396         added implementation
3397         * dom/Range.h:
3398         added prototypes
3399         * dom/Range.idl:
3400         added bindings
3401
3402 2006-06-08  Darin Adler  <darin@apple.com>
3403
3404         Reviewed by justin.
3405
3406         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8616
3407           REGRESSION: TinyMCE: Crash on Undo
3408
3409         * bridge/mac/WebCoreFrameBridge.mm:
3410         (-[WebCoreFrameBridge getInnerNonSharedNode:innerNode:URLElement:atPoint:allowShadowContent:]):
3411         Changed to call nodeInfoAtPoint directly.
3412         (-[WebCoreFrameBridge _visiblePositionForPoint:]): Changed to call nodeInfoAtPoint directly.
3413         Also added code to convert coordinates so it works for points that are in nodes in subframes.
3414
3415         * page/Frame.cpp:
3416         (WebCore::Frame::setMark): Added assertions to catch if we attempt to set selection
3417         endpoints in another document.
3418         (WebCore::Frame::setSelection): Ditto.
3419
3420 2006-06-07  Justin Garcia  <justin.garcia@apple.com>
3421
3422         Reviewed by levi
3423         
3424         Fixed some comments and removed an unused variable.
3425
3426         * editing/CompositeEditCommand.cpp:
3427         (WebCore::CompositeEditCommand::removeBlockPlaceholder):
3428         Don't remove a br if it isn't at the start of a block, since
3429         it isn't really a "block placeholder".
3430         * editing/DeleteSelectionCommand.cpp:
3431         (WebCore::DeleteSelectionCommand::initializePositionData):
3432         (WebCore::DeleteSelectionCommand::mergeParagraphs):
3433         (WebCore::DeleteSelectionCommand::doApply):
3434         * editing/InsertLineBreakCommand.cpp:
3435         (WebCore::InsertLineBreakCommand::doApply):
3436         * editing/ReplaceSelectionCommand.cpp:
3437         (WebCore::ReplaceSelectionCommand::doApply):
3438         (WebCore::ReplaceSelectionCommand::completeHTMLReplacement):
3439         * editing/htmlediting.cpp:
3440
3441 2006-06-07  David Hyatt  <hyatt@apple.com>
3442
3443         Add support for custom highlighting.  This is all ifdefed to be Mac-only.
3444
3445         Reviewed by justin
3446
3447         * WebCore.xcodeproj/project.pbxproj:
3448         * bridge/mac/FrameMac.h:
3449         * bridge/mac/FrameMac.mm:
3450         (WebCore::FrameMac::paintCustomHighlight):
3451         * bridge/mac/WebCoreFrameBridge.h:
3452         * platform/mac/ClipboardMac.h:
3453         * rendering/InlineTextBox.cpp:
3454         (WebCore::InlineTextBox::paint):
3455         (WebCore::InlineTextBox::paintCustomHighlight):
3456         * rendering/InlineTextBox.h:
3457
3458 2006-06-07  Adele Peterson  <adele@apple.com>
3459
3460         Reviewed by Hyatt 
3461
3462         Added support for cross-platform resize property.
3463
3464         * platform/PlatformMouseEvent.h: Removed isMouseButtonDown, since we
3465         already cache this info when we handle mouse down and mouse up.
3466         * platform/mac/MouseEventMac.mm: ditto.
3467         * platform/win/TemporaryLinkStubs.cpp: ditto.
3468
3469         * page/Frame.cpp:
3470         (WebCore::Frame::autoscrollTimerFired): Use d->m_bMousePressed instead of isMouseButtonDown.
3471         * page/FrameView.cpp:
3472         (WebCore::FrameView::handleMouseMoveEvent): Passes event to layer resize method.
3473         (WebCore::FrameView::mousePressed): Added.
3474         * page/FrameView.h: Added mousePressed.
3475
3476         * rendering/RenderTheme.h: Removed paintResizeControl.
3477         Since its not dependent on the theme, the layer can just paint this.
3478         * rendering/RenderTheme.cpp: ditto.
3479         * rendering/RenderLayer.cpp:
3480         (WebCore::RenderLayer::RenderLayer): Initializes m_resizeCornerImage.
3481         (WebCore::RenderLayer::~RenderLayer): Deletes m_resizeCornerImage.
3482         (WebCore::RenderLayer::resize): Uses passed in event instead of creating a new one.
3483         (WebCore::RenderLayer::paintResizeControl): Now loads and paints the resize image.
3484         * rendering/RenderLayer.h: Added m_resizeCornerImage.  Important to have one per-layer for when we allow
3485         more customization.
3486
3487         * platform/cairo/ImageCairo.cpp:
3488         (WebCore::Image::loadResource): Loads image resources.
3489
3490 2006-06-07  David Hyatt  <hyatt@apple.com>
3491
3492         Add support for a new property for custom highlighting.  This patch just
3493         adds support for the parsing of the property.  It doesn't do anything yet.
3494
3495         Reviewed by beth
3496
3497         * css/CSSComputedStyleDeclaration.cpp:
3498         (WebCore::):
3499         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3500         * css/CSSPropertyNames.in:
3501         * css/cssparser.cpp:
3502         (WebCore::CSSParser::parseValue):
3503         * css/cssstyleselector.cpp:
3504         (WebCore::CSSStyleSelector::applyProperty):
3505         * rendering/render_style.cpp:
3506         (WebCore::StyleCSS3InheritedData::StyleCSS3InheritedData):
3507         (WebCore::StyleCSS3InheritedData::operator==):
3508         (WebCore::RenderStyle::diff):
3509         * rendering/render_style.h:
3510         (WebCore::RenderStyle::highlight):
3511         (WebCore::RenderStyle::setHighlight):
3512         (WebCore::RenderStyle::initialHighlight):
3513
3514 2006-06-07  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3515
3516         Fix suggested by Rob Buis. Reviewed by Darin.
3517
3518         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9341
3519           REGRESSION: Repro crash caused by style="font:bold"
3520
3521         Test: fast/css/font-shorthand-weight-only.html
3522
3523         * css/cssparser.cpp: (WebCore::CSSParser::parseFont): Revert part of the change
3524         made to fix bug 5564.
3525
3526 2006-06-07  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3527
3528         Reviewed by Hyatt.
3529
3530         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9122
3531           REGRESSION: Incorrect vertical position for text fields in a "display: table" block
3532
3533         Test: fast/table/text-field-baseline.html
3534
3535         * rendering/RenderTableCell.cpp:
3536         (WebCore::RenderTableCell::baselinePosition): Do not descend into replaced objects, just
3537         use their baseline.
3538
3539 2006-06-07  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3540
3541         Reviewed by Hyatt (concept) and Darin (some coding details).
3542
3543         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4334
3544           REGRESSION: Flickering when css-hover should change opacity on floating elements
3545
3546         Pixel test: fast/block/float/nopaint-after-layer-destruction.html
3547
3548         * rendering/RenderBlock.cpp:
3549         (WebCore::RenderBlock::setPaintsFloatingObject): Added. Changes the noPaint flag
3550         in the block's FloatingObject for the given float and calls setChildNeedsLayout.
3551         * rendering/RenderBlock.h:
3552         * rendering/RenderBox.cpp:
3553         (WebCore::blockThatPaintsFloat): Added this helper function.
3554         (WebCore::RenderBox::setStyle): Added. Calls to setPaintsFloatingObject when a float