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