Touch adjustment forgets some subtarget quads.
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2012-03-23  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
2
3         Touch adjustment forgets some subtarget quads.
4         https://bugs.webkit.org/show_bug.cgi?id=82044
5
6         Reviewed by Kenneth Rohde Christiansen.
7
8         Do not uncritically skip all nodes that are ancestors to other test results.
9         Instead return the inner-most element if multiple nodes have the same distance.
10
11         Test: touchadjustment/block-testing.html
12
13         * page/TouchAdjustment.cpp:
14         (WebCore::TouchAdjustment::compileSubtargetList):
15         (WebCore::TouchAdjustment::findNodeWithLowestDistanceMetric):
16
17 2012-03-23  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
18
19         TouchAdjustment does not correct for frame position
20         https://bugs.webkit.org/show_bug.cgi?id=82043
21
22         Reviewed by Kenneth Rohde Christiansen.
23
24         Convert geometry to window coordinates before calculating distance.
25
26         Test: touchadjustment/iframe.html
27
28         * page/TouchAdjustment.cpp:
29         (WebCore::TouchAdjustment::distanceSquaredToTargetCenterLine):
30
31 2012-03-23  Vlad Voicu  <vladv@rosedu.org>
32
33         Fixed minor WebInspector display issue
34         Clicking on disabled sections in Styles Sidebar Pane creates new elements.
35         https://bugs.webkit.org/show_bug.cgi?id=81925
36
37         Reviewed by Timothy Hatcher
38
39         No new tests should be required.
40
41         * inspector/front-end/StylesSidebarPane.js:
42         (WebInspector.StylePropertiesSection.prototype._handleEmptySpaceClick):
43         (WebInspector.StylePropertyTreeElement.prototype):
44
45 2012-03-23  Kentaro Hara  <haraken@chromium.org>
46
47         Unreviewed, rebaselined run-bindings-tests results.
48
49         * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
50         * bindings/scripts/test/CPP/WebDOMTestObj.h:
51         * bindings/scripts/test/JS/JSTestObj.cpp:
52         (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
53         (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
54         (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg):
55         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod5):
56         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod):
57         * bindings/scripts/test/V8/V8TestObj.cpp:
58         (WebCore::TestObjInternal::methodWithCallbackArgCallback):
59         (WebCore::TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback):
60         (WebCore::TestObjInternal::methodWithCallbackAndOptionalArgCallback):
61         (WebCore::TestObjInternal::overloadedMethod5Callback):
62         (WebCore::TestObjInternal::overloadedMethodCallback):
63
64 2012-03-23  Ryosuke Niwa  <rniwa@webkit.org>
65
66         cssText should use StringBuilder
67         https://bugs.webkit.org/show_bug.cgi?id=82028
68
69         Reviewed by Hajime Morita.
70
71         Make StylePropertySet::asText more efficient by deploying StringBuilder;
72         avoids heap churn by String::operator+ and String::operator+=.
73
74         * css/StylePropertySet.cpp:
75         (WebCore::StylePropertySet::asText):
76
77 2012-03-23  Ryosuke Niwa  <rniwa@webkit.org>
78
79         REGRESSION(r111754): plugins/reloadplugins-and-pages.html fails on all platforms
80         https://bugs.webkit.org/show_bug.cgi?id=82035
81
82         Rollout r111754 since it caused a test to fail and the test added by the patch
83         is failing on Mac WebKit 2.
84
85         * WebCore.exp.in:
86         * html/HTMLPlugInElement.cpp:
87         (WebCore::HTMLPlugInElement::detach):
88         (WebCore):
89         (WebCore::HTMLPlugInElement::removedFromDocument):
90         * html/HTMLPlugInElement.h:
91         (HTMLPlugInElement):
92         * testing/Internals.cpp:
93         * testing/Internals.h:
94         (Internals):
95         * testing/Internals.idl:
96
97 2012-03-23  Adam Barth  <abarth@webkit.org>
98
99         Move Notifications APIs from DOMWindow.idl to DOMWindowNotifications.idl (Part 2)
100         https://bugs.webkit.org/show_bug.cgi?id=82026
101
102         Reviewed by Kentaro Hara.
103
104         This patch removes DOMWindow::resetNotifications, which was unneeded
105         special-case logic for clearing the notifications center.  The previous
106         patch that tried to accomplish the same thing did not override
107         willDetachPage, which is why it caused crashes.
108
109         There's actually a cleaner way to handle these cases, which will let us
110         implement reconnectFrame, but that will need to wait for the next
111         patch.
112
113         * notifications/DOMWindowNotifications.cpp:
114         (WebCore::DOMWindowNotifications::DOMWindowNotifications):
115         (WebCore::DOMWindowNotifications::from):
116         (WebCore::DOMWindowNotifications::webkitNotifications):
117         (WebCore):
118         (WebCore::DOMWindowNotifications::disconnectFrame):
119         (WebCore::DOMWindowNotifications::willDetachPage):
120         (WebCore::DOMWindowNotifications::reset):
121         * notifications/DOMWindowNotifications.h:
122         (DOMWindowNotifications):
123         * page/DOMWindow.cpp:
124         (WebCore::DOMWindow::willDetachPage):
125         (WebCore::DOMWindow::disconnectDOMWindowProperties):
126         (WebCore::DOMWindow::clearDOMWindowProperties):
127         * page/DOMWindow.h:
128         (DOMWindow):
129         * page/Frame.cpp:
130         (WebCore::Frame::willDetachPage):
131
132 2012-03-22  Adam Barth  <abarth@webkit.org>
133
134         Move Notifications APIs from DOMWindow.idl to DOMWindowNotifications.idl (Part 1)
135         https://bugs.webkit.org/show_bug.cgi?id=82015
136
137         Reviewed by Kentaro Hara.
138
139         This patch moves DOMWindow.webkitNotifications from DOMWindow.idl to
140         DOMWindowNotificiations.idl in preparation for moving notificiations
141         into Modules.
142
143         A future patch will remove DOMWindow::resetNotificaitions in favor of
144         more general mechanisms.
145
146         * CMakeLists.txt:
147         * DerivedSources.make:
148         * DerivedSources.pri:
149         * GNUmakefile.list.am:
150         * Target.pri:
151         * WebCore.gypi:
152         * WebCore.vcproj/WebCore.vcproj:
153         * WebCore.xcodeproj/project.pbxproj:
154         * notifications/DOMWindowNotifications.cpp: Added.
155         (WebCore):
156         (WebCore::DOMWindowNotifications::DOMWindowNotifications):
157         (WebCore::DOMWindowNotifications::~DOMWindowNotifications):
158         (WebCore::DOMWindowNotifications::from):
159         (WebCore::DOMWindowNotifications::webkitNotifications):
160         (WebCore::DOMWindowNotifications::reset):
161         (WebCore::DOMWindowNotifications::supplementName):
162         * notifications/DOMWindowNotifications.h: Added.
163         (WebCore):
164         (DOMWindowNotifications):
165         * notifications/DOMWindowNotifications.idl: Added.
166         * page/DOMWindow.cpp:
167         (WebCore::DOMWindow::~DOMWindow):
168         (WebCore):
169         (WebCore::DOMWindow::resetNotifications):
170         * page/DOMWindow.h:
171         (WebCore):
172         (DOMWindow):
173         * page/DOMWindow.idl:
174
175 2012-03-22  Li Yin  <li.yin@intel.com>
176
177         A client MUST close a connection if it detects a masked frame
178         https://bugs.webkit.org/show_bug.cgi?id=81361
179
180         Reviewed by Kent Tamura.
181
182         A server must not mask any frames that it sends to the client.
183         Change the test case, not mask the frames from server to client.
184         
185         Test: http/tests/websocket/tests/hybi/invalid-masked-frames-from-server.html
186
187         * Modules/websockets/WebSocketChannel.cpp:
188         (WebCore::WebSocketChannel::processFrame):
189
190 2012-03-22  Li Yin  <li.yin@intel.com>
191
192         [WebSocket]The minimal number of bytes MUST be used to encode the length
193         https://bugs.webkit.org/show_bug.cgi?id=81443
194
195         Reviewed by Kent Tamura.
196
197         From RFC 6455 http://tools.ietf.org/html/rfc6455#section-5.2
198         the minimal number of bytes MUST be used to encode the length
199         
200         New test case : http/tests/websocket/tests/hybi/invalid-encode-length.html
201
202         * Modules/websockets/WebSocketChannel.cpp:
203         (WebCore::WebSocketChannel::parseFrame):
204
205 2012-03-22  Adam Barth  <abarth@webkit.org>
206
207         Unreviewed.  Sort xcodeproj file.
208
209         * WebCore.xcodeproj/project.pbxproj:
210
211 2012-03-22  Mao Yujie  <yujie.mao@intel.com>
212
213         Implement strict testing criterion for callback function definition
214         https://bugs.webkit.org/show_bug.cgi?id=80005
215
216         Reviewed by Adam Barth.
217
218         Callback function should be defined as the function type instead of
219         the object type.
220
221         LayoutTest: fast/dom/MediaStream/argument-types.html
222
223         * bindings/scripts/CodeGeneratorJS.pm:
224         (GenerateParametersCheckExpression):
225         (GenerateParametersCheck):
226         * bindings/scripts/CodeGeneratorV8.pm:
227         (GenerateParametersCheckExpression):
228         (GenerateParametersCheck):
229
230 2012-03-22  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
231
232         Convert hasGrammarMarker to use Internals interface
233         https://bugs.webkit.org/show_bug.cgi?id=82004
234
235         Reviewed by Ryosuke Niwa.
236
237         Remove hasGrammarMarker functions, because it is able to work in the
238         cross-port way through the Internals interface.
239
240         No new tests, since we are improving here the infra-structure
241         for testing a specific method.
242
243         * testing/Internals.cpp:
244         (WebCore::Internals::hasGrammarMarker):
245         (WebCore):
246         * testing/Internals.h:
247         (Internals):
248         * testing/Internals.idl:
249
250 2012-03-22  Xingnan Wang  <xingnan.wang@intel.com>
251
252         Add exception for the setter of "fftSize" in RealtimeAnalyserNode
253         https://bugs.webkit.org/show_bug.cgi?id=81748
254
255         Reviewed by Chris Rogers.
256
257         * Modules/webaudio/RealtimeAnalyser.cpp:
258         (WebCore::RealtimeAnalyser::setFftSize):
259         * Modules/webaudio/RealtimeAnalyser.h:
260         (RealtimeAnalyser):
261         * Modules/webaudio/RealtimeAnalyserNode.cpp:
262         (WebCore::RealtimeAnalyserNode::setFftSize):
263         (WebCore):
264         * Modules/webaudio/RealtimeAnalyserNode.h:
265         (RealtimeAnalyserNode):
266         * Modules/webaudio/RealtimeAnalyserNode.idl:
267
268 2012-03-22  Leo Yang  <leo.yang@torchmobile.com.cn>
269
270         [BlackBerry] Add HistoryItemViewState for BlackBerry port
271         https://bugs.webkit.org/show_bug.cgi?id=81867
272
273         Reviewed by Rob Buis.
274
275         HistoryItemViewState is the blackberry specific field of HistoryItem.
276         It's used to maintain the porting specific view state.
277
278         No new test because the port can't be built yet.
279
280         * history/HistoryItem.h:
281         (HistoryItem):
282         (WebCore::HistoryItem::viewState):
283
284 2012-03-22  SravanKumar Sandela  <ssandela@innominds.com>
285
286         Fieldset unexpectedly stretches to minimum intrinsic width
287         https://bugs.webkit.org/show_bug.cgi?id=79128
288
289         Reviewed by Julien Chaffraix.
290
291         Fieldset element width will now check if css width is specified explicitly
292         before stretching to minimum intrinsic width. The reference
293         can be taken from IE9, instead of FF(FF acknowledged the broken behavior). 
294
295         Tests: fast/forms/fieldset-width-nostretch-ifspecified-expected.html
296                fast/forms/fieldset-width-nostretch-ifspecified.html
297
298         * rendering/RenderFieldset.cpp:
299         (WebCore::RenderFieldset::stretchesToMinIntrinsicLogicalWidth):
300         (WebCore):
301         * rendering/RenderFieldset.h:
302         (RenderFieldset):
303
304 2012-03-22  Shawn Singh  <shawnsingh@chromium.org>
305
306         [chromium] Target surface should be damaged for a new layers even when layer had no changes
307         https://bugs.webkit.org/show_bug.cgi?id=81879
308
309         Reviewed by Adrienne Walker.
310
311         Unit test added to CCDamageTrackerTest.
312
313         * platform/graphics/chromium/cc/CCDamageTracker.cpp:
314         (WebCore::CCDamageTracker::removeRectFromCurrentFrame): added a
315         boolean arg to detect if the layer is new on this update.
316
317         (WebCore::CCDamageTracker::extendDamageForLayer): added logic that
318         damages the target surface if the layer is new.
319
320         (WebCore::CCDamageTracker::extendDamageForRenderSurface): added
321         logic that damages the target surface if the descendant surface is
322         new; similar logic for the surface's replica if the replica is new.
323
324         * platform/graphics/chromium/cc/CCDamageTracker.h:
325         (CCDamageTracker):
326
327 2012-03-22  Charles Wei  <charles.wei@torchmobile.com.cn>
328
329         [BlackBerry] Need to store the meta info of a page in the ViewState of the history
330         https://bugs.webkit.org/show_bug.cgi?id=82000
331
332         Reviewed by Rob Buis.
333
334         Internally reviewed by George Staikos.
335
336         No new tests, BlackBerry porting doesn't build yet upstreaming.
337
338         * history/blackberry/HistoryItemViewState.h:
339         (WebCore::HistoryItemViewState::HistoryItemViewState):
340         (HistoryItemViewState):
341
342 2012-03-22  Adam Klein  <adamk@chromium.org>
343
344         [v8] wrapSlow methods should ref underlying object before creating wrapper
345         https://bugs.webkit.org/show_bug.cgi?id=81919
346
347         Reviewed by Adam Barth.
348
349         Because instatiating the wrapper can trigger GC, it's important that
350         wrapSlow() hold a reference to an object when creating a wrapper for
351         that object. Once the V8 wrapper exists and is associated with the object,
352         the reference can be handed off (via leakRef) to be handled by the normal
353         binding code logic (where derefObject is called if the handle is GCed).
354
355         Binding tests have been updated to reflect this change.
356
357         Testing the change directly is hard. Any test landed today would only
358         be a valid test until V8's logic about when to GC changes, at which point
359         it would become dead weight. So I don't think it's worth landing a
360         layout test along with this.
361
362         * bindings/scripts/CodeGeneratorV8.pm:
363         (GenerateHeader): Make wrapSlow take a PassRefPtr for RefCounted objects.
364         (GenerateToV8Converters): Get rid of the explicit call to ref() and
365         instead call leakRef() when adding a RefCounted object to the DOM map.
366         (GetPassRefPtrType): Helper to generate "PassRefPtr<T>", or "PassRefPtr<T<U> >" as appropriate.
367         * bindings/scripts/test/V8/V8Float64Array.cpp:
368         (WebCore::V8Float64Array::wrapSlow):
369         * bindings/scripts/test/V8/V8Float64Array.h:
370         (V8Float64Array):
371         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
372         (WebCore::V8TestActiveDOMObject::wrapSlow):
373         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
374         (V8TestActiveDOMObject):
375         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
376         (WebCore::V8TestCustomNamedGetter::wrapSlow):
377         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
378         (V8TestCustomNamedGetter):
379         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
380         (WebCore::V8TestEventConstructor::wrapSlow):
381         * bindings/scripts/test/V8/V8TestEventConstructor.h:
382         (V8TestEventConstructor):
383         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
384         (WebCore::V8TestEventTarget::wrapSlow):
385         * bindings/scripts/test/V8/V8TestEventTarget.h:
386         (V8TestEventTarget):
387         * bindings/scripts/test/V8/V8TestInterface.cpp:
388         (WebCore::V8TestInterface::wrapSlow):
389         * bindings/scripts/test/V8/V8TestInterface.h:
390         (V8TestInterface):
391         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
392         (WebCore::V8TestMediaQueryListListener::wrapSlow):
393         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
394         (V8TestMediaQueryListListener):
395         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
396         (WebCore::V8TestNamedConstructor::wrapSlow):
397         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
398         (V8TestNamedConstructor):
399         * bindings/scripts/test/V8/V8TestObj.cpp:
400         (WebCore::V8TestObj::wrapSlow):
401         * bindings/scripts/test/V8/V8TestObj.h:
402         (V8TestObj):
403         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
404         (WebCore::V8TestSerializedScriptValueInterface::wrapSlow):
405         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
406         (V8TestSerializedScriptValueInterface):
407
408 2012-03-22  Jonathan Dong  <jonathan.dong@torchmobile.com.cn>
409
410         [BlackBerry] add interface clearCredentials() and clearNeverRememberSites()
411         https://bugs.webkit.org/show_bug.cgi?id=81887
412
413         Reviewed by Rob Buis.
414
415         Fixed SQL issue when clearing table logins and table never_remember.
416
417         No new tests.
418
419         * platform/network/blackberry/CredentialBackingStore.cpp:
420         (WebCore::CredentialBackingStore::clearLogins):
421         (WebCore::CredentialBackingStore::clearNeverRemember):
422
423 2012-03-22  Jonathan Dong  <jonathan.dong@torchmobile.com.cn>
424
425         [BlackBerry] http authenticate dialog popup only once no matter authentication pass or fail
426         https://bugs.webkit.org/show_bug.cgi?id=80135
427
428         Reviewed by Rob Buis.
429
430         Modified the interface function authenticationChallenge() in class
431         PageClientBlackBerry, moved Credential from return value to the
432         function's reference parameter, and returned a bool to indicate if
433         user pressed Ok button or not.
434         Removed the logic which checks m_currentWebChallenge not null,
435         because we should challenge user again if the last provided credential
436         is not valid; also added the logic that will popup challenge
437         dialog again immediately if user press Ok buttton directly without
438         inputting anything.
439
440         No new tests.
441
442         * platform/blackberry/PageClientBlackBerry.h:
443         * platform/network/blackberry/NetworkJob.cpp:
444         (WebCore::NetworkJob::handleAuthHeader):
445         (WebCore::NetworkJob::sendRequestWithCredentials):
446
447 2012-03-22  Jason Liu  <jason.liu@torchmobile.com.cn>
448
449         [BlackBerry] Synchronize platform/network/blackberry
450         https://bugs.webkit.org/show_bug.cgi?id=81874
451
452         We changed a lot in these files locally. But the changes are not upstreamed.
453         It is not convenient to do the other upstreaming work based on these differences.
454         So upstream these changes.
455
456         Reviewed by Rob Buis.
457
458         No new tests. Just synchronize codes.
459
460         * platform/network/blackberry/NetworkJob.cpp:
461         (WebCore::NetworkJob::NetworkJob):
462         (WebCore::NetworkJob::initialize):
463         (WebCore::NetworkJob::handleNotifyHeaderReceived):
464         (WebCore::NetworkJob::handleNotifyDataReceived):
465         (WebCore::NetworkJob::sendResponseIfNeeded):
466         (WebCore::NetworkJob::sendRequestWithCredentials):
467         (WebCore::NetworkJob::handleAbout):
468         * platform/network/blackberry/NetworkJob.h:
469         (WebCore::NetworkJob::isError):
470         (NetworkJob):
471         * platform/network/blackberry/NetworkManager.cpp:
472         (WebCore::NetworkManager::startJob):
473         * platform/network/blackberry/ResourceRequest.h:
474         (WebCore::ResourceRequest::ResourceRequest):
475         * platform/network/blackberry/ResourceRequestBlackBerry.cpp:
476         (WebCore::platformTargetTypeForRequest):
477
478 2012-03-22  Tom Sepez  <tsepez@chromium.org>
479
480         XSS Auditor bypass via script tag src=data:, URLS.
481         https://bugs.webkit.org/show_bug.cgi?id=81948
482
483         Reviewed by Adam Barth.
484
485         This change fixes an XSSAuditor bypass wherby a script with a data: URL src
486         attribute could evade detection by using characters from the page to create
487         a snippet for matching not found in the URL's reflected vector.  This change 
488         terminates the snippet for matching earlier in these cases.
489         
490         Test: http/tests/security/xssAuditor/script-tag-with-source-data-url2.html
491
492         * html/parser/XSSAuditor.cpp:
493         (WebCore::XSSAuditor::decodedSnippetForAttribute):
494
495 2012-03-22  Dana Jansens  <danakj@chromium.org>
496
497         [chromium] Incorrect assert on animating opacity for a surface
498         https://bugs.webkit.org/show_bug.cgi?id=81994
499
500         Reviewed by Adrienne Walker.
501
502         Draw opacity and animation state match on the surface itself. A
503         surface with animating opacity always has an owning layer without
504         animation, as the surface does the animation for it.
505
506         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
507         (WebCore::CCLayerTreeHost::paintLayerContents):
508
509 2012-03-22  Dana Jansens  <danakj@chromium.org>
510
511         [chromium] Skip frames when checkerboarding an animation
512         https://bugs.webkit.org/show_bug.cgi?id=81716
513
514         Reviewed by Adrienne Walker.
515
516         This will stop drawing frames when prepareToDraw fails, if the draw is
517         not forced. The expected behaviour is outlined below by the unit tests.
518
519         When a draw fails, we:
520         1. Set m_needsRedraw to try again next vsync
521         2. Set m_needsCommit because we need more data from webkit to succeed
522         3. Set m_drawIfPossibleFailed. This allows us to try draw again within
523         the same vsync *if* a commit finishes during this time.
524
525         Unit test: CCSchedulerTest.RequestRedrawInsideFailedDraw
526                    CCSchedulerTest.RequestCommitInsideFailedDraw
527                    CCSchedulerTest.NoBeginFrameWhenDrawFails
528                    CCSchedulerStateMachineTest.TestFailedDrawSetsNeedsCommitAndDoesNotDrawAgain
529                    CCSchedulerStateMachineTest.TestSetNeedsRedrawDuringFailedDrawDoesNotRemoveNeedsRedraw
530                    CCSchedulerStateMachineTest.TestCommitAfterFailedDrawAllowsDrawInSameFrame
531                    CCSchedulerStateMachineTest.TestCommitAfterFailedAndSuccessfulDrawDoesNotAllowDrawInSameFrame
532                    CCSchedulerStateMachineTest.TestFailedDrawIsRetriedNextVSync
533
534         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
535         (WebCore::CCLayerTreeHostImpl::calculateRenderPasses):
536         (WebCore::CCLayerTreeHostImpl::prepareToDraw):
537         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
538         (CCLayerTreeHostImpl):
539         * platform/graphics/chromium/cc/CCScheduler.cpp:
540         (WebCore::CCScheduler::processScheduledActions):
541         * platform/graphics/chromium/cc/CCScheduler.h:
542         (CCSchedulerClient):
543         * platform/graphics/chromium/cc/CCSchedulerStateMachine.cpp:
544         (WebCore::CCSchedulerStateMachine::CCSchedulerStateMachine):
545         (WebCore::CCSchedulerStateMachine::nextAction):
546         (WebCore::CCSchedulerStateMachine::updateState):
547         (WebCore::CCSchedulerStateMachine::didDrawIfPossibleCompleted):
548         (WebCore):
549         * platform/graphics/chromium/cc/CCSchedulerStateMachine.h:
550         (CCSchedulerStateMachine):
551         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
552         (WebCore::CCThreadProxy::scheduledActionDrawAndSwapInternal):
553         (WebCore):
554         (WebCore::CCThreadProxy::scheduledActionDrawAndSwapIfPossible):
555         (WebCore::CCThreadProxy::scheduledActionDrawAndSwapForced):
556         * platform/graphics/chromium/cc/CCThreadProxy.h:
557         (CCThreadProxy):
558
559 2012-03-22  W. James MacLean  <wjmaclean@chromium.org>
560
561         [chromium] Force update of nonFastScrollableRegion if target CCLayerImpl has been freshly created.
562         https://bugs.webkit.org/show_bug.cgi?id=81968
563
564         Reviewed by Adrienne Walker.
565
566         Added unit test to existing tests for TreeSynchronizer.
567
568         When creating a new CCLayerImpl during tree synchronization, make sure we transfer the nonFastScrollableRegion as
569         the new CCLayerImpl will default to an empty region.
570
571         * platform/graphics/chromium/LayerChromium.h:
572         (WebCore::LayerChromium::nonFastScrollableRegion):
573         (WebCore::LayerChromium::setNonFastScrollableRegionChanged):
574         * platform/graphics/chromium/TreeSynchronizer.cpp:
575         (WebCore::TreeSynchronizer::reuseOrCreateCCLayerImpl):
576
577 2012-03-22  Raphael Kubo da Costa  <rakuco@FreeBSD.org>
578
579         [CMake] Unreviewed build fix after r111778.
580
581         * CMakeLists.txt: Replace ${JAVASCRIPTCORE_DIR}/wtf includes with
582         ${WTF_DIR}/wtf ones.
583
584 2012-03-22  Tony Chang  <tony@chromium.org>
585
586         Unreviewed, fix chromium build after wtf move.
587
588         Only use newwtf, remove references to wtf.
589
590         * WebCore.gyp/WebCore.gyp:
591
592 2012-03-22  Benjamin Poulain  <bpoulain@apple.com>
593
594         Remove an obsolete comment regarding magic frames from Geolocation
595         https://bugs.webkit.org/show_bug.cgi?id=81871
596
597         Reviewed by Alexey Proskuryakov.
598
599         Moving a frame into another document is no longer possible after r111361. The comment
600         is now irrelevant.
601
602         * Modules/geolocation/Geolocation.cpp:
603         (WebCore::Geolocation::stop):
604
605 2012-03-22  Csaba Osztrogonác  <ossy@webkit.org>
606
607         Actually move WTF files to their new home
608         https://bugs.webkit.org/show_bug.cgi?id=81844
609
610         [Qt] Unreviewed buildfix after r111778.
611
612         * Target.pri:
613
614 2012-03-22  Kentaro Hara  <haraken@chromium.org>
615
616         run-bindings-tests output a lot of errors in TestSerializedScriptValueInterface.idl
617         https://bugs.webkit.org/show_bug.cgi?id=81852
618
619         Reviewed by Adam Barth.
620
621         run-bindings-tests output a lot of errors in TestSerializedScriptValueInterface.idl:
622
623         Use of uninitialized value in string eq at WebCore/bindings/scripts/CodeGeneratorJS.pm line 2743.
624         Use of uninitialized value $name in substitution (s///) at WebCore/bindings/scripts/CodeGenerator.pm line 119.
625         Use of uninitialized value $type in string eq at WebCore/bindings/scripts/CodeGeneratorJS.pm line 2969.
626         Use of uninitialized value $type in string eq at WebCore/bindings/scripts/CodeGeneratorJS.pm line 2972.
627         Use of uninitialized value $type in hash element at WebCore/bindings/scripts/CodeGenerator.pm line 367.
628         Use of uninitialized value $type in hash element at WebCore/bindings/scripts/CodeGenerator.pm line 368.
629         ...
630
631         This is because [Constructor(...)] does not yet support [Optional] arguments.
632         It just supports [Optional=DefaultIsUndefined] and [Optional=DefaultIsNullString] arguments:
633         https://trac.webkit.org/wiki/WebKitIDL#Constructor
634
635         This patch replaces [Optional] with [Optional=DefaultIsUndefined]
636         in TestSerializedScriptValueInterface.idl.
637
638         Test: bindings/scripts/test/TestSerializedScriptValueInterface.idl
639
640         * bindings/scripts/CodeGeneratorJS.pm:
641         (GenerateConstructorDefinition):
642         * bindings/scripts/CodeGeneratorV8.pm:
643         (GenerateConstructorCallback):
644         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
645         (WebCore::JSTestSerializedScriptValueInterfaceConstructor::constructJSTestSerializedScriptValueInterface):
646         * bindings/scripts/test/TestSerializedScriptValueInterface.idl:
647         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
648         (WebCore::V8TestSerializedScriptValueInterface::constructorCallback):
649
650 2012-03-22  Michal Mocny  <mmocny@google.com>
651
652         [chromium] LayerRendererChromium should use GpuMemoryAllocationChanged callback to explicitly manage framebuffer.
653         https://bugs.webkit.org/show_bug.cgi?id=81823
654
655         Reviewed by Adrienne Walker.
656
657         New UnitTests: LayerRendererChromiumTest
658
659         * platform/graphics/chromium/LayerRendererChromium.cpp:
660         (LayerRendererGpuMemoryAllocationChangedCallbackAdapter):
661         (WebCore::LayerRendererGpuMemoryAllocationChangedCallbackAdapter::create):
662         (WebCore::LayerRendererGpuMemoryAllocationChangedCallbackAdapter::~LayerRendererGpuMemoryAllocationChangedCallbackAdapter):
663         (WebCore::LayerRendererGpuMemoryAllocationChangedCallbackAdapter::onGpuMemoryAllocationChanged):
664         (WebCore::LayerRendererGpuMemoryAllocationChangedCallbackAdapter::LayerRendererGpuMemoryAllocationChangedCallbackAdapter):
665         (WebCore):
666         (WebCore::LayerRendererChromium::LayerRendererChromium):
667         (WebCore::LayerRendererChromium::initialize):
668         (WebCore::LayerRendererChromium::~LayerRendererChromium):
669         (WebCore::LayerRendererChromium::setVisible):
670         (WebCore::LayerRendererChromium::swapBuffers):
671         (WebCore::LayerRendererChromium::discardFramebuffer):
672         (WebCore::LayerRendererChromium::ensureFramebuffer):
673         * platform/graphics/chromium/LayerRendererChromium.h:
674         (WebCore):
675         (LayerRendererChromiumClient):
676         (LayerRendererChromium):
677         (WebCore::LayerRendererChromium::isFramebufferDiscarded):
678         (ScopedEnsureFramebufferAllocation):
679         (WebCore::ScopedEnsureFramebufferAllocation::ScopedEnsureFramebufferAllocation):
680         (WebCore::ScopedEnsureFramebufferAllocation::~ScopedEnsureFramebufferAllocation):
681         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
682         (WebCore::LayerRendererCapabilities::LayerRendererCapabilities):
683         (LayerRendererCapabilities):
684         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
685         (WebCore::CCLayerTreeHostImpl::setVisible):
686         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
687         (CCLayerTreeHostImpl):
688         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
689         (WebCore::CCSingleThreadProxy::compositeAndReadback):
690         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
691         (WebCore::CCThreadProxy::compositeAndReadback):
692
693 2012-03-22  Adam Barth  <abarth@webkit.org>
694
695         ContainerNode::insertedIntoTree and removedFromTree use weak iteration patterns
696         https://bugs.webkit.org/show_bug.cgi?id=80570
697
698         Reviewed by Ryosuke Niwa.
699
700         These functions use weak iteration patterns, but as far as I can tell,
701         we never execute script below these functions.  This patch adds ASSERTs
702         to help us avoid adding events in the future.
703
704         * dom/ContainerNode.cpp:
705         (WebCore::ContainerNode::insertedIntoTree):
706         (WebCore::ContainerNode::removedFromTree):
707         * html/HTMLMediaElement.cpp:
708         (WebCore::HTMLMediaElement::loadInternal):
709             - There's a somewhat complex call chain from insertedIntoTree into
710               HTMLMediaElement, and somewhat complex control flow below
711               loadInternal that eventually leads to the BeforeLoad event being
712               fired.  In studying this code, I don't see a way for the
713               BeforeLoad event to be fired during insertedIntoTree, but I've
714               added this assert here to make sure we don't call loadInternal
715               when we're not supposed to dispatch events.  This ASSERT should
716               help us catch these BeforeLoad errors more quickly.
717
718 2012-03-22  Raphael Kubo da Costa  <rakuco@FreeBSD.org>
719
720         Crash in fast/dom/navigator-detached-nocrash.html
721         https://bugs.webkit.org/show_bug.cgi?id=81773
722
723         Reviewed by Adam Barth.
724
725         BatteryManager::create() blindly assumes the Navigator* it
726         receives has a valid Frame, which is not always the case, as made
727         evident by the crashing test.
728
729         Follow abarth's suggestion and just stop
730         NavigatorBattery::webkitBattery() before it reaches the call to
731         BatteryManager::create() if that's the case.
732
733         No new tests, covered by fast/dom/navigator-detached-nocrash.html.
734
735         * Modules/battery/NavigatorBattery.cpp:
736         (WebCore::NavigatorBattery::webkitBattery):
737
738 2012-03-22  Emil A Eklund  <eae@chromium.org>
739
740         Unreviewed, add missing include statement for CSSValueList.h.
741
742         * css/CSSStyleSelector.h:
743
744 2012-03-22  Tony Chang  <tony@chromium.org>
745
746         flexbox flexing implementation should match the spec
747         https://bugs.webkit.org/show_bug.cgi?id=70796
748
749         Reviewed by Ojan Vafai.
750
751         Match the algorithm in the spec. Handling min/max constraints are slightly improved.
752         http://dev.w3.org/csswg/css3-flexbox/#resolve-the-flexible-lengths
753
754         New test cases in css3/flexbox/flex-algorithm-min-max.html.
755
756         * rendering/RenderFlexibleBox.cpp:
757         (WebCore::adjustFlexSizeForMinAndMax): Step 5 of resolving flexible lengths.
758         (WebCore):
759         (WebCore::RenderFlexibleBox::Violation::Violation):
760         (RenderFlexibleBox::Violation):
761         (WebCore::RenderFlexibleBox::freezeViolations): Used by step 6.
762         (WebCore::RenderFlexibleBox::resolveFlexibleLengths):
763         * rendering/RenderFlexibleBox.h:
764
765 2012-03-22  Emil A Eklund  <eae@chromium.org>
766
767         Unreviewed, add missing import.
768
769         * rendering/RenderThemeMac.mm:
770
771 2012-03-22  Anders Carlsson  <andersca@apple.com>
772
773         ASSERT(!needsLayout) in RenderView.cpp when visiting http://www.panic.com/blog/
774         https://bugs.webkit.org/show_bug.cgi?id=81953
775         <rdar://problem/11086998>
776
777         Reviewed by Sam Weinig.
778
779         If a page ends up creating CATiledLayers, CA transactions can be committed outside of the normal
780         CA run loop observer, so we can't call setNeedsDisplay on tile cache layers directly because then
781         we'll end up calling into painting code before all the layers have been flushed.
782
783         Fix this by adding a list of dirty rects to platformCALayerDidCreateTiles and change GraphicsLayerCA to
784         mark them as dirty. This ensures that any CA transaction commits won't cause newly added layers to be painted.
785
786         * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
787         (WebCore::LayerClient::platformCALayerDidCreateTiles):
788         * platform/graphics/ca/GraphicsLayerCA.cpp:
789         (WebCore::GraphicsLayerCA::platformCALayerDidCreateTiles):
790         * platform/graphics/ca/GraphicsLayerCA.h:
791         (GraphicsLayerCA):
792         * platform/graphics/ca/PlatformCALayerClient.h:
793         (PlatformCALayerClient):
794         * platform/graphics/ca/mac/TileCache.mm:
795         (WebCore::TileCache::setScale):
796         (WebCore::TileCache::revalidateTiles):
797         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
798         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerDidCreateTiles):
799
800 2012-03-19  Robert Hogan  <robert@webkit.org>
801
802         Text should overflow when list item height set to 0
803         https://bugs.webkit.org/show_bug.cgi?id=78726
804
805         Reviewed by Julien Chaffraix.
806
807         Tests: css2.1/20110323/height-applies-to-010a-expected.html
808                fast/css/heightless-list-item-expected.html
809                fast/css/heightless-list-item.html
810
811         * rendering/RenderListItem.cpp:
812         (WebCore::RenderListItem::paint):
813            If the list item has height:0, only paint it if the list item allows any block or inline content 
814            to overflow unclipped. The zero-height check is a shortcut to avoid unnecessary painting and 
815            this seems to be the only case where there's something to do.
816
817 2012-03-22  Dave Michael  <dmichael@chromium.org>
818
819         HTMLPluginElement is not destroyed on reload or navigation if getNPObject is called
820         https://bugs.webkit.org/show_bug.cgi?id=80428
821
822         Reviewed by Eric Seidel.
823
824         Make HTMLPluginElement release its m_NPObject in detach() to break a
825         reference-counting cycle that happens on reload or navigation. With this
826         change, HTMLPlugInElement::removedFromDocument is unnecessary, so it
827         was removed. Note that Releasing m_NPObject does not result in a call to
828         the plugin; it simply releases a reference count on the wrapper object
829         for this HTMLPlugInElement. (The plugin's NPP_Deallocate is invoked
830         when the render tree is destroyed, when PluginView calls
831         PluginPackage::unload.) Thus, it is safe to release m_NPObject in
832         detach, because it can not result in layout or style changes.
833
834         Also added numberOfLiveNodes() and numberOfLiveDocuments() to
835         window.internals to enable testing.
836
837         Test: plugins/netscape-dom-access-and-reload.html
838
839         * WebCore.exp.in:
840         * html/HTMLPlugInElement.cpp:
841         (WebCore::HTMLPlugInElement::detach):
842         * html/HTMLPlugInElement.h:
843         (HTMLPlugInElement):
844         * testing/Internals.cpp:
845         (WebCore::Internals::numberOfLiveDocuments):
846         (WebCore::Internals::numberOfLiveNodes):
847         (WebCore):
848         * testing/Internals.h:
849         (Internals):
850         * testing/Internals.idl:
851
852 2012-03-22  Shawn Singh  <shawnsingh@chromium.org>
853
854         [chromium] Make CCDamageTracker robust to empty layer lists
855         https://bugs.webkit.org/show_bug.cgi?id=81831
856
857         Reviewed by Adrienne Walker.
858
859         Added a unit test in CCDamageTrackerTest that causes a crash in
860         the old code. With this patch applied, the crash will not occur.
861         In theory, that crash should never occur anyway, unless there is a
862         bug outside the damage tracker, but for robustness it's
863         appropriate to handle it properly.
864
865         In addition to this fix, performed some trivial maintenance on the
866         damage tracker code.
867
868         * platform/graphics/chromium/cc/CCDamageTracker.cpp:
869         (WebCore::CCDamageTracker::updateDamageTrackingState): removed
870         unclean code that accessed the targetSurface to get necessary
871         information. Instead, we now pass those args through the damage
872         tracker's API.
873
874         * platform/graphics/chromium/cc/CCDamageTracker.h:
875         (CCDamageTracker): modified args passed to damage tracker on update.
876
877         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
878         (WebCore::CCLayerTreeHostImpl::trackDamageForAllSurfaces):
879         modified args passed to damage tracker on update.
880
881 2012-03-22  Julien Chaffraix  <jchaffraix@webkit.org>
882
883         Enable style sharing for elements with a style attribute
884         https://bugs.webkit.org/show_bug.cgi?id=81523
885
886         Reviewed by Antti Koivisto.
887
888         Memory improvement change only.
889
890         Overall, this is a performance wash (some benchmarks may regress a bit due to the increase in time taken
891         by CSSStyleSelector::locateSharedStyle as we try more nodes, others increase their performance due to style sharing).
892
893         Instrumenting our style sharing, this should give us some nice memory shavings on some benchmarks:
894         - HTML5 isn't impacted as it doesn't use much inline style
895         - page cyclers' intl1 showed a 6% increase in style sharing.
896
897         * css/CSSStyleSelector.cpp:
898         (WebCore::CSSStyleSelector::canShareStyleWithElement):
899         This method now handles inline style like presentation attributes on the element.
900
901         (WebCore::CSSStyleSelector::collectMatchingRulesForList):
902         (WebCore::CSSStyleSelector::locateSharedStyle):
903         Don't bail out for an element with an inline style declaration.
904
905         (WebCore::CSSStyleSelector::stylesEqual):
906         Generalized attributeStylesEqual to share the logic between attribute and
907         inline style property set. This means that attribute checks are actually
908         doing a little extra more work but that didn't impact our benchmarks.
909
910 2012-03-22  Kevin Ollivier  <kevino@theolliviers.com>
911
912         [wx] Unreviewed. WebDOM build fix after array type changes.
913
914         * bindings/scripts/CodeGeneratorCPP.pm:
915         (ShouldSkipType):
916
917 2012-03-22  Pavel Feldman  <pfeldman@chromium.org>
918
919         Web Inspector: text gutter decorations should move upon edits.
920         https://bugs.webkit.org/show_bug.cgi?id=81932
921
922         Reviewed by Vsevolod Vlasov.
923
924         Decorations set by the line number now shift as editing inserts / removes lines.
925
926         * inspector/front-end/TextViewer.js:
927         (WebInspector.TextViewer.prototype._syncLineHeight):
928         (WebInspector.TextEditorGutterPanel):
929         (WebInspector.TextEditorGutterPanel.prototype.textChanged):
930         (WebInspector.TextEditorGutterPanel.prototype.syncClientHeight):
931         (WebInspector.TextEditorGutterPanel.prototype.addDecoration):
932         (WebInspector.TextEditorGutterPanel.prototype.removeDecoration):
933
934 2012-03-21  Robert Hogan  <robert@webkit.org>
935
936         CSS 2.1 failure: fixed-table-layout-006 fails
937         https://bugs.webkit.org/show_bug.cgi?id=78412
938
939         Reviewed by Julien Chaffraix.
940
941         Tests: css2.1/20110323/fixed-table-layout-006.htm
942                fast/css/fixed-table-layout-cell-padding.htm
943
944         In fixed tables, positive width specified on a column should include borders and padding.
945         See the thread at http://lists.w3.org/Archives/Public/www-style/2011Oct/0502.html. The discussion
946         there resulted in a whole new set of tests for section 17.5.2.1 in the CSS 2.1 spec. See 
947         http://test.csswg.org/harness/test/CSS21_DEV/section/17.5.2.1/. This patch allows WebKit
948         to pass all of them, and all tests for the 17.5.2.1 section as a whole. I'll land them all separately.
949     
950         * rendering/FixedTableLayout.cpp:
951         (WebCore::FixedTableLayout::calcWidthArray): Include border width and cell padding in the width of the column.
952          Note that borderAndPaddingLogicalWidth() returns the border width for separate and collapsed borders as appropriate.
953
954 2012-03-22  Simon Fraser  <simon.fraser@apple.com>
955
956         Factor compositing layer updates after scroll into a new method
957         https://bugs.webkit.org/show_bug.cgi?id=81943
958
959         Reviewed by Dean Jackson.
960
961         Move some code that updates compositing layers after scrolling
962         into its own method, for cleanliness.
963
964         * rendering/RenderLayer.cpp:
965         (WebCore::RenderLayer::scrollTo):
966         (WebCore::RenderLayer::updateCompositingLayersAfterScroll):
967         (WebCore):
968         * rendering/RenderLayer.h:
969         (RenderLayer):
970
971 2012-03-22  Gavin Barraclough  <barraclough@apple.com>
972
973         Add JSValue::isFunction
974         https://bugs.webkit.org/show_bug.cgi?id=81935
975
976         Reviewed by Geoff Garen.
977
978         This would be useful in the WebCore bindings code.
979         Also, remove asFunction, replace with jsCast<JSFunction*>.
980
981         * bindings/js/JSInjectedScriptHostCustom.cpp:
982         (WebCore::JSInjectedScriptHost::functionDetails):
983         * bindings/js/ScriptCallStackFactory.cpp:
984         (WebCore::createScriptCallStack):
985
986 2012-03-22  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
987
988         TiledBackingStore: Fix test regressions that appeared with r111560.
989         https://bugs.webkit.org/show_bug.cgi?id=81519
990
991         Reviewed by Kenneth Rohde Christiansen.
992
993         The visible rect wasn't intersected with the contents rect anymore which
994         could lead to an astronomical layer size to check for intersecting tiles.
995
996         Add a visibleContentsRect that doesn't do the conversion and use it
997         in visibleAreaIsCovered.
998
999         * platform/graphics/TiledBackingStore.cpp:
1000         (WebCore::TiledBackingStore::visibleContentsRect):
1001         (WebCore):
1002         (WebCore::TiledBackingStore::visibleRect):
1003         (WebCore::TiledBackingStore::visibleAreaIsCovered):
1004         * platform/graphics/TiledBackingStore.h:
1005         (TiledBackingStore):
1006
1007 2012-03-22  Joe Thomas  <joethomas@motorola.com>
1008
1009         Make Length Calculation functions non-inline
1010         https://bugs.webkit.org/show_bug.cgi?id=81733
1011
1012         Currently length calculation functions in LengthFunctions.h are inline. These functions are pretty big to be inline.
1013         And these functions are expected to grow again when new length units will be introduced in bug 27160.
1014
1015         A decent rule of thumb is to not inline a function if it is more than 10 lines long. Also it's typically not cost effective to inline
1016         functions with loops or switch statements. (Reference: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Inline_Functions).
1017
1018         Ran PerformanceTests/Parser/html5-full-render.html on Mac Snow-Leopard with and without the patch and did not see much performance difference.
1019
1020         Reviewed by Antti Koivisto.
1021
1022         * CMakeLists.txt:
1023         * GNUmakefile.list.am:
1024         * Target.pri:
1025         * WebCore.gypi:
1026         * WebCore.vcproj/WebCore.vcproj:
1027         * WebCore.xcodeproj/project.pbxproj:
1028         * css/LengthFunctions.cpp: Added.
1029         (WebCore):
1030         (WebCore::miminumValueForLength):
1031         (WebCore::valueForLength):
1032         (WebCore::floatValueForLength):
1033         * css/LengthFunctions.h:
1034         (WebCore):
1035
1036 2012-03-22  Alexis Menard  <alexis.menard@openbossa.org>
1037
1038         Increase code sharing between CSSParser and CSSPropertyLonghand.
1039         https://bugs.webkit.org/show_bug.cgi?id=81587
1040
1041         Reviewed by Antti Koivisto.
1042
1043         Expose the longhands declaration for a given shorthand in CSSPropertyLonghand and
1044         make CSSParser use them. It will make the declaration of longhands in one place only.
1045         Remove the map of CSSPropertyLonghand and replace it by a regular switch/case.
1046         The map doesn't bring much here and it's cleaner and faster to use the switch.
1047         It also shows a little performance improvement in CSS/CSSPropertySetterGetter.html.
1048
1049         No new tests : no behavior change.
1050
1051         * css/CSSParser.cpp:
1052         (WebCore::CSSParser::parseValue):
1053         (WebCore::CSSParser::parseAnimationShorthand):
1054         (WebCore::CSSParser::parseTransitionShorthand):
1055         (WebCore::CSSParser::parseShorthand):
1056         Modify the prototype of this function to directly use the CSSPropertyLonghand.
1057         * css/CSSParser.h:
1058         (WebCore):
1059         (CSSParser):
1060         * css/CSSPropertyLonghand.cpp:
1061         (WebCore):
1062         (WebCore::backgroundLonghand):
1063         (WebCore::backgroundPositionLonghand):
1064         (WebCore::backgroundRepeatLonghand):
1065         (WebCore::borderLonghand):
1066         (WebCore::borderBottomLonghand):
1067         (WebCore::borderColorLonghand):
1068         (WebCore::borderImageLonghand):
1069         (WebCore::borderLeftLonghand):
1070         (WebCore::borderRadiusLonghand):
1071         (WebCore::borderRightLonghand):
1072         (WebCore::borderSpacingLonghand):
1073         (WebCore::borderStyleLonghand):
1074         (WebCore::borderTopLonghand):
1075         (WebCore::borderWidthLonghand):
1076         (WebCore::listStyleLonghand):
1077         (WebCore::fontLonghand):
1078         (WebCore::marginLonghand):
1079         (WebCore::outlineLonghand):
1080         (WebCore::overflowLonghand):
1081         (WebCore::paddingLonghand):
1082         (WebCore::webkitAnimationLonghand):
1083         (WebCore::webkitBorderAfterLonghand):
1084         (WebCore::webkitBorderBeforeLonghand):
1085         (WebCore::webkitBorderEndLonghand):
1086         (WebCore::webkitBorderStartLonghand):
1087         (WebCore::webkitColumnsLonghand):
1088         (WebCore::webkitColumnRuleLonghand):
1089         (WebCore::webkitFlexFlowLonghand):
1090         (WebCore::webkitMarginCollapseLonghand):
1091         (WebCore::webkitMarqueeLonghand):
1092         (WebCore::webkitMaskLonghand):
1093         (WebCore::webkitMaskPositionLonghand):
1094         (WebCore::webkitMaskRepeatLonghand):
1095         (WebCore::webkitTextEmphasisLonghand):
1096         (WebCore::webkitTextStrokeLonghand):
1097         (WebCore::webkitTransitionLonghand):
1098         (WebCore::webkitTransformOriginLonghand):
1099         (WebCore::webkitWrapLonghand):
1100         (WebCore::longhandForProperty):
1101         * css/CSSPropertyLonghand.h:
1102         (WebCore):
1103
1104 2012-03-22  Emil A Eklund  <eae@chromium.org>
1105
1106         Unreviewed, touching file to force bots to pick up CSS_SHADERS flag change. 
1107
1108         * css/CSSStyleSelector.h:
1109         (CSSStyleSelector):
1110
1111 2012-03-22  Xingnan Wang  <xingnan.wang@intel.com>
1112
1113         ReverbConvolver::latencyFrames() should return 0.
1114         https://bugs.webkit.org/show_bug.cgi?id=81806
1115
1116         Reviewed by Chris Rogers.
1117
1118         * platform/audio/ReverbConvolver.cpp:
1119         (WebCore::ReverbConvolver::latencyFrames):
1120
1121 2012-03-22  Tony Chang  <tony@chromium.org>
1122
1123         refactor flexbox in preparation for flex-line-pack
1124         https://bugs.webkit.org/show_bug.cgi?id=81843
1125
1126         Reviewed by Ojan Vafai.
1127
1128         Replace WrapReverseContext with a vector of LineContexts that contain
1129         the same information, plus values needed for flex-align.
1130
1131         alignChildren has been moved to after all the lines have been
1132         positioned. We want to align children after flex-line-pack has changed
1133         the size of each line to avoid unnecessary layouts.
1134
1135         Take 2: Remove the assert. If there are no children, then there are no
1136         flex lines. Instead, assert that child is not null.
1137
1138         No new tests, just refactoring.
1139
1140         * rendering/RenderFlexibleBox.cpp:
1141         (WebCore::RenderFlexibleBox::LineContext::LineContext): New struct,
1142         holds information needed for wrap-reverse and aligning children.
1143         (RenderFlexibleBox::LineContext):
1144         (WebCore::RenderFlexibleBox::layoutFlexItems): alignChildren after layout out all the lines rather than after each line.
1145         (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): don't alignChildren
1146         (WebCore::RenderFlexibleBox::alignChildren): align all flex items, not just a line at a time.
1147         (WebCore::RenderFlexibleBox::flipForWrapReverse): Update to use LineContext
1148         * rendering/RenderFlexibleBox.h:
1149
1150 2012-03-22  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
1151
1152         Event dispatching in XMLHttpRequestProgressEventThrottle should go through XMLHttpRequestProgressEventThrottle::dispatchEvent
1153         https://bugs.webkit.org/show_bug.cgi?id=46743
1154
1155         Reviewed by Julien Chaffraix
1156         Based on original patch by Anton D'Auria
1157
1158         In preparation for platform-specific queuing of XMLHttpRequest events,
1159         this patch changes all calls to m_target->dispatchEvent to
1160         XMLHttpRequestProgressEventThrottle::dispatchEvent.
1161         Currently, we queue only one progress event on suspend() if we have
1162         throttled progress events. We should be able to queue all XHR events
1163         that can be generated after suspend(), if the platform network layer
1164         continues to receive data.
1165         XMLHttpRequest uses XMLHttpRequestProgressEventThrottle to dispatch only
1166         download events, so this doesn't change behavior of upload events, which
1167         aren't throttled or queued.
1168
1169         * xml/XMLHttpRequest.cpp:
1170         (WebCore::XMLHttpRequest::callReadyStateChangeListener):
1171         * xml/XMLHttpRequestProgressEventThrottle.cpp:
1172         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchReadyStateChangeEvent):
1173         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchEvent):
1174         (WebCore::XMLHttpRequestProgressEventThrottle::flushProgressEvent):
1175         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchPausedEvent):
1176         (WebCore::XMLHttpRequestProgressEventThrottle::fired):
1177         * xml/XMLHttpRequestProgressEventThrottle.h:
1178         (XMLHttpRequestProgressEventThrottle):
1179
1180 2012-03-22  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
1181
1182         [EFL] Map BackSpace key code to Unicode value
1183         https://bugs.webkit.org/show_bug.cgi?id=81130
1184
1185         Reviewed by Gustavo Noronha Silva.
1186
1187         Test: fast/events/backspace-navigates-back.html
1188
1189         * platform/efl/EflKeyboardUtilities.cpp:
1190         (WebCore::createKeyMap): Map BackSpace to Unicode value
1191
1192 2012-03-22  Abhishek Arya  <inferno@chromium.org>
1193
1194         Incorrect beforeChild parent calculation in RenderRubyBase::moveChildren.
1195         https://bugs.webkit.org/show_bug.cgi?id=80297
1196
1197         Reviewed by Julien Chaffraix.
1198
1199         beforeChild might share the same anonymous block parent with other previous
1200         siblings. Before moving the children across ruby bases, we need to make sure
1201         to split the tree across the beforeChild correctly.
1202
1203         Test: fast/ruby/ruby-text-before-child-split.html
1204
1205         * rendering/RenderRubyBase.cpp:
1206         (WebCore::RenderRubyBase::moveChildren):
1207
1208 2012-03-22  Kristóf Kosztyó  <kkristof@inf.u-szeged.hu>
1209
1210         [Qt] Fix Qt minimal build after r111692
1211
1212         Reviewed by Csaba Osztrogonác.
1213
1214         * bindings/js/JSScriptProfileNodeCustom.cpp:
1215
1216 2012-03-22  Adrienne Walker  <enne@google.com>
1217
1218         [chromium] Fix scrollbar layers holding onto invalid textures after lost context
1219         https://bugs.webkit.org/show_bug.cgi?id=81841
1220
1221         Reviewed by James Robinson.
1222
1223         Unit test: CCLayerTreeHostImplTest.scrollbarLayerLostContext
1224
1225         * platform/graphics/chromium/cc/CCScrollbarLayerImpl.cpp:
1226         (WebCore::CCScrollbarLayerImpl::willDraw):
1227
1228 2012-03-22  Philippe Normand  <pnormand@igalia.com>
1229
1230         [GTK] ASSERT bug in WebAudio (AudioFileReader)
1231         https://bugs.webkit.org/show_bug.cgi?id=81777
1232
1233         Reviewed by Martin Robinson.
1234
1235         * platform/audio/gstreamer/AudioFileReaderGStreamer.cpp:
1236         (WebCore::AudioFileReader::decodeAudioForBusCreation): Don't steal
1237         the GstBus floating reference.
1238         (WebCore::AudioFileReader::createBus): Ditto.
1239
1240 2012-03-22  Ilya Tikhonovsky  <loislo@chromium.org>
1241
1242         Unreviewed: Web Inspector: fix syntax error in text.
1243
1244         * English.lproj/localizedStrings.js:
1245         * inspector/front-end/HeapSnapshotProxy.js:
1246         (WebInspector.HeapSnapshotWorker.prototype._messageReceived):
1247
1248 2012-03-22  Sheriff Bot  <webkit.review.bot@gmail.com>
1249
1250         Unreviewed, rolling out r111688.
1251         http://trac.webkit.org/changeset/111688
1252         https://bugs.webkit.org/show_bug.cgi?id=81912
1253
1254         "Heap profiler test fails" (Requested by yurys on #webkit).
1255
1256         * inspector/front-end/HeapSnapshot.js:
1257         (WebInspector.HeapSnapshot.prototype._buildRetainers):
1258
1259 2012-03-22  Dana Jansens  <danakj@chromium.org>
1260
1261         [chromium] Early out in a new prepareToDraw() step if checkerboarding an accelerated animation in order to skip the frame
1262         https://bugs.webkit.org/show_bug.cgi?id=81437
1263
1264         Reviewed by Adrienne Walker.
1265
1266         Split CCLayerTreeHostImpl::drawLayers() into two phases:
1267         prepareToDraw() and drawLayers().
1268
1269         When calculating a RenderPass, and we checkerboard a quad on a
1270         layer, bubble this info back up to CCLayerTreeHostImpl. If the
1271         layer is transforming in an animation, then abort the prepareToDraw()
1272         phase and cause it to return false back to the thread proxy.
1273
1274         Unit test: CCLayerTreeHostImplTest.prepareToDrawFailsWhenAnimationUsesCheckerboard
1275
1276         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1277         (WebCore::CCLayerImpl::appendQuads):
1278         * platform/graphics/chromium/cc/CCLayerImpl.h:
1279         (CCLayerImpl):
1280         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
1281         (WebCore::CCLayerTreeHostImpl::calculateRenderPasses):
1282         (WebCore::CCLayerTreeHostImpl::prepareToDraw):
1283         (WebCore):
1284         (WebCore::CCLayerTreeHostImpl::drawLayers):
1285         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
1286         (CCLayerTreeHostImpl):
1287         (FrameData):
1288         * platform/graphics/chromium/cc/CCQuadCuller.cpp:
1289         (WebCore::CCQuadCuller::append):
1290         * platform/graphics/chromium/cc/CCQuadCuller.h:
1291         (CCQuadCuller):
1292         * platform/graphics/chromium/cc/CCRenderPass.cpp:
1293         (WebCore::CCRenderPass::appendQuadsForLayer):
1294         * platform/graphics/chromium/cc/CCRenderPass.h:
1295         (CCRenderPass):
1296         * platform/graphics/chromium/cc/CCScrollbarLayerImpl.cpp:
1297         (WebCore::CCScrollbarLayerImpl::appendQuads):
1298         * platform/graphics/chromium/cc/CCScrollbarLayerImpl.h:
1299         (CCScrollbarLayerImpl):
1300         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
1301         (WebCore::CCSingleThreadProxy::doComposite):
1302         * platform/graphics/chromium/cc/CCSolidColorLayerImpl.cpp:
1303         (WebCore::CCSolidColorLayerImpl::appendQuads):
1304         * platform/graphics/chromium/cc/CCSolidColorLayerImpl.h:
1305         (CCSolidColorLayerImpl):
1306         * platform/graphics/chromium/cc/CCTextureLayerImpl.cpp:
1307         (WebCore::CCTextureLayerImpl::appendQuads):
1308         * platform/graphics/chromium/cc/CCTextureLayerImpl.h:
1309         (CCTextureLayerImpl):
1310         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
1311         (WebCore::CCThreadProxy::scheduledActionDrawAndSwap):
1312         * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
1313         (WebCore::CCTiledLayerImpl::appendQuads):
1314         * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
1315         (CCTiledLayerImpl):
1316         * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
1317         (WebCore::CCVideoLayerImpl::appendQuads):
1318         * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
1319         (CCVideoLayerImpl):
1320
1321 2012-03-22  Levi Weintraub  <leviw@chromium.org>
1322
1323         Correct LayoutUnit usage in Accessibility code
1324         https://bugs.webkit.org/show_bug.cgi?id=81789
1325
1326         Reviewed by Eric Seidel.
1327
1328         Reverting Accessibility hit testing code back to integers. Accessibility hit tests originate from
1329         the embedder and don't accumulate offsets, so we get nothing from using LayoutUnits, and needlessly
1330         expose them to the embedder.
1331
1332         No new tests. No change in behavior.
1333
1334         * accessibility/AccessibilityListBox.cpp:
1335         (WebCore::AccessibilityListBox::elementAccessibilityHitTest): See above.
1336         * accessibility/AccessibilityListBox.h:
1337         (AccessibilityListBox):
1338         * accessibility/AccessibilityObject.cpp:
1339         (WebCore::AccessibilityObject::clickPoint): This value is only ever used to display a context menu,
1340         which is always done with integer coordinates.
1341         (WebCore::AccessibilityObject::boundingBoxForQuads): This is a bounding box built from floats. We
1342         don't pixel snap floats, so we return an integer bounding box.
1343         (WebCore::AccessibilityObject::elementAccessibilityHitTest): See above.
1344         (WebCore::AccessibilityObject::scrollToMakeVisible): Pixel snapping the bounding box and simplifying
1345         up the code to position it at (0,0).
1346         * accessibility/AccessibilityObject.h:
1347         (WebCore::AccessibilityObject::accessibilityHitTest): See above.
1348         (AccessibilityObject):
1349         (WebCore::AccessibilityObject::pixelSnappedBoundingBoxRect): Convenience method for embedder callers.
1350         * accessibility/AccessibilityRenderObject.cpp:
1351         (WebCore::AccessibilityRenderObject::visiblePositionForPoint): The point passed in here is comes from
1352         screen coordinates and originates in embedder code. Reverting it to take an integer.
1353         (WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest): See above.
1354         (WebCore::AccessibilityRenderObject::accessibilityHitTest): See above.
1355         * accessibility/AccessibilityRenderObject.h:
1356         (AccessibilityRenderObject):
1357         * accessibility/AccessibilityScrollView.cpp:
1358         (WebCore::AccessibilityScrollView::accessibilityHitTest): See above.
1359         * accessibility/AccessibilityScrollView.h:
1360         (AccessibilityScrollView):
1361         * accessibility/AccessibilitySlider.cpp:
1362         (WebCore::AccessibilitySlider::elementAccessibilityHitTest): See above.
1363         * accessibility/AccessibilitySlider.h:
1364         (AccessibilitySlider):
1365
1366 2012-03-21  Ilya Tikhonovsky  <loislo@chromium.org>
1367
1368         Web Inspector: HeapProfiler: Heap snapshot worker has to report the errors to the front-end
1369         https://bugs.webkit.org/show_bug.cgi?id=81804
1370
1371         Sometimes the worker process of HeapSnapshot does some wrong thing and throw an Exception.
1372         At this momemnt we have no way to see the error in the front-end.
1373
1374         Reviewed by Yury Semikhatsky.
1375
1376         * English.lproj/localizedStrings.js:
1377         * inspector/front-end/HeapSnapshotProxy.js: check the exception field and dump it into front-end's console.
1378         (WebInspector.HeapSnapshotWorker.prototype._messageReceived):
1379         * inspector/front-end/HeapSnapshotWorkerDispatcher.js: catch the exception and transfer it's text to requester's side.
1380         (WebInspector.HeapSnapshotWorkerDispatcher.prototype.dispatchMessage):
1381
1382 2012-03-22  Carlos Garcia Campos  <cgarcia@bb-webkit-rel-64.local.igalia.com>
1383
1384         [GTK] Use the angle-bracket form to include wtf headers
1385         https://bugs.webkit.org/show_bug.cgi?id=81884
1386
1387         Reviewed by Eric Seidel.
1388
1389         Use #include <wtf/foo> instead of #include "foo".
1390
1391         * platform/graphics/freetype/FontPlatformData.h:
1392         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
1393         * platform/gtk/DataObjectGtk.h:
1394         * platform/network/ResourceHandleInternal.h:
1395         * platform/network/soup/SocketStreamHandleSoup.cpp:
1396
1397 2012-03-22  Alexander Pavlov  <apavlov@chromium.org>
1398
1399         Web Inspector: Case of the elements of the xml document should be shown as it is in the console
1400         https://bugs.webkit.org/show_bug.cgi?id=81902
1401
1402         When registering a detached root, DOMAgent always presumes it is a node,
1403         while it can also be a document.
1404
1405         Reviewed by Vsevolod Vlasov.
1406
1407         Test: inspector/console/console-xml-document.html
1408
1409         * inspector/front-end/ConsoleMessage.js:
1410         (WebInspector.ConsoleMessageImpl.prototype._formatParameterAsNode):
1411         * inspector/front-end/DOMAgent.js:
1412         (WebInspector.DOMAgent.prototype._setDetachedRoot):
1413
1414 2012-03-22  Vsevolod Vlasov  <vsevik@chromium.org>
1415
1416         Web Inspector: Introduce ScriptBound/ScriptUnbound events in ScriptMapping.
1417         https://bugs.webkit.org/show_bug.cgi?id=81904
1418
1419         Reviewed by Pavel Feldman.
1420
1421         This is another step on the way to cleaner BreakpointManager logic.
1422         Here we extract ScriptBound/ScriptUnbound events from UISourceCodeListChanged event.
1423         This allows us to handle script-uiSourceCode binding separately from
1424         uiSourceCode creation/deletion and to handle unbinding that was not
1425         possible at all before.
1426
1427         * inspector/front-end/CompilerScriptMapping.js:
1428         (WebInspector.CompilerScriptMapping.prototype._uiSourceCodesForSourceMap):
1429         (WebInspector.CompilerScriptMapping.prototype.addScript.get this):
1430         (WebInspector.CompilerScriptMapping.prototype.addScript):
1431         (WebInspector.CompilerScriptMapping.prototype.reset):
1432         * inspector/front-end/ResourceScriptMapping.js:
1433         (WebInspector.ResourceScriptMapping.prototype._uiSourceCodeChanged):
1434         * inspector/front-end/ScriptMapping.js:
1435         (WebInspector.MainScriptMapping):
1436         (WebInspector.MainScriptMapping.prototype._updateLiveLocation):
1437         (WebInspector.MainScriptMapping.prototype._handleUISourceCodeListChanged):
1438         (WebInspector.MainScriptMapping.prototype._handleScriptBound):
1439         (WebInspector.MainScriptMapping.prototype._handleScriptUnbound):
1440         * inspector/front-end/SnippetsModel.js:
1441         (WebInspector.SnippetsScriptMapping.prototype.addScript.get this):
1442         (WebInspector.SnippetsScriptMapping.prototype._snippetAdded):
1443         (WebInspector.SnippetsScriptMapping.prototype._createUISourceCodeForScript):
1444         (WebInspector.SnippetsScriptMapping.prototype._snippetRemoved.get this):
1445         (WebInspector.SnippetsScriptMapping.prototype._snippetRemoved):
1446         (WebInspector.SnippetsScriptMapping.prototype.reset):
1447
1448 2012-03-22  Vineet Chaudhary  <rgf748@motorola.com>
1449
1450         https://bugs.webkit.org/show_bug.cgi?id=81893
1451         Remove custom bindings form ScriptProfileNode.idl of attribute type Array.
1452
1453         Reviewed by Kentaro Hara.
1454
1455         Replace [CustomGetter] Array with sequence<ScriptProfileNode>.
1456         To remove the custom bindings code.
1457
1458         Test: No new tests. LayoutTests/fast/profiler/* test are enough for this.
1459
1460         * bindings/js/JSScriptProfileNodeCustom.cpp: Removed custom function.
1461         (WebCore::JSScriptProfileNode::callUID):
1462         * bindings/v8/custom/V8ScriptProfileNodeCustom.cpp: Removed custom function.
1463         (WebCore):
1464         * inspector/ScriptProfileNode.idl: Replaced Array with sequence<ScriptProfileNode>.
1465
1466 2012-03-22  Andrey Kosyakov  <caseq@chromium.org>
1467
1468         Web Inspector: only update timeline overview categories strips when these are visible
1469         https://bugs.webkit.org/show_bug.cgi?id=81903
1470
1471         Reviewed by Pavel Feldman.
1472
1473         - factor out category strips update into a separate method;
1474         - only invoke it when "Timeline" overview mode is selected.
1475
1476         * inspector/front-end/TimelineOverviewPane.js:
1477         (WebInspector.TimelineOverviewPane.prototype._showTimelines):
1478         (WebInspector.TimelineOverviewPane.prototype.update):
1479         (WebInspector.TimelineOverviewPane.prototype._updateCategoryStrips):
1480
1481 2012-03-22  Levi Weintraub  <leviw@chromium.org>
1482
1483         Update LayoutUnit usage in FrameSelection
1484         https://bugs.webkit.org/show_bug.cgi?id=81754
1485
1486         Reviewed by Eric Seidel.
1487
1488         FrameSelection stores its caret and repaint bounds in absolute coordinates. Absolute coordinates
1489         we treat as pixel values, so this patch changes these values to integers. Sub-pixel precision
1490         will still be used when these coordinates are passed down and used locally.
1491
1492         No new tests. No change in behavior.
1493
1494         * editing/FrameSelection.cpp:
1495         (WebCore::absoluteCaretY): Uses absolute coordinates, which are ints.
1496         (WebCore::FrameSelection::modify): Uses absolute coordinates to handle vertical selection
1497         modification. Sub-pixel precision will be used when these values are converted to local ones.
1498         (WebCore::CaretBase::absoluteBoundsForLocalRect): Absolute coordinates -> ints.
1499         (WebCore::FrameSelection::absoluteCaretBounds): Ditto.
1500         (WebCore::CaretBase::caretRepaintRect): The caret repaint rect is stored in absolute coordinates.
1501         Reverting the values to ints.
1502         (WebCore::FrameSelection::recomputeCaretRect): Ditto.
1503         * editing/FrameSelection.h:
1504         (FrameSelection):
1505         * editing/mac/FrameSelectionMac.mm:
1506         (WebCore::FrameSelection::notifyAccessibilityForSelectionChange): Switching to store absolute
1507         coordinates as integers.
1508
1509 2012-03-22  Alexei Filippov  <alexeif@chromium.org>
1510
1511         Web Inspector: Speed up the build retainers phase.
1512         https://bugs.webkit.org/show_bug.cgi?id=81763
1513
1514         Replacing the edge iterator with a raw loop makes it
1515         faster by more than 10 times.
1516
1517         Reviewed by Yury Semikhatsky.
1518
1519         * inspector/front-end/HeapSnapshot.js:
1520         (WebInspector.HeapSnapshot.prototype._buildRetainers):
1521
1522 2012-03-22  No'am Rosenthal  <noam.rosenthal@nokia.com>
1523
1524         [Qt][WK2] The background appears to have one extra pixel from the contents
1525         https://bugs.webkit.org/show_bug.cgi?id=81830
1526
1527         Reviewed by Kenneth Rohde Christiansen.
1528
1529         TextureMapperGL applied a 1-offset that was covering for another bug,
1530         which was already fixed.
1531
1532         No new tests, this would be tested once we test GL rendering results.
1533
1534         * platform/graphics/texmap/TextureMapperGL.cpp:
1535         (WebCore::TextureMapperGLData::SharedGLData::scissorClip):
1536
1537 2012-03-22  W. James MacLean  <wjmaclean@chromium.org>
1538
1539         Rename touchpad fling curve, add curve parameters to constructor.
1540         https://bugs.webkit.org/show_bug.cgi?id=81820
1541
1542         Reviewed by Adrienne Walker.
1543
1544         Covered by existing unit tests.
1545
1546         * GNUmakefile.list.am:
1547         * WebCore.gypi:
1548         * platform/ScrollAnimatorNone.cpp:
1549         (WebCore::ScrollAnimatorNone::fireUpAnAnimation):
1550         * platform/TouchpadFlingPlatformGestureCurve.cpp: Renamed from Source/WebCore/platform/TouchFlingPlatformGestureCurve.cpp.
1551         (WebCore):
1552         (WebCore::TouchpadFlingPlatformGestureCurve::create):
1553         (WebCore::TouchpadFlingPlatformGestureCurve::TouchpadFlingPlatformGestureCurve):
1554         (WebCore::TouchpadFlingPlatformGestureCurve::~TouchpadFlingPlatformGestureCurve):
1555         (WebCore::TouchpadFlingPlatformGestureCurve::apply):
1556         * platform/TouchpadFlingPlatformGestureCurve.h: Renamed from Source/WebCore/platform/TouchFlingPlatformGestureCurve.h.
1557         (WebCore):
1558         (TouchpadFlingPlatformGestureCurve):
1559
1560 2012-03-22  Pavel Feldman  <pfeldman@chromium.org>
1561
1562         Web Inspector: make CSS and JavaScript files editable by default.
1563         https://bugs.webkit.org/show_bug.cgi?id=81787
1564
1565         Reviewed by Vsevolod Vlasov.
1566
1567         This change removes cancelEditing and setReadOnly capabilities from source frame.
1568         It removes dblclick handler as well since one does not need to enter editing mode.
1569         It also establishes proper content dispatching so that views are updated with the
1570         resource content. All these are inter-dependent, need to be landed simultaneously.
1571         Drive-by follow up to the r111675 where range is modified prior to the exiting
1572         edit mode.
1573
1574         * inspector/front-end/JavaScriptSourceFrame.js:
1575         (WebInspector.JavaScriptSourceFrame):
1576         (WebInspector.JavaScriptSourceFrame.prototype.requestContent):
1577         (WebInspector.JavaScriptSourceFrame.prototype.afterTextChanged):
1578         (WebInspector.JavaScriptSourceFrame.prototype.beforeTextChanged):
1579         (WebInspector.JavaScriptSourceFrame.prototype.didEditContent):
1580         (WebInspector.JavaScriptSourceFrame.prototype._lineNumberAfterEditing):
1581         * inspector/front-end/ResourceView.js:
1582         (WebInspector.ResourceSourceFrame):
1583         (WebInspector.ResourceSourceFrame.prototype.suggestedFileName):
1584         (WebInspector.ResourceSourceFrame.prototype._contentChanged):
1585         (WebInspector.EditableResourceSourceFrame.prototype.canEditSource):
1586         (WebInspector.EditableResourceSourceFrame.prototype.editContent.callbackWrapper):
1587         (WebInspector.EditableResourceSourceFrame.prototype.editContent):
1588         (WebInspector.EditableResourceSourceFrame.prototype._contentChanged):
1589         * inspector/front-end/ResourcesPanel.js:
1590         (WebInspector.ResourcesPanel.prototype._innerShowView):
1591         (WebInspector.FrameResourceTreeElement.prototype._appendRevision):
1592         * inspector/front-end/ScriptsPanel.js:
1593         (WebInspector.ScriptsPanel.prototype.setScriptSourceIsDirty):
1594         * inspector/front-end/Settings.js:
1595         (WebInspector.ExperimentsSettings):
1596         * inspector/front-end/SourceFrame.js:
1597         (WebInspector.SourceFrame):
1598         (WebInspector.SourceFrame.prototype.wasShown):
1599         (WebInspector.SourceFrame.prototype.willHide):
1600         (WebInspector.SourceFrame.prototype.beforeTextChanged):
1601         (WebInspector.SourceFrame.prototype.setContent):
1602         (WebInspector.SourceFrame.prototype.commitEditing):
1603         (WebInspector.SourceFrame.prototype.didEditContent):
1604         (WebInspector.SourceFrame.prototype.editContent):
1605         * inspector/front-end/TextPrompt.js:
1606         (WebInspector.TextPrompt.prototype._startEditing):
1607         (WebInspector.TextPrompt.prototype._stopEditing):
1608         * inspector/front-end/TextViewer.js:
1609         (WebInspector.TextViewer):
1610         (WebInspector.TextViewer.prototype._registerShortcuts):
1611         (WebInspector.TextEditorMainPanel.prototype.handleEnterKey):
1612
1613 2012-03-22  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
1614
1615         [Qt] Enable FAST_MOBILE_SCROLLING when scrolling is delegated.
1616         https://bugs.webkit.org/show_bug.cgi?id=81889
1617
1618         Reviewed by Kenneth Rohde Christiansen.
1619
1620         On the Qt platform only enable the fast mobile scroll feature when scrolling is delegated.
1621
1622         * rendering/RenderObject.cpp:
1623         (WebCore::RenderObject::styleWillChange):
1624
1625 2012-03-22  Pavel Feldman  <pfeldman@chromium.org>
1626
1627         Web Inspector: dispatch styleSheetChanged event synchronously.
1628         https://bugs.webkit.org/show_bug.cgi?id=81892
1629
1630         Reviewed by Vsevolod Vlasov.
1631
1632         Today, backend generates stylesheet change event synchronously from within set* command.
1633         But CSSStyleModel defers its dispatching until the stylesheet content is available. This
1634         prevents us from ignoring update events from within commands that initiated those updates.
1635
1636         This change makes stylesheet change event dispatch synchronously and delegates stylesheet
1637         content fetching to the event client.
1638
1639         * inspector/front-end/CSSStyleModel.js:
1640         (WebInspector.CSSStyleModel.prototype._fireStyleSheetChanged):
1641         (WebInspector.CSSStyleDeclaration.prototype.insertPropertyAt):
1642         (WebInspector.CSSStyleModelResourceBinding.prototype.setContent):
1643         (WebInspector.CSSStyleModelResourceBinding.prototype._innerSetContent.callbackWrapper):
1644         (WebInspector.CSSStyleModelResourceBinding.prototype._innerSetContent):
1645         (WebInspector.CSSStyleModelResourceBinding.prototype._styleSheetChanged.callback):
1646         (WebInspector.CSSStyleModelResourceBinding.prototype._styleSheetChanged):
1647         (WebInspector.CSSStyleModelResourceBinding.prototype._innerStyleSheetChanged):
1648
1649 2012-03-21  Ian Vollick  <vollick@chromium.org>
1650
1651         [chromium] timing functions are getting incorrectly applied for accelerated css transitions
1652         https://bugs.webkit.org/show_bug.cgi?id=81692
1653
1654         Reviewed by Adrienne Walker.
1655
1656         Tested in CCLayerTreeHostTestAddAnimationWithTimingFunction
1657
1658         * platform/graphics/chromium/cc/CCLayerAnimationController.cpp:
1659
1660 2012-03-22  Pavel Feldman  <pfeldman@chromium.org>
1661
1662         Web Inspector: allow on-hover popover while in edit mode.
1663         https://bugs.webkit.org/show_bug.cgi?id=81898
1664
1665         Reviewed by Vsevolod Vlasov.
1666
1667         This change allows popover while in-edit mode, hides it upon Esc. It also introduces anchorOverride
1668         concept in ObjectPopoverHelper that allows dynamically switching the anchor (say if we want to highlight anchor itself).
1669
1670         * inspector/front-end/DetailedHeapshotView.js:
1671         * inspector/front-end/ElementsPanel.js:
1672         * inspector/front-end/JavaScriptSourceFrame.js:
1673         (WebInspector.JavaScriptSourceFrame.prototype._resolveObjectForPopover.showObjectPopover):
1674         (WebInspector.JavaScriptSourceFrame.prototype._resolveObjectForPopover):
1675         (WebInspector.JavaScriptSourceFrame.prototype._onKeyDown):
1676         * inspector/front-end/NetworkPanel.js:
1677         * inspector/front-end/ObjectPopoverHelper.js:
1678         (WebInspector.ObjectPopoverHelper.prototype._showObjectPopover.showObjectPopover.):
1679         (WebInspector.ObjectPopoverHelper.prototype._showObjectPopover):
1680         * inspector/front-end/Popover.js:
1681         (WebInspector.PopoverHelper.prototype.isPopoverVisible):
1682         * inspector/front-end/TimelinePanel.js:
1683
1684 2012-03-22  Pavel Feldman  <pfeldman@chromium.org>
1685
1686         Web Inspector: breakpoints should shift when line break is inserted in the middle of the line.
1687         https://bugs.webkit.org/show_bug.cgi?id=81896
1688
1689         Reviewed by Vsevolod Vlasov.
1690
1691         There is a bug that collapses selection prior to exiting change mode, we should never
1692         collapse edit area prior committing.
1693
1694         * inspector/front-end/TextEditorModel.js:
1695         (WebInspector.TextEditorModel.endsWithBracketRegex.):
1696         * inspector/front-end/TextViewer.js:
1697         (WebInspector.TextViewer):
1698         (WebInspector.TextEditorMainPanel.prototype.highlightLine):
1699         (WebInspector.TextEditorMainPanel.prototype.handleUndoRedo.callback):
1700         (WebInspector.TextEditorMainPanel.prototype.handleUndoRedo):
1701
1702 2012-03-22  Zoltan Herczeg  <zherczeg@webkit.org>
1703
1704         Merge SVGImageBufferTools to SVGRenderingContext
1705         https://bugs.webkit.org/show_bug.cgi?id=81890
1706
1707         Reviewed by Nikolas Zimmermann.
1708
1709         Copy the code to SVGRenderingContext and delete
1710         SVGImageBufferTools[.cpp.h]. Update build systems,
1711         no functionality change. This is the first step
1712         towards making SVGImageBufferTools stageful.
1713
1714         Existing tests cover this issue.
1715
1716         * CMakeLists.txt:
1717         * GNUmakefile.list.am:
1718         * Target.pri:
1719         * WebCore.gypi:
1720         * WebCore.xcodeproj/project.pbxproj:
1721         * platform/graphics/filters/FETile.cpp:
1722         (WebCore::FETile::platformApplySoftware):
1723         * rendering/svg/RenderSVGAllInOne.cpp:
1724         * rendering/svg/RenderSVGInlineText.cpp:
1725         (WebCore::RenderSVGInlineText::computeNewScaledFontForStyle):
1726         * rendering/svg/RenderSVGResourceClipper.cpp:
1727         (WebCore::RenderSVGResourceClipper::applyClippingToContext):
1728         (WebCore::RenderSVGResourceClipper::drawContentIntoMaskImage):
1729         * rendering/svg/RenderSVGResourceFilter.cpp:
1730         (WebCore::RenderSVGResourceFilter::applyResource):
1731         * rendering/svg/RenderSVGResourceGradient.cpp:
1732         (WebCore::createMaskAndSwapContextForTextGradient):
1733         (WebCore::clipToTextMask):
1734         * rendering/svg/RenderSVGResourceMasker.cpp:
1735         (WebCore::RenderSVGResourceMasker::applyResource):
1736         (WebCore::RenderSVGResourceMasker::drawContentIntoMaskImage):
1737         * rendering/svg/RenderSVGResourcePattern.cpp:
1738         (WebCore::RenderSVGResourcePattern::applyResource):
1739         (WebCore::RenderSVGResourcePattern::createTileImage):
1740         * rendering/svg/SVGImageBufferTools.cpp: Removed.
1741         * rendering/svg/SVGImageBufferTools.h: Removed.
1742         * rendering/svg/SVGInlineTextBox.cpp:
1743         * rendering/svg/SVGRenderingContext.cpp:
1744         (WebCore::currentContentTransformation):
1745         (WebCore):
1746         (WebCore::SVGRenderingContext::calculateTransformationToOutermostSVGCoordinateSystem):
1747         (WebCore::SVGRenderingContext::createImageBuffer):
1748         (WebCore::SVGRenderingContext::createImageBufferForPattern):
1749         (WebCore::SVGRenderingContext::renderSubtreeToImageBuffer):
1750         (WebCore::SVGRenderingContext::clipToImageBuffer):
1751         (WebCore::SVGRenderingContext::clampedAbsoluteTargetRect):
1752         (WebCore::SVGRenderingContext::clampedAbsoluteSize):
1753         (WebCore::SVGRenderingContext::clear2DRotation):
1754         * rendering/svg/SVGRenderingContext.h:
1755         (SVGRenderingContext):
1756         (WebCore::SVGRenderingContext::calculateImageBufferRect):
1757         * svg/graphics/filters/SVGFEImage.cpp:
1758         (WebCore::FEImage::platformApplySoftware):
1759
1760 2012-03-22  Hyowon Kim  <hw1008.kim@samsung.com>
1761
1762         [EFL] Add PageClientEfl to WebCoreSupport.
1763         https://bugs.webkit.org/show_bug.cgi?id=80748
1764
1765         Reviewed by Noam Rosenthal.
1766
1767         * platform/Widget.h: Use PageClientEfl as type for PlatformPageClient.
1768         (WebCore):
1769         * platform/graphics/efl/GraphicsContext3DPrivate.cpp:
1770         (WebCore::GraphicsContext3DPrivate::createSurface): Change the argument type.
1771         * plugins/efl/PluginViewEfl.cpp:
1772         (WebCore::PluginView::platformGetValue): Use PageClientEfl.
1773
1774 2012-03-22  Kaustubh Atrawalkar  <kaustubh@motorola.com>
1775
1776         blur() on shadow host should work when a shadow host contains a focused element in its shadow DOM subtrees
1777         https://bugs.webkit.org/show_bug.cgi?id=81102
1778
1779         Reviewed by Hajime Morita.
1780
1781         This implementation will support blur for a focused element when its shadowHost's blur() is called.
1782         To achieve this Element::blur() function is modified to blur the focused node in it's treeScope.
1783
1784         Test: fast/dom/shadow/shadow-root-blur.html
1785
1786         * dom/Element.cpp:
1787         (WebCore::Element::blur): Modified to blur current treeScope's focused node.
1788         * dom/ShadowRoot.h:
1789         (WebCore::ShadowRoot::activeElement): Rework for code sharing.
1790         * dom/TreeScope.cpp:
1791         (WebCore::TreeScope::focusedNode): Added new function to share code for getting focused node.
1792         * dom/TreeScope.h:
1793         (TreeScope): New function declartion.
1794         * html/HTMLDocument.cpp:
1795         (WebCore::HTMLDocument::activeElement): Rework for code sharing.
1796
1797 2012-03-22  Vsevolod Vlasov  <vsevik@chromium.org>
1798
1799         Web Inspector: RawSourceCode does not need uiSourceCode lists because it never has more than one.
1800         https://bugs.webkit.org/show_bug.cgi?id=81894
1801
1802         RawSourceCode never has more than one uiSourceCode, uiSourceCodeList
1803         are just remains of older implementation. This patch switches RawSourceCode
1804         and SourceMappings from uiSourceCodeList to uiSourceCode.
1805
1806         Reviewed by Pavel Feldman.
1807
1808         * inspector/front-end/RawSourceCode.js:
1809         (WebInspector.RawSourceCode.prototype.uiSourceCode):
1810         (WebInspector.RawSourceCode.prototype._saveSourceMapping):
1811         (WebInspector.RawSourceCode.SourceMapping.prototype.uiLocationToRawLocation):
1812         (WebInspector.RawSourceCode.SourceMapping.prototype.uiSourceCode):
1813         (WebInspector.RawSourceCode.PlainSourceMapping):
1814         (WebInspector.RawSourceCode.PlainSourceMapping.prototype.rawLocationToUILocation):
1815         (WebInspector.RawSourceCode.PlainSourceMapping.prototype.uiLocationToRawLocation):
1816         (WebInspector.RawSourceCode.PlainSourceMapping.prototype.uiSourceCode):
1817         (WebInspector.RawSourceCode.FormattedSourceMapping):
1818         (WebInspector.RawSourceCode.FormattedSourceMapping.prototype.rawLocationToUILocation):
1819         (WebInspector.RawSourceCode.FormattedSourceMapping.prototype.uiLocationToRawLocation):
1820         (WebInspector.RawSourceCode.FormattedSourceMapping.prototype.uiSourceCode):
1821         * inspector/front-end/ResourceScriptMapping.js:
1822         (WebInspector.ResourceScriptMapping.prototype.uiSourceCodeList):
1823         (WebInspector.ResourceScriptMapping.prototype.addScript):
1824         (WebInspector.ResourceScriptMapping.prototype._handleUISourceCodeChanged):
1825         (WebInspector.ResourceScriptMapping.prototype._uiSourceCodeChanged):
1826         (WebInspector.ResourceScriptMapping.prototype.reset):
1827
1828 2012-03-22  Mario Sanchez Prada  <msanchez@igalia.com>
1829
1830         [GTK] Fix the only remaining coding style issue in GTK accessibility code
1831         https://bugs.webkit.org/show_bug.cgi?id=81885
1832
1833         Reviewed by Xan Lopez.
1834
1835         Add needed extra line and remove an unneeded one.
1836
1837         * accessibility/gtk/AccessibilityObjectAtk.cpp:
1838
1839 2012-03-22  Kent Tamura  <tkent@chromium.org>
1840
1841         Expand RenderTextControlSingleLine::controlClipRect() to contain contentRect().
1842         https://bugs.webkit.org/show_bug.cgi?id=81866
1843
1844         Reviewed by Hajime Morita.
1845
1846         We need to expand the controlClipRect because the existing shadow
1847         tree of a text field can be wrapped by another shadow tree. e.g.
1848
1849         A current situation:
1850
1851         <input>
1852           ┗ ShadowRoot
1853              ┗ container element
1854         ┌────────────┐<input>'s border box
1855         │┌──────────┐│
1856         ││container box       ││
1857         │└──────────┘│
1858         └────────────┘
1859
1860         Wrapped by another ShadowRoot:
1861
1862         <input>
1863           ┗ New ShadowRoot
1864              ┣ <shadow> represents the existing shadow tree
1865              ┃  ┗ container element
1866              ┗ D: an additional decoration element
1867         ┌────────────┐<input>'s border box
1868         │┌───────┬──┐│
1869         ││container box │ D  ││
1870         │└───────┴──┘│
1871         └────────────┘
1872         In this case, if we clip child renderers by container box, D is not
1873         drawn. We should clip by the content box of the <input>.
1874
1875         A search field has an exceptional behavior. It can have the container
1876         box of which height is taller than the content box height. The
1877         controlClipRect should contain both of the container box and the content
1878         box in this case. In other cases, the container box is equivalent to the
1879         content box. So the code always unites them.
1880
1881         No new tests. This won't make any behavior change for now.
1882
1883         * rendering/RenderTextControlSingleLine.cpp:
1884         (WebCore::RenderTextControlSingleLine::controlClipRect):
1885
1886 2012-03-22  Yoshifumi Inoue  <yosin@chromium.org>
1887
1888         [Forms] The option element should not be form associated element.
1889         https://bugs.webkit.org/show_bug.cgi?id=79764
1890
1891         Reviewed by Kent Tamura.
1892
1893         This patch changes base class of HTMLOptionELement to HTMLElement
1894         from HTMLFormControlElement for saving memory space and iteration
1895         time of extra "option" elements in HTMLFormElement::m_formAssociatedElements
1896         and matching the HTML5 specification for ease of maintenance.
1897
1898         This patch changes behavior of handling of CSS pseudo classes "invalid"
1899         and "valid". The "option" elements no longer use these CSS pseudo classes
1900         as HTML5 specification. This bug was filed in https://bugs.webkit.org/show_bug.cgi?id=80088
1901
1902         Changes of TextIterator is lead by usage of isFormControlElement. This
1903         changes will be replaced with more meaningful predicate as part of
1904         https://bugs.webkit.org/show_bug.cgi?id=80381
1905
1906         No new tests but updated select-live-pseudo-selectors.html test.
1907
1908         * css/CSSStyleSelector.cpp:
1909         (WebCore::CSSStyleSelector::canShareStyleWithElement): Added checking of the "option" element and returns false as HTMLFormControlElement.
1910         * css/SelectorChecker.cpp:
1911         (WebCore::SelectorChecker::checkOneSelector): Removed isFormControlElement for PseudoDisabled and PseudoChecked.
1912         * html/HTMLKeygenElement.cpp:
1913         (WebCore::HTMLKeygenElement::HTMLKeygenElement): Removed form parameter of call site of HTMLOptionElement::create.
1914         * html/HTMLOptionElement.cpp:
1915         (WebCore::HTMLOptionElement::HTMLOptionElement): Removed form parameter which no longer needed. Changed base class in initialization list. Added m_disabled initialization.
1916         (WebCore::HTMLOptionElement::create): Removed form parameter which no longer needed.
1917         (WebCore::HTMLOptionElement::attach): Changeid base class.
1918         (WebCore::HTMLOptionElement::detach): Changed base class.
1919         (WebCore::HTMLOptionElement::parseAttribute): Changed base class. Added "disabled" attribute handling.
1920         (WebCore::HTMLOptionElement::childrenChanged): Changed base class.
1921         (WebCore::HTMLOptionElement::insertedIntoTree): Changed base class.
1922         * html/HTMLOptionElement.h:
1923         (HTMLOptionElement): Added new member variable m_disabled which was in HTMLFormControlElement.
1924         (WebCore::HTMLOptionElement::ownElementDisabled): Changed for using m_disabled.
1925         * html/HTMLTagNames.in: Removed constructorNeedsFormElement for the "option" element, which was used for passing form parameter to create function.
1926
1927 2012-03-21  Pavel Podivilov  <podivilov@chromium.org>
1928
1929         Web Inspector: rename ClosureCompilerSourceMapping to SourceMapParser and move it to CompilerScriptMapping.js.
1930         https://bugs.webkit.org/show_bug.cgi?id=81780
1931
1932         Reviewed by Pavel Feldman.
1933
1934         * WebCore.gypi:
1935         * WebCore.vcproj/WebCore.vcproj:
1936         * inspector/compile-front-end.py:
1937         * inspector/front-end/CompilerScriptMapping.js:
1938         (WebInspector.CompilerScriptMapping.prototype.loadSourceMapForScript):
1939         (WebInspector.SourceMapParserPayload):
1940         (WebInspector.SourceMapParser):
1941         (WebInspector.SourceMapParser.prototype.load):
1942         (WebInspector.SourceMapParser.prototype.compiledLocationToSourceLocation):
1943         (WebInspector.SourceMapParser.prototype.sourceLocationToCompiledLocation):
1944         (WebInspector.SourceMapParser.prototype.sources):
1945         (WebInspector.SourceMapParser.prototype.loadSourceCode):
1946         (WebInspector.SourceMapParser.prototype._findMapping):
1947         (WebInspector.SourceMapParser.prototype._parseMappingPayload):
1948         (WebInspector.SourceMapParser.prototype._parseSections):
1949         (WebInspector.SourceMapParser.prototype._parseMap):
1950         (WebInspector.SourceMapParser.prototype._isSeparator):
1951         (WebInspector.SourceMapParser.prototype._decodeVLQ):
1952         (WebInspector.SourceMapParser.prototype._canonicalizeURL):
1953         (WebInspector.SourceMapParser.StringCharIterator):
1954         (WebInspector.SourceMapParser.StringCharIterator.prototype.next):
1955         (WebInspector.SourceMapParser.StringCharIterator.prototype.peek):
1956         (WebInspector.SourceMapParser.StringCharIterator.prototype.hasNext):
1957         * inspector/front-end/CompilerSourceMapping.js: Removed.
1958         * inspector/front-end/WebKit.qrc:
1959         * inspector/front-end/inspector.html:
1960
1961 2012-03-21  Vsevolod Vlasov  <vsevik@chromium.org>
1962
1963         Web Inspector: IndexedDB transaction is not closed when requesting data.
1964         https://bugs.webkit.org/show_bug.cgi?id=81837
1965
1966         Reviewed by Pavel Feldman.
1967
1968         * inspector/InspectorIndexedDBAgent.cpp: Added missing IDBCursorBackendInterface::postSuccessHandlerCallback() call.
1969         (WebCore):
1970
1971 2012-03-21  Yury Semikhatsky  <yurys@chromium.org>
1972
1973         Web Inspector: event listeners section is broken for about:blank page
1974         https://bugs.webkit.org/show_bug.cgi?id=81795
1975
1976         Parse about:blank as a valid URL.
1977
1978         Reviewed by Pavel Feldman.
1979
1980         Test: inspector/elements/event-listeners-about-blank.html
1981
1982         * inspector/front-end/utilities.js:
1983         (String.prototype.asParsedURL):
1984
1985 2012-03-21  Dan Bernstein  <mitz@apple.com>
1986
1987         REGRESSION (r111635): Assertion failure in RenderFlexibleBox::layoutFlexItems() (!lineContexts.size()) in many flexbox tests
1988         https://bugs.webkit.org/show_bug.cgi?id=81870
1989
1990         Reverted r111635, the fix for bug 81843.
1991
1992         * rendering/RenderFlexibleBox.cpp:
1993         (WebCore::RenderFlexibleBox::WrapReverseContext::WrapReverseContext):
1994         (WebCore::RenderFlexibleBox::WrapReverseContext::addCrossAxisOffset):
1995         (RenderFlexibleBox::WrapReverseContext):
1996         (WebCore::RenderFlexibleBox::WrapReverseContext::addNumberOfChildrenOnLine):
1997         (WebCore::RenderFlexibleBox::WrapReverseContext::lineCrossAxisDelta):
1998         (WebCore::RenderFlexibleBox::layoutFlexItems):
1999         (WebCore::RenderFlexibleBox::layoutAndPlaceChildren):
2000         (WebCore::RenderFlexibleBox::alignChildren):
2001         (WebCore::RenderFlexibleBox::flipForWrapReverse):
2002         * rendering/RenderFlexibleBox.h:
2003
2004 2012-03-21  Emil A Eklund  <eae@chromium.org>
2005
2006         Unreviewed change touching CustomFilterProgram.h to try
2007         to force the chromium-win bots to rebuilt it and pick up
2008         on the fact that CSS_SHADERS is not set (since r111610). 
2009
2010         * platform/graphics/filters/CustomFilterProgram.h:
2011
2012 2012-03-21  Vangelis Kokkevis  <vangelis@chromium.org>
2013
2014         [chromium] FPS counter causes garbage to be displayed at top left corner
2015         https://bugs.webkit.org/show_bug.cgi?id=81851
2016
2017         The HUD expects the PlatformCanvas it paints on to be cleared on creation which is
2018         no longer true after http://src.chromium.org/viewvc/chrome?view=rev&revision=127196 .
2019         This patch does an explicit clearRect before the HUD contents are painted.
2020
2021         Reviewed by Adrienne Walker.
2022
2023         TEST=Manually verified that --show-fps-counter and --show-composited-layer-tree work correctly.
2024
2025         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
2026         (WebCore::CCHeadsUpDisplay::draw):
2027
2028 2012-03-21  Ryosuke Niwa  <rniwa@webkit.org>
2029
2030         Touch a file to make Chromium Windows bots happy.
2031
2032         * css/CSSValueKeywords.in:
2033
2034 2012-03-19  Igor Oliveira  <igor.o@sisa.samsung.com>
2035
2036         Every call to RenderObject::setAnimatableStyle() iterates through all m_compositeAnimations: potentially O(N^2)
2037         https://bugs.webkit.org/show_bug.cgi?id=38025
2038
2039         Implement updateAnimationTimerForRender. This reduces unnecessary animation
2040         steps on the current RenderObject by checking the value of timeToNextService
2041         before starting a new timer.
2042
2043         Reviewed by Dean Jackson.
2044
2045         Test: animations/animation-welcome-safari.html
2046
2047         * page/animation/AnimationController.cpp:
2048         (WebCore::AnimationControllerPrivate::updateAnimationTimerForRenderer):
2049         (WebCore):
2050         (WebCore::AnimationController::updateAnimations):
2051         * page/animation/AnimationControllerPrivate.h:
2052         (AnimationControllerPrivate):
2053
2054 2012-03-21  Sheriff Bot  <webkit.review.bot@gmail.com>
2055
2056         Unreviewed, rolling out r111616.
2057         http://trac.webkit.org/changeset/111616
2058         https://bugs.webkit.org/show_bug.cgi?id=81862
2059
2060         broke chromium mac (Requested by eae on #webkit).
2061
2062         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
2063         (WebCore::CCLayerImpl::appendQuads):
2064         * platform/graphics/chromium/cc/CCLayerImpl.h:
2065         (CCLayerImpl):
2066         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
2067         (WebCore::CCLayerTreeHostImpl::calculateRenderPasses):
2068         (WebCore::CCLayerTreeHostImpl::drawLayers):
2069         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
2070         (CCLayerTreeHostImpl):
2071         * platform/graphics/chromium/cc/CCQuadCuller.cpp:
2072         (WebCore::CCQuadCuller::append):
2073         * platform/graphics/chromium/cc/CCQuadCuller.h:
2074         (CCQuadCuller):
2075         * platform/graphics/chromium/cc/CCRenderPass.cpp:
2076         (WebCore::CCRenderPass::appendQuadsForLayer):
2077         * platform/graphics/chromium/cc/CCRenderPass.h:
2078         (CCRenderPass):
2079         * platform/graphics/chromium/cc/CCScrollbarLayerImpl.cpp:
2080         (WebCore::CCScrollbarLayerImpl::appendQuads):
2081         * platform/graphics/chromium/cc/CCScrollbarLayerImpl.h:
2082         (CCScrollbarLayerImpl):
2083         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
2084         (WebCore::CCSingleThreadProxy::doComposite):
2085         * platform/graphics/chromium/cc/CCSolidColorLayerImpl.cpp:
2086         (WebCore::CCSolidColorLayerImpl::appendQuads):
2087         * platform/graphics/chromium/cc/CCSolidColorLayerImpl.h:
2088         (CCSolidColorLayerImpl):
2089         * platform/graphics/chromium/cc/CCTextureLayerImpl.cpp:
2090         (WebCore::CCTextureLayerImpl::appendQuads):
2091         * platform/graphics/chromium/cc/CCTextureLayerImpl.h:
2092         (CCTextureLayerImpl):
2093         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2094         (WebCore::CCThreadProxy::scheduledActionDrawAndSwap):
2095         * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
2096         (WebCore::CCTiledLayerImpl::appendQuads):
2097         * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
2098         (CCTiledLayerImpl):
2099         * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
2100         (WebCore::CCVideoLayerImpl::appendQuads):
2101         * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
2102         (CCVideoLayerImpl):
2103
2104 2012-03-21  Beth Dakin  <bdakin@apple.com>
2105
2106         https://bugs.webkit.org/show_bug.cgi?id=80322
2107         Implement image-set
2108
2109         Reviewed by Dean Jackson.
2110
2111         This initial implementation of -webkit-image-set. 
2112         http://lists.w3.org/Archives/Public/www-style/2012Feb/1103.html
2113         The idea behind the feature is to allow authors to provide multiple variants 
2114         of the same image at differing resolutions, and to allow the User Agent to 
2115         choose the resource that is most appropriate at the time. This patch will 
2116         choose the most appropriate image based on device scale factor.
2117
2118         CSSImageSetValue inherits from CSSValueList and behaves a lot like 
2119         CSSImageValue.
2120         * WebCore.xcodeproj/project.pbxproj:
2121         * css/CSSImageSetValue.h: Added.
2122         (WebCore):
2123         (CSSImageSetValue):
2124         (WebCore::CSSImageSetValue::create):
2125         (WebCore::CSSImageSetValue::isPending):
2126         (ImageWithScale):
2127         (WebCore::CSSImageSetValue::compareByScaleFactor):
2128         * css/CSSImageSetValue.cpp: Added.
2129         (WebCore):
2130         (WebCore::CSSImageSetValue::CSSImageSetValue):
2131         (WebCore::CSSImageSetValue::~CSSImageSetValue):
2132         (WebCore::CSSImageSetValue::cachedOrPendingImageSet):
2133         (WebCore::CSSImageSetValue::customCssText):
2134
2135         fillImageSet() iterates through the value list and turns the information into 
2136         a sorted Vector of ImageWithScales (which is a struct containing image URLs 
2137         and scale factors).
2138         (WebCore::CSSImageSetValue::fillImageSet):
2139
2140         cachedImageSet() finds which image is most appropriate based on the device 
2141         scale factor, and it loads only that image. In the future, additional scale 
2142         factors will be taken into account.
2143         (WebCore::CSSImageSetValue::bestImageForScaleFactor):
2144         (WebCore::CSSImageSetValue::cachedImageSet):
2145
2146         parseImageSet() is called everywhere in the CSSParser that a regular image or 
2147         generated image can be found.
2148         * css/CSSParser.cpp:
2149         (WebCore::CSSParser::parseValue):
2150         (WebCore::CSSParser::parseContent):
2151         (WebCore::CSSParser::parseFillImage):
2152         (WebCore::CSSParser::parseBorderImage):
2153         (WebCore):
2154         (WebCore::CSSParser::parseImageSet):
2155         * css/CSSParser.h:
2156
2157         Since CSSImageSetValue is implemented as a value list, 
2158         ApplyPropertyFillLayer::applyValue() needs to be more specific when it's 
2159         looking for a list of multiple URLs.
2160         * css/CSSStyleApplyProperty.cpp:
2161         (WebCore::ApplyPropertyFillLayer::applyValue):
2162
2163         Handle image-set as a valid image value.
2164         * css/CSSStyleSelector.cpp:
2165         (WebCore::CSSStyleSelector::collectMatchingRulesForList):
2166         * css/CSSStyleSelector.h:
2167         (CSSStyleSelector):
2168         * css/CSSValue.cpp:
2169         (WebCore::CSSValue::cssText):
2170         (WebCore::CSSValue::destroy):
2171         * css/CSSValue.h:
2172         (CSSValue):
2173         (WebCore::CSSValue::isImageSetValue):
2174
2175         computeIntrinsicDimensions() now takes an optional scaleFactor parameter that represents the author-enforced "intrinsic" scale factor of the image.
2176         * loader/cache/CachedImage.cpp:
2177         (WebCore::CachedImage::computeIntrinsicDimensions):
2178         * loader/cache/CachedImage.h:
2179         (CachedImage):
2180         * platform/graphics/GeneratedImage.h:
2181         (GeneratedImage):
2182         * platform/graphics/GeneratorGeneratedImage.cpp:
2183         (WebCore::GeneratedImage::computeIntrinsicDimensions):
2184         * platform/graphics/Image.cpp:
2185         (WebCore::Image::computeIntrinsicDimensions):
2186         * platform/graphics/Image.h:
2187         (Image):
2188         * platform/graphics/cg/PDFDocumentImage.cpp:
2189         (WebCore::PDFDocumentImage::computeIntrinsicDimensions):
2190         * platform/graphics/cg/PDFDocumentImage.h:
2191         (PDFDocumentImage):
2192         * svg/graphics/SVGImage.cpp:
2193         (WebCore::SVGImage::computeIntrinsicDimensions):
2194         * svg/graphics/SVGImage.h:
2195         (SVGImage):
2196
2197         Inherits from StyleImage and returns a scaled size for imageSize() and 
2198         computeIntrinsicDimensions().
2199         * rendering/style/StyleCachedImageSet.cpp: Added.
2200         (WebCore):
2201         (WebCore::StyleCachedImageSet::StyleCachedImageSet):
2202         (WebCore::StyleCachedImageSet::cssValue):
2203         (WebCore::StyleCachedImageSet::canRender):
2204         (WebCore::StyleCachedImageSet::isLoaded):
2205         (WebCore::StyleCachedImageSet::errorOccurred):
2206         (WebCore::StyleCachedImageSet::imageSize):
2207         (WebCore::StyleCachedImageSet::imageHasRelativeWidth):
2208         (WebCore::StyleCachedImageSet::imageHasRelativeHeight):
2209         (WebCore::StyleCachedImageSet::computeIntrinsicDimensions):
2210         (WebCore::StyleCachedImageSet::usesImageContainerSize):
2211         (WebCore::StyleCachedImageSet::setContainerSizeForRenderer):
2212         (WebCore::StyleCachedImageSet::addClient):
2213         (WebCore::StyleCachedImageSet::removeClient):
2214         (WebCore::StyleCachedImageSet::image):
2215         * rendering/style/StyleCachedImageSet.h: Added.
2216         (WebCore):
2217         (StyleCachedImageSet):
2218         (WebCore::StyleCachedImageSet::create):
2219         (WebCore::StyleCachedImageSet::data):
2220         (WebCore::StyleCachedImageSet::cachedImage):
2221
2222         Handle image-set.
2223         * rendering/style/StyleImage.h:
2224         (WebCore::StyleImage::isCachedImageSet):
2225         (WebCore::StyleImage::StyleImage):
2226         (StyleImage):
2227         * rendering/style/StylePendingImage.h:
2228         (StylePendingImage):
2229         (WebCore::StylePendingImage::cssImageSetValue):
2230
2231 2012-03-21  David Barton  <dbarton@mathscribe.com>
2232
2233         MathML internals - improve naming in RenderMathMLSquareRoot.cpp and RenderMathMLRoot.cpp
2234         https://bugs.webkit.org/show_bug.cgi?id=81850
2235
2236         Reviewed by Eric Seidel.
2237
2238         This prepares these files for bug fixes, and eventually combining their common code. To
2239         understand this patch, I suggest you start with RenderMathMLSquareRoot.cpp, as it's
2240         simpler than RenderMathMLRoot.cpp.
2241
2242         No new tests. LayoutTests/mathml/presentation/roots.xhtml is thorough enough for this.
2243
2244         * rendering/mathml/RenderMathMLRoot.cpp:
2245         (WebCore):
2246         (WebCore::RenderMathMLRoot::addChild):
2247         (WebCore::RenderMathMLRoot::paint):
2248         (WebCore::RenderMathMLRoot::layout):
2249         * rendering/mathml/RenderMathMLRoot.h:
2250         (WebCore):
2251         (RenderMathMLRoot):
2252         * rendering/mathml/RenderMathMLSquareRoot.cpp:
2253         (WebCore):
2254         (WebCore::RenderMathMLSquareRoot::paint):
2255         (WebCore::RenderMathMLSquareRoot::layout):
2256         * rendering/mathml/RenderMathMLSquareRoot.h:
2257         (WebCore):
2258         (RenderMathMLSquareRoot):
2259         * rendering/mathml/RenderMathMLSubSup.h:
2260         (WebCore):
2261
2262 2012-03-21  Tony Chang  <tony@chromium.org>
2263
2264         refactor flexbox in preparation for flex-line-pack
2265         https://bugs.webkit.org/show_bug.cgi?id=81843
2266
2267         Reviewed by Ojan Vafai.
2268
2269         Replace WrapReverseContext with a vector of LineContexts that contain
2270         the same information, plus values needed for flex-align.
2271
2272         alignChildren has been moved to after all the lines have been
2273         positioned. We want to align children after flex-line-pack has changed
2274         the size of each line to avoid unnecessary layouts.
2275
2276         No new tests, just refactoring.
2277
2278         * rendering/RenderFlexibleBox.cpp:
2279         (WebCore::RenderFlexibleBox::LineContext::LineContext): New struct,
2280         holds information needed for wrap-reverse and aligning children.
2281         (RenderFlexibleBox::LineContext):
2282         (WebCore::RenderFlexibleBox::layoutFlexItems): alignChildren after layout out all the lines rather than after each line.
2283         (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): don't alignChildren
2284         (WebCore::RenderFlexibleBox::alignChildren): align all flex items, not just a line at a time.
2285         (WebCore::RenderFlexibleBox::flipForWrapReverse): Update to use LineContext
2286         * rendering/RenderFlexibleBox.h:
2287
2288 2012-03-21  Ryosuke Niwa  <rniwa@webkit.org>
2289
2290         BDI element should have dir=auto by default
2291         https://bugs.webkit.org/show_bug.cgi?id=68773
2292
2293         Reviewed by Daniel Bates.
2294
2295         Treat bdi elements without dir content attribute as if they have dir=auto per spec:
2296         http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-bdi-element
2297
2298         The patch tries to encapsulate the logic to look for dir content attribute and dir=auto.
2299
2300         It also adds HTMLBDIElement interface (binding remains to use HTMLElement) to set
2301         selfOrAncestorHasDirAutoAttribute flag true by default, which is used by functions like
2302         directionalityIfhasDirAutoAttribute to look for elements with dir=auto. Since dir=auto-ness of bdi
2303         elements can be overridden by dir content attribute, we must change and only change the default value.
2304
2305         Tests: fast/text/international/bdi-dir-default-to-auto-expected.html
2306                fast/text/international/bdi-dir-default-to-auto.html
2307
2308         * GNUmakefile.list.am:
2309         * Target.pri:
2310         * WebCore.gypi:
2311         * WebCore.vcproj/WebCore.vcproj:
2312         * WebCore.xcodeproj/project.pbxproj:
2313         * css/CSSStyleSelector.cpp:
2314         (WebCore::CSSStyleSelector::collectMatchingRulesForList):
2315         * html/HTMLBDIElement.h: Added.
2316         (WebCore):
2317         (HTMLBDIElement):
2318         (WebCore::HTMLBDIElement::create):
2319         (WebCore::HTMLBDIElement::HTMLBDIElement): Sets selfOrAncestorHasDirAutoAttribute to true because
2320         bdi elements are treated as if it has dir=auto by default.
2321         * html/HTMLElement.cpp:
2322         (WebCore::elementAffectsDirectionality): Added. Checks if the specified element is bdi or
2323         has dir content attribute.
2324         (WebCore):
2325         (WebCore::setHasDirAutoFlagRecursively):
2326         (WebCore::HTMLElement::hasDirectionAuto): Added. Checks if the specified element should be treated
2327         as if it has dir=auto (bdi or element with dir=auto).
2328         (WebCore::HTMLElement::directionalityIfhasDirAutoAttribute):
2329         (WebCore::HTMLElement::adjustDirectionalityIfNeededAfterChildAttributeChanged):
2330         (WebCore::HTMLElement::adjustDirectionalityIfNeededAfterChildrenChanged):
2331         * html/HTMLElement.h:
2332         (HTMLElement):
2333         * html/HTMLTagNames.in: Use HTMLBDIElement instead of HTMLElement for constructing bdi element
2334         to set selfOrAncestorHasDirAutoAttribute true but still use HTMLElement for binding.
2335
2336 2012-03-21  Luke Macpherson  <macpherson@chromium.org>
2337
2338         Use CSSPrimitiveValue::convertToLength() in a few places.
2339         https://bugs.webkit.org/show_bug.cgi?id=81492
2340
2341         Reviewed by Eric Seidel.
2342
2343         No new tests - refactoring only.
2344
2345         CSSPrimitiveValue::convertToLength() provides the same functionality that is duplicated
2346         in many places in CSSStyleSelector. This patch removes some of that code duplication.
2347
2348         * css/CSSStyleApplyProperty.cpp:
2349         (WebCore::ApplyPropertyVerticalAlign::applyValue):
2350         * css/CSSStyleSelector.cpp:
2351         (WebCore::CSSStyleSelector::collectMatchingRulesForList):
2352
2353 2012-03-21  Patrick Gansterer  <paroga@webkit.org>
2354
2355         Build fix for ENABLE(SVG) && !ENABLE(FILTERS) after r111601.
2356
2357         * rendering/svg/RenderSVGRoot.cpp:
2358
2359 2012-03-21  Patrick Gansterer  <paroga@webkit.org>
2360
2361         Build fix for !ENABLE(INSPECTOR) after r104831.
2362
2363         * bindings/js/ScriptDebugServer.cpp:
2364         (WebCore::ScriptDebugServer::dispatchDidParseSource):
2365
2366 2012-03-21  Xiaomei Ji  <xji@chromium.org>
2367
2368         visual word movement: using cache to decrease the number of collectLeafBoxesInLogicalOrder on RootInlineBox
2369         https://bugs.webkit.org/show_bug.cgi?id=81408
2370
2371         Reviewed by Ryosuke Niwa.
2372
2373         Cache logically ordered leaf boxes under a particular root box.
2374         Also, move 'Vector<UChar, 1024> string' declared in visualWordPosition() to outside of loop (it is always
2375         clear-ed before use).
2376
2377         * editing/visible_units.cpp:
2378         (CachedLogicallyOrderedLeafBoxes): Add class to cache logically ordered leaf boxes under a particular root box.
2379         (WebCore::CachedLogicallyOrderedLeafBoxes::size):
2380         (WebCore::CachedLogicallyOrderedLeafBoxes::firstBox):
2381         (WebCore):
2382         (WebCore::CachedLogicallyOrderedLeafBoxes::CachedLogicallyOrderedLeafBoxes):
2383         (WebCore::CachedLogicallyOrderedLeafBoxes::previousTextBox):
2384         (WebCore::CachedLogicallyOrderedLeafBoxes::nextTextBox):
2385         (WebCore::CachedLogicallyOrderedLeafBoxes::collectBoxes):
2386         (WebCore::CachedLogicallyOrderedLeafBoxes::boxIndexInLeaves):
2387         (WebCore::logicallyPreviousBox): Pass CachedLogicallyOrderedLeafBoxes object around.
2388         (WebCore::logicallyNextBox):
2389         (WebCore::wordBreakIteratorForMinOffsetBoundary):
2390         (WebCore::wordBreakIteratorForMaxOffsetBoundary):
2391         (WebCore::visualWordPosition):
2392
2393 2012-03-21  Dana Jansens  <danakj@chromium.org>
2394
2395         [chromium] Early out in a new prepareToDraw() step if checkerboarding an accelerated animation in order to skip the frame
2396         https://bugs.webkit.org/show_bug.cgi?id=81437
2397
2398         Reviewed by Adrienne Walker.
2399
2400         Split CCLayerTreeHostImpl::drawLayers() into two phases:
2401         prepareToDraw() and drawLayers().
2402
2403         When calculating a RenderPass, and we checkerboard a quad on a
2404         layer, bubble this info back up to CCLayerTreeHostImpl. If the
2405         layer is transforming in an animation, then abort the prepareToDraw()
2406         phase and cause it to return false back to the thread proxy.
2407
2408         Unit test: CCLayerTreeHostImplTest.prepareToDrawFailsWhenAnimationUsesCheckerboard
2409
2410         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
2411         (WebCore::CCLayerImpl::appendQuads):
2412         * platform/graphics/chromium/cc/CCLayerImpl.h:
2413         (CCLayerImpl):
2414         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
2415         (WebCore::CCLayerTreeHostImpl::calculateRenderPasses):
2416         (WebCore::CCLayerTreeHostImpl::prepareToDraw):
2417         (WebCore):
2418         (WebCore::CCLayerTreeHostImpl::drawLayers):
2419         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
2420         (CCLayerTreeHostImpl):
2421         (FrameData):
2422         * platform/graphics/chromium/cc/CCQuadCuller.cpp:
2423         (WebCore::CCQuadCuller::append):
2424         * platform/graphics/chromium/cc/CCQuadCuller.h:
2425         (CCQuadCuller):
2426         * platform/graphics/chromium/cc/CCRenderPass.cpp:
2427         (WebCore::CCRenderPass::appendQuadsForLayer):
2428         * platform/graphics/chromium/cc/CCRenderPass.h:
2429         (CCRenderPass):
2430         * platform/graphics/chromium/cc/CCScrollbarLayerImpl.cpp:
2431         (WebCore::CCScrollbarLayerImpl::appendQuads):
2432         * platform/graphics/chromium/cc/CCScrollbarLayerImpl.h:
2433         (CCScrollbarLayerImpl):
2434         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
2435         (WebCore::CCSingleThreadProxy::doComposite):
2436         * platform/graphics/chromium/cc/CCSolidColorLayerImpl.cpp:
2437         (WebCore::CCSolidColorLayerImpl::appendQuads):
2438         * platform/graphics/chromium/cc/CCSolidColorLayerImpl.h:
2439         (CCSolidColorLayerImpl):
2440         * platform/graphics/chromium/cc/CCTextureLayerImpl.cpp:
2441         (WebCore::CCTextureLayerImpl::appendQuads):
2442         * platform/graphics/chromium/cc/CCTextureLayerImpl.h:
2443         (CCTextureLayerImpl):
2444         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2445         (WebCore::CCThreadProxy::scheduledActionDrawAndSwap):
2446         * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
2447         (WebCore::CCTiledLayerImpl::appendQuads):
2448         * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
2449         (CCTiledLayerImpl):
2450         * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
2451         (WebCore::CCVideoLayerImpl::appendQuads):
2452         * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
2453         (CCVideoLayerImpl):
2454
2455 2012-03-21  Enrica Casucci  <enrica@apple.com>
2456
2457         WebKitURLWithTitles pasteboard format should support URLs containing Emoji characters.
2458         https://bugs.webkit.org/show_bug.cgi?id=81835
2459         <rdar://problem/11082749>
2460
2461         Reviewed by Brady Eidson.
2462
2463         When writing the URL in the pasteboard for the WebURLWithTitles format,
2464         we use the user visible string instead of the original URL.
2465         In case of URL with Unicode characters, we lose the encoding.
2466         
2467         Added TestWebKitAPI test.
2468
2469         * platform/mac/PasteboardMac.mm:
2470         (WebCore::writeURLForTypes): Writes to the pasteboard the original URL.
2471
2472 2012-03-21  Levi Weintraub  <leviw@chromium.org>
2473
2474         Correct LayoutUnit usage in VisiblePosition.cpp
2475         https://bugs.webkit.org/show_bug.cgi?id=81775
2476
2477         Reviewed by Eric Seidel.
2478
2479         Correcting a mismatch between the .h and .cpp for the definition of localCaretRect,
2480         and properly using LayoutUnits for local coordinates.
2481
2482         No new tests. No change in behavior.
2483
2484         * editing/VisiblePosition.cpp:
2485         (WebCore::VisiblePosition::localCaretRect): Switching to return a LayoutRect, as in the
2486         header. Local coordinates are in LayoutUnits.
2487         (WebCore::VisiblePosition::absoluteCaretBounds): Using LayoutRect for the localCaretRect.
2488         (WebCore::VisiblePosition::lineDirectionPointForBlockDirectionNavigation): Ditto.
2489
2490 2012-03-21  Adam Klein  <adamk@chromium.org>
2491
2492         "this" argument for MutationCallbacks should be the MutationObserver
2493         https://bugs.webkit.org/show_bug.cgi?id=81712
2494
2495         Reviewed by Adam Barth.
2496
2497         Test: fast/mutation/callback-arguments.html
2498
2499         * bindings/js/JSCallbackData.cpp:
2500         (WebCore::JSCallbackData::invokeCallback): Add an overload that takes
2501         an explicit this argument and have the old method call the new one.
2502         * bindings/js/JSCallbackData.h:
2503         (JSCallbackData):
2504         * bindings/js/JSMutationCallbackCustom.cpp:
2505         (WebCore::JSMutationCallback::handleEvent): Call the new overload.
2506         * bindings/v8/custom/V8CustomVoidCallback.cpp:
2507         (WebCore::invokeCallback): Add an overload that takes an explicit this
2508         argument and have the old method call the new one.
2509         * bindings/v8/custom/V8CustomVoidCallback.h:
2510         (WebCore):
2511         * bindings/v8/custom/V8MutationCallbackCustom.cpp:
2512         (WebCore::V8MutationCallback::handleEvent): Call the new overload.
2513
2514 2012-03-21  Alexandru Chiculita  <achicu@adobe.com>
2515
2516         [CSS Shaders] Make CSS Shaders compile on Chromium
2517         https://bugs.webkit.org/show_bug.cgi?id=81435
2518
2519         Reviewed by Stephen White.
2520
2521         This patch enables the CSS Shaders compile time flag, but keeps the runtime flag disabled.
2522         The only way to test the functionality now is to use the overridePreference from dump render tree.
2523
2524         Also part of this patch I fix a layering violation: I removed the "Document" reference from the FECustomFilter.cpp and passed the
2525         HostWindow directly. There should be no problem when the HostWindow changes, because the RenderLayer and the FECustomFilter
2526         get recreated anyway.
2527
2528         No new tests. I've updated the existing custom filter tests to run under Chromium and added the expected results.
2529         I've just added window.layoutTestController.overridePreference("WebKitCSSCustomFilterEnabled", "1") to force 
2530         enable the feature at runtime. 
2531
2532         * loader/cache/CachedResource.cpp: Made CachedResource::ShaderResource report as ResourceRequest::TargetIsSubresource for Chromium.
2533         (WebCore::cachedResourceTypeToTargetType):
2534
2535         * platform/graphics/filters/FECustomFilter.cpp:
2536         (WebCore::FECustomFilter::FECustomFilter): Removed Document and just used the HostWindow directly.
2537         (WebCore::FECustomFilter::create):
2538         (WebCore::FECustomFilter::initializeContext):
2539         (WebCore::FECustomFilter::bindVertexAttribute): There was a typo and instead of using the "size" parameter it always used 4 component attribute.
2540         Other drivers didn't complain about it, but it was clearly a bug.
2541         (WebCore::FECustomFilter::bindProgramAndBuffers): Reading the image back from GPU will flip vertically the framebuffer in Chromium. I've flipped the
2542         projection matrix only on Chromium, so that we get the correct result.
2543
2544         * rendering/FilterEffectRenderer.cpp:
2545         (WebCore::FilterEffectRenderer::build): Passing the HostWindow instead of the Document.
2546
2547 2012-03-21  Mark Pilgrim  <pilgrim@chromium.org>
2548
2549         Realphabetize about webaudio move
2550         https://bugs.webkit.org/show_bug.cgi?id=81825
2551
2552         Reviewed by Adam Barth.
2553
2554         No new tests, all existing tests pass.
2555
2556         * CMakeLists.txt:
2557
2558 2012-03-21  Anders Carlsson  <andersca@apple.com>
2559
2560         Evict tiles from pages in background tabs
2561         https://bugs.webkit.org/show_bug.cgi?id=81829
2562         <rdar://problem/10866152>
2563
2564         Reviewed by Andreas Kling.
2565
2566         When the tile cache for a page is no longer in a window (which happens when it's moved to 
2567         a background tab), schedule a tile revalidation after 4 seconds. This tile revalidation 
2568         will ensure that tiles outside of the visible rect will be dropped.
2569
2570         * platform/graphics/ca/mac/TileCache.h:
2571         (TileCache):
2572         * platform/graphics/ca/mac/TileCache.mm:
2573         (WebCore::TileCache::tileCacheLayerBoundsChanged):
2574         (WebCore::TileCache::setIsInWindow):
2575         (WebCore::TileCache::tileCoverageRect):
2576         (WebCore):
2577         (WebCore::TileCache::scheduleTileRevalidation):
2578         (WebCore::TileCache::revalidateTiles):
2579
2580 2012-03-21  Stephen Chenney  <schenney@chromium.org>
2581
2582         SVG layout leaves objects still needing layout
2583         https://bugs.webkit.org/show_bug.cgi?id=81006
2584
2585         Reviewed by Nikolas Zimmermann.
2586
2587         Change the layout of SVG objects such that resources that trigger
2588         layout of other objects are handled in a distinct pass, and then
2589         objects still requiring layout are laid out again.
2590
2591         Test: svg/custom/delete-text-innerText-crash.html
2592
2593         * rendering/svg/RenderSVGResourceContainer.cpp:
2594         (WebCore::RenderSVGResourceContainer::layout):
2595         * rendering/svg/RenderSVGResourceMarker.cpp:
2596         (WebCore::RenderSVGResourceMarker::layout):
2597         * rendering/svg/RenderSVGRoot.cpp:
2598         (WebCore::RenderSVGRoot::layout):
2599         (WebCore::RenderSVGRoot::addResourceForClientInvalidation):
2600         (WebCore):
2601         * rendering/svg/RenderSVGRoot.h:
2602         (RenderSVGRoot):
2603
2604 2012-03-21  Tim Horton  <timothy_horton@apple.com>
2605
2606         Make use of CG rounded-rect primitives
2607         https://bugs.webkit.org/show_bug.cgi?id=79932
2608         <rdar://problem/9274953>
2609
2610         Reviewed by Simon Fraser.
2611
2612         Portions of patch by Nikolas Zimmermann and Mustafizur Rahaman.
2613
2614         Dispatch to potentially platform-specific rounded rectangle path
2615         construction from addPathForRoundedRect. Make use of this to call
2616         wkCGPathAddRoundedRect on Lion and above, as long as the rounded
2617         corners are all equivalent.
2618
2619         The origin of the stroke dash differs between the bezier approach
2620         and the path added by wkCGPathAddRoundedRect, so Path::addRoundedRect()
2621         takes a new parameter allowing code which is sensitive to stroke dash
2622         origin (i.e. SVG) to fall back to the old behavior if need be.
2623
2624         Make use of the new Path::addRoundedRect() parameter to fall back to
2625         the old (bezier) rounded-rect behavior when constructing a dashed SVG path,
2626         in order to continue complying with the spec.
2627
2628         No new tests, as this is covered by many that use rounded corners,
2629         and is only a performance improvement.
2630
2631         * WebCore.exp.in:
2632         * platform/graphics/Path.cpp:
2633         (WebCore::Path::addRoundedRect):
2634         (WebCore):
2635         (WebCore::Path::addPathForRoundedRect):
2636         * platform/graphics/Path.h:
2637         (Path):
2638         * platform/graphics/cg/PathCG.cpp:
2639         (WebCore::Path::platformAddPathForRoundedRect):
2640         (WebCore):
2641         * platform/mac/WebCoreSystemInterface.h:
2642         * platform/mac/WebCoreSystemInterface.mm:
2643         * rendering/svg/SVGPathData.cpp:
2644         (WebCore::updatePathFromRectElement):
2645
2646 2012-03-21  David Reveman  <reveman@chromium.org>
2647
2648         [Chromium] GL_EXT_occlusion_query_boolean and GL_CHROMIUM_command_buffer_query support.
2649         https://bugs.webkit.org/show_bug.cgi?id=80988
2650
2651         Reviewed by Adrienne Walker.
2652
2653         Expose EXT_occlusion_query API to WebKit compositor. Add
2654         GL_EXT_occlusion_query_boolean and GL_CHROMIUM_command_buffer_query
2655         enums.
2656
2657         * platform/graphics/chromium/Extensions3DChromium.h:
2658         (Extensions3DChromium):
2659
2660 2012-03-21  Tony Chang  <tony@chromium.org>
2661
2662         compute the sign of flexibility for new flexbox
2663         https://bugs.webkit.org/show_bug.cgi?id=81722
2664
2665         Reviewed by Ojan Vafai.
2666
2667         This implements the computation of the sign of flexibility used by the
2668         new flexing algorithm.
2669         http://dev.w3.org/csswg/css3-flexbox/#resolve-the-flexible-lengths
2670
2671         No new tests, we don't use the sign of flexibility yet.
2672
2673         * rendering/RenderFlexibleBox.cpp:
2674         (WebCore::RenderFlexibleBox::layoutFlexItems):
2675         (WebCore::RenderFlexibleBox::computeNextFlexLine): Compute the size
2676         adjusted for min/max as well as not adjusted.
2677         (WebCore::RenderFlexibleBox::resolveFlexibleLengths): Renamed to match
2678         spec text better.
2679         * rendering/RenderFlexibleBox.h: Added enum for flex sign.
2680
2681 2012-03-21  Vsevolod Vlasov  <vsevik@chromium.org>
2682
2683         Web Inspector: Extract WebInspector.UIBreakpoint from WebInspector.Breakpoint.
2684         https://bugs.webkit.org/show_bug.cgi?id=81669
2685
2686         Reviewed by Pavel Feldman.
2687
2688         * inspector/front-end/BreakpointManager.js:
2689         (WebInspector.BreakpointManager.get for):
2690         (WebInspector.BreakpointManager):
2691         (WebInspector.BreakpointManager.prototype.uiSourceCodeAdded):
2692         (WebInspector.BreakpointManager.prototype.uiSourceCodeRemoved):
2693         (WebInspector.BreakpointManager.prototype.breakpointsForUISourceCode):
2694         (WebInspector.BreakpointManager.prototype.setBreakpoint):
2695         (WebInspector.BreakpointManager.prototype.removeBreakpoint):
2696         (WebInspector.BreakpointManager.prototype._innerRemoveBreakpoint):
2697         (WebInspector.BreakpointManager.prototype.removeAllBreakpoints):
2698         (WebInspector.BreakpointManager.prototype._moveBreakpointInUI):
2699         (WebInspector.BreakpointManager.prototype._uiBreakpoints.get this):
2700         (WebInspector.BreakpointManager.prototype._uiBreakpoints):
2701         (WebInspector.BreakpointManager.prototype.get _uiBreakpoint):
2702         (WebInspector.BreakpointManager.prototype._addBreakpointToUI):
2703         (WebInspector.BreakpointManager.prototype._removeBreakpointFromUI):
2704         (WebInspector.BreakpointManager.prototype._breakpoints):
2705         (WebInspector.BreakpointManager.prototype._breakpoint):
2706         (WebInspector.BreakpointManager.prototype._addBreakpointToModel):
2707         (WebInspector.BreakpointManager.prototype._removeBreakpointFromModel):
2708         (WebInspector.BreakpointManager.prototype._forEachBreakpoint):
2709         (WebInspector.BreakpointManager.prototype._setBreakpointInDebugger):
2710         (WebInspector.BreakpointManager.prototype._removeBreakpointFromDebugger):
2711         (WebInspector.BreakpointManager.prototype.debuggerReset):
2712         (WebInspector.Breakpoint.prototype.serialize):
2713         (WebInspector.Breakpoint.prototype.get uiBreakpoint):
2714         (WebInspector.Breakpoint.prototype.createUIBreakpoint):
2715         (WebInspector.Breakpoint.prototype.removeUIBreakpoint):
2716         (WebInspector.UIBreakpoint):
2717         * inspector/front-end/DebuggerPresentationModel.js:
2718         (WebInspector.DebuggerPresentationModel.prototype._handleUISourceCodeListChanged):
2719         (WebInspector.DebuggerPresentationModel.prototype.findBreakpoint):
2720         (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded):
2721         (WebInspector.DebuggerPresentationModel.prototype._breakpointRemoved):
2722         * inspector/front-end/ScriptsPanel.js:
2723
2724 2012-03-21  Anders Carlsson  <andersca@apple.com>
2725
2726         TileCache needs to know if its containing page is in a window
2727         https://bugs.webkit.org/show_bug.cgi?id=81821
2728
2729         Reviewed by Andreas Kling.
2730
2731         This is in preparation for throwing away invisible tiles in background tabs to reduce memory usage.
2732
2733         * page/FrameView.cpp:
2734         (WebCore::FrameView::didMoveOnscreen):
2735         (WebCore::FrameView::willMoveOffscreen):
2736         * page/Page.cpp:
2737         (WebCore::Page::Page):
2738         (WebCore::Page::didMoveOnscreen):
2739         (WebCore::Page::willMoveOffscreen):
2740         * page/Page.h:
2741         (WebCore::Page::isOnscreen):
2742         (Page):
2743         * platform/graphics/TiledBacking.h:
2744         (TiledBacking):
2745         * platform/graphics/ca/mac/TileCache.h:
2746         (TileCache):
2747         * platform/graphics/ca/mac/TileCache.mm:
2748         (WebCore::TileCache::TileCache):
2749         (WebCore::TileCache::setIsInWindow):
2750         (WebCore):
2751         * rendering/RenderLayerBacking.cpp:
2752         (WebCore::RenderLayerBacking::RenderLayerBacking):
2753
2754 2012-03-21  Xingnan Wang  <xingnan.wang@intel.com>
2755
2756         Web audio layout test failed in debug with an ASSERT error in ReverbConvolverStage.cpp
2757         https://bugs.webkit.org/show_bug.cgi?id=81744
2758
2759         Reviewed by Chris Rogers.
2760
2761         * platform/audio/ReverbConvolverStage.cpp:
2762         (WebCore::ReverbConvolverStage::ReverbConvolverStage):
2763
2764 2012-03-21  Xiaomei Ji  <xji@chromium.org>
2765
2766         [chromium] Font fallback in cr-win is wrong for string contains zero-width-space.
2767         https://bugs.webkit.org/show_bug.cgi?id=79961
2768
2769         Reviewed by Adam Barth.
2770
2771         Treat zero-width-space (\u200B) as true for treatAsZeroWidthSpaceInComplexScipt().
2772
2773         * platform/graphics/Font.h:
2774         (WebCore::Font::treatAsZeroWidthSpaceInComplexScript):
2775         * platform/graphics/mac/ComplexTextController.cpp:
2776         (WebCore::ComplexTextController::adjustGlyphsAndAdvances):
2777         * platform/graphics/win/UniscribeController.cpp:
2778         (WebCore::UniscribeController::shapeAndPlaceItem):
2779
2780 2012-03-21  Patrick Gansterer  <paroga@webkit.org>
2781
2782         Build fix for !ENABLE(INSPECTOR) after r111005.
2783
2784         * inspector/ContentSearchUtils.h:
2785
2786 2012-03-21  Ulan Degenbaev  <ulan@chromium.org>
2787
2788         [V8] V8GCForContextDispose should indicate whether a context is disposed for the main frame or not
2789         https://bugs.webkit.org/show_bug.cgi?id=81200
2790
2791         Reviewed by Adam Barth.
2792
2793         Pass a hint to V8::IdleNotification that requests more aggressive GC
2794         when a main frame context is disposed and requests incremental GC otherwise.
2795
2796         * bindings/v8/V8DOMWindowShell.cpp:
2797         (WebCore::V8DOMWindowShell::disposeContextHandles):
2798         * bindings/v8/V8GCForContextDispose.cpp:
2799         (WebCore::V8GCForContextDispose::V8GCForContextDispose):
2800         (WebCore::V8GCForContextDispose::notifyContextDisposed):
2801         (WebCore::V8GCForContextDispose::pseudoIdleTimerFired):
2802         * bindings/v8/V8GCForContextDispose.h:
2803         (V8GCForContextDispose):
2804
2805 2012-03-21  Nat Duca  <nduca@chromium.org>
2806
2807         [chromium] CCThreadProxy must initialize frameBeginTime to monotonicallyIncreasingTime rather than zero
2808         https://bugs.webkit.org/show_bug.cgi?id=81790
2809
2810         Reviewed by James Robinson.
2811
2812         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2813         (WebCore::CCThreadProxy::scheduledActionBeginFrame):
2814
2815 2012-03-21  Xingnan Wang  <xingnan.wang@intel.com>
2816
2817         Add multichannel support in RealtimeAnalyser
2818         https://bugs.webkit.org/show_bug.cgi?id=81745
2819
2820         Reviewed by Chris Rogers.
2821
2822         * Modules/webaudio/RealtimeAnalyser.cpp:
2823         (WebCore::RealtimeAnalyser::writeInput):
2824         (WebCore):
2825
2826 2012-03-21  Eric Carlson  <eric.carlson@apple.com>
2827
2828         Removing HTMLTrackElement does not delete TextTrack
2829         https://bugs.webkit.org/show_bug.cgi?id=80873
2830
2831         Reviewed by Antti Koivisto.
2832
2833         No new tests, but media/track/track-language-preference.html has been updated
2834         to test this fix.
2835
2836         * html/HTMLMediaElement.cpp:
2837         (WebCore::HTMLMediaElement::didAddTrack): Renamed from trackWasAdded.
2838         (WebCore::HTMLMediaElement::willRemoveTrack): Renamed from trackWasRemoved because it is
2839         called before the track is removed, to allow the TextTrack to be removed.
2840         * html/HTMLMediaElement.h:
2841
2842         * html/HTMLTrackElement.cpp:
2843         (WebCore::HTMLTrackElement::insertedIntoTree): Renamed from insertedIntoDocument
2844         (WebCore::HTMLTrackElement::willRemove): Renamed from removedFromDocument.
2845         * html/HTMLTrackElement.h:
2846
2847         * html/track/LoadableTextTrack.cpp:
2848         (WebCore::LoadableTextTrack::trackElementIndex): Don't include tracks that are not in the
2849         document in the calcualtion.
2850
2851 2012-03-21  Zeno Albisser  <zeno@webkit.org>
2852
2853         [Qt][Mac] ranlib segfaults when creating symbol tables for libWebCore.a.
2854         https://bugs.webkit.org/show_bug.cgi?id=81750
2855
2856         Building WebCore on mac currently creates an archive that is bigger than
2857         4GB. But ranlib fails to create a symbol table for such a big archive,
2858         even on 64bit machines.
2859         Therefore we start using SVGAllInOne.cpp when building debug
2860         on mac. This reduces the size of the archive by about 300MB.
2861
2862         Reviewed by Tor Arne Vestbø.
2863
2864         * Target.pri:
2865
2866 2012-03-21  Tommy Widenflycht  <tommyw@google.com>
2867
2868         [chromium] MediaStream API (JSEP): Introducing WebSessionDescription and WebIceCandidate
2869         https://bugs.webkit.org/show_bug.cgi?id=81339
2870
2871         Reviewed by Adam Barth.
2872
2873         Not possible to test until the entire JSEP feature is commited.
2874
2875         * Modules/mediastream/IceCandidate.cpp:
2876         (WebCore::IceCandidate::toSdp):
2877         * Modules/mediastream/SessionDescription.cpp:
2878         (WebCore::SessionDescription::toSdp):
2879         * platform/mediastream/IceCandidateDescriptor.cpp:
2880         (WebCore::IceCandidateDescriptor::toSDP):
2881         * platform/mediastream/IceCandidateDescriptor.h:
2882         (IceCandidateDescriptor):
2883         * platform/mediastream/MediaStreamCenter.cpp:
2884         (WebCore::MediaStreamCenter::constructSDP):
2885         * platform/mediastream/MediaStreamCenter.h:
2886         (MediaStreamCenter):
2887         * platform/mediastream/SessionDescriptionDescriptor.cpp:
2888         (WebCore::SessionDescriptionDescriptor::SessionDescriptionDescriptor):
2889         (WebCore::SessionDescriptionDescriptor::toSDP):
2890         (WebCore::SessionDescriptionDescriptor::initialSDP):
2891         * platform/mediastream/SessionDescriptionDescriptor.h:
2892         (SessionDescriptionDescriptor):
2893
2894 2012-03-21  Yuta Kitamura  <yutak@chromium.org>
2895
2896         Use RFC version of WebSocket protocol by default
2897         https://bugs.webkit.org/show_bug.cgi?id=81718
2898
2899         Reviewed by Kent Tamura.
2900
2901         Flip the default value of Settings::m_useHixie76WebSocketProtocol so WebKit ports will use
2902         RFC version of WebSocket protocol by default.
2903
2904         All the existing ports already use the RFC protocol as of now, so this change will not make
2905         any impact (hopefully).
2906
2907         No new tests. No change in functionality.
2908
2909         * page/Settings.cpp:
2910         (WebCore::Settings::Settings):
2911
2912 2012-03-21  Andrey Kosyakov  <caseq@chromium.org>
2913
2914         Web Inspector: only show JS event listeners in Event Listeners tab of Elements panel
2915         https://bugs.webkit.org/show_bug.cgi?id=81798
2916
2917         Reviewed by Pavel Feldman.
2918
2919         * bindings/js/JSInjectedScriptHostCustom.cpp:
2920         (WebCore::getJSListenerFunctions):
2921         * bindings/js/ScriptEventListener.cpp:
2922         (WebCore::eventListenerHandlerBody):
2923         (WebCore::eventListenerHandlerLocation):
2924         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
2925         (WebCore::getJSListenerFunctions):
2926         * inspector/InspectorDOMAgent.cpp:
2927         (WebCore::InspectorDOMAgent::getEventListeners):
2928
2929 2012-03-21  Andrey Kosyakov  <caseq@chromium.org>
2930
2931         EventListener::Type enum has unused member InspectorDOMAgentType
2932         https://bugs.webkit.org/show_bug.cgi?id=81794
2933
2934         Reviewed by Pavel Feldman.
2935
2936         * dom/EventListener.h:
2937
2938 2012-03-21  Tom Hudson  <tomhudson@google.com>
2939
2940         Incremental cleanup of BitmapImage: inlined virtual functions
2941         https://bugs.webkit.org/show_bug.cgi?id=81688
2942
2943         Reviewed by James Robinson.
2944
2945         No change in functionality, so no new tests.
2946
2947         Move virtual functions defined in headers into .cpp files.
2948
2949         * WebCore.gypi:
2950         * platform/graphics/BitmapImage.cpp:
2951         (WebCore::BitmapImage::isBitmapImage):
2952         (WebCore):
2953         (WebCore::BitmapImage::hasSingleSecurityOrigin):
2954         (WebCore::BitmapImage::nativeImageForCurrentFrame):
2955         (WebCore::BitmapImage::currentFrameHasAlpha):
2956         (WebCore::BitmapImage::notSolidColor):
2957         (WebCore::BitmapImage::decodedSize):
2958         (WebCore::BitmapImage::mayFillWithSolidColor):
2959         (WebCore::BitmapImage::solidColor):
2960         * platform/graphics/BitmapImage.h:
2961         (BitmapImage):
2962         * platform/graphics/skia/BitmapImageSingleFrameSkia.cpp: Added.
2963         (WebCore):
2964         (WebCore::BitmapImageSingleFrameSkia::isBitmapImage):
2965         (WebCore::BitmapImageSingleFrameSkia::currentFrameHasAlpha):
2966         (WebCore::BitmapImageSingleFrameSkia::size):
2967         (WebCore::BitmapImageSingleFrameSkia::destroyDecodedData):
2968         (WebCore::BitmapImageSingleFrameSkia::decodedSize):
2969         (WebCore::BitmapImageSingleFrameSkia::nativeImageForCurrentFrame):
2970         (WebCore::BitmapImageSingleFrameSkia::notSolidColor):
2971         * platform/graphics/skia/BitmapImageSingleFrameSkia.h:
2972         (BitmapImageSingleFrameSkia):
2973
2974 2012-03-21  Alexey Proskuryakov  <ap@apple.com>
2975
2976         Remove obsolete File attributes
2977         https://bugs.webkit.org/show_bug.cgi?id=79383
2978
2979         Reviewed by Hajime Morita.
2980
2981         * bindings/objc/PublicDOMInterfaces.h:
2982         * fileapi/File.h:
2983         * fileapi/File.idl:
2984         Removed fileName and fileSize, they have different names now.
2985
2986         * html/FileInputType.cpp:
2987         (WebCore::FileInputType::appendFormData):
2988         (WebCore::FileInputType::getTypeSpecificValue):
2989         (WebCore::FileInputType::defaultToolTip):
2990         Updated to use new function names.
2991
2992 2012-03-21  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2993
2994         TiledBackingStore: Create the first round of tiles synchronously after setting the visible rect.
2995         https://bugs.webkit.org/show_bug.cgi?id=81762
2996
2997         Reviewed by Kenneth Rohde Christiansen.
2998
2999         The first round of tiles should cover completely the visible rect.
3000         Creating the tiles synchronously allows us to get the new tiles immediately
3001         and prevents an extra AC layers sync to be able to remove the old tiles.
3002
3003         At some point it might also make sense to remove the tile creation timer
3004         completely.
3005
3006         * platform/graphics/TiledBackingStore.cpp:
3007         (WebCore::TiledBackingStore::coverWithTilesIfNeeded):
3008
3009 2012-03-19  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3010
3011         TiledBackingStore: When checking if the visible area is covered, only convert to scaled coordinates once.
3012         https://bugs.webkit.org/show_bug.cgi?id=81519
3013
3014         Reviewed by Kenneth Rohde Christiansen.
3015
3016         Both visibleRect and coverageRatio call mapFromContents on the input rect,
3017         this woulc cause the coverageRatio to never reach 1.0 when the contents is
3018         scaled up.
3019
3020         * platform/graphics/TiledBackingStore.cpp:
3021         (WebCore::TiledBackingStore::visibleAreaIsCovered):
3022
3023 2012-03-21  Mao Yujie  <yujie.mao@intel.com>
3024
3025         MediaStream API: Need to support MediaStream constructor for JSC
3026         https://bugs.webkit.org/show_bug.cgi?id=78781
3027
3028         Reviewed by Adam Barth.
3029
3030         No new tests.
3031
3032         * Modules/mediastream/DOMWindowMediaStream.idl:
3033         * bindings/generic/RuntimeEnabledFeatures.h:
3034         (WebCore::RuntimeEnabledFeatures::webkitMediaStreamEnabled):
3035
3036 2012-03-21  Philip Rogers  <pdr@google.com>
3037
3038         Skip building resources if SVGTRef is not in a document
3039         https://bugs.webkit.org/show_bug.cgi?id=81473
3040
3041         Reviewed by Nikolas Zimmermann.
3042
3043         We can skip the building of pending resources in SVGTRef if we're not
3044         yet in a document. This mirrors the nearly identical logic in
3045         SVGUseElement::buildPendingResource() and
3046         SVGFEImageElement::buildPendingResource().
3047
3048         Test: http/tests/svg/tref-adoptNode-crash.html
3049
3050         * svg/SVGTRefElement.cpp:
3051         (WebCore::SVGTRefElement::buildPendingResource):
3052
3053 2012-03-21  Sami Kyostila  <skyostil@chromium.org>
3054
3055         [chromium] Use floating point scroll deltas for layers
3056         https://bugs.webkit.org/show_bug.cgi?id=81546
3057
3058         Reviewed by James Robinson.
3059
3060         Use floating point scroll deltas for layers instead of integral scroll
3061         deltas. This is because due to page scaling it may be necessary to
3062         scroll layers in sub-CSS-pixel steps to avoid visible jumps. When the
3063         floating point scroll offset is committed to the main thread, it is
3064         truncated to integer, but the fractional part is kept on the CC side to
3065         make sure fractional scroll offsets are accumulated correctly over
3066         multiple commits.
3067
3068         Test: CCLayerTreeHostTestFractionalScroll
3069
3070         * platform/graphics/FloatPoint.h:
3071         (WebCore::toSize):
3072         (WebCore):
3073         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
3074         (WebCore::CCLayerImpl::scrollBy):
3075         (WebCore::CCLayerImpl::setScrollDelta):
3076         * platform/graphics/chromium/cc/CCLayerImpl.h:
3077         (WebCore::CCLayerImpl::scrollDelta):
3078         (CCLayerImpl):
3079         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
3080         (WebCore::CCLayerTreeHostImpl::startPageScaleAnimation):
3081         (WebCore::CCLayerTreeHostImpl::adjustScrollsForPageScaleChange):
3082         (WebCore::CCLayerTreeHostImpl::processScrollDeltas):
3083         (WebCore::CCLayerTreeHostImpl::animatePageScale):
3084
3085 2012-03-21  Li Yin  <li.yin@intel.com>
3086
3087         [WebSocket]The Sec-WebSocket-Accept MUST NOT appear more than once in an HTTP response
3088         https://bugs.webkit.org/show_bug.cgi?id=81655
3089
3090         Reviewed by Adam Barth.
3091
3092         Test: http/tests/websocket/tests/hybi/handshake-fail-by-more-accept-header.html
3093
3094         * Modules/websockets/WebSocketHandshake.cpp:
3095         (WebCore::WebSocketHandshake::readHTTPHeaders):
3096
3097 2012-03-21  Alexei Filippov  <alexeif@chromium.org>
3098
3099         Web Inspector: Speedup heap snapshot loading.
3100         https://bugs.webkit.org/show_bug.cgi?id=81788
3101
3102         Reviewed by Yury Semikhatsky.
3103
3104         * inspector/front-end/HeapSnapshot.js:
3105         (WebInspector.HeapSnapshotLoader.prototype._parseNodes):
3106
3107 2012-03-21  Pavel Feldman  <pfeldman@chromium.org>
3108
3109         Web Inspector: get rid of isInEditMode, use isBeingEdited on particular element.
3110         https://bugs.webkit.org/show_bug.cgi?id=81766
3111
3112         Reviewed by Yury Semikhatsky.
3113
3114         We should check event target and its ancestors for being edited, not use some
3115         global property. This change also introduces Event.prototype.consume so that we
3116         were consistently consuming events.
3117
3118         * inspector/front-end/AdvancedSearchController.js:
3119         (WebInspector.SearchView.prototype._onKeyDown):
3120         * inspector/front-end/BreakpointsSidebarPane.js:
3121         (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._breakpointCheckboxClicked):
3122         * inspector/front-end/CSSSelectorProfileView.js:
3123         * inspector/front-end/Checkbox.js:
3124         (WebInspector.Checkbox.prototype.addEventListener):
3125         * inspector/front-end/ConsoleView.js:
3126         (WebInspector.ConsoleView.prototype._enterKeyPressed):
3127         (WebInspector.ConsoleGroup.prototype._titleClicked):
3128         * inspector/front-end/ContextMenu.js:
3129         (WebInspector.ContextMenu.prototype.show):
3130         * inspector/front-end/DataGrid.js:
3131         (WebInspector.DataGrid.prototype._keyDown):
3132         * inspector/front-end/DatabaseQueryView.js:
3133         (WebInspector.DatabaseQueryView.prototype._enterKeyPressed):
3134         * inspector/front-end/DetailedHeapshotView.js:
3135         (WebInspector.DetailedHeapshotView.prototype._mouseDownInContentsGrid):
3136         (WebInspector.DetailedHeapshotView.prototype._startRetainersHeaderDragging):
3137         (WebInspector.DetailedHeapshotView.prototype._retainersHeaderDragging):
3138         (WebInspector.DetailedHeapshotView.prototype._endRetainersHeaderDragging):
3139         * inspector/front-end/Dialog.js:
3140         (WebInspector.Dialog.prototype._onKeyDown):
3141         * inspector/front-end/Drawer.js:
3142         (WebInspector.Drawer.prototype._startStatusBarDragging):
3143         (WebInspector.Drawer.prototype._statusBarDragging):
3144         (WebInspector.Drawer.prototype._endStatusBarDragging):
3145         * inspector/front-end/EventListenersSidebarPane.js:
3146         (WebInspector.EventListenersSidebarPane.get if):
3147         * inspector/front-end/HelpScreen.js:
3148         (WebInspector.HelpScreen.prototype._onKeyDown):
3149         * inspector/front-end/InspectorView.js:
3150         (WebInspector.InspectorView.prototype._keyDown):
3151         * inspector/front-end/MetricsSidebarPane.js:
3152         (WebInspector.MetricsSidebarPane.prototype._highlightDOMNode):
3153         * inspector/front-end/NetworkPanel.js:
3154         * inspector/front-end/Object.js:
3155         (WebInspector.Event.prototype.preventDefault):
3156         (WebInspector.Event.prototype.consume):
3157         * inspector/front-end/ObjectPropertiesSection.js:
3158         (WebInspector.ObjectPropertyTreeElement.prototype._promptKeyDown):
3159         * inspector/front-end/ProfileView.js:
3160         * inspector/front-end/SearchController.js:
3161         (WebInspector.SearchController.prototype._onKeyDown):
3162         * inspector/front-end/Section.js:
3163         (WebInspector.Section.prototype.handleClick):
3164         * inspector/front-end/Settings.js:
3165         (WebInspector.ExperimentsSettings):
3166         * inspector/front-end/SoftContextMenu.js:
3167         (.WebInspector.SoftContextMenu.prototype.show):
3168         (.WebInspector.SoftContextMenu.prototype._menuItemMouseDown):
3169         (.WebInspector.SoftContextMenu.prototype._menuKeyDown):
3170         (.WebInspector.SoftContextMenu.prototype._discardMenu):
3171         * inspector/front-end/Spectrum.js:
3172         (WebInspector.Spectrum.draggable.consume):
3173         (WebInspector.Spectrum.draggable.start):
3174         (WebInspector.Spectrum.draggable.stop):
3175         (WebInspector.Spectrum.draggable):
3176         (WebInspector.Spectrum.prototype._onKeyDown):
3177         * inspector/front-end/StylesSidebarPane.js:
3178         (WebInspector.StylesSidebarPane.muteEventListener):
3179         (WebInspector.StylesSidebarPane):
3180         (WebInspector.StylesSidebarPane.prototype.set _createNewRule):
3181         (WebInspector.StylesSidebarPane.prototype._toggleElementStatePane):
3182         (WebInspector.StylePropertiesSection.prototype._handleEmptySpaceClick):
3183         (WebInspector.StylePropertiesSection.prototype._handleSelectorClick):
3184         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.):
3185         (WebInspector.StylePropertyTreeElement.prototype):
3186         * inspector/front-end/TextPrompt.js:
3187         (WebInspector.TextPrompt.prototype.onKeyDown):
3188         (WebInspector.TextPromptWithHistory.prototype.defaultKeyHandler):
3189         (WebInspector.TextPrompt.SuggestBox.prototype._onItemMouseDown):
3190         * inspector/front-end/TextViewer.js:
3191         (WebInspector.TextViewer.prototype._handleKeyDown):
3192         * inspector/front-end/Toolbar.js:
3193         (WebInspector.ToolbarDropdown.prototype._onKeyDown):
3194         * inspector/front-end/UIUtils.js:
3195         (WebInspector.isBeingEdited):
3196         (WebInspector.startEditing):
3197         * inspector/front-end/View.js:
3198         (WebInspector.View.prototype._doLoadCSS):
3199         * inspector/front-end/WatchExpressionsSidebarPane.js:
3200         (WebInspector.WatchExpressionsSidebarPane.prototype._addButtonClicked):
3201         (WebInspector.WatchExpressionsSidebarPane.prototype._refreshButtonClicked):
3202         * inspector/front-end/inspector.js:
3203         (WebInspector.documentClick.followLink):
3204         (WebInspector.documentClick):
3205         (WebInspector.documentKeyDown):
3206         (WebInspector.postDocumentKeyDown):
3207         (WebInspector.addMainEventListeners):
3208         * inspector/front-end/treeoutline.js:
3209         (TreeOutline.prototype._treeKeyPress):
3210         (TreeOutline.prototype._treeKeyDown):
3211         (TreeOutline.prototype._searchInputKeyDown):
3212         (TreeElement.treeElementToggled):
3213         (TreeElement.prototype.selectOnMouseDown):
3214         * inspector/front-end/utilities.js:
3215         (Event.prototype.consume):
3216
3217 2012-03-21  Yury Semikhatsky  <yurys@chromium.org>
3218
3219         Web Inspector: event listener section doesn't show all event listeners of the element ancestors
3220         https://bugs.webkit.org/show_bug.cgi?id=81782
3221
3222         Event listeners section now contains all event listeners for the selected
3223         element ancestors chain (in case option "All Nodes" is selected).
3224
3225         Reviewed by Pavel Feldman.
3226
3227         * inspector/InspectorDOMAgent.cpp:
3228         (WebCore::InspectorDOMAgent::getEventListenersForNode):
3229         * inspector/front-end/EventListenersSidebarPane.js:
3230         (WebInspector.EventListenersSidebarPane.prototype.update.callback):
3231         (WebInspector.EventListenersSidebarPane.prototype.update):
3232         (WebInspector.EventListenersSidebarPane.prototype):
3233
3234 2012-03-21  Ilya Tikhonovsky  <loislo@chromium.org>
3235
3236         Web Inspector: HeapSnapshot: move all builders and calculation calls to HeapSnapshot._init function.
3237         https://bugs.webkit.org/show_bug.cgi?id=81784
3238
3239         Reviewed by Yury Semikhatsky.
3240
3241         * inspector/front-end/HeapSnapshot.js:
3242         (WebInspector.HeapSnapshot.prototype._init):
3243         (WebInspector.HeapSnapshot.prototype.dispose):
3244         (WebInspector.HeapSnapshot.prototype._retainersForNode):
3245         (WebInspector.HeapSnapshot.prototype._dominatedNodesOfNode):
3246         (WebInspector.HeapSnapshot.prototype._flagsOfNode):
3247         (WebInspector.HeapSnapshot.prototype.aggregates):
3248         (WebInspector.HeapSnapshot.prototype._buildRetainers):
3249         (WebInspector.HeapSnapshot.prototype.get nodeIndexes):
3250
3251 2012-03-21  Jessie Berlin  <jberlin@apple.com>
3252
3253         WTF headers should be in $(ConfigurationBuildDir)\include\private\wtf, not
3254         $(ConfigurationBuildDir)\include\private\JavaScriptCore\wtf.
3255         https://bugs.webkit.org/show_bug.cgi?id=81739
3256
3257         Reviewed by Dan Bernstein.
3258
3259         * WebCore.vcproj/WebCore.vcproj:
3260         Look for AtomicString.cpp, StringBuilder.cpp, StringImpl.cpp, and WTFString.cpp in the wtf
3261         subdirectory of the build output, not the JavaScriptCore/wtf subdirectory.
3262
3263 2012-03-21  Jonathan Dong  <jonathan.dong@torchmobile.com.cn>
3264
3265         [BlackBerry] Credential save and autofill implemetation
3266         https://bugs.webkit.org/show_bug.cgi?id=80401
3267
3268         Reviewed by Rob Buis.
3269
3270         Added interface function authenticationChallenge() and
3271         notifyShouldSaveCredential() into PageClientBlackBerry.
3272         As this class is our platform specific interface,
3273         by doing this we don't need to add an interface function
3274         in class FrameLoaderClient which is a platform
3275         independent interface.
3276
3277         No new tests.
3278
3279         * platform/blackberry/PageClientBlackBerry.h:
3280         (WebCore):
3281         * platform/network/blackberry/NetworkJob.cpp:
3282         (WebCore::NetworkJob::sendRequestWithCredentials):
3283
3284 2012-03-21  Ilya Tikhonovsky  <loislo@chromium.org>
3285
3286         Web Inspector: HeapProfiler: DOM node id can overflow Int32.
3287         https://bugs.webkit.org/show_bug.cgi?id=81776
3288
3289         Reviewed by Pavel Feldman.
3290
3291         * inspector/front-end/HeapSnapshot.js:
3292         (WebInspector.Uint32Array):
3293         (WebInspector.HeapSnapshotLoader.prototype.pushJSONChunk):
3294         (WebInspector.HeapSnapshot.prototype._buildReverseIndex.var):
3295         (WebInspector.HeapSnapshot.prototype._buildReverseIndex):
3296         (WebInspector.HeapSnapshot.prototype._buildNodeIndex):
3297
3298 2012-03-21  Tim Dresser  <tdresser@chromium.org>
3299
3300         [chromium] Increase size of Combo Box Options for touch and high DPI devices
3301         https://bugs.webkit.org/show_bug.cgi?id=80027
3302
3303         Reviewed by Darin Fisher.
3304
3305         Scale Combo box popups by defaultDeviceScaleFactor, and add padding to
3306         <option> elements when touch is enabled.
3307
3308         Manually tested with --default-device-scale-factor=1,2 and unset.
3309         Each of these were tested with RuntimeEnabledFeatures::touchEnabled
3310         set to true and false.
3311
3312         * platform/chromium/PopupListBox.cpp:
3313         (WebCore::PopupListBox::paint):
3314         (WebCore::PopupListBox::paintRow):
3315         (WebCore::PopupListBox::getRowHeight):
3316         * platform/chromium/PopupListBox.h:
3317         (PopupContainerSettings):
3318         * platform/chromium/PopupMenuChromium.cpp:
3319         (WebCore):
3320         (WebCore::PopupMenuChromium::show):
3321         * platform/chromium/PopupMenuChromium.h:
3322         (WebCore::PopupMenuChromium::optionPaddingForTouch):
3323         (WebCore::PopupMenuChromium::setOptionPaddingForTouch):
3324         (PopupMenuChromium):
3325         * rendering/RenderMenuList.cpp:
3326         (WebCore::RenderMenuList::showPopup):
3327
3328 2012-03-21  Takashi Toyoshima  <toyoshim@chromium.org>
3329
3330         [Chromium] [WebSocket] provide WebFrameClient with a chance of
3331         accessing to opening WebSocketStreamHandle.
3332         https://bugs.webkit.org/show_bug.cgi?id=78459
3333
3334         Reviewed by Kent Tamura and Darin Fisher.
3335
3336         Add willOpenSocketStream client function to WebFrameClient with an
3337         argument representing an opening SocketStreamHandle.
3338         These mechanisms provide embedders with a chance to bind arbitrary
3339         data to a WebSocketStreamHandle from WebFrameClient to which the
3340         WebSocket object having the WebSocketStreamHandle belongs.
3341
3342         No new tests because this change just provide mechanisms to embedders.
3343
3344         * Modules/websockets/WebSocketChannel.cpp: Implement willOpenSocketStream to call a client function in WebFrameClient.
3345         (WebCore::WebSocketChannel::willOpenSocketStream):
3346         (WebCore):
3347         * Modules/websockets/WebSocketChannel.h: Add willOpenSocketStream declaration.
3348         (WebSocketChannel):
3349         * loader/FrameLoaderClient.h: Add dispatchWillOpenSocketStream declaration.
3350         (WebCore):
3351         (FrameLoaderClient):
3352         (WebCore::FrameLoaderClient::dispatchWillOpenSocketStream):
3353         * platform/network/SocketStreamHandleClient.h: Add willOpenSocketStream declaration.
3354         (WebCore::SocketStreamHandleClient::willOpenSocketStream):
3355
3356 2012-03-21  Vineet Chaudhary  <rgf748@motorola.com>
3357
3358         https://bugs.webkit.org/show_bug.cgi?id=81761
3359         Fix Gobject binding for sequence<T> for function return type.
3360
3361         Reviewed by Kentaro Hara.
3362
3363         No new tests.
3364
3365         * bindings/scripts/CodeGeneratorGObject.pm:
3366         (SkipFunction): Skip function with sequence<T> return type.
3367         * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
3368         (webkit_dom_test_obj_method_with_sequence_arg):
3369         * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
3370
3371 2012-03-21  Andrey Kosyakov  <caseq@chromium.org>
3372
3373         Unreviewed build fix for r111529.
3374
3375         * inspector/InjectedScriptHost.h:
3376         (WebCore):
3377
3378 2012-03-21  Sheriff Bot  <webkit.review.bot@gmail.com>
3379
3380         Unreviewed, rolling out r111497, r111506, r111508, and
3381         r111513.
3382         http://trac.webkit.org/changeset/111497
3383         http://trac.webkit.org/changeset/111506
3384         http://trac.webkit.org/changeset/111508
3385         http://trac.webkit.org/changeset/111513
3386         https://bugs.webkit.org/show_bug.cgi?id=81774
3387
3388         It broke 2 tests on all platform (Requested by Ossy on
3389         #webkit).
3390
3391         * css/CSSStyleSelector.cpp:
3392         (WebCore::CSSStyleSelector::collectMatchingRulesForList):
3393         * css/SelectorChecker.cpp:
3394         (WebCore::SelectorChecker::checkOneSelector):
3395         * html/HTMLKeygenElement.cpp:
3396         (WebCore::HTMLKeygenElement::HTMLKeygenElement):
3397         * html/HTMLOptionElement.cpp:
3398         (WebCore::HTMLOptionElement::HTMLOptionElement):
3399         (WebCore::HTMLOptionElement::create):
3400         (WebCore::HTMLOptionElement::attach):
3401         (WebCore::HTMLOptionElement::detach):
3402         (WebCore::HTMLOptionElement::formControlType):
3403         (WebCore):
3404         (WebCore::HTMLOptionElement::parseAttribute):
3405         (WebCore::HTMLOptionElement::childrenChanged):
3406         (WebCore::HTMLOptionElement::insertedIntoTree):
3407         * html/HTMLOptionElement.h:
3408         (HTMLOptionElement):
3409         (WebCore::HTMLOptionElement::ownElementDisabled):
3410         * html/HTMLTagNames.in:
3411
3412 2012-03-21  Andrey Kosyakov  <caseq@chromium.org>
3413
3414         Web Inspector: expose getEventListeners() to console command line API
3415         https://bugs.webkit.org/show_bug.cgi?id=81658
3416
3417         Reviewed by Yury Semikhatsky.
3418
3419         Test: inspector/console/command-line-api-getEventListeners.html
3420
3421         * bindings/js/JSInjectedScriptHostCustom.cpp:
3422         (WebCore::JSInjectedScriptHost::functionDetails):
3423         (WebCore):
3424         (WebCore::getJSListenerFunctions):
3425         (WebCore::JSInjectedScriptHost::getEventListeners):
3426         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
3427         (WebCore::getJSListenerFunctions):
3428         (WebCore):
3429         (WebCore::V8InjectedScriptHost::getEventListenersCallback):
3430         * inspector/InjectedScriptHost.cpp:
3431         (WebCore::InjectedScriptHost::InjectedScriptHost):
3432         (WebCore::InjectedScriptHost::disconnect):
3433         (WebCore::InjectedScriptHost::getEventListenersImpl):
3434         (WebCore):
3435         * inspector/InjectedScriptHost.h:
3436         (WebCore):
3437         (WebCore::InjectedScriptHost::init):
3438         (InjectedScriptHost):
3439         * inspector/InjectedScriptHost.idl:
3440         * inspector/InjectedScriptSource.js:
3441         (.):
3442         * inspector/InspectorController.cpp:
3443         (WebCore::InspectorController::InspectorController):
3444         * inspector/InspectorDOMAgent.cpp:
3445         (WebCore::InspectorDOMAgent::getEventListenersForNode):
3446         (WebCore::InspectorDOMAgent::getEventListeners):
3447         (WebCore):
3448         * inspector/InspectorDOMAgent.h:
3449         (InspectorDOMAgent):
3450         * inspector/WorkerInspectorController.cpp:
3451         (WebCore::WorkerInspectorController::WorkerInspectorController):
3452
3453 2012-03-21  Kentaro Hara  <haraken@chromium.org>
3454
3455         Unreviewed, rebaselined run-bindings-tests results.
3456
3457         * bindings/scripts/test/CPP/WebDOMFloat64Array.cpp:
3458         * bindings/scripts/test/GObject/WebKitDOMFloat64Array.cpp:
3459         * bindings/scripts/test/GObject/WebKitDOMFloat64ArrayPrivate.h:
3460         * bindings/scripts/test/ObjC/DOMFloat64Array.mm:
3461
3462 2012-03-21  Ian Vollick  <vollick@chromium.org>
3463
3464         [chromium] timing functions are getting incorrectly applied for accelerated css transitions
3465         https://bugs.webkit.org/show_bug.cgi?id=81692
3466
3467         Reviewed by Adrienne Walker.
3468
3469         Tested in CCLayerTreeHostTestAddAnimationWithTimingFunction
3470
3471         * platform/graphics/chromium/cc/CCLayerAnimationController.cpp:
3472
3473 2012-03-21  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
3474
3475         [Qt] Cookie Jar blocks on fsync in SQLITE
3476         https://bugs.webkit.org/show_bug.cgi?id=81755
3477
3478         Reviewed&nb