<rdar://problem/5071781> window.mouseout events are not sent to window when mouse...
[WebKit-https.git] / WebCore / ChangeLog
1 2007-12-12  Oliver Hunt  <oliver@apple.com>
2
3         Reviewed by Maciej.
4
5         <rdar://problem/5071781> window.mouseout events are not sent 
6         to window when mouse moves out of window 
7
8         Make PlatformMouseEvent recognise WM_MOUSELEAVE.
9
10         * platform/win/PlatformMouseEventWin.cpp:
11         (WebCore::messageToEventType):
12         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
13
14 2007-12-12  Sam Weinig  <sam@webkit.org>
15
16         Fix Mac release build.
17
18         * WebCore.base.exp:
19
20 2007-12-12  Sam Weinig  <sam@webkit.org>
21
22         Build fix for Qt, Gtk, and Wx.
23
24         * css/CSSParser.cpp:
25         (WebCore::CSSParser::parseValue):
26         * loader/win/FrameLoaderWin.cpp:
27         (WebCore::FrameLoader::urlSelected):
28         * platform/network/curl/ResourceHandleManager.cpp:
29         (WebCore::parseDataUrl):
30         (WebCore::ResourceHandleManager::startJob):
31         * platform/network/win/CookieJarWin.cpp:
32         (WebCore::setCookies):
33         (WebCore::cookies):
34         * platform/network/win/ResourceHandleWin.cpp:
35         (WebCore::ResourceHandle::start):
36         * platform/qt/PasteboardQt.cpp:
37         (WebCore::Pasteboard::writeURL):
38
39 2007-12-11  Dan Bernstein  <mitz@apple.com>
40
41         Reviewed by Maciej Stachowiak.
42
43         - allow non-integer font sizes on Windows for small caps
44
45         * platform/graphics/win/FontDataWin.cpp:
46         (WebCore::FontData::smallCapsFontData):
47         * platform/graphics/win/FontPlatformData.h:
48         (WebCore::FontPlatformData::size):
49         (WebCore::FontPlatformData::setSize):
50         * platform/graphics/win/FontPlatformDataWin.cpp:
51         (WebCore::FontPlatformData::FontPlatformData):
52
53 2007-12-11  Sam Weinig  <sam@webkit.org>
54
55         Build fix for Qt, Gtk, and Wx.
56
57         * platform/gtk/CookieJarGtk.cpp:
58         (WebCore::setCookies):
59         (WebCore::cookies):
60         * platform/qt/ClipboardQt.cpp:
61         (WebCore::ClipboardQt::writeURL):
62         * platform/qt/CookieJarQt.cpp:
63         (WebCore::setCookies):
64         (WebCore::cookies):
65         * platform/wx/PasteboardWx.cpp:
66         (WebCore::Pasteboard::writeURL):
67
68 2007-12-11  Sam Weinig  <sam@webkit.org>
69
70         Reviewed by Darin Adler.
71
72         Scrub URL out of the tree in preparation for renaming KURL to URL.
73             - Renames Document::URL() -> Document::url()
74             - Renames DocumentLoader::URL() -> DocumentLoader::url()
75             - Renames KURL::url() to KURL::string() and KURL::deprecatedString()
76             - Remove FrameLoader::URL()
77             - Various variable renames.
78
79         The change from Document::URL() to Document::url() required changes
80         to the bindings scripts as well, because URL() is the name of a DOM
81         method.  The code generation scripts now have code to special case URL()
82         to url().
83
84         * WebCore.base.exp:
85         * bindings/js/kjs_events.cpp:
86         (WebCore::JSLazyEventListener::parseCode):
87         * bindings/js/kjs_navigator.cpp:
88         (KJS::Navigator::getValueProperty):
89         * bindings/js/kjs_proxy.cpp:
90         (WebCore::KJSProxy::initScript):
91         * bindings/js/kjs_window.cpp:
92         (KJS::Window::put):
93         (KJS::Window::allowsAccessFrom):
94         (KJS::Location::put):
95         (KJS::LocationProtoFuncReplace::callAsFunction):
96         (KJS::LocationProtoFuncReload::callAsFunction):
97         (KJS::LocationProtoFuncAssign::callAsFunction):
98         * bindings/scripts/CodeGenerator.pm:
99         * bindings/scripts/CodeGeneratorCOM.pm:
100         * bindings/scripts/CodeGeneratorJS.pm:
101         * bindings/scripts/CodeGeneratorObjC.pm:
102         * css/CSSImportRule.cpp:
103         (WebCore::CSSImportRule::insertedIntoParent):
104         * css/CSSParser.cpp:
105         (WebCore::CSSParser::parseValue):
106         (WebCore::CSSParser::parseContent):
107         (WebCore::CSSParser::parseBackgroundImage):
108         (WebCore::CSSParser::parseFontFaceSrc):
109         (WebCore::CSSParser::parseBorderImage):
110         (WebCore::CSSParser::createImportRule):
111         * css/CSSStyleSelector.cpp:
112         (WebCore::CSSStyleSelector::setEncodedURL):
113         * dom/Document.cpp:
114         (WebCore::Document::processHttpEquiv):
115         (WebCore::Document::cookie):
116         (WebCore::Document::setCookie):
117         (WebCore::Document::domain):
118         (WebCore::Document::setDomain):
119         (WebCore::Document::getImageMap):
120         (WebCore::Document::completeURL):
121         * dom/Document.h:
122         (WebCore::Document::url):
123         (WebCore::Document::baseURL):
124         * dom/Element.cpp:
125         (WebCore::Element::baseURI):
126         * dom/ProcessingInstruction.h:
127         * dom/StyledElement.cpp:
128         (WebCore::StyledElement::addCSSImageProperty):
129         * dom/StyledElement.h:
130         * dom/XMLTokenizer.cpp:
131         (WebCore::XMLTokenizer::endElementNs):
132         (WebCore::XMLTokenizer::end):
133         (WebCore::):
134         * dom/XMLTokenizer.h:
135         * editing/Editor.cpp:
136         (WebCore::Editor::copy):
137         * editing/markup.cpp:
138         (WebCore::completeURLs):
139         * history/CachedPage.h:
140         (WebCore::CachedPage::url):
141         * history/HistoryItem.cpp:
142         (WebCore::HistoryItem::HistoryItem):
143         (WebCore::HistoryItem::setURL):
144         (WebCore::HistoryItem::isCurrentDocument):
145         * html/HTMLBaseElement.cpp:
146         (WebCore::HTMLBaseElement::process):
147         * html/HTMLParser.cpp:
148         (WebCore::HTMLParser::reportErrorToConsole):
149         * html/HTMLScriptElement.cpp:
150         (WebCore::HTMLScriptElement::childrenChanged):
151         (WebCore::HTMLScriptElement::insertedIntoDocument):
152         (WebCore::HTMLScriptElement::evaluateScript):
153         * html/HTMLScriptElement.h:
154         * html/HTMLTokenizer.cpp:
155         (WebCore::HTMLTokenizer::scriptExecution):
156         * loader/Cache.cpp:
157         (WebCore::createResource):
158         (WebCore::Cache::requestResource):
159         * loader/CachedCSSStyleSheet.cpp:
160         (WebCore::CachedCSSStyleSheet::checkNotify):
161         * loader/CachedResource.cpp:
162         (WebCore::CachedResource::CachedResource):
163         * loader/CachedResource.h:
164         (WebCore::CachedResource::):
165         * loader/CachedScript.h:
166         * loader/DocLoader.cpp:
167         (WebCore::DocLoader::checkForReload):
168         (WebCore::DocLoader::requestResource):
169         * loader/DocumentLoader.cpp:
170         (WebCore::DocumentLoader::url):
171         (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
172         (WebCore::DocumentLoader::setRequest):
173         (WebCore::DocumentLoader::startLoadingMainResource):
174         * loader/DocumentLoader.h:
175         * loader/FrameLoader.cpp:
176         (WebCore::FormSubmission::FormSubmission):
177         (WebCore::ScheduledRedirection::ScheduledRedirection):
178         (WebCore::FrameLoader::changeLocation):
179         (WebCore::FrameLoader::urlSelected):
180         (WebCore::FrameLoader::requestFrame):
181         (WebCore::FrameLoader::loadSubframe):
182         (WebCore::FrameLoader::submitFormAgain):
183         (WebCore::FrameLoader::submitForm):
184         (WebCore::FrameLoader::didExplicitOpen):
185         (WebCore::FrameLoader::replaceContentsWithScriptResult):
186         (WebCore::FrameLoader::executeScript):
187         (WebCore::FrameLoader::receivedFirstData):
188         (WebCore::FrameLoader::begin):
189         (WebCore::FrameLoader::startIconLoader):
190         (WebCore::FrameLoader::commitIconURLToIconDatabase):
191         (WebCore::FrameLoader::scheduleRefresh):
192         (WebCore::FrameLoader::redirectionTimerFired):
193         (WebCore::FrameLoader::loadPlugin):
194         (WebCore::FrameLoader::didNotOpenURL):
195         (WebCore::FrameLoader::updatePolicyBaseURL):
196         (WebCore::FrameLoader::scrollToAnchor):
197         (WebCore::FrameLoader::startRedirectionTimer):
198         (WebCore::FrameLoader::load):
199         (WebCore::FrameLoader::canLoad):
200         (WebCore::FrameLoader::shouldHideReferrer):
201         (WebCore::FrameLoader::shouldAllowNavigation):
202         (WebCore::FrameLoader::commitProvisionalLoad):
203         (WebCore::FrameLoader::clientRedirected):
204         (WebCore::FrameLoader::open):
205         (WebCore::FrameLoader::didTellBridgeAboutLoad):
206         (WebCore::FrameLoader::haveToldBridgeAboutLoad):
207         (WebCore::FrameLoader::post):
208         (WebCore::FrameLoader::loadResourceSynchronously):
209         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
210         (WebCore::FrameLoader::shouldTreatURLAsSameAsCurrent):
211         (WebCore::FrameLoader::createHistoryItem):
212         (WebCore::FrameLoader::addBackForwardItemClippedAtTarget):
213         (WebCore::FrameLoader::loadItem):
214         (WebCore::FrameLoader::urlsMatchItem):
215         (WebCore::FrameLoader::recursiveGoToItem):
216         (WebCore::FrameLoader::updateHistoryForStandardLoad):
217         (WebCore::FrameLoader::updateHistoryForRedirectWithLockedHistory):
218         * loader/FrameLoader.h:
219         (WebCore::FrameLoader::url):
220         * loader/ImageDocument.cpp:
221         (WebCore::ImageDocument::createDocumentStructure):
222         * loader/MainResourceLoader.cpp:
223         (WebCore::shouldLoadAsEmptyDocument):
224         (WebCore::MainResourceLoader::didFinishLoading):
225         * loader/NavigationAction.cpp:
226         (WebCore::NavigationAction::NavigationAction):
227         * loader/NavigationAction.h:
228         (WebCore::NavigationAction::url):
229         * loader/PluginDocument.cpp:
230         (WebCore::PluginTokenizer::createDocumentStructure):
231         * loader/SubresourceLoader.cpp:
232         (WebCore::SubresourceLoader::load):
233         (WebCore::SubresourceLoader::create):
234         * loader/icon/IconLoader.cpp:
235         (WebCore::IconLoader::startLoading):
236         (WebCore::IconLoader::finishLoading):
237         * loader/loader.cpp:
238         (WebCore::Loader::servePendingRequests):
239         * loader/mac/LoaderNSURLExtras.m:
240         (urlOriginalData):
241         * page/Chrome.cpp:
242         (WebCore::Chrome::setToolTip):
243         * page/ContextMenuController.cpp:
244         (WebCore::ContextMenuController::contextMenuItemSelected):
245         * page/Frame.cpp:
246         (WebCore::Frame::setUserStyleSheetLocation):
247         * page/InspectorController.cpp:
248         (WebCore::InspectorResource::type):
249         (WebCore::addSourceToFrame):
250         (WebCore::InspectorController::addScriptResource):
251         (WebCore::InspectorController::updateScriptResourceRequest):
252         (WebCore::InspectorController::didCommitLoad):
253         * page/mac/WebCoreFrameBridge.mm:
254         (-[WebCoreFrameBridge getData:andResponse:forURL:]):
255         * platform/KURL.h:
256         (WebCore::KURL::string):
257         (WebCore::KURL::deprecatedString):
258         * platform/mac/ClipboardMac.mm:
259         (WebCore::ClipboardMac::getData):
260         * platform/mac/CookieJar.mm:
261         (WebCore::cookies):
262         (WebCore::setCookies):
263         * platform/mac/PasteboardMac.mm:
264         (WebCore::Pasteboard::writeURL):
265         (WebCore::fileWrapperForImage):
266         (WebCore::Pasteboard::writeImage):
267         (WebCore::Pasteboard::plainText):
268         * platform/network/ResourceHandle.cpp:
269         (WebCore::ResourceHandle::portAllowed):
270         * platform/network/ResourceRequestBase.cpp:
271         (WebCore::ResourceRequestBase::isNull):
272         * platform/network/cf/ResourceHandleCFNet.cpp:
273         (WebCore::willSendRequest):
274         (WebCore::didReceiveResponse):
275         (WebCore::didReceiveData):
276         (WebCore::didFinishLoading):
277         (WebCore::didFail):
278         (WebCore::didReceiveChallenge):
279         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
280         (WebCore::ResourceHandle::~ResourceHandle):
281         (WebCore::ResourceHandle::start):
282         * platform/win/ClipboardUtilitiesWin.cpp:
283         (WebCore::createGlobalData):
284         (WebCore::urlToMarkup):
285         * platform/win/ClipboardWin.cpp:
286         (WebCore::writeURL):
287         (WebCore::writeImageToDataObject):
288         (WebCore::ClipboardWin::writeURL):
289         (WebCore::ClipboardWin::writeRange):
290         * platform/win/PasteboardWin.cpp:
291         (WebCore::Pasteboard::writeSelection):
292         (WebCore::Pasteboard::writeURL):
293         * plugins/win/PluginDatabaseWin.cpp:
294         (WebCore::PluginDatabaseWin::findPlugin):
295         * plugins/win/PluginStreamWin.cpp:
296         (WebCore::PluginStreamWin::startStream):
297         (WebCore::PluginStreamWin::destroyStream):
298         * plugins/win/PluginViewWin.cpp:
299         (WebCore::scriptStringIfJavaScriptURL):
300         (WebCore::PluginViewWin::performRequest):
301         * svg/SVGImageLoader.cpp:
302         (WebCore::SVGImageLoader::updateFromElement):
303         * xml/XMLHttpRequest.cpp:
304         (WebCore::XMLHttpRequest::getResponseXML):
305         (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
306         * xml/XSLImportRule.cpp:
307         (WebCore::XSLImportRule::loadSheet):
308         * xml/XSLTProcessor.cpp:
309         (WebCore::XSLTProcessor::createDocumentFromSource):
310         (WebCore::xsltStylesheetPointer):
311         (WebCore::xmlDocPtrFromNode):
312
313 2007-12-11  Beth Dakin  <bdakin@apple.com>
314
315         Reviewed by Darin.
316
317         Fix for <rdar://problem/5641255> SVGs with width and height 100% 
318         fail to render when used as background images
319
320         CachedImage now has a setImageContainerSize function. It is only 
321         needed for SVG right now.
322         * loader/CachedImage.cpp:
323         (WebCore::CachedImage::setImageContainerSize):
324         * loader/CachedImage.h:
325
326         Relatively sized SVGs have no intrinsic size. Because this call is 
327         low-level enough that we cannot pass in the container size and get 
328         the real size of the SVG, we need to know if it has relative 
329         dimensions, and if so, we need to get the size from scaledTileSize.
330         * platform/graphics/Image.cpp:
331         (WebCore::Image::drawTiled):
332         * platform/graphics/Image.h:
333         (WebCore::Image::setContainerSize):
334         (WebCore::Image::hasRelativeWidth):
335         (WebCore::Image::hasRelativeHeight):
336
337         Re-factored calculateBackgroundSize a bit so that it returns an 
338         IntSize. Made it a member function so that it can send m_width and 
339         m_height along to setImageContainerSize.
340         * rendering/RenderBox.cpp:
341         (WebCore::RenderBox::calculateBackgroundSize):
342         (WebCore::RenderBox::calculateBackgroundImageGeometry):
343         * rendering/RenderBox.h:
344
345         Need to account for relatively sized SVGs in calcViewport()
346         * rendering/RenderSVGRoot.cpp:
347         (WebCore::RenderSVGRoot::calcViewport):
348         
349         Added new member variables to store the size of the SVG container. 
350         relativeWidthValue() and relativeHeightValue() use the stored SVG 
351         container size to correctly calculate the width and height of a 
352         relatively sized SVG.
353         * svg/SVGSVGElement.cpp:
354         (WebCore::SVGSVGElement::SVGSVGElement):
355         (WebCore::SVGSVGElement::setContainerSize):
356         (WebCore::SVGSVGElement::relativeWidthValue):
357         (WebCore::SVGSVGElement::relativeHeightValue):
358         * svg/SVGSVGElement.h:
359         (WebCore::SVGSVGElement::containerSize):
360         
361         Re-factored size calculations to use the size of the container.
362         * svg/graphics/SVGImage.cpp:
363         (WebCore::SVGImage::setContainerSize):
364         (WebCore::SVGImage::size):
365         (WebCore::SVGImage::hasRelativeWidth):
366         (WebCore::SVGImage::hasRelativeHeight):
367         * svg/graphics/SVGImage.h:
368
369 2007-12-11  Darin Adler  <darin@apple.com>
370
371         * editing/Editor.cpp:
372         (WebCore::Editor::yankFromKillRing): Try to fix non-Mac builds by adding
373         a missing return statement.
374
375 2007-12-11  Darin Adler  <darin@apple.com>
376
377         Reviewed by Geoff.
378
379         - exposed many new commands to the DOM Document executeCommand function by
380           merging the JSEditor and Editor executeCommand implementations
381         - replaced the execCommand function with a EditorCommand class
382         - replaced the WTF::StrHash<> class template with the WebCore::StringHash class
383         - replaced the WTF::CaseInsensitiveHash<> class template with the
384           WebCore::CaseFoldingHash class
385
386         * WebCore.base.exp: Updated.
387         * WebCore.pro: Added EditorCommand.cpp, removed JSEditor.cpp.
388         * WebCore.vcproj/WebCore.vcproj: Ditto.
389         * WebCore.xcodeproj/project.pbxproj: Ditto.
390         * WebCoreSources.bkl: Ditto.
391
392         * dom/Document.cpp:
393         (WebCore::Document::Document): Removed code to set up m_jsEditor.
394         (WebCore::Document::~Document): Removed code to delete m_jsEditor.
395         (WebCore::command): Added. Helper function that gets an Editor::Command.
396         (WebCore::Document::executeCommand): Changed to use Editor::Command instead of
397         JSEditor.
398         (WebCore::Document::queryCommandEnabled): Ditto.
399         (WebCore::Document::queryCommandIndeterm):
400         (WebCore::Document::queryCommandState): Ditto.
401         (WebCore::Document::queryCommandSupported): Ditto.
402         (WebCore::Document::queryCommandValue): Ditto.
403
404         * dom/Document.h: Removed JSEditor, jsEditor, m_jsEditor. Changed to
405         use CaseFoldingHash.
406
407         * editing/Editor.cpp:
408         (WebCore::Editor::selectionForCommand): Renamed from selectionForEvent and
409         made into a member function so it is accessible from the new EditorCommand.cpp file.
410         Also changed to get the selection from the passed-in frame instead of from the
411         page, because this should work on the targeted frame unless the event overrides it.
412         (WebCore::Editor::handleKeypress): Updated for selectionForCommand change.
413         (WebCore::Editor::handleInputMethodKeypress): Ditto.
414         (WebCore::imageElementFromImageDocument): Renamed and changed to return
415         a HTMLImageElement instead of a Node*.
416         (WebCore::Editor::canCopy): Updated for name change.
417         (WebCore::Editor::selectionUnorderedListState): Updated for TriState change.
418         (WebCore::Editor::selectionOrderedListState): Ditto.
419         (WebCore::Editor::selectionStartHasStyle): Make type of local more specific.
420         (WebCore::updateState): Moved here from Frame.
421         (WebCore::Editor::selectionHasStyle): Ditto.
422         (WebCore::Editor::Editor): Initialize m_shouldStartNewKillRingSequence.
423         (WebCore::Editor::insertTextWithoutSendingTextEvent): Updated for
424         selectionForCommand change.
425         (WebCore::Editor::copy): Updated for imageElementFromImageDocument change.
426         (WebCore::Editor::toggleBold): Call the ToggleBold command via the command
427         machinery since it's no longer in this file as a local function.
428         (WebCore::Editor::toggleUnderline): Call the ToggleUnderline command.
429         (WebCore::Editor::setBaseWritingDirection): Change type of argument and of
430         local variable.
431         (WebCore::Editor::addToKillRing): Moved here from EditorMac. Not useful
432         without a kill ring, but it's relatively straightforward to implement one.
433         (WebCore::Editor::appendToKillRing): Put default implementation here for
434         platforms other than Mac. We should probably put a simple kill ring
435         implementation here -- doesn't need to be shared with the OS oh platforms
436         other than Mac.
437         (WebCore::Editor::prependToKillRing): Ditto.
438         (WebCore::Editor::yankFromKillRing): Ditto.
439         (WebCore::Editor::startNewKillRingSequence): Ditto.
440         (WebCore::Editor::setKillRingToYankedState): Ditto.
441
442         * editing/Editor.h: Moved the TriState enum here instead of inside the
443         Frame class. Added EditorCommandSource enum. Moved selectionHasStyle
444         here from the Frame class. Added Editor::Command class with five functions
445         for the various things you can do with a command (execute it, check if it
446         can be used, and its state and value). Changed hte parameter of
447         setBaseWritingDirection to be a const String& rather than a String.
448         Got rid of the kill-ring-related operations, but added the kill ring
449         functions themselves. Made selectedRange() public. Made the
450         m_startNewKillRingSequence not Mac-specific and added "should" to its
451         name.
452
453         * editing/EditorCommand.cpp: Copied from WebCore/editing/Editor.cpp.
454         Retained only the editing commands.
455         (WebCore::targetFrame): Moved to the top of the file.
456         (WebCore::executeApplyStyle): Added. Helper function for commands
457         that need to apply styles.
458         (WebCore::executeToggleStyle): Added. Helper function for commands
459         that need to toggle styles based on the style of the start of selection.
460         (WebCore::executeApplyParagraphStyle): Added. Like executeApplyStyle, but
461         for paragraph styles.
462         (WebCore::executeInsertFragment): Added. Helper function for commands
463         that need to insert a DOM fragment.
464         (WebCore::executeInsertNode): Added. Helper function for commands that
465         need to insert a tree rooted in a single DOM node.
466         (WebCore::stateStyle): Added. Helper function for the state of commands
467         that represent style.
468         (WebCore::valueStyle): Added. Helper function for the value of commands
469         that represent style.
470         (WebCore::canScroll): Added. Helper functions for some move and scroll
471         commands that need to determine if the renderer they are in can scroll.
472         (WebCore::unionDOMRanges): Moved here from EditorMac.
473         (WebCore::executeBackColor):
474         (WebCore::executeBackwardDelete):
475         (WebCore::executeCopy):
476         (WebCore::executeCreateLink):
477         (WebCore::executeCut):
478         (WebCore::executeDelete):
479         (WebCore::executeDeleteToMark):
480         (WebCore::executeDeleteWordBackward):
481         (WebCore::executeDeleteWordForward):
482         (WebCore::executeFindString):
483         (WebCore::executeFontName):
484         (WebCore::executeFontSize):
485         (WebCore::executeFontSizeDelta):
486         (WebCore::executeForeColor):
487         (WebCore::executeFormatBlock):
488         (WebCore::executeForwardDelete):
489         (WebCore::executeIndent):
490         (WebCore::executeInsertBacktab):
491         (WebCore::executeInsertHorizontalRule):
492         (WebCore::executeInsertHTML):
493         (WebCore::executeInsertImage):
494         (WebCore::executeInsertLineBreak):
495         (WebCore::executeInsertNewline):
496         (WebCore::executeInsertNewlineInQuotedContent):
497         (WebCore::executeInsertOrderedList):
498         (WebCore::executeInsertParagraph):
499         (WebCore::executeInsertTab):
500         (WebCore::executeInsertText):
501         (WebCore::executeInsertUnorderedList):
502         (WebCore::executeJustifyCenter):
503         (WebCore::executeJustifyFull):
504         (WebCore::executeJustifyLeft):
505         (WebCore::executeJustifyRight):
506         (WebCore::executeMoveBackward):
507         (WebCore::executeMoveBackwardAndModifySelection):
508         (WebCore::executeMoveDown):
509         (WebCore::executeMoveDownAndModifySelection):
510         (WebCore::executeMoveDownByPageAndModifyCaret):
511         (WebCore::executeMoveForward):
512         (WebCore::executeMoveForwardAndModifySelection):
513         (WebCore::executeMoveLeft):
514         (WebCore::executeMoveLeftAndModifySelection):
515         (WebCore::executeMoveRight):
516         (WebCore::executeMoveRightAndModifySelection):
517         (WebCore::executeMoveToBeginningOfDocument):
518         (WebCore::executeMoveToBeginningOfDocumentAndModifySelection):
519         (WebCore::executeMoveToBeginningOfLine):
520         (WebCore::executeMoveToBeginningOfLineAndModifySelection):
521         (WebCore::executeMoveToBeginningOfParagraph):
522         (WebCore::executeMoveToBeginningOfParagraphAndModifySelection):
523         (WebCore::executeMoveToBeginningOfSentence):
524         (WebCore::executeMoveToBeginningOfSentenceAndModifySelection):
525         (WebCore::executeMoveToEndOfDocument):
526         (WebCore::executeMoveToEndOfDocumentAndModifySelection):
527         (WebCore::executeMoveToEndOfSentence):
528         (WebCore::executeMoveToEndOfSentenceAndModifySelection):
529         (WebCore::executeMoveToEndOfLine):
530         (WebCore::executeMoveToEndOfLineAndModifySelection):
531         (WebCore::executeMoveToEndOfParagraph):
532         (WebCore::executeMoveToEndOfParagraphAndModifySelection):
533         (WebCore::executeMoveParagraphBackwardAndModifySelection):
534         (WebCore::executeMoveParagraphForwardAndModifySelection):
535         (WebCore::executeMoveUp):
536         (WebCore::executeMoveUpAndModifySelection):
537         (WebCore::executeMoveUpByPageAndModifyCaret):
538         (WebCore::executeMoveWordBackward):
539         (WebCore::executeMoveWordBackwardAndModifySelection):
540         (WebCore::executeMoveWordForward):
541         (WebCore::executeMoveWordForwardAndModifySelection):
542         (WebCore::executeMoveWordLeft):
543         (WebCore::executeMoveWordLeftAndModifySelection):
544         (WebCore::executeMoveWordRight):
545         (WebCore::executeMoveWordRightAndModifySelection):
546         (WebCore::executeOutdent):
547         (WebCore::executePaste):
548         (WebCore::executePasteAndMatchStyle):
549         (WebCore::executePrint):
550         (WebCore::executeRedo):
551         (WebCore::executeRemoveFormat):
552         (WebCore::executeSelectAll):
553         (WebCore::executeSelectToMark):
554         (WebCore::executeSetMark):
555         (WebCore::executeStrikethrough):
556         (WebCore::executeSubscript):
557         (WebCore::executeSuperscript):
558         (WebCore::executeSwapWithMark):
559         (WebCore::executeToggleBold):
560         (WebCore::executeToggleItalic):
561         (WebCore::executeTranspose):
562         (WebCore::executeUnderline):
563         (WebCore::executeUndo):
564         (WebCore::executeUnlink):
565         (WebCore::executeUnscript):
566         (WebCore::executeUnselect):
567         (WebCore::executeYank):
568         (WebCore::executeYankAndSelect):
569         (WebCore::supported):
570         (WebCore::supportedPaste):
571         (WebCore::enabled):
572         (WebCore::enabledAnySelection):
573         (WebCore::enabledAnySelectionAndMark):
574         (WebCore::enableCaretInEditableText):
575         (WebCore::enabledCopy):
576         (WebCore::enabledCut):
577         (WebCore::enabledInEditableText):
578         (WebCore::enabledInRichlyEditableText):
579         (WebCore::enabledPaste):
580         (WebCore::enabledRangeInEditableText):
581         (WebCore::enabledRangeInRichlyEditableText):
582         (WebCore::enabledRedo):
583         (WebCore::enabledUndo):
584         (WebCore::stateNone):
585         (WebCore::stateBold):
586         (WebCore::stateItalic):
587         (WebCore::stateOrderedList):
588         (WebCore::stateStrikethrough):
589         (WebCore::stateSubscript):
590         (WebCore::stateSuperscript):
591         (WebCore::stateUnderline):
592         (WebCore::stateUnorderedList):
593         (WebCore::valueNull):
594         (WebCore::valueBackColor):
595         (WebCore::valueFontName):
596         (WebCore::valueFontSize):
597         (WebCore::valueFontSizeDelta):
598         (WebCore::valueForeColor):
599         (WebCore::createCommandMap): Added lots of commands, including all the commands
600         from JSEditor. A few commands needed different behavior based on whether they are
601         invoked from the DOM or a keyboard binding.
602         (WebCore::Editor::command): Added. Gets a command object given a name.
603         (WebCore::Editor::Command::Command): Added.
604         (WebCore::Editor::Command::execute): Added.
605         (WebCore::Editor::Command::isSupported): Added.
606         (WebCore::Editor::Command::isEnabled): Added.
607         (WebCore::Editor::Command::state): Added.
608         (WebCore::Editor::Command::value): Added.
609         (WebCore::Editor::execCommand): Changed to call command().execute().
610
611         * editing/JSEditor.cpp: Removed.
612         * editing/JSEditor.h: Removed.
613
614         * editing/mac/EditorMac.mm: Changed to provide kill ring primitives intead of
615         kill ring commands, so the kill ring commands can be cross-platform.
616         (WebCore::Editor::appendToKillRing): Added.
617         (WebCore::Editor::prependToKillRing): Added.
618         (WebCore::Editor::yankFromKillRing): Added.
619         (WebCore::Editor::startNewKillRingSequence): Added.
620         (WebCore::Editor::setKillRingToYankedState): Added.
621
622         * page/Frame.cpp: Removed selectionHasStyle, TriState, and updateState.
623         * page/Frame.h: Ditto.
624
625         * page/mac/WebCoreFrameBridge.mm: Removed selectionHasStyle.
626         * page/mac/WebCoreFrameBridge.h: Ditto.
627
628         * platform/ContextMenu.cpp:
629         (WebCore::ContextMenu::checkOrEnableIfNeeded): Updated for TriState change.
630
631         * platform/text/StringHash.h:
632         (WebCore::StringHash::hash): Merged the StrHash<> template classes into this.
633         (WebCore::StringHash::equal): Ditto.
634         (WebCore::CaseFoldingHash::hash): Merged the CaseInsensitiveHash<> template
635         classes into this.
636         (WebCore::CaseFoldingHash::equal): Ditto.
637
638         * platform/text/StringImpl.cpp:
639         (WebCore::equal): Changed to invoke StringHash.
640         (WebCore::equalIgnoringCase): Changed to invoke CaseFoldingHash.
641
642         * dom/DOMImplementation.cpp:
643         (WebCore::addString): Updated to use StringHash and CaseFoldingHash.
644         (WebCore::isSVG10Feature): Ditto.
645         (WebCore::isSVG11Feature): Ditto.
646         * loader/FrameLoader.cpp:
647         (WebCore::localSchemes): Ditto.
648         * platform/graphics/FontCache.cpp:
649         (WebCore::computeHash): Ditto.
650         * platform/network/HTTPHeaderMap.h: Ditto.
651         * platform/text/PlatformString.h: Ditto.
652         * platform/text/StringImpl.h: Ditto.
653         * rendering/RenderPartObject.cpp:
654         (WebCore::RenderPartObject::updateWidget): Ditto.
655         * xml/XMLHttpRequest.cpp:
656         (WebCore::canSetRequestHeader): Ditto.
657
658         * rendering/RenderTreeAsText.cpp: Removed stray include of JSEditor.h.
659
660 2007-12-11  Darin Adler  <darin@apple.com>
661
662         * platform/wx/KeyboardEventWx.cpp:
663         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): Another try at fixing the
664         WX build. Changes the code around a little bit.
665
666 2007-12-11  Darin Adler  <darin@apple.com>
667
668         * platform/wx/KeyboardEventWx.cpp:
669         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): Quick try at fixing build.
670
671 2007-12-11  Dan Bernstein  <mitz@apple.com>
672
673         Reviewed by Darin Adler.
674
675         - fix <rdar://problem/5631507> Text doesn't wrap properly at Tamil version of Wikipedia
676
677         Test: fast/text/international/complex-character-based-fallback.html
678
679         * platform/graphics/Font.cpp:
680         (WebCore::Font::glyphDataForCharacter): Added a forceSmallCaps argument
681         that forces this function to use the small caps font. It is used for
682         combining marks that need to combine with a small cap.
683         * platform/graphics/Font.h:
684         * platform/win/UniscribeController.cpp:
685         (WebCore::UniscribeController::advance): Changed to split the string
686         into runs of characters that will be rendered using the same FontData.
687         This is done by calling glyphDataForCharacter() for each cahracter to
688         find the FontData it should be rendered with.
689         (WebCore::UniscribeController::itemizeShapeAndPlace): Added a fontData
690         argument that is passed on to shapeAndPlaceItem() instead of the
691         smallCaps argument.
692         (WebCore::UniscribeController::shapeAndPlaceItem): Added a fontData
693         argument and removed the font fallback logic from this function, as
694         it is now expected to be called with an item all of whose characters
695         can be rendered with the given fontData.
696         * platform/win/UniscribeController.h:
697
698 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
699
700         Reviewed by Darin.
701
702         <rdar://problem/5535636>
703         Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
704
705         http://bugs.webkit.org/show_bug.cgi?id=13916
706         JavaScript detects Tab as a character input on a textfield validation
707
708         Test: platform/win/fast/events/double-dead-char.html
709
710         * platform/PlatformKeyboardEvent.h:
711         (WebCore::PlatformKeyboardEvent::):
712         (WebCore::PlatformKeyboardEvent::type):
713         (WebCore::PlatformKeyboardEvent::windowsVirtualKeyCode):
714         (WebCore::PlatformKeyboardEvent::setWindowsVirtualKeyCode):
715         (WebCore::PlatformKeyboardEvent::keyIdentifier):
716         (WebCore::PlatformKeyboardEvent::setIsAutoRepeat):
717         Added an explicit type member to differentiate different kinds of events:
718           RawKeyDown == keydown == WM_KEYDOWN
719           KeyUp == keyup == WM_KEYUP
720           Char == keypress == WM_CHAR
721           KeyDown == e.g. NSKeyDown or NSFlagsChanged, used on platforms that have a different model for
722           event processing, and needs to be converted to RawKeyDown (+ Char) for processing in DOM.
723
724         * platform/mac/KeyEventMac.mm:
725         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): Updated for changed data members.
726         Fix Enter (numeric keypad) charCode to match Return, as we check for it from keypress default handlers.
727         (WebCore::windowsKeyCodeForKeyEvent): 
728         (WebCore::isKeyUpEvent): Made it do something closer to what it claims; added a FIXME explaining
729         that it still fails.
730         (WebCore::disambiguateKeyDownEvent): Downgrade from KeyDown to RawKeyDown or Char, removing information that
731         should not be available in those (because it cannot be provided on Windows).
732
733         * platform/win/KeyEventWin.cpp:
734         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): Updated for changed data members.
735         Used standard Windows constants for bit masks instead of our own ones.
736         (WebCore::PlatformKeyboardEvent::disambiguateKeyDownEvent): Should never be called on Windows.
737
738         * platform/gtk/KeyEventGtk.cpp:
739         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
740         (WebCore::PlatformKeyboardEvent::disambiguateKeyDownEvent):
741         * platform/qt/PlatformKeyboardEventQt.cpp:
742         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
743         (WebCore::PlatformKeyboardEvent::disambiguateKeyDownEvent):
744         * platform/wx/KeyboardEventWx.cpp:
745         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
746         (WebCore::PlatformKeyboardEvent::disambiguateKeyDownEvent):
747         Updated for cross-platform changes as much as it was possible without appropriate build
748         environments.
749
750         * WebCore.base.exp: Export PlatformKeyboardEvent::disambiguateKeyDownEvent(), used by platforms that need to
751         convert their fancy key events to RawKeyDown/Char pairs. Export Editor::isTextInsertionCommand().
752
753         * bridge/EditorClient.h:
754         Renamed handleKeypress() to handleKeyboardEvent(), as it gets both keydowns and keypresses.
755         Renamed handleInputMethodKeypress() to handleInputMethodKeydown(), as IMs work with raw keydowns.
756
757         * dom/Document.h:
758         * dom/Document.cpp:
759         (WebCore::Document::defaultEventHandler): Moved accesskey processing to EventHandler.
760
761         * dom/KeyboardEvent.h: Added comments describing keyCode/charCode behavior.
762
763         * dom/KeyboardEvent.cpp:
764         (WebCore::eventTypeForKeyboardEventType):
765         (WebCore::KeyboardEvent::KeyboardEvent): Conversion between platform and DOM event types is
766         now straightforward, so scary hacks such as using autorepeat to distinguish types are
767         not needed.
768         (WebCore::KeyboardEvent::keyCode): Added a comment describing other browsers' behavior.
769         (WebCore::KeyboardEvent::charCode): Added a comment describing other browsers' behavior.
770         Changed to a more compatible behavior: raw keydown/keyup events do not and can not have
771         character codes.
772
773         * editing/Editor.h:
774         * editing/Editor.cpp:
775         (WebCore::Editor::isTextInsertionCommand): Is this command actually text input in disguise?
776         (WebCore::Editor::handleKeyboardEvent): Updated for new function names.
777         (WebCore::Editor::handleInputMethodKeydown): Ditto.
778
779         * html/HTMLButtonElement.cpp:
780         (WebCore::HTMLButtonElement::defaultEventHandler): Perform the default action when handling an
781         appropriate event. Enter is processed on keypress (and thus should be checked for via charCode,
782         not keyIdentifier), Space is processed on keydown+keyup! We now match IE in that a button is
783         highlighted when Space is pressed.
784
785         * html/HTMLInputElement.cpp:
786         (WebCore::HTMLInputElement::defaultEventHandler):
787         * html/HTMLSelectElement.cpp:
788         (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
789         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
790         Made a number of fixes to when default actions take place, similar to HTMLButtonElement ones
791         described above.
792
793         * page/EventHandler.cpp:
794         (WebCore::EventHandler::keyEvent): Unless we have a combined KeyDown, just forward the event
795         to the target. Call accesskey handling directly, as it doesn't seem to be part of normal event
796         handling in IE. Also streamlined the code in KeyDown case, thanks to handleInputMethodKeypress()
797         now being handleInputMethodKeydown().
798         (WebCore::EventHandler::handleTextInputEvent): Check that we were not called from keydown.
799         (WebCore::EventHandler::defaultTextInputEventHandler): Removed a call to defaultTabEventHandler,
800         as default tab handling happens when processing keydown.
801         (WebCore::handleAccessKey): Moved from Document, as access keys are processed outside normal
802         event handling. Fixed accesskey processing to use information that's available in a raw keydown
803         event.
804
805         (WebCore::EventHandler::defaultKeyboardEventHandler): Do not ignore keydown; in particular,
806         handle tabs during keydown processing.
807
808         * page/mac/EventHandlerMac.mm:
809         (WebCore::EventHandler::currentKeyboardEvent): Disambiguate KeyDown as RawKeyDown, as this is
810         what callers want.
811
812         * platform/text/PlatformString.h:
813         * platform/text/String.cpp:
814         (WebCore::String::characterStartingAt):
815         * platform/text/StringImpl.cpp:
816         (WebCore::StringImpl::characterStartingAt):
817         * platform/text/StringImpl.h:
818         Added a UChar32 accessor.
819
820         * svg/graphics/SVGImageEmptyClients.h:
821         (WebCore::SVGEmptyEditorClient::handleKeyboardEvent):
822         (WebCore::SVGEmptyEditorClient::handleInputMethodKeydown):
823         Updated for new function names.
824
825 2007-12-11  John Sullivan  <sullivan@apple.com>
826
827         Reviewed by Adele
828
829         Tiger build fix -- don't call QTMovieView setDelegate: directly because it's not public
830
831         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
832         (WebCore::MediaPlayerPrivate::createQTMovieView):
833         (WebCore::MediaPlayerPrivate::detachQTMovieView):
834
835 2007-12-11  Alexey Proskuryakov  <ap@webkit.org>
836
837         Reviewed by Darin.
838
839         http://bugs.webkit.org/show_bug.cgi?id=16325
840         <rdar://problem/5632997> REGRESSION: www.xerox.ru doesn't work
841
842         Fix this on Windows, too!
843
844         Test: http/tests/misc/empty-cookie.html
845
846         * platform/network/win/CookieJarWin.cpp:
847         (WebCore::setCookies):
848         (WebCore::cookies):
849         Same fix as on Mac, translated into CF.
850
851         * platform/win/CookieJarWin.cpp: Removed - the real one is in platform/network/win.
852
853 2007-12-11  Christian Dywan  <christian@twotoasts.de>
854
855         Reviewed by Alp Toker.
856
857         http://bugs.webkit.org/show_bug.cgi?id=16371
858         Implement additional mouse cursors for Gtk
859
860         Added cursor bitmaps from Mozilla:
861         http://lxr.mozilla.org/mozilla1.8/source/widget/src/gtk2/nsGtkCursors.h
862
863         * platform/gtk/CursorGtk.cpp:
864         (WebCore::customCursorNew):
865         (WebCore::verticalTextCursor):
866         (WebCore::cellCursor):
867         (WebCore::contextMenuCursor):
868         (WebCore::noDropCursor):
869         (WebCore::copyCursor):
870         (WebCore::progressCursor):
871         (WebCore::aliasCursor):
872         (WebCore::noneCursor):
873         (WebCore::notAllowedCursor):
874         (WebCore::zoomInCursor):
875         (WebCore::zoomOutCursor):
876         * platform/gtk/CursorGtk.h: Added.
877
878 2007-12-10  Oliver Hunt  <oliver@apple.com>
879
880         Reviewed by Weinig, Dan, and Alexey.
881
882         Fix character set used for dynamically loaded scripts.
883
884         Fix for:
885             <rdar://problem/5333163> Safari can not display the mouse over pop menu on ChinaTimes News site correctly.
886             <rdar://problem/5530048> [Safari]? :Leopard9A576: The typed CH characters displays as garbage in Sina website after reloading the webpage.
887             <rdar://problem/5416588> All menus for chinese IBM site have wrong encoding
888             
889         Use the same logic to determine the charset for a script loaded dynamically
890         as we do for a statically loaded script.
891
892         * html/HTMLScriptElement.cpp:
893         (WebCore::HTMLScriptElement::insertedIntoDocument):
894
895 2007-12-10  Justin Garcia  <justin.garcia@apple.com>
896
897         Reviewed by Oliver Hunt.
898
899         <rdar://problem/5482023> GoogleDocs: After FormatBlock in an empty document, certain functions are disabled
900         
901         We were trying to insert a block of the requested type before the body element.
902         
903         * editing/FormatBlockCommand.cpp:
904         (WebCore::FormatBlockCommand::doApply): 
905         Removed unnecessary ()s in the if condition.
906         Removed "|| !upstreamStart.node()->isDescendantOf(root)" from the if condition, since
907         a) upstreamStart will never be outside the root editable element, since in that case
908         there would be no block inside the editable root to Format, and b) if upstreamStart.node() 
909         *is* the root, then refNode is the root, and we shouldn't insert before the root, we should insert
910         at [root, 0].
911         Added comments to explain the use of upstream() in the second if-clause.
912         Added an early return for case where there is nothing selected, in that case, there is nothing
913         to move.
914
915 2007-12-10  Adele Peterson  <adele@apple.com>
916
917         Reviewed and partially fixed by Tim Hatcher.
918
919         Remaining part of fix for <rdar://problem/5633400>
920         Transformed <video> is not clipped correctly until a repaint is forced
921
922         Replace the implementation of a QTKit method to avoid repaints from the NSView system associated with the QTMovie
923         from clobbering the WebCore repaints.
924
925         * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::mediaPlayerRepaint): Added.
926         * html/HTMLMediaElement.h:
927         * platform/graphics/MediaPlayer.cpp: (WebCore::MediaPlayer::repaint): Added.
928         * platform/graphics/MediaPlayer.h: (WebCore::MediaPlayerClient::mediaPlayerRepaint): Added.
929
930         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
931         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
932         (method_setImplementation): Added for Tiger.
933
934         (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate): Call detachQTMovieView, which now does more cleanup.
935         (WebCore::MediaPlayerPrivate::cancelLoad): ditto.
936         (WebCore::MediaPlayerPrivate::setVisible): ditto.
937         (WebCore::MediaPlayerPrivate::detachQTMovieView): Clear the delegate as well as m_qtMovieView pointer.
938
939         (WebCore::MediaPlayerPrivate::repaint): Added.  Triggers a repaint on the video renderer.
940         (-[WebCoreMovieObserver repaint]): ditto.
941
942         (WebCore::mainThreadSetNeedsDisplay): Added.
943          Does a WebCore repaint instead of going through the view repaint system for QTMovieView.
944         (WebCore::MediaPlayerPrivate::createQTMovieView): Replace the implementation of _mainThreadSetNeedsDisplay.
945
946 2007-12-10  Geoffrey Garen  <ggaren@apple.com>
947
948         Reviewed by Sam Weinig.
949
950         Updated for rename in JavaScriptCore.
951
952         * bridge/mac/WebCoreScriptDebugger.mm:
953         (-[WebCoreScriptCallFrame scopeChain]):
954         (-[WebCoreScriptCallFrame functionName]):
955         (-[WebCoreScriptCallFrame evaluateWebScript:]):
956
957 2007-12-10  Rodney Dawes  <dobey@wayofthemonkey.com>
958
959         Bug 16383: Ambiguous Window Usage in kjs_dom.cpp
960         <http://bugs.webkit.org/show_bug.cgi?id=16383>
961
962         Use KJS::Window not the ambiguous Window
963
964         Reviewed by ddkilzer.
965
966         * bindings/js/kjs_dom.cpp (checkNodeSecurity):
967
968 2007-12-10  Sam Weinig  <sam@webkit.org>
969
970         Fix non-mac builds.
971
972         * page/WindowFeatures.cpp: #include <wtf/MathExtras.h> for isnan.
973
974 2007-12-10  Marvin Decker  <marv.decker@gmail.com>
975
976         Reviewed by Darin.
977
978         Fix a divide by 0 in the progress tracker.
979         http://bugs.webkit.org/show_bug.cgi?id=15055
980
981         * loader/ProgressTracker.cpp:
982         (WebCore::ProgressTracker::incrementProgress):
983
984 2007-12-09  Sam Weinig  <sam@webkit.org>
985
986         Reviewed by Darin.
987
988         More cleanup of kjs_window.
989         - Move WindowFeatures from bridge/ to page/
990         - Move functions related to WindowFeatures (boolFeature,
991           floatFeature, setWindowFeature, parseWindowFeatures) into the class.
992         - Fix up whitespace.
993
994         * WebCore.vcproj/WebCore.vcproj:
995         * WebCore.xcodeproj/project.pbxproj:
996         * bindings/js/kjs_window.cpp:
997         (KJS::DOMWindowTimer::~DOMWindowTimer):
998         (KJS::createWindow):
999         (KJS::showModalDialog):
1000         (KJS::Window::getOwnPropertySlot):
1001         (KJS::Window::allowsAccessFrom):
1002         (KJS::Window::shouldInterruptScript):
1003         (KJS::WindowProtoFuncAToB::callAsFunction):
1004         (KJS::WindowProtoFuncOpen::callAsFunction):
1005         (KJS::Window::setReturnValueSlot):
1006         (KJS::ScheduledAction::execute):
1007         (KJS::Window::timerFired):
1008         (KJS::Location::Location):
1009         (KJS::Location::getValueProperty):
1010         (KJS::Location::getOwnPropertySlot):
1011         (KJS::Location::put):
1012         (KJS::LocationProtoFuncReplace::callAsFunction): Use better variable names.
1013         (KJS::LocationProtoFuncAssign::callAsFunction): Ditto.
1014         (KJS::LocationProtoFuncToString::callAsFunction): Remove extraneous calls to
1015         allowsAccessFrom, cleanup the function a little.
1016         (KJS::PausedTimeouts::~PausedTimeouts):
1017         * bridge/WindowFeatures.h: Removed.
1018         * page/WindowFeatures.cpp: Added.
1019         (WebCore::isSeparator):
1020         (WebCore::WindowFeatures::WindowFeatures):
1021         (WebCore::WindowFeatures::setWindowFeature):
1022         (WebCore::WindowFeatures::boolFeature):
1023         (WebCore::WindowFeatures::floatFeature):
1024         * page/WindowFeatures.h: Copied from WebCore/bridge/WindowFeatures.h.
1025         (WebCore::WindowFeatures::WindowFeatures):
1026
1027 2007-12-10  Timothy Hatcher  <timothy@apple.com>
1028
1029         Reviewed by Mark Rowe.
1030
1031         <rdar://problem/5639463> Bundle versions on Tiger should be 4523.x not 523.x
1032
1033         * Configurations/Version.xcconfig: Some Tiger versions of Xcode don't set MAC_OS_X_VERSION_MAJOR,
1034           so assume Tiger and use a 4 for the SYSTEM_VERSION_PREFIX.
1035
1036 2007-12-10  Alp Toker  <alp@atoker.com>
1037
1038         Reviewed by Niko.
1039
1040         Cairo implementation of GraphicsContext::setUseAntialiasing().
1041
1042         * platform/graphics/cairo/GraphicsContextCairo.cpp:
1043         (WebCore::GraphicsContext::setUseAntialiasing):
1044
1045 2007-12-10  Rob Buis  <buis@kde.org>
1046
1047         Reviewed by Darin.
1048
1049         http://bugs.webkit.org/show_bug.cgi?id=16182
1050         SVG should disable antialiasing for shape-rendering="crispEdges"
1051
1052         Turn off anti-aliasing of shapes when shape-rendering="crispEdges".
1053
1054         * platform/graphics/GraphicsContext.h:
1055         * platform/graphics/cairo/GraphicsContextCairo.cpp:
1056         (WebCore::GraphicsContext::setUseAntialiasing):
1057         * platform/graphics/cg/GraphicsContextCG.cpp:
1058         (WebCore::GraphicsContext::setUseAntialiasing):
1059         * platform/graphics/qt/GraphicsContextQt.cpp:
1060         (WebCore::GraphicsContext::setUseAntialiasing):
1061         * platform/graphics/wx/GraphicsContextWx.cpp:
1062         (WebCore::GraphicsContext::setUseAntialiasing):
1063         * rendering/RenderPath.cpp:
1064         (WebCore::RenderPath::paint):
1065
1066 2007-12-09  Rob Buis  <buis@kde.org>
1067
1068         Reviewed by Niko.
1069
1070         http://bugs.webkit.org/show_bug.cgi?id=16163
1071         SVG crash in Node::setChanged() on Debug builds only (trashed parent)
1072
1073         Fix the crash by properly unregistering as client from SVGResource
1074         when deleting a styled svg node.
1075
1076         * svg/SVGStyledElement.cpp:
1077         (WebCore::SVGStyledElement::~SVGStyledElement):
1078
1079 2007-12-10  Brady Eidson  <beidson@apple.com>
1080
1081         Rubberstamped by John
1082
1083         * storage/DatabaseTracker.cpp:
1084         (WebCore::DatabaseTracker::canEstablishDatabase): If the UI Delegate returns *exactly* the estimated size
1085           for the new quota, we should allow the database to be created
1086
1087 2007-12-10  David D. Kilzer  <ddkilzer@webkit.org>
1088
1089         Bug 9683: Implement select.options.remove() method
1090         <http://bugs.webkit.org/show_bug.cgi?id=9683>
1091
1092         Reviewed by Maciej.
1093
1094         Implement select.options.remove() by calling select.remove()
1095         with the same arguments.  This is what MSIE 7 does, although its
1096         select.remove() method differs from WebKit's by throwing an
1097         exception when called with no arguments or with a negative
1098         integer argument.  Note that the DOM Level 1 documentation
1099         specifies that select.remove() does not throw an exception.
1100
1101         Tests: fast/js/select-options-remove-gc.html
1102                fast/js/select-options-remove.html
1103
1104         * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
1105         (WebCore::JSHTMLOptionsCollection::remove): Added.
1106         * html/HTMLOptionsCollection.cpp:
1107         (WebCore::HTMLOptionsCollection::remove): Added.
1108         * html/HTMLOptionsCollection.h:
1109         * html/HTMLOptionsCollection.idl:
1110
1111 2007-12-09  Sam Weinig  <sam@webkit.org>
1112
1113         Rubber stamped by Mark Rowe.
1114
1115         * WebCore.xcodeproj/project.pbxproj: Add missing DerivedSources files.
1116
1117 2007-12-09  Oliver Hunt  <oliver@apple.com>
1118
1119         Reviewed by Niko.
1120
1121         Correction, 'z' and 'Z' are the only commands that cannot have an extended
1122         list of arguments.
1123
1124         * svg/SVGParserUtilities.cpp:
1125         (WebCore::SVGPathParser::parseSVG):
1126
1127 2007-12-09  Oliver Hunt  <oliver@apple.com>
1128
1129         Reviewed by Niko.
1130
1131         Prevent unlimited iteration in the case of invalid path data.
1132         
1133         The only path commands that can leave numbers trailing the command processing
1134         are 'm' and 'M', in which trailing numbers are parsed as arguments to an
1135         implicit lineto command.  In any case we should just terminate as an invalid
1136         path.
1137
1138         * svg/SVGParserUtilities.cpp:
1139         (WebCore::SVGPathParser::parseSVG):
1140
1141 2007-12-09  Luca Bruno  <lethalman88@gmail.com>
1142
1143         Reviewed by Alp Toker.
1144
1145         http://bugs.webkit.org/show_bug.cgi?id=15825
1146         [GTK] curl - slow dns causing hangs.
1147
1148         Create a vector of jobs, to satisfy requests in the right order.
1149         Set a limit to the number of simultaneous connections.
1150
1151         * platform/network/curl/ResourceHandleManager.cpp:
1152         (WebCore::maxRunningJobs): added
1153         (WebCore::ResourceHandleManager::ResourceHandleManager):
1154         (WebCore::ResourceHandleManager::removeFromCurl):
1155         (WebCore::ResourceHandleManager::startScheduledJobs):
1156
1157         * platform/network/curl/ResourceHandleManager.h:
1158         (WebCore::ResourceHandleList): removed
1159         (WebCore::ResourceHandleManager::m_runningJobs): added
1160         (WebCore::ResourceHandleManager::m_resourceHandleListHead): removed
1161         (WebCore::ResourceHandleManager::m_resourceHandleList): added
1162
1163 2007-12-08  Sam Weinig  <sam@webkit.org>
1164
1165         Reviewed by Oliver.
1166
1167         Cleanup kjs_window.h/cpp.
1168
1169         * bindings/js/kjs_window.cpp:
1170         (KJS::WindowPrivate::WindowPrivate):
1171         (KJS::DOMWindowTimer::DOMWindowTimer):
1172         (KJS::Window::Window):
1173         (KJS::Window::retrieveWindow):
1174         (KJS::Window::retrieveActive):
1175         (KJS::Window::retrieve):
1176         (KJS::Window::location):
1177         (KJS::Window::mark):
1178         (KJS::allowPopUp):
1179         (KJS::parseModalDialogFeatures):
1180         (KJS::floatFeature):
1181         (KJS::canShowModalDialog):
1182         (KJS::canShowModalDialogNow):
1183         (KJS::showModalDialog):
1184         (KJS::Window::getValueProperty):
1185         (KJS::Window::getOwnPropertySlot):
1186         (KJS::Window::globalExec):
1187         (KJS::Window::setListener):
1188         (KJS::Window::getListener):
1189         (KJS::Window::findOrCreateJSEventListener):
1190         (KJS::Window::findOrCreateJSUnprotectedEventListener):
1191         (KJS::Window::clearHelperObjectProperties):
1192         (KJS::Window::setCurrentEvent):
1193         (KJS::WindowProtoFuncAToB::callAsFunction):
1194         (KJS::WindowProtoFuncBToA::callAsFunction):
1195         (KJS::WindowProtoFuncOpen::callAsFunction):
1196         (KJS::WindowProtoFuncSetTimeout::callAsFunction):
1197         (KJS::WindowProtoFuncClearTimeout::callAsFunction):
1198         (KJS::WindowProtoFuncSetInterval::callAsFunction):
1199         (KJS::WindowProtoFuncAddEventListener::callAsFunction):
1200         (KJS::WindowProtoFuncRemoveEventListener::callAsFunction):
1201         (KJS::WindowProtoFuncShowModalDialog::callAsFunction):
1202         (KJS::WindowProtoFuncNotImplemented::callAsFunction):
1203         * bindings/js/kjs_window.h:
1204         (KJS::PausedTimeouts::PausedTimeouts):
1205         (KJS::PausedTimeouts::takeTimeouts):
1206         (KJS::ScheduledAction::ScheduledAction):
1207
1208 2007-12-08  Sam Weinig  <sam@webkit.org>
1209
1210         Reviewed by Mitz.
1211
1212         Move window scrolling, moving and resizing methods from KJS::Window
1213         to WebCore::DOMWindow so that there bindings can be autogenerated.
1214
1215         Tests: fast/dom/Window/window-resize-and-move-arguments.html
1216                fast/dom/Window/window-scroll-arguments.html
1217
1218         * WebCore.xcodeproj/project.pbxproj:
1219         * bindings/js/kjs_window.cpp:
1220         (KJS::Window::getValueProperty): Remove extraneous allowsAccessFrom check.
1221         (KJS::WindowProtoFuncOpen::callAsFunction):
1222         (KJS::WindowProtoFuncNotImplemented::callAsFunction): Remove extraneous allowsAccessFrom check.
1223         * bindings/js/kjs_window.h:
1224         * bindings/scripts/CodeGeneratorJS.pm: Add new extended attribute
1225         to ensure that the no less than the declared number of attributes
1226         is allowed.
1227         * page/DOMWindow.cpp:
1228         (WebCore::DOMWindow::adjustWindowRect): Moved from kjs_window.
1229         (WebCore::DOMWindow::scrollBy):
1230         (WebCore::DOMWindow::scrollTo):
1231         (WebCore::DOMWindow::moveBy):
1232         (WebCore::DOMWindow::moveTo):
1233         (WebCore::DOMWindow::resizeBy):
1234         (WebCore::DOMWindow::resizeTo):
1235         * page/DOMWindow.h:
1236         (WebCore::DOMWindow::scroll):
1237         * page/DOMWindow.idl:
1238
1239 2007-12-08  Kevin Ollivier  <kevino@theolliviers.com>
1240
1241         Reviewed by Alp Toker.
1242
1243         http://bugs.webkit.org/show_bug.cgi?id=14651
1244         [CURL] didReceiveResponse() only called for HTTP loads
1245
1246         http://bugs.webkit.org/show_bug.cgi?id=14583
1247         [GDK] file:// relative CSS include URLs handled incorrectly
1248
1249         Make sure CURL sets the ResourceResponse URL and calls
1250         didReceiveResponse for local files too. 
1251
1252         * platform/network/curl/ResourceHandleManager.cpp:
1253         (WebCore::writeCallback):
1254
1255 2007-12-08  Oliver Hunt  <oliver@apple.com>
1256
1257         Reviewed by Sam W.
1258
1259         Split the ENABLE_SVG_EXPERIMENTAL_FEATURES flag into separate flags.
1260         
1261         Fixes <rdar://problem/5620249> Must disable SVG animation
1262         <rdar://problem/5612772> Disable SVG filters on Mac to match Windows behavior
1263         
1264         In order to allow finer grained control over the set of SVG features
1265         this patch splits ENABLE_SVG_EXPERIMENTAL_FEATURES into the following
1266         distinct flags:
1267         ENABLE_SVG_ANIMATION
1268         ENABLE_SVG_FILTERS
1269         ENABLE_SVG_FONTS
1270         ENABLE_SVG_AS_IMAGE
1271         ENABLE_SVG_USE
1272         
1273         by default only ENABLE_SVG_AS_IMAGE and ENABLE_SVG_USE are set.
1274
1275         * Configurations/WebCore.xcconfig:
1276         * DerivedSources.make:
1277           Handle the increased number of build flags that may be necessary
1278           
1279         * WebCore.SVG.Animation.exp: Added.
1280         * WebCore.SVG.Filters.exp: Added.
1281         * WebCore.SVG.exp:
1282           We now may not need the animation or filter exports so 
1283           these need to be separate.
1284           
1285         * WebCore.vcproj/WebCore.vcproj:
1286         * WebCore.vcproj/build-generated-files.sh:
1287           Update for new flags
1288           
1289         Remainder of changes are to swap ENABLE(SVG_EXPERIMENTAL_FEATURES) 
1290         with the appropriate specific feature flag.  
1291         * bindings/js/JSSVGElementWrapperFactory.cpp:
1292         (WebCore::createJSSVGWrapper):
1293         * bindings/objc/DOM.mm:
1294         (WebCore::createElementClassMap):
1295         * dom/make_names.pl:
1296         * loader/CachedImage.cpp:
1297         (WebCore::CachedImage::createImage):
1298         * page/DOMWindow.idl:
1299         * rendering/RenderPath.cpp:
1300         (WebCore::RenderPath::absoluteClippedOverflowRect):
1301         * rendering/RenderSVGContainer.cpp:
1302         (WebCore::RenderSVGContainer::absoluteClippedOverflowRect):
1303         * rendering/RenderSVGImage.cpp:
1304         (WebCore::RenderSVGImage::absoluteClippedOverflowRect):
1305         * rendering/RenderSVGRoot.cpp:
1306         (WebCore::RenderSVGRoot::paint):
1307         (WebCore::RenderSVGRoot::absoluteClippedOverflowRect):
1308         * rendering/RenderSVGText.cpp:
1309         (WebCore::RenderSVGText::absoluteClippedOverflowRect):
1310         * rendering/SVGRenderSupport.cpp:
1311         (WebCore::prepareToRenderSVGContent):
1312         (WebCore::finishRenderSVGContent):
1313         * svg/SVGAnimateElement.cpp:
1314         * svg/SVGAnimateElement.h:
1315         * svg/SVGAnimateElement.idl:
1316         * svg/SVGAnimateMotionElement.cpp:
1317         * svg/SVGAnimateMotionElement.h:
1318         * svg/SVGAnimateTransformElement.cpp:
1319         * svg/SVGAnimateTransformElement.h:
1320         * svg/SVGAnimateTransformElement.idl:
1321         * svg/SVGComponentTransferFunctionElement.cpp:
1322         * svg/SVGComponentTransferFunctionElement.h:
1323         * svg/SVGComponentTransferFunctionElement.idl:
1324         * svg/SVGDocumentExtensions.cpp:
1325         (WebCore::SVGDocumentExtensions::startAnimations):
1326         * svg/SVGFEBlendElement.cpp:
1327         * svg/SVGFEBlendElement.h:
1328         * svg/SVGFEBlendElement.idl:
1329         * svg/SVGFEColorMatrixElement.cpp:
1330         * svg/SVGFEColorMatrixElement.h:
1331         * svg/SVGFEColorMatrixElement.idl:
1332         * svg/SVGFEComponentTransferElement.cpp:
1333         * svg/SVGFEComponentTransferElement.h:
1334         * svg/SVGFEComponentTransferElement.idl:
1335         * svg/SVGFECompositeElement.cpp:
1336         * svg/SVGFECompositeElement.h:
1337         * svg/SVGFECompositeElement.idl:
1338         * svg/SVGFEDiffuseLightingElement.cpp:
1339         * svg/SVGFEDiffuseLightingElement.h:
1340         * svg/SVGFEDiffuseLightingElement.idl:
1341         * svg/SVGFEDisplacementMapElement.cpp:
1342         * svg/SVGFEDisplacementMapElement.h:
1343         * svg/SVGFEDisplacementMapElement.idl:
1344         * svg/SVGFEDistantLightElement.cpp:
1345         * svg/SVGFEDistantLightElement.h:
1346         * svg/SVGFEDistantLightElement.idl:
1347         * svg/SVGFEFloodElement.cpp:
1348         * svg/SVGFEFloodElement.h:
1349         * svg/SVGFEFloodElement.idl:
1350         * svg/SVGFEFuncAElement.cpp:
1351         * svg/SVGFEFuncAElement.h:
1352         * svg/SVGFEFuncAElement.idl:
1353         * svg/SVGFEFuncBElement.cpp:
1354         * svg/SVGFEFuncBElement.h:
1355         * svg/SVGFEFuncBElement.idl:
1356         * svg/SVGFEFuncGElement.cpp:
1357         * svg/SVGFEFuncGElement.h:
1358         * svg/SVGFEFuncGElement.idl:
1359         * svg/SVGFEFuncRElement.cpp:
1360         * svg/SVGFEFuncRElement.h:
1361         * svg/SVGFEFuncRElement.idl:
1362         * svg/SVGFEGaussianBlurElement.cpp:
1363         * svg/SVGFEGaussianBlurElement.h:
1364         * svg/SVGFEGaussianBlurElement.idl:
1365         * svg/SVGFEImageElement.cpp:
1366         * svg/SVGFEImageElement.h:
1367         * svg/SVGFEImageElement.idl:
1368         * svg/SVGFELightElement.cpp:
1369         * svg/SVGFELightElement.h:
1370         * svg/SVGFEMergeElement.cpp:
1371         * svg/SVGFEMergeElement.h:
1372         * svg/SVGFEMergeElement.idl:
1373         * svg/SVGFEMergeNodeElement.cpp:
1374         * svg/SVGFEMergeNodeElement.h:
1375         * svg/SVGFEMergeNodeElement.idl:
1376         * svg/SVGFEOffsetElement.cpp:
1377         * svg/SVGFEOffsetElement.h:
1378         * svg/SVGFEOffsetElement.idl:
1379         * svg/SVGFEPointLightElement.cpp:
1380         * svg/SVGFEPointLightElement.h:
1381         * svg/SVGFEPointLightElement.idl:
1382         * svg/SVGFESpecularLightingElement.cpp:
1383         * svg/SVGFESpecularLightingElement.h:
1384         * svg/SVGFESpecularLightingElement.idl:
1385         * svg/SVGFESpotLightElement.cpp:
1386         * svg/SVGFESpotLightElement.h:
1387         * svg/SVGFESpotLightElement.idl:
1388         * svg/SVGFETileElement.cpp:
1389         * svg/SVGFETileElement.h:
1390         * svg/SVGFETileElement.idl:
1391         * svg/SVGFETurbulenceElement.cpp:
1392         * svg/SVGFETurbulenceElement.h:
1393         * svg/SVGFETurbulenceElement.idl:
1394         * svg/SVGFilterElement.cpp:
1395         * svg/SVGFilterElement.h:
1396         * svg/SVGFilterElement.idl:
1397         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
1398         * svg/SVGTimer.cpp:
1399         (WebCore::SVGTimer::animationsByElement):
1400         * svg/SVGUseElement.cpp:
1401         (WebCore::SVGUseElement::buildPendingResource):
1402         (WebCore::SVGUseElement::associateInstancesWithShadowTreeElements):
1403         * svg/SVGUseElement.h:
1404         * svg/TimeScheduler.cpp:
1405         (WebCore::TimeScheduler::connectIntervalTimer):
1406         (WebCore::TimeScheduler::disconnectIntervalTimer):
1407         * svg/graphics/SVGResourceFilter.cpp:
1408         * svg/graphics/SVGResourceFilter.h:
1409         * svg/graphics/cg/SVGResourceFilterCg.cpp:
1410         * svg/graphics/cg/SVGResourceFilterCg.mm:
1411         * svg/graphics/filters/SVGDistantLightSource.h:
1412         * svg/graphics/filters/SVGFEBlend.cpp:
1413         * svg/graphics/filters/SVGFEBlend.h:
1414         * svg/graphics/filters/SVGFEColorMatrix.cpp:
1415         * svg/graphics/filters/SVGFEColorMatrix.h:
1416         * svg/graphics/filters/SVGFEComponentTransfer.cpp:
1417         * svg/graphics/filters/SVGFEComponentTransfer.h:
1418         * svg/graphics/filters/SVGFEComposite.cpp:
1419         * svg/graphics/filters/SVGFEComposite.h:
1420         * svg/graphics/filters/SVGFEConvolveMatrix.cpp:
1421         * svg/graphics/filters/SVGFEConvolveMatrix.h:
1422         * svg/graphics/filters/SVGFEDiffuseLighting.cpp:
1423         * svg/graphics/filters/SVGFEDiffuseLighting.h:
1424         * svg/graphics/filters/SVGFEDisplacementMap.cpp:
1425         * svg/graphics/filters/SVGFEDisplacementMap.h:
1426         * svg/graphics/filters/SVGFEFlood.cpp:
1427         * svg/graphics/filters/SVGFEFlood.h:
1428         * svg/graphics/filters/SVGFEGaussianBlur.cpp:
1429         * svg/graphics/filters/SVGFEGaussianBlur.h:
1430         * svg/graphics/filters/SVGFEImage.cpp:
1431         * svg/graphics/filters/SVGFEImage.h:
1432         * svg/graphics/filters/SVGFEMerge.cpp:
1433         * svg/graphics/filters/SVGFEMerge.h:
1434         * svg/graphics/filters/SVGFEMorphology.cpp:
1435         * svg/graphics/filters/SVGFEMorphology.h:
1436         * svg/graphics/filters/SVGFEOffset.cpp:
1437         * svg/graphics/filters/SVGFEOffset.h:
1438         * svg/graphics/filters/SVGFESpecularLighting.cpp:
1439         * svg/graphics/filters/SVGFESpecularLighting.h:
1440         * svg/graphics/filters/SVGFETile.h:
1441         * svg/graphics/filters/SVGFETurbulence.cpp:
1442         * svg/graphics/filters/SVGFETurbulence.h:
1443         * svg/graphics/filters/SVGFilterEffect.cpp:
1444         * svg/graphics/filters/SVGFilterEffect.h:
1445         * svg/graphics/filters/SVGLightSource.cpp:
1446         * svg/graphics/filters/SVGLightSource.h:
1447         * svg/graphics/filters/SVGPointLightSource.h:
1448         * svg/graphics/filters/SVGSpotLightSource.h:
1449         * svg/graphics/filters/cg/SVGFEBlendCg.mm:
1450         * svg/graphics/filters/cg/SVGFEColorMatrixCg.mm:
1451         * svg/graphics/filters/cg/SVGFEComponentTransferCg.mm:
1452         * svg/graphics/filters/cg/SVGFECompositeCg.mm:
1453         * svg/graphics/filters/cg/SVGFEDiffuseLightingCg.mm:
1454         * svg/graphics/filters/cg/SVGFEDisplacementMapCg.mm:
1455         * svg/graphics/filters/cg/SVGFEFloodCg.mm:
1456         * svg/graphics/filters/cg/SVGFEGaussianBlurCg.mm:
1457         * svg/graphics/filters/cg/SVGFEHelpersCg.h:
1458         * svg/graphics/filters/cg/SVGFEHelpersCg.mm:
1459         * svg/graphics/filters/cg/SVGFEImageCg.mm:
1460         * svg/graphics/filters/cg/SVGFEMergeCg.mm:
1461         * svg/graphics/filters/cg/SVGFEOffsetCg.mm:
1462         * svg/graphics/filters/cg/SVGFESpecularLightingCg.mm:
1463         * svg/graphics/filters/cg/SVGFETileCg.mm:
1464         * svg/graphics/filters/cg/SVGFilterEffectCg.mm:
1465         * svg/graphics/filters/cg/WKArithmeticFilter.h:
1466         * svg/graphics/filters/cg/WKArithmeticFilter.m:
1467         * svg/graphics/filters/cg/WKComponentMergeFilter.h:
1468         * svg/graphics/filters/cg/WKComponentMergeFilter.m:
1469         * svg/graphics/filters/cg/WKDiffuseLightingFilter.h:
1470         * svg/graphics/filters/cg/WKDiffuseLightingFilter.m:
1471         * svg/graphics/filters/cg/WKDiscreteTransferFilter.h:
1472         * svg/graphics/filters/cg/WKDiscreteTransferFilter.m:
1473         * svg/graphics/filters/cg/WKDisplacementMapFilter.h:
1474         * svg/graphics/filters/cg/WKDisplacementMapFilter.m:
1475         * svg/graphics/filters/cg/WKDistantLightFilter.h:
1476         * svg/graphics/filters/cg/WKDistantLightFilter.m:
1477         * svg/graphics/filters/cg/WKGammaTransferFilter.h:
1478         * svg/graphics/filters/cg/WKGammaTransferFilter.m:
1479         * svg/graphics/filters/cg/WKIdentityTransferFilter.h:
1480         * svg/graphics/filters/cg/WKIdentityTransferFilter.m:
1481         * svg/graphics/filters/cg/WKLinearTransferFilter.h:
1482         * svg/graphics/filters/cg/WKLinearTransferFilter.m:
1483         * svg/graphics/filters/cg/WKNormalMapFilter.h:
1484         * svg/graphics/filters/cg/WKNormalMapFilter.m:
1485         * svg/graphics/filters/cg/WKPointLightFilter.h:
1486         * svg/graphics/filters/cg/WKPointLightFilter.m:
1487         * svg/graphics/filters/cg/WKSpecularLightingFilter.h:
1488         * svg/graphics/filters/cg/WKSpecularLightingFilter.m:
1489         * svg/graphics/filters/cg/WKSpotLightFilter.h:
1490         * svg/graphics/filters/cg/WKSpotLightFilter.m:
1491         * svg/graphics/filters/cg/WKTableTransferFilter.h:
1492         * svg/graphics/filters/cg/WKTableTransferFilter.m:
1493         * svg/graphics/mac/SVGResourceFilterPlatformDataMac.h:
1494         * svg/graphics/mac/SVGResourceFilterPlatformDataMac.mm:
1495         * svg/svgtags.in:
1496
1497 2007-12-08  Dan Bernstein  <mitz@apple.com>
1498
1499         Reviewed by Adele Peterson.
1500
1501         - fix two bugs in parsing of stylesheets in <style> elements created by
1502           the parser:
1503           1. each such stylesheet is parsed twice, once when the text node is
1504              added and again when the </style> tag is reached
1505           2. re-inserting such a <style> element into the document fails to
1506              re-parse and apply its stylesheet.
1507
1508         Test for bug #2: fast/dom/HTMLStyleElement/insert-parser-generated.html
1509
1510         * html/HTMLStyleElement.cpp:
1511         (WebCore::HTMLStyleElement::finishedParsing):
1512         * svg/SVGStyleElement.cpp:
1513         (WebCore::SVGStyleElement::finishedParsing):
1514
1515 2007-12-07  Sam Weinig  <sam@webkit.org>
1516
1517         Reviewed by Darin.
1518
1519         - Removes the faulty isSafeScript implementation that was only
1520           used for plugins.
1521         - Renames isSafeScript to allowsAccessFrom.
1522
1523         * bindings/js/JSDOMWindowCustom.cpp:
1524         (WebCore::JSDOMWindow::customGetOwnPropertySlot):
1525         (WebCore::JSDOMWindow::customPut):
1526         * bindings/js/kjs_dom.cpp:
1527         (WebCore::checkNodeSecurity):
1528         * bindings/js/kjs_window.cpp:
1529         (KJS::createWindow):
1530         (KJS::Window::getValueProperty):
1531         (KJS::Window::namedItemGetter):
1532         (KJS::Window::getOwnPropertySlot):
1533         (KJS::Window::put):
1534         (KJS::Window::allowsAccessFrom):
1535         (KJS::Window::setListener):
1536         (KJS::Window::getListener):
1537         (KJS::WindowProtoFuncOpen::callAsFunction):
1538         (KJS::WindowProtoFuncSetTimeout::callAsFunction):
1539         (KJS::WindowProtoFuncClearTimeout::callAsFunction):
1540         (KJS::WindowProtoFuncSetInterval::callAsFunction):
1541         (KJS::WindowProtoFuncAddEventListener::callAsFunction):
1542         (KJS::WindowProtoFuncRemoveEventListener::callAsFunction):
1543         (KJS::WindowProtoFuncNotImplemented::callAsFunction):
1544         (KJS::Location::getOwnPropertySlot):
1545         (KJS::Location::put):
1546         (KJS::LocationProtoFuncReplace::callAsFunction):
1547         (KJS::LocationProtoFuncReload::callAsFunction):
1548         (KJS::LocationProtoFuncAssign::callAsFunction):
1549         (KJS::LocationProtoFuncToString::callAsFunction):
1550         * bindings/js/kjs_window.h:
1551         (KJS::Window::allowsAccessFrom):
1552         * bindings/objc/WebScriptObject.mm:
1553         (-[WebScriptObject _isSafeScript]): Reverse caller/argument of allowsAccessFrom to match
1554         the new call.
1555         * bindings/scripts/CodeGeneratorJS.pm:
1556
1557 2007-12-08  Rob Buis  <buis@kde.org>
1558
1559         Reviewed by Darin.
1560
1561         http://bugs.webkit.org/show_bug.cgi?id=15464
1562         SVGLengthList allows bad values
1563
1564         Be more strict with svg lengths without a unit identifier.
1565
1566         Test: svg/custom/invalid-lengthlist.svg
1567
1568         * svg/SVGLength.cpp:
1569         (WebCore::SVGLength::setValueAsString):
1570
1571 2007-12-08  Rob Buis  <buis@kde.org>
1572
1573         Mac Tiger build fix.
1574
1575         Use the wtf prefix when including MathExtras.h.
1576
1577         * rendering/RenderMedia.cpp:
1578
1579 2007-12-08  Alp Toker  <alp@atoker.com>
1580
1581         GTK+ build fix (for ENABLE_VIDEO builds):
1582
1583         Include MathExtras.h to get isfinite().
1584
1585         * rendering/RenderMedia.cpp:
1586
1587 2007-12-08  Rob Buis  <buis@kde.org>
1588
1589         Reviewed by Darin.
1590
1591         http://bugs.webkit.org/show_bug.cgi?id=15528
1592         svg_dynamic_cast should be removed
1593
1594         Replace svg_dynamic_cast with a combination of
1595         isSVGElement and static_cast.
1596
1597         * rendering/SVGRootInlineBox.cpp:
1598         (WebCore::SVGRootInlineBox::buildLayoutInformation):
1599         (WebCore::SVGRootInlineBox::buildTextChunks):
1600         * svg/SVGAnimationElement.cpp:
1601         (WebCore::SVGAnimationElement::targetElement):
1602         * svg/SVGElement.h:
1603         * svg/SVGElementInstance.cpp:
1604         (WebCore::SVGElementInstance::updateInstance):
1605         * svg/SVGFilterElement.cpp:
1606         (WebCore::SVGFilterElement::canvasResource):
1607         * svg/SVGGradientElement.cpp:
1608         (WebCore::SVGGradientElement::buildStops):
1609         * svg/SVGLocatable.cpp:
1610         (WebCore::SVGLocatable::getTransformToElement):
1611         * svg/SVGMaskElement.cpp:
1612         (WebCore::SVGMaskElement::drawMaskerContent):
1613         * svg/SVGSwitchElement.cpp:
1614         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
1615         * svg/SVGUseElement.cpp:
1616         (WebCore::SVGUseElement::insertedIntoDocument):
1617         (WebCore::SVGUseElement::buildPendingResource):
1618         (WebCore::SVGUseElement::buildInstanceTree):
1619         (WebCore::SVGUseElement::handleDeepUseReferencing):
1620         (WebCore::SVGUseElement::buildShadowTree):
1621         (WebCore::SVGUseElement::expandUseElementsInShadowTree):
1622         (WebCore::SVGUseElement::associateInstancesWithShadowTreeElements):
1623         * svg/graphics/SVGResource.cpp:
1624         (WebCore::getResourceById):
1625
1626 2007-12-07  Antti Koivisto  <antti@apple.com>
1627
1628         Reviewed by Adele.
1629         
1630         Partial fix for <rdar://problem/5633400>
1631         Transformed <video>, <img>, <embed> are not clipped correctly until a repaint is forced
1632         
1633         Fix video painting when transform is applied.
1634
1635         Test: media/video-transformed.html
1636
1637         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1638         (WebCore::MediaPlayerPrivate::paint):
1639
1640 2007-12-07  Dan Bernstein  <mitz@apple.com>
1641
1642         Reviewed by Sam Weinig.
1643
1644         - fix http://bugs.webkit.org/show_bug.cgi?id=16348
1645           @font-face does not affect the default style
1646
1647         Test: fast/css/font-face-default-font.html
1648
1649         * dom/Document.cpp:
1650         (WebCore::Document::recalcStyle): Pass our font selector to
1651         Font::update() if we already have one.
1652
1653 2007-12-07  Darin Adler  <darin@apple.com>
1654
1655         - fix Windows build
1656
1657         * bridge/win/GlobalHistoryWin.cpp:
1658         (WebCore::historyContains): Missed a rename.
1659
1660 2007-12-07  Brady Eidson  <beidson@apple.com>
1661
1662         Reviewed by Anders and Darin
1663
1664         When a statement bumps up against the quota and the UI Delegate grants more space, we need to
1665         actually set the new maximum size on the SQLiteDatabase (in addition to storing the new max quota
1666         in the DatabaseTracker, which was already done)
1667
1668         * storage/SQLTransaction.cpp:
1669         (WebCore::SQLTransaction::runStatements): If a statement is being retried, set the maximum size on
1670           the SQLiteDatabase to the new maximum size
1671
1672 2007-12-07  Darin Adler  <darin@apple.com>
1673
1674         - fix Tiger build
1675
1676         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: Tiger didn't even have
1677         QTKIT_VERSION_MAX_ALLOWED, so add logic to work without that.
1678
1679 2007-12-07  Darin Adler  <darin@apple.com>
1680
1681         - fix 64-bit build, hopefully without breaking Tiger build
1682
1683         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1684         (WebCore::MediaPlayerPrivate::updateStates):
1685         Don't use Movies.h constants that are nonexistent in 64-bit.
1686         Define the new QTMovie.h constants, though, when using an older QTKit.
1687
1688 2007-12-07  Brady Eidson  <beidson@apple.com>
1689
1690         Reviewed by Anders
1691
1692         Fix <rdar://problem/5636115> - Prompted for quota increase to create database when it already existed
1693
1694         * storage/DatabaseTracker.cpp:
1695         (WebCore::DatabaseTracker::canEstablishDatabase): Check hasEntryForDatabase before doing any prompting
1696         (WebCore::DatabaseTracker::hasEntryForDatabase): Check and see if this database already exists
1697         * storage/DatabaseTracker.h:
1698
1699 2007-12-07  Darin Adler  <darin@apple.com>
1700
1701         Reviewed by Mitz.
1702
1703         - http://bugs.webkit.org/show_bug.cgi?id=15981
1704           speed up visited-link code a bit
1705
1706         * bridge/GlobalHistory.h: Change historyContains to take a character pointer plus length
1707         instead of requiring a DeprecatedString.
1708
1709         * bridge/mac/GlobalHistoryMac.mm: (WebCore::historyContains): Updated for above change.
1710         Also removes pointless "fast Latin-1" case that was never used.
1711         * bridge/win/GlobalHistoryWin.cpp: (WebCore::historyContains): Ditto.
1712         * platform/gtk/TemporaryLinkStubs.cpp: (WebCore::historyContains): Ditto.
1713         * platform/wx/TemporaryLinkStubs.cpp: (WebCore::historyContains): Ditto.
1714
1715         * css/CSSStyleSelector.cpp:
1716         (WebCore::findHash): Added. Helper for cleanpath.
1717         (WebCore::findSlashDotDotSlash): Ditto.
1718         (WebCore::findSlashSlash): Ditto.
1719         (WebCore::findSlashDotSlash): Ditto.
1720         (WebCore::cleanpath): Changed to use fast helper functions instead of slower general-purpose
1721         DeprecatedString find function.
1722         (WebCore::containsColonSlashSlash): Added. Helper for checkPseudoState.
1723         (WebCore::checkPseudoState): Got rid of reference count churn by using an AtomicString*
1724         instead of an AtomicString for the attribute value. Changed to use fast helper function
1725         instead of slower DeprecatedString::contains function, and also made the fast case not
1726         bother allocating a DeprecatedConstString.
1727
1728         - unrelated tiny cleanup
1729
1730         * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
1731         (WebCore::releaseCachedStops): Use static_cast instead of reinterpret_cast.
1732         (WebCore::cgGradientCallback): Ditto.
1733
1734 2007-12-07  Darin Adler  <darin@apple.com>
1735
1736         Fix build on Tiger (Mark Rowe told me how).
1737
1738         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1739         Include <objc/objc-runtime.h>, which existed back on Tiger,
1740         rather than <objc/runtime.h>, which did not.
1741
1742 2007-12-07  Geoffrey Garen  <ggaren@apple.com>
1743
1744         Build fix: rolling out last build fix to change #include path.
1745
1746         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1747
1748 2007-12-07  Steve Falkenburg  <sfalken@apple.com>
1749
1750         Re-named our B&I flag from BUILDBOT to PRODUCTION.
1751
1752         Reviewed by Sam Weinig.
1753
1754         * WebCore.vcproj/WebCore.make:
1755
1756 2007-12-07  Geoffrey Garen  <ggaren@apple.com>
1757
1758         Build fix: corrected #include path.
1759
1760         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1761
1762 2007-12-07  Geoffrey Garen  <ggaren@apple.com>
1763
1764         Reviewed by Sam Weinig.
1765
1766         Added some namespace qualifications and a forwarding header, now that
1767         KJS::Node is sometimes #included in WebCore by JavaScriptCore headers.
1768
1769         * ForwardingHeaders/wtf/ListRefPtr.h: Added.
1770         * bindings/js/JSXSLTProcessor.cpp:
1771         (KJS::JSXSLTProcessorPrototypeFunctionTransformToFragment::callAsFunction):
1772         * bindings/js/kjs_binding.cpp:
1773         (KJS::ScriptInterpreter::getDOMNodeForDocument):
1774         (KJS::ScriptInterpreter::forgetDOMNodeForDocument):
1775         (KJS::ScriptInterpreter::putDOMNodeForDocument):
1776         (KJS::ScriptInterpreter::markDOMNodesForDocument):
1777         (KJS::ScriptInterpreter::updateDOMNodeDocument):
1778
1779 2007-12-07  Adam Roben  <aroben@apple.com>
1780
1781         Add SoftLinking.h for Windows and use it in a few places
1782
1783         Reviewed by Oliver.
1784
1785         * WebCore.vcproj/WebCore.vcproj: Added new file to project.
1786         * platform/win/PlatformScrollBarSafari.cpp: Use SoftLinking.h.
1787         (WebCore::PlatformScrollbar::PlatformScrollbar): Removed manual
1788         soft-linking calls.
1789         (WebCore::PlatformScrollbar::paintButton): Check for the presence of
1790         the SafariTheme library now that we can't check for the presence of
1791         paintThemePart directly.
1792         (WebCore::PlatformScrollbar::paintTrack): Ditto.
1793         (WebCore::PlatformScrollbar::paintThumb): Ditto.
1794         * platform/win/SoftLinking.h: Copied from WebCore/platform/mac/SoftLinking.h.
1795         * rendering/RenderThemeSafari.cpp: Same basic changes as to
1796         PlatformScrollBarSafari.cpp.
1797         (WebCore::RenderThemeSafari::RenderThemeSafari):
1798         (WebCore::RenderThemeSafari::isControlStyled):
1799         (WebCore::RenderThemeSafari::paintCapsLockIndicator):
1800         * rendering/RenderThemeSafari.h: Removed m_themeDLL member.
1801
1802 2007-12-07  Darin Adler  <darin@apple.com>
1803
1804         Reviewed by Adele.
1805
1806         - fix <rdar://problem/5608795> CrashTracer: 481 crashes in Safari
1807           at WebCore::HTMLSelectElement::saveState const + 152
1808
1809         Test: fast/forms/select-set-inner.html
1810
1811         * dom/ContainerNode.cpp:
1812         (WebCore::ContainerNode::removeChildren): Added a return value, as with other
1813         calls that change children, so we can optimize for the case where it does nothing.
1814         (WebCore::ContainerNode::cloneChildNodes): Changed parameter type to ContainerNode.
1815         * dom/ContainerNode.h: See above.
1816
1817         * html/HTMLOptGroupElement.cpp:
1818         (WebCore::HTMLOptGroupElement::removeChildren): Override removeChildren and call
1819         recalcSelectOptions in that case.
1820         (WebCore::HTMLOptGroupElement::childrenChanged): Override childrenChanged instead of
1821         addChild, for consistency with HTMLSelectElement; no need to override both.
1822         (WebCore::HTMLOptGroupElement::groupLabelText): Made const.
1823         * html/HTMLOptGroupElement.h: See above.
1824
1825         * html/HTMLSelectElement.cpp: Don't override addChild any more, because we already
1826         override childrenChanged, and addChild calls that.
1827         (WebCore::HTMLSelectElement::removeChildren): Override removeChildren and call
1828         recalcSelectOptions in that case.
1829         (WebCore::HTMLSelectElement::recalcListItems): Tightened up the code a little bit
1830         by using a for loop and traverseNextSibling. Also added some new comments and
1831         removed some obsolete ones.
1832         (WebCore::HTMLSelectElement::checkListItems): Added. Debug-only check to make
1833         sure we don't have a stale list items vector.
1834         * html/HTMLSelectElement.h: Changed listItems() to invoke checkListItems().
1835         This will help us catch cases where we have too few calls to setRecalcListItems.
1836
1837 2007-12-07  Dan Bernstein  <mitz@apple.com>
1838
1839         Reviewed by Darin Adler.
1840
1841         - WebCore part of fixing <rdar://problem/5499918> REGRESSION: insertion point in input field with custom border cuts holes in focus ring interior edges
1842
1843         Test: fast/repaint/focus-ring.html
1844
1845         * editing/SelectionController.cpp:
1846         (WebCore::SelectionController::caretRepaintRect): Changed to return just
1847         the caret rect without any padding.
1848         (WebCore::SelectionController::recomputeCaretRect): Changed to repaint
1849         just the caret rect without any padding.
1850         * platform/graphics/GraphicsContext.h: Removed setFocusRingClip() and
1851         clearFocusRingClip().
1852         * platform/graphics/cairo/GraphicsContextCairo.cpp: Ditto.
1853         * platform/graphics/cg/GraphicsContextCG.cpp: Ditto.
1854         * platform/graphics/cg/GraphicsContextPlatformPrivate.h: Removed
1855         m_focusRingClip member.
1856         * platform/graphics/mac/GraphicsContextMac.mm:
1857         (WebCore::GraphicsContext::drawFocusRing): Changed to call
1858         wkDrawFocusRing() once without setting up additional clip. On Leopard,
1859         wkDrawFocusRing() respects the context clip now. On Tiger, a
1860         transparency layer is used to apply clipping to the focus ring.
1861         * platform/graphics/qt/GraphicsContextQt.cpp: Removed focus ring clip
1862         methods and member.
1863         * platform/graphics/wx/GraphicsContextWx.cpp: Ditto.
1864         * platform/mac/WebCoreSystemInterface.h: Removed the clipRect argument
1865         to wkDrawFocusRing().
1866         * platform/mac/WebCoreSystemInterface.mm: Ditto.
1867         * rendering/RenderLayer.cpp:
1868         (WebCore::setClip): Removed call to set the focus ring clip.
1869         (WebCore::restoreClip): Removed call to reset the focus ring clip.
1870
1871 2007-12-07  Darin Adler  <darin@apple.com>
1872
1873         Reviewed by Antti Koivisto and Kevin Decker.
1874
1875         - fix <rdar://problem/5601586> QtKit should be dynamically loaded upon need, not linked at startup
1876
1877         Also did a lot of small tweaks to MediaPlayerPrivateQTKit.
1878
1879         * WebCore.xcodeproj/project.pbxproj: Don't link to QTKit.
1880
1881         * platform/graphics/mac/MediaPlayerPrivateQTKit.h: Omit unneeded includes and declarations.
1882         Made a lot more functions const. Made a few more members private and a couple inline.
1883         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: Added soft linking machinery for all the
1884         things we currently use in QTKit. It's a little more awkward for classes and other data objects
1885         than it is for functions, but still relatively straightforward, with no changes needed to the
1886         client code. Added using namespace directives. Made a cuePointTimerInterval constant and put
1887         it at the top of the file. Use 0 consistently instead of sometimes 0 and sometimes 0.0f.
1888         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): Removed unneeded initialization of RetainPtr
1889         members to nil.
1890         (WebCore::MediaPlayerPrivate::createQTMovie): Use adoptNS instead of autorelease.
1891         (WebCore::MediaPlayerPrivate::createQTMovieView): Ditto. Also use -[NSColor clearColor].
1892         (WebCore::MediaPlayerPrivate::createQTTime): Remove an unneeded type cast that had no effect.
1893         Changed to use long instead of int because that's the type for a QTTime time scale anyway.
1894         (WebCore::MediaPlayerPrivate::duration): Use a static_cast instead of a C-style cast.
1895         (WebCore::MediaPlayerPrivate::currentTime): Ditto. Also merged into a single expression.
1896         (WebCore::MediaPlayerPrivate::cuePointTimerFired): Added code to make a copy of the cue
1897         points set to avoid a potential problem with a set being modified as we iterate it.
1898         (WebCore::MediaPlayerPrivate::bytesLoaded): Removed unneeded null check of m_qtMovie.
1899         (WebCore::MediaPlayerPrivate::updateStates): Instead of comments explaining the numeric
1900         values, used the constants from the headers directly.
1901         (WebCore::MediaPlayerPrivate::getSupportedTypes): Instead of (QTMovieFileTypeOptions)0,
1902         pass the named constant with value 0, QTIncludeCommonTypes. Skipped the intermediate type
1903         of NSString to remove one cast. Replaced C-style cast with reinterpret_cast (arguably
1904         no better). Used RetainPtr instead of explicit CFRelease calls.
1905
1906         * platform/mac/SoftLinking.h: Added macros to do soft linking for classes and for pointers.
1907         It's not quite as automatic as the soft linking we can do for functions, since these define
1908         functions to get the values, so you need to define macros to make what look like variable
1909         accesses turn into function calls. See MediaPlayerPrivateQTKit for the details.
1910
1911         * html/HTMLMediaElement.h:
1912         * html/TimeRanges.h:
1913         * html/VoidCallback.h:
1914         * platform/graphics/MediaPlayer.h:
1915         Use angle brackets for wtf includes. Omit unneeded includes.
1916
1917 2007-12-07  Dan Bernstein  <mitz@apple.com>
1918
1919         Reviewed by Darin Adler.
1920
1921         - fix http://bugs.webkit.org/show_bug.cgi?id=16334
1922           <rdar://problem/5634923> REGRESSION (r28299): Homepage of any DotMac Web Gallery won't load completely
1923
1924         Test: fast/dynamic/subtree-no-common-root-static-y.html
1925
1926         * rendering/RenderObject.cpp:
1927         (WebCore::RenderObject::markContainingBlocksForLayout): Changed the call
1928         to setChildNeedsLayout() to not mark containing blocks and added a
1929         separate call to markContainingBlocksForLayout() that will not schedule
1930         a layout if we are already in the middle of scheduleRelayoutOfSubtree().
1931
1932 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
1933
1934         Reviewed by Darin.
1935
1936         http://bugs.webkit.org/show_bug.cgi?id=16325
1937         <rdar://problem/5632997> REGRESSION: www.xerox.ru doesn't work
1938         
1939         Test: http/tests/misc/empty-cookie.html
1940
1941         * platform/mac/CookieJar.mm:
1942         (WebCore::setCookies): Don't store empty cookies.
1943         (WebCore::cookies): Filter out empty cookies if we have them, as they could have been set
1944         with an earlier version of Leopard!
1945
1946 2007-12-06  Ada Chan  <adachan@apple.com>
1947
1948         Fixed the if statement (ERROR_SUCCESS is 0 and we were actually
1949         returning true when there's an error).
1950
1951         Reviewed by Steve.
1952
1953         * platform/win/FileSystemWin.cpp:
1954         (WebCore::makeAllDirectories):
1955
1956 2007-12-06  Darin Adler  <darin@apple.com>
1957
1958         - fix broken regression test
1959
1960         * bindings/js/kjs_binding.cpp:
1961         (KJS::setDOMException): Oops, this was just supposed to be PERMISSION_DENIED.
1962
1963 2007-12-06  Darin Adler  <darin@apple.com>
1964
1965         Reviewed by Sam Weinig.
1966
1967         - fix http://bugs.webkit.org/show_bug.cgi?id=16332
1968           ObjC DOM exception object descriptions should include the exception name
1969
1970         * WebCore.pro: Added ExceptionCode.cpp.
1971         * WebCore.vcproj/WebCore.vcproj: Added ExceptionCode.cpp.
1972         * WebCore.xcodeproj/project.pbxproj: Added ExceptionCode.cpp.
1973         * WebCoreSources.bkl: Added ExceptionCode.cpp.
1974
1975         * bindings/js/kjs_binding.cpp: (KJS::setDOMException): Moved the code to decompose an
1976         ExceptionCode into ExceptionCode.h/cpp -- getExceptionCodeDescription. Also removed
1977         the many unneeded includes that were here. Had to keep one special case here, for
1978         SECURITY_ERR.
1979
1980         * bindings/objc/ExceptionHandlers.mm: (WebCore::raiseDOMException): Changed to use the
1981         new getExceptionCodeDescription function so that this shares the exception name
1982         information that was previously only available to JavaScript.
1983
1984         * dom/ExceptionCode.cpp: Copied from bindings/js/kjs_binding.cpp.
1985         (WebCore::getExceptionCodeDescription): Added some assertions, and made the function
1986         handle exception names in a slightly more robust way that is not subject to integer
1987         overflow. (Not a real world issue since we should never receive a bad exception code.)
1988
1989         * dom/ExceptionCode.h: Added the ExceptionCodeDescription struct and the
1990         getExceptionCodeDescription function.
1991
1992         * svg/SVGException.h: Added a missing #include and got rid of some comments. Some of
1993         the comments were mildly helpful, but others were incorrect. This now matches the other
1994         exception-related headers such as RangeException.h.
1995
1996 2007-12-06  Brady Eidson  <beidson@apple.com>
1997
1998         Reviewed by Darin
1999
2000         Fixed a glaring bug that would prevent a statement from getting run a second time
2001
2002         * storage/SQLStatement.cpp:
2003         (WebCore::SQLStatement::execute): Clear failure due to quota *before* we check the error
2004           and return early
2005         (WebCore::SQLStatement::clearFailureDueToQuota): Only clear the error if it was a quota error
2006
2007 2007-12-06  Timothy Hatcher  <timothy@apple.com>
2008
2009         Reviewed by Oliver Hunt.
2010
2011         Use keydown instead of keypress so keyIdentifier can be used.
2012
2013         * page/inspector/ConsolePanel.js: Use keydown instead of keypress.
2014         * page/inspector/DatabasePanel.js: Ditto.
2015         * page/inspector/inspector.js: Ditto. Plus call removeEventListener
2016         before deleting windowLoaded.
2017
2018 2007-12-06  Adam Roben  <aroben@apple.com>
2019
2020         Rename FontsTable.plist to FontsList.plist
2021
2022         Rubberstamped by Hyatt.
2023
2024         * platform/graphics/win/FontDatabase.cpp:
2025
2026 2007-12-06  Brady Eidson  <beidson@apple.com>
2027
2028         Reviewed by Darin
2029
2030         Tweaked a comment and a few assertions from my last checkin
2031
2032         * storage/SQLStatement.cpp:
2033         (WebCore::SQLStatement::execute):
2034         (WebCore::SQLStatement::clearFailureDueToQuota):
2035         (WebCore::SQLStatement::lastExecutionFailedDueToQuota):
2036
2037 2007-12-06  Brady Eidson <beidson@apple.com>
2038
2039         Reviewed by Darin
2040
2041         Finished hooking up UI Delegate for databases - Database operations will now enforce a size quota and
2042         will ask the UI Delegate for more space when that quota is met
2043
2044         * platform/sql/SQLiteDatabase.cpp: Add the new SQLResultFull constant
2045         * platform/sql/SQLiteDatabase.h: Ditto
2046
2047         * storage/Database.cpp:
2048         (WebCore::Database::securityOriginData): Added this accessor, copying for thread safety
2049         (WebCore::Database::stringIdentifier): Ditto
2050         * storage/Database.h:
2051
2052         * storage/SQLStatement.cpp:
2053         (WebCore::SQLStatement::SQLStatement):
2054         (WebCore::SQLStatement::execute): Change to return an enum that represents 3 states - success, error, and quota.
2055           If the result is quota, this statement expects that it might be run again, presumably after the user increases 
2056           the quota
2057         (WebCore::SQLStatement::setFailureDueToQuota): Setup a quota failure, including a flag and the error
2058         (WebCore::SQLStatement::clearFailureDueToQuota): Clear a quota failure, for when the statement is rerun
2059         (WebCore::SQLStatement::lastExecutionFailedDueToQuota):
2060         * storage/SQLStatement.h:
2061
2062         * storage/SQLTransaction.cpp:
2063         (WebCore::SQLTransaction::SQLTransaction):
2064         (WebCore::SQLTransaction::performPendingCallback): Added an acceptable callback pointer
2065         (WebCore::SQLTransaction::openTransactionAndPreflight): Setup the quota in the database that will remain for this 
2066           transaction.  Note that in this patch, the quota being set is wrong - it makes sense to fix that in a follow up patch
2067         (WebCore::SQLTransaction::runStatements): Modified to add the ability to re-run a statement based on the UI delegate
2068           decision and whether the current statement was already run
2069         (WebCore::SQLTransaction::runCurrentStatement): Added another result condition - the Quota result - and handle it
2070         (WebCore::SQLTransaction::handleCurrentStatementError): Statements can now error-out from two places, so the code
2071           that handles a statement error was moved here
2072         (WebCore::SQLTransaction::deliverQuotaIncreaseCallback): Added - Consult the UI delegate for more quota, then 
2073           reschedule the current statement on the database thread
2074         * storage/SQLTransaction.h:
2075
2076 2007-12-06  Steve Falkenburg  <sfalken@apple.com>
2077
2078         <rdar://problem/5614257> Crash in timer / hashtable code due to uncaught exception
2079         
2080         Don't use callback-based timers, since these cause Windows to eat Windows crashes
2081         in code the timers call.
2082         
2083         Windows appears to be defending against "shatter" attacks partially by setting
2084         up a structured exception block while dispatching callback-based WM_TIMERs.
2085         
2086         I verified this by adding a divide by zero into some timer callback code.
2087         In the case where the timer was dispatched via a callback, the divide by zero
2088         exception was silently handled and ignored, with execution continuing after
2089         our call to DispatchMessage.  When processed via the WNDPROC, no SEH
2090         block was established by Windows, and our divide by zero generated a real
2091         crash (which is what we wanted).
2092         
2093         Windows handling our crashes for us led us to leave the timer data structures
2094         in an invalid state so the next time a timer was set, we'd crash accessing an
2095         invalid HashMap of timer data.
2096         
2097         Reviewed by Hyatt.
2098
2099         * platform/win/SharedTimerWin.cpp:
2100         (WebCore::TimerWindowWndProc):
2101         (WebCore::setSharedTimerFireTime):
2102
2103 2007-12-06  Adam Roben  <aroben@apple.com>
2104
2105         Fix <rdar://5108390> Feed title is too low in blue banner
2106
2107         Way back in r23069 we started applying the same font ascent hack that
2108         Mac WebKit applies to Helvetica, Times, and Courier. We did this so
2109         that those fonts would match the Mac metrics when we run the
2110         regression tests. However, this hack was applying to Arial on Windows
2111         when a site would specify the Helvetica font face because Windows will
2112         alias the font names. Instead of removing the hack entirely, we
2113         turn it off by default but provide some SPI so that DumpRenderTree can
2114         turn it on.
2115
2116         Reviewed by Hyatt.
2117
2118         All tests pass.
2119
2120         * platform/graphics/FontData.h: Add a new static method to turn on the
2121         hack on Windows only.
2122         * platform/graphics/win/FontDataWin.cpp:
2123         (WebCore::FontData::setShouldApplyMacAscentHack): Added.
2124         (WebCore::FontData::platformInit): Only perform the hack if
2125         shouldApplyMacAscentHack is true.
2126
2127 2007-12-06  Geoffrey Garen  <ggaren@apple.com>
2128
2129         Reviewed by Sam Weinig.
2130
2131         Fixed http://bugs.webkit.org/show_bug.cgi?id=16328
2132         REGRESSION (r28470): Crash expanding a GMail conversation
2133         
2134         * page/Frame.cpp:
2135         (WebCore::Frame::scriptProxy): Only return 0 if JS seems disabled *and*
2136         we haven't created the proxy yet. If we've created the proxy already, a
2137         script may be in the midst of execution, even though we've lost our
2138         settings object. During execution, scripts assume they have free access
2139         to the proxy.
2140
2141 2007-12-06  Adele Peterson  <adele@apple.com>
2142
2143         Reviewed by Oliver.
2144
2145         Fix for <rdar://problem/5631356> Toggling display property on video causes controls to get lost
2146
2147         * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::attach): Call updateFromElement.
2148         * html/HTMLMediaElement.h:
2149
2150 2007-12-05  Antti Koivisto  <antti@apple.com>
2151
2152         Reviewed by Oliver.
2153
2154         Rename
2155
2156         Movie -> MediaPlayer
2157         MoviePrivate -> MediaPlayerPrivate
2158         
2159         Movie is QuickTime terminology and clashes with its C API.
2160
2161         * WebCore.xcodeproj/project.pbxproj:
2162         * html/HTMLMediaElement.cpp:
2163         (WebCore::HTMLMediaElement::HTMLMediaElement):
2164         (WebCore::HTMLMediaElement::~HTMLMediaElement):
2165         (WebCore::HTMLMediaElement::initAndDispatchProgressEvent):
2166         (WebCore::HTMLMediaElement::bufferingRate):
2167         (WebCore::HTMLMediaElement::load):
2168         (WebCore::HTMLMediaElement::mediaPlayerNetworkStateChanged):
2169         (WebCore::HTMLMediaElement::mediaPlayerReadyStateChanged):
2170         (WebCore::HTMLMediaElement::setReadyState):
2171         (WebCore::HTMLMediaElement::progressEventTimerFired):
2172         (WebCore::HTMLMediaElement::seek):
2173         (WebCore::HTMLMediaElement::currentTime):
2174         (WebCore::HTMLMediaElement::duration):
2175         (WebCore::HTMLMediaElement::playbackRate):
2176         (WebCore::HTMLMediaElement::setPlaybackRate):
2177         (WebCore::HTMLMediaElement::play):
2178         (WebCore::HTMLMediaElement::pause):
2179         (WebCore::HTMLMediaElement::setVolume):
2180         (WebCore::HTMLMediaElement::setMuted):
2181         (WebCore::HTMLMediaElement::pickMedia):
2182         (WebCore::HTMLMediaElement::checkIfSeekNeeded):
2183         (WebCore::HTMLMediaElement::mediaPlayerVolumeChanged):
2184         (WebCore::HTMLMediaElement::mediaPlayerTimeChanged):
2185         (WebCore::HTMLMediaElement::mediaPlayerCuePointReached):
2186         (WebCore::HTMLMediaElement::addCuePoint):
2187         (WebCore::HTMLMediaElement::buffered):
2188         (WebCore::HTMLMediaElement::seekable):
2189         (WebCore::HTMLMediaElement::effectiveStart):
2190         (WebCore::HTMLMediaElement::effectiveEnd):
2191         (WebCore::HTMLMediaElement::effectiveLoopStart):
2192         (WebCore::HTMLMediaElement::effectiveLoopEnd):
2193         (WebCore::HTMLMediaElement::updateMediaPlayer):
2194         (WebCore::HTMLMediaElement::willSaveToCache):
2195         * html/HTMLMediaElement.h:
2196         (WebCore::HTMLMediaElement::player):
2197         * html/HTMLVideoElement.cpp:
2198         (WebCore::HTMLVideoElement::videoWidth):
2199         (WebCore::HTMLVideoElement::videoHeight):
2200         * platform/MIMETypeRegistry.cpp:
2201         (WebCore::initialiseSupportedMediaMIMETypes):
2202         (WebCore::MIMETypeRegistry::isSupportedMediaMIMEType):
2203         (WebCore::MIMETypeRegistry::getSupportedMediaMIMETypes):
2204         * platform/MIMETypeRegistry.h:
2205         * platform/graphics/MediaPlayer.cpp: Copied from WebCore/platform/graphics/Movie.cpp.
2206         (WebCore::MediaPlayer::MediaPlayer):
2207         (WebCore::MediaPlayer::~MediaPlayer):
2208         (WebCore::MediaPlayer::load):
2209         (WebCore::MediaPlayer::cancelLoad):
2210         (WebCore::MediaPlayer::play):
2211         (WebCore::MediaPlayer::pause):
2212         (WebCore::MediaPlayer::duration):
2213         (WebCore::MediaPlayer::currentTime):
2214         (WebCore::MediaPlayer::seek):
2215         (WebCore::MediaPlayer::paused):
2216         (WebCore::MediaPlayer::seeking):
2217         (WebCore::MediaPlayer::naturalSize):
2218         (WebCore::MediaPlayer::hasVideo):
2219         (WebCore::MediaPlayer::networkState):
2220         (WebCore::MediaPlayer::readyState):
2221         (WebCore::MediaPlayer::volume):
2222         (WebCore::MediaPlayer::setVolume):
2223         (WebCore::MediaPlayer::rate):
2224         (WebCore::MediaPlayer::setRate):
2225         (WebCore::MediaPlayer::muted):
2226         (WebCore::MediaPlayer::setMuted):
2227         (WebCore::MediaPlayer::dataRate):
2228         (WebCore::MediaPlayer::setEndTime):
2229         (WebCore::MediaPlayer::addCuePoint):
2230         (WebCore::MediaPlayer::removeCuePoint):
2231         (WebCore::MediaPlayer::clearCuePoints):
2232         (WebCore::MediaPlayer::maxTimeBuffered):
2233         (WebCore::MediaPlayer::maxTimeSeekable):
2234         (WebCore::MediaPlayer::bytesLoaded):
2235         (WebCore::MediaPlayer::totalBytesKnown):
2236         (WebCore::MediaPlayer::totalBytes):
2237         (WebCore::MediaPlayer::setRect):
2238         (WebCore::MediaPlayer::visible):
2239         (WebCore::MediaPlayer::setVisible):
2240         (WebCore::MediaPlayer::paint):
2241         (WebCore::MediaPlayer::getSupportedTypes):
2242         (WebCore::MediaPlayer::networkStateChanged):
2243         (WebCore::MediaPlayer::readyStateChanged):
2244         (WebCore::MediaPlayer::volumeChanged):
2245         (WebCore::MediaPlayer::timeChanged):
2246         (WebCore::MediaPlayer::cuePointReached):
2247         * platform/graphics/MediaPlayer.h: Copied from WebCore/platform/graphics/Movie.h.
2248         (WebCore::MediaPlayerClient::~MediaPlayerClient):
2249         (WebCore::MediaPlayerClient::mediaPlayerNetworkStateChanged):
2250         (WebCore::MediaPlayerClient::mediaPlayerReadyStateChanged):
2251         (WebCore::MediaPlayerClient::mediaPlayerVolumeChanged):
2252         (WebCore::MediaPlayerClient::mediaPlayerTimeChanged):
2253         (WebCore::MediaPlayerClient::mediaPlayerCuePointReached):
2254         * platform/graphics/Movie.cpp: Removed.
2255         * platform/graphics/Movie.h: Removed.
2256         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp: Copied from WebCore/platform/graphics/gtk/MoviePrivateGStreamer.cpp.
2257         (WebCore::mediaPlayerPrivateErrorCallback):
2258         (WebCore::mediaPlayerPrivateEOSCallback):
2259         (WebCore::mediaPlayerPrivateStateCallback):
2260         (WebCore::mediaPlayerPrivateBufferingCallback):
2261         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
2262         (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
2263         (WebCore::MediaPlayerPrivate::load):
2264         (WebCore::MediaPlayerPrivate::play):
2265         (WebCore::MediaPlayerPrivate::pause):
2266         (WebCore::MediaPlayerPrivate::duration):
2267         (WebCore::MediaPlayerPrivate::currentTime):
2268         (WebCore::MediaPlayerPrivate::seek):
2269         (WebCore::MediaPlayerPrivate::setEndTime):
2270         (WebCore::MediaPlayerPrivate::addCuePoint):
2271         (WebCore::MediaPlayerPrivate::removeCuePoint):
2272         (WebCore::MediaPlayerPrivate::clearCuePoints):
2273         (WebCore::MediaPlayerPrivate::startCuePointTimerIfNeeded):
2274         (WebCore::MediaPlayerPrivate::cancelSeek):
2275         (WebCore::MediaPlayerPrivate::cuePointTimerFired):
2276         (WebCore::MediaPlayerPrivate::paused):
2277         (WebCore::MediaPlayerPrivate::seeking):
2278         (WebCore::MediaPlayerPrivate::naturalSize):
2279         (WebCore::MediaPlayerPrivate::hasVideo):
2280         (WebCore::MediaPlayerPrivate::setVolume):
2281         (WebCore::MediaPlayerPrivate::setMuted):
2282         (WebCore::MediaPlayerPrivate::setRate):
2283         (WebCore::MediaPlayerPrivate::dataRate):
2284         (WebCore::MediaPlayerPrivate::networkState):
2285         (WebCore::MediaPlayerPrivate::readyState):
2286         (WebCore::MediaPlayerPrivate::maxTimeBuffered):
2287         (WebCore::MediaPlayerPrivate::maxTimeSeekable):
2288         (WebCore::MediaPlayerPrivate::maxTimeLoaded):
2289         (WebCore::MediaPlayerPrivate::bytesLoaded):
2290         (WebCore::MediaPlayerPrivate::totalBytesKnown):
2291         (WebCore::MediaPlayerPrivate::totalBytes):
2292         (WebCore::MediaPlayerPrivate::cancelLoad):
2293         (WebCore::MediaPlayerPrivate::updateStates):
2294         (WebCore::MediaPlayerPrivate::loadStateChanged):
2295         (WebCore::MediaPlayerPrivate::rateChanged):
2296         (WebCore::MediaPlayerPrivate::sizeChanged):
2297         (WebCore::MediaPlayerPrivate::timeChanged):
2298         (WebCore::MediaPlayerPrivate::volumeChanged):
2299         (WebCore::MediaPlayerPrivate::didEnd):
2300         (WebCore::MediaPlayerPrivate::loadingFailed):
2301         (WebCore::MediaPlayerPrivate::setRect):
2302         (WebCore::MediaPlayerPrivate::setVisible):
2303         (WebCore::MediaPlayerPrivate::paint):
2304         (WebCore::MediaPlayerPrivate::getSupportedTypes):
2305         (WebCore::MediaPlayerPrivate::createGSTPlayBin):
2306         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h: Copied from WebCore/platform/graphics/gtk/MoviePrivateGStreamer.h.
2307         * platform/graphics/gtk/MoviePrivateGStreamer.cpp: Removed.
2308         * platform/graphics/gtk/MoviePrivateGStreamer.h: Removed.
2309         * platform/graphics/mac/MediaPlayerPrivateQTKit.h: Copied from WebCore/platform/graphics/mac/MoviePrivateQTKit.h.
2310         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: Copied from WebCore/platform/graphics/mac/MoviePrivateQTKit.mm.
2311         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
2312         (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
2313         (WebCore::MediaPlayerPrivate::createQTMovie):
2314         (WebCore::MediaPlayerPrivate::createQTMovieView):
2315         (WebCore::MediaPlayerPrivate::createQTTime):
2316         (WebCore::MediaPlayerPrivate::load):
2317         (WebCore::MediaPlayerPrivate::play):
2318         (WebCore::MediaPlayerPrivate::pause):
2319         (WebCore::MediaPlayerPrivate::duration):
2320         (WebCore::MediaPlayerPrivate::currentTime):
2321         (WebCore::MediaPlayerPrivate::seek):
2322         (WebCore::MediaPlayerPrivate::doSeek):
2323         (WebCore::MediaPlayerPrivate::cancelSeek):
2324         (WebCore::MediaPlayerPrivate::seekTimerFired):
2325         (WebCore::MediaPlayerPrivate::setEndTime):
2326         (WebCore::MediaPlayerPrivate::addCuePoint):
2327         (WebCore::MediaPlayerPrivate::removeCuePoint):
2328         (WebCore::MediaPlayerPrivate::clearCuePoints):
2329         (WebCore::MediaPlayerPrivate::startCuePointTimerIfNeeded):
2330         (WebCore::MediaPlayerPrivate::cuePointTimerFired):
2331         (WebCore::MediaPlayerPrivate::paused):
2332         (WebCore::MediaPlayerPrivate::seeking):
2333         (WebCore::MediaPlayerPrivate::naturalSize):
2334         (WebCore::MediaPlayerPrivate::hasVideo):
2335         (WebCore::MediaPlayerPrivate::setVolume):
2336         (WebCore::MediaPlayerPrivate::setMuted):
2337         (WebCore::MediaPlayerPrivate::setRate):
2338         (WebCore::MediaPlayerPrivate::dataRate):
2339         (WebCore::MediaPlayerPrivate::networkState):
2340         (WebCore::MediaPlayerPrivate::readyState):
2341         (WebCore::MediaPlayerPrivate::maxTimeBuffered):
2342         (WebCore::MediaPlayerPrivate::maxTimeSeekable):
2343         (WebCore::MediaPlayerPrivate::maxTimeLoaded):
2344         (WebCore::MediaPlayerPrivate::bytesLoaded):
2345         (WebCore::MediaPlayerPrivate::totalBytesKnown):
2346         (WebCore::MediaPlayerPrivate::totalBytes):
2347         (WebCore::MediaPlayerPrivate::cancelLoad):
2348         (WebCore::MediaPlayerPrivate::updateStates):
2349         (WebCore::MediaPlayerPrivate::loadStateChanged):
2350         (WebCore::MediaPlayerPrivate::rateChanged):
2351         (WebCore::MediaPlayerPrivate::sizeChanged):
2352         (WebCore::MediaPlayerPrivate::timeChanged):
2353         (WebCore::MediaPlayerPrivate::volumeChanged):
2354         (WebCore::MediaPlayerPrivate::didEnd):
2355         (WebCore::MediaPlayerPrivate::setRect):
2356         (WebCore::MediaPlayerPrivate::setVisible):
2357         (WebCore::MediaPlayerPrivate::paint):
2358         (WebCore::MediaPlayerPrivate::getSupportedTypes):
2359         (-[WebCoreMovieObserver initWithCallback:WebCore::]):
2360         * platform/graphics/mac/MoviePrivateQTKit.h: Removed.
2361         * platform/graphics/mac/MoviePrivateQTKit.mm: Removed.
2362         * rendering/RenderMedia.cpp:
2363         (WebCore::RenderMedia::player):
2364         * rendering/RenderMedia.h:
2365         * rendering/RenderVideo.cpp:
2366         (WebCore::RenderVideo::RenderVideo):
2367         (WebCore::RenderVideo::~RenderVideo):
2368         (WebCore::RenderVideo::videoSizeChanged):
2369         (WebCore::RenderVideo::paintReplaced):
2370         (WebCore::RenderVideo::layout):
2371         (WebCore::RenderVideo::updateFromElement):
2372         (WebCore::RenderVideo::updatePlayer):
2373         * rendering/RenderVideo.h:
2374
2375 2007-12-06  Geoffrey Garen  <ggaren@apple.com>
2376
2377         Build fix: access global object directly.
2378
2379         * plugins/win/PluginViewWin.cpp:
2380         (WebCore::PluginViewWin::bindingInstance):
2381
2382 2007-12-06  Mark Rowe  <mrowe@apple.com>
2383
2384         Reviewed by Eric.
2385
2386         Fix bug spotted by GCC 4.2.
2387
2388         * bindings/js/kjs_window.cpp:
2389         (KJS::allowPopUp): Remove extraneous semicolon that completely changed the meaning of allowPopUp.
2390
2391 2007-12-06  Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2392
2393         Reviewed by Alp Toker.
2394
2395         http://bugs.webkit.org/show_bug.cgi?id=16173
2396         Licensing change
2397
2398         Change license from BSD to LGPL.
2399
2400         * platform/gtk/FileSystemGtk.cpp:
2401
2402 2007-12-05  Rob Buis  <buis@kde.org>
2403
2404         Reviewed by Mitz.
2405
2406         http://bugs.webkit.org/show_bug.cgi?id=15289
2407         WebKit does not respect clip paths of a 0x0 rect
2408
2409         Make empty clip paths clip the whole referencing graphic.
2410
2411         * svg/SVGClipPathElement.cpp:
2412         (WebCore::SVGClipPathElement::canvasResource):
2413         * svg/graphics/SVGResourceClipper.h:
2414         (WebCore::ClipDataList::isEmpty):
2415
2416 2007-12-05  Darin Adler  <darin@apple.com>
2417
2418         Reviewed by Maciej.
2419
2420         - fix http://bugs.webkit.org/show_bug.cgi?id=16266
2421           <rdar://problem/5625279> REGRESSION: crash loading CNN.com at
2422           Interpreter::createObjectsForGlobalObjectProperties()
2423
2424         I don't know how to reproduce this in a test.
2425
2426         * bindings/js/JSDocumentCustom.cpp: (WebCore::JSDocument::mark):
2427         Call JSEventTargetNode::mark instead of DOMObject::mark. There's no difference
2428         right now, but it's best to call your base class, not your base's base.
2429
2430         * bindings/js/kjs_events.h: Removed unneeded virtual from the
2431         JSUnprotectedEventListener::mark() function; it neither derives from or is
2432         derived from anyone else with a mark() function so there's no need for virtual.
2433
2434         * bindings/js/kjs_window.cpp: (KJS::Window::mark): Call JSGlobalObject::mark,
2435         not JSObject::mark. This is the actual bug fix.
2436
2437 2007-12-05  Pierre-Luc Beaudoin  <pierre-luc.beaudoin@collabora.co.uk>
2438
2439         http://bugs.webkit.org/show_bug.cgi?id=16145
2440         [gtk] Implement media support in GTK backend
2441
2442         Reviewed by Alp Toker.
2443
2444         Remove old comments, fix variable names, match WebKit coding style.
2445
2446         * platform/graphics/gtk/MoviePrivateGStreamer.cpp:
2447         (WebCore::moviePrivateEOSCallback):
2448         (WebCore::MoviePrivate::MoviePrivate):
2449         (WebCore::MoviePrivate::load):
2450         (WebCore::MoviePrivate::play):
2451         (WebCore::MoviePrivate::pause):
2452         (WebCore::MoviePrivate::currentTime):
2453         (WebCore::MoviePrivate::seek):
2454         (WebCore::MoviePrivate::cancelSeek):
2455         (WebCore::MoviePrivate::seeking):
2456         (WebCore::MoviePrivate::naturalSize):
2457         (WebCore::MoviePrivate::setVolume):
2458         (WebCore::MoviePrivate::setMuted):
2459         (WebCore::MoviePrivate::maxTimeBuffered):
2460         (WebCore::MoviePrivate::bytesLoaded):
2461         (WebCore::MoviePrivate::totalBytesKnown):
2462         (WebCore::MoviePrivate::totalBytes):
2463         (WebCore::MoviePrivate::updateStates):
2464         (WebCore::MoviePrivate::didEnd):
2465         (WebCore::MoviePrivate::paint):
2466         (WebCore::MoviePrivate::createGSTPlayBin):
2467         * platform/graphics/gtk/MoviePrivateGStreamer.h:
2468
2469 2007-12-05  Mark Rowe  <mrowe@apple.com>
2470
2471         Speculative wx build fix.  Add PlugInInfoStore::pluginNameForMIMEType to the temporary link stubs.
2472
2473         * platform/wx/TemporaryLinkStubs.cpp:
2474
2475 2007-12-05  Alp Toker  <alp@atoker.com>
2476
2477         Rubber stamped by Mark Rowe.
2478
2479         Remove DEPENDPATH on the generated sources directory. This causes
2480         trouble and is no longer necessary following the glib-genmarshal
2481         generator split.
2482
2483         * WebCore.pro:
2484
2485 2007-12-04  Geoffrey Garen  <ggaren@apple.com>
2486
2487         Reviewed by Darin Adler.
2488
2489         Third step in refactoring JSGlobalObject: Moved data members and data
2490         member access from Interpreter to JSGlobalObject. Changed Interpreter
2491         member functions to static functions. Same for the subclass, 
2492         ScriptInterpreter.
2493         
2494         This is a big change, but it's mostly code motion and renaming.
2495         
2496 2007-12-05  Darin Adler  <darin@apple.com>
2497
2498         "Reviewed" by Geoff.
2499
2500         * loader/FrameLoader.cpp:
2501         (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Removed assertion.
2502         (WebCore::FrameLoader::dispatchDidCommitLoad): This one too.
2503         The assertions are firing like crazy. Not sure why yet.
2504
2505 2007-12-05  Darin Adler  <darin@apple.com>
2506
2507         Reviewed by Adam Roben.
2508
2509         - fix http://bugs.webkit.org/show_bug.cgi?id=16306
2510           Assertion failed in WebCore/loader/FrameLoader.cpp:4642
2511
2512         * loader/FrameLoader.cpp:
2513         (WebCore::FrameLoader::dispatchDidCommitLoad): Check m_creatingInitialEmptyDocument
2514         and don't deliver the client call in that case.
2515
2516 2007-12-05  Mark Rowe  <mrowe@apple.com>
2517
2518         Reviewed by Kevin Decker.
2519
2520         Fix 64-bit debug build.
2521
2522         * platform/text/mac/TextCodecMac.cpp:
2523         (WebCore::TextCodecMac::decode): OSStatus is a long for 32-bit but int on 64-bit,
2524         so we need to cast it to be able to use a single format specifier on both.
2525
2526 2007-12-05  Kevin Decker  <kdecker@apple.com>
2527
2528         Reviewed by Hyatt.
2529
2530         <rdar://problem/5613106> Acordex: REGRESSION (Tiger-Leopard): plug-ins can no longer take over TIFF images (affects uspto.gov)
2531        
2532         * loader/FrameLoader.cpp:
2533         (WebCore::FrameLoader::shouldUsePlugin): Allow plug-ins (with the exception of QuickTime) to
2534         takeover TIFF once again.
2535         
2536 2007-12-05  Luca Bruno  <lethalman88@gmail.com>
2537
2538         Reviewed by Alp Toker.
2539
2540         http://bugs.webkit.org/show_bug.cgi?id=16290
2541         [GTK] Pasting clipboard in rich text.
2542
2543         * platform/gtk/PasteboardGtk.cpp:
2544         (Pasteboard::documentFragment): Implement rich text paste support.
2545
2546 2007-12-05  Adele Peterson  <adele@apple.com>
2547
2548         Reviewed by Hyatt.
2549
2550         Reverting fix for <rdar://problem/5499918> REGRESSION: insertion point in input field with custom border cuts holes in focus ring interior edges
2551
2552         We need to just fix the underlying focus ring repaint problem.
2553
2554         * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::setStyle):
2555
2556 2007-12-04  Kevin McCullough  <kmccullough@apple.com>
2557
2558         Reviewed by Darin.
2559
2560         - <rdar://5621435>
2561         - Security Fix. Instead of having it off by default, WebKit now must
2562         explicitly turn off local-resource restriction when needed for backwards
2563         compatibility reasons.
2564
2565         * loader/FrameLoader.cpp:
2566
2567 2007-12-05  Adam Roben  <aroben@apple.com>
2568
2569         Set the menu item identifier for all menu items
2570
2571         This allows WebKit clients to distinguish between submenus in the
2572         context menu.
2573
2574         Reviewed by Darin.
2575
2576         No test possible.
2577
2578         * platform/win/ContextMenuItemWin.cpp:
2579         (WebCore::ContextMenuItem::ContextMenuItem):
2580
2581 2007-12-05  Dan Bernstein  <mitz@apple.com>
2582
2583         Reviewed by Darin Adler.
2584
2585         - WebCore part of fixing <rdar://problem/5111082> Flash popup video ad doesn't close when clicked at http://www.firestonecompleteautocare.com/
2586
2587         * manual-tests/nested-plug-ins.html: Added.
2588         * manual-tests/resources/nested-plug-ins-inner-frame.html: Added.
2589         * manual-tests/resources/nested-plug-ins-outer-frame.html: Added.
2590         * platform/ScrollView.h:
2591         * platform/Widget.h:
2592         (WebCore::Widget::attachToWindow): Added. Tells the widget that it is connected
2593         via visible ScrollViews to the root ScrollView of the WebView.
2594         (WebCore::Widget::detachFromWindow): Added. Tells the widget that it is no longer
2595         connected via visible ScrollViews to the root ScrollView of the WebView.
2596         * platform/win/ScrollViewWin.cpp:
2597         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate): Added
2598         m_visible and m_attachedToWindow members.
2599         (WebCore::ScrollView::attachToWindow): Added. Attaches all children if this
2600         view is visible.
2601         (WebCore::ScrollView::detachFromWindow): Added. Detaches all children if this
2602         view is visible (otherwise they would be detached already).
2603         (WebCore::ScrollView::show): Added. Attaches all children if this view
2604         is attached.
2605         (WebCore::ScrollView::hide): Added. Detaches all children if this view
2606         is attached (otherwise they would be detached already).
2607         (WebCore::ScrollView::isAttachedToWindow): Added.
2608         * platform/win/WidgetWin.cpp:
2609         (WebCore::Widget::setParent): Added calls to attachToWindow() and detachFromWindow()
2610         depending on whether the parent is set and attached or not.
2611         * plugins/win/PluginViewWin.cpp:
2612         (WebCore::PluginViewWin::setFocus):
2613         (WebCore::PluginViewWin::show): Changed to show the plug-in only if
2614         this view is attached.
2615         (WebCore::PluginViewWin::hide): Changed to hide the plug-in only if this
2616         view is attached (otherwise it would be hidden already).
2617         (WebCore::PluginViewWin::attachToWindow): Added. Shows the plug-in if this view
2618         is visible.
2619         (WebCore::PluginViewWin::detachFromWindow): Added. Hides the plug-in if this view
2620         is visible (otherwise it would be hidden already).
2621         (WebCore::PluginViewWin::PluginViewWin):
2622         * plugins/win/PluginViewWin.h: Added m_attachedToWindow member.
2623
2624 2007-12-04  Alp Toker  <alp@atoker.com>
2625
2626         Potential GTK+ build fix for the glib-genmarshal issue.
2627
2628         Split the glib-genmarshal qmake generator in two; one for the source
2629         file, another for the header.
2630
2631         * WebCore.pro:
2632
2633 2007-12-04  Alp Toker  <alp@atoker.com>
2634
2635         GTK+ build fix.
2636
2637         * platform/PlugInInfoStore.h:
2638
2639 2007-12-04  Kevin Decker  <kdecker@apple.com>
2640
2641         Reviewed by Anders.
2642
2643         <rdar://problem/5629125> PluginInfoStore needs the ability to return the name of a plug-in for a given MIME type
2644
2645         * page/mac/WebCoreViewFactory.h: Added pluginNameForMIMEType: method.
2646         * platform/PlugInInfoStore.h:
2647         * platform/gtk/TemporaryLinkStubs.cpp: Added stub version of pluginNameForMIMEType.
2648         (PlugInInfoStore::pluginNameForMIMEType):
2649         * platform/mac/PlugInInfoStoreMac.mm:
2650         (WebCore::PlugInInfoStore::pluginNameForMIMEType): Added.
2651         * platform/qt/PlugInInfoStoreQt.cpp: 
2652         (WebCore::PlugInInfoStore::pluginNameForMIMEType): Added stub version of pluginNameForMIMEType.
2653         * plugins/win/PlugInInfoStoreWin.cpp: 
2654         (WebCore::PlugInInfoStore::pluginNameForMIMEType): Added stub version of pluginNameForMIMEType.
2655
2656 2007-12-04  Adele Peterson  <adele@apple.com>
2657
2658         Reviewed by Darin.
2659
2660         Fix for <rdar://problem/5499918> REGRESSION: insertion point in input field with custom border cuts holes in focus ring interior edges
2661
2662         * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::setStyle):
2663         Adjust outline-offset so it doesn't extend beyond the border to interfere with typing
2664
2665 2007-12-04  Anders Carlsson  <andersca@apple.com>
2666
2667         Reviewed by Jon.
2668
2669         Always call NPP_NewStream, NPP_DestroyStream and NPP_URLNotify for JavaScript
2670         result streams, even if the JavaScript expression threw an exception or returned undefined.
2671         This matches what Firefox does.
2672         
2673         * plugins/win/PluginStreamWin.cpp:
2674         (WebCore::PluginStreamWin::sendJavaScriptStream):
2675         Handle the result string being null, and set the correct NPReason if it is.
2676         
2677         * plugins/win/PluginViewWin.cpp:
2678         (WebCore::PluginViewWin::performRequest):
2679         Always send the JavaScript stream, regardless of the result could be converted to a string or not.
2680
2681 2007-12-04  Adele Peterson  <adele@apple.com>
2682
2683         Reviewed by Hyatt.
2684
2685         Fix for <rdar://problem/5622464> controls should show up for audio element
2686
2687         * css/html4.css: Added styles for audio controls.  This will need to be refined, since we may want a different look for audio controls.
2688         * html/HTMLMediaElement.cpp:
2689         (WebCore::HTMLMediaElement::attributeChanged): When the controls attribute changes detach and reattach if necessary. 
2690         (WebCore::HTMLMediaElement::rendererIsNeeded): Added.
2691         (WebCore::HTMLMediaElement::createRenderer): Added.  Uses RenderMedia.
2692         * html/HTMLMediaElement.h:
2693         * rendering/RenderMedia.cpp: (WebCore::RenderMedia::RenderMedia): Added constructor that doesn't take intrinsic size.
2694         * rendering/RenderMedia.h:
2695
2696 2007-12-04  Anders Carlsson  <andersca@apple.com>
2697
2698         Reviewed by Sam.
2699
2700         Add isSafeScript(const JSGlobalObject*) so we won't get the JSGlobalObject
2701         implementation, which always returns true(!).
2702         
2703         * bindings/js/kjs_window.cpp:
2704         (KJS::Window::isSafeScript):
2705         Make the static isSafeScript method take two JSGlobalObjects.
2706         
2707         * bindings/js/kjs_window.h:
2708         (KJS::Window::isSafeScript):
2709         Implement isSafeScript and have it call the static method.
2710
2711 2007-11-27  Adam Roben  <aroben@apple.com>
2712
2713         Make the implementation of Frame::setNeedsReapplyStyles cross-platform
2714
2715         Reviewed by Hyatt.
2716
2717         No change in functionality.
2718
2719         * page/Frame.cpp:
2720         (WebCore::Frame::setNeedsReapplyStyles): Added. Invalidates the
2721         FrameView so that FrameView::layout will be called, which ends up
2722         calling reapplyStyles.
2723         (WebCore::Frame::needsReapplyStyles): Added.
2724         (WebCore::Frame::reapplyStyles): Renamed from reparseConfiguration.
2725         (WebCore::FramePrivate::FramePrivate):
2726         * page/Frame.h:
2727         * page/FramePrivate.h: Added new boolean member.
2728         * page/FrameView.cpp:
2729         (WebCore::FrameView::layout): Call Frame::reapplyStyles if needed.
2730         (WebCore::FrameView::needsLayout): Say that we need layout if the
2731         Frame needs styles reapplied.
2732         * page/mac/WebCoreFrameBridge.h: Removed setNeedsReapplyStyles.
2733         * page/mac/WebCoreFrameBridge.mm:
2734         (-[WebCoreFrameBridge reapplyStylesForDeviceType:]): Updated for
2735         rename.
2736
2737         * bridge/win/FrameWin.cpp: Removed Frame::setNeedsReapplyStyles.
2738         * page/gtk/FrameGtk.cpp: Ditto.
2739         * page/mac/FrameMac.mm: Ditto.
2740         * page/qt/FrameQt.cpp: Ditto.
2741         * platform/wx/TemporaryLinkStubs.cpp: Ditto.
2742
2743 2007-12-04  Antti Koivisto  <antti@apple.com>
2744
2745         Reviewed by Adele.
2746
2747         Pass intrinsic size to the base class.
2748
2749         * rendering/RenderMedia.cpp:
2750         (WebCore::RenderMedia::RenderMedia):
2751
2752 2007-12-04  Adele Peterson  <adele@apple.com>
2753
2754         Reviewed by Darin.
2755
2756         Fix for <rdar://problem/5578209> REGRESSION: Crash in WebCore::DeprecatedValueListImpl::Private::copyList when going back on zoomerang.com/survey
2757
2758         * loader/FrameLoader.cpp: (WebCore::FrameLoader::scheduleHistoryNavigation):
2759           When the new url is exactly the same as the old url, don't treat it like a fragment navigation, since its going to cause a reload.
2760
2761 2007-12-04  Darin Adler  <darin@apple.com>
2762
2763         Reviewed by Kevin Decker.
2764
2765         - added an assertion for a situation that leads to a Safari assertion:
2766           a commit that is not followed by a load completion
2767
2768         - removed some unneeded FrameLoader stuff -- maybe some day we'll get this
2769           class cut down to size
2770
2771         * loader/FrameLoader.cpp:
2772         (WebCore::FrameLoader::FrameLoader): Added boolean for assertion.
2773         (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Added code to assert
2774         that we already sent a commit before sending a complete.
2775         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy): Call
2776         client directly instead of indirecting through a function.
2777         (WebCore::FrameLoader::loadItem): Ditto.
2778         (WebCore::FrameLoader::goToItem): Ditto.
2779         (WebCore::FrameLoader::addHistoryForCurrentLocation): Get the private browsing
2780         state from Settings instead of FrameLoaderClient. Also call client directly
2781         instead of indirecting through a function.
2782         (WebCore::FrameLoader::updateHistoryForReload): Call client directly instead
2783         of indirecting through a function.
2784         (WebCore::FrameLoader::dispatchDidCommitLoad): Added code to assert
2785         that we did not yet send a commit and set the flag that will be used to check
2786         that we don't do this twice in a row without an intervening completion call.
2787
2788         * loader/FrameLoader.h: Added a boolean for the assertion. Removed six
2789         now-unneeded functions.
2790
2791         * loader/FrameLoaderClient.h: Removed now-unneeded privateBrowsingEnabled function.
2792
2793         * loader/ResourceLoader.cpp: (WebCore::ResourceLoader::willCacheResponse): Get
2794         the private browsing state from Settings instead of FrameLoaderClient.
2795
2796         * svg/graphics/SVGImageEmptyClients.h: Removed obsolete privateBrowsingEnabled.
2797
2798 2007-12-03  Antti Koivisto  <antti@apple.com>
2799
2800         Reviewed by Adele.
2801         
2802         Fix <rdar://problem/5624802> 
2803         Controller displays outside of <video> element when width and height aren't specified 
2804
2805         - Explicitly adjust size of the controls tree root.
2806         - Switch RenderMedia base class back to RenderReplaced. It is easier to manage the shadow tree
2807           by hand. This also allows better code sharing with other replaced element classes.
2808         - Move duplicated layout and painting code from subclasses up to RenderReplaced.
2809
2810         Test: media/video-controls-rendering.html
2811
2812         * rendering/RenderHTMLCanvas.cpp:
2813         (WebCore::RenderHTMLCanvas::paintReplaced):
2814         * rendering/RenderHTMLCanvas.h:
2815             Share code.
2816         * rendering/RenderImage.cpp:
2817         (WebCore::RenderImage::paintReplaced):
2818         (WebCore::RenderImage::minimumReplacedHeight):
2819         * rendering/RenderImage.h:
2820             Share code.
2821         * rendering/RenderMedia.cpp:
2822         (WebCore::RenderMediaControlShadowRoot::RenderMediaControlShadowRoot):
2823         (WebCore::RenderMediaControlShadowRoot::setParent):
2824             Add a subclass just to get through encapsulation to use setParent().
2825         (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement):
2826             Move initialization to the constructor.
2827         (WebCore::RenderMedia::RenderMedia):
2828         (WebCore::RenderMedia::~RenderMedia):
2829         (WebCore::RenderMedia::layout):
2830             Resize and layout the controller root by hand.
2831         (WebCore::RenderMedia::firstChild):
2832         (WebCore::RenderMedia::lastChild):
2833         (WebCore::RenderMedia::removeChild):
2834             Support one child renderer for controls.
2835         (WebCore::RenderMedia::createControlsShadowRoot):
2836         * rendering/RenderMedia.h:
2837         (WebCore::RenderMedia::isMedia):
2838             Switch base class to RenderReplaced, delete the now unnecessary stuff.
2839         * rendering/RenderReplaced.cpp:
2840         (WebCore::RenderReplaced::layout):
2841         (WebCore::RenderReplaced::paint):
2842         * rendering/RenderReplaced.h:
2843         (WebCore::RenderReplaced::minimumReplacedHeight):
2844         (WebCore::RenderReplaced::paintReplaced):
2845             Share code.
2846         * rendering/RenderVideo.cpp:
2847         (WebCore::RenderVideo::videoSizeChanged):
2848             Simplify, just request relayout.
2849         (WebCore::RenderVideo::paintReplaced):
2850         (WebCore::RenderVideo::layout):
2851         * rendering/RenderVideo.h:
2852             Share code.
2853
2854 2007-12-04  Michael Natterer  <mitch@imendio.com>
2855
2856         Reviewed by Alp Toker.
2857
2858         * WebCore.pro: fix build of webkit-marshal by building the
2859         functions into a separate .cpp file instead of including them in
2860         the header. This way we can use the marshallers from more than one
2861         file without using bad hacks.
2862
2863         Add the generated sources directory to DEPENDPATH.
2864
2865 2007-12-04  Pierre-Luc Beaudoin  <pierre-luc.beaudoin@collabora.co.uk>
2866
2867         Reviewed by Alp Toker.
2868
2869         http://bugs.webkit.org/show_bug.cgi?id=16145
2870         [gtk] Implement media support in GTK backend
2871
2872         This implements the media tags of HTML5 on the GTK+ port based on the 
2873         Mac port. Media tests pass although some tests required a small modifications: 
2874         As per the HTML5 spec, the loading of the clip should start only after 
2875         all script are done.  But in the case of the tests, the loading starts 
2876         before some callbacks get registered.  This has been discussed with 
2877         Antti Koivisto, and the tests should be updated.
2878
2879         There is only one known issue: one time in 10 tries, loading a buffered 
2880         clip will never end buffering.  The buffering will stall at 97% for no 
2881         apparent reasons.  Reloading the page usually works around the problem.
2882         On the GStreamer side, some codecs don't return correct values, therefore
2883         they make the tests fail.  For instance H.264 will make the video-end 
2884         test fail.  This should be fixed in GStreamer 0.10.15.
2885
2886         This version displays video in a pop up window.  A place holder is drawn
2887         on the page where the video should appear.
2888
2889         By default, it is turned off in WebCore.pro until GStreamer/X
2890         detection issues are sorted out.
2891
2892         * WebCore.pro:
2893         Disable video for now
2894         * platform/Logging.cpp:
2895         (WebCore::):
2896         * platform/Logging.h:
2897         Added a logging level for Media stuff
2898         * platform/graphics/Movie.cpp:
2899         * platform/graphics/gtk/MoviePrivateGStreamer.cpp: Added.
2900         (WebCore::moviePrivateErrorCallback):
2901         (WebCore::moviePrivateEOSCallback):
2902         (WebCore::moviePrivateStateCallback):
2903         (WebCore::moviePrivateBufferingCallback):
2904         (WebCore::moviePrivateWindowIDCallback):
2905         (WebCore::MoviePrivate::MoviePrivate):
2906         (WebCore::MoviePrivate::~MoviePrivate):
2907         (WebCore::MoviePrivate::load):
2908         (WebCore::MoviePrivate::play):
2909         (WebCore::MoviePrivate::pause):
2910         (WebCore::MoviePrivate::duration):
2911         (WebCore::MoviePrivate::currentTime):
2912         (WebCore::MoviePrivate::seek):
2913         (WebCore::MoviePrivate::setEndTime):
2914         (WebCore::MoviePrivate::addCuePoint):
2915         (WebCore::MoviePrivate::removeCuePoint):
2916         (WebCore::MoviePrivate::clearCuePoints):
2917         (WebCore::MoviePrivate::startCuePointTimerIfNeeded):
2918         (WebCore::MoviePrivate::cancelSeek):
2919         (WebCore::MoviePrivate::cuePointTimerFired):
2920         (WebCore::MoviePrivate::paused):
2921         (WebCore::MoviePrivate::seeking):
2922         (WebCore::MoviePrivate::naturalSize):
2923         (WebCore::MoviePrivate::hasVideo):
2924         (WebCore::MoviePrivate::setVolume):
2925         (WebCore::MoviePrivate::setMuted):
2926         (WebCore::MoviePrivate::setRate):
2927         (WebCore::MoviePrivate::dataRate):
2928         (WebCore::MoviePrivate::networkState):
2929         (WebCore::MoviePrivate::readyState):
2930         (WebCore::MoviePrivate::maxTimeBuffered):
2931         (WebCore::MoviePrivate::maxTimeSeekable):
2932         (WebCore::MoviePrivate::maxTimeLoaded):
2933         (WebCore::MoviePrivate::bytesLoaded):
2934         (WebCore::MoviePrivate::totalBytesKnown):
2935         (WebCore::MoviePrivate::totalBytes):
2936         (WebCore::MoviePrivate::cancelLoad):
2937         (WebCore::MoviePrivate::updateStates):
2938         (WebCore::MoviePrivate::loadStateChanged):
2939         (WebCore::MoviePrivate::rateChanged):
2940         (WebCore::MoviePrivate::sizeChanged):
2941         (WebCore::MoviePrivate::timeChanged):
2942         (WebCore::MoviePrivate::volumeChanged):
2943         (WebCore::MoviePrivate::didEnd):
2944         (WebCore::MoviePrivate::loadingFailed):
2945         (WebCore::MoviePrivate::setRect):
2946         (WebCore::MoviePrivate::setVisible):
2947         (WebCore::MoviePrivate::paint):
2948         (WebCore::MoviePrivate::getSupportedTypes):
2949         (WebCore::MoviePrivate::createGSTPlayBin):
2950         * platform/graphics/gtk/MoviePrivateGStreamer.h: Added.
2951
2952 2007-12-04  Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2953
2954         Reviewed by Simon.
2955
2956         * Implement the InspectorClient for the Qt port
2957         * It does not support highlighting of nodes yet
2958         * Use QRC to open the internal page. The important thing is the
2959         '/' in the URL to make WebCore::Document::completeURL behave the
2960         way we want.
2961         * To make the InspectorClient work we will have to mark qrc as secure.
2962
2963         * WebCore.pro:
2964         * loader/FrameLoader.cpp:
2965         (WebCore::localSchemes):
2966         * page/inspector/WebKit.qrc: Added.
2967
2968 2007-12-04  Alp Toker  <alp@atoker.com>
2969
2970         Rubber stamped by Mark Rowe.
2971
2972         Remove two unused variables to silence warnings.
2973
2974         * html/CanvasRenderingContext2D.cpp:
2975         (WebCore::CanvasRenderingContext2D::fill):
2976         (WebCore::CanvasRenderingContext2D::stroke):
2977
2978 2007-12-03  Dan Bernstein  <mitz@apple.com>
2979
2980         Reviewed by Darin Adler.
2981
2982         - fix <rdar://problem/5134044> fast/frames/frame-src-attribute.html fails on Windows
2983
2984         * platform/win/ScrollViewWin.cpp:
2985         (WebCore::ScrollView::visibleWidth): Do not return negative values.
2986         (WebCore::ScrollView::visibleHeight): Ditto.
2987
2988 2007-12-03  Dan Bernstein  <mitz@apple.com>
2989
2990         Reviewed by Dave Hyatt.
2991
2992         - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame
2993
2994         Test: fast/events/resize-subframe.html
2995
2996         * page/FrameView.cpp:
2997         (WebCore::FrameViewPrivate::FrameViewPrivate): Added a timer used when
2998         deferring tasks that need to be done after layout.
2999         (WebCore::FrameViewPrivate::reset):
3000         (WebCore::FrameView::~FrameView):
3001         (WebCore::FrameView::layout): Moved the updating of widget positions,
3002         loading plug-ins and sending events queued up during layout into
3003         performPostLayoutTasks(). performPostLayoutTasks() is called after
3004         layout unless the layout was triggered by a previous layout's post-
3005         layout tasks. In the latter case, performPostLayoutTasks() is scheduled
3006         to run later.
3007         (WebCore::FrameView::performPostLayoutTasks): Performs work that needs
3008         to be done after layout but which can result in arbitrary code
3009         execution and therefore may re-invalidate the layout. This includes
3010         updating widget positions, loading plug-ins, and dispatching layout-
3011         related DOM events (scroll, overflow and resize).
3012         (WebCore::FrameView::postLayoutTimerFired):
3013         (WebCore::FrameView::dispatchScheduledEvents):
3014         * page/FrameView.h:
3015         * page/mac/WebCoreFrameBridge.h:
3016         * page/mac/WebCoreFrameBridge.mm: Removed -sendResizeEvent since this
3017         is handled by FrameView now.
3018
3019 2007-12-03  Rob Buis  <buis@kde.org>
3020
3021         Reviewed by Darin.
3022
3023         http://bugs.webkit.org/show_bug.cgi?id=15767
3024         Text decorations do not respect "visibility" property
3025
3026         Only paint decorations if visibility is "visible".
3027
3028         * rendering/SVGInlineTextBox.cpp:
3029         (WebCore::SVGInlineTextBox::paintDecoration):
3030
3031 2007-12-03  Steve Falkenburg  <sfalken@apple.com>
3032
3033         Fix build.
3034
3035         * WebCore.vcproj/WebCore.vcproj:
3036
3037 2007-12-03  Nikolas Zimmermann  <zimmermann@kde.org>
3038
3039         Reviewed by David.
3040
3041         Fixes: http://bugs.webkit.org/show_bug.cgi?id=15645
3042         Don't allow selectors to interfere with the SVG shadow tree (<use> internal non-exposed tree).
3043
3044         * css/CSSStyleSelector.cpp:
3045         (WebCore::CSSStyleSelector::checkSelector):
3046
3047 2007-12-03  Dan Bernstein  <mitz@apple.com>
3048
3049         Reviewed by Adam Roben.
3050
3051         - fix <rdar://problem/5538651> REGRESSSION: domfuzz: null deref in WebCore::Document::canReplaceChild
3052
3053         Test: fast/dom/Document/replaceChild-null-oldChild.html
3054
3055         * dom/Document.cpp:
3056         (WebCore::Document::canReplaceChild):
3057
3058 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3059
3060         Reviewed by Simon.
3061
3062         * Avoid crashes by making sure everything is layouted before
3063         we start painting. This avoids a crash in Widget::invalidateRect
3064         because QPainter::begin would fail
3065         * The QWebFrame::layout() methods and calls are left untouched because
3066         this would be an API decision.
3067         
3068
3069         WARNING: NO TEST CASES ADDED OR CHANGED
3070
3071         * page/FrameView.cpp:
3072         (WebCore::FrameView::updateControlTints):
3073         * page/FrameView.h:
3074         * platform/ScrollView.h:
3075         * platform/qt/ScrollViewQt.cpp:
3076         (WebCore::ScrollView::children):
3077
3078 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3079
3080         Reviewed by Simon.
3081
3082         * Implement GraphicsContext::fillRoundedRect similiar to the
3083         CoreGraphics implementation only addPath is not called this
3084         seems to be only needed for CoreGraphics.
3085         
3086
3087         WARNING: NO TEST CASES ADDED OR CHANGED
3088
3089         * platform/graphics/qt/GraphicsContextQt.cpp:
3090         (WebCore::GraphicsContext::fillRoundedRect):
3091
3092 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3093
3094         Reviewed by Simon.
3095
3096         * Coding Style fixes
3097         
3098
3099         WARNING: NO TEST CASES ADDED OR CHANGED
3100
3101         * platform/qt/ScrollViewQt.cpp:
3102         (WebCore::ScrollView::addChild):
3103         (WebCore::ScrollView::removeChild):
3104
3105 2007-12-03  Alp Toker  <alp@atoker.com>
3106
3107         Reviewed by Mark Rowe.
3108
3109         Don't delete the decoder if it's already been created. The one we have
3110         is fine.
3111
3112         Cairo image cleanups. Nothing substantial.
3113
3114         Notify ImageObservers where appropriate.
3115
3116         * platform/graphics/cairo/ImageCairo.cpp:
3117         (WebCore::BitmapImage::draw):
3118         (WebCore::Image::drawPattern):
3119         * platform/graphics/cairo/ImageSourceCairo.cpp:
3120         (WebCore::ImageSource::setData):
3121         * platform/graphics/gtk/ImageGtk.cpp:
3122
3123 2007-12-03  Simon Hausmann  <hausmann@webkit.org>
3124
3125         Reviewed by Lars.
3126
3127         Fixed crash when rendering form elements with Qt 4.4
3128
3129         QPainter::device() is not guaranteed to return a QWidget, so do the safe "cast" with the
3130         help of QPaintDevice::devType().
3131         Also fall back to the QApplication::style() if we don't have a widget.
3132
3133         * platform/qt/RenderThemeQt.cpp:
3134         (WebCore::RenderThemeQt::paintButton):
3135         (WebCore::RenderThemeQt::paintTextField):
3136         (WebCore::RenderThemeQt::paintMenuList):
3137         (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
3138
3139 2007-12-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3140
3141         Reviewed by Sam Weinig.
3142
3143         * Add FrameLoader::shouldTreatSchemeAsLocal which is similar to
3144         shouldTreatURLAsLocal.
3145         * Make use of FrameLoader::shouldTreatSchemeAsLocal in SecurityOrigin
3146         and do not hardcode "file". This is needed for the WebKit/qt port to make
3147         the Web Inspector work as it using the qrc protocol instead of file.
3148
3149
3150         * loader/FrameLoader.cpp:
3151         (WebCore::FrameLoader::shouldTreatSchemeAsLocal):
3152         * loader/FrameLoader.h:
3153         * platform/SecurityOrigin.cpp:
3154         (WebCore::SecurityOrigin::isSecureTransitionTo):
3155
3156 2007-12-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3157
3158         Rubber stamped by Sam Weinig.
3159
3160         Only add applewebdata to the localSchemes when building for the
3161         mac. This is in preparation of adding qrc for the Qt port there
3162         as well and http://bugs.webkit.org/show_bug.cgi?id=15938.
3163
3164         According to Anders applewebdata is not used on the win port.
3165
3166         * loader/FrameLoader.cpp:
3167         (WebCore::localSchemes):
3168
3169 2007-12-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3170
3171         Rubber stamped by Sam Weinig.
3172
3173         Fix a typo. It is contains and not containts
3174
3175         * loader/FrameLoader.cpp:
3176
3177 2007-12-03  Alp Toker  <alp@atoker.com>
3178
3179         Add another missing DEPENDPATH.
3180
3181         Noticed when fixing the build.
3182
3183         * WebCore.pro:
3184
3185 2007-12-03  Adam Roben  <aroben@apple.com>
3186
3187         Speculative Windows build fix
3188
3189         * plugins/win/PluginViewWin.cpp:
3190         (WebCore::getString):
3191
3192 2007-12-03  Geoffrey Garen  <ggaren@apple.com>
3193
3194         Build fix: added symbols to the right .exp file.
3195
3196         * WebCore.base.exp:
3197
3198 2007-12-02  Geoffrey Garen  <ggaren@apple.com>
3199
3200         Reviewed by Eric Seidel.
3201
3202         Updated to match the JavaScriptCore change to move virtual methods from
3203         Interpreter to JSGlobalObject.
3204         
3205         Moved virtual ScriptInterpreter functions to Window.
3206
3207 2007-12-02  Darin Adler  <darin@apple.com>
3208
3209         Reviewed by Mitz.
3210
3211         - fix <rdar://problem/5601995> Hang/crash on http://ebay-uk.custhelp.com/
3212
3213         There were two problems here:
3214
3215             1) Incorrect HTMLCollection behavior led to us trying to insert a
3216                new row inside an existing row instead of next to it. The fix for
3217                this is to make HTMLCollection work better for table-related
3218                collections.
3219
3220             2) HTMLTableRowElement::insertCell would return a bad pointer if
3221                the insertion failed. The code should have failed, but not crashed,
3222                so it's worth fixing that too.
3223
3224         While fixing the HTMLCollection issues, I did some clean-up of that
3225         class and its derived classes.
3226
3227         Test: fast/dom/HTMLTableElement/rows.html
3228         Test: fast/dom/HTMLTableElement/tBodies.html
3229         Test: fast/dom/HTMLTableRowElement/cells.html
3230         Test: fast/dom/HTMLTableRowElement/insertCell.html
3231         Test: fast/dom/HTMLTableSectionElement/rows.html
3232
3233         * bindings/js/JSHTMLCollectionCustom.cpp:
3234         (WebCore::toJS): Updated because collectionType() was renamed to type().
3235
3236         * html/HTMLCollection.cpp:
3237         (WebCore::HTMLCollection::HTMLCollection): Updated for data member name
3238         changes. Also added a protected constructor for use by derived classes
3239         that pass in a CollectionInfo.
3240         (WebCore::HTMLCollection::CollectionInfo::copyCacheMap): Moved out of
3241         the header.
3242         (WebCore::isTableSection): Added.
3243         (WebCore::HTMLCollection::itemAfter): Renamed from traverseNextItem,
3244         because the old name was grammatically incorrect and thus a bit confusing.
3245         Changed to operate on Element* instead of Node*, and use 0 to start
3246         rather than passing in the base node (required since the base node can be
3247         a document, which is not an element). Generalized the code that made
3248         NodeChildren not descend into deeper descendants so it can be used for
3249         TRCells, TSectionRows, TableTBodies, and TableRows. Reformatted the
3250         switch statement and got rid of the "found" boolean since we can just
3251         return when we find something. Got rid of the default case, and instead
3252         listed all the enum values. Also changed to use a for loop for clarity.
3253         (WebCore::HTMLCollection::calcLength): Updated for itemAfter changes.
3254         (WebCore::HTMLCollection::item): Ditto.
3255         (WebCore::HTMLCollection::nextItem): Ditto.
3256         (WebCore::HTMLCollection::checkForNameMatch): Updated to take an Element
3257         instead of a Node pointer.
3258         (WebCore::HTMLCollection::namedItem): More of the same.
3259         (WebCore::HTMLCollection::updateNameCache): Ditto.
3260         (WebCore::HTMLCollection::namedItems): Ditto.
3261         (WebCore::HTMLCollection::nextNamedItem): Ditto.
3262         (WebCore::HTMLCollection::tags): Ditto.
3263
3264         * html/HTMLCollection.h: Added a type FormElements, so that the
3265         HTMLFormCollection would not have a type of DocImages, which is what
3266         it previously did. Changed the base parameter to be a PassRefPtr to
3267         make it clear we take ownership of it. Added a comment explaining
3268         why we should change the name CollectionInfo. Made a lot more members
3269         private instead of protected. Renamed traverseNextItem to itemAfter.
3270         Changed most functions to take Element* instead of Node*.
3271
3272         * html/HTMLFormCollection.cpp:
3273         (WebCore::HTMLFormCollection::formCollectionInfo): Added.
3274         (WebCore::HTMLFormCollection::HTMLFormCollection): Updated to pass
3275         collection info into the base class.
3276         (WebCore::HTMLFormCollection::calcLength): Updated to use base() so we
3277         don't need to get at m_base directly.
3278         (WebCore::HTMLFormCollection::item): Same, but for info().
3279         (WebCore::HTMLFormCollection::getNamedItem): Removed unused first
3280         argument.
3281         (WebCore::HTMLFormCollection::getNamedFormItem): Got rid of unneeded
3282         checks that the base is still an element and still a form, since that's
3283         guaranteed.
3284         (WebCore::HTMLFormCollection::nextItem): Use info().
3285         (WebCore::HTMLFormCollection::nextNamedItemInternal): Node instead of
3286         Element, some name changes.
3287         (WebCore::HTMLFormCollection::namedItem): Update for changes elsewhere.
3288         (WebCore::HTMLFormCollection::nextNamedItem): Ditto, also rewrote loop
3289         to be much simpler.
3290         (WebCore::HTMLFormCollection::updateNameCache): More of the same.
3291
3292         * html/HTMLFormCollection.h: Changed constructor to take an
3293         HTMLFormElement, using a PassRefPtr to communicate transfer of
3294         ownership. Made everything private instead of protected. Removed
3295         unneeded override of firstItem. Made getNamedItem and
3296         nextNamedItemInternal non-virtual. Removed unused first argument of
3297         getNamedItem. Added declaration of formCollectionInfo.
3298
3299         * html/HTMLNameCollection.cpp:
3300         (WebCore::HTMLNameCollection::HTMLNameCollection): Updated to pass
3301         collection info into the base class.
3302         (WebCore::HTMLNameCollection::itemAfter): Reformatted a bit and
3303         changed into a for loop.
3304
3305         * html/HTMLNameCollection.h: Updated for name changes. Made function
3306         private instead of public. Used PassRefPtr in constructor.
3307
3308         * html/HTMLOptionsCollection.cpp:
3309         (WebCore::HTMLOptionsCollection::HTMLOptionsCollection): Updated to
3310         pass collection info into the base class.
3311         (WebCore::HTMLOptionsCollection::add): Updated for public/private
3312         changes in the base class.
3313         (WebCore::HTMLOptionsCollection::selectedIndex): Ditto.
3314         (WebCore::HTMLOptionsCollection::setSelectedIndex): Ditto.
3315         (WebCore::HTMLOptionsCollection::setLength): Ditto.
3316
3317         * html/HTMLOptionsCollection.h: Changed constructor parameter to be a
3318         PassRefPtr.
3319
3320         * html/HTMLTableRowElement.cpp:
3321         (WebCore::HTMLTableRowElement::insertCell): Changed code to use RefPtr
3322         and PassRefPtr since this creates a new object. This alone fixed the
3323         crash. Also cleaned up logic a bit to be more readable.
3324
3325         * html/HTMLTableRowElement.h: Changed insertCell to return a PassRefPtr.
3326         Also reordered functions a bit to make things a little more logical and
3327         removed the unused ncols data member.
3328
3329         * html/HTMLTableSectionElement.cpp:
3330         (WebCore::HTMLTableSectionElement::rows): Pass TSectionRows, not
3331         TableRows. This mistake was harmless before because TableRows and
3332         TSectionRows were handled identically inside HTMLCollection, but that is
3333         no longer the case with this fix.
3334
3335         * bindings/scripts/CodeGeneratorJS.pm: Add an include to cope with the
3336         fact that HTMLOptionsCollection no longer includes HTMLOptionElement.
3337         I don't think this really should be a special case -- might be worth
3338         returning later to see if this can be optimized.
3339
3340 2007-12-02  Nikolas Zimmermann  <zimmermann@kde.org>
3341
3342         Reviewed by Adam.
3343
3344         RenderSVGViewportContainer sets wrong width/height.
3345         Share code with RenderSVGContainer in a central calcBounds() function.
3346
3347         Fixes:
3348         - svg/custom/use-css-events.svg (http://bugs.webkit.org/show_bug.cgi?id=15403)
3349         - svg/custom/deep-dynamic-updates.svg
3350         - svg/custom/use-clipped-hit.svg
3351         - svg/custom/image-clipped-hit.svg
3352
3353         * rendering/RenderSVGContainer.cpp:
3354         (WebCore::RenderSVGContainer::layout):
3355         (WebCore::RenderSVGContainer::calcBounds):
3356         * rendering/RenderSVGContainer.h:
3357         * rendering/RenderSVGViewportContainer.cpp:
3358         (WebCore::RenderSVGViewportContainer::layout):
3359
3360 2007-12-02  Brady Eidson <beidson@apple.com>
3361
3362         Reviewed by Darin
3363
3364         databaseChanged notifications were being sent out on the database thread - they need to be on the main thread
3365         like all other notifications we send out!
3366
3367         * platform/SecurityOriginData.cpp:
3368         (WebCore::SecurityOriginData::copy): Add a deep copy method, for when an object thread hops
3369         * platform/SecurityOriginData.h:
3370
3371         * storage/DatabaseTracker.cpp:
3372         (WebCore::notificationMutex):
3373         (WebCore::notificationQueue):
3374         (WebCore::DatabaseTracker::scheduleNotifyDatabaseChanged): Add the origin/name pair to a queue
3375         (WebCore::DatabaseTracker::scheduleForNotification): Schedule to deliver this queue of notifications
3376           on the main thread
3377         (WebCore::DatabaseTracker::notifyDatabasesChanged): Deliver all notifications in the queue
3378         * storage/DatabaseTracker.h:
3379
3380         * storage/SQLTransaction.cpp:
3381         (WebCore::SQLTransaction::postflightAndCommit): scheduleNotifyDatabaseChanged() instead of "notify now!"
3382         (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback): Ditto
3383
3384 2007-12-02  Rob Buis  <buis@kde.org>
3385
3386         Reviewed by Darin.
3387
3388         http://bugs.webkit.org/show_bug.cgi?id=16002
3389         Load SVG (and other) UA StyleSheets dynamically when needed
3390
3391         Load svg sheet when needed.
3392
3393         * css/CSSStyleSelector.cpp:
3394         (WebCore::screenEval):
3395         (WebCore::printEval):
3396         (WebCore::CSSStyleSelector::CSSStyleSelector):
3397         (WebCore::CSSStyleSelector::loadDefaultStyle):
3398         (WebCore::CSSStyleSelector::styleForElement):
3399         (WebCore::CSSRuleSet::addRulesFromSheet):
3400
3401 2007-12-02  Mark Rowe  <mrowe@apple.com>
3402
3403         Try and fix the Windows build.
3404
3405         * plugins/win/PluginViewWin.cpp:
3406         (WebCore::PluginViewWin::bindingInstance):
3407
3408 2007-12-02  Nikolas Zimmermann  <zimmermann@kde.org>
3409
3410         Rubber stamped by Eric.
3411
3412         Move platform/graphics/svg to graphics/svg as discussed on webkit-dev.
3413         Updated all project files.
3414
3415         * WebCore.pro:
3416         * WebCore.vcproj/WebCore.vcproj:
3417         * WebCore.xcodeproj/project.pbxproj:
3418         * platform/graphics/svg: Removed.
3419         * platform/graphics/svg/SVGImage.cpp: Removed.
3420         * platform/graphics/svg/SVGImage.h: Removed.
3421         * platform/graphics/svg/SVGImageEmptyClients.h: Removed.
3422         * platform/graphics/svg/SVGPaintServer.cpp: Removed.
3423         * platform/graphics/svg/SVGPaintServer.h: Removed.
3424         * platform/graphics/svg/SVGPaintServerGradient.cpp: Removed.
3425         * platform/graphics/svg/SVGPaintServerGradient.h: Removed.
3426         * platform/graphics/svg/SVGPaintServerLinearGradient.cpp: Removed.
3427         * platform/graphics/svg/SVGPaintServerLinearGradient.h: Removed.
3428         * platform/graphics/svg/SVGPaintServerPattern.cpp: Removed.
3429         * platform/graphics/svg/SVGPaintServerPattern.h: Removed.
3430         * platform/graphics/svg/SVGPaintServerRadialGradient.cpp: Removed.
3431         * platform/graphics/svg/SVGPaintServerRadialGradient.h: Removed.
3432         * platform/graphics/svg/SVGPaintServerSolid.cpp: Removed.
3433         * platform/graphics/svg/SVGPaintServerSolid.h: Removed.
3434         * platform/graphics/svg/SVGResource.cpp: Removed.
3435         * platform/graphics/svg/SVGResource.h: Removed.
3436         * platform/graphics/svg/SVGResourceClipper.cpp: Removed.
3437         * platform/graphics/svg/SVGResourceClipper.h: Removed.
3438         * platform/graphics/svg/SVGResourceFilter.cpp: Removed.
3439         * platform/graphics/svg/SVGResourceFilter.h: Removed.
3440         * platform/graphics/svg/SVGResourceListener.h: Removed.
3441         * platform/graphics/svg/SVGResourceMarker.cpp: Removed.
3442         * platform/graphics/svg/SVGResourceMarker.h: Removed.
3443         * platform/graphics/svg/SVGResourceMasker.cpp: Removed.
3444         * platform/graphics/svg/SVGResourceMasker.h: Removed.
3445         * platform/graphics/svg/cairo: Removed.
3446         * platform/graphics/svg/cairo/RenderPathCairo.cpp: Removed.
3447         * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp: Removed.
3448         * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp: Removed.
3449         * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp: Removed.
3450         * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp: Removed.
3451         * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp: Removed.
3452         * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp: Removed.
3453         * platform/graphics/svg/cg: Removed.
3454         * platform/graphics/svg/cg/CgSupport.cpp: Removed.
3455         * platform/graphics/svg/cg/CgSupport.h: Removed.
3456         * platform/graphics/svg/cg/RenderPathCg.cpp: Removed.
3457         * platform/graphics/svg/cg/SVGPaintServerCg.cpp: Removed.
3458         * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: Removed.
3459         * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: Removed.
3460         * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp: Removed.
3461         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp: Removed.
3462         * platform/graphics/svg/cg/SVGResourceFilterCg.cpp: Removed.
3463         * platform/graphics/svg/cg/SVGResourceFilterCg.mm: Removed.
3464         * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp: Removed.
3465         * platform/graphics/svg/cg/SVGResourceMaskerCg.mm: Removed.
3466         * platform/graphics/svg/filters: Removed.
3467         * platform/graphics/svg/filters/SVGDistantLightSource.h: Removed.
3468         * platform/graphics/svg/filters/SVGFEBlend.cpp: Removed.
3469         * platform/graphics/svg/filters/SVGFEBlend.h: Removed.
3470         * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: Removed.
3471         * platform/graphics/svg/filters/SVGFEColorMatrix.h: Removed.
3472         * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: Removed.
3473         * platform/graphics/svg/filters/SVGFEComponentTransfer.h: Removed.
3474         * platform/graphics/svg/filters/SVGFEComposite.cpp: Removed.
3475         * platform/graphics/svg/filters/SVGFEComposite.h: Removed.
3476         * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: Removed.
3477         * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: Removed.
3478         * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: Removed.
3479         * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: Removed.
3480         * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: Removed.
3481         * platform/graphics/svg/filters/SVGFEDisplacementMap.h: Removed.
3482         * platform/graphics/svg/filters/SVGFEFlood.cpp: Removed.
3483         * platform/graphics/svg/filters/SVGFEFlood.h: Removed.
3484         * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: Removed.
3485         * platform/graphics/svg/filters/SVGFEGaussianBlur.h: Removed.
3486         * platform/graphics/svg/filters/SVGFEImage.cpp: Removed.
3487         * platform/graphics/svg/filters/SVGFEImage.h: Removed.
3488         * platform/graphics/svg/filters/SVGFEMerge.cpp: Removed.
3489         * platform/graphics/svg/filters/SVGFEMerge.h: Removed.
3490         * platform/graphics/svg/filters/SVGFEMorphology.cpp: Removed.
3491         * platform/graphics/svg/filters/SVGFEMorphology.h: Removed.
3492         * platform/graphics/svg/filters/SVGFEOffset.cpp: Removed.
3493         * platform/graphics/svg/filters/SVGFEOffset.h: Removed.
3494         * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: Removed.
3495         * platform/graphics/svg/filters/SVGFESpecularLighting.h: Removed.
3496         * platform/graphics/svg/filters/SVGFETile.h: Removed.
3497         * platform/graphics/svg/filters/SVGFETurbulence.cpp: Removed.
3498         * platform/graphics/svg/filters/SVGFETurbulence.h: Removed.
3499         * platform/graphics/svg/filters/SVGFilterEffect.cpp: Removed.
3500         * platform/graphics/svg/filters/SVGFilterEffect.h: Removed.
3501         * platform/graphics/svg/filters/SVGLightSource.cpp: Removed.
3502         * platform/graphics/svg/filters/SVGLightSource.h: Removed.
3503         * platform/graphics/svg/filters/SVGPointLightSource.h: Removed.
3504         * platform/graphics/svg/filters/SVGSpotLightSource.h: Removed.
3505         * platform/graphics/svg/filters/cg: Removed.
3506         * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: Removed.
3507         * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: Removed.
3508         * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: Removed.
3509         * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: Removed.
3510         * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: Removed.
3511         * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: Removed.
3512         * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: Removed.
3513         * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: Removed.
3514         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: Removed.
3515         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: Removed.
3516         * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: Removed.
3517         * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: Removed.
3518         * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: Removed.
3519         * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: Removed.
3520         * platform/graphics/svg/filters/cg/SVGFETileCg.mm: Removed.
3521         * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: Removed.