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