6f820e70be763d7e4b2c55aa3455d4af401b44a5
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-10-26  Sheriff Bot  <webkit.review.bot@gmail.com>
2
3         Unreviewed, rolling out r98429.
4         http://trac.webkit.org/changeset/98429
5         https://bugs.webkit.org/show_bug.cgi?id=70881
6
7         "webkit_gpu_tests fail in Chromium" (Requested by yurys on
8         #webkit).
9
10         * platform/graphics/chromium/LayerRendererChromium.cpp:
11         (WebCore::LayerRendererChromium::initialize):
12         * platform/graphics/chromium/WebGLLayerChromium.cpp:
13         (WebCore::WebGLLayerChromium::layerRendererContext):
14         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
15         (WebCore::CCHeadsUpDisplay::enabled):
16         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
17         (WebCore::CCLayerTreeHost::initialize):
18         (WebCore::CCLayerTreeHost::context):
19         (WebCore::CCLayerTreeHost::setNeedsAnimate):
20         (WebCore::CCLayerTreeHost::setNeedsCommitThenRedraw):
21         (WebCore::CCLayerTreeHost::setNeedsRedraw):
22         (WebCore::CCLayerTreeHost::composite):
23         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
24         (WebCore::CCSettings::CCSettings):
25         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
26         (WebCore::CCThreadProxy::setThread):
27         * platform/graphics/chromium/cc/CCThreadProxy.h:
28
29 2011-10-26  Ben Wells  <benwells@chromium.org>
30
31         Canvas drawImage with SourceIn, DestinationIn, SourceOut, DestinationAtop and Copy have errors
32         https://bugs.webkit.org/show_bug.cgi?id=66920
33
34         Reviewed by James Robinson.
35
36         Test: fast/canvas/canvas-composite-image.html
37
38         Use the same method as fills to handle composited drawImage calls that will affect the whole
39         canvas. To do this code used when doing fills has been factored into seperate functions and
40         used by drawImage. Some functions used to do these types of operations have also been renamed.
41
42         * html/canvas/CanvasRenderingContext2D.cpp:
43         (WebCore::isFullCanvasCompositeMode):
44         (WebCore::CanvasRenderingContext2D::fill):
45         (WebCore::CanvasRenderingContext2D::fillRect):
46         (WebCore::CanvasRenderingContext2D::drawImage):
47         (WebCore::CanvasRenderingContext2D::calculateCompositingBufferRect):
48         (WebCore::CanvasRenderingContext2D::createCompositingBuffer):
49         (WebCore::CanvasRenderingContext2D::compositeBuffer):
50         (WebCore::CanvasRenderingContext2D::fullCanvasCompositedDrawImage):
51         (WebCore::CanvasRenderingContext2D::fullCanvasCompositedFill):
52         * html/canvas/CanvasRenderingContext2D.h:
53
54 2011-10-25  Sheriff Bot  <webkit.review.bot@gmail.com>
55
56         Unreviewed, rolling out r98379.
57         http://trac.webkit.org/changeset/98379
58         https://bugs.webkit.org/show_bug.cgi?id=70875
59
60         Did not pass on JSC ports (Requested by abarth on #webkit).
61
62         * bindings/scripts/CodeGeneratorJS.pm:
63         (GenerateHeader):
64         (GenerateImplementation):
65         * bindings/scripts/CodeGeneratorV8.pm:
66         (GenerateHeader):
67         (GenerateArgumentsCountCheck):
68         (GenerateImplementation):
69         * html/canvas/CanvasRenderingContext2D.idl:
70         * page/DOMWindow.idl:
71
72 2011-10-25  Sheriff Bot  <webkit.review.bot@gmail.com>
73
74         Unreviewed, rolling out r98346.
75         http://trac.webkit.org/changeset/98346
76         https://bugs.webkit.org/show_bug.cgi?id=70874
77
78         Breaks JSC-based bots. (Requested by pfeldman on #webkit).
79
80         * inspector/front-end/ScriptsPanel.js:
81         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
82
83 2011-10-25  Nat Duca  <nduca@chromium.org>
84
85         [chromium] Enable threaded compositing via CCThreadProxy::hasThread only
86         https://bugs.webkit.org/show_bug.cgi?id=70838
87
88         Reviewed by James Robinson.
89
90         * platform/graphics/chromium/LayerRendererChromium.cpp:
91         (WebCore::LayerRendererChromium::initialize):
92         * platform/graphics/chromium/WebGLLayerChromium.cpp:
93         (WebCore::WebGLLayerChromium::layerRendererContext):
94         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
95         (WebCore::CCHeadsUpDisplay::enabled):
96         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
97         (WebCore::CCLayerTreeHost::initialize):
98         (WebCore::CCLayerTreeHost::context):
99         (WebCore::CCLayerTreeHost::setNeedsAnimate):
100         (WebCore::CCLayerTreeHost::setNeedsCommitThenRedraw):
101         (WebCore::CCLayerTreeHost::setNeedsRedraw):
102         (WebCore::CCLayerTreeHost::composite):
103         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
104         (WebCore::CCSettings::CCSettings):
105         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
106         (WebCore::CCThreadProxy::hasThread):
107         * platform/graphics/chromium/cc/CCThreadProxy.h:
108
109 2011-10-25  Xiaomei Ji  <xji@chromium.org>
110
111         --webkit-visual-word does not work in multi-line
112         https://bugs.webkit.org/show_bug.cgi?id=61344
113
114         Reviewed by Ryosuke Niwa.
115
116         Get next or previous root inline box (which is not in the same
117         render object as the current root inline box) by traversing DOM node.
118
119         Test: editing/selection/move-by-word-visually-inline-block-positioned-element.html
120
121         * editing/visible_units.cpp:
122         (WebCore::previousRootInlineBox):
123         (WebCore::nextRootInlineBox):
124         (WebCore::leftInlineBox):
125         (WebCore::rightInlineBox):
126
127 2011-10-25  Adam Barth  <abarth@webkit.org>
128
129         JSEventTarget.cpp has a bunch of unnessary includes
130         https://bugs.webkit.org/show_bug.cgi?id=70865
131
132         Reviewed by Eric Seidel.
133
134         In the process of removing these includes, I noticed we had a bunch of
135         non-autogenerated code in this file, which I've now autogenerated.
136
137         * bindings/js/JSEventTarget.cpp:
138         (WebCore::toEventTarget):
139             - One subtly here is the outter static_cast, which is caused by an
140               inheritance infelicity in JavaScriptAudioNode, which I've noted
141               with a FIXME.  In any case, the extra static_cast shouldn't cause
142               any trouble.
143         * webaudio/JavaScriptAudioNode.h:
144
145 2011-10-25  Adam Barth  <abarth@webkit.org>
146
147         V8DOMWrapper.cpp has unneeded header includes
148         https://bugs.webkit.org/show_bug.cgi?id=70863
149
150         Reviewed by Eric Seidel.
151
152         * bindings/v8/V8DOMWrapper.cpp:
153
154 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
155
156         Resetting baseline for test bindings
157
158         Unreviewed preemptive build fix
159
160         No new tests.
161
162         * bindings/scripts/test/JS/JSTestObj.cpp:
163         * bindings/scripts/test/JS/JSTestObj.h:
164
165 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
166
167         Remove deletePropertyVirtual
168         https://bugs.webkit.org/show_bug.cgi?id=70738
169
170         Reviewed by Geoffrey Garen.
171
172         No new tests.
173
174         Removed all declarations and definitions of deletePropertyVirtual.
175         Also replaced all call sites to deletePropertyVirtual with a 
176         corresponding lookup in the MethodTable.
177
178         * WebCore.exp.in:
179         * bindings/js/JSDOMStringMapCustom.cpp:
180         (WebCore::JSDOMStringMap::deleteProperty):
181         * bindings/js/JSDOMWindowCustom.cpp:
182         (WebCore::JSDOMWindow::deleteProperty):
183         * bindings/js/JSDOMWindowShell.cpp:
184         (WebCore::JSDOMWindowShell::deleteProperty):
185         * bindings/js/JSDOMWindowShell.h:
186         * bindings/js/JSHistoryCustom.cpp:
187         (WebCore::JSHistory::deleteProperty):
188         * bindings/js/JSLocationCustom.cpp:
189         (WebCore::JSLocation::deleteProperty):
190         * bindings/js/JSStorageCustom.cpp:
191         (WebCore::JSStorage::deleteProperty):
192         * bindings/js/ScriptObject.cpp:
193         (WebCore::ScriptGlobalObject::remove):
194         * bindings/objc/WebScriptObject.mm:
195         (-[WebScriptObject removeWebScriptKey:]):
196         * bindings/scripts/CodeGeneratorJS.pm:
197         (GenerateHeader):
198         * bridge/NP_jsobject.cpp:
199         (_NPN_RemoveProperty):
200         * bridge/jni/jni_jsobject.mm:
201         (JavaJSObject::removeMember):
202         * bridge/objc/objc_runtime.h:
203         * bridge/objc/objc_runtime.mm:
204         * bridge/runtime_array.cpp:
205         * bridge/runtime_array.h:
206         * bridge/runtime_object.cpp:
207         * bridge/runtime_object.h:
208
209 2011-10-25  Chris Fleizach  <cfleizach@apple.com>
210
211         AX: WebKit does not expose HTML label for slider elements
212         https://bugs.webkit.org/show_bug.cgi?id=70856
213
214         Reviewed by Darin Adler.
215
216         Test: platform/mac/accessibility/slider-allows-title-ui-element.html
217
218         * accessibility/AccessibilitySlider.h:
219         (WebCore::AccessibilitySlider::isControl):
220         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
221         (-[WebAccessibilityObjectWrapper accessibilityAttributeNames]):
222
223 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
224
225         Remove putVirtual
226         https://bugs.webkit.org/show_bug.cgi?id=70740
227
228         Reviewed by Geoffrey Garen.
229
230         No new tests.
231
232         Removed all declarations and definitions of putVirtual.
233         Also replaced all call sites to putVirtual with a 
234         corresponding lookup in the MethodTable.
235
236         * WebCore.exp.in:
237         * bindings/js/JSDOMWindowCustom.cpp:
238         * bindings/js/JSDOMWindowShell.cpp:
239         (WebCore::JSDOMWindowShell::put):
240         * bindings/js/JSDOMWindowShell.h:
241         * bindings/js/JSPluginElementFunctions.cpp:
242         (WebCore::runtimeObjectCustomPut):
243         * bindings/js/SerializedScriptValue.cpp:
244         (WebCore::CloneDeserializer::putProperty):
245         * bindings/objc/WebScriptObject.mm:
246         (-[WebScriptObject setValue:forKey:]):
247         (-[WebScriptObject setWebScriptValueAtIndex:value:]):
248         * bindings/scripts/CodeGeneratorJS.pm:
249         (GenerateHeader):
250         (GenerateImplementation):
251         * bridge/NP_jsobject.cpp:
252         (_NPN_SetProperty):
253         * bridge/jni/jni_jsobject.mm:
254         (JavaJSObject::setMember):
255         (JavaJSObject::setSlot):
256         * bridge/objc/objc_runtime.h:
257         * bridge/objc/objc_runtime.mm:
258         * bridge/qt/qt_runtime.cpp:
259         (JSC::Bindings::convertQVariantToValue):
260         * bridge/runtime_array.cpp:
261         * bridge/runtime_array.h:
262         * bridge/runtime_object.cpp:
263         * bridge/runtime_object.h:
264         * bridge/testqtbindings.cpp:
265         (main):
266
267 2011-10-25  Adam Barth  <abarth@webkit.org>
268
269         EventTargetFactory.in is not sorted
270         https://bugs.webkit.org/show_bug.cgi?id=70855
271
272         Reviewed by Eric Seidel.
273
274         This patch sorts the file.  I was not able to measure a performance
275         difference using the microbenchmark included with this patch.
276
277         * dom/EventTargetFactory.in:
278
279 2011-10-25  Adam Barth  <abarth@webkit.org>
280
281         Attempt to fix the Windows build.  Windows mashes all these files into
282         one, which doesn't respect the compilation unit rules of C++.
283
284         * bindings/js/JSEventCustom.cpp:
285         * bindings/js/JSEventTarget.cpp:
286
287 2011-10-25  Ryosuke Niwa  <rniwa@webkit.org>
288
289         Moving to the start of line should not place the caret outside of the table
290         https://bugs.webkit.org/show_bug.cgi?id=70757
291
292         Reviewed by Chang Shu.
293
294         The bug was caused by positionAvoidingFirstPositionInTable. Get rid of the function.
295
296         Test: editing/selection/table-lineboundary.html
297
298         * editing/visible_units.cpp:
299         (WebCore::startPositionForLine):
300
301 2011-10-25  Beth Dakin  <bdakin@apple.com>
302
303         https://bugs.webkit.org/show_bug.cgi?id=70852
304         Setting up a HiDPI base-level GraphicsContext should be more straightforward for 
305         WebKit2
306
307         Reviewed by Dan Bernstein.
308
309         This patch removes the old cg-only GraphicsContext::setBaseCTM() api, and adds 
310         platform-independent GraphicsContext::applyDeviceScaleFactor().
311         * WebCore.exp.in:
312         * platform/graphics/GraphicsContext.cpp:
313         (WebCore::GraphicsContext::platformApplyDeviceScaleFactor):
314         (WebCore::GraphicsContext::applyDeviceScaleFactor):
315         * platform/graphics/GraphicsContext.h:
316         * platform/graphics/cg/GraphicsContextCG.cpp:
317         (WebCore::GraphicsContext::platformApplyDeviceScaleFactor):
318
319         Since this patch removes GraphicsContext::setBaseCTM(), this code has been 
320         reverted to do what it used to do before that was added; it just calls into 
321         WebCoreSystemInterface directly.
322         * platform/graphics/cg/ImageCG.cpp:
323         (WebCore::Image::drawPattern):
324
325 2011-10-25  Anders Carlsson  <andersca@apple.com>
326
327         Plug-ins have to use JavaScript to find out the current device scale factor
328         https://bugs.webkit.org/show_bug.cgi?id=67225
329
330         Reviewed by Darin Adler.
331
332         Test: platform/mac-wk2/plugins/contents-scale-factor.html
333
334         Add NPNVcontentsScaleFactor, as per https://wiki.mozilla.org/NPAPI:ContentsScaleFactor.
335
336         * plugins/npapi.h:
337
338 2011-10-25  Adam Klein  <adamk@chromium.org>
339
340         Forward declare MutationObserverEntry as a struct to fix clang build
341         https://bugs.webkit.org/show_bug.cgi?id=70853
342
343         Reviewed by Ryosuke Niwa.
344
345         Node.h forward declared MutationObserverEntry as a class, and clang
346         complains if the two declarations don't match.
347
348         * dom/Node.h:
349
350 2011-10-25  Dan Bernstein  <mitz@apple.com>
351
352         Caret can be positioned or repainted incorrectly in flipped-blocks multi-column blocks
353         https://bugs.webkit.org/show_bug.cgi?id=70851
354
355         Reviewed by Dave Hyatt.
356
357         * manual-tests/caret-in-columns-flipped.html: Added.
358         * rendering/RenderBlock.cpp:
359         (WebCore::RenderBlock::adjustForColumns): Removed flipped-blocks writing mode considerations
360         from this function, since not all callers were expecting it to account for flippedness. This makes
361         it similar to adjustRectForColumns() in not adjusting for flippedness.
362         * rendering/RenderBox.cpp:
363         (WebCore::RenderBox::offsetFromContainer): In the columns case, account for flipped-blocks modes
364         by first mapping the point and the offset to non-flipped, non-columns space, then adjusting for
365         columns, then flipping.
366
367 2011-10-25  Michal Mocny  <mmocny@google.com>
368
369         LayerRendererChromium::setVisible called needlessly without a visibility change
370         https://bugs.webkit.org/show_bug.cgi?id=70766
371
372         Reviewed by Kenneth Russell.
373
374         Check that visibility has actually changed before calling LayerRendererChromium::setVisible
375
376         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
377         (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
378         (WebCore::CCLayerTreeHostImpl::setVisible):
379         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
380
381 2011-10-25  Anders Carlsson  <andersca@apple.com>
382
383         REGRESSION(97821): HistoryController::itemsAreClones crashes a lot
384         https://bugs.webkit.org/show_bug.cgi?id=70827
385         <rdar://problem/10342925>
386
387         Reviewed by Adam Barth.
388
389         Check that m_currentItem is non-null before passing it to itemsAreClones. While I wasn't
390         able to make a test case that would reproduce this crash, we do check m_currentItem for null
391         everywhere else, and the crash log indicates that this would fix the crash.
392
393         * loader/HistoryController.cpp:
394         (WebCore::HistoryController::recursiveUpdateForCommit):
395
396 2011-10-25  Adam Barth  <abarth@webkit.org>
397
398         EventTarget.h shouldn't need to know about every feature and ifdef
399         https://bugs.webkit.org/show_bug.cgi?id=70659
400
401         Reviewed by Darin Adler.
402
403         This patch follows the approach of Event.h and introduces an
404         interfaceName virtual function that returns the name of the DOM
405         interface for the concrete type of the object.  This function lets us
406         remove a large number of fake dynamic casts.
407
408         * CMakeLists.txt:
409         * CodeGenerators.pri:
410         * DerivedSources.make:
411         * GNUmakefile.am:
412         * WebCore.gyp/WebCore.gyp:
413         * WebCore.gyp/scripts/action_makenames.py:
414             - Teach action_makenames how to handle the new "in" file.
415         * WebCore.gypi:
416         * WebCore.vcproj/WebCore.vcproj:
417         * WebCore.xcodeproj/project.pbxproj:
418         * bindings/js/JSEventTarget.cpp:
419         (WebCore::toJS):
420             - Use the new autogenerated macro to remove a large amount of
421               feature-specific code.
422         * bindings/js/WorkerScriptController.cpp:
423         (WebCore::WorkerScriptController::initScript):
424         * bindings/objc/DOM.mm:
425         (kit):
426             - The SVGElementInstance branch was never taken previously because
427               SVGElementInstance::toNode returns a non-NULL value. This code
428               was introduced in http://trac.webkit.org/changeset/42618 and
429               doesn't appear to have ever worked as the author intended.
430         * bindings/v8/V8DOMWrapper.cpp:
431         (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
432             - Use the new autogenerated macro to remove a large amount of
433               feature-specific code.
434         * dom/EventNames.cpp:
435         (WebCore::EventNames::EventNames):
436         * dom/EventNames.h:
437         * dom/EventTarget.cpp:
438         * dom/EventTarget.h:
439         * dom/EventTargetFactory.in: Added.
440             - Add a new "in" file that lists all the EventTargets.
441         * dom/LocalMediaStream.cpp:
442         (WebCore::LocalMediaStream::interfaceName):
443         * dom/LocalMediaStream.h:
444         * dom/MediaStream.cpp:
445         (WebCore::MediaStream::interfaceName):
446         * dom/MediaStream.h:
447         * dom/MessagePort.cpp:
448         (WebCore::MessagePort::interfaceName):
449         * dom/MessagePort.h:
450         * dom/Node.cpp:
451         (WebCore::Node::toNode):
452         (WebCore::Node::interfaceName):
453         * dom/Node.h:
454         * dom/make_event_factory.pl:
455             - Generalize make_event_factory.pl to be able to generate
456               interfaces for different namespaces.
457         * fileapi/FileReader.cpp:
458         (WebCore::FileReader::interfaceName):
459         * fileapi/FileReader.h:
460         * fileapi/FileWriter.cpp:
461         (WebCore::FileWriter::interfaceName):
462         * fileapi/FileWriter.h:
463         * loader/appcache/DOMApplicationCache.cpp:
464         (WebCore::DOMApplicationCache::interfaceName):
465         * loader/appcache/DOMApplicationCache.h:
466         * notifications/Notification.cpp:
467         (WebCore::Notification::interfaceName):
468         * notifications/Notification.h:
469         (WebCore::Notification::scriptExecutionContext):
470         * p2p/PeerConnection.cpp:
471         (WebCore::PeerConnection::interfaceName):
472         * p2p/PeerConnection.h:
473         * page/DOMWindow.cpp:
474         (WebCore::DOMWindow::interfaceName):
475         (WebCore::DOMWindow::toDOMWindow):
476         * page/DOMWindow.h:
477         * page/EventSource.cpp:
478         (WebCore::EventSource::interfaceName):
479         * page/EventSource.h:
480         * storage/IDBDatabase.cpp:
481         (WebCore::IDBDatabase::interfaceName):
482         * storage/IDBDatabase.h:
483         * storage/IDBRequest.cpp:
484         (WebCore::IDBRequest::interfaceName):
485         * storage/IDBRequest.h:
486         * storage/IDBTransaction.cpp:
487         (WebCore::IDBTransaction::interfaceName):
488         * storage/IDBTransaction.h:
489         * storage/IDBVersionChangeRequest.cpp:
490         (WebCore::IDBVersionChangeRequest::interfaceName):
491         * storage/IDBVersionChangeRequest.h:
492         * svg/SVGElementInstance.cpp:
493         (WebCore::SVGElementInstance::interfaceName):
494         * svg/SVGElementInstance.h:
495         (WebCore::SVGElementInstance::toNode):
496         * webaudio/AudioContext.cpp:
497         (WebCore::AudioContext::interfaceName):
498         (WebCore::AudioContext::scriptExecutionContext):
499         * webaudio/AudioContext.h:
500         * webaudio/JavaScriptAudioNode.cpp:
501         (WebCore::JavaScriptAudioNode::interfaceName):
502         * webaudio/JavaScriptAudioNode.h:
503         * websockets/WebSocket.cpp:
504         (WebCore::WebSocket::interfaceName):
505         * websockets/WebSocket.h:
506         * workers/DedicatedWorkerContext.cpp:
507         (WebCore::DedicatedWorkerContext::interfaceName):
508         * workers/DedicatedWorkerContext.h:
509         * workers/DefaultSharedWorkerRepository.cpp:
510         (WebCore::SharedWorkerConnectTask::performTask):
511         * workers/SharedWorker.cpp:
512         (WebCore::SharedWorker::interfaceName):
513         * workers/SharedWorker.h:
514         * workers/SharedWorkerContext.cpp:
515         (WebCore::SharedWorkerContext::interfaceName):
516         * workers/SharedWorkerContext.h:
517         * workers/Worker.cpp:
518         (WebCore::Worker::interfaceName):
519         * workers/Worker.h:
520         * xml/XMLHttpRequest.cpp:
521         (WebCore::XMLHttpRequest::interfaceName):
522         * xml/XMLHttpRequest.h:
523         * xml/XMLHttpRequestUpload.cpp:
524         (WebCore::XMLHttpRequestUpload::interfaceName):
525         * xml/XMLHttpRequestUpload.h:
526
527 2011-10-25  Pavel Podivilov  <podivilov@chromium.org>
528
529         Fix several minor problems in idls.
530         https://bugs.webkit.org/show_bug.cgi?id=70811
531
532         Reviewed by Adam Barth.
533
534         This patch does not have any effect on generated bindings.
535
536         * dom/DataTransferItems.idl:
537         * page/History.idl:
538         * storage/IDBIndex.idl:
539         * xml/XMLHttpRequest.idl:
540
541 2011-10-25  Nate Chapin  <japhet@chromium.org>
542
543         Make DocumentThreadableLoader a CachedResourceClient.
544         This will allow us to cache ThreadableLoaderClients as
545         appropriate in a later patch.
546         https://bugs.webkit.org/show_bug.cgi?id=61225
547
548         Reviewed by Antti Koivisto.
549
550         No new tests, no functionality change intended.
551
552         * WebCore.gypi:
553         * loader/DocumentThreadableLoader.cpp:
554         (WebCore::DocumentThreadableLoader::notifyFinished): CachedResourceClients don't send separate callbacks
555             for didFail() and didFinishLoading(), so we need to differentiate here.
556         (WebCore::DocumentThreadableLoader::loadRequest): Call CachedResourceLoader::requestRawResource()
557             instead of ResourceLoadScheduler::scheduleSubresourceLoad().
558         * loader/DocumentThreadableLoader.h:
559         * loader/cache/CachedRawResource.cpp:
560         (WebCore::CachedRawResource::data): Handle the complexity of some ThreadableLoaderClients setting
561             DoNotBufferData in ResoureLoaderOptions. If the DataBufferingPolicy is BufferData, then the
562             'data' input parameter will contain all data received so far, and we need to determine the
563             incremental data to forward to the clients. If the policy is DoNotBufferData, 'data' is just
564             the incremental data.
565         * loader/cache/CachedRawResource.h:
566         * loader/cache/CachedResource.cpp:
567         * loader/cache/CachedResource.h:
568         (WebCore::CachedResource::preloadResult):
569         (WebCore::CachedResource::didSendData):
570         (WebCore::CachedResource::didDownloadData):
571         (WebCore::CachedResource::setLoadFinishTime):
572         (WebCore::CachedResource::loadFinishTime):
573         * loader/cache/CachedResourceClient.h: Add several new callbacks needed by DocumentThreadableLoader.
574         * loader/cache/CachedResourceRequest.cpp:
575         (WebCore::CachedResourceRequest::didReceiveResponse): CachedResource::setResponse() can now cancel
576             the request, so protect appropriately.
577         * loader/cache/CachedResourceRequest.h:
578         * loader/chromium/CachedRawResourceChromium.cpp: Added (plumb didDownloadData() to DocumentThreadableLoader).
579         * loader/chromium/CachedResourceRequestChromium.cpp: Added (plumb didDownloadData() to DocumentThreadableLoader).
580         * loader/chromium/DocumentThreadableLoaderChromium.cpp:
581         * platform/network/BlobResourceHandle.cpp:
582         (WebCore::BlobResourceHandle::notifyResponse): Protect before setting response, since it might kill us.
583
584 2011-10-25  Pavel Podivilov  <podivilov@chromium.org>
585
586         Get rid of optional parameters in the middle in IDLs.
587         https://bugs.webkit.org/show_bug.cgi?id=70816
588
589         Reviewed by Adam Barth.
590
591         Optional parameters in the middle are prohibited by WebIDL spec.
592
593         * bindings/scripts/CodeGeneratorJS.pm:
594         (GenerateHeader):
595         (GenerateImplementation):
596         * bindings/scripts/CodeGeneratorV8.pm:
597         (GenerateHeader):
598         (GenerateArgumentsCountCheck):
599         (GenerateImplementation):
600         * html/canvas/CanvasRenderingContext2D.idl:
601         * page/DOMWindow.idl:
602
603 2011-10-25  Chris Evans  <cevans@google.com>
604
605         Manage the CSS property array length correctly
606         https://bugs.webkit.org/show_bug.cgi?id=70783
607
608         Reviewed by Adam Barth.
609
610         * css/CSSParser.cpp:
611         (WebCore::CSSParser::addProperty): don't allow max length to get out of sync with the buffer.
612
613 2011-10-25  Tony Chang  <tony@chromium.org>
614
615         avoid unnecessary layouts of flex items during the flex pass
616         https://bugs.webkit.org/show_bug.cgi?id=70557
617
618         Reviewed by Ojan Vafai.
619
620         If the preferred size of a flex item is provided, we don't need to
621         layout the flex item when computing the preferred size.  This allows
622         us to only call layout on each flex item once in the common case.
623
624         No new tests, covered by existing tests.
625
626         * rendering/RenderFlexibleBox.cpp:
627         (WebCore::RenderFlexibleBox::flowAwareLogicalWidthLengthForChild):
628         (WebCore::RenderFlexibleBox::preferredLogicalContentWidthForFlexItem):
629         (WebCore::RenderFlexibleBox::computePreferredLogicalWidth):
630         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
631         * rendering/RenderFlexibleBox.h:
632
633 2011-10-25  Fady Samuel  <fsamuel@chromium.org>
634
635         Crash in WebCore::RenderTableSection::addChild due to assert failure
636         https://bugs.webkit.org/show_bug.cgi?id=70678
637
638         Reviewed by David Hyatt.
639
640         Tests: fast/table/table-anonymous-cell-bug.html
641                fast/table/table-anonymous-row-bug.html
642                fast/table/table-anonymous-section-bug.html
643
644         If the child being added is not a Section/Row/Cell, and the previous sibling is not anonymous, 
645         we need to create a new anonymous Section/Row/Cell respectively, instead of failing an
646         assert.
647
648         * rendering/RenderTable.cpp:
649         (WebCore::RenderTable::addChild):
650         * rendering/RenderTableRow.cpp:
651         (WebCore::RenderTableRow::addChild):
652         * rendering/RenderTableSection.cpp:
653         (WebCore::RenderTableSection::addChild):
654
655 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
656
657         Add getOwnPropertySlot to MethodTable
658         https://bugs.webkit.org/show_bug.cgi?id=69807
659
660         Reviewed by Oliver Hunt.
661
662         No new tests.
663
664         * bridge/runtime_method.h: Changed getOwnPropertySlot to be protected so 
665         subclasses can reference it in their MethodTables.
666
667 2011-10-25  Simon Fraser  <simon.fraser@apple.com>
668
669         REGRESSION (r88580): Cursor fails to change to pointer on embedded Google maps popups
670         https://bugs.webkit.org/show_bug.cgi?id=62797
671
672         Reviewed by Chris Marrin.
673         
674         When hit testing through transformed layers, RenderLayer would simply use
675         the composited bounds of the layer as the localHitTestRect for hit testing sublayers.
676         However, this broke hit testing on pages that have a composited, non-transformed layer
677         which falls outside the bounds of its parent, composited-transformed layer, like Google
678         Maps.
679         
680         Fix by mapping the hitTestRect through transforms. However this is tricky, because
681         mapping a rect into the coordinate system of a layer can result in invalid rectangles
682         when point projection results in a negative w component. Fix TransformationMatrix::projectPoint()
683         to detect this case and replace X and Y with large values, and add boundsOfProjectedQuad(), which 
684         maps rectangles with possibly-infinite location or bounds into rects which are representable
685         in an IntRect.
686
687         Tests: transforms/3d/hit-testing/composited-hit-test.html
688                transforms/3d/hit-testing/rotated-hit-test-with-child.html
689                transforms/3d/hit-testing/rotated-hit-test2.html
690
691         * platform/graphics/transforms/TransformationMatrix.cpp:
692         (WebCore::TransformationMatrix::projectPoint):
693         (WebCore::TransformationMatrix::projectQuad):
694         (WebCore::clampEdgeValue):
695         (WebCore::TransformationMatrix::boundsOfProjectedQuad):
696         * platform/graphics/transforms/TransformationMatrix.h:
697         * rendering/HitTestingTransformState.cpp:
698         (WebCore::HitTestingTransformState::boundsOfMappedQuad):
699         * rendering/HitTestingTransformState.h:
700         * rendering/RenderLayer.cpp:
701         (WebCore::RenderLayer::hitTestLayer):
702
703 2011-10-25  Adrienne Walker  <enne@google.com>
704
705         [chromium] Batch up texture uploads so that they can be updated incrementally
706         https://bugs.webkit.org/show_bug.cgi?id=70454
707
708         Reviewed by James Robinson.
709
710         Because texture uploads can sometimes take more than a frame to
711         complete, collect all the uploads that need to occur in a
712         CCTextureUpdater so that we can easily incrementally upload some of
713         them, interleaving input and drawing so that the compositor thread
714         continues to appear responsive during a commit.
715
716         This change doesn't actually interleave the commits, it just pushes
717         the infrastructure for doing so up to the CCProxy level so that a
718         future scheduler can make this decision.
719
720         VideoLayerChromium is the only layer type to not use this system. It
721         needs to be converted to use a texture updater first and it is less of
722         a priority than the tiled layers.
723
724         * WebCore.gypi:
725         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
726         (WebCore::Canvas2DLayerChromium::updateCompositorResources):
727         * platform/graphics/chromium/Canvas2DLayerChromium.h:
728         * platform/graphics/chromium/LayerChromium.h:
729         (WebCore::LayerChromium::updateCompositorResources):
730         * platform/graphics/chromium/TiledLayerChromium.cpp:
731         (WebCore::TiledLayerChromium::updateCompositorResources):
732         * platform/graphics/chromium/TiledLayerChromium.h:
733         * platform/graphics/chromium/VideoLayerChromium.cpp:
734         (WebCore::VideoLayerChromium::updateCompositorResources):
735         * platform/graphics/chromium/VideoLayerChromium.h:
736         * platform/graphics/chromium/WebGLLayerChromium.cpp:
737         (WebCore::WebGLLayerChromium::updateCompositorResources):
738         * platform/graphics/chromium/WebGLLayerChromium.h:
739         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
740         (WebCore::CCLayerTreeHost::beginCommitOnImplThread):
741         (WebCore::CCLayerTreeHost::finishCommitOnImplThread):
742         (WebCore::CCLayerTreeHost::updateCompositorResources):
743         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
744         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
745         (WebCore::CCSingleThreadProxy::setNeedsCommit):
746         (WebCore::CCSingleThreadProxy::doCommit):
747         (WebCore::CCSingleThreadProxy::commitIfNeeded):
748         * platform/graphics/chromium/cc/CCSingleThreadProxy.h:
749         * platform/graphics/chromium/cc/CCTextureUpdater.cpp: Added.
750         (WebCore::CCTextureUpdater::CCTextureUpdater):
751         (WebCore::CCTextureUpdater::~CCTextureUpdater):
752         (WebCore::CCTextureUpdater::append):
753         (WebCore::CCTextureUpdater::update):
754         (WebCore::CCTextureUpdater::clear):
755         * platform/graphics/chromium/cc/CCTextureUpdater.h: Added.
756         (WebCore::CCTextureUpdater::allocator):
757         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
758         (WebCore::CCThreadProxy::commitOnImplThread):
759
760 2011-10-24  Jer Noble  <jer.noble@apple.com>
761
762         compositing/video tests time out on Lion
763         https://bugs.webkit.org/show_bug.cgi?id=70448
764
765         Reviewed by Simon Fraser.
766
767         AVFoundation will not begin loading or decoding media until a consumer for that media is present.
768         For video-only media, this means that an AVPlayerLayer must be created and attached to the 
769         AVPlayer before the load state will ever reach "canPlayThrough". Once the metadata for a media
770         is loaded, create a AVPlayerLayer if the media has a video track.
771
772         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
773         (WebCore::MediaPlayerPrivateAVFoundation::updateStates):
774
775 2011-10-24  Ryosuke Niwa  <rniwa@webkit.org>
776
777         Merge endOfLine with logicalEndOfLine and startOfLine with logicalStartOfLine
778         https://bugs.webkit.org/show_bug.cgi?id=70755
779
780         Reviewed by Chang Shu.
781
782         Merged endOfLine with logicalEndOfLine, and startOfLine with logicalStartOfLine
783         to reduce the code duplication.
784
785         * editing/visible_units.cpp:
786         (WebCore::startPositionForLine):
787         (WebCore::startOfLine):
788         (WebCore::logicalStartOfLine):
789         (WebCore::endPositionForLine):
790         (WebCore::inSameLogicalLine):
791         (WebCore::endOfLine):
792         (WebCore::logicalEndOfLine):
793         * editing/visible_units.h:
794
795 2011-10-25  Arko Saha  <arko@motorola.com>
796
797         Microdata: itemtype attribute should be space-separated list to allow multiple types.
798         https://bugs.webkit.org/show_bug.cgi?id=70501
799
800         Reviewed by Ryosuke Niwa.
801
802         Tests: fast/dom/MicroData/getitems-multiple-itemtypes.html
803                fast/dom/MicroData/itemtype-add-remove-tokens.html
804                fast/dom/MicroData/itemtype-attribute-test.html
805
806         * dom/MicroDataItemList.cpp:
807         (WebCore::MicroDataItemList::nodeMatches):
808         * html/DOMSettableTokenList.h:
809         (WebCore::DOMSettableTokenList::tokens):
810         * html/HTMLElement.cpp:
811         (WebCore::HTMLElement::parseMappedAttribute):
812         (WebCore::HTMLElement::setItemValueText):
813         (WebCore::HTMLElement::itemType):
814         (WebCore::HTMLElement::setItemType):
815         * html/HTMLElement.h:
816         * html/HTMLElement.idl:
817
818 2011-10-25  Dan Bernstein  <mitz@apple.com>
819
820         <rdar://problem/10337033> DOMRangeOfString:relativeTo:options has problems with -webkit-user-select: none
821
822         Reviewed by Adam Roben.
823
824         Test: added to TestWebKitAPI/Tests/mac/DOMRangeOfString.mm
825
826         * page/Page.cpp:
827         (WebCore::Page::rangeOfString): This function was incorrectly adding the StartInSelection option to
828         the initial search.
829
830 2011-10-25  Yury Semikhatsky  <yurys@chromium.org>
831
832         Web Inspector: redesign workers sidebar pane
833         https://bugs.webkit.org/show_bug.cgi?id=70815
834
835         Changed workers sidebar pane design.
836
837         Now there is a link to worker inspector for each dedicated worker created
838         by inspected page. The sidebar display a link to a page with list of all
839         shared workers if there one is supported by the WebKit port. Also there
840         is a checkbox that allows pause all new workers on first statements.
841
842         Reviewed by Pavel Feldman.
843
844         * inspector/front-end/Settings.js:
845         * inspector/front-end/StylesSidebarPane.js:
846         (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
847         * inspector/front-end/WorkerManager.js:
848         (WebInspector.WorkerManager.prototype.openWorkerInspector):
849         (WebInspector.WorkerManager.prototype._workerInspectorClosing):
850         * inspector/front-end/WorkersSidebarPane.js:
851         (WebInspector.WorkerListSidebarPane):
852         (WebInspector.WorkerListSidebarPane.prototype._workerRemoved):
853         (WebInspector.WorkerListSidebarPane.prototype._workersCleared):
854         (WebInspector.WorkerListSidebarPane.prototype._addWorker):
855         (WebInspector.WorkerListSidebarPane.prototype._workerItemClicked):
856         (WebInspector.WorkerListSidebarPane.prototype._autoattachToWorkersClicked):
857         (WebInspector.WorkerListSidebarPane.prototype._createSharedWorkersLink.link.onclick):
858         (WebInspector.WorkerListSidebarPane.prototype._createSharedWorkersLink):
859         * inspector/front-end/elementsPanel.css:
860         * inspector/front-end/inspectorCommon.css:
861         (.sidebar-separator):
862         (.sidebar-label):
863         * inspector/front-end/scriptsPanel.css:
864         (.dedicated-worker-item):
865         (#shared-workers-list):
866         (#pause-workers-checkbox > input):
867
868 2011-10-25  Nico Weber  <thakis@chromium.org>
869
870         [chromium/mac] Fix an ODR violation.
871         https://bugs.webkit.org/show_bug.cgi?id=70753
872
873         Reviewed by Anders Carlsson.
874
875         Both ScrollAnimatorNone and ScrollAnimatorMac define ScrollAnimator::create() on OS X.
876         Remove the unused one.
877
878         * WebCore.gyp/WebCore.gyp:
879
880 2011-10-25  Vsevolod Vlasov  <vsevik@chromium.org>
881
882         Web Inspector: Debugger fails when there is an invalid watch expression.
883         https://bugs.webkit.org/show_bug.cgi?id=70718
884
885         Reviewed by Pavel Feldman.
886
887         Test: inspector/debugger/watch-expressions-panel-switch.html
888
889         * inspector/front-end/ScriptsPanel.js:
890         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
891
892 2011-10-24  Pavel Podivilov  <podivilov@chromium.org>
893
894         Web Inspector: fix empty line handling in source maps.
895         https://bugs.webkit.org/show_bug.cgi?id=70726
896
897         Reviewed by Yury Semikhatsky.
898
899         * inspector/front-end/CompilerSourceMapping.js:
900         (WebInspector.ClosureCompilerSourceMapping.prototype._parseMappings):
901
902 2011-10-25  Justin Schuh  <jschuh@chromium.org>
903
904         Check for empty string in parseArcFlag
905         https://bugs.webkit.org/show_bug.cgi?id=70763
906
907         Reviewed by Dirk Schulze.
908
909         Test: svg/path-invalid.html
910
911         * svg/SVGParserUtilities.cpp:
912         (WebCore::parseArcFlag):
913
914 2011-10-24  Pavel Podivilov  <podivilov@chromium.org>
915
916         Web Inspector: keep old source mapping when new one could not be loaded.
917         https://bugs.webkit.org/show_bug.cgi?id=70729
918
919         Reviewed by Yury Semikhatsky.
920
921         * inspector/front-end/RawSourceCode.js:
922         (WebInspector.RawSourceCode.prototype._updateSourceMapping.didCreateSourceMapping):
923         (WebInspector.RawSourceCode.prototype._updateSourceMapping):
924         (WebInspector.RawSourceCode.prototype._createSourceMapping.didLoadSourceMapping):
925
926 2011-10-25  Sachin Puranik  <sachin.puranik@motorola.com>
927
928         Double number step=.5 should be considered valid in <input type="number" step=".5">
929         https://bugs.webkit.org/show_bug.cgi?id=70320
930
931         Reviewed by Kent Tamura.
932
933         Test: fast/forms/input-step-as-double.html
934
935         * html/parser/HTMLParserIdioms.cpp:
936         (WebCore::parseToDoubleForNumberType): Changed the function to consider
937         step as valid even if it starts with "."
938
939 2011-10-25  Alexander Pavlov  <apavlov@chromium.org>
940
941         Web Inspector: [Chromium] Audits panel context menu for links not working properly
942         https://bugs.webkit.org/show_bug.cgi?id=70813
943
944         Reviewed by Pavel Feldman.
945
946         * inspector/front-end/AuditResultView.js:
947         (WebInspector.AuditResultView):
948         (WebInspector.AuditResultView.prototype._contextMenuEventFired):
949
950 2011-10-25  Vsevolod Vlasov  <vsevik@chromium.org>
951
952         Web Inspector: Resources panel: display the current search match index in the toolbar.
953         https://bugs.webkit.org/show_bug.cgi?id=66050
954
955         Reviewed by Pavel Feldman.
956
957         Test: http/tests/inspector/search/resources-search-match-index.html
958
959         * inspector/front-end/ResourcesPanel.js:
960         (WebInspector.ResourcesPanel.prototype.performSearch.callback):
961         (WebInspector.ResourcesPanel.prototype.performSearch):
962         (WebInspector.ResourcesPanel.prototype._showSearchResult.callback):
963         (WebInspector.ResourcesPanel.prototype._showSearchResult):
964         (WebInspector.BaseStorageTreeElement.prototype.get searchMatchesCount):
965         (WebInspector.ResourcesSearchController):
966         (WebInspector.ResourcesSearchController.prototype.nextSearchResult):
967         (WebInspector.ResourcesSearchController.prototype.previousSearchResult):
968         (WebInspector.ResourcesSearchController.prototype._searchResult):
969         (WebInspector.SearchResultsTreeElementsTraverser.prototype.next):
970         (WebInspector.SearchResultsTreeElementsTraverser.prototype.previous):
971         (WebInspector.SearchResultsTreeElementsTraverser.prototype.matchIndex):
972         (WebInspector.SearchResultsTreeElementsTraverser.prototype._elementSearchMatchesCount):
973         (WebInspector.SearchResultsTreeElementsTraverser.prototype._traverseNext):
974         (WebInspector.SearchResultsTreeElementsTraverser.prototype._traversePrevious):
975         * inspector/front-end/treeoutline.js:
976
977 2011-10-25  Andrey Kosyakov  <caseq@chromium.org>
978
979         Web Inspector: JS exception in JavaScriptSourceFrame.onShowPopover/showObjectPopover()
980         https://bugs.webkit.org/show_bug.cgi?id=70812
981
982         Reviewed by Pavel Feldman.
983
984         Check if highlighted element is present while displaying object popover.
985
986         * inspector/front-end/JavaScriptSourceFrame.js:
987         (WebInspector.JavaScriptSourceFrame.prototype.onShowPopover.showObjectPopover):
988         (WebInspector.JavaScriptSourceFrame.prototype.onShowPopover):
989
990 2011-10-21  Nat Duca  <nduca@chromium.org>
991
992         [chromium] Route Console::time and Console::timeEnd to trace_event
993         https://bugs.webkit.org/show_bug.cgi?id=70620
994
995         Reviewed by Pavel Feldman.
996
997         * page/Console.cpp:
998         (WebCore::Console::time):
999         (WebCore::Console::timeEnd):
1000
1001 2011-10-21  Andrey Kosyakov  <caseq@chromium.org>
1002
1003         Web Inspector: [Extensions API] allow extensions to specify script to be injected on reload
1004         https://bugs.webkit.org/show_bug.cgi?id=70600
1005
1006         Reviewed by Pavel Feldman.
1007
1008         - change webInspector.inspectedPage.reload() to accept multiple options in an object
1009         - add an ability to inject a script upon a page reload
1010         - return script id in addScriptToEvaluateOnLoad()
1011         - provide removeScriptToEvaluateOnLoad()
1012         - store scripts to evaluate on load in inspector state cookie
1013
1014         Test: inspector/extensions/extensions-reload.html
1015
1016         * inspector/Inspector.json:
1017         * inspector/InspectorPageAgent.cpp:
1018         (WebCore::InspectorPageAgent::InspectorPageAgent):
1019         (WebCore::InspectorPageAgent::restore):
1020         (WebCore::InspectorPageAgent::addScriptToEvaluateOnLoad):
1021         (WebCore::InspectorPageAgent::removeScriptToEvaluateOnLoad):
1022         (WebCore::InspectorPageAgent::removeAllScriptsToEvaluateOnLoad):
1023         (WebCore::InspectorPageAgent::didClearWindowObjectInWorld):
1024         (WebCore::InspectorPageAgent::frameNavigated):
1025         * inspector/InspectorPageAgent.h:
1026         * inspector/front-end/ExtensionAPI.js:
1027         (injectedExtensionAPI.InspectedWindow.prototype.reload):
1028         * inspector/front-end/ExtensionServer.js:
1029         (WebInspector.ExtensionServer.prototype._onReload):
1030         * inspector/front-end/WorkersSidebarPane.js:
1031         (WebInspector.WorkersSidebarPane.prototype.setInstrumentation.callback):
1032         (WebInspector.WorkersSidebarPane.prototype.setInstrumentation):
1033
1034 2011-10-24  Pavel Feldman  <pfeldman@google.com>
1035
1036         Web Inspector: print expired message count before remaining messages.
1037         https://bugs.webkit.org/show_bug.cgi?id=70736
1038
1039         Reviewed by Yury Semikhatsky.
1040
1041         * inspector/Inspector-0.1.json:
1042         * inspector/Inspector.json:
1043         * inspector/InspectorConsoleAgent.cpp:
1044         (WebCore::InspectorConsoleAgent::enable):
1045         (WebCore::InspectorConsoleAgent::restore):
1046         * inspector/InspectorConsoleAgent.h:
1047         * inspector/front-end/ConsoleModel.js:
1048
1049 2011-10-25  Sheriff Bot  <webkit.review.bot@gmail.com>
1050
1051         Unreviewed, rolling out r98309.
1052         http://trac.webkit.org/changeset/98309
1053         https://bugs.webkit.org/show_bug.cgi?id=70801
1054
1055         Test fails on mac (Requested by benwells on #webkit).
1056
1057         * html/canvas/CanvasRenderingContext2D.cpp:
1058         (WebCore::CanvasRenderingContext2D::fill):
1059         (WebCore::CanvasRenderingContext2D::fillRect):
1060         (WebCore::CanvasRenderingContext2D::drawImage):
1061         (WebCore::CanvasRenderingContext2D::shouldDisplayTransparencyElsewhere):
1062         (WebCore::CanvasRenderingContext2D::fillAndDisplayTransparencyElsewhere):
1063         * html/canvas/CanvasRenderingContext2D.h:
1064
1065 2011-10-24  Geoffrey Garen  <ggaren@apple.com>
1066
1067         Chromium build fix: #include window.h for HANDLE.
1068
1069         * platform/graphics/opentype/OpenTypeUtilities.h:
1070
1071 2011-10-24  Ryosuke Niwa  <rniwa@webkit.org>
1072
1073         Include ThreadSafeRefCounted.h since the class declared in this header file
1074         inherits from ThreadSafeRefCounted.
1075
1076         * storage/IDBIndexBackendInterface.h:
1077
1078 2011-10-24  Ryosuke Niwa  <rniwa@webkit.org>
1079
1080         Fix a typo.
1081
1082         * bindings/v8/JavaScriptCallFrame.h:
1083
1084 2011-10-24  Geoffrey Garen  <ggaren@apple.com>
1085
1086         Removed SharedUChar and tightened language around its previous uses
1087         https://bugs.webkit.org/show_bug.cgi?id=70698
1088
1089         Reviewed by David Levin.
1090
1091         - Renamed "threadSafeCopy" and "crossThreadCopy" to "isolatedCopy" because
1092         the former names gave the dangerous misimpression that the resulting object
1093         was thread-safe, which is not true.
1094         
1095         - Updated a bunch of files for header dependency changes, now that
1096         CrossThreadRefCounted is gone.
1097
1098         * ForwardingHeaders/wtf/CrossThreadRefCounted.h: Removed.
1099         * WebCore.exp.in:
1100         * bindings/js/ScriptHeapSnapshot.h:
1101         * bindings/v8/SerializedScriptValue.cpp:
1102         (WebCore::SerializedScriptValue::release):
1103         (WebCore::SerializedScriptValue::SerializedScriptValue):
1104         * css/CSSPropertySourceData.h:
1105         * css/CSSValue.h:
1106         * css/StyleMedia.h:
1107         * css/WebKitCSSMatrix.h:
1108         * dom/QualifiedName.h:
1109         * fileapi/LocalFileSystem.h:
1110         (WebCore::LocalFileSystem::SystemBasePath::operator String):
1111         * history/CachedFrame.h:
1112         * history/CachedPage.h:
1113         * history/HistoryItem.h:
1114         * html/canvas/CanvasStyle.h:
1115         * inspector/InspectorResourceAgent.h:
1116         * loader/FormState.h:
1117         * loader/TextResourceDecoder.h:
1118         * loader/WorkerThreadableLoader.cpp:
1119         (WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge):
1120         * loader/icon/IconDatabase.cpp:
1121         (WebCore::IconDatabase::open):
1122         (WebCore::IconDatabase::synchronousIconForPageURL):
1123         (WebCore::IconDatabase::synchronousIconURLForPageURL):
1124         (WebCore::IconDatabase::retainIconForPageURL):
1125         (WebCore::IconDatabase::releaseIconForPageURL):
1126         (WebCore::IconDatabase::setIconDataForIconURL):
1127         (WebCore::IconDatabase::setIconURLForPageURL):
1128         (WebCore::IconDatabase::databasePath):
1129         (WebCore::IconDatabase::defaultDatabaseFilename):
1130         (WebCore::ImportedIconURLForPageURLWorkItem::ImportedIconURLForPageURLWorkItem):
1131         (WebCore::ImportedIconDataForPageURLWorkItem::ImportedIconDataForPageURLWorkItem):
1132         * page/ContentSecurityPolicy.h:
1133         * page/Coordinates.h:
1134         (WebCore::Coordinates::isolatedCopy):
1135         * page/Geoposition.h:
1136         (WebCore::Geoposition::isolatedCopy):
1137         * page/SecurityOrigin.cpp:
1138         (WebCore::SecurityOrigin::SecurityOrigin):
1139         (WebCore::SecurityOrigin::isolatedCopy):
1140         * page/SecurityOrigin.h:
1141         * page/animation/AnimationBase.h:
1142         * platform/CrossThreadCopier.cpp:
1143         (WebCore::::copy):
1144         * platform/FileChooser.h:
1145         * platform/KURL.cpp:
1146         (WebCore::KURL::copy):
1147         * platform/cf/SchedulePair.h:
1148         * platform/network/BlobData.cpp:
1149         (WebCore::BlobDataItem::detachFromCurrentThread):
1150         (WebCore::BlobData::detachFromCurrentThread):
1151         * platform/network/HTTPHeaderMap.cpp:
1152         (WebCore::HTTPHeaderMap::copyData):
1153         * platform/network/MIMEHeader.h:
1154         * platform/network/ResourceErrorBase.cpp:
1155         (WebCore::ResourceErrorBase::copy):
1156         * platform/network/ResourceLoadInfo.h:
1157         * platform/network/ResourceRequestBase.cpp:
1158         (WebCore::ResourceRequestBase::copyData):
1159         * platform/network/ResourceResponseBase.cpp:
1160         (WebCore::ResourceResponseBase::copyData):
1161         * platform/sql/SQLValue.cpp:
1162         (WebCore::SQLValue::SQLValue):
1163         (WebCore::SQLValue::string):
1164         * rendering/style/QuotesData.h:
1165         * storage/AbstractDatabase.cpp:
1166         (WebCore::updateGuidVersionMap):
1167         (WebCore::AbstractDatabase::AbstractDatabase):
1168         (WebCore::AbstractDatabase::performOpenAndVerify):
1169         (WebCore::AbstractDatabase::stringIdentifier):
1170         (WebCore::AbstractDatabase::displayName):
1171         (WebCore::AbstractDatabase::fileName):
1172         (WebCore::AbstractDatabase::setExpectedVersion):
1173         (WebCore::AbstractDatabase::getCachedVersion):
1174         * storage/ChangeVersionWrapper.cpp:
1175         (WebCore::ChangeVersionWrapper::ChangeVersionWrapper):
1176         * storage/Database.cpp:
1177         (WebCore::Database::Database):
1178         (WebCore::Database::tableNames):
1179         * storage/DatabaseDetails.h:
1180         * storage/DatabaseTracker.cpp:
1181         (WebCore::DatabaseTracker::setDatabaseDirectoryPath):
1182         (WebCore::DatabaseTracker::databaseDirectoryPath):
1183         (WebCore::DatabaseTracker::trackerDatabasePath):
1184         (WebCore::DatabaseTracker::canEstablishDatabase):
1185         (WebCore::DatabaseTracker::originPath):
1186         (WebCore::DatabaseTracker::fullPathForDatabase):
1187         (WebCore::DatabaseTracker::populateOrigins):
1188         (WebCore::DatabaseTracker::databaseNamesForOrigin):
1189         (WebCore::DatabaseTracker::addOpenDatabase):
1190         (WebCore::DatabaseTracker::setQuota):
1191         (WebCore::DatabaseTracker::recordCreatingDatabase):
1192         (WebCore::DatabaseTracker::recordDeletingDatabase):
1193         (WebCore::DatabaseTracker::recordDeletingOrigin):
1194         (WebCore::DatabaseTracker::scheduleNotifyDatabaseChanged):
1195         * storage/OriginQuotaManager.cpp:
1196         (WebCore::OriginQuotaManager::trackOrigin):
1197         (WebCore::OriginQuotaManager::addDatabase):
1198         * storage/SQLError.h:
1199         (WebCore::SQLError::message):
1200         (WebCore::SQLError::SQLError):
1201         * storage/SQLResultSetRowList.h:
1202         * storage/SQLStatement.cpp:
1203         (WebCore::SQLStatement::SQLStatement):
1204         * storage/StorageAreaSync.cpp:
1205         (WebCore::StorageAreaSync::StorageAreaSync):
1206         (WebCore::StorageAreaSync::syncTimerFired):
1207         * storage/StorageAreaSync.h:
1208         * storage/StorageMap.cpp:
1209         (WebCore::StorageMap::importItem):
1210         * storage/StorageNamespaceImpl.cpp:
1211         (WebCore::StorageNamespaceImpl::StorageNamespaceImpl):
1212         * storage/StorageSyncManager.cpp:
1213         (WebCore::StorageSyncManager::StorageSyncManager):
1214         * storage/StorageTracker.cpp:
1215         (WebCore::StorageTracker::StorageTracker):
1216         (WebCore::StorageTracker::syncImportOriginIdentifiers):
1217         (WebCore::StorageTracker::syncFileSystemAndTrackerDatabase):
1218         (WebCore::StorageTracker::setOriginDetails):
1219         (WebCore::StorageTracker::willDeleteAllOrigins):
1220         * svg/SVGPathSeg.h:
1221         * workers/DefaultSharedWorkerRepository.cpp:
1222         (WebCore::SharedWorkerProxy::url):
1223         (WebCore::SharedWorkerProxy::name):
1224         (WebCore::SharedWorkerProxy::SharedWorkerProxy):
1225         (WebCore::DefaultSharedWorkerRepository::getProxy):
1226         * workers/SharedWorkerThread.cpp:
1227         (WebCore::SharedWorkerThread::SharedWorkerThread):
1228         * workers/WorkerMessagingProxy.cpp:
1229         (WebCore::WorkerExceptionTask::WorkerExceptionTask):
1230         (WebCore::PostMessageToPageInspectorTask::PostMessageToPageInspectorTask):
1231         * workers/WorkerRunLoop.cpp:
1232         (WebCore::WorkerRunLoop::postTaskForMode):
1233         (WebCore::WorkerRunLoop::Task::Task):
1234         * workers/WorkerThread.cpp:
1235         (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
1236
1237 2011-10-24  Adam Barth  <abarth@webkit.org>
1238
1239         Remove empty directory.
1240
1241         * p2p: Removed.
1242
1243 2011-10-24  Shawn Singh  <shawnsingh@chromium.org>
1244
1245         [chromium] Refactor painting/updating/drawing code.
1246         https://bugs.webkit.org/show_bug.cgi?id=70057
1247
1248         Reviewed by James Robinson.
1249
1250         This refactoring separates the "early exits" from the actual loop
1251         that draws layers. As part of this, it was also appropriate to
1252         clean up the way that masks and replicas are dealt with when
1253         painting and updating. The purpose of all this is to make things
1254         easier to test, and for a scissoring optimization that needs to
1255         know exatly what gets drawn. Existing layout tests were able to
1256         verify the refactoring did not change behavior.
1257
1258         * platform/graphics/chromium/LayerRendererChromium.cpp:
1259         (WebCore::LayerRendererChromium::drawLayersOntoRenderSurfaces):
1260         (WebCore::LayerRendererChromium::drawLayersInternal):
1261         (WebCore::LayerRendererChromium::drawLayer):
1262         * platform/graphics/chromium/LayerRendererChromium.h:
1263         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
1264         (WebCore::CCLayerTreeHost::paintMaskAndReplicaForRenderSurface):
1265         (WebCore::CCLayerTreeHost::paintLayerContents):
1266         (WebCore::CCLayerTreeHost::updateCompositorResources):
1267         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
1268         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
1269         (WebCore::layerShouldBeAppended):
1270         (WebCore::calculateDrawTransformsAndVisibilityInternal):
1271         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.h:
1272         (WebCore::CCLayerTreeHostCommon::calculateVisibleLayerRect):
1273
1274 2011-10-24  Luke Macpherson   <macpherson@chromium.org>
1275
1276         REGRESSION(80893): HTML5 spec takes 2s longer to load due to time spent in CSSStyleSelector
1277         https://bugs.webkit.org/show_bug.cgi?id=68944
1278
1279         Reviewed by Antti Koivisto.
1280
1281         No new tests / Covered by existing tests.
1282
1283         Removes all virtual dispatch from CSSStyleApplyProperty by converting to use static function pointers for dispatch.
1284         Uses class templates instead of function templates to allow default parameters and also to share parameter declarations across static functions.
1285         All constructor parameters become template parameters. This improves the level of compiler optimization that can be achieved.
1286         Overall this achieved a ~2% overall speedup on run-safari PerformanceTests/Parser/html5-full-render.html,
1287         and profiling showed a reduction in the time spent inside CSSStyleSelector::applyProperty().
1288
1289         * css/CSSStyleApplyProperty.cpp:
1290         (WebCore::ApplyPropertyExpanding::applyInheritValue):
1291         (WebCore::ApplyPropertyExpanding::applyInitialValue):
1292         (WebCore::ApplyPropertyExpanding::applyValue):
1293         (WebCore::ApplyPropertyExpanding::createHandler):
1294         (WebCore::ApplyPropertyDefaultBase::setValue):
1295         (WebCore::ApplyPropertyDefaultBase::value):
1296         (WebCore::ApplyPropertyDefaultBase::initial):
1297         (WebCore::ApplyPropertyDefaultBase::applyInheritValue):
1298         (WebCore::ApplyPropertyDefaultBase::applyInitialValue):
1299         (WebCore::ApplyPropertyDefaultBase::applyValue):
1300         (WebCore::ApplyPropertyDefaultBase::createHandler):
1301         (WebCore::ApplyPropertyDefault::setValue):
1302         (WebCore::ApplyPropertyDefault::applyValue):
1303         (WebCore::ApplyPropertyDefault::createHandler):
1304         (WebCore::ApplyPropertyStyleImage::applyValue):
1305         (WebCore::ApplyPropertyStyleImage::createHandler):
1306         (WebCore::ApplyPropertyAuto::setValue):
1307         (WebCore::ApplyPropertyAuto::value):
1308         (WebCore::ApplyPropertyAuto::hasAuto):
1309         (WebCore::ApplyPropertyAuto::setAuto):
1310         (WebCore::ApplyPropertyAuto::applyInheritValue):
1311         (WebCore::ApplyPropertyAuto::applyInitialValue):
1312         (WebCore::ApplyPropertyAuto::applyValue):
1313         (WebCore::ApplyPropertyAuto::createHandler):
1314         (WebCore::defaultInitialColor):
1315         (WebCore::ApplyPropertyColor::applyInheritValue):
1316         (WebCore::ApplyPropertyColor::applyInitialValue):
1317         (WebCore::ApplyPropertyColor::applyValue):
1318         (WebCore::ApplyPropertyColor::createHandler):
1319         (WebCore::ApplyPropertyDirection::applyValue):
1320         (WebCore::ApplyPropertyDirection::createHandler):
1321         (WebCore::ApplyPropertyLength::setValue):
1322         (WebCore::ApplyPropertyLength::applyValue):
1323         (WebCore::ApplyPropertyLength::createHandler):
1324         (WebCore::ApplyPropertyString::setValue):
1325         (WebCore::ApplyPropertyString::applyValue):
1326         (WebCore::ApplyPropertyString::createHandler):
1327         (WebCore::ApplyPropertyBorderRadius::setValue):
1328         (WebCore::ApplyPropertyBorderRadius::applyValue):
1329         (WebCore::ApplyPropertyBorderRadius::createHandler):
1330         (WebCore::ApplyPropertyFillLayer::applyInheritValue):
1331         (WebCore::ApplyPropertyFillLayer::applyInitialValue):
1332         (WebCore::ApplyPropertyFillLayer::applyValue):
1333         (WebCore::ApplyPropertyFillLayer::createHandler):
1334         (WebCore::ApplyPropertyComputeLength::setValue):
1335         (WebCore::ApplyPropertyComputeLength::applyValue):
1336         (WebCore::ApplyPropertyComputeLength::createHandler):
1337         (WebCore::ApplyPropertyFont::applyInheritValue):
1338         (WebCore::ApplyPropertyFont::applyInitialValue):
1339         (WebCore::ApplyPropertyFont::applyValue):
1340         (WebCore::ApplyPropertyFont::createHandler):
1341         (WebCore::ApplyPropertyFontWeight::applyValue):
1342         (WebCore::ApplyPropertyFontWeight::createHandler):
1343         (WebCore::ApplyPropertyCounter::emptyFunction):
1344         (WebCore::ApplyPropertyCounter::applyValue):
1345         (WebCore::ApplyPropertyCounter::createHandler):
1346         (WebCore::ApplyPropertyCursor::applyInheritValue):
1347         (WebCore::ApplyPropertyCursor::applyInitialValue):
1348         (WebCore::ApplyPropertyCursor::applyValue):
1349         (WebCore::ApplyPropertyCursor::createHandler):
1350         (WebCore::ApplyPropertyTextEmphasisStyle::applyInheritValue):
1351         (WebCore::ApplyPropertyTextEmphasisStyle::applyInitialValue):
1352         (WebCore::ApplyPropertyTextEmphasisStyle::applyValue):
1353         (WebCore::ApplyPropertyTextEmphasisStyle::createHandler):
1354         (WebCore::ApplyPropertyAnimation::setValue):
1355         (WebCore::ApplyPropertyAnimation::value):
1356         (WebCore::ApplyPropertyAnimation::test):
1357         (WebCore::ApplyPropertyAnimation::clear):
1358         (WebCore::ApplyPropertyAnimation::initial):
1359         (WebCore::ApplyPropertyAnimation::map):
1360         (WebCore::ApplyPropertyAnimation::accessAnimations):
1361         (WebCore::ApplyPropertyAnimation::animations):
1362         (WebCore::ApplyPropertyAnimation::applyInheritValue):
1363         (WebCore::ApplyPropertyAnimation::applyInitialValue):
1364         (WebCore::ApplyPropertyAnimation::applyValue):
1365         (WebCore::ApplyPropertyAnimation::createHandler):
1366         (WebCore::ApplyPropertyOutlineStyle::applyInheritValue):
1367         (WebCore::ApplyPropertyOutlineStyle::applyInitialValue):
1368         (WebCore::ApplyPropertyOutlineStyle::applyValue):
1369         (WebCore::ApplyPropertyOutlineStyle::createHandler):
1370         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
1371         * css/CSSStyleApplyProperty.h:
1372         (WebCore::PropertyHandler::PropertyHandler):
1373         (WebCore::PropertyHandler::applyInheritValue):
1374         (WebCore::PropertyHandler::applyInitialValue):
1375         (WebCore::PropertyHandler::applyValue):
1376         (WebCore::PropertyHandler::isValid):
1377         (WebCore::PropertyHandler::inheritFunction):
1378         (WebCore::PropertyHandler::initialFunction):
1379         (WebCore::PropertyHandler::applyFunction):
1380         (WebCore::CSSStyleApplyProperty::propertyHandler):
1381         (WebCore::CSSStyleApplyProperty::setPropertyHandler):
1382         * css/CSSStyleSelector.cpp:
1383         (WebCore::CSSStyleSelector::applyProperty):
1384         * rendering/style/RenderStyle.h:
1385         (WebCore::InheritedFlags::invalidColor):
1386
1387 2011-10-24  Ben Wells  <benwells@chromium.org>
1388
1389         Canvas drawImage with SourceIn, DestinationIn, SourceOut, DestinationAtop and Copy have errors
1390         https://bugs.webkit.org/show_bug.cgi?id=66920
1391
1392         Reviewed by James Robinson.
1393
1394         Test: fast/canvas/canvas-composite-image.html
1395
1396         Use the same method as fills to handle composited drawImage calls that will affect the whole
1397         canvas. To do this code used when doing fills has been factored into seperate functions and
1398         used by drawImage. Some functions used to do these types of operations have also been renamed.
1399
1400         * html/canvas/CanvasRenderingContext2D.cpp:
1401         (WebCore::isFullCanvasCompositeMode):
1402         (WebCore::CanvasRenderingContext2D::fill):
1403         (WebCore::CanvasRenderingContext2D::fillRect):
1404         (WebCore::CanvasRenderingContext2D::drawImage):
1405         (WebCore::CanvasRenderingContext2D::calculateCompositingBufferRect):
1406         (WebCore::CanvasRenderingContext2D::createCompositingBuffer):
1407         (WebCore::CanvasRenderingContext2D::compositeBuffer):
1408         (WebCore::CanvasRenderingContext2D::fullCanvasCompositedDrawImage):
1409         (WebCore::CanvasRenderingContext2D::fullCanvasCompositedFill):
1410         * html/canvas/CanvasRenderingContext2D.h:
1411
1412 2011-10-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1413
1414         Unreviewed, rolling out r98294 and r98306.
1415         http://trac.webkit.org/changeset/98294
1416         http://trac.webkit.org/changeset/98306
1417         https://bugs.webkit.org/show_bug.cgi?id=70790
1418
1419         the first patch broke chromium-mac and the second gclient
1420         (Requested by jchaffraix on #webkit).
1421
1422         * WebCore.gyp/WebCore.gyp:
1423
1424 2011-10-24  Ryosuke Niwa  <rniwa@webkit.org>
1425
1426         Build fix after r98300.
1427
1428         * WebCore.gypi:
1429         * WebCore.pro:
1430
1431 2011-10-24  Anders Carlsson  <andersca@apple.com>
1432
1433         It should be possible for Widget subclasses to control whether transforms affect the frame rect
1434         https://bugs.webkit.org/show_bug.cgi?id=70787
1435
1436         Reviewed by Sam Weinig.
1437
1438         Currently RenderWidget sets the frame rect of it's hosted widget to the bounding box of the transformed
1439         content box rect (unless the Widget is a frame view). It should be possible for Widget subclasses to override
1440         this behavior and have the frame rect set to the absolute content box without any transforms applied.
1441
1442         * platform/Widget.h:
1443         (WebCore::Widget::transformsAffectFrameRect):
1444         Add new member function.
1445
1446         * rendering/RenderWidget.cpp:
1447         (WebCore::RenderWidget::updateWidgetGeometry):
1448         Move shared code from setWidget and updateWidgetPosition out into a new function. If transformsAffectFrameRect returns 
1449         false, just set the frame rect to the absolute content box.
1450
1451         (WebCore::RenderWidget::setWidget):
1452         (WebCore::RenderWidget::updateWidgetPosition):
1453         Call updateWidgetGeometry.
1454
1455         * rendering/RenderWidget.h:
1456
1457 2011-10-24  Arko Saha  <arko@motorola.com>
1458
1459         Microdata: Add itemprop, itemref, itemvalue attributes.
1460         https://bugs.webkit.org/show_bug.cgi?id=69839
1461
1462         Reviewed by Ryosuke Niwa.
1463
1464         Tests: fast/dom/MicroData/itemprop-add-remove-tokens.html
1465                fast/dom/MicroData/itemprop-for-an-element-must-be-correct.html
1466                fast/dom/MicroData/itemprop-must-be-read-only.html
1467                fast/dom/MicroData/itemprop-reflected-by-itemProp-property.html
1468                fast/dom/MicroData/itemref-add-remove-tokens.html
1469                fast/dom/MicroData/itemref-attribute-reflected-by-itemRef-property.html
1470                fast/dom/MicroData/itemref-for-an-element-must-be-correct.html
1471                fast/dom/MicroData/itemref-must-be-read-only.html
1472                fast/dom/MicroData/itemvalue-reflects-data-attr-on-object-element.html
1473                fast/dom/MicroData/itemvalue-reflects-href-attr.html
1474                fast/dom/MicroData/itemvalue-reflects-src-attribute-on-img-element.html
1475                fast/dom/MicroData/itemvalue-reflects-the-content-attr-on-meta-element.html
1476                fast/dom/MicroData/itemvalue-reflects-the-src-attr.html
1477                fast/dom/MicroData/itemvalue-returns-element-itself.html
1478                fast/dom/MicroData/itemvalue-returns-null.html
1479                fast/dom/MicroData/itemvalue-throws-excpetion-onsetting-001.html
1480                fast/dom/MicroData/itemvalue-throws-excpetion-onsetting-002.html
1481
1482         * CMakeLists.txt:
1483         * GNUmakefile.list.am:
1484         * WebCore.gypi:
1485         * WebCore.pro:
1486         * WebCore.vcproj/WebCore.vcproj:
1487         * bindings/js/JSHTMLElementCustom.cpp:
1488         (WebCore::toJS):
1489         (WebCore::JSHTMLElement::itemValue):
1490         (WebCore::JSHTMLElement::setItemValue):
1491         * bindings/v8/custom/V8HTMLElementCustom.cpp:
1492         (WebCore::toV8Object):
1493         (WebCore::V8HTMLElement::itemValueAccessorGetter):
1494         (WebCore::V8HTMLElement::itemValueAccessorSetter):
1495         * dom/MicroDataItemList.cpp:
1496         * html/HTMLAnchorElement.cpp:
1497         (WebCore::HTMLAnchorElement::itemValueText):
1498         (WebCore::HTMLAnchorElement::setItemValueText):
1499         * html/HTMLAnchorElement.h:
1500         * html/HTMLAreaElement.cpp:
1501         (WebCore::HTMLAreaElement::itemValueText):
1502         (WebCore::HTMLAreaElement::setItemValueText):
1503         * html/HTMLAreaElement.h:
1504         * html/HTMLAttributeNames.in:
1505         * html/HTMLElement.cpp:
1506         (WebCore::HTMLElement::parseMappedAttribute):
1507         (WebCore::HTMLElement::itemProp): Returns element's itemprop content attribute.
1508         (WebCore::HTMLElement::setItemProp): Sets itemprop value on changing elemet's
1509         itemprop attribute.
1510         (WebCore::HTMLElement::itemRef): Returns element's itemref content attribute.
1511         (WebCore::HTMLElement::setItemRef): Sets itemref value on changing elemet's
1512         itemref attribute.
1513         (WebCore::HTMLElement::setItemValue): Sets element's itemvalue. If the element has no
1514         itemprop attribute or if element has an itemscope attribute, it throws INVALID_ACCESS_ERR
1515         exception.
1516         (WebCore::HTMLElement::itemValue): Returns the elements itemvalue.
1517
1518         If the element has no itemprop attribute it returns null.
1519         If the element has an itemscope attribute, it returns the element itself.
1520         If the element is a meta element: It acts as it would if it was reflecting the element's
1521         content content attribute.
1522         If the element is an audio, embed, iframe, img, source, track, or video element: It acts
1523         as it would if it was reflecting the element's src content attribute.
1524         If the element is an a, area, or link element: It act as it would if it was reflecting the
1525         href content attribute.
1526         If the element is an object element: It acts as  it would if it was reflecting the element's
1527         data content attribute.
1528
1529         (WebCore::HTMLElement::itemValueText):
1530         (WebCore::HTMLElement::setItemValueText):
1531         * html/HTMLElement.h:
1532         * html/HTMLElement.idl:
1533         * html/HTMLEmbedElement.cpp:
1534         (WebCore::HTMLEmbedElement::itemValueText):
1535         (WebCore::HTMLEmbedElement::setItemValueText):
1536         * html/HTMLEmbedElement.h:
1537         * html/HTMLIFrameElement.cpp:
1538         (WebCore::HTMLIFrameElement::itemValueText):
1539         (WebCore::HTMLIFrameElement::setItemValueText):
1540         * html/HTMLIFrameElement.h:
1541         * html/HTMLImageElement.cpp:
1542         (WebCore::HTMLImageElement::itemValueText):
1543         (WebCore::HTMLImageElement::setItemValueText):
1544         * html/HTMLImageElement.h:
1545         * html/HTMLLinkElement.cpp:
1546         (WebCore::HTMLLinkElement::itemValueText):
1547         (WebCore::HTMLLinkElement::setItemValueText):
1548         * html/HTMLLinkElement.h:
1549         * html/HTMLMediaElement.cpp:
1550         (WebCore::HTMLMediaElement::itemValueText):
1551         (WebCore::HTMLMediaElement::setItemValueText):
1552         * html/HTMLMediaElement.h:
1553         * html/HTMLMetaElement.cpp:
1554         (WebCore::HTMLMetaElement::itemValueText):
1555         (WebCore::HTMLMetaElement::setItemValueText):
1556         * html/HTMLMetaElement.h:
1557         * html/HTMLObjectElement.cpp:
1558         (WebCore::HTMLObjectElement::itemValueText):
1559         (WebCore::HTMLObjectElement::setItemValueText):
1560         * html/HTMLObjectElement.h:
1561         * html/HTMLSourceElement.cpp:
1562         (WebCore::HTMLSourceElement::itemValueText):
1563         (WebCore::HTMLSourceElement::setItemValueText):
1564         * html/HTMLSourceElement.h:
1565         * html/HTMLTrackElement.cpp:
1566         (WebCore::HTMLTrackElement::itemValueText):
1567         (WebCore::HTMLTrackElement::setItemValueText):
1568         * html/HTMLTrackElement.h:
1569         * html/MicroDataItemValue.cpp: Added.
1570         (WebCore::MicroDataItemValue::MicroDataItemValue):
1571         (WebCore::MicroDataItemValue::createFromString):
1572         (WebCore::MicroDataItemValue::createFromNode):
1573         * html/MicroDataItemValue.h: Added.
1574         (WebCore::MicroDataItemValue::isNode):
1575         (WebCore::MicroDataItemValue::getNode):
1576         (WebCore::MicroDataItemValue::getString):
1577
1578 2011-10-24  Joseph Pecoraro  <joepeck@webkit.org>
1579
1580         Remove unused instance variable
1581         https://bugs.webkit.org/show_bug.cgi?id=70750
1582
1583         Reviewed by Dimitri Glazkov.
1584
1585         * rendering/RenderTextControl.h:
1586
1587 2011-10-24  Nico Weber  <thakis@chromium.org>
1588
1589         [chromium/mac] Fix an ODR violation.
1590         https://bugs.webkit.org/show_bug.cgi?id=70753
1591
1592         Reviewed by Anders Carlsson.
1593
1594         Both ScrollAnimatorNone and ScrollAnimatorMac define ScrollAnimator::create() on OS X.
1595         Remove the unused one.
1596
1597         * WebCore.gyp/WebCore.gyp:
1598
1599 2011-10-24  Tim Horton  <timothy_horton@apple.com>
1600
1601         feColorMatrix doesn't use the correct default "matrix" type when no type attribute is specified
1602         https://bugs.webkit.org/show_bug.cgi?id=70035
1603         <rdar://problem/10280177>
1604
1605         Reviewed by Nikolas Zimmermann.
1606
1607         Make feColorMatrix's type attribute be "matrix" by default.
1608
1609         Test: svg/filters/feColorMatrix-default-type.svg
1610
1611         * svg/SVGFEColorMatrixElement.cpp:
1612         (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
1613
1614 2011-10-24  Joshua Bell  <jsbell@chromium.org>
1615
1616         Unbreak binding generation tests
1617         https://bugs.webkit.org/show_bug.cgi?id=70768
1618
1619         Reviewed by Darin Adler.
1620
1621         Update the expected output of V8 binding tests to match
1622         results c/o https://bugs.webkit.org/show_bug.cgi?id=70065
1623
1624         * bindings/scripts/test/V8/V8TestObj.cpp:
1625         (WebCore::TestObjInternal::idbKeyCallback):
1626
1627 2011-10-21  Nat Duca  <nduca@chromium.org>
1628
1629         [chromium] Add isTraceEventEnabled to PlatformSupport.
1630         https://bugs.webkit.org/show_bug.cgi?id=70618
1631
1632         Reviewed by Darin Fisher.
1633
1634         * platform/chromium/PlatformSupport.h:
1635
1636 2011-10-24  Mihnea Ovidenie  <mihnea@adobe.com>
1637
1638         Use StringBuilder in CSSRuleList::rulesText()/CSSSelectorList::selectorsText()
1639         https://bugs.webkit.org/show_bug.cgi?id=70746
1640
1641         Reviewed by Tony Chang.
1642
1643         Covered by existing tests.
1644
1645         * css/CSSRuleList.cpp:
1646         (WebCore::CSSRuleList::rulesText):
1647         * css/CSSSelectorList.cpp:
1648         (WebCore::CSSSelectorList::selectorsText):
1649         * css/WebKitCSSKeyframesRule.cpp:
1650         (WebCore::WebKitCSSKeyframesRule::cssText): Use CSSRuleList::rulesText() method instead of explicit loop.
1651
1652 2011-10-24  Michael Saboff  <msaboff@apple.com>
1653
1654         WebKit doesn't build with recent changes to libdispatch
1655         https://bugs.webkit.org/show_bug.cgi?id=70737
1656
1657         Added initialization for new WebKitSystemInterface function 
1658         CreateVMPressureDispatchOnMainQueue.  Changed MemoryPressureHandler::install
1659         to use new function.
1660
1661         Reviewed by Geoffrey Garen.
1662
1663         No new tests.  Moved functionality to WebKitSystemInterface.
1664
1665         * WebCore.exp.in:
1666         * platform/mac/MemoryPressureHandlerMac.mm:
1667         (WebCore::MemoryPressureHandler::install):
1668         * platform/mac/WebCoreSystemInterface.h:
1669         * platform/mac/WebCoreSystemInterface.mm:
1670
1671 2011-10-24  Joshua Bell  <jsbell@chromium.org>
1672
1673         IndexedDB: Throw DATA_ERR on invalid keys, remove null key support
1674         https://bugs.webkit.org/show_bug.cgi?id=70065
1675
1676         Reviewed by Tony Chang.
1677
1678         Part 1 of a two-sided commit. Renames IDBKey::NullType to
1679         IDBKey::InvalidType. JS binding yields this type rather
1680         than throwing immediately so the correct exception type can
1681         be raised. Checks for invalid keys added to front-end classes.
1682
1683         * bindings/js/JSIDBKeyCustom.cpp:
1684         (WebCore::toJS):
1685         * bindings/scripts/CodeGeneratorV8.pm:
1686         (TypeCanFailConversion):
1687         * bindings/v8/IDBBindingUtilities.cpp:
1688         (WebCore::createIDBKeyFromValue):
1689         * bindings/v8/custom/V8IDBKeyCustom.cpp:
1690         (WebCore::toV8):
1691         * storage/IDBCursor.cpp:
1692         (WebCore::IDBCursor::continueFunction):
1693         * storage/IDBFactory.cpp:
1694         (WebCore::IDBFactory::cmp):
1695         * storage/IDBIndex.cpp:
1696         (WebCore::IDBIndex::get):
1697         (WebCore::IDBIndex::getKey):
1698         * storage/IDBKey.cpp:
1699         (WebCore::IDBKey::IDBKey):
1700         (WebCore::IDBKey::compare):
1701         * storage/IDBKey.h:
1702         (WebCore::IDBKey::createInvalid):
1703         * storage/IDBKeyRange.cpp:
1704         (WebCore::IDBKeyRange::only):
1705         (WebCore::IDBKeyRange::lowerBound):
1706         (WebCore::IDBKeyRange::upperBound):
1707         (WebCore::IDBKeyRange::bound):
1708         * storage/IDBKeyRange.h:
1709         (WebCore::IDBKeyRange::lowerBound):
1710         (WebCore::IDBKeyRange::upperBound):
1711         (WebCore::IDBKeyRange::bound):
1712         * storage/IDBKeyRange.idl:
1713         * storage/IDBLevelDBCoding.cpp:
1714         (WebCore::IDBLevelDBCoding::encodeIDBKey):
1715         (WebCore::IDBLevelDBCoding::decodeIDBKey):
1716         * storage/IDBObjectStore.cpp:
1717         (WebCore::IDBObjectStore::get):
1718         (WebCore::IDBObjectStore::add):
1719         (WebCore::IDBObjectStore::put):
1720         (WebCore::IDBObjectStore::deleteFunction):
1721         * storage/IDBObjectStoreBackendImpl.cpp:
1722         (WebCore::IDBObjectStoreBackendImpl::put):
1723         (WebCore::IDBObjectStoreBackendImpl::putInternal):
1724         (WebCore::IDBObjectStoreBackendImpl::deleteFunction):
1725         * storage/IDBSQLiteBackingStore.cpp:
1726         (WebCore::whereSyntaxForKey):
1727         (WebCore::bindKeyToQuery):
1728         (WebCore::lowerCursorWhereFragment):
1729         (WebCore::upperCursorWhereFragment):
1730         (WebCore::bindKeyToQueryWithNulls):
1731         (WebCore::keyFromQuery):
1732
1733 2011-10-24  Alok Priyadarshi  <alokp@chromium.org>
1734
1735         [chromium] Make accelerated drawing work with threaded compositing
1736         https://bugs.webkit.org/show_bug.cgi?id=70656
1737
1738         Reviewed by James Robinson.
1739
1740         Make sure that the compositor context is not used outside LayerTextureUpdater::updateTextureRect().
1741         Created a FrameBuffer class that wraps skia gpu canvas and manages GL resources.
1742
1743         * platform/graphics/chromium/ContentLayerChromium.cpp:
1744         (WebCore::ContentLayerChromium::createTextureUpdater):
1745         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp:
1746         (WebCore::FrameBuffer::FrameBuffer::FrameBuffer):
1747         (WebCore::FrameBuffer::FrameBuffer::~FrameBuffer):
1748         (WebCore::FrameBuffer::FrameBuffer::initialize):
1749         (WebCore::LayerTextureUpdaterSkPicture::LayerTextureUpdaterSkPicture):
1750         (WebCore::LayerTextureUpdaterSkPicture::~LayerTextureUpdaterSkPicture):
1751         (WebCore::LayerTextureUpdaterSkPicture::prepareToUpdate):
1752         (WebCore::LayerTextureUpdaterSkPicture::updateTextureRect):
1753         * platform/graphics/chromium/LayerTextureUpdaterCanvas.h:
1754         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
1755         (WebCore::CCLayerTreeHost::initialize):
1756
1757 2011-10-24  Adam Klein  <adamk@chromium.org>
1758
1759         Optimize Node::isInShadowTree to execute in constant-time
1760         https://bugs.webkit.org/show_bug.cgi?id=67686
1761
1762         Reviewed by Dimitri Glazkov.
1763
1764         No expected change in behavior, so no new tests.
1765
1766         * dom/Node.cpp:
1767         (WebCore::Node::isInShadowTree):
1768
1769 2011-10-24  Nat Duca  <nduca@chromium.org>
1770
1771         [chromium] Expose WebThread::postDelayedTask to CCThread
1772         https://bugs.webkit.org/show_bug.cgi?id=70712
1773
1774         Reviewed by James Robinson.
1775
1776         * platform/graphics/chromium/cc/CCThread.h:
1777
1778 2011-10-24  Levi Weintraub  <leviw@chromium.org>
1779
1780         <svg> fails to use explicit width and height inside <html> inside IFRAME
1781         https://bugs.webkit.org/show_bug.cgi?id=64823
1782
1783         Reviewed by Nikolas Zimmermann.
1784
1785         Checking that embedded SVG is in an SVG document before negotiating size
1786         with the host document.
1787
1788         Test: svg/as-object/svg-embedded-in-html-in-iframe.html
1789
1790         * rendering/svg/RenderSVGRoot.cpp:
1791         (WebCore::isEmbeddedThroughFrameContainingSVGDocument):
1792         (WebCore::RenderSVGRoot::computeReplacedLogicalWidth):
1793         (WebCore::RenderSVGRoot::computeReplacedLogicalHeight):
1794
1795 2011-10-24  Rafael Weinstein  <rafaelw@chromium.org>
1796
1797         Node::registeredMutationObserversOfType should be prefixed by "get"
1798         https://bugs.webkit.org/show_bug.cgi?id=70359
1799
1800         Reviewed by Ojan Vafai.
1801
1802         This change renames Node::registeredMutationObserversOfType to
1803         Node::getRegisteredMutationObserversOfType per the WebKit style guide.
1804
1805         No tests needed as the change is only method renaming.
1806
1807         * dom/CharacterData.cpp:
1808         (WebCore::CharacterData::dispatchModifiedEvent):
1809         * dom/ChildListMutationScope.cpp:
1810         (WebCore::MutationAccumulationRouter::MutationAccumulationRouter::incrementScopingLevel):
1811         * dom/Element.cpp:
1812         (WebCore::enqueueAttributesMutationRecord):
1813         * dom/Node.cpp:
1814         (WebCore::Node::getRegisteredMutationObserversOfType):
1815         * dom/Node.h:
1816
1817 2011-10-24  Mark Hahnenberg  <mhahnenberg@apple.com>
1818
1819         Rename static getOwnPropertySlot to getOwnPropertySlotByIndex
1820         https://bugs.webkit.org/show_bug.cgi?id=70271
1821
1822         Reviewed by Darin Adler.
1823
1824         No new tests.
1825
1826         Renaming versions of getOwnPropertySlot that use an unsigned as the property
1827         name to "getOwnPropertySlotByIndex" in preparation for adding them to the 
1828         MethodTable, which requires unique names for each method.
1829
1830         * bindings/js/SerializedScriptValue.cpp:
1831         (WebCore::CloneSerializer::getSparseIndex):
1832         * bindings/scripts/CodeGeneratorJS.pm:
1833         (GenerateHeader):
1834         (GenerateImplementation):
1835         * bridge/runtime_array.cpp:
1836         (JSC::RuntimeArray::getOwnPropertySlotVirtual):
1837         (JSC::RuntimeArray::getOwnPropertySlotByIndex):
1838         * bridge/runtime_array.h:
1839
1840 2011-10-24  Joshua Bell  <jsbell@chromium.org>
1841
1842         IndexedDB add should fail adding an inline and passed key simultaneously
1843         https://bugs.webkit.org/show_bug.cgi?id=58598
1844
1845         Reviewed by Tony Chang.
1846
1847         Test: storage/indexeddb/mozilla/key-requirements-inline-and-passed.html
1848
1849         Implement the spec clause: passing a key into add() or put() when
1850         the object store has a key path ("inline key") is an error.
1851
1852         * storage/IDBObjectStoreBackendImpl.cpp:
1853         (WebCore::IDBObjectStoreBackendImpl::put):
1854
1855 2011-10-24  Simon Fraser  <simon.fraser@apple.com>
1856
1857         Improve debug compositing border colors
1858         https://bugs.webkit.org/show_bug.cgi?id=70742
1859
1860         Reviewed by Dean Jackson.
1861
1862         Improve the appearance of the debug borders used to indicate compositing:
1863         1. Use green for normal layers, orange for tiled layers
1864         2. Make the repaint counter translucent
1865         3. Change the color of the repaint counter to show when accelerated drawing is enabled.
1866
1867         * platform/graphics/GraphicsLayer.cpp:
1868         (WebCore::GraphicsLayer::updateDebugIndicators):
1869         * platform/graphics/mac/WebLayer.mm:
1870         (drawLayerContents):
1871
1872 2011-10-24  Carlos Garcia Campos  <cgarcia@igalia.com>
1873
1874         [GTK] Fix make distcheck build
1875         https://bugs.webkit.org/show_bug.cgi?id=69745
1876
1877         Reviewed by Martin Robinson.
1878
1879         * GNUmakefile.am:
1880         * GNUmakefile.list.am:
1881
1882 2011-10-24  Alexander Pavlov  <apavlov@chromium.org>
1883
1884         Web Inspector: [Styles] Adding a new style rule breaks things
1885         https://bugs.webkit.org/show_bug.cgi?id=70721
1886
1887         Reviewed by Pavel Feldman.
1888
1889         We had used to swap BlankStylePropertiesSection prototype and recently got rid of this hack,
1890         but still had dependencies on the old behavior.
1891
1892         * inspector/front-end/StylesSidebarPane.js:
1893         (WebInspector.StylesSidebarPane.prototype._refreshStyleRules):
1894         (WebInspector.ComputedStylePropertiesSection.prototype.rebuildComputedTrace):
1895         (WebInspector.BlankStylePropertiesSection.prototype.get isBlank):
1896         (WebInspector.BlankStylePropertiesSection.prototype.expand):
1897         (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted.successCallback):
1898         (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted):
1899         (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCancelled):
1900         (WebInspector.BlankStylePropertiesSection.prototype.makeNormal):
1901
1902 2011-10-24  Pavel Feldman  <pfeldman@google.com>
1903
1904         Web Inspector: do not force document loading on reload (should happen on demand).
1905         https://bugs.webkit.org/show_bug.cgi?id=70724
1906
1907         Reviewed by Yury Semikhatsky.
1908
1909         * inspector/front-end/ConsoleMessage.js:
1910         (WebInspector.ConsoleMessageImpl.prototype._formatParameterAsNode):
1911         * inspector/front-end/DOMAgent.js:
1912         (WebInspector.DOMAgent.prototype._documentUpdated):
1913         * inspector/front-end/ElementsPanel.js:
1914         (WebInspector.ElementsPanel.prototype.wasShown):
1915         * inspector/front-end/ElementsTreeOutline.js:
1916         (WebInspector.ElementsTreeOutline.prototype.setVisible):
1917
1918 2011-10-24  Eric Carlson  <eric.carlson@apple.com>
1919
1920         Drop MutableTextTrack and make TextTrack always mutable
1921         https://bugs.webkit.org/show_bug.cgi?id=62890
1922
1923         The MutableTextTrack type was removed from the spec, all text tracks are now mutable.
1924
1925         Reviewed by Sam Weinig.
1926
1927         No new tests needed, the changes just refactor existing code.
1928
1929         * CMakeLists.txt: Remove all traces of MutableTextTrack.
1930         * CodeGenerators.pri: Ditto.
1931         * DerivedSources.cpp: Ditto.
1932         * DerivedSources.make: Ditto.
1933         * GNUmakefile.list.am: Ditto.
1934         * WebCore.gypi: Ditto.
1935         * WebCore.pro: Ditto.
1936         * WebCore.xcodeproj/project.pbxproj: Ditto.
1937         * bindings/gobject/GNUmakefile.am: Ditto.
1938         * bindings/gobject/WebKitHTMLElementWrapperFactory.cpp: Ditto.
1939         * bindings/js/JSBindingsAllInOne.cpp: Ditto.
1940
1941         * bindings/js/JSTextTrackCustom.cpp: Removed.
1942
1943         * html/HTMLMediaElement.cpp:
1944         (WebCore::HTMLMediaElement::addTrack): Return a TextTrack instead of a MutableTextTrack.
1945         * html/HTMLMediaElement.h:
1946         * html/HTMLMediaElement.idl:
1947
1948         * html/LoadableTextTrack.cpp:
1949         (WebCore::LoadableTextTrack::LoadableTextTrack): Return a TextTrack instead of a MutableTextTrack.
1950
1951         * html/MutableTextTrack.cpp: Removed.
1952         * html/MutableTextTrack.h: Removed.
1953         * html/MutableTextTrack.idl: Removed.
1954
1955         * html/TextTrack.cpp:
1956         (WebCore::TextTrack::TextTrack): Remove Type parameter.
1957         (WebCore::TextTrack::addCue): New, moved from MutableTextTrack.
1958         (WebCore::TextTrack::removeCue): Ditto.
1959         (WebCore::TextTrack::newCuesLoaded): Ditto.
1960         (WebCore::TextTrack::fetchNewestCues): Ditto.
1961         * html/TextTrack.h:
1962         (WebCore::TextTrack::create): Remove Type parameter
1963         * html/TextTrack.idl: Add addCue and removeCue.
1964
1965 2011-10-24  Yury Semikhatsky  <yurys@chromium.org>
1966
1967         Web Inspector: allow debugging dedicated worker initialization
1968         https://bugs.webkit.org/show_bug.cgi?id=70723
1969
1970         Now it is possible to pause each new dedicated worker on start. The user
1971         needs to select a checkbox and then each newly created dedicated worker
1972         will be paused on the first statement until the user resumes it explicitely.
1973
1974         Reviewed by Pavel Feldman.
1975
1976         * inspector/Inspector.json: resume command is added. It is similar to GDB's run
1977         command, i.e. worker execution will be paused until explicit "resume" command is
1978         received.
1979         * inspector/InspectorInstrumentation.cpp:
1980         (WebCore::InspectorInstrumentation::shouldPauseDedicatedWorkerOnStartImpl):
1981         * inspector/InspectorInstrumentation.h:
1982         (WebCore::InspectorInstrumentation::shouldPauseDedicatedWorkerOnStart):
1983         * inspector/InspectorRuntimeAgent.cpp:
1984         (WebCore::InspectorRuntimeAgent::resume):
1985         (WebCore::InspectorRuntimeAgent::pauseWorkerContext):
1986         * inspector/InspectorRuntimeAgent.h:
1987         * inspector/InspectorWorkerAgent.cpp:
1988         (WebCore::InspectorWorkerAgent::shouldPauseDedicatedWorkerOnStart): returns true
1989         if the user chose to automatically pause all new workers.
1990         * inspector/InspectorWorkerAgent.h:
1991         * inspector/WorkerInspectorController.cpp:
1992         (WebCore::WorkerInspectorController::resume):
1993         * inspector/front-end/WorkerManager.js:
1994         (WebInspector.WorkerManager.loaded):
1995         (WebInspector.WorkerManager.loadCompleted):
1996         (WebInspector.WorkerManager.prototype._workerCreated):
1997         (WebInspector.WorkerManager.prototype.openWorkerInspector):
1998         (WebInspector.WorkerManager.prototype._openInspectorWindow):
1999         * inspector/front-end/inspector.js:
2000         (WebInspector.loaded):
2001         * workers/Worker.cpp:
2002         (WebCore::Worker::notifyFinished):
2003         * workers/WorkerContextProxy.h:
2004         * workers/WorkerMessagingProxy.cpp:
2005         (WebCore::WorkerMessagingProxy::startWorkerContext): additional flag specifying
2006         worker initial state(paused/not paused) is added to the factory method. The flag
2007         will be carried to the corresponding WorkerThread.
2008         (WebCore::WorkerMessagingProxy::connectToInspector):
2009         * workers/WorkerMessagingProxy.h:
2010
2011 2011-10-21  Nikita Vasilyev  <me@elv1s.ru>
2012
2013         Web Inspector: Make indent configurable
2014         https://bugs.webkit.org/show_bug.cgi?id=69986
2015
2016         Add a setting to choose an indent from "8 spaces", "4 spaces" (default), "2 spaces", or "Tab character".
2017
2018         Reviewed by Pavel Feldman.
2019
2020         * English.lproj/localizedStrings.js:
2021         * inspector/front-end/SettingsScreen.js:
2022         (WebInspector.SettingsScreen):
2023         (WebInspector.SettingsScreen.prototype._createSelectSetting.get p):
2024         (WebInspector.SettingsScreen.prototype._createSelectSetting.changeListener):
2025         * inspector/front-end/TextEditorModel.js:
2026         (WebInspector.TextEditorModel):
2027         * inspector/front-end/TextViewer.js:
2028
2029 2011-10-17  Andrey Kosyakov  <caseq@chromium.org>
2030
2031         Web Inspector: add "Add to Watch" option to context menu on selection in source frame
2032         https://bugs.webkit.org/show_bug.cgi?id=69924
2033
2034         Reviewed by Pavel Feldman.
2035
2036         - added 'Add to Watch' context menu item in scripts panel;
2037         - include both default and custom items into a context menu if selection is present;
2038
2039         * inspector/front-end/ScriptsPanel.js:
2040         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.suggestedFileName):
2041         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.addToWatch):
2042         * inspector/front-end/SourceFrame.js:
2043         (WebInspector.SourceFrame.prototype.populateSelectionContextMenu):
2044         (WebInspector.TextViewerDelegateForSourceFrame.prototype.populateSelectionContextMenu):
2045         (WebInspector.SourceFrameDelegate.prototype.suggestedFileName):
2046         (WebInspector.SourceFrameDelegate.prototype.addToWatch):
2047         * inspector/front-end/TextViewer.js:
2048         (WebInspector.TextViewer.prototype._contextMenu):
2049         (WebInspector.TextViewerDelegate.prototype.populateSelectionContextMenu):
2050         * inspector/front-end/WatchExpressionsSidebarPane.js:
2051         (WebInspector.WatchExpressionsSidebarPane.prototype.addExpression):
2052         (WebInspector.WatchExpressionsSidebarPane.prototype._addButtonClicked):
2053         (WebInspector.WatchExpressionsSection.prototype.addExpression):
2054         (WebInspector.WatchExpressionsSection.prototype.addNewExpressionAndEdit):
2055         * page/ContextMenuController.cpp:
2056         (WebCore::ContextMenuController::showContextMenu):
2057
2058 2011-10-21  Alexander Pavlov  <apavlov@chromium.org>
2059
2060         Web Inspector: Audits hang on pages without img[src] elements
2061         https://bugs.webkit.org/show_bug.cgi?id=70604
2062
2063         Reviewed by Pavel Feldman.
2064
2065         Test: inspector/audits/audits-panel-noimages-functional.html
2066
2067         * inspector/front-end/AuditRules.js:
2068         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.getStyles):
2069
2070 2011-10-24  Deepak Sherveghar  <bpwv64@motorola.com>
2071
2072         [Qt] fast/events/media-focus-in-standalone-media-document.html fails
2073         https://bugs.webkit.org/show_bug.cgi?id=70110
2074
2075         Reviewed by Simon Hausmann.
2076
2077         ExtensionMap should also include media files mapping.
2078
2079         * platform/qt/MIMETypeRegistryQt.cpp: Added media files mapping.
2080
2081 2011-10-24  Pavel Feldman  <pfeldman@google.com>
2082
2083         Not reviewed: [chromium] follow up to 98228 - added missing css.
2084
2085         * WebCore.gypi:
2086
2087 2011-10-24  Pavel Feldman  <pfeldman@chromium.org>
2088
2089         Web Inspector: Make CSS files load upon View demand; split inspector.css into views.
2090         https://bugs.webkit.org/show_bug.cgi?id=70694
2091
2092         Reviewed by Yury Semikhatsky.
2093
2094         * WebCore.gypi:
2095         * WebCore.vcproj/WebCore.vcproj:
2096         * inspector/front-end/AuditsPanel.js:
2097         (WebInspector.AuditsPanel):
2098         * inspector/front-end/DataGrid.js:
2099         (WebInspector.DataGrid):
2100         * inspector/front-end/ElementsPanel.js:
2101         * inspector/front-end/NetworkPanel.js:
2102         (WebInspector.NetworkLogView):
2103         * inspector/front-end/PanelEnablerView.js:
2104         * inspector/front-end/ProfilesPanel.js:
2105         * inspector/front-end/ResourceView.js:
2106         (WebInspector.ResourceView):
2107         * inspector/front-end/ResourcesPanel.js:
2108         * inspector/front-end/ScriptsPanel.js:
2109         * inspector/front-end/TextViewer.js:
2110         * inspector/front-end/TimelinePanel.js:
2111         (WebInspector.TimelinePanel):
2112         * inspector/front-end/WebKit.qrc:
2113         * inspector/front-end/WelcomeView.js:
2114         (WebInspector.WelcomeView):
2115         * inspector/front-end/auditsPanel.css: Renamed from Source/WebCore/inspector/front-end/audits.css.
2116
2117 2011-10-24  Pavel Feldman  <pfeldman@chromium.org>
2118
2119         Web Inspector: make view load CSS files upon show.
2120         https://bugs.webkit.org/show_bug.cgi?id=70696
2121
2122         Reviewed by Yury Semikhatsky.
2123
2124         Test: inspector/view-css.html
2125
2126         * inspector/front-end/View.js:
2127         (WebInspector.View):
2128         (WebInspector.View.prototype._callOnVisibleChildren):
2129         (WebInspector.View.prototype._processWillShow):
2130         (WebInspector.View.prototype._processWasShown):
2131         (WebInspector.View.prototype._processWillHide):
2132         (WebInspector.View.prototype._processWasHidden):
2133         (WebInspector.View.prototype._processOnResize):
2134         (WebInspector.View.prototype.show):
2135         (WebInspector.View.prototype.detach):
2136         (WebInspector.View.prototype.registerRequiredCSS):
2137         (WebInspector.View.prototype._loadCSSIfNeeded):
2138         (WebInspector.View.prototype._doLoadCSS):
2139         (WebInspector.View.prototype._disableCSSIfNeeded):
2140         (WebInspector.View.prototype._doUnloadCSS):
2141
2142 2011-10-24  Pavel Feldman  <pfeldman@chromium.org>
2143
2144         Web Inspector: make DataGrid a view
2145         https://bugs.webkit.org/show_bug.cgi?id=70695
2146
2147         Reviewed by Yury Semikhatsky.
2148
2149         * inspector/front-end/ApplicationCacheItemsView.js:
2150         (WebInspector.ApplicationCacheItemsView.prototype._createDataGrid):
2151         * inspector/front-end/CookieItemsView.js:
2152         (WebInspector.CookieItemsView.prototype._updateWithCookies):
2153         (WebInspector.SimpleCookiesTable):
2154         (WebInspector.SimpleCookiesTable.prototype.setCookies):
2155         * inspector/front-end/CookiesTable.js:
2156         (WebInspector.CookiesTable):
2157         * inspector/front-end/DOMStorageItemsView.js:
2158         (WebInspector.DOMStorageItemsView.prototype._showDOMStorageEntries):
2159         * inspector/front-end/DataGrid.js:
2160         (WebInspector.DataGrid):
2161         (WebInspector.DataGrid.prototype.onResize):
2162         * inspector/front-end/DatabaseQueryView.js:
2163         (WebInspector.DatabaseQueryView.prototype._queryFinished):
2164         (WebInspector.DatabaseQueryView.prototype._queryError):
2165         (WebInspector.DatabaseQueryView.prototype._appendViewQueryResult):
2166         (WebInspector.DatabaseQueryView.prototype._appendErrorQueryResult):
2167         (WebInspector.DatabaseQueryView.prototype._appendQueryResult):
2168         * inspector/front-end/DatabaseTableView.js:
2169         (WebInspector.DatabaseTableView.prototype._queryFinished):
2170         * inspector/front-end/DetailedHeapshotView.js:
2171         (WebInspector.DetailedHeapshotView.prototype.wasShown.profileCallback2):
2172         (WebInspector.DetailedHeapshotView.prototype.wasShown):
2173         (WebInspector.DetailedHeapshotView.prototype.onResize):
2174         * inspector/front-end/NetworkPanel.js:
2175         (WebInspector.NetworkLogView.prototype.onResize):
2176         (WebInspector.NetworkLogView.prototype._createTable):
2177         * inspector/front-end/ProfileView.js:
2178         * inspector/front-end/ResourceCookiesView.js:
2179         (WebInspector.ResourceCookiesView.prototype._buildCookiesTable):
2180         * inspector/front-end/ResourceView.js:
2181         (WebInspector.ResourceView):
2182
2183 2011-10-24  Yosifumi Inoue  <yosin@chromium.org>
2184
2185         [Forms] Setting defaultValue should hide an input placeholder.
2186         https://bugs.webkit.org/show_bug.cgi?id=70586
2187
2188         Reviewed by Kent Tamura.
2189
2190         Tests: fast/forms/placeholder-and-default-value-expected.html
2191                fast/forms/placeholder-and-default-value.html
2192
2193         When input element has default value, we should not display
2194         placeholder. Changing default value should tell rendering engine about
2195         changing display of input element.
2196
2197         * html/HTMLInputElement.cpp:
2198         (WebCore::HTMLInputElement::parseMappedAttribute): Calls updatePlaceholderVisibility for valueAttr if it doesn't have dirty value.
2199
2200 2011-10-23  Darin Adler  <darin@apple.com>
2201
2202         Eliminate OptionElement (second and final part)
2203         https://bugs.webkit.org/show_bug.cgi?id=70710
2204
2205         Reviewed by Kent Tamura.
2206
2207         * CMakeLists.txt: Removed OptionElement.h and OptionElement.cpp.
2208         * GNUmakefile.list.am: Ditto.
2209         * WebCore.gypi: Ditto.
2210         * WebCore.pro: Ditto.
2211         * WebCore.vcproj/WebCore.vcproj: Ditto.
2212         * WebCore.xcodeproj/project.pbxproj: Ditto.
2213         * dom/DOMAllInOne.cpp: Ditto.
2214
2215         * dom/OptionElement.cpp: Removed.
2216         * dom/OptionElement.h: Removed.
2217
2218         * html/HTMLSelectElement.cpp:
2219         (WebCore::HTMLSelectElement::saveLastSelection): Eliminate use of the
2220         toOptionElement function. Use hasTagName and toHTMLOptionElement instead.
2221         (WebCore::HTMLSelectElement::setActiveSelectionAnchorIndex): Ditto.
2222         (WebCore::HTMLSelectElement::updateListBoxSelection): Ditto.
2223         (WebCore::HTMLSelectElement::listBoxOnChange): Ditto.
2224         (WebCore::HTMLSelectElement::recalcListItems): Ditto.
2225         (WebCore::HTMLSelectElement::selectedIndex): Ditto.
2226         (WebCore::HTMLSelectElement::setSelectedIndex): Ditto.
2227         (WebCore::HTMLSelectElement::deselectItemsWithoutValidation): Ditto.
2228         (WebCore::HTMLSelectElement::saveFormControlState): Ditto.
2229         (WebCore::HTMLSelectElement::restoreFormControlState): Ditto.
2230         (WebCore::HTMLSelectElement::appendFormData): Ditto.
2231         (WebCore::HTMLSelectElement::reset): Ditto.
2232         (WebCore::HTMLSelectElement::updateSelectedState): Ditto.
2233         (WebCore::HTMLSelectElement::lastSelectedListIndex): Ditto.
2234         (WebCore::HTMLSelectElement::typeAheadFind): Ditto.
2235         (WebCore::HTMLSelectElement::accessKeySetSelectedIndex): Ditto.
2236
2237         * html/HTMLSelectElement.h: Changed the argument type of the
2238         deselectItemsWithoutValidation function to HTMLElement* since that's
2239         the type of an item in our items vector now.
2240
2241 2011-10-23  Yuzo Fujishima  <yuzo@google.com>
2242
2243         [chromium] Attempt to fix compilation error for Chromium OS.
2244
2245         Unreviewed.
2246
2247         * mediastream/MediaStreamTrack.cpp:
2248         (WebCore::MediaStreamTrack::kind):
2249
2250 2011-10-23  Adam Barth  <abarth@webkit.org>
2251
2252         <img crossorigin> should fail to load when CORS check fails
2253         https://bugs.webkit.org/show_bug.cgi?id=69732
2254
2255         Reviewed by Darin Adler.
2256
2257         When loading an image with the crossorigin attribute, the spec says
2258         that we're not supposed to load the image if the CORS check fails.
2259         This "fails fast" behavior is intended to help developers understand
2260         whether they've configured CORS correctly (instead of only catching the
2261         error later when trying to read back the canvas).
2262
2263         Our new behavior matches the spec and Firefox.
2264
2265         Test: http/tests/security/img-with-failed-cors-check-fails-to-load.html
2266
2267         * loader/ImageLoader.cpp:
2268         (WebCore::ImageLoader::notifyFinished):
2269
2270 2011-10-23  Noel Gordon  <noel.gordon@gmail.com>
2271
2272         [chromium] Remove GeolocationServiceGtk.{h,cpp} from the gyp projects
2273         https://bugs.webkit.org/show_bug.cgi?id=70702
2274
2275         Reviewed by Kent Tamura.
2276
2277         platform/gtk/GeolocationServiceGtk.{h,cpp} were removed in r97746, so
2278         remove references to these files from the gyp files.
2279
2280         * WebCore.gypi:
2281
2282 2011-10-23  Andreas Kling  <kling@webkit.org>
2283
2284         Move StyleSheet::addSubresourceStyleURLs() to CSSStyleSheet.
2285         https://bugs.webkit.org/show_bug.cgi?id=70690
2286
2287         Reviewed by Antti Koivisto.
2288
2289         This method isn't part of the StyleSheet DOM interface, nor is it used by
2290         XSLStyleSheet, so move it down to CSSStyleSheet and make it non-virtual.
2291         Also remove some nearby unneeded casts from CSSStyleSheet* to StyleSheet*.
2292
2293         * css/CSSStyleSheet.h:
2294         * css/StyleSheet.h:
2295         * html/HTMLLinkElement.cpp:
2296         (WebCore::HTMLLinkElement::isLoading):
2297         (WebCore::HTMLLinkElement::addSubresourceAttributeURLs):
2298         * html/HTMLStyleElement.cpp:
2299         (WebCore::HTMLStyleElement::addSubresourceAttributeURLs):
2300         (WebCore::HTMLStyleElement::disabled):
2301         (WebCore::HTMLStyleElement::setDisabled):
2302
2303 2011-10-23  Andreas Kling  <kling@webkit.org>
2304
2305         Remove style sheet constructors that take a style sheet parent.
2306         https://bugs.webkit.org/show_bug.cgi?id=70692
2307
2308         Reviewed by Antti Koivisto.
2309
2310         Style sheets are never directly parented by other style sheets, they always
2311         go via a rule (such as @import.)
2312
2313         * css/CSSStyleSheet.cpp:
2314         * css/CSSStyleSheet.h:
2315         (WebCore::CSSStyleSheet::create):
2316         * css/StyleSheet.cpp:
2317         * css/StyleSheet.h:
2318
2319 2011-10-23  Mark Hahnenberg  <mhahnenberg@apple.com>
2320
2321         Add deleteProperty to the MethodTable
2322         https://bugs.webkit.org/show_bug.cgi?id=70162
2323
2324         Reviewed by Sam Weinig.
2325
2326         No new tests.
2327
2328         * WebCore.exp.in:
2329
2330 2011-10-23  Adam Barth  <abarth@webkit.org>
2331
2332         Update baselines for run-bindings-tests.
2333
2334         * bindings/scripts/test/JS/JSTestInterface.cpp:
2335         * bindings/scripts/test/JS/JSTestInterface.h:
2336         * bindings/scripts/test/JS/JSTestObj.cpp:
2337
2338 2011-10-23  Mark Hahnenberg  <mhahnenberg@apple.com>
2339
2340         Remove getConstructDataVirtual
2341         https://bugs.webkit.org/show_bug.cgi?id=70638
2342
2343         Reviewed by Darin Adler.
2344
2345         No new tests.
2346
2347         Removed all declarations and definitions of getConstructDataVirtual.
2348         Also replaced all call sites to getConstructDataVirtual with a 
2349         corresponding lookup in the MethodTable.
2350
2351         * WebCore.exp.in:
2352         * bindings/js/JSAudioConstructor.cpp:
2353         * bindings/js/JSAudioConstructor.h:
2354         * bindings/js/JSImageConstructor.cpp:
2355         * bindings/js/JSImageConstructor.h:
2356         * bindings/js/JSOptionConstructor.cpp:
2357         * bindings/js/JSOptionConstructor.h:
2358         * bindings/js/ScriptFunctionCall.cpp:
2359         (WebCore::ScriptFunctionCall::construct):
2360         * bindings/scripts/CodeGeneratorJS.pm:
2361         (GenerateConstructorDeclaration):
2362         (GenerateConstructorDefinition):
2363         * bridge/runtime_object.cpp:
2364         * bridge/runtime_object.h:
2365
2366 2011-10-22  Geoffrey Garen  <ggaren@apple.com>
2367
2368         Separated string lifetime bits from character buffer state bits
2369         https://bugs.webkit.org/show_bug.cgi?id=70673
2370
2371         Reviewed by Anders Carlsson.
2372
2373         * bindings/scripts/CodeGeneratorJS.pm:
2374         (GenerateHashValue): Updated for string hashing changes in JavaScriptCore.
2375
2376 2011-10-22  Pratik Solanki  <psolanki@apple.com>
2377
2378         HTTPBodyStream in NSURLRequest gets lost when using CFNetwork loader
2379         https://bugs.webkit.org/show_bug.cgi?id=70583
2380         <rdar://problem/10281227>
2381
2382         Reviewed by Darin Adler.
2383
2384         Call WebCore::setHTTPBody() only if we actually have a FormData. Unconditionally calling it
2385         results in us passing 0 to wkCFURLRequestSetHTTPRequestBodyParts() which resets any input
2386         stream specified by the user on the NSURLRequest. This code matches the behavior in the
2387         Foundation version of doUpdatePlatformRequest().
2388
2389         * platform/network/cf/ResourceRequestCFNet.cpp:
2390         (WebCore::ResourceRequest::doUpdatePlatformRequest):
2391
2392 2011-10-22  Adam Bergkvist  <adam.bergkvist@ericsson.com>
2393
2394         Move all MediaStream and PeerConnection related non-platform files to WebCore/mediastream
2395         https://bugs.webkit.org/show_bug.cgi?id=70233
2396
2397         Reviewed by Adam Barth.
2398
2399         Removed affected files from build systems that don't have a MEDIA_STREAM build flag.
2400
2401         No new tests since we're just moving files.
2402
2403         * CMakeLists.txt:
2404         * CodeGenerators.pri:
2405         * DerivedSources.cpp:
2406         * DerivedSources.make:
2407         * GNUmakefile.am:
2408         * GNUmakefile.list.am:
2409         * UseJSC.cmake:
2410         * WebCore.gyp/WebCore.gyp:
2411         * WebCore.gypi:
2412         * WebCore.pro:
2413         * WebCore.vcproj/WebCore.vcproj:
2414         * WebCore.xcodeproj/project.pbxproj:
2415         * bindings/js/JSBindingsAllInOne.cpp:
2416         * dom/DOMAllInOne.cpp:
2417         * dom/DispatchTask.h: Removed unused file.
2418         * dom/ScriptExecutionContext.cpp:
2419         * mediastream/LocalMediaStream.cpp: Renamed from Source/WebCore/dom/LocalMediaStream.cpp.
2420         (WebCore::LocalMediaStream::create):
2421         (WebCore::LocalMediaStream::LocalMediaStream):
2422         (WebCore::LocalMediaStream::stop):
2423         (WebCore::LocalMediaStream::stopTimerFired):
2424         (WebCore::LocalMediaStream::~LocalMediaStream):
2425         (WebCore::LocalMediaStream::toLocalMediaStream):
2426         * mediastream/LocalMediaStream.h: Renamed from Source/WebCore/dom/LocalMediaStream.h.
2427         * mediastream/LocalMediaStream.idl: Renamed from Source/WebCore/dom/LocalMediaStream.idl.
2428         * mediastream/MediaStream.cpp: Renamed from Source/WebCore/dom/MediaStream.cpp.
2429         (WebCore::MediaStream::create):
2430         (WebCore::MediaStream::MediaStream):
2431         (WebCore::MediaStream::~MediaStream):
2432         (WebCore::MediaStream::readyState):
2433         (WebCore::MediaStream::toMediaStream):
2434         (WebCore::MediaStream::streamEnded):
2435         (WebCore::MediaStream::scriptExecutionContext):
2436         (WebCore::MediaStream::eventTargetData):
2437         (WebCore::MediaStream::ensureEventTargetData):
2438         * mediastream/MediaStream.h: Renamed from Source/WebCore/dom/MediaStream.h.
2439         (WebCore::MediaStream::label):
2440         (WebCore::MediaStream::tracks):
2441         (WebCore::MediaStream::descriptor):
2442         (WebCore::MediaStream::refEventTarget):
2443         (WebCore::MediaStream::derefEventTarget):
2444         * mediastream/MediaStream.idl: Renamed from Source/WebCore/dom/MediaStream.idl.
2445         * mediastream/MediaStreamClient.h: Renamed from Source/WebCore/page/MediaStreamClient.h.
2446         (WebCore::MediaStreamClient::~MediaStreamClient):
2447         * mediastream/MediaStreamController.cpp: Renamed from Source/WebCore/page/MediaStreamController.cpp.
2448         (WebCore::MediaStreamController::Request::Request):
2449         (WebCore::MediaStreamController::Request::localId):
2450         (WebCore::MediaStreamController::Request::frameController):
2451         (WebCore::MediaStreamController::MediaStreamController):
2452         (WebCore::MediaStreamController::~MediaStreamController):
2453         (WebCore::MediaStreamController::isClientAvailable):
2454         (WebCore::MediaStreamController::unregisterFrameController):
2455         (WebCore::MediaStreamController::registerRequest):
2456         (WebCore::MediaStreamController::generateStream):
2457         (WebCore::MediaStreamController::streamGenerated):
2458         (WebCore::MediaStreamController::streamGenerationFailed):
2459         * mediastream/MediaStreamController.h: Renamed from Source/WebCore/page/MediaStreamController.h.
2460         * mediastream/MediaStreamEvent.cpp: Renamed from Source/WebCore/p2p/MediaStreamEvent.cpp.
2461         (WebCore::MediaStreamEvent::create):
2462         (WebCore::MediaStreamEvent::MediaStreamEvent):
2463         (WebCore::MediaStreamEvent::~MediaStreamEvent):
2464         (WebCore::MediaStreamEvent::initMediaStreamEvent):
2465         (WebCore::MediaStreamEvent::stream):
2466         * mediastream/MediaStreamEvent.h: Renamed from Source/WebCore/p2p/MediaStreamEvent.h.
2467         (WebCore::MediaStreamEvent::isMediaStreamEvent):
2468         * mediastream/MediaStreamEvent.idl: Renamed from Source/WebCore/p2p/MediaStreamEvent.idl.
2469         * mediastream/MediaStreamFrameController.cpp: Renamed from Source/WebCore/page/MediaStreamFrameController.cpp.
2470         (WebCore::MediaStreamFrameController::Request::~Request):
2471         (WebCore::MediaStreamFrameController::Request::scriptExecutionContext):
2472         (WebCore::MediaStreamFrameController::Request::isGenerateStreamRequest):
2473         (WebCore::MediaStreamFrameController::Request::Request):
2474         (WebCore::MediaStreamFrameController::GenerateStreamRequest::create):
2475         (WebCore::MediaStreamFrameController::GenerateStreamRequest::~GenerateStreamRequest):
2476         (WebCore::MediaStreamFrameController::GenerateStreamRequest::isGenerateStreamRequest):
2477         (WebCore::MediaStreamFrameController::GenerateStreamRequest::abort):
2478         (WebCore::MediaStreamFrameController::GenerateStreamRequest::successCallback):
2479         (WebCore::MediaStreamFrameController::GenerateStreamRequest::errorCallback):
2480         (WebCore::MediaStreamFrameController::GenerateStreamRequest::GenerateStreamRequest):
2481         (WebCore::MediaStreamFrameController::RequestMap::abort):
2482         (WebCore::MediaStreamFrameController::RequestMap::abortAll):
2483         (WebCore::MediaStreamFrameController::MediaStreamFrameController):
2484         (WebCore::MediaStreamFrameController::~MediaStreamFrameController):
2485         (WebCore::MediaStreamFrameController::securityOrigin):
2486         (WebCore::MediaStreamFrameController::scriptExecutionContext):
2487         (WebCore::MediaStreamFrameController::pageController):
2488         (WebCore::MediaStreamFrameController::enterDetachedState):
2489         (WebCore::MediaStreamFrameController::isClientAvailable):
2490         (WebCore::MediaStreamFrameController::disconnectPage):
2491         (WebCore::MediaStreamFrameController::disconnectFrame):
2492         (WebCore::MediaStreamFrameController::transferToNewPage):
2493         (WebCore::MediaStreamFrameController::parseGenerateStreamOptions):
2494         (WebCore::MediaStreamFrameController::generateStream):
2495         (WebCore::MediaStreamFrameController::streamGenerated):
2496         (WebCore::MediaStreamFrameController::streamGenerationFailed):
2497         * mediastream/MediaStreamFrameController.h: Renamed from Source/WebCore/page/MediaStreamFrameController.h.
2498         (WebCore::MediaStreamFrameController::IdGenerator::IdGenerator):
2499         (WebCore::MediaStreamFrameController::IdGenerator::getNextId):
2500         * mediastream/MediaStreamList.cpp: Renamed from Source/WebCore/dom/MediaStreamList.cpp.
2501         (WebCore::MediaStreamList::create):
2502         (WebCore::MediaStreamList::MediaStreamList):
2503         (WebCore::MediaStreamList::~MediaStreamList):
2504         (WebCore::MediaStreamList::length):
2505         (WebCore::MediaStreamList::item):
2506         (WebCore::MediaStreamList::append):
2507         (WebCore::MediaStreamList::remove):
2508         (WebCore::MediaStreamList::contains):
2509         * mediastream/MediaStreamList.h: Renamed from Source/WebCore/dom/MediaStreamList.h.
2510         * mediastream/MediaStreamList.idl: Renamed from Source/WebCore/dom/MediaStreamList.idl.
2511         * mediastream/MediaStreamRegistry.cpp: Renamed from Source/WebCore/platform/MediaStreamRegistry.cpp.
2512         (WebCore::MediaStreamRegistry::registry):
2513         (WebCore::MediaStreamRegistry::registerMediaStreamURL):
2514         (WebCore::MediaStreamRegistry::unregisterMediaStreamURL):
2515         (WebCore::MediaStreamRegistry::mediaStream):
2516         * mediastream/MediaStreamRegistry.h: Renamed from Source/WebCore/platform/MediaStreamRegistry.h.
2517         * mediastream/MediaStreamTrack.cpp: Renamed from Source/WebCore/dom/MediaStreamTrack.cpp.
2518         (WebCore::MediaStreamTrack::create):
2519         (WebCore::MediaStreamTrack::MediaStreamTrack):
2520         (WebCore::MediaStreamTrack::~MediaStreamTrack):
2521         (WebCore::MediaStreamTrack::kind):
2522         (WebCore::MediaStreamTrack::label):
2523         (WebCore::MediaStreamTrack::enabled):
2524         (WebCore::MediaStreamTrack::setEnabled):
2525         * mediastream/MediaStreamTrack.h: Renamed from Source/WebCore/dom/MediaStreamTrack.h.
2526         * mediastream/MediaStreamTrack.idl: Renamed from Source/WebCore/dom/MediaStreamTrack.idl.
2527         * mediastream/MediaStreamTrackList.cpp: Renamed from Source/WebCore/dom/MediaStreamTrackList.cpp.
2528         (WebCore::MediaStreamTrackList::create):
2529         (WebCore::MediaStreamTrackList::MediaStreamTrackList):
2530         (WebCore::MediaStreamTrackList::~MediaStreamTrackList):
2531         (WebCore::MediaStreamTrackList::length):
2532         (WebCore::MediaStreamTrackList::item):
2533         * mediastream/MediaStreamTrackList.h: Renamed from Source/WebCore/dom/MediaStreamTrackList.h.
2534         * mediastream/MediaStreamTrackList.idl: Renamed from Source/WebCore/dom/MediaStreamTrackList.idl.
2535         * mediastream/PeerConnection.cpp: Renamed from Source/WebCore/p2p/PeerConnection.cpp.
2536         (WebCore::PeerConnection::create):
2537         (WebCore::PeerConnection::PeerConnection):
2538         (WebCore::PeerConnection::~PeerConnection):
2539         (WebCore::PeerConnection::processSignalingMessage):
2540         (WebCore::PeerConnection::readyState):
2541         (WebCore::PeerConnection::send):
2542         (WebCore::PeerConnection::addStream):
2543         (WebCore::PeerConnection::removeStream):
2544         (WebCore::PeerConnection::localStreams):
2545         (WebCore::PeerConnection::remoteStreams):
2546         (WebCore::PeerConnection::close):
2547         (WebCore::PeerConnection::iceProcessingCompleted):
2548         (WebCore::PeerConnection::sdpGenerated):
2549         (WebCore::PeerConnection::dataStreamMessageReceived):
2550         (WebCore::PeerConnection::remoteStreamAdded):
2551         (WebCore::PeerConnection::remoteStreamRemoved):
2552         (WebCore::PeerConnection::toPeerConnection):
2553         (WebCore::PeerConnection::scriptExecutionContext):
2554         (WebCore::PeerConnection::stop):
2555         (WebCore::PeerConnection::eventTargetData):
2556         (WebCore::PeerConnection::ensureEventTargetData):
2557         (WebCore::PeerConnection::scheduleInitialNegotiation):
2558         (WebCore::PeerConnection::initialNegotiationTimerFired):
2559         (WebCore::PeerConnection::ensureStreamChangeScheduled):
2560         (WebCore::PeerConnection::streamChangeTimerFired):
2561         (WebCore::PeerConnection::scheduleReadyStateChange):
2562         (WebCore::PeerConnection::readyStateChangeTimerFired):
2563         (WebCore::PeerConnection::changeReadyState):
2564         * mediastream/PeerConnection.h: Renamed from Source/WebCore/p2p/PeerConnection.h.
2565         (WebCore::PeerConnection::refEventTarget):
2566         (WebCore::PeerConnection::derefEventTarget):
2567         * mediastream/PeerConnection.idl: Renamed from Source/WebCore/p2p/PeerConnection.idl.
2568         * mediastream/SignalingCallback.h: Renamed from Source/WebCore/p2p/SignalingCallback.h.
2569         (WebCore::SignalingCallback::~SignalingCallback):
2570         * mediastream/SignalingCallback.idl: Renamed from Source/WebCore/p2p/SignalingCallback.idl.
2571         * page/Frame.cpp:
2572         * page/Navigator.cpp:
2573         * page/Page.cpp:
2574
2575 2011-10-20  Pavel Feldman  <pfeldman@google.com>
2576
2577         Web Inspector: get rid of View::hide, View::set visible, View::attach,
2578         View::set visible.
2579         https://bugs.webkit.org/show_bug.cgi?id=70523
2580
2581         This change also introduces assetions that forces view attach / detach operations
2582         to be performed explicitly.
2583
2584         Reviewed by Yury Semikhatsky.
2585
2586         * inspector/front-end/ApplicationCacheItemsView.js:
2587         (WebInspector.ApplicationCacheItemsView.prototype.wasShown):
2588         (WebInspector.ApplicationCacheItemsView.prototype.willHide):
2589         (WebInspector.ApplicationCacheItemsView.prototype._updateCallback):
2590         * inspector/front-end/AuditsPanel.js:
2591         (WebInspector.AuditsPanel.prototype.wasShown):
2592         * inspector/front-end/ConsolePanel.js:
2593         (WebInspector.ConsolePanel.prototype.wasShown):
2594         (WebInspector.ConsolePanel.prototype.willHide):
2595         * inspector/front-end/ConsoleView.js:
2596         (WebInspector.ConsoleView.prototype.wasShown):
2597         * inspector/front-end/CookieItemsView.js:
2598         (WebInspector.CookieItemsView.prototype.wasShown):
2599         (WebInspector.CookieItemsView.prototype.willHide):
2600         (WebInspector.CookieItemsView.prototype._updateWithCookies):
2601         * inspector/front-end/DOMStorageItemsView.js:
2602         (WebInspector.DOMStorageItemsView.prototype.wasShown):
2603         (WebInspector.DOMStorageItemsView.prototype.willHide):
2604         * inspector/front-end/DatabaseQueryView.js:
2605         * inspector/front-end/DatabaseTableView.js:
2606         (WebInspector.DatabaseTableView.prototype.wasShown):
2607         * inspector/front-end/DetailedHeapshotView.js:
2608         (WebInspector.DetailedHeapshotView.prototype.willHide):
2609         (WebInspector.DetailedHeapshotView.prototype._changeView):
2610         * inspector/front-end/Drawer.js:
2611         (WebInspector.Drawer.prototype.hide):
2612         * inspector/front-end/ElementsPanel.js:
2613         (WebInspector.ElementsPanel.prototype.wasShown):
2614         (WebInspector.ElementsPanel.prototype.willHide):
2615         * inspector/front-end/EmptyView.js:
2616         (WebInspector.EmptyView.prototype.wasShown):
2617         * inspector/front-end/FontView.js:
2618         (WebInspector.FontView.prototype.wasShown):
2619         * inspector/front-end/IFrameView.js:
2620         (WebInspector.IFrameView):
2621         * inspector/front-end/ImageView.js:
2622         (WebInspector.ImageView.prototype.wasShown):
2623         * inspector/front-end/NetworkItemView.js:
2624         (WebInspector.NetworkItemView.prototype.wasShown):
2625         (WebInspector.ResourceContentView.prototype.wasShown):
2626         * inspector/front-end/NetworkPanel.js:
2627         (WebInspector.NetworkLogView.prototype.wasShown):
2628         (WebInspector.NetworkLogView.prototype.willHide):
2629         (WebInspector.NetworkPanel.prototype.wasShown):
2630         * inspector/front-end/Panel.js:
2631         (WebInspector.Panel):
2632         (WebInspector.Panel.prototype.show):
2633         (WebInspector.Panel.prototype.wasShown):
2634         (WebInspector.Panel.prototype.willHide):
2635         * inspector/front-end/PanelEnablerView.js:
2636         * inspector/front-end/ProfileView.js:
2637         (WebInspector.CPUProfileView.prototype.willHide):
2638         * inspector/front-end/ProfilesPanel.js:
2639         (WebInspector.ProfilesPanel.prototype.wasShown):
2640         (WebInspector.ProfilesPanel.prototype._addProfileHeader):
2641         (WebInspector.ProfilesPanel.prototype._updateInterface):
2642         (WebInspector.ProfilesPanel.prototype._enableDetailedHeapProfiles):
2643         * inspector/front-end/ResourceCookiesView.js:
2644         (WebInspector.ResourceCookiesView.prototype.wasShown):
2645         * inspector/front-end/ResourceHTMLView.js:
2646         (WebInspector.ResourceHTMLView.prototype.wasShown):
2647         (WebInspector.ResourceHTMLView.prototype.willHide):
2648         * inspector/front-end/ResourceJSONView.js:
2649         (WebInspector.ResourceJSONView.parseJSON.WebInspector.ResourceJSONView.prototype.wasShown):
2650         * inspector/front-end/ResourceTimingView.js:
2651         (WebInspector.ResourceTimingView.prototype.wasShown):
2652         * inspector/front-end/ResourcesPanel.js:
2653         (WebInspector.ResourcesPanel.prototype.wasShown):
2654         * inspector/front-end/ScriptsPanel.js:
2655         (WebInspector.ScriptsPanel.prototype.wasShown):
2656         (WebInspector.ScriptsPanel.prototype._updateDebuggerButtons):
2657         * inspector/front-end/SourceFrame.js:
2658         (WebInspector.SourceFrame.prototype.wasShown):
2659         * inspector/front-end/TimelinePanel.js:
2660         (WebInspector.TimelinePanel.prototype.wasShown):
2661         (WebInspector.TimelinePanel.prototype.willHide):
2662         * inspector/front-end/View.js:
2663         (WebInspector.View):
2664         (WebInspector.View.prototype.get visible):
2665         (WebInspector.View.prototype.setHideOnDetach):
2666         (WebInspector.View.prototype._wasShown):
2667         (WebInspector.View.prototype._willHide):
2668         (WebInspector.View.prototype._onResize):
2669         (WebInspector.View.prototype.wasShown):
2670         (WebInspector.View.prototype.willHide):
2671         (WebInspector.View.prototype.onResize):
2672         (WebInspector.View.prototype.show):
2673         (WebInspector.View.prototype.detach):
2674         (WebInspector.View.prototype.doResize):
2675         (WebInspector.View.prototype.dispatchToSelfAndChildren):
2676         (WebInspector.View.prototype.dispatchToChildren):
2677         (WebInspector.View.prototype._handleInsertedIntoDocument):
2678
2679 2011-10-22  Kent Tamura  <tkent@chromium.org>
2680
2681         REGRESSION(r92480): Passing uninitialized variable in HTMLElement::calculateAndAdjustDirectionality()
2682         https://bugs.webkit.org/show_bug.cgi?id=70582
2683
2684         Reviewed by Darin Adler.
2685
2686         No new tests. It's very hard to make a reliable test.
2687
2688         * html/HTMLElement.cpp:
2689         (WebCore::HTMLElement::directionality):
2690         Clear *strongDirectionalityTextNode even if hasStrongDirectionality is false.
2691
2692 2011-10-21  Dan Bernstein  <mitz@apple.com>
2693
2694         Caret is drawn in the wrong place in multi-column blocks
2695         https://bugs.webkit.org/show_bug.cgi?id=70662
2696
2697         Reviewed by Gavin Barraclough.
2698
2699         * manual-tests/caret-in-columns.html: Added.
2700         * rendering/RenderBlock.cpp:
2701         (WebCore::RenderBlock::paintCaret): Removed the call to offsetForContents(). That function takes
2702         a point in local coordinates, whereas this function was applying it to a point in painting root
2703         coordinates. The desired effect was only to undo the scroll adjustment done by the caller,
2704         paintObject().
2705         (WebCore::RenderBlock::paintObject): Pass the original, rather than scroll-adjusted, paint offset
2706         to paintCaret().
2707
2708 2011-10-21  Nat Duca  <nduca@chromium.org>
2709
2710         [chromium] Make setVisibility extension- and thread-correct
2711         https://bugs.webkit.org/show_bug.cgi?id=70635
2712
2713         Reviewed by Kenneth Russell.
2714
2715         * platform/graphics/chromium/Extensions3DChromium.h:
2716         * platform/graphics/chromium/LayerRendererChromium.cpp:
2717         (WebCore::LayerRendererChromium::initialize):
2718         (WebCore::LayerRendererChromium::setVisible):
2719         * platform/graphics/chromium/LayerRendererChromium.h:
2720         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2721         (WebCore::LayerRendererCapabilities::LayerRendererCapabilities):
2722         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
2723         (WebCore::CCLayerTreeHostImpl::setVisible):
2724
2725 2011-10-21  Beth Dakin  <bdakin@apple.com>
2726
2727         https://bugs.webkit.org/show_bug.cgi?id=70647
2728         Common but unreproducible crash under [ScrollbarPartAnimation setCurrentProgress:]
2729         -and corresponding-
2730         <rdar://problem/9542018>
2731
2732         Reviewed by Sam Weinig.
2733
2734         This patch implements two speculative fixes for this crash.
2735
2736         First, block exceptions around all of the code responsible for calling 
2737         stopAnimation. If that code throws any exceptions, we want to make sure the other 
2738         animations are still stopped.
2739         * platform/mac/ScrollAnimatorMac.mm:
2740         (-[WebScrollbarPartAnimation scrollAnimatorDestroyed]):
2741         (-[WebScrollbarPainterDelegate scrollAnimatorDestroyed]):
2742         (WebCore::ScrollAnimatorMac::~ScrollAnimatorMac):
2743
2744         Only send AppKit these notifications for active pages. I originally made these 
2745         assertions, and I found that they were hit a surprising number of times. If we 
2746         only send notifications for active pages, then we should greatly reduce and 
2747         possibly eliminate our chances of hitting this crash.
2748         (WebCore::ScrollAnimatorMac::notifyPositionChanged):
2749         (WebCore::ScrollAnimatorMac::contentAreaWillPaint):
2750         (WebCore::ScrollAnimatorMac::mouseEnteredContentArea):
2751         (WebCore::ScrollAnimatorMac::mouseExitedContentArea):
2752         (WebCore::ScrollAnimatorMac::mouseMovedInContentArea):
2753         (WebCore::ScrollAnimatorMac::willStartLiveResize):
2754         (WebCore::ScrollAnimatorMac::contentsResized):
2755         (WebCore::ScrollAnimatorMac::willEndLiveResize):
2756         (WebCore::ScrollAnimatorMac::contentAreaDidShow):
2757         (WebCore::ScrollAnimatorMac::contentAreaDidHide):
2758         (WebCore::ScrollAnimatorMac::didBeginScrollGesture):
2759         (WebCore::ScrollAnimatorMac::didEndScrollGesture):
2760
2761 2011-10-21  Mark Hahnenberg  <mhahnenberg@apple.com>
2762
2763         Add put to the MethodTable
2764         https://bugs.webkit.org/show_bug.cgi?id=70439
2765
2766         Reviewed by Oliver Hunt.
2767
2768         No new tests.
2769
2770         * WebCore.exp.in:
2771         * bindings/js/JSDOMWindowCustom.cpp: Added static put since it was overlooked in 
2772         previous patches.
2773         (WebCore::JSDOMWindow::putVirtual):
2774         (WebCore::JSDOMWindow::put):
2775         * bindings/js/JSDOMWindowShell.cpp: Ditto.
2776         (WebCore::JSDOMWindowShell::putVirtual):
2777         (WebCore::JSDOMWindowShell::put):
2778         * bindings/js/JSDOMWindowShell.h:
2779
2780 2011-10-21  Dmitry Lomov  <dslomov@google.com>
2781
2782         https://bugs.webkit.org/show_bug.cgi?id=70580
2783         [Chromium] Implement MessagePort transfer in chromium port of webkit.
2784
2785         Reviewed by David Levin.
2786
2787         * bindings/v8/SerializedScriptValue.cpp:
2788         (WebCore::V8ObjectMap::Writer::writeTransferredMessagePort):
2789         (WebCore::V8ObjectMap::Serializer::Serializer):
2790         (WebCore::V8ObjectMap::Serializer::doSerialize):
2791         (WebCore::V8ObjectMap::Reader::read):
2792         (WebCore::V8ObjectMap::Deserializer::Deserializer):
2793         (WebCore::V8ObjectMap::Deserializer::tryGetTransferredMessagePort):
2794         (WebCore::SerializedScriptValue::SerializedScriptValue):
2795         (WebCore::SerializedScriptValue::deserialize):
2796
2797 2011-10-21  Ojan Vafai  <ojan@chromium.org>
2798
2799         r97693 caused 42 failures on the chromium mac bots
2800         https://bugs.webkit.org/show_bug.cgi?id=70300
2801
2802         Can't test this until https://bugs.webkit.org/show_bug.cgi?id=70660
2803         is fixed. The fix for that bug will test this codepath as well though.
2804
2805         * rendering/RenderBlock.cpp:
2806         (WebCore::RenderBlock::computeBlockPreferredLogicalWidths):
2807
2808 2011-10-21  Vineet Chaudhary  <vineet.chaudhary@motorola.com>
2809
2810         Setting form.enctype reflected attribute behaves strangely.
2811         https://bugs.webkit.org/show_bug.cgi?id=44879
2812
2813         Reviewed by Darin Adler.
2814
2815         The spec says form.enctype should be application/x-www-form-urlencoded,
2816         So as "text", "plain", "multipart" or "form-data" these are not a valid value so must be ignored.
2817
2818         * loader/FormSubmission.cpp:
2819         (WebCore::FormSubmission::Attributes::parseEncodingType):
2820
2821 2011-10-21  Matthew Delaney  <mdelaney@apple.com>
2822
2823         Ensure periodic flushing of canvas drawing context
2824         https://bugs.webkit.org/show_bug.cgi?id=70646
2825
2826         Reviewed by Simon Fraser.
2827
2828         No new tests. No current way to track tests that cause hangs or
2829         non-deterministic drops in performance.
2830
2831         * platform/graphics/cg/ImageBufferDataCG.h: Adds a timestamp of last tracked flush.
2832         * platform/graphics/cg/ImageBufferCG.cpp: Ensures periodic flushes on the drawing context.
2833         (WebCore::ImageBuffer::ImageBuffer):
2834         (WebCore::ImageBuffer::context): Flushes context if we're beyond flush interval.
2835         (WebCore::ImageBuffer::copyNativeImage): Updates last flush timestamp.
2836         (WebCore::ImageBuffer::getUnmultipliedImageData): Updates last flush timestamp.
2837         (WebCore::ImageBuffer::getPremultipliedImageData): Updates last flush timestamp.
2838         (WebCore::ImageBuffer::putUnmultipliedImageData): Updates last flush timestamp.
2839         (WebCore::ImageBuffer::putPremultipliedImageData): Updates last flush timestamp.
2840
2841 2011-10-21  Adam Barth  <abarth@webkit.org>
2842
2843         Introduce Event::hasInterface to make uses of interfaceName more readable
2844         https://bugs.webkit.org/show_bug.cgi?id=70652
2845
2846         Reviewed by Eric Seidel.
2847
2848         Eric felt that this approach would be more readable because it requires
2849         less syntax at each callsite.
2850
2851         * bindings/js/JSErrorHandler.cpp:
2852         (WebCore::JSErrorHandler::handleEvent):
2853         * bindings/objc/DOMEvents.mm:
2854         (kitClass):
2855         * bindings/v8/V8WindowErrorHandler.cpp:
2856         (WebCore::V8WindowErrorHandler::callListenerFunction):
2857         * bindings/v8/V8WorkerContextErrorHandler.cpp:
2858         (WebCore::V8WorkerContextErrorHandler::callListenerFunction):
2859         * dom/Event.cpp:
2860         (WebCore::Event::hasInterface):
2861         * dom/Event.h:
2862         * dom/EventDispatcher.cpp:
2863         (WebCore::EventDispatcher::determineDispatchBehavior):
2864         * dom/Node.cpp:
2865         (WebCore::Node::defaultEventHandler):
2866         * html/HTMLInputElement.cpp:
2867         (WebCore::HTMLInputElement::defaultEventHandler):
2868         * html/HTMLTextAreaElement.cpp:
2869         (WebCore::HTMLTextAreaElement::defaultEventHandler):
2870         * html/TextFieldInputType.cpp:
2871         (WebCore::TextFieldInputType::forwardEvent):
2872         (WebCore::TextFieldInputType::shouldSubmitImplicitly):
2873         * inspector/InspectorDOMStorageResource.cpp:
2874         (WebCore::InspectorDOMStorageResource::handleEvent):
2875
2876 2011-10-21  Adam Klein  <adamk@chromium.org>
2877
2878         [MutationObservers] Implement basic subtree observation
2879         https://bugs.webkit.org/show_bug.cgi?id=70436
2880
2881         Reviewed by Ryosuke Niwa.
2882
2883         Note that this patch only implements "basic" subtree semantics,
2884         not the fully robust semantics described in
2885         http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html.
2886         Most importantly, this change does not handle the case where mutations
2887         occur in a temporarily detached subtree.
2888
2889         The plan is to implement those semantics in a followup to avoid
2890         blocking other parts of the MutationObserver spec that rely on
2891         the existence of subtree observation but not its specific
2892         implementation.
2893
2894         Test: fast/mutation/observe-subtree.html
2895
2896         * dom/Node.cpp:
2897         (WebCore::addMatchingObservers): Static helper method for registeredMutationObserversOfType().
2898         (WebCore::Node::registeredMutationObserversOfType): Walk up the tree looking for observers.
2899         * dom/NodeRareData.h:
2900         (WebCore::MutationObserverEntry::hasAllOptions): A stricter, renamed from matches().
2901
2902 2011-10-21  Joshua Bell  <jsbell@chromium.org>
2903
2904         IndexedDB: objectStore.transaction property should be readonly
2905         https://bugs.webkit.org/show_bug.cgi?id=62395
2906
2907         Reviewed by Tony Chang.
2908
2909         Implement the IDBObjectStore.transaction property defined by the spec.
2910
2911         Test: storage/indexeddb/readonly-properties.html
2912
2913         * storage/IDBObjectStore.cpp:
2914         (WebCore::IDBObjectStore::transaction):
2915         * storage/IDBObjectStore.h:
2916         * storage/IDBObjectStore.idl:
2917
2918 2011-10-21  Adam Barth  <abarth@webkit.org>
2919
2920         Event.h has too many virtual isMumbleEvent() functions
2921         https://bugs.webkit.org/show_bug.cgi?id=70636
2922
2923         Reviewed by Dimitri Glazkov.
2924
2925         We should use the new interfaceName() way of doing run-time type inference.
2926
2927         * bindings/js/JSErrorHandler.cpp:
2928         (WebCore::JSErrorHandler::handleEvent):
2929         * bindings/js/JSEventCustom.cpp:
2930         (WebCore::JSEvent::clipboardData):
2931         * bindings/objc/DOMEvents.mm:
2932         (kitClass):
2933         * bindings/v8/V8WindowErrorHandler.cpp:
2934         (WebCore::V8WindowErrorHandler::callListenerFunction):
2935         * bindings/v8/V8WorkerContextErrorHandler.cpp:
2936         (WebCore::V8WorkerContextErrorHandler::callListenerFunction):
2937         * bindings/v8/custom/V8EventCustom.cpp:
2938         (WebCore::V8Event::clipboardDataAccessorGetter):
2939         * dom/BeforeLoadEvent.h:
2940         (WebCore::BeforeLoadEvent::interfaceName):
2941         * dom/BeforeTextInsertedEvent.h:
2942         * dom/ClipboardEvent.cpp:
2943         * dom/ClipboardEvent.h:
2944         * dom/CompositionEvent.cpp:
2945         * dom/CompositionEvent.h:
2946         * dom/ErrorEvent.cpp:
2947         * dom/ErrorEvent.h:
2948         * dom/Event.cpp:
2949         (WebCore::Event::storesResultAsString):
2950         (WebCore::Event::storeResult):
2951         (WebCore::Event::clipboardData):
2952         * dom/Event.h:
2953         * dom/Event.idl:
2954             - Remove this interface from the CPP bindings because this function
2955               no longer exists.  It's unclear to me how strong our API
2956               commitments are in the CPP bindings.
2957         * dom/EventDispatcher.cpp:
2958         (WebCore::EventDispatcher::determineDispatchBehavior):
2959         * dom/MessageEvent.cpp:
2960         * dom/MessageEvent.h:
2961         * dom/MutationEvent.cpp:
2962         * dom/MutationEvent.h:
2963         * dom/Node.cpp:
2964         (WebCore::Node::defaultEventHandler):
2965         * dom/OverflowEvent.cpp:
2966         * dom/OverflowEvent.h:
2967         * dom/PageTransitionEvent.h:
2968         * dom/ProgressEvent.h:
2969         * dom/TextEvent.cpp:
2970         * dom/TextEvent.h:
2971         * dom/WheelEvent.cpp:
2972         * dom/WheelEvent.h:
2973         * html/HTMLInputElement.cpp:
2974         (WebCore::HTMLInputElement::defaultEventHandler):
2975         * html/HTMLTextAreaElement.cpp:
2976         (WebCore::HTMLTextAreaElement::defaultEventHandler):
2977         * html/TextFieldInputType.cpp:
2978         (WebCore::TextFieldInputType::forwardEvent):
2979         (WebCore::TextFieldInputType::shouldSubmitImplicitly):
2980         * html/shadow/TextControlInnerElements.cpp:
2981         (WebCore::TextControlInnerTextElement::defaultEventHandler):
2982         * svg/SVGZoomEvent.cpp:
2983         * svg/SVGZoomEvent.h:
2984
2985 2011-10-21  Raymond Toy  <rtoy@google.com>
2986
2987         Flush denormals in Biquad, ZeroPole, and DynamicsCompressor.
2988
2989         We only flush when saving the state variables instead of in the
2990         loops so that we don't impact performance too much when there are
2991         no denormals.  This will at least not propagate the denormals any
2992         further within the class.
2993         
2994         https://bugs.webkit.org/show_bug.cgi?id=70626
2995
2996         Reviewed by Kenneth Russell.
2997
2998         * platform/audio/Biquad.cpp:
2999         (WebCore::Biquad::process):
3000         Flush denormals when storing the filter state back in to class
3001         filter state.  
3002         * platform/audio/DynamicsCompressorKernel.cpp:
3003         (WebCore::DynamicsCompressorKernel::process):
3004         Ditto.
3005         * platform/audio/ZeroPole.cpp:
3006         (WebCore::ZeroPole::process):
3007         Ditto.
3008
3009 2011-10-21  Vsevolod Vlasov  <vsevik@chromium.org>
3010
3011         Web Inspector: Advanced search results should be cleared on navigation.
3012         https://bugs.webkit.org/show_bug.cgi?id=70627
3013
3014         Reviewed by Pavel Feldman.
3015
3016         * inspector/front-end/AdvancedSearchController.js:
3017         (WebInspector.AdvancedSearchController):
3018         (WebInspector.AdvancedSearchController.prototype._frameNavigated):
3019
3020 2011-10-21  Rafael Weinstein  <rafaelw@chromium.org>
3021
3022         [MutationObservers] Implement WebKitMutationObserver.observe for childList changes
3023         https://bugs.webkit.org/show_bug.cgi?id=68955
3024
3025         Reviewed by Ryosuke Niwa.
3026
3027         This patch adds a ChildListMutationScope object which manages the coalescing of
3028         multiple child removals and additions within DOM operations into single childList
3029         mutation records.
3030
3031         Note that this patch doesn't cover all the cases which can be coalesced (it only
3032         covers ContainerNode.*, and Node.innerHTML/innerText). A separate bug,
3033         https://bugs.webkit.org/show_bug.cgi?id=70385, has been opened to track the
3034         remaining cases.
3035
3036         Test: fast/mutation/observe-childList.html
3037
3038         * CMakeLists.txt:
3039         * GNUmakefile.list.am:
3040         * WebCore.gypi:
3041         * WebCore.pro:
3042         * WebCore.vcproj/WebCore.vcproj:
3043         * WebCore.xcodeproj/project.pbxproj:
3044         * dom/ChildListMutationScope.cpp: Added.
3045         (WebCore::ChildListAccumulation::ChildListAccumulation::ChildListAccumulation):
3046         (WebCore::ChildListAccumulation::ChildListAccumulation::~ChildListAccumulation):
3047         (WebCore::ChildListAccumulation::ChildListAccumulation::childAdded):
3048         (WebCore::ChildListAccumulation::ChildListAccumulation::willRemoveChild):
3049         (WebCore::ChildListAccumulation::ChildListAccumulation::dispatch):
3050         (WebCore::ChildListAccumulation::ChildListAccumulation::clear):
3051         (WebCore::ChildListAccumulation::ChildListAccumulation::isEmpty):
3052         (WebCore::ChildListAccumulation::ChildListAccumulator::ChildListAccumulator):
3053         (WebCore::ChildListAccumulation::ChildListAccumulator::~ChildListAccumulator):
3054         (WebCore::ChildListAccumulation::ChildListAccumulator::initialize):
3055         (WebCore::ChildListAccumulation::ChildListAccumulator::instance):
3056         (WebCore::ChildListAccumulation::ChildListAccumulator::childAdded):
3057         (WebCore::ChildListAccumulation::ChildListAccumulator::willRemoveChild):
3058         (WebCore::ChildListAccumulation::ChildListAccumulator::incrementScopingLevel):
3059         (WebCore::ChildListAccumulation::ChildListAccumulator::decrementScopingLevel):
3060         (WebCore::ChildListMutationScope::ChildListMutationScope):
3061         (WebCore::ChildListMutationScope::~ChildListMutationScope):
3062         (WebCore::ChildListMutationScope::childAdded):
3063         (WebCore::ChildListMutationScope::willRemoveChild):
3064         * dom/ChildListMutationScope.h: Added.
3065         * dom/ContainerNode.cpp:
3066         (WebCore::ContainerNode::insertBefore):
3067         (WebCore::ContainerNode::replaceChild):
3068         (WebCore::willRemoveChildren):
3069         (WebCore::dispatchChildInsertionEvents):
3070         (WebCore::dispatchChildRemovalEvents):
3071         * dom/Element.cpp:
3072         (WebCore::enqueueAttributesMutationRecord):
3073         * dom/Node.cpp:
3074         (WebCore::Node::setTextContent):
3075         (WebCore::Node::registeredMutationObserversOfType):
3076         * dom/WebKitMutationObserver.cpp:
3077         (WebCore::WebKitMutationObserver::disconnect):
3078         * html/HTMLElement.cpp:
3079         (WebCore::replaceChildrenWithFragment):
3080         (WebCore::replaceChildrenWithText):
3081
3082 2011-10-21  Sheriff Bot  <webkit.review.bot@gmail.com>
3083
3084         Unreviewed, rolling out r98079.
3085         http://trac.webkit.org/changeset/98079
3086         https://bugs.webkit.org/show_bug.cgi?id=70624
3087
3088         The extensions tests enabled are failing on the Chromium Win
3089         Dbg bot (Requested by jchaffraix on #webkit).
3090
3091         * inspector/front-end/ExtensionAPI.js:
3092         (buildExtensionAPIInjectedScript):
3093
3094 2011-10-21  Dan Bernstein  <mitz@apple.com>
3095
3096         Column rules positioned incorrectly in vertical-rl block with horizontal border or padding
3097         https://bugs.webkit.org/show_bug.cgi?id=70622
3098
3099         Reviewed by Beth Dakin.
3100
3101         Tests: fast/multicol/vertical-lr/rules-with-border-before.html
3102                fast/multicol/vertical-rl/rules-with-border-before.html
3103
3104         * rendering/RenderBlock.cpp:
3105         (WebCore::RenderBlock::paintColumnRules): Changed to use the physical left border and padding for the
3106         left edge of the horizontal column rule.
3107
3108 2011-10-21  Simon Fraser  <simon.fraser@apple.com>
3109
3110         Fix Windows build.
3111
3112         * rendering/RenderLayerCompositor.cpp:
3113         (WebCore::RenderLayerCompositor::hasAnyAdditionalCompositedLayers):
3114
3115 2011-10-21  Devdatta Deshpande  <pwjd73@motorola.com>
3116
3117         [Gtk] mousemove event always has metaKey == true
3118         https://bugs.webkit.org/show_bug.cgi?id=35299
3119
3120         Reviewed by Martin Robinson.
3121
3122         GDK_MOD2_MASK doesn't always mean meta so we can't use it to identify
3123         the meta key state. Use GDK_META_MASK instead.
3124
3125         Test: platform/gtk/fast/events/event-sender-metakey.html
3126
3127         * platform/gtk/PlatformMouseEventGtk.cpp:
3128         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3129
3130 2011-10-21  Andreas Kling  <kling@webkit.org>
3131
3132         Style and Link elements' sheet() should return CSSStyleSheet.
3133         https://bugs.webkit.org/show_bug.cgi?id=70608
3134
3135         Reviewed by Antti Koivisto.
3136
3137         Return a CSSStyleSheet* instead of a StyleSheet* in these functions
3138         since we know they are always CSSStyleSheets.
3139         Also remove some now-unnecessary isCSSStyleSheet() checks.
3140
3141         * dom/StyleElement.h:
3142         (WebCore::StyleElement::sheet):
3143         * html/HTMLLinkElement.cpp:
3144         * html/HTMLLinkElement.h:
3145         (WebCore::HTMLLinkElement::sheet):
3146         * page/PageSerializer.cpp:
3147         (WebCore::PageSerializer::serializeFrame):
3148
3149 2011-10-21  Vsevolod Vlasov  <vsevik@chromium.org>
3150
3151         Web Inspector: Advanced search is working very slowly and does not show searching progress.
3152         https://bugs.webkit.org/show_bug.cgi?id=70611
3153
3154         Search implementation changed so that we do not start searching in the next file unless
3155         the previous one was already searched. This allows to interrupt search.
3156         Not all search matches are added on UI by default now, only first 20 for each file.
3157         Search progress information and search stop button were added to drawer status bar.
3158
3159         Reviewed by Pavel Feldman.
3160
3161         * English.lproj/localizedStrings.js:
3162         * inspector/ContentSearchUtils.cpp:
3163         (WebCore::ContentSearchUtils::getRegularExpressionMatchesByLines):
3164         (WebCore::ContentSearchUtils::countRegularExpressionMatches):
3165         * inspector/front-end/AdvancedSearchController.js:
3166         (WebInspector.AdvancedSearchController.prototype._onSearchResult):
3167         (WebInspector.AdvancedSearchController.prototype._onSearchFinished):
3168         (WebInspector.AdvancedSearchController.prototype.startSearch):
3169         (WebInspector.AdvancedSearchController.prototype.resetSearch):
3170         (WebInspector.AdvancedSearchController.prototype.stopSearch):
3171         (WebInspector.SearchView):
3172         (WebInspector.SearchView.prototype.get statusBarItems):
3173         (WebInspector.SearchView.prototype.get counterElement):
3174         (WebInspector.SearchView.prototype.set resultsPane):
3175         (WebInspector.SearchView.prototype.searchStarted):
3176         (WebInspector.SearchView.prototype._updateSearchResultsMessage):
3177         (WebInspector.SearchView.prototype._updateSearchProgress):
3178         (WebInspector.SearchView.prototype.resetResults):
3179         (WebInspector.SearchView.prototype._resetCounters):
3180         (WebInspector.SearchView.prototype.nothingFound):
3181         (WebInspector.SearchView.prototype.addSearchResult):
3182         (WebInspector.SearchView.prototype.searchFinished):
3183         (WebInspector.SearchView.prototype._searchStopButtonPressed):
3184         (WebInspector.SearchResultsPane):
3185         (WebInspector.FileBasedSearchResultsPane):
3186         (WebInspector.FileBasedSearchResultsPane.prototype.addSearchResult):
3187         (WebInspector.FileBasedSearchResultsPane.prototype._fileTreeElementExpanded):
3188         (WebInspector.FileBasedSearchResultsPane.prototype._appendSearchMatches):
3189         (WebInspector.FileBasedSearchResultsPane.prototype._appendShowMoreMatchesElement):
3190         (WebInspector.FileBasedSearchResultsPane.prototype._showMoreMatchesElementSelected):
3191         (WebInspector.FileBasedSearchResultsPane.prototype._addFileTreeElement):
3192         (WebInspector.FileBasedSearchResultsPane.prototype._regexMatchRanges):
3193         * inspector/front-end/Drawer.js:
3194         (WebInspector.Drawer.prototype.hide):
3195         * inspector/front-end/Images/statusbarButtonGlyphs.png:
3196         * inspector/front-end/ScriptsSearchScope.js:
3197         (WebInspector.ScriptsSearchScope):
3198         (WebInspector.ScriptsSearchScope.prototype.performSearch.filterOutContentScripts):
3199         (WebInspector.ScriptsSearchScope.prototype.performSearch.continueSearch):
3200         (WebInspector.ScriptsSearchScope.prototype.performSearch.searchCallbackWrapper):
3201         (WebInspector.ScriptsSearchScope.prototype.performSearch):
3202         (WebInspector.ScriptsSearchScope.prototype.stopSearch):
3203         * inspector/front-end/TimelinePanel.js:
3204         (WebInspector.TimelinePanel.prototype._registerShortcuts):
3205         * inspector/front-end/inspector.css:
3206         (#drawer-status-bar .search-status-bar-item):
3207         (#drawer-status-bar .search-status-bar-message):
3208         (#drawer-status-bar .search-status-bar-progress):
3209         (#drawer-status-bar .search-status-bar-stop-button-item):
3210         (#drawer-status-bar .search-status-bar-stop-button .glyph):
3211         (#drawer-status-bar .search-results-status-bar-message):
3212         (.search-view .search-results):
3213         (#search-results-pane-file-based .search-results-outline-disclosure):
3214         (#search-results-pane-file-based .search-result):
3215         (#search-results-pane-file-based .search-result:hover):
3216         (#search-results-pane-file-based .show-more-matches):
3217         (#search-results-pane-file-based .show-more-matches:hover):
3218         (#search-results-pane-file-based .search-match:hover):
3219         * inspector/front-end/utilities.js:
3220         ():
3221
3222 2011-10-20  Zhenyao Mo  <zmo@google.com>
3223
3224         Implement mechanism to enable privileged webgl extensions
3225         https://bugs.webkit.org/show_bug.cgi?id=70538
3226
3227         Reviewed by Darin Fisher.
3228
3229         * html/canvas/WebGLRenderingContext.cpp:
3230         (WebCore::WebGLRenderingContext::allowPrivilegedExtensions): check page/Settings flag.
3231         * page/Settings.cpp: Add the flag.
3232         (WebCore::Settings::Settings):
3233         (WebCore::Settings::setPrivilegedWebGLExtensionsEnabled):
3234         * page/Settings.h: Ditto.
3235         (WebCore::Settings::privilegedWebGLExtensionsEnabled):
3236
3237 2011-10-20  Pavel Podivilov  <podivilov@chromium.org>
3238
3239         Web Inspector: first line in file is not highlighted.
3240         https://bugs.webkit.org/show_bug.cgi?id=70504
3241
3242         Reviewed by Pavel Feldman.
3243
3244         * inspector/front-end/SourceFrame.js:
3245         (WebInspector.SourceFrame.prototype._initializeTextViewer):
3246
3247 2011-10-21  Andreas Kling  <kling@webkit.org>
3248
3249         Simplify CSSStyleRule::setSelectorText().
3250         https://bugs.webkit.org/show_bug.cgi?id=70607
3251
3252         Reviewed by Antti Koivisto.
3253
3254         Remove unnecessary isCSSStyleSheet() check and redundant Document finding
3255         logic (CSSStyleSheet::document() will return the owner node's Document just
3256         like this code would.)
3257
3258         * css/CSSStyleRule.cpp:
3259         (WebCore::CSSStyleRule::setSelectorText):
3260
3261 2011-10-21  Alejandro G. Castro  <alex@igalia.com>
3262
3263         [cairo] Forward declaration of GraphicsContextState uses class instead of struct
3264         https://bugs.webkit.org/show_bug.cgi?id=70522
3265
3266         The type is a struct not a class, replace the definition in the
3267         forward declaration.
3268
3269         Reviewed by Martin Robinson.
3270
3271         * platform/graphics/cairo/PlatformContextCairo.h:
3272
3273 2011-10-20  Andrey Kosyakov  <caseq@chromium.org>
3274
3275         Web Inspector: make extension tests pass on chromium
3276         https://bugs.webkit.org/show_bug.cgi?id=70334
3277
3278         Reviewed by Pavel Feldman.
3279
3280         * inspector/front-end/ExtensionAPI.js:
3281         (buildExtensionAPIInjectedScript):
3282
3283 2011-10-20  Peter Rybin  <peter.rybin@gmail.com>
3284
3285         Web Inspector: reimplement protocol backend/frontend source generator
3286         https://bugs.webkit.org/show_bug.cgi?id=69295
3287
3288         Reviewed by Pavel Feldman.
3289
3290         Old 2-stage python+perf generator that uses intermediate IDL output is
3291         being replaced with a solid python script. This is for simplicity and
3292         as a base for the future JSON validator.
3293
3294         * CMakeLists.txt:
3295         * CodeGenerators.pri:
3296         * DerivedSources.make:
3297         * GNUmakefile.am:
3298         * WebCore.gyp/WebCore.gyp:
3299         * inspector/CodeGeneratorInspector.pm: Removed.
3300         * inspector/CodeGeneratorInspector.py: Added.
3301         * inspector/Inspector.json:
3302         * inspector/generate-inspector-idl: Removed.
3303
3304 2011-10-20  Adam Barth  <abarth@webkit.org>
3305
3306         Attemp to fix a bunch of tests PLATFORM(MAC).  We can't use a static
3307         map because that's shared between threads (and events exist in worker
3308         threads).  It migh be better to add a thread-specific map, but we can
3309         do that in another patch.
3310
3311         * bindings/js/JSEventCustom.cpp:
3312         (WebCore::toJS):
3313         * bindings/v8/custom/V8EventCustom.cpp:
3314         (WebCore::toV8):
3315
3316 2011-10-20  Simon Fraser  <simon.fraser@apple.com>
3317
3318         Hidden composited iframes cause infinite loop
3319         https://bugs.webkit.org/show_bug.cgi?id=52655
3320
3321         Reviewed by Darin Adler.
3322         
3323         visibility:hidden is problematic for compositing, because it causes
3324         RenderLayers to be removed from the z-order layer tree. This confuses
3325         RenderLayerCompositor in several ways; it never sees these layers
3326         when traversing the tree as it computes compositing requirements, or
3327         rebuilds the layer tree.
3328         
3329         This is a particular problem with composited iframes. When an iframe
3330         becomes composited, scheduleSetNeedsStyleRecalc() is called on that
3331         iframe's ownerElement in the parent document. If this happens inside
3332         Document::updateStyleForAllDocuments(), we get into an infinite loop
3333         because notifyIFramesOfCompositingChange() queues up style update as we
3334         bounce in and out of compositing mode, so documentsThatNeedStyleRecalc
3335         never empties out.
3336         
3337         This is an initial, conservative fix that doesn't attempt to fix all
3338         the issues with visibility. It changes RenderLayerCompositor to count
3339         the number of compositing RenderLayers, and to not leave compositing
3340         mode if there are any (even if they are hidden, so not hit while
3341         traversing the z-order tree). This avoids the infinite loop.
3342
3343         Test: compositing/visibility/hidden-iframe.html
3344
3345         * rendering/RenderLayer.cpp:
3346         (WebCore::RenderLayer::ensureBacking):
3347         (WebCore::RenderLayer::clearBacking):
3348         * rendering/RenderLayerCompositor.cpp:
3349         (WebCore::RenderLayerCompositor::RenderLayerCompositor):
3350         (WebCore::RenderLayerCompositor::hasAnyAdditionalCompositedLayers):
3351         (WebCore::RenderLayerCompositor::updateCompositingLayers):
3352         (WebCore::RenderLayerCompositor::computeCompositingRequirements):
3353         * rendering/RenderLayerCompositor.h:
3354         (WebCore::RenderLayerCompositor::layerBecameComposited):
3355         (WebCore::RenderLayerCompositor::layerBecameNonComposited):
3356
3357 2011-10-20  Antoine Labour  <piman@chromium.org>
3358
3359         Make WebCore depend on translator_glsl instead of translator_common
3360         https://bugs.webkit.org/show_bug.cgi?id=70548
3361
3362         Reviewed by Kenneth Russell.
3363
3364         This is a build-only fix. Tested by checking WebKit still compiles and
3365         link.
3366
3367         * WebCore.gyp/WebCore.gyp:
3368
3369 2011-10-20  Dana Jansens  <danakj@chromium.org>
3370
3371         [Chromium] Fix opaque flag default and for ImageLayerChromium
3372         https://bugs.webkit.org/show_bug.cgi?id=70554
3373
3374         Reviewed by James Robinson.
3375
3376         Covered by layout tests.
3377
3378         * platform/graphics/chromium/ImageLayerChromium.cpp:
3379         (WebCore::ImageLayerChromium::setContents): Set opaque flag based on if the image claims to have alpha.
3380         * platform/graphics/chromium/LayerChromium.cpp:
3381         (WebCore::LayerChromium::LayerChromium): Match the default opaque value in GraphicsLayerChromium.
3382
3383 2011-10-20  Yosifumi Inoue  <yosin@chromium.org>
3384
3385         [Forms][File] Add tooltip to "No file selected" text
3386         https://bugs.webkit.org/show_bug.cgi?id=70474
3387
3388         Reviewed by Kent Tamura.
3389
3390         No new tests. Existing tests cover all changes.
3391
3392         This patch provides tooltip for text portion of upload file control
3393         tell users to know actual text of truncated text of file name and
3394         "No file selected" text. Tooltip is always displayed even if user
3395         select only one file for truncated displayed file name.
3396
3397         * html/FileInputType.cpp:
3398         (WebCore::FileInputType::defaultToolTip): Implement default tooltip logic.
3399         * html/FileInputType.h: declaration of new method defaultToolTip.
3400         * html/HTMLInputElement.cpp:
3401         (WebCore::HTMLInputElement::defaultToolTip): Impelement new method defaultToolTip.
3402         * html/HTMLInputElement.h: declaration of new method defaultToolTip.
3403         * html/InputType.cpp:
3404         (WebCore::InputType::defaultToolTip): Implement default method of defaultToolTip method.
3405         * html/InputType.h: declaration of new method defaultToolTip.
3406         * page/Chrome.cpp:
3407         (WebCore::Chrome::setToolTip): Use new method HTMLInputElement::defaultToolTip and move default tooltip logic to FileInputType::defaultToolTip method.
3408
3409 2011-10-20  Darin Adler  <darin@apple.com>
3410
3411         Remove OptionElement (first half)
3412         https://bugs.webkit.org/show_bug.cgi?id=70276
3413
3414         Reviewed by Kent Tamura.
3415
3416         Refactoring that does not require new tests.
3417
3418         * css/SelectorChecker.cpp:
3419         (WebCore::SelectorChecker::checkOneSelector): Use hasTagName
3420         and toHTMLOptionElement instead of toOptionElement.
3421
3422         * dom/OptionElement.cpp: Deleted contents. Remove file later.
3423         * dom/OptionElement.h: Ditto.
3424
3425         * html/HTMLOptionElement.cpp:
3426         (WebCore::HTMLOptionElement::HTMLOptionElement): Initialize m_isSelected.
3427         (WebCore::HTMLOptionElement::createForJSConstructor): Initialize the
3428         selected attribute rather than calling setDefaultSelected.
3429         (WebCore::HTMLOptionElement::text): Moved the code here from
3430         OptionElement::collectOptionLabelOrText.
3431         (WebCore::HTMLOptionElement::index): Moved the code here from
3432         OptionElement::optionIndex.
3433         (WebCore::HTMLOptionElement::parseMappedAttribute): Removed unneeded
3434         code to call setValue and setLabel. Changed the code that called
3435         setSelected to instead set m_isSelected and added a FIXME about why
3436         that's probably wrong, but same behavior as before.
3437         (WebCore::HTMLOptionElement::value): Moved the code here from
3438         OptionElement::collectOptionValue. Added a FIXME about incorrect
3439         whitespace stripping.
3440         (WebCore::HTMLOptionElement::selected): Use m_isSelected.
3441         (WebCore::HTMLOptionElement::setSelected): Use m_isSelected and
3442         call setSelectedState instead of OptionElement::setSelectedState.
3443         (WebCore::HTMLOptionElement::setSelectedState): Moved the code
3444         here from OptionElement::setSelectedState.
3445         (WebCore::HTMLOptionElement::label): Streamlined the code.
3446         (WebCore::HTMLOptionElement::textIndentedToRespectGroupLabel):
3447         Moved the code here from OptionElement::collectOptionTextRespectingGroupLabel.
3448         (WebCore::HTMLOptionElement::insertedIntoTree): Use m_isSelected
3449         and rewrote comment for clarity.
3450         (WebCore::HTMLOptionElement::collectOptionInnerText): Moved this
3451         here from OptionElement, and changed to use StringBuilder.
3452         (WebCore::toHTMLOptionElement): Added.
3453
3454         * html/HTMLOptionElement.h: Removed OptionElement.h include.
3455         Removed OptionElement base class. Removed unneeded friend declarations.
3456         Made value and selected functions non-virtual. Removed unneeded
3457         defaultSelected and setDefaultSelected functions. Made the
3458         textIndentedToRespectGroupLabel and setSelectedState functions
3459         be non-virtual and public. Added a collectOptionInnerText function.
3460         Replaced m_data with m_value, m_label, and m_selected.
3461
3462         * html/HTMLSelectElement.cpp:
3463         (WebCore::toOptionElement): Added. Helper to keep existing code
3464         close to the same.
3465         (WebCore::HTMLSelectElement::nextValidIndex): Use hasTagName
3466         instead of isOptionElement.
3467         (WebCore::HTMLSelectElement::saveLastSelection): Use HTMLOptionElement
3468         type instead of OptionElement.
3469         (WebCore::HTMLSelectElement::setActiveSelectionAnchorIndex): Ditto.
3470         (WebCore::HTMLSelectElement::updateListBoxSelection): Ditto.
3471         (WebCore::HTMLSelectElement::listBoxOnChange): Ditto.
3472         (WebCore::HTMLSelectElement::recalcListItems): Ditto.
3473         (WebCore::HTMLSelectElement::selectedIndex): Ditto.
3474         (WebCore::HTMLSelectElement::setSelectedIndex): Ditto.
3475         (WebCore::HTMLSelectElement::optionToListIndex): Ditto.
3476         (WebCore::HTMLSelectElement::listToOptionIndex): Ditto.
3477         (WebCore::HTMLSelectElement::deselectItemsWithoutValidation): Ditto.
3478         (WebCore::HTMLSelectElement::saveFormControlState): Ditto.
3479         (WebCore::HTMLSelectElement::restoreFormControlState): Ditto.
3480         (WebCore::HTMLSelectElement::appendFormData): Ditto.
3481         (WebCore::HTMLSelectElement::reset): Ditto.
3482         (WebCore::HTMLSelectElement::updateSelectedState): Ditto.
3483         (WebCore::HTMLSelectElement::lastSelectedListIndex): Ditto.
3484         (WebCore::HTMLSelectElement::typeAheadFind): Ditto.
3485         (WebCore::HTMLSelectElement::accessKeySetSelectedIndex): Ditto.
3486         (WebCore::HTMLSelectElement::length): Ditto.
3487
3488         * rendering/RenderListBox.cpp:
3489         (WebCore::RenderListBox::updateFromElement): Use HTMLOptionElement,
3490         hasTagName, and toHTMLOptionElement.
3491         (WebCore::RenderListBox::addFocusRingRects): Ditto.
3492         (WebCore::RenderListBox::paintItemForeground): Ditto.
3493         (WebCore::RenderListBox::paintItemBackground): Ditto.
3494         * rendering/RenderMenuList.cpp:
3495         (WebCore::RenderMenuList::updateOptionsWidth): Ditto.
3496         (WebCore::RenderMenuList::setTextFromOption): Ditto.
3497         (WebCore::RenderMenuList::itemText): Ditto.
3498         (WebCore::RenderMenuList::itemIsSelected): Ditto.
3499
3500 2011-10-20  Adam Barth  <abarth@webkit.org>
3501
3502         Attempt to fix crash for infinite recursion.
3503
3504         * bindings/v8/custom/V8EventCustom.cpp:
3505         (WebCore::toV8):
3506
3507 2011-10-20  Dirk Pranke  <dpranke@chromium.org>
3508
3509         Still lots of crashes in the chromium debug bots.
3510
3511         Unreviewed, rolling out r97982.
3512         http://trac.webkit.org/changeset/97982
3513         https://bugs.webkit.org/show_bug.cgi?id=70328
3514
3515         crashing in asserts in chromium debug builds
3516
3517         * dom/DeviceMotionController.cpp:
3518         (WebCore::DeviceMotionController::timerFired):
3519         (WebCore::DeviceMotionController::addListener):
3520         (WebCore::DeviceMotionController::removeListener):
3521         (WebCore::DeviceMotionController::removeAllListeners):
3522         * dom/DeviceMotionController.h:
3523         * dom/DeviceOrientationController.cpp:
3524         * dom/DeviceOrientationController.h:
3525         * dom/Document.cpp:
3526         * dom/Document.h:
3527         * dom/ScriptExecutionContext.h:
3528         * page/GeolocationController.cpp:
3529         * page/GeolocationController.h:
3530
3531 2011-10-20  Adam Barth  <abarth@webkit.org>
3532
3533         Attempt to fix the GTK build.
3534
3535         * GNUmakefile.am:
3536
3537 2011-10-20  Adam Barth  <abarth@webkit.org>
3538
3539         CloseEvent.idl isn't conditional on WebSockets.
3540
3541         * dom/EventFactory.in:
3542
3543 2011-10-20  Adam Barth  <abarth@webkit.org>
3544
3545         Event.h shouldn't need to know about every ifdef and feature that uses events
3546         https://bugs.webkit.org/show_bug.cgi?id=70483
3547
3548         Reviewed by Eric Seidel.
3549
3550         This patch expands make_event_factory.pl to create a
3551         DOM_EVENT_INTERFACES_FOR_EACH macro that we can use to generate code
3552         for each Event interface.  We then apply that macro to removing a large
3553         number of virtual functions on Event.  Instead of having a Boolean
3554         virtual function for each subclass of Event, we have a single virtual
3555         interfaceName function, which returns an AtomicString.  We then use the
3556         AtomicString to jump through a HashMap to find the appropriate
3557         JavaScript wrapper type.
3558
3559         This patch does not remove all of the Boolean virtual functions because
3560         I got exhausted making all of these edits, but I did remove all the
3561         ones that involve ifdefs.  A future patch will remove more.
3562
3563         * WebCore.xcodeproj/project.pbxproj:
3564         * bindings/js/JSEventCustom.cpp:
3565         (WebCore::toJS):
3566         * bindings/v8/custom/V8EventCustom.cpp:
3567         (WebCore::toV8):
3568         * dom/BeforeLoadEvent.h:
3569         (WebCore::BeforeLoadEvent::interfaceName):
3570         (WebCore::BeforeLoadEvent::isBeforeLoadEvent):
3571         * dom/BeforeTextInsertedEvent.cpp:
3572         (WebCore::BeforeTextInsertedEvent::interfaceName):
3573         * dom/BeforeTextInsertedEvent.h:
3574         * dom/ClipboardEvent.cpp:
3575         (WebCore::ClipboardEvent::interfaceName):
3576         * dom/ClipboardEvent.h:
3577         * dom/CompositionEvent.cpp:
3578         (WebCore::CompositionEvent::interfaceName):
3579         * dom/CompositionEvent.h:
3580         * dom/CustomEvent.cpp:
3581         (WebCore::CustomEvent::interfaceName):
3582         * dom/CustomEvent.h:
3583         * dom/DeviceMotionEvent.cpp:
3584         (WebCore::DeviceMotionEvent::interfaceName):
3585         * dom/DeviceMotionEvent.h:
3586         * dom/DeviceOrientationEvent.cpp:
3587         (WebCore::DeviceOrientationEvent::interfaceName):
3588         * dom/DeviceOrientationEvent.h:
3589         * dom/ErrorEvent.cpp:
3590         (WebCore::ErrorEvent::interfaceName):
3591         * dom/ErrorEvent.h:
3592         * dom/Event.cpp:
3593         (WebCore::Event::interfaceName):
3594         * dom/Event.h:
3595         * dom/EventNames.cpp:
3596         (WebCore::EventNames::EventNames):
3597         * dom/EventNames.h:
3598         * dom/HashChangeEvent.h:
3599         (WebCore::HashChangeEvent::interfaceName):
3600         * dom/KeyboardEvent.cpp:
3601         (WebCore::KeyboardEvent::interfaceName):
3602         * dom/KeyboardEvent.h:
3603         * dom/MessageEvent.cpp:
3604         (WebCore::MessageEvent::interfaceName):
3605         * dom/MessageEvent.h:
3606         * dom/MouseEvent.cpp:
3607         (WebCore::MouseEvent::interfaceName):
3608         * dom/MouseEvent.h:
3609         * dom/MutationEvent.cpp:
3610         (WebCore::MutationEvent::interfaceName):
3611         * dom/MutationEvent.h:
3612         * dom/OverflowEvent.cpp:
3613         (WebCore::OverflowEvent::interfaceName):
3614         * dom/OverflowEvent.h:
3615         * dom/PageTransitionEvent.cpp:
3616         (WebCore::PageTransitionEvent::interfaceName):
3617         * dom/PageTransitionEvent.h:
3618         * dom/PopStateEvent.cpp:
3619         (WebCore::PopStateEvent::interfaceName):
3620         * dom/PopStateEvent.h:
3621         * dom/ProgressEvent.cpp:
3622         (WebCore::ProgressEvent::interfaceName):
3623         * dom/ProgressEvent.h:
3624         * dom/TextEvent.cpp:
3625         (WebCore::TextEvent::interfaceName):
3626         * dom/TextEvent.h:
3627         * dom/TouchEvent.cpp:
3628         (WebCore::TouchEvent::interfaceName):
3629         * dom/TouchEvent.h:
3630         * dom/UIEvent.h:
3631         * dom/WebKitAnimationEvent.cpp:
3632         (WebCore::WebKitAnimationEvent::interfaceName):
3633         * dom/WebKitAnimationEvent.h:
3634         * dom/WebKitTransitionEvent.cpp:
3635         (WebCore::WebKitTransitionEvent::interfaceName):
3636         * dom/WebKitTransitionEvent.h:
3637         * dom/WheelEvent.cpp:
3638         (WebCore::WheelEvent::interfaceName):
3639         * dom/WheelEvent.h:
3640         * dom/make_event_factory.pl:
3641         (printFactoryFile):
3642         (printMacroFile):
3643         (printHeadersFile):
3644         * html/canvas/WebGLContextEvent.cpp:
3645         (WebCore::WebGLContextEvent::interfaceName):
3646         * html/canvas/WebGLContextEvent.h:
3647         * inspector/InspectorDOMStorageResource.cpp:
3648         (WebCore::InspectorDOMStorageResource::handleEvent):
3649         * p2p/MediaStreamEvent.cpp:
3650         (WebCore::MediaStreamEvent::interfaceName):
3651         * p2p/MediaStreamEvent.h:
3652         * page/SpeechInputEvent.cpp:
3653         (WebCore::SpeechInputEvent::interfaceName):
3654         * page/SpeechInputEvent.h:
3655         * storage/IDBVersionChangeEvent.cpp:
3656         (WebCore::IDBVersionChangeEvent::interfaceName):
3657         * storage/IDBVersionChangeEvent.h:
3658         * storage/StorageEvent.cpp:
3659         (WebCore::StorageEvent::interfaceName):
3660         * storage/StorageEvent.h:
3661         * svg/SVGZoomEvent.cpp:
3662         (WebCore::SVGZoomEvent::interfaceName):
3663         * svg/SVGZoomEvent.h:
3664         * webaudio/AudioProcessingEvent.cpp:
3665         (WebCore::AudioProcessingEvent::interfaceName):
3666         * webaudio/AudioProcessingEvent.h:
3667         * webaudio/OfflineAudioCompletionEvent.cpp:
3668         (WebCore::OfflineAudioCompletionEvent::interfaceName):
3669         * webaudio/OfflineAudioCompletionEvent.h:
3670         * websockets/CloseEvent.h:
3671         (WebCore::CloseEvent::interfaceName):
3672         * xml/XMLHttpRequestProgressEvent.h:
3673         (WebCore::XMLHttpRequestProgressEvent::interfaceName):
3674
3675 2011-10-20  Nat Duca  <nduca@chromium.org>
3676
3677         [chromium] Route onSwapBuffersComplete from LayerRenderer to CCScheduler.
3678
3679         Reviewed by James Robinson.
3680
3681         * platform/graphics/chromium/LayerRendererChromium.cpp:
3682         (WebCore::LayerRendererSwapBuffersCompleteCallbackAdapter::create):
3683         (WebCore::LayerRendererSwapBuffersCompleteCallbackAdapter::~LayerRendererSwapBuffersCompleteCallbackAdapter):
3684         (WebCore::LayerRendererSwapBuffersCompleteCallbackAdapter::onSwapBuffersComplete):
3685         (WebCore::LayerRendererSwapBuffersCompleteCallbackAdapter::LayerRendererSwapBuffersCompleteCallbackAdapter):
3686         (WebCore::LayerRendererChromium::initialize):
3687         (WebCore::LayerRendererChromium::~LayerRendererChromium):
3688         (WebCore::LayerRendererChromium::swapBuffers):
3689         (WebCore::LayerRendererChromium::onSwapBuffersComplete):
3690         * platform/graphics/chromium/LayerRendererChromium.h:
3691         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
3692         (WebCore::CCHeadsUpDisplay::onSwapBuffers):
3693         * platform/graphics/chromium/cc/CCHeadsUpDisplay.h:
3694         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
3695         (WebCore::LayerRendererCapabilities::LayerRendererCapabilities):
3696         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
3697         (WebCore::CCLayerTreeHostImpl::swapBuffers):
3698         (WebCore::CCLayerTreeHostImpl::onSwapBuffersComplete):
3699         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
3700         * platform/graphics/chromium/cc/CCScheduler.cpp:
3701         (WebCore::CCScheduler::requestRedraw):
3702         (WebCore::CCScheduler::didDrawAndSwap):
3703         (WebCore::CCScheduler::didSwapBuffersComplete):
3704         (WebCore::CCScheduler::didSwapBuffersAbort):
3705         * platform/graphics/chromium/cc/CCScheduler.h:
3706         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
3707         (WebCore::CCSingleThreadProxy::compositeImmediately):
3708         * platform/graphics/chromium/cc/CCSingleThreadProxy.h:
3709         (WebCore::CCSingleThreadProxy::onSwapBuffersCompleteOnImplThread):
3710         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
3711         (WebCore::CCThreadProxySchedulerClient::scheduleDrawAndSwap):
3712         (WebCore::CCThreadProxy::drawLayersAndReadbackOnImplThread):
3713         (WebCore::CCThreadProxy::onSwapBuffersCompleteOnImplThread):
3714         (WebCore::CCThreadProxy::finishAllRenderingOnImplThread):
3715         (WebCore::CCThreadProxy::drawLayersAndSwapOnImplThread):
3716         (WebCore::CCThreadProxy::drawLayersOnImplThread):
3717         * platform/graphics/chromium/cc/CCThreadProxy.h:
3718
3719 2011-10-20  Julien Chaffraix  <jchaffraix@webkit.org>
3720
3721         RenderDeprecatedFlexibleBox does not call its children's layout method
3722         https://bugs.webkit.org/show_bug.cgi?id=64842
3723
3724         Reviewed by David Hyatt.
3725
3726         Tests: fast/flexbox/021-vertical.html
3727                fast/flexbox/crash-flexbox-no-layout-child.html
3728
3729         The FlexBoxIterator would skip any child with visibility: collapsed. However those child
3730         would need layout but their layout() function would never be called.
3731
3732         This change refactors the way flexible box handles visibility: collapsed child and mark sure
3733         their layout() function is called but makes sure that they don't participate in the flex box
3734         dimensions.
3735
3736         * rendering/RenderDeprecatedFlexibleBox.cpp:
3737         (WebCore::FlexBoxIterator::next): Do not skip visibility: collapsed child.
3738         (WebCore::childDoesNotAffectWidthOrFlexing): Helper function.
3739
3740         (WebCore::RenderDeprecatedFlexibleBox::calcHorizontalPrefWidths):
3741         (WebCore::RenderDeprecatedFlexibleBox::calcVerticalPrefWidths):
3742         (WebCore::gatherFlexChildrenInfo):
3743         (WebCore::RenderDeprecatedFlexibleBox::layoutHorizontalBox):
3744         (WebCore::RenderDeprecatedFlexibleBox::layoutVerticalBox):
3745         (WebCore::RenderDeprecatedFlexibleBox::applyLineClamp):
3746         (WebCore::RenderDeprecatedFlexibleBox::allowedChildFlex):
3747         Updated to skip the now seen visibility: collapsed child during the
3748         iteration.
3749
3750 2011-10-20  Raymond Toy  <rtoy@google.com>
3751
3752         Implement SSE denormal disabler for windows.
3753
3754         https://bugs.webkit.org/show_bug.cgi?id=70517
3755
3756         Reviewed by Kenneth Russell.
3757
3758         * platform/audio/DenormalDisabler.h:
3759         (WebCore::DenormalDisabler::DenormalDisabler):
3760         Add implementation for Windows.
3761         (WebCore::DenormalDisabler::~DenormalDisabler):
3762         Ditto.
3763         (WebCore::DenormalDisabler::flushDenormalFloatToZero):
3764         Unify Windows with mac/linux.
3765         (WebCore::DenormalDisabler::getCSR):
3766         Define only if we're not on Windows.
3767         (WebCore::DenormalDisabler::setCSR):
3768         Ditto.
3769
3770 2011-10-20  Alexey Proskuryakov  <ap@apple.com>
3771
3772         REGRESSION (r96823): Contextual menu closes immediately when control-clicking in Flash plug-in
3773         https://bugs.webkit.org/show_bug.cgi?id=70534
3774         <rdar://problem/10308827>
3775
3776         Reviewed by Darin Adler.
3777
3778         * plugins/PluginView.cpp: (WebCore::PluginView::handleEvent): Return true for contextmenu
3779         event, so that plug-ins won't get a default WebKit context menu. We can't know if the
3780         plug-in is handling mousedown (or even mouseup) by displaying a menu.
3781
3782 2011-10-17  Nat Duca  <nduca@chromium.org>
3783
3784         [chromium] Allow CCLayerTreeHostImpl to call back to proxy via CCLayerTreeHostImplClient
3785         https://bugs.webkit.org/show_bug.cgi?id=70291
3786
3787         Reviewed by James Robinson.
3788
3789         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
3790         (WebCore::CCLayerTreeHost::createLayerTreeHostImpl):
3791         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
3792         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
3793         (WebCore::CCLayerTreeHostImpl::create):
3794         (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
3795         (WebCore::CCLayerTreeHostImpl::scrollRootLayer):
3796         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
3797         * platform/graphics/chromium/cc/CCScrollController.h:
3798         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
3799         (WebCore::CCSingleThreadProxy::start):
3800         * platform/graphics/chromium/cc/CCSingleThreadProxy.h:
3801         (WebCore::CCSingleThreadProxy::setNeedsRedrawOnImplThread):
3802         (WebCore::CCSingleThreadProxy::setNeedsCommitOnImplThread):
3803         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
3804         (WebCore::CCThreadProxy::scrollRootLayerOnImplThread):
3805         (WebCore::CCThreadProxy::initializeImplOnCCThread):
3806         (WebCore::CCThreadProxy::initializeLayerRendererOnCCThread):
3807         (WebCore::CCThreadProxy::layerTreeHostClosedOnCCThread):
3808         * platform/graphics/chromium/cc/CCThreadProxy.h:
3809         (WebCore::CCThreadProxy::setNeedsRedrawOnImplThread):
3810         (WebCore::CCThreadProxy::setNeedsCommitOnImplThread):
3811
3812 2011-10-20  Tony Chang  <tony@chromium.org>
3813
3814         fix repaint bugs in new flexbox
3815         https://bugs.webkit.org/show_bug.cgi?id=70450
3816
3817         Reviewed by David Hyatt.
3818
3819         Test: css3/flexbox/repaint.html
3820               css3/flexbox/repaint-rtl-column.html
3821
3822         * rendering/RenderFlexibleBox.cpp:
3823         (WebCore::RenderFlexibleBox::layoutBlock): Use LayoutRepainter and LayoutStateMaintainer
3824             to repaint the flexbox.
3825         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
3826         (WebCore::RenderFlexibleBox::adjustLocationLogicalTopForChild): Use repaintDuringLayoutIfMoved
3827             when changing the alignment of a child to handle the child moving.
3828
3829 2011-10-20  Dan Bernstein  <mitz@apple.com>
3830
3831         Flipped-blocks writing mode blocks do not hit test their overflow
3832         https://bugs.webkit.org/show_bug.cgi?id=70546
3833
3834         Reviewed by Sam Weinig.
3835
3836         Test: fast/writing-mode/flipped-blocks-hit-test-overflow.html
3837
3838         * rendering/RenderBlock.cpp:
3839         (WebCore::RenderBlock::nodeAtPoint): Flip the overflow rect if necessary.
3840
3841 2011-10-20  David Hyatt  <hyatt@apple.com>
3842
3843         https://bugs.webkit.org/show_bug.cgi?id=70539
3844         
3845         Make the 'clip' property work in variable width regions.
3846
3847         Reviewed by Dan Bernstein.
3848
3849         Added new test in fast/regions.
3850
3851         * rendering/RenderBox.cpp:
3852         (WebCore::RenderBox::clipRect):
3853         * rendering/RenderBox.h:
3854         * rendering/RenderLayer.cpp:
3855         (WebCore::RenderLayer::calculateClipRects):
3856         (WebCore::RenderLayer::calculateRects):
3857         (WebCore::RenderLayer::repaintBlockSelectionGaps):
3858         * rendering/RenderLayerBacking.cpp:
3859         (WebCore::clipBox):
3860
3861 2011-10-20  Simon Fraser  <simon.fraser@apple.com>
3862
3863         Fix build breakage on some platforms after r98008.
3864
3865         * page/FrameTree.cpp:
3866
3867 2011-10-20  Vincent Scheib  <scheib@chromium.org>
3868
3869         MouseLock compile and run time flags.
3870         https://bugs.webkit.org/show_bug.cgi?id=70530
3871
3872         Reviewed by Darin Fisher.
3873
3874         No new tests.
3875
3876         * bindings/generic/RuntimeEnabledFeatures.cpp:
3877         * bindings/generic/RuntimeEnabledFeatures.h:
3878         (WebCore::RuntimeEnabledFeatures::webkitMouseLockAPIEnabled):
3879         (WebCore::RuntimeEnabledFeatures::setWebkitMouseLockAPIEnabled):
3880         (WebCore::RuntimeEnabledFeatures::webkitLockMouseEnabled):
3881         (WebCore::RuntimeEnabledFeatures::webkitUnlockMouseEnabled):
3882         (WebCore::RuntimeEnabledFeatures::webkitMouseLockedEnabled):
3883         * page/Settings.cpp:
3884         (WebCore::Settings::Settings):
3885         * page/Settings.h:
3886         (WebCore::Settings::setMouseLockEnabled):
3887         (WebCore::Settings::mouseLockEnabled):
3888
3889 2011-10-20  Tony Chang  <tony@chromium.org>
3890
3891         Fix a compiler warning in MediaStreamTrack.cpp:
3892         ../../third_party/WebKit/Source/WebCore/dom/MediaStreamTrack.cpp: In member function 'WTF::String WebCore::MediaStreamTrack::kind() const':
3893         ../../third_party/WebKit/Source/WebCore/dom/MediaStreamTrack.cpp:61:1: error: control reaches end of non-void function [-Werror=return-type]
3894
3895         Unreviewed build fix.
3896
3897         * dom/MediaStreamTrack.cpp:
3898         (WebCore::MediaStreamTrack::kind):
3899
3900 2011-10-20  Gustavo Noronha Silva  <gns@gnome.org>
3901
3902         One more GTK+ build fix. Remove CueLoader files from the build.
3903
3904         * GNUmakefile.list.am:
3905
3906 2011-10-20  Ken Buchanan <kenrb@chromium.org>
3907
3908         Crash in updateFirstLetter on :after generated content
3909         https://bugs.webkit.org/show_bug.cgi?id=70031
3910
3911         Reviewed by David Hyatt.
3912
3913         Preventing findBeforeAfterParent() from returning a first-letter block and overwriting its style.
3914         Instead, it returns the block's parent.
3915
3916         * rendering/RenderBlock.cpp:
3917         (WebCore::RenderBlock::updateFirstLetter):
3918         * rendering/RenderObjectChildList.cpp:
3919         (WebCore::findBeforeAfterParent)
3920         (WebCore::RenderObjectChildList::updateBeforeAfterContent): First-letter siblings now already have style applied, so this clause is redundant
3921
3922 2011-10-20  Simon Fraser  <simon.fraser@apple.com>
3923
3924         Add a way to print the Frame tree from the debugger.
3925
3926         Reviewed by Sam Weinig.
3927         
3928         Add a showFrameTree(frame) method, callable from gdb,
3929         which dumps the Frame tree, including the frame's view,
3930         document, owner element and URI.
3931
3932         * page/FrameTree.cpp:
3933         (printIndent):
3934         (printFrames):
3935         (showFrameTree):
3936         * page/FrameTree.h:
3937         * rendering/RenderLayer.cpp:
3938         (WebCore::RenderLayer::updateClipRects):
3939         * rendering/RenderLayerCompositor.cpp:
3940         (WebCore::RenderLayerCompositor::requiresCompositingForFrame):
3941
3942 2011-10-20  Andreas Kling  <kling@webkit.org>
3943
3944         Remove StyleBase::cssText().
3945         https://bugs.webkit.org/show_bug.cgi?id=70521
3946
3947         Reviewed by Antti Koivisto.
3948
3949         * css/StyleBase.cpp:
3950         * css/StyleBase.h:
3951
3952 2011-10-20  Eugene Nalimov  <enal@chromium.org>
3953
3954         Playing HTMLAudioElement can be garbage collected
3955         https://bugs.webkit.org/show_bug.cgi?id=66878
3956
3957         Reviewed by Adam Barth.
3958
3959         Make HTMLAudioElement an 'active' one, meaning that it cannot be
3960         garbage collected if it has panding activity. Had to make
3961         HTMLMediaElement::hasPendingActivity() and
3962         HTMLAudioElement::hasPendingActivity() public, otherwise automatically
3963         generated code would not compile. 
3964
3965         Test: no test, as automatic test is blocked by
3966         https://bugs.webkit.org/show_bug.cgi?id=70421
3967         You don't want to sit down and listen if audio stream played completely,
3968         and cannot rely on 'ended' event because events are lost when events
3969         listener is collected. 
3970
3971         * html/HTMLAudioElement.idl:
3972         * html/HTMLAudioElement.h:
3973         (WebCore::HTMLAudioElement::hasPendingActivity):
3974         * html/HTMLMediaElement.h:
3975
3976 2011-10-20  Mark Hahnenberg  <mhahnenberg@apple.com>
3977
3978         Rename static deleteProperty to deletePropertyByIndex
3979         https://bugs.webkit.org/show_bug.cgi?id=70257
3980
3981         Reviewed by Geoffrey Garen.
3982
3983         No new tests.
3984
3985         Renaming versions of deleteProperty that use an unsigned as the property
3986         name to "deletePropertyByIndex" in preparation for adding them to the 
3987         MethodTable, which requires unique names for each method.
3988
3989         * bridge/runtime_array.cpp:
3990         (JSC::RuntimeArray::deletePropertyVirtual):
3991         (JSC::RuntimeArray::deletePropertyByIndex):
3992         * bridge/runtime_array.h:
3993
3994 2011-10-20  Eric Carlson  <eric.carlson@apple.com>
3995
3996         Rename some Cue classes to TextTrack
3997         https://bugs.webkit.org/show_bug.cgi?id=70346
3998
3999         Rename CueLoader -> TextTrackLoader, CachedCues -> CachedTextTrack, and CueIndex -> TextTrackIndex.
4000
4001         Reviewed by Darin Adler.
4002
4003         No new tests, renames only.
4004
4005         * CMakeLists.txt:
4006         * GNUmakefile.list.am:
4007         * WebCore.gypi:
4008         * WebCore.pro:
4009         * WebCore.xcodeproj/project.pbxproj:
4010         * html/CueIndex.cpp: Removed.
4011         * html/CueIndex.h: Removed.
4012         * html/LoadableTextTrack.cpp:
4013         (WebCore::LoadableTextTrack::load):
4014         (WebCore::LoadableTextTrack::newCuesAvailable):
4015         (WebCore::LoadableTextTrack::cueLoadingStarted):
4016         (WebCore::LoadableTextTrack::cueLoadingCompleted):
4017         * html/LoadableTextTrack.h:
4018         (WebCore::LoadableTextTrack::shouldLoadCues):
4019         * html/MutableTextTrack.h:
4020         * html/TextTrackIndex.cpp: Copied from Source/WebCore/html/CueIndex.cpp.
4021         (WebCore::TextTrackCueSet::difference):
4022         (WebCore::TextTrackCueSet::unionSet):
4023         (WebCore::TextTrackCueSet::add):
4024         (WebCore::TextTrackCueSet::contains):
4025         (WebCore::TextTrackCueSet::remove):
4026         (WebCore::TextTrackCueSet::isEmpty):
4027         (WebCore::TextTrackCueSet::size):
4028         (WebCore::TextTrackIndex::fetchNewCuesFromLoader):
4029         (WebCore::TextTrackIndex::removeCuesFromIndex):
4030         (WebCore::TextTrackIndex::visibleCuesAtTime):
4031         (WebCore::TextTrackIndex::add):
4032         (WebCore::TextTrackIndex::remove):
4033         * html/TextTrackIndex.h: Copied from Source/WebCore/html/CueIndex.h.
4034         (WebCore::TextTrackCueSet::TextTrackCueSet):
4035         (WebCore::TextTrackCueSet::~TextTrackCueSet):
4036         * loader/CueLoader.cpp: Removed.
4037         * loader/CueLoader.h: Removed.
4038         * loader/TextTrackLoader.cpp: Copied from Source/WebCore/loader/CueLoader.cpp.
4039         (WebCore::TextTrackLoader::TextTrackLoader):
4040         (WebCore::TextTrackLoader::~TextTrackLoader):
4041         (WebCore::TextTrackLoader::cueLoadTimerFired):
4042         (WebCore::TextTrackLoader::processNewCueData):
4043         (WebCore::TextTrackLoader::didReceiveData):
4044         (WebCore::TextTrackLoader::notifyFinished):
4045         (WebCore::TextTrackLoader::load):
4046         (WebCore::TextTrackLoader::newCuesParsed):
4047         (WebCore::TextTrackLoader::getNewCues):
4048         * loader/TextTrackLoader.h: Copied from Source/WebCore/loader/CueLoader.h.
4049         (WebCore::TextTrackLoaderClient::~TextTrackLoaderClient):
4050         (WebCore::TextTrackLoader::create):
4051         * loader/cache/CachedCues.cpp: Removed.
4052         * loader/cache/CachedCues.h: Removed.
4053         * loader/cache/CachedResourceLoader.cpp:
4054         (WebCore::createResource):
4055         (WebCore::CachedResourceLoader::requestCues):
4056         * loader/cache/CachedResourceLoader.h:
4057         * loader/cache/CachedTextTrack.cpp: Copied from Source/WebCore/loader/cache/CachedCues.cpp.
4058         (WebCore::CachedTextTrack::CachedTextTrack):
4059         (WebCore::CachedTextTrack::~CachedTextTrack):
4060         (WebCore::CachedTextTrack::data):
4061         * loader/cache/CachedTextTrack.h: Copied from Source/WebCore/loader/cache/CachedCues.h.
4062
4063 2011-10-20  Joseph Pecoraro  <joepeck@webkit.org>
4064
4065         Remove Now Unused FileChooserSettings.deprecatedAcceptTypes
4066         https://bugs.webkit.org/show_bug.cgi?id=70473
4067
4068         Reviewed by Dan Bernstein.
4069
4070         * html/FileInputType.cpp:
4071         (WebCore::FileInputType::handleDOMActivateEvent):
4072         (WebCore::FileInputType::receiveDropForDirectoryUpload):
4073         * platform/FileChooser.h:
4074
4075 2011-10-20  Andreas Kling  <kling@webkit.org>
4076
4077         Simplify CSSParser::document().
4078         https://bugs.webkit.org/show_bug.cgi?id=70518
4079
4080         Reviewed by Antti Koivisto.
4081
4082         We don't need to climb up the entire parent chain here to find the
4083         Document, just grab it from m_styleSheet (which will do the climbing
4084         for us if necessary.)
4085
4086         * css/CSSParser.cpp:
4087         (WebCore::CSSParser::document):
4088
4089 2011-10-20  Pierre Rossi  <pierre.rossi@gmail.com>