2009-01-14 Dimitri Glazkov <dglazkov@chromium.org>
[WebKit-https.git] / WebCore / ChangeLog
1 2009-01-14  Dimitri Glazkov  <dglazkov@chromium.org>
2
3         Reviewed by Eric Seidel.
4
5         https://bugs.webkit.org/show_bug.cgi?id=23325
6         Upstream even more graphics/chromium bits.
7
8         WARNING: NO TEST CASES ADDED OR CHANGED
9
10         * platform/graphics/chromium/GlyphPageTreeNodeChromiumWin.cpp: Added.
11         (WebCore::fillEmptyGlyphs):
12         (WebCore::initSpaceGlyph):
13         (WebCore::fillBMPGlyphs):
14         (WebCore::fillNonBMPGlyphs):
15         (WebCore::GlyphPage::fill):
16         * platform/graphics/chromium/GlyphPageTreeNodeLinux.cpp: Added.
17         (WebCore::GlyphPage::fill):
18         * platform/graphics/chromium/IconChromiumLinux.cpp: Added.
19         (WebCore::Icon::Icon):
20         (WebCore::Icon::~Icon):
21         (WebCore::Icon::createIconForFile):
22         (WebCore::Icon::createIconForFiles):
23         (WebCore::Icon::paint):
24         * platform/graphics/chromium/IconChromiumMac.cpp: Added.
25         (WebCore::Icon::createIconForFile):
26         (WebCore::Icon::createIconForFiles):
27         (WebCore::Icon::~Icon):
28         (WebCore::Icon::paint):
29         * platform/graphics/chromium/IconChromiumWin.cpp: Added.
30         (WebCore::Icon::Icon):
31         (WebCore::Icon::~Icon):
32         (WebCore::Icon::createIconForFile):
33         (WebCore::Icon::createIconForFiles):
34         (WebCore::Icon::paint):
35         * platform/graphics/chromium/ImageBufferData.h: Added.
36         * platform/graphics/chromium/ImageChromiumMac.mm: Added.
37         (WebCore::Image::loadPlatformResource):
38         (WebCore::BitmapImage::initPlatformData):
39         (WebCore::BitmapImage::invalidatePlatformData):
40         * platform/graphics/chromium/MediaPlayerPrivateChromium.h: Added.
41         * platform/graphics/chromium/PlatformIcon.h: Added.
42
43 2009-01-14  Darin Fisher  <darin@chromium.org>
44
45         Reviewed by Eric Seidel.
46
47         https://bugs.webkit.org/show_bug.cgi?id=23323
48         Upstream platform/text/chromium/
49
50         * platform/text/chromium: Added.
51         * platform/text/chromium/TextBreakIteratorInternalICUChromium.cpp: Added.
52         (WebCore::currentTextBreakLocaleID):
53
54 2009-01-14  Steve Falkenburg  <sfalken@apple.com>
55
56         Update copyright year in version resources.
57
58         Reviewed by Adam Roben.
59
60         * WebCore.vcproj/QTMovieWin.rc:
61
62 2009-01-14  Darin Fisher  <darin@chromium.org>
63
64         Reviewed by Darin Adler.
65
66         https://bugs.webkit.org/show_bug.cgi?id=23324
67         Move platform/chromium/EditorChromium.cpp into editing/chromium/
68
69         * editing/chromium: Added.
70         * editing/chromium/EditorChromium.cpp: Copied from platform/chromium/EditorChromium.cpp.
71         * platform/chromium/EditorChromium.cpp: Removed.
72
73 2009-01-14  Darin Fisher  <darin@chromium.org>
74
75         Reviewed by Darin Adler.
76
77         https://bugs.webkit.org/show_bug.cgi?id=23320
78         Make it possible to use notImplemented outside of the WebCore namespace
79
80         * platform/NotImplemented.h:
81
82 2009-01-14  Nigel Tao  <nigel.tao.gnome@gmail.com>
83
84         Reviewed by Darin Adler.
85
86         - fix https://bugs.webkit.org/show_bug.cgi?id=22476
87         Check that the document's SecurityOrigin canLoadLocalResources,
88         when pages try to put NSFilenamesPboardtype data on the clipboard,
89         by calling event.dataTransfer.setData('URL', 'file:///foo/bar');
90
91         Tests: http/tests/security/dataTransfer-set-data-file-url.html
92                platform/mac/editing/pasteboard/dataTransfer-set-data-file-url.html
93
94         * platform/mac/ClipboardMac.mm:
95         (WebCore::ClipboardMac::setData):
96
97 2009-01-14  Dan Bernstein  <mitz@apple.com>
98
99         Reviewed by John Sullivan.
100
101         - update copyright
102
103         * Info.plist:
104
105 2009-01-14  Alexey Proskuryakov  <ap@webkit.org>
106
107         Reviewed by Darin Adler.
108
109         https://bugs.webkit.org/show_bug.cgi?id=23316
110         Application cache updating always fails with an assertion
111
112         Test: http/tests/appcache/update-cache.html
113
114         * loader/appcache/ApplicationCacheGroup.cpp:
115         (WebCore::ApplicationCacheGroup::documentLoaderDestroyed): Correctly handle the case where
116         multiple caches survive the last DocumentLoader destruction, preventing a crash in release
117         builds.
118         (WebCore::ApplicationCacheGroup::setNewestCache): Removed a bogus assertion.
119
120 2009-01-14  Alexey Proskuryakov  <ap@webkit.org>
121
122         Release build fix.
123
124         * loader/appcache/ApplicationCacheStorage.cpp:
125         (WebCore::ApplicationCacheStorage::storeUpdatedType): Use ASSERT_UNUSED.
126
127 2009-01-13  Alexey Proskuryakov  <ap@webkit.org>
128
129         Reviewed by Anders Carlsson.
130
131         Test: http/tests/appcache/xhr-foreign-resource.html
132
133         https://bugs.webkit.org/show_bug.cgi?id=23256
134         Implement application cache foreign entries
135
136         * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::shouldLoadResourceFromApplicationCache):
137         Removed a misplaced check for foreign resources that prevented them from being loaded altogether.
138
139         * loader/appcache/ApplicationCacheGroup.cpp: (WebCore::ApplicationCacheGroup::selectCache):
140         If a document that was loaded from appcache should be associated with a different cache,
141         mark the resource as foreign in the original cache and start over.
142
143         * loader/appcache/ApplicationCacheResource.cpp: (WebCore::ApplicationCacheResource::addType):
144         This function can now be called after a cache is stored, so it no longer asserts the opposite.
145
146         * loader/appcache/ApplicationCacheStorage.cpp:
147         (WebCore::ApplicationCacheStorage::cacheGroupForURL): Fix database pass to correctly ignore
148         in-memory caches that were already rejected.
149         (WebCore::ApplicationCacheStorage::fallbackCacheGroupForURL): Ditto.
150         (WebCore::ApplicationCacheStorage::storeUpdatedType): Added a function that updates type of
151         an already stored cached resource.
152
153         * loader/appcache/ApplicationCacheStorage.h: Added storeUpdatedType().
154
155 2009-01-13  Mark Rowe  <mrowe@apple.com>
156
157         Fix the Tiger WebCore build after r39880.
158
159         * editing/Editor.cpp:
160         (WebCore::Editor::markBadGrammar):
161         * loader/mac/DocumentLoaderMac.cpp:
162         (WebCore::DocumentLoader::schedule):
163         (WebCore::DocumentLoader::unschedule):
164         * platform/mac/PasteboardMac.mm:
165         (WebCore::Pasteboard::writeSelection):
166         * platform/mac/WebCoreObjCExtras.mm:
167         (WebCoreObjCFinalizeOnMainThread):
168         * platform/network/mac/ResourceHandleMac.mm:
169         (WebCore::ResourceHandle::schedule):
170         (WebCore::ResourceHandle::unschedule):
171
172 2009-01-13  Darin Adler  <darin@apple.com>
173
174         Reviewed by Sam Weinig.
175
176         Bug 23102: turn on unused parameter warnings in WebCore
177         https://bugs.webkit.org/show_bug.cgi?id=23102
178
179         Last step: Turn on the warning and fix the last few instances.
180
181         * Configurations/Base.xcconfig: Removed -Wno-unused-parameter from
182         WARNING_CFLAGS_BASE, so the unused parameter warning will fire.
183
184         * bindings/js/JSDOMWindowBase.cpp:
185         (jsDOMWindowBaseMessageChannel): Separate the version for use when
186         CHANNEL_MESSAGING is turned off, so we can omit the argument names.
187         It would be better to not even have this property in that case,
188         rather than having the function return undefined, but I don't know
189         how to do that with the bindings script.
190
191         * bindings/scripts/CodeGeneratorJS.pm: Leave out argument names in
192         functions where they're not used (the SVG context, and the property
193         name in the index getter). Use UNUSED_PARAM where arguments are
194         sometimes not used.
195
196         * bridge/runtime_object.cpp:
197         (JSC::RuntimeObjectImp::put): Use UNUSED_PARAM for non-QT.
198
199         * css/MediaQueryEvaluator.cpp:
200         (WebCore::animationMediaFeatureEval): Omit argument names for style and frame.
201         (WebCore::transitionMediaFeatureEval): Ditto.
202         (WebCore::transform_2dMediaFeatureEval): Ditto.
203         (WebCore::transform_3dMediaFeatureEval): Ditto.
204
205         * dom/make_names.pl: Leave out the createdByParser property name in
206         cases where it's not used.
207
208         * inspector/JavaScriptDebugServer.cpp:
209         (WebCore::JavaScriptDebugServer::setJavaScriptPaused): Separate the
210         version for the Mac platform so we can omit the argument names.
211
212         * loader/EmptyClients.h:
213         (WebCore::EmptyChromeClient::contentsSizeChanged): Removed argument name.
214
215         * loader/FrameLoaderClient.h:
216         (WebCore::FrameLoaderClient::shouldUsePluginDocument): Commented out
217         argument name.
218
219         * loader/icon/IconFetcher.cpp:
220         (WebCore::IconFetcher::didReceiveResponse): Use ASSERT_UNUSED.
221         (WebCore::IconFetcher::didReceiveData): Ditto.
222         (WebCore::IconFetcher::didFinishLoading): Ditto.
223         (WebCore::IconFetcher::didFail): Ditto.
224
225         * platform/KURL.cpp:
226         (WebCore::assertProtocolIsGood): Separate out the NDEBUG version so
227         we can omit the argument names.
228
229         * platform/Timer.cpp:
230         (WebCore::TimerHeapIterator::checkConsistency): Use ASSERT_UNUSED.
231
232         * platform/graphics/GlyphBuffer.h:
233         (WebCore::GlyphBuffer::offsetAt): Use UNUSED_PARAM in the non-WIN case.
234         (WebCore::GlyphBuffer::add): Use UNUSED_PARAM in the non-CAIRO case.
235
236         * platform/graphics/cg/ImageSourceCG.cpp:
237         (WebCore::ImageSource::clear): Removed argument name.
238
239         * rendering/SVGRenderSupport.cpp:
240         (WebCore::prepareToRenderSVGContent): Use UNUSED_PARAM when SVG_FILTERS
241         is not enabled.
242         (WebCore::finishRenderSVGContent): Ditto.
243
244 2009-01-13  Chris Marrin  <cmarrin@apple.com>
245
246         Reviewed by Darin Adler.
247
248         Implemented https://bugs.webkit.org/show_bug.cgi?id=23298
249         Simple fix to convertToLength to catch style==null cases
250
251         * css/CSSStyleSelector.cpp:
252         (WebCore::convertToLength):
253
254 2009-01-13  Eric Seidel  <eric@webkit.org>
255
256         Reviewed by Mark Rowe.
257
258         Speculative fix for an Uninitialized Memory Read (UMR)
259         seen by purify in chormium's equivalent V8 file.
260
261         * bindings/js/JSSVGPODTypeWrapper.h:
262         (WebCore::PODTypeWrapperCacheInfo::PODTypeWrapperCacheInfo):
263
264 2009-01-13  Dimitri Glazkov  <dglazkov@chromium.org>
265
266         Reviewed by Eric Seidel.
267
268         Land portions of platform/graphics/chromium.
269         https://bugs.webkit.org/show_bug.cgi?id=23297
270
271         * platform/graphics/chromium/FontCustomPlatformData.cpp: Added.
272         (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
273         (WebCore::FontCustomPlatformData::fontPlatformData):
274         (WebCore::EOTStream::EOTStream):
275         (WebCore::EOTStream::read):
276         (WebCore::readEmbedProc):
277         (WebCore::createUniqueFontName):
278         (WebCore::createFontCustomPlatformData):
279         * platform/graphics/chromium/FontCustomPlatformData.h: Added.
280         (WebCore::FontCustomPlatformData::FontCustomPlatformData):
281         * platform/graphics/chromium/FontLinux.cpp: Added.
282         (WebCore::Font::drawGlyphs):
283         (WebCore::Font::drawComplexText):
284         (WebCore::Font::floatWidthForComplexText):
285         (WebCore::Font::offsetForPositionForComplexText):
286         (WebCore::Font::selectionRectForComplexText):
287         * platform/graphics/chromium/FontPlatformData.h: Added.
288
289 2009-01-13  Mark Rowe  <mrowe@apple.com>
290
291         Rubber-stamped by Oliver Hunt.
292
293         Don't copy DOMStringList.idl into the framework bundle.
294
295         * WebCore.xcodeproj/project.pbxproj:
296
297 2009-01-13  Christian Dywan  <christian@twotoasts.de>
298
299         Build fix, StorageEvent is only defined if we have DOM_STORAGE
300
301         * dom/Document.cpp:
302         (WebCore::Document::createEvent): Conditionalize StorageEvent
303
304 2009-01-13  Darin Adler  <darin@apple.com>
305
306         Reviewed by Adele Peterson.
307
308         Bug 23277: space bar scrolls the page when typed in any text field
309         https://bugs.webkit.org/show_bug.cgi?id=23277
310         rdar://problem/6490249
311
312         There's already a regression test for this, since bug 16421 was the same problem, but on
313         Mac. The regression test is fast/events/space-scroll-event.html, so I won't write a new one.
314
315         This bug doesn't affect Mac because the canEdit check in -[WebHTMLView insertText:] prevents
316         a text input event from being generated at all. That difference may in itself be a bug, but
317         the only symptom is that you get text input events in more cases on platforms other than Mac.
318
319         * page/EventHandler.cpp:
320         (WebCore::EventHandler::handleTextInputEvent): Return whether the event's default was
321         handled, not the result of the dispatchEvent function, which indicates only whether the
322         default behavior was prevented, not if the default behavior did some insertion. This fix
323         makes it so the keyboard event handler can detect that no space was inserted and know that
324         the space bar keypress event can be treated as a scrolling command.
325         (WebCore::EventHandler::defaultKeyboardEventHandler): Handle the keypress event, not the
326         keydown event. Without the change above, making this change would have restored the old
327         behavior, reintroducing bug 22913 where the space bar doesn't scroll at all on Windows.
328
329 2009-01-13  Darin Fisher  <darin@chromium.org>
330
331         Reviewed by Eric Seidel.
332
333         Landing portions of platform/chromium/, taken from here:
334         http://src.chromium.org/viewvc/chrome/trunk/deps/third_party/WebKit/WebCore/platform/chromium/
335
336         * platform/chromium/ChromiumBridge.h: Added.
337         * platform/chromium/ChromiumDataObject.cpp: Added.
338         (WebCore::ChromiumDataObject::clear):
339         (WebCore::ChromiumDataObject::hasData):
340         * platform/chromium/ChromiumDataObject.h: Added.
341         (WebCore::ChromiumDataObject::create):
342         (WebCore::ChromiumDataObject::ChromiumDataObject):
343         * platform/chromium/ClipboardChromium.cpp: Added.
344         (WebCore::):
345         (WebCore::clipboardTypeFromMIMEType):
346         (WebCore::ClipboardChromium::ClipboardChromium):
347         (WebCore::ClipboardChromium::create):
348         (WebCore::ClipboardChromium::clearData):
349         (WebCore::ClipboardChromium::clearAllData):
350         (WebCore::ClipboardChromium::getData):
351         (WebCore::ClipboardChromium::setData):
352         (WebCore::ClipboardChromium::types):
353         (WebCore::ClipboardChromium::setDragImage):
354         (WebCore::ClipboardChromium::setDragImageElement):
355         (WebCore::ClipboardChromium::createDragImage):
356         (WebCore::imageToMarkup):
357         (WebCore::getCachedImage):
358         (WebCore::writeImageToDataObject):
359         (WebCore::ClipboardChromium::declareAndWriteDragImage):
360         (WebCore::ClipboardChromium::writeURL):
361         (WebCore::ClipboardChromium::writeRange):
362         (WebCore::ClipboardChromium::hasData):
363         * platform/chromium/ClipboardChromium.h: Added.
364         (WebCore::ClipboardChromium::~ClipboardChromium):
365         (WebCore::ClipboardChromium::dataObject):
366         * platform/chromium/ClipboardUtilitiesChromium.cpp: Added.
367         (WebCore::replaceNewlinesWithWindowsStyleNewlines):
368         (WebCore::replaceNBSPWithSpace):
369         (WebCore::urlToMarkup):
370         * platform/chromium/ClipboardUtilitiesChromium.h: Added.
371         * platform/chromium/ContextMenuChromium.cpp: Added.
372         (WebCore::ContextMenu::ContextMenu):
373         (WebCore::ContextMenu::~ContextMenu):
374         (WebCore::ContextMenu::itemCount):
375         (WebCore::ContextMenu::insertItem):
376         (WebCore::ContextMenu::appendItem):
377         (WebCore::ContextMenu::itemWithAction):
378         (WebCore::ContextMenu::itemAtIndex):
379         (WebCore::ContextMenu::setPlatformDescription):
380         (WebCore::ContextMenu::platformDescription):
381         (WebCore::ContextMenu::releasePlatformDescription):
382         * platform/chromium/ContextMenuItemChromium.cpp: Added.
383         (WebCore::ContextMenuItem::ContextMenuItem):
384         (WebCore::ContextMenuItem::~ContextMenuItem):
385         (WebCore::ContextMenuItem::releasePlatformDescription):
386         (WebCore::ContextMenuItem::type):
387         (WebCore::ContextMenuItem::action):
388         (WebCore::ContextMenuItem::title):
389         (WebCore::ContextMenuItem::platformSubMenu):
390         (WebCore::ContextMenuItem::setType):
391         (WebCore::ContextMenuItem::setAction):
392         (WebCore::ContextMenuItem::setTitle):
393         (WebCore::ContextMenuItem::setSubMenu):
394         (WebCore::ContextMenuItem::setChecked):
395         (WebCore::ContextMenuItem::setEnabled):
396         (WebCore::ContextMenuItem::enabled):
397         * platform/chromium/CursorChromium.cpp: Added.
398         (WebCore::Cursor::Cursor):
399         (WebCore::Cursor::~Cursor):
400         (WebCore::Cursor::operator=):
401         (WebCore::pointerCursor):
402         (WebCore::crossCursor):
403         (WebCore::handCursor):
404         (WebCore::iBeamCursor):
405         (WebCore::waitCursor):
406         (WebCore::helpCursor):
407         (WebCore::eastResizeCursor):
408         (WebCore::northResizeCursor):
409         (WebCore::northEastResizeCursor):
410         (WebCore::northWestResizeCursor):
411         (WebCore::southResizeCursor):
412         (WebCore::southEastResizeCursor):
413         (WebCore::southWestResizeCursor):
414         (WebCore::westResizeCursor):
415         (WebCore::northSouthResizeCursor):
416         (WebCore::eastWestResizeCursor):
417         (WebCore::northEastSouthWestResizeCursor):
418         (WebCore::northWestSouthEastResizeCursor):
419         (WebCore::columnResizeCursor):
420         (WebCore::rowResizeCursor):
421         (WebCore::middlePanningCursor):
422         (WebCore::eastPanningCursor):
423         (WebCore::northPanningCursor):
424         (WebCore::northEastPanningCursor):
425         (WebCore::northWestPanningCursor):
426         (WebCore::southPanningCursor):
427         (WebCore::southEastPanningCursor):
428         (WebCore::southWestPanningCursor):
429         (WebCore::westPanningCursor):
430         (WebCore::moveCursor):
431         (WebCore::verticalTextCursor):
432         (WebCore::cellCursor):
433         (WebCore::contextMenuCursor):
434         (WebCore::aliasCursor):
435         (WebCore::progressCursor):
436         (WebCore::noDropCursor):
437         (WebCore::copyCursor):
438         (WebCore::noneCursor):
439         (WebCore::notAllowedCursor):
440         (WebCore::zoomInCursor):
441         (WebCore::zoomOutCursor):
442         (WebCore::grabCursor):
443         (WebCore::grabbingCursor):
444         * platform/chromium/DragDataChromium.cpp: Added.
445         (WebCore::containsHTML):
446         (WebCore::DragData::createClipboard):
447         (WebCore::DragData::containsURL):
448         (WebCore::DragData::asURL):
449         (WebCore::DragData::containsFiles):
450         (WebCore::DragData::asFilenames):
451         (WebCore::DragData::containsPlainText):
452         (WebCore::DragData::asPlainText):
453         (WebCore::DragData::containsColor):
454         (WebCore::DragData::canSmartReplace):
455         (WebCore::DragData::containsCompatibleContent):
456         (WebCore::DragData::asFragment):
457         (WebCore::DragData::asColor):
458         * platform/chromium/EditorChromium.cpp: Added.
459         (WebCore::Editor::newGeneralClipboard):
460         * platform/chromium/FileChooserChromium.cpp: Added.
461         (WebCore::FileChooser::basenameForWidth):
462         * platform/chromium/FileSystemChromium.cpp: Added.
463         (WebCore::deleteFile):
464         (WebCore::deleteEmptyDirectory):
465         (WebCore::getFileSize):
466         (WebCore::getFileModificationTime):
467         (WebCore::directoryName):
468         (WebCore::pathByAppendingComponent):
469         (WebCore::makeAllDirectories):
470         (WebCore::fileExists):
471         * platform/chromium/FileSystemChromiumLinux.cpp: Added.
472         (WebCore::pathGetFileName):
473         * platform/chromium/FileSystemChromiumMac.mm: Added.
474         (WebCore::pathGetFileName):
475         * platform/chromium/FileSystemChromiumWin.cpp: Added.
476         (WebCore::pathGetFileName):
477         * platform/chromium/FramelessScrollView.cpp: Added.
478         (WebCore::FramelessScrollView::~FramelessScrollView):
479         (WebCore::FramelessScrollView::invalidateScrollbarRect):
480         (WebCore::FramelessScrollView::isActive):
481         (WebCore::FramelessScrollView::invalidateRect):
482         (WebCore::FramelessScrollView::hostWindow):
483         (WebCore::FramelessScrollView::windowClipRect):
484         (WebCore::FramelessScrollView::paintContents):
485         (WebCore::FramelessScrollView::contentsResized):
486         (WebCore::FramelessScrollView::visibleContentsResized):
487         * platform/chromium/FramelessScrollView.h: Added.
488         (WebCore::FramelessScrollView::FramelessScrollView):
489         (WebCore::FramelessScrollView::client):
490         (WebCore::FramelessScrollView::setClient):
491         * platform/chromium/FramelessScrollViewClient.h: Added.
492         * platform/chromium/ScrollbarThemeChromiumWin.cpp: Added.
493         (WebCore::):
494         (WebCore::ScrollbarThemeChromium::scrollbarThickness):
495         (WebCore::ScrollbarThemeChromium::invalidateOnMouseEnterExit):
496         (WebCore::ScrollbarThemeChromium::paintTrackPiece):
497         (WebCore::ScrollbarThemeChromium::paintButton):
498         (WebCore::ScrollbarThemeChromium::paintThumb):
499         (WebCore::ScrollbarThemeChromium::getThemeState):
500         (WebCore::ScrollbarThemeChromium::getThemeArrowState):
501         (WebCore::ScrollbarThemeChromium::getClassicThemeState):
502         * platform/chromium/SoundChromiumPosix.cpp: Added.
503         (WebCore::systemBeep):
504         * platform/chromium/SoundChromiumWin.cpp: Added.
505         (WebCore::systemBeep):
506         * platform/chromium/SystemTimeChromium.cpp: Added.
507         (WebCore::currentTime):
508         (WebCore::userIdleTime):
509         * platform/chromium/WidgetChromium.cpp: Added.
510         (WebCore::Widget::Widget):
511         (WebCore::Widget::~Widget):
512         (WebCore::Widget::show):
513         (WebCore::Widget::hide):
514         (WebCore::Widget::setCursor):
515         (WebCore::Widget::paint):
516         (WebCore::Widget::setFocus):
517         (WebCore::Widget::setIsSelected):
518         (WebCore::Widget::frameRect):
519         (WebCore::Widget::setFrameRect):
520         * platform/chromium/WindowsVersion.cpp: Added.
521         (WebCore::isVistaOrNewer):
522         * platform/chromium/WindowsVersion.h: Added.
523
524 2009-01-13  Tor Arne Vestbø  <tavestbo@trolltech.com>
525
526         Reviewed by Simon Hausmann.
527
528         [Qt] Make sure media elements dispatch the 'loaded' event
529         
530         We assume that when Phonon goes into paused state that we have the
531         complete media file. Once we do media loading ourselves we can
532         distinguish between loading the first frame and the complete media.
533
534         * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
535         (WebCore::MediaPlayerPrivate::updateStates):
536
537 2009-01-13  Tor Arne Vestbø  <tavestbo@trolltech.com>
538
539         Reviewed by Simon Hausmann.
540
541         [Qt] Add more verbose error output when loading NPAPI plugins
542
543         * plugins/qt/PluginPackageQt.cpp:
544         (WebCore::PluginPackage::load):
545
546 2009-01-13  Simon Hausmann  <simon.hausmann@nokia.com>
547
548         Reviewed by Tor Arne Vestbø.
549
550         Fix crash in the Qt port when deleting a popup from within a
551         JavaScript onchange handler.
552
553         * platform/qt/QWebPopup.cpp:
554         (WebCore::QWebPopup::QWebPopup): Perform the activation of the
555         combobox item (i.e. the call to the JS handler) from a different
556         call stack by using a queued connection.
557
558 2009-01-12  Holger Hans Peter Freyther  <zecke@selfish.org>
559
560         Reviewed by Tor Arne Vestbø.
561
562         [GIO] Make sure to untef the GFile and the GInputStream on destruction
563
564         Make sure to call cleanupGioOperation from the ResourceHandleInternal
565         d'tor. Change the signature of cleanupGioOperation so we can do the
566         cleanup of GIO next to the cleanup of SOUP.
567
568         This is happening with many tests from dom/html/level2/html e.g.
569         LayoutTests/dom/html/level2/html/HTMLBodyElement07.html.
570
571         * platform/network/soup/ResourceHandleSoup.cpp:
572         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
573         (WebCore::cleanupGioOperation):
574         (WebCore::closeCallback):
575         (WebCore::readCallback):
576         (WebCore::openCallback):
577         (WebCore::queryInfoCallback):
578
579 2009-01-12  Holger Hans Peter Freyther  <zecke@selfish.org>
580
581         Reviewed by Tor Arne Vestbø.
582
583         [GIO] Attach the ResourceHandle to the GObject and get it from the GObject
584
585         https://bugs.webkit.org/show_bug.cgi?id=23116 discussed with Benjamin Otte
586
587         Sometimes it is not possible to cancel a pending GIO operation and the
588         callback might be invoked with a pointer to an already destructed
589         ResourceHandle. To avoid this issue we will attach the ResourceHandle
590         to the GObject* and in the callback attempt to get the ResourceHandle
591         from the GObject*. If no ResourceHandle is attached we silently fail
592         as the cleanup has been already done.
593
594         This is happening with many tests from dom/html/level2/html e.g.
595         LayoutTests/dom/html/level2/html/HTMLBodyElement07.html.
596
597         * platform/network/soup/ResourceHandleSoup.cpp:
598         (WebCore::cleanupGioOperation):
599         (WebCore::closeCallback):
600         (WebCore::readCallback):
601         (WebCore::openCallback):
602         (WebCore::queryInfoCallback):
603         (WebCore::ResourceHandle::startGio):
604
605 2009-01-12  Holger Hans Peter Freyther  <zecke@selfish.org>
606
607         Reviewed by Tor Arne Vestbø.
608
609         [GIO] Invoke cleanupGioOperation before calling didFail to avoid crashes
610
611         https://bugs.webkit.org/show_bug.cgi?id=23116
612
613         The ResourceHandle becomes invalid (e.g. got destructed) from within
614         the invocation of didFail. Avoid this by cleaning up everything before
615         calling didFail and simply return afterwards.
616
617         This is happening with many tests from dom/html/level2/html e.g.
618         LayoutTests/dom/html/level2/html/HTMLBodyElement07.html.
619
620         * platform/network/soup/ResourceHandleSoup.cpp:
621         (WebCore::readCallback):
622         (WebCore::openCallback):
623         (WebCore::queryInfoCallback):
624
625 2009-01-13  Tor Arne Vestbø  <tavestbo@trolltech.com>
626
627         Reviewed by Simon Hausmann.
628
629         Change how themes adjust mediaControls.css to match html4/quicks.css
630         
631         Instead of providing the full style sheet, the themes provide extra
632         overrides to the default style defined in UserAgentStyleSheetsData.
633         
634         https://bugs.webkit.org/show_bug.cgi?id=23210
635         
636         Also, merge WebKitResources.qrc and WebCoreResources.qrc to speed up
637         build time for the Qt port.
638
639         * Resources/WebKitResources.qrc: Removed. Merged into WebCore.qrc
640         * WebCore.pro:
641         * WebCore.qrc: Added.
642         * css/CSSStyleSelector.cpp:
643         (WebCore::CSSStyleSelector::styleForElement):
644         * css/qt/mediaControls-extras.css: Rename from html4-adjustments-qt.css
645         * platform/qt/RenderThemeQt.cpp:
646         (WebCore::RenderThemeQt::extraMediaControlsStyleSheet):
647         * platform/qt/RenderThemeQt.h:
648         * platform/qt/WebCoreResources.qrc: Removed.
649         * platform/qt/html4-adjustments-qt.css: Rename to mediaControls-extras.css
650         * rendering/RenderTheme.cpp:
651         * rendering/RenderTheme.h:
652         (WebCore::RenderTheme::extraMediaControlsStyleSheet):
653
654 2009-01-12  Gavin Barraclough  <barraclough@apple.com>
655
656         Reviewed by Oliver Hunt.
657
658         Deprecate JSValuePtr::getNumber() - two ways to get a number should  be enough.
659
660         * bindings/js/JSSQLTransactionCustom.cpp:
661         (WebCore::JSSQLTransaction::executeSql):
662         * bindings/objc/WebScriptObject.mm:
663         (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
664
665 2009-01-12  Chris Marrin  <cmarrin@apple.com>
666
667         Reviewed by Dan Bernstein.
668
669         Fixed https://bugs.webkit.org/show_bug.cgi?id=22919
670
671         I added a common getElapsedTime() function to AnimationBase which uses a combination of
672         the techniques from KeyframeAnimation and AnimationBase to compute elapsedTime in all
673         states.
674
675         * page/animation/AnimationBase.cpp:
676         (WebCore::AnimationBase::progress):
677         (WebCore::AnimationBase::getElapsedTime):
678         * page/animation/AnimationBase.h:
679         * page/animation/KeyframeAnimation.cpp:
680         (WebCore::KeyframeAnimation::animate):
681
682 2009-01-12  Robert Blaut  <webkit@blaut.biz>
683
684         Reviewed by Darin Adler
685
686         Fix for <https://bugs.webkit.org/show_bug.cgi?id=22096>
687         Bug 22096: REGRESSION (r35879) scrolldelay is counted in seconds 
688         instead of miliseconds
689
690         Test: fast/css/webkit-marquee-speed-unit-in-quirksmode.html
691
692         * css/CSSParser.cpp:
693         (WebCore::CSSParser::validUnit): treat unitless values in quirks mode 
694         as miliseconds instead of seconds.
695
696 2009-01-12  David Hyatt  <hyatt@apple.com>
697
698         Apply the same idea as the previous fix but for matched declarations.
699
700         Reviewed by Dan Bernstein
701
702         * css/CSSStyleSelector.h:
703
704 2009-01-12  Brady Eidson  <beidson@apple.com>
705
706         Reviewed by Darin Adler
707
708         <rdar://problem/6468274> - Track Non-get requests in global history
709
710         * WebCore.base.exp:
711
712         * history/HistoryItem.cpp:
713         (WebCore::HistoryItem::HistoryItem):
714         * history/HistoryItem.h:
715         (WebCore::HistoryItem::lastVisitWasHTTPNonGet):
716         (WebCore::HistoryItem::setLastVisitWasHTTPNonGet):
717
718 2009-01-12  Kevin Ollivier  <kevino@theolliviers.com>
719
720         !ENABLE(SVG_FONTS) build fix. Move defaultUnitsPerEm into a non-SVG header
721         so it can be used by all builds.
722         
723         * platform/graphics/Font.h:
724         * platform/graphics/SimpleFontData.cpp:
725         * svg/SVGFontFaceElement.cpp:
726         * svg/SVGFontFaceElement.h:
727
728 2009-01-12  Kevin Ollivier  <kevino@theolliviers.com>
729
730         wx build typo fix.
731
732         * platform/graphics/wx/TransformationMatrixWx.cpp:
733         (WebCore::TransformationMatrix::TransformationMatrix):
734
735 2009-01-12  David Hyatt  <hyatt@apple.com>
736
737         Make sure the set of matched rules has a reserved capacity of 32.  This prevents remalloc thrash as
738         elements are matched, since the Vector is shrinking and growing over and over.  1% PLT speedup.
739
740         Reviewed by Oliver Hunt
741
742         * css/CSSStyleSelector.h:
743
744 2009-01-12  David Hyatt  <hyatt@apple.com>
745
746         Optimize Element::attributeChanged to just check if accessibility is enabled up front before looking at the
747         two accessibility-related attributes.  This avoids the rest of the code for all attributes on the PLT.
748         Tiny speedup.
749
750         Reviewed by Oliver Hunt
751
752         * dom/Element.cpp:
753         (WebCore::Element::attributeChanged):
754
755 2009-01-12  David Hyatt  <hyatt@apple.com>
756
757         Optimize the retrieval of line height.  If the document is not using any first-line rules, just immediately
758         default to the normal case.  Tiny speedup on PLT.
759
760         Reviewed by Oliver Hunt
761
762         * rendering/RenderFlow.cpp:
763         (WebCore::RenderFlow::lineHeight):
764
765 2009-01-12  David Hyatt  <hyatt@apple.com>
766
767         Fix 0.6% regression in PLT.  Make sure not to waste time updating NSScrollView's can blit on scroll state
768         in the ScrollView constructor, since this is always going to be properly updated by FrameView anyway.
769
770         Reviewed by Oliver Hunt
771
772         * platform/ScrollView.cpp:
773         (WebCore::ScrollView::ScrollView):
774
775 2009-01-12  Simon Fraser  <simon.fraser@apple.com>
776
777         Reviewed by Dan Bernstein
778
779         https://bugs.webkit.org/show_bug.cgi?id=23273
780
781         In RenderBox::repaintLayerRectsForImage(), the repaint rect does not have
782         to be computed in absolute coordintes. Instead, we compute a repaintRect
783         relative to the RenderObject, which can repaint itself.
784         
785         * rendering/RenderBox.cpp:
786         (WebCore::RenderBox::repaintLayerRectsForImage):
787
788 2009-01-12  Simon Fraser  <simon.fraser@apple.com>
789
790         Reviewed by Dan Bernstein
791
792         https://bugs.webkit.org/show_bug.cgi?id=23220
793
794         Merge layoutDelta into LayoutState. This requires that we
795         push even when layoutState is disabled, so that layoutDelta
796         can still be stored.
797
798         * rendering/LayoutState.cpp:
799         (WebCore::LayoutState::LayoutState):
800         * rendering/LayoutState.h:
801         (WebCore::LayoutState::LayoutState):
802         * rendering/RenderBlock.cpp:
803         (WebCore::RenderBlock::layoutBlock):
804         (WebCore::RenderBlock::layoutBlockChildren):
805         (WebCore::RenderBlock::layoutOnlyPositionedObjects):
806         * rendering/RenderBox.cpp:
807         (WebCore::RenderBox::localToAbsolute):
808         (WebCore::RenderBox::absoluteToLocal):
809         (WebCore::RenderBox::computeAbsoluteRepaintRect):
810         * rendering/RenderFlexibleBox.cpp:
811         (WebCore::RenderFlexibleBox::layoutBlock):
812         * rendering/RenderFlow.cpp:
813         (WebCore::RenderFlow::absoluteClippedOverflowRect):
814         * rendering/RenderLayer.cpp:
815         (WebCore::RenderLayer::updateLayerPositions):
816         * rendering/RenderTableCell.cpp:
817         (WebCore::RenderTableCell::computeAbsoluteRepaintRect):
818         (WebCore::RenderTableCell::localToAbsolute):
819         * rendering/RenderView.cpp:
820         (WebCore::RenderView::pushLayoutState):
821         * rendering/RenderView.h:
822         (WebCore::RenderView::layoutDelta):
823         (WebCore::RenderView::addLayoutDelta):
824         (WebCore::RenderView::doingFullRepaint):
825         (WebCore::RenderView::pushLayoutState):
826         (WebCore::RenderView::popLayoutState):
827         (WebCore::RenderView::layoutStateEnabled):
828         (WebCore::RenderView::layoutState):
829         (WebCore::LayoutStateMaintainer::LayoutStateMaintainer):
830         (WebCore::LayoutStateMaintainer::push):
831         (WebCore::LayoutStateMaintainer::pop):
832         * rendering/bidi.cpp:
833         (WebCore::RenderBlock::layoutInlineChildren):
834
835 2009-01-12  Julien Chaffraix  <jchaffraix@pleyo.com>
836
837         Reviewed by Holger Freyther.
838
839         [Qt] Build fix after turning the fontCache to a singleton
840         https://bugs.webkit.org/show_bug.cgi?id=23253
841
842         Add a stub implementation for WebCore::fontCache() and FontCache::FontCache().
843
844         * platform/graphics/qt/FontCacheQt.cpp:
845         (WebCore::fontCache):
846         (WebCore::FontCache::FontCache):
847
848 2009-01-12  Eric Roman  <eroman@chromium.org>
849  
850         Reviewed by Darin Adler.
851  
852         Fix some bugs with Selection::appendTrailingWhitespace().
853         https://bugs.webkit.org/show_bug.cgi?id=23232
854  
855         Test: editing/selection/doubleclick-whitespace-crash.html
856  
857         * editing/Selection.cpp:
858         (WebCore::makeSearchRange):
859         (WebCore::Selection::appendTrailingWhitespace):
860
861 2009-01-12  Dimitri Glazkov  <dglazkov@chromium.org>
862
863         Reviewed by Eric Seidel.
864
865         Add the first pieces of platform/graphics/chromium
866         https://bugs.webkit.org/show_bug.cgi?id=23257
867
868         * platform/graphics/chromium/ColorChromium.cpp: Added.
869         (WebCore::focusRingColor):
870         * platform/graphics/chromium/FontCacheChromiumWin.cpp: Added.
871         (WebCore::FontCache::platformInit):
872         (WebCore::isStringASCII):
873         (WebCore::LookupAltName):
874         (WebCore::FontCodepage::):
875         (WebCore::FontCodepage::if):
876         (WebCore::createFontIndirectAndGetWinName):
877         (WebCore::fontContainsCharacter):
878         (WebCore::FontCache::getFontDataForCharacters):
879         (WebCore::FontCache::alternateFamilyName):
880         (WebCore::FontCache::getSimilarFontPlatformData):
881         (WebCore::FontCache::getLastResortFallbackFont):
882         (WebCore::toGDIFontWeight):
883         (WebCore::FontCache::getGenericFontForScript):
884         (WebCore::FillLogFont):
885         (WebCore::FontCache::fontExists):
886         (WebCore::TraitsInFamilyProcData::TraitsInFamilyProcData):
887         (WebCore::traitsInFamilyEnumProc):
888         (WebCore::FontCache::getTraitsInFamily):
889         (WebCore::FontCache::createFontPlatformData):
890         * platform/graphics/chromium/FontCacheLinux.cpp: Added.
891         (WebCore::FontCache::platformInit):
892         (WebCore::FontCache::getFontDataForCharacters):
893         (WebCore::FontCache::alternateFamilyName):
894         (WebCore::FontCache::getSimilarFontPlatformData):
895         (WebCore::FontCache::getLastResortFallbackFont):
896         (WebCore::FontCache::getTraitsInFamily):
897         (WebCore::FontCache::createFontPlatformData):
898         (WebCore::FontCache::getGenericFontForScript):
899         * platform/graphics/chromium/FontChromiumWin.cpp: Added.
900         (WebCore::windowsCanHandleTextDrawing):
901         (WebCore::skiaDrawText):
902         (WebCore::PaintSkiaText):
903         (WebCore::Font::drawGlyphs):
904         (WebCore::Font::selectionRectForComplexText):
905         (WebCore::Font::drawComplexText):
906         (WebCore::Font::floatWidthForComplexText):
907         (WebCore::Font::offsetForPositionForComplexText):
908
909 2009-01-12  Darin Fisher  <darin@chromium.org>
910
911         Reviewed by Eric Seidel.
912
913         https://bugs.webkit.org/show_bug.cgi?id=23254
914         Upstream page/chromium/
915
916         * page/chromium/AXObjectCacheChromium.cpp: Added.
917         (WebCore::AXObjectCache::detachWrapper):
918         (WebCore::AXObjectCache::attachWrapper):
919         (WebCore::AXObjectCache::postNotification):
920         (WebCore::AXObjectCache::postNotificationToElement):
921         (WebCore::AXObjectCache::handleFocusedUIElementChanged):
922         * page/chromium/AccessibilityObjectChromium.cpp:
923         * page/chromium/AccessibilityObjectWrapper.h:
924         * page/chromium/ChromeClientChromium.h: Added.
925         * page/chromium/DragControllerChromium.cpp: Added.
926         (WebCore::DragController::dragOperation):
927         (WebCore::DragController::isCopyKeyDown):
928         (WebCore::DragController::maxDragImageSize):
929         (WebCore::DragController::cleanupAfterSystemDrag):
930         * page/chromium/EventHandlerChromium.cpp: Added.
931         (WebCore::EventHandler::passMousePressEventToSubframe):
932         (WebCore::EventHandler::passMouseMoveEventToSubframe):
933         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
934         (WebCore::EventHandler::passWheelEventToWidget):
935         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
936         (WebCore::EventHandler::passMouseDownEventToWidget):
937         (WebCore::EventHandler::tabsToAllControls):
938         (WebCore::EventHandler::eventActivatedView):
939         (WebCore::EventHandler::createDraggingClipboard):
940         (WebCore::EventHandler::focusDocumentView):
941         (WebCore::EventHandler::accessKeyModifiers):
942         * page/chromium/FrameChromium.cpp: Added.
943         (WebCore::computePageRectsForFrame):
944         (WebCore::Frame::dragImageForSelection):
945         * page/chromium/FrameChromium.h: Added.
946
947 2009-01-12  Dimitri Glazkov  <dglazkov@chromium.org>
948
949         Reviewed by Darin Adler.
950
951         https://bugs.webkit.org/show_bug.cgi?id=22936
952         Fix uninitialized memory read error, reported by Purify.
953
954         * platform/graphics/SimpleFontData.cpp:
955         (WebCore::SimpleFontData::SimpleFontData): Added initializer for
956             m_unitsPerEm using cDefaultUnitsPerEm constant.
957         * svg/SVGFontFaceElement.cpp:
958         (WebCore::SVGFontFaceElement::unitsPerEm): Replaced literal value with
959             the constant.
960         * svg/SVGFontFaceElement.h: Added cDefaultUnitsPerEm constant.
961
962 2009-01-12  Adam Treat  <adam.treat@torchmobile.com>
963
964         Reviewed by George Staikos.
965
966         Do not set fixedLayoutSize for anything other than the mainframe during
967         the transition as this is a page level state like the viewportSize.
968
969         * loader/FrameLoaderClient.cpp:
970         (WebCore::FrameLoaderClient::transitionToCommittedForNewPage):
971
972 2009-01-12  Julien Chaffraix  <jchaffraix@pleyo.com>
973
974         Reviewed by Darin Adler.
975
976         Bug 22861: Turn the FontCache into a singleton
977         https://bugs.webkit.org/show_bug.cgi?id=22861
978
979         - Added fontCache() to get the global FontCache.
980
981         - Made all the methods in FontCache instance method.
982
983         - Changed FontCache:: to fontCache()-> in WebCore.
984
985         * WebCore.base.exp: Now export fontCache().
986         * css/CSSFontFaceSource.cpp:
987         (WebCore::CSSFontFaceSource::getFontData):
988         * css/CSSFontSelector.cpp:
989         (WebCore::CSSFontSelector::CSSFontSelector):
990         (WebCore::CSSFontSelector::~CSSFontSelector):
991         (WebCore::CSSFontSelector::addFontFaceRule):
992         (WebCore::fontDataForGenericFamily):
993         * platform/graphics/Font.cpp:
994         (WebCore::Font::glyphDataForCharacter):
995         * platform/graphics/FontCache.cpp:
996         (WebCore::fontCache):
997         (WebCore::FontCache::FontCache):
998         * platform/graphics/FontCache.h:
999         * platform/graphics/FontFallbackList.cpp:
1000         (WebCore::FontFallbackList::FontFallbackList):
1001         (WebCore::FontFallbackList::invalidate):
1002         (WebCore::FontFallbackList::releaseFontData):
1003         (WebCore::FontFallbackList::fontDataAt):
1004         (WebCore::FontFallbackList::fontDataForCharacters):
1005         (WebCore::FontFallbackList::setPlatformFont):
1006         * platform/graphics/SimpleFontData.cpp:
1007         (WebCore::SimpleFontData::~SimpleFontData):
1008         * platform/graphics/mac/FontCacheMac.mm:
1009         (WebCore::fontCacheATSNotificationCallback):
1010         * platform/graphics/mac/SimpleFontDataMac.mm:
1011         (WebCore::SimpleFontData::smallCapsFontData):
1012         * platform/graphics/win/FontCacheWin.cpp:
1013         (WebCore::getCJKCodePageMasks):
1014         * platform/graphics/win/SimpleFontDataWin.cpp:
1015         (WebCore::SimpleFontData::containsCharacters):
1016
1017 2009-01-11  Darin Adler  <darin@apple.com>
1018
1019         Reviewed by Dan Bernstein.
1020
1021         Bug 23247: createSVGPathSegCurvetoCubicSmoothAbs doesn't set y2 correctly
1022         https://bugs.webkit.org/show_bug.cgi?id=23247
1023
1024         Also fix problems where partially parsed paths will still have an effect
1025         rather than failing parsing and being ignored.
1026
1027         Test: dom/path-segments.html
1028
1029         * platform/graphics/Path.h:
1030         (WebCore::Path::swap): Added.
1031
1032         * svg/SVGParserUtilities.cpp:
1033         (WebCore::SVGPathParser::parseSVG): Removed unneeded special case for empty string.
1034         (WebCore::PathBuilder::build): Changed to not modify the path if parsing fails.
1035         (WebCore::SVGPathSegListBuilder::build): Changed to not modify the segment list if
1036         parsing fails.
1037         (WebCore::SVGPathSegListBuilder::svgMoveTo): Put the path element into the vector,
1038         not directly into the segment list.
1039         (WebCore::SVGPathSegListBuilder::svgLineTo): Ditto.
1040         (WebCore::SVGPathSegListBuilder::svgLineToHorizontal): Ditto.
1041         (WebCore::SVGPathSegListBuilder::svgLineToVertical): Ditto.
1042         (WebCore::SVGPathSegListBuilder::svgCurveToCubic): Ditto.
1043         (WebCore::SVGPathSegListBuilder::svgCurveToCubicSmooth): Ditto.
1044         (WebCore::SVGPathSegListBuilder::svgCurveToQuadratic): Ditto.
1045         (WebCore::SVGPathSegListBuilder::svgCurveToQuadraticSmooth): Ditto.
1046         (WebCore::SVGPathSegListBuilder::svgArcTo): Ditto.
1047         (WebCore::SVGPathSegListBuilder::svgClosePath): Ditto.
1048
1049         * svg/SVGPathSegCurvetoCubicSmooth.h:
1050         (WebCore::SVGPathSegCurvetoCubicSmooth::SVGPathSegCurvetoCubicSmooth):
1051         Set y2 to y2, not to y.
1052
1053 2009-01-11  Darin Adler  <darin@apple.com>
1054
1055         Reviewed by Oliver Hunt.
1056
1057         Bug 23102: turn on unused parameter warnings in WebCore
1058         https://bugs.webkit.org/show_bug.cgi?id=23102
1059
1060         Fourth step: Remove arguments entirely in the many cases where they are not
1061         needed at all. This step is a little less mechanical than the earlier ones.
1062
1063         * dom/DOMImplementation.cpp:
1064         (WebCore::DOMImplementation::isXMLMIMEType): Pass TextCaseSensitive when creating
1065         the regular expression, since we already specify a-zA-Z in our expression.
1066
1067         * dom/Document.cpp:
1068         (WebCore::Document::databaseThread): Don't pass in the document when creating
1069         a DatabaseThread.
1070
1071         * dom/Element.cpp:
1072         (WebCore::Element::createRareData): Don't pass the element when creating an
1073         ElementRareData.
1074         (WebCore::Element::detach): Don't pass the element when calling resetComputedStyle.
1075         (WebCore::Element::recalcStyle): Ditto.
1076
1077         * dom/ElementRareData.h: Remove the unused Element* from the constructor and
1078         the resetComputedStyle function.
1079
1080         * dom/EventTargetNode.cpp:
1081         (WebCore::EventTargetNode::dispatchEvent): Don't pass ec to dispatchGenericEvent.
1082         (WebCore::EventTargetNode::dispatchGenericEvent): Remove the unused ec argument.
1083         (WebCore::EventTargetNode::dispatchWindowEvent): Don't pass ec to dispatchGenericEvent.
1084         * dom/EventTargetNode.h: Remove the ExceptionCode& argument form disaptchGenericEvent.
1085
1086         * editing/ApplyStyleCommand.cpp: Remove the empty removeBlockStyle function.
1087         (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode): Remove the unused
1088         start and end arguments.
1089         (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAtBoundaries): Don't pass start
1090         and end to pushDownTextDecorationStyleAroundNode.
1091
1092         * editing/ApplyStyleCommand.h: Remove the empty removeBlockStyle function. Removed the
1093         unused start and end arguments from pushDownTextDecorationStyleAroundNode.
1094
1095         * editing/htmlediting.cpp: Removed include of unused RegularExpression.h header.
1096
1097         * html/HTMLTokenizer.cpp:
1098         (WebCore::Token::addAttribute): Removed unused Document* argument.
1099         (WebCore::HTMLTokenizer::parseTag): Don't pass document to addAttribute.
1100
1101         * html/HTMLTokenizer.h: Removed unused Document* argument to to addAttribute.
1102
1103         * page/DOMWindow.cpp:
1104         (WebCore::DOMWindow::localStorage): Don't pass the frame to storageArea.
1105
1106         * page/DragController.cpp:
1107         (WebCore::DragController::dragIsMove): Removed unused DragData argument.
1108         (WebCore::DragController::performDrag): Call concludeEditDrag rather than
1109         concludeDrag.
1110         (WebCore::DragController::tryDocumentDrag): Don't pass dragData to dragIsMove.
1111         (WebCore::DragController::concludeEditDrag): Renamed to make it clear this
1112         should only be called for edit drags. Removed the action mask argument. Also
1113         changed dragIsMove call sites to not pass dragData.
1114
1115         * page/DragController.h: Updated for above changes and tweaked comment format.
1116
1117         * page/Frame.cpp:
1118         (WebCore::createRegExpForLabels): Pass TextCaseSensitive and TextCaseInsensitive
1119         when creating regular expressions for clarity. Call match instead of search,
1120         since both do the same thing except for with negative start offsets, and none
1121         used here are negative.
1122         (WebCore::Frame::matchLabelsAgainstElement): Ditto.
1123
1124         * page/Page.h: Moved TextCaseSensitivity from here to StringImpl.h in platform.
1125
1126         * page/mac/AccessibilityObjectWrapper.mm:
1127         (AXAttributeStringSetHeadingLevel): Removed unused object argument.
1128         (AXAttributedStringAppendText): Ditto.
1129         (-[AccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:]): Ditto.
1130
1131         * page/mac/FrameMac.mm:
1132         (WebCore::regExpForLabels): Pass TextCaseSensitive and TextCaseInsensitive
1133         when creating regular expressions for clarity. Call match instead of search,
1134         since both do the same thing except for with negative start offsets, and none
1135         used here are negative.
1136         (WebCore::Frame::matchLabelsAgainstElement): Ditto.
1137
1138         * platform/graphics/SegmentedFontData.cpp:
1139         (WebCore::SegmentedFontData::containsCharacter): Added.
1140         (WebCore::SegmentedFontData::containsCharacters): Updated to check all characters
1141         instead of just the first one, using containsCharacter.
1142
1143         * platform/graphics/SegmentedFontData.h: Made more members private.
1144         Added containsCharacter function member.
1145
1146         * platform/mac/DragImageMac.mm:
1147         (WebCore::dragImageSize): Changed to use RetainPtr<NSImage> directly instead of
1148         DragImageRef for clarity, since this is platform-specific code.
1149         (WebCore::deleteDragImage): Ditto. Also remove argument name to get rid of unused
1150         variable warning.
1151         (WebCore::scaleDragImage): Ditto.
1152         (WebCore::dissolveDragImageToFraction): Ditto.
1153         (WebCore::createDragImageFromImage): Ditto.
1154         (WebCore::createDragImageIconForCachedImage): Ditto.
1155
1156         * platform/mac/WebFontCache.mm:
1157         (acceptableChoice): Removed the unused weight-related arguments.
1158         (betterChoice): Ditto.
1159         (+[WebFontCache internalFontWithFamily:traits:weight:size:]): Ditto.
1160
1161         * platform/posix/FileSystemPOSIX.cpp: Removed the implementation of listDirectory
1162         because we'd rather get a link error rather than a runtime error if we use it
1163         for anything, and right now it's not used.
1164
1165         * platform/text/RegularExpression.cpp: Removed unused private data,
1166         including pattern, lastMatchString, lastMatchOffsets, lastMatchCount,
1167         and lastMatchPos. Made the RegularExpression::Private::regex be private
1168         and use an accessor function to get at it.
1169         (WebCore::RegularExpression::RegularExpression): Removed the const char* version
1170         of the constructor because it's not any more efficient. Changed the boolean
1171         constructor argument to use TextCaseSensitivity instead to make it less likely
1172         we'll use it wrong.
1173         (WebCore::RegularExpression::operator=): Since the only member is a single RefPtr,
1174         just use plain old assignment on it. The only reason we do this instead of using
1175         the compiler generated assignment operator is that we want the Private structure
1176         to be internal to the .cpp file.
1177         (WebCore::RegularExpression::match): Added a null check so we won't crash if
1178         we fail to compile the regular expression. Removed the code to handle multiple
1179         match strings, since that was unused.
1180
1181         * platform/text/RegularExpression.h: Changed the case sensitivity argument to use
1182         TextCaseSensitivity and not have a default value. Removed the default constructor,
1183         and the pattern, match, and pos functions.
1184
1185         * platform/text/StringImpl.h: Moved the TextCaseSensitivity enum here from
1186         Page.h, because we should eventually use it in all the places where we have
1187         an argument to control case sensitivity, starting with the functions in this
1188         class.
1189
1190         * platform/text/mac/ShapeArabic.c:
1191         (shapeUnicode): Removed the unused options and pErrorCode arguments. Even though
1192         this is code borrowed from ICU, this seems like a simple safe change to make.
1193         (shapeArabic): Don't pass options or pErrorCode in to shapeUnicode.
1194
1195         * rendering/RenderPath.cpp:
1196         (WebCore::RenderPath::RenderPath): Removed the unused style argument.
1197         Also removed the type check. The argument already has the correct type,
1198         so it's not helpful to upcast it and then check its type again, unless
1199         we have some reason to believe the type is not reliable. And we don't.
1200
1201         * rendering/RenderPath.h: Removed the RenderStyle* argument to the
1202         constructor. Also removed the explicit declaration of the destructor.
1203         It's not helpful or needed.
1204
1205         * rendering/RenderSVGInlineText.cpp:
1206         (WebCore::RenderSVGInlineText::localCaretRect): Updated the comment here to
1207         make it clear that just returning an empty rect is not a good implementation.
1208         Removed the argument names to get rid of the warning.
1209
1210         * rendering/RenderTreeAsText.cpp:
1211         (WebCore::printBorderStyle): Removed the unused RenderObject argument.
1212         (WebCore::operator<<): Updated for the change to printBorderStyle function.
1213
1214         * storage/DatabaseThread.cpp:
1215         (WebCore::DatabaseThread::DatabaseThread): Removed the unused document argument.
1216         * storage/DatabaseThread.h: Ditto.
1217
1218         * storage/LocalStorage.cpp:
1219         (WebCore::LocalStorage::storageArea): Removed the unused Frame* argument.
1220         * storage/LocalStorage.h: Ditto.
1221
1222         * svg/SVGElement.cpp:
1223         (WebCore::SVGElement::sendSVGLoadEventIfPossible): Don't pass an exception
1224         code location to dispatchGenericEvent.
1225         * svg/SVGElementInstance.cpp:
1226         (WebCore::SVGElementInstance::dispatchEvent): Ditto.
1227
1228         * svg/SVGStyledTransformableElement.cpp: Removed include of unused RegularExpression.h.
1229         (WebCore::SVGStyledTransformableElement::createRenderer): Don't pass style in to
1230         the RenderPath constructor.
1231
1232         * svg/SVGTransformable.cpp: Removed include of unused RegularExpression.h.
1233
1234         * xml/XSLTProcessor.cpp:
1235         (WebCore::createFragmentFromSource): Removed unused sourceNode argument.
1236         (WebCore::XSLTProcessor::transformToFragment): Don't pass sourceNode to createFragmentFromSource.
1237
1238 2009-01-11  Alexey Proskuryakov  <ap@webkit.org>
1239
1240         Reviewed by Darin Adler.
1241
1242         https://bugs.webkit.org/show_bug.cgi?id=23165
1243         Disable application cache dynamic entries support.
1244
1245         * bindings/js/JSDOMApplicationCacheCustom.cpp:
1246         * loader/appcache/DOMApplicationCache.idl:
1247
1248 2009-01-11  Adam Treat  <adam.treat@torchmobile.com>
1249
1250         Reviewed by Darin Adler.
1251
1252         Correct coordinate transformation for deeply nested frames on resizing.  This
1253         fixes https://bugs.webkit.org/show_bug.cgi?id=20766.
1254
1255         Test: fast/frames/frame-deep-nested-resize.html
1256
1257         * rendering/RenderFrameSet.cpp:
1258         (WebCore::RenderFrameSet::userResize):
1259
1260 2009-01-11  Mark Rowe  <mrowe@apple.com>
1261
1262         Tiger build fix.  The connection parameter is still used on Tiger in this method.
1263
1264         * platform/network/mac/ResourceHandleMac.mm:
1265         (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):
1266
1267 2009-01-11  Darin Adler  <darin@apple.com>
1268
1269         Reviewed by Dan Bernstein.
1270
1271         Bug 23102: turn on unused parameter warnings in WebCore
1272         https://bugs.webkit.org/show_bug.cgi?id=23102
1273
1274         Third step: Deal with cases of arguments used only in assertions.
1275
1276         * dom/MessagePort.cpp:
1277         (WebCore::MessagePortCloseEventTask::performTask): Use ASSERT_UNUSED.
1278         * dom/Worker.cpp:
1279         (WebCore::Worker::notifyFinished): Ditto.
1280         * dom/XMLTokenizer.cpp:
1281         (WebCore::XMLTokenizer::notifyFinished): Ditto.
1282         * loader/appcache/ApplicationCacheGroup.cpp:
1283         (WebCore::ApplicationCacheGroup::failedLoadingMainResource): Ditto.
1284         * loader/appcache/ApplicationCacheStorage.cpp:
1285         (WebCore::ApplicationCacheStorage::verifySchemaVersion): Ditto.
1286         * loader/icon/IconLoader.cpp:
1287         (WebCore::IconLoader::didReceiveData): Since loader and size are only
1288         used when logging, use UNUSED_PARAM when logging is disabled.
1289         * platform/mac/WidgetMac.mm:
1290         (WebCore::Widget::beforeMouseDown): Use ASSERT_UNUSED.
1291         * platform/network/mac/ResourceHandleMac.mm:
1292         (WebCore::ResourceHandle::didCancelAuthenticationChallenge): Use the
1293         argument since it's probably a tiny bit more efficient and gets rid
1294         of the unused argument warning.
1295         * rendering/RenderListMarker.cpp:
1296         (WebCore::RenderListMarker::createInlineBox): Use ASSERT_UNUSED.
1297         * rendering/RenderObject.cpp:
1298         (WebCore::RenderObject::createInlineBox): Ditto.
1299         * rendering/RenderSVGInline.cpp:
1300         (WebCore::RenderSVGInline::createInlineBox): Use UNUSED_PARAM.
1301         I couldn't use ASSERT_UNUSED because it's a single assertion, but it's
1302         the only use for two different arguments.
1303         * rendering/RenderText.cpp:
1304         (WebCore::RenderText::createInlineBox): Use ASSERT_UNUSED.
1305         * rendering/RenderThemeMac.mm:
1306         (-[WebCoreRenderThemeNotificationObserver systemColorsDidChange:]): Ditto.
1307
1308 2009-01-11  Simon Fraser  <simon.fraser@apple.com>
1309
1310         Reviewed by Oliver Hunt
1311
1312         https://bugs.webkit.org/show_bug.cgi?id=23242
1313         
1314         Fix CanvasRenderingContext2D::transform to do a pre-multiply,
1315         rather than a post-multiply into m_transform. This bug did not affect
1316         drawing, but did cause m_transform to be incorrect, which impacted
1317         willDraw(), and isPointInPath.
1318         
1319         Test: fast/canvas/canvas-incremental-repaint-2.html
1320
1321         * html/CanvasRenderingContext2D.cpp:
1322         (WebCore::CanvasRenderingContext2D::transform):
1323
1324 2009-01-11  Darin Adler  <darin@apple.com>
1325
1326         Reviewed by Dan Bernstein.
1327
1328         Bug 23102: turn on unused parameter warnings in WebCore
1329         https://bugs.webkit.org/show_bug.cgi?id=23102
1330
1331         Second step: Fix simple Objective-C cases where we need to use UNUSED_PARAM.
1332         That's because you can't omit an argument name in Objective-C methods.
1333
1334         * bindings/objc/DOMObject.mm:
1335         (-[DOMObject copyWithZone:]): Use UNUSED_PARAM. Also rename argument to include
1336         the word "unused" so we don't just start using it without removing the macro.
1337         * bindings/objc/WebScriptObject.mm:
1338         (+[WebUndefined allocWithZone:]): Ditto.
1339         (-[WebUndefined initWithCoder:]): Ditto.
1340         (-[WebUndefined encodeWithCoder:]): Ditto.
1341         (-[WebUndefined copyWithZone:]): Ditto.
1342         * page/mac/WebDashboardRegion.m:
1343         (-[WebDashboardRegion copyWithZone:]): Ditto.
1344         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1345         (WebCore::mainThreadSetNeedsDisplay): Omit argument name.
1346         (-[WebCoreMovieObserver loadStateChanged:]): Use UNUSED_PARAM as above.
1347         (-[WebCoreMovieObserver rateChanged:]): Ditto.
1348         (-[WebCoreMovieObserver sizeChanged:]): Ditto.
1349         (-[WebCoreMovieObserver timeChanged:]): Ditto.
1350         (-[WebCoreMovieObserver didEnd:]): Ditto.
1351         (-[WebCoreMovieObserver newImageAvailable:]): Ditto.
1352         * platform/mac/ScrollbarThemeMac.mm:
1353         (+[ScrollbarPrefsObserver appearancePrefsChanged:]): Ditto.
1354         (+[ScrollbarPrefsObserver behaviorPrefsChanged:]): Ditto.
1355         * platform/mac/SharedTimerMac.mm:
1356         (-[WebCorePowerNotifier didWake:]): Ditto.
1357         * platform/mac/WebCoreKeyGenerator.m:
1358         (-[WebCoreKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]): Ditto.
1359         * platform/network/mac/ResourceHandleMac.mm:
1360         (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]): Ditto.
1361         (-[WebCoreResourceHandleAsDelegate connectionShouldUseCredentialStorage:]): Ditto.
1362         (-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]): Ditto.
1363         (-[WebCoreResourceHandleAsDelegate connection:didCancelAuthenticationChallenge:]): Ditto.
1364         (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]): Ditto.
1365         (-[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:]): Ditto.
1366         (-[WebCoreResourceHandleAsDelegate connection:willStopBufferingData:]): Ditto.
1367         (-[WebCoreResourceHandleAsDelegate connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:]): Ditto.
1368         (-[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]): Ditto.
1369         (-[WebCoreResourceHandleAsDelegate connection:didFailWithError:]): Ditto.
1370         (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]): Ditto.
1371         (-[WebCoreSynchronousLoader connection:willSendRequest:redirectResponse:]): Ditto.
1372         (-[WebCoreSynchronousLoader connection:didReceiveAuthenticationChallenge:]): Ditto.
1373         (-[WebCoreSynchronousLoader connection:didReceiveResponse:]): Ditto.
1374         (-[WebCoreSynchronousLoader connection:didReceiveData:]): Ditto.
1375         (-[WebCoreSynchronousLoader connectionDidFinishLoading:]): Ditto.
1376         (-[WebCoreSynchronousLoader connection:didFailWithError:]): Ditto.
1377
1378 2009-01-11  Dirk Schulze  <krit@webkit.org>
1379
1380         Reviewed by Darin Adler.
1381
1382         Move platform dependent strokeContains back to RenderPath, Path and delete
1383         unneeded Code in svg.
1384
1385         RenderPath clean-up for strokeContains
1386         [https://bugs.webkit.org/show_bug.cgi?id=22957]
1387
1388         * GNUmakefile.am:
1389         * WebCore.pro:
1390         * WebCore.vcproj/WebCore.vcproj:
1391         * WebCore.xcodeproj/project.pbxproj:
1392         * platform/graphics/Path.h:
1393         * platform/graphics/cairo/PathCairo.cpp:
1394         (WebCore::Path::strokeContains):
1395         * platform/graphics/cg/PathCG.cpp:
1396         (WebCore::Path::strokeContains):
1397         * platform/graphics/qt/PathQt.cpp:
1398         (WebCore::Path::strokeContains):
1399         * rendering/RenderPath.cpp:
1400         (WebCore::RenderPath::strokeContains):
1401         * svg/graphics/cairo/RenderPathCairo.cpp: Removed.
1402         * svg/graphics/cg/CgSupport.cpp: Removed.
1403         * svg/graphics/cg/CgSupport.h: Removed.
1404         * svg/graphics/cg/RenderPathCg.cpp: Removed.
1405         * svg/graphics/cg/SVGPaintServerPatternCg.cpp:
1406         * svg/graphics/cg/SVGResourceMaskerCg.mm:
1407         * svg/graphics/qt/RenderPathQt.cpp: Removed.
1408
1409 2009-01-11  Holger Hans Peter Freyther  <zecke@selfish.org>
1410
1411         Reviewed by Anders Carlsson.
1412
1413         [GTK] make distcheck complains that distclean is not deleting JSWorkerContextBase.lut.h
1414
1415         make distcheck pass by adding JSWorkerContextBase.lut.h to the
1416         CLEANFILES that will be cleaned on a make distclean.
1417
1418         * GNUmakefile.am:
1419
1420 2009-01-11  Zalan Bujtas  <zbujtas@gmail.com>
1421
1422         Reviewed by Alexey Proskuryakov.
1423
1424         https://bugs.webkit.org/show_bug.cgi?id=23235
1425         Build fix for non-VIDEO builds.
1426
1427         * rendering/RenderTheme.cpp:
1428         * rendering/RenderTheme.h:
1429
1430 2009-01-11  Gabriella Toth  <gtoth@inf.u-szeged.hu>
1431
1432         Reviewed by Darin Adler.
1433
1434         https://bugs.webkit.org/show_bug.cgi?id=19287
1435         return value of malloc() is not checked in npruntime.cpp
1436
1437         Checking whether malloc can allocate memory or not. If it can't, CRASH macro is invoked
1438         (like in fastMalloc).
1439    
1440         * bridge/npruntime.cpp:
1441         (_NPN_GetStringIdentifier):
1442         (_NPN_GetIntIdentifier):
1443         (NPN_InitializeVariantWithStringCopy):
1444         (_NPN_CreateObject):
1445
1446 2009-01-11  Glenn Wilson  <gwilson@google.com>
1447
1448         Reviewed by Darin Adler.
1449
1450         Changes radio buttons so they can be 'checked' even if they
1451         don't have the name attribute set.
1452
1453         See https://bugs.webkit.org/show_bug.cgi?id=21534
1454
1455         Test: fast/html/select-unnamed-radio.html
1456
1457         * html/HTMLInputElement.cpp:
1458         (WebCore::HTMLInputElement::preDispatchEventHandler):
1459
1460 2009-01-11  Bernhard Rosenkraenzer <bero@arklinux.ch>
1461
1462         Reviewed by Darin Adler.
1463
1464         https://bugs.webkit.org/show_bug.cgi?id=22205
1465         Fix compatibility with bison 2.4, partially based on older patch by
1466         Priit Laes <amd@store20.com>
1467
1468         * WebCore/css/CSSGrammar.y: Made compatible with bison 2.4
1469
1470 2009-01-11  Jeremy Moskovich  <jeremy@chromium.org>
1471
1472         Reviewed by Darin Adler.
1473
1474         https://bugs.webkit.org/show_bug.cgi?id=16001
1475         Incorrect assumption that selection is always contiguous LTR.
1476
1477         Test: editing/selection/extend-selection-bidi.html
1478
1479         * rendering/RootInlineBox.cpp: (WebCore::RootInlineBox::fillLineSelectionGap):
1480         Make this function  not assume a contiguous visual LTR selection range. 
1481
1482 2009-01-11  Dmitry Titov  <dimich@chromium.org>
1483
1484         Reviewed by Darin Adler.
1485
1486         https://bugs.webkit.org/show_bug.cgi?id=23207
1487         Moved currentTime() to from WebCore to WTF.
1488
1489         Most of these files only have a different header file included.
1490         Various build files reflect removal of SystemTimeGtk, Wx, Qt and Linux
1491         which were removed since they only implemented currentTime().
1492
1493         * ForwardingHeaders/wtf/CurrentTime.h: Added.
1494         * GNUmakefile.am:
1495         * WebCore.base.exp:
1496         * WebCore.pro:
1497         * dom/ContainerNode.cpp:
1498         * dom/Document.cpp:
1499         * dom/Event.cpp:
1500         * history/CachedPage.cpp:
1501         * history/PageCache.cpp:
1502         * html/HTMLMediaElement.cpp:
1503         (WebCore::HTMLMediaElement::load):
1504         (WebCore::HTMLMediaElement::progressEventTimerFired):
1505         * html/HTMLTokenizer.cpp:
1506         * html/PreloadScanner.cpp:
1507         * inspector/InspectorController.cpp:
1508         * loader/Cache.cpp:
1509         (WebCore::Cache::pruneLiveResources):
1510         * loader/CachedImage.cpp:
1511         * loader/CachedResource.cpp:
1512         * loader/FrameLoader.cpp:
1513         * loader/ProgressTracker.cpp:
1514         * loader/icon/IconDatabase.cpp:
1515         * loader/icon/IconRecord.cpp:
1516         * page/DragController.cpp:
1517         * page/Frame.cpp:
1518         * page/FrameView.cpp:
1519         * page/animation/AnimationBase.cpp:
1520         * page/animation/AnimationController.cpp:
1521         * page/animation/KeyframeAnimation.cpp:
1522         * platform/SystemTime.h:
1523         * platform/Timer.cpp:
1524         * platform/graphics/BitmapImage.cpp:
1525         * platform/gtk/MouseEventGtk.cpp:
1526         * platform/gtk/SharedTimerGtk.cpp:
1527         * platform/gtk/SystemTimeGtk.cpp: Removed.
1528         * platform/gtk/SystemTimeLinux.cpp: Removed.
1529         * platform/mac/SystemTimeMac.cpp:
1530         * platform/qt/PlatformMouseEventQt.cpp:
1531         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1532         * platform/qt/SharedTimerQt.cpp:
1533         * platform/qt/SharedTimerQt.h:
1534         * platform/qt/SystemTimeQt.cpp: Removed.
1535         * platform/win/SharedTimerWin.cpp:
1536         * platform/win/SystemTimeWin.cpp:
1537         * platform/wx/MouseEventWx.cpp:
1538         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1539         * platform/wx/SharedTimerWx.cpp:
1540         * platform/wx/SystemTimeWx.cpp: Removed.
1541         * rendering/RenderImage.cpp:
1542         * rendering/RenderMedia.cpp:
1543         * svg/animation/SMILTimeContainer.cpp:
1544         * webcore-wx.bkl:
1545         * xml/XMLHttpRequest.cpp:
1546
1547 2009-01-11  Dmitry Titov  <dimich@chromium.org>
1548
1549         Reviewed by Darin Adler.
1550
1551         Make ScheduledAction (Timeout callback) able to execute the callback under WorkerContext.
1552         Part of 'Timers in Workers' work.
1553         https://bugs.webkit.org/show_bug.cgi?id=23223
1554
1555         * bindings/js/ScheduledAction.cpp:
1556         (WebCore::ScheduledAction::execute): new method that takes WorkerContext.
1557         (WebCore::ScheduledAction::executeFunctionInContext): Executes a JSFunction in proper context with 'this' object.
1558         * bindings/js/ScheduledAction.h:
1559
1560 2009-01-10  Eric Carlson  <eric.carlson@apple.com>
1561
1562         Reviewed by Eric Seidel.
1563
1564         https://bugs.webkit.org/show_bug.cgi?id=23210
1565         Make it easier for ports to define custom UI for media controls
1566
1567         * css/CSSStyleSelector.cpp:
1568         (WebCore::CSSStyleSelector::styleForElement): call theme()->styleSheetForMediaControls to
1569         get the media controller style sheet 
1570
1571         * rendering/MediaControlElements.cpp:
1572         (WebCore::MediaControlInputElement::hitTest): Added
1573         * rendering/MediaControlElements.h: Updated
1574
1575         * rendering/RenderMedia.cpp:
1576         (WebCore::RenderMedia::forwardEvent): Call element hitTest() method instead of local function
1577         so control elements don't necessarily have to be rectangular
1578
1579         * rendering/RenderTheme.cpp:
1580         (WebCore::RenderTheme::styleSheetForMediaControls):  Added
1581         (WebCore::RenderTheme::hitTestMediaControlPart):  Added
1582         * rendering/RenderTheme.h: Updated
1583
1584 2009-01-10  Simon Fraser  <simon.fraser@apple.com>
1585
1586         Reviewed by Dan Bernstein
1587
1588         https://bugs.webkit.org/show_bug.cgi?id=23222
1589         
1590         We need to disable LayoutState when an object has transforms,
1591         because LayoutState is not transform-aware and therefore
1592         repaint rects can be computed incorrectly.
1593         
1594         Test: fast/repaint/transform-disable-layoutstate.html
1595
1596         * rendering/RenderBlock.cpp:
1597         (WebCore::RenderBlock::layoutBlock):
1598         (WebCore::RenderBlock::layoutOnlyPositionedObjects):
1599         * rendering/RenderFlexibleBox.cpp:
1600         (WebCore::RenderFlexibleBox::layoutBlock):
1601
1602 2009-01-09  Holger Hans Peter Freyther  <zecke@selfish.org>
1603
1604         Reviewed by Simon Hausmann.
1605
1606         [QT] Make SharedTimer use QBasicTimer
1607
1608         Kill the SharedTimerQt.h and the usage of signal and slots
1609         by using QBasicTimer.
1610
1611         * WebCore.pro:
1612         * platform/qt/SharedTimerQt.cpp:
1613         (WebCore::SharedTimerQt::SharedTimerQt):
1614         (WebCore::SharedTimerQt::inst):
1615         (WebCore::SharedTimerQt::start):
1616         (WebCore::SharedTimerQt::stop):
1617         (WebCore::SharedTimerQt::timerEvent):
1618         (WebCore::setSharedTimerFiredFunction):
1619         (WebCore::setSharedTimerFireTime):
1620         (WebCore::stopSharedTimer):
1621         * platform/qt/SharedTimerQt.h: Removed.
1622
1623 2009-01-09  Adam Bergkvist <adam.bergkvist@ericsson.com>
1624
1625         Reviewed by Holger Freyther.
1626
1627         [CURL] POST without body becomes GET
1628         https://bugs.webkit.org/show_bug.cgi?id=23182
1629
1630         Make sure that method is always set to POST even when the body is
1631         empty. Cleaned up httpBody null check.
1632
1633         * platform/network/curl/ResourceHandleManager.cpp:
1634         (WebCore::ResourceHandleManager::setupPOST):
1635
1636 2009-01-09  Adam Treat  <adam.treat@torchmobile.com>
1637
1638         Build fix.
1639
1640         * plugins/PluginView.cpp:
1641
1642 2009-01-09  Adele Peterson  <adele@apple.com>
1643
1644         Reviewed by Darin Adler.
1645
1646         Fix infinite recursion in clientPaddingLeft and clientPaddingRight.  This changes the code back to
1647         how it was before RenderTextControlSingleLine was split out from RenderTextControl.
1648         
1649         No test added since this code is only exercised when trying to place a search field's recent searches popup menu.
1650
1651         * rendering/RenderTextControlSingleLine.cpp:
1652         (WebCore::RenderTextControlSingleLine::clientPaddingLeft):
1653         (WebCore::RenderTextControlSingleLine::clientPaddingRight):
1654
1655 2009-01-09  Darin Adler  <darin@apple.com>
1656
1657         Reviewed by Jon Honeycutt.
1658
1659         Bug 22913: REGRESSION: Space bar doesn't scroll on windows
1660         https://bugs.webkit.org/show_bug.cgi?id=22913
1661         rdar://problem/6479834
1662
1663         * page/EventHandler.cpp:
1664         (WebCore::EventHandler::defaultKeyboardEventHandler): Added code to call
1665         defaultSpaceEventHandler.
1666         (WebCore::EventHandler::defaultSpaceEventHandler): Added. Scrolls down or up based
1667         on the shift key.
1668         * page/EventHandler.h: Added defaultSpaceEventHandler.
1669
1670         * platform/mac/ScrollViewMac.mm:
1671         (WebCore::ScrollView::platformScroll): Return false, because this function does
1672         not scroll. In an earlier version of this patch, I used this to prevent the
1673         patch from affecting the Mac, but I decided to use #if instead.
1674
1675 2009-01-09  Gavin Barraclough  <barraclough@apple.com>
1676
1677         Reviewed by Oliver Hunt.
1678
1679         Delete references to JSValue, removing this class.
1680
1681         * bindings/js/JSWorkerContextCustom.cpp:
1682         (WebCore::JSWorkerContext::self):
1683         * bindings/js/ScriptCallStack.h:
1684
1685 2009-01-09  Dimitri Glazkov  <dglazkov@chromium.org>
1686
1687         Reviewed by Eric Seidel.
1688
1689         Add svg/graphics/skia files.
1690         https://bugs.webkit.org/show_bug.cgi?id=23147
1691
1692         * svg/graphics/skia/RenderPathSkia.cpp: Added.
1693         (WebCore::RenderPath::strokeContains):
1694         * svg/graphics/skia/SVGPaintServerPatternSkia.cpp: Added.
1695         (WebCore::SVGPaintServerPattern::setup):
1696         * svg/graphics/skia/SVGPaintServerSkia.cpp: Added.
1697         (WebCore::SVGPaintServer::draw):
1698         (WebCore::SVGPaintServer::teardown):
1699         (WebCore::SVGPaintServer::renderPath):
1700         * svg/graphics/skia/SVGResourceFilterSkia.cpp: Added.
1701         (WebCore::SVGResourceFilter::createPlatformData):
1702         (WebCore::SVGResourceFilter::prepareFilter):
1703         (WebCore::SVGResourceFilter::applyFilter):
1704         * svg/graphics/skia/SVGResourceMaskerSkia.cpp: Added.
1705         (WebCore::SVGResourceMasker::applyMask):
1706
1707 2009-01-09  Dimitri Glazkov  <dglazkov@chromium.org>
1708
1709         Reviewed by Eric Seidel.
1710
1711         Add SkiaFontWin to platform/graphics/chromium
1712         https://bugs.webkit.org/show_bug.cgi?id=23215
1713
1714         * platform/graphics/skia/SkiaFontWin.cpp: Added.
1715         (WebCore::CachedOutlineKey::CachedOutlineKey):
1716         (WebCore::operator==):
1717         (WebCore::CachedOutlineKeyHash::hash):
1718         (WebCore::CachedOutlineKeyHash::equal):
1719         (WebCore::FIXEDToSkScalar):
1720         (WebCore::deleteOutline):
1721         (WebCore::addPolyCurveToPath):
1722         (WebCore::getPathForGlyph):
1723         (WebCore::SkiaWinOutlineCache::lookupOrCreatePathForGlyph):
1724         (WebCore::SkiaWinOutlineCache::removePathsForFont):
1725         * platform/graphics/skia/SkiaFontWin.h: Added.
1726
1727 2009-01-09  Anders Carlsson  <andersca@apple.com>
1728
1729         Fix build.
1730         
1731         * WebCore.LP64.exp:
1732
1733 2009-01-09  Dimitri Glazkov  <dglazkov@chromium.org>
1734
1735         Reviewed by Eric Seidel.
1736
1737         Add PlatformContextSkia and PlatformGraphics.h to platform/graphics/skia
1738         https://bugs.webkit.org/show_bug.cgi?id=23215
1739
1740         * platform/graphics/skia/PlatformContextSkia.cpp: Added.
1741         (PlatformContextSkia::State::State):
1742         (PlatformContextSkia::State::~State):
1743         (PlatformContextSkia::State::applyAlpha):
1744         (PlatformContextSkia::PlatformContextSkia):
1745         (PlatformContextSkia::~PlatformContextSkia):
1746         (PlatformContextSkia::setCanvas):
1747         (PlatformContextSkia::save):
1748         (PlatformContextSkia::restore):
1749         (PlatformContextSkia::drawRect):
1750         (PlatformContextSkia::setupPaintCommon):
1751         (PlatformContextSkia::setupPaintForFilling):
1752         (PlatformContextSkia::setupPaintForStroking):
1753         (PlatformContextSkia::setDrawLooper):
1754         (PlatformContextSkia::setMiterLimit):
1755         (PlatformContextSkia::setAlpha):
1756         (PlatformContextSkia::setLineCap):
1757         (PlatformContextSkia::setLineJoin):
1758         (PlatformContextSkia::setPorterDuffMode):
1759         (PlatformContextSkia::setFillColor):
1760         (PlatformContextSkia::getDrawLooper):
1761         (PlatformContextSkia::getStrokeStyle):
1762         (PlatformContextSkia::setStrokeStyle):
1763         (PlatformContextSkia::setStrokeColor):
1764         (PlatformContextSkia::getStrokeThickness):
1765         (PlatformContextSkia::setStrokeThickness):
1766         (PlatformContextSkia::getTextDrawingMode):
1767         (PlatformContextSkia::setTextDrawingMode):
1768         (PlatformContextSkia::setUseAntialiasing):
1769         (PlatformContextSkia::fillColor):
1770         (PlatformContextSkia::beginPath):
1771         (PlatformContextSkia::addPath):
1772         (PlatformContextSkia::setFillRule):
1773         (PlatformContextSkia::setGradient):
1774         (PlatformContextSkia::setPattern):
1775         (PlatformContextSkia::setDashPathEffect):
1776         (PlatformContextSkia::paintSkPaint):
1777         (PlatformContextSkia::bitmap):
1778         (PlatformContextSkia::isPrinting):
1779         * platform/graphics/skia/PlatformContextSkia.h: Added.
1780         (PlatformContextSkia::currentPath):
1781         (PlatformContextSkia::canvas):
1782         (PlatformContextSkia::gdk_skia):
1783         * platform/graphics/skia/PlatformGraphics.h: Added.
1784
1785 2009-01-09  Dimitri Glazkov  <dglazkov@chromium.org>
1786
1787         Reviewed by Eric Seidel.
1788
1789         Add TransformationMatrixSkia to platform/graphics/skia
1790         https://bugs.webkit.org/show_bug.cgi?id=23215
1791
1792         * platform/graphics/skia/TransformationMatrixSkia.cpp: Added.
1793         (WebCore::TransformationMatrix::TransformationMatrix):
1794         (WebCore::TransformationMatrix::setMatrix):
1795         (WebCore::TransformationMatrix::map):
1796         (WebCore::TransformationMatrix::mapRect):
1797         (WebCore::TransformationMatrix::isIdentity):
1798         (WebCore::TransformationMatrix::reset):
1799         (WebCore::TransformationMatrix::scale):
1800         (WebCore::TransformationMatrix::rotate):
1801         (WebCore::TransformationMatrix::translate):
1802         (WebCore::TransformationMatrix::shear):
1803         (WebCore::TransformationMatrix::det):
1804         (WebCore::TransformationMatrix::inverse):
1805         (WebCore::TransformationMatrix::operator SkMatrix):
1806         (WebCore::TransformationMatrix::operator==):
1807         (WebCore::TransformationMatrix::operator*=):
1808         (WebCore::TransformationMatrix::operator*):
1809         (WebCore::TransformationMatrix::a):
1810         (WebCore::TransformationMatrix::setA):
1811         (WebCore::TransformationMatrix::b):
1812         (WebCore::TransformationMatrix::setB):
1813         (WebCore::TransformationMatrix::c):
1814         (WebCore::TransformationMatrix::setC):
1815         (WebCore::TransformationMatrix::d):
1816         (WebCore::TransformationMatrix::setD):
1817         (WebCore::TransformationMatrix::e):
1818         (WebCore::TransformationMatrix::setE):
1819         (WebCore::TransformationMatrix::f):
1820         (WebCore::TransformationMatrix::setF):
1821
1822 2009-01-09  Alexey Proskuryakov  <ap@webkit.org>
1823
1824         Reviewed by Darin Adler.
1825
1826         <rdar://problem/6477502> Repro crash reloading page using HTML5 AppCache on Windows
1827
1828         Test: http/tests/appcache/reload.html
1829
1830         On Windows, reloading resulted in the following sequence of events:
1831         1) A new main resource loader was created and associated with the cache. Its document loader
1832         was not associated with the cache yet.
1833         2) The old document loader was destroyed, and since it was the last one, ApplicationCacheGroup
1834         teardown started, with newestCache being zeroed out.
1835         3) The new document loader was associated with the cache group, and cache update started.
1836         4) Since newestCache was null, this caused many problems.
1837
1838         * loader/appcache/ApplicationCacheGroup.cpp:
1839         (WebCore::ApplicationCacheGroup::documentLoaderDestroyed): Improve comments and assertions,
1840         no functional changes.
1841         (WebCore::ApplicationCacheGroup::associateDocumentLoaderWithCache): Revive the cache group
1842         if its newest cache pointer is already saved for teardown. Note that the cache pointer
1843         validity is ensured by MainResourceLoader that holds a reference to it.
1844
1845 2009-01-09  Darin Fisher  <darin@chromium.org>
1846
1847         Reviewed by Eric Seidel.
1848
1849         https://bugs.webkit.org/show_bug.cgi?id=23214
1850         Upstream platform/network/chromium/
1851
1852         * platform/network/chromium/AuthenticationChallenge.h: Added.
1853         (WebCore::AuthenticationChallenge::AuthenticationChallenge):
1854         (WebCore::AuthenticationChallenge::sourceHandle):
1855         * platform/network/chromium/AuthenticationChallengeChromium.cpp: Added.
1856         (WebCore::AuthenticationChallenge::platformCompare):
1857         * platform/network/chromium/CookieJarChromium.cpp: Added.
1858         (WebCore::setCookies):
1859         (WebCore::cookies):
1860         (WebCore::cookiesEnabled):
1861         * platform/network/chromium/DNSChromium.cpp: Added.
1862         (WebCore::prefetchDNS):
1863         * platform/network/chromium/NetworkStateNotifierChromium.cpp: Added.
1864         (WebCore::NetworkStateNotifier::updateState):
1865         (WebCore::NetworkStateNotifier::NetworkStateNotifier):
1866         * platform/network/chromium/NetworkStateNotifierPrivate.h: Added.
1867         * platform/network/chromium/ResourceError.h: Added.
1868         (WebCore::ResourceError::ResourceError):
1869         * platform/network/chromium/ResourceRequest.h: Added.
1870         (WebCore::ResourceRequest::):
1871         (WebCore::ResourceRequest::ResourceRequest):
1872         (WebCore::ResourceRequest::frame):
1873         (WebCore::ResourceRequest::setFrame):
1874         (WebCore::ResourceRequest::setTargetType):
1875         (WebCore::ResourceRequest::targetType):
1876         (WebCore::ResourceRequest::originPid):
1877         (WebCore::ResourceRequest::setOriginPid):
1878         (WebCore::ResourceRequest::securityInfo):
1879         (WebCore::ResourceRequest::setSecurityInfo):
1880         (WebCore::ResourceRequest::doUpdatePlatformRequest):
1881         (WebCore::ResourceRequest::doUpdateResourceRequest):
1882         * platform/network/chromium/ResourceResponse.h:
1883         (WebCore::ResourceResponse::ResourceResponse):
1884         (WebCore::ResourceResponse::getSecurityInfo):
1885         (WebCore::ResourceResponse::setSecurityInfo):
1886         (WebCore::ResourceResponse::isContentFiltered):
1887         (WebCore::ResourceResponse::setIsContentFiltered):
1888         (WebCore::ResourceResponse::doUpdateResourceResponse):
1889
1890 2009-01-09  Peter Kasting  <pkasting@google.com>
1891
1892         Reviewed by David Hyatt.
1893
1894         https://bugs.webkit.org/show_bug.cgi?id=22995
1895         Fix flaky image animation by resetting the metadata for a frame when
1896         we get new data for that frame.  This fixes animations that halted
1897         when the next frame of the animation wasn't complete by the time the
1898         current frame's duration expired.
1899
1900         * platform/graphics/BitmapImage.cpp:
1901         (WebCore::BitmapImage::destroyDecodedData):
1902         (WebCore::BitmapImage::dataChanged):
1903         * platform/graphics/BitmapImage.h:
1904         (WebCore::FrameData::~FrameData):
1905         * platform/graphics/cairo/ImageCairo.cpp:
1906         (WebCore::FrameData::clear):
1907         * platform/graphics/cg/ImageCG.cpp:
1908         (WebCore::FrameData::clear):
1909         * platform/graphics/qt/ImageQt.cpp:
1910         (WebCore::FrameData::clear):
1911         * platform/graphics/wx/ImageWx.cpp:
1912         (WebCore::FrameData::clear):
1913
1914 2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
1915
1916         Rubber-stamped by Tor Arne Vestbø.
1917
1918         Swap the .h and the .cpp output in the Qt build for the
1919         UserAgentStyleSheetData files, to put the definition in the .cpp file
1920         and the declaration in the header file.
1921
1922         * WebCore.pro:
1923
1924 2009-01-09  David Levin  <levin@chromium.org>
1925
1926         Reviewed by Oliver Hunt.
1927
1928         https://bugs.webkit.org/show_bug.cgi?id=23175
1929
1930         Added forwarding header.
1931
1932         * ForwardingHeaders/wtf/PtrAndFlags.h: Added.
1933
1934 2009-01-09  Tor Arne Vestbø  <tavestbo@trolltech.com>
1935
1936         Reviewed by Simon Hausmann.
1937
1938         Prevent qmake from generating duplicate rules for embedded stylesheets
1939         
1940         The STYLESHEETS_EMBED variable used to contain only one file name, but
1941         now that it is a list of files we need to change it to be a dependency
1942         for the stylesheet generator instead of the input.
1943
1944         * WebCore.pro:
1945
1946 2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
1947
1948         Reviewed by Tor Arne Vestbø.
1949
1950         Fix qmake warning about missing test function, a contains() call was
1951         missing.
1952
1953         * WebCore.pro:
1954
1955 2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
1956
1957         Rubber-stamped by Tor Arne Vestbø.
1958
1959         Add the Qt API headers to HEADERS, too, for improved completion in IDEs.
1960
1961         * WebCore.pro:
1962
1963 2009-01-09  David Levin  <levin@chromium.org>
1964
1965         Reviewed by Alexey Proskuryakov.
1966
1967         https://bugs.webkit.org/show_bug.cgi?id=23199
1968
1969         Fix deref's of string happening on two different threads.
1970
1971         No observable change in behavior, so no test.  However, there are asserts
1972         being added for https://bugs.webkit.org/show_bug.cgi?id=23175 which
1973         will detect this issue while running the normal worker tests.
1974
1975         * dom/WorkerThread.cpp:
1976         (WebCore::WorkerThreadStartupData::create):
1977         (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
1978         (WebCore::WorkerThread::WorkerThread):
1979         (WebCore::WorkerThread::workerThread):
1980         * dom/WorkerThread.h:
1981
1982 2009-01-08  Dan Bernstein  <mitz@apple.com>
1983
1984         Reviewed by Adam Roben.
1985
1986         - use native glyph support in Core Graphics when available
1987
1988         * platform/graphics/win/FontCGWin.cpp:
1989         (WebCore::Font::drawGlyphs): Changed to use drawGDIGlyphs() only if
1990         native glyph support is not available or stroking is required. Changed
1991         to pass the font's useGDI() flag to wkSetCGContextFontRenderingStyle to
1992         request the use of native glyphs.
1993         * platform/graphics/win/FontCustomPlatformData.cpp:
1994         (WebCore::FontCustomPlatformData::fontPlatformData): Added a call to
1995         wkSetFontPlatformInfo to attach the LOGFONT to the CGFont.
1996         * platform/graphics/win/FontPlatformDataCGWin.cpp:
1997         (WebCore::FontPlatformData::platformDataInit): Ditto.
1998
1999 2009-01-08  Peter Kasting  <pkasting@google.com>
2000
2001         Reviewed by Sam Weinig.
2002
2003         https://bugs.webkit.org/show_bug.cgi?id=22929
2004         Fix memory regression when decoding large animated GIFs.
2005
2006         * platform/graphics/cg/ImageSourceCG.cpp:
2007         (WebCore::ImageSource::clear):
2008
2009 2009-01-08  Scott Violet  <sky@chromium.org>
2010
2011         Reviewed by Eric Seidel (and Adam Barth).
2012
2013         Fix Images to return their file extension
2014         http://code.google.com/p/chromium/issues/detail?id=5827
2015
2016         * platform/graphics/skia/ImageSourceSkia.cpp:
2017         (WebCore::ImageSource::filenameExtension):
2018
2019 2009-01-08  Dimitri Glazkov  <dglazkov@chromium.org>
2020
2021         Reviewed by Eric Seidel.
2022
2023         Add PathSkia and PatternSkia implementations to WebCore
2024         https://bugs.webkit.org/show_bug.cgi?id=23200
2025
2026         * platform/graphics/skia/PathSkia.cpp: Added.
2027         (WebCore::Path::Path):
2028         (WebCore::Path::~Path):
2029         (WebCore::Path::operator=):
2030         (WebCore::Path::isEmpty):
2031         (WebCore::Path::contains):
2032         (WebCore::Path::translate):
2033         (WebCore::Path::boundingRect):
2034         (WebCore::Path::moveTo):
2035         (WebCore::Path::addLineTo):
2036         (WebCore::Path::addQuadCurveTo):
2037         (WebCore::Path::addBezierCurveTo):
2038         (WebCore::Path::addArcTo):
2039         (WebCore::Path::closeSubpath):
2040         (WebCore::Path::addArc):
2041         (WebCore::Path::addRect):
2042         (WebCore::Path::addEllipse):
2043         (WebCore::Path::clear):
2044         (WebCore::convertPathPoints):
2045         (WebCore::Path::apply):
2046         (WebCore::Path::transform):
2047         (WebCore::Path::debugString):
2048         (WebCore::boundingBoxForCurrentStroke):
2049         (WebCore::Path::strokeBoundingRect):
2050         * platform/graphics/skia/PatternSkia.cpp: Added.
2051         (WebCore::shaderRule):
2052         (WebCore::Pattern::createPlatformPattern):
2053
2054 2009-01-08  Dimitri Glazkov  <dglazkov@chromium.org>
2055
2056         Reviewed by Eric Seidel.
2057
2058         Add ImageSourceSkia to platform/graphics/skia
2059         https://bugs.webkit.org/show_bug.cgi?id=23200
2060         
2061         ImageSourceSkia is mostly a hack to support our
2062         ICO decoder model.  See ImageSourceSkia.h for more
2063         explanation.  Eventually we'd like to make our ICO
2064         decoder lazy.
2065
2066         * platform/graphics/ImageSource.h: mark m_decoder as protected
2067         * platform/graphics/skia/ImageSourceSkia.cpp: Added.
2068         (WebCore::createDecoder):
2069         (WebCore::ImageSource::ImageSource):
2070         (WebCore::ImageSource::~ImageSource):
2071         (WebCore::ImageSource::clear):
2072         (WebCore::ImageSource::initialized):
2073         (WebCore::ImageSource::setData):
2074         (WebCore::ImageSource::isSizeAvailable):
2075         (WebCore::ImageSource::size):
2076         (WebCore::ImageSource::frameSizeAtIndex):
2077         (WebCore::ImageSource::repetitionCount):
2078         (WebCore::ImageSource::frameCount):
2079         (WebCore::ImageSource::createFrameAtIndex):
2080         (WebCore::ImageSource::frameIsCompleteAtIndex):
2081         (WebCore::ImageSource::frameDurationAtIndex):
2082         (WebCore::ImageSource::frameHasAlphaAtIndex):
2083         (WebCore::ImageSourceSkia::setData):
2084         (WebCore::ImageSource::filenameExtension):
2085         * platform/graphics/skia/ImageSourceSkia.h: Added.
2086
2087 2009-01-08  Dimitri Glazkov  <dglazkov@chromium.org>
2088
2089         Reviewed by Eric Seidel.
2090
2091         Add NativeImageSkia (PlatformImagePtr) to platform/graphics/skia
2092         https://bugs.webkit.org/show_bug.cgi?id=23200
2093
2094         * platform/graphics/skia/NativeImageSkia.cpp: Added.
2095         (NativeImageSkia::NativeImageSkia):
2096         (NativeImageSkia::decodedSize):
2097         (NativeImageSkia::hasResizedBitmap):
2098         (NativeImageSkia::resizedBitmap):
2099         (NativeImageSkia::shouldCacheResampling):
2100         * platform/graphics/skia/NativeImageSkia.h: Added.
2101         (NativeImageSkia::setDataComplete):
2102         (NativeImageSkia::isDataComplete):
2103
2104 2009-01-08  Dimitri Glazkov  <dglazkov@chromium.org>
2105
2106         Reviewed by Eric Seidel.
2107
2108         Add ImageBufferSkia and ImageSkia files.
2109         https://bugs.webkit.org/show_bug.cgi?id=23200
2110         For now we've left BitmapImage and BitmapImageSingleFrameSkia
2111         implementations in the ImageSkia file (like ImageCG has), but
2112         we intend to break them out into their own files.
2113
2114         * platform/graphics/skia/ImageBufferSkia.cpp: Added.
2115         (WebCore::ImageBufferData::ImageBufferData):
2116         (WebCore::ImageBuffer::ImageBuffer):
2117         (WebCore::ImageBuffer::~ImageBuffer):
2118         (WebCore::ImageBuffer::context):
2119         (WebCore::ImageBuffer::image):
2120         (WebCore::ImageBuffer::getImageData):
2121         (WebCore::ImageBuffer::putImageData):
2122         (WebCore::ImageBuffer::toDataURL):
2123         * platform/graphics/skia/ImageSkia.cpp: Added.
2124         (WebCore::):
2125         (WebCore::FrameData::clear):
2126         (WebCore::Image::loadPlatformResource):
2127         (WebCore::Image::drawPattern):
2128         (WebCore::BitmapImage::initPlatformData):
2129         (WebCore::BitmapImage::invalidatePlatformData):
2130         (WebCore::BitmapImage::checkForSolidColor):
2131         (WebCore::BitmapImage::draw):
2132         (WebCore::BitmapImageSingleFrameSkia::draw):
2133         (WebCore::BitmapImageSingleFrameSkia::create):
2134
2135 2009-01-08  James Robinson  <jamesr@google.com>
2136
2137         Reviewed by Mark Rowe.
2138         Landed by Pamela Greene.
2139
2140         WebCore::Event::timeStamp() is a simple accessor and should be const
2141
2142         https://bugs.webkit.org/show_bug.cgi?id=23176
2143
2144         * dom/Event.h:
2145         (WebCore::Event::timeStamp):
2146
2147 2009-01-08  Antti Koivisto  <antti@apple.com>
2148
2149         Reviewed by Oliver Hunt.
2150
2151         Fix <rdar://problem/6467206> 
2152         Resources loaded from the memory cache do not get correctly inserted into the DocLoader resource map (22994)
2153         
2154         Use CachedResourceHandle in document resource map so resources get updated correctly when using
2155         using cache validation conditionals.
2156
2157         * loader/Cache.cpp:
2158         (WebCore::Cache::evict):
2159         * loader/DocLoader.cpp:
2160         (WebCore::DocLoader::~DocLoader):
2161         (WebCore::DocLoader::requestResource):
2162         (WebCore::DocLoader::setAutoLoadImages):
2163         (WebCore::DocLoader::removeCachedResource):
2164         * loader/DocLoader.h:
2165         (WebCore::DocLoader::cachedResource):
2166         (WebCore::DocLoader::allCachedResources):
2167         * loader/DocumentLoader.cpp:
2168         (WebCore::DocumentLoader::getSubresources):
2169         * loader/ImageLoader.cpp:
2170         (WebCore::ImageLoader::updateFromElement):
2171
2172 2009-01-08  Dimitri Glazkov  <dglazkov@chromium.org>
2173
2174         Reviewed by Eric Seidel.
2175
2176         Add a cleaned-up GraphicsContextSkia implementation to WebKit.
2177         https://bugs.webkit.org/show_bug.cgi?id=23191
2178
2179         * platform/graphics/skia/GraphicsContextSkia.cpp: Added.
2180         (WebCore::):
2181         (WebCore::GraphicsContext::GraphicsContext):
2182         (WebCore::GraphicsContext::~GraphicsContext):
2183         (WebCore::GraphicsContext::platformContext):
2184         (WebCore::GraphicsContext::savePlatformState):
2185         (WebCore::GraphicsContext::restorePlatformState):
2186         (WebCore::GraphicsContext::beginTransparencyLayer):
2187         (WebCore::GraphicsContext::endTransparencyLayer):
2188         (WebCore::GraphicsContext::addInnerRoundedRectClip):
2189         (WebCore::GraphicsContext::addPath):
2190         (WebCore::GraphicsContext::beginPath):
2191         (WebCore::GraphicsContext::clearPlatformShadow):
2192         (WebCore::GraphicsContext::clearRect):
2193         (WebCore::GraphicsContext::clip):
2194         (WebCore::GraphicsContext::clipOut):
2195         (WebCore::GraphicsContext::clipOutEllipseInRect):
2196         (WebCore::GraphicsContext::clipPath):
2197         (WebCore::GraphicsContext::clipToImageBuffer):
2198         (WebCore::GraphicsContext::concatCTM):
2199         (WebCore::GraphicsContext::drawConvexPolygon):
2200         (WebCore::GraphicsContext::drawEllipse):
2201         (WebCore::GraphicsContext::drawFocusRing):
2202         (WebCore::GraphicsContext::drawLine):
2203         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
2204         (WebCore::GraphicsContext::drawLineForText):
2205         (WebCore::GraphicsContext::drawRect):
2206         (WebCore::GraphicsContext::fillPath):
2207         (WebCore::GraphicsContext::fillRect):
2208         (WebCore::GraphicsContext::fillRoundedRect):
2209         (WebCore::GraphicsContext::getCTM):
2210         (WebCore::GraphicsContext::roundToDevicePixels):
2211         (WebCore::GraphicsContext::scale):
2212         (WebCore::GraphicsContext::setAlpha):
2213         (WebCore::GraphicsContext::setCompositeOperation):
2214         (WebCore::GraphicsContext::setImageInterpolationQuality):
2215         (WebCore::GraphicsContext::setLineCap):
2216         (WebCore::GraphicsContext::setLineDash):
2217         (WebCore::GraphicsContext::setLineJoin):
2218         (WebCore::GraphicsContext::setMiterLimit):
2219         (WebCore::GraphicsContext::setPlatformFillColor):
2220         (WebCore::GraphicsContext::setPlatformShadow):
2221         (WebCore::GraphicsContext::setPlatformStrokeColor):
2222         (WebCore::GraphicsContext::setPlatformStrokeStyle):
2223         (WebCore::GraphicsContext::setPlatformStrokeThickness):
2224         (WebCore::GraphicsContext::setPlatformTextDrawingMode):
2225         (WebCore::GraphicsContext::setURLForRect):
2226         (WebCore::GraphicsContext::setUseAntialiasing):
2227         (WebCore::GraphicsContext::strokeArc):
2228         (WebCore::GraphicsContext::strokePath):
2229         (WebCore::GraphicsContext::strokeRect):
2230         (WebCore::GraphicsContext::rotate):
2231         (WebCore::GraphicsContext::translate):
2232
2233 2009-01-08  David Hyatt  <hyatt@apple.com>
2234
2235         Fix for <rdar://problem/6465682> REGRESSION: In Mail, can't force a message to auto scroll.
2236
2237         Make scrollRectIntoViewRecursively call out to the HostWindow to continue the recursive scroll for
2238         any scrollable views that may contain a WebView.  Does nothing on platforms other than the Mac, but
2239         might eventually be of interest to other platforms.
2240
2241         Reviewed by Oliver Hunt
2242
2243         * WebCore.base.exp:
2244         * page/Chrome.cpp:
2245         (WebCore::Chrome::scrollRectIntoView):
2246         * page/Chrome.h:
2247         * page/ChromeClient.h:
2248         (WebCore::ChromeClient::scrollRectIntoView):
2249         * platform/HostWindow.h:
2250         * platform/ScrollView.cpp:
2251         (WebCore::ScrollView::scrollRectIntoViewRecursively):
2252
2253 2009-01-08  Adam Treat  <adam.treat@torchmobile.com>
2254
2255         Reviewed by David Hyatt.
2256
2257         No need to make this part of HostWindow and moreover HostWindow should
2258         not have any reference to non-platform parts of WebCore.
2259
2260         * page/Chrome.h:
2261         * page/FrameView.cpp:
2262         (WebCore::FrameView::setContentsSize):
2263         * platform/HostWindow.h:
2264
2265 2009-01-08  Eric Carlson  <eric.carlson@apple.com>
2266
2267         Reviewed by Adele Peterson.
2268
2269         Simplify Mac interfaces for drawing media controller elements
2270
2271         <rdar://problem/6293969>
2272
2273         * WebCore.base.exp: update for changed WebKitSystemInterface media controller functions
2274
2275         * platform/mac/WebCoreSystemInterface.h: Ditto
2276         * platform/mac/WebCoreSystemInterface.mm: Ditto
2277
2278         * rendering/MediaControlElements.h:
2279         (WebCore::): Add MediaControlElements enum
2280
2281         * rendering/RenderThemeMac.mm:
2282         (WebCore::RenderThemeMac::paintMediaFullscreenButton):  update for changed WebKitSystemInterface
2283         media controller functions
2284         (WebCore::RenderThemeMac::paintMediaMuteButton): Ditto
2285         (WebCore::RenderThemeMac::paintMediaPlayButton): Ditto
2286         (WebCore::RenderThemeMac::paintMediaSeekBackButton): Ditto
2287         (WebCore::RenderThemeMac::paintMediaSeekForwardButton): Ditto
2288         (WebCore::RenderThemeMac::paintMediaSliderTrack): Ditto
2289         (WebCore::RenderThemeMac::paintMediaSliderThumb): Ditto
2290
2291 2009-01-08  Dimitri Glazkov  <dglazkov@chromium.org>
2292
2293         Reviewed by Eric Seidel.
2294
2295         Add two more files for platform/graphics/skia.
2296         https://bugs.webkit.org/show_bug.cgi?id=23191
2297
2298         * platform/graphics/skia/GradientSkia.cpp: Added.
2299         (WebCore::Gradient::platformDestroy):
2300         (WebCore::F2B):
2301         (WebCore::makeSkColor):
2302         (WebCore::totalStopsNeeded):
2303         (WebCore::fillStops):
2304         (WebCore::compareStops):
2305         (WebCore::Gradient::platformGradient):
2306         (WebCore::Gradient::fill):
2307         * platform/graphics/skia/GraphicsContextPlatformPrivate.h: Copied from WebCore/bindings/js/ScriptValue.h.
2308         (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
2309         (WebCore::GraphicsContextPlatformPrivate::context):
2310
2311 2009-01-08  Dimitri Glazkov  <dglazkov@chromium.org>
2312
2313         Reviewed by Eric Seidel.
2314
2315         Commit the right files this time!  (Instead of the ugly unfixed ones.)
2316         https://bugs.webkit.org/show_bug.cgi?id=23191
2317
2318         * platform/graphics/skia/BitmapImageSingleFrameSkia.h:
2319         * platform/graphics/skia/FloatPointSkia.cpp:
2320         * platform/graphics/skia/FloatRectSkia.cpp:
2321         * platform/graphics/skia/IntPointSkia.cpp:
2322         * platform/graphics/skia/IntRectSkia.cpp:
2323         (WebCore::IntRect::operator SkRect):
2324         * platform/graphics/skia/SkiaUtils.cpp:
2325         (WebCore::):
2326         (WebCore::WebCoreCompositeToSkiaComposite):
2327         (WebCore::SkPMColorToWebCoreColor):
2328         (WebCore::IntersectRectAndRegion):
2329         (WebCore::ClipRectToCanvas):
2330         (WebCore::SkPathContainsPoint):
2331         (WebCore::scratchContext):
2332         * platform/graphics/skia/SkiaUtils.h:
2333         (WebCore::WebCoreFloatToSkScalar):
2334         (WebCore::WebCoreDoubleToSkScalar):
2335
2336 2009-01-08  Dimitri Glazkov  <dglazkov@chromium.org>
2337
2338         Reviewed by Eric Seidel.
2339
2340         Add the first few files from platform/graphics/skia
2341         https://bugs.webkit.org/show_bug.cgi?id=23191
2342
2343         These are all pretty simple.
2344         Eventually BitmapImageSingleFrameSkia might grow a .cpp file, for now it's just a header.
2345         SkiaUtils needs to die, but that can come later, no need to block up-streaming now.
2346
2347         * platform/graphics/skia/BitmapImageSingleFrameSkia.h: Added.
2348         (WebCore::BitmapImageSingleFrameSkia::isBitmapImage):
2349         (WebCore::BitmapImageSingleFrameSkia::size):
2350         (WebCore::BitmapImageSingleFrameSkia::destroyDecodedData):
2351         (WebCore::BitmapImageSingleFrameSkia::decodedSize):
2352         (WebCore::BitmapImageSingleFrameSkia::nativeImageForCurrentFrame):
2353         (WebCore::BitmapImageSingleFrameSkia::BitmapImageSingleFrameSkia):
2354         * platform/graphics/skia/FloatPointSkia.cpp: Copied from WebCore/platform/graphics/mac/FloatPointMac.mm.
2355         (WebCore::FloatPoint::FloatPoint):
2356         (WebCore::FloatPoint::operator SkPoint):
2357         * platform/graphics/skia/FloatRectSkia.cpp: Copied from WebCore/platform/graphics/qt/IntRectQt.cpp.
2358         (WebCore::FloatRect::FloatRect):
2359         (WebCore::FloatRect::operator SkRect):
2360         * platform/graphics/skia/IntPointSkia.cpp: Copied from WebCore/platform/graphics/win/IntPointWin.cpp.
2361         (WebCore::IntPoint::IntPoint):
2362         (WebCore::IntPoint::operator SkIPoint):
2363         (WebCore::IntPoint::operator SkPoint):
2364         * platform/graphics/skia/IntRectSkia.cpp: Copied from WebCore/platform/graphics/qt/IntRectQt.cpp.
2365         (WebCore::IntRect::operator SkIRect):
2366         (WebCore::IntRect::operator SkRect):
2367         (WebCore::IntRect::IntRect):
2368         * platform/graphics/skia/SkiaUtils.cpp: Added.
2369         (WebCore::WebCorePointToSkiaPoint):
2370         (WebCore::WebCoreRectToSkiaRect):
2371         (WebCore::):
2372         (WebCore::WebCoreCompositeToSkiaComposite):
2373         (WebCore::InvScaleByte):
2374         (WebCore::SkPMColorToColor):
2375         (WebCore::SkPMColorToWebCoreColor):
2376         (WebCore::IntersectRectAndRegion):
2377         (WebCore::ClipRectToCanvas):
2378         (WebCore::SkPathContainsPoint):
2379         (WebCore::scratchContext):
2380         * platform/graphics/skia/SkiaUtils.h: Added.
2381         (WebCore::WebCoreFloatToSkScalar):
2382         (WebCore::WebCoreDoubleToSkScalar):
2383
2384 2009-01-08  Pierre-Olivier Latour  <pol@apple.com>
2385
2386         Reviewed by Dan Bernstein.
2387
2388         Fixed CSS Transitions with zero-duration but non-zero-delay not starting or ending properly.
2389
2390         Also updated AnimationController::numberOfActiveAnimations() which now returns the number of "active" animations,
2391         instead of simply the "running" ones.
2392
2393         https://bugs.webkit.org/show_bug.cgi?id=23177
2394
2395         Tests: transitions/zero-duration-with-non-zero-delay-end.html
2396                transitions/zero-duration-with-non-zero-delay-start.html
2397
2398         * page/animation/AnimationBase.cpp:
2399         (WebCore::AnimationBase::fireAnimationEventsIfNeeded):
2400         * page/animation/AnimationController.cpp:
2401         (WebCore::AnimationControllerPrivate::animationTimerFired):
2402         * page/animation/CompositeAnimation.cpp:
2403         (WebCore::CompositeAnimationPrivate::numberOfActiveAnimations):
2404
2405 2009-01-08  Alexey Proskuryakov  <ap@webkit.org>
2406
2407         Reviewed by Oliver Hunt.
2408
2409         <rdar://problem/6477501> Repro crash loading HTML5 AppCache manifest directly
2410
2411         The crash happened whenever a cached resource was downloaded, as opposed to used directly.
2412
2413         No test, as downloading cannot be tested automatically.
2414
2415         * loader/MainResourceLoader.cpp: (WebCore::MainResourceLoader::continueAfterContentPolicy):
2416         Cancel downloads that do not have an associated ResourceHandle, such as downloads from the
2417         application cache. Activity window shows "The URL can't be shown", and the frame remains empty.
2418
2419 2009-01-08  Justin McPherson <justin.mcpherson@nokia.com>
2420
2421         Reviewed by Simon Hausmann.
2422
2423         Fix the Qt build on older X11 systems with special X paths.
2424
2425         * WebCore.pro: Use the x11 qmake config to pull in extra paths
2426         needed for NPAPI.
2427
2428 2009-01-08  Adam Roben  <aroben@apple.com>
2429
2430         Windows build fix after r39699
2431
2432         * DerivedSources.cpp: Added JSDOMStringList.cpp.
2433
2434 2009-01-08  Kent Hansen  <khansen@trolltech.com>
2435
2436         Reviewed by Simon Hausmann.
2437
2438         Fix copy & paste of images in the Qt port.
2439
2440         Store the QPixmap itself in the mimedata, not a QPixmap* converted to bool.
2441
2442         * platform/qt/ClipboardQt.cpp:
2443         (WebCore::ClipboardQt::declareAndWriteDragImage):
2444
2445 2009-01-08  Hiroyuki Ikezoe  <poincare@ikezoe.net>
2446
2447         Reviewed by Holger Freyther.
2448
2449         https://bugs.webkit.org/show_bug.cgi?id=23127
2450
2451         Invoke pango_coverage_get with each Unicode character.
2452
2453         * platform/graphics/gtk/SimpleFontDataPango.cpp:
2454         (WebCore::SimpleFontData::containsCharacters):
2455
2456 2009-01-07  Alexey Proskuryakov  <ap@webkit.org>
2457
2458         Reviewed by Darin Adler.
2459
2460         Part one of 
2461         https://bugs.webkit.org/show_bug.cgi?id=23165
2462         Add support for application cache dynamic entries
2463
2464         Test: http/tests/appcache/dynamic-entries-no-cache.html
2465
2466         * DerivedSources.make:
2467         * GNUmakefile.am:
2468         * WebCore.pro:
2469         * WebCore.scons:
2470         * WebCore.vcproj/WebCore.vcproj:
2471         * WebCore.xcodeproj/project.pbxproj:
2472         * WebCoreSources.bkl:
2473         Added new files.
2474
2475         * bindings/js/JSDOMApplicationCacheCustom.cpp: (WebCore::JSDOMApplicationCache::hasItem):
2476         Added binding for hasItem(). Like other DOMApplicationCache methods, it needs to be custom
2477         to resolve relative URLs correctly.
2478
2479         * bindings/js/JSDOMStringListCustom.cpp: Added.
2480         * dom/DOMStringList.cpp: Added.
2481         * dom/DOMStringList.h: Added.
2482         * dom/DOMStringList.idl: Added.
2483         Added an implementation of DOM 3 Core DOMStringList interface, which is returned by
2484         DOMApplicationCache items attribute.
2485
2486         * dom/StaticStringList.cpp: Added.
2487         * dom/StaticStringList.h: Added.
2488         An implementation of DOMStringList that makes a snapshot (for DOMApplicationCache, this
2489         matches Firefox, as the spec doesn't say whether the returned list should be live or not).
2490
2491         * loader/appcache/ApplicationCache.h: Added a list of pending dynamic entry actions, to be
2492         used in the near future.
2493
2494         * loader/appcache/DOMApplicationCache.idl: Updated for spec changes. Instead of length 
2495         attribute and item(), we now have an items attribute that returns a DOMStringList, and a
2496         hasItem convenience method.
2497
2498         * loader/appcache/DOMApplicationCache.cpp:
2499         (WebCore::DOMApplicationCache::items):
2500         (WebCore::DOMApplicationCache::hasItem):
2501         * loader/appcache/DOMApplicationCache.h:
2502         Added implementations of items attribute and hasItem() (note that underlying ApplicationCache
2503         methods are still unimplemented though).
2504
2505         * page/DOMWindow.idl: Expose a DOMStringList global constructor.
2506
2507 2009-01-07  Chris Marrin  <cmarrin@apple.com>
2508
2509         Reviewed by Eric Seidel.
2510
2511         https://bugs.webkit.org/show_bug.cgi?id=23122
2512
2513         This completes the removal of dependencies on WebKit from the platform code
2514
2515         * css/CSSComputedStyleDeclaration.cpp:
2516         (WebCore::getDelayValue):
2517         (WebCore::getDurationValue):
2518         (WebCore::getTimingFunctionValue):
2519         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2520         * css/CSSHelper.h:
2521         * css/CSSStyleSelector.cpp:
2522         (WebCore::CSSStyleSelector::mapAnimationDelay):
2523         (WebCore::CSSStyleSelector::mapAnimationDirection):
2524         (WebCore::CSSStyleSelector::mapAnimationDuration):
2525         (WebCore::CSSStyleSelector::mapAnimationIterationCount):
2526         (WebCore::CSSStyleSelector::mapAnimationName):
2527         (WebCore::CSSStyleSelector::mapAnimationPlayState):
2528         (WebCore::CSSStyleSelector::mapAnimationProperty):
2529         (WebCore::CSSStyleSelector::mapAnimationTimingFunction):
2530         * platform/animation/Animation.cpp:
2531         (WebCore::Animation::Animation):
2532         * platform/animation/Animation.h:
2533         (WebCore::Animation::initialAnimationDelay):
2534         (WebCore::Animation::initialAnimationDirection):
2535         (WebCore::Animation::initialAnimationDuration):
2536         (WebCore::Animation::initialAnimationIterationCount):
2537         (WebCore::Animation::initialAnimationName):
2538         (WebCore::Animation::initialAnimationPlayState):
2539         (WebCore::Animation::initialAnimationProperty):
2540         (WebCore::Animation::initialAnimationTimingFunction):
2541         * rendering/style/RenderStyle.h:
2542
2543 2008-01-07  Peter Kasting  <pkasting@google.com>
2544
2545         Reviewed by Sam Weinig.
2546
2547         https://bugs.webkit.org/show_bug.cgi?id=22929
2548
2549         Fix errors while decoding GIFs by not calling setData() repeatedly
2550         when it's not necessary.  Pushes the responsibility for calling
2551         setData() after clear() into the ImageSource which presumably knows
2552         better than BitmapImage what needs to be done.
2553
2554         NOTE: The above bug is mainly about a memory regression, which this
2555         patch does not fix.
2556
2557         * platform/graphics/BitmapImage.cpp:
2558         (WebCore::BitmapImage::destroyDecodedData):
2559         * platform/graphics/ImageSource.h:
2560         * platform/graphics/cairo/ImageSourceCairo.cpp:
2561         (WebCore::ImageSource::clear):
2562         * platform/graphics/cg/ImageSourceCG.cpp:
2563         (WebCore::ImageSource::clear):
2564         * platform/graphics/qt/ImageSourceQt.cpp:
2565         (WebCore::ImageSource::~ImageSource):
2566         (WebCore::ImageSource::clear):
2567         * platform/graphics/wx/ImageSourceWx.cpp:
2568         (WebCore::ImageSource::~ImageSource):
2569         (WebCore::ImageSource::clear):
2570
2571 2009-01-07  Justin Garcia  <justin.garcia@apple.com>
2572
2573         Reviewed by Darin Adler.
2574
2575         <rdar://problem/6355786> Find fails for queries that contain a line break
2576
2577         * editing/TextIterator.cpp:
2578         (WebCore::findPlainText): Allow find with queries that contain newlines.
2579
2580 2009-01-07  Dean Jackson  <dino@apple.com>
2581
2582         Reviewed by Dan Bernstein.
2583
2584         Allow removal of inline shorthand properties for
2585         animation, transition and transform origin. Also
2586         add getter for shorthand animation property.
2587
2588         https://bugs.webkit.org/show_bug.cgi?id=22605
2589
2590         Test: fast/css/transform-inline-style-remove.html
2591
2592         * css/CSSMutableStyleDeclaration.cpp:
2593         (WebCore::CSSMutableStyleDeclaration::getPropertyValue):
2594             Getter for animation property shorthand
2595         (WebCore::initShorthandMap):
2596             Adds initialisation for transform-origin, animation and transition
2597
2598 2009-01-07  Benjamin Otte  <otte@gnome.org>
2599
2600         Reviewed by Holger Freyther.
2601
2602         * platform/network/ResourceHandleInternal.h:
2603         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
2604         * platform/network/soup/ResourceHandleSoup.cpp:
2605         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
2606         (WebCore::parseDataUrl):
2607         (WebCore::ResourceHandle::startData): keep track of the idle handler
2608         we add and remove it in the destructor
2609
2610 2009-01-07  Dean Jackson  <dino@apple.com>
2611
2612         Reviewed by Darin Adler.
2613
2614         Finish renaming of AffineTransform to TransformationMatrix, this
2615         time ensuring that the platform implementations get the correct
2616         name. Also, clean up some whitespace cruft in old content.
2617
2618         https://bugs.webkit.org/show_bug.cgi?id=23151
2619
2620         * GNUmakefile.am:
2621         * WebCore.pro:
2622         * WebCore.scons:
2623         * WebCore.vcproj/WebCore.vcproj:
2624         * WebCore.xcodeproj/project.pbxproj:
2625         * platform/graphics/cairo/AffineTransformCairo.cpp: Removed.
2626         * platform/graphics/cairo/TransformationMatrixCairo.cpp: Copied from WebCore/platform/graphics/cairo/AffineTransformCairo.cpp.
2627         * platform/graphics/cg/AffineTransformCG.cpp: Removed.
2628         * platform/graphics/cg/TransformationMatrixCG.cpp: Copied from WebCore/platform/graphics/cg/AffineTransformCG.cpp.
2629         * platform/graphics/qt/AffineTransformQt.cpp: Removed.
2630         * platform/graphics/qt/TransformationMatrixQt.cpp: Copied from WebCore/platform/graphics/qt/AffineTransformQt.cpp.
2631         * platform/graphics/transforms/TransformationMatrix.cpp:
2632         * platform/graphics/transforms/TransformationMatrix.h:
2633         * platform/graphics/wx/AffineTransformWx.cpp: Removed.
2634         * platform/graphics/wx/TransformationMatrixWx.cpp: Copied from WebCore/platform/graphics/wx/AffineTransformWx.cpp.
2635         * webcore-wx.bkl:
2636
2637 2009-01-07  Anders Carlsson  <andersca@apple.com>
2638
2639         Another build fix.
2640         
2641         * WebCore.LP64.exp:
2642
2643 2008-12-16  David Hyatt  <hyatt@apple.com>
2644
2645         Make Safari RSS behave nicely with full page zoom.  Need to add a new value to enable resetting of zoom
2646         back to the document-level default.
2647
2648         Reviewed by Darin Adler
2649
2650         * css/CSSParser.cpp:
2651         (WebCore::CSSParser::parseValue):
2652         * css/CSSStyleSelector.cpp:
2653         (WebCore::CSSStyleSelector::applyProperty):
2654         * css/CSSValueKeywords.in:
2655
2656 2009-01-07  Darin Adler  <darin@apple.com>
2657
2658         Reviewed by Oliver Hunt.
2659
2660         Bug 23160: add setMemoryCacheClientCallsEnabled SPI so Safari can be faster with activity window closed
2661         https://bugs.webkit.org/show_bug.cgi?id=23160
2662
2663         * WebCore.base.exp: Added Page::setMemoryCacheClientCallsEnabled.
2664
2665         * inspector/InspectorController.cpp:
2666         (WebCore::InspectorController::didLoadResourceFromMemoryCache): Updated to take a CachedResource
2667         so that there's no extra work the caller has to do when the inspector is disabled.
2668         * inspector/InspectorController.h: Ditto.
2669
2670         * loader/DocumentLoader.h: Added recordMemoryCacheLoadForFutureClientNotification,
2671         takeMemoryCacheLoadsForClientNotification, and m_resourcesLoadedFromMemoryCacheForClientNotification.
2672
2673         * loader/FrameLoader.cpp:
2674         (WebCore::FrameLoader::loadedResourceFromMemoryCache): Streamlined code so less work is done when
2675         there's no inspector or client call needed. Added code to check areMemoryCacheClientCallsEnabled
2676         and if it's false, use recordMemoryCacheLoadForFutureClientNotification.
2677         (WebCore::FrameLoader::tellClientAboutPastMemoryCacheLoads): Added.
2678         * loader/FrameLoader.h: Ditto.
2679
2680         * page/Page.cpp:
2681         (WebCore::Page::Page): Initialize m_areMemoryCacheClientCallsEnabled to be compatible with old behavior.
2682         (WebCore::Page::setMemoryCacheClientCallsEnabled): Added.
2683         * page/Page.h: Added setMemoryCacheClientCallsEnabled, areMemoryCacheClientCallsEnabled,
2684         and m_areMemoryCacheClientCallsEnabled.
2685
2686 2009-01-07  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2687
2688         Rubber-stamped by Simon Hausmann.
2689
2690         Qt build fix after r39670.
2691
2692         * bridge/qt/qt_class.cpp:
2693         (JSC::Bindings::QtClass::fallbackObject):
2694         * bridge/qt/qt_class.h:
2695         * bridge/qt/qt_instance.cpp:
2696         (JSC::Bindings::QtInstance::mark):
2697         (JSC::Bindings::QtInstance::invokeMethod):
2698         (JSC::Bindings::QtInstance::defaultValue):
2699         (JSC::Bindings::QtInstance::stringValue):
2700         (JSC::Bindings::QtInstance::numberValue):
2701         (JSC::Bindings::QtInstance::booleanValue):
2702         (JSC::Bindings::QtInstance::valueOf):
2703         (JSC::Bindings::QtField::valueFromInstance):
2704         (JSC::Bindings::QtField::setValueToInstance):
2705         * bridge/qt/qt_instance.h:
2706         * bridge/qt/qt_runtime.cpp:
2707         (JSC::Bindings::valueRealType):
2708         (JSC::Bindings::convertValueToQVariant):
2709         (JSC::Bindings::convertQVariantToValue):
2710         (JSC::Bindings::findMethodIndex):
2711         (JSC::Bindings::QtRuntimeMetaMethod::call):
2712         (JSC::Bindings::QtRuntimeMetaMethod::lengthGetter):
2713         (JSC::Bindings::QtRuntimeMetaMethod::connectGetter):
2714         (JSC::Bindings::QtRuntimeMetaMethod::disconnectGetter):
2715         (JSC::Bindings::QtRuntimeConnectionMethod::call):
2716         (JSC::Bindings::QtRuntimeConnectionMethod::lengthGetter):
2717         (JSC::Bindings::::setValueAt):
2718         (JSC::Bindings::::valueAt):
2719         * bridge/qt/qt_runtime.h:
2720         (JSC::Bindings::QtRuntimeMethod::createStructure):
2721
2722 2009-01-06  Justin Garcia  <justin.garcia@apple.com>
2723
2724         Reviewed by Oliver Hunt.
2725
2726         <rdar://problem/6391734> SnowLeopard: Crash doing Copy Image from context menu
2727         
2728         Can't create an automated test case for specific contextual menu items yet and
2729         a normal Copy doesn't cause a crash.
2730
2731         * platform/mac/PasteboardMac.mm:
2732         (WebCore::fileWrapperForImage): The SharedBuffer may not have platform data.  It may,
2733         for example, have a purgeable or regular buffer.
2734
2735 2009-01-06  Mark Rowe  <mrowe@apple.com>
2736
2737         Reviewed by Geoff Garen.
2738
2739         Fix <https://bugs.webkit.org/show_bug.cgi?id=23157>.
2740         Bug 23157: Crashes on Acid 3
2741
2742         * dom/Document.cpp:
2743         (WebCore::Document::recalcStyle): Null-check the frame.
2744
2745 2009-01-05  Gavin Barraclough  <baraclough@apple.com>
2746
2747         Rubber Stamped by Oliver Hunt.
2748
2749         Replace all uses of JSValue* with new wrapper class, JSValuePtr.
2750         See JavaScriptCore/ChangeLog for more detailed description.
2751
2752         * bindings/js/JSAttrCustom.cpp:
2753         (WebCore::JSAttr::setValue):
2754         * bindings/js/JSCSSRuleCustom.cpp:
2755         (WebCore::toJS):
2756         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
2757         (WebCore::JSCSSStyleDeclaration::nameGetter):
2758         (WebCore::JSCSSStyleDeclaration::customPut):
2759         * bindings/js/JSCSSValueCustom.cpp:
2760         (WebCore::toJS):
2761         * bindings/js/JSCanvasPixelArrayCustom.h:
2762         (WebCore::JSCanvasPixelArray::getByIndex):
2763         (WebCore::JSCanvasPixelArray::indexSetter):
2764         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
2765         (WebCore::toJS):
2766         (WebCore::toHTMLCanvasStyle):
2767         (WebCore::JSCanvasRenderingContext2D::strokeStyle):
2768         (WebCore::JSCanvasRenderingContext2D::setStrokeStyle):
2769         (WebCore::JSCanvasRenderingContext2D::fillStyle):
2770         (WebCore::JSCanvasRenderingContext2D::setFillStyle):
2771         (WebCore::JSCanvasRenderingContext2D::setFillColor):
2772         (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
2773         (WebCore::JSCanvasRenderingContext2D::strokeRect):
2774         (WebCore::JSCanvasRenderingContext2D::drawImage):
2775         (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
2776         (WebCore::JSCanvasRenderingContext2D::setShadow):
2777         (WebCore::JSCanvasRenderingContext2D::createPattern):
2778         (WebCore::JSCanvasRenderingContext2D::putImageData):
2779         (WebCore::JSCanvasRenderingContext2D::fillText):
2780         (WebCore::JSCanvasRenderingContext2D::strokeText):
2781         * bindings/js/JSClipboardCustom.cpp:
2782         (WebCore::JSClipboard::types):
2783         (WebCore::JSClipboard::clearData):
2784         (WebCore::JSClipboard::getData):
2785         (WebCore::JSClipboard::setData):
2786         (WebCore::JSClipboard::setDragImage):
2787         * bindings/js/JSConsoleCustom.cpp:
2788         (WebCore::JSConsole::profiles):
2789         * bindings/js/JSCustomPositionCallback.cpp:
2790         (WebCore::JSCustomPositionCallback::handleEvent):
2791         * bindings/js/JSCustomPositionErrorCallback.cpp:
2792         (WebCore::JSCustomPositionErrorCallback::handleEvent):
2793         * bindings/js/JSCustomSQLStatementCallback.cpp:
2794         (WebCore::JSCustomSQLStatementCallback::handleEvent):
2795         * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
2796         (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
2797         * bindings/js/JSCustomSQLTransactionCallback.cpp:
2798         (WebCore::JSCustomSQLTransactionCallback::handleEvent):
2799         * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
2800         (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
2801         * bindings/js/JSCustomVoidCallback.cpp:
2802         (WebCore::JSCustomVoidCallback::handleEvent):
2803         (WebCore::toVoidCallback):
2804         * bindings/js/JSCustomVoidCallback.h:
2805         * bindings/js/JSCustomXPathNSResolver.cpp:
2806         (WebCore::JSCustomXPathNSResolver::create):
2807         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
2808         * bindings/js/JSCustomXPathNSResolver.h:
2809         * bindings/js/JSDOMApplicationCacheCustom.cpp:
2810         (WebCore::JSDOMApplicationCache::add):
2811         (WebCore::JSDOMApplicationCache::remove):
2812         (WebCore::JSDOMApplicationCache::addEventListener):
2813         (WebCore::JSDOMApplicationCache::removeEventListener):
2814         * bindings/js/JSDOMBinding.cpp:
2815         (WebCore::jsStringOrNull):
2816         (WebCore::jsOwnedStringOrNull):
2817         (WebCore::jsStringOrUndefined):
2818         (WebCore::jsStringOrFalse):
2819         (WebCore::valueToStringWithNullCheck):
2820         (WebCore::valueToStringWithUndefinedOrNullCheck):
2821         (WebCore::reportException):
2822         (WebCore::reportCurrentException):
2823         (WebCore::setDOMException):
2824         (WebCore::objectToStringFunctionGetter):
2825         * bindings/js/JSDOMBinding.h:
2826         (WebCore::getDOMObjectWrapper):
2827         (WebCore::getDOMNodeWrapper):
2828         (WebCore::toJS):
2829         * bindings/js/JSDOMGlobalObject.cpp:
2830         (WebCore::JSDOMGlobalObject::findJSEventListener):
2831         (WebCore::JSDOMGlobalObject::findOrCreateJSEventListener):
2832         (WebCore::JSDOMGlobalObject::findJSUnprotectedEventListener):
2833         (WebCore::JSDOMGlobalObject::findOrCreateJSUnprotectedEventListener):
2834         * bindings/js/JSDOMGlobalObject.h:
2835         * bindings/js/JSDOMWindowBase.cpp:
2836         (WebCore::createWindow):
2837         (WebCore::showModalDialog):
2838         (jsDOMWindowBaseCrypto):
2839         (jsDOMWindowBaseEvent):
2840         (jsDOMWindowBaseImage):
2841         (jsDOMWindowBaseMessageChannel):
2842         (jsDOMWindowBaseOption):
2843         (jsDOMWindowBaseXMLHttpRequest):
2844         (jsDOMWindowBaseAudio):
2845         (jsDOMWindowBaseWorker):
2846         (jsDOMWindowBaseXSLTProcessor):
2847         (setJSDOMWindowBaseEvent):
2848         (setJSDOMWindowBaseAudio):
2849         (setJSDOMWindowBaseImage):
2850         (setJSDOMWindowBaseMessageChannel):
2851         (setJSDOMWindowBaseOption):
2852         (setJSDOMWindowBaseWorker):
2853         (setJSDOMWindowBaseXMLHttpRequest):
2854         (setJSDOMWindowBaseXSLTProcessor):
2855         (WebCore::JSDOMWindowBase::childFrameGetter):
2856         (WebCore::JSDOMWindowBase::indexGetter):
2857         (WebCore::JSDOMWindowBase::namedItemGetter):
2858         (WebCore::JSDOMWindowBase::getOwnPropertySlot):
2859         (WebCore::JSDOMWindowBase::put):
2860         (WebCore::JSDOMWindowBase::clear):
2861         (windowProtoFuncOpen):
2862         (windowProtoFuncShowModalDialog):
2863         (windowProtoFuncNotImplemented):
2864         (WebCore::JSDOMWindowBase::setReturnValueSlot):
2865         (WebCore::JSDOMWindowBase::installTimeout):
2866         (WebCore::toJS):
2867         (WebCore::toJSDOMWindow):
2868         * bindings/js/JSDOMWindowBase.h:
2869         * bindings/js/JSDOMWindowCustom.cpp:
2870         (WebCore::JSDOMWindow::lookupGetter):
2871         (WebCore::JSDOMWindow::lookupSetter):
2872         (WebCore::JSDOMWindow::setLocation):
2873         (WebCore::JSDOMWindow::postMessage):
2874         (WebCore::setTimeoutOrInterval):
2875         (WebCore::JSDOMWindow::setTimeout):
2876         (WebCore::JSDOMWindow::clearTimeout):
2877         (WebCore::JSDOMWindow::setInterval):
2878         (WebCore::JSDOMWindow::clearInterval):
2879         (WebCore::JSDOMWindow::atob):
2880         (WebCore::JSDOMWindow::btoa):
2881         (WebCore::JSDOMWindow::addEventListener):
2882         (WebCore::JSDOMWindow::removeEventListener):
2883         (WebCore::toDOMWindow):
2884         (WebCore::nonCachingStaticCloseFunctionGetter):
2885         (WebCore::nonCachingStaticBlurFunctionGetter):
2886         (WebCore::nonCachingStaticFocusFunctionGetter):
2887         (WebCore::nonCachingStaticPostMessageFunctionGetter):
2888         * bindings/js/JSDOMWindowCustom.h:
2889         (WebCore::JSDOMWindow::customPut):
2890         * bindings/js/JSDOMWindowShell.cpp:
2891         (WebCore::JSDOMWindowShell::put):
2892         (WebCore::JSDOMWindowShell::putWithAttributes):
2893         (WebCore::JSDOMWindowShell::lookupGetter):
2894         (WebCore::JSDOMWindowShell::lookupSetter):
2895         (WebCore::toJS):
2896         * bindings/js/JSDOMWindowShell.h:
2897         (WebCore::JSDOMWindowShell::createStructure):
2898         * bindings/js/JSDatabaseCustom.cpp:
2899         (WebCore::JSDatabase::changeVersion):
2900         (WebCore::JSDatabase::transaction):
2901         * bindings/js/JSDocumentCustom.cpp:
2902         (WebCore::JSDocument::location):
2903         (WebCore::JSDocument::setLocation):
2904         (WebCore::toJS):
2905         * bindings/js/JSElementCustom.cpp:
2906         (WebCore::JSElement::setAttribute):
2907         (WebCore::JSElement::setAttributeNode):
2908         (WebCore::JSElement::setAttributeNS):
2909         (WebCore::JSElement::setAttributeNodeNS):
2910         (WebCore::toJSNewlyCreated):
2911         * bindings/js/JSEventCustom.cpp:
2912         (WebCore::JSEvent::clipboardData):
2913         (WebCore::toJS):
2914         * bindings/js/JSEventListener.cpp:
2915         (WebCore::JSAbstractEventListener::handleEvent):
2916         (WebCore::eventParameterName):
2917         (WebCore::JSLazyEventListener::parseCode):
2918         * bindings/js/JSEventTarget.cpp:
2919         (WebCore::toJS):
2920         * bindings/js/JSEventTarget.h:
2921         * bindings/js/JSEventTargetBase.h:
2922         * bindings/js/JSEventTargetNodeCustom.cpp:
2923         (WebCore::JSEventTargetNode::addEventListener):
2924         (WebCore::JSEventTargetNode::removeEventListener):
2925         * bindings/js/JSGeolocationCustom.cpp:
2926         (WebCore::createPositionOptions):
2927         (WebCore::JSGeolocation::getCurrentPosition):
2928         (WebCore::JSGeolocation::watchPosition):
2929         * bindings/js/JSHTMLAllCollection.h:
2930         (WebCore::JSHTMLAllCollection::createStructure):
2931         * bindings/js/JSHTMLAppletElementCustom.cpp:
2932         (WebCore::JSHTMLAppletElement::customPut):
2933         (WebCore::JSHTMLAppletElement::nameGetter):
2934         * bindings/js/JSHTMLCollectionCustom.cpp:
2935         (WebCore::getNamedItems):
2936         (WebCore::callHTMLCollection):
2937         (WebCore::JSHTMLCollection::nameGetter):
2938         (WebCore::JSHTMLCollection::item):
2939         (WebCore::JSHTMLCollection::namedItem):
2940         (WebCore::toJS):
2941         * bindings/js/JSHTMLDocumentCustom.cpp:
2942         (WebCore::JSHTMLDocument::nameGetter):
2943         (WebCore::JSHTMLDocument::all):
2944         (WebCore::JSHTMLDocument::setAll):
2945         (WebCore::JSHTMLDocument::open):
2946         (WebCore::JSHTMLDocument::write):
2947         (WebCore::JSHTMLDocument::writeln):
2948         * bindings/js/JSHTMLEmbedElementCustom.cpp:
2949         (WebCore::JSHTMLEmbedElement::customPut):
2950         (WebCore::JSHTMLEmbedElement::nameGetter):
2951         * bindings/js/JSHTMLFormElementCustom.cpp:
2952         (WebCore::JSHTMLFormElement::nameGetter):
2953         * bindings/js/JSHTMLFrameElementCustom.cpp:
2954         (WebCore::JSHTMLFrameElement::setSrc):
2955         (WebCore::JSHTMLFrameElement::setLocation):
2956         * bindings/js/JSHTMLFrameSetElementCustom.cpp:
2957         (WebCore::JSHTMLFrameSetElement::nameGetter):
2958         * bindings/js/JSHTMLIFrameElementCustom.cpp:
2959         (WebCore::JSHTMLIFrameElement::setSrc):
2960         * bindings/js/JSHTMLInputElementCustom.cpp:
2961         (WebCore::JSHTMLInputElement::selectionStart):
2962         (WebCore::JSHTMLInputElement::selectionEnd):
2963         * bindings/js/JSHTMLObjectElementCustom.cpp:
2964         (WebCore::JSHTMLObjectElement::customPut):
2965         (WebCore::JSHTMLObjectElement::nameGetter):
2966         * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
2967         (WebCore::JSHTMLOptionsCollection::length):
2968         (WebCore::JSHTMLOptionsCollection::setLength):
2969         (WebCore::JSHTMLOptionsCollection::indexSetter):
2970         (WebCore::JSHTMLOptionsCollection::add):
2971         (WebCore::JSHTMLOptionsCollection::remove):
2972         * bindings/js/JSHTMLSelectElementCustom.cpp:
2973         (WebCore::JSHTMLSelectElement::remove):
2974         (WebCore::selectIndexSetter):
2975         (WebCore::JSHTMLSelectElement::indexSetter):
2976         * bindings/js/JSHTMLSelectElementCustom.h:
2977         * bindings/js/JSHistoryCustom.cpp:
2978         (WebCore::nonCachingStaticBackFunctionGetter):
2979         (WebCore::nonCachingStaticForwardFunctionGetter):
2980         (WebCore::nonCachingStaticGoFunctionGetter):
2981         (WebCore::JSHistory::customPut):
2982         * bindings/js/JSImageDataCustom.cpp:
2983         (WebCore::toJS):
2984         * bindings/js/JSInspectedObjectWrapper.cpp:
2985         (WebCore::JSInspectedObjectWrapper::wrap):
2986         (WebCore::JSInspectedObjectWrapper::prepareIncomingValue):
2987         * bindings/js/JSInspectedObjectWrapper.h:
2988         (WebCore::JSInspectedObjectWrapper::wrapOutgoingValue):
2989         * bindings/js/JSInspectorCallbackWrapper.cpp:
2990         (WebCore::JSInspectorCallbackWrapper::wrap):
2991         (WebCore::JSInspectorCallbackWrapper::prepareIncomingValue):
2992         * bindings/js/JSInspectorCallbackWrapper.h:
2993         (WebCore::JSInspectorCallbackWrapper::wrapOutgoingValue):
2994         * bindings/js/JSJavaScriptCallFrameCustom.cpp:
2995         (WebCore::JSJavaScriptCallFrame::evaluate):
2996         (WebCore::JSJavaScriptCallFrame::thisObject):
2997         (WebCore::JSJavaScriptCallFrame::type):
2998         (WebCore::JSJavaScriptCallFrame::scopeChain):
2999         * bindings/js/JSLocationCustom.cpp:
3000         (WebCore::nonCachingStaticReplaceFunctionGetter):
3001         (WebCore::nonCachingStaticReloadFunctionGetter):
3002         (WebCore::nonCachingStaticAssignFunctionGetter):
3003         (WebCore::JSLocation::customPut):
3004         (WebCore::JSLocation::setHref):
3005         (WebCore::JSLocation::setProtocol):
3006         (WebCore::JSLocation::setHost):
3007         (WebCore::JSLocation::setHostname):
3008         (WebCore::JSLocation::setPort):
3009         (WebCore::JSLocation::setPathname):
3010         (WebCore::JSLocation::setSearch):
3011         (WebCore::JSLocation::setHash):
3012         (WebCore::JSLocation::replace):
3013         (WebCore::JSLocation::reload):
3014         (WebCore::JSLocation::assign):
3015         (WebCore::JSLocation::toString):
3016         * bindings/js/JSMessageChannelConstructor.h:
3017         * bindings/js/JSMessagePortCustom.cpp:
3018         (WebCore::JSMessagePort::startConversation):
3019         (WebCore::JSMessagePort::addEventListener):
3020         (WebCore::JSMessagePort::removeEventListener):
3021         * bindings/js/JSMimeTypeArrayCustom.cpp:
3022         (WebCore::JSMimeTypeArray::nameGetter):
3023         * bindings/js/JSNamedNodeMapCustom.cpp:
3024         (WebCore::JSNamedNodeMap::nameGetter):
3025         * bindings/js/JSNamedNodesCollection.cpp:
3026         (WebCore::JSNamedNodesCollection::lengthGetter):
3027         (WebCore::JSNamedNodesCollection::indexGetter):
3028         * bindings/js/JSNamedNodesCollection.h:
3029         (WebCore::JSNamedNodesCollection::createStructure):
3030         * bindings/js/JSNavigatorCustom.cpp:
3031         (WebCore::needsYouTubeQuirk):
3032         (WebCore::JSNavigator::appVersion):
3033         * bindings/js/JSNodeCustom.cpp:
3034         (WebCore::JSNode::insertBefore):
3035         (WebCore::JSNode::replaceChild):
3036         (WebCore::JSNode::removeChild):
3037         (WebCore::JSNode::appendChild):
3038         (WebCore::createWrapper):
3039         (WebCore::toJSNewlyCreated):
3040         (WebCore::toJS):
3041         * bindings/js/JSNodeFilterCondition.cpp:
3042         (WebCore::JSNodeFilterCondition::JSNodeFilterCondition):
3043         (WebCore::JSNodeFilterCondition::acceptNode):
3044         * bindings/js/JSNodeFilterCondition.h:
3045         (WebCore::JSNodeFilterCondition::create):
3046         * bindings/js/JSNodeFilterCustom.cpp:
3047         (WebCore::JSNodeFilter::acceptNode):
3048         (WebCore::toNodeFilter):
3049         * bindings/js/JSNodeIteratorCustom.cpp:
3050         (WebCore::JSNodeIterator::nextNode):
3051         (WebCore::JSNodeIterator::previousNode):
3052         * bindings/js/JSNodeListCustom.cpp:
3053         (WebCore::callNodeList):
3054         (WebCore::JSNodeList::nameGetter):
3055         * bindings/js/JSPluginArrayCustom.cpp:
3056         (WebCore::JSPluginArray::nameGetter):
3057         * bindings/js/JSPluginCustom.cpp:
3058         (WebCore::JSPlugin::nameGetter):
3059         * bindings/js/JSPluginElementFunctions.cpp:
3060         (WebCore::runtimeObjectGetter):
3061         (WebCore::runtimeObjectPropertyGetter):
3062         (WebCore::runtimeObjectCustomPut):
3063         (WebCore::callPlugin):
3064         * bindings/js/JSPluginElementFunctions.h:
3065         * bindings/js/JSQuarantinedObjectWrapper.cpp:
3066         (WebCore::JSQuarantinedObjectWrapper::asWrapper):
3067         (WebCore::JSQuarantinedObjectWrapper::cachedValueGetter):
3068         (WebCore::JSQuarantinedObjectWrapper::getOwnPropertySlot):
3069         (WebCore::JSQuarantinedObjectWrapper::put):
3070         (WebCore::JSQuarantinedObjectWrapper::construct):
3071         (WebCore::JSQuarantinedObjectWrapper::hasInstance):
3072         (WebCore::JSQuarantinedObjectWrapper::call):
3073         * bindings/js/JSQuarantinedObjectWrapper.h:
3074         (WebCore::JSQuarantinedObjectWrapper::createStructure):
3075         * bindings/js/JSRGBColor.cpp:
3076         (WebCore::getJSRGBColor):
3077         (jsRGBColorRed):
3078         (jsRGBColorGreen):
3079         (jsRGBColorBlue):
3080         * bindings/js/JSRGBColor.h:
3081         (WebCore::JSRGBColor::createStructure):
3082         * bindings/js/JSSQLResultSetRowListCustom.cpp:
3083         (WebCore::JSSQLResultSetRowList::item):
3084         * bindings/js/JSSQLTransactionCustom.cpp:
3085         (WebCore::JSSQLTransaction::executeSql):
3086         * bindings/js/JSSVGElementInstanceCustom.cpp:
3087         (WebCore::JSSVGElementInstance::addEventListener):
3088         (WebCore::JSSVGElementInstance::removeEventListener):
3089         * bindings/js/JSSVGLengthCustom.cpp:
3090         (WebCore::JSSVGLength::value):
3091         (WebCore::JSSVGLength::convertToSpecifiedUnits):
3092         * bindings/js/JSSVGMatrixCustom.cpp:
3093         (WebCore::JSSVGMatrix::multiply):
3094         (WebCore::JSSVGMatrix::inverse):
3095         (WebCore::JSSVGMatrix::translate):
3096         (WebCore::JSSVGMatrix::scale):
3097         (WebCore::JSSVGMatrix::scaleNonUniform):
3098         (WebCore::JSSVGMatrix::rotate):
3099         (WebCore::JSSVGMatrix::rotateFromVector):
3100         (WebCore::JSSVGMatrix::flipX):
3101         (WebCore::JSSVGMatrix::flipY):
3102         (WebCore::JSSVGMatrix::skewX):
3103         (WebCore::JSSVGMatrix::skewY):
3104         * bindings/js/JSSVGPathSegCustom.cpp:
3105         (WebCore::toJS):
3106         * bindings/js/JSSVGPathSegListCustom.cpp:
3107         (WebCore::JSSVGPathSegList::clear):
3108         (WebCore::JSSVGPathSegList::initialize):
3109         (WebCore::JSSVGPathSegList::getItem):
3110         (WebCore::JSSVGPathSegList::insertItemBefore):
3111         (WebCore::JSSVGPathSegList::replaceItem):
3112         (WebCore::JSSVGPathSegList::removeItem):
3113         (WebCore::JSSVGPathSegList::appendItem):
3114         * bindings/js/JSSVGPointListCustom.cpp:
3115         (WebCore::finishGetter):
3116         (WebCore::finishSetter):
3117         (WebCore::finishSetterReadOnlyResult):
3118         (WebCore::JSSVGPointList::clear):
3119         (WebCore::JSSVGPointList::initialize):
3120         (WebCore::JSSVGPointList::getItem):
3121         (WebCore::JSSVGPointList::insertItemBefore):
3122         (WebCore::JSSVGPointList::replaceItem):
3123         (WebCore::JSSVGPointList::removeItem):
3124         (WebCore::JSSVGPointList::appendItem):
3125         * bindings/js/JSSVGTransformListCustom.cpp:
3126         (WebCore::finishGetter):
3127         (WebCore::finishSetter):
3128         (WebCore::finishSetterReadOnlyResult):
3129         (WebCore::JSSVGTransformList::clear):
3130         (WebCore::JSSVGTransformList::initialize):
3131         (WebCore::JSSVGTransformList::getItem):
3132         (WebCore::JSSVGTransformList::insertItemBefore):
3133         (WebCore::JSSVGTransformList::replaceItem):
3134         (WebCore::JSSVGTransformList::removeItem):
3135         (WebCore::JSSVGTransformList::appendItem):
3136         * bindings/js/JSStorageCustom.cpp:
3137         (WebCore::JSStorage::nameGetter):
3138         (WebCore::JSStorage::deleteProperty):
3139         (WebCore::JSStorage::customPut):
3140         * bindings/js/JSStyleSheetCustom.cpp:
3141         (WebCore::toJS):
3142         * bindings/js/JSStyleSheetListCustom.cpp:
3143         (WebCore::JSStyleSheetList::nameGetter):
3144         * bindings/js/JSTextCustom.cpp:
3145         (WebCore::toJSNewlyCreated):
3146         * bindings/js/JSTreeWalkerCustom.cpp:
3147         (WebCore::JSTreeWalker::parentNode):
3148         (WebCore::JSTreeWalker::firstChild):
3149         (WebCore::JSTreeWalker::lastChild):
3150         (WebCore::JSTreeWalker::nextSibling):
3151         (WebCore::JSTreeWalker::previousSibling):
3152         (WebCore::JSTreeWalker::previousNode):
3153         (WebCore::JSTreeWalker::nextNode):
3154         * bindings/js/JSWorkerContextBase.cpp:
3155         (WebCore::JSWorkerContextBase::put):
3156         * bindings/js/JSWorkerContextBase.h:
3157         * bindings/js/JSWorkerContextCustom.cpp:
3158         (WebCore::JSWorkerContext::self):
3159         (WebCore::JSWorkerContext::setSelf):
3160         (WebCore::JSWorkerContext::addEventListener):
3161         (WebCore::JSWorkerContext::removeEventListener):
3162         * bindings/js/JSWorkerCustom.cpp:
3163         (WebCore::JSWorker::addEventListener):
3164         (WebCore::JSWorker::removeEventListener):
3165         * bindings/js/JSXMLHttpRequestCustom.cpp:
3166         (WebCore::JSXMLHttpRequest::open):
3167         (WebCore::JSXMLHttpRequest::setRequestHeader):
3168         (WebCore::JSXMLHttpRequest::send):
3169         (WebCore::JSXMLHttpRequest::getResponseHeader):
3170         (WebCore::JSXMLHttpRequest::overrideMimeType):
3171         (WebCore::JSXMLHttpRequest::addEventListener):
3172         (WebCore::JSXMLHttpRequest::removeEventListener):
3173         (WebCore::JSXMLHttpRequest::responseText):
3174         * bindings/js/JSXMLHttpRequestUploadCustom.cpp:
3175         (WebCore::JSXMLHttpRequestUpload::addEventListener):
3176         (WebCore::JSXMLHttpRequestUpload::removeEventListener):
3177         * bindings/js/JSXSLTProcessorCustom.cpp:
3178         (WebCore::JSXSLTProcessor::importStylesheet):
3179         (WebCore::JSXSLTProcessor::transformToFragment):
3180         (WebCore::JSXSLTProcessor::transformToDocument):
3181         (WebCore::JSXSLTProcessor::setParameter):
3182         (WebCore::JSXSLTProcessor::getParameter):
3183         (WebCore::JSXSLTProcessor::removeParameter):
3184         * bindings/js/ScheduledAction.cpp:
3185         (WebCore::ScheduledAction::ScheduledAction):
3186         (WebCore::ScheduledAction::execute):
3187         * bindings/js/ScheduledAction.h:
3188         * bindings/js/ScriptCallStack.cpp:
3189         (WebCore::ScriptCallStack::ScriptCallStack):
3190         (WebCore::ScriptCallStack::initialize):
3191         * bindings/js/ScriptController.cpp:
3192         (WebCore::ScriptController::createScriptObjectForPluginElement):
3193         * bindings/js/ScriptValue.cpp:
3194         (WebCore::ScriptValue::getString):
3195         (WebCore::ScriptValue::isNull):
3196         (WebCore::ScriptValue::isUndefined):
3197         * bindings/js/ScriptValue.h:
3198         (WebCore::ScriptValue::ScriptValue):
3199         (WebCore::ScriptValue::jsValue):
3200         * bindings/objc/WebScriptObject.mm:
3201         (-[WebScriptObject callWebScriptMethod:withArguments:]):
3202         (-[WebScriptObject evaluateWebScript:]):
3203         (-[WebScriptObject valueForKey:]):
3204         (-[WebScriptObject webScriptValueAtIndex:]):
3205         (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
3206         * bindings/objc/WebScriptObjectPrivate.h:
3207         * bindings/scripts/CodeGeneratorJS.pm:
3208         * bridge/NP_jsobject.cpp:
3209         (_NPN_InvokeDefault):
3210         (_NPN_Invoke):
3211         (_NPN_Evaluate):
3212         (_NPN_GetProperty):
3213         (_NPN_HasMethod):
3214         (_NPN_Construct):
3215         * bridge/c/c_instance.cpp:
3216         (JSC::Bindings::CInstance::invokeMethod):
3217         (JSC::Bindings::CInstance::invokeDefaultMethod):
3218         (JSC::Bindings::CInstance::invokeConstruct):
3219         (JSC::Bindings::CInstance::defaultValue):
3220         (JSC::Bindings::CInstance::stringValue):
3221         (JSC::Bindings::CInstance::numberValue):
3222         (JSC::Bindings::CInstance::booleanValue):
3223         (JSC::Bindings::CInstance::valueOf):
3224         * bridge/c/c_instance.h:
3225         * bridge/c/c_runtime.cpp:
3226         (JSC::Bindings::CField::valueFromInstance):
3227         (JSC::Bindings::CField::setValueToInstance):
3228         * bridge/c/c_runtime.h:
3229         * bridge/c/c_utility.cpp:
3230         (JSC::Bindings::convertValueToNPVariant):
3231         (JSC::Bindings::convertNPVariantToValue):
3232         * bridge/c/c_utility.h:
3233         * bridge/jni/jni_instance.cpp:
3234         (JavaInstance::stringValue):
3235         (JavaInstance::numberValue):
3236         (JavaInstance::booleanValue):
3237         (JavaInstance::invokeMethod):
3238         (JavaInstance::defaultValue):
3239         (JavaInstance::valueOf):
3240         * bridge/jni/jni_instance.h:
3241         * bridge/jni/jni_jsobject.h:
3242         * bridge/jni/jni_jsobject.mm:
3243         (JavaJSObject::call):
3244         (JavaJSObject::eval):
3245         (JavaJSObject::getMember):
3246         (JavaJSObject::getSlot):
3247         (JavaJSObject::convertValueToJObject):
3248         (JavaJSObject::convertJObjectToValue):
3249         * bridge/jni/jni_objc.mm:
3250         (JSC::Bindings::dispatchJNICall):
3251         * bridge/jni/jni_runtime.cpp:
3252         (JavaArray::convertJObjectToArray):
3253         (JavaField::dispatchValueFromInstance):
3254         (JavaField::valueFromInstance):
3255         (JavaField::dispatchSetValueToInstance):
3256         (JavaField::setValueToInstance):
3257         (JavaArray::setValueAt):
3258         (JavaArray::valueAt):
3259         * bridge/jni/jni_runtime.h:
3260         * bridge/jni/jni_utility.cpp:
3261         (JSC::Bindings::convertArrayInstanceToJavaArray):
3262         (JSC::Bindings::convertValueToJValue):
3263         * bridge/jni/jni_utility.h:
3264         * bridge/objc/WebScriptObject.h:
3265         * bridge/objc/objc_class.h:
3266         * bridge/objc/objc_class.mm:
3267         (JSC::Bindings::ObjcClass::fallbackObject):
3268         * bridge/objc/objc_instance.h:
3269         * bridge/objc/objc_instance.mm:
3270         (ObjcInstance::invokeMethod):
3271         (ObjcInstance::invokeDefaultMethod):
3272         (ObjcInstance::setValueOfUndefinedField):
3273         (ObjcInstance::getValueOfUndefinedField):
3274         (ObjcInstance::defaultValue):
3275         (ObjcInstance::stringValue):
3276         (ObjcInstance::numberValue):
3277         (ObjcInstance::booleanValue):
3278         (ObjcInstance::valueOf):
3279         * bridge/objc/objc_runtime.h:
3280         (JSC::Bindings::ObjcFallbackObjectImp::createStructure):
3281         * bridge/objc/objc_runtime.mm:
3282         (JSC::Bindings::ObjcField::valueFromInstance):
3283         (JSC::Bindings::convertValueToObjcObject):
3284         (JSC::Bindings::ObjcField::setValueToInstance):
3285         (JSC::Bindings::ObjcArray::setValueAt):
3286         (JSC::Bindings::ObjcArray::valueAt):
3287         (JSC::Bindings::ObjcFallbackObjectImp::put):
3288         (JSC::Bindings::callObjCFallbackObject):
3289         (JSC::Bindings::ObjcFallbackObjectImp::defaultValue):
3290         * bridge/objc/objc_utility.h:
3291         * bridge/objc/objc_utility.mm:
3292         (JSC::Bindings::convertValueToObjcValue):
3293         (JSC::Bindings::convertNSStringToString):
3294         (JSC::Bindings::convertObjcValueToValue):
3295         * bridge/runtime.cpp:
3296         (JSC::Bindings::Instance::getValueOfField):
3297         (JSC::Bindings::Instance::setValueOfField):
3298         * bridge/runtime.h:
3299         (JSC::Bindings::Class::fallbackObject):
3300         (JSC::Bindings::Instance::getValueOfUndefinedField):
3301         (JSC::Bindings::Instance::setValueOfUndefinedField):
3302         (JSC::Bindings::Instance::invokeDefaultMethod):
3303         (JSC::Bindings::Instance::invokeConstruct):
3304         (JSC::Bindings::Instance::valueOf):
3305         * bridge/runtime_array.cpp:
3306         (JSC::RuntimeArray::lengthGetter):
3307         (JSC::RuntimeArray::indexGetter):
3308         (JSC::RuntimeArray::put):
3309         * bridge/runtime_array.h:
3310         (JSC::RuntimeArray::createStructure):
3311         * bridge/runtime_method.cpp:
3312         (JSC::RuntimeMethod::lengthGetter):
3313         (JSC::callRuntimeMethod):
3314         * bridge/runtime_method.h:
3315         (JSC::RuntimeMethod::createStructure):
3316         * bridge/runtime_object.cpp:
3317         (JSC::RuntimeObjectImp::fallbackObjectGetter):
3318         (JSC::RuntimeObjectImp::fieldGetter):
3319         (JSC::RuntimeObjectImp::methodGetter):
3320         (JSC::RuntimeObjectImp::put):
3321         (JSC::RuntimeObjectImp::defaultValue):
3322         (JSC::callRuntimeObject):
3323         (JSC::callRuntimeConstructor):
3324         * bridge/runtime_object.h:
3325         (JSC::RuntimeObjectImp::createStructure):
3326         * inspector/InspectorController.cpp:
3327         * inspector/JavaScriptCallFrame.cpp:
3328         (WebCore::JavaScriptCallFrame::evaluate):
3329         * inspector/JavaScriptCallFrame.h:
3330         * inspector/JavaScriptProfile.cpp:
3331         (WebCore::toJS):
3332         * inspector/JavaScriptProfile.h:
3333         * inspector/JavaScriptProfileNode.cpp:
3334         (WebCore::toJS):
3335         * inspector/JavaScriptProfileNode.h:
3336         * xml/XMLHttpRequest.cpp:
3337         (WebCore::XMLHttpRequest::dropProtection):
3338
3339 2009-01-06  Pierre-Olivier Latour  <pol@apple.com>
3340
3341         Reviewed by Darin Adler.
3342
3343         Added new API on AnimationController::numberOfActiveAnimations() to be used by DRT.
3344
3345         https://bugs.webkit.org/show_bug.cgi?id=23126
3346
3347         Test: animations/animation-controller-drt-api.html
3348
3349         * WebCore.base.exp:
3350         * page/animation/AnimationController.cpp:
3351         (WebCore::AnimationControllerPrivate::numberOfActiveAnimations):
3352         (WebCore::AnimationController::numberOfActiveAnimations):
3353         * page/animation/AnimationController.h:
3354         * page/animation/CompositeAnimation.cpp:
3355         (WebCore::CompositeAnimationPrivate::numberOfActiveAnimations):
3356         (WebCore::CompositeAnimation::numberOfActiveAnimations):
3357         * page/animation/CompositeAnimation.h:
3358
3359 2009-01-06  Eric Seidel  <eric@webkit.org>
3360
3361         Reviewed by Gavin Barraclough.
3362
3363         Upstream 3 more files to get the WebCore-Chromium build a bit further.
3364
3365         * WebCore.scons:
3366         * page/chromium/AccessibilityObjectChromium.cpp: Added.
3367         (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
3368         * page/chromium/AccessibilityObjectWrapper.h: Added.
3369         (WebCore::AccessibilityObjectWrapper::~AccessibilityObjectWrapper):
3370         (WebCore::AccessibilityObjectWrapper::attached):
3371         (WebCore::AccessibilityObjectWrapper::accessibilityObject):
3372         (WebCore::AccessibilityObjectWrapper::AccessibilityObjectWrapper):
3373         * platform/chromium/PasteboardPrivate.h: Added.
3374         (WebCore::PasteboardPrivate::):
3375
3376 2009-01-06  Chris Marrin  <cmarrin@apple.com>
3377
3378         Reviewed by David Hyatt.
3379
3380         Tests: animations/simultaneous-start-left.html
3381                animations/simultaneous-start-transform.html
3382
3383         Fixed https://bugs.webkit.org/show_bug.cgi?id=22870
3384  
3385         I added calls beginAnimationUpdate() and endAnimationUpdate() calls
3386         to AnimationController. These are called by Document at the start
3387         and end of the recalcStyle cycle. Right now, I'm just using the 
3388         beginAnimationUpdate() method to reset an animation time value.
3389         The first time the animation time is accessed after this reset I set
3390         it to the currentTime. So all animations in that cycle get the same
3391         start time. 
3392
3393         The test cases checked in test this, but in the case of the 'left'
3394         test it actually doesn't make any difference in most cases. This is
3395         because values are clamped to whole pixels, so the start times would 
3396         have to be pretty far off for the test to fail using the old
3397         currentTime() model. Still, under really heavy load, it's possible for
3398         the test to fail without these changes.
3399
3400         The 'transform' test is another story. It animates to the full resolution
3401         of a floating point number, so the test fails miserably without this
3402         fix.
3403
3404         * dom/Document.cpp:
3405         (WebCore::Document::recalcStyle):
3406         * page/animation/AnimationBase.cpp:
3407         (WebCore::AnimationBase::updateStateMachine):
3408         (WebCore::AnimationBase::fireAnimationEventsIfNeeded):
3409         (WebCore::AnimationBase::willNeedService):
3410         (WebCore::AnimationBase::progress):
3411         (WebCore::AnimationBase::goIntoEndingOrLoopingState):
3412         (WebCore::AnimationBase::beginAnimationUpdateTime):
3413         * page/animation/AnimationBase.h:
3414         * page/animation/AnimationController.cpp:
3415         (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
3416         (WebCore::AnimationControllerPrivate::setBeginAnimationUpdateTime):
3417         (WebCore::AnimationControllerPrivate::AnimationControllerPrivate):
3418         (WebCore::AnimationController::updateAnimations):
3419         (WebCore::AnimationController::beginAnimationUpdateTime):
3420         (WebCore::AnimationController::beginAnimationUpdate):
3421         (WebCore::AnimationController::endAnimationUpdate):
3422         * page/animation/AnimationController.h:
3423         * page/animation/KeyframeAnimation.cpp:
3424         (WebCore::KeyframeAnimation::animate):
3425
3426 2009-01-06  Julien Chaffraix  <jchaffraix@webkit.org>
3427
3428         Reviewed by Nikolas Zimmermann.
3429
3430         Bug 22858: Simplify make_names.pl code for avoiding multiple definitions or inclusions
3431         https://bugs.webkit.org/show_bug.cgi?id=22858
3432
3433         I had introduced an awkward situation using hasCustomJSWrapper and
3434         sometimes boolean parameter in order to ensure JS wrapper generated once
3435         or header included once.
3436
3437         Simplified the code by using a %seenTag hash to detect multiple definitions
3438         or inclusions and skipping it.
3439
3440         Also cleaned up a bit make_names.pl by using more explicit names and moving
3441         code to where it belongs.
3442
3443         * dom/make_names.pl:
3444         * html/HTMLTagNames.in: Necessary changes that were not detected by
3445         the previous syntax but will be required for autogenerating HTMLElementFactory.
3446
3447 2009-01-06  Anders Carlsson  <andersca@apple.com>
3448
3449         Reviewed by Sam Weinig.
3450
3451         Add a way for frame loader clients to always create a PluginDocument, regardless of 
3452         the real document MIME type.
3453         
3454         * loader/FrameLoader.cpp:
3455         (WebCore::FrameLoader::begin):
3456         (WebCore::FrameLoader::shouldUsePlugin):
3457         * loader/FrameLoaderClient.h:
3458         (WebCore::FrameLoaderClient::shouldUsePluginDocument):
3459
3460 2009-01-06  Dean Jackson  <dino@apple.com>
3461
3462         Reviewed by Dave Hyatt.
3463
3464         Extend Media Queries to cover transitions,
3465         animations, transform-2d and transform-3d
3466         http://webkit.org/specs/MediaQueriesExtensions.html
3467         Note that the implementation uses -webkit- prefixes
3468         even though the spec doesn't have them.
3469         https://bugs.webkit.org/show_bug.cgi?id=22494
3470
3471         Tests: fast/media/mq-animation.html
3472                fast/media/mq-transform-01.html
3473                fast/media/mq-transform-02.html
3474                fast/media/mq-transform-03.html
3475                fast/media/mq-transform-04.html
3476                fast/media/mq-transition.html
3477
3478         * css/MediaFeatureNames.h:
3479         * css/MediaQueryEvaluator.cpp:
3480         (WebCore::animationMediaFeatureEval):
3481         (WebCore::transitionMediaFeatureEval):
3482         (WebCore::transform_2dMediaFeatureEval):
3483         (WebCore::transform_3dMediaFeatureEval):
3484
3485 2009-01-06  Eric Seidel  <eric@webkit.org>
3486
3487         Reviewed by Oliver Hunt.
3488
3489         Bring the Chromium-WebCore build closer to building
3490         by upstreaming PlatformWidget.h add adding the JSC
3491         plugin bridge files to the build.
3492
3493         * WebCore.scons:
3494         * platform/chromium/PlatformWidget.h: Added.
3495
3496 2009-01-06  Eric Seidel  <eric@webkit.org>
3497
3498         Build fix only, no review.
3499
3500         Bring the Chromium-WebCore build back closer to building
3501         by adding files from recent commits.
3502
3503         * WebCore.scons:
3504
3505 2009-01-06  Alexey Proskuryakov  <ap@webkit.org>
3506
3507         Reviewed by Darin Adler.
3508
3509         <rdar://problem/6474973> REGRESSION: PLT ~2% slower due to 39465 (consolidate thread data)
3510
3511         I could not reproduce the slowdown on my PowerPC test machine, but the change should bring
3512         performance back.
3513
3514         * platform/ThreadGlobalData.cpp: (WebCore::threadGlobalData): Don't use AtomicallyInitializedStatic.
3515         Prior to r39465, it was only used for cached converters, which was necessary because the
3516         first access to ICU or TEC one could happen on a secondary thread, but now they are all
3517         initialized from ThreadGlobalData constructor.
3518
3519 2009-01-06  David Smith  <catfish.man@gmail.com>
3520
3521         Reviewed by Darin Adler.
3522         
3523         https://bugs.webkit.org/show_bug.cgi?id=23129
3524         Devirtualize Node::childNodes().
3525
3526 2009-01-06  Simon Hausmann  <simon.hausmann@nokia.com>
3527
3528         Unreviewed build fix.
3529
3530         Fix the Qt build with Qt 4.4.x, the HTTP-only cookie support was
3531         added in Qt 4.5.
3532
3533         * platform/qt/CookieJarQt.cpp:
3534         (WebCore::setCookies):
3535         (WebCore::cookies):
3536
3537 2009-01-06  Zalan Bujtas  <zbujtas@gmail.com>
3538
3539         Reviewed by David Kilzer.
3540
3541         https://bugs.webkit.org/show_bug.cgi?id=23133
3542         Fix SVG disabled build. Move 'pointer-events' from SVGCSSPropertyNames.in to
3543         CSSPropertyNames.in and move PointerEvents functions out of #if ENABLE(SVG)
3544
3545         NOTE: Property name fixes landed as part of r39648.
3546
3547         * css/CSSPrimitiveValueMappings.h:
3548         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
3549         (WebCore::CSSPrimitiveValue::operator EPointerEvents):
3550         * css/CSSPropertyNames.in:
3551         * css/SVGCSSPropertyNames.in:
3552
3553 2009-01-06  David Kilzer  <ddkilzer@apple.com>
3554
3555         BUILD FIX (r39634): Fix build for non-SVG builds (Wx)
3556
3557         * css/CSSPropertyNames.in: Added 'pointer-events'.
3558         * css/SVGCSSPropertyNames.in: Commented out pointer-events
3559         since it's now a plain CSS property.
3560
3561 2009-01-06  Simon Hausmann  <simon.hausmann@nokia.com>
3562
3563         Reviewed by Lars Knoll.
3564
3565         Added support for HTTP-only cookies to the Qt build.
3566
3567         * platform/qt/CookieJarQt.cpp:
3568         (WebCore::setCookies): Don't set HTTP-only cookies through the DOM.
3569         (WebCore::cookies): Don't return HTTP-only cookies to the DOM.
3570
3571 2009-01-05  David Smith  <catfish.man@gmail.com>
3572
3573         Reviewed by Oliver Hunt.
3574
3575         https://bugs.webkit.org/show_bug.cgi?id=23084
3576         Avoid redundant AtomicString conversions
3577
3578         * dom/Node.cpp: Create an AtomicString early to avoid converting twice
3579         (WebCore::Node::getElementsByTagNameNS):
3580         * dom/QualifiedName.h: Use the appropriate AtomicString constructor instead of converting from a String
3581
3582 2009-01-05  Simon Fraser  <simon.fraser@apple.com>
3583
3584         Reviewed by Dave Hyatt
3585
3586         https://bugs.webkit.org/show_bug.cgi?id=22985
3587         
3588         Add an assertion that clip rects are being used when painting with the same
3589         rootLayer that they were computed with.
3590         
3591         Fix two issues detected by the assertion:
3592