1122ae0c244a2e4e81863148988f3d11cca6a937
[WebKit-https.git] / WebCore / ChangeLog
1 2009-08-12  Peter Kasting  <pkasting@google.com>
2
3         Reviewed by Dave Levin.
4
5         https://bugs.webkit.org/show_bug.cgi?id=27933
6         Build fix after r47099.
7
8         * platform/graphics/skia/ImageBufferSkia.cpp:
9         (WebCore::getImageData):
10         (WebCore::putImageData):
11
12 2009-08-08  Yong Li  <yong.li@torchmobile.com>
13
14         Reviewed by Adam Treat.
15
16         WINCE PORT: Implement Path for WINCE. Most code can be
17         reused for other ports that don't have native path support
18         https://bugs.webkit.org/show_bug.cgi?id=28188
19
20         Written also by George Staikos (including quadCurve() and bezier())
21
22         * platform/graphics/wince/PathWince.cpp: Added.
23         * platform/graphics/wince/PlatformPathWince.cpp: Added.
24         * platform/graphics/wince/PlatformPathWince.h: Added.
25         * platform/graphics/wince/WinceGraphicsExtras.h: Added.
26
27 2009-08-12  Joseph Pecoraro  <joepeck02@gmail.com>
28
29         "Double-click to add" new style button does not always show up [quick fix]
30         https://bugs.webkit.org/show_bug.cgi?id=28187
31
32         * inspector/front-end/StylesSidebarPane.js:
33         (WebInspector.StylePropertyTreeElement.prototype.updateTitle):
34
35 2009-08-12  Crystal Zhang <crystal.zhang@torchmobile.com>
36
37         Reviewed by George Staikos.
38
39         WINCE PORT: MediaPlayerProxy and MediaPlayerPrivate
40         https://bugs.webkit.org/show_bug.cgi?id=28178
41
42         * platform/graphics/wince/MediaPlayerPrivateWince.h: Added.
43         * platform/graphics/wince/MediaPlayerProxy.cpp: Added.
44         * platform/graphics/wince/MediaPlayerProxy.h: Added.
45
46 2009-08-12  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
47
48         Reviewed by Eric Seidel.
49
50         HTML 5 database and LocalStorage is not persistent on the Symbian port of QtWebKit
51         https://bugs.webkit.org/show_bug.cgi?id=28175
52
53         Call QDir::toNativeSeparators() before the path is passed to the OS.
54
55         Based on work by David Leong.
56         
57         * platform/qt/FileSystemQt.cpp:
58         (WebCore::pathByAppendingComponent):
59
60 2009-08-12  Eric Carlson  <eric.carlson@apple.com>
61
62         Tiger build fix.
63
64         * accessibility/mac/AccessibilityObjectWrapper.mm: 
65             Define NSAccessibilityTimelineSubrole for Tiger.
66
67 2009-08-12  Dirk Schulze  <krit@webkit.org>
68
69         Reviewed by Ariya Hidayat.
70
71         Minor build-fix for SVG Filter. Use getUnmultipliedImageData instead
72         of getImageData. This changed since r47099.
73
74         * platform/graphics/filters/FEColorMatrix.cpp:
75         (WebCore::FEColorMatrix::apply):
76
77 2009-08-12  Eric Carlson  <eric.carlson@apple.com>
78
79         Reviewed by Oliver Hunt.
80
81         <video> and <audio> controller should be accessible
82         https://bugs.webkit.org/show_bug.cgi?id=28081
83
84         Test: accessibility/media-element.html
85
86         * GNUmakefile.am:
87         * WebCore.gypi:
88         * WebCore.pro:
89         * WebCore.vcproj/WebCore.vcproj:
90         * WebCore.xcodeproj/project.pbxproj:
91         * WebCoreSources.bkl:
92             Add AccessibilityMediaControls.cpp/.h
93
94         * accessibility/AXObjectCache.cpp:
95         * accessibility/AXObjectCache.h:
96         (WebCore::AXObjectCache::getOrCreate):
97             Create AccessibilityMediaControl. Update Copyright
98
99         * accessibility/AccessibilityMediaControls.cpp:
100         * accessibility/AccessibilityMediaControls.h:
101             Added.
102
103         * accessibility/AccessibilityObject.cpp:
104         * accessibility/AccessibilityObject.h:
105             Add isMediaTimeline. Update Copyright.
106
107         * accessibility/AccessibilitySlider.h:
108             Make constructor protected instead of private so AccessibilityMediaTimeline can
109             call it.
110
111         * accessibility/mac/AccessibilityObjectWrapper.mm:
112         (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
113             Add NSAccessibilityValueDescriptionAttribute to range attributes. 
114         (-[AccessibilityObjectWrapper subrole]):
115             Return NSAccessibilityTimelineSubrole for AccessibilityMediaTimeline.
116
117         * dom/Node.h:
118             add isMediaControlElement.
119
120         * page/mac/WebCoreViewFactory.h:
121         * platform/LocalizedStrings.h:
122         * platform/mac/LocalizedStringsMac.mm:
123         (WebCore::localizedMediaControlElementString): 
124         (WebCore::localizedMediaControlElementHelpText):
125         (WebCore::localizedMediaTimeDescription): 
126             New, return localized media controller strings.
127
128         * rendering/MediaControlElements.cpp:
129         (WebCore::MediaControlElement::MediaControlElement):
130             Initialize m_displayType.
131         (WebCore::MediaControlElement::MediaControlElement):
132         (WebCore::MediaControlStatusDisplayElement::MediaControlStatusDisplayElement):
133             Fix style.
134         (WebCore::MediaControlInputElement::MediaControlInputElement):
135             Set m_displayType based on pseudo style ID.
136         (WebCore::MediaControlInputElement::MediaControlInputElement):
137             rename local "o" to "object".
138         (WebCore::MediaControlMuteButtonElement::MediaControlMuteButtonElement):
139         (WebCore::MediaControlPlayButtonElement::MediaControlPlayButtonElement):
140         (WebCore::MediaControlSeekButtonElement::MediaControlSeekButtonElement):
141         (WebCore::MediaControlRewindButtonElement::MediaControlRewindButtonElement):
142         (WebCore::MediaControlReturnToRealtimeButtonElement::MediaControlReturnToRealtimeButtonElement):
143         (WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
144         (WebCore::MediaControlFullscreenButtonElement::MediaControlFullscreenButtonElement):
145         (WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
146         (WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
147         (WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
148             Update for MediaControlInputElement constructor change.
149         (WebCore::MediaControlTimeDisplayElement::formatTime):
150             New, moved here from RenderMedia so AccessibilityMediaTimeDisplay can use it.
151         (WebCore::MediaControlTimeDisplayElement::setCurrentValue):
152             New, set text to current time.
153         * rendering/MediaControlElements.h:
154
155         * rendering/RenderMedia.cpp:
156         (WebCore::RenderMedia::updateControls):
157             Create controls in tab order.
158         (WebCore::RenderMedia::formatTime):
159             Moved to MediaControlTimeDisplayElement::formatTime.
160         (WebCore::RenderMedia::updateTimeDisplay):
161             Call MediaControlTimeDisplayElement::setCurrentValue.
162         * rendering/RenderMedia.h:
163
164 2009-08-12  Viet-Trung Luu  <viettrungluu@gmail.com>
165
166         Reviewed by Dimitri Glazkov.
167
168         Explicitly set control tints for Chromium/Mac, since the controls'
169         NSCell(s) lack an NSView and hence their tint isn't updated
170         automatically when the application is activated/deactivated.
171         https://bugs.webkit.org/show_bug.cgi?id=28108
172         http://crbug.com/18199
173
174         * rendering/RenderThemeChromiumMac.mm:
175         (WebCore::updateNSCellControlTint):
176         (WebCore::RenderThemeChromiumMac::paintCheckbox):
177         (WebCore::RenderThemeChromiumMac::paintRadio):
178         (WebCore::RenderThemeChromiumMac::paintButton):
179         (WebCore::RenderThemeChromiumMac::paintMenuList):
180         (WebCore::RenderThemeChromiumMac::paintSliderThumb):
181         (WebCore::RenderThemeChromiumMac::paintSearchField):
182         (WebCore::RenderThemeChromiumMac::paintSearchFieldCancelButton):
183         (WebCore::RenderThemeChromiumMac::paintSearchFieldResultsDecoration):
184         (WebCore::RenderThemeChromiumMac::paintSearchFieldResultsButton):
185
186 2009-08-12  Christian Plesner Hansen  <christian.plesner.hansen@gmail.com>
187
188         Reviewed by Dimitri Glazkov.
189
190         [V8] Fix atomic string externalization crash.
191         Atomic string externalization assumes that all non-empty strings
192         can be externalized which is untrue on 64-bit.  This change fixed
193         that.
194
195         https://bugs.webkit.org/show_bug.cgi?id=28215
196
197         This bug causes loads of test crashes, no need to add new tests
198         specifically for this.
199
200         * bindings/v8/V8Binding.cpp:
201         (WebCore::v8StringToAtomicWebCoreString):
202
203 2009-08-12  Ariya Hidayat  <ariya.hidayat@nokia.com>
204
205         Reviewed by Holger Freyther.
206
207         [Qt] Fix box-shadow painting in r47103. The edge should not be blurry.
208         Also optimize by not having to save and restore painter state.
209
210         * platform/graphics/qt/GraphicsContextQt.cpp:
211         (WebCore::GraphicsContext::drawRect):
212         (WebCore::GraphicsContext::fillRect):
213
214 2009-08-12  Ariya Hidayat  <ariya.hidayat@nokia.com>
215
216         Reviewed by Adam Treat.
217
218         [Qt] Fix coding style in GraphicsContextQt.cpp
219
220         * platform/graphics/qt/GraphicsContextQt.cpp:
221         (WebCore::toQtCompositionMode):
222         (WebCore::toQtLineCap):
223         (WebCore::toQtLineJoin):
224         (WebCore::GraphicsContextPlatformPrivate::p):
225         (WebCore::GraphicsContext::drawLine):
226         (WebCore::GraphicsContext::strokeArc):
227         (WebCore::GraphicsContext::drawConvexPolygon):
228         (WebCore::GraphicsContext::pen):
229         (WebCore::GraphicsContext::fillPath):
230         (WebCore::GraphicsContext::strokePath):
231         (WebCore::GraphicsContext::fillRect):
232         (WebCore::GraphicsContext::clipPath):
233         (WebCore::GraphicsContext::drawFocusRing):
234         (WebCore::GraphicsContext::beginTransparencyLayer):
235         (WebCore::GraphicsContext::endTransparencyLayer):
236         (WebCore::GraphicsContext::clearRect):
237         (WebCore::GraphicsContext::setLineCap):
238         (WebCore::GraphicsContext::setLineJoin):
239         (WebCore::GraphicsContext::setMiterLimit):
240         (WebCore::GraphicsContext::setAlpha):
241         (WebCore::GraphicsContext::clipOut):
242         (WebCore::GraphicsContext::clipOutEllipseInRect):
243         (WebCore::GraphicsContext::addInnerRoundedRectClip):
244         (WebCore::GraphicsContext::setPlatformStrokeColor):
245         (WebCore::GraphicsContext::setPlatformStrokeStyle):
246         (WebCore::GraphicsContext::setPlatformStrokeThickness):
247
248 2009-08-12  Szabo Carol  <carol.szabo@nokia.com>
249
250         Reviewed by Simon Hausmann and Ariya Hidayat.
251
252         https://bugs.webkit.org/show_bug.cgi?id=23291
253
254         [Qt] Partial support for -webkit-box-shadow. Blur is not support and
255         the shadow still does not go well with border radius.
256
257         * platform/graphics/qt/GraphicsContextQt.cpp:
258         (WebCore::GraphicsContext::drawRect):
259         (WebCore::GraphicsContext::fillRect):
260
261 2009-08-12  Xan Lopez  <xlopez@igalia.com>
262
263         Reviewed by Jan Alonzo.
264
265         Use AM_V_GEN in a few more places, for less noisy builds.
266
267         * GNUmakefile.am:
268
269 2009-08-12  Dirk Schulze  <krit@webkit.org>
270
271         Reviewed by Oliver Hunt.
272
273         SVG Filter premultiplied color support for getImageDate/putImageData
274         [https://bugs.webkit.org/show_bug.cgi?id=27933]
275
276         Some SVG Filters need premultiplied ImageData for the calculation. Therefore getImageData
277         and putImageData of ImageBuffer need support for premultiplied colors.
278
279         * html/CanvasRenderingContext2D.cpp:
280         (WebCore::CanvasRenderingContext2D::getImageData):
281         (WebCore::CanvasRenderingContext2D::putImageData):
282         * platform/graphics/ImageBuffer.h:
283         (WebCore::):
284         * platform/graphics/cairo/ImageBufferCairo.cpp:
285         (WebCore::getImageData):
286         (WebCore::ImageBuffer::getUnmultipliedImageData):
287         (WebCore::ImageBuffer::getPremultipliedImageData):
288         (WebCore::putImageData):
289         (WebCore::ImageBuffer::putUnmultipliedImageData):
290         (WebCore::ImageBuffer::putPremultipliedImageData):
291         * platform/graphics/cg/ImageBufferCG.cpp:
292         (WebCore::getImageData):
293         (WebCore::ImageBuffer::getUnmultipliedImageData):
294         (WebCore::ImageBuffer::getPremultipliedImageData):
295         (WebCore::putImageData):
296         (WebCore::ImageBuffer::putUnmultipliedImageData):
297         (WebCore::ImageBuffer::putPremultipliedImageData):
298         * platform/graphics/qt/ImageBufferQt.cpp:
299         (WebCore::getImageData):
300         (WebCore::ImageBuffer::getUnmultipliedImageData):
301         (WebCore::ImageBuffer::getPremultipliedImageData):
302         (WebCore::putImageData):
303         (WebCore::ImageBuffer::putUnmultipliedImageData):
304         (WebCore::ImageBuffer::putPremultipliedImageData):
305         * platform/graphics/skia/ImageBufferSkia.cpp:
306         (WebCore::getImageData):
307         (WebCore::ImageBuffer::getUnmultipliedImageData):
308         (WebCore::ImageBuffer::getPremultipliedImageData):
309         (WebCore::putImageData):
310         (WebCore::ImageBuffer::putUnmultipliedImageData):
311         (WebCore::ImageBuffer::putPremultipliedImageData):
312         * platform/graphics/wx/ImageBufferWx.cpp:
313         (WebCore::ImageBuffer::getUnmultipliedImageData):
314         (WebCore::ImageBuffer::getPremultipliedImageData):
315         (WebCore::ImageBuffer::putUnmultipliedImageData):
316         (WebCore::ImageBuffer::putPremultipliedImageData):
317         * svg/graphics/SVGResourceMasker.cpp:
318         (WebCore::SVGResourceMasker::applyMask):
319
320 2009-08-12  Mikhail Naganov  <mnaganov@chromium.org>
321
322         Reviewed by Timothy Hatcher.
323
324         Changed Number.bytesToString to support low-resolution output.
325
326         https://bugs.webkit.org/show_bug.cgi?id=28146
327
328         * inspector/front-end/utilities.js:
329         (Number.bytesToString):
330
331 2009-08-12  Prasanth Ullattil  <prasanth.ullattil@nokia.com>
332
333         Reviewed by Simon Hausmann.
334
335         Add support for hooking BeginPaint/EndPaint on 64Bit Windows
336
337         Webkit uses the runtime patching trick explained by "Feng Yuan" for
338         hooking these paint functions. It currently supports only 32bit assembly
339         code. This patch adds support for 64Bit version. Since inline-assemblies
340         are not supported for 64Bit, we have use a seperate .asm file.
341
342         * WebCore.pro:
343         * plugins/win/PaintHooks.asm: Added.
344         * plugins/win/PluginViewWin.cpp:
345         (WebCore::PluginView::hookedBeginPaint):
346         (WebCore::PluginView::hookedEndPaint):
347         (WebCore::hook):
348
349 2009-08-11  Oliver Hunt  <oliver@apple.com>
350
351         Reviewed by Gavin Barraclough.
352
353         Make it harder to misuse try* allocation routines
354         https://bugs.webkit.org/show_bug.cgi?id=27469
355
356         Add forwarding header for PossiblyNull type, and add missing null check
357         to ImageBuffer creation.
358
359         * ForwardingHeaders/wtf/PossiblyNull.h: Added.
360         * platform/graphics/cg/ImageBufferCG.cpp:
361         (WebCore::ImageBuffer::ImageBuffer):
362
363 2009-08-11  Gavin Barraclough  <barraclough@apple.com>
364
365         Reviewed by Oliver Hunt.
366
367         Restrict use of FuncDeclNode & FuncExprNode to the parser.
368         https://bugs.webkit.org/show_bug.cgi?id=28209
369
370         * inspector/JavaScriptDebugServer.cpp:
371         (WebCore::JavaScriptDebugServer::recompileAllJSFunctions):
372             Function signature change.
373
374 2009-08-11  Peter Kasting  <pkasting@google.com>
375
376         Reviewed by Adam Treat.
377
378         https://bugs.webkit.org/show_bug.cgi?id=27965
379         Merge skia/ImageSourceSkia.cpp into ImageSource.cpp.
380
381         * WebCore.gypi: Remove deleted file, plus a file that was deleted a while back.
382         * platform/graphics/ImageSource.cpp:
383         (WebCore::ImageSource::setData): Use slightly shorter syntax.
384         (WebCore::ImageSource::filenameExtension): Use shorter syntax.
385         (WebCore::ImageSource::createFrameAtIndex): Remove redundant call, clarify comments, reject all empty images.
386         (WebCore::ImageSource::frameHasAlphaAtIndex): Clarify comments, use shorter syntax.
387         * platform/graphics/skia/ImageSourceSkia.cpp: Removed.
388
389 2009-08-11  Drew Wilson  <atwilson@google.com>
390
391         Reviewed by David Levin.
392
393         SharedWorkers do not exit when the last parent document exits
394         https://bugs.webkit.org/show_bug.cgi?id=28170
395
396         Prevents Documents from being suspended/placed in the page cache if they are associated with shared workers.
397
398         Added vector cache instead of nested hash tables for SharedWorker repository.
399
400         Added SharedWorkerRepository::documentDetached API.
401
402         * dom/Document.cpp:
403         (WebCore::Document::detach):
404         Notifies SharedWorkerRepository when the document is closing.
405         * loader/FrameLoader.cpp:
406         Updated FrameLoader to not cache the Document if it is associated with a SharedWorker (since we can't suspend workers yet, we need to shut them down).
407         (WebCore::FrameLoader::canCachePageContainingThisFrame):
408         (WebCore::FrameLoader::logCanCacheFrameDecision):
409         * workers/DefaultSharedWorkerRepository.cpp:
410         (WebCore::SharedWorkerProxy::create):
411         (WebCore::SharedWorkerProxy::isClosing):
412         Renamed from closing().
413         (WebCore::SharedWorkerProxy::matches):
414         Added manual equality function to replace old hash lookup.
415         (WebCore::SharedWorkerProxy::isDocumentInWorkerDocuments):
416         Checks to see if a document is in the worker's list of documents. Used to determine if page is suspendable.
417         (WebCore::SharedWorkerProxy::SharedWorkerProxy):
418         (WebCore::SharedWorkerProxy::addToWorkerDocuments):
419         Added tracking of the worker's list of documents for lifecycle purposes.
420         (WebCore::SharedWorkerProxy::documentDetached):
421         Shuts down the proxy when the last associated document is detached.
422         (WebCore::SharedWorkerProxy::close):
423         Marks the proxy as closed so it is no longer shared with new instances.
424         (WebCore::SharedWorkerProxy::workerContextDestroyed):
425         Removes the proxy from the repository/frees the proxy when the associated SharedWorkerContext is destroyed.
426         (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
427         closing()->isClosing()
428         (WebCore::SharedWorkerRepository::documentDetached):
429         (WebCore::SharedWorkerRepository::hasSharedWorkers):
430         Used by FrameLoader to determine if a page has shared workers and so cannot be suspended/cached.
431         (WebCore::DefaultSharedWorkerRepository::hasSharedWorkers):
432         (WebCore::DefaultSharedWorkerRepository::removeProxy):
433         Invoked by workerContextDestroyed() to remove a SharedWorkerProxy from the repository.
434         (WebCore::DefaultSharedWorkerRepository::documentDetached):
435         (WebCore::DefaultSharedWorkerRepository::connectToWorker):
436         (WebCore::DefaultSharedWorkerRepository::getProxy):
437         * workers/DefaultSharedWorkerRepository.h:
438         * workers/SharedWorkerRepository.h:
439
440 2009-08-11  Chris Fleizach  <cfleizach@apple.com>
441
442         Reviewed by Darin Adler.
443
444         Bug 28200 - ListMarker should be included as part of the text value to parse
445         https://bugs.webkit.org/show_bug.cgi?id=28200
446
447         When returning text through the marker range attributes, the list marker text should
448         also be included. It isn't included by default because a TextIterator is used which
449         only looks at Nodes for text. A list marker does not have a corresponding node,
450         so its text is not returned through accessibility. That is, until now.
451
452         Test: platform/mac/accessibility/string-range-contains-listmarker.html
453
454         * accessibility/AccessibilityObject.cpp:
455         (WebCore::AccessibilityObject::listMarkerTextForRange):
456         (WebCore::AccessibilityObject::stringForVisiblePositionRange):
457         * accessibility/AccessibilityObject.h:
458         * accessibility/mac/AccessibilityObjectWrapper.mm:
459         (-[AccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:]):
460         (-[AccessibilityObjectWrapper accessibilityParameterizedAttributeNames]):
461         (-[AccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
462         * rendering/RenderListItem.h:
463
464         Make markerText() public so that accessibility code can access it.
465
466 2009-08-11  Peter Kasting  <pkasting@google.com>
467
468         Reviewed by Adam Treat.
469
470         https://bugs.webkit.org/show_bug.cgi?id=27965
471         Move cairo/ImageSourceCairo.cpp to ImageSource.cpp in preparation for
472         merging most of the other ImageSource*.cpp files with it.
473
474         * GNUmakefile.am:
475         * WebCore.gypi:
476         * WebCore.vcproj/WebCore.vcproj:
477         * platform/graphics/ImageSource.cpp: Copied from WebCore/platform/graphics/cairo/ImageSourceCairo.cpp.
478         * platform/graphics/cairo/ImageSourceCairo.cpp: Removed.
479
480 2009-08-10  Brent Fulgham  <bfulgham@webkit.org>
481
482         Reviewed by Adam Roben.
483
484         Cairo-based Windows port does not handle the https protocol.
485         https://bugs.webkit.org/show_bug.cgi?id=28171.
486
487         No new tests needed.  Existing https tests show this failure
488         for WinCairo builds.
489
490         * WebCore.vcproj/WebCoreCURL.vsprops: Add a few preprocessor
491           definitions for SSL support in cURL.
492         * platform/network/curl/ResourceHandleManager.h: Add new
493           certificate path member variable.
494         * platform/network/curl/ResourceHandleManager.cpp:
495         (WebCore::certificateBundlePath): New method to retrieve the
496           proper certificate resource bundle path.
497         (WebCore::ResourceHandleManager::initializeHandle): Check for
498           the resource bundle and use if available to activate SSL
499           support.
500
501 2009-08-11  Maxime Simon  <simon.maxime@gmail.com>
502
503         Reviewed by Eric Seidel.
504
505         [Haiku] Use Clipboard::create() instead of the constructor of Clipboard.
506         https://bugs.webkit.org/show_bug.cgi?id=28127
507
508         * editing/haiku/EditorHaiku.cpp:
509         (WebCore::Editor::newGeneralClipboard):
510         * page/haiku/EventHandlerHaiku.cpp:
511         (WebCore::EventHandler::passWheelEventToWidget):
512         (WebCore::EventHandler::createDraggingClipboard):
513         * platform/haiku/ClipboardHaiku.cpp: Style cleanup. There were many whitespace end of lines.
514         (WebCore::ClipboardHaiku::ClipboardHaiku):
515         (WebCore::ClipboardHaiku::clearAllData):
516         (WebCore::ClipboardHaiku::getData):
517         (WebCore::ClipboardHaiku::setData):
518         (WebCore::ClipboardHaiku::types):
519         (WebCore::ClipboardHaiku::dragLocation):
520         (WebCore::ClipboardHaiku::dragImage):
521         (WebCore::ClipboardHaiku::setDragImage):
522         (WebCore::ClipboardHaiku::dragImageElement):
523         (WebCore::ClipboardHaiku::createDragImage):
524         (WebCore::ClipboardHaiku::declareAndWriteDragImage):
525         (WebCore::ClipboardHaiku::writeURL):
526         (WebCore::ClipboardHaiku::writeRange):
527         (WebCore::ClipboardHaiku::hasData):
528         * platform/haiku/DragDataHaiku.cpp:
529         (WebCore::DragData::createClipboard):
530
531 2009-08-11  Drew Wilson  <atwilson@google.com>
532
533         Reviewed by NOBODY (build break).
534
535         Speculative GTK build fix
536
537         * GNUmakefile.am:
538         Added missing .idl file, and added notifications directory to IDL_PATH.
539
540 2009-08-11  Drew Wilson  <atwilson@google.com>
541
542         Reviewed by NOBODY (build break).
543
544         Speculative Windows build fix
545
546         * WebCore.vcproj/WebCore.vcproj:
547         Added missing build steps for non-debug targets.
548
549 2009-08-11  Drew Wilson <atwilson@google.com>
550
551         Reviewed by NOBODY (build break)
552
553         Speculative build fix for Qt build.
554
555         * WebCore.pro: Added /notifications to include path
556
557 2009-08-11  John Gregg  <johnnyg@google.com>
558
559         Reviewed by Maciej Stachowiak.
560
561         Desktop Notifications API
562         https://bugs.webkit.org/show_bug.cgi?id=25463
563
564         Adds an implementation of desktop notifications, behind the compile-time
565         flag ENABLE(NOTIFICATIONS).  This code simply relays calls on the JavaScript
566         API through a NotificationProvider interface, which must provide the services
567         to actually notify the user and manage the desktop.  This provider is injected
568         into WebKit through the ChromeClient for normal page contexts and through the
569         WorkerThread for worker contexts.
570
571         A permissions API is defined on a per-origin basis, which allows a web page
572         to check if its origin is allowed to show desktop notifications, and to request
573         permission for its origin.
574
575         * Configurations/FeatureDefines.xcconfig:
576         * DerivedSources.cpp:
577         * DerivedSources.make:
578         * GNUmakefile.am:
579         * WebCore.vcproj/WebCore.vcproj:
580         * WebCore.vcproj/WebCoreCommon.vsprops:
581         * WebCore.xcodeproj/project.pbxproj:
582         * bindings/js/JSDOMWindowCustom.cpp:
583         * bindings/js/JSDesktopNotificationsCustom.cpp: Added.
584         (WebCore::JSNotificationCenter::requestPermission):
585         (WebCore::JSNotification::addEventListener):
586         (WebCore::JSNotification::removeEventListener):
587         * bindings/js/JSEventTarget.cpp:
588         (WebCore::toJS):
589         (WebCore::toEventTarget):
590         * dom/EventTarget.cpp:
591         (WebCore::EventTarget::toNotification):
592         * dom/EventTarget.h:
593         * loader/EmptyClients.h:
594         (WebCore::EmptyChromeClient::notificationPresenter):
595         * notifications: Added.
596         * notifications/Notification.cpp: Added.
597         (WebCore::Notification::Notification):
598         (WebCore::Notification::~Notification):
599         (WebCore::Notification::show):
600         (WebCore::Notification::cancel):
601         (WebCore::Notification::ondisplay):
602         (WebCore::Notification::setOndisplay):
603         (WebCore::Notification::onerror):
604         (WebCore::Notification::setOnerror):
605         (WebCore::Notification::onclose):
606         (WebCore::Notification::setOnclose):
607         (WebCore::Notification::getAttributeEventListener):
608         (WebCore::Notification::setAttributeEventListener):
609         (WebCore::Notification::clearAttributeEventListener):
610         (WebCore::Notification::dispatchDisplayEvent):
611         (WebCore::Notification::dispatchErrorEvent):
612         (WebCore::Notification::dispatchCloseEvent):
613         (WebCore::Notification::addEventListener):
614         (WebCore::Notification::removeEventListener):
615         (WebCore::Notification::handleEvent):
616         (WebCore::Notification::dispatchEvent):
617         * notifications/Notification.h: Added.
618         (WebCore::Notification::create):
619         (WebCore::Notification::isHTML):
620         (WebCore::Notification::url):
621         (WebCore::Notification::contents):
622         (WebCore::Notification::scriptExecutionContext):
623         (WebCore::Notification::toNotification):
624         (WebCore::Notification::refEventTarget):
625         (WebCore::Notification::derefEventTarget):
626         * notifications/Notification.idl: Added.
627         * notifications/NotificationCenter.cpp: Added.
628         (WebCore::NotificationCenter::NotificationCenter):
629         (WebCore::NotificationCenter::checkPermission):
630         (WebCore::NotificationCenter::requestPermission):
631         * notifications/NotificationCenter.h: Added.
632         (WebCore::NotificationCenter::create):
633         (WebCore::NotificationCenter::createHTMLNotification):
634         (WebCore::NotificationCenter::createNotification):
635         (WebCore::NotificationCenter::context):
636         (WebCore::NotificationCenter::presenter):
637         * notifications/NotificationCenter.idl: Added.
638         * notifications/NotificationContents.h: Added.
639         (WebCore::NotificationContents::NotificationContents):
640         (WebCore::NotificationContents::icon):
641         (WebCore::NotificationContents::title):
642         (WebCore::NotificationContents::body):
643         * notifications/NotificationPresenter.h: Added.
644         (WebCore::NotificationPresenter::):
645         (WebCore::NotificationPresenter::~NotificationPresenter):
646         * page/Chrome.cpp:
647         (WebCore::Chrome::notificationPresenter):
648         * page/Chrome.h:
649         * page/ChromeClient.h:
650         * page/DOMWindow.cpp:
651         (WebCore::DOMWindow::clear):
652         (WebCore::DOMWindow::webkitNotifications):
653         * page/DOMWindow.h:
654         * page/DOMWindow.idl:
655         * page/Page.h:
656         * workers/WorkerContext.cpp:
657         (WebCore::WorkerContext::~WorkerContext):
658         (WebCore::WorkerContext::webkitNotifications):
659         * workers/WorkerContext.h:
660         * workers/WorkerContext.idl:
661         * workers/WorkerThread.h:
662         (WebCore::WorkerThread::getNotificationPresenter):
663         (WebCore::WorkerThread::setNotificationPresenter):
664
665 2009-08-11  Joseph Pecoraro  <joepeck02@gmail.com>
666
667         Reviewed by Timothy Hatcher.
668
669         Inspector: Console Drawer is Toggling instead of Staying Open
670         https://bugs.webkit.org/show_bug.cgi?id=28115
671
672         * inspector/front-end/Drawer.js:
673         (WebInspector.Drawer.prototype.showView): ensures the drawer will be open and showing the provided view
674         * inspector/front-end/inspector.js:
675         (WebInspector.showConsole): usees the new showView to guarantee the Drawer will be open
676         (WebInspector.showChanges): uses the new showView guarantee the Drawer will be open
677
678 2009-08-11  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
679
680         Reviewed by George Staikos.
681
682         [WML] WMLPageState is not allowed to store the active card, it needs to be done per document
683         https://bugs.webkit.org/show_bug.cgi?id=28180
684
685         Don't store the active WMLCardElement in WMLPageState, but in WMLDocument.
686         Otherwhise this may lead to crashes related to intrinsic event exeuction.
687
688         Unfortunately select elements aren't testable by the layout tests, so adding
689         a new manual test reproducing the crash.
690
691         * manual-tests/wml/select-onpick-event-crash.wml: Added.
692         * wml/WMLCardElement.cpp:
693         (WebCore::WMLCardElement::determineActiveCard):
694         * wml/WMLDoElement.cpp:
695         (WebCore::WMLDoElement::defaultEventHandler):
696         * wml/WMLDocument.cpp:
697         (WebCore::WMLDocument::finishedParsing):
698         * wml/WMLDocument.h:
699         (WebCore::WMLDocument::activeCard):
700         * wml/WMLGoElement.cpp:
701         (WebCore::WMLGoElement::executeTask):
702         * wml/WMLPageState.cpp:
703         (WebCore::WMLPageState::WMLPageState):
704         * wml/WMLPageState.h:
705         * wml/WMLPrevElement.cpp:
706         (WebCore::WMLPrevElement::executeTask):
707         * wml/WMLRefreshElement.cpp:
708         (WebCore::WMLRefreshElement::executeTask):
709
710 2009-08-07  Peter Kasting  <pkasting@google.com>
711
712         Reviewed by Eric Seidel.
713
714         https://bugs.webkit.org/show_bug.cgi?id=28073
715         Treat icons with no bit count and no color count as 256-color for
716         purposes of quality ranking.  Also fix a couple cases of a style
717         violation.
718
719         Test: fast/images/icon-0colors.html
720
721         * platform/image-decoders/ico/ICOImageDecoder.cpp:
722         (WebCore::ICOImageDecoder::processDirectory):
723         (WebCore::ICOImageDecoder::readDirectoryEntry):
724
725 2009-08-11  Drew Wilson  <atwilson@google.com>
726
727         Reviewed by David Levin.
728
729         Need to refactor WorkerObjectProxy.
730         https://bugs.webkit.org/show_bug.cgi?id=28136
731
732         Added WorkerReportingProxy for reporting worker state (exceptions, console messages, thread exited) to the parent.
733
734         Existing tests are sufficient, as this is only a refactoring.
735
736         * GNUmakefile.am:
737         Added WorkerReportingProxy.h to build.
738         * WebCore.gypi:
739         Added WorkerReportingProxy.h to build.
740         * WebCore.vcproj/WebCore.vcproj:
741         Added WorkerReportingProxy.h to build.
742         * WebCore.xcodeproj/project.pbxproj:
743         Added WorkerReportingProxy.h to build.
744         * workers/DedicatedWorkerContext.cpp:
745         * workers/DedicatedWorkerContext.h:
746         Removed addMessage/forwardException() APIs - now handled by WorkerReportingProxy.
747         * workers/DedicatedWorkerThread.cpp:
748         (WebCore::DedicatedWorkerThread::DedicatedWorkerThread):
749         Changed constructor to pass WorkerReportingProxy to base class.
750         * workers/DefaultSharedWorkerRepository.cpp:
751         Updated SharedWorkerProxy to implement WorkerReportingProxy interface.
752         (WebCore::SharedWorkerProxy::postExceptionToWorkerObject):
753         (WebCore::SharedWorkerProxy::postConsoleMessageToWorkerObject):
754         (WebCore::SharedWorkerProxy::workerContextClosed):
755         (WebCore::SharedWorkerProxy::workerContextDestroyed):
756         (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
757         Now passes in WorkerReportingProxy when creating SharedWorkerThread.
758         * workers/SharedWorkerContext.cpp:
759         * workers/SharedWorkerContext.h:
760         Removed addMessage/forwardException() APIs - now handled by WorkerReportingProxy.
761         * workers/SharedWorkerThread.cpp:
762         (WebCore::SharedWorkerThread::create):
763         (WebCore::SharedWorkerThread::SharedWorkerThread):
764         Passes WorkerReportingProxy to base class constructor.
765         * workers/SharedWorkerThread.h:
766         Constructor now takes a WorkerReportingProxy.
767         * workers/WorkerContext.cpp:
768         (WebCore::WorkerContext::~WorkerContext):
769         Moved code that calls workerContextDestroyed() into base class so shared workers share this functionality.
770         (WebCore::WorkerContext::close):
771         Now notifies WorkerReportingProxy when the thread is closing.
772         (WebCore::WorkerContext::reportException):
773         Reports exceptions via WorkerReportingProxy.
774         (WebCore::WorkerContext::addMessage):
775         Reports console messages via WorkerReportingProxy.
776         * workers/WorkerContext.h:
777         * workers/WorkerObjectProxy.h:
778         (WebCore::WorkerObjectProxy::workerContextClosed):
779         Default empty implementation for dedicated workers.
780         * workers/WorkerReportingProxy.h: Added.
781         Base interface that contains APIs moved from WorkerObjectProxy.
782         (WebCore::WorkerReportingProxy::~WorkerReportingProxy):
783         * workers/WorkerThread.cpp:
784         (WebCore::WorkerThread::WorkerThread):
785         Updated constructor to accept a WorkerReportingProxy.
786         * workers/WorkerThread.h:
787         (WebCore::WorkerThread::workerReportingProxy):
788
789 2009-08-11  Simon Hausmann  <simon.hausmann@nokia.com>
790
791         Reviewed by NOBODY (build fix).
792
793         Fix the Qt build after r47022.
794
795         Use the new markChildren() pattern for marking aggregate/child objects.
796
797         * bridge/qt/qt_instance.cpp:
798         (JSC::Bindings::QtRuntimeObjectImp::markChildren):
799         (JSC::Bindings::QtInstance::markAggregate):
800         * bridge/qt/qt_instance.h:
801         * bridge/qt/qt_runtime.cpp:
802         (JSC::Bindings::QtRuntimeMetaMethod::markChildren):
803         * bridge/qt/qt_runtime.h:
804
805 2009-08-11  Simon Hausmann  <simon.hausmann@nokia.com>
806
807         Reviewed by Holger Freyther.
808
809         Fix the build on the Qt build bot by making the generated JS bindings
810         files depend on the code generator itself.
811
812         * WebCore.pro:
813
814 2009-08-07  Oliver Hunt  <oliver@apple.com>
815
816         Reviewed by Sam Weinig
817
818         Stack overflow crash in JavaScript garbage collector mark pass
819         https://bugs.webkit.org/show_bug.cgi?id=12216
820
821         Make WebCore use the new iterative marking logic.
822
823         Tests: fast/js/nested-object-gc.html
824
825         * bindings/js/JSAbstractWorkerCustom.cpp:
826         (WebCore::JSAbstractWorker::markChildren):
827         * bindings/js/JSDOMApplicationCacheCustom.cpp:
828         (WebCore::JSDOMApplicationCache::markChildren):
829         * bindings/js/JSDOMBinding.cpp:
830         (WebCore::markDOMNodesForDocument):
831         (WebCore::markActiveObjectsForContext):
832         (WebCore::markDOMObjectWrapper):
833         * bindings/js/JSDOMBinding.h:
834         (WebCore::DOMObjectWithGlobalPointer::markChildren):
835         * bindings/js/JSDOMGlobalObject.cpp:
836         (WebCore::JSDOMGlobalObject::markChildren):
837         * bindings/js/JSDOMGlobalObject.h:
838         * bindings/js/JSDOMWindowCustom.cpp:
839         (WebCore::JSDOMWindow::markChildren):
840         * bindings/js/JSDOMWindowShell.cpp:
841         (WebCore::JSDOMWindowShell::markChildren):
842         * bindings/js/JSDOMWindowShell.h:
843         * bindings/js/JSDedicatedWorkerContextCustom.cpp:
844         (WebCore::JSDedicatedWorkerContext::markChildren):
845         * bindings/js/JSDocumentCustom.cpp:
846         (WebCore::JSDocument::markChildren):
847         * bindings/js/JSEventListener.cpp:
848         (WebCore::JSEventListener::markJSFunction):
849         * bindings/js/JSEventListener.h:
850         * bindings/js/JSMessageChannelCustom.cpp:
851         (WebCore::JSMessageChannel::markChildren):
852         * bindings/js/JSMessagePortCustom.cpp:
853         (WebCore::JSMessagePort::markChildren):
854         * bindings/js/JSNavigatorCustom.cpp:
855         (WebCore::JSNavigator::markChildren):
856         * bindings/js/JSNodeCustom.cpp:
857         (WebCore::JSNode::markChildren):
858         * bindings/js/JSNodeFilterCondition.cpp:
859         (WebCore::JSNodeFilterCondition::markAggregate):
860         * bindings/js/JSNodeFilterCondition.h:
861         * bindings/js/JSNodeFilterCustom.cpp:
862         (WebCore::JSNodeFilter::markChildren):
863         * bindings/js/JSNodeIteratorCustom.cpp:
864         (WebCore::JSNodeIterator::markChildren):
865         * bindings/js/JSQuarantinedObjectWrapper.cpp:
866         (WebCore::JSQuarantinedObjectWrapper::markChildren):
867         * bindings/js/JSQuarantinedObjectWrapper.h:
868         * bindings/js/JSSVGElementInstanceCustom.cpp:
869         (WebCore::JSSVGElementInstance::markChildren):
870         * bindings/js/JSSharedWorkerCustom.cpp:
871         (WebCore::JSSharedWorker::markChildren):
872         * bindings/js/JSStyleSheetCustom.cpp:
873         (WebCore::JSStyleSheet::markChildren):
874         * bindings/js/JSTreeWalkerCustom.cpp:
875         (WebCore::JSTreeWalker::markChildren):
876         * bindings/js/JSWebSocketCustom.cpp:
877         (WebCore::JSWebSocket::markChildren):
878         * bindings/js/JSWorkerContextCustom.cpp:
879         (WebCore::JSWorkerContext::markChildren):
880         * bindings/js/JSWorkerCustom.cpp:
881         (WebCore::JSWorker::markChildren):
882         * bindings/js/JSXMLHttpRequestCustom.cpp:
883         (WebCore::JSXMLHttpRequest::markChildren):
884         * bindings/js/JSXMLHttpRequestUploadCustom.cpp:
885         (WebCore::JSXMLHttpRequestUpload::markChildren):
886         * bindings/scripts/CodeGeneratorJS.pm:
887         * dom/EventListener.h:
888         (WebCore::EventListener::markJSFunction):
889         (WebCore::markIfNotNull):
890         * dom/NodeFilter.h:
891         (WebCore::NodeFilter::markAggregate):
892         * dom/NodeFilterCondition.h:
893         (WebCore::NodeFilterCondition::markAggregate):
894         * dom/RegisteredEventListener.h:
895         (WebCore::markEventListeners):
896         * page/DOMWindow.h:
897         * workers/WorkerContext.h:
898
899 2009-08-10  Jeremy Orlow  <jorlow@chromium.org>
900
901         Reviewed by Eric Seidel.
902
903         Renamed all V8 NPN_ functions to _NPN_ to match JSC and make them "private".
904         https://bugs.webkit.org/show_bug.cgi?id=28089
905
906         Rename all the NPN_foo functions to _NPN_foo so that they can't directly be
907         called by mistake.  This roughly matches the way JSC does it, which is an
908         additional advantage.
909
910         * bindings/v8/NPV8Object.cpp:
911         (npCreateV8ScriptObject):
912         (_NPN_Invoke):
913         (_NPN_InvokeDefault):
914         (_NPN_Evaluate):
915         (_NPN_EvaluateHelper):
916         (_NPN_GetProperty):
917         (_NPN_SetProperty):
918         (_NPN_RemoveProperty):
919         (_NPN_HasProperty):
920         (_NPN_HasMethod):
921         (_NPN_SetException):
922         (_NPN_Enumerate):
923         (_NPN_Construct):
924         * bindings/v8/ScriptController.cpp:
925         (WebCore::ScriptController::clearScriptObjects):
926         (WebCore::ScriptController::createScriptInstanceForWidget):
927         (WebCore::ScriptController::cleanupScriptObjectsForPlugin):
928         * bindings/v8/V8NPObject.cpp:
929         (npObjectInvokeImpl):
930         (npObjectGetProperty):
931         (npObjectIndexedPropertyGetter):
932         (npObjectGetIndexedProperty):
933         (npObjectSetProperty):
934         (npObjectIndexedPropertySetter):
935         (npObjectSetIndexedProperty):
936         (weakNPObjectCallback):
937         (createV8ObjectForNPObject):
938         (forgetV8ObjectForNPObject):
939         * bindings/v8/V8NPUtils.cpp:
940         (getStringIdentifier):
941         * bindings/v8/npruntime.cpp:
942         * bindings/v8/npruntime_impl.h:
943
944 2009-08-10  Jeremy Orlow  <jorlow@chromium.org>
945
946         Reviewed by Brady Eidson.
947
948         Change ___Storage.key() to match current spec behavior.
949         https://bugs.webkit.org/show_bug.cgi?id=28112
950
951         The current WebStorage spec says that ___Storage.key() should return null when
952         the index is out of bounds, rather than an exception.  A bunch of logic can be
953         simplified after this change.
954
955         * bindings/js/JSStorageCustom.cpp:
956         (WebCore::JSStorage::getPropertyNames):
957         * bindings/v8/custom/V8StorageCustom.cpp:
958         (WebCore::V8Custom::v8StorageNamedPropertyEnumerator):
959         * storage/Storage.cpp:
960         (WebCore::Storage::key):
961         * storage/Storage.h:
962         * storage/Storage.idl:
963         * storage/StorageArea.h:
964         * storage/StorageAreaImpl.cpp:
965         (WebCore::StorageAreaImpl::key):
966         * storage/StorageAreaImpl.h:
967         * storage/StorageMap.cpp:
968         (WebCore::StorageMap::key):
969         * storage/StorageMap.h:
970
971 2009-08-07  Michael Nordman  <michaeln@google.com>
972
973         Reviewed by Darin Fisher.
974
975         https://bugs.webkit.org/show_bug.cgi?id=28087
976
977         Mods for a chrome specific impl of ApplicationCacheHost.
978
979         * The public section of the interface is the same, but we use
980         PLATFORM(CHROMIUM) to identify which parts of the private
981         section are shared. The chrome specific internals are encapsulated
982         in a seperate ApplicationCacheHostInternal class. WebCore common
983         code only contains a forward reference to this class.
984
985         * Cleanup a couple of stale comments.
986
987         * Have window.applicationCache return null to script when the
988         feature is disabled in the preferences.
989         
990         No new tests.
991
992         * loader/appcache/ApplicationCacheHost.cpp:
993         * loader/appcache/ApplicationCacheHost.h:
994         (WebCore::ApplicationCacheHost::documentLoader):
995         * page/DOMWindow.cpp:
996         (WebCore::DOMWindow::applicationCache):
997
998 2009-08-10  Crystal Zhang  <crystal.zhang@torchmobile.com>
999
1000         Reviewed by George Staikos.
1001
1002         Implement GraphicsContext::fillRoundRect() for WINCE port
1003         https://bugs.webkit.org/show_bug.cgi?id=27842
1004
1005         * platform/graphics/GraphicsContext.h:
1006         * platform/graphics/wince/GraphicsContextWince.cpp:
1007         (WebCore::rectCenterPoint):
1008         (WebCore::GraphicsContext::fillRoundedRect):
1009         (WebCore::GraphicsContext::drawRoundCorner):
1010
1011 2009-08-10  Anthony Ricaud  <rik@webkit.org>
1012
1013         Reviewed by Timothy Hatcher.
1014
1015         Inspector Resources / Graphs should support filtering
1016         https://bugs.webkit.org/show_bug.cgi?id=20629
1017
1018         Introduces a filter bar for resources.
1019
1020         Thanks to Matt Lilek for the CSS scope bar.
1021
1022         * English.lproj/localizedStrings.js:
1023         * inspector/front-end/ResourcesPanel.js:
1024         (WebInspector.ResourcesPanel.createFilterElement):
1025         (WebInspector.ResourcesPanel):
1026         (WebInspector.ResourcesPanel.prototype.toolbarItemClass.categoryOrder.filter):
1027         (WebInspector.ResourcesPanel.prototype._updateFilter):
1028         (WebInspector.ResourcesPanel.prototype._updateSummaryGraph):
1029         * inspector/front-end/inspector.css:
1030         * inspector/front-end/inspector.js:
1031         (WebInspector.loaded):
1032
1033 2009-08-10  Brent Fulgham  <bfulgham@webkit.org>
1034
1035         Unreviewed build correction after http://trac.webkit.org/changeset/46978
1036
1037         * platform/network/curl/ResourceHandleManager.cpp:
1038         (WebCore::ResourceHandleManager::initializeHandle):  Correct
1039          deprecated removeRef to new removeFragmentIdentifier.
1040
1041 2009-08-07  Ryosuke Niwa  <rniwa@webkit.org>
1042
1043         Reviewed by Justin Garcia.
1044
1045         Background color formatting lost on enter
1046         https://bugs.webkit.org/show_bug.cgi?id=20348
1047
1048         This patch makes background color be preserved during editing.
1049         In particular, editingStyleAtPosition would include the background color when obtaining styles.
1050
1051         * editing/ApplyStyleCommand.cpp:
1052         (WebCore::): Added CSSPropertyBackgroundColor to editingStyleProperties
1053
1054 2009-08-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1055
1056         Reviewed by Simon Hausmann.
1057
1058         Stop sending QEvent::CursorChange to Qt for mouse move.
1059
1060         Verify if the cursor didn't change in WidgetQt::setCursor,
1061         just like the mac port does.
1062
1063         Thanks to Adriano Rezendo for spotting and debugging the
1064         issue.
1065
1066         * platform/qt/WidgetQt.cpp:
1067         (WebCore::Widget::setCursor):
1068
1069 2009-08-10  Alexey Proskuryakov  <ap@apple.com>
1070
1071         Reviewed by Brady Eidson.
1072
1073         https://bugs.webkit.org/show_bug.cgi?id=28165
1074         Application cache maximum size cannot be set before the database is opened
1075
1076         * loader/appcache/ApplicationCacheStorage.cpp:
1077         (WebCore::ApplicationCacheStorage::vacuumDatabaseFile): Open appcache database if it isn't
1078         open yet.
1079
1080 2009-08-10  Vitaly Repeshko  <vitalyr@quad.spb.corp.google.com>
1081
1082         Reviewed by Dimitri Glazkov.
1083
1084         [V8] Fix memory leak in node event listeners. See http://crbug.com/17400.
1085         https://bugs.webkit.org/show_bug.cgi?id=28156
1086
1087         * bindings/scripts/CodeGeneratorV8.pm: Custom event handler accessors now apply to all Node descendants.
1088         * bindings/v8/V8AbstractEventListener.h:
1089         (WebCore::V8AbstractEventListener::isObjectListener): Added virtual method to detect listeners that have weak references to JS objects.
1090         * bindings/v8/V8DOMWrapper.cpp:
1091         (WebCore::V8DOMWrapper::getTemplate):
1092         * bindings/v8/V8ObjectEventListener.cpp:
1093         * bindings/v8/V8ObjectEventListener.h:
1094         (WebCore::V8ObjectEventListener::isObjectListener):
1095         * bindings/v8/V8Utilities.cpp:
1096         (WebCore::removeHiddenDependency):
1097         * bindings/v8/custom/V8CustomBinding.h:
1098         * bindings/v8/custom/V8ElementCustom.cpp:
1099         * bindings/v8/custom/V8NodeCustom.cpp: Moved custom accessors from V8ElementCustom.cpp.
1100         (WebCore::toEventType):
1101         (WebCore::getEventListener):
1102         (WebCore::ACCESSOR_SETTER):
1103         (WebCore::ACCESSOR_GETTER):
1104         (WebCore::CALLBACK_FUNC_DECL):
1105         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
1106         (WebCore::getEventListener): Made static.
1107
1108 2009-08-10  Jeremy Orlow  <jorlow@chromium.org>
1109
1110         Reviewed by Darin Fisher.
1111
1112         Cleanup DOM Storage namespace shutdown code + usage of security origin.
1113         https://bugs.webkit.org/show_bug.cgi?id=28094
1114
1115         If a storage namespace is not explicitly closed, be sure to do so on
1116         destruction of the object.  In addition, the close call should wait
1117         on the background thread finishing its syncing.  (Not doing so is actually
1118         a regression from the original LocalStorage code.)
1119
1120         There's no point to passing in the SecurityOrigin when copying a storage
1121         area since what was passed in is exactly what is stored within each
1122         storage area.  In addition, the non-copy constructor should take in a
1123         PassRefPtr rather than a pointer since that pointer was only passed into
1124         the constuctor for RefPtr's anyway.
1125
1126         * storage/StorageAreaImpl.cpp:
1127         (WebCore::StorageAreaImpl::StorageAreaImpl):
1128         (WebCore::StorageAreaImpl::copy):
1129         * storage/StorageAreaImpl.h:
1130         * storage/StorageNamespaceImpl.cpp:
1131         (WebCore::StorageNamespaceImpl::StorageNamespaceImpl):
1132         (WebCore::StorageNamespaceImpl::~StorageNamespaceImpl):
1133         (WebCore::StorageNamespaceImpl::copy):
1134         (WebCore::StorageNamespaceImpl::close):
1135         * storage/StorageNamespaceImpl.h:
1136
1137 2009-08-10  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
1138
1139         Not reviewed, build fix.
1140
1141         Rename ref() to fragmentIdentifier() in the wml/ subdirectory.
1142
1143         * wml/WMLCardElement.cpp:
1144         (WebCore::WMLCardElement::determineActiveCard):
1145         * wml/WMLGoElement.cpp:
1146         (WebCore::WMLGoElement::executeTask):
1147         * wml/WMLPageState.cpp:
1148         (WebCore::WMLPageState::canAccessDeck):
1149
1150 2009-08-10  Steve Falkenburg  <sfalken@apple.com>
1151
1152         Windows build fix.
1153
1154         Exclude JSMedia.cpp from build since it is included in DerivedSources.cpp.
1155         Fixes linker warnings.        
1156         
1157         Corrected spelling of JSInspectorBackend.cpp.
1158         
1159         Other changes related to actually using a Visual Studio to open/save the vcproj file.
1160
1161         * WebCore.vcproj/WebCore.vcproj:
1162
1163 2009-08-10  Sam Weinig  <sam@webkit.org>
1164
1165         Reviewed by Anders Carlsson.
1166
1167         Remove a dead #define.
1168
1169         * bindings/js/JSDOMBinding.cpp:
1170
1171 2009-08-10  Dimitri Glazkov  <dglazkov@chromium.org>
1172
1173         Unreviewed, build fix.
1174
1175         [Chromium] Update KURLGoogle for ref* method renames in
1176         http://trac.webkit.org/changeset/46978.
1177         https://bugs.webkit.org/show_bug.cgi?id=28084
1178
1179         * bindings/v8/custom/V8LocationCustom.cpp:
1180         (WebCore::ACCESSOR_SETTER): Renamed ref and setRef to fragmentIdentifier and
1181             setFragmentIdentifier, respectively.
1182         * platform/KURLGoogle.cpp: Ditto, plus all other ref* method names.
1183
1184 2009-08-10  Jan Michael Alonzo  <jmalonzo@webkit.org>
1185
1186         [Gtk] Unreviewed. Fix the nit as suggested by Darin in bug #28144
1187         for r46989.
1188
1189         * platform/network/soup/ResourceHandleSoup.cpp:
1190         (WebCore::finishedCallback):
1191
1192 2009-08-10  John Kjellberg  <john.kjellberg@power.alstom.com>
1193
1194         Reviewed by Darin Adler.
1195
1196         Memory leak in error handling code for SOUP interface
1197         https://bugs.webkit.org/show_bug.cgi?id=28144
1198
1199         Freed memory leaked in error handling code for soup requests.
1200
1201         * platform/network/soup/ResourceHandleSoup.cpp:
1202         (WebCore::finishedCallback):
1203         (WebCore::):
1204
1205 2009-08-10  Dimitri Glazkov  <dglazkov@chromium.org>
1206
1207         Reviewed by Darin Adler.
1208
1209         Provide graceful handling of the situation when an embedder invokes
1210         visited link update methods before a Page constructor has been called.
1211         https://bugs.webkit.org/show_bug.cgi?id=28149
1212
1213         * page/Page.cpp:
1214         (WebCore::Page::allVisitedStateChanged): Added a null-check for allPages.
1215         (WebCore::Page::visitedStateChanged): Ditto.
1216
1217 2009-08-10  Xan Lopez  <xlopez@igalia.com>
1218
1219         Fix GTK+ build.
1220
1221         * platform/network/soup/ResourceHandleSoup.cpp:
1222         (WebCore::):
1223
1224 2009-08-10  Dan Bernstein  <mitz@apple.com>
1225
1226         Reviewed by Anders Carlsson.
1227
1228         Remove the redundant, Windows CE-only GlyphBuffer::advnaceData()
1229
1230         * platform/graphics/GlyphBuffer.h: Removed advanceData().
1231         * platform/graphics/wince/GraphicsContextWince.cpp:
1232         (WebCore::GraphicsContext::drawText): Changed to use advances(from)
1233             instead of advanceData() + from.
1234
1235 2009-08-10  Xan Lopez  <xlopez@igalia.com>
1236
1237         Reviewed by Gustavo Noronha.
1238
1239         Remove workaround for older libsoup versions.
1240
1241         * platform/network/soup/ResourceHandleSoup.cpp:
1242         (WebCore::fillResponseFromMessage):
1243
1244 2009-08-10  Xan Lopez  <xlopez@igalia.com>
1245
1246         Reviewed by Gustavo Noronha.
1247
1248         Let startHttp validate the URI instead of doing it, with potential
1249         crashes, in ::start.
1250
1251         * platform/network/soup/ResourceHandleSoup.cpp:
1252         (WebCore::startHttp):
1253
1254 2009-08-10  Darin Adler  <darin@apple.com>
1255
1256         Reviewed by Dan Bernstein.
1257
1258         When empty <input> is focused, getSelection() exposes shadow tree nodes
1259         https://bugs.webkit.org/show_bug.cgi?id=15903
1260
1261         Test: fast/forms/shadow-tree-exposure.html
1262
1263         * page/DOMSelection.cpp:
1264         (WebCore::selectionShadowAncestor): Added.
1265         (WebCore::DOMSelection::anchorNode): Return the parent of the shadow
1266         ancestor if the selection is in a shadow tree. Matches Firefox.
1267         (WebCore::DOMSelection::anchorOffset): Return the index of the shadow
1268         ancestor if the selection is in a shadow tree. Matches Firefox.
1269         (WebCore::DOMSelection::focusNode): Ditto.
1270         (WebCore::DOMSelection::focusOffset): Ditto.
1271         (WebCore::DOMSelection::baseNode): More of the same, but since this
1272         is a WebKit-invented property, it does not match Firefox.
1273         (WebCore::DOMSelection::baseOffset): Ditto.
1274         (WebCore::DOMSelection::extentNode): Ditto.
1275         (WebCore::DOMSelection::extentOffset): Ditto.
1276         (WebCore::DOMSelection::isCollapsed): Return true even when the
1277         selection is a range, if the selection is in the shadow tree.
1278         Matches Firefox. Also changed behavior when called and the frame
1279         is gone to return true instead of false which makes more sense.
1280         (WebCore::DOMSelection::empty): Use clear() just like the other
1281         selection-clearing function in this file does.
1282         (WebCore::DOMSelection::getRangeAt): Return a range that starts
1283         and ends before the shadow ancestor. Matches Firefox.
1284
1285 2009-08-10  Pavel Feldman  <pfeldman@chromium.org>
1286
1287         Reviewed by Timothy Hatcher.
1288
1289         Web Inspector: Make all status bar button images glyph-based.
1290
1291         https://bugs.webkit.org/show_bug.cgi?id=28124
1292
1293         * inspector/front-end/ElementsPanel.js:
1294         (WebInspector.ElementsPanel):
1295         * inspector/front-end/Images/clearConsoleButtonGlyph.png: Added.
1296         * inspector/front-end/Images/clearConsoleButtons.png: Removed.
1297         * inspector/front-end/Images/consoleButtonGlyph.png: Added.
1298         * inspector/front-end/Images/consoleButtons.png: Removed.
1299         * inspector/front-end/Images/dockButtonGlyph.png: Added.
1300         * inspector/front-end/Images/dockButtons.png: Removed.
1301         * inspector/front-end/Images/enableButtons.png: Removed.
1302         * inspector/front-end/Images/enableOutlineButtonGlyph.png: Added.
1303         * inspector/front-end/Images/enableSolidButtonGlyph.png: Added.
1304         * inspector/front-end/Images/excludeButtonGlyph.png: Added.
1305         * inspector/front-end/Images/excludeButtons.png: Removed.
1306         * inspector/front-end/Images/focusButtonGlyph.png: Added.
1307         * inspector/front-end/Images/focusButtons.png: Removed.
1308         * inspector/front-end/Images/largerResourcesButtonGlyph.png: Added.
1309         * inspector/front-end/Images/largerResourcesButtons.png: Removed.
1310         * inspector/front-end/Images/nodeSearchButtonGlyph.png: Added.
1311         * inspector/front-end/Images/nodeSearchButtons.png: Removed.
1312         * inspector/front-end/Images/pauseOnExceptionButtonGlyph.png: Added.
1313         * inspector/front-end/Images/pauseOnExceptionButtons.png: Removed.
1314         * inspector/front-end/Images/percentButtonGlyph.png: Added.
1315         * inspector/front-end/Images/percentButtons.png: Removed.
1316         * inspector/front-end/Images/recordButtonGlyph.png: Added.
1317         * inspector/front-end/Images/recordButtons.png: Removed.
1318         * inspector/front-end/Images/recordToggledButtonGlyph.png: Added.
1319         * inspector/front-end/Images/reloadButtonGlyph.png: Added.
1320         * inspector/front-end/Images/reloadButtons.png: Removed.
1321         * inspector/front-end/Images/undockButtonGlyph.png: Added.
1322         * inspector/front-end/Panel.js:
1323         (WebInspector.Panel.prototype.createStatusBarButton):
1324         * inspector/front-end/ProfilesPanel.js:
1325         (WebInspector.ProfilesPanel):
1326         * inspector/front-end/ResourcesPanel.js:
1327         (WebInspector.ResourcesPanel):
1328         * inspector/front-end/ScriptsPanel.js:
1329         (WebInspector.ScriptsPanel):
1330         * inspector/front-end/WebKit.qrc:
1331         * inspector/front-end/inspector.css:
1332         * inspector/front-end/inspector.html:
1333
1334 2009-08-07  Brady Eidson  <beidson@apple.com>
1335
1336         Reviewed by Darin Adler.
1337
1338         KURL ref() methods should be fragmentIdentifier() methods 
1339         https://bugs.webkit.org/show_bug.cgi?id=28084
1340
1341         In addition to the renames, also took the chance to replace all use of:
1342         setRef(String());
1343         with:
1344         removeFragmentIdentifier();
1345
1346         * platform/KURL.cpp:
1347         (WebCore::KURL::fragmentIdentifier):
1348         (WebCore::KURL::hasFragmentIdentifier):
1349         (WebCore::KURL::setFragmentIdentifier):
1350         (WebCore::KURL::removeFragmentIdentifier):
1351         (WebCore::KURL::prettyURL):
1352         (WebCore::equalIgnoringFragmentIdentifier):
1353         * platform/KURL.h:
1354
1355         * bindings/js/JSLocationCustom.cpp:
1356         (WebCore::JSLocation::setHash): Rework with new names, and to use the new equalIgnoringNullity() method.
1357
1358         * accessibility/AccessibilityRenderObject.cpp:
1359         (WebCore::AccessibilityRenderObject::internalLinkElement):
1360         * css/CSSCursorImageValue.cpp:
1361         (WebCore::isSVGCursorIdentifier):
1362         * history/HistoryItem.cpp:
1363         (WebCore::HistoryItem::isCurrentDocument):
1364         * html/HTMLAnchorElement.cpp:
1365         (WebCore::HTMLAnchorElement::hash):
1366         * html/HTMLFrameElementBase.cpp:
1367         (WebCore::HTMLFrameElementBase::isURLAllowed):
1368         * loader/FrameLoader.cpp:
1369         (WebCore::FrameLoader::begin):
1370         (WebCore::FrameLoader::gotoAnchor):
1371         (WebCore::FrameLoader::scheduleLocationChange):
1372         (WebCore::FrameLoader::scrollToAnchor):
1373         (WebCore::FrameLoader::shouldReload):
1374         (WebCore::FrameLoader::urlsMatchItem):
1375         * loader/appcache/ApplicationCache.cpp:
1376         (WebCore::ApplicationCache::resourceForURL):
1377         (WebCore::ApplicationCache::resourceForRequest):
1378         * loader/appcache/ApplicationCacheGroup.cpp:
1379         (WebCore::ApplicationCacheGroup::cacheForMainRequest):
1380         (WebCore::ApplicationCacheGroup::fallbackCacheForMainRequest):
1381         (WebCore::ApplicationCacheGroup::selectCache):
1382         (WebCore::ApplicationCacheGroup::finishedLoadingMainResource):
1383         (WebCore::ApplicationCacheGroup::didReceiveResponse):
1384         (WebCore::ApplicationCacheGroup::didFail):
1385         (WebCore::ApplicationCacheGroup::addEntry):
1386         * loader/appcache/ApplicationCacheResource.h:
1387         (WebCore::ApplicationCacheResource::create):
1388         * loader/appcache/ApplicationCacheStorage.cpp:
1389         (WebCore::ApplicationCacheStorage::findOrCreateCacheGroup):
1390         (WebCore::ApplicationCacheStorage::cacheGroupForURL):
1391         (WebCore::ApplicationCacheStorage::fallbackCacheGroupForURL):
1392         * loader/appcache/ManifestParser.cpp:
1393         (WebCore::parseManifest):
1394         * page/Location.cpp:
1395         (WebCore::Location::hash):
1396         * page/Page.cpp:
1397         (WebCore::Page::goToItem):
1398         * rendering/RenderPartObject.cpp:
1399         (WebCore::isURLAllowed):
1400         * workers/WorkerLocation.cpp:
1401         (WebCore::WorkerLocation::hash):
1402
1403 2009-08-10  Andy Shaw <andy.shaw@nokia.com>
1404
1405         Reviewed by Simon Hausmann.
1406
1407         Fix endless loop when the application is quit by a secondary thread during a sync xml http request.
1408
1409         Replace the m_finished state variable and the call to QCoreApplication::processEvents() with
1410         a dedicated QEventLoop, that can be terminated from within WebCoreSynchronousLoader as well
1411         as from Qt through its knowledge of globally registered eventloops.
1412
1413         There is no unit test for this bug as it would require exporting additional symbols and
1414         introduce the synchronous loader as global variable just for the test.
1415
1416         * platform/network/qt/ResourceHandleQt.cpp:
1417         (WebCore::WebCoreSynchronousLoader::didFinishLoading):
1418         (WebCore::WebCoreSynchronousLoader::didFail):
1419         (WebCore::WebCoreSynchronousLoader::waitForCompletion):
1420
1421 2009-08-10  Pavel Feldman  <pfeldman@chromium.org>
1422
1423         Reviewed by Timothy Hatcher.
1424
1425         WebInspector: Make properties inspection serialized.
1426
1427         https://bugs.webkit.org/show_bug.cgi?id=28078
1428
1429         * inspector/front-end/DOMAgent.js:
1430         (InspectorController.getPrototypes):
1431         (InspectorController.getProperties):
1432         * inspector/front-end/InjectedScript.js:
1433         (InjectedScript.getPrototypes):
1434         (InjectedScript.getProperties):
1435         (InjectedScript.setPropertyValue):
1436         * inspector/front-end/ObjectPropertiesSection.js:
1437         (WebInspector.ObjectRef):
1438         (WebInspector.ObjectPropertyRef):
1439         (WebInspector.ObjectPropertiesSection.prototype.onpopulate):
1440         (WebInspector.ObjectPropertiesSection.prototype.update.callback):
1441         (WebInspector.ObjectPropertiesSection.prototype.update):
1442         (WebInspector.ObjectPropertiesSection.prototype._update):
1443         (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate.callback):
1444         (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate):
1445         (WebInspector.ObjectPropertyTreeElement.prototype.onattach):
1446         (WebInspector.ObjectPropertyTreeElement.prototype.update):
1447         * inspector/front-end/PropertiesSidebarPane.js:
1448         (WebInspector.PropertiesSidebarPane.prototype.update.callback):
1449         (WebInspector.PropertiesSidebarPane.prototype.update):
1450
1451 2009-08-09  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
1452
1453         Reviewed by George Staikos.
1454
1455         [WML] wml.css lacks <pre> support
1456         https://bugs.webkit.org/show_bug.cgi?id=28135
1457
1458         Add <pre> support for WML.
1459         Extended fast/wml/text-emphasis.wml to cover <pre> support.
1460
1461         * css/wml.css: <pre> section copied from html.css
1462
1463 2009-08-09  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
1464
1465         Reviewed by Oliver Hunt.
1466
1467         Fix non-WML enabled builds. Remove ENABLE(WML) guards around the switch cases 'FrameLoadTypeBackWMLDeckNotAccessible'.
1468
1469         * loader/FrameLoader.cpp:
1470         (WebCore::isBackForwardLoadType):
1471         (WebCore::FrameLoader::restoreDocumentState):
1472         (WebCore::FrameLoader::transitionToCommitted):
1473         (WebCore::FrameLoader::loadItem):
1474
1475 2009-08-09  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
1476
1477         Reviewed by George Staikos.
1478
1479         [WML] Deck access control is completly broken
1480         https://bugs.webkit.org/show_bug.cgi?id=27721
1481
1482         Rewrite WML deck access control, actually works now standalone and within LayoutTests.
1483         Added several new layout tests covering local & remote access support.
1484
1485         In order to detect WML task execution failures from within the WML layout tests a new
1486         method Console::lastWMLErrorMessage() has been added, returning the last recorded WML
1487         error message. Change WML log messages to dump to InspectorClient, just like it's done
1488         for HTML - we used to behave like JSMessageSource, which is wrong.
1489
1490         Tests: http/tests/wml/access-target-domain-deny.html
1491                http/tests/wml/access-target-path-deny.html
1492                http/tests/wml/access-target.html
1493                wml/access-target-deny.html
1494                wml/access-target.html
1495
1496         * inspector/ConsoleMessage.h:
1497         (WebCore::ConsoleMessage::source): Added public method to fetch the message source type.
1498         (WebCore::ConsoleMessage::message): Added public method to access the error message.
1499         * inspector/InspectorController.h:
1500         (WebCore::InspectorController::consoleMessages): Added for Console::lastWMLErrorMessage(), to be able to crawl through the list of dumped messages.
1501         * loader/FrameLoader.cpp: Recognize 'FrameLoadTypeBackWMLDeckNotAccessible', all guarded by ENABLE(WML).
1502         (WebCore::isBackForwardLoadType):
1503         (WebCore::FrameLoader::restoreDocumentState):
1504         (WebCore::FrameLoader::transitionToCommitted):
1505         (WebCore::FrameLoader::loadItem):
1506         * loader/FrameLoaderTypes.h:
1507         (WebCore::): Add new load type 'FrameLoadTypeBackWMLDeckNotAccessible', behaving like FrameLoadTypeBack plus WML specific information.
1508         * page/Console.cpp:
1509         (WebCore::Console::addMessage): Don't dump WML messages using ChromeClient (as it's done for JSMessageSource), but go through InspectorController.
1510         (WebCore::Console::lastWMLErrorMessage): Crawl InspectorController::consoleMssages() to look up the last WML error message, if present.
1511         * page/Console.h:
1512         * page/Console.idl: Add "[DontEnum] DOMString lastWMLErrorMessage()".
1513         * wml/WMLAccessElement.cpp: Store path/domain as member variables and pass them to WMLPageState once in insertedIntoDocument().
1514         (WebCore::WMLAccessElement::parseMappedAttribute):
1515         (WebCore::WMLAccessElement::insertedIntoDocument):
1516         * wml/WMLAccessElement.h:
1517         * wml/WMLCardElement.cpp: Handle 'FrameLoadTypeBackWMLDeckNotAccessible' as deck-entry method. Report WML error in current deck.
1518         (WebCore::WMLCardElement::handleIntrinsicEventIfNeeded):
1519         * wml/WMLDocument.cpp: Enable deck-access control in finishedParsing. Take care of method name changes in WMLPageState.
1520         (WebCore::WMLDocument::finishedParsing):
1521         (WebCore::WMLDocument::initialize):
1522         * wml/WMLErrorHandling.cpp: Never report 'WMLErrorDeckNotAccessible' messages through the tokenizer, that would alter the page into error state.
1523         (WebCore::reportWMLError):
1524         * wml/WMLPageState.cpp: Completly rewrote access path/domain parsing & deck-access control, strictly following the WML spec. All covered by tests.
1525         (WebCore::WMLPageState::WMLPageState):
1526         (WebCore::normalizedHostName):
1527         (WebCore::hostFromURL):
1528         (WebCore::urlForHistoryItem):
1529         (WebCore::tryAccessHistoryURLs):
1530         (WebCore::WMLPageState::processAccessControlData):
1531         (WebCore::WMLPageState::resetAccessControlData):
1532         (WebCore::WMLPageState::canAccessDeck):
1533         (WebCore::WMLPageState::hostIsAllowedToAccess):
1534         (WebCore::WMLPageState::pathIsAllowedToAccess):
1535         * wml/WMLPageState.h:
1536
1537 2009-08-09  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
1538
1539         Reviewed by Maciej Stachowiak.
1540
1541         FrameLoadType / WebFrameLoadType enums are out of sync
1542         https://bugs.webkit.org/show_bug.cgi?id=28132
1543
1544         Modify FrameLoadType enum to match the order of WebFrameLoadType in WebFramePrivate.h / IWebFramePrivate.idl.
1545         The mac/win public API exposes the old 'FrameLoadTypeReloadAllowingStaleData' value, which resides between
1546         'FrameLoadTypeReload' and 'FrameLoadTypeSame'. Work around this problem, by assigning 'FrameLoadTypeSame = FrameLoadTypeReload + 2'.
1547
1548         Add a note to the FrameLoadType enum to keep it in sync with WebFramePrivate.h & IWebFramePrivate.idl.
1549
1550         * loader/FrameLoaderTypes.h:
1551         (WebCore::):
1552
1553 2009-08-09  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
1554
1555         Reviewed by George Staikos.
1556
1557         [WML] manual-tests/wml/onevent-prev.wml crashes
1558         https://bugs.webkit.org/show_bug.cgi?id=27722
1559
1560         Fix intrinsic event execution, leading to crashes.
1561         First finish parsing the document, then execute the events. Not the other way round.
1562         -> exposes bugs all over the WML layout tests, which relied on that quirk.
1563
1564         Fixes manual-tests/wml/onevent-prev.wml.
1565
1566         * wml/WMLDocument.cpp:
1567         (WebCore::WMLDocument::WMLDocument):
1568         (WebCore::WMLDocument::finishedParsing):
1569         (WebCore::WMLDocument::initialize):
1570         * wml/WMLDocument.h:
1571
1572 2009-08-08  Dimitri Glazkov  <dglazkov@chromium.org>
1573
1574         Unreviewed, build fix.
1575
1576         [Chromium] Update WebCore.gyp to add ImageBuffer.cpp,
1577         introduced by http://trac.webkit.org/changeset/46956.
1578         https://bugs.webkit.org/show_bug.cgi?id=27844
1579
1580         * WebCore.gypi: Added ImageBuffer.cpp.
1581
1582 2009-08-08  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
1583
1584         Rubber-stamped by Jan Michael Alonzo.
1585
1586         Add [DontEnum] to WML specific initializeWMLPageState/resetWMLPageState methods, to assure
1587         fast/dom/Window/window-properties.html doesn't show any differences when WML is enabled.
1588
1589         * dom/Document.idl:
1590
1591 2009-08-08  Dirk Schulze  <krit@webkit.org>
1592
1593         Reviewed by Eric Seidel.
1594
1595         SVG Filter need feColorMatrix implementation
1596         [https://bugs.webkit.org/show_bug.cgi?id=27711]
1597
1598         Adds the filter effect feColorMatrix to SVG filters. 
1599
1600         There is already a test in the w3c directory.
1601         Test: svg/W3C-SVG-1.1/filters-color-01-b.svg
1602
1603         * platform/graphics/filters/FEColorMatrix.cpp:
1604         (WebCore::matrix):
1605         (WebCore::saturate):
1606         (WebCore::huerotate):
1607         (WebCore::luminance):
1608         (WebCore::FEColorMatrix::apply):
1609
1610 2009-08-08  Dirk Schulze  <krit@webkit.org>
1611
1612         Reviewed by Oliver Hunt.
1613
1614         Build fix for Tiger.
1615         https://bugs.webkit.org/show_bug.cgi?id=27844
1616
1617         * platform/graphics/cg/ImageBufferCG.cpp:
1618         (WebCore::ImageBuffer::ImageBuffer):
1619
1620 2009-08-08  Dirk Schulze  <krit@webkit.org>
1621
1622         Reviewed by Oliver Hunt.
1623
1624         This is an initial implementation for linearRGB and sRGB support for all
1625         platforms. Some platforms like Cg support different color spaces
1626         natively, others like Qt, Cairo and Skia do not. This patch uses the
1627         native implementation of platforms if possible and offers a common version
1628         if not.
1629
1630         Different color spaces are used in SVG Filters. Nearly every Filter test 
1631         case is a test for this patch and will be enabled, once Filters are enabled.
1632         https://bugs.webkit.org/show_bug.cgi?id=27844
1633
1634         * GNUmakefile.am:
1635         * WebCore.pro:
1636         * html/canvas/CanvasRenderingContext2D.cpp:
1637         (WebCore::CanvasRenderingContext2D::drawTextInternal):
1638         * html/HTMLCanvasElement.cpp:
1639         (WebCore::HTMLCanvasElement::createImageBuffer):
1640         * platform/graphics/GeneratedImage.cpp:
1641         (WebCore::GeneratedImage::drawPattern):
1642         * platform/graphics/ImageBuffer.cpp: Added.
1643         (WebCore::ImageBuffer::transformColorSpace):
1644         * platform/graphics/ImageBuffer.h:
1645         (WebCore::):
1646         (WebCore::ImageBuffer::create):
1647         * platform/graphics/cairo/ImageBufferCairo.cpp:
1648         (WebCore::ImageBuffer::ImageBuffer):
1649         (WebCore::ImageBuffer::platformTransformColorSpace):
1650         * platform/graphics/cairo/ImageCairo.cpp:
1651         (WebCore::Image::drawPattern):
1652         * platform/graphics/cg/ImageBufferCG.cpp:
1653         (WebCore::ImageBuffer::ImageBuffer):
1654         * platform/graphics/chromium/TransparencyWin.cpp:
1655         (WebCore::TransparencyWin::OwnedBuffers::OwnedBuffers):
1656         * platform/graphics/filters/FilterEffect.cpp:
1657         (WebCore::FilterEffect::getEffectContext):
1658         * platform/graphics/qt/ImageBufferQt.cpp:
1659         (WebCore::ImageBuffer::ImageBuffer):
1660         (WebCore::ImageBuffer::platformTransformColorSpace):
1661         * platform/graphics/qt/PathQt.cpp:
1662         (WebCore::Path::strokeContains):
1663         (WebCore::Path::strokeBoundingRect):
1664         * platform/graphics/skia/ImageBufferSkia.cpp:
1665         (WebCore::ImageBuffer::ImageBuffer):
1666         (WebCore::ImageBuffer::platformTransformColorSpace):
1667         * platform/graphics/skia/SkiaUtils.cpp:
1668         (WebCore::scratchContext):
1669         * platform/graphics/wx/ImageBufferWx.cpp:
1670         (WebCore::ImageBuffer::ImageBuffer):
1671         * platform/mac/ScrollbarThemeMac.mm:
1672         (WebCore::ScrollbarThemeMac::paint):
1673         * rendering/RenderBoxModelObject.cpp:
1674         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
1675         * svg/SVGMaskElement.cpp:
1676         (WebCore::SVGMaskElement::drawMaskerContent):
1677         * svg/SVGPatternElement.cpp:
1678         (WebCore::SVGPatternElement::buildPattern):
1679         * svg/graphics/SVGImage.cpp:
1680         (WebCore::SVGImage::nativeImageForCurrentFrame):
1681         * svg/graphics/SVGPaintServerGradient.cpp:
1682         (WebCore::createMaskAndSwapContextForTextGradient):
1683         * svg/graphics/SVGPaintServerPattern.cpp:
1684         (WebCore::SVGPaintServerPattern::setup):
1685         * svg/graphics/SVGResourceFilter.cpp:
1686         (WebCore::SVGResourceFilter::prepareFilter):
1687         (WebCore::SVGResourceFilter::applyFilter):
1688         * svg/graphics/SVGResourceMasker.cpp:
1689         (WebCore::SVGResourceMasker::applyMask):
1690         * svg/graphics/filters/SVGFETile.cpp:
1691         (WebCore::FETile::apply):
1692
1693 2009-08-08  Xan Lopez  <xlopez@igalia.com>
1694
1695         Roll out r46928, since it wasn't done in accordance with the
1696         agreed naming.
1697
1698         * bindings/gdom/GdomDOMObject.cpp: Removed.
1699
1700 2009-08-08  Jan Michael Alonzo  <jmalonzo@webkit.org>
1701
1702         Reviewed by Xan Lopez.
1703
1704         [Gtk] Enable accessibility in Gtk DRT
1705         https://bugs.webkit.org/show_bug.cgi?id=25989
1706
1707         Add SPI to get the focused accessible element to be used by DRT.
1708
1709         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1710         (webkit_accessible_get_focused_element):
1711         * accessibility/gtk/AccessibilityObjectWrapperAtk.h:
1712
1713 2009-08-07  Jan Michael Alonzo  <jmalonzo@webkit.org>
1714
1715         Gtk build fix - add html/canvas to the binding generator's include path
1716
1717         * GNUmakefile.am:
1718
1719 2009-08-07  Oliver Hunt  <oliver@apple.com>
1720
1721         Another attempt to fix windows.
1722
1723         * WebCore.vcproj/WebCore.vcproj:
1724         * WebCore.vcproj/WebCoreCommon.vsprops:
1725
1726 2009-08-07  Oliver Hunt  <oliver@apple.com>
1727
1728         Windows build fix
1729
1730         * WebCore.vcproj/WebCore.vcproj:
1731
1732 2009-08-07  Jan Michael Alonzo  <jmalonzo@webkit.org>
1733
1734         Gtk build fix - add html/canvas to the include path.
1735
1736         * GNUmakefile.am:
1737
1738 2009-08-07  Adam Treat  <adam.treat@torchmobile.com>
1739
1740         Prospective build fix for Qt following r46937.
1741
1742         * WebCore.pro:
1743
1744 2009-08-07  Yong Li  <yong.li@torchmobile.com>
1745
1746         WINCE PORT: store only width for GlyphBufferAdvance, to save space on low-memory devices
1747         https://bugs.webkit.org/show_bug.cgi?id=27734
1748
1749         * platform/graphics/GlyphBuffer.h:
1750         (WebCore::GlyphBuffer::advanceAt):
1751         (WebCore::GlyphBuffer::advanceData):
1752         (WebCore::GlyphBuffer::add):
1753
1754 2009-08-07  Yong Li  <yong.li@torchmobile.com>
1755
1756         Reviewed by Eric Seidel.
1757
1758         WINCE PORT: pass unrecognized glyphs to GDI to handle
1759         https://bugs.webkit.org/show_bug.cgi?id=27734
1760
1761         * platform/graphics/FontFastPath.cpp:
1762         (WebCore::Font::glyphDataForCharacter):
1763
1764 2009-08-07  Chris Marrin  <cmarrin@apple.com>
1765
1766         Reviewed by Oliver Hunt.
1767
1768         Move Canvas related file to a subdirectories
1769         https://bugs.webkit.org/show_bug.cgi?id=28026
1770
1771         * DerivedSources.make:
1772         * GNUmakefile.am:
1773         * WebCore.gypi:
1774         * WebCore.pro:
1775         * WebCore.vcproj/WebCore.vcproj:
1776         * WebCore.xcodeproj/project.pbxproj:
1777         * WebCoreSources.bkl:
1778         * html/CanvasGradient.cpp: Removed.
1779         * html/CanvasGradient.h: Removed.
1780         * html/CanvasGradient.idl: Removed.
1781         * html/CanvasPattern.cpp: Removed.
1782         * html/CanvasPattern.h: Removed.
1783         * html/CanvasPattern.idl: Removed.
1784         * html/CanvasPixelArray.cpp: Removed.
1785         * html/CanvasPixelArray.h: Removed.
1786         * html/CanvasPixelArray.idl: Removed.
1787         * html/CanvasRenderingContext2D.cpp: Removed.
1788         * html/CanvasRenderingContext2D.h: Removed.
1789         * html/CanvasRenderingContext2D.idl: Removed.
1790         * html/CanvasStyle.cpp: Removed.
1791         * html/CanvasStyle.h: Removed.
1792         * html/canvas: Added.
1793         * html/canvas/CanvasGradient.cpp: Copied from WebCore/html/CanvasGradient.cpp.
1794         * html/canvas/CanvasGradient.h: Copied from WebCore/html/CanvasGradient.h.
1795         * html/canvas/CanvasGradient.idl: Copied from WebCore/html/CanvasGradient.idl.
1796         * html/canvas/CanvasPattern.cpp: Copied from WebCore/html/CanvasPattern.cpp.
1797         * html/canvas/CanvasPattern.h: Copied from WebCore/html/CanvasPattern.h.
1798         * html/canvas/CanvasPattern.idl: Copied from WebCore/html/CanvasPattern.idl.
1799         * html/canvas/CanvasPixelArray.cpp: Copied from WebCore/html/CanvasPixelArray.cpp.
1800         * html/canvas/CanvasPixelArray.h: Copied from WebCore/html/CanvasPixelArray.h.
1801         * html/canvas/CanvasPixelArray.idl: Copied from WebCore/html/CanvasPixelArray.idl.
1802         * html/canvas/CanvasRenderingContext2D.cpp: Copied from WebCore/html/CanvasRenderingContext2D.cpp.
1803         * html/canvas/CanvasRenderingContext2D.h: Copied from WebCore/html/CanvasRenderingContext2D.h.
1804         * html/canvas/CanvasRenderingContext2D.idl: Copied from WebCore/html/CanvasRenderingContext2D.idl.
1805         * html/canvas/CanvasStyle.cpp: Copied from WebCore/html/CanvasStyle.cpp.
1806         * html/canvas/CanvasStyle.h: Copied from WebCore/html/CanvasStyle.h.
1807
1808 2009-08-07  Szabo Carol  <carol.szabo@nokia.com>
1809
1810         Reviewed by David Hyatt.
1811
1812         QtWebkit ignores letter-spacing and word-spacing styles.
1813         QtWebkit handles custom letter-spacing and word-spacing in the native QFont
1814         class, but the values for these options are not not passed on from
1815         the platform independent part of the Font class.
1816         Fixed QtWebkit behavior by applying the options to QFont when it is
1817         returned via Font::font()
1818
1819         http://bugs.webkit.org/show_bug.cgi?id=27988
1820
1821         LayoutTests:
1822         fast/css/word-space-extra.html
1823         css2.1/t1604-c542-letter-sp-00-b-a.html
1824         css2.1/t1604-c541-word-sp-01-b-a.html
1825         css1/text_properties/word_spacing.html
1826         
1827         * platform/graphics/qt/FontQt.cpp:
1828         (WebCore::Font::font):
1829
1830 2009-08-07  Nicolas Weber  <thakis@chromium.org>
1831
1832         Reviewed by Darin Adler.
1833
1834         Use correct highlight color for listboxes and completion popups.
1835
1836         https://bugs.webkit.org/show_bug.cgi?id=28090
1837
1838         * rendering/RenderThemeChromiumMac.h:
1839         * rendering/RenderThemeChromiumMac.mm:
1840         Rename activeListBoxSelectionBackgroundColor to
1841         platformActiveListBoxSelectionBackgroundColor, so that it actually
1842         overrides a virtual method.
1843
1844 2009-08-07  Maxime Simon  <simon.maxime@gmail.com>
1845
1846         Reviewed by Eric Seidel.
1847
1848         Added a fourth bunch of Haiku-specific files for WebCore.
1849         https://bugs.webkit.org/show_bug.cgi?id=26988
1850
1851         * platform/haiku/PasteboardHaiku.cpp: Added.
1852         (WebCore::Pasteboard::Pasteboard):
1853         (WebCore::Pasteboard::generalPasteboard):
1854         (WebCore::Pasteboard::writeSelection):
1855         (WebCore::Pasteboard::canSmartReplace):
1856         (WebCore::Pasteboard::plainText):
1857         (WebCore::Pasteboard::documentFragment):
1858         (WebCore::Pasteboard::writeURL):
1859         (WebCore::Pasteboard::writeImage):
1860         (WebCore::Pasteboard::clear):
1861         * platform/haiku/PlatformKeyboardEventHaiku.cpp: Added.
1862         (WebCore::keyIdentifierForHaikuKeyCode):
1863         (WebCore::windowsKeyCodeForKeyEvent):
1864         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
1865         (WebCore::PlatformKeyboardEvent::disambiguateKeyDownEvent):
1866         (WebCore::PlatformKeyboardEvent::currentCapsLockState):
1867         * platform/haiku/PlatformMouseEventHaiku.cpp: Added.
1868         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1869         * platform/haiku/PlatformWheelEventHaiku.cpp: Added.
1870         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1871
1872 2009-08-07  Nicolas Weber  <thakis@chromium.org>
1873
1874         Teach WebKit how to decode jpegs in cmyk and ycck color spaces.
1875         Heavily inspired by Firefox's take on this issue.
1876
1877         https://bugs.webkit.org/show_bug.cgi?id=27909
1878
1879         Reviewed by Eric Seidel.
1880
1881         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
1882         (WebCore::JPEGImageReader::decode):
1883         Tell jpeglib to convert ycck to cmyk and keep cmyk.
1884         (WebCore::convertCMYKToRGBA):
1885         Added function to convert cmyk to rgb.
1886         (WebCore::convertRGBToRGBA):
1887         Extracted existing conversion logic into its own function.
1888         (WebCore::JPEGImageDecoder::outputScanlines):
1889         Call convertCMYKToRGBA for cmyk images, convertRGBToRGBA for rgb
1890         images.
1891
1892 2009-08-07  Drew Wilson  <atwilson@google.com>
1893
1894         Reviewed by David Levin.
1895
1896         SharedWorkers should be shared
1897         https://bugs.webkit.org/show_bug.cgi?id=28058
1898
1899         Added tracking of shared workers to the SharedWorkerRepository.
1900
1901         * workers/DefaultSharedWorkerRepository.cpp:
1902         (WebCore::SharedWorkerProxy::create):
1903         Changed SharedWorkerProxy to derive from ThreadSafeShared, as it needs to outlive the repository (if closed while some documents are still loading).
1904         (WebCore::SharedWorkerProxy::thread):
1905         (WebCore::SharedWorkerProxy::closing):
1906         Added flag used to determine whether the worker has closed itself while loading.
1907         (WebCore::SharedWorkerProxy::url):
1908         (WebCore::SharedWorkerProxy::name):
1909         Proxy now tracks worker URL and name to allow validity checks per section 4.8.3 of the WebWorkers spec.
1910         (WebCore::SharedWorkerProxy::SharedWorkerProxy):
1911         (WebCore::SharedWorkerProxy::addToDocumentSet):
1912         Added API to track the document set for a worker to allow worker shutdown. Currently does nothing.
1913         (WebCore::SharedWorkerScriptLoader::SharedWorkerScriptLoader):
1914         Renamed SharedWorkerLoader to be SharedWorkerScriptLoader for clarity.
1915         (WebCore::SharedWorkerScriptLoader::load):
1916         (WebCore::SharedWorkerScriptLoader::notifyFinished):
1917         (WebCore::DefaultSharedWorkerRepository::instance):
1918         (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
1919         Now handles "worker already loaded" case.
1920         (WebCore::SharedWorkerRepository::connect):
1921         Delegates to DefaultSharedWorkerRepository::connectToWorker
1922         (WebCore::DefaultSharedWorkerRepository::connectToWorker):
1923         Added code to track the SharedWorkerProxy in a map, and to handle the "worker already loaded" case.
1924         (WebCore::DefaultSharedWorkerRepository::getProxy):
1925         Atomic get-or-create operation on the internal tracking HashMap.
1926         * workers/DefaultSharedWorkerRepository.h:
1927         * workers/SharedWorker.cpp:
1928         (WebCore::SharedWorker::SharedWorker):
1929         * workers/SharedWorkerRepository.h:
1930         Removed instance() API and made constructor private to prevent instantiation.
1931         (WebCore::SharedWorkerRepository::SharedWorkerRepository):
1932
1933 2009-08-07  Maxime Simon  <simon.maxime@gmail.com>
1934
1935         Reviewed by Eric Seidel.
1936
1937         Added four Haiku-specific files for WebCore:
1938         PopupMenuHaiku.cpp, ScreenHaiku.cpp,
1939         SearchPopupMenuHaiku.cpp and SoundHaiku.cpp
1940         https://bugs.webkit.org/show_bug.cgi?id=28080
1941
1942         * platform/haiku/PopupMenuHaiku.cpp: Added.
1943         (WebCore::PopupMenu::PopupMenu):
1944         (WebCore::PopupMenu::~PopupMenu):
1945         (WebCore::PopupMenu::show):
1946         (WebCore::PopupMenu::hide):
1947         (WebCore::PopupMenu::updateFromElement):
1948         (WebCore::PopupMenu::itemWritingDirectionIsNatural):
1949         * platform/haiku/ScreenHaiku.cpp: Added.
1950         (WebCore::screenRect):
1951         (WebCore::screenAvailableRect):
1952         (WebCore::screenDepth):
1953         (WebCore::screenDepthPerComponent):
1954         (WebCore::screenIsMonochrome):
1955         * platform/haiku/SearchPopupMenuHaiku.cpp: Added.
1956         (WebCore::SearchPopupMenu::SearchPopupMenu):
1957         (WebCore::SearchPopupMenu::saveRecentSearches):
1958         (WebCore::SearchPopupMenu::loadRecentSearches):
1959         (WebCore::SearchPopupMenu::enabled):
1960         * platform/haiku/SoundHaiku.cpp: Added.
1961         (WebCore::systemBeep):
1962
1963 2009-08-07  Maxime Simon  <simon.maxime@gmail.com>
1964
1965         Reviewed by Eric Seidel.
1966
1967         Added two Haiku-specific files to WebCore:
1968         TemporaryLinkStubs.cpp and WidgetHaiku.cpp
1969         https://bugs.webkit.org/show_bug.cgi?id=28080
1970
1971         * platform/haiku/TemporaryLinkStubs.cpp: Added.
1972         (loadResourceIntoArray):
1973         (WebCore::historyContains):
1974         (WebCore::supportedKeySizes):
1975         (WebCore::signedPublicKeyAndChallengeString):
1976         (WebCore::userIdleTime):
1977         (WebCore::callOnMainThread):
1978         (WebCore::SharedBuffer::createWithContentsOfFile):
1979         (WebCore::KURL::fileSystemPath):
1980         (WebCore::getSupportedKeySizes):
1981         * platform/haiku/WidgetHaiku.cpp: Added.
1982         (WebCore::Widget::Widget):
1983         (WebCore::Widget::~Widget):
1984         (WebCore::Widget::frameRect):
1985         (WebCore::Widget::setFrameRect):
1986         (WebCore::Widget::setFocus):
1987         (WebCore::Widget::setCursor):
1988         (WebCore::Widget::show):
1989         (WebCore::Widget::hide):
1990         (WebCore::Widget::paint):
1991         (WebCore::Widget::setIsSelected):
1992
1993 2009-08-07  Jian Li  <jianli@chromium.org>
1994
1995         Reviewed by Dimitri Glazkov.
1996
1997         [V8] Fix the problem that isAttribute is set to false for onerror and
1998         onmessage in worker custom code.
1999         https://bugs.webkit.org/show_bug.cgi?id=28083
2000
2001         * bindings/v8/custom/V8AbstractWorkerCustom.cpp:
2002         (WebCore::getEventListener):
2003         (WebCore::ACCESSOR_SETTER):
2004         (WebCore::CALLBACK_FUNC_DECL):
2005         * bindings/v8/custom/V8WorkerContextCustom.cpp:
2006         (WebCore::ACCESSOR_SETTER):
2007         * bindings/v8/custom/V8WorkerCustom.cpp:
2008         (WebCore::getEventListener):
2009         (WebCore::ACCESSOR_SETTER):
2010
2011 2009-08-07  Vitaly Repeshko  <vitalyr@quad.spb.corp.google.com>
2012
2013         Reviewed by Dimitri Glazkov.
2014
2015         V8 bindings: speed up lookupDOMWrapper by using new V8 API function.
2016
2017         https://bugs.webkit.org/show_bug.cgi?id=28071
2018
2019         * bindings/v8/V8DOMWrapper.cpp:
2020         * bindings/v8/V8DOMWrapper.h:
2021         (WebCore::V8DOMWrapper::lookupDOMWrapper):
2022
2023 2009-08-07  Ryosuke Niwa  <rniwa@webkit.org>
2024
2025         Reviewed by Justin Garcia.
2026
2027         selectionHasStyle doesn't handle text-specific properties properly
2028         https://bugs.webkit.org/show_bug.cgi?id=27858
2029
2030         This patch modifies selectionHasStyle so that it returns TrueTriState when text styles
2031         (text-decoration, font-style, font-weight, & color) are present in all text nodes,
2032         regardless of whether the style is also present in their ancestor nodes or not.
2033         e.g. New behavior concludes that <b><i>hello</i><i>world</i></b> has italic style.
2034
2035         WebKit now applies the text styles (bold, italic, etc) if the specified style was not present on
2036         at least one text node, rather than at the beginning of selection except on Mac.
2037         On Mac, WebKit applies the text style if the style was not present at the beginning of style.
2038
2039         Test: editing/execCommand/toggle-compound-styles.html
2040
2041         * editing/ApplyStyleCommand.cpp:
2042         (WebCore::getPropertiesNotInComputedStyle): bug fix, must use copy instead of makeMutable for a mutable style.
2043         * editing/Editor.cpp:
2044         (WebCore::):
2045         (WebCore::triStateOfStyleInComputedStyle): Added a boolean type to ignore text-specific styles
2046         (WebCore::Editor::selectionHasStyle): Ignores text-specific styles for all but text nodes
2047         * editing/EditorCommand.cpp:
2048         (WebCore::executeToggleStyle): Uses selectionHasStyle instead of selectionStartHasStyle
2049
2050 2009-08-07  Jian Li  <jianli@chromium.org>
2051
2052         Reviewed by Dimitri Glazkov.
2053
2054         [V8] Do not register V8 error message listener in WorkerContextExecutionProxy.
2055         https://bugs.webkit.org/show_bug.cgi?id=28082
2056
2057         * bindings/v8/WorkerContextExecutionProxy.cpp:
2058         (WebCore::WorkerContextExecutionProxy::initV8IfNeeded):
2059
2060 2009-08-07  Kwang Yul Seo  <skyul@company100.net>
2061
2062         Reviewed by Eric Seidel.
2063
2064         Cairo-based Windows port does not handle cookies properly
2065         https://bugs.webkit.org/show_bug.cgi?id=27414
2066
2067         curl handles cookies by itself, so using WinINet functions
2068         to get and set cookies is wrong.
2069
2070         Replace CookieJarWin.cpp with CookieJarCurl.cpp so that
2071         cookies can be implemented later once curl provides an API to
2072         get and set cookies.
2073
2074         * WebCore.vcproj/WebCore.vcproj:
2075
2076 2009-08-07  Michael Nordman  <michaeln@google.com>
2077
2078         Reviewed by Dimitri Glazkov.
2079
2080         https://bugs.webkit.org/show_bug.cgi?id=28074
2081
2082         V8 bindings for the window.applicationCache attribute.
2083
2084         * WebCore.gypi:
2085         * bindings/scripts/CodeGeneratorV8.pm:
2086         * bindings/v8/DOMObjectsInclude.h:
2087         * bindings/v8/DerivedSourcesAllInOne.cpp:
2088         * bindings/v8/V8DOMWrapper.cpp:
2089         (WebCore::V8DOMWrapper::getTemplate):
2090         (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
2091         * bindings/v8/V8Index.cpp:
2092         * bindings/v8/V8Index.h:
2093         * bindings/v8/custom/V8CustomBinding.h:
2094         * bindings/v8/custom/V8DOMApplicationCacheCustom.cpp: Added.
2095
2096 2009-08-07  Alpha Lam  <hclam@chromium.org>
2097
2098         Reviewed by Eric Seidel.
2099
2100         Right click on timeline of media controls panel cause seek
2101         https://bugs.webkit.org/show_bug.cgi?id=27920
2102
2103         Add a test simulate the behavior of seeking by right clicking
2104         on the time bar of media controls while playing.
2105
2106         * media/controls-right-click-on-timebar-expected.txt: Added.
2107         * media/controls-right-click-on-timebar.html: Added.
2108
2109 2009-08-07  Ryosuke Niwa  <rniwa@webkit.org>
2110
2111         Reviewed by Justin Garcia.
2112
2113         deprecatedCopyInheritableProperties must be replaced by two different functions
2114         https://bugs.webkit.org/show_bug.cgi?id=28057
2115
2116         This patch deletes deprecatedInheritableProperties and modifies call callees to call either editingStyleAtPosition
2117         or prepareEditingStyleToApplyAt. The concept of editing style is introduced in this patch,
2118         which consists of all CSS properties need to be preserved under editing operations.
2119
2120         No test is added since this patch does not change any behavior.
2121
2122         * css/CSSComputedStyleDeclaration.cpp: Removed deprecatedCopyInheritableProperties
2123         * css/CSSComputedStyleDeclaration.h: Removed deprecatedCopyInheritableProperties
2124         * editing/ApplyStyleCommand.cpp:
2125         (WebCore::):
2126         (WebCore::editingStyleAtPosition): Obtains the editing-specific computed style at the position
2127         (WebCore::prepareEditingStyleToApplyAt): Removes redundant editing styles at the specified position
2128         (WebCore::removeStylesAddedByNode): Removes the style derived from the specified node
2129         * editing/ApplyStyleCommand.h:
2130         (WebCore::):
2131         * editing/CompositeEditCommand.cpp:
2132         (WebCore::CompositeEditCommand::moveParagraphs): Uses editingStyleAtPosition
2133         (WebCore::CompositeEditCommand::breakOutOfEmptyListItem): Uses editingStyleAtPosition
2134         * editing/DeleteSelectionCommand.cpp:
2135         (WebCore::removeEnclosingAnchorStyle): Uses removeStyleOfNode
2136         (WebCore::DeleteSelectionCommand::saveTypingStyleState): Uses editingStyleAtPosition
2137         (WebCore::DeleteSelectionCommand::calculateTypingStyleAfterDelete): Uses prepareEditingStyleToApplyAt
2138         * editing/EditCommand.cpp:
2139         * editing/EditCommand.h:
2140         * editing/InsertParagraphSeparatorCommand.cpp:
2141         (WebCore::InsertParagraphSeparatorCommand::calculateStyleBeforeInsertion): Uses editingStyleAtPosition
2142         (WebCore::InsertParagraphSeparatorCommand::applyStyleAfterInsertion): Uses prepareEditingStyleToApplyAt
2143         * editing/RemoveFormatCommand.cpp:
2144         (WebCore::RemoveFormatCommand::doApply): Uses editingStyleAtPosition
2145         * editing/ReplaceSelectionCommand.cpp:
2146         (WebCore::handleStyleSpansBeforeInsertion): Uses editingStyleAtPosition
2147         (WebCore::ReplaceSelectionCommand::handleStyleSpans): Uses editingStyleAtPosition and prepareEditingStyleToApplyAt
2148         (WebCore::ReplaceSelectionCommand::doApply): Uses prepareEditingStyleToApplyAt
2149         * editing/markup.cpp:
2150         (WebCore::removeEnclosingMailBlockquoteStyle): Uses removeStyleOfNode
2151         (WebCore::removeDefaultStyles): Uses prepareEditingStyleToApplyAt
2152         (WebCore::createMarkup): Uses editingStyleAtPosition
2153
2154 2009-08-07  Steve Block  <steveblock@google.com>
2155
2156         Reviewed by Darin Adler.
2157
2158         Bug 27250: Geolocation callback function IDL files are superfluous
2159         https://bugs.webkit.org/show_bug.cgi?id=27250
2160
2161         The objects for the Geolocation success and error callbacks are created 'manually' in
2162         WebCore/bindings/js/JSGeolocationCustom.cpp. Furthermore, the callback interfaces are 
2163         marked 'NoInterfaceObject' in the W3C spec, so the prototype should not
2164         appear on the window object. Hence IDL files for these callbacks are not required.
2165
2166         See http://www.w3.org/TR/geolocation-API/#geolocation_interface and
2167         http://www.w3.org/TR/WebIDL/#NoInterfaceObject.
2168
2169         No new tests required.
2170
2171         * DerivedSources.make: Modified. Removed reference to IDL files.
2172         * WebCore.gypi: Modified. Removed reference to IDL files.
2173         * WebCore.xcodeproj/project.pbxproj: Modified. Removed reference to IDL files.
2174         * page/PositionCallback.idl: Removed.
2175         * page/PositionErrorCallback.idl: Removed.
2176
2177 2009-08-07  Adam Treat  <adam.treat@torchmobile.com>
2178
2179         Reviewed by David Levin.
2180
2181         Build fix for Qt when ENABLE_VIDEO = 0.  This was necessitated by r46890 which
2182         put the idl files back into play regardless of compile time defines.
2183
2184         * html/TimeRanges.idl:
2185
2186 2009-08-07  Mike Fenton  <mike.fenton@torchmobile.com>
2187
2188         Reviewed by George Staikos.
2189
2190         Coding style patches for RenderThemeQt.cpp based on results from cpp_style.py.
2191
2192         https://bugs.webkit.org/show_bug.cgi?id=28050
2193
2194         * platform/qt/RenderThemeQt.cpp:
2195         (WebCore::RenderThemeQt::baselinePosition):
2196         (WebCore::inflateButtonRect):
2197         (WebCore::RenderThemeQt::supportsFocus):
2198         (WebCore::RenderThemeQt::applyTheme):
2199
2200 2009-08-07  Mike Fenton  <mike.fenton@torchmobile.com>
2201
2202         Reviewed by Eric Seidel.
2203
2204         Prevent RenderThemeQt AdjustStyle based calls for TextField, MenuList and MenuListButton
2205         from discarding style colour.
2206
2207         Add tests and remove tests from platform/qt/Skipped that now pass.
2208
2209         https://bugs.webkit.org/show_bug.cgi?id=28050
2210
2211         Tests: fast/forms/menulist-style-color.html
2212                fast/forms/text-style-color.html
2213
2214         * platform/qt/RenderThemeQt.cpp:
2215         (WebCore::RenderThemeQt::adjustTextFieldStyle):
2216         (WebCore::RenderThemeQt::adjustMenuListStyle):
2217         (WebCore::RenderThemeQt::adjustMenuListButtonStyle):
2218
2219 2009-08-07  Dimitri Glazkov  <dglazkov@chromium.org>
2220
2221         Unreviewed, build fix.
2222
2223         https://bugs.webkit.org/show_bug.cgi?id=22495
2224         [V8] Re-land http://trac.webkit.org/changeset/46821, now that
2225         http://trac.webkit.org/changeset/46874 re-landed
2226
2227         * bindings/v8/DOMObjectsInclude.h:
2228         * bindings/v8/DerivedSourcesAllInOne.cpp:
2229         * bindings/v8/V8Index.cpp:
2230         * bindings/v8/V8Index.h:
2231
2232 2009-08-07  Adam Treat  <adam.treat@torchmobile.com>
2233
2234         Reviewed by Darin Adler and George Staikos.
2235
2236         Add rectToRect convenience function which returns the TransformationMatrix
2237         which maps the 'from' rectangle to the 'to' rectangle.
2238
2239         https://bugs.webkit.org/show_bug.cgi?id=28067
2240
2241         No tests as this would require binding the method to js and since it is static
2242         that doesn't seem possible.  Please check the math.
2243
2244         * platform/graphics/transforms/TransformationMatrix.cpp:
2245         (WebCore::TransformationMatrix::rectToRect):
2246         * platform/graphics/transforms/TransformationMatrix.h:
2247
2248 2009-08-07  Brady Eidson  <beidson@apple.com>
2249
2250         Reviewed by Darin Adler.
2251
2252         Implement the HTML5 hashchange event.
2253         https://bugs.webkit.org/show_bug.cgi?id=21605
2254
2255         Test: fast/loader/hashchange-event.html
2256
2257         * dom/EventNames.h: Add "hashchange"
2258         * html/HTMLAttributeNames.in: Add "onhashchange"
2259
2260         * loader/FrameLoader.cpp:
2261         (WebCore::HashChangeEventTask::create):
2262         (WebCore::HashChangeEventTask::performTask):
2263         (WebCore::HashChangeEventTask::HashChangeEventTask):
2264         (WebCore::FrameLoader::scrollToAnchor): When an anchor navigation is completed and the
2265           new fragment identifier is different from the old one, queue a hash change event
2266           on the Document.
2267
2268         Add a window event listener for the hashchange event if onhashchange is encountered:
2269         * html/HTMLBodyElement.cpp:
2270         (WebCore::HTMLBodyElement::parseMappedAttribute): 
2271         * html/HTMLFrameSetElement.cpp:
2272         (WebCore::HTMLFrameSetElement::parseMappedAttribute):
2273
2274         Add a new string utility method that gives "null and empty are equivalent" behavior:
2275         * platform/text/PlatformString.h:
2276         (WebCore::equalIgnoringNullity):
2277         * platform/text/StringImpl.cpp:
2278         (WebCore::equalIgnoringNullity):
2279         * platform/text/StringImpl.h:
2280
2281 2009-08-07  Jessie Berlin  <jberlin@apple.com>
2282
2283         Reviewed by Timothy Hatcher.
2284
2285         Add the initial implementation of the ability to resize the columns in
2286         a DataGrid in the Web Inspector. Enables that functionality in both the
2287         Profile View and in the Local Storage View.
2288         
2289         https://bugs.webkit.org/show_bug.cgi?id=26182
2290         
2291         In this version, resizing a column can change the width of at most two
2292         columns (the columns to the left and right of the resizer being dragged).
2293         
2294         Possible changes in future patches:
2295         
2296         1) Be able to specify the minimum size of a column and the maximum size
2297            of a column. If the minimum size is equal to the maximum size, the
2298            column can't be resized.
2299         2) Make the behavior more in line with the following description:
2300         
2301         Everything before the column that is resized stays fixed size. The
2302         resized column changes sizes. The other columns except the last stay
2303         the same size. And the last column adjusts to fit with a minimum size.
2304         If the last column is already the minimum, the next to last column
2305         shrinks, etc.
2306         
2307         3) Make it possible to scale the column sizes appropriately when the
2308            Web Inspector window gets resized.
2309         
2310         * inspector/front-end/DOMStorageItemsView.js:
2311         (WebInspector.DOMStorageItemsView.prototype.update):
2312         Once the DataGrid is added to the DOM, update the widths of the
2313         DataGrid in order to put the resizers in place.
2314         (WebInspector.DOMStorageItemsView.prototype.resize):
2315         Update the widths of the DataGrid in order to correctly adjust the
2316         positions of the resizers.
2317         
2318         * inspector/front-end/DataGrid.js:
2319         (WebInspector.DataGrid):
2320         Store column groups whose widths can later be changed when the columns
2321         are resized by the user.
2322         Also, keep track of whether the widths of the columns have been
2323         initialized.
2324         (WebInspector.DataGrid.prototype.updateWidths):
2325         Create the resizers for the columns.
2326         (WebInspector.DataGrid.prototype._clickInDataTable):
2327         Didn't actually change anything in this method, just added a comma to
2328         the end of the function.
2329         (WebInspector.DataGrid.prototype._startResizerDragging):
2330         Store the resizer that is currently dragging.
2331         (WebInspector.DataGrid.prototype._resizerDragging):
2332         Constrain the area that the resizer can be dragged to the column to
2333         it's left and right, with some padding added to make sure that the
2334         neighboring columns don't disappear.
2335         (WebInspector.DataGrid.prototype._endResizerDragging):
2336         
2337         * inspector/front-end/DatabasesPanel.js:
2338         (WebInspector.DatabasesPanel.prototype.resize):
2339         Resize the view.
2340         (WebInspector.DatabasesPanel.prototype._updateSidebarWidth):
2341         ditto.
2342         
2343         * inspector/front-end/ProfileView.js:
2344         (WebInspector.ProfileView.prototype.show):
2345         Now that the DataGrid is actually attached to the DOM, update the
2346         widths of the DataGrid in order to put the resizers in place.
2347         (WebInspector.ProfileView.prototype.resize):
2348         Update the widths of the DataGrid in order to correctly adjust the
2349         positions of the resizers.
2350         
2351         * inspector/front-end/ProfilesPanel.js:
2352         (WebInspector.ProfilesPanel.prototype.resize):
2353         Resize the view.
2354         (WebInspector.ProfilesPanel.prototype._updateSidebarWidth):
2355         ditto.
2356         
2357         * inspector/front-end/inspector.css:
2358         Add in a style rule for a resizer in the Data Grid.
2359
2360 2009-08-07  Simon Hausmann  <simon.hausmann@nokia.com>
2361
2362         Reviewed by Tor Arne Vestbø.
2363
2364         Back out r46847 and fix the Qt build system to always generate
2365         all the JS binding files from IDL files. The generated files
2366         have #if feature guards, so the #ifs are not needed in the
2367         files using them.
2368
2369         * WebCore.pro:
2370         * bindings/js/JSEventTarget.cpp:
2371         * bindings/js/JSWorkerContextBase.cpp:
2372         * bindings/js/WorkerScriptController.cpp:
2373
2374 2009-08-07  Shinichiro Hamaji  <hamaji@chromium.org>
2375
2376         Reviewed by Adele Peterson.
2377
2378         Cannot scroll for box-reflect:right
2379         https://bugs.webkit.org/show_bug.cgi?id=27979
2380
2381         Update m_overflowLeft an m_overflowWidth for reflection just like
2382         m_overflowTop and m_overflowHeight.
2383
2384         Test: fast/reflections/reflection-overflow-scroll.html
2385
2386         * rendering/RenderBlock.cpp:
2387         (WebCore::RenderBlock::layoutBlock):
2388
2389 2009-08-06  Shinichiro Hamaji  <hamaji@chromium.org>
2390
2391         Reviewed by Adam Barth.
2392
2393         box-shadow's spread is ignored with <table>
2394         https://bugs.webkit.org/show_bug.cgi?id=28017
2395
2396         Use RenderStyle::getBoxShadowExtent just like RenderBlock.
2397
2398         Test: fast/box-shadow/box-shadow-overflow-scroll.html
2399
2400         * rendering/RenderTable.cpp:
2401         (WebCore::RenderTable::layout):
2402
2403 2009-08-06  Joseph Pecoraro  <joepeck02@gmail.com>
2404
2405         Reviewed by Timothy Hatcher.
2406
2407         Inspector: NodeLists Don't Display Well in the Console
2408         https://bugs.webkit.org/show_bug.cgi?id=28061
2409
2410         * inspector/front-end/ConsoleView.js:
2411         (WebInspector.ConsoleView.prototype._format): Specific check if the object is a NodeList, display as an "array"
2412
2413 2009-08-06  Yusuke Sato  <yusukes@chromium.org>
2414
2415         Reviewed by David Levin.
2416
2417         Chromium Linux: add support for @font-face
2418         https://bugs.webkit.org/show_bug.cgi?id=28015
2419         
2420         * loader/CachedFont.cpp:
2421         (WebCore::CachedFont::~CachedFont):
2422         (WebCore::CachedFont::ensureCustomFontData):
2423         (WebCore::CachedFont::platformDataFromCustomData):
2424         (WebCore::CachedFont::allClientsRemoved):
2425
2426         Modified #ifdefs so that chromium linux can load remote fonts.
2427         
2428         * platform/graphics/chromium/FontCustomPlatformData.cpp:
2429         (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
2430         (WebCore::FontCustomPlatformData::fontPlatformData):
2431         (WebCore::createFontCustomPlatformData):
2432
2433         Create SkTypeface for a web font by calling SkTypeface::CreateFromStream function.
2434         
2435         (WebCore::RemoteFontStream::RemoteFontStream):
2436         (WebCore::RemoteFontStream::~RemoteFontStream):
2437         (WebCore::RemoteFontStream::rewind):
2438         (WebCore::RemoteFontStream::read):
2439
2440         New class that implements SkStream interface and wraps wtf's SharedBuffer.
2441         
2442         * platform/graphics/chromium/FontCustomPlatformData.h:
2443         (WebCore::FontCustomPlatformData::FontCustomPlatformData):
2444
2445         Added member variables for Linux.
2446         
2447 2009-08-06  Yong Li  <yong.li@torchmobile.com>
2448
2449         Reviewed by Eric Seidel.
2450
2451         Fix JPEGImageDecoder.cpp compile error on WinCE
2452         https://bugs.webkit.org/show_bug.cgi?id=28051
2453
2454         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
2455
2456 2009-08-06  Kevin Ollivier  <kevino@theolliviers.com>
2457
2458         Reviewed by Eric Seidel.
2459
2460         Adding WebCore support for the waf build system for wx.
2461         
2462         https://bugs.webkit.org/show_bug.cgi?id=27619
2463
2464         * wscript: Added.
2465
2466 2009-08-06  Adam Barth  <abarth@webkit.org>
2467
2468         Unreviewed revert.
2469
2470         http://bugs.webkit.org/show_bug.cgi?id=27879
2471
2472         Revert 46877 because it broke GTK.
2473
2474         * platform/graphics/wince/GraphicsContextWince.cpp:
2475
2476 2009-08-06  Chris Fleizach  <cfleizach@apple.com>
2477
2478         Reviewed by Eric Seidel.
2479
2480         Bug 27956 - AX: roleValue should be cached for performance
2481         https://bugs.webkit.org/show_bug.cgi?id=27956
2482
2483         Caches the role value of an accessibility object instead of calculating it everytime.
2484         The changes gained a 5% speedup using VoiceOver to navigate a webpage.
2485
2486         * accessibility/AXObjectCache.cpp:
2487         (WebCore::AXObjectCache::handleAriaRoleChanged):
2488
2489         Use generic role setter instead of specific ARIA role setter.
2490
2491         * accessibility/AccessibilityObject.cpp:
2492         (WebCore::AccessibilityObject::AccessibilityObject):
2493         * accessibility/AccessibilityObject.h:
2494         (WebCore::AccessibilityObject::headingLevel):
2495
2496         Make headingLevel into instance method so that it can *safely* be called in the constructor.
2497
2498         (WebCore::AccessibilityObject::setRoleValue):
2499         (WebCore::AccessibilityObject::roleValue):
2500         * accessibility/AccessibilityRenderObject.cpp:
2501         (WebCore::AccessibilityRenderObject::AccessibilityRenderObject):
2502         (WebCore::AccessibilityRenderObject::headingLevel):
2503         (WebCore::AccessibilityRenderObject::intValue):
2504         (WebCore::AccessibilityRenderObject::updateAccessibilityRole):
2505         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
2506         * accessibility/AccessibilityRenderObject.h:
2507         * accessibility/mac/AccessibilityObjectWrapper.mm:
2508         (AXAttributeStringSetHeadingLevel):
2509
2510 2009-08-06  Zoltan Horvath  <hzoltan@inf.u-szeged.hu>
2511
2512         Reviewed by Adam Barth.
2513
2514         Change Noncopyable inheriting to public
2515         http://bugs.webkit.org/show_bug.cgi?id=27879
2516
2517         Since Noncopyable is inherited from FastAllocBase, Noncopyable's
2518         inheriting has been changed to public.
2519
2520         * platform/graphics/wince/GraphicsContextWince.cpp:
2521
2522 2009-08-06  Mark Rowe  <mrowe@apple.com>
2523
2524         Rubber-stamped by Sam Weinig.
2525
2526         Add explicit dependencies for our build verification scripts to ensure that they always run after linking has completed.
2527
2528         * WebCore.xcodeproj/project.pbxproj:
2529
2530 2009-08-05  Simon Fraser  <simon.fraser@apple.com>
2531
2532         Reviewed by Darin Adler.
2533
2534         Implement the matchMedium method on the Media interface described in the CSSOM View Module.
2535         https://bugs.webkit.org/show_bug.cgi?id=22495
2536         
2537         Add a new Media interface, obtainable via the AbstractView, that can
2538         evaluate queries via its matchesMedium() method.
2539
2540         Test: fast/media/matchmedium-query-api.html
2541
2542         * DerivedSources.cpp:
2543         * DerivedSources.make:
2544         * GNUmakefile.am:
2545         * WebCore.gypi:
2546         * WebCore.pro:
2547         * WebCore.vcproj/WebCore.vcproj:
2548         * WebCore.xcodeproj/project.pbxproj:
2549         * WebCoreSources.bkl:
2550         Add Media.* files to the build.
2551
2552         * css/Media.cpp: Added.
2553         (WebCore::Media::Media):
2554         (WebCore::Media::type):
2555         (WebCore::Media::matchMedium):
2556         * css/Media.h: Added.
2557         (WebCore::Media::create):
2558         (WebCore::Media::document):
2559         * css/Media.idl: Added.
2560         Media::matchMedium() uses a MediaQueryEvaluator() to test the query.
2561
2562         * page/AbstractView.idl:
2563         * page/DOMWindow.cpp:
2564         (WebCore::DOMWindow::media):
2565         * page/DOMWindow.h:
2566         * page/DOMWindow.idl:
2567         Add a readonly attribute for Media.
2568
2569 2009-08-06  Michelangelo De Simone  <micdesim@gmail.com>
2570
2571         Reviewed by Darin Adler.
2572
2573         https://bugs.webkit.org/show_bug.cgi?id=27455
2574         Support for a custom validation message in ValidityState and related
2575         form controls.
2576         http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#dom-cva-setcustomvalidity
2577
2578         Tests: fast/forms/ValidityState-customError-001.html
2579                fast/forms/ValidityState-customError-002.html
2580                fast/forms/ValidityState-customError-003.html
2581                fast/forms/ValidityState-customError-004.html
2582
2583         * html/HTMLButtonElement.idl: setCustomValidity DOM method
2584         * html/HTMLFieldSetElement.idl: ditto
2585         * html/HTMLFormControlElement.cpp:
2586         (WebCore::HTMLFormControlElement::setCustomValidity): ditto
2587         * html/HTMLFormControlElement.h:
2588         (WebCore::HTMLFormControlElement::valueMissing): moved down
2589         * html/HTMLInputElement.idl: ditto
2590         * html/HTMLSelectElement.idl: ditto
2591         * html/HTMLTextAreaElement.idl:
2592         * html/ValidityState.h:
2593         (WebCore::ValidityState::setCustomErrorMessage): method to set custom
2594         validation message
2595         (WebCore::ValidityState::customError): validation flag
2596
2597 2009-08-06  Mark Rowe  <mrowe@apple.com>
2598
2599         Bring a little order to our otherwise out of control lives.
2600
2601         * WebCore.xcodeproj/project.pbxproj:
2602
2603 2009-08-06  Mark Rowe  <mrowe@apple.com>
2604
2605         Stop copying .idl files in to the framework resources directory.
2606
2607         * WebCore.xcodeproj/project.pbxproj:
2608
2609 2009-08-06  Mark Rowe  <mrowe@apple.com>
2610
2611         Fix the build some more.
2612
2613         Add JSWebSocket.cpp and JSWebSocket.h to the Xcode project, and move the WebSocket-related
2614         files and groups in to the appropriate locations.
2615
2616         * WebCore.xcodeproj/project.pbxproj:
2617
2618 2009-08-06  Fumitoshi Ukai  <ukai@chromium.org>
2619
2620         Reviewed by Alexey Proskuryakov.
2621
2622         Add WebSocket.idl
2623         https://bugs.webkit.org/show_bug.cgi?id=27209
2624
2625         Add WebSocket.idl in WebCore/websockets/.
2626         Add build systems only for GNUmakefile.am and WebCore.xcodeproj now.
2627         Other build systems will be updated once the code is functional.
2628
2629         * DerivedSources.make:
2630         * GNUmakefile.am:
2631         * WebCore.xcodeproj/project.pbxproj:
2632         * bindings/js/JSWebSocketConstructor.cpp: Added.
2633         * bindings/js/JSWebSocketConstructor.h: Added.
2634         * bindings/js/JSWebSocketCustom.cpp: Added.
2635         * websockets/WebSocket.cpp: Added.
2636         * websockets/WebSocket.h: Added.
2637         * websockets/WebSocket.idl: Added.
2638
2639 2009-08-06  Jian Li  <jianli@chromium.org>
2640
2641         Reviewed by Dimitri Glazkov.
2642
2643         [V8] Style cleaning for WorkerContextExecutionProxy.
2644         https://bugs.webkit.org/show_bug.cgi?id=27997
2645
2646         Cleanup WorkerContextExecutioonProxy related files to follow
2647         WebKit coding styles after all V8 binding codes are upstreamed.
2648         1) Lower-case the first letter of remaining functins in class
2649            WorkerContextExecutionProxy. Update the V8 code generator
2650            and all other references accordingly.
2651         2) Integrate getConstructor from WorkerContextExecutionProxy
2652            to V8DOMWrapper.
2653         3) Other misc changes, like removing trailing whitespaces and
2654            sorting the include files.
2655
2656         * bindings/scripts/CodeGeneratorV8.pm:
2657         * bindings/v8/ScheduledAction.cpp:
2658         (WebCore::ScheduledAction::execute):
2659         * bindings/v8/V8DOMWrapper.cpp:
2660         (WebCore::V8DOMWrapper::getConstructorForContext):
2661         (WebCore::V8DOMWrapper::convertToV8Object):
2662         * bindings/v8/V8DOMWrapper.h:
2663         * bindings/v8/V8WorkerContextEventListener.cpp:
2664         (WebCore::V8WorkerContextEventListener::~V8WorkerContextEventListener):
2665         (WebCore::V8WorkerContextEventListener::handleEvent):
2666         (WebCore::V8WorkerContextEventListener::reportError):
2667         (WebCore::V8WorkerContextEventListener::getReceiverObject):
2668         * bindings/v8/V8WorkerContextObjectEventListener.cpp:
2669         (WebCore::weakObjectEventListenerCallback):
2670         * bindings/v8/WorkerContextExecutionProxy.cpp:
2671         (WebCore::handleConsoleMessage):
2672         (WebCore::WorkerContextExecutionProxy::dispose):
2673         (WebCore::WorkerContextExecutionProxy::initContextIfNeeded):
2674         (WebCore::WorkerContextExecutionProxy::convertToV8Object):
2675         (WebCore::WorkerContextExecutionProxy::convertEventToV8Object):
2676         (WebCore::WorkerContextExecutionProxy::convertEventTargetToV8Object):
2677         (WebCore::WorkerContextExecutionProxy::convertWorkerContextToV8Object):
2678         (WebCore::WorkerContextExecutionProxy::toV8):
2679         (WebCore::WorkerContextExecutionProxy::forgetV8EventObject):
2680         (WebCore::WorkerContextExecutionProxy::removeEventListener):
2681         * bindings/v8/WorkerContextExecutionProxy.h:
2682         (WebCore::WorkerContextExecutionProxy::context):
2683         (WebCore::WorkerContextExecutionProxy::convertToV8Object):
2684         * bindings/v8/custom/V8WorkerContextCustom.cpp:
2685         (WebCore::ACCESSOR_GETTER):
2686         (WebCore::CALLBACK_FUNC_DECL):
2687
2688 2009-08-06  Darin Adler  <darin@apple.com>
2689
2690         Fix Mac Leopard debug build.
2691
2692         * platform/text/StringImpl.cpp:
2693         (WebCore::equalIgnoringCase): Removed meaningless assertion; an unsigned
2694         is always >= 0 and checking causes a warning in the newer versions of gcc.
2695
2696 2009-08-06  Adam Barth  <abarth@webkit.org>
2697
2698         Unreview rollout.
2699
2700         Revert 46840 because it broke the reliability tests.
2701
2702         * bindings/v8/ScheduledAction.cpp:
2703         (WebCore::ScheduledAction::ScheduledAction):
2704         (WebCore::ScheduledAction::execute):
2705         * bindings/v8/ScheduledAction.h:
2706         (WebCore::ScheduledAction::ScheduledAction):
2707         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2708         (WebCore::V8Custom::WindowSetTimeoutImpl):
2709         * bindings/v8/custom/V8WorkerContextCustom.cpp:
2710         (WebCore::SetTimeoutOrInterval):
2711
2712 2009-08-06  Adam Barth  <abarth@webkit.org>
2713
2714         Unreviewed rollout.
2715
2716         Revert 46840 in preparation to revert 46838, which broke the reliability tests.
2717
2718         * bindings/v8/V8Proxy.cpp:
2719         (WebCore::V8Proxy::updateDocumentWrapperCache):
2720         (WebCore::V8Proxy::initContextIfNeeded):
2721         (WebCore::V8Proxy::mainWorldContext):
2722         * bindings/v8/V8Proxy.h:
2723         (WebCore::V8Proxy::context):
2724
2725 2009-08-06  Pavel Feldman  <pfeldman@chromium.org>
2726
2727         Reviewed by Timothy Hatcher.
2728
2729         WebInspector: move style-related utilities into InjectedScript.
2730
2731         http://bugs.webkit.org/show_bug.cgi?id=27939
2732
2733         * inspector/front-end/DOMAgent.js:
2734         (WebInspector.CSSStyleDeclaration):
2735         (WebInspector.CSSStyleDeclaration.prototype.isPropertyImplicit):
2736         (WebInspector.CSSStyleDeclaration.prototype.styleTextWithShorthands):
2737         (WebInspector.CSSStyleDeclaration.prototype.getLonghandProperties):
2738         (WebInspector.CSSStyleDeclaration.prototype.getShorthandPriority):
2739         * inspector/front-end/InjectedScript.js:
2740         (InjectedScript.applyStyleText):
2741         (InjectedScript.toggleStyleEnabled):
2742         (InjectedScript._serializeStyle):
2743         (InjectedScript._getUniqueStyleProperties):
2744         (InjectedScript._getLonghandProperties):
2745         (InjectedScript._getShorthandPriority):
2746         * inspector/front-end/StylesSidebarPane.js:
2747         (WebInspector.StylesSidebarPane.prototype._update):
2748         (WebInspector.StylePropertiesSection.prototype.isPropertyOverloaded):
2749         (WebInspector.StylePropertiesSection.prototype.onpopulate):
2750         (WebInspector.StylePropertyTreeElement.prototype.get priority):
2751         (WebInspector.StylePropertyTreeElement.prototype.get value):
2752         (WebInspector.StylePropertyTreeElement.prototype):
2753         * inspector/front-end/utilities.js:
2754
2755 2009-08-06  Simon Hausmann  <simon.hausmann@nokia.com>
2756
2757         Unreviewed build fix, add #ifdef guards around
2758         inclusions of shared worker specific files.
2759
2760         * bindings/js/JSEventTarget.cpp:
2761         * bindings/js/JSWorkerContextBase.cpp:
2762         * bindings/js/WorkerScriptController.cpp:
2763
2764 2009-08-06  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2765
2766         Reviewed by Darin Adler.
2767
2768         cssgrammar.cpp fails to compile with RVCT compiler
2769         https://bugs.webkit.org/show_bug.cgi?id=27952
2770
2771         * css/CSSGrammar.y: Do not convert to String to get rid of the stray
2772         memory allocation 
2773
2774         * platform/text/StringImpl.cpp:
2775         (WebCore::equalIgnoringCase):
2776         * platform/text/StringImpl.h: 
2777         (WebCore::equalIgnoringCase): Add charactersEqualIgnoringCase
2778           function that works with a character pointer and length
2779
2780 2009-08-06  Drew Wilson  <atwilson@google.com>
2781
2782         Reviewed by David Levin.
2783
2784         Created first working implementation of SharedWorkers (execution only, no sharing).
2785         https://bugs.webkit.org/show_bug.cgi?id=27927
2786
2787         Added initial implementations of SharedWorkerThread and SharedWorkerContext.
2788         No v8 bindings yet.
2789
2790         * DerivedSources.cpp:
2791         Added shared worker files.
2792         * DerivedSources.make:
2793         Added shared worker files.
2794         * GNUmakefile.am:
2795         Added shared worker files.
2796         * WebCore.gypi:
2797         Added shared worker files.
2798         * WebCore.pro:
2799         Added shared worker files.
2800         * WebCore.vcproj/WebCore.vcproj:
2801         Added shared worker files.
2802         * WebCore.xcodeproj/project.pbxproj:
2803         Added shared worker files.
2804         * bindings/js/JSEventTarget.cpp:
2805         (WebCore::toJS):
2806         Added code to convert from EventTarget to correct JS class.
2807         (WebCore::toEventTarget):
2808         Added code to cast from JS object to appropriate EventTarget impl class.
2809         * bindings/js/JSSharedWorkerConstructor.cpp:
2810         (WebCore::JSSharedWorkerConstructor::JSSharedWorkerConstructor):
2811         (WebCore::constructSharedWorker):
2812         Tweaked the constructor code to pass in the lexical global object like normal workers.
2813         * bindings/js/JSSharedWorkerContextCustom.cpp: Added.
2814         (WebCore::JSSharedWorkerContext::mark):
2815         Custom marking of the onconnect handler.
2816         * bindings/js/JSWorkerContextBase.cpp:
2817         (WebCore::toJSSharedWorkerContext):
2818         (WebCore::toJSWorkerContext):
2819         Added proper conversion to the correct WorkerContext derived class.
2820         * bindings/js/JSWorkerContextBase.h:
2821         * bindings/js/WorkerScriptController.cpp:
2822         (WebCore::WorkerScriptController::initScript):
2823         Updated WorkerScriptController to create the correct type of binding object (JSSharedWorkerContext vs JSDedicatedWorkerContext)
2824         * bindings/scripts/CodeGeneratorV8.pm:
2825         Added support for SharedWorkerContext.
2826         * bindings/v8/DOMObjectsInclude.h:
2827         Added shared worker bindings files.
2828         * dom/EventNames.h:
2829         Added connect event.
2830         * dom/EventTarget.cpp:
2831         (WebCore::EventTarget::toSharedWorkerContext):
2832         Added API for casting to new derived class (SharedWorkerContext).
2833         * dom/EventTarget.h:
2834         * workers/AbstractWorker.cpp:
2835         (WebCore::AbstractWorker::resolveURL):
2836         Moved code that resolves/validates URLs to base class so it can be shared between dedicated/shared workers.
2837         * workers/AbstractWorker.h:
2838         * workers/DedicatedWorkerContext.cpp:
2839         (WebCore::DedicatedWorkerContext::logException):
2840         Refactored exception handling code - moved onerror handling to base class.
2841         * workers/DedicatedWorkerContext.h:
2842         (WebCore::DedicatedWorkerContext::isDedicatedWorkerContext):
2843         * workers/SharedWorker.cpp:
2844         (WebCore::SharedWorker::SharedWorker):
2845         Changed constructor to fire up worker thread.
2846         * workers/SharedWorker.h:
2847         * workers/SharedWorkerContext.cpp: Added.
2848         (WebCore::SharedWorkerContext::SharedWorkerContext):
2849         (WebCore::SharedWorkerContext::~SharedWorkerContext):
2850         (WebCore::SharedWorkerContext::logException):
2851         (WebCore::SharedWorkerContext::addMessage):
2852         Placeholder methods until we add support for sending exceptions/messages to console.
2853         (WebCore::SharedWorkerContext::dispatchConnect):
2854         (WebCore::SharedWorkerContext::thread):
2855         * workers/SharedWorkerContext.h: Added.
2856         (WebCore::SharedWorkerContext::create):
2857         (WebCore::SharedWorkerContext::isSharedWorkerContext):
2858         (WebCore::SharedWorkerContext::toSharedWorkerContext):
2859         (WebCore::SharedWorkerContext::setOnconnect):
2860         (WebCore::SharedWorkerContext::onconnect):
2861         (WebCore::SharedWorkerContext::name):
2862         * workers/SharedWorkerContext.idl: Added.
2863         * workers/SharedWorkerRepository.h: Added.
2864         (WebCore::SharedWorkerRepository::~SharedWorkerRepository):
2865         * workers/DefaultSharedWorkerRepository.cpp: Added.
2866         Implementation of core singleton class that will be used to implement sharing.
2867         (WebCore::SharedWorkerProxy::setThread):
2868         Proxy object used to handle resource loading for a given shared worker.
2869         (WebCore::SharedWorkerProxy::postTaskToLoader):
2870         (WebCore::SharedWorkerProxy::postTaskForModeToWorkerContext):
2871         Placeholder routines until we implement loading.
2872         (WebCore::SharedWorkerConnectTask::create):
2873         Creates a task to fire off a connect event on the worker thread.
2874         (WebCore::SharedWorkerConnectTask::SharedWorkerConnectTask):
2875         (WebCore::SharedWorkerConnectTask::performTask):
2876         (WebCore::SharedWorkerLoader::SharedWorkerLoader):
2877         Added helper object to load the initial script for the worker.
2878         (WebCore::SharedWorkerLoader::load):
2879         (WebCore::SharedWorkerLoader::notifyFinished):
2880         (WebCore::SharedWorkerRepository::instance):
2881         (WebCore::DefaultSharedWorkerRepository::instance):
2882         (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
2883         Fires off the worker thread once the script is loaded.
2884         (WebCore::SharedWorkerRepository::connect):
2885         (WebCore::DefaultSharedWorkerRepository::DefaultSharedWorkerRepository):
2886         (WebCore::DefaultSharedWorkerRepository::~DefaultSharedWorkerRepository):
2887         * workers/DefaultSharedWorkerRepository.h: Added.
2888         * workers/SharedWorkerThread.cpp: Added.
2889         (WebCore::SharedWorkerThread::create):
2890         (WebCore::SharedWorkerThread::SharedWorkerThread):
2891         (WebCore::SharedWorkerThread::~SharedWorkerThread):
2892         (WebCore::SharedWorkerThread::createWorkerContext):
2893         * workers/SharedWorkerThread.h: Added.
2894         * workers/Worker.cpp:
2895         (WebCore::Worker::Worker):
2896         * workers/WorkerContext.cpp:
2897         (WebCore::WorkerContext::reportException):
2898         * workers/WorkerContext.h:
2899         (WebCore::WorkerContext::isSharedWorkerContext):
2900         (WebCore::WorkerContext::isDedicatedWorkerContext):
2901         Added APIs to determine the type of a given context.
2902
2903 2009-08-06  Chris Marrin  <cmarrin@apple.com>
2904
2905         Reviewed by David Hyatt.
2906
2907         Added ENABLE_3D_CANVAS flag to build, default to off
2908
2909         * Configurations/FeatureDefines.xcconfig:
2910
2911 2009-08-06  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
2912
2913         Reviewed by Simon Hausmann.
2914
2915         [Qt] windowsKeyCodeForKeyEvent fix
2916
2917         Fix windowsKeyCodeForKeyEvent to determine wheter the event comes from the keypad.
2918
2919         * platform/qt/PlatformKeyboardEventQt.cpp:
2920         (WebCore::windowsKeyCodeForKeyEvent):
2921         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2922
2923 2009-08-06  George Staikos  <george.staikos@torchmobile.com>
2924
2925         Rubber-stamped by Ariya Hidayat.
2926
2927         Remove the dead wince/ directory that should never have gone in.
2928
2929         * svg/graphics/wince: Removed.
2930         * svg/graphics/wince/SVGResourceFilterWince.cpp: Removed.
2931
2932 2009-08-06  Pavel Feldman  <pfeldman@chromium.org>
2933
2934         Reviewed by Timothy Hatcher.
2935
2936         WebInspector: Extract style editing into a separate file that is
2937         going to be loaded in page context.
2938
2939         https://bugs.webkit.org/show_bug.cgi?id=27939
2940
2941         * inspector/front-end/InjectedScript.js: Added.
2942         (InjectedScript.applyStyleText):
2943         (InjectedScript.setStyleText):
2944         (InjectedScript.toggleStyleEnabled):
2945         (InjectedScript.setStyleRule):
2946         * inspector/front-end/StylesSidebarPane.js:
2947         (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted.callback):
2948         (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted):
2949         (WebInspector.StylePropertyTreeElement.prototype.):
2950         (WebInspector.StylePropertyTreeElement.prototype):
2951         * inspector/front-end/WebKit.qrc:
2952         * inspector/front-end/inspector.html:
2953
2954 2009-08-06  Adam Barth  <abarth@webkit.org>
2955
2956         Reviewed by David Levin.
2957
2958         [V8] Remove bug-bait V8Proxy::context()
2959         https://bugs.webkit.org/show_bug.cgi?id=27826
2960
2961         * bindings/v8/V8Proxy.cpp:
2962         (WebCore::V8Proxy::updateDocumentWrapperCache):
2963         (WebCore::V8Proxy::initContextIfNeeded):
2964         (WebCore::V8Proxy::mainWorldContext):
2965         * bindings/v8/V8Proxy.h:
2966
2967 2009-08-06  Adam Barth  <abarth@webkit.org>
2968
2969         Unreviewed attempt to fix the Chromium Linux build.  This function is
2970         not used.
2971
2972         * bindings/v8/OwnHandle.h:
2973
2974 2009-08-06  Adam Barth  <abarth@webkit.org>
2975
2976         Reviewed by Eric Seidel.
2977
2978         [V8] Teach ScheduledAction::execute about isolated worlds
2979         https://bugs.webkit.org/show_bug.cgi?id=27703
2980
2981         We now save a weak handle to the original context.  We use that handle
2982         to call the timeout in the right context / world.
2983
2984         Tests: http/tests/security/isolatedWorld/window-setTimeout-function.html
2985                http/tests/security/isolatedWorld/window-setTimeout-string.html
2986
2987         * bindings/v8/ScheduledAction.cpp:
2988         (WebCore::ScheduledAction::ScheduledAction):
2989         (WebCore::ScheduledAction::execute):
2990         * bindings/v8/ScheduledAction.h:
2991         (WebCore::ScheduledAction::ScheduledAction):
2992         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2993         (WebCore::V8Custom::WindowSetTimeoutImpl):
2994         * bindings/v8/custom/V8WorkerContextCustom.cpp:
2995         (WebCore::SetTimeoutOrInterval):
2996
2997 2009-08-05  Dimitri Glazkov  <dglazkov@chromium.org>
2998
2999         Unreviewed, build fix.
3000
3001         [V8] Revert http://trac.webkit.org/changeset/46821, which was
3002         landed to supplement http://trac.webkit.org/changeset/46816, but
3003         now that the latter is reverted, the former needs the same.
3004
3005         * bindings/v8/DOMObjectsInclude.h:
3006         * bindings/v8/DerivedSourcesAllInOne.cpp:
3007         * bindings/v8/V8Index.cpp:
3008         * bindings/v8/V8Index.h:
3009
3010 2009-08-05  Joseph Pecoraro  <joepeck02@gmail.com>
3011
3012         Reviewed by Timothy Hatcher.
3013
3014         Color is only reported in rgb() format; should toggle between rgb() and hex
3015         https://bugs.webkit.org/show_bug.cgi?id=13516
3016
3017           New Class to Parse and Change Between Color Representations:
3018
3019         * inspector/front-end/Color.js: Added.
3020         (WebInspector.Color):
3021
3022           Representations of Colors in Raw Form. (May be Lazy Loaded):
3023
3024         (WebInspector.Color.prototype.get shorthex):
3025         (WebInspector.Color.prototype.get hex):
3026         (WebInspector.Color.prototype.set hex):
3027         (WebInspector.Color.prototype.get rgb):
3028         (WebInspector.Color.prototype.set rgb):
3029         (WebInspector.Color.prototype.get hsl):
3030         (WebInspector.Color.prototype.set hsl):
3031         (WebInspector.Color.prototype.get nickname):
3032         (WebInspector.Color.prototype.set nickname):
3033         (WebInspector.Color.prototype.get rgba):
3034         (WebInspector.Color.prototype.set rgba):
3035         (WebInspector.Color.prototype.get hsla):
3036         (WebInspector.Color.prototype.set hsla):
3037
3038           Helpers and Standard String Representations:
3039
3040         (WebInspector.Color.prototype.hasShortHex):
3041         (WebInspector.Color.prototype.toRgb):
3042         (WebInspector.Color.prototype.toHsl):
3043         (WebInspector.Color.prototype.toShortHex):
3044         (WebInspector.Color.prototype.toHex):
3045         (WebInspector.Color.prototype.toRgba):
3046         (WebInspector.Color.prototype.toHsla):
3047         (WebInspector.Color.prototype.toNickname):
3048
3049           Conversion Functions to Determine Other Representations:
3050           My Sources for all algorithms and sample data:
3051           Wikipedia: http://en.wikipedia.org/wiki/HSV_color_space
3052           CSS Specification: http://www.w3.org/TR/css3-color/#hsla-color
3053
3054         (WebInspector.Color.prototype.rgbToHex):
3055         (WebInspector.Color.prototype.hexToRgb):
3056         (WebInspector.Color.prototype.rgbToHsl):
3057         (WebInspector.Color.prototype.hslToRgb.hueToRgb):
3058         (WebInspector.Color.prototype.hslToRgb):
3059         (WebInspector.Color.prototype.rgbaToHsla):
3060         (WebInspector.Color.prototype.hslaToRgba):
3061
3062           Called from the constructor, attempts to parse and will throw an error
3063           if it cannot parse.  If simple then the "hex" value is guarenteed.
3064           If advanced then both the "rgba" and "hsla" are guarenteed.  If it is
3065           a nickname in any way (e.g. "transparent", "black") then this is
3066           guarenteed to be set as well.
3067
3068         (WebInspector.Color.prototype.parse):
3069
3070           Clicking on the swatch will rotate through Color Representations.
3071             Simple:   rgb -> hsl -> nickname? -> shorthex? -> hex -> (loop around)
3072             Advanced: rgba -> hsla -> nickname? -> (loop around)
3073
3074         * inspector/front-end/StylesSidebarPane.js:
3075         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.value.):
3076         (WebInspector.StylePropertyTreeElement.prototype.updateTitle):
3077
3078           Load Color.js:
3079
3080         * inspector/front-end/inspector.html:
3081
3082 2009-08-05  John Abd-El-Malek  <jam@chromium.org>
3083
3084         Reviewed by Dimitri Glazkov.
3085
3086         Support setting event listeners for message ports in the worker process.
3087
3088         https://bugs.webkit.org/show_bug.cgi?id=28004
3089
3090         * bindings/v8/WorkerContextExecutionProxy.cpp:
3091         (WebCore::WorkerContextExecutionProxy::retrieve):
3092         (WebCore::WorkerContextExecutionProxy::EventTargetToV8Object):
3093         * bindings/v8/WorkerContextExecutionProxy.h:
3094         * bindings/v8/custom/V8MessagePortCustom.cpp:
3095         (WebCore::getEventListener):
3096         (WebCore::ACCESSOR_SETTER):
3097         (WebCore::CALLBACK_FUNC_DECL):
3098
3099 2009-08-05  Stephen White  <senorblanco@chromium.org>
3100
3101         Reviewed by Dimitri Glazkov.
3102
3103         http://bugs.webkit.org/show_bug.cgi?id=28022
3104
3105         Minor fix for media code on chromium/skia.
3106
3107         * rendering/RenderThemeChromiumSkia.cpp:
3108         (WebCore::RenderThemeChromiumSkia::paintMediaSliderTrack):
3109
3110 2009-08-05  Darin Adler  <darin@apple.com>
3111
3112         Reviewed by Dan Bernstein.
3113
3114         Client side image maps did not handle zoom correctly.
3115         Client side image maps did not handle border and padding correctly.
3116
3117         Test: fast/images/image-map-zoom.html
3118
3119         * rendering/RenderImage.cpp:
3120         (WebCore::RenderImage::nodeAtPoint): Compute the values to pass in to the map
3121         element using the content box and the effective zoom.
3122
3123 2009-08-05  Alexey Proskuryakov  <ap@apple.com>
3124
3125         Reviewed by Oliver Hunt.
3126
3127         https://bugs.webkit.org/show_bug.cgi?id=28027
3128         <rdar://7064428> Files with accents in names are submitted incorrectly due to use of
3129         precomposed Unicode
3130
3131         * platform/network/mac/FormDataStreamMac.mm: (WebCore::setHTTPBody): Use getFileSize() from
3132         FileSystem.h instead of custom code for getting file size. This adds path normalization
3133         necessary with some file systems on Mac. This also loses a S_IFMT check, which didn't seem
3134         important anyway.
3135
3136 2009-08-05  Dimitri Glazkov  <dglazkov@chromium.org>
3137
3138         Unreviewed, build fix.
3139
3140         [V8] Include Media into V8 bindings.
3141
3142         * bindings/v8/DOMObjectsInclude.h: Added Media include.
3143         * bindings/v8/DerivedSourcesAllInOne.cpp: Added V8Media include.
3144         * bindings/v8/V8Index.cpp: Added decl for V8Media.
3145         * bindings/v8/V8Index.h: Added V8Media include.
3146
3147 2009-08-04  Jon Honeycutt  <jhoneycutt@apple.com>
3148
3149         Fix Windows layout test crashes.
3150
3151         PluginView::removeFromUnstartedListIfNecessary() would try to remove
3152         any unstarted PluginView from the Page's set of unstarted plug-ins,
3153         regardless of why the PluginView wasn't started. If we tried to start a
3154         plug-in, but it failed to start, we would hit an assertion in
3155         Page::removeUnstartedPlugin() that asserts that we would only modify the
3156         unstarted plug-ins set if we were not currently starting plug-ins.
3157
3158         Fix this by having PluginView track whether it's waiting to be started,
3159         and to check this before trying to remove itself from the Page's
3160         unstarted plug-ins set.
3161
3162         Reviewed by Darin Adler.
3163
3164         * page/Page.cpp:
3165         (WebCore::Page::removeUnstartedPlugin):
3166         Assert that the passed PluginView is in the unstarted set.
3167
3168         * plugins/PluginView.cpp:
3169         (WebCore::PluginView::start):
3170         Set that we are not waiting to be started.
3171         (WebCore::PluginView::startOrAddtoUnstartedList):
3172         Set that we are waiting to be started.
3173         (WebCore::PluginView::removeFromUnstartedListIfNecessary):
3174         Check not whether we are started, but whether we are waiting to be
3175         started.
3176         (WebCore::PluginView::PluginView):
3177
3178         * plugins/PluginView.h:
3179
3180 2009-08-05  Jeremy Orlow  <jorlow@chromium.org>
3181
3182        Fix DOM Storage memory leak
3183        https://bugs.webkit.org/show_bug.cgi?id=28029
3184
3185        Forgot to use adoptRef in one place.  This caused the = operator to
3186        increment the ref count when it shouldn't have, so StorageAreaImpl's were
3187        never freed.
3188
3189         * storage/StorageNamespaceImpl.cpp:
3190         (WebCore::StorageNamespaceImpl::storageArea):
3191
3192 2009-08-05  Dimitri Glazkov  <dglazkov@chromium.org>
3193
3194         Unreviewed, build fix.
3195
3196         [Chromium] Let CodeGeneratorV8.pm know that Media is ref-counted.
3197
3198         * bindings/scripts/CodeGeneratorV8.pm: Added Media check to IsRefPtrType.
3199
3200 2009-08-05  Darin Adler  <darin@apple.com>
3201
3202         Reviewed by David Levin.
3203
3204         Use checked casts for render tree
3205         https://bugs.webkit.org/show_bug.cgi?id=23522
3206
3207         Last patch. Makes all the casts of RenderObject use checked
3208         casts instead of using static_cast directly.
3209
3210         * accessibility/AccessibilityListBox.cpp:
3211         (WebCore::AccessibilityListBox::visibleChildren):
3212         (WebCore::AccessibilityListBox::doAccessibilityHitTest):
3213         * accessibility/AccessibilityListBoxOption.cpp:
3214         (WebCore::AccessibilityListBoxOption::elementRect):
3215         * accessibility/AccessibilityRenderObject.cpp:
3216         (WebCore::AccessibilityRenderObject::textUnderElement):
3217         (WebCore::AccessibilityRenderObject::stringValue):
3218         (WebCore::AccessibilityRenderObject::titleUIElement):
3219         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
3220         * accessibility/AccessibilitySlider.cpp:
3221         (WebCore::AccessibilitySliderThumb::elementRect):
3222         * dom/InputElement.cpp:
3223         (WebCore::InputElement::updatePlaceholderVisibility):
3224         * dom/SelectElement.cpp:
3225         (WebCore::SelectElement::scrollToSelection):
3226         (WebCore::SelectElement::recalcStyle):
3227         (WebCore::SelectElement::setRecalcListItems):
3228         (WebCore::SelectElement::menuListDefaultEventHandler):
3229         (WebCore::SelectElement::listBoxDefaultEventHandler):
3230         * editing/BreakBlockquoteCommand.cpp:
3231         (WebCore::BreakBlockquoteCommand::doApply):
3232         * html/HTMLAppletElement.cpp:
3233         (WebCore::HTMLAppletElement::renderWidgetForJSBindings):
3234         * html/HTMLCanvasElement.cpp:
3235         (WebCore::HTMLCanvasElement::reset):
3236         * html/HTMLEmbedElement.cpp:
3237         (WebCore::HTMLEmbedElement::updateWidget):
3238         * html/HTMLFrameElementBase.cpp:
3239         (WebCore::HTMLFrameElementBase::attach):
3240         * html/HTMLFrameSetElement.cpp:
3241         (WebCore::HTMLFrameSetElement::defaultEventHandler):
3242         * html/HTMLIFrameElement.cpp:
3243         (WebCore::HTMLIFrameElement::attach):
3244         * html/HTMLInputElement.cpp:
3245         (WebCore::HTMLInputElement::defaultEventHandler):
3246         (WebCore::HTMLInputElement::addSearchResult):
3247         (WebCore::HTMLInputElement::onSearch):
3248         * html/HTMLLIElement.cpp:
3249         (WebCore::HTMLLIElement::parseMappedAttribute):
3250         (WebCore::HTMLLIElement::attach):
3251         * html/HTMLMediaElement.cpp:
3252         (WebCore::HTMLMediaElement::setReadyState):
3253         (WebCore::HTMLMediaElement::mediaPlayerDurationChanged):
3254         (WebCore::HTMLMediaElement::mediaPlayerSizeChanged):
3255         (WebCore::HTMLMediaElement::mediaPlayerRenderingCanBeAccelerated):
3256         (WebCore::HTMLMediaElement::mediaPlayerGraphicsLayer):
3257         (WebCore::HTMLMediaElement::defaultEventHandler):
3258         (WebCore::HTMLMediaElement::finishParsingChildren):
3259         * html/HTMLOListElement.cpp:
3260         (WebCore::HTMLOListElement::parseMappedAttribute):
3261         * html/HTMLObjectElement.cpp:
3262         (WebCore::HTMLObjectElement::updateWidget):
3263         * html/HTMLTextAreaElement.cpp:
3264         (WebCore::HTMLTextAreaElement::defaultEventHandler):
3265         * page/DragController.cpp:
3266         (WebCore::DragController::concludeEditDrag):
3267         * page/EventHandler.cpp:
3268         (WebCore::EventHandler::selectCursor):
3269         (WebCore::EventHandler::capsLockStateMayHaveChanged):
3270         * page/Frame.cpp:
3271         (WebCore::Frame::ownerRenderer):
3272         * page/FrameView.cpp:
3273         (WebCore::FrameView::detachCustomScrollbars):
3274         * page/wince/FrameWince.cpp:
3275         (WebCore::computePageRectsForFrame):
3276         * rendering/InlineFlowBox.cpp:
3277         (WebCore::InlineFlowBox::placeBoxesHorizontally):
3278         * rendering/MediaControlElements.cpp:
3279         (WebCore::MediaControlTimelineElement::defaultEventHandler):
3280         * rendering/RenderBlockLineLayout.cpp:
3281         (WebCore::RenderBlock::findNextLineBreak):
3282         * rendering/RenderCounter.cpp:
3283         (WebCore::planCounter):
3284         * rendering/RenderFrameSet.cpp:
3285         (WebCore::RenderFrameSet::computeEdgeInfo):
3286         (WebCore::RenderFrameSet::setIsResizing):
3287         * rendering/RenderLayerBacking.cpp:
3288         (WebCore::RenderLayerBacking::contentsBox):
3289         * rendering/RenderLayerCompositor.cpp:
3290         (WebCore::RenderLayerCompositor::updateBacking):
3291         (WebCore::RenderLayerCompositor::requiresCompositingForVideo):
3292         * rendering/RenderListItem.cpp:
3293         (WebCore::previousListItem):
3294         (WebCore::RenderListItem::explicitValueChanged):
3295         * rendering/RenderObject.cpp:
3296         (WebCore::updateListMarkerNumbers):
3297         * rendering/RenderObjectChildList.cpp:
3298         (WebCore::updateListMarkerNumbers):
3299         (WebCore::invalidateCountersInContainer):
3300         * rendering/RenderScrollbarTheme.cpp:
3301         (WebCore::RenderScrollbarTheme::minimumThumbLength):
3302         (WebCore::RenderScrollbarTheme::backButtonRect):
3303         (WebCore::RenderScrollbarTheme::forwardButtonRect):
3304         (WebCore::RenderScrollbarTheme::trackRect):
3305         (WebCore::RenderScrollbarTheme::constrainTrackRectToTrackPieces):
3306         (WebCore::RenderScrollbarTheme::paintScrollbarBackground):
3307         (WebCore::RenderScrollbarTheme::paintTrackBackground):
3308         (WebCore::RenderScrollbarTheme::paintTrackPiece):
3309         (WebCore::RenderScrollbarTheme::paintButton):
3310         (WebCore::RenderScrollbarTheme::paintThumb):
3311         * rendering/RenderSlider.cpp:
3312         (WebCore::SliderThumbElement::defaultEventHandler):
3313         * rendering/RenderThemeChromiumMac.mm:
3314         (WebCore::RenderThemeChromiumMac::paintSliderThumb):
3315         (WebCore::RenderThemeChromiumMac::paintMediaSliderTrack):
3316         * rendering/RenderThemeChromiumWin.cpp:
3317         (WebCore::RenderThemeChromiumWin::determineSliderThumbState):
3318         * rendering/RenderThemeMac.mm:
3319         (WebCore::RenderThemeMac::paintSliderThumb):
3320         * rendering/RenderThemeSafari.cpp:
3321         (WebCore::RenderThemeSafari::paintSliderThumb):
3322         * rendering/RenderThemeWin.cpp:
3323         (WebCore::RenderThemeWin::determineSliderThumbState):
3324         * rendering/SVGCharacterLayoutInfo.cpp:
3325         (WebCore::SVGCharacterLayoutInfo::addLayoutInformation):
3326         * rendering/SVGRootInlineBox.cpp:
3327         (WebCore::findSVGRootObject):
3328         * rendering/TextControlInnerElements.cpp:
3329         (WebCore::RenderTextControlInnerBlock::nodeAtPoint):
3330         (WebCore::SearchFieldResultsButtonElement::defaultEventHandler):
3331         * svg/SVGImageElement.cpp:
3332         (WebCore::SVGImageElement::attach):
3333         * svg/SVGMarkerElement.cpp:
3334         (WebCore::SVGMarkerElement::canvasResource):
3335         * svg/SVGTextContentElement.cpp:
3336         (WebCore::rootInlineBoxForTextContentElement):
3337         * wml/WMLInputElement.cpp:
3338         (WebCore::WMLInputElement::defaultEventHandler):
3339         Use checked casts.
3340
3341         * rendering/RenderApplet.h:
3342         * rendering/RenderCounter.h:
3343         * rendering/RenderFieldset.h:
3344         * rendering/RenderFileUploadControl.h:
3345         * rendering/RenderFrame.h:
3346         * rendering/RenderFrameSet.h:
3347         * rendering/RenderHTMLCanvas.h:
3348         * rendering/RenderListBox.h:
3349         * rendering/RenderListItem.h:
3350         * rendering/RenderListMarker.h:
3351         * rendering/RenderMedia.h:
3352         * rendering/RenderMenuList.h:
3353         * rendering/RenderPart.h:
3354         * rendering/RenderPartObject.h:
3355         * rendering/RenderPath.h:
3356         * rendering/RenderSVGContainer.h:
3357         * rendering/RenderSVGRoot.h:
3358         * rendering/RenderSVGTextPath.h:
3359         * rendering/RenderSVGViewportContainer.h:
3360         * rendering/RenderScrollbar.h:
3361         * rendering/RenderSlider.h:
3362         * rendering/RenderTextControlMultiLine.h:
3363         * rendering/RenderTextControlSingleLine.h:
3364         * rendering/RenderVideo.h:
3365         Added a checked cast. Also made most members protected or private.
3366
3367         * rendering/RenderBlock.h:
3368         * rendering/RenderInline.h:
3369         * rendering/RenderReplaced.h:
3370         * rendering/RenderSVGBlock.h:
3371         * rendering/RenderSVGImage.h:
3372         * rendering/RenderSVGInlineText.h:
3373         * rendering/RenderSVGText.h:
3374         * rendering/RenderTextControl.h:
3375         Made most members protected or private.
3376
3377         * rendering/RenderInline.cpp:
3378         * rendering/RenderSVGContainer.cpp:
3379         * rendering/RenderSVGHiddenContainer.cpp:
3380         * rendering/RenderSVGImage.cpp:
3381         * rendering/RenderSVGRoot.cpp:
3382         Removed unneeded destructor.
3383
3384         * rendering/RenderSVGHiddenContainer.h:
3385         Removed unneeded virtual function overrides that did the same as
3386         the default and base class.
3387
3388         * rendering/RenderSVGViewportContainer.cpp:
3389         (WebCore::RenderSVGViewportContainer::paint): Updated to use m_viewport
3390         directly instead of using a function call.
3391         (WebCore::RenderSVGViewportContainer::applyViewportClip): Ditto.
3392         (WebCore::RenderSVGViewportContainer::viewportTransform): Ditto.
3393         (WebCore::RenderSVGViewportContainer::localToParentTransform): Ditto.
3394         (WebCore::RenderSVGViewportContainer::pointIsInsideViewportClip): Ditto.
3395
3396         * rendering/RenderScrollbar.cpp:
3397         (WebCore::pseudoForScrollbarPart): Changed switch statement to use cases for
3398         all values instead of using a default case.
3399
3400         * rendering/RenderTreeAsText.cpp:
3401         (WebCore::operator<<): Removed dependency on casting to types that don't
3402         have any public members we need to get at. Instead, use function names to
3403         identify the type rather than doing so much overloading. Changed to use
3404         checked casts.
3405         (WebCore::write): Ditto.
3406
3407         * rendering/SVGRenderSupport.cpp:
3408         (WebCore::renderSubtreeToImage): Changed to use a checked cast and also
3409         added a comment about the fact that the code does not do sufficient type
3410         checking before doing the cast.
3411
3412         * rendering/SVGRenderTreeAsText.cpp:
3413         (WebCore::writeRenderSVGTextBox): Renamed this from operator<<.
3414         (WebCore::writeSVGInlineTextBoxes): Renamed this from writeSVGInlineText.
3415         (WebCore::writeSVGText): Renamed this from write.
3416         (WebCore::writeSVGInlineText): Ditto.
3417         (WebCore::writeSVGImage): Ditto.
3418         * rendering/SVGRenderTreeAsText.h: Updated for name changes. Removed
3419         unneeded default arguments.
3420
3421 2009-08-05  Peter Kasting  <pkasting@google.com>
3422
3423         Reviewed by Sam Weinig.
3424
3425         https://bugs.webkit.org/show_bug.cgi?id=27851
3426         Fix a pair of compiler warnings on the GTK Linux buildbot.
3427
3428         * platform/image-decoders/bmp/BMPImageDecoder.cpp:
3429         (WebCore::BMPImageDecoder::processFileHeader): Don't use multi-character constants, they're not portable.
3430         * platform/image-decoders/ico/ICOImageDecoder.cpp:
3431         (WebCore::ICOImageDecoder::setSize): Simpler code that also doesn't compare signed with unsigned.
3432
3433 2009-08-05  Peter Kasting  <pkasting@google.com>
3434
3435         Reviewed by Eric Seidel.
3436
3437         https://bugs.webkit.org/show_bug.cgi?id=26460
3438         Return multiple icon entries from the ICO decoder as separate frames,
3439         sorted by decreasing quality (much like the CG ICO decoder does).
3440
3441         As a result of this change, we can eliminate the Skia-specific setData()
3442         hack that the Chromium port used to select the desired icon size -- now
3443         callers can just enumerate the frames and ask for the data from the one
3444         they like.
3445         
3446         Under the hood, the ICO decoder now keeps vectors for a number of things
3447         (including directory entries and image decoders) where it used to have
3448         single members.  However, callers (that I have seen) will only request
3449         one frame from the icon, so practically there aren't going to be lots of
3450         instantiated image decoders.
3451
3452         * platform/graphics/ImageSource.h: Move |m_decoder| back to private now that Skia no longer needs to access it.
3453         * platform/graphics/cairo/ImageSourceCairo.cpp:
3454         (WebCore::createDecoder): Remove size argument from ICO decoder instantiation.
3455         * platform/graphics/skia/ImageSourceSkia.cpp:
3456         (WebCore::createDecoder): Remove size argument from ICO decoder instantiation.
3457         (WebCore::ImageSource::setData): Remove function to ask for a particular icon size.
3458         * platform/graphics/skia/ImageSourceSkia.h: Removed.
3459         * platform/graphics/wx/ImageSourceWx.cpp:
3460         (WebCore::createDecoder): Remove size argument from ICO decoder instantiation.
3461         * platform/image-decoders/ico/ICOImageDecoder.cpp:
3462         (WebCore::ICOImageDecoder::ICOImageDecoder):
3463         (WebCore::ICOImageDecoder::~ICOImageDecoder): Delete all instantiated per-frame decoders.
3464         (WebCore::ICOImageDecoder::setData): Send data to all instantiated per-frame decoders.
3465         (WebCore::ICOImageDecoder::isSizeAvailable): Use size from icon directory instead of PNG decoder (if applicable) so we can report it without decoding the PNG frames.
3466         (WebCore::ICOImageDecoder::size): Report frame-specific size if BMP decoder is calling.  Otherwise, use size from icon directory instead of PNG decoder (if applicable).
3467         (WebCore::ICOImageDecoder::frameSizeAtIndex): Implement.
3468         (WebCore::ICOImageDecoder::setSize): Sanity check value if BMP decoder is calling.
3469         (WebCore::ICOImageDecoder::frameCount): Implement.
3470         (WebCore::ICOImageDecoder::frameBufferAtIndex): Sanity check size for PNG frames.
3471         (WebCore::ICOImageDecoder::compareEntries): Add utility function for sorting entries.
3472         (WebCore::ICOImageDecoder::setDataForPNGDecoderAtIndex): Factor out utility function for passing correct data blob to a PNG decoder.
3473         (WebCore::ICOImageDecoder::decodeWithCheckForDataEnded): Split decode() into two pieces.
3474         (WebCore::ICOImageDecoder::decodeDirectory): The first part of the old decode().
3475         (WebCore::ICOImageDecoder::decodeAtIndex): The second part of the old decode(), split off so we avoid decoding an entry until it's requested.
3476         (WebCore::ICOImageDecoder::processDirectory): Add resizing of internal data structures based on directory contents.
3477         (WebCore::ICOImageDecoder::processDirectoryEntries): Sort entries by quality.
3478         (WebCore::ICOImageDecoder::imageTypeAtIndex): Return type to caller instead of setting a member.
3479         * platform/image-decoders/ico/ICOImageDecoder.h:
3480
3481 2009-08-05  Szabo Carol  <carol.szabo@nokia.com>
3482
3483         Reviewed by Darin Adler.
3484
3485         https://bugs.webkit.org/show_bug.cgi?id=27942
3486
3487         Test: fast/forms/select-reset-multiple-selections-4-single-selection.html
3488
3489         * dom/SelectElement.cpp:
3490         (WebCore::SelectElement::reset):
3491            Added HTML 4.01 compliant handling of broken webpages that
3492            specify more than one selected option for single selection SELECT
3493            element, in a manner that emulates Firefox and is similar to IE 7
3494
3495
3496 2009-08-05  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
3497
3498         Reviewed by Simon Hausmann.
3499
3500         WebCore.pro bugfix
3501
3502         Fix the gperf lines to properly include the string.h header at compilation with gperf version 3.0.3 and newer.
3503
3504         * WebCore.pro:
3505
3506 2009-08-05  Chris Fleizach  <cfleizach@apple.com>
3507
3508         Fix Tiger build breakage.
3509
3510         * accessibility/mac/AccessibilityObjectWrapper.mm:
3511
3512 2009-08-04  Simon Hausmann  <hausmann@webkit.org>
3513
3514         Prospective build fix for Qt build bot: Fix dependency of HTMLNames.cpp
3515         to both source files, HTMLTagNames.in and HTMLAttributeNames.in
3516
3517         * WebCore.pro:
3518
3519 2009-08-04  Brian Weinstein  <bweinstein@apple.com>
3520
3521         Reviewed by Adele Peterson.
3522
3523         Keypress should exit from pan scrolling mode.
3524         https://bugs.webkit.org/show_bug.cgi?id=28005
3525
3526         Change the logic from only exiting pan scrolling on escape to exiting on any key press,
3527         making it easier for users to back out of an accidental pan scroll.
3528
3529         * page/EventHandler.cpp:
3530         (WebCore::EventHandler::keyEvent):
3531         
3532 2009-08-04  Eric Seidel  <eric@webkit.org>
3533
3534         Reviewed by Simon Fraser.
3535
3536         REGRESSION (r45064): Drop caret remains in text control after the mouse exits
3537         https://bugs.webkit.org/show_bug.cgi?id=26787
3538
3539         Add back missing dragController()->clear() call.
3540
3541         * manual-tests/drag-caret.html: Added.
3542         * page/DragController.cpp:
3543         (WebCore::DragController::tryDocumentDrag):
3544
3545 2009-08-04  Chris Fleizach  <cfleizach@apple.com>
3546
3547         Bug 27994 - WAI-ARIA: aria-valuetext needs to be implemented
3548         https://bugs.webkit.org/show_bug.cgi?id=27994
3549
3550         Forgot to commit attribute names.
3551
3552         * html/HTMLAttributeNames.in:
3553
3554 2009-08-04  Chris Fleizach  <cfleizach@apple.com>
3555
3556         Reviewed by Darin Adler.
3557
3558         Bug 27994 - WAI-ARIA: aria-valuetext needs to be implemented
3559         https://bugs.webkit.org/show_bug.cgi?id=27994
3560
3561         Test: platform/mac/accessibility/aria-valuetext.html
3562
3563         * accessibility/AccessibilityObject.h:
3564         (WebCore::AccessibilityObject::valueDescription):
3565         * accessibility/AccessibilityRenderObject.cpp:
3566         (WebCore::AccessibilityRenderObject::valueDescription):
3567         * accessibility/AccessibilityRenderObject.h:
3568         * accessibility/mac/AccessibilityObjectWrapper.mm:
3569         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
3570         * html/HTMLAttributeNames.in:
3571
3572 2009-08-04  Michael Nordman  <michaeln@google.com>
3573
3574         Reviewed by Alexey Proskuryakov.
3575
3576         https://bugs.webkit.org/show_bug.cgi?id=27821
3577
3578         No new features, no new tests. Existing layout tests pass.
3579
3580         * WebCore.base.exp:
3581
3582         Export AppliationCacheGroup::storeCopyOfCache
3583
3584         * WebCore.xcodeproj/project.pbxproj:
3585
3586         Restore DOMApplicationCache.h and ApplicationCacheHost.h to 'project' headers
3587         instead of 'private' headers since they're no longer in the DocumentLoader.h