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