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