Encapsulate PlatformMessagePortChannel a little better yet
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2013-03-17  Alexey Proskuryakov  <ap@apple.com>
2
3         Encapsulate PlatformMessagePortChannel a little better yet
4         https://bugs.webkit.org/show_bug.cgi?id=112479
5
6         Reviewed by Sam Weinig.
7
8         * dom/MessagePortChannel.h: We no longer expose PlatformMessagePortChannel in
9         public functions in cross-platform code.
10
11         * dom/default/PlatformMessagePortChannel.cpp:
12         (WebCore::MessagePortChannel::createChannel): Tweaked the factory method to avoid
13         using the old create() function.
14         (WebCore::MessagePortChannel::~MessagePortChannel): Removed an unhelpful comment.
15
16 2013-03-17  Kent Tamura  <tkent@chromium.org>
17
18         INPUT_MULTIPLE_FIELDS_UI: Don't update shadow tree by updating any attribute
19         https://bugs.webkit.org/show_bug.cgi?id=111990
20
21         Reviewed by Hajime Morrita.
22
23         Bug detail:
24         Typing '1' then '1' into an hour field doesn't set the field to
25         '11' if an attribute is updated during these two keyboard inputs
26         because we always re-construct a shadow DOM tree by updating any
27         attributes and a shadow node records keyboard input state.
28
29         How to fix:
30         We should not re-construct a shadow DOM tree by updating
31         unaffected attributes. For example, we should re-construct it by
32         updating 'min' attribute, but we should not by updating 'class'
33         attribute.
34         We have InputType::updateInnerTextValue call in parseAttribute for
35         text field input types. The multiple fields input types
36         re-construct shadow DOM tree in updateInnerTextValue. The
37         updateInnerTextValue call is unnecessary for the multiple fields
38         input types, and we should call it when it is necessary. So, we
39         add InputType::attributeChange and text field input types call
40         updateInnerTextValue in it, and other input types don't.
41         Also, multiple fields input types need to call
42         updateInnerTextValue by 'value' attribute change. We add
43         InputType::valueAttributeChanged.
44
45         Tests: Update
46         fast/forms/time-multiple-fields/time-multiple-fields-keyboard-events.html. The
47         value attribute change behavior is covered by
48         time-multiple-fields-change-layout-by-value.html and
49         time-multiple-fields-spinbutton-change-and-input-events.html.
50
51         * html/HTMLInputElement.cpp:
52         (WebCore::HTMLInputElement::parseAttribute):
53         - Add a valueAttributeChanged call.
54         - Calls InputType::attributeChanged
55         * html/InputType.cpp:
56         (WebCore::InputType::attributeChanged): Added an empty implementation.
57         (WebCore::InputType::valueAttributeChanged): Ditto.
58         * html/InputType.h:
59         (InputType): Declare attributeChanged and valueAttributeChanged.
60         * html/TextFieldInputType.cpp:
61         (WebCore::TextFieldInputType::attributeChanged):
62         Added. Always call updateInnerTextValue.
63         * html/TextFieldInputType.h:
64         (TextFieldInputType): Declare attributeChanged.
65         * html/BaseMultipleFieldsDateAndTimeInputType.cpp:
66         (WebCore::BaseMultipleFieldsDateAndTimeInputType::valueAttributeChanged):
67         Added. Re-construct shadow DOM tree if the input has no dirty value.
68         * html/BaseMultipleFieldsDateAndTimeInputType.h:
69         (BaseMultipleFieldsDateAndTimeInputType): Declare valueAttributeChanged.
70
71 2013-03-17  Rafael Weinstein  <rafaelw@chromium.org>
72
73         [HTMLTemplateElement] prevent </template> from matching "template" in a non-HTML tags on the stack of open elements
74         https://bugs.webkit.org/show_bug.cgi?id=112487
75
76         Reviewed by Adam Barth.
77
78         When processing an end template tag, the parser now pops until a "template" tag is parsed, but now ensures that
79         the "template" it pops is in the HTML namespace.
80
81         Tests added to the html5lib test suite.
82
83         * html/parser/HTMLElementStack.cpp:
84         (WebCore::HTMLElementStack::popUntil):
85         (WebCore):
86         (WebCore::HTMLElementStack::popUntilPopped):
87         * html/parser/HTMLElementStack.h:
88         (HTMLElementStack):
89         * html/parser/HTMLTreeBuilder.cpp:
90         (WebCore::HTMLTreeBuilder::processTemplateEndTag):
91
92 2013-03-17  Adam Barth  <abarth@webkit.org>
93
94         Legacy CSS vendor prefixes should only work for Dashboard
95         https://bugs.webkit.org/show_bug.cgi?id=111890
96
97         Reviewed by Eric Seidel.
98
99         Our experience with the Chromium port is that these legacy CSS vendor
100         prefixes (-apple- and -khtml-) are not needed for web compatibility.
101         There is reason to believe, however, that they are needed for
102         compatibility with Mac OS X Dashboard widgets.
103
104         This patch makes the code for these legacy CSS vendor prefixes
105         enabled at runtime and only enables them when running in Dashboard
106         compatibility mode. This is the first step towards the plan outlined in
107         https://lists.webkit.org/pipermail/webkit-dev/2013-March/024085.html.
108
109         This patch also removes support for ENABLE(LEGACY_CSS_VENDOR_PREFIXES)
110         from the V8 bindings because V8 is never used with Dashboard.
111
112         * bindings/generic/RuntimeEnabledFeatures.cpp:
113         (WebCore):
114         * bindings/generic/RuntimeEnabledFeatures.h:
115         (RuntimeEnabledFeatures):
116         (WebCore::RuntimeEnabledFeatures::setLegacyCSSVendorPrefixesEnabled):
117         (WebCore::RuntimeEnabledFeatures::legacyCSSVendorPrefixesEnabled):
118         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
119         (WebCore::getCSSPropertyNamePrefix):
120         (WebCore::cssPropertyIDForJSCSSPropertyName):
121         * bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp:
122         (WebCore::cssPropertyInfo):
123         * css/CSSParser.cpp:
124         (WebCore::CSSParser::rewriteSpecifiers):
125
126 2013-03-17  David Kilzer  <ddkilzer@apple.com>
127
128         BUILD FIX (r145592): AutodrainedPool.h moved to WTF
129         <http://webkit.org/b/112171>
130
131         Fixes the following build failure:
132
133             Source/WebCore/platform/audio/mac/AudioBusMac.mm:32:9: fatal error: 'AutodrainedPool.h' file not found
134             #import "AutodrainedPool.h"
135                     ^
136             1 error generated.
137
138         * platform/audio/mac/AudioBusMac.mm: Fix include.
139
140 2013-03-17  Gustavo Noronha Silva  <gns@gnome.org>
141
142         [GTK] Fix and improve dist hooks for translations
143         https://bugs.webkit.org/show_bug.cgi?id=112519
144
145         Reviewed by Carlos Garcia Campos.
146
147         * GNUmakefile.am: move translation-related rules and lists to the po directory's
148         GNUmakefile.am.
149
150 2013-03-17  Emil A Eklund  <eae@chromium.org>
151
152         Move font-family applying code to StyleBuilder
153         https://bugs.webkit.org/show_bug.cgi?id=112441
154
155         Reviewed by Allan Sandfeld Jensen.
156
157         Many of the font related properties were moved to StyleBuilder in r87362
158         two years ago. Move font-family as well so that all font properties are
159         handled the same way.
160
161         No new tests, no change in functionality.
162
163         * css/StyleBuilder.cpp:
164         (ApplyPropertyFontFamily):
165         (WebCore::ApplyPropertyFontFamily::applyInheritValue):
166         (WebCore::ApplyPropertyFontFamily::applyInitialValue):
167         (WebCore::ApplyPropertyFontFamily::applyValue):
168         (WebCore::ApplyPropertyFontFamily::createHandler):
169         (WebCore::StyleBuilder::StyleBuilder):
170         Add ApplyPropertyFontFamily for CSSPropertyFontFamily.
171
172         * css/StyleResolver.cpp:
173         (WebCore::StyleResolver::applyProperty):
174         Remove CSSPropertyFontFamily from the giant switch statement.
175
176 2013-03-17  Carlos Garcia Campos  <cgarcia@igalia.com>
177
178         [ENCHANT] Invalid charset encoding used for spelling guess context menu items
179         https://bugs.webkit.org/show_bug.cgi?id=112516
180
181         Reviewed by Gustavo Noronha Silva.
182
183         Convert spelling guesses returned by enchant to UTF-16 before
184         passing them to WebCore.
185
186         * platform/text/enchant/TextCheckerEnchant.cpp:
187         (WebCore::TextCheckerEnchant::getGuessesForWord): Use
188         String::fromUTF8().
189
190 2013-03-17  Jinwoo Song  <jinwoo7.song@samsung.com>
191
192         [EFL] Provide default cursor groups as cursor.edc
193         https://bugs.webkit.org/show_bug.cgi?id=112403
194
195         Reviewed by Gyuyoung Kim.
196
197         This patch provides a cursor.edc to use the CSS cursor images files in the
198         WebCore/Resources directory. cursor.edc is included in the default.edc
199         so that views can use it by default.
200
201         * platform/efl/DefaultTheme/CMakeLists.txt:
202         * platform/efl/DefaultTheme/default.edc:
203         * platform/efl/DefaultTheme/widget/cursor/cursor.edc: Added.
204
205 2013-03-16  Pratik Solanki  <psolanki@apple.com>
206
207         Disable High DPI Canvas on iOS
208         https://bugs.webkit.org/show_bug.cgi?id=112511
209
210         Reviewed by Joseph Pecoraro.
211
212         * Configurations/FeatureDefines.xcconfig:
213
214 2013-03-16  Simon Fraser  <simon.fraser@apple.com>
215
216         Reflected video elements hit assertion
217         https://bugs.webkit.org/show_bug.cgi?id=112490
218
219         Disable reflections on video again, since there's some bad behavior
220         caused by an underlying system framework.
221
222         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
223         (PlatformCALayer::clone):
224
225 2013-03-16  Tom Sepez  <tsepez@chromium.org>
226
227         [v8] Disable binding integrity check for WebCore::Text
228         https://bugs.webkit.org/show_bug.cgi?id=112462
229
230         Reviewed by Kentaro Hara.
231
232         Test: fast/dom/split-cdata.xml
233
234         * dom/Text.idl:
235
236 2013-03-16  Chris Fleizach  <cfleizach@apple.com>
237
238         AX: aria-hidden on container does not hide descendant popup buttons
239         https://bugs.webkit.org/show_bug.cgi?id=112373
240
241         Reviewed by Ryosuke Niwa.
242
243         There are a number of subclass AX objects that implement accessibilityIsIgnored()
244         to always return false. This means that even if their parent is aria-hidden=true
245         they still show up in the tree.
246
247         This re-organizes this base case of aria-hidden into AccessibilityObject so that
248         it can be re-used by these special subclasses where appropriate.
249
250         Test: accessibility/aria-hidden-hides-all-elements.html
251
252         * accessibility/AccessibilityImageMapLink.h:
253         (WebCore::AccessibilityImageMapLink::isImageMapLink):
254         * accessibility/AccessibilityList.cpp:
255         (WebCore::AccessibilityList::computeAccessibilityIsIgnored):
256         * accessibility/AccessibilityListBox.cpp:
257         (WebCore):
258         * accessibility/AccessibilityListBox.h:
259         (AccessibilityListBox):
260         * accessibility/AccessibilityListBoxOption.cpp:
261         (WebCore::AccessibilityListBoxOption::computeAccessibilityIsIgnored):
262         * accessibility/AccessibilityMediaControls.cpp:
263         (WebCore::AccessibilityMediaControl::computeAccessibilityIsIgnored):
264         (WebCore::AccessibilityMediaControlsContainer::computeAccessibilityIsIgnored):
265         (WebCore::AccessibilityMediaTimeDisplay::computeAccessibilityIsIgnored):
266         * accessibility/AccessibilityMediaControls.h:
267         (AccessibilityMediaControlsContainer):
268         * accessibility/AccessibilityMenuList.h:
269         (WebCore::AccessibilityMenuList::roleValue):
270         * accessibility/AccessibilityMenuListOption.cpp:
271         (WebCore::AccessibilityMenuListOption::computeAccessibilityIsIgnored):
272         * accessibility/AccessibilityMenuListPopup.cpp:
273         (WebCore::AccessibilityMenuListPopup::computeAccessibilityIsIgnored):
274         * accessibility/AccessibilityMockObject.cpp:
275         (WebCore::AccessibilityMockObject::computeAccessibilityIsIgnored):
276         (WebCore):
277         * accessibility/AccessibilityMockObject.h:
278         (AccessibilityMockObject):
279         * accessibility/AccessibilityObject.cpp:
280         (WebCore::AccessibilityObject::accessibilityIsIgnoredDefaultForObject):
281         (WebCore):
282         (WebCore::AccessibilityObject::ariaIsHidden):
283         (WebCore::AccessibilityObject::accessibilityIsIgnoredBase):
284         * accessibility/AccessibilityObject.h:
285         (AccessibilityObject):
286         * accessibility/AccessibilityProgressIndicator.cpp:
287         (WebCore::AccessibilityProgressIndicator::computeAccessibilityIsIgnored):
288         * accessibility/AccessibilityRenderObject.cpp:
289         (WebCore):
290         (WebCore::AccessibilityRenderObject::accessibilityIsIgnoredBase):
291         (WebCore::AccessibilityRenderObject::addImageMapChildren):
292         * accessibility/AccessibilityRenderObject.h:
293         (AccessibilityRenderObject):
294         * accessibility/AccessibilityScrollbar.h:
295         (AccessibilityScrollbar):
296         * accessibility/AccessibilitySlider.cpp:
297         (WebCore):
298         (WebCore::AccessibilitySliderThumb::computeAccessibilityIsIgnored):
299         * accessibility/AccessibilitySlider.h:
300         (AccessibilitySlider):
301         * accessibility/AccessibilitySpinButton.h:
302         (WebCore::AccessibilitySpinButton::roleValue):
303         (AccessibilitySpinButtonPart):
304
305 2013-03-15  Simon Fraser  <simon.fraser@apple.com>
306
307         Reflected video elements hit assertion on Lion
308         https://bugs.webkit.org/show_bug.cgi?id=112490
309
310         Disable the new reflected video functionality added in r145915
311         on Lion because of a nasty re-entrancy problem. Tracked by bug 112490.
312
313         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
314         (PlatformCALayer::clone):
315
316 2013-03-15  Bem Jones-Bey  <bjonesbe@adobe.com>
317
318         [CSS Exclusions] shape-outside on floats for circle and ellipse shapes
319         https://bugs.webkit.org/show_bug.cgi?id=98673
320
321         Reviewed by Dirk Schulze.
322
323         Enable circles and ellipses for shape-outside on floats. Most of the
324         code already supports them, just needed to turn them on and add tests.
325
326         Tests: fast/exclusions/shape-outside-floats/shape-outside-floats-simple-circle.html
327                fast/exclusions/shape-outside-floats/shape-outside-floats-simple-ellipse.html
328
329         * rendering/ExclusionShapeOutsideInfo.cpp:
330         (WebCore::ExclusionShapeOutsideInfo::isEnabledFor): Enable circles and
331             ellipses. Also add a check for if the RenderBox is floating, since
332             that test should have been there all along, as shape outside is
333             only supported on floats for now.
334
335 2013-03-15  Christian Biesinger  <cbiesinger@chromium.org>
336
337         Convert old flexbox uses in html.css to new flexbox (non-<select>)
338         https://bugs.webkit.org/show_bug.cgi?id=110837
339
340         Reviewed by Ojan Vafai.
341
342         Covered by existing tests.
343
344         * rendering/RenderTextControlSingleLine.cpp:
345         (WebCore::RenderTextControlSingleLine::layout):
346         After we set our descendants' heights, we need to mark them for
347         layout.
348         (WebCore::RenderTextControlSingleLine::createInnerBlockStyle):
349         Use new-flexbox style setters.
350
351         * css/html.css:
352         (input::-webkit-textfield-decoration-container):
353         (input[type="search"]::-webkit-search-cancel-button):
354         (input[type="search"]::-webkit-search-decoration):
355         (input[type="search"]::-webkit-search-results-decoration):
356         (input[type="search"]::-webkit-search-results-button):
357         (input::-webkit-inner-spin-button):
358         (input::-webkit-input-speech-button):
359         (textarea):
360         (input[type="file"]):
361         (input[type="color"]::-webkit-color-swatch-wrapper):
362         (input[type="color"]::-webkit-color-swatch):
363         (::-webkit-validation-bubble-message):
364         (::-webkit-validation-bubble-text-block):
365         * css/themeWin.css:
366         (input[type="search"]::-webkit-search-results-decoration):
367         (input[type="search"]::-webkit-search-results-button):
368         Convert -webkit-box to -webkit-flex and adjust related properties.
369         Notably switch to auto margins for centering the speech button as well
370         as the search result and cancel buttons to stay compatible with the
371         previous centering behaviour. This does not produce visible
372         differences but eliminates the render tree dump changes.
373         * html/TextFieldInputType.cpp:
374         (WebCore::TextFieldInputType::createShadowSubtree):
375         * html/shadow/TextControlInnerElements.cpp:
376         (WebCore::TextControlInnerContainer::TextControlInnerContainer):
377         (WebCore):
378         (WebCore::TextControlInnerContainer::create):
379         (WebCore::TextControlInnerContainer::createRenderer):
380         * html/shadow/TextControlInnerElements.h:
381         (TextControlInnerContainer):
382         (WebCore):
383         * rendering/RenderTextControl.cpp:
384         (WebCore::RenderTextControlInnerContainer::RenderTextControlInnerContainer):
385         (WebCore):
386         (WebCore::RenderTextControlInnerContainer::~RenderTextControlInnerContainer):
387         * rendering/RenderTextControl.h:
388         (WebCore):
389         (RenderTextControlInnerContainer):
390         Create a new DOM element & renderer type for the textfield-decoration
391         div (the direct child of the <input> in the shadow dom if we have a
392         special input field). This is necessary because new-flexbox uses a
393         different algorithm for calculating the baseline, which would
394         otherwise cause an <input> and an <input type=search> to not be
395         aligned with each other.
396         The new renderer just calls back to RenderBlock for calculating the
397         baseline.
398         * rendering/RenderTextControlSingleLine.cpp:
399         (WebCore::RenderTextControlSingleLine::layout):
400         Make sure to mark renderers as needing layout when we change their
401         style. This didn't use to be necessary because old-flexbox relayouts
402         children even when they are not marked for needing layout.
403         (WebCore::RenderTextControlSingleLine::createInnerBlockStyle):
404         Use new-flexbox CSS properties.
405         * html/shadow/TextFieldDecorationElement.cpp:
406         (WebCore::TextFieldDecorationElement::decorate):
407         Use new-flexbox CSS properties.
408
409 2013-03-15  Kenneth Russell  <kbr@google.com>
410
411         Unreviewed attempted build fix for Chromium Windows after r145929.
412         Verified this fix builds and works on Linux.
413         https://bugs.webkit.org/show_bug.cgi?id=96798
414
415         * bindings/v8/V8Binding.cpp:
416         (WebCore):
417
418 2013-03-15  Nate Chapin  <japhet@chromium.org>
419
420         Merge MainResourceLoader::willSendRequest into DocumentLoader 
421         https://bugs.webkit.org/show_bug.cgi?id=109757
422
423         This is one of the steps to merging MainResourceLoader entirely into
424         DocumentLoader, given the lack of clear division of responsibility
425         between the two.
426
427         Reviewed by Antti Koivisto.
428
429         No new tests, refactor only.
430
431         * loader/DocumentLoader.cpp:
432         (WebCore::DocumentLoader::mainResourceData):
433         (WebCore::DocumentLoader::isPostOrRedirectAfterPost):
434         (WebCore::DocumentLoader::willSendRequest):
435         (WebCore::DocumentLoader::callContinueAfterNavigationPolicy):
436         (WebCore::DocumentLoader::continueAfterNavigationPolicy):
437         (WebCore::DocumentLoader::startLoadingMainResource):
438         * loader/DocumentLoader.h:
439         * loader/MainResourceLoader.cpp:
440         (WebCore::MainResourceLoader::resourceData):
441         (WebCore::MainResourceLoader::redirectReceived):
442         (WebCore::MainResourceLoader::continueAfterContentPolicy):
443         (WebCore::MainResourceLoader::reportMemoryUsage):
444         (WebCore::MainResourceLoader::handleSubstituteDataLoadNow):
445         (WebCore::MainResourceLoader::load):
446         * loader/MainResourceLoader.h:
447         (WebCore::MainResourceLoader::takeIdentifierFromResourceLoader): Temporarily
448             exposed for moving from a normal load to SubstituteData load on redirect.
449
450 2013-03-15  Zhenyao Mo  <zmo@google.com>
451
452         Disable EXT_draw_buffers WebGL extension on Mac
453         https://bugs.webkit.org/show_bug.cgi?id=112486
454
455         Reviewed by Kenneth Russell.
456
457         * html/canvas/EXTDrawBuffers.cpp:
458         (WebCore::EXTDrawBuffers::supported):
459
460 2013-03-15  Dana Jansens  <danakj@chromium.org>
461
462         [chromium] Remove the background filter blur layout tests
463         https://bugs.webkit.org/show_bug.cgi?id=112372
464
465         Reviewed by James Robinson.
466
467         Remove the now-unused hacks to regression test the background
468         filter blur compositor feature.
469
470         * testing/Internals.cpp:
471         * testing/Internals.h:
472         (Internals):
473         * testing/Internals.idl:
474
475 2013-03-15  Alexey Proskuryakov  <ap@apple.com>
476
477         Reduce amount of platform specific code in MessagePortChannel
478         https://bugs.webkit.org/show_bug.cgi?id=112469
479
480         Reviewed by Sam Weinig.
481
482         * dom/MessagePortChannel.h: Ifdefed out an unused channel() function, except for
483         Chromium, where it is used. We certainly don't want to expose this implementation
484         detail as a public function.
485
486         * dom/default/PlatformMessagePortChannel.h: Removed functions that are no longer
487         delegated. Made class contents all public, as it's now basically a data storage
488         for MessagePortChannel.
489
490         * dom/default/PlatformMessagePortChannel.cpp:
491         (WebCore::MessagePortChannel::createChannel):
492         (WebCore::MessagePortChannel::~MessagePortChannel):
493         (WebCore::MessagePortChannel::entangleIfOpen):
494         (WebCore::MessagePortChannel::disentangle):
495         (WebCore::MessagePortChannel::postMessageToRemote):
496         (WebCore::MessagePortChannel::tryGetMessageFromRemote):
497         (WebCore::MessagePortChannel::close):
498         (WebCore::MessagePortChannel::isConnectedTo):
499         (WebCore::MessagePortChannel::hasPendingActivity):
500         (WebCore::MessagePortChannel::locallyEntangledPort):
501         (WebCore::PlatformMessagePortChannel::PlatformMessagePortChannel):
502         (WebCore::PlatformMessagePortChannel::entangledChannel):
503         Moved code from PlatformMessagePortChannel to MessagePortChannel. Added some
504         FIXMEs.
505
506 2013-03-15  Arvid Nilsson  <anilsson@rim.com>
507
508         [BlackBerry] Expose the compositing thread layer's draw rectangle to aid hit testing
509         https://bugs.webkit.org/show_bug.cgi?id=112255
510
511         Reviewed by Rob Buis.
512
513         PR 308284.
514         Reviewed internally by Yongxin Dai.
515
516         Add a getter for the layer renderer of a compositing thread layer.
517
518         No change in behavior, no new tests.
519
520         * platform/graphics/blackberry/LayerCompositingThread.h:
521         (WebCore::LayerCompositingThread::layerRenderer):
522
523 2013-03-15  Christian Biesinger  <cbiesinger@chromium.org>
524
525         Convert <select> to new-flexbox
526         https://bugs.webkit.org/show_bug.cgi?id=112395
527
528         Reviewed by Ojan Vafai.
529
530         Covered by existing tests.
531
532         * css/html.css:
533         (select):
534         (select[size][multiple]):
535         (select[size="1"]):
536         Use new-style flexbox properties.
537         * rendering/RenderMenuList.cpp:
538         (WebCore::RenderMenuList::RenderMenuList):
539         (WebCore::RenderMenuList::createInnerBlock):
540         (WebCore::RenderMenuList::adjustInnerStyle):
541         (WebCore::RenderMenuList::removeChild):
542         RenderDeprecatedFlexibleBox -> RenderFlexibleBox, and use the
543         new-style flexbox properties. Use margin:auto for centering to get
544         the old safe-centering behavior.
545         * rendering/RenderMenuList.h:
546         (RenderMenuList):
547         Inherit from RenderFlexibleBox. Override baseline methods to call the
548         RenderBlock methods
549
550 2013-03-15  Andy Estes  <aestes@apple.com>
551
552         REGRESSION (r145820): Stop over-retaining CFDataRefs in SharedBuffer::maybeTransferPlatformData()
553         https://bugs.webkit.org/show_bug.cgi?id=112474
554
555         Reviewed by Simon Fraser.
556
557         Transfer ownership of m_cfData to the local variable rather than leaking a reference.
558
559         * platform/cf/SharedBufferCF.cpp:
560         (WebCore::SharedBuffer::maybeTransferPlatformData):
561
562 2013-03-15  Rajeev Sarvaria  <rsarvaria@blackberry.com>
563
564         New context extensions restored improperly
565         https://bugs.webkit.org/show_bug.cgi?id=112156
566
567         Reviewed by Rob Buis.
568
569         Sets up extensions after new context is created for restoration.
570         Previous extensions set up is lost when context is initially lost.
571
572         Cannot create a test as change is not visible from the web. When a context
573         is lost, WebGLRenderingContext drops m_context. Upon restoration a new context
574         object is created without available extensions initialized. Calling isEnabled
575         within setupFlags leads to the eventual initialization of extensions for the
576         new context.
577
578         * html/canvas/WebGLRenderingContext.cpp:
579         (WebCore):
580         (WebCore::WebGLRenderingContext::maybeRestoreContext):
581
582 2013-03-15  Aurimas Liutikas  <aurimas@chromium.org>
583
584         TextIterator emits LF for a br element inside an empty input element
585         https://bugs.webkit.org/show_bug.cgi?id=112275
586
587         Reviewed by Ryosuke Niwa.
588
589         Adding a check to avoid emiting LF for br elements inside a shadow tree
590         of an input element.
591
592         Test: editing/text-iterator/basic-iteration.html
593               editing/text-iterator/basic-iteration-shadowdom.html
594
595         * editing/TextIterator.cpp:
596         (WebCore::shouldEmitNewlineForNode):
597         (WebCore::TextIterator::handleNonTextNode):
598         (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
599         (WebCore::SimplifiedBackwardsTextIterator::handleNonTextNode):
600         (WebCore::SimplifiedBackwardsTextIterator::exitNode):
601         * editing/TextIterator.h:
602         (SimplifiedBackwardsTextIterator):
603
604 2013-03-15  Arvid Nilsson  <anilsson@rim.com>
605
606         [BlackBerry] Allow an embedder to position child windows using window coordinates
607         https://bugs.webkit.org/show_bug.cgi?id=112236
608
609         Reviewed by Rob Buis.
610
611         PR 232752
612
613         The LayerCompositingThread can now position the video window using
614         either document or window coordinates.
615
616         The LayerRenderer class gets a new client interface. This allows us to
617         avoid state duplication by delegating decisions directly to the client,
618         which can then be in charge of the (one and only) state.
619
620         The context is moved over to the client, as well as delegation of the
621         decision on whether to clear the surface every frame.
622
623         Also, the decision on which coordinate system to use for positioning
624         child windows is delegated to the client interface.
625
626         No new tests, not testable using DRT.
627
628         * platform/graphics/blackberry/LayerCompositingThread.cpp:
629         (WebCore::LayerCompositingThread::drawTextures):
630         * platform/graphics/blackberry/LayerRenderer.cpp:
631         (WebCore::LayerRenderer::create):
632         (WebCore::LayerRenderer::LayerRenderer):
633         (WebCore::LayerRenderer::setViewport):
634         (WebCore::LayerRenderer::compositeLayers):
635         (WebCore::LayerRenderer::toWebKitWindowCoordinates):
636         (WebCore::LayerRenderer::makeContextCurrent):
637         * platform/graphics/blackberry/LayerRenderer.h:
638         (WebCore):
639         (LayerRenderer):
640         (WebCore::LayerRenderer::client):
641         * platform/graphics/blackberry/LayerRendererClient.h: Added.
642         (Graphics):
643         (WebCore):
644         (LayerRendererClient):
645         (WebCore::LayerRendererClient::~LayerRendererClient):
646
647 2013-03-15  Jochen Eisinger  <jochen@chromium.org>
648
649         Expose whether a UserGestureToken still has gestures via WebKit API
650         https://bugs.webkit.org/show_bug.cgi?id=112342
651
652         Reviewed by Adam Barth.
653
654         * dom/UserGestureIndicator.cpp:
655         * dom/UserGestureIndicator.h:
656         (UserGestureToken):
657
658 2013-03-15  Christian Biesinger  <cbiesinger@chromium.org>
659
660         Convert inspector to new-flexbox
661         https://bugs.webkit.org/show_bug.cgi?id=112399
662
663         Reviewed by Ojan Vafai.
664
665         No new tests, refactoring.
666
667         * inspector/front-end/auditsPanel.css:
668         (.audit-launcher-view .audit-launcher-view-content):
669         (.audit-launcher-view div.button-container):
670         (.audit-launcher-view div.button-container > button):
671         * inspector/front-end/dialog.css:
672         (.dialog):
673         * inspector/front-end/elementsPanel.css:
674         (.sidebar-pane.composite .metrics):
675         * inspector/front-end/helpScreen.css:
676         (.help-window-main):
677         (.help-content):
678         * inspector/front-end/inspector.css:
679         (#toolbar):
680         (#toolbar-controls):
681         (#toolbar-dropdown .scrollable-content):
682         (#toolbar-dropdown .toolbar-item):
683         (.toolbar-item.close-left, .toolbar-item.close-right):
684         * inspector/front-end/nativeMemoryProfiler.css:
685         (.memory-pie-chart-container):
686         (.memory-pie-chart):
687         * inspector/front-end/networkPanel.css:
688         (.network-item-view.visible):
689         * inspector/front-end/panelEnablerView.css:
690         (.panel-enabler-view .flexible-space):
691         * inspector/front-end/profilesPanel.css:
692         (.profile-launcher-view-content):
693         (.control-profiling):
694         * inspector/front-end/splitView.css:
695         (.sidebar-overlay):
696         * inspector/front-end/tabbedPane.css:
697         (.tabbed-pane):
698         (.tabbed-pane-content):
699         Replace -webkit-box with -webkit-flex, -webkit-box-orient with
700         -webkit-flex-direction, etc.
701
702 2013-03-15  Rouslan Solomakhin  <rouslan@chromium.org>
703
704         Remove unused unified textchecker variable
705         https://bugs.webkit.org/show_bug.cgi?id=112362
706
707         Reviewed by Tony Chang.
708
709         The variable m_originalUnifiedSpellCheckerEnabled is never used. The generated
710         code from Settings.in already backs up and restores unified textchecker setting.
711
712         * testing/InternalSettings.h: Remove unusued m_originalUnifiedSpellCheckerEnabled variable.
713
714 2013-03-14  Ojan Vafai  <ojan@chromium.org>
715
716         Auto height column flexboxes with border and padding are too short
717         https://bugs.webkit.org/show_bug.cgi?id=112398
718
719         Reviewed by Tony Chang.
720
721         Test: css3/flexbox/auto-height-column-with-border-and-padding.html
722
723         * rendering/RenderFlexibleBox.cpp:
724         (WebCore::RenderFlexibleBox::mainAxisContentExtent):
725         computeLogicalHeight expects that you pass in the border-box logicalHeight, not
726         the contentLogicalHeight. Since we subtract the border, padding and scrollbar height from 
727         the returned m_extent, if we pass in the contentLogicalHeight and the flexbox is auto-sized
728         then we end up incorrectly subtracting border, padding and scrollbar height from the
729         contentLogicalHeight.
730
731 2013-03-15  Tim Horton  <timothy_horton@apple.com>
732
733         RenderSnapshottedPlugIn can't be a RenderBlock (what if it's display: inline?)
734         https://bugs.webkit.org/show_bug.cgi?id=112432
735         <rdar://problem/13187211>
736
737         Reviewed by Simon Fraser and Dean Jackson.
738
739         Re-use code from PLUGIN_PROXY_FOR_VIDEO to allow RenderEmbeddedObject to lay out its children,
740         and make RenderSnapshottedPlugIn a RenderEmbeddedObject subclass once again. This will ensure that
741         RenderSnapshottedPlugIn lays itself out in the page the same as the RenderEmbeddedObject it replaces did,
742         preventing snapshotted plug-ins from breaking the layout when they are display: inline.
743
744         * html/HTMLPlugInElement.cpp:
745         (WebCore::HTMLPlugInElement::defaultEventHandler):
746         RenderSnapshottedPlugIn is a RenderEmbeddedObject subclass again, so we need to check
747         for it when we have a RenderEmbeddedObject, instead of when we don't.
748
749         * page/FrameView.cpp:
750         (WebCore::FrameView::updateWidget):
751         Ditto.
752
753         * rendering/RenderEmbeddedObject.cpp:
754         (WebCore::RenderEmbeddedObject::layout):
755         (WebCore::RenderEmbeddedObject::canHaveChildren):
756         Allow RenderEmbeddedObject to have and lay out children if it is a RenderSnapshottedPlugIn.
757         Also, preserve the code that allows children if it is a media element and PLUGIN_PROXY_FOR_VIDEO is enabled.
758         Don't call addWidgetToUpdate for instances which will never have a widget, like RenderSnapshottedPlugIn.
759
760         * rendering/RenderEmbeddedObject.h:
761         (RenderEmbeddedObject):
762         We need canHaveChildren() and children() and m_children now.
763         Add canHaveWidget(), which returns true. Subclasses can override if need be.
764
765         * rendering/RenderSnapshottedPlugIn.h: Add canHaveWidget(), which is false for RenderSnapshottedPlugIn.
766         * rendering/RenderSnapshottedPlugIn.cpp:
767         (WebCore::RenderSnapshottedPlugIn::RenderSnapshottedPlugIn):
768         (WebCore::RenderSnapshottedPlugIn::layout):
769         (WebCore::RenderSnapshottedPlugIn::getCursor):
770         Make RenderSnapshottedPlugIn a RenderEmbeddedObject.
771
772         (WebCore::RenderSnapshottedPlugIn::paint):
773         Paint our children.
774
775 2013-03-15  Hajime Morrita  <morrita@google.com>
776
777         [Custom Elements] Any HTMLElement subclass should become a superclass of custom element
778         https://bugs.webkit.org/show_bug.cgi?id=110436
779
780         Reviewed by Dimitri Glazkov.
781
782         This change introduces "type extension" concept of custom elements.
783         With the type extension, each custom elements are able to inherit
784         from not only HTMLElement, but also any HTML element. To make it work,
785         this change extends the plumbing.
786
787         This change does following changes:
788
789         = Data structure:
790
791         - Let CustomElementConstructor objects being keyed by pair of (element
792           name, local name) as the standard requries, instead of just using
793           single name. See CustomElementRegistry::ConstructorMap and CustomElementRegistry::find().
794
795         - Creates mapping from WrapperTypeInfo to element name.  This map
796           can be looked-up by generated functions like
797           findHTMLTagNameOfV8Type().  With this table, WebKit can determine
798           the custom element local name of given prototype object. See  make_names.pl.
799           Note that V8 prototype object knows associated WrapperTypeInfo. See r144865.
800
801         = Hooking up element lifecyle:
802
803         - Create appropriate C++ instance for each custom element.  Before
804           this change, the C++ backend of custom elements were always
805           HTMLUnknownElements or HTMLElement.  See
806           CustomElementConstructor::createElement() and ElementFactories in
807           make_names.pl.
808
809         - Hooks up element construction and element wrapper creation for
810           custom element "before" non-custom case instead of "after"
811           that. We do this because custom element needs to
812           override non-custom case when @is attribute is given for
813           otherwise-non-custom elements like <div is=x-bar>.
814           See make_names.pl.
815
816         - Gives @is attributes to elements if needed. See setTypeExtension() call sites
817           like Document::createElement(), Document::createElementtNS() and CustomElementConstructor::createElementt()
818
819         Test: fast/dom/custom/document-register-type-extensions.html
820
821         * bindings/scripts/CodeGeneratorV8.pm:
822         (GenerateHeader):
823         * bindings/scripts/test/V8/V8Float64Array.h:
824         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
825         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
826         * bindings/scripts/test/V8/V8TestEventConstructor.h:
827         * bindings/scripts/test/V8/V8TestEventTarget.h:
828         * bindings/scripts/test/V8/V8TestException.h:
829         * bindings/scripts/test/V8/V8TestInterface.h:
830         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
831         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
832         * bindings/scripts/test/V8/V8TestNode.h:
833         * bindings/scripts/test/V8/V8TestObj.h:
834         * bindings/scripts/test/V8/V8TestOverloadedConstructors.h:
835         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
836         * bindings/scripts/test/V8/V8TestTypedefs.h:
837         * bindings/v8/CustomElementHelpers.cpp:
838         (WebCore::hasValidPrototypeChain):
839         (WebCore::CustomElementHelpers::isValidPrototypeParameter):
840         (WebCore::CustomElementHelpers::findLocalName):
841         (WebCore):
842         (WebCore::CustomElementHelpers::findWrapperType):
843         * bindings/v8/CustomElementHelpers.h:
844         (CustomElementHelpers):
845         * bindings/v8/V8CustomElement.cpp:
846         (WebCore::V8CustomElement::createWrapper):
847         * bindings/v8/V8CustomElement.h:
848         (V8CustomElement):
849         (WebCore::V8CustomElement::wrap):
850         (WebCore::V8CustomElement::constructorOf):
851         * bindings/v8/WrapperTypeInfo.h:
852         (WrapperTypeTraits): Added.
853         * bindings/v8/custom/V8CustomElementConstructorCustom.cpp:
854         (WebCore::V8CustomElementConstructor::callAsFunctionCallback):
855         * dom/CustomElementConstructor.cpp:
856         (WebCore::CustomElementConstructor::create):
857         (WebCore::CustomElementConstructor::CustomElementConstructor):
858         (WebCore::CustomElementConstructor::createElement):
859         (WebCore::setTypeExtension):
860         * dom/CustomElementConstructor.h:
861         (CustomElementConstructor):
862         (WebCore::CustomElementConstructor::document):
863         (WebCore::CustomElementConstructor::typeName):
864         (WebCore::CustomElementConstructor::localName):
865         * dom/CustomElementRegistry.cpp:
866         (WebCore::nameIncludesHyphen):
867         (WebCore::CustomElementRegistry::isValidName):
868         (WebCore::CustomElementRegistry::registerElement):
869         (WebCore::CustomElementRegistry::findFor):
870         (WebCore::CustomElementRegistry::find):
871         (WebCore::CustomElementRegistry::createElement):
872         * dom/CustomElementRegistry.h:
873         (CustomElementRegistry):
874         * dom/Document.cpp:
875         (WebCore::Document::createElement):
876         (WebCore::Document::createElementNS):
877         (WebCore::Document::registerElement):
878         * dom/Document.h:
879         (Document):
880         (WebCore::Document::registry): Moved from Document.cpp to be inlined.
881         * dom/Document.idl:
882         * dom/make_names.pl:
883         (printFactoryCppFile):
884         (printWrapperFactoryCppFile):
885         (printWrapperFactoryHeaderFile):
886         * html/HTMLAttributeNames.in: Added @is attribute
887
888 2013-03-15  Alexey Proskuryakov  <ap@apple.com>
889
890         Minor cleanup in worker code
891         https://bugs.webkit.org/show_bug.cgi?id=112455
892
893         Reviewed by Anders Carlsson.
894
895         - Added OVERRIDE keywords.
896         - Toned down FIXMEs about single MessagePort versions of functions. It's not a given
897         that we'll want to get rid of them even when implementing array versions.
898         - Explicitly marked virtual destructors as virtual.
899
900         * dom/MessageEvent.cpp:
901         * dom/MessageEvent.h:
902         * workers/Worker.cpp:
903         * workers/Worker.h:
904         Removed an unused version of postMessage() that took no MessagePorts. This makes
905         it less confusing why MessagePortArray is passed by pointer, and not by reference.
906
907         * workers/DedicatedWorkerContext.cpp:
908         (WebCore::DedicatedWorkerContext::~DedicatedWorkerContext):
909         * workers/DedicatedWorkerContext.h:
910         Added a destructor instead of an implicit one.
911         Removed an unused version of postMessage() that took no MessagePorts.
912
913         * workers/SharedWorker.h: Removed an unused virtual function (thank you OVERRIDE!)
914
915         * dom/MessagePort.cpp:
916         * dom/MessagePort.h:
917         * loader/WorkerThreadableLoader.h:
918         * page/DOMWindow.h:
919         * workers/AbstractWorker.h:
920         * workers/DedicatedWorkerThread.h:
921         * workers/SharedWorkerContext.h:
922         * workers/SharedWorkerThread.h:
923         * workers/WorkerContext.h:
924         * workers/WorkerMessagingProxy.h:
925         * workers/WorkerObjectProxy.h:
926         * workers/WorkerScriptLoader.h:
927
928 2013-03-15  Joshua Bell  <jsbell@chromium.org>
929
930         [V8] Binding: Implement EnforceRange IDL Attribute for long long conversions
931         https://bugs.webkit.org/show_bug.cgi?id=96798
932
933         Reviewed by Kentaro Hara.
934
935         Implement [EnforceRange] attribute for V8 bindings, which specifies throwing behavior
936         on conversions outside int/uint 32/64 ranges and edge cases like NaNs and Infinities.
937         Conversely, conversions without this attribute should *not* throw.
938
939         Tests: fast/js/webidl-type-mapping.html:
940                fast/dom/non-numeric-values-numeric-parameters.html
941                fast/js/script-tests/select-options-add.html
942                storage/indexeddb/intversion-bad-parameters.html
943
944         * Modules/indexeddb/IDBCursor.cpp: Remove custom range enforcement for advance()
945         * Modules/indexeddb/IDBCursor.h: Adjust type to match WebIDL.
946         * Modules/indexeddb/IDBCursor.idl: Specify [EnforceRange] and type matches spec WebIDL.
947         * Modules/indexeddb/IDBFactory.cpp: Remove custom range enforcement for open()
948         * Modules/indexeddb/IDBFactory.h: Adjust type to match WebIDL.
949         * Modules/indexeddb/IDBFactory.idl: Specify [EnforceRange] and type matches spec WebIDL.
950         * bindings/scripts/CodeGeneratorJS.pm:
951         (JSValueToNative): Add FIXME to support [EnforceRange]
952         * bindings/scripts/CodeGeneratorV8.pm:
953         (GenerateNormalAttrSetter): Handle [EnforceRange] in attribute setters
954         (GenerateParametersCheck): Handle [EnforceRange] in parameters.
955         (JSValueToNative): Pass EnforceRange to toInt() functions as appropriate.
956         * bindings/scripts/IDLAttributes.txt:
957         * bindings/scripts/test/TestObj.idl: Tests w/ [EnforceRange]
958         * bindings/scripts/test/V8/V8TestObj.cpp: Updated expectations
959         * bindings/scripts/test/V8/V8TestTypedefs.cpp: Updated expectations.
960         * bindings/v8/V8Binding.cpp: Overloads for toInt() variants that handle constraints.
961         (WebCore::toInt32):
962         (WebCore::toUInt32):
963         (WebCore::toInt64):
964         (WebCore::toUInt64):
965         * bindings/v8/V8Binding.h: Ditto, plus helpers for callers not expecting errors.
966         (WebCore::toInt32):
967         (WebCore::toUInt32):
968         (WebCore::toInt64):
969         (WebCore::toUInt64):
970         * bindings/v8/V8BindingMacros.h: Helper macros for type conversions that may throw.
971         * testing/TypeConversions.h: Added new members with EnforceRange constraint.
972         * testing/TypeConversions.idl: Ditto.
973
974 2013-03-15  Eugene Klyuchnikov  <eustas@chromium.org>
975
976         Web Inspector: [Network] Refine JSDocs in NetworkRequest.js
977         https://bugs.webkit.org/show_bug.cgi?id=112412
978
979         Reviewed by Vsevolod Vlasov.
980
981         Return types for some members are confusing (Object).
982
983         * inspector/front-end/NetworkManager.js: Fixed JSDocs.
984         * inspector/front-end/NetworkRequest.js: Ditto. Plus minor refactorings.
985
986 2013-03-15  Andy Estes  <aestes@apple.com>
987
988         REGRESSION (r127277): CSS URIs with multi-byte Unicode escape sequences fail to parse
989         https://bugs.webkit.org/show_bug.cgi?id=112436
990
991         Reviewed by Michael Saboff.
992
993         r127277 modified the CSS parser to use 8-bit strings when possible.
994         However, it failed to handle URIs that contain Unicode escape sequences
995         that expand to multi-byte characters. Not only would the URI fail to
996         parse, but so would the remainder of the input string.
997
998         Fix this by producing a 16-bit result when we detect a URI with a
999         multi-byte Unicode escape, like we do for identifiers and other strings.
1000
1001         Test: fast/css/url-with-multi-byte-unicode-escape.html
1002
1003         * css/CSSParser.cpp:
1004         (WebCore::checkAndSkipString): Changed to be a free function since it
1005         doesn't access CSSParser's internal state.
1006         (WebCore::CSSParser::findURI): Added a function that consolidates the
1007         logic of finding the start and end pointers of the URI and the quote
1008         character (if encountered), starting at the current character.
1009         (WebCore::CSSParser::parseURIInternal): Removed duplicated logic for
1010         finding the URI bounds (this now lives in findURI()) and logic for
1011         setting the token type and updating the current character (this now
1012         lives in parseURI()).
1013         (WebCore::CSSParser::parseURI): Find the URI and parse it. If a
1014         multi-byte Unicode escape is encountered, rewind to the beginning of
1015         the URI and re-parse with a 16-bit string as the destination.
1016         * css/CSSParser.h:
1017
1018 2013-03-15  Andreas Kling  <akling@apple.com>
1019
1020         [JSC] Remove custom WebAudio mark functions that we can generate instead.
1021         <http://webkit.org/b/110976>
1022
1023         Reviewed by Eric Carlson.
1024
1025         Remove custom JSC mark functions for AudioContext and ScriptProcessorNode since they
1026         are trivial to generate.
1027
1028         * Modules/webaudio/AudioContext.idl:
1029         * Modules/webaudio/ScriptProcessorNode.idl:
1030         * GNUmakefile.list.am:
1031         * UseJSC.cmake:
1032         * WebCore.xcodeproj/project.pbxproj:
1033         * bindings/js/JSAudioContextCustom.cpp:
1034         * bindings/js/JSScriptProcessorNodeCustom.cpp: Removed.
1035
1036 2013-03-15  Jer Noble  <jer.noble@apple.com>
1037
1038         Unreviewed build fix. Rename local variable which was colliding with class method.
1039
1040         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
1041         (PlatformCALayer::clone):
1042
1043 2013-03-15  Joshua Bell  <jsbell@chromium.org>
1044
1045         IndexedDB: Handle success events arriving after context stopped
1046         https://bugs.webkit.org/show_bug.cgi?id=112451
1047
1048         Reviewed by Tony Chang.
1049
1050         In multiprocess ports, events from the back-end can arrive in the form of
1051         onXXX() calls after the script execution context has stopped. These need to
1052         be ignored. This was already done in most cases, but missing for two overloads
1053         of IDBRequest::onSuccess() - void and int64_t.
1054
1055         Test: webkit_unit_test IDBRequestTest.EventsAfterStopping
1056
1057         * Modules/indexeddb/IDBRequest.cpp:
1058         (WebCore::IDBRequest::onSuccess): Early return if context has stopped.
1059         (WebCore::IDBRequest::onSuccessInternal): ASSERT() that callers have checked context.
1060
1061 2013-03-14  Jer Noble  <jer.noble@apple.com>
1062
1063         REGRESSION: -webkit-box-reflect does not show on video elements
1064         https://bugs.webkit.org/show_bug.cgi?id=112397
1065
1066         Reviewed by Simon Fraser.
1067
1068         Test: compositing/video/video-reflection.html
1069
1070         Support cloning specific CALayer subtypes in PlatformCALayer,
1071         which allows reflections to work correctly for those layer types.
1072         Specifically, add support for cloning AVPlayerLayer layers.
1073
1074         * platform/graphics/ca/GraphicsLayerCA.cpp:
1075         (WebCore::GraphicsLayerCA::cloneLayer): Moved most of the
1076             implementation to PlatformCALayer::clone().
1077         * platform/graphics/ca/PlatformCALayer.h:
1078         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
1079         (PlatformCALayer::PlatformCALayer): Set the layerType to 
1080             LayerTypeAVPlayerLayer if the PlatformLayer parameter is an
1081             AVPlayerLayer.
1082         (PlatformCALayer::clone): Moved from GraphicsLayerCA::cloneLayer().
1083             Copy the player value to the new layer, if the current layer is
1084             a LayerTypeAVPlayerLayer.
1085         (PlatformCALayer::playerLayer):
1086         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
1087         (PlatformCALayer::clone): Moved from GraphicsLayerCA::cloneLayer().
1088             May want to add support for AVCFPlayerLayers in the future.
1089
1090 2013-03-15  Nate Chapin  <japhet@chromium.org>
1091
1092         Hide MainResourceLoader from the outside world
1093         https://bugs.webkit.org/show_bug.cgi?id=109971
1094
1095         Reviewed by Adam Barth.
1096
1097         No new tests, refactor only.
1098
1099         * WebCore.exp.in:
1100         * dom/Document.cpp:
1101         * html/HTMLEmbedElement.cpp:
1102         * html/MediaDocument.cpp:
1103         * html/PluginDocument.cpp:
1104         * loader/DocumentLoader.cpp:
1105         (WebCore::DocumentLoader::mainResourceLoader):
1106         (WebCore::DocumentLoader::finishedLoading):
1107         (WebCore::DocumentLoader::receivedData):
1108         (WebCore::DocumentLoader::setMainResourceDataBufferingPolicy):
1109         * loader/DocumentLoader.h:
1110         * loader/EmptyClients.h:
1111         * loader/FrameLoader.cpp:
1112         * loader/FrameLoaderClient.h:
1113         * loader/MainResourceLoader.cpp:
1114         * loader/appcache/ApplicationCacheGroup.cpp:
1115         * loader/appcache/ApplicationCacheHost.cpp:
1116
1117 2013-03-15  Abhishek Arya  <inferno@chromium.org>
1118
1119         Replace static_casts with to* helper functions.
1120         https://bugs.webkit.org/show_bug.cgi?id=112401
1121
1122         Reviewed by Stephen Chenney.
1123
1124         to* helper functions are preferred over static_cast calls since they
1125         help to catch bad casts easily on the testing infrastructure.
1126
1127         * accessibility/AccessibilityObject.cpp:
1128         (WebCore::appendAccessibilityObject):
1129         * accessibility/AccessibilityRenderObject.cpp:
1130         (WebCore::AccessibilityRenderObject::visiblePositionForPoint):
1131         * accessibility/AccessibilityScrollView.cpp:
1132         (WebCore::AccessibilityScrollView::webAreaObject):
1133         (WebCore::AccessibilityScrollView::documentFrameView):
1134         (WebCore::AccessibilityScrollView::parentObject):
1135         (WebCore::AccessibilityScrollView::parentObjectIfExists):
1136         * accessibility/chromium/AXObjectCacheChromium.cpp:
1137         (WebCore::AXObjectCache::postPlatformNotification):
1138         * bindings/js/JSPluginElementFunctions.cpp:
1139         (WebCore::pluginScriptObjectFromPluginViewBase):
1140         * bindings/js/PageScriptDebugServer.cpp:
1141         (WebCore::PageScriptDebugServer::setJavaScriptPaused):
1142         * bindings/js/ScriptController.cpp:
1143         (WebCore::ScriptController::createScriptInstanceForWidget):
1144         * bindings/js/ScriptControllerQt.cpp:
1145         (WebCore::ScriptController::createScriptInstanceForWidget):
1146         * bindings/v8/ScriptController.cpp:
1147         (WebCore::ScriptController::createScriptInstanceForWidget):
1148         * html/HTMLObjectElement.cpp:
1149         (WebCore::HTMLObjectElement::appendFormData):
1150         * page/EventHandler.cpp:
1151         (WebCore::EventHandler::subframeForTargetNode):
1152         (WebCore::EventHandler::passGestureEventToWidget):
1153         * page/Frame.cpp:
1154         (WebCore::Frame::frameForWidget):
1155         * page/FrameView.cpp:
1156         (WebCore::collectFrameViewChildren):
1157         (WebCore::FrameView::hasCustomScrollbars):
1158         (WebCore::FrameView::convertToContainingView):
1159         (WebCore::FrameView::convertFromContainingView):
1160         (WebCore::FrameView::removeChild):
1161         * page/FrameView.h:
1162         (WebCore::toFrameView):
1163         (WebCore):
1164         * page/Page.cpp:
1165         (WebCore::Page::collectPluginViews):
1166         * page/chromium/EventHandlerChromium.cpp:
1167         (WebCore::EventHandler::passWheelEventToWidget):
1168         * page/efl/EventHandlerEfl.cpp:
1169         (WebCore::EventHandler::passWheelEventToWidget):
1170         * page/gtk/EventHandlerGtk.cpp:
1171         (WebCore::EventHandler::passWheelEventToWidget):
1172         * page/mac/EventHandlerMac.mm:
1173         (WebCore::EventHandler::passWheelEventToWidget):
1174         * page/qt/EventHandlerQt.cpp:
1175         (WebCore::EventHandler::passWheelEventToWidget):
1176         * page/scrolling/ScrollingCoordinator.cpp:
1177         (WebCore::ScrollingCoordinator::computeNonFastScrollableRegion):
1178         * page/win/EventHandlerWin.cpp:
1179         (WebCore::EventHandler::passWheelEventToWidget):
1180         * page/wx/EventHandlerWx.cpp:
1181         (WebCore::EventHandler::passWheelEventToWidget):
1182         * platform/ScrollView.h:
1183         (WebCore::toScrollView):
1184         (WebCore):
1185         * platform/Scrollbar.cpp:
1186         (WebCore::Scrollbar::isScrollViewScrollbar):
1187         (WebCore::Scrollbar::mouseUp):
1188         (WebCore::Scrollbar::axObjectCache):
1189         * platform/Widget.h:
1190         (WebCore::Widget::isScrollView):
1191         * platform/blackberry/PlatformScreenBlackBerry.cpp:
1192         (WebCore::toUserSpace):
1193         * platform/efl/ScrollbarEfl.cpp:
1194         (ScrollbarEfl::setParent):
1195         * platform/qt/PlatformSupportQt.cpp:
1196         (WebCore::PlatformSupport::popupsAllowed):
1197         (WebCore::PlatformSupport::pluginScriptableObject):
1198         * plugins/IFrameShimSupport.cpp:
1199         (WebCore::getPluginOcclusions):
1200         * plugins/PluginView.h:
1201         (WebCore::toPluginView):
1202         (WebCore):
1203         * plugins/PluginViewBase.h:
1204         (WebCore::PluginViewBase::isPluginViewBase):
1205         (PluginViewBase):
1206         (WebCore::toPluginViewBase):
1207         (WebCore):
1208         * plugins/blackberry/PluginViewBlackBerry.cpp:
1209         (WebCore::PluginView::updatePluginWidget):
1210         (WebCore::PluginView::updateBuffer):
1211         (WebCore::PluginView::paint):
1212         (WebCore::PluginView::handleScrollEvent):
1213         (WebCore::PluginView::calculateClipRect):
1214         (WebCore::PluginView::handleFullScreenAllowedEvent):
1215         (WebCore::PluginView::handleFullScreenExitEvent):
1216         (WebCore::PluginView::setParent):
1217         (WebCore::PluginView::setNPWindowIfNeeded):
1218         (WebCore::PluginView::platformGetValue):
1219         (WebCore::PluginView::platformStart):
1220         (WebCore::PluginView::platformDestroy):
1221         (WebCore::PluginView::setBackgroundPlay):
1222         * plugins/blackberry/PluginViewPrivateBlackBerry.cpp:
1223         (WebCore::PluginViewPrivate::setVisibleRects):
1224         (WebCore::PluginViewPrivate::showKeyboard):
1225         (WebCore::PluginViewPrivate::requestFullScreen):
1226         (WebCore::PluginViewPrivate::requestCenterFitZoom):
1227         (WebCore::PluginViewPrivate::lockOrientation):
1228         (WebCore::PluginViewPrivate::unlockOrientation):
1229         (WebCore::PluginViewPrivate::preventIdle):
1230         * plugins/gtk/PluginViewGtk.cpp:
1231         (WebCore::PluginView::updatePluginWidget):
1232         * plugins/mac/PluginViewMac.mm:
1233         (WebCore::PluginView::platformStart):
1234         * plugins/qt/PluginViewQt.cpp:
1235         (WebCore::PluginView::updatePluginWidget):
1236         * plugins/win/PluginViewWin.cpp:
1237         (WebCore::PluginView::updatePluginWidget):
1238         (WebCore::PluginView::paintIntoTransformedContext):
1239         (WebCore::PluginView::paintWindowedPluginIntoContext):
1240         (WebCore::PluginView::paint):
1241         (WebCore::PluginView::handleMouseEvent):
1242         (WebCore::PluginView::setNPWindowRect):
1243         (WebCore::PluginView::snapshot):
1244         * rendering/RenderBox.cpp:
1245         (WebCore::RenderBox::addLayoutOverflow):
1246         * rendering/RenderBoxModelObject.cpp:
1247         (WebCore::RenderBoxModelObject::mapAbsoluteToLocalPoint):
1248         * rendering/RenderEmbeddedObject.cpp:
1249         (WebCore::RenderEmbeddedObject::allowsAcceleratedCompositing):
1250         (WebCore::RenderEmbeddedObject::viewCleared):
1251         (WebCore::RenderEmbeddedObject::nodeAtPoint):
1252         (WebCore::RenderEmbeddedObject::scroll):
1253         * rendering/RenderFlexibleBox.h:
1254         (WebCore::toRenderFlexibleBox):
1255         (WebCore):
1256         * rendering/RenderFrame.cpp:
1257         (WebCore::RenderFrame::viewCleared):
1258         * rendering/RenderFrameBase.cpp:
1259         (WebCore::RenderFrameBase::layoutWithFlattening):
1260         * rendering/RenderIFrame.cpp:
1261         (WebCore::RenderIFrame::contentRootRenderer):
1262         (WebCore::RenderIFrame::layoutSeamlessly):
1263         * rendering/RenderLayerBacking.cpp:
1264         (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration):
1265         * rendering/RenderLayerCompositor.cpp:
1266         (WebCore::RenderLayerCompositor::shouldPropagateCompositingToEnclosingFrame):
1267         * rendering/RenderPart.cpp:
1268         (WebCore::RenderPart::requiresAcceleratedCompositing):
1269         (WebCore::RenderPart::embeddedContentBox):
1270         (WebCore::RenderPart::nodeAtPoint):
1271         * rendering/RenderRuby.cpp:
1272         (WebCore::rubyBeforeBlock):
1273         (WebCore::rubyAfterBlock):
1274         (WebCore::lastRubyRun):
1275         (WebCore::findRubyRunParent):
1276         * rendering/RenderTreeAsText.cpp:
1277         (WebCore::write):
1278         * rendering/RenderWidget.cpp:
1279         (WebCore::RenderWidget::paintContents):
1280         (WebCore::RenderWidget::setOverlapTestResult):
1281         (WebCore::RenderWidget::updateWidgetPosition):
1282
1283 2013-03-15  No'am Rosenthal  <noam@webkit.org>
1284
1285         [Texmap] REGRESSION (r144190): Failure at style with preserve-3d and opacity
1286         https://bugs.webkit.org/show_bug.cgi?id=112370
1287
1288         According to spec, we avoid masking and clipping when preserves-3d is enabled.
1289         However, opacity should still work.
1290         Allowing opacity when preserves-3d is on.
1291
1292         Reviewed by Caio Marcelo de Oliveira Filho.
1293
1294         Test: compositing/overlap-blending/preserves3d-opacity.html
1295
1296         * platform/graphics/texmap/TextureMapperGL.cpp:
1297         * platform/graphics/texmap/TextureMapperLayer.cpp:
1298         (WebCore::TextureMapperLayer::paintRecursive):
1299
1300 2013-03-15  Konrad Piascik  <kpiascik@blackberry.com>
1301
1302         Get rid of useless forward declaration.
1303         https://bugs.webkit.org/show_bug.cgi?id=112449
1304
1305         Reviewed by Stephen Chenney.
1306
1307         No behavioural change 
1308
1309         * svg/SVGRectElement.cpp:
1310
1311 2013-03-15  Alexei Filippov  <alph@chromium.org>
1312
1313         Web Inspector: make CPU profiler show timings using the same time unit [ms]
1314         https://bugs.webkit.org/show_bug.cgi?id=112356
1315
1316         That makes it much easier to compare values when looking at the data.
1317
1318         Reviewed by Yury Semikhatsky.
1319
1320         * inspector/front-end/ProfileDataGridTree.js:
1321         (WebInspector.ProfileDataGridNode.prototype.get data.formatMilliseconds):
1322
1323 2013-03-15  Peter Beverloo  <peter@chromium.org>
1324
1325         Implement support for nullable types in the bindings generator
1326         https://bugs.webkit.org/show_bug.cgi?id=111728
1327
1328         Reviewed by Kentaro Hara.
1329
1330         This patch adds support for nullable types in the bindings
1331         generator, as described in section 3.10.22 of WebIDL:
1332             http://dev.w3.org/2006/webapi/WebIDL/#idl-nullable-type
1333
1334         interface MyInterface {
1335             readonly attribute boolean? value; // true, false or null.
1336         };
1337
1338         The IDL Parser has been modified to record whether attributes are
1339         nullable. Question marks from the type will always be stripped
1340         from the domAttribute->signature->type field. Once support for
1341         this has been completely implemented, we'll be able to remove a
1342         bunch of custom bindings, i.e. those of Device Orientation.
1343
1344         Any getter for an attribute which returns a nullable type will be
1345         called with an additional attribute (passed by reference) named
1346         "isNull". This will be the last argument passed to the method,
1347         unless an exception code (ec) argument will be passed as well.
1348
1349         The CPP, GObject and ObjC bindings will not change behavior following
1350         this patch, although they have been modified to call the WebCore
1351         methods for nullable attributes with the correct signature. The
1352         V8 and JS binding generators do have modified behavior, in that they
1353         will actually return v8Null/jsNull when isNull == true.
1354
1355         Tested by existing binding tests and the new nullable attribute
1356         tests in the bindings/scripts/test/ directory.
1357
1358         * bindings/scripts/CodeGeneratorCPP.pm:
1359         (GenerateImplementation):
1360         * bindings/scripts/CodeGeneratorGObject.pm:
1361         (GenerateProperty):
1362         (GenerateFunction):
1363         * bindings/scripts/CodeGeneratorJS.pm:
1364         (GenerateImplementation):
1365         * bindings/scripts/CodeGeneratorObjC.pm:
1366         (GenerateImplementation):
1367         * bindings/scripts/CodeGeneratorV8.pm:
1368         (GenerateNormalAttrGetter):
1369         * bindings/scripts/IDLParser.pm:
1370         (typeHasNullableSuffix):
1371         (typeRemoveNullableSuffix):
1372         (parseAttributeRest):
1373         (parseOptionalOrRequiredArgument):
1374         (parseAttributeRestOld):
1375         * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
1376         (WebDOMTestObj::nullableDoubleAttribute):
1377         (WebDOMTestObj::nullableLongAttribute):
1378         (WebDOMTestObj::nullableBooleanAttribute):
1379         (WebDOMTestObj::nullableStringAttribute):
1380         (WebDOMTestObj::nullableLongSettableAttribute):
1381         (WebDOMTestObj::setNullableLongSettableAttribute):
1382         (WebDOMTestObj::nullableStringValue):
1383         (WebDOMTestObj::setNullableStringValue):
1384         * bindings/scripts/test/CPP/WebDOMTestObj.h:
1385         * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
1386         (webkit_dom_test_obj_set_property):
1387         (webkit_dom_test_obj_get_property):
1388         (webkit_dom_test_obj_class_init):
1389         (webkit_dom_test_obj_get_nullable_double_attribute):
1390         (webkit_dom_test_obj_get_nullable_long_attribute):
1391         (webkit_dom_test_obj_get_nullable_boolean_attribute):
1392         (webkit_dom_test_obj_get_nullable_string_attribute):
1393         (webkit_dom_test_obj_get_nullable_long_settable_attribute):
1394         (webkit_dom_test_obj_set_nullable_long_settable_attribute):
1395         (webkit_dom_test_obj_get_nullable_string_value):
1396         (webkit_dom_test_obj_set_nullable_string_value):
1397         * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
1398         * bindings/scripts/test/JS/JSTestObj.cpp:
1399         (WebCore):
1400         (WebCore::jsTestObjNullableDoubleAttribute):
1401         (WebCore::jsTestObjNullableLongAttribute):
1402         (WebCore::jsTestObjNullableBooleanAttribute):
1403         (WebCore::jsTestObjNullableStringAttribute):
1404         (WebCore::jsTestObjNullableLongSettableAttribute):
1405         (WebCore::jsTestObjNullableStringValue):
1406         (WebCore::setJSTestObjNullableLongSettableAttribute):
1407         (WebCore::setJSTestObjNullableStringValue):
1408         * bindings/scripts/test/JS/JSTestObj.h:
1409         (WebCore):
1410         * bindings/scripts/test/ObjC/DOMTestObj.h:
1411         * bindings/scripts/test/ObjC/DOMTestObj.mm:
1412         (-[DOMTestObj nullableDoubleAttribute]):
1413         (-[DOMTestObj nullableLongAttribute]):
1414         (-[DOMTestObj nullableBooleanAttribute]):
1415         (-[DOMTestObj nullableStringAttribute]):
1416         (-[DOMTestObj nullableLongSettableAttribute]):
1417         (-[DOMTestObj setNullableLongSettableAttribute:]):
1418         (-[DOMTestObj nullableStringValue]):
1419         (-[DOMTestObj setNullableStringValue:]):
1420         * bindings/scripts/test/TestObj.idl:
1421         * bindings/scripts/test/V8/V8TestObj.cpp:
1422         (WebCore::TestObjV8Internal::nullableDoubleAttributeAttrGetter):
1423         (TestObjV8Internal):
1424         (WebCore::TestObjV8Internal::nullableDoubleAttributeAttrGetterCallback):
1425         (WebCore::TestObjV8Internal::nullableLongAttributeAttrGetter):
1426         (WebCore::TestObjV8Internal::nullableLongAttributeAttrGetterCallback):
1427         (WebCore::TestObjV8Internal::nullableBooleanAttributeAttrGetter):
1428         (WebCore::TestObjV8Internal::nullableBooleanAttributeAttrGetterCallback):
1429         (WebCore::TestObjV8Internal::nullableStringAttributeAttrGetter):
1430         (WebCore::TestObjV8Internal::nullableStringAttributeAttrGetterCallback):
1431         (WebCore::TestObjV8Internal::nullableLongSettableAttributeAttrGetter):
1432         (WebCore::TestObjV8Internal::nullableLongSettableAttributeAttrGetterCallback):
1433         (WebCore::TestObjV8Internal::nullableLongSettableAttributeAttrSetter):
1434         (WebCore::TestObjV8Internal::nullableLongSettableAttributeAttrSetterCallback):
1435         (WebCore::TestObjV8Internal::nullableStringValueAttrGetter):
1436         (WebCore::TestObjV8Internal::nullableStringValueAttrGetterCallback):
1437         (WebCore::TestObjV8Internal::nullableStringValueAttrSetter):
1438         (WebCore::TestObjV8Internal::nullableStringValueAttrSetterCallback):
1439         (WebCore):
1440
1441 2013-03-15  Marja Hölttä  <marja@chromium.org>
1442
1443         [V8] Store main world and non-main world templates separately.
1444         https://bugs.webkit.org/show_bug.cgi?id=111724
1445
1446         Reviewed by Jochen Eisinger.
1447
1448         This is needed for generating specialized bindings for the main
1449         world (bug 110874).
1450
1451         No new tests (updated existing bindings tests).
1452
1453         * bindings/scripts/CodeGeneratorV8.pm:
1454         (GenerateHeader):
1455         (GenerateDomainSafeFunctionGetter):
1456         (GenerateNormalAttrSetter):
1457         (GenerateParametersCheckExpression):
1458         (GenerateParametersCheck):
1459         (GenerateImplementation):
1460         (JSValueToNative):
1461         (CreateCustomSignature):
1462         * bindings/scripts/test/V8/V8Float64Array.cpp:
1463         (WebCore::Float64ArrayV8Internal::fooMethod):
1464         (WebCore::ConfigureV8Float64ArrayTemplate):
1465         (WebCore::V8Float64Array::GetTemplate):
1466         (WebCore::V8Float64Array::HasInstance):
1467         (WebCore):
1468         (WebCore::V8Float64Array::HasInstanceInAnyWorld):
1469         * bindings/scripts/test/V8/V8Float64Array.h:
1470         (V8Float64Array):
1471         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
1472         (WebCore::TestActiveDOMObjectV8Internal::excitingFunctionMethod):
1473         (WebCore::TestActiveDOMObjectV8Internal::postMessageAttrGetter):
1474         (WebCore::ConfigureV8TestActiveDOMObjectTemplate):
1475         (WebCore::V8TestActiveDOMObject::GetTemplate):
1476         (WebCore::V8TestActiveDOMObject::HasInstance):
1477         (WebCore):
1478         (WebCore::V8TestActiveDOMObject::HasInstanceInAnyWorld):
1479         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
1480         (V8TestActiveDOMObject):
1481         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
1482         (WebCore::V8TestCustomNamedGetter::GetTemplate):
1483         (WebCore::V8TestCustomNamedGetter::HasInstance):
1484         (WebCore):
1485         (WebCore::V8TestCustomNamedGetter::HasInstanceInAnyWorld):
1486         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
1487         (V8TestCustomNamedGetter):
1488         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
1489         (WebCore::V8TestEventConstructor::GetTemplate):
1490         (WebCore::V8TestEventConstructor::HasInstance):
1491         (WebCore):
1492         (WebCore::V8TestEventConstructor::HasInstanceInAnyWorld):
1493         * bindings/scripts/test/V8/V8TestEventConstructor.h:
1494         (V8TestEventConstructor):
1495         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
1496         (WebCore::TestEventTargetV8Internal::dispatchEventMethod):
1497         (WebCore::ConfigureV8TestEventTargetTemplate):
1498         (WebCore::V8TestEventTarget::GetTemplate):
1499         (WebCore::V8TestEventTarget::HasInstance):
1500         (WebCore):
1501         (WebCore::V8TestEventTarget::HasInstanceInAnyWorld):
1502         * bindings/scripts/test/V8/V8TestEventTarget.h:
1503         (V8TestEventTarget):
1504         * bindings/scripts/test/V8/V8TestException.cpp:
1505         (WebCore::V8TestException::GetTemplate):
1506         (WebCore::V8TestException::HasInstance):
1507         (WebCore):
1508         (WebCore::V8TestException::HasInstanceInAnyWorld):
1509         * bindings/scripts/test/V8/V8TestException.h:
1510         (V8TestException):
1511         * bindings/scripts/test/V8/V8TestInterface.cpp:
1512         (WebCore::TestInterfaceV8Internal::supplementalNodeAttrSetter):
1513         (WebCore::TestInterfaceV8Internal::supplementalMethod2Method):
1514         (WebCore::ConfigureV8TestInterfaceTemplate):
1515         (WebCore::V8TestInterface::GetTemplate):
1516         (WebCore::V8TestInterface::HasInstance):
1517         (WebCore):
1518         (WebCore::V8TestInterface::HasInstanceInAnyWorld):
1519         * bindings/scripts/test/V8/V8TestInterface.h:
1520         (V8TestInterface):
1521         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
1522         (WebCore::V8TestMediaQueryListListener::GetTemplate):
1523         (WebCore::V8TestMediaQueryListListener::HasInstance):
1524         (WebCore):
1525         (WebCore::V8TestMediaQueryListListener::HasInstanceInAnyWorld):
1526         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
1527         (V8TestMediaQueryListListener):
1528         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
1529         (WebCore::V8TestNamedConstructor::GetTemplate):
1530         (WebCore::V8TestNamedConstructor::HasInstance):
1531         (WebCore):
1532         (WebCore::V8TestNamedConstructor::HasInstanceInAnyWorld):
1533         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
1534         (V8TestNamedConstructor):
1535         * bindings/scripts/test/V8/V8TestNode.cpp:
1536         (WebCore::V8TestNode::GetTemplate):
1537         (WebCore::V8TestNode::HasInstance):
1538         (WebCore):
1539         (WebCore::V8TestNode::HasInstanceInAnyWorld):
1540         * bindings/scripts/test/V8/V8TestNode.h:
1541         (V8TestNode):
1542         * bindings/scripts/test/V8/V8TestObj.cpp:
1543         (WebCore::TestObjV8Internal::testObjAttrAttrSetter):
1544         (WebCore::TestObjV8Internal::XMLObjAttrAttrSetter):
1545         (WebCore::TestObjV8Internal::typedArrayAttrAttrSetter):
1546         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeAttrSetter):
1547         (WebCore::TestObjV8Internal::withScriptStateAttributeRaisesAttrSetter):
1548         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeRaisesAttrSetter):
1549         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeAttrSetter):
1550         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeRaisesAttrSetter):
1551         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateWithSpacesAttributeAttrSetter):
1552         (WebCore::TestObjV8Internal::withScriptArgumentsAndCallStackAttributeAttrSetter):
1553         (WebCore::TestObjV8Internal::mutablePointAttrSetter):
1554         (WebCore::TestObjV8Internal::immutablePointAttrSetter):
1555         (WebCore::TestObjV8Internal::voidMethodWithArgsMethod):
1556         (WebCore::TestObjV8Internal::longMethodWithArgsMethod):
1557         (WebCore::TestObjV8Internal::objMethodWithArgsMethod):
1558         (WebCore::TestObjV8Internal::methodThatRequiresAllArgsAndThrowsMethod):
1559         (WebCore::TestObjV8Internal::overloadedMethod1Method):
1560         (WebCore::TestObjV8Internal::overloadedMethod2Method):
1561         (WebCore::TestObjV8Internal::overloadedMethod8Method):
1562         (WebCore::TestObjV8Internal::overloadedMethodMethod):
1563         (WebCore::TestObjV8Internal::convert1Method):
1564         (WebCore::TestObjV8Internal::convert2Method):
1565         (WebCore::TestObjV8Internal::convert4Method):
1566         (WebCore::TestObjV8Internal::convert5Method):
1567         (WebCore::TestObjV8Internal::variadicNodeMethodMethod):
1568         (WebCore::ConfigureV8TestObjTemplate):
1569         (WebCore::V8TestObj::GetTemplate):
1570         (WebCore::V8TestObj::HasInstance):
1571         (WebCore):
1572         (WebCore::V8TestObj::HasInstanceInAnyWorld):
1573         * bindings/scripts/test/V8/V8TestObj.h:
1574         (V8TestObj):
1575         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
1576         (WebCore::TestOverloadedConstructorsV8Internal::constructor1):
1577         (WebCore::TestOverloadedConstructorsV8Internal::constructor2):
1578         (WebCore::TestOverloadedConstructorsV8Internal::constructor3):
1579         (WebCore::TestOverloadedConstructorsV8Internal::constructor):
1580         (WebCore::V8TestOverloadedConstructors::GetTemplate):
1581         (WebCore::V8TestOverloadedConstructors::HasInstance):
1582         (WebCore):
1583         (WebCore::V8TestOverloadedConstructors::HasInstanceInAnyWorld):
1584         * bindings/scripts/test/V8/V8TestOverloadedConstructors.h:
1585         (V8TestOverloadedConstructors):
1586         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
1587         (WebCore::V8TestSerializedScriptValueInterface::GetTemplate):
1588         (WebCore::V8TestSerializedScriptValueInterface::HasInstance):
1589         (WebCore):
1590         (WebCore::V8TestSerializedScriptValueInterface::HasInstanceInAnyWorld):
1591         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
1592         (V8TestSerializedScriptValueInterface):
1593         * bindings/scripts/test/V8/V8TestTypedefs.cpp:
1594         (WebCore::TestTypedefsV8Internal::funcMethod):
1595         (WebCore::ConfigureV8TestTypedefsTemplate):
1596         (WebCore::V8TestTypedefs::GetTemplate):
1597         (WebCore::V8TestTypedefs::HasInstance):
1598         (WebCore):
1599         (WebCore::V8TestTypedefs::HasInstanceInAnyWorld):
1600         * bindings/scripts/test/V8/V8TestTypedefs.h:
1601         (V8TestTypedefs):
1602         * bindings/v8/Dictionary.cpp:
1603         (WebCore::Dictionary::get):
1604         * bindings/v8/ScriptProfiler.cpp:
1605         (WebCore::ScriptProfiler::visitNodeWrappers):
1606         * bindings/v8/SerializedScriptValue.cpp:
1607         * bindings/v8/V8AdaptorFunction.cpp:
1608         (WebCore::V8AdaptorFunction::getTemplate):
1609         * bindings/v8/V8Binding.cpp:
1610         (WebCore::toDOMStringList):
1611         (WebCore::toXPathNSResolver):
1612         * bindings/v8/V8Binding.h:
1613         (WebCore):
1614         (WebCore::toRefPtrNativeArray):
1615         * bindings/v8/V8Collection.cpp:
1616         (WebCore::toOptionsCollectionSetter):
1617         * bindings/v8/V8GCController.cpp:
1618         * bindings/v8/V8NPObject.cpp:
1619         (WebCore::npObjectInvokeImpl):
1620         * bindings/v8/V8PerIsolateData.cpp:
1621         (WebCore::V8PerIsolateData::reportMemoryUsage):
1622         (WebCore::V8PerIsolateData::hasPrivateTemplate):
1623         (WebCore::V8PerIsolateData::privateTemplate):
1624         (WebCore::V8PerIsolateData::rawTemplate):
1625         (WebCore::V8PerIsolateData::hasInstance):
1626         * bindings/v8/V8PerIsolateData.h:
1627         (WebCore::V8PerIsolateData::rawTemplateMap):
1628         (V8PerIsolateData):
1629         (WebCore::V8PerIsolateData::templateMap):
1630         * bindings/v8/V8Utilities.cpp:
1631         (WebCore::extractTransferables):
1632         * bindings/v8/custom/V8ArrayBufferViewCustom.h:
1633         (WebCore::constructWebGLArray):
1634         (WebCore::setWebGLArrayHelper):
1635         * bindings/v8/custom/V8AudioBufferSourceNodeCustom.cpp:
1636         (WebCore::V8AudioBufferSourceNode::bufferAttrSetterCustom):
1637         * bindings/v8/custom/V8BlobCustom.cpp:
1638         (WebCore::V8Blob::constructorCustom):
1639         * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
1640         (WebCore::toCanvasStyle):
1641         * bindings/v8/custom/V8ClipboardCustom.cpp:
1642         (WebCore::V8Clipboard::setDragImageMethodCustom):
1643         * bindings/v8/custom/V8CryptoCustom.cpp:
1644         (WebCore::V8Crypto::getRandomValuesMethodCustom):
1645         * bindings/v8/custom/V8DOMFormDataCustom.cpp:
1646         (WebCore::V8DOMFormData::constructorCustom):
1647         (WebCore::V8DOMFormData::appendMethodCustom):
1648         * bindings/v8/custom/V8DataViewCustom.cpp:
1649         (WebCore::V8DataView::constructorCustom):
1650         * bindings/v8/custom/V8DocumentCustom.cpp:
1651         (WebCore::V8Document::evaluateMethodCustom):
1652         * bindings/v8/custom/V8HTMLMediaElementCustom.cpp:
1653         (WebCore::V8HTMLMediaElement::controllerAttrSetterCustom):
1654         * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
1655         (WebCore::V8HTMLOptionsCollection::addMethodCustom):
1656         * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
1657         (WebCore::removeElement):
1658         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
1659         (WebCore::V8InjectedScriptHost::isHTMLAllCollectionMethodCustom):
1660         (WebCore::V8InjectedScriptHost::typeMethodCustom):
1661         (WebCore::V8InjectedScriptHost::getEventListenersMethodCustom):
1662         * bindings/v8/custom/V8LocationCustom.cpp:
1663         (WebCore::V8Location::reloadAttrGetterCustom):
1664         (WebCore::V8Location::replaceAttrGetterCustom):
1665         (WebCore::V8Location::assignAttrGetterCustom):
1666         * bindings/v8/custom/V8NodeCustom.cpp:
1667         (WebCore::V8Node::insertBeforeMethodCustom):
1668         (WebCore::V8Node::replaceChildMethodCustom):
1669         (WebCore::V8Node::removeChildMethodCustom):
1670         (WebCore::V8Node::appendChildMethodCustom):
1671         * bindings/v8/custom/V8NodeListCustom.cpp:
1672         (WebCore::V8NodeList::opaqueRootForGC):
1673         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
1674         (WebCore::toWebGLUniformLocation):
1675         (WebCore::V8WebGLRenderingContext::getAttachedShadersMethodCustom):
1676         (WebCore::V8WebGLRenderingContext::getProgramParameterMethodCustom):
1677         (WebCore::V8WebGLRenderingContext::getShaderParameterMethodCustom):
1678         (WebCore::V8WebGLRenderingContext::getUniformMethodCustom):
1679         (WebCore::vertexAttribAndUniformHelperf):
1680         (WebCore::uniformHelperi):
1681         (WebCore::uniformMatrixHelper):
1682         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
1683         (WebCore::isDocumentType):
1684         (WebCore::V8XMLHttpRequest::sendMethodCustom):
1685
1686 2013-03-15  Sheriff Bot  <webkit.review.bot@gmail.com>
1687
1688         Unreviewed, rolling out r145802.
1689         http://trac.webkit.org/changeset/145802
1690         https://bugs.webkit.org/show_bug.cgi?id=112444
1691
1692         This broke Chrome. (Requested by marja____ on #webkit).
1693
1694         * bindings/scripts/CodeGeneratorV8.pm:
1695         (GenerateHeader):
1696         (GenerateDomainSafeFunctionGetter):
1697         (GenerateNormalAttrSetter):
1698         (GenerateParametersCheckExpression):
1699         (GenerateParametersCheck):
1700         (GenerateImplementation):
1701         (JSValueToNative):
1702         (CreateCustomSignature):
1703         * bindings/scripts/test/V8/V8Float64Array.cpp:
1704         (WebCore::Float64ArrayV8Internal::fooMethod):
1705         (WebCore::ConfigureV8Float64ArrayTemplate):
1706         (WebCore::V8Float64Array::GetTemplate):
1707         (WebCore::V8Float64Array::HasInstance):
1708         * bindings/scripts/test/V8/V8Float64Array.h:
1709         (V8Float64Array):
1710         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
1711         (WebCore::TestActiveDOMObjectV8Internal::excitingFunctionMethod):
1712         (WebCore::TestActiveDOMObjectV8Internal::postMessageAttrGetter):
1713         (WebCore::ConfigureV8TestActiveDOMObjectTemplate):
1714         (WebCore::V8TestActiveDOMObject::GetTemplate):
1715         (WebCore::V8TestActiveDOMObject::HasInstance):
1716         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
1717         (V8TestActiveDOMObject):
1718         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
1719         (WebCore::V8TestCustomNamedGetter::GetTemplate):
1720         (WebCore::V8TestCustomNamedGetter::HasInstance):
1721         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
1722         (V8TestCustomNamedGetter):
1723         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
1724         (WebCore::V8TestEventConstructor::GetTemplate):
1725         (WebCore::V8TestEventConstructor::HasInstance):
1726         * bindings/scripts/test/V8/V8TestEventConstructor.h:
1727         (V8TestEventConstructor):
1728         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
1729         (WebCore::TestEventTargetV8Internal::dispatchEventMethod):
1730         (WebCore::ConfigureV8TestEventTargetTemplate):
1731         (WebCore::V8TestEventTarget::GetTemplate):
1732         (WebCore::V8TestEventTarget::HasInstance):
1733         * bindings/scripts/test/V8/V8TestEventTarget.h:
1734         (V8TestEventTarget):
1735         * bindings/scripts/test/V8/V8TestException.cpp:
1736         (WebCore::V8TestException::GetTemplate):
1737         (WebCore::V8TestException::HasInstance):
1738         * bindings/scripts/test/V8/V8TestException.h:
1739         (V8TestException):
1740         * bindings/scripts/test/V8/V8TestInterface.cpp:
1741         (WebCore::TestInterfaceV8Internal::supplementalNodeAttrSetter):
1742         (WebCore::TestInterfaceV8Internal::supplementalMethod2Method):
1743         (WebCore::ConfigureV8TestInterfaceTemplate):
1744         (WebCore::V8TestInterface::GetTemplate):
1745         (WebCore::V8TestInterface::HasInstance):
1746         * bindings/scripts/test/V8/V8TestInterface.h:
1747         (V8TestInterface):
1748         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
1749         (WebCore::V8TestMediaQueryListListener::GetTemplate):
1750         (WebCore::V8TestMediaQueryListListener::HasInstance):
1751         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
1752         (V8TestMediaQueryListListener):
1753         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
1754         (WebCore::V8TestNamedConstructor::GetTemplate):
1755         (WebCore::V8TestNamedConstructor::HasInstance):
1756         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
1757         (V8TestNamedConstructor):
1758         * bindings/scripts/test/V8/V8TestNode.cpp:
1759         (WebCore::V8TestNode::GetTemplate):
1760         (WebCore::V8TestNode::HasInstance):
1761         * bindings/scripts/test/V8/V8TestNode.h:
1762         (V8TestNode):
1763         * bindings/scripts/test/V8/V8TestObj.cpp:
1764         (WebCore::TestObjV8Internal::testObjAttrAttrSetter):
1765         (WebCore::TestObjV8Internal::XMLObjAttrAttrSetter):
1766         (WebCore::TestObjV8Internal::typedArrayAttrAttrSetter):
1767         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeAttrSetter):
1768         (WebCore::TestObjV8Internal::withScriptStateAttributeRaisesAttrSetter):
1769         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeRaisesAttrSetter):
1770         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeAttrSetter):
1771         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeRaisesAttrSetter):
1772         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateWithSpacesAttributeAttrSetter):
1773         (WebCore::TestObjV8Internal::withScriptArgumentsAndCallStackAttributeAttrSetter):
1774         (WebCore::TestObjV8Internal::mutablePointAttrSetter):
1775         (WebCore::TestObjV8Internal::immutablePointAttrSetter):
1776         (WebCore::TestObjV8Internal::voidMethodWithArgsMethod):
1777         (WebCore::TestObjV8Internal::longMethodWithArgsMethod):
1778         (WebCore::TestObjV8Internal::objMethodWithArgsMethod):
1779         (WebCore::TestObjV8Internal::methodThatRequiresAllArgsAndThrowsMethod):
1780         (WebCore::TestObjV8Internal::overloadedMethod1Method):
1781         (WebCore::TestObjV8Internal::overloadedMethod2Method):
1782         (WebCore::TestObjV8Internal::overloadedMethod8Method):
1783         (WebCore::TestObjV8Internal::overloadedMethodMethod):
1784         (WebCore::TestObjV8Internal::convert1Method):
1785         (WebCore::TestObjV8Internal::convert2Method):
1786         (WebCore::TestObjV8Internal::convert4Method):
1787         (WebCore::TestObjV8Internal::convert5Method):
1788         (WebCore::TestObjV8Internal::variadicNodeMethodMethod):
1789         (WebCore::ConfigureV8TestObjTemplate):
1790         (WebCore::V8TestObj::GetTemplate):
1791         (WebCore::V8TestObj::HasInstance):
1792         * bindings/scripts/test/V8/V8TestObj.h:
1793         (V8TestObj):
1794         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
1795         (WebCore::TestOverloadedConstructorsV8Internal::constructor1):
1796         (WebCore::TestOverloadedConstructorsV8Internal::constructor2):
1797         (WebCore::TestOverloadedConstructorsV8Internal::constructor3):
1798         (WebCore::TestOverloadedConstructorsV8Internal::constructor):
1799         (WebCore::V8TestOverloadedConstructors::GetTemplate):
1800         (WebCore::V8TestOverloadedConstructors::HasInstance):
1801         * bindings/scripts/test/V8/V8TestOverloadedConstructors.h:
1802         (V8TestOverloadedConstructors):
1803         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
1804         (WebCore::V8TestSerializedScriptValueInterface::GetTemplate):
1805         (WebCore::V8TestSerializedScriptValueInterface::HasInstance):
1806         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
1807         (V8TestSerializedScriptValueInterface):
1808         * bindings/scripts/test/V8/V8TestTypedefs.cpp:
1809         (WebCore::TestTypedefsV8Internal::funcMethod):
1810         (WebCore::ConfigureV8TestTypedefsTemplate):
1811         (WebCore::V8TestTypedefs::GetTemplate):
1812         (WebCore::V8TestTypedefs::HasInstance):
1813         * bindings/scripts/test/V8/V8TestTypedefs.h:
1814         (V8TestTypedefs):
1815         * bindings/v8/Dictionary.cpp:
1816         (WebCore::Dictionary::get):
1817         * bindings/v8/ScriptProfiler.cpp:
1818         (WebCore::ScriptProfiler::visitNodeWrappers):
1819         * bindings/v8/SerializedScriptValue.cpp:
1820         * bindings/v8/V8AdaptorFunction.cpp:
1821         (WebCore::V8AdaptorFunction::getTemplate):
1822         * bindings/v8/V8Binding.cpp:
1823         (WebCore::toDOMStringList):
1824         (WebCore::toXPathNSResolver):
1825         * bindings/v8/V8Binding.h:
1826         (WebCore::toRefPtrNativeArray):
1827         (WebCore):
1828         * bindings/v8/V8Collection.cpp:
1829         (WebCore::toOptionsCollectionSetter):
1830         * bindings/v8/V8GCController.cpp:
1831         * bindings/v8/V8NPObject.cpp:
1832         (WebCore::npObjectInvokeImpl):
1833         * bindings/v8/V8PerIsolateData.cpp:
1834         (WebCore::V8PerIsolateData::reportMemoryUsage):
1835         (WebCore::V8PerIsolateData::hasPrivateTemplate):
1836         (WebCore::V8PerIsolateData::privateTemplate):
1837         (WebCore::V8PerIsolateData::rawTemplate):
1838         (WebCore::V8PerIsolateData::hasInstance):
1839         * bindings/v8/V8PerIsolateData.h:
1840         (WebCore::V8PerIsolateData::rawTemplateMap):
1841         (WebCore::V8PerIsolateData::templateMap):
1842         (V8PerIsolateData):
1843         * bindings/v8/V8Utilities.cpp:
1844         (WebCore::extractTransferables):
1845         * bindings/v8/custom/V8ArrayBufferViewCustom.h:
1846         (WebCore::constructWebGLArray):
1847         (WebCore::setWebGLArrayHelper):
1848         * bindings/v8/custom/V8AudioBufferSourceNodeCustom.cpp:
1849         (WebCore::V8AudioBufferSourceNode::bufferAttrSetterCustom):
1850         * bindings/v8/custom/V8BlobCustom.cpp:
1851         (WebCore::V8Blob::constructorCustom):
1852         * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
1853         (WebCore::toCanvasStyle):
1854         * bindings/v8/custom/V8ClipboardCustom.cpp:
1855         (WebCore::V8Clipboard::setDragImageMethodCustom):
1856         * bindings/v8/custom/V8CryptoCustom.cpp:
1857         (WebCore::V8Crypto::getRandomValuesMethodCustom):
1858         * bindings/v8/custom/V8DOMFormDataCustom.cpp:
1859         (WebCore::V8DOMFormData::constructorCustom):
1860         (WebCore::V8DOMFormData::appendMethodCustom):
1861         * bindings/v8/custom/V8DataViewCustom.cpp:
1862         (WebCore::V8DataView::constructorCustom):
1863         * bindings/v8/custom/V8DocumentCustom.cpp:
1864         (WebCore::V8Document::evaluateMethodCustom):
1865         * bindings/v8/custom/V8HTMLMediaElementCustom.cpp:
1866         (WebCore::V8HTMLMediaElement::controllerAttrSetterCustom):
1867         * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
1868         (WebCore::V8HTMLOptionsCollection::addMethodCustom):
1869         * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
1870         (WebCore::removeElement):
1871         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
1872         (WebCore::V8InjectedScriptHost::isHTMLAllCollectionMethodCustom):
1873         (WebCore::V8InjectedScriptHost::typeMethodCustom):
1874         (WebCore::V8InjectedScriptHost::getEventListenersMethodCustom):
1875         * bindings/v8/custom/V8LocationCustom.cpp:
1876         (WebCore::V8Location::reloadAttrGetterCustom):
1877         (WebCore::V8Location::replaceAttrGetterCustom):
1878         (WebCore::V8Location::assignAttrGetterCustom):
1879         * bindings/v8/custom/V8NodeCustom.cpp:
1880         (WebCore::V8Node::insertBeforeMethodCustom):
1881         (WebCore::V8Node::replaceChildMethodCustom):
1882         (WebCore::V8Node::removeChildMethodCustom):
1883         (WebCore::V8Node::appendChildMethodCustom):
1884         * bindings/v8/custom/V8NodeListCustom.cpp:
1885         (WebCore::V8NodeList::opaqueRootForGC):
1886         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
1887         (WebCore::toWebGLUniformLocation):
1888         (WebCore::V8WebGLRenderingContext::getAttachedShadersMethodCustom):
1889         (WebCore::V8WebGLRenderingContext::getProgramParameterMethodCustom):
1890         (WebCore::V8WebGLRenderingContext::getShaderParameterMethodCustom):
1891         (WebCore::V8WebGLRenderingContext::getUniformMethodCustom):
1892         (WebCore::vertexAttribAndUniformHelperf):
1893         (WebCore::uniformHelperi):
1894         (WebCore::uniformMatrixHelper):
1895         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
1896         (WebCore::isDocumentType):
1897         (WebCore::V8XMLHttpRequest::sendMethodCustom):
1898
1899 2013-03-15  Sheriff Bot  <webkit.review.bot@gmail.com>
1900
1901         Unreviewed, rolling out r145896.
1902         http://trac.webkit.org/changeset/145896
1903         https://bugs.webkit.org/show_bug.cgi?id=112443
1904
1905         Chrome broken by r145802 and this builds on top of it.
1906         (Requested by marja____ on #webkit).
1907
1908         * bindings/scripts/CodeGeneratorV8.pm:
1909         (GenerateHeader):
1910         (GenerateNormalAttrGetterCallback):
1911         (GenerateNormalAttrGetter):
1912         (GenerateNormalAttrSetterCallback):
1913         (GenerateNormalAttrSetter):
1914         (GenerateNamedConstructor):
1915         (GenerateBatchedAttributeData):
1916         (GenerateSingleBatchedAttribute):
1917         (GenerateImplementation):
1918         (GenerateCallbackImplementation):
1919         (GenerateFunctionCallString):
1920         (CreateCustomSignature):
1921         (NativeToJSValue):
1922         * bindings/scripts/test/V8/V8Float64Array.cpp:
1923         (WebCore::ConfigureV8Float64ArrayTemplate):
1924         (WebCore::V8Float64Array::GetTemplate):
1925         (WebCore::V8Float64Array::HasInstance):
1926         * bindings/scripts/test/V8/V8Float64Array.h:
1927         (WebCore):
1928         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
1929         (WebCore::ConfigureV8TestActiveDOMObjectTemplate):
1930         (WebCore::V8TestActiveDOMObject::GetTemplate):
1931         (WebCore::V8TestActiveDOMObject::HasInstance):
1932         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
1933         (WebCore):
1934         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
1935         (WebCore::ConfigureV8TestCustomNamedGetterTemplate):
1936         (WebCore::V8TestCustomNamedGetter::GetTemplate):
1937         (WebCore::V8TestCustomNamedGetter::HasInstance):
1938         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
1939         (WebCore):
1940         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
1941         (WebCore):
1942         (WebCore::ConfigureV8TestEventConstructorTemplate):
1943         (WebCore::V8TestEventConstructor::GetTemplate):
1944         (WebCore::V8TestEventConstructor::HasInstance):
1945         * bindings/scripts/test/V8/V8TestEventConstructor.h:
1946         (WebCore):
1947         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
1948         (WebCore::ConfigureV8TestEventTargetTemplate):
1949         (WebCore::V8TestEventTarget::GetTemplate):
1950         (WebCore::V8TestEventTarget::HasInstance):
1951         * bindings/scripts/test/V8/V8TestEventTarget.h:
1952         (WebCore):
1953         * bindings/scripts/test/V8/V8TestException.cpp:
1954         (WebCore::ConfigureV8TestExceptionTemplate):
1955         (WebCore::V8TestException::GetTemplate):
1956         (WebCore::V8TestException::HasInstance):
1957         * bindings/scripts/test/V8/V8TestException.h:
1958         (WebCore):
1959         * bindings/scripts/test/V8/V8TestInterface.cpp:
1960         (TestInterfaceV8Internal):
1961         (WebCore):
1962         (WebCore::ConfigureV8TestInterfaceTemplate):
1963         (WebCore::V8TestInterface::GetTemplate):
1964         (WebCore::V8TestInterface::HasInstance):
1965         * bindings/scripts/test/V8/V8TestInterface.h:
1966         (WebCore):
1967         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
1968         (WebCore::ConfigureV8TestMediaQueryListListenerTemplate):
1969         (WebCore::V8TestMediaQueryListListener::GetTemplate):
1970         (WebCore::V8TestMediaQueryListListener::HasInstance):
1971         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
1972         (WebCore):
1973         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
1974         (WebCore::V8TestNamedConstructorConstructor::GetTemplate):
1975         (WebCore::ConfigureV8TestNamedConstructorTemplate):
1976         (WebCore::V8TestNamedConstructor::GetTemplate):
1977         (WebCore::V8TestNamedConstructor::HasInstance):
1978         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
1979         (WebCore):
1980         * bindings/scripts/test/V8/V8TestNode.cpp:
1981         (WebCore::ConfigureV8TestNodeTemplate):
1982         (WebCore::V8TestNode::GetTemplate):
1983         (WebCore::V8TestNode::HasInstance):
1984         * bindings/scripts/test/V8/V8TestNode.h:
1985         (WebCore):
1986         * bindings/scripts/test/V8/V8TestObj.cpp:
1987         (TestObjV8Internal):
1988         (WebCore):
1989         (WebCore::ConfigureV8TestObjTemplate):
1990         (WebCore::V8TestObj::GetTemplate):
1991         (WebCore::V8TestObj::HasInstance):
1992         * bindings/scripts/test/V8/V8TestObj.h:
1993         (WebCore):
1994         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
1995         (WebCore::ConfigureV8TestOverloadedConstructorsTemplate):
1996         (WebCore::V8TestOverloadedConstructors::GetTemplate):
1997         (WebCore::V8TestOverloadedConstructors::HasInstance):
1998         * bindings/scripts/test/V8/V8TestOverloadedConstructors.h:
1999         (WebCore):
2000         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
2001         (WebCore):
2002         (WebCore::ConfigureV8TestSerializedScriptValueInterfaceTemplate):
2003         (WebCore::V8TestSerializedScriptValueInterface::GetTemplate):
2004         (WebCore::V8TestSerializedScriptValueInterface::HasInstance):
2005         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
2006         (WebCore):
2007         * bindings/scripts/test/V8/V8TestTypedefs.cpp:
2008         (WebCore):
2009         (WebCore::ConfigureV8TestTypedefsTemplate):
2010         (WebCore::V8TestTypedefs::GetTemplate):
2011         (WebCore::V8TestTypedefs::HasInstance):
2012         * bindings/scripts/test/V8/V8TestTypedefs.h:
2013         (WebCore):
2014         * bindings/v8/DOMDataStore.h:
2015         (DOMDataStore):
2016         * bindings/v8/V8DOMConfiguration.cpp:
2017         * bindings/v8/V8DOMConfiguration.h:
2018         (V8DOMConfiguration):
2019         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2020         * bindings/v8/custom/V8EventTargetCustom.cpp:
2021         * bindings/v8/custom/V8IDBAnyCustom.cpp:
2022         * bindings/v8/custom/V8MicroDataItemValueCustom.cpp:
2023         * bindings/v8/custom/V8WorkerContextCustom.cpp:
2024
2025 2013-03-15  Alberto Garcia  <agarcia@igalia.com>
2026
2027         [BlackBerry] Remove PlatformSupport
2028         https://bugs.webkit.org/show_bug.cgi?id=112438
2029
2030         Reviewed by Rob Buis.
2031
2032         This class only contains getFontFamilyForCharacters(), which was
2033         moved from PlatformSupport to FontCache in r129257.
2034
2035         This patch does the same for the BlackBerry port.
2036
2037         * platform/graphics/FontCache.h:
2038         (FontCache):
2039         * platform/graphics/blackberry/FontCacheBlackBerry.cpp:
2040         (WebCore::FontCache::getFontFamilyForCharacters):
2041         (WebCore):
2042         (WebCore::FontCache::getFontDataForCharacters):
2043         * platform/graphics/blackberry/PlatformSupport.cpp: Removed.
2044         * platform/graphics/blackberry/PlatformSupport.h: Removed.
2045
2046 2013-03-15  Alberto Garcia  <agarcia@igalia.com>
2047
2048         [BlackBerry] FontPlatformData: remove TextOrientation parameter
2049         https://bugs.webkit.org/show_bug.cgi?id=112135
2050
2051         Reviewed by Rob Buis.
2052
2053         I forgot to remove the #include "TextOrientation.h" line as
2054         well. This file no longer exists.
2055
2056         * platform/graphics/blackberry/FontCustomPlatformData.h:
2057
2058 2013-03-15  Sankeerth V S  <sankeerth.vs@samsung.com>
2059
2060         DataGrid should reveal and select next/previous DataGridNode upon deletion of selected node
2061         https://bugs.webkit.org/show_bug.cgi?id=112404
2062
2063         Reviewed by Vsevolod Vlasov.
2064
2065         No new tests as this is a UI related change.
2066
2067         While deleting the entries of the data grid by clicking on 'Delete'
2068         status bar button, deletion of selected node should trigger selection of
2069         next possible (backward/forward) DataGridNode.
2070
2071         * inspector/front-end/DOMStorageItemsView.js:
2072         (WebInspector.DOMStorageItemsView.prototype._deleteButtonClicked):
2073         * inspector/front-end/DataGrid.js:
2074         (WebInspector.DataGrid.prototype._keyDown):
2075         (WebInspector.DataGrid.prototype.changeNodeAfterDeletion):
2076
2077 2013-03-15  Ilya Tikhonovsky  <loislo@chromium.org>
2078
2079         Web Inspector: Flame Chart. Draw timeline grid over flame chart items.
2080         https://bugs.webkit.org/show_bug.cgi?id=112439
2081
2082         Reviewed by Pavel Feldman.
2083
2084         I've used WebInspector.TimelineGrid
2085
2086         * inspector/front-end/FlameChart.js:
2087         (WebInspector.FlameChart):
2088         (WebInspector.FlameChart.Calculator):
2089         (WebInspector.FlameChart.Calculator.prototype._updateBoundaries):
2090         (WebInspector.FlameChart.Calculator.prototype.computePosition):
2091         (WebInspector.FlameChart.Calculator.prototype.formatTime):
2092         (WebInspector.FlameChart.Calculator.prototype.maximumBoundary):
2093         (WebInspector.FlameChart.Calculator.prototype.minimumBoundary):
2094         (WebInspector.FlameChart.Calculator.prototype.boundarySpan):
2095         (WebInspector.FlameChart.prototype.update):
2096
2097 2013-03-15  Marja Hölttä  <marja@chromium.org>
2098
2099         [V8] Add machinery for generating specialized bindings for the main world
2100         https://bugs.webkit.org/show_bug.cgi?id=111417
2101
2102         Reviewed by Kentaro Hara.
2103
2104         The new specialized bindings will be faster, because they don't need to
2105         do the "main world, isolated world or a worker" check, but can right
2106         away assume that we're in the main world.
2107
2108         This patch generates main world bindings for getters and setters.
2109
2110         No new tests (updated existing bindings tests).
2111
2112         * bindings/scripts/CodeGeneratorV8.pm:
2113         (GenerateHeader):
2114         (GenerateNormalAttrGetterCallback):
2115         (GenerateNormalAttrGetter):
2116         (GenerateNormalAttrSetterCallback):
2117         (GenerateNormalAttrSetter):
2118         (GenerateNamedConstructor):
2119         (GenerateBatchedAttributeData):
2120         (GenerateSingleBatchedAttribute):
2121         (GenerateImplementation):
2122         (GenerateCallbackImplementation):
2123         (GenerateFunctionCallString):
2124         (CreateCustomSignature):
2125         (NativeToJSValue):
2126         * bindings/scripts/test/V8/V8Float64Array.cpp:
2127         (WebCore::ConfigureV8Float64ArrayTemplate):
2128         (WebCore::V8Float64Array::GetTemplate):
2129         (WebCore::V8Float64Array::HasInstance):
2130         * bindings/scripts/test/V8/V8Float64Array.h:
2131         (WebCore::toV8ForMainWorld):
2132         (WebCore):
2133         (WebCore::toV8FastForMainWorld):
2134         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
2135         (WebCore::TestActiveDOMObjectV8Internal::excitingAttrAttrGetterForMainWorld):
2136         (TestActiveDOMObjectV8Internal):
2137         (WebCore::TestActiveDOMObjectV8Internal::excitingAttrAttrGetterCallbackForMainWorld):
2138         (WebCore):
2139         (WebCore::ConfigureV8TestActiveDOMObjectTemplate):
2140         (WebCore::V8TestActiveDOMObject::GetTemplate):
2141         (WebCore::V8TestActiveDOMObject::HasInstance):
2142         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
2143         (WebCore::toV8ForMainWorld):
2144         (WebCore):
2145         (WebCore::toV8FastForMainWorld):
2146         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
2147         (WebCore::ConfigureV8TestCustomNamedGetterTemplate):
2148         (WebCore::V8TestCustomNamedGetter::GetTemplate):
2149         (WebCore::V8TestCustomNamedGetter::HasInstance):
2150         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
2151         (WebCore::toV8ForMainWorld):
2152         (WebCore):
2153         (WebCore::toV8FastForMainWorld):
2154         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
2155         (WebCore::TestEventConstructorV8Internal::attr1AttrGetterForMainWorld):
2156         (TestEventConstructorV8Internal):
2157         (WebCore::TestEventConstructorV8Internal::attr1AttrGetterCallbackForMainWorld):
2158         (WebCore::TestEventConstructorV8Internal::attr2AttrGetterForMainWorld):
2159         (WebCore::TestEventConstructorV8Internal::attr2AttrGetterCallbackForMainWorld):
2160         (WebCore):
2161         (WebCore::ConfigureV8TestEventConstructorTemplate):
2162         (WebCore::V8TestEventConstructor::GetTemplate):
2163         (WebCore::V8TestEventConstructor::HasInstance):
2164         * bindings/scripts/test/V8/V8TestEventConstructor.h:
2165         (WebCore::toV8ForMainWorld):
2166         (WebCore):
2167         (WebCore::toV8FastForMainWorld):
2168         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
2169         (WebCore::ConfigureV8TestEventTargetTemplate):
2170         (WebCore::V8TestEventTarget::GetTemplate):
2171         (WebCore::V8TestEventTarget::HasInstance):
2172         * bindings/scripts/test/V8/V8TestEventTarget.h:
2173         (WebCore::toV8ForMainWorld):
2174         (WebCore):
2175         (WebCore::toV8FastForMainWorld):
2176         * bindings/scripts/test/V8/V8TestException.cpp:
2177         (WebCore::TestExceptionV8Internal::nameAttrGetterForMainWorld):
2178         (TestExceptionV8Internal):
2179         (WebCore::TestExceptionV8Internal::nameAttrGetterCallbackForMainWorld):
2180         (WebCore):
2181         (WebCore::ConfigureV8TestExceptionTemplate):
2182         (WebCore::V8TestException::GetTemplate):
2183         (WebCore::V8TestException::HasInstance):
2184         * bindings/scripts/test/V8/V8TestException.h:
2185         (WebCore::toV8ForMainWorld):
2186         (WebCore):
2187         (WebCore::toV8FastForMainWorld):
2188         * bindings/scripts/test/V8/V8TestInterface.cpp:
2189         (WebCore::TestInterfaceV8Internal::supplementalStaticReadOnlyAttrAttrGetterForMainWorld):
2190         (TestInterfaceV8Internal):
2191         (WebCore::TestInterfaceV8Internal::supplementalStaticReadOnlyAttrAttrGetterCallbackForMainWorld):
2192         (WebCore::TestInterfaceV8Internal::supplementalStaticAttrAttrGetterForMainWorld):
2193         (WebCore::TestInterfaceV8Internal::supplementalStaticAttrAttrGetterCallbackForMainWorld):
2194         (WebCore::TestInterfaceV8Internal::supplementalStaticAttrAttrSetterForMainWorld):
2195         (WebCore::TestInterfaceV8Internal::supplementalStaticAttrAttrSetterCallbackForMainWorld):
2196         (WebCore::TestInterfaceV8Internal::supplementalStr1AttrGetterForMainWorld):
2197         (WebCore::TestInterfaceV8Internal::supplementalStr1AttrGetterCallbackForMainWorld):
2198         (WebCore::TestInterfaceV8Internal::supplementalStr2AttrGetterForMainWorld):
2199         (WebCore::TestInterfaceV8Internal::supplementalStr2AttrGetterCallbackForMainWorld):
2200         (WebCore::TestInterfaceV8Internal::supplementalStr2AttrSetterForMainWorld):
2201         (WebCore::TestInterfaceV8Internal::supplementalStr2AttrSetterCallbackForMainWorld):
2202         (WebCore::TestInterfaceV8Internal::supplementalStr3AttrGetterCallbackForMainWorld):
2203         (WebCore::TestInterfaceV8Internal::supplementalStr3AttrSetterCallbackForMainWorld):
2204         (WebCore::TestInterfaceV8Internal::supplementalNodeAttrGetterForMainWorld):
2205         (WebCore::TestInterfaceV8Internal::supplementalNodeAttrGetterCallbackForMainWorld):
2206         (WebCore::TestInterfaceV8Internal::supplementalNodeAttrSetterForMainWorld):
2207         (WebCore::TestInterfaceV8Internal::supplementalNodeAttrSetterCallbackForMainWorld):
2208         (WebCore):
2209         (WebCore::ConfigureV8TestInterfaceTemplate):
2210         (WebCore::V8TestInterface::GetTemplate):
2211         (WebCore::V8TestInterface::HasInstance):
2212         * bindings/scripts/test/V8/V8TestInterface.h:
2213         (WebCore::toV8ForMainWorld):
2214         (WebCore):
2215         (WebCore::toV8FastForMainWorld):
2216         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
2217         (WebCore::ConfigureV8TestMediaQueryListListenerTemplate):
2218         (WebCore::V8TestMediaQueryListListener::GetTemplate):
2219         (WebCore::V8TestMediaQueryListListener::HasInstance):
2220         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
2221         (WebCore::toV8ForMainWorld):
2222         (WebCore):
2223         (WebCore::toV8FastForMainWorld):
2224         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
2225         (WebCore::V8TestNamedConstructorConstructor::GetTemplate):
2226         (WebCore::ConfigureV8TestNamedConstructorTemplate):
2227         (WebCore::V8TestNamedConstructor::GetTemplate):
2228         (WebCore::V8TestNamedConstructor::HasInstance):
2229         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
2230         (WebCore::toV8ForMainWorld):
2231         (WebCore):
2232         (WebCore::toV8FastForMainWorld):
2233         * bindings/scripts/test/V8/V8TestNode.cpp:
2234         (WebCore::ConfigureV8TestNodeTemplate):
2235         (WebCore::V8TestNode::GetTemplate):
2236         (WebCore::V8TestNode::HasInstance):
2237         * bindings/scripts/test/V8/V8TestNode.h:
2238         (WebCore::toV8ForMainWorld):
2239         (WebCore):
2240         (WebCore::toV8FastForMainWorld):
2241         * bindings/scripts/test/V8/V8TestObj.cpp:
2242         (WebCore::TestObjV8Internal::readOnlyLongAttrAttrGetterForMainWorld):
2243         (TestObjV8Internal):
2244         (WebCore::TestObjV8Internal::readOnlyLongAttrAttrGetterCallbackForMainWorld):
2245         (WebCore::TestObjV8Internal::readOnlyStringAttrAttrGetterForMainWorld):
2246         (WebCore::TestObjV8Internal::readOnlyStringAttrAttrGetterCallbackForMainWorld):
2247         (WebCore::TestObjV8Internal::readOnlyTestObjAttrAttrGetterForMainWorld):
2248         (WebCore::TestObjV8Internal::readOnlyTestObjAttrAttrGetterCallbackForMainWorld):
2249         (WebCore::TestObjV8Internal::staticReadOnlyLongAttrAttrGetterForMainWorld):
2250         (WebCore::TestObjV8Internal::staticReadOnlyLongAttrAttrGetterCallbackForMainWorld):
2251         (WebCore::TestObjV8Internal::staticStringAttrAttrGetterForMainWorld):
2252         (WebCore::TestObjV8Internal::staticStringAttrAttrGetterCallbackForMainWorld):
2253         (WebCore::TestObjV8Internal::staticStringAttrAttrSetterForMainWorld):
2254         (WebCore::TestObjV8Internal::staticStringAttrAttrSetterCallbackForMainWorld):
2255         (WebCore::TestObjV8Internal::enumAttrAttrGetterForMainWorld):
2256         (WebCore::TestObjV8Internal::enumAttrAttrGetterCallbackForMainWorld):
2257         (WebCore::TestObjV8Internal::enumAttrAttrSetterForMainWorld):
2258         (WebCore::TestObjV8Internal::enumAttrAttrSetterCallbackForMainWorld):
2259         (WebCore::TestObjV8Internal::shortAttrAttrGetterForMainWorld):
2260         (WebCore::TestObjV8Internal::shortAttrAttrGetterCallbackForMainWorld):
2261         (WebCore::TestObjV8Internal::shortAttrAttrSetterForMainWorld):
2262         (WebCore::TestObjV8Internal::shortAttrAttrSetterCallbackForMainWorld):
2263         (WebCore::TestObjV8Internal::unsignedShortAttrAttrGetterForMainWorld):
2264         (WebCore::TestObjV8Internal::unsignedShortAttrAttrGetterCallbackForMainWorld):
2265         (WebCore::TestObjV8Internal::unsignedShortAttrAttrSetterForMainWorld):
2266         (WebCore::TestObjV8Internal::unsignedShortAttrAttrSetterCallbackForMainWorld):
2267         (WebCore::TestObjV8Internal::longAttrAttrGetterForMainWorld):
2268         (WebCore::TestObjV8Internal::longAttrAttrGetterCallbackForMainWorld):
2269         (WebCore::TestObjV8Internal::longAttrAttrSetterForMainWorld):
2270         (WebCore::TestObjV8Internal::longAttrAttrSetterCallbackForMainWorld):
2271         (WebCore::TestObjV8Internal::longLongAttrAttrGetterForMainWorld):
2272         (WebCore::TestObjV8Internal::longLongAttrAttrGetterCallbackForMainWorld):
2273         (WebCore::TestObjV8Internal::longLongAttrAttrSetterForMainWorld):
2274         (WebCore::TestObjV8Internal::longLongAttrAttrSetterCallbackForMainWorld):
2275         (WebCore::TestObjV8Internal::unsignedLongLongAttrAttrGetterForMainWorld):
2276         (WebCore::TestObjV8Internal::unsignedLongLongAttrAttrGetterCallbackForMainWorld):
2277         (WebCore::TestObjV8Internal::unsignedLongLongAttrAttrSetterForMainWorld):
2278         (WebCore::TestObjV8Internal::unsignedLongLongAttrAttrSetterCallbackForMainWorld):
2279         (WebCore::TestObjV8Internal::stringAttrAttrGetterForMainWorld):
2280         (WebCore::TestObjV8Internal::stringAttrAttrGetterCallbackForMainWorld):
2281         (WebCore::TestObjV8Internal::stringAttrAttrSetterForMainWorld):
2282         (WebCore::TestObjV8Internal::stringAttrAttrSetterCallbackForMainWorld):
2283         (WebCore::TestObjV8Internal::testObjAttrAttrGetterForMainWorld):
2284         (WebCore::TestObjV8Internal::testObjAttrAttrGetterCallbackForMainWorld):
2285         (WebCore::TestObjV8Internal::testObjAttrAttrSetterForMainWorld):
2286         (WebCore::TestObjV8Internal::testObjAttrAttrSetterCallbackForMainWorld):
2287         (WebCore::TestObjV8Internal::XMLObjAttrAttrGetterForMainWorld):
2288         (WebCore::TestObjV8Internal::XMLObjAttrAttrGetterCallbackForMainWorld):
2289         (WebCore::TestObjV8Internal::XMLObjAttrAttrSetterForMainWorld):
2290         (WebCore::TestObjV8Internal::XMLObjAttrAttrSetterCallbackForMainWorld):
2291         (WebCore::TestObjV8Internal::createAttrGetterForMainWorld):
2292         (WebCore::TestObjV8Internal::createAttrGetterCallbackForMainWorld):
2293         (WebCore::TestObjV8Internal::createAttrSetterForMainWorld):
2294         (WebCore::TestObjV8Internal::createAttrSetterCallbackForMainWorld):
2295         (WebCore::TestObjV8Internal::reflectedStringAttrAttrGetterForMainWorld):
2296         (WebCore::TestObjV8Internal::reflectedStringAttrAttrGetterCallbackForMainWorld):
2297         (WebCore::TestObjV8Internal::reflectedStringAttrAttrSetterForMainWorld):
2298         (WebCore::TestObjV8Internal::reflectedStringAttrAttrSetterCallbackForMainWorld):
2299         (WebCore::TestObjV8Internal::reflectedIntegralAttrAttrGetterForMainWorld):
2300         (WebCore::TestObjV8Internal::reflectedIntegralAttrAttrGetterCallbackForMainWorld):
2301         (WebCore::TestObjV8Internal::reflectedIntegralAttrAttrSetter):
2302         (WebCore::TestObjV8Internal::reflectedIntegralAttrAttrSetterForMainWorld):
2303         (WebCore::TestObjV8Internal::reflectedIntegralAttrAttrSetterCallbackForMainWorld):
2304         (WebCore::TestObjV8Internal::reflectedUnsignedIntegralAttrAttrGetterForMainWorld):
2305         (WebCore::TestObjV8Internal::reflectedUnsignedIntegralAttrAttrGetterCallbackForMainWorld):
2306         (WebCore::TestObjV8Internal::reflectedUnsignedIntegralAttrAttrSetterForMainWorld):
2307         (WebCore::TestObjV8Internal::reflectedUnsignedIntegralAttrAttrSetterCallbackForMainWorld):
2308         (WebCore::TestObjV8Internal::reflectedBooleanAttrAttrGetterForMainWorld):
2309         (WebCore::TestObjV8Internal::reflectedBooleanAttrAttrGetterCallbackForMainWorld):
2310         (WebCore::TestObjV8Internal::reflectedBooleanAttrAttrSetterForMainWorld):
2311         (WebCore::TestObjV8Internal::reflectedBooleanAttrAttrSetterCallbackForMainWorld):
2312         (WebCore::TestObjV8Internal::reflectedURLAttrAttrGetterForMainWorld):
2313         (WebCore::TestObjV8Internal::reflectedURLAttrAttrGetterCallbackForMainWorld):
2314         (WebCore::TestObjV8Internal::reflectedURLAttrAttrSetterForMainWorld):
2315         (WebCore::TestObjV8Internal::reflectedURLAttrAttrSetterCallbackForMainWorld):
2316         (WebCore::TestObjV8Internal::reflectedCustomIntegralAttrAttrGetterForMainWorld):
2317         (WebCore::TestObjV8Internal::reflectedCustomIntegralAttrAttrGetterCallbackForMainWorld):
2318         (WebCore::TestObjV8Internal::reflectedCustomIntegralAttrAttrSetterForMainWorld):
2319         (WebCore::TestObjV8Internal::reflectedCustomIntegralAttrAttrSetterCallbackForMainWorld):
2320         (WebCore::TestObjV8Internal::reflectedCustomBooleanAttrAttrGetterForMainWorld):
2321         (WebCore::TestObjV8Internal::reflectedCustomBooleanAttrAttrGetterCallbackForMainWorld):
2322         (WebCore::TestObjV8Internal::reflectedCustomBooleanAttrAttrSetterForMainWorld):
2323         (WebCore::TestObjV8Internal::reflectedCustomBooleanAttrAttrSetterCallbackForMainWorld):
2324         (WebCore::TestObjV8Internal::reflectedCustomURLAttrAttrGetterForMainWorld):
2325         (WebCore::TestObjV8Internal::reflectedCustomURLAttrAttrGetterCallbackForMainWorld):
2326         (WebCore::TestObjV8Internal::reflectedCustomURLAttrAttrSetterForMainWorld):
2327         (WebCore::TestObjV8Internal::reflectedCustomURLAttrAttrSetterCallbackForMainWorld):
2328         (WebCore::TestObjV8Internal::typedArrayAttrAttrGetterForMainWorld):
2329         (WebCore::TestObjV8Internal::typedArrayAttrAttrGetterCallbackForMainWorld):
2330         (WebCore::TestObjV8Internal::typedArrayAttrAttrSetterForMainWorld):
2331         (WebCore::TestObjV8Internal::typedArrayAttrAttrSetterCallbackForMainWorld):
2332         (WebCore::TestObjV8Internal::attrWithGetterExceptionAttrGetterForMainWorld):
2333         (WebCore::TestObjV8Internal::attrWithGetterExceptionAttrGetterCallbackForMainWorld):
2334         (WebCore::TestObjV8Internal::attrWithGetterExceptionAttrSetterForMainWorld):
2335         (WebCore::TestObjV8Internal::attrWithGetterExceptionAttrSetterCallbackForMainWorld):
2336         (WebCore::TestObjV8Internal::attrWithSetterExceptionAttrGetterForMainWorld):
2337         (WebCore::TestObjV8Internal::attrWithSetterExceptionAttrGetterCallbackForMainWorld):
2338         (WebCore::TestObjV8Internal::attrWithSetterExceptionAttrSetterForMainWorld):
2339         (WebCore::TestObjV8Internal::attrWithSetterExceptionAttrSetterCallbackForMainWorld):
2340         (WebCore::TestObjV8Internal::stringAttrWithGetterExceptionAttrGetterForMainWorld):
2341         (WebCore::TestObjV8Internal::stringAttrWithGetterExceptionAttrGetterCallbackForMainWorld):
2342         (WebCore::TestObjV8Internal::stringAttrWithGetterExceptionAttrSetterForMainWorld):
2343         (WebCore::TestObjV8Internal::stringAttrWithGetterExceptionAttrSetterCallbackForMainWorld):
2344         (WebCore::TestObjV8Internal::stringAttrWithSetterExceptionAttrGetterForMainWorld):
2345         (WebCore::TestObjV8Internal::stringAttrWithSetterExceptionAttrGetterCallbackForMainWorld):
2346         (WebCore::TestObjV8Internal::stringAttrWithSetterExceptionAttrSetterForMainWorld):
2347         (WebCore::TestObjV8Internal::stringAttrWithSetterExceptionAttrSetterCallbackForMainWorld):
2348         (WebCore::TestObjV8Internal::customAttrAttrGetterCallbackForMainWorld):
2349         (WebCore::TestObjV8Internal::customAttrAttrSetterCallbackForMainWorld):
2350         (WebCore::TestObjV8Internal::withScriptStateAttributeAttrGetterForMainWorld):
2351         (WebCore::TestObjV8Internal::withScriptStateAttributeAttrGetterCallbackForMainWorld):
2352         (WebCore::TestObjV8Internal::withScriptStateAttributeAttrSetterForMainWorld):
2353         (WebCore::TestObjV8Internal::withScriptStateAttributeAttrSetterCallbackForMainWorld):
2354         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeAttrGetterForMainWorld):
2355         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeAttrGetterCallbackForMainWorld):
2356         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeAttrSetterForMainWorld):
2357         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeAttrSetterCallbackForMainWorld):
2358         (WebCore::TestObjV8Internal::withScriptStateAttributeRaisesAttrGetterForMainWorld):
2359         (WebCore::TestObjV8Internal::withScriptStateAttributeRaisesAttrGetterCallbackForMainWorld):
2360         (WebCore::TestObjV8Internal::withScriptStateAttributeRaisesAttrSetterForMainWorld):
2361         (WebCore::TestObjV8Internal::withScriptStateAttributeRaisesAttrSetterCallbackForMainWorld):
2362         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeRaisesAttrGetterForMainWorld):
2363         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeRaisesAttrGetterCallbackForMainWorld):
2364         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeRaisesAttrSetterForMainWorld):
2365         (WebCore::TestObjV8Internal::withScriptExecutionContextAttributeRaisesAttrSetterCallbackForMainWorld):
2366         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeAttrGetterForMainWorld):
2367         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeAttrGetterCallbackForMainWorld):
2368         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeAttrSetterForMainWorld):
2369         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeAttrSetterCallbackForMainWorld):
2370         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeRaisesAttrGetterForMainWorld):
2371         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeRaisesAttrGetterCallbackForMainWorld):
2372         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeRaisesAttrSetterForMainWorld):
2373         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateAttributeRaisesAttrSetterCallbackForMainWorld):
2374         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateWithSpacesAttributeAttrGetterForMainWorld):
2375         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateWithSpacesAttributeAttrGetterCallbackForMainWorld):
2376         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateWithSpacesAttributeAttrSetterForMainWorld):
2377         (WebCore::TestObjV8Internal::withScriptExecutionContextAndScriptStateWithSpacesAttributeAttrSetterCallbackForMainWorld):
2378         (WebCore::TestObjV8Internal::withScriptArgumentsAndCallStackAttributeAttrGetterForMainWorld):
2379         (WebCore::TestObjV8Internal::withScriptArgumentsAndCallStackAttributeAttrGetterCallbackForMainWorld):
2380         (WebCore::TestObjV8Internal::withScriptArgumentsAndCallStackAttributeAttrSetterForMainWorld):
2381         (WebCore::TestObjV8Internal::withScriptArgumentsAndCallStackAttributeAttrSetterCallbackForMainWorld):
2382         (WebCore::TestObjV8Internal::conditionalAttr1AttrGetterForMainWorld):
2383         (WebCore::TestObjV8Internal::conditionalAttr1AttrGetterCallbackForMainWorld):
2384         (WebCore::TestObjV8Internal::conditionalAttr1AttrSetterForMainWorld):
2385         (WebCore::TestObjV8Internal::conditionalAttr1AttrSetterCallbackForMainWorld):
2386         (WebCore::TestObjV8Internal::conditionalAttr2AttrGetterForMainWorld):
2387         (WebCore::TestObjV8Internal::conditionalAttr2AttrGetterCallbackForMainWorld):
2388         (WebCore::TestObjV8Internal::conditionalAttr2AttrSetterForMainWorld):
2389         (WebCore::TestObjV8Internal::conditionalAttr2AttrSetterCallbackForMainWorld):
2390         (WebCore::TestObjV8Internal::conditionalAttr3AttrGetterForMainWorld):
2391         (WebCore::TestObjV8Internal::conditionalAttr3AttrGetterCallbackForMainWorld):
2392         (WebCore::TestObjV8Internal::conditionalAttr3AttrSetterForMainWorld):
2393         (WebCore::TestObjV8Internal::conditionalAttr3AttrSetterCallbackForMainWorld):
2394         (WebCore::TestObjV8Internal::cachedAttribute1AttrGetterForMainWorld):
2395         (WebCore::TestObjV8Internal::cachedAttribute1AttrGetterCallbackForMainWorld):
2396         (WebCore::TestObjV8Internal::cachedAttribute2AttrGetterForMainWorld):
2397         (WebCore::TestObjV8Internal::cachedAttribute2AttrGetterCallbackForMainWorld):
2398         (WebCore::TestObjV8Internal::anyAttributeAttrGetterForMainWorld):
2399         (WebCore::TestObjV8Internal::anyAttributeAttrGetterCallbackForMainWorld):
2400         (WebCore::TestObjV8Internal::anyAttributeAttrSetterForMainWorld):
2401         (WebCore::TestObjV8Internal::anyAttributeAttrSetterCallbackForMainWorld):
2402         (WebCore::TestObjV8Internal::enabledAtRuntimeAttr1AttrGetterForMainWorld):
2403         (WebCore::TestObjV8Internal::enabledAtRuntimeAttr1AttrGetterCallbackForMainWorld):
2404         (WebCore::TestObjV8Internal::enabledAtRuntimeAttr1AttrSetterForMainWorld):
2405         (WebCore::TestObjV8Internal::enabledAtRuntimeAttr1AttrSetterCallbackForMainWorld):
2406         (WebCore::TestObjV8Internal::enabledAtRuntimeAttr2AttrGetterForMainWorld):
2407         (WebCore::TestObjV8Internal::enabledAtRuntimeAttr2AttrGetterCallbackForMainWorld):
2408         (WebCore::TestObjV8Internal::enabledAtRuntimeAttr2AttrSetterForMainWorld):
2409         (WebCore::TestObjV8Internal::enabledAtRuntimeAttr2AttrSetterCallbackForMainWorld):
2410         (WebCore::TestObjV8Internal::floatArrayAttrGetterForMainWorld):
2411         (WebCore::TestObjV8Internal::floatArrayAttrGetterCallbackForMainWorld):
2412         (WebCore::TestObjV8Internal::floatArrayAttrSetterForMainWorld):
2413         (WebCore::TestObjV8Internal::floatArrayAttrSetterCallbackForMainWorld):
2414         (WebCore::TestObjV8Internal::doubleArrayAttrGetterForMainWorld):
2415         (WebCore::TestObjV8Internal::doubleArrayAttrGetterCallbackForMainWorld):
2416         (WebCore::TestObjV8Internal::doubleArrayAttrSetterForMainWorld):
2417         (WebCore::TestObjV8Internal::doubleArrayAttrSetterCallbackForMainWorld):
2418         (WebCore::TestObjV8Internal::contentDocumentAttrGetterForMainWorld):
2419         (WebCore::TestObjV8Internal::contentDocumentAttrGetterCallbackForMainWorld):
2420         (WebCore::TestObjV8Internal::mutablePointAttrGetterForMainWorld):
2421         (WebCore::TestObjV8Internal::mutablePointAttrGetterCallbackForMainWorld):
2422         (WebCore::TestObjV8Internal::mutablePointAttrSetterForMainWorld):
2423         (WebCore::TestObjV8Internal::mutablePointAttrSetterCallbackForMainWorld):
2424         (WebCore::TestObjV8Internal::immutablePointAttrGetterForMainWorld):
2425         (WebCore::TestObjV8Internal::immutablePointAttrGetterCallbackForMainWorld):
2426         (WebCore::TestObjV8Internal::immutablePointAttrSetterForMainWorld):
2427         (WebCore::TestObjV8Internal::immutablePointAttrSetterCallbackForMainWorld):
2428         (WebCore::TestObjV8Internal::strawberryAttrGetterForMainWorld):
2429         (WebCore::TestObjV8Internal::strawberryAttrGetterCallbackForMainWorld):
2430         (WebCore::TestObjV8Internal::strawberryAttrSetterForMainWorld):
2431         (WebCore::TestObjV8Internal::strawberryAttrSetterCallbackForMainWorld):
2432         (WebCore::TestObjV8Internal::strictFloatAttrGetterForMainWorld):
2433         (WebCore::TestObjV8Internal::strictFloatAttrGetterCallbackForMainWorld):
2434         (WebCore::TestObjV8Internal::strictFloatAttrSetterForMainWorld):
2435         (WebCore::TestObjV8Internal::strictFloatAttrSetterCallbackForMainWorld):
2436         (WebCore::TestObjV8Internal::descriptionAttrGetterForMainWorld):
2437         (WebCore::TestObjV8Internal::descriptionAttrGetterCallbackForMainWorld):
2438         (WebCore::TestObjV8Internal::idAttrGetterForMainWorld):
2439         (WebCore::TestObjV8Internal::idAttrGetterCallbackForMainWorld):
2440         (WebCore::TestObjV8Internal::idAttrSetterForMainWorld):
2441         (WebCore::TestObjV8Internal::idAttrSetterCallbackForMainWorld):
2442         (WebCore::TestObjV8Internal::hashAttrGetterForMainWorld):
2443         (WebCore::TestObjV8Internal::hashAttrGetterCallbackForMainWorld):
2444         (WebCore::TestObjV8Internal::replaceableAttributeAttrGetterForMainWorld):
2445         (WebCore::TestObjV8Internal::replaceableAttributeAttrGetterCallbackForMainWorld):
2446         (WebCore):
2447         (WebCore::ConfigureV8TestObjTemplate):
2448         (WebCore::V8TestObj::GetTemplate):
2449         (WebCore::V8TestObj::HasInstance):
2450         * bindings/scripts/test/V8/V8TestObj.h:
2451         (WebCore::toV8ForMainWorld):
2452         (WebCore):
2453         (WebCore::toV8FastForMainWorld):
2454         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
2455         (WebCore::ConfigureV8TestOverloadedConstructorsTemplate):
2456         (WebCore::V8TestOverloadedConstructors::GetTemplate):
2457         (WebCore::V8TestOverloadedConstructors::HasInstance):
2458         * bindings/scripts/test/V8/V8TestOverloadedConstructors.h:
2459         (WebCore::toV8ForMainWorld):
2460         (WebCore):
2461         (WebCore::toV8FastForMainWorld):
2462         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
2463         (WebCore::TestSerializedScriptValueInterfaceV8Internal::valueAttrGetterForMainWorld):
2464         (TestSerializedScriptValueInterfaceV8Internal):
2465         (WebCore::TestSerializedScriptValueInterfaceV8Internal::valueAttrGetterCallbackForMainWorld):
2466         (WebCore::TestSerializedScriptValueInterfaceV8Internal::valueAttrSetterForMainWorld):
2467         (WebCore::TestSerializedScriptValueInterfaceV8Internal::valueAttrSetterCallbackForMainWorld):
2468         (WebCore::TestSerializedScriptValueInterfaceV8Internal::readonlyValueAttrGetterForMainWorld):
2469         (WebCore::TestSerializedScriptValueInterfaceV8Internal::readonlyValueAttrGetterCallbackForMainWorld):
2470         (WebCore::TestSerializedScriptValueInterfaceV8Internal::cachedValueAttrGetterForMainWorld):
2471         (WebCore::TestSerializedScriptValueInterfaceV8Internal::cachedValueAttrGetterCallbackForMainWorld):
2472         (WebCore::TestSerializedScriptValueInterfaceV8Internal::cachedValueAttrSetterForMainWorld):
2473         (WebCore::TestSerializedScriptValueInterfaceV8Internal::cachedValueAttrSetterCallbackForMainWorld):
2474         (WebCore::TestSerializedScriptValueInterfaceV8Internal::portsAttrGetterForMainWorld):
2475         (WebCore::TestSerializedScriptValueInterfaceV8Internal::portsAttrGetterCallbackForMainWorld):
2476         (WebCore::TestSerializedScriptValueInterfaceV8Internal::cachedReadonlyValueAttrGetterForMainWorld):
2477         (WebCore::TestSerializedScriptValueInterfaceV8Internal::cachedReadonlyValueAttrGetterCallbackForMainWorld):
2478         (WebCore):
2479         (WebCore::ConfigureV8TestSerializedScriptValueInterfaceTemplate):
2480         (WebCore::V8TestSerializedScriptValueInterface::GetTemplate):
2481         (WebCore::V8TestSerializedScriptValueInterface::HasInstance):
2482         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
2483         (WebCore::toV8ForMainWorld):
2484         (WebCore):
2485         (WebCore::toV8FastForMainWorld):
2486         * bindings/scripts/test/V8/V8TestTypedefs.cpp:
2487         (WebCore::TestTypedefsV8Internal::unsignedLongLongAttrAttrGetterForMainWorld):
2488         (TestTypedefsV8Internal):
2489         (WebCore::TestTypedefsV8Internal::unsignedLongLongAttrAttrGetterCallbackForMainWorld):
2490         (WebCore::TestTypedefsV8Internal::unsignedLongLongAttrAttrSetterForMainWorld):
2491         (WebCore::TestTypedefsV8Internal::unsignedLongLongAttrAttrSetterCallbackForMainWorld):
2492         (WebCore::TestTypedefsV8Internal::immutableSerializedScriptValueAttrGetterForMainWorld):
2493         (WebCore::TestTypedefsV8Internal::immutableSerializedScriptValueAttrGetterCallbackForMainWorld):
2494         (WebCore::TestTypedefsV8Internal::immutableSerializedScriptValueAttrSetterForMainWorld):
2495         (WebCore::TestTypedefsV8Internal::immutableSerializedScriptValueAttrSetterCallbackForMainWorld):
2496         (WebCore::TestTypedefsV8Internal::attrWithGetterExceptionAttrGetterForMainWorld):
2497         (WebCore::TestTypedefsV8Internal::attrWithGetterExceptionAttrGetterCallbackForMainWorld):
2498         (WebCore::TestTypedefsV8Internal::attrWithGetterExceptionAttrSetterForMainWorld):
2499         (WebCore::TestTypedefsV8Internal::attrWithGetterExceptionAttrSetterCallbackForMainWorld):
2500         (WebCore::TestTypedefsV8Internal::attrWithSetterExceptionAttrGetterForMainWorld):
2501         (WebCore::TestTypedefsV8Internal::attrWithSetterExceptionAttrGetterCallbackForMainWorld):
2502         (WebCore::TestTypedefsV8Internal::attrWithSetterExceptionAttrSetterForMainWorld):
2503         (WebCore::TestTypedefsV8Internal::attrWithSetterExceptionAttrSetterCallbackForMainWorld):
2504         (WebCore::TestTypedefsV8Internal::stringAttrWithGetterExceptionAttrGetterForMainWorld):
2505         (WebCore::TestTypedefsV8Internal::stringAttrWithGetterExceptionAttrGetterCallbackForMainWorld):
2506         (WebCore::TestTypedefsV8Internal::stringAttrWithGetterExceptionAttrSetterForMainWorld):
2507         (WebCore::TestTypedefsV8Internal::stringAttrWithGetterExceptionAttrSetterCallbackForMainWorld):
2508         (WebCore::TestTypedefsV8Internal::stringAttrWithSetterExceptionAttrGetterForMainWorld):
2509         (WebCore::TestTypedefsV8Internal::stringAttrWithSetterExceptionAttrGetterCallbackForMainWorld):
2510         (WebCore::TestTypedefsV8Internal::stringAttrWithSetterExceptionAttrSetterForMainWorld):
2511         (WebCore::TestTypedefsV8Internal::stringAttrWithSetterExceptionAttrSetterCallbackForMainWorld):
2512         (WebCore):
2513         (WebCore::ConfigureV8TestTypedefsTemplate):
2514         (WebCore::V8TestTypedefs::GetTemplate):
2515         (WebCore::V8TestTypedefs::HasInstance):
2516         * bindings/scripts/test/V8/V8TestTypedefs.h:
2517         (WebCore::toV8ForMainWorld):
2518         (WebCore):
2519         (WebCore::toV8FastForMainWorld):
2520         * bindings/v8/DOMDataStore.h:
2521         (WebCore::DOMDataStore::getWrapperForMainWorld):
2522         (DOMDataStore):
2523         * bindings/v8/V8DOMConfiguration.cpp:
2524         (WebCore::V8DOMConfiguration::addToTemplate):
2525         (WebCore):
2526         * bindings/v8/V8DOMConfiguration.h:
2527         (V8DOMConfiguration):
2528         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2529         (WebCore::toV8ForMainWorld):
2530         (WebCore):
2531         * bindings/v8/custom/V8EventTargetCustom.cpp:
2532         (WebCore::toV8ForMainWorld):
2533         (WebCore):
2534         * bindings/v8/custom/V8IDBAnyCustom.cpp:
2535         (WebCore::toV8ForMainWorld):
2536         (WebCore):
2537         * bindings/v8/custom/V8MicroDataItemValueCustom.cpp:
2538         (WebCore::toV8ForMainWorld):
2539         (WebCore):
2540         * bindings/v8/custom/V8WorkerContextCustom.cpp:
2541         (WebCore::toV8ForMainWorld):
2542         (WebCore):
2543
2544 2013-03-15  Ilya Tikhonovsky  <loislo@chromium.org>
2545
2546         Web Inspector: Flame Chart. xOffset calculates incorrectly when chart width less that canvas.width.
2547         https://bugs.webkit.org/show_bug.cgi?id=112423
2548
2549         Reviewed by Yury Semikhatsky.
2550
2551         I extracted xOffset assigment procedure into a separate function.
2552
2553         Drive by fix: size and posion of anchor element was adjusted.
2554         Drive by fix: we will not paint item if it is not visible.
2555
2556         * inspector/front-end/FlameChart.js:
2557         (WebInspector.FlameChart.prototype._maxXOffset):
2558         (WebInspector.FlameChart.prototype._setXOffset):
2559         (WebInspector.FlameChart.prototype._canvasDragging):
2560         (WebInspector.FlameChart.prototype._onMouseMove):
2561         (WebInspector.FlameChart.prototype._adjustXOffset):
2562         (WebInspector.FlameChart.prototype._adjustXScale):
2563         (WebInspector.FlameChart.prototype.draw):
2564
2565 2013-03-15  Noam Rosenthal  <noam@webkit.org>
2566
2567         [Texmap] Change brightness filter to match new spec
2568         https://bugs.webkit.org/show_bug.cgi?id=112422
2569
2570         New filters spec specifies an intercept of 0 instead of 1.
2571         This is already done for the software version in http://trac.webkit.org/changeset/139770.
2572         This patch adjusts the value for the accelerated version.
2573
2574         Reviewed by Allan Sandfeld Jensen.
2575
2576         Filter tests are currently disabled on Qt/GTK/EFL, but they would need to be rebaselined once enabled.
2577
2578         * platform/graphics/texmap/TextureMapperShaderProgram.cpp:
2579
2580 2013-03-15  Jaehun Lim  <ljaehun.lim@samsung.com>
2581
2582         Call release() when a RefPtr is returned.
2583         https://bugs.webkit.org/show_bug.cgi?id=112420
2584
2585         Reviewed by Eric Seidel.
2586
2587         release() should be called on a RefPtr to convert it to a PassRefPtr.
2588
2589         No new tests needed, no behavior changes.
2590
2591         * css/CSSParser.cpp:
2592         (WebCore::CSSParser::parseImageResolution):
2593         (WebCore::CSSParser::parseImageSet):
2594
2595 2013-03-15  Eugene Klyuchnikov  <eustas@chromium.org>
2596
2597         Web Inspector: [Network] InitiatorComparator is not reflexive/antisymmetric.
2598         https://bugs.webkit.org/show_bug.cgi?id=112341
2599
2600         Reviewed by Vsevolod Vlasov.
2601
2602         When both objects do not have initiator: f(a, b) = f(b, a) = -1
2603         Furthermore: redirected responses are mixed with "other".
2604
2605         * inspector/front-end/NetworkPanel.js:
2606         (WebInspector.NetworkDataGridNode.prototype._refreshInitiatorCell):
2607         Remember "displayed" initiator type.
2608         (WebInspector.NetworkDataGridNode.InitiatorComparator):
2609         Recall "diaplayed" initiator type for more precise comparison.
2610
2611 2013-03-15  Andrey Kosyakov  <caseq@chromium.org>
2612
2613         Web Inspector: show image decode performed off main thread on timeline
2614         https://bugs.webkit.org/show_bug.cgi?id=111159
2615
2616         Reviewed by Pavel Feldman.
2617
2618         - add handling of Decode Image event to TimelineTraceEventProcessorr;
2619         - only log platform events for the main thread;
2620         - extract constants for trace events produced by platform instrumentation.
2621
2622         * inspector/InspectorTimelineAgent.cpp:
2623         (TimelineRecordType):
2624         * inspector/InspectorTimelineAgent.h:
2625         (TimelineRecordType):
2626         * inspector/TimelineTraceEventProcessor.cpp:
2627         (WebCore::TimelineTraceEventProcessor::TimelineTraceEventProcessor):
2628         (WebCore::TimelineTraceEventProcessor::onImageDecodeBegin):
2629         (WebCore):
2630         (WebCore::TimelineTraceEventProcessor::onImageDecodeEnd):
2631         * inspector/TimelineTraceEventProcessor.h:
2632         (TimelineTraceEventProcessor):
2633         * platform/PlatformInstrumentation.cpp:
2634         (WebCore):
2635         * platform/PlatformInstrumentation.h:
2636         (PlatformInstrumentation):
2637         (WebCore):
2638         (WebCore::PlatformInstrumentation::willDecodeImage):
2639         (WebCore::PlatformInstrumentation::didDecodeImage):
2640         (WebCore::PlatformInstrumentation::willResizeImage):
2641         (WebCore::PlatformInstrumentation::didResizeImage):
2642
2643 2013-03-15  Ilya Tikhonovsky  <loislo@chromium.org>
2644
2645         Web Inspector: Flame Chart. When user zooms the chart, the point under cursor has to be the zooming center.
2646         https://bugs.webkit.org/show_bug.cgi?id=112417
2647
2648         Reviewed by Yury Semikhatsky.
2649
2650         It converts the cursor position into time,
2651         changes the scale factor and calculates the new offset for the canvas.
2652
2653         * inspector/front-end/FlameChart.js:
2654         (WebInspector.FlameChart.prototype._adjustXScale):
2655         (WebInspector.FlameChart.prototype._onMouseWheel):
2656
2657 2013-03-13  Eugene Klyuchnikov  <eustas@chromium.org>
2658
2659         Web Inspector: [Network] Sort columns context menu items alphabetically.
2660         https://bugs.webkit.org/show_bug.cgi?id=112321
2661
2662         Reviewed by Pavel Feldman.
2663
2664         Problem: columns are presented in "natural" order,
2665         so it is hard to find specific item.
2666
2667         * inspector/front-end/NetworkPanel.js:
2668         (WebInspector.NetworkLogView.prototype._getConfigurableColumnIDs):
2669         Generate list of column IDs sorted alphabetically.
2670         (WebInspector.NetworkLogView.prototype._contextMenu):
2671         Use alphabetically sorted list of column IDs.
2672
2673 2013-03-15  Takashi Sakamoto  <tasak@google.com>
2674
2675         Crash at RenderStyle::inheritFrom reported by fuzzer
2676         https://bugs.webkit.org/show_bug.cgi?id=112322
2677
2678         Reviewed by Hajime Morrita.
2679
2680         pseudoStyleForElement should check whether a parent style of a given
2681         element is available or not. If a given element's parent is
2682         an insertion point whose reset-style-inheritance is true, the parent
2683         style is not available. Need to use defaultStyleForElement.
2684
2685         Test: fast/dom/shadow/insertion-point-resetStyleInheritance-with-pseudo-element-crash.html
2686
2687         * css/StyleResolver.cpp:
2688         (WebCore::StyleResolver::styleForElement):
2689         Removed cloneForParent. Instead, made m_state own parentStyle, i.e.
2690         changed m_parentStyle in class State from RenderStyle* to
2691         RefPtr<RenderStyle>.
2692         (WebCore::StyleResolver::pseudoStyleForElement):
2693         If an actual parent style of a given element is not available, use
2694         defaultStyleForElement. This is the same logic as styleForElement.
2695         * css/StyleResolver.h:
2696         (WebCore::StyleResolver::State::setParentStyle):
2697         Modified the parameter to use PassRefPtr<RenderStyle>.
2698         (WebCore::StyleResolver::State::parentStyle):
2699         (State):
2700
2701 2013-03-15  Mihnea Ovidenie  <mihnea@adobe.com>
2702
2703         [CSS Regions] Selecting text inside an empty region causes selection outside the region area
2704         https://bugs.webkit.org/show_bug.cgi?id=107752
2705
2706         Reviewed by David Hyatt.
2707
2708         When performing hit testing inside a flow thread, we need to make sure that
2709         we actually hit some node from the flow thread content and not the flow thread
2710         itself (which would set the hit test result node to the document node, allowing
2711         wrong selection of content outside the empty region).
2712
2713         Test: fast/regions/selecting-text-in-empty-region.html
2714
2715         * rendering/RenderFlowThread.cpp:
2716         (WebCore::RenderFlowThread::hitTestFlowThreadPortionInRegion):
2717
2718 2013-03-15  Luiz Agostini  <luiz.agostini@nokia.com>
2719
2720         [Texmap] layerRect should be used instead of contents rect for scrollable layer hit tests.
2721         https://bugs.webkit.org/show_bug.cgi?id=112413
2722
2723         Reviewed by Noam Rosenthal.
2724
2725         Using layerRect() instead of m_state.contentsRect for scrollable layer hit test.
2726         * platform/graphics/texmap/TextureMapperLayer.cpp:
2727         (WebCore::TextureMapperLayer::scrollableLayerHitTestCondition):
2728
2729 2013-03-14  Dominic Cooney  <dominicc@chromium.org>
2730
2731         Redundant if statement in RenderTextControlSingleLine::layout should be removed
2732         https://bugs.webkit.org/show_bug.cgi?id=112406
2733
2734         Reviewed by Andreas Kling.
2735
2736         Covered by existing tests added in r145239.
2737
2738         * rendering/RenderTextControlSingleLine.cpp:
2739         (WebCore::RenderTextControlSingleLine::layout):
2740
2741 2013-03-14  Sheriff Bot  <webkit.review.bot@gmail.com>
2742
2743         Unreviewed, rolling out r145864.
2744         http://trac.webkit.org/changeset/145864
2745         https://bugs.webkit.org/show_bug.cgi?id=112408
2746
2747         should fix XMLDocumentParser instead of CSSDefaultStyleSheet
2748         (Requested by tasak on #webkit).
2749
2750         * css/CSSDefaultStyleSheets.cpp:
2751         (WebCore::CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement):
2752
2753 2013-03-14  Eugene Klyuchnikov  <eustas@chromium.org>
2754
2755         Web Inspector: [DataGrid] Specify columns with array of descriptors.
2756         https://bugs.webkit.org/show_bug.cgi?id=112338
2757
2758         Reviewed by Pavel Feldman.
2759
2760         Currently columns are specified by Object that maps
2761         column identifiers to column descriptors. Iteration order over
2762         Object keys is not guaranteed.
2763
2764         Array should be used to specify column order.
2765
2766         * inspector/front-end/DataGrid.js: Change consrtructor parameter type.
2767         * inspector/front-end/ApplicationCacheItemsView.js: Adopt changes.
2768         * inspector/front-end/CPUProfileView.js: Ditto.
2769         * inspector/front-end/CSSSelectorProfileView.js: Ditto.
2770         * inspector/front-end/CanvasProfileView.js: Ditto.
2771         * inspector/front-end/CookieItemsView.js: Ditto.
2772         * inspector/front-end/CookiesTable.js: Ditto.
2773         * inspector/front-end/DOMStorageItemsView.js: Ditto.
2774         * inspector/front-end/DirectoryContentView.js: Ditto.
2775         * inspector/front-end/HeapSnapshot.js: Ditto.
2776         * inspector/front-end/HeapSnapshotDataGrids.js: Ditto.
2777         * inspector/front-end/IndexedDBViews.js: Ditto.
2778         * inspector/front-end/NativeMemorySnapshotView.js: Ditto.
2779         * inspector/front-end/NetworkPanel.js: Ditto.
2780         * inspector/front-end/ResourceWebSocketFrameView.js: Ditto.
2781
2782 2013-03-14  Ilya Tikhonovsky  <loislo@chromium.org>
2783
2784         Web Inspector: Flame Chart. Support scrolling by dragging.
2785         https://bugs.webkit.org/show_bug.cgi?id=112346
2786
2787         Reviewed by Yury Semikhatsky.
2788
2789         Drag hander was added. It seems that simple repaint works well.
2790         When the user starts dragging we hide the popover, change offset
2791         and do update for the new canvas image.
2792         Drive by change: Due to new way of scrolling the canvas I changed
2793         the behaiviour of the wheel events. Now wheel scrolls if Shift key pressed
2794         and zooms if not.
2795
2796         * inspector/front-end/FlameChart.js:
2797         (WebInspector.FlameChart):
2798         (WebInspector.FlameChart.prototype._startCanvasDragging):
2799         (WebInspector.FlameChart.prototype._canvasDragging):
2800         (WebInspector.FlameChart.prototype._endCanvasDragging):
2801         (WebInspector.FlameChart.prototype._onMouseWheel):
2802
2803 2013-03-14  Hayato Ito  <hayato@chromium.org>
2804
2805         [Shadow Dom]: Non Bubbling events in ShadowDOM dispatch in an incorrect order
2806         https://bugs.webkit.org/show_bug.cgi?id=112214
2807
2808         Reviewed by Dimitri Glazkov.
2809
2810         Fix the order of event dispatching for Shadow DOM.
2811
2812         So far, an event whose event phase should be set to AT_TARGET,
2813         e.g. event at shadow hosts, is dispatched in bubbling phase in the
2814         whole event path.  This patch fixed the order of event dispatching
2815         so that an event whose event phase must be set to AT_TARGET phase
2816         is dispatched in capturing phase rather than bubbling phase.
2817
2818         The spec is here:
2819         https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#event-dispatch
2820
2821         5.5 Event Dispatch says:
2822
2823         - When capturing, which entails processing step 3 of the event
2824         dispatch algorithm, the Event eventPhase attribute must return
2825         AT_TARGET if the relative target is same as the node on which
2826         event listeners are invoked
2827         - When bubbling, which entails
2828         processing step 6 of the event dispatch algorithm, the event
2829         listeners must not be invoked on a node if it is the same as its
2830         relative target
2831
2832         No new tests. Update existing layout tests.
2833
2834         * dom/EventDispatcher.cpp:
2835         (WebCore::EventDispatcher::dispatchEventAtCapturing):
2836         (WebCore::EventDispatcher::dispatchEventAtBubbling):
2837
2838 2013-03-14  Shezan Baig  <sbaig1@bloomberg.net>
2839
2840         Backspace/delete at start of table cell shouldn't step out of cell
2841         https://bugs.webkit.org/show_bug.cgi?id=35372
2842
2843         Reviewed by Ryosuke Niwa.
2844
2845         Make Delete and ForwardDelete commands be no-ops if we are at the first
2846         position or last position of a table cell respectively.
2847
2848         Tests: editing/deleting/backspace-at-table-cell-beginning.html
2849                editing/deleting/forward-delete-at-table-cell-ending.html
2850
2851         * editing/TypingCommand.cpp:
2852         (WebCore::TypingCommand::deleteKeyPressed):
2853         (WebCore::TypingCommand::forwardDeleteKeyPressed):
2854
2855 2013-03-14  Xidorn Quan  <quanxunzhen@gmail.com>
2856
2857         Clickable area is incorrect for elements with border-radius
2858         https://bugs.webkit.org/show_bug.cgi?id=95373
2859
2860         Reviewed by Simon Fraser.
2861
2862         As RenderBlock doesn't see rounded rect which comes from border-radius
2863         in nodeAtPoint, the rounded corner seems to have an 'invisible' square
2864         box which catches hits. So we added check on whether hitTestPoint also
2865         intersects the rounded rect when hasBorderRadius is set.
2866
2867         This patch is based on Takashi Sakamoto's work in
2868         https://bugs.webkit.org/show_bug.cgi?id=95373
2869
2870         Test: fast/borders/border-radius-position.html
2871
2872         * platform/graphics/FloatQuad.cpp:
2873         (WebCore):
2874         (WebCore::lineIntersectsCircle):
2875         (WebCore::FloatQuad::intersectsCircle):
2876         (WebCore::FloatQuad::intersectsEllipse):
2877         * platform/graphics/FloatQuad.h:
2878         (FloatQuad):
2879         * platform/graphics/RoundedRect.cpp:
2880         (WebCore::RoundedRect::intersectsQuad):
2881         (WebCore):
2882         * platform/graphics/RoundedRect.h:
2883         (RoundedRect):
2884         * rendering/HitTestLocation.cpp:
2885         (WebCore::HitTestLocation::intersects):
2886         (WebCore):
2887         * rendering/HitTestLocation.h:
2888         (HitTestLocation):
2889         * rendering/RenderBlock.cpp:
2890         (WebCore::RenderBlock::nodeAtPoint):
2891
2892 2013-03-14  Chris Fleizach  <cfleizach@apple.com>
2893
2894         AX: Crash when removing aria-menu item from DOM
2895         https://bugs.webkit.org/show_bug.cgi?id=112396
2896
2897         Reviewed by Tim Horton.
2898
2899         Prevent nil access to items in the ARIA menu flow when deleting
2900         objects from the DOM.
2901
2902         Test: accessibility/menu-item-crash.html
2903
2904         * accessibility/AccessibilityNodeObject.cpp:
2905         (WebCore::siblingWithAriaRole):
2906         (WebCore::AccessibilityNodeObject::menuButtonForMenu):
2907
2908 2013-03-14  Hayato Ito  <hayato@chromium.org>
2909
2910         [Shadow]: left side of ::-webkit-distributed selector not working as expected
2911         https://bugs.webkit.org/show_bug.cgi?id=110825
2912
2913         Reviewed by Dimitri Glazkov.
2914
2915         Make functional pseudo distributed elements work even when a left side element has specifiers.
2916
2917         Test: fast/dom/shadow/distributed-pseudo-element-specifiers-in-left-side.html
2918
2919         * css/CSSParser.cpp:
2920         (WebCore::CSSParser::rewriteSpecifiersWithNamespaceIfNeeded):
2921         Make it call rewriteSpecifiersForShadowDistributed() if required.
2922
2923         (WebCore::CSSParser::rewriteSpecifiersWithElementName):
2924         Updated so that it can generate a correct chain of
2925         CSSParserSelectors even when '::distributed()' is used with an
2926         element, which might be empty, with specifiers.
2927
2928         e.g. When parsing a selector of 'content.content-class::-webkit-distributed(div)', the following happens:
2929
2930         1. rewriteSpecifiersWithElementName(...) is called with:
2931
2932            elementName is: "content"
2933            specifiers is: [.content-class] -> [::-webkit-distributed]
2934
2935         2. Looking for a distributed pseudo element in the specifiers and
2936            found it at the end of tagHistory chain of the specifiers.
2937
2938         3. The result of calling specifiers->prependTagSelector(tag) is:
2939
2940            specifiers is: [content] -> [.content-class] -> [::-webkit-distributed]
2941
2942         4. rewriteSpecifiersForShadowDistributed() is called with:
2943
2944            specifiers is: [content] -> [.content-class] -> [::-webkit-distributed]
2945            distributedPseudoElementSelector is: [::-webkit-distributed]
2946
2947         5. An argumentSelector of the distributedPseudoElementSelector is:
2948
2949            argumentSelector is: [div]
2950
2951         6. Remove the distributed pseudo element selector from the specifiers.
2952
2953            specifiers is: [content] -> [.content-class]
2954
2955            Note that one pseudo-element may appear per complex selector
2956            and the pseudo-element may appear only if the subject of the
2957            selector is the last compound selector in the selector.
2958
2959         7. Append specifiers to the end of the argument selector with a relation of ShadowDistributed:
2960
2961            argumentSelector is: [div] -(ShadowDistributed)-> [content] -> [.content-class]
2962
2963         8. Returns the argument selector as a return value.
2964
2965         (WebCore::CSSParser::rewriteSpecifiersForShadowDistributed): As explained.
2966         * css/CSSParserValues.cpp:
2967         (WebCore):
2968         (WebCore::CSSParserSelector::findDistributedPseudoElementSelector):
2969         * css/CSSParserValues.h:
2970         (CSSParserSelector):
2971         (WebCore::CSSParserSelector::clearTagHistory):
2972
2973 2013-03-14  Takashi Sakamoto  <tasak@google.com>
2974
2975         Crash at CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement reported by fuzzer
2976         https://bugs.webkit.org/show_bug.cgi?id=112328
2977
2978         Reviewed by Dimitri Glazkov.
2979
2980         ensureDefaultStyleSheets should check whether page() is null or not.
2981
2982         Test: fast/css/ensure-default-style-sheets-crash.xhtml
2983
2984         * css/CSSDefaultStyleSheets.cpp:
2985         (WebCore::CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement):
2986
2987 2013-03-14  Brandon Jones  <bajones@google.com>
2988
2989         Check to ensure MultisampleRenderbuffer creation succeeds
2990         https://bugs.webkit.org/show_bug.cgi?id=111780
2991
2992         Reviewed by Kenneth Russell.
2993
2994         On OSX systems using AMD graphics chips the allocation of large
2995         Multisample Renderbuffers in Chromium would fail without any indication
2996         of failure. Attempting to draw to the buffer resulted in garbage being
2997         rendered onscreen. This could be reproduced by opening a full-page
2998         WebGL app and pressing (Command + "-") several times. This patch adds an
2999         additional check during DrawingBuffer resize to verify that the resized
3000         buffer is valid. 
3001
3002         * platform/graphics/gpu/DrawingBuffer.cpp:
3003         (WebCore):
3004         (WebCore::DrawingBuffer::checkBufferIntegrity):
3005         (WebCore::DrawingBuffer::reset):
3006         * platform/graphics/gpu/DrawingBuffer.h:
3007         (DrawingBuffer):
3008
3009 2013-03-14  Enrica Casucci  <enrica@apple.com>
3010
3011         Character orientation should follow UTR50 specs for vertical layout.
3012         https://bugs.webkit.org/show_bug.cgi?id=112213
3013         <rdar://problem/12880943>
3014
3015         Reviewed by Ryosuke Niwa.
3016
3017         platform/mac/fast/text/vertical-no-sideways.html: Modified to cover samples
3018         of the additional character ranges that should not be rotated in vertical layout.
3019         Added pixel results.
3020
3021         This patch modifies shouldIgnoreRotation to include all the characters that
3022         should not be rotated sideways in vertical layout according to the UTR50 draft 6
3023         specifications. It also fixes rotation for Emojii.
3024
3025         * platform/graphics/FontFastPath.cpp:
3026         (WebCore::shouldIgnoreRotation):
3027         (WebCore::isInRange): Added.
3028         * platform/graphics/mac/FontMac.mm:
3029         (WebCore::showGlyphsWithAdvances): Adds the proper transforms to ensure
3030         Emojii also are drawn correctly upright.
3031
3032 2013-03-14  Manuel Rego Casasnovas  <rego@igalia.com>
3033
3034         Add selectTrailingWhitespaceEnabled setting to WebCore::Page
3035         https://bugs.webkit.org/show_bug.cgi?id=109404
3036
3037         Reviewed by Tony Chang.
3038
3039         Covered by
3040         editing/selection/doubleclick-inline-first-last-contenteditable.html.
3041
3042         * page/Settings.cpp:
3043         (WebCore): Configure default value for smartInsertDeleteEnabled and
3044         selectTrailingWhitespaceEnabled seetings as they are different in
3045         Chromium port depending on the OS.
3046         * page/Settings.in: Add new setting.
3047
3048 2013-03-14  Robert Flack  <flackr@chromium.org>
3049
3050         [chromium] Short scrollbar has empty track rect even when buttons have no size.
3051         https://bugs.webkit.org/show_bug.cgi?id=102580
3052
3053         Reviewed by James Robinson.
3054
3055         When computing the scrollbar track rect, don't assume the button's height is the track width.
3056
3057         Test: platform/chromium/scrollbars/short-scrollbar.html
3058         Note however that this doesn't expose the bug on any tested platforms and mock scrollbars
3059         don't use ScrollbarThemeChromium.cpp. Manually running this test on linux chromiumos will
3060         show the now present scrollbar track and thumb.
3061
3062         * platform/chromium/ScrollbarThemeChromium.cpp:
3063         (WebCore::ScrollbarThemeChromium::trackRect):
3064
3065 2013-03-14  Andrey Lushnikov  <lushnikov@chromium.org>
3066
3067         Web Inspector: Show syntax highlight for application/javascript in Resource Preview tab
3068         https://bugs.webkit.org/show_bug.cgi?id=112355
3069
3070         Reviewed by Pavel Feldman.
3071
3072         No new tests.
3073
3074         Return canonical mimeType in requestContent method of
3075         NetworkRequest.js
3076
3077         * inspector/front-end/NetworkRequest.js:
3078         (WebInspector.NetworkRequest.prototype.requestContent):
3079
3080 2013-03-14  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3081
3082         [EFL] Use CROSS_PLATFORM_CONTEXT_MENU
3083         https://bugs.webkit.org/show_bug.cgi?id=111877
3084
3085         Reviewed by Caio Marcelo de Oliveira Filho.
3086
3087         Now EFL uses the CROSS_PLATFORM_CONTEXT_MENUS
3088         USE flag. This flag provides a full cross-platform
3089         representation of a ContextMenu and a ContextMenuItem.
3090         The embedder can then decide how to show this and neither
3091         WebCore nor WebCore/platform need to know any platform
3092         specific code about the menus, even though they could.
3093
3094         No new tests needed, no behavior changes.
3095
3096         * platform/ContextMenu.h:
3097         (ContextMenu):
3098         * platform/ContextMenuItem.h:
3099         (WebCore):
3100         * platform/PlatformMenuDescription.h:
3101         (WebCore):
3102         * platform/efl/ContextMenuEfl.cpp:
3103         (WebCore::ContextMenu::ContextMenu):
3104         (WebCore::ContextMenu::getContextMenuItems):
3105         (WebCore::ContextMenu::createPlatformContextMenuFromItems):
3106         (WebCore::ContextMenu::platformContextMenu):
3107         * platform/efl/ContextMenuItemEfl.cpp:
3108         (WebCore::ContextMenuItem::platformContextMenuItem):
3109
3110 2013-03-14  Julien Chaffraix  <jchaffraix@webkit.org>
3111
3112         [CSS Grid Layout] resolveContentBasedTrackSizingFunctions should iterate over the grid items not the grid tracks
3113         https://bugs.webkit.org/show_bug.cgi?id=112299
3114
3115         Reviewed by Tony Chang.
3116
3117         Our initial implementation would iterate over the grid tracks. This was equivalent as no items were spanning but
3118         once grid items spans, they start to contribute to several grid tracks differently. This change aligns our code
3119         with what the specification does.
3120
3121         One upside of doing a grid items' iteration is that the complexity should be better in all cases as we don't do
3122         a full grid walking (which is potentially quadratic), only some extra grid tracks' iteration (which are linear).
3123
3124         Refactoring, there should be no change in behavior.
3125
3126         * rendering/RenderGrid.cpp:
3127         (WebCore::RenderGrid::computedUsedBreadthOfGridTracks):
3128         Moved the |availableLogicalSpace| update into resolveContentBasedTrackSizingFunctions. This simplifies and consolidate our handling.
3129
3130         (WebCore::RenderGrid::resolveContentBasedTrackSizingFunctions):
3131         Updated the core loop to iterator over grid items and not grid tracks. This idea is that now resolveContentBasedTrackSizingFunctionsForItems
3132         uses a filtering function to only process the appropriate grid tracks.
3133
3134         (WebCore::RenderGrid::resolveContentBasedTrackSizingFunctionsForItems):
3135         Updated to filter the grid tracks here (this matches the |TracksForGrowth| spec logic that is merely a filtering function).
3136
3137         * rendering/RenderGrid.h:
3138         Added a new typedef and updated resolveContentBasedTrackSizingFunctionsForItems to use it.
3139
3140         * rendering/style/GridTrackSize.h:
3141         (WebCore::GridTrackSize::hasMinOrMaxContentMinTrackBreadth):
3142         (WebCore::GridTrackSize::hasMaxContentMinTrackBreadth):
3143         (WebCore::GridTrackSize::hasMinOrMaxContentMaxTrackBreadth):
3144         (WebCore::GridTrackSize::hasMaxContentMaxTrackBreadth):
3145         Added the following filtering function, which matches the values from |TracksForGrowth| in the specification.
3146
3147 2013-03-14  Alberto Garcia  <agarcia@igalia.com>
3148
3149         [BlackBerry] Gradient: don't use the default setPlatformGradientSpaceTransform()
3150         https://bugs.webkit.org/show_bug.cgi?id=112246
3151
3152         Reviewed by Xan Lopez.
3153
3154         BlackBerry has its own implementation.
3155
3156         * platform/graphics/Gradient.cpp:
3157         (WebCore):
3158
3159 2013-03-14  Xabier Rodriguez Calvar  <calvaris@igalia.com>
3160
3161         [GStreamer] simulateAudioInterruption needs to be guarded by ENABLE(VIDEO)"
3162         https://bugs.webkit.org/show_bug.cgi?id=112358
3163
3164         Guarded with ENABLE(VIDEO) to prevent problems when it is not
3165         enabled.
3166
3167         Reviewed by Philippe Normand.
3168
3169 2013-03-12  Florin Malita  <fmalita@chromium.org>
3170
3171         Tighten up the type bounds for SVGPropertyInfo callback parameters
3172         https://bugs.webkit.org/show_bug.cgi?id=111786
3173
3174         Reviewed by Philip Rogers.
3175
3176         Update SVGPropertyInfo's callbacks to pass SVGElement* parameters instead of void*. This
3177         allows us to perform some ASSERT-based type checking before downcasting in implementors.
3178
3179         To avoid adding virtual methods unused in release builds to the base class (and overrides
3180         in descendants), for subtypes lacking polymorphic type markers (isXXX()) the check is
3181         performed using hasTagName() instead.
3182
3183         The patch is also removing the lookupOrCreateWrapperForAnimatedProperty() SVGPropertyInfo
3184         callback for SVGViewSpec properties, because
3185
3186           a) it doesn't appear to be reachable (SVGViewSpec doesn't have a backing element and
3187           thus cannot have an associated animator)
3188
3189           b) it interferes with the parameter specialization described above (SVGViewSpec does not
3190           inherit from SVGElement)
3191
3192         No new tests, refactoring only.
3193
3194         * svg/SVGElement.cpp:
3195         (WebCore::SVGElement::synchronizeRequiredFeatures):
3196         (WebCore::SVGElement::synchronizeRequiredExtensions):
3197         (WebCore::SVGElement::synchronizeSystemLanguage):
3198         * svg/SVGElement.h:
3199         (SVGElement):
3200         * svg/SVGMarkerElement.cpp:
3201         (WebCore::SVGMarkerElement::synchronizeOrientType):
3202         (WebCore::SVGMarkerElement::lookupOrCreateOrientTypeWrapper):
3203         * svg/SVGMarkerElement.h:
3204         (SVGMarkerElement):
3205         (WebCore::toSVGMarkerElement):
3206         (WebCore):
3207         * svg/SVGPathElement.cpp:
3208         (WebCore::SVGPathElement::lookupOrCreateDWrapper):
3209         (WebCore::SVGPathElement::synchronizeD):
3210         * svg/SVGPathElement.h:
3211         (SVGPathElement):
3212         (WebCore::toSVGPathElement):
3213         (WebCore):
3214         * svg/SVGPolyElement.cpp:
3215         (WebCore::SVGPolyElement::synchronizePoints):
3216         (WebCore::SVGPolyElement::lookupOrCreatePointsWrapper):
3217         * svg/SVGPolyElement.h:
3218         (SVGPolyElement):
3219         (WebCore::toSVGPolyElement):
3220         (WebCore):
3221         * svg/SVGTextContentElement.cpp:
3222         (WebCore::SVGTextContentElement::synchronizeTextLength):
3223         (WebCore::SVGTextContentElement::lookupOrCreateTextLengthWrapper):
3224         * svg/SVGTextContentElement.h:
3225         (SVGTextContentElement):
3226         (WebCore::toSVGTextContentElement):
3227         (WebCore):
3228         Change SVGPropertyInfo callback params to SVGElement* and replace static casts with
3229         conversion wrappers. Implement conversion wrappers where needed.
3230
3231         * svg/SVGViewSpec.cpp:
3232         (WebCore::SVGViewSpec::viewBoxPropertyInfo):
3233         (WebCore::SVGViewSpec::preserveAspectRatioPropertyInfo):
3234         (WebCore::SVGViewSpec::transformPropertyInfo):
3235         (WebCore::SVGViewSpec::lookupOrCreateViewBoxWrapper):
3236         (WebCore::SVGViewSpec::lookupOrCreatePreserveAspectRatioWrapper):
3237         (WebCore::SVGViewSpec::lookupOrCreateTransformWrapper):
3238         * svg/SVGViewSpec.h:
3239         (SVGViewSpec):
3240         Remove SVGPropertyInfo-based lookupOrCreate* callbacks and updated the methods' parameters
3241         to SVGViewSpec*. Remove now-unneeded casts.
3242
3243         * svg/properties/SVGAnimatedPropertyMacros.h:
3244         (WebCore):
3245         * svg/properties/SVGPropertyInfo.h:
3246         (WebCore):
3247         (SVGPropertyInfo):
3248         Update callback declarations.
3249
3250 2013-03-14  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3251
3252         Move platform-specific typedefs to PlatformMenuDescription.h
3253         https://bugs.webkit.org/show_bug.cgi?id=111876
3254
3255         Reviewed by Caio Marcelo de Oliveira Filho.
3256
3257         Cross platform Context Menu platform-specific typedefs fit better
3258         in PlatformMenuDescription.h and should not be part of the classes
3259         ContextMenu and ContextMenuItem. We have also renamed them to
3260         PlatformContextMenu and PlatformContextMenuItem instead of NativeMenu
3261         and NativeMenuItem respectively.
3262
3263         No new tests needed since no behavior has changed.
3264
3265         * platform/ContextMenu.h:
3266         (ContextMenu):
3267         * platform/ContextMenuItem.h:
3268         (ContextMenuItem):
3269         * platform/PlatformMenuDescription.h:
3270         (WebCore):
3271         * platform/efl/ContextMenuEfl.cpp:
3272         (WebCore::ContextMenu::createPlatformContextMenuFromItems):
3273         (WebCore::ContextMenu::platformContextMenu):
3274         * platform/efl/ContextMenuItemEfl.cpp:
3275         (WebCore::ContextMenuItem::platformContextMenuItem):
3276         * platform/win/ContextMenuItemWin.cpp:
3277         (WebCore):
3278         (WebCore::ContextMenuItem::platformContextMenuItem):
3279         * platform/win/ContextMenuWin.cpp:
3280         (WebCore::ContextMenu::createPlatformContextMenuFromItems):
3281         (WebCore::ContextMenu::platformContextMenu):
3282
3283 2013-03-11  Jer Noble  <jer.noble@apple.com>
3284
3285         Crash in DumpRenderTree at com.apple.WebCore: WebCore::CaptionUserPreferences::captionPreferencesChanged + 185
3286         https://bugs.webkit.org/show_bug.cgi?id=112051
3287
3288         Reviewed by Eric Carlson.
3289
3290         No new tests; fixes a crash during media/video-controls-captions-trackmenu.html.
3291
3292         Instead of relying on a registration system which can fail when an element's document does not have a page,
3293         Elements will register for captionPreferencesChanged() notifications directly with their owning Document.
3294         CaptionUserPreferences, in turn, will notify all Documents in its PageGroup, rather than only directly
3295         registered listeners.
3296
3297         * dom/Document.cpp:
3298         (WebCore::Document::registerForCaptionPreferencesChangedCallbacks): Added. Notify the CaptionUserPreferences that someone
3299             is interested in captionPreferencesChanged notfications.
3300         (WebCore::Document::unregisterForCaptionPreferencesChangedCallbacks): Added.
3301         (WebCore::Document::captionPreferencesChanged): Added. Pass to all registered elements.
3302         * dom/Document.h:
3303         * dom/Element.h:
3304         (WebCore::Element::captionPreferencesChanged): Added. Empty; intended
3305             to be overridden by subclasses.
3306         * history/CachedPage.cpp:
3307         (WebCore::CachedPage::CachedPage): Initialize m_needsCaptionPreferenceChanged member.
3308         (WebCore::CachedPage::restore): Call captionPreferencesChanged() if necessary.
3309         * history/CachedPage.h:
3310         (WebCore::CachedPage::markForCaptionPreferencesChanged): Set the m_needsCaptionPreferenceChanged member.
3311         * history/PageCache.cpp:
3312         (WebCore::PageCache::markPagesForCaptionPreferencesChanged): Pass to every CachedPage.
3313         * history/PageCache.h:
3314         * html/HTMLMediaElement.cpp:
3315         (WebCore::HTMLMediaElement::HTMLMediaElement): Register with the Document.
3316         (WebCore::HTMLMediaElement::~HTMLMediaElement): Unregister with same.
3317         (WebCore::HTMLMediaElement::attach): Remove previous registration call.
3318         * html/HTMLMediaElement.h:
3319         * page/CaptionUserPreferences.cpp:
3320         (WebCore::CaptionUserPreferences::captionPreferencesChanged): Pass to the
3321             PageGroup.
3322         * page/CaptionUserPreferences.h:
3323         (WebCore::CaptionUserPreferences::setInterestedInCaptionPreferenceChanges):
3324             Empty; intended to be overridden by subclasses.
3325         * page/CaptionUserPreferencesMac.h:
3326         * page/CaptionUserPreferencesMac.mm:
3327         (WebCore::CaptionUserPreferencesMac::setInterestedInCaptionPreferenceChanges):
3328             Renamed from registerForPreferencesChangedCallbacks().
3329         (WebCore::CaptionUserPreferencesMac::captionPreferencesChanged):
3330             Replace call to havePreferenceChangeListeners() with m_listeningForPreferenceChanges.
3331         * page/Page.cpp:
3332         (WebCore::Page::captionPreferencesChanged):
3333             Pass to every contained Document.
3334         * page/Page.h:
3335         * page/CaptionUserPreferences.cpp:
3336         (WebCore::CaptionUserPreferences::captionPreferencesChanged): Pass to the PageGroup.
3337         * page/CaptionUserPreferences.h:
3338         * page/PageGroup.cpp:
3339         (WebCore::PageGroup::captionPreferencesChanged): Pass to every page, as well as pages in the PageCache.
3340         * page/PageGroup.h:
3341
3342 2013-03-14  David Grogan  <dgrogan@chromium.org>
3343
3344         IndexedDB: Histogram leveldb open errors.
3345         https://bugs.webkit.org/show_bug.cgi?id=112307
3346
3347         Reviewed by Tony Chang.
3348
3349         No new tests, I don't know if there's a good way to test histograms.
3350
3351         * platform/leveldb/LevelDBDatabase.cpp:
3352         (WebCore::LevelDBDatabase::open):
3353
3354 2013-03-14  Robert Hogan  <robert@webkit.org>
3355
3356         REGRESSION(r145305) Performance: 1.3% mac-release-10.6-webkit-latest/intl2/times/t change after rev 145300
3357         https://bugs.webkit.org/show_bug.cgi?id=112125
3358
3359         Reviewed by Julien Chaffraix.
3360
3361         When detecting cases where a loaded image may need to move up into the padding created by the row's baseline
3362         we don't need to do anything if the row doesn't have a baseline yet.
3363
3364         * rendering/RenderTableCell.cpp:
3365         (WebCore::RenderTableCell::layout):
3366
3367 2013-03-14  Brady Eidson  <beidson@apple.com>
3368
3369         Add a mode to ResourceLoader that takes SharedBuffers instead of raw pointers and lengths.
3370         <rdar://problem/13416953> and https://bugs.webkit.org/show_bug.cgi?id=112310
3371
3372         Reviewed by Andy Estes.
3373
3374         No new tests (No independently testable change in behavior).
3375
3376         Many of the tested platforms deliver data buffers to their ResourceHandles from objects
3377         that encapsulate a data buffer such as NSData (Mac), CFDataRef (CF), or QByteArray (qt).
3378
3379         If those platforms also augmented SharedBuffer to wrap their native object (which Mac/CF do)
3380         and there existed ResourceLoader callbacks to take that SharedBuffer instead of char* + length,
3381         then many resource loads could avoid a useless copy.
3382
3383         At least on Mac, there are some extremely important behind-the-scenes optimizations for NS/CFData
3384         that will be a more important win than simply avoiding a copy.
3385
3386         This patch adds that SharedBuffer-based callback with the hope that all platforms could find a 
3387         way to use a buffer-encapsulating object going forward, and we could therefore deprecate the
3388         char* + length version of didReceiveData.
3389
3390         * platform/network/ResourceHandleClient.h:
3391         (WebCore::ResourceHandleClient::didReceiveBuffer): Add a didReceiveBuffer callback that takes 
3392           a SharedBuffer object. The default implementation passes raw bytes + length to didReceiveData.
3393
3394         * loader/ResourceLoader.cpp:
3395         (WebCore::ResourceLoader::addDataOrBuffer): Replacing addData(), optionally adding the data from
3396           either a data+length or SharedBuffer
3397         (WebCore::ResourceLoader::didReceiveData): Pipe to didReceiveDataOrBuffer.
3398         (WebCore::ResourceLoader::didReceiveBuffer): Pipe to didReceiveDataOrBuffer.
3399         (WebCore::ResourceLoader::didReceiveDataOrBuffer): Single chokepoint for receiving data.
3400         * loader/ResourceLoader.h: Add OVERRIDE to all of the ResourceHandleClient methods to help
3401           catch future mistakes. Remove "virtual" from methods that didn't need it. Make "addData" into
3402           "addDataOrBuffer" and make it private.
3403
3404         * loader/NetscapePlugInStreamLoader.cpp:
3405         (WebCore::NetscapePlugInStreamLoader::didReceiveData): Pipe to didReceiveDataOrBuffer.
3406         (WebCore::NetscapePlugInStreamLoader::didReceiveBuffer): Pipe to didReceiveDataOrBuffer.
3407         (WebCore::NetscapePlugInStreamLoader::didReceiveDataOrBuffer): Single chokepoint for receiving data.
3408         * loader/NetscapePlugInStreamLoader.h:
3409
3410         * loader/SubresourceLoader.cpp:
3411         (WebCore::SubresourceLoader::didReceiveData): Pipe to didReceiveDataOrBuffer.
3412         (WebCore::SubresourceLoader::didReceiveBuffer): Pipe to didReceiveDataOrBuffer.
3413         (WebCore::SubresourceLoader::didReceiveDataOrBuffer): Single chokepoint for receiving data. Also,
3414           rely on ResourceLoader's base implementation for notifying the Resourc