8d22c304307ba755c767230a8b2814e5c25fbea3
[WebKit-https.git] / WebCore / ChangeLog
1 2006-07-10  Darin Adler  <darin@apple.com>
2
3         Reviewed by Geoff.
4
5         - fix rdar://problem/4619534 http://bugzilla.opendarwin.org/show_bug.cgi?id=9810
6           OPTGROUP label text is using the default font instead of Lucida Grande
7
8         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::setFontFromControlSize):
9         Code wants the family name, but was calling fontName, which is not the same thing.
10         Also removed the unneeded conversion to DeprecatedString.
11
12 === Safari-521.16 ===
13
14 2006-07-10  David Kilzer  <ddkilzer@kilzer.net>
15
16         Reviewed by Darin.
17
18         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9179
19           Implement select.options.add() method
20
21         Tests:
22         - fast/dom/select-selectedIndex-multiple.html
23         - fast/dom/select-selectedIndex.html
24         - fast/js/select-options-add.html
25
26         * DerivedSources.make: Added JSHTMLOptionsCollection.h.
27         * ForwardingHeaders/kjs/operations.h: Added.
28         * WebCore.xcodeproj/project.pbxproj: Added new source files.
29         * bindings/js/JSHTMLOptionsCollectionCustom.cpp: Added.
30         (WebCore::JSHTMLOptionsCollection::length):
31         (WebCore::JSHTMLOptionsCollection::setLength):
32         (WebCore::JSHTMLOptionsCollection::indexSetter):
33         * bindings/js/kjs_html.cpp: Removed JSHTMLOptionsCollection implementation.
34         Renamed classes and methods for consistency.
35         (KJS::JSHTMLElement::selectGetter):
36         (KJS::JSHTMLElement::put):
37         (KJS::JSHTMLElement::selectSetter):
38         (KJS::JSHTMLCollection::JSHTMLCollection):
39         (KJS::JSHTMLCollectionProtoFunc::callAsFunction):
40         (KJS::getHTMLOptionsCollection):
41         * bindings/js/kjs_html.h: Ditto.
42         * bindings/scripts/CodeGeneratorJS.pm: Added support for HasCustomIndexSetter class attribute.
43         Added support for Optional parameter attribute, which makes generated code assume overloaded
44         implementation methods are available for a JavaScript function with optional arguments.  Changed
45         local 'impl' variables to 'imp' so that impl() methods could be called without class designation.
46         * html/HTMLOptionElement.idl: Added GenerateNativeConverter attribute.
47         * html/HTMLOptionsCollection.cpp: Added methods used by generated JSHTMLOptionsCollection class.
48         (WebCore::HTMLOptionsCollection::HTMLOptionsCollection):
49         (WebCore::HTMLOptionsCollection::add):
50         (WebCore::HTMLOptionsCollection::selectedIndex):
51         (WebCore::HTMLOptionsCollection::setSelectedIndex):
52         (WebCore::HTMLOptionsCollection::setLength):
53         * html/HTMLOptionsCollection.h: Ditto.
54         * html/HTMLOptionsCollection.idl: Added.
55
56 2006-07-10  David Harrison  <harrison@apple.com>
57
58         Reviewed by Dave Hyatt.
59
60         <rdar://problem/4602408> -webkit-highlight needs to support images and elements other than text
61
62         * rendering/RenderBox.cpp:
63         (WebCore::RenderBox::paintCustomHighlight):
64         * rendering/RenderBox.h:
65         Utility for subclasses.
66         
67         * rendering/RenderImage.cpp:
68         (WebCore::RenderImage::paint):
69         Custom highlight in front of images.
70         
71         * rendering/RenderListMarker.cpp:
72         (WebCore::RenderListMarker::paint):
73         Custom highlight in front of list markers.
74
75         * rendering/RenderWidget.cpp:
76         (WebCore::RenderWidget::paint):
77         Custom highlight in front of objects.
78
79 2006-07-10  David Hyatt  <hyatt@apple.com>
80
81         Better fix for repainting issue with positioned objects when height
82         changes.  Optimize when only a positioned child changes so that we don't
83         incorrectly do normal flow layout.
84
85         Reviewed by darin
86
87         * WebCore.xcodeproj/project.pbxproj:
88         * rendering/RenderBlock.cpp:
89         (WebCore::RenderBlock::layoutBlock):
90         * rendering/RenderFlexibleBox.cpp:
91         (WebCore::RenderFlexibleBox::layoutBlock):
92         * rendering/RenderTable.cpp:
93         (WebCore::RenderTable::layout):
94         * rendering/RenderView.cpp:
95         (WebCore::RenderView::layout):
96         * rendering/bidi.cpp:
97         (WebCore::RenderBlock::layoutInlineChildren):
98
99 2006-07-10  Adele Peterson  <adele@apple.com>
100
101         Reviewed by Beth.
102
103         - Fix for <rdar://problem/4621442> REGRESSION (NativePopup) : Popup menus aren't drawn correctly on page at orbitz.com; cheaptickets.com
104
105         Test: fast/forms/select-style.html
106
107         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
108         Don't let popups be style-able for now.  We'll allow it later, when we
109         have a good way to handle border & backgrounds and still having it look like a control.
110
111 2006-07-10  Justin Garcia  <justin.garcia@apple.com>
112
113         Reviewed by harrison
114         
115         <rdar://problem/4619260>
116         9A213 + Safari 521.15.1 Crash with To Do's alarm icon (WebCore::maxDeepOffset(WebCore::Node const*) )
117         <rdar://problem/4619841>
118         REGRESSION: Dragging selection over input field results in a crash (WebCore::maxDeepOffset(WebCore::Node const*)
119
120         * WebCore.xcodeproj/project.pbxproj:
121         * editing/Selection.cpp:
122         (WebCore::Selection::adjustForEditableContent): Iterate using next/previousVisuallyDistinctCandidate 
123         instead of traverseNext/Previous node because we were skipping positions.  Jump out of shadow trees.  
124         Migrate to isEditablePosition instead of isContentEditable.
125         
126
127 2006-07-10  Beth Dakin  <bdakin@apple.com>
128
129         Reviewed by Adele.
130
131         Shuffling comments around from my last check-in to make things read 
132         more clearly.
133
134         * page/DOMWindow.h:
135         * page/DOMWindow.idl:
136
137 2006-07-10  Beth Dakin  <bdakin@apple.com>
138
139         Reviewed by Darin.
140
141         Fix for <rdar://problem/4621095> The should be a way to 
142         access the user interface scale factor through the DOM
143
144         window.devicePixelRatio returns the user interface scale factor.
145
146         * page/DOMWindow.cpp:
147         (WebCore::DOMWindow::devicePixelRatio):
148         * page/DOMWindow.h:
149         * page/DOMWindow.idl:
150
151 2006-07-10  Brady Eidson  <beidson@apple.com>
152
153         Reviewed by Alexey
154
155         Resolved the console error messages people got from the new DB even if they didn't have it enabled
156
157         * icon/IconDatabase.cpp:
158         (WebCore::IconDatabase::pruneUnreferencedIcons):
159         (WebCore::IconDatabase::pruneUnretainedIcons):
160         Added quick check to bail if the DB isn't open
161
162 2006-07-10  David Harrison  <harrison@apple.com>
163
164         Reviewed by Tim Hatcher
165
166         Partial fix for...
167         <rdar://problem/4619260> 9A213 + Safari 521.15.1 Crash with To Do's alarm icon (WebCore::maxDeepOffset(WebCore::Node const*) )
168         
169         * editing/Selection.cpp:
170         (WebCore::Selection::adjustForEditableContent):
171         Allow for node being 0.  This is a bandaid fix to prevent the crash.  It will still assert in a debug build.  See bug for more info.
172
173 2006-07-10  Mitz Pettel  <opendarwin.org@mitzpettel.com>
174
175         Reviewed by Darin.
176
177         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9808
178           REGRESSION: Incorrect layout (and ERROR) when forcing ATSU For All Text
179
180         * manual-tests/ATSU-bad-layout.html: Added.
181         * platform/mac/FontMac.mm:
182         (WebCore::Font::floatWidthForComplexText): Return 0 immediately for empty runs.
183
184 2006-07-10  Darin Adler  <darin@apple.com>
185
186         - try to fix the no-SVG build
187
188         * ksvg2/misc/SVGImageLoader.cpp: Move namespace brace inside the #if.
189
190 2006-07-10  Darin Adler  <darin@apple.com>
191
192         Reviewed by Anders.
193
194         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9833
195           REGRESSION: Reproducible crash: RenderMenuList.cpp:58: failed assertion `!m_first'
196
197         * manual-tests/empty-title-popup.html: Added.
198
199         * rendering/RenderMenuList.h: Add createInnerBlock.
200         * rendering/RenderMenuList.cpp:
201         (WebCore::RenderMenuList::createInnerBlock): Factored out of addChild.
202         (WebCore::RenderMenuList::addChild): Call createInnerBlock.
203         (WebCore::RenderMenuList::setText): Changed parameter type.
204         (WebCore::RenderMenuList::showPopup): Call createInnerBlock before calling
205         the parent class's addChild.
206
207 2006-07-10  Rob Buis  <buis@kde.org>
208
209         Reviewed by Maciej via IRC.
210
211         Make sure the attributes are calculated against viewport width value,
212         as defined in the spec.  http://paste.lisp.org/display/22342
213
214         * ksvg2/svg/SVGEllipseElement.cpp:
215         (WebCore::SVGEllipseElement::rx): Changed LM_HEIGHT to LM_WIDTH.
216         * ksvg2/svg/SVGLineElement.cpp:
217         (SVGLineElement::x2): Ditto.
218
219 2006-07-10  Beth Dakin  <bdakin@apple.com>
220
221         Reviewed by Maciej.
222
223         Fix for <rdar://problem/4610314> Support the CSS3 content property 
224         for images
225
226         This patch provides initial support for the CSS3 content property. 
227         It lacks support for any content other than images, and only allows 
228         content for elements that seemed safe for now.
229
230         * css/cssstyleselector.cpp:
231         (WebCore::CSSStyleSelector::applyProperty): Remove restrictions for 
232         just :before and :after
233         * html/HTMLBRElement.cpp:
234         (WebCore::HTMLBRElement::createRenderer):
235         * html/HTMLFrameSetElement.cpp:
236         (WebCore::HTMLFrameSetElement::createRenderer):
237         * html/HTMLImageElement.cpp:
238         (WebCore::HTMLImageElement::createRenderer):
239         * html/HTMLLegendElement.cpp:
240         (WebCore::HTMLLegendElement::createRenderer):
241         * rendering/RenderImage.cpp:
242         (WebCore::RenderImage::RenderImage):
243         (WebCore::RenderImage::setCachedImage): Don't allow the image to be 
244         set this way if it was already set with the content property.
245         * rendering/RenderImage.h:
246         (WebCore::RenderImage::setIsAnonymousImage): Anonymous images are 
247         those set through the content property.
248         (WebCore::RenderImage::isAnonymousImage):
249         * rendering/RenderObject.cpp:
250         (WebCore::RenderObject::createObject): If there is content 
251         specified, create a RenderImage with the content and initialize the 
252         cached image to whatever was specified in the CSS.
253
254 2006-07-10  Brady Eidson  <beidson@apple.com>
255
256         Reviewed by NOBODY (Build Fix!)
257
258         * icon/SiteIcon.cpp:
259         (SiteIcon::getImage):
260         Release build made an "unused variable" warning, which is, of course, an error.  fixed that.
261
262 2006-07-10  Brady Eidson  <beidson@apple.com>
263
264         Reviewed by Maciej
265
266         SQLite Icon DB now fully replicates functionality of the old DB, including pruning to keep unused
267         information out to keep down disk usage.  For now, it is still off by default, as the critical
268         feature of importing old icons into the new DB is still unrealized.
269         If you'd like to test, add #define ICONDEBUG to your WebKitPrefix.h
270
271         * icon/IconDatabase.cpp:
272         (WebCore::IconDatabase::IconDatabase):
273         (WebCore::IconDatabase::open):
274           -Sets up a timer for initial pruning
275         (WebCore::IconDatabase::iconForPageURL):
276           -Switched away from "dirty blob hack" as the problem is provisionally solved
277         (WebCore::IconDatabase::retainIconForURL):
278         (WebCore::IconDatabase::releaseIconForURL):
279           -Same as found in WebKit
280         (WebCore::IconDatabase::totalRetainCountForIconURL):
281           -Adds up all retainers of icon
282         (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
283           -Wipes an Icon table entry out
284         (WebCore::IconDatabase::establishTemporaryIconIDForIconURL):
285         (WebCore::IconDatabase::establishTemporaryIconIDForEscapedIconURL):
286         (WebCore::IconDatabase::establishIconIDForIconURL):
287         (WebCore::IconDatabase::establishIconIDForEscapedIconURL):
288           -Added ability to get an iconID without creating a new one if a lookup is all
289            that is genuinely wanted
290         (WebCore::IconDatabase::pruneUnreferencedIcons):
291         (WebCore::IconDatabase::pruneUnretainedIcons):
292           -Called on a timer on DB startup to clean it out
293         * icon/IconDatabase.h:
294         * icon/SiteIcon.cpp:
295         (SiteIcon::SiteIcon):
296         (SiteIcon::~SiteIcon):
297           -Deletes the image on deletion
298         (SiteIcon::getImage):
299           -Cut down on no-longer-necessary debug info
300
301 2006-07-10  Anders Carlsson  <acarlsson@apple.com>
302
303         Reviewed by Adele.
304
305         http://bugzilla.opendarwin.org/show_bug.cgi?id=9245
306         Quirksmode: Incorrect handling of disabled BUTTON elements
307
308         * html/HTMLButtonElement.cpp:
309         (WebCore::HTMLButtonElement::defaultEventHandler):
310         Don't call prepareSubmit if the element is disabled.
311
312         * html/HTMLInputElement.cpp:
313         (WebCore::HTMLInputElement::defaultEventHandler):
314         Don't call prepareSubmit if the element is disabled.
315
316 2006-07-10  Darin Adler  <darin@apple.com>
317
318         - try to fix Windows build
319
320         * platform/win/TemporaryLinkStubs.cpp: Put a few functions in the WebCore namespace.
321         * platform/gdk/TemporaryLinkStubs.cpp: Ditto.
322
323 2006-07-10  Darin Adler  <darin@apple.com>
324
325         Reviewed by Geoff.
326
327         - fix failures seen in layout tests
328
329         * bindings/js/kjs_dom.cpp: (KJS::toJS): Restore one of the few WebCore:: prefixes
330         that really needed to be there -- because we have two classes named JSHTMLDocument
331         at the moment! (One in KJS and one in WebCore namespace.)
332
333 2006-07-10  Darin Adler  <darin@apple.com>
334
335         - try to fix Windows build
336
337         * rendering/RenderLayer.h: Correct a forward declaration of ScrollBar.
338
339 2006-07-09  Adele Peterson  <adele@apple.com>
340
341         Reviewed by Maciej.
342
343         Fix for <rdar://problem/4463835> Switch to use new popup menu implementation for <select>
344
345         * css/html4.css: Added style for new selects, and for list boxes.
346         * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::shouldUseMenuList): Removed check for appearance so new popups can be styled.
347    
348         * rendering/RenderMenuList.cpp:
349         (WebCore::RenderMenuList::setStyle): Removed padding.  This is now set by the theme.
350         (WebCore::RenderMenuList::calcMinMaxWidth): Now takes minimum text size into account.
351         * rendering/RenderMenuList.h: Removed baselinePosition since we're letting the theme calculate that.
352
353         * rendering/RenderTheme.cpp: (WebCore::RenderTheme::isControlContainer): Added menuList as a ControlContainer, 
354         so RenderThemeMac will compute its baseline.
355         * rendering/RenderTheme.h: (WebCore::RenderTheme::minimumTextSize): Added.
356         * rendering/RenderThemeMac.h: Added minimumTextSize, setPopupPaddingFromControlSize, popupButtonSizes, popupButtonMargins, popupButtonPadding.
357         Removed sizeOfArrowControl. 
358         * rendering/RenderThemeMac.mm:
359         (WebCore::): Added enum for padding.
360         (WebCore::RenderThemeMac::adjustRepaintRect): Now inflates rect to account for control shadow.
361         (WebCore::RenderThemeMac::baselinePosition): Now calculates baseline for menulist.
362         (WebCore::RenderThemeMac::popupButtonMargins): Tweaked values.
363         (WebCore::RenderThemeMac::popupButtonSizes): Added.
364         (WebCore::RenderThemeMac::popupButtonPadding): Added, so different padding can be set for different control sizes.
365         (WebCore::RenderThemeMac::setPopupPaddingFromControlSize): Added.
366         (WebCore::RenderThemeMac::paintMenuList): Now inflates rect to account for control shadow.
367         (WebCore::RenderThemeMac::adjustMenuListStyle): Resets border, sets padding, sets control size.
368         (WebCore::RenderThemeMac::setPopupButtonCellState): Removed unnecessary class name.
369         (WebCore::RenderThemeMac::minimumTextSize): Added.
370
371 2006-07-09  Darin Adler  <darin@apple.com>
372
373         - add back "unused code" for plain text fields, still used by <isindex>!
374
375         * platform/TextField.h:
376         * platform/mac/TextFieldMac.mm:
377         * platform/mac/WebCoreTextField.h:
378         * platform/mac/WebCoreTextField.mm:
379         * rendering/RenderLineEdit.cpp:
380
381 2006-07-09  Darin Adler  <darin@apple.com>
382
383         Reviewed by Tim Hatcher.
384
385         - put more into the WebCore namespace
386         - removed unused code for plain text fields
387
388         Put more classes, class templates, enums, functions, and constants into
389         the WebCore namespace, including all the headers in the platform directory.
390
391         Removed lots of unneeded "WebCore::" qualifiers and "using" directives.
392
393         Added some "WebCore::" qualifiers in a few places.
394
395         Removed "uses WebCore::" in headers that we said we'd remove "when
396         everything is in the WebCore namespace".
397
398         * bindings/js/JSDOMParser.cpp:
399         * bindings/js/JSHTMLElementWrapperFactory.cpp:
400         * bindings/js/JSXSLTProcessor.cpp:
401         * bindings/js/kjs_binding.cpp:
402         * bindings/js/kjs_css.cpp:
403         * bindings/js/kjs_dom.cpp:
404         * bindings/js/kjs_dom.h:
405         * bindings/js/kjs_events.cpp:
406         * bindings/js/kjs_proxy.h:
407         * bindings/js/kjs_window.h:
408         * bindings/objc/DOM.mm:
409         * bridge/History.h:
410         * bridge/JavaAppletWidget.h:
411         * bridge/mac/FormDataMac.h:
412         * bridge/mac/FormDataMac.mm:
413         * bridge/mac/WebCoreAXObject.mm:
414         * bridge/mac/WebCoreEncodings.mm:
415         * bridge/mac/WebCoreFrameBridge.h:
416         * bridge/mac/WebCoreIconDatabaseBridge.mm:
417         * bridge/mac/WebCorePageState.h:
418         * bridge/mac/WebCoreScriptDebugger.mm:
419         * bridge/mac/WebCoreSettings.h:
420         * css/CSSGrammar.y:
421         * css/CSSPageRule.cpp:
422         * css/CSSPageRule.h:
423         * css/MediaList.cpp:
424         * css/cssstyleselector.h:
425         * dom/Clipboard.h:
426         * dom/Document.cpp:
427         * dom/Document.h:
428         * dom/EventTargetNode.h:
429         * dom/Node.cpp:
430         * dom/Node.h:
431         * dom/Position.h:
432         * dom/Range.cpp:
433         * dom/XMLTokenizer.cpp:
434         * editing/AppendNodeCommand.h:
435         * editing/ApplyStyleCommand.cpp:
436         * editing/BreakBlockquoteCommand.cpp:
437         * editing/BreakBlockquoteCommand.h:
438         * editing/CompositeEditCommand.cpp:
439         * editing/CompositeEditCommand.h:
440         * editing/CreateLinkCommand.h:
441         * editing/DeleteFromTextNodeCommand.h:
442         * editing/DeleteSelectionCommand.h:
443         * editing/FormatBlockCommand.h:
444         * editing/HTMLInterchange.cpp:
445         * editing/HTMLInterchange.h:
446         * editing/IndentOutdentCommand.h:
447         * editing/InsertIntoTextNodeCommand.h:
448         * editing/InsertLineBreakCommand.h:
449         * editing/InsertListCommand.h:
450         * editing/InsertNodeBeforeCommand.h:
451         * editing/InsertTextCommand.cpp:
452         * editing/InsertTextCommand.h:
453         * editing/JSEditor.cpp:
454         * editing/JSEditor.h:
455         * editing/JoinTextNodesCommand.h:
456         * editing/MergeIdenticalElementsCommand.cpp:
457         * editing/MergeIdenticalElementsCommand.h:
458         * editing/ModifySelectionListLevel.h:
459         * editing/MoveSelectionCommand.h:
460         * editing/RebalanceWhitespaceCommand.h:
461         * editing/RemoveNodeAttributeCommand.h:
462         * editing/RemoveNodeCommand.h:
463         * editing/RemoveNodePreservingChildrenCommand.h:
464         * editing/ReplaceSelectionCommand.h:
465         * editing/SetNodeAttributeCommand.h:
466         * editing/SplitElementCommand.cpp:
467         * editing/SplitElementCommand.h:
468         * editing/SplitTextNodeCommand.cpp:
469         * editing/SplitTextNodeCommand.h:
470         * editing/SplitTextNodeContainingElementCommand.h:
471         * editing/TypingCommand.cpp:
472         * editing/TypingCommand.h:
473         * editing/UnlinkCommand.h:
474         * editing/VisiblePosition.cpp:
475         * editing/WrapContentsInDummySpanCommand.cpp:
476         * editing/WrapContentsInDummySpanCommand.h:
477         * editing/markup.cpp:
478         * editing/markup.h:
479         * html/HTMLAnchorElement.cpp:
480         * html/HTMLBodyElement.cpp:
481         * html/HTMLButtonElement.h:
482         * html/HTMLCollection.h:
483         * html/HTMLDocument.h:
484         * html/HTMLEmbedElement.cpp:
485         * html/HTMLFormElement.cpp:
486         * html/HTMLFormElement.h:
487         * html/HTMLFrameElement.cpp:
488         * html/HTMLFrameSetElement.cpp:
489         * html/HTMLKeygenElement.cpp:
490         * html/HTMLLabelElement.cpp:
491         * html/HTMLObjectElement.cpp:
492         * html/HTMLObjectElement.h:
493         * html/HTMLTableElement.cpp:
494         * html/HTMLTablePartElement.cpp:
495         * icon/IconDatabase.h:
496         * kcanvas/KCanvasPath.h:
497         * kcanvas/KCanvasResources.cpp:
498         * kcanvas/KCanvasResources.h:
499         * kcanvas/KCanvasTreeDebug.cpp:
500         * kcanvas/KCanvasTreeDebug.h:
501         * kcanvas/RenderSVGContainer.cpp:
502         * kcanvas/RenderSVGText.h:
503         * kcanvas/device/KRenderingPaintServer.h:
504         * kcanvas/device/KRenderingPaintServerGradient.h:
505         * kcanvas/device/KRenderingPaintServerSolid.cpp:
506         * ksvg2/misc/SVGImageLoader.cpp:
507         * ksvg2/svg/SVGElement.cpp:
508         * ksvg2/svg/SVGElement.h:
509         * ksvg2/svg/SVGForeignObjectElement.cpp:
510         * ksvg2/svg/SVGForeignObjectElement.h:
511         * ksvg2/svg/SVGImageElement.cpp:
512         * ksvg2/svg/SVGPoint.h:
513         * ksvg2/svg/SVGStylable.h:
514         * ksvg2/svg/SVGTRefElement.cpp:
515         * ksvg2/svg/SVGTRefElement.h:
516         * ksvg2/svg/SVGTSpanElement.cpp:
517         * ksvg2/svg/SVGTSpanElement.h:
518         * ksvg2/svg/SVGTextElement.h:
519         * ksvg2/svg/svgpathparser.cpp:
520         * ksvg2/svg/svgpathparser.h:
521         * loader/Cache.h:
522         * loader/DocLoader.h:
523         * loader/LoaderFunctions.h:
524         * loader/mac/LoaderFunctionsMac.mm:
525         * page/Frame.h:
526         * page/FrameView.h:
527         * page/Page.h:
528         * page/Settings.h:
529         * platform/AffineTransform.cpp:
530         * platform/AffineTransform.h:
531         * platform/Arena.cpp:
532         * platform/Arena.h:
533         * platform/CookieJar.h:
534         * platform/DeprecatedCString.cpp:
535         * platform/DeprecatedCString.h:
536         * platform/DeprecatedPtrList.h:
537         * platform/DeprecatedPtrListImpl.cpp:
538         * platform/DeprecatedPtrListImpl.h:
539         * platform/DeprecatedPtrQueue.h:
540         * platform/DeprecatedString.cpp:
541         * platform/DeprecatedString.h:
542         * platform/DeprecatedStringList.cpp:
543         * platform/DeprecatedStringList.h:
544         * platform/DeprecatedValueList.h:
545         * platform/DeprecatedValueListImpl.cpp:
546         * platform/DeprecatedValueListImpl.h:
547         * platform/FileButton.h:
548         * platform/FloatPoint.h:
549         * platform/FloatRect.h:
550         * platform/FloatSize.h:
551         * platform/FontData.h:
552         * platform/FontFallbackList.h:
553         * platform/GraphicsContext.h:
554         * platform/IntPoint.h:
555         * platform/IntRect.h:
556         * platform/IntSize.h:
557         * platform/KURL.cpp:
558         * platform/KURL.h:
559         * platform/ListBox.h:
560         * platform/Logging.cpp:
561         * platform/Logging.h:
562         * platform/Pen.h:
563         * platform/PopUpButton.h:
564         * platform/RegularExpression.cpp:
565         * platform/RegularExpression.h:
566         * platform/SSLKeyGenerator.h:
567         * platform/ScrollBar.h:
568         * platform/SegmentedString.h:
569         * platform/Shared.h:
570         * platform/Slider.h:
571         * platform/StringImpl.h:
572         * platform/TextBox.h:
573         * platform/TextField.h:
574         * platform/TextStream.cpp:
575         * platform/TextStream.h:
576         * platform/TransferJob.h:
577         * platform/TransferJobClient.h:
578         * platform/Widget.h:
579         * platform/cg/AffineTransformCG.cpp:
580         * platform/mac/ClipboardMac.h:
581         * platform/mac/ClipboardMac.mm:
582         * platform/mac/DeprecatedStringListMac.mm:
583         * platform/mac/FontCacheMac.mm:
584         * platform/mac/KURLMac.mm:
585         * platform/mac/ListBoxMac.mm:
586         * platform/mac/PopUpButtonMac.mm:
587         * platform/mac/SSLKeyGeneratorMac.mm:
588         * platform/mac/TextBoxMac.mm:
589         * platform/mac/TextFieldMac.mm:
590         * platform/mac/WebCoreTextArea.h:
591         * platform/mac/WebCoreTextArea.mm:
592         * platform/mac/WebCoreTextField.h:
593         * platform/mac/WebCoreTextField.mm:
594         * rendering/DeprecatedRenderSelect.h:
595         * rendering/RenderArena.cpp:
596         * rendering/RenderArena.h:
597         * rendering/RenderBlock.cpp:
598         * rendering/RenderBox.cpp:
599         * rendering/RenderContainer.cpp:
600         * rendering/RenderFlexibleBox.cpp:
601         * rendering/RenderFlow.cpp:
602         * rendering/RenderLayer.cpp:
603         * rendering/RenderLineEdit.cpp:
604         * rendering/RenderObject.h:
605         * rendering/RenderStyle.cpp:
606         * rendering/RenderStyle.h:
607         * rendering/RenderText.cpp:
608         * rendering/RenderTextFragment.cpp:
609         * rendering/RenderTheme.h:
610         * rendering/RenderTreeAsText.cpp:
611         * rendering/RenderTreeAsText.h:
612         * rendering/RenderView.h:
613         * rendering/bidi.h:
614         * xml/XSLStyleSheet.cpp:
615         * xml/XSLTProcessor.cpp:
616
617 2006-07-09  Geoffrey Garen  <ggaren@apple.com>
618
619         Reviewed by Beth.
620
621         * bindings/js/kjs_window.cpp:
622         (KJS::Window::clear): Garbage collect after reinitalizing the global
623         object, not before, since the reinitialization tends to create garbage.
624
625 2006-07-09  Timothy Hatcher  <timothy@apple.com>
626
627         Reviewed by Darin.
628
629         Bug 9820: Move new DOM API that has been through API review to public headers
630         http://bugzilla.opendarwin.org/show_bug.cgi?id=9820
631
632         * bindings/objc/DOM.mm:
633         (-[DOMElement focus]):
634         (-[DOMElement blur]):
635         (-[DOMRange text]):
636         (-[DOMRange _text]):
637         * bindings/objc/DOMCSS.mm:
638         (-[DOMRGBColor color]):
639         (-[DOMRGBColor _color]):
640         * bindings/objc/DOMCore.h:
641         * bindings/objc/DOMEvents.h:
642         * bindings/objc/DOMExtensions.h:
643         * bindings/objc/DOMHTML.mm:
644         (-[DOMHTMLElement titleDisplayString]):
645         (-[DOMHTMLDocument createDocumentFragmentWithMarkupString:baseURL:]):
646         (-[DOMHTMLDocument createDocumentFragmentWithText:]):
647         (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]):
648         (-[DOMHTMLDocument _createDocumentFragmentWithText:]):
649         * bindings/objc/DOMPrivate.h:
650         * bindings/objc/DOMXPath.h:
651         * bindings/objc/DOMXPath.mm:
652
653 2006-07-09  Beth Dakin  <bdakin@apple.com>
654
655         Reviewed by Maciej.
656
657         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9749 A 
658         nested content editable div causes unnecessary screen redraws.
659         
660         We were repainting too much because we were deciding that we needed 
661         a full layout because we didn't have a first line box. Our code 
662         used to hold a lot of assumptions that positioned elements would 
663         always have line boxes, but I fixed a few bugs a while back that 
664         appeared because this assumption isn't true. This assumption was 
665         also causing the extra redraws because the check meant that we 
666         would decide to do a full layout for any positioned element that 
667         did not have any line boxes in the first place. Maciej and I talked 
668         about this, and we couldn't figure out why the check for line boxes 
669         was part of determining if we need a full layout in the first 
670         place. After hunting around the code, we decided to assume that 
671         this check is antiquated. Removing it fixes the bug and doesn't 
672         seem to break any layout tests. So, fingers crossed!
673
674         Will add layout test so soon.
675
676         * rendering/bidi.cpp:
677         (WebCore::RenderBlock::layoutInlineChildren): Remove firstLineBox 
678         check.
679
680 2006-07-09  David Harrison  <harrison@apple.com>
681
682         Reviewed by John Sullivan.
683
684         <rdar://problem/4598149> Deleting the contents of a DOMRange and then inserting a node into it crashes in WebCore::Font::canUseGlyphCache
685
686         Test: fast/dom/delete-contents.html
687         
688         * dom/Range.cpp:
689         (WebCore::Range::processContents):
690
691 2006-07-09  Darin Adler  <darin@apple.com>
692
693         - another round of renaming; and KWQ is dead
694
695         * WebCore.vcproj/WebCore/WebCore.vcproj: Remove paths for kwq and khtml directories.
696         Move files to their new locations. Did rename.
697         * WebCore.xcodeproj/project.pbxproj: Move files to their new locations. Did rename.
698         * WebCoreSources.bkl: Did rename.
699         * webcore-base.bkl: Removed kwq.
700
701         * kwq/AccessibilityObjectCache.h: Removed.
702         * kwq/AccessibilityObjectCache.mm: Removed.
703         * kwq/FormDataMac.h: Removed.
704         * kwq/FormDataMac.mm: Removed.
705         * kwq/WebCoreAXObject.h: Removed.
706         * kwq/WebCoreAXObject.mm: Removed.
707         * kwq/WebCoreEditCommand.h: Removed.
708         * kwq/WebCoreEditCommand.mm: Removed.
709         * kwq/WebCorePageState.h: Removed.
710         * kwq/WebCorePageState.mm: Removed.
711         * kwq/WebCoreResourceLoaderImp.h: Removed.
712         * kwq/WebCoreResourceLoaderImp.mm: Removed.
713
714         * bridge/AXObjectCache.h: Added.
715         * bridge/mac/AXObjectCacheMac.mm: Added.
716         * bridge/mac/WebCoreAXObject.h: Added.
717         * bridge/mac/WebCoreAXObject.mm: Added.
718
719         * loader/CachedObject.cpp: Removed.
720         * loader/CachedObject.h: Removed.
721         * loader/CachedObjectClient.h: Removed.
722         * loader/CachedObjectClientWalker.cpp: Removed.
723         * loader/CachedObjectClientWalker.h: Removed.
724
725         * loader/CachedResource.cpp: Added.
726         * loader/CachedResource.h: Added.
727         * loader/CachedResourceClient.h: Added.
728         * loader/CachedResourceClientWalker.cpp: Added.
729         * loader/CachedResourceClientWalker.h: Added.
730
731         * bridge/mac/FrameMac.mm:
732         * bridge/mac/WebCoreFrameBridge.mm:
733         * css/CSSImageValue.h:
734         * css/CSSImportRule.h:
735         * dom/Document.cpp:
736         * dom/Document.h:
737         * dom/Notation.h:
738         * dom/ProcessingInstruction.h:
739         * dom/XMLTokenizer.cpp:
740         * html/CanvasPattern.h:
741         * html/HTMLDocument.h:
742         * html/HTMLImageLoader.cpp:
743         * html/HTMLImageLoader.h:
744         * html/HTMLLinkElement.h:
745         * html/HTMLScriptElement.cpp:
746         * html/HTMLScriptElement.h:
747         * html/HTMLTokenizer.cpp:
748         * html/HTMLTokenizer.h:
749         * kcanvas/KCanvasFilters.h:
750         * ksvg2/svg/SVGCursorElement.cpp:
751         * ksvg2/svg/SVGCursorElement.h:
752         * ksvg2/svg/SVGFEImageElement.cpp:
753         * ksvg2/svg/SVGFEImageElement.h:
754         * loader/Cache.cpp:
755         * loader/Cache.h:
756         * loader/CachedCSSStyleSheet.cpp:
757         * loader/CachedCSSStyleSheet.h:
758         * loader/CachedImage.cpp:
759         * loader/CachedImage.h:
760         * loader/CachedScript.cpp:
761         * loader/CachedScript.h:
762         * loader/CachedXBLDocument.cpp:
763         * loader/CachedXBLDocument.h:
764         * loader/CachedXSLStyleSheet.cpp:
765         * loader/CachedXSLStyleSheet.h:
766         * loader/DocLoader.cpp:
767         * loader/DocLoader.h:
768         * loader/LoaderFunctions.h:
769         * loader/Request.cpp:
770         * loader/Request.h:
771         * loader/loader.cpp:
772         * loader/loader.h:
773         * loader/mac/LoaderFunctionsMac.mm:
774         * page/Frame.cpp:
775         * page/FrameView.cpp:
776         * platform/gdk/TemporaryLinkStubs.cpp:
777         * platform/mac/ClipboardMac.h:
778         * platform/win/TemporaryLinkStubs.cpp:
779         * rendering/RenderBox.h:
780         * rendering/RenderContainer.cpp:
781         * rendering/RenderImage.cpp:
782         * rendering/RenderImage.h:
783         * rendering/RenderLayer.h:
784         * rendering/RenderObject.cpp:
785         * rendering/RenderObject.h:
786         * rendering/RenderStyle.cpp:
787         * rendering/RenderStyle.h:
788         * xml/XSLImportRule.h:
789         Did renaming.
790
791         * platform/mac/can-convert.mm: Removed.
792
793 2006-07-09  Anders Carlsson  <acarlsson@apple.com>
794
795         Reviewed by Tim O.
796
797         * WebCore.exp:
798         Add wkPathFromFont.
799         
800         * platform/mac/FontDataMac.mm:
801         (-[NSFont WebCore]):
802         Use wkPathFromFont.
803         
804         * platform/mac/WebCoreSystemInterface.h:
805         * platform/mac/WebCoreSystemInterface.mm:
806         Declare wkPathFromFont.
807
808 2006-07-09  Brady Eidson  <beidson@apple.com>
809
810         Reviewed by Maciej
811
812         Set the stage to remove the workaround for the SQLite BLOB corruption.  A few other small cleanups, and
813         preparation for pruning unreferenced and unretained icons.
814
815         * icon/IconDatabase.cpp:
816         (WebCore::IconDatabase::recreateDatabase):  Added another trigger to assist in icon removal
817         (WebCore::IconDatabase::deletePrivateTables):  Cleaned up logging messages
818         (WebCore::IconDatabase::imageDataForIconID):  #ifdefed the blobbing hack for impending removal, use the real blob by default
819         (WebCore::IconDatabase::imageDataForIconURL):  same
820         (WebCore::IconDatabase::imageDataForPageURL):  same
821         (WebCore::IconDatabase::pruneUnreferencedIcons):  Will delete any icons and their data that are not referenced
822           by any PageURL
823         * icon/IconDatabase.h:
824
825         * icon/SQLDatabase.h:  Changed BlobAsVector to be unsigned char as thats the most reasonable type for
826           a byte-buffer, and is what CFData expects
827         * icon/SQLStatement.cpp:
828         (WebCore::SQLStatement::getColumnBlobAsVector):
829
830 2006-07-09  Darin Adler  <darin@apple.com>
831
832         - move all but the last 12 files out of kwq directory
833         - removed a few unused source files I discovered
834
835         * WebCore.vcproj/WebCore/WebCore.vcproj: Update for new file locations.
836         * WebCore.xcodeproj/project.pbxproj: Ditto.
837
838         * bridge/mac/FrameMac.mm:
839         * dom/Element.h:
840         * html/HTMLImageLoader.cpp:
841         * loader/Cache.cpp:
842         * loader/Cache.h:
843         * loader/CachedCSSStyleSheet.cpp:
844         * loader/CachedCSSStyleSheet.h:
845         * loader/CachedImage.cpp:
846         * loader/CachedImage.h:
847         * loader/CachedObject.h:
848         * loader/CachedScript.cpp:
849         * loader/CachedScript.h:
850         * loader/CachedXBLDocument.cpp:
851         * loader/CachedXBLDocument.h:
852         * loader/CachedXSLStyleSheet.cpp:
853         * loader/CachedXSLStyleSheet.h:
854         * loader/DocLoader.cpp:
855         * loader/DocLoader.h:
856         * page/Frame.cpp:
857         * page/Frame.h:
858         * page/FramePrivate.h:
859         * platform/gdk/TemporaryLinkStubs.cpp:
860         * platform/win/TemporaryLinkStubs.cpp:
861         * rendering/DeprecatedSlider.cpp:
862         * rendering/RenderObject.h:
863         * xml/xmlhttprequest.cpp:
864         Updated includes as needed for file location changes. Changed
865         CachePolicy uses to match new filename and enum names.
866
867         * loader/CachedResource.cpp: Removed.
868         * loader/CachedResource.h: Removed.
869         * loader/CachedResourceClient.h: Removed.
870         * loader/CachedResourceClientWalker.cpp: Removed.
871         * loader/CachedResourceClientWalker.h: Removed.
872         The above files were checked in by accident a while back. The rename of
873         CachedObject to CachedResource is now reflected in do-webcore-rename,
874         and will be done soon.
875
876         * kwq/AffineTransform.cpp: Removed.
877         * kwq/AffineTransform.h: Removed.
878         * kwq/CacheControl.h: Removed.
879         * kwq/DeprecatedPtrQueue.h: Removed.
880         * kwq/FileButton.h: Removed.
881         * kwq/FileButton.mm: Removed.
882         * kwq/ListBox.h: Removed.
883         * kwq/ListBox.mm: Removed.
884         * kwq/LoaderFunctions.h: Removed.
885         * kwq/LoaderFunctions.mm: Removed.
886         * kwq/PopUpButton.h: Removed.
887         * kwq/PopUpButton.mm: Removed.
888         * kwq/SSLKeyGenerator.h: Removed.
889         * kwq/SSLKeyGenerator.mm: Removed.
890         * kwq/Settings.h: Removed.
891         * kwq/TextBox.h: Removed.
892         * kwq/TextBox.mm: Removed.
893         * kwq/TextField.h: Removed.
894         * kwq/TextField.mm: Removed.
895         * kwq/WebCoreScrollBar.h: Removed.
896         * kwq/WebCoreScrollBar.mm: Removed.
897         * kwq/WebCoreSlider.h: Removed.
898         * kwq/WebCoreSlider.mm: Removed.
899
900         * loader/CachePolicy.h: Added.
901         * loader/LoaderFunctions.h: Added.
902
903         * loader/mac/LoaderFunctionsMac.mm: Added.
904
905         * page/Settings.h: Added.
906
907         * platform/AffineTransform.cpp: Added.
908         * platform/AffineTransform.h: Added.
909         * platform/DeprecatedPtrQueue.h: Added.
910         * platform/FileButton.h: Added.
911         * platform/ListBox.h: Added.
912         * platform/PopUpButton.h: Added.
913         * platform/SSLKeyGenerator.h: Added.
914         * platform/ScrollBar.h: Added.
915         * platform/Slider.h: Added.
916         * platform/TextBox.h: Added.
917         * platform/TextField.h: Added.
918
919         * platform/cg/AffineTransformCG.cpp: Added.
920
921         * platform/mac/FileButtonMac.mm: Added.
922         * platform/mac/ListBoxMac.mm: Added.
923         * platform/mac/PopUpButtonMac.mm: Added.
924         * platform/mac/SSLKeyGeneratorMac.mm: Added.
925         * platform/mac/ScrollBarMac.mm: Added.
926         * platform/mac/ScrollBarMac.mm: Added.
927         * platform/mac/SliderMac.mm: Added.
928         * platform/mac/SliderMac.mm: Added.
929         * platform/mac/TextBoxMac.mm: Added.
930         * platform/mac/TextFieldMac.mm: Added.
931
932 2006-07-09  Darin Adler  <darin@apple.com>
933
934         - move 4 files out of kwq directory
935         - make some minor project adjustments for the WebCore project
936
937         * WebCore.xcodeproj/project.pbxproj: Link libsqlite3 the same way we do other
938         libraries, rather than using a custom linker option. Moved the files from their
939         old locations to the new ones. Removed "khtml" from the list of header search
940         paths since that directory doesn't exist any more. Eliminated STYLE_LDFLAGS
941         and just put -umbrella WebKit in OTHER_LDFLAGS in the Production configuration
942         (was a leftover from "build styles" in Xcode 1). Changed to use EXPORTED_SYMBOLS_FILE
943         instead of using -exported_symbols_list directly again now that Xcode has fixed the
944         "strip twice" bug. Removed unneeded explicit SECTORDER_FLAGS = "" settings.
945         Removed the explicit -Y,3 option now that Xcode does that by default.
946
947         * WebCore.vcproj/WebCore/WebCore.vcproj: Removed some obsolete uneeded files,
948         many of which didn't exist any more. Moved the files from their old locations
949         to the new ones.
950
951         * WebCoreSources.bkl: Moved the files from their old locations to the new ones.
952
953         * kwq/DeprecatedCString.cpp: Removed.
954         * kwq/DeprecatedCString.h: Removed.
955         * kwq/TextStream.cpp: Removed.
956         * kwq/TextStream.h: Removed.
957         * platform/DeprecatedCString.cpp: Added.
958         * platform/DeprecatedCString.h: Added.
959         * platform/TextStream.cpp: Added.
960         * platform/TextStream.h: Added.
961
962 2006-07-09  Darin Adler  <darin@apple.com>
963
964         Rubber stamped by Maciej (kinda).
965
966         - did the next pass of renaming (used do-webcore-rename script)
967           this takes care of most of the remaining KWQ names (almost all)
968
969         * WebCore+SVG/DOMList.h:
970         * WebCore.vcproj/WebCore/WebCore.vcproj:
971         * WebCore.xcodeproj/project.pbxproj:
972         * WebCoreSources.bkl:
973         * bindings/js/kjs_dom.cpp:
974         * bindings/js/kjs_window.cpp:
975         * bindings/objc/DOMHTML.mm:
976         * bridge/mac/FrameMac.h:
977         * bridge/mac/FrameMac.mm:
978         * bridge/mac/WebCoreFrameBridge.mm:
979         * bridge/mac/WebCoreSettings.h:
980         * bridge/mac/WebCoreSettings.mm:
981         * bridge/win/FrameWin.cpp:
982         * css/CSSPrimitiveValue.cpp:
983         * css/CSSValueKeywords.in:
984         * css/MediaQueryEvaluator.cpp:
985         * css/cssparser.cpp:
986         * css/cssstyleselector.cpp:
987         * css/cssstyleselector.h:
988         * dom/CharacterData.cpp:
989         * dom/CharacterData.h:
990         * dom/Document.cpp:
991         * dom/Element.cpp:
992         * dom/Element.h:
993         * dom/EventTargetNode.cpp:
994         * dom/EventTargetNode.h:
995         * dom/Node.cpp:
996         * dom/Node.h:
997         * dom/Position.cpp:
998         * dom/ProcessingInstruction.cpp:
999         * dom/QualifiedName.cpp:
1000         * dom/QualifiedName.h:
1001         * dom/XMLTokenizer.cpp: Added.
1002         * dom/xml_tokenizer.cpp: Removed.
1003         * dom/xml_tokenizer.h: Removed.
1004         * editing/EditAction.h:
1005         * editing/HTMLInterchange.cpp:
1006         * editing/HTMLInterchange.h:
1007         * editing/Selection.h:
1008         * editing/SelectionController.h:
1009         * editing/TextAffinity.h:
1010         * editing/TextIterator.cpp:
1011         * editing/TextIterator.h:
1012         * editing/VisiblePosition.h:
1013         * editing/htmlediting.cpp:
1014         * editing/markup.cpp:
1015         * editing/markup.h:
1016         * editing/visible_units.cpp:
1017         * editing/visible_units.h:
1018         * html/HTMLDocument.cpp:
1019         * html/HTMLFontElement.cpp:
1020         * html/HTMLInputElement.cpp:
1021         * html/HTMLKeygenElement.cpp:
1022         * html/HTMLSelectElement.h:
1023         * html/HTMLTextAreaElement.cpp:
1024         * html/HTMLTextFieldInnerElement.cpp:
1025         * html/HTMLTokenizer.cpp:
1026         * html/HTMLTokenizer.h:
1027         * kcanvas/KCanvasContainer.cpp: Removed.
1028         * kcanvas/KCanvasContainer.h: Removed.
1029         * kcanvas/KCanvasCreator.cpp:
1030         * kcanvas/KCanvasFilters.cpp:
1031         * kcanvas/KCanvasFilters.h:
1032         * kcanvas/KCanvasMatrix.cpp:
1033         * kcanvas/KCanvasMatrix.h:
1034         * kcanvas/KCanvasPath.cpp:
1035         * kcanvas/KCanvasPath.h:
1036         * kcanvas/KCanvasResources.cpp:
1037         * kcanvas/KCanvasResources.h:
1038         * kcanvas/KCanvasTreeDebug.cpp:
1039         * kcanvas/KCanvasTreeDebug.h:
1040         * kcanvas/RenderForeignObject.cpp:
1041         * kcanvas/RenderForeignObject.h:
1042         * kcanvas/RenderPath.cpp:
1043         * kcanvas/RenderPath.h:
1044         * kcanvas/RenderSVGContainer.cpp: Added.
1045         * kcanvas/RenderSVGContainer.h: Added.
1046         * kcanvas/RenderSVGImage.cpp:
1047         * kcanvas/RenderSVGImage.h:
1048         * kcanvas/RenderSVGText.cpp:
1049         * kcanvas/RenderSVGText.h:
1050         * kcanvas/device/KRenderingPaintServer.h:
1051         * kcanvas/device/KRenderingPaintServerGradient.cpp:
1052         * kcanvas/device/KRenderingPaintServerGradient.h:
1053         * kcanvas/device/KRenderingPaintServerPattern.cpp:
1054         * kcanvas/device/KRenderingPaintServerPattern.h:
1055         * kcanvas/device/KRenderingPaintServerSolid.cpp:
1056         * kcanvas/device/KRenderingPaintServerSolid.h:
1057         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
1058         * kcanvas/device/quartz/KCanvasItemQuartz.h:
1059         * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
1060         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
1061         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
1062         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1063         * ksvg2/css/CSSValueKeywords.in:
1064         * ksvg2/css/SVGRenderStyleDefs.cpp:
1065         * ksvg2/misc/KCanvasRenderingStyle.cpp:
1066         * ksvg2/misc/KSVGTimeScheduler.cpp:
1067         * ksvg2/svg/SVGAElement.cpp:
1068         * ksvg2/svg/SVGAnimateTransformElement.cpp:
1069         * ksvg2/svg/SVGAnimateTransformElement.h:
1070         * ksvg2/svg/SVGGElement.cpp:
1071         * ksvg2/svg/SVGHelper.cpp:
1072         * ksvg2/svg/SVGHelper.h:
1073         * ksvg2/svg/SVGImageElement.cpp:
1074         * ksvg2/svg/SVGLinearGradientElement.cpp:
1075         * ksvg2/svg/SVGMarkerElement.cpp:
1076         * ksvg2/svg/SVGMaskElement.cpp:
1077         * ksvg2/svg/SVGMatrix.cpp:
1078         * ksvg2/svg/SVGMatrix.h:
1079         * ksvg2/svg/SVGPatternElement.cpp:
1080         * ksvg2/svg/SVGRadialGradientElement.cpp:
1081         * ksvg2/svg/SVGSVGElement.cpp:
1082         * ksvg2/svg/SVGStyledElement.h:
1083         * ksvg2/svg/SVGStyledTransformableElement.cpp:
1084         * ksvg2/svg/SVGStyledTransformableElement.h:
1085         * ksvg2/svg/SVGSwitchElement.cpp:
1086         * ksvg2/svg/SVGTextElement.cpp:
1087         * ksvg2/svg/SVGTransformable.h:
1088         * ksvg2/svg/SVGUseElement.cpp:
1089         * kwq/AffineTransform.cpp: Added.
1090         * kwq/AffineTransform.h: Added.
1091         * kwq/DeprecatedCString.cpp: Added.
1092         * kwq/DeprecatedCString.h: Added.
1093         * kwq/DeprecatedPtrQueue.h: Added.
1094         * kwq/FileButton.h: Added.
1095         * kwq/FileButton.mm: Added.
1096         * kwq/FormDataMac.mm: Added.
1097         * kwq/KWQCString.cpp: Removed.
1098         * kwq/KWQCString.h: Removed.
1099         * kwq/KWQComboBox.h: Removed.
1100         * kwq/KWQComboBox.mm: Removed.
1101         * kwq/KWQEditCommand.h: Removed.
1102         * kwq/KWQEditCommand.mm: Removed.
1103         * kwq/KWQFileButton.h: Removed.
1104         * kwq/KWQFileButton.mm: Removed.
1105         * kwq/KWQFormData.h: Removed.
1106         * kwq/KWQFormData.mm: Removed.
1107         * kwq/KWQKHTMLSettings.h: Removed.
1108         * kwq/KWQKIOGlobal.h: Removed.
1109         * kwq/KWQKSSLKeyGen.h: Removed.
1110         * kwq/KWQKSSLKeyGen.mm: Removed.
1111         * kwq/KWQLineEdit.h: Removed.
1112         * kwq/KWQLineEdit.mm: Removed.
1113         * kwq/KWQListBox.h: Removed.
1114         * kwq/KWQListBox.mm: Removed.
1115         * kwq/KWQLoader.h: Removed.
1116         * kwq/KWQLoader.mm: Removed.
1117         * kwq/KWQPageState.h: Removed.
1118         * kwq/KWQPageState.mm: Removed.
1119         * kwq/KWQPtrQueue.h: Removed.
1120         * kwq/KWQResourceLoader.h: Removed.
1121         * kwq/KWQResourceLoader.mm: Removed.
1122         * kwq/KWQScrollBar.h: Removed.
1123         * kwq/KWQScrollBar.mm: Removed.
1124         * kwq/KWQSlider.h: Removed.
1125         * kwq/KWQSlider.mm: Removed.
1126         * kwq/KWQTextEdit.h: Removed.
1127         * kwq/KWQTextEdit.mm: Removed.
1128         * kwq/KWQTextStream.cpp: Removed.
1129         * kwq/KWQTextStream.h: Removed.
1130         * kwq/KWQWMatrix.cpp: Removed.
1131         * kwq/KWQWMatrix.h: Removed.
1132         * kwq/ListBox.h: Added.
1133         * kwq/ListBox.mm: Added.
1134         * kwq/LoaderFunctions.h: Added.
1135         * kwq/LoaderFunctions.mm: Added.
1136         * kwq/PopUpButton.h: Added.
1137         * kwq/PopUpButton.mm: Added.
1138         * kwq/SSLKeyGenerator.h: Added.
1139         * kwq/SSLKeyGenerator.mm: Added.
1140         * kwq/Settings.h: Added.
1141         * kwq/TextBox.h: Added.
1142         * kwq/TextBox.mm: Added.
1143         * kwq/TextField.h: Added.
1144         * kwq/TextField.mm: Added.
1145         * kwq/TextStream.cpp: Added.
1146         * kwq/TextStream.h: Added.
1147         * kwq/WebCoreEditCommand.h: Added.
1148         * kwq/WebCoreEditCommand.mm: Added.
1149         * kwq/WebCorePageState.h: Added.
1150         * kwq/WebCorePageState.mm: Added.
1151         * kwq/WebCoreResourceLoaderImp.h: Added.
1152         * kwq/WebCoreResourceLoaderImp.mm: Added.
1153         * kwq/WebCoreScrollBar.h: Added.
1154         * kwq/WebCoreScrollBar.mm: Added.
1155         * kwq/WebCoreSlider.h: Added.
1156         * kwq/WebCoreSlider.mm: Added.
1157         * loader/Cache.h:
1158         * loader/CachedCSSStyleSheet.cpp:
1159         * loader/CachedImage.cpp:
1160         * loader/CachedObject.h:
1161         * loader/CachedObjectClientWalker.h:
1162         * loader/CachedResource.h:
1163         * loader/CachedResourceClientWalker.h:
1164         * loader/CachedScript.h:
1165         * loader/CachedXBLDocument.h:
1166         * loader/Decoder.h:
1167         * loader/DocLoader.cpp:
1168         * loader/DocLoader.h:
1169         * loader/FormData.h:
1170         * loader/ImageDocument.cpp:
1171         * loader/PluginDocument.cpp:
1172         * loader/TextDocument.cpp:
1173         * loader/loader.cpp:
1174         * loader/loader.h:
1175         * page/Frame.cpp:
1176         * page/Frame.h:
1177         * page/FramePrivate.h:
1178         * page/Page.cpp:
1179         * page/Page.h:
1180         * platform/DeprecatedPtrList.h:
1181         * platform/DeprecatedPtrListImpl.cpp:
1182         * platform/DeprecatedPtrListImpl.h:
1183         * platform/DeprecatedString.cpp:
1184         * platform/DeprecatedString.h:
1185         * platform/DeprecatedStringList.cpp:
1186         * platform/DeprecatedStringList.h:
1187         * platform/DeprecatedValueList.h:
1188         * platform/DeprecatedValueListImpl.cpp:
1189         * platform/DeprecatedValueListImpl.h:
1190         * platform/FloatSize.h:
1191         * platform/Font.cpp:
1192         * platform/KURL.cpp:
1193         * platform/RegularExpression.cpp:
1194         * platform/RegularExpression.h:
1195         * platform/SegmentedString.h:
1196         * platform/StreamingTextDecoder.cpp:
1197         * platform/String.cpp:
1198         * platform/StringImpl.cpp:
1199         * platform/TextEncoding.cpp:
1200         * platform/TransferJob.cpp:
1201         * platform/TransferJob.h:
1202         * platform/TransferJobInternal.h:
1203         * platform/gdk/FrameGdk.cpp:
1204         * platform/gdk/TemporaryLinkStubs.cpp:
1205         * platform/mac/ClipboardMac.h:
1206         * platform/mac/ClipboardMac.mm:
1207         * platform/mac/CursorMac.mm:
1208         * platform/mac/DeprecatedStringMac.mm: Added.
1209         * platform/mac/FontCacheMac.mm:
1210         * platform/mac/FontMac.mm:
1211         * platform/mac/FoundationExtras.h:
1212         * platform/mac/ImageMac.mm:
1213         * platform/mac/KURLMac.mm:
1214         * platform/mac/MouseEventMac.mm: Removed.
1215         * platform/mac/QStringListMac.mm: Removed.
1216         * platform/mac/QStringMac.mm: Removed.
1217         * platform/mac/TransferJobMac.mm:
1218         * platform/mac/WebCoreTextArea.h:
1219         * platform/mac/WebCoreTextArea.mm:
1220         * platform/mac/WebCoreTextField.h:
1221         * platform/mac/WebCoreTextField.mm:
1222         * platform/mac/WidgetMac.mm:
1223         * platform/win/TemporaryLinkStubs.cpp:
1224         * rendering/DataRef.h:
1225         * rendering/DeprecatedRenderSelect.cpp:
1226         * rendering/DeprecatedRenderSelect.h:
1227         * rendering/DeprecatedSlider.cpp:
1228         * rendering/InlineFlowBox.cpp:
1229         * rendering/RenderApplet.cpp:
1230         * rendering/RenderBlock.cpp:
1231         * rendering/RenderBlock.h:
1232         * rendering/RenderContainer.cpp:
1233         * rendering/RenderFileButton.cpp:
1234         * rendering/RenderFlexibleBox.cpp:
1235         * rendering/RenderFlow.cpp:
1236         * rendering/RenderFormElement.cpp:
1237         * rendering/RenderFrameSet.cpp:
1238         * rendering/RenderFrameSet.h:
1239         * rendering/RenderImage.cpp:
1240         * rendering/RenderInline.cpp:
1241         * rendering/RenderLayer.cpp:
1242         * rendering/RenderLayer.h:
1243         * rendering/RenderLineEdit.cpp:
1244         * rendering/RenderListItem.cpp:
1245         * rendering/RenderListMarker.cpp:
1246         * rendering/RenderObject.cpp:
1247         * rendering/RenderObject.h:
1248         * rendering/RenderPartObject.cpp:
1249         * rendering/RenderReplaced.cpp:
1250         * rendering/RenderStyle.cpp: Added.
1251         * rendering/RenderStyle.h: Added.
1252         * rendering/RenderTable.cpp:
1253         * rendering/RenderTable.h:
1254         * rendering/RenderTableCell.cpp:
1255         * rendering/RenderTableCell.h:
1256         * rendering/RenderTableCol.cpp:
1257         * rendering/RenderTableCol.h:
1258         * rendering/RenderTableRow.cpp:
1259         * rendering/RenderTableSection.cpp:
1260         * rendering/RenderTableSection.h:
1261         * rendering/RenderText.cpp:
1262         * rendering/RenderText.h:
1263         * rendering/RenderTextArea.cpp:
1264         * rendering/RenderTextControl.cpp: Added.
1265         * rendering/RenderTextControl.h: Added.
1266         * rendering/RenderTextField.cpp: Removed.
1267         * rendering/RenderTextField.h: Removed.
1268         * rendering/RenderTheme.cpp:
1269         * rendering/RenderThemeMac.mm:
1270         * rendering/RenderTreeAsText.cpp:
1271         * rendering/RenderTreeAsText.h:
1272         * rendering/RenderView.cpp:
1273         * rendering/RenderWidget.cpp:
1274         * rendering/bidi.cpp:
1275         * rendering/render_style.cpp: Removed.
1276         * rendering/render_style.h: Removed.
1277         * xml/XSLStyleSheet.cpp:
1278         * xml/XSLTProcessor.cpp:
1279         * xml/xmlhttprequest.cpp:
1280         * xpath/impl/XPathParser.cpp:
1281
1282 2006-07-09  Rob Buis  <buis@kde.org>
1283
1284         Reviewed by Darin.
1285
1286         http://bugzilla.opendarwin.org/show_bug.cgi?id=8251
1287         navigator.platform incorrect in WebKit.app on Intel Macs
1288
1289         For navigator.platform return "MacIntel" for Intel processors, "MacPPC"
1290         otherwise.
1291
1292         * bindings/js/kjs_navigator.cpp:
1293         (KJS::Navigator::getValueProperty):
1294
1295 2006-07-08  Timothy Hatcher  <timothy@apple.com>
1296
1297         Reviewed by Maciej.
1298
1299         Bug 5312: comments aren't available via DOM
1300         http://bugzilla.opendarwin.org/show_bug.cgi?id=5312
1301
1302         <rdar://problem/4564414> getting comments via DOM isn't working (5312)
1303         <rdar://problem/4545691> DOM_COMMENT node masking out real DOM elements
1304
1305         * dom/Document.cpp:
1306         (WebCore::Document::removedLastRef): set m_documentElement to 0
1307         (WebCore::Document::childrenChanged): invalidate the document element we have cached in case it was replaced
1308         (WebCore::Document::documentElement): cache the first element as the document node if m_documentElement is 0
1309         * dom/Document.h: added m_documentElement
1310         * html/HTMLDocument.cpp: removed documentElement(), HTML documents just use Document's documentElement()
1311         * html/HTMLDocument.h: ditto
1312         * html/HTMLParser.cpp:
1313         (WebCore::HTMLParser::handleError): make a new HTML node is the document's firstChild is NULL or
1314         the firstChild is not a HTML element (like a comment)
1315         * html/HTMLTokenizer.cpp:
1316         (WebCore::HTMLTokenizer::parseComment): removed the #ifdef to include comment nodes
1317
1318 2006-07-08  Anders Carlsson  <acarlsson@apple.com>
1319
1320         Reviewed by Darin, tweaked slightly and landed by Maciej.
1321
1322         http://bugzilla.opendarwin.org/show_bug.cgi?id=9787
1323         fast/frames tests failing (bad pointer to owner element) under MallocScribble
1324         
1325         * html/HTMLFrameElement.cpp:
1326         (WebCore::HTMLFrameElement::close):
1327         Disconnect the owner element of our frame.
1328         
1329         * html/HTMLIFrameElement.cpp:
1330         (WebCore::HTMLIFrameElement::attach):
1331         Don't call setFrame here.
1332         
1333         * html/HTMLPlugInElement.cpp:
1334         (WebCore::HTMLPlugInElement::detach):
1335         Disconnect the owner element of our frame.
1336
1337         * html/HTMLPlugInElement.h:
1338         (WebCore::HTMLPlugInElement::setFrameName):        
1339         New function.
1340         
1341         * page/Frame.cpp:
1342         (WebCore::Frame::Frame):
1343         Don't call setFrame.
1344         
1345         (WebCore::Frame::~Frame):
1346         Null out the owner element.
1347         
1348         (WebCore::Frame::requestObject):
1349         When an object creates a child frame, assign it a name so it can be
1350         accessed from HTMLPlugInElement.
1351         
1352         * rendering/RenderPart.cpp:
1353         (WebCore::RenderPart::RenderPart):
1354         (WebCore::RenderPart::~RenderPart):
1355         * rendering/RenderPart.h:
1356         Get rid of setFrame.
1357
1358 2006-07-08  Darin Adler  <darin@apple.com>
1359
1360         Reviewed by Geoff.
1361
1362         - better fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9622
1363           REGRESSION: showModalDialog returnValue ignored, function result is always "undefined"
1364
1365         * bindings/js/kjs_window.cpp:
1366         (KJS::showModalDialog): Set the return value after returning from the function if the
1367         window is not cleared; this is a better way to handle the case where the window does
1368         not get cleared before returning, and handles some new cases created by slight changes
1369         in the latest Safari properly too.
1370         (KJS::Window::clear): Changed logic slightly so we always store the result of getDirect
1371         into the return value slot -- the old code left the storage untouched if it was 0.
1372         Also made it only overwrite the return value slot if it's 0.
1373
1374         * bindings/js/kjs_proxy.h:
1375         * bindings/js/kjs_proxy.cpp:
1376         * bindings/js/kjs_window.h:
1377         * bindings/js/kjs_window.cpp:
1378         * page/Frame.cpp:
1379         Roll the previous fix out.
1380
1381 2006-07-08  Darin Adler  <darin@apple.com>
1382
1383         - try to fix Windows build
1384
1385         * WebCore.vcproj/WebCore/WebCore.vcproj: Add missing source files.
1386
1387 === Safari-521.15 ===
1388
1389 2006-07-07  Justin Garcia  <justin.garcia@apple.com>
1390
1391         Reviewed by levi
1392         
1393         Fix Mail ToDo crashers.
1394
1395         * dom/Range.cpp:
1396         (WebCore::Range::compareBoundaryPoints): Added an ASSERT that both
1397         containers are non-null and an early return.
1398         * editing/Selection.cpp:
1399         (WebCore::Selection::validate): Fix a dangling start/end.
1400         (WebCore::Selection::adjustForEditableContent): Added an early return if
1401         m_start or m_end are null.
1402         (WebCore::Selection::isContentEditable): Use isRichlyEditablePosition.
1403         (WebCore::Selection::isContentRichlyEditable): Ditto.
1404         * editing/Selection.h:
1405         * editing/VisiblePosition.cpp:
1406         (WebCore::VisiblePosition::next): Use the new highestEditableRoot.
1407         (WebCore::VisiblePosition::previous): Ditto.
1408         * editing/htmlediting.cpp:
1409         (WebCore::highestEditableRoot): Takes in a position.
1410         (WebCore::isEditablePosition): Added.
1411         (WebCore::isRichlyEditablePosition): Added.
1412         (WebCore::rootEditableElement): Added.
1413         (WebCore::nextCandidate): Moved and split out from nextVisiblePosition.
1414         (WebCore::nextVisuallyDistinctCandidate): Ditto.
1415         (WebCore::previousCandidate): Moved and split out from previousVisiblePosition.
1416         (WebCore::previousVisuallyDistinctCandidate): Ditto.
1417         (WebCore::firstEditablePositionAfterPositionInRoot): Iterate over positions,
1418         using nextVisuallyDistinctCandidate, skipping atomic nodes that are non-editable.
1419         (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.
1420         * editing/htmlediting.h:
1421         * editing/visible_units.cpp:
1422         (WebCore::startOfWord): Added a FIXME.
1423
1424 2006-07-07  Levi Weintraub  <lweintraub@apple.com>
1425
1426         Reviewed by justin
1427
1428         Allowed deletion typing commands to take in a granularity
1429
1430         * bridge/mac/WebCoreFrameBridge.h: Pass granularity across the bridge
1431         * bridge/mac/WebCoreFrameBridge.mm: Ditto
1432         (-[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:]):
1433         (-[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:]):
1434         * editing/TypingCommand.cpp: Constructors take in a granularity
1435         (WebCore::TypingCommand::TypingCommand):
1436         (WebCore::TypingCommand::deleteKeyPressed):
1437         (WebCore::TypingCommand::forwardDeleteKeyPressed):
1438         * editing/TypingCommand.h: ditto
1439         * page/Frame.h: Fixed bug that shouldDeleteSelection wasn't virtual
1440
1441 2006-07-07  Brady Eidson  <beidson@apple.com>
1442
1443         Reviewed by Anders and Tim Hatcher
1444
1445         Added an accessor to a SQLite config option to change its disk-syncing behavior.
1446         Used this accessor to significantly speed up writes to the Icon DB.
1447
1448         * icon/IconDatabase.cpp:
1449         (WebCore::IconDatabase::open):  Disable full syncing to the SQLite db to speed up writes to the icondb
1450
1451         * icon/SQLDatabase.cpp:
1452         (SQLDatabase::setFullsync):
1453         (SQLDatabase::setSynchronous):
1454         * icon/SQLDatabase.h:
1455         (WebCore::SQLDatabase::):  Added accessor to the SQLite config pragma "synchronous"
1456
1457 2006-07-07  Darin Adler  <darin@apple.com>
1458
1459         Reviewed by Maciej.
1460
1461         - fixed a storage leak noticed by the buildbot
1462
1463         * dom/Document.cpp: (WebCore::Document::removedLastRef):
1464         Call delete on the markers before clearing the map containing them.
1465
1466 2006-07-08  Anders Carlsson  <acarlsson@apple.com>
1467
1468         Reviewed by Brady.
1469
1470         http://bugzilla.opendarwin.org/show_bug.cgi?id=9777
1471         Reproducible crash in Loading/Frames in ToT.
1472         
1473         The problem was that the renderpart destructor resets the frame's 
1474         owner element. For iframes, this should only be done when the element is 
1475         going to be removed from the document.
1476         
1477         * html/HTMLIFrameElement.cpp:
1478         (WebCore::HTMLIFrameElement::~HTMLIFrameElement):
1479         (WebCore::HTMLIFrameElement::willRemove):
1480         (WebCore::HTMLIFrameElement::removedFromDocument):
1481         (WebCore::HTMLIFrameElement::detach):        
1482         * html/HTMLIFrameElement.h:
1483         Remove the frame in willRemove instead.
1484         
1485         * rendering/RenderPart.cpp:
1486         (WebCore::RenderPart::RenderPart):
1487         (WebCore::RenderPart::~RenderPart):
1488         * rendering/RenderPart.h:
1489         Don't call setFrame(0) in the destructor when the element is an iframe element.
1490
1491 2006-07-07  Darin Adler  <darin@apple.com>
1492
1493         Reviewed by Anders.
1494
1495         - fixed a storage leak noticed by the buildbot
1496
1497         * page/FrameView.cpp: (WebCore::FrameViewPrivate::~FrameViewPrivate):
1498         Delete m_scheduledEvents.
1499
1500 2006-07-07  Darin Adler  <darin@apple.com>
1501
1502         Reviewed by Adele.
1503
1504         - fixed a couple of storage leaks noticed by the buildbot
1505
1506         * html/HTMLOptGroupElement.cpp: (WebCore::HTMLOptGroupElement::attach):
1507         Call deref on the style after calling setRenderStyle, since styleForRenderer
1508         returns us a "ref'd" RenderStyle object.
1509         * html/HTMLOptionElement.cpp: (WebCore::HTMLOptionElement::attach): Ditto.
1510
1511 2006-07-07  Darin Adler  <darin@apple.com>
1512
1513         Reviewed by Adele.
1514
1515         - fix some license mistakes
1516
1517         * LICENSE-APPLE: Added more years of publication to the copyright here.
1518
1519         * html/CanvasGradient.idl: Corrected license on this file. It had the wrong one.
1520         * html/CanvasPattern.idl: Ditto.
1521         * html/CanvasRenderingContext2D.idl: Ditto.
1522         * html/HTMLCanvasElement.idl: Ditto.
1523
1524 2006-07-06  Levi Weintraub  <lweintraub@apple.com>
1525
1526         Reviewed by justin
1527
1528         Improved table editing: pressing delete directly before or after a table will now select
1529         the table first, then delete it, instead of just deleting it. Useful for when the table's
1530         existence is non-obvious.
1531
1532         * bridge/mac/FrameMac.h: Added shouldDeleteSelection, which allows WebCore to trigger
1533         deletion editing deligates
1534         * bridge/mac/FrameMac.mm: ditto
1535         (WebCore::FrameMac::shouldDeleteSelection):
1536         * bridge/mac/WebCoreFrameBridge.h: ditto
1537         * editing/TypingCommand.cpp: Implemented check for a caret position next to a table, and
1538         subsequent selection (as opposed to removal)
1539         (WebCore::TypingCommand::deleteKeyPressed):
1540         (WebCore::TypingCommand::forwardDeleteKeyPressed):
1541         * page/Frame.cpp: shouldDeleteSelection added
1542         (WebCore::Frame::shouldDeleteSelection):
1543         * page/Frame.h: ditto
1544
1545 2006-07-07  Sam Weinig  <sam.weinig@gmail.com>
1546
1547         Reviewed by Eric.
1548
1549         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9768
1550           Split XSLImportRule out of XSLStyleSheet.* into separate 
1551           files (one class per file).
1552
1553         * WebCore.xcodeproj/project.pbxproj:
1554         * xml/XSLImportRule.cpp: Added.
1555         (WebCore::XSLImportRule::XSLImportRule):
1556         (WebCore::XSLImportRule::parentStyleSheet):
1557         (WebCore::XSLImportRule::loadSheet):
1558         * xml/XSLImportRule.h: Added.
1559         * xml/XSLStyleSheet.cpp:
1560         * xml/XSLStyleSheet.h:
1561
1562 2006-07-07  Anders Carlsson  <acarlsson@apple.com>
1563
1564         Reviewed by Darin.
1565
1566         http://bugzilla.opendarwin.org/show_bug.cgi?id=8300
1567         REGRESSION: First mouse click is randomly ignored when clicking on checkbox and radio buttons
1568         
1569         * css/html4.css:
1570         Set "-webkit-user-select: ignore" on radio buttons and check boxes .
1571         
1572 2006-07-07  Maciej Stachowiak  <mjs@apple.com>
1573
1574         Reviewed by Tim Hatcher.
1575
1576         - fix 20 Node leaks on fast/events tests - these should be the last ones
1577
1578         * bindings/objc/DOMEvents.mm:
1579         (-[DOMEvent dealloc]): implement - deref the event!
1580         (-[DOMEvent finalize]): ditto
1581
1582 2006-07-06  Maciej Stachowiak  <mjs@apple.com>
1583
1584         Reviewed by Tim Hatcher.
1585
1586         - fix 26 Node leaks on fast/dom tests
1587
1588         * dom/Document.cpp:
1589         (WebCore::Document::removedLastRef): delete tokenizer - if we are still parsing at this point, we don't
1590         want nodes held by the parser to keep the document alive.
1591         * html/HTMLParser.cpp:
1592         (WebCore::RefNonDocNodePtr::RefNonDocNodePtr): Smart pointer that acts like RefPtr for Node,
1593         but avoids refing document nodes to avoid cycles.
1594         (WebCore::RefNonDocNodePtr::~RefNonDocNodePtr):
1595         (WebCore::RefNonDocNodePtr::get):
1596         (WebCore::RefNonDocNodePtr::operator*):
1597         (WebCore::RefNonDocNodePtr::operator->):
1598         (WebCore::RefNonDocNodePtr::operator!):
1599         (WebCore::RefNonDocNodePtr::operator UnspecifiedBoolType):
1600         (WebCore::RefNonDocNodePtr::operator=):
1601         (WebCore::operator==):
1602         (WebCore::operator!=):
1603         (WebCore::HTMLStackElem): Use a RefNonDocNodePtr instead of RefPtr<Node>
1604         (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): Use a RefPtr here to avoid crashing
1605
1606 2006-07-06  Adele Peterson  <adele@apple.com>
1607
1608         Reviewed by Maciej.
1609
1610         Fixed new popup control to open up when the spacebar and the up and down arrows are pressed.
1611
1612         - Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=9762
1613         [Native pop up] Highlighted item text is black instead of white
1614
1615         * html/HTMLSelectElement.cpp:
1616         (WebCore::HTMLSelectElement::isKeyboardFocusable): Added.
1617         (WebCore::HTMLSelectElement::isMouseFocusable): Added.
1618         (WebCore::HTMLSelectElement::defaultEventHandler): Updated to showPopup for up and down arrow keys and spacebar.
1619         * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::shouldUseMenuList): Made this const.
1620         * rendering/RenderPopupMenu.cpp: (WebCore::RenderPopupMenu::populate): Added FIXME.
1621         * rendering/RenderPopupMenuMac.mm:
1622         (WebCore::RenderPopupMenuMac::showPopup): Updated to save the NSEvent that triggers the popup, so we can send
1623         fake mouseUp and keyUp events when the NSMenu returns.
1624         (WebCore::RenderPopupMenuMac::addGroupLabel): Only set the NSForegroundColorAttributeName attribute if the text isn't black.
1625         Follow-up bug about other colors: http://bugzilla.opendarwin.org/show_bug.cgi?id=9769
1626         (WebCore::RenderPopupMenuMac::addOption): ditto.
1627         * bridge/mac/FrameMac.h: (WebCore::FrameMac::currentEvent): Returns the current NSEvent.
1628
1629 2006-07-06  Justin Garcia  <justin.garcia@apple.com>
1630
1631         Reviewed by levi
1632         
1633         <rdar://problem/4609184>
1634         Mail crashes at WebCore::Selection::adjustForEditableContent
1635         <rdar://problem/4609140>
1636         Crash at WebCore::Range::compareBoundaryPoints
1637         
1638         * editing/Selection.cpp:
1639         (WebCore::Selection::adjustForEditableContent):
1640         * editing/VisiblePosition.cpp:
1641         (WebCore::VisiblePosition::next): Moved code into a helper function.
1642         (WebCore::VisiblePosition::previous): Ditto.
1643         * editing/htmlediting.cpp:
1644         (WebCore::comparePositions): Moved from Selection.cpp.
1645         (WebCore::lowestEditableAncestor): Added.  Returns rootEditableElement
1646         for a node in editable content and the rootEditableElement for the first
1647         ancestor that's editable for a node in non-editable content.
1648         (WebCore::firstEditablePositionAfterPositionInRoot): 
1649         (WebCore::lastEditablePositionBeforePositionInRoot):
1650         * editing/htmlediting.h:
1651
1652 2006-07-06  Anders Carlsson  <acarlsson@apple.com>
1653
1654         Reviewed by Adele.
1655
1656         http://bugzilla.opendarwin.org/show_bug.cgi?id=9528
1657         REGRESSION: arrow key skips '>' in Bugzilla replies due to '\n' in text nodes
1658         
1659         Patch by Darin, tweaked by Anders.
1660         
1661         * html/HTMLElement.cpp:
1662         (WebCore::HTMLElement::setInnerText):
1663         Convert newline characters to <br> elements. I've verified that what's done here is what WinIE does when setting innerText.
1664         
1665         (WebCore::HTMLElement::setOuterText):
1666         Fix comment.
1667
1668         * rendering/RenderTextField.cpp:
1669         (WebCore::RenderTextField::textWithHardLineBreaks):
1670         Remove assert. m_div->firstChild() can be null now because setInnerText doesn't create
1671         text nodes for empty strings anymore.
1672
1673 2006-07-06  Adele Peterson  <adele@apple.com>
1674
1675         Reviewed by Tim Hatcher.
1676
1677         - Speculative fix for <rdar://problem/4605532> unrepro crash at cnn.com after upgrading to 10.4.7 (but happening with 10.4.6 too)
1678
1679         * page/FrameView.cpp: (WebCore::FrameView::layout): Ref's the view during layout, since a recalcStyle could cause the view to be deleted.
1680         If we get back from recalcStyle, and there's only one ref, return early since the the view will be deleted when we exit layout.
1681         * page/FrameView.h: (WebCore::FrameView::hasOneRef): Added.
1682
1683 2006-07-06  Anders Carlsson  <acarlsson@apple.com>
1684
1685         Reviewed by Maciej.
1686
1687         <rdar://problem/4610891> Support overflow events
1688         
1689         * DerivedSources.make:
1690         Add generated sources.
1691         
1692         * WebCore.xcodeproj/project.pbxproj:
1693         Add new files.
1694         
1695         * bindings/js/kjs_events.cpp:
1696         (KJS::toJS):
1697         Support creating wrappers for overflow events..
1698         
1699         * bindings/objc/DOMEvents.h:
1700         * bindings/objc/DOMEvents.mm:
1701         (+[DOMEvent _eventWith:]):
1702         (-[DOMOverflowEvent _overflowEvent]):
1703         (-[DOMOverflowEvent orient]):
1704         (-[DOMOverflowEvent horizontalOverflow]):
1705         (-[DOMOverflowEvent verticalOverflow]):
1706         Add Objective-C wrapper for overflow events.
1707         
1708         * dom/Event.cpp:
1709         (WebCore::Event::isOverflowEvent):        
1710         * dom/Event.h:
1711         * dom/EventNames.h:
1712         * dom/OverflowEvent.cpp: Added.
1713         (WebCore::OverflowEvent::OverflowEvent):
1714         (WebCore::OverflowEvent::isOverflowEvent):
1715         * dom/OverflowEvent.h: Added.
1716         (WebCore::OverflowEvent::):
1717         (WebCore::OverflowEvent::orient):
1718         (WebCore::OverflowEvent::horizontalOverflow):
1719         (WebCore::OverflowEvent::verticalOverflow):
1720         * dom/OverflowEvent.idl: Added.
1721         Add overflow events.
1722         
1723         * page/FrameView.cpp:
1724         (WebCore::FrameViewPrivate::FrameViewPrivate):
1725         (WebCore::FrameView::applyOverflowToViewport):        
1726         (WebCore::FrameView::layout):
1727         Dispatch any scheduled events when layout is done.
1728         
1729         (WebCore::FrameView::scheduleEvent):
1730         New function which schedules an event.
1731         
1732         (WebCore::FrameView::updateOverflowStatus):
1733         Update overflow status for the viewport.
1734         
1735         (WebCore::FrameView::dispatchScheduledEvents):
1736         New function which dispatches all scheduled events.
1737         
1738         * page/FrameView.h:
1739         Add declarations.
1740         
1741         * rendering/RenderLayer.cpp:
1742         (WebCore::RenderLayer::RenderLayer):
1743         (WebCore::RenderLayer::updateOverflowStatus):
1744         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
1745         * rendering/RenderLayer.h:
1746         Schedule overflow events when overflow status changes.
1747
1748 2006-07-06  Timothy Hatcher  <timothy@apple.com>
1749
1750         Reviewed by Geoff.
1751
1752         <rdar://problem/4610881> Expose scroll-related JS properties to ObjC DOM interface
1753         <rdar://problem/4519675> offsetLeft, offsetTop, offsetHeight, and offsetWidth
1754         properties are not exposed to ObjC
1755
1756         * bindings/objc/DOMPrivate.h:
1757         * bindings/objc/DOMHTML.mm:
1758         (-[DOMHTMLElement offsetLeft]):
1759         (-[DOMHTMLElement offsetTop]):
1760         (-[DOMHTMLElement offsetWidth]):
1761         (-[DOMHTMLElement offsetHeight]):
1762         (-[DOMHTMLElement offsetParent]):
1763         (-[DOMHTMLElement clientWidth]):
1764         (-[DOMHTMLElement clientHeight]):
1765         (-[DOMHTMLElement scrollLeft]):
1766         (-[DOMHTMLElement setScrollLeft:]):
1767         (-[DOMHTMLElement scrollTop]):
1768         (-[DOMHTMLElement setScrollTop:]):
1769         (-[DOMHTMLElement scrollWidth]):
1770         (-[DOMHTMLElement scrollHeight]):
1771
1772 2006-07-06  Maciej Stachowiak  <mjs@apple.com>
1773
1774         Reviewed by Adele.
1775
1776         - fix 435 more layout tests Node leaks
1777
1778         * editing/CompositeEditCommand.cpp:
1779         (WebCore::CompositeEditCommand::moveParagraphs): fix more instances of leaked DOM ranges
1780
1781 2006-07-06  David Harrison  <harrison@apple.com>
1782
1783         Reviewed by Geoff
1784
1785         <rdar://problem/4565031> innerHTML of XMP tag returns special characters like '&gt;' instead of '>'
1786  
1787         Test: fast/innerHTML/006.html
1788        
1789         * editing/markup.cpp:
1790         (WebCore::startMarkup):
1791         (WebCore::createMarkup):
1792         Do not special quote content of XMP nodes.
1793
1794 2006-07-06  Maciej Stachowiak  <mjs@apple.com>
1795
1796         Not reviewed - build fix.
1797
1798         - back out earlier leak fix, as it caused a crash on one of the fast/invalid layout tests
1799
1800         * dom/Document.cpp:
1801         (WebCore::Document::removedLastRef):
1802         * html/HTMLParser.cpp:
1803         (WebCore::HTMLStackElem::HTMLStackElem):
1804         (WebCore::HTMLParser::popNestedHeaderTag):
1805         (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
1806         (WebCore::HTMLParser::reopenResidualStyleTags):
1807         (WebCore::HTMLParser::popBlock):
1808         (WebCore::HTMLParser::popOneBlock):
1809
1810 2006-07-06  Maciej Stachowiak  <mjs@apple.com>
1811
1812         Reviewed by Anders.
1813
1814         - fix ~3000 Node leaks on the editing tests
1815
1816         * editing/CompositeEditCommand.cpp:
1817         (WebCore::CompositeEditCommand::moveParagraphs): put a newly created Range in a RefPtr
1818         to avoid leaking it, as this leaks the whole document.
1819
1820 2006-07-06  Maciej Stachowiak  <mjs@apple.com>
1821
1822         Reviewed by Anders.
1823
1824         - fix 26 Node leaks on various fast/dom tests
1825
1826         * dom/Document.cpp:
1827         (WebCore::Document::removedLastRef): Delete the tokenizer here, since if we are in mid-parse,
1828         the parser might hold refs on some of our children that have self-only refs.
1829         * html/HTMLParser.cpp:
1830         (WebCore::HTMLStackElem::HTMLStackElem): don't ref the node if it is a document to avoid ref cycles
1831         (WebCore::HTMLStackElem::~HTMLStackElem): ditto
1832         (WebCore::HTMLStackElem::node): changed interface a bit to support the above
1833         (WebCore::HTMLStackElem::setNode): ditto
1834         (WebCore::HTMLParser::popNestedHeaderTag): use new interface to HTMLStackElem
1835         (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): ditto
1836         (WebCore::HTMLParser::reopenResidualStyleTags): ditto
1837         (WebCore::HTMLParser::popBlock): ditto
1838         (WebCore::HTMLParser::popOneBlock): ditto
1839
1840 2006-07-06  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1841
1842         Reviewed by Adele.
1843         
1844         * rendering/RenderMenuList.h:
1845         (WebCore::RenderMenuList::createsAnonymousWrapper): This method replaces
1846         allowsReusingAnonymousChild() and has the opposite meaning.
1847         
1848 2006-07-05  Adele Peterson  <adele@apple.com>
1849
1850         Build fixes.
1851
1852         * WebCore.vcproj/WebCore/WebCore.vcproj:
1853         * platform/win/TemporaryLinkStubs.cpp:
1854         * rendering/RenderMenuList.cpp:
1855         (WebCore::RenderMenuList::calcMinMaxWidth):
1856         * rendering/RenderPopupMenuWin.h:
1857         (WebCore::RenderPopupMenuWin::RenderPopupMenuWin):
1858         * rendering/RenderThemeWin.cpp:
1859
1860 2006-07-05  Maciej Stachowiak  <mjs@apple.com>
1861
1862         Reviewed by Adele.
1863
1864         - fix 308 Node leaks on the editing layout tests
1865
1866         * dom/Document.cpp: (WebCore::Document::removedLastRef): Clear the markers once there
1867         are no real refs on the document, otherwise a self-only reference cycle w/ the document
1868         can occur.
1869
1870 2006-07-05  Adele Peterson  <adele@apple.com>
1871
1872         Reviewed by Maciej and Hyatt.
1873
1874         Initial implementation of popup menu control.  This can be turned on by setting -webkit-appearance: menulist on a select element.
1875
1876         * WebCore.xcodeproj/project.pbxproj: Added RenderMenuList.h, RenderMenuList.cpp, RenderPopupMenu.h, RenderPopupMenu.cpp, 
1877         RenderPopupMenuWin.h, RenderPopupMenuMac.h, RenderPopupMenuMac.mm, 
1878     
1879         * dom/Node.cpp:
1880         (WebCore::Node::renderStyle): Added. Returns the renderer's style.  If there's no renderer, returns's a RenderStyle that's kept by the node.
1881         This is important for HTMLOptGroupElement and HTMLOptionElement, which don't have renderers.
1882         (WebCore::Node::setRenderStyle): Added.
1883         * dom/Node.h:
1884         * dom/Element.cpp: (WebCore::Element::recalcStyle): Updated to use renderStyle so recalcStyle will work for HTMLOptionElements and HTMLOptGroupElements.
1885            
1886         * css/cssstyleselector.cpp: Updated to call renderStyle method on the node, so resolving style works on elements w/o renderers that cache style. 
1887         (WebCore::CSSStyleSelector::initForStyleResolve):
1888         (WebCore::CSSStyleSelector::locateCousinList):
1889         (WebCore::CSSStyleSelector::canShareStyleWithElement):
1890         (WebCore::CSSStyleSelector::locateSharedStyle):
1891         (WebCore::CSSStyleSelector::checkOneSelector):
1892
1893         * css/html4.css: Removed display:none from options and optgroups, since we're now caching style for these elements.
1894         Added font-weight styles for option and optgroup.
1895         
1896         * html/HTMLOptGroupElement.h: Added m_style to keep track of a RenderStyle for the element, even though we aren't creating a renderer.
1897         This will allow us to honor style for optgroups and options for popup menus (and eventually list boxes too).
1898         (WebCore::HTMLOptGroupElement::rendererIsNeeded): Added.
1899         (WebCore::HTMLOptGroupElement::renderStyle): Added.
1900         * html/HTMLOptionElement.h: ditto.
1901         (WebCore::HTMLOptionElement::rendererIsNeeded): Added.
1902         (WebCore::HTMLOptionElement::renderStyle): Added.
1903         
1904         * html/HTMLOptGroupElement.cpp:
1905         (WebCore::HTMLOptGroupElement::HTMLOptGroupElement): Initialize m_style.
1906         (WebCore::HTMLOptGroupElement::attach): Set the renderStyle.
1907         (WebCore::HTMLOptGroupElement::detach): Clear m_style.
1908         (WebCore::HTMLOptGroupElement::setRenderStyle): Added.
1909         (WebCore::HTMLOptGroupElement::groupLabelText): Added.
1910         * html/HTMLOptionElement.cpp: ditto.
1911         (WebCore::HTMLOptionElement::HTMLOptionElement):
1912         (WebCore::HTMLOptionElement::attach):
1913         (WebCore::HTMLOptionElement::detach):
1914         (WebCore::HTMLOptionElement::setRenderStyle):
1915         (WebCore::HTMLOptionElement::optionText):
1916
1917         * html/HTMLSelectElement.cpp: Added code to use the new RenderMenuList if the appearance is set to MenuListAppearance, 
1918         and if we're not creating a list box renderer.
1919         (WebCore::HTMLSelectElement::recalcStyle):
1920         (WebCore::HTMLSelectElement::createRenderer):
1921         (WebCore::HTMLSelectElement::setRecalcListItems):
1922         (WebCore::HTMLSelectElement::reset):
1923         (WebCore::HTMLSelectElement::notifyOptionSelected):
1924         (WebCore::HTMLSelectElement::defaultEventHandler):
1925         * html/HTMLSelectElement.h:
1926
1927         * WebCore.exp: Added _wkPopupMenu.
1928         * platform/mac/WebCoreSystemInterface.h: Added wkPopupMenu to get the NSMenu to pop up.
1929         * platform/mac/WebCoreSystemInterface.mm:
1930
1931         * platform/win/TemporaryLinkStubs.cpp: Added stubs for RenderPopupMenuWin.
1932         (RenderPopupMenuWin::RenderPopupMenuWin):
1933         (RenderPopupMenuWin::~RenderPopupMenuWin):
1934         (RenderPopupMenuWin::clear):
1935         (RenderPopupMenuWin::populate):
1936         (RenderPopupMenuWin::showPopup):
1937         (RenderPopupMenuWin::addSeparator):
1938         (RenderPopupMenuWin::addGroupLabel):
1939         (RenderPopupMenuWin::addOption):
1940         * rendering/RenderPopupMenuWin.h: Added.
1941
1942         * rendering/RenderPopupMenu.cpp: Added.
1943         (WebCore::RenderPopupMenu::RenderPopupMenu):
1944         (WebCore::RenderPopupMenu::~RenderPopupMenu):
1945         (WebCore::RenderPopupMenu::clear):
1946         (WebCore::RenderPopupMenu::populate): Walks the DOM tree, and adds separators, options, and group labels to the RenderPopupMenu.
1947         (WebCore::RenderPopupMenu::showPopup):
1948         (WebCore::RenderPopupMenu::addSeparator):
1949         (WebCore::RenderPopupMenu::addGroupLabel):
1950         (WebCore::RenderPopupMenu::addOption):
1951         * rendering/RenderPopupMenu.h: Added.
1952         (WebCore::RenderPopupMenu::renderName):
1953         (WebCore::RenderPopupMenu::getRenderMenuList):
1954         * rendering/RenderPopupMenuMac.h: Added.
1955         * rendering/RenderPopupMenuMac.mm: Added.
1956         (WebCore::RenderPopupMenuMac::RenderPopupMenuMac):
1957         (WebCore::RenderPopupMenuMac::~RenderPopupMenuMac):
1958         (WebCore::RenderPopupMenuMac::clear): Removes all items from the menu.
1959         (WebCore::RenderPopupMenuMac::populate): Disables menuChangedMessages before populating the menu.
1960         (WebCore::RenderPopupMenuMac::showPopup): Calculates the right position, and calls wkPopupMenu.
1961         (WebCore::RenderPopupMenuMac::addSeparator):
1962         (WebCore::RenderPopupMenuMac::addGroupLabel):
1963         (WebCore::RenderPopupMenuMac::addOption):
1964         
1965         * rendering/RenderMenuList.cpp: Added.
1966         (WebCore::RenderMenuList::RenderMenuList):
1967         (WebCore::RenderMenuList::addChild):
1968         (WebCore::RenderMenuList::removeChild):
1969         (WebCore::RenderMenuList::setStyle):
1970         (WebCore::RenderMenuList::updateFromElement): If the options have changed, iterate through the children to find the menu item with the widest text.
1971         Set the button text to the selected item's text.
1972         (WebCore::RenderMenuList::setText):
1973         (WebCore::RenderMenuList::paintObject):
1974         (WebCore::RenderMenuList::baselinePosition):
1975         (WebCore::RenderMenuList::calcMinMaxWidth):
1976         (WebCore::RenderMenuList::showPopup):
1977         (WebCore::RenderMenuList::layout):
1978         (WebCore::RenderMenuList::updateSelection):
1979         (WebCore::RenderMenuList::valueChanged):
1980         * rendering/RenderMenuList.h: Added.
1981         (WebCore::RenderMenuList::removeLeftoverAnonymousBoxes):
1982         (WebCore::RenderMenuList::allowsReusingAnonymousChild):
1983         (WebCore::RenderMenuList::canHaveChildren):
1984         (WebCore::RenderMenuList::renderName):
1985         (WebCore::RenderMenuList::setOptionsChanged):
1986         (WebCore::RenderMenuList::selectionChanged):
1987         (WebCore::RenderMenuList::setSelectionChanged):
1988         (WebCore::RenderMenuList::hasPopupMenu):
1989
1990         * rendering/RenderTheme.cpp: Added cases for MenuListAppearance.
1991         (WebCore::RenderTheme::adjustStyle):
1992         (WebCore::RenderTheme::paint):
1993         (WebCore::RenderTheme::paintBorderOnly):
1994         (WebCore::RenderTheme::isControlStyled):
1995         (WebCore::RenderTheme::adjustMenuListStyle):
1996         (WebCore::RenderTheme::createPopupMenu): creates platform-specific RenderPopupMenu.
1997         * rendering/RenderTheme.h:
1998         (WebCore::RenderTheme::sizeOfArrowControl): Added. 
1999         (WebCore::RenderTheme::paintMenuList): Added.
2000         * rendering/RenderThemeMac.h:
2001         * rendering/RenderThemeMac.mm:
2002         (WebCore::RenderThemeMac::adjustRepaintRect):
2003         (WebCore::RenderThemeMac::paintMenuList):
2004         (WebCore::RenderThemeMac::adjustMenuListStyle):
2005         (WebCore::RenderThemeMac::setPopupButtonCellState):
2006         (WebCore::RenderThemeMac::createPopupMenu):
2007         (WebCore::RenderThemeMac::sizeOfArrowControl):
2008         * rendering/RenderThemeWin.cpp: (WebCore::RenderThemeWin::createPopupMenu):
2009         * rendering/RenderThemeWin.h:
2010
2011 2006-07-05  Brady Eidson  <beidson@apple.com>
2012
2013         Reviewed by Tim Omernick.
2014
2015         IconDatabase now respects private browsing via the use of in memory, temporary tables
2016
2017         * bridge/mac/WebCoreIconDatabaseBridge.mm:
2018         (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
2019         (-[WebCoreIconDatabaseBridge iconURLForPageURL:]): Renamed WebCore::IconDatabase methods, changes reflected here
2020
2021         * icon/IconDatabase.cpp:
2022         (WebCore::IconDatabase::clearDatabase):
2023         (WebCore::IconDatabase::deletePrivateTables):
2024         (WebCore::IconDatabase::imageDataForIconID):
2025         (WebCore::IconDatabase::imageDataForIconURL):
2026         (WebCore::IconDatabase::imageDataForPageURL):
2027         (WebCore::IconDatabase::setPrivateBrowsingEnabled):
2028         (WebCore::IconDatabase::iconForPageURL):
2029         (WebCore::IconDatabase::iconURLForPageURL):
2030         (WebCore::IconDatabase::setIconDataForIconURL):
2031         (WebCore::IconDatabase::performSetIconDataForIconID):
2032         (WebCore::IconDatabase::establishTemporaryIconIDForEscapedIconURL):
2033         (WebCore::IconDatabase::establishIconIDForEscapedIconURL):
2034         (WebCore::IconDatabase::setHaveNoIconForIconURL):
2035         (WebCore::IconDatabase::setIconURLForPageURL):
2036         (WebCore::IconDatabase::performSetIconURLForPageURL):
2037         (WebCore::IconDatabase::hasIconForIconURL):
2038         -Some style/comment cleanups, but mainly putting private browsing handling in place
2039
2040         * icon/IconDatabase.h:  Some methods added, others renamed, some comments added
2041
2042         * icon/SQLStatement.cpp:
2043         (WebCore::SQLStatement::getColumnName):
2044         (WebCore::SQLStatement::getColumnName16):
2045         (WebCore::SQLStatement::getColumnText):
2046         (WebCore::SQLStatement::getColumnText16):
2047         -The above 4 had changes to return String() for empty results instead of "" as it's less expensive;
2048
2049 2006-07-05  John Sullivan  <sullivan@apple.com>
2050
2051         Reviewed by Darin and Adele.
2052         
2053         - fixed <rdar://problem/4609162> REGRESSION: When tabbing between links on a page, 
2054         the window doesn't scroll to link that's not in view
2055
2056         * html/HTMLAnchorElement.cpp:
2057         * html/HTMLAnchorElement.h:
2058         removed HTMLAnchorElement::focus and HTMLAnchorElement::blur. 
2059         
2060         HTMLAnchorElement::focus just called document()->setFocusNode(). The scroll-to-reveal
2061         code used to be inside document()->setFocusNode(), but now it's in Element::focus, and this override
2062         was preventing that code from running.
2063         
2064         HTMLAnchorElement::blur was exactly the same implementation as Element::blur (and there aren't any
2065         other implementations of ::blur in the class hierarchy in between). This change has no practical
2066         effect, other than removing duplicate code.
2067         
2068         Adele and I think that it was an oversight not to remove these two methods on 12/20/05
2069         these methods were removed from HTMLButtonElementImpl and HTMLInputElementImpl.
2070
2071 2006-07-05  Anders Carlsson  <acarlsson@apple.com>
2072
2073         * bridge/win/FrameWin.cpp:
2074         (WebCore::FrameWin::FrameWin):
2075         * bridge/win/FrameWin.h:
2076         * platform/win/TemporaryLinkStubs.cpp:
2077         (FrameWin::createFrame):
2078         Fix Win32 build.
2079
2080 2006-07-05  Anders Carlsson  <acarlsson@apple.com>
2081
2082         * WebCore.xcodeproj/project.pbxproj:
2083         Revert accidental change of debug format to DWARF.
2084
2085 2006-07-05  Anders Carlsson  <acarlsson@apple.com>
2086
2087         Reviewed by Maciej.
2088
2089         http://bugzilla.opendarwin.org/show_bug.cgi?id=3581
2090         iFrames set to display:none are Missing from frames array
2091
2092         * bridge/mac/FrameMac.h:
2093         * bridge/mac/FrameMac.mm:
2094         (WebCore::FrameMac::FrameMac):
2095         (WebCore::FrameMac::createFrame):
2096         * bridge/mac/WebCoreFrameBridge.h:
2097         * bridge/mac/WebCoreFrameBridge.mm:
2098         (-[WebCoreFrameBridge initSubframeWithOwnerElement:]):
2099         (-[WebCoreFrameBridge installInFrame:]):
2100         Modify to pass the owner element instead of the owner renderer.        
2101
2102         * dom/ContainerNode.cpp:
2103         (WebCore::ContainerNode::insertBefore):
2104         (WebCore::ContainerNode::replaceChild):
2105         (WebCore::ContainerNode::appendChild):
2106         Dispatch the node inserted events before attaching the nodes. This is what the
2107         tokenizer does.
2108         
2109         * html/HTMLFrameElement.cpp:
2110         (WebCore::HTMLFrameElement::openURL):
2111         (WebCore::HTMLFrameElement::attach):
2112         Pass the element to requestFrame.
2113         
2114         (WebCore::HTMLFrameElement::setLocation):
2115         Don't call attach/detach on an iframe.
2116
2117         * html/HTMLIFrameElement.cpp:
2118         (WebCore::HTMLIFrameElement::insertedIntoDocument):
2119         Load the frame here (using openURL).
2120         
2121         (WebCore::HTMLIFrameElement::removedFromDocument):
2122         Call frameDetached.
2123         
2124         (WebCore::HTMLIFrameElement::attach):
2125         If there's a renderer, attach the content frame to it.
2126         
2127         (WebCore::HTMLIFrameElement::detach):
2128         Reset the renderer's frame.
2129         
2130         (WebCore::HTMLIFrameElement::openURL):
2131         Modify to request the frame.
2132         
2133         * html/HTMLIFrameElement.h:
2134         Add detach.
2135         
2136         * page/Frame.cpp:
2137         (WebCore::parentFromOwnerElement):
2138         (WebCore::Frame::Frame):
2139         (WebCore::Frame::~Frame):
2140         (WebCore::Frame::requestFrame):
2141         (WebCore::Frame::requestObject):
2142         (WebCore::Frame::loadSubframe):
2143         (WebCore::Frame::ownerElement):
2144         (WebCore::Frame::ownerRenderer):
2145         (WebCore::Frame::disconnectOwnerElement):
2146         * page/Frame.h:
2147         * page/FramePrivate.h:
2148         (WebCore::FramePrivate::FramePrivate):        
2149         * rendering/RenderPart.cpp:
2150         (WebCore::RenderPart::setFrame):
2151         Modify to keep an owner element around instead of the renderer. 
2152         
2153         * rendering/RenderPartObject.cpp:
2154         (WebCore::RenderPartObject::updateWidget):
2155         Don't do anything for iframes.
2156
2157 2006-07-04  Kevin Ollivier  <kevino@theolliviers.com>
2158
2159         Reviewed by Maciej, reworked a bit by Darin.
2160
2161         Compile fixes for wx port / gcc 4.0.2
2162         
2163         * platform/PlatformString.h:
2164         * platform/StringImpl.h:
2165         Include CoreFoundation for CF-specific code.
2166         
2167         * dom/DocPtr.h:
2168         * doc/EventTargetNode.h:
2169         Silence warnings about 'extra tokens' after #endif on gcc 4.0.2.
2170         (Not an error but warnings appear frequently.)
2171         
2172         * WebCoreSources.bkl:
2173         * webcore-base.bkl:
2174         Synching ports sources file with TOT. Also, making sure SRCDIR variable
2175         overrides any previous values.
2176         
2177         * loader/ImageDocument.cpp:
2178         Use PLATFORM(MAC) for the parts that are specific to the Macintosh version,
2179         and move the Objective-C parts to another file.
2180
2181         * loader/mac/ImageDocumentMac.h: Added.
2182         * loader/mac/ImageDocumentMac.mm: Added.
2183
2184 2006-07-04  Sam Weinig  <sam.weinig@gmail.com>
2185
2186         Build fix.
2187
2188         * platform/Color.cpp:
2189         (WebCore::makeRGBAFromHSLA):
2190
2191 2006-07-02  David Carson  <dacarson@gmail.com>
2192
2193         Reviewed by Darin.
2194   
2195         - Added HSL color support as specified in CSS3 spec.
2196         http://bugzilla.opendarwin.org/show_bug.cgi?id=9506
2197         Added parsing support of hsl(h,s,l) and hsla(h,s,l,a)
2198         Added converting code to convert HSL to RGB
2199
2200         * css/cssparser.cpp:
2201         (WebCore::CSSParser::parseColorParameters):
2202         Moved common code to parse RGB/RGBA values into it's
2203         own function. This code was duplicated in the parseColorFromValue()
2204         method.
2205         (WebCore::CSSParser::parseHSLParameters):
2206         Common code to parse HSL/HSLA values.
2207         (WebCore::CSSParser::parseColorFromValue):
2208         Moved RGB/RGBA parsing out to seperate function as the code was
2209         duplicated. 
2210         Added parsing support for hsl( and hsla(
2211         * css/cssparser.h:
2212         Added two new functions parseColorParameters() and 
2213         parseHSLParameters().
2214         * platform/Color.cpp:
2215         (WebCore::calcHue):
2216         Added Hue parameter to RGB color.
2217         (WebCore::makeRGBAFromHSLA):
2218         New function to convert HSLA to RGBA.
2219         * platform/Color.h:
2220         Added new functions makeRGBAFromHSLA() and calcHue().
2221
2222 2006-07-02  Mike Emmel  <mike.emmel@gmail.com>
2223
2224         Reviewed and landed by ggaren.
2225
2226         * platform/gdk/TransferJobManager.cpp
2227         Fixed broken dowload logic
2228         * platform/gdk/ScrollViewGdk.cpp 
2229         Add comment that scrollbarSize is a temporary variable
2230         * Projects/gdk/webcore-gdk.bkl
2231         Defined NDEBUG build executable is miscompiled otherwise
2232         * WebCoreSources.bkl
2233         added icon/SiteIcon.cpp editing/IndentOutdentCommand.cpp 
2234         html/HTMLViewSourceDocument.cpp
2235
2236 2006-07-02  Shawn Stricker  <kb1ibt@gmail.com>
2237
2238         Reviewed by Timothy Hatcher.  Build fix for Linux.
2239
2240         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9684
2241           [GDK] multiple little fixes and a few new things for Templinkstubs
2242
2243         * platform/gdk/ScrollViewGdk.cpp:
2244         (WebCore::ScrollView::setDrawable): Changed SCROLLBAR_SIZE to scrollbarSize.
2245         * platform/gdk/TemporaryLinkStubs.cpp:
2246         (Image::drawTiled): Added missing parameter to argument list.
2247         * platform/gdk/TransferJobManager.cpp:
2248         (WebCore::writeCallback): Added missing parenthesis to static_cast.
2249
2250 2006-07-02  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2251
2252         Reviewed by Darin.
2253
2254         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9674
2255           REGRESSION (r15075): Blank or incomplete pages on digg.com
2256
2257         Replaced the requestingScript state bit added in the fix for bug 9317
2258         with a m_requestingScript bool that is set before and restored
2259         after calling ref() on a CachedScript.
2260         
2261         Test: fast/tokenizer/nested-cached-scripts.html
2262
2263         * html/HTMLTokenizer.cpp:
2264         (WebCore::HTMLTokenizer::HTMLTokenizer):
2265         (WebCore::HTMLTokenizer::begin):
2266         (WebCore::HTMLTokenizer::scriptHandler):
2267         (WebCore::HTMLTokenizer::notifyFinished):
2268         * html/HTMLTokenizer.h:
2269         (WebCore::HTMLTokenizer::State::):
2270
2271 2006-07-01  David Kilzer  <ddkilzer@kilzer.net>
2272
2273         Reviewed by NOBODY (build fix).
2274
2275         * platform/gdk/TransferJobManager.cpp:
2276         (WebCore::writeCallback): Changed 'static_cat' to 'static_cast'.
2277
2278 2006-06-30  Mike Emmel  <mike.emmel@gmail.com>
2279
2280         Reviewed and worked over a lot by Darin.
2281
2282         - check in first set of GDK-specific sources
2283
2284         * platform/gdk/BrowserExtensionGdk.h: Added.
2285         * platform/gdk/CookieJarGdk.cpp: Added.
2286         * platform/gdk/CursorGdk.cpp: Added.
2287         * platform/gdk/FontCacheGdk.cpp: Added.
2288         * platform/gdk/FontDataGdk.cpp: Added.
2289         * platform/gdk/FontGdk.cpp: Added.
2290         * platform/gdk/FontPlatformData.h: Added.
2291         * platform/gdk/FontPlatformDataGdk.cpp: Added.
2292         * platform/gdk/FrameGdk.cpp: Added.
2293         * platform/gdk/FrameGdk.h: Added.
2294         * platform/gdk/GlyphMapGdk.cpp: Added.
2295         * platform/gdk/KeyEventGdk.cpp: Added.
2296         * platform/gdk/KeyboardCodes.h: Added.
2297         * platform/gdk/MouseEventGdk.cpp: Added.
2298         * platform/gdk/PageGdk.cpp: Added.
2299         * platform/gdk/RenderThemeGdk.cpp: Added.
2300         * platform/gdk/RenderThemeGdk.h: Added.
2301         * platform/gdk/ScreenGdk.cpp: Added.
2302         * platform/gdk/ScrollViewGdk.cpp: Added.
2303         * platform/gdk/SharedTimerLinux.cpp: Added.
2304         * platform/gdk/SystemTimeLinux.cpp: Added.
2305         * platform/gdk/TemporaryLinkStubs.cpp: Added.
2306         * platform/gdk/TransferJobCurl.cpp: Added.
2307         * platform/gdk/TransferJobManager.cpp: Added.
2308         * platform/gdk/TransferJobManager.h: Added.
2309         * platform/gdk/WheelEventGdk.cpp: Added.
2310         * platform/gdk/WidgetGdk.cpp: Added.
2311         * platform/gdk/gdk-encodings.txt: Added.
2312
2313 2006-06-30  Mike Emmel  <mike.emmel@gmail.com>
2314
2315         Reviewed by Darin.
2316
2317         * WebCoreSources.bkl: Updated for recent file changes.
2318
2319 2006-06-30  Mike Emmel  <mike.emmel@gmail.com>
2320
2321         Reviewed and enhanced by Darin.
2322
2323         Compilation fixes for Linux/Gdk.
2324
2325         * WebCore/platform/FontData.h: Added forward declaration of a class.
2326         * WebCore/platform/cairo/GraphicsContextCairo.cpp: Fixed case on include.
2327         * WebCore/bindings/js/kjs_html.cpp: Added <math.h> include.
2328
2329         * WebCore/css/maketokenizer: Fixed incorrect check for Linux that was
2330         already true even on Mac OS X. Added some additional includes and
2331         defines to the Linux extra generated code.
2332
2333 2006-06-30  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2334
2335         Reviewed by Hyatt.
2336
2337         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7204
2338           float inserted in fixed height block via DOM not repainted
2339
2340         Test: fast/repaint/float-move-during-layout.html
2341
2342         * rendering/RenderBlock.cpp:
2343         (WebCore::RenderBlock::layoutBlockChildren):
2344         (WebCore::RenderBlock::repaintOverhangingFloats): Renamed repaintFloatingDescendants()
2345         to this and limited it to repainting overhanging floats. Added a boolean parameter that forces
2346         all descendant overhanging floats (that don't have their own layer) to paint.
2347         * rendering/RenderBlock.h:
2348         * rendering/RenderBox.cpp:
2349         (WebCore::RenderBox::repaintDuringLayoutIfMoved): Changed to paint all descendant
2350         floats.
2351         * rendering/RenderObject.cpp:
2352         (WebCore::RenderObject::repaintOverhangingFloats):
2353         * rendering/RenderObject.h:
2354
2355 2006-06-30  Levi Weintraub  <lweintraub@apple.com>
2356
2357         Reviewed by justin
2358
2359         * editing/VisiblePosition.cpp: Removed is[Not]EqualIgnoringAffinity and made operator== use the logic that ignores affinity.
2360         * editing/VisiblePosition.h: Ditto.
2361         (WebCore::operator==):
2362         * editing/visible_units.cpp:
2363         (WebCore::isStartOfParagraph): Changed to compare VisiblePositions using ==.
2364         (WebCore::isEndOfParagraph): Ditto.
2365         (WebCore::isStartOfBlock): Ditto.
2366         (WebCore::isEndOfBlock): Ditto.
2367
2368 === Safari-521.14 ===
2369
2370 2006-06-30  Justin Garcia  <justin.garcia@apple.com>
2371
2372         Reviewed by levi
2373
2374         * editing/htmlediting.cpp:
2375         (WebCore::canHaveChildrenForEditing): Don't insert children into
2376         object tags while editing.
2377
2378 2006-06-30  Justin Garcia  <justin.garcia@apple.com>
2379
2380         Reviewed by harrison
2381         
2382         <rdar://problem/4598309
2383         Caret gets stuck when it hits non editable content within an editable body
2384         <http://bugzilla.opendarwin.org/show_bug.cgi?id=9510>
2385         Caret will jump out of an editable region
2386         
2387         * dom/Position.cpp:
2388         (WebCore::Position::upstream): Don't move into a new editable region so that 
2389         candidates that that straddle an editable/non-editable boundary will 
2390         correspond to different VisiblePositions.
2391         (WebCore::Position::downstream): Ditto.
2392         * editing/SelectionController.cpp:
2393         (WebCore::SelectionController::modifyMovingRightForward): Use VisiblePosition::next(true)
2394         (WebCore::SelectionController::modifyMovingLeftBackward): Use VisiblePosition::previous(true)
2395         * editing/VisiblePosition.cpp:
2396         (WebCore::VisiblePosition::next): Added code to jump to the next editable region as long
2397         as it has the same highest editable root.
2398         (WebCore::VisiblePosition::previous): Ditto.
2399         * editing/VisiblePosition.h:
2400         * editing/htmlediting.cpp:
2401         (WebCore::highestEditableRoot): Added, returns the highest editable root of a node if that
2402         node is in editable content, otherwise 0.
2403         * editing/htmlediting.h:
2404
2405 2006-06-30  David Kilzer  <ddkilzer@kilzer.net>
2406
2407         Reviewed by Darin.
2408
2409         - Fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9358
2410           REGRESSION: Assertion failure in HTMLInputElement::setValueFromRenderer
2411           (value == constrainValue(value)) when deleting all text
2412
2413         Test: editing/deleting/delete-all-text-in-text-field-assertion.html
2414
2415         Bug 9661 filed to fix the follow-up issue:
2416         http://bugzilla.opendarwin.org/show_bug.cgi?id=9661
2417         textContent returns "\n" for a <br> even if it is collapsed
2418
2419         * html/HTMLInputElement.cpp:
2420         (WebCore::HTMLInputElement::setValueFromRenderer): Work around "\n" value
2421         when all characters are deleted from a text field.
2422
2423 2006-06-30  David Harrison  <harrison@apple.com>
2424
2425         Reviewed by Tim Omernick
2426
2427         <rdar://problem/4609481> Crash calling -[WebScriptObject valueForKey:] when JS disabled
2428         
2429         * bridge/mac/FrameMac.mm:
2430         (WebCore::FrameMac::executionContextForDOM):
2431         Early return if JS is not enabled.
2432
2433 2006-06-30  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2434
2435         Reviewed by Tim H.
2436
2437         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9664
2438           REGRESSION (r15106): Crash in fast/events/mouseover-mouseout2.html
2439
2440         * page/FrameView.cpp:
2441         (WebCore::FrameView::handleMouseMoveEvent): Added a check that oldSubframe is
2442         still a subframe of the view's frame before passing the event to it.
2443
2444 2006-06-29  Timothy Hatcher  <timothy@apple.com>
2445
2446         Reviewed by Darin.
2447
2448         <rdar://problem/3694163> -[KWQPageState finalize] is incorrect; design change needed
2449         <rdar://problem/3694165> -[WebCoreFrameBridge finalize] is incorrect; design change needed
2450
2451         Added close methods that need to be called before these
2452         objects can be released. This ensures proper tear-down under GC.
2453
2454         * WebCore.xcodeproj/project.pbxproj:
2455         * bridge/mac/WebCoreFrameBridge.h:
2456         * bridge/mac/WebCoreFrameBridge.mm:
2457         (-[WebCoreFrameBridge dealloc]):
2458         (-[WebCoreFrameBridge finalize]):
2459         (-[WebCoreFrameBridge close]):
2460         * bridge/mac/WebCorePageBridge.h:
2461         * bridge/mac/WebCorePageBridge.mm:
2462         (-[WebCorePageBridge setMainFrame:]):
2463         (-[WebCorePageBridge dealloc]):
2464         (-[WebCorePageBridge finalize]):
2465         (-[WebCorePageBridge close]):
2466         (-[WebCorePageBridge mainFrame]):
2467         (-[WebCorePageBridge setGroupName:]):
2468         (-[WebCorePageBridge groupName]):
2469         * kwq/KWQPageState.h:
2470         * kwq/KWQPageState.mm:
2471         (-[KWQPageState dealloc]):
2472         (-[KWQPageState finalize]):
2473         (-[KWQPageState close]):
2474
2475 2006-06-29  Sam Weinig  <sam.weinig@gmail.com>
2476
2477         Reviewed by Hyatt.
2478
2479         - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=4874
2480         Table with absolute bottom positioning is positioned incorrectly
2481
2482         Note: patch originally from Mitz, spruced up by Weinig.
2483
2484         * rendering/RenderBox.cpp:
2485         (WebCore::RenderBox::calcAbsoluteVerticalValues):
2486         * rendering/RenderTable.cpp:
2487         (WebCore::RenderTable::layout):
2488
2489 2006-06-29  Graham Dennis  <Graham.Dennis@gmail.com>
2490
2491         Reviewed by Justin.
2492
2493         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9505
2494           moveParagraphContentsToNewBlockIfNecessary creates a new block outside the current position
2495
2496         * editing/CompositeEditCommand.cpp:
2497         Added sanity checking to prevent modifying nodes outside of 
2498         where we should be
2499         (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
2500
2501 2006-06-29  Brady Eidson  <beidson@apple.com>
2502
2503         Reviewed by Levi.
2504
2505         In addition to a few small details, logging changes, and style cleanups, this is a stop-gap hack
2506         for a problem in SQLite's blob handling.  Querying for a blob in a void* form is reproducibly
2507         returning a corrupt buffer.  The temporary solution is to query for the blob as "quoted text" and
2508         manually convert the return string into a character buffer.
2509
2510         * icon/IconDatabase.cpp:
2511         (WebCore::IconDatabase::recreateDatabase):
2512         (WebCore::IconDatabase::createPrivateTables):
2513
2514         (WebCore::hexToUnsignedChar): These two functions are the text-to-character-data converters for the time being
2515         (WebCore::hexStringToVector):
2516
2517         (WebCore::IconDatabase::imageDataForIconID):
2518         (WebCore::IconDatabase::imageDataForIconURL):
2519         (WebCore::IconDatabase::imageDataForPageURL):
2520         (WebCore::IconDatabase::iconForPageURL):
2521         (WebCore::IconDatabase::hasIconForIconURL):
2522         * icon/IconDatabase.h:  changes the icon data accessors to return a Vector<unsigned char> instead of void*
2523
2524         * icon/SQLStatement.cpp:
2525         (WebCore::SQLStatement::columnCount):
2526         (WebCore::SQLStatement::getColumnBlob):
2527         * icon/SiteIcon.cpp:
2528         (SiteIcon::getImage):
2529
2530 2006-06-29  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2531
2532         Reviewed by Darin.
2533
2534         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9652
2535           Assertion failure when changing an RTL table cell to display:none
2536
2537         Test: fast/table/rtl-cell-display-none-assert.html
2538
2539         * rendering/RenderTableSection.cpp:
2540         (WebCore::RenderTableSection::layoutRows): Corrected the index used as
2541         the last index in the columnPos vector.
2542
2543 2006-06-29  Darin Adler  <darin@apple.com>
2544
2545         Reviewed by Anders.
2546
2547         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9622
2548           showModalDialog returnValue ignored, function result is always "undefined"
2549
2550         * manual-tests/modal-dialog.html: Added.
2551         * manual-tests/show-modal-dialog-test.html: Added.
2552
2553         * page/Frame.cpp: (WebCore::Frame::clear): Call KJSProxy::clear with the
2554         clearWindowProperties parameter instead of not calling it at all when
2555         clearWindowProperties is false.
2556
2557         * bindings/js/kjs_proxy.h: Add boolean clearWindowProperties parameter.
2558         * bindings/js/kjs_proxy.cpp: (WebCore::KJSProxy::clear): Pass clearWindowProperties
2559         variable through to Window::clear instead of not calling it at all.
2560
2561         * bindings/js/kjs_window.h: Add boolean clearWindowProperties parameter.
2562         * bindings/js/kjs_window.cpp: (KJS::Window::clear): If clearWindowProperties
2563         is false, do only the returnValue work, not the rest of the work.
2564
2565         * manual-tests/modal-dialog.html: Added.
2566         * manual-tests/show-modal-dialog-test.html: Added.
2567
2568 2006-06-29  Beth Dakin  <bdakin@apple.com>
2569
2570         Reviewed by Hyatt.
2571
2572         Fix for <rdar://problem/4450615> Add composite mode to background 
2573         styles
2574
2575         -webkit-background-composite will set a composite mode on a 
2576         background image.
2577
2578         * css/CSSComputedStyleDeclaration.cpp:
2579         (WebCore::):
2580         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2581         * css/CSSPropertyNames.in: Add -webkit-background-composite
2582         * css/CSSValueKeywords.in: Add all possible values (clear, copy, 
2583         source-over, source-in, source-out, source-atop, destination-over, 
2584         destination-in, destination-out, destination-atop, xor, plus-
2585         darker, highlight, and plus-lighter)
2586         * css/cssparser.cpp:
2587         (WebCore::CSSParser::parseValue):
2588         (WebCore::CSSParser::parseBackgroundProperty):
2589         * css/cssstyleselector.cpp:
2590         (WebCore::CSSStyleSelector::applyProperty):
2591         (WebCore::CSSStyleSelector::mapBackgroundComposite):
2592         * css/cssstyleselector.h:
2593         * platform/GraphicsContext.cpp:
2594         (WebCore::GraphicsContext::drawTiledImage):
2595         * platform/GraphicsContext.h: drawTiledImage() now takes a 
2596         composite operator.
2597         * platform/Image.h: drawTiled() now takes a composite operator.
2598         * platform/cairo/ImageCairo.cpp:
2599         (WebCore::Image::drawTiled): Set the composite operator.
2600         * platform/mac/ImageMac.mm:
2601         (WebCore::Image::drawTiled): Set the composite operator.
2602         * platform/win/TemporaryLinkStubs.cpp:
2603         (Image::drawTiled):
2604         * rendering/RenderBox.cpp:
2605         (WebCore::RenderBox::paintBackgroundExtended): Send the composite 
2606         operator in the render style over to the graphics context.
2607         * rendering/render_style.cpp:
2608         (WebCore::BackgroundLayer::BackgroundLayer):
2609         (WebCore::BackgroundLayer::operator=):
2610         (WebCore::BackgroundLayer::operator==):
2611         (WebCore::BackgroundLayer::fillUnsetProperties):
2612         (WebCore::BackgroundLayer::cullEmptyLayers):
2613         * rendering/render_style.h:
2614         (WebCore::BackgroundLayer::backgroundComposite):
2615         (WebCore::BackgroundLayer::isBackgroundCompositeSet):
2616         (WebCore::BackgroundLayer::setBackgroundComposite):
2617         (WebCore::BackgroundLayer::clearBackgroundComposite):
2618         (WebCore::RenderStyle::backgroundComposite):
2619         (WebCore::RenderStyle::initialBackgroundComposite):
2620
2621 2006-06-29  David Kilzer  <ddkilzer@kilzer.net>
2622
2623         Reviewed by Darin.
2624
2625         http://bugzilla.opendarwin.org/show_bug.cgi?id=9649
2626         The no-svg build broke after r15091
2627
2628         * bindings/objc/DOMInternal.h: Added #if XPATH_SUPPORT/#endif.
2629         * bindings/objc/DOMInternal.mm: Ditto.
2630         (raiseDOMException):
2631         * bindings/objc/DOMXPath.h: Ditto.
2632         * bindings/objc/DOMXPath.mm: Ditto.
2633         * bindings/objc/DOMXPathInternal.h: Ditto.
2634
2635 2006-06-29  Anders Carlsson  <acarlsson@apple.com>
2636
2637         Reviewed by Tim O.
2638
2639         <rdar://problem/4599760> Objective-C XPath support
2640         
2641         * WebCore.xcodeproj/project.pbxproj:
2642         Add files.
2643         
2644         * bindings/objc/DOMInternal.h:
2645         * bindings/objc/DOMInternal.mm:
2646         (raiseDOMException):
2647         Handle XPath exceptions
2648         
2649         * bindings/objc/DOMXPath.h: Added.
2650         (-[DOMXPathNSResolver lookupNamespaceURI:]):
2651         * bindings/objc/DOMXPath.mm: Added.
2652         (-[DOMNativeXPathNSResolver dealloc]):
2653         (-[DOMNativeXPathNSResolver finalize]):
2654         (-[DOMNativeXPathNSResolver _xpathNSResolver]):
2655         (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:]):
2656         (+[DOMNativeXPathNSResolver _xpathNSResolverWith:]):
2657         (-[DOMNativeXPathNSResolver lookupNamespaceURI:]):
2658         (-[DOMXPathResult dealloc]):
2659         (-[DOMXPathResult finalize]):
2660         (-[DOMXPathResult resultType]):
2661         (-[DOMXPathResult numberValue]):
2662         (-[DOMXPathResult stringValue]):
2663         (-[DOMXPathResult booleanValue]):
2664         (-[DOMXPathResult singleNodeValue]):
2665         (-[DOMXPathResult invalidIteratorState]):
2666         (-[DOMXPathResult snapshotLength]):
2667         (-[DOMXPathResult iterateNext]):
2668         (-[DOMXPathResult snapshotItem:]):
2669         (-[DOMXPathResult _xpathResult]):
2670         (-[DOMXPathResult _initWithXPathResult:]):
2671         (+[DOMXPathResult _xpathResultWith:]):
2672         (-[DOMXPathExpression evaluate:::]):
2673         (-[DOMXPathExpression _xpathExpression]):
2674         (-[DOMXPathExpression _initWithXPathExpression:]):
2675         (+[DOMXPathExpression _xpathExpressionWith:]):
2676         (-[DOMDocument createExpression::]):
2677         (-[DOMDocument createNSResolver:]):
2678         (-[DOMDocument evaluate:::::]):
2679         * bindings/objc/DOMXPathInternal.h: Added.
2680         Add Objective-C XPath API.
2681
2682 2006-06-28  David Hyatt  <hyatt@apple.com>
2683
2684         Add support for custom highlighting to paint at the root line box level
2685         (and to inflate the box it uses so that it can go outside the bounds of
2686         the line if necessary).
2687
2688         Reviewed by harrison
2689
2690         * bridge/mac/FrameMac.h:
2691         * bridge/mac/FrameMac.mm:
2692         (WebCore::FrameMac::customHighlightLineRect):
2693         (WebCore::FrameMac::paintCustomHighlight):
2694         * bridge/mac/WebCoreFrameBridge.h:
2695         * rendering/InlineTextBox.cpp:
2696         (WebCore::InlineTextBox::paintCustomHighlight):
2697         * rendering/RootInlineBox.cpp:
2698         (WebCore::RootInlineBox::paintCustomHighlight):
2699         (WebCore::RootInlineBox::paint):
2700         * rendering/RootInlineBox.h:
2701
2702 2006-06-28  Levi Weintraub  <lweintraub@apple.com>
2703
2704         Reviewed by justin
2705
2706         <rdar://problem/4592005> FormatBlock inserts in the wrong place, disregarding editable content
2707         <rdar://problem/4590763> FormatBlock for paragraph style doesn't work
2708
2709         * dom/Node.cpp:
2710         (WebCore::Node::rootEditableElement): Return inline nodes
2711         * editing/FormatBlockCommand.cpp:
2712         (WebCore::FormatBlockCommand::doApply): Keep from inserting before editable content
2713         * editing/JSEditor.cpp: Support html braces (<>) around tag names
2714
2715 2006-06-28  Justin Garcia  <justin.garcia@apple.com>
2716
2717         Reviewed by levi
2718         
2719         svg/custom/text-hit-test.svg was failing
2720
2721         * rendering/RenderContainer.cpp:
2722         (WebCore::RenderContainer::positionForCoordinates): Don't skip child
2723         renderers that have a height of 0 when looking for the closest child
2724         renderer, they may contain content that overflows.
2725         * rendering/RenderText.cpp:
2726         (WebCore::RenderText::positionForCoordinates): Fixed typos.
2727
2728 2006-06-28  David Hyatt  <hyatt@apple.com>
2729
2730         Make the view source document properly handle <script>.  We don't syntax
2731         highlight the JS yet, but it shows up properly now.
2732
2733         Reviewed by john
2734
2735         * WebCore.xcodeproj/project.pbxproj:
2736         * html/HTMLTokenizer.cpp:
2737         (WebCore::HTMLTokenizer::scriptHandler):
2738
2739 2006-06-28  Timothy Hatcher  <timothy@apple.com>
2740
2741         Prefer the Stabs debugging symbols format until DWARF bugs are fixed.
2742
2743         * WebCore.xcodeproj/project.pbxproj:
2744
2745 2006-06-28  Justin Garcia  <justin.garcia@apple.com>
2746
2747         Reviewed by levi
2748         
2749         Fixed EditActions for InsertHorizontalRule and RemoveFormat.
2750         
2751         * editing/JSEditor.cpp:
2752         * editing/ReplaceSelectionCommand.cpp:
2753         (WebCore::ReplaceSelectionCommand::ReplaceSelectionCommand):
2754         (WebCore::ReplaceSelectionCommand::editingAction):
2755         * editing/ReplaceSelectionCommand.h:
2756
2757 2006-06-28  Levi Weintraub  <lweintraub@apple.com>
2758
2759          Build Fix. Reviewed by NOBODY
2760
2761         * editing/IndentOutdentCommand.cpp:
2762         (WebCore::IndentOutdentCommand::indentRegion):
2763
2764 2006-06-28  Levi Weintraub  <lweintraub@apple.com>
2765
2766         Reviewed by justin
2767
2768         http://bugzilla.opendarwin.org/show_bug.cgi?id=7568
2769         Bug 7568: Implement Indent/Outdent
2770
2771         * WebCore.vcproj/WebCore/WebCore.vcproj: Added IndentOutdentCommand.h/cpp
2772         * WebCore.xcodeproj/project.pbxproj: Ditto.
2773         * editing/IndentOutdentCommand.cpp: Added.
2774         (WebCore::IndentOutdentCommand::IndentOutdentCommand):
2775         (WebCore::enclosingListOrBlockquote):
2776         (WebCore::IndentOutdentCommand::splitTreeToNode): Splits the DOM tree from a
2777         descendent node to an ending ancestor, duplicating nodes when necessary. Returns
2778         the last node split. Used to insert blockquotes at the topmost level.
2779         (WebCore::IndentOutdentCommand::indentRegion):
2780         (WebCore::IndentOutdentCommand::outdentParagraph):
2781         (WebCore::IndentOutdentCommand::outdentRegion):
2782         (WebCore::IndentOutdentCommand::doApply):
2783         * editing/IndentOutdentCommand.h: Added.
2784         (WebCore::IndentOutdentCommand::):
2785         * editing/JSEditor.cpp: Added the execCommands Indent and Outdent
2786         * editing/htmlediting.cpp:
2787         (WebCore::enclosingNodeWithTag): Finds the enclosing node with any specified tag.
2788         (WebCore::enclosingListChild): Added checks for nill and editable boundaries.
2789         (WebCore::outermostEnclosingListChild): Returns the highest ancestor list child.
2790         (WebCore::highestAncestor): Added.
2791         (WebCore::createElement): Changed the passed in string to a const reference.
2792         * editing/htmlediting.h:
2793
2794 2006-06-28  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2795
2796         Reviewed by Darin and Hyatt.
2797
2798         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9561
2799           REGRESSION: Content property on :before of button causes hang on click or hover
2800
2801         Test: fast/forms/button-generated-content.html
2802
2803         * rendering/RenderBlock.cpp:
2804         (WebCore::RenderBlock::setStyle):
2805         * rendering/RenderButton.cpp:
2806         (WebCore::RenderButton::updatePseudoChild): Added. Calls updatePseudoChildForObject()
2807         on the button itself or on its inner div, if it has one.
2808         * rendering/RenderButton.h:
2809         (WebCore::RenderButton::createsAnonymousWrapper): Added. Returns true.
2810         * rendering/RenderContainer.cpp:
2811         (WebCore::RenderContainer::pseudoChild): Added. Returns the child containing
2812         generated content of the requested type if there is one, or otherwise the
2813         child before/after which such generated content should come.
2814         (WebCore::RenderContainer::updatePseudoChild): Removed the child parameter and moved the guts
2815         of this method into updatePseudoChildForObject, which this method calls unless the object
2816         is an anonymous wrapper.
2817         (WebCore::RenderContainer::updatePseudoChildForObject): Added. Does the what
2818         updatePseudoChildForObject did previously, but fetches the pseudo style from
2819         the styledObject parameter.
2820         * rendering/RenderContainer.h:
2821         * rendering/RenderInline.cpp:
2822         (WebCore::RenderInline::setStyle):
2823         (WebCore::RenderInline::addChildToFlow):
2824         (WebCore::RenderInline::splitInlines):
2825         (WebCore::RenderInline::splitFlow):
2826         * rendering/RenderObject.h:
2827         (WebCore::RenderObject::createsAnonymousWrapper): Added. This method replaces
2828         allowsReusingAnonymousChild and returns the opposite of what that method used to
2829         return. Returns true if the object creates an anonymous child to contain all its
2830         other children.
2831
2832 2006-06-27  Brady Eidson  <beidson@apple.com>
2833
2834         Reviewed by Maciej
2835
2836         Hookup the new semi-functional SQLite icon database.
2837         For now, it is living side-by-side with the old DB so one can compare the
2838         two for debugging purposes.  Also, it is disabled (in WebKit) by default unless you
2839         compile with ICONDEBUG #defined.
2840
2841         * WebCore.xcodeproj/project.pbxproj:  Added file SiteIcon.cpp
2842
2843         * bridge/mac/WebCoreIconDatabaseBridge.h:
2844         * bridge/mac/WebCoreIconDatabaseBridge.mm:
2845         (-[WebCoreIconDatabaseBridge privateBrowsingEnabled]):
2846         (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
2847         (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
2848         (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
2849
2850         * icon/IconDatabase.cpp:
2851         (WebCore::IconDatabase::isValidDatabase):
2852         (WebCore::IconDatabase::recreateDatabase):
2853         (WebCore::IconDatabase::createPrivateTables):
2854         (WebCore::IconDatabase::deletePrivateTables):
2855         (WebCore::IconDatabase::imageDataForIconID):
2856         (WebCore::IconDatabase::imageDataForIconURL):
2857         (WebCore::IconDatabase::imageDataForPageURL):
2858         (WebCore::IconDatabase::setPrivateBrowsingEnabled):
2859         (WebCore::IconDatabase::iconForPageURL):
2860         (WebCore::IconDatabase::iconURLForURL):
2861         (WebCore::IconDatabase::setIconDataForIconURL):
2862         (WebCore::IconDatabase::establishIconIDForEscapedIconURL):
2863         (WebCore::IconDatabase::setHaveNoIconForIconURL):
2864         (WebCore::IconDatabase::setIconURLForPageURL):
2865         (WebCore::IconDatabase::hasIconForIconURL):
2866         * icon/IconDatabase.h:
2867         (WebCore::SiteIcon::getIconURL):
2868         (WebCore::IconDatabase::getPrivateBrowsingEnabled):
2869         
2870         * icon/SiteIcon.cpp: Added.
2871         (SiteIcon::SiteIcon):
2872         (SiteIcon::~SiteIcon):
2873         (SiteIcon::getImage):
2874         (SiteIcon::resetExpiration):
2875         (SiteIcon::getExpiration):
2876
2877 2006-06-27  Rob Buis  <buis@kde.org>
2878
2879         Reviewed by Darin.
2880
2881         http://bugzilla.opendarwin.org/show_bug.cgi?id=9605
2882         REGRESSION: pageX and pageY are both 0 for events created with initMouseEvent
2883
2884         Calculate pageX/pageY and clientX/clientY values when using initMouseEvent.
2885
2886         * dom/MouseEvent.cpp:
2887         (WebCore::MouseEvent::initMouseEvent):
2888         * dom/MouseRelatedEvent.cpp:
2889         (WebCore::MouseRelatedEvent::initCoordinates):
2890         * dom/MouseRelatedEvent.h:
2891
2892 2006-06-27  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2893
2894         Reviewed by Maciej and Darin.
2895
2896         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9317
2897           REGRESSION: crash in HTML tokenizer at Japanese Apple support page
2898
2899         Test: fast/tokenizer/write-unclosed-script.html
2900
2901         * html/HTMLTokenizer.cpp:
2902         (WebCore::HTMLTokenizer::scriptHandler): Changed to reset the inScript flag
2903         and scriptCodeSize before possible script execution, but not afterwards.
2904         This way, if script execution write()s a <script> tag without closing it,
2905         the tokenizer is left in inScript state. Added code to set the requestingScript
2906         flag around the request for the cached script, to let notifiyFinished() know
2907         that it's being called under scriptHandler().
2908         (WebCore::HTMLTokenizer::scriptExecution): Removed code that saved and restored
2909         the inScript flag. This function is always entered now with inScript being false.
2910         (WebCore::HTMLTokenizer::notifyFinished): Changed to use the new requestingScript
2911         state flag instead of the inScript flag, which is always false now when entering
2912         this function.
2913         * html/HTMLTokenizer.h:
2914         Added the requestingScript state bit, used to tell notifyFinished() that it
2915         is being called under scriptHandler() (which happens when the script is already
2916         in cache).
2917
2918 2006-06-27  Justin Garcia  <justin.garcia@apple.com>
2919
2920         Reviewed by levi
2921
2922         * editing/JSEditor.cpp: Added RemoveFormat.
2923
2924 2006-06-27  Kevin Decker    <kdecker@apple.com>
2925
2926         Reviewed by brady.
2927
2928         Fixed: <rdar://problem/4597679> TOT REGRESSION: popup blocker DOA
2929         
2930         Need to add window.open() support to DumpRenderTree before landing an actual layout test.
2931
2932         * bindings/js/kjs_window.cpp: 
2933         (KJS::WindowFunc::callAsFunction): Because FrameTree::find() returns true for empty strings, 
2934         we must check for empty framenames. Otherwise, illegitimate window.open() calls with no name
2935         will pass right through the popup blocker.
2936
2937 2006-06-28  Anders Carlsson  <acarlsson@apple.com>
2938
2939         Reviewed by Darin.
2940
2941         * css/CSSComputedStyleDeclaration.cpp:
2942         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2943         Move FIXME comment here.
2944         
2945         * page/DOMWindow.cpp:
2946         (WebCore::DOMWindow::getComputedStyle):
2947         Don't do a null check on the renderer here. Everything's handled by 
2948         CSSComputedStyleDeclaration anyway.
2949
2950 2006-06-27  Justin Garcia  <justin.garcia@apple.com>
2951
2952         Reviewed by darin
2953
2954         * rendering/RenderContainer.cpp: Fixed #include formatting.
2955
2956 2006-06-27  Justin Garcia  <justin.garcia@apple.com>
2957
2958         Reviewed by levi
2959         
2960         <rdar://problem/4599735> Clicking out of a table at the extremes of an editable document doesn't appear to work
2961
2962         * rendering/RenderBlock.cpp:
2963         (WebCore::RenderBlock::positionForCoordinates): In the fall through case,
2964         where we can't find a child block that contains (x, y), pass to RenderFlow
2965         instead of the last visible child block.
2966         * rendering/RenderContainer.cpp:
2967         (WebCore::RenderContainer::positionForCoordinates): Don't pass to the closest 
2968         child renderer if this is a table and (x, y) is outside the table.  Return
2969         a VisiblePosition before or after the table.
2970         Fixed the code that finds the closest child renderer.
2971
2972 2006-06-27  David Hyatt  <hyatt@apple.com>
2973
2974         Preserve entity text in view source mode.  This patch doesn't highlight the
2975         the entities yet, but it at least prevents their resolution and removal.
2976
2977         Reviewed by darin
2978
2979         * WebCore.xcodeproj/project.pbxproj:
2980         * html/HTMLTokenizer.cpp:
2981         (WebCore::HTMLTokenizer::parseEntity):
2982
2983 2006-06-27  Anders Carlsson  <acarlsson@apple.com>
2984
2985         Reviewed by Geoff.
2986
2987         http://bugzilla.opendarwin.org/show_bug.cgi?id=9623
2988         REGRESSION: getComputedStyle should do a relayout
2989         
2990         * page/DOMWindow.cpp:
2991         (WebCore::DOMWindow::getComputedStyle):
2992         Do a relayout.
2993
2994 2006-06-27  Maciej Stachowiak  <mjs@apple.com>
2995
2996         Reviewed by Adele
2997
2998         - fixed <rdar://problem/4550473> Reproducible hang on www.digg.com
2999         
3000         * dom/NodeList.cpp:
3001         (WebCore::NodeList::recursiveItem): Make NodeList caching also
3002         work for backwards iteration - if the requested index is before
3003         the last cached, but closer to it than to the start of the list,
3004         then search backwards from there.
3005         (WebCore::NodeList::itemForwardsFromCurrent): Split this out as a
3006         helper method.
3007         (WebCore::NodeList::itemBackwardsFromCurrent): New helper, similar
3008         to the above.
3009         * dom/NodeList.h:
3010
3011 2006-06-27  Brady Eidson  <beidson@apple.com>
3012
3013         Reviewed by Levi
3014
3015         Some SQLDatabase cleanup (style stuff) and enhancements
3016
3017         * icon/SQLDatabase.cpp:
3018         (SQLDatabase::open):
3019         (SQLDatabase::executeCommand):
3020         (SQLDatabase::returnsAtLeastOneResult):  Accessor to see if this query returns results
3021         (SQLDatabase::lastInsertRowID):  Accessor for the rowid of the last insert
3022         * icon/SQLDatabase.h:
3023         (WebCore::SQLStatement::prepareAndStep):
3024         * icon/SQLStatement.cpp:
3025         (WebCore::SQLStatement::bindInt64):
3026         -All of the following used to require the user to manually prepare and step a statement
3027         before asking for the result.  Now it will prepare and step itself so you can use a temporary
3028         object to get a quick result
3029         (WebCore::SQLStatement::getColumnName):
3030         (WebCore::SQLStatement::getColumnName16):
3031         (WebCore::SQLStatement::getColumnText):
3032         (WebCore::SQLStatement::getColumnText16):
3033         (WebCore::SQLStatement::getColumnDouble):
3034         (WebCore::SQLStatement::getColumnInt):
3035         (WebCore::SQLStatement::getColumnInt64):
3036         (WebCore::SQLStatement::getColumnBlobAsVector):
3037         (WebCore::SQLStatement::getColumnBlob):
3038
3039 2006-06-27  Ada Chan <adachan@apple.com>
3040
3041         Reviewed by sfalken.
3042
3043         Fixed build.
3044
3045         * WebCore.vcproj/WebCore/WebCore.vcproj:
3046
3047 2006-06-27  Beth Dakin  <bdakin@apple.com>
3048
3049         Reviewed by Hyatt.
3050
3051         Fix for <rdar://problem/4602635> Media queries must be extended to 
3052         address CSS pixel scaling factor
3053
3054         * css/MediaFeatureNames.h: Add -webkit-device-pixel-ratio, -webkit-
3055         min-device-pixel-ratio, and -webkit-max-device-pixel-ratio to the 
3056         list of feature names.
3057         * css/MediaQueryEvaluator.cpp:
3058         (WebCore::cmpvalue): Added a version of cmpvalue that compares 
3059         floats.
3060         (WebCore::device_pixel_ratioMediaFeatureEval):
3061         (WebCore::min_device_pixel_ratioMediaFeatureEval):
3062         (WebCore::max_device_pixel_ratioMediaFeatureEval):
3063
3064 2006-06-27  Darin Adler  <darin@apple.com>
3065
3066         Reviewed by Geoff.
3067
3068         - finish with http://bugzilla.opendarwin.org/show_bug.cgi?id=9606
3069           REGRESSION: some callers are still using clientX/Y to get pageX/Y
3070
3071         * rendering/RenderFrameSet.cpp: (WebCore::RenderFrameSet::userResize):
3072         Change to use pageX/Y, but this really doesn't matter since framesets
3073         can't be scrolled -- it's the frames that are scrolled. So this change
3074         has no user-visible effect, but it's still better this way.
3075
3076 2006-06-27  Darin Adler  <darin@apple.com>
3077
3078         Reviewed by Geoff.
3079
3080         - fix 2/3 of http://bugzilla.opendarwin.org/show_bug.cgi?id=9606
3081           REGRESSION: some callers are still using clientX/Y to get pageX/Y
3082
3083         Test: fast/events/anchor-image-scrolled-x-y.html
3084         Test: fast/events/input-image-scrolled-x-y.html
3085
3086         * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::defaultEventHandler): Use pageX/Y.
3087         * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler): Ditto.
3088
3089 2006-06-27  Brady Eidson  <beidson@apple.com>
3090
3091         Reviewed by Maciej
3092
3093         Added functionality to WebCore::Image to get multiple representations/sizes into TIFF data
3094
3095         * platform/mac/ImageMac.mm:
3096         (WebCore::Image::getTIFFRepresentation):
3097
3098 2006-06-26  David Hyatt  <hyatt@apple.com>
3099
3100         Fix for 9538, support syntax highlighted HTML source.  Lots of loose
3101         ends still (script/style/comments/doctype/entities/accurate whitespace).
3102
3103         Reviewed by darin
3104
3105         * DerivedSources.make:
3106         * WebCore.xcodeproj/project.pbxproj:
3107         * bridge/mac/WebCoreFrameBridge.h:
3108         * bridge/mac/WebCoreFrameBridge.mm:
3109         (-[WebCoreFrameBridge setInViewSourceMode:]):
3110         (-[WebCoreFrameBridge inViewSourceMode]):
3111         * css/cssstyleselector.cpp:
3112         (WebCore::CSSStyleSelector::loadDefaultStyle):
3113         (WebCore::CSSStyleSelector::matchUARules):
3114         * css/cssstyleselector.h:
3115         * css/view-source.css: Added.
3116         * dom/Document.cpp:
3117         (WebCore::Document::implicitClose):
3118         * dom/xml_tokenizer.h:
3119         (WebCore::Tokenizer::Tokenizer):
3120         (WebCore::Tokenizer::~Tokenizer):
3121         (WebCore::Tokenizer::inViewSourceMode):
3122         (WebCore::Tokenizer::setInViewSourceMode):
3123         * html/HTMLAttributeNames.in:
3124         * html/HTMLFrameElement.cpp:
3125         (WebCore::HTMLFrameElement::init):
3126         (WebCore::HTMLFrameElement::parseMappedAttribute):
3127         (WebCore::HTMLFrameElement::attach):
3128         * html/HTMLFrameElement.h:
3129         (WebCore::HTMLFrameElement::viewSourceMode):
3130         * html/HTMLTokenizer.cpp:
3131         (WebCore::HTMLTokenizer::HTMLTokenizer):
3132         (WebCore::HTMLTokenizer::scriptHandler):
3133         (WebCore::HTMLTokenizer::scriptExecution):
3134         (WebCore::HTMLTokenizer::parseTag):
3135         (WebCore::HTMLTokenizer::continueProcessing):
3136         (WebCore::HTMLTokenizer::write):
3137         (WebCore::HTMLTokenizer::timerFired):
3138         (WebCore::HTMLTokenizer::end):
3139         (WebCore::HTMLTokenizer::processToken):
3140         (WebCore::HTMLTokenizer::notifyFinished):
3141         * html/HTMLTokenizer.h:
3142         * html/HTMLViewSourceDocument.cpp: Added.
3143         (WebCore::HTMLViewSourceDocument::HTMLViewSourceDocument):
3144         (WebCore::HTMLViewSourceDocument::createTokenizer):
3145         (WebCore::HTMLViewSourceDocument::addViewSourceToken):
3146         (WebCore::HTMLViewSourceDocument::addViewSourceAttribute):
3147         (WebCore::HTMLViewSourceDocument::addSpanWithClassName):
3148         * html/HTMLViewSourceDocument.h: Added.
3149         * page/Frame.cpp:
3150         (WebCore::Frame::begin):
3151         (WebCore::Frame::inViewSourceMode):
3152         (WebCore::Frame::setInViewSourceMode):
3153         * page/Frame.h:
3154         * page/FramePrivate.h:
3155         (WebCore::FramePrivate::FramePrivate):
3156         * rendering/RenderPartObject.cpp:
3157         (WebCore::RenderPartObject::updateWidget):
3158
3159 2006-06-26  Anders Carlsson  <acarlsson@apple.com>
3160
3161         Reviewed by Darin.
3162
3163         http://bugzilla.opendarwin.org/show_bug.cgi?id=9031
3164         REGRESSION: Crash when closing tabs on newegg.com
3165         
3166         * page/Frame.cpp:
3167         (WebCore::Frame::pageDestroyed):        
3168         * page/Frame.h:
3169         Add new method which is invoked when the frame's page has been destroyed.
3170         Currently this function disassociates the JS Window object with the frame, 
3171         stopping any running JS timers.
3172         
3173         * page/Page.cpp:
3174         (WebCore::Page::~Page):
3175         Call pageDestroyed on all frames.
3176
3177 2006-06-26  Rob Buis  <buis@kde.org>
3178
3179         Reviewed and reworked by Darin.
3180
3181         Code cleanup, calculate clientX/clientY in one central place.
3182
3183         * dom/EventTargetNode.h:
3184         * dom/EventTargetNode.cpp: (WebCore::EventTargetNode::dispatchMouseEvent):
3185         Renamed parameters to pageX/Y since they aren't clientX/Y values.
3186         Removed code to compute clientX/Y (was a bit confused in naming before),
3187         because that's now done inside MouseEvent.
3188
3189         * dom/MouseEvent.h:
3190         * dom/MouseEvent.cpp:
3191         (WebCore::MouseEvent::MouseEvent): Removed clientX/Y parameters.
3192         (WebCore::MouseEvent::initMouseEvent): Added comments about problems I noticed.
3193         (WebCore::MouseEvent::which): Fixed comment that confusingly mentioned KHTML,
3194         when it was talking about the DOM standard.
3195
3196         * dom/MouseRelatedEvent.h:
3197         * dom/MouseRelatedEvent.cpp:
3198         (WebCore::contentsX): Added helper function.
3199         (WebCore::contentsY): Ditto.
3200         (WebCore::MouseRelatedEvent::MouseRelatedEvent): Removed clientX/Y parameter,
3201         and added code to compute clientX/Y based on pageX/Y.
3202         (WebCore::MouseRelatedEvent::receivedTarget): Fixed comments.
3203
3204         * dom/WheelEvent.h:
3205         * dom/WheelEvent.cpp: (WebCore::WheelEvent::WheelEvent): Removed clientX/Y
3206         parameter.
3207
3208         * page/FrameView.cpp: (WebCore::FrameView::dispatchDragEvent): Removed the code
3209         to compute coordinates, and renamed the confusingly named clientPos (which was
3210         a page-relative position) to contentsPos.
3211
3212 2006-06-25  David Carson  <dacarson@gmail.com>
3213
3214         Reviewed and tweaked by Darin.
3215
3216         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9185
3217         REGRESSION: UserID field appears with an incorrect height 
3218         on americanexpresslogin page
3219         - Height and Width attribute only applies to IMAGE and HIDDEN
3220         types.
3221
3222         * dom/NamedMappedAttrMap.h:
3223         (WebCore::NamedMappedAttrMap::getAttributeItem):
3224         Added to static_cast method.
3225
3226         * html/HTMLInputElement.cpp:
3227         (WebCore::HTMLInputElement::setInputType):
3228         Update the style decl if input type has changed.
3229         (WebCore::HTMLInputElement::mapToEntry):
3230         Only Cache height and width if it is an IMAGE or HIDDEN
3231         (WebCore::HTMLInputElement::parseMappedAttribute):
3232         Check type before adding height and width style.
3233         (WebCore::HTMLInputElement::attach):
3234         Remove code for discarding width.
3235
3236         * html/HTMLInputElement.h:
3237         (WebCore::HTMLInputElement::respectHeightAndWidthAttrs):
3238         New method added to report if this input type uses height & width.
3239
3240 2006-06-25  David Kilzer  <ddkilzer@kilzer.net>
3241
3242         Reviewed by Darin.
3243
3244         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9537
3245           REGRESSION: Reproducible crash in WebCore::RenderTextField::textWithHardLineBreaks()
3246
3247         Test: fast/forms/textarea-hard-linewrap-empty.html
3248
3249         * rendering/RenderTextField.cpp:
3250         (WebCore::RenderTextField::textWithHardLineBreaks): Added null check for
3251         m_div->firstChild()->renderer().
3252
3253 2006-06-25  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3254
3255         Reviewed by Darin.
3256
3257         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9388
3258           REGRESSION: outlines don't get erased when removed in some cases
3259
3260         Test: fast/repaint/outline-shrinking.html
3261
3262         * rendering/RenderObject.cpp:
3263         (WebCore::RenderObject::setStyle): Always repaint with the old style if the outline is
3264         becoming narrower, even if we are going to relayout.
3265
3266 2006-06-25  Rob Buis  <buis@kde.org>
3267
3268         Reviewed by Darin.
3269
3270         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8707:
3271         event.clientX and event.clientY should be relative to the viewport, not the canvas
3272
3273         Make sure clientX and clientY take into account the scroll offsets
3274         of the view.
3275
3276         * dom/EventTargetNode.cpp:
3277         (WebCore::EventTargetNode::dispatchMouseEvent):
3278         * dom/MouseEvent.cpp:
3279         (WebCore::MouseEvent::MouseEvent):
3280         * dom/MouseEvent.h:
3281         * dom/MouseRelatedEvent.cpp:
3282         (WebCore::MouseRelatedEvent::MouseRelatedEvent):
3283         (WebCore::MouseRelatedEvent::initCoordinates):
3284         * dom/MouseRelatedEvent.h:
3285         * dom/WheelEvent.cpp:
3286         (WebCore::WheelEvent::WheelEvent):
3287         * page/FrameView.cpp:
3288         (WebCore::FrameView::dispatchDragEvent):
3289
3290 2006-06-25  Timothy Hatcher  <timothy@apple.com>
3291
3292         Reviewed by Darin.
3293
3294         Bug 9574: Drosera should show inline scripts within the original HTML
3295         http://bugzilla.opendarwin.org/show_bug.cgi?id=9574
3296
3297         * Pass the starting line number and error message to the debugger.
3298         * Call parsedSource even if there was a script parse error so the
3299           debugger can show the parse error.
3300         * Pass NSURL objects to the ObjC delegate for the script URLs.
3301
3302         * bridge/mac/WebCoreScriptDebugger.h:
3303         * bridge/mac/WebCoreScriptDebugger.mm:
3304         (toNSURL):
3305         (WebCoreScriptDebuggerImp::sourceParsed):
3306
3307 2006-06-24  David Kilzer  <ddkilzer@kilzer.net>
3308
3309         Build fix.  Reviewed by NOBODY.
3310
3311         - Backed out patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=8707
3312           event.clientX and event.clientY should be relative to the viewport, not the canvas
3313
3314         * dom/EventTargetNode.cpp:
3315         (WebCore::EventTargetNode::dispatchMouseEvent):
3316         * dom/MouseEvent.cpp:
3317         (WebCore::MouseEvent::MouseEvent):
3318         * dom/MouseEvent.h:
3319         * dom/MouseRelatedEvent.cpp:
3320         (WebCore::MouseRelatedEvent::MouseRelatedEvent):
3321         (WebCore::MouseRelatedEvent::initCoordinates):
3322         * dom/MouseRelatedEvent.h:
3323         * dom/WheelEvent.cpp:
3324         (WebCore::WheelEvent::WheelEvent):
3325
3326 2006-06-24  Rob Buis  <buis@kde.org>
3327
3328         Reviewed by Darin.
3329
3330         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8707:
3331         event.clientX and event.clientY should be relative to the viewport, not the canvas
3332
3333         Make sure clientX and clientY take into account the scroll offsets
3334         of the view.
3335
3336         Test: fast/dom/window-xy-properties.html
3337
3338         * dom/EventTargetNode.cpp:
3339         (WebCore::EventTargetNode::dispatchMouseEvent):
3340         * dom/MouseEvent.cpp:
3341         (WebCore::MouseEvent::MouseEvent):
3342         * dom/MouseEvent.h:
3343         * dom/MouseRelatedEvent.cpp:
3344         (WebCore::MouseRelatedEvent::MouseRelatedEvent):
3345         (WebCore::MouseRelatedEvent::initCoordinates):
3346         * dom/MouseRelatedEvent.h:
3347         * dom/WheelEvent.cpp:
3348         (WebCore::WheelEvent::WheelEvent):
3349
3350 2006-06-24  Rob Buis  <buis@kde.org>
3351
3352         Reviewed by Darin.
3353
3354         http://bugzilla.opendarwin.org/show_bug.cgi?id=9352
3355         Webkit doesn't respect stroke-width in SVG for smaller <circle>s
3356
3357         Make sure the stroke path is set before applying gradient transforms.
3358
3359         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
3360         (WebCore::KRenderingPaintServerGradientQuartz::setup):
3361         (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
3362
3363 2006-06-24  Alexey Proskuryakov  <ap@nypop.com>
3364
3365         Rubber-stamped by Eric.
3366
3367         Add a -h (do not follow symlinks) option to ln in derived sources build script (without it,
3368         a symlink was created inside the source directory on second build).
3369
3370         * WebCore.xcodeproj/project.pbxproj:
3371
3372 2006-06-24  James G. Speth  <speth@end.com>
3373
3374         Reviewed by Darin.  Copyrights tweaked by ddkilzer.
3375         
3376         Bug 8331: DOMNodeLists returned to Objective-C are not properly wrapped
3377         http://bugzilla.opendarwin.org/show_bug.cgi?id=8331
3378         
3379         DOMNodes were the only objects handled by createObjcInstanceForValue.
3380         now it handles all of these: DOMNode, DOMNodeList, DOMNamedNodeMap, DOMStyleSheetList,
3381         DOMStyleSheet, DOMMediaList, DOMCSSRuleList, DOMCSSRule, DOMCSSStyleDeclaration, and DOMCSSValue
3382         
3383         * WebCore.xcodeproj/project.pbxproj: added file DOMCSSInternal.h to project
3384         * bindings/js/kjs_css.cpp:
3385         (KJS::): changed ClassInfo for DOMCSSStyleSheet to have DOMStyleSheet as its parent class
3386         * bindings/objc/DOM.mm:
3387         (-[DOMDocumentType :]):  moved DOMNamedNodeMap (WebCoreInternal) interface to DOMInternal.h
3388         * bindings/objc/DOMCSS.mm: moved WebCoreInternal interfaces to DOMCSSInternal.h
3389         * bindings/objc/DOMCSSInternal.h: Added file, contains WebCoreInternal interface for CSS classes
3390         * bindings/objc/DOMInternal.h: added DOMNamedNodeMap (WebCoreInternal) interface
3391         * bindings/objc/DOMUtility.mm:
3392         (KJS::ScriptInterpreter::createObjcInstanceForValue): support for more classes
3393
3394 2006-06-24  David Kilzer  <ddkilzer@kilzer.net>
3395
3396         Reviewed by Timothy.
3397
3398         * Info.plist: Fixed copyright to include 2003-2006.
3399         * manual-tests/NPN_Invoke/Info.plist: Added copyright statement.
3400
3401 2006-06-24  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3402
3403         Reviewed by Darin, landed by ap.
3404
3405         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9547
3406           Resize corner does not track the mouse accurately
3407
3408         Test: fast/css/resize-corner-tracking.html
3409
3410         * page/FrameView.cpp:
3411         (WebCore::FrameView::handleMousePressEvent): Store the offset from the layer's
3412         resizing corner where dragging has started.
3413         (WebCore::FrameView::handleMouseMoveEvent): Pass the stored offset to the
3414         layer's resize method.
3415         * rendering/RenderLayer.cpp:
3416         (WebCore::RenderLayer::resize): Added an offset parameter, which is added to
3417         the mouse location.
3418         For objects that may have intrinsic margins applied to them,
3419         added code to lift the margins into the object's style in order to keep them
3420         constant.
3421         Changed to take the content size as the base size if the box-sizing property
3422         is content-box.
3423         (WebCore::RenderLayer::offsetFromResizeCorner): Added. Returns the offset of the
3424         given point from the corner that tracks the mouse when resizing.
3425         * rendering/RenderLayer.h:
3426
3427 2006-06-24  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3428
3429         Reviewed by Darin, landed by ap.
3430
3431         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9316
3432           REGRESSION: text field width shrinks on first keystroke
3433
3434         Test: fast/forms/floating-textfield-relayout.html
3435
3436         * page/FrameView.cpp:
3437         (WebCore::FrameView::layoutRoot): Added. During subtree relayout, returns
3438         the subtree root. Otherwise returns 0.
3439         (WebCore::FrameView::layoutPending): Made const.
3440         * page/FrameView.h:
3441         * rendering/RenderBox.cpp:
3442         (WebCore::RenderBox::calcWidth): Added early return if this is the root
3443         of a subtree being laid out. 
3444
3445 2006-06-24  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3446
3447         Reviewed by Hyatt.
3448
3449         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9531
3450           Pages that need only a horizontal scroll bar get a vertical one as well
3451
3452         The change affects many existing tests.
3453
3454         * page/FrameView.cpp:
3455         (WebCore::FrameView::layout): Mark the body renderer as needing layout if
3456         the view's height has changed and the body stretches to the view's height.
3457         * rendering/RenderBox.cpp:
3458         (WebCore::RenderBox::calcHeight):
3459         * rendering/RenderBox.h:
3460         (WebCore::RenderBox::stretchesToViewHeight): Added. Moved the logic for when
3461         the HTML block needs to stretch to the view's height from calcHeight() here.
3462
3463 2006-06-24  Alexey Proskuryakov  <ap@nypop.com>
3464
3465         Reviewed by Darin.
3466
3467         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7461
3468           Always encode the path part of an URI as UTF-8
3469
3470         Test: http/tests/uri/utf8-path.html
3471
3472         * platform/KURL.cpp:
3473         (encodeRelativeString): Always set pathEncoding to UTF-8.
3474
3475 2006-06-24  Graham Dennis  <Graham.Dennis@gmail.com>
3476
3477         Reviewed by Darin, landed by ap.
3478         
3479         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9467
3480           TreeWalker/NodeIterator do not restrict the traversal
3481         
3482         Test: traversal/stay-within-root.html
3483
3484         * dom/Node.cpp:
3485         (WebCore::Node::traversePreviousNode):
3486         * dom/Node.h:
3487         Add a stayWithin argument to traversePreviousNode just like the other
3488         traversal functions
3489         * dom/NodeIterator.cpp:
3490         (WebCore::NodeIterator::findNextNode):
3491         (WebCore::NodeIterator::findPreviousNode):
3492         Ensure that when moving forward or backward that the root node is not
3493         exited
3494         * dom/TreeWalker.cpp:
3495         (WebCore::TreeWalker::previousNode):
3496         (WebCore::TreeWalker::nextNode):
3497         Ditto
3498         (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
3499
3500 2006-06-24  Jonas Witt <jonas.witt@gmail.com>
3501
3502         Reviewed by ggaren, landed by ap.
3503
3504         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9181
3505           Complete DOMUIEvent Obj-C API to reflect UIEvent
3506
3507         * WebCore.exp: add new classes DOMKeyboardEvent and DOMWheelEvent to the exported 
3508           symbols list of WebCore.framework
3509
3510         Updated DOMUIEvent to include all DOM Level 2 properties
3511         Added DOMKeyboardEvent (DOM Level 3)
3512         Added two non-W3C accessors (keyCode, charCode) of DOMKeyboardEvent to a separate file (DOMEventsNonstandard)
3513         Added DOMWheelEvent (non-W3C) in separate file (DOMEventsNonstandard)
3514         Added this file (DOMEventsNonstandard) to the build process
3515
3516         * WebCore.xcodeproj/project.pbxproj:
3517         * bindings/objc/DOM.h:
3518         * bindings/objc/DOMEvents.h:
3519         * bindings/objc/DOMEvents.mm:
3520         (+[DOMEvent _eventWith:]):
3521         (-[DOMUIEvent _UIEvent]):
3522         (-[DOMUIEvent view]):
3523         (-[DOMUIEvent detail]):
3524         (-[DOMUIEvent initUIEvent:::::]):
3525         (-[DOMKeyboardEvent _keyboardEvent]):
3526         (-[DOMKeyboardEvent keyIdentifier]):
3527         (-[DOMKeyboardEvent keyLocation]):
3528         (-[DOMKeyboardEvent ctrlKey]):
3529         (-[DOMKeyboardEvent shiftKey]):
3530         (-[DOMKeyboardEvent altKey]):
3531         (-[DOMKeyboardEvent metaKey]):
3532         (-[DOMKeyboardEvent getModifierState:]):
3533         (-[DOMMouseEvent button]):
3534         * bindings/objc/DOMEventsNonstandard.mm: Added.
3535         (-[DOMWheelEvent _wheelEvent]):
3536         (-[DOMWheelEvent screenX]):
3537         (-[DOMWheelEvent screenY]):
3538         (-[DOMWheelEvent clientX]):
3539         (-[DOMWheelEvent clientY]):
3540         (-[DOMWheelEvent ctrlKey]):
3541         (-[DOMWheelEvent shiftKey]):
3542         (-[DOMWheelEvent altKey]):
3543         (-[DOMWheelEvent metaKey]):
3544         (-[DOMWheelEvent isHorizontal]):
3545         (-[DOMWheelEvent wheelDelta]):
3546         (-[DOMKeyboardEvent _keyboardEvent]):
3547         (-[DOMKeyboardEvent keyCode]):
3548         (-[DOMKeyboardEvent charCode]):
3549         * bindings/objc/DOMPrivate.h:
3550
3551 2006-06-24  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3552
3553         Reviewed and landed by ap.
3554
3555         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9563
3556           Remove unused layoutSuppressed field and inLayout() method
3557
3558         No test added because there is no change in functionality.
3559
3560         * page/FrameView.cpp:
3561         (WebCore::FrameViewPrivate::reset):
3562         (WebCore::FrameView::layout):
3563         * page/FrameView.h:
3564         * rendering/RenderView.cpp:
3565         (WebCore::RenderView::layout):
3566
3567 2006-06-24  Alexey Proskuryakov  <ap@nypop.com>
3568
3569         Reviewed by Darin.
3570
3571         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8177
3572         Javascript search incredibly slow
3573
3574         No change in functionality, thus no test.
3575
3576         Use info sharing for named collections, too. Moved shared HTMLCollection infos from HTMLDocument 
3577         to Document.  Renamed collection types to use the preferred WebKit style. Replaced direct
3578         HTMLCollection creation with using accessors from Document in a few places.
3579
3580         * bindings/objc/DOMHTML.mm:
3581         (-[DOMHTMLElement children]):
3582         (-[DOMHTMLDocument images]):
3583         (-[DOMHTMLDocument applets]):
3584         (-[DOMHTMLDocument links]):
3585         (-[DOMHTMLDocument forms]):
3586         (-[DOMHTMLDocument anchors]):
3587         (-[DOMHTMLMapElement areas]):
3588         (-[DOMHTMLTableSectionElement rows]):
3589         (-[DOMHTMLTableElement rows]):
3590         (-[DOMHTMLTableElement tBodies]):
3591         (-[DOMHTMLTableRowElement cells]):
3592         * dom/Document.cpp:
3593         (WebCore::Document::images):
3594         (WebCore::Document::applets):
3595         (WebCore::Document::embeds):
3596         (WebCore::Document::objects):
3597         (WebCore::Document::scripts):
3598         (WebCore::Document::links):
3599         (WebCore::Document::forms):
3600         (WebCore::Document::anchors):
3601         (WebCore::Document::all):
3602         (WebCore::Document::windowNamedItems):
3603         (WebCore::Document::documentNamedItems):
3604         (WebCore::Document::nameCollectionInfo):
3605         * dom/Document.h:
3606         (WebCore::Document::collectionInfo):
3607         * html/HTMLCollection.cpp:
3608         (WebCore::HTMLCollection::HTMLCollection):
3609         (WebCore::HTMLCollection::traverseNextItem):
3610         (WebCore::HTMLCollection::checkForNameMatch):
3611         (WebCore::HTMLCollection::updateNameCache):
3612         * html/HTMLCollection.h:
3613         (WebCore::HTMLCollection::):
3614         * html/HTMLDocument.h:
3615         * html/HTMLElement.cpp:
3616         (WebCore::HTMLElement::children):
3617         * html/HTMLMapElement.cpp:
3618         (WebCore::HTMLMapElement::areas):
3619         * html/HTMLNameCollection.h:
3620         * html/HTMLNameCollection.cpp:
3621         (WebCore::HTMLNameCollection::HTMLNameCollection):
3622         (WebCore::HTMLNameCollection::traverseNextItem):
3623         * html/HTMLFormCollection.cpp:
3624         * html/HTMLOptionsCollection.cpp:
3625         (WebCore::HTMLOptionsCollection::HTMLOptionsCollection):
3626         * html/HTMLSelectElement.h:
3627         (WebCore::HTMLSelectElement::collectionInfo):
3628         * html/HTMLTableElement.cpp:
3629         (WebCore::HTMLTableElement::rows):
3630         (WebCore::HTMLTableElement::tBodies):
3631         * html/HTMLTableRowElement.cpp:
3632         (WebCore::HTMLTableRowElement::cells):
3633         * html/HTMLTableSectionElement.cpp:
3634         (WebCore::HTMLTableSectionElement::rows):
3635         * kwq/WebCoreAXObject.mm:
3636         (-[WebCoreAXObject accessibilityAttributeValue:]):
3637         * page/Frame.cpp:
3638         (WebCore::Frame::gotoAnchor):
3639
3640 2006-06-24  Alexey Proskuryakov  <ap@nypop.com>
3641
3642         Reviewed by Darin.
3643
3644         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9418
3645         WebKit will not build when Space exists in path
3646
3647         * WebCore.xcodeproj/project.pbxproj: Enclose search paths in quotes; create symlinks to 
3648         avoid passing paths with spaces to make.
3649
3650 2006-06-23  Tim Omernick  <timo@apple.com>
3651
3652         Reviewed by Tim Hatcher.
3653
3654         <rdar://problem/4560947> Leopard REGRESSION: Dragging to TileGame Widget is broken
3655
3656         * page/FrameView.cpp:
3657         (WebCore::FrameView::updateDragAndDrop):
3658         Use the passed mouse event, instead of the "current" event.  There is no such thing as
3659         a "drag event".  Asking for the current event during a drag returns a weird system-
3660         internal event with an invalid mouse location.
3661
3662 2006-06-23  Timothy Hatcher  <timothy@apple.com>
3663
3664         Reviewed by Eric.
3665
3666         Manual test added: cursor.html
3667
3668         Bug 9560: should support new CSS3 cursor types to get more resizing directions
3669         http://bugzilla.opendarwin.org/show_bug.cgi?id=9560
3670
3671         Adds support for ew-resize, ns-resize, nesw-resize, nwse-resize,
3672         col-resize and row-resize CSS3 cursor values.
3673
3674         Also converted some of the cursor images to grayscale tiffs,
3675         some were RGB but had no color data.
3676
3677         * Resources/eastResizeCursor.tiff:
3678         * Resources/eastWestResizeCursor.tiff: Added.
3679         * Resources/helpCursor.tiff:
3680         * Resources/moveCursor.tiff:
3681         * Resources/northEastResizeCursor.tiff:
3682         * Resources/northEastSouthWestResizeCursor.tiff: Added.
3683         * Resources/northResizeCursor.tiff:
3684         * Resources/northSouthResizeCursor.tiff: Added.
3685         * Resources/northWestResizeCursor.tiff:
3686         * Resources/northWestSouthEastResizeCursor.tiff: Added.
3687         * Resources/southEastResizeCursor.tiff:
3688         * Resources/southResizeCursor.tiff:
3689         * Resources/southWestResizeCursor.tiff:
3690         * Resources/textAreaResizeCorner.tiff:
3691         * Resources/waitCursor.tiff:
3692         * Resources/westResizeCursor.tiff:
3693         * WebCore.xcodeproj/project.pbxproj:
3694         * css/CSSComputedStyleDeclaration.cpp:
3695         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3696         * css/CSSValueKeywords.in:
3697         * css/cssparser.cpp:
3698         (WebCore::CSSParser::parseValue):
3699         * manual-tests/cursor.html: Added.
3700         * page/FrameView.cpp:
3701         (WebCore::selectCursor):
3702         * platform/Cursor.h:
3703         * platform/mac/CursorMac.mm:
3704         (WebCore::northSouthResizeCursor):
3705         (WebCore::eastWestResizeCursor):
3706         (WebCore::northEastSouthWestResizeCursor):
3707         (WebCore::northWestSouthEastResizeCursor):
3708         (WebCore::columnResizeCursor):
3709         (WebCore::rowResizeCursor):
3710         * platform/win/CursorWin.cpp:
3711         (WebCore::northSouthResizeCursor):
3712         (WebCore::eastWestResizeCursor):
3713         (WebCore::northEastSouthWestResizeCursor):
3714         (WebCore::northWestSouthEastResizeCursor):
3715         (WebCore::columnResizeCursor):
3716         (WebCore::rowResizeCursor):
3717         * rendering/render_style.h: cursor needs 5 bits now
3718
3719 2006-06-23  John Sullivan  <sullivan@apple.com>
3720
3721         Reviewed by Tim Omernick
3722         
3723         - fixed <rdar://problem/4597685> stale rects for document markers can be left behind in certain cases
3724
3725         * dom/Document.h:
3726         * dom/Document.cpp:
3727         (WebCore::Document::setRenderedRectForMarker):
3728         changed parameter from IntRect to const IntRect& at Darin's request
3729         (WebCore::Document::invalidateRenderedRectsForMarkersInRect):
3730         new method, tests whether the rendered rect for each marker intersects the
3731         passed rect. If so, sets the rendered rect back to the placeholder rect that
3732         means that the rect for this marker isn't known.
3733         
3734         * page/Frame.cpp:
3735         (WebCore::Frame::paint):
3736         call invalidateRenderedRectsForMarkersInRect on the rect we're about to paint.
3737         This ensures that old stale rects won't be preserved if the associated marker
3738         has moved such that it is out of the painted area.
3739
3740 2006-06-23  Justin Garcia  <justin.garcia@apple.com>
3741
3742         Reviewed by levi
3743
3744         <rdar://problem/4527702>
3745         REGRESSION: Quote bars go away on first paragraph when I delete reply text
3746
3747         * editing/DeleteSelectionCommand.cpp:
3748         (WebCore::DeleteSelectionCommand::mergeParagraphs):
3749         Add a rule for when to merge into empty blocks.
3750
3751 === WebCore-521.13 ===
3752
3753 2006-06-23  Patrick Beard  <beard@apple.com>
3754
3755         Reviewed by Tim Hatcher.
3756
3757         <rdar://problem/4223619> Safari crashed in -[NSFont __isSystemFont]
3758         CFRetain and CFRelease NSFont's when FontPlatformData has a reference.
3759         We only do this when GC is enabled for performance reasons.
3760         No tests possible.
3761
3762         * platform/mac/FontPlatformData.h:
3763         (WebCore::FontPlatformData::FontPlatformData):
3764         (WebCore::FontPlatformData::~FontPlatformData):
3765
3766 2006-06-23  Justin Garcia  <justin.garcia@apple.com>
3767
3768         Reviewed by levi
3769         
3770         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8074>
3771         Caret before/after block tables is too small
3772         <rdar://problem/4598331>
3773         right arrow out of a table shows cursor in a weird place
3774
3775         * rendering/RenderBox.cpp:
3776         (WebCore::RenderBox::caretRect): Don't propagate to children, 
3777         VisiblePositions inside containers don't refer to children.
3778         Don't use the font height for tables.
3779
3780 2006-06-23  Brady Eidson  <beidson@apple.com>
3781
3782         Reviewed by Kevin.
3783
3784         Added 64-bit String::number() functions
3785
3786         * platform/PlatformString.h:
3787         * platform/String.cpp:
3788         (WebCore::String::number):
3789
3790 2006-06-22  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3791
3792         Reviewed by Hyatt.
3793
3794         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9497
3795           REGRESSION: Incomplete repainting when scrolling thumbnails on Flickr
3796
3797         Test: fast/repaint/clipped-relative.html
3798
3799         * page/FrameView.cpp:
3800         (WebCore::FrameView::layout):
3801         * rendering/RenderBlock.cpp:
3802         (WebCore::RenderBlock::removePositionedObjects): Removed call to computeRepaintRects().
3803         Previously, it was needed to update the cached rects before RenderBox::setStyle()
3804         called updateLayerPositions().
3805         * rendering/RenderBox.cpp:
3806         (WebCore::RenderBox::setStyle): Changed to call updateLayerPositions() for a newly-
3807         created layer only if it does not need layout. Otherwise,  updateLayerPositions() will
3808         be called after layout. This saves a repaint in some cases.
3809         * rendering/RenderLayer.cpp:
3810         (WebCore::RenderLayer::checkForRepaintOnResize): Renamed computeRepaintRects() to
3811         this and deleted the code that cached the absolute position and repaint rects.
3812         (WebCore::RenderLayer::updateLayerPositions): Added code to cache the absolute
3813         position and repaint rects right after updating the layer's position.
3814         * rendering/RenderLayer.h:
3815
3816 2006-06-22  Beth Dakin  <bdakin@apple.com>
3817
3818         Reviewed by Maciej.
3819
3820         Fix for <rdar://problem/4599015> REGRESSION: Hand on clock widget 
3821         don't appear at all
3822
3823         This regression was caused by <rdar://problem/4567520> HIDPI: pixel 
3824         cracks in weather widget at 1.83 scaling
3825
3826         * html/CanvasRenderingContext2D.cpp:
3827         (WebCore::CanvasRenderingContext2D::drawImage): Do the contains 
3828         check before rounding to integral device pixels.
3829
3830 2006-06-22  Anders Carlsson  <acarlsson@apple.com>
3831
3832         Reviewed by John.
3833
3834         <rdar://problem/4529334> REGRESSION: Can't configure RadarInMotion widget for U.S. locations on Leopard (Javascript errors)
3835         
3836         * dom/Document.cpp:
3837         (WebCore::Document::completeURL):
3838         Check if both the URL and base URL are empty instead of using URL() which returns "about:blank" if the URL is empty.
3839         
3840 2006-06-22  Anders Carlsson  <acarlsson@apple.com>
3841
3842         Reviewed by Maciej.
3843
3844         <rdar://problem/4499675> Package Tracker widget always crashes in WebCore::Frame::jScriptEnabled() const + 0
3845
3846         * html/HTMLParser.cpp:
3847         (WebCore::HTMLParser::noscriptCreateErrorCheck):
3848         (WebCore::HTMLParser::canvasCreateErrorCheck):
3849         (WebCore::HTMLParser::isInline):
3850         Add null-checks for document->frame() since it can be 0 for documents created using createHTMLDocument.
3851
3852 2006-06-22  Anders Carlsson  <acarlsson@apple.com>
3853
3854         Reviewed by Maciej.
3855
3856         <rdar://problem/4524840> Entities contained in DOCTYPE referenced DTD in XSLT source document are unknown
3857         
3858         * dom/xml_tokenizer.cpp:
3859         (WebCore::shouldAllowExternalLoad):
3860         Use correct path for the catalog.
3861         
3862         (WebCore::errorFunc):
3863         Add error function to keep parser errors from going to the console.
3864         
3865         (WebCore::XMLTokenizer::write):
3866         Remove if (0 &&)
3867         
3868         (WebCore::XMLTokenizer::end):
3869         Pass DocLoader to xmlDocPtrForString.
3870         
3871         (WebCore::xmlDocPtrForString):        
3872         * dom/xml_tokenizer.h:
3873         Add DocLoader argument to xmlDocPtrForString so external DTDs and entities can be loaded.
3874         
3875         * xml/XSLTProcessor.cpp:
3876         (WebCore::xmlDocPtrFromNode):
3877         Pass DocLoader to xmlDocPtrForString
3878         
3879 2006-06-21  David Hyatt  <hyatt@apple.com>
3880
3881         Back out -webkit-overlay and just rename it back to overlay.
3882
3883         Reviewed by darin
3884
3885         * css/CSSComputedStyleDeclaration.cpp:
3886         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3887         * css/CSSValueKeywords.in:
3888         * css/cssparser.cpp:
3889         (WebCore::CSSParser::parseValue):
3890         * css/cssstyleselector.cpp:
3891         (WebCore::CSSStyleSelector::applyProperty):
3892
3893 2006-06-21  Justin Garcia  <justin.garcia@apple.com>
3894
3895         Reviewed by levi
3896
3897         * editing/DeleteSelectionCommand.cpp:
3898         (WebCore::DeleteSelectionCommand::initializePositionData): Fix a bug in the code
3899         to stop merges across table cells.
3900         (WebCore::DeleteSelectionCommand::mergeParagraphs): Move the code to stop merges
3901         across table cells to initializePositionData so that its changes to 
3902         m_mergeBlocksAfterDelete can take effect on the endingPosition.
3903         * editing/InsertParagraphSeparatorCommand.cpp:
3904         (WebCore::InsertParagraphSeparatorCommand::doApply): Turn into an InsertLineBreak
3905         instead of splitting/cloning a table cell.
3906
3907 2006-06-21  Beth Dakin  <bdakin@apple.com>
3908
3909         Reviewed by John.
3910
3911         Fix for <rdar://problem/3914965> Misspelled text underline doesn't 
3912         look right at non-standard scale factors
3913
3914         * platform/mac/GraphicsContextMac.mm:
3915         (WebCore::GraphicsContext::drawLineForMisspelling): We need to call  
3916         into our previously-created SPI for pattern-drawing so that the 
3917         phase is right at all scale factors.
3918
3919 2006-06-21  David Hyatt  <hyatt@apple.com>
3920
3921         Fix for 7362, implement the CSS3 overflow-x and overflow-y properties.
3922
3923         Reviewed by adele
3924
3925         * WebCore.xcodeproj/project.pbxproj:
3926         * css/CSSComputedStyleDeclaration.cpp:
3927         (WebCore::):
3928         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3929         * css/CSSPropertyNames.in:
3930         * css/cssparser.cpp:
3931         (WebCore::CSSParser::parseValue):
3932         * css/cssstyleselector.cpp:
3933         (WebCore::CSSStyleSelector::adjustRenderStyle):
3934         (WebCore::CSSStyleSelector::applyProperty):
3935         * page/FrameView.cpp:
3936         (WebCore::FrameView::applyOverflowToViewport):
3937         (WebCore::FrameView::layout):
3938         * rendering/RenderBlock.cpp:
3939         (WebCore::RenderBlock::layoutBlock):
3940         (WebCore::RenderBlock::determineHorizontalPosition):
3941         (WebCore::RenderBlock::layoutBlockChildren):
3942         (WebCore::RenderBlock::rightOffset):
3943         (WebCore::RenderBlock::rightmostPosition):
3944         (WebCore::RenderBlock::calcMinMaxWidth):
3945         * rendering/RenderBox.cpp:
3946         (WebCore::RenderBox::setStyle):
3947         (WebCore::RenderBox::contentWidth):
3948         (WebCore::RenderBox::contentHeight):
3949         (WebCore::RenderBox::sizesToIntrinsicWidth):
3950         (WebCore::RenderBox::calcHeight):
3951         (WebCore::RenderBox::calcPercentageHeight):
3952         * rendering/RenderFlexibleBox.cpp:
3953         (WebCore::RenderFlexibleBox::layoutBlock):
3954         * rendering/RenderLayer.cpp:
3955         (WebCore::RenderLayer::scrollToOffset):
3956         (WebCore::RenderLayer::shouldAutoscroll):
3957         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
3958         (WebCore::RenderLayer::styleChanged):
3959         * rendering/RenderLayer.h:
3960         * rendering/RenderObject.cpp:
3961         (WebCore::RenderObject::clientWidth):
3962         (WebCore::RenderObject::clientHeight):
3963         * rendering/RenderObject.h:
3964         (WebCore::RenderObject::hasAutoVerticalScrollbar):
3965         (WebCore::RenderObject::hasAutoHorizontalScrollbar):
3966         (WebCore::RenderObject::scrollsOverflow):
3967         (WebCore::RenderObject::scrollsOverflowX):
3968         (WebCore::RenderObject::scrollsOverflowY):
3969         (WebCore::RenderObject::includeVerticalScrollbarSize):
3970         (WebCore::RenderObject::includeHorizontalScrollbarSize):
3971         * rendering/RenderTextArea.cpp:
3972         (WebCore::RenderTextArea::setStyle):
3973         * rendering/RenderTextField.cpp:
3974         (WebCore::RenderTextField::createDivStyle):
3975         (WebCore::RenderTextField::calcHeight):
3976         (WebCore::RenderTextField::calcMinMaxWidth):
3977         * rendering/bidi.cpp:
3978         (WebCore::RenderBlock::layoutInlineChildren):
3979         * rendering/render_style.cpp:
3980         (WebCore::RenderStyle::diff):
3981         * rendering/render_style.h:
3982         (WebCore::):
3983         (WebCore::RenderStyle::NonInheritedFlags::operator==):
3984         (WebCore::RenderStyle::setBitDefaults):
3985         (WebCore::RenderStyle::overflowX):
3986         (WebCore::RenderStyle::overflowY):
3987         (WebCore::RenderStyle::setOverflowX):
3988         (WebCore::RenderStyle::setOverflowY):
3989         (WebCore::RenderStyle::initialOverflowX):
3990         (WebCore::RenderStyle::initialOverflowY):
3991
3992 2006-06-21  Justin Garcia  <justin.garcia@apple.com>
3993
3994         Reviewed by levi
3995         
3996         <rdar://problem/4590366>
3997         REGRESSION: Selection incorrectly paints gaps on TOT
3998
3999         * dom/Document.cpp:
4000         (WebCore::Document::updateSelection): Use the leftmost candidate for the end of the
4001         selection and the rightmost candidate for the start of the selection.
4002         * dom/Position.cpp:
4003         (WebCore::Position::upstream): Cross line wraps so that we can use upstream/downstream
4004         to get to candidates before/after linewraps.
4005         (WebCore::Position::downstream):
4006         (WebCore::Position::inRenderedContent):
4007         * editing/DeleteSelectionCommand.cpp:
4008         (WebCore::DeleteSelectionCommand::handleGeneralDelete):
4009         (WebCore::DeleteSelectionCommand::mergeParagraphs):
4010         * editing/InsertParagraphSeparatorCommand.cpp:
4011         (WebCore::InsertParagraphSeparatorCommand::doApply): 
4012         Ensure that the leftmost candidate is used.  We should sample the style from that one.
4013         When the block to insert is after a br, a br should be inserted even in strict mode.
4014         * editing/InsertTextCommand.cpp:
4015         (WebCore::InsertTextCommand::input): 
4016         Insert at the leftmost candidate, get rid of a use of trailingWhitespacePosition.
4017         Don't apply a style if its unnecessary.
4018         * editing/ReplaceSelectionCommand.cpp:
4019         (WebCore::ReplaceSelectionCommand::doApply): "pos" can be invalidated, don't use it.
4020         * editing/VisiblePosition.cpp:
4021         Renamed initDeepPosition and made it return the canonical position.
4022         (WebCore::VisiblePosition::init):
4023         (WebCore::VisiblePosition::canonicalPosition):
4024         * editing/VisiblePosition.h: 
4025         (WebCore::VisiblePosition::characterBefore): Added.
4026         * editing/visible_units.cpp:
4027         (WebCore::startOfParagraph):
4028         * rendering/InlineTextBox.cpp:
4029         (WebCore::InlineTextBox::selectionState): When a selection ends at a line wrap, it shouldn't extend
4030         onto the next line.
4031
4032 2006-06-21  David Hyatt  <hyatt@apple.com>
4033
4034         Reviewed and committed by Beth.
4035
4036         Fix for <rdar://problem/4595337> Resizing a containing block 
4037         strictly vertically does not cause contained height:100% element to 
4038         also be resized.
4039
4040         * rendering/RenderBlock.cpp:
4041         (WebCore::RenderBlock::layoutBlockChildren): Also layout if the 
4042         child's min or max height is a percent.
4043
4044 2006-06-21  Anders Carlsson  <acarlsson@apple.com>
4045
4046         Reviewed by Geoff.
4047
4048         http://bugzilla.opendarwin.org/show_bug.cgi?id=6058
4049         XMLTokenizer runs all <script> tags at once instead of as they're encountered
4050         
4051         * dom/xml_tokenizer.cpp:
4052         (WebCore::XMLTokenizer::XMLTokenizer):
4053         Initialize new members.
4054         
4055         (WebCore::XMLTokenizer::endElementNs):
4056         If we've encountered a script tag, execute the script here. If the script
4057         tag refers to an external resource, pause the parser while loading it.
4058         
4059         (WebCore::XMLTokenizer::end):
4060         Move code from finish() to here
4061         
4062         (WebCore::XMLTokenizer::finish):
4063         Only call end() if the parser isn't paused.
4064         
4065         (WebCore::XMLTokenizer::notifyFinished):
4066         Evaluate the script here and resume the parser.
4067         
4068         (WebCore::XMLTokenizer::resumeParsing):
4069         If finish() was called, call end() after writing all data.
4070
4071 2006-06-21  Steve Falkenburg  <sfalken@apple.com>
4072
4073         Fix build break
4074
4075         * platform/win/TemporaryLinkStubs.cpp:
4076         (FrameWin::shouldInterruptJavaScript):
4077
4078 2006-06-21  Anders Carlsson  <acarlsson@apple.com>
4079
4080         Move FrameWin::shouldInterruptJavaScript to TemporaryLinkStubs.cpp
4081         
4082         * bridge/win/FrameWin.cpp:
4083         * platform/win/TemporaryLinkStubs.cpp:
4084         (FrameWin::shouldInterruptJavaScript):
4085
4086 2006-06-21  Ben Goodger <bengoodger@gmail.com>
4087
4088         Reviewed by Maciej. 
4089
4090         Fix for: http://bugzilla.opendarwin.org/show_bug.cgi?id=9523
4091         More Win32 build bustage.
4092  
4093         * WebCore.vcproj/WebCore/WebCore.vcproj:
4094         * bridge/win/FrameWin.cpp:
4095         (WebCore::FrameWin::shouldInterruptJavaScript):
4096         * bridge/win/FrameWin.h:
4097
4098 2006-06-20  Adele Peterson  <adele@apple.com>
4099
4100         Reviewed by Anders.
4101
4102         Fix for: http://bugzilla.opendarwin.org/show_bug.cgi?id=8948
4103         Switch to use new text field implementation for <textarea>
4104
4105         * css/html4.css:
4106         * html/HTMLTextAreaElement.cpp:
4107         (WebCore::HTMLTextAreaElement::selectionStart):
4108         (WebCore::HTMLTextAreaElement::selectionEnd):
4109         (WebCore::HTMLTextAreaElement::setSelectionStart):
4110         (WebCore::HTMLTextAreaElement::setSelectionEnd):
4111         (WebCore::HTMLTextAreaElement::select):
4112         (WebCore::HTMLTextAreaElement::setSelectionRange):
4113         (WebCore::HTMLTextAreaElement::createRenderer):
4114         (WebCore::HTMLTextAreaElement::appendFormData):
4115         (WebCore::HTMLTextAreaElement::isKeyboardFocusable):
4116         (WebCore::HTMLTextAreaElement::isMouseFocusable):
4117         (WebCore::HTMLTextAreaElement::focus):
4118         (WebCore::HTMLTextAreaElement::defaultEventHandler):
4119         (WebCore::HTMLTextAreaElement::updateValue):
4120         (WebCore::HTMLTextAreaElement::setValue):
4121
4122 2006-06-20  Brady Eidson  <beidson@apple.com>
4123
4124         Reviewed by Maciej
4125
4126         Fixed capitalization mistake that I made, someone else fixed, then I accidentally made it go back to the old way
4127
4128         * icon/SQLStatement.cpp:
4129
4130 2006-06-20  Brady Eidson  <beidson@apple.com>
4131
4132         Reviewed by Maciej.
4133
4134         More changes/additions setting the stage for the major IconDatabase hookup.
4135
4136         * WebCore.xcodeproj/project.pbxproj:  Added SQLTransaction.cpp
4137
4138         * bridge/mac/WebCoreIconDatabaseBridge.h: Added call-throughs and translations to pass WebKit DB to WebCore DB
4139         * bridge/mac/WebCoreIconDatabaseBridge.mm:
4140         (+[WebCoreIconDatabaseBridge sharedBridgeInstance]):
4141         (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
4142         (-[WebCoreIconDatabaseBridge iconForURL:withSize:]):
4143         (-[WebCoreIconDatabaseBridge iconURLForURL:]):
4144         (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
4145         (-[WebCoreIconDatabaseBridge retainIconForURL:]):
4146         (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
4147         (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
4148         (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
4149         (-[WebCoreIconDatabaseBridge _setIconURL:forURL:]):
4150         (-[WebCoreIconDatabaseBridge _hasIconForIconURL:]):
4151
4152         * bridge/mac/WebCorePageBridge.mm: Added WebCore's IconDatabase logging channel to the user-prefs check
4153         (initializeLoggingChannelsIfNecessary):
4154
4155         * icon/IconDatabase.cpp:  Added stubs and basic SQL usage to create the sqlite DB and respond to WebKit calls
4156         (WebCore::IconDatabase::IconDatabase):
4157         (WebCore::IconDatabase::open):
4158         (WebCore::IconDatabase::close):
4159         (WebCore::IconDatabase::isValidDatabase):
4160         (WebCore::IconDatabase::recreateDatabase):
4161         (WebCore::IconDatabase::setPrivateBrowsingEnabled):
4162         (WebCore::IconDatabase::iconForURL):
4163         (WebCore::IconDatabase::iconURLForURL):
4164         (WebCore::IconDatabase::defaultIcon):
4165         (WebCore::IconDatabase::retainIconForURL):
4166         (WebCore::IconDatabase::releaseIconForURL):
4167         (WebCore::IconDatabase::setIconForIconURL):
4168         (WebCore::IconDatabase::setHaveNoIconForIconURL):
4169         (WebCore::IconDatabase::setIconURLForPageURL):
4170         (WebCore::IconDatabase::hasIconForIconURL):
4171
4172         * icon/IconDatabase.h:  WebIcon will be an internal class used in IconDatabase but is not complete yet
4173         (WebCore::WebIcon::getExpiration):
4174         (WebCore::WebIcon::getTouch):
4175
4176         * icon/SQLDatabase.cpp:  Added more SQLite convenience methods
4177         (SQLDatabase::setFullsync):
4178         (SQLDatabase::setBusyTimeout):
4179         (SQLDatabase::setBusyHandler):
4180         * icon/SQLDatabase.h:
4181         * icon/SQLStatement.cpp:
4182         (WebCore::SQLStatement::returnsAtLeastOneResult):
4183
4184         * icon/SQLTransaction.cpp: Added basic commit/rollback support with this simple class
4185         (SQLTransaction::SQLTransaction):
4186         (SQLTransaction::~SQLTransaction):
4187         (SQLTransaction::begin):
4188         (SQLTransaction::commit):
4189         (SQLTransaction::rollback):
4190
4191 2006-06-20  Adele Peterson  <adele@apple.com>
4192
4193         Reviewed by Maciej.
4194
4195         Fixes for:
4196         http://bugzilla.opendarwin.org/show_bug.cgi?id=8724
4197         REGRESSION: onSelect handler doesn't work for text fields
4198
4199         http://bugzilla.opendarwin.org/show_bug.cgi?id=7676
4200         REGRESSION: Selection methods on new text fields don't work if text field is hidden
4201