Web Inspector: live locations could be disposed twice.
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2012-03-15  Pavel Podivilov  <podivilov@chromium.org>
2
3         Web Inspector: live locations could be disposed twice.
4         https://bugs.webkit.org/show_bug.cgi?id=81249
5
6         Reviewed by Vsevolod Vlasov.
7
8         * inspector/front-end/ScriptMapping.js:
9         (WebInspector.MainScriptMapping.prototype._unregisterLiveLocation):
10
11 2012-03-15  Carlos Garcia Campos  <cgarcia@igalia.com>
12
13         [GTK] Implement unicode submenu items
14         https://bugs.webkit.org/show_bug.cgi?id=81117
15
16         Reviewed by Martin Robinson.
17
18         * loader/EmptyClients.h:
19         (WebCore::EmptyEditorClient::shouldShowUnicodeMenu): Just return
20         false.
21         * page/ContextMenuController.cpp:
22         (WebCore::insertUnicodeCharacter): Helper function to insert a
23         unicode character.
24         (WebCore::ContextMenuController::contextMenuItemSelected):
25         Implement unicode menu items using insertUnicodeCharacter() to
26         insert the apropriate unicode character.
27         (WebCore::ContextMenuController::createAndAppendUnicodeSubMenu):
28         Create the unicode submenu.
29         (WebCore::ContextMenuController::populate): Add unicode submenu
30         item for editable content.
31         (WebCore::ContextMenuController::checkOrEnableIfNeeded): Add
32         unicode submenu items to the switch.
33         * page/ContextMenuController.h:
34         * page/EditorClient.h:
35         (EditorClient): Add shouldShowUnicodeMenu() for GTK platform.
36         * platform/ContextMenuItem.h:
37         * platform/LocalizedStrings.h:
38         * platform/gtk/LocalizedStringsGtk.cpp:
39         (WebCore::contextMenuItemTagUnicodeInsertLRMMark): Add localized
40         string for the unicode menu item.
41         (WebCore::contextMenuItemTagUnicodeInsertRLMMark): Ditto.
42         (WebCore::contextMenuItemTagUnicodeInsertLREMark): Ditto.
43         (WebCore::contextMenuItemTagUnicodeInsertRLEMark): Ditto.
44         (WebCore::contextMenuItemTagUnicodeInsertLROMark): Ditto.
45         (WebCore::contextMenuItemTagUnicodeInsertRLOMark): Ditto.
46         (WebCore::contextMenuItemTagUnicodeInsertPDFMark): Ditto.
47         (WebCore::contextMenuItemTagUnicodeInsertZWSMark): Ditto.
48         (WebCore::contextMenuItemTagUnicodeInsertZWJMark): Ditto.
49         (WebCore::contextMenuItemTagUnicodeInsertZWNJMark): Ditto.
50
51 2012-03-15  Vsevolod Vlasov  <vsevik@chromium.org>
52
53         Web Inspector: MainScriptMapping should detect snippet scripts by means of sourceURL set before evaluation.
54         https://bugs.webkit.org/show_bug.cgi?id=81031
55
56         Reviewed by Pavel Feldman.
57
58         * inspector/front-end/SnippetsModel.js:
59         (WebInspector.SnippetsModel):
60         (WebInspector.SnippetsModel.prototype._saveSettings):
61         (WebInspector.SnippetsModel.prototype.deleteSnippet):
62         (WebInspector.SnippetsModel.prototype._snippetAdded):
63         (WebInspector.SnippetsModel.prototype._sourceURLForSnippet):
64         (WebInspector.SnippetsModel.prototype.snippetIdForSourceURL):
65         (WebInspector.SnippetsModel.prototype.snippetForSourceURL):
66         (WebInspector.Snippet.prototype.evaluate):
67         (WebInspector.SnippetsScriptMapping):
68         (WebInspector.SnippetsScriptMapping.prototype.uiLocationToRawLocation.get if):
69         (WebInspector.SnippetsScriptMapping.prototype.uiLocationToRawLocation):
70         (WebInspector.SnippetsScriptMapping.prototype._releasedUISourceCodes):
71         (WebInspector.SnippetsScriptMapping.prototype._snippetAdded):
72         (WebInspector.SnippetsScriptMapping.prototype._snippetWillBeEvaluated):
73         (WebInspector.SnippetsScriptMapping.prototype._snippetRemoved.get this):
74         (WebInspector.SnippetsScriptMapping.prototype._snippetRemoved):
75
76 2012-03-15  Kevin Ollivier  <kevino@theolliviers.com>
77
78         [wx] Unreviewed. Build fixes for Mac and DOM bindings.
79
80         * bindings/cpp/WebDOMEventTarget.cpp:
81         (toWebKit):
82         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
83         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText):
84
85 2012-03-14  Pavel Podivilov  <podivilov@chromium.org>
86
87         Web Inspector: extract CompilerScriptMapping from RawSourceCode.
88         https://bugs.webkit.org/show_bug.cgi?id=81088
89
90         Reviewed by Vsevolod Vlasov.
91
92         * WebCore.gypi:
93         * WebCore.vcproj/WebCore.vcproj:
94         * inspector/compile-front-end.py:
95         * inspector/front-end/CompilerScriptMapping.js: Added.
96         (WebInspector.CompilerScriptMapping):
97         (WebInspector.CompilerScriptMapping.prototype.rawLocationToUILocation):
98         (WebInspector.CompilerScriptMapping.prototype.get uiSourceCodeList):
99         (WebInspector.CompilerScriptMapping.prototype.addScript.get this):
100         (WebInspector.CompilerScriptMapping.prototype.addScript):
101         (WebInspector.CompilerScriptMapping.prototype.loadSourceMapForScript):
102         (WebInspector.CompilerScriptMapping.prototype.reset):
103         * inspector/front-end/RawSourceCode.js:
104         (WebInspector.RawSourceCode):
105         (WebInspector.RawSourceCode.prototype.setFormatted):
106         (WebInspector.RawSourceCode.prototype._resourceFinished):
107         (WebInspector.RawSourceCode.prototype._createUISourceCode):
108         (WebInspector.RawSourceCode.FormattedSourceMapping.prototype.rawLocationToUILocation):
109         * inspector/front-end/ResourceScriptMapping.js:
110         (WebInspector.ResourceScriptMapping.prototype.addScript):
111         * inspector/front-end/ScriptMapping.js:
112         (WebInspector.MainScriptMapping):
113         * inspector/front-end/WebKit.qrc:
114         * inspector/front-end/inspector.html:
115
116 2012-03-15  Peter Rybin  <peter.rybin@gmail.com>
117
118         Web Inspector: Move all includes behind ENABLE(INSPECTOR) guards
119         https://bugs.webkit.org/show_bug.cgi?id=81132
120
121         Reviewed by Yury Semikhatsky.
122
123         Include directives are moved several lines down in .cpp files and in
124         generator templates.
125
126         * inspector/CodeGeneratorInspector.py:
127         * inspector/ContentSearchUtils.cpp:
128         * inspector/DOMEditor.cpp:
129         * inspector/DOMNodeHighlighter.cpp:
130         * inspector/DOMPatchSupport.cpp:
131         * inspector/IdentifiersFactory.cpp:
132         * inspector/InjectedScript.cpp:
133         * inspector/InjectedScriptHost.cpp:
134         * inspector/InjectedScriptManager.cpp:
135         * inspector/InspectorAgent.cpp:
136         * inspector/InspectorApplicationCacheAgent.cpp:
137         * inspector/InspectorBaseAgent.cpp:
138         * inspector/InspectorCSSAgent.cpp:
139         * inspector/InspectorClient.cpp:
140         * inspector/InspectorConsoleAgent.cpp:
141         * inspector/InspectorController.cpp:
142         * inspector/InspectorCounters.cpp:
143         * inspector/InspectorDOMAgent.cpp:
144         * inspector/InspectorDOMDebuggerAgent.cpp:
145         * inspector/InspectorDOMStorageAgent.cpp:
146         * inspector/InspectorDatabaseAgent.cpp:
147         * inspector/InspectorDatabaseResource.cpp:
148         * inspector/InspectorDebuggerAgent.cpp:
149         * inspector/InspectorFileSystemAgent.cpp:
150         * inspector/InspectorFrontendClientLocal.cpp:
151         * inspector/InspectorFrontendHost.cpp:
152         * inspector/InspectorHistory.cpp:
153         * inspector/InspectorIndexedDBAgent.cpp:
154         * inspector/InspectorInstrumentation.cpp:
155         * inspector/InspectorMemoryAgent.cpp:
156         * inspector/InspectorPageAgent.cpp:
157         * inspector/InspectorProfilerAgent.cpp:
158         * inspector/InspectorResourceAgent.cpp:
159         * inspector/InspectorRuntimeAgent.cpp:
160         * inspector/InspectorState.cpp:
161         * inspector/InspectorStyleSheet.cpp:
162         * inspector/InspectorStyleTextEditor.cpp:
163         * inspector/InspectorTimelineAgent.cpp:
164         * inspector/InspectorValues.cpp:
165         * inspector/InstrumentingAgents.cpp:
166         * inspector/NetworkResourcesData.cpp:
167         * inspector/PageConsoleAgent.cpp:
168         * inspector/PageDebuggerAgent.cpp:
169         * inspector/PageRuntimeAgent.cpp:
170         * inspector/TimelineRecordFactory.cpp:
171         * inspector/WorkerConsoleAgent.cpp:
172         * inspector/WorkerDebuggerAgent.cpp:
173         * inspector/WorkerRuntimeAgent.cpp:
174
175 2012-03-15  Yury Semikhatsky  <yurys@chromium.org>
176
177         Web Inspector: improve HeapSnapshot._buildReversIndex performance
178         https://bugs.webkit.org/show_bug.cgi?id=81224
179
180         Caching node indexes and node count in local variables instead of
181         calling getters each time reduces the method run time by
182         factor of 1.5
183
184         Reviewed by Pavel Feldman.
185
186         * inspector/front-end/HeapSnapshot.js:
187         (WebInspector.HeapSnapshot.prototype._buildReverseIndex):
188
189 2012-03-15  Nikolas Zimmermann  <nzimmermann@rim.com>
190
191         SVG Animations update baseVal instead of animVal
192         https://bugs.webkit.org/show_bug.cgi?id=12437
193
194         Rubber-stamped by Rob Buis.
195
196         Rename constructFromCopy to constructFromVariant, and currentBaseValue to currentBaseValueVariant, to clarify what it actually does.
197
198         * svg/SVGAnimateElement.cpp:
199         (WebCore::SVGAnimateElement::resetToBaseValue):
200         * svg/SVGAnimatedLength.cpp:
201         (WebCore::SVGAnimatedLengthAnimator::constructFromVariant):
202         * svg/SVGAnimatedLength.h:
203         (SVGAnimatedLengthAnimator):
204         * svg/SVGAnimatedLengthList.cpp:
205         (WebCore::SVGAnimatedLengthListAnimator::constructFromVariant):
206         * svg/SVGAnimatedLengthList.h:
207         (SVGAnimatedLengthListAnimator):
208         * svg/SVGAnimatedNumber.cpp:
209         (WebCore::SVGAnimatedNumberAnimator::constructFromVariant):
210         * svg/SVGAnimatedNumber.h:
211         (SVGAnimatedNumberAnimator):
212         * svg/SVGAnimatedNumberList.cpp:
213         (WebCore::SVGAnimatedNumberListAnimator::constructFromVariant):
214         * svg/SVGAnimatedNumberList.h:
215         (SVGAnimatedNumberListAnimator):
216         * svg/SVGAnimatedTransformList.cpp:
217         (WebCore::SVGAnimatedTransformListAnimator::constructFromVariant):
218         * svg/SVGAnimatedTransformList.h:
219         (SVGAnimatedTransformListAnimator):
220         * svg/SVGAnimatedTypeAnimator.h:
221         (WebCore::SVGAnimatedTypeAnimator::constructFromVariant):
222         * svg/properties/SVGAnimatedListPropertyTearOff.h:
223         (WebCore::SVGAnimatedListPropertyTearOff::currentBaseValueVariant):
224         * svg/properties/SVGAnimatedProperty.h:
225         (SVGAnimatedProperty):
226         * svg/properties/SVGAnimatedPropertyTearOff.h:
227         (WebCore::SVGAnimatedPropertyTearOff::currentBaseValueVariant):
228         * svg/properties/SVGAnimatedStaticPropertyTearOff.h:
229         (WebCore::SVGAnimatedStaticPropertyTearOff::currentBaseValueVariant):
230
231 2012-03-15  Nikolas Zimmermann  <nzimmermann@rim.com>
232
233         Enable animVal support for SVGNumberList
234         https://bugs.webkit.org/show_bug.cgi?id=81219
235
236         Reviewed by Rob Buis.
237
238         Enable animVal support for SVGNumberList. Easy patch, we just need to add the missing
239         constructFromCopy() method to SVGAnumatedNumberListAnimator and report AnimatedNumberList
240         as supporting animVal.
241
242         Covered by existing tests.
243
244         * svg/SVGAnimatedNumberList.cpp:
245         (WebCore::SVGAnimatedNumberListAnimator::constructFromCopy):
246         (WebCore):
247         * svg/SVGAnimatedNumberList.h:
248         (WebCore):
249         (SVGAnimatedNumberListAnimator):
250         * svg/SVGAnimatedType.cpp:
251         (WebCore::SVGAnimatedType::supportsAnimVal):
252         (WebCore::SVGAnimatedType::setVariantValue):
253
254 2012-03-15  Rob Buis  <rbuis@rim.com>
255
256         Fix cast-align GCC warnings
257         https://bugs.webkit.org/show_bug.cgi?id=80790
258
259         Reviewed by Nikolas Zimmermann.
260
261         * platform/graphics/WOFFFileFormat.cpp:
262         (WebCore::writeUInt32):
263         (WebCore::writeUInt16):
264         (WebCore::convertWOFFToSfnt):
265
266 2012-03-15  Nikolas Zimmermann  <nzimmermann@rim.com>
267
268         Not reviewed. Forgot to preserve copyrights, per reviewer comment.
269
270         * svg/SVGAnimatedTransformList.cpp:
271
272 2012-03-15  Nikolas Zimmermann  <nzimmermann@rim.com>
273
274         Enable animVal support for SVGNumber
275         https://bugs.webkit.org/show_bug.cgi?id=81212
276
277         Reviewed by Rob Buis.
278
279         Enable animVal support for SVGNumber. This aligns SVGAnimatedStaticPropertyTearOff,
280         with the other SVGListPropertyTearOff & SVGPropertyTearOff, as all support animVal now.
281         Converting the rest of the types can be done in small patches now.
282
283         Test: svg/animations/svgnumber-animation-4.html
284
285         * svg/SVGAnimatedNumber.cpp:
286         (WebCore::SVGAnimatedNumberAnimator::constructFromCopy):
287         (WebCore):
288         * svg/SVGAnimatedNumber.h:
289         (WebCore):
290         (SVGAnimatedNumberAnimator):
291         * svg/SVGAnimatedType.cpp:
292         (WebCore::SVGAnimatedType::supportsAnimVal):
293         (WebCore::SVGAnimatedType::setVariantValue):
294         * svg/properties/SVGAnimatedProperty.h:
295         (SVGAnimatedProperty):
296         * svg/properties/SVGAnimatedStaticPropertyTearOff.h:
297         (WebCore::SVGAnimatedStaticPropertyTearOff::animVal):
298         (WebCore::SVGAnimatedStaticPropertyTearOff::currentAnimatedValue):
299         (SVGAnimatedStaticPropertyTearOff):
300         (WebCore::SVGAnimatedStaticPropertyTearOff::currentBaseValue):
301         (WebCore::SVGAnimatedStaticPropertyTearOff::animationStarted):
302         (WebCore::SVGAnimatedStaticPropertyTearOff::animationEnded):
303         (WebCore::SVGAnimatedStaticPropertyTearOff::animationValueWillChange):
304         (WebCore::SVGAnimatedStaticPropertyTearOff::animationValueDidChange):
305         (WebCore::SVGAnimatedStaticPropertyTearOff::SVGAnimatedStaticPropertyTearOff):
306
307 2012-03-15  Nikolas Zimmermann  <nzimmermann@rim.com>
308
309         Enable animVal support for SVGTransformList
310         https://bugs.webkit.org/show_bug.cgi?id=80758
311
312         Reviewed by Antti Koivisto.
313
314         Enable animVal support for SVGTransformList. SVGTransformLists are only animatable
315         via <animateTransform>, not via <animate> directly. Still we can handle it in the
316         same framework as all other types used for <animate>, as we also need proper animVal
317         support for <animateTransform>.
318
319         This patch removes the special <animateTransform> implementation, and lets
320         SVGAnimateTransformElement inherit from SVGAnimateElement, just like its done
321         for SVGAnimateColorElement & SVGSetElement.
322
323         All existing code (calculateFromAndToValues/FromAndByValues/etc..) are moved from
324         SVGAnimateTransform right into the SVGAnimatedTransformListAnimator.
325
326         This doesn't change <animateTransform> behavior, it just simplies the code
327         and enables animVal support for SVGTransformLists - all covered by existing tests.
328
329         * CMakeLists.txt:
330         * GNUmakefile.list.am:
331         * Target.pri:
332         * WebCore.gypi:
333         * WebCore.xcodeproj/project.pbxproj:
334         * svg/SVGAllInOne.cpp:
335         * svg/SVGAnimateElement.cpp:
336         (WebCore::SVGAnimateElement::SVGAnimateElement):
337         (WebCore::SVGAnimateElement::determineAnimatedPropertyType):
338         (WebCore::SVGAnimateElement::calculateAnimatedValue):
339         (WebCore::SVGAnimateElement::applyResultsToTarget):
340         * svg/SVGAnimateTransformElement.cpp:
341         (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
342         (WebCore::SVGAnimateTransformElement::hasValidAttributeType):
343         (WebCore::SVGAnimateTransformElement::parseAttribute):
344         * svg/SVGAnimateTransformElement.h:
345         (WebCore::SVGAnimateTransformElement::transformType):
346         (SVGAnimateTransformElement):
347         * svg/SVGAnimatedTransformList.cpp: Added.
348         (WebCore):
349         (WebCore::SVGAnimatedTransformListAnimator::SVGAnimatedTransformListAnimator):
350         (WebCore::SVGAnimatedTransformListAnimator::constructFromString):
351         (WebCore::SVGAnimatedTransformListAnimator::constructFromCopy):
352         (WebCore::SVGAnimatedTransformListAnimator::calculateFromAndToValues):
353         (WebCore::SVGAnimatedTransformListAnimator::calculateFromAndByValues):
354         (WebCore::SVGAnimatedTransformListAnimator::calculateAnimatedValue):
355         (WebCore::SVGAnimatedTransformListAnimator::calculateDistance):
356         * svg/SVGAnimatedTransformList.h:
357         (WebCore):
358         (SVGAnimatedTransformListAnimator):
359         (WebCore::SVGAnimatedTransformListAnimator::~SVGAnimatedTransformListAnimator):
360         * svg/SVGAnimatedType.cpp:
361         (WebCore::SVGAnimatedType::~SVGAnimatedType):
362         (WebCore::SVGAnimatedType::createTransformList):
363         (WebCore):
364         (WebCore::SVGAnimatedType::transformList):
365         (WebCore::SVGAnimatedType::valueAsString):
366         (WebCore::SVGAnimatedType::setValueAsString):
367         (WebCore::SVGAnimatedType::supportsAnimVal):
368         (WebCore::SVGAnimatedType::setVariantValue):
369         * svg/SVGAnimatedType.h:
370         (WebCore):
371         (SVGAnimatedType):
372         * svg/SVGAnimatorFactory.h:
373         (WebCore::SVGAnimatorFactory::create):
374         * svg/SVGGradientElement.cpp:
375         (WebCore::SVGGradientElement::parseAttribute):
376         * svg/SVGPatternElement.cpp:
377         (WebCore::SVGPatternElement::parseAttribute):
378         * svg/SVGStyledTransformableElement.cpp:
379         (WebCore::SVGStyledTransformableElement::parseAttribute):
380         * svg/SVGTextElement.cpp:
381         (WebCore::SVGTextElement::parseAttribute):
382         * svg/SVGTransform.cpp:
383         (WebCore::SVGTransform::transformTypePrefixForParsing):
384         (WebCore):
385         (WebCore::SVGTransform::valueAsString):
386         * svg/SVGTransform.h:
387         (SVGTransform):
388         * svg/SVGTransformList.cpp:
389         (WebCore::SVGTransformList::parse):
390         (WebCore):
391         * svg/SVGTransformList.h:
392         (SVGTransformList):
393         * svg/SVGTransformable.cpp:
394         (WebCore::SVGTransformable::parseTransformType):
395         * svg/SVGTransformable.h:
396         (WebCore):
397         * svg/SVGViewSpec.cpp:
398         (WebCore::SVGViewSpec::setTransform):
399
400 2012-03-13  Nikolas Zimmermann  <nzimmermann@rim.com>
401
402         Enable animVal support for SVGLengthList
403         https://bugs.webkit.org/show_bug.cgi?id=80750
404
405         Reviewed by Zoltan Herczeg.
406
407         Introduce animVal support for generic SVGList types. This aligns SVGListProperty with SVGProperty
408         in terms of animVal/baseVal support. Use this to turn on animVal support for SVGLengthList.
409
410         Extend all existing SVGLengthList tests to correctly differentiate between baseVal/animVal.
411
412         * svg/SVGAnimateElement.cpp:
413         (WebCore::SVGAnimateElement::calculateAnimatedValue):
414         * svg/SVGAnimateTransformElement.cpp:
415         (WebCore::SVGAnimateTransformElement::resetToBaseValue):
416         (WebCore::SVGAnimateTransformElement::calculateAnimatedValue):
417         (WebCore::SVGAnimateTransformElement::applyResultsToTarget):
418         * svg/SVGAnimatedLengthList.cpp:
419         (WebCore::SVGAnimatedLengthListAnimator::constructFromCopy):
420         (WebCore):
421         * svg/SVGAnimatedLengthList.h:
422         (WebCore):
423         (SVGAnimatedLengthListAnimator):
424         * svg/SVGAnimatedType.cpp:
425         (WebCore::SVGAnimatedType::supportsAnimVal):
426         (WebCore::SVGAnimatedType::setVariantValue):
427         * svg/SVGAnimatedType.h:
428         * svg/SVGAnimationElement.cpp:
429         (WebCore::SVGAnimationElement::applyAnimatedValue):
430         * svg/properties/SVGAnimatedListPropertyTearOff.h:
431         (SVGAnimatedListPropertyTearOff):
432         (WebCore::SVGAnimatedListPropertyTearOff::baseVal):
433         (WebCore::SVGAnimatedListPropertyTearOff::animVal):
434         (WebCore::SVGAnimatedListPropertyTearOff::removeItemFromList):
435         (WebCore::SVGAnimatedListPropertyTearOff::detachListWrappers):
436         (WebCore::SVGAnimatedListPropertyTearOff::currentAnimatedValue):
437         (WebCore::SVGAnimatedListPropertyTearOff::currentBaseValue):
438         (WebCore::SVGAnimatedListPropertyTearOff::animationStarted):
439         (WebCore::SVGAnimatedListPropertyTearOff::animationEnded):
440         (WebCore::SVGAnimatedListPropertyTearOff::synchronizeWrappersIfNeeded):
441         (WebCore::SVGAnimatedListPropertyTearOff::animationValueWillChange):
442         (WebCore::SVGAnimatedListPropertyTearOff::animationValueDidChange):
443         * svg/properties/SVGAnimatedPathSegListPropertyTearOff.h:
444         (WebCore::SVGAnimatedPathSegListPropertyTearOff::baseVal):
445         (WebCore::SVGAnimatedPathSegListPropertyTearOff::animVal):
446         * svg/properties/SVGAnimatedProperty.h:
447         (WebCore::SVGAnimatedProperty::isAnimating):
448         (SVGAnimatedProperty):
449         (WebCore::SVGAnimatedProperty::animationValueWillChange):
450         (WebCore::SVGAnimatedProperty::animationValueDidChange):
451         (WebCore::SVGAnimatedProperty::~SVGAnimatedProperty):
452         (WebCore::SVGAnimatedProperty::SVGAnimatedProperty):
453         * svg/properties/SVGAnimatedPropertyTearOff.h:
454         (SVGAnimatedPropertyTearOff):
455         (WebCore::SVGAnimatedPropertyTearOff::baseVal):
456         (WebCore::SVGAnimatedPropertyTearOff::animVal):
457         (WebCore::SVGAnimatedPropertyTearOff::currentAnimatedValue):
458         (WebCore::SVGAnimatedPropertyTearOff::animationStarted):
459         (WebCore::SVGAnimatedPropertyTearOff::animationEnded):
460         (WebCore::SVGAnimatedPropertyTearOff::animationValueWillChange):
461         (WebCore::SVGAnimatedPropertyTearOff::animationValueDidChange):
462         (WebCore::SVGAnimatedPropertyTearOff::SVGAnimatedPropertyTearOff):
463         * svg/properties/SVGAnimatedTransformListPropertyTearOff.h:
464         (WebCore::SVGAnimatedTransformListPropertyTearOff::baseVal):
465         (WebCore::SVGAnimatedTransformListPropertyTearOff::animVal):
466         * svg/properties/SVGListProperty.h:
467         (WebCore::SVGListProperty::detachListWrappers):
468         (SVGListProperty):
469         (WebCore::SVGListProperty::setValuesAndWrappers):
470         (WebCore::SVGListProperty::clearValues):
471         (WebCore::SVGListProperty::clearValuesAndWrappers):
472         (WebCore::SVGListProperty::numberOfItems):
473         (WebCore::SVGListProperty::initializeValues):
474         (WebCore::SVGListProperty::initializeValuesAndWrappers):
475         (WebCore::SVGListProperty::canGetItem):
476         (WebCore::SVGListProperty::getItemValues):
477         (WebCore::SVGListProperty::getItemValuesAndWrappers):
478         (WebCore::SVGListProperty::insertItemBeforeValues):
479         (WebCore::SVGListProperty::insertItemBeforeValuesAndWrappers):
480         (WebCore::SVGListProperty::canReplaceItem):
481         (WebCore::SVGListProperty::replaceItemValues):
482         (WebCore::SVGListProperty::replaceItemValuesAndWrappers):
483         (WebCore::SVGListProperty::canRemoveItem):
484         (WebCore::SVGListProperty::removeItemValues):
485         (WebCore::SVGListProperty::removeItemValuesAndWrappers):
486         (WebCore::SVGListProperty::appendItemValues):
487         (WebCore::SVGListProperty::appendItemValuesAndWrappers):
488         (WebCore::SVGListProperty::values):
489         (WebCore::SVGListProperty::wrappers):
490         (WebCore::SVGListProperty::SVGListProperty):
491         * svg/properties/SVGListPropertyTearOff.h:
492         (SVGListPropertyTearOff):
493         (WebCore::SVGListPropertyTearOff::create):
494         (WebCore::SVGListPropertyTearOff::removeItemFromList):
495         (WebCore::SVGListPropertyTearOff::clear):
496         (WebCore::SVGListPropertyTearOff::initialize):
497         (WebCore::SVGListPropertyTearOff::insertItemBefore):
498         (WebCore::SVGListPropertyTearOff::replaceItem):
499         (WebCore::SVGListPropertyTearOff::appendItem):
500         (WebCore::SVGListPropertyTearOff::SVGListPropertyTearOff):
501         (WebCore::SVGListPropertyTearOff::commitChange):
502         * svg/properties/SVGPathSegListPropertyTearOff.cpp:
503         (WebCore::SVGPathSegListPropertyTearOff::clear):
504         (WebCore::SVGPathSegListPropertyTearOff::getItem):
505         (WebCore::SVGPathSegListPropertyTearOff::removeItem):
506         * svg/properties/SVGPathSegListPropertyTearOff.h:
507         (WebCore::SVGPathSegListPropertyTearOff::create):
508         (WebCore::SVGPathSegListPropertyTearOff::removeItemFromList):
509         (SVGPathSegListPropertyTearOff):
510         (WebCore::SVGPathSegListPropertyTearOff::initialize):
511         (WebCore::SVGPathSegListPropertyTearOff::insertItemBefore):
512         (WebCore::SVGPathSegListPropertyTearOff::replaceItem):
513         (WebCore::SVGPathSegListPropertyTearOff::appendItem):
514         (WebCore::SVGPathSegListPropertyTearOff::SVGPathSegListPropertyTearOff):
515         (WebCore::SVGPathSegListPropertyTearOff::commitChange):
516         * svg/properties/SVGPropertyInfo.h:
517         * svg/properties/SVGStaticListPropertyTearOff.h:
518         (SVGStaticListPropertyTearOff):
519         (WebCore::SVGStaticListPropertyTearOff::clear):
520         (WebCore::SVGStaticListPropertyTearOff::initialize):
521         (WebCore::SVGStaticListPropertyTearOff::getItem):
522         (WebCore::SVGStaticListPropertyTearOff::insertItemBefore):
523         (WebCore::SVGStaticListPropertyTearOff::replaceItem):
524         (WebCore::SVGStaticListPropertyTearOff::removeItem):
525         (WebCore::SVGStaticListPropertyTearOff::appendItem):
526         (WebCore::SVGStaticListPropertyTearOff::SVGStaticListPropertyTearOff):
527         (WebCore::SVGStaticListPropertyTearOff::commitChange):
528         * svg/properties/SVGTransformListPropertyTearOff.h:
529         (WebCore::SVGTransformListPropertyTearOff::create):
530         (WebCore::SVGTransformListPropertyTearOff::createSVGTransformFromMatrix):
531         (WebCore::SVGTransformListPropertyTearOff::consolidate):
532         (WebCore::SVGTransformListPropertyTearOff::SVGTransformListPropertyTearOff):
533
534 2012-03-14  Chris Fleizach  <cfleizach@apple.com>
535
536         AXDescription for HTML5 footer
537         https://bugs.webkit.org/show_bug.cgi?id=78967
538
539         Return a unique role description for the footer element.
540
541         Reviewed by Beth Dakin.
542
543         Test: platform/mac/accessibility/footer-roledescription.html
544
545         * English.lproj/Localizable.strings:+
546         * accessibility/AccessibilityObject.h:
547         * accessibility/AccessibilityRenderObject.cpp:
548         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
549         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
550         (createAccessibilityRoleMap):
551         (-[WebAccessibilityObjectWrapper subrole]):
552         (-[WebAccessibilityObjectWrapper roleDescription]):
553         * platform/LocalizedStrings.cpp:
554         (WebCore::AXFooterRoleDescriptionText):
555         (WebCore):
556         * platform/LocalizedStrings.h:
557         (WebCore):
558         * platform/blackberry/LocalizedStringsBlackBerry.cpp:
559         (WebCore::AXFooterRoleDescriptionText):
560         (WebCore):
561         * platform/efl/LocalizedStringsEfl.cpp:
562         (WebCore::AXFooterRoleDescriptionText):
563         (WebCore):
564         * platform/gtk/LocalizedStringsGtk.cpp:
565         (WebCore::AXFooterRoleDescriptionText):
566         (WebCore):
567
568 2012-03-14  Mark Rowe  <mrowe@apple.com>
569
570         <http://webkit.org/b/81193> Ensure libWebCoreTestSupport.dylib's library identifier is set appropriately for all configurations.
571
572         Reviewed by Dan Bernstein.
573
574         * Configurations/WebCoreTestSupport.xcconfig: Switch to setting DYLIB_INSTALL_NAME_BASE
575         rather than LD_DYLIB_INSTALL_NAME. The latter is derived from the former. Ensure that
576         DYLIB_INSTALL_NAME_BASE is also set for the Production configuration.
577
578 2012-03-14  Chris Fleizach  <cfleizach@apple.com>
579
580         AXDescription for ARIA role contentinfo incorrect
581         https://bugs.webkit.org/show_bug.cgi?id=78967
582
583         Reviewed by Beth Dakin.
584
585         Test: platform/mac/accessibility/aria-grouping-roles.html
586
587         * English.lproj/Localizable.strings:
588         * platform/LocalizedStrings.cpp:
589         (WebCore::AXARIAContentGroupText):
590
591 2012-03-14  Chris Fleizach  <cfleizach@apple.com>
592
593         AX: ARIA tables need to support selected rows attribute/select rows changed notification
594         https://bugs.webkit.org/show_bug.cgi?id=79821
595
596         Reviewed by Beth Dakin.
597
598         Test: platform/mac/accessibility/selected-rows-table.html
599
600         * accessibility/AccessibilityARIAGrid.h:
601         (WebCore::AccessibilityARIAGrid::isMultiSelectable):
602         (AccessibilityARIAGrid):
603         * accessibility/AccessibilityRenderObject.cpp:
604         (WebCore::AccessibilityRenderObject::ariaSelectedRows):
605         * accessibility/AccessibilityTableRow.cpp:
606         (WebCore::AccessibilityTableRow::observableObject):
607         (WebCore):
608         * accessibility/AccessibilityTableRow.h:
609         (AccessibilityTableRow):
610         * accessibility/mac/AXObjectCacheMac.mm:
611         (WebCore::AXObjectCache::postPlatformNotification):
612
613 2012-03-14  James Robinson  <jamesr@chromium.org>
614
615         Platforms without USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR) don't need to query the page's displayID
616         https://bugs.webkit.org/show_bug.cgi?id=81187
617
618         Reviewed by Simon Fraser.
619
620         * dom/Document.cpp:
621         (WebCore::Document::webkitRequestAnimationFrame):
622
623 2012-03-14  Chris Fleizach  <cfleizach@apple.com>
624
625         AX: embedded attachments do not report their parents correctly
626         https://bugs.webkit.org/show_bug.cgi?id=80132
627
628         When a WebHTMLView has embedded attachments in it, the AXParent of those attachments is wrong.
629         It usually points to the AXScrollView of the web area. That's because there has been no way for WebCore to
630         communicate that this attachment view should actually make believe that it's parent is within the WebCore AX tree.
631
632         We can fix that by overriding the AXParent in overriden attributes for items that are attachments.
633
634         Reviewed by Beth Dakin.
635
636         Not able to construct a layout test because the problem only manifests itself when an AX client connects to WebKit
637         through the IPC mechanism.
638
639         * accessibility/AccessibilityObject.cpp:
640         (WebCore::AccessibilityObject::detachFromParent):
641         * accessibility/AccessibilityObject.h:
642         (AccessibilityObject):
643         (WebCore::AccessibilityObject::overrideAttachmentParent):
644         * accessibility/AccessibilityRenderObject.cpp:
645         (WebCore::AccessibilityRenderObject::updateAttachmentViewParents):
646         (WebCore::AccessibilityRenderObject::addChildren):
647         * accessibility/AccessibilityRenderObject.h:
648         (AccessibilityRenderObject):
649         * accessibility/mac/AccessibilityObjectMac.mm:
650         (WebCore::AccessibilityObject::overrideAttachmentParent):
651
652 2012-03-14  Ryosuke Niwa  <rniwa@webkit.org>
653
654         Improve ContainerNode's collectNodes() performance
655         https://bugs.webkit.org/show_bug.cgi?id=80706
656
657         Reviewed by Antti Koivisto.
658
659         Bump up the size of stack allocated buffer from 1 to 11. According to the rough study I conducted,
660         this would cover 99.5% of all node collection.
661
662         Note: the actual code change was made in r110797 but I somehow mangled my patches.
663
664         * dom/ContainerNode.cpp:
665         (WebCore):
666
667 2012-03-14  Seo Sanghyeon  <sh4.seo@samsung.com>
668
669         Cleanup semicolons in IDLs
670         https://bugs.webkit.org/show_bug.cgi?id=81129
671
672         Reviewed by Kentaro Hara.
673
674         No tests. No change in behavior.
675
676         * svg/SVGAnimateColorElement.idl:
677         * svg/SVGAnimateElement.idl:
678         * svg/SVGAnimateTransformElement.idl:
679         * svg/SVGAnimatedRect.idl:
680
681 2012-03-14  Hayato Ito  <hayato@chromium.org>
682
683         Make ShadowRoot.activeElement return null if it does not contain a focused element.
684         https://bugs.webkit.org/show_bug.cgi?id=81097
685
686         Reviewed by Dimitri Glazkov.
687
688         * dom/TreeScope.cpp:
689         (WebCore::TreeScope::activeElement):
690
691 2012-03-14  Matt Falkenhagen  <falken@chromium.org>
692
693         Allow per-script font settings to be specified in layout tests
694         https://bugs.webkit.org/show_bug.cgi?id=78184
695
696         Reviewed by Hajime Morita.
697
698         This adds per-script font settings to InternalSettings, so it can be used in layout tests instead of
699         the per-script font settings support in DumpRenderTree overridePreference, which has only been implemented
700         for Chromium so far.
701
702         Test: changed fast/text/international/locale-sensitive-fonts.html to use InternalSettings
703         instead of overridePreference.
704
705         * WebCore.exp.in: Added symbols.
706         * platform/text/LocaleToScriptMapping.h: Added scriptNameToCode used by InternalSettings.
707         (WebCore):
708         * platform/text/LocaleToScriptMappingDefault.cpp:
709         (WebCore::scriptNameToCode):
710         (WebCore::localeToScriptCodeForFontSelection):
711         * platform/text/LocaleToScriptMappingICU.cpp:
712         (WebCore::scriptNameToCode):
713         (WebCore):
714         * testing/InternalSettings.cpp: Added per-script font settings.
715         (WebCore):
716         (WebCore::setFontFamily):
717         (WebCore::InternalSettings::setStandardFontFamily):
718         (WebCore::InternalSettings::setSerifFontFamily):
719         (WebCore::InternalSettings::setSansSerifFontFamily):
720         (WebCore::InternalSettings::setFixedFontFamily):
721         (WebCore::InternalSettings::setCursiveFontFamily):
722         (WebCore::InternalSettings::setFantasyFontFamily):
723         (WebCore::InternalSettings::setPictographFontFamily):
724         * testing/InternalSettings.h:
725         (InternalSettings):
726         * testing/InternalSettings.idl:
727
728 2012-03-14  Kwonjin Jeong  <gram@company100.net>
729
730         Remove obsolete constructors of CSSPrimitiveValue class.
731         https://bugs.webkit.org/show_bug.cgi?id=80971
732
733         Remove constructors of CSSPrimitiveValue that can't be
734         reached.
735
736         Reviewed by Andreas Kling.
737
738         * css/CSSPrimitiveValueMappings.h:
739
740 2012-03-14  Igor Oliveira  <igor.o@sisa.samsung.com>
741
742         Split the extra logic out of RenderBlock::updateFirstLetter
743         https://bugs.webkit.org/show_bug.cgi?id=80772
744
745         Reviewed by Julien Chaffraix.
746
747         No change in behavior expected.
748
749         * rendering/RenderBlock.cpp:
750         (WebCore::RenderBlock::updateFirstLetterStyle):
751         (WebCore::RenderBlock::createFirstLetterRenderer):
752         (WebCore::RenderBlock::updateFirstLetter):
753         (WebCore):
754         * rendering/RenderBlock.h:
755         (RenderBlock):
756
757 2012-03-14  Anders Carlsson  <andersca@apple.com>
758
759         Fix build.
760
761         * html/track/TextTrackList.cpp:
762
763 2012-03-14  Ryosuke Niwa  <rniwa@webkit.org>
764
765         Build fix.
766
767         * dom/DynamicNodeList.h:
768         (DynamicSubtreeNodeList):
769
770 2012-03-14  Ryosuke Niwa  <rniwa@webkit.org>
771
772         (register|unregister)DynamicSubtreeNodeList should be called only for labels and regions node lists
773         https://bugs.webkit.org/show_bug.cgi?id=80900
774
775         Reviewed by Andreas Kling.
776
777         Cleaned up invalidation code for dynamic node lists. It seems like the existing code was utterly confused
778         about the lifetime of node lists and caches within them. First, register/unregsiterDynamicSubtreeNodeList
779         are called for all dynamic node lists even though it's only useful for labels and region node lists since
780         it's a mechanism to allow node lists to be invalidated at a node to which the node list doesn't belong.
781
782         Second, some node lists had dedicated member functions on Node to explicitly invalidate caches in
783         parsedAttribute. However, this is redundant because invalidateNodeListsCacheAfterAttributeChanged should be
784         able to invalidate caches when the attribute value changes. This patch gets rid of the last instance of such
785         function in HTMLLabelElement.
786
787         And finally, this patch restricts the callers of DynamicSubtreeNodeList::invalidateCache to be member
788         functions of NodeListsNodeData (now friends of DynamicSubtreeNodeList) to allow futher refactoring.
789
790         * dom/DynamicNodeList.cpp:
791         (WebCore::DynamicSubtreeNodeList::DynamicSubtreeNodeList): Don't register the node list since it's only
792         useful for labels and region node lists.
793         (WebCore::DynamicSubtreeNodeList::~DynamicSubtreeNodeList): Ditto.
794         * dom/DynamicNodeList.h:
795         (DynamicSubtreeNodeList):
796         * dom/Node.cpp:
797         (WebCore):
798         (WebCore::Node::registerDynamicSubtreeNodeList): The comment about now we have to invalidate caches
799         when there had no caches is incorrect because registerDynamicSubtreeNodeList is called when a node list
800         is initially created. Also, if the tree scope didn't have any caches, then this is the first node list
801         to be added to the list, so there's no point in calling InvalidateCaches (no-op).
802         (WebCore::Node::unregisterDynamicSubtreeNodeList):
803         (WebCore::Node::invalidateNodeListsCacheAfterAttributeChanged): Take care of "for" content attribute.
804         Also remove the redundant call to removeNodeListCacheIfPossible since we only invalidates node lists
805         and never remove entries from NodeListsNodeData in this function.
806         (WebCore::Node::invalidateNodeListsCacheAfterChildrenChanged): The call to removeNodeListCacheIfPossible
807         is also redundant here. Also removed the invalidation of m_listsWithCaches since it's already done in
808         invalidateCaches via invalidateCachesThatDependOnAttributes.
809         (WebCore::NodeListsNodeData::invalidateCaches): Removed the invalidation of m_labelsNodeListCache. It's
810         done in invalidateCachesThatDependOnAttributes.
811         (WebCore::NodeListsNodeData::invalidateCachesThatDependOnAttributes): Invalidate
812         m_listsInvalidatedAtDocument, which is renamed from m_listsWithCaches.
813         (WebCore::NodeListsNodeData::isEmpty):
814         * dom/Node.h:
815         (Node):
816         * dom/NodeRareData.h:
817         (NodeListsNodeData):
818         * html/HTMLLabelElement.cpp:
819         (WebCore): Removed parseAttribute since the invalidation labels node list is now done by
820         invalidateNodeListsCacheAfterAttributeChanged and invalidateNodeListsCacheAfterChildrenChanged.
821         * html/HTMLLabelElement.h:
822         (HTMLLabelElement):
823         * html/LabelsNodeList.cpp:
824         (WebCore::LabelsNodeList::LabelsNodeList):
825         (WebCore::LabelsNodeList::~LabelsNodeList):
826
827 2012-03-14  Sheriff Bot  <webkit.review.bot@gmail.com>
828
829         Unreviewed, rolling out r110565.
830         http://trac.webkit.org/changeset/110565
831         https://bugs.webkit.org/show_bug.cgi?id=81173
832
833         chromium deps are now far enough along that the original cl
834         should work (Requested by thakis on #webkit).
835
836         * WebCore.gyp/mac/adjust_visibility.sh:
837
838 2012-03-14  Sheriff Bot  <webkit.review.bot@gmail.com>
839
840         Unreviewed, rolling out r110641.
841         http://trac.webkit.org/changeset/110641
842         https://bugs.webkit.org/show_bug.cgi?id=81170
843
844         Causes an ASAN failure (Requested by abarth on #webkit).
845
846         * Target.pri:
847         * UseV8.cmake:
848         * WebCore.gypi:
849         * bindings/scripts/CodeGeneratorJS.pm:
850         (GenerateHeader):
851         (GenerateImplementation):
852         * bindings/scripts/CodeGeneratorV8.pm:
853         (GenerateHeader):
854         (GenerateNamedConstructorCallback):
855         (GenerateImplementation):
856         * bindings/scripts/IDLAttributes.txt:
857         * bindings/scripts/test/V8/V8Float64Array.cpp:
858         (WebCore):
859         * bindings/scripts/test/V8/V8Float64Array.h:
860         (V8Float64Array):
861         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
862         (WebCore):
863         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
864         (V8TestActiveDOMObject):
865         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
866         (WebCore):
867         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
868         (V8TestCustomNamedGetter):
869         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
870         (WebCore):
871         * bindings/scripts/test/V8/V8TestEventConstructor.h:
872         (V8TestEventConstructor):
873         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
874         (WebCore):
875         * bindings/scripts/test/V8/V8TestEventTarget.h:
876         (V8TestEventTarget):
877         * bindings/scripts/test/V8/V8TestInterface.cpp:
878         (WebCore):
879         * bindings/scripts/test/V8/V8TestInterface.h:
880         (V8TestInterface):
881         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
882         (WebCore):
883         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
884         (V8TestMediaQueryListListener):
885         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
886         (WebCore):
887         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
888         (V8TestNamedConstructor):
889         * bindings/scripts/test/V8/V8TestObj.cpp:
890         (WebCore):
891         * bindings/scripts/test/V8/V8TestObj.h:
892         (V8TestObj):
893         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
894         (WebCore):
895         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
896         (V8TestSerializedScriptValueInterface):
897         * bindings/v8/NPV8Object.cpp:
898         (WebCore::npObjectTypeInfo):
899         * bindings/v8/V8GCController.cpp:
900         (WebCore::GrouperVisitor::visitDOMWrapper):
901         * bindings/v8/WrapperTypeInfo.h:
902         (WebCore):
903         (WrapperTypeInfo):
904         * bindings/v8/custom/V8CSSStyleSheetCustom.cpp: Copied from Source/WebCore/bindings/v8/custom/V8StyleSheetCustom.cpp.
905         (WebCore):
906         (WebCore::toV8):
907         * bindings/v8/custom/V8DOMStringMapCustom.cpp:
908         (WebCore::toV8):
909         (WebCore):
910         * bindings/v8/custom/V8DOMTokenListCustom.cpp: Copied from Source/WebCore/bindings/v8/custom/V8StyleSheetCustom.cpp.
911         (WebCore):
912         (WebCore::toV8):
913         * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
914         (WebCore):
915         * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
916         (WebCore::toV8):
917         (WebCore):
918         * bindings/v8/custom/V8StyleSheetCustom.cpp:
919         (WebCore::toV8):
920         * css/CSSStyleSheet.idl:
921         * css/StyleSheet.idl:
922         * dom/DOMStringMap.idl:
923         * dom/NamedNodeMap.idl:
924         * html/DOMTokenList.idl:
925         * html/track/TextTrackList.cpp:
926         * html/track/TextTrackList.idl:
927
928 2012-03-13  Jon Lee  <jonlee@apple.com>
929
930         Separate NOTIFICATIONS and LEGACY_NOTIFICATIONS
931         https://bugs.webkit.org/show_bug.cgi?id=80922
932         <rdar://problem/11035082>
933
934         Reviewed by Jian Li.
935
936         You can include either NOTIFICATIONS or LEGACY_NOTIFICATIONS and have a complete API.
937         LEGACY_NOTIFICATIONS should cover all of the previous functionality, and NOTIFICATIONS will cover the
938         new API. Therefore, APIs that are common between the two will have:
939         #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
940
941         This patch initially sets both to be exactly the same. As other bugs with patches begin to migrate to
942         the new API, the defines will begin to split. This allows ports to decide which set of APIs to include.
943
944         * bindings/scripts/InFilesCompiler.pm: Update the script to handle the "|" flag in a conditional.
945         (preferredConditional):
946         (conditionalStringFromAttributeValue):
947         (generateInterfacesHeader):
948         (generateHeadersHeader):
949
950         Update everything to be #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
951         * WebCore.exp.in:
952         * bindings/cpp/WebDOMEventTarget.cpp:
953         (toWebKit):
954         * bindings/js/JSDesktopNotificationsCustom.cpp:
955         * bindings/v8/custom/V8NotificationCenterCustom.cpp:
956         * dom/EventTargetFactory.in:
957         * notifications/Notification.cpp:
958         * notifications/Notification.h:
959         * notifications/Notification.idl:
960         * notifications/NotificationCenter.cpp:
961         * notifications/NotificationCenter.h:
962         * notifications/NotificationCenter.idl:
963         * notifications/NotificationContents.h:
964         * notifications/NotificationController.cpp:
965         * notifications/NotificationController.h:
966         * page/DOMWindow.cpp:
967         (WebCore::DOMWindow::~DOMWindow):
968         (WebCore::DOMWindow::willDetachPage):
969         (WebCore::DOMWindow::disconnectDOMWindowProperties):
970         (WebCore::DOMWindow::clearDOMWindowProperties):
971         (WebCore):
972         * page/DOMWindow.h:
973         (DOMWindow):
974         * page/DOMWindow.idl:
975         * page/Frame.cpp:
976         (WebCore::Frame::willDetachPage):
977         (WebCore::Frame::transferChildFrameToNewDocument):
978         * workers/WorkerContext.cpp:
979         (WebCore::WorkerContext::~WorkerContext):
980         (WebCore):
981         * workers/WorkerContext.h:
982         (WorkerContext):
983         * workers/WorkerContext.idl:
984         * workers/WorkerThread.cpp:
985         (WebCore::WorkerThread::WorkerThread):
986         * workers/WorkerThread.h:
987         (WorkerThread):
988
989 2012-03-14  Sheriff Bot  <webkit.review.bot@gmail.com>
990
991         Unreviewed, rolling out r110744.
992         http://trac.webkit.org/changeset/110744
993         https://bugs.webkit.org/show_bug.cgi?id=81168
994
995         Causes many WebAudio tests to crash in debug (Requested by
996         abarth on #webkit).
997
998         * platform/audio/Biquad.cpp:
999         (WebCore::Biquad::process):
1000
1001 2012-03-14  Brady Eidson  <beidson@apple.com>
1002
1003         <rdar://problem/11045584> and https://bugs.webkit.org/show_bug.cgi?id=81166
1004         Repro crash in compositing/iframes/page-cache-layer-tree.html
1005
1006         Reviewed by Sam Weinig.
1007
1008         No new tests. (Discovered from and covered by existing test)
1009
1010         ScriptCachedFrameData doesn't need to keep a DOMWindow:
1011         * bindings/js/ScriptCachedFrameData.cpp:
1012         (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
1013         * bindings/js/ScriptCachedFrameData.h:
1014         (ScriptCachedFrameData):
1015
1016         CachedFrame should grab it off the Frame directly and store it locally:
1017         * history/CachedFrame.cpp:
1018         (WebCore::CachedFrame::CachedFrame):
1019         * history/CachedFrame.h:
1020         (WebCore::CachedFrameBase::domWindow):
1021         (CachedFrameBase):
1022
1023 2012-03-14  Tony Chang  <tony@chromium.org>
1024
1025         fix negative flexing in auto sized columns
1026         https://bugs.webkit.org/show_bug.cgi?id=80069
1027
1028         Reviewed by Ojan Vafai.
1029
1030         New test cases in css3/flexbox/columns-auto-size.html.
1031
1032         * rendering/RenderFlexibleBox.cpp:
1033         (WebCore):
1034         (WebCore::RenderFlexibleBox::computeAvailableFreeSpace): Properly compute this for auto sizing columns. Previously, we would always return 0.
1035         (WebCore::RenderFlexibleBox::layoutFlexItems):
1036         (WebCore::RenderFlexibleBox::runFreeSpaceAllocationAlgorithm): Drop an unnecessary check against undefined. isSpecified covers this for us.
1037         * rendering/RenderFlexibleBox.h:
1038         (RenderFlexibleBox):
1039
1040 2012-03-14  Grace Ku  <gracek@codeaurora.org>
1041
1042         Incorrect handling of sizes in "em" when first-line changes font size
1043         https://bugs.webkit.org/show_bug.cgi?id=79526
1044
1045         Reviewed by Eric Seidel.
1046
1047         When a first-line pseudo class changes the font size, the "em" unit is handled incorrectly.
1048         It uses the paragraph's original font size (the size of the rest of the paragraph) rather than
1049         the font-size of the first-line of the paragraph.
1050
1051         This was corrected by checking if the InlineFlowBox was the first line using the existing
1052         InlineFlowBox::isFirstLineStyle() function. The corrected behaviour matches Gecko and Presto.
1053         Trident seems to get it half-wrong in the use case we are testing, painting the correct width for
1054         the border but leaving the wrong amount of space.
1055
1056         The CSS specification doc at the time of this patch specifies that ':first-line' should only support
1057         certain properties, though UAs may choose to apply more properties. Furthermore, the spec does not
1058         define the exact rendering of all cases of ':first-line'. It notes that a more precise definition
1059         may appear in future revisions.
1060
1061         Test: fast/css/pseudo-first-line-border-width.html
1062
1063         * rendering/InlineFlowBox.cpp:
1064         (WebCore::InlineFlowBox::paintBoxDecorations):
1065         * rendering/InlineFlowBox.h:
1066         (WebCore::InlineFlowBox::borderLogicalLeft):
1067         (WebCore::InlineFlowBox::borderLogicalRight):
1068         * rendering/RenderBoxModelObject.cpp:
1069         (WebCore::RenderBoxModelObject::paintBorder):
1070         (WebCore::RenderBoxModelObject::getBorderEdgeInfo):
1071         (WebCore::RenderBoxModelObject::borderObscuresBackgroundEdge):
1072         (WebCore::RenderBoxModelObject::borderObscuresBackground):
1073         * rendering/RenderBoxModelObject.h:
1074         (RenderBoxModelObject):
1075
1076 2012-03-14  Martin Robinson  <mrobinson@igalia.com>
1077
1078         Fix the TextureMapper build for GTK+.
1079
1080         No new tests. This is just a build fix.
1081
1082         * platform/graphics/cairo/GraphicsContext3DPrivate.cpp:
1083         (WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
1084         * platform/graphics/texmap/TextureMapper.h:
1085
1086 2012-03-12  Martin Robinson  <mrobinson@igalia.com>
1087
1088         [GTK] Menulist buttons have separators even when the theme turns them off
1089         https://bugs.webkit.org/show_bug.cgi?id=80668
1090
1091         Reviewed by Daniel Bates.
1092
1093         No new tests. GTK+ theme differences are notoriously difficult
1094         to test, because consistent results depend on having certain themes
1095         and certain versions of themes installed.
1096
1097         Instead of using the GTK_TYPE_BUTTON and GTK_TYPE_SEPARATOR tags to get the
1098         style context, use GTK_TYPE_COMBO_BOX which should provide more accurate theme settings.
1099
1100         * platform/gtk/RenderThemeGtk3.cpp:
1101         (WebCore::getComboBoxMetrics): Get metrics from a GTK_TYPE_COMBO_BOX style context.
1102         (WebCore::RenderThemeGtk::paintMenuList): Get separator settings from the GTK_TYPE_COMBO_BOX style context.
1103
1104 2012-03-14  Levi Weintraub  <leviw@chromium.org>
1105
1106         Implement proper sub-pixel support in RenderFileUploadControl
1107         https://bugs.webkit.org/show_bug.cgi?id=80881
1108
1109         Reviewed by Dimitri Glazkov.
1110
1111         Correcting improper usage of LayoutUnits when interacting with the graphics context
1112         and platform code. Specifically:
1113         - pixel snapping the clip rect and paint offsets before sending values to the
1114           graphics context in paintObject.
1115         - using on-screen (pixel snapped) values to pass off to platform code to determine
1116           the max length of the filename to be drawn.
1117
1118         No new tests. No change in behavior.
1119
1120         * rendering/RenderFileUploadControl.cpp:
1121         (WebCore::nodeWidth):
1122         (WebCore::RenderFileUploadControl::maxFilenameWidth):
1123         (WebCore::RenderFileUploadControl::paintObject):
1124
1125 2012-03-14  Joseph Pecoraro  <pecoraro@apple.com>
1126
1127         [JSC] Web Inspector: CRASH running $0, $1, etc before they are set
1128         https://bugs.webkit.org/show_bug.cgi?id=81082
1129
1130         Don't return an invalid JSValue. Check if the ScriptValue
1131         has no value and return undefined in that case.
1132
1133         Reviewed by Pavel Feldman.
1134
1135         Updated test: inspector/console/command-line-api.html
1136
1137         * bindings/js/JSInjectedScriptHostCustom.cpp:
1138         (WebCore::JSInjectedScriptHost::inspectedObject):
1139
1140 2012-03-14  James Robinson  <jamesr@chromium.org>
1141
1142         [chromium] Remove canRecoverFromContextLoss attribute, it's unused
1143         https://bugs.webkit.org/show_bug.cgi?id=81158
1144
1145         Reviewed by Stephen White.
1146
1147         Canvas accelerated no longer depends on the canRecoverFromContextLoss attribute after r110716.
1148
1149         * platform/graphics/GraphicsContext3D.h:
1150         (WebCore::GraphicsContext3D::Attributes::Attributes):
1151         (Attributes):
1152         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
1153         (WebCore::SharedGraphicsContext3DImpl::get):
1154
1155 2012-03-14  Jer Noble  <jer.noble@apple.com>
1156
1157         Opening a URL in a MediaDocument does not propagate MIME type info to media element
1158         https://bugs.webkit.org/show_bug.cgi?id=81148
1159
1160         Reviewed by Eric Carlson.
1161
1162         Test: http/tests/media/media-document.html
1163
1164         Pass through the mime type from the DocumentLoader into the <source type=""> attribute of the
1165         generated video element. 
1166
1167         * html/MediaDocument.cpp:
1168         (WebCore::MediaDocumentParser::createDocumentStructure):
1169
1170 2012-03-14  Stephen White  <senorblanco@chromium.org>
1171
1172         [chromium] Fix accelerated Canvas2D with threaded compositing.
1173         https://bugs.webkit.org/show_bug.cgi?id=80998
1174
1175         Reviewed by James Robinson.
1176
1177         Covered by unit tests Canvas2DLayerChromiumTest and
1178         TreeSynchronizerTest.
1179
1180         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
1181         (WebCore::Canvas2DLayerChromium::paintContentsIfDirty):
1182         (WebCore):
1183         Delay creation of the front texture for double-buffering until the
1184         first call to paintContentsIfDirty().
1185         * platform/graphics/chromium/Canvas2DLayerChromium.h:
1186         (Canvas2DLayerChromium):
1187         Remove setTextureManager() and setLayerTreeHost(), since their job
1188         has been subsumed by paintContentsIfDirty().
1189         * platform/graphics/chromium/TreeSynchronizer.cpp:
1190         (WebCore::TreeSynchronizer::updateScrollbarLayerPointersRecursive):
1191         Perform an early-out if the passed-in layer is NULL.
1192
1193 2012-03-14  Mark Pilgrim  <pilgrim@chromium.org>
1194
1195         Move EntriesCallback to Modules/filesystem/
1196         https://bugs.webkit.org/show_bug.cgi?id=81032
1197
1198         Reviewed by Adam Barth.
1199
1200         No new tests, all existing tests pass.
1201
1202         * CMakeLists.txt:
1203         * DerivedSources.make:
1204         * DerivedSources.pri:
1205         * GNUmakefile.list.am:
1206         * Modules/filesystem/EntriesCallback.h: Copied from Source/WebCore/fileapi/EntriesCallback.h.
1207         * Modules/filesystem/EntriesCallback.idl: Copied from Source/WebCore/fileapi/EntriesCallback.idl.
1208         * Target.pri:
1209         * WebCore.gypi:
1210         * WebCore.vcproj/WebCore.vcproj:
1211         * WebCore.xcodeproj/project.pbxproj:
1212         * fileapi/EntriesCallback.h: Removed.
1213         * fileapi/EntriesCallback.idl: Removed.
1214
1215 2012-03-14  Tony Chang  <tony@chromium.org>
1216
1217         multiline column flexbox with auto height wrap too much
1218         https://bugs.webkit.org/show_bug.cgi?id=80929
1219
1220         Reviewed by David Hyatt.
1221
1222         Test: css3/flexbox/multiline-column-auto.html
1223
1224         * rendering/RenderBox.cpp:
1225         (WebCore::RenderBox::computeLogicalHeightUsing):
1226         (WebCore):
1227         (WebCore::RenderBox::computeContentLogicalHeightUsing): Pull out into a separate method.
1228         * rendering/RenderBox.h:
1229         (RenderBox):
1230         * rendering/RenderFlexibleBox.cpp:
1231         (WebCore::RenderFlexibleBox::lineBreakLength): Compute the value based on height & max-height for column layout.
1232         (WebCore):
1233         (WebCore::RenderFlexibleBox::computeNextFlexLine):
1234         * rendering/RenderFlexibleBox.h:
1235         (RenderFlexibleBox):
1236
1237 2012-03-14  Xingnan Wang  <xingnan.wang@intel.com>
1238
1239         Optimize the multiply-add in Biquad.cpp::process
1240         https://bugs.webkit.org/show_bug.cgi?id=75528
1241
1242         Reviewed by Chris Rogers.
1243
1244         Pipeline the multiply-add with SSE2 instructions and get about 20% improvement for the function.
1245
1246         * platform/audio/Biquad.cpp:
1247         (WebCore::Biquad::process):
1248
1249 2012-03-14  James Robinson  <jamesr@chromium.org>
1250
1251         [Chromium] Layout Test compositing/repaint/opacity-between-absolute.html is flaky
1252         https://bugs.webkit.org/show_bug.cgi?id=79823
1253
1254         Reviewed by Adrienne Walker.
1255
1256         LayerRendererChromium was storing a weak pointer to the current render surface in m_currentRenderSurface and
1257         using this in useRenderSurface() to avoid rebinding if we called useRenderSurface() multiple times in a row on
1258         the same surface. This pointer was never cleared, so if any subsequent surface landed at the same address this
1259         caching would misbehave and we'd fail to correctly initialize the new render surface. The caching wasn't
1260         actually buying us anything anyway since we only call useRenderSurface() once per surface per frame and we
1261         always set the viewport for the default render surface.
1262
1263         * platform/graphics/chromium/LayerRendererChromium.cpp:
1264         (WebCore::LayerRendererChromium::beginDrawingFrame):
1265         (WebCore::LayerRendererChromium::useRenderSurface):
1266
1267 2012-03-14  Zalan Bujtas  <zbujtas@gmail.com>
1268
1269         Frame flattening ASSERT(!needsLayout()) in FrameView::paintContents()
1270         https://bugs.webkit.org/show_bug.cgi?id=80155
1271
1272         Reviewed by Antti Koivisto.
1273
1274         This patch ensures that an iframe only schedules and calls parent's layout,
1275         when it is going to be flattened. Non-flattened iframe does not affect
1276         parent's layout, so normal layout flow applies. isInSubframeLayoutWithFrameFlattening()
1277         function has been added to test whether a particular child frame is changing
1278         parent's layout. This function also ensures that scheduleRelayout() and layout()
1279         are in sync of checking againts frame flattening.
1280
1281         Test: fast/frames/flattening/iframe-flattening-fixed-width-and-height-no-scrolling-with-js-forced-layout.html
1282
1283         * page/FrameView.cpp:
1284         (WebCore::FrameView::avoidScrollbarCreation):
1285         (WebCore::FrameView::layout):
1286         (WebCore::FrameView::scheduleRelayout):
1287         (WebCore::FrameView::isInChildFrameWithFrameFlattening):
1288         (WebCore):
1289         (WebCore::FrameView::updateLayoutAndStyleIfNeededRecursive):
1290         * page/FrameView.h:
1291         (FrameView):
1292         * rendering/RenderIFrame.h:
1293         (RenderIFrame):
1294         (WebCore::RenderIFrame::renderName):
1295
1296 2012-03-14  Anders Carlsson  <andersca@apple.com>
1297
1298         Don't cap the scroll position if layout happens when a FrameView's overhangAmount is non-zero
1299         https://bugs.webkit.org/show_bug.cgi?id=81146
1300         <rdar://problem/10850075>
1301
1302         Reviewed by Beth Dakin.
1303
1304         If layout happens when a page has a non-zero overhang amount, we shouldn't cap the scroll position
1305         to be inside of the valid maximum/minimum scroll offsets because that will cause the page to jump back, which
1306         can look really bad if layout happens in response to the page being scrolled.
1307
1308         * platform/ScrollView.cpp:
1309         (WebCore::ScrollView::updateScrollbars):
1310
1311 2012-03-14  Tommy Widenflycht  <tommyw@google.com>
1312
1313         MediaStream API (JSEP): Introducing IceCandidate
1314         https://bugs.webkit.org/show_bug.cgi?id=80699
1315
1316         Reviewed by Adam Barth.
1317
1318         Patch #2 in a series of patches to change the PeerConnection from ROAP to JSEP,
1319         see bug 80589 for more information.
1320         Adding the JS object IceCandidate and its WebCore/platform sibling IceCandidateDescriptor.
1321         This object will be created both from JS and the embedder.
1322
1323         Not possible to test until the entire JSEP feature is commited.
1324
1325         * GNUmakefile.list.am:
1326         * Modules/mediastream/IceCandidate.cpp: Copied from Source/WebCore/platform/mediastream/MediaStreamCenter.cpp.
1327         (WebCore):
1328         (WebCore::IceCandidate::create):
1329         (WebCore::IceCandidate::IceCandidate):
1330         (WebCore::IceCandidate::~IceCandidate):
1331         (WebCore::IceCandidate::label):
1332         (WebCore::IceCandidate::candidateLine):
1333         (WebCore::IceCandidate::toSdp):
1334         (WebCore::IceCandidate::descriptor):
1335         * Modules/mediastream/IceCandidate.h: Copied from Source/WebCore/platform/mediastream/MediaStreamCenter.cpp.
1336         (WebCore):
1337         (IceCandidate):
1338         * Modules/mediastream/IceCandidate.idl: Added.
1339         * WebCore.gypi:
1340         * platform/mediastream/IceCandidateDescriptor.cpp: Copied from Source/WebCore/platform/mediastream/MediaStreamCenter.cpp.
1341         (WebCore):
1342         (WebCore::IceCandidateDescriptor::create):
1343         (WebCore::IceCandidateDescriptor::IceCandidateDescriptor):
1344         (WebCore::IceCandidateDescriptor::~IceCandidateDescriptor):
1345         (WebCore::IceCandidateDescriptor::toSdp):
1346         * platform/mediastream/IceCandidateDescriptor.h: Copied from Source/WebCore/platform/mediastream/MediaStreamCenter.cpp.
1347         (WebCore):
1348         (IceCandidateDescriptor):
1349         (WebCore::IceCandidateDescriptor::label):
1350         (WebCore::IceCandidateDescriptor::candidateLine):
1351         * platform/mediastream/MediaStreamCenter.cpp:
1352         (WebCore::MediaStreamCenter::constructSdp):
1353         (WebCore):
1354         * platform/mediastream/MediaStreamCenter.h:
1355         (WebCore):
1356         (MediaStreamCenter):
1357
1358 2012-03-14  Simon Fraser  <simon.fraser@apple.com>
1359
1360         background-visibility:hidden should create a RenderLayer
1361         https://bugs.webkit.org/show_bug.cgi?id=81134
1362
1363         Reviewed by Dean Jackson.
1364         
1365         Background-visibility:hidden has to create RenderLayers, because it's implemented
1366         via compositing and/or paint short-circuiting in RenderLayer code.
1367
1368         Test: transforms/3d/general/background-visibility-layers.html
1369
1370         * rendering/RenderBox.h:
1371         * rendering/RenderBoxModelObject.h:
1372         (WebCore::RenderBoxModelObject::requiresLayer):
1373         * rendering/RenderObject.h:
1374         (WebCore::RenderObject::hasHiddenBackface):
1375         * rendering/RenderTableRow.h:
1376
1377 2012-03-14  Raul Hudea  <rhudea@adobe.com>
1378
1379         [CSSRegions][CSSOM] Implement regionLayoutEvent
1380         https://bugs.webkit.org/show_bug.cgi?id=78882
1381
1382         Reviewed by David Hyatt.
1383
1384         Adding the regionLayoutEvent that is dispatch for all regions after each flow-thread layout.
1385
1386         Tests: fast/regions/region-event-add-to-flow.html
1387                fast/regions/region-event-remove-from-dom.html
1388                fast/regions/region-event-remove-from-flow.html
1389                fast/regions/region-event.html
1390
1391         * dom/Document.cpp:
1392         (WebCore::Document::addListenerTypeIfNeeded): Added check for regionLayoutUpdate listeners
1393         * dom/Document.h:
1394         * dom/EventNames.h:
1395         (WebCore):
1396         * dom/Node.cpp:
1397         (WebCore::Node::dispatchRegionLayoutUpdateEvent):
1398         (WebCore):
1399         * dom/Node.h:
1400         (Node):
1401         * rendering/RenderFlowThread.cpp:
1402         (WebCore::RenderFlowThread::RenderFlowThread):
1403         (WebCore::RenderFlowThread::layout): Start the event dispatch timer but only if there are regionLayoutUpdate listeners and there is at least one region that had its layout updated.
1404         (WebCore::RenderFlowThread::computeOverflowStateForRegions): Mark regions that might had a layout update
1405         (WebCore::RenderFlowThread::regionLayoutUpdateEventTimerFired):
1406         (WebCore):
1407         * rendering/RenderFlowThread.h:
1408         * rendering/RenderRegion.cpp:
1409         (WebCore::RenderRegion::RenderRegion):
1410         * rendering/RenderRegion.h:
1411         (WebCore::RenderRegion::setDispatchRegionLayoutUpdateEvent):
1412         (WebCore::RenderRegion::shouldDispatchRegionLayoutUpdateEvent):
1413         (RenderRegion):
1414
1415 2012-03-14  Pierre Rossi  <pierre.rossi@gmail.com>
1416
1417         [Qt] Add support for vertical sliders in mobile theme
1418         https://bugs.webkit.org/show_bug.cgi?id=80179
1419
1420         This makes sliders using the "slider-vertical" appearance more sensible.
1421
1422         Reviewed by Simon Hausmann.
1423
1424         No new tests, since the mobile theme still isn't used in layout tests.
1425
1426         * platform/qt/RenderThemeQtMobile.cpp:
1427         (WebCore):
1428         (WebCore::StylePainterMobile::drawProgress):
1429         (WebCore::RenderThemeQtMobile::paintSliderTrack):
1430         * platform/qt/RenderThemeQtMobile.h:
1431         (StylePainterMobile):
1432
1433 2012-03-14  Jer Noble  <jer.noble@apple.com>
1434
1435         WebProcess spins beneath [QTMovie movieFileTypes:]
1436         https://bugs.webkit.org/show_bug.cgi?id=81133
1437
1438         Reviewed by Eric Carlson.
1439
1440         No new tests; speculative fix for top WebProcess spin.
1441
1442         When checking to see if a given mime type is supported by QuickTime,
1443         immediately exclude all types that do not begin with 'audio/' or 'video/'.
1444         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1445         (WebCore::MediaPlayerPrivateQTKit::supportsType):
1446
1447 2012-03-14  Zalan Bujtas  <zbujtas@gmail.com>
1448
1449         Make RenderIFrame::flattenFrame() return earlier, when frame flattening is disabled.
1450         https://bugs.webkit.org/show_bug.cgi?id=80301
1451
1452         Reviewed by Antti Koivisto.
1453
1454         Reorganize RenderIFrame flattenFrame() code, so that it returns
1455         earlier for the normal use case, when frame flattening is disabled.
1456         It also removes leftover null check.
1457
1458         No new tests, since there's no new functionality.
1459
1460         * rendering/RenderIFrame.cpp:
1461         (WebCore::RenderIFrame::flattenFrame):
1462
1463 2012-03-14  James Robinson  <jamesr@chromium.org>
1464
1465         [chromium] Provide explicit polling API to check if the platform is capable of accelerated 2d canvas
1466         https://bugs.webkit.org/show_bug.cgi?id=80667
1467
1468         Reviewed by Darin Fisher.
1469
1470         Query the platform to see if we can instantiate a context suitable for accelerating 2d canvas. If we can't, for
1471         instance if we're on a system that can't preserve a context when the screensaver comes up, then immediately fall
1472         back to software.
1473
1474         Covered by canvas layout tests in the virtual-gpu mode.
1475
1476         * html/HTMLCanvasElement.cpp:
1477         (WebCore::HTMLCanvasElement::shouldAccelerate):
1478         * platform/chromium/PlatformSupport.h:
1479
1480 2012-03-14  Carlos Garcia Campos  <cgarcia@igalia.com>
1481
1482         [GTK] Handle printing errors in WebKit2
1483         https://bugs.webkit.org/show_bug.cgi?id=77197
1484
1485         Reviewed by Gustavo Noronha Silva.
1486
1487         * platform/gtk/ErrorsGtk.cpp:
1488         (WebCore::printError): Create a generic print error.
1489         (WebCore::printerNotFoundError): Create a print error to notify
1490         that the selected printer could not be found.
1491         (WebCore::invalidPageRangeToPrint): Create a print error when the
1492         selected page range is invalid and there are no pages to print.
1493         * platform/gtk/ErrorsGtk.h:
1494         (WebCore): Add print error doamin.
1495
1496 2012-03-14  Nikolas Zimmermann  <nzimmermann@rim.com>
1497
1498         Make SVGUseElement respect & support externalResourcesRequired
1499         https://bugs.webkit.org/show_bug.cgi?id=81109
1500
1501         Reviewed by Rob Buis.
1502
1503         Generalize the existing externalResourcesRequired support from SVGScriptElement
1504         into SVGExternalResourcesRequired, so it can be shared with SVGUseElement, which
1505         was lacking proper externalResourcesRequired support.
1506
1507         <use xlink:href="external.svg" onload="alert('hi')" externalResourcesRequired="true"/>
1508         The onload handler now fires _after_ the external resources loaded, making it possible
1509         to write reliable tests that switch from internal to external resources or the other
1510         way around. Converted the new tests in svg/dynamic-updates/SVGUseElement* to listen
1511         to SVGLoad events, to make them reliable.
1512
1513         We may be able to generalize this to cover SVGImageElement as well (the only other class which
1514         is currently supporting externalResourcesRequired - but that's more involved, so I left it TODO).
1515
1516         Covered by existing tests and the changes to the new SVGUseElement tests.
1517
1518         * svg/SVGElement.h:
1519         (SVGElement): Make haveLoadedRequiredResources() public so SVGExternalResourcesRequired can call it.
1520         * svg/SVGExternalResourcesRequired.cpp: Refactored code from SVGScriptElement, 1:1 copies w/o changes.
1521         (WebCore::SVGExternalResourcesRequired::handleAttributeChange):
1522         (WebCore::SVGExternalResourcesRequired::dispatchLoadEvent):
1523         (WebCore::SVGExternalResourcesRequired::insertedIntoDocument):
1524         (WebCore::SVGExternalResourcesRequired::finishParsingChildren):
1525         (WebCore::SVGExternalResourcesRequired::haveLoadedRequiredResources):
1526         * svg/SVGExternalResourcesRequired.h: Add new virtual functions, that must be available in classes that inherit from SVGExternalResourcesRequired.
1527         (WebCore::SVGExternalResourcesRequired::setHaveFiredLoadEvent):
1528         (WebCore::SVGExternalResourcesRequired::isParserInserted):
1529         (WebCore::SVGExternalResourcesRequired::haveFiredLoadEvent):
1530         * svg/SVGScriptElement.cpp: Refactored externalResourcesRequired handling into SVGExternalResourcesRequired.
1531         (WebCore::SVGScriptElement::svgAttributeChanged):
1532         (WebCore::SVGScriptElement::insertedIntoDocument):
1533         (WebCore::SVGScriptElement::finishParsingChildren):
1534         * svg/SVGScriptElement.h: Ditto.
1535         (WebCore::SVGScriptElement::haveLoadedRequiredResources):
1536         (WebCore::SVGScriptElement::dispatchLoadEvent):
1537         (WebCore::SVGScriptElement::setHaveFiredLoadEvent):
1538         (WebCore::SVGScriptElement::isParserInserted):
1539         (WebCore::SVGScriptElement::haveFiredLoadEvent):
1540         * svg/SVGTests.cpp: Fix obvious typo, that leads to an assertion. Always return true if we know the attributeName.
1541         (WebCore::SVGTests::handleAttributeChange):
1542         * svg/SVGTests.h:
1543         * svg/SVGTextPathElement.cpp:
1544         (WebCore::SVGTextPathElement::insertedIntoDocument): Remove ambigous call warning.
1545         * svg/SVGUseElement.cpp: Support externalResourcesRequired="true/false" + dynamic changes of it. Covered by existing tests.
1546         (WebCore::SVGUseElement::SVGUseElement):
1547         (WebCore::SVGUseElement::create):
1548         (WebCore::SVGUseElement::insertedIntoDocument):
1549         (WebCore::SVGUseElement::svgAttributeChanged):
1550         (WebCore::SVGUseElement::notifyFinished):
1551         (WebCore::SVGUseElement::finishParsingChildren):
1552         (WebCore):
1553         * svg/SVGUseElement.h: Ditto.
1554         (WebCore::SVGUseElement::haveLoadedRequiredResources):
1555         (WebCore::SVGUseElement::setHaveFiredLoadEvent):
1556         (WebCore::SVGUseElement::isParserInserted):
1557         (WebCore::SVGUseElement::haveFiredLoadEvent):
1558         * svg/svgtags.in: Pass "bool wasInsertedByParser" to SVGUseElement constructor.
1559
1560 2012-03-14  Andrew Lo  <anlo@rim.com>
1561
1562         [BlackBerry] Implement REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR using AnimationFrameRateController
1563         https://bugs.webkit.org/show_bug.cgi?id=81000
1564
1565         Add BlackBerry port for DisplayRefreshMonitor using AnimationFrameRateController.
1566         Moved refreshDisplayOnMainThread to platform independant part of header.
1567
1568         Reviewed by Antonio Gomes.
1569
1570         requestAnimationFrame already covered by tests in LayoutTests/fast/animation.
1571
1572         * PlatformBlackBerry.cmake:
1573         * platform/graphics/DisplayRefreshMonitor.cpp:
1574         (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor):
1575         * platform/graphics/DisplayRefreshMonitor.h:
1576         (WebCore):
1577         (DisplayAnimationClient):
1578         (WebCore::DisplayAnimationClient::~DisplayAnimationClient):
1579         (DisplayRefreshMonitor):
1580         * platform/graphics/blackberry/DisplayRefreshMonitorBlackBerry.cpp: Added.
1581         (WebCore):
1582         (WebCore::DisplayAnimationClient::DisplayAnimationClient):
1583         (WebCore::DisplayAnimationClient::animationFrameChanged):
1584         (WebCore::DisplayRefreshMonitor::~DisplayRefreshMonitor):
1585         (WebCore::DisplayRefreshMonitor::startAnimationClient):
1586         (WebCore::DisplayRefreshMonitor::stopAnimationClient):
1587         (WebCore::DisplayRefreshMonitor::requestRefreshCallback):
1588         (WebCore::DisplayRefreshMonitor::displayLinkFired):
1589
1590 2012-03-14  Yury Semikhatsky  <yurys@chromium.org>
1591
1592         Web Inspector: use class name indexes instead of class names when evaluating aggregates
1593         https://bugs.webkit.org/show_bug.cgi?id=81100
1594
1595         Class name and type name indexes are now used when calculating class aggregates
1596         in heap snapshots instead of string lookup followed by a string comparison.
1597
1598         Class names like "Window / www.webkit.org" are now left as is in the UI (it used
1599         to be trimed to just "Window").
1600
1601         Reviewed by Pavel Feldman.
1602
1603         * inspector/front-end/HeapSnapshot.js:
1604         (WebInspector.HeapSnapshotNode.prototype.get classNameIndex):
1605         (WebInspector.HeapSnapshotNode.prototype.hasType):
1606         (WebInspector.HeapSnapshot.prototype._init):
1607         (WebInspector.HeapSnapshot.prototype._buildAggregates):
1608
1609 2012-03-14  Andrey Kosyakov  <caseq@chromium.org>
1610
1611         Web Inspector: add didCancelFrame timeline event
1612         https://bugs.webkit.org/show_bug.cgi?id=80994
1613
1614         Reviewed by Pavel Feldman.
1615
1616         - add an ability to cancel certain timeline events, unless they've been followed by other events.
1617         - implement didCancelFrame() event, fired when a platform decides not to render frame after didBeginFrame() was called.
1618
1619         Test: inspector/timeline/timeline-frames.html
1620
1621         * WebCore.exp.in:
1622         * inspector/InspectorInstrumentation.cpp:
1623         (WebCore::InspectorInstrumentation::didCancelFrameImpl):
1624         (WebCore):
1625         * inspector/InspectorInstrumentation.h:
1626         (InspectorInstrumentation):
1627         (WebCore::InspectorInstrumentation::didCancelFrame):
1628         (WebCore):
1629         * inspector/InspectorTimelineAgent.cpp:
1630         (WebCore::InspectorTimelineAgent::didBeginFrame):
1631         (WebCore):
1632         (WebCore::InspectorTimelineAgent::didCancelFrame):
1633         (WebCore::InspectorTimelineAgent::appendRecord):
1634         (WebCore::InspectorTimelineAgent::pushCurrentRecord):
1635         (WebCore::InspectorTimelineAgent::pushCancelableRecord):
1636         (WebCore::InspectorTimelineAgent::commitCancelableRecords):
1637         (WebCore::InspectorTimelineAgent::cancelRecord):
1638         * inspector/InspectorTimelineAgent.h:
1639         (InspectorTimelineAgent):
1640         (WebCore::InspectorTimelineAgent::TimelineRecordEntry::TimelineRecordEntry):
1641         (TimelineRecordEntry):
1642         * testing/Internals.cpp:
1643         (WebCore::Internals::emitInspectorDidBeginFrame):
1644         (WebCore):
1645         (WebCore::Internals::emitInspectorDidCancelFrame):
1646         * testing/Internals.h:
1647         (Internals):
1648         * testing/Internals.idl:
1649
1650 2012-03-14  Dana Jansens  <danakj@chromium.org>
1651
1652         Region can acquire an empty span by subtracting an empty Region
1653         https://bugs.webkit.org/show_bug.cgi?id=81074
1654
1655         Reviewed by Anders Carlsson.
1656
1657         Subtracting an empty Region B from a Region A can cause A to end
1658         up with an empty span. This violates the rule that two Regions
1659         that cover the exact same area should have equal spans and segments.
1660
1661         Unit test: RegionTest.emptySpan
1662
1663         * platform/graphics/Region.cpp:
1664         (WebCore::Region::subtract):
1665
1666 2012-03-14  Simon Hausmann  <simon.hausmann@nokia.com>
1667
1668         [Textmap] Disable driver based BGRA swizzling for OpenGL/ES
1669
1670         Reviewed by Noam Rosenthal.
1671
1672         The current way of detecting swizzling support (check for GL_EXT_texture_format_BGRA8888)
1673         is unfortunately not reliable. We need a better way of detection that (filed bug 81103).
1674         In the meantime this patch reverts back to doing the swizzling in the texture mapper to
1675         get pixels back onto the screen.
1676
1677         * platform/graphics/texmap/TextureMapperGL.cpp:
1678         (WebCore::driverSupportsBGRASwizzling):
1679         (WebCore::BitmapTextureGL::updateContents):
1680
1681 2012-03-14  Leo Yang  <leo.yang@torchmobile.com.cn>
1682
1683         [BlackBerry] Upstream the BlackBerry change to platform/Cursor.h
1684         https://bugs.webkit.org/show_bug.cgi?id=81086
1685
1686         Reviewed by Rob Buis.
1687
1688         * platform/Cursor.h:
1689         (WebCore):
1690         (WebCore::Cursor::Cursor):
1691         Add the BlackBerry specific PlatformCursor.
1692         * platform/blackberry/PageClientBlackBerry.h:
1693         There was an alias named PlatformCursorHandle for PlatformCursor
1694         in the internal version of Cursor.h. But it's not necessary so it's
1695         not included in the upstreaming version of Cursor.h. As a result,
1696         use PlatformCursor directly in this file.
1697         (PageClientBlackBerry):
1698
1699 2012-03-14  Simon Hausmann  <simon.hausmann@nokia.com>
1700
1701         [Qt] RunLoopQt is missing reentrancy guards
1702         https://bugs.webkit.org/show_bug.cgi?id=80982
1703
1704         Reviewed by Tor Arne Vestbø.
1705
1706         Avoid recursive calls to RunLoop::performWork() with a simple
1707         counting mechanism, to avoid out-of-order message dispatching.
1708
1709         * platform/qt/RunLoopQt.cpp:
1710         (WebCore::RunLoop::TimerObject::TimerObject):
1711         (WebCore::RunLoop::TimerObject::performWork):
1712         (RunLoop::TimerObject):
1713
1714 2012-03-14  Ilya Tikhonovsky  <loislo@chromium.org>
1715
1716         Web Inspector: small improvement for HeapSnapshot performance ~12%.
1717         https://bugs.webkit.org/show_bug.cgi?id=81033
1718
1719         Reviewed by Yury Semikhatsky.
1720
1721         * inspector/front-end/HeapSnapshot.js:
1722         (WebInspector.HeapSnapshot.prototype.get nodeCount):
1723         (WebInspector.HeapSnapshot.prototype.get maxNodeId):
1724         (WebInspector.HeapSnapshot.prototype._buildReverseIndex):
1725         (WebInspector.HeapSnapshot.prototype.get nodeIndexes):
1726         (WebInspector.HeapSnapshot.prototype._buildNodeIndex):
1727
1728 2012-03-14  Kentaro Hara  <haraken@chromium.org>
1729
1730         Return null when shouldAllowAccessToNode() fails
1731         https://bugs.webkit.org/show_bug.cgi?id=80205
1732
1733         Reviewed by Adam Barth.
1734
1735         shouldAllowAccessToNode() is used for window.frameElement, HTMLFrameElement.contentDocument,
1736         and getSVGDocument(). The spec of window.frameElement and HTMLFrameElement.contentDocument
1737         requires that they should return null when the security check fails.
1738         Thus this patch changes the return value from undefined to null.
1739
1740         http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#navigating-nested-browsing-contexts-in-the-dom
1741         http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#dom-iframe-contentdocument
1742
1743         Tests: http/tests/security/local-iFrame-from-remote.html
1744                http/tests/security/cross-frame-access-frameelement.html
1745                http/tests/security/cross-frame-access-put.html
1746
1747         * bindings/scripts/CodeGeneratorJS.pm:
1748         (GenerateImplementation):
1749         * bindings/scripts/CodeGeneratorV8.pm:
1750         (GenerateNormalAttrGetter):
1751         (GenerateFunctionCallback):
1752
1753         * bindings/scripts/test/JS/JSTestObj.cpp: Updated run-bindings-tests results.
1754         (WebCore::jsTestObjContentDocument):
1755         (WebCore::jsTestObjPrototypeFunctionGetSVGDocument):
1756         * bindings/scripts/test/V8/V8TestObj.cpp:
1757         (WebCore::TestObjInternal::contentDocumentAttrGetter):
1758         (WebCore::TestObjInternal::getSVGDocumentCallback):
1759
1760 2012-03-14  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
1761
1762         Build error: DNSSoup.cpp:30: fatal error: CString.h: No such file or
1763         directory
1764         https://bugs.webkit.org/show_bug.cgi?id=81093
1765
1766         Reviewed by Philippe Normand.
1767
1768         Fix build error introduced by r110669.
1769
1770         * platform/network/soup/DNSSoup.cpp:
1771
1772 2012-03-14  Marja Hölttä  <marja@google.com>
1773
1774         WebHTTPBody: Keep track of whether the data includes passwords.
1775         https://bugs.webkit.org/show_bug.cgi?id=81003
1776
1777         Reviewed by Darin Fisher.
1778
1779         This change enables Chrome to save HTTP bodies selectively, only
1780         if they don't contain passwords.
1781
1782         * loader/FormSubmission.cpp:
1783         (WebCore::FormSubmission::create): Check if the data contains passwords.
1784         * platform/network/FormData.cpp:
1785         (WebCore::FormData::FormData): Added containsPasswordData, setContainsPasswordData.
1786         * platform/network/FormData.h:
1787         (WebCore::FormData::containsPasswordData): Added.
1788         (WebCore::FormData::setHasPasswordData): Added.
1789         (FormData):
1790
1791 2012-03-14  Vsevolod Vlasov  <vsevik@chromium.org>
1792
1793         Web Inspector: Add snippets tab to scripts navigator.
1794         https://bugs.webkit.org/show_bug.cgi?id=81018
1795
1796         Reviewed by Pavel Feldman.
1797
1798         * English.lproj/localizedStrings.js:
1799         * inspector/front-end/ScriptsNavigator.js:
1800         (WebInspector.ScriptsNavigator):
1801         (WebInspector.ScriptsNavigator.prototype.get defaultFocusedElement):
1802         (WebInspector.ScriptsNavigator.prototype.focus):
1803         (WebInspector.ScriptsNavigator.prototype._showScriptFoldersSettingChanged):
1804         (WebInspector.ScriptsNavigator.prototype.reset):
1805         (WebInspector.ScriptsNavigator.prototype._getOrCreateFolderTreeElement):
1806         (WebInspector.ScriptsNavigator.prototype._createFolderTreeElement):
1807         (WebInspector.ScriptsNavigator.prototype._getOrCreateSnippetEvaluationsFolderTreeElement):
1808         (WebInspector.ScriptsNavigator.prototype._scriptFolderIdentifier):
1809         (WebInspector.NavigatorTreeOutline):
1810         * inspector/front-end/ScriptsPanel.js:
1811         (WebInspector.ScriptsPanel.prototype._uiSourceCodeAdded):
1812         (WebInspector.ScriptsPanel.prototype._revealExecutionLine):
1813         * inspector/front-end/SnippetsModel.js:
1814
1815 2012-03-14  Pavel Feldman  <pfeldman@chromium.org>
1816
1817         Web Inspector: Copy on the Console gives a mangled result.
1818         https://bugs.webkit.org/show_bug.cgi?id=81091
1819
1820         Reviewed by Vsevolod Vlasov.
1821
1822         * inspector/front-end/ConsoleMessage.js:
1823         (WebInspector.ConsoleMessageImpl.prototype._formatMessage):
1824         (WebInspector.ConsoleMessageImpl.prototype._populateStackTraceTreeElement):
1825
1826 2012-03-14  Nikolas Zimmermann  <nzimmermann@rim.com>
1827
1828         External <use> xlink:href references do not work
1829         https://bugs.webkit.org/show_bug.cgi?id=12499
1830
1831         Reviewed by Zoltan Herczeg.
1832
1833         Follow-up fix after r110676.
1834         Assertions are firing due last minute changes in isExternalURIReference.
1835
1836         Fix detecting local resources properly, when the given iri contains a /complex/path.
1837         Use document->completeURL() instead, and compare with the document->url() to decide
1838         if its a local reference or not.
1839
1840         If an external document load fails with an error (eg. file missing) don't assert
1841         in debug builds, instead handle it gracefully.
1842
1843         I decided to clean the code up as well, to make it more safe & obvious.
1844
1845         Test: svg/custom/use-external-crash.svg
1846
1847         * svg/SVGURIReference.cpp:
1848         (WebCore::SVGURIReference::targetElementFromIRIString):
1849         * svg/SVGURIReference.h:
1850         (WebCore::SVGURIReference::isExternalURIReference):
1851         * svg/SVGUseElement.cpp:
1852         (WebCore::SVGUseElement::externalDocument):
1853         (WebCore::SVGUseElement::buildPendingResource):
1854
1855 2012-03-14  Lars Knudsen  <lars.knudsen@nokia.com>
1856
1857         3D transformed surfaces with z>0 gets cropped
1858         https://bugs.webkit.org/show_bug.cgi?id=81009
1859
1860         Reviewed by Noam Rosenthal.
1861
1862         The scissor clipping in TextureMapperGL didn't take 3D transforms 
1863         into account when calculating the clipping region.
1864         Now, it will bail out early if the transform is not affine.
1865
1866         No new tests. Tested by current compositing layout tests.
1867
1868         * platform/graphics/texmap/TextureMapperGL.cpp:
1869         (WebCore::TextureMapperGL::beginScissorClip):
1870
1871 2012-03-14  Hajime Morrita  <morrita@chromium.org>
1872
1873         Unreviewed build fix.
1874
1875         * html/track/TextTrackList.cpp:
1876         (TextTrackList::append):
1877         (TextTrackList::remove):
1878         (TextTrackList::owner): Changed return type from HTMLMediaElement* to Node* and uninlined.
1879         * html/track/TextTrackList.h:
1880         (TextTrackList):
1881
1882 2012-03-13  Vsevolod Vlasov  <vsevik@chromium.org>
1883
1884         Web Inspector: [InspectorIndexedDB] Remote object should be released when data view is removed/updated.
1885         https://bugs.webkit.org/show_bug.cgi?id=81022
1886
1887         Reviewed by Pavel Feldman.
1888
1889         * inspector/front-end/IndexedDBViews.js:
1890         (WebInspector.IDBDataView):
1891         (WebInspector.IDBDataView.prototype._updateData.callback):
1892         (WebInspector.IDBDataView.prototype._updateData):
1893         (WebInspector.IDBDataView.prototype.get statusBarItems):
1894         (WebInspector.IDBDataView.prototype.clear):
1895         * inspector/front-end/ResourcesPanel.js:
1896         (WebInspector.IndexedDBTreeElement.prototype._indexedDBRemoved):
1897         (WebInspector.IDBDatabaseTreeElement.prototype.update):
1898         (WebInspector.IDBDatabaseTreeElement.prototype.onselect):
1899         (WebInspector.IDBDatabaseTreeElement.prototype._objectStoreRemoved):
1900         (WebInspector.IDBDatabaseTreeElement.prototype.clear):
1901         (WebInspector.IDBObjectStoreTreeElement.prototype.update):
1902         (WebInspector.IDBObjectStoreTreeElement.prototype.onselect):
1903         (WebInspector.IDBObjectStoreTreeElement.prototype._indexRemoved):
1904         (WebInspector.IDBObjectStoreTreeElement.prototype.clear):
1905         (WebInspector.IDBIndexTreeElement.prototype.onselect):
1906         (WebInspector.IDBIndexTreeElement.prototype.clear):
1907
1908 2012-03-12  Vsevolod Vlasov  <vsevik@chromium.org>
1909
1910         Web Inspector: Introduce SnippetsScriptMapping.
1911         https://bugs.webkit.org/show_bug.cgi?id=80890
1912
1913         Reviewed by Pavel Feldman.
1914
1915         * inspector/front-end/ScriptMapping.js:
1916         (WebInspector.MainScriptMapping):
1917         (WebInspector.MainScriptMapping.prototype.addScript):
1918         (WebInspector.MainScriptMapping.prototype._mappingForScript):
1919         * inspector/front-end/SnippetsModel.js:
1920         (WebInspector.SnippetsModel.prototype.snippetForId):
1921         (WebInspector.SnippetsModel.prototype.snippetForSourceURL):
1922         (WebInspector.SnippetsScriptMapping):
1923         (WebInspector.SnippetsScriptMapping.prototype.uiSourceCodeList):
1924         (WebInspector.SnippetsScriptMapping.prototype.addScript):
1925         (WebInspector.SnippetsScriptMapping.prototype._snippetAdded):
1926         (WebInspector.SnippetsScriptMapping.prototype._releaseSnippetScript.get if):
1927         (WebInspector.SnippetsScriptMapping.prototype._releaseSnippetScript):
1928         (WebInspector.SnippetsScriptMapping.prototype._snippetDeleted.get this):
1929         (WebInspector.SnippetsScriptMapping.prototype._snippetDeleted):
1930         (WebInspector.SnippetsScriptMapping.prototype.reset):
1931         (WebInspector.SnippetContentProvider):
1932
1933 2012-03-14  Sheriff Bot  <webkit.review.bot@gmail.com>
1934
1935         Unreviewed, rolling out r110673.
1936         http://trac.webkit.org/changeset/110673
1937         https://bugs.webkit.org/show_bug.cgi?id=81090
1938
1939         "Qt minimal build broken" (Requested by yurys on #webkit).
1940
1941         * inspector/CodeGeneratorInspector.py:
1942         (CommandReturnPassModel.ByPointer.get_set_return_condition):
1943         (TypeModel.Enum.get_optional.EnumOptional.get_command_return_pass_model):
1944         (TypeModel.ValueType.ValueOptional.get_command_return_pass_model):
1945         (Generator.process_event):
1946         (Generator.process_command):
1947         * inspector/ContentSearchUtils.cpp:
1948         (WebCore::ContentSearchUtils::buildObjectForSearchMatch):
1949         (WebCore::ContentSearchUtils::searchInTextByLines):
1950         * inspector/ContentSearchUtils.h:
1951         (ContentSearchUtils):
1952         * inspector/InjectedScript.cpp:
1953         (WebCore::InjectedScript::evaluate):
1954         (WebCore::InjectedScript::callFunctionOn):
1955         (WebCore::InjectedScript::evaluateOnCallFrame):
1956         (WebCore::InjectedScript::makeEvalCall):
1957         * inspector/InjectedScript.h:
1958         (InjectedScript):
1959         * inspector/InspectorDOMDebuggerAgent.cpp:
1960         (WebCore::InspectorDOMDebuggerAgent::didInvalidateStyleAttr):
1961         (WebCore::InspectorDOMDebuggerAgent::willInsertDOMNode):
1962         (WebCore::InspectorDOMDebuggerAgent::willRemoveDOMNode):
1963         (WebCore::InspectorDOMDebuggerAgent::willModifyDOMAttr):
1964         (WebCore::InspectorDOMDebuggerAgent::pauseOnNativeEventIfNeeded):
1965         (WebCore::InspectorDOMDebuggerAgent::willSendXMLHttpRequest):
1966         * inspector/InspectorDebuggerAgent.cpp:
1967         (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
1968         (WebCore::InspectorDebuggerAgent::setBreakpoint):
1969         (WebCore::InspectorDebuggerAgent::searchInContent):
1970         (WebCore::InspectorDebuggerAgent::setScriptSource):
1971         (WebCore::InspectorDebuggerAgent::getFunctionDetails):
1972         (WebCore::InspectorDebuggerAgent::schedulePauseOnNextStatement):
1973         (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
1974         (WebCore::InspectorDebuggerAgent::didPause):
1975         (WebCore::InspectorDebuggerAgent::breakProgram):
1976         (WebCore::InspectorDebuggerAgent::clearBreakDetails):
1977         * inspector/InspectorDebuggerAgent.h:
1978         (InspectorDebuggerAgent):
1979         * inspector/InspectorPageAgent.cpp:
1980         (WebCore::buildObjectForCookie):
1981         (WebCore::buildArrayForCookies):
1982         (WebCore::InspectorPageAgent::getCookies):
1983         (WebCore::InspectorPageAgent::getResourceTree):
1984         (WebCore::InspectorPageAgent::searchInResource):
1985         (WebCore::InspectorPageAgent::searchInResources):
1986         (WebCore::InspectorPageAgent::buildObjectForFrame):
1987         (WebCore::InspectorPageAgent::buildObjectForFrameTree):
1988         * inspector/InspectorPageAgent.h:
1989         * inspector/InspectorRuntimeAgent.cpp:
1990         (WebCore::InspectorRuntimeAgent::evaluate):
1991         (WebCore::InspectorRuntimeAgent::callFunctionOn):
1992
1993 2012-03-14  Renata Hodovan  <reni@webkit.org>
1994
1995         External <use> xlink:href references do not work
1996         https://bugs.webkit.org/show_bug.cgi?id=12499
1997
1998         Reviewed by Nikolas Zimmermann.
1999
2000         This is a follow-up patch after r108785.
2001         In this patch we bind the previously introduced CachedSVGDocument class
2002         into the caching mechanism of SVGUseElement. The mode how external resources
2003         are handled is similar to the processing of internal ones. We build the instance
2004         and shadow tree the same way but we have to keep in mind that the requested resources
2005         maybe not loaded yet. We can check it with cachedDocumentIsStillLoading() function.
2006
2007         SVGURIReference::targetElementFromIRIString() also need to be extended. The baseURI
2008         computation needs to take the referenced documents URL into account, instead of the current documents.
2009
2010         The patch affects a lot of tests which have external resources especially in svg/batik. Because
2011         of the size of that test refactor they will be commited in a follow-up patch.
2012
2013         Tests: svg/W3C-SVG-1.2-Tiny/struct-use-recursion-01-t.svg
2014                svg/W3C-SVG-1.2-Tiny/struct-use-recursion-02-t.svg
2015                svg/W3C-SVG-1.2-Tiny/struct-use-recursion-03-t.svg
2016                svg/custom/use-extern-href.svg
2017                svg/custom/use-referencing-an-image-expected.svg
2018                svg/custom/use-referencing-an-image.svg
2019                svg/custom/use-referencing-indirectly-itself-expected.svg
2020                svg/custom/use-referencing-indirectly-itself.svg
2021                svg/custom/use-referencing-itself-expected.svg
2022                svg/custom/use-referencing-itself.svg
2023                svg/dynamic-updates/SVGUseElement-dom-href1-attr.html
2024                svg/dynamic-updates/SVGUseElement-dom-href2-attr.html
2025                svg/dynamic-updates/SVGUseElement-svgdom-href1-prop.html
2026                svg/dynamic-updates/SVGUseElement-svgdom-href2-prop.html
2027
2028         * loader/cache/CachedResourceLoader.cpp:
2029         (WebCore):
2030         (WebCore::CachedResourceLoader::requestSVGDocument):
2031         * loader/cache/CachedResourceLoader.h:
2032         (WebCore):
2033         (CachedResourceLoader):
2034         * page/ContentSecurityPolicy.h:
2035         * platform/KURL.cpp:
2036         (WebCore::equalIgnoringFragmentIdentifier):
2037         * platform/network/chromium/ResourceRequest.h:
2038         * svg/SVGURIReference.cpp:
2039         (WebCore::urlFromIRIStringWithFragmentIdentifier):
2040         (WebCore):
2041         (WebCore::SVGURIReference::targetElementFromIRIString):
2042         * svg/SVGURIReference.h:
2043         (SVGURIReference):
2044         (WebCore::SVGURIReference::isExternalURIReference):
2045         * svg/SVGUseElement.cpp:
2046         (WebCore::SVGUseElement::SVGUseElement):
2047         (WebCore::SVGUseElement::~SVGUseElement):
2048         (WebCore):
2049         (WebCore::SVGUseElement::referencedDocument):
2050         (WebCore::SVGUseElement::externalDocument):
2051         (WebCore::SVGUseElement::svgAttributeChanged):
2052         (WebCore::dumpInstanceTree):
2053         (WebCore::SVGUseElement::buildPendingResource):
2054         (WebCore::SVGUseElement::buildShadowAndInstanceTree):
2055         (WebCore::SVGUseElement::hasCycleUseReferencing):
2056         (WebCore::SVGUseElement::expandUseElementsInShadowTree):
2057         (WebCore::SVGUseElement::expandSymbolElementsInShadowTree):
2058         (WebCore::SVGUseElement::notifyFinished):
2059         (WebCore::SVGUseElement::cachedDocumentIsStillLoading):
2060         (WebCore::SVGUseElement::instanceTreeIsLoading):
2061         * svg/SVGUseElement.h:
2062         (WebCore):
2063         (SVGUseElement):
2064
2065 2012-03-14  Peter Rybin  <peter.rybin@gmail.com>
2066
2067         Web Inspector: TypeBuilder: Introduce OptOutput class for optional output parameters
2068         https://bugs.webkit.org/show_bug.cgi?id=80789
2069
2070         Reviewed by Yury Semikhatsky.
2071
2072         OptOutput class is added for optional return parameters.
2073
2074         Strict mode added to Generator that makes all parameter types strict
2075         and drop pre-set default values for return parameters.
2076
2077         Debugger and Page domain is switched to strict mode.
2078
2079
2080         * inspector/CodeGeneratorInspector.py:
2081         (CommandReturnPassModel.ByPointer):
2082         (CommandReturnPassModel):
2083         (CommandReturnPassModel.OptOutput):
2084         (CommandReturnPassModel.OptOutput.__init__):
2085         (CommandReturnPassModel.OptOutput.get_return_var_type):
2086         (CommandReturnPassModel.OptOutput.get_output_argument_prefix):
2087         (CommandReturnPassModel.OptOutput.get_output_to_raw_expression):
2088         (CommandReturnPassModel.OptOutput.get_output_parameter_type):
2089         (CommandReturnPassModel.OptOutput.get_set_return_condition):
2090         (TypeModel.Enum.get_optional.EnumOptional.get_command_return_pass_model):
2091         (TypeModel.ValueType.ValueOptional.get_command_return_pass_model):
2092         (OptOutput):
2093         (Generator.process_event):
2094         (Generator.process_command):
2095         * inspector/ContentSearchUtils.cpp:
2096         (WebCore::ContentSearchUtils::buildObjectForSearchMatch):
2097         (WebCore::ContentSearchUtils::searchInTextByLines):
2098         * inspector/ContentSearchUtils.h:
2099         (ContentSearchUtils):
2100         * inspector/InjectedScript.cpp:
2101         (WebCore::InjectedScript::evaluate):
2102         (WebCore::InjectedScript::callFunctionOn):
2103         (WebCore::InjectedScript::evaluateOnCallFrame):
2104         (WebCore::InjectedScript::makeEvalCall):
2105         * inspector/InjectedScript.h:
2106         (InjectedScript):
2107         * inspector/InspectorDOMDebuggerAgent.cpp:
2108         (WebCore):
2109         * inspector/InspectorDebuggerAgent.cpp:
2110         (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
2111         (WebCore::InspectorDebuggerAgent::setBreakpoint):
2112         (WebCore::InspectorDebuggerAgent::searchInContent):
2113         (WebCore::InspectorDebuggerAgent::setScriptSource):
2114         (WebCore::InspectorDebuggerAgent::getFunctionDetails):
2115         (WebCore::InspectorDebuggerAgent::schedulePauseOnNextStatement):
2116         (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
2117         (WebCore::InspectorDebuggerAgent::didPause):
2118         (WebCore::InspectorDebuggerAgent::breakProgram):
2119         (WebCore::InspectorDebuggerAgent::clearBreakDetails):
2120         * inspector/InspectorDebuggerAgent.h:
2121         (InspectorDebuggerAgent):
2122         * inspector/InspectorPageAgent.cpp:
2123         (WebCore::buildObjectForCookie):
2124         (WebCore::buildArrayForCookies):
2125         (WebCore::InspectorPageAgent::getCookies):
2126         (WebCore::InspectorPageAgent::getResourceTree):
2127         (WebCore::InspectorPageAgent::searchInResource):
2128         (WebCore::InspectorPageAgent::searchInResources):
2129         (WebCore::InspectorPageAgent::buildObjectForFrame):
2130         (WebCore::InspectorPageAgent::buildObjectForFrameTree):
2131         * inspector/InspectorPageAgent.h:
2132         * inspector/InspectorRuntimeAgent.cpp:
2133         (WebCore::InspectorRuntimeAgent::evaluate):
2134         (WebCore::InspectorRuntimeAgent::callFunctionOn):
2135
2136 2012-03-14  Sergio Villar Senin  <svillar@igalia.com>
2137
2138         Unreviewed. Build fix for EFL after r110669.
2139
2140         * PlatformEfl.cmake: added DNSSoup.cpp
2141
2142 2012-03-13  Sergio Villar Senin  <svillar@igalia.com>
2143
2144         [GTK] Use the same DNS prefetching path than the other ports.
2145         https://bugs.webkit.org/show_bug.cgi?id=80997
2146
2147         Reviewed by Martin Robinson.
2148
2149         This patch basically reverts r56128. There is no need to add an
2150         special code path for GTK+ DNS pre-fetching because the main
2151         reason to do that (some potential changes in libsoup) is not
2152         going to happen. It also reduces the amount of DNS queries by
2153         adding a NULL hostname check.
2154
2155         No need for new tests as this just moves code around.
2156
2157         * GNUmakefile.list.am:
2158         * html/HTMLAnchorElement.cpp:
2159         (WebCore::HTMLAnchorElement::parseAttribute):
2160         * html/HTMLLinkElement.cpp:
2161         * loader/LinkLoader.cpp:
2162         (WebCore::LinkLoader::loadLink):
2163         * page/Chrome.cpp:
2164         (WebCore::Chrome::mouseDidMoveOverElement):
2165         * platform/network/DNS.h:
2166         (WebCore):
2167         * platform/network/ResourceHandle.cpp:
2168         * platform/network/ResourceHandle.h:
2169         (ResourceHandle):
2170         * platform/network/chromium/DNSChromium.cpp:
2171         * platform/network/soup/DNSSoup.cpp: restored.
2172         (WebCore):
2173         (WebCore::prefetchDNS):
2174         * platform/network/soup/ResourceHandleSoup.cpp:
2175
2176 2012-03-14  Kentaro Hara  <haraken@chromium.org>
2177
2178         Return null when shouldAllowAccessToNode() fails
2179         https://bugs.webkit.org/show_bug.cgi?id=80205
2180
2181         Reviewed by Adam Barth.
2182
2183         shouldAllowAccessToNode() is used for window.frameElement, HTMLFrameElement.contentDocument,
2184         and getSVGDocument(). The spec of window.frameElement and HTMLFrameElement.contentDocument
2185         requires that they should return null when the security check fails.
2186         Thus this patch changes the return value from undefined to null.
2187
2188         http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#navigating-nested-browsing-contexts-in-the-dom
2189         http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#dom-iframe-contentdocument
2190
2191         Tests: http/tests/security/local-iFrame-from-remote.html
2192                http/tests/security/cross-frame-access-frameelement.html
2193                http/tests/security/cross-frame-access-put.html
2194
2195         * bindings/scripts/CodeGeneratorJS.pm:
2196         (GenerateImplementation):
2197         * bindings/scripts/CodeGeneratorV8.pm:
2198         (GenerateNormalAttrGetter):
2199         (GenerateFunctionCallback):
2200
2201         * bindings/scripts/test/JS/JSTestObj.cpp: Updated run-bindings-tests results.
2202         (WebCore::jsTestObjContentDocument):
2203         (WebCore::jsTestObjPrototypeFunctionGetSVGDocument):
2204         * bindings/scripts/test/V8/V8TestObj.cpp:
2205         (WebCore::TestObjInternal::contentDocumentAttrGetter):
2206         (WebCore::TestObjInternal::getSVGDocumentCallback):
2207
2208 2012-03-13  Yosifumi Inoue  <yosin@chromium.org>
2209
2210         [Forms] Hidden input element should not have labels. 
2211         https://bugs.webkit.org/show_bug.cgi?id=80403
2212
2213         Reviewed by Kent Tamura.
2214
2215         This patch changes "labels" attribute behavior for hidden input type.
2216         It returns null instead of NodeList of labels or empty node list.
2217
2218         Note: The HTML5 specification isn't clear for non-labelable element's "labels"
2219         attribute return value. Firefox and Opera return empty node list. IE returns null.
2220
2221         No new tests. Existing tests are updated.
2222
2223         * html/HTMLInputElement.cpp:
2224         (WebCore::HTMLInputElement::isLabelable): Added. Dispatch to InputType.
2225         * html/HiddenInputType.h:  Added isLabelable returning false.
2226         * html/InputType.cpp:
2227         (WebCore::InputType::isLabelable): Added. Returning true for all input types except for "hidden" type.
2228         (WebCore):
2229         * html/InputType.h:
2230         (InputType): Added isLabelable declaration.
2231
2232 2012-03-13  Yosifumi Inoue  <yosin@chromium.org>
2233
2234         [Forms] The "output" element should have labels.
2235         https://bugs.webkit.org/show_bug.cgi?id=80466
2236
2237         Reviewed by Kent Tamura.
2238
2239         This patch enables functionality of "labels" attribute for
2240         HTMLOutputElement implemented in LabelableElement which use
2241         isLabelable predicate whether an element can have label or not.
2242
2243         Update existing tests in fast/forms/label/ directory to cover
2244         the "output" element with the "labels" attribute.
2245
2246         * html/HTMLOutputElement.h: Implement virtual method isLabelable.
2247
2248 2012-03-13  Luke Macpherson   <macpherson@chromium.org>
2249
2250         Move opacity clamping into RenderStyle setter.
2251         https://bugs.webkit.org/show_bug.cgi?id=76966
2252
2253         Reviewed by Eric Seidel.
2254
2255         Covered by existing tests.
2256
2257         * css/CSSStyleSelector.cpp:
2258         (WebCore::CSSStyleSelector::applyProperty):
2259         * rendering/style/RenderStyle.h:
2260         (WebCore::RenderStyleBitfields::setOpacity):
2261
2262 2012-03-12  Igor Oliveira  <igor.o@sisa.samsung.com>
2263
2264         Split the extra logic out of RenderObjectChildList::updateBeforeAfterContent
2265         https://bugs.webkit.org/show_bug.cgi?id=80856
2266
2267         Extra part of the generated content handling logic out of RenderObjectChildList::updateBeforeAfterContent
2268
2269         Reviewed by Julien Chaffraix.
2270
2271         No change in behavior expected.
2272
2273         * rendering/RenderObjectChildList.cpp:
2274         (WebCore::RenderObjectChildList::updateBeforeAfterStyle):
2275         (WebCore::createRenderForBeforeAfterContent):
2276         (WebCore::RenderObjectChildList::updateBeforeAfterContent):
2277         * rendering/RenderObjectChildList.h:
2278         (WebCore):
2279         (RenderObjectChildList):
2280
2281 2012-03-13  Simon Fraser  <simon.fraser@apple.com>
2282
2283         Fix potential crash when loading test results
2284         https://bugs.webkit.org/show_bug.cgi?id=81062
2285         <rdar://problem/11041732>
2286         
2287         Reviewed by Dean Jackson.
2288
2289         If RenderLayerBacking::isSimpleContainerCompositingLayer() is called early,
2290         before the document has a documentElement(), then it crashes. Fix with
2291         a null check on documentElement().
2292         
2293         No test because it's timing dependent.
2294
2295         * rendering/RenderLayerBacking.cpp:
2296         (WebCore::RenderLayerBacking::isSimpleContainerCompositingLayer):
2297
2298 2012-03-13  Dan Bernstein  <mitz@apple.com>
2299
2300         <rdar://problem/11025225> Assertion failure in RenderView::computeRectForRepaint() (!repaintContainer || repaintContainer == this) at store.apple.com
2301         https://bugs.webkit.org/show_bug.cgi?id=81051
2302
2303         Reviewed by Simon Fraser.
2304
2305         Test: ManualTests/inline-repaint-container.html.
2306
2307         * rendering/RenderInline.cpp:
2308         (WebCore::RenderInline::clippedOverflowRectForRepaint): This function was not handling the
2309         case of the repaint container being a descendant of the containing block correctly, leading
2310         to the assertion failure, but also to a correctness bug seen in the new test. If the repaint
2311         container is a descendant of the containing block, just return the rect in the repaint
2312         container coordinates.
2313
2314 2012-03-13  Dan Bernstein  <mitz@apple.com>
2315
2316         <rdar://problem/11025217> [Mac] Assertion failure in collectComplexTextRunsForCharactersCoreText
2317         https://bugs.webkit.org/show_bug.cgi?id=77044
2318
2319         Reviewed by Sam Weinig.
2320
2321         Test: platform/mac/fast/text/core-text-fallback-to-unknown-font.html
2322
2323         Handle the case of Core Text choosing a fallback font that NSFontManager cannot find by name.
2324
2325         * platform/graphics/FontCache.h:
2326         (FontCache): Made ComplexTextController a friend class.
2327         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
2328         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText): Removed the
2329         failing assertion, which was not true, and added code to handle the case where a font
2330         cannot be found by name by using the font as returned from Core Text.
2331
2332 2012-03-13  Erik Arvidsson  <arv@chromium.org>
2333
2334         [V8] Use v8::V8::AddImplicitReferences instead of SetHiddenValue
2335         https://bugs.webkit.org/show_bug.cgi?id=80880
2336
2337         Reviewed by Adam Barth.
2338
2339         We used to add a hidden property in the getter to the returned wrapper.
2340         With this patch we instead handle the liveness of the wrapper in the GC phase by
2341         calling v8::V8::AddHiddenReference.
2342
2343         To reduce the amount of custom code we need, the V8 code generator now supports
2344         GenerateIsReachable (as well as CustomIsReachable) which, even though different
2345         from the JSC attribute, is used in the same cases and takes the same values (even though
2346         at the moment not all JSC values are supported by V8). Interfaces that have *IsReachable
2347         also have a dependent life time (just like if V8DependentLifetime was present).
2348
2349         Second try. This time with an added include in TextTrackList.cpp.
2350
2351         No new tests. Covered by existing tests.
2352
2353         * Target.pri:
2354         * UseV8.cmake:
2355         * WebCore.gypi:
2356         * bindings/scripts/CodeGeneratorJS.pm:
2357         (GetGenerateIsReachable):
2358         (GetCustomIsReachable):
2359         (GenerateHeader):
2360         (GenerateImplementation):
2361         * bindings/scripts/CodeGeneratorV8.pm:
2362         (NeedsToVisitDOMWrapper):
2363         (GetGenerateIsReachable):
2364         (GetCustomIsReachable):
2365         (GenerateVisitDOMWrapper):
2366         (GenerateHeader):
2367         (GenerateNamedConstructorCallback):
2368         (GenerateImplementation):
2369         * bindings/scripts/IDLAttributes.txt:
2370         * bindings/scripts/test/V8/V8Float64Array.cpp:
2371         (WebCore):
2372         * bindings/scripts/test/V8/V8Float64Array.h:
2373         (V8Float64Array):
2374         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
2375         (WebCore):
2376         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
2377         (V8TestActiveDOMObject):
2378         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
2379         (WebCore):
2380         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
2381         (V8TestCustomNamedGetter):
2382         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
2383         (WebCore):
2384         * bindings/scripts/test/V8/V8TestEventConstructor.h:
2385         (V8TestEventConstructor):
2386         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
2387         (WebCore):
2388         * bindings/scripts/test/V8/V8TestEventTarget.h:
2389         (V8TestEventTarget):
2390         * bindings/scripts/test/V8/V8TestInterface.cpp:
2391         (WebCore):
2392         * bindings/scripts/test/V8/V8TestInterface.h:
2393         (V8TestInterface):
2394         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
2395         (WebCore):
2396         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
2397         (V8TestMediaQueryListListener):
2398         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
2399         (WebCore):
2400         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
2401         (V8TestNamedConstructor):
2402         * bindings/scripts/test/V8/V8TestObj.cpp:
2403         (WebCore):
2404         * bindings/scripts/test/V8/V8TestObj.h:
2405         (V8TestObj):
2406         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
2407         (WebCore):
2408         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
2409         (V8TestSerializedScriptValueInterface):
2410         * bindings/v8/NPV8Object.cpp:
2411         (WebCore::npObjectTypeInfo):
2412         * bindings/v8/V8GCController.cpp:
2413         (WebCore::GrouperVisitor::visitDOMWrapper):
2414         * bindings/v8/WrapperTypeInfo.h:
2415         (WebCore):
2416         (WrapperTypeInfo):
2417         * bindings/v8/custom/V8CSSStyleSheetCustom.cpp: Removed.
2418         * bindings/v8/custom/V8DOMStringMapCustom.cpp:
2419         * bindings/v8/custom/V8DOMTokenListCustom.cpp: Removed.
2420         * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
2421         (WebCore):
2422         * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
2423         * bindings/v8/custom/V8StyleSheetCustom.cpp:
2424         (WebCore::toV8):
2425         * css/CSSStyleSheet.idl:
2426         * css/StyleSheet.idl:
2427         * dom/DOMStringMap.idl:
2428         * dom/NamedNodeMap.idl:
2429         * html/DOMTokenList.idl:
2430         * html/track/TextTrackList.cpp:
2431         * html/track/TextTrackList.idl:
2432
2433 2012-03-13  Jacky Jiang  <zhajiang@rim.com>
2434
2435         MathML crash in WebCore::Node::previousSibling()
2436         https://bugs.webkit.org/show_bug.cgi?id=80773
2437
2438         Reviewed by Julien Chaffraix.
2439
2440         When adding child for msub render, if the child is mtr or mtd render,
2441         we will creat an anonymous render as the container. As the anonymous
2442         render's node is 0, accessing it directly can cause crash.
2443         We should do a valid check of the node before using. In addition to
2444         that, for msub, attach the anonymous render and it's children to render
2445         tree. For msubsup, such kind of situation should never happen based on
2446         the current codebase.
2447
2448         Test: mathml/msub-anonymous-child-render-crash.html
2449
2450         * rendering/mathml/RenderMathMLSubSup.cpp:
2451         (WebCore::RenderMathMLSubSup::addChild):
2452
2453 2012-03-13  Mihnea Ovidenie  <mihnea@adobe.com>
2454
2455         [CSSRegions]NamedFlow::getRegionsByContentNode should not return a live NodeList
2456         https://bugs.webkit.org/show_bug.cgi?id=81021
2457
2458         Reviewed by Ryosuke Niwa.
2459
2460         Reverting the original patch as we need a better solution.
2461
2462         * CMakeLists.txt:
2463         * GNUmakefile.list.am:
2464         * Target.pri:
2465         * WebCore.gypi:
2466         * WebCore.vcproj/WebCore.vcproj:
2467         * WebCore.xcodeproj/project.pbxproj:
2468         * dom/Node.cpp:
2469         (WebCore::NodeListsNodeData::invalidateCaches):
2470         (WebCore::NodeListsNodeData::isEmpty):
2471         * dom/Node.h:
2472         (Node):
2473         * dom/NodeRareData.h:
2474         (NodeListsNodeData):
2475         * dom/RegionNodeList.cpp: Removed.
2476         * dom/RegionNodeList.h: Removed.
2477         * dom/WebKitNamedFlow.cpp:
2478         * dom/WebKitNamedFlow.h:
2479         (WebKitNamedFlow):
2480         * dom/WebKitNamedFlow.idl:
2481         * rendering/RenderFlowThread.cpp:
2482         * rendering/RenderFlowThread.h:
2483         * rendering/RenderRegion.h:
2484         (RenderRegion):
2485
2486 2012-03-13  Shawn Singh  <shawnsingh@chromium.org>
2487
2488         [chromium] wrong transform causing incorrect culling
2489         https://bugs.webkit.org/show_bug.cgi?id=80471
2490
2491         Reviewed by James Robinson.
2492
2493         Unit test added to CCRenderSurfaceTest.cpp
2494
2495         In addition to using originTransform() instead of drawTransform(),
2496         this patch shuffles a bit of code so that a unit test can be
2497         easily added.
2498
2499         * platform/graphics/chromium/cc/CCRenderPass.cpp:
2500         (WebCore::CCRenderPass::appendQuadsForRenderSurfaceLayer):
2501         * platform/graphics/chromium/cc/CCRenderSurface.cpp:
2502         (WebCore::CCRenderSurface::createSharedQuadState):
2503         (WebCore):
2504         * platform/graphics/chromium/cc/CCRenderSurface.h:
2505         (CCRenderSurface):
2506
2507 2012-03-13  Dave Tharp  <dtharp@codeaurora.org>
2508
2509         Alternate xml-stylesheets with no title are loaded, in violation of the CSSOM draft
2510         https://bugs.webkit.org/show_bug.cgi?id=77549
2511
2512         Reviewed by David Hyatt.
2513
2514         Amended code to ignore alternate stylesheets that do not have a title attribute.
2515
2516         Test: fast/css/xml-stylesheet-alternate-no-title.xhtml
2517
2518         * dom/ProcessingInstruction.cpp:
2519         (WebCore::ProcessingInstruction::checkStyleSheet):
2520
2521 2012-03-13  Levi Weintraub  <leviw@chromium.org>
2522
2523         Revert RenderLayer::absoluteBoundingBox to an IntRect
2524         https://bugs.webkit.org/show_bug.cgi?id=81017
2525
2526         Reviewed by Eric Seidel.
2527
2528         Reverting RenderLayer::absoluteBoundingBox to an (pixel snapped) IntRect. Whenever
2529         possible, we use integers representing for absolute coordinates. This is especially
2530         relevant for methods, such as this one, that are exported and used in platform code.
2531
2532         No new tests. No change in behavior.
2533
2534         * rendering/RenderLayer.cpp:
2535         (WebCore::RenderLayer::absoluteBoundingBox):
2536         * rendering/RenderLayer.h:
2537         (RenderLayer):
2538         * rendering/RenderLayerCompositor.cpp:
2539         (WebCore::RenderLayerCompositor::requiresCompositingForPosition): This intersects
2540         the absolute bounding box with the FrameView, which uses all integer values. It's
2541         the only use of absoluteBoundingBox in WebCore.
2542
2543 2012-03-13  Nat Duca  <nduca@chromium.org>
2544
2545         [chromium] vsync ticks are needed in invisible tabs when we are still updating resources
2546         https://bugs.webkit.org/show_bug.cgi?id=80910
2547
2548         Reviewed by James Robinson.
2549
2550         * platform/graphics/chromium/cc/CCSchedulerStateMachine.cpp:
2551         (WebCore::CCSchedulerStateMachine::vsyncCallbackNeeded):
2552
2553 2012-03-13  Dave Tharp  <dtharp@codeaurora.org>
2554
2555         Alternate stylesheets (without title attribute) are loaded on refresh
2556         https://bugs.webkit.org/show_bug.cgi?id=24354
2557
2558         Reviewed by David Hyatt.
2559
2560         Alternate stylesheets are now ignored in <link> tags if 
2561         they have no title attribute (per spec).
2562
2563         Tests: fast/css/link-alternate-stylesheet-1.html
2564                fast/css/link-alternate-stylesheet-2.html
2565                fast/css/link-alternate-stylesheet-3.html
2566                fast/css/link-alternate-stylesheet-4.html
2567                fast/css/link-alternate-stylesheet-5.html
2568
2569         * dom/Document.cpp:
2570         (WebCore::Document::collectActiveStylesheets):
2571
2572 2012-03-13  Dana Jansens  <danakj@chromium.org>
2573
2574         Region::contains(IntPoint) is slow
2575         https://bugs.webkit.org/show_bug.cgi?id=81008
2576
2577         Reviewed by Anders Carlsson.
2578
2579         Speed up Region::contains(IntPoint) by directly testing if the point
2580         is inside the Region's shape, rather than using a temporary 1x1 Region
2581         for the test.
2582
2583         Unit test: RegionTest.containsPoint
2584
2585         * platform/graphics/Region.cpp:
2586         (WebCore::Region::contains):
2587
2588 2012-03-13  Adrienne Walker  <enne@google.com>
2589
2590         [chromium] Mark root layer scrollbars as always opaque to disable blending
2591         https://bugs.webkit.org/show_bug.cgi?id=79951
2592
2593         Reviewed by James Robinson.
2594
2595         Now that scrollbar layers exist, mark non-overlay root scrollbars as
2596         opaque. This disables blending for correctness and performance.
2597
2598         * page/scrolling/chromium/ScrollingCoordinatorChromium.cpp:
2599         (WebCore::scrollbarLayerDidChange):
2600         (WebCore::ScrollingCoordinator::frameViewHorizontalScrollbarLayerDidChange):
2601         (WebCore::ScrollingCoordinator::frameViewVerticalScrollbarLayerDidChange):
2602         * platform/graphics/chromium/LayerRendererChromium.cpp:
2603         (WebCore::LayerRendererChromium::drawTileQuad):
2604
2605 2012-03-13  Gavin Peters  <gavinp@chromium.org>
2606
2607         Remove vestigal abortEvent from image attribute.
2608         https://bugs.webkit.org/show_bug.cgi?id=80795
2609
2610         Reviewed by Adam Barth.
2611
2612         It seems we installed a listener for the abort event on images,
2613         but never ever raised them.  So this patch removes it.  This could
2614         cause different behaviour if the user sends abort events directly
2615         at an image element, although addEventListener will still work.
2616
2617         * html/HTMLImageElement.cpp:
2618         (WebCore::HTMLImageElement::parseAttribute):
2619
2620 2012-03-13  Nate Chapin  <japhet@chromium.org>
2621
2622         Rework how a CachedRawResource decides if it can be reused
2623         for a given ResourceRequest. Ensure method, body, cookie policy,
2624         and all headers match.
2625         http://bugs.webkit.org/show_bug.cgi?id=79325
2626
2627         Reviewed by Oliver Hunt.
2628
2629         Test: http/tests/cache/xhr-body.html
2630
2631         * loader/cache/CachedRawResource.cpp:
2632         (WebCore::CachedRawResource::canReuse):
2633         * loader/cache/CachedRawResource.h: Take a ResourceRequest in canReuse().
2634         * loader/cache/CachedResourceLoader.cpp:
2635         (WebCore::CachedResourceLoader::determineRevalidationPolicy): Remove Range header
2636             check, since it is now redundant.
2637
2638 2012-03-13  Rob Buis  <rbuis@rim.com>
2639
2640         Fix cast-align GCC warning
2641         https://bugs.webkit.org/show_bug.cgi?id=80790
2642
2643         Reviewed by Dan Bates.
2644
2645         This touches unpackOneRowOfBGRA8ToRGBA8.
2646
2647         * platform/graphics/GraphicsContext3D.cpp:
2648         (WebCore):
2649
2650 2012-03-12  Simon Fraser  <simon.fraser@apple.com>
2651
2652         Refactor some code that is used to check whether a layer needs backing store
2653         https://bugs.webkit.org/show_bug.cgi?id=80917
2654
2655         Reviewed by Dean Jackson.
2656
2657         Move some code out of isSimpleContainerCompositingLayer() in two new
2658         methods to make the code more self-descriptive.
2659         
2660         No behavior change, so no tests.
2661
2662         * rendering/RenderLayerBacking.cpp:
2663         (WebCore::RenderLayerBacking::paintsBoxDecorations):
2664         (WebCore::RenderLayerBacking::paintsChildren):
2665         (WebCore::RenderLayerBacking::isSimpleContainerCompositingLayer):
2666         * rendering/RenderLayerBacking.h:
2667         (RenderLayerBacking):
2668
2669 2012-03-13  Daniel Bates  <dbates@webkit.org>
2670
2671         REGRESSION(r99369): File input button doesn't highlight when pressed
2672         https://bugs.webkit.org/show_bug.cgi?id=79385
2673
2674         Reviewed by Kent Tamura.
2675
2676         Fixes an issue where the file input button doesn't highlight on mouse press.
2677
2678         Currently we always override the active state of the button with whether
2679         a dragged file is being hovered over the file input control (i.e. can the control
2680         receive a dropped file; HTMLInputElement::canReceiveDroppedFiles()).
2681         Instead, we should only override the active state of the button when the state
2682         changes for whether we can receive dropped files (e.g. during a drag) so that
2683         we honor the active state of the button when it is pressed.
2684
2685         Test: fast/forms/file/file-input-pressed-state.html
2686
2687         * rendering/RenderFileUploadControl.cpp:
2688         (WebCore::RenderFileUploadControl::RenderFileUploadControl):
2689         (WebCore::RenderFileUploadControl::updateFromElement):
2690         * rendering/RenderFileUploadControl.h:
2691         (RenderFileUploadControl):
2692
2693 2012-03-13  Dana Jansens  <danakj@chromium.org>
2694
2695         [chromium] Use CCOcclusionTracker for draw culling
2696         https://bugs.webkit.org/show_bug.cgi?id=80743
2697
2698         Reviewed by Adrienne Walker.
2699
2700         In this CL we enable the use of CCOcclusionTracker for draw-side
2701         culling. This means moving from a per-quad culling model to a
2702         per-layer model.
2703
2704         When calculating RenderPasses, we construct the set of passes,
2705         then iterate over layers in front-to-back order. We make
2706         CCQuadCuller instantiable, and pass it to the layer
2707         appendQuads() methods instead of the bare list, where it can
2708         filter quads before the end up in the list.
2709
2710         Covered by existing tests.
2711
2712         * platform/graphics/chromium/LayerRendererChromium.cpp:
2713         (WebCore::LayerRendererChromium::drawRenderPass):
2714         * platform/graphics/chromium/LayerRendererChromium.h:
2715         * platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp:
2716         (WebCore::CCCanvasLayerImpl::appendQuads):
2717         * platform/graphics/chromium/cc/CCCanvasLayerImpl.h:
2718         (CCCanvasLayerImpl):
2719         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
2720         (WebCore::CCLayerImpl::appendQuads):
2721         (WebCore::CCLayerImpl::appendGutterQuads):
2722         (WebCore::CCLayerImpl::appendDebugBorderQuad):
2723         * platform/graphics/chromium/cc/CCLayerImpl.h:
2724         (WebCore):
2725         (CCLayerImpl):
2726         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
2727         (WebCore::CCLayerTreeHostImpl::calculateRenderPasses):
2728         (WebCore::CCLayerTreeHostImpl::drawLayers):
2729         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
2730         (CCLayerTreeHostImpl):
2731         * platform/graphics/chromium/cc/CCPluginLayerImpl.cpp:
2732         (WebCore::CCPluginLayerImpl::appendQuads):
2733         * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
2734         (CCPluginLayerImpl):
2735         * platform/graphics/chromium/cc/CCQuadCuller.cpp:
2736         (WebCore::CCQuadCuller::CCQuadCuller):
2737         (WebCore::CCQuadCuller::append):
2738         * platform/graphics/chromium/cc/CCQuadCuller.h:
2739         (WebCore):
2740         (CCQuadCuller):
2741         * platform/graphics/chromium/cc/CCRenderPass.cpp:
2742         (WebCore::CCRenderPass::appendQuadsForLayer):
2743         * platform/graphics/chromium/cc/CCRenderPass.h:
2744         (WebCore):
2745         (CCQuadList):
2746         (WebCore::CCQuadList::backToFrontBegin):
2747         (WebCore::CCQuadList::backToFrontEnd):
2748         (CCRenderPass):
2749         * platform/graphics/chromium/cc/CCScrollbarLayerImpl.cpp:
2750         (WebCore::CCScrollbarLayerImpl::appendQuads):
2751         * platform/graphics/chromium/cc/CCScrollbarLayerImpl.h:
2752         (CCScrollbarLayerImpl):
2753         * platform/graphics/chromium/cc/CCSolidColorLayerImpl.cpp:
2754         (WebCore::CCSolidColorLayerImpl::appendQuads):
2755         * platform/graphics/chromium/cc/CCSolidColorLayerImpl.h:
2756         (CCSolidColorLayerImpl):
2757         * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
2758         (WebCore::CCTiledLayerImpl::appendQuads):
2759         * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
2760         (CCTiledLayerImpl):
2761         * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
2762         (WebCore::CCVideoLayerImpl::appendQuads):
2763         * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
2764         (CCVideoLayerImpl):
2765
2766 2012-03-13  Adam Barth  <abarth@webkit.org> && Benjamin Poulain  <bpoulain@apple.com>
2767
2768         Always enable ENABLE(CLIENT_BASED_GEOLOCATION)
2769         https://bugs.webkit.org/show_bug.cgi?id=78853
2770
2771         Reviewed by Adam Barth.
2772
2773         * CMakeLists.txt:
2774         * Configurations/FeatureDefines.xcconfig:
2775         * GNUmakefile.am:
2776         * GNUmakefile.list.am:
2777         * Modules/geolocation/Geolocation.cpp:
2778         (WebCore):
2779         (WebCore::createPositionError):
2780         (WebCore::Geolocation::Geolocation):
2781         (WebCore::Geolocation::stop):
2782         (WebCore::Geolocation::lastPosition):
2783         (WebCore::Geolocation::requestPermission):
2784         (WebCore::Geolocation::startUpdating):
2785         (WebCore::Geolocation::stopUpdating):
2786         * Modules/geolocation/Geolocation.h:
2787         (WebCore):
2788         (Geolocation):
2789         * Modules/geolocation/GeolocationController.cpp:
2790         * Modules/geolocation/GeolocationController.h:
2791         * Modules/geolocation/GeolocationError.h:
2792         * Modules/geolocation/GeolocationPosition.h:
2793         * Target.pri:
2794         * WebCore.exp.in:
2795         * WebCore.gypi:
2796         * WebCore.vcproj/WebCore.vcproj:
2797         * bindings/js/JSGeolocationCustom.cpp:
2798         * loader/EmptyClients.h:
2799         (EmptyChromeClient):
2800         * page/ChromeClient.h:
2801         (ChromeClient):
2802         * page/Page.cpp:
2803         (WebCore::Page::Page):
2804         * page/Page.h:
2805         (Page):
2806         * platform/GeolocationService.cpp: Removed.
2807         * platform/GeolocationService.h: Removed.
2808         * platform/mock/GeolocationClientMock.cpp:
2809         * platform/mock/GeolocationClientMock.h:
2810         * platform/mock/GeolocationServiceMock.cpp: Removed.
2811         * platform/mock/GeolocationServiceMock.h: Removed.
2812
2813 2012-03-12  Antonio Gomes  <agomes@rim.com>
2814
2815         Convert nodesFromRect tests to use Internals interface
2816         https://bugs.webkit.org/show_bug.cgi?id=80886
2817
2818         Reviewed by Ryosuke Niwa.
2819
2820         Add Internals::nodesFromRect implementation to unify
2821         the codepath for testing Document::nodesFromRect in a
2822         cross port way.
2823
2824         No new tests, since we are improving here the infra-structure
2825         for testing a specific method.
2826
2827         * testing/Internals.cpp:
2828         (WebCore::Internals::nodesFromRect):
2829         (WebCore):
2830         * testing/Internals.h:
2831         (Internals):
2832         * testing/Internals.idl:
2833
2834 2012-03-13  Philip Rogers  <pdr@google.com>
2835
2836         Fix the use of stale text fragments
2837         https://bugs.webkit.org/show_bug.cgi?id=80729
2838
2839         Reviewed by Nikolas Zimmermann.
2840
2841         Previously, we were allowing SVGTextFragments to get out of sync with the
2842         actual text in RenderSVGInlineTextBox. This patch reuses the dirty line
2843         box code in RenderText::setTextWithOffset to force
2844         clearTextFragments() when setTextWithOffset is called, preventing the use
2845         of stale SVGTextFragments.
2846
2847         Test: svg/custom/delete-text-crash.html
2848
2849         * rendering/InlineBox.h:
2850         (InlineBox):
2851         * rendering/svg/SVGInlineTextBox.cpp:
2852         (WebCore::SVGInlineTextBox::dirtyLineBoxes):
2853         (WebCore):
2854         * rendering/svg/SVGInlineTextBox.h:
2855         (SVGInlineTextBox):
2856
2857 2012-03-13  Nikolas Zimmermann  <nzimmermann@rim.com>
2858
2859         SVG Animations update baseVal instead of animVal
2860         https://bugs.webkit.org/show_bug.cgi?id=12437
2861
2862         Reviewed by Dirk Schulze.
2863
2864         Blind fix for some GC related assertions firing on v8.
2865
2866         Assure that animationStarted/animationEnded calls are happening
2867         on the same SVGAnimatedProperty. Always call animationEnded(),
2868         even if we shouldn't do anything for the target element, as its
2869         destructed, as we still have to reset m_isAnimating.
2870
2871         * svg/SVGAnimateElement.cpp:
2872         (WebCore::SVGAnimateElement::SVGAnimateElement):
2873         (WebCore::SVGAnimateElement::resetToBaseValue):
2874         (WebCore::SVGAnimateElement::targetElementWillChange):
2875         * svg/SVGAnimateElement.h:
2876         (SVGAnimateElement):
2877         * svg/properties/SVGAnimatedPropertyTearOff.h:
2878         (WebCore::SVGAnimatedPropertyTearOff::animationEnded):
2879
2880 2012-03-13  Mark Pilgrim  <pilgrim@chromium.org>
2881
2882         Move DirectoryEntry and DirectoryReader to new Modules/filesystem/ directory
2883         https://bugs.webkit.org/show_bug.cgi?id=80625
2884
2885         Reviewed by Adam Barth.
2886
2887         No new tests, all existing tests pass.
2888
2889         * CMakeLists.txt:
2890         * DerivedSources.make:
2891         * DerivedSources.pri:
2892         * GNUmakefile.am:
2893         * GNUmakefile.list.am:
2894         * Modules/filesystem: Added.
2895         * Modules/filesystem/DirectoryEntry.cpp: Copied from Source/WebCore/fileapi/DirectoryEntry.cpp.
2896         * Modules/filesystem/DirectoryEntry.h: Copied from Source/WebCore/fileapi/DirectoryEntry.h.
2897         * Modules/filesystem/DirectoryEntry.idl: Copied from Source/WebCore/fileapi/DirectoryEntry.idl.
2898         * Modules/filesystem/DirectoryEntrySync.cpp: Copied from Source/WebCore/fileapi/DirectoryEntrySync.cpp.
2899         * Modules/filesystem/DirectoryEntrySync.h: Copied from Source/WebCore/fileapi/DirectoryEntrySync.h.
2900         * Modules/filesystem/DirectoryEntrySync.idl: Copied from Source/WebCore/fileapi/DirectoryEntrySync.idl.
2901         * Modules/filesystem/DirectoryReader.cpp: Copied from Source/WebCore/fileapi/DirectoryReader.cpp.
2902         * Modules/filesystem/DirectoryReader.h: Copied from Source/WebCore/fileapi/DirectoryReader.h.
2903         * Modules/filesystem/DirectoryReader.idl: Copied from Source/WebCore/fileapi/DirectoryReader.idl.
2904         * Modules/filesystem/DirectoryReaderBase.h: Copied from Source/WebCore/fileapi/DirectoryReaderBase.h.
2905         * Modules/filesystem/DirectoryReaderSync.cpp: Copied from Source/WebCore/fileapi/DirectoryReaderSync.cpp.
2906         * Modules/filesystem/DirectoryReaderSync.h: Copied from Source/WebCore/fileapi/DirectoryReaderSync.h.
2907         * Modules/filesystem/DirectoryReaderSync.idl: Copied from Source/WebCore/fileapi/DirectoryReaderSync.idl.
2908         * Target.pri:
2909         * WebCore.gyp/WebCore.gyp:
2910         * WebCore.gypi:
2911         * WebCore.pri:
2912         * WebCore.vcproj/WebCore.vcproj:
2913         * WebCore.xcodeproj/project.pbxproj:
2914         * fileapi/DirectoryEntry.cpp: Removed.
2915         * fileapi/DirectoryEntry.h: Removed.
2916         * fileapi/DirectoryEntry.idl: Removed.
2917         * fileapi/DirectoryEntrySync.cpp: Removed.
2918         * fileapi/DirectoryEntrySync.h: Removed.
2919         * fileapi/DirectoryEntrySync.idl: Removed.
2920         * fileapi/DirectoryReader.cpp: Removed.
2921         * fileapi/DirectoryReader.h: Removed.
2922         * fileapi/DirectoryReader.idl: Removed.
2923         * fileapi/DirectoryReaderBase.h: Removed.
2924         * fileapi/DirectoryReaderSync.cpp: Removed.
2925         * fileapi/DirectoryReaderSync.h: Removed.
2926         * fileapi/DirectoryReaderSync.idl: Removed.
2927
2928 2012-03-13  Igor Oliveira  <igor.o@sisa.samsung.com>
2929
2930         animation-iteration-count does not handle floating point values correctly.
2931         https://bugs.webkit.org/show_bug.cgi?id=69531
2932
2933         Implements support for non-integers animation-iteration-count numbers.
2934         Non-integer numbers will cause the animation to end part-way through a cycle.
2935
2936         Reviewed by Dean Jackson.
2937
2938         Tests: animations/fill-mode-iteration-count-non-integer.html
2939                animations/keyframes-iteration-count-non-integer.html
2940
2941         * css/CSSComputedStyleDeclaration.cpp:
2942         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2943         * css/CSSParser.cpp:
2944         (WebCore::CSSParser::parseAnimationIterationCount):
2945         * css/CSSStyleApplyProperty.cpp:
2946         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
2947         * css/CSSStyleSelector.cpp:
2948         (WebCore::CSSStyleSelector::collectMatchingRulesForList):
2949         * page/animation/AnimationBase.cpp:
2950         (WebCore::AnimationBase::fractionalTime):
2951         (WebCore::AnimationBase::progress):
2952         * page/animation/CompositeAnimation.cpp:
2953         (WebCore::CompositeAnimation::pauseAnimationAtTime):
2954         * platform/animation/Animation.h:
2955         (WebCore::Animation::iterationCount):
2956         (WebCore::Animation::setIterationCount):
2957         (Animation):
2958         (WebCore::Animation::initialAnimationIterationCount):
2959
2960 2012-03-13  Tommy Widenflycht  <tommyw@google.com>
2961
2962         MediaStream API: Rename PeerConnection to DeprecatedPeerConnection
2963         https://bugs.webkit.org/show_bug.cgi?id=80692
2964
2965         Reviewed by Adam Barth.
2966
2967         First patch in a series of patches to change the PeerConnection from ROAP to JSEP,
2968         see bug 80589 for more information.
2969
2970         Patch covered by modified existing tests.
2971
2972         * GNUmakefile.list.am:
2973         * Modules/mediastream/DOMWindowMediaStream.idl:
2974         * Modules/mediastream/DeprecatedPeerConnection.cpp: Renamed from Source/WebCore/Modules/mediastream/PeerConnection.cpp.
2975         (WebCore):
2976         (WebCore::DeprecatedPeerConnection::create):
2977         (WebCore::DeprecatedPeerConnection::DeprecatedPeerConnection):
2978         (WebCore::DeprecatedPeerConnection::~DeprecatedPeerConnection):
2979         (WebCore::DeprecatedPeerConnection::processSignalingMessage):
2980         (WebCore::DeprecatedPeerConnection::readyState):
2981         (WebCore::DeprecatedPeerConnection::send):
2982         (WebCore::DeprecatedPeerConnection::addStream):
2983         (WebCore::DeprecatedPeerConnection::removeStream):
2984         (WebCore::DeprecatedPeerConnection::localStreams):
2985         (WebCore::DeprecatedPeerConnection::remoteStreams):
2986         (WebCore::DeprecatedPeerConnection::close):
2987         (WebCore::DeprecatedPeerConnection::didCompleteICEProcessing):
2988         (WebCore::DeprecatedPeerConnection::didGenerateSDP):
2989         (WebCore::DeprecatedPeerConnection::didReceiveDataStreamMessage):
2990         (WebCore::DeprecatedPeerConnection::didAddRemoteStream):
2991         (WebCore::DeprecatedPeerConnection::didRemoveRemoteStream):
2992         (WebCore::DeprecatedPeerConnection::interfaceName):
2993         (WebCore::DeprecatedPeerConnection::scriptExecutionContext):
2994         (WebCore::DeprecatedPeerConnection::stop):
2995         (WebCore::DeprecatedPeerConnection::eventTargetData):
2996         (WebCore::DeprecatedPeerConnection::ensureEventTargetData):
2997         (WebCore::DeprecatedPeerConnection::scheduleInitialNegotiation):
2998         (WebCore::DeprecatedPeerConnection::initialNegotiationTimerFired):
2999         (WebCore::DeprecatedPeerConnection::ensureStreamChangeScheduled):
3000         (WebCore::DeprecatedPeerConnection::streamChangeTimerFired):
3001         (WebCore::DeprecatedPeerConnection::scheduleReadyStateChange):
3002         (WebCore::DeprecatedPeerConnection::readyStateChangeTimerFired):
3003         (WebCore::DeprecatedPeerConnection::changeReadyState):
3004         * Modules/mediastream/DeprecatedPeerConnection.h: Renamed from Source/WebCore/Modules/mediastream/PeerConnection.h.
3005         (WebCore):
3006         (DeprecatedPeerConnection):
3007         (WebCore::DeprecatedPeerConnection::didChangeState):
3008         (WebCore::DeprecatedPeerConnection::refEventTarget):
3009         (WebCore::DeprecatedPeerConnection::derefEventTarget):
3010         * Modules/mediastream/DeprecatedPeerConnection.idl: Renamed from Source/WebCore/Modules/mediastream/PeerConnection.idl.
3011         * Modules/mediastream/SignalingCallback.h:
3012         (WebCore):
3013         (SignalingCallback):
3014         * Modules/mediastream/SignalingCallback.idl:
3015         * WebCore.gypi:
3016         * bindings/generic/RuntimeEnabledFeatures.h:
3017         (WebCore::RuntimeEnabledFeatures::webkitDeprecatedPeerConnectionEnabled):
3018         * bindings/js/JSDeprecatedPeerConnectionCustom.cpp: Renamed from Source/WebCore/bindings/js/JSPeerConnectionCustom.cpp.
3019         (WebCore):
3020         (WebCore::JSDeprecatedPeerConnectionConstructor::constructJSDeprecatedPeerConnection):
3021         * dom/EventTarget.h:
3022         (WebCore):
3023         * dom/EventTargetFactory.in:
3024         * platform/mediastream/DeprecatedPeerConnectionHandler.h: Renamed from Source/WebCore/platform/mediastream/PeerConnectionHandler.h.
3025         (WebCore):
3026         (DeprecatedPeerConnectionHandler):
3027         * platform/mediastream/DeprecatedPeerConnectionHandlerClient.h: Renamed from Source/WebCore/platform/mediastream/PeerConnectionHandlerClient.h.
3028         (WebCore):
3029         (DeprecatedPeerConnectionHandlerClient):
3030         (WebCore::DeprecatedPeerConnectionHandlerClient::~DeprecatedPeerConnectionHandlerClient):
3031         * platform/mediastream/gstreamer/DeprecatedPeerConnectionHandler.cpp: Renamed from Source/WebCore/platform/mediastream/gstreamer/PeerConnectionHandler.cpp.
3032         (WebCore):
3033         (WebCore::DeprecatedPeerConnectionHandler::create):
3034         (WebCore::DeprecatedPeerConnectionHandler::DeprecatedPeerConnectionHandler):
3035         (WebCore::DeprecatedPeerConnectionHandler::~DeprecatedPeerConnectionHandler):
3036         (WebCore::DeprecatedPeerConnectionHandler::produceInitialOffer):
3037         (WebCore::DeprecatedPeerConnectionHandler::handleInitialOffer):
3038         (WebCore::DeprecatedPeerConnectionHandler::processSDP):
3039         (WebCore::DeprecatedPeerConnectionHandler::processPendingStreams):
3040         (WebCore::DeprecatedPeerConnectionHandler::sendDataStreamMessage):
3041         (WebCore::DeprecatedPeerConnectionHandler::stop):
3042
3043 2012-03-13  Pavel Feldman  <pfeldman@chromium.org>
3044
3045         Web Inspector: front-end compilation was broken while supporting large arrays.
3046         https://bugs.webkit.org/show_bug.cgi?id=81013
3047
3048         Reviewed by Vsevolod Vlasov.
3049
3050         * inspector/front-end/ExtensionPanel.js:
3051         * inspector/front-end/ObjectPropertiesSection.js:
3052         (WebInspector.ArrayGroupingTreeElement._populateNonIndexProperties.buildObjectFragment):
3053         * inspector/front-end/RemoteObject.js:
3054
3055 2012-03-13  Tony Chang  <tony@chromium.org>
3056
3057         flexbox's computePreferredLogicalWidth needs to take multiline into account
3058         https://bugs.webkit.org/show_bug.cgi?id=80931
3059
3060         Reviewed by Ojan Vafai.
3061
3062         Tests: css3/flexbox/multiline-shrink-to-fit-expected.html
3063                css3/flexbox/multiline-shrink-to-fit.html
3064
3065         * rendering/RenderFlexibleBox.cpp:
3066         (WebCore::RenderFlexibleBox::computePreferredLogicalWidths): Set min/max preferredLogicalWidth based on always breaking or never breaking.
3067         (WebCore::RenderFlexibleBox::computeNextFlexLine): Add a FIXME.
3068         (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): Don't change the width after computePreferredWidth has been called.
3069
3070 2012-03-13  Sheriff Bot  <webkit.review.bot@gmail.com>
3071
3072         Unreviewed, rolling out r110469.
3073         http://trac.webkit.org/changeset/110469
3074         https://bugs.webkit.org/show_bug.cgi?id=81010
3075
3076         This patch still appears to crash (Requested by abarth on
3077         #webkit).
3078
3079         * page/FrameView.cpp:
3080         (WebCore::FrameView::FrameView):
3081         (WebCore::FrameView::reset):
3082         (WebCore::FrameView::repaintContentRectangle):
3083         (WebCore):
3084         (WebCore::FrameView::endDeferredRepaints):
3085         (WebCore::FrameView::doDeferredRepaints):
3086         (WebCore::FrameView::deferredRepaintTimerFired):
3087         * page/FrameView.h:
3088         (FrameView):
3089         * rendering/RenderView.cpp:
3090         (WebCore::RenderView::shouldRepaint):
3091         * svg/graphics/SVGImage.cpp:
3092         (WebCore::SVGImage::drawSVGToImageBuffer):
3093         (WebCore::SVGImage::draw):
3094         * svg/graphics/SVGImage.h:
3095         * svg/graphics/SVGImageCache.cpp:
3096         (WebCore::SVGImageCache::imageContentChanged):
3097         (WebCore::SVGImageCache::redrawTimerFired):
3098         * svg/graphics/SVGImageCache.h:
3099         (SVGImageCache):
3100
3101 2012-03-13  Max Vujovic  <mvujovic@adobe.com>
3102
3103         Add a method to window.internals to enable testing of inspector highlight rects
3104         https://bugs.webkit.org/show_bug.cgi?id=80338
3105
3106         Reviewed by Pavel Feldman.
3107
3108         Add window.internals.inspectorHighlightRects, a method which makes it possible to test the
3109         positions and sizes of inspector highlight rects.
3110
3111         Test: inspector/elements/highlight-node.html
3112
3113         * WebCore.exp.in: Export symbols.
3114         * testing/Internals.cpp:
3115         (WebCore::Internals::inspectorHighlightRects): Call InspectorController::getHighlight and
3116         return the highlight's quads as a ClientRectList.
3117         (WebCore):
3118         * testing/Internals.h:
3119         (WebCore):
3120         (Internals):
3121         * testing/Internals.idl:
3122
3123             Add inspectorHighlightRects to the window.internals interface.
3124
3125 2012-03-13  Konrad Piascik  <kpiascik@rim.com>
3126
3127         [BlackBerry] Remove sublayers before clamping just in case the layer already exists
3128         https://bugs.webkit.org/show_bug.cgi?id=80989
3129
3130         Reviewed by Antonio Gomes.
3131
3132         Discovered when trying to add a highlight sublayer for web inspector.  Since that layer
3133         may already exist in the tree we need to see if it will be pruned before we clamp on the
3134         size.
3135
3136         This was manually tested during the writing of another patch to add web inspector highlights
3137         to accelrated compositing.
3138
3139         * platform/graphics/blackberry/LayerWebKitThread.cpp:
3140         (WebCore::LayerWebKitThread::insertSublayer):
3141
3142 2012-03-13  Vsevolod Vlasov  <vsevik@chromium.org>
3143
3144         Web Inspector: Add snippets model.
3145         https://bugs.webkit.org/show_bug.cgi?id=80863
3146
3147         Reviewed by Yury Semikhatsky.
3148
3149         Test: inspector/debugger/snippets-model.html
3150
3151         * WebCore.gypi:
3152         * WebCore.vcproj/WebCore.vcproj:
3153         * inspector/compile-front-end.py:
3154         * inspector/front-end/Settings.js:
3155         (WebInspector.ExperimentsSettings):
3156         * inspector/front-end/SnippetsModel.js: Added.
3157         * inspector/front-end/WebKit.qrc:
3158         * inspector/front-end/inspector.html:
3159         * inspector/front-end/inspector.js:
3160
3161 2012-03-13  'Pavel Feldman'  <pfeldman@chromium.org>
3162
3163         Not reviewed: chromium build fix.
3164
3165         * history/CachedFrame.cpp:
3166
3167 2012-03-13  Peter Rybin  <peter.rybin@gmail.com>
3168
3169         Web Inspector: CodeGeneratorInspector.py: refactor copy-paste getter methods
3170         https://bugs.webkit.org/show_bug.cgi?id=80923
3171
3172         Reviewed by Yury Semikhatsky.
3173
3174         Several methods are combined in one using C++ templates.
3175
3176         * inspector/CodeGeneratorInspector.py:
3177
3178 2012-03-13  Rob Buis  <rbuis@rim.com>
3179
3180         [BlackBerry] Fix cast-align warning in QuotesData.cpp
3181         https://bugs.webkit.org/show_bug.cgi?id=80601
3182
3183         Reviewed by Nikolas Zimmermann.
3184
3185         Fix warning by adding variable of correct return type.
3186
3187         * rendering/style/QuotesData.cpp:
3188         (WebCore::QuotesData::create):
3189
3190 2012-03-12  Brady Eidson  <beidson@apple.com>
3191
3192         <rdar://problem/7908830> and https://bugs.webkit.org/show_bug.cgi?id=34679
3193         Location and other objects are dysfunctional after a document gets restored from page cache
3194
3195         Reviewed by Adam Barth.
3196
3197         Test: fast/loader/window-properties-restored-from-page-cache.html
3198
3199         Give DOMWindowProperties the ability to reconnect to their Frame:
3200         * page/DOMWindowProperty.cpp:
3201         (WebCore::DOMWindowProperty::reconnectFrame):
3202         * page/DOMWindowProperty.h:
3203         (DOMWindowProperty):
3204
3205         Let ApplicationCache do some extra work when reconnecting:
3206         * loader/appcache/DOMApplicationCache.cpp:
3207         (WebCore::DOMApplicationCache::reconnectFrame):
3208         (WebCore):
3209         * loader/appcache/DOMApplicationCache.h:
3210         (DOMApplicationCache):
3211
3212         Let IndexDB do some extra work when reconnecting:
3213         * Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
3214         (WebCore::DOMWindowIndexedDatabase::disconnectFrame):
3215         (WebCore::DOMWindowIndexedDatabase::reconnectFrame):
3216         (WebCore::DOMWindowIndexedDatabase::webkitIndexedDB):
3217         * Modules/indexeddb/DOMWindowIndexedDatabase.h:
3218         (DOMWindowIndexedDatabase):
3219
3220         Tell the DOMWindow to suspend to the page cache:
3221         * history/CachedFrame.cpp:
3222         (WebCore::CachedFrame::CachedFrame):
3223
3224         Tell the DOMWindow to resume from the page cache:
3225         * loader/FrameLoader.cpp:
3226         (WebCore::FrameLoader::open):
3227
3228         * page/DOMWindow.cpp:
3229         (WebCore::DOMWindow::DOMWindow):
3230         (WebCore::DOMWindow::~DOMWindow): Call clearDOMWindowProperties directly instead of clear()
3231         (WebCore::DOMWindow::frameDestroyed): Ditto.
3232         (WebCore::DOMWindow::clear): Only clear if the DOMWindow is not suspended for the page cache.
3233         (WebCore::DOMWindow::suspendForPageCache): Disconnect properties and set the page cache flag.
3234         (WebCore::DOMWindow::resumeFromPageCache): Reconnect properties and revert the page cache flag.
3235         (WebCore::DOMWindow::disconnectDOMWindowProperties): Only disconnect the registered properties.
3236         (WebCore::DOMWindow::reconnectDOMWindowProperties):
3237         (WebCore::DOMWindow::clearDOMWindowProperties): Disconnect the registered properties then clear them out.
3238
3239         For all of the following, if the DOMWindow is not displayed in a frame (i.e., it is suspended), do nothing:
3240         (WebCore::DOMWindow::screen):
3241         (WebCore::DOMWindow::history):
3242         (WebCore::DOMWindow::crypto):
3243         (WebCore::DOMWindow::locationbar):
3244         (WebCore::DOMWindow::menubar):
3245         (WebCore::DOMWindow::personalbar):
3246         (WebCore::DOMWindow::scrollbars):
3247         (WebCore::DOMWindow::statusbar):
3248         (WebCore::DOMWindow::toolbar):
3249         (WebCore::DOMWindow::console):
3250         (WebCore::DOMWindow::applicationCache):
3251         (WebCore::DOMWindow::navigator):
3252         (WebCore::DOMWindow::performance):
3253         (WebCore::DOMWindow::location):
3254         (WebCore::DOMWindow::sessionStorage):
3255         (WebCore::DOMWindow::localStorage):
3256         (WebCore::DOMWindow::webkitNotifications):
3257         (WebCore::DOMWindow::postMessageTimerFired):
3258         (WebCore::DOMWindow::getSelection):
3259         (WebCore::DOMWindow::styleMedia):
3260         (WebCore::DOMWindow::webkitStorageInfo):
3261         * page/DOMWindow.h:
3262
3263 2012-03-13  Dana Jansens  <danakj@chromium.org>
3264
3265         [chromium] Use projectQuad to apply inverse mapRect
3266         https://bugs.webkit.org/show_bug.cgi?id=80741
3267
3268         Reviewed by Adrienne Walker.
3269
3270         Unit test: CCOcclusionTrackerTest3dTransform
3271                    CCOcclusionTrackerTestPerspectiveTransform
3272                    CCOcclusionTrackerTestPerspectiveTransformBehindCamera
3273
3274         * platform/graphics/chromium/cc/CCOcclusionTracker.cpp:
3275         (WebCore::projectQuad):
3276         (WebCore):
3277         (WebCore::computeUnoccludedContentRect):
3278
3279 2012-03-13  Gavin Peters  <gavinp@chromium.org>
3280
3281         New PageCache histogram which counts failures ignoring Settings.
3282         https://bugs.webkit.org/show_bug.cgi?id=80864
3283
3284         Reviewed by Brady Eidson.
3285
3286         Chrome has a command line switch to turn on the page cache.
3287         Currently it doesn't work, but it can cause the PageCache reasons
3288         for failure count to read lower than it should.  Add a new
3289         histogram to report the corrected value.
3290
3291         * history/PageCache.cpp:
3292         (WebCore::logCanCachePageDecision):
3293
3294 2012-03-13  George Staikos  <staikos@webkit.org>
3295
3296         Fix signed/unsigned mismatch compiler warnings.
3297         https://bugs.webkit.org/show_bug.cgi?id=80790
3298
3299         Reviewed by Alexey Proskuryakov.
3300
3301         * loader/icon/IconDatabase.cpp:
3302         (WebCore::IconDatabase::synchronousLoadDecisionForIconURL):
3303         * platform/network/MIMESniffing.cpp:
3304
3305 2012-03-13  Sheriff Bot  <webkit.review.bot@gmail.com>
3306
3307         Unreviewed, rolling out r110510.
3308         http://trac.webkit.org/changeset/110510
3309         https://bugs.webkit.org/show_bug.cgi?id=80987
3310
3311         depends on chromium r 125700, which isn't rolled into webkit
3312         yet :-/ (Requested by thakis_ on #webkit).
3313
3314         * WebCore.gyp/mac/adjust_visibility.sh:
3315
3316 2012-03-13  Gavin Peters  <gavinp@chromium.org>
3317
3318         Make ApplicationCacheHost::canCacheInPageCache() non-const.
3319         https://bugs.webkit.org/show_bug.cgi?id=80904
3320
3321         Reviewed by Alexey Proskuryakov.
3322
3323         A const pointer to a large object like ApplicationCacheHost is not our standard
3324         practice; so remove this (implicit) one.  See also https://bugs.webkit.org/show_bug.cgi?id=80898
3325
3326         * loader/appcache/ApplicationCacheHost.cpp:
3327         (WebCore::ApplicationCacheHost::canCacheInPageCache):
3328         * loader/appcache/ApplicationCacheHost.h:
3329         (ApplicationCacheHost):
3330
3331 2012-03-13  Stephen Chenney  <schenney@chromium.org>
3332
3333         Crash in WebCore::GraphicsContext::paintingDisabled
3334         https://bugs.webkit.org/show_bug.cgi?id=80669
3335
3336         Reviewed by Nikolas Zimmermann.
3337
3338         The SVGImageBufferTools::clipToImageBuffer method deletes the clip
3339         image when it thinks it is not needed. However, there are cases when
3340         it is in fact still needed, particularly when the clip buffer is
3341         coming from higher up in the stack where it may be needed again.
3342
3343         So this patch adds a flag to only allow deletion of the image buffer
3344         if it was created at the most recent call site.
3345
3346         Tests: svg/custom/circular-clip-path-references-crash-expected.svg
3347                svg/custom/circular-clip-path-references-crash.svg
3348
3349         * rendering/svg/RenderSVGResourceClipper.cpp:
3350         (WebCore::RenderSVGResourceClipper::applyClippingToContext):
3351         * rendering/svg/RenderSVGResourceGradient.cpp:
3352         (WebCore::clipToTextMask):
3353         * rendering/svg/RenderSVGResourceMasker.cpp:
3354         (WebCore::RenderSVGResourceMasker::applyResource):
3355         * rendering/svg/SVGImageBufferTools.cpp:
3356         (WebCore::SVGImageBufferTools::clipToImageBuffer):
3357         * rendering/svg/SVGImageBufferTools.h:
3358         (SVGImageBufferTools):
3359
3360 2012-03-13  Gavin Peters  <gavinp@chromium.org>
3361
3362         Fix an enumeration name in ReasonsFrameCannotBeInPageCache.
3363         https://bugs.webkit.org/show_bug.cgi?id=80849
3364
3365         Reviewed by Brady Eidson.
3366
3367         It seems that somebody goofed, and named one of the
3368         ReasonsFrameCannotBeInPageCache antonymically.
3369
3370         * history/PageCache.cpp:
3371         (WebCore::logCanCacheFrameDecision):
3372
3373 2012-03-12  Kinuko Yasuda  <kinuko@chromium.org>
3374
3375         File upload control should use File.name() rather than File.path() to show chosen filenames
3376         https://bugs.webkit.org/show_bug.cgi?id=80970
3377
3378         In some rare cases (e.g. files from FileSystem API or files created
3379         using the newly added WebKit API) File.name has different displayName
3380         from the basename of file.path, and in the file uploader controller we
3381         should use File.name rather than File.path.
3382
3383         Reviewed by Kent Tamura.
3384
3385         No new tests: existing tests should pass as this should not change
3386         behavior in regular use cases.  (New behavior where File.name differs
3387         from File.path can be only tested in chromeos environment, therefore
3388         not adding new tests for that)
3389
3390         * platform/gtk/RenderThemeGtk.cpp:
3391         (WebCore::RenderThemeGtk::fileListNameForWidth): Updated to handle FileList.
3392         * platform/gtk/RenderThemeGtk.h:
3393         * platform/qt/RenderThemeQt.cpp:
3394         (WebCore::RenderThemeQt::fileListNameForWidth): Updated to handle FileList.
3395         * platform/qt/RenderThemeQt.h:
3396         * rendering/RenderFileUploadControl.cpp:
3397         (WebCore::RenderFileUploadControl::fileTextValue): Changed to pass FileList rather than FileList->paths().
3398         * rendering/RenderTheme.cpp:
3399         (WebCore::RenderTheme::fileListNameForWidth): Updated to handle FileList and use File.name for displaying the file name.
3400         * rendering/RenderTheme.h:
3401         * rendering/RenderThemeMac.h:
3402         * rendering/RenderThemeMac.mm:
3403         (WebCore::RenderThemeMac::fileListNameForWidth): Updated to handle FileList.
3404
3405 2012-03-13  Kinuko Yasuda  <kinuko@chromium.org>
3406
3407         Allow WebFileChooser to return extra file info (like displayName) in addition to mere file paths
3408         https://bugs.webkit.org/show_bug.cgi?id=80719
3409
3410         Reviewed by Kent Tamura.
3411
3412         No new tests: this change itself shouldn't change existing behavior.
3413
3414         * fileapi/File.cpp:
3415         (WebCore::createBlobDataForFileWithName): Renamed from createBlobDataForFileSystemFile.
3416         * fileapi/File.h:
3417         * html/FileInputType.cpp:
3418         (WebCore::FileInputType::saveFormControlState): Updated to handle File.name.
3419         (WebCore::FileInputType::restoreFormControlState): Ditto.
3420         (WebCore::FileInputType::setFileList): Changed the signature to take
3421         FileChooserFileInfo.
3422         (WebCore::FileInputType::filesChosen): Ditto.
3423         (WebCore::FileInputType::receiveDroppedFiles):
3424         * html/FileInputType.h:
3425         (FileInputType):
3426         * platform/FileChooser.cpp:
3427         (WebCore::FileChooser::chooseFiles): Added an overloaded method that
3428         takes FileChooserFileInfo.
3429         (WebCore):
3430         * platform/FileChooser.h:
3431         (WebCore::FileChooserFileInfo::FileChooserFileInfo): Added.
3432         * platform/MIMETypeRegistry.cpp:
3433         (WebCore::MIMETypeRegistry::getWellKnownMIMETypeForExtension): Removed surrouonding ifdefs as this function is now used even if FILE_SYSTEM is not enabled.
3434         * platform/MIMETypeRegistry.h:
3435         (MIMETypeRegistry):
3436
3437 2012-03-13  Vsevolod Vlasov  <vsevik@chromium.org>
3438
3439         Unreviewed inspector compilation module name fix after r110550.
3440
3441         * inspector/compile-front-end.py:
3442
3443 2012-03-12  Vsevolod Vlasov  <vsevik@chromium.org>
3444
3445         Web Inspector: Changes to the list of scripts for front-end compilation should not require update of number of scripts in module.
3446         https://bugs.webkit.org/show_bug.cgi?id=80872
3447
3448         Reviewed by Pavel Feldman.
3449
3450         * inspector/compile-front-end.py: Added.
3451         * inspector/compile-front-end.sh:
3452
3453 2012-03-12  Pavel Podivilov  <podivilov@chromium.org>
3454
3455         Web Inspector: move ResourceScriptMapping to a separate file.
3456         https://bugs.webkit.org/show_bug.cgi?id=80859
3457
3458         Reviewed by Vsevolod Vlasov.
3459
3460         * WebCore.gypi:
3461         * WebCore.vcproj/WebCore.vcproj:
3462         * inspector/compile-front-end.sh:
3463         * inspector/front-end/ResourceScriptMapping.js: Copied from Source/WebCore/inspector/front-end/ScriptMapping.js.
3464         (WebInspector.ResourceScriptMapping):
3465         (WebInspector.ResourceScriptMapping.prototype.rawLocationToUILocation):
3466         (WebInspector.ResourceScriptMapping.prototype.uiSourceCodeList):
3467         (WebInspector.ResourceScriptMapping.prototype._handleUISourceCodeListChanged):
3468         (WebInspector.ResourceScriptMapping.prototype._uiSourceCodeListChanged):
3469         (WebInspector.ResourceScriptMapping.prototype._bindScriptToRawSourceCode):
3470         (WebInspector.ResourceScriptMapping.prototype.setFormatSource):
3471         (WebInspector.ResourceScriptMapping.prototype.forceUpdateSourceMapping):
3472         (WebInspector.ResourceScriptMapping.prototype.reset):
3473         * inspector/front-end/ScriptMapping.js:
3474         * inspector/front-end/WebKit.qrc:
3475         * inspector/front-end/inspector.html:
3476
3477 2012-03-12  Kentaro Hara  <haraken@chromium.org>
3478
3479         Rename OptionsObject to Dictionary
3480         https://bugs.webkit.org/show_bug.cgi?id=80802
3481
3482         Reviewed by Adam Barth.
3483