764cbb17de53c7a0c9e03bdd38d097b4288345c9
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-11-22  Andreas Kling  <kling@webkit.org>
2
3         CSSProperty: Remove unnecessary operator overloads.
4         <http://webkit.org/b/72953>
5
6         Reviewed by Antti Koivisto.
7
8         * css/CSSProperty.cpp:
9         * css/CSSProperty.h:
10
11             Remove operator= and operator== from CSSProperty. They were neither
12             implemented correctly nor used anywhere.
13
14 2011-11-22  Andreas Kling  <kling@webkit.org>
15
16         CSSStyleDeclaration: Kill FIXME in setProperty().
17         <http://webkit.org/b/72958>
18
19         Reviewed by Antonio Gomes.
20
21         Remove FIXME about possibly throwing an exception when setProperty()
22         is called with an invalid property name. CSSOM specifies that the
23         method should simply return in this case.
24
25         Spec: http://dev.w3.org/csswg/cssom/#dom-cssstyledeclaration-setproperty
26
27         * css/CSSStyleDeclaration.cpp:
28         (WebCore::CSSStyleDeclaration::setProperty):
29
30 2011-11-22  Shinya Kawanaka  <shinyak@google.com>
31
32         Spellcheck should be able to run asynchronously.
33         https://bugs.webkit.org/show_bug.cgi?id=71991
34
35         Reviewed by Hajime Morita.
36
37         Run asynchronous spell checker if both asynchronous flag and unified text checker flag are ON.
38
39         When multiple asynchronous spellchecking are requested, only the first request will be processed.
40
41         Test: editing/spelling/spellcheck-async.html
42
43         * editing/Editor.cpp:
44         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
45           Uses asynchronous spell checker if asynchronous flag is ON.
46
47 2011-11-22  Alexander Pavlov  <apavlov@chromium.org>
48
49         Web Inspector: [SuggestBox] Grayed prompt displayed with non-collapsed selection in place
50         https://bugs.webkit.org/show_bug.cgi?id=72951
51
52         Reviewed by Pavel Feldman.
53
54         * inspector/front-end/TextPrompt.js:
55         (WebInspector.TextPrompt.prototype.complete):
56
57 2011-11-22  Pavel Feldman  <pfeldman@google.com>
58
59         Not reviewed: fix inspector front-end compilation.
60
61         * inspector/front-end/externs.js:
62         (WebInspector.showPanel):
63
64 2011-11-22  Adam Bergkvist  <adam.bergkvist@ericsson.com>
65
66         Add WebCore platform interface needed by updated MediaStream API design
67         https://bugs.webkit.org/show_bug.cgi?id=70895
68
69         Reviewed by Adam Barth.
70
71         This is one in a series of patches that update the MediaStream feature
72         to use WebCore platform interfaces.
73
74         Tests will be provided by http://webkit.org/b/56587
75
76         * GNUmakefile.list.am:
77         * WebCore.gypi:
78         * mediastream/LocalMediaStream.cpp:
79         (WebCore::LocalMediaStream::stopTimerFired):
80         * mediastream/MediaStream.h:
81         * mediastream/MediaStreamTrack.cpp:
82         (WebCore::MediaStreamTrack::setEnabled):
83         * mediastream/PeerConnection.cpp:
84         (WebCore::PeerConnection::didRemoveRemoteStream):
85         * mediastream/UserMediaRequest.cpp:
86         (WebCore::UserMediaRequest::start):
87         * mediastream/UserMediaRequest.h:
88         * platform/mediastream/MediaStreamCenter.cpp: Added.
89         (WebCore::MediaStreamCenter::instance):
90         (WebCore::MediaStreamCenter::endLocalMediaStream):
91         (WebCore::MediaStreamCenter::MediaStreamCenter):
92         (WebCore::MediaStreamCenter::~MediaStreamCenter):
93         (WebCore::MediaStreamCenter::queryMediaStreamSources):
94         (WebCore::MediaStreamCenter::didSetMediaStreamTrackEnabled):
95         (WebCore::MediaStreamCenter::didStopLocalMediaStream):
96         * platform/mediastream/MediaStreamCenter.h: Added.
97         (WebCore::MediaStreamSourcesQueryClient::~MediaStreamSourcesQueryClient):
98         * platform/mediastream/MediaStreamDescriptor.h:
99         (WebCore::MediaStreamDescriptorOwner::~MediaStreamDescriptorOwner):
100         (WebCore::MediaStreamDescriptor::owner):
101         (WebCore::MediaStreamDescriptor::setOwner):
102
103 2011-11-22  Pavel Feldman  <pfeldman@google.com>
104
105         Web Inspector: remove Inspector::bringToFront from the protocol.
106         https://bugs.webkit.org/show_bug.cgi?id=72937
107
108         Inspector::bringToFront protocol method is currently used on the backend
109         in order to reveal the front-end window. We should do that by means of
110         the inspector client interface instead.
111
112         Reviewed by Yury Semikhatsky.
113
114         * inspector/Inspector.json:
115         * inspector/InspectorClient.h:
116         * inspector/InspectorController.cpp:
117         (WebCore::InspectorController::show):
118         * loader/EmptyClients.h:
119         (WebCore::EmptyInspectorClient::bringFrontendToFront):
120
121 2011-11-21  Andrey Kosyakov  <caseq@chromium.org>
122
123         Web Inspector: [Extensions API][refactoring] remove dependencies on the ExtensionsServer from most of the insepctor
124         https://bugs.webkit.org/show_bug.cgi?id=72899
125
126         Reviewed by Pavel Feldman.
127
128         * inspector/front-end/ElementsPanel.js:
129         (WebInspector.ElementsPanel.prototype._selectedNodeChanged):
130         * inspector/front-end/ExtensionServer.js:
131         (WebInspector.ExtensionServer.prototype._notifyResourceContentCommitted):
132         (WebInspector.ExtensionServer.prototype._notifyElementsSelectionChanged):
133         * inspector/front-end/Resource.js:
134         (WebInspector.Resource.prototype.addRevision):
135         * inspector/front-end/externs.js:
136
137 2011-11-22  Zoltan Horvath  <zoltan@webkit.org>
138
139         [Qt] Build fix for MHTML support
140
141         * Target.pri: Add missing includepath.
142
143 2011-11-22  Vsevolod Vlasov  <vsevik@chromium.org>
144
145         Web Inspector: Extract SplitView from Panel.createSidebar() method and reuse in Elements and Scripts panels.
146         https://bugs.webkit.org/show_bug.cgi?id=72920
147
148         Reviewed by Pavel Feldman.
149
150         * WebCore.gypi:
151         * WebCore.vcproj/WebCore.vcproj:
152         * inspector/compile-front-end.sh:
153         * inspector/front-end/ApplicationCacheModel.js:
154         * inspector/front-end/AuditsPanel.js:
155         (WebInspector.AuditsPanel):
156         * inspector/front-end/ElementsPanel.js:
157         (WebInspector.ElementsPanel):
158         (WebInspector.ElementsPanel.prototype.wasShown):
159         (WebInspector.ElementsPanel.prototype.sidebarResized):
160         (WebInspector.ElementsPanel.prototype.toggleSearchingForNode):
161         * inspector/front-end/NetworkPanel.js:
162         (WebInspector.NetworkPanel.prototype.wasShown):
163         (WebInspector.NetworkPanel.prototype._showResource):
164         (WebInspector.NetworkPanel.prototype._closeVisibleResource):
165         (WebInspector.NetworkPanel.prototype._toggleGridMode):
166         (WebInspector.NetworkPanel.prototype._toggleViewingResourceMode):
167         * inspector/front-end/Panel.js:
168         (WebInspector.Panel.prototype.wasShown):
169         (WebInspector.Panel.prototype.createSplitView):
170         (WebInspector.Panel.prototype.createSplitViewWithSidebarTree):
171         (WebInspector.Panel.prototype.sidebarResized):
172         * inspector/front-end/ProfilesPanel.js:
173         (WebInspector.ProfilesPanel.prototype._reset):
174         (WebInspector.ProfilesPanel.prototype.sidebarResized):
175         * inspector/front-end/ResourcesPanel.js:
176         (WebInspector.ResourcesPanel.prototype.sidebarResized):
177         * inspector/front-end/ScriptsPanel.js:
178         (WebInspector.ScriptsPanel.prototype.wasShown):
179         (WebInspector.ScriptsPanel.prototype.sidebarResized):
180         * inspector/front-end/SplitView.js: Added.
181         (WebInspector.SplitView):
182         * inspector/front-end/TimelineOverviewPane.js:
183         (WebInspector.TimelineOverviewPane.prototype.sidebarResized):
184         * inspector/front-end/TimelinePanel.js:
185         (WebInspector.TimelinePanel):
186         (WebInspector.TimelinePanel.prototype.sidebarResized):
187         (WebInspector.TimelinePanel.prototype._refreshRecords):
188         * inspector/front-end/WebKit.qrc:
189         * inspector/front-end/auditsPanel.css:
190         * inspector/front-end/elementsPanel.css:
191         * inspector/front-end/inspector.css:
192         (.sidebar):
193         * inspector/front-end/inspector.html:
194         * inspector/front-end/networkLogView.css:
195         * inspector/front-end/networkPanel.css:
196         (#network-views):
197         * inspector/front-end/profilesPanel.css:
198         (#profile-views):
199         * inspector/front-end/resourcesPanel.css:
200         * inspector/front-end/scriptsPanel.css:
201         (#scripts-split-view):
202         * inspector/front-end/splitView.css: Added.
203         * inspector/front-end/timelinePanel.css:
204         (.timeline .sidebar):
205         (.timeline-sidebar-background):
206         (#resources-container-content):
207
208 2011-11-22  Sheriff Bot  <webkit.review.bot@gmail.com>
209
210         Unreviewed, rolling out r100988.
211         http://trac.webkit.org/changeset/100988
212         https://bugs.webkit.org/show_bug.cgi?id=72941
213
214         "Broke pixel tests on Chromium-Linux" (Requested by kbalazs on
215         #webkit).
216
217         * platform/graphics/filters/FEConvolveMatrix.cpp:
218         (WebCore::FEConvolveMatrix::platformApplySoftware):
219         * platform/graphics/filters/FEConvolveMatrix.h:
220         * platform/graphics/filters/FEGaussianBlur.cpp:
221         (WebCore::FEGaussianBlur::platformApply):
222         * platform/graphics/filters/FEGaussianBlur.h:
223         * platform/graphics/filters/FELighting.cpp:
224         (WebCore::FELighting::platformApplyGeneric):
225         * platform/graphics/filters/FELighting.h:
226         * platform/graphics/filters/FEMorphology.cpp:
227         (WebCore::FEMorphology::platformApply):
228         * platform/graphics/filters/FEMorphology.h:
229         * platform/graphics/filters/FETurbulence.cpp:
230         (WebCore::FETurbulence::platformApplySoftware):
231         * platform/graphics/filters/FETurbulence.h:
232         * platform/graphics/filters/arm/FELightingNEON.cpp:
233         * platform/graphics/filters/arm/FELightingNEON.h:
234         (WebCore::FELighting::platformApplyNeon):
235
236 2011-11-21  Balazs Kelemen  <kbalazs@webkit.org>
237
238         Enable ParallelJobs by default
239         https://bugs.webkit.org/show_bug.cgi?id=70032
240
241         Reviewed by Zoltan Herczeg.
242
243         Covered by existing tests.
244
245         According to measurements on Mac and Linux it is a
246         considerable speedup for SVG on multicore.
247
248         Remove the ENABLE(PARALLEL_JOBS) guard. Fix the Windows build
249         by qualifying ParallelJobs with the WTF namespace (otherwise
250         MSVC believes it belongs to WebCore which is likely a compiler bug).
251
252         * platform/graphics/filters/FEConvolveMatrix.cpp:
253         (WebCore::FEConvolveMatrix::setInteriorPixelsWorker):
254         (WebCore::FEConvolveMatrix::platformApplySoftware):
255         * platform/graphics/filters/FEConvolveMatrix.h:
256         * platform/graphics/filters/FEGaussianBlur.cpp:
257         (WebCore::FEGaussianBlur::platformApplyWorker):
258         (WebCore::FEGaussianBlur::platformApply):
259         * platform/graphics/filters/FEGaussianBlur.h:
260         * platform/graphics/filters/FELighting.cpp:
261         (WebCore::FELighting::platformApplyGenericWorker):
262         (WebCore::FELighting::platformApplyGeneric):
263         * platform/graphics/filters/FELighting.h:
264         * platform/graphics/filters/FEMorphology.cpp:
265         (WebCore::FEMorphology::platformApplyWorker):
266         (WebCore::FEMorphology::platformApply):
267         * platform/graphics/filters/FEMorphology.h:
268         * platform/graphics/filters/FETurbulence.cpp:
269         (WebCore::FETurbulence::fillRegionWorker):
270         (WebCore::FETurbulence::platformApplySoftware):
271         * platform/graphics/filters/FETurbulence.h:
272         * platform/graphics/filters/arm/FELightingNEON.cpp:
273         (WebCore::FELighting::platformApplyNeonWorker):
274         * platform/graphics/filters/arm/FELightingNEON.h:
275         (WebCore::FELighting::platformApplyNeon):
276
277 2011-11-22  Alexander Pavlov  <apavlov@chromium.org>
278
279         Web Inspector: [protocol] actual JSON messages do not conform to Inspector.json in CSS
280         https://bugs.webkit.org/show_bug.cgi?id=72733
281
282         Reviewed by Pavel Feldman.
283
284         * inspector/Inspector.json:
285         * inspector/InspectorCSSAgent.cpp:
286         (WebCore::InspectorCSSAgent::getComputedStyleForNode):
287         * inspector/InspectorCSSAgent.h:
288         * inspector/InspectorStyleSheet.cpp:
289         (WebCore::InspectorStyle::buildArrayForComputedStyle):
290         * inspector/InspectorStyleSheet.h:
291         * inspector/front-end/CSSStyleModel.js:
292         (WebInspector.CSSStyleModel.prototype.getComputedStyleAsync):
293         (WebInspector.CSSStyleDeclaration.parseComputedStylePayload):
294
295 2011-11-22  Pavel Feldman  <pfeldman@google.com>
296
297         Web Inspector: strip unused InspectorController methods.
298         https://bugs.webkit.org/show_bug.cgi?id=72886
299
300         This is a follow up to the https://bugs.webkit.org/show_bug.cgi?id=63009.
301         I am now able to remove following InspectorController methods:
302         ::startUserInitiatedProfiling,
303         ::isRecordingUserInitiatedProfile,
304         ::stopUserInitiatedProfiling,
305         ::showAndEnableDebugger,
306         ::debuggerEnabled,
307         ::disableDebugger,
308         ::startTimelineProfiler,
309         ::stopTimelineProfiler,
310         ::timelineProfilerEnabled,
311         ::showConsole.
312
313         Reviewed by Yury Semikhatsky.
314
315         * WebCore.exp.in:
316         * WebCore.order:
317         * inspector/Inspector.json:
318         * inspector/InspectorAgent.cpp:
319         (WebCore::InspectorAgent::setFrontend):
320         * inspector/InspectorAgent.h:
321         * inspector/InspectorController.cpp:
322         (WebCore::InspectorController::InspectorController):
323         (WebCore::InspectorController::connectFrontend):
324         * inspector/InspectorController.h:
325         * inspector/InspectorDebuggerAgent.cpp:
326         (WebCore::InspectorDebuggerAgent::enable):
327         (WebCore::InspectorDebuggerAgent::disable):
328         * inspector/InspectorDebuggerAgent.h:
329         * inspector/InspectorInstrumentation.cpp:
330         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
331         * inspector/InspectorProfilerAgent.cpp:
332         (WebCore::InspectorProfilerAgent::resetState):
333         (WebCore::InspectorProfilerAgent::clearFrontend):
334         (WebCore::InspectorProfilerAgent::restore):
335         (WebCore::InspectorProfilerAgent::start):
336         (WebCore::InspectorProfilerAgent::stop):
337         * inspector/InspectorProfilerAgent.h:
338         * inspector/InspectorTimelineAgent.cpp:
339         (WebCore::InspectorTimelineAgent::start):
340         (WebCore::InspectorTimelineAgent::stop):
341         * inspector/InspectorTimelineAgent.h:
342         * inspector/front-end/DebuggerModel.js:
343         (WebInspector.DebuggerModel.prototype.enableDebugger):
344         (WebInspector.DebuggerModel.prototype.disableDebugger):
345         * inspector/front-end/TimelineManager.js:
346         (WebInspector.TimelineManager.prototype.start):
347         (WebInspector.TimelineManager.prototype.stop):
348         (WebInspector.TimelineManager.prototype._started):
349         (WebInspector.TimelineManager.prototype._stopped):
350         * inspector/front-end/inspector.js:
351
352 2011-11-17  Nat Duca  <nduca@chromium.org>
353
354         [chromium] Route willDraw/setNeedsRedraw to CCInputHandler and fix double-drawing issues that result
355         https://bugs.webkit.org/show_bug.cgi?id=72688
356
357         This allows CCInputFilter and CCLayerTreeHostImpl to
358         perform requestAnimationFrame-style animations. The bulk of
359         work here is to make the scheduler recover gracefully when you
360         call setNeedsRedraw inside scheduledActionDraw.
361
362         Reviewed by James Robinson.
363
364         * WebCore.gypi:
365         * platform/graphics/chromium/cc/CCInputHandler.h:
366         (WebCore::CCInputHandlerTarget::CCInputHandlerTarget):
367         (WebCore::CCInputHandlerTarget::~CCInputHandlerTarget):
368         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
369         (WebCore::CCLayerTreeHostImpl::currentTimeMs):
370         (WebCore::CCLayerTreeHostImpl::setNeedsRedraw):
371         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
372         * platform/graphics/chromium/cc/CCScheduler.cpp:
373         (WebCore::CCScheduler::CCScheduler):
374         (WebCore::CCScheduler::setVisible):
375         (WebCore::CCScheduler::setNeedsRedraw):
376         (WebCore::CCScheduler::beginFrame):
377         (WebCore::CCScheduler::processScheduledActions):
378         * platform/graphics/chromium/cc/CCScheduler.h:
379         * platform/graphics/chromium/cc/CCSchedulerStateMachine.cpp:
380         (WebCore::CCSchedulerStateMachine::CCSchedulerStateMachine):
381         (WebCore::CCSchedulerStateMachine::nextAction):
382         (WebCore::CCSchedulerStateMachine::updateState):
383         (WebCore::CCSchedulerStateMachine::setInsideVSync):
384         (WebCore::CCSchedulerStateMachine::setOutsideVSync):
385         * platform/graphics/chromium/cc/CCSchedulerStateMachine.h:
386         * platform/graphics/chromium/cc/CCScrollController.h: Removed.
387         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
388         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
389         (WebCore::CCThreadProxy::scheduledActionDrawAndSwap):
390
391 2011-11-22  Alexander Pavlov  <apavlov@chromium.org>
392
393         Web Inspector: Design of the autocomplete suggest
394         https://bugs.webkit.org/show_bug.cgi?id=72798
395
396         Reviewed by Pavel Feldman.
397
398         Implemented a combination of grayed text for the first/only completion and hid
399         the suggest box for a single suggestion (the grayed text is displayed instead.)
400         Drive-by fix for the "trailing spaces in the prompt" issue
401         (got regressed when the suggest box was introduced for the first time.)
402
403         * inspector/front-end/ConsoleView.js:
404         (WebInspector.ConsoleView): Fix the "trailing spaces" issue
405         * inspector/front-end/TextPrompt.js:
406         (WebInspector.TextPrompt):
407         (WebInspector.TextPrompt.prototype.renderAsBlock): Fix the "trailing spaces" issue
408         (WebInspector.TextPrompt.prototype._attachInternal):
409         (WebInspector.TextPrompt.prototype.acceptAutoComplete):
410         (WebInspector.TextPrompt.prototype._completionsReady):
411         (WebInspector.TextPrompt.prototype.applySuggestion):
412         (WebInspector.TextPrompt.prototype.acceptSuggestion):
413         (WebInspector.TextPrompt.SuggestBox.prototype._completionsReady):
414
415 2011-11-21  David Barr  <davidbarr@chromium.org>
416
417         REGRESSION(r98542): Chromium: CSS text is rendered on page
418         https://bugs.webkit.org/show_bug.cgi?id=71703
419
420         Reviewed by Dimitri Glazkov.
421
422         Matched UA declarations uncacheable when using simpleDefaultStyleSheet.
423
424         Test: fast/css/style-tag-display-none.html
425
426         * css/CSSStyleSelector.cpp:
427         (WebCore::CSSStyleSelector::matchUARules):
428
429 2011-11-21  Rob Brackett  <rob@robbrackett.com>
430         
431         If an event listener is a function, it should be called and not checked for handleEvent.
432         This also covers callbacks, which follow the same spec but are implemented separately.
433         https://bugs.webkit.org/show_bug.cgi?id=62518
434
435         Reviewed by Sam Weinig.
436
437         Tests: fast/events/dispatch-to-function-with-handle-event.html
438                fast/js/callback-function-with-handle-event.html
439
440         * bindings/js/JSCallbackData.cpp:
441         (WebCore::JSCallbackData::invokeCallback):
442         * bindings/js/JSEventListener.cpp:
443         (WebCore::JSEventListener::handleEvent):
444
445 2011-11-21  Rakesh KN  <rakesh.kn@motorola.com>
446
447         Need support for dirname attribute
448         https://bugs.webkit.org/show_bug.cgi?id=65542
449
450         Reviewed by Eric Seidel.
451
452         Implemented 'dirname' form attribute.
453
454         Tests: fast/forms/form-dirname-attribute.html
455                fast/forms/submit-form-with-dirname-attribute-with-ancestor-dir-attribute.html
456                fast/forms/submit-form-with-dirname-attribute-with-nonhtml-ancestor.html
457                fast/forms/submit-form-with-dirname-attribute.html
458
459         * html/HTMLAttributeNames.in:
460         Added "dirname" attribute.
461         * html/HTMLInputElement.idl:
462         Add "dirName" property to HTMLInputElement interface.
463         * html/HTMLTextAreaElement.cpp:
464         (WebCore::HTMLTextAreaElement::appendFormData):
465         Append dirname form data.
466         * html/HTMLTextAreaElement.idl:
467         Add "dirName" property to HTMLTextAreaElement interface.
468         * html/HTMLTextFormControlElement.cpp:
469         (WebCore::parentHTMLElement):
470         Helper function which returns only HTML parent element.
471         (WebCore::HTMLTextFormControlElement::directionForFormData):
472         Helper function for finding directionality of the Element.
473         * html/HTMLTextFormControlElement.h:
474         Helper function for finding directionality of the Element.
475         * html/TextFieldInputType.cpp:
476         (WebCore::TextFieldInputType::appendFormData):
477         Append dirname form data.
478         * html/TextFieldInputType.h:
479         Append dirname form data.
480
481 2011-11-21  Joshua Bell  <jsbell@chromium.org>
482
483         IndexedDB: Close database connections, abort transactions, and terminate requests on stop()
484         https://bugs.webkit.org/show_bug.cgi?id=72066
485
486         Reviewed by Tony Chang.
487
488         No new tests; addresses race conditions on document navigate/script context stop.
489
490         * dom/DocumentEventQueue.cpp:
491         (WebCore::DocumentEventQueue::enqueueEvent):
492         * dom/DocumentEventQueue.h:
493         * dom/EventQueue.h:
494         * storage/IDBDatabase.cpp:
495         (WebCore::IDBDatabase::IDBDatabase):
496         (WebCore::IDBDatabase::~IDBDatabase):
497         (WebCore::IDBDatabase::transaction):
498         (WebCore::IDBDatabase::close):
499         (WebCore::IDBDatabase::onVersionChange):
500         (WebCore::IDBDatabase::enqueueEvent):
501         (WebCore::IDBDatabase::stop):
502         * storage/IDBDatabase.h:
503         * storage/IDBFactory.cpp:
504         (WebCore::IDBFactory::IDBFactory):
505         (WebCore::IDBFactory::getDatabaseNames):
506         (WebCore::IDBFactory::open):
507         (WebCore::IDBFactory::deleteDatabase):
508         * storage/IDBFactory.h:
509         * storage/IDBObjectStore.cpp:
510         (WebCore::IDBObjectStore::IDBObjectStore):
511         (WebCore::IDBObjectStore::name):
512         (WebCore::IDBObjectStore::keyPath):
513         (WebCore::IDBObjectStore::indexNames):
514         (WebCore::IDBObjectStore::get):
515         (WebCore::IDBObjectStore::add):
516         (WebCore::IDBObjectStore::put):
517         (WebCore::IDBObjectStore::deleteFunction):
518         (WebCore::IDBObjectStore::clear):
519         (WebCore::IDBObjectStore::createIndex):
520         (WebCore::IDBObjectStore::index):
521         (WebCore::IDBObjectStore::deleteIndex):
522         (WebCore::IDBObjectStore::openCursor):
523         * storage/IDBObjectStore.h:
524         * storage/IDBRequest.cpp:
525         (WebCore::IDBRequest::IDBRequest):
526         (WebCore::IDBRequest::abort):
527         (WebCore::IDBRequest::onSuccess):
528         (WebCore::IDBRequest::onSuccessWithContinuation):
529         (WebCore::IDBRequest::stop):
530         (WebCore::IDBRequest::dispatchEvent):
531         (WebCore::IDBRequest::enqueueEvent):
532         * storage/IDBRequest.h:
533         * storage/IDBTransaction.cpp:
534         (WebCore::IDBTransaction::IDBTransaction):
535         (WebCore::IDBTransaction::abort):
536         (WebCore::IDBTransaction::onAbort):
537         (WebCore::IDBTransaction::onComplete):
538         (WebCore::IDBTransaction::dispatchEvent):
539         (WebCore::IDBTransaction::stop):
540         (WebCore::IDBTransaction::enqueueEvent):
541         * storage/IDBTransaction.h:
542         * storage/IDBTransactionBackendImpl.cpp:
543         (WebCore::IDBTransactionBackendImpl::abort):
544         (WebCore::IDBTransactionBackendImpl::commit):
545         * workers/WorkerEventQueue.cpp:
546         (WebCore::WorkerEventQueue::enqueueEvent):
547         * workers/WorkerEventQueue.h:
548
549 2011-11-21  James Robinson  <jamesr@chromium.org>
550
551         [chromium] Avoid pushing dirty tiles to the impl layer
552         https://bugs.webkit.org/show_bug.cgi?id=72765
553
554         Reviewed by Kenneth Russell.
555
556         If a tile has invalidations at pushPropertiesTo, then we know the contents of that tile are no longer valid even
557         if they still have valid backing textures. This avoids pushing that texture to the impl side so it is not
558         displayed to the user. The texture is still kept around (managed by the TextureManager) so that when we later do
559         decide to update the contents for that tile we can use partial results if they are still valid.
560
561         Covered by new unit test in TiledLayerChromiumTest.cpp
562
563         * platform/graphics/chromium/TiledLayerChromium.cpp:
564         (WebCore::UpdatableTile::isDirty):
565         (WebCore::TiledLayerChromium::updateTileSizeAndTilingOption):
566         (WebCore::TiledLayerChromium::setTileSize):
567         (WebCore::TiledLayerChromium::setLayerTreeHost):
568         (WebCore::TiledLayerChromium::createTiler):
569         (WebCore::TiledLayerChromium::updateCompositorResources):
570         (WebCore::TiledLayerChromium::pushPropertiesTo):
571         * platform/graphics/chromium/TiledLayerChromium.h:
572         (WebCore::TiledLayerChromium::setTextureFormat):
573         * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
574         (WebCore::CCTiledLayerImpl::hasTileAt):
575         (WebCore::CCTiledLayerImpl::drawTiles):
576         * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
577
578 2011-11-21  Simon Hausmann  <simon.hausmann@nokia.com>
579
580         [Qt] Speed up debug builds.
581         https://bugs.webkit.org/show_bug.cgi?id=72882
582
583         Reviewed by Tor Arne Vestbø.
584
585         * Target.pri: Make BUILDING_WebCore available earlier, so it can be
586         used by the build system.
587
588 2011-11-17  Robert Hogan  <robert@webkit.org>
589
590         CSS 2.1 failure: empty-inline-003.htm fails
591         https://bugs.webkit.org/show_bug.cgi?id=72638
592
593         Reviewed by Ryosuke Niwa.
594
595         Empty inline elements need to share their inline height with siblings.
596
597         * rendering/RenderBlockLineLayout.cpp:
598         (WebCore::inlineFlowRequiresLineBox): In strict mode, add a LineBox for an empty element if it is
599         going to affect the line-height.
600         (WebCore::requiresLineBox): Pass LineInfo to inlineFlowRequiresLineBox
601         (WebCore::RenderBlock::LineBreaker::nextLineBreak): Pass LineInfo to inlineFlowRequiresLineBox
602
603 2011-11-21  Adrienne Walker  <enne@google.com>
604
605         [chromium] Remove incorrect render surface layer list asserts from compositor
606         https://bugs.webkit.org/show_bug.cgi?id=72744
607
608         Reviewed by James Robinson.
609
610         These asserts are incorrect, because it's valid for the default render
611         surface to be created but to have a root layer that doesn't draw. It
612         won't get added to the single render surface and it'll have an empty
613         layer list.
614
615         Test: compositor_unittests
616
617         * platform/graphics/chromium/LayerRendererChromium.cpp:
618         (WebCore::LayerRendererChromium::drawLayersOntoRenderSurfaces):
619         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
620         (WebCore::CCLayerTreeHost::paintLayerContents):
621         (WebCore::CCLayerTreeHost::updateCompositorResources):
622
623 2011-11-21  Andreas Kling  <kling@webkit.org>
624
625         StyleSheet: Move completeURL() to CSSStyleSheet.
626         <http://webkit.org/b/72888>
627
628         Reviewed by Antti Koivisto.
629
630         Since completeURL() is only used on CSSStyleSheets, move it there (and make
631         it non-virtual) to make StyleSheet a little leaner.
632
633         * css/CSSStyleSheet.cpp:
634         (WebCore::CSSStyleSheet::completeURL):
635         * css/CSSStyleSheet.h:
636         * css/StyleSheet.cpp:
637         * css/StyleSheet.h:
638
639 2011-11-21  Robin Dunn  <robin@alldunn.com>
640
641         [wx] Fix image translation calculations.
642         https://bugs.webkit.org/show_bug.cgi?id=72892
643
644         Reviewed by Kevin Ollivier.
645
646         * platform/graphics/wx/ImageWx.cpp:
647         (WebCore::Image::drawPattern):
648
649 2011-11-21  Scott Graham  <scottmg@chromium.org>
650
651         copyright comment style to C from C++ for gamepad module
652         https://bugs.webkit.org/show_bug.cgi?id=72894
653
654         Reviewed by Sam Weinig.
655
656         Just changes comment format, no code/test changes.
657
658         * Modules/gamepad/Gamepad.cpp:
659         * Modules/gamepad/Gamepad.h:
660         * Modules/gamepad/Gamepad.idl:
661         * Modules/gamepad/GamepadList.cpp:
662         * Modules/gamepad/GamepadList.h:
663         * Modules/gamepad/GamepadList.idl:
664
665 2011-11-21  Andreas Kling  <kling@webkit.org>
666
667         JSC/CSSOM: Merge root() for style declaration objects.
668         <http://webkit.org/b/72881>
669
670         Reviewed by Antti Koivisto.
671
672         Fold root(CSSMutableStyleDeclaration*) into root(CSSStyleDeclaration*),
673         removing a duplicated chunk and making it a little easier on the eyes.
674
675         * bindings/js/JSDOMBinding.h:
676         (WebCore::root):
677
678 2011-11-21  Igor Oliveira  <igor.oliveira@openbossa.org>
679
680         [WK2][Qt] Move Accelerated Composite animations to UIProcess
681         https://bugs.webkit.org/show_bug.cgi?id=72753
682         
683         Add helper method to synchronize animations in TextureMapper.
684
685         Reviewed by Noam Rosenthal.
686
687         * platform/graphics/texmap/TextureMapperNode.cpp:
688         (WebCore::TextureMapperNode::syncAnimationsRecursively):
689         * platform/graphics/texmap/TextureMapperNode.h:
690
691 2011-11-21  Sheriff Bot  <webkit.review.bot@gmail.com>
692
693         Unreviewed, rolling out r100913.
694         http://trac.webkit.org/changeset/100913
695         https://bugs.webkit.org/show_bug.cgi?id=72885
696
697         "Break Windows build" (Requested by kbalazs on #webkit).
698
699         * platform/graphics/filters/FEConvolveMatrix.cpp:
700         (WebCore::FEConvolveMatrix::platformApplySoftware):
701         * platform/graphics/filters/FEConvolveMatrix.h:
702         * platform/graphics/filters/FEGaussianBlur.cpp:
703         (WebCore::FEGaussianBlur::platformApply):
704         * platform/graphics/filters/FEGaussianBlur.h:
705         * platform/graphics/filters/FELighting.cpp:
706         (WebCore::FELighting::platformApplyGeneric):
707         * platform/graphics/filters/FELighting.h:
708         * platform/graphics/filters/FEMorphology.cpp:
709         (WebCore::FEMorphology::platformApply):
710         * platform/graphics/filters/FEMorphology.h:
711         * platform/graphics/filters/FETurbulence.cpp:
712         (WebCore::FETurbulence::platformApplySoftware):
713         * platform/graphics/filters/FETurbulence.h:
714         * platform/graphics/filters/arm/FELightingNEON.cpp:
715         * platform/graphics/filters/arm/FELightingNEON.h:
716         (WebCore::FELighting::platformApplyNeon):
717
718 2011-11-21  Balazs Kelemen  <kbalazs@webkit.org>
719
720         Enable ParallelJobs by default
721         https://bugs.webkit.org/show_bug.cgi?id=70032
722
723         Reviewed by Zoltan Herczeg.
724
725         Covered by existing tests.
726
727         According to measurements on Mac and Linux it is a
728         considerable speedup for SVG on multicore.
729
730         Remove the ENABLE(PARALLEL_JOBS) guard. Fix the Windows build
731         by qualifying ParallelJobs with the WTF namespace (otherwise
732         MSVC believes it belongs to WebCore which is likely a compiler bug).
733
734         * platform/graphics/filters/FEConvolveMatrix.cpp:
735         (WebCore::FEConvolveMatrix::setInteriorPixelsWorker):
736         (WebCore::FEConvolveMatrix::platformApplySoftware):
737         * platform/graphics/filters/FEConvolveMatrix.h:
738         * platform/graphics/filters/FEGaussianBlur.cpp:
739         (WebCore::FEGaussianBlur::platformApplyWorker):
740         (WebCore::FEGaussianBlur::platformApply):
741         * platform/graphics/filters/FEGaussianBlur.h:
742         * platform/graphics/filters/FELighting.cpp:
743         (WebCore::FELighting::platformApplyGenericWorker):
744         (WebCore::FELighting::platformApplyGeneric):
745         * platform/graphics/filters/FELighting.h:
746         * platform/graphics/filters/FEMorphology.cpp:
747         (WebCore::FEMorphology::platformApplyWorker):
748         (WebCore::FEMorphology::platformApply):
749         * platform/graphics/filters/FEMorphology.h:
750         * platform/graphics/filters/FETurbulence.cpp:
751         (WebCore::FETurbulence::fillRegionWorker):
752         (WebCore::FETurbulence::platformApplySoftware):
753         * platform/graphics/filters/FETurbulence.h:
754         * platform/graphics/filters/arm/FELightingNEON.cpp:
755         (WebCore::FELighting::platformApplyNeonWorker):
756         * platform/graphics/filters/arm/FELightingNEON.h:
757         (WebCore::FELighting::platformApplyNeon):
758
759 2011-11-21  Antti Koivisto  <antti@apple.com>
760
761         Remove CSSStyleSelector::m_additionalAttributeStyleDecls field
762         https://bugs.webkit.org/show_bug.cgi?id=72876
763
764         Reviewed by Andreas Kling.
765
766         There is no reason for this temporary to be a field.
767
768         * css/CSSStyleSelector.cpp:
769         (WebCore::CSSStyleSelector::matchAllRules):
770         * css/CSSStyleSelector.h:
771
772 2011-11-21  Pavel Feldman  <pfeldman@google.com>
773
774         Web Inspector: [REGRESSION] Assertion failed in ScriptsPanel.js
775         https://bugs.webkit.org/show_bug.cgi?id=72877
776
777         Reviewed by Yury Semikhatsky.
778
779         * inspector/front-end/ScriptsPanel.js:
780
781 2011-11-18  Pavel Feldman  <pfeldman@google.com>
782
783         Web Inspector: get rid of Panel::reset in the front-end.
784         https://bugs.webkit.org/show_bug.cgi?id=72587
785
786         I'm slowly getting rid of the Inspector protocol domain. It currently
787         contains methods that did not find their home in the meaningful domains.
788         This change removes reset protocol method.
789
790         Reviewed by Yury Semikhatsky.
791
792         * inspector/Inspector.json:
793         * inspector/InspectorAgent.cpp:
794         (WebCore::InspectorAgent::didCommitLoad):
795         * inspector/InspectorDebuggerAgent.cpp:
796         (WebCore::InspectorDebuggerAgent::didClearMainFrameWindowObject):
797         * inspector/InspectorDebuggerAgent.h:
798         * inspector/InspectorInstrumentation.cpp:
799         (WebCore::InspectorInstrumentation::didClearWindowObjectInWorldImpl):
800         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
801         * inspector/front-end/ApplicationCacheModel.js:
802         (WebInspector.ApplicationCacheModel.prototype._frameNavigated):
803         (WebInspector.ApplicationCacheModel.prototype._frameDetached):
804         * inspector/front-end/DebuggerModel.js:
805         (WebInspector.DebuggerModel.prototype._globalObjectCleared):
806         (WebInspector.DebuggerDispatcher.prototype.globalObjectCleared):
807         * inspector/front-end/DebuggerPresentationModel.js:
808         (WebInspector.DebuggerPresentationModel):
809         (WebInspector.DebuggerPresentationModel.prototype._debuggerReset):
810         * inspector/front-end/ExtensionServer.js:
811         (WebInspector.ExtensionServer):
812         (WebInspector.ExtensionServer.prototype._mainFrameNavigated):
813         * inspector/front-end/JavaScriptContextManager.js:
814         (WebInspector.JavaScriptContextManager.prototype._frameDetached):
815         (WebInspector.FrameEvaluationContext.prototype.get frameId):
816         * inspector/front-end/NetworkLog.js:
817         (WebInspector.NetworkLog):
818         (WebInspector.NetworkLog.prototype._mainFrameNavigated):
819         * inspector/front-end/NetworkPanel.js:
820         (WebInspector.NetworkLogView):
821         (WebInspector.NetworkLogView.prototype._mainFrameNavigated):
822         * inspector/front-end/ResourceTreeModel.js:
823         (WebInspector.ResourceTreeModel.prototype._frameNavigated):
824         (WebInspector.ResourceTreeModel.prototype._frameDetached):
825         (WebInspector.ResourceTreeModel.prototype._clearChildFramesAndResources):
826         * inspector/front-end/ResourcesPanel.js:
827         (WebInspector.ResourcesPanel.prototype._reset):
828         (WebInspector.ResourcesPanel.prototype._frameDetached):
829         * inspector/front-end/ScriptsPanel.js:
830         (WebInspector.ScriptsPanel.prototype._debuggerWasDisabled):
831         (WebInspector.ScriptsPanel.prototype._reset):
832         * inspector/front-end/WorkerManager.js:
833         (WebInspector.WorkerManager):
834         (WebInspector.WorkerManager.prototype._mainFrameNavigated):
835         * inspector/front-end/inspector.js:
836
837 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
838
839         Web Inspector: introduce InspectorFrontendAPI for actions initiated from the application menu.
840         https://bugs.webkit.org/show_bug.cgi?id=62985
841
842         Both: inspector protocol and WebCore/InspectorController have a number of unnecessary
843         methods for plumbing the menu action handlers through the WebKit and WebCore.
844         I intend to remove this menu support from the protocol and WebCore/InspectorController API.
845         I am starting with exposing the new front-end API in the WebCore and using it in the WebKit/mac port.
846         WebKit/win and WebKit2 to follow.
847
848         Reviewed by Yury Semikhatsky.
849
850         * WebCore.exp.in:
851         * WebCore.gypi:
852         * WebCore.vcproj/WebCore.vcproj:
853         * inspector/InspectorFrontendClientLocal.cpp:
854         (WebCore::InspectorFrontendClientLocal::InspectorFrontendClientLocal):
855         (WebCore::InspectorFrontendClientLocal::frontendLoaded):
856         (WebCore::InspectorFrontendClientLocal::setAttachedWindow):
857         (WebCore::InspectorFrontendClientLocal::isDebuggingEnabled):
858         (WebCore::InspectorFrontendClientLocal::setDebuggingEnabled):
859         (WebCore::InspectorFrontendClientLocal::isJavaScriptProfilingEnabled):
860         (WebCore::InspectorFrontendClientLocal::setJavaScriptProfilingEnabled):
861         (WebCore::InspectorFrontendClientLocal::isTimelineProfilingEnabled):
862         (WebCore::InspectorFrontendClientLocal::setTimelineProfilingEnabled):
863         (WebCore::InspectorFrontendClientLocal::isProfilingJavaScript):
864         (WebCore::InspectorFrontendClientLocal::startProfilingJavaScript):
865         (WebCore::InspectorFrontendClientLocal::stopProfilingJavaScript):
866         (WebCore::InspectorFrontendClientLocal::evaluateAsBoolean):
867         (WebCore::InspectorFrontendClientLocal::evaluateOnLoad):
868         * inspector/InspectorFrontendClientLocal.h:
869         * inspector/front-end/InspectorFrontendAPI.js: Added.
870         (InspectorFrontendAPI.isDebuggingEnabled):
871         (InspectorFrontendAPI.setDebuggingEnabled):
872         (InspectorFrontendAPI.isJavaScriptProfilingEnabled):
873         (InspectorFrontendAPI.setJavaScriptProfilingEnabled):
874         (InspectorFrontendAPI.isTimelineProfilingEnabled):
875         (InspectorFrontendAPI.setTimelineProfilingEnabled):
876         (InspectorFrontendAPI.isProfilingJavaScript):
877         (InspectorFrontendAPI.startProfilingJavaScript):
878         (InspectorFrontendAPI.stopProfilingJavaScript):
879         (InspectorFrontendAPI.setAttachedWindow):
880         * inspector/front-end/ProfileView.js:
881         (WebInspector.CPUProfileType):
882         (WebInspector.CPUProfileType.prototype.isRecordingProfile):
883         (WebInspector.CPUProfileType.prototype.startRecordingProfile):
884         (WebInspector.CPUProfileType.prototype.stopRecordingProfile):
885         * inspector/front-end/ProfilesPanel.js:
886         (WebInspector.ProfilesPanel.prototype.get profilerEnabled):
887         (WebInspector.ProfilesPanel.prototype.enableProfiler):
888         (WebInspector.ProfilesPanel.prototype.disableProfiler):
889         * inspector/front-end/ScriptsPanel.js:
890         (WebInspector.ScriptsPanel):
891         (WebInspector.ScriptsPanel.prototype.get debuggingEnabled):
892         (WebInspector.ScriptsPanel.prototype.enableDebugging):
893         (WebInspector.ScriptsPanel.prototype.disableDebugging):
894         (WebInspector.ScriptsPanel.prototype.toggleDebugging):
895         * inspector/front-end/TimelinePanel.js:
896         (WebInspector.TimelinePanel.prototype._memoryOverviewItemSelected):
897         (WebInspector.TimelinePanel.prototype.setTimelineProfilingEnabled):
898         (WebInspector.TimelinePanel.prototype.get timelineProfilingEnabled):
899         * inspector/front-end/WebKit.qrc:
900         * inspector/front-end/inspector.html:
901         * inspector/front-end/inspector.js:
902
903 2011-11-18  Alexander Pavlov  <apavlov@chromium.org>
904
905         Web Inspector: [Protocol] Retain a single universal method for loading a required combination of element styles
906         https://bugs.webkit.org/show_bug.cgi?id=72701
907
908         Reviewed by Pavel Feldman.
909
910         * inspector/Inspector.json:
911         * inspector/InspectorCSSAgent.cpp:
912         (WebCore::InspectorCSSAgent::getMatchedStylesForNode):
913         (WebCore::InspectorCSSAgent::getInlineStylesForNode):
914         (WebCore::InspectorCSSAgent::getComputedStyleForNode):
915         * inspector/InspectorCSSAgent.h:
916         * inspector/front-end/AuditRules.js:
917         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
918         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.getStyles.inlineCallback):
919         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.getStyles.matchedCallback):
920         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.getStyles):
921         * inspector/front-end/CSSStyleModel.js:
922         (WebInspector.CSSStyleModel.prototype.getMatchedStylesAsync):
923         (WebInspector.CSSStyleModel.prototype.getComputedStyleAsync):
924         (WebInspector.CSSStyleModel.prototype.getInlineStylesAsync):
925         * inspector/front-end/MetricsSidebarPane.js:
926         (WebInspector.MetricsSidebarPane.prototype._innerUpdate):
927         * inspector/front-end/StylesSidebarPane.js:
928         (WebInspector.StylesSidebarPane.prototype.get forcedPseudoClasses):
929         (WebInspector.StylesSidebarPane.prototype._executeRebuildUpdate):
930         (WebInspector.StylesSidebarPane.prototype._executeRebuildUpdate.inlineCallback):
931         (WebInspector.StylesSidebarPane.prototype._executeRebuildUpdate.computedCallback):
932         (WebInspector.StylesSidebarPane.prototype._innerUpdate):
933
934 2011-11-21  Sheriff Bot  <webkit.review.bot@gmail.com>
935
936         Unreviewed, rolling out r100856.
937         http://trac.webkit.org/changeset/100856
938         https://bugs.webkit.org/show_bug.cgi?id=72867
939
940         New test fast/css/style-tag-display-none.html fails on
941         Chromium (Requested by steveblock on #webkit).
942
943         * css/CSSStyleSelector.cpp:
944         (WebCore::CSSStyleSelector::matchUARules):
945
946 2011-11-21  Jochen Eisinger  <jochen@chromium.org>
947
948         Implement Meta referrer
949         https://bugs.webkit.org/show_bug.cgi?id=72674
950
951         Reviewed by Adam Barth.
952
953         http://wiki.whatwg.org/wiki/Meta_referrer
954
955         Tests: http/tests/security/referrer-policy-always.html
956                http/tests/security/referrer-policy-default.html
957                http/tests/security/referrer-policy-https-always.html
958                http/tests/security/referrer-policy-https-default.html
959                http/tests/security/referrer-policy-https-never.html
960                http/tests/security/referrer-policy-https-origin.html
961                http/tests/security/referrer-policy-never.html
962                http/tests/security/referrer-policy-origin.html
963                http/tests/security/referrer-policy-redirect.html
964                http/tests/security/referrer-policy-rel-noreferrer.html
965
966         * WebCore.exp.in: updated
967         * dom/Document.cpp:
968         (WebCore::Document::Document):
969         (WebCore::Document::processReferrerPolicy):
970         * dom/Document.h:
971         (WebCore::Document::referrerPolicy):
972         * html/HTMLAnchorElement.cpp:
973         (WebCore::HTMLAnchorElement::handleClick):
974         * html/HTMLMetaElement.cpp:
975         (WebCore::HTMLMetaElement::process):
976         * loader/FrameLoader.cpp:
977         (WebCore::FrameLoader::loadFrameRequest):
978         (WebCore::FrameLoader::loadResourceSynchronously):
979         * loader/PingLoader.cpp:
980         (WebCore::PingLoader::loadImage):
981         (WebCore::PingLoader::sendPing):
982         (WebCore::PingLoader::reportContentSecurityPolicyViolation):
983         * loader/SubframeLoader.cpp:
984         (WebCore::SubframeLoader::loadSubframe):
985         * loader/SubresourceLoader.cpp:
986         (WebCore::SubresourceLoader::create):
987         * page/SecurityPolicy.cpp:
988         (WebCore::SecurityPolicy::generateReferrerHeader):
989         * page/SecurityPolicy.h:
990
991 2011-11-21  Vsevolod Vlasov  <vsevik@chromium.org>
992
993         Web Inspector: ApplicationCache view should show navigator.onLine indicator.
994         https://bugs.webkit.org/show_bug.cgi?id=72618
995
996         Reviewed by Pavel Feldman.
997
998         * inspector/InspectorApplicationCacheAgent.cpp:
999         (WebCore::InspectorApplicationCacheAgent::enable):
1000         * inspector/front-end/ApplicationCacheItemsView.js:
1001         (WebInspector.ApplicationCacheItemsView):
1002         (WebInspector.ApplicationCacheItemsView.prototype.wasShown):
1003         * inspector/front-end/ApplicationCacheModel.js:
1004         (WebInspector.ApplicationCacheModel):
1005         (WebInspector.ApplicationCacheModel.prototype.get onLine):
1006         (WebInspector.ApplicationCacheModel.prototype._networkStateUpdated):
1007         * inspector/front-end/ResourcesPanel.js:
1008         (WebInspector.ResourcesPanel.prototype.showApplicationCache):
1009         (WebInspector.ResourcesPanel.prototype._applicationCacheNetworkStateChanged):
1010
1011 2011-11-21  Carlos Garcia Campos  <cgarcia@igalia.com>
1012
1013         Unreviewed. Fix make distcheck build.
1014
1015         * GNUmakefile.list.am:
1016
1017 2011-11-21  Dominic Mazzoni  <dmazzoni@google.com>
1018
1019         Accessibility: Multiselect list boxes need to report the active option in addition to which items are selected.
1020         https://bugs.webkit.org/show_bug.cgi?id=72479
1021
1022         Reviewed by Chris Fleizach.
1023
1024         Test: accessibility/multiselect-list-reports-active-option.html
1025
1026         * accessibility/AccessibilityListBoxOption.cpp:
1027         (WebCore::AccessibilityListBoxOption::isSelectedOptionActive):
1028         * accessibility/AccessibilityListBoxOption.h:
1029         * accessibility/AccessibilityObject.h:
1030         (WebCore::AccessibilityObject::isSelectedOptionActive):
1031
1032 2011-11-21  Yuta Kitamura  <yutak@chromium.org>
1033
1034         [Qt] WebSocket close tests are failing
1035         https://bugs.webkit.org/show_bug.cgi?id=72865
1036
1037         Reviewed by Simon Hausmann.
1038
1039         * platform/network/qt/SocketStreamHandleQt.cpp:
1040         (WebCore::SocketStreamHandlePrivate::close):
1041         Emit didCloseSocketStream() callback even before the connection is established.
1042         Call m_socket->abort() to prevent "connected" signal from firing.
1043
1044 2011-11-21  Shinya Kawanaka  <shinyak@google.com>
1045
1046         Refactoring: SpellChecker::requestCheckingFor should take Range instead of Node.
1047         https://bugs.webkit.org/show_bug.cgi?id=72847
1048
1049         Reviewed by Hajime Morita.
1050
1051         Covered by existing test.
1052
1053         * editing/Editor.cpp:
1054         (WebCore::Editor::replaceSelectionWithFragment):
1055           Passes Range to requestCheckingFor instead of Node.
1056         * editing/SpellChecker.cpp:
1057           Changed argument type from Node to Range.
1058           The corresponding changes are also done in dependent methods.
1059         (WebCore::SpellChecker::initRequest):
1060         (WebCore::SpellChecker::clearRequest):
1061         (WebCore::SpellChecker::canCheckAsynchronously):
1062         (WebCore::SpellChecker::isBusy):
1063         (WebCore::SpellChecker::isValid):
1064         (WebCore::SpellChecker::isCheckable):
1065         (WebCore::SpellChecker::requestCheckingFor):
1066           Changed argument type from Node to Range.
1067         (WebCore::SpellChecker::doRequestCheckingFor):
1068         (WebCore::SpellChecker::didCheck):
1069         * editing/SpellChecker.h:
1070
1071 2011-11-20  Kenichi Ishibashi  <bashi@chromium.org>
1072
1073         [Chromium] Remove old getFontFamilyForCharacters() and familyForChars() APIs.
1074         https://bugs.webkit.org/show_bug.cgi?id=72844
1075
1076         Respects bold and italic properties that is given by fontconfig.
1077
1078         Reviewed by Darin Fisher.
1079
1080         * platform/graphics/chromium/FontCacheLinux.cpp:
1081         (WebCore::FontCache::getFontDataForCharacters): Removed #if and old logic.
1082
1083 2011-11-20  Noel Gordon  <noel.gordon@gmail.com>
1084
1085         [chromium] Remove qt/QtMobileWebStyle from the gyp projects
1086         https://bugs.webkit.org/show_bug.cgi?id=72843
1087
1088         Reviewed by Antonio Gomes.
1089
1090         platform/qt/QtMobileWebStyle.{h,cpp} were removed in r100123
1091
1092         * WebCore.gypi: remove platform/qt/QtMobileWebStyle.{h,cpp}
1093
1094 2011-11-20  Kentaro Hara  <haraken@chromium.org>
1095
1096         Unreviewed. Rebaselined run-bindings-tests results.
1097
1098         * bindings/scripts/test/CPP/WebDOMFloat64Array.cpp:
1099         (WebDOMFloat64Array::WebDOMFloat64Array):
1100         (WebDOMFloat64Array::impl):
1101         (toWebCore):
1102         (toWebKit):
1103         * bindings/scripts/test/CPP/WebDOMFloat64Array.h:
1104
1105 2011-11-20  Adam Barth  <abarth@webkit.org>
1106
1107         REGRESSION(r100691): Safari error pages and Growl notifications fail to load stylesheets
1108         https://bugs.webkit.org/show_bug.cgi?id=72836
1109
1110         Reviewed by Sam Weinig.
1111
1112         This patch removes a (minor) security mitigation.  Previously, we tried
1113         sequester "directory listings" into unique origins to make it more
1114         difficult for an attacker to crawl the user's local file system.
1115         Unfortunately, this mitigation doesn't really buy us much security
1116         because if the attacker has access to local files, we've probably lost
1117         anyway.
1118
1119         The larger problem, however, is that this condition is overly
1120         complicated and has broken in sublte ways several times in its
1121         (relatively short) lifetime.  In the cases reported in this bug, we see
1122         that this check affects error pages in Safari and Growl notifications,
1123         even those have nothing to do with directory listings.
1124
1125         If we have our heart set on this directory listing mitigation, we'll
1126         need a more robust way of triggering the behavior than examining URLs
1127         and guess whether they contain directory listings.  For example, if we
1128         implement Allow-From or Access-Control-Deny-Origin, then the embedder
1129         can supply those policies along with the directory listings.  Those
1130         seem like much better solutions than the in-engine hack this patch
1131         removes.
1132
1133         * page/SecurityOrigin.cpp:
1134         (WebCore::shouldTreatAsUniqueOrigin):
1135
1136 2011-10-17  Antonio Gomes  <agomes@rim.com>
1137
1138         Pass a Frame* parameter in EditorClient::respondToChangedSelection
1139         https://bugs.webkit.org/show_bug.cgi?id=70248
1140
1141         Reviewed by Ryosuke Niwa.
1142
1143         Most of the port specific implementations of EditorClient::respondToChangedSelection
1144         (like EditorClient{Qt,Gtk,etc}) are wrongly relying on FocusController::focusedOrMainFrame
1145         method to get the Frame where the selection is happening on.
1146         It is not right, since a selection can be easily triggered in an inner
1147         frame that is not focused.
1148
1149         No new tests since it is a hard thing to test without
1150         to hook into editor client in layout tests. We could
1151         change the "Dumped Delegate" messages, but it would
1152         require a rebasile of +1200 for a minor change.
1153
1154         * editing/Editor.cpp: Pass the Frame on where the selection is changing to the client.
1155         (WebCore::Editor::respondToChangedSelection): Ditto.
1156         (WebCore::Editor::changeSelectionAfterCommand): Ditto.
1157         (WebCore::EmptyEditorClient::respondToChangedSelection):
1158         * page/EditorClient.h:  Pass Frame* to indicate where the selection is happening.
1159         * loader/EmptyClients.h: Changed signature as per base class change.
1160
1161 2011-11-17  Mark Rowe  <mrowe@apple.com>
1162
1163         <http://webkit.org/b/72646> Disable deprecation warnings around code where we cannot easily
1164         switch away from the deprecated APIs.
1165
1166         Reviewed by Sam Weinig.
1167
1168         * platform/mac/WebCoreNSStringExtras.mm:
1169         * platform/network/cf/SocketStreamHandleCFNet.cpp:
1170         (WebCore::SocketStreamHandle::reportErrorToClient):
1171
1172 2011-11-19  Kevin Ollivier  <kevino@theolliviers.com>
1173
1174         [wx] C++ bindings build fix for move of array classes to WTF.
1175         
1176         * bindings/scripts/CodeGeneratorCPP.pm:
1177         (GetCPPTypeGetter):
1178         (GetNamespaceForClass):
1179         (GenerateHeader):
1180         (GenerateImplementation):
1181
1182 2011-11-19  Scott Graham  <scottmg@chromium.org>
1183
1184         Move gamepad to Modules/ (+ some cleanup)
1185         https://bugs.webkit.org/show_bug.cgi?id=72785
1186
1187         Reviewed by Adam Barth.
1188
1189         Move main files from page/ to Modules/gamepad/. #include guard the
1190         gamepad header inclusions in Navigator.cpp to avoid including for
1191         ports that do not enable GAMEPAD.
1192
1193         * Modules/gamepad/Gamepad.cpp: Renamed from Source/WebCore/page/Gamepad.cpp.
1194         (WebCore::Gamepad::Gamepad):
1195         (WebCore::Gamepad::axes):
1196         (WebCore::Gamepad::buttons):
1197         (WebCore::Gamepad::~Gamepad):
1198         * Modules/gamepad/Gamepad.h: Renamed from Source/WebCore/page/Gamepad.h.
1199         * Modules/gamepad/Gamepad.idl: Renamed from Source/WebCore/page/Gamepad.idl.
1200         * Modules/gamepad/GamepadList.cpp: Renamed from Source/WebCore/page/GamepadList.cpp.
1201         (WebCore::GamepadList::~GamepadList):
1202         (WebCore::GamepadList::set):
1203         (WebCore::GamepadList::length):
1204         (WebCore::GamepadList::item):
1205         * Modules/gamepad/GamepadList.h: Renamed from Source/WebCore/page/GamepadList.h.
1206         (WebCore::GamepadList::create):
1207         (WebCore::GamepadList::GamepadList):
1208         * Modules/gamepad/GamepadList.idl: Renamed from Source/WebCore/page/GamepadList.idl.
1209         * WebCore.gyp/WebCore.gyp:
1210         * WebCore.gypi:
1211         * page/Navigator.cpp:
1212
1213 2011-11-19  Sheriff Bot  <webkit.review.bot@gmail.com>
1214
1215         Unreviewed, rolling out r100834.
1216         http://trac.webkit.org/changeset/100834
1217         https://bugs.webkit.org/show_bug.cgi?id=72806
1218
1219         this patch makes Qt run-webkit-test exit before finishing
1220         (Requested by igoroliveira on #webkit).
1221
1222         * platform/graphics/texmap/TextureMapperNode.cpp:
1223         * platform/graphics/texmap/TextureMapperNode.h:
1224
1225 2011-11-19  Huang Dongsung  <luxtella@company100.net>
1226
1227         Remove WebCore/ForwardingHeaders/runtime/JSObjectWithGlobalObject.h because
1228         JSObjectWithGlobalObject.h has been removed.
1229         https://bugs.webkit.org/show_bug.cgi?id=72794
1230
1231         r94701 removed JSObjectWithGlobalObject.h.
1232
1233         Reviewed by Oliver Hunt.
1234
1235         * ForwardingHeaders/runtime/JSObjectWithGlobalObject.h: Removed.
1236
1237 2011-11-19  Vsevolod Vlasov  <vsevik@chromium.org>
1238
1239         Web Inspector:[protocol] actual JSON messages do not conform to Inspector.json in InspectorApplicationCacheAgent.cpp
1240         https://bugs.webkit.org/show_bug.cgi?id=72734
1241
1242         Reviewed by Timothy Hatcher.
1243
1244         * inspector/Inspector.json:
1245
1246 2011-11-19  David Barr  <davidbarr@chromium.org>
1247
1248         REGRESSION(r98542): Chromium: CSS text is rendered on page
1249         https://bugs.webkit.org/show_bug.cgi?id=71703
1250
1251         Reviewed by Antti Koivisto.
1252
1253         Matched UA declarations uncacheable when using simpleDefaultStyleSheet.
1254
1255         Test: fast/css/style-tag-display-none.html
1256
1257         * css/CSSStyleSelector.cpp:
1258         (WebCore::CSSStyleSelector::matchUARules):
1259
1260 2011-11-19  Jay Civelli  <jcivelli@chromium.org>
1261
1262         When loading a MHTML document, make sure we set the base URL before
1263         we notify the frame was committed (so the document has the right base
1264         URL when the notification happens). 
1265         https://bugs.webkit.org/show_bug.cgi?id=72788
1266
1267         Reviewed by Adam Barth.
1268
1269         * loader/FrameLoader.cpp:
1270         (WebCore::FrameLoader::receivedFirstData):
1271
1272 2011-11-19  Adam Barth  <abarth@webkit.org>
1273
1274         Integrate Source/WTF with the Chromium build system
1275         https://bugs.webkit.org/show_bug.cgi?id=72790
1276
1277         Reviewed by Eric Seidel.
1278
1279         Add a dependency on the new WTF.
1280
1281         * WebCore.gyp/WebCore.gyp:
1282
1283 2011-11-18  Takashi Toyoshima  <toyoshim@chromium.org>
1284
1285         [Chromium] [WebSocket] export WebSocketChannel interface for plugins
1286         https://bugs.webkit.org/show_bug.cgi?id=72016
1287
1288         Reviewed by Darin Fisher.
1289
1290         Add a interface to send raw binary data.
1291         This interface is used by WebWebSocketChannel implementation
1292         in WebKit API.
1293
1294         No new tests because just export a interface.
1295
1296         * websockets/WebSocketChannel.cpp:
1297         (WebCore::WebSocketChannel::send):
1298         * websockets/WebSocketChannel.h:
1299
1300 2011-11-18  Vineet Chaudhary  <vineet.chaudhary@motorola.com>
1301
1302         https://bugs.webkit.org/show_bug.cgi?id=72591
1303         Remove document.width / document.height
1304
1305         Reviewed by Darin Adler.
1306
1307         Removed document.width/document.height from JS bindings,
1308         but keeping the same for ObjC bindings. Also it should use
1309         document.body.clientWidth and document.body.clientHeight instead.
1310
1311         * html/HTMLDocument.idl:
1312
1313 2011-11-18  Martin Robinson  <mrobinson@igalia.com>
1314
1315         Fix the GTK+ build.
1316
1317         * page/Navigator.idl: Properly disable the webkitGamepads API if gamepad
1318         isn't enabled at compile time.
1319
1320 2011-11-18  Daniel Bates  <dbates@rim.com>
1321
1322         Add CMake build infrastructure for the BlackBerry port
1323         https://bugs.webkit.org/show_bug.cgi?id=72768
1324
1325         Reviewed by Antonio Gomes.
1326
1327         * CMakeLists.txt: At this time the BlackBerry port doesn't support generating
1328           DOM bindings from the SVG IDLs. See WebKit bug #72773.
1329         * PlatformBlackBerry.cmake: Added.
1330
1331 2011-11-18  Sheriff Bot  <webkit.review.bot@gmail.com>
1332
1333         Unreviewed, rolling out r100826.
1334         http://trac.webkit.org/changeset/100826
1335         https://bugs.webkit.org/show_bug.cgi?id=72786
1336
1337         Broke Chromium Mac build (Requested by aklein on #webkit).
1338
1339         * page/ChromeClient.h:
1340         * page/FrameView.cpp:
1341         * page/FrameView.h:
1342         * platform/ScrollView.cpp:
1343         (WebCore::ScrollView::wheelEvent):
1344         * platform/ScrollView.h:
1345         * platform/ScrollableArea.h:
1346         (WebCore::ScrollableArea::scrollbarStyleChanged):
1347         * platform/mac/ScrollAnimatorMac.mm:
1348         (WebCore::ScrollAnimatorMac::updateScrollerStyle):
1349
1350 2011-11-18  Alpha Lam  <hclam@chromium.org>
1351
1352         [chromium] composited layers are blurry with a zoom-in page scale factor
1353         https://bugs.webkit.org/show_bug.cgi?id=71225
1354
1355         Reviewed by James Robinson.
1356
1357         Pass contents scale factor to the compositor such that it can:
1358         1. Adjust contentBounds() of the compositoer layers with content scale.
1359         2. Apply the content scale in the painter for texture update in better resolution.
1360         3. Apply the content scale to the dirty rect in CanvasLayerTextureUpdater.
1361
1362         This change fixed blurry problem for all tiled layer types and is not limited to
1363         position:fixed layers.
1364
1365         Tests: compositing/geometry/fixed-position-composited-page-scale-down.html
1366                compositing/geometry/fixed-position-composited-page-scale.html
1367                compositing/geometry/fixed-position-iframe-composited-page-scale-down.html
1368                compositing/geometry/fixed-position-iframe-composited-page-scale.html
1369                compositing/geometry/fixed-position-transform-composited-page-scale-down.html
1370                compositing/geometry/fixed-position-transform-composited-page-scale.html
1371
1372         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
1373         (WebCore::GraphicsLayerChromium::setTransform):
1374         (WebCore::GraphicsLayerChromium::updateLayerPreserves3D):
1375         (WebCore::GraphicsLayerChromium::updateContentsScale):
1376         (WebCore::GraphicsLayerChromium::contentsScale):
1377         (WebCore::GraphicsLayerChromium::deviceOrPageScaleFactorChanged):
1378         * platform/graphics/chromium/GraphicsLayerChromium.h:
1379         * platform/graphics/chromium/ImageLayerChromium.cpp:
1380         (WebCore::ImageLayerTextureUpdater::prepareToUpdate):
1381         (WebCore::ImageLayerChromium::needsContentsScale):
1382         * platform/graphics/chromium/ImageLayerChromium.h:
1383         * platform/graphics/chromium/LayerChromium.cpp:
1384         (WebCore::LayerChromium::LayerChromium):
1385         (WebCore::LayerChromium::setContentsScale):
1386         * platform/graphics/chromium/LayerChromium.h:
1387         (WebCore::LayerChromium::needsContentsScale):
1388         (WebCore::LayerChromium::contentsScale):
1389         * platform/graphics/chromium/LayerTextureUpdater.h:
1390         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp:
1391         (WebCore::LayerTextureUpdaterCanvas::paintContents):
1392         (WebCore::LayerTextureUpdaterBitmap::prepareToUpdate):
1393         (WebCore::LayerTextureUpdaterSkPicture::prepareToUpdate):
1394         * platform/graphics/chromium/LayerTextureUpdaterCanvas.h:
1395         * platform/graphics/chromium/TiledLayerChromium.cpp:
1396         (WebCore::TiledLayerChromium::needsContentsScale):
1397         (WebCore::TiledLayerChromium::contentBounds):
1398         (WebCore::TiledLayerChromium::prepareToUpdate):
1399         * platform/graphics/chromium/TiledLayerChromium.h:
1400
1401 2011-11-18  Igor Oliveira  <igor.oliveira@openbossa.org>
1402
1403         [WK2][Qt] Move Accelerated Composite animations to UIProcess
1404         https://bugs.webkit.org/show_bug.cgi?id=72753
1405
1406         Add helper method to synchronize animations in TextureMapper.
1407
1408         Reviewed by Noam Rosenthal.
1409
1410         * platform/graphics/texmap/TextureMapperNode.cpp:
1411         (WebCore::TextureMapperNode::syncAnimationsRecursively):
1412         * platform/graphics/texmap/TextureMapperNode.h:
1413
1414 2011-11-18  Scott Graham  <scottmg@chromium.org>
1415
1416         IDL changes for gamepad support
1417         https://bugs.webkit.org/show_bug.cgi?id=71753
1418
1419         Reviewed by Adam Barth.
1420
1421         IDL changes and associated plumbing to expose list of gamepad objects
1422         on navigator object (per current spec). Full patch is
1423         https://bugs.webkit.org/show_bug.cgi?id=69451. Only basic existence
1424         test until more plumbing in future patches.
1425
1426         Test: gamepad/gamepad-api.html
1427
1428         * WebCore.gypi:
1429         * bindings/generic/RuntimeEnabledFeatures.h:
1430         (WebCore::RuntimeEnabledFeatures::setWebkitGamepadsEnabled):
1431         (WebCore::RuntimeEnabledFeatures::webkitGamepadsEnabled):
1432         * page/Gamepad.cpp: Added.
1433         (WebCore::Gamepad::Gamepad):
1434         (WebCore::Gamepad::axes):
1435         (WebCore::Gamepad::buttons):
1436         (WebCore::Gamepad::~Gamepad):
1437         * page/Gamepad.h: Added.
1438         * page/Gamepad.idl: Added.
1439         * page/GamepadList.cpp: Added.
1440         (WebCore::GamepadList::~GamepadList):
1441         (WebCore::GamepadList::set):
1442         (WebCore::GamepadList::length):
1443         (WebCore::GamepadList::item):
1444         * page/GamepadList.h: Added.
1445         (WebCore::GamepadList::create):
1446         (WebCore::GamepadList::GamepadList):
1447         * page/GamepadList.idl: Added.
1448         * page/Navigator.cpp:
1449         (WebCore::Navigator::webkitGamepads):
1450         * page/Navigator.h:
1451         * page/Navigator.idl:
1452
1453 2011-11-18  Sheriff Bot  <webkit.review.bot@gmail.com>
1454
1455         Unreviewed, rolling out r100693.
1456         http://trac.webkit.org/changeset/100693
1457         https://bugs.webkit.org/show_bug.cgi?id=72779
1458
1459         This patch caused a rendering regression (see bug 72770)
1460         (Requested by philip__ on #webkit).
1461
1462         * rendering/RenderObject.cpp:
1463         (WebCore::RenderObject::setStyle):
1464         * rendering/style/RenderStyle.cpp:
1465         (WebCore::RenderStyle::diff):
1466
1467 2011-11-18  Simon Fraser  <simon.fraser@apple.com>
1468
1469         Reflection on composited element doesn't update if the element changes to show no content
1470         https://bugs.webkit.org/show_bug.cgi?id=72774
1471
1472         Reviewed by Chris Marrin.
1473         
1474         When a style change results in a reflected element losing its backing store,
1475         we need to clear the backing stores on the layer clones as well.
1476
1477         Test: compositing/reflections/become-simple-composited-reflection.html
1478
1479         * platform/graphics/ca/GraphicsLayerCA.cpp:
1480         (WebCore::GraphicsLayerCA::updateLayerDrawsContent):
1481
1482 2011-11-18  Daniel Cheng  <dcheng@chromium.org>
1483
1484         [chromium] Use correct backing store for ChromiumDataObject in pasteboard writes.
1485         https://bugs.webkit.org/show_bug.cgi?id=72767
1486
1487         Reviewed by Tony Chang.
1488
1489         Covered by existing tests.
1490
1491         * editing/chromium/EditorChromium.cpp:
1492         (WebCore::Editor::newGeneralClipboard):
1493         * page/chromium/EventHandlerChromium.cpp:
1494         (WebCore::EventHandler::createDraggingClipboard):
1495         * platform/chromium/ChromiumDataObject.cpp:
1496         (WebCore::ChromiumDataObject::types):
1497         (WebCore::ChromiumDataObject::getData):
1498         (WebCore::ChromiumDataObject::containsFilenames):
1499         (WebCore::ChromiumDataObject::ChromiumDataObject):
1500         * platform/chromium/ChromiumDataObject.h:
1501         (WebCore::ChromiumDataObject::createFromPasteboard):
1502         (WebCore::ChromiumDataObject::create):
1503         (WebCore::ChromiumDataObject::storageMode):
1504         * platform/chromium/ClipboardChromium.cpp:
1505         (WebCore::ClipboardChromium::hasData):
1506
1507 2011-11-18  Chris Evans  <cevans@google.com>
1508
1509         Crash with ranges across a detached, reparented node tree
1510         https://bugs.webkit.org/show_bug.cgi?id=72757
1511
1512         Reviewed by Adam Barth.
1513
1514         Test: fast/dom/move-detached-child-in-range.html
1515
1516         * dom/RangeBoundaryPoint.h:
1517         (WebCore::RangeBoundaryPoint::childBefore): protect the raw child node from getting pulled from under us.
1518
1519 2011-11-18  Beth Dakin  <bdakin@apple.com>
1520
1521         https://bugs.webkit.org/show_bug.cgi?id=72551
1522         When the recommended scrollbar style changes, WKView's tracking options should 
1523         adjust accordingly
1524         -and corresponding-
1525         <rdar://problem/10409328>
1526
1527         Reviewed by Darin Adler.
1528
1529         This new ChromeClient function is called when the recommended scrollbar style 
1530         changes. This way, WebKit can respond to the change by adjusting its mouse 
1531         tracking.
1532         * page/ChromeClient.h:
1533         (WebCore::ChromeClient::recommendedScrollbarStyleDidChange):
1534
1535         Existing ScrollableArea function scrollbarStyleChanged() now takes an int 
1536         indicating the new scrollbar style and a bool indicating whether it is necessary 
1537         to force an update. It used to be the case that this function was ONLY used to 
1538         force an update (and only called when an updated was needed), but now that it must 
1539         also call into the ChromeClient, it is necessary to include a bool tracking 
1540         whether we need to force an update. New implementation on FrameView is responsible 
1541         for calling ChromeClient, and then that calls into the pre-existing ScrollView 
1542         function for the forceUpdate part.
1543         * page/FrameView.cpp:
1544         (WebCore::FrameView::scrollbarStyleChanged):
1545         * page/FrameView.h:
1546         * platform/ScrollView.cpp:
1547         (WebCore::ScrollView:: scrollbarStyleChanged):
1548         * platform/ScrollView.h:
1549         * platform/ScrollableArea.h:
1550         (WebCore::ScrollableArea::scrollbarStyleChanged):
1551         * platform/mac/ScrollAnimatorMac.mm:
1552         (WebCore::ScrollAnimatorMac::updateScrollerStyle):
1553
1554 2011-11-18  Kelly Norton  <knorton@google.com>
1555
1556         Fixes several more void functions in RenderObject that return values.
1557         https://bugs.webkit.org/show_bug.cgi?id=72750
1558
1559         Reviewed by Adam Barth.
1560
1561         * rendering/RenderBlock.cpp:
1562         (WebCore::RenderBlock::updateBeforeAfterContent):
1563         (WebCore::RenderBlock::addChildToContinuation):
1564         (WebCore::RenderBlock::addChildToAnonymousColumnBlocks):
1565         (WebCore::RenderBlock::addChild):
1566         (WebCore::RenderBlock::addChildIgnoringContinuation):
1567
1568 2011-11-18  Shawn Singh  <shawnsingh@chromium.org>
1569
1570         [chromium] Add some useful text to existing debug dump
1571         https://bugs.webkit.org/show_bug.cgi?id=72576
1572
1573         Reviewed by James Robinson.
1574
1575         No new tests needed.
1576
1577         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1578         (WebCore::CCLayerImpl::dumpLayerProperties):
1579         * platform/graphics/chromium/cc/CCRenderSurface.cpp:
1580         (WebCore::CCRenderSurface::dumpSurface):
1581
1582 2011-11-18  Xiaomei Ji  <xji@chromium.org>
1583
1584         REGRESSION: rtl horizontal scrollbar / resize bug - Body shifts on resize when scrolled all the way to the left
1585         https://bugs.webkit.org/show_bug.cgi?id=70395
1586
1587         Reviewed by Tony Chang.
1588
1589         This patch fixes the problem in Mac and Chromium Mac.
1590    
1591         The existing test fast/dom/rtl-scroll-to-leftmost-and-resize.html seems does not really work in Mac DRT
1592         (the browswer window is not resized). It works in Chromium-Mac. And Chromium-Mac's code
1593         is forked from Mac.
1594
1595         * platform/chromium/ScrollAnimatorChromiumMac.mm:
1596         (WebCore::ScrollAnimatorChromiumMac::immediateScrollToPoint):
1597         * platform/mac/ScrollAnimatorMac.mm:
1598         (WebCore::ScrollAnimatorMac::immediateScrollToPoint):
1599
1600 2011-11-18  Martin Robinson  <mrobinson@igalia.com>
1601
1602         REGRESSION (r99924): broke 2 pasteboard tests on GTK
1603         https://bugs.webkit.org/show_bug.cgi?id=72131
1604
1605         Reviewed by Tony Chang.
1606
1607         * platform/gtk/ClipboardGtk.cpp:
1608         (WebCore::ClipboardGtk::clearData): Call clearAll now.
1609         (WebCore::ClipboardGtk::clearAllData): Call clearAllExceptFilenames now.
1610         * platform/gtk/DataObjectGtk.cpp:
1611         (WebCore::DataObjectGtk::clearAllExceptFilenames): Renamed from clear.
1612         (WebCore::DataObjectGtk::clearAll): Added this method which also clear filenames.
1613         * platform/gtk/DataObjectGtk.h:
1614         * platform/gtk/PasteboardGtk.cpp: Call clear before setting new clipboard data.
1615         (WebCore::Pasteboard::writeSelection): Ditto.
1616         (WebCore::Pasteboard::writePlainText): Ditto.
1617         (WebCore::Pasteboard::writeURL): Ditto.
1618         (WebCore::Pasteboard::writeImage): Ditto.
1619         * platform/gtk/PasteboardHelper.cpp:
1620         (WebCore::clearClipboardContentsCallback): Use the clearAll method now.
1621
1622 2011-11-18  Vineet Chaudhary  <vineet.chaudhary@motorola.com>
1623
1624         Access key should work on all elements.
1625         https://bugs.webkit.org/show_bug.cgi?id=71854
1626
1627         Reviewed by Ryosuke Niwa.
1628
1629         All HTML elements can have the accesskey content attribute set.
1630         Specification http://dev.w3.org/html5/spec/Overview.html#the-accesskey-attribute
1631         Adding "accessKey" attribute to HTMLElement.idl file as [Reflect].
1632
1633         Test: fast/forms/access-key-for-all-elements.html
1634
1635         * bindings/objc/PublicDOMInterfaces.h: Moved properties form subclass to base class.
1636         * html/BaseButtonInputType.cpp: 
1637         (WebCore::BaseButtonInputType::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
1638         * html/BaseButtonInputType.h: Ditto
1639         * html/BaseCheckableInputType.cpp:
1640         (WebCore::BaseCheckableInputType::accessKeyAction): Ditto
1641         * html/BaseCheckableInputType.h: Ditto
1642         * html/HTMLAnchorElement.cpp:
1643         (WebCore::HTMLAnchorElement::accessKeyAction): Ditto
1644         * html/HTMLAnchorElement.h: Ditto
1645         * html/HTMLAnchorElement.idl: Removed redundant IDL attribute entries.
1646         * html/HTMLAreaElement.idl: Removed redundant IDL attribute entries.
1647         * html/HTMLButtonElement.cpp:
1648         (WebCore::HTMLButtonElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
1649         * html/HTMLButtonElement.h: Ditto
1650         * html/HTMLButtonElement.idl: Removed redundant IDL attribute entries.
1651         * html/HTMLElement.cpp:
1652         (WebCore::HTMLElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
1653         If the element does not have a defined activation behavior, fire a click event at the element.
1654         * html/HTMLElement.h: Ditto
1655         * html/HTMLElement.idl: Added accessKey IDL attribute.
1656         * html/HTMLInputElement.cpp:
1657         (WebCore::HTMLInputElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
1658         * html/HTMLInputElement.h: Ditto
1659         * html/HTMLInputElement.idl: Removed redundant IDL attribute entries.
1660         * html/HTMLLabelElement.cpp:
1661         (WebCore::HTMLLabelElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
1662         * html/HTMLLabelElement.h: Ditto
1663         * html/HTMLLabelElement.idl: Removed redundant IDL attribute entries.
1664         * html/HTMLLegendElement.cpp:
1665         (WebCore::HTMLLegendElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
1666         * html/HTMLLegendElement.h: Ditto
1667         * html/HTMLLegendElement.idl: Removed redundant IDL attribute entries.
1668         * html/HTMLOptGroupElement.h: Renamed variable sendToAnyElement to sendMouseEvents.
1669         * html/HTMLSelectElement.cpp:
1670         (WebCore::HTMLSelectElement::accessKeyAction): Ditto
1671         * html/HTMLSelectElement.h: Ditto
1672         * html/HTMLTextAreaElement.h: Ditto
1673         * html/HTMLTextAreaElement.idl: Removed redundant IDL attribute entries.
1674         * html/HiddenInputType.h: Renamed variable sendToAnyElement to sendMouseEvents.
1675         * html/InputType.h: Ditto
1676         * html/RangeInputType.cpp:
1677         (WebCore::RangeInputType::accessKeyAction): Ditto
1678         * html/RangeInputType.h: Ditto
1679
1680 2011-11-18  Simon Fraser  <simon.fraser@apple.com>
1681
1682         Appearance of compound transform animations under apps linked on SnowLeopard is incorrect
1683         https://bugs.webkit.org/show_bug.cgi?id=72641
1684         and
1685         <rdar://problem/10314267>
1686
1687         Reviewed by Dean Jackson.
1688
1689         GraphicsLayerCA contains a "linked on or after" check to account for a bug in
1690         Core Animation on SnowLeopard and earlier, which is that CA would apply the list
1691         of animations in reverse order.
1692         
1693         Our previous fix was incorrect, because it only adjusted the 'additive' property
1694         of the animation list based on ordering, rather than flipping the entire list.
1695         This change reverses the list of animations before giving them to CA, which fixes
1696         the bug.
1697                 
1698         Test: animations/additive-transform-animations.html
1699
1700         * platform/graphics/ca/GraphicsLayerCA.cpp:
1701         (WebCore::GraphicsLayerCA::appendToUncommittedAnimations):
1702         (WebCore::GraphicsLayerCA::createTransformAnimationsFromKeyframes):
1703         * platform/graphics/ca/GraphicsLayerCA.h:
1704
1705 2011-11-18  Tim Horton  <timothy_horton@apple.com>
1706
1707         -webkit-cross-fade rendered incorrectly in overflow divs
1708         https://bugs.webkit.org/show_bug.cgi?id=72693
1709         <rdar://problem/10468564>
1710
1711         Reviewed by Simon Fraser.
1712
1713         Respect the desired source rectangle when rendering the cross-fade.
1714
1715         Test: css3/images/cross-fade-overflow-position.html
1716
1717         * platform/graphics/CrossfadeGeneratedImage.cpp:
1718         (WebCore::CrossfadeGeneratedImage::drawCrossfade):
1719         (WebCore::CrossfadeGeneratedImage::draw):
1720         (WebCore::CrossfadeGeneratedImage::drawPattern):
1721         * platform/graphics/CrossfadeGeneratedImage.h:
1722
1723 2011-11-18  Raphael Kubo da Costa  <kubo@profusion.mobi>
1724
1725         Unreviewed build fix; r100686 broke the EFL build when Geolocation
1726         support is enabled.
1727
1728         * platform/efl/GeolocationServiceEfl.cpp: Only declare
1729         s_factoryFunction if CLIENT_BASED_GEOLOCATION is off, otherwise it is
1730         also declared in GeolocationService.cpp.
1731
1732 2011-11-18  Igor Oliveira  <igor.oliveira@openbossa.org>
1733
1734         [TextureMapper] computePerspectiveTransformIfNeeded is called twice in TextureMapperNode::syncCompositingState
1735         https://bugs.webkit.org/show_bug.cgi?id=72727
1736
1737         TextureMapperNode::computeAllTransforms already has a call to TextureMapperNode::computePerspectiveTransformIfNeeded,
1738         so it does not need to be called again after TextureMapperNode::computeAllTransforms.
1739
1740         Reviewed by Noam Rosenthal.
1741
1742         * platform/graphics/texmap/TextureMapperNode.cpp:
1743         (WebCore::TextureMapperNode::syncCompositingState):
1744
1745 2011-11-18  Mihnea Ovidenie  <mihnea@adobe.com>
1746
1747         Fix compilation warning in ComplexTextControllerCoreText.mm
1748         https://bugs.webkit.org/show_bug.cgi?id=72702
1749
1750         Reviewed by Andreas Kling.
1751
1752         No functionality changed, so no new tests.
1753
1754         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
1755         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText):
1756
1757 2011-11-18  Pavel Feldman  <pfeldman@google.com>
1758
1759         Not reviewed: restore front-end compilability via updating externs and JS generator.
1760
1761         * inspector/front-end/ElementsPanel.js:
1762         (WebInspector.ElementsPanel.prototype.jumpToNextSearchResult):
1763         (WebInspector.ElementsPanel.prototype.jumpToPreviousSearchResult):
1764         * inspector/front-end/externs.js:
1765         (WebInspector.showPanelForAnchorNavigation):
1766         * inspector/generate-protocol-externs:
1767
1768 2011-11-17  Pavel Feldman  <pfeldman@google.com>
1769
1770         Web Inspector: dispatch messages from the front-end to the backend asynchronously.
1771         https://bugs.webkit.org/show_bug.cgi?id=72621
1772
1773         We should align the way we dispatch messages from the front-end to backend across the environments:
1774           - WebKit has it synchronoulsly
1775           - Chromium has it asynchronously
1776           - Remote debugging has it asynchronously
1777         Making it asynchronous made a number of flaky Qt tests pass.
1778
1779         Tests uncovered console agent problem that was also fixed.
1780
1781         Reviewed by Yury Semikhatsky.
1782
1783         * inspector/InspectorConsoleAgent.cpp:
1784         (WebCore::InspectorConsoleAgent::clearFrontend):
1785         * inspector/InspectorFrontendClient.h:
1786         * inspector/InspectorFrontendClientLocal.cpp:
1787         (WebCore::InspectorBackendDispatchTask::InspectorBackendDispatchTask):
1788         (WebCore::InspectorBackendDispatchTask::dispatch):
1789         (WebCore::InspectorBackendDispatchTask::reset):
1790         (WebCore::InspectorBackendDispatchTask::onTimer):
1791         (WebCore::InspectorFrontendClientLocal::InspectorFrontendClientLocal):
1792         (WebCore::InspectorFrontendClientLocal::windowObjectCleared):
1793         (WebCore::InspectorFrontendClientLocal::sendMessageToBackend):
1794         * inspector/InspectorFrontendClientLocal.h:
1795
1796 2011-11-18  Iain Merrick  <husky@google.com>
1797
1798         [chromium] Pass screen refresh rate into compositor.
1799         https://bugs.webkit.org/show_bug.cgi?id=71040
1800
1801         Reviewed by Tony Gentilcore.
1802
1803         Covered by CCLayerTreeHostTest.
1804
1805         * platform/PlatformScreen.h:
1806         * platform/chromium/PlatformScreenChromium.cpp:
1807         (WebCore::screenRefreshRate):
1808         * platform/chromium/PlatformSupport.h:
1809         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
1810         (WebCore::CCSettings::CCSettings):
1811         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
1812         (WebCore::CCThreadProxy::initializeImplOnImplThread):
1813
1814 2011-11-18  Alexandru Chiculita  <achicu@adobe.com>
1815
1816         [CSSShaders] Implement the computed style for mesh parameters of the custom() filter
1817         https://bugs.webkit.org/show_bug.cgi?id=72478
1818
1819         Reviewed by Dean Jackson.
1820
1821         Added parsing and computed style for the mesh rows, columns, mesh box type 
1822         (filter-box, border-box, content-box and padding-box) and the detached mode.
1823         
1824         Also fixed a case where "custom(none, 10, 10 filter-box)" was incorrectly
1825         treated as "custom(none, 10)".
1826
1827         * css/CSSComputedStyleDeclaration.cpp:
1828         (WebCore::CSSComputedStyleDeclaration::valueForFilter):
1829         * css/CSSParser.cpp:
1830         (WebCore::CSSParser::parseCustomFilter): Fixed a case where invalid syntax was parsed as correct syntax.
1831         * css/CSSPrimitiveValueMappings.h:
1832         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
1833         (WebCore::CSSPrimitiveValue::operator CustomFilterOperation::MeshBoxType):
1834         * css/CSSStyleSelector.cpp:
1835         (WebCore::CSSStyleSelector::createCustomFilterOperation):
1836         * css/CSSValueList.h:
1837         (WebCore::CSSValueListIterator::isPrimitiveValue):
1838         * platform/graphics/filters/CustomFilterOperation.h:
1839
1840 2011-11-18  Adam Barth  <abarth@webkit.org>
1841
1842         Remove unneeded include (and ifdef) from V8DOMWindowCustom.cpp
1843         https://bugs.webkit.org/show_bug.cgi?id=72705
1844
1845         Reviewed by Eric Seidel.
1846
1847         Death to ifdefs!
1848
1849         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1850
1851 2011-11-18  Adam Barth  <abarth@webkit.org>
1852
1853         Move some mediastream related files into the mediastream directory
1854         https://bugs.webkit.org/show_bug.cgi?id=72695
1855
1856         Reviewed by Eric Seidel.
1857
1858         Just moving the files to the proper directory.
1859
1860         * GNUmakefile.list.am:
1861         * WebCore.gypi:
1862         * mediastream/NavigatorUserMediaError.h: Renamed from Source/WebCore/page/NavigatorUserMediaError.h.
1863         (WebCore::NavigatorUserMediaError::create):
1864         (WebCore::NavigatorUserMediaError::~NavigatorUserMediaError):
1865         (WebCore::NavigatorUserMediaError::code):
1866         (WebCore::NavigatorUserMediaError::NavigatorUserMediaError):
1867         * mediastream/NavigatorUserMediaError.idl: Renamed from Source/WebCore/page/NavigatorUserMediaError.idl.
1868         * mediastream/NavigatorUserMediaErrorCallback.h: Renamed from Source/WebCore/page/NavigatorUserMediaErrorCallback.h.
1869         (WebCore::NavigatorUserMediaErrorCallback::~NavigatorUserMediaErrorCallback):
1870         * mediastream/NavigatorUserMediaErrorCallback.idl: Renamed from Source/WebCore/page/NavigatorUserMediaErrorCallback.idl.
1871         * mediastream/NavigatorUserMediaSuccessCallback.h: Renamed from Source/WebCore/page/NavigatorUserMediaSuccessCallback.h.
1872         (WebCore::NavigatorUserMediaSuccessCallback::~NavigatorUserMediaSuccessCallback):
1873         * mediastream/NavigatorUserMediaSuccessCallback.idl: Renamed from Source/WebCore/page/NavigatorUserMediaSuccessCallback.idl.
1874
1875 2011-11-18  Andrey Kosyakov  <caseq@chromium.org>
1876
1877         Web Inspector: [Extensions API] Provide a way for extension to create a status bar icon
1878         https://bugs.webkit.org/show_bug.cgi?id=45955
1879
1880         Reviewed by Pavel Feldman.
1881
1882         * inspector/front-end/ExtensionAPI.js:
1883         (injectedExtensionAPI.ExtensionPanelImpl.prototype.createStatusBarButton):
1884         (injectedExtensionAPI):
1885         (injectedExtensionAPI.ButtonImpl.prototype.update):
1886         * inspector/front-end/ExtensionPanel.js:
1887         (WebInspector.ExtensionPanel):
1888         (WebInspector.ExtensionPanel.prototype.get statusBarItems):
1889         (WebInspector.ExtensionPanel.prototype.addStatusBarItem):
1890         (WebInspector.ExtensionButton):
1891         (WebInspector.ExtensionButton.prototype.update):
1892         (WebInspector.ExtensionButton.prototype._onClicked):
1893         * inspector/front-end/ExtensionServer.js:
1894         (WebInspector.ExtensionServer):
1895         (WebInspector.ExtensionServer.prototype.notifyButtonClicked):
1896         (WebInspector.ExtensionServer.prototype._onCreateStatusBarButton):
1897         (WebInspector.ExtensionServer.prototype._onUpdateButton):
1898         (WebInspector.ExtensionServer.prototype._onCreateSidebarPane):
1899         * inspector/front-end/inspector.css:
1900         (button.status-bar-item.extension):
1901
1902 2011-11-18  Tommy Widenflycht  <tommyw@google.com>
1903
1904         MediaStream API: Merging the PeerConnectionHandler.h files
1905         https://bugs.webkit.org/show_bug.cgi?id=72611
1906
1907         Reviewed by Adam Barth.
1908
1909         No actual code changes.
1910
1911         * GNUmakefile.am:
1912         * GNUmakefile.list.am:
1913         * WebCore.gyp/WebCore.gyp:
1914         * WebCore.gypi:
1915         * platform/mediastream/PeerConnectionHandler.h: Renamed from Source/WebCore/platform/mediastream/chromium/PeerConnectionHandler.h.
1916         * platform/mediastream/gstreamer/PeerConnectionHandler.h: Removed.
1917
1918 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
1919
1920         [Qt] Layer violation: ThirdPartyCookiesQt.cpp uses QWebSettings in two places
1921         https://bugs.webkit.org/show_bug.cgi?id=72597
1922
1923         Reviewed by Kenneth Rohde Christiansen.
1924
1925         Moved code that queries the third party cookie policy from QWebSettings
1926         out of WebCore. Instead NetworkingContext has now the interface that allows
1927         delegating the functionality into WebKit/qt.
1928
1929         In order to do that we need to pass the NetworkingContext around, which is used to
1930         retrieve the cookie jar and the originating frame object pointer.
1931
1932         * platform/network/NetworkingContext.h: Add interface.
1933         * platform/network/qt/QNetworkReplyHandler.cpp:
1934         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler): Pass NetworkingContext to ResourceRequest::toNetworkRequest.
1935         (WebCore::QNetworkReplyHandler::redirect): Ditto.
1936         * platform/network/qt/ResourceRequest.h: Replaced originatingObject parameter with NetworkingContext, which can
1937         also provide the same plus more (cookie jar, policy callback).
1938         * platform/network/qt/ResourceRequestQt.cpp:
1939         (WebCore::ResourceRequest::toNetworkRequest): Ditto.
1940         * platform/qt/CookieJarQt.cpp: Simplify to use NetworkingContext to get cookie jar and
1941         call new thirdPartyCookiePolicyPermits API that takes the context as parameter.
1942         (WebCore::networkingContext):
1943         (WebCore::setCookies):
1944         (WebCore::cookies):
1945         (WebCore::cookieRequestHeaderFieldValue):
1946         (WebCore::cookiesEnabled):
1947         * platform/qt/ThirdPartyCookiesQt.cpp: Replace up-casting to QWebFrame and use of QWebSettings
1948         with useage of NetworkingContext.
1949         (WebCore::thirdPartyCookiePolicyPermits):
1950         * platform/qt/ThirdPartyCookiesQt.h:
1951
1952 2011-11-17  Kenichi Ishibashi  <bashi@chromium.org>
1953
1954         crash: WebCore::FontPlatformData::roundsGlyphAdvances on Lion
1955         https://bugs.webkit.org/show_bug.cgi?id=71997
1956
1957         Reviewed by Dan Bernstein.
1958
1959         The cause is a null dereference of a fontData that is stored in
1960         ComplexTextRun. The fontData is initialized by using the
1961         fontCache, but it could be null when the font is in fallback
1962         list. The reason a font from the fallback list might not be in the
1963         font Cache is that it may be a web font. Before looking up the
1964         fontCache, try to see whether the font is in the fallback list.
1965
1966         No new tests. We don't have webfonts that can produce the problem.
1967
1968         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
1969         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText): See fallback list first, then lookup cache.
1970
1971 2011-11-17  Kaustubh Atrawalkar  <kaustubh@motorola.com>
1972
1973         Remove initProgressEvent method
1974         https://bugs.webkit.org/show_bug.cgi?id=71340
1975
1976         Reviewed by Adam Barth.
1977
1978         This method has been removed from the spec draft.
1979         http://www.w3.org/TR/progress-events/#interface-progressevent
1980
1981         No new tests. Removed method.
1982
1983         * dom/ProgressEvent.cpp:
1984         * dom/ProgressEvent.h:
1985         * dom/ProgressEvent.idl:
1986
1987 2011-11-17  Eunmi Lee  <eunmi15.lee@samsung.com>
1988
1989         [EFL] Move keyIdentifierForEvasKeyName() and windowsKeyCodeForEvasKeyName() to the
1990         EflKeyboardUtilities.cpp to use in the WebKit2
1991         https://bugs.webkit.org/show_bug.cgi?id=62451
1992
1993         Reviewed by Martin Robinson.
1994
1995         The keyIdentifierForEvasKeyName() and windowsKeyCodeForEvasKeyName() were static functions
1996         in the PlatformKeyboardEventEfl.cpp. But they are also needed in the WebKit2 EFL port, so I
1997         moved them to the separated file - EflKeyboardUtilities.cpp.
1998
1999         * PlatformEfl.cmake:
2000         * platform/efl/EflKeyboardUtilities.cpp: Copied from Source/WebCore/platform/efl/PlatformKeyboardEventEfl.cpp.
2001         (WebCore::createKeyMap):
2002         (WebCore::createWindowsKeyMap):
2003         (WebCore::keyIdentifierForEvasKeyName):
2004         (WebCore::windowsKeyCodeForEvasKeyName):
2005         * platform/efl/EflKeyboardUtilities.h: Added.
2006         * platform/efl/PlatformKeyboardEventEfl.cpp:
2007
2008 2011-11-17  Martin Robinson  <mrobinson@igalia.com>
2009
2010         [GTK] The process freezes when you right click on windowless Flash
2011         https://bugs.webkit.org/show_bug.cgi?id=69123
2012
2013         Reviewed by Xan Lopez.
2014
2015         No new tests. I tried to create a layout test that exercised this
2016         issue, but it appears that EventSender clicks do not trigger
2017         it. This is covered by the manual tests containing Flash.
2018
2019         * plugins/PluginPackage.cpp:
2020         (WebCore::PluginPackage::determineQuirks): Always activate the
2021         windowless Flash quirk if on x86_64 and X11.
2022         * plugins/gtk/PluginViewGtk.cpp:
2023         (WebCore::PluginView::handleMouseEvent): Avoid sending right-click
2024         events if we have the quirk.
2025
2026 2011-11-17  Peter Rybin  <peter.rybin@gmail.com>
2027
2028         Web Inspector: clear fixme in generator script
2029         https://bugs.webkit.org/show_bug.cgi?id=71372
2030
2031         Remove unnecessary field name map and update license year number.
2032
2033         Reviewed by Pavel Feldman.
2034
2035         * inspector/CodeGeneratorInspector.py:
2036
2037 2011-11-17  Raphael Kubo da Costa  <kubo@profusion.mobi>
2038
2039         [EFL] Clean up the use of DATA_DIR in the buildsystem
2040         https://bugs.webkit.org/show_bug.cgi?id=72681
2041
2042         Reviewed by Daniel Bates.
2043
2044         Add the -DDATA_DIR definition here instead of defining it globally in
2045         OptionsEfl.cmake, as WebCore is the only place which needs it.
2046
2047         No new tests, this is a buildsystem change.
2048
2049         * PlatformEfl.cmake:
2050
2051 2011-11-17  Adam Klein  <adamk@chromium.org>
2052
2053         Move JS recursion counter from V8Proxy to V8BindingPerIsolateData
2054         https://bugs.webkit.org/show_bug.cgi?id=72645
2055
2056         Reviewed by Adam Barth.
2057
2058         With the JS recursion level stored as a member of V8Proxy, it's tied
2059         to a frame. But this is incorrect, as there's no reason that a JS call
2060         stack need be restricted to a single frame (see my new test case for
2061         an example of code going across frames).
2062
2063         In order to get the correct accounting of JS recursion level, per-Isolate
2064         is the right granularity (per dslomov), which is what this patch accomplishes.
2065
2066         Test: storage/indexeddb/transaction-abort-with-js-recursion-cross-frame.html
2067
2068         * bindings/v8/V8Binding.cpp:
2069         (WebCore::V8BindingPerIsolateData::V8BindingPerIsolateData):
2070         * bindings/v8/V8Binding.h:
2071         (WebCore::V8BindingPerIsolateData::recursionLevel):
2072         (WebCore::V8BindingPerIsolateData::incrementRecursionLevel):
2073         (WebCore::V8BindingPerIsolateData::decrementRecursionLevel):
2074         (WebCore::V8RecursionScope::V8RecursionScope):
2075         (WebCore::V8RecursionScope::~V8RecursionScope):
2076         * bindings/v8/V8Proxy.cpp:
2077         (WebCore::incrementRecursionLevel):
2078         (WebCore::decrementRecursionLevel):
2079         (WebCore::recursionLevel):
2080         (WebCore::V8Proxy::V8Proxy):
2081         (WebCore::V8Proxy::runScript):
2082         (WebCore::V8Proxy::callFunction):
2083         (WebCore::V8Proxy::didLeaveScriptContext):
2084         * bindings/v8/V8Proxy.h:
2085
2086 2011-11-17  Robin Cao  <robin.cao@torchmobile.com.cn>
2087
2088         [chromium] Font::drawComplexText can not draw a segment of text run
2089         https://bugs.webkit.org/show_bug.cgi?id=72095
2090
2091         Reviewed by Adam Barth.
2092
2093         drawComplexText() should respect the 'from' and 'to' arguments.
2094         Drawing the whole text run may result in text overlapping.
2095
2096         Test: platform/chromium-linux/fast/text/international/draw-complex-text-from-to.html
2097
2098         * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
2099         (WebCore::ComplexTextController::glyphsForRange):
2100         * platform/graphics/chromium/ComplexTextControllerLinux.h:
2101         * platform/graphics/chromium/FontLinux.cpp:
2102         (WebCore::Font::drawComplexText):
2103
2104 2011-11-17  Adam Barth  <abarth@webkit.org>
2105
2106         Unique SecurityOrigins shouldn't remember their old schemes and hosts
2107         https://bugs.webkit.org/show_bug.cgi?id=71745
2108
2109         Reviewed by Darin Adler.
2110
2111         This is the final step in this series of patches.
2112
2113         This patch removes the forceUnique flag from SecurityOrigin::create.
2114         Now, we create unique origins without passing in the document's URL,
2115         preventing information from the document's URL from leaking into the
2116         unique origin.
2117
2118         * WebCore.exp.in:
2119         * dom/Document.cpp:
2120         (WebCore::Document::setIsViewSource):
2121         (WebCore::Document::initSecurityContext):
2122         * loader/cache/MemoryCache.cpp:
2123         (WebCore::MemoryCache::getOriginsWithCache):
2124             - Update this callsite to use createFromString, which does exactly
2125               what this code is doing manually.
2126         * page/SecurityOrigin.cpp:
2127         (WebCore::SecurityOrigin::create):
2128         * page/SecurityOrigin.h:
2129
2130 2011-11-17  Vincent Scheib  <scheib@chromium.org>
2131
2132         Pointer Lock: Page Settings unecessary
2133         https://bugs.webkit.org/show_bug.cgi?id=72662
2134
2135         Reviewed by Darin Fisher.
2136
2137         No new tests.
2138
2139         * page/Settings.cpp:
2140         (WebCore::Settings::Settings):
2141         * page/Settings.h:
2142
2143 2011-11-17  James Robinson  <jamesr@chromium.org>
2144
2145         [chromium] Disable incremental uploading in threaded compositing path
2146         https://bugs.webkit.org/show_bug.cgi?id=72669
2147
2148         Reviewed by Kenneth Russell.
2149
2150         Since we don't currently support atomic incremental uploads, incremental uploads in the threaded path result in
2151         very strange-looking texture popping as tiles come in on pages that require more than 16 tile uploads per frame.
2152         This disables that logic (by setting the upload limit per frame to 99999) until we handle the incremental
2153         updates in an atomic fashion.
2154
2155         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2156         (WebCore::CCThreadProxy::scheduledActionUpdateMoreResources):
2157
2158 2011-11-06  Nat Duca  <nduca@chromium.org>
2159
2160         [chromium] Fix handling of setNeedsCommit and setNeedsAnimate in threaded mode
2161         https://bugs.webkit.org/show_bug.cgi?id=71638
2162
2163         Reviewed by James Robinson.
2164
2165         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2166         (WebCore::CCThreadProxy::CCThreadProxy):
2167         (WebCore::CCThreadProxy::setNeedsAnimate):
2168         (WebCore::CCThreadProxy::beginFrameAndCommit):
2169
2170 2011-11-17  Adam Barth  <abarth@webkit.org>
2171
2172         Remove bogus ASSERT.
2173
2174         * page/SecurityOrigin.cpp:
2175         (WebCore::SecurityOrigin::SecurityOrigin):
2176
2177 2011-11-17  Peter Kasting  <pkasting@google.com>
2178
2179         Unreviewed, rolling out r100698.
2180         http://trac.webkit.org/changeset/100698
2181         https://bugs.webkit.org/show_bug.cgi?id=72239
2182
2183         This change wasn't the problem either.
2184
2185         * dom/Document.cpp:
2186         (WebCore::Document::implicitClose):
2187
2188 2011-11-17  David Reveman  <reveman@chromium.org>
2189
2190         [Chromium] Calls to paintContentsIfDirty() and updateCompositorResources() should be balanced.
2191         https://bugs.webkit.org/show_bug.cgi?id=72630
2192
2193         Reviewed by James Robinson.
2194
2195         Layer property changes during paintContent() can leave the layer
2196         in an invalid state as paintContentsIfDirty() has been called
2197         without a matching updateCompositorResources() call. Removing
2198         conditionals around these calls ensure they are balanced.
2199
2200         This patch is tested by the following unit test:
2201         - CCLayerTreeHostTestOpacityChange.runMultiThread
2202
2203         * platform/graphics/chromium/ContentLayerChromium.cpp:
2204         (WebCore::ContentLayerChromium::paintContentsIfDirty):
2205         * platform/graphics/chromium/VideoLayerChromium.cpp:
2206         (WebCore::VideoLayerChromium::updateCompositorResources):
2207         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
2208         (WebCore::CCLayerTreeHost::paintMaskAndReplicaForRenderSurface):
2209         (WebCore::CCLayerTreeHost::paintLayerContents):
2210         (WebCore::CCLayerTreeHost::updateCompositorResources):
2211         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2212
2213 2011-11-17  Peter Kasting  <pkasting@google.com>
2214
2215         Unreviewed, rolling out r100584.
2216         http://trac.webkit.org/changeset/100584
2217         https://bugs.webkit.org/show_bug.cgi?id=72239
2218
2219         See if this change caused Linux dbg crashes.
2220
2221         * dom/Document.cpp:
2222         (WebCore::Document::implicitClose):
2223
2224 2011-11-17  Adam Barth  <abarth@webkit.org>
2225
2226         Remove cargo-cult copy/pasting of ScriptExecutionContext namespace
2227         https://bugs.webkit.org/show_bug.cgi?id=72676
2228
2229         Reviewed by Eric Seidel.
2230
2231         It looks like this cargo-cult started with initDNSPrefetch being hacked
2232         into setSecurityOrigin.  I've removed this hack along with the
2233         copy/paste code.
2234
2235         * dom/DOMImplementation.cpp:
2236         * dom/Document.cpp:
2237         (WebCore::Document::setIsViewSource):
2238         (WebCore::Document::open):
2239         (WebCore::Document::initSecurityContext):
2240         (WebCore::Document::setSecurityOrigin):
2241         * dom/Document.h:
2242         * xml/XSLTProcessor.cpp:
2243
2244 2011-11-17  Peter Kasting  <pkasting@google.com>
2245
2246         Unreviewed, rolling out r100676.
2247         http://trac.webkit.org/changeset/100676
2248         https://bugs.webkit.org/show_bug.cgi?id=72393
2249
2250         Looks like r100572 was not the source of the crashes.
2251
2252         * bindings/js/ScriptDebugServer.cpp:
2253         (WebCore::ScriptDebugServer::canSetScriptSource):
2254         * bindings/js/ScriptDebugServer.h:
2255         * bindings/v8/ScriptDebugServer.cpp:
2256         (WebCore::ScriptDebugServer::stepOutOfFunction):
2257         (WebCore::ScriptDebugServer::canSetScriptSource):
2258         * bindings/v8/ScriptDebugServer.h:
2259         * inspector/CodeGeneratorInspector.py:
2260         * inspector/Inspector.json:
2261         * inspector/InspectorDebuggerAgent.cpp:
2262         (WebCore::InspectorDebuggerAgent::getCapabilities):
2263         * inspector/InspectorDebuggerAgent.h:
2264         * inspector/front-end/DebuggerModel.js:
2265         (WebInspector.DebuggerModel):
2266         (WebInspector.DebuggerModel.prototype.enableDebugger):
2267         (WebInspector.DebuggerModel.prototype.disableDebugger):
2268         (WebInspector.DebuggerModel.prototype.canSetScriptSource):
2269         * inspector/front-end/DebuggerPresentationModel.js:
2270         (WebInspector.DebuggerPresentationModel.prototype.canEditScriptSource):
2271         * inspector/front-end/Settings.js:
2272
2273 2011-11-17  Konstantin Scheglov  <scheglov@google.com>
2274
2275         Absolute child is not repainted when parent opacity changes
2276         https://bugs.webkit.org/show_bug.cgi?id=68777
2277
2278         Reviewed by Simon Fraser.
2279
2280         First time when we change opacity for parent we don't have layer, so
2281         diff=StyleDifferenceRepaint is used instead of diff=StyleDifferenceRepaintLayer.
2282         Layer is created later, in styleDidChange().
2283         So, when we recalculate later diff, we now check for diff=StyleDifferenceRepaintLayer and
2284         performs repaintIncludingDescendants().
2285
2286         Test: fast/layers/layer-absolute-parent-opacity.html
2287
2288         * rendering/RenderObject.cpp:
2289         (WebCore::RenderObject::setStyle): Call repaintIncludingDescendants() instead of repaint().
2290         * rendering/style/RenderStyle.cpp:
2291         (WebCore::RenderStyle::diff): Add ContextSensitivePropertyOpacity when change opacity.
2292
2293 2011-11-17  Nate Chapin  <japhet@chromium.org>
2294
2295         r100311 dropped a RefPtr that is very
2296         helpful. Add it back.
2297         https://bugs.webkit.org/show_bug.cgi?id=72647
2298
2299         Reviewed by Adam Barth.
2300
2301         http/tests/misc/xslt-bad-import.html should
2302         stop crashing in full chromium builds.
2303
2304         * loader/cache/CachedResourceLoader.cpp:
2305         (WebCore::CachedResourceLoader::loadDone):
2306
2307 2011-11-17  Adam Barth  <abarth@webkit.org>
2308
2309         Refactor SecurityOrigin::create to be easier to understand
2310         https://bugs.webkit.org/show_bug.cgi?id=72342
2311
2312         Reviewed by Eric Seidel.
2313
2314         Over time, the SecurityOrigin constructor has grown a bit out of
2315         control.  This patch attempts to separate the different concerns into
2316         free functions.  The general approach is to put more logic in the
2317         "create" function and introduce a simple constructor for unique
2318         origins.
2319
2320         This patch shouldn't change any behavior.
2321
2322         * page/SecurityOrigin.cpp:
2323         (WebCore::schemeRequiresAuthority):
2324         (WebCore::shouldUseInnerURL):
2325         (WebCore::extractInnerURL):
2326         (WebCore::isDirectory):
2327         (WebCore::shouldTreatAsUniqueOrigin):
2328         (WebCore::SecurityOrigin::SecurityOrigin):
2329         (WebCore::SecurityOrigin::create):
2330         (WebCore::SecurityOrigin::createUnique):
2331         (WebCore::SecurityOrigin::databaseIdentifier):
2332         * page/SecurityOrigin.h:
2333
2334 2011-11-17  Shawn Singh  <shawnsingh@chromium.org>
2335
2336         [chromium] Fix minor style nit in CCLayerImpl
2337         https://bugs.webkit.org/show_bug.cgi?id=71070
2338
2339         Reviewed by James Robinson.
2340
2341         Fixes if-statements on several settors to follow WebKit
2342         conventions. Existing CCLayerImplTest unit tests already cover
2343         this change.
2344
2345         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
2346         (WebCore::CCLayerImpl::setBounds):
2347         (WebCore::CCLayerImpl::setMaskLayer):
2348         (WebCore::CCLayerImpl::setReplicaLayer):
2349         (WebCore::CCLayerImpl::setDrawsContent):
2350         (WebCore::CCLayerImpl::setAnchorPoint):
2351         (WebCore::CCLayerImpl::setAnchorPointZ):
2352         (WebCore::CCLayerImpl::setBackgroundColor):
2353         (WebCore::CCLayerImpl::setMasksToBounds):
2354         (WebCore::CCLayerImpl::setOpaque):
2355         (WebCore::CCLayerImpl::setOpacity):
2356         (WebCore::CCLayerImpl::setPosition):
2357         (WebCore::CCLayerImpl::setPreserves3D):
2358         (WebCore::CCLayerImpl::setZoomAnimatorTransform):
2359         (WebCore::CCLayerImpl::setSublayerTransform):
2360         (WebCore::CCLayerImpl::setTransform):
2361         (WebCore::CCLayerImpl::setDebugBorderColor):
2362         (WebCore::CCLayerImpl::setDebugBorderWidth):
2363         (WebCore::CCLayerImpl::setContentBounds):
2364         (WebCore::CCLayerImpl::setScrollPosition):
2365         (WebCore::CCLayerImpl::setScrollDelta):
2366         (WebCore::CCLayerImpl::setScaleDelta):
2367         (WebCore::CCLayerImpl::setDoubleSided):
2368
2369 2011-11-17  Michael Saboff  <msaboff@apple.com>
2370
2371         Leaks seen in MemoryPressureHandlerMac.mm on Leaks bot
2372         https://bugs.webkit.org/show_bug.cgi?id=72416
2373
2374         Added code to release _cache_event_source and _timer_event_source
2375         after they are canceled.  Also added defensive code to
2376         clean up the _timer_event_source in uninstall().
2377
2378         Reviewed by Geoffrey Garen.
2379
2380         No new tests, fixing leaks caught by leaks bot.
2381
2382         * platform/mac/MemoryPressureHandlerMac.mm:
2383         (WebCore::MemoryPressureHandler::uninstall):
2384         (WebCore::MemoryPressureHandler::holdOff):
2385
2386 2011-11-17  Ken Buchanan <kenrb@chromium.org>
2387
2388         Crash from positioned generated content under run-in
2389         https://bugs.webkit.org/show_bug.cgi?id=70456
2390
2391         Reviewed by David Hyatt.
2392
2393         Modified handling of run-in children to clear generated children
2394         before removing the parent from the render tree. This caused problems
2395         with absolute positioned children being not properly removed from the
2396         positioned object list of the RenderView.
2397
2398         * rendering/RenderBlock.cpp:
2399         (WebCore::RenderBlock::handleRunInChild):
2400
2401 2011-11-17  Peter Kasting  <pkasting@google.com>
2402
2403         Unreviewed, rolling out r100572.
2404         https://bugs.webkit.org/show_bug.cgi?id=72393
2405         https://bugs.webkit.org/show_bug.cgi?id=72651
2406
2407         May have caused seg faults on Chromium Linux dbg bot.
2408
2409         * bindings/js/ScriptDebugServer.cpp:
2410         * bindings/js/ScriptDebugServer.h:
2411         * bindings/v8/ScriptDebugServer.cpp:
2412         (WebCore::ScriptDebugServer::stepOutOfFunction):
2413         * bindings/v8/ScriptDebugServer.h:
2414         * inspector/CodeGeneratorInspector.py:
2415         * inspector/Inspector.json:
2416         * inspector/InspectorDebuggerAgent.cpp:
2417         * inspector/InspectorDebuggerAgent.h:
2418         * inspector/front-end/DebuggerModel.js:
2419         (WebInspector.DebuggerModel):
2420         (WebInspector.DebuggerModel.prototype.enableDebugger):
2421         (WebInspector.DebuggerModel.prototype.disableDebugger):
2422         * inspector/front-end/DebuggerPresentationModel.js:
2423         (WebInspector.DebuggerPresentationModel.prototype.canEditScriptSource):
2424         * inspector/front-end/Settings.js:
2425
2426 2011-11-17  Sheriff Bot  <webkit.review.bot@gmail.com>
2427
2428         Unreviewed, rolling out r100652.
2429         http://trac.webkit.org/changeset/100652
2430         https://bugs.webkit.org/show_bug.cgi?id=72648
2431
2432         "Caused outline-offset-min-assert.html to assert on debug
2433         builds" (Requested by mwenge2 on #webkit).
2434
2435         * rendering/RenderObject.cpp:
2436         (WebCore::RenderObject::paintOutline):
2437
2438 2011-11-17  Mark Rowe  <mrowe@apple.com>
2439
2440         <http://webkit.org/b/72637> Stop performing runtime version checks on OS versions where the check can never possibly fail.
2441
2442         Reviewed by Simon Fraser.
2443
2444         * platform/graphics/cg/ImageBufferDataCG.cpp:
2445         (WebCore::haveVImageRoundingErrorFix): When not targeting Snow Leopard we always have the fix.
2446
2447 2011-11-17  Chris Fleizach  <cfleizach@apple.com>
2448
2449         AX: The scrollArea is not correctly returning the scrollbars
2450         https://bugs.webkit.org/show_bug.cgi?id=70247
2451
2452         Reviewed by Beth Dakin.
2453
2454         A few bugs that were preventing this from working.
2455            1) In accessibilityAttributeValue: when an element did not have a renderer() we were returning earlier than we should have
2456            2) We were not updating and clearing the scrollbars correctly when children were cleared or when asked for.
2457
2458         Test: platform/mac/accessibility/scrollbars.html
2459
2460         * accessibility/AccessibilityScrollView.cpp:
2461         (WebCore::AccessibilityScrollView::scrollBar):
2462         (WebCore::AccessibilityScrollView::clearChildren):
2463         * accessibility/AccessibilityScrollView.h:
2464         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
2465         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
2466
2467 2011-11-14  Adam Barth  <abarth@webkit.org>
2468
2469         Unique origins shouldn't remember their scheme, host, or port
2470         https://bugs.webkit.org/show_bug.cgi?id=72308
2471
2472         Reviewed by Eric Seidel.
2473
2474         This patch contains the bulk (all?) of the behavior differences in this
2475         patch series.  Unique origins shouldn't remember their schemes.  Doing
2476         so causes some privileges (e.g., local access) to leak into unique
2477         origins.
2478
2479         * page/SecurityOrigin.cpp:
2480         (WebCore::SecurityOrigin::SecurityOrigin):
2481             - Explicitly clear out the protocol, host, and port for unique
2482               origins.  A future patch will refactor all this code to be more
2483               elegant.
2484         * platform/SchemeRegistry.cpp:
2485         (WebCore::schemesWithUniqueOrigins):
2486             - Merge "about" and "javascript" in with the general case now that
2487               we don't have a separate notion of an empty origin.
2488
2489 2011-11-17  Chris Fleizach  <cfleizach@apple.com>
2490
2491         AX: cleanup style and naming and code in accessibility search mechanism
2492         https://bugs.webkit.org/show_bug.cgi?id=72570
2493
2494         Reviewed by Beth Dakin.
2495
2496         Cleanup the naming and code style within the element searching mechanism.
2497
2498         * accessibility/AccessibilityObject.cpp:
2499         (WebCore::AccessibilityObject::isAccessibilityObjectSearchMatch):
2500         (WebCore::AccessibilityObject::isAccessibilityTextSearchMatch):
2501         (WebCore::AccessibilityObject::firstAccessibleObjectFromNode):
2502         (WebCore::AccessibilityObject::findMatchingObjects):
2503         * accessibility/AccessibilityObject.h:
2504         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
2505         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
2506
2507 2011-11-17  Julien Chaffraix  <jchaffraix@webkit.org>
2508
2509         CSS table with 100% width can overflow their containing block
2510         https://bugs.webkit.org/show_bug.cgi?id=72180
2511
2512         Reviewed by David Hyatt.
2513
2514         Tests: fast/table/table-in-table-percent-width-collapsing-border-quirks-mode.html
2515                fast/table/table-in-table-percent-width-collapsing-border.html
2516                fast/table/table-in-table-percent-width-quirks-mode.html
2517                fast/table/table-in-table-percent-width.html
2518
2519         After r97555, we would include the borders in a CSS table's logical width even if the 'width'
2520         property was a percent. This does not match what Firefox and IE are doing. Thus don't apply
2521         this behavior to percent 'width'.
2522
2523         * rendering/RenderTable.cpp:
2524         (WebCore::RenderTable::computeLogicalWidth):
2525
2526 2011-11-17  Adrienne Walker  <enne@google.com>
2527
2528         [chromium] Implicitly skip render surfaces that won't be drawn
2529         https://bugs.webkit.org/show_bug.cgi?id=71038
2530
2531         Rather than having redundant checks in three places for how to walk
2532         through a render surface list, instead don't add render surfaces that
2533         don't need to get rendered to the render surface list.
2534
2535         Reviewed by James Robinson.
2536
2537         Covered by existing layout tests and unit tests.
2538
2539         * platform/graphics/chromium/LayerRendererChromium.cpp:
2540         (WebCore::LayerRendererChromium::drawLayersOntoRenderSurfaces):
2541         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
2542         (WebCore::CCLayerTreeHost::paintLayerContents):
2543         (WebCore::CCLayerTreeHost::updateCompositorResources):
2544         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
2545         (WebCore::calculateDrawTransformsAndVisibilityInternal):
2546
2547 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
2548
2549         [Qt] Layer violation: qt_runtime.cpp accesses QWebElement and QTDRTNode
2550         https://bugs.webkit.org/show_bug.cgi?id=72595
2551
2552         Reviewed by Noam Rosenthal.
2553
2554         Removed QWebElement and QtDRTNode usage that reached from WebCore into
2555         WebKit/qt and replaced it with the ability to register custom JSValue
2556         conversion functions. The old code has been moved to WebKit/qt.
2557
2558         * bridge/qt/qt_instance.cpp:
2559         (JSC::Bindings::QtInstance::QtInstance): Remove unnecessary meta type registration
2560         (now done in QtWebElementRuntime::initialize in WebKit/qt).
2561         * bridge/qt/qt_runtime.cpp:
2562         (JSC::Bindings::registerCustomType):
2563         (JSC::Bindings::convertValueToQVariant):
2564         (JSC::Bindings::convertQVariantToValue):
2565         * bridge/qt/qt_runtime.h:
2566
2567 2011-11-17  Fady Samuel  <fsamuel@chromium.org>
2568
2569         Pass Aspect Ratio to RenderStyle
2570         https://bugs.webkit.org/show_bug.cgi?id=72350
2571
2572         Reviewed by Ojan Vafai.
2573
2574         * css/CSSComputedStyleDeclaration.cpp:
2575         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2576         * css/CSSStyleApplyProperty.cpp:
2577         (WebCore::ApplyPropertyAspectRatio::applyInheritValue):
2578         (WebCore::ApplyPropertyAspectRatio::applyInitialValue):
2579         (WebCore::ApplyPropertyAspectRatio::applyValue):
2580         (WebCore::ApplyPropertyAspectRatio::createHandler):
2581         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
2582         * css/CSSStyleSelector.cpp:
2583         (WebCore::CSSStyleSelector::applyProperty):
2584         * css/CSSValue.h:
2585         (WebCore::CSSValue::isAspectRatioValue):
2586         * rendering/style/RenderStyle.h:
2587         (WebCore::InheritedFlags::hasAspectRatio):
2588         (WebCore::InheritedFlags::aspectRatio):
2589         (WebCore::InheritedFlags::aspectRatioDenominator):
2590         (WebCore::InheritedFlags::aspectRatioNumerator):
2591         (WebCore::InheritedFlags::setHasAspectRatio):
2592         (WebCore::InheritedFlags::setAspectRatioDenominator):
2593         (WebCore::InheritedFlags::setAspectRatioNumerator):
2594         (WebCore::InheritedFlags::initialHasAspectRatio):
2595         (WebCore::InheritedFlags::initialAspectRatioDenominator):
2596         (WebCore::InheritedFlags::initialAspectRatioNumerator):
2597         * rendering/style/StyleRareNonInheritedData.cpp:
2598         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
2599         (WebCore::StyleRareNonInheritedData::operator==):
2600         * rendering/style/StyleRareNonInheritedData.h:
2601
2602 2011-11-09  Robert Hogan  <robert@webkit.org>
2603
2604         CSS 2.1 failure: outline-color-* tests fail
2605         https://bugs.webkit.org/show_bug.cgi?id=71931
2606
2607         Reviewed by Julien Chaffraix.
2608
2609         WebKit wasn't displaying the top block in these tests because it did not paint the outline
2610         of divs with zero size.
2611
2612         * rendering/RenderObject.cpp:
2613         (WebCore::RenderObject::paintOutline): paint the outline even when the block has zero size
2614
2615 2011-11-17  Sergio Villar Senin  <svillar@igalia.com>
2616
2617         [GTK] plugins/get-url-notify-with-url-that-fails-to-load.html on bots after r100466
2618         https://bugs.webkit.org/show_bug.cgi?id=72613
2619
2620         Reviewed by Martin Robinson.
2621
2622         Do not assume that a SoupRequest always exists, it is not
2623         generated for example when the provided URL is
2624         invalid. ResourceHandle::platformSetDefersLoading was crashing
2625         because of that.
2626
2627         * platform/network/soup/ResourceHandleSoup.cpp:
2628         (WebCore::ResourceHandle::platformSetDefersLoading):
2629
2630 2011-11-17  Vsevolod Vlasov  <vsevik@chromium.org>
2631
2632         Web Inspector: Remove onlineDetectionEnabled from Preferences
2633         https://bugs.webkit.org/show_bug.cgi?id=72617
2634
2635         Reviewed by Pavel Feldman.
2636
2637         * inspector/front-end/ApplicationCacheItemsView.js:
2638         (WebInspector.ApplicationCacheItemsView):
2639         (WebInspector.ApplicationCacheItemsView.prototype.get statusBarItems):
2640         * inspector/front-end/Settings.js:
2641
2642 2011-11-17  Ken Buchanan  <kenrb@chromium.org>
2643
2644         Crash from nested tables with generated content
2645         https://bugs.webkit.org/show_bug.cgi?id=68811
2646
2647         Reviewed by David Hyatt.
2648
2649         When adding a child to a table that has generated content, this change
2650         ensures that we leave alone any generated content renderers that belong
2651         to descendants in the tree. They don't need to be touched, and doing so
2652         can create confusion about who the content belongs to.
2653
2654         This patch also simplifies some existing code for finding pseudoelement
2655         renderers. 
2656
2657         * rendering/RenderBlock.cpp:
2658         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):
2659         * rendering/RenderObject.cpp:
2660         (WebCore::RenderObject::addChild):
2661         (WebCore::RenderObject::isBeforeAfterContentGeneratedByAncestor): Added
2662         * rendering/RenderObject.h:
2663         (WebCore::RenderObject::findAfterContentRenderer): Deleted
2664         (WebCore::RenderObject::findBeforeContentRenderer): Deleted
2665         * rendering/RenderObjectChildList.cpp:
2666         (WebCore::RenderObjectChildList::beforePseudoElementRenderer):
2667         (WebCore::RenderObjectChildList::afterPseudoElementRenderer):
2668         * rendering/RenderTable.cpp:
2669         (WebCore::RenderTable::addChild):
2670         * rendering/RenderTableRow.cpp:
2671         (WebCore::RenderTableRow::addChild):
2672         * rendering/RenderTableSection.cpp:
2673         (WebCore::RenderTableSection::addChild):
2674
2675 2011-11-17  Patrick Gansterer  <paroga@webkit.org>
2676
2677         Unreviewed WinCE build fix for r94119.
2678
2679         MSVC throws multiply defined symbols linker error when using local class in inline function.
2680
2681         * bindings/js/JSDictionary.h:
2682         (WebCore::JSDictionary::IdentitySetter::identitySetter):
2683         (WebCore::JSDictionary::tryGetProperty):
2684
2685 2011-11-17  Eric Carlson  <eric.carlson@apple.com>
2686
2687         TextTrackList not sorted correctly
2688         https://bugs.webkit.org/show_bug.cgi?id=72545
2689
2690         Reviewed by Darin Adler.
2691
2692         Test: media/track/track-texttracks.html
2693
2694         * WebCore.xcodeproj/project.pbxproj: Add TextTrack.h to WebCore private headers because 
2695             it is included by HTMLMediaElement.h.
2696         * html/LoadableTextTrack.cpp:
2697         (WebCore::LoadableTextTrack::LoadableTextTrack): Pass track type to base class constructor.
2698         (WebCore::LoadableTextTrack::trackElementIndex): New, return the <track> element's tree order
2699             for sorting.
2700         * html/LoadableTextTrack.h:
2701
2702         * html/TextTrack.cpp:
2703         (WebCore::TextTrack::TextTrack): Set track type.
2704         * html/TextTrack.h:
2705         (WebCore::TextTrack::create): Ditto.
2706         (WebCore::TextTrack::trackType): Ditto.
2707
2708         * html/track/TextTrackList.cpp:
2709         (TextTrackList::length): Update to deal with two TextTrack vectors.
2710         (TextTrackList::item): Ditto.
2711         (TextTrackList::append): Ditto.
2712         (TextTrackList::remove): Ditto
2713         * html/track/TextTrackList.h: Store the two types of TextTracks in separate Vectors to make
2714             it simpler to keep them in the correct order.
2715
2716 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
2717
2718         [Qt] Layer violation: WebCore::dnsPrefetch uses QWebSettings::globalSettings()
2719         https://bugs.webkit.org/show_bug.cgi?id=72596
2720
2721         Reviewed by Kenneth Rohde Christiansen.
2722
2723         We don't need to use QWebSettings here, because we now propagate the DNS prefetch
2724         setting to WebCore::Settings and the rest of WebCore checks the setting before calling
2725         WebCore::prefetchDNS.
2726
2727         * platform/network/qt/DnsPrefetchHelper.cpp:
2728         (WebCore::prefetchDNS): Removed the use of QWebSettings.
2729         * platform/network/qt/DnsPrefetchHelper.h: Remove offending qwebsettings.h inclusion.
2730
2731 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
2732
2733         [Qt] Layer violation: Image::loadPlatformResource uses QWebSettings::webGraphic
2734         https://bugs.webkit.org/show_bug.cgi?id=72594
2735
2736         Reviewed by Kenneth Rohde Christiansen.
2737
2738         Move the cache for the resource pixmaps into ImageQt.cpp.
2739
2740         * platform/graphics/Image.h: Add Qt specific setter for resource pixmaps.
2741         * platform/graphics/qt/ImageQt.cpp: Moved resource pixmap hash from qwebsettings.
2742         (earlyClearGraphics):
2743         (graphics):
2744         (loadResourcePixmap):
2745         (WebCore::Image::setPlatformResource):
2746
2747 2011-11-17  Zeno Albisser  <zeno@webkit.org>
2748
2749         [Qt][WK2] Touch/Mouse events are delivered with wrong coordinates.
2750         https://bugs.webkit.org/show_bug.cgi?id=72604
2751
2752         When using the QtViewportInterationEngine for zooming/panning,
2753         no additional scroll offset should be applied to input events
2754         by the ScrollView.
2755
2756         This patch is based on work by Andreas Kling.
2757
2758         Reviewed by Kenneth Rohde Christiansen.
2759
2760         * platform/ScrollView.cpp:
2761         (WebCore::ScrollView::windowToContents):
2762         (WebCore::ScrollView::contentsToWindow):
2763
2764 2011-11-17  Ben Murdoch  <benm@google.com>
2765
2766         Unreviewed build fix.
2767
2768         Fix the Windows builds by adding WorkerEventQueue.cpp|h to the
2769         vcproj. Build break was introduced in
2770         https://bugs.webkit.org/show_bug.cgi?id=72528
2771
2772         * WebCore.vcproj/WebCore.vcproj: Add missing files.
2773
2774 2011-11-17  Mihnea Ovidenie  <mihnea@adobe.com>
2775
2776         CSS Exclusions: parse the wrap-margin and wrap-padding properties
2777         https://bugs.webkit.org/show_bug.cgi?id=71900
2778
2779         Reviewed by Dean Jackson.
2780
2781         Tests: fast/exclusions/wrap-margin-parsing.html
2782                fast/exclusions/wrap-padding-parsing.html
2783
2784         * css/CSSComputedStyleDeclaration.cpp:
2785         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2786         * css/CSSParser.cpp:
2787         (WebCore::isSimpleLengthPropertyID):
2788         (WebCore::CSSParser::parseValue):
2789         * css/CSSProperty.cpp:
2790         (WebCore::CSSProperty::isInheritedProperty):
2791         * css/CSSPropertyNames.in:
2792         * css/CSSStyleApplyProperty.cpp:
2793         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
2794         * css/CSSStyleSelector.cpp:
2795         (WebCore::CSSStyleSelector::applyProperty):
2796         * rendering/style/RenderStyle.cpp:
2797         (WebCore::RenderStyle::diff):
2798         * rendering/style/RenderStyle.h:
2799         (WebCore::InheritedFlags::wrapPadding):
2800         (WebCore::InheritedFlags::setWrapPadding):
2801         (WebCore::InheritedFlags::initialWrapPadding):
2802         (WebCore::InheritedFlags::wrapMargin):
2803         (WebCore::InheritedFlags::setWrapMargin):
2804         (WebCore::InheritedFlags::initialWrapMargin):
2805         * rendering/style/StyleRareNonInheritedData.cpp:
2806         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
2807         (WebCore::StyleRareNonInheritedData::operator==):
2808         * rendering/style/StyleRareNonInheritedData.h:
2809
2810 2011-11-17  Kenichi Ishibashi  <bashi@chromium.org>
2811
2812         [chromium] don't call fontconfig twice in complex text path
2813         https://bugs.webkit.org/show_bug.cgi?id=38701
2814
2815         Adds a new API for getting font family. For now, FontCacheLinux calls the new API, but don't use additional properties for compatibility. The old API will be removed when Chromium is ready to use new API.
2816
2817         Reviewed by Tony Chang.
2818
2819         No new tests. No behavior changes for now.
2820
2821         * platform/chromium/PlatformSupport.h: Added FontFamily struct and changed the declaration of getFontFamilyForCharacters().
2822         * platform/graphics/chromium/FontCacheLinux.cpp:
2823         (WebCore::FontCache::getFontDataForCharacters): Uses new PlatformSupport::getFontFamilyForCharacters().
2824         * platform/graphics/chromium/FontPlatformDataLinux.h:
2825         (WebCore::FontPlatformData::setFakeBold): Added.
2826         (WebCore::FontPlatformData::setFakeItalic): Added.
2827
2828 2011-11-17  Mario Sanchez Prada  <msanchez@igalia.com>
2829
2830         [GTK] Consider parent AtkObject in webkit_accessible_get_parent(), if already set
2831         https://bugs.webkit.org/show_bug.cgi?id=72525
2832
2833         Reviewed by Xan Lopez.
2834
2835         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2836         (webkit_accessible_get_parent): Call to the implementation of
2837         atk_object_get_parent in AtkObject class to check whether a parent
2838         AtkObject has been previously set, before trying to find one.
2839
2840 2011-11-17  Pavel Feldman  <pfeldman@google.com>
2841
2842         Not reviewed: fix IE user agents strings in the inspector.
2843
2844         * inspector/front-end/SettingsScreen.js:
2845         (WebInspector.SettingsScreen.prototype._createUserAgentSelectRowElement.get const):
2846
2847 2011-11-16  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2848
2849         Make use-fixed-layout work reliable
2850         https://bugs.webkit.org/show_bug.cgi?id=72511
2851
2852         Reviewed by Simon Hausmann.
2853
2854         Always send a viewport update per page load as we depend on that,
2855         to reset all viewport handling before doing layout.
2856
2857         * page/Page.cpp:
2858         (WebCore::Page::updateViewportArguments):
2859
2860 2011-11-16  Alexander Pavlov  <apavlov@chromium.org>
2861
2862         Web Inspector: inspector follows javascript: hrefs as relative
2863         https://bugs.webkit.org/show_bug.cgi?id=72373
2864
2865         javascript: hrefs should never be linkified for security.
2866
2867         Reviewed by Yury Semikhatsky.
2868
2869         * inspector/front-end/ElementsTreeOutline.js:
2870         (WebInspector.ElementsTreeElement.prototype._buildAttributeDOM):
2871         * inspector/front-end/ResourceUtils.js:
2872         (WebInspector.completeURL):
2873
2874 2011-11-17  Nikolas Zimmermann  <nzimmermann@rim.com>
2875
2876         Not reviewed. Fix 32bit builds.
2877
2878         * platform/ClockGeneric.cpp:
2879         (ClockGeneric::now): Use narrowPrecisionToFloat.
2880         * rendering/FilterEffectRenderer.cpp:
2881         (WebCore::FilterEffectRenderer::build): Use it correctly.
2882
2883 2011-11-17  Dominic Mazzoni  <dmazzoni@google.com>
2884
2885         Accessibility: Chromium requires an AX notification when an iframe loads.
2886         https://bugs.webkit.org/show_bug.cgi?id=72239
2887
2888         When a document finishes loading, we were sending an AXLoadComplete if it
2889         was the top document. Now, if it's a document in an iframe, send an
2890         AXLayoutComplete on the iframe.
2891
2892         Reviewed by Chris Fleizach.
2893
2894         Test: accessibility/loading-iframe-sends-notification.html
2895
2896         * dom/Document.cpp:
2897         (WebCore::Document::implicitClose):
2898
2899 2011-11-16  Mark Rowe  <mrowe@apple.com>
2900
2901         <http://webkit.org/b/72574> Remove unnecessary use of CarbonCore APIs from Audio code
2902
2903         Reviewed by Andy Estes.
2904
2905         * platform/audio/mac/AudioDestinationMac.cpp:
2906         (WebCore::AudioDestinationMac::AudioDestinationMac): Switch from using the Carbon Component Manager
2907         to using AudioUnit's own component interface.
2908         (WebCore::AudioDestinationMac::~AudioDestinationMac): Ditto.
2909         * platform/audio/mac/AudioFileReaderMac.cpp:
2910         (WebCore::AudioFileReader::AudioFileReader): Remove an unncessary trip through the Carbon File Manager
2911         when converting a char* path to a CFURLRef representing the same.
2912
2913 2011-11-17  Adam Barth  <abarth@webkit.org>
2914
2915         CSP report-only mode doesn't work from an HTTP header
2916         https://bugs.webkit.org/show_bug.cgi?id=71958
2917
2918         Reviewed by Eric Seidel.
2919
2920         "It's tested or it's broken." -- Adam Leventhal
2921
2922         Test: http/tests/security/contentSecurityPolicy/report-only-from-header.php
2923
2924         * loader/FrameLoader.cpp:
2925         (WebCore::FrameLoader::didBeginDocument):
2926
2927 2011-11-15  Pavel Feldman  <pfeldman@google.com>
2928
2929         Web Inspector: introduce Debugger domain capabilities concept.
2930         https://bugs.webkit.org/show_bug.cgi?id=72393
2931
2932         Many of the Preferences that we have in Settings.js and override in DevTools.js
2933         are really not preferences, but capabilities. Protocol clients should have a way
2934         of figuring out whether some capability is present before using it.
2935
2936         Reviewed by Yury Semikhatsky.
2937
2938         * bindings/js/ScriptDebugServer.cpp:
2939         (WebCore::ScriptDebugServer::canSetScriptSource):
2940         * bindings/js/ScriptDebugServer.h:
2941         * bindings/v8/ScriptDebugServer.cpp:
2942         (WebCore::ScriptDebugServer::canSetScriptSource):
2943         * bindings/v8/ScriptDebugServer.h:
2944         * inspector/CodeGeneratorInspector.py:
2945         * inspector/Inspector.json:
2946         * inspector/InspectorDebuggerAgent.cpp:
2947         (WebCore::InspectorDebuggerAgent::getCapabilities):
2948         * inspector/InspectorDebuggerAgent.h:
2949         * inspector/front-end/DebuggerModel.js:
2950         (WebInspector.DebuggerModel):
2951         (WebInspector.DebuggerModel.prototype.enableDebugger):
2952         (WebInspector.DebuggerModel.prototype.canSetScriptSource):
2953         * inspector/front-end/DebuggerPresentationModel.js:
2954         (WebInspector.DebuggerPresentationModel.prototype.canEditScriptSource):
2955         * inspector/front-end/Settings.js:
2956
2957 2011-11-17  Mihnea Ovidenie  <mihnea@adobe.com>
2958
2959         CSS exclusions: parse the wrap-flow and wrap-through properties
2960         https://bugs.webkit.org/show_bug.cgi?id=71904
2961
2962         Reviewed by Dean Jackson.
2963
2964         Tests: fast/exclusions/wrap-flow-parsing.html
2965                fast/exclusions/wrap-through-parsing.html
2966
2967         * css/CSSComputedStyleDeclaration.cpp:
2968         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2969         * css/CSSParser.cpp:
2970         (WebCore::CSSParser::parseValue):
2971         * css/CSSPrimitiveValueMappings.h:
2972         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2973         (WebCore::CSSPrimitiveValue::operator WrapFlow):
2974         (WebCore::CSSPrimitiveValue::operator WrapThrough):
2975         * css/CSSProperty.cpp:
2976         (WebCore::CSSProperty::isInheritedProperty):
2977         * css/CSSPropertyNames.in:
2978         * css/CSSStyleSelector.cpp:
2979         (WebCore::CSSStyleSelector::applyProperty):
2980         * css/CSSValueKeywords.in:
2981         * rendering/style/RenderStyle.cpp:
2982         (WebCore::RenderStyle::diff):
2983         * rendering/style/RenderStyle.h:
2984         (WebCore::InheritedFlags::wrapFlow):
2985         (WebCore::InheritedFlags::wrapThrough):
2986         (WebCore::InheritedFlags::setWrapFlow):
2987         (WebCore::InheritedFlags::setWrapThrough):
2988         (WebCore::InheritedFlags::initialWrapFlow):
2989         (WebCore::InheritedFlags::initialWrapThrough):
2990         * rendering/style/RenderStyleConstants.h:
2991         * rendering/style/StyleRareNonInheritedData.cpp:
2992         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
2993         (WebCore::StyleRareNonInheritedData::operator==):
2994         * rendering/style/StyleRareNonInheritedData.h:
2995
2996 2011-11-16  Dean Jackson  <dino@apple.com>
2997
2998         Implement filter function shorthands
2999         https://bugs.webkit.org/show_bug.cgi?id=68475
3000
3001         Reviewed by Simon Fraser.
3002
3003         Implement the shorthand functions for filter effects.
3004         This includes grayscale, sepia, invert, hue-rotate, saturate,
3005         opacity, gamma, drop-shadow and blur. At the moment sharpen
3006         and url are not supported.
3007
3008         CSSParser needed to be updated because it was mistakenly
3009         clamping saturation values to [0,1]. Any positive number
3010         is allowed so you can produce super-saturated images.
3011
3012         The biggest change was the API to FilterEffectRenderer. It now
3013         builds a list of effects and applies the filter itself.
3014
3015         Note that the drop-shadow and blur operations don't yet
3016         provide accurate results because they produce an output image
3017         that is larger than the input. See
3018         https://bugs.webkit.org/show_bug.cgi?id=71929
3019         https://bugs.webkit.org/show_bug.cgi?id=71930
3020
3021         While I was there, I fixed a small style issue in
3022         CustomFilterOperation.
3023
3024         Tests: css3/filters/effect-blur.html
3025                css3/filters/effect-combined.html
3026                css3/filters/effect-drop-shadow.html
3027                css3/filters/effect-gamma.html
3028                css3/filters/effect-grayscale.html
3029                css3/filters/effect-hue-rotate.html
3030                css3/filters/effect-invert.html
3031                css3/filters/effect-opacity.html
3032                css3/filters/effect-saturate.html
3033                css3/filters/effect-sepia.html
3034
3035         * WebCore.xcodeproj/project.pbxproj: Add StyleShader.h to
3036         the project (missing from earlier commit).
3037         * css/CSSParser.cpp:
3038         (WebCore::CSSParser::isValidFilterArgument): Don't clamp
3039         saturate to [0,1]
3040         * platform/graphics/filters/CustomFilterOperation.h:
3041         * rendering/FilterEffectRenderer.cpp:
3042         (WebCore::endMatrixRow):
3043         (WebCore::lastMatrixRow):
3044         (WebCore::FilterEffectRenderer::FilterEffectRenderer):
3045         (WebCore::FilterEffectRenderer::inputContext):
3046         (WebCore::FilterEffectRenderer::build):
3047         (WebCore::FilterEffectRenderer::prepare):
3048         (WebCore::FilterEffectRenderer::apply):
3049         * rendering/FilterEffectRenderer.h:
3050         (WebCore::FilterEffectRenderer::setSourceImageRect):
3051         (WebCore::FilterEffectRenderer::output):
3052         (WebCore::FilterEffectRenderer::setMaxEffectRects):
3053         (WebCore::FilterEffectRenderer::lastEffect):
3054         * rendering/RenderLayer.cpp:
3055         (WebCore::RenderLayer::paintLayer):
3056         (WebCore::RenderLayer::updateOrRemoveFilterEffect):
3057         (WebCore::RenderLayer::updateFilterBackingStore):
3058
3059 2011-11-16  Kentaro Hara  <haraken@chromium.org>
3060
3061         Remove all custom constructors of Events from JSC
3062         https://bugs.webkit.org/show_bug.cgi?id=72577
3063
3064         Reviewed by Adam Barth.
3065
3066         - Makes CodeGeneratorJS.pm generate Event constructors
3067         if [ConstructorTemplate=Event] IDL is specified.
3068         - Removes EventConstructors.h and JSEventConstructors.cpp.
3069         - Replaces all JSC custom constructors of Events
3070         with the generated code by [ConstructorTemplate=Event] IDL.
3071
3072         Tests: fast/events/constructors/before-load-event-constructor.html
3073                fast/events/constructors/close-event-constructor.html
3074                fast/events/constructors/custom-event-constructor.html
3075                fast/events/constructors/error-event-constructor.html
3076                fast/events/constructors/event-constructors.html
3077                fast/events/constructors/hash-change-event-constructor.html
3078                fast/events/constructors/message-event-constructor.html
3079                fast/events/constructors/overflow-event-constructor.html
3080                fast/events/constructors/page-transition-event-constructor.html
3081                fast/events/constructors/pop-state-event-constructor.html
3082                fast/events/constructors/progress-event-constructor.html
3083                fast/events/constructors/track-event-constructor.html
3084                fast/events/constructors/webkit-animation-event-constructor.html
3085                fast/events/constructors/webkit-transition-event-constructor.html
3086
3087         * bindings/generic/EventConstructors.h: Removed. This is what we wanted to do in this patch.
3088         * bindings/js/JSEventConstructors.cpp: Ditto.
3089         * GNUmakefile.list.am: Removed EventConstructors.h and JSEventConstructors.cpp.
3090         * Target.pri: Ditto.
3091         * UseJSC.cmake: Ditto.
3092         * WebCore.gypi: Ditto.
3093         * WebCore.vcproj/WebCore.vcproj: Ditto.
3094         * WebCore.xcodeproj/project.pbxproj: Ditto.
3095         * bindings/js/JSBindingsAllInOne.cpp: Ditto.
3096
3097         * bindings/scripts/CodeGeneratorJS.pm:
3098         (GenerateHeader): Added JSDictionary.h.
3099         (GenerateConstructorDeclaration): Added a header for fillXXXXEventInit(...).
3100         (GenerateConstructorDefinition): Generates an Event constructor. The generated code is the same as the code that had been written in JSEventConstructors.cpp.
3101         (IsConstructable): Judges if a given interface is constructable.
3102         (IsConstructorTemplate): Judges if a given interface has a given template, e.g. judges if an interface has [ConstructorTemplate=Event].
3103
3104         * bindings/scripts/test/TestEventConstructor.idl: Changed 'CustomConstructor=Event' to 'ConstructorTemplate=Event'. We should have changed this in r100108.
3105         * bindings/scripts/test/JS/JSTestEventConstructor.cpp: Updated a run-bindings-tests result.
3106         (WebCore::JSTestEventConstructorConstructor::constructJSTestEventConstructor):
3107         (WebCore::fillTestEventConstructorInit):
3108         * bindings/scripts/test/JS/JSTestEventConstructor.h: Ditto.
3109         * bindings/scripts/test/V8/V8TestEventConstructor.cpp: Ditto.
3110         (WebCore::V8TestEventConstructor::constructorCallback):
3111         (WebCore::fillTestEventConstructorInit):
3112         * bindings/scripts/test/V8/V8TestEventConstructor.h: Ditto.
3113
3114         * dom/BeforeLoadEvent.idl: In essence, replaced [JSCustomConstructor] IDL with [JSConstructorTemplate=Event] IDL.
3115         * dom/CustomEvent.idl: Ditto.
3116         * dom/ErrorEvent.idl: Ditto.
3117         * dom/Event.idl: Ditto.
3118         * dom/HashChangeEvent.idl: Ditto.
3119         * dom/MessageEvent.idl: Ditto.
3120         * dom/OverflowEvent.idl: Ditto.
3121         * dom/PageTransitionEvent.idl: Ditto.
3122         * dom/PopStateEvent.idl: Ditto.
3123         * dom/ProgressEvent.idl: Ditto.
3124         * dom/WebKitAnimationEvent.idl: Ditto.
3125         * dom/WebKitTransitionEvent.idl: Ditto.
3126         * html/track/TrackEvent.idl: Ditto.
3127         * websockets/CloseEvent.idl: Ditto.
3128
3129 2011-11-16  Dean Jackson  <dino@apple.com>
3130
3131         Build fix for Apple WebKit due to r100560.
3132         When I removed the violating header file it lost the
3133         reference to Color.
3134
3135         No review.
3136
3137         * platform/graphics/filters/FilterOperation.h:
3138
3139 2011-11-16  Dean Jackson  <dino@apple.com>
3140
3141         DropShadowFilterOperation violates platform isolation
3142         https://bugs.webkit.org/show_bug.cgi?id=72544
3143
3144         Reviewed by Simon Fraser.
3145
3146         Move ShadowData properties into the DropShadowFilterOperation
3147         to avoid depending on something outside platform.
3148
3149         * css/CSSComputedStyleDeclaration.cpp:
3150         (WebCore::CSSComputedStyleDeclaration::valueForFilter):
3151         * css/CSSStyleSelector.cpp:
3152         (WebCore::CSSStyleSelector::createFilterOperations):
3153         * platform/graphics/filters/FilterOperation.h:
3154         (WebCore::DropShadowFilterOperation::create):
3155         (WebCore::DropShadowFilterOperation::x):
3156         (WebCore::DropShadowFilterOperation::y):
3157         (WebCore::DropShadowFilterOperation::stdDeviation):
3158         (WebCore::DropShadowFilterOperation::color):
3159         (WebCore::DropShadowFilterOperation::operator==):
3160         (WebCore::DropShadowFilterOperation::DropShadowFilterOperation):
3161
3162 2011-11-16  Adam Bergkvist  <adam.bergkvist@ericsson.com>
3163
3164         Use a simple page client for user consent in getUserMedia()
3165         https://bugs.webkit.org/show_bug.cgi?id=70897
3166
3167         Reviewed by Adam Barth.
3168
3169         This is one in a series of patches that update the MediaStream feature
3170         to use WebCore platform interfaces.
3171
3172         Covered by existing tests.
3173
3174         * GNUmakefile.list.am:
3175         * WebCore.gypi:
3176         * mediastream/MediaStreamClient.h: Removed.
3177         * mediastream/MediaStreamController.cpp: Removed.
3178         * mediastream/MediaStreamController.h: Removed.
3179         * mediastream/MediaStreamFrameController.cpp: Removed.
3180         * mediastream/MediaStreamFrameController.h: Removed.
3181         * mediastream/UserMediaClient.h: Added.
3182         (WebCore::UserMediaClient::~UserMediaClient):
3183         * mediastream/UserMediaRequest.cpp: Added.
3184         (WebCore::UserMediaRequest::create):
3185         (WebCore::UserMediaRequest::UserMediaRequest):
3186         (WebCore::UserMediaRequest::~UserMediaRequest):
3187         (WebCore::UserMediaRequest::start):
3188         (WebCore::UserMediaRequest::mediaStreamSourcesQueryCompleted):
3189         (WebCore::UserMediaRequest::succeed):
3190         (WebCore::UserMediaRequest::fail):
3191         (WebCore::UserMediaRequest::contextDestroyed):
3192         (WebCore::UserMediaRequest::parseOptions):
3193         * mediastream/UserMediaRequest.h: Added.
3194         (WebCore::UserMediaRequest::audio):
3195         (WebCore::UserMediaRequest::video):
3196         (WebCore::UserMediaRequest::cameraPreferenceUser):
3197         (WebCore::UserMediaRequest::cameraPreferenceEnvironment):
3198         (WebCore::UserMediaRequest::successCallback):
3199         (WebCore::UserMediaRequest::errorCallback):
3200         * page/CallbackTask.h: Removed.
3201         * page/Frame.cpp:
3202         (WebCore::Frame::Frame):
3203         (WebCore::Frame::~Frame):
3204         (WebCore::Frame::pageDestroyed):
3205         (WebCore::Frame::transferChildFrameToNewDocument):
3206         * page/Frame.h:
3207         * page/Navigator.cpp:
3208         (WebCore::Navigator::webkitGetUserMedia):
3209         * page/NavigatorUserMediaErrorCallback.h:
3210         * page/Page.cpp:
3211         (WebCore::Page::Page):
3212         (WebCore::Page::~Page):
3213         (WebCore::Page::PageClients::PageClients):
3214         * page/Page.h:
3215         (WebCore::Page::userMediaClient):
3216
3217 2011-11-16  David Grogan  <dgrogan@chromium.org>
3218
3219         instantiate WorkerEventQueue in WorkerContext
3220         https://bugs.webkit.org/show_bug.cgi?id=72528
3221
3222         Reviewed by David Levin.
3223
3224         No new tests - nothing uses it yet.
3225
3226         * workers/WorkerContext.cpp:
3227         (WebCore::WorkerContext::WorkerContext):
3228         Instantiate WorkerEventQueue in InitializerList
3229
3230         * workers/WorkerEventQueue.h:
3231         Don't inherit from RefCounted, WorkerContext has an OwnPtr to it
3232
3233 2011-11-16  Kentaro Hara  <haraken@chromium.org>
3234
3235         Unreviewed. Rebaselined run-bindings-tests results.
3236
3237         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
3238         (WebCore::JSTestEventConstructor::JSTestEventConstructor):
3239         (WebCore::JSTestEventConstructorOwner::finalize):
3240         * bindings/scripts/test/JS/JSTestEventConstructor.h:
3241         (WebCore::JSTestEventConstructor::impl):
3242         (WebCore::JSTestEventConstructor::releaseImpl):
3243         * bindings/scripts/test/JS/JSTestInterface.cpp:
3244         (WebCore::JSTestInterface::JSTestInterface):
3245         (WebCore::JSTestInterfaceOwner::finalize):
3246         * bindings/scripts/test/JS/JSTestInterface.h:
3247         (WebCore::JSTestInterface::impl):
3248         (WebCore::JSTestInterface::releaseImpl):
3249         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
3250         (WebCore::JSTestMediaQueryListListener::JSTestMediaQueryListListener):
3251         (WebCore::JSTestMediaQueryListListenerOwner::finalize):
3252         * bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
3253         (WebCore::JSTestMediaQueryListListener::impl):
3254         (WebCore::JSTestMediaQueryListListener::releaseImpl):
3255         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
3256         (WebCore::JSTestNamedConstructor::JSTestNamedConstructor):
3257         (WebCore::JSTestNamedConstructorOwner::finalize):
3258         * bindings/scripts/test/JS/JSTestNamedConstructor.h:
3259         (WebCore::JSTestNamedConstructor::impl):
3260         (WebCore::JSTestNamedConstructor::releaseImpl):
3261         * bindings/scripts/test/JS/JSTestObj.cpp:
3262         (WebCore::JSTestObj::JSTestObj):
3263         (WebCore::JSTestObjOwner::finalize):
3264         * bindings/scripts/test/JS/JSTestObj.h:
3265         (WebCore::JSTestObj::impl):
3266         (WebCore::JSTestObj::releaseImpl):
3267         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
3268         (WebCore::JSTestSerializedScriptValueInterface::JSTestSerializedScriptValueInterface):
3269         (WebCore::JSTestSerializedScriptValueInterfaceOwner::finalize):
3270         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
3271         (WebCore::JSTestSerializedScriptValueInterface::impl):
3272         (WebCore::JSTestSerializedScriptValueInterface::releaseImpl):
3273
3274 2011-11-16  Jay Civelli  <jcivelli@chromium.org>
3275
3276         Make sure MHTML documents use the domain of the MHTML file.
3277         https://bugs.webkit.org/show_bug.cgi?id=72445
3278
3279         Reviewed by Adam Barth.
3280
3281         * dom/Document.h:
3282         (WebCore::Document::setBaseURL):
3283         * loader/FrameLoader.cpp:
3284         (WebCore::FrameLoader::receivedFirstData):
3285
3286 2011-11-16  Julien Chaffraix  <jchaffraix@webkit.org>
3287
3288         Update supported display list after -webkit-grid and -webkit-inline-grid addition
3289         https://bugs.webkit.org/show_bug.cgi?id=72559
3290
3291         Reviewed by Tony Chang.
3292
3293         * css/CSSParser.cpp:
3294         (WebCore::CSSParser::parseValue): Added the 2 new supported
3295         values (forgotten in the previous change).
3296
3297 2011-11-11  Adrienne Walker  <enne@google.com>
3298
3299         [chromium] Expose mock scrollbars to window.internals
3300         https://bugs.webkit.org/show_bug.cgi?id=72195
3301
3302         Reviewed by James Robinson.
3303
3304         * testing/Internals.cpp:
3305         (WebCore::Internals::setMockScrollbarsEnabled):
3306         * testing/Internals.h:
3307         * testing/Internals.idl:
3308
3309 2011-11-16  Michael Nordman  <michaeln@google.com>
3310
3311         ApplicationCache manifest should work with any MIME type.
3312         https://bugs.webkit.org/show_bug.cgi?id=72082
3313
3314         Reviewed by Alexey Proskuryakov.
3315
3316         * loader/appcache/ApplicationCacheGroup.cpp:
3317         (WebCore::ApplicationCacheGroup::didReceiveManifestResponse): Remove the test for a particular type.
3318
3319 2011-11-16  Daniel Sievers  <sievers@chromium.org>
3320
3321         [Chromium] Avoid color mask operations for root layers
3322         https://bugs.webkit.org/show_bug.cgi?id=72452
3323
3324         Instead of relying on the combination of clearing the surface and initializing
3325         the alpha channel to 1.0 followed by disabling alpha in the color mask when
3326         rendering the root layer tiles, add shaders to support writing out opaque layers
3327         (alpha channel values written as 1.0).
3328
3329         Reviewed by James Robinson.
3330
3331         No functional change made that requires new tests.
3332
3333         * platform/graphics/chromium/LayerRendererChromium.cpp:
3334         (WebCore::LayerRendererChromium::drawLayersInternal):
3335         (WebCore::LayerRendererChromium::initializeSharedObjects):
3336         (WebCore::LayerRendererChromium::tilerProgramOpaque):
3337         (WebCore::LayerRendererChromium::tilerProgramOpaqueAA):
3338         (WebCore::LayerRendererChromium::tilerProgramSwizzleOpaque):
3339         (WebCore::LayerRendererChromium::tilerProgramSwizzleOpaqueAA):
3340         (WebCore::LayerRendererChromium::cleanupSharedObjects):
3341         * platform/graphics/chromium/LayerRendererChromium.h:
3342         * platform/graphics/chromium/ShaderChromium.cpp:
3343         (WebCore::FragmentTexOpaqueBinding::FragmentTexOpaqueBinding):
3344         (WebCore::FragmentTexOpaqueBinding::init):
3345         (WebCore::FragmentShaderRGBATexOpaque::getShaderString):
3346         (WebCore::FragmentShaderRGBATexSwizzleOpaque::getShaderString):
3347         (WebCore::FragmentTexClampOpaqueAABinding::FragmentTexClampOpaqueAABinding):
3348         (WebCore::FragmentTexClampOpaqueAABinding::init):
3349         (WebCore::FragmentShaderRGBATexClampOpaqueAA::getShaderString):
3350         (WebCore::FragmentShaderRGBATexClampSwizzleOpaqueAA::getShaderString):
3351         * platform/graphics/chromium/ShaderChromium.h:
3352         (WebCore::FragmentTexOpaqueBinding::alphaLocation):
3353         (WebCore::FragmentTexOpaqueBinding::samplerLocation):
3354         (WebCore::FragmentTexClampOpaqueAABinding::alphaLocation):
3355         (WebCore::FragmentTexClampOpaqueAABinding::samplerLocation):
3356         (WebCore::FragmentTexClampOpaqueAABinding::fragmentTexTransformLocation):
3357         (WebCore::FragmentTexClampOpaqueAABinding::edgeLocation):
3358         * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
3359         (WebCore::CCTiledLayerImpl::draw):
3360         * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
3361
3362 2011-11-16  Tim Horton  <timothy_horton@apple.com>
3363
3364         Implement CSS3 Images cross-fade() image function
3365         https://bugs.webkit.org/show_bug.cgi?id=52162
3366         <rdar://problem/10209254>
3367
3368         Reviewed by Simon Fraser.
3369
3370         Render -webkit-cross-fade. Only cross-fades entirely composed of images will render for now,
3371         cross-fades involving generated images are not yet implemented.
3372
3373         Reorganize GeneratedImage to be the base class for GeneratorGeneratedImage and CrossfadeGeneratedImage.
3374
3375         Add a pending state to CSSImageGeneratorValue, which is used to enable the pending-images loading
3376         mechanism for -webkit-cross-fade's sub-images. Rework the logic in CSSStyleSelector to support pending
3377         generated images.
3378         
3379         Support parsing fractional values for the cross-fade amount (for example, 0.5 = 50%). Clamp cross-fade
3380         amount to 0-1 range.
3381
3382         Tests: css3/images/cross-fade-invalidation.html
3383                css3/images/cross-fade-simple.html
3384                css3/images/cross-fade-sizing.html
3385                css3/images/cross-fade-tiled.html
3386
3387         * CMakeLists.txt:
3388         * GNUmakefile.list.am:
3389         * Target.pri:
3390         * WebCore.gypi:
3391         * WebCore.xcodeproj/project.pbxproj:
3392         * css/CSSCanvasValue.h:
3393         (WebCore::CSSCanvasValue::isPending):
3394         (WebCore::CSSCanvasValue::loadSubimages):
3395         * css/CSSCrossfadeValue.cpp:
3396         (WebCore::CSSCrossfadeValue::isPending):
3397         (WebCore::CSSCrossfadeValue::loadSubimages):
3398         (WebCore::subimageIsPending):
3399         (WebCore::loadSubimage):
3400         (WebCore::cachedImageForCSSValue):
3401         (WebCore::CSSCrossfadeValue::image):
3402         (WebCore::CSSCrossfadeValue::crossfadeChanged):
3403         * css/CSSCrossfadeValue.h:
3404         (WebCore::CSSCrossfadeValue::create):
3405         (WebCore::CSSCrossfadeValue::~CSSCrossfadeValue):
3406         (WebCore::CSSCrossfadeValue::fixedSize):
3407         (WebCore::CSSCrossfadeValue::CSSCrossfadeValue):
3408         (WebCore::CSSCrossfadeValue::CrossfadeObserverProxy::CrossfadeObserverProxy):
3409         * css/CSSGradientValue.cpp:
3410         (WebCore::CSSGradientValue::image):
3411         * css/CSSGradientValue.h:
3412         (WebCore::CSSGradientValue::isPending):
3413         (WebCore::CSSGradientValue::loadSubimages):
3414         * css/CSSImageGeneratorValue.cpp:
3415         (WebCore::CSSImageGeneratorValue::generatedOrPendingImage):
3416         (WebCore::CSSImageGeneratorValue::generatedImage):
3417         (WebCore::CSSImageGeneratorValue::isPending):
3418         (WebCore::CSSImageGeneratorValue::loadSubimages):
3419         * css/CSSImageGeneratorValue.h:
3420         * css/CSSParser.cpp:
3421         (WebCore::CSSParser::parseCrossfade):
3422         * css/CSSStyleSelector.cpp:
3423         (WebCore::CSSStyleSelector::styleImage):
3424         (WebCore::CSSStyleSelector::generatedOrPendingFromValue):
3425         (WebCore::CSSStyleSelector::loadPendingImage):
3426         (WebCore::CSSStyleSelector::loadPendingImages):
3427         * css/CSSStyleSelector.h:
3428         * platform/graphics/BitmapImage.h:
3429         * platform/graphics/CrossfadeGeneratedImage.cpp: Added.
3430         (WebCore::CrossfadeGeneratedImage::CrossfadeGeneratedImage):
3431         (WebCore::CrossfadeGeneratedImage::~CrossfadeGeneratedImage):
3432         (WebCore::CrossfadeGeneratedImage::drawCrossfade):
3433         (WebCore::CrossfadeGeneratedImage::draw):
3434         (WebCore::CrossfadeGeneratedImage::drawPattern):
3435         (WebCore::CrossfadeGeneratedImage::imageChanged):
3436         * platform/graphics/CrossfadeGeneratedImage.h: Added.
3437         (WebCore::CrossfadeGeneratedImage::create):
3438         (WebCore::CrossfadeSubimageObserverProxy::CrossfadeSubimageObserverProxy):
3439         (WebCore::CrossfadeSubimageObserverProxy::setReady):
3440         * platform/graphics/GeneratedImage.h:
3441         (WebCore::GeneratedImage::GeneratedImage):
3442         * platform/graphics/GeneratorGeneratedImage.cpp: Renamed from Source/WebCore/platform/graphics/GeneratedImage.cpp.
3443         (WebCore::GeneratorGeneratedImage::draw):
3444         (WebCore::GeneratorGeneratedImage::drawPattern):
3445         (WebCore::GeneratedImage::computeIntrinsicDimensions):
3446         * platform/graphics/GeneratorGeneratedImage.h: Copied from Source/WebCore/platform/graphics/GeneratedImage.h.
3447         (WebCore::GeneratorGeneratedImage::create):
3448         (WebCore::GeneratorGeneratedImage::~GeneratorGeneratedImage):
3449         (WebCore::GeneratorGeneratedImage::GeneratorGeneratedImage):
3450         * platform/graphics/Image.h:
3451         * platform/graphics/ImageBuffer.h:
3452         * rendering/style/StylePendingImage.h:
3453         (WebCore::StylePendingImage::create):
3454         (WebCore::StylePendingImage::data):
3455         (WebCore::StylePendingImage::cssImageValue):
3456         (WebCore::StylePendingImage::cssImageGeneratorValue):
3457         (WebCore::StylePendingImage::StylePendingImage):
3458
3459
3460 2011-11-16  Dan Bernstein  <mitz@apple.com>
3461
3462         WebCore part of <rdar://problem/10262242> Add API for paginated display
3463         https://bugs.webkit.org/show_bug.cgi?id=72537
3464
3465         Reviewed by Anders Carlsson.
3466
3467         * WebCore.exp.in: Exported Page::pageCount().
3468         * page/Page.cpp:
3469         (WebCore::Page::pageCount): Added this getter.
3470         * page/Page.h:
3471
3472 2011-11-16  Shawn Singh  <shawnsingh@chromium.org>
3473
3474         [chromium] Track property changes for render surfaces.
3475         https://bugs.webkit.org/show_bug.cgi?id=72521
3476
3477         Reviewed by James Robinson.
3478
3479         Created CCRenderSurfaceTest for testing.
3480
3481         * platform/graphics/chromium/LayerRendererChromium.cpp:
3482         (WebCore::LayerRendererChromium::drawLayersOntoRenderSurfaces):
3483         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
3484         (WebCore::CCLayerImpl::resetPropertyChangedFlagForSubtree):
3485         * platform/graphics/chromium/cc/CCLayerImpl.h:
3486         * platform/graphics/chromium/cc/CCRenderSurface.cpp:
3487         (WebCore::CCRenderSurface::CCRenderSurface):
3488         (WebCore::CCRenderSurface::setClipRect):
3489         (WebCore::CCRenderSurface::setContentRect):
3490         (WebCore::CCRenderSurface::surfacePropertyChanged):
3491         * platform/graphics/chromium/cc/CCRenderSurface.h:
3492         (WebCore::CCRenderSurface::resetPropertyChangedFlag):
3493
3494 2011-11-16  Ben Wells  <benwells@chromium.org>
3495
3496         Seaming on border corners with mixed colour alpha borders
3497         https://bugs.webkit.org/show_bug.cgi?id=70471
3498
3499         Reviewed by Simon Fraser.
3500
3501         Seaming is fixed by antialiasing mitred corners for edges that have alpha and are joining
3502         a side that is of a different color.
3503
3504         Test: fast/borders/border-mixed-alpha.html
3505
3506         * rendering/RenderBoxModelObject.cpp:
3507         (WebCore::colorNeedsAntiAliasAtCorner):
3508         (WebCore::RenderBoxModelObject::paintOneBorderSide):
3509
3510 2011-11-16  Sam Weinig  <sam@webkit.org>
3511
3512         JS wrappers of DOM objects should have no-op constructors
3513         https://bugs.webkit.org/show_bug.cgi?id=72556
3514
3515         Reviewed by Geoffrey Garen.
3516
3517         Stop using a RefPtr to hold DOM objects contained by JavaScript
3518         wrappers and instead use a raw pointer. We were already releasing
3519         the underlying object before the destructor ran (via the finalizer)
3520         so the default behavior of destroying the RefPtr is always unnecessary
3521         busy work. 
3522
3523         * bindings/js/JSCSSValueCustom.cpp:
3524         (WebCore::JSCSSValueOwner::finalize):
3525         * bindings/js/JSNodeCustom.cpp:
3526         (WebCore::JSNodeOwner::finalize):
3527         (WebCore::JSNode::visitChildren):
3528         Call releaseImpl() instead of clearImpl().
3529
3530         * bindings/scripts/CodeGeneratorJS.pm:
3531         (GenerateHeader):
3532         Stop storing m_impl in a RefPtr and instead use a raw pointer. Switch
3533         clearImpl() to releaseImpl(), which explicitly derefs the pointer and
3534         clear it.
3535
3536         (GenerateImplementation):
3537         Use leakPtr() to explicitly adopt the PassRefPtr into the raw pointer.
3538         Change default finalize to call releaseImpl() instead of clearImpl().
3539
3540 2011-11-16  Michael Saboff  <msaboff@apple.com>
3541
3542         Enable 8 Bit Strings in JavaScriptCore
3543         https://bugs.webkit.org/show_bug.cgi?id=71337
3544
3545         This patch turns on 8 bit strings in StringImpl and enables
3546         their use in JavaScriptCore. Some of the changes are to
3547         turn on code that had been staged (Lexer.cpp, Identifier.cpp,
3548         SmallStrings.cpp and some of StringImpl.{h,cpp}).
3549         Other changes are minor fixes to make 8 bit strings work
3550         (UString.h, StringImpl::getData16SlowCase()).
3551         Changed StringBuffer to be a templated class based on character
3552         type.  This change riplled into WebCore code as well.
3553
3554         Reviewed by Geoffrey Garen.
3555
3556         No new tests - Changes in response to refactoring StringBuffer to
3557         be a template on character type.
3558
3559         * css/CSSParser.cpp:
3560         (WebCore::quoteCSSString):
3561         * css/CSSPrimitiveValue.cpp:
3562         (WebCore::formatNumber):
3563         * dom/Document.cpp:
3564         (WebCore::canonicalizedTitle):
3565         * platform/Length.cpp:
3566         (WebCore::newCoordsArray):
3567         * platform/sql/SQLiteStatement.cpp:
3568         (WebCore::SQLiteStatement::prepare):
3569         * platform/text/TextCodecUTF16.cpp:
3570         (WebCore::TextCodecUTF16::decode):
3571         * platform/text/TextCodecUTF8.cpp:
3572         (WebCore::TextCodecUTF8::decode):
3573         * rendering/RenderText.cpp:
3574         (WebCore::makeCapitalized):
3575         * xml/XSLTProcessorLibxslt.cpp:
3576         (WebCore::writeToStringBuilder):
3577
3578 2011-11-16  Alexandre Elias  <aelias@google.com>
3579
3580         [chromium] Improvements for page scale delta during commit
3581         https://bugs.webkit.org/show_bug.cgi?id=72471
3582
3583         Reviewed by James Robinson.
3584
3585         Page scale now follows the same commit flow as scroll position:
3586         the delta is folded into m_pageScale at BFAC time, and a "sent" value
3587         is preserved for temporary use until the commit finishes.
3588
3589         I also merged setPageScaleFactor and setPageScaleFactorLimits into one
3590         function on the impl side.  The reason is that setPageFactor must
3591         be applied after the limits are updated, but on the other hand setting
3592         the limits first may cause an unnecessary clamp of the scale delta.
3593         Merging the methods avoids this bind.
3594
3595         No new tests. (planning to add later: https://bugs.webkit.org/show_bug.cgi?id=71529)
3596
3597         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
3598         (WebCore::CCLayerTreeHost::finishCommitOnImplThread):
3599         (WebCore::CCLayerTreeHost::applyScrollAndScale):
3600         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.h:
3601         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
3602         (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
3603         (WebCore::CCLayerTreeHostImpl::setPageScaleFactorAndLimits):
3604         (WebCore::CCLayerTreeHostImpl::adjustScrollsForPageScaleChange):
3605         (WebCore::CCLayerTreeHostImpl::setScaleDelta):
3606         (WebCore::CCLayerTreeHostImpl::applyScaleDeltaToScrollLayer):
3607         (WebCore::CCLayerTreeHostImpl::scrollRootLayer):
3608         (WebCore::CCLayerTreeHostImpl::processScrollDeltas):
3609         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
3610
3611 2011-11-16  Joshua Bell  <jsbell@chromium.org>
3612
3613         IndexedDB: Reduce nested key depth threshold, re-enable flaky test
3614         https://bugs.webkit.org/show_bug.cgi?id=72529
3615
3616         Reviewed by Adam Barth.
3617
3618         Drop maximum array key depth from 20k to 2k.
3619
3620         * bindings/v8/IDBBindingUtilities.cpp:
3621
3622 2011-11-16  Nate Chapin  <japhet@chromium.org>
3623
3624         Fix incorrect multipart handling in r100311.
3625         SubresourceLoader::didReceiveData() is getting called
3626         twice, which has unintended side effects.
3627         https://bugs.webkit.org/show_bug.cgi?id=72436
3628
3629         Reviewed by Adam Barth.
3630
3631         http/tests/multipart/invalid-image-data.html should stop
3632         asserting after this.
3633
3634         * loader/SubresourceLoader.cpp:
3635         (WebCore::SubresourceLoader::didReceiveResponse):
3636         (WebCore::SubresourceLoader::didReceiveData):
3637         (WebCore::SubresourceLoader::sendDataToResource):
3638         * loader/SubresourceLoader.h:
3639
3640 2011-11-16  Justin Schuh  <jschuh@chromium.org>
3641
3642         Clear SVG filter client when its node is detached
3643         https://bugs.webkit.org/show_bug.cgi?id=71741
3644
3645         Reviewed by Eric Seidel.
3646
3647         Test: svg/filters/reparent-animated-filter-target.html
3648
3649         * rendering/svg/SVGResourcesCache.cpp:
3650         (WebCore::SVGResourcesCache::clientDestroyed):
3651
3652 2011-11-16  John Bates  <jbates@google.com>
3653
3654         Page/layer flashes after GPU-accelerated CSS transition
3655         https://bugs.webkit.org/show_bug.cgi?id=72343
3656
3657         LayerRendererChromium was resizing the window to 1x1 at initialization.
3658         In some cases, there is no drawLayers before switching back to
3659         software rendering. This left the window resized to 1x1 and the
3660         following software paints would therefore not be visible. This change
3661         moves the reshape call into drawLayers so that it will only be called
3662         if rendering will occur.
3663
3664         Reviewed by James Robinson.
3665
3666         New test: CCLayerTreeHostImplTest.reshapeNotCalledUntilDraw.
3667
3668         * platform/graphics/chromium/LayerRendererChromium.cpp:
3669         (WebCore::LayerRendererChromium::viewportChanged):
3670         (WebCore::LayerRendererChromium::doViewportChanged):
3671         (WebCore::LayerRendererChromium::drawLayersInternal):
3672         * platform/graphics/chromium/LayerRendererChromium.h:
3673
3674 2011-11-16  Alexandre Elias  <aelias@google.com>
3675
3676         [chromium] Add null pointer check in setDeviceScaleFactor
3677         https://bugs.webkit.org/show_bug.cgi?id=72464
3678
3679         Reviewed by James Robinson.
3680
3681         No new tests. (Tiny fix.)
3682
3683         * page/Page.cpp:
3684         (WebCore::Page::setDeviceScaleFactor):
3685
3686 2011-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
3687
3688         Unreviewed, rolling out r100438.
3689         http://trac.webkit.org/changeset/100438
3690         https://bugs.webkit.org/show_bug.cgi?id=72536
3691
3692         Broke unit tests (Requested by jamesr_ on #webkit).
3693
3694         * platform/PlatformScreen.h:
3695         * platform/chromium/PlatformScreenChromium.cpp:
3696         * platform/chromium/PlatformSupport.h:
3697         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
3698         (WebCore::CCSettings::CCSettings):
3699         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
3700         (WebCore::CCThreadProxy::initializeImplOnImplThread):
3701
3702 2011-11-16  Andy Estes  <aestes@apple.com>
3703
3704         Assertion failure in LayerFlushScheduler::resume() when running some layout tests in WebKitTestRunner
3705         https://bugs.webkit.org/show_bug.cgi?id=72535
3706
3707         Reviewed by Anders Carlsson.
3708
3709         LayerFlushScheduler attempted to use a counter strategy for calls to
3710         suspend() and resume(), which allowed us to assert that these calls
3711         were balanced. Unfortunately it is hard to guarantee this in WebKit2,
3712         where we sometimes try to call suspend() before we've entered
3713         compositing mode (hence before we have a LayerTreeHost and a
3714         LayerFlushScheduler). When we later call resume(), this call ends up
3715         being unbalanced and asserts.
3716
3717         For now, remove the assertions and allow unbalanced calls to suspend()
3718         and resume().
3719
3720         * platform/graphics/ca/LayerFlushScheduler.cpp:
3721         (WebCore::LayerFlushScheduler::suspend):
3722         (WebCore::LayerFlushScheduler::resume):
3723         * platform/graphics/ca/LayerFlushScheduler.h:
3724         * platform/graphics/ca/mac/LayerFlushSchedulerMac.cpp:
3725         (WebCore::LayerFlushScheduler::LayerFlushScheduler):
3726         (WebCore::LayerFlushScheduler::runLoopObserverCallback):
3727         (WebCore::LayerFlushScheduler::schedule):
3728
3729 2011-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
3730
3731         Unreviewed, rolling out r100473.
3732         http://trac.webkit.org/changeset/100473
3733         https://bugs.webkit.org/show_bug.cgi?id=72534
3734
3735         "Broke the Mac Build" (Requested by mwenge2 on #webkit).
3736
3737         * CMakeLists.txt:
3738         * GNUmakefile.list.am:
3739         * Target.pri:
3740         * WebCore.gypi:
3741         * rendering/RenderBlock.cpp:
3742         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):
3743         * rendering/RenderObject.cpp:
3744         (WebCore::RenderObject::createObject):
3745         (WebCore::RenderObject::addChild):
3746         * rendering/RenderObject.h:
3747         * rendering/RenderTable.cpp:
3748         (WebCore::RenderTable::addChild):
3749         * rendering/RenderTable.h:
3750         * rendering/RenderTableCaption.cpp: Removed.
3751         * rendering/RenderTableCaption.h: Removed.
3752
3753 2011-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
3754
3755         Unreviewed, rolling out r100479.
3756         http://trac.webkit.org/changeset/100479
3757         https://bugs.webkit.org/show_bug.cgi?id=72533
3758
3759         "Broke the Mac Build" (Requested by mwenge2 on #webkit).
3760
3761         * WebCore.vcproj/WebCore.vcproj:
3762         * WebCore.xcodeproj/project.pbxproj:
3763         * rendering/RenderingAllInOne.cpp:
3764
3765 2011-11-16  Chris Fleizach  <cfleizach@apple.com>
3766
3767         WebKitTestRunner needs to support accessibility-related DRT APIs
3768         https://bugs.webkit.org/show_bug.cgi?id=42131
3769
3770         Minor changes needed to support AX testing in WKTestRunner.
3771
3772         Reviewed by Beth Dakin.
3773
3774         * WebCore.exp.in:
3775              Expose focusedUIElementForPage so that the WK2 injected bundle can retrieve it.
3776         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
3777         (accessibilitySearchKeyForString):
3778             Remove an unncessary assert that was causing issues with the WK2 test run.
3779
3780 2011-11-16  Sergio Villar Senin  <svillar@igalia.com>
3781
3782         [Soup] Somet tests fail with FAIL Unexpected response data received: Wrong method: GET
3783         https://bugs.webkit.org/show_bug.cgi?id=69219
3784
3785         Reviewed by Martin Robinson.
3786
3787         Do not stop appending data to the request body if any of the blob
3788         items to upload is not accesible.
3789
3790         * platform/network/soup/ResourceHandleSoup.cpp:
3791         (WebCore::addEncodedBlobToSoupMessageBody):
3792
3793 2011-11-16  Beth Dakin  <bdakin@apple.com>
3794
3795         https://bugs.webkit.org/show_bug.cgi?id=72400
3796         Scrollbar uiStateTransitionProgress requires tracking the mouse all the time
3797         -and corresponding-
3798         <rdar://problem/10409328>
3799
3800         Reviewed by Darin Adler.
3801
3802         This patch makes it so we track the mouse all the time when we have legacy 
3803         scrollbars (rather than only tracking the mouse when the window is key). When 
3804         we're in that mode, we want to do as little work as possible when handling the 
3805         mouseMoved event so that this extra tracking has little to no performance impact. 
3806         Also, we don't want to change basic behaviors by having normal web content hover 
3807         effects start happening when a window is in the background. So this patch also 
3808         introduces a way to handle a mouseMoved event that will only affect scrollbars.
3809
3810         EventHandler::mouseMoved() and EventHandler::handleMouseEvent() both now take a 
3811         boolean parameter that indicates if we are only updating scrollbars. If that is 
3812         the case, then we make our HitTestRequest ReadOnly, and we return early once 
3813         updateLastScrollbarUnderMouse() is called.
3814         * WebCore.exp.in:
3815         * page/EventHandler.cpp:
3816         (WebCore::EventHandler::mouseMoved):
3817         (WebCore::EventHandler::handleMouseMoveEvent):
3818
3819         In addition to calling Scrollbar::mouseExited() when appropriate, this function 
3820         now calls a new function, Scrollbar::mouseEntered() when appropriate. 
3821         (WebCore::EventHandler::updateLastScrollbarUnderMouse):
3822         * page/EventHandler.h:
3823
3824         Scrollbar::mouseMoved() used to be responsible for calling 
3825         ScrollAnimator::mouseEnteredScrollbar(), but now Scrollbar::mouseEntered() takes 
3826         care of that instead, much like how Scrollbar::mouseExited() takes care of calling 
3827         the animator's exit function.
3828         * platform/Scrollbar.cpp:
3829         (WebCore::Scrollbar::mouseMoved):
3830         (WebCore::Scrollbar::mouseEntered):
3831         * platform/Scrollbar.h:
3832
3833 2011-11-16  Andreas Kling  <kling@webkit.org>
3834
3835         CSSValue: isInheritedValue() doesn't need a dedicated bit.
3836         <http://webkit.org/b/72514>
3837
3838         Reviewed by Antti Koivisto.
3839
3840         Remove CSSValue::m_isInherited and have isInheritedValue() check the
3841         class type instead. There's no compelling reason for CSSInheritedValue
3842         to have a dedicated bit, since nobody subclasses it anyway.
3843
3844         * css/CSSValue.h:
3845         (WebCore::CSSValue::isInheritedValue):
3846         (WebCore::CSSValue::CSSValue):
3847
3848 2011-11-16  Robert Hogan  <robert@webkit.org>
3849
3850         Fix build on Windows and Mac after r100473
3851
3852         Unreviewed, fix build.
3853
3854         * WebCore.vcproj/WebCore.vcproj:
3855         * WebCore.xcodeproj/project.pbxproj:
3856         * rendering/RenderingAllInOne.cpp:
3857
3858 2011-11-16  Philip Rogers  <pdr@google.com>
3859
3860         Remove extra GraphicsContextStateSaver restore() call.
3861         https://bugs.webkit.org/show_bug.cgi?id=72497
3862
3863         Reviewed by Andreas Kling.
3864
3865         * html/canvas/CanvasRenderingContext2D.cpp:
3866         (WebCore::CanvasRenderingContext2D::drawTextInternal):
3867
3868 2011-11-08  Robert Hogan  <robert@webkit.org>
3869
3870         CSS 2.1 failure: border-collapse-offset-002.htm fails
3871         https://bugs.webkit.org/show_bug.cgi?id=71705
3872
3873         Table captions are implemented as children of the table but have a special
3874         requirement to expand to the full width of the table rather than just the 'available'
3875         width, i.e. the full width minus padding and borders.
3876
3877         To accomodate this create a RenderTableCaption object that reimplements containingBlockLogicalWidthForContent()
3878         to return the full width of the containing block (i.e. the table) rather than the available width.
3879
3880         Reviewed by Antti Koivisto.
3881
3882         * CMakeLists.txt: Add RenderTableCaption.[cpp|h]
3883         * GNUmakefile.list.am: Add RenderTableCaption.[cpp|h]
3884         * Target.pri: Add RenderTableCaption.[cpp|h]
3885         * WebCore.gypi: Add RenderTableCaption.[cpp|h]
3886         * rendering/RenderBlock.cpp:
3887         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks): Use RenderTableCaption
3888         * rendering/RenderObject.cpp:
3889         (WebCore::RenderObject::createObject): Add RenderTableCaption.[cpp|h]
3890         (WebCore::RenderObject::addChild): ditto
3891         * rendering/RenderObject.h:
3892         (WebCore::RenderObject::isTableCaption):
3893         * rendering/RenderTable.cpp:
3894         (WebCore::RenderTable::addChild):
3895         * rendering/RenderTable.h:
3896         * rendering/RenderTableCaption.cpp: Added.
3897         (WebCore::RenderTableCaption::RenderTableCaption): Implement RenderTableCaption
3898         (WebCore::RenderTableCaption::~RenderTableCaption):
3899         (WebCore::RenderTableCaption::containingBlockLogicalWidthForContent): Return the containing block's full width rather than it's available width.
3900         * rendering/RenderTableCaption.h: Added.
3901         (WebCore::RenderTableCaption::isTableCaption):
3902         (WebCore::toRenderTableCaption):
3903
3904 2011-11-16  Antaryami Pandia  <antaryami.pandia@motorola.com>
3905
3906         [Gtk] display:none has no effect on <option> element.
3907         https://bugs.webkit.org/show_bug.cgi?id=72370
3908
3909         Reviewed by Martin Robinson.
3910
3911         * platform/gtk/GtkPopupMenu.cpp:
3912         (WebCore::GtkPopupMenu::appendItem):
3913         * platform/gtk/PopupMenuGtk.cpp:
3914         (WebCore::PopupMenuGtk::createGtkActionForMenuItem):
3915
3916 2011-11-16  Dan Winship  <danw@gnome.org>
3917
3918         [GTK] Fix platformDefersLoading to handle non-http requests, and
3919         to not use broken-ish libsoup APIs.
3920         https://bugs.webkit.org/show_bug.cgi?id=72227
3921
3922         Reviewed by Martin Robinson.
3923
3924         * platform/network/ResourceHandleInternal.h:
3925         * platform/network/soup/ResourceHandleSoup.cpp:
3926         (WebCore::sendRequestCallback):
3927         (WebCore::startHTTPRequest):
3928         (WebCore::hasBeenSent):
3929         (WebCore::ResourceHandle::platformSetDefersLoading):
3930         (WebCore::readCallback): rather than deferring by using
3931         soup_session_pause_message(), let the read complete, but just don't
3932         process the result until we're no longer deferred.
3933         (WebCore::startNonHTTPRequest): Don't start the request if
3934         it's deferred.
3935
3936 2011-11-16  Vsevolod Vlasov  <vsevik@chromium.org>
3937
3938         Web Inspector: Application cache status should be updated after swapCache().
3939         https://bugs.webkit.org/show_bug.cgi?id=72123
3940
3941         Reviewed by Pavel Feldman.
3942
3943         Application cache view resources and status are now updated after swapCache() call.
3944         Refresh button removed from application cache view.
3945         Application cache inspector tests are moved to their own folder.
3946
3947         Tests: http/tests/inspector/appcache/appcache-iframe-manifests.html
3948                http/tests/inspector/appcache/appcache-manifest-with-non-existing-file.html
3949                http/tests/inspector/appcache/appcache-swap.html
3950
3951         * inspector/front-end/ApplicationCacheItemsView.js:
3952         (WebInspector.ApplicationCacheItemsView):
3953         (WebInspector.ApplicationCacheItemsView.prototype.get statusBarItems):
3954         (WebInspector.ApplicationCacheItemsView.prototype.wasShown):
3955         (WebInspector.ApplicationCacheItemsView.prototype._maybeUpdate):
3956         (WebInspector.ApplicationCacheItemsView.prototype._markDirty):
3957         (WebInspector.ApplicationCacheItemsView.prototype.updateStatus):
3958         (WebInspector.ApplicationCacheItemsView.prototype._updateCallback):
3959         (WebInspector.ApplicationCacheItemsView.prototype._deleteCallback):
3960         * loader/appcache/ApplicationCacheGroup.cpp:
3961         (WebCore::ApplicationCacheGroup::setNewestCache):
3962         (WebCore::ApplicationCacheGroup::makeObsolete):
3963         (WebCore::ApplicationCacheGroup::setUpdateStatus):
3964         * loader/appcache/ApplicationCacheHost.cpp:
3965         (WebCore::ApplicationCacheHost::notifyDOMApplicationCache):
3966         (WebCore::ApplicationCacheHost::swapCache):
3967
3968 2011-11-16  Eric Carlson  <eric.carlson@apple.com>
3969
3970         addTrack() must throw an exception if 'kind' is unknown
3971         https://bugs.webkit.org/show_bug.cgi?id=71915
3972
3973         Reviewed by Philippe Normand.
3974
3975         Tests: media/track/track-addtrack-kind.html
3976                media/track/track-kind.html
3977
3978         * html/HTMLMediaElement.cpp:
3979         (WebCore::HTMLMediaElement::textTrackKindChanged): New. Will be implemented for 62885.
3980         (WebCore::HTMLMediaElement::addTrack): Throw if  'kind' is not a known value.
3981         (WebCore::HTMLMediaElement::addTextTrack): Call textTracks(), it will allocate the track
3982             list object if necessary.
3983         (WebCore::HTMLMediaElement::textTracks): Never return NULL, a TextTrackList with no tracks
3984             is allowed.
3985         * html/HTMLMediaElement.h:
3986         (WebCore::HTMLMediaElement::addTrack): Add variants to deal with optional parameters plus
3987             a mandatory ExceptionCode parameter.
3988         * html/HTMLMediaElement.idl: addTrack can generate an exception.
3989
3990         * html/HTMLTrackElement.cpp:
3991         (WebCore::HTMLTrackElement::attributeChanged): kind, label, and srclang attribute changes should
3992             percolate down the the TextTrack.
3993         (WebCore::HTMLTrackElement::kind): Return the TextTrack kind because it is not necessarily the
3994             same as the attribute value.
3995         (WebCore::HTMLTrackElement::ensureTrack): Only pass legal 'kind' keywords to create a TextTrack.
3996         (WebCore::HTMLTrackElement::textTrackKindChanged): Notify parent element, if any.
3997         * html/HTMLTrackElement.h:
3998
3999         * html/TextTrack.cpp:
4000         (WebCore::TextTrack::subtitlesKeyword): New, return legal kind attribute value.
4001         (WebCore::TextTrack::captionsKeyword): Ditto.
4002         (WebCore::TextTrack::descriptionsKeyword): Ditto.
4003         (WebCore::TextTrack::chaptersKeyword): Ditto.
4004         (WebCore::TextTrack::metadataKeyword): Ditto.
4005         (WebCore::TextTrack::TextTrack): Call setKind to make sure m_kind is always set to legal value.
4006         (WebCore::TextTrack::isValidKindKeyword): New, validate 'kind' value.
4007         (WebCore::TextTrack::setKind): Only allow legal values.
4008         * html/TextTrack.h:
4009         (WebCore::TextTrack::kind):
4010         (WebCore::TextTrack::label):
4011         (WebCore::TextTrack::setLabel):
4012         (WebCore::TextTrack::language):
4013         (WebCore::TextTrack::setLanguage):
4014         (WebCore::TextTrack::readyState):
4015         (WebCore::TextTrack::mode):
4016
4017 2011-11-16  Andreas Kling  <kling@webkit.org>
4018
4019         CSSValue: Clean up initial value construction.
4020         <http://webkit.org/b/72502>
4021
4022         Reviewed by Antti Koivisto.
4023
4024         Instead of determining whether a given CSSInitialValue is 'implicit' or not by
4025         querying the CSSValue::ClassType (InitialClass vs. ImplicitInitialClass),
4026         add a protected CSSValue member and set it from the CSSInitialValue constructor.
4027
4028         Also get rid of the CSSValue::m_isInitial bit since we can now replace the
4029         checks by classType() == InitialClass.
4030
4031         No new tests, this is a cleanup.
4032
4033         * css/CSSInitialValue.h:
4034         (WebCore::CSSInitialValue::CSSInitialValue):
4035
4036             Poke 'implicit' constructor argument into CSSValue::m_isImplicit.
4037
4038         * css/CSSValue.cpp:
4039         (WebCore::CSSValue::cssText):
4040         (WebCore::CSSValue::destroy):
4041
4042             Remove ImplicitInitialClass cases.
4043
4044         * css/CSSValue.h:
4045         (WebCore::CSSValue::isImplicitInitialValue):
4046         (WebCore::CSSValue::isInitialValue):
4047         (WebCore::CSSValue::CSSValue):
4048
4049 2011-11-16  Antaryami Pandia  <antaryami.pandia@motorola.com>
4050
4051         Remove unnecessary if check from RenderListBox::paintItemForeground.
4052         https://bugs.webkit.org/show_bug.cgi?id=72488
4053
4054         Reviewed by Andreas Kling.
4055
4056         * rendering/RenderListBox.cpp:
4057         (WebCore::RenderListBox::paintItemForeground):
4058
4059 2011-11-15  Simon Hausmann  <simon.hausmann@nokia.com>
4060
4061         [Qt] Centralize hide_symbols and ensure all libs are built with symbol visibility & bsymbolic_functions
4062
4063         Reviewed by Tor Arne Vestbø.
4064
4065         * Target.pri: Eliminate duplicated symbol stuff that lives now in default_post.prf.
4066
4067 2011-11-16  Iain Merrick  <husky@google.com>
4068
4069         [chromium] Pass screen refresh rate into compositor.
4070         https://bugs.webkit.org/show_bug.cgi?id=71040
4071
4072         Reviewed by Tony Gentilcore.
4073
4074         * platform/PlatformScreen.h:
4075         * platform/chromium/PlatformScreenChromium.cpp:
4076         (WebCore::screenRefreshRate):
4077         * platform/chromium/PlatformSupport.h:
4078         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
4079         (WebCore::CCSettings::CCSettings):
4080         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
4081         (WebCore::CCThreadProxy::initializeImplOnImplThread):
4082
4083 2011-11-15  Andrey Kosyakov  <caseq@chromium.org>
4084
4085         Web Inspector: [Extensions API] drop ExtensionSidebarPane.onUpdated, use callbacks instead
4086         https://bugs.webkit.org/show_bug.cgi?id=72388
4087
4088         Reviewed by Pavel Feldman.
4089
4090         Tests: inspector/extensions/extensions-panel.html
4091                inspector/extensions/extensions-sidebar.html
4092
4093         - fire ExtensionSidebarPane.on{Hidden,Shown} for non-iframe content (experssions/objects);
4094         - drop ExtensionsSidebarPane.onUpdated, provide callback for setObject()/setExpression() instead;
4095         - fix an exception when a page is replaced with object/expression.
4096
4097          inspector/front-end/ExtensionAPI.js:
4098         (injectedExtensionAPI.ExtensionSidebarPaneImpl):
4099         (injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setExpression):
4100         (injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setObject):
4101         * inspector/front-end/ExtensionPanel.js:
4102         (WebInspector.ExtensionNotifierView):
4103         (WebInspector.ExtensionNotifierView.prototype.wasShown):
4104         (WebInspector.ExtensionNotifierView.prototype.willHide):
4105         (WebInspector.ExtensionSidebarPane.prototype.setObject):
4106         (WebInspector.ExtensionSidebarPane.prototype.setExpression):