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