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