3e4dce4244916f633104ffbb509e218bfe53ac90
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2012-02-07  Andreas Kling  <awesomekling@apple.com>
2
3         REGRESSION(r106819): ~28% or so performance regression on the ManInBlue HTML benchmark
4         <http://webkit.org/b/77952>
5
6         Reviewed by Andreas Kling.
7         Patch by Ryosuke Niwa.
8
9         The performance regression was caused by using ensureAttributeData() which forces the
10         regeneration of invalidated attributes ("style" and SVG animatable attributes.)
11         Added an ensureAttributeDataWithoutUpdate() helper that only ensures the presence
12         of ElementAttributeData, not the validity of its contents. Use that when grabbing
13         at an element's inline and attribute styles.
14
15         * dom/Element.h:
16         (Element):
17         (WebCore::Element::ensureAttributeDataWithoutUpdate):
18         * dom/StyledElement.h:
19         (WebCore::StyledElement::ensureInlineStyleDecl):
20         (WebCore::StyledElement::ensureAttributeStyle):
21
22 2012-02-07  Michael Brüning  <michael.bruning@nokia.com>
23
24         [Qt][WK2] Compute and set cache capacities using the current CacheModel
25         https://bugs.webkit.org/show_bug.cgi?id=73918
26
27         Reviewed by Csaba Osztrogonác.
28
29         No new tests. (build fix).
30
31         * platform/qt/FileSystemQt.cpp:
32
33 2012-02-07  Michael Brüning  <michael.bruning@nokia.com>
34
35         [Qt][WK2] Compute and set cache capacities using the current CacheModel
36         https://bugs.webkit.org/show_bug.cgi?id=73918
37
38         Reviewed by Kenneth Rohde Christiansen.
39
40         No new tests. (Not applicable)
41
42         Added OS-specific implementation for retrieving the free disk space.
43
44         * platform/FileSystem.h:
45         (WebCore):
46         * platform/qt/FileSystemQt.cpp:
47         (WebCore::getVolumeFreeSizeForPath):
48         (WebCore):
49
50 2012-02-07  Kenneth Rohde Christiansen  <kenneth@webkit.org>
51
52         [Inspector] Add the Nokia N9 user agent
53         https://bugs.webkit.org/show_bug.cgi?id=77949
54
55         Reviewed by Simon Hausmann.
56
57         * inspector/front-end/SettingsScreen.js:
58         (WebInspector.SettingsScreen.prototype._createUserAgentSelectRowElement.get const):
59
60 2012-02-07  Alexander Pavlov  <apavlov@chromium.org>
61
62         [CRASH] bool EventHandler::dispatchSyntheticTouchEventIfEnabled(const PlatformMouseEvent& event) references a NULL pointer
63         https://bugs.webkit.org/show_bug.cgi?id=77953
64
65         Reviewed by Andreas Kling.
66
67         * page/EventHandler.cpp:
68         (WebCore::EventHandler::dispatchSyntheticTouchEventIfEnabled):
69
70 2012-02-07  Sheriff Bot  <webkit.review.bot@gmail.com>
71
72         Unreviewed, rolling out r106912.
73         http://trac.webkit.org/changeset/106912
74         https://bugs.webkit.org/show_bug.cgi?id=77947
75
76         "AppleWebKit build is broken" (Requested by haraken on
77         #webkit).
78
79         * dom/ScriptExecutionContext.cpp:
80         (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
81         (WebCore):
82         * dom/ScriptExecutionContext.h:
83         (WebCore):
84         (ScriptExecutionContext):
85         * html/DOMURL.cpp:
86         (WebCore::DOMURL::DOMURL):
87         (WebCore):
88         (WebCore::DOMURL::~DOMURL):
89         (WebCore::DOMURL::contextDestroyed):
90         (WebCore::DOMURL::createObjectURL):
91         (WebCore::DOMURL::revokeObjectURL):
92         * html/DOMURL.h:
93         (WebCore::DOMURL::create):
94         (DOMURL):
95         * html/DOMURL.idl:
96         * html/PublicURLManager.h: Removed.
97         * page/DOMWindow.cpp:
98         (WebCore):
99         (WebCore::DOMWindow::webkitURL):
100         * page/DOMWindow.h:
101         (DOMWindow):
102         * page/DOMWindow.idl:
103         * workers/WorkerContext.cpp:
104         (WebCore):
105         (WebCore::WorkerContext::webkitURL):
106         * workers/WorkerContext.h:
107         (WorkerContext):
108         * workers/WorkerContext.idl:
109
110 2012-02-07  Kentaro Hara  <haraken@chromium.org>
111
112         Unreviewed, rolling out r106862.
113         http://trac.webkit.org/changeset/106862
114         https://bugs.webkit.org/show_bug.cgi?id=77510
115
116         Mac build fails if we manually remove generated code
117
118         * DerivedSources.make:
119         * bindings/scripts/generate-bindings.pl:
120         (generateEmptyHeaderAndCpp):
121         * bindings/scripts/resolve-supplemental.pl:
122         * bindings/scripts/update-idl-needs-rebuild.pl: Removed.
123
124 2012-02-07  Kaustubh Atrawalkar  <kaustubh@motorola.com>
125
126         Migrate createObjectURL & revokeObjectURL to static (Class) methods.
127         https://bugs.webkit.org/show_bug.cgi?id=74386
128
129         Reviewed by David Levin.
130
131         Test: fast/dom/DOMURL/check-instanceof-domurl-functions.html
132         Already Existing:
133             fast/files/revoke-blob-url.html
134             fast/dom/window-domurl-crash.html
135             fast/files/apply-blob-url-to-img.html
136             fast/files/create-blob-url-crash.html
137             fast/files/workers/inline-worker-via-blob-url.html
138
139         * dom/ScriptExecutionContext.cpp:
140         (WebCore::ScriptExecutionContext::fileThread):
141         (WebCore):
142         (WebCore::ScriptExecutionContext::publicURLManager):
143         * dom/ScriptExecutionContext.h:
144         (WebCore):
145         (ScriptExecutionContext):
146         * html/DOMURL.cpp:
147         (WebCore):
148         (WebCore::DOMURL::createObjectURL): Changed to static.
149         (WebCore::DOMURL::revokeObjectURL): ditto.
150         * html/DOMURL.h:
151         (DOMURL):
152         (WebCore::DOMURL::create):
153         * html/DOMURL.idl:
154         * html/PublicURLManager.h: Added.
155         (WebCore):
156         (PublicURLManager):
157         (WebCore::PublicURLManager::create):
158         (WebCore::PublicURLManager::contextDestroyed):
159         (WebCore::PublicURLManager::blobURLs):
160         (WebCore::PublicURLManager::streamURLs):
161         * page/DOMWindow.cpp: Removed object initialization for DOMURL.
162         (WebCore):
163         * page/DOMWindow.h: ditto.
164         (DOMWindow):
165         * page/DOMWindow.idl:
166         * workers/WorkerContext.cpp:
167         (WebCore):
168         * workers/WorkerContext.h:
169         (WorkerContext):
170         * workers/WorkerContext.idl:
171
172 2012-02-03  Vsevolod Vlasov  <vsevik@chromium.org>
173
174         http/tests/inspector/indexeddb/database-structure.html failing on chromium win/linux
175         https://bugs.webkit.org/show_bug.cgi?id=77661
176
177         Reviewed by Yury Semikhatsky.
178
179         * inspector/InspectorIndexedDBAgent.cpp:
180         (WebCore):
181
182 2012-02-07  Hayato Ito  <hayato@chromium.org>
183
184         Fix build on Mac with '--shadow-dom'.
185         https://bugs.webkit.org/show_bug.cgi?id=77940
186
187         Reviewed by Hajime Morita.
188
189         * WebCore.xcodeproj/project.pbxproj:
190
191 2012-02-06  Shinya Kawanaka  <shinyak@google.com>
192
193         Stop calling Element::ensureShadowRoot() if it is used in construction phase.
194         https://bugs.webkit.org/show_bug.cgi?id=77929
195
196         Reviewed by Hajime Morita.
197
198         ShadowRoot's life cycle can be consufing If Element::ensureShadowRoot() is used.
199         So we want to remove Element::ensureShadowRoot().
200         This patch replaces Element::ensureShadowRoot() if it is used in object construction phase.
201
202         No new tests, no change in behavior.
203
204         * html/HTMLDetailsElement.cpp:
205         (WebCore::HTMLDetailsElement::createShadowSubtree):
206         * html/HTMLKeygenElement.cpp:
207         (WebCore::HTMLKeygenElement::HTMLKeygenElement):
208         * html/HTMLMeterElement.cpp:
209         (WebCore::HTMLMeterElement::createShadowSubtree):
210         * html/HTMLProgressElement.cpp:
211         (WebCore::HTMLProgressElement::createShadowSubtree):
212         * html/HTMLSummaryElement.cpp:
213         (WebCore::HTMLSummaryElement::createShadowSubtree):
214         * html/HTMLTextAreaElement.cpp:
215         (WebCore::HTMLTextAreaElement::createShadowSubtree):
216
217 2012-02-06  Shinya Kawanaka  <shinyak@google.com>
218
219         Remove Element::ensureShadowRoot export.
220         https://bugs.webkit.org/show_bug.cgi?id=77932
221
222         Reviewed by Hajime Morita.
223
224         Removes Element::ensureShadowRoot export.
225
226         No new tests, no change in behavior.
227
228         * WebCore.exp.in:
229
230 2012-02-06  Ilya Tikhonovsky  <loislo@chromium.org>
231
232         Unreviewed. Web Inspector: rename Artificial to Synthetic according to v8 patch r10614.
233
234         * inspector/front-end/DetailedHeapshotGridNodes.js:
235         * inspector/front-end/HeapSnapshot.js:
236         (WebInspector.HeapSnapshotNode.prototype.get isSynthetic):
237         (WebInspector.HeapSnapshot.prototype._init):
238
239 2012-02-06  Hayato Ito  <hayato@chromium.org>
240
241         Implement querySelector on ShadowRoot.
242         https://bugs.webkit.org/show_bug.cgi?id=77714
243
244         Reviewed by Dimitri Glazkov.
245
246         * dom/SelectorQuery.cpp:
247         (WebCore::nodeIsRootNodeOfTreeScope):
248         (WebCore):
249         (WebCore::SelectorDataList::execute):
250
251 2012-02-06  Martin Robinson  <mrobinson@igalia.com> and Nayan Kumar K  <nayankk@motorola.com>
252
253         [GTK] Add TextureMapperGL implementation
254         https://bugs.webkit.org/show_bug.cgi?id=75308
255
256         Reviewed by Alejandro G. Castro.
257
258         No new tests. This will be covered by accelerated compositing and
259         3D CSS transform tests eventually.
260
261         * GNUmakefile.list.am: Added some files necessary to build TextureMapperGL.
262         * platform/graphics/cairo/TextureMapperGLCairo.cpp: Added implementations.
263         * platform/graphics/cairo/TextureMapperGLCairo.h: Updated member list.
264         * platform/graphics/gtk/WindowGLContext.h: Added.
265         * platform/graphics/gtk/WindowGLContextGLX.cpp: Added.
266         * platform/graphics/opengl/TextureMapperGL.cpp: Use the GL shims on GTK.
267
268 2012-02-06  Emil A Eklund  <eae@chromium.org>
269
270         Change baselinePosition and lineHeight to LayoutUnit
271         https://bugs.webkit.org/show_bug.cgi?id=77905
272
273         Reviewed by Eric Seidel.
274
275         Change the virtual baselinePosition and lineHeight methods to return
276         LayoutUnits as they are both computed from the height and top/bottom
277         margins (or width and left/right margins for vertical text), all of
278         which are LayoutUnits.
279
280         No new tests.
281
282         * platform/efl/RenderThemeEfl.cpp:
283         (WebCore::RenderThemeEfl::baselinePosition):
284         * platform/efl/RenderThemeEfl.h:
285         (RenderThemeEfl):
286         * platform/gtk/RenderThemeGtk.cpp:
287         (WebCore::RenderThemeGtk::baselinePosition):
288         * platform/gtk/RenderThemeGtk.h:
289         (RenderThemeGtk):
290         * platform/qt/RenderThemeQt.cpp:
291         (WebCore::RenderThemeQt::baselinePosition):
292         * platform/qt/RenderThemeQt.h:
293         (RenderThemeQt):
294         * rendering/RenderListMarker.cpp:
295         (WebCore::RenderListMarker::lineHeight):
296         (WebCore::RenderListMarker::baselinePosition):
297         * rendering/RenderListMarker.h:
298         (RenderListMarker):
299         * rendering/RenderSlider.cpp:
300         (WebCore::RenderSlider::baselinePosition):
301         * rendering/RenderSlider.h:
302         (RenderSlider):
303         * rendering/RootInlineBox.h:
304         (WebCore::RootInlineBox::baselinePosition):
305         (WebCore::RootInlineBox::lineHeight):
306         * rendering/mathml/RenderMathMLFraction.cpp:
307         (WebCore::RenderMathMLFraction::baselinePosition):
308         * rendering/mathml/RenderMathMLFraction.h:
309         (RenderMathMLFraction):
310         * rendering/mathml/RenderMathMLOperator.cpp:
311         (WebCore::RenderMathMLOperator::baselinePosition):
312         * rendering/mathml/RenderMathMLOperator.h:
313         (RenderMathMLOperator):
314         * rendering/mathml/RenderMathMLRow.cpp:
315         (WebCore::RenderMathMLRow::baselinePosition):
316         * rendering/mathml/RenderMathMLRow.h:
317         (RenderMathMLRow):
318         * rendering/mathml/RenderMathMLSubSup.cpp:
319         (WebCore::RenderMathMLSubSup::baselinePosition):
320         * rendering/mathml/RenderMathMLSubSup.h:
321         (RenderMathMLSubSup):
322         * rendering/mathml/RenderMathMLUnderOver.cpp:
323         (WebCore::RenderMathMLUnderOver::baselinePosition):
324         * rendering/mathml/RenderMathMLUnderOver.h:
325         (RenderMathMLUnderOver):
326
327 2012-02-06  Xianzhu Wang  <wangxianzhu@chromium.org>
328
329         Avoid Page::updateViewportArguments() if the causing frame is not the main frame
330         https://bugs.webkit.org/show_bug.cgi?id=77387
331
332         Reviewed by Kenneth Rohde Christiansen.
333
334         * dom/Document.cpp:
335         (WebCore::Document::processViewport):
336         (WebCore::Document::updateViewportArguments):
337         (WebCore::Document::setInPageCache):
338         * dom/Document.h:
339         (Document):
340         * html/HTMLBodyElement.cpp:
341         (WebCore::HTMLBodyElement::insertedIntoDocument):
342         * page/Frame.cpp:
343         (WebCore::Frame::setDocument):
344         * page/Page.cpp:
345         (WebCore::Page::viewportArguments):
346         (WebCore):
347         * page/Page.h:
348         (Page):
349
350 2012-02-06  Martin Robinson  <mrobinson@igalia.com>
351
352         Fix some miscellaneous 'make dist' error for WebKitGTK+.
353
354         * GNUmakefile.list.am: Add some missing Shadow DOM files to the
355         source list.
356
357 2012-02-06  Dana Jansens  <danakj@chromium.org>
358
359         Add contains() test to Region
360         https://bugs.webkit.org/show_bug.cgi?id=72294
361
362         Reviewed by Anders Carlsson.
363
364         * platform/graphics/Region.cpp:
365         (WebCore::Region::contains):
366         (WebCore):
367         * platform/graphics/Region.h:
368         (Region):
369         (Shape):
370         (WebCore::operator==):
371         (WebCore):
372
373 2012-02-06  Kentaro Hara  <haraken@chromium.org>
374
375         Rename [DontCheckEnums], [ReturnsNew], [DoNotCheckDomainSecurityOnGet],
376         [DoNotCheckDomainSecurityOnSet] and [ImplementationFunction] IDLs
377         https://bugs.webkit.org/show_bug.cgi?id=77852
378
379         Reviewed by Adam Barth.
380
381         This patch renames [DontCheckEnums], [ReturnsNew], [DoNotCheckDomainSecurityOnGet],
382         [DoNotCheckDomainSecurityOnSet] and [ImplementationFunction] IDLs for clarification.
383
384         [DontCheckEnums] => [DoNotCheckConstants]  (This IDL inserts assertions to check if a
385         constant value is equal to the expected constant value)
386         [ReturnsNew] => [ReturnNewObject] (For clarification)
387         [DoNotCheckDomainSecurityOnGet] => [DoNotCheckDomainSecurityOnGetter] (For naming consistency
388         with other [*Getter] IDLs)
389         [DoNotCheckDomainSecurityOnSet] => [DoNotCheckDomainSecurityOnSetter] (For naming consistency
390         with other [*Setter] IDLs)
391         [ImplementationFunction=] => [ImplementedAs=] (For clarification. This IDL specifies a method
392         name in implementation)
393
394         No tests. No change in behavior.
395
396         * bindings/scripts/CodeGenerator.pm:
397         (ShouldCheckEnums):
398         (GenerateCompileTimeCheckForEnumsIfNeeded):
399         * bindings/scripts/CodeGeneratorJS.pm:
400         (GenerateHeader):
401         (GenerateImplementation):
402         (NativeToJSValue):
403         * bindings/scripts/CodeGeneratorV8.pm:
404         (GenerateSingleBatchedAttribute):
405         (GenerateFunctionCallString):
406         (NativeToJSValue):
407
408         * bindings/scripts/test/TestObj.idl:
409         * bindings/scripts/test/TestTypedArray.idl:
410
411         * bindings/scripts/test/JS/JSTestInterface.cpp:
412         (WebCore):
413         * bindings/scripts/test/JS/JSTestObj.cpp:
414         (WebCore):
415         * bindings/scripts/test/V8/V8TestInterface.cpp:
416         (WebCore):
417         * bindings/scripts/test/V8/V8TestObj.cpp:
418         (WebCore):
419
420         * css/WebKitCSSFilterValue.idl:
421         * css/WebKitCSSTransformValue.idl:
422         * dom/DOMCoreException.idl:
423         * dom/Document.idl:
424         * dom/EventException.idl:
425         * dom/RangeException.idl:
426         * fileapi/FileException.idl:
427         * fileapi/OperationNotAllowedException.idl:
428         * html/HTMLFormElement.idl:
429         * html/canvas/Float32Array.idl:
430         * html/canvas/Float64Array.idl:
431         * html/canvas/Int16Array.idl:
432         * html/canvas/Int32Array.idl:
433         * html/canvas/Int8Array.idl:
434         * html/canvas/OESStandardDerivatives.idl:
435         * html/canvas/OESVertexArrayObject.idl:
436         * html/canvas/Uint16Array.idl:
437         * html/canvas/Uint32Array.idl:
438         * html/canvas/Uint8Array.idl:
439         * html/canvas/Uint8ClampedArray.idl:
440         * html/canvas/WebGLCompressedTextures.idl:
441         * html/canvas/WebGLDebugRendererInfo.idl:
442         * html/canvas/WebGLRenderingContext.idl:
443         * inspector/JavaScriptCallFrame.idl:
444         * loader/appcache/DOMApplicationCache.idl:
445         * page/Console.idl:
446         * page/DOMWindow.idl:
447         * page/Location.idl:
448         * storage/IDBCursor.idl:
449         * storage/IDBDatabaseException.idl:
450         * storage/IDBObjectStore.idl:
451         * storage/SQLException.idl:
452         * svg/SVGComponentTransferFunctionElement.idl:
453         * svg/SVGException.idl:
454         * svg/SVGFEBlendElement.idl:
455         * svg/SVGFEColorMatrixElement.idl:
456         * svg/SVGFECompositeElement.idl:
457         * svg/SVGFEConvolveMatrixElement.idl:
458         * svg/SVGFEDisplacementMapElement.idl:
459         * svg/SVGFEMorphologyElement.idl:
460         * svg/SVGFETurbulenceElement.idl:
461         * svg/SVGGradientElement.idl:
462         * xml/XMLHttpRequestException.idl:
463         * xml/XPathException.idl:
464
465 2012-02-06  James Robinson  <jamesr@chromium.org>
466
467         [chromium] canvas demo is slow due to unnecessary resource cleanups
468         https://bugs.webkit.org/show_bug.cgi?id=77135
469
470         Reviewed by Kenneth Russell.
471
472         This defers dropping a ManagedTexture until it is evicted by the manager, the layer is destroyed, the
473         TextureManager is destroyed, or the layer is added to a CCLayerTreeHost that has a different texture manager. In
474         particular, removing a layer from a CCLayerTreeHost and then adding it back to the same host does not drop any
475         ManagedTextures unless the manager has to evict it for other reasons. This provides a big speedup on sites that
476         rebuild the compositing tree frequently.
477
478         New unit test added for ManagedTexture / TextureManager interaction.
479
480         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
481         (WebCore::Canvas2DLayerChromium::setLayerTreeHost):
482         (WebCore::Canvas2DLayerChromium::setTextureManager):
483         * platform/graphics/chromium/Canvas2DLayerChromium.h:
484         (Canvas2DLayerChromium):
485         * platform/graphics/chromium/LayerChromium.cpp:
486         (WebCore::LayerChromium::setLayerTreeHost):
487         * platform/graphics/chromium/LayerChromium.h:
488         (LayerChromium):
489         * platform/graphics/chromium/ManagedTexture.cpp:
490         (WebCore::ManagedTexture::setTextureManager):
491         (WebCore):
492         (WebCore::ManagedTexture::steal):
493         (WebCore::ManagedTexture::clear):
494         * platform/graphics/chromium/ManagedTexture.h:
495         (ManagedTexture):
496         * platform/graphics/chromium/RenderSurfaceChromium.h:
497         (RenderSurfaceChromium):
498         * platform/graphics/chromium/TiledLayerChromium.cpp:
499         (WebCore::TiledLayerChromium::setLayerTreeHost):
500         (WebCore):
501         (WebCore::TiledLayerChromium::prepareToUpdateTiles):
502         * platform/graphics/chromium/TiledLayerChromium.h:
503
504 2012-02-06  Kentaro Hara  <haraken@chromium.org>
505
506         Unreviewed, rolling out r106883.
507         http://trac.webkit.org/changeset/106883
508         https://bugs.webkit.org/show_bug.cgi?id=77852
509
510         build failure around Chromium V8 bindings
511
512         * bindings/scripts/CodeGenerator.pm:
513         (ShouldCheckEnums):
514         (GenerateCompileTimeCheckForEnumsIfNeeded):
515         * bindings/scripts/CodeGeneratorJS.pm:
516         (GenerateHeader):
517         (GenerateImplementation):
518         (NativeToJSValue):
519         * bindings/scripts/CodeGeneratorV8.pm:
520         (GenerateSingleBatchedAttribute):
521         (GenerateFunctionCallString):
522         (NativeToJSValue):
523         * bindings/scripts/test/JS/JSTestInterface.cpp:
524         (WebCore):
525         * bindings/scripts/test/JS/JSTestObj.cpp:
526         (WebCore):
527         * bindings/scripts/test/TestObj.idl:
528         * bindings/scripts/test/TestTypedArray.idl:
529         * bindings/scripts/test/V8/V8TestInterface.cpp:
530         (WebCore):
531         * bindings/scripts/test/V8/V8TestObj.cpp:
532         (WebCore):
533         * css/WebKitCSSFilterValue.idl:
534         * css/WebKitCSSTransformValue.idl:
535         * dom/DOMCoreException.idl:
536         * dom/Document.idl:
537         * dom/EventException.idl:
538         * dom/RangeException.idl:
539         * fileapi/FileException.idl:
540         * fileapi/OperationNotAllowedException.idl:
541         * html/HTMLFormElement.idl:
542         * html/canvas/Float32Array.idl:
543         * html/canvas/Float64Array.idl:
544         * html/canvas/Int16Array.idl:
545         * html/canvas/Int32Array.idl:
546         * html/canvas/Int8Array.idl:
547         * html/canvas/OESStandardDerivatives.idl:
548         * html/canvas/OESVertexArrayObject.idl:
549         * html/canvas/Uint16Array.idl:
550         * html/canvas/Uint32Array.idl:
551         * html/canvas/Uint8Array.idl:
552         * html/canvas/Uint8ClampedArray.idl:
553         * html/canvas/WebGLCompressedTextures.idl:
554         * html/canvas/WebGLDebugRendererInfo.idl:
555         * html/canvas/WebGLRenderingContext.idl:
556         * inspector/JavaScriptCallFrame.idl:
557         * loader/appcache/DOMApplicationCache.idl:
558         * page/Console.idl:
559         * page/DOMWindow.idl:
560         * page/Location.idl:
561         * storage/IDBCursor.idl:
562         * storage/IDBDatabaseException.idl:
563         * storage/IDBObjectStore.idl:
564         * storage/SQLException.idl:
565         * svg/SVGComponentTransferFunctionElement.idl:
566         * svg/SVGException.idl:
567         * svg/SVGFEBlendElement.idl:
568         * svg/SVGFEColorMatrixElement.idl:
569         * svg/SVGFECompositeElement.idl:
570         * svg/SVGFEConvolveMatrixElement.idl:
571         * svg/SVGFEDisplacementMapElement.idl:
572         * svg/SVGFEMorphologyElement.idl:
573         * svg/SVGFETurbulenceElement.idl:
574         * svg/SVGGradientElement.idl:
575         * xml/XMLHttpRequestException.idl:
576         * xml/XPathException.idl:
577
578 2012-02-06  Yongsheng Zhu  <yongsheng.zhu@intel.com>
579
580         WebGL must allocate smaller drawing buffer when the allocation fails. 
581         https://bugs.webkit.org/show_bug.cgi?id=76654
582
583         Reviewed by Kenneth Russell.
584
585         Test: fast/canvas/webgl/drawingbuffer-test.html
586
587         * platform/graphics/gpu/DrawingBuffer.cpp:
588         (WebCore):
589         (WebCore::DrawingBuffer::create):
590         (WebCore::DrawingBuffer::reset):
591
592 2012-02-06  Kentaro Hara  <haraken@chromium.org>
593
594         Unreviewed. Rebaselined run-bindings-tests results.
595
596         * bindings/scripts/test/V8/V8TestObj.cpp:
597         (WebCore::TestObjInternal::optionsObjectCallback):
598
599 2012-02-06  Levi Weintraub  <leviw@chromium.org>
600
601         Correct usage of LayoutUnits in dom, editing, page, accessibility, inspector, and loader
602         https://bugs.webkit.org/show_bug.cgi?id=77891
603
604         Reviewed by Darin Adler.
605
606         Updating the usage of LayoutUnits in the dom, editing, page, accessibility, inspector, and loader
607         directories to properly use LayoutUnits vs ints.
608
609         No new tests. No new behavior.
610
611         * accessibility/AccessibilityObject.h:
612         (WebCore::AccessibilityObject::boundsForVisiblePositionRange):
613         (WebCore::AccessibilityObject::doAXBoundsForRange):
614         * accessibility/AccessibilityRenderObject.cpp:
615         (WebCore::AccessibilityRenderObject::isOffScreen):
616         (WebCore::AccessibilityRenderObject::clickPoint):
617         (WebCore::AccessibilityRenderObject::boundsForVisiblePositionRange):
618         (WebCore::AccessibilityRenderObject::doAXBoundsForRange):
619         (WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
620         * accessibility/AccessibilityRenderObject.h:
621         (AccessibilityRenderObject):
622         * accessibility/AccessibilitySlider.cpp:
623         (WebCore::AccessibilitySlider::elementAccessibilityHitTest):
624         * accessibility/AccessibilitySlider.h:
625         (AccessibilitySlider):
626         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
627         (-[WebAccessibilityObjectWrapper accessibilityShowContextMenu]):
628         * css/CSSComputedStyleDeclaration.cpp:
629         (WebCore::computedTransform):
630         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
631         * dom/Clipboard.h:
632         (WebCore::Clipboard::dragLocation):
633         (Clipboard):
634         * dom/DocumentMarkerController.cpp:
635         (WebCore::DocumentMarkerController::renderedRectsForMarkers):
636         * dom/DocumentMarkerController.h:
637         * dom/Element.cpp:
638         (WebCore::Element::screenRect):
639         * dom/Element.h:
640         (Element):
641         * editing/Editor.cpp:
642         (WebCore::Editor::rangeForPoint):
643         (WebCore::Editor::firstRectForRange):
644         * editing/RenderedPosition.cpp:
645         (WebCore::RenderedPosition::absoluteRect):
646         * editing/RenderedPosition.h:
647         (WebCore::RenderedPosition::absoluteRect):
648         (RenderedPosition):
649         * editing/VisiblePosition.h:
650         (VisiblePosition):
651         * inspector/DOMNodeHighlighter.cpp:
652         * loader/SubframeLoader.cpp:
653         (WebCore::SubframeLoader::createJavaAppletWidget):
654         * loader/SubframeLoader.h:
655         (SubframeLoader):
656         * page/EventHandler.cpp:
657         (WebCore::EventHandler::handleMousePressEvent):
658         * page/Frame.cpp:
659         (WebCore::Frame::nodeImage):
660         * page/win/FrameCGWin.cpp:
661         (WebCore::Frame::nodeImage):
662
663 2012-02-05  Kentaro Hara  <haraken@chromium.org>
664
665         Rename [DontCheckEnums], [ReturnsNew], [DoNotCheckDomainSecurityOnGet],
666         [DoNotCheckDomainSecurityOnSet] and [ImplementationFunction] IDLs
667         https://bugs.webkit.org/show_bug.cgi?id=77852
668
669         Reviewed by Adam Barth.
670
671         This patch renames [DontCheckEnums], [ReturnsNew], [DoNotCheckDomainSecurityOnGet],
672         [DoNotCheckDomainSecurityOnSet] and [ImplementationFunction] IDLs for clarification.
673
674         [DontCheckEnums] => [DoNotCheckConstants]  (This IDL inserts assertions to check if a
675         constant value is equal to the expected constant value)
676         [ReturnsNew] => [ReturnNewObject] (For clarification)
677         [DoNotCheckDomainSecurityOnGet] => [DoNotCheckDomainSecurityOnGetter] (For naming consistency
678         with other [*Getter] IDLs)
679         [DoNotCheckDomainSecurityOnSet] => [DoNotCheckDomainSecurityOnSetter] (For naming consistency
680         with other [*Setter] IDLs)
681         [ImplementationFunction=] => [ImplementedAs=] (For clarification. This IDL specifies a method
682         name in implementation)
683
684         No tests. No change in behavior.
685
686         * bindings/scripts/CodeGenerator.pm:
687         (ShouldCheckEnums):
688         (GenerateCompileTimeCheckForEnumsIfNeeded):
689         * bindings/scripts/CodeGeneratorJS.pm:
690         (GenerateHeader):
691         (GenerateImplementation):
692         (NativeToJSValue):
693         * bindings/scripts/CodeGeneratorV8.pm:
694         (GenerateSingleBatchedAttribute):
695         (GenerateFunctionCallString):
696         (NativeToJSValue):
697
698         * bindings/scripts/test/TestObj.idl:
699         * bindings/scripts/test/TestTypedArray.idl:
700
701         * bindings/scripts/test/JS/JSTestInterface.cpp: Updated run-bindings-tests results.
702         (WebCore):
703         * bindings/scripts/test/JS/JSTestObj.cpp: Ditto.
704         (WebCore):
705         * bindings/scripts/test/V8/V8TestInterface.cpp: Ditto.
706         (WebCore):
707         * bindings/scripts/test/V8/V8TestObj.cpp: Ditto.
708         (WebCore):
709
710         * bindings/scripts/test/TestObj.idl:
711         * bindings/scripts/test/TestTypedArray.idl:
712         * css/WebKitCSSFilterValue.idl:
713         * css/WebKitCSSTransformValue.idl:
714         * dom/DOMCoreException.idl:
715         * dom/Document.idl:
716         * dom/EventException.idl:
717         * dom/RangeException.idl:
718         * fileapi/FileException.idl:
719         * fileapi/OperationNotAllowedException.idl:
720         * html/HTMLFormElement.idl:
721         * html/canvas/Float32Array.idl:
722         * html/canvas/Float64Array.idl:
723         * html/canvas/Int16Array.idl:
724         * html/canvas/Int32Array.idl:
725         * html/canvas/Int8Array.idl:
726         * html/canvas/OESStandardDerivatives.idl:
727         * html/canvas/OESVertexArrayObject.idl:
728         * html/canvas/Uint16Array.idl:
729         * html/canvas/Uint32Array.idl:
730         * html/canvas/Uint8Array.idl:
731         * html/canvas/Uint8ClampedArray.idl:
732         * html/canvas/WebGLCompressedTextures.idl:
733         * html/canvas/WebGLDebugRendererInfo.idl:
734         * html/canvas/WebGLRenderingContext.idl:
735         * inspector/JavaScriptCallFrame.idl:
736         * loader/appcache/DOMApplicationCache.idl:
737         * page/Console.idl:
738         * page/DOMWindow.idl:
739         * page/Location.idl:
740         * storage/IDBCursor.idl:
741         * storage/IDBDatabaseException.idl:
742         * storage/IDBObjectStore.idl:
743         * storage/SQLException.idl:
744         * svg/SVGComponentTransferFunctionElement.idl:
745         * svg/SVGException.idl:
746         * svg/SVGFEBlendElement.idl:
747         * svg/SVGFEColorMatrixElement.idl:
748         * svg/SVGFECompositeElement.idl:
749         * svg/SVGFEConvolveMatrixElement.idl:
750         * svg/SVGFEDisplacementMapElement.idl:
751         * svg/SVGFEMorphologyElement.idl:
752         * svg/SVGFETurbulenceElement.idl:
753         * svg/SVGGradientElement.idl:
754         * xml/XMLHttpRequestException.idl:
755
756 2012-02-06  Stephen Chenney  <schenney@chromium.org>
757
758         RenderSVGShape::strokeContains will fail for some strokes
759         https://bugs.webkit.org/show_bug.cgi?id=76931
760
761         Reviewed by Darin Adler.
762
763         Adding support for rounded zero-length endcaps for SVG path hit
764         testing.
765
766         Tests: svg/hittest/zero-length-butt-cap-path.xhtml
767                svg/hittest/zero-length-round-cap-path.xhtml
768                svg/hittest/zero-length-square-cap-path.xhtml
769
770         * rendering/svg/RenderSVGShape.cpp:
771         (WebCore::RenderSVGShape::strokeContains):
772
773 2012-02-06  Gregg Tavares  <gman@google.com>
774
775         Add webGLErrorsToConsoleEnabled Settings flag
776         https://bugs.webkit.org/show_bug.cgi?id=77696
777
778         Reviewed by Kenneth Russell.
779
780         No new tests as there is no change in behavior.
781
782         * html/canvas/WebGLRenderingContext.cpp:
783         (WebCore):
784         (WebCore::WebGLRenderingContext::setupFlags):
785         * page/Settings.cpp:
786         (WebCore::Settings::Settings):
787         * page/Settings.h:
788         (Settings):
789         (WebCore::Settings::webGLErrorsToConsoleEnabled):
790
791 2012-02-06  Emil A Eklund  <eae@chromium.org>
792
793         Convert PopupMenuClient::clientPadding over to new layout abstraction
794         https://bugs.webkit.org/show_bug.cgi?id=77798
795
796         Reviewed by Eric Seidel.
797
798         Change PopupMenuClient and all classes inheriting from it to use the new
799         layout types for padding.
800
801         No new tests.
802
803         * platform/PopupMenuClient.h:
804         (PopupMenuClient):
805         * rendering/RenderMenuList.h:
806         * rendering/RenderTextControlSingleLine.cpp:
807         (WebCore::RenderTextControlSingleLine::clientPaddingLeft):
808         (WebCore::RenderTextControlSingleLine::clientPaddingRight):
809         * rendering/RenderTextControlSingleLine.h:
810
811 2012-02-06  Philip Rogers  <pdr@google.com>
812
813         Fix color animations by value
814         https://bugs.webkit.org/show_bug.cgi?id=77812
815
816         Reviewed by Darin Adler.
817
818         Test: svg/animations/animate-color-fill-from-by.html
819
820         * svg/SVGAnimatedColor.cpp:
821         (WebCore::SVGAnimatedColorAnimator::calculateFromAndByValues):
822
823 2012-02-03  Jer Noble  <jer.noble@apple.com>
824
825         REGRESSION (r104303): Clicking inline video controls gives the video a focus ring
826         https://bugs.webkit.org/show_bug.cgi?id=77288
827
828         Reviewed by Darin Adler.
829
830         Test: media/video-mouse-focus.html
831
832         Do not allow media elements to be focused by mouse click by overriding isMouseFocusable
833         and returning false.
834
835         * html/HTMLMediaElement.cpp:
836         (WebCore::HTMLMediaElement::isMouseFocusable):
837         * html/HTMLMediaElement.h:
838
839 2012-02-06  Anders Carlsson  <andersca@apple.com>
840
841         Overlay scrollbars flash when window is simply activated
842         https://bugs.webkit.org/show_bug.cgi?id=77911
843         <rdar://problem/10211995>
844
845         Reviewed by Kenneth Russell.
846
847         Add a new member function, FocusController::setContainingWindowIsVisible, and move the code
848         that calls ScrollableArea::contentAreaDidShow/ScrollableArea::contentAreaDidHide there, since
849         we only want to flash scrollers when the window becomes visible.
850
851         * WebCore.exp.in:
852         * page/FocusController.cpp:
853         (WebCore::FocusController::FocusController):
854         (WebCore::FocusController::setActive):
855         (WebCore::FocusController::setContainingWindowIsVisible):
856         (WebCore):
857         * page/FocusController.h:
858         (FocusController):
859         (WebCore::FocusController::containingWindowIsVisible):
860
861         * platform/mac/ScrollAnimatorMac.mm:
862         (-[WebScrollbarPainterControllerDelegate scrollerImpPair:setContentAreaNeedsDisplayInRect:]):
863         Call ScrollAnimatorMac::contentAreaWillPaint here, since that will trigger AppKit to flash the scrollers.
864
865 2012-02-06  Greg Simon  <gregsimon@chromium.org>
866
867         postMessage leaks MemoryEvent object
868         https://bugs.webkit.org/show_bug.cgi?id=77893
869
870         Reviewed by Adam Barth.
871
872         Changed from PassRefPtr().leakRef() to RefPtr.get() when 
873         calling into FrameLoaderClient to stop +1 extra ref.
874
875         * page/DOMWindow.cpp:
876         (WebCore::DOMWindow::postMessageTimerFired):
877
878 2012-02-06  Ehsan Akhgari  <ehsan.akhgari@gmail.com>
879
880         WebGL conformance test misc/functions-returning-strings.html fails
881         https://bugs.webkit.org/show_bug.cgi?id=77149
882
883         Make sure that WebGL methods returning strings don't return null when
884         they run successfully.
885
886         Reviewed by Kenneth Russell.
887
888         Test: fast/canvas/webgl/functions-returning-strings.html
889
890         * html/canvas/WebGLRenderingContext.cpp:
891         (WebCore):
892         (WebCore::WebGLRenderingContext::getProgramInfoLog):
893         (WebCore::WebGLRenderingContext::getShaderInfoLog):
894         (WebCore::WebGLRenderingContext::getShaderSource):
895         (WebCore::WebGLRenderingContext::ensureNotNull):
896         * html/canvas/WebGLRenderingContext.h:
897         (WebGLRenderingContext):
898
899 2012-02-06  Enrica Casucci  <enrica@apple.com>
900
901         Refactor Mac platform implementation of the Pasteboard class.
902         https://bugs.webkit.org/show_bug.cgi?id=77567
903         
904         The goal of this change is to remove the majority of the methods in
905         the class interface that are Mac specific.
906         writeSelectionForTypes has been left to support OS X services.
907         Some of the methods have been turned into static functions.
908         The method asURL was being used only by the DragData class and its
909         implementation has been moved there.
910         This is a first step in the direction of removing NSPasteboard access from
911         the WebProcess for WebKit2 (https://bugs.webkit.org/show_bug.cgi?id=77259)
912         leaving the WebKit1 behavior unchanged.
913
914         Reviewed by Alexey Proskuryakov.
915
916         No new tests. No changes in behavior.
917
918         * platform/Pasteboard.h: Removed most of the Mac specific methods.
919         * platform/mac/ClipboardMac.mm:
920         (WebCore::ClipboardMac::writeRange):
921         (WebCore::ClipboardMac::writeURL):
922         * platform/mac/DragDataMac.mm:
923         (WebCore::DragData::asURL): Moved code from PasteboardMac.mm. Removed FIXME
924         because we only want to handle the case of single file, otherwise the user
925         doesn't know which of the files has been chosen.
926         * platform/mac/PasteboardMac.mm:
927         (WebCore::writeURLForTypes):
928         (WebCore::Pasteboard::writeURL):
929         (WebCore::writeFileWrapperAsRTFDAttachment): Now a static function.
930         (WebCore::Pasteboard::writeImage):
931         (WebCore::documentFragmentWithImageResource): Ditto.
932         (WebCore::documentFragmentWithRTF): Ditto.
933         (WebCore::Pasteboard::documentFragment):
934
935 2012-02-06  James Robinson  <jamesr@chromium.org>
936
937         [chromium] Drop tiles completely outside of layer bounds when resizing to a smaller size
938         https://bugs.webkit.org/show_bug.cgi?id=77910
939
940         Reviewed by Kenneth Russell.
941
942         When resizing a tiled layer to a smaller size, drop all tiles that lie completely outside the new layer bounds.
943         This avoids attempting to access out-of-bounds tiles when iterating over all tiles in the tiler, which triggers
944         ASSERT()s, as well as saves some memory.
945
946         New unit test added to TiledLayerChromiumTest.
947
948         * platform/graphics/chromium/TiledLayerChromium.cpp:
949         (WebCore::TiledLayerChromium::invalidateRect):
950         * platform/graphics/chromium/cc/CCLayerTilingData.cpp:
951         (WebCore::CCLayerTilingData::setBounds):
952
953 2012-02-06  Chris Rogers  <crogers@google.com>
954
955         zvmul incorrectly multiplies complex arrays on Windows.
956         https://bugs.webkit.org/show_bug.cgi?id=77900
957
958         Reviewed by Kenneth Russell.
959
960         * platform/audio/VectorMath.cpp:
961         (WebCore::VectorMath::zvmul):
962
963 2012-02-06  Andreas Kling  <awesomekling@apple.com>
964
965         REGRESSION(r106756): 10% performance hit on DOM/Template.
966         <http://webkit.org/b/77831>
967
968         Reviewed by Ryosuke Niwa.
969
970         Let the StylePropertySet used for element attribute style have the element as its parent.
971         This is accomplished by adding an m_parentIsElement bit to StylePropertySet and sharing
972         some of the internal logic with inline styles.
973
974         In the end, this means that CSSParser will now pick up the document's CSSValuePool when
975         parsing properties for attribute styles, which fixes the perf regression from r106756.
976
977         * css/StylePropertySet.cpp:
978         (WebCore::StylePropertySet::StylePropertySet):
979         (WebCore::StylePropertySet::contextStyleSheet):
980
981             Find contextStyleSheet via the parentElement() when there is one.
982
983         (WebCore::StylePropertySet::setNeedsStyleRecalc):
984
985             Always set FullStyleChange for attribute style mutations. We can probably use the
986             same lighter invalidation as inline styles, but that's a topic for another patch.
987
988         * css/StylePropertySet.h:
989         (WebCore::StylePropertySet::createInline):
990         (WebCore::StylePropertySet::createAttributeStyle):
991         (WebCore::StylePropertySet::parentRuleInternal):
992         (WebCore::StylePropertySet::clearParentRule):
993         (StylePropertySet):
994         (WebCore::StylePropertySet::parentElement):
995         (WebCore::StylePropertySet::clearParentElement):
996
997             Added m_parentIsElement bit and update assertions as appropriate to not just
998             cover the inline style case. Added a createAttributeStyle() helper to create
999             a StylePropertySet for use as Element::attributeStyle().
1000
1001         * dom/StyledElement.h:
1002         * dom/ElementAttributeData.h:
1003         * dom/ElementAttributeData.cpp:
1004         (WebCore::ElementAttributeData::ensureAttributeStyle):
1005
1006             Use StylePropertySet::createAttributeStyle().
1007
1008         * dom/StyledElement.cpp:
1009         (WebCore::StyledElement::removeCSSProperties):
1010         (WebCore::StyledElement::addCSSProperty):
1011         (WebCore::StyledElement::addCSSImageProperty):
1012
1013             Remove setNeedsStyleRecalc() calls since that is now handled automatically by
1014             StylePropertySet's mutation methods.
1015
1016 2012-02-06  Kentaro Hara  <haraken@chromium.org>
1017
1018         In AppleWebKit, stop rebuilding IDLs that need not to be rebuilt
1019         https://bugs.webkit.org/show_bug.cgi?id=77510
1020
1021         Reviewed by Adam Barth.
1022
1023         Currently, if any IDL file is updated, all IDL files are rebuilt.
1024         This patch stops rebuilding IDL files which are not modified nor
1025         whose supplemental dependencies are not changed.
1026
1027         The new build flow is as follows:
1028
1029             supplemental.dep : $(ALL_IDLS)
1030                 perl resolve-supplemental.pl ...
1031
1032             %.idl-needs-rebuild : %.idl supplemental.dep
1033                 perl update-idl-needs-rebuild.pl ...
1034
1035             JS%.cpp : %.idl-needs-rebuild
1036                 perl generate-bindings.pl ...
1037
1038         resolve-supplemental.pl generates the following supplemental.dep.
1039         The number in () is the last access timestamp of the file.
1040
1041             A.idl(1200)
1042             B.idl(1000) B-supplemental1.idl(800) B-supplemental2.idl(1200)
1043             C.idl(1000)
1044
1045         update-idl-needs-rebuild.pl for X.idl touches X.idl-needs-rebuild,
1046         if X.idl-needs-rebuild is older than X.idl or the IDL files which are
1047         supplementing X.idl. For example, if the timestamps of A.idl-needs-rebuild,
1048         B.idl-needs-rebuild and C.idl-needs-rebuild are all 1000, then A.idl-needs-rebuild
1049         and B.idl-needs-rebuild will be touched.
1050
1051         Even if no IDL files are modified, update-idl-needs-rebuild.pl can run for all IDL files,
1052         but generate-bindings.pl won't run. If any IDL file is updated, resolve-supplemental.pl
1053         will run once, update-idl-needs-rebuild.pl will run for all IDL files, and
1054         generate-bindings.pl will run for the IDL files which are modified or whose
1055         dependencies are changed.
1056
1057         No tests. I manually confirmed the followings:
1058         - Touch Element.idl, then only Element.idl is rebuilt
1059         - Touch DOMWindow.idl, then only DOMWindow.idl is rebuilt
1060         - Touch DOMWindowWebAudio.idl, then only DOMWindow.idl and DOMWindowWebAudio.idl are rebuilt
1061
1062         * DerivedSources.make: Modified the build flow as described above.
1063         * bindings/scripts/generate-bindings.pl: Modified to read an IDL file path from .idl-needs-rebuild.
1064         * bindings/scripts/update-idl-needs-rebuild.pl: Added. Touches X.idl-needs-rebuild if
1065         the X.idl-needs-rebuild is older than X.idl or the IDL files which are supplementing X.idl.
1066         (touch):
1067
1068 2012-02-06  Wei James  <james.wei@intel.com>
1069
1070         AudioBus need to support stereo->mono down mix in copyFrom sumFrom etc.
1071         https://bugs.webkit.org/show_bug.cgi?id=77609
1072
1073         Reviewed by Kenneth Russell.
1074
1075         Test: webaudio/stereo2mono-down-mixing.html
1076
1077         * platform/audio/AudioBus.cpp:
1078         (WebCore):
1079         (WebCore::AudioBus::copyFrom):
1080         (WebCore::AudioBus::sumFrom):
1081
1082 2012-02-06  Cris Neckar  <cdn@chromium.org>
1083
1084         Add RefPtrs for parent and sibling counter nodes
1085         https://bugs.webkit.org/show_bug.cgi?id=75212
1086
1087         Reviewed by Adam Barth.
1088
1089         Test: fast/css/counters/reparent-table-children-with-counters-crash.html
1090
1091         * rendering/RenderCounter.cpp:
1092         (WebCore::findPlaceForCounter):
1093         (WebCore::makeCounterNode):
1094         (WebCore::updateCounters):
1095
1096 2012-02-06  Kalev Lember  <kalevlember@gmail.com>
1097
1098         [GTK] Add missing pango include dir to fix build
1099         https://bugs.webkit.org/show_bug.cgi?id=77832
1100
1101         Reviewed by Martin Robinson.
1102
1103         * GNUmakefile.am: Added $(PANGO_CFLAGS) to libWebCore_la_CPPFLAGS.
1104
1105 2012-02-06  Jochen Eisinger  <jochen@chromium.org>
1106
1107         Before accessing a frame's script controller in V8 bindings, first check that the frame actually exists
1108         https://bugs.webkit.org/show_bug.cgi?id=77370
1109
1110         Reviewed by Adam Barth.
1111
1112         I don't have a working reproduction of the crash yet. As soon as I have
1113         one,  I will add new layout tests.
1114
1115         * bindings/v8/PageScriptDebugServer.cpp:
1116         (WebCore::PageScriptDebugServer::addListener):
1117         * bindings/v8/ScheduledAction.cpp:
1118         (WebCore::ScheduledAction::execute):
1119         * bindings/v8/ScriptCachedFrameData.cpp:
1120         (WebCore::ScriptCachedFrameData::restore):
1121         * page/DOMTimer.cpp:
1122         (WebCore::DOMTimer::DOMTimer): remove temporary debug code
1123
1124 2012-02-06  James Robinson  <jamesr@chromium.org>
1125
1126         Support detaching TextureManager from ManagedTexture
1127         https://bugs.webkit.org/show_bug.cgi?id=77655
1128
1129         Reviewed by Kenneth Russell.
1130         Initial patch by Alok Priyadarshi.
1131
1132         TextureManager now holds references to the textures it manages.
1133         This allows TextureManager to inform managed textures when it gets deleted
1134         so that the texture that outlive the TextureManager can handle the situation gracefully.
1135
1136         Unit test in TextureManagerTest.cpp
1137
1138         * platform/graphics/chromium/ManagedTexture.cpp:
1139         (WebCore::ManagedTexture::ManagedTexture):
1140         (WebCore::ManagedTexture::~ManagedTexture):
1141         (WebCore):
1142         (WebCore::ManagedTexture::managerWillDie):
1143         (WebCore::ManagedTexture::isValid):
1144         (WebCore::ManagedTexture::reserve):
1145         (WebCore::ManagedTexture::unreserve):
1146         (WebCore::ManagedTexture::steal):
1147         (WebCore::ManagedTexture::reset):
1148         * platform/graphics/chromium/ManagedTexture.h:
1149         (WebCore::ManagedTexture::manager):
1150         (ManagedTexture):
1151         (WebCore::ManagedTexture::isReserved):
1152         * platform/graphics/chromium/TextureManager.cpp:
1153         (WebCore::TextureManager::~TextureManager):
1154         (WebCore):
1155         (WebCore::TextureManager::setPreferredMemoryLimitBytes):
1156         (WebCore::TextureManager::registerTexture):
1157         (WebCore::TextureManager::unregisterTexture):
1158         * platform/graphics/chromium/TextureManager.h:
1159         (WebCore):
1160         (TextureManager):
1161
1162 2012-02-06  Anders Carlsson  <andersca@apple.com>
1163
1164         Wheel event handler count not updated when adding handlers to the window
1165         https://bugs.webkit.org/show_bug.cgi?id=77895
1166
1167         Reviewed by Dan Bernstein.
1168
1169         Test: fast/events/wheelevent-handler-count.html
1170
1171         * page/DOMWindow.cpp:
1172         (WebCore::DOMWindow::addEventListener):
1173         (WebCore::DOMWindow::removeEventListener):
1174         Update the wheel event count.
1175
1176         * testing/Internals.cpp:
1177         (WebCore::Internals::wheelEventHandlerCount):
1178         * testing/Internals.h:
1179         * testing/Internals.idl:
1180         Add wheelEventHandlerCount to window.internals.
1181
1182 2012-02-06  Matthew Delaney  <mdelaney@apple.com>
1183
1184         toDataURL() uses stale data after putImageData()
1185         https://bugs.webkit.org/show_bug.cgi?id=65767
1186
1187         This patch fixes the issue we've encountered of getting back
1188         stale copies of the CGContext of accelerated ImageBuffers who have seen
1189         putImageData calls but have not been drawn into via the CG API.
1190         This issue is fixed by modifying the way we implement putImageData
1191         in ImageBufferCG to draw the bits wrapped in a CGImage while the CGContext
1192         is in a state where the data will effectively be copied (as is needed for
1193         implementing putImageData) instead of directly modifying the bits of the IOSurface.
1194
1195         Reviewed by Chris Marrin.
1196
1197         Test: fast/canvas/check-stale-putImageData, pixel test to check that the canvas is in fact painted.
1198
1199         * platform/graphics/cg/ImageBufferCG.cpp: Implement new way of putting image data.
1200         * platform/graphics/ImageBuffer.h: Merged two previously separate put data calls
1201             into a single and more sensibly named 'putByteArray', since that's what it does!
1202
1203         * WebCore.exp.in: Added new WKSI call for use in ImageBufferCG.cpp
1204         * platform/mac/WebCoreSystemInterface.h:
1205         * platform/mac/WebCoreSystemInterface.mm:
1206
1207         Using new method name.
1208         * html/canvas/CanvasRenderingContext2D.cpp:
1209         * platform/graphics/ImageBuffer.cpp:
1210         * platform/graphics/ShadowBlur.cpp:        
1211         * platform/graphics/filters/FEColorMatrix.cpp:
1212         * platform/graphics/filters/FEDropShadow.cpp:
1213         * platform/graphics/filters/FilterEffect.cpp:
1214
1215         Updated other ports' ImageBuffers to use new method.
1216         * platform/graphics/cairo/ImageBufferCairo.cpp:
1217         * platform/graphics/qt/ImageBufferQt.cpp:
1218         * platform/graphics/skia/ImageBufferSkia.cpp:
1219         * platform/graphics/wince/ImageBufferWinCE.cpp:
1220         * platform/graphics/wx/ImageBufferWx.cpp:
1221
1222 2012-02-06  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1223
1224         Provide more attribute methods in Element
1225         https://bugs.webkit.org/show_bug.cgi?id=77800
1226
1227         Reviewed by Ryosuke Niwa.
1228
1229         Reduce the clients of NamedNodeMap. This will make easier to change the
1230         implementation of our attribute storage. The clients now use Element methods
1231         that expose Attribute* accessors.
1232
1233         Instead of checking the existence of NamedNodeMap, clients can call
1234         hasAttributes() or hasAttributesWithoutUpdate() (that skips updating invalid
1235         style or animation svg attributes).
1236
1237         If there are attributes, they can be accessed by index via attributeCount() /
1238         attributeItem(), as well as by QualifiedName. Those accessors assume there are an
1239         attribute storage.
1240
1241         * css/SelectorChecker.cpp:
1242         (WebCore::anyAttributeMatches):
1243         (WebCore::SelectorChecker::checkOneSelector):
1244         * css/SelectorChecker.h:
1245         (WebCore::SelectorChecker::checkExactAttribute):
1246         * dom/DatasetDOMStringMap.cpp:
1247         (WebCore::DatasetDOMStringMap::getNames):
1248         (WebCore::DatasetDOMStringMap::item):
1249         (WebCore::DatasetDOMStringMap::contains):
1250         * dom/Document.cpp:
1251         (WebCore::Document::importNode): use setAttributesFromElement() instead of manually copying.
1252         * dom/Element.h:
1253         (Element):
1254         (WebCore::Element::hasAttributesWithoutUpdate):
1255         (WebCore):
1256         (WebCore::Element::attributeCount):
1257         (WebCore::Element::attributeItem):
1258         (WebCore::Element::getAttributeItem):
1259         (WebCore::Element::removeAttribute):
1260         * dom/Node.cpp:
1261         (WebCore::Node::isDefaultNamespace):
1262         (WebCore::Node::lookupNamespaceURI):
1263         (WebCore::Node::lookupNamespacePrefix):
1264         (WebCore::Node::compareDocumentPosition):
1265         * editing/ApplyStyleCommand.cpp:
1266         (WebCore::hasNoAttributeOrOnlyStyleAttribute):
1267         (WebCore::isEmptyFontTag):
1268         * editing/EditingStyle.cpp:
1269         (WebCore::EditingStyle::elementIsStyledSpanOrHTMLEquivalent):
1270         * editing/InsertParagraphSeparatorCommand.cpp:
1271         (WebCore::highestVisuallyEquivalentDivBelowRoot):
1272         * editing/MarkupAccumulator.cpp:
1273         (WebCore::MarkupAccumulator::appendElement):
1274         * editing/markup.cpp:
1275         (WebCore::completeURLs):
1276         (WebCore::StyledMarkupAccumulator::appendElement):
1277         * html/HTMLEmbedElement.cpp:
1278         (WebCore::HTMLEmbedElement::parametersForPlugin):
1279         * html/HTMLInputElement.cpp:
1280         (WebCore::HTMLInputElement::updateType):
1281         * html/HTMLObjectElement.cpp:
1282         (WebCore::HTMLObjectElement::parametersForPlugin):
1283         * html/HTMLParamElement.cpp:
1284         (WebCore::HTMLParamElement::isURLAttribute):
1285         * html/parser/HTMLFormattingElementList.cpp:
1286         (WebCore::attributeCountWithoutUpdate):
1287         (WebCore::HTMLFormattingElementList::tryToEnsureNoahsArkConditionQuickly):
1288         (WebCore::HTMLFormattingElementList::ensureNoahsArkCondition): Store Attribute*
1289         to avoid looking up the right element again by name.
1290         * inspector/DOMEditor.cpp:
1291         (WebCore::DOMEditor::innerPatchNode):
1292         (WebCore::DOMEditor::createDigest):
1293         * inspector/InspectorDOMAgent.cpp:
1294         (WebCore::InspectorDOMAgent::setAttributesAsText):
1295         (WebCore::InspectorDOMAgent::performSearch):
1296         (WebCore::InspectorDOMAgent::buildArrayForElementAttributes):
1297         * page/PageSerializer.cpp:
1298         (WebCore::isCharsetSpecifyingNode):
1299         * svg/SVGStyledElement.cpp:
1300         (WebCore::SVGStyledElement::getPresentationAttribute):
1301         * xml/XPathFunctions.cpp:
1302         (WebCore::XPath::FunLang::evaluate):
1303         * xml/XPathNodeSet.cpp:
1304         (WebCore::XPath::NodeSet::traversalSort):
1305         * xml/XPathStep.cpp:
1306         (WebCore::XPath::Step::nodesInAxis):
1307         * xml/parser/XMLDocumentParserLibxml2.cpp:
1308         (WebCore::XMLDocumentParser::XMLDocumentParser):
1309         * xml/parser/XMLTreeBuilder.cpp:
1310         (WebCore::XMLTreeBuilder::XMLTreeBuilder):
1311
1312 2012-02-06  Joshua Bell  <jsbell@chromium.org>
1313
1314         IndexedDB: Raise exception during add/put call if autoIncrement key insertion will fail
1315         https://bugs.webkit.org/show_bug.cgi?id=77374
1316
1317         If a put request will use a key generator, try inserting a dummy key during the sync
1318         put() call to check if the key insertion will succeed so an exception can be raised
1319         early, rather than deferring to the asynchronous task.
1320
1321         Reviewed by Tony Chang.
1322
1323         Test: storage/indexeddb/keypath-edges.html
1324
1325         * storage/IDBObjectStoreBackendImpl.cpp:
1326         (WebCore::IDBObjectStoreBackendImpl::put):
1327
1328 2012-02-06  Gustavo Noronha Silva  <gns@gnome.org>
1329
1330         Add a null check for the gdkwindow, that will happen if the window
1331         is not mapped.
1332
1333         Reviewed by Martin Robinson.
1334
1335         * platform/gtk/GtkUtilities.cpp:
1336         (WebCore::convertWidgetPointToScreenPoint):
1337
1338 2012-02-06  Eugene Girard  <girard@chromium.org>
1339
1340         IndexedDB createObjectStore should throw if options arg is invalid
1341         Added logic to OptionsObject to determine if an invalid object was created.
1342         Javascript bindings now detect invalid OptionsObject's and throw TypeError when found.
1343         https://bugs.webkit.org/show_bug.cgi?id=58471
1344
1345         Reviewed by Adam Barth.
1346
1347         Test: storage/indexeddb/createObjectStore-bad-options.html
1348
1349         * bindings/scripts/CodeGeneratorV8.pm:
1350         (GenerateParametersCheck):
1351         * bindings/v8/OptionsObject.cpp:
1352         (WebCore::OptionsObject::isObject):
1353         * bindings/v8/OptionsObject.h:
1354
1355 2012-02-06  Sheriff Bot  <webkit.review.bot@gmail.com>
1356
1357         Unreviewed, rolling out r106797 and r106806.
1358         http://trac.webkit.org/changeset/106797
1359         http://trac.webkit.org/changeset/106806
1360         https://bugs.webkit.org/show_bug.cgi?id=77888
1361
1362         The change is still causing some crashes in webaudio/ on the
1363         Chromium bots (Requested by jchaffraix on #webkit).
1364
1365         * Modules/intents/IntentRequest.cpp:
1366         (WebCore::IntentRequest::create):
1367         * bindings/generic/ActiveDOMCallback.cpp:
1368         (WebCore::ActiveDOMCallback::ActiveDOMCallback):
1369         * dom/ActiveDOMObject.cpp:
1370         (WebCore::ActiveDOMObject::ActiveDOMObject):
1371         (WebCore::ActiveDOMObject::~ActiveDOMObject):
1372         * dom/ActiveDOMObject.h:
1373         (ActiveDOMObject):
1374         * dom/DocumentEventQueue.cpp:
1375         (WebCore::DocumentEventQueue::DocumentEventQueue):
1376         * dom/ScriptExecutionContext.cpp:
1377         (WebCore::ScriptExecutionContext::ScriptExecutionContext):
1378         (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
1379         (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjects):
1380         (WebCore::ScriptExecutionContext::suspendActiveDOMObjects):
1381         (WebCore::ScriptExecutionContext::resumeActiveDOMObjects):
1382         (WebCore::ScriptExecutionContext::stopActiveDOMObjects):
1383         * dom/ScriptExecutionContext.h:
1384         (ScriptExecutionContext):
1385         * fileapi/DOMFileSystem.cpp:
1386         (WebCore::DOMFileSystem::create):
1387         * fileapi/FileReader.cpp:
1388         (WebCore):
1389         * fileapi/FileReader.h:
1390         (WebCore::FileReader::create):
1391         * fileapi/FileWriter.cpp:
1392         (WebCore):
1393         * fileapi/FileWriter.h:
1394         (WebCore::FileWriter::create):
1395         * history/CachedFrame.cpp:
1396         (WebCore::CachedFrame::CachedFrame):
1397         * html/HTMLAudioElement.cpp:
1398         (WebCore::HTMLAudioElement::create):
1399         (WebCore::HTMLAudioElement::createForJSConstructor):
1400         * html/HTMLMarqueeElement.cpp:
1401         (WebCore::HTMLMarqueeElement::create):
1402         * html/HTMLVideoElement.cpp:
1403         (WebCore::HTMLVideoElement::create):
1404         * mediastream/PeerConnection.cpp:
1405         (WebCore::PeerConnection::create):
1406         * notifications/Notification.cpp:
1407         (WebCore::Notification::create):
1408         * notifications/NotificationCenter.cpp:
1409         * notifications/NotificationCenter.h:
1410         (WebCore::NotificationCenter::create):
1411         * page/DOMTimer.cpp:
1412         (WebCore::DOMTimer::install):
1413         (WebCore::DOMTimer::fired):
1414         * page/EventSource.cpp:
1415         (WebCore::EventSource::create):
1416         * page/SuspendableTimer.cpp:
1417         (WebCore::SuspendableTimer::SuspendableTimer):
1418         * storage/IDBDatabase.cpp:
1419         (WebCore::IDBDatabase::create):
1420         * storage/IDBRequest.cpp:
1421         (WebCore::IDBRequest::create):
1422         * storage/IDBTransaction.cpp:
1423         (WebCore::IDBTransaction::create):
1424         * storage/IDBVersionChangeRequest.cpp:
1425         (WebCore::IDBVersionChangeRequest::create):
1426         * webaudio/AudioContext.cpp:
1427         (WebCore::AudioContext::create):
1428         * websockets/WebSocket.cpp:
1429         * websockets/WebSocket.h:
1430         (WebCore::WebSocket::create):
1431         * workers/SharedWorker.cpp:
1432         (WebCore::SharedWorker::create):
1433         * workers/Worker.cpp:
1434         (WebCore::Worker::create):
1435         * xml/XMLHttpRequest.cpp:
1436         (WebCore::XMLHttpRequest::create):
1437
1438 2012-02-06  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1439
1440         Move style related functions from NamedNodeMap to ElementAttributeData
1441         https://bugs.webkit.org/show_bug.cgi?id=77879
1442
1443         Reviewed by Ryosuke Niwa.
1444
1445         This commit also removes the NamedNodeMap::mappedAttributeCount(),
1446         which is a leftover from removal of mapped attributes.
1447
1448         * dom/ElementAttributeData.cpp:
1449         (WebCore::ElementAttributeData::ensureInlineStyleDecl):
1450         (WebCore):
1451         (WebCore::ElementAttributeData::destroyInlineStyleDecl):
1452         (WebCore::ElementAttributeData::ensureAttributeStyle):
1453         * dom/ElementAttributeData.h:
1454         (WebCore::ElementAttributeData::inlineStyleDecl):
1455         (ElementAttributeData):
1456         (WebCore::ElementAttributeData::attributeStyle):
1457         * dom/NamedNodeMap.cpp:
1458         * dom/NamedNodeMap.h:
1459         * dom/StyledElement.h:
1460         (StyledElement):
1461         (WebCore::StyledElement::inlineStyleDecl):
1462         (WebCore::StyledElement::ensureInlineStyleDecl):
1463         (WebCore::StyledElement::attributeStyle):
1464         (WebCore::StyledElement::ensureAttributeStyle):
1465         (WebCore::StyledElement::destroyInlineStyleDecl):
1466
1467 2012-02-06  Abhishek Arya  <inferno@chromium.org>
1468
1469         Crash in SubframeLoader::loadSubframe.
1470         https://bugs.webkit.org/show_bug.cgi?id=77345
1471
1472         Reviewed by Nate Chapin.
1473
1474         Mutation event when loading subframe can blow away the
1475         main frame. Add a RefPtr to protect against that.
1476
1477         Test: fast/frames/subframe-load-crash-main.html
1478
1479         * loader/SubframeLoader.cpp:
1480         (WebCore::SubframeLoader::loadSubframe):
1481
1482 2012-02-06  ChangSeok Oh  <shivamidow@gmail.com>
1483
1484         Initial implementation of GraphicsContext3DOpenGLES.cpp
1485         https://bugs.webkit.org/show_bug.cgi?id=76248
1486
1487         Reviewed by Martin Robinson.
1488
1489         Implemented APIs in GraphicsContext3DOpenGLES.cpp according to the GLES spec. roughly.
1490         But no way to run these codes right now, because they need an extra port
1491         specific implementation to work. I plan to add these extra codes for the GTK port
1492         in the next patch. And also this patch doesn't support anti-aliasing yet. Another bug
1493         will deal with it.
1494         Moved some APIs in GraphicsContext3DOpenGLES.cpp to GraphicsContext3DCommon.cpp.
1495         It looks it could be shared between gl and gles.
1496         Two helper functions are added to avoid code duplication in GraphicsContext3D.
1497         Added a missing period at the end of comment lines.
1498
1499         No new tests required.
1500         We'll be able to verify this patch by using the existing webgl test cases.
1501
1502         * platform/graphics/GraphicsContext3D.h: Add build flag to access stencilBuffer & depthBuffer for gles.
1503         (WebCore):
1504         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
1505         (WebCore::GraphicsContext3D::reshapeFBOs): Helper function extracted from GC3D::reshape to resize regular & multisampled FBOs.
1506         (WebCore::GraphicsContext3D::resolveMultisamplingIfNecessary): Helper function to resolve multisampling.
1507         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
1508         (WebCore::GraphicsContext3D::validateAttributes): Add condition to disable antialiasing & packedDepthStencilExtension for GLES.
1509         (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
1510         (WebCore::GraphicsContext3D::paintRenderingResultsToImageData):
1511
1512         Following APIs looked shareable so that moved into GC3DOpenGLCommon.cpp.
1513         (WebCore::GraphicsContext3D::prepareTexture):
1514         (WebCore):
1515         (WebCore::GraphicsContext3D::readRenderingResults):
1516         (WebCore::GraphicsContext3D::reshape):
1517         (WebCore::GraphicsContext3D::bindFramebuffer):
1518         (WebCore::GraphicsContext3D::copyTexImage2D):
1519         (WebCore::GraphicsContext3D::copyTexSubImage2D):
1520         (WebCore::GraphicsContext3D::getActiveUniform):
1521         (WebCore::GraphicsContext3D::readPixels):
1522
1523         Added a missing period at the end of comment line.
1524         (WebCore::GraphicsContext3D::compileShader):
1525         (WebCore::GraphicsContext3D::getActiveAttrib):
1526         (WebCore::GraphicsContext3D::uniform2fv):
1527         (WebCore::GraphicsContext3D::uniform3fv):
1528         (WebCore::GraphicsContext3D::uniform4fv):
1529         (WebCore::GraphicsContext3D::uniform2iv):
1530         (WebCore::GraphicsContext3D::uniform3iv):
1531         (WebCore::GraphicsContext3D::uniform4iv):
1532         (WebCore::GraphicsContext3D::uniformMatrix2fv):
1533         (WebCore::GraphicsContext3D::uniformMatrix3fv):
1534         (WebCore::GraphicsContext3D::uniformMatrix4fv):
1535         (WebCore::GraphicsContext3D::texSubImage2D):
1536
1537         * platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp:
1538         (WebCore::GraphicsContext3D::reshapeFBOs): Same with the above.
1539         (WebCore::GraphicsContext3D::resolveMultisamplingIfNecessary): Same with the above.
1540
1541         Brief explanation about what the differences are between gl and gles.
1542         (WebCore::GraphicsContext3D::renderbufferStorage): Removed codes for converting GLES parameter to GL parameter.
1543         (WebCore::GraphicsContext3D::getIntegerv): Removed codes that emulate GLES.
1544         (WebCore::GraphicsContext3D::texImage2D): Removed codes for converting GLES parameter to GL parameter.
1545
1546 2012-02-06  Alexander Pavlov  <apavlov@chromium.org>
1547
1548         Web Inspector: [Meta] Allow emulation of touch events
1549         https://bugs.webkit.org/show_bug.cgi?id=77096
1550
1551         Reviewed by Pavel Feldman.
1552
1553         This is the inspector part of the change, core part implementation tracked in bug 77105.
1554
1555         * English.lproj/localizedStrings.js:
1556         * inspector/Inspector.json:
1557         * inspector/InspectorDOMAgent.cpp:
1558         (DOMAgentState):
1559         (WebCore::InspectorDOMAgent::clearFrontend):
1560         (WebCore::InspectorDOMAgent::restore):
1561         (WebCore):
1562         (WebCore::InspectorDOMAgent::updateTouchEventEmulationInDocuments):
1563         (WebCore::InspectorDOMAgent::setTouchEmulationEnabled):
1564         * inspector/InspectorDOMAgent.h:
1565         (InspectorDOMAgent):
1566         * inspector/front-end/DOMAgent.js:
1567         (WebInspector.DOMAgent.prototype._captureDOM):
1568         (WebInspector.DOMAgent.prototype._emulateTouchEventsChanged):
1569         * inspector/front-end/Settings.js:
1570         (WebInspector.Settings):
1571         * inspector/front-end/SettingsScreen.js:
1572         (WebInspector.SettingsScreen):
1573
1574 2012-02-06  Chris Guan  <chris.guan@torchmobile.com.cn>
1575
1576         [Blackberry] Non-supported about: operations never stops loading
1577         https://bugs.webkit.org/show_bug.cgi?id=76366
1578
1579         Reviewed by Rob Buis.
1580
1581         If user typed a non-supported "about:" scheme such as "about:nonsupport",
1582         the loadAboutURL() function in NetworkManger should recognize and handle it as 
1583         an error of invalid url.
1584
1585         * platform/network/blackberry/NetworkJob.cpp:
1586         (WebCore::NetworkJob::loadAboutURL):
1587         (WebCore::NetworkJob::handleAbout):
1588         * platform/network/blackberry/NetworkJob.h:
1589         (NetworkJob):
1590         * platform/network/blackberry/NetworkManager.cpp:
1591         (WebCore::NetworkManager::startJob):
1592
1593 2012-02-06  Alexander Pavlov  <apavlov@chromium.org>
1594
1595         Web Inspector: Remove unused disabledComputedProperties from methods in StylesSidebarPane
1596         https://bugs.webkit.org/show_bug.cgi?id=77876
1597
1598         Reviewed by Pavel Feldman.
1599
1600         * inspector/front-end/StylesSidebarPane.js:
1601         (WebInspector.StylesSidebarPane.prototype._refreshUpdate):
1602         (WebInspector.StylesSidebarPane.prototype._rebuildUpdate):
1603         (WebInspector.StylesSidebarPane.prototype._markUsedProperties):
1604         (WebInspector.StylesSidebarPane.prototype._refreshSectionsForStyleRules):
1605         (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
1606         (WebInspector.StylePropertiesSection.prototype.onpopulate):
1607         (WebInspector.ComputedStylePropertiesSection):
1608         (WebInspector.ComputedStylePropertiesSection.prototype._isPropertyInherited):
1609
1610 2012-02-06  Alexei Filippov  <alexeif@chromium.org>
1611
1612         Web Inspector: Redesign summary view / retaining tree contents
1613         https://bugs.webkit.org/show_bug.cgi?id=77870
1614
1615         Reviewed by Pavel Feldman.
1616
1617         1. Make object IDs less contrast.
1618         2. Put array indices in [].
1619         3. Do not write type if it's just "Object".
1620
1621         * inspector/front-end/DetailedHeapshotGridNodes.js:
1622         (WebInspector.HeapSnapshotGenericObjectNode.prototype._createObjectCell):
1623         (WebInspector.HeapSnapshotGenericObjectNode.prototype.get data):
1624         (WebInspector.HeapSnapshotObjectNode.prototype._emptyData):
1625         (WebInspector.HeapSnapshotObjectNode.prototype._enhanceData):
1626         (WebInspector.HeapSnapshotObjectNode.prototype._prefixObjectCell):
1627         (WebInspector.HeapSnapshotConstructorNode.prototype.get data):
1628         * inspector/front-end/heapProfiler.css:
1629         (.detailed-heapshot-view .console-formatted-id):
1630         (.detailed-heapshot-view td.object-column span.grayed):
1631
1632 2012-02-06  No'am Rosenthal  <noam.rosenthal@nokia.com>
1633
1634         [Texmap][Qt] Avoid an image copy when uploading textures in WebKit1
1635         https://bugs.webkit.org/show_bug.cgi?id=77748
1636
1637         Reviewed by Kenneth Rohde Christiansen.
1638
1639         Use QPixmap::buffer() API to get access to the QPixmap's pixels without implicit copies.
1640
1641         Instrumentation shows that the deep image copies created from TextureMapperGL are
1642         eliminated.
1643
1644         * platform/graphics/opengl/TextureMapperGL.cpp:
1645         (WebCore::BitmapTextureGL::updateContents):
1646
1647 2012-02-06  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
1648
1649         LayoutTest failures on r106797
1650         https://bugs.webkit.org/show_bug.cgi?id=77868
1651
1652         Call suspendIfNeeded from subclass of IDBRequest, IDBVersionChangeRequest.
1653
1654         Reviewed by Simon Hausmann.
1655
1656         * storage/IDBVersionChangeRequest.cpp:
1657         (WebCore::IDBVersionChangeRequest::create):
1658
1659 2012-02-06  No'am Rosenthal  <noam.rosenthal@nokia.com>
1660
1661         [Qt] Implement ImageBuffer::copyImage(ImageBuffer::DontCopyBackingStore)
1662         https://bugs.webkit.org/show_bug.cgi?id=77689
1663
1664         Reviewed by Kenneth Rohde Christiansen.
1665
1666         Use StillImageQt::createForRendering when using DontCopyBackingStore.
1667         Enable DontCopyBackingStore in TextureMapperNode.
1668         This removes deep copies resulting from the use of ImageBuffer.
1669
1670         Instrumentation shows that deep image copies resulted from ImageBuffer are eliminated.
1671
1672         * platform/graphics/qt/ImageBufferQt.cpp:
1673         (WebCore::ImageBuffer::copyImage):
1674         * platform/graphics/texmap/TextureMapperNode.cpp:
1675         (WebCore::TextureMapperNode::renderContent):
1676
1677 2012-02-06  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
1678
1679         WebGestureEvent can not encode delta and area.
1680         https://bugs.webkit.org/show_bug.cgi?id=77728
1681
1682         Add area field to PlatformGestureEvent.
1683
1684         Reviewed by Kenneth Rohde Christiansen.
1685
1686         * platform/PlatformGestureEvent.h:
1687         (WebCore::PlatformGestureEvent::PlatformGestureEvent):
1688         (WebCore::PlatformGestureEvent::area):
1689
1690 2012-02-06  Charles Wei  <charles.wei@torchmobile.com.cn>
1691
1692         [BlackBerry]Use extension for a mimetype as the suggested extension
1693         if the url file doesn't have an extension.
1694         https://bugs.webkit.org/show_bug.cgi?id=76779
1695
1696         Reviewed by Antonio Gomes.
1697
1698         No new tests. 
1699
1700         * platform/network/blackberry/NetworkJob.cpp:
1701         (WebCore::NetworkJob::sendResponseIfNeeded):
1702
1703 2012-02-06  Kentaro Hara  <haraken@chromium.org>
1704
1705         Rename [HasIndexGetter], [HasNameGetter] and [HasCustomIndexSetter] IDLs
1706         https://bugs.webkit.org/show_bug.cgi?id=77848
1707
1708         Reviewed by Adam Barth.
1709
1710         For naming consistency with [CustomGetter] and [CustomSetter],
1711         this patch renames the following IDLs:
1712
1713         [HasIndexGetter] => [IndexedGetter]  (Remove "Has". This IDL is for "indexed" properties
1714         in the Web IDL: http://dev.w3.org/2006/webapi/WebIDL/#idl-indexed-properties)
1715         [HasCustomIndexSetter] => [CustomIndexedSetter]  (Ditto.)
1716         [HasNameGetter] => [NamedGetter] (Remove "Has". This IDL is for "named" properties
1717         in the Web IDL: http://dev.w3.org/2006/webapi/WebIDL/#idl-named-properties)
1718
1719         No tests. No change in behavior.
1720
1721         * bindings/scripts/CodeGeneratorJS.pm:
1722         (GenerateGetOwnPropertySlotBody):
1723         (GenerateGetOwnPropertyDescriptorBody):
1724         (GenerateHeader):
1725         (GenerateImplementation):
1726         * bindings/scripts/CodeGeneratorV8.pm:
1727         (GenerateHeaderNamedAndIndexedPropertyAccessors):
1728         (GenerateImplementationIndexer):
1729         (GenerateImplementationNamedPropertyGetter):
1730
1731         * bindings/scripts/test/TestEventTarget.idl: No change in run-bindings-tests results.
1732         * bindings/scripts/test/TestTypedArray.idl: Ditto.
1733
1734         * Modules/gamepad/GamepadList.idl:
1735         * css/CSSRuleList.idl:
1736         * css/CSSStyleDeclaration.idl:
1737         * css/CSSValueList.idl:
1738         * css/MediaList.idl:
1739         * css/StyleSheetList.idl:
1740         * css/WebKitCSSFilterValue.idl:
1741         * css/WebKitCSSKeyframesRule.idl:
1742         * css/WebKitCSSTransformValue.idl:
1743         * dom/ClientRectList.idl:
1744         * dom/DOMStringList.idl:
1745         * dom/DOMStringMap.idl:
1746         * dom/DataTransferItemList.idl:
1747         * dom/NamedNodeMap.idl:
1748         * dom/NodeList.idl:
1749         * dom/TouchList.idl:
1750         * fileapi/EntryArray.idl:
1751         * fileapi/EntryArraySync.idl:
1752         * fileapi/FileList.idl:
1753         * html/DOMSettableTokenList.idl:
1754         * html/DOMTokenList.idl:
1755         * html/HTMLAllCollection.idl:
1756         * html/HTMLCollection.idl:
1757         * html/HTMLFormElement.idl:
1758         * html/HTMLOptionsCollection.idl:
1759         * html/HTMLPropertiesCollection.idl:
1760         * html/HTMLSelectElement.idl:
1761         * html/TextTrackCueList.idl:
1762         * html/canvas/CanvasPixelArray.idl:
1763         * html/canvas/Float32Array.idl:
1764         * html/canvas/Float64Array.idl:
1765         * html/canvas/Int16Array.idl:
1766         * html/canvas/Int32Array.idl:
1767         * html/canvas/Int8Array.idl:
1768         * html/canvas/Uint16Array.idl:
1769         * html/canvas/Uint32Array.idl:
1770         * html/canvas/Uint8Array.idl:
1771         * html/canvas/Uint8ClampedArray.idl:
1772         * html/track/TextTrackList.idl:
1773         * mediastream/MediaStreamList.idl:
1774         * mediastream/MediaStreamTrackList.idl:
1775         * page/SpeechInputResultList.idl:
1776         * page/WebKitAnimationList.idl:
1777         * plugins/DOMMimeTypeArray.idl:
1778         * plugins/DOMPlugin.idl:
1779         * plugins/DOMPluginArray.idl:
1780         * storage/Storage.idl:
1781
1782 2012-02-06  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
1783
1784         Ensure timers and other active DOM objects do not fire in suspended documents.
1785         https://bugs.webkit.org/show_bug.cgi?id=53733
1786
1787         ScriptExecutionContext now remembers it has suspended active DOM objects
1788         and suspends all newly installed active DOM objects as well.
1789
1790         All create-calls active DOM objects now calls the post constructor method
1791         suspendIfNeeded that updates the suspend state. It is post constructor
1792         because the suspend/resume functions are virtual and thus can not be called
1793         from constructors.
1794
1795         Reviewed by Mihai Parparita.
1796
1797         Test: fast/events/suspend-timers.html
1798
1799         * Modules/intents/IntentRequest.cpp:
1800         (WebCore::IntentRequest::create):
1801         * bindings/generic/ActiveDOMCallback.cpp:
1802         (WebCore::ActiveDOMCallback::ActiveDOMCallback):
1803         * dom/ActiveDOMObject.cpp:
1804         (WebCore::ActiveDOMObject::ActiveDOMObject):
1805         (WebCore::ActiveDOMObject::~ActiveDOMObject):
1806         (WebCore::ActiveDOMObject::suspendIfNeeded):
1807         * dom/ActiveDOMObject.h:
1808         (WebCore::ActiveDOMObject::suspendIfNeededCalled):
1809         * dom/DocumentEventQueue.cpp:
1810         (WebCore::DocumentEventQueue::DocumentEventQueue):
1811         * dom/ScriptExecutionContext.cpp:
1812         (WebCore::ScriptExecutionContext::ScriptExecutionContext):
1813         (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
1814         (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjects):
1815         (WebCore::ScriptExecutionContext::suspendActiveDOMObjects):
1816         (WebCore::ScriptExecutionContext::resumeActiveDOMObjects):
1817         (WebCore::ScriptExecutionContext::stopActiveDOMObjects):
1818         (WebCore::ScriptExecutionContext::suspendActiveDOMObjectIfNeeded):
1819         * dom/ScriptExecutionContext.h:
1820         (WebCore::ScriptExecutionContext::activeDOMObjectsAreSuspended):
1821         * fileapi/DOMFileSystem.cpp:
1822         (WebCore::DOMFileSystem::create):
1823         * fileapi/FileReader.cpp:
1824         (WebCore::FileReader::create):
1825         * fileapi/FileReader.h:
1826         * fileapi/FileWriter.cpp:
1827         (WebCore::FileWriter::create):
1828         * fileapi/FileWriter.h:
1829         * history/CachedFrame.cpp:
1830         (WebCore::CachedFrame::CachedFrame):
1831         * html/HTMLAudioElement.cpp:
1832         (WebCore::HTMLAudioElement::create):
1833         * html/HTMLMarqueeElement.cpp:
1834         (WebCore::HTMLMarqueeElement::create):
1835         * html/HTMLVideoElement.cpp:
1836         (WebCore::HTMLVideoElement::create):
1837         * mediastream/PeerConnection.cpp:
1838         (WebCore::PeerConnection::create):
1839         * notifications/Notification.cpp:
1840         (WebCore::Notification::create):
1841         * notifications/NotificationCenter.cpp:
1842         (WebCore::NotificationCenter::create):
1843         * notifications/NotificationCenter.h:
1844         * page/DOMTimer.cpp:
1845         (WebCore::DOMTimer::install):
1846         (WebCore::DOMTimer::fired):
1847         * page/EventSource.cpp:
1848         (WebCore::EventSource::create):
1849         * page/SuspendableTimer.cpp:
1850         (WebCore::SuspendableTimer::SuspendableTimer):
1851         * storage/IDBDatabase.cpp:
1852         (WebCore::IDBDatabase::create):
1853         * storage/IDBRequest.cpp:
1854         (WebCore::IDBRequest::create):
1855         * storage/IDBTransaction.cpp:
1856         (WebCore::IDBTransaction::create):
1857         * webaudio/AudioContext.cpp:
1858         (WebCore::AudioContext::create):
1859         * websockets/WebSocket.cpp:
1860         (WebCore::WebSocket::create):
1861         * websockets/WebSocket.h:
1862         * workers/SharedWorker.cpp:
1863         (WebCore::SharedWorker::create):
1864         * workers/Worker.cpp:
1865         (WebCore::Worker::create):
1866         * xml/XMLHttpRequest.cpp:
1867         (WebCore::XMLHttpRequest::create):
1868
1869 2012-02-06  Philippe Normand  <pnormand@igalia.com>
1870
1871         Adding FFTFrameGStreamer.cpp that I forgot to commit
1872         in r106537. That new file was reviewed in https://bugs.webkit.org/show_bug.cgi?id=73545.
1873
1874         * platform/audio/gstreamer/FFTFrameGStreamer.cpp: Added.
1875
1876 2012-02-06  Hayato Ito  <hayato@chromium.org>
1877
1878         Add <shadow> element, which is guarded by SHADOW_DOM flag.
1879         https://bugs.webkit.org/show_bug.cgi?id=76435
1880
1881         Reviewed by Dimitri Glazkov.
1882
1883         Test: fast/dom/shadow/shadow-element.html
1884
1885         * CMakeLists.txt:
1886         * DerivedSources.cpp:
1887         * DerivedSources.make:
1888         * DerivedSources.pri:
1889         * GNUmakefile.list.am:
1890         * Target.pri:
1891         * WebCore.gypi:
1892         * WebCore.vcproj/WebCore.vcproj:
1893         * WebCore.xcodeproj/project.pbxproj:
1894         * html/HTMLElementsAllInOne.cpp:
1895         * html/HTMLTagNames.in:
1896         * html/shadow/HTMLShadowElement.cpp: Added.
1897         (WebCore):
1898         (WebCore::HTMLShadowElement::HTMLShadowElement):
1899         (WebCore::HTMLShadowElement::create):
1900         (WebCore::HTMLShadowElement::~HTMLShadowElement):
1901         * html/shadow/HTMLShadowElement.h: Added.
1902         (WebCore):
1903         (HTMLShadowElement):
1904         * html/shadow/HTMLShadowElement.idl: Added.
1905
1906 2012-02-06  Joe Thomas  <joethomas@motorola.com>
1907
1908         https://bugs.webkit.org/show_bug.cgi?id=76995.
1909         WebKit fails IETC :indeterminate and input type=radio test.
1910
1911         All input types should respect indeterminate property(getter and setter). This is true with other browsers.
1912         Indeterminate appearance for radio input type is supported by IOS platform. Webkit need not support indeterminate appearance
1913         for radio input type on other platforms.
1914
1915         Reviewed by Kent Tamura.
1916
1917         Test: fast/forms/indeterminate-input-types.html
1918
1919         * html/CheckboxInputType.cpp:
1920         (WebCore::CheckboxInputType::supportsIndeterminateAppearance): Checks indeterminate appearance is supported.
1921         (WebCore):
1922         * html/CheckboxInputType.h:
1923         (CheckboxInputType):
1924         * html/HTMLInputElement.cpp:
1925         (WebCore::HTMLInputElement::setIndeterminate): Removed the check isCheckable().
1926         (WebCore::HTMLInputElement::isIndeterminate): Checks indeterminate appearance is supported.
1927         (WebCore):
1928         * html/HTMLInputElement.h:
1929         (HTMLInputElement):
1930         * html/InputType.cpp:
1931         (WebCore::InputType::supportsIndeterminateAppearance): Checks indeterminate appearance is supported.
1932         (WebCore):
1933         * html/InputType.h:
1934         (InputType):
1935         * html/RadioInputType.cpp:
1936         (WebCore::RadioInputType::willDispatchClick): Indeterminate related code is moved to IOS specific.
1937         (WebCore::RadioInputType::didDispatchClick): Ditto.
1938         (WebCore::RadioInputType::supportsIndeterminateAppearance): Checks indeterminate appearance is supported.
1939         (WebCore):
1940         * html/RadioInputType.h:
1941         (RadioInputType):
1942
1943 2012-02-06  Robin Cao  <robin.cao@torchmobile.com.cn>
1944
1945         [BlackBerry] Remove unused variable in PluginViewBlackBerry
1946         https://bugs.webkit.org/show_bug.cgi?id=77847
1947
1948         Reviewed by Kentaro Hara.
1949
1950         No changes in behavior, so no new tests.
1951
1952         * plugins/blackberry/PluginViewBlackBerry.cpp:
1953         (WebCore::PluginView::updatePluginWidget):
1954
1955 2012-02-06  Peter Rybin  <peter.rybin@gmail.com>
1956
1957         Web Inspector: Fix CallArgument type in Inspector.json
1958         https://bugs.webkit.org/show_bug.cgi?id=77839
1959
1960         Reviewed by Yury Semikhatsky.
1961
1962         Protocol description is fixed: field type is changed. No changes to
1963         program code are necessary.
1964
1965         * inspector/Inspector-0.1.json:
1966         * inspector/Inspector-1.0.json:
1967         * inspector/Inspector.json:
1968
1969 2012-02-05  Gavin Barraclough  <barraclough@apple.com>
1970
1971         Remove JSObject defineGetter/defineSetter lookupGetter/lookupSetter
1972         https://bugs.webkit.org/show_bug.cgi?id=77451
1973
1974         Reviewed by Sam Weinig.
1975
1976         These can now all be implemented in terms of defineOwnProperty & getPropertyDescriptor.
1977         Also remove initializeGetterSetterProperty, since this is equivalent to putDirectAccessor.
1978
1979         * bindings/js/JSDOMWindowCustom.cpp:
1980         (WebCore):
1981         (WebCore::JSDOMWindow::defineOwnProperty):
1982         * bindings/js/JSDOMWindowShell.cpp:
1983         (WebCore):
1984         * bindings/js/JSDOMWindowShell.h:
1985         (JSDOMWindowShell):
1986         * bindings/js/JSLocationCustom.cpp:
1987         (WebCore::JSLocation::defineOwnProperty):
1988         (WebCore::JSLocationPrototype::defineOwnProperty):
1989         * bindings/scripts/CodeGeneratorJS.pm:
1990         (GenerateHeader):
1991         * page/DOMWindow.idl:
1992         * page/Location.idl:
1993
1994 2012-02-06  Carlos Garcia Campos  <cgarcia@igalia.com>
1995
1996         Unreviewed. Fix make distrcheck.
1997
1998         * GNUmakefile.am: Fix typo in inspector json file.
1999         * GNUmakefile.list.am: Remove non existent file.
2000
2001 2012-02-06  Yury Semikhatsky  <yurys@chromium.org>
2002
2003         Unreviewed. Qt minimal compilation fix after r106777.
2004
2005         * inspector/InspectorDatabaseAgent.h: added missing #if ENABLED guards.
2006
2007 2012-02-05  Ilya Tikhonovsky  <loislo@chromium.org>
2008
2009         Web Inspector: REGRESSION detached dom nodes aren't highlighted
2010         https://bugs.webkit.org/show_bug.cgi?id=77829
2011
2012         This functionality was lost when I replaced (Native roots) with (Detached DOM trees) on v8 side.
2013
2014         Reviewed by Yury Semikhatsky.
2015
2016         * inspector/front-end/HeapSnapshot.js:
2017         (WebInspector.HeapSnapshotNode.prototype.get isDetachedDOMTreesRoot):
2018         (WebInspector.HeapSnapshot.prototype._markDetachedDOMTreeNodes):
2019
2020 2012-02-05  Ilya Tikhonovsky  <loislo@chromium.org>
2021
2022         Web Inspector: get rid of artificial heap snapshot nodes from the retaining tree.
2023         https://bugs.webkit.org/show_bug.cgi?id=77850
2024
2025         Reviewed by Yury Semikhatsky.
2026
2027         * inspector/front-end/DetailedHeapshotGridNodes.js:
2028         (WebInspector.HeapSnapshotObjectNode):
2029         (WebInspector.HeapSnapshotObjectNode.prototype.updateHasChildren):
2030         (WebInspector.HeapSnapshotObjectNode.prototype._prefixObjectCell):
2031         * inspector/front-end/HeapSnapshot.js:
2032         (WebInspector.HeapSnapshotNode.prototype.get isArtificial):
2033         (WebInspector.HeapSnapshot.prototype._init):
2034
2035 2012-02-05  Peter Rybin  <peter.rybin@gmail.com>
2036
2037         Web Inspector: CodeGeneratorInspector.py: switch domain agents to formal interfaces in BackendDispatcher
2038         https://bugs.webkit.org/show_bug.cgi?id=77444
2039
2040         Reviewed by Yury Semikhatsky.
2041
2042         All agent code is switched to formal interfaces. Actual agent class
2043         names and includes are dropped from InspectorBackendDispatcher.h.
2044
2045         * inspector/CodeGeneratorInspector.py:
2046         (DomainNameFixes.get_fixed_data):
2047         (Generator.go):
2048         * inspector/InspectorAgent.h:
2049         * inspector/InspectorApplicationCacheAgent.h:
2050         * inspector/InspectorCSSAgent.cpp:
2051         (WebCore::InspectorCSSAgent::getMatchedStylesForNode):
2052         * inspector/InspectorCSSAgent.h:
2053         (InspectorCSSAgent):
2054         * inspector/InspectorConsoleAgent.h:
2055         * inspector/InspectorDOMAgent.cpp:
2056         (WebCore::InspectorDOMAgent::highlightNode):
2057         * inspector/InspectorDOMAgent.h:
2058         (InspectorDOMAgent):
2059         * inspector/InspectorDOMDebuggerAgent.h:
2060         * inspector/InspectorDOMStorageAgent.h:
2061         * inspector/InspectorDatabaseAgent.h:
2062         * inspector/InspectorDebuggerAgent.cpp:
2063         (WebCore::InspectorDebuggerAgent::setBreakpoint):
2064         (WebCore::InspectorDebuggerAgent::continueToLocation):
2065         * inspector/InspectorDebuggerAgent.h:
2066         (InspectorDebuggerAgent):
2067         * inspector/InspectorFileSystemAgent.h:
2068         * inspector/InspectorIndexedDBAgent.h:
2069         * inspector/InspectorMemoryAgent.h:
2070         * inspector/InspectorPageAgent.h:
2071         * inspector/InspectorProfilerAgent.cpp:
2072         (WebCore::InspectorProfilerAgent::getProfile):
2073         (WebCore::InspectorProfilerAgent::removeProfile):
2074         * inspector/InspectorProfilerAgent.h:
2075         (InspectorProfilerAgent):
2076         * inspector/InspectorResourceAgent.cpp:
2077         (WebCore::InspectorResourceAgent::setExtraHTTPHeaders):
2078         * inspector/InspectorResourceAgent.h:
2079         (InspectorResourceAgent):
2080         * inspector/InspectorRuntimeAgent.h:
2081         * inspector/InspectorTimelineAgent.cpp:
2082         (WebCore::InspectorTimelineAgent::start):
2083         * inspector/InspectorTimelineAgent.h:
2084         (InspectorTimelineAgent):
2085         * inspector/InspectorWorkerAgent.cpp:
2086         (WebCore::InspectorWorkerAgent::sendMessageToWorker):
2087         * inspector/InspectorWorkerAgent.h:
2088         (InspectorWorkerAgent):
2089
2090 2012-02-05  Kentaro Hara  <haraken@chromium.org>
2091
2092         Rename [TreatNullAs=EmptyString] to [TreatNullAs=NullString],
2093         [TreatUndefinedAs=EmptyString] to [TreatUndefinedAs=NullString]
2094         https://bugs.webkit.org/show_bug.cgi?id=77611
2095
2096         Reviewed by Adam Barth.
2097
2098         While the Web IDL spec requires [TreatNullAs=EmptyString] and [TreatUndefinedAs=EmptyString],
2099         the current WebKit treats them as (not an empty string but) a null string.
2100         To avoid confusion, this patch renames [TreatNullAs=EmptyString] to [TreatNullAs=NullString],
2101         and [TreatUndefinedAs=EmptyString] to [TreatUndefinedAs=NullString].
2102         (Eventually we should fix WebKit so that it uses an empty string and then
2103         rename them to [TreatNullAs=EmptyString] and [TreatUndefinedAs=EmptyString].)
2104
2105         No tests. No change in behavior.
2106
2107         * bindings/scripts/CodeGeneratorJS.pm: Added FIXME.
2108         (JSValueToNative):
2109         * bindings/scripts/CodeGeneratorV8.pm: Ditto.
2110         (GetNativeTypeFromSignature):
2111
2112         * bindings/scripts/test/TestObj.idl:
2113         * css/CSSCharsetRule.idl:
2114         * css/CSSPageRule.idl:
2115         * css/CSSRule.idl:
2116         * css/CSSStyleDeclaration.idl:
2117         * css/CSSStyleRule.idl:
2118         * css/CSSValue.idl:
2119         * css/MediaList.idl:
2120         * css/WebKitCSSKeyframesRule.idl:
2121         * dom/Attr.idl:
2122         * dom/CharacterData.idl:
2123         * dom/DOMImplementation.idl:
2124         * dom/Document.idl:
2125         * dom/Element.idl:
2126         * dom/NamedNodeMap.idl:
2127         * dom/Node.idl:
2128         * dom/ProcessingInstruction.idl:
2129         * dom/ShadowRoot.idl:
2130         * fileapi/Blob.idl:
2131         * fileapi/DirectoryEntry.idl:
2132         * fileapi/DirectoryEntrySync.idl:
2133         * fileapi/Entry.idl:
2134         * fileapi/EntrySync.idl:
2135         * fileapi/WebKitBlobBuilder.idl:
2136         * html/HTMLAnchorElement.idl:
2137         * html/HTMLButtonElement.idl:
2138         * html/HTMLCanvasElement.idl:
2139         * html/HTMLDocument.idl:
2140         * html/HTMLElement.idl:
2141         * html/HTMLFieldSetElement.idl:
2142         * html/HTMLFormElement.idl:
2143         * html/HTMLFrameElement.idl:
2144         * html/HTMLInputElement.idl:
2145         * html/HTMLKeygenElement.idl:
2146         * html/HTMLMediaElement.idl:
2147         * html/HTMLObjectElement.idl:
2148         * html/HTMLOutputElement.idl:
2149         * html/HTMLScriptElement.idl:
2150         * html/HTMLSelectElement.idl:
2151         * html/HTMLTextAreaElement.idl:
2152         * html/HTMLTitleElement.idl:
2153         * html/canvas/CanvasRenderingContext2D.idl:
2154         * page/Console.idl:
2155         * page/DOMWindow.idl:
2156         * storage/StorageEvent.idl:
2157         * svg/SVGAngle.idl:
2158         * svg/SVGElement.idl:
2159         * svg/SVGLength.idl:
2160         * svg/SVGScriptElement.idl:
2161
2162 2012-02-05  Kentaro Hara  <haraken@chromium.org>
2163
2164         Rename [JSCCustom*] IDL to [JSCustom*] IDL
2165         https://bugs.webkit.org/show_bug.cgi?id=77844
2166
2167         Reviewed by Adam Barth.
2168
2169         Most existing JSC-specific IDLs have "JS" prefix. We can rename [JSCCustom] to
2170         [JSCustom], [JSCCustomGetter] to [JSCustomGetter], and [JSCCustomSetter] to
2171         [JSCustomSetter].
2172
2173         No tests. No change in behavior.
2174
2175         * bindings/scripts/CodeGeneratorJS.pm:
2176         (GenerateHeader):
2177         (GenerateImplementation):
2178         * css/CSSStyleDeclaration.idl:
2179         * html/HTMLDocument.idl:
2180         * html/canvas/DataView.idl:
2181         * page/DOMWindow.idl:
2182         * page/MemoryInfo.idl:
2183         * webaudio/ConvolverNode.idl:
2184         * webaudio/DOMWindowWebAudio.idl:
2185         * webaudio/WaveShaperNode.idl:
2186         * websockets/DOMWindowWebSocket.idl:
2187         * workers/WorkerContext.idl:
2188
2189 2012-02-05  ChangSeok Oh  <shivamidow@gmail.com>
2190
2191         [EFL] Enable WebGL with glx backend
2192         https://bugs.webkit.org/show_bug.cgi?id=77308
2193
2194         Reviewed by Martin Robinson.
2195
2196         Implemented WebGL feature for EFL port. The way is very similar to the one of GTK port.
2197
2198         No new tests required. We can verify this feature with the existing test cases.
2199
2200         * CMakeLists.txt: Revised common files required for WebGL.
2201         * PlatformEfl.cmake: Added EFL specific files.
2202         * html/HTMLCanvasElement.cpp:
2203         (WebCore::HTMLCanvasElement::getContext):
2204         * platform/graphics/ANGLEWebKitBridge.h:
2205         * platform/graphics/GraphicsContext3D.h:
2206         (WebCore):
2207         (WebCore::GraphicsContext3D::platformTexture):
2208         (GraphicsContext3D):
2209         (WebCore::GraphicsContext3D::paintsIntoCanvasBuffer):
2210         * platform/graphics/efl/DrawingBufferEfl.cpp: Copied from GTK port.
2211         (WebCore):
2212         (WebCore::DrawingBuffer::DrawingBuffer):
2213         (WebCore::DrawingBuffer::~DrawingBuffer):
2214         (WebCore::DrawingBuffer::platformColorBuffer):
2215         (WebCore::DrawingBuffer::paintCompositedResultsToCanvas):
2216         * platform/graphics/efl/GraphicsContext3DEfl.cpp: Almost same with GraphicsContext3DGtk.cpp.
2217         (WebCore::GraphicsContext3D::create):
2218         (WebCore::GraphicsContext3D::GraphicsContext3D):
2219         (WebCore::GraphicsContext3D::~GraphicsContext3D):
2220         (WebCore::GraphicsContext3D::makeContextCurrent):
2221         (WebCore::GraphicsContext3D::platformGraphicsContext3D):
2222         (WebCore::GraphicsContext3D::isGLES2Compliant):
2223         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
2224         (WebCore::Extensions3DOpenGL::createVertexArrayOES):
2225         (WebCore::Extensions3DOpenGL::deleteVertexArrayOES):
2226         (WebCore::Extensions3DOpenGL::isVertexArrayOES):
2227         (WebCore::Extensions3DOpenGL::bindVertexArrayOES):
2228         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
2229         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
2230
2231 2012-02-05  Abhishek Arya  <inferno@chromium.org>
2232
2233         Crash in FormSubmission::create.
2234         https://bugs.webkit.org/show_bug.cgi?id=77813
2235
2236         Reviewed by Kent Tamura.
2237
2238         Test: fast/forms/form-submission-create-crash.xhtml
2239
2240         * loader/FormSubmission.cpp:
2241         (WebCore::FormSubmission::create):
2242
2243 2012-02-05  Andreas Kling  <awesomekling@apple.com>
2244
2245         Remove unused file MappedAttributeEntry.h.
2246         <http://webkit.org/b/77841>
2247
2248         Reviewed by Anders Carlsson.
2249
2250         * GNUmakefile.list.am:
2251         * WebCore.gypi:
2252         * WebCore.vcproj/WebCore.vcproj:
2253         * WebCore.xcodeproj/project.pbxproj:
2254         * dom/MappedAttributeEntry.h: Removed.
2255         * dom/StyledElement.h:
2256
2257 2012-02-05  Andreas Kling  <awesomekling@apple.com>
2258
2259         StyledElement: Rename parseMappedAttribute() to parseAttribute().
2260         <http://webkit.org/b/77830>
2261
2262         Reviewed by Anders Carlsson.
2263
2264         Rename across the board and decorate subclasses with OVERRIDE.
2265
2266 2012-02-05  Gustavo Noronha Silva  <gns@gnome.org>
2267
2268         Unreviewed syntax fix.
2269
2270         * English.lproj/localizedStrings.js:
2271
2272 2012-02-05  Andreas Kling  <awesomekling@apple.com>
2273
2274         Swedish buildfix.
2275
2276         * dom/Document.cpp:
2277         (WebCore::wheelEventHandlerCountChanged):
2278
2279 2012-02-05  Anders Carlsson  <andersca@apple.com>
2280
2281         The scrolling tree should be aware of any wheel event handlers on the page
2282         https://bugs.webkit.org/show_bug.cgi?id=77840
2283
2284         Reviewed by Andreas Kling.
2285
2286         If there are wheel event handlers on the page, any wheel events must be redispatched
2287         to the main thread so they can go through the DOM event handling.
2288
2289         * dom/Document.cpp:
2290         (WebCore::wheelEventHandlerCountChanged):
2291         Inform the scrolling coordinator that the wheel event count changed.
2292
2293         (WebCore::Document::didAddWheelEventHandler):
2294         (WebCore::Document::didRemoveWheelEventHandler):
2295         Call wheelEventHandlerCountChanged.
2296
2297         * page/scrolling/ScrollingCoordinator.cpp:
2298         (WebCore::ScrollingCoordinator::frameViewWheelEventHandlerCountChanged):
2299         Call recomputeWheelEventHandlerCount.
2300
2301         (WebCore::ScrollingCoordinator::recomputeWheelEventHandlerCount):
2302         Update the scrolling tree state.
2303
2304         * page/scrolling/ScrollingTree.cpp:
2305         (WebCore::ScrollingTree::ScrollingTree):
2306         Initialize m_hasWheelEventHandlers to false.
2307
2308         (WebCore::ScrollingTree::tryToHandleWheelEvent):
2309         If m_hasWheelEventHandlers is true, bail.
2310
2311         (WebCore::ScrollingTree::commitNewTreeState):
2312         Update m_hasWheelEventHandlers.
2313
2314         * page/scrolling/ScrollingTreeState.cpp:
2315         (WebCore::ScrollingTreeState::ScrollingTreeState):
2316         (WebCore::ScrollingTreeState::setWheelEventHandlerCount):
2317         Add getter and setter for the wheel event handler count.
2318
2319 2012-02-05  Andreas Kling  <awesomekling@apple.com>
2320
2321         Remove mapped vs non-mapped attribute distinction.
2322         <http://webkit.org/b/77827>
2323
2324         Reviewed by Antti Koivisto.
2325
2326         Removed the isMappedAttribute flag from Attribute as it no longer serves
2327         a practical purpose. Previously, StyledElement would generate mapped
2328         attributes and plain Element would generate non-mapped ones.
2329
2330         The distinction is now made much more clearly by dividing the work between
2331         Element's and StyledElement's attributeChanged() methods. The only thing
2332         that StyledElement wants to do in addition to what Element does is
2333         calling parseMappedAttribute() (which we'll rename in a later patch.)
2334
2335         * dom/Attribute.cpp:
2336         (WebCore::Attribute::clone):
2337         * dom/Attribute.h:
2338         (WebCore::Attribute::create):
2339         (WebCore::Attribute::Attribute):
2340         (Attribute):
2341         * dom/Document.cpp:
2342         (WebCore::Document::createAttributeNS):
2343         * dom/Element.cpp:
2344         (WebCore::Element::attributeChanged):
2345         * dom/Element.h:
2346         (Element):
2347         * dom/Node.cpp:
2348         (WebCore::Node::dumpStatistics):
2349         * dom/StyledElement.cpp:
2350         (WebCore::StyledElement::attributeChanged):
2351         (WebCore::StyledElement::parseMappedAttribute):
2352         * dom/StyledElement.h:
2353         (StyledElement):
2354         * html/parser/HTMLConstructionSite.cpp:
2355         (WebCore):
2356         * html/parser/HTMLTreeBuilder.cpp:
2357         (WebCore::HTMLTreeBuilder::attributesForIsindexInput):
2358         * html/parser/TextDocumentParser.cpp:
2359         (WebCore::TextDocumentParser::insertFakePreElement):
2360         * svg/SVGStyledElement.cpp:
2361         (WebCore::SVGStyledElement::getPresentationAttribute):
2362         * xml/parser/MarkupTokenBase.h:
2363         (WebCore::::initializeAttributes):
2364
2365 2012-02-05  Andreas Kling  <awesomekling@apple.com>
2366
2367         Kill CSSMappedAttributeDeclaration.
2368         <http://webkit.org/b/77820>
2369
2370         Reviewed by Antti Koivisto.
2371
2372         Replace all use of CSSMappedAttributeDeclaration by StylePropertySet.
2373         Moved the setNeedsStyleRecalc() calls from CSSMappedAttributeDeclaration
2374         to the add/remove-CSS-property helpers in StyledElement.
2375
2376         This removes one step of indirection for attribute styles and reduces
2377         the size of elements that have presentational attributes by one pointer.
2378
2379         * CMakeLists.txt:
2380         * GNUmakefile.list.am:
2381         * Target.pri:
2382         * WebCore.gypi:
2383         * WebCore.order:
2384         * WebCore.vcproj/WebCore.vcproj:
2385         * WebCore.xcodeproj/project.pbxproj:
2386         * dom/CSSMappedAttributeDeclaration.cpp: Removed.
2387         * dom/CSSMappedAttributeDeclaration.h: Removed.
2388         * dom/DOMAllInOne.cpp:
2389
2390             Remove CSSMappedAttributeDeclaration.{cpp,h}
2391
2392         * css/CSSParser.h:
2393         * css/CSSParser.cpp:
2394         (WebCore::parseSimpleLengthValue):
2395
2396             Remove CSSParser::parseMappedAttributeValue(), we now use parseValue()
2397             directly instead. We lose the benefit of caching new CSSValues in the
2398             document's CSSValuePool but this optimization can be added back later.
2399
2400         * css/CSSStyleSelector.cpp:
2401         (WebCore::CSSStyleSelector::matchAllRules):
2402         * dom/ElementAttributeData.h:
2403         (ElementAttributeData):
2404         * dom/NamedNodeMap.cpp:
2405         (WebCore::NamedNodeMap::ensureAttributeStyle):
2406         * dom/NamedNodeMap.h:
2407         (WebCore::NamedNodeMap::attributeStyle):
2408         (NamedNodeMap):
2409         * dom/StyledElement.cpp:
2410         (WebCore::StyledElement::removeCSSProperties):
2411         (WebCore::StyledElement::addCSSProperty):
2412         (WebCore::StyledElement::addCSSImageProperty):
2413         (WebCore::StyledElement::addCSSLength):
2414         (WebCore::StyledElement::addCSSColor):
2415         * dom/StyledElement.h:
2416         (WebCore):
2417         (WebCore::StyledElement::attributeStyle):
2418         (WebCore::StyledElement::ensureAttributeStyle):
2419         * inspector/InspectorCSSAgent.cpp:
2420         (WebCore::InspectorCSSAgent::buildArrayForAttributeStyles):
2421
2422 2012-02-05  Ilya Tikhonovsky  <loislo@chromium.org>
2423
2424         Web Inspector: beautify retaining tree items view.
2425         https://bugs.webkit.org/show_bug.cgi?id=77810
2426
2427         Reviewed by Yury Semikhatsky.
2428
2429         * inspector/front-end/DetailedHeapshotGridNodes.js:
2430         (WebInspector.HeapSnapshotGenericObjectNode.prototype._createObjectCell):
2431         (WebInspector.HeapSnapshotObjectNode.prototype._prefixObjectCell):
2432         * inspector/front-end/heapProfiler.css:
2433         (.cycled-ancessor-node):
2434         * inspector/front-end/profilesPanel.css:
2435
2436 2012-02-04  Shawn Singh  <shawnsingh@chromium.org>
2437
2438         [chromium] Add support to force full damage in CCDamageTracker
2439         https://bugs.webkit.org/show_bug.cgi?id=76805
2440
2441         Reviewed by James Robinson.
2442
2443         Unit test added to CCDamageTrackerTest.cpp.
2444
2445         This feature is needed for events that should cause the entire
2446         surface to be damaged, even if layers themselves had only partial
2447         damage or no damage at all. For example, tab-switching is one such
2448         event.
2449
2450         * platform/graphics/chromium/cc/CCDamageTracker.cpp:
2451         (WebCore::CCDamageTracker::CCDamageTracker):
2452         (WebCore::CCDamageTracker::updateDamageRectForNextFrame):
2453         * platform/graphics/chromium/cc/CCDamageTracker.h:
2454         (WebCore::CCDamageTracker::forceFullDamageNextUpdate):
2455         (CCDamageTracker):
2456
2457 2012-02-04  Anders Carlsson  <andersca@apple.com>
2458
2459         Remove dead code from ScrollingCoordinator
2460         https://bugs.webkit.org/show_bug.cgi?id=77821
2461
2462         Reviewed by Sam Weinig.
2463
2464         * WebCore.exp.in:
2465         * page/scrolling/ScrollingCoordinator.cpp:
2466         (WebCore::ScrollingCoordinator::ScrollingCoordinator):
2467         * page/scrolling/ScrollingCoordinator.h:
2468         (ScrollingCoordinator):
2469         * page/scrolling/mac/ScrollingCoordinatorMac.mm:
2470         (WebCore::ScrollingCoordinator::frameViewScrollLayerDidChange):
2471         * rendering/RenderLayerCompositor.cpp:
2472         (WebCore::RenderLayerCompositor::frameViewDidChangeSize):
2473         (WebCore::RenderLayerCompositor::updateRootLayerPosition):
2474
2475 2012-02-04  Anders Carlsson  <andersca@apple.com>
2476
2477         The scrolling tree should inform the main scrolling coordinator when the scroll position changes
2478         https://bugs.webkit.org/show_bug.cgi?id=77818
2479
2480         Reviewed by Sam Weinig.
2481
2482         * page/scrolling/ScrollingCoordinator.cpp:
2483         (WebCore::ScrollingCoordinator::updateMainFrameScrollPosition):
2484         Set the main frame scroll position.
2485
2486         * page/scrolling/ScrollingTree.cpp:
2487         (WebCore::ScrollingTree::updateMainFrameScrollPosition):
2488         Call ScrollingCoordinator::updateMainFrameScrollPosition on the main thread.
2489
2490         * page/scrolling/mac/ScrollingTreeNodeMac.mm:
2491         (WebCore::ScrollingTreeNodeMac::scrollBy):
2492         Call ScrollingTree::updateMainFrameScrollPosition.
2493
2494 2012-02-04  Andreas Kling  <awesomekling@apple.com>
2495
2496         Element: Remove unnecessary attributeChanged() argument.
2497         <http://webkit.org/b/77814>
2498
2499         Reviewed by Ryosuke Niwa.
2500
2501         Remove the 'preserveDecls' argument to Element::attributeChanged() as that is no
2502         longer needed after the removal of per-attribute style declarations.
2503         Decorated subclass overrides with OVERRIDE since we're touching the lines.
2504
2505         Also removed an old inaccurate comment in NamedNodeMap::setAttributes() - calling
2506         attributeChanged() is absolutely necessary to initialize element-specific state.
2507
2508         * dom/Element.cpp:
2509         (WebCore::Element::attributeChanged):
2510         * dom/Element.h:
2511         (Element):
2512         * dom/NamedNodeMap.cpp:
2513         (WebCore::NamedNodeMap::setAttributes):
2514         * dom/StyledElement.cpp:
2515         (WebCore::StyledElement::attributeChanged):
2516         * dom/StyledElement.h:
2517         (StyledElement):
2518         * html/HTMLInputElement.cpp:
2519         (WebCore::HTMLInputElement::updateType):
2520         * html/HTMLMediaElement.cpp:
2521         (WebCore::HTMLMediaElement::attributeChanged):
2522         * html/HTMLMediaElement.h:
2523         (HTMLMediaElement):
2524         * html/HTMLScriptElement.cpp:
2525         (WebCore::HTMLScriptElement::attributeChanged):
2526         * html/HTMLScriptElement.h:
2527         (HTMLScriptElement):
2528         * html/HTMLTrackElement.cpp:
2529         (WebCore::HTMLTrackElement::attributeChanged):
2530         * html/HTMLTrackElement.h:
2531         (HTMLTrackElement):
2532         * svg/SVGAnimationElement.cpp:
2533         (WebCore::SVGAnimationElement::attributeChanged):
2534         * svg/SVGAnimationElement.h:
2535         * svg/SVGElement.cpp:
2536         (WebCore::SVGElement::attributeChanged):
2537         * svg/SVGElement.h:
2538         (SVGElement):
2539         * svg/animation/SVGSMILElement.cpp:
2540         (WebCore::SVGSMILElement::attributeChanged):
2541         * svg/animation/SVGSMILElement.h:
2542         (SVGSMILElement):
2543
2544 2012-02-04  Ken Buchanan  <kenrb@chromium.org>
2545
2546         Crash when reparenting children of flexible boxes
2547         https://bugs.webkit.org/show_bug.cgi?id=77458
2548
2549         Reviewed by Ojan Vafai.
2550
2551         This fixes some regressions I introduced in r106150. RenderBlock::
2552         removeChild needs to be careful about not collapsing anonymous
2553         blocks underneath flexible boxes, and also about node ordering
2554         when there is an after block.
2555
2556         * rendering/RenderBlock.cpp:
2557         (WebCore::RenderBlock::removeChild):
2558         (WebCore::RenderBlock::collapseAnonymousBoxChild):
2559
2560 2012-02-04  Ryosuke Niwa  <rniwa@webkit.org>
2561
2562         Debug build fix after r106715.
2563
2564         * html/HTMLDetailsElement.cpp:
2565         (WebCore::DetailsSummaryElement::create):
2566
2567 2012-02-04  Andreas Kling  <awesomekling@apple.com>
2568
2569         Unreviewed test fix after r106740.
2570         <http://webkit.org/b/77204>
2571
2572         Disable matched declaration caching for elements with attribute style until we can
2573         figure out how it's supposed to work.
2574
2575         * css/CSSStyleSelector.cpp:
2576         (WebCore::CSSStyleSelector::matchAllRules):
2577
2578 2012-02-03  Andreas Kling  <awesomekling@apple.com>
2579
2580         Kill per-Attribute style declarations.
2581         <http://webkit.org/b/77204>
2582
2583         Reviewed by Antti Koivisto.
2584
2585         TL;DR summary: Remove the per-Attribute style declarations and replace them by a single
2586         style declaration on StyledElement that acts as a secondary inline style.
2587
2588         The previous design was conceived in the Age of the Old Web(tm) where the majority of
2589         element styling was accomplished via attributes. Nowadays, CSS is a much better tool for
2590         this and we should optimize around that instead.
2591
2592         StyledElements now have an attributeStyle() which contains all the styling from attributes.
2593         parseMappedAttribute() is responsible for adding/removing properties to the attributeStyle
2594         as the corresponding attributes come in/out of the element.
2595
2596         Each Attribute instance shrinks by one pointer, each element that has attributes grows by
2597         one pointer. The styles from individual attributes are no longer shared, so content that
2598         uses a lot of repeating styling attributes will see a slight memory regression from this.
2599         Future improvements to this could enable sharing the attributeStyle between elements that
2600         have the same exact attributes to mitigate some of the damage.
2601
2602         There should be no web-facing behavior change from this, but it does break two things:
2603
2604         - The Inspector feature for displaying per-attribute styles. To keep things manageable,
2605           this patch simply files all the attribute styles together under an anonymous attribute
2606           in the Inspector.
2607
2608         - The Obj-C DOM binding for Attr::style() has to be kept for compatibility reasons,
2609           though it's already deprecated. It will now always return nil, since there's no way to
2610           retrieve a live style declaration that's specific to a certain Attr.
2611
2612         * css/CSSStyleSelector.cpp:
2613         (WebCore::CSSStyleSelector::matchAllRules):
2614         (WebCore::CSSStyleSelector::canShareStyleWithElement):
2615         * dom/Attr.h:
2616         (WebCore):
2617         (Attr):
2618         (WebCore::Attr::style):
2619         * dom/Attribute.cpp:
2620         (WebCore::Attribute::clone):
2621         * dom/Attribute.h:
2622         (WebCore):
2623         (WebCore::Attribute::create):
2624         (WebCore::Attribute::createMapped):
2625         (Attribute):
2626         (WebCore::Attribute::Attribute):
2627         * dom/CSSMappedAttributeDeclaration.cpp:
2628         (WebCore::CSSMappedAttributeDeclaration::~CSSMappedAttributeDeclaration):
2629         (WebCore::CSSMappedAttributeDeclaration::setMappedProperty):
2630         * dom/CSSMappedAttributeDeclaration.h:
2631         (CSSMappedAttributeDeclaration):
2632         (WebCore::CSSMappedAttributeDeclaration::CSSMappedAttributeDeclaration):
2633         * dom/Element.h:
2634         (Element):
2635         * dom/ElementAttributeData.h:
2636         (ElementAttributeData):
2637         * dom/NamedNodeMap.cpp:
2638         (WebCore::NamedNodeMap::ensureAttributeStyle):
2639         (WebCore):
2640         * dom/NamedNodeMap.h:
2641         (WebCore::NamedNodeMap::attributeStyle):
2642         (NamedNodeMap):
2643         * dom/StyledElement.cpp:
2644         (WebCore):
2645         (WebCore::StyledElement::attributeChanged):
2646         (WebCore::StyledElement::removeCSSProperties):
2647         (WebCore::StyledElement::addCSSProperty):
2648         (WebCore::StyledElement::addCSSImageProperty):
2649         (WebCore::StyledElement::addCSSLength):
2650         (WebCore::StyledElement::addCSSColor):
2651         * dom/StyledElement.h:
2652         (StyledElement):
2653         (WebCore::StyledElement::removeCSSProperty):
2654         (WebCore::StyledElement::attributeStyle):
2655         (WebCore::StyledElement::ensureAttributeStyle):
2656         * html/HTMLBRElement.cpp:
2657         (WebCore::HTMLBRElement::parseMappedAttribute):
2658         * html/HTMLBRElement.h:
2659         (HTMLBRElement):
2660         * html/HTMLBodyElement.cpp:
2661         (WebCore::HTMLBodyElement::parseMappedAttribute):
2662         * html/HTMLBodyElement.h:
2663         (HTMLBodyElement):
2664         * html/HTMLDivElement.cpp:
2665         (WebCore::HTMLDivElement::parseMappedAttribute):
2666         * html/HTMLDivElement.h:
2667         (HTMLDivElement):
2668         * html/HTMLElement.cpp:
2669         (WebCore::HTMLElement::applyBorderAttribute):
2670         (WebCore::HTMLElement::mapLanguageAttributeToLocale):
2671         (WebCore::HTMLElement::parseMappedAttribute):
2672         (WebCore::HTMLElement::removeHTMLAlignment):
2673         (WebCore):
2674         (WebCore::HTMLElement::addHTMLAlignmentToStyledElement):
2675         (WebCore::HTMLElement::setContentEditable):
2676         * html/HTMLElement.h:
2677         (HTMLElement):
2678         * html/HTMLEmbedElement.cpp:
2679         (WebCore::HTMLEmbedElement::parseMappedAttribute):
2680         * html/HTMLEmbedElement.h:
2681         (HTMLEmbedElement):
2682         * html/HTMLFontElement.cpp:
2683         (WebCore::HTMLFontElement::parseMappedAttribute):
2684         * html/HTMLFontElement.h:
2685         (HTMLFontElement):
2686         * html/HTMLFrameSetElement.cpp:
2687         (WebCore::HTMLFrameSetElement::parseMappedAttribute):
2688         * html/HTMLFrameSetElement.h:
2689         (HTMLFrameSetElement):
2690         * html/HTMLHRElement.cpp:
2691         (WebCore::HTMLHRElement::parseMappedAttribute):
2692         * html/HTMLHRElement.h:
2693         (HTMLHRElement):
2694         * html/HTMLIFrameElement.cpp:
2695         (WebCore::HTMLIFrameElement::parseMappedAttribute):
2696         * html/HTMLIFrameElement.h:
2697         (HTMLIFrameElement):
2698         * html/HTMLImageElement.cpp:
2699         (WebCore::HTMLImageElement::parseMappedAttribute):
2700         * html/HTMLImageElement.h:
2701         (HTMLImageElement):
2702         * html/HTMLInputElement.cpp:
2703         (WebCore::HTMLInputElement::parseMappedAttribute):
2704         * html/HTMLInputElement.h:
2705         (HTMLInputElement):
2706         * html/HTMLLIElement.cpp:
2707         (WebCore::HTMLLIElement::parseMappedAttribute):
2708         * html/HTMLLIElement.h:
2709         (HTMLLIElement):
2710         * html/HTMLMarqueeElement.cpp:
2711         (WebCore::HTMLMarqueeElement::parseMappedAttribute):
2712         * html/HTMLMarqueeElement.h:
2713         (HTMLMarqueeElement):
2714         * html/HTMLOListElement.cpp:
2715         (WebCore::HTMLOListElement::parseMappedAttribute):
2716         * html/HTMLOListElement.h:
2717         (HTMLOListElement):
2718         * html/HTMLOutputElement.cpp:
2719         * html/HTMLOutputElement.h:
2720         (HTMLOutputElement):
2721         * html/HTMLParagraphElement.cpp:
2722         (WebCore::HTMLParagraphElement::parseMappedAttribute):
2723         * html/HTMLParagraphElement.h:
2724         (HTMLParagraphElement):
2725         * html/HTMLPlugInElement.cpp:
2726         (WebCore::HTMLPlugInElement::parseMappedAttribute):
2727         * html/HTMLPlugInElement.h:
2728         (HTMLPlugInElement):
2729         * html/HTMLPreElement.cpp:
2730         (WebCore::HTMLPreElement::parseMappedAttribute):
2731         * html/HTMLPreElement.h:
2732         (HTMLPreElement):
2733         * html/HTMLTableCaptionElement.cpp:
2734         (WebCore::HTMLTableCaptionElement::parseMappedAttribute):
2735         * html/HTMLTableCaptionElement.h:
2736         (HTMLTableCaptionElement):
2737         * html/HTMLTableCellElement.cpp:
2738         (WebCore::HTMLTableCellElement::parseMappedAttribute):
2739         * html/HTMLTableCellElement.h:
2740         (HTMLTableCellElement):
2741         * html/HTMLTableColElement.cpp:
2742         (WebCore::HTMLTableColElement::parseMappedAttribute):
2743         * html/HTMLTableColElement.h:
2744         (HTMLTableColElement):
2745         * html/HTMLTableElement.cpp:
2746         (WebCore::HTMLTableElement::parseMappedAttribute):
2747         * html/HTMLTableElement.h:
2748         (HTMLTableElement):
2749         * html/HTMLTablePartElement.cpp:
2750         (WebCore):
2751         (WebCore::HTMLTablePartElement::parseMappedAttribute):
2752         * html/HTMLTablePartElement.h:
2753         * html/HTMLTextAreaElement.cpp:
2754         (WebCore::HTMLTextAreaElement::parseMappedAttribute):
2755         * html/HTMLUListElement.cpp:
2756         (WebCore::HTMLUListElement::parseMappedAttribute):
2757         * html/HTMLUListElement.h:
2758         (HTMLUListElement):
2759         * html/HTMLVideoElement.cpp:
2760         (WebCore::HTMLVideoElement::parseMappedAttribute):
2761         * inspector/InspectorCSSAgent.cpp:
2762         (WebCore::InspectorCSSAgent::buildArrayForAttributeStyles):
2763         * mathml/MathMLElement.cpp:
2764         (WebCore::MathMLElement::parseMappedAttribute):
2765         * mathml/MathMLElement.h:
2766         * svg/SVGImageElement.cpp:
2767         (WebCore::SVGImageElement::parseMappedAttribute):
2768         * svg/SVGStyledElement.cpp:
2769         (WebCore::SVGStyledElement::parseMappedAttribute):
2770         (WebCore::SVGStyledElement::getPresentationAttribute):
2771         * svg/SVGStyledElement.h:
2772         (SVGStyledElement):
2773         * svg/SVGTextContentElement.cpp:
2774         (WebCore::SVGTextContentElement::parseMappedAttribute):
2775
2776 2012-02-03  Ilya Tikhonovsky  <loislo@chromium.org>
2777
2778         Web Inspector: get rid of cycles in retaining tree
2779         https://bugs.webkit.org/show_bug.cgi?id=77801
2780
2781         Drive by fix: 'retained by' prefix was removed.
2782
2783         Reviewed by Yury Semikhatsky.
2784
2785         * inspector/front-end/DetailedHeapshotGridNodes.js:
2786         (WebInspector.HeapSnapshotObjectNode):
2787         (WebInspector.HeapSnapshotObjectNode.prototype._updateHasChildren):
2788         (WebInspector.HeapSnapshotObjectNode.prototype._createChildNode):
2789         (WebInspector.HeapSnapshotObjectNode.prototype._prefixObjectCell):
2790         * inspector/front-end/profilesPanel.css:
2791         (.cycled-ancessor-node):
2792
2793 2012-02-04  Kentaro Hara  <haraken@chromium.org>
2794
2795         Add the "JS" prefix to JSC specific IDL attributes
2796         https://bugs.webkit.org/show_bug.cgi?id=77693
2797
2798         Reviewed by Darin Adler.
2799
2800         Some JSC specific IDLs do not have "JS" prefix, e.g. [CustomIsReachable].
2801         It might be OK since JSC is the main JavaScript engine in WebKit, but
2802         distinguishing IDLs widely used in WebKit and IDLs used in JSC only would help
2803         people understand the role of IDLs.
2804
2805         This patch renames the following JSC specific IDLs:
2806
2807             CustomFinalize => JSCustomFinalize
2808             CustomIsReachable => JSCustomIsReachable
2809             CustomMarkFunction => JSCustomMarkFunction
2810             CustomToJS => JSCustomToJS
2811             CustomNativeConverter => JSCustomToNativeObject (Note: For naming consistency with [JSCustomToJS])
2812             GenerateIsReachable => JSGenerateIsReachable
2813             GenerateToJS => JSGenerateToJS
2814             NoStaticTables => JSNoStaticTables
2815             WindowEventListener => JSWindowEventListener
2816             InlineGetOwnPropertySlot => JSInlineGetOwnPropertySlot
2817             DelegatingPrototypePutFunction => JSCustomPrototypePutDelegate
2818
2819         No tests. No changes in behavior.
2820
2821         * bindings/scripts/CodeGeneratorJS.pm:
2822         (GenerateGetOwnPropertySlotBody):
2823         (GenerateGetOwnPropertyDescriptorBody):
2824         (GenerateHeader):
2825         (GenerateImplementation):
2826         * bindings/scripts/CodeGeneratorV8.pm:
2827         (HasCustomToV8Implementation):
2828
2829         * bindings/scripts/test/TestTypedArray.idl: No change in run-bindings-tests results.
2830
2831         * css/CSSRule.idl:
2832         * css/CSSRuleList.idl:
2833         * css/CSSStyleDeclaration.idl:
2834         * css/CSSValue.idl:
2835         * css/MediaList.idl:
2836         * css/MediaQueryListListener.idl:
2837         * css/StyleMedia.idl:
2838         * css/StyleSheet.idl:
2839         * css/StyleSheetList.idl:
2840         * dom/Attr.idl:
2841         * dom/DOMCoreException.idl:
2842         * dom/DOMImplementation.idl:
2843         * dom/DOMStringMap.idl:
2844         * dom/Document.idl:
2845         * dom/Element.idl:
2846         * dom/ErrorEvent.idl:
2847         * dom/Event.idl:
2848         * dom/EventException.idl:
2849         * dom/EventListener.idl:
2850         * dom/MessageChannel.idl:
2851         * dom/MessageEvent.idl:
2852         * dom/MessagePort.idl:
2853         * dom/NamedNodeMap.idl:
2854         * dom/Node.idl:
2855         * dom/NodeFilter.idl:
2856         * dom/NodeIterator.idl:
2857         * dom/NodeList.idl:
2858         * dom/TreeWalker.idl:
2859         * dom/WebKitNamedFlow.idl:
2860         * fileapi/Blob.idl:
2861         * fileapi/DOMFileSystem.idl:
2862         * fileapi/DOMFileSystemSync.idl:
2863         * fileapi/DirectoryEntry.idl:
2864         * fileapi/DirectoryEntrySync.idl:
2865         * fileapi/DirectoryReader.idl:
2866         * fileapi/DirectoryReaderSync.idl:
2867         * fileapi/Entry.idl:
2868         * fileapi/EntryArray.idl:
2869         * fileapi/EntryArraySync.idl:
2870         * fileapi/EntrySync.idl:
2871         * fileapi/File.idl:
2872         * fileapi/FileEntry.idl:
2873         * fileapi/FileEntrySync.idl:
2874         * fileapi/FileError.idl:
2875         * fileapi/FileException.idl:
2876         * fileapi/FileList.idl:
2877         * fileapi/FileReader.idl:
2878         * fileapi/FileReaderSync.idl:
2879         * fileapi/FileWriter.idl:
2880         * fileapi/Metadata.idl:
2881         * fileapi/OperationNotAllowedException.idl:
2882         * fileapi/WebKitBlobBuilder.idl:
2883         * html/DOMFormData.idl:
2884         * html/DOMSettableTokenList.idl:
2885         * html/DOMTokenList.idl:
2886         * html/DOMURL.idl:
2887         * html/HTMLAllCollection.idl:
2888         * html/HTMLBodyElement.idl:
2889         * html/HTMLCollection.idl:
2890         * html/HTMLFrameSetElement.idl:
2891         * html/ImageData.idl:
2892         * html/MediaController.idl:
2893         * html/TextTrack.idl:
2894         * html/TextTrackCue.idl:
2895         * html/VoidCallback.idl:
2896         * html/canvas/ArrayBuffer.idl:
2897         * html/canvas/ArrayBufferView.idl:
2898         * html/canvas/CanvasRenderingContext.idl:
2899         * html/canvas/DataView.idl:
2900         * html/canvas/Float32Array.idl:
2901         * html/canvas/Float64Array.idl:
2902         * html/canvas/Int16Array.idl:
2903         * html/canvas/Int32Array.idl:
2904         * html/canvas/Int8Array.idl:
2905         * html/canvas/OESStandardDerivatives.idl:
2906         * html/canvas/OESTextureFloat.idl:
2907         * html/canvas/OESVertexArrayObject.idl:
2908         * html/canvas/Uint16Array.idl:
2909         * html/canvas/Uint32Array.idl:
2910         * html/canvas/Uint8Array.idl:
2911         * html/canvas/Uint8ClampedArray.idl:
2912         * html/canvas/WebGLCompressedTextures.idl:
2913         * html/canvas/WebGLDebugRendererInfo.idl:
2914         * html/canvas/WebGLDebugShaders.idl:
2915         * html/canvas/WebGLLoseContext.idl:
2916         * html/canvas/WebGLRenderingContext.idl:
2917         * html/track/TextTrackList.idl:
2918         * loader/appcache/DOMApplicationCache.idl:
2919         * mediastream/LocalMediaStream.idl:
2920         * page/BarInfo.idl:
2921         * page/Console.idl:
2922         * page/DOMSelection.idl:
2923         * page/DOMWindow.idl:
2924         * page/EventSource.idl:
2925         * page/Geolocation.idl:
2926         * page/History.idl:
2927         * page/Location.idl:
2928         * page/Navigator.idl:
2929         * page/Screen.idl:
2930         * page/WorkerNavigator.idl:
2931         * plugins/DOMMimeTypeArray.idl:
2932         * plugins/DOMPluginArray.idl:
2933         * storage/Database.idl:
2934         * storage/DatabaseSync.idl:
2935         * storage/IDBAny.idl:
2936         * storage/IDBKey.idl:
2937         * storage/SQLError.idl:
2938         * storage/SQLException.idl:
2939         * storage/SQLResultSet.idl:
2940         * storage/SQLResultSetRowList.idl:
2941         * storage/SQLTransaction.idl:
2942         * storage/SQLTransactionSync.idl:
2943         * storage/Storage.idl:
2944         * svg/SVGElementInstance.idl:
2945         * svg/SVGPathSeg.idl:
2946         * webaudio/AudioBufferCallback.idl:
2947         * webaudio/AudioBufferSourceNode.idl:
2948         * webaudio/AudioContext.idl:
2949         * webaudio/AudioDestinationNode.idl:
2950         * webaudio/AudioGain.idl:
2951         * webaudio/AudioGainNode.idl:
2952         * webaudio/AudioPannerNode.idl:
2953         * webaudio/AudioProcessingEvent.idl:
2954         * webaudio/BiquadFilterNode.idl:
2955         * webaudio/ConvolverNode.idl:
2956         * webaudio/DelayNode.idl:
2957         * webaudio/DynamicsCompressorNode.idl:
2958         * webaudio/HighPass2FilterNode.idl:
2959         * webaudio/JavaScriptAudioNode.idl:
2960         * webaudio/LowPass2FilterNode.idl:
2961         * webaudio/MediaElementAudioSourceNode.idl:
2962         * webaudio/OfflineAudioCompletionEvent.idl:
2963         * webaudio/RealtimeAnalyserNode.idl:
2964         * webaudio/WaveShaperNode.idl:
2965         * websockets/CloseEvent.idl:
2966         * websockets/WebSocket.idl:
2967         * workers/AbstractWorker.idl:
2968         * workers/DedicatedWorkerContext.idl:
2969         * workers/SharedWorker.idl:
2970         * workers/SharedWorkerContext.idl:
2971         * workers/Worker.idl:
2972         * workers/WorkerContext.idl:
2973         * workers/WorkerLocation.idl:
2974         * xml/XMLHttpRequest.idl:
2975         * xml/XMLHttpRequestException.idl:
2976         * xml/XMLHttpRequestProgressEvent.idl:
2977         * xml/XMLHttpRequestUpload.idl:
2978         * xml/XPathResult.idl:
2979
2980 2012-02-04  Emil A Eklund  <eae@chromium.org>
2981
2982         Convert RenderTheme over to new layout abstraction
2983         https://bugs.webkit.org/show_bug.cgi?id=77783
2984
2985         Reviewed by Eric Seidel.
2986
2987         Change the RenderTheme classes to use the new layout abstraction as a
2988         part of the ongoing conversion work.
2989
2990         No new tests.
2991
2992         * rendering/RenderTheme.cpp:
2993         (WebCore::RenderTheme::paint):
2994         (WebCore::RenderTheme::volumeSliderOffsetFromMuteButton):
2995         (WebCore::RenderTheme::baselinePosition):
2996         (WebCore::RenderTheme::adjustRepaintRect):
2997         (WebCore::RenderTheme::meterSizeForBounds):
2998         * rendering/RenderTheme.h:
2999         (RenderTheme):
3000         (WebCore::RenderTheme::paintCapsLockIndicator):
3001         * rendering/RenderThemeChromiumMac.h:
3002         (RenderThemeChromiumMac):
3003         * rendering/RenderThemeChromiumMac.mm:
3004         (WebCore::RenderThemeChromiumMac::volumeSliderOffsetFromMuteButton):
3005         * rendering/RenderThemeChromiumSkia.cpp:
3006         (WebCore::RenderThemeChromiumSkia::convertToPaintingRect):
3007         (WebCore::RenderThemeChromiumSkia::paintSearchFieldCancelButton):
3008         (WebCore::RenderThemeChromiumSkia::paintSearchFieldResultsDecoration):
3009         (WebCore::RenderThemeChromiumSkia::paintSearchFieldResultsButton):
3010         * rendering/RenderThemeChromiumSkia.h:
3011         * rendering/RenderThemeMac.h:
3012         (RenderThemeMac):
3013         * rendering/RenderThemeMac.mm:
3014         (WebCore::RenderThemeMac::adjustRepaintRect):
3015         (WebCore::RenderThemeMac::inflateRect):
3016         (WebCore::RenderThemeMac::setControlSize):
3017         (WebCore::RenderThemeMac::paintCapsLockIndicator):
3018         (WebCore::RenderThemeMac::paintMenuList):
3019         (WebCore::RenderThemeMac::meterSizeForBounds):
3020         (WebCore::RenderThemeMac::paintMenuListButtonGradients):
3021         (WebCore::RenderThemeMac::setPopupButtonCellState):
3022         (WebCore::RenderThemeMac::paintSearchFieldCancelButton):
3023         (WebCore::RenderThemeMac::volumeSliderOffsetFromMuteButton):
3024         * rendering/RenderThemeSafari.cpp:
3025         (WebCore::RenderThemeSafari::baselinePosition):
3026         * rendering/RenderThemeSafari.h:
3027         (RenderThemeSafari):
3028         * rendering/RenderThemeWin.cpp:
3029         (WebCore::RenderThemeWin::paintSearchFieldCancelButton):
3030         (WebCore::RenderThemeWin::paintSearchFieldResultsDecoration):
3031         (WebCore::RenderThemeWin::paintSearchFieldResultsButton):
3032         (WebCore::RenderThemeWin::volumeSliderOffsetFromMuteButton):
3033         * rendering/RenderThemeWin.h:
3034         (RenderThemeWin):
3035
3036 2012-02-04  Stephen White  <senorblanco@chromium.org>
3037
3038         [chromium] Fix multi-second hangs in compositor invalidating large layers
3039         https://bugs.webkit.org/show_bug.cgi?id=77774
3040
3041         Reviewed by James Robinson.
3042
3043         Correctness covered by existing tests.
3044
3045         * platform/graphics/chromium/TiledLayerChromium.cpp:
3046         (WebCore::TiledLayerChromium::pushPropertiesTo):
3047         Remove tiles from the tiler when they are invalid (ie., no longer have
3048         texture backing).
3049         (WebCore::TiledLayerChromium::invalidateRect):
3050         Instead of iterating over the tile indices (which may be very large),
3051         iterate over the tile hash map instead.
3052
3053 2012-02-04  Swapna P  <spottabathini@innominds.com>
3054
3055         Reviewed by Antonio Gomes.
3056         
3057         Bug: iframe with scrolling=no incorrectly autoscrollable
3058         https://bugs.webkit.org/show_bug.cgi?id=61558
3059         
3060         Added check for frame scrolling mode just before applying scroll on frame content in function RenderLayer::scrollRect
3061         
3062         Testcase: LayoutTests/fast/events/autoscroll-with-non-scrollable-parent.html
3063         
3064         * rendering/RenderLayer.cpp:
3065         (WebCore::RenderLayer::scrollRectToVisible):
3066
3067 2012-02-03  Tim Horton  <timothy_horton@apple.com>
3068
3069         Canvas-into-canvas drawing should respect backing store scale ratio
3070         https://bugs.webkit.org/show_bug.cgi?id=77784
3071         <rdar://problem/10549729>
3072
3073         Reviewed by Dan Bernstein.
3074
3075         Respect the backing store scale ratio when drawing a canvas into another
3076         canvas via ctx.drawImage(canvas, x, y). Previous behavior caused canvas
3077         drawing to differ based on the size of the backing store, which is ideally
3078         an implementation detail to authors.
3079
3080         Also, rename the source canvas arguments to CanvasRenderingContext2D::drawImage
3081         to be more clear.
3082
3083         No new tests.
3084
3085         * html/canvas/CanvasRenderingContext2D.cpp:
3086         (WebCore::CanvasRenderingContext2D::drawImage):
3087
3088 2012-02-03  Beth Dakin  <bdakin@apple.com>
3089
3090         https://bugs.webkit.org/show_bug.cgi?id=77782
3091         WebPageProxy::didNewFirstVisuallyNonEmptyLayout should is called more than 
3092         once on some pages with frames
3093         -and corresponding-
3094         <rdar://problem/10798474>
3095
3096         Reviewed by Sam Weinig.
3097
3098         startCountingRelevantRepaintedObjects() should only be called for the main 
3099         frame. Otherwise, the counter will be re-set inappropriately, and 
3100         didNewFirstVisuallyNonEmptyLayout may even end up firing more than once. 
3101         * page/FrameView.cpp:
3102         (WebCore::FrameView::performPostLayoutTasks):
3103
3104 2012-02-03  Benjamin Poulain  <bpoulain@apple.com>
3105
3106         Reduce the memory allocations of WebCore's cssPropertyName()
3107         https://bugs.webkit.org/show_bug.cgi?id=74782
3108
3109         Reviewed by Geoffrey Garen.
3110
3111         Add a fast path to avoid the use of the StringBuilder.
3112
3113         The string builder is needed for two cases:
3114         -CSS prefix (the character after the prefix must be uppercase)
3115         -JavaScript CamelCase name for CSS properties
3116
3117         We can skip all memory allocations if the property is not in those
3118         two cases. We start by testing the string for uppercase characters,
3119         and just return the an identical string.
3120
3121         This patch create a "fast case" 2.7 times faster than previously.
3122         The "slow case" is 2-3% slower due to the additional check at the beginning.
3123
3124         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
3125         (WebCore):
3126         (WebCore::containsASCIIUpperChar):
3127         (WebCore::cssPropertyName):
3128         (WebCore::isCSSPropertyName):
3129
3130 2012-02-03  Anders Carlsson  <andersca@apple.com>
3131
3132         WebKit2 should dispatch wheel events to the new ScrollingTree class
3133         https://bugs.webkit.org/show_bug.cgi?id=77795
3134
3135         Reviewed by Andreas Kling.
3136
3137         * WebCore.exp.in:
3138         Add new symbols needed by WebKit2.
3139
3140         * WebCore.xcodeproj/project.pbxproj:
3141         Make ScrollingTree.h private so it can be included by WebKit2.
3142
3143         * page/scrolling/ScrollingCoordinator.cpp:
3144         (WebCore::ScrollingCoordinator::scrollingTree):
3145         * page/scrolling/ScrollingCoordinator.h:
3146         Add a scrolling tree getter.
3147
3148 2012-02-03  Dmitry Lomov  <dslomov@google.com>
3149
3150         [Chromium] WebCore::toV8Context crashes if DomWindow::frame() returns null.
3151         https://bugs.webkit.org/show_bug.cgi?id=77686.
3152
3153         Reviewed by Adam Barth.
3154
3155         * bindings/v8/V8Helpers.cpp:
3156         (WebCore::toV8Context):
3157
3158 2012-02-03  Anders Carlsson  <andersca@apple.com>
3159
3160         The scrolling tree should be able to handle wheel events
3161         https://bugs.webkit.org/show_bug.cgi?id=77794
3162
3163         Reviewed by Andreas Kling.
3164
3165         * page/scrolling/ScrollingTree.cpp:
3166         (WebCore::ScrollingTree::tryToHandleWheelEvent):
3167         New function. Currently this always returns that it was able to handle the wheel event,
3168         but this will change in the future.
3169
3170         (WebCore::ScrollingTree::handleWheelEvent):
3171         Ask the root node to handle the wheel event.
3172
3173         * page/scrolling/ScrollingTreeNode.h:
3174         Add a handleWheelEvent pure virtual member function.
3175
3176         * page/scrolling/mac/ScrollingTreeNodeMac.mm:
3177         (WebCore::ScrollingTreeNodeMac::handleWheelEvent):
3178         Call scrollBy for now. Eventually this should use a scroll elasticity controller to handle
3179         things like rubber-banding.
3180
3181         (WebCore::ScrollingTreeNodeMac::scrollPosition):
3182         (WebCore::ScrollingTreeNodeMac::setScrollPosition):
3183         Add getters and setters for the scroll position.
3184
3185         (WebCore::ScrollingTreeNodeMac::scrollBy):
3186         Update the scroll position given the offset.
3187
3188 2012-02-03  Ryosuke Niwa  <rniwa@webkit.org>
3189
3190         Crash in Node::dispatchSubtreeModifiedEvent
3191         https://bugs.webkit.org/show_bug.cgi?id=77449
3192
3193         Reviewed by Alexey Proskuryakov.
3194
3195         The bug was caused by appendChild not retaining this pointer.
3196         This is normally okay because there's another owner within JSC/V8 binding code that
3197         holds onto the node but this isn't the case when nodes are created as a part
3198         of setting document.title. Fixed the crash by retaining the pointer as needed.
3199
3200         Test: fast/dom/remove-body-during-title-creation.html
3201
3202         * dom/ContainerNode.cpp:
3203         (WebCore::ContainerNode::appendChild):
3204
3205 2012-02-03  Anders Carlsson  <andersca@apple.com>
3206
3207         Apply changed properties from the updated scrolling tree state
3208         https://bugs.webkit.org/show_bug.cgi?id=77792
3209
3210         Reviewed by Andreas Kling.
3211
3212         * page/scrolling/ScrollingTreeNode.cpp:
3213         (WebCore::ScrollingTreeNode::update):
3214         Update the tree node properties from the scrolling tree state.
3215
3216         * page/scrolling/ScrollingTreeNode.h:
3217         (WebCore::ScrollingTreeNode::scrollingTree):
3218         (WebCore::ScrollingTreeNode::viewportRect):
3219         (WebCore::ScrollingTreeNode::contentsSize):
3220         Add getters.
3221
3222         * page/scrolling/ScrollingTreeState.h:
3223         (WebCore::ScrollingTreeState::changedProperties):
3224         New function for accessing the changed properties of the scrolling tree state.
3225
3226         * page/scrolling/mac/ScrollingTreeNodeMac.h:
3227         * page/scrolling/mac/ScrollingTreeNodeMac.mm:
3228         (WebCore::ScrollingTreeNodeMac::update):
3229         Update the scroll layer from the scrolling tree if necessary.
3230
3231 2012-02-03  Brady Eidson  <beidson@apple.com>
3232
3233         <rdar://problem/10742441> and https://bugs.webkit.org/show_bug.cgi?id=77766
3234         Need a WK2 API to filter which subframes go into WebArchives as they are created.
3235
3236         Reviewed by Darin Adler.
3237
3238         This adds a filter callback object that allows clients to get called back for each
3239         subframe that might be added to a WebArchive.
3240
3241         API only, No new layout tests.
3242
3243         * WebCore.exp.in:
3244         * loader/archive/cf/LegacyWebArchive.cpp:
3245         (WebCore::LegacyWebArchive::create):
3246         (WebCore::LegacyWebArchive::createFromSelection):
3247         * loader/archive/cf/LegacyWebArchive.h:
3248         (FrameFilter):
3249         (WebCore:: FrameFilter::~ FrameFilter):
3250         (LegacyWebArchive):
3251
3252 2012-02-03  Joshua Bell  <jsbell@chromium.org>
3253
3254         IndexedDB: Key generators not rolled back if insertion fails or is aborted
3255         https://bugs.webkit.org/show_bug.cgi?id=77060
3256
3257         Reviewed by Tony Chang.
3258
3259         Test: storage/indexeddb/key-generator.html
3260
3261         * storage/IDBObjectStoreBackendImpl.cpp:
3262         (WebCore::IDBObjectStoreBackendImpl::put): Add abort task to reset cache.
3263         (WebCore::IDBObjectStoreBackendImpl::revertAutoIncrementKeyCache):
3264         (WebCore):
3265         (WebCore::IDBObjectStoreBackendImpl::putInternal): Reset cache on error.
3266         * storage/IDBObjectStoreBackendImpl.h:
3267         (IDBObjectStoreBackendImpl):
3268
3269 2012-02-03  Tony Chang  <tony@chromium.org>
3270
3271         positive and negative flex values are not being cleared on style changes
3272         https://bugs.webkit.org/show_bug.cgi?id=77771
3273
3274         Reviewed by Ojan Vafai.
3275
3276         If the width or height was a flex() value, but is no longer a flex
3277         value, we weren't clearing the positive and negative flex values in
3278         RenderStyle.
3279
3280         Test: css3/flexbox/flex-no-flex.html
3281
3282         * css/CSSStyleApplyProperty.cpp:
3283         (WebCore::ApplyPropertyLength::applyValue):
3284
3285 2012-02-03  James Robinson  <jamesr@chromium.org>
3286
3287         [chromium] Defer makeContextCurrent in compositor until first frame
3288         https://bugs.webkit.org/show_bug.cgi?id=77269
3289
3290         Reviewed by Kenneth Russell.
3291
3292         There are situations where we need to instantiate a compositor, but can't call makeContextCurrent() until some
3293         initialization work completes on another thread that we cannot block for. This defers the first
3294         makeContextCurrent() call until we need to produce the first frame at which point we know the call can succeed,
3295         assuming that the scheduler does the right thing.
3296
3297         This is accomplished by splitting up proxy initialization into two pieces:
3298         *) initializeContext() which attempts to instantiate a GraphicsContext3D. This can fail if we can't make a
3299         context at all, in which case we abort completely and return NULL from CCLayerTreeHost::create().
3300
3301         *) initializeLayerRenderer() which uses the previously-created context to instantiate our compositor objects and
3302             grab our renderer capabilities. This can fail if the context is not usable for compositing, which we report
3303             to the client as a lost context event.
3304
3305         Internally this introduces a new state to the CCLayerTreeHostImpl where it has a context but does not yet have a
3306         LayerRendererChromium, which has fairly minimal impact. One other change is that we don't instantiate the
3307         TextureManagers until we have the renderer capabilities, but this isn't necessary until we want to start
3308         painting so it doesn't have any impact outside of some overly intrustive unit tests.
3309
3310         * platform/graphics/chromium/ContentLayerChromium.cpp:
3311         (WebCore::ContentLayerChromium::paintContentsIfDirty):
3312         (WebCore::ContentLayerChromium::createTextureUpdater):
3313         * platform/graphics/chromium/ContentLayerChromium.h:
3314         (ContentLayerChromium):
3315         * platform/graphics/chromium/ImageLayerChromium.cpp:
3316         (WebCore::ImageLayerChromium::paintContentsIfDirty):
3317         * platform/graphics/chromium/ImageLayerChromium.h:
3318         (ImageLayerChromium):
3319         * platform/graphics/chromium/TiledLayerChromium.cpp:
3320         * platform/graphics/chromium/TiledLayerChromium.h:
3321         (WebCore::TiledLayerChromium::setSampledTexelFormat):
3322         (TiledLayerChromium):
3323         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
3324         (WebCore::CCLayerTreeHost::CCLayerTreeHost):
3325         (WebCore::CCLayerTreeHost::initialize):
3326         (WebCore::CCLayerTreeHost::initializeLayerRenderer):
3327         (WebCore):
3328         (WebCore::CCLayerTreeHost::beginCommitOnImplThread):
3329         (WebCore::CCLayerTreeHost::compositeAndReadback):
3330         (WebCore::CCLayerTreeHost::finishAllRendering):
3331         (WebCore::CCLayerTreeHost::setViewportSize):
3332         (WebCore::CCLayerTreeHost::setVisible):
3333         (WebCore::CCLayerTreeHost::updateLayers):
3334         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
3335         (CCLayerTreeHost):
3336         ():
3337         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
3338         (WebCore::CCLayerTreeHostImpl::isContextLost):
3339         * platform/graphics/chromium/cc/CCProxy.h:
3340         (CCProxy):
3341         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
3342         (WebCore::CCSingleThreadProxy::CCSingleThreadProxy):
3343         (WebCore::CCSingleThreadProxy::compositeAndReadback):
3344         (WebCore::CCSingleThreadProxy::initializeContext):
3345         (WebCore::CCSingleThreadProxy::initializeLayerRenderer):
3346         (WebCore::CCSingleThreadProxy::layerRendererCapabilities):
3347         * platform/graphics/chromium/cc/CCSingleThreadProxy.h:
3348         (CCSingleThreadProxy):
3349         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
3350         (WebCore::CCThreadProxy::CCThreadProxy):
3351         (WebCore::CCThreadProxy::compositeAndReadback):
3352         (WebCore::CCThreadProxy::initializeContext):
3353         (WebCore):
3354         (WebCore::CCThreadProxy::initializeLayerRenderer):
3355         (WebCore::CCThreadProxy::layerRendererCapabilities):
3356         (WebCore::CCThreadProxy::initializeImplOnImplThread):
3357         (WebCore::CCThreadProxy::initializeContextOnImplThread):
3358         (WebCore::CCThreadProxy::initializeLayerRendererOnImplThread):
3359         * platform/graphics/chromium/cc/CCThreadProxy.h:
3360         (CCThreadProxy):
3361
3362 2012-02-03  James Robinson  <jamesr@chromium.org>
3363
3364         Unreviewed compile fix for chromium - add commas after entries in list in WebCore.gypi
3365
3366         * WebCore.gypi:
3367
3368 2012-02-03  Andreas Kling  <awesomekling@apple.com>
3369
3370         Unreviewed build fix attempt after r106695.
3371
3372         CSSMutableStyleDeclaration was renamed to StylePropertySet.
3373
3374         * bindings/scripts/CodeGeneratorCPP.pm:
3375         (AddIncludesForType):
3376         * bindings/scripts/CodeGeneratorV8.pm:
3377         (AddIncludesForType):
3378         * bindings/v8/V8DOMWindowShell.cpp:
3379         * bindings/v8/V8DOMWrapper.cpp:
3380         * bindings/v8/V8Proxy.cpp:
3381
3382 2012-02-03  Yong Li  <yoli@rim.com>
3383
3384         [BlackBerry] Let userIdleTime() return maximum number instead of 0 as
3385         most of other ports do.
3386         https://bugs.webkit.org/show_bug.cgi?id=77769
3387
3388         Reviewed by Rob Buis.
3389
3390         userIdleTime() should return a big number so it won't block page cache
3391         from releasing cached pages. See PageCache::releaseAutoreleasedPagesNowOrReschedule().
3392
3393         No new tests as no visible functional changes.
3394
3395         * platform/blackberry/SystemTimeBlackBerry.cpp:
3396         (WebCore::userIdleTime):
3397
3398 2012-02-03  Anders Carlsson  <andersca@apple.com>
3399
3400         Commit scrolling tree state changes to the scrolling tree
3401         https://bugs.webkit.org/show_bug.cgi?id=77780
3402
3403         Reviewed by Darin Adler.
3404
3405         * WebCore.xcodeproj/project.pbxproj:
3406         * page/scrolling/ScrollingCoordinator.cpp:
3407         (WebCore::ScrollingCoordinator::commitTreeState):
3408         Send the new scrolling tree state over to the ScrollingTree on the scrolling thread.
3409
3410         * page/scrolling/ScrollingTree.cpp:
3411         (WebCore::ScrollingTree::ScrollingTree):
3412         Create a root node.
3413
3414         (WebCore::ScrollingTree::commitNewTreeState):
3415         Update the root node.
3416
3417         * page/scrolling/ScrollingTreeNode.cpp: Copied from Source/WebCore/page/scrolling/ScrollingTree.cpp.
3418         * page/scrolling/ScrollingTreeNode.h: Copied from Source/WebCore/page/scrolling/ScrollingTree.cpp.
3419         Stub out an abstract ScrollingTreeNode class.
3420
3421         * page/scrolling/mac/ScrollingCoordinatorMac.mm:
3422         (WebCore::ScrollingCoordinator::frameViewScrollLayerDidChange):
3423         Update the scroll layer on the tree state.
3424
3425         * page/scrolling/mac/ScrollingTreeNodeMac.h: Copied from Source/WebCore/page/scrolling/ScrollingTree.cpp.
3426         * page/scrolling/mac/ScrollingTreeNodeMac.mm: Copied from Source/WebCore/page/scrolling/ScrollingTree.cpp.
3427         Stub out the concrete ScrollingTreeNodeMac subclass.
3428
3429 2012-02-03  Antti Koivisto  <antti@apple.com>
3430
3431         Rename CSSMutableStyleDeclaration.h/.cpp to StylePropertySet.h/.cpp 
3432         https://bugs.webkit.org/show_bug.cgi?id=77779
3433
3434         Reviewed by Darin Adler.
3435
3436         Match the new class name.
3437
3438         * CMakeLists.txt:
3439         * GNUmakefile.list.am:
3440         * Target.pri:
3441         * WebCore.gypi:
3442         * WebCore.vcproj/WebCore.vcproj:
3443         * WebCore.xcodeproj/project.pbxproj:
3444         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
3445         * bindings/js/JSDOMBinding.h:
3446         * bindings/scripts/CodeGeneratorJS.pm:
3447         (NativeToJSValue):
3448         * bindings/scripts/CodeGeneratorObjC.pm:
3449         (AddIncludesForType):
3450         * css/CSSAllInOne.cpp:
3451         * css/CSSComputedStyleDeclaration.cpp:
3452         * css/CSSFontFaceRule.cpp:
3453         * css/CSSFontFaceRule.h:
3454         * css/CSSFontSelector.cpp:
3455         * css/CSSMutableStyleDeclaration.cpp: Removed.
3456         * css/CSSMutableStyleDeclaration.h: Removed.
3457         * css/CSSPageRule.cpp:
3458         * css/CSSParser.cpp:
3459         * css/CSSStyleRule.cpp:
3460         * css/CSSStyleRule.h:
3461         * css/StylePropertySet.cpp: Copied from Source/WebCore/css/CSSMutableStyleDeclaration.cpp.
3462         * css/StylePropertySet.h: Copied from Source/WebCore/css/CSSMutableStyleDeclaration.h.
3463         * css/WebKitCSSKeyframeRule.cpp:
3464         * css/WebKitCSSKeyframeRule.h:
3465         * css/WebKitCSSKeyframesRule.cpp:
3466         * css/WebKitCSSMatrix.cpp:
3467         * dom/CSSMappedAttributeDeclaration.h:
3468         * dom/ElementAttributeData.h:
3469         * dom/StyledElement.cpp:
3470         * dom/StyledElement.h:
3471         * editing/ApplyStyleCommand.cpp:
3472         * editing/DeleteButtonController.cpp:
3473         * editing/EditingStyle.cpp:
3474         * editing/Editor.cpp:
3475         * editing/EditorCommand.cpp:
3476         * editing/RemoveCSSPropertyCommand.cpp:
3477         * editing/ReplaceSelectionCommand.cpp:
3478         * editing/markup.cpp:
3479         * html/canvas/CanvasRenderingContext2D.cpp:
3480         * html/shadow/MeterShadowElement.cpp:
3481         * inspector/InspectorCSSAgent.cpp:
3482         * inspector/InspectorDOMAgent.cpp:
3483         * page/DragController.cpp:
3484         * page/Frame.cpp:
3485         * rendering/RenderLayer.cpp:
3486         * rendering/RenderTreeAsText.cpp:
3487         * svg/SVGFontFaceElement.h:
3488         (WebCore):
3489
3490 2012-02-03  Mihnea Ovidenie  <mihnea@adobe.com>
3491
3492         Crash in RenderFlowThread::setRegionBoxesRegionStyle
3493         https://bugs.webkit.org/show_bug.cgi?id=77474
3494
3495         Reviewed by David Hyatt.
3496
3497         Flexbox and deprecated flexible box should also compute their region range
3498         when they are part of a named flow. Until now, only RenderBlock elements
3499         were doing that. Flexbox and deprecated flexible box, while implementing
3500         their own layoutBlock method, were not doing that.
3501
3502         Tests: fast/regions/flexbox-in-region-crash.html
3503                fast/regions/select-in-region-crash.html
3504
3505         * rendering/RenderBlock.cpp:
3506         (WebCore::RenderBlock::computeInitialRegionRangeForBlock):
3507         (WebCore):
3508         (WebCore::RenderBlock::computeRegionRangeForBlock):
3509         (WebCore::RenderBlock::layoutBlock):
3510         * rendering/RenderBlock.h:
3511         (RenderBlock):
3512         * rendering/RenderDeprecatedFlexibleBox.cpp:
3513         (WebCore::RenderDeprecatedFlexibleBox::layoutBlock):
3514         * rendering/RenderFlexibleBox.cpp:
3515         (WebCore::RenderFlexibleBox::layoutBlock):
3516         * rendering/RenderFlowThread.cpp:
3517         (WebCore::RenderFlowThread::removeRegionFromThread):
3518         (WebCore::RenderFlowThread::removeRenderBoxRegionInfo):
3519         * rendering/RenderRegion.cpp:
3520         (WebCore::RenderRegion::RenderRegion):
3521         (WebCore::RenderRegion::paintReplaced):
3522         * rendering/RenderRegion.h:
3523         (RenderRegion):
3524
3525 2012-02-03  Anders Carlsson  <andersca@apple.com>
3526
3527         Update the tree state after layout and add a way to commit it
3528         https://bugs.webkit.org/show_bug.cgi?id=77767
3529
3530         Reviewed by Andreas Kling.
3531
3532         * page/FrameView.cpp:
3533         (WebCore::FrameView::performPostLayoutTasks):
3534         Call ScrollingCoordinator::frameViewLayoutUpdated if we have a scrolling coordinator.
3535
3536         * page/scrolling/ScrollingCoordinator.cpp:
3537         (WebCore::ScrollingCoordinator::ScrollingCoordinator):
3538         Initialize m_scrollingTreeStateCommitterTimer.
3539
3540         (WebCore::ScrollingCoordinator::frameViewLayoutUpdated):
3541         Update the viewport rect and contents size of the frame view.
3542
3543         (WebCore::ScrollingCoordinator::scheduleTreeStateCommit):
3544         Schedule a tree state commit unless we've already scheduled one or there are no changed properties.
3545
3546         (WebCore::ScrollingCoordinator::scrollingTreeStateCommitterTimerFired):
3547         Call commitTreeState().
3548
3549         (WebCore::ScrollingCoordinator::commitTreeStateIfNeeded):
3550         Commit the tree state unless there are no changed properties.
3551
3552         (WebCore::ScrollingCoordinator::commitTreeState):
3553         Commit the tree state. We currently don't do anything with the committed state yet.
3554
3555         * page/scrolling/ScrollingCoordinator.h:
3556         Add new member functions and the timer member variable.
3557
3558         * page/scrolling/ScrollingTreeState.cpp:
3559         (WebCore::ScrollingTreeState::commit):
3560         Copy the current tree state and restore the changed properties on the original.
3561
3562         * page/scrolling/ScrollingTreeState.h:
3563         (WebCore::ScrollingTreeState::hasChangedProperties):
3564         Return whether there are any changed properties in the tree state.
3565
3566 2012-02-03  Andreas Kling  <awesomekling@apple.com>
3567
3568         HTMLElement: Clean up tabindex attribute parsing.
3569         <http://webkit.org/b/77763>
3570
3571         Reviewed by Antti Koivisto.
3572
3573         Remove an unnecessary getAttribute() call when parsing tabindexAttr.
3574
3575         * html/HTMLElement.cpp:
3576         (WebCore::HTMLElement::parseMappedAttribute):
3577
3578 2012-02-03  Anders Carlsson  <andersca@apple.com>
3579
3580         ScrollingTreeState should keep track of the scroll layer
3581         https://bugs.webkit.org/show_bug.cgi?id=77762
3582
3583         Reviewed by Andreas Kling.
3584
3585         * WebCore.xcodeproj/project.pbxproj:
3586         * page/scrolling/ScrollingTreeState.h:
3587         (ScrollingTreeState):
3588         * page/scrolling/mac/ScrollingTreeStateMac.mm: Copied from Source/WebCore/page/scrolling/ScrollingTreeState.h.
3589         (WebCore):
3590         (WebCore::ScrollingTreeState::platformScrollLayer):
3591         (WebCore::ScrollingTreeState::setScrollLayer):
3592
3593 2012-02-03  Antti Koivisto  <antti@apple.com>
3594
3595         https://bugs.webkit.org/show_bug.cgi?id=77740
3596         Split CSSMutableStyleDeclaration into separate internal and CSSOM types 
3597
3598         Reviewed by Andreas Kling and Darin Adler.
3599
3600         Split the CSSMutableStyleDeclaration into an internal type (StylePropertySet) and a CSSOM implementation type (PropertySetCSSStyleDeclaration).
3601         
3602         To keep things somewhat manageable, this patch does NOT
3603
3604         - rename or add any files (so files names won't match types)
3605         - rename fields, methods or variables to match new type names (like CSSStyleRule::declaration() -> CSSStyleRule::propertySet())
3606         - try to realize any memory or performance gains (StylePropertySet loses the vptr but gains PropertySetCSSStyleDeclaration*)
3607
3608         * WebCore.exp.in:
3609         * css/CSSComputedStyleDeclaration.cpp:
3610         (WebCore::CSSComputedStyleDeclaration::copy):
3611         (WebCore::CSSComputedStyleDeclaration::makeMutable):
3612         (WebCore::CSSComputedStyleDeclaration::copyPropertiesInSet):
3613         * css/CSSComputedStyleDeclaration.h:
3614         (WebCore):
3615         (CSSComputedStyleDeclaration):
3616         * css/CSSFontFaceRule.h:
3617         (WebCore::CSSFontFaceRule::style):
3618         (WebCore::CSSFontFaceRule::declaration):
3619         (WebCore::CSSFontFaceRule::setDeclaration):
3620         (CSSFontFaceRule):
3621         * css/CSSFontSelector.cpp:
3622         (WebCore::CSSFontSelector::addFontFaceRule):
3623         * css/CSSMutableStyleDeclaration.cpp:
3624         (PropertySetCSSStyleDeclaration):
3625         (WebCore::PropertySetCSSStyleDeclaration::create):
3626         (WebCore::PropertySetCSSStyleDeclaration::PropertySetCSSStyleDeclaration):
3627         (WebCore):
3628         (WebCore::StylePropertySet::StylePropertySet):
3629         (WebCore::StylePropertySet::~StylePropertySet):
3630         (WebCore::StylePropertySet::deref):
3631         (WebCore::StylePropertySet::contextStyleSheet):
3632         (WebCore::StylePropertySet::copyPropertiesFrom):
3633         (WebCore::StylePropertySet::getPropertyValue):
3634         (WebCore::StylePropertySet::borderSpacingValue):
3635         (WebCore::StylePropertySet::appendFontLonghandValueIfExplicit):
3636         (WebCore::StylePropertySet::fontValue):
3637         (WebCore::StylePropertySet::get4Values):
3638         (WebCore::StylePropertySet::getLayeredShorthandValue):
3639         (WebCore::StylePropertySet::getShorthandValue):
3640         (WebCore::StylePropertySet::getCommonValue):
3641         (WebCore::StylePropertySet::getPropertyCSSValue):
3642         (WebCore::StylePropertySet::removeShorthandProperty):
3643         (WebCore::StylePropertySet::removeProperty):
3644         (WebCore::StylePropertySet::setNeedsStyleRecalc):
3645         (WebCore::StylePropertySet::propertyIsImportant):
3646         (WebCore::StylePropertySet::getPropertyShorthand):
3647         (WebCore::StylePropertySet::isPropertyImplicit):
3648         (WebCore::StylePropertySet::setProperty):
3649         (WebCore::StylePropertySet::parseDeclaration):
3650         (WebCore::StylePropertySet::addParsedProperties):
3651         (WebCore::StylePropertySet::addParsedProperty):
3652         (WebCore::StylePropertySet::asText):
3653         (WebCore::StylePropertySet::merge):
3654         (WebCore::StylePropertySet::addSubresourceStyleURLs):
3655         (WebCore::StylePropertySet::copyBlockProperties):
3656         (WebCore::StylePropertySet::removeBlockProperties):
3657         (WebCore::StylePropertySet::removePropertiesInSet):
3658         (WebCore::StylePropertySet::findPropertyWithId):
3659         (WebCore::StylePropertySet::propertyMatches):
3660         (WebCore::StylePropertySet::removeEquivalentProperties):
3661         (WebCore::StylePropertySet::copy):
3662         (WebCore::StylePropertySet::copyPropertiesInSet):
3663         (WebCore::StylePropertySet::ensureCSSStyleDeclaration):
3664         (WebCore::PropertySetCSSStyleDeclaration::length):
3665         (WebCore::PropertySetCSSStyleDeclaration::item):
3666         (WebCore::PropertySetCSSStyleDeclaration::parentRule):
3667         (WebCore::PropertySetCSSStyleDeclaration::cssText):
3668         (WebCore::PropertySetCSSStyleDeclaration::setCssText):
3669         (WebCore::PropertySetCSSStyleDeclaration::getPropertyCSSValue):
3670         (WebCore::PropertySetCSSStyleDeclaration::getPropertyValue):
3671         (WebCore::PropertySetCSSStyleDeclaration::getPropertyPriority):
3672         (WebCore::PropertySetCSSStyleDeclaration::getPropertyShorthand):
3673         (WebCore::PropertySetCSSStyleDeclaration::isPropertyImplicit):
3674         (WebCore::PropertySetCSSStyleDeclaration::setProperty):
3675         (WebCore::PropertySetCSSStyleDeclaration::removeProperty):
3676         (WebCore::PropertySetCSSStyleDeclaration::getPropertyCSSValueInternal):
3677         (WebCore::PropertySetCSSStyleDeclaration::getPropertyValueInternal):
3678         (WebCore::PropertySetCSSStyleDeclaration::setPropertyInternal):
3679         (WebCore::PropertySetCSSStyleDeclaration::parentStyleSheet):
3680         (WebCore::PropertySetCSSStyleDeclaration::copy):
3681         (WebCore::PropertySetCSSStyleDeclaration::makeMutable):
3682         (WebCore::PropertySetCSSStyleDeclaration::cssPropertyMatches):
3683         * css/CSSMutableStyleDeclaration.h:
3684         (WebCore):
3685         (StylePropertySet):
3686         (WebCore::StylePropertySet::create):
3687         (WebCore::StylePropertySet::createInline):
3688         * css/CSSPageRule.h:
3689         (WebCore):
3690         * css/CSSParser.cpp:
3691         (WebCore::parseColorValue):
3692         (WebCore::parseSimpleLengthValue):
3693         (WebCore::CSSParser::parseValue):
3694         (WebCore::CSSParser::parseDeclaration):
3695         (WebCore::CSSParser::createStyleRule):
3696         (WebCore::CSSParser::createFontFaceRule):
3697         (WebCore::CSSParser::createPageRule):
3698         (WebCore::CSSParser::createKeyframeRule):
3699         * css/CSSParser.h:
3700         (WebCore):
3701         (CSSParser):
3702         * css/CSSStyleDeclaration.h:
3703         (WebCore):
3704         (CSSStyleDeclaration):
3705         * css/CSSStyleRule.h:
3706         (WebCore::CSSStyleRule::style):
3707         (WebCore::CSSStyleRule::setDeclaration):
3708         (WebCore::CSSStyleRule::declaration):
3709         (CSSStyleRule):
3710         * css/CSSStyleSelector.cpp:
3711         (WebCore::leftToRightDeclaration):
3712         (WebCore::rightToLeftDeclaration):
3713         (WebCore::CSSStyleSelector::addMatchedDeclaration):
3714         (WebCore::CSSStyleSelector::collectMatchingRulesForList):
3715         (WebCore::CSSStyleSelector::matchAllRules):
3716         (WebCore::CSSStyleSelector::styleForKeyframe):
3717         (WebCore::isInsideRegionRule):
3718         (WebCore::CSSStyleSelector::applyDeclaration):
3719         (WebCore::CSSStyleSelector::applyDeclarations):
3720         (WebCore::CSSStyleSelector::matchPageRulesForList):
3721         * css/CSSStyleSelector.h:
3722         (CSSStyleSelector):
3723         (MatchedStyleDeclaration):
3724         * css/WebKitCSSKeyframeRule.cpp:
3725         (WebCore::WebKitCSSKeyframeRule::setDeclaration):
3726         * css/WebKitCSSKeyframeRule.h:
3727         (WebCore::WebKitCSSKeyframeRule::style):
3728         (WebCore::WebKitCSSKeyframeRule::declaration):
3729         (WebKitCSSKeyframeRule):
3730         * css/WebKitCSSMatrix.cpp:
3731         (WebCore::WebKitCSSMatrix::setMatrixValue):
3732         * dom/Attr.h:
3733         (WebCore::Attr::style):
3734         * dom/Attribute.h:
3735         (WebCore::Attribute::decl):
3736         * dom/CSSMappedAttributeDeclaration.h:
3737         (WebCore::CSSMappedAttributeDeclaration::declaration):
3738         (WebCore::CSSMappedAttributeDeclaration::CSSMappedAttributeDeclaration):
3739         (CSSMappedAttributeDeclaration):
3740         * dom/Document.cpp:
3741         (WebCore::Document::createCSSStyleDeclaration):
3742         * dom/ElementAttributeData.h:
3743         (ElementAttributeData):
3744         * dom/NamedNodeMap.cpp:
3745         (WebCore::NamedNodeMap::ensureInlineStyleDecl):
3746         * dom/NamedNodeMap.h:
3747         (WebCore::NamedNodeMap::inlineStyleDecl):
3748         (NamedNodeMap):
3749         * dom/StyledElement.cpp:
3750         (WebCore::StyledElement::updateStyleAttribute):
3751         (WebCore::StyledElement::copyNonAttributeProperties):
3752         (WebCore::StyledElement::addSubresourceAttributeURLs):
3753         * dom/StyledElement.h:
3754         (WebCore::StyledElement::additionalAttributeStyle):
3755         (WebCore::StyledElement::inlineStyleDecl):
3756         (WebCore::StyledElement::ensureInlineStyleDecl):
3757         * editing/ApplyStyleCommand.cpp:
3758         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
3759         (WebCore::ApplyStyleCommand::removeEmbeddingUpToEnclosingBlock):
3760         (WebCore::ApplyStyleCommand::applyInlineStyleToNodeRange):
3761         (WebCore::ApplyStyleCommand::removeCSSStyle):
3762         (WebCore::ApplyStyleCommand::addBlockStyle):
3763         (WebCore::ApplyStyleCommand::addInlineStyleIfNeeded):
3764         * editing/DeleteButtonController.cpp:
3765         (WebCore::DeleteButtonController::createDeletionUI):
3766         * editing/EditingStyle.cpp:
3767         (WebCore::copyEditingProperties):
3768         (WebCore::editingStyleFromComputedStyle):
3769         (WebCore):
3770         (WebCore::HTMLElementEquivalent::propertyExistsInStyle):
3771         (HTMLElementEquivalent):
3772         (WebCore::HTMLElementEquivalent::valueIsPresentInStyle):
3773         (HTMLTextDecorationEquivalent):
3774         (WebCore::HTMLTextDecorationEquivalent::propertyExistsInStyle):
3775         (WebCore::HTMLTextDecorationEquivalent::valueIsPresentInStyle):
3776         (HTMLAttributeEquivalent):
3777         (WebCore::HTMLAttributeEquivalent::valueIsPresentInStyle):
3778         (WebCore::HTMLAttributeEquivalent::attributeValueAsCSSValue):
3779         (WebCore::EditingStyle::EditingStyle):
3780         (WebCore::getRGBAFontColor):
3781         (WebCore::EditingStyle::setProperty):
3782         (WebCore::EditingStyle::setStyle):
3783         (WebCore::EditingStyle::overrideWithStyle):
3784         (WebCore::EditingStyle::extractAndRemoveTextDirection):
3785         (WebCore::EditingStyle::removeStyleAddedByNode):
3786         (WebCore::EditingStyle::removeStyleConflictingWithStyleOfNode):
3787         (WebCore::EditingStyle::triStateOfStyle):
3788         (WebCore::EditingStyle::conflictsWithInlineStyleOfElement):
3789         (WebCore::EditingStyle::elementIsStyledSpanOrHTMLEquivalent):
3790         (WebCore::elementMatchesAndPropertyIsNotInInlineStyleDecl):
3791         (WebCore::EditingStyle::mergeStyle):
3792         (WebCore::styleFromMatchedRulesForElement):
3793         (WebCore::EditingStyle::mergeStyleFromRules):
3794         (WebCore::EditingStyle::mergeStyleFromRulesForSerialization):
3795         (WebCore::removePropertiesInStyle):
3796         (WebCore::EditingStyle::removeStyleFromRulesAndContext):
3797         (WebCore::EditingStyle::removePropertiesInElementDefaultStyle):
3798         (WebCore::EditingStyle::forceInline):
3799         (WebCore::reconcileTextDecorationProperties):
3800         (WebCore::StyleChange::StyleChange):
3801         (WebCore::setTextDecorationProperty):
3802         (WebCore::StyleChange::extractTextStyles):
3803         (WebCore::diffTextDecorations):
3804         (WebCore::fontWeightIsBold):
3805         (WebCore::getTextAlignment):
3806         (WebCore::getPropertiesNotIn):
3807         (WebCore::getIdentifierValue):
3808         (WebCore::isTransparentColorValue):
3809         (WebCore::hasTransparentBackgroundColor):
3810         * editing/EditingStyle.h:
3811         (WebCore):
3812         (WebCore::EditingStyle::create):
3813         (EditingStyle):
3814         (WebCore::EditingStyle::style):
3815         (StyleChange):
3816         * editing/Editor.cpp:
3817         (WebCore::Editor::setBaseWritingDirection):
3818         (WebCore::Editor::applyEditingStyleToElement):
3819         * editing/EditorCommand.cpp:
3820         (WebCore::applyCommandToFrame):
3821         (WebCore::executeApplyStyle):
3822         (WebCore::executeToggleStyleInList):
3823         (WebCore::executeApplyParagraphStyle):
3824         (WebCore::executeMakeTextWritingDirectionLeftToRight):
3825         (WebCore::executeMakeTextWritingDirectionNatural):
3826         (WebCore::executeMakeTextWritingDirectionRightToLeft):
3827         * editing/FrameSelection.cpp:
3828         (WebCore::FrameSelection::copyTypingStyle):
3829         * editing/FrameSelection.h:
3830         (WebCore):
3831         * editing/RemoveCSSPropertyCommand.cpp:
3832         (WebCore::RemoveCSSPropertyCommand::doApply):
3833         (WebCore::RemoveCSSPropertyCommand::doUnapply):
3834         * editing/ReplaceSelectionCommand.cpp:
3835         (WebCore::ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline):
3836         * editing/ReplaceSelectionCommand.h:
3837         (WebCore):
3838         * editing/markup.cpp:
3839         (WebCore):
3840         (StyledMarkupAccumulator):
3841         (WebCore::StyledMarkupAccumulator::wrapWithStyleNode):
3842         (WebCore::StyledMarkupAccumulator::appendStyleNodeOpenTag):
3843         (WebCore::propertyMissingOrEqualToNone):
3844         * html/HTMLTableCellElement.cpp:
3845         (WebCore::HTMLTableCellElement::additionalAttributeStyle):
3846         * html/HTMLTableCellElement.h:
3847         (HTMLTableCellElement):
3848         * html/HTMLTableColElement.cpp:
3849         (WebCore::HTMLTableColElement::additionalAttributeStyle):
3850         * html/HTMLTableColElement.h:
3851         (HTMLTableColElement):
3852         * html/HTMLTableElement.cpp:
3853         (WebCore::leakBorderStyle):
3854         (WebCore::HTMLTableElement::additionalAttributeStyle):
3855         (WebCore::HTMLTableElement::createSharedCellStyle):
3856         (WebCore::HTMLTableElement::additionalCellStyle):
3857         (WebCore::leakGroupBorderStyle):
3858         (WebCore::HTMLTableElement::additionalGroupStyle):
3859         * html/HTMLTableElement.h:
3860         (HTMLTableElement):
3861         * html/HTMLTableSectionElement.cpp:
3862         (WebCore::HTMLTableSectionElement::additionalAttributeStyle):
3863         * html/HTMLTableSectionElement.h:
3864         (HTMLTableSectionElement):
3865         * html/ValidationMessage.cpp:
3866         (WebCore::adjustBubblePosition):
3867         * html/canvas/CanvasRenderingContext2D.cpp:
3868         (WebCore::CanvasRenderingContext2D::setFont):
3869         * html/shadow/MediaControlElements.cpp:
3870         (WebCore::MediaControlPanelElement::setPosition):
3871         (WebCore::MediaControlPanelElement::resetPosition):
3872         (WebCore::MediaControlPanelElement::makeOpaque):
3873         (WebCore::MediaControlPanelElement::makeTransparent):
3874         * html/shadow/SliderThumbElement.cpp:
3875         (WebCore::TrackLimiterElement::create):
3876         * inspector/InspectorCSSAgent.cpp:
3877         (WebCore::InspectorCSSAgent::buildArrayForAttributeStyles):
3878         * inspector/InspectorStyleSheet.cpp:
3879         (WebCore::InspectorStyle::setPropertyText):
3880         (WebCore::InspectorStyleSheetForInlineStyle::getStyleAttributeRanges):
3881         * page/DragController.cpp:
3882         (WebCore::DragController::concludeEditDrag):
3883         * page/PageSerializer.cpp:
3884         (WebCore::PageSerializer::retrieveResourcesForCSSDeclaration):
3885         * page/PageSerializer.h:
3886         (WebCore):
3887         (PageSerializer):
3888         * rendering/RenderLayer.cpp:
3889         (WebCore::RenderLayer::resize):
3890         * rendering/RenderTreeAsText.cpp:
3891         (WebCore::isEmptyOrUnstyledAppleStyleSpan):
3892         * svg/SVGFontFaceElement.cpp:
3893         (WebCore::SVGFontFaceElement::SVGFontFaceElement):
3894
3895 2012-02-03  Jochen Eisinger  <jochen@chromium.org>
3896
3897         Remove unneccesary canExecuteScripts check from v8 bindings, and correctly indeicate when we're about to execute a script
3898         https://bugs.webkit.org/show_bug.cgi?id=76704
3899
3900         Reviewed by Adam Barth.
3901
3902         Test: http/tests/security/isolatedWorld/sandboxed-iframe.html
3903
3904         * bindings/v8/ScheduledAction.cpp:
3905         (WebCore::ScheduledAction::execute):
3906         * bindings/v8/V8EventListener.cpp:
3907         (WebCore::V8EventListener::callListenerFunction):
3908         * bindings/v8/V8LazyEventListener.cpp:
3909         (WebCore::V8LazyEventListener::callListenerFunction):
3910         * bindings/v8/V8Proxy.cpp:
3911         (WebCore::V8Proxy::handleOutOfMemory):
3912         (WebCore::toV8Context):
3913
3914 2012-02-03  Anders Carlsson  <andersca@apple.com>
3915
3916         Add ScrollingTreeState class
3917         https://bugs.webkit.org/show_bug.cgi?id=77756
3918
3919         Reviewed by Andreas Kling.
3920
3921         Add a new ScrollingTreeState whose intent is to be a data container for the current
3922         scrolling tree state. the ScrollingCoordinator class will update it and periodically
3923         send over the new state to the ScrollingTree object on the scrolling thread.
3924
3925         * WebCore.xcodeproj/project.pbxproj:
3926         * page/scrolling/ScrollingCoordinator.cpp:
3927         (WebCore::ScrollingCoordinator::ScrollingCoordinator):
3928         * page/scrolling/ScrollingCoordinator.h:
3929         (WebCore):
3930         (ScrollingCoordinator):
3931         * page/scrolling/ScrollingTreeState.cpp: Added.
3932         (WebCore):
3933         (WebCore::ScrollingTreeState::create):
3934         (WebCore::ScrollingTreeState::ScrollingTreeState):
3935         (WebCore::ScrollingTreeState::~ScrollingTreeState):
3936         (WebCore::ScrollingTreeState::setViewportRect):
3937         (WebCore::ScrollingTreeState::setContentsSize):
3938         * page/scrolling/ScrollingTreeState.h: Added.
3939         (WebCore):
3940         (ScrollingTreeState):
3941         (WebCore::ScrollingTreeState::viewportRect):
3942         (WebCore::ScrollingTreeState::contentsSize):
3943
3944 2012-02-03  Beth Dakin  <bdakin@apple.com>
3945
3946         https://bugs.webkit.org/show_bug.cgi?id=77691
3947         Fix PlatformScreen layering violation and PlatformScreenMac's incorrect use 
3948         of device scale
3949
3950         Reviewed by Andy Estes.
3951
3952         Make screenAvailableRect() and screenRect() take a Widget again instead of a 
3953         FrameView since taking a FrameView is a layering violation.
3954         * WebCore.exp.in:
3955         * platform/PlatformScreen.h:
3956         (WebCore):
3957         * platform/blackberry/PlatformScreenBlackBerry.cpp:
3958         (WebCore::screenAvailableRect):
3959         (WebCore::screenRect):
3960         * platform/chromium/PlatformScreenChromium.cpp:
3961         (WebCore::screenRect):
3962         (WebCore::screenAvailableRect):
3963         * platform/chromium/PlatformSupport.h:
3964         (WebCore):
3965         (PlatformSupport):
3966         * platform/efl/PlatformScreenEfl.cpp:
3967         (WebCore::screenRect):
3968         (WebCore::screenAvailableRect):
3969         * platform/gtk/PlatformScreenGtk.cpp:
3970         (WebCore::screenRect):
3971         (WebCore::screenAvailableRect):
3972         * platform/qt/PlatformScreenQt.cpp:
3973         (WebCore::screenRect):
3974         (WebCore::screenAvailableRect):
3975         * platform/win/PlatformScreenWin.cpp:
3976         (WebCore::screenRect):
3977         (WebCore::screenAvailableRect):
3978         * platform/wx/ScreenWx.cpp:
3979         (WebCore::screenRect):
3980         (WebCore::screenAvailableRect):
3981
3982         It's wrong for the deviceScaleFactor to be taken into consideration here at 
3983         all.
3984         * platform/mac/PlatformScreenMac.mm:
3985         (WebCore::screenRect):
3986         (WebCore::screenAvailableRect):
3987         (WebCore::toUserSpace):
3988         (WebCore::toDeviceSpace):
3989
3990 2012-02-03  Dan Bernstein  <mitz@apple.com>
3991
3992         <rdar://problem/10352073> Floating image leaves hole in previous column when wrapped to next column
3993         https://bugs.webkit.org/show_bug.cgi?id=77694
3994
3995         Reviewed by Darin Adler.
3996
3997         Tests: fast/dynamic/float-moved-downwards-for-pagination-expected.html
3998                fast/dynamic/float-moved-downwards-for-pagination.html
3999
4000         * rendering/RenderBlock.cpp:
4001         (WebCore::RenderBlock::clearFloats): When determining which lines to dirty,
4002         also check for changes to the top edge of the float, which can happen when
4003         float gets pushed down by a pagination strut.
4004
4005 2012-02-03  Alexis Menard  <alexis.menard@openbossa.org>
4006
4007         REGRESSION (r105401-105403): Blue flash on css border transition
4008         https://bugs.webkit.org/show_bug.cgi?id=77491
4009
4010         Reviewed by Simon Fraser.
4011
4012         The new blend function added with r105403 takes unsigned as parameters therefore
4013         we have to be careful to not overflow in case the to is less than from (animating
4014         from 400 to 0 for example).
4015
4016         Test: animations/animation-border-overflow.html
4017
4018         * platform/animation/AnimationUtilities.h:
4019         (WebCore::blend):
4020
4021 2012-02-03  Justin Novosad  <junov@chromium.org>
4022
4023         [Chromium] ImageBufferSkia: remove unnecessary overload of flush in
4024         AcceleratedDeviceContext
4025         https://bugs.webkit.org/show_bug.cgi?id=77741
4026
4027         Reviewed by Stephen White.
4028
4029         Removing dead code.
4030
4031         * platform/graphics/skia/ImageBufferSkia.cpp:
4032         (AcceleratedDeviceContext):
4033
4034 2012-02-03  Balazs Kelemen  <kbalazs@webkit.org>
4035
4036         Speculative unreviewed build fix for Qt-Windows
4037         after http://trac.webkit.org/changeset/106659.
4038
4039         * platform/graphics/texmap/TextureMapper.h:
4040         (WebCore::TextureMapper::platformCreateAccelerated):
4041
4042 2012-02-03  Sheriff Bot  <webkit.review.bot@gmail.com>
4043
4044         Unreviewed, rolling out r106654.
4045         http://trac.webkit.org/changeset/106654
4046         https://bugs.webkit.org/show_bug.cgi?id=77742
4047
4048         triggers asserts on mac, win, gtk, qt debug bots (Requested by
4049         philn-tp on #webkit).
4050
4051         * Modules/intents/IntentRequest.cpp:
4052         (WebCore::IntentRequest::create):
4053         * bindings/generic/ActiveDOMCallback.cpp:
4054         (WebCore::ActiveDOMCallback::ActiveDOMCallback):
4055         * dom/ActiveDOMObject.cpp:
4056         (WebCore::ActiveDOMObject::ActiveDOMObject):
4057         (WebCore::ActiveDOMObject::~ActiveDOMObject):
4058         * dom/ActiveDOMObject.h:
4059         (ActiveDOMObject):
4060         * dom/DocumentEventQueue.cpp:
4061         (WebCore::DocumentEventQueue::DocumentEventQueue):
4062         * dom/ScriptExecutionContext.cpp:
4063         (WebCore::ScriptExecutionContext::ScriptExecutionContext):
4064         (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
4065         (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjects):
4066         (WebCore::ScriptExecutionContext::suspendActiveDOMObjects):
4067         (WebCore::ScriptExecutionContext::resumeActiveDOMObjects):
4068         (WebCore::ScriptExecutionContext::stopActiveDOMObjects):
4069         * dom/ScriptExecutionContext.h:
4070         (ScriptExecutionContext):
4071         * fileapi/DOMFileSystem.cpp:
4072         (WebCore::DOMFileSystem::create):
4073         * fileapi/FileReader.cpp:
4074         (WebCore):
4075         * fileapi/FileReader.h:
4076         (WebCore::FileReader::create):
4077         * fileapi/FileWriter.cpp:
4078         (WebCore):
4079         * fileapi/FileWriter.h:
4080         (WebCore::FileWriter::create):
4081         * history/CachedFrame.cpp:
4082         (WebCore::CachedFrame::CachedFrame):
4083         * html/HTMLAudioElement.cpp:
4084         (WebCore::HTMLAudioElement::create):
4085         * html/HTMLMarqueeElement.cpp:
4086         (WebCore::HTMLMarqueeElement::create):
4087         * html/HTMLVideoElement.cpp:
4088         (WebCore::HTMLVideoElement::create):
4089         * mediastream/PeerConnection.cpp:
4090         (WebCore::PeerConnection::create):
4091         * notifications/Notification.cpp:
4092         (WebCore::Notification::create):
4093         * notifications/NotificationCenter.cpp:
4094         * notifications/NotificationCenter.h:
4095         (WebCore::NotificationCenter::create):
4096         * page/DOMTimer.cpp:
4097         (WebCore::DOMTimer::install):
4098         (WebCore::DOMTimer::fired):
4099         * page/EventSource.cpp:
4100         (WebCore::EventSource::create):
4101         * page/SuspendableTimer.cpp:
4102         (WebCore::SuspendableTimer::SuspendableTimer):
4103         * storage/IDBDatabase.cpp:
4104         (WebCore::IDBDatabase::create):
4105         * storage/IDBRequest.cpp:
4106         (WebCore::IDBRequest::create):
4107         * storage/IDBTransaction.cpp:
4108         (WebCore::IDBTransaction::create):
4109         * webaudio/AudioContext.cpp:
4110         (WebCore::AudioContext::create):
4111         * websockets/WebSocket.cpp:
4112         * websockets/WebSocket.h:
4113         (WebCore::WebSocket::create):
4114         * workers/SharedWorker.cpp:
4115         (WebCore::SharedWorker::create):
4116         * workers/Worker.cpp:
4117         (WebCore::Worker::create):
4118         * xml/XMLHttpRequest.cpp:
4119         (WebCore::XMLHttpRequest::create):
4120
4121 2012-02-03  Kentaro Hara  <haraken@chromium.org>
4122
4123         Add the "V8" prefix to V8 specific IDL attributes
4124         https://bugs.webkit.org/show_bug.cgi?id=77713
4125
4126         Reviewed by Adam Barth.
4127
4128         This patch adds the "V8" prefix to a V8 specific IDL attribute:
4129         [EnabledAtRuntime] => [V8EnabledAtRuntime]
4130
4131         No tests. No change in behavior.
4132
4133         * bindings/scripts/CodeGeneratorV8.pm:
4134         (GenerateHeader):
4135         (GenerateImplementation):
4136