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