[GTK] Wrong ASSERT in AudioDestinationGstreamer::stop
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2013-03-14  Xan Lopez  <xlopez@igalia.com>
2
3         [GTK] Wrong ASSERT in AudioDestinationGstreamer::stop
4         https://bugs.webkit.org/show_bug.cgi?id=112344
5
6         Reviewed by Philippe Normand.
7
8         Correct erroneous ASSERT, we want both member variables to exist.
9
10         * platform/audio/gstreamer/AudioDestinationGStreamer.cpp:
11         (WebCore::AudioDestinationGStreamer::stop):
12
13 2013-03-14  Ilya Tikhonovsky  <loislo@chromium.org>
14
15         Web Inspector: Flame Chart. Support scroll and zoom with help of mouse wheel.
16         https://bugs.webkit.org/show_bug.cgi?id=112337
17
18         Reviewed by Yury Semikhatsky.
19
20         New member variable _xOffset were introduced.
21
22         * inspector/front-end/FlameChart.js:
23         (WebInspector.FlameChart):
24         (WebInspector.FlameChart.prototype._onMouseMove):
25         (WebInspector.FlameChart.prototype._adjustXOffset):
26         (WebInspector.FlameChart.prototype._adjustXScale):
27         (WebInspector.FlameChart.prototype._onMouseWheel):
28         (WebInspector.FlameChart.prototype._coordinatesToNodeIndex):
29         (WebInspector.FlameChart.prototype.onResize):
30         (WebInspector.FlameChart.prototype.draw):
31         (WebInspector.FlameChart.prototype._scheduleUpdate):
32         (WebInspector.FlameChart.prototype.update):
33
34 2013-03-14  No'am Rosenthal  <noam@webkit.org>
35
36         [Texmap] Synchronize layers only if the layer has been changed.
37         https://bugs.webkit.org/show_bug.cgi?id=112095
38
39         Reviewed by Allan Sandfeld Jensen.
40
41         A regression was introduced in r144787, causing an infinite IPC commitState/renderNextFrame 
42         loop.
43         This patch fixes this by making sure we only commit layer states that have actual pending 
44         changes. 
45
46         No new tests, this is an optimization.
47
48         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
49         (WebCore::CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly):
50         * platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h:
51         (CoordinatedGraphicsLayerState):
52         (WebCore::CoordinatedGraphicsLayerState::hasPendingChanges):
53
54 2013-03-14  Simon Hausmann  <simon.hausmann@digia.com>
55
56         [Qt] Improve the handling of mock geolocation, device orientation and motion clients
57
58         Reviewed by Tor Arne Vestbø.
59
60         The mock versions of these web facing features should be instantiated when
61         running in DumpRenderTree only. In order for them to work, no extra Qt modules
62         such as QtLocation are actually needed.
63
64         This patch decouples enabling device orientation/motion and geolocation from
65         the underlying Qt modules and makes them available in developer builds
66         (!production_build) and backed by mock backends when running in drt.
67
68         So if the Qt 5 modules are available, they'll be used (unless drtRun). For
69         developers the web facing features are always enabled (although requests will
70         time out) and the mock backends are enabled inside DRT, allowing for the layout
71         tests to run with less dependencies.
72
73         In addition this also enables the mock device motion client, which was
74         previously never instantiated.
75
76         * Target.pri:
77         * WebCore.pri:
78
79 2013-03-14  Allan Sandfeld Jensen  <allan.jensen@digia.com>
80
81         [TexMap] Painting into area of composited tile not cleared
82         https://bugs.webkit.org/show_bug.cgi?id=112268
83
84         Reviewed by Kenneth Rohde Christiansen.
85
86         Clip painting to the area that has been cleared, so we 
87         do not accidentally overpaint other areas.
88
89         Can be observed in ManualTests/scrollbars/scrollbars-in-composited-layers.html.
90
91         * platform/graphics/texmap/TextureMapperImageBuffer.cpp:
92         (WebCore::BitmapTextureImageBuffer::updateContents):
93
94 2013-03-14  Marja Hölttä  <marja@chromium.org>
95
96         [V8] Store main world and non-main world templates separately.
97         https://bugs.webkit.org/show_bug.cgi?id=111724
98
99         Reviewed by Jochen Eisinger.
100
101         This is needed for generating specialized bindings for the main
102         world (bug 110874).
103
104         No new tests (updated existing bindings tests).
105
106         * bindings/scripts/CodeGeneratorV8.pm:
107         (GenerateHeader):
108         (GenerateDomainSafeFunctionGetter):
109         (GenerateNormalAttrSetter):
110         (GenerateParametersCheckExpression):
111         (GenerateParametersCheck):
112         (GenerateImplementation):
113         (JSValueToNative):
114         (CreateCustomSignature):
115         * bindings/scripts/test/V8/V8Float64Array.cpp:
116         (WebCore::Float64ArrayV8Internal::fooMethod):
117         (WebCore::ConfigureV8Float64ArrayTemplate):
118         (WebCore::V8Float64Array::GetTemplate):
119         (WebCore::V8Float64Array::HasInstance):
120         * bindings/scripts/test/V8/V8Float64Array.h:
121         (V8Float64Array):
122         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
123         (WebCore::TestActiveDOMObjectV8Internal::excitingFunctionMethod):
124         (WebCore::TestActiveDOMObjectV8Internal::postMessageAttrGetter):
125         (WebCore::ConfigureV8TestActiveDOMObjectTemplate):
126         (WebCore::V8TestActiveDOMObject::GetTemplate):
127         (WebCore::V8TestActiveDOMObject::HasInstance):
128         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
129         (V8TestActiveDOMObject):
130         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
131         (WebCore::V8TestCustomNamedGetter::GetTemplate):
132         (WebCore::V8TestCustomNamedGetter::HasInstance):
133         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
134         (V8TestCustomNamedGetter):
135         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
136         (WebCore::V8TestEventConstructor::GetTemplate):
137         (WebCore::V8TestEventConstructor::HasInstance):
138         * bindings/scripts/test/V8/V8TestEventConstructor.h:
139         (V8TestEventConstructor):
140         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
141         (WebCore::TestEventTargetV8Internal::dispatchEventMethod):
142         (WebCore::ConfigureV8TestEventTargetTemplate):
143         (WebCore::V8TestEventTarget::GetTemplate):
144         (WebCore::V8TestEventTarget::HasInstance):
145         * bindings/scripts/test/V8/V8TestEventTarget.h:
146         (V8TestEventTarget):
147         * bindings/scripts/test/V8/V8TestException.cpp:
148         (WebCore::V8TestException::GetTemplate):
149         (WebCore::V8TestException::HasInstance):
150         * bindings/scripts/test/V8/V8TestException.h:
151         (V8TestException):
152         * bindings/scripts/test/V8/V8TestInterface.cpp:
153         (WebCore::TestInterfaceV8Internal::supplementalNodeAttrSetter):
154         (WebCore::TestInterfaceV8Internal::supplementalMethod2Method):
155         (WebCore::ConfigureV8TestInterfaceTemplate):
156         (WebCore::V8TestInterface::GetTemplate):
157         (WebCore::V8TestInterface::HasInstance):
158         * bindings/scripts/test/V8/V8TestInterface.h:
159         (V8TestInterface):
160         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
161         (WebCore::V8TestMediaQueryListListener::GetTemplate):
162         (WebCore::V8TestMediaQueryListListener::HasInstance):
163         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
164         (V8TestMediaQueryListListener):
165         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
166         (WebCore::V8TestNamedConstructor::GetTemplate):
167         (WebCore::V8TestNamedConstructor::HasInstance):
168         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
169         (V8TestNamedConstructor):
170         * bindings/scripts/test/V8/V8TestNode.cpp:
171         (WebCore::V8TestNode::GetTemplate):
172         (WebCore::V8TestNode::HasInstance):
173         * bindings/scripts/test/V8/V8TestNode.h:
174         (V8TestNode):
175         * bindings/scripts/test/V8/V8TestObj.cpp:
176         (WebCore::TestObjV8Internal::testObjAttrAttrSetter):
177         (WebCore::TestObjV8Internal::XMLObjAttrAttrSetter):
178         (WebCore::TestObjV8Internal::typedArrayAttrAttrSetter):
179         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeAttrSetter):
180         (WebCore::TestObjV8Internal::withScriptStateAttributeRaisesAttrSetter):
181         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeRaisesAttrSetter):
182         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeAttrSetter):
183         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeRaisesAttrSetter):
184         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateWithSpacesAttributeAttrSetter):
185         (WebCore::TestObjV8Internal::withScriptArgumentsAndCallStackAttributeAttrSetter):
186         (WebCore::TestObjV8Internal::mutablePointAttrSetter):
187         (WebCore::TestObjV8Internal::immutablePointAttrSetter):
188         (WebCore::TestObjV8Internal::voidMethodWithArgsMethod):
189         (WebCore::TestObjV8Internal::longMethodWithArgsMethod):
190         (WebCore::TestObjV8Internal::objMethodWithArgsMethod):
191         (WebCore::TestObjV8Internal::methodThatRequiresAllArgsAndThrowsMethod):
192         (WebCore::TestObjV8Internal::overloadedMethod1Method):
193         (WebCore::TestObjV8Internal::overloadedMethod2Method):
194         (WebCore::TestObjV8Internal::overloadedMethod8Method):
195         (WebCore::TestObjV8Internal::overloadedMethodMethod):
196         (WebCore::TestObjV8Internal::convert1Method):
197         (WebCore::TestObjV8Internal::convert2Method):
198         (WebCore::TestObjV8Internal::convert4Method):
199         (WebCore::TestObjV8Internal::convert5Method):
200         (WebCore::TestObjV8Internal::variadicNodeMethodMethod):
201         (WebCore::ConfigureV8TestObjTemplate):
202         (WebCore::V8TestObj::GetTemplate):
203         (WebCore::V8TestObj::HasInstance):
204         * bindings/scripts/test/V8/V8TestObj.h:
205         (V8TestObj):
206         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
207         (WebCore::TestOverloadedConstructorsV8Internal::constructor1):
208         (WebCore::TestOverloadedConstructorsV8Internal::constructor2):
209         (WebCore::TestOverloadedConstructorsV8Internal::constructor3):
210         (WebCore::TestOverloadedConstructorsV8Internal::constructor):
211         (WebCore::V8TestOverloadedConstructors::GetTemplate):
212         (WebCore::V8TestOverloadedConstructors::HasInstance):
213         * bindings/scripts/test/V8/V8TestOverloadedConstructors.h:
214         (V8TestOverloadedConstructors):
215         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
216         (WebCore::V8TestSerializedScriptValueInterface::GetTemplate):
217         (WebCore::V8TestSerializedScriptValueInterface::HasInstance):
218         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
219         (V8TestSerializedScriptValueInterface):
220         * bindings/scripts/test/V8/V8TestTypedefs.cpp:
221         (WebCore::TestTypedefsV8Internal::funcMethod):
222         (WebCore::ConfigureV8TestTypedefsTemplate):
223         (WebCore::V8TestTypedefs::GetTemplate):
224         (WebCore::V8TestTypedefs::HasInstance):
225         * bindings/scripts/test/V8/V8TestTypedefs.h:
226         (V8TestTypedefs):
227         * bindings/v8/Dictionary.cpp:
228         (WebCore::Dictionary::get):
229         * bindings/v8/ScriptProfiler.cpp:
230         (WebCore::ScriptProfiler::visitNodeWrappers):
231         * bindings/v8/SerializedScriptValue.cpp:
232         * bindings/v8/V8AdaptorFunction.cpp:
233         (WebCore::V8AdaptorFunction::getTemplate):
234         * bindings/v8/V8Binding.cpp:
235         (WebCore::toDOMStringList):
236         (WebCore::toXPathNSResolver):
237         * bindings/v8/V8Binding.h:
238         (WebCore):
239         (WebCore::toRefPtrNativeArray):
240         * bindings/v8/V8Collection.cpp:
241         (WebCore::toOptionsCollectionSetter):
242         * bindings/v8/V8GCController.cpp:
243         * bindings/v8/V8NPObject.cpp:
244         (WebCore::npObjectInvokeImpl):
245         * bindings/v8/V8PerIsolateData.cpp:
246         (WebCore::V8PerIsolateData::reportMemoryUsage):
247         (WebCore::V8PerIsolateData::hasPrivateTemplate):
248         (WebCore::V8PerIsolateData::privateTemplate):
249         (WebCore::V8PerIsolateData::rawTemplate):
250         (WebCore::V8PerIsolateData::hasInstance):
251         * bindings/v8/V8PerIsolateData.h:
252         (WebCore::V8PerIsolateData::rawTemplateMap):
253         (V8PerIsolateData):
254         (WebCore::V8PerIsolateData::templateMap):
255         * bindings/v8/V8Utilities.cpp:
256         (WebCore::extractTransferables):
257         * bindings/v8/custom/V8ArrayBufferViewCustom.h:
258         (WebCore::constructWebGLArray):
259         (WebCore::setWebGLArrayHelper):
260         * bindings/v8/custom/V8AudioBufferSourceNodeCustom.cpp:
261         (WebCore::V8AudioBufferSourceNode::bufferAttrSetterCustom):
262         * bindings/v8/custom/V8BlobCustom.cpp:
263         (WebCore::V8Blob::constructorCustom):
264         * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
265         (WebCore::toCanvasStyle):
266         * bindings/v8/custom/V8ClipboardCustom.cpp:
267         (WebCore::V8Clipboard::setDragImageMethodCustom):
268         * bindings/v8/custom/V8CryptoCustom.cpp:
269         (WebCore::V8Crypto::getRandomValuesMethodCustom):
270         * bindings/v8/custom/V8DOMFormDataCustom.cpp:
271         (WebCore::V8DOMFormData::constructorCustom):
272         (WebCore::V8DOMFormData::appendMethodCustom):
273         * bindings/v8/custom/V8DataViewCustom.cpp:
274         (WebCore::V8DataView::constructorCustom):
275         * bindings/v8/custom/V8DocumentCustom.cpp:
276         (WebCore::V8Document::evaluateMethodCustom):
277         * bindings/v8/custom/V8HTMLMediaElementCustom.cpp:
278         (WebCore::V8HTMLMediaElement::controllerAttrSetterCustom):
279         * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
280         (WebCore::V8HTMLOptionsCollection::addMethodCustom):
281         * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
282         (WebCore::removeElement):
283         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
284         (WebCore::V8InjectedScriptHost::isHTMLAllCollectionMethodCustom):
285         (WebCore::V8InjectedScriptHost::typeMethodCustom):
286         (WebCore::V8InjectedScriptHost::getEventListenersMethodCustom):
287         * bindings/v8/custom/V8LocationCustom.cpp:
288         (WebCore::V8Location::reloadAttrGetterCustom):
289         (WebCore::V8Location::replaceAttrGetterCustom):
290         (WebCore::V8Location::assignAttrGetterCustom):
291         * bindings/v8/custom/V8NodeCustom.cpp:
292         (WebCore::V8Node::insertBeforeMethodCustom):
293         (WebCore::V8Node::replaceChildMethodCustom):
294         (WebCore::V8Node::removeChildMethodCustom):
295         (WebCore::V8Node::appendChildMethodCustom):
296         * bindings/v8/custom/V8NodeListCustom.cpp:
297         (WebCore::V8NodeList::opaqueRootForGC):
298         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
299         (WebCore::toWebGLUniformLocation):
300         (WebCore::V8WebGLRenderingContext::getAttachedShadersMethodCustom):
301         (WebCore::V8WebGLRenderingContext::getProgramParameterMethodCustom):
302         (WebCore::V8WebGLRenderingContext::getShaderParameterMethodCustom):
303         (WebCore::V8WebGLRenderingContext::getUniformMethodCustom):
304         (WebCore::vertexAttribAndUniformHelperf):
305         (WebCore::uniformHelperi):
306         (WebCore::uniformMatrixHelper):
307         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
308         (WebCore::isDocumentType):
309         (WebCore::V8XMLHttpRequest::sendMethodCustom):
310
311 2013-03-14  Mike West  <mkwst@chromium.org>
312
313         Explicitly send only one report via XSSAuditorDelegate.
314         https://bugs.webkit.org/show_bug.cgi?id=111964
315
316         Reviewed by Adam Barth.
317
318         This patch pulls the XSSAuditor report generation out into a separate
319         function in XSSAuditorDelegate::generateViolationReport, and moves the
320         call to that function into the "have we already notified folks about
321         violations on this page?" block. This both clarifies the flow in
322         XSSAuditorDelegate::didBlockScript, and ensures that only one violation
323         report will be sent per page, which regressed in r145695.
324
325         Existing tests verify that reports are generated and sent correctly.
326
327         We have no tests for the latter condition: the XSSAuditor tests
328         currently verify that a report showed up, but they can't verify that
329         no report appeared without sitting around for a few more than a few
330         seconds on every run.
331
332         * html/parser/XSSAuditorDelegate.cpp:
333         (WebCore::XSSAuditorDelegate::generateViolationReport):
334             Pull the report generation logic out to this new function.
335         (WebCore::XSSAuditorDelegate::didBlockScript):
336             Move the report generation call into the block that ensures it only
337             executes for the first violation.
338
339 2013-03-14  Sergio Villar Senin  <svillar@igalia.com>
340
341         Empty list items after drag&drop in contentEditable divs
342         https://bugs.webkit.org/show_bug.cgi?id=110610
343
344         Reviewed by Ryosuke Niwa.
345
346         Perform a cleanup after moving operations. This will mainly prune
347         extra placeholders left by the editing algorithms. Also do not
348         leave empty <li> when moving them around inside a list element.
349
350         Tests: editing/pasteboard/cleanup-on-move.html
351                editing/pasteboard/drag-list-item.html
352
353         * editing/MoveSelectionCommand.cpp:
354         (WebCore::MoveSelectionCommand::doApply): perform
355         cleanupAfterDeletion().
356         * editing/ReplaceSelectionCommand.cpp:
357         (WebCore::ReplaceSelectionCommand::insertAsListItems): do not
358         insert an empty list item.
359         * editing/MoveSelectionCommand.cpp:
360         (WebCore::MoveSelectionCommand::doApply):
361         * editing/ReplaceSelectionCommand.cpp:
362         (WebCore::ReplaceSelectionCommand::insertAsListItems):
363
364 2013-03-14  Eric Seidel  <eric@webkit.org>
365
366         Threaded HTML Parser should limit speculation to avoid using too much memory
367         https://bugs.webkit.org/show_bug.cgi?id=112069
368
369         Reviewed by Adam Barth.
370
371         This is a speculative fix for memory issues seen in:
372         https://code.google.com/p/chromium/issues/detail?id=180819
373
374         This also fixed https://bugs.webkit.org/show_bug.cgi?id=110546
375         as a side-effect of simplifying the m_currentChunk handling.
376
377         We now tell the background html parser every time we start
378         a chunk on the main thread (instead of end), which greatly
379         simplified the checkpoint cleanup code from:
380         https://trac.webkit.org/changeset/145277
381
382         The cost for this is now we have more messages going to the
383         background thread (and postTask acquires a lock to write to the
384         message queue).  Chromium has more advanced (lock-less) primatives
385         for message posting, which we'll hopefully add to WebKit in
386         furture patches.
387
388         The outstanding chunks limit has not been tuned.  But it makes sense that
389         we should not keeping infinite speculative tokens around for
390         large documents with slow-to-load scripts.
391
392         * html/parser/BackgroundHTMLInputStream.cpp:
393         (WebCore::BackgroundHTMLInputStream::BackgroundHTMLInputStream):
394         (WebCore::BackgroundHTMLInputStream::invalidateCheckpointsBefore):
395         (WebCore):
396         (WebCore::BackgroundHTMLInputStream::rewindTo):
397         * html/parser/BackgroundHTMLInputStream.h:
398         (BackgroundHTMLInputStream):
399         (WebCore::BackgroundHTMLInputStream::outstandingCheckpointCount):
400         (Checkpoint):
401         (WebCore::BackgroundHTMLInputStream::Checkpoint::isNull):
402         (WebCore::BackgroundHTMLInputStream::Checkpoint::clear):
403         * html/parser/BackgroundHTMLParser.cpp:
404         (WebCore):
405         (WebCore::BackgroundHTMLParser::startedChunkWithCheckpoint):
406         (WebCore::BackgroundHTMLParser::pumpTokenizer):
407         * html/parser/BackgroundHTMLParser.h:
408         (BackgroundHTMLParser):
409         * html/parser/HTMLDocumentParser.cpp:
410         (WebCore::HTMLDocumentParser::validateSpeculations):
411         (WebCore::HTMLDocumentParser::discardSpeculationsAndResumeFrom):
412         (WebCore::HTMLDocumentParser::processParsedChunkFromBackgroundParser):
413         (WebCore::HTMLDocumentParser::pumpPendingSpeculations):
414         (WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution):
415         * html/parser/HTMLDocumentParser.h:
416         (HTMLDocumentParser):
417
418 2013-03-14  Ilya Tikhonovsky  <loislo@chromium.org>
419
420         Web Inspector: Flame Chart. Minor changes for the popover.
421         https://bugs.webkit.org/show_bug.cgi?id=112331
422
423         Reviewed by Yury Semikhatsky.
424
425         popover timeout needs to be decreased a bit.
426         hidePopover call in onMouseMove doesn't necessary.
427         We have to keep anchor element unmodified if the hovered item didn't changed.
428
429         * inspector/front-end/FlameChart.js:
430         (WebInspector.FlameChart):
431         (WebInspector.FlameChart.prototype._onMouseMove):
432
433 2013-03-14  Jonathan Liu  <net147@gmail.com>
434
435         Fix detection of Intel Mac OS X platform on Intel Mac 64-bit
436         https://bugs.webkit.org/show_bug.cgi?id=112312
437
438         Reviewed by Simon Hausmann.
439
440         * platform/gtk/UserAgentGtk.cpp:
441         (WebCore::platformVersionForUAString):
442
443 2013-03-13  Ilya Tikhonovsky  <loislo@chromium.org>
444
445         Web Inspector: Flame Chart. Rewrite drawing procedure for better performance.
446         https://bugs.webkit.org/show_bug.cgi?id=112264
447
448         Reviewed by Yury Semikhatsky.
449
450         I traverses the profile tree in calculateTimelineData and calculates all the sizes and colors.
451         Later in draw code we lineary pass the array and draw items.
452         Also we could easily swap to another format of the profile.
453
454         * inspector/front-end/FlameChart.js:
455         (WebInspector.FlameChart):
456         (WebInspector.FlameChart.prototype._nodeCount):
457         (WebInspector.FlameChart.prototype._calculateTimelineData.appendReversedArray):
458         (WebInspector.FlameChart.prototype._calculateTimelineData):
459         (WebInspector.FlameChart.prototype._getPopoverAnchor):
460         (WebInspector.FlameChart.prototype._showPopover):
461         (WebInspector.FlameChart.prototype._hidePopover):
462         (WebInspector.FlameChart.prototype._onClick):
463         (WebInspector.FlameChart.prototype._onMouseMove):
464         (WebInspector.FlameChart.prototype._coordinatesToNodeIndex):
465         (WebInspector.FlameChart.prototype.onResize):
466         (WebInspector.FlameChart.prototype.draw):
467
468 2013-03-14  Alice Liu  <alice.liu@apple.com>
469
470         Add to HistoryItem a way to know if its underlying CachedPage has expired.
471         https://bugs.webkit.org/show_bug.cgi?id=110652
472
473         Reviewed by Brady Eidson.
474
475         * WebCore.exp.in: Added WebCore::HistoryItem::isInPageCache and hasCachedPageExpired.
476         * history/CachedPage.cpp: Add a data member, m_expirationTime, and a function, hasExpired().
477         * history/CachedPage.h:
478         * history/HistoryItem.cpp:
479         (WebCore::HistoryItem::hasCachedPageExpired): Added. returns m_cachedPage's expiration state.
480         * history/HistoryItem.h:
481         * history/PageCache.cpp:
482         (WebCore::PageCache::get):  Address the fixme about not using WebKitBackForwardCacheExpirationIntervalKey. 
483         * page/Settings.in: Add backForwardCacheExpirationInterval to the automatically generated setters for Settings.
484
485 2013-03-13  Ryosuke Niwa  <rniwa@webkit.org>
486
487         Cannot select a canvas element at the beginning or the end of a document
488         https://bugs.webkit.org/show_bug.cgi?id=112319
489
490         Reviewed by Eric Seidel.
491
492         The bug was caused by the editing code treating canvas element as if an empty inline element.
493         Treat it as an "atomic" element for the purpose of determining whether selection can have
494         an end point in it or not.
495
496         Test: editing/pasteboard/copy-paste-content-starting-and-ending-canvas.html
497
498         * html/HTMLCanvasElement.h:
499         (WebCore::HTMLCanvasElement::canContainRangeEndPoint): Added.
500
501 2013-03-13  Kunihiko Sakamoto  <ksakamoto@chromium.org>
502
503         Implement FontLoader interface
504         https://bugs.webkit.org/show_bug.cgi?id=98395
505
506         Reviewed by Eric Seidel.
507
508         This patch implements the FontLoader interface defined in CSS Font
509         Load Events Module Level 3.[1] It adds fontloader attribute to
510         Document, and adds two interfaces, FontLoader and
511         CSSFontFaceLoadEvent to WebCore.
512
513         [1]: http://dev.w3.org/csswg/css-font-load-events-3/
514
515         This feature is guarded by FONT_LOAD_EVENTS compiler flag and
516         RuntimeEnabledFeatures::fontLoadEventsEnabled() runtime flag.
517
518         Tests: fast/css/fontloader-download-error.html
519                fast/css/fontloader-events.html
520                fast/css/fontloader-loadingdone.html
521                fast/css/fontloader-multiple-faces-download-error.html
522                fast/css/fontloader-multiple-faces.html
523                fast/css/fontloader-multiple-families.html
524                http/tests/webfont/fontloader-loading-attribute.html
525
526         * CMakeLists.txt: Adding FontLoader/CSSFontFaceLoadEvent files.
527         * DerivedSources.cpp: Ditto.
528         * DerivedSources.make: Ditto.
529         * DerivedSources.pri: Ditto.
530         * GNUmakefile.list.am: Ditto.
531         * Target.pri: Ditto.
532         * WebCore.gypi: Ditto.
533         * WebCore.vcproj/WebCore.vcproj: Ditto.
534         * WebCore.vcxproj/WebCore.vcxproj: Ditto.
535         * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
536         * WebCore.xcodeproj/project.pbxproj: Ditto.
537         * bindings/js/JSDictionary.cpp:
538         (WebCore::JSDictionary::convertValue): Add convertValue() for CSSFontFaceRule, DOMError, and VoidCallback.
539         * bindings/js/JSDictionary.h: Ditto.
540         * bindings/v8/Dictionary.cpp: Add get() for CSSFontFaceRule, DOMError, and VoidCallback.
541         (WebCore::Dictionary::get):
542         * bindings/v8/Dictionary.h: Ditto.
543         (Dictionary):
544         * css/CSSFontFace.cpp: Notifies FontLoader as load progresses.
545         (WebCore::CSSFontFace::fontLoaded):
546         (WebCore::CSSFontFace::getFontData):
547         (WebCore::CSSFontFace::notifyFontLoader):
548         (WebCore::CSSFontFace::notifyLoadingDone):
549         * css/CSSFontFace.h: Add two member variables. m_rule stores CSSFontFaceRule for the fontface. m_loadState holds current state of the fontface in terms of FontLoader.
550         (WebCore::CSSFontFace::create): Takes additional parameter of type CSSFontFaceRule.
551         (WebCore::CSSFontFace::loadState):
552         (WebCore::CSSFontFace::CSSFontFace):
553         * css/CSSFontFaceLoadEvent.cpp: Added.
554         (WebCore::CSSFontFaceLoadEvent::CSSFontFaceLoadEvent):
555         (WebCore::CSSFontFaceLoadEvent::~CSSFontFaceLoadEvent):
556         (WebCore::CSSFontFaceLoadEvent::interfaceName):
557         * css/CSSFontFaceLoadEvent.h: Added.
558         (CSSFontFaceLoadEventInit):
559         (CSSFontFaceLoadEvent):
560         (WebCore::CSSFontFaceLoadEvent::create):
561         (WebCore::CSSFontFaceLoadEvent::createForFontFaceRule):
562         (WebCore::CSSFontFaceLoadEvent::createForError):
563         (WebCore::CSSFontFaceLoadEvent::fontface):
564         (WebCore::CSSFontFaceLoadEvent::error):
565         * css/CSSFontFaceLoadEvent.idl: Added.
566         * css/CSSFontFaceRule.idl: Add JSGenerateToJSObject and JSGenerateToNativeObject as JSC binding needs them.
567         * css/CSSFontFaceSource.cpp:
568         (WebCore::CSSFontFaceSource::isDecodeError): Added.
569         (WebCore::CSSFontFaceSource::ensureFontData): Added.
570         * css/CSSFontFaceSource.h:
571         (CSSFontFaceSource):
572         * css/CSSFontSelector.cpp:
573         (WebCore::CSSFontSelector::addFontFaceRule): Pass a CSSFontFaceRule to CSSFontFace::create().
574         (WebCore::CSSFontSelector::getFontData): Moved logic for creating a CSSSegmentedFontFace to a helper function getFontFace().
575         (WebCore::CSSFontSelector::getFontFace): Added.
576         * css/CSSFontSelector.h:
577         * css/CSSSegmentedFontFace.cpp:
578         (WebCore::CSSSegmentedFontFace::fontLoaded): Fires callbacks when load is completed.
579         (WebCore::CSSSegmentedFontFace::isLoading): Returns true if any fonts are still loading.
580         (WebCore::CSSSegmentedFontFace::checkFont): Returns true if all fonts are loaded.
581         (WebCore::CSSSegmentedFontFace::loadFont): Starts load by calling getFontData().
582         * css/CSSSegmentedFontFace.h:
583         (CSSSegmentedFontFace): Declares new functions and a vector to store callbacks.
584         (LoadFontCallback):
585         (WebCore::CSSSegmentedFontFace::LoadFontCallback::~LoadFontCallback):
586         * css/FontLoader.cpp: Added.
587         (LoadFontCallback): Holds callback functions of FontLoader.loadFont().
588         (WebCore::LoadFontCallback::create):
589         (WebCore::LoadFontCallback::createFromParams):
590         (WebCore::LoadFontCallback::LoadFontCallback):
591         (WebCore::LoadFontCallback::notifyLoaded):
592         (WebCore::LoadFontCallback::notifyError):
593         (WebCore::FontLoader::FontLoader):
594         (WebCore::FontLoader::~FontLoader):
595         (WebCore::FontLoader::eventTargetData):
596         (WebCore::FontLoader::ensureEventTargetData):
597         (WebCore::FontLoader::interfaceName):
598         (WebCore::FontLoader::scriptExecutionContext):
599         (WebCore::FontLoader::didLayout): Fires pending events and callbacks. This is called when layout have completed.
600         (WebCore::FontLoader::scheduleEvent): Defers event dispatching until layout completes.
601         (WebCore::FontLoader::firePendingEvents): Dispatches pending events.
602         (WebCore::FontLoader::beginFontLoading): Schedules loading/loadstart events. This is called from CSSFontFace.
603         (WebCore::FontLoader::fontLoaded): Schedules load/loadingdone events. This is called from CSSFontFace.
604         (WebCore::FontLoader::loadError): Schedules error/loadingdone events. This is called from CSSFontFace.
605         (WebCore::FontLoader::notifyWhenFontsReady): Implements fontloader.notifyWhenFontsReady().
606         (WebCore::FontLoader::loadingDone): Fires callbacks of notifyWhenFontsReady.
607         (WebCore::FontLoader::loadFont): Implements fontloader.loadFont().
608         (WebCore::FontLoader::checkFont): Implements fontloader.checkFont().
609         (WebCore::FontLoader::resolveFontStyle): Parses the given font parameter using the syntax of CSS 'font' property and creates Font object. The logic is taken from CanvasRenderingContext2D::setFont().
610         * css/FontLoader.h: Added.
611         (FontLoader):
612         (WebCore::FontLoader::create):
613         (WebCore::FontLoader::loading):
614         (WebCore::FontLoader::document):
615         (WebCore::FontLoader::refEventTarget):
616         (WebCore::FontLoader::derefEventTarget):
617         * css/FontLoader.idl: Added.
618         * dom/Document.cpp:
619         (WebCore::Document::Document):
620         (WebCore::Document::fontloader): Added.
621         * dom/Document.h:
622         (Document): Add m_fontloader and fontloader().
623         * dom/Document.idl: Add fontloader attribute.
624         * dom/EventNames.h: Add loading and loadingdone events.
625         * dom/EventNames.in: Add CSSFontFaceLoadEvent.
626         * dom/EventTargetFactory.in: Add FontLoader.
627         * page/FrameView.cpp:
628         (WebCore::FrameView::performPostLayoutTasks): Calls FontLoader::didLayout().
629
630 2013-03-13  Antti Koivisto  <antti@apple.com>
631
632         Compute image background size when testing for background visibility
633         https://bugs.webkit.org/show_bug.cgi?id=112313
634
635         Reviewed by Simon Fraser.
636
637         We can catch more cases where background is fully obscured.
638
639         * rendering/RenderBox.cpp:
640         (WebCore::RenderBox::paintBackground):
641                 
642             Use early returns.
643     
644         (WebCore::RenderBox::backgroundPaintedExtent):
645         
646             Compute the bounds for image backgrounds.
647
648         (WebCore::RenderBox::backgroundIsKnownToBeOpaqueInRect):
649         (WebCore::RenderBox::backgroundIsKnownToBeObscured):
650         
651             Rename to make clear that the answers are certain to one direction only.
652
653         * rendering/RenderBox.h:
654         * rendering/RenderImage.cpp:
655         (WebCore::RenderImage::boxShadowShouldBeAppliedToBackground):
656         (WebCore::RenderImage::backgroundIsKnownToBeObscured):
657         * rendering/RenderImage.h:
658
659 2013-03-13  Bruno de Oliveira Abinader  <bruno.abinader@basyskom.com>
660
661         [css3-text] Add support for text-decoration-color
662         https://bugs.webkit.org/show_bug.cgi?id=91638
663
664         Reviewed by Julien Chaffraix.
665
666         This patch implements the CSS3's 'text-decoration-color' property, with
667         '-webkit' vendor prefix.
668
669         More info about "text-decoration-color" property can be found here:
670         http://dev.w3.org/csswg/css-text-decor-3/#text-decoration-color-property
671
672         Mozilla implementation (using -moz prefix) is described here:
673         https://developer.mozilla.org/en/CSS/text-decoration-color
674
675         Tests: fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color.html
676                fast/css3-text/css3-text-decoration/repaint/repaint-text-decoration-color.html
677                fast/css3-text/css3-text-decoration/text-decoration-color.html
678
679         * css/CSSComputedStyleDeclaration.cpp:
680         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
681         * css/CSSParser.cpp:
682         (WebCore::isColorPropertyID):
683         (WebCore::CSSParser::parseValue):
684         * css/CSSProperty.cpp:
685         (WebCore::CSSProperty::isInheritedProperty):
686         Added parsing checks for '-webkit-text-decoration-color' property.
687
688         * css/CSSPropertyNames.in:
689         Added '-webkit-text-decoration-color' property name.
690
691         * css/StyleBuilder.cpp:
692         (WebCore::StyleBuilder::StyleBuilder):
693         Set property handler for '-webkit-text-decoration-color'.
694
695         * css/StyleResolver.cpp:
696         (WebCore::isValidVisitedLinkProperty):
697         (WebCore::StyleResolver::applyProperty):
698         Added switch case checks for text-decoration-color property on visited
699         link checks and property appliance.
700
701         * rendering/RenderObject.cpp:
702         (WebCore::decorationColor):
703         The newly added property needs to checked here when selecting the text
704         decoration color.
705
706         * rendering/style/RenderStyle.cpp:
707         (WebCore::RenderStyle::diff):
708         (WebCore::RenderStyle::colorIncludingFallback):
709         (WebCore::RenderStyle::visitedDependentColor):
710         There is no proper way to check if a property has been set or not, so if
711         text decoration color fallbacks to default color, it would override the
712         check for 'text-fill-color' and 'text-stroke-color' properties on
713         WebCore::decorationColor() static function, changing current behavior,
714         which can be verified by new failing layout tests (ie.
715         fast/text/stroking-decorations.html).
716
717         * rendering/style/RenderStyle.h:
718         Added {non-}visited text decoration color getters and setters.
719
720         * rendering/style/StyleRareNonInheritedData.cpp:
721         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
722         (WebCore::StyleRareNonInheritedData::operator==):
723         Added {non-}visited text decoration color variables initialization to
724         copy constructor and operator assignment functions.
725
726         * rendering/style/StyleRareNonInheritedData.h:
727         (StyleRareNonInheritedData):
728         Added here as this property is not used regularly.
729
730 2013-03-13  Rik Cabanier  <cabanier@adobe.com>
731
732         create runtime flags for CSS Compositing
733         https://bugs.webkit.org/show_bug.cgi?id=111818
734
735         Reviewed by Ryosuke Niwa.
736
737         No new tests, no change in functionality.
738
739         Added a runtime flags that enables CSS compositing
740
741         * WebCore.exp.in:
742         * bindings/generic/RuntimeEnabledFeatures.cpp:
743         (WebCore):
744         * bindings/generic/RuntimeEnabledFeatures.h:
745         (RuntimeEnabledFeatures):
746         (WebCore::RuntimeEnabledFeatures::setCSSCompositingEnabled):
747         (WebCore::RuntimeEnabledFeatures::cssCompositingEnabled):
748         * css/CSSParser.cpp:
749         (WebCore::CSSParserContext::CSSParserContext):
750         (WebCore::operator==):
751         (WebCore::isValidKeywordPropertyAndValue):
752         (WebCore::CSSParser::parseValue):
753         (WebCore::CSSParser::parseFillProperty):
754         (WebCore::CSSParser::cssCompositingEnabled):
755         (WebCore):
756         * css/CSSParser.h:
757         * css/CSSParserMode.h:
758         (CSSParserContext):
759         * dom/Document.cpp:
760         (WebCore::Document::cssCompositingEnabled):
761         (WebCore):
762         * dom/Document.h:
763         (Document):
764
765 2013-03-11  Kinuko Yasuda  <kinuko@chromium.org>
766
767         Quota API: Update IDL to make it match the latest WD
768         https://bugs.webkit.org/show_bug.cgi?id=88396
769
770         Reviewed by Adam Barth.
771
772         Add a new interface object (navigator.StorageQuota) and deprecate the old one (window.StorageInfo)
773         to make the code match with the latest Quota API WD:
774         http://www.w3.org/TR/quota-api/
775
776         Tests: storage/storagequota-query-usage.html
777                storage/storagequota-request-quota.html
778
779         * CMakeLists.txt:
780         * DerivedSources.cpp:
781         * DerivedSources.make:
782         * DerivedSources.pri:
783         * GNUmakefile.list.am:
784         * Modules/quota/DOMWindowQuota.cpp:
785         (WebCore::DOMWindowQuota::webkitStorageInfo): Added a deprecate warning message for the old interface.
786         * Modules/quota/NavigatorStorageQuota.cpp: Added for the new interface.
787         * Modules/quota/NavigatorStorageQuota.h: Added for the new interface.
788         * Modules/quota/NavigatorStorageQuota.idl: Added for the new interface.
789         * Modules/quota/StorageErrorCallback.cpp:
790         (WebCore::StorageErrorCallback::CallbackTask::CallbackTask):
791         (WebCore::StorageErrorCallback::CallbackTask::performTask):
792         * Modules/quota/StorageErrorCallback.h: Renamed from Source/WebCore/Modules/quota/StorageInfoErrorCallback.h.
793         (WebCore):
794         (StorageErrorCallback):
795         (WebCore::StorageErrorCallback::~StorageErrorCallback):
796         (WebCore::StorageErrorCallback::CallbackTask::create):
797         * Modules/quota/StorageErrorCallback.idl: Renamed from Source/WebCore/Modules/quota/StorageInfoErrorCallback.idl.
798         * Modules/quota/StorageInfo.cpp: Added code to relay requests to the new StorageQuota implementation.
799         * Modules/quota/StorageInfo.h:
800         * Modules/quota/StorageInfo.idl:
801         * Modules/quota/StorageQuota.cpp: Added for the new interface.
802         * Modules/quota/StorageQuota.h:
803         (WebCore::StorageQuota::create):
804         * Modules/quota/StorageQuota.idl: Copied from Source/WebCore/Modules/quota/StorageInfo.idl.
805         * Modules/quota/StorageQuotaCallback.h: Renamed from Source/WebCore/Modules/quota/StorageInfoQuotaCallback.h.
806         * Modules/quota/StorageQuotaCallback.idl: Renamed from Source/WebCore/Modules/quota/StorageInfoQuotaCallback.idl.
807         * Modules/quota/StorageUsageCallback.h: Renamed from Source/WebCore/Modules/quota/StorageInfoUsageCallback.h.
808         * Modules/quota/StorageUsageCallback.idl: Renamed from Source/WebCore/Modules/quota/StorageInfoUsageCallback.idl.
809         * Target.pri:
810         * WebCore.gypi:
811         * WebCore.vcproj/WebCore.vcproj:
812         * WebCore.vcxproj/WebCore.vcxproj:
813         * WebCore.vcxproj/WebCore.vcxproj.filters:
814         * page/FeatureObserver.h:
815
816 2013-03-13  Ryosuke Niwa  <rniwa@webkit.org>
817
818         Unreviewed. Sort the Xcode project file.
819
820         * WebCore.xcodeproj/project.pbxproj:
821
822 2013-03-13  Rafael Weinstein  <rafaelw@chromium.org>
823
824         [HTMLTemplateElement] EOF should unwind the stack of template insertion modes iteratively
825         https://bugs.webkit.org/show_bug.cgi?id=111907
826
827         Reviewed by Adam Barth.
828
829         No behavioral changes. This patch only aligns our parser implementation with the present spec.
830
831         * html/parser/HTMLTreeBuilder.cpp:
832         (WebCore::HTMLTreeBuilder::processTemplateEndTag):
833         (WebCore::HTMLTreeBuilder::processEndOfFileForInTemplateContents):
834         (WebCore::HTMLTreeBuilder::processEndOfFile):
835         * html/parser/HTMLTreeBuilder.h:
836         (HTMLTreeBuilder):
837
838 2013-03-13  Michael Nordman  <michaeln@google.com>
839
840         FileSystem mods: Changes to snapshot file creation to reduce dependencies on blob URLs.
841         Adding a new minimal BlobDataHandle class which will be reimplemented/built upon in later CLs. In this
842         patch, it's just enough to refactor the FileSystem code to not function in terms of blobURLs.
843         https://bugs.webkit.org/show_bug.cgi?id=108851
844
845         Reviewed by Adam Barth.
846
847         No new tests. This is strictly a refactoring of the existing code.
848
849         * Modules/filesystem/DOMFileSystem.cpp:
850         (WebCore):
851         (WebCore::DOMFileSystem::createFile):
852         * Modules/filesystem/DOMFileSystemSync.cpp:
853         (WebCore):
854         * platform/AsyncFileSystemCallbacks.h:
855         (AsyncFileSystemCallbacks):
856         (WebCore::AsyncFileSystemCallbacks::didCreateSnapshotFile):
857         * platform/gtk/AsyncFileSystemGtk.cpp:
858         (WebCore::AsyncFileSystemGtk::createSnapshotFileAndReadMetadata):
859         (WebCore):
860         * platform/network/BlobData.cpp:
861         (WebCore):
862         (WebCore::BlobDataHandle::BlobDataHandle):
863         (WebCore::BlobDataHandle::~BlobDataHandle):
864         * platform/network/BlobData.h:
865         (WebCore):
866         (BlobDataHandle):
867         (WebCore::BlobDataHandle::create):
868
869 2013-03-13  Ryosuke Niwa  <rniwa@webkit.org>
870
871         Threaded HTML Parser is missing feature define flags in all but Chromium port's build files
872         https://bugs.webkit.org/show_bug.cgi?id=112277
873
874         Reviewed by Adam Barth.
875
876
877         * Configurations/FeatureDefines.xcconfig:
878
879 2013-03-13  Marja Hölttä  <marja@chromium.org>
880
881         [V8] Get rid of more function-level static FunctionTemplates and ObjectTemplates in bindings
882         https://bugs.webkit.org/show_bug.cgi?id=112262
883
884         Reviewed by Jochen Eisinger.
885
886         In the future we'll create and store function templates for main world
887         and non-main worlds separately (see bug 111724), having function
888         templates and object templates as static variables inside functions will
889         break the functionality.
890
891         No new tests (no changes in functionality yet; existing bindings
892         tests still pass).
893
894         * bindings/scripts/CodeGeneratorV8.pm:
895         (GenerateHeader):
896         (GenerateImplementation):
897         * bindings/v8/V8DOMWindowShell.cpp:
898         (WebCore::V8DOMWindowShell::createContext):
899         * bindings/v8/V8PerIsolateData.cpp:
900         (WebCore::V8PerIsolateData::hasPrivateTemplate):
901         (WebCore):
902         * bindings/v8/V8PerIsolateData.h:
903         (V8PerIsolateData):
904         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
905         (WebCore::V8HTMLDocument::wrapInShadowObject):
906
907 2013-03-13  Julien Chaffraix  <jchaffraix@webkit.org>
908
909         [CSS Grid Layout] Refactor GridCoordinate to hold GridSpans
910         https://bugs.webkit.org/show_bug.cgi?id=112211
911
912         Reviewed by Tony Chang.
913
914         In order to bring more spanning knowledge to RenderGrid without having
915         duplicated GridSpan resolution, it became needed to store them into
916         GridCoordinate. Note that this change is needed as we can only resolve
917         all the positions with enough context in one place: when we place the
918         item in the grid.
919
920         Refactoring, no change in behavior expected.
921
922         * rendering/RenderGrid.cpp:
923         (WebCore::RenderGrid::GridIterator::nextEmptyGridArea):
924         Updated to create 2 GridSpans. Also fixed a style violation (PassOwnPtr
925         as local member, not sure why it wasn't caught earlier).
926
927         (WebCore::RenderGrid::placeItemsOnGrid):
928         (WebCore::RenderGrid::placeSpecifiedMajorAxisItemsOnGrid):
929         (WebCore::RenderGrid::placeAutoMajorAxisItemOnGrid):
930         (WebCore::RenderGrid::gridAreaBreadthForChild):
931         (WebCore::RenderGrid::findChildLogicalPosition):
932         Updated the original function after GridCoordinate internal representation change.
933
934         (WebCore::RenderGrid::insertItemIntoGrid):
935         Ditto. Also added a new overloaded function that does resolution after auto-placement.
936
937         (WebCore::RenderGrid::resolveGridPositionsFromAutoPlacementPosition):
938         Removed the extra GridSpan computation, which was wrong.
939
940         * rendering/RenderGrid.h:
941         (WebCore::RenderGrid::GridCoordinate::GridCoordinate):
942         Updated GridCoordinate to hold 2 GridSpan. Also removed the 2 position
943         constructor (it would have been a hazard), replaced by a 2 GridSpan constructor.
944
945 2013-03-13  Jochen Eisinger  <jochen@chromium.org>
946
947         Also don't log error messages from the GraphicsContext3D if webGLErrorsToConsoleEnabled is false
948         https://bugs.webkit.org/show_bug.cgi?id=112284
949
950         Reviewed by Adam Barth.
951
952         When running layout tests in content_shell, we end up logging more information.
953         Since webGLErrorsToConsoleEnabled is false during layout tests, this change makes
954         sure we match the baselines.
955
956         * html/canvas/WebGLRenderingContext.cpp:
957         (WebCore):
958         (WebCore::WebGLRenderingContextErrorMessageCallback::onErrorMessage):
959
960 2013-03-13  David Grogan  <dgrogan@chromium.org>
961
962         IndexedDB: Record attemps to open a path with non-ascii characters
963         https://bugs.webkit.org/show_bug.cgi?id=112224
964
965         Reviewed by Tony Chang.
966
967         We want to see if that's correlated with errors on open.
968
969         No new tests, there's no way to test histogramming that I know of. I
970         ran chrome locally with a non ascii path though.
971
972         * Modules/indexeddb/IDBBackingStore.cpp:
973         (WebCore::IDBBackingStore::open):
974
975 2013-03-13  Julien Chaffraix  <jchaffraix@webkit.org>
976
977         [CSS Grid Layout] Handle min-width / max-width on the grid element
978         https://bugs.webkit.org/show_bug.cgi?id=112269
979
980         Reviewed by Ojan Vafai.
981
982         Test: fast/css-grid-layout/grid-element-min-max-width.html
983
984         * rendering/RenderGrid.cpp:
985         (WebCore::RenderGrid::GridIterator::GridIterator):
986         Added some sanity checks that the starting indexes are in the grid.
987
988         (WebCore::RenderGrid::computeIntrinsicLogicalWidths):
989         Updated the code to use m_grid to iterate: this is the correct way to
990         go as it will handle implicit rows / columns properly. Added a comment
991         about the current way being inefficient and incorrect with spanning grid
992         items.
993
994         (WebCore::RenderGrid::computePreferredLogicalWidths):
995         Updated the comments.
996
997         (WebCore::RenderGrid::gridTrackSize):
998         * rendering/RenderGrid.h:
999         Constified gridTrackSize.
1000
1001 2013-03-13  Simon Hausmann  <simon.hausmann@digia.com>
1002
1003         [Qt] Prospective trivial build fix after r145744
1004
1005         Add missing closing parentheses.
1006
1007         * xml/parser/XMLDocumentParserQt.cpp:
1008         (WebCore::XMLDocumentParser::parseDtd):
1009
1010 2013-03-13  Brady Eidson  <beidson@apple.com>
1011
1012         Account for review feedback in https://bugs.webkit.org/show_bug.cgi?id=112279
1013         that I'd mistakenly left out of my commit.
1014
1015         * loader/ResourceLoaderTypes.h:
1016
1017 2013-03-13  Abhishek Arya  <inferno@chromium.org>
1018
1019         Crash in CompositeEditCommand::insertNodeAt.
1020         https://bugs.webkit.org/show_bug.cgi?id=112280
1021
1022         Reviewed by Ryosuke Niwa.
1023
1024         * editing/CompositeEditCommand.cpp:
1025         (WebCore::CompositeEditCommand::insertNodeAt): Fix incorrect cast use of toElement.
1026         Subsitute with toContainerNode.
1027
1028 2013-03-13  Brady Eidson  <beidson@apple.com>
1029
1030         Small ResourceLoader cleanups.
1031         https://bugs.webkit.org/show_bug.cgi?id=112279
1032
1033         Reviewed by Geoff Garen.
1034
1035         No new tests (Refactor with no behavior change).
1036
1037         1 - Add "OVERRIDE" to virtual methods in subclasses of ResourceLoader to catch future mistakes.
1038         2 - Replace the "bool allAtOnce" flag with a descriptive enum to make reading code easier.
1039
1040         * GNUmakefile.list.am:
1041         * Target.pri:
1042         * WebCore.gypi:
1043         * WebCore.vcproj/WebCore.vcproj:
1044         * WebCore.xcodeproj/project.pbxproj:
1045
1046         * loader/DocumentLoader.cpp:
1047         (WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):
1048
1049         * loader/NetscapePlugInStreamLoader.cpp:
1050         (WebCore::NetscapePlugInStreamLoader::didReceiveData):
1051         * loader/NetscapePlugInStreamLoader.h:
1052
1053         * loader/ResourceLoader.cpp:
1054         (WebCore::ResourceLoader::addData):
1055         (WebCore::ResourceLoader::didReceiveData):
1056         * loader/ResourceLoader.h:
1057         * loader/ResourceLoaderTypes.h: Added.
1058
1059         * loader/SubresourceLoader.cpp:
1060         (WebCore::SubresourceLoader::didReceiveData):
1061         * loader/SubresourceLoader.h:
1062
1063 2013-03-13  Nate Chapin  <japhet@chromium.org>
1064
1065         chromium's WebFrameTest.ReplaceNavigationAfterHistoryNavigation failing after r145734
1066         https://bugs.webkit.org/show_bug.cgi?id=112281
1067
1068         Reviewed by Adam Barth.
1069
1070         Fixes the aforementioned chromiun webkit_unit_test
1071
1072         * loader/DocumentLoader.cpp:
1073         (WebCore::DocumentLoader::maybeFinishLoadingMultipartContent): FrameLoader::isReplacing() is not quite
1074             synonymous with loading multipart content. Check that it's actually loading multipart before doing
1075             multipart-specific things.
1076
1077 2013-03-13  Tao Bai  <michaelbai@chromium.org>
1078
1079         Add the default video poster if it doesn't exist in video tag
1080         https://bugs.webkit.org/show_bug.cgi?id=110263
1081
1082         Reviewed by Eric Carlson.
1083
1084         Tests: media/video-default-poster.html
1085                media/video-no-default-poster.html
1086
1087         The Android web view application could provide the default poster
1088         for a video that doesn't have the poster attribute.
1089
1090         To provide the default poster, the application must set defaultVideoPosterURL
1091         setting and return the image in the response of that URL.
1092
1093         The way to do this would be:
1094
1095         A) Replace the Element::imageSourceAttributeName function with an
1096            Element::imageSourceURL function that returns the imageSourceURL as a
1097            const AtomicString&. The body will be the same as before, it will just also
1098            include a call to getAttribute. Also will need to revise the four classes
1099            that override that function.
1100
1101         B) Add a new HTMLVideoElement::posterImageURL function that implements the
1102            default poster URL logic.
1103
1104         C) Update the four functions that get the poster attribute to handle poster
1105            loading and display to call posterImageURL.
1106
1107            1) HTMLVideoElement::imageSourceURL.
1108            2) HTMLVideoElement::setDisplayMode.
1109            3) HTMLVideoElement::updateDisplayState.
1110            4) HTMLMediaElement::getPluginProxyParams. Will need to cast to
1111               HTMLVideoElement after checking isVideo.
1112
1113         * dom/Element.cpp:
1114         (WebCore::Element::imageSourceURL): Replace imageSourceAttributeName() with imageSourceURL()
1115         * dom/Element.h: Replace imageSourceAttributeName() with imageSourceURL()
1116         * html/HTMLEmbedElement.cpp:
1117         (WebCore::HTMLEmbedElement::imageSourceURL): Replace imageSourceAttributeName() with imageSourceURL()
1118         * html/HTMLEmbedElement.h: Replace imageSourceAttributeName() with imageSourceURL()
1119         * html/HTMLMediaElement.cpp:
1120         (WebCore::HTMLMediaElement::getPluginProxyParams): Change to use posterImageURL
1121         * html/HTMLObjectElement.cpp:
1122         (WebCore::HTMLObjectElement::imageSourceURL): Replace imageSourceAttributeName() with imageSourceURL()
1123         * html/HTMLObjectElement.h: Replace imageSourceAttributeName with imageSourceURL
1124         * html/HTMLVideoElement.cpp:
1125         (WebCore::HTMLVideoElement::HTMLVideoElement): set m_defaultPosterURL if there is such settings
1126         (WebCore::HTMLVideoElement::imageSourceURL): Replace imageSourceAttributeName() with imageSourceURL()
1127         (WebCore::HTMLVideoElement::setDisplayMode): Use imageSourceURL()
1128         (WebCore::HTMLVideoElement::updateDisplayState): Use imageSourceURL()
1129         (WebCore::HTMLVideoElement::posterImageURL): Return image source's KURL
1130         * html/HTMLVideoElement.h: Replace imageSourceAttributeName() with imageSourceURL() and add m_defaultPosterURL
1131         * loader/ImageLoader.cpp:
1132         (WebCore::ImageLoader::updateFromElement): Use imageSourceURL()
1133         * page/Settings.in: Add defaultVideoPosterURL setting.
1134         * platform/chromium/PasteboardChromium.cpp:
1135         (WebCore::Pasteboard::writeImage): use imageSourceURL()
1136         * platform/gtk/PasteboardGtk.cpp:
1137         (WebCore::getURLForImageNode): use imageSourceURL()
1138         * rendering/HitTestResult.cpp:
1139         (WebCore::HitTestResult::absoluteImageURL): use imageSourceURL()
1140         * svg/SVGImageElement.cpp:
1141         (WebCore::SVGImageElement::imageSourceURL): Replace imageSourceAttributeName() with imageSourceURL()
1142         * svg/SVGImageElement.h: Replace imageSourceAttributeName() with imageSourceURL()
1143         * testing/InternalSettings.cpp:
1144         (WebCore::InternalSettings::Backup::Backup): support backup defaultVideoPosterURL.
1145         (WebCore::InternalSettings::Backup::restoreTo): support restore defaultVideoPosterURL.
1146         (WebCore::InternalSettings::setDefaultVideoPosterURL): set defaultVideoPosterURL.
1147         * testing/InternalSettings.h:
1148         (Backup): support backup defaultVideoPosterURL.
1149         (InternalSettings): Add setDefaultVidoePosterURL method.
1150         * testing/InternalSettings.idl: Add setDefaultVideoPosterURL for test purpose.
1151         * testing/Internals.cpp:
1152         (WebCore::Internals::getImageSourceURL): Add getImageSourceURL method.
1153         * testing/Internals.h: Add getImageSourceURL method.
1154         * testing/Internals.idl: Add getImageSourceURL method.
1155
1156 2013-03-13  Abhishek Arya  <inferno@chromium.org>
1157
1158         Replace static_casts with to* functions for document types.
1159         https://bugs.webkit.org/show_bug.cgi?id=112225
1160
1161         Reviewed by Ryosuke Niwa.
1162
1163         to* helper functions are preferred over static_cast calls since they
1164         help to catch bad casts easily on the testing infrastructure.
1165
1166         * Modules/geolocation/Geolocation.cpp:
1167         (WebCore::Geolocation::document):
1168         ....lot of files.
1169
1170 2013-03-13  Liam Quinn  <lquinn@blackberry.com>
1171
1172         Handle XHTML entities in XHTML Mobile Profile 1.1 and 1.2. We previously only handled them in XHTML Mobile Profile 1.0.
1173         https://bugs.webkit.org/show_bug.cgi?id=112174
1174         RIM PR 309038
1175
1176         Reviewed by Rob Buis.
1177         Internally reviewed by Leo Yang.
1178
1179         Check for the 1.1 and 1.2 doctypes alongside the 1.0 doctype.
1180
1181         Tests: fast/doctypes/xhtml-with-xhtmlmp11-doctype.xhtml
1182                fast/doctypes/xhtml-with-xhtmlmp12-doctype.xhtml
1183
1184         * xml/parser/XMLDocumentParserLibxml2.cpp:
1185         (WebCore::externalSubsetHandler):
1186         * xml/parser/XMLDocumentParserQt.cpp:
1187         (WebCore::XMLDocumentParser::parseDtd):
1188
1189 2013-03-13  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1190
1191         [EFL] Better error handling in NetworkStateNotifierEfl
1192         https://bugs.webkit.org/show_bug.cgi?id=112184
1193
1194         Reviewed by Kenneth Rohde Christiansen.
1195
1196         Improve error handling in for system calls in NetworkStateNotifierEfl.
1197         - EINTR errors are now properly handled for close() and recv() syscalls
1198         - recv() errors are now correctly detected, for e.g. if the socket was
1199         closed unexpectedly.
1200         - Make sure m_fdHandler is reset when the callback returns
1201         ECORE_CALLBACK_CANCEL to avoid double free in destructor. m_fdHandler
1202         gets destroyed when the callback returns ECORE_CALLBACK_CANCEL.
1203         - Keep netlink socket file descriptor as a class member so that we can
1204         close() it in the class destructor, even if m_fdHandler has already
1205         been destroyed.
1206
1207         No new tests, no behavior change for layout tests.
1208
1209         * platform/network/NetworkStateNotifier.h:
1210         (NetworkStateNotifier):
1211         * platform/network/efl/NetworkStateNotifierEfl.cpp:
1212         (WebCore::NetworkStateNotifier::readSocketCallback):
1213         (WebCore::NetworkStateNotifier::~NetworkStateNotifier):
1214         (WebCore::NetworkStateNotifier::NetworkStateNotifier):
1215
1216 2013-03-13  Tony Chang  <tony@chromium.org>
1217
1218         Regression(r143542): -webkit-align-items: center with overflow: auto/scroll has extra bottom padding
1219         https://bugs.webkit.org/show_bug.cgi?id=112047
1220
1221         Reviewed by Ojan Vafai.
1222
1223         Add a new pass for computing the client bottom edge that runs after we've repositioned children
1224         due to wrap-reverse, flex-end or vertical centering.
1225
1226         Test: css3/flexbox/negative-overflow.html
1227
1228         * rendering/RenderFlexibleBox.cpp:
1229         (WebCore::RenderFlexibleBox::layoutBlock): Remove the code to use clientLogicalBottom() that was computed before
1230         repositioning. The repositioning can change the edge.
1231         (WebCore::RenderFlexibleBox::clientLogicalBottomAfterRepositioning): Compute the new bottom based on the final position
1232         of flex items.
1233         * rendering/RenderFlexibleBox.h:
1234         (RenderFlexibleBox):
1235
1236 2013-03-13  Nate Chapin  <japhet@chromium.org>
1237
1238         REGRESSION(r137607): Redirecting a post to a get then reloading triggers resubmit warning
1239         https://bugs.webkit.org/show_bug.cgi?id=112194
1240
1241         Reviewed by Alexey Proskuryakov.
1242
1243         Test: http/tests/navigation/post-redirect-get-reload.php
1244
1245         * loader/SubresourceLoader.cpp:
1246         (WebCore::SubresourceLoader::willSendRequest): Matching urls aren't a reliable way of checking whether
1247             we are in a redirect. Check redirectResponse.isNull() instead.
1248         * testing/Internals.cpp:
1249         (WebCore::Internals::forceReload): Expose a means of forcing a reload like one a user generates for testing.
1250             Note that testRunner.queueReload() does this, but is not supported after the initial load completes,
1251             which makes it unsuitable for this case.
1252         * testing/Internals.h:
1253         * testing/Internals.idl:
1254
1255 2013-03-13  Nate Chapin  <japhet@chromium.org>
1256
1257         Merge MainResourceLoader's didFinishLoading and dataReceived into DocumentLoader
1258         https://bugs.webkit.org/show_bug.cgi?id=109952
1259
1260         Reviewed by Antti Koivisto.
1261
1262         No new tests, refactor only.
1263
1264         * loader/DocumentLoader.cpp:
1265         (WebCore::DocumentLoader::DocumentLoader):
1266         (WebCore::DocumentLoader::finishedLoading):
1267         (WebCore::DocumentLoader::responseReceived):
1268         (WebCore::DocumentLoader::receivedData):
1269         (WebCore::DocumentLoader::maybeLoadEmpty):
1270         * loader/DocumentLoader.h:
1271         * loader/MainResourceLoader.cpp:
1272         (WebCore::MainResourceLoader::responseReceived): Move content filtering to
1273             DocumentLoader.
1274         (WebCore::MainResourceLoader::dataReceived): Mostly moved to DocumentLoader.
1275         (WebCore::MainResourceLoader::didFinishLoading): Mostly moved to DocumentLoader.
1276         * loader/MainResourceLoader.h: Expose some variables that haven't been moved
1277             to DocumentLoader yet.
1278
1279 2013-03-13  Andrei Bucur  <abucur@adobe.com>
1280
1281         [CSS Regions] Break after doesn't work correctly with auto-height regions
1282         https://bugs.webkit.org/show_bug.cgi?id=112241
1283
1284         Reviewed by David Hyatt.
1285
1286         The change correctly returns the break position during the normal layout phase for
1287         auto-height regions. The problem doesn't exist during the constrained layout phase
1288         so it only affects the size of the auto-height regions by incorrectly positioning
1289         the content inside the flow.
1290
1291         Test: fast/regions/autoheight-break-after.html
1292
1293         * rendering/RenderBlock.cpp:
1294         (WebCore::RenderBlock::applyAfterBreak): Include the margin offset in the returned break position.
1295
1296 2013-03-12  Andrey Kosyakov  <caseq@chromium.org>
1297
1298         Web Inspector: coalesce repeating timeline records
1299         https://bugs.webkit.org/show_bug.cgi?id=112168
1300
1301         Reviewed by Vsevolod Vlasov.
1302
1303         - coalesce repeating top-level timeline events;
1304         - drive-by: only show categories that actually took time in aggregated stats;
1305
1306         * English.lproj/localizedStrings.js:
1307         * inspector/front-end/TimelineFrameController.js:
1308         (WebInspector.TimelineFrameController.prototype._innerAddRecord):
1309         * inspector/front-end/TimelinePanel.js:
1310         (WebInspector.TimelinePanel.prototype._highlightRect):
1311         (WebInspector.TimelineCalculator.prototype.computeBarGraphPercentages):
1312         * inspector/front-end/TimelinePresentationModel.js:
1313         (WebInspector.TimelinePresentationModel.prototype.reset):
1314         (WebInspector.TimelinePresentationModel.prototype._innerAddRecord):
1315         (WebInspector.TimelinePresentationModel.prototype._updateAncestorStats):
1316         (WebInspector.TimelinePresentationModel.prototype._findCoalescedParent):
1317         (WebInspector.TimelinePresentationModel.prototype._replaceWithCoalescedRecord):
1318         (WebInspector.TimelinePresentationModel.Record):
1319         (WebInspector.TimelinePresentationModel.adoptRecord):
1320         (WebInspector.TimelinePresentationModel.insertRetrospectiveRecord):
1321         (WebInspector.TimelinePresentationModel.Record.prototype.get selfTime):
1322         (WebInspector.TimelinePresentationModel.Record.prototype._generatePopupContentWithImagePreview):
1323         (WebInspector.TimelinePresentationModel.Record.prototype._getRecordDetails):
1324         (WebInspector.TimelinePresentationModel.Record.prototype.calculateAggregatedStats):
1325
1326 2013-03-13  Philip Rogers  <pdr@google.com>
1327
1328         Fix body background image geometry calculation
1329         https://bugs.webkit.org/show_bug.cgi?id=112226
1330
1331         Reviewed by Stephen Chenney.
1332
1333         Images that depend on a container size require a call to set the container size before
1334         rendering, and a call to look up the correct image during painting.
1335
1336         The body's renderer is special in that it may not be the renderer that actually paints its
1337         background. This patch fixes a bug where the correct RenderObject was used for looking up
1338         the image, but not for setting the container size. This fixes SVG background images on body.
1339
1340         Test: svg/as-background-image/svg-as-background-body.html
1341
1342         * rendering/RenderBoxModelObject.cpp:
1343         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
1344         (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry):
1345
1346             This change introduces clientForBackgroundImage in the background geometry calculation.
1347             This is very similar to how the client is looked up in paintFillLayerExtended.
1348
1349         * rendering/RenderBoxModelObject.h:
1350
1351             The new signature for calculateBackgroundImageGeometry now mirrors
1352             paintFillLayerExtended, containing a parameter for the correct background renderer.
1353
1354         (RenderBoxModelObject):
1355
1356 2013-03-13  Andrey Lushnikov  <lushnikov@chromium.org>
1357
1358         Web Inspector: [CodeMirror] Handle "enter" key in {|} situation
1359         https://bugs.webkit.org/show_bug.cgi?id=112153
1360
1361         Reviewed by Vsevolod Vlasov.
1362
1363         Add a keymap to handle "Enter" key and override it in case of {|}
1364         situation.
1365
1366         No new tests.
1367
1368         * inspector/front-end/CodeMirrorTextEditor.js:
1369         (WebInspector.CodeMirrorTextEditor):
1370         (WebInspector.CodeMirrorTextEditor.BlockIndentController):
1371         (WebInspector.CodeMirrorTextEditor.BlockIndentController.prototype.Enter):
1372
1373 2013-03-13  Andrey Lushnikov  <lushnikov@chromium.org>
1374
1375         Web Inspector: [CodeMirror] bug with LineWidgets
1376         https://bugs.webkit.org/show_bug.cgi?id=111978
1377
1378         Reviewed by Vsevolod Vlasov.
1379
1380         Implement CodeMirrorTextEditor.beginUpdates and
1381         CodeMirrorTextEditor.endUpdates and surround decoration creation
1382         with the beginUpdates/endUpdates calls.
1383
1384         No new tests.
1385
1386         * inspector/front-end/CodeMirrorTextEditor.js:
1387         (WebInspector.CodeMirrorTextEditor):
1388         (WebInspector.CodeMirrorTextEditor.prototype.beginUpdates):
1389         (WebInspector.CodeMirrorTextEditor.prototype.endUpdates):
1390         * inspector/front-end/SourceFrame.js:
1391         (WebInspector.SourceFrame.prototype.addMessageToSource):
1392
1393 2013-03-13  Pavel Feldman  <pfeldman@chromium.org>
1394
1395         Web Inspector: get rid of hiddenPanels filter
1396         https://bugs.webkit.org/show_bug.cgi?id=112252
1397
1398         Reviewed by Vsevolod Vlasov.
1399
1400         * WebCore.order:
1401         * inspector/InspectorFrontendClient.h:
1402         (InspectorFrontendClient):
1403         * inspector/InspectorFrontendHost.cpp:
1404         * inspector/InspectorFrontendHost.h:
1405         (InspectorFrontendHost):
1406         * inspector/InspectorFrontendHost.idl:
1407         * inspector/front-end/InspectorFrontendHostStub.js:
1408         * inspector/front-end/externs.js:
1409         * inspector/front-end/inspector.js:
1410         (WebInspector._panelDescriptors):
1411         * testing/Internals.cpp:
1412
1413 2013-03-13  Pavel Feldman  <pfeldman@chromium.org>
1414
1415         Web Inspector: convert workers inspection into capability
1416         https://bugs.webkit.org/show_bug.cgi?id=112251
1417
1418         Reviewed by Vsevolod Vlasov.
1419
1420         It should be up to backend
1421
1422         * inspector/Inspector.json:
1423         * inspector/InspectorFrontendClient.h:
1424         (InspectorFrontendClient):
1425         * inspector/InspectorFrontendClientLocal.h:
1426         * inspector/InspectorFrontendHost.cpp:
1427         * inspector/InspectorFrontendHost.h:
1428         (InspectorFrontendHost):
1429         * inspector/InspectorFrontendHost.idl:
1430         * inspector/InspectorWorkerAgent.cpp:
1431         (WebCore::InspectorWorkerAgent::canInspectWorkers):
1432         (WebCore):
1433         * inspector/InspectorWorkerAgent.h:
1434         (InspectorWorkerAgent):
1435         * inspector/front-end/InspectorFrontendHostStub.js:
1436         * inspector/front-end/Settings.js:
1437         * inspector/front-end/externs.js:
1438         * inspector/front-end/inspector.js:
1439         (WebInspector.doLoadedDone):
1440
1441 2013-03-13  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
1442
1443         [EFL] Start using evas object directly in Widget class
1444         https://bugs.webkit.org/show_bug.cgi?id=111858
1445
1446         Reviewed by Antonio Gomes.
1447
1448         Based on a patch by Kenneth Rohde Christiansen.
1449
1450         EFL Widget class should use evas object pointer directly rather
1451         than WidgetPrivate* m_data as platformWidget() is a Mac specific
1452         implementation detail that they are moving away from with WebKit2.
1453
1454         This patch brings: firstly better compliance with other ports,
1455         secondly it makes code cleaner.
1456
1457         Besides, the evasObject is only directly used in the ScrollbarEfl
1458         subclass of Widget and not in Widget or ScrollView or any other subclass,
1459         thus the evas_object code has now been concentrated in ScrollbarEfl.
1460
1461         No new tests as there are no behavioral changes.
1462
1463         * page/efl/EventHandlerEfl.cpp:
1464         * platform/Widget.h:
1465         (Widget):
1466         (WebCore::Widget::evasObject):
1467         * platform/efl/ScrollbarEfl.cpp:
1468         (ScrollbarEfl::~ScrollbarEfl):
1469         (scrollbarEflEdjeMessage):
1470         (ScrollbarEfl::show):
1471         (ScrollbarEfl::hide):
1472         (ScrollbarEfl::setParent):
1473         (ScrollbarEfl::updateThumbPositionAndProportion):
1474         (ScrollbarEfl::frameRectsChanged):
1475         * platform/efl/ScrollbarEfl.h:
1476         (ScrollbarEfl):
1477         * platform/efl/WidgetEfl.cpp:
1478         (WebCore::Widget::Widget):
1479         (WebCore::Widget::~Widget):
1480         (WebCore::Widget::frameRectsChanged):
1481         (WebCore::Widget::show):
1482         (WebCore::Widget::hide):
1483         (WebCore::Widget::setEvasObject):
1484         * plugins/efl/PluginViewEfl.cpp:
1485         (WebCore::PluginView::platformGetValue):
1486
1487 2013-03-13  Andrey Lushnikov  <lushnikov@chromium.org>
1488
1489         Web Inspector: [CodeMirror] token highlight still has some problems
1490         https://bugs.webkit.org/show_bug.cgi?id=112173
1491
1492         Reviewed by Vsevolod Vlasov.
1493
1494         Use pseudo elements with borders to draw token highlight.
1495
1496         No new tests.
1497
1498         * inspector/front-end/cm/cmdevtools.css:
1499         (.cm-token-highlight):
1500         (.cm-token-highlight:before):
1501         (.cm-line-with-selection .cm-column-with-selection:before):
1502
1503 2013-03-13  Alberto Garcia  <agarcia@igalia.com>
1504
1505         [BlackBerry] SimpleFontData: remove duplicate code
1506         https://bugs.webkit.org/show_bug.cgi?id=112149
1507
1508         Reviewed by Carlos Garcia Campos.
1509
1510         smallCapsFontData() and emphasisMarkFontData() were moved from
1511         platform specific files into platform/graphics/SimpleFontData.cpp
1512         in r133362, so the BlackBerry port no longer needs its own
1513         implementation.
1514
1515         * platform/graphics/blackberry/SimpleFontDataBlackBerry.cpp:
1516
1517 2013-03-13  Ilya Tikhonovsky  <loislo@chromium.org>
1518
1519         Web Inspector: throw an exception if the requested lazy loaded script does not exist.
1520         https://bugs.webkit.org/show_bug.cgi?id=112237
1521
1522         Reviewed by Pavel Feldman.
1523
1524         * inspector/front-end/utilities.js:
1525
1526 2013-03-13  Mike West  <mkwst@chromium.org>
1527
1528         Pass the XSSAuditor's report URL to the XSSAuditorDelegate on the main thread.
1529         https://bugs.webkit.org/show_bug.cgi?id=112179
1530
1531         Reviewed by Adam Barth.
1532
1533         Rather than relying on XSSInfo objects to move the XSSAuditor's report
1534         URL into the XSSAuditorDelegate for reporting, we should be able to grab
1535         the URL directly from XSSAuditor before it moves off the main thread,
1536         and store it on the delegate.
1537
1538         This will enable us to drop the report URL properties from both
1539         XSSAuditor and XSSInfo. Oh, happy day!
1540
1541         * html/parser/BackgroundHTMLParser.cpp:
1542         (WebCore::BackgroundHTMLParser::sendTokensToMainThread):
1543             We no longer need to check whether XSSInfo objects are thread safe,
1544             as we've dropped the only problematic bit.
1545         * html/parser/HTMLDocumentParser.cpp:
1546         (WebCore::HTMLDocumentParser::pumpTokenizer):
1547         (WebCore::HTMLDocumentParser::startBackgroundParser):
1548         * html/parser/XSSAuditor.cpp:
1549         (WebCore::XSSAuditor::init):
1550             When initializing the XSSAuditor, pass in an XSSAuditorDelegate*
1551             and assign the report URL directly onto that object.
1552         (WebCore::XSSAuditor::filterToken):
1553             Drop the report URL parameter from XSSInfo objects we create in the
1554             Auditor, as they're now handled directly from the delegate.
1555         (WebCore::XSSAuditor::isSafeToSendToAnotherThread):
1556             Drop the report URL property from XSSAuditor's threadsafeness check,
1557             as properties that do not exist are automatically thread-safe.
1558         * html/parser/XSSAuditorDelegate.cpp:
1559         (WebCore::XSSAuditorDelegate::didBlockScript):
1560             Use the delegate's own report URL rather than the XSSInfo objects'.
1561         * html/parser/XSSAuditorDelegate.h:
1562         (WebCore::XSSInfo::create):
1563         (WebCore::XSSInfo::XSSInfo):
1564             Drop the report URL property from XSSInfo.
1565         (WebCore::XSSAuditorDelegate::setReportURL):
1566         (XSSAuditorDelegate):
1567             Provide a public API for setting a delegate's report URL.
1568
1569 2013-03-13  Mike West  <mkwst@chromium.org>
1570
1571         Unsafe JavaScript attempt errors are ludicrously verbose and annoying
1572         https://bugs.webkit.org/show_bug.cgi?id=112042
1573
1574         Reviewed by Timothy Hatcher.
1575
1576         This patch attempts to make the most common case of error message less
1577         ludicrous by adjusting it to include only an origin as opposed to full
1578         URLs for the active and target frames. It now reads: "Blocked a frame
1579         with origin 'http://127.0.0.1:8000' from accessing a frame with origin
1580         'http://localhost:8000'. Protocols, domains, and ports must match."
1581
1582         In the interest of keeping the patch size down, I'll follow up on the
1583         other cases (sandboxed access, 'document.domain' mismatches, etc) in
1584         future patches.
1585
1586         * page/DOMWindow.cpp:
1587         (WebCore::DOMWindow::crossDomainAccessErrorMessage):
1588
1589 2013-03-13  Takashi Sakamoto  <tasak@google.com>
1590
1591         Implement :scope for element.querySelector[All]()
1592         https://bugs.webkit.org/show_bug.cgi?id=81069
1593
1594         Reviewed by Dimitri Glazkov.
1595
1596         Implemented :scope for element.querySelector[All]().
1597         Reuse scope in SelectorCheckingContext and added a new value to
1598         enum BehaviorAtBoundary.
1599         :scope spec is http://dev.w3.org/csswg/selectors4/#scope-pseudo.
1600
1601         Test: fast/selectors/querySelector-scope.html
1602
1603         * css/CSSSelector.cpp:
1604         (WebCore::CSSSelector::pseudoId):
1605         (WebCore::nameToPseudoTypeMap):
1606         (WebCore::CSSSelector::extractPseudoType):
1607         Added :scope pseudo type.
1608         * css/CSSSelector.h:
1609         * css/SelectorChecker.cpp:
1610         (WebCore::SelectorChecker::match):
1611         (WebCore::SelectorChecker::checkOne):
1612         Added PseudoScope case and modified "scope" meaning when
1613         behaviorAtBoundary is equal to StaysWithinTreeScope.
1614         If so, "scope" is just a contextual reference node.
1615         * css/SelectorChecker.h:
1616         * dom/SelectorQuery.cpp:
1617         (WebCore::SelectorDataList::selectorMatches):
1618         (WebCore::SelectorDataList::matches):
1619         (WebCore::SelectorDataList::execute):
1620         Use rootNode as a contextual reference node.
1621         * dom/SelectorQuery.h:
1622         (SelectorDataList):
1623
1624 2013-03-13  Alberto Garcia  <agarcia@igalia.com>
1625
1626         [BlackBerry] FontPlatformData: remove TextOrientation parameter
1627         https://bugs.webkit.org/show_bug.cgi?id=112135
1628
1629         Reviewed by Rob Buis.
1630
1631         This doesn't exist since r136520.
1632
1633         * platform/graphics/blackberry/FontCacheBlackBerry.cpp:
1634         (WebCore::FontCache::createFontPlatformData):
1635         * platform/graphics/blackberry/FontCustomPlatformData.h:
1636         (FontCustomPlatformData):
1637         * platform/graphics/blackberry/FontCustomPlatformDataBlackBerry.cpp:
1638         (WebCore::FontCustomPlatformData::fontPlatformData):
1639         * platform/graphics/blackberry/FontPlatformDataBlackBerry.cpp:
1640         (WebCore::FontPlatformData::FontPlatformData):
1641         (WebCore::FontPlatformData::applyState):
1642         * platform/graphics/blackberry/SimpleFontDataBlackBerry.cpp:
1643         (WebCore::SimpleFontData::createScaledFontData):
1644
1645 2013-03-12  Antti Koivisto  <antti@apple.com>
1646
1647         Basic child obscuration test for backgrounds
1648         https://bugs.webkit.org/show_bug.cgi?id=111701
1649
1650         Reviewed by Simon Fraser.
1651         
1652         Test: fast/repaint/obscured-background-no-repaint.html
1653
1654         We can easily detect some simple cases where a background image is fully obscured by an opaque child.
1655         
1656         This avoids unncessary painting and image decoding. It is especially helpful for cases like about.com home
1657         page where a fully obscured 'loading' spinner keeps triggering frequent complex repaints (gif animations
1658         progress by getting painted and stop if they are not).
1659         
1660         This could be made way more sophisticated. The checking could also be done per-layout rather per-paint.
1661         Even this simple approach gets hit surprisingly often in real world sites.
1662
1663         * rendering/RenderBox.cpp:
1664         (WebCore::RenderBox::backgroundIsObscured):
1665         
1666             Before painting background test if any single child renderer fully obscures it.
1667
1668         (WebCore::RenderBox::backgroundIsOpaqueInRect):
1669         * rendering/RenderBox.h:
1670
1671 2013-03-12  Hayato Ito  <hayato@chromium.org>
1672
1673         [Crash] Touch Events retargeting causes crashes on chrome on android.
1674         https://bugs.webkit.org/show_bug.cgi?id=112210
1675
1676         Reviewed by Dimitri Glazkov.
1677
1678         Added null-check for TouchEvent's touches(), targetTouches() and changedTouches().
1679
1680         No new tests - no new functionality.
1681
1682         * dom/EventRetargeter.cpp:
1683         (WebCore::EventRetargeter::adjustForTouchEvent):
1684         (WebCore::EventRetargeter::adjustTouchList):
1685         * dom/EventRetargeter.h:
1686
1687 2013-03-12  Geoffrey Garen  <ggaren@apple.com>
1688
1689         Unreviewed attempted Windows build fix after http://trac.webkit.org/changeset/145592.
1690
1691         * platform/RunLoopTimer.h: Removed.
1692
1693 2013-03-12  Huang Dongsung  <luxtella@company100.net>
1694
1695         Coordinated Graphics: Remove CoordinatedGraphicsLayer::setRootLayer().
1696         https://bugs.webkit.org/show_bug.cgi?id=111835
1697
1698         Reviewed by Luiz Agostini.
1699
1700         This patch removes CoordinatedGraphicsLayer::setRootLayer() because
1701         CoordinatedGraphicsScene already knows which layer is root.
1702
1703         No new tests, no behavior change.
1704
1705         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
1706         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
1707         (CoordinatedGraphicsLayer):
1708         * platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp:
1709         (WebCore::CoordinatedGraphicsScene::setLayerState):
1710         * platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h:
1711         (WebCore::CoordinatedGraphicsLayerState::CoordinatedGraphicsLayerState):
1712
1713 2013-03-12  Jun Jiang  <jun.a.jiang@intel.com>
1714
1715         Enable GPU-GPU texture copy in texImage2D() for HTMLVideoElement if hardware accelerated video decode is in use
1716         https://bugs.webkit.org/show_bug.cgi?id=111126
1717
1718         Reviewed by Kenneth Russell.
1719
1720         In texImage2D() for HTMLVideoElement in WebGL, it is possible to do a GPU-GPU texture copy instead of CPU readback
1721         and upload when videoFrame is in the form of textures. Each platform port needs to implement the interface
1722         copyVideoTextureToPlatformTexture() defined in MediaPlayer.h to make it work.
1723  
1724         Already covered by current tests.
1725
1726         * html/HTMLVideoElement.cpp:
1727         (WebCore::HTMLVideoElement::copyVideoTextureToPlatformTexture):
1728         * html/HTMLVideoElement.h:
1729         (HTMLVideoElement):
1730         * html/canvas/WebGLRenderingContext.cpp:
1731         (WebCore::WebGLRenderingContext::videoFrameToImage): Move some security check to upper level.
1732         (WebCore::WebGLRenderingContext::texImage2D): Add the fast GPU-GPU textures copy path for HTMLVideoElement and some security check.
1733         (WebCore::WebGLRenderingContext::texSubImage2D): Add some security check.
1734         * html/canvas/WebGLTexture.cpp:
1735         (WebCore::WebGLTexture::isValid): Added to check if the texture is defined at the given level.
1736         * html/canvas/WebGLTexture.h:
1737         (WebGLTexture):
1738         * platform/graphics/MediaPlayer.cpp:
1739         (WebCore::MediaPlayer::copyVideoTextureToPlatformTexture): Added to do the GPU-GPU textures copy.
1740         * platform/graphics/MediaPlayer.h:
1741         (MediaPlayer):
1742         * platform/graphics/MediaPlayerPrivate.h:
1743         (WebCore::MediaPlayerPrivateInterface::copyVideoTextureToPlatformTexture):
1744
1745 2013-03-12  Sheriff Bot  <webkit.review.bot@gmail.com>
1746
1747         Unreviewed, rolling out r145280.
1748         http://trac.webkit.org/changeset/145280
1749         https://bugs.webkit.org/show_bug.cgi?id=112217
1750
1751         This patch broke chromium WebGL conformance tests (Requested
1752         by shawnsingh on #webkit).
1753
1754         * platform/graphics/gpu/DrawingBuffer.cpp:
1755         (WebCore::DrawingBuffer::reset):
1756         * platform/graphics/gpu/DrawingBuffer.h:
1757         (DrawingBuffer):
1758
1759 2013-03-12  Dean Jackson  <dino@apple.com>
1760
1761         Don't send events to plugins that are being snapshotted
1762         https://bugs.webkit.org/show_bug.cgi?id=112215
1763         <rdar://problem/13386224>
1764
1765         Reviewed by Tim Horton.
1766
1767         If a plugin is in the process of being snapshotted, do not forward it
1768         any events. This avoids the case where we can accidentally capture some
1769         custom mouse pointers, as well as trigger a plugin menu.
1770
1771         The next step will be to detect if the event should stop the snapshotting
1772         (restart the plugin).
1773
1774         * html/HTMLPlugInElement.cpp:
1775         (WebCore::HTMLPlugInElement::defaultEventHandler): Return early if the plugin is snapshotting.
1776
1777 2013-03-12  Tim Horton  <timothy_horton@apple.com>
1778
1779         Unreviewed attempted Windows build fix after http://trac.webkit.org/changeset/145592.
1780
1781         * WebCore.vcproj/WebCore.vcproj:
1782         * WebCore.vcxproj/WebCore.vcxproj:
1783         * WebCore.vcxproj/WebCore.vcxproj.filters:
1784
1785 2013-03-12  James Robinson  <jamesr@chromium.org>
1786
1787         Fix Gamepad::axes and Gamepad::buttons to avoid calling std::copy(..., ..., 0)
1788         https://bugs.webkit.org/show_bug.cgi?id=89510
1789
1790         Reviewed by Kenneth Russell.
1791
1792         WTF::Vector::begin() returns 0 when the vector has length zero. On windows, the debug implementation of
1793         std::copy() is unhappy with 0 as a third parameter even when the first and second parameters are equal.
1794
1795         Covered by gamepad/gamepad-polling-access.html
1796
1797         * Modules/gamepad/Gamepad.cpp:
1798         (WebCore::Gamepad::axes):
1799         (WebCore::Gamepad::buttons):
1800
1801 2013-03-12  Elliott Sprehn  <esprehn@chromium.org>
1802
1803         Remove TextIterator.cpp's isAllCollapsibleWhitespace
1804         https://bugs.webkit.org/show_bug.cgi?id=112200
1805
1806         Reviewed by Ryosuke Niwa.
1807
1808         Remove isAllCollapsibleWhitespace since nothing uses it.
1809
1810         * editing/TextIterator.cpp: Remove isAllCollapsibleWhitespace.
1811
1812 2013-03-12  Bear Travis  <betravis@adobe.com>
1813
1814         [css exclusions] Move ExclusionShapeInsideInfo into RenderBlockRareData
1815         https://bugs.webkit.org/show_bug.cgi?id=110995
1816
1817         Reviewed by Julien Chaffraix.
1818
1819         This patch moves ExclusionShapeInsideInfo into the RenderBlockRareData struct,
1820         which enables us to move away from the global ExclusionShapeInsideInfo map.
1821         Some additional refactoring was done to remove ExclusionShapeInsideInfo's
1822         dependency on InlineIterator, which depended on RenderBlock. This work required
1823         adding a new LineSegmentIterator struct.
1824
1825         Refactoring, no new tests.
1826
1827         * rendering/ExclusionShapeInsideInfo.cpp:
1828         (WebCore):
1829         (WebCore::LineSegmentRange::LineSegmentRange): Moving the InlineIterator
1830         constructor to the .cpp file, as InlineIterator is now forward declared in
1831         the .h file.
1832         (WebCore::ExclusionShapeInsideInfo::isEnabledFor): Moving isEnabledFor to
1833         the .cpp file, as RenderBlock is now forward declared in the .h file.
1834         * rendering/ExclusionShapeInsideInfo.h:
1835         (WebCore):
1836         (LineSegmentIterator): A simple struct for containing segment positions for
1837         layout.
1838         (WebCore::LineSegmentIterator::LineSegmentIterator): Constructor.
1839         (LineSegmentRange): Transitioning to store LineSegmentIterator.
1840         (WebCore::LineSegmentRange::LineSegmentRange): Ditto.
1841         (ExclusionShapeInsideInfo):
1842         * rendering/RenderBlock.cpp:
1843         (WebCore::RenderBlock::willBeDestroyed): Destroying a block will now destroy
1844         its ExclusionShapeInsideInfo, so there is no need to remove it from the map.
1845         (WebCore):
1846         (WebCore::RenderBlock::updateExclusionShapeInsideInfoAfterStyleChange): Use
1847         the RenderBlockRareData struct rather than the global map.
1848         * rendering/RenderBlock.h:
1849         (WebCore):
1850         (WebCore::RenderBlock::ensureExclusionShapeInsideInfo): Ensure an info struct
1851         is present if the shape-inside style is set.
1852         (WebCore::RenderBlock::exclusionShapeInsideInfo): Look up the info struct for
1853         the current block.
1854         (WebCore::RenderBlock::setExclusionShapeInsideInfo): Update the info struct
1855         for the current block.
1856         (RenderBlockRareData): Add the ExclusionShapeInsideInfo member. Move the struct
1857         declaration to be public, so that the OwnPtr reference can properly delete it.
1858         * rendering/RenderBlockLineLayout.cpp:
1859         (WebCore::constructBidiRunsForLine): Construct the appropriate offsets during
1860         layout based on the stored LineSegmentIterators.
1861
1862 2013-03-12  James Robinson  <jamesr@chromium.org>
1863
1864         Build fix for r145592 - update gyp files to refer to new file locations.
1865
1866         * WebCore.gypi:
1867
1868 2013-03-12  Benjamin Poulain  <bpoulain@apple.com>
1869
1870         Add a single character cache to WidthCache
1871         https://bugs.webkit.org/show_bug.cgi?id=112084
1872
1873         Reviewed by Geoffrey Garen.
1874
1875         More than half of the values stored in WidthCache are values
1876         for a single character.
1877
1878         Previously, we were creating a new SmallStringKey for each one of
1879         them, causing a lot of extra memory operations even for the simple
1880         cases.
1881
1882         This patch adds a second map, m_singleCharMap, to simplify the
1883         computation for the common case of a single char TextRun.
1884
1885         * platform/graphics/WidthCache.h:
1886         (WebCore::WidthCache::clear):
1887         (WidthCache):
1888         (WebCore::WidthCache::addSlowCase):
1889
1890 2013-03-12  Philip Rogers  <pdr@google.com>
1891
1892         Replace static_casts for SVG transformable and locatable elements
1893         https://bugs.webkit.org/show_bug.cgi?id=111651
1894
1895         Reviewed by Abhishek Arya.
1896
1897         toSVGStyledTransformableElement and toSVGStyledLocatableElement are preferred over
1898         static_casts because bad casts can be caught on our testing infrastructure. This patch
1899         replaces all static_casts for SVGStyledTransformableElement and SVGStyledLocatableElement
1900         with toSVGStyledTransformableElement and toSVGStyledLocatableElement, respectively.
1901
1902         No new tests as this is covered with existing tests.
1903
1904         * rendering/svg/RenderSVGResourceClipper.cpp:
1905         (WebCore::RenderSVGResourceClipper::pathOnlyClipping):
1906         * rendering/svg/RenderSVGResourceContainer.cpp:
1907         (WebCore::RenderSVGResourceContainer::transformOnNonScalingStroke):
1908         * rendering/svg/RenderSVGShape.cpp:
1909         (WebCore::RenderSVGShape::updateShapeFromElement):
1910         (WebCore::RenderSVGShape::layout):
1911         (WebCore::RenderSVGShape::nonScalingStrokeTransform):
1912         (WebCore::RenderSVGShape::shouldGenerateMarkerPositions):
1913         * rendering/svg/RenderSVGTransformableContainer.cpp:
1914         (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
1915         * svg/SVGAnimatedLength.cpp:
1916         (WebCore::SVGAnimatedLengthAnimator::calculateDistance):
1917
1918             This was an unnecessary cast and has been removed.
1919
1920         * svg/SVGElement.cpp:
1921         (WebCore::SVGElement::getBoundingBox):
1922         * svg/SVGLocatable.cpp:
1923         (WebCore::SVGLocatable::getTransformToElement):
1924         * svg/SVGStyledLocatableElement.h:
1925         (WebCore):
1926         (WebCore::toSVGStyledLocatableElement):
1927         * svg/SVGStyledTransformableElement.h:
1928         (WebCore):
1929         (WebCore::toSVGStyledTransformableElement):
1930
1931             It makes the code cleaner to pass Node* in here, rather than converting the Node*
1932             to an SVGElement* before calling this function. The same was not necessary for
1933             SVGStyledLocatable.
1934
1935         * svg/SVGSVGElement.h:
1936         (WebCore):
1937         (WebCore::toSVGSVGElement):
1938
1939             This code has been cleaned up. During the review of this patch, a similar cleanup
1940             was done in toSVGStyledTransformableElement.
1941
1942         * svg/SVGUseElement.cpp:
1943         (WebCore::SVGUseElement::toClipPath):
1944
1945 2013-03-12  Abhishek Arya  <inferno@chromium.org>
1946
1947         Replace static_casts with to* helper functions.
1948         https://bugs.webkit.org/show_bug.cgi?id=112164
1949
1950         Reviewed by Philip Rogers.
1951
1952         to* helper functions are preferred over static_cast calls since they
1953         help to catch bad casts easily on the testing infrastructure.
1954
1955         * css/ElementRuleCollector.cpp:
1956         (WebCore::ElementRuleCollector::collectMatchingRulesForRegion):
1957         * platform/gtk/PasteboardGtk.cpp:
1958         (WebCore::getURLForImageNode):
1959         (WebCore::Pasteboard::writeImage):
1960         * platform/gtk/RenderThemeGtk.cpp:
1961         (WebCore::getMediaElementFromRenderObject):
1962         * platform/qt/RenderThemeQtMobile.cpp:
1963         (WebCore::RenderThemeQtMobile::checkMultiple):
1964         * rendering/HitTestResult.cpp:
1965         (WebCore::HitTestResult::title):
1966         (WebCore::HitTestResult::absoluteImageURL):
1967         (WebCore::HitTestResult::absolutePDFURL):
1968         * rendering/RenderLayer.cpp:
1969         (WebCore::RenderLayer::resize):
1970         (WebCore::RenderLayer::hitTest):
1971         * rendering/RenderMenuList.cpp:
1972         (WebCore::RenderMenuList::valueChanged):
1973         * rendering/RenderObject.cpp:
1974         (WebCore::RenderObject::addPDFURLRect):
1975         * rendering/RenderPart.cpp:
1976         (WebCore::RenderPart::requiresAcceleratedCompositing):
1977         * rendering/RenderRegion.cpp:
1978         (WebCore::RenderRegion::checkRegionStyle):
1979         * rendering/RenderTableCell.cpp:
1980         (WebCore::RenderTableCell::computePreferredLogicalWidths):
1981         * rendering/RenderTheme.cpp:
1982         (WebCore::RenderTheme::isEnabled):
1983         (WebCore::RenderTheme::isSpinUpButtonPartPressed):
1984         (WebCore::RenderTheme::isHovered):
1985         (WebCore::RenderTheme::isSpinUpButtonPartHovered):
1986         (WebCore::RenderTheme::paintSliderTicks):
1987         * rendering/RenderThemeWinCE.cpp:
1988         (WebCore::mediaElementParent):
1989         * rendering/RenderTreeAsText.cpp:
1990         (WebCore::isEmptyOrUnstyledAppleStyleSpan):
1991         (WebCore::RenderTreeAsText::writeRenderObject):
1992         (WebCore::writeRenderRegionList):
1993         * rendering/svg/SVGRenderTreeAsText.cpp:
1994         (WebCore::writeSVGResourceContainer):
1995
1996 2013-03-12  Geoffrey Garen  <ggaren@apple.com>
1997
1998         Moved RunLoopTimer and SchedulePair to WTF
1999         https://bugs.webkit.org/show_bug.cgi?id=112171
2000
2001         Reviewed by Oliver Hunt.
2002
2003         This will allow us to use timers in lower level primitives without
2004         duplicating all the code.
2005
2006         * WebCore.exp.in:
2007         * WebCore.xcodeproj/project.pbxproj:
2008         * loader/DocumentLoader.h:
2009         (WTF):
2010         (WebCore):
2011         (DocumentLoader):
2012         * loader/MainResourceLoader.h:
2013         * page/Page.h:
2014         * platform/AutodrainedPool.h: Removed.
2015         * platform/cf/RunLoopTimerCF.cpp: Removed.
2016         * platform/cf/SchedulePair.cpp: Removed.
2017         * platform/cf/SchedulePair.h: Removed.
2018         * platform/mac/AutodrainedPool.mm: Removed.
2019         * platform/mac/SchedulePairMac.mm: Removed.
2020         * platform/network/NetworkingContext.h:
2021         * platform/network/ResourceHandle.h:
2022         (WTF):
2023         (WebCore):
2024         (ResourceHandle):
2025         * platform/network/cf/FormDataStreamCFNet.cpp:
2026         * platform/network/mac/ResourceHandleMac.mm:
2027
2028 2013-03-12  Christian Biesinger  <cbiesinger@chromium.org>
2029
2030         Mac: Incorrect rendering of <audio> controls
2031         https://bugs.webkit.org/show_bug.cgi?id=110913
2032
2033         Reviewed by Tony Chang.
2034
2035         Covered by existing tests under media/.
2036
2037         * css/mediaControls.css:
2038         (audio::-webkit-media-controls-timeline-container, video::-webkit-media-controls-timeline-container):
2039         (audio::-webkit-media-controls-timeline, video::-webkit-media-controls-timeline):
2040         The timeline container and the timeline need min-width: 0 so that they can shrink if needed.
2041         * css/mediaControlsQuickTime.css:
2042         (audio::-webkit-media-controls-timeline-container, video::-webkit-media-controls-timeline-container):
2043         (audio::-webkit-media-controls-current-time-display, video::-webkit-media-controls-current-time-display):
2044         (audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-time-remaining-display):
2045         The timeline container also needs flex-start to ensure that it never overlaps
2046         the play/rewind buttons. The current-time and remaining-time displays need min-width: 0 so that the hack
2047         in RenderMediaControls.cpp works correctly - otherwise, RenderFlexibleBox tries to use the preferred width
2048         of the time displays, which is wrong when they try to hide themselves.
2049
2050 2013-03-12  Alexey Proskuryakov  <ap@apple.com>
2051
2052         Improve logging in ResourceHandleMac.mm
2053         https://bugs.webkit.org/show_bug.cgi?id=112185
2054
2055         Reviewed by Brady Eidson.
2056
2057         * platform/network/mac/ResourceHandleMac.mm:
2058         (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Removed an obsolete #if.
2059         (WebCore::ResourceHandle::receivedCredential):
2060         (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential):
2061         (WebCore::ResourceHandle::receivedCancellation):
2062         (-[WebCoreResourceHandleAsDelegate connection:didCancelAuthenticationChallenge:]): Added a FIXME.
2063         (-[WebCoreResourceHandleAsDelegate connection:canAuthenticateAgainstProtectionSpace:]):
2064
2065         * platform/network/mac/ResourceResponseMac.mm: Removed an unneeded include.
2066
2067 2013-03-12  Sheriff Bot  <webkit.review.bot@gmail.com>
2068
2069         Unreviewed, rolling out r145554.
2070         http://trac.webkit.org/changeset/145554
2071         https://bugs.webkit.org/show_bug.cgi?id=112182
2072
2073         Breaks several extension browser tests (see bug for details)
2074         (Requested by jamesr on #webkit).
2075
2076         * bindings/scripts/CodeGeneratorV8.pm:
2077         (GenerateHeader):
2078         (GenerateDomainSafeFunctionGetter):
2079         (GenerateImplementation):
2080         (CreateCustomSignature):
2081         * bindings/scripts/test/V8/V8Float64Array.cpp:
2082         (WebCore::ConfigureV8Float64ArrayTemplate):
2083         (WebCore::V8Float64Array::GetTemplate):
2084         (WebCore::V8Float64Array::HasInstance):
2085         * bindings/scripts/test/V8/V8Float64Array.h:
2086         (V8Float64Array):
2087         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
2088         (WebCore::TestActiveDOMObjectV8Internal::postMessageAttrGetter):
2089         (WebCore::ConfigureV8TestActiveDOMObjectTemplate):
2090         (WebCore::V8TestActiveDOMObject::GetTemplate):
2091         (WebCore::V8TestActiveDOMObject::HasInstance):
2092         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
2093         (V8TestActiveDOMObject):
2094         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
2095         (WebCore::V8TestCustomNamedGetter::GetTemplate):
2096         (WebCore::V8TestCustomNamedGetter::HasInstance):
2097         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
2098         (V8TestCustomNamedGetter):
2099         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
2100         (WebCore::V8TestEventConstructor::GetTemplate):
2101         (WebCore::V8TestEventConstructor::HasInstance):
2102         * bindings/scripts/test/V8/V8TestEventConstructor.h:
2103         (V8TestEventConstructor):
2104         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
2105         (WebCore::ConfigureV8TestEventTargetTemplate):
2106         (WebCore::V8TestEventTarget::GetTemplate):
2107         (WebCore::V8TestEventTarget::HasInstance):
2108         * bindings/scripts/test/V8/V8TestEventTarget.h:
2109         (V8TestEventTarget):
2110         * bindings/scripts/test/V8/V8TestException.cpp:
2111         (WebCore::V8TestException::GetTemplate):
2112         (WebCore::V8TestException::HasInstance):
2113         * bindings/scripts/test/V8/V8TestException.h:
2114         (V8TestException):
2115         * bindings/scripts/test/V8/V8TestInterface.cpp:
2116         (WebCore::ConfigureV8TestInterfaceTemplate):
2117         (WebCore::V8TestInterface::GetTemplate):
2118         (WebCore::V8TestInterface::HasInstance):
2119         * bindings/scripts/test/V8/V8TestInterface.h:
2120         (V8TestInterface):
2121         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
2122         (WebCore::V8TestMediaQueryListListener::GetTemplate):
2123         (WebCore::V8TestMediaQueryListListener::HasInstance):
2124         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
2125         (V8TestMediaQueryListListener):
2126         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
2127         (WebCore::V8TestNamedConstructor::GetTemplate):
2128         (WebCore::V8TestNamedConstructor::HasInstance):
2129         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
2130         (V8TestNamedConstructor):
2131         * bindings/scripts/test/V8/V8TestNode.cpp:
2132         (WebCore::V8TestNode::GetTemplate):
2133         (WebCore::V8TestNode::HasInstance):
2134         * bindings/scripts/test/V8/V8TestNode.h:
2135         (V8TestNode):
2136         * bindings/scripts/test/V8/V8TestObj.cpp:
2137         (WebCore::ConfigureV8TestObjTemplate):
2138         (WebCore::V8TestObj::GetTemplate):
2139         (WebCore::V8TestObj::HasInstance):
2140         * bindings/scripts/test/V8/V8TestObj.h:
2141         (V8TestObj):
2142         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
2143         (WebCore::V8TestOverloadedConstructors::GetTemplate):
2144         (WebCore::V8TestOverloadedConstructors::HasInstance):
2145         * bindings/scripts/test/V8/V8TestOverloadedConstructors.h:
2146         (V8TestOverloadedConstructors):
2147         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
2148         (WebCore::V8TestSerializedScriptValueInterface::GetTemplate):
2149         (WebCore::V8TestSerializedScriptValueInterface::HasInstance):
2150         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
2151         (V8TestSerializedScriptValueInterface):
2152         * bindings/scripts/test/V8/V8TestTypedefs.cpp:
2153         (WebCore::ConfigureV8TestTypedefsTemplate):
2154         (WebCore::V8TestTypedefs::GetTemplate):
2155         (WebCore::V8TestTypedefs::HasInstance):
2156         * bindings/scripts/test/V8/V8TestTypedefs.h:
2157         (V8TestTypedefs):
2158         * bindings/v8/V8AdaptorFunction.cpp:
2159         (WebCore::V8AdaptorFunction::getTemplate):
2160         * bindings/v8/V8GCController.cpp:
2161         * bindings/v8/V8PerIsolateData.cpp:
2162         (WebCore::V8PerIsolateData::reportMemoryUsage):
2163         (WebCore::V8PerIsolateData::privateTemplate):
2164         (WebCore::V8PerIsolateData::rawTemplate):
2165         (WebCore::V8PerIsolateData::hasInstance):
2166         * bindings/v8/V8PerIsolateData.h:
2167         (WebCore::V8PerIsolateData::rawTemplateMap):
2168         (WebCore::V8PerIsolateData::templateMap):
2169         (V8PerIsolateData):
2170         * bindings/v8/WrapperTypeInfo.h:
2171         * bindings/v8/custom/V8LocationCustom.cpp:
2172         (WebCore::V8Location::reloadAttrGetterCustom):
2173         (WebCore::V8Location::replaceAttrGetterCustom):
2174         (WebCore::V8Location::assignAttrGetterCustom):
2175         * bindings/v8/custom/V8NodeListCustom.cpp:
2176         (WebCore::V8NodeList::opaqueRootForGC):
2177
2178 2013-03-12  Gavin Peters  <gavinp@chromium.org>
2179
2180         [chromium] Use lipo(1) rather than file(1) to list library architectures.
2181         https://bugs.webkit.org/show_bug.cgi?id=111147
2182
2183         Parsing file(1) output can be fragile; this patch replaces a use of file(1) to get
2184         the architecture list of a library with an invocation of lipo(1), which should be more
2185         stable.
2186
2187         Reviewed by Nico Weber.
2188
2189         No new tests, since adjust_visibility.sh doesn't have a test.
2190
2191         * WebCore.gyp/mac/adjust_visibility.sh:
2192
2193 2013-03-12  Viatcheslav Ostapenko  <sl.ostapenko@samsung.com>
2194
2195         Webkit unable to show gifs with applcation extension string shorter than 11 bytes
2196         https://bugs.webkit.org/show_bug.cgi?id=110620
2197
2198         Reviewed by Laszlo Gombos.
2199
2200         Use actual block size for gifs application extension string even if it is below 11 bytes 
2201         to be able to decode this kind of gifs.
2202
2203         Test: fast/images/gif-short-app-extension-string.html
2204
2205         * platform/image-decoders/gif/GIFImageReader.cpp:
2206         (GIFImageReader::decodeInternal):
2207
2208 2013-03-12  Sheriff Bot  <webkit.review.bot@gmail.com>
2209
2210         Unreviewed, rolling out r145277.
2211         http://trac.webkit.org/changeset/145277
2212         https://bugs.webkit.org/show_bug.cgi?id=112170
2213
2214         chromium-gpu and android testers are seeing failures/crashes
2215         relating to this code (Requested by eseidel on #webkit).
2216
2217         * html/parser/BackgroundHTMLInputStream.cpp:
2218         (WebCore::BackgroundHTMLInputStream::rewindTo):
2219         * html/parser/BackgroundHTMLInputStream.h:
2220         (BackgroundHTMLInputStream):
2221         (Checkpoint):
2222         * html/parser/BackgroundHTMLParser.cpp:
2223         * html/parser/BackgroundHTMLParser.h:
2224         (BackgroundHTMLParser):
2225         * html/parser/HTMLDocumentParser.cpp:
2226         (WebCore::HTMLDocumentParser::pumpPendingSpeculations):
2227
2228 2013-03-12  Simon Fraser  <simon.fraser@apple.com>
2229
2230         Keep track of the number of GraphicsLayers with tiled backing in RenderLayerCompositor
2231         https://bugs.webkit.org/show_bug.cgi?id=112083
2232
2233         Reviewed by Dean Jackson.
2234
2235         Have RenderLayerCompositor keep track of how many of its GraphicsLayers use TiledBacking.
2236         This is useful for platforms to decide whether it's necessary to force GraphicsLayer flushes
2237         to update the visibleRect of those TiledBackings.
2238         
2239         GraphicsLayers are always created without TiledBacking. There are two
2240         ways the count can change:
2241         1. A GraphicsLayerCA toggles into or out of tiled mode. It notifies its
2242            client via a new tiledBackingUsageChanged() callback on GraphicsLayerClient.
2243         2. A tiled GraphicsLayerCA is destroyed. Added a new bottleneck function to
2244            RenderLayerBacking::willDestroyLayer() that is called everywhere we destroy layers.
2245            
2246         The main page TiledBacking is not counted as part of this.
2247         
2248         Also renamed uses of "tiledLayer" to "tiledBacking" in GraphicsLayer[CA].
2249     
2250         * platform/graphics/GraphicsLayer.cpp:
2251         (WebCore::GraphicsLayer::GraphicsLayer):
2252         (WebCore::GraphicsLayer::getDebugBorderInfo):
2253         (WebCore::GraphicsLayer::dumpProperties):
2254         * platform/graphics/GraphicsLayer.h:
2255         (WebCore::GraphicsLayer::usingTiledBacking):
2256         * platform/graphics/GraphicsLayerClient.h:
2257         (WebCore::GraphicsLayerClient::tiledBackingUsageChanged):
2258         * platform/graphics/ca/GraphicsLayerCA.cpp:
2259         (WebCore::GraphicsLayerCA::recursiveCommitChanges):
2260         (WebCore::GraphicsLayerCA::updateGeometry):
2261         (WebCore::GraphicsLayerCA::updateLayerDrawsContent):
2262         (WebCore::GraphicsLayerCA::updateContentsScale):
2263         (WebCore::GraphicsLayerCA::swapFromOrToTiledLayer):
2264         * rendering/RenderLayerBacking.cpp:
2265         (WebCore::RenderLayerBacking::willDestroyLayer):
2266         (WebCore::RenderLayerBacking::tiledBackingUsageChanged):
2267         (WebCore::RenderLayerBacking::destroyGraphicsLayers):
2268         (WebCore::RenderLayerBacking::updateClippingLayers):
2269         (WebCore::RenderLayerBacking::updateOverflowControlsLayers):
2270         (WebCore::RenderLayerBacking::updateForegroundLayer):
2271         (WebCore::RenderLayerBacking::updateBackgroundLayer):
2272         (WebCore::RenderLayerBacking::updateMaskLayer):
2273         (WebCore::RenderLayerBacking::updateScrollingLayers):
2274         (WebCore::RenderLayerBacking::compositingLayerType):
2275         * rendering/RenderLayerBacking.h:
2276         * rendering/RenderLayerCompositor.cpp:
2277         (WebCore::RenderLayerCompositor::RenderLayerCompositor):
2278         (WebCore::RenderLayerCompositor::layerTiledBackingUsageChanged):
2279         * rendering/RenderLayerCompositor.h:
2280         (WebCore::RenderLayerCompositor::haveNonMainLayersWithTiledBacking):
2281
2282 2013-03-12  Abhishek Arya  <inferno@chromium.org>
2283
2284         Replace static_casts with to* functions.
2285         https://bugs.webkit.org/show_bug.cgi?id=112072
2286
2287         Reviewed by Philip Rogers.
2288
2289         to* functions are preferred over static_cast calls since they
2290         help to catch bad casts easily on the testing infrastructure.
2291
2292         * accessibility/AccessibilityMenuList.cpp:
2293         (WebCore::AccessibilityMenuList::canSetFocusAttribute):
2294         * bindings/objc/DOM.mm:
2295         (kitClass):
2296         * bindings/v8/V8LazyEventListener.cpp:
2297         (WebCore::V8LazyEventListener::prepareListenerObject):
2298         * css/SelectorChecker.cpp:
2299         (WebCore::SelectorChecker::checkOne):
2300         * editing/ApplyStyleCommand.cpp:
2301         (WebCore::isLegacyAppleStyleSpan):
2302         (WebCore::isEmptyFontTag):
2303         (WebCore::ApplyStyleCommand::applyBlockStyle):
2304         * editing/FormatBlockCommand.cpp:
2305         (WebCore::isElementForFormatBlock):
2306         * editing/ReplaceSelectionCommand.cpp:
2307         (WebCore::isMailPasteAsQuotationNode):
2308         (WebCore::haveSameTagName):
2309         (WebCore::ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline):
2310         (WebCore::ReplaceSelectionCommand::makeInsertedContentRoundTrippableWithHTMLTreeBuilder):
2311         * history/CachedPage.cpp:
2312         (WebCore::CachedPage::restore):
2313         * html/ColorInputType.cpp:
2314         (WebCore::ColorInputType::suggestions):
2315         * html/HTMLTableRowsCollection.cpp:
2316         (WebCore::isInHead):
2317         (WebCore::isInBody):
2318         (WebCore::isInFoot):
2319         * inspector/DOMPatchSupport.cpp:
2320         (WebCore::DOMPatchSupport::innerPatchNode):
2321         * page/PageSerializer.cpp:
2322         (WebCore::SerializerMarkupAccumulator::appendCustomAttributes):
2323         * plugins/PluginView.cpp:
2324         (WebCore::PluginView::getValue):
2325         * rendering/RenderEmbeddedObject.cpp:
2326         (WebCore::RenderEmbeddedObject::paintContents):
2327         (WebCore::RenderEmbeddedObject::handleUnavailablePluginIndicatorEvent):
2328         * rendering/RenderLayer.cpp:
2329         (WebCore::RenderLayer::name):
2330         * rendering/RenderMedia.cpp:
2331         (WebCore::RenderMedia::mediaElement):
2332         * rendering/RenderSearchField.cpp:
2333         (WebCore::RenderSearchField::autosaveName):
2334         * rendering/RenderTextControl.cpp:
2335         (WebCore::RenderTextControl::textFormControlElement):
2336         (WebCore::updateUserModifyProperty):
2337         * rendering/mathml/RenderMathMLFenced.cpp:
2338         (WebCore::RenderMathMLFenced::updateFromElement):
2339         * rendering/mathml/RenderMathMLFraction.cpp:
2340         (WebCore::RenderMathMLFraction::updateFromElement):
2341         * xml/parser/XMLDocumentParserLibxml2.cpp:
2342         (WebCore::XMLDocumentParser::XMLDocumentParser):
2343         (WebCore::XMLDocumentParser::endElementNs):
2344
2345 2013-03-12  Zan Dobersek  <zdobersek@igalia.com>
2346
2347         [GTK] Remove HILDON_CPPFLAGS and HILDON_CFLAGS references from GNUmakefiles
2348         https://bugs.webkit.org/show_bug.cgi?id=112163
2349
2350         Reviewed by Martin Robinson.
2351
2352         No new tests - no new functionality, merely a cleanup.
2353
2354         * GNUmakefile.am: The Hildon dependency doesn't exist anymore so there's no need for
2355         references to HILDON_CPPFLAGS and HILDON_CFLAGS.
2356
2357 2013-03-12  Pavel Feldman  <pfeldman@chromium.org>
2358
2359         Not reviewed: removing GtkVersioning from chromium targets.
2360
2361         * WebCore.gypi:
2362
2363 2013-03-12  Marja Hölttä  <marja@chromium.org>
2364
2365         [V8] Store main world and non-main world templates separately.
2366         https://bugs.webkit.org/show_bug.cgi?id=111724
2367
2368         Reviewed by Jochen Eisinger.
2369
2370         This is needed for generating specialized bindings for the main
2371         world (bug 110874).
2372
2373         No new tests (updated existing bindings tests).
2374
2375         * bindings/scripts/CodeGeneratorV8.pm:
2376         (GenerateHeader):
2377         (GenerateDomainSafeFunctionGetter):
2378         (GenerateImplementation):
2379         (CreateCustomSignature):
2380         * bindings/scripts/test/V8/V8Float64Array.cpp:
2381         (WebCore::ConfigureV8Float64ArrayTemplate):
2382         (WebCore::V8Float64Array::GetTemplate):
2383         (WebCore::V8Float64Array::HasInstance):
2384         * bindings/scripts/test/V8/V8Float64Array.h:
2385         (V8Float64Array):
2386         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
2387         (WebCore::TestActiveDOMObjectV8Internal::postMessageAttrGetter):
2388         (WebCore::ConfigureV8TestActiveDOMObjectTemplate):
2389         (WebCore::V8TestActiveDOMObject::GetTemplate):
2390         (WebCore::V8TestActiveDOMObject::HasInstance):
2391         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
2392         (V8TestActiveDOMObject):
2393         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
2394         (WebCore::V8TestCustomNamedGetter::GetTemplate):
2395         (WebCore::V8TestCustomNamedGetter::HasInstance):
2396         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
2397         (V8TestCustomNamedGetter):
2398         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
2399         (WebCore::V8TestEventConstructor::GetTemplate):
2400         (WebCore::V8TestEventConstructor::HasInstance):
2401         * bindings/scripts/test/V8/V8TestEventConstructor.h:
2402         (V8TestEventConstructor):
2403         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
2404         (WebCore::ConfigureV8TestEventTargetTemplate):
2405         (WebCore::V8TestEventTarget::GetTemplate):
2406         (WebCore::V8TestEventTarget::HasInstance):
2407         * bindings/scripts/test/V8/V8TestEventTarget.h:
2408         (V8TestEventTarget):
2409         * bindings/scripts/test/V8/V8TestException.cpp:
2410         (WebCore::V8TestException::GetTemplate):
2411         (WebCore::V8TestException::HasInstance):
2412         * bindings/scripts/test/V8/V8TestException.h:
2413         (V8TestException):
2414         * bindings/scripts/test/V8/V8TestInterface.cpp:
2415         (WebCore::ConfigureV8TestInterfaceTemplate):
2416         (WebCore::V8TestInterface::GetTemplate):
2417         (WebCore::V8TestInterface::HasInstance):
2418         * bindings/scripts/test/V8/V8TestInterface.h:
2419         (V8TestInterface):
2420         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
2421         (WebCore::V8TestMediaQueryListListener::GetTemplate):
2422         (WebCore::V8TestMediaQueryListListener::HasInstance):
2423         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
2424         (V8TestMediaQueryListListener):
2425         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
2426         (WebCore::V8TestNamedConstructor::GetTemplate):
2427         (WebCore::V8TestNamedConstructor::HasInstance):
2428         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
2429         (V8TestNamedConstructor):
2430         * bindings/scripts/test/V8/V8TestNode.cpp:
2431         (WebCore::V8TestNode::GetTemplate):
2432         (WebCore::V8TestNode::HasInstance):
2433         * bindings/scripts/test/V8/V8TestNode.h:
2434         (V8TestNode):
2435         * bindings/scripts/test/V8/V8TestObj.cpp:
2436         (WebCore::ConfigureV8TestObjTemplate):
2437         (WebCore::V8TestObj::GetTemplate):
2438         (WebCore::V8TestObj::HasInstance):
2439         * bindings/scripts/test/V8/V8TestObj.h:
2440         (V8TestObj):
2441         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
2442         (WebCore::V8TestOverloadedConstructors::GetTemplate):
2443         (WebCore::V8TestOverloadedConstructors::HasInstance):
2444         * bindings/scripts/test/V8/V8TestOverloadedConstructors.h:
2445         (V8TestOverloadedConstructors):
2446         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
2447         (WebCore::V8TestSerializedScriptValueInterface::GetTemplate):
2448         (WebCore::V8TestSerializedScriptValueInterface::HasInstance):
2449         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
2450         (V8TestSerializedScriptValueInterface):
2451         * bindings/scripts/test/V8/V8TestTypedefs.cpp:
2452         (WebCore::ConfigureV8TestTypedefsTemplate):
2453         (WebCore::V8TestTypedefs::GetTemplate):
2454         (WebCore::V8TestTypedefs::HasInstance):
2455         * bindings/scripts/test/V8/V8TestTypedefs.h:
2456         (V8TestTypedefs):
2457         * bindings/v8/V8AdaptorFunction.cpp:
2458         (WebCore::V8AdaptorFunction::getTemplate):
2459         * bindings/v8/V8GCController.cpp:
2460         * bindings/v8/V8PerIsolateData.cpp:
2461         (WebCore::V8PerIsolateData::reportMemoryUsage):
2462         (WebCore::V8PerIsolateData::privateTemplate):
2463         (WebCore::V8PerIsolateData::rawTemplate):
2464         (WebCore::V8PerIsolateData::hasInstance):
2465         * bindings/v8/V8PerIsolateData.h:
2466         (WebCore::V8PerIsolateData::rawTemplateMap):
2467         (V8PerIsolateData):
2468         (WebCore::V8PerIsolateData::templateMap):
2469         * bindings/v8/WrapperTypeInfo.h:
2470         * bindings/v8/custom/V8LocationCustom.cpp:
2471         (WebCore::V8Location::reloadAttrGetterCustom):
2472         (WebCore::V8Location::replaceAttrGetterCustom):
2473         (WebCore::V8Location::assignAttrGetterCustom):
2474
2475 2013-03-12  Zan Dobersek  <zdobersek@igalia.com>
2476
2477         [GTK] Set up the libPlatformGtk.la library
2478         https://bugs.webkit.org/show_bug.cgi?id=111738
2479
2480         Reviewed by Martin Robinson.
2481
2482         No new tests - no new functionality.
2483
2484         * GNUmakefile.am: Reference platformgtk_cppflags, platformgtk_sources variables along with webcoregtk_cppflags, webcoregtk_sources variables.
2485         * GNUmakefile.list.am: Removing GtkVersioning.c and GtkVersioning.h from the sources list, these files have been moved under Source/Platform.
2486         * bindings/gobject/GNUmakefile.am: Ditto on the platformgtk_* variables.
2487
2488 2013-03-12  Alberto Garcia  <agarcia@igalia.com>
2489
2490         [BlackBerry] Image,ImageBuffer: add missing parameters to methods
2491         https://bugs.webkit.org/show_bug.cgi?id=112148
2492
2493         Reviewed by Rob Buis.
2494
2495         BitmapImage::draw(), Image::drawPattern() and ImageBuffer::draw()
2496         have a BlendMode parameter since r137011.
2497
2498         ImageBuffer::copyImage() has a ScaleBehavior parameter since r134100.
2499
2500         * platform/graphics/blackberry/ImageBlackBerry.cpp:
2501         (WebCore::BitmapImage::draw):
2502         (WebCore::Image::drawPattern):
2503         * platform/graphics/blackberry/ImageBufferBlackBerry.cpp:
2504         (WebCore::ImageBuffer::copyImage):
2505         (WebCore::ImageBuffer::draw):
2506
2507 2013-03-12  Alberto Garcia  <agarcia@igalia.com>
2508
2509         [BlackBerry] MediaPlayerPrivate: fix call to MediaStreamDescriptor::label()
2510         https://bugs.webkit.org/show_bug.cgi?id=112140
2511
2512         Reviewed by Rob Buis.
2513
2514         MediaStreamDescriptor::id() was renamed to MediaStreamDescriptor::label() in r139352.
2515
2516         * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
2517         (WebCore::toWebMediaStreamDescriptor):
2518
2519 2013-03-12  Eugene Klyuchnikov  <eustas@chromium.org>
2520
2521         Web Inspector: [REGRESSION] StepInto (F11) and StepOut (Shift-F11) shortcuts toggle Inspector window full-screen state
2522         https://bugs.webkit.org/show_bug.cgi?id=112113
2523
2524         Reviewed by Alexander Pavlov.
2525
2526         Updated handlers missed in first patch. Added JSDocs to all handlers.
2527
2528         * inspector/front-end/Panel.js: Fixed JSDocs.
2529         * inspector/front-end/CallStackSidebarPane.js:
2530         Added return values. Added JSDocs.
2531         * inspector/front-end/ScriptsPanel.js: Ditto.
2532         * inspector/front-end/GoToLineDialog.js: Added JSDocs.
2533         * inspector/front-end/TimelinePanel.js: Ditto.
2534
2535 2013-03-12  Alberto Garcia  <agarcia@igalia.com>
2536
2537         [BlackBerry] DisplayRefreshMonitor: rename m_timestamp back to m_monotonicAnimationStartTime
2538         https://bugs.webkit.org/show_bug.cgi?id=112139
2539
2540         Reviewed by Rob Buis.
2541
2542         This changed in r131131, but it was accidentally renamed back in r144465.
2543
2544         * platform/graphics/blackberry/DisplayRefreshMonitorBlackBerry.cpp:
2545         (WebCore::DisplayRefreshMonitor::displayLinkFired):
2546
2547 2013-03-12  Alberto Garcia  <agarcia@igalia.com>
2548
2549         [BlackBerry] FontPlatformData: HarfBuzz renaming
2550         https://bugs.webkit.org/show_bug.cgi?id=112142
2551
2552         Reviewed by Rob Buis.
2553
2554         When the old HarfBuzz code was removed in r141291,
2555         HarfBuzzNGFace.h was renamed to HarfBuzzFace.h and m_harfbuzzFace
2556         was renamed to m_harfBuzzFace.
2557
2558         These changes need to be reflected in the BlackBerry port.
2559
2560         * platform/graphics/blackberry/FontPlatformDataBlackBerry.cpp:
2561         (WebCore::FontPlatformData::FontPlatformData):
2562         (WebCore::FontPlatformData::platformDataInit):
2563         (WebCore::FontPlatformData::platformDataAssign):
2564         (WebCore::FontPlatformData::harfBuzzFace):
2565
2566 2013-03-12  Alberto Garcia  <agarcia@igalia.com>
2567
2568         [BlackBerry] FontCacheBlackBerry: return PassRefPtr<SimpleFontData>
2569         https://bugs.webkit.org/show_bug.cgi?id=112022
2570
2571         Reviewed by Rob Buis.
2572
2573         FontData functions return PassRefPtr since r130160.
2574
2575         * platform/graphics/blackberry/FontCacheBlackBerry.cpp:
2576         (WebCore::FontCache::getFontDataForCharacters):
2577         (WebCore::FontCache::getSimilarFontPlatformData):
2578         (WebCore::FontCache::getLastResortFallbackFont):
2579         * platform/graphics/blackberry/SimpleFontDataBlackBerry.cpp:
2580         (WebCore::SimpleFontData::createScaledFontData):
2581
2582 2013-03-12  Vsevolod Vlasov  <vsevik@chromium.org>
2583
2584         Web Inspector: Fix checkContentUpdated behavior in UISourceCode.
2585         https://bugs.webkit.org/show_bug.cgi?id=112037
2586
2587         Reviewed by Alexander Pavlov.
2588
2589         UISourceCode.checkContentUpdated now saves last updated content that was loaded and rejected
2590         by user on the per-file basis (only the last one was saved currently).
2591
2592         * inspector/front-end/FileSystemProjectDelegate.js:
2593         (WebInspector.FileSystemProjectDelegate.prototype.innerCallback):
2594         (WebInspector.FileSystemProjectDelegate.prototype.requestFileContent):
2595         (WebInspector.FileSystemProjectDelegate.prototype.canSetFileContent):
2596         (WebInspector.FileSystemWorkspaceProvider.prototype._fileSystemAdded):
2597         * inspector/front-end/SimpleWorkspaceProvider.js:
2598         (WebInspector.SimpleProjectDelegate.prototype.canSetFileContent):
2599         * inspector/front-end/UISourceCode.js:
2600         (WebInspector.UISourceCode.prototype.checkContentUpdated.contentLoaded):
2601         (WebInspector.UISourceCode.prototype.checkContentUpdated):
2602         (WebInspector.UISourceCode.prototype._commitContent):
2603         (WebInspector.UISourceCode.prototype.addRevision):
2604         (WebInspector.UISourceCode.prototype.commitWorkingCopy):
2605         * inspector/front-end/Workspace.js:
2606         (WebInspector.ProjectDelegate.prototype.canSetFileContent):
2607         (WebInspector.Project.prototype.canSetFileContent):
2608
2609 2013-03-12  Tomas Popela  <tpopela@redhat.com>
2610
2611         [Gtk] NBSP are not replaced when using X clipboard
2612         https://bugs.webkit.org/show_bug.cgi?id=112118
2613
2614         Reviewed by Martin Robinson.
2615
2616         We're not replacing nbsp with spaces when using X clipboard
2617         (Shift+Insert or middle mouse button).
2618
2619         * platform/gtk/DataObjectGtk.cpp:
2620         (WebCore::DataObjectGtk::text):
2621
2622 2013-03-12  Florin Malita  <fmalita@chromium.org>
2623
2624         SVG Pattern pixelated on inline SVG with CSS transforms
2625         https://bugs.webkit.org/show_bug.cgi?id=111587
2626
2627         Reviewed by Dirk Schulze.
2628
2629         When calculating the resolution for resource image buffers, we need to also consider CSS
2630         transforms. This patch updates calculateTransformationToOutermostSVGCoordinateSystem()
2631         (renamed to calculateTransformationToOutermostCoordinateSystem) to include the affine
2632         component from CSS transforms by walking the parent layer tree.        
2633
2634         Test: svg/custom/resources-css-scaled.html
2635
2636         * rendering/svg/RenderSVGResourceClipper.cpp:
2637         (WebCore::RenderSVGResourceClipper::applyClippingToContext):
2638         * rendering/svg/RenderSVGResourceFilter.cpp:
2639         (WebCore::RenderSVGResourceFilter::applyResource):
2640         * rendering/svg/RenderSVGResourceGradient.cpp:
2641         (WebCore::createMaskAndSwapContextForTextGradient):
2642         (WebCore::clipToTextMask):
2643         * rendering/svg/RenderSVGResourceMasker.cpp:
2644         (WebCore::RenderSVGResourceMasker::applyResource):
2645         * rendering/svg/RenderSVGResourcePattern.cpp:
2646         (WebCore::RenderSVGResourcePattern::buildPattern):
2647         * rendering/svg/SVGRenderingContext.cpp:
2648         (WebCore::SVGRenderingContext::calculateScreenFontSizeScalingFactor):
2649         (WebCore::SVGRenderingContext::calculateTransformationToOutermostCoordinateSystem):
2650         * rendering/svg/SVGRenderingContext.h:
2651         (SVGRenderingContext):
2652
2653 2013-03-12  Yury Semikhatsky  <yurys@chromium.org>
2654
2655         Web Inspector: add html canvas memory details to the native memory overview
2656         https://bugs.webkit.org/show_bug.cgi?id=112123
2657
2658         Reviewed by Alexander Pavlov.
2659
2660         Show memory occupied vby HTMLCanvasElements under Image category
2661         in the native memory overview.
2662
2663         * inspector/front-end/NativeHeapSnapshot.js:
2664         (WebInspector.NativeHeapSnapshot.prototype.images.getImageName):
2665         (WebInspector.NativeHeapSnapshot.prototype.images.getCanvasName):
2666         (WebInspector.NativeHeapSnapshot.prototype.images):
2667         (WebInspector.NativeHeapSnapshot.prototype._addNodes):
2668
2669 2013-03-12  Vsevolod Vlasov  <vsevik@chromium.org>
2670
2671         Web Inspector: ResourceScriptFile diverged state should be correctly reset after debugger reset.
2672         https://bugs.webkit.org/show_bug.cgi?id=112036
2673
2674         Reviewed by Alexander Pavlov.
2675
2676         * inspector/front-end/ResourceScriptMapping.js:
2677         (WebInspector.ResourceScriptFile):
2678         (WebInspector.ResourceScriptFile.prototype._workingCopyChanged):
2679         (WebInspector.ResourceScriptFile.prototype._maybeDirtyChanged):
2680
2681 2013-03-12  Marja Hölttä  <marja@chromium.org>
2682
2683         [V8] Move the GetRawTemplate and HasInstance logic from generated bindings to V8PerIsolateData
2684         https://bugs.webkit.org/show_bug.cgi?id=112136
2685
2686         Reviewed by Kentaro Hara.
2687
2688         When templates for main world and non-main worlds will be separated (bug
2689         111724), HasInstance logic will be a bit ugly: We cannot determine the
2690         world type on the fly, because during GC there is no entered context,
2691         and HasInstance is called during GC. So we need to check against
2692         templates from all the worlds. It's cleaner if that logic is in
2693         V8PerIsolateData.
2694
2695         No new tests (Updated existing bindings tests).
2696
2697         * bindings/scripts/CodeGeneratorV8.pm:
2698         (GenerateHeader):
2699         (GenerateDomainSafeFunctionGetter):
2700         (GenerateImplementation):
2701         (CreateCustomSignature):
2702         * bindings/scripts/test/V8/V8Float64Array.cpp:
2703         (WebCore::ConfigureV8Float64ArrayTemplate):
2704         (WebCore::V8Float64Array::GetTemplate):
2705         (WebCore::V8Float64Array::HasInstance):
2706         * bindings/scripts/test/V8/V8Float64Array.h:
2707         (V8Float64Array):
2708         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
2709         (WebCore::TestActiveDOMObjectV8Internal::postMessageAttrGetter):
2710         (WebCore::ConfigureV8TestActiveDOMObjectTemplate):
2711         (WebCore::V8TestActiveDOMObject::GetTemplate):
2712         (WebCore::V8TestActiveDOMObject::HasInstance):
2713         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
2714         (V8TestActiveDOMObject):
2715         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
2716         (WebCore::V8TestCustomNamedGetter::GetTemplate):
2717         (WebCore::V8TestCustomNamedGetter::HasInstance):
2718         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
2719         (V8TestCustomNamedGetter):
2720         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
2721         (WebCore::V8TestEventConstructor::GetTemplate):
2722         (WebCore::V8TestEventConstructor::HasInstance):
2723         * bindings/scripts/test/V8/V8TestEventConstructor.h:
2724         (V8TestEventConstructor):
2725         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
2726         (WebCore::ConfigureV8TestEventTargetTemplate):
2727         (WebCore::V8TestEventTarget::GetTemplate):
2728         (WebCore::V8TestEventTarget::HasInstance):
2729         * bindings/scripts/test/V8/V8TestEventTarget.h:
2730         (V8TestEventTarget):
2731         * bindings/scripts/test/V8/V8TestException.cpp:
2732         (WebCore::V8TestException::GetTemplate):
2733         (WebCore::V8TestException::HasInstance):
2734         * bindings/scripts/test/V8/V8TestException.h:
2735         (V8TestException):
2736         * bindings/scripts/test/V8/V8TestInterface.cpp:
2737         (WebCore::ConfigureV8TestInterfaceTemplate):
2738         (WebCore::V8TestInterface::GetTemplate):
2739         (WebCore::V8TestInterface::HasInstance):
2740         * bindings/scripts/test/V8/V8TestInterface.h:
2741         (V8TestInterface):
2742         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
2743         (WebCore::V8TestMediaQueryListListener::GetTemplate):
2744         (WebCore::V8TestMediaQueryListListener::HasInstance):
2745         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
2746         (V8TestMediaQueryListListener):
2747         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
2748         (WebCore::V8TestNamedConstructor::GetTemplate):
2749         (WebCore::V8TestNamedConstructor::HasInstance):
2750         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
2751         (V8TestNamedConstructor):
2752         * bindings/scripts/test/V8/V8TestNode.cpp:
2753         (WebCore::V8TestNode::GetTemplate):
2754         (WebCore::V8TestNode::HasInstance):
2755         * bindings/scripts/test/V8/V8TestNode.h:
2756         (V8TestNode):
2757         * bindings/scripts/test/V8/V8TestObj.cpp:
2758         (WebCore::ConfigureV8TestObjTemplate):
2759         (WebCore::V8TestObj::GetTemplate):
2760         (WebCore::V8TestObj::HasInstance):
2761         * bindings/scripts/test/V8/V8TestObj.h:
2762         (V8TestObj):
2763         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
2764         (WebCore::V8TestOverloadedConstructors::GetTemplate):
2765         (WebCore::V8TestOverloadedConstructors::HasInstance):
2766         * bindings/scripts/test/V8/V8TestOverloadedConstructors.h:
2767         (V8TestOverloadedConstructors):
2768         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
2769         (WebCore::V8TestSerializedScriptValueInterface::GetTemplate):
2770         (WebCore::V8TestSerializedScriptValueInterface::HasInstance):
2771         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
2772         (V8TestSerializedScriptValueInterface):
2773         * bindings/scripts/test/V8/V8TestTypedefs.cpp:
2774         (WebCore::ConfigureV8TestTypedefsTemplate):
2775         (WebCore::V8TestTypedefs::GetTemplate):
2776         (WebCore::V8TestTypedefs::HasInstance):
2777         * bindings/scripts/test/V8/V8TestTypedefs.h:
2778         (V8TestTypedefs):
2779         * bindings/v8/V8PerIsolateData.cpp:
2780         (WebCore::V8PerIsolateData::rawTemplate):
2781         (WebCore):
2782         (WebCore::V8PerIsolateData::hasInstance):
2783         * bindings/v8/V8PerIsolateData.h:
2784         (V8PerIsolateData):
2785         * bindings/v8/custom/V8LocationCustom.cpp:
2786         (WebCore::V8Location::reloadAttrGetterCustom):
2787         (WebCore::V8Location::replaceAttrGetterCustom):
2788         (WebCore::V8Location::assignAttrGetterCustom):
2789
2790 2013-03-12  Eugene Klyuchnikov  <eustas@chromium.org>
2791
2792         Web Inspector: Fix JSDocs in TimelinePanel.js
2793         https://bugs.webkit.org/show_bug.cgi?id=112137
2794
2795         Reviewed by Vsevolod Vlasov.
2796
2797         Fix parameter type annotation of _loadFromFile.
2798
2799         * inspector/front-end/TimelinePanel.js: Fixed JSDoc.
2800
2801 2013-03-12  Vsevolod Vlasov  <vsevik@chromium.org>
2802
2803         Web Inspector: Add a test for Workspace add/removeMapping methods.
2804         https://bugs.webkit.org/show_bug.cgi?id=112035
2805
2806         Reviewed by Alexander Pavlov.
2807
2808         Test: inspector/debugger/file-system-project-mapping.html
2809
2810         * inspector/front-end/ScriptsPanel.js:
2811         (WebInspector.ScriptsPanel.prototype._mapFileSystemToNetwork.mapFileSystemToNetwork):
2812         (WebInspector.ScriptsPanel.prototype._mapFileSystemToNetwork):
2813         (WebInspector.ScriptsPanel.prototype._mapNetworkToFileSystem.mapNetworkToFileSystem):
2814         (WebInspector.ScriptsPanel.prototype._mapNetworkToFileSystem):
2815         * inspector/front-end/Workspace.js:
2816         (WebInspector.Project.prototype._fileAdded):
2817         (WebInspector.Workspace.prototype.addMapping):
2818
2819 2013-03-12  Vsevolod Vlasov  <vsevik@chromium.org>
2820
2821         Web Inspector: SourceFrames are leaking on reload.
2822         https://bugs.webkit.org/show_bug.cgi?id=111961
2823
2824         Reviewed by Alexander Pavlov.
2825
2826         Added dispose method on UISourceCodeFrame.
2827         Scripts panel now calls dispose when SourceFrame is removed and JavaScriptSourceFrame
2828         could remove breakpoint manager listeners in it.
2829         TabbedEditorContainer does not call viewForFile other than in appendFileTab methods to 
2830         avoid recreating SourceFrame for uiSourceCode when it was already removed.
2831
2832         Test: inspector/debugger/breakpoint-manager-listeners-count.html
2833
2834         * inspector/front-end/JavaScriptSourceFrame.js:
2835         (WebInspector.JavaScriptSourceFrame.prototype.dispose):
2836         * inspector/front-end/ScriptsPanel.js:
2837         * inspector/front-end/TabbedEditorContainer.js:
2838         (WebInspector.TabbedEditorContainer.prototype._addScrollAndSelectionListeners):
2839         (WebInspector.TabbedEditorContainer.prototype._removeScrollAndSelectionListeners):
2840         (WebInspector.TabbedEditorContainer.prototype._tabClosed):
2841         * inspector/front-end/UISourceCodeFrame.js:
2842         (WebInspector.UISourceCodeFrame.prototype.dispose):
2843
2844 2013-03-12  Alexander Pavlov  <apavlov@chromium.org>
2845
2846         Web Inspector: [Elements] Unable to undo "Edit as HTML" changes in the editor
2847         https://bugs.webkit.org/show_bug.cgi?id=112119
2848
2849         Reviewed by Vsevolod Vlasov.
2850
2851         No new tests, a UI change.
2852
2853         * inspector/front-end/ElementsPanel.js:
2854         (WebInspector.ElementsPanel.prototype.handleShortcut): Do not undo/redo DOM/CSS changes if editing DOM text.
2855         * inspector/front-end/ElementsTreeOutline.js:
2856         (WebInspector.ElementsTreeOutline.prototype.editing): Added.
2857
2858 2013-03-12  Andrey Lushnikov  <lushnikov@chromium.org>
2859
2860         Web Inspector: [CodeMirror] there are bugs in TokenHighlight feature
2861         https://bugs.webkit.org/show_bug.cgi?id=112039
2862
2863         Reviewed by Vsevolod Vlasov.
2864
2865         Fix token highlight in codeMirror experiment
2866         - rewrite token highlight overlay mode to highlight words, not
2867         substrings
2868         - add workaround to avoid selection of already selected word
2869
2870         No new tests.
2871
2872         * inspector/front-end/CodeMirrorTextEditor.js:
2873         (WebInspector.CodeMirrorTextEditor.TokenHighlighter.prototype._cursorChange):
2874         (WebInspector.CodeMirrorTextEditor.TokenHighlighter.prototype._removeHighlight):
2875         (WebInspector.CodeMirrorTextEditor.TokenHighlighter.prototype.nextToken):
2876         (WebInspector.CodeMirrorTextEditor.TokenHighlighter.prototype._addHighlight):
2877         * inspector/front-end/cm/cmdevtools.css:
2878         (.line-with-selection .cm-column-with-selection):
2879
2880 2013-03-12  Sheriff Bot  <webkit.review.bot@gmail.com>
2881
2882         Unreviewed, rolling out r145514.
2883         http://trac.webkit.org/changeset/145514
2884         https://bugs.webkit.org/show_bug.cgi?id=112134
2885
2886         breaks Mac build (Requested by falken on #webkit).
2887
2888         * dom/Element.cpp:
2889         * dom/Element.h:
2890         * dom/EventDispatcher.cpp:
2891         (WebCore::EventDispatcher::dispatchSimulatedClick):
2892         * dom/GestureEvent.cpp:
2893         (WebCore::GestureEventDispatchMediator::dispatchEvent):
2894         * dom/MouseEvent.cpp:
2895         (WebCore::MouseEventDispatchMediator::dispatchEvent):
2896         * dom/Node.cpp:
2897         (WebCore):
2898         (WebCore::Node::isInert):
2899         (WebCore::Node::handleLocalEvents):
2900         (WebCore::Node::disabled):
2901         (WebCore::Node::willRespondToMouseMoveEvents):
2902         (WebCore::Node::willRespondToMouseClickEvents):
2903         (WebCore::Node::willRespondToTouchEvents):
2904         * dom/Node.h:
2905         (Node):
2906
2907 2013-03-12  Andrey Lushnikov  <lushnikov@chromium.org>
2908
2909         Web Inspector: [CodeMirror] highlight matching braces
2910         https://bugs.webkit.org/show_bug.cgi?id=112041
2911
2912         Reviewed by Vsevolod Vlasov.
2913
2914         Add "matchbrackets" add-on to CodeMirror text editor add override
2915         default styles for matched and unmatched braces.
2916
2917         No new tests.
2918
2919         * WebCore.gypi:
2920         * WebCore.vcproj/WebCore.vcproj:
2921         * WebCore.vcxproj/WebCore.vcxproj:
2922         * WebCore.vcxproj/WebCore.vcxproj.filters:
2923         * inspector/front-end/CodeMirrorTextEditor.js:
2924         (WebInspector.CodeMirrorTextEditor):
2925         * inspector/front-end/WebKit.qrc:
2926         * inspector/front-end/cm/cmdevtools.css:
2927         (.CodeMirror-matchingbracket):
2928         (.CodeMirror-nonmatchingbracket):
2929         * inspector/front-end/cm/matchbrackets.js: Added.
2930         (.):
2931
2932 2013-03-12  Matt Falkenhagen  <falken@chromium.org>
2933
2934         Refactoring: Pull Node::disabled() and Node::isInert() down to Element.
2935         https://bugs.webkit.org/show_bug.cgi?id=112085
2936
2937         Reviewed by Hajime Morrita.
2938
2939         Node is too low a level for these methods.
2940
2941         No new tests, just refactoring.
2942
2943         * dom/Element.cpp:
2944         (WebCore::Element::disabled):
2945         (WebCore):
2946         (WebCore::Element::isInert):
2947         * dom/Element.h:
2948         (Element):
2949         * dom/EventDispatcher.cpp:
2950         (WebCore::EventDispatcher::dispatchSimulatedClick):
2951         * dom/GestureEvent.cpp:
2952         (WebCore::GestureEventDispatchMediator::dispatchEvent):
2953         * dom/MouseEvent.cpp:
2954         (WebCore::MouseEventDispatchMediator::dispatchEvent):
2955         * dom/Node.cpp:
2956         (WebCore::Node::handleLocalEvents):
2957         (WebCore::Node::willRespondToMouseMoveEvents):
2958         (WebCore::Node::willRespondToMouseClickEvents):
2959         (WebCore::Node::willRespondToTouchEvents):
2960         * dom/Node.h:
2961         (Node):
2962
2963 2013-03-12  Marja Hölttä  <marja@chromium.org>
2964
2965         [V8] Get rid of function-level static FunctionTemplates in generated bindings code
2966         https://bugs.webkit.org/show_bug.cgi?id=111971
2967
2968         Reviewed by Jochen Eisinger.
2969
2970         In the future we'll create and store function templates for main world
2971         and non-main worlds separately (see bug 111724), having function
2972         templates as static variables inside functions will break the
2973         functionality.
2974
2975         No new tests (updated the bindings test expectations).
2976
2977         * bindings/scripts/CodeGeneratorV8.pm:
2978         (GenerateDomainSafeFunctionGetter):
2979         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
2980         (WebCore::TestActiveDOMObjectV8Internal::postMessageAttrGetter):
2981         * bindings/v8/V8PerIsolateData.cpp:
2982         (WebCore::V8PerIsolateData::V8PerIsolateData):
2983         (WebCore::V8PerIsolateData::privateTemplate):
2984         (WebCore):
2985         * bindings/v8/V8PerIsolateData.h:
2986         (V8PerIsolateData):
2987         * bindings/v8/custom/V8LocationCustom.cpp:
2988         (WebCore::V8Location::reloadAttrGetterCustom):
2989         (WebCore::V8Location::replaceAttrGetterCustom):
2990         (WebCore::V8Location::assignAttrGetterCustom):
2991
2992 2013-03-12  Takashi Sakamoto  <tasak@google.com>
2993
2994         [Refactoring] Implement RuleCollector
2995         https://bugs.webkit.org/show_bug.cgi?id=109916
2996
2997         Reviewed by Antti Koivisto.
2998
2999         Implemented rule collector for an element and collector for a page.
3000         Not all members in class State are required entire while resolving
3001         a style.
3002
3003         No new tests, because just refactoring.
3004
3005         * CMakeLists.txt:
3006         * GNUmakefile.list.am:
3007         * Target.pri:
3008         * WebCore.gypi:
3009         * WebCore.xcodeproj/project.pbxproj:
3010         * css/CSSAllInOne.cpp:
3011         Added ElementRuleCollector and PageRuleCollector.
3012         * css/DocumentRuleSets.cpp:
3013         (WebCore::ShadowDistributedRules::collectMatchRequests):
3014         Since behaviorAtBoundary is a state owned by ElementRuleCollector,
3015         removed from here.
3016         * css/DocumentRuleSets.h:
3017         (WebCore::ShadowDistributedRules::isEmpty):
3018         Added to quickly check whether there exist any ShadowDistributedRules
3019         or not.
3020         * css/ElementRuleCollector.cpp: Copied from Source/WebCore/css/StyleResolver.cpp.
3021         (WebCore):
3022         (WebCore::ElementRuleCollector::matchedResult):
3023         (WebCore::ElementRuleCollector::matchedRuleList):
3024         (WebCore::ElementRuleCollector::addMatchedRule):
3025         (WebCore::ElementRuleCollector::clearMatchedRules):
3026         (WebCore::ElementRuleCollector::ensureRuleList):
3027         (WebCore::ElementRuleCollector::addElementStyleProperties):
3028         (WebCore::ElementRuleCollector::collectMatchingRules):
3029         (WebCore::ElementRuleCollector::collectMatchingRulesForRegion):
3030         (WebCore::ElementRuleCollector::sortAndTransferMatchedRules):
3031         (WebCore::ElementRuleCollector::matchScopedAuthorRules):
3032         (WebCore::ElementRuleCollector::matchHostRules):
3033         (WebCore::ElementRuleCollector::matchShadowDistributedRules):
3034         (WebCore::ElementRuleCollector::matchAuthorRules):
3035         (WebCore::ElementRuleCollector::matchUserRules):
3036         (WebCore::ElementRuleCollector::matchUARules):
3037         (WebCore::ElementRuleCollector::ruleMatches):
3038         (WebCore::ElementRuleCollector::collectMatchingRulesForList):
3039         (WebCore::ElementRuleCollector::sortMatchedRules):
3040         (WebCore::ElementRuleCollector::matchAllRules):
3041         Moved these methods from StyleResolver to this class.
3042         (WebCore::ElementRuleCollector::hasAnyMatchingRules):
3043         This method is used for checking whether a given element can share
3044         a cache.
3045         * css/ElementRuleCollector.h: Copied from Source/WebCore/css/StyleResolver.h.
3046         (WebCore):
3047         (WebCore::ElementRuleCollector::ElementRuleCollector):
3048         Use styleResolver instance to initialize its member variables, i.e.
3049         SelectorFilter, RuleSets, InspectorCSSOMWrappers, and
3050         StyleScopedResolver.
3051         (ElementRuleCollector):
3052         (WebCore::ElementRuleCollector::setMode):
3053         (WebCore::ElementRuleCollector::setPseudoStyleRequest):
3054         (WebCore::ElementRuleCollector::setSameOriginOnly):
3055         (WebCore::ElementRuleCollector::setRegionForStyling):
3056         Mode, SameOriginOnly, RegionForStyling are only used while collecting
3057         matched rules.
3058         (WebCore::ElementRuleCollector::setMedium):
3059         Need to know which default stylesheet should be looked up.
3060         (WebCore::ElementRuleCollector::document):
3061         * css/PageRuleCollector.cpp: Copied from Source/WebCore/css/StyleResolver.cpp.
3062         (WebCore::comparePageRules):
3063         (WebCore::PageRuleCollector::isLeftPage):
3064         (WebCore::PageRuleCollector::isFirstPage):
3065         (WebCore::PageRuleCollector::pageName):
3066         (WebCore::PageRuleCollector::matchAllPageRules):
3067         (WebCore::PageRuleCollector::matchPageRules):
3068         (WebCore::checkPageSelectorComponents):
3069         (WebCore::PageRuleCollector::matchPageRulesForList):
3070         Moved from StyleResolver.
3071         * css/PageRuleCollector.h: Copied from Source/WebCore/css/StyleResolver.h.
3072         (WebCore):
3073         (WebCore::PageRuleCollector::PageRuleCollector):
3074         (PageRuleCollector):
3075         (WebCore::PageRuleCollector::matchedResult):
3076         * css/StyleResolver.cpp:
3077         (WebCore):
3078         (WebCore::StyleResolver::State::clear):
3079         (WebCore::StyleResolver::MatchResult::addMatchedProperties):
3080         (WebCore::StyleResolver::State::initForStyleResolve):
3081         (WebCore::StyleResolver::styleSharingCandidateMatchesRuleSet):
3082         (WebCore::StyleResolver::styleForElement):
3083         (WebCore::StyleResolver::styleForKeyframe):
3084         (WebCore::StyleResolver::pseudoStyleForElement):
3085         (WebCore::StyleResolver::styleForPage):
3086         (WebCore::StyleResolver::pseudoStyleRulesForElement):
3087         (WebCore::StyleResolver::applyMatchedProperties):
3088         * css/StyleResolver.h:
3089         (WebCore::MatchRequest::MatchRequest):
3090         Removed behaviorAtBoundary. Instead, ElementRuleCollector have the
3091         state.
3092         (MatchRequest):
3093         (WebCore::StyleResolver::selectorFilter):
3094         Added to obtain SelectorFilter in ElementRuleCollector's constructor.
3095         (StyleResolver):
3096         (MatchResult):
3097         (WebCore::StyleResolver::State::State):
3098         To pass ASSERT in StyleResolver::applyProperties, need to keep
3099         m_regionForStyling.
3100         (State):
3101         (WebCore::StyleResolver::State::regionForStyling):
3102         (WebCore::StyleResolver::State::useSVGZoomRules):
3103         (WebCore::StyleResolver::hasSelectorForId):
3104         (WebCore):
3105         (WebCore::checkRegionSelector):
3106         * inspector/InspectorCSSAgent.cpp:
3107         (WebCore::InspectorCSSAgent::willMatchRule):
3108         Removed StyleResolver from its parameter list. Instead, added
3109         InspectorCSSOMWrappers and DocumentStyleSheetCollection.
3110         * inspector/InspectorCSSAgent.h:
3111         (WebCore):
3112         (InspectorCSSAgent):
3113         * inspector/InspectorInstrumentation.cpp:
3114         (WebCore):
3115         (WebCore::InspectorInstrumentation::willMatchRuleImpl):
3116         * inspector/InspectorInstrumentation.h:
3117         (WebCore):
3118         (InspectorInstrumentation):
3119         (WebCore::InspectorInstrumentation::willMatchRule):
3120
3121 2013-03-12  Floris Bos  <bos@je-eigen-domein.nl>
3122
3123         [Qt] WebKit fails to compile if EGL headers are not in default INCLUDEPATH
3124         https://bugs.webkit.org/show_bug.cgi?id=111859
3125
3126         Reviewed by Jocelyn Turcotte.
3127
3128         The 3D graphics code wants to include EGL header files.
3129         But on some platforms such as the Raspberry Pi those are not in /usr/include
3130         but in another folder.
3131         Fix adds "egl" to CONFIG when OpenGL ES2 is used, so the right include
3132         paths are added.
3133
3134         * WebCore.pri:
3135
3136 2013-03-12  Mike West  <mkwst@chromium.org>
3137
3138         XSSAuditor should send only one console error when blocking a page.
3139         https://bugs.webkit.org/show_bug.cgi?id=110733
3140
3141         Reviewed by Daniel Bates.
3142
3143         Currently, we send two console errors when XSSAuditor blocks a page:
3144         "Refused to execute a JavaScript script. Source code of script found
3145         within request.\n", and "Entire page will be blocked.".
3146
3147         We should only send one message, tuning it properly for the context, and
3148         including the URL of the page effected by the XSSAuditor's work.
3149
3150         Covered by rebaselines of all the XSSAuditor and 'reflected-xss' tests.
3151
3152         * html/parser/XSSAuditor.cpp:
3153         * html/parser/XSSAuditor.h:
3154         (WebCore::XSSAuditor::XSSAuditor):
3155             Add two booleans to track the headers used to set the XSSAuditor state.
3156         (WebCore::XSSAuditor::init):
3157         (WebCore::XSSAuditor::filterToken):
3158             Add detail about the header status to the constructed XSSInfo object.
3159         * html/parser/XSSAuditorDelegate.cpp:
3160         (WebCore::buildConsoleError):
3161             Move message construction out into a separate inlined function, as
3162             it's becoming complex.
3163         (WebCore::XSSAuditorDelegate::didBlockScript):
3164             Fold the "Entire page will be blocked" message into the main console
3165             error.
3166         * html/parser/XSSAuditorDelegate.h:
3167         (WebCore::XSSInfo::create):
3168         (WebCore::XSSInfo::XSSInfo):
3169             Add detail about header status to XSSInfo in order to correctly
3170             construct the console error.
3171
3172 2013-03-12  Sheriff Bot  <webkit.review.bot@gmail.com>
3173
3174         Unreviewed, rolling out r145494.
3175         http://trac.webkit.org/changeset/145494
3176         https://bugs.webkit.org/show_bug.cgi?id=112117
3177
3178         Breaks Chromium Mac (Requested by pfeldman on #webkit).
3179
3180         * bindings/scripts/CodeGeneratorV8.pm:
3181         (GenerateDomainSafeFunctionGetter):
3182         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
3183         (WebCore::TestActiveDOMObjectV8Internal::postMessageAttrGetter):
3184         * bindings/v8/V8PerIsolateData.cpp:
3185         (WebCore::V8PerIsolateData::V8PerIsolateData):
3186         * bindings/v8/V8PerIsolateData.h:
3187         (V8PerIsolateData):
3188         * bindings/v8/custom/V8LocationCustom.cpp:
3189         (WebCore::V8Location::reloadAttrGetterCustom):
3190         (WebCore::V8Location::replaceAttrGetterCustom):
3191         (WebCore::V8Location::assignAttrGetterCustom):
3192
3193 2013-03-12  Yury Semikhatsky  <yurys@chromium.org>
3194
3195         Web Inspector: add memory instrumentation for ImageLoader
3196         https://bugs.webkit.org/show_bug.cgi?id=112115
3197
3198         Reviewed by Alexander Pavlov.
3199
3200         Added memory instrumentation to ImageLoader. CachedImage referenced
3201         by the loader is reported as having retaining reference. This allows
3202         to see in the native memory graph CachedImages that are not reachable
3203         from MemoryCache but referenced by HTMLImageElement.
3204
3205         * loader/ImageLoader.cpp:
3206         (WebCore::ImageLoader::reportMemoryUsage):
3207         (WebCore):
3208         * loader/ImageLoader.h:
3209         (ImageLoader):
3210
3211 2013-03-12  Vsevolod Vlasov  <vsevik@chromium.org>
3212
3213         Web Inspector: Broken shortcuts in Snippets SourceFrame
3214         https://bugs.webkit.org/show_bug.cgi?id=112038
3215
3216         Reviewed by Pavel Feldman.
3217
3218         * inspector/front-end/SnippetJavaScriptSourceFrame.js:
3219         (WebInspector.SnippetJavaScriptSourceFrame):
3220         (WebInspector.SnippetJavaScriptSourceFrame.prototype._onKeyDown):
3221
3222 2013-03-12  Eugene Klyuchnikov  <eustas@chromium.org>
3223
3224         Web Inspector: [Timeline] File selector control becomes visible on "tab" navigation.
3225         https://bugs.webkit.org/show_bug.cgi?id=111710
3226
3227         Reviewed by Pavel Feldman.
3228
3229         Solution: Exclude file selector control from tab-navigation flow.
3230
3231         * inspector/front-end/FileUtils.js: Set tab-index to control.
3232         * inspector/front-end/TimelinePanel.js: Remove duplicating code.
3233         * inspector/front-end/inspector.css:
3234         (.status-bar-item): Make scroll height equal to offset height.
3235
3236 2013-03-12  Marja Hölttä  <marja@chromium.org>
3237
3238         [V8] Get rid of function-level static FunctionTemplates in generated bindings code
3239         https://bugs.webkit.org/show_bug.cgi?id=111971
3240
3241         Reviewed by Kentaro Hara.
3242
3243         In the future we'll create and store function templates for main world
3244         and non-main worlds separately (see bug 111724), having function
3245         templates as static variables inside functions will break the
3246         functionality.
3247
3248         No new tests (updated the bindings test expectations).
3249
3250         * bindings/scripts/CodeGeneratorV8.pm:
3251         (GenerateDomainSafeFunctionGetter):
3252         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
3253         (WebCore::TestActiveDOMObjectV8Internal::postMessageAttrGetter):
3254         * bindings/v8/V8PerIsolateData.cpp:
3255         (WebCore::V8PerIsolateData::V8PerIsolateData):
3256         (WebCore::V8PerIsolateData::privateTemplate):
3257         (WebCore):
3258         * bindings/v8/V8PerIsolateData.h:
3259         (V8PerIsolateData):
3260         * bindings/v8/custom/V8LocationCustom.cpp:
3261         (WebCore::V8Location::reloadAttrGetterCustom):
3262         (WebCore::V8Location::replaceAttrGetterCustom):
3263         (WebCore::V8Location::assignAttrGetterCustom):
3264
3265 2013-03-12  Tien-Ren Chen  <trchen@chromium.org>
3266
3267         Need to notify ScrollingCoordinator when frame scrollbars are destroyed
3268         https://bugs.webkit.org/show_bug.cgi?id=112104
3269
3270         Reviewed by James Robinson.
3271
3272         Need to notify ScrollingCoordinatorChromium whenever m_layerForHorizontalScrollbar /
3273         m_layerForVerticalScrollbar changes, for correct lifetime management.
3274
3275         No new tests. Difficult to test lifetime management internal to ScrollingCoordinatorChromium.
3276
3277         * rendering/RenderLayerCompositor.cpp:
3278         (WebCore::RenderLayerCompositor::destroyRootLayer):
3279
3280 2013-03-11  Simon Fraser  <simon.fraser@apple.com>
3281
3282         We'll get there eventually.
3283
3284         * platform/graphics/ca/win/PlatformCAFiltersWin.cpp:
3285
3286 2013-03-11  Simon Fraser  <simon.fraser@apple.com>
3287
3288         Fumbled adding new files to the vcproj. Fixing.
3289
3290         * WebCore.vcproj/WebCore.vcproj:
3291
3292 2013-03-11  Simon Fraser  <simon.fraser@apple.com>
3293
3294         Fix the Windows build by providing implementations of PlatformCAFilters::setFiltersOnLayer(),
3295         PlatformCAFilters::numAnimatedFilterProperties() and PlatformCAFilters::animatedFilterPropertyName(),
3296         adding PlatformCAFiltersWin.cpp to the vcproj.
3297         
3298         * WebCore.vcproj/WebCore.vcproj:
3299         * platform/graphics/ca/PlatformCAFilters.h:
3300         (PlatformCAFilters):
3301         * platform/graphics/ca/win/PlatformCAFiltersWin.cpp: Copied from Source/WebCore/platform/graphics/ca/PlatformCAFilters.h.
3302         (PlatformCAFilters::setFiltersOnLayer):
3303         (PlatformCAFilters::numAnimatedFilterProperties):
3304         (PlatformCAFilters::animatedFilterPropertyName):
3305
3306 2013-03-11  Jochen Eisinger  <jochen@chromium.org>
3307
3308         Don't create multiple user gesture indicators when forwarding events to sub frames
3309         https://bugs.webkit.org/show_bug.cgi?id=111923
3310
3311         Reviewed by Adam Barth.
3312
3313         Ports that implement consumable user gestures depend on a single user
3314         gesture indicator being created in response to a single user gesture.
3315
3316         Test: platform/chromium/fast/events/popup-allowed-from-gesture-only-once-iframes.html
3317
3318         * dom/UserGestureIndicator.cpp:
3319         (WebCore::isDefinite):
3320         (WebCore::UserGestureIndicator::UserGestureIndicator):
3321         (WebCore::UserGestureIndicator::processingUserGesture):
3322         * dom/UserGestureIndicator.h:
3323         * page/EventHandler.cpp:
3324         (WebCore::EventHandler::handleMousePressEvent):
3325         (WebCore::EventHandler::handleMouseDoubleClickEvent):
3326         (WebCore::EventHandler::handleMouseReleaseEvent):
3327         (WebCore::EventHandler::keyEvent):
3328         (WebCore::EventHandler::handleTouchEvent):
3329
3330 2013-03-11  Simon Fraser  <simon.fraser@apple.com>
3331
3332         Fix Windows build.
3333
3334         * platform/graphics/ca/win/PlatformCAAnimationWin.cpp:
3335
3336 2013-03-11  Tim Horton  <timothy_horton@apple.com>
3337
3338         Unreviewed build fix after http://trac.webkit.org/changeset/145472.
3339
3340         * platform/graphics/ca/mac/PlatformCAFiltersMac.mm:
3341         (PlatformCAFilters::colorMatrixValueForFilter):
3342
3343 2013-03-11  Takashi Sakamoto  <tasak@google.com>
3344
3345         [CSS] shadow from radius has wrong render in webkit
3346         https://bugs.webkit.org/show_bug.cgi?id=99928
3347
3348         Reviewed by Simon Fraser.
3349
3350         No rounded cornder should be expanded in the mixed case, i.e. some
3351         corners are rounded, but others are not rounded.
3352         Need to look at each corner independently,
3353         i.e. top-left, top-right, bottom-left and bottom-right, and
3354         to expand corners whose width and height are larger than 0.
3355
3356         Test: fast/box-shadow/box-shadow-with-zero-radius.html
3357
3358         * platform/graphics/RoundedRect.cpp:
3359         (WebCore::RoundedRect::Radii::expand):
3360
3361 2013-03-11  Simon Fraser  <simon.fraser@apple.com>
3362
3363         [CA] Animations of CSS filters don't work correctly
3364         https://bugs.webkit.org/show_bug.cgi?id=111905
3365
3366         Reviewed by Dean Jackson.
3367
3368         Fix various issues with transitions of composited filters on Mac,
3369         most of which stemmed from the conversion to use CAFilter.
3370         
3371         Put the Mac CA filter-related code into a new file, PlatformCAFilters,
3372         to group code that creates filter properties into a single place.
3373         
3374         Animations of CIFilters using multiple values never worked correctly,
3375         because we would clobber all but the last property for each filter,
3376         so fix that.
3377         
3378         Changes in the moved filter code:
3379             - Made use of sepiaFullConstants in the CIFilter and CAFilter code.
3380             - For CI, return CIVectors instead of NSArrays of NSNumbers.
3381             - Fudge the inputColor for the CI grayscale filter to better match software filters.
3382             - fix some cases where the behavior was wrong in the isDefault() case.
3383
3384         * WebCore.xcodeproj/project.pbxproj: Add PlatformCAFilters.h, PlatformCAFiltersMac.mm.
3385         * platform/graphics/GraphicsLayer.cpp:
3386         (WebCore::GraphicsLayer::animationNameForTransition): This function was creating a string
3387         containing non-ASCII characters.
3388         * platform/graphics/ca/GraphicsLayerCA.cpp:
3389         (WebCore::animationIdentifier): To handle CIFilter animations, we need to tack another
3390         index onto the animation identifier, since some animations require animating multiple
3391         properties of the same CIFilter. Add "subIndex" for this.
3392         (WebCore::GraphicsLayerCA::moveOrCopyAnimations): Ditto.
3393         (WebCore::GraphicsLayerCA::updateAnimations): Ditto.
3394         (WebCore::GraphicsLayerCA::setAnimationOnLayer): Ditto.
3395         (WebCore::GraphicsLayerCA::removeCAAnimationFromLayer): Ditto.
3396         (WebCore::GraphicsLayerCA::pauseCAAnimationOnLayer): Ditto.
3397         (WebCore::GraphicsLayerCA::createAnimationFromKeyframes): Ditto.
3398         (WebCore::GraphicsLayerCA::appendToUncommittedAnimations): Ditto.
3399         * platform/graphics/ca/GraphicsLayerCA.h: Ditto.
3400         (WebCore::GraphicsLayerCA::LayerPropertyAnimation::LayerPropertyAnimation):
3401         (LayerPropertyAnimation):
3402         * platform/graphics/ca/PlatformCAAnimation.h:
3403         (PlatformCAAnimation): Functions moved.
3404         * platform/graphics/ca/PlatformCAFilters.h: Added.
3405         (PlatformCAFilters):
3406         * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
3407         (PlatformCAAnimation::setFromValue):
3408         (PlatformCAAnimation::setToValue):
3409         (PlatformCAAnimation::setValues):
3410         * platform/graphics/ca/mac/PlatformCAFiltersMac.mm: Added.
3411         (PlatformCAFilters::filterValueForOperation):
3412         (PlatformCAFilters::colorMatrixValueForFilter):
3413         (PlatformCAFilters::numAnimatedFilterProperties):
3414         (PlatformCAFilters::animatedFilterPropertyName):
3415         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
3416         (PlatformCALayer::PlatformCALayer):
3417         (PlatformCALayer::addAnimationForKey):
3418         (PlatformCALayer::setFilters):
3419         (PlatformCALayer::filtersCanBeComposited):
3420
3421 2013-03-11  Sheriff Bot  <webkit.review.bot@gmail.com>
3422
3423         Unreviewed, rolling out r145462.
3424         http://trac.webkit.org/changeset/145462
3425         https://bugs.webkit.org/show_bug.cgi?id=112097
3426
3427         Compilation failure in PluginView.cpp (Requested by jamesr_ on
3428         #webkit).
3429
3430         * accessibility/AccessibilityMenuList.cpp:
3431         (WebCore::AccessibilityMenuList::canSetFocusAttribute):
3432         * bindings/objc/DOM.mm:
3433         (kitClass):
3434         * bindings/v8/V8LazyEventListener.cpp:
3435         (WebCore::V8LazyEventListener::prepareListenerObject):
3436         * css/SelectorChecker.cpp:
3437         (WebCore::SelectorChecker::checkOne):
3438         * editing/ApplyStyleCommand.cpp:
3439         (WebCore::isLegacyAppleStyleSpan):
3440         (WebCore::isEmptyFontTag):
3441         (WebCore::ApplyStyleCommand::applyBlockStyle):
3442         * editing/FormatBlockCommand.cpp:
3443         (WebCore::isElementForFormatBlock):
3444         * editing/ReplaceSelectionCommand.cpp:
3445         (WebCore::isMailPasteAsQuotationNode):
3446         (WebCore::haveSameTagName):
3447         (WebCore::ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline):
3448         (WebCore::ReplaceSelectionCommand::makeInsertedContentRoundTrippableWithHTMLTreeBuilder):
3449         * history/CachedPage.cpp:
3450         (WebCore::CachedPage::restore):
3451         * html/ColorInputType.cpp:
3452         (WebCore::ColorInputType::suggestions):
3453         * html/HTMLTableRowsCollection.cpp:
3454         (WebCore::isInHead):
3455         (WebCore::isInBody):
3456         (WebCore::isInFoot):
3457         * inspector/DOMPatchSupport.cpp:
3458         (WebCore::DOMPatchSupport::innerPatchNode):
3459         * page/PageSerializer.cpp:
3460         (WebCore::SerializerMarkupAccumulator::appendCustomAttributes):