Reviewed by Alexey Proskuryakov.
[WebKit-https.git] / WebCore / ChangeLog
1 2009-09-10  Fumitoshi Ukai  <ukai@chromium.org>
2
3         Reviewed by Alexey Proskuryakov.
4
5         WebSocket API implementation.
6         https://bugs.webkit.org/show_bug.cgi?id=28038
7         
8         Add build systems for GNUmakefile.am, WebCore.xcodeproj and
9         WebCore.vcproj.
10         Add websockets directory and WebSocket.idl in qt build system.
11         Tests will be landed once the code is completed and functional.
12
13         * DerivedSources.cpp:
14         * GNUmakefile.am:
15         * WebCore.pro:
16         * WebCore.vcproj/WebCore.vcproj:
17         * WebCore.vcproj/WebCoreCommon.vsprops:
18         * WebCore.xcodeproj/project.pbxproj:
19         * bindings/js/JSDOMWindowCustom.cpp:
20         (WebCore::JSDOMWindow::webSocket):
21         * bindings/js/JSEventTarget.cpp:
22         (WebCore::toJS):
23         (WebCore::toEventTarget):
24         * dom/EventTarget.cpp:
25         (WebCore::EventTarget::toWebSocket):
26         * dom/EventTarget.h:
27         * page/DOMWindow.idl:
28         * websockets/WebSocket.cpp:
29         (WebCore::ProcessWebSocketEventTask::create):
30         (WebCore::ProcessWebSocketEventTask::performTask):
31         (WebCore::ProcessWebSocketEventTask::ProcessWebSocketEventTask):
32         (WebCore::isValidProtocolString):
33         (WebCore::WebSocket::connect):
34         (WebCore::WebSocket::send):
35         (WebCore::WebSocket::close):
36         (WebCore::WebSocket::bufferedAmount):
37         (WebCore::WebSocket::addEventListener):
38         (WebCore::WebSocket::removeEventListener):
39         (WebCore::WebSocket::dispatchEvent):
40         (WebCore::WebSocket::didConnect):
41         (WebCore::WebSocket::didReceiveMessage):
42         (WebCore::WebSocket::didClose):
43         (WebCore::WebSocket::dispatchOpenEvent):
44         (WebCore::WebSocket::dispatchMessageEvent):
45         (WebCore::WebSocket::dispatchCloseEvent):
46         * websockets/WebSocket.h:
47         (WebCore::WebSocket::create):
48         (WebCore::WebSocket::):
49         (WebCore::WebSocket::setOnopen):
50         (WebCore::WebSocket::onopen):
51         (WebCore::WebSocket::setOnmessage):
52         (WebCore::WebSocket::onmessage):
53         (WebCore::WebSocket::setOnclose):
54         (WebCore::WebSocket::onclose):
55         (WebCore::WebSocket::toWebSocket):
56         (WebCore::WebSocket::eventListeners):
57         (WebCore::WebSocket::refEventTarget):
58         (WebCore::WebSocket::derefEventTarget):
59         * websockets/WebSocketChannel.cpp: Added.
60         * websockets/WebSocketChannel.h: Added.
61         * websockets/WebSocketChannelClient.h: Added.
62         * websockets/WebSocketHandshake.cpp: Added.
63         * websockets/WebSocketHandshake.h: Added.
64
65 2009-09-10  Albert J. Wong  <ajwong@chromium.org>
66
67         No review, windows build fix only.
68         
69         Spurious semicolon causing parse error in chromium build on windows.
70
71         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
72         (WebCore::MediaPlayerPrivate::buffered):
73
74 2009-09-10  Albert J. Wong  <ajwong@chromium.org>
75
76         No review, build fix only.
77
78         Adding in a missed include from the last patch that is breaking the
79         chromium build.
80
81         * rendering/RenderThemeChromiumMac.mm: include TimeRanges.h
82
83 2009-09-10  Alpha Lam  <hclam@chromium.org>
84
85         Reviewed by Eric Carlson.
86
87         HTMLMediaElement buffered attribute should report a list of time ranges
88         https://bugs.webkit.org/show_bug.cgi?id=29041
89
90         Changed MediaPlayerPrivateInterface and MediaPlayer's definition to
91         report a list of buffered time ranges as WebCore::TimeRanges. This
92         change also got rid of the maxTimeBuffered() method.
93
94         No new tests since this is a API change.
95
96         * html/HTMLMediaElement.cpp:
97         (WebCore::HTMLMediaElement::percentLoaded):
98         Use MediaPlaier::buffered() instead of maxTimeBuffered().
99         (WebCore::HTMLMediaElement::buffered):
100         ditto.
101         * platform/graphics/MediaPlayer.cpp:
102         (WebCore::NullMediaPlayerPrivate::buffered):
103         Use MediaPlayerPrivateInterface::buffered() instead of maxTimeBuffered().
104         (WebCore::MediaPlayer::buffered):
105         ditto.
106         * platform/graphics/MediaPlayer.h:
107         Removed maxTimeBuffered() and defines PassRefPtr<TimeRanges> buffered().
108         * platform/graphics/MediaPlayerPrivate.h:
109         ditto.
110         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
111         Implements PassRefPtr<TimeRanges> buffered();
112         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h:
113         Removed maxTimeBuffered() and defines PassRefPtr<TimeRanges> buffered().
114         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
115         Removed maxTimeBuffered() and defines PassRefPtr<TimeRanges> buffered().
116         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
117         (WebCore::MediaPlayerPrivate::buffered):
118         Implementation of buffered().
119         * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
120         Implements PassRefPtr<TimeRanegs> buffered().
121         * platform/graphics/qt/MediaPlayerPrivatePhonon.h:
122         Removed maxTimeBuffered() and defines PassRefPtr<TimeRanges> buffered().
123         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
124         Implements PassRefPtr<TimeRanges> buffered().
125         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
126         Removed maxTimeBuffered() and defines PassRefPtr<TimeRanges> buffered().
127         * platform/graphics/wince/MediaPlayerPrivateWince.h:
128         ditto.
129         * rendering/RenderThemeChromiumMac.mm:
130         (WebCore::RenderThemeChromiumMac::paintMediaSliderTrack):
131         Use buffered() instead of maxTimeBuffered().
132         * rendering/RenderThemeChromiumSkia.cpp:
133         ditto.
134         * rendering/RenderThemeMac.mm:
135         (WebCore::RenderThemeMac::paintMediaSliderTrack):
136         ditto.
137
138 2009-09-10  Cameron McCormack  <cam@mcc.id.au>
139
140         Reviewed by Eric Seidel.
141
142         Make bindings generators more aware of IDL dependencies
143         https://bugs.webkit.org/show_bug.cgi?id=29114
144
145         Make the JS and ObjC bindings generators able to output dependency
146         rules for DerivedSources.make to consume.  These rules make a given
147         generated binding class file header, JSWhatever.h, depend on Whatever's
148         ancestor interfaces.
149
150         * DerivedSources.make: Pass --write-dependencies to generate-bindings.pl
151         when generating JS and ObjC bindings.  Include dependency fies that are
152         generated due to that.
153         * bindings/scripts/CodeGenerator.pm: Make
154         AddMethodsConstantsAndAttributesFromParentClasses accumulate a list of
155         the ancestor interfaces that were visited.
156         * bindings/scripts/CodeGeneratorJS.pm: Optionally write out a dependency
157         file.
158         * bindings/scripts/CodeGeneratorObjC.pm: Ditto.
159         * bindings/scripts/generate-bindings.pl: Add a --write-dependencies
160         option.
161
162 2009-09-10  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
163
164         Reviewed by Xan Lopez and Dan Winship.
165
166         Give all requests to libsoup, to let it queue, and schedule them
167         itself, instead of throttling the number of requests in WebCore.
168
169         * platform/network/ResourceRequestBase.cpp:
170         * platform/network/soup/ResourceRequestSoup.cpp:
171         (WebCore::initializeMaximumHTTPConnectionCountPerHost):
172
173 2009-09-10  Jian Li  <jianli@chromium.org>
174
175         Reviewed by Eric Seidel.
176
177         [V8] Make XMLHttpRequest.send handle File object.
178         https://bugs.webkit.org/show_bug.cgi?id=28924
179
180         Test: http/tests/local/send-dragged-file.html
181
182         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
183         (WebCore::CALLBACK_FUNC_DECL):
184
185 2009-09-10  Zoltan Horvath  <zoltan@webkit.org>
186
187         Reviewed by Darin Adler.
188
189         Use fastNew and fastDelete instead of operator new and delete for CSSSelector class. 
190         https://bugs.webkit.org/show_bug.cgi?id=25930
191
192         Change using of operator new to fastNew and operator delete to
193         fastDeleteSkippingDestructor for CSSSelector class to avoid mismatched function call.
194
195         This change fixes valgrind's 'mismatched free' notification.
196
197         * css/CSSParser.cpp:
198         (WebCore::CSSParser::~CSSParser):
199         (WebCore::CSSParser::createFloatingSelector):
200         * css/CSSSelectorList.cpp:
201         (WebCore::CSSSelectorList::adoptSelectorVector):
202
203 2009-09-10  Steve Block  <steveblock@google.com>
204
205         Reviewed by Darin Adler.
206
207         Geolocation does not correctly handle reentrant calls from callbacks.
208         https://bugs.webkit.org/show_bug.cgi?id=29040
209
210         Tests: fast/dom/Geolocation/reentrant-error.html
211                fast/dom/Geolocation/reentrant-success.html
212
213         * page/Geolocation.cpp: Modified.
214         (WebCore::Geolocation::handleError): Modified. Call sendError directly, clearing notifier lists before making callback.
215         (WebCore::Geolocation::makeSuccessCallbacks): Modified. Call sendPosition directly, clearing notifier lists before making callback.
216         * page/Geolocation.h: Modified. Deleted sendErrorToXX and sendPositionToXXX methods.
217
218 2009-09-10  Erik Arvidsson  <arv@chromium.org>
219
220         Reviewed by Eric Seidel.
221
222         Fixes issue where focused elements did not get blur and focus events when the window was blurred and focused.
223         https://bugs.webkit.org/show_bug.cgi?id=27105
224
225         Test: fast/events/blur-focus-window-should-blur-focus-element.html
226
227         * page/FocusController.cpp:
228         (WebCore::dispatchEventsOnWindowAndFocusedNode):
229         (WebCore::FocusController::setFocused):
230         (WebCore::FocusController::setActive):
231
232 2009-09-10  Adam Roben  <aroben@apple.com>
233
234         Make the play/pause button in <video> controls indicate the button's
235         action, not the movie state
236
237         This matches the Mac behavior, iTunes, and many other media players.
238
239         No test possible.
240
241         Fixes <http://webkit.org/b/29126> Play/pause button in <video>
242         controls shows the wrong image
243
244         Reviewed by Eric Carlson.
245
246         * rendering/RenderMediaControls.cpp:
247         (WebCore::RenderMediaControls::paintMediaControlsPart): Reversed when
248         we show the play vs. pause artwork, so that the button reflects what
249         will happen when you click it, rather than the current state of the
250         movie.
251
252 2009-09-09  Steve Block  <steveblock@google.com>
253
254         Reviewed by Maciej Stachowiak.
255
256         Geolocation Coordinates::toString() prints bogus values for unspecified properties.
257         https://bugs.webkit.org/show_bug.cgi?id=29080
258
259         Test: fast/dom/Geolocation/position-string.html
260
261         * GNUmakefile.am: Modified. Removes Geoposition.cpp and Coordinates.cpp.
262         * WebCore.gypi: Modified. Removes Geoposition.cpp and Coordinates.cpp.
263         * WebCore.pro: Modified. Removes Geoposition.cpp and Coordinates.cpp.
264         * WebCore.vcproj/WebCore.vcproj: Modified. Removes Geoposition.cpp and Coordinates.cpp.
265         * WebCore.xcodeproj/project.pbxproj: Modified. Removes Geoposition.cpp and Coordinates.cpp.
266         * WebCoreSources.bkl: Modified. Removes Geoposition.cpp and Coordinates.cpp.
267         * page/Coordinates.cpp: Removed.
268         * page/Coordinates.h: Modified. Removes toString method.
269         * page/Coordinates.idl: Modified. Removes toString method.
270         * page/Geoposition.cpp: Removed.
271         * page/Geoposition.h: Modified. Removes toString method.
272         * page/Geoposition.idl: Modified. Removes toString method.
273
274 2009-09-09  Steve Block  <steveblock@google.com>
275
276         Reviewed by Adam Barth.
277
278         Correctly applies the Geolocation timeout property.
279         https://bugs.webkit.org/show_bug.cgi?id=27256
280
281         If a timeout is specified, the timer is started as soon as the location acquistion process starts.
282         If a position fix is not obtained within the timeout interval, the position request is cancelled
283         and the error callback (if specified) is invoked. If a position fix is obtained within the timeout
284         interval, the timer is stopped. Permissions are then requested from the user if required. See
285         http://www.w3.org/TR/geolocation-API/#position-options.
286
287         Note that this logic means that the time required to obtain permissions from the user is not
288         included in the timeout interval.
289
290         Tests: fast/dom/Geolocation/timeout.html
291                fast/dom/Geolocation/timeout-zero.html
292
293         * page/Geolocation.cpp: Modified.
294         (WebCore::Geolocation::GeoNotifier::GeoNotifier): Modified. Takes Geolocation object as parameter.
295         (WebCore::Geolocation::GeoNotifier::hasZeroTimeout): Added. Determines whether this request has a zero timeout.
296         (WebCore::Geolocation::GeoNotifier::startTimerIfNeeded): Renamed from startTimer. Starts the timer if a timeout was specified.
297         (WebCore::Geolocation::GeoNotifier::timerFired): Modified. Calls the error callback if specified, and reports the timeout to the Geolocation object.
298         (WebCore::Geolocation::getCurrentPosition): Modified. Calls maybeStartTimer when starting the location acquisition process.
299         (WebCore::Geolocation::watchPosition): Modified. Calls maybeStartTimer when starting the location acquisition process.
300         (WebCore::Geolocation::requestTimedOut): Added. Cancels a request when it times out.
301         (WebCore::Geolocation::setIsAllowed): Modified. No longer starts timers.
302         (WebCore::Geolocation::sendPosition): Modified. No longer stops timers.
303         (WebCore::Geolocation::stopTimer): Added. Stops the timers for a vector of notifiers.
304         (WebCore::Geolocation::stopTimersForOneShots): Added. Stops the timers for all one-shots.
305         (WebCore::Geolocation::stopTimersForWatchers): Added. Stops the timers for all watchers.
306         (WebCore::Geolocation::stopTimers): Added. Stops the timers for all requests.
307         (WebCore::Geolocation::geolocationServicePositionChanged): Modfified. Stops the timers for all requests.
308         * page/Geolocation.h: Modified.
309         (WebCore::Geolocation::GeoNotifier::create): Modified. Takes Geolocation object as parameter.
310
311 2009-09-09  Chris Fleizach  <cfleizach@apple.com>
312
313         AX notifications should be an ENUM type instead of strings
314         https://bugs.webkit.org/show_bug.cgi?id=28963
315
316         Build fix for Qt.
317
318         * accessibility/AXObjectCache.h:
319         (WebCore::AXObjectCache::postNotification):
320         (WebCore::AXObjectCache::postPlatformNotification):
321
322 2009-09-08  Chris Fleizach  <cfleizach@apple.com>
323
324         Reviewed by Darin Adler.
325
326         AX notifications should be an ENUM type instead of strings
327         https://bugs.webkit.org/show_bug.cgi?id=28963
328
329         Moves AX notifications over to an ENUM type instead of
330         using the actual string values that are used on OS X.
331
332         * accessibility/AXObjectCache.cpp:
333         (WebCore::AXObjectCache::postNotification):
334         (WebCore::AXObjectCache::selectedChildrenChanged):
335         * accessibility/AXObjectCache.h:
336         (WebCore::AXObjectCache::):
337         * accessibility/AccessibilityRenderObject.cpp:
338         (WebCore::AccessibilityRenderObject::handleActiveDescendantChanged):
339         * accessibility/chromium/AXObjectCacheChromium.cpp:
340         (WebCore::AXObjectCache::postPlatformNotification):
341         * accessibility/gtk/AXObjectCacheAtk.cpp:
342         (WebCore::AXObjectCache::postPlatformNotification):
343         * accessibility/mac/AXObjectCacheMac.mm:
344         (WebCore::AXObjectCache::postPlatformNotification):
345         * accessibility/win/AXObjectCacheWin.cpp:
346         (WebCore::AXObjectCache::postPlatformNotification):
347         * dom/Document.cpp:
348         (WebCore::Document::implicitClose):
349         * dom/Element.cpp:
350         (WebCore::Element::updateAfterAttributeChanged):
351         * editing/Editor.cpp:
352         (WebCore::Editor::respondToChangedContents):
353         * editing/mac/SelectionControllerMac.mm:
354         (WebCore::SelectionController::notifyAccessibilityForSelectionChange):
355         * html/HTMLInputElement.cpp:
356         (WebCore::HTMLInputElement::setChecked):
357         * page/FrameView.cpp:
358         (WebCore::FrameView::layout):
359         * rendering/RenderTextControl.cpp:
360         (WebCore::RenderTextControl::setInnerTextValue):
361
362 2009-09-08  Adam Barth  <abarth@webkit.org>
363
364         Reviewed by Eric Seidel.
365
366         Missing checkout for getSVGDocument()
367         https://bugs.webkit.org/show_bug.cgi?id=29064
368
369         The V8 code generator didn't understand SVGCheckSecurityDocument.
370
371         Tests: http/tests/security/xss-DENIED-getSVGDocument-iframe.html
372                http/tests/security/xss-DENIED-getSVGDocument-object.html
373
374         * bindings/scripts/CodeGeneratorV8.pm:
375
376 2009-09-09  Cameron McCormack  <cam@mcc.id.au>
377
378         Reviewed by Eric Seidel.
379
380         Make SVGStyleElement inherit from SVGLangSpace
381         https://bugs.webkit.org/show_bug.cgi?id=29058
382
383         Required by SVG 1.1 Second Edition:
384         http://dev.w3.org/SVG/profiles/1.1F2/publish/styling.html#InterfaceSVGStyleElement
385
386         Test: svg/dom/SVGStyleElement/style-langspace.html
387
388         * svg/SVGStyleElement.cpp: Drop methods xmlspace and setXmlspace.
389         (WebCore::SVGStyleElement::SVGStyleElement): Add SVGLangSpace()
390         initializer.
391         (WebCore::SVGStyleElement::parseMappedAttribute): Call
392         parseMappedAttribute on SVGLangSpace.
393         * svg/SVGStyleElement.h: Drop xmlspace and setXmlspace declarations.
394         * svg/SVGStyleElement.idl: Drop xmlspace attribute and add SVGLangSpace
395         as a superinterface.
396
397 2009-09-09  Nate Chapin  <japhet@chromium.org>
398
399         Reviewed by David Levin.
400
401         Remove unnecessary includes and forward declarations in V8Proxy.h
402
403         https://bugs.webkit.org/show_bug.cgi?id=29111
404
405         * bindings/v8/V8Proxy.h:
406
407 2009-07-30  Eric Seidel  <eric@webkit.org>
408
409         Reviewed by Adam Barth.
410
411         Add more position constructors
412         positionBeforeNode, positionAfterNode
413         firstPositionInNode, lastPositionInNode
414         https://bugs.webkit.org/show_bug.cgi?id=25494
415
416         I also added a lastOffsetInNode and deployed it to a couple places.
417
418         There are no callers to these new constructors yet, but those
419         will be coming in future patches.
420
421         * dom/Position.cpp:
422         (WebCore::Position::computeOffsetInContainerNode):
423         * dom/Position.h:
424         (WebCore::positionBeforeNode):
425         (WebCore::positionAfterNode):
426         (WebCore::lastOffsetInNode):
427         (WebCore::firstPositionInNode):
428         (WebCore::lastPositionInNode):
429         * editing/ApplyStyleCommand.cpp:
430         * editing/TextIterator.cpp:
431         (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
432         * editing/htmlediting.cpp:
433         (WebCore::lastOffsetForEditing):
434
435 2009-04-30  Eric Seidel  <eric@webkit.org>
436
437         Reviewed by Adam Barth.
438
439         Rename positionBeforeNode to positionInParentBeforeNode
440         and positionAfterNode to positionInParentAfterNode
441         in preparation for adding a positionBeforeNode
442         which returns a neighbor-anchored position.
443         https://bugs.webkit.org/show_bug.cgi?id=25494
444
445         No functional changes, thus no tests.
446
447         * dom/PositionConstructors.h:
448         (WebCore::positionInParentBeforeNode):
449         (WebCore::positionInParentAfterNode):
450         * dom/PositionIterator.cpp:
451         (WebCore::PositionIterator::operator Position):
452         * editing/ApplyStyleCommand.cpp:
453         (WebCore::ApplyStyleCommand::applyInlineStyle):
454         * editing/CompositeEditCommand.cpp:
455         (WebCore::CompositeEditCommand::positionOutsideTabSpan):
456         (WebCore::CompositeEditCommand::breakOutOfEmptyMailBlockquotedParagraph):
457         (WebCore::CompositeEditCommand::positionAvoidingSpecialElementBoundary):
458         * editing/CreateLinkCommand.cpp:
459         (WebCore::CreateLinkCommand::doApply):
460         * editing/DeleteButtonController.cpp:
461         (WebCore::DeleteButtonController::deleteTarget):
462         * editing/DeleteSelectionCommand.cpp:
463         (WebCore::DeleteSelectionCommand::initializeStartEnd):
464         (WebCore::updatePositionForNodeRemoval):
465         * editing/InsertLineBreakCommand.cpp:
466         (WebCore::InsertLineBreakCommand::doApply):
467         * editing/InsertListCommand.cpp:
468         (WebCore::InsertListCommand::doApply):
469         * editing/InsertParagraphSeparatorCommand.cpp:
470         (WebCore::InsertParagraphSeparatorCommand::doApply):
471         * editing/InsertTextCommand.cpp:
472         (WebCore::InsertTextCommand::input):
473         * editing/ReplaceSelectionCommand.cpp:
474         (WebCore::ReplaceSelectionCommand::positionAtStartOfInsertedContent):
475         (WebCore::ReplaceSelectionCommand::doApply):
476         * editing/VisibleSelection.cpp:
477         (WebCore::VisibleSelection::adjustSelectionToAvoidCrossingEditingBoundaries):
478         * editing/htmlediting.cpp:
479         (WebCore::firstEditablePositionAfterPositionInRoot):
480         (WebCore::lastEditablePositionBeforePositionInRoot):
481         (WebCore::rangeCompliantEquivalent):
482         (WebCore::positionBeforeContainingSpecialElement):
483         (WebCore::positionAfterContainingSpecialElement):
484         (WebCore::positionBeforeTabSpan):
485
486 2009-04-30  Eric Seidel  <eric@webkit.org>
487
488         Reviewed by Adam Barth.
489
490         Re-organize position creation functions in preparation for adding more
491         https://bugs.webkit.org/show_bug.cgi?id=25494
492
493         Make position functions inline to avoid ref-churn.
494         Remove startPosition/endPosition as they were only used in one place.
495
496         No functional changes, thus no tests.
497
498         * dom/Position.cpp:
499         * dom/Position.h:
500         (WebCore::positionBeforeNode):
501         (WebCore::positionAfterNode):
502         * editing/SelectionController.cpp:
503         (WebCore::SelectionController::moveTo):
504         * editing/TypingCommand.cpp:
505         * editing/htmlediting.cpp:
506         * editing/htmlediting.h:
507         (WebCore::firstDeepEditingPositionForNode):
508         (WebCore::lastDeepEditingPositionForNode):
509         * rendering/RenderObject.cpp:
510
511 2009-09-09  Kevin Watters  <kevinwatters@gmail.com>
512
513         Reviewed by Kevin Ollivier.
514         
515         [wx] Add wxSize conversions for IntSize.
516         https://bugs.webkit.org/show_bug.cgi?id=29104
517
518         * platform/graphics/IntSize.h:
519         * platform/graphics/wx/IntSizeWx.cpp: Added.
520         (WebCore::IntSize::IntSize):
521         (WebCore::IntSize::operator wxSize):
522
523 2009-09-09  Yaar Schnitman  <yaar@chromium.org>
524
525         Reviewed by David Levin.
526         
527         Chromium uses its own config.h file that was forked from webkit's config.h.
528         By merging in Chromium's defines, Chromium would again be able to use webkit's
529         config.h.
530
531         https://bugs.webkit.org/show_bug.cgi?id=28882 
532
533         * config.h: Added chromium-specific defines. 
534
535 2009-09-09  Jens Alfke  <snej@chromium.org>
536
537         Reviewed by Eric Seidel.
538
539         Initialize DataTransfer's effectAllowed and dropEffect properties correctly
540         according to HTML5 spec (sec. 7.9.2-7.9.3).
541         https://bugs.webkit.org/show_bug.cgi?id=26700
542         - At the start of a drag operation, the value of effectAllowed should be
543           the string "uninitialized".
544         - At end of dragstart handler, if effectAllowed hasn't been set yet, it
545           should be set to "copy".
546         - on dragenter and dragover event, dropEffect should be initialized to a
547           default value based on the value of effectAllowed.
548         - at end of dragenter and dragover the dropEffect should be set to "none"
549           if the value set by the handler doesn't match the effectAllowed.
550         - on dragleave event, dropEffect should be "none".
551         - on drop event, dropEffect should be the previously negotiated value.
552
553         Test: fast/events/drag-dropeffect.html
554
555         * WebCore.base.exp:
556             Added a parameter to EventHandler::dragSourceMovedTo.
557         * dom/Clipboard.cpp:
558         (WebCore::Clipboard::Clipboard):
559             Initialize m_effectAllowed to "uninitialized".
560         (WebCore::Clipboard::sourceOperation):
561             Treat "uninitialized" as meaning no value has been set.
562         * page/DragController.cpp:
563         (WebCore::DragController::DragController):
564             Initialize new member m_destinationDragOperation.
565         (WebCore::DragController::dragExited):
566             Set m_destinationDragOperation to none on dragExit.
567         (WebCore::DragController::performDrag):
568             Set m_destinationDragOperation to current dropEffect.
569         (WebCore::DragController::dragEnteredOrUpdated):
570             Make sure to clear the operation if drag source doesn't allow it.
571         (WebCore::DragController::tryDHTMLDrag):
572             Set a default value for the dst drag op before sending dragEnter/Over.
573         (WebCore::DragController::startDrag):
574             Clear m_destinationDragOperation at start of drag.
575         * page/DragController.h:
576         (WebCore::DragController::destinationDragOperation):
577             Added new member m_destinationDragOperation, and its public getter.
578         * page/EventHandler.cpp:
579         (WebCore::EventHandler::updateDragAndDrop):
580             dropEffect should be 'none' during dropleave handler, per spec.
581         (WebCore::EventHandler::dragSourceMovedTo):
582             Added DragOperation parameter, so the handler sees the current dropEffect.
583         (WebCore::EventHandler::handleDrag):
584             Assume DragOperationEvery for non-DHTML drags.
585         * page/EventHandler.h:
586             Added DragOperation parameter to dragSourceMovedTo().
587
588 2009-09-09  Dumitru Daniliuc  <dumi@chromium.org>
589
590         Reviewed by Dimitri Glazkov.
591
592         1. Adding support/bindings for read-only transactions.
593         2. Disallowing the SQLITE_*_VIEW and REINDEX operations in the
594         private browsing mode.
595         3. Adding an authorizer test.
596
597         https://bugs.webkit.org/show_bug.cgi?id=28918
598
599         Test: storage/test-authorizer.html
600
601         * bindings/js/JSDatabaseCustom.cpp:
602         (WebCore::createTransaction): Parses all arguments and executes a
603         transaction.
604         (WebCore::JSDatabase::transaction): Refactored to use
605         createTransaction().
606         (WebCore::JSDatabase::readTransaction): Added to execute read-only
607         transactions using createTransaction().
608         * bindings/v8/custom/V8CustomBinding.h: Added the binding for
609         Database::readTransaction().
610         * bindings/v8/custom/V8DatabaseCustom.cpp:
611         (WebCore::createTransaction): Parses all arguments and executes a
612         transaction.
613         (WebCore::transaction): Refactored to use createTransaction().
614         (WebCore::readTransaction): Added to execute read-only
615         transactions using createTransaction().
616         * storage/Database.cpp:
617         (WebCore::Database::transaction): Added support for read-only
618         transactions.
619         * storage/Database.h: Added support for read-only transactions.
620         * storage/Database.idl: Added support for read-only transactions.
621         * storage/DatabaseAuthorizer.cpp:
622         (WebCore::DatabaseAuthorizer::createTempTable): Make it obvious
623         that the statement will be denied in private browsing mode and
624         read-only transactions.
625         (WebCore::DatabaseAuthorizer::dropTempTable): Same.
626         (WebCore::DatabaseAuthorizer::createTempIndex): Same.
627         (WebCore::DatabaseAuthorizer::dropTempIndex): Same.
628         (WebCore::DatabaseAuthorizer::createTempTrigger): Same.
629         (WebCore::DatabaseAuthorizer::dropTempTrigger): Same.
630         (WebCore::DatabaseAuthorizer::createView): Deny in private
631         browsing mode and read-only transactions.
632         (WebCore::DatabaseAuthorizer::createTempView): Same.
633         (WebCore::DatabaseAuthorizer::dropView): Same.
634         (WebCore::DatabaseAuthorizer::dropTempView): Same.
635         (WebCore::DatabaseAuthorizer::allowReindex): Same.
636         * storage/DatabaseAuthorizer.h:
637         * storage/SQLTransaction.cpp: Added support for read-only
638         transactions.
639         (WebCore::SQLTransaction::create):
640         (WebCore::SQLTransaction::SQLTransaction):
641         (WebCore::SQLTransaction::executeSQL):
642         (WebCore::SQLTransaction::acquireLock):
643         * storage/SQLTransaction.h:
644         * storage/SQLTransactionCoordinator.cpp:
645         (WebCore::SQLTransactionCoordinator::acquireLock): Added a new
646         parameter in preparation for a change that will allow multiple
647         read-only transactions on the same DB to run concurrently.
648         * storage/SQLTransactionCoordinator.h:
649
650 2009-09-09  Dave Hyatt  <hyatt@apple.com>
651
652         Reviewed by Adam Roben.
653
654         https://bugs.webkit.org/show_bug.cgi?id=29102, add support for user stylesheet injection.  This is similar
655         to user script injection but allows for user stylesheets to be added.  The stylesheets are applied immediately
656         to all Frames in the PageGroup.
657
658         Added userscripts/simple-stylesheet.html test case.
659
660         * WebCore.base.exp:
661         * WebCore.gypi:
662         * WebCore.vcproj/WebCore.vcproj:
663         * WebCore.xcodeproj/project.pbxproj:
664         * css/CSSStyleSelector.cpp:
665         (WebCore::CSSStyleSelector::CSSStyleSelector):
666         * css/CSSStyleSelector.h:
667         * dom/Document.cpp:
668         (WebCore::Document::Document):
669         (WebCore::Document::attach):
670         (WebCore::Document::pageGroupUserSheets):
671         (WebCore::Document::clearPageGroupUserSheets):
672         (WebCore::Document::recalcStyleSelector):
673         * dom/Document.h:
674         * loader/PlaceholderDocument.cpp:
675         (WebCore::PlaceholderDocument::attach):
676         * page/PageGroup.cpp:
677         (WebCore::PageGroup::addUserStyleSheet):
678         (WebCore::PageGroup::removeUserContentForWorld):
679         (WebCore::PageGroup::removeAllUserContent):
680         * page/PageGroup.h:
681         (WebCore::PageGroup::userStyleSheets):
682         * page/UserStyleSheet.h: Added.
683         (WebCore::UserStyleSheet::UserStyleSheet):
684         (WebCore::UserStyleSheet::source):
685         (WebCore::UserStyleSheet::url):
686         (WebCore::UserStyleSheet::patterns):
687         (WebCore::UserStyleSheet::worldID):
688         * page/UserStyleSheetTypes.h: Added.
689
690 2009-09-09  Carol Szabo  <carol.szabo@nokia.com>
691
692         Reviewed by Ariya Hidayat.
693
694         [Qt] CSS Style -webkit-box-shadow is not rendered correctly on
695         Qt platform
696         https://bugs.webkit.org/show_bug.cgi?id=23291
697
698         * platform/graphics/qt/GraphicsContextQt.cpp:
699         (WebCore::GraphicsContext::drawRect):
700         (WebCore::GraphicsContext::strokeArc):
701         (WebCore::GraphicsContext::drawConvexPolygon):
702         (WebCore::GraphicsContext::fillPath):
703         (WebCore::GraphicsContext::strokePath):
704         (WebCore::GraphicsContext::fillRect):
705         (WebCore::GraphicsContext::fillRoundedRect):
706          Added the ability to draw shadows for all these curves.
707
708 2009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>
709
710         Reviewed by Simon Hausmann.
711
712         Add the qwebgraphicsitem.cpp to the build system.
713
714         https://bugs.webkit.org/show_bug.cgi?id=28862
715
716         * WebCore.pro:
717
718 2009-09-09  Kevin Watters  <kevinwatters@gmail.com>
719
720         Reviewed by Kevin Ollivier.
721
722         [wx port] Move functions in TemporaryLinkStubs.cpp out to files where
723         they belong.
724
725         https://bugs.webkit.org/show_bug.cgi?id=29088
726
727         * editing/wx/EditorWx.cpp:
728         (WebCore::Editor::showColorPanel):
729         (WebCore::Editor::showFontPanel):
730         (WebCore::Editor::showStylesPanel):
731         * platform/graphics/wx/GraphicsContextWx.cpp:
732         (WebCore::GraphicsContext::setPlatformShadow):
733         (WebCore::GraphicsContext::clearPlatformShadow):
734         (WebCore::GraphicsContext::beginTransparencyLayer):
735         (WebCore::GraphicsContext::endTransparencyLayer):
736         (WebCore::GraphicsContext::clearRect):
737         (WebCore::GraphicsContext::strokeRect):
738         (WebCore::GraphicsContext::setLineCap):
739         (WebCore::GraphicsContext::setLineJoin):
740         (WebCore::GraphicsContext::setMiterLimit):
741         (WebCore::GraphicsContext::setAlpha):
742         (WebCore::GraphicsContext::addInnerRoundedRectClip):
743         * platform/graphics/wx/IconWx.cpp: Added.
744         (WebCore::Icon::~Icon):
745         (WebCore::Icon::createIconForFile):
746         (WebCore::Icon::createIconForFiles):
747         (WebCore::Icon::paint):
748         * platform/graphics/wx/ImageWx.cpp:
749         (WebCore::Image::loadPlatformResource):
750         (WebCore::Image::drawPattern):
751         * platform/wx/CursorWx.cpp:
752         (WebCore::moveCursor):
753         * platform/wx/FileChooserWx.cpp: Added.
754         (WebCore::FileChooser::basenameForWidth):
755         * platform/wx/KURLWx.cpp: Added.
756         (WebCore::KURL::fileSystemPath):
757         * platform/wx/SSLKeyGeneratorWx.cpp: Added.
758         (WebCore::getSupportedKeySizes):
759         (WebCore::signedPublicKeyAndChallengeString):
760         * platform/wx/SearchPopupMenuWx.cpp: Added.
761         (WebCore::SearchPopupMenu::SearchPopupMenu):
762         (WebCore::SearchPopupMenu::saveRecentSearches):
763         (WebCore::SearchPopupMenu::loadRecentSearches):
764         (WebCore::SearchPopupMenu::enabled):
765         * platform/wx/SharedBufferWx.cpp: Added.
766         (WebCore::SharedBuffer::createWithContentsOfFile):
767         * platform/wx/SystemTimeWx.cpp: Added.
768         (WebCore::userIdleTime):
769         * platform/wx/TemporaryLinkStubs.cpp: Removed.
770         * platform/wx/TextBreakIteratorInternalICUWx.cpp: Added.
771         (WebCore::currentSearchLocaleID):
772         (WebCore::currentTextBreakLocaleID):
773         * platform/wx/WidgetWx.cpp:
774         (WebCore::Widget::setIsSelected):
775
776 2009-09-09  Steve Block  <steveblock@google.com>
777
778         Reviewed by Adam Barth.
779
780         Geolocation incorrectly calls error callback in case of exception in success callback.
781         https://bugs.webkit.org/show_bug.cgi?id=27255
782
783         Test: fast/dom/Geolocation/callback-exception.html
784
785         * bindings/js/JSCustomPositionCallback.cpp: Modified.
786         (WebCore::JSCustomPositionCallback::handleEvent): Modified. Removed raisedException out param.
787         * bindings/js/JSCustomPositionCallback.h: Modified. Removed raisedException out param from handleEvent method and made handleEvent private.
788         * bindings/js/JSCustomPositionErrorCallback.h: Modified. Made handleEvent private.
789         * page/Geolocation.cpp: Modified.
790         (WebCore::Geolocation::sendPosition): Modified. No longer call error callback in case of exception in success callback.
791         * page/PositionCallback.h: Modified. Removed raisedException out param from handleEvent method.
792
793 2009-09-09  Steve Block  <steveblock@google.com>
794
795         Reviewed by Darin Adler.
796
797         When Geolocation permission is denied, stops watches as well as one-shots.
798         https://bugs.webkit.org/show_bug.cgi?id=28305.
799
800         Tests: fast/dom/Geolocation/watch.html
801                fast/dom/Geolocation/permission-denied-stops-watches.html
802
803         * page/Geolocation.cpp: Modified.
804         (WebCore::Geolocation::setIsAllowed): Modified. Marks the permission error as fatal.
805         (WebCore::Geolocation::handleError): Modified. If the error is fatal, stops watchers as well as one-shots.
806         * page/PositionError.h: Modified.
807         (WebCore::PositionError::setIsFatal): Added. Marks an error as fatal.
808         (WebCore::PositionError::isFatal): Added. Determines whether an error is fatal.
809
810 2009-09-09  Roland Steiner  <rolandsteiner@google.com>
811
812         Reviewed by Eric Seidel.
813
814         Bug 28964 -  [Chromium] ChromiumDataObject should have getter/setter interface
815
816         Added getter/setter methods and trivial inline implementations for each.
817         (Note that they are not yet actually used.)
818         Once the Chromium code is changed to use them instead of directly accessing the
819         member variables, the member variables should be made private and cleaned up.
820
821         No new tests (no functional behavior changed).
822
823         * platform/chromium/ChromiumDataObject.h:
824         (WebCore::ChromiumDataObject::mainURL):
825         (WebCore::ChromiumDataObject::setMainURL):
826         (WebCore::ChromiumDataObject::mainURLTitle):
827         (WebCore::ChromiumDataObject::setMainURLTitle):
828         (WebCore::ChromiumDataObject::textPlain):
829         (WebCore::ChromiumDataObject::setTextPlain):
830         (WebCore::ChromiumDataObject::textHTML):
831         (WebCore::ChromiumDataObject::setTextHTML):
832         (WebCore::ChromiumDataObject::htmlBaseURL):
833         (WebCore::ChromiumDataObject::setHTMLBaseURL):
834         (WebCore::ChromiumDataObject::content):
835         (WebCore::ChromiumDataObject::releaseContent):
836         (WebCore::ChromiumDataObject::setContent):
837         (WebCore::ChromiumDataObject::contentFileExtension):
838         (WebCore::ChromiumDataObject::setContentFileExtension):
839         (WebCore::ChromiumDataObject::contentFileName):
840         (WebCore::ChromiumDataObject::setContentFileName):
841         (WebCore::ChromiumDataObject::fileNames):
842         (WebCore::ChromiumDataObject::setFileNames):
843         (WebCore::ChromiumDataObject::takeFileNames):
844
845 2009-09-08  Pat Bradley  <vincent.bradley@nokia.com>
846
847         Reviewed by Ariya Hidayat.
848
849         [Qt] locale date displays incorrect date format in symbian.
850         https://bugs.webkit.org/show_bug.cgi?id=29032
851
852         strftime() in Symbian does not support #
853         Layout tests cannot be run on Symbian yet, so they are not updated.
854
855         * runtime/DatePrototype.cpp:
856         (JSC::formatLocaleDate):
857
858 2009-09-09  Rohini Ananth <rohini.ananth@nokia.com>
859
860         Reviewed by Simon Hausmann.
861
862         NPAPI Plugin NPP_AsFile not working on Qt Webkit
863         https://bugs.webkit.org/show_bug.cgi?id=29068
864
865         * platform/qt/FileSystemQt.cpp:
866         (WebCore::openTemporaryFile)
867         Autoremove property of QTemporaryFile has been set to false. Hence closeFile() just closes and does not delete the file.
868         This solves the deletion of created temp file in PluginStream::destroyStream() before passing to plugin in NPP_AsFile.
869
870 2009-09-08  Oliver Hunt  <oliver@apple.com>
871
872         Reviewed by NOBODY (Build fix).
873
874         Remove a few incorrect changes I left in.
875
876         * bindings/scripts/CodeGeneratorJS.pm:
877
878 2009-09-08  Oliver Hunt  <oliver@apple.com>
879
880         Reviewed by Sam Weinig.
881
882         Support numeric index getters in bindings
883         https://bugs.webkit.org/show_bug.cgi?id=29067
884
885         Add HasNumericIndexGetter to indicate a non-custom getter that
886         returns a number.  The numeric index getter also uses PropertySlot's
887         setValue rather than setCustomIndex to avoid an additional indirect
888         call.
889
890         * bindings/js/JSCanvasByteArrayCustom.cpp:
891         * bindings/js/JSCanvasFloatArrayCustom.cpp:
892         * bindings/js/JSCanvasIntArrayCustom.cpp:
893         * bindings/js/JSCanvasShortArrayCustom.cpp:
894         * bindings/js/JSCanvasUnsignedByteArrayCustom.cpp:
895         * bindings/js/JSCanvasUnsignedIntArrayCustom.cpp:
896         * bindings/js/JSCanvasUnsignedShortArrayCustom.cpp:
897         * bindings/scripts/CodeGeneratorJS.pm:
898         * html/canvas/CanvasByteArray.h:
899         (WebCore::CanvasByteArray::item):
900         * html/canvas/CanvasByteArray.idl:
901         * html/canvas/CanvasFloatArray.h:
902         (WebCore::CanvasFloatArray::get):
903         (WebCore::CanvasFloatArray::item):
904         * html/canvas/CanvasFloatArray.idl:
905         * html/canvas/CanvasIntArray.h:
906         (WebCore::CanvasIntArray::get):
907         (WebCore::CanvasIntArray::item):
908         * html/canvas/CanvasIntArray.idl:
909         * html/canvas/CanvasPixelArray.idl:
910         * html/canvas/CanvasShortArray.h:
911         (WebCore::CanvasShortArray::get):
912         (WebCore::CanvasShortArray::item):
913         * html/canvas/CanvasShortArray.idl:
914         * html/canvas/CanvasUnsignedByteArray.h:
915         (WebCore::CanvasUnsignedByteArray::get):
916         (WebCore::CanvasUnsignedByteArray::item):
917         * html/canvas/CanvasUnsignedByteArray.idl:
918         * html/canvas/CanvasUnsignedIntArray.h:
919         (WebCore::CanvasUnsignedIntArray::get):
920         (WebCore::CanvasUnsignedIntArray::item):
921         * html/canvas/CanvasUnsignedIntArray.idl:
922         * html/canvas/CanvasUnsignedShortArray.h:
923         (WebCore::CanvasUnsignedShortArray::item):
924         * html/canvas/CanvasUnsignedShortArray.idl:
925
926 2009-09-08  Kevin Ollivier  <kevino@theolliviers.com>
927
928         wx build fix for 2.8.
929
930         * platform/wx/wxcode/mac/carbon/scrollbar_render.cpp:
931         (wxRenderer_DrawScrollbar):
932
933 2009-09-08  Jens Alfke  <snej@chromium.org>
934
935         Reviewed by Eric Seidel.
936
937         In Mac Chromium, clicking below the last line of an editable area (textarea or
938         contenteditable) should put the caret at the end of the last line, as in Mac Safari.
939
940         Tests: LayoutTests/editing/selection/click-in-margins-inside-editable-div.html
941                LayoutTests/editing/selection/click-in-padding-with-multiple-line-boxes.html
942
943         * page/Settings.cpp:
944         (WebCore::Settings::Settings): Change #if PLATFORM_MAC to be Mac-Chrome-inclusive.
945
946 2009-09-08  Dave Hyatt  <hyatt@apple.com>
947
948         Reviewed by Mark Rowe.
949
950         Make sure not to do an early return when a data URL stylesheet successfully loads.  We need to still
951         clear the old cached sheet out of all existing Frames.  Fixes the data URL stylesheet layout test failure.
952
953         * page/Page.cpp:
954         (WebCore::Page::userStyleSheetLocationChanged):
955
956 2009-09-08  Sam Weinig  <sam@webkit.org>
957
958         Fix windows build.
959
960         * dom/Document.idl:
961
962 2009-09-08  Kevin Ollivier  <kevino@theolliviers.com>
963
964         More robust wx build fix for 2.9.
965
966         * platform/wx/wxcode/mac/carbon/scrollbar_render.cpp:
967         (wxRenderer_DrawScrollbar):
968
969 2009-09-08  Sam Weinig  <sam@webkit.org>
970
971         Reviewed by Timothy Hatcher.
972
973         Fix for https://bugs.webkit.org/show_bug.cgi?id=27046
974         Implement CSSOM DocumentView.caretRangeFromPoint
975
976         Tests: fast/dom/Document/CaretRangeFromPoint/basic.html
977                fast/dom/Document/CaretRangeFromPoint/replace-element.html
978
979         * dom/Document.cpp:
980         (WebCore::Document::caretRangeFromPoint):
981         * dom/Document.h:
982         * dom/Document.idl:
983
984 2009-09-08  Kevin Ollivier  <kevino@theolliviers.com>
985
986         wx build fix, generate derived sources earlier in order to make sure
987         they're found by the build system when generating the list of sources to build.
988
989         * wscript:
990
991 2009-09-08  Nate Chapin  <japhet@chromium.org>
992
993         Reviewed by Dimitri Glazkov.
994
995         <iterator> include in V8Proxy.h is spurious and causing ObjC compile issues for Chromium.
996
997         Test: Chromium mac canary build is fixed.
998
999         * bindings/v8/V8Proxy.h: Remove <iterator> include.
1000
1001 2009-09-08  Xan Lopez  <xlopez@igalia.com>
1002
1003         Unreviewed attempt to fix the GTK+ build.
1004
1005         * GNUmakefile.am:
1006
1007 2009-09-04  Dave Hyatt  <hyatt@apple.com>
1008
1009         Reviewed by Eric Seidel.
1010
1011         https://bugs.webkit.org/show_bug.cgi?id=28987, make the Document cache the page's user stylesheet in
1012         parsed form.  Allows the sheet to survive across destruction/re-creation of the CSSStyleSelector.
1013
1014         * css/CSSStyleSelector.cpp:
1015         (WebCore::CSSStyleSelector::CSSStyleSelector):
1016         * css/CSSStyleSelector.h:
1017         * dom/Document.cpp:
1018         (WebCore::Document::attach):
1019         (WebCore::Document::pageUserSheet):
1020         (WebCore::Document::clearPageUserSheet):
1021         (WebCore::Document::recalcStyleSelector):
1022         * dom/Document.h:
1023         * loader/PlaceholderDocument.cpp:
1024         (WebCore::PlaceholderDocument::attach):
1025         * page/Page.cpp:
1026         (WebCore::Page::userStyleSheetLocationChanged):
1027         * page/Settings.cpp:
1028         (WebCore::Settings::setUserStyleSheetLocation):
1029
1030 2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1031
1032         Unreviewed buildfix.
1033
1034         Fix Qt build after 48167, by adding the new cpp/h files
1035         added to WebCore.gypi to WebCore.pro as well.
1036
1037         * WebCore.pro:
1038
1039 2009-09-08  Xan Lopez  <xlopez@igalia.com>
1040
1041         Reviewed by Gustavo Noronha.
1042
1043         should not pass URI fragments to libsoup
1044         https://bugs.webkit.org/show_bug.cgi?id=28687
1045
1046         Strip the fragment from the URI before passing it to soup, since
1047         it forwards it to servers in some cases (like when using a proxy)
1048         which confuses them and makes them return 403/404.
1049
1050         * platform/network/soup/ResourceHandleSoup.cpp:
1051         (WebCore::startHttp):
1052         (WebCore::):
1053
1054 2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1055
1056         Reviewed by Simon Hausmann.
1057
1058         Add QGraphicsScene events support to the Qt platform events.
1059
1060         * platform/PlatformMouseEvent.h:
1061         * platform/PlatformWheelEvent.h:
1062         * platform/qt/PlatformMouseEventQt.cpp:
1063         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1064         * platform/qt/WheelEventQt.cpp:
1065         (WebCore::PlatformWheelEvent::applyDelta):
1066         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1067
1068 2009-09-08  Michael Nordman  <michaeln@google.com>
1069
1070         Reviewed by Eric Seidel.
1071
1072         [Chromium] Cleanup: remove a few deprecated methods.
1073         https://bugs.webkit.org/show_bug.cgi?id=28960
1074
1075         No new tests, just syntactic sugar.
1076
1077         * platform/network/chromium/ResourceRequest.h:
1078         * platform/network/chromium/ResourceResponse.h:
1079
1080 2009-09-08  Yongjun Zhang  <yongjun.zhang@nokia.com>
1081
1082         Reviewed by Ariya Hidayat.
1083
1084         https://bugs.webkit.org/show_bug.cgi?id=28981
1085
1086         [Qt] make npapi.h compile in winscw compiler.
1087
1088         Add XP_SYMBIAN macro to identify Symbian OS; this macro should be used for Symbian
1089         specific changes in npapi.h.
1090         Undefine XP_WIN when building for Symbian to avoid including Windows specific code.
1091
1092         * bridge/npapi.h:
1093
1094 2009-09-08  Oliver Hunt  <oliver@apple.com>
1095
1096         Reviewed by Geoff Garen.
1097
1098         Web Inspector assertion failure related to marking
1099         https://bugs.webkit.org/show_bug.cgi?id=28997
1100
1101         When wrapping the callback the JSInspectorCallbackWrapper creator was using
1102         inheritorID for the prototype structure which is unsafe for anything other
1103         than a pure JS object.  Instead we now create a new structure, which while
1104         inefficient is not problematic as this code is not hit frequently.
1105
1106         * bindings/js/JSInspectorCallbackWrapper.cpp:
1107         (WebCore::JSInspectorCallbackWrapper::wrap):
1108
1109 2009-09-08  Kelly Norton  <knorton@google.com>
1110
1111         Reviewed by Dimitri Glazkov.
1112
1113         Add missing extension to the file entry in WebCore.vcproj.
1114
1115         * WebCore.vcproj/WebCore.vcproj: Added "cpp".
1116
1117 2009-09-08  Jian Li  <jianli@chromium.org>
1118
1119         Reviewed by David Levin.
1120
1121         dataTransfer.types() should not return Files if file list is empty in the clipboard.
1122         https://bugs.webkit.org/show_bug.cgi?id=28891
1123
1124         We change the behavior to handle the empty file list in order to match the spec.
1125
1126         Tested by clipboard-file-access.html.
1127
1128         * platform/mac/ClipboardMac.mm:
1129         (WebCore::addHTMLClipboardTypesForCocoaType):
1130         (WebCore::ClipboardMac::types):
1131
1132 2009-09-08  Steve VanDeBogart  <vandebo@chromium.org>
1133
1134         Reviewed by Eric Seidel.
1135
1136         Handle middle click in Chromium like QT
1137         https://bugs.webkit.org/show_bug.cgi?id=28696
1138
1139         Tested by middle-click-onpaste.html.
1140
1141         * platform/Pasteboard.h:
1142         * platform/chromium/ChromiumBridge.h:
1143         * platform/chromium/ClipboardChromium.cpp:
1144         (WebCore::ClipboardChromium::getData):
1145         * platform/chromium/PasteboardChromium.cpp:
1146         (WebCore::Pasteboard::Pasteboard):
1147         (WebCore::Pasteboard::isSelectionMode):
1148         (WebCore::Pasteboard::setSelectionMode):
1149         (WebCore::Pasteboard::canSmartReplace):
1150         (WebCore::Pasteboard::plainText):
1151         (WebCore::Pasteboard::documentFragment):
1152         * platform/chromium/PasteboardPrivate.h:
1153         (WebCore::PasteboardPrivate::):
1154
1155 2009-09-08  Kelly Norton  <knorton@google.com>
1156
1157         Reviewed by Eric Seidel.
1158
1159         WebInspector: Adds a timeline agent to InspectorController that collects
1160         high-level timing data about event dispatch, layout, painting and HTML
1161         parsing and makes it available to Inspector.
1162         https://bugs.webkit.org/show_bug.cgi?id=25503
1163
1164         * WebCore.gypi:
1165         * WebCore.xcodeproj/project.pbxproj:
1166         * dom/Document.cpp:
1167         (WebCore::Document::recalcStyle):
1168         * dom/Document.h:
1169         (WebCore::Document::inspectorTimelineAgent):
1170         * dom/Node.cpp:
1171         (WebCore::Node::dispatchGenericEvent):
1172         * html/HTMLTokenizer.cpp:
1173         (WebCore::HTMLTokenizer::write):
1174         * inspector/DOMDispatchTimelineItem.cpp: Added.
1175         (WebCore::DOMDispatchTimelineItem::DOMDispatchTimelineItem):
1176         (WebCore::DOMDispatchTimelineItem::convertToScriptObject):
1177         * inspector/DOMDispatchTimelineItem.h: Added.
1178         (WebCore::DOMDispatchTimelineItem::~DOMDispatchTimelineItem):
1179         * inspector/InspectorBackend.cpp:
1180         (WebCore::InspectorBackend::enableTimeline):
1181         (WebCore::InspectorBackend::disableTimeline):
1182         (WebCore::InspectorBackend::timelineEnabled):
1183         * inspector/InspectorBackend.h:
1184         * inspector/InspectorBackend.idl:
1185         * inspector/InspectorController.cpp:
1186         (WebCore::InspectorController::setFrontendProxyObject):
1187         (WebCore::InspectorController::close):
1188         (WebCore::InspectorController::resetScriptObjects):
1189         (WebCore::InspectorController::enableTimeline):
1190         (WebCore::InspectorController::disableTimeline):
1191         (WebCore::InspectorController::timelineEnabled):
1192         * inspector/InspectorController.h:
1193         (WebCore::InspectorController::timelineAgent):
1194         * inspector/InspectorFrontend.cpp:
1195         (WebCore::InspectorFrontend::timelineWasEnabled):
1196         (WebCore::InspectorFrontend::timelineWasDisabled):
1197         (WebCore::InspectorFrontend::addItemToTimeline):
1198         * inspector/InspectorFrontend.h:
1199         * inspector/InspectorTimelineAgent.cpp: Added.
1200         (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
1201         (WebCore::InspectorTimelineAgent::~InspectorTimelineAgent):
1202         (WebCore::InspectorTimelineAgent::willDispatchDOMEvent):
1203         (WebCore::InspectorTimelineAgent::didDispatchDOMEvent):
1204         (WebCore::InspectorTimelineAgent::willLayout):
1205         (WebCore::InspectorTimelineAgent::didLayout):
1206         (WebCore::InspectorTimelineAgent::willRecalculateStyle):
1207         (WebCore::InspectorTimelineAgent::didRecalculateStyle):
1208         (WebCore::InspectorTimelineAgent::willPaint):
1209         (WebCore::InspectorTimelineAgent::didPaint):
1210         (WebCore::InspectorTimelineAgent::willWriteHTML):
1211         (WebCore::InspectorTimelineAgent::didWriteHTML):
1212         (WebCore::InspectorTimelineAgent::reset):
1213         (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
1214         (WebCore::InspectorTimelineAgent::currentTimeInMilliseconds):
1215         (WebCore::InspectorTimelineAgent::sessionTimeInMilliseconds):
1216         * inspector/InspectorTimelineAgent.h: Added.
1217         * inspector/TimelineItem.cpp: Added.
1218         (WebCore::TimelineItem::TimelineItem):
1219         (WebCore::TimelineItem::addToTimeline):
1220         (WebCore::TimelineItem::convertToScriptObject):
1221         (WebCore::TimelineItem::convertChildrenToScriptArray):
1222         (WebCore::TimelineItem::addChildItem):
1223         * inspector/TimelineItem.h: Added.
1224         (WebCore::):
1225         (WebCore::TimelineItem::~TimelineItem):
1226         (WebCore::TimelineItem::previous):
1227         (WebCore::TimelineItem::releasePrevious):
1228         (WebCore::TimelineItem::setEndTime):
1229         (WebCore::TimelineItem::type):
1230         * inspector/front-end/TimelineAgent.js: Added.
1231         (WebInspector.TimelineAgent):
1232         (WebInspector.addItemToTimeline):
1233         (WebInspector.timelineWasEnabled):
1234         (WebInspector.timelineWasDisabled):
1235         * inspector/front-end/inspector.html:
1236         * page/FrameView.cpp:
1237         (WebCore::FrameView::layout):
1238         (WebCore::FrameView::paintContents):
1239         * page/FrameView.h:
1240         (WebCore::FrameView::inspectorTimelineAgent):
1241         * page/Page.cpp:
1242         (WebCore::Page::inspectorTimelineAgent):
1243         * page/Page.h:
1244
1245 2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1246
1247         Reviewed by Simon Hausmann.
1248
1249         [Qt] Fix unused variable warnings
1250         https://bugs.webkit.org/show_bug.cgi?id=29018
1251
1252         No functional change, no tests.
1253
1254         * history/qt/HistoryItemQt.cpp:
1255         (WebCore::HistoryItem::restoreState):
1256         * platform/graphics/qt/ImageBufferQt.cpp:
1257         (WebCore::putImageData):
1258         * platform/qt/RenderThemeQt.cpp:
1259         (WebCore::RenderThemeQt::paintMenuList):
1260
1261 2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1262
1263         Reviewed by Ariya Hidayat.
1264
1265         [Qt] Use the declaration order in initializer lists
1266         https://bugs.webkit.org/show_bug.cgi?id=29017
1267
1268         No functional change, no new tests.
1269
1270         * platform/graphics/qt/FontCacheQt.cpp:
1271         (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
1272         * platform/network/qt/QNetworkReplyHandler.cpp:
1273         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
1274
1275 2009-09-08  Kent Tamura  <tkent@chromium.org>
1276
1277         Reviewed by Eric Seidel.
1278
1279         Implement ValidityState::typeMismatch() for <input type=number>.
1280         https://bugs.webkit.org/show_bug.cgi?id=28934
1281
1282         Test: fast/forms/ValidityState-typeMismatch-number.html
1283
1284         * html/HTMLInputElement.cpp:
1285         (WebCore::HTMLInputElement::formStringToDouble):
1286         * html/HTMLInputElement.h:
1287         * html/ValidityState.cpp:
1288         (WebCore::ValidityState::typeMismatch):
1289         * html/ValidityState.h:
1290
1291 2009-09-08  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
1292
1293         Reviewed by Gustavo Noronha.
1294
1295         [Gtk] Another attempt of a buildfix.
1296
1297         * GNUmakefile.am: Modified. Remove some extra IDL files added in r48153.
1298
1299 2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1300
1301         Reviewed by Simon Hausmann.
1302
1303         [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
1304         https://bugs.webkit.org/show_bug.cgi?id=28865
1305
1306         Save the QCursor as a property in WidgetQt::setCursor
1307         and actually change the cursor in QWebView::event() by making use
1308         of the QEvent::DynamicPropertyChange event type.
1309         When unsetCursor() is called on the QWidget we can fallback to
1310         the cursor set by WebCore.
1311
1312         Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
1313                  Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07
1314
1315         * platform/qt/WidgetQt.cpp:
1316         (WebCore::Widget::setCursor):
1317
1318 2009-09-08  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
1319
1320         Reviewed by Gustavo Noronha.
1321
1322         [Gtk] Buildfix for build error introduced in r48150.
1323
1324         * GNUmakefile.am: Modified. Added missing IDL files.
1325
1326 2009-09-08  Csaba Osztrogonac  <oszi@inf.u-szeged.hu>
1327
1328         Reviewed by Tor Arne Vestbø.
1329
1330         [Qt] Buildfix. Build error caused by r48150.
1331
1332         * WebCore.pro: missing IDL files added
1333
1334 2009-09-07  Chris Marrin  <cmarrin@apple.com>
1335
1336         Reviewed by Oliver Hunt.
1337
1338         Update Canvas 3D implementation to match spec
1339         https://bugs.webkit.org/show_bug.cgi?id=29010
1340
1341         This adds several new CanvasXXXArray classes each of which has a custom constructor
1342         and custom getters and setters. Also changed CanvasRenderingContext3D and GraphicsContext3D
1343         to match the new and changed API.
1344
1345         * DerivedSources.make:
1346         * WebCore.xcodeproj/project.pbxproj:
1347         * bindings/js/JSCanvasArrayBufferConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
1348         * bindings/js/JSCanvasArrayBufferConstructor.h: Added with properties svn:eol-style and svn:mime-type.
1349         * bindings/js/JSCanvasArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
1350         * bindings/js/JSCanvasByteArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
1351         * bindings/js/JSCanvasByteArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
1352         * bindings/js/JSCanvasByteArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
1353         * bindings/js/JSCanvasFloatArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
1354         * bindings/js/JSCanvasFloatArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
1355         * bindings/js/JSCanvasFloatArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
1356         * bindings/js/JSCanvasIntArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
1357         * bindings/js/JSCanvasIntArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
1358         * bindings/js/JSCanvasIntArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
1359         * bindings/js/JSCanvasRenderingContext3DCustom.cpp:
1360         (WebCore::JSCanvasRenderingContext3D::bufferData):
1361         (WebCore::JSCanvasRenderingContext3D::bufferSubData):
1362         (WebCore::JSCanvasRenderingContext3D::texImage2D):
1363         (WebCore::JSCanvasRenderingContext3D::texSubImage2D):
1364         * bindings/js/JSCanvasShortArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
1365         * bindings/js/JSCanvasShortArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
1366         * bindings/js/JSCanvasShortArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
1367         * bindings/js/JSCanvasUnsignedByteArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
1368         * bindings/js/JSCanvasUnsignedByteArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
1369         * bindings/js/JSCanvasUnsignedByteArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
1370         * bindings/js/JSCanvasUnsignedIntArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
1371         * bindings/js/JSCanvasUnsignedIntArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
1372         * bindings/js/JSCanvasUnsignedIntArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
1373         * bindings/js/JSCanvasUnsignedShortArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
1374         * bindings/js/JSCanvasUnsignedShortArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
1375         * bindings/js/JSCanvasUnsignedShortArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
1376         * bindings/js/JSDOMWindowCustom.cpp:
1377         (WebCore::JSDOMWindow::canvasArrayBuffer):
1378         (WebCore::JSDOMWindow::canvasByteArray):
1379         (WebCore::JSDOMWindow::canvasUnsignedByteArray):
1380         (WebCore::JSDOMWindow::canvasIntArray):
1381         (WebCore::JSDOMWindow::canvasUnsignedIntArray):
1382         (WebCore::JSDOMWindow::canvasShortArray):
1383         (WebCore::JSDOMWindow::canvasUnsignedShortArray):
1384         (WebCore::JSDOMWindow::canvasFloatArray):
1385         * html/HTMLCanvasElement.cpp:
1386         (WebCore::HTMLCanvasElement::getContext):
1387         (WebCore::HTMLCanvasElement::paint):
1388         * html/canvas/CanvasArray.cpp: Added with properties svn:eol-style and svn:mime-type.
1389         * html/canvas/CanvasArray.h: Added with properties svn:eol-style and svn:mime-type.
1390         * html/canvas/CanvasArray.idl: Added.
1391         * html/canvas/CanvasArrayBuffer.cpp: Added with properties svn:eol-style and svn:mime-type.
1392         * html/canvas/CanvasArrayBuffer.h: Added with properties svn:eol-style and svn:mime-type.
1393         * html/canvas/CanvasArrayBuffer.idl: Added.
1394         * html/canvas/CanvasByteArray.cpp:
1395         * html/canvas/CanvasByteArray.h:
1396         * html/canvas/CanvasByteArray.idl:
1397         * html/canvas/CanvasFloatArray.cpp: Added with properties svn:eol-style and svn:mime-type.
1398         * html/canvas/CanvasFloatArray.h: Added with properties svn:eol-style and svn:mime-type.
1399         * html/canvas/CanvasFloatArray.idl: Added.
1400         * html/canvas/CanvasIntArray.cpp: Added with properties svn:eol-style and svn:mime-type.
1401         * html/canvas/CanvasIntArray.h: Added with properties svn:eol-style and svn:mime-type.
1402         * html/canvas/CanvasIntArray.idl: Added.
1403         * html/canvas/CanvasRenderingContext3D.cpp:
1404         (WebCore::CanvasRenderingContext3D::CanvasRenderingContext3D):
1405         (WebCore::CanvasRenderingContext3D::markContextChanged):
1406         (WebCore::CanvasRenderingContext3D::beginPaint):
1407         (WebCore::CanvasRenderingContext3D::endPaint):
1408         (WebCore::CanvasRenderingContext3D::reshape):
1409         (WebCore::CanvasRenderingContext3D::sizeInBytes):
1410         (WebCore::CanvasRenderingContext3D::bindTexture):
1411         (WebCore::CanvasRenderingContext3D::bufferData):
1412         (WebCore::CanvasRenderingContext3D::bufferSubData):
1413         (WebCore::CanvasRenderingContext3D::checkFramebufferStatus):
1414         (WebCore::CanvasRenderingContext3D::clear):
1415         (WebCore::CanvasRenderingContext3D::createBuffer):
1416         (WebCore::CanvasRenderingContext3D::createFramebuffer):
1417         (WebCore::CanvasRenderingContext3D::createTexture):
1418         (WebCore::CanvasRenderingContext3D::createProgram):
1419         (WebCore::CanvasRenderingContext3D::createRenderbuffer):
1420         (WebCore::CanvasRenderingContext3D::createShader):
1421         (WebCore::CanvasRenderingContext3D::deleteBuffer):
1422         (WebCore::CanvasRenderingContext3D::deleteFramebuffer):
1423         (WebCore::CanvasRenderingContext3D::deleteProgram):
1424         (WebCore::CanvasRenderingContext3D::deleteRenderbuffer):
1425         (WebCore::CanvasRenderingContext3D::deleteShader):
1426         (WebCore::CanvasRenderingContext3D::deleteTexture):
1427         (WebCore::CanvasRenderingContext3D::drawArrays):
1428         (WebCore::CanvasRenderingContext3D::drawElements):
1429         (WebCore::CanvasRenderingContext3D::getBoolean):
1430         (WebCore::CanvasRenderingContext3D::getBooleanv):
1431         (WebCore::CanvasRenderingContext3D::getBufferParameteri):
1432         (WebCore::CanvasRenderingContext3D::getBufferParameteriv):
1433         (WebCore::CanvasRenderingContext3D::getFloat):
1434         (WebCore::CanvasRenderingContext3D::getFloatv):
1435         (WebCore::CanvasRenderingContext3D::getFramebufferAttachmentParameteri):
1436         (WebCore::CanvasRenderingContext3D::getFramebufferAttachmentParameteriv):
1437         (WebCore::CanvasRenderingContext3D::getInteger):
1438         (WebCore::CanvasRenderingContext3D::getIntegerv):
1439         (WebCore::CanvasRenderingContext3D::getProgrami):
1440         (WebCore::CanvasRenderingContext3D::getProgramiv):
1441         (WebCore::CanvasRenderingContext3D::getProgramInfoLog):
1442         (WebCore::CanvasRenderingContext3D::getRenderbufferParameteri):
1443         (WebCore::CanvasRenderingContext3D::getRenderbufferParameteriv):
1444         (WebCore::CanvasRenderingContext3D::getShaderi):
1445         (WebCore::CanvasRenderingContext3D::getShaderiv):
1446         (WebCore::CanvasRenderingContext3D::getShaderInfoLog):
1447         (WebCore::CanvasRenderingContext3D::getShaderSource):
1448         (WebCore::CanvasRenderingContext3D::getTexParameterf):
1449         (WebCore::CanvasRenderingContext3D::getTexParameterfv):
1450         (WebCore::CanvasRenderingContext3D::getTexParameteri):
1451         (WebCore::CanvasRenderingContext3D::getTexParameteriv):
1452         (WebCore::CanvasRenderingContext3D::getUniformf):
1453         (WebCore::CanvasRenderingContext3D::getUniformfv):
1454         (WebCore::CanvasRenderingContext3D::getUniformi):
1455         (WebCore::CanvasRenderingContext3D::getUniformiv):
1456         (WebCore::CanvasRenderingContext3D::getUniformLocation):
1457         (WebCore::CanvasRenderingContext3D::getVertexAttribf):
1458         (WebCore::CanvasRenderingContext3D::getVertexAttribfv):
1459         (WebCore::CanvasRenderingContext3D::getVertexAttribi):
1460         (WebCore::CanvasRenderingContext3D::getVertexAttribiv):
1461         (WebCore::CanvasRenderingContext3D::getVertexAttribOffset):
1462         (WebCore::CanvasRenderingContext3D::texImage2D):
1463         (WebCore::CanvasRenderingContext3D::texParameterf):
1464         (WebCore::CanvasRenderingContext3D::texParameteri):
1465         (WebCore::CanvasRenderingContext3D::texSubImage2D):
1466         (WebCore::CanvasRenderingContext3D::uniform1f):
1467         (WebCore::CanvasRenderingContext3D::uniform1fv):
1468         (WebCore::CanvasRenderingContext3D::uniform1i):
1469         (WebCore::CanvasRenderingContext3D::uniform1iv):
1470         (WebCore::CanvasRenderingContext3D::uniform2f):
1471         (WebCore::CanvasRenderingContext3D::uniform2fv):
1472         (WebCore::CanvasRenderingContext3D::uniform2i):
1473         (WebCore::CanvasRenderingContext3D::uniform2iv):
1474         (WebCore::CanvasRenderingContext3D::uniform3f):
1475         (WebCore::CanvasRenderingContext3D::uniform3fv):
1476         (WebCore::CanvasRenderingContext3D::uniform3i):
1477         (WebCore::CanvasRenderingContext3D::uniform3iv):
1478         (WebCore::CanvasRenderingContext3D::uniform4f):
1479         (WebCore::CanvasRenderingContext3D::uniform4fv):
1480         (WebCore::CanvasRenderingContext3D::uniform4i):
1481         (WebCore::CanvasRenderingContext3D::uniform4iv):
1482         (WebCore::CanvasRenderingContext3D::uniformMatrix2fv):
1483         (WebCore::CanvasRenderingContext3D::uniformMatrix3fv):
1484         (WebCore::CanvasRenderingContext3D::uniformMatrix4fv):
1485         (WebCore::CanvasRenderingContext3D::useProgram):
1486         (WebCore::CanvasRenderingContext3D::validateProgram):
1487         (WebCore::CanvasRenderingContext3D::vertexAttrib1f):
1488         (WebCore::CanvasRenderingContext3D::vertexAttrib1fv):
1489         (WebCore::CanvasRenderingContext3D::vertexAttrib2f):
1490         (WebCore::CanvasRenderingContext3D::vertexAttrib2fv):
1491         (WebCore::CanvasRenderingContext3D::vertexAttrib3f):
1492         (WebCore::CanvasRenderingContext3D::vertexAttrib3fv):
1493         (WebCore::CanvasRenderingContext3D::vertexAttrib4f):
1494         (WebCore::CanvasRenderingContext3D::vertexAttrib4fv):
1495         (WebCore::CanvasRenderingContext3D::vertexAttribPointer):
1496         (WebCore::CanvasRenderingContext3D::viewport):
1497         * html/canvas/CanvasRenderingContext3D.h:
1498         * html/canvas/CanvasRenderingContext3D.idl:
1499         * html/canvas/CanvasShortArray.cpp: Added with properties svn:eol-style and svn:mime-type.
1500         * html/canvas/CanvasShortArray.h: Added with properties svn:eol-style and svn:mime-type.
1501         * html/canvas/CanvasShortArray.idl: Added.
1502         * html/canvas/CanvasTexture.cpp:
1503         (WebCore::CanvasTexture::CanvasTexture):
1504         * html/canvas/CanvasTexture.h:
1505         (WebCore::CanvasTexture::isCubeMapRWrapModeInitialized):
1506         (WebCore::CanvasTexture::setCubeMapRWrapModeInitialized):
1507         * html/canvas/CanvasUnsignedByteArray.cpp: Added with properties svn:eol-style and svn:mime-type.
1508         * html/canvas/CanvasUnsignedByteArray.h: Added with properties svn:eol-style and svn:mime-type.
1509          * html/canvas/CanvasUnsignedByteArray.idl: Added.
1510         * html/canvas/CanvasUnsignedIntArray.cpp: Added with properties svn:eol-style and svn:mime-type.
1511         * html/canvas/CanvasUnsignedIntArray.h: Added with properties svn:eol-style and svn:mime-type.
1512         * html/canvas/CanvasUnsignedIntArray.idl: Added.
1513         * html/canvas/CanvasUnsignedShortArray.cpp: Added with properties svn:eol-style and svn:mime-type.
1514         * html/canvas/CanvasUnsignedShortArray.h: Added with properties svn:eol-style and svn:mime-type.
1515         * html/canvas/CanvasUnsignedShortArray.idl: Added.
1516         * page/DOMWindow.idl:
1517         * platform/graphics/GraphicsContext3D.h:
1518         * platform/graphics/mac/GraphicsContext3DMac.cpp:
1519         (WebCore::GraphicsContext3D::beginPaint):
1520         (WebCore::GraphicsContext3D::endPaint):
1521         (WebCore::GraphicsContext3D::bindTexture):
1522         (WebCore::GraphicsContext3D::bufferData):
1523         (WebCore::GraphicsContext3D::bufferSubData):
1524         (WebCore::GraphicsContext3D::checkFramebufferStatus):
1525         (WebCore::GraphicsContext3D::drawArrays):
1526         (WebCore::GraphicsContext3D::drawElements):
1527         (WebCore::GraphicsContext3D::texParameterf):
1528         (WebCore::GraphicsContext3D::texParameteri):
1529         (WebCore::GraphicsContext3D::uniform1f):
1530         (WebCore::GraphicsContext3D::uniform1fv):
1531         (WebCore::GraphicsContext3D::uniform2f):
1532         (WebCore::GraphicsContext3D::uniform2fv):
1533         (WebCore::GraphicsContext3D::uniform3f):
1534         (WebCore::GraphicsContext3D::uniform3fv):
1535         (WebCore::GraphicsContext3D::uniform4f):
1536         (WebCore::GraphicsContext3D::uniform4fv):
1537         (WebCore::GraphicsContext3D::uniform1i):
1538         (WebCore::GraphicsContext3D::uniform1iv):
1539         (WebCore::GraphicsContext3D::uniform2i):
1540         (WebCore::GraphicsContext3D::uniform2iv):
1541         (WebCore::GraphicsContext3D::uniform3i):
1542         (WebCore::GraphicsContext3D::uniform3iv):
1543         (WebCore::GraphicsContext3D::uniform4i):
1544         (WebCore::GraphicsContext3D::uniform4iv):
1545         (WebCore::GraphicsContext3D::uniformMatrix2fv):
1546         (WebCore::GraphicsContext3D::uniformMatrix3fv):
1547         (WebCore::GraphicsContext3D::uniformMatrix4fv):
1548         (WebCore::GraphicsContext3D::vertexAttrib1f):
1549         (WebCore::GraphicsContext3D::vertexAttrib1fv):
1550         (WebCore::GraphicsContext3D::vertexAttrib2f):
1551         (WebCore::GraphicsContext3D::vertexAttrib2fv):
1552         (WebCore::GraphicsContext3D::vertexAttrib3f):
1553         (WebCore::GraphicsContext3D::vertexAttrib3fv):
1554         (WebCore::GraphicsContext3D::vertexAttrib4f):
1555         (WebCore::GraphicsContext3D::vertexAttrib4fv):
1556         (WebCore::GraphicsContext3D::vertexAttribPointer):
1557         (WebCore::GraphicsContext3D::getBoolean):
1558         (WebCore::GraphicsContext3D::getBooleanv):
1559         (WebCore::GraphicsContext3D::getFloat):
1560         (WebCore::GraphicsContext3D::getFloatv):
1561         (WebCore::GraphicsContext3D::getInteger):
1562         (WebCore::GraphicsContext3D::getIntegerv):
1563         (WebCore::GraphicsContext3D::getBufferParameteri):
1564         (WebCore::GraphicsContext3D::getBufferParameteriv):
1565         (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteri):
1566         (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
1567         (WebCore::GraphicsContext3D::getProgrami):
1568         (WebCore::GraphicsContext3D::getProgramiv):
1569         (WebCore::GraphicsContext3D::getRenderbufferParameteri):
1570         (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
1571         (WebCore::GraphicsContext3D::getShaderi):
1572         (WebCore::GraphicsContext3D::getShaderiv):
1573         (WebCore::GraphicsContext3D::getTexParameterf):
1574         (WebCore::GraphicsContext3D::getTexParameterfv):
1575         (WebCore::GraphicsContext3D::getTexParameteri):
1576         (WebCore::GraphicsContext3D::getTexParameteriv):
1577         (WebCore::GraphicsContext3D::getUniformf):
1578         (WebCore::GraphicsContext3D::getUniformfv):
1579         (WebCore::GraphicsContext3D::getUniformi):
1580         (WebCore::GraphicsContext3D::getUniformiv):
1581         (WebCore::GraphicsContext3D::getVertexAttribf):
1582         (WebCore::GraphicsContext3D::getVertexAttribfv):
1583         (WebCore::GraphicsContext3D::getVertexAttribi):
1584         (WebCore::GraphicsContext3D::getVertexAttribiv):
1585         (WebCore::GraphicsContext3D::getVertexAttribOffset):
1586         (WebCore::GraphicsContext3D::texImage2D):
1587         (WebCore::GraphicsContext3D::texSubImage2D):
1588         (WebCore::GraphicsContext3D::sizeInBytes):
1589
1590 2009-09-08  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1591
1592         Reviewed by Timothy Hatcher.
1593
1594         Make m_windowVisible more consistent with the actual visibility of the inspector.
1595
1596         * inspector/InspectorController.cpp:
1597         (WebCore::InspectorController::setWindowVisible):
1598
1599 2009-09-07  Adam Barth  <abarth@webkit.org>
1600
1601         Unreviewed speculative build fix for Snow Leopard.
1602
1603         * platform/GeolocationService.cpp:
1604         (WebCore::createGeolocationServiceNull):
1605
1606 2009-09-07  Steve Block  <steveblock@google.com>
1607
1608         Reviewed by Adam Barth.
1609
1610         Adds a mock Geolocation service. This will be used to provide predictable behavior of the
1611         Geolocation API for use in LayoutTests. Later changes will integrate the the mock
1612         Geolocation service with DumpRenderTree.
1613         https://bugs.webkit.org/show_bug.cgi?id=28264
1614
1615         The mock Geolocation service returns a fixed position or error. This position or error can be
1616         set through static methods on the GeolocationService class. The position or error is shared
1617         between all instances of the mock Geolocation service.
1618
1619         Implementation details.
1620         The GeolocationService object maintains a pointer to a factory function which it uses to create
1621         Geolocation service instances. Each platform implementing Geolocation sets this pointer
1622         to the factory function for their platform's implementation. When the mock Geolocation service
1623         is activated, the factory function pointer is reset to the factory function for the mock service.
1624
1625         Test: fast/dom/Geolocation/error.html
1626
1627         * WebCore.base.exp: Modified. Exports GeolocationServiceMock methods.
1628         * GNUMakefile.am: Modified. Added GeolocationServiceMock files.
1629         * WebCore.gypi: Modified. Added GeolocationServiceMock files.
1630         * WebCore.pro: Modified. Added GeolocationServiceMock files.
1631         * WebCore.vcproj/WebCore.vcproj: Modified. Added GeolocationServiceMock files.
1632         * WebCore.vcproj/WebCoreCommon.vsprops: Modified. Added mock directory to includes.
1633         * WebCore.xcodeproj/project.pbxproj: Modified. Added GeolocationServiceMock files and exports some headers.
1634         * WebCoreSources.bkl: Modified. Added GeolocationServiceMock files.
1635         * page/ChromeClient.h: Modified. Fixed comment.
1636         * page/Geolocation.cpp: Modified.
1637         (WebCore::Geolocation::setIsAllowed): Modified. Fixed error string.
1638         * platform/GeolocationService.cpp: Modified.
1639         (WebCore::createGeolocationServiceNull): Added. Returns null in place of a Geolocation service. Used to avoid link errors on platforms where Geolocation is not implemented.
1640         (WebCore::GeolocationService::create): Added. Uses the factory function pointer to create a Geolocation service implementation.
1641         (WebCore::GeolocationService::useMock): Added. Configures the GeolocationServie to use the mock implementation.
1642         * platform/GeolocationService.h: Modified.
1643         * platform/mock: Added.
1644         * platform/mock/GeolocationServiceMock.cpp: Added.
1645         (WebCore::GeolocationServiceMock::create): Added. Creates a GeolocationServiceMock object.
1646         (WebCore::GeolocationServiceMock::GeolocationServiceMock): Added. Constructor.
1647         (WebCore::GeolocationServiceMock::~GeolocationServiceMock): Added. Destructor.
1648         (WebCore::GeolocationServiceMock::setPosition): Added. Sets the position that will be returned by the object.
1649         (WebCore::GeolocationServiceMock::setError): Added. Sets the error that will be returned by the object.
1650         (WebCore::GeolocationServiceMock::startUpdating): Added. GeolocationService implementation. Starts the service.
1651         (WebCore::GeolocationServiceMock::stopUpdating): Added. GeolocationService implementation. Stops the service.
1652         (WebCore::GeolocationServiceMock::timerFired): Added. Used to provide an asynchronous callback when the service is started.
1653         (WebCore::GeolocationServiceMock::makeGeolocationCallbackFromAllInstances): Added. Used to call back when the position or error is updated.
1654         (WebCore::GeolocationServiceMock::makeGeolocationCallback): Added. Used to call back when the service starts.
1655         (WebCore::GeolocationServiceMock::initStatics): Added. Initializes statics members with constructors.
1656         (WebCore::GeolocationServiceMock::cleanUpStatics): Added. Cleans up static members with constructors.
1657         * platform/mock/GeolocationServiceMock.h: Added.
1658         (WebCore::GeolocationServiceMock::lastPosition): Added. Returns the fixed position.
1659         (WebCore::GeolocationServiceMock::lastError): Added. Returns the fixed error.
1660         * platform/gtk/GeolocationServiceGtk.cpp: Modified.
1661         (WebCore::GeolocationServiceGtk::create): Added. Creates an instance of GeolocationServiceGtk.
1662         * platform/gtk/GeolocationServiceGtk.h: Modified.
1663         * platform/mac/GeolocationServiceMac.h: Modified.
1664         * platform/mac/GeolocationServiceMac.mm: Modified.
1665         (WebCore::GeolocationServiceMac::create): Added. Creates an instance of GeolocationServiceMac.
1666
1667 2009-09-07  Adam Barth  <abarth@webkit.org>
1668
1669         Reviewed by Dimitri Glazkov.
1670
1671         https://bugs.webkit.org/show_bug.cgi?id=28985
1672
1673         We need to be slightly more careful about how we pick up a script
1674         execution context.  In particular, we were getting the wrong document
1675         for frames that had been navigated somewhere else.
1676
1677         In the long term, we should think about a better algorithm for
1678         computing the script context.
1679
1680         Fixes LayoutTests/http/tests/xmlhttprequest/detaching-frame-2.html
1681
1682         * bindings/v8/V8Proxy.cpp:
1683         (WebCore::V8Proxy::retrieveFrame):
1684
1685 2009-09-07  Kevin Ollivier  <kevino@theolliviers.com>
1686
1687         wx build fix for 2.8 compilation.
1688
1689         * platform/wx/wxcode/mac/carbon/scrollbar_render.cpp:
1690         (wxRenderer_DrawScrollbar):
1691
1692 2009-09-07  Drew Wilson  <atwilson@google.com>
1693
1694         Unreviewed build fix.
1695
1696         Reverting r48121 to fix Windows build errors.
1697
1698         * DerivedSources.cpp:
1699         * GNUmakefile.am:
1700         * WebCore.xcodeproj/project.pbxproj:
1701         * bindings/js/JSDOMWindowCustom.cpp:
1702         * bindings/js/JSEventTarget.cpp:
1703         (WebCore::toJS):
1704         (WebCore::toEventTarget):
1705         * dom/EventTarget.cpp:
1706         * dom/EventTarget.h:
1707         * page/DOMWindow.idl:
1708         * websockets/WebSocket.cpp:
1709         (WebCore::WebSocket::connect):
1710         (WebCore::WebSocket::send):
1711         (WebCore::WebSocket::close):
1712         (WebCore::WebSocket::bufferedAmount):
1713         (WebCore::WebSocket::addEventListener):
1714         (WebCore::WebSocket::removeEventListener):
1715         (WebCore::WebSocket::dispatchEvent):
1716         (WebCore::WebSocket::didConnect):
1717         (WebCore::WebSocket::didReceiveMessage):
1718         (WebCore::WebSocket::didClose):
1719         (WebCore::WebSocket::dispatchOpenEvent):
1720         (WebCore::WebSocket::dispatchMessageEvent):
1721         (WebCore::WebSocket::dispatchCloseEvent):
1722         * websockets/WebSocket.h:
1723         (WebCore::WebSocket::create):
1724         (WebCore::WebSocket::):
1725         (WebCore::WebSocket::setOnopen):
1726         (WebCore::WebSocket::onopen):
1727         (WebCore::WebSocket::setOnmessage):
1728         (WebCore::WebSocket::onmessage):
1729         (WebCore::WebSocket::setOnclose):
1730         (WebCore::WebSocket::onclose):
1731         (WebCore::WebSocket::toWebSocket):
1732         (WebCore::WebSocket::refEventTarget):
1733         (WebCore::WebSocket::derefEventTarget):
1734         * websockets/WebSocketChannel.cpp: Removed.
1735         * websockets/WebSocketChannel.h: Removed.
1736         * websockets/WebSocketChannelClient.h: Removed.
1737         * websockets/WebSocketHandshake.cpp: Removed.
1738         * websockets/WebSocketHandshake.h: Removed.
1739
1740 2009-09-07  Drew Wilson  <atwilson@google.com>
1741
1742         Unreviewed speculative build fix.
1743
1744         Reverted previous build fix as it didn't fix the problem.
1745
1746         * bindings/js/JSEventTarget.cpp:
1747         (WebCore::toEventTarget):
1748
1749 2009-09-07  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1750
1751         Unreviewed, build fix.
1752
1753         [Qt] Fix build after SHARED_WORKERS are enabled by default (r48131)
1754
1755         * WebCore.pro:
1756
1757 2009-09-07  Drew Wilson  <atwilson@google.com>
1758
1759         Unreviewed build fix.
1760
1761         Temporarily removed depenency between JSEventTarget.cpp and WebSocket.h in an attempt to fix a windows build break.
1762
1763         * bindings/js/JSEventTarget.cpp:
1764         (WebCore::toEventTarget):
1765
1766 2009-09-07  Drew Wilson  <atwilson@google.com>
1767
1768         Reviewed by David Levin.
1769
1770         Enable SHARED_WORKERS by default.
1771         https://bugs.webkit.org/show_bug.cgi?id=28959
1772
1773         Tests (enabled in a separate patch):
1774                fast/workers/shared-worker-constructor.html
1775                fast/workers/shared-worker-context-gc.html
1776                fast/workers/shared-worker-event-listener.html
1777                fast/workers/shared-worker-exception.html
1778                fast/workers/shared-worker-frame-lifecycle.html
1779                fast/workers/shared-worker-gc.html
1780                fast/workers/shared-worker-lifecycle.html
1781                fast/workers/shared-worker-load-error.html
1782                fast/workers/shared-worker-location.html
1783                fast/workers/shared-worker-navigator.html
1784                fast/workers/shared-worker-replace-global-constructor.html
1785                fast/workers/shared-worker-replace-self.html
1786                fast/workers/shared-worker-shared.html
1787                fast/workers/shared-worker-simple.html
1788                http/tests/workers/shared-worker-importScripts.html
1789                http/tests/workers/shared-worker-redirect.html
1790                http/tests/xmlhttprequest/workers/shared-worker-close.html
1791                http/tests/xmlhttprequest/workers/shared-worker-methods-async.html
1792                http/tests/xmlhttprequest/workers/shared-worker-methods.html
1793                http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found.html
1794
1795         * config.h: Removed some whitespace/touched the file to force a full rebuild on the build-bots.
1796         * Configurations/FeatureDefines.xcconfig:
1797         * WebCore.pro:
1798         * WebCore.vcproj/WebCoreCommon.vsprops:
1799         * WebCore.vcproj/build-generated-files.sh:
1800         * dom/DOMWindow.idl: Removed unnecessary whitespace to force a rebuild on the build-bots to pickup the flag change.
1801         * workers/DefaultSharedWorkerRepository.cpp:
1802         (WebCore::SharedWorkerScriptLoader::load):
1803         Clean up bitrot in SharedWorker code - DenyCrossOriginRedirect is now DenyCrossOriginRequests.
1804         * workers/SharedWorkerContext.cpp:
1805         (WebCore::SharedWorkerContext::dispatchConnect):
1806         Clean up bitrot - updated SharedWorker code to reflect new MessageEvent API.
1807
1808 2009-09-07  Xan Lopez  <xlopez@igalia.com>
1809
1810         Unreviewed build fix.
1811
1812         Add new file to sources list.
1813
1814         * GNUmakefile.am:
1815
1816 2009-09-07  Kevin Ollivier  <kevino@theolliviers.com>
1817
1818         wx build fixes for wx SVN trunk. 
1819
1820         * config.h:
1821         * platform/wx/RenderThemeWx.cpp:
1822         (WebCore::RenderThemeWx::paintButton):
1823         * platform/wx/wxcode/mac/carbon/non-kerned-drawing.cpp:
1824         (WebCore::drawTextWithSpacing):
1825         * platform/wx/wxcode/mac/carbon/scrollbar_render.cpp:
1826         (wxRenderer_DrawScrollbar):
1827
1828 2009-09-07  Chris Hills <chaz@chaz6.com>
1829
1830         Reviewed by Tor Arne Vestbø.
1831
1832         [Qt] Use direct includes for Phonon, not the pretty ones
1833
1834         * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
1835
1836 2009-09-07  Fumitoshi Ukai  <ukai@chromium.org>
1837
1838         Reviewed by Alexey Proskuryakov.
1839
1840         WebSocket API implementation.
1841         https://bugs.webkit.org/show_bug.cgi?id=28038
1842         
1843         Add build systems only for GNUmakefile.am and WebCore.xcodeproj now.
1844         Other build systems will be updated once the code is functional.
1845         Tests will be landed once the code is completed and functional.
1846
1847         * DerivedSources.cpp:
1848         * GNUmakefile.am:
1849         * WebCore.xcodeproj/project.pbxproj:
1850         * bindings/js/JSDOMWindowCustom.cpp:
1851         (WebCore::JSDOMWindow::webSocket):
1852         * bindings/js/JSEventTarget.cpp:
1853         (WebCore::toJS):
1854         (WebCore::toEventTarget):
1855         * dom/EventTarget.cpp:
1856         (WebCore::EventTarget::toWebSocket):
1857         * dom/EventTarget.h:
1858         * page/DOMWindow.idl:
1859         * websockets/WebSocket.cpp:
1860         (WebCore::ProcessWebSocketEventTask::create):
1861         (WebCore::ProcessWebSocketEventTask::performTask):
1862         (WebCore::ProcessWebSocketEventTask::ProcessWebSocketEventTask):
1863         (WebCore::isValidProtocolString):
1864         (WebCore::WebSocket::connect):
1865         (WebCore::WebSocket::send):
1866         (WebCore::WebSocket::close):
1867         (WebCore::WebSocket::bufferedAmount):
1868         (WebCore::WebSocket::addEventListener):
1869         (WebCore::WebSocket::removeEventListener):
1870         (WebCore::WebSocket::dispatchEvent):
1871         (WebCore::WebSocket::didConnect):
1872         (WebCore::WebSocket::didReceiveMessage):
1873         (WebCore::WebSocket::didClose):
1874         (WebCore::WebSocket::dispatchOpenEvent):
1875         (WebCore::WebSocket::dispatchMessageEvent):
1876         (WebCore::WebSocket::dispatchCloseEvent):
1877         * websockets/WebSocket.h:
1878         (WebCore::WebSocket::create):
1879         (WebCore::WebSocket::):
1880         (WebCore::WebSocket::setOnopen):
1881         (WebCore::WebSocket::onopen):
1882         (WebCore::WebSocket::setOnmessage):
1883         (WebCore::WebSocket::onmessage):
1884         (WebCore::WebSocket::setOnclose):
1885         (WebCore::WebSocket::onclose):
1886         (WebCore::WebSocket::toWebSocket):
1887         (WebCore::WebSocket::eventListeners):
1888         (WebCore::WebSocket::refEventTarget):
1889         (WebCore::WebSocket::derefEventTarget):
1890         * websockets/WebSocketChannel.cpp: Added.
1891         * websockets/WebSocketChannel.h: Added.
1892         * websockets/WebSocketChannelClient.h: Added.
1893         * websockets/WebSocketHandshake.cpp: Added.
1894         * websockets/WebSocketHandshake.h: Added.
1895
1896 2009-09-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1897
1898         Reviewed by Xan Lopez.
1899
1900         https://bugs.webkit.org/show_bug.cgi?id=26854
1901         [GTK] Needs API to allow more control over outgoing requests
1902
1903         Add infrastructure required to provide the new
1904         WebKitNetworkResponse object in our API.
1905
1906         * GNUmakefile.am: Add new files to the build.
1907         * platform/network/soup/ResourceRequestSoup.cpp:
1908         (WebCore::ResourceRequest::updateFromSoupMessage):
1909         * platform/network/soup/ResourceResponse.h:
1910         * platform/network/soup/ResourceResponseSoup.cpp: Added.
1911         (WebCore::ResourceResponse::toSoupMessage):
1912
1913 2009-09-07  Mads Ager  <ager@chromium.org>
1914
1915         Reviewed by Adam Barth.
1916
1917         [V8] Cleanup document/frame null-checking in V8DOMWindowCustom.cpp
1918         https://bugs.webkit.org/show_bug.cgi?id=29009
1919
1920         Be consistent in document and frame null checks.
1921
1922         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1923         (WebCore::V8Custom::WindowSetTimeoutImpl):
1924         (WebCore::ACCESSOR_GETTER):
1925         (WebCore::ACCESSOR_SETTER):
1926         (WebCore::CALLBACK_FUNC_DECL):
1927         (WebCore::NAMED_PROPERTY_GETTER):
1928         (WebCore::V8Custom::ClearTimeoutImpl):
1929
1930 2009-09-07  Xan Lopez  <xlopez@igalia.com>
1931
1932         Reviewed by Gustavo Noronha.
1933
1934         [Soup] Limit the number of connections
1935         https://bugs.webkit.org/show_bug.cgi?id=18431
1936
1937         Increase the maximum number of per host and total connections to
1938         similar values than those used by the other modern browsers. Seems
1939         to significantly improve page loading time in many cases.
1940
1941         * platform/network/soup/ResourceHandleSoup.cpp:
1942         (WebCore::ensureSessionIsInitialized):
1943
1944 2009-09-07  Michael Nordman  <michaeln@google.com>
1945
1946         Reviewed by Darin Fisher.
1947
1948         Various minor chromium appcache modifications.
1949         https://bugs.webkit.org/show_bug.cgi?id=28960
1950
1951         No new tests.
1952
1953         * bindings/v8/custom/V8DOMApplicationCacheCustom.cpp:
1954           Fix a null pointer exception.
1955         (WebCore::ACCESSOR_GETTER):
1956         * platform/network/chromium/ResourceRequest.h:
1957           Switch from appCache 'context' to 'host' terminology.
1958           Note: leaving the old deprecated accessors in place until the matching
1959           change in chrome is landed to use the new accessors.
1960         (WebCore::ResourceRequest::ResourceRequest):
1961         (WebCore::ResourceRequest::appCacheHostID):
1962         (WebCore::ResourceRequest::setAppCacheHostID):
1963         (WebCore::ResourceRequest::appCacheContextID):
1964         (WebCore::ResourceRequest::setAppCacheContextID):
1965         * platform/network/chromium/ResourceResponse.h:
1966           Add an appCacheManifestURL getter/setter.
1967           Drop the 'get' prefix from the appCacheID getter.
1968           Note: leaving the old deprecated 'get' prefixed accessor in place until the matching
1969           change in chrome is landed to use the new accessor.
1970         (WebCore::ResourceResponse::appCacheID):
1971         (WebCore::ResourceResponse::appCacheManifestURL):
1972         (WebCore::ResourceResponse::setAppCacheManifestURL):
1973         (WebCore::ResourceResponse::getAppCacheID):
1974
1975 2009-09-07  Michael Nordman  <michaeln@google.com>
1976
1977         Reviewed by Alexey Proskuryakov.
1978
1979         https://bugs.webkit.org/show_bug.cgi?id=28359
1980         Cleanup: Undo some accidental changes around DOMApplicationCache.
1981         - Restore support for constructing a DOMApplicationCache object with a null frame ptr.
1982         - Return a non-null object for window.applicationCache when the feature is disabled.
1983         - Simplify the swapCache method.
1984
1985         Test: http/tests/appcache/disabled.html
1986
1987         * loader/appcache/DOMApplicationCache.cpp:
1988         (WebCore::DOMApplicationCache::DOMApplicationCache):
1989         (WebCore::DOMApplicationCache::swapCache):
1990         (WebCore::DOMApplicationCache::scriptExecutionContext):
1991         * loader/appcache/DOMApplicationCache.h:
1992         * page/DOMWindow.cpp:
1993         (WebCore::DOMWindow::applicationCache):
1994
1995 2009-09-06  Yael Aharon  <yael.aharon@nokia.com>
1996
1997         Reviewed by Darin Adler.
1998
1999         hostname and host are mixed up when manipulating anchor elements.
2000         https://bugs.webkit.org/show_bug.cgi?id=28954
2001
2002         handle the case of port 0.
2003
2004         * html/HTMLAnchorElement.cpp:
2005         (WebCore::HTMLAnchorElement::host):
2006
2007 2009-09-06  Erik Arvidsson  <arv@chromium.org>
2008
2009         Reviewed by Eric Seidel.
2010
2011         Make hidden elements not focusable.
2012
2013         Clean up supportsFocus and isFocusable.
2014         supportsFocus now strictly means that the node can be focused by default.
2015         This is true for links, form controls and content editable elements for example.
2016         isFocusable means that the user can actually focus it.
2017         All (2) calls to supportsFocus have been updated to take this into account.
2018         
2019         Make a elements without href work correctly as well.
2020
2021         https://bugs.webkit.org/show_bug.cgi?id=27099
2022
2023         Tests: fast/events/click-focus-anchor.html
2024                fast/events/tab-focus-anchor.html
2025                fast/events/tab-focus-hidden.html
2026
2027         * dom/Element.cpp:
2028         (WebCore::Element::focus):
2029         * dom/Node.cpp:
2030         (WebCore::Node::supportsFocus):
2031         (WebCore::Node::isFocusable):
2032         * dom/Node.h:
2033         * html/HTMLAnchorElement.cpp:
2034         (WebCore::HTMLAnchorElement::supportsFocus):
2035         (WebCore::HTMLAnchorElement::isMouseFocusable):
2036         (WebCore::HTMLAnchorElement::isKeyboardFocusable):
2037         * html/HTMLAnchorElement.h:
2038         * html/HTMLAreaElement.cpp:
2039         (WebCore::HTMLAreaElement::supportsFocus):
2040         * html/HTMLAreaElement.h:
2041         * html/HTMLElement.cpp:
2042         (WebCore::HTMLElement::supportsFocus):
2043         * html/HTMLElement.h:
2044         * html/HTMLFieldSetElement.cpp:
2045         (WebCore::HTMLFieldSetElement::supportsFocus):
2046         * html/HTMLFieldSetElement.h:
2047         * html/HTMLFormControlElement.cpp:
2048         (WebCore::HTMLFormControlElement::supportsFocus):
2049         (WebCore::HTMLFormControlElement::isFocusable):
2050         * html/HTMLFrameElementBase.cpp:
2051         (WebCore::HTMLFrameElementBase::supportsFocus):
2052         * html/HTMLFrameElementBase.h:
2053         * html/HTMLLegendElement.cpp:
2054         (WebCore::HTMLLegendElement::supportsFocus):
2055         * html/HTMLLegendElement.h:
2056         * html/HTMLOptGroupElement.cpp:
2057         (WebCore::HTMLOptGroupElement::supportsFocus):
2058         (WebCore::HTMLOptGroupElement::isFocusable):
2059         * html/HTMLOptGroupElement.h:
2060         * html/HTMLOptionElement.cpp:
2061         (WebCore::HTMLOptionElement::supportsFocus):
2062         (WebCore::HTMLOptionElement::isFocusable):
2063         * html/HTMLOptionElement.h:
2064         * page/EventHandler.cpp:
2065         (WebCore::EventHandler::dispatchMouseEvent):
2066         * page/FocusController.cpp:
2067         (WebCore::FocusController::advanceFocus):
2068         * svg/SVGAElement.cpp:
2069         (WebCore::SVGAElement::supportsFocus):
2070         (WebCore::SVGAElement::isFocusable):
2071         * wml/WMLAElement.cpp:
2072         (WebCore::WMLAElement::supportsFocus):
2073         * wml/WMLAElement.h:
2074         * wml/WMLFormControlElement.cpp:
2075         (WebCore::WMLFormControlElement::supportsFocus):
2076         (WebCore::WMLFormControlElement::isFocusable):
2077         * wml/WMLFormControlElement.h:
2078
2079 2009-09-06  Joel Stanley  <joel@jms.id.au>
2080
2081         Reviewed by Dimitri Glazkov.
2082
2083         Expose functions to set the caret blink interval for Linux Chromium.
2084         Default value is set to that of RenderTheme::caretBlankInterval().
2085         Uses caretBlinkIntervalInternal to avoid overriding
2086         RenderThemeChromiumSkia::caretBlankInterval to preserve the disabling
2087         of blinking caret required for layout tests.
2088         https://bugs.webkit.org/show_bug.cgi?id=28931
2089
2090         * rendering/RenderThemeChromiumLinux.cpp:
2091         (WebCore::RenderThemeChromiumLinux::RenderThemeChromiumLinux):
2092         (WebCore::RenderThemeChromiumLinux::setCaretBlinkInterval):
2093         (WebCore::RenderThemeChromiumLinux::caretBlinkIntervalInternal):
2094         * rendering/RenderThemeChromiumLinux.h:
2095
2096 2009-09-06  Ada Chan  <adachan@apple.com>
2097
2098         Remove an extra </File> in WebCore.vcproj.
2099
2100         * WebCore.vcproj/WebCore.vcproj:
2101
2102 2009-09-06  Timothy Hatcher  <timothy@apple.com>
2103
2104         Adds a persistent setting for color format in the Web Inspector.
2105
2106         https://bugs.webkit.org/show_bug.cgi?id=28889
2107
2108         Reviewed by Dan Bernstein.
2109
2110         * English.lproj/localizedStrings.js: New strings.
2111         * inspector/front-end/Color.js: Minor style fixes.
2112         (WebInspector.Color.prototype.toString): Added. Replaces the individual
2113         "toFoo" functions. Takes a optional arguments for the color format to return.
2114         * inspector/front-end/Images/paneSettingsButtons.png: Added.
2115         * inspector/front-end/StylesSidebarPane.js:
2116         (WebInspector.StylesSidebarPane.prototype._changeColorFormat): Update the sections to show
2117         the new color format.
2118         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processColor.changeColorDisplay):
2119         Use the new toString function on Color.
2120         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processColor): Use the persistent setting
2121         to format colors by default. Add a tooltip for the color swatch.
2122         * inspector/front-end/inspector.css: New styles for the settings menu.
2123         * inspector/front-end/inspector.js:
2124         (WebInspector.loaded): Initilize the colorFormat preference.
2125
2126 2009-09-06  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2127
2128         Reviewed by Eric Seidel.
2129
2130         [Qt] Remove Qt v4.6 check from the prefetchDNS implementation
2131         https://bugs.webkit.org/show_bug.cgi?id=28993
2132
2133         * platform/network/qt/DnsPrefetchHelper.cpp:
2134         * platform/network/qt/DnsPrefetchHelper.h:
2135
2136 2009-09-06  Cameron McCormack  <cam@mcc.id.au>
2137
2138         Reviewed by Eric Seidel.
2139
2140         Drop <definition-src> support
2141         https://bugs.webkit.org/show_bug.cgi?id=28991
2142
2143         http://dev.w3.org/SVG/profiles/1.1F2/publish/changes.html#FontsChapter
2144
2145         * DerivedSources.cpp: Remove references to definition-src.
2146         * DerivedSources.make: Ditto.
2147         * GNUmakefile.am: Ditto.
2148         * WebCore.gypi: Ditto.
2149         * WebCore.pro: Ditto.
2150         * WebCore.vcproj/WebCore.vcproj: Ditto.
2151         * WebCore.xcodeproj/project.pbxproj: Ditto.
2152         * bindings/objc/DOM.mm:
2153         (WebCore::createElementClassMap): Ditto.
2154         * bindings/objc/DOMSVG.h: Ditto.
2155         * bindings/v8/DerivedSourcesAllInOne.cpp: Ditto.
2156         * bindings/v8/V8DOMWrapper.cpp: Ditto.
2157         * bindings/v8/V8Index.cpp: Ditto.
2158         * bindings/v8/V8Index.h: Ditto.
2159         * svg/SVGAllInOne.cpp: Ditto.
2160         * svg/SVGDefinitionSrcElement.cpp: Removed.
2161         * svg/SVGDefinitionSrcElement.h: Removed.
2162         * svg/SVGDefinitionSrcElement.idl: Removed.
2163         * svg/SVGFontFaceElement.cpp:
2164         (WebCore::SVGFontFaceElement::rebuildFontFace): Don't search for
2165         definition-src child.
2166         * svg/svgtags.in: Remove definition-src.
2167
2168 2009-09-05  Dimitri Glazkov  <dglazkov@chromium.org>
2169
2170         Unreviewed, build fix.
2171
2172         [Chromium] Roll out http://trac.webkit.org/changeset/48094, because the
2173         logic of retrieving default caret blink interval was incorrect (non-existent)
2174         and caused layout test flakiness.
2175
2176         * rendering/RenderThemeChromiumLinux.cpp:
2177         * rendering/RenderThemeChromiumLinux.h:
2178
2179 2009-09-05  Jian Li  <jianli@chromium.org>
2180
2181         Reviewed by NOBODY (Chromium reliability build break).
2182
2183         Back up partial change in r48072 in order to fix chromium reliability build break.
2184
2185         * bindings/v8/V8AbstractEventListener.cpp:
2186         (WebCore::V8AbstractEventListener::invokeEventHandler):
2187
2188 2009-09-05  Nicolas Weber  <thakis@chromium.org>
2189
2190         Reviewed by Darin Fisher.
2191
2192         https://bugs.webkit.org/show_bug.cgi?id=28975
2193         Fix file upload on chrome/mac. Images that have "Hide Extension" set,
2194         such as screenshots by default, can now be uploaded to sites such as
2195         imgur.com.
2196
2197         * platform/FileSystem.h:
2198         Add pathGetDisplayFileName().
2199         * platform/chromium/FileChooserChromium.cpp:
2200         (WebCore::FileChooser::basenameForWidth):
2201         Call pathGetDisplayFileName() instead of pathGetFileName().
2202         * platform/chromium/FileSystemChromiumLinux.cpp:
2203         (WebCore::pathGetDisplayFileName):
2204         Implement pathGetDisplayFileName() by delegating to pathGetFileName().
2205         * platform/chromium/FileSystemChromiumMac.mm:
2206         (WebCore::pathGetFileName):
2207         Now returns a real filename instead of a presentational one, which
2208         fixes the problem addressed by this change.
2209         (WebCore::pathGetDisplayFileName):
2210         New function that returns a presentational filename; does what
2211         pathGetDisplayFileName() did prior to this patch.
2212         * platform/chromium/FileSystemChromiumWin.cpp:
2213         (WebCore::pathGetDisplayFileName):
2214         Implement pathGetDisplayFileName() by delegating to pathGetFileName().
2215
2216 2009-09-05  Joel Stanley  <joel@jms.id.au>
2217
2218         Reviewed by David Levin.
2219
2220         Expose functions to set the caret blink interval for Linux Chromium.
2221         https://bugs.webkit.org/show_bug.cgi?id=28931
2222
2223         * rendering/RenderThemeChromiumLinux.cpp:
2224         (WebCore::RenderThemeChromiumLinux::setCaretBlinkInterval):
2225         (WebCore::RenderThemeChromiumLinux::caretBlinkInterval):
2226         * rendering/RenderThemeChromiumLinux.h:
2227
2228 2009-09-04  Dmitry Titov  <dimich@chromium.org>
2229
2230         Reviewed by David Levin.
2231
2232         Prevent UI freeze in case when too many timers are in the timer queue.
2233         https://bugs.webkit.org/show_bug.cgi?id=23865
2234
2235         The fix measures the elapsed time while executing timers. If we have too many
2236         timers and it takes significant time to fire, quit the loop and reschedule.
2237         This lets the run loop process user input (close the window for example).
2238
2239         * platform/ThreadTimers.h:
2240         * platform/ThreadTimers.cpp:
2241         (WebCore::ThreadTimers::sharedTimerFiredInternal):
2242         (WebCore::ThreadTimers::fireTimersInNestedEventLoop):
2243         Removed functions and members used before to grab a list of all expired timers.
2244         Now we fetch one by one, measuring time and quitting the loop if it takes too long.
2245         * platform/Timer.cpp:
2246         (WebCore::TimerBase::isActive):
2247         (WebCore::TimerBase::setNextFireTime):
2248         Since timers are now fired one by one, there is no need to keep track of updated timers.
2249         * manual-tests/input-starved-by-timers.html: Manual test that attempts to freeze browser by
2250         creating of enough timers. It then keeps UI frozen and after 10 seconds starts to drain the timers
2251         so the browser un-freezes. This is instead of a regular layout test because we don't have a way
2252         to inject an input events via regular run loop in DRT - instead they are directly dispatched by
2253         eventSender, which does not reproduce the UI freeze that happens with real input.
2254
2255 2009-09-04  Anders Carlsson  <andersca@apple.com>
2256
2257         Reviewed by Adele Peterson.
2258
2259         <rdar://problem/7201063>
2260         
2261         Detach any custom scrollbars before detaching the document.
2262         
2263         * page/Frame.cpp:
2264         (WebCore::Frame::setView):
2265
2266 2009-09-04  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2267
2268                 Unreviewed, build fix.
2269
2270                 Remove remaining references to UserStyleSheetLoader after r48075.
2271
2272                 * WebCore.gypi:
2273                 * WebCore.xcodeproj/project.pbxproj:
2274                 * page/qt/FrameQt.cpp:
2275                 * page/wince/FrameWince.cpp:
2276
2277 2009-09-04  Michelangelo De Simone  <micdesim@gmail.com>
2278
2279                 Reviewed by David Levin.
2280
2281                 https://bugs.webkit.org/show_bug.cgi?id=28988
2282                 Minor fix: "novalidate" attribute renamed in "noValidate", according to
2283                 HTML5 specs:
2284                 http://www.whatwg.org/specs/web-apps/current-work/#dom-fs-novalidate
2285
2286                 * html/HTMLFormElement.cpp:
2287                 (WebCore::HTMLFormElement::noValidate):
2288                 (WebCore::HTMLFormElement::setNoValidate):
2289                 * html/HTMLFormElement.h:
2290                 * html/HTMLFormElement.idl:
2291
2292 2009-09-04  Dmitry Titov  <dimich@chromium.org>
2293
2294         Reviewed by David Levin.
2295
2296         Remove unused line of code from WorkerContext
2297         https://bugs.webkit.org/show_bug.cgi?id=28990
2298
2299         * workers/WorkerContext.cpp:
2300         (WebCore::WorkerContext::importScripts):
2301
2302 2009-09-04  Darin Adler  <darin@apple.com>
2303
2304         Reviewed by Oliver Hunt.
2305
2306         Fix assertion seen when running buildbot.
2307
2308         * bindings/js/JSDOMBinding.h:
2309         (WebCore::DOMObjectWithGlobalPointer::createStructure): Create the structure without
2310         the HasDefaultMark bit since this has a custom mark function.
2311
2312 2009-09-04  Dave Hyatt  <hyatt@apple.com>
2313
2314         Reviewed by Adam Roben.
2315
2316         https://bugs.webkit.org/show_bug.cgi?id=28984, remove the remote stylesheet loader on Mac/Qt.
2317         Make sure the other code path (now used by everybody) can handle data URLs.
2318
2319         As per the post on webkit-dev, the ability to work remotely isn't working properly anyway (it doesn't
2320         hold up the pending sheet count, so you'd just FOUC on every Web page), and it's extremely unlikely
2321         that anybody is relying on this support.
2322         
2323         Tor Arne agreed it was ok to disable (he enabled it on the Qt side), and only Mac/Qt were using this
2324         code.
2325
2326         * WebCore.pro:
2327         * WebCore.xcodeproj/project.pbxproj:
2328         * dom/Document.cpp:
2329         (WebCore::Document::userStyleSheet):
2330         * dom/Document.h:
2331         * loader/FrameLoader.cpp:
2332         (WebCore::FrameLoader::begin):
2333         * loader/UserStyleSheetLoader.cpp: Removed.
2334         * loader/UserStyleSheetLoader.h: Removed.
2335         * page/Frame.cpp:
2336         (WebCore::Frame::reapplyStyles):
2337         * page/Frame.h:
2338         * page/Page.cpp:
2339         (WebCore::Page::userStyleSheetLocationChanged):
2340         (WebCore::Page::userStyleSheet):
2341         * page/mac/FrameMac.mm:
2342         * page/qt/FrameQt.cpp:
2343
2344 2009-09-04  Mikhail Naganov  <mnaganov@chromium.org>
2345
2346         Reviewed by Timothy Hatcher.
2347
2348         Add "sampling profiler" preference, simplify data display when it's set.
2349
2350         https://bugs.webkit.org/show_bug.cgi?id=28969
2351
2352         * inspector/front-end/ProfileDataGridTree.js:
2353         (WebInspector.ProfileDataGridNode.prototype.get data.formatMilliseconds):
2354         (WebInspector.ProfileDataGridNode.prototype.get data):
2355         * inspector/front-end/ProfileView.js:
2356         (WebInspector.ProfileView):
2357         * inspector/front-end/inspector.js:
2358
2359 2009-09-04  Jian Li  <jianli@chromium.org>
2360
2361         Reviewed by Adam Barth.
2362
2363         [V8] Run-time exception in onmessage handler is not forwarded to the worker object.
2364         https://bugs.webkit.org/show_bug.cgi?id=28980
2365
2366         Tested by worker-close.html.
2367
2368         * bindings/v8/ScriptFunctionCall.cpp:
2369         * bindings/v8/V8AbstractEventListener.cpp:
2370         (WebCore::V8AbstractEventListener::invokeEventHandler):
2371         * bindings/v8/V8Utilities.cpp:
2372         (WebCore::getScriptExecutionContext):
2373         (WebCore::reportException):
2374         * bindings/v8/V8Utilities.h:
2375         (WebCore::getScriptExecutionContext):
2376         * bindings/v8/custom/V8MessageChannelConstructor.cpp:
2377         (WebCore::CALLBACK_FUNC_DECL):
2378         * bindings/v8/custom/V8SharedWorkerCustom.cpp:
2379         (WebCore::CALLBACK_FUNC_DECL):
2380         * bindings/v8/custom/V8WorkerCustom.cpp:
2381         (WebCore::CALLBACK_FUNC_DECL):
2382         * bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:
2383         (WebCore::CALLBACK_FUNC_DECL):
2384         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
2385         (WebCore::CALLBACK_FUNC_DECL):
2386
2387 2009-09-04  Dave Hyatt  <hyatt@apple.com>
2388
2389         Reviewed by Anders Carlsson.
2390
2391         Remove unused m_sheet variable and setCSSStyleSheet methods.
2392
2393         * dom/Document.cpp:
2394         * dom/Document.h:
2395
2396 2009-09-04  Anders Carlsson  <andersca@apple.com>
2397
2398         Reviewed by David Hyatt and Adele Peterson.
2399
2400         (Based on a patch from Adele).
2401         
2402         Fix <rdar://problem/7185875>.
2403         
2404         * page/Frame.cpp:
2405         (WebCore::Frame::setView):
2406         Detach any custom scroll bars from the old view.
2407         
2408         * page/FrameView.cpp:
2409         (WebCore::FrameView::detachCustomScrollbars):
2410         Simplify the check (and make it work when body is null) by just checking that the scroll bar owner is
2411         not a RenderPart object.
2412
2413         * rendering/RenderObject.cpp:
2414         (WebCore::RenderObject::destroy):
2415         ASSERT that frame() is not null here and also add a null check so that release builds won't crash.
2416
2417 2009-09-04  Dave Hyatt  <hyatt@apple.com>
2418
2419         Reviewed by Adam Roben.
2420
2421         Make m_userStyleSheetLoader in Frame an OwnPtr.
2422
2423         * page/Frame.cpp:
2424         (WebCore::Frame::Frame):
2425         (WebCore::Frame::~Frame):
2426         * page/Frame.h:
2427         * page/mac/FrameMac.mm:
2428         (WebCore::Frame::setUserStyleSheetLocation):
2429         (WebCore::Frame::setUserStyleSheet):
2430
2431 2009-09-04  Timothy Hatcher  <timothy@apple.com>
2432
2433         Show color swatches in the Web Inspector before the color text so clicking them will not
2434         shift the swatch. Also makes multiple swatches in the single property toggle the color format.
2435
2436         https://bugs.webkit.org/show_bug.cgi?id=28978
2437
2438         Reviewed by Darin Adler.
2439
2440         * inspector/front-end/StylesSidebarPane.js:
2441         (WebInspector.StylePropertyTreeElement.prototype.updateTitle): Some refactoring to consolidate
2442         the processing we do on the property value. This eliminated the old nickname code, since the new
2443         WebInspector.Color class handles this. We could also simplify the color regex since more
2444         is handled by the Color class. Also no longer uses innerHTML for the linkify code.
2445         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processValue): Helper function to
2446         process a value given a regex and processor functions. 
2447         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.linkifyURL): Make an anchor for the
2448         URL with "url()" syntax surrounding it.
2449         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processColor): Makes a color, if
2450         there was an exception just return a text node.
2451         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processColor.changeColorDisplay.changeTo):
2452         Moved from later in the file.
2453         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processColor.changeColorDisplay): Ditto.
2454         * inspector/front-end/inspector.css:
2455
2456 2009-09-04  Mark Mentovai  <mark@chromium.org>
2457
2458         Reviewed by Dave Hyatt.
2459
2460         https://bugs.webkit.org/show_bug.cgi?id=28614
2461
2462         Account for scrollbar state changes that occur during layout.
2463
2464         * platform/ScrollView.cpp:
2465         (WebCore::ScrollView::updateScrollbars):
2466
2467         Perform a layout prior to checking whether the scrollbar modes are
2468         off, on, or automatic.  The modes may change during layout.
2469
2470         * WebCore.base.exp:
2471         * WebCore.order:
2472         * page/Frame.cpp:
2473         (WebCore::Frame::createView):
2474         * page/FrameView.cpp:
2475         (WebCore::FrameView::FrameView):
2476         (WebCore::FrameView::resetScrollbars):
2477         (WebCore::FrameView::layout):
2478         * page/FrameView.h:
2479         * platform/ScrollView.h:
2480
2481         Eliminate duplicated (and incorrect) scrollbar mode tracking between
2482         FrameView and ScrollView.
2483
2484 2009-09-04  Yael Aharon  <yael.aharon@nokia.com>
2485
2486         Reviewed by Darin Adler.
2487
2488         hostname and host are mixed up when manipulating anchor elements.
2489         https://bugs.webkit.org/show_bug.cgi?id=28954
2490
2491         Swapped the implementation of host and hostname, and made sure not to return
2492         the port number if it is default for the given protocol. 
2493         FireFox also avoids returning the protocol number if it is default.
2494
2495         Test: fast/dom/Element/hostname-host.html
2496
2497         * html/HTMLAnchorElement.cpp:
2498         (WebCore::HTMLAnchorElement::host):
2499         (WebCore::HTMLAnchorElement::hostname):
2500         * page/SecurityOrigin.cpp:
2501         (WebCore::SecurityOrigin::isDefaultPortForProtocol):
2502         * page/SecurityOrigin.h:
2503
2504 2009-09-04  Anders Carlsson  <andersca@apple.com>
2505
2506         Reviewed by Darin Adler and Steve Falkenburg.
2507
2508         Fix <rdar://problem/7192902>.
2509
2510         Add the necessary plumbing for having QTMovieWin use WebCore timers.
2511         
2512         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
2513         (WebCore::TaskTimer::initialize):
2514         Create the timer and call QTMovieWin::setTaskTimerFuncs.
2515         
2516         (WebCore::TaskTimer::setTaskTimerDelay):
2517         Start the timer.
2518         
2519         (WebCore::TaskTimer::stopTaskTimer):
2520         Stop the timer.
2521         
2522         (WebCore::TaskTimer::fired):
2523         Call QTMovieWin::taskTimerFired().
2524         
2525         (WebCore::MediaPlayerPrivate::load):
2526         Initialize the Task timer.
2527         
2528         * platform/graphics/win/QTMovieWin.cpp:
2529         (updateTaskTimer):
2530         Call the global stopTaskTimer function and setTaskTimerDelay.
2531         
2532         (QTMovieWin::taskTimerFired):
2533         Make this a member function.
2534         
2535         (QTMovieWin::setTaskTimerFuncs):
2536         Set the global function pointers.
2537         
2538         (QTMovieWin::initializeQuickTime):
2539         (DllMain):
2540         No need to use the QT shared timer.
2541         * platform/graphics/win/QTMovieWin.h:
2542
2543 2009-09-04  Tony Chang  <tony@chromium.org>
2544
2545         Reviewed by David Levin.
2546
2547         Fix Chromium Win compile.  Missing return statement in
2548         WebCore::RenderThemeChromiumSkia::paintSliderThumb.
2549         https://bugs.webkit.org/show_bug.cgi?id=28974
2550
2551         No new tests, build fix.
2552
2553         * rendering/RenderThemeChromiumSkia.cpp:
2554         (WebCore::RenderThemeChromiumSkia::paintSliderThumb):
2555
2556 2009-09-04  Dimitri Glazkov  <dglazkov@chromium.org>
2557
2558         Unreviewed, build fix.
2559
2560         [Chromium] Rolling out http://trac.webkit.org/changeset/48035, because it broke
2561         the build.
2562         https://bugs.webkit.org/show_bug.cgi?id=28696
2563
2564 2009-09-04  Anders Carlsson  <andersca@apple.com>
2565
2566         Fix vcproj file.
2567
2568         * WebCore.vcproj/WebCore.vcproj:
2569
2570 2009-09-03  Dave Hyatt  <hyatt@apple.com>
2571
2572         Reviewed by Adam Roben.
2573
2574         https://bugs.webkit.org/show_bug.cgi?id=28890, make simple user script injection work.
2575         
2576         This patch adds new API for adding and removing user scripts from page groups.  User scripts
2577         are bundled together in isolated worlds (you can have multiple scripts together in the same
2578         world).
2579
2580         Added userscripts/ directory for holding new tests (along with a simple test of script injection).
2581
2582         * WebCore.base.exp:
2583         * WebCore.vcproj/WebCore.vcproj:
2584         * WebCore.xcodeproj/project.pbxproj:
2585         * bindings/js/ScriptController.cpp:
2586         (WebCore::ScriptController::evaluateInIsolatedWorld):
2587         * bindings/js/ScriptController.h:
2588         * bindings/v8/ScriptController.cpp:
2589         (WebCore::ScriptController::evaluateInIsolatedWorld):
2590         * bindings/v8/ScriptController.h:
2591         * loader/FrameLoader.cpp:
2592         (WebCore::FrameLoader::finishedParsing):
2593         (WebCore::FrameLoader::dispatchDocumentElementAvailable):
2594         * page/Frame.cpp:
2595         (WebCore::Frame::injectUserScripts):
2596         (WebCore::Frame::injectUserScriptsForWorld):
2597         * page/Frame.h:
2598         * page/PageGroup.cpp:
2599         (WebCore::PageGroup::~PageGroup):
2600         (WebCore::PageGroup::addUserScript):
2601         (WebCore::PageGroup::removeUserContentForWorld):
2602         (WebCore::PageGroup::removeAllUserContent):
2603         * page/PageGroup.h:
2604         (WebCore::PageGroup::userScripts):
2605         * page/UserScript.h: Added.
2606         (WebCore::UserScript::UserScript):
2607         (WebCore::UserScript::source):
2608         (WebCore::UserScript::url):
2609         (WebCore::UserScript::patterns):
2610         (WebCore::UserScript::worldID):
2611         (WebCore::UserScript::injectionTime):
2612         * page/UserScriptTypes.h: Added.
2613         (WebCore::):
2614
2615 2009-09-04  Alexey Proskuryakov  <ap@apple.com>
2616
2617         Reviewed by Eric Seidel.
2618
2619         https://bugs.webkit.org/show_bug.cgi?id=26402
2620         Crashes when using a detached DocumentType node
2621
2622         Test: fast/dom/DOMImplementation/detached-doctype.html
2623
2624         DocumentType nodes are the only one that can have null document(), and they can never have
2625         children, so they are a degenerate case for NodeLists.
2626
2627         * dom/Node.cpp:
2628         (WebCore::Node::childNodes): Don't try register node list with document if there's no
2629         document. Since there are no changes possible for a DocumentType's node list, this is not
2630         necessary.
2631         (WebCore::Node::registerDynamicNodeList): Ditto.
2632         (WebCore::Node::unregisterDynamicNodeList): Ditto. I couldn't find a scenario where this
2633         was invoked for a DocumentType node, but I also couldn't prove that it can't be (the
2634         de-registration code path that I saw taken was via Node destructor, and that already has
2635         a null check for document).
2636
2637         * bindings/js/JSNodeCustom.cpp:
2638         (WebCore::JSNode::addEventListener): Bail out if there is no document (just as we already do
2639         if there is no window).
2640         (WebCore::JSNode::removeEventListener): Ditto.
2641
2642 2009-09-04  Xan Lopez  <xlopez@igalia.com>
2643
2644         Reviewed by Gustavo Noronha.
2645
2646         [GTK] loadFinished never emitted
2647         https://bugs.webkit.org/show_bug.cgi?id=28935
2648
2649         Do not report errors right away from
2650         ResourceHandle::start. Instead return true and schedule an error
2651         to be reported in the handle later. Otherwise WebCore gets
2652         confused and thinks the resource never finished loading, making it
2653         not emit the finished status.
2654
2655         * platform/network/soup/ResourceHandleSoup.cpp:
2656         (WebCore::startHttp):
2657         (WebCore::):
2658
2659 2009-09-04  Ben Murdoch  <benm@google.com>
2660
2661         Reviewed by Eric Seidel.
2662
2663         [V8] DOM Storage bindings: Event Handler should create StorageEvents
2664         https://bugs.webkit.org/show_bug.cgi?id=28942
2665         
2666         Tests:
2667         Causes the following tests that were failing with V8 to pass:
2668         * storage/domstorage/localstorage/onstorage-attribute-setwindow.html
2669         * storage/domstorage/localstorage/complex-keys.html
2670         * storage/domstorage/localstorage/onstorage-attribute-markup.html
2671         * storage/domstorage/localstorage/simple-events.html
2672         * storage/domstorage/localstorage/onstorage-attribute-set-attribute.html
2673         * storage/domstorage/localstorage/index-get-and-set.html
2674         * storage/domstorage/sessionstorage/onstorage-attribute-setwindow.html
2675         * storage/domstorage/sessionstorage/onstorage-attribute-markup.html
2676         * storage/domstorage/sessionstorage/simple-events.html
2677         * storage/domstorage/sessionstorage/onstorage-attribute-set-attribute.html
2678         * storage/domstorage/sessionstorage/index-get-and-set.html
2679
2680         Code changes:
2681         * bindings/v8/V8DOMWrapper.cpp:
2682         (WebCore::V8DOMWrapper::convertEventToV8Object):  Create StorageEvents.
2683         * bindings/v8/custom/V8StorageCustom.cpp:
2684         (WebCore::storageGetter): Check if we are retrieving the length property and return the number of items in the object rather than a property named length when invoking the getItem() member of local/sessionStorage.
2685
2686 2009-09-03  Pavel Feldman  <pfeldman@chromium.org>
2687
2688         Reviewed by Timothy Hatcher.
2689
2690         https://bugs.webkit.org/show_bug.cgi?id=28911
2691
2692         * WebCore.gypi:
2693         * WebCore.vcproj/WebCore.vcproj:
2694         * inspector/InspectorBackend.cpp:
2695         (WebCore::InspectorBackend::dispatchOnInjectedScript):
2696         * inspector/InspectorBackend.h:
2697         * inspector/InspectorBackend.idl:
2698         * inspector/front-end/ConsoleView.js:
2699         (WebInspector.ConsoleView.prototype.doEvalInWindow):
2700         (WebInspector.ConsoleView.prototype._formatarray):
2701         (WebInspector.ConsoleView.prototype._formatnode):
2702         * inspector/front-end/DOMAgent.js:
2703         * inspector/front-end/ElementsPanel.js:
2704         (WebInspector.ElementsPanel.this.treeOutline.focusedNodeChanged):
2705         (WebInspector.ElementsPanel.prototype.searchCanceled):
2706         (WebInspector.ElementsPanel.prototype.performSearch):
2707         * inspector/front-end/InjectedScript.js:
2708         (InjectedScript.dispatch):
2709         * inspector/front-end/InjectedScriptAccess.js: Added.
2710         (InjectedScriptAccess._installHandler.InjectedScriptAccess.methodName):
2711         (InjectedScriptAccess._installHandler):
2712         * inspector/front-end/MetricsSidebarPane.js:
2713         (WebInspector.MetricsSidebarPane.prototype.update):
2714         (WebInspector.MetricsSidebarPane.prototype.editingCommitted):
2715         * inspector/front-end/ObjectPropertiesSection.js:
2716         (WebInspector.ObjectPropertiesSection.prototype.update):
2717         (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate):
2718         (WebInspector.ObjectPropertyTreeElement.prototype.applyExpression):
2719         * inspector/front-end/PropertiesSidebarPane.js:
2720         (WebInspector.PropertiesSidebarPane.prototype.update):
2721         * inspector/front-end/ResourcesPanel.js:
2722         (WebInspector.ResourceSidebarTreeElement.prototype.ondblclick):
2723         * inspector/front-end/ScriptsPanel.js:
2724         (WebInspector.ScriptsPanel.prototype.doEvalInCallFrame):
2725         * inspector/front-end/StylesSidebarPane.js:
2726         (WebInspector.StylesSidebarPane.prototype.update):
2727         (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted):
2728         (WebInspector.BlankStylePropertiesSection.prototype.editingCommitted):
2729         (WebInspector.StylePropertyTreeElement.prototype):
2730         * inspector/front-end/inspector.html:
2731
2732 2009-09-04  Tony Chang  <tony@chromium.org>
2733
2734         Reviewed by Eric Seidel.
2735
2736         Implement <input type="range"> for Chromium Linux by painting
2737         the slider and the thumb using skia.
2738         https://bugs.webkit.org/show_bug.cgi?id=28928
2739
2740         Covered by existing tests (we're currently hitting an assert for them).
2741
2742         * rendering/RenderThemeChromiumLinux.cpp:
2743         (WebCore::RenderThemeChromiumLinux::adjustSliderThumbSize):
2744         * rendering/RenderThemeChromiumLinux.h:
2745         * rendering/RenderThemeChromiumSkia.cpp:
2746         (WebCore::drawVertLine):
2747         (WebCore::drawHorizLine):
2748         (WebCore::drawBox):
2749         (WebCore::RenderThemeChromiumSkia::paintSliderTrack):
2750         (WebCore::RenderThemeChromiumSkia::paintSliderThumb):
2751         * rendering/RenderThemeChromiumSkia.h:
2752
2753 2009-09-04  Kent Tamura  <tkent@chromium.org>
2754
2755         Reviewed by Eric Seidel.
2756
2757         - Implement <input type=color> as a text field.
2758         - ValidityState::typeMismatch supports for type=color.
2759         https://bugs.webkit.org/show_bug.cgi?id=28966
2760
2761         Tests: fast/forms/ValidityState-patternMismatch-unsupported.html
2762                fast/forms/ValidityState-typeMismatch-color.html
2763
2764         * html/HTMLInputElement.cpp:
2765         (WebCore::HTMLInputElement::valueMissing):
2766         (WebCore::HTMLInputElement::patternMismatch):
2767         (WebCore::HTMLInputElement::setInputType):
2768         (WebCore::HTMLInputElement::formControlType):
2769         (WebCore::HTMLInputElement::saveFormControlState):
2770         (WebCore::HTMLInputElement::restoreFormControlState):
2771         (WebCore::HTMLInputElement::accessKeyAction):
2772         (WebCore::HTMLInputElement::rendererIsNeeded):
2773         (WebCore::HTMLInputElement::createRenderer):
2774         (WebCore::HTMLInputElement::appendFormData):
2775         (WebCore::HTMLInputElement::valueWithDefault):
2776         (WebCore::HTMLInputElement::storesValueSeparateFromAttribute):
2777         (WebCore::HTMLInputElement::defaultEventHandler):
2778         (WebCore::HTMLInputElement::isRequiredFormControl):
2779         (WebCore::HTMLInputElement::dataList):
2780         * html/HTMLInputElement.h:
2781         (WebCore::HTMLInputElement::):
2782         (WebCore::HTMLInputElement::isTextField):
2783         * html/ValidityState.cpp:
2784         (WebCore::ValidityState::typeMismatch):
2785         (WebCore::ValidityState::isValidColorString):
2786         * html/ValidityState.h:
2787
2788 2009-09-04  Mads Ager  <ager@chromium.org>
2789
2790         Reviewed by David Levin.
2791
2792         [V8] Crash when updating document cache
2793         https://bugs.webkit.org/show_bug.cgi?id=28965
2794
2795         Initialization of a V8 JavaScript context can fail.  When that
2796         happens, do not attempt to update the document wrapper cache.
2797
2798         This code path is exercised by http/tests/security/javascriptURL/javascriptURL-in-new-iframe.html.
2799
2800         * bindings/v8/V8Proxy.cpp:
2801         (WebCore::V8Proxy::updateDocument):
2802
2803 2009-09-04  Yaar Schnitman  <yaar@chromium.org>
2804
2805         Reviewed by Eric Seidel.
2806
2807         Two bugs:
2808
2809         https://bugs.webkit.org/show_bug.cgi?id=25489
2810         CSS property background-position is now serialized in shorthand string as
2811         background-position-x background-position-y, as the specification requires
2812         (See http://www.w3.org/TR/2008/WD-css3-background-20080910/#the-background-position).
2813         
2814
2815         https://bugs.webkit.org/show_bug.cgi?id=26541
2816         CSS background-color is now be serialized before other background properties, 
2817         as CSS specification requires (See http://dev.w3.org/csswg/cssom/#css-value).  
2818
2819         An existing layout test that accepted wrong order and skipped position test 
2820         had to be modified.
2821
2822         * css/CSSMutableStyleDeclaration.cpp:
2823         (WebCore::CSSMutableStyleDeclaration::getPropertyValue):
2824
2825 2009-09-03  Kent Tamura  <tkent@chromium.org>
2826
2827         Reviewed by David Levin.
2828
2829         Add support for HTMLTextAreaElement.textLength
2830         https://bugs.webkit.org/show_bug.cgi?id=28929
2831
2832         Test: fast/forms/textarea-textlength.html
2833
2834         * html/HTMLTextAreaElement.h:
2835         (WebCore::HTMLTextAreaElement::textLength):
2836         * html/HTMLTextAreaElement.idl:
2837
2838 2009-09-03  Alexey Proskuryakov  <ap@apple.com>
2839
2840         Reviewed by Darin Adler.
2841
2842         <rdar://problem/7180197>, https://bugs.webkit.org/show_bug.cgi?id=28822
2843         REGRESSION(r31231): Creating document with current document's DOCTYPE causes crashes
2844
2845         Test: fast/dom/DOMImplementation/createDocument-with-used-doctype.html
2846
2847         * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createDocument): Even though we
2848         cannot raise an exception immediately out of fear of breaking Acid3, we shouldn't use a
2849         DocumentType node in two documents.
2850
2851 2009-09-03  Brady Eidson  <beidson@apple.com>
2852
2853         Reviewed by Sam Weinig.
2854
2855         Page Cache should support pages with Frames.
2856         https://bugs.webkit.org/show_bug.cgi?id=13631
2857
2858         Tests: fast/events/pageshow-pagehide-on-back-cached-with-frames.html
2859                fast/loader/frames-with-unload-handlers-in-page-cache.html
2860
2861         * loader/FrameLoader.cpp:
2862         (WebCore::FrameLoader::canCachePageContainingThisFrame):
2863         (WebCore::FrameLoader::logCanCacheFrameDecision):
2864
2865 2009-09-03  Steve VanDeBogart  <vandebo@chromium.org>
2866
2867         Reviewed by Eric Seidel.
2868
2869         Handle middle click in Chromium like QT
2870         https://bugs.webkit.org/show_bug.cgi?id=28696
2871
2872         Tested by middle-click-onpaste.html.
2873
2874         * platform/Pasteboard.h:
2875         * platform/chromium/ChromiumBridge.h:
2876         * platform/chromium/ClipboardChromium.cpp:
2877         (WebCore::ClipboardChromium::getData):
2878         * platform/chromium/PasteboardChromium.cpp:
2879         (WebCore::Pasteboard::Pasteboard):
2880         (WebCore::Pasteboard::isSelectionMode):
2881         (WebCore::Pasteboard::setSelectionMode):
2882         (WebCore::Pasteboard::canSmartReplace):
2883         (WebCore::Pasteboard::plainText):
2884         (WebCore::Pasteboard::documentFragment):
2885         * platform/chromium/PasteboardPrivate.h:
2886         (WebCore::PasteboardPrivate::):
2887
2888 2009-09-03  Brady Eidson  <beidson@apple.com>
2889
2890         Reviewed by Sam Weinig.
2891
2892         More partial work towards "Page Cache should support pages with Frames"
2893         https://bugs.webkit.org/show_bug.cgi?id=13631
2894
2895         Fix a bug where subframes weren't asked if they were cacheable.
2896
2897         No new tests, especially since page caching for frames isn't turned on yet.
2898         A layout test will come in my next patch, which enables frames in the page cache.
2899
2900         * loader/FrameLoader.cpp:
2901         (WebCore::FrameLoader::canCachePageContainingThisFrame):
2902
2903 2009-09-03  Adam Barth  <abarth@webkit.org>
2904
2905         Reviewed by eric@webkit.org.
2906
2907         https://bugs.webkit.org/show_bug.cgi?id=24696
2908
2909         Added mixed content methods to FrameLoaderClient.
2910
2911         * loader/EmptyClients.h:
2912         (WebCore::EmptyFrameLoaderClient::didDisplayInsecureContent):
2913         (WebCore::EmptyFrameLoaderClient::didRunInsecureContent):
2914         * loader/FrameLoaderClient.h:
2915
2916 2009-09-03  Kevin Watters  <kevinwatters@gmail.com>
2917
2918         Reviewed by Kevin Ollivier.
2919
2920         [wx] Frames support
2921         https://bugs.webkit.org/show_bug.cgi?id=19041
2922
2923         * page/wx/EventHandlerWx.cpp:
2924         (WebCore::EventHandler::passMousePressEventToSubframe):
2925         (WebCore::EventHandler::passMouseMoveEventToSubframe):
2926         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
2927         (WebCore::EventHandler::passWheelEventToWidget):
2928         (WebCore::EventHandler::tabsToAllControls):
2929         (WebCore::EventHandler::passSubframeEventToSubframe):
2930         (WebCore::EventHandler::passMouseDownEventToWidget):
2931         * platform/wx/RenderThemeWx.cpp:
2932         (WebCore::nativeWindowForRenderObject):
2933         (WebCore::RenderThemeWx::paintButton):
2934         (WebCore::RenderThemeWx::paintTextField):
2935         (WebCore::RenderThemeWx::paintMenuList):
2936         (WebCore::RenderThemeWx::paintMenuListButton):
2937         * platform/wx/ScrollbarThemeWx.cpp: Added.
2938         (WebCore::ScrollbarTheme::nativeTheme):
2939         (WebCore::ScrollbarThemeWx::~ScrollbarThemeWx):
2940         (WebCore::ScrollbarThemeWx::scrollbarThickness):
2941         (WebCore::ScrollbarThemeWx::hasThumb):
2942         (WebCore::ScrollbarThemeWx::buttonSize):
2943         (WebCore::ScrollbarThemeWx::backButtonRect):
2944         (WebCore::ScrollbarThemeWx::forwardButtonRect):
2945         (WebCore::ScrollbarThemeWx::trackRect):
2946         (WebCore::ScrollbarThemeWx::paintScrollCorner):
2947         (WebCore::ScrollbarThemeWx::paint):
2948         * platform/wx/ScrollbarThemeWx.h: Added.
2949         (WebCore::ScrollbarThemeWx::hasButtons):
2950         * platform/wx/TemporaryLinkStubs.cpp:
2951         * platform/wx/wxcode/gtk/scrollbar_render.cpp: Added.
2952         (wxStyleForPart):
2953         (GetButtonWidget):
2954         (wxGetGdkWindowForDC):
2955         (wxRenderer_DrawScrollbar):
2956         * platform/wx/wxcode/mac/carbon/scrollbar_render.cpp: Added.
2957         (wxScrollbarPartToHIPressedState):
2958         (wxRenderer_DrawScrollbar):
2959         * platform/wx/wxcode/scrollbar_render.h: Added.
2960         (calcThumbStartAndLength):
2961         * platform/wx/wxcode/win/non-kerned-drawing.cpp:
2962         (WebCore::drawTextWithSpacing):
2963         * platform/wx/wxcode/win/scrollbar_render.cpp: Added.
2964         (GraphicsHDC::GraphicsHDC):
2965         (GraphicsHDC::~GraphicsHDC):
2966         (GraphicsHDC::operator HDC):
2967         (getTSStateForPart):
2968         (wxRenderer_DrawScrollbar):
2969         * webcore-wx.bkl:
2970
2971 2009-09-03  Yael Aharon  <yael.aharon@nokia.com>
2972
2973         Reviewed by Simon Hausmann.
2974
2975         [Qt] Page content is not displayed in case of HTTP status error
2976         https://bugs.webkit.org/show_bug.cgi?id=28949
2977
2978         If the server sent content, show it to the user instead of an error,
2979         even if the HTTP status code is not success.
2980
2981         * platform/network/qt/QNetworkReplyHandler.cpp:
2982         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
2983         (WebCore::QNetworkReplyHandler::finish):
2984         (WebCore::QNetworkReplyHandler::forwardData):
2985         (WebCore::QNetworkReplyHandler::resetState):
2986         * platform/network/qt/QNetworkReplyHandler.h:
2987
2988 2009-09-03  Drew Wilson  <atwilson@google.com>
2989
2990         Reviewed by Dimitri Glazkov.
2991
2992         Need to update v8 bindings to support passing multiple ports to postMessage()
2993         https://bugs.webkit.org/show_bug.cgi?id=28839
2994
2995         Added support for passing MessagePortArray to v8 bindings.
2996
2997         New tests that now pass with V8:
2998                fast/events/message-port-multi.html
2999                fast/workers/worker-context-multi-port.html
3000                fast/workers/worker-multi-port.html
3001
3002         * WebCore.gypi:
3003         Added V8MessageEventCustom.cpp and V8MessagePortCustom.h
3004         * bindings/v8/custom/V8CustomBinding.h:
3005         Added custom postMessage() handlers for various classes.
3006         * bindings/v8/custom/V8DOMWindowCustom.cpp:
3007         (WebCore::DOMWindowPostMessage):
3008         Added custom handler that supports MessagePortArray.
3009         * bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp:
3010         (WebCore::DedicatedWorkerContextPostMessage):
3011         Added custom handler that supports MessagePortArray.
3012         * bindings/v8/custom/V8MessageEventCustom.cpp: Added.
3013         (WebCore::MessageEventPorts):
3014         Added getter for ports attribute.
3015         (WebCore::MessageEventInitMessageEvent):
3016         Added custom handler that supports MessagePortArray.
3017         * bindings/v8/custom/V8MessagePortCustom.cpp:
3018         (WebCore::MessagePortPostMessage):
3019         Added custom handler that supports MessagePortArray.
3020         (WebCore::getMessagePortArray):
3021         Added helper function that supports converting from a sequence-like object to a MessagePortArray.
3022         * bindings/v8/custom/V8MessagePortCustom.h: Added.
3023         Added declaration for getMessagePortArray().
3024         * bindings/v8/custom/V8WorkerCustom.cpp:
3025         (WebCore::WorkerPostMessage):
3026         Added custom handler that supports MessagePortArray.
3027
3028 2009-09-03  Drew Wilson  <atwilson@google.com>
3029
3030         Reviewed by Sam Weinig.
3031
3032         Need to update JS bindings and IDL files to support multiple message ports in postMessage()
3033         https://bugs.webkit.org/show_bug.cgi?id=28460
3034
3035         Added new toJSSequence() API which validates that a JSValue meets the WebIDL criteria for a sequence.
3036
3037         Tests: fast/events/message-port-multi.html
3038                fast/workers/worker-context-multi-port.html
3039                fast/workers/worker-multi-port.html
3040
3041         * GNUmakefile.am:
3042         * WebCore.gypi:
3043         * WebCore.pro:
3044         * WebCore.vcproj/WebCore.vcproj:
3045         * WebCore.xcodeproj/project.pbxproj:
3046         * WebCoreSources.bkl:
3047         Added JSMessagePortCustom.h and JSMessageEventCustom.cpp.
3048         * bindings/js/JSDOMBinding.cpp:
3049         (WebCore::toJSSequence):
3050         Added toJSSequence() API to do validation on sequence-like objects per WebIDL.
3051         * bindings/js/JSDOMBinding.h:
3052         * bindings/js/JSDOMWindowCustom.cpp:
3053         (WebCore::JSDOMWindow::postMessage):
3054         Added custom handler for postMessage() that handles being passed MessagePortArrays.
3055         * bindings/js/JSDedicatedWorkerContextCustom.cpp:
3056         (WebCore::JSDedicatedWorkerContext::postMessage):
3057         Added custom handler for postMessage() that handles being passed MessagePortArrays.
3058         * bindings/js/JSMessageEventCustom.cpp: Added.
3059         (WebCore::JSMessageEvent::ports):
3060         Added custom ports() getter that converts from MessagePortArray to JSArray.
3061         (WebCore::JSMessageEvent::initMessageEvent):
3062         Added support for passing a MessagePortArray.
3063         * bindings/js/JSMessagePortCustom.cpp:
3064         (WebCore::JSMessagePort::postMessage):
3065         Added custom handler for postMessage() that handles being passed MessagePortArray.
3066         (WebCore::fillMessagePortArray):
3067         New helper routine that validates/converts from a JS sequence o a WebCore::MessagePortArray.
3068         * bindings/js/JSMessagePortCustom.h: Added.
3069         * bindings/js/JSWorkerCustom.cpp:
3070         (WebCore::JSWorker::postMessage):
3071         Added custom handler for postMessage() that handles being passed MessagePortArray.
3072         * dom/MessageEvent.cpp:
3073         * dom/MessageEvent.h:
3074         (WebCore::MessageEvent::ports):
3075         Changed ports() to return a MessagePortArray* since this value can be null.
3076         * dom/MessageEvent.idl:
3077         Updated IDL to match HTML5 spec (now accepts MessagePortArrays instead of a solitary MessagePort).
3078         * dom/MessagePort.cpp:
3079         * dom/MessagePort.h:
3080         * dom/MessagePort.idl:
3081         Updated IDL to match HTML5 spec (postMessage() now accepts MessagePortArrays instead of a solitary MessagePort).
3082         * page/DOMWindow.h:
3083         * page/DOMWindow.idl:
3084         Updated IDL to match HTML5 spec (postMessage() now accepts MessagePortArrays instead of a solitary MessagePort).
3085         * workers/DedicatedWorkerContext.cpp:
3086         * workers/DedicatedWorkerContext.h:
3087         * workers/DedicatedWorkerContext.idl:
3088         Updated IDL to match HTML5 spec (postMessage() now accepts MessagePortArrays instead of a solitary MessagePort).
3089         * workers/Worker.cpp:
3090         * workers/Worker.h:
3091         * workers/Worker.idl:
3092         Updated IDL to match HTML5 spec (postMessage() now accepts MessagePortArrays instead of a solitary MessagePort).
3093
3094 2009-09-03  Pavel Feldman  <pfeldman@chromium.org>
3095
3096         Reviewed by Timothy Hatcher.
3097
3098         WebInspector: Do not query non-function call frames for function name.
3099
3100         https://bugs.webkit.org/show_bug.cgi?id=28799
3101
3102         * inspector/front-end/InjectedScript.js:
3103         (InjectedScript.CallFrameProxy):
3104         (InjectedScript.CallFrameProxy.prototype._wrapScopeChain):
3105
3106 2009-09-03  Pavel Feldman  <pfeldman@chromium.org>
3107
3108         Reviewed by Timothy Hatcher.
3109
3110         Crash after typing "clear" and pressing return in inspector console.
3111
3112         https://bugs.webkit.org/show_bug.cgi?id=28684
3113
3114         * inspector/front-end/InjectedScript.js:
3115         (InjectedScript._clearConsoleMessages):
3116         (InjectedScript._inspectObject):
3117         (InjectedScript._ensureCommandLineAPIInstalled):
3118
3119 2009-09-03  Vitaly Repeshko  <vitalyr@chromium.org>
3120
3121         Reviewed by Adam Barth.
3122
3123         [V8] Squeezed out some performance from string conversion.
3124         https://bugs.webkit.org/show_bug.cgi?id=28945
3125
3126         * bindings/v8/V8Binding.cpp:
3127         (WebCore::WebCoreStringResource::WebCoreStringResource):
3128         (WebCore::WebCoreStringResource::~WebCoreStringResource):
3129         (WebCore::WebCoreStringResource::data):
3130         (WebCore::WebCoreStringResource::length):
3131         (WebCore::WebCoreStringResource::atomicString):
3132         (WebCore::WebCoreStringResource::string):
3133         Avoid calling virtual length method. Be more explicit with
3134         external memory computation. Avoid function calls in data and
3135         length.
3136         (WebCore::):
3137         (WebCore::v8StringToWebCoreString):
3138         (WebCore::v8StringToAtomicWebCoreString):
3139         (WebCore::v8NonStringValueToWebCoreString):
3140         (WebCore::v8NonStringValueToAtomicWebCoreString):
3141         Avoid extra calls of WebCoreStringResource::toString. When
3142         AtomicString is computed pass it immediately when constructing
3143         WebCoreStringResource. Use inline buffer for small strings.
3144         * bindings/v8/V8Binding.h:
3145         (WebCore::v8ValueToWebCoreString):
3146         (WebCore::v8ValueToAtomicWebCoreString):
3147         (WebCore::toString):
3148         Inline dispatch of string vs. non-string values.
3149
3150 2009-09-03  Vitaly Repeshko  <vitalyr@chromium.org>
3151
3152         Reviewed by Adam Barth.
3153
3154         [V8] Inlined common case of V8IsolatedWorld::getEntered to speed
3155         up V8Proxy lookup.
3156         https://bugs.webkit.org/show_bug.cgi?id=28946
3157
3158         * bindings/v8/V8IsolatedWorld.cpp:
3159         (WebCore::V8IsolatedWorld::getEnteredImpl):
3160         * bindings/v8/V8IsolatedWorld.h:
3161         (WebCore::V8IsolatedWorld::getEntered):
3162
3163 2009-09-03  Kent Tamura  <tkent@chromium.org>
3164
3165         Reviewed by Eric Seidel.
3166
3167         Fix a regression bug that maxLength doesn't work for IME input.
3168         https://bugs.webkit.org/show_bug.cgi?id=25253
3169
3170         Tests: fast/forms/input-maxlength-ime-completed.html
3171                fast/forms/input-maxlength-ime-preedit.html
3172
3173         * dom/InputElement.cpp:
3174         (WebCore::InputElement::handleBeforeTextInsertedEvent):
3175         * dom/InputElement.h:
3176         * html/HTMLInputElement.cpp:
3177         (WebCore::HTMLInputElement::defaultEventHandler):
3178         * wml/WMLInputElement.cpp:
3179         (WebCore::WMLInputElement::defaultEventHandler):
3180
3181 2009-09-03  Cameron McCormack  <cam@mcc.id.au>
3182
3183         Reviewed by Eric Seidel.
3184
3185         Make SVGStyleElement title/media/type setters do something
3186         https://bugs.webkit.org/show_bug.cgi?id=28828
3187
3188         Test: svg/dom/style-reflect.html
3189
3190         * svg/SVGStyleElement.cpp:
3191         (WebCore::SVGStyleElement::setXmlspace): Actually change the attribute.
3192         (WebCore::SVGStyleElement::setType): Ditto.
3193         (WebCore::SVGStyleElement::setMedia): Ditto.
3194         (WebCore::SVGStyleElement::setTitle): Ditto.
3195
3196 2009-09-03  Ben Murdoch  <benm@google.com>
3197
3198         https://bugs.webkit.org/show_bug.cgi?id=28872
3199         
3200         Fixes a bug where handleEvent() in the V8 Custom SQL Statement Error binding would not return the correct result to WebCore after invoking the callback.
3201
3202         Test: storage/statement-error-callback.html
3203
3204         * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
3205         (WebCore::V8CustomSQLStatementErrorCallback::handleEvent): Return true from handleEvent() if the callback raised an exception or the callback itself returned true.
3206
3207 2009-09-03  Maxime Simon  <simon.maxime@gmail.com>
3208
3209         Reviewed by Eric Seidel.
3210
3211         [Haiku] Adding three font-specific files to WebCore:
3212         FontCustomPlatformData.cpp, FontCustomPlatformData.h,
3213         and FontPlatformData.h
3214         https://bugs.webkit.org/show_bug.cgi?id=28131
3215
3216         * platform/graphics/haiku/FontCustomPlatformData.cpp: Added.
3217         (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
3218         (WebCore::FontCustomPlatformData::fontPlatformData):
3219         (WebCore::createFontCustomPlatformData):
3220         * platform/graphics/haiku/FontCustomPlatformData.h: Added.
3221         (WebCore::FontCustomPlatformData::FontCustomPlatformData):
3222         * platform/graphics/haiku/FontPlatformData.h: Added.
3223         (WebCore::FontPlatformData::FontPlatformData):
3224         (WebCore::FontPlatformData::font):
3225         (WebCore::FontPlatformData::size):
3226         (WebCore::FontPlatformData::bold):
3227         (WebCore::FontPlatformData::oblique):
3228         (WebCore::FontPlatformData::hashTableDeletedFontValue):
3229
3230 2009-09-02  Brady Eidson  <beidson@apple.com>
3231
3232         Reviewed by Darin Adler.
3233
3234         More partial work towards "Page Cache should support pages with Frames"
3235         https://bugs.webkit.org/show_bug.cgi?id=13631
3236
3237         No new tests. (No change in behavior, current tests pass).
3238
3239         * loader/DocumentLoader.cpp:
3240         (WebCore::DocumentLoader::stopLoading): Adopt the new enum form for FrameLoader::stopLoading().
3241
3242         * loader/FrameLoader.cpp:
3243         (WebCore::FrameLoader::stopLoading): Take an enum to decide whether to dispatch no unload events,
3244           only unload, or unload and pagehide.
3245         (WebCore::FrameLoader::closeURL):
3246         (WebCore::FrameLoader::scheduleRedirection):
3247         (WebCore::FrameLoader::cachePageForHistoryItem): Call pageHidden().
3248         (WebCore::FrameLoader::pageHidden): Add to dispatch the pagehide event to all frames in the case
3249           where a page is added to the PageCache.
3250         * loader/FrameLoader.h:
3251
3252         * loader/FrameLoaderTypes.h: Add an UnloadEventPolicy enum.
3253
3254 2009-09-02  Brady Eidson  <beidson@apple.com>
3255
3256         Reviewed by Darin Adler.
3257
3258         More partial work towards "Page Cache should support pages with Frames"
3259         https://bugs.webkit.org/show_bug.cgi?id=13631
3260
3261         - More CachedFrame destruction work.
3262         - Including related Frame and FrameLoader changes and cleanup.
3263
3264         No new tests. (No change in behavior, current tests pass).
3265
3266         * history/CachedFrame.cpp:
3267         (WebCore::CachedFrameBase::restore): Rebuild up the whole FrameTree when restoring.
3268         (WebCore::CachedFrame::CachedFrame): Tear down the entire FrameTree when caching.
3269         (WebCore::CachedFrame::destroy): For child frames that are being destroyed while in
3270           the PageCache, do lightweight cleanup to:
3271           A - Prevent referring to a stale Page object.
3272           B - Prevent World Leaks of WebKit objects.
3273
3274         * loader/FrameLoader.cpp:
3275         (WebCore::FrameLoader::stopAllLoaders): stopAllLoaders() should never be called on Frames that are
3276           in the PageCache. ASSERT that fact.
3277         (WebCore::FrameLoader::open): Remove a bogus release-build workaround, as the comment right above it
3278           explains it is not effective, and it'd be better to see the crash locally instead of downstream.
3279         (WebCore::FrameLoader::closeAndRemoveChild): Make sure the owner element has a page pointer before
3280           referencing it.
3281         (WebCore::FrameLoader::detachFromParent): Use the new detachViewsAndDocumentLoader() call
3282         (WebCore::FrameLoader::detachViewsAndDocumentLoader): Does lightweight cleanup of client (WebKit) objects.
3283         * loader/FrameLoader.h:
3284
3285         * page/Frame.cpp:
3286         (WebCore::Frame::detachFromPage): Simply clear the Page pointer without doing any other work.
3287         (WebCore::Frame::pageDestroyed): Use the new detachFromPage().
3288         * page/Frame.h:
3289
3290 2009-09-02  Jungshik Shin  <jshin@chromium.org>
3291
3292         Reviewed by Dimitri Glazkov
3293
3294         [Chromium] Add 'icu::' qualifier in preparation for ICU upgrade to 4.2
3295         in Chromium. This is to fix a new file added in r28742 since the
3296         last patch for this issue.
3297
3298         https://bugs.webkit.org/show_bug.cgi?id=28410
3299
3300         No change in the test result.
3301
3302         * platform/graphics/chromium/FontLinux.cpp:
3303         (WebCore::TextRunWalker::getNormalizedTextRun):
3304
3305 2009-09-02  Dimitri Glazkov  <dglazkov@chromium.org>
3306
3307         Unreviewed, build fix.
3308
3309         [Chromium] Correct a typo to fix bustage, caused by r47991.
3310         https://bugs.webkit.org/show_bug.cgi?id=27933
3311
3312         * platform/graphics/skia/ImageBufferSkia.cpp: Changed "Unpremultipled" to "Unmultiplied".
3313
3314 2009-09-02  Dimitri Glazkov  <dglazkov@chromium.org>
3315
3316         Unreviewed, build fix.
3317
3318         [Chromium] Add a missing include to fix bustage, caused by r47991.
3319         https://bugs.webkit.org/show_bug.cgi?id=27933
3320
3321         * platform/graphics/skia/ImageBufferSkia.cpp: Added SkColorPriv include.
3322
3323 2009-09-02  Jian Li  <jianli@chromium.org>
3324
3325         Reviewed by Dimitri Glazkov.
3326
3327         [Chromium] Implement file support for DragData.
3328         https://bugs.webkit.org/show_bug.cgi?id=28896
3329
3330         * platform/chromium/DragDataChromium.cpp:
3331         (WebCore::DragData::containsURL):
3332         (WebCore::DragData::asURL):
3333         (WebCore::DragData::containsCompatibleContent):
3334
3335 2009-09-02  Kevin Watters  <kevinwatters@gmail.com>
3336
3337         Reviewed by Kevin Ollivier.
3338
3339         Protect libcurl shared data with Mutex objects via curl_set_share_opt.
3340         https://bugs.webkit.org/show_bug.cgi?id=28920
3341
3342         * platform/network/curl/ResourceHandleManager.cpp:
3343         (WebCore::sharedResourceMutex):
3344         (WebCore::curl_lock_callback):
3345         (WebCore::curl_unlock_callback):
3346         (WebCore::ResourceHandleManager::ResourceHandleManager):
3347
3348 2009-09-02  Evan Stade  <estade@chromium.org>
3349
3350         Reviewed by Eric Seidel.
3351
3352         Expose functions to change the focus ring color for Linux Chromium
3353
3354         https://bugs.webkit.org/show_bug.cgi?id=28887
3355
3356         * rendering/RenderThemeChromiumLinux.cpp:
3357         (WebCore::RenderThemeChromiumLinux::RenderThemeChromiumLinux):
3358         (WebCore::RenderThemeChromiumLinux::setFocusRingColor):
3359         (WebCore::RenderThemeChromiumLinux::platformFocusRingColor):
3360         * rendering/RenderThemeChromiumLinux.h:
3361
3362 2009-09-02  Dirk Schulze  <krit@webkit.org>
3363
3364         Reviewed by Eric Seidel.
3365
3366         SVG Filter premultiplied color support for getImageDate/putImageData
3367         [https://bugs.webkit.org/show_bug.cgi?id=27933]
3368
3369         Patch to get premultiplied color support for Skia on getImageDate/putImageData.
3370
3371         * platform/graphics/skia/ImageBufferSkia.cpp:
3372         (WebCore::getImageData):
3373         (WebCore::putImageData):
3374
3375 2009-09-02  Brady Eidson  <beidson@apple.com>
3376
3377         Forget to rename openInFrameloader() to open(), which was requested in Darin's review of my last patch.
3378
3379         * history/CachedFrame.cpp:
3380         (WebCore::CachedFrameBase::restore):
3381         (WebCore::CachedFrame::open):
3382         * history/CachedFrame.h:
3383         * history/CachedPage.cpp:
3384         (WebCore::CachedPage::restore):
3385
3386 2009-09-02  Brady Eidson  <beidson@apple.com>
3387
3388         Reviewed by Darin Adler.
3389
3390         In http://trac.webkit.org/changeset/47943 I added new header dependencies to FrameLoader.h.
3391         Removing them is a little trouble, but worth it going forward.
3392         The pattern of creating a "CachedFrameBase" as the interface CachedFrame provides to FrameLoader
3393         was suggested by Darin Adler.
3394
3395         No new tests. (No change in behavior)
3396
3397         Make CachedFrame inherit privately from CachedFrameBase, which becomes the interface FrameLoader uses:
3398         * history/CachedFrame.cpp:
3399         (WebCore::CachedFrameBase::CachedFrameBase):
3400         (WebCore::CachedFrameBase::~CachedFrameBase):
3401         (WebCore::CachedFrameBase::restore):
3402         (WebCore::CachedFrame::CachedFrame):
3403         (WebCore::CachedFrame::openInFrameLoader):
3404         * history/CachedFrame.h:
3405         (WebCore::CachedFrameBase::document):
3406         (WebCore::CachedFrameBase::view):
3407         (WebCore::CachedFrameBase::domWindow):
3408         (WebCore::CachedFrame::create):
3409         (WebCore::CachedFrame::documentLoader):
3410         (WebCore::CachedFrame::mousePressNode):
3411
3412         Call the new ::openInFrameLoader() method on the CachedFrame, as CachedFrameBase is now the only
3413         thing capable of interacting with FrameLoader::open(CachedFrameBase):
3414         * history/CachedPage.cpp:
3415         (WebCore::CachedPage::restore):
3416         * history/CachedPage.h:
3417         (WebCore::CachedPage::documentLoader):
3418
3419         Make ::open(CachedFrame) public, and change it to ::open(CachedFrameBase):
3420         * loader/FrameLoader.cpp:
3421         (WebCore::FrameLoader::open):
3422         * loader/FrameLoader.h:
3423
3424 2009-09-02  Ryosuke Niwa  <rniwa@webkit.org>
3425
3426         Reviewed by Eric Seidel.
3427
3428         Cannot pres Enter to escape from bulleted list when <ul> is a child of <li>.
3429         https://bugs.webkit.org/show_bug.cgi?id=24866
3430
3431         This patch modifies breakOutOfEmptyListItem to break out of a properly nested list
3432         (a list to break out of is inside another list item).
3433
3434         When the empty list item appears at the end of another list item, WebKit breaks out of
3435         the outer list item, and adds new item below the outer list item.
3436         Otherwise, WebKit breaks out of the the inner list item and inserts new paragraph.
3437
3438         Test: editing/execCommand/break-out-of-empty-list-item.html
3439
3440         * editing/CompositeEditCommand.cpp:
3441         (WebCore::CompositeEditCommand::breakOutOfEmptyListItem):
3442
3443 2009-09-02  Brady Eidson  <beidson@apple.com>
3444
3445         Reviewed by Sam Weinig.
3446
3447         More partial work towards "Page Cache should support pages with Frames"
3448         https://bugs.webkit.org/show_bug.cgi?id=13631
3449
3450         This patch is primarily about the "CachedFrame tree" and making slightly different decisions
3451         based on whether a CachedFrame is the main frame or a subframe.
3452
3453         - Store whether a CachedFrame represents the main frame or a subframe.
3454         - "Chop off the frame tree" for the main frame when creating its CachedFrame, as main frames 
3455           are reused and need to start new page loads with an empty frame tree.
3456         - Reattach the frame tree to the main frame when restoring it.
3457         - open() the cached subframes in their respective loaders when restoring.
3458         - Properly clear() and destroy() cached subframes.
3459         - When committing to a new page load, and after caching the previous page, only clear the
3460           FrameView for the main frame.
3461
3462         Note that all of above will eventually be necessary as I continue to land this work in pieces,
3463         but doesn't actually change any behavior right now because we still refuse to even *try* to
3464         cache pages with frames.
3465
3466         No new tests. No change in behavior, and current tests continue to pass.
3467
3468         * history/CachedFrame.cpp:
3469         (WebCore::CachedFrame::CachedFrame):
3470         (WebCore::CachedFrame::restore):
3471         (WebCore::CachedFrame::clear):
3472         (WebCore::CachedFrame::destroy):
3473         * history/CachedFrame.h:
3474         (WebCore::CachedFrame::isMainFrame):
3475
3476         * loader/FrameLoader.cpp:
3477         (WebCore::FrameLoader::clear):
3478         (WebCore::FrameLoader::open):
3479         * loader/FrameLoader.h:
3480
3481 2009-09-02  Brady Eidson  <beidson@apple.com>
3482
3483         No review, build fix.
3484
3485         http://trac.webkit.org/changeset/47976 broke the build.  
3486         Let's try compiling before we land things, shall we?
3487
3488         * platform/graphics/SimpleFontData.cpp:
3489         (WebCore::SimpleFontData::SimpleFontData): Order the initialization list correctly.
3490
3491 2009-09-02  Kevin Ollivier  <kevino@theolliviers.com>
3492
3493         waf build fixes for Windows/MSVC.
3494
3495         * wscript:
3496
3497 2009-09-02  Ben Murdoch  <benm@google.com>
3498
3499         Unreviewed build fix for Chromium.
3500
3501         Missed #including V8Proxy.h in WebCore/bindings/v8/V8Binding.cpp.
3502
3503         * bindings/v8/V8Binding.cpp: add V8Proxy.h as an include
3504
3505 2009-09-02  Kevin Ollivier  <kevino@theolliviers.com>
3506
3507         waf build fix, don't define symbols we now grab from other sources.
3508
3509         * platform/wx/TemporaryLinkStubs.cpp:
3510
3511 2009-09-02  Kevin Ollivier  <kevino@theolliviers.com>
3512
3513         Build fixes for PluginViewNone.cpp and a wx build fix for PluginView.cpp.
3514
3515         * plugins/PluginView.cpp:
3516         (WebCore::PluginView::stop):
3517         * plugins/PluginViewNone.cpp:
3518         (WebCore::PluginView::platformDestroy):
3519
3520 2009-09-02  Charles Wei  <charles.wei@torchmobile.com.cn>
3521
3522         Reviewed by Eric Seidel.
3523
3524         Fix the build failure of WebKit for Linux/Qt when WML is enabled
3525
3526         No test cases needed since this just fixes the build problem.
3527
3528         * wml/WMLElement.cpp:
3529         (WebCore::WMLElement::create):
3530         * wml/WMLTableElement.cpp:
3531         (WebCore::WMLTableElement::joinSuperflousColumns):
3532         (WebCore::WMLTableElement::padWithEmptyColumns):
3533
3534 2009-09-02 Yong Li <yong.li@torchmobile.com>
3535
3536         Reviewed by Adam Barth.
3537
3538         WINCE PORT: use shared buffer for custom font data
3539         https://bugs.webkit.org/show_bug.cgi?id=27734
3540
3541         Refactored by Joe Mason <joe.mason@torchmobile.com>
3542
3543         * loader/CachedFont.cpp:
3544         add WINCE to platforms using cached custom data
3545         * platform/graphics/opentype/OpenTypeUtilities.cpp:
3546         (WebCore::renameFont): implement for WinCE
3547         * platform/graphics/opentype/OpenTypeUtilities.h:
3548         build fixes
3549         * platform/graphics/wince/FontCustomPlatformData.cpp:
3550         (WebCore::setCustomFontCache): add accessor
3551         (WebCore::createFontCustomPlatformData): change param to SharedBuffer
3552         * platform/graphics/wince/FontCustomPlatformData.h:
3553         update function signatures 
3554  
3555 2009-09-02 Yong Li <yong.li@torchmobile.com>
3556
3557         Reviewed by Adam Barth.
3558
3559         WINCE PORT: font-related build fixes and minor bugfixes
3560         https://bugs.webkit.org/show_bug.cgi?id=27734
3561
3562         * platform/graphics/FontCache.h: declare functions added in https://bugs.webkit.org/show_bug.cgi?id=27509
3563         * platform/graphics/GlyphPageTreeNode.cpp:
3564         (WebCore::GlyphPageTreeNode::initializePage): fix ambiguous overload error in min/max on Windows
3565         * platform/graphics/SimpleFontData.cpp:
3566         (WebCore::SimpleFontData::SimpleFontData): initialize member vars