f94164855f7b4cb44edccea2c1b205db4d8a41ee
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2013-02-05  Yury Semikhatsky  <yurys@chromium.org>
2
3         Web Inspector:  introduce Memory.getDOMCounters
4         https://bugs.webkit.org/show_bug.cgi?id=108822
5
6         Reviewed by Pavel Feldman.
7
8         Introduced Memory.getDOMCounters command that returns number of Documents, Nodes
9         and JS event listeners in the inspected process.
10
11         * inspector/Inspector.json:
12         * inspector/InspectorMemoryAgent.cpp:
13         (WebCore::InspectorMemoryAgent::getDOMCounters):
14         (WebCore):
15         * inspector/InspectorMemoryAgent.h:
16         (InspectorMemoryAgent):
17
18 2013-02-04  Ilya Tikhonovsky  <loislo@chromium.org>
19
20         Web Inspector: Native Memory Instrumentation: rename Image m_data member to m_encodedImageData for the consistency
21         https://bugs.webkit.org/show_bug.cgi?id=108913
22
23         Reviewed by Yury Semikhatsky.
24
25         No new tests because no API changes.
26
27         * platform/graphics/Image.cpp:
28         (WebCore::Image::setData):
29         (WebCore::Image::reportMemoryUsage):
30         * platform/graphics/Image.h:
31         (WebCore::Image::data):
32         (Image):
33
34 2013-02-05  Hajime Morrita  <morrita@google.com>
35
36         Unreviewed Linux ASAN build fix for r141783.
37
38         * platform/RefCountedSupplement.h:
39         (Wrapper):
40         * platform/Supplementable.h:
41         (Supplement):
42
43 2013-02-05  Mike West  <mkwst@chromium.org>
44
45         [chromium] Unreviewed: Fix broken SVG-disabled build.
46         https://bugs.webkit.org/show_bug.cgi?id=108916
47
48         The new enum value CSSPropertyWebkitGridAutoFlow was introduced in
49         r141787, and accidentally left out of CSSParser::parseValue's big
50         switch. This causes problems in non-SVG builds.
51
52         * css/CSSParser.cpp:
53         (WebCore::CSSParser::parseValue):
54
55 2013-02-05  Tommy Widenflycht  <tommyw@google.com>
56
57         MediaStream API: Update RTCPeerConnections stream accessors to match the latest specification
58         https://bugs.webkit.org/show_bug.cgi?id=108179
59
60         Reviewed by Adam Barth.
61
62         http://dev.w3.org/2011/webrtc/editor/webrtc.html#interface-definition
63         The attributes localStreams and remoteStreams have been changes to the methods
64         getLocalStreams() and getRemoteStreams() which return a native array instead.
65
66         Existing tests updated to cover patch.
67
68         * CMakeLists.txt:
69         * GNUmakefile.list.am:
70         * Modules/mediastream/MediaStream.h:
71         (WebCore):
72         * Modules/mediastream/MediaStreamList.cpp: Removed.
73         * Modules/mediastream/MediaStreamList.h: Removed.
74         * Modules/mediastream/MediaStreamList.idl: Removed.
75         * Modules/mediastream/RTCPeerConnection.cpp:
76         (WebCore::RTCPeerConnection::RTCPeerConnection):
77         (WebCore::RTCPeerConnection::addStream):
78         (WebCore::RTCPeerConnection::removeStream):
79         (WebCore::RTCPeerConnection::getLocalStreams):
80         (WebCore::RTCPeerConnection::getRemoteStreams):
81         (WebCore::RTCPeerConnection::didAddRemoteStream):
82         (WebCore::RTCPeerConnection::didRemoveRemoteStream):
83         * Modules/mediastream/RTCPeerConnection.h:
84         (RTCPeerConnection):
85         * Modules/mediastream/RTCPeerConnection.idl:
86         * WebCore.gypi:
87
88 2013-02-05  Viatcheslav Ostapenko  <sl.ostapenko@samsung.com>
89
90         [Qt][EFL][WebGL] Webgl doesn't work on nvidia cards
91         https://bugs.webkit.org/show_bug.cgi?id=108059
92
93         Reviewed by Kenneth Rohde Christiansen.
94
95         Commit r138327 fixed repainting issues on mesa3d GL library by re-binding
96         texture to the window after every glXSwapBuffer. Unfortunatelly re-bind
97         breaks rendering on NVidia cards with NVidia propiertary drivers.
98         This change limits texture re-binding only for mesa3d GL library.
99
100         No new tests. HW specific fix.
101
102         * platform/graphics/surfaces/glx/GraphicsSurfaceGLX.cpp:
103         (WebCore::OffScreenRootWindow::isMesaGLX):
104         (OffScreenRootWindow):
105         (WebCore::GraphicsSurface::platformSwapBuffers):
106
107 2013-02-05  Praveen Jadhav  <praveen.j@samsung.com>
108
109         Floating point precision error in AudioPannerNode.
110         https://bugs.webkit.org/show_bug.cgi?id=106001
111
112         Reviewed by Kentaro Hara.
113
114         Specifications Update: 
115         https://dvcs.w3.org/hg/audio/rev/69a39a516e45
116
117         Conversion from double to float and back to double
118         results in precision error. Avoiding these conversions
119         will make sure that proper values are retained in the
120         parameters.
121
122         * Modules/webaudio/PannerNode.h:
123         (WebCore::PannerNode::refDistance):
124         (WebCore::PannerNode::setRefDistance):
125         (WebCore::PannerNode::maxDistance):
126         (WebCore::PannerNode::setMaxDistance):
127         (WebCore::PannerNode::rolloffFactor):
128         (WebCore::PannerNode::setRolloffFactor):
129         (WebCore::PannerNode::coneInnerAngle):
130         (WebCore::PannerNode::setConeInnerAngle):
131         (WebCore::PannerNode::coneOuterAngle):
132         (WebCore::PannerNode::setConeOuterAngle):
133         (WebCore::PannerNode::coneOuterGain):
134         (WebCore::PannerNode::setConeOuterGain):
135         * Modules/webaudio/PannerNode.idl:
136
137 2013-02-05  Kent Tamura  <tkent@chromium.org>
138
139         INPUT_MULTIPLE_FIELDS_UI: Use disabled attribute internally instead of readonly attribute
140         https://bugs.webkit.org/show_bug.cgi?id=108911
141
142         Reviewed by Kentaro Hara.
143
144         Use 'disabled' attribute for shadow elements for <input> with
145         multiple-fields UI instead of 'readonly' attribute because 'readonly'
146         attribute represents focusable-but-non-editable state in HTML though
147         we'd like to represent non-focusable-and-non-editable state.
148
149         The summary of changes:
150         - Use 'disabled' attribute instead of 'readonly' attribute for DateTimeFieldElement,
151         - Rename C++ functions for it,
152         - Call isFocusable instead of isReadOnly to check focusable state.
153
154         No new tests. This doesn't make user-visible behavior changes.
155
156         * css/html.css:
157         Replace [readonly] with [disabled] for sub-fields.
158         * html/shadow/DateTimeEditElement.cpp:
159         (DateTimeEditBuilder):
160         (WebCore::DateTimeEditBuilder::visitField):
161         (WebCore::DateTimeEditBuilder::shouldDayOfMonthFieldDisabled):
162         (WebCore::DateTimeEditBuilder::shouldHourFieldDisabled):
163         (WebCore::DateTimeEditBuilder::shouldMillisecondFieldDisabled):
164         (WebCore::DateTimeEditBuilder::shouldMinuteFieldDisabled):
165         (WebCore::DateTimeEditBuilder::shouldSecondFieldDisabled):
166         (WebCore::DateTimeEditBuilder::shouldYearFieldDisabled):
167         (WebCore::DateTimeEditElement::anyEditableFieldsHaveValues):
168         (WebCore::DateTimeEditElement::focusOnNextField): Use isFocusable.
169         (WebCore::DateTimeEditElement::focusOnPreviousField): Use isFocusable.
170         * html/shadow/DateTimeFieldElement.cpp:
171         (WebCore::DateTimeFieldElement::isFocusable):
172         (WebCore::DateTimeFieldElement::isDisabled):
173         (WebCore::DateTimeFieldElement::setDisabled):
174         * html/shadow/DateTimeFieldElement.h:
175         (DateTimeFieldElement): Make isFocusable public in order that
176         DateTimeEditElement can call it.
177         * html/shadow/DateTimeNumericFieldElement.cpp:
178         (WebCore::DateTimeNumericFieldElement::handleKeyboardEvent):
179         (WebCore::DateTimeNumericFieldElement::setEmptyValue):
180         * html/shadow/DateTimeSymbolicFieldElement.cpp:
181         (WebCore::DateTimeSymbolicFieldElement::setEmptyValue):
182
183 2013-02-05  Kentaro Hara  <haraken@chromium.org>
184
185         [V8] Reduce usage of deprecatedString() and deprecatedInteger()
186         https://bugs.webkit.org/show_bug.cgi?id=108909
187
188         Reviewed by Adam Barth.
189
190         By passing an Isolate parameter around, we can reduce usage of
191         deprecated methods.
192
193         No tests. No change in behavior.
194
195         * bindings/scripts/CodeGeneratorV8.pm:
196         (GenerateNormalAttrSetter):
197         (GenerateEventListenerCallback):
198         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
199         (WebCore::TestEventTargetV8Internal::addEventListenerCallback):
200         (WebCore::TestEventTargetV8Internal::removeEventListenerCallback):
201         * bindings/scripts/test/V8/V8TestObj.cpp:
202         (WebCore::TestObjV8Internal::addEventListenerCallback):
203         (WebCore::TestObjV8Internal::removeEventListenerCallback):
204         * bindings/v8/IDBBindingUtilities.cpp:
205         (WebCore::get):
206         (WebCore::set):
207         (WebCore::getNthValueOnKeyPath):
208         (WebCore::canInjectNthValueOnKeyPath):
209         (WebCore::ensureNthValueOnKeyPath):
210         (WebCore::createIDBKeyFromScriptValueAndKeyPath):
211         (WebCore::injectIDBKeyIntoScriptValue):
212         (WebCore::canInjectIDBKeyIntoScriptValue):
213         * bindings/v8/NPV8Object.cpp:
214         (WebCore::createValueListFromVariantArgs):
215         (_NPN_Invoke):
216         (_NPN_InvokeDefault):
217         (_NPN_SetProperty):
218         (_NPN_Construct):
219         * bindings/v8/ScriptController.cpp:
220         (WebCore::ScriptController::compileAndRunScript):
221         * bindings/v8/ScriptProfiler.cpp:
222         (WebCore):
223         (WebCore::ScriptProfiler::takeHeapSnapshot):
224         * bindings/v8/ScriptSourceCode.cpp:
225         (WebCore::ScriptSourceCode::compileScript):
226         * bindings/v8/ScriptSourceCode.h:
227         (ScriptSourceCode):
228         * bindings/v8/V8LazyEventListener.cpp:
229         (WebCore::V8LazyEventListener::prepareListenerObject):
230         * bindings/v8/V8NPObject.cpp:
231         (WebCore::npObjectInvokeImpl):
232         (WebCore::npObjectGetProperty):
233         * bindings/v8/V8NPUtils.cpp:
234         (WebCore::convertNPVariantToV8Object):
235         * bindings/v8/V8NPUtils.h:
236         (WebCore):
237         * bindings/v8/V8Utilities.cpp:
238         (WebCore::createHiddenDependency):
239         (WebCore::removeHiddenDependency):
240         (WebCore::transferHiddenDependency):
241         * bindings/v8/V8Utilities.h:
242         (WebCore):
243         * bindings/v8/WorkerScriptController.cpp:
244         (WebCore::WorkerScriptController::evaluate):
245         * bindings/v8/custom/V8DOMWindowCustom.cpp:
246         (WebCore::V8DOMWindow::addEventListenerCallback):
247         (WebCore::V8DOMWindow::removeEventListenerCallback):
248
249 2013-02-04  Dean Jackson  <dino@apple.com>
250
251         [Mac] Captions menu should indicate language and type of track
252         https://bugs.webkit.org/show_bug.cgi?id=108882
253
254         Reviewed by Eric Carlson.
255
256         On Mac, we want a specific format for menu items in a caption list. Since
257         other ports might want different formats, move the generation of the label
258         into CaptionsUserPreferences where it can be overridden.
259
260         This required CaptionsUserPreferences to become public on the PageGroup, so
261         it could be used when creating the menu. Also, since CaptionsUserPreferences
262         was hidden on Mountain Lion and below, be a little more specific about
263         which pieces can be seen on which builds.
264
265         Covered by exisiting media/video-controls-captions-trackmenu tests.
266
267         * English.lproj/Localizable.strings: Remove textTrackClosedCaptionsText.
268         * html/shadow/MediaControlElements.cpp:
269         (WebCore::MediaControlClosedCaptionsTrackListElement::rebuildTrackListMenu): Build only
270             one section and get the track's display name from the user preferences.
271         * page/CaptionUserPreferences.h:
272         (WebCore::CaptionUserPreferences::displayNameForTrack): Default implementation of
273             virtual function that provides a label for a captions menu item.
274         * page/CaptionUserPreferencesMac.h: Add the new virtual function, and expose just
275             a bit of this class outside 10.9 builds.
276         * page/CaptionUserPreferencesMac.mm:
277         (WebCore::CaptionUserPreferencesMac::CaptionUserPreferencesMac): Guard features for system version.
278         (WebCore::CaptionUserPreferencesMac::~CaptionUserPreferencesMac): Ditto.
279         (WebCore::CaptionUserPreferencesMac::displayNameForTrack): New OS X-specific method that
280             returns a string for the menu label.
281         * page/PageGroup.cpp:
282         (WebCore::PageGroup::captionPreferences): Unguard for system version.
283         * page/PageGroup.h: Make captionPreferences public.
284         * platform/LocalizedStrings.cpp: Remove textTrackClosedCaptionsText - not needed any more.
285         * platform/LocalizedStrings.h: Remove textTrackClosedCaptionsText.
286
287 2013-02-04  Kentaro Hara  <haraken@chromium.org>
288
289         [V8] Pass an Isolate to V8DOMConfiguration
290         https://bugs.webkit.org/show_bug.cgi?id=108900
291
292         Reviewed by Adam Barth.
293
294         No tests. No change in behavior.
295
296         * bindings/scripts/CodeGeneratorV8.pm:
297         (GenerateHeader):
298         (GenerateImplementation):
299         (GenerateToV8Converters):
300         * bindings/scripts/test/V8/V8Float64Array.cpp:
301         (WebCore::ConfigureV8Float64ArrayTemplate):
302         (WebCore::V8Float64Array::createWrapper):
303         * bindings/scripts/test/V8/V8Float64Array.h:
304         (WebCore::V8Float64Array::installPerContextProperties):
305         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
306         (WebCore::ConfigureV8TestActiveDOMObjectTemplate):
307         (WebCore::V8TestActiveDOMObject::createWrapper):
308         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
309         (WebCore::V8TestActiveDOMObject::installPerContextProperties):
310         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
311         (WebCore::ConfigureV8TestCustomNamedGetterTemplate):
312         (WebCore::V8TestCustomNamedGetter::createWrapper):
313         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
314         (WebCore::V8TestCustomNamedGetter::installPerContextProperties):
315         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
316         (WebCore::ConfigureV8TestEventConstructorTemplate):
317         (WebCore::V8TestEventConstructor::createWrapper):
318         * bindings/scripts/test/V8/V8TestEventConstructor.h:
319         (WebCore::V8TestEventConstructor::installPerContextProperties):
320         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
321         (WebCore::ConfigureV8TestEventTargetTemplate):
322         (WebCore::V8TestEventTarget::createWrapper):
323         * bindings/scripts/test/V8/V8TestEventTarget.h:
324         (WebCore::V8TestEventTarget::installPerContextProperties):
325         * bindings/scripts/test/V8/V8TestException.cpp:
326         (WebCore::ConfigureV8TestExceptionTemplate):
327         (WebCore::V8TestException::createWrapper):
328         * bindings/scripts/test/V8/V8TestException.h:
329         (WebCore::V8TestException::installPerContextProperties):
330         * bindings/scripts/test/V8/V8TestInterface.cpp:
331         (WebCore::ConfigureV8TestInterfaceTemplate):
332         (WebCore::V8TestInterface::createWrapper):
333         * bindings/scripts/test/V8/V8TestInterface.h:
334         (WebCore::V8TestInterface::installPerContextProperties):
335         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
336         (WebCore::ConfigureV8TestMediaQueryListListenerTemplate):
337         (WebCore::V8TestMediaQueryListListener::createWrapper):
338         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
339         (WebCore::V8TestMediaQueryListListener::installPerContextProperties):
340         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
341         (WebCore::ConfigureV8TestNamedConstructorTemplate):
342         (WebCore::V8TestNamedConstructor::createWrapper):
343         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
344         (WebCore::V8TestNamedConstructor::installPerContextProperties):
345         * bindings/scripts/test/V8/V8TestNode.cpp:
346         (WebCore::ConfigureV8TestNodeTemplate):
347         (WebCore::V8TestNode::createWrapper):
348         * bindings/scripts/test/V8/V8TestNode.h:
349         (WebCore::V8TestNode::installPerContextProperties):
350         * bindings/scripts/test/V8/V8TestObj.cpp:
351         (WebCore::ConfigureV8TestObjTemplate):
352         (WebCore::V8TestObj::installPerContextProperties):
353         (WebCore::V8TestObj::createWrapper):
354         * bindings/scripts/test/V8/V8TestObj.h:
355         (V8TestObj):
356         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
357         (WebCore::ConfigureV8TestOverloadedConstructorsTemplate):
358         (WebCore::V8TestOverloadedConstructors::createWrapper):
359         * bindings/scripts/test/V8/V8TestOverloadedConstructors.h:
360         (WebCore::V8TestOverloadedConstructors::installPerContextProperties):
361         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
362         (WebCore::ConfigureV8TestSerializedScriptValueInterfaceTemplate):
363         (WebCore::V8TestSerializedScriptValueInterface::createWrapper):
364         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
365         (WebCore::V8TestSerializedScriptValueInterface::installPerContextProperties):
366         * bindings/v8/V8DOMConfiguration.cpp:
367         (WebCore::V8DOMConfiguration::batchConfigureAttributes):
368         (WebCore::V8DOMConfiguration::batchConfigureConstants):
369         (WebCore::V8DOMConfiguration::batchConfigureCallbacks):
370         (WebCore::V8DOMConfiguration::configureTemplate):
371         * bindings/v8/V8DOMConfiguration.h:
372         (V8DOMConfiguration):
373         (WebCore::V8DOMConfiguration::configureAttribute):
374         * bindings/v8/V8DOMWindowShell.cpp:
375         (WebCore::V8DOMWindowShell::installDOMWindow):
376
377 2013-02-04  Kentaro Hara  <haraken@chromium.org>
378
379         [V8] Clean up CodeGeneratorV8.pm by introducing HasCustom{Getter,Setter,Method}
380         https://bugs.webkit.org/show_bug.cgi?id=108896
381
382         Reviewed by Adam Barth.
383
384         No tests. No change in generated code.
385
386         * bindings/scripts/CodeGeneratorV8.pm:
387         (GenerateHeader):
388         (HasCustomGetter):
389         (HasCustomSetter):
390         (HasCustomMethod):
391         (GetFunctionTemplateCallbackName):
392         (GenerateSingleBatchedAttribute):
393         (GenerateImplementation):
394         (RequiresCustomSignature):
395
396 2013-02-04  Kent Tamura  <tkent@chromium.org>
397
398         Fix crash by <select> type change on focus
399         https://bugs.webkit.org/show_bug.cgi?id=108830
400
401         Reviewed by Abhishek Arya.
402
403         Test: fast/forms/select/select-change-type-on-focus.html
404
405         * html/HTMLSelectElement.cpp:
406         (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
407         focus() calls may change the renderer type.
408
409 2013-02-04  Kentaro Hara  <haraken@chromium.org>
410
411         [V8] Pass an Isolate to opaqueRootForGC()
412         https://bugs.webkit.org/show_bug.cgi?id=108886
413
414         Reviewed by Adam Barth.
415
416         No tests. No change in behavior.
417
418         * bindings/scripts/CodeGeneratorV8.pm:
419         (GenerateOpaqueRootForGC):
420         (GenerateHeader):
421         * bindings/v8/V8GCController.cpp:
422         (WebCore::V8GCController::opaqueRootForGC):
423         * bindings/v8/WrapperTypeInfo.h:
424         (WebCore):
425         (WebCore::WrapperTypeInfo::opaqueRootForGC):
426         * bindings/v8/custom/V8NodeListCustom.cpp:
427         (WebCore::V8NodeList::opaqueRootForGC):
428
429 2013-02-04  Wei James  <james.wei@intel.com>
430
431         Heap-buffer-overflow in WebCore::AudioBufferSourceNode::process
432         https://bugs.webkit.org/show_bug.cgi?id=108515
433
434         After calling setBuffer() with a buffer having a different number of
435         channels, there can in rare cases be a slight delay before the output
436         bus is updated to the new number of channels because of use of
437         tryLocks() in the context's updating system.
438         In this case, if the the buffer has just been changed and we're
439         not quite ready yet then just output silence.
440
441         Reviewed by Chris Rogers.
442
443         * Modules/webaudio/AudioBufferSourceNode.cpp:
444         (WebCore::AudioBufferSourceNode::process):
445         (WebCore::AudioBufferSourceNode::renderFromBuffer):
446
447 2013-02-04  James Simonsen  <simonjam@chromium.org>
448
449         [Chromium] Add a signal for when the body is inserted in the document
450         https://bugs.webkit.org/show_bug.cgi?id=108725
451
452         Reviewed by Adam Barth.
453
454         This is an important signal for resource scheduling. We know we have enough to paint something,
455         so we can start kicking off image preloads.
456
457         Test: Chromium webkit_unit_tests
458
459         * html/parser/HTMLConstructionSite.cpp:
460         (WebCore::HTMLConstructionSite::insertHTMLBodyElement):
461         * loader/FrameLoaderClient.h:
462         (FrameLoaderClient):
463         (WebCore::FrameLoaderClient::dispatchWillInsertBody):
464
465 2013-02-04  Benjamin Poulain  <bpoulain@apple.com>
466
467         Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals
468         https://bugs.webkit.org/show_bug.cgi?id=108741
469
470         Reviewed by Tony Chang.
471
472         Move suspendAnimations and resumeAnimations to group all the animation related
473         code together.
474
475         Add support for numberOfActiveAnimations, similarily to the feature previously defined
476         in TestRunner.
477
478         * testing/Internals.cpp:
479         (WebCore::Internals::numberOfActiveAnimations):
480         (WebCore):
481         (WebCore::Internals::suspendAnimations):
482         (WebCore::Internals::resumeAnimations):
483         * testing/Internals.h:
484         (Internals):
485         * testing/Internals.idl:
486
487 2013-02-04  Nayan Kumar K  <nayankk@motorola.com>
488
489         [WEBGL] Rename WEBKIT_WEBGL_compressed_texture_s3tc to WEBGL_compressed_texture_s3tc
490         https://bugs.webkit.org/show_bug.cgi?id=108866
491
492         Reviewed by Kenneth Russell.
493
494         WEBGL_compressed_texture_s3tc is one of the community approved WebGL extension.
495         Hence remove the vendor prefix from WEBKIT_WEBGL_compressed_texture_s3tc.
496         Specification: http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc/
497
498         No tests currently present to test WEBKIT_WEBGL_compressed_texture_s3tc.
499
500         * bindings/js/JSWebGLRenderingContextCustom.cpp:
501         (WebCore::toJS):
502         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
503         (WebCore::toV8Object):
504         * html/canvas/WebGLCompressedTextureS3TC.cpp:
505         (WebCore::WebGLCompressedTextureS3TC::getName):
506         * html/canvas/WebGLExtension.h:
507         * html/canvas/WebGLRenderingContext.cpp:
508         (WebCore):
509         (WebCore::WebGLRenderingContext::getExtension):
510
511 2013-02-04  Nayan Kumar K  <nayankk@motorola.com>
512
513         [WEBGL] Rename WEBKIT_WEBGL_lose_context to WEBGL_lose_context.
514         https://bugs.webkit.org/show_bug.cgi?id=108694
515
516         Reviewed by Kenneth Russell.
517
518         WEBGL_lose_context is one of the community approved WebGL extension.
519         Hence remove the vendor prefix from WEBKIT_WEBGL_lose_context extension.
520         Spefication: http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/
521
522         Tests already exists, modified them to verify the change in extension name.
523
524         * bindings/js/JSWebGLRenderingContextCustom.cpp:
525         (WebCore::toJS):
526         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
527         (WebCore::toV8Object):
528         * html/canvas/WebGLExtension.h:
529         * html/canvas/WebGLLoseContext.cpp:
530         (WebCore::WebGLLoseContext::getName):
531         * html/canvas/WebGLRenderingContext.cpp:
532         (WebCore):
533         (WebCore::WebGLRenderingContext::getExtension):
534         (WebCore::WebGLRenderingContext::getSupportedExtensions):
535
536 2013-02-04  Dean Jackson  <dino@apple.com>
537
538         Default element styles are not always collected for sharing detection
539         https://bugs.webkit.org/show_bug.cgi?id=108404
540
541         Reviewed by Antti Koivisto.
542
543         The method ensureDefaultStyleSheetsForElement is run as we add elements
544         to the document. This may update the defaultStyle of the document, but
545         does not recollect any changes into the StyleResolver. This means that
546         style sharing might be overly ambitious, thinking it can share a style
547         for an element which was matched in the new rules. This showed up most
548         often in the Shadow Root for media elements, which would add a set of
549         style rules, but the shadow children would sometimes share styles even
550         when they shouldn't.
551
552         The fix is to detect if we need to collect after adding a
553         style for an element. This might cause a little more work, but
554         in my testing it doesn't happen very often.
555
556         Unfortunately it is hard to get a reproducible test for this.
557
558         * css/CSSDefaultStyleSheets.cpp:
559         (WebCore::CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement): As we load in
560             styles, keep track of whether or not we change the default style.
561         * css/CSSDefaultStyleSheets.h:
562         (CSSDefaultStyleSheets): New boolean parameter indicating if the style has changed.
563         * css/StyleResolver.cpp:
564         (WebCore::StyleResolver::styleForElement): Collect features if the element
565             caused the default style to update.
566         (WebCore::StyleResolver::collectFeatures): Protect for null in updates.
567
568 2013-02-04  Jun Jiang  <jun.a.jiang@intel.com>
569
570         Fix the issue that some possible source formats are ignored for float textures in texture packing for CG port
571         https://bugs.webkit.org/show_bug.cgi?id=108812
572
573         Reviewed by Kenneth Russell.
574
575         Already covered by latest WebGL conformance test.
576
577         * platform/graphics/GraphicsContext3D.cpp:
578         (WebCore):
579
580 2013-02-04  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
581
582         [EFL] Remove needless local variables in LocalizedStringsEfl.cpp
583         https://bugs.webkit.org/show_bug.cgi?id=108869
584
585         Reviewed by Kentaro Hara.
586
587         fromUTF8() returns static String. So, we don't need to use needless local variables.
588
589         * platform/efl/LocalizedStringsEfl.cpp:
590         (WebCore::contextMenuItemTagCopy):
591         (WebCore::contextMenuItemTagDelete):
592         (WebCore::contextMenuItemTagSelectAll):
593         (WebCore::contextMenuItemTagGoBack):
594         (WebCore::contextMenuItemTagGoForward):
595         (WebCore::contextMenuItemTagStop):
596         (WebCore::contextMenuItemTagCut):
597         (WebCore::contextMenuItemTagPaste):
598         (WebCore::contextMenuItemTagBold):
599         (WebCore::contextMenuItemTagItalic):
600         (WebCore::contextMenuItemTagUnderline):
601
602 2013-02-04  Jun Jiang  <jun.a.jiang@intel.com>
603
604         WebGL: Move the format conversion for 16-bit per channel formats into Core Graphics port only
605         https://bugs.webkit.org/show_bug.cgi?id=108304
606
607         Reviewed by Kenneth Russell.
608
609         Since the 16-bit per channel formats are only used for Core Graphics port in WebGL and not a standard to represent any file format that is widely used 
610         for each platform, it is better to limit and hide this kinds of information and processing in CG specific code only. 
611         It can make the code more clear and reduce the binary size for both CG port and non-CG port.
612
613         Already covered by current tests.
614
615         * platform/graphics/GraphicsContext3D.cpp:
616         (WebCore):
617         * platform/graphics/GraphicsContext3D.h:
618         (GraphicsContext3D):
619         (WebCore::GraphicsContext3D::srcFormatComeFromDOMElementOrImageData):
620         (ImageExtractor):
621         * platform/graphics/cg/GraphicsContext3DCG.cpp:
622         (WebCore):
623         (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
624
625 2013-02-04  Dean Jackson  <dino@apple.com>
626
627         Allow TextTracks to be marked as closed captions
628         https://bugs.webkit.org/show_bug.cgi?id=108856
629
630         Reviewed by Darin Adler.
631
632         While this isn't exposed directly in markup, some platform media frameworks can
633         provide indication that a caption track is a closed caption. Expose such a flag
634         on TextTrack and platforms can show a different UI if they want to.
635
636         No tests - this isn't used elsewhere yet, nor exposed to the DOM.
637
638         * html/track/TextTrack.cpp:
639         (WebCore::TextTrack::TextTrack): Initialise new member.
640         * html/track/TextTrack.h:
641         (WebCore::TextTrack::isClosedCaptions): New member variable.
642         (WebCore::TextTrack::setIsClosedCaptions):
643
644 2013-02-04  Chris Hopman  <cjhopman@chromium.org>
645
646         Make moveCaretTowardsWindowPoint not snap to the beginning/end when moved above/below editable
647         https://bugs.webkit.org/show_bug.cgi?id=107850
648
649         Reviewed by Ojan Vafai.
650
651         On Android, EditingBehavior::shouldMoveCaret[...] controls the
652         behavior of insertion handles. This change adds a new Android specific
653         editing behavior type.
654
655         The new EditingBehavior is the same as EditingUnixBehavior except for
656         EditingBehavior::shouldMoveCaret[...]. This new behavior fixes
657         WebFrame::moveCaretTowardsWindowPoint to not span to the
658         beginning/end.
659
660         * editing/EditingBehavior.h:
661         (WebCore::EditingBehavior::shouldMoveCaretToHorizontalBoundaryWhenPastTopOrBottom):
662         (WebCore::EditingBehavior::shouldAllowSpellingSuggestionsWithoutSelection):
663         (WebCore::EditingBehavior::shouldNavigateBackOnBackspace):
664         * editing/EditingBehaviorTypes.h:
665         * page/Settings.cpp:
666         (WebCore):
667         (WebCore::editingBehaviorTypeForPlatform):
668         * testing/InternalSettings.cpp:
669         (WebCore::InternalSettings::setEditingBehavior):
670
671 2013-02-04  Kent Tamura  <tkent@chromium.org>
672
673         INPUT_MULTIPLE_FIELDS_UI: Focus order is not controllable by tabIndex attribute on <input>
674         https://bugs.webkit.org/show_bug.cgi?id=108447
675
676         Reviewed by Hajime Morita.
677
678         We make <input> elements with the multiple-fields UI focusable.
679          - However, we don't want to change the existing focus behavior for
680            multiple-fields <input>. We'd like to focus on the last sub-field of
681            an<input> with Shift + TAB focus navigation, and focus on the first
682            sub-field of the <input> otherwise. So, we move focus immediately
683            after the <input> gets focus.
684          - We don't need the isFocusableByClickOnLabel hack any more. <input>
685            elements with the multiple-fields UI are mouse-focusable.
686
687         Test: fast/forms/time-multiple-fields/time-multiple-fields-tabindex.html
688
689         * html/InputType.h:
690         (InputType): Add FocusDirection argument to handleFocusEvent, and remove
691         unnecessary isFocusableByClickOnLabel and focus.
692         * html/InputType.cpp:
693         (WebCore::InputType::handleFocusEvent): Ditto.
694         * html/PasswordInputType.cpp:
695         (WebCore::PasswordInputType::handleFocusEvent): Follow the argument change.
696         * html/PasswordInputType.h:
697         (PasswordInputType): Ditto.
698
699         * html/BaseMultipleFieldsDateAndTimeInputType.cpp:
700         (WebCore::BaseMultipleFieldsDateAndTimeInputType::handleFocusEvent):
701         If this element gets focus by FocusDirectionBackward (it means the focus
702         is moved from the first sub-field of the element,) move the focus
703         backward once more. Otherwise, we focus on the first sub-filed of the
704         element.
705         (WebCore::BaseMultipleFieldsDateAndTimeInputType::isKeyboardFocusable):
706         Make this keyboard-focusable. We have a wrong test to ensure read-only
707         input does NOT get focus. We'll address it later.
708         (WebCore::BaseMultipleFieldsDateAndTimeInputType::isMouseFocusable):
709         Make this mouse-focusable.
710         * html/BaseMultipleFieldsDateAndTimeInputType.h:
711         (BaseMultipleFieldsDateAndTimeInputType):
712
713         * html/HTMLInputElement.h:
714         (HTMLInputElement): Remove defaultFocus, focus, and isFocusableByClickOnLabel.
715         Add missing OVERRIDE to handleFocusEvent.
716         * html/HTMLInputElement.cpp: Remove unnecessary functions.
717         (WebCore::HTMLInputElement::handleFocusEvent):
718         Pass FocusDirection value to InputTYpe::handleFocusEvent.
719
720         * html/HTMLLabelElement.cpp:
721         (WebCore::HTMLLabelElement::defaultEventHandler):
722         Use isMouseFocusable().
723         * html/HTMLElement.cpp: Remove unnecessary isFocusableByClickOnLabel.
724         * html/HTMLElement.h: Ditto.
725
726 2013-02-04  Seulgi Kim  <seulgikim@company100.net>
727
728         Coordinated Graphics: crash in TiledBackingStore::adjustForContentsRect
729         https://bugs.webkit.org/show_bug.cgi?id=107639
730
731         Reviewed by Kenneth Rohde Christiansen.
732
733         In TiledBackingStore::adjustForContentsRect method, inflating is not
734         needed when there is no intersections between the cover/keep rect and
735         the content rect.
736
737         No new tests, no change in functionality.
738
739         * platform/graphics/TiledBackingStore.cpp:
740         (WebCore::TiledBackingStore::adjustForContentsRect):
741
742 2013-02-04  Stephen White  <senorblanco@chromium.org>
743
744         [skia] Remove use of SkSingleInputImageFilter.
745         https://bugs.webkit.org/show_bug.cgi?id=108867
746
747         Reviewed by James Robinson.
748
749         This class is but a hollow shell of its former self, and has
750         been removed in Skia.
751
752         Covered by existing tests in css3/filters.
753
754         * platform/graphics/filters/skia/DropShadowImageFilter.cpp:
755         (WebCore::DropShadowImageFilter::DropShadowImageFilter):
756         (WebCore::DropShadowImageFilter::onFilterImage):
757         * platform/graphics/filters/skia/DropShadowImageFilter.h:
758
759 2013-01-31  Kentaro Hara  <haraken@chromium.org>
760
761         Implement WheelEvent::deltaMode
762         https://bugs.webkit.org/show_bug.cgi?id=108455
763
764         Reviewed by Adam Barth.
765
766         Per the spec, WheelEvent::deltaMode should return
767         DOM_DELTA_PIXEL or DOM_DELTA_LINE or DOM_DELTA_PAGE.
768
769         Spec: http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
770         https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm#constructor-wheelevent
771
772         Test: fast/event/wheel-event-constructor.html
773
774         * dom/WheelEvent.cpp:
775         (WebCore::WheelEventInit::WheelEventInit):
776         (WebCore::WheelEvent::WheelEvent):
777         (WebCore::WheelEvent::initWheelEvent):
778         (WebCore::deltaMode):
779         * dom/WheelEvent.h:
780         (WheelEventInit):
781         (WebCore::WheelEvent::create):
782         (WebCore::WheelEvent::deltaMode):
783         (WheelEvent):
784         * dom/WheelEvent.idl:
785         * page/EventHandler.cpp:
786         (WebCore::wheelGranularityToScrollGranularity):
787
788 2013-02-04  Gustavo Noronha Silva  <gns@gnome.org>
789
790         [Soup] Remove duplicate setting of first party for cookies
791         https://bugs.webkit.org/show_bug.cgi?id=108814
792
793         Reviewed by Martin Robinson.
794
795         Covered by existing tests.
796
797         * platform/network/soup/ResourceHandleSoup.cpp:
798         (WebCore::createSoupMessageForHandleAndRequest): there is no need to set
799         the first party for cookies here, since that is already done in
800         ResourceRequest::updateSoupMessage, which is called a few lines before.
801
802 2013-02-04  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
803
804         [GStreamer][Soup] Let GStreamer provide the buffer data is downloaded to, to avoid copying
805         https://bugs.webkit.org/show_bug.cgi?id=105552
806
807         Reviewed by Philippe Normand.
808
809         Makes it possible for the GStreamer media backend to provide the buffer to which
810         the Soup networking backend will use to download data to. This makes copying
811         memory unnecessary when ResourceHandle hands data over to the media player's
812         StreamingClient. Thanks to Dan Winship for help designing the interface.
813
814         No behaviour change, covered by existing tests.
815
816         * platform/graphics/gstreamer/GStreamerVersioning.cpp:
817         (createGstBufferForData): New helper to create a GstBuffer when
818         we have a data pointer and a length.
819         (getGstBufferSize): Abstract obtaining the size of the buffer, so the code
820         is cleaner while still working for both GST 0.10 and 1.0.
821         (setGstBufferSize): Ditto, but for setting the size.
822         (getGstBufferDataPointer): Ditto, but for grabbing the data pointer.
823         (mapGstBuffer): Convenience method to take care of mapping the buffer so that
824         we can provide the data pointer to ResourceHandle.
825         (unmapGstBuffer): Convenience method which takes care of unmapping the buffer
826         and properly freeing the GstMapInfo.
827         * platform/graphics/gstreamer/GStreamerVersioning.h:
828         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
829         (StreamingClient): New methods.
830         (_WebKitWebSrcPrivate): We now store the GstBuffer we provided the data pointer from
831         so we can later unmap it and push it to the pipeline.
832         (webKitWebSrcDispose): Deal with the GstBuffer in case it exists when the source is
833         destroyed.
834         (webKitWebSrcStop): Also clear the GstBuffer in this case.
835         (StreamingClient::didReceiveData): Handle the hand-over of the buffer.
836         (StreamingClient::getBuffer): Provide ResourceHandle with a new GstBuffer's data pointer.
837         * platform/network/ResourceHandleClient.h:
838         (ResourceHandleClient):
839         (WebCore::ResourceHandleClient::ResourceHandleClient): Constructor to initialize the buffer
840         member variable to 0.
841         (WebCore::ResourceHandleClient::~ResourceHandleClient): Destructor to free the buffer if it
842         has been allocated.
843         (WebCore::ResourceHandleClient::getBuffer): Default implementation which returns a
844         newly allocated char pointer.
845         * platform/network/ResourceHandleInternal.h:
846         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
847         (ResourceHandleInternal): Store actual buffer size, which is no longer a constant.
848         * platform/network/soup/ResourceHandleSoup.cpp:
849         (WebCore::cleanupSoupRequestOperation): Clear the buffer pointer, the life-cycle of the
850         buffer is handled by the ResourceHandleClient.
851         (WebCore::nextMultipartResponsePartCallback): Get a new buffer from the client before reading.
852         (WebCore::sendRequestCallback): Ditto.
853         (WebCore::readCallback): Ditto.
854
855 2013-02-04  Mark Pilgrim  <pilgrim@chromium.org>
856
857         [Chromium] Move WorkerContextProxy to WebCore
858         https://bugs.webkit.org/show_bug.cgi?id=108847
859
860         Reviewed by Adam Barth.
861
862         Part of a larger refactoring series; see tracking bug 106829.
863
864         * WebCore.gyp/WebCore.gyp:
865         * WebCore.gypi:
866         * workers/chromium: Added.
867         * workers/chromium/WorkerContextProxyChromium.cpp: Added.
868         (WebCore):
869         (WebCore::setWorkerContextProxyCreateFunction):
870         (WebCore::WorkerContextProxy::create):
871         * workers/chromium/WorkerContextProxyChromium.h: Added.
872         (WebCore):
873
874 2013-02-04  Dima Gorbik  <dgorbik@apple.com>
875
876         WebVTT <i>, <b> and <u> elements should have default styles
877         https://bugs.webkit.org/show_bug.cgi?id=107214
878
879         Reviewed by Darin Adler.
880
881         Added default styles for basic webvtt object types.
882
883         Test: media/track/track-css-matching-default.html
884
885         * css/mediaControls.css:
886         (video::-webkit-media-text-track-container b):
887         (video::-webkit-media-text-track-container u):
888         (video::-webkit-media-text-track-container i):
889
890 2013-02-04  Abhishek Arya  <inferno@chromium.org>
891
892         Add ASSERT_WITH_SECURITY_IMPLICATION to detect out of bounds access
893         https://bugs.webkit.org/show_bug.cgi?id=108668
894
895         Reviewed by Eric Seidel.
896
897         * bindings/v8/SerializedScriptValue.cpp:
898         * css/CSSCalculationValue.cpp:
899         (WebCore::CSSCalcExpressionNodeParser::parseCalc):
900         * css/CSSImageSetValue.cpp:
901         (WebCore::CSSImageSetValue::fillImageSet):
902         (WebCore::CSSImageSetValue::customCssText):
903         * css/CSSParserValues.h:
904         (WebCore::CSSParserString::operator[]):
905         * css/CSSValueList.h:
906         (WebCore::CSSValueListInspector::item):
907         * css/StyleSheetContents.cpp:
908         (WebCore::StyleSheetContents::ruleAt):
909         (WebCore::StyleSheetContents::wrapperInsertRule):
910         (WebCore::StyleSheetContents::wrapperDeleteRule):
911         * dom/Document.cpp:
912         (WebCore::Document::processArguments):
913         * dom/Element.cpp:
914         (WebCore::Element::removeAttributeInternal):
915         * dom/ElementAttributeData.cpp:
916         (WebCore::ElementAttributeData::removeAttribute):
917         * dom/ElementAttributeData.h:
918         (WebCore::ElementAttributeData::attributeItem):
919         * dom/SpaceSplitString.h:
920         (WebCore::SpaceSplitStringData::operator[]):
921         (WebCore::SpaceSplitString::operator[]):
922         * editing/TextIterator.cpp:
923         (WebCore::TextIterator::characterAt):
924         * html/HTMLFormElement.cpp:
925         (WebCore::HTMLFormElement::removeFormElement):
926         * html/HTMLSelectElementWin.cpp:
927         (WebCore::HTMLSelectElement::platformHandleKeydownEvent):
928         * html/canvas/WebGLRenderingContext.cpp:
929         (WebCore):
930         * html/parser/HTMLFormattingElementList.cpp:
931         (WebCore::HTMLFormattingElementList::swapTo):
932         * inspector/InspectorStyleSheet.cpp:
933         (WebCore::InspectorStyleSheet::styleSheetTextWithChangedStyle):
934         * inspector/InspectorStyleTextEditor.cpp:
935         (WebCore::InspectorStyleTextEditor::replaceProperty):
936         * inspector/InspectorValues.cpp:
937         (WebCore::InspectorArrayBase::get):
938         * page/WindowFeatures.cpp:
939         (WebCore::WindowFeatures::WindowFeatures):
940         * platform/audio/AudioArray.h:
941         (WebCore::AudioArray::at):
942         * platform/audio/AudioFIFO.cpp:
943         (WebCore::AudioFIFO::findWrapLengths):
944         * platform/graphics/GlyphPage.h:
945         (WebCore::GlyphPage::glyphDataForIndex):
946         (WebCore::GlyphPage::glyphAt):
947         (WebCore::GlyphPage::setGlyphDataForIndex):
948         * platform/graphics/TextRun.h:
949         (WebCore::TextRun::operator[]):
950         (WebCore::TextRun::data8):
951         (WebCore::TextRun::data16):
952         * platform/graphics/harfbuzz/HarfBuzzShaper.cpp:
953         (WebCore::HarfBuzzShaper::setDrawRange):
954         * platform/graphics/openvg/TiledImageOpenVG.cpp:
955         (WebCore::TiledImageOpenVG::setTile):
956         (WebCore::TiledImageOpenVG::tile):
957         * platform/image-decoders/ico/ICOImageDecoder.cpp:
958         (WebCore::ICOImageDecoder::decodeAtIndex):
959         (WebCore::ICOImageDecoder::imageTypeAtIndex):
960         * platform/text/QuotedPrintable.cpp:
961         (WebCore::lengthOfLineEndingAtIndex):
962         * platform/text/SegmentedString.cpp:
963         (WebCore::SegmentedString::advance):
964         * platform/win/WebCoreTextRenderer.cpp:
965         (WebCore::doDrawTextAtPoint):
966         * rendering/InlineTextBox.cpp:
967         (WebCore::InlineTextBox::paint):
968         (WebCore::InlineTextBox::paintSelection):
969
970 2013-02-04  Nate Chapin  <japhet@chromium.org>
971
972         REGRESSION (r137607): Loading of archives as substitute data is broken
973         https://bugs.webkit.org/show_bug.cgi?id=108589
974
975         Reviewed by Alexey Proskuryakov.
976
977         * loader/MainResourceLoader.cpp:
978         (WebCore::MainResourceLoader::resourceData): Return the content from
979             SubstituteData as mainResourceData if present.
980
981 2013-02-04  Julien Chaffraix  <jchaffraix@webkit.org>
982
983         [CSS Grid Layout] Heap-buffer-overflow in std::sort
984         https://bugs.webkit.org/show_bug.cgi?id=108834
985
986         Reviewed by Abhishek Arya.
987
988         Test: fast/css-grid-layout/grid-strict-ordering-crash.html
989
990         * rendering/RenderGrid.cpp:
991         (WebCore::sortByGridTrackGrowthPotential):
992         The std::sort documentation says that this function should define a *strict* weak ordering. Fixed the strict
993         part of the ordering. Also moved the function definition next to where it is needed and made the GridTrack
994         argument const (as it shouldn't modify them or std::sort will misbehave).
995
996         * rendering/RenderGrid.cpp:
997         (WebCore::sortByGridTrackGrowthPotential):
998         (WebCore):
999
1000 2013-02-04  Igor Oliveira  <igor.o@sisa.samsung.com>
1001
1002         [Texmap] Implement BGRA swizzling detection
1003         https://bugs.webkit.org/show_bug.cgi?id=81103
1004
1005         For OpenGLES if the extension EXT_texture_format_BGRA8888 is supported
1006         the internal and external formats need to be BGRA.
1007
1008         Reviewed by Noam Rosenthal.
1009
1010         * platform/graphics/texmap/TextureMapperGL.cpp:
1011         (WebCore):
1012         (WebCore::driverSupportsExternalTextureBGRA):
1013         (WebCore::driverSupportsSubImage):
1014         (WebCore::BitmapTextureGL::didReset):
1015
1016 2013-02-04  Dima Gorbik  <dgorbik@apple.com>
1017
1018         class="cue" is getting some default style
1019         https://bugs.webkit.org/show_bug.cgi?id=108752
1020
1021         Reviewed by Dean Jackson.
1022         
1023         The value variable inside the selector is used to store different information depending on the 
1024         type of the selector so we have to check explicitly that the selector we apply filtering to 
1025         matches a pseudo element.
1026         
1027         Existing tests modified to cover this case.
1028
1029         * css/RuleSet.cpp:
1030         (WebCore::determinePropertyWhitelistType):
1031
1032 2013-02-04  Tom Sepez  <tsepez@chromium.org>
1033
1034         [V8] Binding Integrity crash in V8HTMLEmbedElement::createWrapper
1035         https://bugs.webkit.org/show_bug.cgi?id=108841
1036
1037         Reviewed by Adam Barth.
1038
1039         * html/HTMLEmbedElement.idl:
1040         Quick change to IDL to disable binding check for now.
1041         
1042 2013-02-04  Martin Robinson  <mrobinson@igalia.com>
1043
1044         Fix GTK+ 'make dist' in preparation for the 1.11.5 release.
1045
1046         * GNUmakefile.list.am:
1047
1048 2013-02-04  Enrica Casucci  <enrica@apple.com>
1049
1050         Add specific EditActions for Bold and Italic commands.
1051         https://bugs.webkit.org/show_bug.cgi?id=108842.
1052         <rdar://problem/13098252>
1053
1054         This change is required on iOS where we need to
1055         identify the command in order to display the correct
1056         message in the undo popup. It is also in line with
1057         what we do for underline, which already has its own
1058         separate EditAction.
1059         
1060         Reviewed by Ryosuke Niwa.
1061
1062         No new tests. No behavior change.
1063
1064         * editing/EditAction.h:
1065         * editing/EditorCommand.cpp:
1066         (WebCore::executeToggleBold):
1067         (WebCore::executeToggleItalic):
1068
1069 2013-02-04  Dima Gorbik  <dgorbik@apple.com>
1070
1071         Implemet :lang() pseudo class support for the WebVTT ::cue pseudo element
1072         https://bugs.webkit.org/show_bug.cgi?id=105478
1073
1074         Reviewed by Antti Koivisto.
1075
1076         In WebVTT lang is preprocessed and stored in the lang attribute of the element, 
1077         so we access it instead of walking up the tree the way it is done in HTML.
1078
1079         Existing tests were modified to cover this case.
1080
1081         * css/SelectorChecker.cpp:
1082         (WebCore::SelectorChecker::checkOne):
1083
1084 2013-02-04  Tim Horton  <timothy_horton@apple.com>
1085
1086         Disable autoscrolling the main frame if main frame scrolling is disabled
1087         https://bugs.webkit.org/show_bug.cgi?id=108848
1088         <rdar://problem/13004059>
1089
1090         Reviewed by Simon Fraser.
1091
1092         Ensure that the main frame can scroll at all before allowing an autoscroll.
1093
1094         * rendering/RenderBox.cpp:
1095         (WebCore::RenderBox::canAutoscroll):
1096
1097 2013-02-04  Tom Sepez  <tsepez@chromiium.org>
1098
1099         XSS Auditor bypass via svg tags and xlink:href
1100         https://bugs.webkit.org/show_bug.cgi?id=84158
1101
1102         This patch adds a test for the xlink:href attribute inside of
1103         script tokens. The test is complicated by the namespacing; the
1104         xlink hrefAttr qualified name does not contain a literal "xlink"
1105         prefix but only the URI of the namespace.
1106         
1107         Reviewed by Adam Barth.
1108
1109         Test: http/tests/security/xssAuditor/svg-script-tag.html
1110
1111         * html/parser/XSSAuditor.cpp:
1112         (WebCore::findAttributeWithName):
1113         (WebCore::XSSAuditor::filterScriptToken):
1114
1115 2013-02-04  Eric Carlson  <eric.carlson@apple.com>
1116
1117         Update CaptionUserPreferences
1118         https://bugs.webkit.org/show_bug.cgi?id=108783
1119
1120         Reviewed by Dean Jackson.
1121
1122         * html/shadow/MediaControlElements.cpp:
1123         (WebCore::MediaControlTextTrackContainerElement::updateSizes): Mark font size as important
1124             when necessary.
1125         * page/CaptionUserPreferences.h:
1126         (WebCore::CaptionUserPreferences::setUserPrefersCaptions): New, allow a port to remember that
1127             the user has chosen to see captions.
1128         (WebCore::CaptionUserPreferences::setPreferredLanguage): New, allow a port to remember the
1129             user's preferred caption language.
1130         (WebCore::CaptionUserPreferences::preferredLanguages): New, return a Vector of the user's 
1131             preferred caption languages.
1132         * page/CaptionUserPreferencesMac.h:
1133         * page/CaptionUserPreferencesMac.mm:
1134         * page/PageGroup.cpp:
1135         (WebCore::PageGroup::captionPreferences):
1136         (WebCore::PageGroup::captionFontSizeScale):
1137         * page/PageGroup.h:
1138         * platform/Language.cpp:
1139         (WebCore::userPreferredLanguagesOverride): New, return the user preferred languages override
1140             used during testing.
1141         * platform/Language.h:
1142         * platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm:
1143         (WebCore::InbandTextTrackPrivateAVFObjC::kind):
1144
1145 2013-02-04  Tim Horton  <timothy_horton@apple.com>
1146
1147         Allow TiledCoreAnimationDrawingArea overlay layers to become tiled
1148         https://bugs.webkit.org/show_bug.cgi?id=108729
1149         <rdar://problem/13047546>
1150
1151         Reviewed by Anders Carlsson.
1152
1153         * WebCore.exp.in:
1154         * platform/graphics/ca/GraphicsLayerCA.cpp:
1155         (WebCore::GraphicsLayerCA::flushCompositingStateForThisLayerOnly): The "for this layer only" variant
1156         of flushCompositingState wasn't informing its client that it committed changes for the layer.
1157         (WebCore::GraphicsLayerCA::swapFromOrToTiledLayer): We now explicitly want to be able to have a
1158         GraphicsLayerCA switch into or out of tiling while being unparented (we'll get a client callback and
1159         swap out its parent ourselves).
1160
1161 2013-02-04  Julien Chaffraix  <jchaffraix@webkit.org>
1162
1163         [CSS Grid Layout] Add parsing for grid-auto-flow
1164         https://bugs.webkit.org/show_bug.cgi?id=108397
1165
1166         Reviewed by Ojan Vafai.
1167
1168         Test: fast/css-grid-layout/grid-auto-flow-get-set.html
1169
1170         This change adds the parsing, application and conversion back through getComputedStyle
1171         for the new property -webkit-grid-auto-flow, which accpets the following:
1172
1173         -webkit-grid-auto-flow: none | rows | columns
1174
1175         * css/CSSComputedStyleDeclaration.cpp:
1176         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1177         Added code to convert the RenderStyle information back into a CSS value.
1178
1179         * css/CSSParser.cpp:
1180         (WebCore::isValidKeywordPropertyAndValue):
1181         (WebCore::isKeywordPropertyID):
1182         Implemented parsing for -webkit-grid-auto-flow.
1183
1184         * css/CSSPrimitiveValueMappings.h:
1185         (WebCore::CSSPrimitiveValue::operator GridAutoFlow):
1186         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
1187         Added the conversion operators, used for parsing and getComputedStyle.
1188
1189         * css/CSSProperty.cpp:
1190         (WebCore::CSSProperty::isInheritedProperty):
1191         Added -webkit-grid-auto-flow to the list of the not inherited properties.
1192
1193         * css/CSSPropertyNames.in:
1194         Added the new value and keywords.
1195
1196         * css/StyleBuilder.cpp:
1197         (WebCore::StyleBuilder::StyleBuilder):
1198         Added a handler for the new CSS property.
1199
1200         * rendering/style/RenderStyle.h:
1201         Added the usual getter / setter / initial function.
1202
1203         * rendering/style/RenderStyleConstants.h:
1204         Added a new enum GridAutoFlow to hold the parsed value.
1205
1206         * rendering/style/StyleGridData.cpp:
1207         (WebCore::StyleGridData::StyleGridData):
1208         * rendering/style/StyleGridData.h:
1209         (WebCore::StyleGridData::operator==):
1210         Updated after adding a new field for the GridAutoFlow value.
1211
1212 2013-02-04  Mark Pilgrim  <pilgrim@chromium.org>
1213
1214         [Chromium] Move IDBFactoryBackendInterface to WebCore
1215         https://bugs.webkit.org/show_bug.cgi?id=108638
1216
1217         Reviewed by Adam Barth.
1218
1219         Part of a larger refactoring series; see tracking bug 106829.
1220
1221         * Modules/indexeddb/chromium: Added.
1222         * Modules/indexeddb/chromium/IDBFactoryBackendInterfaceChromium.cpp: Added.
1223         (WebCore):
1224         (WebCore::setIDBFactoryBackendInterfaceCreateFunction):
1225         (WebCore::IDBFactoryBackendInterface::create):
1226         * Modules/indexeddb/chromium/IDBFactoryBackendInterfaceChromium.h: Added.
1227         (WebCore):
1228         * WebCore.gyp/WebCore.gyp:
1229         * WebCore.gypi:
1230
1231 2013-02-04  Abhishek Arya  <inferno@chromium.org>
1232
1233         Add ASSERT_WITH_SECURITY_IMPLICATION to detect bad cast in DOM, CSS, etc.
1234         https://bugs.webkit.org/show_bug.cgi?id=108688
1235
1236         Reviewed by Eric Seidel.
1237
1238         * Modules/notifications/Notification.cpp:
1239         (WebCore::Notification::Notification):
1240         (WebCore::Notification::permission):
1241         (WebCore::Notification::requestPermission):
1242         * Modules/speech/SpeechGrammar.cpp:
1243         (WebCore::SpeechGrammar::setSrc):
1244         * Modules/speech/SpeechGrammarList.cpp:
1245         (WebCore::SpeechGrammarList::addFromUri):
1246         * Modules/websockets/ThreadableWebSocketChannel.cpp:
1247         (WebCore::ThreadableWebSocketChannel::create):
1248         * accessibility/AccessibilityMenuListPopup.cpp:
1249         (WebCore::AccessibilityMenuListPopup::menuListOptionAccessibilityObject):
1250         * accessibility/AccessibilityTable.cpp:
1251         (WebCore::AccessibilityTable::cellForColumnAndRow):
1252         * css/CSSFontFaceRule.cpp:
1253         (WebCore::CSSFontFaceRule::reattach):
1254         * css/CSSImageSetValue.cpp:
1255         (WebCore::CSSImageSetValue::fillImageSet):
1256         * css/CSSPageRule.cpp:
1257         (WebCore::CSSPageRule::reattach):
1258         * css/CSSStyleRule.cpp:
1259         (WebCore::CSSStyleRule::reattach):
1260         * css/StyleBuilder.cpp:
1261         (WebCore::ApplyPropertyFontVariantLigatures::applyValue):
1262         (WebCore::ApplyPropertyTextDecoration::applyValue):
1263         (WebCore::ApplyPropertyZoom::applyValue):
1264         * css/StyleResolver.cpp:
1265         (WebCore::createGridPosition):
1266         (WebCore::StyleResolver::applyProperty):
1267         (WebCore::StyleResolver::createCustomFilterOperationWithInlineSyntax):
1268         * css/WebKitCSSFilterRule.cpp:
1269         (WebCore::WebKitCSSFilterRule::reattach):
1270         * css/WebKitCSSKeyframesRule.cpp:
1271         (WebCore::WebKitCSSKeyframesRule::reattach):
1272         * css/WebKitCSSViewportRule.cpp:
1273         (WebCore::WebKitCSSViewportRule::reattach):
1274         * editing/EditCommand.h:
1275         (WebCore::toSimpleEditCommand):
1276         * editing/visible_units.cpp:
1277         (WebCore::startOfParagraph):
1278         (WebCore::endOfParagraph):
1279         * html/HTMLCollection.cpp:
1280         (WebCore::LiveNodeListBase::setItemCache):
1281         * loader/ThreadableLoader.cpp:
1282         (WebCore::ThreadableLoader::create):
1283         (WebCore::ThreadableLoader::loadResourceSynchronously):
1284         * loader/WorkerThreadableLoader.cpp:
1285         (WebCore::WorkerThreadableLoader::MainThreadBridge::mainThreadCreateLoader):
1286         * page/Frame.cpp:
1287         (WebCore::Frame::frameForWidget):
1288         * platform/RefCountedSupplement.h:
1289         (WebCore::RefCountedSupplement::from):
1290         * rendering/RenderBlock.cpp:
1291         (WebCore::RenderBlock::splitBlocks):
1292         (WebCore::RenderBlock::firstLineBlock):
1293         * rendering/RenderBlockLineLayout.cpp:
1294         (WebCore::RenderBlock::createLineBoxes):
1295         * rendering/RenderBox.cpp:
1296         (WebCore::RenderBox::computeReplacedLogicalHeightUsing):
1297         * rendering/svg/RenderSVGText.cpp:
1298         (WebCore::RenderSVGText::positionForPoint):
1299         * rendering/svg/SVGRootInlineBox.cpp:
1300         (WebCore::SVGRootInlineBox::layoutCharactersInTextBoxes):
1301         (WebCore::SVGRootInlineBox::layoutChildBoxes):
1302         * testing/js/WebCoreTestSupport.cpp:
1303         (WebCoreTestSupport::resetInternalsObject):
1304         * testing/v8/WebCoreTestSupport.cpp:
1305         (WebCoreTestSupport::resetInternalsObject):
1306         * workers/DefaultSharedWorkerRepository.cpp:
1307         (WebCore::SharedWorkerProxy::addToWorkerDocuments):
1308         (WebCore::SharedWorkerConnectTask::performTask):
1309         * workers/SharedWorker.cpp:
1310         (WebCore::SharedWorker::create):
1311         * workers/WorkerContext.cpp:
1312         (WebCore::CloseWorkerContextTask::performTask):
1313         * workers/WorkerMessagingProxy.cpp:
1314         (WebCore::MessageWorkerContextTask::performTask):
1315         (WebCore::connectToWorkerContextInspectorTask):
1316         (WebCore::disconnectFromWorkerContextInspectorTask):
1317         (WebCore::dispatchOnInspectorBackendTask):
1318         * workers/WorkerScriptLoader.cpp:
1319         (WebCore::WorkerScriptLoader::loadSynchronously):
1320         * workers/WorkerThread.cpp:
1321         (WebCore::WorkerThreadShutdownFinishTask::performTask):
1322         (WebCore::WorkerThreadShutdownStartTask::performTask):
1323
1324 2013-02-04  Dominik Röttsches  <dominik.rottsches@intel.com>
1325
1326         [Skia] Argument to HarfBuzzShaper::offsetForPosition unnecessarily truncated
1327         https://bugs.webkit.org/show_bug.cgi?id=108479
1328
1329         Reviewed by Emil A Eklund.
1330
1331         Remove a FIXME that intended to solve the value truncation.
1332         Should positively affect SVG text positioning.
1333
1334         No new tests, partially covered by manual test
1335         ManualTests/harfbuzz-mouse-selection-crash.html.
1336
1337         * platform/graphics/harfbuzz/FontHarfBuzz.cpp:
1338         (WebCore::Font::offsetForPositionForComplexText):
1339
1340 2013-02-04  Vladislav Kaznacheev  <kaznacheev@chromium.org>
1341
1342         Web Inspector: Create a container class for SidebarPane instances
1343         https://bugs.webkit.org/show_bug.cgi?id=108183
1344
1345         Reviewed by Pavel Feldman.
1346
1347         SidebarPaneStack is responsible for pane title bar and expand/collapse behavior (previously handled by SidebarPane).
1348         SidebarPanes are inserted into DOM lazily and can belong to more than one container.
1349         SidebarPane is ready to be displayed in other types of containers (such as tabbed pane as requested in https://bugs.webkit.org/show_bug.cgi?id=107552).
1350         There should be no visible changes except for one: DOM breakpoint pane expand/collapse state is no longer
1351         shared between Elements and Sources sidebars.
1352
1353         * inspector/front-end/AuditResultView.js:
1354         (WebInspector.AuditResultView):
1355         * inspector/front-end/BreakpointsSidebarPane.js:
1356         (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._addBreakpoint):
1357         (WebInspector.XHRBreakpointsSidebarPane.prototype.highlightBreakpoint):
1358         (WebInspector.EventListenerBreakpointsSidebarPane.prototype.highlightBreakpoint):
1359         * inspector/front-end/DOMBreakpointsSidebarPane.js:
1360         (WebInspector.DOMBreakpointsSidebarPane.prototype.highlightBreakpoint):
1361         * inspector/front-end/ElementsPanel.js:
1362         (WebInspector.ElementsPanel):
1363         (WebInspector.ElementsPanel.prototype.wasShown):
1364         (WebInspector.ElementsPanel.prototype.updateStyles):
1365         (WebInspector.ElementsPanel.prototype.updateMetrics):
1366         (WebInspector.ElementsPanel.prototype.updateProperties):
1367         (WebInspector.ElementsPanel.prototype.updateEventListeners):
1368         * inspector/front-end/ExtensionPanel.js:
1369         (WebInspector.ExtensionSidebarPane):
1370         * inspector/front-end/ExtensionServer.js:
1371         (WebInspector.ExtensionServer.prototype._onCreateSidebarPane):
1372         * inspector/front-end/ScriptsPanel.js:
1373         (WebInspector.ScriptsPanel.prototype.wasShown):
1374         * inspector/front-end/SidebarPane.js:
1375         (WebInspector.SidebarPane):
1376         (WebInspector.SidebarPane.prototype.title):
1377         (WebInspector.SidebarPane.prototype.prepareContent):
1378         (WebInspector.SidebarPane.prototype.expand):
1379         (WebInspector.SidebarPane.prototype.onContentReady):
1380         (WebInspector.SidebarPane.prototype.setExpandCallback):
1381         (WebInspector.SidebarPane.prototype.setShowCallback):
1382         (WebInspector.SidebarPane.prototype.wasShown):
1383         (WebInspector.SidebarPaneStack):
1384         (WebInspector.SidebarPaneStack.prototype.wasShown):
1385         (WebInspector.SidebarPaneStack.prototype.addPane):
1386         (WebInspector.SidebarPaneStack.prototype._addTitle):
1387         (WebInspector.SidebarPaneStack.prototype._attachToPane):
1388         (WebInspector.SidebarPaneStack.prototype._isExpanded):
1389         (WebInspector.SidebarPaneStack.prototype._setExpanded):
1390         (WebInspector.SidebarPaneStack.prototype._onPaneExpanded):
1391         (WebInspector.SidebarPaneStack.prototype._collapsePane):
1392         (WebInspector.SidebarPaneStack.prototype._togglePane):
1393         (WebInspector.SidebarPaneStack.prototype._onTitleKeyDown):
1394         * inspector/front-end/StylesSidebarPane.js:
1395         (WebInspector.StylesSidebarPane.prototype._refreshUpdate):
1396         (WebInspector.StylesSidebarPane.prototype._rebuildUpdate):
1397         (WebInspector.StylesSidebarPane.prototype.set _createNewRule):
1398         (WebInspector.ComputedStyleSidebarPane.prototype.prepareContent):
1399         * inspector/front-end/WatchExpressionsSidebarPane.js:
1400         (WebInspector.WatchExpressionsSidebarPane):
1401         (WebInspector.WatchExpressionsSidebarPane.prototype.wasShown):
1402         (WebInspector.WatchExpressionsSidebarPane.prototype.addExpression):
1403         (WebInspector.WatchExpressionsSidebarPane.prototype._addButtonClicked):
1404         * inspector/front-end/inspector.css:
1405         (.pane-title + .pane-title, .pane:not(.visible) + .pane-title, .pane-title:first-of-type):
1406         (.pane-title):
1407         (.pane-title:active):
1408         (.pane-title::before):
1409         (.pane-title.expanded::before):
1410         (.pane-title > select):
1411         (.pane-title > select:hover):
1412         (.pane-title > select:active):
1413         (.pane-title > select.select-settings):
1414         (.pane-title > select.select-filter):
1415         (.pane-title > select > option, .pane-title > select > hr):
1416         (.pane-title > .pane-title-button):
1417         (.pane-title > .pane-title-button:hover):
1418         (.pane-title > .pane-title-button:active, .pane-title > .pane-title-button.toggled):
1419         (.pane-title > .pane-title-button.add):
1420         (.pane-title > .pane-title-button.element-state):
1421         (.pane-title > .pane-title-button.refresh):
1422         (.pane.visible > .body):
1423         (.pane.visible:nth-last-of-type(1)):
1424         (.panel-enabler-view button:not(.status-bar-item), .pane-title-button, button.show-all-nodes):
1425         (.panel-enabler-view button:active:not(.status-bar-item), .pane-title-button:active, button.show-all-nodes:active):
1426         (body.inactive .panel-enabler-view button:not(.status-bar-item), .panel-enabler-view button:disabled:not(.status-bar-item), body.inactive .pane-title-button, .pane-title-button:disabled, body.inactive button.show-all-nodes):
1427
1428 2013-02-01  Emil A Eklund  <eae@chromium.org>
1429
1430         Remove duplicate code in RenderBoxModelObject::computedCSSPadding*
1431         https://bugs.webkit.org/show_bug.cgi?id=108707
1432
1433         Reviewed by Eric Seidel.
1434         
1435         The computedCSSPaddingTop/Bottom/... methods in
1436         RenderBoxModelObject all do pretty much exactly the same thing
1437         yet share no code.
1438         
1439         Break out shared code into computedCSSPadding method and have
1440         the top/bottom/left/right/... ones call it with the appropriate
1441         length value.
1442
1443         No new tests, no change in functionality.
1444
1445         * rendering/RenderBoxModelObject.cpp:
1446         (WebCore::RenderBoxModelObject::computedCSSPadding):
1447         * rendering/RenderBoxModelObject.h:
1448         (WebCore::RenderBoxModelObject::computedCSSPaddingTop):
1449         (WebCore::RenderBoxModelObject::computedCSSPaddingBottom):
1450         (WebCore::RenderBoxModelObject::computedCSSPaddingLeft):
1451         (WebCore::RenderBoxModelObject::computedCSSPaddingRight):
1452         (WebCore::RenderBoxModelObject::computedCSSPaddingBefore):
1453         (WebCore::RenderBoxModelObject::computedCSSPaddingAfter):
1454         (WebCore::RenderBoxModelObject::computedCSSPaddingStart):
1455         (WebCore::RenderBoxModelObject::computedCSSPaddingEnd):
1456         (RenderBoxModelObject):
1457
1458 2013-02-04  Andrey Lushnikov  <lushnikov@chromium.org>
1459
1460         Web Inspector: add round braces to javascript tokenizer
1461         https://bugs.webkit.org/show_bug.cgi?id=108692
1462
1463         Reviewed by Pavel Feldman.
1464
1465         Change SourceJavascriptTokenizer.re2js file to produce "brace-start"
1466         and "brace-end" tokens for round braces.
1467         Regenerate SourceJavascriptTokenizer.js according to new re2js file.
1468
1469         No new tests: no change in behaviour.
1470
1471         * inspector/front-end/SourceJavaScriptTokenizer.js:
1472         (WebInspector.SourceJavaScriptTokenizer.prototype.nextToken):
1473         * inspector/front-end/SourceJavaScriptTokenizer.re2js:
1474
1475 2013-02-04  Pavel Feldman  <pfeldman@chromium.org>
1476
1477         Web Inspector: take page scale factor into account when updating overlay.
1478         https://bugs.webkit.org/show_bug.cgi?id=108831
1479
1480         Reviewed by Vsevolod Vlasov.
1481
1482         Otherwise, the ports that use page scale factor have broken overlay.
1483
1484         * inspector/InspectorOverlay.cpp:
1485         (WebCore::InspectorOverlay::update):
1486
1487 2013-02-04  Dan Carney  <dcarney@google.com>
1488
1489         [v8] explicit isolate parameter for MakeWeak calls
1490         https://bugs.webkit.org/show_bug.cgi?id=108818
1491
1492         Reviewed by Kentaro Hara.
1493
1494         No new tests. No change in functionality.
1495
1496         * bindings/v8/DOMDataStore.cpp:
1497         (WebCore::DOMDataStore::DOMDataStore):
1498         (WebCore::DOMDataStore::weakCallback):
1499         * bindings/v8/DOMDataStore.h:
1500         (WebCore::DOMDataStore::setWrapper):
1501         (WebCore::DOMDataStore::set):
1502         (WebCore::DOMDataStore::setWrapperInObject):
1503         (DOMDataStore):
1504         * bindings/v8/DOMWrapperMap.h:
1505         (WebCore::DOMWrapperMap::DOMWrapperMap):
1506         (WebCore::DOMWrapperMap::set):
1507         (WebCore::DOMWrapperMap::defaultWeakCallback):
1508         (DOMWrapperMap):
1509         * bindings/v8/DOMWrapperWorld.cpp:
1510         (WebCore::isolatedWorldWeakCallback):
1511         (WebCore::DOMWrapperWorld::makeContextWeak):
1512         * bindings/v8/ScriptState.cpp:
1513         (WebCore::ScriptState::ScriptState):
1514         (WebCore::ScriptState::weakReferenceCallback):
1515         * bindings/v8/ScriptState.h:
1516         (ScriptState):
1517         * bindings/v8/V8AbstractEventListener.cpp:
1518         (WebCore::V8AbstractEventListener::weakEventListenerCallback):
1519         (WebCore::V8AbstractEventListener::V8AbstractEventListener):
1520         (WebCore::V8AbstractEventListener::setListenerObject):
1521         * bindings/v8/V8AbstractEventListener.h:
1522         (V8AbstractEventListener):
1523         * bindings/v8/V8EventListener.cpp:
1524         (WebCore::V8EventListener::V8EventListener):
1525         * bindings/v8/V8LazyEventListener.cpp:
1526         (WebCore::V8LazyEventListener::V8LazyEventListener):
1527         * bindings/v8/V8MutationCallback.cpp:
1528         (WebCore::V8MutationCallback::V8MutationCallback):
1529         * bindings/v8/V8MutationCallback.h:
1530         (WebCore::V8MutationCallback::create):
1531         (WebCore::V8MutationCallback::weakCallback):
1532         * bindings/v8/V8NPObject.cpp:
1533         (WebCore::V8NPTemplateMap::set):
1534         (WebCore::V8NPTemplateMap::sharedInstance):
1535         (WebCore::V8NPTemplateMap::V8NPTemplateMap):
1536         (V8NPTemplateMap):
1537         (WebCore::V8NPTemplateMap::weakCallback):
1538         (WebCore::npObjectGetProperty):
1539         (WebCore):
1540         (WebCore::staticNPObjectMap):
1541         (WebCore::weakNPObjectCallback):
1542         * bindings/v8/V8ValueCache.cpp:
1543         (WebCore::cachedStringCallback):
1544         (WebCore::StringCache::v8ExternalStringSlow):
1545         * bindings/v8/custom/V8InjectedScriptManager.cpp:
1546         (WebCore::WeakReferenceCallback):
1547         (WebCore::createInjectedScriptHostV8Wrapper):
1548         * bindings/v8/custom/V8MutationObserverCustom.cpp:
1549         (WebCore::V8MutationObserver::constructorCallbackCustom):
1550
1551 2013-02-04  Dmitry Gozman  <dgozman@chromium.org>
1552
1553         Web Inspector: Allow user to change dock side by dragging toolbar
1554         https://bugs.webkit.org/show_bug.cgi?id=108073
1555
1556         Dragging toolbar to the right/bottom will change the dock side accordingly
1557         instead of changing the inspector window height (if dock to right is available).
1558
1559         Reviewed by Pavel Feldman.
1560
1561         No new tests, because of pure inspector UI change.
1562
1563         * inspector/front-end/DockController.js:
1564         (WebInspector.DockController.prototype.dockSide):
1565         * inspector/front-end/Toolbar.js:
1566         (WebInspector.Toolbar):
1567         (WebInspector.Toolbar.prototype._isDockedToBottom):
1568         (WebInspector.Toolbar.prototype._isUndocked):
1569         (WebInspector.Toolbar.prototype._toolbarDragStart):
1570         (WebInspector.Toolbar.prototype._toolbarDragEnd):
1571         (WebInspector.Toolbar.prototype._toolbarDrag):
1572         (WebInspector.Toolbar.prototype._toolbarDragMoveWindow):
1573         (WebInspector.Toolbar.prototype._toolbarDragChangeDocking):
1574         (WebInspector.Toolbar.prototype._toolbarDragChangeHeight):
1575         * inspector/front-end/UIUtils.js:
1576         (WebInspector._elementDragStart):
1577         (WebInspector._elementDragMove):
1578         (WebInspector._cancelDragEvents):
1579         (WebInspector._elementDragEnd):
1580
1581 2013-02-04  Andrey Kosyakov  <caseq@chromium.org>
1582
1583         Web Inspector: sync list of console API methods to that used by auto-complete
1584         https://bugs.webkit.org/show_bug.cgi?id=108804
1585
1586         Reviewed by Pavel Feldman.
1587
1588         - push new method names from InjectedScriptSource to RuntimeModel;
1589         - add a comment to InjectedScriptSource noting the necessity of keeping lists in sync.
1590
1591         * inspector/InjectedScriptSource.js:
1592         * inspector/front-end/RuntimeModel.js:
1593         (WebInspector.RuntimeModel.prototype.receivedPropertyNames):
1594         (WebInspector.RuntimeModel.prototype._completionsForExpression):
1595
1596 2013-02-04  Eugene Klyuchnikov  <eustas@chromium.org>
1597
1598         Web Inspector: [Network] Minor refactorings.
1599         https://bugs.webkit.org/show_bug.cgi?id=108162
1600
1601         Reviewed by Vsevolod Vlasov.
1602
1603         Apply minor refactorings to NetworkPanel.js
1604         Add hint to statusbar selector buttons.
1605
1606         * English.lproj/localizedStrings.js: Added hint string.
1607         * inspector/front-end/NetworkPanel.js:
1608         (WebInspector.NetworkLogView.prototype._createStatusBarItems): Ditto.
1609         (WebInspector.NetworkLogView.prototype._makeHeaderFragment):
1610         Applied minor refactoring.
1611         (WebInspector.NetworkLogView.prototype._createStatusBarItems.createFilterElement):
1612         Ditto.
1613         (WebInspector.NetworkLogView.prototype._updateOffscreenRows): Ditto.
1614         (WebInspector.NetworkPanel.prototype._onRowSizeChanged): Ditto.
1615
1616 2013-02-04  Eugene Klyuchnikov  <eustas@chromium.org>
1617
1618         Web Inspector: [CPU Profile] Apply minor refactorings and add JSDocs.
1619         https://bugs.webkit.org/show_bug.cgi?id=108437
1620
1621         Reviewed by Pavel Feldman.
1622
1623         CPU Profile code has obsolete inline-comments to clarify types.
1624         Currently we use JSDocs to specify types.
1625
1626         Also applied some minor refactorings.
1627
1628         * inspector/front-end/BottomUpProfileDataGridTree.js:
1629         (WebInspector.BottomUpProfileDataGridNode):
1630         Added JSDocs. Removed profileView parameter.
1631         (WebInspector.BottomUpProfileDataGridNode.prototype._takePropertiesFromProfileDataGridNode):
1632         Added JSDocs.
1633         (WebInspector.BottomUpProfileDataGridNode.prototype._keepOnlyChild):
1634         Ditto.
1635         (WebInspector.BottomUpProfileDataGridNode.prototype._merge):
1636         Ditto.
1637         (WebInspector.BottomUpProfileDataGridNode.prototype._sharedPopulate):
1638         Do not pass profileView to constructor.
1639         (WebInspector.BottomUpProfileDataGridTree):
1640         Added JSDocs. Renamed parameters.
1641         (WebInspector.BottomUpProfileDataGridTree.prototype.focus):
1642         Added JSDocs.
1643         (WebInspector.BottomUpProfileDataGridTree.prototype.exclude):
1644         Ditto.
1645         * inspector/front-end/CPUProfileView.js: Removed unused getter/setter.
1646         (WebInspector.CPUProfileView.prototype._getCPUProfileCallback):
1647         Un-nested. Added JSDocs.
1648         (WebInspector.CPUProfileView.prototype._getBottomUpProfileDataGridTree):
1649         Added JSDocs. Turned to method from getter. Simplified.
1650         (WebInspector.CPUProfileView.prototype._getTopDownProfileDataGridTree):
1651         Added JSDocs. Turned to method from getter.
1652         (WebInspector.CPUProfileView.prototype._assignParentsInProfile):
1653         Optimized.
1654         * inspector/front-end/DataGrid.js: Added JSDocs.
1655         * inspector/front-end/ProfileDataGridTree.js:
1656         (WebInspector.ProfileDataGridNode):
1657         Added JSDocs. Removed profileView parameter.
1658         (WebInspector.ProfileDataGridNode.prototype.createCell): Added JSDocs.
1659         (WebInspector.ProfileDataGridNode.prototype.sort): Ditto.
1660         (WebInspector.ProfileDataGridNode.prototype.insertChild): Ditto.
1661         (WebInspector.ProfileDataGridNode.prototype.removeChild): Ditto.
1662         (WebInspector.ProfileDataGridNode.prototype.removeChildren):
1663         Added JSDocs. Removed parameter.
1664         (WebInspector.ProfileDataGridNode.prototype.findChild): Added JSDocs.
1665         (WebInspector.ProfileDataGridTree): Added JSDocs. Renamed parameter.
1666         * inspector/front-end/TopDownProfileDataGridTree.js:
1667         (WebInspector.TopDownProfileDataGridNode):
1668         Added JSDocs. Removed profileView parameter.
1669         (WebInspector.TopDownProfileDataGridNode.prototype._sharedPopulate):
1670         Do not pass profileView to constructor.
1671         (WebInspector.TopDownProfileDataGridTree):
1672         Added JSDocs. Renamed parameter.
1673         (WebInspector.TopDownProfileDataGridTree.prototype.focus):
1674         Added JSDocs.
1675         (WebInspector.TopDownProfileDataGridTree.prototype.exclude):
1676         Ditto.
1677
1678 2013-02-04  Dan Carney  <dcarney@google.com>
1679
1680         [v8] use toV8Fast in hand coded callbacks
1681         https://bugs.webkit.org/show_bug.cgi?id=108817
1682
1683         Reviewed by Kentaro Hara.
1684
1685         No new tests. No change in functionality.
1686
1687         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1688         (WebCore::V8DOMWindow::openCallback):
1689         (WebCore::V8DOMWindow::indexedPropertyGetter):
1690         (WebCore::V8DOMWindow::namedPropertyGetter):
1691         * bindings/v8/custom/V8DocumentCustom.cpp:
1692         (WebCore::V8Document::evaluateCallback):
1693         * bindings/v8/custom/V8DocumentLocationCustom.cpp:
1694         (WebCore::V8Document::locationAccessorGetter):
1695         * bindings/v8/custom/V8EventCustom.cpp:
1696         (WebCore::V8Event::dataTransferAccessorGetter):
1697         (WebCore::V8Event::clipboardDataAccessorGetter):
1698         * bindings/v8/custom/V8FileReaderCustom.cpp:
1699         (WebCore::V8FileReader::resultAccessorGetter):
1700         * bindings/v8/custom/V8HTMLAllCollectionCustom.cpp:
1701         (WebCore):
1702         (WebCore::getNamedItems):
1703         (WebCore::getItem):
1704         (WebCore::V8HTMLAllCollection::namedPropertyGetter):
1705         (WebCore::V8HTMLAllCollection::itemCallback):
1706         (WebCore::V8HTMLAllCollection::namedItemCallback):
1707         (WebCore::V8HTMLAllCollection::callAsFunctionCallback):
1708         * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
1709         (WebCore::V8HTMLCanvasElement::getContextCallback):
1710         * bindings/v8/custom/V8HTMLCollectionCustom.cpp:
1711         (WebCore::V8HTMLCollection::namedPropertyGetter):
1712         * bindings/v8/custom/V8HTMLElementCustom.cpp:
1713         (WebCore::V8HTMLElement::itemValueAccessorGetter):
1714         * bindings/v8/custom/V8HTMLFormControlsCollectionCustom.cpp:
1715         (WebCore):
1716         (WebCore::getNamedItems):
1717         (WebCore::V8HTMLFormControlsCollection::namedPropertyGetter):
1718         (WebCore::V8HTMLFormControlsCollection::namedItemCallback):
1719         * bindings/v8/custom/V8HTMLFormElementCustom.cpp:
1720         (WebCore::V8HTMLFormElement::indexedPropertyGetter):
1721         (WebCore::V8HTMLFormElement::namedPropertyGetter):
1722         * bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp:
1723         (WebCore::V8HTMLFrameSetElement::namedPropertyGetter):
1724         * bindings/v8/custom/V8HTMLLinkElementCustom.cpp:
1725         (WebCore::V8HTMLLinkElement::sizesAccessorGetter):
1726         * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
1727         (WebCore):
1728         (WebCore::getNamedItems):
1729         (WebCore::V8HTMLOptionsCollection::namedPropertyGetter):
1730         (WebCore::V8HTMLOptionsCollection::namedItemCallback):
1731         (WebCore::V8HTMLOptionsCollection::indexedPropertyGetter):
1732         * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
1733         (WebCore::V8HTMLSelectElement::indexedPropertyGetter):
1734         * bindings/v8/custom/V8MessageEventCustom.cpp:
1735         (WebCore::V8MessageEvent::dataAccessorGetter):
1736         (WebCore::V8MessageEvent::portsAccessorGetter):
1737         * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
1738         (WebCore::V8NamedNodeMap::indexedPropertyGetter):
1739         (WebCore::V8NamedNodeMap::namedPropertyGetter):
1740         * bindings/v8/custom/V8NodeListCustom.cpp:
1741         (WebCore::V8NodeList::namedPropertyGetter):
1742         * bindings/v8/custom/V8PopStateEventCustom.cpp:
1743         (WebCore::V8PopStateEvent::stateAccessorGetter):
1744         * bindings/v8/custom/V8SQLTransactionSyncCustom.cpp:
1745         (WebCore::V8SQLTransactionSync::executeSqlCallback):
1746         * bindings/v8/custom/V8StyleSheetListCustom.cpp:
1747         (WebCore::V8StyleSheetList::namedPropertyGetter):
1748         * bindings/v8/custom/V8TrackEventCustom.cpp:
1749         (WebCore::V8TrackEvent::trackAccessorGetter):
1750         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
1751         (WebCore::V8XMLHttpRequest::responseAccessorGetter):
1752
1753 2013-02-04  David Kilzer  <ddkilzer@apple.com>
1754
1755         Remove duplicate entry from WebCore Xcode project
1756
1757             $ uniq Source/WebCore/WebCore.xcodeproj/project.pbxproj | diff -u - Source/WebCore/WebCore.xcodeproj/project.pbxproj | patch -p0 -R
1758             patching file Source/WebCore/WebCore.xcodeproj/project.pbxproj
1759
1760         * WebCore.xcodeproj/project.pbxproj: Remove duplicate.
1761
1762 2013-02-04  David Kilzer  <ddkilzer@apple.com>
1763
1764         Sort WebCore Xcode project file
1765
1766         * WebCore.xcodeproj/project.pbxproj:
1767
1768 2013-02-04  Dan Carney  <dcarney@google.com>
1769
1770         [v8] disable ascii check once latin-1 is enabled in v8
1771         https://bugs.webkit.org/show_bug.cgi?id=108805
1772
1773         Reviewed by Kentaro Hara.
1774
1775         No new tests. No change in functionality.
1776
1777         * bindings/v8/V8ValueCache.cpp:
1778         (WebCore::makeExternalString):
1779
1780 2013-02-04  Pavel Feldman  <pfeldman@chromium.org>
1781
1782         Web Inspector: make tabbed pane header a relayout boundary.
1783         https://bugs.webkit.org/show_bug.cgi?id=108650
1784
1785         Reviewed by Alexander Pavlov.
1786
1787         Otherwise, its measure width routine causes total reflow.
1788
1789         * inspector/front-end/tabbedPane.css:
1790         (.tabbed-pane-header):
1791
1792 2013-02-04  Hayato Ito  <hayato@chromium.org>
1793
1794         Split InspectorCSSOMWrappers out from StyleResolver.h into its own file.
1795         https://bugs.webkit.org/show_bug.cgi?id=108797
1796
1797         Reviewed by Hajime Morita.
1798
1799         This is a following patch after r141373. Now we can have
1800         InspectorCSSOMWrappers in its own file since CSSDefaultStyleSheets
1801         was factored out from StyleResolver.cpp in r141733.
1802
1803         WebCore/inspector/ directory is used for basic inspector
1804         functionalities. Therefore, I've put
1805         InspectorCSSOMWrappers.{h,cpp} in WebCore/css/ rather than
1806         WebCore/inspector/.
1807
1808         No new tests, refactoring only.
1809
1810         * CMakeLists.txt:
1811         * GNUmakefile.list.am:
1812         * Target.pri:
1813         * WebCore.gypi:
1814         * WebCore.xcodeproj/project.pbxproj:
1815         * css/CSSAllInOne.cpp:
1816         * css/InspectorCSSOMWrappers.cpp: Added.
1817         (WebCore):
1818         (WebCore::InspectorCSSOMWrappers::collectFromStyleSheetIfNeeded):
1819         (WebCore::InspectorCSSOMWrappers::collect):
1820         (WebCore::InspectorCSSOMWrappers::collectFromStyleSheetContents):
1821         (WebCore::InspectorCSSOMWrappers::collectFromStyleSheets):
1822         (WebCore::InspectorCSSOMWrappers::collectFromDocumentStyleSheetCollection):
1823         (WebCore::InspectorCSSOMWrappers::getWrapperForRuleInSheets):
1824         (WebCore::InspectorCSSOMWrappers::reportMemoryUsage):
1825         * css/InspectorCSSOMWrappers.h: Added.
1826         (WebCore):
1827         (InspectorCSSOMWrappers):
1828         * css/StyleResolver.cpp:
1829         * css/StyleResolver.h:
1830
1831 2013-02-04  Balazs Kelemen  <kbalazs@webkit.org>
1832
1833         [Soup] Wrap SoupSession by NetworkStorageSession
1834         https://bugs.webkit.org/show_bug.cgi?id=108615
1835
1836         Reviewed by Alexey Proskuryakov.
1837
1838         Implement NetworkStorageSession for ports using soup. It has been
1839         separated from NetworkingContext, so now we have a default storage
1840         session, which is the same as before but now wrapped with NetworkStorageSession,
1841         and it can be overridden by the networking context.
1842
1843         No change in behavior so no new tests.
1844
1845         * CMakeLists.txt:
1846         * GNUmakefile.list.am:
1847         * PlatformBlackBerry.cmake:
1848         * PlatformEfl.cmake:
1849         * loader/CookieJar.cpp:
1850         (WebCore):
1851         Now we also get the storage session from the networking context
1852         and not the other way.
1853
1854         * platform/network/NetworkStorageSession.h:
1855         (NetworkStorageSession):
1856         (WebCore::NetworkStorageSession::setSoupSession):
1857         (WebCore::NetworkStorageSession::soupSession):
1858         Hold a SoupSession pointer for ports using soup. Added a setter because it is
1859         necessary for API's that allow it to be specified per page, like EFL WK1.
1860
1861         * platform/network/NetworkingContext.h:
1862         (NetworkingContext):
1863         * platform/network/soup/CookieJarSoup.cpp:
1864         (WebCore::cookieJarForSession):
1865         * platform/network/soup/NetworkStorageSessionSoup.cpp: Copied from Source/WebKit2/WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp.
1866         (WebCore::NetworkStorageSession::NetworkStorageSession):
1867         (WebCore::NetworkStorageSession::defaultStorageSession):
1868         (WebCore::NetworkStorageSession::createDefaultSession):
1869         (WebCore::NetworkStorageSession::createPrivateBrowsingSession):
1870         (WebCore::NetworkStorageSession::switchToNewTestingSession):
1871         * platform/network/soup/ResourceHandleSoup.cpp:
1872         (WebCore::sessionFromContext):
1873
1874         * CMakeLists.txt:
1875         * GNUmakefile.list.am:
1876         * PlatformBlackBerry.cmake:
1877         * PlatformEfl.cmake:
1878         * loader/CookieJar.cpp:
1879         (WebCore):
1880         * platform/network/NetworkStorageSession.h:
1881         (NetworkStorageSession):
1882         (WebCore::NetworkStorageSession::setSoupSession):
1883         (WebCore::NetworkStorageSession::soupSession):
1884         * platform/network/NetworkingContext.h:
1885         (NetworkingContext):
1886         * platform/network/soup/CookieJarSoup.cpp:
1887         (WebCore::cookieJarForSession):
1888         * platform/network/soup/ResourceHandleSoup.cpp:
1889         (WebCore::sessionFromContext):
1890
1891 2013-02-04  Andrey Lushnikov  <lushnikov@chromium.org>
1892
1893         Web Inspector: source location in statusbar has few bugs in it
1894         https://bugs.webkit.org/show_bug.cgi?id=108748
1895
1896         Reviewed by Vsevolod Vlasov.
1897
1898         Call super method statusBarItems in SnippetJavaScriptSourceFrame class
1899         and merge its results. Fix css styles for source location in statusbar
1900         and rename its css class into a less confusing name.
1901
1902         No new test: no change in behaviour.
1903
1904         * inspector/front-end/SnippetJavaScriptSourceFrame.js:
1905         (WebInspector.SnippetJavaScriptSourceFrame.prototype.statusBarItems):
1906         * inspector/front-end/SourceFrame.js:
1907         (WebInspector.SourceFrame):
1908         * inspector/front-end/inspector.css:
1909         (.source-frame-cursor-position):
1910
1911 2013-02-04  Mike West  <mkwst@chromium.org>
1912
1913         Cleanup: Normalize usage of ExceptionCode in ContainerNode::checkXxxChild()
1914         https://bugs.webkit.org/show_bug.cgi?id=108766
1915
1916         Reviewed by Kentaro Hara.
1917
1918         This patch refactors checkAddChild and checkReplaceChild to remove the
1919         creation of an extra ExceptionCode that's not necessary for the
1920         desired behavior, and to bring the ExceptionCode usage into line with
1921         the rest of WebKit (this was the only case where ExceptionCode was
1922         assigned inside an 'if' statement's condition).
1923
1924         After this patch, 'ec' will always be assigned a value, even if the
1925         result of 'checkAcceptChild' is 0. This would only change behavior if
1926         'ec' was non-zero coming into the function, and 'checkAcceptChild'
1927         returned 0. Since every callsite is either directly after an explicit
1928         zeroing of 'ec', or after an 'if (ec)' clause, that case should never
1929         appear. This patch, therefore, shouldn't visibly change WebKit's
1930         behavior.
1931
1932         * dom/ContainerNode.cpp:
1933         (WebCore::checkAddChild):
1934         (WebCore::checkReplaceChild):
1935
1936 2013-02-03  David Kilzer  <ddkilzer@apple.com>
1937
1938         Upstream ENABLE_PDFKIT_PLUGIN settting
1939         <http://webkit.org/b/108792>
1940
1941         Reviewed by Tim Horton.
1942
1943         * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
1944         on iOS since PDFKit is a Mac-only framework.
1945
1946 2013-02-03  Takashi Sakamoto  <tasak@google.com>
1947
1948         Split per-resolve logic out from StyleResolver.
1949         https://bugs.webkit.org/show_bug.cgi?id=96421
1950
1951         Reviewed by Eric Seidel.
1952
1953         Implemented class StyleResolver::State and added m_state to
1954         StyleResolver. All member variables used for per-resolve logic are
1955         moved into the state class.
1956
1957         No new tests, because just refactoring.
1958
1959         * css/SVGCSSStyleSelector.cpp:
1960         (WebCore::StyleResolver::applySVGProperty):
1961         * css/StyleResolver.cpp:
1962         (WebCore):
1963         (WebCore::StyleResolver::StyleResolver):
1964         (WebCore::StyleResolver::collectMatchingRules):
1965         (WebCore::StyleResolver::collectMatchingRulesForRegion):
1966         (WebCore::StyleResolver::sortAndTransferMatchedRules):
1967         (WebCore::StyleResolver::matchScopedAuthorRules):
1968         (WebCore::StyleResolver::styleSharingCandidateMatchesHostRules):
1969         (WebCore::StyleResolver::matchHostRules):
1970         (WebCore::StyleResolver::matchAuthorRules):
1971         (WebCore::StyleResolver::matchUserRules):
1972         (WebCore::StyleResolver::matchUARules):
1973         (WebCore::StyleResolver::collectMatchingRulesForList):
1974         (WebCore::StyleResolver::sortMatchedRules):
1975         (WebCore::StyleResolver::matchAllRules):
1976         (WebCore::StyleResolver::initElement):
1977         (WebCore::StyleResolver::initForStyleResolve):
1978         (WebCore::StyleResolver::styleSharingCandidateMatchesRuleSet):
1979         (WebCore::StyleResolver::canShareStyleWithControl):
1980         (WebCore::StyleResolver::sharingCandidateHasIdenticalStyleAffectingAttributes):
1981         (WebCore::StyleResolver::canShareStyleWithElement):
1982         (WebCore::StyleResolver::locateSharedStyle):
1983         (WebCore::StyleResolver::styleForElement):
1984         (WebCore::StyleResolver::styleForKeyframe):
1985         (WebCore::StyleResolver::pseudoStyleForElement):
1986         (WebCore::StyleResolver::styleForPage):
1987         (WebCore::StyleResolver::defaultStyleForElement):
1988         (WebCore::StyleResolver::adjustRenderStyle):
1989         (WebCore::StyleResolver::updateFont):
1990         (WebCore::StyleResolver::cacheBorderAndBackground):
1991         (WebCore::StyleResolver::pseudoStyleRulesForElement):
1992         (WebCore::StyleResolver::ruleMatches):
1993         (WebCore::StyleResolver::checkRegionSelector):
1994         (WebCore::StyleResolver::applyProperties):
1995         (WebCore::StyleResolver::applyMatchedProperties):
1996         (WebCore::StyleResolver::isLeftPage):
1997         (WebCore::StyleResolver::applyPropertyToStyle):
1998         (WebCore::StyleResolver::useSVGZoomRules):
1999         (WebCore::createGridTrackBreadth):
2000         (WebCore::createGridTrackMinMax):
2001         (WebCore::createGridTrackGroup):
2002         (WebCore::createGridTrackList):
2003         (WebCore::StyleResolver::resolveVariables):
2004         (WebCore::StyleResolver::applyProperty):
2005         (WebCore::StyleResolver::cachedOrPendingFromValue):
2006         (WebCore::StyleResolver::generatedOrPendingFromValue):
2007         (WebCore::StyleResolver::setOrPendingFromValue):
2008         (WebCore::StyleResolver::cursorOrPendingFromValue):
2009         (WebCore::StyleResolver::checkForTextSizeAdjust):
2010         (WebCore::StyleResolver::initializeFontStyle):
2011         (WebCore::StyleResolver::setFontSize):
2012         (WebCore::StyleResolver::colorFromPrimitiveValue):
2013         (WebCore::StyleResolver::loadPendingSVGDocuments):
2014         (WebCore::StyleResolver::cachedOrPendingStyleShaderFromValue):
2015         (WebCore::StyleResolver::loadPendingShaders):
2016         (WebCore::StyleResolver::parseCustomFilterTransformParameter):
2017         (WebCore::StyleResolver::createFilterOperations):
2018         (WebCore::StyleResolver::loadPendingImage):
2019         (WebCore::StyleResolver::loadPendingImages):
2020         (WebCore::StyleResolver::reportMemoryUsage):
2021         * css/StyleResolver.h:
2022         (WebCore::StyleResolver::style):
2023         (WebCore::StyleResolver::parentStyle):
2024         (WebCore::StyleResolver::rootElementStyle):
2025         (WebCore::StyleResolver::element):
2026         (WebCore::StyleResolver::setFontDescription):
2027         (WebCore::StyleResolver::setZoom):
2028         (WebCore::StyleResolver::setEffectiveZoom):
2029         (WebCore::StyleResolver::setTextSizeAdjust):
2030         (WebCore::StyleResolver::setWritingMode):
2031         (WebCore::StyleResolver::setTextOrientation):
2032         (WebCore::StyleResolver::hasParentNode):
2033         (WebCore::StyleResolver::addMatchedRule):
2034         (StyleResolver):
2035         (State):
2036         (WebCore::StyleResolver::State::State):
2037         (WebCore::StyleResolver::applyPropertyToRegularStyle):
2038         (WebCore::StyleResolver::applyPropertyToVisitedLinkStyle):
2039         Added "m_state." to access member variables used for per-resolve logic.
2040
2041 2013-02-03  Kent Tamura  <tkent@chromium.org>
2042
2043         Support setLangAttributeAwareFormControlUIEnabled on Chromium Windows XP
2044         https://bugs.webkit.org/show_bug.cgi?id=108791
2045
2046         Reviewed by Kentaro Hara.
2047
2048         We didn't support setLangAttributeAwareFormControlUIEnabled(true) on
2049         Chromium Windows XP because of lack of LocaleNameToLCID API. This change
2050         add manual mapping from locale names to LCIDs for Windows XP.
2051
2052         No new tests. This doesn't make any behavior changes in products, and
2053         this improves some test results.
2054
2055         * platform/text/win/LocaleWin.cpp:
2056         (WebCore): Define NameToLCIDMap.
2057         (WebCore::removeLastComponent):
2058         Remove the last component separated with '-'.
2059         (WebCore::ensureNameToLCIDMap):
2060         Add locale names used in layout tests.
2061         (WebCore::convertLocaleNameToLCID):
2062         Find an appropriate LCID longest matching with the specified locale name.
2063         (WebCore::LCIDFromLocale):
2064         Use convertLocaleNameToLCID if LocaleNameToLCID is not available.
2065
2066 2013-02-03  Kent Tamura  <tkent@chromium.org>
2067
2068         Add FocusDirection argument to HTMLTextFormControlElement::handleFocusEvent
2069         https://bugs.webkit.org/show_bug.cgi?id=108775
2070
2071         Reviewed by Hajime Morita.
2072
2073         We'd like to add a FocusDirection argument to
2074         HTMLTextFormControlElement::handleFocusEvent in order to fix Bug
2075         108447. This is a preparation for it.
2076
2077         We need to add FocusDirection arguments to some focus-related functions
2078         to pass it correctly when TAB or Shift+TAB is pressed.
2079
2080         No new tests. This doesn't make any behavior changes.
2081
2082         * html/HTMLTextFormControlElement.cpp:
2083         (WebCore::HTMLTextFormControlElement::dispatchFocusEvent):
2084         To pass the FocusDirection argument to handleFocusEvent, we need to add
2085         it to dispatchFocusEvent too.
2086         * html/HTMLTextFormControlElement.h:
2087         (HTMLTextFormControlElement):
2088         Add FocusDirection arugment to dispatchFocusEvent.
2089         (WebCore::HTMLTextFormControlElement::handleFocusEvent):
2090         Add FocusDirection argument.
2091
2092         * dom/Node.cpp:
2093         (WebCore::Node::dispatchFocusEvent): Add FocusDirection argument.
2094         * dom/Node.h:
2095         (Node): Ditto.
2096
2097         * dom/Document.cpp:
2098         (WebCore::Document::setFocusedNode): Add FocusDirection argument in
2099         order to pass it to Node::dispatchFocusEvent.
2100         * dom/Document.h:
2101         (Document): Ditto.
2102
2103         * page/FocusController.cpp:
2104         (WebCore::dispatchEventsOnWindowAndFocusedNode):
2105         Adjust Node::dispatchFocusEvent argument.
2106         (WebCore::FocusController::advanceFocusInDocumentOrder):
2107         Pass FocusDirectio to Element::focus.
2108         (WebCore::FocusController::setFocusedNode):
2109         Add FocusDirection argument in order to pass it to Document::setFocusedNode.
2110         (WebCore::FocusController::advanceFocusDirectionallyInContainer):
2111         Pass FocusDirectio to Element::focus.
2112         * page/FocusController.h:
2113         (FocusController): Add FocusDirection argument to setFocusedNode.
2114
2115         * dom/Element.cpp:
2116         (WebCore::Element::focus):
2117         Add FocusDirection argument to pass it to FocusController::setFocusedNode.
2118         * dom/Element.h:
2119         (Element): Ditto.
2120
2121         * WebCore.exp.in:
2122         Update FocusController::setFocusedNode and Document::setFocusedNode.
2123
2124         * html/HTMLLabelElement.cpp:
2125         (WebCore::HTMLLabelElement::focus): Adjust FocusDirection argument.
2126         * html/HTMLLabelElement.h:
2127         (HTMLLabelElement): Ditto.
2128         * html/HTMLLegendElement.cpp:
2129         (WebCore::HTMLLegendElement::focus): Ditto.
2130         * html/HTMLLegendElement.h:
2131         (HTMLLegendElement): Ditto.
2132         * html/HTMLSelectElement.cpp:
2133         (WebCore::HTMLSelectElement::dispatchFocusEvent): Ditto.
2134         * html/HTMLSelectElement.h:
2135         (HTMLSelectElement): Ditto.
2136
2137         * html/HTMLInputElement.cpp:
2138         (WebCore::HTMLInputElement::defaultFocus):
2139         Add FocusDirection argument in order to pass it from
2140         HTMLInputElement::focus() to HTMLTextFormControlElement::focus().
2141         (WebCore::HTMLInputElement::focus):
2142         Pass the FocusDirection argument to InputType::focus. See above.
2143         (WebCore::HTMLInputElement::handleFocusEvent):
2144         Adjust FocusDirection argument.
2145         * html/HTMLInputElement.h:
2146         (HTMLInputElement):
2147         * html/InputType.cpp:
2148         (WebCore::InputType::focus): Add FocusDirection argument.
2149         * html/InputType.h:
2150         (InputType): Ditto.
2151
2152         * html/BaseMultipleFieldsDateAndTimeInputType.cpp:
2153         (WebCore::BaseMultipleFieldsDateAndTimeInputType::focus):
2154         Add FocusDirection argument to follow InputType.
2155         * html/BaseMultipleFieldsDateAndTimeInputType.h:
2156         (BaseMultipleFieldsDateAndTimeInputType): Ditto.
2157
2158 2013-02-03  Kassy Coan  <kassycoan@chromium.org>
2159
2160         Adds usage instrumentation for indexedDB
2161         Includes new header file in project files
2162
2163         https://bugs.webkit.org/show_bug.cgi?id=107772
2164
2165         Reviewed by Tony Chang.
2166
2167         Currently untestable. Has zero effect apart from histogramming.
2168
2169         * GNUmakefile.list.am:
2170         * Modules/indexeddb/IDBDatabase.cpp:
2171         (WebCore::IDBDatabase::createObjectStore):
2172         (WebCore::IDBDatabase::deleteObjectStore):
2173         (WebCore::IDBDatabase::transaction):
2174         * Modules/indexeddb/IDBFactory.cpp:
2175         (WebCore::IDBFactory::openInternal):
2176         (WebCore::IDBFactory::deleteDatabase):
2177         * Modules/indexeddb/IDBHistograms.h: Added.
2178         (WebCore):
2179         * Target.pri:
2180         * WebCore.gypi:
2181         * WebCore.vcproj/WebCore.vcproj:
2182         * WebCore.xcodeproj/project.pbxproj:
2183
2184 2013-02-03  Hayato Ito  <hayato@chromium.org>
2185
2186         Split default style-sheet statics out from StyleResolver into its own class
2187         https://bugs.webkit.org/show_bug.cgi?id=107780
2188
2189         Reviewed by Dimitri Glazkov.
2190
2191         Factored static variables and logic about default style sheets out from StyleResolver into its own class
2192         CSSDefaultStyleSheets. This is a following patch after r141373.
2193
2194         No new tests, refactoring only.
2195
2196         * CMakeLists.txt:
2197         * GNUmakefile.list.am:
2198         * Target.pri:
2199         * WebCore.gypi:
2200         * WebCore.xcodeproj/project.pbxproj:
2201         * css/CSSAllInOne.cpp:
2202         * css/CSSDefaultStyleSheets.cpp: Added.
2203         (WebCore):
2204         (WebCore::elementCanUseSimpleDefaultStyle):
2205         (WebCore::screenEval):
2206         (WebCore::printEval):
2207         (WebCore::parseUASheet):
2208         (WebCore::CSSDefaultStyleSheets::initDefaultStyle):
2209         (WebCore::CSSDefaultStyleSheets::loadFullDefaultStyle):
2210         (WebCore::CSSDefaultStyleSheets::loadSimpleDefaultStyle):
2211         (WebCore::CSSDefaultStyleSheets::viewSourceStyle):
2212         (WebCore::CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement):
2213         * css/CSSDefaultStyleSheets.h: Added.
2214         (WebCore):
2215         (CSSDefaultStyleSheets):
2216         * css/StyleResolver.cpp:
2217         (WebCore):
2218         (WebCore::StyleResolver::StyleResolver):
2219         (WebCore::StyleResolver::matchUARules):
2220         (WebCore::StyleResolver::styleForElement):
2221         (WebCore::StyleResolver::styleForPage):
2222         (WebCore::InspectorCSSOMWrappers::getWrapperForRuleInSheets):
2223         (WebCore::StyleResolver::collectFeatures):
2224         (WebCore::StyleResolver::reportMemoryUsage):
2225
2226 2013-02-03  Kentaro Hara  <haraken@chromium.org>
2227
2228         [V8] Simplify CodeGeneratorV8.pm by using InheritsExtendedAttribute("EventTarget")
2229         https://bugs.webkit.org/show_bug.cgi?id=108441
2230
2231         Reviewed by Adam Barth.
2232
2233         A complicated condition in GetInternalFields() can be simplified
2234         by using InheritsExtendedAttribute("EventTarget").
2235
2236         No tests. No change in behavior.
2237
2238         * bindings/scripts/CodeGeneratorV8.pm:
2239         (GetInternalFields):
2240         * dom/EventTarget.idl: Added [EventTarget] which should have been added.
2241         * svg/SVGElementInstance.idl: Ditto.
2242
2243 2013-02-03  Gustavo Noronha Silva  <gns@gnome.org>
2244
2245         [Soup] Do not use local variables for the client
2246         https://bugs.webkit.org/show_bug.cgi?id=108714
2247
2248         Reviewed by Martin Robinson.
2249
2250         Covered by existing tests, refactoring code only.
2251
2252         We have had problems in the past with the client being destroyed or
2253         changed inside a method or function, and we ended up with a stale
2254         pointer, leading to crashes. This refactoring is an effort to minimize
2255         the possibility of hitting that same issue in the future.
2256
2257         * platform/network/soup/ResourceHandleSoup.cpp:
2258         (WebCore::redirectSkipCallback): no longer use a local variable to hold
2259         the client.
2260         (WebCore::wroteBodyDataCallback): ditto.
2261         (WebCore::nextMultipartResponsePartCallback): ditto.
2262         (WebCore::sendRequestCallback): ditto.
2263         (WebCore::closeCallback): ditto.
2264         (WebCore::readCallback): ditto.
2265
2266 2013-02-03  Kentaro Hara  <haraken@chromium.org>
2267
2268         [V8] Pass an Isolate to HasInstance() (part 1)
2269         https://bugs.webkit.org/show_bug.cgi?id=108617
2270
2271         Reviewed by Adam Barth.
2272
2273         This is one of efforts to pass an Isolate to GetTemplate().
2274
2275         No tests. No change in behavior.
2276
2277         * bindings/scripts/CodeGeneratorV8.pm:
2278         (JSValueToNative):
2279         * bindings/scripts/test/V8/V8Float64Array.cpp:
2280         (WebCore::Float64ArrayV8Internal::fooCallback):
2281         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
2282         (WebCore::TestActiveDOMObjectV8Internal::excitingFunctionCallback):
2283         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
2284         (WebCore::TestEventTargetV8Internal::dispatchEventCallback):
2285         * bindings/scripts/test/V8/V8TestInterface.cpp:
2286         (WebCore::TestInterfaceV8Internal::supplementalNodeAttrSetter):
2287         (WebCore::TestInterfaceV8Internal::supplementalMethod2Callback):
2288         * bindings/scripts/test/V8/V8TestObj.cpp:
2289         (WebCore::TestObjV8Internal::testObjAttrAttrSetter):
2290         (WebCore::TestObjV8Internal::XMLObjAttrAttrSetter):
2291         (WebCore::TestObjV8Internal::typedArrayAttrAttrSetter):
2292         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeAttrSetter):
2293         (WebCore::TestObjV8Internal::withScriptStateAttributeRaisesAttrSetter):
2294         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeRaisesAttrSetter):
2295         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeAttrSetter):
2296         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeRaisesAttrSetter):
2297         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateWithSpacesAttributeAttrSetter):
2298         (WebCore::TestObjV8Internal::withScriptArgumentsAndCallStackAttributeAttrSetter):
2299         (WebCore::TestObjV8Internal::mutablePointAttrSetter):
2300         (WebCore::TestObjV8Internal::immutablePointAttrSetter):
2301         (WebCore::TestObjV8Internal::voidMethodWithArgsCallback):
2302         (WebCore::TestObjV8Internal::longMethodWithArgsCallback):
2303         (WebCore::TestObjV8Internal::objMethodWithArgsCallback):
2304         (WebCore::TestObjV8Internal::methodThatRequiresAllArgsAndThrowsCallback):
2305         (WebCore::TestObjV8Internal::overloadedMethod1Callback):
2306         (WebCore::TestObjV8Internal::overloadedMethod2Callback):
2307         (WebCore::TestObjV8Internal::overloadedMethod8Callback):
2308         (WebCore::TestObjV8Internal::convert1Callback):
2309         (WebCore::TestObjV8Internal::convert2Callback):
2310         (WebCore::TestObjV8Internal::convert4Callback):
2311         (WebCore::TestObjV8Internal::convert5Callback):
2312         (WebCore::TestObjV8Internal::variadicNodeMethodCallback):
2313         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
2314         (WebCore::V8TestOverloadedConstructors::constructor1Callback):
2315         (WebCore::V8TestOverloadedConstructors::constructor2Callback):
2316         (WebCore::V8TestOverloadedConstructors::constructor3Callback):
2317         * bindings/v8/Dictionary.cpp:
2318         (WebCore::Dictionary::get):
2319         * bindings/v8/ScriptProfiler.cpp:
2320         (WebCore::ScriptProfiler::visitNodeWrappers):
2321         * bindings/v8/SerializedScriptValue.cpp:
2322         (WebCore::SerializedScriptValue::SerializedScriptValue):
2323         (WebCore::SerializedScriptValue::deserialize):
2324         * bindings/v8/V8Binding.cpp:
2325         (WebCore::toDOMStringList):
2326         (WebCore::toXPathNSResolver):
2327         * bindings/v8/V8Binding.h:
2328         (WebCore):
2329         * bindings/v8/V8Collection.cpp:
2330         (WebCore::toOptionsCollectionSetter):
2331         * bindings/v8/V8GCController.cpp:
2332         (WebCore::WrapperVisitor::WrapperVisitor):
2333         (WrapperVisitor):
2334         (WebCore::V8GCController::majorGCPrologue):
2335         * bindings/v8/V8NPObject.cpp:
2336         (WebCore::npObjectInvokeImpl):
2337         * bindings/v8/V8Utilities.cpp:
2338         (WebCore::extractTransferables):
2339         * bindings/v8/custom/V8DocumentCustom.cpp:
2340         (WebCore::V8Document::evaluateCallback):
2341
2342 2013-02-03  Joanmarie Diggs  <jdiggs@igalia.com>
2343
2344         [GTK] Make distcheck fails
2345         https://bugs.webkit.org/show_bug.cgi?id=108756
2346
2347         Reviewed by Kentaro Hara.
2348
2349         * GNUmakefile.list.am: Remove header files which no longer exist;
2350         correct one which got added incorrectly.
2351
2352 2013-02-03  Kentaro Hara  <haraken@chromium.org>
2353
2354         [V8] Pass an Isolate to HasInstance() (part 3)
2355         https://bugs.webkit.org/show_bug.cgi?id=108622
2356
2357         Reviewed by Adam Barth.
2358
2359         This is one of efforts to pass an Isolate to GetTemplate().
2360
2361         No tests. No change in behavior.
2362
2363         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
2364         (WebCore::V8InjectedScriptHost::isHTMLAllCollectionCallback):
2365         (WebCore::V8InjectedScriptHost::typeCallback):
2366         (WebCore::V8InjectedScriptHost::getEventListenersCallback):
2367         * bindings/v8/custom/V8NodeCustom.cpp:
2368         (WebCore::V8Node::insertBeforeCallback):
2369         (WebCore::V8Node::replaceChildCallback):
2370         (WebCore::V8Node::removeChildCallback):
2371         (WebCore::V8Node::appendChildCallback):
2372         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
2373         (WebCore::toWebGLUniformLocation):
2374         (WebCore::V8WebGLRenderingContext::getAttachedShadersCallback):
2375         (WebCore::V8WebGLRenderingContext::getProgramParameterCallback):
2376         (WebCore::V8WebGLRenderingContext::getShaderParameterCallback):
2377         (WebCore::V8WebGLRenderingContext::getUniformCallback):
2378         (WebCore::vertexAttribAndUniformHelperf):
2379         (WebCore::uniformHelperi):
2380         (WebCore::uniformMatrixHelper):
2381         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
2382         (WebCore::isDocumentType):
2383         (WebCore::V8XMLHttpRequest::sendCallback):
2384
2385 2013-02-03  Kentaro Hara  <haraken@chromium.org>
2386
2387         [V8] Pass an Isolate to HasInstance() (part 2)
2388         https://bugs.webkit.org/show_bug.cgi?id=108620
2389
2390         Reviewed by Adam Barth.
2391
2392         This is one of efforts to pass an Isolate to GetTemplate().
2393
2394         No tests. No change in behavior.
2395
2396         * bindings/v8/custom/V8ArrayBufferViewCustom.h:
2397         (WebCore::constructWebGLArray):
2398         (WebCore::setWebGLArrayHelper):
2399         * bindings/v8/custom/V8AudioBufferSourceNodeCustom.cpp:
2400         (WebCore::V8AudioBufferSourceNode::bufferAccessorSetter):
2401         * bindings/v8/custom/V8BlobCustom.cpp:
2402         (WebCore::V8Blob::constructorCallbackCustom):
2403         * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
2404         (WebCore::toCanvasStyle):
2405         (WebCore::V8CanvasRenderingContext2D::strokeStyleAccessorSetter):
2406         * bindings/v8/custom/V8ClipboardCustom.cpp:
2407         (WebCore::V8Clipboard::setDragImageCallback):
2408         * bindings/v8/custom/V8CryptoCustom.cpp:
2409         (WebCore::V8Crypto::getRandomValuesCallback):
2410         * bindings/v8/custom/V8DOMFormDataCustom.cpp:
2411         (WebCore::V8DOMFormData::constructorCallbackCustom):
2412         (WebCore::V8DOMFormData::appendCallback):
2413         * bindings/v8/custom/V8DataViewCustom.cpp:
2414         (WebCore::V8DataView::constructorCallbackCustom):
2415         * bindings/v8/custom/V8DocumentCustom.cpp:
2416         (WebCore::V8Document::evaluateCallback):
2417         * bindings/v8/custom/V8HTMLMediaElementCustom.cpp:
2418         (WebCore::V8HTMLMediaElement::controllerAccessorSetter):
2419         * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
2420         (WebCore::V8HTMLOptionsCollection::addCallback):
2421         * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
2422         (WebCore::removeElement):
2423
2424 2013-02-03  Mike West  <mkwst@chromium.org>
2425
2426         Cleanup: 'ExceptionCode& ec', not 'ExceptionCode &ec'.
2427         https://bugs.webkit.org/show_bug.cgi?id=108769
2428
2429         Reviewed by Eric Seidel.
2430
2431         Does what it says on the tin: reference parameters should read
2432         'type& name', and this patch fixes the two occurances of 'type &name'
2433         that cropped up for ExceptionCode.
2434
2435         Pure style change; no effect on behavior.
2436
2437         * html/HTMLOptionsCollection.cpp:
2438         (WebCore::HTMLOptionsCollection::add):
2439
2440 2013-02-02  Jun Jiang  <jun.a.jiang@intel.com>
2441
2442         Optimize some operations for float type in texture format conversions of WebGL
2443         https://bugs.webkit.org/show_bug.cgi?id=107526
2444
2445         Reviewed by Darin Adler.
2446
2447         Some small changes are made to optimize the operations for float type in the texture format conversion of WebGL to improve performance.
2448
2449         Already covered by current tests.
2450
2451         * platform/graphics/GraphicsContext3D.cpp:
2452         (WebCore):
2453
2454 2013-02-02  Simon Fraser  <simon.fraser@apple.com>
2455
2456         Clean up the storage of dirty bits on nodes in the scrolling state tree
2457         https://bugs.webkit.org/show_bug.cgi?id=108744
2458
2459         Reviewed by Sam Weinig.
2460
2461         ScrollingStateNode and its subclasses used different techniques for
2462         tracking which properties changed. ScrollingStateNode tracked its layers
2463         via a bool member and some layer-specific methods, but also had virtual
2464         methods to allow subclasses to track properties via a bit mask.
2465         
2466         Clean this up by having the base class store the bit mask, and use
2467         enums to specify bits for the various properties. All properties are thus
2468         tracked in the same way. Bits are read and written through non-virtual member
2469         functions on ScrollingStateNode. All bit checking is done via hasChangedProperty().
2470
2471         * page/scrolling/ScrollingStateFixedNode.cpp:
2472         (WebCore::ScrollingStateFixedNode::ScrollingStateFixedNode): m_changedProperties is now on the base class.
2473         (WebCore::ScrollingStateFixedNode::updateConstraints): Use setPropertyChanged()
2474         * page/scrolling/ScrollingStateFixedNode.h: Remove overrides that are no longer needed.
2475         * page/scrolling/ScrollingStateNode.cpp:
2476         (WebCore::ScrollingStateNode::ScrollingStateNode): Initialize m_changedProperties,
2477         m_scrollLayerDidChange no longer tracked separately.
2478         (WebCore::ScrollingStateNode::cloneAndReset):
2479         * page/scrolling/ScrollingStateNode.h:
2480         (WebCore::ScrollingStateNode::hasChangedProperties):
2481         (WebCore::ScrollingStateNode::hasChangedProperty): Tests the bit.
2482         (WebCore::ScrollingStateNode::resetChangedProperties): Set all bits to 0.
2483         (WebCore::ScrollingStateNode::setPropertyChanged): Set the bit.
2484         (WebCore::ScrollingStateNode::changedProperties): Private to discourage incorrect usage
2485         (changeProperties() & foo).
2486         * page/scrolling/ScrollingStateScrollingNode.cpp:
2487         (WebCore::ScrollingStateScrollingNode::ScrollingStateScrollingNode): Base class does the copying now.
2488         (WebCore::ScrollingStateScrollingNode::setViewportRect): Use setPropertyChanged().
2489         (WebCore::ScrollingStateScrollingNode::setContentsSize): Ditto.
2490         (WebCore::ScrollingStateScrollingNode::setFrameScaleFactor): Etc.
2491         (WebCore::ScrollingStateScrollingNode::setNonFastScrollableRegion):
2492         (WebCore::ScrollingStateScrollingNode::setWheelEventHandlerCount):
2493         (WebCore::ScrollingStateScrollingNode::setShouldUpdateScrollLayerPositionOnMainThread):
2494         (WebCore::ScrollingStateScrollingNode::setHorizontalScrollElasticity):
2495         (WebCore::ScrollingStateScrollingNode::setVerticalScrollElasticity):
2496         (WebCore::ScrollingStateScrollingNode::setHasEnabledHorizontalScrollbar):
2497         (WebCore::ScrollingStateScrollingNode::setHasEnabledVerticalScrollbar):
2498         (WebCore::ScrollingStateScrollingNode::setHorizontalScrollbarMode):
2499         (WebCore::ScrollingStateScrollingNode::setVerticalScrollbarMode):
2500         (WebCore::ScrollingStateScrollingNode::setRequestedScrollPosition):
2501         (WebCore::ScrollingStateScrollingNode::setScrollOrigin):
2502         * page/scrolling/ScrollingStateScrollingNode.h:
2503         (ScrollingStateScrollingNode):
2504         * page/scrolling/ScrollingStateStickyNode.cpp:
2505         (WebCore::ScrollingStateStickyNode::ScrollingStateStickyNode):
2506         (WebCore::ScrollingStateStickyNode::updateConstraints):
2507         * page/scrolling/ScrollingStateStickyNode.h:
2508         * page/scrolling/ScrollingTree.cpp:
2509         (WebCore::ScrollingTree::commitNewTreeState):
2510         * page/scrolling/ScrollingTreeScrollingNode.cpp:
2511         (WebCore::ScrollingTreeScrollingNode::update):
2512         * page/scrolling/mac/ScrollingStateNodeMac.mm:
2513         (WebCore::ScrollingStateNode::setScrollLayer):
2514         * page/scrolling/mac/ScrollingStateScrollingNodeMac.mm:
2515         (WebCore::ScrollingStateScrollingNode::setCounterScrollingLayer):
2516         * page/scrolling/mac/ScrollingTreeFixedNode.mm:
2517         (WebCore::ScrollingTreeFixedNode::update):
2518         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
2519         (WebCore::ScrollingTreeScrollingNodeMac::update):
2520         * page/scrolling/mac/ScrollingTreeStickyNode.mm:
2521         (WebCore::ScrollingTreeStickyNode::update):
2522
2523 2013-02-02  Simon Fraser  <simon.fraser@apple.com>
2524
2525         Fixed and sticky nodes have no nodeID set
2526         https://bugs.webkit.org/show_bug.cgi?id=108734
2527
2528         Reviewed by Sam Weinig.
2529         
2530         Push ScrollingNodeIDs onto scrolling nodes at construction time, and thereafter
2531         treat them as readonly. Previously, only the root scrolling node would have a node ID.
2532         
2533         Node IDs aren't actually used by the scrolling tree yet, but are useful for debugging.
2534
2535         Not testable since we only dump the scrolling state tree, not the scrolling
2536         node tree in tests.
2537
2538         * page/scrolling/ScrollingTree.cpp:
2539         (WebCore::ScrollingTree::ScrollingTree): No longer create the root node here;
2540         we can only create it when we know what its ID will be.
2541         (WebCore::ScrollingTree::updateTreeFromStateNode): Create the root node if
2542         necessary. Pass node IDs into create methods.
2543         * page/scrolling/ScrollingTreeNode.cpp:
2544         (WebCore::ScrollingTreeNode::ScrollingTreeNode):
2545         * page/scrolling/ScrollingTreeNode.h:
2546         * page/scrolling/ScrollingTreeScrollingNode.cpp:
2547         (WebCore::ScrollingTreeScrollingNode::ScrollingTreeScrollingNode):
2548         * page/scrolling/ScrollingTreeScrollingNode.h:
2549         * page/scrolling/mac/ScrollingTreeFixedNode.h:
2550         * page/scrolling/mac/ScrollingTreeFixedNode.mm:
2551         (WebCore::ScrollingTreeFixedNode::create):
2552         (WebCore::ScrollingTreeFixedNode::ScrollingTreeFixedNode):
2553         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.h:
2554         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
2555         (WebCore::ScrollingTreeScrollingNode::create):
2556         (WebCore::ScrollingTreeScrollingNodeMac::ScrollingTreeScrollingNodeMac):
2557         * page/scrolling/mac/ScrollingTreeStickyNode.h:
2558         * page/scrolling/mac/ScrollingTreeStickyNode.mm:
2559         (WebCore::ScrollingTreeStickyNode::create):
2560         (WebCore::ScrollingTreeStickyNode::ScrollingTreeStickyNode):
2561
2562 2013-02-02  Takashi Sakamoto  <tasak@google.com>
2563
2564         Making -webkit-image-set() the first value of background property causes crash.
2565         https://bugs.webkit.org/show_bug.cgi?id=108409
2566
2567         Reviewed by Beth Dakin.
2568
2569         CSSParser::addFillValue should use lval->isBaseValueList() instead
2570         of lval->isValueList(). If lval is -webkit-image-set, rval is appended
2571         to -webkit-image-set.
2572
2573         Test: fast/css/image-set-value-crash-in-fillImageSet.html
2574
2575         * css/CSSParser.cpp:
2576         (WebCore::CSSParser::addFillValue):
2577         If lval is not a value list, lval is initialized by using
2578         CSSValueList::createCommaSeparated(). So we have to check whether
2579         lval is created by CSSValueList::createCommaSeparated() or not.
2580
2581 2013-02-02  David Kilzer  <ddkilzer@apple.com>
2582
2583         Upstream iOS FeatureDefines
2584         <http://webkit.org/b/108753>
2585
2586         Reviewed by Anders Carlsson.
2587
2588         * Configurations/FeatureDefines.xcconfig:
2589         - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
2590         - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
2591         - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO.  Add
2592           PLATFORM_NAME variant to reduce future merge conflicts. 
2593
2594 2013-02-02  Philippe Normand  <pnormand@igalia.com>
2595
2596         [GStreamer] Media tests fix after r141695.
2597
2598         Rubber-stamped by Martin Robinson.
2599
2600         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2601         (WebCore::MediaPlayerPrivateGStreamer::setPlaybinURL): Remove
2602         both fragment and query string for file:// uris before loading.
2603
2604 2013-02-02  Patrick Gansterer  <paroga@webkit.org>
2605
2606         Build fix for WinCE after r141637.
2607
2608         * platform/graphics/wince/ImageBufferWinCE.cpp:
2609
2610 2013-02-01  Philippe Normand  <pnormand@igalia.com>
2611
2612         [GStreamer] webkitwebsrc is exposed to application-side
2613         https://bugs.webkit.org/show_bug.cgi?id=108088
2614
2615         Reviewed by Martin Robinson.
2616
2617         Switch the webkitwebsrc to handle webkit+http(s) uris so it is now
2618         explicit that this element is meant to be used preferrably inside
2619         WebKit. This change is internal to the player.
2620
2621         No new tests, covered by existing http/tests/media tests.
2622
2623         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2624         (WebCore::MediaPlayerPrivateGStreamer::setPlaybinURL):
2625         (WebCore):
2626         (WebCore::MediaPlayerPrivateGStreamer::load):
2627         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
2628         (MediaPlayerPrivateGStreamer):
2629         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
2630         (webKitWebSrcGetProtocols):
2631         (webKitWebSrcSetUri):
2632
2633 2013-02-02  Simon Hausmann  <simon.hausmann@digia.com>
2634
2635         Unreviewed trivial prospective build fix for A17n disabled
2636         configurations.
2637
2638         The dummy computed object attriute cache control functions need to be defined
2639         as being member functions of AXObjectCache, because that's where they are
2640         declared.
2641
2642         * accessibility/AXObjectCache.h:
2643         (WebCore::AXObjectCache::startCachingComputedObjectAttributesUntilTreeMutates):
2644         (WebCore::AXObjectCache::stopCachingComputedObjectAttributes):
2645
2646 2013-02-02  Antoine Quint  <graouts@apple.com>
2647
2648         Creating a WebInspector.ContextMenu without an event crashes WebCore when calling .show()
2649         https://bugs.webkit.org/show_bug.cgi?id=108636
2650
2651         Reviewed by Pavel Feldman.
2652
2653         Return early if InspectorFrontendHost::showContextMenu() is called without an event and
2654         assert in ContextMenuController::createContextMenu() in case no event was provided.
2655
2656         * inspector/InspectorFrontendHost.cpp:
2657         (WebCore::InspectorFrontendHost::showContextMenu):
2658         * page/ContextMenuController.cpp:
2659         (WebCore::ContextMenuController::createContextMenu):
2660
2661 2013-02-02  Jonathan Feldstein  <jfeldstein@rim.com>
2662
2663         [BlackBerry] Improper initialization of ANGLEResources
2664         https://bugs.webkit.org/show_bug.cgi?id=101489
2665
2666         Reviewed by Antonio Gomes.
2667
2668         MaxDrawBuffers, OES_standard_derivatives, OES_EGL_image_external and ARB_texture_rectangle have already been initialized through ShBuiltInResources function and these fields do not need to be set again in GraphicsContext3dBlackBerry.cpp. In addition, the extension flags cannot be set to true without getExtension having been called (Khronos WebGL specs, section 5.14.14.). Thus these lines need to be removed.
2669
2670         * platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:
2671         (WebCore::GraphicsContext3D::GraphicsContext3D):
2672
2673 2013-02-02  Vivek Galatage  <vivek.vg@samsung.com>
2674
2675         Web Inspector: Refactor InspectorDOMStorageAgent::getDOMStorageEntries to report the error messages
2676         https://bugs.webkit.org/show_bug.cgi?id=108611
2677
2678         Reviewed by Pavel Feldman.
2679
2680         Added reporting of various error messages. Moved the modification of output
2681         parameter at a later stage when there are no errors reported.
2682
2683         No new tests as code refactoring.
2684
2685         * inspector/InspectorDOMStorageAgent.cpp:
2686         (WebCore::hadException):
2687         (WebCore):
2688         (WebCore::InspectorDOMStorageAgent::getDOMStorageEntries):
2689
2690 2013-02-02  Andrey Lushnikov  <lushnikov@chromium.org>
2691
2692         Web Inspector: fix bug in highlighting single chars via highlightRange API of DTE
2693         https://bugs.webkit.org/show_bug.cgi?id=108685
2694
2695         Reviewed by Pavel Feldman.
2696
2697         Use Math.min instead of Math.max in rangesForLine method.
2698
2699         Updated test: text-editor-highlight-api.html
2700
2701         * inspector/front-end/DefaultTextEditor.js:
2702         (WebInspector.TextEditorMainPanel.RangeHighlightDescriptor.prototype.rangesForLine):
2703
2704 2013-02-02  Tony Gentilcore  <tonyg@chromium.org>
2705
2706         Continue making XSSAuditor thread safe: Remove unsafe AtomicString compares
2707         https://bugs.webkit.org/show_bug.cgi?id=108557
2708
2709         Reviewed by Adam Barth.
2710
2711         Unfortunately HTMLNames comparisons will always be false on a non-main thread
2712         with our current design, so we have to use some "threadSafeMatch" helpers written
2713         for the HTMLBackgroundParser.
2714
2715         Also factor out threadSafeMatch() methods to HTMLParserIdioms.
2716
2717         No new tests because no new functionality.
2718
2719         * html/parser/BackgroundHTMLParser.cpp:
2720         (WebCore):
2721         * html/parser/HTMLParserIdioms.cpp:
2722         (WebCore::threadSafeEqual):
2723         (WebCore):
2724         (WebCore::threadSafeMatch):
2725         * html/parser/HTMLParserIdioms.h:
2726         (WebCore):
2727         * html/parser/XSSAuditor.cpp:
2728         (WebCore::XSSAuditor::eraseAttributeIfInjected):
2729
2730 2013-02-01  James Simonsen  <simonjam@chromium.org>
2731
2732         Add didChangePriority() to ResourceHandle
2733         https://bugs.webkit.org/show_bug.cgi?id=107995
2734
2735         Reviewed by Darin Fisher.
2736
2737         For PLT, it's important that preloads remain a lower priority than parser requested resources.
2738         This can lead to a 5% improvement.
2739
2740         The plan is to use this plumbing to expose the desired behavior. This patch simply allows a
2741         resource's priority to change and have it propagate to the network layer. An upcoming patch will
2742         lower the priority of preloads and then increase the priority when the parser officially requests
2743         it.
2744
2745         No new tests. No visible change, because priority doesn't change yet.
2746
2747         * loader/cache/CachedResource.cpp:
2748         (WebCore):
2749         (WebCore::CachedResource::setLoadPriority):
2750         * loader/cache/CachedResourceLoader.cpp:
2751         (WebCore::CachedResourceLoader::requestResource): Allow loads to modify priority.
2752         * loader/cache/CachedResourceRequest.h:
2753         (WebCore::CachedResourceRequest::setPriority): Notify when priority changes.
2754         * platform/network/ResourceHandle.cpp:
2755         (WebCore::ResourceHandle::didChangePriority): Added.
2756         (WebCore):
2757         * platform/network/ResourceHandle.h:
2758         (ResourceHandle):
2759         * platform/network/chromium/ResourceHandle.cpp:
2760         (WebCore::ResourceHandleInternal::didChangePriority):
2761         (WebCore):
2762         (WebCore::ResourceHandle::didChangePriority):
2763         * platform/network/chromium/ResourceHandleInternal.h:
2764         (ResourceHandleInternal):
2765
2766 2013-02-01  Roger Fong  <roger_fong@apple.com>
2767
2768         Unreviewed. Clean up WebCore VS2010 project.
2769
2770         * WebCore.vcxproj/WebCore.vcxproj:
2771         * WebCore.vcxproj/WebCore.vcxproj.filters:
2772         * WebCore.vcxproj/WebCoreCommon.props:
2773         * WebCore.vcxproj/WebCoreGenerated.make:
2774         * WebCore.vcxproj/WebCorePreLink.cmd: Removed.
2775         * WebCore.vcxproj/build-generated-files.sh:
2776
2777 2013-02-01  Sam Weinig  <sam@webkit.org>
2778
2779         Don't use deprecated method -[NSImage dissolveToPoint:fraction:]
2780         <rdar://problem/11723792>
2781         https://bugs.webkit.org/show_bug.cgi?id=108739
2782
2783         Reviewed by Anders Carlsson.
2784
2785         * platform/mac/DragImageMac.mm:
2786         (WebCore::dissolveDragImageToFraction):
2787         Remove use of deprecated NSImage methods and simplify a bit.
2788
2789 2013-02-01  Andrey Lushnikov  <lushnikov@chromium.org>
2790
2791         Web Inspector: fix "DOM Exception 8" when deleting lines containing decoration in DTE.
2792         https://bugs.webkit.org/show_bug.cgi?id=108689
2793
2794         Reviewed by Alexander Pavlov.
2795
2796         Add a check that decoration element is still added to the line before trying to delete it. This
2797         won't be true if the whole line is deleted in contentEditable,
2798         and this is the reason for the exception to be thrown.
2799
2800         No new tests.
2801
2802         * inspector/front-end/DefaultTextEditor.js:
2803         (WebInspector.TextEditorMainChunk.prototype.removeAllDecorations):
2804
2805 2013-02-01  Sheriff Bot  <webkit.review.bot@gmail.com>
2806
2807         Unreviewed, rolling out r141669.
2808         http://trac.webkit.org/changeset/141669
2809         https://bugs.webkit.org/show_bug.cgi?id=108728
2810
2811         Broke the windows build. (Requested by leviw on #webkit).
2812
2813         * rendering/RenderBoxModelObject.cpp:
2814         (WebCore::RenderBoxModelObject::computedCSSPaddingTop):
2815         (WebCore):
2816         (WebCore::RenderBoxModelObject::computedCSSPaddingBottom):
2817         (WebCore::RenderBoxModelObject::computedCSSPaddingLeft):
2818         (WebCore::RenderBoxModelObject::computedCSSPaddingRight):
2819         (WebCore::RenderBoxModelObject::computedCSSPaddingBefore):
2820         (WebCore::RenderBoxModelObject::computedCSSPaddingAfter):
2821         (WebCore::RenderBoxModelObject::computedCSSPaddingStart):
2822         (WebCore::RenderBoxModelObject::computedCSSPaddingEnd):
2823         * rendering/RenderBoxModelObject.h:
2824         (RenderBoxModelObject):
2825
2826 2013-02-01  Emil A Eklund  <eae@chromium.org>
2827
2828         Remove duplicate code in RenderBoxModelObject::computedCSSPadding*
2829         https://bugs.webkit.org/show_bug.cgi?id=108707
2830
2831         Reviewed by Levi Weintraub.
2832         
2833         The computedCSSPaddingTop/Bottom/... methods in
2834         RenderBoxModelObject all do pretty much exactly the same thing
2835         yet share no code.
2836         
2837         Break out shared code into computedCSSPadding method and have
2838         the top/bottom/left/right/... ones call it with the appropriate
2839         length value.
2840
2841         No new tests, no change in functionality.
2842
2843         * rendering/RenderBoxModelObject.cpp:
2844         (WebCore::RenderBoxModelObject::computedCSSPadding):
2845         * rendering/RenderBoxModelObject.h:
2846         (WebCore::RenderBoxModelObject::computedCSSPaddingTop):
2847         (WebCore::RenderBoxModelObject::computedCSSPaddingBottom):
2848         (WebCore::RenderBoxModelObject::computedCSSPaddingLeft):
2849         (WebCore::RenderBoxModelObject::computedCSSPaddingRight):
2850         (WebCore::RenderBoxModelObject::computedCSSPaddingBefore):
2851         (WebCore::RenderBoxModelObject::computedCSSPaddingAfter):
2852         (WebCore::RenderBoxModelObject::computedCSSPaddingStart):
2853         (WebCore::RenderBoxModelObject::computedCSSPaddingEnd):
2854         (RenderBoxModelObject):
2855
2856 2013-02-01  Mark Lam  <mark.lam@apple.com>
2857
2858         Replace ExceptionCode with DatabaseError in the openDatabase() code path.
2859         https://bugs.webkit.org/show_bug.cgi?id=108724.
2860
2861         Reviewed by Alexey Proskuryakov.
2862
2863         Also made DatabaseBackend::performOpenAndVerify() a little more
2864         straightforward and less repetitive.
2865
2866         No new tests.
2867
2868         * Modules/webdatabase/DOMWindowWebDatabase.cpp:
2869         (WebCore::DOMWindowWebDatabase::openDatabase):
2870         * Modules/webdatabase/Database.cpp:
2871         (WebCore::Database::openAndVerifyVersion):
2872         (WebCore::Database::performOpenAndVerify):
2873         * Modules/webdatabase/Database.h:
2874         (Database):
2875         * Modules/webdatabase/DatabaseBackend.cpp:
2876         (WebCore::DoneCreatingDatabaseOnExitCaller::DoneCreatingDatabaseOnExitCaller):
2877         (WebCore::DoneCreatingDatabaseOnExitCaller::~DoneCreatingDatabaseOnExitCaller):
2878         (DoneCreatingDatabaseOnExitCaller):
2879         (WebCore::DoneCreatingDatabaseOnExitCaller::openSucceeded):
2880         (WebCore::DatabaseBackend::performOpenAndVerify):
2881         * Modules/webdatabase/DatabaseBackend.h:
2882         * Modules/webdatabase/DatabaseManager.cpp:
2883         (WebCore::DatabaseManager::openDatabase):
2884         (WebCore::DatabaseManager::openDatabaseSync):
2885         * Modules/webdatabase/DatabaseManager.h:
2886         (DatabaseManager):
2887         * Modules/webdatabase/DatabaseSync.cpp:
2888         (WebCore::DatabaseSync::openAndVerifyVersion):
2889         * Modules/webdatabase/DatabaseSync.h:
2890         (DatabaseSync):
2891         * Modules/webdatabase/DatabaseTask.cpp:
2892         (WebCore::Database::DatabaseOpenTask::DatabaseOpenTask):
2893         (WebCore::Database::DatabaseOpenTask::doPerformTask):
2894         * Modules/webdatabase/DatabaseTask.h:
2895         (WebCore::Database::DatabaseOpenTask::create):
2896         (Database::DatabaseOpenTask):
2897         * Modules/webdatabase/WorkerContextWebDatabase.cpp:
2898         (WebCore::WorkerContextWebDatabase::openDatabase):
2899         (WebCore::WorkerContextWebDatabase::openDatabaseSync):
2900         * WebCore.gypi:
2901
2902 2013-02-01  Yongjun Zhang  <yongjun_zhang@apple.com>
2903
2904         Document is never released if an image's src attribute is changed to a url blocked by content-security-policy.
2905         https://bugs.webkit.org/show_bug.cgi?id=108545
2906
2907         If we just scheduled an error event due to an null newImage, we should not cancel it when newImage and oldImage
2908         is not the same.  Otherwise we will ref the sourceElement in updateHasPendingEvent (m_hasPendingErrorEvent is true)
2909         but never deref it since we already cancelled the error event.
2910
2911         Reviewed by Alexey Proskuryakov.
2912
2913         Test: fast/images/image-error-event-not-firing.html
2914
2915         * loader/ImageLoader.cpp:
2916         (WebCore::ImageLoader::updateFromElement): don't cancel error event if newImage is null, we want the
2917             error event to fire.
2918
2919 2013-02-01  Benjamin Poulain  <bpoulain@apple.com>
2920
2921         Clean the String->AtomicString conversion for AnimationController::pauseAnimationAtTime
2922         https://bugs.webkit.org/show_bug.cgi?id=108558
2923
2924         Reviewed by Dean Jackson.
2925
2926         This is a step torward killing the implicit conversion from String to AtomicString.
2927
2928         The animation name are AtomicString. The API is changed all the way to the callers
2929         to take an AtomicString. When needed, we use explicit conversion.
2930
2931         * WebCore.exp.in:
2932         * page/animation/AnimationController.cpp:
2933         (WebCore::AnimationControllerPrivate::pauseAnimationAtTime):
2934         (WebCore::AnimationController::pauseAnimationAtTime):
2935         * page/animation/AnimationController.h:
2936         (AnimationController):
2937         * page/animation/AnimationControllerPrivate.h:
2938         (AnimationControllerPrivate):
2939         * page/animation/CompositeAnimation.cpp:
2940         (WebCore::CompositeAnimation::pauseAnimationAtTime):
2941         We should not null check the name. Getting a null name from the HashMap would be
2942         an error from the tests, and the HashMap would never return a value anyway.
2943         * testing/Internals.cpp:
2944         (WebCore::Internals::pauseAnimationAtTimeOnPseudoElement):
2945
2946 2013-02-01  Dominic Mazzoni  <dmazzoni@google.com>
2947
2948         AX: memoize expensive computation during blocks where tree doesn't change
2949         https://bugs.webkit.org/show_bug.cgi?id=106497
2950
2951         Reviewed by Ryosuke Niwa.
2952
2953         Add a cache for computed attributes of AXObjects.
2954         The cache can be enabled at the start of a batch of
2955         read-only operations on the accessibility tree, and
2956         it's cleared automatically when the tree mutates.
2957         Currently accessibilityIsIgnored is cached, since it's
2958         frequently called and relatively expensive to compute.
2959
2960         No new tests.
2961
2962         * accessibility/AXObjectCache.cpp:
2963         (WebCore):
2964         (WebCore::AXComputedObjectAttributeCache::getIgnored):
2965         (WebCore::AXComputedObjectAttributeCache::setIgnored):
2966         (WebCore::AXObjectCache::postNotification):
2967         (WebCore::AXObjectCache::nodeTextChangeNotification):
2968         (WebCore::AXObjectCache::handleScrollbarUpdate):
2969         (WebCore::AXObjectCache::startCachingComputedObjectAttributesUntilTreeMutates):
2970         (WebCore::AXObjectCache::stopCachingComputedObjectAttributes):
2971         * accessibility/AXObjectCache.h:
2972         (AXComputedObjectAttributeCache):
2973         (WebCore::AXComputedObjectAttributeCache::create):
2974         (WebCore::AXComputedObjectAttributeCache::AXComputedObjectAttributeCache):
2975         (WebCore::AXComputedObjectAttributeCache::CachedAXObjectAttributes::CachedAXObjectAttributes):
2976         (CachedAXObjectAttributes):
2977         (WebCore):
2978         (WebCore::AXObjectCache::computedObjectAttributeCache):
2979         (AXObjectCache):
2980         (WebCore::AXComputedObjectAttributeCache::getIgnored):
2981         (WebCore::AXComputedObjectAttributeCache::setIgnored):
2982         (WebCore::startCachingComputedObjectAttributesUntilTreeMutates):
2983         (WebCore::stopCachingComputedObjectAttributes):
2984         * accessibility/AccessibilityObject.cpp:
2985         (WebCore::AccessibilityObject::findMatchingObjects):
2986         * accessibility/AccessibilityRenderObject.cpp:
2987         (WebCore):
2988         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
2989         (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
2990         * accessibility/AccessibilityRenderObject.h:
2991         (AccessibilityRenderObject):
2992
2993 2013-02-01  Alexey Proskuryakov  <ap@apple.com>
2994
2995         Build fix.
2996
2997         * Modules/webdatabase/DatabaseBackend.cpp: (DoneCreatingDatabaseOnExitCaller):
2998         Don't fail because of an unused member variable in cross-plaform code path.
2999
3000 2013-02-01  Kevin Ellis  <kevers@chromium.org>
3001
3002         [chromium] Fat scrollbars on Windows in high-DPI mode.
3003         https://bugs.webkit.org/show_bug.cgi?id=108637
3004
3005         Updates mechanism for retrieving scrollbar metrics on the
3006         Windows port of Chromium.  Previously, GetSystemMetrics calls
3007         were used, which fetches prescaled sizes in pixel rather than
3008         logical units, resulting in a double scaling when a device
3009         scale factor is set.  With the patch, the size is retrieved
3010         from the theme engine in DIP.
3011
3012         Reviewed by Adam Barth.
3013
3014         No new tests.
3015
3016         * platform/chromium/ScrollbarThemeChromiumWin.cpp:
3017         (WebCore::ScrollbarThemeChromiumWin::scrollbarThickness):
3018         (WebCore::ScrollbarThemeChromiumWin::paintTrackPiece):
3019         * rendering/RenderThemeChromiumWin.cpp:
3020         (WebCore):
3021         (WebCore::menuListButtonWidth):
3022
3023 2013-02-01  Mark Lam  <mark.lam@apple.com>
3024
3025         Clean up calls to DatabaseTracker::add/removeOpenDatabase().
3026         https://bugs.webkit.org/show_bug.cgi?id=108431
3027
3028         Reviewed by Geoffrey Garen.
3029
3030         Also adapted the chromium port to work with this new code.
3031         Chromium parts reviewed by Michael Nordman and David Levin.
3032
3033         This is part of the webdatabase refactoring effort.
3034
3035         No new tests.
3036
3037         * Modules/webdatabase/AbstractDatabaseServer.h:
3038         (AbstractDatabaseServer):
3039         * Modules/webdatabase/Database.cpp:
3040         (WebCore::Database::openAndVerifyVersion):
3041         (WebCore::Database::close):
3042         * Modules/webdatabase/DatabaseBackend.cpp:
3043         (WebCore::DatabaseBackend::DatabaseBackend):
3044         (WebCore::DatabaseBackend::closeDatabase):
3045         (DoneCreatingDatabaseOnExitCaller):
3046         (WebCore::DoneCreatingDatabaseOnExitCaller::DoneCreatingDatabaseOnExitCaller):
3047         (WebCore::DoneCreatingDatabaseOnExitCaller::~DoneCreatingDatabaseOnExitCaller):
3048         (WebCore::DatabaseBackend::performOpenAndVerify):
3049         * Modules/webdatabase/DatabaseManager.cpp:
3050         (WebCore::DatabaseManager::openDatabase):
3051         (WebCore::DatabaseManager::openDatabaseSync):
3052         * Modules/webdatabase/DatabaseManager.h:
3053         (DatabaseManager):
3054         * Modules/webdatabase/DatabaseServer.cpp:
3055         * Modules/webdatabase/DatabaseServer.h:
3056         * Modules/webdatabase/DatabaseSync.cpp:
3057         (WebCore::DatabaseSync::~DatabaseSync):
3058         (WebCore::DatabaseSync::openAndVerifyVersion):
3059         (WebCore::DatabaseSync::closeImmediately):
3060         * Modules/webdatabase/DatabaseSync.h:
3061         (DatabaseSync):
3062         * Modules/webdatabase/DatabaseTracker.cpp:
3063         (WebCore::DatabaseTracker::doneCreatingDatabase):
3064         (WebCore::DatabaseTracker::addOpenDatabase):
3065         * Modules/webdatabase/DatabaseTracker.h:
3066         (DatabaseTracker):
3067         * Modules/webdatabase/chromium/DatabaseTrackerChromium.cpp:
3068         (WebCore::DatabaseTracker::addOpenDatabase):
3069         (WebCore::DatabaseTracker::prepareToOpenDatabase):
3070         (WebCore::DatabaseTracker::failedToOpenDatabase):
3071
3072 2013-02-01  Andrey Lushnikov  <lushnikov@chromium.org>
3073
3074         Web Inspector: remove extra padding around overlay highlight.
3075         https://bugs.webkit.org/show_bug.cgi?id=108679
3076
3077         Reviewed by Alexander Pavlov.
3078
3079         No new tests: no change in behaviour.
3080
3081         Remove extraWidth from overlay highlight spans.
3082
3083         * inspector/front-end/DefaultTextEditor.js:
3084         (WebInspector.TextEditorMainPanel.prototype._appendOverlayHighlight):
3085
3086 2013-02-01  Philip Rogers  <pdr@google.com>
3087
3088         Prevent skipped repaints for children of inner SVG elements
3089         https://bugs.webkit.org/show_bug.cgi?id=108429
3090
3091         Reviewed by Eric Seidel.
3092
3093         This patch fixes a bug caused by r108699 and r133786 where we would not repaint children
3094         of inner SVG elements because "m_didTransformToRootUpdate" was never reset on viewport
3095         containers. The stale m_didTransformToRootUpdate variable caused us to skip child repaints.
3096
3097         I verified that the Robohornet SVG benchmark performance gains in r133786 are not regressed
3098         with this patch.
3099
3100         Test: svg/repaint/svgsvgelement-repaint-children.html
3101
3102         * rendering/svg/RenderSVGViewportContainer.cpp:
3103         (WebCore::RenderSVGViewportContainer::calcViewport):
3104
3105             This can be removed because setNeedsTransformUpdate() will set m_needsTransformUpdate.
3106
3107         (WebCore::RenderSVGViewportContainer::calculateLocalTransform):
3108
3109             This change is straightforward and is similar to the equivalent assignment in
3110             RenderSVGTransformableContainer::calculateLocalTransform().
3111
3112 2013-02-01  Philip Rogers  <pdr@google.com>
3113
3114         Change hasAlpha to isKnownToBeOpaque and correct the return value for SVG images.
3115         https://bugs.webkit.org/show_bug.cgi?id=106966
3116
3117         Reviewed by Stephen White.
3118
3119         Previously, Image::currentFrameHasAlpha's default implementation returned false so SVG
3120         images always returned false for currentFrameHasAlpha. Additionally, currentFrameHasAlpha
3121         was treated as returning whether the frame had alpha when it would actually conservatively
3122         return true.
3123
3124         This patch renames hasAlpha and currentFrameHasAlpha to isKnownToBeOpaque and
3125         currentFrameIsKnownToBeOpaque, respectively. This rename better describes the actual
3126         functionality. This patch also makes Image::isKnownToBeOpaque a pure virtual function and
3127         correctly implements it for SVG images.
3128
3129         All users of isKnownToBeOpaque access SVG images using CachedImage::imageForRenderer which
3130         currently returns a cached bitmap image. Therefore, this patch will not affect existing
3131         functionality. A regression test has been added that will catch if this changes in the
3132         future (e.g., WK106159 which proposes not returning cached bitmaps). The now unnecessary
3133         isBitmapImage() calls have been removed in this patch.
3134
3135         image-box-shadow.html has been modified to test SVG images.
3136
3137         * css/CSSCrossfadeValue.cpp:
3138         (WebCore::subimageKnownToBeOpaque):
3139         (WebCore::CSSCrossfadeValue::knownToBeOpaque):
3140
3141             Mostly straightforward rename but note the logic has been slightly altered: AND -> OR.
3142
3143         * css/CSSCrossfadeValue.h:
3144         (CSSCrossfadeValue):
3145         * css/CSSGradientValue.cpp:
3146         (WebCore::CSSGradientValue::knownToBeOpaque):
3147         * css/CSSGradientValue.h:
3148         (CSSGradientValue):
3149         * css/CSSImageGeneratorValue.cpp:
3150         (WebCore::CSSImageGeneratorValue::knownToBeOpaque):
3151         * css/CSSImageGeneratorValue.h:
3152         (CSSImageGeneratorValue):
3153         * css/CSSImageValue.cpp:
3154         (WebCore::CSSImageValue::knownToBeOpaque):
3155         * css/CSSImageValue.h:
3156         (CSSImageValue):
3157         * loader/cache/CachedImage.cpp:
3158         (WebCore::CachedImage::currentFrameKnownToBeOpaque):
3159         * loader/cache/CachedImage.h:
3160         (CachedImage):
3161         * platform/graphics/BitmapImage.cpp:
3162         (WebCore::BitmapImage::currentFrameKnownToBeOpaque):
3163         * platform/graphics/BitmapImage.h:
3164         (BitmapImage):
3165         * platform/graphics/GeneratedImage.h:
3166         (GeneratedImage):
3167         * platform/graphics/Image.h:
3168
3169             Note: now a pure virtual function!
3170
3171         (Image):
3172         * platform/graphics/blackberry/LayerTiler.cpp:
3173         (WebCore::LayerTiler::updateTextureContentsIfNeeded):
3174
3175             Removed unnecessary isBitmapImage() checks.
3176
3177         * platform/graphics/cg/GraphicsContext3DCG.cpp:
3178         (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
3179
3180             Removed unnecessary isBitmapImage() checks.
3181
3182         * platform/graphics/cg/PDFDocumentImage.h:
3183         (PDFDocumentImage):
3184         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
3185
3186             Removed unnecessary isBitmapImage() checks.
3187
3188         (WebCore::GraphicsLayerChromium::setContentsToImage):
3189         * platform/graphics/qt/StillImageQt.cpp:
3190         (WebCore::StillImage::currentFrameKnownToBeOpaque):
3191         * platform/graphics/qt/StillImageQt.h:
3192         (StillImage):
3193         * platform/graphics/skia/BitmapImageSingleFrameSkia.cpp:
3194         (WebCore::BitmapImageSingleFrameSkia::currentFrameKnownToBeOpaque):
3195         * platform/graphics/skia/BitmapImageSingleFrameSkia.h:
3196         (BitmapImageSingleFrameSkia):
3197         * platform/graphics/texmap/TextureMapperBackingStore.cpp:
3198         (WebCore::TextureMapperTile::updateContents):
3199         (WebCore::TextureMapperTiledBackingStore::updateContents):
3200         * platform/graphics/texmap/coordinated/CoordinatedImageBacking.cpp:
3201         (WebCore::CoordinatedImageBacking::update):
3202         * rendering/RenderImage.cpp:
3203         (WebCore::RenderImage::backgroundIsObscured):
3204
3205             Removed unnecessary isBitmapImage() checks and slightly reworked the logic.
3206
3207         * rendering/style/FillLayer.cpp:
3208         (WebCore::FillLayer::hasOpaqueImage):
3209         * rendering/style/StyleCachedImage.cpp:
3210         (WebCore::StyleCachedImage::knownToBeOpaque):
3211         * rendering/style/StyleCachedImage.h:
3212         (StyleCachedImage):
3213         * rendering/style/StyleCachedImageSet.cpp:
3214         (WebCore::StyleCachedImageSet::knownToBeOpaque):
3215         * rendering/style/StyleCachedImageSet.h:
3216         (StyleCachedImageSet):
3217         * rendering/style/StyleGeneratedImage.cpp:
3218         (WebCore::StyleGeneratedImage::knownToBeOpaque):
3219         * rendering/style/StyleGeneratedImage.h:
3220         (StyleGeneratedImage):
3221         * rendering/style/StyleImage.h:
3222         (StyleImage):
3223         * rendering/style/StylePendingImage.h:
3224         (WebCore::StylePendingImage::knownToBeOpaque):
3225         * svg/graphics/SVGImage.h:
3226         (SVGImage):
3227
3228 2013-02-01  Brady Eidson  <beidson@apple.com>
3229
3230         Clean up WebArchive loading with the NetworkProcess
3231         <rdar://problem/12695840> and https://bugs.webkit.org/show_bug.cgi?id=108673
3232
3233         Reviewed by Alexey Proskuryakov.
3234
3235         No new tests (No change in WebCore behavior).
3236
3237         Remove a now unneeded function and add a needed export.
3238
3239         * WebCore.exp.in:
3240         * loader/ResourceLoadScheduler.cpp:
3241         * loader/ResourceLoadScheduler.h:
3242
3243 2013-02-01  Alok Priyadarshi  <alokp@chromium.org>
3244
3245         Print GraphicsLayer::m_contentsOpaque if non-default (true)
3246         https://bugs.webkit.org/show_bug.cgi?id=108354
3247
3248         Reviewed by Simon Fraser.
3249
3250         No new tests. This change facilitates testing of GraphicsLayer opaqueness.
3251
3252         * platform/graphics/GraphicsLayer.cpp:
3253         (WebCore::GraphicsLayer::dumpProperties):
3254
3255 2013-02-01  Tony Gentilcore  <tonyg@chromium.org>
3256
3257         Continue making XSSAuditor thread safe: Remove dependency on parser's Document URL
3258         https://bugs.webkit.org/show_bug.cgi?id=108655
3259
3260         Reviewed by Adam Barth.
3261
3262         No new tests because no new functionality.
3263
3264         * html/parser/XSSAuditor.cpp:
3265         (WebCore::XSSAuditor::XSSAuditor):
3266         (WebCore::XSSAuditor::init):
3267         (WebCore::XSSAuditor::isLikelySafeResource):
3268         * html/parser/XSSAuditor.h:
3269
3270 2013-02-01  Jer Noble  <jer.noble@apple.com>
3271
3272         REGRESSION (r141281): Navigating to this HTTP Live Streaming (application/vnd.apple.mpegurl) URL downloads a file instead of playing it in the browser
3273         https://bugs.webkit.org/show_bug.cgi?id=108674
3274         <rdar://problem/13133595>
3275
3276         Reviewed by Eric Carlson.
3277
3278         When passed a HashSet of available MIME types to fill out, QTKit was overwriting the contents, which were
3279         AVFoundation's supported types. Instead, it should be appending to the list of supported types.
3280
3281         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
3282         (WebCore::concatenateHashSets): Added static utility function.
3283         (WebCore::MediaPlayerPrivateQTKit::getSupportedTypes): Concatenate instead of overwriting the passed in MIME types.
3284
3285 2013-02-01  Beth Dakin  <bdakin@apple.com>
3286
3287         Another speculative windows build fix.
3288
3289         * platform/ScrollAnimator.h:
3290
3291 2013-01-31  Dirk Schulze  <krit@webkit.org>
3292
3293         [canvas] Add more constructors to Path
3294         https://bugs.webkit.org/show_bug.cgi?id=108587
3295
3296         Reviewed by Dean Jackson.
3297
3298         Add more constructors to Path object to make it possible
3299         to copy Path objects and parse SVG strings into a Path
3300         object that can be used on the canvas context afterwards.
3301
3302         Test: fast/canvas/canvas-path-constructors.html
3303
3304         * html/canvas/DOMPath.h: New constructors for Path.
3305         (WebCore::DOMPath::create):
3306         (WebCore::DOMPath::DOMPath):
3307         * html/canvas/DOMPath.idl: Ditto.
3308
3309 2013-02-01  Zan Dobersek  <zdobersek@igalia.com>
3310
3311         [GTK] Add WTFURL source files to the build
3312         https://bugs.webkit.org/show_bug.cgi?id=108215
3313
3314         Reviewed by Benjamin Poulain.
3315
3316         * platform/KURLWTFURL.cpp:
3317         (WebCore): Only use the stub implementation of the fileSystemPath method for the
3318         Apple ports, other ports should for now still rely on their platform-specific implementations.
3319
3320 2013-02-01  Mike West  <mkwst@chromium.org>
3321
3322         Remove call to SecurityOrigin::canAccessDatabase from IDB constructor.
3323         https://bugs.webkit.org/show_bug.cgi?id=108477
3324
3325         Reviewed by Adam Barth.
3326
3327         This change removes the 'SecurityOrigin::canAccessDatabase' check from
3328         the constructor for the 'indexedDB' property on both DOMWindow and
3329         WorkerContext. After the patch for http://wkbug.com/94171 this check
3330         is redundant, as all the entry points to IDB are now gated on access
3331         being granted.
3332
3333         As a side-effect, dropping the check in WorkerContextIndexedDatabase
3334         allows us to stop holding a pointer to the ScriptExecutionContext we're
3335         extending, which can only be a good thing.
3336
3337         The tests in storage/indexeddb should continue to pass.
3338
3339         * Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
3340         (WebCore::DOMWindowIndexedDatabase::indexedDB):
3341             Drop the SecurityOrigin::canAccessDatabase check.
3342         * Modules/indexeddb/WorkerContextIndexedDatabase.cpp:
3343         (WebCore::WorkerContextIndexedDatabase::WorkerContextIndexedDatabase):
3344         (WebCore::WorkerContextIndexedDatabase::from):
3345             Drop the ScriptExecutionContext parameter from the class's
3346             constructor and callsites.
3347         (WebCore::WorkerContextIndexedDatabase::indexedDB):
3348             Drop the SecurityOrigin::canAccessDatabase check.
3349         * Modules/indexeddb/WorkerContextIndexedDatabase.h:
3350         (WorkerContextIndexedDatabase):
3351             Drop the stored pointer to ScriptExecutionContext, as we no longer
3352             need it in ::indexedDB.
3353
3354 2013-02-01  Beth Dakin  <bdakin@apple.com>
3355
3356         Speculative Windows build fix. 
3357
3358         * platform/ScrollAnimator.h:
3359         (WebCore):
3360
3361 2013-02-01  Ryosuke Niwa  <rniwa@webkit.org>
3362
3363         Smart link can erroneously move caret after an URL when typing immediately before it
3364         https://bugs.webkit.org/show_bug.cgi?id=92812
3365
3366         Reviewed by Enrica Casucci.
3367
3368         The bug was caused by smart link being triggered even when a user finished typing a word
3369         immediately before an URL. We already had a logic to avoid smart-linking an URL when the caret
3370         was after the URL but we were missing a check for when the caret is before the URL.
3371
3372         Fixed the bug by adding this check.
3373
3374         Test: editing/inserting/smart-link-when-caret-is-moved-before-URL.html
3375
3376         * editing/Editor.cpp:
3377         (WebCore::Editor::markAndReplaceFor):
3378
3379 2013-02-01  Roger Fong  <roger_fong@apple.com>
3380
3381         Unreviewed. Windows build fix. FloatSize.cpp was not included in the project.
3382
3383         * WebCore.vcproj/WebCore.vcproj:
3384
3385 2013-02-01  Julien Chaffraix  <jchaffraix@webkit.org>
3386
3387         [CSS Grid Layout] computePreferredLogicalWidths doesn't handle minmax tracks
3388         https://bugs.webkit.org/show_bug.cgi?id=108403
3389
3390         Reviewed by Ojan Vafai.
3391
3392         Test: fast/css-grid-layout/grid-preferred-logical-widths.html
3393
3394         The code before this change was only handling minmax() with 2 fixed widths.
3395         The new code was updated to remove this artificial limitation and we now
3396         support all combination of minmax().
3397
3398         * rendering/RenderGrid.cpp:
3399         (WebCore::RenderGrid::computePreferredLogicalWidths):
3400         Updated to use computePreferredTrackWidth..
3401
3402         (WebCore::RenderGrid::computePreferredTrackWidth):
3403         Added this helper function that implements the core of the preferred width
3404         computation.
3405
3406         * rendering/RenderGrid.h: Added computePreferredTrackWidth.
3407
3408 2013-02-01  Nate Chapin  <japhet@chromium.org>
3409
3410         Cached main resources report a zero identifer on 304s
3411         https://bugs.webkit.org/show_bug.cgi?id=108402
3412
3413         Reviewed by Adam Barth.
3414
3415         Test: http/tests/cache/iframe-304-crash.html
3416
3417         * loader/MainResourceLoader.cpp:
3418         (WebCore::MainResourceLoader::responseReceived): Throughout, check m_identifierForLoadWithoutResourceLoader
3419             instead of !loader() to determine whether MainResourceLoader needs to synthesize resource load callbacks.
3420         (WebCore::MainResourceLoader::dataReceived):
3421         (WebCore::MainResourceLoader::didFinishLoading):
3422
3423 2013-02-01  Nico Weber  <thakis@chromium.org>
3424
3425         [chromium] Build webkit with enable_web_intents set to 0.
3426         https://bugs.webkit.org/show_bug.cgi?id=108408
3427
3428         Reviewed by Tony Chang.
3429
3430         I'll then make chromium build fine with that, then switch
3431         enable_web_intents to 0, roll that into webkit, and then
3432         actually remove the code hidden behind this flag.
3433
3434         * bindings/v8/custom/V8IntentCustom.cpp:
3435
3436 2013-02-01  Pavel Feldman  <pfeldman@chromium.org>
3437
3438         Web Inspector: make console object state hint non-active
3439         https://bugs.webkit.org/show_bug.cgi?id=108642
3440
3441         Reviewed by Vsevolod Vlasov.
3442
3443         Otherwise it seems like an active element user could click.
3444
3445         * inspector/front-end/inspector.css:
3446         (.object-info-state-note):
3447
3448 2013-02-01  Rashmi Shyamasundar  <rashmi.s2@samsung.com>
3449
3450         Zero size gradient should paint nothing on canvas
3451         https://bugs.webkit.org/show_bug.cgi?id=102654
3452
3453         Reviewed by Dirk Schulze.
3454
3455         The functions fill(), fillText(), stroke(), strokeRect() and strokeText()
3456         should paint nothing on canvas when the canvas fillStyle/strokeStyle
3457         is set to a zero size gradient.
3458  
3459         Tests: fast/canvas/canvas-fill-zeroSizeGradient.html
3460                fast/canvas/canvas-fillRect-zeroSizeGradient.html
3461                fast/canvas/canvas-fillText-zeroSizeGradient.html
3462                fast/canvas/canvas-stroke-zeroSizeGradient.html
3463                fast/canvas/canvas-strokeRect-zeroSizeGradient.html
3464                fast/canvas/canvas-strokeText-zeroSizeGradient.html
3465
3466         * html/canvas/CanvasRenderingContext2D.cpp:
3467         (WebCore::CanvasRenderingContext2D::fill):
3468         (WebCore::CanvasRenderingContext2D::stroke):
3469         (WebCore::CanvasRenderingContext2D::strokeRect):
3470         (WebCore::CanvasRenderingContext2D::drawTextInternal):
3471
3472 2013-02-01  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3473
3474         HRTFElevation segfault if a null AudioBus is returned by loadPlatformResource
3475         https://bugs.webkit.org/show_bug.cgi?id=108504
3476
3477         Reviewed by Kenneth Russell.
3478
3479         Fixed a segfault by checking if the returned AudioBus is null or not.
3480         If it is, we should early return in the same way it was being done already
3481         in HRTFElevation::calculateKernelsForAzimuthElevation();
3482
3483         No new tests, covered by existing tests.
3484
3485         * platform/audio/HRTFElevation.cpp:
3486         (WebCore::getConcatenatedImpulseResponsesForSubject):
3487
3488 2013-02-01  Beth Dakin  <bdakin@apple.com>
3489
3490         ScrollAnimatorMac should adopt contentAreaScrolledInDirection
3491         https://bugs.webkit.org/show_bug.cgi?id=108647
3492         -and corresponding-
3493         <rdar://problem/12434779>
3494
3495         Reviewed by Anders Carlsson.
3496
3497         This patch makes notifyContentAreaScrolled() and notifyPositionChanged() take a 
3498         FloatSize parameter that represents the scroll delta so that it can be passed 
3499         along to contentAreaScrolledInDirection:. 
3500
3501         Pass along the scroll delta.
3502         * platform/ScrollAnimator.cpp:
3503         (WebCore::ScrollAnimator::scroll):
3504         (WebCore::ScrollAnimator::scrollToOffsetWithoutAnimation):
3505
3506         The delta is not needed in this base-class implementation. It will only be needed 
3507         in the ScrollAnimatorMac override.
3508         (WebCore::ScrollAnimator::notifyPositionChanged):
3509         * platform/ScrollAnimator.h:
3510         (WebCore::ScrollAnimator::notifyContentAreaScrolled):
3511
3512         Pass along the delta.
3513         * platform/ScrollAnimatorNone.cpp:
3514         (WebCore::ScrollAnimatorNone::scrollToOffsetWithoutAnimation):
3515         (WebCore::ScrollAnimatorNone::animationTimerFired):
3516         * platform/ScrollableArea.cpp:
3517         (WebCore::ScrollableArea::scrollPositionChanged):
3518
3519         Add contentAreaScrolledInDirection: to the NSScrollerImpDetails.
3520         * platform/mac/NSScrollerImpDetails.h:
3521
3522         New member variable m_contentAreaScrolledTimerScrollDelta stores the current 
3523         scroll delta while we are waiting for m_sendContentAreaScrolledTimer to fire.
3524         * platform/mac/ScrollAnimatorMac.h:
3525
3526         We need this so that we can call just contentAreaScrolled if 
3527         contentAreaScrolledInDirection: is not available.
3528         * platform/mac/ScrollAnimatorMac.mm:
3529         (supportsContentAreaScrolledInDirection):
3530
3531         Pass along the delta.
3532         (WebCore::ScrollAnimatorMac::immediateScrollTo):
3533         (WebCore::ScrollAnimatorMac::notifyPositionChanged):
3534         (WebCore::ScrollAnimatorMac::mayBeginScrollGesture):
3535         (WebCore::ScrollAnimatorMac::notifyContentAreaScrolled):
3536         (WebCore::ScrollAnimatorMac::immediateScrollBy):
3537         (WebCore::ScrollAnimatorMac::sendContentAreaScrolledSoon):
3538
3539         If contentAreaScrolledInDirection: is available, call it with the delta, and then 
3540         reset our delta. Otherwise, still call contentAreaScrolled.
3541         (WebCore::ScrollAnimatorMac::sendContentAreaScrolledTimerFired):
3542
3543 2013-02-01  Pavel Feldman  <pfeldman@chromium.org>
3544
3545         Web Inspector: [file selector dialog] for mixed case queries, score uppercase letters only when assessing camelcase.
3546         https://bugs.webkit.org/show_bug.cgi?id=108639
3547
3548         Reviewed by Vsevolod Vlasov.
3549
3550         * inspector/front-end/FilteredItemSelectionDialog.js:
3551         (WebInspector.FilteredItemSelectionDialog.prototype._createScoringRegex):
3552
3553 2013-02-01  Robert Hogan  <robert@webkit.org>
3554
3555         Padding in a parent inline preceding an empty inline child should be counted towards width
3556         https://bugs.webkit.org/show_bug.cgi?id=108226
3557
3558         Reviewed by Levi Weintraub.
3559
3560         Add the border/padding/margin from an empty inline's parent inline if it is the first or last
3561         child of the inline. 
3562
3563         Tests: fast/inline/parent-inline-element-padding-contributes-width.html
3564                fast/inline/positioned-element-padding-contributes-width.html
3565
3566         * rendering/RenderBlockLineLayout.cpp:
3567         (WebCore::RenderBlock::LineBreaker::nextSegmentBreak):
3568
3569 2013-02-01  Tony Gentilcore  <tonyg@chromium.org>
3570
3571         Continue making XSSAuditor thread safe: Remove dependencies on m_parser from init()
3572         https://bugs.webkit.org/show_bug.cgi?id=108531
3573
3574         Reviewed by Adam Barth.
3575
3576         The threaded HTML parser will create and init() the XSSAuditor on the main thread, but filterToken() will be called on the background.
3577
3578         No new tests because no change in functionality.
3579
3580         * html/parser/HTMLDocumentParser.cpp:
3581         (WebCore::HTMLDocumentParser::pumpTokenizer):
3582         * html/parser/XSSAuditor.cpp:
3583         (WebCore::XSSAuditor::XSSAuditor):
3584         (WebCore::XSSAuditor::init):
3585         (WebCore::XSSAuditor::filterToken):
3586         * html/parser/XSSAuditor.h:
3587         (WebCore):
3588         (XSSAuditor):
3589
3590 2013-02-01  Brady Eidson  <beidson@apple.com>
3591
3592         Remove unnecessary parameter from DocumentLoader::scheduleArchiveLoad
3593         https://bugs.webkit.org/show_bug.cgi?id=108654
3594
3595         Reviewed by Alexey Proskuryakov.
3596
3597         No new tests (No behavior change.)
3598
3599         Remove the KURL parameter parameter from this method which, in practice,
3600         is always the same as the url of the ResourceRequest parameter.
3601
3602         * loader/DocumentLoader.cpp:
3603         (WebCore::DocumentLoader::scheduleArchiveLoad):
3604         * loader/DocumentLoader.h:
3605
3606         * loader/ResourceLoader.cpp:
3607         (WebCore::ResourceLoader::start):
3608
3609 2013-02-01  Pavel Feldman  <pfeldman@chromium.org>
3610
3611         Web Inspector: relax goto file matching again.
3612         https://bugs.webkit.org/show_bug.cgi?id=108346
3613
3614         Reviewed by Vsevolod Vlasov.
3615
3616         This change brings back behavior introduced in r116244.
3617
3618         * inspector/front-end/FilteredItemSelectionDialog.js:
3619         (WebInspector.FilteredItemSelectionDialog.prototype._createItemElement):
3620         (WebInspector.FilteredItemSelectionDialog.prototype._createSearchRegex):
3621         (WebInspector.FilteredItemSelectionDialog.prototype._createScoringRegex):
3622         (WebInspector.FilteredItemSelectionDialog.prototype._filterItems.compareFunction):
3623         (WebInspector.FilteredItemSelectionDialog.prototype._filterItems):
3624         (WebInspector.FilteredItemSelectionDialog.prototype._onMouseMove):
3625         (WebInspector.FilteredItemSelectionDialog.prototype.itemElement):
3626         (WebInspector.OpenResourceDialog):
3627         * inspector/front-end/utilities.js:
3628         (String.regexSpecialCharacters):
3629         (String.prototype.escapeForRegExp):
3630
3631 2013-02-01  Vsevolod Vlasov  <vsevik@chromium.org>
3632
3633         Web Inspector: Navigator should not create tree elements for uiSourceCodes unless neededm should populate folders on expand only.
3634         https://bugs.webkit.org/show_bug.cgi?id=108601
3635
3636         Reviewed by Pavel Feldman.
3637
3638         Tree elememnts for uiSourceCodes are not created until really needed anymore.
3639         They are now created when parent folder tree elememnts are expanded or when uiSourceCode is revealed in navigator.
3640
3641         * inspector/front-end/NavigatorView.js:
3642         (WebInspector.NavigatorView):
3643         (WebInspector.NavigatorView.prototype.addUISourceCode):
3644         (WebInspector.NavigatorView.prototype._getOrCreateScriptTreeElement):
3645         (WebInspector.NavigatorView.prototype._getScriptTreeElement):
3646         (WebInspector.NavigatorView.prototype._createScriptTreeElement):
3647         (WebInspector.NavigatorView.prototype._removeScriptTreeElement):
3648         (WebInspector.NavigatorView.prototype._updateScriptTitle):
3649         (WebInspector.NavigatorView.prototype.isScriptSourceAdded):
3650         (WebInspector.NavigatorView.prototype.revealUISourceCode):
3651         (WebInspector.NavigatorView.prototype.removeUISourceCode):
3652         (WebInspector.NavigatorView.prototype.reset):
3653         (WebInspector.NavigatorView.prototype.createFolderTreeElement):
3654         (WebInspector.NavigatorView.prototype._populateFolderTreeElement):
3655         (WebInspector.NavigatorView.prototype._addScriptTreeElement):
3656         (WebInspector.NavigatorView.prototype._adoptUISourceCode):
3657         (WebInspector.NavigatorFolderTreeElement):
3658         (WebInspector.NavigatorFolderTreeElement.prototype.onpopulate):
3659
3660 2013-02-01  Vsevolod Vlasov  <vsevik@chromium.org>
3661
3662         Web Inspector: TabbedEditorContainer.History performance optimization.
3663         https://bugs.webkit.org/show_bug.cgi?id=108581
3664
3665         Introduced history items indexing by url.
3666
3667         Reviewed by Pavel Feldman.
3668
3669         Covered by existing test.
3670
3671         * inspector/front-end/TabbedEditorContainer.js:
3672         (WebInspector.TabbedEditorContainer.History):
3673         (WebInspector.TabbedEditorContainer.History.prototype.index):
3674         (WebInspector.TabbedEditorContainer.History.prototype._rebuildItemIndex):
3675         (WebInspector.TabbedEditorContainer.History.prototype.update):
3676         (WebInspector.TabbedEditorContainer.History.prototype.remove):
3677
3678 2013-02-01  Geoffrey Garen  <ggaren@apple.com>
3679
3680         Added TriState to WTF and started using it in one place
3681         https://bugs.webkit.org/show_bug.cgi?id=108628
3682
3683         Reviewed by Beth Dakin.
3684
3685         * editing/EditingStyle.h:
3686         (WebCore): Moved TriState to WTF so it can be used in more places.
3687
3688 2013-02-01  Pavel Feldman  <pfeldman@chromium.org>
3689
3690         Web Inspector: Follow up to r141260: fixing renamed style.
3691         Not reviewed.
3692
3693         * inspector/front-end/FilteredItemSelectionDialog.js:
3694         (WebInspector.FilteredItemSelectionDialog.prototype._createItemElement):
3695         (WebInspector.FilteredItemSelectionDialog.prototype._onClick):
3696         (WebInspector.FilteredItemSelectionDialog.prototype._onMouseMove):
3697
3698 2013-02-01  Alexis Menard  <alexis@webkit.org>
3699
3700         Enable unprefixed CSS transitions by default.
3701         https://bugs.webkit.org/show_bug.cgi?id=108216
3702
3703         Reviewed by Dean Jackson.
3704
3705         Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
3706         to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to 
3707         guard the unprefixing work for CSS Transforms and animations. Remove the
3708         various #ifdefs and conditional generations.
3709
3710         * Configurations/FeatureDefines.xcconfig:
3711         * DerivedSources.cpp:
3712         * GNUmakefile.features.am.in:
3713         * css/CSSPropertyNames.in:
3714         * dom/EventNames.in:
3715         * dom/TransitionEvent.cpp:
3716         * dom/TransitionEvent.h:
3717         * dom/TransitionEvent.idl:
3718         * page/DOMWindow.idl:
3719         * page/animation/AnimationController.cpp:
3720         (WebCore::AnimationControllerPrivate::fireEventsAndUpdateStyle):
3721
3722 2013-02-01  Kentaro Hara  <haraken@chromium.org>
3723
3724         Unreviewed, rolling out r141548.
3725         http://trac.webkit.org/changeset/141548
3726         https://bugs.webkit.org/show_bug.cgi?id=108579
3727
3728         userscript-plugin-document.html is flaky
3729
3730         * bindings/v8/DOMDataStore.h:
3731         (WebCore::DOMDataStore::setWrapperInObject):
3732         * bindings/v8/V8GCController.cpp:
3733         (WebCore):
3734         (WebCore::gcTree):
3735         (WebCore::V8GCController::didCreateWrapperForNode):
3736         (WebCore::V8GCController::gcPrologue):
3737         (WebCore::V8GCController::minorGCPrologue):
3738         (WebCore::V8GCController::majorGCPrologue):
3739         * bindings/v8/V8GCController.h:
3740         (V8GCController):
3741
3742 2013-02-01  Andrey Adaikin  <aandrey@chromium.org>
3743
3744         Web Inspector: fix jscompiler warnings
3745         https://bugs.webkit.org/show_bug.cgi?id=108604
3746
3747         Reviewed by Pavel Feldman.
3748
3749         * inspector/front-end/ConsoleView.js:
3750         (WebInspector.ConsoleGroup.prototype.addMessage):
3751         * inspector/front-end/ContextMenu.js:
3752         (WebInspector.ContextSubMenuItem):
3753         * inspector/front-end/ImageView.js:
3754         (WebInspector.ImageView.prototype._copyImageURL):
3755         (WebInspector.ImageView.prototype._openInNewTab):
3756         * inspector/front-end/NetworkPanel.js:
3757         (WebInspector.NetworkLogView.prototype._clearBrowserCache):
3758         (WebInspector.NetworkLogView.prototype._clearBrowserCookies):
3759         * inspector/front-end/ResourcesPanel.js:
3760         (WebInspector.IDBDatabaseTreeElement.prototype._refreshIndexedDB):
3761         * inspector/front-end/ScriptsNavigator.js:
3762         (WebInspector.SnippetsNavigatorView.prototype._handleEvaluateSnippet):
3763         (WebInspector.SnippetsNavigatorView.prototype._handleRenameSnippet):
3764         (WebInspector.SnippetsNavigatorView.prototype._handleRemoveSnippet):
3765         (WebInspector.SnippetsNavigatorView.prototype._handleCreateSnippet):
3766         * inspector/front-end/Toolbar.js:
3767         (WebInspector.Toolbar.prototype._isDockedToBottom):
3768
3769 2013-02-01  Jae Hyun Park  <jae.park@company100.net>
3770
3771
3772         Coordinated Graphics : Sort Target.pri and class declarations in alphabetical order.
3773         https://bugs.webkit.org/show_bug.cgi?id=108590
3774
3775         Reviewed by Noam Rosenthal.
3776
3777         Sort CoordinatedGraphics files in Target.pri in alphabetical order.
3778
3779         No new tests. No change in behavior.
3780
3781         * Target.pri:
3782
3783 2013-02-01  Ilya Tikhonovsky  <loislo@chromium.org>
3784
3785         Web Inspector: Native Memory Instrumentation: provide edge names to class members in all WebCore instrumented classes.
3786         https://bugs.webkit.org/show_bug.cgi?id=107369
3787
3788         Reviewed by Yury Semikhatsky.
3789
3790         It is almost mechanical change generated by a script.
3791         Late I'll implement name to edge name consistency check in clang plugin.
3792
3793         * Modules/webaudio/AudioContext.cpp:
3794         (WebCore::AudioContext::reportMemoryUsage):
3795         * Modules/webaudio/AudioNode.cpp:
3796         (WebCore::AudioNode::reportMemoryUsage):
3797         * bindings/js/ScriptWrappable.h:
3798         (WebCore::ScriptWrappable::reportMemoryUsage):
3799         * bindings/v8/DOMDataStore.cpp:
3800         (WebCore::DOMDataStore::reportMemoryUsage):
3801         * bindings/v8/DOMWrapperMap.h:
3802         (WebCore::DOMWrapperMap::reportMemoryUsage):
3803         * bindings/v8/V8PerIsolateData.cpp:
3804         (WebCore::V8PerIsolateData::reportMemoryUsage):
3805         * bindings/v8/V8ValueCache.cpp:
3806         (WebCore::StringCache::reportMemoryUsage):
3807         * css/CSSBorderImageSliceValue.cpp:
3808         (WebCore::CSSBorderImageSliceValue::reportDescendantMemoryUsage):
3809         * css/CSSCalculationValue.cpp:
3810         * css/CSSCanvasValue.cpp:
3811         (WebCore::CSSCanvasValue::reportDescendantMemoryUsage):
3812         * css/CSSCharsetRule.cpp:
3813         (WebCore::CSSCharsetRule::reportMemoryUsage):
3814         * css/CSSComputedStyleDeclaration.cpp:
3815         (WebCore::CSSComputedStyleDeclaration::reportMemoryUsage):
3816         * css/CSSCrossfadeValue.cpp:
3817         (WebCore::CSSCrossfadeValue::reportDescendantMemoryUsage):
3818         * css/CSSCursorImageValue.cpp:
3819         (WebCore::CSSCursorImageValue::reportDescendantMemoryUsage):
3820         * css/CSSFontFaceRule.cpp:
3821         (WebCore::CSSFontFaceRule::reportMemoryUsage):
3822         * css/CSSFontFaceSrcValue.cpp:
3823         (WebCore::CSSFontFaceSrcValue::reportDescendantMemoryUsage):
3824         * css/CSSFunctionValue.cpp:
3825         (WebCore::CSSFunctionValue::reportDescendantMemoryUsage):
3826         * css/CSSGradientValue.cpp:
3827         (WebCore::CSSGradientColorStop::reportMemoryUsage):
3828         (WebCore::CSSGradientValue::reportBaseClassMemoryUsage):
3829         (WebCore::CSSLinearGradientValue::reportDescendantMemoryUsage):
3830         (WebCore::CSSRadialGradientValue::reportDescendantMemoryUsage):
3831         * css/CSSGroupingRule.cpp:
3832         (WebCore::CSSGroupingRule::reportMemoryUsage):
3833         * css/CSSImageGeneratorValue.cpp:
3834         (WebCore::CSSImageGeneratorValue::reportBaseClassMemoryUsage):
3835         * css/CSSImageSetValue.cpp:
3836         (WebCore::CSSImageSetValue::reportDescendantMemoryUsage):
3837         (WebCore::CSSImageSetValue::ImageWithScale::reportMemoryUsage):
3838         * css/CSSImageValue.cpp:
3839         (WebCore::CSSImageValue::reportDescendantMemoryUsage):
3840         * css/CSSImportRule.cpp:
3841         (WebCore::CSSImportRule::reportMemoryUsage):
3842         * css/CSSMediaRule.cpp:
3843         (WebCore::CSSMediaRule::reportMemoryUsage):
3844         * css/CSSPageRule.cpp:
3845         (WebCore::CSSPageRule::reportMemoryUsage):
3846         * css/CSSPrimitiveValue.cpp:
3847         (WebCore::CSSPrimitiveValue::reportDescendantMemoryUsage):
3848         * css/CSSProperty.cpp:
3849         (WebCore::CSSProperty::reportMemoryUsage):
3850         * css/CSSReflectValue.cpp:
3851         (WebCore::CSSReflectValue::reportDescendantMemoryUsage):
3852         * css/CSSRule.cpp:
3853         (WebCore::CSSRule::reportMemoryUsage):
3854         * css/CSSRuleList.cpp:
3855         (WebCore::StaticCSSRuleList::reportMemoryUsage):
3856         * css/CSSRuleList.h:
3857         * css/CSSSelectorList.cpp:
3858         (WebCore::CSSSelectorList::reportMemoryUsage):
3859         * css/CSSStyleRule.cpp:
3860         (WebCore::CSSStyleRule::reportMemoryUsage):
3861         * css/CSSStyleSheet.cpp:
3862         (WebCore::CSSStyleSheet::reportMemoryUsage):
3863         * css/CSSValue.cpp:
3864         (WebCore::TextCloneCSSValue::reportDescendantMemoryUsage):
3865         * css/CSSValueList.cpp:
3866         (WebCore::CSSValueList::reportDescendantMemoryUsage):
3867         * css/CSSVariableValue.h:
3868         (WebCore::CSSVariableValue::reportDescendantMemoryUsage):
3869         * css/FontFeatureValue.cpp:
3870         (WebCore::FontFeatureValue::reportDescendantMemoryUsage):
3871         * css/FontValue.cpp:
3872         (WebCore::FontValue::reportDescendantMemoryUsage):
3873         * css/MediaList.cpp:
3874         (WebCore::MediaQuerySet::reportMemoryUsage):
3875         (WebCore::MediaList::reportMemoryUsage):
3876         * css/MediaQuery.cpp:
3877         (WebCore::MediaQuery::reportMemoryUsage):
3878         * css/MediaQueryExp.cpp:
3879         (WebCore::MediaQueryExp::reportMemoryUsage):
3880         * css/PropertySetCSSStyleDeclaration.cpp:
3881         (WebCore::PropertySetCSSStyleDeclaration::reportMemoryUsage):
3882         (WebCore::StyleRuleCSSStyleDeclaration::reportMemoryUsage):
3883         (WebCore::InlineCSSStyleDeclaration::reportMemoryUsage):
3884         * css/RuleFeature.cpp:
3885         (WebCore::RuleFeatureSet::reportMemoryUsage):
3886         * css/RuleSet.cpp:
3887         (WebCore::RuleData::reportMemoryUsage):
3888         (WebCore::RuleSet::reportMemoryUsage):
3889         (WebCore::RuleSet::RuleSetSelectorPair::reportMemoryUsage):
3890         * css/ShadowValue.cpp:
3891         (WebCore::ShadowValue::reportDescendantMemoryUsage):
3892         * css/StylePropertySet.cpp:
3893         (WebCore::StylePropertySet::reportMemoryUsage):
3894         * css/StyleResolver.cpp:
3895         (WebCore::StyleResolver::MatchedProperties::reportMemoryUsage):
3896         (WebCore::StyleResolver::MatchedPropertiesCacheItem::reportMemoryUsage):
3897         (WebCore::MediaQueryResult::reportMemoryUsage):
3898         (WebCore::StyleResolver::reportMemoryUsage):
3899         * css/StyleRule.cpp:
3900         (WebCore::StyleRule::reportDescendantMemoryUsage):
3901         (WebCore::StyleRulePage::reportDescendantMemoryUsage):
3902         (WebCore::StyleRuleFontFace::reportDescendantMemoryUsage):
3903         (WebCore::StyleRuleGroup::reportDescendantMemoryUsage):
3904         (WebCore::StyleRuleMedia::reportDescendantMemoryUsage):
3905         (WebCore::StyleRuleRegion::reportDescendantMemoryUsage):
3906         (WebCore::StyleRuleViewport::reportDescendantMemoryUsage):
3907         * css/StyleRuleImport.cpp:
3908         (WebCore::StyleRuleImport::reportDescendantMemoryUsage):
3909         * css/StyleScopeResolver.cpp:
3910         (WebCore::StyleScopeResolver::reportMemoryUsage):
3911         * css/StyleSheetContents.cpp:
3912         (WebCore::StyleSheetContents::reportMemoryUsage):
3913         * css/WebKitCSSKeyframeRule.cpp:
3914         (WebCore::StyleKeyframe::reportMemoryUsage):
3915         (WebCore::WebKitCSSKeyframeRule::reportMemoryUsage):
3916         * css/WebKitCSSKeyframesRule.cpp:
3917         (WebCore::StyleRuleKeyframes::reportDescendantMemoryUsage):
3918         (WebCore::WebKitCSSKeyframesRule::reportMemoryUsage):
3919         * css/WebKitCSSSVGDocumentValue.cpp:
3920         (WebCore::WebKitCSSSVGDocumentValue::reportDescendantMemoryUsage):
3921         * css/WebKitCSSShaderValue.cpp:
3922         (WebCore::WebKitCSSShaderValue::reportDescendantMemoryUsage):
3923         * css/WebKitCSSViewportRule.cpp:
3924         (WebCore::WebKitCSSViewportRule::reportMemoryUsage):
3925         * dom/Attribute.h:
3926         (WebCore::Attribute::reportMemoryUsage):
3927         * dom/CharacterData.cpp:
3928         (WebCore::CharacterData::reportMemoryUsage):
3929         * dom/ContainerNode.cpp:
3930         (WebCore::ContainerNode::reportMemoryUsage):
3931         * dom/ContainerNode.h:
3932         (ContainerNode):
3933         * dom/Document.cpp:
3934         (WebCore::Document::reportMemoryUsage):
3935         * dom/DocumentEventQueue.cpp:
3936         (WebCore::DocumentEventQueue::reportMemoryUsage):
3937         * dom/DocumentOrderedMap.cpp:
3938         (WebCore::DocumentOrderedMap::reportMemoryUsage):
3939         * dom/DocumentStyleSheetCollection.cpp:
3940         (WebCore::DocumentStyleSheetCollection::reportMemoryUsage):
3941         * dom/Element.cpp:
3942         (WebCore::Element::reportMemoryUsage):
3943         * dom/ElementAttributeData.cpp:
3944         (WebCore::ElementAttributeData::reportMemoryUsage):
3945         * dom/ElementRareData.cpp:
3946         (WebCore::ElementRareData::reportMemoryUsage):
3947         * dom/ElementShadow.cpp:
3948         (WebCore::ElementShadow::reportMemoryUsage):
3949         * dom/Event.cpp:
3950         (WebCore::Event::reportMemoryUsage):
3951         * dom/LiveNodeList.cpp:
3952         (WebCore::LiveNodeListBase::reportMemoryUsage):
3953         * dom/Node.cpp:
3954         (WebCore::Node::reportMemoryUsage):
3955         * dom/NodeRareData.cpp:
3956         (WebCore::NodeListsNodeData::reportMemoryUsage):
3957         (WebCore::NodeRareData::reportMemoryUsage):
3958         * dom/QualifiedName.cpp:
3959         (WebCore::QualifiedName::reportMemoryUsage):
3960         (WebCore::QualifiedName::QualifiedNameImpl::reportMemoryUsage):
3961         * dom/ScriptExecutionContext.cpp:
3962         (WebCore::ScriptExecutionContext::reportMemoryUsage):
3963         * dom/SecurityContext.cpp:
3964         (WebCore::SecurityContext::reportMemoryUsage):
3965         * dom/ShadowRoot.cpp:
3966         (WebCore::ShadowRoot::reportMemoryUsage):
3967         * dom/TreeScope.cpp:
3968         (WebCore::TreeScope::reportMemoryUsage):
3969         * html/HTMLCanvasElement.cpp:
3970         (WebCore::HTMLCanvasElement::reportMemoryUsage):
3971         * html/HTMLFormControlElement.cpp:
3972         (WebCore::HTMLFormControlElement::reportMemoryUsage):
3973         * html/HTMLImageElement.cpp:
3974         (WebCore::HTMLImageElement::reportMemoryUsage):
3975         * html/HTMLInputElement.cpp:
3976         (WebCore::HTMLInputElement::reportMemoryUsage):
3977         * html/HTMLMediaElement.cpp:
3978         (WebCore::HTMLMediaElement::reportMemoryUsage):
3979         * html/HTMLTextFormControlElement.cpp:
3980         (WebCore::HTMLTextFormControlElement::reportMemoryUsage):
3981         * inspector/HeapGraphSerializer.cpp:
3982         (WebCore::HeapGraphSerializer::HeapGraphSerializer):
3983         (WebCore::HeapGraphSerializer::reportNode):
3984         (WebCore::HeapGraphSerializer::reportMemoryUsage):
3985         * inspector/HeapGraphSerializer.h:
3986         (HeapGraphSerializer):
3987         * inspector/InspectorBaseAgent.cpp:
3988         (WebCore::InspectorBaseAgentInterface::reportMemoryUsage):
3989         * inspector/InspectorController.cpp:
3990         (WebCore::InspectorController::reportMemoryUsage):
3991         * inspector/InspectorDOMStorageAgent.cpp:
3992         (WebCore::InspectorDOMStorageAgent::reportMemoryUsage):
3993         * inspector/InspectorDOMStorageResource.cpp:
3994         (WebCore::InspectorDOMStorageResource::reportMemoryUsage):
3995         * inspector/InspectorDebuggerAgent.cpp:
3996         (WebCore::InspectorDebuggerAgent::reportMemoryUsage):
3997         (WebCore::ScriptDebugListener::Script::reportMemoryUsage):
3998         * inspector/InspectorMemoryAgent.cpp:
3999         (WebCore::InspectorMemoryAgent::reportMemoryUsage):
4000         * inspector/InspectorOverlay.cpp:
4001         (WebCore::InspectorOverlay::reportMemoryUsage):
4002         * inspector/InspectorProfilerAgent.cpp:
4003         (WebCore::InspectorProfilerAgent::reportMemoryUsage):
4004         * inspector/InspectorResourceAgent.cpp:
4005         (WebCore::InspectorResourceAgent::reportMemoryUsage):
4006         * inspector/MemoryInstrumentationImpl.cpp:
4007         (WebCore::MemoryInstrumentationClientImpl::reportMemoryUsage):
4008         (WebCore::MemoryInstrumentationImpl::reportMemoryUsage):
4009         * inspector/NetworkResourcesData.cpp:
4010         (WebCore::XHRReplayData::reportMemoryUsage):
4011         (WebCore::NetworkResourcesData::ResourceData::reportMemoryUsage):
4012         (WebCore::NetworkResourcesData::reportMemoryUsage):
4013         * loader/CachedMetadata.cpp:
4014         (WebCore::CachedMetadata::reportMemoryUsage):
4015         * loader/DocumentLoader.cpp:
4016         (WebCore::DocumentLoader::reportMemoryUsage):
4017         * loader/FrameLoader.cpp:
4018         (WebCore::FrameLoader::reportMemoryUsage):
4019         * loader/MainResourceLoader.cpp:
4020         (WebCore::MainResourceLoader::reportMemoryUsage):
4021         * loader/Prerenderer.cpp:
4022         (WebCore::Prerenderer::reportMemoryUsage):
4023         * loader/ResourceBuffer.cpp:
4024         (WebCore::ResourceBuffer::reportMemoryUsage):
4025         * loader/ResourceLoader.cpp:
4026         (WebCore::ResourceLoader::reportMemoryUsage):
4027         * loader/SubresourceLoader.cpp:
4028         (WebCore::SubresourceLoader::reportMemoryUsage):
4029         * loader/SubstituteData.cpp:
4030         (WebCore::SubstituteData::reportMemoryUsage):
4031         * loader/cache/CachedCSSStyleSheet.cpp:
4032         (WebCore::CachedCSSStyleSheet::reportMemoryUsage):
4033         * loader/cache/CachedFont.cpp:
4034         (WebCore::CachedFont::reportMemoryUsage):
4035         * loader/cache/CachedImage.cpp:
4036         (WebCore::CachedImage::reportMemoryUsage):
4037         * loader/cache/CachedResource.cpp:
4038         (WebCore::CachedResource::reportMemoryUsage):
4039         * loader/cache/CachedResourceHandle.cpp:
4040         (WebCore::CachedResourceHandleBase::reportMemoryUsage):
4041         * loader/cache/CachedResourceLoader.cpp:
4042         (WebCore::CachedResourceLoader::reportMemoryUsage):
4043         * loader/cache/CachedSVGDocument.cpp:
4044         (WebCore::CachedSVGDocument::reportMemoryUsage):
4045         * loader/cache/CachedScript.cpp:
4046         (WebCore::CachedScript::reportMemoryUsage):
4047         * loader/cache/CachedShader.cpp:
4048         (WebCore::CachedShader::reportMemoryUsage):
4049         * loader/cache/CachedXSLStyleSheet.cpp:
4050         (WebCore::CachedXSLStyleSheet::reportMemoryUsage):
4051         * loader/cache/MemoryCache.cpp:
4052         (WebCore::MemoryCache::reportMemoryUsage):
4053         * page/DOMTimer.cpp:
4054         (WebCore::DOMTimer::reportMemoryUsage):
4055         * page/Frame.cpp:
4056         (WebCore::Frame::reportMemoryUsage):
4057         * page/Page.cpp:
4058         (WebCore::Page::reportMemoryUsage):
4059         * platform/KURL.cpp:
4060         (WebCore::KURL::reportMemoryUsage):
4061         * platform/KURLGoogle.cpp:
4062         (WebCore::KURLGooglePrivate::reportMemoryUsage):
4063         * platform/KURLWTFURLImpl.h:
4064         (WebCore::KURLWTFURLImpl::reportMemoryUsage):
4065         * platform/ScrollableArea.cpp:
4066         (WebCore::ScrollableArea::reportMemoryUsage):
4067         * platform/SharedBuffer.cpp:
4068         (WebCore::SharedBuffer::reportMemoryUsage):
4069         * platform/audio/AudioArray.h:
4070         (WebCore::AudioArray::reportMemoryUsage):
4071         * platform/audio/FFTFrame.cpp:
4072         (WebCore::FFTFrame::reportMemoryUsage):
4073         * platform/audio/HRTFDatabase.cpp:
4074         (WebCore::HRTFDatabase::reportMemoryUsage):
4075         * platform/audio/HRTFDatabaseLoader.cpp:
4076         (WebCore::HRTFDatabaseLoader::reportMemoryUsage):
4077         * platform/audio/HRTFElevation.cpp:
4078         (WebCore::HRTFElevation::reportMemoryUsage):
4079         * platform/audio/HRTFKernel.cpp:
4080         (WebCore::HRTFKernel::reportMemoryUsage):
4081         * platform/audio/ffmpeg/FFTFrameFFMPEG.cpp:
4082         (reportMemoryUsage):