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