Reviewed by Darin.
[WebKit-https.git] / WebCore / ChangeLog
1 2007-03-05  Alexey Proskuryakov  <ap@webkit.org>
2
3         Reviewed by Darin.
4
5         http://bugs.webkit.org/show_bug.cgi?id=12954
6         XPath relative operations are implemented incorrectly
7
8         * xml/XPathPredicate.cpp:
9         (WebCore::XPath::NumericOp::doEvaluate):
10         (WebCore::XPath::EqTestOp::compare):
11         (WebCore::XPath::EqTestOp::doEvaluate):
12         Reimplemented relative equality operations to match the spec.
13
14         * xml/XPathPredicate.h:
15         (WebCore::XPath::NumericOp::):
16         (WebCore::XPath::EqTestOp::):
17         Moved relative operations to EqTestOp.
18
19         * xml/XPathGrammar.y:
20         * xml/XPathParser.cpp:
21         (WebCore::XPath::Parser::nextTokenInternal):
22         (WebCore::XPath::Parser::lex):
23         Adapted for the above changes.
24
25 2007-03-05  Mark Rowe  <mrowe@apple.com>
26
27         Reviewed by Lars.
28
29         Fix http://bugs.webkit.org/show_bug.cgi?id=12947
30         Bug 12947: REGRESSION: ASSERTION FAILED: maxWidth >= 0 in StringTruncator.cpp:109 in WebCore::truncateString()
31
32         Handle nil window correctly in toUserSpace and toDeviceSpace.  On Intel Macs a message to nil that returns a
33         float will return 0.0.  We use this as the divisor in calculating a scale factor, which results in NaN being
34         introduced into our rect.
35
36         * platform/mac/ScreenMac.mm:
37         (WebCore::toUserSpace):
38         (WebCore::toDeviceSpace):
39
40 2007-03-05  Rob Buis  <buis@kde.org>
41
42         Reviewed by Darin.
43
44         http://bugs.webkit.org/show_bug.cgi?id=12868
45         parts of the CSS classes in this simple SVG example are not applied
46
47         Make sure the xml stylesheets are parsed in strict mode.
48
49         * dom/ProcessingInstruction.cpp:
50         (WebCore::ProcessingInstruction::parseStyleSheet):
51
52 2007-03-04  Adele Peterson  <adele@apple.com>
53
54         Reviewed by Darin.
55
56         Change to dispatch the keypress event during the defaultEventHandler for keydown events.  This matches IE behavior.
57         This is preparation for fixing event dispatch with input methods (http://bugs.webkit.org/show_bug.cgi?id=10871)
58
59         Test: fast/events/keydown-keypress-preventDefault.html
60
61         * dom/EventTargetNode.cpp: (WebCore::EventTargetNode::defaultEventHandler): Call the defaultKeyboardEventHandler for keydown events.
62         * page/EventHandler.cpp:
63         (WebCore::eventTargetNodeForDocument): Return 0 instead of false since the return type in EventTargetNode.
64         (WebCore::EventHandler::keyEvent): Removed dispatch of keypress event, since this is now done in the default event handler.
65         (WebCore::EventHandler::defaultKeyboardEventHandler): For keydown events, create and dispatch a keypress event.
66
67 2007-03-04  Alexey Proskuryakov  <ap@webkit.org>
68
69         Reviewed by Nikolas Zimmermann (yay!).
70
71         http://bugs.webkit.org/show_bug.cgi?id=12962
72         4XPath tests crash on lang() function
73
74         Covered by 4XPath tests, to be landed later.
75
76         * platform/StringImpl.cpp:
77         (WebCore::StringImpl::reverseFind): Do not crash with empty strings.
78         * xml/XPathFunctions.cpp:
79         (WebCore::XPath::FunLang::doEvaluate): Do not crash when an element has no
80         attributes. Use a proper namespace for xml:lang (not sure where "xms" came from).
81         Rewrote the algorithm for suffix removing to match the spec.
82
83 2007-03-02  Anders Carlsson  <acarlsson@apple.com>
84
85         Reviewed by Darin.
86
87         <rdar://problem/5028165> 
88         http://bugs.webkit.org/show_bug.cgi?id=12915
89         REGRESSION: XMLHttpRequest.abort() does not stop loading (12915)
90         
91         * loader/DocumentLoader.cpp:
92         (WebCore::DocumentLoader::stopLoading):
93         Save the value of m_loading since calling FrameLoader::stopLoading could set it to false.
94         
95         * loader/SubresourceLoader.cpp:
96         (WebCore::SubresourceLoader::didCancel):
97         * loader/SubresourceLoader.h:
98         Get rid of didCancel now, it's not needed anymore.
99         
100         * xml/xmlhttprequest.cpp:
101         (WebCore::XMLHttpRequest::abort):
102         Call cancel() instead of stopLoading(). Also, set m_aborted to true so the XMLHttpRequest object
103         won't be dereferenced in didFail when aborting.
104
105 2007-03-04  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
106
107         Reviewed by Nikolas Zimmermann.
108
109         Move ScrollView stubs to ScrollViewGdk.cpp
110
111         * platform/gdk/FrameGdk.h: remove comment that no longer makes sense
112         * platform/gdk/ScrollViewGdk.cpp:
113         (WebCore::ScrollView::addChild):
114         (WebCore::ScrollView::removeChild):
115         (WebCore::ScrollView::scrollPointRecursively):
116         (WebCore::ScrollView::inWindow):
117         (WebCore::ScrollView::wheelEvent):
118         (WebCore::ScrollView::updateScrollbars):
119         (WebCore::ScrollView::updateScrollInfo):
120         (WebCore::ScrollView::windowToContents):
121         (WebCore::ScrollView::contentsToWindow):
122         (WebCore::ScrollView::scrollbarUnderMouse):
123         * platform/gdk/TemporaryLinkStubs.cpp:
124
125 2007-03-02  Kevin McCullough  <kmccullough@apple.com>
126
127         Reviewed by Geoff.
128
129         - rdar://problem/4922454
130         - This fixes a security issue by making remote referrers not able to access local
131         resources, unless they register their schemes to be treated as local. The result is
132         that those schemes can access local resources and cannot be accessed by remote
133         referrers.
134         Because this behavior is new a link-on-or-after check is made to determine if the
135         app should use the older, less safe, behavior.
136
137         * WebCore.exp: added exported functions
138         * bindings/objc/DOM.mm: consolodated function to base class
139         (-[DOMElement image]):
140         (-[DOMElement _imageTIFFRepresentation]):
141         * dom/Document.cpp: Cache the document's ability to load local resources.
142         (WebCore::Document::Document):
143         (WebCore::Document::setURL):
144         (WebCore::Document::shouldBeAllowedToLoadLocalResources):
145         (WebCore::Document::stylesheetLoaded):
146         * dom/Document.h: Cache the docuent's ability to load local resources.
147         (WebCore::Document::getPendingSheet):
148         (WebCore::Document::isAllowedToLoadLocalResources):
149         * html/HTMLImageLoader.cpp: Moved functionality into base class.
150         (WebCore::HTMLImageLoader::updateFromElement):
151         (WebCore::HTMLImageLoader::dispatchLoadEvent):
152         * html/HTMLLinkElement.cpp: Handles null returns correctly now.
153         * html/HTMLTokenizer.cpp: Moved functionality into base class.
154         (WebCore::HTMLTokenizer::notifyFinished):
155         * ksvg2/misc/SVGImageLoader.cpp: Moved functionality into base class.
156         (WebCore::SVGImageLoader::dispatchLoadEvent):
157         * loader/Cache.cpp: Checks if the cached resource can be loaded.
158         (WebCore::Cache::requestResource):
159         * loader/CachedCSSStyleSheet.cpp: Moved functionality into base class.
160         (WebCore::CachedCSSStyleSheet::ref):
161         (WebCore::CachedCSSStyleSheet::error):
162         * loader/CachedImage.cpp: Moved functionality into base class.
163         (WebCore::CachedImage::CachedImage):
164         * loader/CachedImage.h: Moved functionality into base class.
165         (WebCore::CachedImage::canRender):
166         * loader/CachedResource.cpp: Cache if the CachedResource should be treated as local
167         (WebCore::CachedResource::CachedResource):
168         * loader/CachedResource.h: Moved functionality into base class.
169         (WebCore::CachedResource::errorOccurred):
170         (WebCore::CachedResource::shouldTreatAsLocal):
171         * loader/CachedScript.cpp: Moved functionality into base class.
172         (WebCore::CachedScript::CachedScript):
173         * loader/CachedScript.h: Moved functionality into base class.
174         (WebCore::CachedScript::schedule):
175         * loader/CachedXBLDocument.cpp: Moved functionality into base class.
176         (WebCore::CachedXBLDocument::error):
177         * loader/CachedXSLStyleSheet.cpp: Moved functionality into base class.
178         (WebCore::CachedXSLStyleSheet::error):
179         * loader/FrameLoader.cpp: See comments for each function below.
180         (WebCore::FrameLoader::loadSubframe): Use new canLoad.
181         (WebCore::FrameLoader::restrictAccessToLocal): return value of linked-on-or-after check.
182         (WebCore::FrameLoader::setRestrictAccessToLocal): set value for linked-on-or-after check.
183         (WebCore::localSchemes): Return set of schemes that are to be treated as local.
184         (WebCore::FrameLoader::loadPlugin): Use new canLoad.
185         (WebCore::FrameLoader::canLoad): Now multiple functions that each do the same work but some can take advantage of the cached values, if they were computed previously.
186         (WebCore::FrameLoader::shouldHideReferrer): Extracted out the logic to determine if the referrer should be hidden so it is only calculated when needed.
187         (WebCore::FrameLoader::loadResourceSynchronously): No longer calls canLoad to get hideReferrer info.
188         (WebCore::FrameLoader::registerSchemeAsLocal): Functionality to register a scheme to be treated as local.
189         (WebCore::FrameLoader::treatURLAsLocal): Given a URL this function determines if it should be treated as local.
190         * loader/FrameLoader.h: Declared functions for this security fix.  See above.
191         * loader/MainResourceLoader.cpp: Optized order of bools to regain performance.
192         (WebCore::MainResourceLoader::continueAfterContentPolicy):
193         * loader/SubresourceLoader.cpp: Now restricts remote from loading local resources.
194         (WebCore::SubresourceLoader::create):
195         * page/EventHandler.cpp: Moved functionality into base class.
196         (WebCore::selectCursor):
197         * platform/KURL.cpp: KURLs need to check all the registered schemes now.
198         (WebCore::KURL::isLocalFile):
199         * rendering/HitTestResult.cpp: Moved functionality into base class.
200         (WebCore::HitTestResult::image):
201         * rendering/RenderImage.cpp: Moved functionality into base class.
202         (WebCore::RenderImage::setCachedImage):
203         (WebCore::RenderImage::imageChanged):
204         (WebCore::RenderImage::paint):
205         (WebCore::RenderImage::layout):
206         (WebCore::RenderImage::calcAspectRatioWidth):
207         (WebCore::RenderImage::calcAspectRatioHeight):
208         * rendering/RenderImage.h: Moved functionality into base class.
209         (WebCore::RenderImage::errorOccurred):
210         * rendering/RenderListItem.cpp: Moved functionality into base class.
211         (WebCore::RenderListItem::setStyle):
212         * rendering/RenderListMarker.cpp: Moved functionality into base class.
213         (WebCore::RenderListMarker::isImage):
214         * xml/xmlhttprequest.cpp: Check doc's cached value instead of determining independently.
215         (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
216
217 2007-03-02  Justin Garcia  <justin.garcia@apple.com>
218
219         Reviewed by kevin
220         
221         <rdar://problem/5028447>
222         REGRESSION: Gmail Editor: Copied message text pastes at the wrong font size
223
224         * editing/markup.cpp:
225         (WebCore::createMarkup): The style of the div that holds
226         a fully selected body's styles didn't include styles inherited
227         from the body's ancestors.
228         
229 2007-03-02  Justin Garcia  <justin.garcia@apple.com>
230
231         Reviewed by harrison
232
233         <rdar://problem/4545040>
234         innerHTML does not HTML-escape text nodes inside PRE elements
235         <rdar://problem/5027857>
236         Pasting into Mail from Safari's view-source window renders the HTML
237
238         * editing/HTMLInterchange.cpp:
239         (WebCore::convertHTMLTextToInterchangeFormat): Send this function
240         the node that the text comes from as a parameter.  It shouldn't convert
241         '\n's to spaces/nbsps if the text is coming from text where newlines are
242         preserved.
243         * editing/HTMLInterchange.h:
244         * editing/markup.cpp:
245         (WebCore::startMarkup): Escape text inside the children of PREs.
246
247 2007-03-02  Sam Weinig  <sam@webkit.org>
248
249         Reviewed by Anders.
250
251         Try to fix the Qt build.
252
253         * platform/qt/TemporaryLinkStubs.cpp: Add stubs.
254         (WebCore::searchMenuNoRecentSearchesText):
255         (WebCore::searchMenuRecentSearchesText):
256         (WebCore::searchMenuClearRecentSearchesText):
257         (WebCore::AXWebAreaText):
258         (WebCore::AXLinkText):
259         (WebCore::AXListMarkerText):
260         (WebCore::AXImageMapText):
261         (WebCore::AXHeadingText):
262
263 2007-03-02  David Harrison  <harrison@apple.com>
264
265         Suggested by Darin.
266
267         A more efficient solution to rdar://4961431.
268
269         * bridge/mac/WebCoreAXObject.mm:
270         (-[WebCoreAXObject accessibilityIsIgnored]):
271
272 2007-03-01  Justin Garcia  <justin.garcia@apple.com>
273
274         Reviewed by john
275         
276         <rdar://problem/5032095>
277         Gmail Editor: Copied text pastes on a new line instead of current line
278         
279         Start merge failed to occur because positionAtStartOfInsertedContent
280         had a bug.
281
282         * editing/ReplaceSelectionCommand.cpp:
283         (WebCore::ReplaceSelectionCommand::positionAtStartOfInsertedContent):
284         Was failing when inserting <span><div>foo/div></span>. Return the 
285         inserted content's first VisiblePosition.
286
287 2007-03-02  Dave Hyatt  <hyatt@apple.com>
288
289         Fix crasher in glyph map code (buffer overrun).
290
291         Reviewed by darin
292
293         * platform/win/GlyphPageTreeNodeWin.cpp:
294         (WebCore::GlyphPage::fill):
295
296 2007-03-01  Antti Koivisto  <antti@apple.com>
297
298         Reviewed by Maciej.
299
300         Fix for http://bugs.webkit.org/show_bug.cgi?id=12895
301         REGRESSION: imagemap: pointer cursor is shown everywhere
302         <rdar://problem/5028163>
303  
304         Image with imagemap should never itself be URLElement in hit test results. 
305                
306         No layout test, cursor state can't be captured.
307
308         * rendering/RenderLayer.cpp:
309         (WebCore::RenderLayer::hitTest):
310
311 2007-03-01  Antti Koivisto  <antti@apple.com>
312
313         Reviewed by Maciej.
314         
315         Fix http://bugs.webkit.org/show_bug.cgi?id=12690
316         REGRESSION: can not log in to bank of america with TOT webkit
317         <rdar://problem/4990044>
318         
319         and http://bugs.webkit.org/show_bug.cgi?id=12604
320         REGRESSION: After closing the "Would you like to save password" sheet, the form fails 
321         to submit automatically at http://www.mac.com/WebObjects/HomePage.woa
322         <rdar://problem/4871752>
323         
324         and http://bugs.webkit.org/show_bug.cgi?id=12020
325         REGRESSION: Flickr uploading broken
326         <rdar://problem/4928662>
327         
328         Turn protection against multiple forms submission back on. This approach is buggy 
329         but it is way better than not having it at all. Not protecting against this
330         breaks number of major sites.
331         
332         * bridge/mac/WebCoreAXObject.mm:
333         (-[WebCoreAXObject accessibilityPerformAction:]):
334         * loader/FrameLoader.cpp:
335         (WebCore::FrameLoader::resetMultipleFormSubmissionProtection):
336         (WebCore::FrameLoader::submitForm):
337         (WebCore::FrameLoader::receivedMainResourceError):
338         * loader/FrameLoader.h:
339         * page/EventHandler.cpp:
340         (WebCore::EventHandler::keyEvent):
341         * page/Frame.cpp:
342         (WebCore::Frame::setView):
343         * page/mac/EventHandlerMac.mm:
344         (WebCore::EventHandler::mouseDown):
345
346 2007-03-01  Kevin McCullough  <kmccullough@apple.com>
347
348         Reviewed by Adam.
349
350         - Added the test case: external-script-URL-location.html
351         - Fix an issue where the url of a document is null after an open if the document
352         has no parent.
353
354         * dom/Document.cpp:
355         (WebCore::Document::open):
356
357 2007-03-01  Anders Carlsson  <acarlsson@apple.com>
358
359         Reviewed by Darin.
360
361         <rdar://problem/4960250> 
362         http://bugs.webkit.org/show_bug.cgi?id=11627
363         REGRESSION: Reproducible crash at IMDb in WebCore::FrameLoader::stopLoadingSubframes
364         
365         In rare cases, we could end up calling checkLoadComplete twice for the same frame. This would cause the 
366         didFailProvisionalLoad delegate method to be called twice for the same frame, and also cause the provisional document loader
367         to be reset to null when other code wasn't expecting it.
368         
369         This regressed in revision 10904 with the fix for <rdar://problem/4184719>. The fix is to only call stopLoading on the frame
370         if either the document loader is loading, or the document is still being parsed. I've verified that the bug is still fixed and
371         that no leaks occur.
372         
373         * loader/DocumentLoader.cpp:
374         (WebCore::DocumentLoader::stopLoading):
375
376 2007-03-01  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
377
378         Reviewed by Darin.
379
380         Fix ARM crash due to accessing non-4-byte-aligned memory
381         as 32-bit values.
382
383         * platform/AtomicString.cpp:
384         (WebCore::UCharBufferTranslator::equal):
385
386 2007-03-01  David Harrison  <harrison@apple.com>
387
388         Reviewed by Darin.
389
390         <rdar://problem/5033905> Have the DOM secondary thread check raise an exception by default
391
392         * platform/mac/ThreadCheck.mm:
393         (WebCore::_WebCoreThreadViolationCheck):
394         Initialize threadViolationIsException to true.
395
396 2007-03-01  Brady Eidson  <beidson@apple.com>
397
398         Reviewed by Darin
399
400         <rdar://problem/5030628> - Crash opening a new window with the
401         "New windows open to the same page" pref set
402
403         * history/HistoryItem.cpp:
404         (WebCore::HistoryItem::HistoryItem): Set the m_subItems vector capacity correctly
405
406 2007-03-01  Alexey Proskuryakov  <ap@webkit.org>
407
408         Reviewed by Maciej.
409
410         http://bugs.webkit.org/show_bug.cgi?id=12801
411         Assertion failure in createMarkup() (root) when doing Select All, Copy in an SVG document
412
413         Test: editing/pasteboard/createMarkup-assert.xml
414
415         * editing/markup.cpp:
416         (WebCore::createMarkup): Removed the assertion, because it's wrong in a non-HTML world.
417
418 2007-02-28  Adam Roben  <aroben@apple.com>
419
420         Reviewed by Oliver and Hyatt.
421
422         Fix <rdar://problem/5024233> Crash while using Find on empty document
423
424         No layout test possible, as this involves a null document.
425
426         * dom/Range.cpp:
427         (WebCore::rangeOfContents): Added an ASSERT.
428         * page/Frame.cpp:
429         (WebCore::Frame::findString): Added a null-check for document().
430         (WebCore::Frame::markAllMatchesForText): Ditto.
431
432 2007-02-28  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
433
434         Not reviewed - simple gdk build fix.
435
436         Add stubs for newly introduced localized strings.
437
438         * platform/gdk/TemporaryLinkStubs.cpp:
439         (WebCore::searchMenuNoRecentSearchesText):
440         (WebCore::searchMenuRecentSearchesText):
441         (WebCore::searchMenuClearRecentSearchesText):
442
443 2007-02-28  Brady Eidson  <beidson@apple.com>
444
445         Reviewed by Beth
446
447         Move the Thread Safety Check functions into their own header for export to WebKit
448
449         * WebCore.exp: Export the function
450         * WebCore.xcodeproj/project.pbxproj: 
451         * bindings/scripts/CodeGeneratorObjC.pm: Include the new header
452         * platform/Logging.h: Move stuff to ThreadCheck.h
453         * platform/ThreadCheck.h: Added.
454         * platform/mac/LoggingMac.mm: Move stuff to ThreadCheck.mm
455         * platform/mac/ThreadCheck.mm: Added.
456         (WebCore::_WebCoreThreadViolationCheck):
457         (WebCoreReportThreadViolation):
458
459 2007-02-28  Beth Dakin  <bdakin@apple.com>
460
461         Reviewed by Brady.
462
463         Fix for http://bugs.webkit.org/show_bug.cgi?id=12923 REGRESSION: 
464         Assertion failure copying standalone image
465
466         * platform/mac/PasteboardMac.mm:
467         (WebCore::Pasteboard::writeImage): Use the CachedImage as the 
468         resource. This makes more sense anyway. There is no need to null-
469         check the renderer or the CachedImage since we return early if 
470         there is no Image* and the HitTestResult::image() function checks 
471         for these things.
472
473 2007-02-28  Adele Peterson  <adele@apple.com>
474
475         Reviewed by Beth.
476
477         Fix for <rdar://problem/4887423> REGRESSION: search results popup menu strings are not localized
478         and <rdar://problem/3517227> accessibility-related strings in WebCore are not localized
479
480         Use localized strings from WebKit instead of hard coded strings.
481
482         * bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject roleDescription]):
483         * page/mac/WebCoreViewFactory.h:
484         * platform/LocalizedStrings.h:
485         * platform/mac/LocalizedStringsMac.mm:
486         (WebCore::searchMenuNoRecentSearchesText):
487         (WebCore::searchMenuRecentSearchesText):
488         (WebCore::searchMenuClearRecentSearchesText):
489         (WebCore::AXWebAreaText):
490         (WebCore::AXLinkText):
491         (WebCore::AXListMarkerText):
492         (WebCore::AXImageMapText):
493         (WebCore::AXHeadingText):
494         * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::itemText):
495
496 2007-02-27  Antti Koivisto  <antti@apple.com>
497
498         Reviewed by Maciej.
499
500         - fix http://bugs.webkit.org/show_bug.cgi?id=12911
501         GoogleDocs: Ordered lists don't update immediately when start attribute changed
502         
503         Update list marker value when start attribute changes.
504
505         * html/HTMLOListElement.cpp:
506         (WebCore::HTMLOListElement::parseMappedAttribute):
507
508 2007-02-28  Nikolas Zimmermann  <zimmermann@kde.org>
509
510         Reviewed by Maciej.
511
512         Corrected the use of the new ENABLE() macros in some ksvg2/svg files.
513         Add new build-webkit flags "--(no-)xpath" / "--(no-)xslt", to be able
514         to switch off build features easily. Also add "--(no-)svg-experimental-features"
515         flag, to be able to test filters/animations/use/foreignObject easily.
516
517         * DerivedSources.make:
518         * ksvg2/scripts/make_names.pl:
519         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
520         * ksvg2/svg/SVGStyledElement.cpp:
521         * ksvg2/svg/SVGUseElement.cpp:
522
523 2007-02-28  Rob Buis  <buis@kde.org>
524
525         Reviewed by Maciej.
526
527         http://bugs.webkit.org/show_bug.cgi?id=12609
528         Any SVG element will create renderers even when children of HTML elements
529
530         Allow creation of svg renderers only when parent is SVG, except for
531         the <svg> element.
532
533         * ksvg2/svg/SVGAElement.h:
534         * ksvg2/svg/SVGAnimationElement.h:
535         * ksvg2/svg/SVGCircleElement.h:
536         * ksvg2/svg/SVGClipPathElement.h:
537         (WebCore::SVGClipPathElement::rendererIsNeeded):
538         * ksvg2/svg/SVGDefsElement.cpp:
539         * ksvg2/svg/SVGDefsElement.h:
540         * ksvg2/svg/SVGDescElement.h:
541         (WebCore::SVGDescElement::rendererIsNeeded):
542         * ksvg2/svg/SVGElement.cpp:
543         * ksvg2/svg/SVGEllipseElement.h:
544         * ksvg2/svg/SVGFilterElement.h:
545         (WebCore::SVGFilterElement::rendererIsNeeded):
546         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
547         (WebCore::SVGFilterPrimitiveStandardAttributes::rendererIsNeeded):
548         * ksvg2/svg/SVGForeignObjectElement.h:
549         * ksvg2/svg/SVGGElement.h:
550         * ksvg2/svg/SVGGradientElement.h:
551         * ksvg2/svg/SVGImageElement.h:
552         * ksvg2/svg/SVGLineElement.h:
553         * ksvg2/svg/SVGMarkerElement.h:
554         * ksvg2/svg/SVGMaskElement.h:
555         * ksvg2/svg/SVGPathElement.h:
556         * ksvg2/svg/SVGPatternElement.h:
557         * ksvg2/svg/SVGPolyElement.h:
558         * ksvg2/svg/SVGRectElement.h:
559         * ksvg2/svg/SVGStopElement.h:
560         * ksvg2/svg/SVGStyledElement.cpp:
561         (WebCore::SVGStyledElement::rendererIsNeeded):
562         * ksvg2/svg/SVGStyledElement.h:
563         * ksvg2/svg/SVGSwitchElement.h:
564         * ksvg2/svg/SVGSymbolElement.h:
565         (WebCore::SVGSymbolElement::rendererIsNeeded):
566         * ksvg2/svg/SVGTRefElement.h:
567         * ksvg2/svg/SVGTSpanElement.h:
568         * ksvg2/svg/SVGTextElement.h:
569         * ksvg2/svg/SVGTitleElement.h:
570         (WebCore::SVGTitleElement::rendererIsNeeded):
571         * ksvg2/svg/SVGUseElement.h:
572         * ksvg2/svg/SVGViewElement.h:
573         (WebCore::SVGViewElement::rendererIsNeeded):
574
575 2007-02-28  Rob Buis  <buis@kde.org>
576
577         Reviewed by Maciej.
578
579         http://bugs.webkit.org/show_bug.cgi?id=12913
580         Markers do not render in webkit when it misses markerWidth or markerHeight attribute
581
582         Set defaults for markerWidth/markerHeight so markers that do not specify them render.
583
584         * ksvg2/svg/SVGMarkerElement.cpp:
585         (WebCore::SVGMarkerElement::SVGMarkerElement):
586
587 2007-02-27  Anders Carlsson  <acarlsson@apple.com>
588
589         * loader/ResourceLoader.cpp:
590         (WebCore::ResourceLoader::~ResourceLoader):
591         Remove comment.
592
593 2007-02-27  Justin Garcia  <justin.garcia@apple.com>
594
595         Reviewed by oliver
596
597         <rdar://problem/5027300>
598         REGRESSION: Images inserted with align left/right are lost
599
600         * editing/ReplaceSelectionCommand.cpp:
601         (WebCore::ReplaceSelectionCommand::shouldMerge):
602         Don't attempt to merge to or from a position before 
603         or after a block because it will be a no-op and
604         lead to infinite recursion.
605         In this case it instead resulted in content loss because 
606         of bugs in start/endOfParagraph (5027702).
607         * editing/visible_units.cpp: Added two FIXMEs for
608         the problems with start/endOfParagraph.
609
610 2007-02-27  Anders Carlsson  <acarlsson@apple.com>
611
612         Reviewed by Geoff.
613
614         Make resource load delegate methods pass the right document loader.
615         
616         * loader/FrameLoader.cpp:
617         (WebCore::FrameLoader::willSendRequest):
618         (WebCore::FrameLoader::didReceiveResponse):
619         (WebCore::FrameLoader::didReceiveData):
620         (WebCore::FrameLoader::didFailToLoad):
621         (WebCore::FrameLoader::didFinishLoad):
622         (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
623         (WebCore::FrameLoader::didCancelAuthenticationChallenge):
624         Use the resource loader's document loader instead of the active one.
625         
626         * loader/MainResourceLoader.cpp:
627         (WebCore::MainResourceLoader::receivedError):
628         Make it so we send the frame load delegate method before the resource load delegate method.
629         This was a regression from 2.0 and was caused by the fix to rdar://problem/4609195. Because the way the loader
630         now works, both delegate methods will be called.
631         
632         * loader/ResourceLoader.cpp:
633         (WebCore::ResourceLoader::ResourceLoader):
634         * loader/ResourceLoader.h:
635         (WebCore::ResourceLoader::documentLoader):
636         Add document loader pointer to ResourceLoader.
637
638 2007-02-27  Mitz Pettel  <mitz@webkit.org>
639
640         Reviewed by Hyatt.
641
642         - fix http://bugs.webkit.org/show_bug.cgi?id=12910
643           REGRESSION (r18756-r18765): list-bullet doesn't redraw properly when changing the list's content using JavaScript
644
645         Test: fast/repaint/list-marker.html
646
647         * rendering/RenderListItem.cpp:
648         (WebCore::RenderListItem::positionListMarker): Add the marker to the visual
649         overflow of all its ancestor blocks up to the list item. This needs to be
650         done here since the marker is positioned only after those blocks have been
651         laid out.
652
653 2007-02-27  Antti Koivisto  <antti@apple.com>
654
655         Reviewed by Hyatt.
656         
657         - fix http://bugs.webkit.org/show_bug.cgi?id=12918
658         REGRESSION: Google Finance dropdown Flickers
659         <rdar://4988039>
660         
661         If a node dies while mouse is over it, it is still supposed to receive
662         mouseout event (wasn't case in Tiger webkit). However this event should 
663         not propagate to any other nodes. This patch matches Firefox behavior in
664         this respect.
665
666         * dom/EventTargetNode.cpp:
667         (WebCore::EventTargetNode::dispatchGenericEvent):
668
669 2007-02-27  Geoffrey Garen  <ggaren@apple.com>
670
671         Reviewed by Maciej Stachowiak.
672         
673         Fixed http://bugs.webkit.org/show_bug.cgi?id=12659 | <rdar://problem/4954306>
674         JS objects not collected after closing window @ ebay.com/maps.google.com
675
676         Garbage collect in the KJSProxy destructor, after clearing our reference
677         to the interpreter, because that's when the interpreter has torn down fully.
678
679         (Technically speaking, we can't *prove* that we have the only reference to 
680         our interpreter, but that's how it works in practice, and manual garbage 
681         collection is just an opportunistic optimization, so it's OK for it to 
682         work in practice even if it can't be proven in theory.)
683         
684         Layout tests pass. No leaks reported.
685
686         * bindings/js/kjs_proxy.cpp:
687         (WebCore::KJSProxy::~KJSProxy):
688         * bindings/js/kjs_proxy.h:
689         * page/Page.cpp:
690         (WebCore::Page::~Page): Merged pageDestroyed() calls. Moved debug-only
691         code to the bottom.
692         * page/Frame.cpp:
693         (WebCore::Frame::~Frame): Don't call getObject() because globalObject()
694         returns a JSObject* already, and the call can leave a pointer to the Window
695         object on the stack. Don't check for NULL because it is an invariant of
696         JavaScriptCore that no JSObject* can be NULL. Do use a volatile pointer
697         for w because the 'w = 0' assignment just screams to the compiler, "Don't
698         generate any code for me!"
699
700 2007-02-27  Rob Buis  <buis@kde.org>
701
702         Reviewed by David Hyatt.
703
704         http://bugs.webkit.org/show_bug.cgi?id=4128
705         !important is ignored in inline styling.
706
707         Handle properties with !important flag better in inline
708         style declarations.
709
710         * css/CSSMutableStyleDeclaration.cpp:
711         (WebCore::CSSMutableStyleDeclaration::addParsedProperties):
712
713 2007-02-27  David Hyatt  <hyatt@apple.com>
714
715         Bug 11435.  Make sure RenderViews always paintBoxDecorations.  They used to before I removed RenderView's
716         paint method.  This fix restores the original behavior.
717
718         Reviewed by mitz
719
720         * rendering/RenderBox.cpp:
721         (WebCore::RenderBox::setStyle):
722
723 2007-02-27  David Hyatt  <hyatt@apple.com>
724
725         Fix for bug 12094, make sure setMinMaxKnown starts off false for the weird/rare case of empty
726         plaintext documents (which really are buggy and should be fixed to generate root elements).
727
728         Reviewed by mitz
729
730         * rendering/RenderView.cpp:
731         (WebCore::RenderView::RenderView):
732
733 2007-02-27  Dex Deacon  <occupant4@gmail.com>
734
735         Reviewed by Darin.
736
737         Fixed the case where a BackForwardList of capacity==1 would grow without bound.
738
739         * history/BackForwardList.cpp:
740         (WebCore::BackForwardList::addItem):
741
742 2007-02-22  Lars Naesbye Christensen  <lars@naesbye.dk>
743
744         Reviewed by Maciej.
745
746         http://bugs.webkit.org/show_bug.cgi?id=12848
747         Help cursor should have a white outline
748
749         * Resources/helpCursor.png:
750
751 2007-02-27  Alexey Proskuryakov  <ap@webkit.org>
752
753         Reviewed by Maciej.
754
755         http://bugs.webkit.org/show_bug.cgi?id=12594
756         REGRESSION: Strange highlight in active input area
757
758         No automated test possible.
759
760         * rendering/InlineTextBox.cpp:
761         (WebCore::InlineTextBox::paint): Restore a check lost in r12792.
762
763 2007-02-27  Darin Adler  <darin@apple.com>
764
765         Reviewed by Mitz.
766
767         - fix http://bugs.webkit.org/show_bug.cgi?id=12908
768           crash in http/tests/incremental/frame-focus-before-load.html
769
770         * page/mac/EventHandlerMac.mm: (WebCore::EventHandler::focusDocumentView):
771         Add null checks.
772
773 2007-02-27  Darin Adler  <darin@apple.com>
774
775         Reviewed by Alexey.
776
777         - fix http://bugs.webkit.org/show_bug.cgi?id=12909
778           should use ICU, not TEC, for MacRoman decoding
779
780         * platform/TextCodecICU.cpp: (WebCore::TextCodecICU::registerEncodingNames):
781         Add "macroman" as an alias for "macintosh". We have seen that in use in mail,
782         although I'm not sure it's used on the web.
783
784         * platform/mac/mac-encodings.txt: Remove MacRoman line, which was added back
785         as part of the patch for bug 4971226. But by adding it to this file rather
786         than the ICU codec, we get it only on Mac OS X. And long term we are trying to
787         get rid of the use of TEC entirely, so we want this file to be as empty as
788         possible.
789
790 2007-02-27  Rob Buis  <buis@kde.org>
791
792         Reviewed by Maciej.
793
794         http://bugs.webkit.org/show_bug.cgi?id=12905
795         Not all svg shapes should support markers
796
797         Restrict marker usage to svg shapes polyline, polygon, line and path.
798
799         * ksvg2/svg/SVGLineElement.h:
800         (WebCore::SVGLineElement::supportsMarkers):
801         * ksvg2/svg/SVGPathElement.h:
802         (WebCore::SVGPathElement::supportsMarkers):
803         * ksvg2/svg/SVGPolyElement.h:
804         (WebCore::SVGPolyElement::supportsMarkers):
805         * ksvg2/svg/SVGStyledElement.h:
806         (WebCore::SVGStyledElement::supportsMarkers):
807         * rendering/RenderPath.cpp:
808         (WebCore::RenderPath::paint):
809
810 2007-02-26  Adele Peterson  <adele@apple.com>
811
812         Reviewed by Lars.
813
814         Fix for http://bugs.webkit.org/show_bug.cgi?id=12902
815         <rdar://problem/5012679> REGRESSION: Pressing return key doesn't 
816         move caret to next line after applying a font color in GMail
817
818         Test: fast/frames/iframe-window-focus-2.html
819
820         * page/EventHandler.h: Make focusDocumentView public.
821         * page/Frame.cpp: (WebCore::Frame::focusWindow): Instead of just setting the focused frame,
822           we should set also focus the document view.  The bug here was that since the subframe view
823           wasn't the first responder, the key down event was going to the wrong frame.
824
825 2007-02-26  Maciej Stachowiak  <mjs@apple.com>
826
827         Reviewed by Oliver.
828
829         - fixed <rdar://problem/4946881> Recursive loop with <marker> not caught, crashes in WebCore::SVGPaintServer::draw (11244)
830         http://bugs.webkit.org/show_bug.cgi?id=11244
831
832         * platform/graphics/svg/SVGResourceMarker.cpp:
833         (WebCore::SVGResourceMarker::draw): Use a HashSet to guard against
834         reference cycles.
835
836 2007-02-26  Maciej Stachowiak  <mjs@apple.com>
837
838         Reviewed by Kevin McCullough.
839
840         - fix Qt build for earlier SVG changes.
841
842         * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
843
844 2007-02-26  Oliver Hunt  <oliver@apple.com>
845
846         Reviewed by Maciej.
847
848         Fix for <rdar://problem/4827378>: Canvas with large height 
849         uses lots of memory, computer almost stops responding
850          
851         Put cap on maximum area of canvas, size is similar too the 
852         maximum size allowed by firefox (firefox seems to to cut off 
853         at area == 32767 * 9358). 
854
855         Also protect renderer against the possibility of a null context
856         (this was triggering a CG warning)
857
858         * html/HTMLCanvasElement.cpp:
859         (WebCore::HTMLCanvasElement::createDrawingContext):
860            Apply maximum canvas area
861         (WebCore::HTMLCanvasElement::createPlatformImage):
862            Protect against null CG Context
863
864 2007-02-26  Mitz Pettel  <mitz@webkit.org>
865
866         Reviewed by Antti Koivisto.
867
868         - fix http://bugs.webkit.org/show_bug.cgi?id=12899
869           Ordered lists not updating dynamically with new styles
870
871         Test: fast/lists/list-style-type-dynamic-change.html
872
873         * rendering/RenderListMarker.cpp:
874         (WebCore::RenderListMarker::setStyle): Made changing the marker type trigger
875         updating of the marker.
876
877 2007-02-26  Adele Peterson  <adele@apple.com>
878
879         Reviewed by Maciej.
880
881         Fix for <rdar://problem/5012761> REGRESSION: form submit invokes wrong event handler
882
883         Test: fast/events/submit-reset-nested-bubble.html
884
885         * dom/EventTargetNode.h: Made handleLocalEvents virtual.
886         * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::handleLocalEvents): If we're
887           not in the capture phase, and the target is a different form, and we're handling
888           the submitEvent or the resetEvent, then stop propagation of the event.  This matches
889           Firefox behavior.  You can only get in this situation if misnested tags cause
890           forms to be nested.
891         * html/HTMLFormElement.h: Added handleLocalEvents.
892
893 2007-02-26  Darin Adler  <darin@apple.com>
894
895         Reviewed by Oliver Hunt.
896
897         - <rdar://problem/5021555> TextCodecICU does not use fallback mappings; it should
898
899         * platform/TextCodecICU.cpp: (WebCore::TextCodecICU::createICUConverter):
900         Added a call to ucnv_setFallback(TRUE).
901
902 2007-02-26  Oliver Hunt  <oliver@apple.com>
903
904         Reviewed by Adam.
905
906         Fix for rdar://problem/5021127 
907
908         Need to add null check to node -- original Obj-C didn't need 
909         the null check due to the Obj-C null messaging semantics
910
911         * editing/Editor.cpp:
912         (WebCore::Editor::shouldInsertFragment):
913
914 2007-02-26  David Hyatt  <hyatt@apple.com>
915
916         Make text files render using white-space: pre-wrap instead of white-space: pre.
917         
918         Reviewed by aroben
919
920         * loader/TextDocument.cpp:
921         (WebCore::TextTokenizer::write):
922
923 2007-02-26  David Hyatt  <hyatt@apple.com>
924
925         Back out the change to add fullyClippedContentRect.  The layout test
926         was actually showing more correct results.
927
928         * page/Frame.cpp:
929         (WebCore::Frame::visibleSelectionRect):
930         (WebCore::Frame::setIsActive):
931         (WebCore::Frame::markAllMatchesForText):
932         * platform/ScrollView.h:
933         * platform/mac/ScrollViewMac.mm:
934         * rendering/RenderLayer.cpp:
935         (WebCore::RenderLayer::scrollRectToVisible):
936
937 2007-02-26  David Hyatt  <hyatt@apple.com>
938
939         Add support for a new property called -webkit-border-fit.  This property
940         has two values: border and lines.  The "border" value means the border and
941         background paint normally at the border box level.  The "lines" value indicates
942         that the border and background should shrink dynamically to snugly hug the
943         line boxes of normal flow descendants.
944
945         Reviewed by darin
946
947         fast/borders/border-fit.html
948
949         * WebCore.xcodeproj/project.pbxproj:
950         * css/CSSComputedStyleDeclaration.cpp:
951         (WebCore::):
952         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
953         * css/CSSPropertyNames.in:
954         * css/CSSValueKeywords.in:
955         * css/cssparser.cpp:
956         (WebCore::CSSParser::parseValue):
957         * css/cssstyleselector.cpp:
958         (WebCore::CSSStyleSelector::applyProperty):
959         * rendering/RenderBlock.cpp:
960         (WebCore::RenderBlock::adjustForBorderFit):
961         (WebCore::RenderBlock::borderFitAdjust):
962         * rendering/RenderBlock.h:
963         * rendering/RenderBox.cpp:
964         (WebCore::RenderBox::paintBoxDecorations):
965         * rendering/RenderBox.h:
966         (WebCore::RenderBox::borderFitAdjust):
967         * rendering/RenderStyle.cpp:
968         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
969         (WebCore::StyleRareNonInheritedData::operator==):
970         (WebCore::RenderStyle::diff):
971         * rendering/RenderStyle.h:
972         (WebCore::):
973         (WebCore::RenderStyle::borderFit):
974         (WebCore::RenderStyle::setBorderFit):
975         (WebCore::RenderStyle::initialBorderFit):
976
977 2007-02-26  Adam Roben  <aroben@apple.com>
978
979         Reviewed by Darin.
980
981         Build fix.
982
983         * rendering/RenderTreeAsText.cpp: Can't use #ifndef with ENABLE() macro.
984
985 2007-02-26  Adele Peterson  <adele@apple.com>
986
987         Reviewed by Adam.
988
989         Fix for <rdar://problem/4990700> Safari always crashes when attempting to edit/view 
990         Yahoo pipes in WebCore::HTMLSelectElement::optionToListIndex
991
992         Test: fast/forms/select-out-of-bounds-index.html
993
994         * html/HTMLSelectElement.cpp:
995         (WebCore::HTMLSelectElement::setSelectedIndex): If we're about to deselect all options, then set m_lastOnChangeIndex to -1.
996         (WebCore::HTMLSelectElement::optionToListIndex): Moved listSize to a local variable.  Rewrote using a simpler for-loop to prevent out-of-bounds errors.
997
998 2007-02-26  Anders Carlsson  <acarlsson@apple.com>
999
1000         Reviewed by Geoff.
1001
1002         <rdar://problem/4816376>
1003         REGRESSION: NetNewsWire 3.0 - Crashes in WebDocumentLoaderMac::attachToFrame() (12674)
1004         
1005         * loader/FrameLoader.cpp:
1006         (WebCore::FrameLoader::reload):
1007         Remove call to setPolicyDocumentLoader here, it's set by the ::load function that we end up calling.
1008
1009 2007-02-26  Maciej Stachowiak  <mjs@apple.com>
1010
1011         Reviewed by Lars.
1012
1013         - fixed <rdar://problem/5021698> Disable experimental SVG features (12883)
1014         
1015         I added an ENABLE_SVG_EXPERIMENTAL_FEATURES define to guard all use of the experimental
1016         features, and used it to guard relevant tag names, elements, JS bindings and renderers.
1017         
1018         I also converted all the existing optional feature defines to
1019         ENABLE_FOO instead of FOO_SUPPORT since that is the more standard
1020         way to do it in open source projects and works with the handy new
1021         ENABLE() macro.
1022
1023         * CMakeLists.txt:
1024         * DerivedSources.make:
1025         * Projects/gdk/webcore-gdk.bkl:
1026         * WebCore.pro:
1027         * WebCore.vcproj/WebCore/WebCore.vcproj:
1028         * WebCore.vcproj/WebCore/build-generated-files.sh:
1029         * WebCore.xcodeproj/project.pbxproj:
1030         * bindings/js/JSCustomXPathNSResolver.cpp:
1031         * bindings/js/JSCustomXPathNSResolver.h:
1032         * bindings/js/JSSVGElementWrapperFactory.cpp:
1033         * bindings/js/JSSVGElementWrapperFactory.h:
1034         * bindings/js/JSSVGMatrixCustom.cpp:
1035         * bindings/js/JSSVGPODTypeWrapper.h:
1036         * bindings/js/JSSVGPathSegCustom.cpp:
1037         * bindings/js/JSSVGPathSegListCustom.cpp:
1038         * bindings/js/JSSVGPointListCustom.cpp:
1039         * bindings/js/JSXSLTProcessor.cpp:
1040         * bindings/js/JSXSLTProcessor.h:
1041         * bindings/js/kjs_binding.cpp:
1042         (KJS::setDOMException):
1043         * bindings/js/kjs_css.cpp:
1044         (KJS::toJS):
1045         * bindings/js/kjs_dom.cpp:
1046         (KJS::toJS):
1047         * bindings/js/kjs_html.cpp:
1048         (KJS::HTMLElementFunction::callAsFunction):
1049         * bindings/js/kjs_proxy.cpp:
1050         * bindings/js/kjs_proxy.h:
1051         * bindings/js/kjs_window.cpp:
1052         (KJS::Window::getValueProperty):
1053         * bindings/objc/DOM.mm:
1054         (WebCore::createElementClassMap):
1055         (+[DOMNode _nodeWith:WebCore::]):
1056         * bindings/objc/DOMCSS.mm:
1057         (+[DOMCSSValue _CSSValueWith:WebCore::]):
1058         * bindings/objc/DOMCustomXPathNSResolver.h:
1059         * bindings/objc/DOMCustomXPathNSResolver.mm:
1060         * bindings/objc/DOMEvents.mm:
1061         (+[DOMEvent _eventWith:WebCore::]):
1062         * bindings/objc/DOMInternal.h:
1063         * bindings/objc/DOMSVGPathSegInternal.mm:
1064         * bindings/objc/DOMXPath.mm:
1065         * bindings/objc/ExceptionHandlers.mm:
1066         (WebCore::raiseDOMException):
1067         * bindings/objc/PublicDOMInterfaces.h:
1068         * bindings/scripts/CodeGeneratorJS.pm:
1069         * bindings/scripts/CodeGeneratorObjC.pm:
1070         * config.h:
1071         * css/CSSGrammar.y:
1072         * css/CSSStyleDeclaration.cpp:
1073         (WebCore::propertyID):
1074         * css/StyleBase.h:
1075         * css/cssparser.cpp:
1076         (WebCore::CSSParser::parseValue):
1077         * css/cssparser.h:
1078         * css/cssstyleselector.cpp:
1079         (WebCore::CSSStyleSelector::loadDefaultStyle):
1080         (WebCore::CSSStyleSelector::initForStyleResolve):
1081         (WebCore::checkPseudoState):
1082         (WebCore::CSSStyleSelector::adjustRenderStyle):
1083         (WebCore::CSSStyleSelector::applyProperty):
1084         * css/cssstyleselector.h:
1085         * dom/DOMImplementation.cpp:
1086         (WebCore::DOMImplementation::hasFeature):
1087         (WebCore::DOMImplementation::createDocument):
1088         * dom/Document.cpp:
1089         (WebCore::Document::Document):
1090         (WebCore::Document::~Document):
1091         (WebCore::Document::createElement):
1092         (WebCore::Document::implicitClose):
1093         (WebCore::Document::recalcStyleSelector):
1094         (WebCore::Document::createEvent):
1095         * dom/Document.h:
1096         * dom/Document.idl:
1097         * dom/Event.cpp:
1098         * dom/Event.h:
1099         * dom/EventTarget.cpp:
1100         * dom/EventTarget.h:
1101         * dom/MappedAttributeEntry.h:
1102         (WebCore::):
1103         * dom/Node.cpp:
1104         (WebCore::Node::createRendererIfNeeded):
1105         (WebCore::Node::shadowAncestorNode):
1106         * dom/Node.h:
1107         * dom/ProcessingInstruction.cpp:
1108         (WebCore::ProcessingInstruction::ProcessingInstruction):
1109         (WebCore::ProcessingInstruction::checkStyleSheet):
1110         (WebCore::ProcessingInstruction::setCSSStyleSheet):
1111         * dom/ProcessingInstruction.h:
1112         * dom/Text.cpp:
1113         (WebCore::Text::createRenderer):
1114         * dom/XMLTokenizer.cpp:
1115         (WebCore::XMLTokenizer::startElementNs):
1116         (WebCore::XMLTokenizer::endElementNs):
1117         (WebCore::XMLTokenizer::processingInstruction):
1118         (WebCore::XMLTokenizer::end):
1119         (WebCore::XMLTokenizer::insertErrorMessageBlock):
1120         * dom/XMLTokenizer.h:
1121         * html/HTMLEmbedElement.cpp:
1122         * html/HTMLEmbedElement.h:
1123         * html/HTMLObjectElement.cpp:
1124         * html/HTMLObjectElement.h:
1125         * ksvg2/css/SVGCSSParser.cpp:
1126         * ksvg2/css/SVGCSSStyleSelector.cpp:
1127         * ksvg2/css/SVGRenderStyle.cpp:
1128         * ksvg2/css/SVGRenderStyle.h:
1129         * ksvg2/css/SVGRenderStyleDefs.cpp:
1130         * ksvg2/css/SVGRenderStyleDefs.h:
1131         * ksvg2/events/JSSVGLazyEventListener.cpp:
1132         * ksvg2/events/JSSVGLazyEventListener.h:
1133         * ksvg2/events/SVGZoomEvent.cpp:
1134         * ksvg2/events/SVGZoomEvent.h:
1135         * ksvg2/misc/KCanvasRenderingStyle.cpp:
1136         * ksvg2/misc/KCanvasRenderingStyle.h:
1137         * ksvg2/misc/PointerEventsHitRules.cpp:
1138         * ksvg2/misc/PointerEventsHitRules.h:
1139         * ksvg2/misc/SVGDocumentExtensions.cpp:
1140         * ksvg2/misc/SVGDocumentExtensions.h:
1141         * ksvg2/misc/SVGImageLoader.cpp:
1142         * ksvg2/misc/SVGImageLoader.h:
1143         * ksvg2/misc/SVGTimer.cpp:
1144         * ksvg2/misc/SVGTimer.h:
1145         * ksvg2/misc/TimeScheduler.cpp:
1146         * ksvg2/misc/TimeScheduler.h:
1147         * ksvg2/scripts/make_names.pl:
1148         * ksvg2/svg/ColorDistance.cpp:
1149         * ksvg2/svg/ColorDistance.h:
1150         * ksvg2/svg/GradientAttributes.h:
1151         * ksvg2/svg/LinearGradientAttributes.h:
1152         * ksvg2/svg/PatternAttributes.h:
1153         * ksvg2/svg/RadialGradientAttributes.h:
1154         * ksvg2/svg/SVGAElement.cpp:
1155         * ksvg2/svg/SVGAElement.h:
1156         * ksvg2/svg/SVGAngle.cpp:
1157         * ksvg2/svg/SVGAngle.h:
1158         * ksvg2/svg/SVGAnimateColorElement.cpp:
1159         * ksvg2/svg/SVGAnimateColorElement.h:
1160         * ksvg2/svg/SVGAnimateElement.cpp:
1161         * ksvg2/svg/SVGAnimateElement.h:
1162         * ksvg2/svg/SVGAnimateElement.idl:
1163         * ksvg2/svg/SVGAnimateMotionElement.cpp:
1164         * ksvg2/svg/SVGAnimateMotionElement.h:
1165         * ksvg2/svg/SVGAnimateTransformElement.cpp:
1166         * ksvg2/svg/SVGAnimateTransformElement.h:
1167         * ksvg2/svg/SVGAnimateTransformElement.idl:
1168         * ksvg2/svg/SVGAnimatedPathData.cpp:
1169         * ksvg2/svg/SVGAnimatedPathData.h:
1170         * ksvg2/svg/SVGAnimatedPoints.cpp:
1171         * ksvg2/svg/SVGAnimatedPoints.h:
1172         * ksvg2/svg/SVGAnimatedTemplate.h:
1173         * ksvg2/svg/SVGAnimationElement.cpp:
1174         * ksvg2/svg/SVGAnimationElement.h:
1175         * ksvg2/svg/SVGCircleElement.cpp:
1176         * ksvg2/svg/SVGCircleElement.h:
1177         * ksvg2/svg/SVGClipPathElement.cpp:
1178         * ksvg2/svg/SVGClipPathElement.h:
1179         * ksvg2/svg/SVGColor.cpp:
1180         * ksvg2/svg/SVGColor.h:
1181         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1182         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
1183         * ksvg2/svg/SVGCursorElement.cpp:
1184         * ksvg2/svg/SVGCursorElement.h:
1185         * ksvg2/svg/SVGDefsElement.cpp:
1186         * ksvg2/svg/SVGDefsElement.h:
1187         * ksvg2/svg/SVGDescElement.cpp:
1188         * ksvg2/svg/SVGDescElement.h:
1189         * ksvg2/svg/SVGDocument.cpp:
1190         * ksvg2/svg/SVGDocument.h:
1191         * ksvg2/svg/SVGElement.cpp:
1192         (WebCore::SVGElement::dispatchEvent):
1193         * ksvg2/svg/SVGElement.h:
1194         * ksvg2/svg/SVGElementInstance.cpp:
1195         * ksvg2/svg/SVGElementInstance.h:
1196         * ksvg2/svg/SVGElementInstance.idl:
1197         * ksvg2/svg/SVGElementInstanceList.cpp:
1198         * ksvg2/svg/SVGElementInstanceList.h:
1199         * ksvg2/svg/SVGElementInstanceList.idl:
1200         * ksvg2/svg/SVGEllipseElement.cpp:
1201         * ksvg2/svg/SVGEllipseElement.h:
1202         * ksvg2/svg/SVGException.h:
1203         * ksvg2/svg/SVGExternalResourcesRequired.cpp:
1204         * ksvg2/svg/SVGExternalResourcesRequired.h:
1205         * ksvg2/svg/SVGFEBlendElement.cpp:
1206         * ksvg2/svg/SVGFEBlendElement.h:
1207         * ksvg2/svg/SVGFEBlendElement.idl:
1208         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1209         * ksvg2/svg/SVGFEColorMatrixElement.h:
1210         * ksvg2/svg/SVGFEColorMatrixElement.idl:
1211         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
1212         * ksvg2/svg/SVGFEComponentTransferElement.h:
1213         * ksvg2/svg/SVGFEComponentTransferElement.idl:
1214         * ksvg2/svg/SVGFECompositeElement.cpp:
1215         * ksvg2/svg/SVGFECompositeElement.h:
1216         * ksvg2/svg/SVGFECompositeElement.idl:
1217         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1218         * ksvg2/svg/SVGFEDiffuseLightingElement.h:
1219         * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
1220         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1221         * ksvg2/svg/SVGFEDisplacementMapElement.h:
1222         * ksvg2/svg/SVGFEDisplacementMapElement.idl:
1223         * ksvg2/svg/SVGFEDistantLightElement.cpp:
1224         * ksvg2/svg/SVGFEDistantLightElement.h:
1225         * ksvg2/svg/SVGFEDistantLightElement.idl:
1226         * ksvg2/svg/SVGFEFloodElement.cpp:
1227         * ksvg2/svg/SVGFEFloodElement.h:
1228         * ksvg2/svg/SVGFEFloodElement.idl:
1229         * ksvg2/svg/SVGFEFuncAElement.cpp:
1230         * ksvg2/svg/SVGFEFuncAElement.h:
1231         * ksvg2/svg/SVGFEFuncAElement.idl:
1232         * ksvg2/svg/SVGFEFuncBElement.cpp:
1233         * ksvg2/svg/SVGFEFuncBElement.h:
1234         * ksvg2/svg/SVGFEFuncBElement.idl:
1235         * ksvg2/svg/SVGFEFuncGElement.cpp:
1236         * ksvg2/svg/SVGFEFuncGElement.h:
1237         * ksvg2/svg/SVGFEFuncGElement.idl:
1238         * ksvg2/svg/SVGFEFuncRElement.cpp:
1239         * ksvg2/svg/SVGFEFuncRElement.h:
1240         * ksvg2/svg/SVGFEFuncRElement.idl:
1241         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1242         * ksvg2/svg/SVGFEGaussianBlurElement.h:
1243         * ksvg2/svg/SVGFEGaussianBlurElement.idl:
1244         * ksvg2/svg/SVGFEImageElement.cpp:
1245         * ksvg2/svg/SVGFEImageElement.h:
1246         * ksvg2/svg/SVGFEImageElement.idl:
1247         * ksvg2/svg/SVGFELightElement.cpp:
1248         * ksvg2/svg/SVGFELightElement.h:
1249         * ksvg2/svg/SVGFEMergeElement.cpp:
1250         * ksvg2/svg/SVGFEMergeElement.h:
1251         * ksvg2/svg/SVGFEMergeElement.idl:
1252         * ksvg2/svg/SVGFEMergeNodeElement.cpp:
1253         * ksvg2/svg/SVGFEMergeNodeElement.h:
1254         * ksvg2/svg/SVGFEMergeNodeElement.idl:
1255         * ksvg2/svg/SVGFEOffsetElement.cpp:
1256         * ksvg2/svg/SVGFEOffsetElement.h:
1257         * ksvg2/svg/SVGFEOffsetElement.idl:
1258         * ksvg2/svg/SVGFEPointLightElement.cpp:
1259         * ksvg2/svg/SVGFEPointLightElement.h:
1260         * ksvg2/svg/SVGFEPointLightElement.idl:
1261         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1262         * ksvg2/svg/SVGFESpecularLightingElement.h:
1263         * ksvg2/svg/SVGFESpecularLightingElement.idl:
1264         * ksvg2/svg/SVGFESpotLightElement.cpp:
1265         * ksvg2/svg/SVGFESpotLightElement.h:
1266         * ksvg2/svg/SVGFESpotLightElement.idl:
1267         * ksvg2/svg/SVGFETileElement.cpp:
1268         * ksvg2/svg/SVGFETileElement.h:
1269         * ksvg2/svg/SVGFETileElement.idl:
1270         * ksvg2/svg/SVGFETurbulenceElement.cpp:
1271         * ksvg2/svg/SVGFETurbulenceElement.h:
1272         * ksvg2/svg/SVGFETurbulenceElement.idl:
1273         * ksvg2/svg/SVGFilterElement.cpp:
1274         * ksvg2/svg/SVGFilterElement.h:
1275         * ksvg2/svg/SVGFilterElement.idl:
1276         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
1277         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
1278         * ksvg2/svg/SVGFitToViewBox.cpp:
1279         * ksvg2/svg/SVGFitToViewBox.h:
1280         * ksvg2/svg/SVGForeignObjectElement.cpp:
1281         * ksvg2/svg/SVGForeignObjectElement.h:
1282         * ksvg2/svg/SVGForeignObjectElement.idl:
1283         * ksvg2/svg/SVGGElement.cpp:
1284         * ksvg2/svg/SVGGElement.h:
1285         * ksvg2/svg/SVGGradientElement.cpp:
1286         * ksvg2/svg/SVGGradientElement.h:
1287         * ksvg2/svg/SVGImageElement.cpp:
1288         * ksvg2/svg/SVGImageElement.h:
1289         * ksvg2/svg/SVGLangSpace.cpp:
1290         * ksvg2/svg/SVGLangSpace.h:
1291         * ksvg2/svg/SVGLength.cpp:
1292         * ksvg2/svg/SVGLength.h:
1293         * ksvg2/svg/SVGLengthList.cpp:
1294         * ksvg2/svg/SVGLengthList.h:
1295         * ksvg2/svg/SVGLineElement.cpp:
1296         * ksvg2/svg/SVGLineElement.h:
1297         * ksvg2/svg/SVGLinearGradientElement.cpp:
1298         * ksvg2/svg/SVGLinearGradientElement.h:
1299         * ksvg2/svg/SVGList.h:
1300         * ksvg2/svg/SVGListTraits.h:
1301         * ksvg2/svg/SVGLocatable.cpp:
1302         (WebCore::SVGLocatable::nearestViewportElement):
1303         (WebCore::SVGLocatable::farthestViewportElement):
1304         * ksvg2/svg/SVGLocatable.h:
1305         * ksvg2/svg/SVGMPathElement.cpp:
1306         * ksvg2/svg/SVGMPathElement.h:
1307         * ksvg2/svg/SVGMarkerElement.cpp:
1308         * ksvg2/svg/SVGMarkerElement.h:
1309         * ksvg2/svg/SVGMaskElement.cpp:
1310         * ksvg2/svg/SVGMaskElement.h:
1311         * ksvg2/svg/SVGMetadataElement.cpp:
1312         * ksvg2/svg/SVGMetadataElement.h:
1313         * ksvg2/svg/SVGNumberList.cpp:
1314         * ksvg2/svg/SVGNumberList.h:
1315         * ksvg2/svg/SVGPaint.cpp:
1316         * ksvg2/svg/SVGPaint.h:
1317         * ksvg2/svg/SVGParserUtilities.cpp:
1318         * ksvg2/svg/SVGParserUtilities.h:
1319         * ksvg2/svg/SVGPathElement.cpp:
1320         * ksvg2/svg/SVGPathElement.h:
1321         * ksvg2/svg/SVGPathSeg.h:
1322         * ksvg2/svg/SVGPathSegArc.cpp:
1323         * ksvg2/svg/SVGPathSegArc.h:
1324         * ksvg2/svg/SVGPathSegClosePath.cpp:
1325         * ksvg2/svg/SVGPathSegClosePath.h:
1326         * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
1327         * ksvg2/svg/SVGPathSegCurvetoCubic.h:
1328         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
1329         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
1330         * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
1331         * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
1332         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
1333         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
1334         * ksvg2/svg/SVGPathSegLineto.cpp:
1335         * ksvg2/svg/SVGPathSegLineto.h:
1336         * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
1337         * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
1338         * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
1339         * ksvg2/svg/SVGPathSegLinetoVertical.h:
1340         * ksvg2/svg/SVGPathSegList.cpp:
1341         * ksvg2/svg/SVGPathSegList.h:
1342         * ksvg2/svg/SVGPathSegMoveto.cpp:
1343         * ksvg2/svg/SVGPathSegMoveto.h:
1344         * ksvg2/svg/SVGPatternElement.cpp:
1345         * ksvg2/svg/SVGPatternElement.h:
1346         * ksvg2/svg/SVGPointList.cpp:
1347         * ksvg2/svg/SVGPointList.h:
1348         * ksvg2/svg/SVGPolyElement.cpp:
1349         * ksvg2/svg/SVGPolyElement.h:
1350         * ksvg2/svg/SVGPolygonElement.cpp:
1351         * ksvg2/svg/SVGPolygonElement.h:
1352         * ksvg2/svg/SVGPolylineElement.cpp:
1353         * ksvg2/svg/SVGPolylineElement.h:
1354         * ksvg2/svg/SVGPreserveAspectRatio.cpp:
1355         * ksvg2/svg/SVGPreserveAspectRatio.h:
1356         * ksvg2/svg/SVGRadialGradientElement.cpp:
1357         * ksvg2/svg/SVGRadialGradientElement.h:
1358         * ksvg2/svg/SVGRectElement.cpp:
1359         * ksvg2/svg/SVGRectElement.h:
1360         * ksvg2/svg/SVGRenderingIntent.h:
1361         * ksvg2/svg/SVGSVGElement.cpp:
1362         * ksvg2/svg/SVGSVGElement.h:
1363         * ksvg2/svg/SVGScriptElement.cpp:
1364         * ksvg2/svg/SVGScriptElement.h:
1365         * ksvg2/svg/SVGSetElement.cpp:
1366         * ksvg2/svg/SVGSetElement.h:
1367         * ksvg2/svg/SVGStopElement.cpp:
1368         * ksvg2/svg/SVGStopElement.h:
1369         * ksvg2/svg/SVGStringList.cpp:
1370         * ksvg2/svg/SVGStringList.h:
1371         * ksvg2/svg/SVGStylable.cpp:
1372         * ksvg2/svg/SVGStylable.h:
1373         * ksvg2/svg/SVGStyleElement.cpp:
1374         * ksvg2/svg/SVGStyleElement.h:
1375         * ksvg2/svg/SVGStyledElement.cpp:
1376         (WebCore::SVGStyledElement::notifyAttributeChange):
1377         * ksvg2/svg/SVGStyledElement.h:
1378         * ksvg2/svg/SVGStyledLocatableElement.cpp:
1379         * ksvg2/svg/SVGStyledLocatableElement.h:
1380         * ksvg2/svg/SVGStyledTransformableElement.cpp:
1381         * ksvg2/svg/SVGStyledTransformableElement.h:
1382         * ksvg2/svg/SVGSwitchElement.cpp:
1383         * ksvg2/svg/SVGSwitchElement.h:
1384         * ksvg2/svg/SVGSymbolElement.cpp:
1385         * ksvg2/svg/SVGSymbolElement.h:
1386         * ksvg2/svg/SVGTRefElement.cpp:
1387         * ksvg2/svg/SVGTRefElement.h:
1388         * ksvg2/svg/SVGTSpanElement.cpp:
1389         * ksvg2/svg/SVGTSpanElement.h:
1390         * ksvg2/svg/SVGTests.cpp:
1391         * ksvg2/svg/SVGTests.h:
1392         * ksvg2/svg/SVGTextContentElement.cpp:
1393         * ksvg2/svg/SVGTextContentElement.h:
1394         * ksvg2/svg/SVGTextElement.cpp:
1395         * ksvg2/svg/SVGTextElement.h:
1396         * ksvg2/svg/SVGTextPositioningElement.cpp:
1397         * ksvg2/svg/SVGTextPositioningElement.h:
1398         * ksvg2/svg/SVGTitleElement.cpp:
1399         * ksvg2/svg/SVGTitleElement.h:
1400         * ksvg2/svg/SVGTransform.cpp:
1401         * ksvg2/svg/SVGTransform.h:
1402         * ksvg2/svg/SVGTransformDistance.cpp:
1403         * ksvg2/svg/SVGTransformDistance.h:
1404         * ksvg2/svg/SVGTransformList.cpp:
1405         * ksvg2/svg/SVGTransformList.h:
1406         * ksvg2/svg/SVGTransformable.cpp:
1407         * ksvg2/svg/SVGTransformable.h:
1408         * ksvg2/svg/SVGURIReference.cpp:
1409         * ksvg2/svg/SVGURIReference.h:
1410         * ksvg2/svg/SVGUnitTypes.h:
1411         * ksvg2/svg/SVGUseElement.cpp:
1412         * ksvg2/svg/SVGUseElement.h:
1413         * ksvg2/svg/SVGUseElement.idl:
1414         * ksvg2/svg/SVGViewElement.cpp:
1415         * ksvg2/svg/SVGViewElement.h:
1416         * ksvg2/svg/SVGZoomAndPan.cpp:
1417         * ksvg2/svg/SVGZoomAndPan.h:
1418         * ksvg2/svg/svgtags.in:
1419         * loader/Cache.cpp:
1420         (WebCore::createResource):
1421         (WebCore::Cache::getStatistics):
1422         * loader/Cache.h:
1423         * loader/CachedImage.cpp:
1424         (WebCore::CachedImage::createImage):
1425         * loader/CachedResource.h:
1426         (WebCore::CachedResource::):
1427         * loader/CachedResourceClient.h:
1428         * loader/CachedXBLDocument.cpp:
1429         * loader/CachedXBLDocument.h:
1430         * loader/CachedXSLStyleSheet.cpp:
1431         * loader/CachedXSLStyleSheet.h:
1432         * loader/DocLoader.cpp:
1433         * loader/DocLoader.h:
1434         * page/DOMWindow.idl:
1435         * page/EventHandler.cpp:
1436         (WebCore::EventHandler::handleMouseMoveEvent):
1437         (WebCore::selectCursor):
1438         * page/Frame.cpp:
1439         (WebCore::Frame::Frame):
1440         * page/PageState.cpp:
1441         (WebCore::PageState::PageState):
1442         (WebCore::PageState::restore):
1443         * platform/MimeTypeRegistry.cpp:
1444         (WebCore::initialiseSupportedNonImageMimeTypes):
1445         * platform/graphics/FloatPoint3D.cpp:
1446         * platform/graphics/FloatPoint3D.h:
1447         * platform/graphics/ImageBuffer.cpp:
1448         (WebCore::ImageBuffer::renderSubtreeToImage):
1449         * platform/graphics/svg/SVGImage.cpp:
1450         * platform/graphics/svg/SVGImage.h:
1451         * platform/graphics/svg/SVGImageEmptyClients.h:
1452         * platform/graphics/svg/SVGPaintServer.cpp:
1453         * platform/graphics/svg/SVGPaintServer.h:
1454         * platform/graphics/svg/SVGPaintServerGradient.cpp:
1455         * platform/graphics/svg/SVGPaintServerGradient.h:
1456         * platform/graphics/svg/SVGPaintServerLinearGradient.cpp:
1457         * platform/graphics/svg/SVGPaintServerLinearGradient.h:
1458         * platform/graphics/svg/SVGPaintServerPattern.cpp:
1459         * platform/graphics/svg/SVGPaintServerPattern.h:
1460         * platform/graphics/svg/SVGPaintServerRadialGradient.cpp:
1461         * platform/graphics/svg/SVGPaintServerRadialGradient.h:
1462         * platform/graphics/svg/SVGPaintServerSolid.cpp:
1463         * platform/graphics/svg/SVGPaintServerSolid.h:
1464         * platform/graphics/svg/SVGResource.cpp:
1465         * platform/graphics/svg/SVGResource.h:
1466         * platform/graphics/svg/SVGResourceClipper.cpp:
1467         * platform/graphics/svg/SVGResourceClipper.h:
1468         * platform/graphics/svg/SVGResourceFilter.cpp:
1469         * platform/graphics/svg/SVGResourceFilter.h:
1470         * platform/graphics/svg/SVGResourceMarker.cpp:
1471         * platform/graphics/svg/SVGResourceMarker.h:
1472         * platform/graphics/svg/SVGResourceMasker.cpp:
1473         * platform/graphics/svg/SVGResourceMasker.h:
1474         * platform/graphics/svg/cg/CgSupport.cpp:
1475         * platform/graphics/svg/cg/CgSupport.h:
1476         * platform/graphics/svg/cg/RenderPathCg.cpp:
1477         * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
1478         * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
1479         * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
1480         * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
1481         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
1482         * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
1483         * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
1484         * platform/graphics/svg/filters/SVGDistantLightSource.h:
1485         * platform/graphics/svg/filters/SVGFEBlend.cpp:
1486         * platform/graphics/svg/filters/SVGFEBlend.h:
1487         * platform/graphics/svg/filters/SVGFEColorMatrix.cpp:
1488         * platform/graphics/svg/filters/SVGFEColorMatrix.h:
1489         * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp:
1490         * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
1491         * platform/graphics/svg/filters/SVGFEComposite.cpp:
1492         * platform/graphics/svg/filters/SVGFEComposite.h:
1493         * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
1494         * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
1495         * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
1496         * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
1497         * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp:
1498         * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
1499         * platform/graphics/svg/filters/SVGFEFlood.cpp:
1500         * platform/graphics/svg/filters/SVGFEFlood.h:
1501         * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
1502         * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
1503         * platform/graphics/svg/filters/SVGFEImage.cpp:
1504         * platform/graphics/svg/filters/SVGFEImage.h:
1505         * platform/graphics/svg/filters/SVGFEMerge.cpp:
1506         * platform/graphics/svg/filters/SVGFEMerge.h:
1507         * platform/graphics/svg/filters/SVGFEMorphology.cpp:
1508         * platform/graphics/svg/filters/SVGFEMorphology.h:
1509         * platform/graphics/svg/filters/SVGFEOffset.cpp:
1510         * platform/graphics/svg/filters/SVGFEOffset.h:
1511         * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
1512         * platform/graphics/svg/filters/SVGFESpecularLighting.h:
1513         * platform/graphics/svg/filters/SVGFETile.h:
1514         * platform/graphics/svg/filters/SVGFETurbulence.cpp:
1515         * platform/graphics/svg/filters/SVGFETurbulence.h:
1516         * platform/graphics/svg/filters/SVGFilterEffect.cpp:
1517         * platform/graphics/svg/filters/SVGFilterEffect.h:
1518         * platform/graphics/svg/filters/SVGLightSource.cpp:
1519         * platform/graphics/svg/filters/SVGLightSource.h:
1520         * platform/graphics/svg/filters/SVGPointLightSource.h:
1521         * platform/graphics/svg/filters/SVGSpotLightSource.h:
1522         * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm:
1523         * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
1524         * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
1525         * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm:
1526         * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm:
1527         * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm:
1528         * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm:
1529         * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm:
1530         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
1531         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm:
1532         * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
1533         * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm:
1534         * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm:
1535         * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm:
1536         * platform/graphics/svg/filters/cg/SVGFETileCg.mm:
1537         * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm:
1538         * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp:
1539         * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
1540         * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
1541         * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
1542         * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
1543         * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
1544         * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
1545         * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
1546         * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
1547         * rendering/HitTestResult.cpp:
1548         (WebCore::HitTestResult::absoluteImageURL):
1549         (WebCore::HitTestResult::absoluteLinkURL):
1550         (WebCore::HitTestResult::isLiveLink):
1551         * rendering/RenderForeignObject.cpp:
1552         * rendering/RenderForeignObject.h:
1553         * rendering/RenderLayer.cpp:
1554         (WebCore::RenderLayer::isTransparent):
1555         * rendering/RenderObject.cpp:
1556         (WebCore::RenderObject::containingBlock):
1557         * rendering/RenderObject.h:
1558         * rendering/RenderPath.cpp:
1559         * rendering/RenderPath.h:
1560         * rendering/RenderSVGBlock.cpp:
1561         * rendering/RenderSVGBlock.h:
1562         * rendering/RenderSVGContainer.cpp:
1563         * rendering/RenderSVGContainer.h:
1564         * rendering/RenderSVGGradientStop.cpp:
1565         * rendering/RenderSVGGradientStop.h:
1566         * rendering/RenderSVGHiddenContainer.cpp:
1567         * rendering/RenderSVGHiddenContainer.h:
1568         * rendering/RenderSVGImage.cpp:
1569         * rendering/RenderSVGImage.h:
1570         * rendering/RenderSVGInline.cpp:
1571         * rendering/RenderSVGInline.h:
1572         * rendering/RenderSVGInlineText.cpp:
1573         * rendering/RenderSVGInlineText.h:
1574         * rendering/RenderSVGTSpan.cpp:
1575         * rendering/RenderSVGTSpan.h:
1576         * rendering/RenderSVGText.cpp:
1577         * rendering/RenderSVGText.h:
1578         * rendering/RenderStyle.cpp:
1579         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
1580         (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData):
1581         (WebCore::StyleRareNonInheritedData::operator==):
1582         (WebCore::RenderStyle::RenderStyle):
1583         (WebCore::RenderStyle::inheritFrom):
1584         (WebCore::RenderStyle::operator==):
1585         (WebCore::RenderStyle::inheritedNotEqual):
1586         (WebCore::RenderStyle::diff):
1587         * rendering/RenderStyle.h:
1588         * rendering/RenderText.cpp:
1589         (WebCore::RenderText::setStyle):
1590         (WebCore::RenderText::setTextInternal):
1591         * rendering/RenderTreeAsText.cpp:
1592         (WebCore::write):
1593         (WebCore::externalRepresentation):
1594         * rendering/SVGInlineFlowBox.cpp:
1595         * rendering/SVGInlineFlowBox.h:
1596         * rendering/SVGRenderTreeAsText.cpp:
1597         * rendering/SVGRenderTreeAsText.h:
1598         * rendering/SVGRootInlineBox.cpp:
1599         * rendering/SVGRootInlineBox.h:
1600         * rendering/bidi.cpp:
1601         (WebCore::shouldPreserveNewline):
1602         (WebCore::RenderBlock::findNextLineBreak):
1603         * webcore-base.bkl:
1604         * xml/NativeXPathNSResolver.cpp:
1605         * xml/NativeXPathNSResolver.h:
1606         * xml/XPathEvaluator.cpp:
1607         * xml/XPathEvaluator.h:
1608         * xml/XPathExpression.cpp:
1609         * xml/XPathExpression.h:
1610         * xml/XPathExpressionNode.cpp:
1611         * xml/XPathExpressionNode.h:
1612         * xml/XPathFunctions.cpp:
1613         * xml/XPathFunctions.h:
1614         * xml/XPathGrammar.y:
1615         * xml/XPathNSResolver.cpp:
1616         * xml/XPathNSResolver.h:
1617         * xml/XPathNamespace.cpp:
1618         * xml/XPathNamespace.h:
1619         * xml/XPathParser.cpp:
1620         * xml/XPathParser.h:
1621         * xml/XPathPath.cpp:
1622         * xml/XPathPath.h:
1623         * xml/XPathPredicate.cpp:
1624         * xml/XPathPredicate.h:
1625         * xml/XPathResult.cpp:
1626         * xml/XPathResult.h:
1627         * xml/XPathStep.cpp:
1628         * xml/XPathStep.h:
1629         * xml/XPathUtil.cpp:
1630         * xml/XPathUtil.h:
1631         * xml/XPathValue.cpp:
1632         * xml/XPathValue.h:
1633         * xml/XPathVariableReference.cpp:
1634         * xml/XPathVariableReference.h:
1635         * xml/XSLImportRule.cpp:
1636         * xml/XSLImportRule.h:
1637         * xml/XSLStyleSheet.cpp:
1638         * xml/XSLStyleSheet.h:
1639         * xml/XSLTProcessor.cpp:
1640         * xml/XSLTProcessor.h:
1641
1642 2007-02-25  Mitz Pettel  <mitz@webkit.org>
1643
1644         Reviewed by David Hyatt.
1645
1646         - fix http://bugs.webkit.org/show_bug.cgi?id=12886
1647           Crash with Scriptalicious javascript library
1648
1649         Test: fast/dynamic/float-withdrawal.html
1650
1651         * rendering/RenderBlock.cpp:
1652         (WebCore::RenderBlock::layoutBlockChildren): Detect when a child block had
1653         intruding floats in a previous layout, and in that case force it to relayout.
1654
1655 2007-02-25  David Hyatt  <hyatt@apple.com>
1656
1657         Revert my change to the default fill color.  Just set the color to transparent explicitly when
1658         drawing textarea resizer frames.
1659
1660         * platform/graphics/GraphicsContext.cpp:
1661         (WebCore::GraphicsContextState::GraphicsContextState):
1662         * rendering/RenderLayer.cpp:
1663         (WebCore::RenderLayer::paintOverflowControls):
1664
1665 2007-02-25  Sam Weinig  <sam@webkit.org>
1666
1667         Update forgotten files.
1668
1669         * rendering/RenderLayer.cpp:
1670         (WebCore::RenderLayer::updateLayerPosition):
1671
1672 2007-02-25  David Hyatt  <hyatt@apple.com>
1673
1674         Fix for regression caused by changing the containing block of positioned elements with no positioned ancestor
1675         to be the initial containing block (represented in our tree by the RenderView).  Rework RenderView's layout
1676         to have very few special cases.   Now it will just relayout its children when the width/height of the
1677         view actually changes.  Positioned elements no longer get a special additional layout, since width/height
1678         adjustments are caught by the base class already anyway.
1679
1680         Reviewed by mjs, darin
1681
1682         * rendering/RenderBlock.cpp:
1683         (WebCore::RenderBlock::layoutBlock):
1684         * rendering/RenderFlexibleBox.cpp:
1685         (WebCore::RenderFlexibleBox::layoutBlock):
1686         (WebCore::RenderFlexibleBox::layoutVerticalBox):
1687         * rendering/RenderView.cpp:
1688         (WebCore::RenderView::RenderView):
1689         (WebCore::RenderView::layout):
1690         * rendering/RenderView.h:
1691
1692 2007-02-25  Maciej Stachowiak  <mjs@apple.com>
1693
1694         Not reviewed, build fix.
1695
1696         - fix build breakage
1697
1698         * platform/gdk/ScrollViewGdk.cpp:
1699         (WebCore::ScrollView::fullyClippedContentRect):
1700         * platform/qt/ScrollViewQt.cpp:
1701         (WebCore::ScrollView::fullyClippedContentRect):
1702
1703 2007-02-24  Maciej Stachowiak  <mjs@apple.com>
1704
1705         Reviewed by Adam.
1706
1707         - fixed layout test failure in fast/overflow/scrollRevealButton
1708         
1709         I added a new ScrollView method, fullyClippedContentRect, that vies the content rect
1710         as clipped by all ancestor scroll views, not just this one. Currently it only works
1711         correctly on mac however. visibleContentRect, only accounting for the clipping from
1712         this particular scroll view, is sufficient for most purposes.
1713
1714         * page/Frame.cpp:
1715         (WebCore::Frame::visibleSelectionRect):
1716         (WebCore::Frame::setIsActive):
1717         (WebCore::Frame::markAllMatchesForText):
1718         * platform/ScrollView.h:
1719         * platform/gdk/ScrollViewGdk.cpp:
1720         (WebCore::ScrolView::fullyClippedContentRect):
1721         * platform/mac/ScrollViewMac.mm:
1722         (WebCore::ScrollView::fullyClippedContentRect):
1723         * platform/qt/ScrollViewQt.cpp:
1724         (WebCore::ScrolView::fullyClippedContentRect):
1725         * rendering/RenderLayer.cpp:
1726         (WebCore::RenderLayer::scrollRectToVisible):
1727
1728 2007-02-24  Adam Roben  <aroben@apple.com>
1729
1730         Reviewed by Steve.
1731
1732         "Look Up in Dictionary" context menu item should be Mac-only for now,
1733         since it's only implemented on that platform (<rdar://problem/5021468>)
1734
1735         * platform/ContextMenu.cpp:
1736         (WebCore::ContextMenu::populate): Wrap all instances of the dictionary
1737         menu item in #if PLATFORM(MAC).
1738
1739 2007-02-24  Geoffrey Garen  <ggaren@apple.com>
1740
1741         Reviewed by Darin Adler.
1742         
1743         Fixed <rdar://problem/4987649> leaks in BidiRun::operator new seen while 
1744         running WebKit unit tests
1745         
1746         In bidi.cpp, some functions allocate BidiRuns and put them in a global data
1747         structure, while others uses the BidiRuns in the global data structure. 
1748         The caller is responsible for knowing which functions may allocate runs
1749         and which may use them, and calling deleteBidiRuns() at the appropriate time.
1750
1751         The fix is to add some calls to deleteBidiRuns() where they were missing.
1752         
1753         I also added a BidiRun counter because these two leaks were introduced by
1754         our two bidi.cpp experts, so the odds that leaks will creep in again
1755         in the future seem pretty high.
1756
1757         * rendering/bidi.cpp:
1758         (WebCore::RenderBlock::bidiReorderCharacters): Added  missing call to
1759         deleteBidiRuns().
1760         (WebCore::BidiRunCounter::~BidiRunCounter):
1761         (WebCore::BidiRun::operator delete):
1762         (WebCore::RenderBlock::layoutInlineChildren): Added missing call to
1763         deleteBidiRuns(). Moved call to deleteBidiRuns() to same scope as call to
1764         bidiReorderLine(), to emphasize that they go together like new/delete.
1765         In theory, the old code was just as good, but I didn't want to rely on
1766         theory.
1767
1768 2007-02-24  David Harrison  <harrison@apple.com>
1769
1770         Reviewed by Kevin.
1771
1772         <rdar://problem/4961431> Image with empty string alt tag should be ignored
1773
1774         * bridge/mac/WebCoreAXObject.mm:
1775         (-[WebCoreAXObject accessibilityIsIgnored]):
1776         Ignore img element that has an alt attribute, but that string is empty.
1777
1778 2007-02-24  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
1779
1780         Reviewed by Adam Roben.
1781
1782         Gdk improvements.
1783
1784         * platform/gdk/FrameGdk.cpp: only scroll on keydown, not both keydown and keyup.
1785         (WebCore::FrameGdk::keyPress):
1786         (WebCore::FrameGdk::handleGdkEvent):
1787         (WebCore::Frame::print):
1788         (WebCore::Frame::issueTransposeCommand):
1789         (WebCore::Frame::respondToChangedSelection):
1790         (WebCore::Frame::cleanupPlatformScriptObjects):
1791         (WebCore::Frame::dragImageForSelection):
1792         * platform/network/gdk/ResourceHandleManager.cpp: don't free memory that
1793         doesn't belong to us.
1794         (WebCore::ResourceHandleManager::downloadTimerCallback):
1795
1796 2007-02-23  Kevin Decker <kdecker@apple.com>
1797
1798         Reviewed by Anders.
1799
1800         Fixed: <rdar://problem/4971226> REGRESSION: Replying to closed HTML mail message does not quote original body (12503)
1801         
1802         There were two problems here:
1803         
1804         * page/mac/WebCoreFrameBridge.mm:
1805         (+[WebCoreFrameBridge stringWithData:textEncodingName:]): The old code said  "if there is no text encoding name than
1806          assume WindowsLatin1 (iso-8859-1) and try to decode that". That's not sufficient because it doesn't handle the fallback
1807          case for unknown encodings. This method will now attempt to decode using WindowsLatin1 for unknown encoding types.
1808         * platform/mac/mac-encodings.txt: Added the missing "macroman" encoding type. 
1809
1810 2007-02-23  Mitz Pettel  <mitz@webkit.org>
1811
1812         Reviewed by Maciej.
1813
1814         - fix http://bugs.webkit.org/show_bug.cgi?id=12856
1815           REGRESSION (r13685): Canceling the suggestion popup does not revert the change
1816
1817         * editing/ReplaceSelectionCommand.cpp:
1818         (WebCore::ReplaceSelectionCommand::doApply): If the fragment to be inserted
1819         is empty, first delete the selection, and only then bail out. 
1820
1821 2007-02-23  Anders Carlsson  <acarlsson@apple.com>
1822
1823         Reviewed by Adam.
1824
1825         <rdar://problem/5001923> 
1826         REGRESSION: Crash when navigating forward from an error page in WebFrameLoaderClient::dispatchDidReceiveContentLength
1827
1828         Fix an error that was introduced in revision r18541. We should check if the provisional document loader 
1829         has an unreachable URL, not the actual document loader.
1830         
1831         * loader/FrameLoader.cpp:
1832         (WebCore::FrameLoader::updateHistoryForCommit):
1833
1834 2007-02-23  Mitz Pettel  <mitz@webkit.org>
1835
1836         Reviewed by Darin.
1837
1838         - fix http://bugs.webkit.org/show_bug.cgi?id=12823
1839           REGRESSION(r16968-16977): unable to prevent selection by cancelling "selectstart" event
1840
1841         Test: fast/events/selectstart-during-autoscroll.html
1842
1843         * rendering/RenderLayer.cpp:
1844         (WebCore::RenderLayer::autoscroll): Invoke the renderer's shouldSelect() --
1845         which dispatches the selection DOM event and gives it a chance to cancel
1846         the selection -- before updating the selection during autoscroll.
1847
1848 2007-02-23  Oliver Hunt  <oliver@apple.com>
1849
1850         Reviewed by Adam.
1851
1852         Fix for http://bugs.webkit.org/show_bug.cgi?id=12870
1853
1854         It turns out short circuiting DragData::containsURL() was bad
1855  
1856         * manual-tests/directory-drop-on-view.html: Added.
1857         * platform/mac/DragDataMac.mm:
1858         (WebCore::DragData::containsURL):
1859
1860 2007-02-23  Maciej Stachowiak  <mjs@apple.com>
1861
1862         Reviewed by Mitz.
1863
1864         - 12.5% speedup on BenchJS test 6
1865         Partial fix for http://bugs.webkit.org/show_bug.cgi?id=12866
1866         
1867         It turns out that calling documentVisibleRect on an NSScrollView is pretty expensive,
1868         and calling visibleRect even more so. Take measures to call them less often.
1869
1870         * platform/mac/ScrollViewMac.mm:
1871         (WebCore::ScrollView::visibleContentRect): Use documentVisibleRect when possible.
1872         (WebCore::ScrollView::updateContents): Use visibleContentRect to be able to use
1873         documentVisibleRect when possible.
1874         * rendering/RenderView.cpp:
1875         (WebCore::RenderView::repaintViewRectangle): Don't get or intersect with viewRect
1876         if we don't have a parent frame, since the ScrollView will do that anyway. Also,
1877         don't get contentX and contentY separately since they are in the viewRect already.
1878         (WebCore::RenderView::viewRect): Use visibleContentRect instead of getting each
1879         coordinate individually, to avoid calling documentVisibleRect repeatedly.
1880
1881 2007-02-23  Maciej Stachowiak  <mjs@apple.com>
1882
1883         Reviewed by Mitz.
1884
1885         - 2% speedup on BenchJS test 6
1886         Partial fix for http://bugs.webkit.org/show_bug.cgi?id=12866
1887
1888         * css/CSSPrimitiveValue.cpp:
1889         (WebCore::CSSPrimitiveValue::cssText): Use format() instead of
1890         number() followed by append of a constant string.
1891
1892 2007-02-22  George Staikos  <staikos@kde.org>
1893
1894         Fix the Qt build.
1895
1896         * platform/qt/ClipboardQt.cpp:
1897         (WebCore::ClipboardQt::ClipboardQt):
1898
1899 2007-02-22  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
1900
1901         Reviewed by Adam Roben, who never sleeps.
1902
1903         To avoid code duplication, move notImplementedGdk() macro to a separate
1904         header file. Remove existing notImplementedGdk() macros and replace
1905         remaining notImplemented() to notImplementedGdk() in gdk code.
1906
1907         * loader/gdk/DocumentLoaderGdk.cpp:
1908         (WebCore::DocumentLoader::getResponseModifiedHeader):
1909         * loader/gdk/FrameLoaderClientGdk.cpp:
1910         (WebCore::FrameLoaderClientGdk::hasWebView):
1911         (WebCore::FrameLoaderClientGdk::hasFrameView):
1912         * page/gdk/ContextMenuClientGdk.cpp:
1913         (WebCore::ContextMenuClientGdk::contextMenuDestroyed):
1914         (WebCore::ContextMenuClientGdk::getCustomMenuFromDefaultItems):
1915         (WebCore::ContextMenuClientGdk::contextMenuItemSelected):
1916         (WebCore::ContextMenuClientGdk::downloadURL):
1917         (WebCore::ContextMenuClientGdk::copyImageToClipboard):
1918         (WebCore::ContextMenuClientGdk::searchWithGoogle):
1919         (WebCore::ContextMenuClientGdk::lookUpInDictionary):
1920         (WebCore::ContextMenuClientGdk::speak):
1921         (WebCore::ContextMenuClientGdk::stopSpeaking):
1922         * page/gdk/EventHandlerGdk.cpp:
1923         * platform/gdk/CursorGdk.cpp:
1924         (WebCore::Cursor::Cursor):
1925         * platform/gdk/EditorClientGdk.cpp:
1926         * platform/gdk/NotImplementedGdk.h: Added.
1927         * platform/gdk/PopupMenuGdk.cpp:
1928         (WebCore::PopupMenu::PopupMenu):
1929         (WebCore::PopupMenu::~PopupMenu):
1930         (WebCore::PopupMenu::show):
1931         (WebCore::PopupMenu::hide):
1932         (WebCore::PopupMenu::updateFromElement):
1933         * platform/gdk/RenderThemeGdk.cpp:
1934         * platform/gdk/ScreenGdk.cpp:
1935         (WebCore::screenDepth):
1936         (WebCore::screenDepthPerComponent):
1937         (WebCore::screenIsMonochrome):
1938         (WebCore::screenRect):
1939         (WebCore::screenAvailableRect):
1940         * platform/gdk/TemporaryLinkStubs.cpp:
1941         * platform/graphics/gdk/ImageGdk.cpp:
1942         (WebCore::Image::drawPattern):
1943         * platform/network/gdk/ResourceHandleCurl.cpp:
1944         (WebCore::ResourceHandle::setDefersLoading):
1945         * platform/network/gdk/ResourceHandleManager.cpp:
1946         (WebCore::ResourceHandleManager::setupPUT):
1947         (WebCore::ResourceHandleManager::setupPOST):
1948
1949 2007-02-22  Ian Eng  <ian.eng.webkit@gmail.com>
1950
1951         Reviewed by Maciej.
1952
1953         - Patch for http://bugs.webkit.org/show_bug.cgi?id=12850
1954           Leaks >10k objects
1955
1956         and
1957
1958         - http://bugs.webkit.org/show_bug.cgi?id=12853
1959           add a EventListener leak counter
1960
1961         Problem: RemoveEventListener leaks memory if the listener is not
1962         registered.
1963         Fix: Added Window::findJSEventListener function w/o creating a 
1964         JSEventListener; Renamed getJSEventListener to findOrCreateJSEventListener;
1965
1966         As an enhancement, added a leak counter for EventListeners.
1967
1968         Added a test case, LayoutTests/fast/events/remove-event-listener.html.
1969
1970         * WebCore/bindings/js/kjs_dom.cpp:
1971         * WebCore/bindings/js/kjs_window.h:
1972         * WebCore/bindings/js/kjs_window.cpp:
1973         * WebCore/bindings/js/kjs_event.cpp: Add a leak counter.
1974         * WebCore/bindings/js/JSXMLHttpRequest.cpp:
1975         * LayoutTests/fast/events/remove-event-listener.html:
1976
1977 2007-02-22  Anders Carlsson  <acarlsson@apple.com>
1978
1979         Reviewed by Geoff.
1980
1981         <rdar://problem/4998203> 
1982         REGRESSION: Back-forward list gets messed up when navigating to error pages with back-forward cache turned off
1983         
1984         * loader/FrameLoader.cpp:
1985         (WebCore::FrameLoader::load):
1986         Remove call to setPolicyDocumentLoader(), the policy document loader is set immediately after, and setting it before 
1987         calling shouldReloadToHandleUnreachableURL causes us to get the wrong URL.
1988         
1989         (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
1990         Check if the unreachable URL is equal to the document loader's request.
1991         
1992         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
1993         Check the provisional document loader's unreachable URL.
1994
1995 2007-02-22  Justin Garcia  <justin.garcia@apple.com>
1996
1997         Reviewed by darin
1998         
1999         <rdar://problem/5007143>
2000         REGRESSION: WebKit doesn't remember horizontal position of caret when moving forward by line
2001
2002         * editing/SelectionController.cpp:
2003         (WebCore::SelectionController::SelectionController): Initialize 
2004         m_xPosForVerticalArrowNavigation.
2005         (WebCore::SelectionController::setSelection): Call the new setter.
2006         (WebCore::SelectionController::modifyMovingRightForward): For line
2007         and paragraph granularities, use the saved xPosForVerticalArrowNavigation 
2008         even if the old selection was a range. Use the x position of the 
2009         *start*, not the end of the selection if there is no saved 
2010         xPosForVerticalArrowNavigation.  This matches TextEdit's behavior.
2011         (WebCore::SelectionController::modifyMovingLeftBackward): For line
2012         and paragraph granularities, use the saved xPosForVerticalArrowNavigation 
2013         even if the old selection was a range.
2014         (WebCore::SelectionController::modify): Preserve the xPosForVerticalArrowNavigation
2015         for line and paragraph granularities.
2016         (WebCore::SelectionController::xPosForVerticalArrowNavigation): Removed
2017         the recalc bool because it is now always false.
2018         (WebCore::SelectionController::setXPosForVerticalArrowNavigation): Added.
2019         * editing/SelectionController.h: Moved m_xPosForVerticalArrowNavigation
2020         from Frame.
2021         * page/Frame.cpp: Moved m_xPosForVerticalArrowNavigation to SelectionController.
2022         * page/Frame.h: Ditto.
2023         * page/FramePrivate.h: Ditto.
2024
2025 2007-02-22  Beth Dakin  <bdakin@apple.com>
2026
2027         Reviewed by Adam. Manual test added.
2028
2029         Fix for http://bugs.webkit.org/show_bug.cgi?id=12399 REGRESSION: 
2030         Unable to prevent default context menu from appearing. <rdar://
2031         problem/5017416>
2032
2033         This problem appeared because of two facets of the current context 
2034         menu design. First, all context menu events are now considered to 
2035         be "swallowed" since we take care of building up the regular 
2036         context menu through the defaultEventHandler(). Second, the context 
2037         menu controller holds onto it's context menu until a new one is 
2038         created. There would be logistical problems changing this since 
2039         AppKit relies on the menu being around for as long as it is
2040         visible on the screen and we don't get any notification once the 
2041         menu is popped-down.
2042
2043         This patch fixes the problem by giving WebKit a way to clear the 
2044         controller's context menu. WebKit now clears the menu before it 
2045         propagates a new context menu event through the DOM.
2046
2047         * WebCore.exp:
2048         * manual-tests/DOMContextMenuEvent.html: Added.
2049         * page/ContextMenuController.cpp:
2050         (WebCore::ContextMenuController::clearContextMenu):
2051         * page/ContextMenuController.h:
2052
2053 2007-02-22  John Sullivan  <sullivan@apple.com>
2054
2055         Reviewed by Kevin and Adele
2056         
2057         - fixed <rdar://problem/4129417> Need final art for textarea's resize corner
2058         
2059         This probably broke some layout pixel tests since the image changed. I'm going to
2060         track those down in a moment (non-trivial since there are a bunch failing for other
2061         reasons).
2062
2063         * Resources/textAreaResizeCorner.tiff:
2064         new art
2065
2066         * Resources/deleteButton.tiff:
2067         * Resources/deleteButtonPressed.tiff:
2068         these got smaller when I ran compress-tiffs on this directory
2069         
2070 2007-02-22  Oliver Hunt  <oliver@apple.com>
2071
2072         Reviewed by Ada, Lou and Steve.
2073
2074         Moving basic components of ClipboardMac to Clipboard, 
2075         last of the basic common code merge will come later (namely setting the 
2076         drag element/image).
2077         
2078         Tidying up in DragController including a few bad PassRefPtr uses and
2079         removing unnecessary accessors.  Also initialise fields properly to
2080         fix <rdar:/problems/5014889>
2081
2082         * dom/Clipboard.cpp:
2083         (WebCore::Clipboard::Clipboard):
2084           New constructor
2085           
2086         * dom/Clipboard.h:
2087         (WebCore::Clipboard::isForDragging):
2088         (WebCore::Clipboard::dragLocation):
2089         (WebCore::Clipboard::dragImage):
2090         (WebCore::Clipboard::dragImageElement):
2091           Exposing common data
2092           
2093         * page/DragController.cpp:
2094         (WebCore::DragController::DragController):
2095           Initialise m_isHandlingDrag (oops)
2096         (WebCore::documentFragmentFromDragData):
2097         (WebCore::DragController::tryDocumentDrag):
2098           Fixing PassRefPtr misuse
2099         (WebCore::DragController::canProcessDrag):
2100         (WebCore::DragController::startDrag):
2101         (WebCore::DragController::doSystemDrag):
2102           Make sure we're using the correct coordinate space
2103           
2104         * page/EventHandler.cpp:
2105         (WebCore::EventHandler::handleDrag):
2106           Reset drag source correctly
2107           
2108         * platform/mac/ClipboardMac.h:
2109         * platform/mac/ClipboardMac.mm:
2110         (WebCore::ClipboardMac::ClipboardMac):
2111           update constructor to use new Clipboard constructor
2112
2113 2007-02-22  Adele Peterson  <adele@apple.com>
2114
2115         Reviewed by Darin.
2116
2117         Fix for <rdar://problem/5014970> 9A374: Tabs don't work in the message body
2118
2119         Test: fast/events/keypress-insert-tab.html
2120
2121         * page/EventHandler.cpp: (WebCore::EventHandler::defaultTextInputEventHandler):
2122           If the defaultTabEventHandler doesn't handle the event, then go on to the insertText case.
2123
2124 2007-02-22  Timothy Hatcher  <timothy@apple.com>
2125
2126         Reviewed by Darin.
2127
2128         <rdar://problem/4948887> REGRESSION: Correct differences in public DOM API that inadvertently changed in Leopard
2129
2130         * bindings/objc/PublicDOMInterfaces.h: Changes return types for two size properties, adds deprecated DOMEventTarget methods.
2131         * bindings/scripts/CodeGeneratorObjC.pm: Fixed public API checking for protocols, adds support for ConvertToString.
2132         * dom/EventTarget.idl: Marks addEventListener and removeEventListener with the OldStyleObjC attribute.
2133         * html/HTMLBaseFontElement.idl: Changes the size property to a DOMString for ObjC only.
2134         * html/HTMLInputElement.idl: Changes the size property to a DOMString for ObjC only.
2135         * html/HTMLOptionsCollection.idl: Changes the length property to be unsigned.
2136
2137 2007-02-22  Adele Peterson  <adele@apple.com>
2138
2139         Reviewed by John.
2140
2141         Fix <rdar://problem/5016969> REGRESSION: "Check Spelling As You Type" context menu item is never checked
2142
2143         * platform/ContextMenu.cpp: (WebCore::ContextMenu::checkOrEnableIfNeeded): Set shouldCheck for ContextMenuItemTagCheckSpellingWhileTyping.
2144
2145 2007-02-22  Antti Koivisto  <antti@apple.com>
2146
2147         Reviewed by Darin.
2148
2149         - fix http://bugs.webkit.org/show_bug.cgi?id=11447
2150         REGRESSION(NativeListBox): List not scrolled to preselected option
2151         <rdar://problem/4957463>
2152         
2153         Initiate scroll when selected <option> is added to <select>.
2154
2155         * html/HTMLOptionElement.cpp:
2156         (WebCore::HTMLOptionElement::insertedIntoDocument):
2157         * html/HTMLOptionElement.h:
2158         * html/HTMLSelectElement.cpp:
2159         (WebCore::HTMLSelectElement::notifyOptionSelected):
2160         (WebCore::HTMLSelectElement::updateListBoxSelection):
2161         (WebCore::HTMLSelectElement::scrollToSelection):
2162         * html/HTMLSelectElement.h:
2163
2164 2007-02-22  Zack Rusin  <zrusin@trolltech.com>
2165
2166         Reviewed by Lars
2167
2168         Fix sites with fixed positioned backgrounds.
2169
2170         * platform/qt/ScrollViewQt.cpp:
2171         (WebCore::ScrollView::setStaticBackground):
2172
2173 2007-02-22  Zack Rusin  <zrusin@trolltech.com>
2174
2175         Reviewed by Lars
2176
2177         Properly implement canvas/scrollview's. Get
2178         rid of ScrollViewCanvas and replace it with
2179         a tailor abstractscrollview (now in qwebframe).
2180         Scrolling of pages is finally completely smooth.
2181
2182         * WebCore.pro:
2183         * platform/ScrollView.h:
2184         * platform/qt/ScrollViewCanvasQt.cpp: Removed.
2185         * platform/qt/ScrollViewCanvasQt.h: Removed.
2186         * platform/qt/ScrollViewQt.cpp:
2187         (WebCore::ScrollView::ScrollView):
2188         (WebCore::ScrollView::setScrollArea):
2189         (WebCore::ScrollView::updateContents):
2190         (WebCore::ScrollView::resizeContents):
2191         (WebCore::ScrollView::contentsWidth):
2192         (WebCore::ScrollView::contentsHeight):
2193         (WebCore::ScrollView::contentsToWindow):
2194         (WebCore::ScrollView::windowToContents):
2195         (WebCore::ScrollView::addChild):
2196         * platform/qt/WidgetQt.cpp:
2197         (WebCore::WidgetPrivate::canvas):
2198         (WebCore::WidgetPrivate::parentScroll):
2199         (WebCore::WidgetPrivate::setGeometry):
2200         (WebCore::WidgetPrivate::geometry):
2201         (WebCore::Widget::frameGeometry):
2202         (WebCore::Widget::setQWidget):
2203         (WebCore::Widget::setFrameGeometry):
2204
2205 2007-02-21  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
2206
2207         Reviewed by Adam Roben.
2208
2209         Improve notImplemented() macro for gdk. Rename to notImplementedGdk() to
2210         give it a unique name (so that it doesn't clash with notImplemented()
2211         for other platforms).
2212         Make it print a given warning only once, so that frequently called
2213         functions don't clutter the output.
2214         Don't print the warning if DISABLE_NI_WARNING env variable is set.
2215
2216         * loader/gdk/FrameLoaderClientGdk.cpp:
2217         (WebCore::FrameLoaderClientGdk::dispatchDidReceiveAuthenticationChallenge):
2218         (WebCore::FrameLoaderClientGdk::dispatchDidCancelAuthenticationChallenge):
2219         (WebCore::FrameLoaderClientGdk::dispatchWillSendRequest):
2220         (WebCore::FrameLoaderClientGdk::assignIdentifierToInitialRequest):
2221         (WebCore::FrameLoaderClientGdk::createPlugin):
2222         (WebCore::FrameLoaderClientGdk::createFrame):
2223         (WebCore::FrameLoaderClientGdk::redirectDataToPlugin):
2224         (WebCore::FrameLoaderClientGdk::createJavaAppletWidget):
2225         (WebCore::FrameLoaderClientGdk::objectContentType):
2226         (WebCore::FrameLoaderClientGdk::overrideMediaType):
2227         (WebCore::FrameLoaderClientGdk::windowObjectCleared):
2228         (WebCore::FrameLoaderClientGdk::hasWebView):
2229         (WebCore::FrameLoaderClientGdk::hasFrameView):
2230         (WebCore::FrameLoaderClientGdk::frameLoadCompleted):
2231         (WebCore::FrameLoaderClientGdk::saveViewStateToItem):
2232         (WebCore::FrameLoaderClientGdk::restoreViewState):
2233         (WebCore::FrameLoaderClientGdk::privateBrowsingEnabled):
2234         (WebCore::FrameLoaderClientGdk::makeDocumentView):
2235         (WebCore::FrameLoaderClientGdk::makeRepresentation):
2236         (WebCore::FrameLoaderClientGdk::forceLayout):
2237         (WebCore::FrameLoaderClientGdk::forceLayoutForNonHTML):
2238         (WebCore::FrameLoaderClientGdk::setCopiesOnScroll):
2239         (WebCore::FrameLoaderClientGdk::detachedFromParent1):
2240         (WebCore::FrameLoaderClientGdk::detachedFromParent2):
2241         (WebCore::FrameLoaderClientGdk::detachedFromParent3):
2242         (WebCore::FrameLoaderClientGdk::detachedFromParent4):
2243         (WebCore::FrameLoaderClientGdk::loadedFromPageCache):
2244         (WebCore::FrameLoaderClientGdk::dispatchDidHandleOnloadEvents):
2245         (WebCore::FrameLoaderClientGdk::dispatchDidReceiveServerRedirectForProvisionalLoad):
2246         (WebCore::FrameLoaderClientGdk::dispatchDidCancelClientRedirect):
2247         (WebCore::FrameLoaderClientGdk::dispatchWillPerformClientRedirect):
2248         (WebCore::FrameLoaderClientGdk::dispatchDidChangeLocationWithinPage):
2249         (WebCore::FrameLoaderClientGdk::dispatchWillClose):
2250         (WebCore::FrameLoaderClientGdk::dispatchDidReceiveIcon):
2251         (WebCore::FrameLoaderClientGdk::dispatchDidStartProvisionalLoad):
2252         (WebCore::FrameLoaderClientGdk::dispatchDidReceiveTitle):
2253         (WebCore::FrameLoaderClientGdk::dispatchDidCommitLoad):
2254         (WebCore::FrameLoaderClientGdk::dispatchDidFinishDocumentLoad):
2255         (WebCore::FrameLoaderClientGdk::dispatchDidFirstLayout):
2256         (WebCore::FrameLoaderClientGdk::dispatchShow):
2257         (WebCore::FrameLoaderClientGdk::cancelPolicyCheck):
2258         (WebCore::FrameLoaderClientGdk::dispatchDidLoadMainResource):
2259         (WebCore::FrameLoaderClientGdk::revertToProvisionalState):
2260         (WebCore::FrameLoaderClientGdk::clearUnarchivingState):
2261         (WebCore::FrameLoaderClientGdk::willChangeTitle):
2262         (WebCore::FrameLoaderClientGdk::finishedLoading):
2263         (WebCore::FrameLoaderClientGdk::finalSetupForReplace):
2264         (WebCore::FrameLoaderClientGdk::setDefersLoading):
2265         (WebCore::FrameLoaderClientGdk::isArchiveLoadPending):
2266         (WebCore::FrameLoaderClientGdk::cancelPendingArchiveLoad):
2267         (WebCore::FrameLoaderClientGdk::clearArchivedResources):
2268         (WebCore::FrameLoaderClientGdk::canHandleRequest):
2269         (WebCore::FrameLoaderClientGdk::canShowMIMEType):
2270         (WebCore::FrameLoaderClientGdk::representationExistsForURLScheme):
2271         (WebCore::FrameLoaderClientGdk::generatedMIMETypeForURLScheme):
2272         (WebCore::FrameLoaderClientGdk::provisionalLoadStarted):
2273         (WebCore::FrameLoaderClientGdk::didFinishLoad):
2274         (WebCore::FrameLoaderClientGdk::prepareForDataSourceReplacement):
2275         (WebCore::FrameLoaderClientGdk::setTitle):
2276         (WebCore::FrameLoaderClientGdk::setDocumentViewFromPageCache):
2277         (WebCore::FrameLoaderClientGdk::dispatchDidReceiveContentLength):
2278         (WebCore::FrameLoaderClientGdk::dispatchDidFinishLoading):
2279         (WebCore::FrameLoaderClientGdk::dispatchDidFailLoading):
2280         (WebCore::FrameLoaderClientGdk::dispatchDidLoadResourceFromMemoryCache):
2281         (WebCore::FrameLoaderClientGdk::dispatchDidFailProvisionalLoad):
2282         (WebCore::FrameLoaderClientGdk::dispatchDidFailLoad):
2283         (WebCore::FrameLoaderClientGdk::download):
2284         (WebCore::FrameLoaderClientGdk::cancelledError):
2285         (WebCore::FrameLoaderClientGdk::cannotShowURLError):
2286         (WebCore::FrameLoaderClientGdk::interruptForPolicyChangeError):
2287         (WebCore::FrameLoaderClientGdk::cannotShowMIMETypeError):
2288         (WebCore::FrameLoaderClientGdk::fileDoesNotExistError):
2289         (WebCore::FrameLoaderClientGdk::shouldFallBack):
2290         (WebCore::FrameLoaderClientGdk::willUseArchive):
2291         (WebCore::FrameLoaderClientGdk::saveDocumentViewToPageCache):
2292         (WebCore::FrameLoaderClientGdk::canCachePage):
2293         (WebCore::FrameLoaderClientGdk::dispatchCreatePage):
2294         (WebCore::FrameLoaderClientGdk::dispatchUnableToImplementPolicy):
2295         (WebCore::FrameLoaderClientGdk::setMainDocumentError):
2296         (WebCore::FrameLoaderClientGdk::startDownload):
2297         (WebCore::FrameLoaderClientGdk::updateGlobalHistoryForStandardLoad):
2298         (WebCore::FrameLoaderClientGdk::updateGlobalHistoryForReload):
2299         (WebCore::FrameLoaderClientGdk::shouldGoToHistoryItem):
2300         * page/gdk/EventHandlerGdk.cpp:
2301         (WebCore::EventHandler::passMouseDownEventToWidget):
2302         (WebCore::EventHandler::eventActivatedView):
2303         (WebCore::EventHandler::passSubframeEventToSubframe):
2304         (WebCore::EventHandler::passWheelEventToWidget):
2305         (WebCore::EventHandler::createDraggingClipboard):
2306         * platform/gdk/EditorClientGdk.cpp:
2307         (WebCore::EditorClientGdk::shouldDeleteRange):
2308         (WebCore::EditorClientGdk::isContinuousSpellCheckingEnabled):
2309         (WebCore::EditorClientGdk::isGrammarCheckingEnabled):
2310         (WebCore::EditorClientGdk::spellCheckerDocumentTag):
2311         (WebCore::EditorClientGdk::shouldBeginEditing):
2312         (WebCore::EditorClientGdk::shouldEndEditing):
2313         (WebCore::EditorClientGdk::shouldInsertText):
2314         (WebCore::EditorClientGdk::shouldChangeSelectedRange):
2315         (WebCore::EditorClientGdk::shouldApplyStyle):
2316         (WebCore::EditorClientGdk::didBeginEditing):
2317         (WebCore::EditorClientGdk::respondToChangedContents):
2318         (WebCore::EditorClientGdk::didEndEditing):
2319         (WebCore::EditorClientGdk::didWriteSelectionToPasteboard):
2320         (WebCore::EditorClientGdk::didSetSelectionTypesForPasteboard):
2321         (WebCore::EditorClientGdk::selectWordBeforeMenuEvent):
2322         (WebCore::EditorClientGdk::isEditable):
2323         (WebCore::EditorClientGdk::registerCommandForUndo):
2324         (WebCore::EditorClientGdk::registerCommandForRedo):
2325         (WebCore::EditorClientGdk::clearUndoRedoOperations):
2326         (WebCore::EditorClientGdk::canUndo):
2327         (WebCore::EditorClientGdk::canRedo):
2328         (WebCore::EditorClientGdk::undo):
2329         (WebCore::EditorClientGdk::redo):
2330         (WebCore::EditorClientGdk::shouldInsertNode):
2331         (WebCore::EditorClientGdk::pageDestroyed):
2332         (WebCore::EditorClientGdk::smartInsertDeleteEnabled):
2333         (WebCore::EditorClientGdk::toggleContinuousSpellChecking):
2334         (WebCore::EditorClientGdk::textFieldDidBeginEditing):
2335         (WebCore::EditorClientGdk::textFieldDidEndEditing):
2336         (WebCore::EditorClientGdk::textDidChangeInTextField):
2337         (WebCore::EditorClientGdk::doTextFieldCommandFromEvent):
2338         (WebCore::EditorClientGdk::textWillBeDeletedInTextField):
2339         (WebCore::EditorClientGdk::textDidChangeInTextArea):
2340         * platform/gdk/RenderThemeGdk.cpp:
2341         (WebCore::RenderThemeGdk::setCheckboxSize):
2342         (WebCore::RenderThemeGdk::setRadioSize):
2343         (WebCore::RenderThemeGdk::adjustTextFieldStyle):
2344         * platform/gdk/TemporaryLinkStubs.cpp:
2345         (FrameView::updateBorder):
2346         (Widget::setEnabled):
2347         (Widget::isEnabled):
2348         (Widget::focusPolicy):
2349         (Widget::enableFlushDrawing):
2350         (Widget::disableFlushDrawing):
2351         (Widget::lockDrawingFocus):
2352         (Widget::unlockDrawingFocus):
2353         (Widget::removeFromParent):
2354         (Widget::paint):
2355         (Widget::setIsSelected):
2356         (Widget::invalidate):
2357         (Widget::invalidateRect):
2358         (PlatformMouseEvent::PlatformMouseEvent):
2359         (WebCore::findNextSentenceFromIndex):
2360         (WebCore::findSentenceBoundary):
2361         (WebCore::findNextWordFromIndex):
2362         (ChromeClientGdk::chromeDestroyed):
2363         (ChromeClientGdk::windowRect):
2364         (ChromeClientGdk::setWindowRect):
2365         (ChromeClientGdk::pageRect):
2366         (ChromeClientGdk::scaleFactor):
2367         (ChromeClientGdk::focus):
2368         (ChromeClientGdk::unfocus):
2369         (ChromeClientGdk::createWindow):
2370         (ChromeClientGdk::createModalDialog):
2371         (ChromeClientGdk::show):
2372         (ChromeClientGdk::canRunModal):
2373         (ChromeClientGdk::runModal):
2374         (ChromeClientGdk::setToolbarsVisible):
2375         (ChromeClientGdk::toolbarsVisible):
2376         (ChromeClientGdk::setStatusbarVisible):
2377         (ChromeClientGdk::statusbarVisible):
2378         (ChromeClientGdk::setScrollbarsVisible):
2379         (ChromeClientGdk::scrollbarsVisible):
2380         (ChromeClientGdk::setMenubarVisible):
2381         (ChromeClientGdk::menubarVisible):
2382         (ChromeClientGdk::setResizable):
2383         (ChromeClientGdk::closeWindowSoon):
2384         (ChromeClientGdk::canTakeFocus):
2385         (ChromeClientGdk::takeFocus):
2386         (ChromeClientGdk::canRunBeforeUnloadConfirmPanel):
2387         (ChromeClientGdk::addMessageToConsole):
2388         (ChromeClientGdk::runBeforeUnloadConfirmPanel):
2389         (ChromeClientGdk::runJavaScriptAlert):
2390         (ChromeClientGdk::runJavaScriptConfirm):
2391         (ChromeClientGdk::runJavaScriptPrompt):
2392         (ChromeClientGdk::setStatusbarText):
2393         (ChromeClientGdk::shouldInterruptJavaScript):
2394         (ChromeClientGdk::tabsToLinks):
2395         (ChromeClientGdk::windowResizerRect):
2396         (ChromeClientGdk::addToDirtyRegion):
2397         (ChromeClientGdk::scrollBackingStore):
2398         (ChromeClientGdk::updateBackingStore):
2399         (PlugInInfoStore::createPluginInfoForPluginAtIndex):
2400         (PlugInInfoStore::pluginCount):
2401         (WebCore::PlugInInfoStore::supportsMIMEType):
2402         (WebCore::refreshPlugins):
2403         (SearchPopupMenu::saveRecentSearches):
2404         (SearchPopupMenu::loadRecentSearches):
2405         (SearchPopupMenu::SearchPopupMenu):
2406         (PlatformScrollbar::PlatformScrollbar):
2407         (PlatformScrollbar::~PlatformScrollbar):
2408         (PlatformScrollbar::setEnabled):
2409         (PlatformScrollbar::paint):
2410         (PlatformScrollbar::updateThumbPosition):
2411         (PlatformScrollbar::updateThumbProportion):
2412         (PlatformScrollbar::setRect):
2413         (FileChooser::FileChooser):
2414         (FileChooser::~FileChooser):
2415         (FileChooser::openFileChooser):
2416         (FileChooser::basenameForWidth):
2417         (ResourceHandle::willLoadFromCache):
2418         (ResourceHandle::loadsBlocked):
2419         (ResourceHandle::loadResourceSynchronously):
2420         (Icon::Icon):
2421         (Icon::~Icon):
2422         (Icon::newIconForFile):
2423         (Icon::paint):
2424         (Font::drawComplexText):
2425         (Font::floatWidthForComplexText):
2426         (Font::offsetForPositionForComplexText):
2427         (PageCache::close):
2428         (Editor::ignoreSpelling):
2429         (Editor::learnSpelling):
2430         (Editor::isSelectionUngrammatical):
2431         (Editor::isSelectionMisspelled):
2432         (Editor::guessesForMisspelledSelection):
2433         (Editor::guessesForUngrammaticalSelection):
2434         (Editor::markMisspellingsAfterTypingToPosition):
2435         (Editor::newGeneralClipboard):
2436         (Pasteboard::generalPasteboard):
2437         (Pasteboard::writeSelection):
2438         (Pasteboard::writeURL):
2439         (Pasteboard::writeImage):
2440         (Pasteboard::clear):
2441         (Pasteboard::canSmartReplace):
2442         (Pasteboard::documentFragment):
2443         (Pasteboard::plainText):
2444         (Pasteboard::Pasteboard):
2445         (Pasteboard::~Pasteboard):
2446         (ContextMenu::ContextMenu):
2447         (ContextMenu::~ContextMenu):
2448         (ContextMenu::appendItem):
2449         (ContextMenuItem::ContextMenuItem):
2450         (ContextMenuItem::~ContextMenuItem):
2451         (ContextMenuItem::releasePlatformDescription):
2452         (ContextMenuItem::type):
2453         (ContextMenuItem::setType):
2454         (ContextMenuItem::action):
2455         (ContextMenuItem::setAction):
2456         (ContextMenuItem::title):
2457         (ContextMenuItem::setTitle):
2458         (ContextMenuItem::platformSubMenu):
2459         (ContextMenuItem::setSubMenu):
2460         (ContextMenuItem::setChecked):
2461         (ContextMenuItem::setEnabled):
2462         (WebCore::supportedKeySizes):
2463         (WebCore::systemBeep):
2464         (WebCore::userIdleTime):
2465
2466 2007-02-21  Antti Koivisto  <antti@apple.com>
2467
2468         Reviewed by Hyatt.
2469
2470         - fix http://bugs.webkit.org/show_bug.cgi?id=12820
2471         REGRESSION (r19706): Caret not painted after popup, failing editing/pasteboard/4641033
2472
2473         Yet another attempt to figure out exactly who should paint the caret.
2474
2475         * editing/SelectionController.cpp:
2476         (WebCore::SelectionController::isInsideNode):
2477         * editing/SelectionController.h:
2478         * rendering/RenderBlock.cpp:
2479         (WebCore::RenderBlock::paintCaret):
2480
2481 2007-02-21  Mitz Pettel  <mitz@webkit.org>
2482
2483         Reviewed by Hyatt.
2484
2485         - fix http://bugs.webkit.org/show_bug.cgi?id=12818
2486           REGRESSION (r19148): shacknews.com does not render completely
2487
2488         Test: fast/dynamic/staticY-marking-parents-regression.html
2489
2490         Changed calls to setChildNeedsLayout(true) during layout to
2491         setChildNeedsLayout(true, false). Prior to r19148, the default behavior
2492         of marking containers did not matter because the caller was the container
2493         and was already marked, but r19148 added marking of the parent of
2494         objects with static Y, which can be different from the caller and not
2495         necessarily marked already.
2496
2497         * rendering/RenderBlock.cpp:
2498         (WebCore::RenderBlock::collapseMargins):
2499         (WebCore::RenderBlock::clearFloatsIfNeeded):
2500         (WebCore::RenderBlock::layoutBlockChildren):
2501         * rendering/RenderBox.cpp:
2502         (WebCore::RenderBox::setStaticY):
2503         * rendering/RenderFlexibleBox.cpp:
2504         (WebCore::RenderFlexibleBox::layoutVerticalBox):
2505
2506 2007-02-21  Brady Eidson  <beidson@apple.com>
2507
2508         Reviewed by Dave Harrison
2509
2510         <rdar://problem/5014313> - Crash in FrameLoader::restoreScrollPositionAndViewState() 
2511         after regaining network connection
2512
2513         * loader/FrameLoader.cpp:
2514         (WebCore::FrameLoader::restoreScrollPositionAndViewState):  Leave an assertion for debug
2515         build exploration, but gracefully handle the release build case
2516
2517 2007-02-21  Timothy Hatcher  <timothy@apple.com>
2518
2519         Rubber-stamped by Darin.
2520
2521         * bindings/objc/PublicDOMInterfaces.h: Add missing classes that are really public.
2522         Also adds the deprecated selector for getComputedStyle: on DOMDocument.
2523
2524 2007-02-21  Justin Garcia  <justin.garcia@apple.com>
2525
2526         Reviewed by john
2527         
2528         <rdar://problem/5012665>
2529         Removing indent from list moves the caret to the line below
2530
2531         Selection preservation during indent, outdent and list 
2532         operations uses rangeFromLocationAndLength.  Ranges returned 
2533         by rangeFromLocationAndLength were incorrect for locations 
2534         just before the line breaks that are emitted after blocks.  
2535         This is because TextIterator emitted bad ranges for these line 
2536         breaks (ranges that started and ended *after* the block).  
2537         The fix corrects the start but not the end.  This is acceptible 
2538         because there is code in rangeFromLocationAndLength that corrects 
2539         the ends of runs using the start of the run and VisiblePosition 
2540         creation.
2541         
2542         * editing/TextIterator.cpp:
2543         (WebCore::TextIterator::exitNode): Emit a position *inside* 
2544         the block, after its contents.
2545
2546 2007-02-21  Adele Peterson  <adele@apple.com>
2547
2548         Reviewed by Darin.
2549
2550         Fix for <rdar://problem/4999030> Indexing into select element to get to items in the options collection is broken
2551
2552         Test: fast/forms/select-index-setter.html
2553
2554         Added indexSetter for HTMLSelectElement.
2555
2556         * WebCore.xcodeproj/project.pbxproj: Added JSHTMLSelectElementCustom.h
2557
2558         * bindings/js/JSHTMLOptionsCollectionCustom.cpp: (WebCore::JSHTMLOptionsCollection::indexSetter):
2559           Moved code to selectIndexSetter so it can be shared between these classes.
2560         * bindings/js/JSHTMLSelectElementCustom.cpp:
2561         (WebCore::selectIndexSetter): Added.  Moved from JSHTMLOptionsCollection::indexSetter.
2562         (WebCore::JSHTMLSelectElement::indexSetter): Calls selectIndexSetter.
2563         * bindings/js/JSHTMLSelectElementCustom.h: Added.
2564         * html/HTMLSelectElement.idl: Added HasCustomIndexSetter keyword.
2565
2566         * bindings/scripts/CodeGeneratorJS.pm: When generating "put" methods, if the propertyName is a number, call the indexSetter first,
2567           and then call the version of lookupPut that will also try to use the parent's lookup table.  This matches the order of our
2568           old code, before we autogenerated the JSHTMLSelectElement class.
2569
2570 2007-02-21  George Staikos  <staikos@kde.org>
2571
2572         Reviewed by Zack.
2573
2574         Add files to the build.
2575
2576         * WebCore.pro:
2577
2578 2007-02-21  Zack Rusin  <zrusin@trolltech.com>
2579
2580         Reviewed by Lars
2581
2582         Implementing popups for the Qt platform.
2583
2584         * WebCore.pro:
2585         * platform/PopupMenu.h:
2586         * platform/Widget.h:
2587         * platform/qt/PopupMenuQt.cpp:
2588         (WebCore::PopupMenu::PopupMenu):
2589         (WebCore::PopupMenu::clear):
2590         (WebCore::PopupMenu::populate):
2591         (WebCore::PopupMenu::show):
2592         (WebCore::PopupMenu::hide):
2593         * platform/qt/QWebPopup.cpp: Added.
2594         (WebCore::QWebPopup::QWebPopup):
2595         (WebCore::QWebPopup::exec):
2596         (WebCore::QWebPopup::hideEvent):
2597         (WebCore::QWebPopup::activeChanged):
2598         * platform/qt/QWebPopup.h: Added.
2599         * platform/qt/WidgetQt.cpp:
2600         (WebCore::Widget::canvas):
2601
2602 2007-02-21  George Staikos  <staikos@kde.org>
2603
2604         Reviewed by Zack.
2605
2606         Remove unneeded hack now.
2607
2608         * platform/qt/RenderThemeQt.cpp:
2609         (WebCore::RenderThemeQt::setCheckboxSize):
2610
2611 2007-02-21  Zack Rusin  <zrusin@trolltech.com>
2612
2613         Reviewed by Lars
2614
2615         Fix rendering of lineedits and remove the spurious
2616         padding on push-buttons.
2617
2618         * platform/qt/RenderThemeQt.cpp:
2619         (WebCore::RenderThemeQt::baselinePosition):
2620         (WebCore::RenderThemeQt::adjustTextFieldStyle):
2621         (WebCore::RenderThemeQt::sizeForFont):
2622         (WebCore::RenderThemeQt::setButtonPadding):
2623
2624 2007-02-21  Zack Rusin  <zrusin@trolltech.com>
2625
2626         Fix compilation.
2627
2628         * platform/qt/PasteboardQt.cpp:
2629         (WebCore::Pasteboard::writeURL):
2630         (WebCore::Pasteboard::writeImage):
2631
2632 2007-02-20  Adam Roben  <aroben@apple.com>
2633
2634         Preemptive build fix.
2635
2636         * platform/mac/FontCacheMac.mm: Remove unused (and non-existent) header.
2637
2638 2007-02-20  Adam Roben  <aroben@apple.com>
2639
2640         Fix the build the right way.
2641
2642         * platform/StringTruncator.cpp:
2643         (WebCore::truncateString): Keep all widths as floats.
2644
2645 2007-02-20  Beth Dakin  <bdakin@apple.com>
2646
2647         Reviewed by Maciej.
2648
2649         Implement writeImage() on Pasteboard so that the context menus can 
2650         call into the editor for the "Copy image" command instead of 
2651         calling across the clients.
2652
2653         * WebCore.exp:
2654         * WebCore.xcodeproj/project.pbxproj:
2655         * editing/Editor.cpp:
2656         (WebCore::Editor::copyImage): Call into the Pasteboard.
2657         * editing/Editor.h:
2658         * loader/mac/LoaderNSURLExtras.h: A new NSURL extra needed inside 
2659         WebCore.
2660         * loader/mac/LoaderNSURLExtras.m: Made this file Objective-C++ 
2661         (from Objective-C) since the call into the MIMETypeRegistry will 
2662         return a Vector.
2663         (urlByRemovingComponent): Cast to build as Obj-C++
2664         (urlWithDataRelativeToURL): Same.
2665         (vectorContainsString): Helper.
2666         (suggestedFilenameWithMIMEType): New function.
2667         * page/ContextMenuClient.h: Remove copyImageToClipboard()
2668         * page/ContextMenuController.cpp:
2669         (WebCore::ContextMenuController::contextMenuItemSelected): Call 
2670         into the editor instead of the client.
2671         * page/mac/WebCoreViewFactory.h: New localized String.
2672         * platform/LocalizedStrings.h: Same.
2673         * platform/MimeTypeRegistry.h: Expose two additional functions for 
2674         MIMEType information from WebCore System Interface.
2675         * platform/Pasteboard.h:
2676         * platform/SharedBuffer.h: Make platformData() and platformDataSize
2677         () public since they are needed to write the image to the 
2678         pasteboard.
2679         * platform/mac/LocalizedStringsMac.mm: New localized string.
2680         (WebCore::copyImageUnknownFileLabel):
2681         * platform/mac/MimeTypeRegistryMac.mm:
2682         (WebCore::MimeTypeRegistry::getExtensionsForMIMEType):
2683         (WebCore::MimeTypeRegistry::getPreferredExtensionForMIMEType):
2684         * platform/mac/PasteboardMac.mm:
2685         (WebCore::writableTypesForImage):
2686         (WebCore::Pasteboard::writeURL): Write the correct types if the url 
2687         is for an image.
2688         (WebCore::fileWrapperForImage):
2689         (WebCore::Pasteboard::writeFileWrapperAsRTFDAttachment):
2690         (WebCore::Pasteboard::writeImage):
2691         * platform/mac/WebCoreNSStringExtras.h: Added. Some the the 
2692         NSStringExtras that were in WebKit are now needed by WebCore. To 
2693         avoid having two copies of these functions, I just moved the 
2694         implementations to WebCore. The WebKit functions just call into 
2695         WebCore.
2696         * platform/mac/WebCoreNSStringExtras.mm: Added.
2697         (hasCaseInsensitiveSuffix):
2698         (hasCaseInsensitiveSubstring):
2699         (filenameByFixingIllegalCharacters):
2700         * platform/mac/WebCoreSystemInterface.h: 
2701         wkGetPreferredExtensionForMIMEType and wkGetExtensionsForMIMEType 
2702         are now needed in WebCore as well as WebKit.
2703         * platform/mac/WebCoreSystemInterface.mm:
2704
2705 2007-02-20  Adam Roben  <aroben@apple.com>
2706
2707         Build fix.
2708
2709         * platform/StringTruncator.cpp:
2710         (WebCore::truncateString): Added explicit casts.
2711
2712 2007-02-20  Adam Roben  <aroben@apple.com>
2713
2714         Reviewed by Darin and Anders.
2715
2716         Fix <rdar://problem/4736215> Make WebCoreStringTruncator use WebCore types
2717
2718         * WebCore.exp: Updated symbols.
2719         * WebCore.xcodeproj/project.pbxproj: Updated file names.
2720         * bridge/mac/WebCoreStringTruncator.h: Removed.
2721         * bridge/mac/WebCoreStringTruncator.mm: Removed.
2722         * platform/StringTruncator.cpp: Added. Moved from bridge/mac/WebCoreStringTruncator.mm.
2723         (WebCore::textBreakAtOrPreceding): Added.
2724         (WebCore::boundedTextBreakFollowing): Added.
2725         (WebCore::centerTruncateToBuffer):
2726         (WebCore::rightTruncateToBuffer):
2727         (WebCore::stringWidth): Now takes a const Font& instead of a Font*.
2728         (WebCore::truncateString):
2729         (WebCore::StringTruncator::centerTruncate):
2730         (WebCore::StringTruncator::rightTruncate):
2731         (WebCore::StringTruncator::width):
2732         * platform/StringTruncator.h: Added.
2733         * platform/TextBreakIterator.h: Added isTextBreak declaration.
2734         * platform/TextBreakIteratorICU.cpp:
2735         (WebCore::isTextBreak): Implemented.
2736         * platform/mac/FileChooserMac.mm:
2737         (WebCore::FileChooser::basenameForWidth): Updated for changes to WebCoreStringTruncator.
2738         * platform/qt/TextBreakIteratorQt.cpp:
2739         (WebCore::isTextBreak): Stubbed out.
2740
2741 2007-02-20  Justin Garcia  <justin.garcia@apple.com>
2742
2743         Reviewed by harrison
2744
2745         <rdar://problem/5006779>
2746         REGRESSION: Paste and Match Style of quoted text onto empty line yields quoted text
2747         
2748         We decided to change the copy/paste behavior in both
2749         the Paste and the Paste and Match Style cases.
2750
2751         * editing/markup.cpp:
2752         (WebCore::createMarkup): Don't add mail blockquote wrappers
2753         unless the user selected one or more paragraphs.
2754
2755 2007-02-20  Timothy Hatcher  <timothy@apple.com>
2756
2757         Reviewed by Mark Rowe.
2758
2759         <rdar://problem/4912899> WebCore project ObjC @property cleanup
2760
2761         * bindings/objc/DOMObject.h: Add the new style @property
2762         * bindings/objc/PublicDOMInterfaces.h: Update to the new style @property
2763         * bindings/scripts/CodeGeneratorObjC.pm: Export both new and old style @properties
2764
2765 2007-02-20  Timothy Hatcher  <timothy@apple.com>
2766
2767         Reviewed by Sam Weinig.
2768
2769         <rdar://problem/5007248> need to export symbols for DOM exception constants
2770
2771         * WebCore.exp: Adds DOMEventException, DOMException, DOMRangeException, DOMXPathException
2772
2773 2007-02-20  Timothy Hatcher  <timothy@apple.com>
2774
2775         Reviewed by Darin.
2776
2777         <rdar://problem/4900579> WebKit -finalize methods are not thread-safe; design change needed
2778
2779         Call WebCoreObjCFinalizeOnMainThread from the initialize method of all the classes
2780         that have a finalizer that needs called on the main thread.
2781
2782         * WebCore.exp:
2783         * WebCore.xcodeproj/project.pbxproj:
2784         * bindings/objc/WebScriptObject.mm:
2785         (+[WebScriptObject initialize]):
2786         * bridge/mac/WebCoreScriptDebugger.mm:
2787         (+[WebCoreScriptDebugger initialize]):
2788         * platform/mac/SharedBufferMac.mm:
2789         (+[SharedBufferData initialize]):
2790         * platform/mac/WebCoreObjCExtras.c: Added.
2791         (WebCoreObjCFinalizeOnMainThread):
2792         * platform/mac/WebCoreObjCExtras.h: Added.
2793
2794 2007-02-20  Geoffrey Garen  <ggaren@apple.com>
2795
2796         Not not reviewed by Mitz Pettel.
2797
2798         Fixed http://bugs.webkit.org/show_bug.cgi?id=12827 | <rdar://problem/5006671> 
2799         REGRESSION: -[DOMCSSStyleDeclaration setValue:forKey:] doesn't have an 
2800         immediate effect
2801         
2802         Let's just pretend this never happened.
2803         
2804         I attempted a layout test but I couldn't get the old code to fail because 
2805         there's no obvious way to isolate the ObjC bindings in a test that's 
2806         controlled by JS.
2807         
2808         * bindings/objc/WebScriptObject.mm:
2809         (_didExecute):
2810
2811 2007-02-20  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
2812
2813         Reviewed by Maciej S.
2814
2815         Gdk build fixes for recent refactorings.
2816
2817         * Projects/gdk/webcore-gdk.bkl:
2818         * WebCoreSources.bkl:
2819         * page/gdk/DragControllerGdk.cpp:
2820         (WebCore::DragController::dragOperation):
2821         (WebCore::DragController::maxDragImageSize):
2822         * page/gdk/EventHandlerGdk.cpp:
2823         (WebCore::EventHandler::createDraggingClipboard):
2824         * platform/DragImage.h:
2825         * platform/gdk/ChromeClientGdk.h:
2826         * platform/gdk/CursorGdk.cpp:
2827         (WebCore::verticalTextCursor):
2828         (WebCore::cellCursor):
2829         (WebCore::contextMenuCursor):
2830         (WebCore::noDropCursor):
2831         (WebCore::copyCursor):
2832         (WebCore::progressCursor):
2833         (WebCore::aliasCursor):
2834         (WebCore::noneCursor):
2835         (WebCore::notAllowedCursor):
2836         * platform/gdk/EditorClientGdk.cpp:
2837         (WebCore::EditorClientGdk::shouldChangeSelectedRange):
2838         (WebCore::EditorClientGdk::isEditable):
2839         (WebCore::EditorClientGdk::textFieldDidBeginEditing):
2840         (WebCore::EditorClientGdk::textFieldDidEndEditing):
2841         (WebCore::EditorClientGdk::textDidChangeInTextField):
2842         (WebCore::EditorClientGdk::doTextFieldCommandFromEvent):
2843         (WebCore::EditorClientGdk::textWillBeDeletedInTextField):
2844         (WebCore::EditorClientGdk::textDidChangeInTextArea):
2845         * platform/gdk/EditorClientGdk.h:
2846         * platform/gdk/FrameGdk.cpp:
2847         (WebCore::Frame::print):
2848         (WebCore::Frame::issueTransposeCommand):
2849         (WebCore::Frame::respondToChangedSelection):
2850         (WebCore::Frame::cleanupPlatformScriptObjects):
2851         (WebCore::Frame::isCharacterSmartReplaceExempt):
2852         (WebCore::Frame::dragImageForSelection):
2853         * platform/gdk/FrameGdk.h:
2854         * platform/gdk/MimeTypeRegistryGdk.cpp: Added.
2855         * platform/gdk/TemporaryLinkStubs.cpp:
2856         (ChromeClientGdk::tabsToLinks):
2857         (ChromeClientGdk::windowResizerRect):
2858         (ChromeClientGdk::addToDirtyRegion):
2859         (ChromeClientGdk::scrollBackingStore):
2860         (ChromeClientGdk::updateBackingStore):
2861         * webcore-base.bkl:
2862
2863 2007-02-20  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
2864
2865         Reviewed by Darin.
2866
2867         Allow over-writting Product, ProductSub, Vendor and VendorSub
2868         js properties via #define WEBCORE_NAVIGATOR_*
2869
2870         * bindings/js/kjs_navigator.cpp:
2871         (KJS::Navigator::getValueProperty):
2872
2873 2007-02-20  Darin Adler  <darin@apple.com>
2874
2875         Reviewed by Anders.
2876
2877         - prepare to fix some "stop loading" bugs by moving state from the
2878           FrameLoader class to the DocumentLoader class
2879
2880         * WebCore.exp: Update since cancelMainResourceLoad is now on the document loader.
2881
2882         * html/HTMLDocument.h:
2883         * html/HTMLDocument.cpp:
2884         (WebCore::HTMLDocument::HTMLDocument): Removed unused bodyElement and htmlElement
2885         data members.
2886         (WebCore::HTMLDocument::lastModified): Call getResponseModifiedHeader directly on
2887         the document loader.
2888
2889         * loader/DocumentLoader.h: Moved m_mainResourceLoader, m_subresourceLoaders, and
2890         m_plugInStreamLoaders here.
2891         * loader/DocumentLoader.cpp:
2892         (WebCore::cancelAll): Moved here from FrameLoader.
2893         (WebCore::setAllDefersLoading): Ditto.
2894         (WebCore::DocumentLoader::mainResourceData): Moved the body of FrameLoader's
2895         mainResourceData function here.
2896         (WebCore::DocumentLoader::stopLoading): Replaced calls to hasMainResourceLoader
2897         and cancelMainResourceLoad with code that works directly on m_mainResourceLoader.
2898         Call the stop functions moved from FrameLoader here on ourselves.
2899         (WebCore::DocumentLoader::setupForReplaceByMIMEType): Ditto.
2900         (WebCore::DocumentLoader::setPrimaryLoadComplete): Moved the code to store the
2901         main resource data here; it doesn't require separate functions.
2902         (WebCore::DocumentLoader::isLoadingInAPISense): Removed call to isLoadingSubresources
2903         and instead just check if the m_subresourceLoaders set is empty.
2904         (WebCore::DocumentLoader::setDefersLoading): Moved code here from FrameLoader.
2905         (WebCore::DocumentLoader::stopLoadingPlugIns): Ditto.
2906         (WebCore::DocumentLoader::stopLoadingSubresources): Ditto.
2907         (WebCore::DocumentLoader::addSubresourceLoader): Ditto.
2908         (WebCore::DocumentLoader::removeSubresourceLoader): Ditto.
2909         (WebCore::DocumentLoader::addPlugInStreamLoader): Ditto.
2910         (WebCore::DocumentLoader::removePlugInStreamLoader): Ditto.
2911         (WebCore::DocumentLoader::isLoadingSubresources): Ditto.
2912         (WebCore::DocumentLoader::isLoadingPlugIns): Ditto.
2913         (WebCore::DocumentLoader::startLoadingMainResource): Ditto.
2914         (WebCore::DocumentLoader::cancelMainResourceLoad): Ditto.
2915
2916         * loader/FrameLoader.h: Removed stopLoadingPlugIns, stopLoadingSubresources,
2917         cancelMainResourceLoad, hasMainResourceLoader, isLoadingSubresources,
2918         mainResourceData, releaseMainResourceLoader, lastModified, startLoadingMainResource,
2919         isLoadingPlugIns, m_mainResourceLoader, m_subresourceLoaders, m_plugInStreamLoaders,
2920         m_responseRefreshHeader, and m_responseModifiedHeader.
2921         * loader/FrameLoader.cpp:
2922         (WebCore::FrameLoader::setDefersLoading): Call setDefersLoading on all the document
2923         loaders.
2924         (WebCore::FrameLoader::stopLoading): Get rid of code to set m_responseRefreshHeader
2925         and m_responseModifiedHeader.
2926         (WebCore::FrameLoader::receivedFirstData): Call httpHeaderField on the response
2927         here to get the Refresh, instead of storing it in a data member.
2928         (WebCore::FrameLoader::addPlugInStreamLoader): Change to just call this on the
2929         document loader.
2930         (WebCore::FrameLoader::removePlugInStreamLoader): Ditto.
2931         (WebCore::FrameLoader::isLoading): Change to call isLoadingSubresources and
2932         isLoadingPlugIns on the document loader.
2933         (WebCore::FrameLoader::addSubresourceLoader): Change to just call this on the
2934         document loader.
2935         (WebCore::FrameLoader::removeSubresourceLoader): Ditto.
2936         (WebCore::FrameLoader::commitProvisionalLoad): Call stopLoadingSubresources and
2937         stopLoadingPlugIns on the document loader. Removed code to set
2938         m_responseModifiedHeader.
2939         (WebCore::FrameLoader::startLoading): Call isLoadingMainResource and
2940         startLoadingMainResource on the document loader.
2941
2942         * loader/ImageDocument.cpp: (WebCore::ImageTokenizer::finish): Call
2943         mainResourceData() on the document loader instead of the frame loader.
2944
2945         - other changes
2946
2947         * loader/DocLoader.cpp:
2948         (WebCore::DocLoader::checkCacheObjectStatus): Fixed indentation.
2949
2950 2007-02-20  Zack Rusin  <zrusin@trolltech.com>
2951
2952         Reviewed by Lars
2953
2954         Fix focus handling and make the forms
2955         work as expected.
2956
2957         * platform/qt/ScrollViewQt.cpp:
2958         (WebCore::ScrollView::setScrollArea):
2959         * platform/qt/WidgetQt.cpp:
2960         (WebCore::WidgetPrivate::WidgetPrivate):
2961         (WebCore::WidgetPrivate::canvas):
2962         (WebCore::Widget::hasFocus):
2963         (WebCore::Widget::setFocus):
2964         (WebCore::Widget::clearFocus):
2965         (WebCore::Widget::setFont):
2966         (WebCore::Widget::setQWidget):
2967         (WebCore::Widget::focusPolicy):
2968
2969 2007-02-20  Mitz Pettel  <mitz@webkit.org>
2970
2971         Reviewed by Darin and then Sam.
2972
2973         - fix http://bugs.webkit.org/show_bug.cgi?id=10735
2974           Clicking in SVG results causes WebKit to consume 100% CPU for several minutes
2975
2976         No test since there is no change in functionality.
2977
2978         * CMakeLists.txt:
2979         * WebCore.pro:
2980         * WebCore.xcodeproj/project.pbxproj: Added PositionIterator.{cpp,h}.
2981         * WebCoreSources.bkl:
2982         * dom/Position.cpp:
2983         (WebCore::Position::Position): Added converting constructor from
2984         PositionIterator.
2985         (WebCore::Position::previous): Changed assert() to ASSERT().
2986         (WebCore::Position::next): Ditto.
2987         (WebCore::isStreamer): Changed the argument to a PositionIterator.
2988         (WebCore::Position::upstream): Changed to use PositionIterator.
2989         (WebCore::Position::downstream): Ditto.
2990         (WebCore::Position::inRenderedText): Made public.
2991         (WebCore::Position::hasRenderedNonAnonymousDescendantsWithHeight): Changed
2992         into a static member function.
2993         (WebCore::Position::nodeIsUserSelectNone): Ditto.
2994         * dom/Position.h:
2995         * dom/PositionIterator.cpp: Added. A Position iterator with constant-time
2996         increment, decrement, and several predicates on the Position it is at.
2997         Conversion to/from Position is O(n) in the offset.
2998         (WebCore::PositionIterator::increment):
2999         (WebCore::PositionIterator::decrement):
3000         (WebCore::PositionIterator::atStart):
3001         (WebCore::PositionIterator::atEnd):
3002         (WebCore::PositionIterator::atStartOfNode):
3003         (WebCore::PositionIterator::atEndOfNode):
3004         (WebCore::PositionIterator::isCandidate):
3005         * dom/PositionIterator.h: Added.
3006         (WebCore::PositionIterator::PositionIterator):
3007         (WebCore::PositionIterator::node):
3008         (WebCore::PositionIterator::offsetInLeafNode):
3009         * editing/htmlediting.cpp:
3010         (WebCore::nextCandidate): Changed to use PositionIterator.
3011         (WebCore::previousCandidate): Changed to use PositionIterator.
3012
3013 2007-02-20  Rob Buis  <buis@kde.org>
3014
3015         Reviewed by Darin.
3016
3017         http://bugs.webkit.org/show_bug.cgi?id=12439
3018         SVG parser complains about points attribute in polygon and polyline element
3019
3020         Return true when the parsed points specification is valid.
3021
3022         * ksvg2/svg/SVGParserUtilities.cpp:
3023         (WebCore::parseNumber):
3024         (WebCore::SVGPolyParser::parsePoints):
3025         * ksvg2/svg/SVGPolyElement.cpp:
3026         (WebCore::SVGPolyElement::parseMappedAttribute):
3027
3028 2007-02-20  Zack Rusin  <zrusin@trolltech.com>
3029
3030         Reviewed by Lars
3031
3032         Make editing of forms work plus make sure that non-void methods
3033         always return something.
3034
3035         * WebCore.pro:
3036         * loader/qt/DocumentLoaderQt.cpp:
3037         (WebCore::DocumentLoader::getResponseModifiedHeader):
3038         * platform/qt/ClipboardQt.cpp:
3039         (WebCore::ClipboardQt::setData):
3040
3041 2007-02-20  Zack Rusin  <zrusin@trolltech.com>
3042
3043         Reviewed by Lars
3044
3045         Refactor and fix the implementation of theming of
3046         form elements on the Qt platform.
3047
3048         * platform/qt/RenderThemeQt.cpp:
3049         (WebCore::theme):
3050         (WebCore::RenderThemeQt::RenderThemeQt):
3051         (WebCore::RenderThemeQt::supportsHover):
3052         (WebCore::RenderThemeQt::supportsFocusRing):
3053         (WebCore::RenderThemeQt::baselinePosition):
3054         (WebCore::RenderThemeQt::controlSupportsTints):
3055         (WebCore::RenderThemeQt::supportsControlTints):
3056         (WebCore::RenderThemeQt::adjustRepaintRect):
3057         (WebCore::RenderThemeQt::paintResizeControl):
3058         (WebCore::RenderThemeQt::platformActiveSelectionBackgroundColor):
3059         (WebCore::RenderThemeQt::platformInactiveSelectionBackgroundColor):
3060         (WebCore::RenderThemeQt::platformActiveSelectionForegroundColor):
3061         (WebCore::RenderThemeQt::platformInactiveSelectionForegroundColor):
3062         (WebCore::RenderThemeQt::systemFont):
3063         (WebCore::RenderThemeQt::minimumMenuListSize):
3064         (WebCore::RenderThemeQt::adjustSliderThumbSize):
3065         (WebCore::RenderThemeQt::paintCheckbox):
3066         (WebCore::RenderThemeQt::paintRadio):
3067         (WebCore::RenderThemeQt::setRadioSize):
3068         (WebCore::RenderThemeQt::adjustButtonStyle):
3069         (WebCore::RenderThemeQt::setButtonSize):
3070         (WebCore::RenderThemeQt::adjustTextFieldStyle):
3071         (WebCore::RenderThemeQt::adjustMenuListStyle):
3072         (WebCore::RenderThemeQt::paintMenuList):
3073         (WebCore::RenderThemeQt::paintMenuListButton):
3074         (WebCore::RenderThemeQt::adjustMenuListButtonStyle):
3075         (WebCore::RenderThemeQt::paintSliderTrack):
3076         (WebCore::RenderThemeQt::paintSliderThumb):
3077         (WebCore::RenderThemeQt::paintSearchField):
3078         (WebCore::RenderThemeQt::adjustSearchFieldStyle):
3079         (WebCore::RenderThemeQt::adjustSearchFieldCancelButtonStyle):
3080         (WebCore::RenderThemeQt::paintSearchFieldCancelButton):
3081         (WebCore::RenderThemeQt::adjustSearchFieldDecorationStyle):
3082         (WebCore::RenderThemeQt::paintSearchFieldDecoration):
3083         (WebCore::RenderThemeQt::adjustSearchFieldResultsDecorationStyle):
3084         (WebCore::RenderThemeQt::paintSearchFieldResultsDecoration):
3085         (WebCore::RenderThemeQt::supportsFocus):
3086         (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
3087         (WebCore::RenderThemeQt::applyTheme):
3088         (WebCore::RenderThemeQt::setSizeFromFont):
3089         (WebCore::RenderThemeQt::sizeForFont):
3090         (WebCore::RenderThemeQt::setButtonPadding):
3091         (WebCore::RenderThemeQt::setPopupPadding):
3092         (WebCore::RenderThemeQt::setPrimitiveSize):
3093         * platform/qt/RenderThemeQt.h: Added.
3094
3095 2007-02-19  Lars Naesbye Christensen <lars@naesbye.dk>
3096
3097         Reviewed by Maciej.
3098
3099         http://bugs.webkit.org/show_bug.cgi?id=12815
3100         Two image files not included in project file
3101
3102         * WebCore.xcodeproj/project.pbxproj: Added crossHairCursor.png and
3103         notAllowedCursor.png.
3104
3105 2007-02-19  Geoffrey Garen  <ggaren@apple.com>
3106
3107         Reviewed by Adam Roben.
3108
3109         Fixed some leaks in RenderThemeMac.
3110         
3111         No test case because 'leaks' can't detect these leaks inside DRT, even if
3112         DRT forces the WebView to paint. ('leaks' can detect these leaks inside
3113         Safari. Weird.)
3114         
3115         * rendering/RenderThemeMac.h:
3116             - Renamed data members to m_*, to match our style guidelines.
3117             - Renamed *Is* to is**, to match our style guidelines.
3118             - Removed a few unnecessary data members.
3119             - Made cached values like m_checkbox mutable, since they can change
3120             inside functions that don't change the logical state of a RenderTheme
3121             object. (The alternative was to make some const functions non-const.)
3122
3123         (WebCore::RenderThemeMac::paintMenuList): Took CFType pointers that just 
3124         used to leak and placed them in RetainPtrs.
3125         (WebCore::RenderThemeMac::paintMenuListButtonGradients): ditto
3126
3127         Factored inline implementations of lazy initialization into these accessor
3128         functions, for better encapsulation:
3129         
3130         (WebCore::RenderThemeMac::checkbox):
3131         (WebCore::RenderThemeMac::radio):
3132         (WebCore::RenderThemeMac::button):
3133         (WebCore::RenderThemeMac::popupButton):
3134         (WebCore::RenderThemeMac::search):
3135         (WebCore::RenderThemeMac::sliderThumbHorizontal): The inline version of
3136         this initialization used to confuse the retained data member with a local
3137         stack value, causing both a leak and a failure to initialize. Fixed now.
3138         (WebCore::RenderThemeMac::sliderThumbVertical): ditto
3139         (WebCore::RenderThemeMac::resizeCornerImage):
3140
3141 2007-02-19  Mitz Pettel  <mitz@webkit.org>
3142
3143         Reviewed by Hyatt.
3144
3145         - fix http://bugs.webkit.org/show_bug.cgi?id=12817
3146           REGRESSION (r18634): Table border-collapse problems with right margin
3147
3148         Test: fast/repaint/table-outer-border.html
3149
3150         * rendering/RenderTable.cpp:
3151         (WebCore::RenderTable::layout): Reordered to initialize horizontal overflow
3152         after table sections have computed their outer horizontal borders.
3153
3154 2007-02-19  John Sullivan  <sullivan@apple.com>
3155
3156         Reviewed by Darin
3157         
3158         - fixed <rdar://problem/4613701> REGRESSION: A line break in the source HTML of a link becomes visible after drag & drop
3159
3160         * page/DragController.cpp:
3161         (WebCore::DragController::startDrag):
3162         Call simplifyWhiteSpace() on the proposed link title to match what's displayed on the web page, instead of using the
3163         raw source HTML text.
3164
3165 2007-02-19  David Hyatt  <hyatt@apple.com>
3166
3167         Fix for Radar 4981605, regression where button grows randomly when a select is
3168         opened.  With the new form controls, the WinIE quirk for using line width
3169         ended up being used for them more.
3170
3171         This patch removes the quirk after verifying that Firefox doesn't implement
3172         the quirk at all.  usesLineWidth is being renamed to shrinksToAvoidFloats to
3173         make it clear that the new method only applies to block objects that avoid floats
3174         and that have auto width.
3175
3176         Also fixed a regression where whitespace after a floating <select> at the start
3177         of a block got incorrectly rendered.  Make sure skipWhitespace always skips
3178         through floating/positioned elements regardless of the whitespace setting (this
3179         way the white-space:pre value on floating <select>s doesn't cause trouble).
3180
3181         Reviewed by darin
3182
3183         fast/block/float/float-avoidance.html
3184
3185         * rendering/RenderBlock.cpp:
3186         (WebCore::RenderBlock::collapseMargins):
3187         (WebCore::RenderBlock::clearFloatsIfNeeded):
3188         (WebCore::RenderBlock::layoutBlockChildren):
3189         (WebCore::RenderBlock::markAllDescendantsWithFloatsForLayout):
3190         * rendering/RenderBox.cpp:
3191         (WebCore::RenderBox::containingBlockWidth):
3192         * rendering/RenderObject.cpp:
3193         (WebCore::RenderObject::shrinkToAvoidFloats):
3194         * rendering/RenderObject.h:
3195         * rendering/bidi.cpp:
3196         (WebCore::RenderBlock::skipWhitespace):
3197
3198 2007-02-19  Zalan Bujtas  <zbujtas@gmail.com>
3199
3200         Reviewed by Darin.
3201
3202         Update stylesheet href, when document's baseUrl changes. It needs
3203         update when the stylesheet is constructed before the parser hits the base tag.
3204         http://bugs.webkit.org/show_bug.cgi?id=12214
3205
3206         * css/StyleSheet.h:
3207         (WebCore::StyleSheet::setHref):
3208         * dom/Document.cpp:
3209         (WebCore::Document::setBaseURL):
3210         * dom/Document.h:
3211
3212 2007-02-19  Mitz Pettel  <mitz@webkit.org>
3213
3214         Reviewed by Adam.
3215
3216         - fix http://bugs.webkit.org/show_bug.cgi?id=11518
3217           REGRESSION (r14376): View Source not available after Back navigation from a non-HTML page
3218
3219         The FrameLoader's responseMIMEType was not being updated when a page was
3220         brought back from the page cache.
3221         
3222         Moved the line that updates the MIME type from commitProvisionalLoad() to
3223         transitionToCommitted().
3224
3225         * loader/FrameLoader.cpp:
3226         (WebCore::FrameLoader::commitProvisionalLoad):
3227         (WebCore::FrameLoader::transitionToCommitted):
3228
3229 2007-02-19  Anders Carlsson  <acarlsson@apple.com>
3230
3231         Reviewed by Oliver.
3232
3233         Make DragController::maxDragImageSize a function to get rid of the global initializer.
3234         
3235         * page/DragController.cpp:
3236         (WebCore::DragController::doImageDrag):
3237         * page/DragController.h:
3238         * page/mac/DragControllerMac.mm:
3239         (WebCore::DragController::maxDragImageSize):
3240         * page/qt/DragControllerQt.cpp:
3241         (WebCore::DragController::maxDragImageSize):
3242
3243 2007-02-19  Darin Adler  <darin@apple.com>
3244
3245         Reviewed by Hyatt.
3246
3247         - <rdar://problem/5006414> REGRESSION: Crash occurs at WebCore::Frame::loader()
3248           when loading AFL Ladder widget
3249
3250         * html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::openURL):
3251         Add missing null check so this fails without crashing when called on an element
3252         that's no longer in a frame.
3253
3254 2007-02-19  Antti Koivisto  <antti@apple.com>
3255
3256         Reviewed by Mitz.
3257
3258         - fix for http://bugs.webkit.org/show_bug.cgi?id=10990
3259           REGRESSION: Pressing a pop-up's access key doesn't focus it
3260           <rdar://problem/4823138>
3261           
3262         Focus the select element too in accessKeyAction.
3263
3264         * html/HTMLSelectElement.cpp:
3265         (WebCore::HTMLSelectElement::accessKeyAction):
3266
3267 2007-02-18  Antti Koivisto  <antti@apple.com>
3268
3269         Reviewed by Hyatt.
3270
3271         - really fix http://bugs.webkit.org/show_bug.cgi?id=11974
3272         REGRESSION: Caret drawn over input when smaller than font size on initial focus
3273         <rdar://problem/4960258>
3274         
3275         Avoid double painting caret when it is on a block element.
3276         
3277         Layout test for this already went in previous try (it only fails in pixel mode) in r19626.
3278
3279         * rendering/RenderBlock.cpp:
3280         (WebCore::RenderBlock::paintCaret):
3281
3282 2007-02-19  Lars Knoll <lars@trolltech.com>
3283
3284         Added a one line patch from Olliej to create the
3285         clipboard on demand (to stop things from crashing), 
3286         and added lots of notImplemented() warnings all 
3287         over the place.
3288
3289         * platform/qt/ClipboardQt.cpp:
3290         (WebCore::ClipboardQt::ClipboardQt):
3291         (WebCore::ClipboardQt::clearData):
3292         (WebCore::ClipboardQt::clearAllData):
3293         (WebCore::ClipboardQt::getData):
3294         (WebCore::ClipboardQt::setData):
3295         (WebCore::ClipboardQt::types):
3296         (WebCore::ClipboardQt::dragLocation):
3297         (WebCore::ClipboardQt::dragImage):
3298         (WebCore::ClipboardQt::setDragImage):
3299         (WebCore::ClipboardQt::dragImageElement):
3300         (WebCore::ClipboardQt::setDragImageElement):
3301         (WebCore::ClipboardQt::createDragImage):
3302         (WebCore::ClipboardQt::declareAndWriteDragImage):
3303         (WebCore::ClipboardQt::writeURL):
3304         (WebCore::ClipboardQt::writeRange):
3305         (WebCore::ClipboardQt::hasData):
3306         * platform/qt/DragDataQt.cpp:
3307         (WebCore::DragData::canSmartReplace):
3308         (WebCore::DragData::containsColor):
3309         (WebCore::DragData::containsPlainText):
3310         (WebCore::DragData::asPlainText):
3311         (WebCore::DragData::asColor):
3312         (WebCore::DragData::createClipboard):
3313         (WebCore::DragData::containsCompatibleContent):
3314         (WebCore::DragData::containsURL):
3315         (WebCore::DragData::asURL):
3316         (WebCore::DragData::asFragment):
3317
3318 2007-02-19  Lars Knoll <lars@trolltech.com>
3319
3320         Compile again.
3321
3322         * platform/qt/ClipboardQt.cpp:
3323         (WebCore::ClipboardQt::types):
3324
3325 2007-02-17  Lars Knoll <lars@trolltech.com>
3326
3327         Reviewed by Maciej.
3328         
3329         Additional coding by Maciej, additional review by Oliver.
3330
3331         Get rid of the FrameMac and FrameQt classes. Instead
3332         move all methods into Frame directly, and implement
3333         some platform specific methods in foo/FrameFoo.cpp.
3334
3335         Some general cleanup in Frame:
3336         * Move some methods out of Frame, to the place where they 
3337         belong.
3338         * Unify the different ways of creating the JavaScript wrappers
3339         for <object>, <embed> and <applet>
3340         * Some cleanup of the WebCoreFrameBridge
3341
3342         * ForwardingHeaders/bindings/NP_jsobject.h: Added.
3343         * ForwardingHeaders/bindings/npruntime_impl.h: Added.
3344         * ForwardingHeaders/bindings/runtime_root.h: Added.
3345         * WebCore.exp:
3346         * WebCore.xcodeproj/project.pbxproj:
3347         * bindings/js/kjs_binding.cpp:
3348         (KJS::ScriptInterpreter::shouldInterruptScript):
3349         * bindings/objc/DOM.mm:
3350         (-[DOMNode KJS::Bindings::]):
3351         * bindings/objc/DOMInternal.mm:
3352         (-[WebScriptObject _initializeScriptDOMNodeImp]):
3353         * bridge/EditorClient.h:
3354         * bridge/mac/FrameViewMac.mm:
3355         (WebCore::FrameView::updateBorder):
3356         (WebCore::FrameView::updateDashboardRegions):
3357         * bridge/mac/WebCoreAXObject.mm:
3358         (-[WebCoreAXObject rendererForView:]):
3359         * dom/Position.cpp:
3360         (WebCore::Position::next):
3361         * editing/CommandByName.cpp:
3362         (WebCore::Frame::execCopy):
3363         (WebCore::Frame::execCut):
3364         (WebCore::Frame::execPaste):
3365         * editing/Editor.cpp:
3366         (WebCore::Editor::canEdit):
3367         (WebCore::Editor::pasteWithPasteboard):
3368         (WebCore::Editor::paste):
3369         (WebCore::Editor::pasteAsPlainText):
3370         * editing/Editor.h:
3371         * editing/JSEditor.cpp:
3372         * html/HTMLAppletElement.cpp:
3373         (WebCore::HTMLAppletElement::getInstance):
3374         * html/HTMLEmbedElement.cpp:
3375         (WebCore::HTMLEmbedElement::getInstance):
3376         * html/HTMLFormElement.cpp:
3377         (WebCore::HTMLFormElement::formData):
3378         * html/HTMLObjectElement.cpp:
3379         (WebCore::HTMLObjectElement::getInstance):
3380         * loader/FrameLoader.cpp:
3381         (WebCore::FrameLoader::clear):
3382         (WebCore::FrameLoader::detachFromParent):
3383         * loader/mac/ImageDocumentMac.mm:
3384         (WebCore::finishImageLoad):
3385         * loader/qt/DocumentLoaderQt.cpp:
3386         * page/Chrome.cpp:
3387         (WebCore::Chrome::shouldInterruptJavaScript):
3388         * page/Chrome.h:
3389         * page/ChromeClient.h:
3390         * page/Frame.cpp:
3391         (WebCore::Frame::~Frame):
3392         (WebCore::Frame::markedTextRange):
3393         (WebCore::Frame::shouldChangeSelection):
3394         (WebCore::Frame::shouldDeleteSelection):
3395         (WebCore::Frame::isContentEditable):
3396         (WebCore::Frame::setSecureKeyboardEntry):
3397         (WebCore::Frame::isSecureKeyboardEntry):
3398         (WebCore::Frame::bindingRootObject):
3399         (WebCore::Frame::createRootObject):
3400         (WebCore::Frame::windowScriptNPObject):
3401         (WebCore::Frame::cleanupScriptObjects):
3402         (WebCore::FramePrivate::FramePrivate):
3403         * page/Frame.h:
3404         * page/FramePrivate.h:
3405         * page/FrameView.h:
3406         * page/mac/EventHandlerMac.mm:
3407         (WebCore::EventHandler::tabsToLinks):
3408         (WebCore::EventHandler::tabsToAllControls):
3409         (WebCore::EventHandler::focusDocumentView):
3410         (WebCore::EventHandler::passMouseDownEventToWidget):
3411         (WebCore::EventHandler::handleDrag):
3412         (WebCore::EventHandler::sendFakeEventsAfterWidgetTracking):
3413         (WebCore::EventHandler::keyboardUIMode):
3414         * page/mac/FrameMac.h: Removed.
3415         * page/mac/FrameMac.mm:
3416         (WebCore::Frame::setBridge):
3417         (WebCore::Frame::bridge):
3418         (WebCore::Frame::searchForLabelsAboveCell):
3419         (WebCore::Frame::searchForLabelsBeforeElement):
3420         (WebCore::Frame::matchLabelsAgainstElement):
3421         (WebCore::Frame::focusWindow):
3422         (WebCore::Frame::unfocusWindow):
3423         (WebCore::Frame::imageFromRect):
3424         (WebCore::Frame::selectionImage):
3425         (WebCore::Frame::snapshotDragImage):
3426         (WebCore::Frame::fontAttributesForSelectionStart):
3427         (WebCore::Frame::baseWritingDirectionForSelectionStart):
3428         (WebCore::Frame::print):
3429         (WebCore::Frame::issuePasteCommand):
3430         (WebCore::Frame::issueTransposeCommand):
3431         (WebCore::Frame::respondToChangedSelection):
3432         (WebCore::Frame::textFieldDidBeginEditing):
3433         (WebCore::Frame::textFieldDidEndEditing):
3434         (WebCore::Frame::textDidChangeInTextField):
3435         (WebCore::Frame::textDidChangeInTextArea):
3436         (WebCore::Frame::doTextFieldCommandFromEvent):
3437         (WebCore::Frame::textWillBeDeletedInTextField):
3438         (WebCore::Frame::setSecureKeyboardEntry):
3439         (WebCore::Frame::isSecureKeyboardEntry):
3440         (WebCore::Frame::setMarkedTextRange):
3441         (WebCore::Frame::dashboardRegionsDictionary):
3442         (WebCore::Frame::dashboardRegionsChanged):
3443         (WebCore::Frame::willPopupMenu):
3444         (WebCore::Frame::isCharacterSmartReplaceExempt):
3445         (WebCore::Frame::setNeedsReapplyStyles):
3446         (WebCore::Frame::customHighlightLineRect):
3447         (WebCore::Frame::paintCustomHighlight):
3448         (WebCore::Frame::createScriptInstanceForWidget):
3449         (WebCore::Frame::windowScriptObject):
3450         (WebCore::Frame::cleanupPlatformScriptObjects):
3451         * page/mac/WebCoreFrameBridge.h:
3452         * page/mac/WebCoreFrameBridge.mm:
3453         (createRootObject):
3454         (bridge):
3455         (-[WebCoreFrameBridge _frame]):
3456         * page/qt/EventHandlerQt.cpp:
3457         * page/qt/FrameQt.cpp:
3458         (WebCore::Frame::unfocusWindow):
3459         (WebCore::Frame::focusWindow):
3460         (WebCore::Frame::issueTransposeCommand):
3461         (WebCore::Frame::respondToChangedSelection):
3462         (WebCore::Frame::print):
3463         (WebCore::Frame::createScriptInstanceForWidget):
3464         (WebCore::Frame::cleanupPlatformScriptObjects):
3465         (WebCore::Frame::isCharacterSmartReplaceExempt):
3466         * page/qt/FrameQt.h: Removed.
3467         * platform/MimeTypeRegistry.h:
3468         * platform/graphics/svg/SVGImage.cpp:
3469         (WebCore::SVGImage::setData):
3470         * platform/graphics/svg/SVGImageEmptyClients.h:
3471         (WebCore::SVGEmptyChromeClient::shouldInterruptJavaScript):
3472         (WebCore::SVGEmptyEditorClient::shouldChangeSelectedRange):
3473         * platform/mac/ClipboardMac.h:
3474         * platform/mac/ClipboardMac.mm:
3475         (WebCore::ClipboardMac::ClipboardMac):
3476         * platform/mac/FileChooserMac.mm:
3477         (-[OpenPanelController beginSheetWithFrame:]):
3478         * platform/mac/MimeTypeRegistryMac.mm:
3479         (WebCore::MimeTypeRegistry::getMIMETypeForPath):
3480         * platform/mac/PopupMenuMac.mm:
3481         (WebCore::PopupMenu::show):
3482         * platform/mac/WidgetMac.mm:
3483         (WebCore::Widget::setFocus):
3484         (WebCore::Widget::setIsSelected):
3485         * platform/network/mac/ResourceHandleMac.mm:
3486         * platform/network/qt/ResourceHandleManagerQt.cpp:
3487         * platform/network/qt/ResourceHandleQt.cpp:
3488         (WebCore::ResourceHandle::start):
3489         * platform/qt/MimeTypeRegistryQt.cpp:
3490         (WebCore::MimeTypeRegistry::getMIMETypeForPath):
3491         * platform/qt/PopupMenuQt.cpp:
3492         * platform/qt/ScrollViewCanvasQt.cpp:
3493         * platform/qt/ScrollViewQt.cpp:
3494         * platform/win/TemporaryLinkStubs.cpp:
3495         * rendering/InlineTextBox.cpp:
3496         (WebCore::InlineTextBox::paintCustomHighlight):
3497         * rendering/RenderBox.cpp:
3498         (WebCore::RenderBox::paintCustomHighlight):
3499         * rendering/RootInlineBox.cpp:
3500         (WebCore::RootInlineBox::addHighlightOverflow):
3501         (WebCore::RootInlineBox::paintCustomHighlight):
3502
3503 2007-02-18  Oliver Hunt  <oliver@apple.com>
3504
3505         Reviewed by NOBODY (Buildfix).
3506
3507         Oops, missed a 'const'
3508
3509         * platform/qt/ClipboardQt.h:
3510
3511 2007-02-18  Oliver Hunt  <oliver@apple.com>
3512
3513         Reviewed by Adam.
3514
3515         Adding stubbed out implementation of Clipboard for Qt to stop
3516         it crashing whenever someone drags the mouse.
3517
3518         * WebCore.pro:
3519         * page/qt/EventHandlerQt.cpp:
3520         (WebCore::EventHandler::createDraggingClipboard):
3521         * platform/qt/ClipboardQt.cpp: Added.
3522         (WebCore::ClipboardQt::ClipboardQt):
3523         (WebCore::ClipboardQt::clearData):
3524         (WebCore::ClipboardQt::clearAllData):
3525         (WebCore::ClipboardQt::getData):
3526         (WebCore::ClipboardQt::setData):
3527         (WebCore::ClipboardQt::types):
3528         (WebCore::ClipboardQt::dragLocation):
3529         (WebCore::ClipboardQt::dragImage):
3530         (WebCore::ClipboardQt::setDragImage):
3531         (WebCore::ClipboardQt::dragImageElement):
3532         (WebCore::ClipboardQt::setDragImageElement):
3533         (WebCore::ClipboardQt::createDragImage):
3534         (WebCore::ClipboardQt::declareAndWriteDragImage):
3535         (WebCore::ClipboardQt::writeURL):
3536         (WebCore::ClipboardQt::writeRange):
3537         (WebCore::ClipboardQt::hasData):
3538         * platform/qt/ClipboardQt.h: Added.
3539         (WebCore::ClipboardQt::~ClipboardQt):
3540         (WebCore::ClipboardQt::isForDragging):
3541
3542 2007-02-18  Oliver Hunt  <oliver@apple.com>
3543
3544         Reviewed by Adam.
3545
3546         Don't even attempt to do a document based drag if there isn't a document
3547         Fixes rdar://problem/4960109
3548
3549         * page/DragController.cpp:
3550         (WebCore::DragController::tryDocumentDrag):  
3551            Null check m_document
3552         (WebCore::DragController::tryDHTMLDrag):
3553            ASSERT(m_document) -- tryDocumentDrag is the only 
3554            thing that will ever call us, but lets play it safe
3555
3556 2007-02-18  Adam Roben  <aroben@apple.com>
3557
3558         Reviewed by Hyatt.