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