[BlackBerry] Enable VIDEO_TRACK
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2012-09-17  Rob Buis  <rbuis@rim.com>
2
3         [BlackBerry] Enable VIDEO_TRACK
4         https://bugs.webkit.org/show_bug.cgi?id=96949
5
6         Reviewed by Antonio Gomes.
7
8         Turn on runtime feature for VIDEO_TRACK.
9
10         * bindings/generic/RuntimeEnabledFeatures.cpp:
11         (WebCore):
12
13 2012-09-17  Adam Barth  <abarth@webkit.org>
14
15         Measure the usage of window.webkitIndexedDB so we can measure the transition to webkit.indexedDB
16         https://bugs.webkit.org/show_bug.cgi?id=96943
17
18         Reviewed by Ojan Vafai.
19
20         We don't yet support window.indexedDB but we will once
21         https://bugs.webkit.org/show_bug.cgi?id=96548 lands. This metric will
22         help us measure the transition from the prefixed to the unprefixed API.
23
24         * Modules/indexeddb/DOMWindowIndexedDatabase.idl:
25         * page/FeatureObserver.h:
26
27 2012-09-17  Adam Barth  <abarth@webkit.org>
28
29         Measure usage of the legacy WebKitBlobBuilder API in the hopes of being able to remove it
30         https://bugs.webkit.org/show_bug.cgi?id=96939
31
32         Reviewed by Ojan Vafai.
33
34         In the course of standardization, the BlobBuilder API was removed in
35         favor of just using the Blob constructor. This patch adds some
36         measurement to see how often this legacy API is used. If the API is not
37         used very much, we might be able to remove it.
38
39         * fileapi/WebKitBlobBuilder.cpp:
40         (WebCore::WebKitBlobBuilder::create):
41         * page/FeatureObserver.h:
42
43 2012-09-17  Joshua Bell  <jsbell@chromium.org>
44
45         IndexedDB: Result of IDBFactory.deleteDatabase() should be undefined, not null
46         https://bugs.webkit.org/show_bug.cgi?id=96538
47
48         Reviewed by Tony Chang.
49
50         Trivial implementation change to match the spec.
51
52         Tests: storage/indexeddb/factory-deletedatabase-expected.html
53                storage/indexeddb/intversion-long-queue-expected.html
54
55         * Modules/indexeddb/IDBDatabaseBackendImpl.cpp:
56         (WebCore::IDBDatabaseBackendImpl::deleteDatabase):
57
58 2012-09-17  Rick Byers  <rbyers@chromium.org>
59
60         Allow gesture events to set active/hover state.
61         https://bugs.webkit.org/show_bug.cgi?id=96060
62
63         Reviewed by Antonio Gomes.
64
65         Adds GestureTapDownCancel as a new PlatformGestureEvent type.  On ports
66         that support gesture events, use GestureTapDown to trigger active/hover
67         states, and GestureTap/GestureTapDownCancel to clear them.  This is
68         superior to using touch events for a number of reasons:
69           1) some ports (chromium) avoid sending touch events unless absolutely
70           necessary, since they hurt scroll performance by blocking threaded
71           scrolling.
72           2) with touch, and element really shouldn't be 'active' when the user
73           happens to be touching it while scrolling.  In that case they aren't
74           'manipulating the element', they're manipulating the page or div that
75           is scrolling.
76           3) similarly, there may be other gestures that involve touching the
77           element which aren't really about manipulating that element (eg.
78           pinch to zoom).
79
80         Test: fast/events/touch/gesture/gesture-tap-active-state.html
81         Test: fast/events/touch/gesture/gesture-tap-active-state-iframe.html
82         * dom/GestureEvent.cpp:
83         (WebCore::GestureEvent::create):
84         * page/EventHandler.cpp:
85         (WebCore::EventHandler::handleGestureEvent):
86         (WebCore::EventHandler::handleTouchEvent):
87         * platform/PlatformEvent.h:
88
89 2012-09-17  Alec Flett  <alecflett@chromium.org>
90
91         IndexedDB: Use ScriptValue instead of SerializedScriptValue for get/openCursor
92         https://bugs.webkit.org/show_bug.cgi?id=95409
93
94         Reviewed by Kentaro Hara.
95
96         This reduces a bunch of serialization/deserialization when writing
97         to objectstores with indexes.
98
99         No new tests, as this covers core functionality of IndexedDB, and
100         almost every test would fail. Some likely tests that would fail
101         fundamentally include:
102
103         storage/indexeddb/objectstore-basics.html
104         storage/indexeddb/cursor-basics.html
105         storage/indexeddb/index-basics.html
106
107         * Modules/indexeddb/IDBAny.cpp:
108         (WebCore::IDBAny::scriptValue):
109         (WebCore::IDBAny::integer):
110         (WebCore):
111         (WebCore::IDBAny::set):
112         * Modules/indexeddb/IDBAny.h:
113         (WebCore):
114         (IDBAny):
115         (WebCore::IDBAny::create):
116         * Modules/indexeddb/IDBCursor.cpp:
117         (WebCore::IDBCursor::setValueReady):
118         * Modules/indexeddb/IDBCursor.h:
119         (WebCore):
120         (IDBCursor):
121         * Modules/indexeddb/IDBDatabase.cpp:
122         (WebCore::IDBDatabase::version):
123         * Modules/indexeddb/IDBObjectStore.cpp:
124         (WebCore):
125         * Modules/indexeddb/IDBRequest.cpp:
126         (WebCore::IDBRequest::setResultCursor):
127         (WebCore::IDBRequest::onSuccess):
128         (WebCore):
129         (WebCore::IDBRequest::onSuccessInternal):
130         (WebCore::IDBRequest::dispatchEvent):
131         * Modules/indexeddb/IDBRequest.h:
132         (IDBRequest):
133         * Modules/indexeddb/IDBTransactionCallbacks.h:
134         * bindings/v8/IDBBindingUtilities.cpp:
135         (WebCore::deserializeIDBValue):
136         (WebCore::injectIDBKeyIntoScriptValue):
137         * bindings/v8/IDBBindingUtilities.h:
138         (WebCore):
139         * bindings/v8/custom/V8IDBAnyCustom.cpp:
140         (WebCore::toV8):
141
142 2012-09-17  Adam Barth  <abarth@webkit.org>
143
144         We should make collecting metrics easier by adding an IDL attribute
145         https://bugs.webkit.org/show_bug.cgi?id=96837
146
147         Reviewed by Kentaro Hara.
148
149         Currently it is too hard to set up a good measurement experiment to see
150         whether we can safely remove a feature (including vendor-prefixed
151         features). This patch introduces the [V8MeasureAs] IDL attribute to make
152         that process easier.
153
154         When you add the [V8MeasureAs] IDL property to an API, we'll count what
155         fraction of Page objects used that API.
156
157         * Modules/notifications/DOMWindowNotifications.idl:
158         * bindings/scripts/CodeGeneratorV8.pm:
159         (GenerateFeatureObservation):
160         (GenerateNormalAttrGetter):
161         (GenerateReplaceableAttrSetter):
162         (GenerateNormalAttrSetter):
163         (GenerateOverloadedFunctionCallback):
164         (GenerateFunctionCallback):
165         (GenerateConstructorCallback):
166         (GenerateNamedConstructorCallback):
167         * bindings/scripts/IDLAttributes.txt:
168         * bindings/scripts/test/TestObj.idl:
169         * bindings/scripts/test/V8/V8TestObj.cpp:
170         (WebCore::TestObjV8Internal::testObjAttrAttrGetter):
171         (WebCore::TestObjV8Internal::testObjAttrAttrSetter):
172         (WebCore::TestObjV8Internal::objMethodCallback):
173         (WebCore):
174         * page/Page.h:
175         (WebCore::Page::featureObserver):
176         (Page):
177
178 2012-09-17  Bear Travis  <betravis@adobe.com>
179
180         [CSS Exclusions] Enable shape-inside for percentage lengths based on logical height
181         https://bugs.webkit.org/show_bug.cgi?id=93547
182
183         Reviewed by Levi Weintraub.
184
185         Shape-inside needs to be passed the logical size to use when computing percentage
186         based coordinates. The CSS Regions-specific method computeInitialRegionRangeForBlock
187         has been generalized to updateRegionsAndExclusionsLogicalSize. This method takes
188         the pre-child-layout logical width and height, and uses them to compute the logical
189         width and height that regions and exclusions should use for layout. Regions use a
190         block's maximum possible logical height to compute a region's maximum extent.
191         Exclusions use a block's fixed logical width and height, or 0 if one does not exist,
192         to resolve percentage-based shape lengths. The default logical size used for resolving
193         percentage based coordinates is tested in shape-inside-percentage-auto.html.
194
195         Test: fast/exclusions/shape-inside/shape-inside-percentage.html
196
197         * rendering/RenderBlock.cpp:
198         (WebCore::RenderBlock::updateRegionsAndExclusionsLogicalSize): Calculates the logical
199         height regions and exclusions should use, and updates their layout sizes through
200         computeExclusionShapeSize and computeRegionRangeForBlock.
201         (WebCore):
202         (WebCore::RenderBlock::computeExclusionShapeSize): Pass the appropriate logical size
203         to exclusion shapes so they can resolve percentage based coordinates.
204         (WebCore::RenderBlock::layoutBlock): Call the new updateRegionsAndExclusionsLogicalSize
205         method.
206         * rendering/RenderBlock.h:
207         (RenderBlock):
208         * rendering/RenderBox.cpp:
209         (WebCore::percentageLogicalHeightIsResolvable): Determine if percentage lengths
210         based on logical height can be resolved.
211         (WebCore):
212         (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): Added declaration.
213         * rendering/RenderBox.h:
214         (RenderBox):
215         * rendering/RenderDeprecatedFlexibleBox.cpp:
216         (WebCore::RenderDeprecatedFlexibleBox::layoutBlock): Calling
217         updateRegionsAndExclusionsLogicalSize rather than computeInitialRegionRangeForBlock.
218         * rendering/RenderFlexibleBox.cpp:
219         (WebCore::RenderFlexibleBox::layoutBlock): Ditto.
220         * rendering/RenderGrid.cpp:
221         (WebCore::RenderGrid::layoutBlock): Ditto.
222
223 2012-09-17  Vangelis Kokkevis  <vangelis@chromium.org>
224
225         [chromium] Add gpu_test trace events tracking the creation of a DrawingBuffer
226         and Canvas2DLayerBridge. They will be used by browser tests to verify the
227         existence of WebGL and accelerated canvas.
228         https://bugs.webkit.org/show_bug.cgi?id=96871
229
230         Reviewed by James Robinson.
231
232         * platform/graphics/chromium/Canvas2DLayerBridge.cpp:
233         (WebCore::Canvas2DLayerBridge::Canvas2DLayerBridge):
234         * platform/graphics/chromium/DrawingBufferChromium.cpp:
235         (WebCore::DrawingBuffer::DrawingBuffer):
236
237 2012-09-17  Bo Liu  <boliu@chromium.org>
238
239         Fix LoadImagesAutomatically cache behavior
240         https://bugs.webkit.org/show_bug.cgi?id=96829
241
242         Reviewed by Adam Barth.
243
244         I broke the caching behavior of LoadImagesAutomatically in
245         http://trac.webkit.org/changeset/128645
246
247         This restores the original behavior that AutoLoadImage does not block
248         loads from memory cache.
249
250         Test: fast/loader/display-image-unset-allows-cached-image-load.html
251
252         * loader/cache/CachedResourceLoader.cpp:
253         (WebCore::CachedResourceLoader::determineRevalidationPolicy):
254         (WebCore::CachedResourceLoader::clientAllowsImage):
255         (WebCore::CachedResourceLoader::shouldDeferImageLoad):
256         * loader/cache/CachedResourceLoader.h:
257         (CachedResourceLoader):
258
259 2012-09-17  Andrei Poenaru  <poenaru@adobe.com>
260
261         Web Inspector: Display Named Flows in the Tabbed Pane of the "CSS Named Flows" Drawer
262         https://bugs.webkit.org/show_bug.cgi?id=96733
263
264         Reviewed by Alexander Pavlov.
265
266         Added functionality to the Tabbed Pane from the CSS Named Flows Drawer.
267
268         * English.lproj/localizedStrings.js:
269         * WebCore.gypi:
270         * WebCore.vcproj/WebCore.vcproj:
271         * inspector/compile-front-end.py:
272         * inspector/front-end/CSSNamedFlowCollectionsView.js:
273         (WebInspector.CSSNamedFlowCollectionsView.prototype._appendNamedFlow):
274         (WebInspector.CSSNamedFlowCollectionsView.prototype._removeNamedFlow):
275         (WebInspector.CSSNamedFlowCollectionsView.prototype._updateNamedFlow):
276         (WebInspector.CSSNamedFlowCollectionsView.prototype._showNamedFlow):
277         (WebInspector.CSSNamedFlowCollectionsView.prototype._selectNamedFlowInSidebar):
278         (WebInspector.CSSNamedFlowCollectionsView.prototype._selectNamedFlowTab):
279         (WebInspector.CSSNamedFlowCollectionsView.prototype._tabSelected):
280         (WebInspector.CSSNamedFlowCollectionsView.prototype._tabClosed):
281         (WebInspector.CSSNamedFlowCollectionsView.prototype.wasShown):
282         (WebInspector.CSSNamedFlowCollectionsView.prototype.willHide):
283         (WebInspector.FlowTreeElement):
284         (WebInspector.FlowTreeElement.prototype.setOverset):
285         * inspector/front-end/CSSNamedFlowView.js: Added.
286         (WebInspector.CSSNamedFlowView):
287         (WebInspector.CSSNamedFlowView.prototype._createFlowTreeOutline):
288         (WebInspector.CSSNamedFlowView.prototype._insertContentNode):
289         (WebInspector.CSSNamedFlowView.prototype._insertRegion):
290         (WebInspector.CSSNamedFlowView.prototype.get flow):
291         (WebInspector.CSSNamedFlowView.prototype.set flow):
292         (WebInspector.CSSNamedFlowView.prototype._updateRegionOverset):
293         (WebInspector.CSSNamedFlowView.prototype._mergeContentNodes):
294         (WebInspector.CSSNamedFlowView.prototype._mergeRegions):
295         (WebInspector.CSSNamedFlowView.prototype._update):
296         * inspector/front-end/ElementsPanel.js:
297         * inspector/front-end/Images/regionEmpty.png: Added.
298         * inspector/front-end/Images/regionFit.png: Added.
299         * inspector/front-end/Images/regionOverset.png: Added.
300         * inspector/front-end/WebKit.qrc:
301         * inspector/front-end/cssNamedFlows.css:
302         (.css-named-flow-collections-view .split-view-sidebar-left .named-flow-overflow::before, .css-named-flow-collections-view .region-empty:before, .css-named-flow-collections-view .region-fit::before, .css-named-flow-collections-view .region-overset::before):
303         (.css-named-flow-collections-view .split-view-sidebar-left .named-flow-overflow::before):
304         (.css-named-flow-collections-view .region-empty::before):
305         (.css-named-flow-collections-view .region-fit::before):
306         (.css-named-flow-collections-view .region-overset::before):
307         (.css-named-flow-collections-view .split-view-contents .named-flow-element):
308
309 2012-09-17  Zan Dobersek  <zandobersek@gmail.com>
310
311         [Gtk] Remove configuration options for stable features that are currently enabled
312         https://bugs.webkit.org/show_bug.cgi?id=96621
313
314         Reviewed by Martin Robinson.
315
316         Remove Automake conditional checking for features that are being removed in
317         configure.ac. Unstable features that don't introduce dependencies are now
318         disabled if necessary by being listed in the unstable feature defines overriding
319         variable.
320
321         No new tests - no new functionality.
322
323         * GNUmakefile.am:
324         * GNUmakefile.features.am:
325         * bindings/gobject/GNUmakefile.am:
326
327 2012-09-17  Lauro Neto  <lauro.neto@openbossa.org>
328
329         [Qt] Cleanup/refactor the user agent detection code
330         https://bugs.webkit.org/show_bug.cgi?id=96822
331
332         Unreviewed build fix.
333
334         Build fixes for Windows and Mac OS builds.
335
336         * platform/qt/UserAgentQt.cpp:
337         (WebCore::UserAgentQt::standardUserAgent):
338
339             QLatin1String doesn't have a default contructor. Replaced #ifdef with #if.
340
341 2012-09-17  Lauro Neto  <lauro.neto@openbossa.org>
342
343         Updates to the useragent patch
344
345         [Qt] Cleanup/refactor the user agent detection code
346         https://bugs.webkit.org/show_bug.cgi?id=96822
347
348         Reviewed by Simon Hausmann.
349
350         Replaced Q_WS_*/Q_OS_* with WTF OS/CPU detection macros.
351         Cleanup the check for unsupported OS.
352         Replaced QString.arg() usage with simple string concatenation.
353
354         * platform/qt/UserAgentQt.cpp:
355         (WebCore::UserAgentQt::standardUserAgent):
356
357 2012-09-17  Sheriff Bot  <webkit.review.bot@gmail.com>
358
359         Unreviewed, rolling out r128759.
360         http://trac.webkit.org/changeset/128759
361         https://bugs.webkit.org/show_bug.cgi?id=96929
362
363         New assertion hit on multiple platforms (Requested by carewolf
364         on #webkit).
365
366         * dom/Document.cpp:
367         (WebCore::Document::updateHoverActiveState):
368
369 2012-09-17  Ilya Tikhonovsky  <loislo@chromium.org>
370
371         Web Inspector: NMI: now when we can detect instrumented classes we can
372         remove addInstrumentedMember and use addMember for everything.
373         https://bugs.webkit.org/show_bug.cgi?id=96913
374
375         Reviewed by Yury Semikhatsky.
376
377         * bindings/v8/DOMDataStore.cpp:
378         (WebCore::DOMDataStore::reportMemoryUsage):
379         * bindings/v8/IntrusiveDOMWrapperMap.h:
380         * bindings/v8/V8PerIsolateData.cpp:
381         (WebCore::V8PerIsolateData::reportMemoryUsage):
382         * css/CSSBorderImageSliceValue.cpp:
383         (WebCore::CSSBorderImageSliceValue::reportDescendantMemoryUsage):
384         * css/CSSCalculationValue.cpp:
385         * css/CSSCanvasValue.cpp:
386         (WebCore::CSSCanvasValue::reportDescendantMemoryUsage):
387         * css/CSSCharsetRule.cpp:
388         (WebCore::CSSCharsetRule::reportDescendantMemoryUsage):
389         * css/CSSComputedStyleDeclaration.cpp:
390         (WebCore::CSSComputedStyleDeclaration::reportMemoryUsage):
391         * css/CSSCrossfadeValue.cpp:
392         (WebCore::CSSCrossfadeValue::reportDescendantMemoryUsage):
393         * css/CSSFontFaceRule.cpp:
394         (WebCore::CSSFontFaceRule::reportDescendantMemoryUsage):
395         * css/CSSFontFaceSrcValue.cpp:
396         (WebCore::CSSFontFaceSrcValue::reportDescendantMemoryUsage):
397         * css/CSSFunctionValue.cpp:
398         (WebCore::CSSFunctionValue::reportDescendantMemoryUsage):
399         * css/CSSGradientValue.cpp:
400         (WebCore::CSSGradientColorStop::reportMemoryUsage):
401         (WebCore::CSSGradientValue::reportBaseClassMemoryUsage):
402         (WebCore::CSSLinearGradientValue::reportDescendantMemoryUsage):
403         (WebCore::CSSRadialGradientValue::reportDescendantMemoryUsage):
404         * css/CSSImageSetValue.cpp:
405         (WebCore::CSSImageSetValue::ImageWithScale::reportMemoryUsage):
406         * css/CSSImageValue.cpp:
407         (WebCore::CSSImageValue::reportDescendantMemoryUsage):
408         * css/CSSImportRule.cpp:
409         (WebCore::CSSImportRule::reportDescendantMemoryUsage):
410         * css/CSSMediaRule.cpp:
411         (WebCore::CSSMediaRule::reportDescendantMemoryUsage):
412         * css/CSSPageRule.cpp:
413         (WebCore::CSSPageRule::reportDescendantMemoryUsage):
414         * css/CSSPrimitiveValue.cpp:
415         (WebCore::CSSPrimitiveValue::reportDescendantMemoryUsage):
416         * css/CSSProperty.cpp:
417         (WebCore::CSSProperty::reportMemoryUsage):
418         * css/CSSReflectValue.cpp:
419         (WebCore::CSSReflectValue::reportDescendantMemoryUsage):
420         * css/CSSRule.cpp:
421         (WebCore::CSSRule::reportBaseClassMemoryUsage):
422         * css/CSSRuleList.h:
423         * css/CSSStyleRule.cpp:
424         (WebCore::CSSStyleRule::reportDescendantMemoryUsage):
425         * css/CSSStyleSheet.cpp:
426         (WebCore::CSSStyleSheet::reportMemoryUsage):
427         * css/CSSValue.cpp:
428         (WebCore::TextCloneCSSValue::reportDescendantMemoryUsage):
429         * css/CSSVariableValue.h:
430         (WebCore::CSSVariableValue::reportDescendantMemoryUsage):
431         * css/FontFeatureValue.cpp:
432         (WebCore::FontFeatureValue::reportDescendantMemoryUsage):
433         * css/FontValue.cpp:
434         (WebCore::FontValue::reportDescendantMemoryUsage):
435         * css/MediaList.cpp:
436         (WebCore::MediaList::reportMemoryUsage):
437         * css/MediaQuery.cpp:
438         (WebCore::MediaQuery::reportMemoryUsage):
439         * css/MediaQueryExp.cpp:
440         (WebCore::MediaQueryExp::reportMemoryUsage):
441         * css/PropertySetCSSStyleDeclaration.cpp:
442         (WebCore::PropertySetCSSStyleDeclaration::reportMemoryUsage):
443         (WebCore::StyleRuleCSSStyleDeclaration::reportMemoryUsage):
444         (WebCore::InlineCSSStyleDeclaration::reportMemoryUsage):
445         * css/ShadowValue.cpp:
446         (WebCore::ShadowValue::reportDescendantMemoryUsage):
447         * css/StylePropertySet.cpp:
448         (WebCore::StylePropertySet::reportMemoryUsage):
449         * css/StyleResolver.cpp:
450         (WebCore::StyleResolver::collectMatchingRulesForList):
451         * css/StyleRule.cpp:
452         (WebCore::StyleRule::reportDescendantMemoryUsage):
453         (WebCore::StyleRulePage::reportDescendantMemoryUsage):
454         (WebCore::StyleRuleFontFace::reportDescendantMemoryUsage):
455         (WebCore::StyleRuleMedia::reportDescendantMemoryUsage):
456         (WebCore::StyleRuleRegion::reportDescendantMemoryUsage):
457         * css/StyleRuleImport.cpp:
458         (WebCore::StyleRuleImport::reportDescendantMemoryUsage):
459         * css/StyleSheetContents.cpp:
460         (WebCore::StyleSheetContents::reportMemoryUsage):
461         * css/WebKitCSSKeyframeRule.cpp:
462         (WebCore::StyleKeyframe::reportMemoryUsage):
463         (WebCore::WebKitCSSKeyframeRule::reportDescendantMemoryUsage):
464         * css/WebKitCSSKeyframesRule.cpp:
465         (WebCore::StyleRuleKeyframes::reportDescendantMemoryUsage):
466         (WebCore::WebKitCSSKeyframesRule::reportDescendantMemoryUsage):
467         * css/WebKitCSSRegionRule.cpp:
468         (WebCore::WebKitCSSRegionRule::reportDescendantMemoryUsage):
469         * css/WebKitCSSSVGDocumentValue.cpp:
470         (WebCore::WebKitCSSSVGDocumentValue::reportDescendantMemoryUsage):
471         * css/WebKitCSSShaderValue.cpp:
472         (WebCore::WebKitCSSShaderValue::reportDescendantMemoryUsage):
473         * dom/Attribute.h:
474         (WebCore::Attribute::reportMemoryUsage):
475         * dom/CharacterData.cpp:
476         (WebCore::CharacterData::reportMemoryUsage):
477         * dom/ContainerNode.h:
478         (WebCore::ContainerNode::reportMemoryUsage):
479         * dom/Document.cpp:
480         (WebCore::Document::reportMemoryUsage):
481         * dom/Element.h:
482         (WebCore::Element::reportMemoryUsage):
483         * dom/ElementAttributeData.cpp:
484         (WebCore::ElementAttributeData::reportMemoryUsage):
485         * dom/Event.cpp:
486         (WebCore::Event::reportMemoryUsage):
487         * dom/Node.cpp:
488         (WebCore::Node::reportMemoryUsage):
489         * dom/QualifiedName.cpp:
490         (WebCore::QualifiedName::reportMemoryUsage):
491         (WebCore::QualifiedName::QualifiedNameImpl::reportMemoryUsage):
492         * html/HTMLImageElement.cpp:
493         (WebCore::HTMLImageElement::reportMemoryUsage):
494         * loader/DocumentLoader.cpp:
495         (WebCore::DocumentLoader::reportMemoryUsage):
496         * loader/FrameLoader.cpp:
497         (WebCore::FrameLoader::reportMemoryUsage):
498         * loader/MainResourceLoader.cpp:
499         (WebCore::MainResourceLoader::reportMemoryUsage):
500         * loader/ResourceLoader.cpp:
501         (WebCore::ResourceLoader::reportMemoryUsage):
502         * loader/SubresourceLoader.cpp:
503         (WebCore::SubresourceLoader::reportMemoryUsage):
504         * loader/SubstituteData.cpp:
505         (WebCore::SubstituteData::reportMemoryUsage):
506         * loader/cache/CachedCSSStyleSheet.cpp:
507         (WebCore::CachedCSSStyleSheet::reportMemoryUsage):
508         * loader/cache/CachedFont.cpp:
509         (WebCore::CachedFont::reportMemoryUsage):
510         * loader/cache/CachedImage.cpp:
511         (WebCore::CachedImage::reportMemoryUsage):
512         * loader/cache/CachedResource.cpp:
513         (WebCore::CachedResource::reportMemoryUsage):
514         * loader/cache/CachedResourceHandle.cpp:
515         (WebCore::CachedResourceHandleBase::reportMemoryUsage):
516         * loader/cache/CachedResourceLoader.cpp:
517         (WebCore::CachedResourceLoader::reportMemoryUsage):
518         * loader/cache/CachedSVGDocument.cpp:
519         (WebCore::CachedSVGDocument::reportMemoryUsage):
520         * loader/cache/CachedScript.cpp:
521         (WebCore::CachedScript::reportMemoryUsage):
522         * loader/cache/CachedShader.cpp:
523         (WebCore::CachedShader::reportMemoryUsage):
524         * loader/cache/CachedXSLStyleSheet.cpp:
525         (WebCore::CachedXSLStyleSheet::reportMemoryUsage):
526         * loader/cache/MemoryCache.cpp:
527         (WebCore::MemoryCache::reportMemoryUsage):
528         * page/Frame.cpp:
529         (WebCore::Frame::reportMemoryUsage):
530         * platform/KURL.cpp:
531         (WebCore::KURL::reportMemoryUsage):
532         * platform/KURLGoogle.cpp:
533         (WebCore::KURLGooglePrivate::reportMemoryUsage):
534         * platform/KURLWTFURLImpl.h:
535         (WebCore::KURLWTFURLImpl::reportMemoryUsage):
536         * platform/TreeShared.h:
537         (WebCore::TreeShared::reportMemoryUsage):
538         * platform/graphics/CrossfadeGeneratedImage.cpp:
539         (WebCore::CrossfadeGeneratedImage::reportMemoryUsage):
540         * platform/graphics/Image.cpp:
541         (WebCore::Image::reportMemoryUsage):
542         * platform/network/ResourceRequestBase.cpp:
543         (WebCore::ResourceRequestBase::reportMemoryUsage):
544         * platform/network/ResourceResponseBase.cpp:
545         (WebCore::ResourceResponseBase::reportMemoryUsage):
546         * rendering/style/DataRef.h:
547         (WebCore::DataRef::reportMemoryUsage):
548         * rendering/style/RenderStyle.cpp:
549         (WebCore::RenderStyle::reportMemoryUsage):
550         * rendering/style/StyleRareInheritedData.cpp:
551         (WebCore::StyleRareInheritedData::reportMemoryUsage):
552         * rendering/style/StyleRareNonInheritedData.cpp:
553         (WebCore::StyleRareNonInheritedData::reportMemoryUsage):
554         * svg/SVGPaint.cpp:
555         (WebCore::SVGPaint::reportDescendantMemoryUsage):
556         * svg/graphics/SVGImage.cpp:
557         (WebCore::SVGImage::reportMemoryUsage):
558
559 2012-09-17  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
560
561         [TouchAdjustment] Adjusted point outside bounds for non-rectilinear targets
562         https://bugs.webkit.org/show_bug.cgi?id=96098
563
564         Reviewed by Antonio Gomes.
565
566         Simplifies how snapTo tries to restrict the adjustment to the touch-area, and 
567         at the same fix it to give better guarantees.
568
569         Test: touchadjustment/rotated-node.html
570
571         * page/TouchAdjustment.cpp:
572         (WebCore::TouchAdjustment::snapTo):
573
574 2012-09-17  Filip Spacek  <fspacek@rim.com>
575
576         [BlackBerry] Use glDeleteProgram to delete OpenGL shader programs.
577         https://bugs.webkit.org/show_bug.cgi?id=96771
578
579         Reviewed by Rob Buis.
580
581         Reviewed internally by Arvid Nilsson.
582
583         * platform/graphics/blackberry/EGLImageLayerWebKitThread.cpp:
584         (WebCore::EGLImageLayerWebKitThread::EGLImageLayerWebKitThread):
585         (WebCore::EGLImageLayerWebKitThread::~EGLImageLayerWebKitThread):
586         (WebCore::EGLImageLayerWebKitThread::deleteFrontBuffer):
587         (WebCore::EGLImageLayerWebKitThread::createShaderIfNeeded):
588         (WebCore::EGLImageLayerWebKitThread::blitToFrontBuffer):
589         * platform/graphics/blackberry/EGLImageLayerWebKitThread.h:
590         (EGLImageLayerWebKitThread):
591
592 2012-09-17  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
593
594         Revert r127457 and following fixes due to several hit-testing regressions
595         https://bugs.webkit.org/show_bug.cgi?id=96830
596
597         Reviewed by Antonio Gomes.
598
599         The revert misssed one related follow-up.
600
601         * dom/Document.cpp:
602         (WebCore::Document::updateHoverActiveState):
603
604 2012-09-17  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
605
606         [TouchAdjustment] Adjusted point outside bounds for non-rectilinear targets
607         https://bugs.webkit.org/show_bug.cgi?id=96098
608
609         Reviewed by Antonio Gomes.
610
611         Simplifies how snapTo tries to restrict the adjustment to the touch-area, and 
612         at the same fix it to give better guarantees.
613
614         Test: touchadjustment/rotated-node.html
615
616         * page/TouchAdjustment.cpp:
617         (WebCore::TouchAdjustment::snapTo):
618
619 2012-09-17  Yury Semikhatsky  <yurys@chromium.org>
620
621         Unreviewed. Fix Mac compilation.
622
623         * bindings/v8/DOMDataStore.h: added missing virtual modifier.
624         (DOMDataStore):
625
626 2012-09-17  Yury Semikhatsky  <yurys@chromium.org>
627
628         Web Inspector: NMI don't double count fields of StaticDOMDataStore
629         https://bugs.webkit.org/show_bug.cgi?id=96911
630
631         Reviewed by Alexander Pavlov.
632
633         Provided two separate memory usage reporting routines for static and
634         scoped DOM data stores.
635
636         * bindings/v8/DOMDataStore.cpp:
637         * bindings/v8/DOMDataStore.h:
638         (DOMDataStore):
639         * bindings/v8/ScopedDOMDataStore.cpp:
640         (WebCore::ScopedDOMDataStore::reportMemoryUsage):
641         (WebCore):
642         * bindings/v8/ScopedDOMDataStore.h:
643         (ScopedDOMDataStore):
644         * bindings/v8/StaticDOMDataStore.cpp:
645         (WebCore::StaticDOMDataStore::reportMemoryUsage):
646         (WebCore):
647         * bindings/v8/StaticDOMDataStore.h:
648         (StaticDOMDataStore):
649
650 2012-09-17  Christophe Dumez  <christophe.dumez@intel.com>
651
652         [EFL] autoscroll-in-textarea.html fails on EFL
653         https://bugs.webkit.org/show_bug.cgi?id=94150
654
655         Reviewed by Kenneth Rohde Christiansen.
656
657         Do not call adjustTextAreaStyle() from RenderThemeEfl::adjustTextAreaStyle().
658         This is consistent with Mac port implementation.
659
660         Calling adjustTextAreaStyle() causes the TextArea in the test to display 6.5
661         rows instead of the 6 that are requested. This causes the test case to fail
662         because the top row that is being displayed when scrolling down is different
663         than the one expected.
664
665         Test: fast/events/autoscroll-in-textarea.html
666
667         * platform/efl/RenderThemeEfl.cpp:
668         (WebCore::RenderThemeEfl::adjustTextAreaStyle):
669
670 2012-09-17  Vsevolod Vlasov  <vsevik@chromium.org>
671
672         Web Inspector: XHR replay fixes: should remove replayed xhr from memory cache, should not assert.
673         https://bugs.webkit.org/show_bug.cgi?id=96904
674
675         Reviewed by Yury Semikhatsky.
676
677         Replayed request is now removed from meory cache before replaying.
678         Request body is now set to 0 when it was not present in original request.
679
680         Test: http/tests/inspector/network/network-xhr-replay.html
681
682         * inspector/InspectorResourceAgent.cpp:
683         (WebCore::InspectorResourceAgent::replayXHR):
684         * xml/XMLHttpRequest.cpp:
685         (WebCore::XMLHttpRequest::sendFromInspector):
686
687 2012-09-17  Alejandro Piñeiro  <apinheiro@igalia.com>
688
689         AX: Regression (r126369) - toggle buttons no longer return accessible titles
690         https://bugs.webkit.org/show_bug.cgi?id=94858
691
692         Reviewed by Chris Fleizach.
693
694         After the addition of the ToggleButtonRole some logic broke because some parts
695         of the code were assuming/waiting for a ButtonRole
696
697         Test: platform/gtk/accessibility/aria-toggle-button-with-title.html
698
699         * accessibility/AccessibilityNodeObject.cpp:
700         (WebCore::AccessibilityNodeObject::isImageButton): using
701         isButton instead of a ButtonRole comparison
702         (WebCore::AccessibilityNodeObject::isPressed): using isButton
703         instead of a ButtonRole comparison
704         (WebCore::AccessibilityNodeObject::actionElement):
705         ToggleButtonRole also contemplated in order to call or not toElement
706         (WebCore::AccessibilityNodeObject::title): ToggleButtonRole also
707         contemplated in order to call or not textUnderElement
708         * accessibility/AccessibilityObject.cpp:
709         (WebCore::AccessibilityObject::actionVerb): buttonAction also
710         assigned to ToggleButtonRole
711         (WebCore::AccessibilityObject::isButton): isButton now returns
712         that an object is a button if it is a ButtonRole, a
713         PopUpButtonRole or a ToggleButtonRole
714         * accessibility/AccessibilityObject.h:
715         (AccessibilityObject): isButton is now implemented on the .c file
716         * accessibility/AccessibilityRenderObject.cpp:
717         (WebCore::AccessibilityRenderObject::actionVerb): ToggleButtonRole
718         also returns a buttonAction
719
720 2012-09-14  Alexander Pavlov  <apavlov@chromium.org>
721
722         Web Inspector: Group selectors to highlight matched selector in the Styles pane of Elements Panel
723         https://bugs.webkit.org/show_bug.cgi?id=96626
724
725         Reviewed by Vsevolod Vlasov.
726
727         Introduced evaluation of element.webkitMatchesSelector() for every part of a selector group (delimited by commas).
728         Non-matching selectors in groups are dimmed. If element styles have changed so that the element matches none of the selectors,
729         the entire group is rendered as matched.
730
731         * inspector/front-end/StylesSidebarPane.js:
732         (WebInspector.StylesSidebarPane.prototype._innerRebuildUpdate.markCallback):
733         (WebInspector.StylesSidebarPane.prototype._innerRebuildUpdate):
734         (WebInspector.StylesSidebarPane.prototype._rebuildStyleRules):
735         (WebInspector.StylePropertiesSection):
736         (WebInspector.StylePropertiesSection.prototype._markMatchedSelectorsInGroup.mycallback):
737         (WebInspector.StylePropertiesSection.prototype._markMatchedSelectorsInGroup.trim):
738         (WebInspector.StylePropertiesSection.prototype._markMatchedSelectorsInGroup.resolvedCallback):
739         (WebInspector.StylePropertiesSection.prototype._markMatchedSelectorsInGroup):
740         (WebInspector.StylePropertiesSection.prototype._markMatchedSelectorsInGroup.matchesCallback):
741         (WebInspector.StylePropertiesSection.prototype.startEditingSelector):
742         (WebInspector.StylePropertiesSection.prototype._moveEditorFromSelector.markCallback):
743         (WebInspector.StylePropertiesSection.prototype._moveEditorFromSelector):
744         (WebInspector.StylePropertiesSection.prototype.editingSelectorCancelled):
745         * inspector/front-end/elementsPanel.css:
746         (.styles-section .selector):
747         (.styles-section .selector-matches):
748
749 2012-09-17  Mike West  <mkwst@chromium.org>
750
751         Don't GC img elements blocked by CSP until error events fire.
752         https://bugs.webkit.org/show_bug.cgi?id=94677
753
754         Reviewed by Jochen Eisinger.
755
756         Currently, the GC checks that no load events are pending for an image
757         element before reclaiming its memory. It's not, however, checking that
758         error events are taken care of. This leads to the potential of firing an
759         event on a DOM element that we've already collected. That's a Bad Thing.
760
761         This patch adjusts the check to catch error events as well as load
762         events, which should ensure that the element isn't collected until it's
763         really ready. As a drive-by, it also changes the name of the check to
764         'hasPendingActivity' from 'hasPendingLoadEvent' for clarity.
765
766         http/tests/security/contentSecurityPolicy/register-bypassing-scheme.html
767         should no longer crash, and the new
768         http/tests/security/contentSecurityPolicy/img-blocked-no-gc-crash.html
769         and fast/events/onerror-img-after-gc.html shouldn't crash either.
770
771         Tests: fast/events/onerror-img-after-gc.html
772                http/tests/security/contentSecurityPolicy/img-blocked-no-gc-crash.html
773
774         * bindings/v8/V8GCController.cpp:
775         (WebCore::calculateGroupId):
776             Switch to using ImageLoader::hasPendingActivity().
777         * html/HTMLImageElement.h:
778         (WebCore::HTMLImageElement::hasPendingActivity):
779             Switch to using ImageLoader::hasPendingActivity().
780         * loader/ImageLoader.h:
781         (WebCore::ImageLoader::hasPendingActivity):
782             Added a check against pending error events in order to ensure that
783             elements aren't garbage collected prematurely. Aslo renamed from
784             ImageLoader::hasPendingLoadEvent for clarity.
785         * svg/SVGImageElement.cpp:
786         (WebCore::SVGImageElement::haveLoadedRequiredResources):
787             Switch to using ImageLoader::hasPendingActivity().
788
789 2012-09-17  Philip Rogers  <pdr@google.com>
790
791         Make SVGPathSegList.appendItem O(1) instead of O(n)
792         https://bugs.webkit.org/show_bug.cgi?id=94048
793
794         Reviewed by Nikolas Zimmermann.
795
796         Paths in SVG can be specified with a String (with the d attribute) or
797         with an SVGPathSegList. In SVGPathElement a single representation is
798         maintained: an SVGPathByteStream. To keep the byte stream synchronized with
799         the d attribute and the PathSegList, this byte stream is
800         rebuilt on every operation. As a result, any modification to the
801         path is an O(n) operation.
802
803         This patch takes advantage of the stream aspect of SVGPathByteStream
804         to make SVGPathSegList.append an O(1) operation instead of O(n).
805         When an SVGPathSeg is appended to an SVGPathSegList, this patch parses
806         the SVGPathSeg and directly appends the resulting bytes to the
807         byte stream.
808
809         To achieve this some plumbing has been added to pass more information
810         about the actual path changes from the SVGPathSegListTearOff to the
811         SVGPathElement: instead of the generic commitChange() this patch adds
812         commitChange(ListModification type). If we decide to change our
813         internal path data structure in the future, this additional commitChange
814         function can be used to pass the information needed to make
815         SVGPathSegList synchronization faster.
816
817         SVG Path Benchmark (http://bl.ocks.org/1296930) showing just the
818         appendItem() time used in building a 5000 segment path (avg of 3 runs):
819         WebKit without patch: 562 ms
820         Firefox 18.01a:       55 ms
821         Opera 12.50 internal: 27 ms
822         WebKit with patch:    7 ms
823
824         Test: perf/svg-path-appenditem.html
825
826             This test proves the claim: SVGPathSegList.appendItem is now O(1).
827             Additional tests that appendItem works are covered with existing tests.
828
829         * svg/SVGPathByteStream.h:
830         (WebCore::SVGPathByteStream::append):
831
832             This additional append method allows an SVGPathByteStream to be
833             appended to another.
834
835         * svg/SVGPathElement.cpp:
836         (WebCore::SVGPathElement::pathSegListChanged):
837
838             By passing the extra ListModification type to pathSegListChanged,
839             SVGPathElement is now able to only synchronize the parts of the byte stream
840             that actually changed. In this patch only append is treated
841             differently but one can imagine other performance improvements this
842             additional information allows.
843
844         * svg/SVGPathElement.h:
845         (SVGPathElement):
846         * svg/SVGPathParser.cpp:
847         (WebCore::SVGPathParser::parsePathDataFromSource):
848
849             During normal SVGPathSegList parsing we enforce that the path start with a moveto
850             command. This function has been expanded to make that optional so that parsing
851             can be performed elsewhere in the path (e.g., in the middle).
852
853         * svg/SVGPathParser.h:
854         (SVGPathParser):
855         * svg/SVGPathSegList.cpp:
856         (WebCore::SVGPathSegList::commitChange):
857         * svg/SVGPathSegList.h:
858         (SVGPathSegList):
859         * svg/SVGPathSegWithContext.h:
860         (WebCore::SVGPathSegWithContext::commitChange):
861         * svg/SVGPathUtilities.cpp:
862         (WebCore::appendSVGPathByteStreamFromSVGPathSeg):
863
864             This function reuses the SVGPathSegList parsing infrastructure
865             to parse an SVGPathSegList with just the single SVGPathSeg that
866             is being appended. The resulting byte stream can then be appended
867             to the result path byte stream.
868
869         (WebCore):
870         * svg/SVGPathUtilities.h:
871         (WebCore):
872         * svg/properties/SVGListProperty.h:
873         (WebCore::SVGListProperty::appendItemValues):
874         (WebCore::SVGListProperty::appendItemValuesAndWrappers):
875         (WebCore::SVGListProperty::commitChange):
876         (SVGListProperty):
877         * svg/properties/SVGPathSegListPropertyTearOff.h:
878         (WebCore::SVGPathSegListPropertyTearOff::commitChange):
879         (SVGPathSegListPropertyTearOff):
880
881 2012-09-16  James Robinson  <jamesr@chromium.org>
882
883         Chromium win build fix - listing a file that doesn't exist is a fatal errors in the msvs gyp generator.
884
885         * WebCore.gypi:
886
887 2012-09-16  Dan Bernstein  <mitz@apple.com>
888
889         REGRESSION (r126763): css1/pseudo/firstline.html fails when using the complex text code path
890         https://bugs.webkit.org/show_bug.cgi?id=96890
891
892         Reviewed by Sam Weinig.
893
894         Test: fast/text/stale-TextLayout-from-first-line.html
895
896         When a first-line style specifies a font, different pieces of the same RenderText can be
897         laid out using different fonts, requiring a differet TextLayout for each piece.
898
899         * rendering/RenderBlock.h:
900         (RenderTextInfo): Added m_font data member.
901         * rendering/RenderBlockLineLayout.cpp:
902         (WebCore::RenderBlock::RenderTextInfo::RenderTextInfo): Added initializer for new data member.
903         (WebCore::RenderBlock::LineBreaker::nextLineBreak): Added code to update the text layout in
904         renderTextInfo if the font has changed.
905
906 2012-09-16  Kalev Lember  <kalevlember@gmail.com>
907
908         [GTK] Missing dllexport causing linking errors on Windows platform
909         https://bugs.webkit.org/show_bug.cgi?id=96888
910
911         Reviewed by Kentaro Hara.
912
913         Define BUILDING_WebCore during the build to properly mark
914         FrameDestructionObserver symbols with __declspec(dllexport) attribute.
915
916         * GNUmakefile.am:
917
918 2012-09-15  Mike West  <mkwst@chromium.org>
919
920         Pause inspector when inline scripts are blocked by Content Security Policy.
921         https://bugs.webkit.org/show_bug.cgi?id=93865
922
923         Reviewed by Pavel Feldman.
924
925         When Content Security Policy blocks an inline script that's been
926         injected after the document is parsed, a fairly unhelpful console
927         warning is generated; it points at line 1, regardless of where the error
928         occurred. This patch adjusts CSP to not only warn on the console, but
929         also to notify the inspector that it should pause execution if the
930         developer has toggled "Break on Exceptions". Developers will have a
931         better chance of tracking down the error, as they'll have a complete
932         call stack to work with.
933
934         Tests: inspector/debugger/debugger-pause-on-blocked-event-handler.html
935                inspector/debugger/debugger-pause-on-blocked-script-injection.html
936                inspector/debugger/debugger-pause-on-blocked-script-url.html
937
938         * English.lproj/localizedStrings.js:
939             Adding localizable string for the new friendly pause message.
940         * inspector/Inspector.json:
941             Add CSPViolation as a recognized reason for pausing execution.
942         * inspector/InspectorDebuggerAgent.cpp:
943         (WebCore::InspectorDebuggerAgent::scriptExecutionBlockedByCSP):
944             Teach the InspectorDebuggerAgent about script blocking. If pause on
945             exceptions is enabled, call 'InspectorDebuggerAgent::breakProgram',
946             and pass in an error object with a description that points to CSP
947             as the culprit.
948         (WebCore):
949         * inspector/InspectorDebuggerAgent.h:
950         (InspectorDebuggerAgent):
951         * inspector/InspectorInstrumentation.cpp:
952         (WebCore):
953         (WebCore::InspectorInstrumentation::scriptExecutionBlockedByCSPImpl):
954             Wire 'InspectorInstrumentation::scriptExecutionBlockedByCSP' to
955             the InspectorDebuggerAgent backend.
956         * inspector/InspectorInstrumentation.h:
957         (InspectorInstrumentation):
958         (WebCore::InspectorInstrumentation::scriptExecutionBlockedByCSP):
959             The public interface that should be kicked whenever CSP blocks
960             script execution.
961         (WebCore):
962         * inspector/front-end/DebuggerModel.js:
963             Add CSPViolation as a recognized reason for pausing execution.
964         * inspector/front-end/ScriptsPanel.js:
965             Add a friendly call stack status message for CSP violations.
966         * page/ContentSecurityPolicy.cpp:
967         (CSPDirectiveList):
968         (WebCore::CSPDirectiveList::checkNonceAndReportViolation):
969             If script is blocked because the nonce doesn't match, report the
970             blocked script to the inspector.
971         (WebCore::CSPDirectiveList::checkInlineAndReportViolation):
972             If inline script is blocked, report the blocked script to the
973             inspector. This requires adding a bool parameter to differentiate
974             blocking inline script from inline style.
975         (WebCore::CSPDirectiveList::allowJavaScriptURLs):
976             Tell 'checkInlineAndReportViolation' that we're dealing with script.
977         (WebCore::CSPDirectiveList::allowInlineEventHandlers):
978             Tell 'checkInlineAndReportViolation' that we're dealing with script.
979         (WebCore::CSPDirectiveList::allowInlineScript):
980             Tell 'checkInlineAndReportViolation' that we're dealing with script.
981         (WebCore::CSPDirectiveList::allowInlineStyle):
982             Tell 'checkInlineAndReportViolation' that we're not dealing with script.
983         (WebCore::ContentSecurityPolicy::reportBlockedScriptExecutionToInspector):
984             Public interface for the various CSP* classes to poke the inspector.
985         (WebCore):
986         * page/ContentSecurityPolicy.h:
987
988 2012-09-15  Florin Malita  <fmalita@chromium.org>
989
990         <use> not working when the SVG doc is embedded as <object> data
991         https://bugs.webkit.org/show_bug.cgi?id=96816
992
993         Reviewed by Dirk Schulze.
994
995         Updated SVGURIReference::isExternalURIReference() to correctly classify fragment-only URIs.
996         Also, since the fragment-only test is cheap, it should be the first thing to try.
997
998         Test: svg/custom/object-data-href.html
999
1000         * svg/SVGURIReference.h:
1001         (WebCore::SVGURIReference::isExternalURIReference):
1002
1003 2012-09-15  Benjamin Poulain  <benjamin@webkit.org>
1004
1005         Fix the build with WTF URL
1006         https://bugs.webkit.org/show_bug.cgi?id=96875
1007
1008         Reviewed by Adam Barth.
1009
1010         Fix reportMemoryUsage, the implementation was only partial.
1011
1012         * WebCore.exp.in: Export two more symbols as needed by API tests.
1013         * platform/KURLWTFURL.cpp:
1014         (WebCore::KURL::string): emptyString() return a reference,
1015         it makes more sense than nullAtom() here.
1016         * platform/KURLWTFURLImpl.h:
1017         (WebCore::KURLWTFURLImpl::reportMemoryUsage):
1018
1019 2012-09-11  Dirk Schulze  <krit@webkit.org>
1020
1021         Add ClipPathOperation for -webkit-clip-path organization
1022         https://bugs.webkit.org/show_bug.cgi?id=95619
1023
1024         Reviewed by Dean Jackson.
1025
1026         This patch adds a new class ClipPathOperation to manage the values of the
1027         -webkit-clip-path property. ClipPathOperation stores a Path object for clipping and is
1028         a preparation for IRI references of the SVG 'clipPath' element.
1029
1030         The structure of ClipPathOperation is simular to FilterOperation.
1031
1032         ClipPathOperation will be extended to support IRI references directly in a second patch.
1033
1034         No new tests. The changes just affect the backend.
1035
1036         * GNUmakefile.list.am: Added new ClipPathOperation class.
1037         * WebCore.gypi: Ditto.
1038         * WebCore.vcproj/WebCore.vcproj: Ditto.
1039         * WebCore.xcodeproj/project.pbxproj: Ditto.
1040         * css/CSSComputedStyleDeclaration.cpp: Use ClipPathOperation instead of BasicShape.
1041         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Ditto.
1042         * css/StyleBuilder.cpp: Ditto.
1043         (WebCore):
1044         (WebCore::ApplyPropertyClipPath::setValue):
1045         (WebCore::ApplyPropertyClipPath::applyValue):
1046         (WebCore::ApplyPropertyClipPath::createHandler):
1047         * rendering/ClipPathOperation.h: Added. New handler for property values (BasicShape, references).
1048         (WebCore):
1049         (ClipPathOperation):
1050         (WebCore::ClipPathOperation::~ClipPathOperation):
1051         (WebCore::ClipPathOperation::operator!=):
1052         (WebCore::ClipPathOperation::getOperationType): Return the operation type.
1053         (WebCore::ClipPathOperation::isSameType): Helper function for =operator.
1054         (WebCore::ClipPathOperation::ClipPathOperation):
1055         (ShapeClipPathOperation): Inheriting class for managing BasicShapes.
1056         (WebCore::ShapeClipPathOperation::create):
1057         (WebCore::ShapeClipPathOperation::basicShape):
1058         (WebCore::ShapeClipPathOperation::windRule):
1059         (WebCore::ShapeClipPathOperation::path):
1060         (WebCore::ShapeClipPathOperation::operator==):
1061         (WebCore::ShapeClipPathOperation::ShapeClipPathOperation):
1062         * rendering/RenderLayer.cpp: Use ClipPathOperation to apply clipping.
1063         (WebCore::RenderLayer::paintLayerContents):
1064         * rendering/style/RenderStyle.h:
1065         * rendering/style/StyleRareNonInheritedData.h:
1066         (StyleRareNonInheritedData):
1067         * rendering/svg/SVGRenderingContext.cpp: Ditto.
1068         (WebCore::SVGRenderingContext::prepareToRenderSVGContent):
1069
1070 2012-09-15  Andreas Kling  <kling@webkit.org>
1071
1072         REGRESSION(r127438): Google Docs to renders text too small.
1073         <http://webkit.org/b/96554>
1074
1075         Reviewed by Antti Koivisto.
1076
1077         Don't remove the inline StylePropertySet from ElementAttributeData in ~StyledElement.
1078         This behavior broke sharing of ElementAttributeData between elements with inline style,
1079         since destroying one element would effectively disable the inline style from all other
1080         elements that shared the same attribute data.
1081
1082         What we actually want in ~StyledElement is to detach from any CSSOM wrapper that may
1083         have been instantiated. Added ElementAttributeData::detachCSSOMWrapperIfNeeded for this
1084         purpose and call that instead.
1085
1086         Test: fast/dom/shared-inline-style-after-node-removal.html
1087
1088         * dom/ElementAttributeData.cpp:
1089         (WebCore::ElementAttributeData::detachCSSOMWrapperIfNeeded):
1090         (WebCore::ElementAttributeData::destroyInlineStyle):
1091         * dom/ElementAttributeData.h:
1092         (ElementAttributeData):
1093         * dom/StyledElement.cpp:
1094         (WebCore::StyledElement::~StyledElement):
1095         (WebCore::StyledElement::styleAttributeChanged):
1096         * dom/StyledElement.h:
1097         (StyledElement):
1098
1099 2012-09-15  Kalev Lember  <kalevlember@gmail.com>
1100
1101         [GTK] Include missing header files in the tarball
1102         https://bugs.webkit.org/show_bug.cgi?id=96860
1103
1104         Reviewed by Kentaro Hara.
1105
1106         Build fix; dist two additional headers that are needed for building on
1107         Windows platform.
1108
1109         * GNUmakefile.list.am:
1110
1111 2012-09-15  Michael Saboff  <msaboff@apple.com>
1112
1113         Add 8 bit handling to SpaceSplitString
1114         https://bugs.webkit.org/show_bug.cgi?id=96823
1115
1116         Reviewed by Sam Weinig.
1117
1118         Added templated functions based on character type to handle 8 and 16 bit string data.
1119
1120         * dom/SpaceSplitString.cpp:
1121         (WebCore::hasNonASCIIOrUpper):
1122         (WebCore::SpaceSplitStringData::createVector):
1123         * dom/SpaceSplitString.h:
1124         (SpaceSplitStringData):
1125
1126 2012-09-15  Dan Bernstein  <mitz@apple.com>
1127
1128         REGRESSION (r125578): The monospace code path in RenderText::widthFromCache disagrees with Font::width on word spacing
1129         https://bugs.webkit.org/show_bug.cgi?id=96869
1130
1131         Reviewed by Eric Seidel.
1132
1133         Test: fast/text/word-space-monospace.html
1134         This also fixes fast/css/word-spacing-characters.html
1135
1136         * rendering/RenderText.cpp:
1137         (WebCore::RenderText::widthFromCache): Made the conditions for adding word spacing match the
1138         ones in WidthIterator.
1139
1140 2012-09-15  Dan Bernstein  <mitz@apple.com>
1141
1142         REGRESSION (r125578): Word spacing not applied to newline and tab characters that are treated as spaces
1143         https://bugs.webkit.org/show_bug.cgi?id=96865
1144
1145         Reviewed by Sam Weinig.
1146
1147         Fixes fast/css/word-space-extra.html.
1148
1149         * platform/graphics/WidthIterator.cpp:
1150         (WebCore::WidthIterator::advanceInternal): Changed back to apply word spacing to all characters
1151         that are treated as spaces, except for tab characters when there are tab stops.
1152         * platform/graphics/mac/ComplexTextController.cpp:
1153         (WebCore::ComplexTextController::adjustGlyphsAndAdvances): Ditto.
1154
1155 2012-09-15  Dan Bernstein  <mitz@apple.com>
1156
1157         REGRESSION (r125578): The Mac complex text code path disagrees with the fast path on word spacing
1158         https://bugs.webkit.org/show_bug.cgi?id=96857
1159
1160         Reviewed by Anders Carlsson.
1161
1162         Fixes the following tests when run with run-webkit-tests --complex-text:
1163         css2.1/20110323/c541-word-sp-001.htm
1164         css2.1/20110323/word-spacing-remove-space-002.htm
1165         css2.1/20110323/word-spacing-remove-space-003.htm
1166         css2.1/20110323/word-spacing-remove-space-004.htm
1167         css2.1/20110323/word-spacing-remove-space-005.htm
1168         css2.1/20110323/word-spacing-remove-space-006.htm
1169
1170         Fixes fast/css/word-spacing-characters-complex-text.html
1171
1172         * platform/graphics/mac/ComplexTextController.cpp:
1173         (WebCore::ComplexTextController::adjustGlyphsAndAdvances): Made the conditions for adding
1174         word spacing match the ones in WidthIterator again.
1175
1176 2012-09-15  Kent Tamura  <tkent@chromium.org>
1177
1178         Unreviewed, rolling out r128669.
1179         http://trac.webkit.org/changeset/128669
1180         https://bugs.webkit.org/show_bug.cgi?id=96637
1181
1182         Broke http/tests/workers/text-encoding.html on Chromium Linux (dbg)
1183
1184         * bindings/v8/DOMData.cpp:
1185         (WebCore::DOMData::getCurrentStore):
1186         * bindings/v8/ScopedPersistent.h:
1187         * bindings/v8/ScriptController.cpp:
1188         (WebCore::ScriptController::resetIsolatedWorlds):
1189         (WebCore::ScriptController::evaluateInIsolatedWorld):
1190         (WebCore::ScriptController::currentWorldContext):
1191         * bindings/v8/V8Binding.cpp:
1192         (WebCore::perContextDataForCurrentWorld):
1193         * bindings/v8/V8DOMWindowShell.cpp:
1194         (WebCore::setIsolatedWorldField):
1195         (WebCore::V8DOMWindowShell::enteredIsolatedWorldContext):
1196         (WebCore::V8DOMWindowShell::destroyIsolatedShell):
1197         (WebCore):
1198         (WebCore::isolatedContextWeakCallback):
1199         (WebCore::V8DOMWindowShell::disposeContext):
1200         (WebCore::V8DOMWindowShell::initializeIfNeeded):
1201         (WebCore::V8DOMWindowShell::setIsolatedWorldSecurityOrigin):
1202         * bindings/v8/V8DOMWindowShell.h:
1203         (V8DOMWindowShell):
1204         (WebCore::V8DOMWindowShell::getEntered):
1205         * bindings/v8/V8DOMWrapper.h:
1206         (WebCore::V8DOMWrapper::getCachedWrapper):
1207         * bindings/v8/WorldContextHandle.cpp:
1208         (WebCore::WorldContextHandle::WorldContextHandle):
1209         * bindings/v8/custom/V8DocumentCustom.cpp:
1210         (WebCore::toV8):
1211         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
1212         (WebCore::toV8):
1213         * bindings/v8/custom/V8SVGDocumentCustom.cpp:
1214         (WebCore::toV8):
1215         * bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:
1216         (WebCore::V8XMLHttpRequest::constructorCallback):
1217
1218 2012-09-14  Sheriff Bot  <webkit.review.bot@gmail.com>
1219
1220         Unreviewed, rolling out r128673.
1221         http://trac.webkit.org/changeset/128673
1222         https://bugs.webkit.org/show_bug.cgi?id=96847
1223
1224         Makes plugins/document-open.html crash (Requested by jamesr_
1225         on #webkit).
1226
1227         * dom/ContainerNode.cpp:
1228         (WebCore):
1229         (WebCore::ContainerNode::insertBeforeCommon):
1230         (WebCore::ContainerNode::replaceChild):
1231         (WebCore::ContainerNode::removeBetween):
1232         (WebCore::ContainerNode::removeChildren):
1233         (WebCore::ContainerNode::appendChild):
1234         (WebCore::ContainerNode::parserAddChild):
1235         (WebCore::dispatchChildInsertionEvents):
1236         (WebCore::dispatchChildRemovalEvents):
1237         * dom/ContainerNode.h:
1238         * dom/ContainerNodeAlgorithms.h:
1239         (WebCore::ChildNodeInsertionNotifier::notifyNodeInsertedIntoTree):
1240         (WebCore::ChildNodeInsertionNotifier::notify):
1241         (WebCore::ChildNodeRemovalNotifier::notifyNodeRemovedFromTree):
1242         * dom/Document.cpp:
1243         (WebCore::Document::dispatchWindowEvent):
1244         (WebCore::Document::dispatchWindowLoadEvent):
1245         * dom/EventDispatcher.cpp:
1246         (WebCore::EventDispatcher::dispatchEvent):
1247         * dom/EventTarget.cpp:
1248         (WebCore):
1249         (WebCore::forbidEventDispatch):
1250         (WebCore::allowEventDispatch):
1251         (WebCore::eventDispatchForbidden):
1252         (WebCore::EventTarget::fireEventListeners):
1253         * dom/EventTarget.h:
1254         (WebCore):
1255         (WebCore::forbidEventDispatch):
1256         (WebCore::allowEventDispatch):
1257         * dom/Node.cpp:
1258         (WebCore::Node::dispatchSubtreeModifiedEvent):
1259         (WebCore::Node::dispatchFocusInEvent):
1260         (WebCore::Node::dispatchFocusOutEvent):
1261         (WebCore::Node::dispatchDOMActivateEvent):
1262         * dom/WebKitNamedFlow.cpp:
1263         (WebCore::WebKitNamedFlow::dispatchRegionLayoutUpdateEvent):
1264         * html/HTMLMediaElement.cpp:
1265         (WebCore::HTMLMediaElement::loadInternal):
1266
1267 2012-09-14  Julien Chaffraix  <jchaffraix@webkit.org>
1268
1269         Revert r127457 and following fixes due to several hit-testing regressions
1270         https://bugs.webkit.org/show_bug.cgi?id=96830
1271
1272         Reviewed by Antonio Gomes.
1273
1274         This change reverts r127457, r127863 and r128505.
1275
1276         * WebCore.exp.in:
1277         * WebCore.order:
1278         * dom/Document.cpp:
1279         (WebCore::Document::nodesFromRect):
1280         * dom/Document.h:
1281         (Document):
1282         * page/EventHandler.cpp:
1283         (WebCore::EventHandler::hitTestResultAtPoint):
1284         * rendering/HitTestRequest.h:
1285         * rendering/HitTestResult.cpp:
1286         (WebCore::HitTestLocation::HitTestLocation):
1287         * rendering/HitTestResult.h:
1288         (HitTestLocation):
1289         * rendering/RenderFrameBase.cpp:
1290         * rendering/RenderFrameBase.h:
1291         (RenderFrameBase):
1292         * rendering/RenderLayer.cpp:
1293         (WebCore::RenderLayer::hitTest):
1294         * testing/Internals.cpp:
1295         (WebCore::Internals::nodesFromRect):
1296         * testing/Internals.h:
1297         (Internals):
1298         * testing/Internals.idl:
1299
1300 2012-09-14  Joshua Bell  <jsbell@chromium.org>
1301
1302         IndexedDB: Calling close() during upgradeneeded handler should fire error at open request
1303         https://bugs.webkit.org/show_bug.cgi?id=96807
1304
1305         Reviewed by Tony Chang.
1306
1307         Per spec, if the database connection is closed before the success event fires, the request
1308         should have an error event of type AbortError fired at it.
1309
1310         Test: storage/indexeddb/intversion-close-in-upgradeneeded.html
1311
1312         * Modules/indexeddb/IDBDatabase.h:
1313         (WebCore::IDBDatabase::isClosePending): Expose this state so an in-flight success can be morphed.
1314         * Modules/indexeddb/IDBDatabaseBackendImpl.cpp:
1315         (WebCore::IDBDatabaseBackendImpl::close): Fire the appropriate error at connections that are mid-opening.
1316         * Modules/indexeddb/IDBOpenDBRequest.cpp:
1317         (WebCore::IDBOpenDBRequest::onSuccess): If the connection was closed before the success is enqueued - 
1318         which can happen in multi-process ports with asynchronous messaging - convert the success to an error.
1319
1320 2012-09-14  Ryosuke Niwa  <rniwa@webkit.org>
1321
1322         Turn forbidEventDispatch and allowEventDispatch into a RAII object
1323         https://bugs.webkit.org/show_bug.cgi?id=96717
1324
1325         Reviewed by Abhishek Arya.
1326
1327         Replaced forbidEventDispatch and allowEventDispatch by AssertNoEventDispatch.
1328
1329         * dom/ContainerNode.cpp:
1330         (WebCore):
1331         (WebCore::ContainerNode::insertBeforeCommon):
1332         (WebCore::ContainerNode::replaceChild):
1333         (WebCore::ContainerNode::removeBetween):
1334         (WebCore::ContainerNode::removeChildren):
1335         (WebCore::ContainerNode::appendChild):
1336         (WebCore::ContainerNode::parserAddChild):
1337         (WebCore::dispatchChildInsertionEvents):
1338         (WebCore::dispatchChildRemovalEvents):
1339         * dom/ContainerNode.h:
1340         (AssertNoEventDispatch):
1341         (WebCore::AssertNoEventDispatch::AssertNoEventDispatch):
1342         (WebCore::AssertNoEventDispatch::~AssertNoEventDispatch):
1343         (WebCore::AssertNoEventDispatch::isEventDispatchForbidden):
1344         (WebCore):
1345         * dom/ContainerNodeAlgorithms.h:
1346         (WebCore::ChildNodeInsertionNotifier::notifyNodeInsertedIntoTree):
1347         (WebCore::ChildNodeInsertionNotifier::notify):
1348         (WebCore::ChildNodeRemovalNotifier::notifyNodeRemovedFromTree):
1349         * dom/Document.cpp:
1350         (WebCore::Document::dispatchWindowEvent):
1351         (WebCore::Document::dispatchWindowLoadEvent):
1352         * dom/EventDispatcher.cpp:
1353         (WebCore::EventDispatcher::dispatchEvent):
1354         * dom/EventTarget.cpp:
1355         (WebCore):
1356         (WebCore::EventTarget::fireEventListeners):
1357         * dom/EventTarget.h:
1358         (WebCore):
1359         * dom/Node.cpp:
1360         (WebCore::Node::dispatchSubtreeModifiedEvent):
1361         (WebCore::Node::dispatchFocusInEvent):
1362         (WebCore::Node::dispatchFocusOutEvent):
1363         (WebCore::Node::dispatchDOMActivateEvent):
1364         * dom/WebKitNamedFlow.cpp:
1365         (WebCore::WebKitNamedFlow::dispatchRegionLayoutUpdateEvent):
1366         * html/HTMLMediaElement.cpp:
1367         (WebCore::HTMLMediaElement::loadInternal):
1368
1369 2012-09-14  Mike West  <mkwst@chromium.org>
1370
1371         JSC should throw a more descriptive exception when blocking 'eval' via CSP.
1372         https://bugs.webkit.org/show_bug.cgi?id=94331
1373
1374         Reviewed by Geoffrey Garen.
1375
1376         Unless explicitly whitelisted, the 'script-src' Content Security Policy
1377         directive blocks 'eval' and 'eval'-like constructs such as
1378         'new Function()'. When 'eval' is encountered in code, an 'EvalError' is
1379         thrown, but the associated message is poor: "Eval is disabled" doesn't
1380         give developers enough information about why their code isn't behaving
1381         as expected.
1382
1383         This patch adds an 'errorMessage' parameter to the JavaScriptCore method
1384         used to disable 'eval'; ContentSecurityPolicy has the opportunity to
1385         pass in a more detailed and descriptive error that contains more context
1386         for the developer.
1387
1388         The new error message is tested by adjusting existing tests; nothing new
1389         is required.
1390
1391         * bindings/js/ScriptController.cpp:
1392         (WebCore::ScriptController::initScript):
1393             Read the error message off the document's ContentSecurityPolicy.
1394         (WebCore::ScriptController::disableEval):
1395         * bindings/js/ScriptController.h:
1396         (ScriptController):
1397             Pipe the error message through to JSGlobalObject when disabling eval
1398         * bindings/js/WorkerScriptController.cpp:
1399         (WebCore::WorkerScriptController::disableEval):
1400         * bindings/js/WorkerScriptController.h:
1401         (WorkerScriptController):
1402             Pipe the error message through to JSGlobalObject when disabling eval
1403         * bindings/v8/ScriptController.cpp:
1404         (WebCore::ScriptController::disableEval):
1405         * bindings/v8/ScriptController.h:
1406         (ScriptController):
1407         * bindings/v8/WorkerScriptController.cpp:
1408         (WebCore::WorkerScriptController::disableEval):
1409         * bindings/v8/WorkerScriptController.h:
1410         (WorkerScriptController):
1411             Placeholder for V8 piping to be built in webk.it/94332.
1412         * dom/Document.cpp:
1413         (WebCore::Document::disableEval):
1414         * dom/Document.h:
1415         (Document):
1416         * dom/ScriptExecutionContext.h:
1417         (ScriptExecutionContext):
1418             Pipe the error message through to the ScriptController when
1419             disabling eval.
1420         * page/ContentSecurityPolicy.cpp:
1421         (WebCore::CSPDirectiveList::evalDisabledErrorMessage):
1422             Accessor for the error message that ought be displayed to developers
1423             when 'eval' used while disabled for a specific directive list.
1424         (WebCore::CSPDirectiveList::setEvalDisabledErrorMessage):
1425             Mutator for the error message that ought be displayed to developers
1426             when 'eval' used while disabled for a specific directive list.
1427         (CSPDirectiveList):
1428         (WebCore::CSPDirectiveList::create):
1429             Upon creation of a CSPDirectiveList, set the error message if the
1430             directive list disables 'eval'.
1431         (WebCore::ContentSecurityPolicy::didReceiveHeader):
1432             Pass the error message into ScriptExecutionContext::disableEval.
1433         (WebCore::ContentSecurityPolicy::evalDisabledErrorMessage):
1434             Public accessor for the policy's error message; walks the list of
1435             directive lists and returns the first error message found.
1436         (WebCore):
1437         * page/ContentSecurityPolicy.h:
1438         * workers/WorkerContext.cpp:
1439         (WebCore::WorkerContext::disableEval):
1440         * workers/WorkerContext.h:
1441         (WorkerContext):
1442             Pipe the error message through to the ScriptController when
1443             disabling eval.
1444
1445 2012-09-14  Dan Carney  <dcarney@google.com>
1446
1447         Remove V8DOMWindowShell::getEntered
1448         https://bugs.webkit.org/show_bug.cgi?id=96637
1449
1450         Reviewed by Adam Barth.
1451
1452         V8DOMWindowShell::getEntered was refactored so that the window shell
1453         no longer has to be kept alive by a v8 context but rather a smaller
1454         object.
1455
1456         No new tests. No change in functionality.
1457
1458         * bindings/v8/DOMData.cpp:
1459         (WebCore::DOMData::getCurrentStore):
1460         * bindings/v8/ScopedPersistent.h:
1461         (WebCore::ScopedPersistent::leakHandle):
1462         (ScopedPersistent):
1463         * bindings/v8/ScriptController.cpp:
1464         (WebCore::ScriptController::resetIsolatedWorlds):
1465         (WebCore::ScriptController::evaluateInIsolatedWorld):
1466         (WebCore::ScriptController::currentWorldContext):
1467         * bindings/v8/V8Binding.cpp:
1468         (WebCore::perContextDataForCurrentWorld):
1469         * bindings/v8/V8DOMWindowShell.cpp:
1470         (WebCore::setIsolatedWorldField):
1471         (WebCore::V8DOMWindowShell::toIsolatedContextData):
1472         (WebCore::isolatedContextWeakCallback):
1473         (WebCore::V8DOMWindowShell::disposeContext):
1474         (WebCore::V8DOMWindowShell::clearIsolatedShell):
1475         (WebCore):
1476         (WebCore::V8DOMWindowShell::initializeIfNeeded):
1477         (WebCore::V8DOMWindowShell::setIsolatedWorldSecurityOrigin):
1478         * bindings/v8/V8DOMWindowShell.h:
1479         (V8DOMWindowShell):
1480         (IsolatedContextData):
1481         (WebCore::V8DOMWindowShell::IsolatedContextData::create):
1482         (WebCore::V8DOMWindowShell::IsolatedContextData::world):
1483         (WebCore::V8DOMWindowShell::IsolatedContextData::perContextData):
1484         (WebCore::V8DOMWindowShell::IsolatedContextData::setSecurityOrigin):
1485         (WebCore::V8DOMWindowShell::IsolatedContextData::securityOrigin):
1486         (WebCore::V8DOMWindowShell::IsolatedContextData::IsolatedContextData):
1487         (WebCore::V8DOMWindowShell::enteredIsolatedContext):
1488         (WebCore::V8DOMWindowShell::enteredIsolatedContextData):
1489         * bindings/v8/V8DOMWrapper.h:
1490         (WebCore::V8DOMWrapper::getCachedWrapper):
1491         * bindings/v8/WorldContextHandle.cpp:
1492         (WebCore::WorldContextHandle::WorldContextHandle):
1493         * bindings/v8/custom/V8DocumentCustom.cpp:
1494         (WebCore::toV8):
1495         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
1496         (WebCore::toV8):
1497         * bindings/v8/custom/V8SVGDocumentCustom.cpp:
1498         (WebCore::toV8):
1499         * bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:
1500         (WebCore::V8XMLHttpRequest::constructorCallback):
1501
1502 2012-09-14  Michelangelo De Simone  <michelangelo@webkit.org>
1503
1504         [CSS Shaders] u_textureSize uniform should be set to the size of the texture.
1505         https://bugs.webkit.org/show_bug.cgi?id=95914
1506
1507         Reviewed by Dean Jackson.
1508
1509         This adds support for the following shader uniform variables:
1510
1511             uniform vec2 u_textureSize
1512             uniform vec4 u_meshBox
1513             uniform vec2 u_tileSize
1514             uniform vec2 u_meshSize
1515
1516         The relevant section of the specification is:
1517         http://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#shader-uniform-variables
1518
1519         Tests: css3/filters/custom/custom-filter-u-mesh-box.html
1520                css3/filters/custom/custom-filter-u-mesh-size.html
1521                css3/filters/custom/custom-filter-u-texture-size.html
1522                css3/filters/custom/custom-filter-u-tile-size.html
1523
1524         * platform/graphics/filters/FECustomFilter.cpp:
1525         (WebCore::FECustomFilter::bindProgramAndBuffers):
1526
1527 2012-09-14  Ojan Vafai  <ojan@chromium.org>
1528
1529         Provide a runtime setting to disable position:sticky
1530         https://bugs.webkit.org/show_bug.cgi?id=96827
1531
1532         Reviewed by James Robinson.
1533
1534         Have it be on by default so that only ports that both enable
1535         the define and don't want it on by default need to do something special.
1536
1537         * css/CSSParser.cpp:
1538         (WebCore::CSSParserContext::CSSParserContext):
1539         (WebCore::operator==):
1540         (WebCore::isValidKeywordPropertyAndValue):
1541         * css/CSSParserMode.h:
1542         (CSSParserContext):
1543         * dom/Document.cpp:
1544         (WebCore::Document::cssStickyPositionEnabled):
1545         (WebCore):
1546         * dom/Document.h:
1547         (Document):
1548         * page/Settings.cpp:
1549         (WebCore::Settings::Settings):
1550         * page/Settings.h:
1551         (Settings):
1552         (WebCore::Settings::setCSSStickyPositionEnabled):
1553         (WebCore::Settings::cssStickyPositionEnabled):
1554
1555 2012-09-14  Simon Fraser  <simon.fraser@apple.com>
1556
1557         Fix builds with CSS_IMAGE_RESOLUTION enabled after r128656.
1558
1559         * css/StyleBuilder.cpp:
1560         (WebCore::ApplyPropertyImageResolution::applyInheritValue):
1561         (WebCore::ApplyPropertyImageResolution::applyInitialValue):
1562
1563 2012-09-14  Adam Barth  <abarth@webkit.org>
1564
1565         Remove webkitPostMessage
1566         https://bugs.webkit.org/show_bug.cgi?id=96577
1567
1568         Reviewed by Ojan Vafai.
1569
1570         webkitPostMessage works the same as postMessage. The spec and the
1571         implementation have been stable for a while. We should no longer be
1572         exposing this vendor-prefixed API.
1573
1574         This patch places the webkitPostMessage API behind an ENABLE flag.
1575         We're going to try removing this API in the Chromium port. If we don't
1576         run into trouble, we'll remove it in all the other ports as well.
1577
1578         This topic has been discussed on webkit-dev in
1579         http://lists.webkit.org/pipermail/webkit-dev/2012-April/020237.html and
1580         http://lists.webkit.org/pipermail/webkit-dev/2012-September/022189.html
1581
1582         This patch introduces the ENABLE(LEGACY_VENDOR_PREFIXES) flag. Rather
1583         than having a flag for each vendor-prefixed API we're experimenting
1584         with removing, we'll add vendor prefixed APIs to this ENABLE when we
1585         want to try removing them. If we succeed, we'll just delete the APIs.
1586         If we fail, we'll remove them from the ENABLE. That way we avoid the
1587         churn of adding and removing many ENABLE macros.
1588
1589         * Configurations/FeatureDefines.xcconfig:
1590         * GNUmakefile.am:
1591         * GNUmakefile.features.am:
1592         * bindings/js/JSDOMWindowCustom.cpp:
1593         (WebCore):
1594         * bindings/js/JSDedicatedWorkerContextCustom.cpp:
1595         (WebCore):
1596         * bindings/js/JSMessagePortCustom.cpp:
1597         (WebCore):
1598         * bindings/js/JSWorkerCustom.cpp:
1599         (WebCore):
1600         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1601         (WebCore):
1602         * bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp:
1603         (WebCore):
1604         * bindings/v8/custom/V8MessagePortCustom.cpp:
1605         (WebCore):
1606         * bindings/v8/custom/V8WorkerCustom.cpp:
1607         (WebCore):
1608         * dom/MessagePort.idl:
1609         * page/DOMWindow.idl:
1610         * workers/DedicatedWorkerContext.idl:
1611         * workers/Worker.idl:
1612
1613 2012-09-14  Simon Fraser  <simon.fraser@apple.com>
1614
1615         REGRESSION: transition doesn’t always override transition-property
1616         https://bugs.webkit.org/show_bug.cgi?id=96658
1617
1618         Reviewed by Dean Jackson.
1619
1620         Setting the animation property on an Animation in CSSToStyleMap::mapAnimationProperty()
1621         is special because we have to call setAnimationMode(Animation::AnimateAll) as well
1622         as setting the property to CSSPropertyInvalid if it's for the initial state
1623         of the transition-property property.
1624         
1625         In order to fix this via StyleBuilder PropertyHandlers, we have to know,
1626         in ApplyPropertyAnimation::applyInitialValue(), which property is getting applied.
1627         This requires passing the CSSPropertyID down through all of the "apply" methods.
1628         
1629         Do some unrelated cleanup in CSSParser::parseTransitionShorthand(); the existing code
1630         was not safe with respect to adding new properties to the shorthand.
1631
1632         Test: transitions/longhand-vs-shorthand-initial.html
1633
1634         * css/CSSParser.cpp:
1635         (WebCore::CSSParser::parseTransitionShorthand):
1636         * css/StyleBuilder.cpp:
1637         (WebCore::ApplyPropertyExpanding::applyInheritValue):
1638         (WebCore::ApplyPropertyExpanding::applyInitialValue):
1639         (WebCore::ApplyPropertyExpanding::applyValue):
1640         (WebCore::ApplyPropertyDefaultBase::applyInheritValue):
1641         (WebCore::ApplyPropertyDefaultBase::applyInitialValue):
1642         (WebCore::ApplyPropertyDefaultBase::applyValue):
1643         (WebCore::ApplyPropertyDefault::applyValue):
1644         (WebCore::ApplyPropertyNumber::applyValue):
1645         (WebCore::ApplyPropertyStyleImage::applyValue):
1646         (WebCore::ApplyPropertyAuto::applyInheritValue):
1647         (WebCore::ApplyPropertyAuto::applyInitialValue):
1648         (WebCore::ApplyPropertyAuto::applyValue):
1649         (WebCore::ApplyPropertyClip::applyInheritValue):
1650         (WebCore::ApplyPropertyClip::applyInitialValue):
1651         (WebCore::ApplyPropertyClip::applyValue):
1652         (WebCore::ApplyPropertyColor::applyInheritValue):
1653         (WebCore::ApplyPropertyColor::applyInitialValue):
1654         (WebCore::ApplyPropertyColor::applyValue):
1655         (WebCore::ApplyPropertyDirection::applyValue):
1656         (WebCore::ApplyPropertyLength::applyValue):
1657         (WebCore::ApplyPropertyString::applyValue):
1658         (WebCore::ApplyPropertyBorderRadius::applyValue):
1659         (WebCore::ApplyPropertyFillLayer::applyInheritValue):
1660         (WebCore::ApplyPropertyFillLayer::applyInitialValue):
1661         (WebCore::ApplyPropertyFillLayer::applyValue):
1662         (WebCore::ApplyPropertyComputeLength::applyValue):
1663         (WebCore::ApplyPropertyFont::applyInheritValue):
1664         (WebCore::ApplyPropertyFont::applyInitialValue):
1665         (WebCore::ApplyPropertyFont::applyValue):
1666         (WebCore::ApplyPropertyFontSize::applyInheritValue):
1667         (WebCore::ApplyPropertyFontSize::applyInitialValue):
1668         (WebCore::ApplyPropertyFontSize::applyValue):
1669         (WebCore::ApplyPropertyFontWeight::applyValue):
1670         (WebCore::ApplyPropertyFontVariantLigatures::applyInheritValue):
1671         (WebCore::ApplyPropertyFontVariantLigatures::applyInitialValue):
1672         (WebCore::ApplyPropertyFontVariantLigatures::applyValue):
1673         (WebCore::ApplyPropertyBorderImage::applyValue):
1674         (WebCore::ApplyPropertyBorderImageModifier::applyInheritValue):
1675         (WebCore::ApplyPropertyBorderImageModifier::applyInitialValue):
1676         (WebCore::ApplyPropertyBorderImageModifier::applyValue):
1677         (WebCore::ApplyPropertyBorderImageSource::applyValue):
1678         (WebCore::ApplyPropertyCounter::emptyFunction):
1679         (WebCore::ApplyPropertyCounter::applyInheritValue):
1680         (WebCore::ApplyPropertyCounter::applyValue):
1681         (WebCore::ApplyPropertyCursor::applyInheritValue):
1682         (WebCore::ApplyPropertyCursor::applyInitialValue):
1683         (WebCore::ApplyPropertyCursor::applyValue):
1684         (WebCore::ApplyPropertyTextAlign::applyValue):
1685         (WebCore::ApplyPropertyTextDecoration::applyValue):
1686         (WebCore::ApplyPropertyLineHeight::applyValue):
1687         (WebCore::ApplyPropertyPageSize::applyInheritValue):
1688         (WebCore::ApplyPropertyPageSize::applyInitialValue):
1689         (WebCore::ApplyPropertyPageSize::applyValue):
1690         (WebCore::ApplyPropertyTextEmphasisStyle::applyInheritValue):
1691         (WebCore::ApplyPropertyTextEmphasisStyle::applyInitialValue):
1692         (WebCore::ApplyPropertyTextEmphasisStyle::applyValue):
1693         (WebCore::ApplyPropertyAnimation::applyInheritValue):
1694         (WebCore::ApplyPropertyAnimation::applyInitialValue): If the property is
1695         CSSPropertyWebkitTransitionProperty, call setAnimationMode(Animation::AnimateAll).
1696         (WebCore::ApplyPropertyAnimation::applyValue):
1697         (WebCore::ApplyPropertyOutlineStyle::applyInheritValue):
1698         (WebCore::ApplyPropertyOutlineStyle::applyInitialValue):
1699         (WebCore::ApplyPropertyOutlineStyle::applyValue):
1700         (WebCore::ApplyPropertyResize::applyValue):
1701         (WebCore::ApplyPropertyVerticalAlign::applyValue):
1702         (WebCore::ApplyPropertyAspectRatio::applyInheritValue):
1703         (WebCore::ApplyPropertyAspectRatio::applyInitialValue):
1704         (WebCore::ApplyPropertyAspectRatio::applyValue):
1705         (WebCore::ApplyPropertyZoom::applyInheritValue):
1706         (WebCore::ApplyPropertyZoom::applyInitialValue):
1707         (WebCore::ApplyPropertyZoom::applyValue):
1708         (WebCore::ApplyPropertyDisplay::applyInheritValue):
1709         (WebCore::ApplyPropertyDisplay::applyInitialValue):
1710         (WebCore::ApplyPropertyDisplay::applyValue):
1711         (WebCore::ApplyPropertyClipPath::applyValue):
1712         (WebCore::ApplyPropertyWrapShape::applyValue):
1713         (WebCore::ApplyPropertyImageResolution::applyInheritValue):
1714         (WebCore::ApplyPropertyImageResolution::applyInitialValue):
1715         (WebCore::ApplyPropertyImageResolution::applyValue):
1716         * css/StyleBuilder.h:
1717         (PropertyHandler):
1718         (WebCore::PropertyHandler::applyInheritValue):
1719         (WebCore::PropertyHandler::applyInitialValue):
1720         (WebCore::PropertyHandler::applyValue):
1721         * css/StyleResolver.cpp:
1722         (WebCore::StyleResolver::collectMatchingRulesForList): Pass in the property ID.
1723
1724 2012-09-14  Chang Shu  <cshu@webkit.org>
1725
1726         Support constructor-type attribute in idls other than DOMWindow.
1727         https://bugs.webkit.org/show_bug.cgi?id=96821
1728
1729         Reviewed by Kentaro Hara.
1730
1731         In CodeGeneratorJS.pm, we should not assume only DOMWindow uses Constructor
1732         attribute. So for other interfaces, we should pass castedThis->globalObject()
1733         instead of castedThis.
1734
1735         Test: bindings/scripts/test/JS/JSTestObj.idl
1736
1737         * bindings/scripts/CodeGeneratorJS.pm:
1738         (GenerateImplementation):
1739         * bindings/scripts/test/JS/JSTestObj.cpp:
1740         (WebCore::jsTestObjConstructorTestSubObj):
1741         (WebCore::jsTestObjConditionalAttr4Constructor):
1742         (WebCore::jsTestObjConditionalAttr5Constructor):
1743         (WebCore::jsTestObjConditionalAttr6Constructor):
1744
1745 2012-09-14  Tom Sepez  <tsepez@chromium.org>
1746
1747         ImageLoader can't be cleared when video element poster attribute removed.
1748         https://bugs.webkit.org/show_bug.cgi?id=96301
1749
1750         Reviewed by Abhishek Arya.
1751
1752         Same problem as in https://bugs.webkit.org/show_bug.cgi?id=90801. We can't
1753         clear the image loader when the src attribute is cleared, because we might be
1754         inside a handler called on top of an image loader event dispatch. Instead we
1755         will rely on the OwnPtr relationship between the Element and the Image Loader
1756         to limit the lifetime of the loader to that of the element.
1757
1758         Test: fast/dom/beforeload/clear-video-poster-in-beforeload-listener.html
1759
1760         * html/HTMLVideoElement.cpp:
1761         (WebCore::HTMLVideoElement::parseAttribute):
1762         Remove permature clearing of m_imageLoader.
1763         * html/HTMLEmbedElement.cpp:
1764         (WebCore::HTMLEmbedElement::parseAttribute):
1765         Remove permature clearing of m_imageLoader.
1766         * html/HTMLObjectElement.cpp:
1767         (WebCore::HTMLObjectElement::parseAttribute):
1768         Remove permature clearing of m_imageLoader.
1769
1770 2012-09-14  Jeffrey Pfau  <jpfau@apple.com>
1771
1772         Allow third-party storage blocking setting to change while a page is loaded
1773         https://bugs.webkit.org/show_bug.cgi?id=95790
1774
1775         Reviewed by Brady Eidson.
1776
1777         Pipe through changes to the storage blocking policy to each document and plugin.
1778
1779         Tests: http/tests/security/storage-blocking-loosened-local-storage.html
1780                http/tests/security/storage-blocking-loosened-plugin.html
1781                http/tests/security/storage-blocking-loosened-private-browsing-plugin.html
1782                http/tests/security/storage-blocking-loosened-shared-worker.html
1783                http/tests/security/storage-blocking-loosened-websql.html
1784                http/tests/security/storage-blocking-strengthened-local-storage.html
1785                http/tests/security/storage-blocking-strengthened-plugin.html
1786                http/tests/security/storage-blocking-strengthened-private-browsing-plugin.html
1787                http/tests/security/storage-blocking-strengthened-shared-worker.html
1788                http/tests/security/storage-blocking-strengthened-websql.html
1789
1790         * WebCore.exp.in:
1791         * dom/Document.cpp: Pipe changes through to the Document's SecurityOrigin.
1792         (WebCore::Document::storageBlockingStateDidChange):
1793         (WebCore):
1794         * dom/Document.h:
1795         (Document):
1796         * page/DOMWindow.cpp: Check to make sure access is allowed before returning a cached storage area.
1797         (WebCore::DOMWindow::sessionStorage):
1798         (WebCore::DOMWindow::localStorage):
1799         * page/Page.cpp:
1800         (WebCore::Page::collectPluginViews): Refactored out into a function.
1801         (WebCore):
1802         (WebCore::Page::storageBlockingStateChanged): Pipe changes through to each PluginView.
1803         (WebCore::Page::privateBrowsingStateChanged):
1804         * page/Page.h:
1805         (Page):
1806         * page/Settings.cpp:
1807         (WebCore::Settings::setStorageBlockingPolicy): Tell Pages about changes to the storage blocking policy.
1808         (WebCore):
1809         * page/Settings.h:
1810         (Settings):
1811         * plugins/PluginViewBase.h:
1812         (WebCore::PluginViewBase::storageBlockingStateChanged):
1813
1814 2012-09-14  Dan Carney  <dcarney@google.com>
1815
1816         Prevent workers from calling back into other worlds
1817         https://bugs.webkit.org/show_bug.cgi?id=96790
1818
1819         Reviewed by Adam Barth.
1820
1821         Added a few sanity checks to ensure callbacks are always using the correct world.
1822
1823         No new tests. No new change in functionality.
1824
1825         * bindings/v8/V8DOMWrapper.cpp:
1826         (WebCore::V8DOMWrapper::getEventListener):
1827         * bindings/v8/V8LazyEventListener.cpp:
1828         (WebCore::V8LazyEventListener::prepareListenerObject):
1829         * bindings/v8/WorldContextHandle.cpp:
1830         (WebCore::WorldContextHandle::WorldContextHandle):
1831         (WebCore::WorldContextHandle::adjustedContext):
1832         * bindings/v8/WorldContextHandle.h:
1833
1834 2012-09-14  Dana Jansens  <danakj@chromium.org>
1835
1836         Minimize collisions when hashing pairs
1837         https://bugs.webkit.org/show_bug.cgi?id=96022
1838
1839         Reviewed by Adrienne Walker.
1840
1841         Use WTF::pairIntHash() to hash pairs of integers.
1842
1843         * dom/Document.cpp:
1844         (WebCore::ImmutableAttributeDataCacheKey::hash):
1845         * dom/StyledElement.cpp:
1846         (WebCore::computePresentationAttributeCacheHash):
1847         * platform/graphics/Gradient.cpp:
1848         (WebCore::Gradient::hash):
1849         * platform/graphics/IntPointHash.h:
1850         (WTF::IntPointHash::hash):
1851         * platform/graphics/IntRectHash.h:
1852         * platform/graphics/IntSizeHash.h:
1853         * platform/graphics/blackberry/LayerTileIndex.h:
1854         * platform/graphics/cg/GraphicsContextCG.cpp:
1855         (WebCore::SubimageCacheHash::hash):
1856
1857 2012-09-14  Rob Buis  <rbuis@rim.com>
1858
1859         [BlackBerry] Use StringBuilder more in BlackBerry RSS classes
1860         https://bugs.webkit.org/show_bug.cgi?id=96820
1861
1862         Reviewed by Antonio Gomes.
1863
1864         Use append/appendLiteral where possible.
1865
1866         * platform/MIMETypeRegistry.cpp:
1867         (WebCore::mimeTypeAssociationMap):
1868         * platform/network/blackberry/rss/RSSAtomParser.cpp:
1869         (WebCore::RSSAtomParser::parseContent):
1870         (WebCore::RSSAtomParser::parseAuthor):
1871         * platform/network/blackberry/rss/RSSGenerator.cpp:
1872         (WebCore::RSSGenerator::generateHtml):
1873         * platform/network/blackberry/rss/RSSParserBase.cpp:
1874         (WebCore::textFromXMLAttr):
1875         (WebCore::textFromXMLNode):
1876
1877 2012-09-14  Alexandru Chiculita  <achicu@adobe.com>
1878
1879         [CSS Shaders] Enable anti-aliasing on the FECustomFilter
1880         https://bugs.webkit.org/show_bug.cgi?id=96668
1881
1882         Reviewed by Dean Jackson.
1883
1884         Added multisample frame buffer for the FECustomFilter. It will try to allocate a multisample framebuffer
1885         with a maximum sample count of 4. At the end it will blit the samples back to the original frame buffer,
1886         so that we can read the pixels back.
1887
1888         This patch uses extensions GL_ANGLE_framebuffer_multisample, GL_ANGLE_framebuffer_blit
1889         and GL_OES_rgb8_rgba8.
1890
1891         No new tests, multisampling is not working in Chromium DRT and has not pixel effect on WebKit Mac.
1892
1893         * platform/graphics/filters/FECustomFilter.cpp:
1894         (WebCore::FECustomFilter::FECustomFilter):
1895         (WebCore::FECustomFilter::deleteRenderBuffers):
1896         (WebCore):
1897         (WebCore::FECustomFilter::deleteMultisampleRenderBuffers):
1898         (WebCore::FECustomFilter::drawFilterMesh):
1899         (WebCore::FECustomFilter::createMultisampleBuffer):
1900         (WebCore::FECustomFilter::resolveMultisampleBuffer):
1901         (WebCore::FECustomFilter::canUseMultisampleBuffers):
1902         (WebCore::FECustomFilter::resizeMultisampleBuffers):
1903         (WebCore::FECustomFilter::resizeContext):
1904         * platform/graphics/filters/FECustomFilter.h:
1905
1906 2012-09-14  Bo Liu  <boliu@chromium.org>
1907
1908         Add in-place reload behavior to ImagesEnabled setting
1909         https://bugs.webkit.org/show_bug.cgi?id=95478
1910
1911         Reviewed by Adam Barth.
1912
1913         Store ImagesEnabled setting in CachedResourceLoader similar to
1914         AutoLoadImages. Move FrameLoaderClient::allowImage to after a
1915         CachedImage has been created and store the cache for reload if it is
1916         blocked.
1917
1918         Make sure when image loads are deferred by either ImagesEnabled or
1919         LoadImagesAutomatically, onload is not called.
1920
1921         Added ImagesEnabled to InternalSettings for layout tests.
1922
1923         Tests: fast/loader/display-image-unset-can-block-image-and-can-reload-in-place.html
1924                fast/loader/images-enabled-unset-can-block-image-and-can-reload-in-place.html
1925
1926         * WebCore.exp.in:
1927         * loader/FrameLoader.cpp:
1928         (WebCore::FrameLoader::didBeginDocument):
1929         * loader/SubresourceLoader.cpp:
1930         (WebCore::SubresourceLoader::willSendRequest):
1931         * loader/cache/CachedImage.cpp:
1932         (WebCore::CachedImage::load):
1933         * loader/cache/CachedImage.h:
1934         * loader/cache/CachedResource.cpp:
1935         (WebCore::CachedResource::didAddClient):
1936         * loader/cache/CachedResource.h:
1937         (WebCore::CachedResource::stillNeedsLoad):
1938         * loader/cache/CachedResourceLoader.cpp:
1939         (WebCore::CachedResourceLoader::CachedResourceLoader):
1940         (WebCore::CachedResourceLoader::requestImage):
1941         (WebCore::CachedResourceLoader::canRequest):
1942         (WebCore::CachedResourceLoader::determineRevalidationPolicy):
1943         (WebCore::CachedResourceLoader::setAutoLoadImages):
1944         (WebCore):
1945         (WebCore::CachedResourceLoader::setImagesEnabled):
1946         (WebCore::CachedResourceLoader::shouldDeferImageLoad):
1947         (WebCore::CachedResourceLoader::reloadImagesIfNotDeferred):
1948         * loader/cache/CachedResourceLoader.h:
1949         (CachedResourceLoader):
1950         (WebCore::CachedResourceLoader::imagesEnabled):
1951         * page/Settings.cpp:
1952         (WebCore::setImageLoadingSettings):
1953         (WebCore::Settings::Settings):
1954         (WebCore::Settings::setLoadsImagesAutomatically):
1955         (WebCore::Settings::imageLoadingSettingsTimerFired):
1956         (WebCore::Settings::setImagesEnabled):
1957         * page/Settings.h:
1958         (Settings):
1959         * testing/InternalSettings.cpp:
1960         (WebCore::InternalSettings::setImagesEnabled):
1961         (WebCore):
1962         * testing/InternalSettings.h:
1963         (InternalSettings):
1964         * testing/InternalSettings.idl:
1965
1966 2012-09-14  Emil A Eklund  <eae@chromium.org>
1967
1968         https://bugs.webkit.org/show_bug.cgi?id=96226
1969         REGRESSION (r128006): Three spatial navigation tests are failing
1970
1971         Reviewed by Ryosuke Niwa.
1972
1973         Fix spatial navigation regression by reverting parts of r128006.
1974         Specifically the change to remove the overridden boundingBox
1975         method in ContainerNode. 
1976
1977         * dom/ContainerNode.cpp:
1978         (WebCore::ContainerNode::getUpperLeftCorner):
1979         (WebCore):
1980         (WebCore::ContainerNode::getLowerRightCorner):
1981         (WebCore::ContainerNode::boundingBox):
1982         * dom/ContainerNode.h:
1983         (ContainerNode):
1984
1985 2012-09-14  James Robinson  <jamesr@chromium.org>
1986
1987         Unreviewed, rolling out r128627.
1988         http://trac.webkit.org/changeset/128627
1989         https://bugs.webkit.org/show_bug.cgi?id=96575
1990
1991         Breaks indexeddb content_browsertests in chromium
1992
1993         * Modules/indexeddb/IDBDatabase.cpp:
1994         (WebCore::IDBDatabase::IDBDatabase):
1995         (WebCore::IDBDatabase::setVersion):
1996         * Modules/indexeddb/IDBDatabase.h:
1997         (IDBDatabase):
1998
1999 2012-09-14  Alexandru Chiculita  <achicu@adobe.com>
2000
2001         [CSS Shaders] Refactor FECustomFilter to make it usable from platform dependent implementations
2002         https://bugs.webkit.org/show_bug.cgi?id=96801
2003
2004         Reviewed by Dean Jackson.
2005
2006         I've refactored the FECustomFilter to allow FECustomFilterSkia.cpp to use the rendering part
2007         from outside.
2008
2009         Also removed the Texture class as it is not available on some platforms.
2010
2011         The changes for Skia will land in a different patch:
2012         https://bugs.webkit.org/show_bug.cgi?id=96579
2013
2014         No new tests, the existing custom filters tests should already cover this.
2015
2016         * platform/graphics/filters/CustomFilterGlobalContext.cpp:
2017         (WebCore::CustomFilterGlobalContext::prepareContextIfNeeded):
2018         * platform/graphics/filters/FECustomFilter.cpp:
2019         (WebCore::FECustomFilter::FECustomFilter):
2020         (WebCore::FECustomFilter::deleteRenderBuffers):
2021         (WebCore::FECustomFilter::drawFilterMesh):
2022         (WebCore):
2023         (WebCore::FECustomFilter::prepareForDrawing):
2024         (WebCore::FECustomFilter::programNeedsInputTexture):
2025         (WebCore::FECustomFilter::applyShader):
2026         (WebCore::FECustomFilter::initializeContext):
2027         (WebCore::FECustomFilter::ensureInputTexture):
2028         (WebCore::FECustomFilter::uploadInputTexture):
2029         (WebCore::FECustomFilter::ensureFrameBuffer):
2030         (WebCore::FECustomFilter::resizeContextIfNeeded):
2031         (WebCore::FECustomFilter::resizeContext):
2032         (WebCore::FECustomFilter::bindProgramAndBuffers):
2033         * platform/graphics/filters/FECustomFilter.h:
2034         (FECustomFilter):
2035
2036 2012-09-14  Alexey Proskuryakov  <ap@apple.com>
2037
2038         REGRESSION(r126717): It made inspector/styles/media-queries.html fail/flakey
2039         https://bugs.webkit.org/show_bug.cgi?id=95070
2040
2041         Roll out r126717, and another change that depends on it.
2042         r126717: Remove parent pointer from StyleSheetContents and StyleRuleImport
2043         r127123: Cache and share parsed imported stylesheets
2044
2045         * css/CSSImportRule.cpp:
2046         * css/CSSImportRule.h:
2047         * css/CSSStyleSheet.cpp:
2048         (WebCore::CSSStyleSheet::willMutateRules):
2049         (WebCore::CSSStyleSheet::reattachChildRuleCSSOMWrappers):
2050         (WebCore::CSSStyleSheet::insertRule):
2051         (WebCore::CSSStyleSheet::ownerDocument):
2052         * css/CSSStyleSheet.h:
2053         (WebCore::CSSStyleSheet::clearOwnerRule):
2054         * css/StyleRuleImport.cpp:
2055         (WebCore::StyleRuleImport::StyleRuleImport):
2056         (WebCore::StyleRuleImport::~StyleRuleImport):
2057         (WebCore::StyleRuleImport::setCSSStyleSheet):
2058         (WebCore::StyleRuleImport::isLoading):
2059         (WebCore::StyleRuleImport::requestStyleSheet):
2060         * css/StyleRuleImport.h:
2061         (WebCore::StyleRuleImport::parentStyleSheet):
2062         (WebCore::StyleRuleImport::setParentStyleSheet):
2063         (WebCore::StyleRuleImport::clearParentStyleSheet):
2064         (ImportedStyleSheetClient):
2065         (WebCore::StyleRuleImport::ImportedStyleSheetClient::ImportedStyleSheetClient):
2066         (WebCore::StyleRuleImport::ImportedStyleSheetClient::~ImportedStyleSheetClient):
2067         (WebCore::StyleRuleImport::ImportedStyleSheetClient::setCSSStyleSheet):
2068         * css/StyleSheetContents.cpp:
2069         (WebCore::StyleSheetContents::StyleSheetContents):
2070         (WebCore::StyleSheetContents::isCacheable):
2071         (WebCore::StyleSheetContents::parserAppendRule):
2072         (WebCore::StyleSheetContents::clearRules):
2073         (WebCore::StyleSheetContents::wrapperInsertRule):
2074         (WebCore::StyleSheetContents::wrapperDeleteRule):
2075         (WebCore::StyleSheetContents::parseAuthorStyleSheet):
2076         (WebCore::StyleSheetContents::parseStringAtLine):
2077         (WebCore::StyleSheetContents::checkLoaded):
2078         (WebCore::StyleSheetContents::notifyLoadedSheet):
2079         (WebCore::StyleSheetContents::startLoadingDynamicSheet):
2080         (WebCore::StyleSheetContents::rootStyleSheet):
2081         (WebCore::StyleSheetContents::singleOwnerNode):
2082         (WebCore::StyleSheetContents::singleOwnerDocument):
2083         (WebCore::StyleSheetContents::parentStyleSheet):
2084         * css/StyleSheetContents.h:
2085         (WebCore::StyleSheetContents::create):
2086         (StyleSheetContents):
2087         (WebCore::StyleSheetContents::ownerRule):
2088         (WebCore::StyleSheetContents::clearOwnerRule):
2089         * dom/ProcessingInstruction.cpp:
2090         (WebCore::ProcessingInstruction::parseStyleSheet):
2091         * dom/StyleElement.cpp:
2092         (WebCore::StyleElement::createSheet):
2093         * html/HTMLLinkElement.cpp:
2094         (WebCore::HTMLLinkElement::setCSSStyleSheet):
2095         * loader/cache/CachedCSSStyleSheet.cpp:
2096         (WebCore::CachedCSSStyleSheet::saveParsedStyleSheet):
2097
2098 2012-09-14  Ojan Vafai  <ojan@chromium.org>
2099
2100         Simplify some code in RenderBox::computePercentageLogicalHeight
2101         https://bugs.webkit.org/show_bug.cgi?id=96704
2102
2103         Reviewed by Tony Chang.
2104
2105         This is strictly code cleanup. No behavior change.
2106         Also removed some comments that were what comments and/or were
2107         getting stale.
2108
2109         * rendering/RenderBox.cpp:
2110         (WebCore::RenderBox::skipContainingBlockForPercentHeightCalculation):
2111         (WebCore):
2112         (WebCore::RenderBox::computePercentageLogicalHeight):
2113         * rendering/RenderBox.h:
2114         (RenderBox):
2115
2116 2012-09-14  Kent Tamura  <tkent@chromium.org>
2117
2118         Unreviewed, a workaround for a mysterious crash on Apple Windows port.
2119         https://bugs.webkit.org/show_bug.cgi?id=96636
2120
2121         * testing/InternalSettings.cpp:
2122         Touch RuntimeEnabledFeatures::langAttributeAwareFormControlUIEnabled only if
2123         ENABLE(INPUT_TYPE_TIME_MULTIPLE_FIELDS)
2124         (WebCore::InternalSettings::Backup::Backup):
2125         (WebCore::InternalSettings::Backup::restoreTo):
2126         (WebCore::InternalSettings::setLangAttributeAwareFormControlUIEnabled):
2127         * testing/InternalSettings.h:
2128         (Backup):
2129
2130 2012-09-14  David Grogan  <dgrogan@chromium.org>
2131
2132         IndexedDB: Print console warning about setVersion
2133         https://bugs.webkit.org/show_bug.cgi?id=96575
2134
2135         Reviewed by Tony Chang.
2136
2137         setVersion has been out of the spec for almost a year but there are
2138         still a lot of users.
2139
2140         We show the warning once per database object as an approximation for
2141         once per page.
2142
2143         No new tests, but 150-something rebaselines.
2144
2145         * Modules/indexeddb/IDBDatabase.cpp:
2146         (WebCore::IDBDatabase::IDBDatabase):
2147         (WebCore::IDBDatabase::setVersion):
2148         * Modules/indexeddb/IDBDatabase.h:
2149         (IDBDatabase):
2150
2151 2012-09-14  Michelangelo De Simone  <michelangelo@webkit.org>
2152
2153         Use arrays in shaders
2154         https://bugs.webkit.org/show_bug.cgi?id=95223
2155
2156         Reviewed by Dean Jackson.
2157
2158         Custom Filters' support for array() is introduced. Values within
2159         the array() function will be passed as uniforms to shaders.
2160
2161         Values within array() are comma-separated; the specification will be
2162         updated accordingly: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18839
2163
2164         Test: css3/filters/custom/custom-filter-array.html
2165
2166         * GNUmakefile.list.am:
2167         * Target.pri:
2168         * WebCore.gypi:
2169         * WebCore.vcproj/WebCore.vcproj:
2170         * WebCore.xcodeproj/project.pbxproj:
2171         * css/CSSComputedStyleDeclaration.cpp:
2172         (WebCore::valueForCustomFilterArrayParameter): 
2173         (WebCore):
2174         (WebCore::valueForCustomFilterParameter):
2175         * css/StyleResolver.cpp:
2176         (WebCore::StyleResolver::collectMatchingRulesForList):
2177         * css/StyleResolver.h:
2178         (StyleResolver):
2179         * platform/graphics/filters/CustomFilterArrayParameter.h: Container for array()
2180         parameter values.
2181         (WebCore):
2182         (CustomFilterArrayParameter):
2183         (WebCore::CustomFilterArrayParameter::create):
2184         (WebCore::CustomFilterArrayParameter::size):
2185         (WebCore::CustomFilterArrayParameter::valueAt):
2186         (WebCore::CustomFilterArrayParameter::addValue):
2187         (WebCore::CustomFilterArrayParameter::blend):
2188         (WebCore::CustomFilterArrayParameter::operator==):
2189         (WebCore::CustomFilterArrayParameter::CustomFilterArrayParameter):
2190         * platform/graphics/filters/CustomFilterParameter.h:
2191         * platform/graphics/filters/FECustomFilter.cpp:
2192         (WebCore::FECustomFilter::bindProgramArrayParameters):
2193         (WebCore):
2194         (WebCore::FECustomFilter::bindProgramParameters):
2195         * platform/graphics/filters/FECustomFilter.h:
2196         (WebCore):
2197         (FECustomFilter):
2198
2199 2012-09-14  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2200
2201         [Qt] Remove old cruft from the qmake build system
2202
2203         Rubber-stamped by Simon Hausmann.
2204
2205         * DerivedSources.pri:
2206         * Target.pri:
2207
2208 2012-09-14  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2209
2210         [Qt] Make force_static_libs_as_shared work on Mac OS
2211
2212         We had to move a few LIBS += around that were in the wrong place,
2213         and not caught when everything was just linked into the final
2214         QtWebKit library.
2215
2216         Reviewed by Simon Hausmann.
2217
2218         * WebCore.pri:
2219
2220 2012-09-14  Rick Byers  <rbyers@chromium.org>
2221
2222         Gesture events sent to wrong node when page is scrolled
2223         https://bugs.webkit.org/show_bug.cgi?id=96788
2224
2225         Reviewed by Antonio Gomes.
2226
2227         Adjust the co-ordinate space correctly when doing hit testing for
2228         gesture events (as for all other event handling code here).
2229
2230         Test: platform/chromium/plugins/gesture-events-scrolled.html
2231
2232         * page/EventHandler.cpp:
2233         (WebCore::EventHandler::handleGestureEvent):
2234
2235 2012-09-14  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2236
2237         [EFL] Attempt to create a theme for 0 sized element leads to assertion hit
2238         https://bugs.webkit.org/show_bug.cgi?id=96743
2239
2240         Reviewed by Kenneth Rohde Christiansen.
2241
2242         RenderThemeEfl was not supposed to be created for the elements with '0' size and had an assertion
2243         on that causing crash in debug mode. 
2244
2245         Test: fast/forms/range/slider-zero-size-crash.html
2246
2247         * platform/efl/RenderThemeEfl.cpp:
2248         (WebCore::RenderThemeEfl::ThemePartCacheEntry::create):
2249
2250 2012-09-14  Andrey Kosyakov  <caseq@chromium.org>
2251
2252         Web Inspector: reuse WebInspector.ProgressIndicator in Audits panel
2253         https://bugs.webkit.org/show_bug.cgi?id=96755
2254
2255         Reviewed by Alexander Pavlov.
2256
2257         - remove AuditProgressMonitor, use WebInspector.ProgressIndicator instead;
2258         - add annotations for a bunch of audit methods;
2259         - simplify control flow -- remove callbacks where possible.
2260
2261         * English.lproj/localizedStrings.js:
2262         * inspector/front-end/AuditLauncherView.js:
2263         (WebInspector.AuditLauncherView):
2264         (WebInspector.AuditLauncherView.prototype._setAuditRunning):
2265         (WebInspector.AuditLauncherView.prototype._launchButtonClicked.onAuditStarted):
2266         (WebInspector.AuditLauncherView.prototype._launchButtonClicked):
2267         (WebInspector.AuditLauncherView.prototype._createLauncherUI):
2268         (WebInspector.AuditLauncherView.prototype._updateResourceProgress):
2269         (WebInspector.AuditLauncherView.prototype._updateButton):
2270         * inspector/front-end/AuditRules.js:
2271         (WebInspector.AuditRules.GzipRule.prototype.doRun):
2272         (WebInspector.AuditRules.CombineExternalResourcesRule.prototype.doRun):
2273         (WebInspector.AuditRules.MinimizeDnsLookupsRule.prototype.doRun):
2274         (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback.selectorsCallback):
2275         (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback.documentLoaded):
2276         (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback):
2277         (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.styleSheetCallback):
2278         (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.allStylesCallback):
2279         (WebInspector.AuditRules.UnusedCssRule.prototype.doRun):
2280         (WebInspector.AuditRules.CacheControlRule.prototype.doRun):
2281         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
2282         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun):
2283         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun.externalStylesheetsReceived):
2284         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun.inlineStylesReceived):
2285         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun.onDocumentAvailable):
2286         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun):
2287         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun.cssBeforeInlineReceived):
2288         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun.lateStylesReceived):
2289         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun.onDocumentAvailable):
2290         (WebInspector.AuditRules.CSSRuleBase.prototype.doRun.sheetsCallback):
2291         (WebInspector.AuditRules.CSSRuleBase.prototype._visitStyleSheet.sheetCallback):
2292         (WebInspector.AuditRules.CSSRuleBase.prototype._visitStyleSheet):
2293         (WebInspector.AuditRules.CookieRuleBase.prototype.doRun.resultCallback):
2294         (WebInspector.AuditRules.CookieRuleBase.prototype.doRun):
2295         * inspector/front-end/AuditsPanel.js:
2296         (WebInspector.AuditsPanel):
2297         (WebInspector.AuditsPanel.prototype._executeAudit.ruleResultReadyCallback):
2298         (WebInspector.AuditsPanel.prototype._executeAudit):
2299         (WebInspector.AuditsPanel.prototype._auditFinishedCallback):
2300         (WebInspector.AuditsPanel.prototype.initiateAudit.else.onReload):
2301         (WebInspector.AuditsPanel.prototype.initiateAudit):
2302         (WebInspector.AuditCategory.prototype.run):
2303         (WebInspector.AuditRule.prototype.run):
2304         (WebInspector.AuditRule.prototype.doRun):
2305         * inspector/front-end/ProgressBar.js:
2306         (WebInspector.Progress.prototype.worked):
2307         (WebInspector.ProgressIndicator):
2308         (WebInspector.ProgressIndicator.prototype.cancel):
2309         (WebInspector.ProgressIndicator.prototype.setWorked):
2310         (WebInspector.ProgressIndicator.prototype.worked):
2311         (WebInspector.SubProgress.prototype.setWorked):
2312         (WebInspector.SubProgress.prototype.worked):
2313         * inspector/front-end/auditsPanel.css:
2314         (.audit-launcher-view .progress-bar-container):
2315         (.audit-launcher-view .progress-bar-container .progress-bar-stop-button):
2316
2317 2012-09-14  Vsevolod Vlasov  <vsevik@chromium.org>
2318
2319         Unreviewed inspector ui polish.
2320
2321         * inspector/front-end/inspector.css:
2322         (#floating-status-bar-resizer):
2323
2324 2012-09-14  Vsevolod Vlasov  <vsevik@chromium.org>
2325
2326         Web Inspector: Get rid of setting values to innerHTML in inspector front-end.
2327         https://bugs.webkit.org/show_bug.cgi?id=96758
2328
2329         Reviewed by Alexander Pavlov.
2330
2331         Removed innerHTML from WebGLProfileView.
2332
2333         * inspector/front-end/WebGLProfileView.js:
2334         (WebInspector.WebGLProfileView.prototype._showTraceLog):
2335
2336 2012-09-14  Keishi Hattori  <keishi@webkit.org>
2337
2338         Make time input lang attribute aware for testing
2339         https://bugs.webkit.org/show_bug.cgi?id=96728
2340
2341         Reviewed by Kent Tamura.
2342
2343         This patch implements partial lang attribute support for input type=time
2344         that turns on only when enabled through InternalSettings.
2345
2346         Test: fast/forms/time-multiple-fields/time-multiple-fields-localization.html
2347
2348         * dom/Document.cpp:
2349         (WebCore::Document::getLocalizer): Returns a localizer for a given locale. Localizers are cached for repeated use.
2350         (WebCore):
2351         * dom/Document.h:
2352         (WebCore):
2353         (Document):
2354         * html/TimeInputType.cpp:
2355         (WebCore::TimeInputType::updateInnerTextValue): Use the locale for the input element.
2356         * html/shadow/DateTimeEditElement.cpp:
2357         (DateTimeEditBuilder):
2358         (WebCore::DateTimeEditBuilder::DateTimeEditBuilder):
2359         (WebCore::DateTimeEditBuilder::visitField):
2360         (WebCore::DateTimeEditElement::layout):
2361         (WebCore::DateTimeEditElement::setValueAsDate):
2362         (WebCore::DateTimeEditElement::setEmptyValue):
2363         * html/shadow/DateTimeEditElement.h:
2364         (WebCore):
2365         (DateTimeEditElement):
2366
2367 2012-09-14  Sheriff Bot  <webkit.review.bot@gmail.com>
2368
2369         Unreviewed, rolling out r128566.
2370         http://trac.webkit.org/changeset/128566
2371         https://bugs.webkit.org/show_bug.cgi?id=96760
2372
2373         Assertion failure in http/tests/websocket/tests/hybi/workers
2374         /close-code-and-reason.html (Requested by tkent1 on #webkit).
2375
2376         * bindings/v8/DOMData.cpp:
2377         (WebCore::DOMData::getCurrentStore):
2378         * bindings/v8/ScopedPersistent.h:
2379         * bindings/v8/ScriptController.cpp:
2380         (WebCore::ScriptController::resetIsolatedWorlds):
2381         (WebCore::ScriptController::evaluateInIsolatedWorld):
2382         (WebCore::ScriptController::currentWorldContext):
2383         * bindings/v8/V8Binding.cpp:
2384         (WebCore::perContextDataForCurrentWorld):
2385         * bindings/v8/V8DOMWindowShell.cpp:
2386         (WebCore::setIsolatedWorldField):
2387         (WebCore::V8DOMWindowShell::enteredIsolatedWorldContext):
2388         (WebCore::V8DOMWindowShell::destroyIsolatedShell):
2389         (WebCore):
2390         (WebCore::isolatedContextWeakCallback):
2391         (WebCore::V8DOMWindowShell::disposeContext):
2392         (WebCore::V8DOMWindowShell::initializeIfNeeded):
2393         (WebCore::V8DOMWindowShell::setIsolatedWorldSecurityOrigin):
2394         * bindings/v8/V8DOMWindowShell.h:
2395         (V8DOMWindowShell):
2396         (WebCore::V8DOMWindowShell::getEntered):
2397         * bindings/v8/V8DOMWrapper.h:
2398         (WebCore::V8DOMWrapper::getCachedWrapper):
2399         * bindings/v8/WorldContextHandle.cpp:
2400         (WebCore::WorldContextHandle::WorldContextHandle):
2401         * bindings/v8/custom/V8DocumentCustom.cpp:
2402         (WebCore::toV8):
2403         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
2404         (WebCore::toV8):
2405         * bindings/v8/custom/V8SVGDocumentCustom.cpp:
2406         (WebCore::toV8):
2407         * bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:
2408         (WebCore::V8XMLHttpRequest::constructorCallback):
2409
2410 2012-09-14  Vsevolod Vlasov  <vsevik@chromium.org>
2411
2412         Web Inspector: Fix front end closure compilation errors.
2413         https://bugs.webkit.org/show_bug.cgi?id=96753
2414
2415         Reviewed by Alexander Pavlov.
2416
2417         Closure compilation fix.
2418         Also fixed wrong parameters passed to JavaScriptSource constructor from CompilerScriptMapping.
2419
2420         * inspector/front-end/CompilerScriptMapping.js:
2421         * inspector/front-end/Resource.js:
2422
2423 2012-09-14  Andrei Poenaru  <poenaru@adobe.com>
2424
2425         Web Inspector: Display Named Flows in the "CSS Named Flows" drawer
2426         https://bugs.webkit.org/show_bug.cgi?id=90871
2427
2428         Reviewed by Alexander Pavlov.
2429
2430         Implemented CSS Regions support in WebInspector as a drawer. (feature is under an experimental flag)
2431
2432         * English.lproj/localizedStrings.js:
2433         * WebCore.gypi:
2434         * WebCore.vcproj/WebCore.vcproj:
2435         * inspector/compile-front-end.py:
2436         * inspector/front-end/CSSNamedFlowCollectionsView.js: Added.
2437         (WebInspector.CSSNamedFlowCollectionsView):
2438         (WebInspector.CSSNamedFlowCollectionsView.prototype.showInDrawer):
2439         (WebInspector.CSSNamedFlowCollectionsView.prototype.reset):
2440         (WebInspector.CSSNamedFlowCollectionsView.prototype._setDocument):
2441         (WebInspector.CSSNamedFlowCollectionsView.prototype._documentUpdated):
2442         (WebInspector.CSSNamedFlowCollectionsView.prototype._setSidebarHasContent):
2443         (WebInspector.CSSNamedFlowCollectionsView.prototype._appendNamedFlow):
2444         (WebInspector.CSSNamedFlowCollectionsView.prototype._removeNamedFlow):
2445         (WebInspector.CSSNamedFlowCollectionsView.prototype._updateNamedFlow):
2446         (WebInspector.CSSNamedFlowCollectionsView.prototype._resetNamedFlows):
2447         (WebInspector.CSSNamedFlowCollectionsView.prototype._namedFlowCreated):
2448         (WebInspector.CSSNamedFlowCollectionsView.prototype._namedFlowRemoved):
2449         (WebInspector.CSSNamedFlowCollectionsView.prototype._regionLayoutUpdated):
2450         (WebInspector.CSSNamedFlowCollectionsView.prototype._hashNamedFlow):
2451         (WebInspector.CSSNamedFlowCollectionsView.prototype._showNamedFlow):
2452         (WebInspector.CSSNamedFlowCollectionsView.prototype._selectNamedFlowInSidebar):
2453         (WebInspector.CSSNamedFlowCollectionsView.prototype._selectedNodeChanged):
2454         (WebInspector.CSSNamedFlowCollectionsView.prototype._showNamedFlowForNode):
2455         (WebInspector.CSSNamedFlowCollectionsView.prototype.wasShown):
2456         (WebInspector.CSSNamedFlowCollectionsView.prototype.willHide):
2457         * inspector/front-end/ElementsPanel.js:
2458         (WebInspector.ElementsPanel.prototype._contextMenuEventFired.set get var):
2459         (WebInspector.ElementsPanel.prototype._showNamedFlowCollections):
2460         * inspector/front-end/Images/namedFlowOverflow.png: Added.
2461         * inspector/front-end/Settings.js:
2462         (WebInspector.ExperimentsSettings):
2463         * inspector/front-end/WebKit.qrc:
2464         * inspector/front-end/cssNamedFlows.css: Added.
2465         (.css-named-flow-collections-view .split-view-sidebar-left):
2466         (.css-named-flow-collections-view .tabbed-pane-header):
2467         (.css-named-flow-collections-view .info):
2468         (.css-named-flow-collections-view .split-view-sidebar-left .sidebar-content):
2469         (.css-named-flow-collections-view .split-view-sidebar-left .selection):
2470         (.css-named-flow-collections-view .split-view-contents .title):
2471         (.css-named-flow-collections-view .split-view-sidebar-left .named-flow-overflow::before):
2472
2473 2012-09-14  Yoshifumi Inoue  <yosin@chromium.org>
2474
2475         Unreviewed fix for build break on Chromium-Linux Debug build.
2476
2477         * html/DateTimeFieldsState.cpp: Initialize DateTimeFieldStates::emptyValue.
2478         * html/DateTimeFieldsState.h: Remove initialization of public static member variable emptyValue.
2479
2480 2012-09-14  Yoshifumi Inoue  <yosin@chromium.org>
2481
2482         Create Localizer factory method for LocaleNone
2483         https://bugs.webkit.org/show_bug.cgi?id=96745
2484
2485         Reviewed by Kent Tamura.
2486
2487         This patch introduces Localizer class and LocaleNone class which
2488         prodices a constructor of Localizer class for ports which don't use
2489         LocaleICU, LocaleMac nor LocaleWin.
2490
2491         No new tests. This patch doesn't change behavior.
2492
2493         * CMakeLists.txt: Added platform/text/LocaleNone.cpp and platform/text/Localizer.cpp.
2494         * GNUmakefile.list.am: Added platform/text/LocaleNone.cpp and platform/text/Localizer.{cpp,h}
2495         * Target.pri: Added platform/text/LocaleNone.cpp and platform/text/Localizer.cpp
2496         * WebCore.vcproj/WebCore.vcproj: Added platform/text/LocaleNone.cpp and platform/text/Localizer.{cpp,h}
2497         * platform/text/LocaleNone.cpp: Added.
2498         (WebCore::Localizer::create): 
2499         (WebCore::LocaleNone::~LocaleNone):
2500         (WebCore::LocaleNone::initializeLocalizerData):
2501
2502 2012-09-14  Vsevolod Vlasov  <vsevik@chromium.org>
2503
2504         Unreviewed r128580 follow up: fixed qt minimal compilation.
2505
2506         * loader/DocumentThreadableLoader.cpp:
2507
2508 2012-09-14  Keishi Hattori  <keishi@webkit.org>
2509
2510         Refactor time format related methods on LocaleWin/Mac/ICU so that they override Localizer methods
2511         https://bugs.webkit.org/show_bug.cgi?id=96726
2512
2513         Reviewed by Kent Tamura.
2514
2515         Refactoring time format related methods on LocaleWin/Mac/ICU so that
2516         they override Localizer methods. We can call them from the Localizer
2517         from now on.
2518
2519         No new tests. No behavior change. Covered by existing tests.
2520
2521         * platform/text/LocaleICU.cpp:
2522         (WebCore::LocaleICU::initializeDateTimeFormat): m_timeAMPMLabels is no longer a OwnPtr so we account for that.
2523         (WebCore::LocaleICU::timeFormat): Removing Text from end of function
2524         name because *FormatText() shoud return human readable text like "Day/Month/Year".
2525         (WebCore::LocaleICU::shortTimeFormat):
2526         (WebCore::LocaleICU::timeAMPMLabels):
2527         * platform/text/LocaleICU.h:
2528         (LocaleICU):
2529         * platform/text/LocaleWin.cpp:
2530         (WebCore::LocaleWin::timeFormat):
2531         (WebCore::LocaleWin::shortTimeFormat):
2532         (WebCore::LocaleWin::timeAMPMLabels):
2533         * platform/text/LocaleWin.h:
2534         (LocaleWin):
2535         * platform/text/LocalizedDateICU.cpp:
2536         (WebCore::localizedTimeFormatText):
2537         (WebCore::localizedShortTimeFormatText):
2538         * platform/text/LocalizedDateWin.cpp:
2539         (WebCore::localizedTimeFormatText):
2540         (WebCore::localizedShortTimeFormatText):
2541         * platform/text/Localizer.cpp:
2542         (WebCore):
2543         (WebCore::Localizer::timeFormat):
2544         (WebCore::Localizer::shortTimeFormat):
2545         (WebCore::Localizer::timeAMPMLabels):
2546         * platform/text/Localizer.h:
2547         (Localizer): We unified some of the member variables like m_timeAMPMLabels into this class.
2548         * platform/text/mac/LocaleMac.h:
2549         (LocaleMac):
2550         * platform/text/mac/LocaleMac.mm:
2551         (WebCore::LocaleMac::timeFormat):
2552         (WebCore::LocaleMac::shortTimeFormat):
2553         * platform/text/mac/LocalizedDateMac.cpp:
2554         (WebCore::localizedTimeFormatText):
2555         (WebCore::localizedShortTimeFormatText):
2556
2557 2012-09-14  Keishi Hattori  <keishi@webkit.org>
2558
2559         Add runtime flag that enables lang attribute for form controls in LayoutTests
2560         https://bugs.webkit.org/show_bug.cgi?id=96636
2561
2562         Reviewed by Kent Tamura.
2563
2564         Lang attribute support for form controls will be incomplete and just for LayoutTests.
2565
2566         No new tests. No behavior change.
2567
2568         * WebCore.exp.in:
2569         * bindings/generic/RuntimeEnabledFeatures.cpp:
2570         (WebCore):
2571         * bindings/generic/RuntimeEnabledFeatures.h:
2572         (WebCore::RuntimeEnabledFeatures::langAttributeAwareFormControlUIEnabled):
2573         (WebCore::RuntimeEnabledFeatures::setLangAttributeAwareFormControlUIEnabled):
2574         (RuntimeEnabledFeatures):
2575         * testing/InternalSettings.cpp:
2576         (WebCore::InternalSettings::Backup::Backup):
2577         (WebCore::InternalSettings::Backup::restoreTo):
2578         (WebCore::InternalSettings::setLangAttributeAwareFormControlUIEnabled):
2579         (WebCore):
2580         * testing/InternalSettings.h:
2581         (Backup):
2582         (InternalSettings):
2583         * testing/InternalSettings.idl:
2584
2585 2012-09-14  Keishi Hattori  <keishi@webkit.org>
2586
2587         LocaleMac should fallback to defaultLanguage for an invalid locale
2588         https://bugs.webkit.org/show_bug.cgi?id=96744
2589
2590         Reviewed by Kent Tamura.
2591
2592         There is no way to tell if a locale identifier is valid or not in Cocoa
2593         so we look if we have a matching language in the list of
2594         ISOLanguageCodes given by NSLocale.
2595
2596         Covered in LocaleMacTest.invalidLocale.
2597
2598         * platform/text/mac/LocaleMac.mm:
2599         (WebCore):
2600         (WebCore::LocaleMac::LocaleMac):
2601         (WebCore::LocaleMac::create):
2602
2603 2012-09-14  Vsevolod Vlasov  <vsevik@chromium.org>
2604
2605         Web Inspector: Add ability to replay XHR in network panel.
2606         https://bugs.webkit.org/show_bug.cgi?id=95187
2607
2608         Reviewed by Yury Semikhatsky.
2609
2610         Patch based on Pavel Chadnov's patch.
2611         This patch implements Replay XHR feature in web inspector.
2612         XMLHttpRequest's ThreadableLoaderClient is now used to map XMLHttpRequest object to ResourceLoader request identifiers.
2613         Before initiating load all XHR parameters are now sent to inspector.
2614         XMLHttpRequest parameters are stored in inspector's network request cache in XHRReplayData class.
2615         When XHR replay is requested, a new XMLHttpRequest is created based on stored data.
2616
2617         Test: http/tests/inspector/network/network-xhr-replay.html
2618
2619         * inspector/Inspector.json:
2620         * inspector/InspectorConsoleAgent.cpp:
2621         (WebCore::InspectorConsoleAgent::didFinishXHRLoading):
2622         * inspector/InspectorConsoleAgent.h:
2623         (InspectorConsoleAgent):
2624         * inspector/InspectorInstrumentation.cpp:
2625         (WebCore):
2626         (WebCore::InspectorInstrumentation::documentThreadableLoaderStartedLoadingForClientImpl):
2627         (WebCore::InspectorInstrumentation::willLoadXHRImpl):
2628         (WebCore::InspectorInstrumentation::didFailXHRLoadingImpl):
2629         (WebCore::InspectorInstrumentation::didFinishXHRLoadingImpl):
2630         * inspector/InspectorInstrumentation.h:
2631         (WebCore):
2632         (InspectorInstrumentation):
2633         (WebCore::InspectorInstrumentation::documentThreadableLoaderStartedLoadingForClient):
2634         (WebCore::InspectorInstrumentation::willLoadXHR):
2635         (WebCore::InspectorInstrumentation::didFailXHRLoading):
2636         (WebCore::InspectorInstrumentation::didFinishXHRLoading):
2637         * inspector/InspectorResourceAgent.cpp:
2638         (WebCore::InspectorResourceAgent::didLoadResourceFromMemoryCache):
2639         (WebCore::InspectorResourceAgent::documentThreadableLoaderStartedLoadingForClient):
2640         (WebCore):
2641         (WebCore::InspectorResourceAgent::willLoadXHR):
2642         (WebCore::InspectorResourceAgent::didFailXHRLoading):
2643         (WebCore::InspectorResourceAgent::didFinishXHRLoading):
2644         (WebCore::InspectorResourceAgent::replayXHR):
2645         * inspector/InspectorResourceAgent.h:
2646         (WebCore):
2647         (InspectorResourceAgent):
2648         * inspector/NetworkResourcesData.cpp:
2649         (WebCore::XHRReplayData::create):
2650         (WebCore):
2651         (WebCore::XHRReplayData::addHeader):
2652         (WebCore::XHRReplayData::XHRReplayData):
2653         (WebCore::NetworkResourcesData::xhrReplayData):
2654         (WebCore::NetworkResourcesData::setXHRReplayData):
2655         (WebCore::NetworkResourcesData::reuseXHRReplayData):
2656         (WebCore::NetworkResourcesData::clear):
2657         * inspector/NetworkResourcesData.h:
2658         (XHRReplayData):
2659         (WebCore::XHRReplayData::method):
2660         (WebCore::XHRReplayData::url):
2661         (WebCore::XHRReplayData::async):
2662         (WebCore::XHRReplayData::formData):
2663         (WebCore::XHRReplayData::headers):
2664         (WebCore::XHRReplayData::includeCredentials):
2665         (WebCore):
2666         (WebCore::NetworkResourcesData::ResourceData::xhrReplayData):
2667         (WebCore::NetworkResourcesData::ResourceData::setXHRReplayData):
2668         (ResourceData):
2669         (NetworkResourcesData):
2670         * inspector/front-end/NetworkPanel.js:
2671         (WebInspector.NetworkLogView.prototype._contextMenu):
2672         (WebInspector.NetworkLogView.prototype._replayXHR):
2673         * loader/DocumentThreadableLoader.cpp:
2674         (WebCore::DocumentThreadableLoader::loadRequest): added documentThreadableLoaderStartedLoadingForClient instrumentation
2675         so that inspector could map XMLHttpRequest to ResourceLoader's identifiers.
2676         * loader/cache/CachedResource.h:
2677         (WebCore::CachedResource::loader): DocumentThreadableLoader uses CachedResource::loader() to get ResourceLoader identifier.
2678         (CachedResource):
2679         * xml/XMLHttpRequest.cpp:
2680         (WebCore::XMLHttpRequest::sendFromInspector): Added a method for sending XMLHttpRequests based on request body stored in inspector.
2681         (WebCore):
2682         (WebCore::XMLHttpRequest::createRequest): Replaced will/didLoadXHRSynchonously instrumentations with willLoadXHR instrumentation.
2683         (WebCore::XMLHttpRequest::internalAbort): Added didFailXHRLoadingInstrumentation
2684         (WebCore::XMLHttpRequest::didFinishLoading): Added didFinishXHRLoading instrumentation
2685         * xml/XMLHttpRequest.h:
2686         (XMLHttpRequest):
2687
2688 2012-09-14  Yoshifumi Inoue  <yosin@chromium.org>
2689
2690         [Forms] multiple fields time input UI should save/restore its value even if it has an empty field.
2691         https://bugs.webkit.org/show_bug.cgi?id=96714
2692
2693         Reviewed by Kent Tamura.
2694
2695         This patch changes multiple fields time input UI to save/restore value
2696         of fields rather than time value. For this change, storage format of
2697         input type "time" is also changed.
2698
2699         Before this patch, if user populates time fiels partially, all fields
2700         are reset to initial value after back/forward navigation.
2701
2702         After this patch, partially populated fields are preserved after
2703         back/forward navigation.
2704
2705         Fields of DateTimeEditElement are represented as 9 elements of
2706         string vector in FormControlState regardless actual fields in
2707         DateTimeEditElement for ease of restoring/saving.
2708
2709         This patch affects ports which enable both ENABLE_INPUT_TYPE_TIME and
2710         ENABLE_INPUT_TYPE_TIME_MULTIPLE_FIELDS.
2711
2712         No new tests. Existing test fast/forms/time-multiple-fields/time-multiple-fields-preserve-value-after-history-back.html
2713         convers this change.
2714
2715         * WebCore.gypi: Chagned to add DateTimeFieldsState.{cpp.h}
2716         * html/DateTimeFieldsState.cpp: Added.
2717         (WebCore::getNumberFromFormControlState): Extracts unsigned integer or empty value from FormControlState.
2718         (WebCore::getAMPMFromFormControlState): Extracts AM/PM value or empty value from FormControlState.
2719         (WebCore::DateTimeFieldsState::DateTimeFieldsState): Initializes fields with empty value.
2720         (WebCore::DateTimeFieldsState::restoreFormControlState): Makes DateTimeFieldsState instance from FormControlState.
2721         (WebCore::DateTimeFieldsState::saveFormControlState): Makes FormControlState from DateTimeFieldsState.
2722         * html/DateTimeFieldsState.h: Added.
2723         (DateTimeFieldsState):
2724         (WebCore::DateTimeFieldsState::ampm): Returns AM/PM field value.
2725         (WebCore::DateTimeFieldsState::dayOfMonth): Returns day of month field value.
2726         (WebCore::DateTimeFieldsState::hour): Reutrns hour field value.
2727         (WebCore::DateTimeFieldsState::millisecond): Returns millisecond field value.
2728         (WebCore::DateTimeFieldsState::minute): Returns minute field value.
2729         (WebCore::DateTimeFieldsState::month): Returns month field value.
2730         (WebCore::DateTimeFieldsState::second): Returns second field value.
2731         (WebCore::DateTimeFieldsState::weekOfYear): Returns week of year field.
2732         (WebCore::DateTimeFieldsState::year): Returns year field value.
2733         (WebCore::DateTimeFieldsState::hasAMPM): Returns true if AM/PM field has value.
2734         (WebCore::DateTimeFieldsState::hasDayOfMonth): Returns true if day of month field has value.
2735         (WebCore::DateTimeFieldsState::hasHour): Returns true if hour field has value.
2736         (WebCore::DateTimeFieldsState::hasMillisecond): Returns true if millisecond field has value.
2737         (WebCore::DateTimeFieldsState::hasMinute): Returns true if minute field has value.
2738         (WebCore::DateTimeFieldsState::hasMonth): Returns true if month field has value.
2739         (WebCore::DateTimeFieldsState::hasSecond): Returns true if second field has value.
2740         (WebCore::DateTimeFieldsState::hasWeekOfYear): Returns true if week of year field has value.
2741         (WebCore::DateTimeFieldsState::hasYear): Returns true if year field has value.
2742         (WebCore::DateTimeFieldsState::setAMPM): Sets AM/PM field.
2743         (WebCore::DateTimeFieldsState::setDayOfMonth): Sets day of month field.
2744         (WebCore::DateTimeFieldsState::setHour): Sets hour field.
2745         (WebCore::DateTimeFieldsState::setMillisecond): Sets millisecond field.
2746         (WebCore::DateTimeFieldsState::setMinute): Sets minute field.
2747         (WebCore::DateTimeFieldsState::setMonth): Sets month field.
2748         (WebCore::DateTimeFieldsState::setSecond): Set second field.
2749         (WebCore::DateTimeFieldsState::setWeekOfYear): Sets week of year field.
2750         (WebCore::DateTimeFieldsState::setYear): Sets year field.
2751         * html/FormController.cpp:
2752         (WebCore::formStateSignature): Increment version number to 8 for incompatible change of FormControlState.
2753         * html/TimeInputType.cpp:
2754         (WebCore::TimeInputType::restoreFormControlState): Added to call DateTimeFieldsState::restoreFormControlState().
2755         (WebCore::TimeInputType::saveFormControlState): Added to call DateTimeFieldsState::saveFormControlState().
2756         * html/TimeInputType.h:
2757         (TimeInputType): Added declarations for restoreFormControlState() and saveFormControlState().
2758         * html/shadow/DateTimeEditElement.cpp:
2759         (WebCore::DateTimeEditElement::setValueAsDateTimeFieldsState): Added to set fields from DateTimeFieldsState.
2760         (WebCore::DateTimeEditElement::valueAsDateTimeFieldsState): Added to make DateTimeFieldsState from fields.
2761         * html/shadow/DateTimeEditElement.h:
2762         (DateTimeEditElement): Added declarations for setValueAsDateTimeFieldsState() and valueAsDateTimeFieldsState().
2763         * html/shadow/DateTimeFieldElement.h:
2764         (DateTimeFieldElement): Added declarations for populateDateTimeFieldsState() and setValueAsDateTimeFieldsState().
2765         * html/shadow/DateTimeFieldElements.cpp:
2766         (WebCore::DateTimeAMPMFieldElement::populateDateTimeFieldsState): Added to set AM/PM value to DateTimeFieldsState.
2767         (WebCore::DateTimeAMPMFieldElement::setValueAsDateTimeFieldsState): Added to set field value from DateTimeFieldsState.
2768         (WebCore::DateTimeHourFieldElement::populateDateTimeFieldsState): Added to set hour value to DateTimeFieldsState.
2769         (WebCore::DateTimeHourFieldElement::setValueAsDateTimeFieldsState): Added to set field value from DateTimeFieldsState.
2770         (WebCore::DateTimeMillisecondFieldElement::populateDateTimeFieldsState): Added to set millisecond value to DateTimeFieldsState.
2771         (WebCore::DateTimeMillisecondFieldElement::setValueAsDateTimeFieldsState): Added to set field value from DateTimeFieldsState.
2772         (WebCore::DateTimeMinuteFieldElement::populateDateTimeFieldsState): Added to set minute value to DateTimeFieldsState.
2773         (WebCore::DateTimeMinuteFieldElement::setValueAsDateTimeFieldsState): Added to set field value from DateTimeFieldsState.
2774         (WebCore::DateTimeSecondFieldElement::populateDateTimeFieldsState): Added to set second value to DateTimeFieldsState.
2775         (WebCore::DateTimeSecondFieldElement::setValueAsDateTimeFieldsState): Added to set field value from DateTimeFieldsState.
2776         * html/shadow/DateTimeFieldElements.h:
2777         (DateTimeAMPMFieldElement): Added declarations of populateDateTimeFieldsState() and setValueAsDateTimeFieldsState().
2778         (DateTimeHourFieldElement): ditto.
2779         (DateTimeMillisecondFieldElement): ditto.
2780         (DateTimeMinuteFieldElement): ditto.
2781         (DateTimeSecondFieldElement): ditto.
2782         * html/shadow/DateTimeNumericFieldElement.h:
2783         (DateTimeNumericFieldElement): Extend accessibility of maximum() and setEmptyValue() to protected.
2784         * html/shadow/DateTimeSymbolicFieldElement.h:
2785         (DateTimeSymbolicFieldElement): Extend accessibility of hasValue(), setEmptyValue() and valueAsInteger() to protected.
2786
2787 2012-09-14  Sheriff Bot  <webkit.review.bot@gmail.com>
2788
2789         Unreviewed, rolling out r128568.
2790         http://trac.webkit.org/changeset/128568
2791         https://bugs.webkit.org/show_bug.cgi?id=96739
2792
2793         It broke 3 tests everywhere (Requested by Ossy on #webkit).
2794
2795         * bindings/js/JSDictionary.h:
2796         (WebCore::JSDictionary::tryGetPropertyAndResult):
2797
2798 2012-09-13  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2799
2800         Evas_Object* is a ref'ed structure, so tread it as such
2801         https://bugs.webkit.org/show_bug.cgi?id=96659
2802
2803         Reviewed by Adam Barth.
2804
2805         Replace OwnPtr<Evas_Object> with RefPtr.
2806
2807         * PlatformEfl.cmake:
2808         * platform/efl/RenderThemeEfl.cpp:
2809         (WebCore::RenderThemeEfl::ThemePartCacheEntry::create):
2810         (WebCore::RenderThemeEfl::loadTheme):
2811         (WebCore::RenderThemeEfl::applyPartDescriptionsFrom):
2812         * platform/efl/RenderThemeEfl.h:
2813         (RenderThemeEfl):
2814         (ThemePartCacheEntry):
2815
2816 2012-09-14  Zoltan Horvath  <zoltan@webkit.org>
2817
2818         Extend the coverage of the Custom Allocation Framework in WebCore
2819         https://bugs.webkit.org/show_bug.cgi?id=96512
2820
2821         Reviewed by Eric Seidel.
2822
2823         Add WTF_MAKE_FAST_ALLOCATED macro to the following class/struct declarations because these
2824         or their child classes are instantiated by operator new.
2825
2826         Covered by existing tests.
2827
2828         * Modules/websockets/WebSocketDeflateFramer.cpp:
2829         (WebSocketExtensionDeflateFrame):
2830         * Modules/websockets/WebSocketDeflateFramer.h:
2831         (DeflateResultHolder):
2832         (InflateResultHolder):
2833         * Modules/websockets/WebSocketDeflater.h:
2834         (WebSocketDeflater):
2835         (WebSocketInflater):
2836         * Modules/websockets/WebSocketHandshake.h:
2837         (WebSocketHandshake):
2838         * bindings/js/ScriptDebugServer.h:
2839         (Task):
2840         * css/CSSCalculationValue.cpp:
2841         (CSSCalcPrimitiveValue):
2842         * css/CSSParserMode.h:
2843         (CSSParserContext):
2844         * css/CSSValuePool.h:
2845         (CSSValuePool):
2846         * css/StyleBuilder.h:
2847         (StyleBuilder):
2848         * css/StylePropertyShorthand.h:
2849         (StylePropertyShorthand):
2850         * css/StyleResolver.cpp:
2851         (RuleSet):
2852         * css/StyleRule.h:
2853         (StyleRuleBase):
2854         (StyleRule):
2855         * css/StyleRuleImport.h:
2856         (StyleRuleImport):
2857         * css/WebKitCSSKeyframeRule.h:
2858         (StyleKeyframe):
2859         * dom/CheckedRadioButtons.cpp:
2860         (RadioButtonGroup):
2861         * dom/ContextFeatures.h:
2862         (ContextFeaturesClient):
2863         * dom/DOMImplementation.h:
2864         (DOMImplementation):
2865         (XMLMIMETypeRegExp):
2866         * dom/Document.cpp:
2867         (ImmutableAttributeDataCacheKey):
2868         * dom/ElementShadow.h:
2869         (ElementShadow):
2870         * dom/GenericEventQueue.h:
2871         (GenericEventQueue):
2872         * dom/IdTargetObserverRegistry.h:
2873         (IdTargetObserverRegistry):
2874         * dom/NamedNodeMap.h:
2875         (NamedNodeMap):
2876         * dom/ScopedEventQueue.h:
2877         (ScopedEventQueue):
2878         * dom/StyledElement.cpp:
2879         (PresentationAttributeCacheEntry):
2880         (PresentationAttributeCacheCleaner):
2881         * editing/EditingStyle.cpp:
2882         (HTMLElementEquivalent):
2883         * editing/SpellChecker.h:
2884         (SpellChecker):
2885         * fileapi/ThreadableBlobRegistry.cpp:
2886         (BlobRegistryContext):
2887         * html/FormAssociatedElement.cpp:
2888         (FormAttributeTargetObserver):
2889         * html/FormController.h:
2890         (FormController):
2891         * html/HTMLInputElement.cpp:
2892         (ListAttributeTargetObserver):
2893         * html/PublicURLManager.h:
2894         (PublicURLManager):
2895         * html/StepRange.h:
2896         (StepDescription):
2897         * html/ValidationMessage.h:
2898         (ValidationMessage):
2899         * html/canvas/WebGLExtension.h:
2900         (WebGLExtension):
2901         * html/canvas/WebGLRenderingContext.cpp:
2902         (WebCore):
2903         (WebGLRenderingContextLostCallback):
2904         (WebGLRenderingContextErrorMessageCallback):
2905         * html/parser/HTMLElementStack.h:
2906         (ElementRecord):
2907         * html/parser/HTMLMetaCharsetParser.h:
2908         (HTMLMetaCharsetParser):
2909         * inspector/DOMEditor.h:
2910         (DOMEditor):
2911         * inspector/InjectedScriptHost.h:
2912         (InspectableObject):
2913         * inspector/InjectedScriptManager.h:
2914         (InjectedScriptManager):
2915         * inspector/InspectorCSSAgent.cpp:
2916         (SelectorProfile):
2917         * inspector/InspectorCounters.h:
2918         (ThreadLocalInspectorCounters):
2919         * inspector/InspectorDOMAgent.cpp:
2920         (RevalidateStyleAttributeTask):
2921         * inspector/InspectorFrontendClientLocal.cpp:
2922         (InspectorBackendDispatchTask):
2923         * inspector/InspectorHistory.h:
2924         (InspectorHistory):
2925         (Action):
2926         * inspector/InspectorOverlay.h:
2927         (HighlightConfig):
2928         (InspectorOverlay):
2929         * inspector/InspectorState.h:
2930         (InspectorState):
2931         * inspector/InspectorStyleSheet.cpp:
2932         (ParsedStyleSheet):
2933         * inspector/InspectorWorkerAgent.cpp:
2934         (InspectorWorkerAgent::WorkerFrontendChannel):
2935         * inspector/NetworkResourcesData.h:
2936         (NetworkResourcesData):
2937         (ResourceData):
2938         * inspector/WorkerInspectorController.cpp:
2939         * loader/EmptyClients.h:
2940         (EmptyChromeClient):
2941         * loader/ResourceLoadScheduler.h:
2942         (ResourceLoadScheduler):
2943         (HostInformation):
2944         * loader/icon/IconDatabase.cpp:
2945         (DefaultIconDatabaseClient):
2946         (ClientWorkItem):
2947         * page/ContentSecurityPolicy.cpp:
2948         (CSPDirectiveList):
2949         * page/ContentSecurityPolicy.h:
2950         (ContentSecurityPolicy):
2951         * page/FrameActionScheduler.h:
2952         (FrameActionScheduler):
2953         * page/MemoryInfo.cpp:
2954         (HeapSizeCache):
2955         * platform/CalculationValue.h:
2956         (CalcExpressionNode):
2957         * platform/Cursor.h:
2958         (Cursor):
2959         * platform/Decimal.h:
2960         (Decimal):
2961         * platform/Length.cpp:
2962         (CalculationValueHandleMap):
2963         * platform/MemoryPressureHandler.h:
2964         (MemoryPressureHandler):
2965         * platform/PlatformKeyboardEvent.h:
2966         (PlatformKeyboardEvent):
2967         * platform/ScrollAnimator.h:
2968         (ScrollAnimator):
2969         * platform/graphics/GlyphPageTreeNode.h:
2970         (GlyphPageTreeNode):
2971         * platform/graphics/GraphicsContext.h:
2972         (GraphicsContextStateSaver):
2973         * platform/graphics/GraphicsLayer.h:
2974         (AnimationValue):
2975         * platform/graphics/IntRect.h:
2976         (IntRect):
2977         * platform/graphics/ShadowBlur.cpp:
2978         (ScratchBuffer):
2979         * platform/graphics/TextRun.h:
2980         (TextRun):
2981         * platform/graphics/TiledBackingStoreBackend.h:
2982         (TiledBackingStoreBackend):
2983         * platform/graphics/WidthIterator.h:
2984         (WidthIterator):
2985         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
2986         (StreamingClient):
2987         * platform/graphics/opengl/Extensions3DOpenGL.h:
2988         (Extensions3DOpenGL):
2989         * platform/graphics/texmap/TextureMapper.h:
2990         (TextureMapper):
2991         * platform/graphics/texmap/TextureMapperGL.cpp:
2992         (TextureMapperGLData):
2993         * platform/graphics/texmap/TextureMapperImageBuffer.h:
2994         (TextureMapperImageBuffer):
2995         * platform/graphics/texmap/TextureMapperLayer.h:
2996         (TextureMapperLayer):
2997         * platform/image-decoders/bmp/BMPImageReader.h:
2998         (BMPImageReader):
2999         * platform/image-decoders/gif/GIFImageReader.h:
3000         (GIFFrameReader):
3001         (GIFImageReader):
3002         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
3003         (JPEGImageReader):
3004         * platform/image-decoders/png/PNGImageDecoder.cpp:
3005         (PNGImageReader):
3006         * platform/network/BlobRegistryImpl.h:
3007         (BlobRegistryImpl):
3008         * platform/network/ResourceResponseBase.h:
3009         (CrossThreadResourceResponseDataBase):
3010         * platform/text/TextCodecICU.h:
3011         (ICUConverterWrapper):
3012         * rendering/FlowThreadController.h:
3013         (FlowThreadController):
3014         * rendering/RenderBoxRegionInfo.h:
3015         (RenderBoxRegionInfo):
3016         * rendering/RenderLayer.h:
3017         (ClipRects):
3018         (ClipRectsCache):
3019         * rendering/RenderLayerCompositor.h:
3020         (RenderLayerCompositor):
3021         * rendering/WrapShapeInfo.h:
3022         (WrapShapeInfo):
3023         * rendering/style/NinePieceImage.h:
3024         (NinePieceImageData):
3025         * rendering/svg/RenderSVGResourceFilter.h:
3026         (FilterData):
3027         * rendering/svg/RenderSVGResourceGradient.h:
3028         (GradientData):
3029         * rendering/svg/RenderSVGResourcePattern.h:
3030         (PatternData):
3031         * rendering/svg/SVGResources.h:
3032         (ClipperFilterMaskerData):
3033         (MarkerData):
3034         (FillStrokeData):
3035         * svg/SVGAngle.h:
3036         (SVGAngle):
3037         * svg/SVGLength.h:
3038         (SVGLength):
3039         * svg/SVGPreserveAspectRatio.h:
3040         (SVGPreserveAspectRatio):
3041         * svg/graphics/SVGImageCache.h:
3042         (SVGImageCache):
3043         * svg/properties/SVGPropertyInfo.h:
3044         (SVGPropertyInfo):
3045         * workers/WorkerEventQueue.h:
3046         (WorkerEventQueue):
3047         * xml/parser/MarkupTokenBase.h:
3048         (DoctypeDataBase):
3049         * xml/parser/XMLDocumentParserLibxml2.cpp:
3050         (PendingCallbacks):
3051         (OffsetBuffer):
3052         * xml/parser/XMLToken.h:
3053         (XMLDeclarationData):
3054
3055 2012-09-14  Andrey Adaikin  <aandrey@chromium.org>
3056
3057         Web Inspector: [WebGL] Refactoring: move the proxy wrapping method up to the base class
3058         https://bugs.webkit.org/show_bug.cgi?id=96515
3059
3060         Reviewed by Vsevolod Vlasov.
3061
3062         Move the proxyObject() method up from WebGLRenderingContextResource to the Resource class, so that it could be reused later for wrapping a 2D context.
3063
3064         * inspector/InjectedScriptWebGLModuleSource.js:
3065         (.):
3066
3067 2012-09-14  Kangil Han  <kangil.han@samsung.com>
3068
3069         Fix unused parameter compile warnings in WebCore.
3070         https://bugs.webkit.org/show_bug.cgi?id=96712
3071
3072         Reviewed by Ryosuke Niwa.
3073
3074         Fixed unused parameter compile warning messages(-Wunused-parameter) during EFL build.
3075         There are two kinds of stuff related to this warnings.
3076         First one is that the parameter value has not been used anywhere inside the function.
3077         Other one is that usability of parameter value is depended on option, i.e. ACCESSIBILITY.
3078
3079         * accessibility/AXObjectCache.h:
3080         (WebCore::AXObjectCache::setEnhancedUserInterfaceAccessibility):
3081         (WebCore::AXObjectCache::postNotification):
3082         * inspector/InspectorPageAgent.cpp:
3083         (WebCore::InspectorPageAgent::setGeolocationOverride):
3084         * loader/FrameLoaderClient.h:
3085         (WebCore::FrameLoaderClient::registerIntentService):
3086         * page/Frame.cpp:
3087         (WebCore::Frame::layerTreeAsText):
3088         * page/FrameView.cpp:
3089         (WebCore::FrameView::setScrollingPerformanceLoggingEnabled):
3090         * page/efl/EventHandlerEfl.cpp:
3091         (WebCore::EventHandler::tabsToAllFormControls):
3092         (WebCore::EventHandler::passMouseDownEventToWidget):
3093         * page/scrolling/ScrollingCoordinator.cpp:
3094         (WebCore::scrollLayerForFrameView):
3095         * platform/RuntimeApplicationChecks.cpp:
3096         (WebCore::mainBundleIsEqualTo):
3097         * platform/ScrollView.cpp:
3098         (WebCore::ScrollView::platformSetScrollOrigin):
3099         * platform/cairo/WidgetBackingStoreCairo.cpp:
3100         (WebCore::createSurfaceForBackingStore):
3101         * platform/efl/ContextMenuEfl.cpp:
3102         (WebCore::platformMenuDescription):
3103         * platform/efl/ContextMenuItemEfl.cpp:
3104         (WebCore::ContextMenuItem::ContextMenuItem):
3105         * platform/efl/DragDataEfl.cpp:
3106         (WebCore::DragData::asFilenames):
3107         (WebCore::DragData::containsURL):
3108         (WebCore::DragData::asURL):
3109         * platform/efl/GamepadsEfl.cpp:
3110         (WebCore::GamepadsEfl::onGamePadChange):
3111         * platform/efl/LocalizedStringsEfl.cpp:
3112         (WebCore::imageTitle):
3113         (WebCore::localizedMediaControlElementString):
3114         (WebCore::localizedMediaControlElementHelpText):
3115         (WebCore::localizedMediaTimeDescription):
3116         * platform/efl/PasteboardEfl.cpp:
3117         (WebCore::Pasteboard::writeSelection):
3118         (WebCore::Pasteboard::writeImage):
3119         (WebCore::Pasteboard::documentFragment):
3120         * platform/efl/PlatformScreenEfl.cpp:
3121         (WebCore::screenRect):
3122         * platform/efl/RenderThemeEfl.cpp:
3123         (WebCore::RenderThemeEfl::adjustSliderTrackStyle):
3124         (WebCore::RenderThemeEfl::systemFont):
3125         (WebCore::RenderThemeEfl::paintMediaSliderThumb):
3126         (WebCore::RenderThemeEfl::paintMediaVolumeSliderContainer):
3127         (WebCore::RenderThemeEfl::paintMediaVolumeSliderTrack):
3128         (WebCore::RenderThemeEfl::paintMediaVolumeSliderThumb):
3129         (WebCore::RenderThemeEfl::paintMediaCurrentTime):
3130         * platform/efl/ScrollbarEfl.cpp:
3131         (scrollbarEflEdjeMessage):
3132         * platform/efl/ScrollbarThemeEfl.cpp:
3133         (WebCore::ScrollbarThemeEfl::scrollbarThickness):
3134         (WebCore::ScrollbarThemeEfl::registerScrollbar):
3135         (WebCore::ScrollbarThemeEfl::unregisterScrollbar):
3136         * platform/efl/TemporaryLinkStubs.cpp:
3137         (WebCore::signedPublicKeyAndChallengeString):
3138         * platform/efl/WidgetEfl.cpp:
3139         (WebCore::Widget::setFocus):
3140         (WebCore::Widget::paint):
3141         * platform/graphics/GraphicsContext.cpp:
3142         (WebCore::GraphicsContext::setPlatformTextDrawingMode):
3143         * platform/graphics/ImageSource.cpp:
3144         (WebCore::ImageSource::orientationAtIndex):
3145         * platform/graphics/MediaPlayer.cpp:
3146         (WebCore::MediaPlayer::supportsType):
3147         * platform/graphics/cairo/FontCairoHarfbuzzNG.cpp:
3148         (WebCore::Font::drawComplexText):
3149         * platform/graphics/cairo/GraphicsContextCairo.cpp:
3150         (WebCore::adjustFocusRingLineWidth):
3151         (WebCore::GraphicsContext::drawLineForText):
3152         (WebCore::GraphicsContext::setPlatformFillColor):
3153         (WebCore::GraphicsContext::setPlatformStrokeColor):
3154         (WebCore::GraphicsContext::setURLForRect):
3155         (WebCore::GraphicsContext::setPlatformShadow):
3156         (WebCore::GraphicsContext::fillRoundedRect):
3157         * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
3158         (WebCore::GraphicsContextPlatformPrivate::syncContext):
3159         * platform/graphics/cairo/ImageBufferCairo.cpp:
3160         (WebCore::ImageBufferData::ImageBufferData):
3161         * platform/graphics/cairo/ImageCairo.cpp:
3162         (WebCore::Image::drawPattern):
3163         * platform/graphics/efl/IconEfl.cpp:
3164         (WebCore::Icon::createIconForFiles):
3165         (WebCore::Icon::paint):
3166         * platform/graphics/freetype/FontCacheFreeType.cpp:
3167         (WebCore::FontCache::getSimilarFontPlatformData):
3168         (WebCore::FontCache::getTraitsInFamily):
3169         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
3170         (WebCore::gstGWorldSyncMessageCallback):
3171         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
3172         * platform/graphics/gstreamer/VideoSinkGStreamer.cpp:
3173         (webkitVideoSinkMarshalVoidAndMiniObject):
3174         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
3175         (webKitWebSrcUriHandlerInit):
3176         (webKitWebSrcNeedDataCb):
3177         (webKitWebSrcEnoughDataCb):
3178         (webKitWebSrcSeekDataCb):
3179         (StreamingClient::didReceiveData):
3180         * platform/graphics/harfbuzz/ng/HarfBuzzNGFaceCairo.cpp:
3181         (WebCore::harfbuzzGetGlyph):
3182         (WebCore::harfbuzzGetGlyphHorizontalAdvance):
3183         (WebCore::harfbuzzGetGlyphHorizontalOrigin):
3184         (WebCore::harfbuzzGetGlyphExtents):
3185         (WebCore::harfbuzzCairoGetTable):
3186         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
3187         (WebCore::readColorProfile):
3188         (WebCore::init_source):
3189         (WebCore::fill_input_buffer):
3190         * platform/image-decoders/png/PNGImageDecoder.cpp:
3191         (WebCore::PNGImageDecoder::rowAvailable):
3192         * platform/network/soup/CookieStorageSoup.cpp:
3193         (WebCore::setCookieStoragePrivateBrowsingEnabled):
3194         * platform/network/soup/DNSSoup.cpp:
3195         (WebCore::resolvedCallback):
3196         * platform/network/soup/ProxyResolverSoup.cpp:
3197         (soup_proxy_resolver_wk_init):
3198         (soupProxyResolverWkGetProxyURIAsync):
3199         (soupProxyResolverWkGetProxyURISync):
3200         * platform/network/soup/ResourceHandleSoup.cpp:
3201         (WebCore::sendRequestCallback):
3202         (WebCore::addFormElementsToSoupMessage):
3203         (WebCore::requestStartedCallback):
3204         (WebCore::closeCallback):
3205         (WebCore::readCallback):
3206         * rendering/RenderTheme.cpp:
3207         (WebCore::RenderTheme::adjustRepaintRect):
3208
3209 2012-09-14  Charles Wei  <charles.wei@torchmobile.com.cn>
3210
3211         Need to clear exception in JSDictionary for operations that might have.
3212         https://bugs.webkit.org/show_bug.cgi?id=96614
3213
3214         Reviewed by Kentaro Hara.
3215
3216         Clear the exception if failed to convert the value inside the JSDictionary. 
3217         Otherwise, it might impact the following operations on the dictionary.
3218
3219         No new tests, the existing test at LayoutTest/storage/indexeddb/tutorial.html should work for JSC binding.
3220
3221         * bindings/js/JSDictionary.h:
3222         (WebCore::JSDictionary::tryGetPropertyAndResult):
3223
3224 2012-09-14  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
3225
3226         Add method to get the list of all available dictionaries
3227         https://bugs.webkit.org/show_bug.cgi?id=96518
3228
3229         Reviewed by Carlos Garcia Campos.
3230
3231         There is lack of the method in the TextCheckerEnchant class to get
3232         the list of all available/installed dictionaries. To set the
3233         dictionaries the client has to 'guess/hard code' the names of
3234         dictionaries that are not obvious and depend on OS configuration
3235         and installed packages. The list can be used by WebKit's GTK and
3236         EFL API for instance:
3237         webkit_web_context_set_spell_checking_languages(),
3238         ewk_text_checker_setting_spell_checking_languages_set()
3239         to set dictionaries used by Enchant.
3240
3241         To avoid names conflict a new one has been introduced for former
3242         getSpellCheckingLanguages. It has been changed to loadedSpellCheckingLanguages
3243         as it gets the current (in use) dictionaries. Additionally the 'get' prefix
3244         has been removed according to WebKit coding style.
3245
3246         * platform/text/enchant/TextCheckerEnchant.cpp:
3247         (TextCheckerEnchant::loadedSpellCheckingLanguages):
3248         Changed name from getSpellCheckingLanguages and added const modifier.
3249
3250         (TextCheckerEnchant::availableSpellCheckingLanguages):
3251         A newly added method to get available/installed dictionaries.
3252         Its output can be used as input for updateSpellCheckingLanguages().
3253
3254         * platform/text/enchant/TextCheckerEnchant.h:
3255         (TextCheckerEnchant):
3256
3257 2012-09-14  Dan Carney  <dcarney@google.com>
3258
3259         Remove V8DOMWindowShell::getEntered
3260         https://bugs.webkit.org/show_bug.cgi?id=96637
3261
3262         Reviewed by Adam Barth.
3263
3264         V8DOMWindowShell::getEntered was refactored so that the window shell
3265         no longer has to be kept alive by a v8 context but rather a smaller
3266         object.
3267
3268         No new tests. No change in functionality.
3269
3270         * bindings/v8/DOMData.cpp:
3271         (WebCore::DOMData::getCurrentStore):
3272         * bindings/v8/ScopedPersistent.h:
3273         (WebCore::ScopedPersistent::leakHandle):
3274         (ScopedPersistent):
3275         * bindings/v8/ScriptController.cpp:
3276         (WebCore::ScriptController::resetIsolatedWorlds):
3277         (WebCore::ScriptController::evaluateInIsolatedWorld):
3278         (WebCore::ScriptController::currentWorldContext):
3279         * bindings/v8/V8Binding.cpp:
3280         (WebCore::perContextDataForCurrentWorld):
3281         * bindings/v8/V8DOMWindowShell.cpp:
3282         (WebCore::setIsolatedWorldField):
3283         (WebCore::V8DOMWindowShell::toIsolatedContextData):
3284         (WebCore::isolatedContextWeakCallback):
3285         (WebCore::V8DOMWindowShell::disposeContext):
3286         (WebCore::V8DOMWindowShell::clearIsolatedShell):
3287         (WebCore):
3288         (WebCore::V8DOMWindowShell::initializeIfNeeded):
3289         (WebCore::V8DOMWindowShell::setIsolatedWorldSecurityOrigin):
3290         * bindings/v8/V8DOMWindowShell.h:
3291         (V8DOMWindowShell):
3292         (IsolatedContextData):
3293         (WebCore::V8DOMWindowShell::IsolatedContextData::create):
3294         (WebCore::V8DOMWindowShell::IsolatedContextData::world):
3295         (WebCore::V8DOMWindowShell::IsolatedContextData::perContextData):
3296         (WebCore::V8DOMWindowShell::IsolatedContextData::setSecurityOrigin):
3297         (WebCore::V8DOMWindowShell::IsolatedContextData::securityOrigin):
3298         (WebCore::V8DOMWindowShell::IsolatedContextData::IsolatedContextData):
3299         (WebCore::V8DOMWindowShell::enteredIsolatedContext):
3300         (WebCore::V8DOMWindowShell::enteredIsolatedContextData):
3301         * bindings/v8/V8DOMWrapper.h:
3302         (WebCore::V8DOMWrapper::getCachedWrapper):
3303         * bindings/v8/WorldContextHandle.cpp:
3304         (WebCore::WorldContextHandle::WorldContextHandle):
3305         * bindings/v8/custom/V8DocumentCustom.cpp:
3306         (WebCore::toV8):
3307         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
3308         (WebCore::toV8):
3309         * bindings/v8/custom/V8SVGDocumentCustom.cpp:
3310         (WebCore::toV8):
3311         * bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:
3312         (WebCore::V8XMLHttpRequest::constructorCallback):
3313
3314 2012-09-14  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3315
3316         Unreviewed, rolling out r128507.
3317         http://trac.webkit.org/changeset/128507
3318         https://bugs.webkit.org/show_bug.cgi?id=96659
3319
3320         Revert. r128507 makes too many crashes in EFL layout test bots.
3321
3322         * PlatformEfl.cmake:
3323         * platform/efl/RefPtrEfl.cpp: Renamed from Source/WTF/wtf/efl/RefPtrEfl.cpp.
3324         (WTF):
3325         (WTF::refIfNotNull):
3326         (WTF::derefIfNotNull):
3327         * platform/efl/RefPtrEfl.h: Renamed from Source/WTF/wtf/efl/RefPtrEfl.h.
3328         (WTF):
3329         * platform/efl/RenderThemeEfl.cpp:
3330         (WebCore::RenderThemeEfl::ThemePartCacheEntry::create):
3331         (WebCore::RenderThemeEfl::loadTheme):
3332         (WebCore::RenderThemeEfl::applyPartDescriptionsFrom):
3333         * platform/efl/RenderThemeEfl.h:
3334         (RenderThemeEfl):
3335         (ThemePartCacheEntry):
3336
3337 2012-09-13  Patrick Gansterer  <paroga@webkit.org>
3338
3339         Reuse floating point formatting of TextStream in [SVG]RenderTreeAsText.cpp
3340         https://bugs.webkit.org/show_bug.cgi?id=96264
3341
3342         Reviewed by Benjamin Poulain.
3343
3344         RenderTreeAsText uses the same format for streaming out floats as TextStream
3345         does. Replace formatNumberRespectingIntegers() with a new overload to the
3346         operator<< to reuse the special cases for numbers which take advantage of
3347         StringBuilder::appendNumber() and avoid a temporary StringImpl.
3348
3349         * platform/text/TextStream.cpp:
3350         (WebCore::hasFractions):
3351         (WebCore::TextStream::operator<<):
3352         * platform/text/TextStream.h:
3353         * rendering/RenderTreeAsText.cpp:
3354         (WebCore::operator<<):
3355         * rendering/RenderTreeAsText.h:
3356         * rendering/svg/SVGRenderTreeAsText.cpp:
3357         (WebCore::operator<<):
3358
3359 2012-09-13  Sheriff Bot  <webkit.review.bot@gmail.com>
3360
3361         Unreviewed, rolling out r128552.
3362         http://trac.webkit.org/changeset/128552
3363         https://bugs.webkit.org/show_bug.cgi?id=96729
3364
3365         Still breaks the test on chromium linux debug. It's quite
3366         annoying. (Requested by rniwa on #webkit).
3367
3368         * WebCore.exp.in:
3369         * dom/ContainerNode.cpp:
3370         (WebCore::ContainerNode::removeChild):
3371         (WebCore::ContainerNode::removeChildren):
3372         * dom/Document.cpp:
3373         (WebCore::Document::recalcStyle):
3374         * dom/Element.cpp:
3375         (WebCore::Element::attach):
3376         (WebCore::Element::detach):
3377         * page/mac/EventHandlerMac.mm:
3378         (WebCore::EventHandler::passMouseDownEventToWidget):
3379         * rendering/RenderWidget.cpp:
3380         (WebCore):
3381         (WebCore::widgetNewParentMap):
3382         (WebCore::RenderWidget::suspendWidgetHierarchyUpdates):
3383         (WebCore::RenderWidget::resumeWidgetHierarchyUpdates):
3384         (WebCore::moveWidgetToParentSoon):
3385         * rendering/RenderWidget.h:
3386         (RenderWidget):
3387
3388 2012-09-13  Kevin Funk  <kevin.funk@kdab.com>
3389
3390         Make compile with both OS(WINCE) and PLATFORM(QT) support
3391         https://bugs.webkit.org/show_bug.cgi?id=95536
3392
3393         Reviewed by Simon Hausmann.
3394
3395         * WebCore.pri:
3396         Set defines for the WinCE platform build
3397         * platform/graphics/BitmapImage.cpp:
3398         Use default implementation in BitmapImage::reportMemoryUsage() when Qt support available
3399         * platform/graphics/GraphicsContext.cpp:
3400         Same as above: use default implementation
3401          * platform/win/ClipboardUtilitiesWin.cpp:
3402         Remove unnecessary include
3403
3404 2012-09-13  Keishi Hattori  <keishi@webkit.org>
3405
3406         Create Localizer factory method for LocaleWin
3407         https://bugs.webkit.org/show_bug.cgi?id=96667
3408
3409         Reviewed by Kent Tamura.
3410
3411         Preparing to use Localizer instead of LocaleMac/Win/ICU.
3412
3413         No new tests. No behavior change.
3414
3415         * platform/text/LocaleWin.cpp:
3416         (WebCore):
3417         (WebCore::extractLanguageCode): Extract the language code from a locale.
3418         (WebCore::LCIDFromLocaleInternal): Returns LCID for a given locale. Returns 0 when locale is invalid.
3419         (WebCore::LCIDFromLocale): Returns LCID for a given locale. Returns default language LCID when locale is invalid.
3420         (WebCore::Localizer::create):
3421         (WebCore::LocaleWin::currentLocale):
3422
3423 2012-09-13  Ryosuke Niwa  <rniwa@webkit.org>
3424
3425         suspend/resumeWidgetHierarchyUpdates should be a RAII object
3426         https://bugs.webkit.org/show_bug.cgi?id=96706
3427
3428         Reviewed by Simon Fraser.
3429
3430         Replaced suspendWidgetHierarchyUpdates and resumeWidgetHierarchyUpdates by WidgetHierarchyUpdatesSuspensionScope.
3431
3432         * WebCore.exp.in: Export new symbols.
3433         * dom/ContainerNode.cpp:
3434         (WebCore::ContainerNode::removeChild):
3435         (WebCore::ContainerNode::removeChildren):
3436         * dom/Document.cpp:
3437         (WebCore::Document::recalcStyle):
3438         * dom/Element.cpp:
3439         (WebCore::Element::attach):
3440         (WebCore::Element::detach):
3441         * page/mac/EventHandlerMac.mm:
3442         (WebCore::EventHandler::passMouseDownEventToWidget):
3443         * rendering/RenderWidget.cpp:
3444         (WebCore):
3445         (WebCore::WidgetHierarchyUpdatesSuspensionScope::widgetNewParentMap):
3446         (WebCore::WidgetHierarchyUpdatesSuspensionScope::moveWidgets):
3447         (WebCore::moveWidgetToParentSoon):
3448         * rendering/RenderWidget.h:
3449         (WidgetHierarchyUpdatesSuspensionScope):
3450         (WebCore::WidgetHierarchyUpdatesSuspensionScope::WidgetHierarchyUpdatesSuspensionScope):
3451         (WebCore::WidgetHierarchyUpdatesSuspensionScope::~WidgetHierarchyUpdatesSuspensionScope):
3452         (WebCore::WidgetHierarchyUpdatesSuspensionScope::isSuspended):
3453         (WebCore::WidgetHierarchyUpdatesSuspensionScope::scheduleWid