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