4031a954aa54aa045e8a48bb7375c02c8e158d1e
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-06-14  Sheriff Bot  <webkit.review.bot@gmail.com>
2
3         Unreviewed, rolling out r88823.
4         http://trac.webkit.org/changeset/88823
5         https://bugs.webkit.org/show_bug.cgi?id=62652
6
7         Broke the Lion build (Requested by estes on #webkit).
8
9         * platform/mac/MemoryPressureHandlerMac.mm:
10
11 2011-06-14  Michael Saboff  <msaboff@apple.com>
12
13         Reviewed by Joseph Pecoraro.
14
15         Incorrect #if[n]def for building without DISPATCH_VM_PRESSURE
16         https://bugs.webkit.org/show_bug.cgi?id=62649
17
18         The #ifdef DISPATCH_VM_PRESSURE actually needs to be #ifndef
19         to handle when DISPATCH_VM_PRESSURE is NOT defined in the
20         system header files.
21
22         No functional changes, fixing build issue therefore no tests.
23
24         * platform/mac/MemoryPressureHandlerMac.mm:
25
26 2011-06-13  Adrienne Walker  <enne@google.com>
27
28         Reviewed by James Robinson.
29
30         [chromium] Disable drawing for huge mask layers
31         https://bugs.webkit.org/show_bug.cgi?id=62607
32
33         Because masks have a different layer size than the layer they are
34         masking, they are untiled.  If they are too large to be contained
35         within a single texture, then they should just be disabled.
36
37         Test: platform/chromium/compositing/huge-mask-layer.html
38
39         * platform/graphics/chromium/ContentLayerChromium.cpp:
40         (WebCore::ContentLayerChromium::drawsContent):
41         (WebCore::ContentLayerChromium::paintContentsIfDirty):
42         * platform/graphics/chromium/LayerTilerChromium.h:
43         (WebCore::LayerTilerChromium::getSingleTexture):
44         (WebCore::LayerTilerChromium::numTiles):
45
46 2011-06-14  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
47
48         Reviewed by Laszlo Gombos.
49
50         [Qt] [Symbian] GraphicsLayer: support plugins on symbian
51         https://bugs.webkit.org/show_bug.cgi?id=57418
52
53         Implement graphics layer for plugins on Symbian.
54
55         * plugins/PluginView.h:
56         * plugins/qt/PluginViewQt.cpp:
57         (WebCore::PluginView::shouldUseAcceleratedCompositing):
58         (WebCore::PluginView::platformStart):
59         * plugins/symbian/PluginViewSymbian.cpp:
60         (WebCore::PluginGraphicsLayerQt::PluginGraphicsLayerQt):
61         (WebCore::PluginGraphicsLayerQt::~PluginGraphicsLayerQt):
62         (WebCore::PluginGraphicsLayerQt::paint):
63         (WebCore::PluginView::shouldUseAcceleratedCompositing):
64         (WebCore::PluginView::paint):
65         (WebCore::PluginView::invalidateRect):
66         (WebCore::PluginView::platformStart):
67         (WebCore::PluginView::platformLayer):
68
69 2011-06-14  Sreeram Ramachandran  <sreeram@chromium.org>
70
71         Reviewed by Pavel Feldman.
72
73         Web Inspector: Allow the console to persist on page refresh or navigation
74         https://bugs.webkit.org/show_bug.cgi?id=53359
75
76         Adds a context menu checkbox to preserve the console log across
77         navigations. However, the underlying messages and objects are actually
78         deleted from the backend, so they are not expandable; their continued
79         display in the console frontend is merely cosmetic.
80
81         Test: inspector/console/console-preserve-log.html
82
83         * English.lproj/localizedStrings.js:
84         * inspector/front-end/ConsoleView.js:
85         (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher.dispatcher.messagesCleared):
86         (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher):
87         (WebInspector.ConsoleView.prototype.requestClearMessages):
88         (WebInspector.ConsoleView.prototype._handleContextMenuEvent.monitoringXHRItemAction):
89         (WebInspector.ConsoleView.prototype._handleContextMenuEvent.preserveLogItemAction):
90         (WebInspector.ConsoleView.prototype._handleContextMenuEvent):
91         * inspector/front-end/Settings.js:
92         (WebInspector.Settings):
93         * inspector/front-end/inspector.js:
94         (WebInspector.reset):
95
96 2011-06-14  Pavel Podivilov  <podivilov@chromium.org>
97
98         Reviewed by Pavel Feldman.
99
100         Web Inspector: add tooltip to file select options in scripts panel.
101         https://bugs.webkit.org/show_bug.cgi?id=62537
102
103         * inspector/front-end/ScriptsPanel.js:
104         (WebInspector.ScriptsPanel):
105         (WebInspector.ScriptsPanel.prototype._sourceFileAdded):
106         (WebInspector.ScriptsPanel.prototype._addOptionToFilesSelect.compare):
107         (WebInspector.ScriptsPanel.prototype._addOptionToFilesSelect):
108         (WebInspector.ScriptsPanel.prototype._callFrameSelected.didGetSourceLocation):
109         (WebInspector.ScriptsPanel.prototype._callFrameSelected):
110
111 2011-06-14  Luke Macpherson   <macpherson@chromium.org>
112
113         Reviewed by Eric Seidel.
114
115         Implement CSS border radius properies in CSSStyleApplyProperty
116         https://bugs.webkit.org/show_bug.cgi?id=62265
117
118         No new tests / refactoring only.
119
120         * css/CSSStyleApplyProperty.cpp:
121         Implement new class to culculate border radius, initialize for appropriate properties.
122         (WebCore::ApplyPropertyBorderRadius::ApplyPropertyBorderRadius):
123         (WebCore::ApplyPropertyBorderRadius::applyValue):
124         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
125         * css/CSSStyleSelector.cpp:
126         Remove old implementations.
127         (WebCore::CSSStyleSelector::applyProperty):
128         * page/animation/AnimationBase.cpp:
129         Pass LengthSize by value.
130         (WebCore::AnimationBase::ensurePropertyMap):
131         * rendering/style/RenderStyle.h:
132         Pass LengthSize by value consistently.
133
134 2011-06-14  Carlos Garcia Campos  <cgarcia@igalia.com>
135
136         Reviewed by Martin Robinson.
137
138         [GTK] Rename convertWidgetRectToScreenRect() to convertWidgetPointToScreenPoint()
139         https://bugs.webkit.org/show_bug.cgi?id=62626
140
141         The method actually converts coordinates, the rectangle size is
142         not affected, so it can be modified to return a point
143         instead. Fix also a bug in the implementation, it was translating
144         the coordinates twice returning the wrong position when the given
145         rectangle was not at 0,0.
146
147         * platform/gtk/GtkUtilities.cpp:
148         (WebCore::convertWidgetPointToScreenPoint):
149         * platform/gtk/GtkUtilities.h:
150         * platform/gtk/PopupMenuGtk.cpp:
151         (WebCore::PopupMenuGtk::show): Use
152         convertWidgetPointToScreenPoint().
153
154 2011-06-14  Carlos Garcia Campos  <cgarcia@igalia.com>
155
156         Reviewed by Martin Robinson.
157
158         [GTK] Support authentication dialogs in WebKit2
159         https://bugs.webkit.org/show_bug.cgi?id=62366
160
161         Add a new class to show an authentication dialog that is used by
162         both WebKit1 and WebKit2.
163
164         * GNUmakefile.list.am: Add new files to compilation.
165         * platform/gtk/GtkAuthenticationDialog.cpp: Added.
166         (WebCore::addEntryToTable):
167         (WebCore::sessionCanSavePasswords):
168         (WebCore::GtkAuthenticationDialog::~GtkAuthenticationDialog):
169         (WebCore::GtkAuthenticationDialog::GtkAuthenticationDialog):
170         (WebCore::getSavedLogin):
171         (WebCore::GtkAuthenticationDialog::show):
172         (WebCore::GtkAuthenticationDialog::destroy):
173         (WebCore::GtkAuthenticationDialog::savePasswordCallback):
174         (WebCore::GtkAuthenticationDialog::savePassword):
175         (WebCore::GtkAuthenticationDialog::authenticate):
176         (WebCore::GtkAuthenticationDialog::authenticationDialogResponseCallback):
177         * platform/gtk/GtkAuthenticationDialog.h: Added.
178
179 2011-06-14  Tommy Widenflycht  <tommyw@google.com>
180
181         Reviewed by Tony Gentilcore.
182
183         Media Stream PeerConnection API: adding the StreamList and supporting classes.
184         https://bugs.webkit.org/show_bug.cgi?id=61539
185
186         * dom/StreamContainer.h: Added.
187         (WebCore::StreamContainer::create):
188         (WebCore::StreamContainer::~StreamContainer):
189         (WebCore::StreamContainer::length):
190         (WebCore::StreamContainer::item):
191         (WebCore::StreamContainer::add):
192         (WebCore::StreamContainer::remove):
193         (WebCore::StreamContainer::contains):
194         (WebCore::StreamContainer::get):
195         (WebCore::StreamContainer::StreamContainer):
196         * dom/StreamList.cpp: Added.
197         (WebCore::StreamList::create):
198         (WebCore::StreamList::StreamList):
199         (WebCore::StreamList::~StreamList):
200         (WebCore::StreamList::length):
201         (WebCore::StreamList::item):
202         * dom/StreamList.h: Added.
203         * dom/StreamList.idl: Added.
204
205 2011-06-14  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
206
207         Reviewed by Andreas Kling.
208
209         [Qt] tst_QWebFrame::overloadedSlots() fails
210         https://bugs.webkit.org/show_bug.cgi?id=37319
211
212         Increase the likeness that JSElements are converted to QWebElements. When hinted
213         with QWebElement metatype, we qualify the conversion from JSElement as a "perfect
214         match".
215
216         The test was failing because the wrong slot was called, since the QWebElement
217         match was taken as equal to the others and not chosen when the metacall happened.
218
219         We also remove the implicit conversion between JSDocument (which is not an
220         element) to QWebElement. The conversion only worked for calling slots, while
221         without hint it returned a QVariantMap (as can be seen in domCycles test). It was
222         added for supporting DRT, but since this change we can use it as QVariantMap and
223         get the value for "documentElement".
224
225         This patch is based on Noam Rosenthal original patch in the same bug.
226
227         * bridge/qt/qt_runtime.cpp:
228         (JSC::Bindings::hintForRealType):
229         Extracted function to choose the metatype hint based on the JSValue type.  Add
230         QWebElement metatype as a hint for JSElement objects, this way if no hint is
231         provided, JSElement objects will always be converted to QWebElements.
232
233         (JSC::Bindings::convertValueToQVariant):
234         Use previous function. Identify the conversion between JSElement to QWebElement
235         as a "perfect match" (dist = 0). And remove the implicit conversion when the hint
236         is QWebElement metatype and we have a JSDocument.  Changed from JSHTMLElement to
237         JSElement to cover the 'documentElement'.
238
239 2011-06-14  Andreas Kling  <kling@webkit.org>
240
241         Reviewed by Benjamin Poulain.
242
243         Remove some unnecessary includes.
244
245         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
246
247 2011-06-14  Yael Aharon  <yael.aharon@nokia.com>
248
249         Reviewed by Kent Tamura.
250
251         <progress> should support :indeterminate pseudo-class
252         https://bugs.webkit.org/show_bug.cgi?id=62430
253
254         Add support for :indeterminate pseudo class for progress element.
255
256         Tests: fast/dom/HTMLProgressElement/indeterminate-progress-001.html
257                fast/dom/HTMLProgressElement/indeterminate-progress-002.html
258
259         * css/CSSStyleSelector.cpp:
260         (WebCore::CSSStyleSelector::canShareStyleWithControl):
261         (WebCore::CSSStyleSelector::canShareStyleWithElement):
262         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
263         * html/HTMLProgressElement.cpp:
264         (WebCore::HTMLProgressElement::isDeterminate):
265         (WebCore::HTMLProgressElement::didElementStateChange):
266         * html/HTMLProgressElement.h:
267
268 2011-06-14  Pavel Feldman  <pfeldman@google.com>
269
270         Reviewed by Yury Semikhatsky.
271
272         Web Inspector: use ew-resize instead of col-resize for non-columns.
273         https://bugs.webkit.org/show_bug.cgi?id=62640
274
275         * inspector/front-end/ElementsPanel.js:
276         (WebInspector.ElementsPanel.prototype.rightSidebarResizerDragStart):
277         * inspector/front-end/Panel.js:
278         (WebInspector.Panel.prototype._startSidebarDragging):
279         * inspector/front-end/ScriptsPanel.js:
280         (WebInspector.ScriptsPanel.prototype._startSidebarResizeDrag):
281         * inspector/front-end/TimelineOverviewPane.js:
282         (WebInspector.TimelineOverviewPane.prototype._resizeWindow):
283         (WebInspector.TimelineOverviewPane.prototype._dragWindow):
284         * inspector/front-end/inspector.css:
285         (body.attached #toolbar):
286         (body.drawer-visible #main-status-bar):
287         (#scripts-sidebar-resizer-widget):
288         (.sidebar-resizer-vertical):
289         (.timeline-window-resizer):
290
291 2011-06-14  Pavel Feldman  <pfeldman@google.com>
292
293         Reviewed by Yury Semikhatsky.
294
295         Web Inspector: reload from within inspector window does not work while debugger is paused.
296         https://bugs.webkit.org/show_bug.cgi?id=62631
297
298         Test: inspector/debugger/debugger-reload-on-pause.html
299
300         * loader/FrameLoader.cpp:
301         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
302
303 2011-06-14  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
304
305         Reviewed by Kent Tamura.
306
307         [EFL] Support for painting thumb of media slider
308         https://bugs.webkit.org/show_bug.cgi?id=62174
309
310         Replace RenderObject parameter with RenderStyle's in adjustSliderThumbSize.
311         Because, parameter of the function was changed. And, add constant variable to
312         paintMediaSliderThumb().
313
314         * platform/efl/RenderThemeEfl.cpp:
315         (WebCore::RenderThemeEfl::RenderThemeEfl):
316         (WebCore::RenderThemeEfl::adjustSliderThumbSize):
317         (WebCore::RenderThemeEfl::paintMediaSliderThumb):
318         * platform/efl/RenderThemeEfl.h:
319
320 2011-06-14  Kent Tamura  <tkent@chromium.org>
321
322         [Qt] Attempt to fix a build break by r88757.
323         https://bugs.webkit.org/show_bug.cgi?id=52920
324
325         * platform/qt/RenderThemeQt.cpp:
326         (WebCore::RenderThemeQt::paintSliderTrack):
327
328 2011-06-13  Kent Tamura  <tkent@chromium.org>
329
330         [EFL] The second try to fix a build break.
331
332         * platform/efl/RenderThemeEfl.cpp:
333         (WebCore::RenderThemeEfl::paintThemePart):
334
335 2011-06-13  Kent Tamura  <tkent@chromium.org>
336
337         [EFL] Fix a typo.
338
339         * platform/efl/RenderThemeEfl.cpp:
340         (WebCore::RenderThemeEfl::paintThemePart):
341
342 2011-06-13  Kent Tamura  <tkent@chromium.org>
343
344         [EFL] Try to fix a build break by r88757.
345
346         * platform/efl/RenderThemeEfl.cpp:
347         (WebCore::RenderThemeEfl::paintThemePart):
348
349 2011-06-10  Kent Tamura  <tkent@chromium.org>
350
351         Reviewed by Dimitri Glazkov.
352
353         Use CSS machinery to position slider thumb.
354         https://bugs.webkit.org/show_bug.cgi?id=52920
355
356         Remove RenderSlider::layout().
357         In order to remove it, we introduce new three shadow nodes:
358          - A flex box container occupying the whole box
359          - A flex box item representing a movable area of the thumb
360          - A flex box item limiting the movable area of the thumb
361         The thumb position is specified by percentage position in the second element.
362
363         This change also fixes Bug 60353.
364
365         Tests: fast/forms/input-appearance-range.html
366                fast/forms/validation-message-on-range.html
367
368         * accessibility/AccessibilitySlider.cpp:
369         (WebCore::AccessibilitySliderThumb::elementRect):
370           Use Node::getRect() for the thumb element.
371         * css/html.css: Add new style definitions for the new node layout.
372         (input[type="range"]::-webkit-slider-container):
373         (input[type="range"]::-webkit-slider-runnable-track):
374         (input[type="range"]::-webkit-slider-thumb):
375         * html/RangeInputType.cpp:
376         (WebCore::RangeInputType::handleMouseDownEvent):
377           Accepts events on shadow nodes, use sliderThumbElementOf().
378         (WebCore::RangeInputType::createShadowSubtree):
379           Creates new nodes layout.
380         (WebCore::RangeInputType::valueChanged): Use sliderThumbElementOf().
381         * html/RangeInputType.h: Remove shadowSliderThumb().
382         * html/shadow/SliderThumbElement.cpp:
383         (WebCore::sliderPosition): Moved from RenderSlider.cpp.
384         (WebCore::hasVerticalAppearance): New utility function.
385         (WebCore::sliderThumbElementOf): New utility function.
386         (WebCore::RenderSliderThumb::layout):
387           Sets CSS top/left values.
388         (WebCore::RenderSliderContainer::RenderSliderContainer):
389         (WebCore::RenderSliderContainer::layout):
390           Add some adjustment code.
391           - Setting box-orient
392           - Adjust heights of some nodes. It is required to pass existing tests.
393         (WebCore::SliderThumbElement::setPositionFromValue):
394           Update comments.
395         (WebCore::SliderThumbElement::setPositionFromPoint):
396           Calculate the current position from absolute positions.
397         (WebCore::SliderThumbElement::hostInput):
398           Removed unnecessary variable.
399         (WebCore::TrackLimiterElement::TrackLimiterElement):
400         (WebCore::TrackLimiterElement::create): Adjust style.
401         (WebCore::TrackLimiterElement::createRenderer):
402           This node uses RenderSliderThumb.
403         (WebCore::TrackLimiterElement::shadowPseudoId):
404           This node also uses -webkit-slider-thumb.
405         (WebCore::SliderContainerElement::SliderContainerElement):
406         (WebCore::SliderContainerElement::create):
407         (WebCore::SliderContainerElement::createRenderer):
408           Uses RenderSliderContainer.
409         (WebCore::SliderContainerElement::shadowPseudoId):
410         * html/shadow/SliderThumbElement.h:
411           Make hostInput() public, add declarations of TrackLimiterElement
412           and SliderContainerElement.
413         * rendering/RenderSlider.cpp:
414         (WebCore::RenderSlider::RenderSlider): Added an assertion.
415         (WebCore::RenderSlider::inDragMode): Uses sliderThumbElementOf().
416         * rendering/RenderSlider.h: Remove declarations of removed functions.
417         * rendering/RenderTheme.cpp:
418         (WebCore::RenderTheme::adjustSliderThumbStyle):
419           Calls adjustSliderThumbSize().
420
421 2011-06-13  Joone Hur  <joone.hur@collabora.co.uk>
422
423         Reviewed by Martin Robinson.
424
425         [GTK] Add configure option to enable/disable register protocol handler
426         https://bugs.webkit.org/show_bug.cgi?id=62534
427
428         * GNUmakefile.am: Add ENABLE_REGISTER_PROTOCOL_HANDLER.
429
430 2011-06-13  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
431
432         Reviewed by Kent Tamura.
433
434         [EFL] Support for painting thumb of media slider
435         https://bugs.webkit.org/show_bug.cgi?id=62174
436
437         Implement paintMediaSliderThumb() function to show thumb of media slider.
438         adjustSliderThumbSize() should be implemented in order to call paintMediaSliderThumb().
439
440         * platform/efl/RenderThemeEfl.cpp:
441         (WebCore::RenderThemeEfl::RenderThemeEfl):
442         (WebCore::RenderThemeEfl::adjustSliderThumbSize):
443         (WebCore::RenderThemeEfl::paintMediaSliderTrack):
444         (WebCore::RenderThemeEfl::paintMediaSliderThumb):
445         (WebCore::RenderThemeEfl::paintMediaCurrentTime):
446         * platform/efl/RenderThemeEfl.h:
447
448 2011-06-13  Keishi Hattori  <keishi@webkit.org>
449
450         Sort WebCore.xcodeproj
451         Accomplished using sort-Xcode-project-file.
452
453         * WebCore.xcodeproj/project.pbxproj:
454
455 2011-06-13  James Simonsen  <simonjam@chromium.org>
456
457         Reviewed by James Robinson.
458
459         [Chromium] Implement monotonicallyIncreasingClock()
460         https://bugs.webkit.org/show_bug.cgi?id=62162
461
462         * platform/chromium/PlatformBridge.h:
463         * platform/chromium/SystemTimeChromium.cpp:
464         (WebCore::monotonicallyIncreasingTime): Use Chrome's implementation.
465
466 2011-06-13  Steve Block  <steveblock@google.com>
467
468         Reviewed by Darin Adler.
469
470         Remove Android defines from WebCore/config.h
471         https://bugs.webkit.org/show_bug.cgi?id=62602
472
473         No new tests, build cleanup only.
474
475         * config.h:
476
477 2011-06-13  Adam Barth  <abarth@webkit.org>
478
479         Reviewed by David Levin.
480
481         Remove redundant "true" parameter to scheduleLocationChange
482         https://bugs.webkit.org/show_bug.cgi?id=62612
483
484         This parameter defaults to true anyway.
485
486         * loader/appcache/ApplicationCacheGroup.cpp:
487         (WebCore::ApplicationCacheGroup::selectCache):
488
489 2011-06-13  Kentaro Hara  <haraken@google.com>
490
491         Reviewed by Alexey Proskuryakov.
492
493         Add resizePageRectsKeepingRatio(), which expands/shrinks a page, keeping the ratio of the original page
494         https://bugs.webkit.org/show_bug.cgi?id=61256
495
496         In order to prevent rounding error caused by expanding/shrinking a page
497         using different calculation here and there, I added a common calculation
498         method, resizePageRectsKeepingRatio(), which expands/shrinks a page,
499         keeping the ratio of width and height of the original page.
500         PrintContext::computePageRects() and PrintContext::begin()
501         use resizePageRectsKeepingRatio() to expand/shrink a page.
502
503         Test: printing/page-count-with-one-word.html
504
505         * WebCore.exp.in:
506         * page/Frame.cpp:
507         (WebCore::Frame::resizePageRectsKeepingRatio):
508         * page/Frame.h:
509         * page/PrintContext.cpp:
510         (WebCore::PrintContext::computePageRects):
511         (WebCore::PrintContext::begin):
512
513 2011-06-13  Adam Barth  <abarth@webkit.org>
514
515         Reviewed by Darin Adler.
516
517         anyPageIsProcessingUserGesture is not longer needed because user gesture state is static
518         https://bugs.webkit.org/show_bug.cgi?id=62601
519
520         Previously, our user-gesture state was per-frame.  Code needed to check
521         the "global" user gesture state called anyPageIsProcessingUserGesture()
522         to iterate through all the frames and look for one that was processing
523         a user gesture.  Since we changed the user gesture state to be static,
524         iterating over every frame in existence isn't needed.
525
526         This patch also cleans up a couple other user-gesture callsites I saw
527         while I was in this code.  Code should just call
528         ScriptController::processingUserGesture directly instead of
529         trampolining through other functions.
530
531         * bindings/ScriptControllerBase.cpp:
532         (WebCore::ScriptController::executeScript):
533         * bindings/generic/BindingSecurity.h:
534         (WebCore::::allowPopUp):
535         * bindings/js/JSDOMBinding.cpp:
536         * bindings/js/JSDOMBinding.h:
537         * bindings/js/JSDocumentCustom.cpp:
538         (WebCore::JSDocument::setLocation):
539         * bindings/js/ScriptController.cpp:
540         * bindings/js/ScriptController.h:
541         * bindings/scripts/CodeGeneratorJS.pm:
542         * bindings/scripts/CodeGeneratorV8.pm:
543         * bindings/v8/ScriptController.cpp:
544         * bindings/v8/ScriptController.h:
545         (WebCore::ScriptController::setProcessingTimerCallback):
546         * bindings/v8/V8Utilities.cpp:
547         * bindings/v8/V8Utilities.h:
548         * bindings/v8/specialization/V8BindingState.cpp:
549         * bindings/v8/specialization/V8BindingState.h:
550         * html/HTMLFormElement.cpp:
551         (WebCore::HTMLFormElement::submitFromJavaScript):
552         (WebCore::HTMLFormElement::submit):
553         * page/DOMWindow.cpp:
554         (WebCore::DOMWindow::setLocation):
555         (WebCore::DOMWindow::createWindow):
556         (WebCore::DOMWindow::open):
557
558 2011-06-13  Jeffrey Pfau  <jpfau@apple.com>
559
560         Reviewed by Darin Adler.
561
562         Crash in WebCore::RenderMathMLUnderOver::layout()
563         https://bugs.webkit.org/show_bug.cgi?id=57900
564
565         Add more null checks so that removing children in MathML elements does not cause crashes.
566         Note that this only half fixes the third repro in the Bugzilla bug, as another bug will
567         still crash that repro.
568
569         Test: mathml/munderover-remove-children.html
570
571         * rendering/mathml/RenderMathMLSubSup.cpp:
572         (WebCore::RenderMathMLSubSup::stretchToHeight):
573         * rendering/mathml/RenderMathMLUnderOver.cpp:
574         (WebCore::RenderMathMLUnderOver::layout):
575         (WebCore::RenderMathMLUnderOver::nonOperatorHeight):
576
577 2011-06-13  Dmitry Lomov  <dslomov@google.com>
578
579         Reviewed by Adam Barth.
580
581         https://bugs.webkit.org/show_bug.cgi?id=62345
582         Use per-isolate embedder data instead of statics for caches in bindings.
583         This is a prerequisite for more than one v8 isolate per process.
584
585         * bindings/scripts/CodeGeneratorV8.pm:
586         * bindings/v8/IDBBindingUtilities.cpp:
587         (WebCore::createIDBKeyFromSerializedValueAndKeyPath):
588         (WebCore::injectIDBKeyIntoSerializedValue):
589         * bindings/v8/V8Binding.cpp:
590         (WebCore::V8BindingPerIsolateData::V8BindingPerIsolateData):
591         (WebCore::V8BindingPerIsolateData::~V8BindingPerIsolateData):
592         (WebCore::V8BindingPerIsolateData::create):
593         (WebCore::V8BindingPerIsolateData::ensureInitialized):
594         (WebCore::V8BindingPerIsolateData::dispose):
595         (WebCore::getToStringName):
596         (WebCore::getToStringTemplate):
597         * bindings/v8/V8Binding.h:
598         (WebCore::V8BindingPerIsolateData::get):
599         (WebCore::V8BindingPerIsolateData::current):
600         (WebCore::V8BindingPerIsolateData::rawTemplateMap):
601         (WebCore::V8BindingPerIsolateData::templateMap):
602         (WebCore::V8BindingPerIsolateData::toStringName):
603         (WebCore::V8BindingPerIsolateData::toStringTemplate):
604         * bindings/v8/V8DOMWindowShell.cpp:
605         (WebCore::V8DOMWindowShell::initContextIfNeeded):
606         * bindings/v8/V8Utilities.cpp:
607         (WebCore::V8LocalContext::V8LocalContext):
608         (WebCore::V8LocalContext::~V8LocalContext):
609         * bindings/v8/V8Utilities.h:
610         * bindings/v8/WorkerContextExecutionProxy.cpp:
611         (WebCore::WorkerContextExecutionProxy::initV8IfNeeded):
612
613 2011-06-13  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
614
615         Reviewed by Adam Barth.
616
617         Simplify logic in ProgressTracker::progressCompleted()
618         https://bugs.webkit.org/show_bug.cgi?id=62598
619
620         Testing for "m_numProgressTrackedFrames != 0" is unnecessary because it is
621         always true, otherwise we would entered in the first part of the conditional.
622
623         * loader/ProgressTracker.cpp:
624         (WebCore::ProgressTracker::progressCompleted):
625
626 2011-06-13  Dimitri Glazkov  <dglazkov@chromium.org>
627
628         Unreviewed, rolling out r88704.
629         http://trac.webkit.org/changeset/88704
630         https://bugs.webkit.org/show_bug.cgi?id=62466
631
632         Caused layout test failures on Chromium Mac.
633
634         * platform/chromium/ClipboardChromium.cpp:
635         (WebCore::ClipboardChromium::declareAndWriteDragImage):
636
637 2011-06-13   Morgan Winer  <mwiner@apple.com>
638
639         Reviewed by Enrica Casucci.
640
641         Frame::visiblePositionForPoint returns null position if the point is over an imagemap.
642         https://bugs.webkit.org/show_bug.cgi?id=62562
643         <rdar://problem/9313885>
644
645         The innerNode() of an imageMap is an area, and doesn't have a renderer and
646         therefore can't report a position.
647         Every result's innerNonSharedNode() should be the same as the innerNode(),
648         except for imageMaps, which will have the actual image as its innerNonSharedNode(),
649         and will therefore have a renderer and can report a position.
650
651         There are no layout tests for this, since it can be tested only at API level.
652
653         * page/Frame.cpp:
654         (WebCore::Frame::visiblePositionForPoint): Changing innerNode() to innerNonSharedNode().
655
656 2011-06-13  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
657
658         Reviewed by Eric Seidel.
659
660         [CMAKE] Conditionally generate DerivedSources
661         https://bugs.webkit.org/show_bug.cgi?id=62277
662
663         Speedup build by not generating DerivedSources of features that are
664         disabled. This was already been done for some features like ENABLE_SVG
665         and now it's extended the following features: ENABLE_DATABASE,
666         ENABLE_INDEXED_DATABASE, ENABLE_DOM_STORAGE, ENABLE_XPATH,
667         ENABLE_OFFLINE_WEB_APPLICATIONS, ENABLE_WEB_SOCKETS,
668         ENABLE_DATA_TRANSFER_ITEMS.
669
670         No change in functionality so no new tests.
671
672         * CMakeLists.txt: move .idl files to be conditionally generated.
673
674 2011-06-13  Leandro Pereira  <leandro@profusion.mobi>
675
676         Reviewed by Eric Seidel.
677
678         [CMake] Allow building with ENABLE_NETSCAPE_PLUGIN_API on platforms
679         without plugin support
680         https://bugs.webkit.org/show_bug.cgi?id=62394
681
682         No behaviour changes, so no new tests.
683
684         * CMakeLists.txt: Remove references to Plugin{Package,View}.cpp and
685         Plugin{Package,View}None.cpp and move them to CMakeListWinCE and
686         CMakeListsEfl, respectively.
687         * CMakeListsEfl.txt:
688         * CMakeListsWinCE.txt:
689
690 2011-06-13  Andrey Kosyakov  <caseq@chromium.org>
691
692         Reviewed by Eric Seidel.
693
694         Web Inspector: [refactoring] remove dead code from NetworkPanel
695         https://bugs.webkit.org/show_bug.cgi?id=62481
696
697         * inspector/front-end/NetworkPanel.js:
698
699 2011-06-13  Daniel Cheng  <dcheng@chromium.org>
700
701         Reviewed by Eric Seidel.
702
703         [chromium] Dragging images to Mail.app results in broken attachments
704         https://bugs.webkit.org/show_bug.cgi?id=62466
705
706         No new tests.
707
708         * platform/chromium/ClipboardChromium.cpp:
709         (WebCore::ClipboardChromium::declareAndWriteDragImage):
710
711 2011-06-13  Adrienne Walker  <enne@google.com>
712
713         Reviewed by Simon Fraser.
714
715         Overlap test needs to consider children of composited layers
716         https://bugs.webkit.org/show_bug.cgi?id=62465
717
718         Any child layer with a compositing ancestor will be put into a
719         composited layer even though they themselves don't need compositing.
720         As layer bounds aren't hierarchical, these layer bounds themselves
721         need to be put into the overlap map because the composited layer
722         itself is not sufficient.
723
724         Test: compositing/layer-creation/overlap-animated-layer.html
725
726         * rendering/RenderLayerCompositor.cpp:
727         (WebCore::RenderLayerCompositor::computeCompositingRequirements):
728
729 2011-06-13  Xan Lopez  <xlopez@igalia.com>
730
731         Unreviewed build fix.
732
733         Touch this to try to fix the build...
734
735         * platform/gtk/WidgetGtk.cpp:
736         (WebCore::Widget::~Widget):
737
738 2011-06-13  Xan Lopez  <xlopez@igalia.com>
739
740         Try to fix GTK+ build.
741
742         * GNUmakefile.list.am: remove CredentialStorage.cpp
743
744 2011-06-13  Stephen White  <senorblanco@chromium.org>
745
746         Reviewed by James Robinson.
747
748         Improve GPU canvas startup time on the SkiaGPU path.
749         https://bugs.webkit.org/show_bug.cgi?id=62594
750         
751         Fixed by skipping creation of shaders used only by the legacy path.
752
753         Covered by existing canvas tests.
754
755         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
756         (WebCore::SharedGraphicsContext3D::create):
757
758 2011-06-13  Michael Saboff  <msaboff@apple.com>
759
760         Reviewed by Oliver Hunt.
761
762         Additional FontCache::FontCachePurgePreventer instances needed
763         https://bugs.webkit.org/show_bug.cgi?id=62498
764
765         Added some needed and speculative FontCachePurgePreventer objects.
766         Built and ran Safari with debug version of webkit that purges all
767         purgeable fonts in FontCache::purgeInactiveFontDataIfNeeded in order
768         to find system fallback fonts access via code paths that aren't
769         protected with FontCachePurgePreventer objects.  Also examined
770         platform specific code that calls either Font::drawText() or
771         Canvas::drawText().  For those methods that may be called from currently
772         unprotected paths, added FontCachePurgePreventer objects.
773
774         No new functionality so no new tests.
775
776         * inspector/DOMNodeHighlighter.cpp:
777         * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp:
778         (PlatformCALayerWinInternal::displayCallback):
779         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
780         (WebCore::CCHeadsUpDisplay::drawHudContents):
781         * platform/mac/DragImageMac.mm:
782         (WebCore::widthWithFont):
783         (WebCore::drawAtPoint):
784         * rendering/RenderMenuList.cpp:
785         (WebCore::RenderMenuList::updateOptionsWidth):
786
787 2011-06-13  Ryosuke Niwa  <rniwa@webkit.org>
788
789         Reviewed by Dan Bernstein.
790
791         REGRESSION (r81518): Crash in makeRange() when invoking the dictionary panel over a file input
792         https://bugs.webkit.org/show_bug.cgi?id=62544
793
794         Fixed the crash by adding null pointer checks.
795
796         No new tests since there's no way to open dictionary panel.
797
798         * dom/Position.cpp:
799         (WebCore::Position::parentAnchoredEquivalent):
800         * editing/VisiblePosition.cpp:
801         (WebCore::makeRange):
802         * page/Frame.cpp:
803         (WebCore::Frame::rangeForPoint):
804
805 2011-06-13  Adam Barth  <abarth@webkit.org>
806
807         Reviewed by Nate Chapin.
808
809         Factor IconController out of FrameLoader
810         https://bugs.webkit.org/show_bug.cgi?id=62509
811
812         This new class contains all the icon-related logic from FrameLoader.
813         The icon-related logic and state has almost zero interaction with the
814         rest of FrameLoader and is better handled as a separate concern.
815
816         * CMakeLists.txt:
817         * GNUmakefile.list.am:
818         * WebCore.gypi:
819         * WebCore.pro:
820         * WebCore.vcproj/WebCore.vcproj:
821         * WebCore.xcodeproj/project.pbxproj:
822         * dom/Document.cpp:
823         (WebCore::Document::implicitClose):
824         (WebCore::Document::setIconURL):
825         * inspector/InspectorResourceAgent.cpp:
826         (WebCore::InspectorResourceAgent::didReceiveResponse):
827         * loader/DocumentLoader.cpp:
828         (WebCore::DocumentLoader::iconLoadDecisionAvailable):
829         (WebCore::DocumentLoader::continueIconLoadWithDecision):
830         * loader/FrameLoader.cpp:
831         (WebCore::FrameLoader::FrameLoader):
832         (WebCore::FrameLoader::stop):
833         * loader/FrameLoader.h:
834         (WebCore::FrameLoader::icon):
835         * loader/icon/IconLoader.cpp:
836         (WebCore::IconLoader::startLoading):
837         (WebCore::IconLoader::finishLoading):
838         * loader/icon/IconLoader.h:
839
840 2011-06-13  Nate Chapin  <japhet@chromium.org>
841
842         Reviewed by Darin Fisher.
843
844         [V8] Cache V8NPObjects so that we don't create multiple
845         NPObjects for the same v8::Object.
846         https://bugs.webkit.org/show_bug.cgi?id=61482
847
848         Test: plugins/npruntime/embed-property-equality.html
849
850         * bindings/v8/NPV8Object.cpp:
851         (WebCore::freeV8NPObject):
852         (WebCore::npCreateV8ScriptObject):
853
854 2011-06-13  Xan Lopez  <xlopez@igalia.com>
855
856         Reviewed by Martin Robinson.
857
858         Distcheck fixes.
859
860         * GNUmakefile.am:
861         * GNUmakefile.list.am:
862
863 2011-06-13  Dirk Schulze  <krit@webkit.org>
864
865         Reviewed build fix of mac.
866
867         SVGAnimation should use direct unit animation for SVGLength
868         https://bugs.webkit.org/show_bug.cgi?id=61368
869
870         Forgot to add SVGAnimatedLength.cpp. 
871
872         * WebCore.xcodeproj/project.pbxproj:
873
874 2011-06-13  Dirk Schulze  <krit@webkit.org>
875
876         Reviewed by Nikolas Zimmermann.
877
878         SVGAnimation should use direct unit animation for SVGLength
879         https://bugs.webkit.org/show_bug.cgi?id=61368
880
881         When running SMIL animations  within SVG, we unnecessarily transform the underlying SVG primitive datatype to strings, number+units, and back. As first step the target element
882         gets asked for its current value. This value gets transformed to a string. In SVGAnimateElement we try to parse this string again and
883         split it into a number and its unit. In the further steps we just animate the number. This number gets transformed back to a string
884         together with the parsed unit. The string gets passed back to the target element, which is responsible for parsing the passed string back
885         to a value as a SVG primitive datatype (like SVGLength, SVGNumber, SVGAngle, SVGColor, ...), relayout and rerendering.
886
887         In short: SVG primitive datatype -> string -> number + unit animation -> string -> SVG primitive datatype.
888
889         This patch does not attempt to change the string transformations, but addresses the parsing of the string back to a number and unit in the
890         SVG animation code. There's no need to write a new parser in SVGAnimateElement to parse SVG primitive datatypes, we can instead reuse the existing ones.
891         Also the current parser of SVGAnimateElement does not handle most unit types, nor is it possible to animate lists like SVGLengthList with the
892         parsed content. An animation of values with different unit types is not possible:
893
894         <rect width="20" height="20">
895             <animate animateAttribute="width" from="20px" to="10%" dur="4s"/>
896         </rect>
897
898         For the example above we would animate the rect width from 20px to 10px in 4 seconds and jump to the 10% of the viewport at the end of the
899         animation.
900         With using the parsers of SVG primitive datatypes we will also use the SVG primitive datatypes in the animation code itself. And that makes
901         it possible to do such animations.
902
903         In short: SVG primitive datatype -> string -> SVG primitive datatype animation -> string -> SVG primitive datatype.
904
905         It will be easier to avoid the string transformation once all SVG primitive datatypes are supported.
906
907         To hide the complexity of the animation code, the actual calculations of SVG animation specific values was moved to the corresponding
908         SVGAnimated* files (SVGAnimatedLength.cpp for SVGLength). SVGAnimateElement itself just works with the new added generic datatype SVGAnimationType.
909         SVGAnimatorFactory creates the SVG primitive datatype specific animators. This makes the main animation code a lot more readable and 
910         maintainable.
911
912         With this patch I add the SVGAnimatorFactory and convert SVGLength animation to the new concept.
913
914         Tests: svg/animations/svglength-animation-LengthModeHeight.html
915                svg/animations/svglength-animation-LengthModeOther.html
916                svg/animations/svglength-animation-LengthModeWidth.html
917                svg/animations/svglength-animation-invalid-value-1.html
918                svg/animations/svglength-animation-invalid-value-2.html
919                svg/animations/svglength-animation-invalid-value-3.html
920                svg/animations/svglength-animation-number-to-number.html
921                svg/animations/svglength-animation-px-to-cm.html
922                svg/animations/svglength-animation-px-to-ems.html
923                svg/animations/svglength-animation-px-to-exs.html
924                svg/animations/svglength-animation-px-to-in.html
925                svg/animations/svglength-animation-px-to-number.html
926                svg/animations/svglength-animation-px-to-pc.html
927                svg/animations/svglength-animation-px-to-percentage.html
928                svg/animations/svglength-animation-px-to-pt.html
929                svg/animations/svglength-animation-px-to-px.html
930                svg/animations/svglength-animation-values.html
931
932         * CMakeLists.txt: Added new files to build system.
933         * GNUmakefile.list.am: Ditto.
934         * WebCore.gypi: Ditto.
935         * WebCore.pro: Ditto.
936         * WebCore.vcproj/WebCore.vcproj: Ditto.
937         * WebCore.xcodeproj/project.pbxproj: Ditto.
938         * svg/SVGAllInOne.cpp: Added SVGAnimatedLength.cpp for Win and other build systems.
939         * svg/SVGAnimateElement.cpp:
940         (WebCore::parseNumberValueAndUnit): Remove parsing code for SVGLength. Use SVGLength parser directly.
941         (WebCore::SVGAnimateElement::adjustForCurrentColor): Made adjustForCurrentColor public as preperation for SVGAnimatedColor.
942         (WebCore::getPropertyValue): Inline function to get computedStyle of CSS property.
943         (WebCore::SVGAnimateElement::adjustForInheritance): Made adjustForInheritance as preperation for SVGAnimated* files.
944         (WebCore::SVGAnimateElement::determineAnimatedAttributeType): SVGLength need special handling via SVGAnimator now.
945         (WebCore::SVGAnimateElement::calculateAnimatedValue): Cleanup. Make use of SVGAnimator for SVGLength.
946         (WebCore::SVGAnimateElement::calculateFromAndToValues): Ditto.
947         (WebCore::SVGAnimateElement::calculateFromAndByValues): Ditto.
948         (WebCore::SVGAnimateElement::resetToBaseValue): Ditto.
949         (WebCore::SVGAnimateElement::applyResultsToTarget): Ditto.
950         (WebCore::SVGAnimateElement::calculateDistance): Ditto.
951         * svg/SVGAnimateElement.h:
952         * svg/SVGAnimatedLength.cpp: Added.
953         (WebCore::SVGAnimatedLengthAnimator::SVGAnimatedLengthAnimator):
954         (WebCore::sharedSVGLength):
955         (WebCore::SVGAnimatedLengthAnimator::constructFromString):
956         (WebCore::SVGAnimatedLengthAnimator::calculateFromAndToValues):
957         (WebCore::SVGAnimatedLengthAnimator::calculateFromAndByValues):
958         (WebCore::SVGAnimatedLengthAnimator::calculateAnimatedValue):
959         (WebCore::SVGAnimatedLengthAnimator::calculateDistance):
960         * svg/SVGAnimatedLength.h: Added new class SVGAnimatedLengthAnimator which is responsible for the actual animation.
961         (WebCore::SVGAnimatedLengthAnimator::~SVGAnimatedLengthAnimator):
962         * svg/SVGAnimatedType.h: Added. Generic SVG unit type for animations in SVGAnimateElement.
963         (WebCore::SVGAnimatedType::createLength):
964         (WebCore::SVGAnimatedType::~SVGAnimatedType):
965         (WebCore::SVGAnimatedType::type):
966         (WebCore::SVGAnimatedType::length):
967         (WebCore::SVGAnimatedType::SVGAnimatedType):
968         * svg/SVGAnimatedTypeAnimator.h: Added. Base class for SVGAnimatedLengthAnimator and future SVG unit animators.
969         (WebCore::SVGAnimatedTypeAnimator::~SVGAnimatedTypeAnimator):
970         (WebCore::SVGAnimatedTypeAnimator::setContextElement):
971         (WebCore::SVGAnimatedTypeAnimator::SVGAnimatedTypeAnimator):
972         * svg/SVGAnimationElement.cpp:
973         (WebCore::SVGAnimationElement::parseMappedAttribute): We do not use parseNumberValueAndUnit for SVGLength now. Have to strip white spaces here. Whitespaces shouldn't
974           be stripped on the following attributes: 'from', 'to' and 'by'. This is not the case for SVGLength anymore. Added new tests to check this behavior.
975         (WebCore::SVGAnimationElement::animationMode): Enum is accessible in WebCore namespace now.
976         (WebCore::SVGAnimationElement::calcMode): Ditto.
977         * svg/SVGAnimationElement.h:
978         * svg/SVGAnimatorFactory.h: Added.
979         (WebCore::SVGAnimatorFactory::create):
980         * svg/SVGLength.cpp:
981         (WebCore::SVGLength::setValueAsString): New setter with string and SVGLengthMode.
982         (WebCore::SVGLength::lengthModeForAnimatedLengthAttribute): Get LengthMode for SVGLength depending on the attribute name.
983         * svg/SVGLength.h:
984
985 2011-06-13  Adam Barth  <abarth@webkit.org>
986
987         Reviewed by Darin Adler.
988
989         r87539 broke HTMLMediaElement url logging
990         https://bugs.webkit.org/show_bug.cgi?id=62551
991
992         Returning pointers to temporaries is bad times!
993
994         * html/HTMLMediaElement.cpp:
995         (WebCore::urlForLogging):
996         (WebCore::HTMLMediaElement::loadResource):
997         (WebCore::HTMLMediaElement::isSafeToLoadURL):
998         (WebCore::HTMLMediaElement::selectNextSourceChild):
999         (WebCore::HTMLMediaElement::sourceWasAdded):
1000         (WebCore::HTMLMediaElement::sourceWillBeRemoved):
1001
1002 2011-06-13  Tony Chang  <tony@chromium.org>
1003
1004         Reviewed by Dimitri Glazkov.
1005
1006         rename ENABLE_NEW_FLEXBOX to ENABLE_CSS3_FLEXBOX
1007         https://bugs.webkit.org/show_bug.cgi?id=62578
1008
1009         * Configurations/FeatureDefines.xcconfig:
1010
1011 2011-06-13  Mark Pilgrim  <pilgrim@chromium.org>
1012
1013         Reviewed by Tony Chang.
1014
1015         IndexedDB: setVersion() version argument is required
1016         https://bugs.webkit.org/show_bug.cgi?id=62401
1017
1018         Test: storage/indexeddb/setVersion-undefined.html
1019
1020         * storage/IDBDatabase.cpp:
1021         (WebCore::IDBDatabase::setVersion): check for null version
1022         * storage/IDBDatabase.idl: add IDL magic to force undefined to null so we can handle both missing and null arguments
1023
1024 2011-06-13  Simon Fraser  <simon.fraser@apple.com>
1025
1026         Reviewed by Adele Peterson.
1027
1028         Print out bounds origin in layer dump
1029         https://bugs.webkit.org/show_bug.cgi?id=62583
1030
1031         Include m_boundsOrigin in the layer dump, which is used by layerTreeAsText().
1032
1033         * platform/graphics/GraphicsLayer.cpp:
1034         (WebCore::GraphicsLayer::dumpProperties):
1035
1036 2011-06-13  Simon Fraser  <simon.fraser@apple.com>
1037
1038         Reviewed by Adele Peterson.
1039
1040         Add utility method to report whether a RenderLayer has any scrollbars
1041         https://bugs.webkit.org/show_bug.cgi?id=62579
1042         
1043         New method that returns true with either scrollbar is present.
1044
1045         * rendering/RenderLayer.h:
1046         (WebCore::RenderLayer::hasScrollbars):
1047
1048 2011-06-11  Jer Noble  <jer.noble@apple.com>
1049
1050         Reviewed by Anders Carlsson.
1051
1052         Avoid flashing when exiting full-screen mode.
1053         https://bugs.webkit.org/show_bug.cgi?id=62338
1054
1055         No new tests; covered by the existing full-screen tests.
1056
1057         Now that we are forcing a repaint inside of setRootFullScreenLayer() instead of during
1058         the next run loop, make sure that we have disabled animation before calling 
1059         setRootFullScreenLayer() so that the RenderFullScreen renderer and its contents are
1060         painted.
1061
1062         * dom/Document.cpp:
1063         (WebCore::Document::webkitDidEnterFullScreenForElement):
1064
1065 2011-06-10  Jer Noble  <jer.noble@apple.com>
1066
1067         Reviewed by Darin Adler.
1068
1069         Flash of white on left and right edges of screen when showing fullscreen controller when movie doesn't fill the entire screen
1070         https://bugs.webkit.org/show_bug.cgi?id=62491
1071         <rdar://problem/9584427>
1072
1073         No new tests; should be covered by existing fullscreen pixel tests.
1074
1075         On certain displays, when a RenderFullScreen renderer is created, it is large enough to trigger the 
1076         creation of a tiled CALayer (instead of a normal CALayer).  Painting in these layers necessarily
1077         happens asynchronously, so the flash is occurring because of the async painting of the RenderFullScreen
1078         renderer's background color.  Since we know the RenderFullScreen does not otherwise paint its contents,
1079         we can add a special case in the RenderLayerBacking to set the GraphicsLayer contents to be the
1080         renderer's background color.  Fill in support for creating a contentLayer to contain the background 
1081         color inside GraphicsLayerCA.
1082
1083         * platform/graphics/GraphicsLayer.h:
1084         (WebCore::GraphicsLayer::setContentsToBackgroundColor): Renamed from setContentsBackgroundColor to match
1085             the other setContentsTo... functions.
1086         * platform/graphics/ca/GraphicsLayerCA.cpp:
1087         (WebCore::GraphicsLayerCA::setContentsToBackgroundColor): Added. Creates a contentsLayer to host the 
1088             background color.
1089         (WebCore::GraphicsLayerCA::updateLayerBackgroundColor): Removed a comment only.
1090         * platform/graphics/ca/GraphicsLayerCA.h:
1091         * rendering/RenderLayerBacking.cpp:
1092         (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration): Special case the RenderFullScreen
1093             renderer to call updateBackgroundColor.
1094         (WebCore::RenderLayerBacking::updateBackgroundColor): Added.
1095         (WebCore::RenderLayerBacking::containsPaintedContent): Tell the backing that the RenderFullScreen
1096             renderer does not paint its contents.
1097         * rendering/RenderLayerBacking.h:
1098
1099 2011-06-13  Tim Horton  <timothy_horton@apple.com>
1100
1101         Reviewed by Simon Fraser.
1102
1103         REGRESSION(87152): Crash on page with svg fonts
1104         https://bugs.webkit.org/show_bug.cgi?id=61556
1105
1106         We can't assume that the parent of a SVG-font-styled
1107         text node won't be an anonymous block.
1108
1109         Test: svg/text/text-font-anonymous-parent.xhtml
1110
1111         * rendering/svg/SVGTextRunRenderingContext.cpp:
1112         (WebCore::firstParentRendererForNonTextNode):
1113         (WebCore::SVGTextRunWalker::walk):
1114         (WebCore::floatWidthOfSubStringUsingSVGFont):
1115         (WebCore::SVGTextRunRenderingContext::drawTextUsingSVGFont):
1116
1117 2011-06-13  Tony Chang  <tony@chromium.org>
1118
1119         Reviewed by Adam Barth.
1120
1121         rename ENABLE_FLEXBOX to ENABLE_NEW_FLEXBOX
1122         https://bugs.webkit.org/show_bug.cgi?id=62545
1123
1124         * Configurations/FeatureDefines.xcconfig:
1125
1126 2011-06-13  Xan Lopez  <xlopez@igalia.com>
1127
1128         Reviewed by Martin Robinson.
1129
1130         Some distcheck fixes. Still broken, but this is moves us closer to
1131         the target.
1132
1133         * GNUmakefile.am: fix vpath syntax and add missing files to
1134         EXTRA_DIST.
1135         * GNUmakefile.list.am: add missing files and remove dead files.
1136         * bindings/gobject/GNUmakefile.am: fix comment.
1137
1138 2011-06-13  Noam Rosenthal  <noam.rosenthal@nokia.com>
1139
1140         Reviewed by Kenneth Rohde Christiansen.
1141
1142         Add layer factory to GraphicsLayer for creating non-default layer type.
1143         https://bugs.webkit.org/show_bug.cgi?id=61925
1144
1145         Use the new factory function in TextureMapper.
1146
1147         No new functionality so no new tests.
1148
1149         * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
1150         (WebCore::GraphicsLayer::create):
1151
1152 2011-06-13  Young Han Lee  <joybro@company100.net>
1153
1154         Reviewed by Kenneth Rohde Christiansen.
1155
1156         [Texmap][Qt] Accelerated animation is repeating as if its direction property is always 'alternate'.
1157         https://bugs.webkit.org/show_bug.cgi?id=62281
1158
1159         syncAnimations() has miscalculated a normalized progress value as if the animation always has alternate direction property.
1160
1161         Test: animations/animation-direction-normal.html
1162
1163         * platform/graphics/texmap/TextureMapperNode.cpp:
1164         (WebCore::TextureMapperNode::syncAnimations):
1165
1166 2011-06-13  Dirk Schulze  <krit@webkit.org>
1167
1168         Reviewed by Rob Buis.
1169
1170         SVG patternTransform not animatable
1171         https://bugs.webkit.org/show_bug.cgi?id=62538
1172
1173         SVG animation did not take attribute 'patternTransform' into account. Added support for combination of
1174         SVGPatternElement and attribute 'patternTransform' to SVGAnimateTransformElement.
1175
1176         Tests: svg/animations/animateTransform-pattern-transform.html
1177                svg/animations/animateTransform-transformable-transform.html
1178
1179         * svg/SVGAnimateTransformElement.cpp:
1180         (WebCore::transformListFor):
1181         (WebCore::SVGAnimateTransformElement::resetToBaseValue):
1182         (WebCore::SVGAnimateTransformElement::applyResultsToTarget):
1183
1184 2011-06-13  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1185
1186         Reviewed by Andreas Kling.
1187
1188         [Qt] JSC Bridge: convert QtConnectionObject to use JSC API
1189         https://bugs.webkit.org/show_bug.cgi?id=62330
1190
1191         This patch is based on the draft patch by Noam Rosenthal in bug 60842.
1192         Qt API autotests cover the bridge behavior and pass after this patch.
1193
1194         * bridge/qt/qt_runtime.h: Change QtConnectionObject to use JSC API types. In
1195         particular, we got rid of Strong<JSObject> members. Renamed some members and
1196         arguments to follow existing naming in QObject::connect().
1197
1198         * bridge/qt/qt_runtime.cpp:
1199         (JSC::Bindings::QtRuntimeConnectionMethod::call): Use a new helper function
1200         to create a connection, passing the ExecState* that will be used when the
1201         connection is activated (signal emitted). Use JSC API types when looking up
1202         the matching signal to disconnect.
1203
1204         (JSC::Bindings::QtConnectionObject::QtConnectionObject): Use JSC API to
1205         protect the receiver and receiverFunction from being garbage
1206         collected. Removed the ASSERT() since we don't hold ProtectedPtrs (in current
1207         code were Strong<>) anymore.
1208
1209         (JSC::Bindings::QtConnectionObject::~QtConnectionObject): Explain why is safe
1210         to use m_originalSender here. Unprotect values that we protected in constructor.
1211
1212         (JSC::Bindings::isJavaScriptFunction): Helper function to identify whether a
1213         JSObjectRef is a JS function (in contrast to a native function exposed to JS).
1214
1215         (JSC::Bindings::QtConnectionObject::execute):
1216         (JSC::Bindings::QtConnectionObject::match):
1217         Both updated to use JSC API when appliable. Note that convertQVariantToValue
1218         still returns JSC internal types, will be handled in a different patch.
1219
1220         (JSC::Bindings::QtConnectionObject::createWithInternalJSC):
1221         Convenince for the existing caller until it is converted to JSC as well.
1222
1223 2011-06-13  Carlos Garcia Campos  <cgarcia@igalia.com>
1224
1225         Reviewed by Martin Robinson.
1226
1227         [GTK] Add context menu support for Webkit2
1228         https://bugs.webkit.org/show_bug.cgi?id=54827
1229
1230         * platform/ContextMenuItem.h: Add gtkAction().
1231         * platform/gtk/ContextMenuGtk.cpp:
1232         (WebCore::ContextMenu::ContextMenu): Implement constructor that
1233         receives a platform menu.
1234         (WebCore::ContextMenu::setPlatformDescription): Make sure we don't
1235         destroy the menu if the new context menu is the current one.
1236         (WebCore::contextMenuItemVector): Implement this method to return
1237         the list of menu items in the given context menu, required by WebKit2.
1238         (WebCore::platformMenuDescription): Implement this method to
1239         return a platform menu for the given menu items.
1240         * platform/gtk/ContextMenuItemGtk.cpp:
1241         (WebCore::createPlatformMenuItemDescription): Helper function to
1242         create a platform context menu item.
1243         (WebCore::ContextMenuItem::ContextMenuItem): Use
1244         createPlatformMenuItemDescription().
1245         (WebCore::ContextMenuItem::title): Convert the title from UTF-8.
1246         (WebCore::ContextMenuItem::setTitle): Use gtkAction().
1247         (WebCore::ContextMenuItem::setSubMenu): Implement setSubMenu()
1248         that receives a list of items.
1249         (WebCore::ContextMenuItem::setChecked): Use gtkAction().
1250         (WebCore::ContextMenuItem::checked): Implement this, required by WebKit2.
1251         (WebCore::ContextMenuItem::enabled): Ditto.
1252         (WebCore::ContextMenuItem::setEnabled): Use gtkAction().
1253         (WebCore::ContextMenuItem::gtkAction): Return the GtkAction
1254         associated to the context menu item.
1255
1256 2011-06-13  Keishi Hattori  <keishi@webkit.org>
1257
1258         Sort WebCore.xcodeproj
1259
1260         Accomplished using sort-Xcode-project-file.
1261
1262         * WebCore.xcodeproj/project.pbxproj:
1263
1264 2011-06-12  Jer Noble  <jer.noble@apple.com>
1265
1266         Reviewed by Darin Adler.
1267
1268         REGRESSION (full screen video): Watch Again button is obscured after full screen playback ends at Apple trailers page
1269         https://bugs.webkit.org/show_bug.cgi?id=62507
1270
1271         No new tests; DRT would have to be modified to delay between receiving exitFullScreenForElement() and calling 
1272         webkitWillExitFullScreenForElement() to be able to test this.
1273
1274         If the full-screen element is removed, and webkitWillExitFullScreenForElement() is not called before
1275         fullScreenElementRemoved() returns, then ancestors of the full-screen element will not have their
1276         containsFullScreenElement property removed.  To protect against this, reset the property by calling 
1277         setContainsFullScreenElementRecursively() from within fullScreenElementRemoved().
1278
1279         * dom/Document.cpp:
1280         (WebCore::Document::fullScreenElementRemoved): Added call to setContainsFullScreenElementRecursively.
1281
1282 2011-06-12  Adam Barth  <abarth@webkit.org>
1283
1284         Reviewed by Alexey Proskuryakov.
1285
1286         Rename FrameLoaderClient::interruptForPolicyChangeError to use the past tense
1287         https://bugs.webkit.org/show_bug.cgi?id=62516
1288
1289         As requested by Alexey in https://bugs.webkit.org/show_bug.cgi?id=62510.
1290
1291         * loader/EmptyClients.h:
1292         (WebCore::EmptyFrameLoaderClient::interruptedForPolicyChangeError):
1293         * loader/FrameLoaderClient.h:
1294         * loader/MainResourceLoader.cpp:
1295         (WebCore::MainResourceLoader::interruptedForPolicyChangeError):
1296         (WebCore::MainResourceLoader::stopLoadingForPolicyChange):
1297         (WebCore::MainResourceLoader::continueAfterContentPolicy):
1298         * loader/MainResourceLoader.h:
1299
1300 2011-06-12  Hironori Bono  <hbono@chromium.org>
1301
1302         Reviewed by Hajime Morita.
1303
1304         Add null checks to HTMLTextAreaElement::removeSpellcheckRange().
1305         https://bugs.webkit.org/show_bug.cgi?id=62526
1306
1307         This change adds null checks to the following function to prevent crashes
1308         when calling removeSpellcheckRange() with null:
1309         HTMLTextAreaElement::removeSpellcheckRange(),
1310         HTMLInputElement::removeSpellcheckRange(), and
1311         HTMLDivElement::removeSpellcheckRange().
1312
1313         Test: editing/spelling/spellcheck-api-crash.html
1314
1315         * html/HTMLDivElement.cpp:
1316         (WebCore::HTMLDivElement::removeSpellcheckRange):
1317         * html/HTMLInputElement.cpp:
1318         (WebCore::HTMLInputElement::removeSpellcheckRange):
1319         * html/HTMLTextAreaElement.cpp:
1320         (WebCore::HTMLTextAreaElement::removeSpellcheckRange):
1321
1322 2011-06-12  Adam Barth  <abarth@webkit.org>
1323
1324         Reviewed by Darin Adler.
1325
1326         DocumentParser::appendBytes should use size_t for length instead of int
1327         https://bugs.webkit.org/show_bug.cgi?id=62508
1328
1329         size_t is the proper type for distances in memory, especially on 64 bit
1330         machines.
1331
1332         * dom/DecodedDataDocumentParser.cpp:
1333         (WebCore::DecodedDataDocumentParser::appendBytes):
1334         * dom/DecodedDataDocumentParser.h:
1335         * dom/DocumentParser.h:
1336         * html/ImageDocument.cpp:
1337         (WebCore::ImageDocumentParser::appendBytes):
1338         * html/MediaDocument.cpp:
1339         (WebCore::MediaDocumentParser::appendBytes):
1340         * html/PluginDocument.cpp:
1341         (WebCore::PluginDocumentParser::appendBytes):
1342         * loader/SinkDocument.cpp:
1343         (WebCore::SinkDocumentParser::appendBytes):
1344
1345 2011-06-12  Adam Barth  <abarth@webkit.org>
1346
1347         Reviewed by Eric Seidel.
1348
1349         Remove FrameLoader::isProcessingUserGesture
1350         https://bugs.webkit.org/show_bug.cgi?id=62519
1351
1352         This function is a remnant of the old user gesture design, which
1353         involved per-frame state stored on FrameLoader.  Now that we're using
1354         static state, we don't need this function anymore.
1355
1356         This function used to check whether JavaScript was enabled for the
1357         top-level frame, but that check doesn't make any sense (like much of
1358         the old user gesture code).
1359
1360         * WebCore.exp.in:
1361         * html/HTMLMediaElement.cpp:
1362         (WebCore::HTMLMediaElement::processingUserGesture):
1363         * loader/FrameLoader.cpp:
1364         (WebCore::FrameLoader::submitForm):
1365         * loader/FrameLoader.h:
1366         * rendering/RenderFileUploadControl.cpp:
1367         (WebCore::RenderFileUploadControl::click):
1368
1369 2011-06-12  Adam Barth  <abarth@webkit.org>
1370
1371         Fix fullscreen/full-screen-iframe-legacy.html.
1372
1373         * html/HTMLVideoElement.idl:
1374
1375 2011-06-12  Adam Barth  <abarth@webkit.org>
1376
1377         Reviewed by Alexey Proskuryakov.
1378
1379         Remove trival "forward-to-client" member functions from FrameLoader
1380         https://bugs.webkit.org/show_bug.cgi?id=62510
1381
1382         Originally, FrameLoader was supposed to abstract FrameLoaderClient, but
1383         we lost that battle log ago.  Nowadays, it's easier if folks just call
1384         into FrameLoaderClient directly.  Many of these functions have direct
1385         callers already anyway.
1386
1387         * WebCore.exp.in:
1388         * html/HTMLMediaElement.cpp:
1389         (WebCore::HTMLMediaElement::createRenderer):
1390         (WebCore::HTMLMediaElement::attach):
1391         * loader/DocumentLoader.cpp:
1392         (WebCore::DocumentLoader::setRequest):
1393         (WebCore::DocumentLoader::setMainDocumentError):
1394         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
1395         * loader/FrameLoader.cpp:
1396         (WebCore::FrameLoader::didFirstLayout):
1397         * loader/FrameLoader.h:
1398             - cancelledError is slightly more delicate, so I'm going to move it in
1399               a separate patch.
1400         * loader/MainResourceLoader.cpp:
1401         (WebCore::MainResourceLoader::interruptForPolicyChangeError):
1402         (WebCore::MainResourceLoader::stopLoadingForPolicyChange):
1403         (WebCore::MainResourceLoader::continueAfterContentPolicy):
1404         (WebCore::MainResourceLoader::handleEmptyLoad):
1405         (WebCore::MainResourceLoader::loadNow):
1406         * loader/MainResourceLoader.h:
1407         * loader/NetscapePlugInStreamLoader.cpp:
1408         (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
1409         * loader/PingLoader.cpp:
1410         (WebCore::PingLoader::PingLoader):
1411         * loader/PolicyChecker.cpp:
1412         (WebCore::PolicyChecker::continueAfterNavigationPolicy):
1413         * loader/ResourceLoader.cpp:
1414         (WebCore::ResourceLoader::blockedError):
1415         (WebCore::ResourceLoader::cannotShowURLError):
1416         (WebCore::ResourceLoader::shouldUseCredentialStorage):
1417         (WebCore::ResourceLoader::canAuthenticateAgainstProtectionSpace):
1418         * page/ContextMenuController.cpp:
1419         (WebCore::ContextMenuController::populate):
1420
1421 2011-06-12  Dan Bernstein  <mitz@apple.com>
1422
1423         Reviewed by Darin Adler.
1424
1425         <rdar://problem/9513180> REGRESSION (r84166): recalcStyle for display:inline to display:none transition has complexity N^2 where N is the number of child Text nodes
1426         https://bugs.webkit.org/show_bug.cgi?id=61557
1427
1428         Replaced the fix for bug 58500 with a refined version.
1429
1430         * rendering/RenderText.cpp:
1431         (WebCore::RenderText::clippedOverflowRectForRepaint): Use the containing block unless it is
1432         across a layer boundary.
1433
1434 2011-06-12  Adam Barth  <abarth@webkit.org>
1435
1436         Reviewed by Andreas Kling.
1437
1438         Minor user-gesture related cleanup
1439         https://bugs.webkit.org/show_bug.cgi?id=62511
1440
1441         In reading the user gesture code, I noticed that these lines of code
1442         should be deleted because they don't do anything.
1443
1444         * bindings/v8/NPV8Object.cpp:
1445         * html/HTMLAnchorElement.cpp:
1446         * html/HTMLVideoElement.idl:
1447
1448 2011-06-11  Nikolas Zimmermann  <nzimmermann@rim.com>
1449
1450         Reviewed by Dirk Schulze.
1451
1452         Add TextRun charactersLength member
1453         https://bugs.webkit.org/show_bug.cgi?id=62501
1454
1455         Preparation patch 2: Propagate the maximum length of the characters buffer the TextRun operates on, even when we're only measuring a substring.
1456         For example: In RenderText when we're measuring 'len' characters starting from "text()->characters() + start", there's a portion
1457         of "textLength() - start" characters that we're not processing. In order to support ligatures when integrating SVG Fonts
1458         within the GlyphPage concept, we need this extra information, to lookup ligatures even when single chars are measured.
1459         If a font defines an eg "ffl" ligature, and we're measuring the "f" of "ffl", it shall looukp the "ffl" glyph from the font,
1460         and skip the next two characters (this will be done in WidthIterator).
1461
1462         This doesn't yet affect any test, the new SVG Fonts code is not merged yet, this is the preparaion patch 2.
1463
1464         * platform/graphics/Font.h: Add yet-unused "const TextRun&" parameter to drawGlyphBuffer/drawEmphasisMarks.
1465         * platform/graphics/FontFastPath.cpp: Ditto. This parameter will be used to looukp the TextRunRenderingContext in a follow-up patch.
1466         (WebCore::Font::drawSimpleText):
1467         (WebCore::Font::drawEmphasisMarksForSimpleText):
1468         (WebCore::Font::drawGlyphBuffer):
1469         (WebCore::Font::drawEmphasisMarks):
1470         * platform/graphics/TextRun.h: Add "int m_charactersLength", similar to "int m_len". It denotes the maximum length of the characters buffer
1471                                        that we're holding. It defaults to the passed "len" value, but is overriden by explicit setCharactersLength calls.
1472         (WebCore::TextRun::TextRun):
1473         (WebCore::TextRun::charactersLength):
1474         (WebCore::TextRun::setCharactersLength):
1475         * platform/graphics/mac/FontComplexTextMac.cpp: Pass TextRun do drawGlyphBuffer/drawEmphasisMarks.
1476         (WebCore::Font::drawComplexText):
1477         (WebCore::Font::drawEmphasisMarksForComplexText):
1478         * platform/graphics/win/FontWin.cpp: Ditto.
1479         (WebCore::Font::drawComplexText):
1480         (WebCore::Font::drawEmphasisMarksForComplexText):
1481         * platform/graphics/wx/FontWx.cpp: Ditto.
1482         (WebCore::Font::drawComplexText):
1483         (WebCore::Font::drawEmphasisMarksForComplexText):
1484         * rendering/InlineTextBox.cpp: Call setCharactersLength on the processed TextRun.
1485         (WebCore::InlineTextBox::constructTextRun):
1486         * rendering/RenderBlockLineLayout.cpp: Ditto.
1487         (WebCore::textWidth):
1488         (WebCore::tryHyphenating):
1489         * rendering/RenderText.cpp: Ditto.
1490         (WebCore::RenderText::widthFromCache):
1491         (WebCore::RenderText::computePreferredLogicalWidths):
1492         (WebCore::RenderText::width):
1493         * rendering/svg/SVGInlineTextBox.cpp: Ditto.
1494         (WebCore::SVGInlineTextBox::constructTextRun):
1495
1496 2011-06-12  Robert Hogan  <robert@webkit.org>
1497
1498         Reviewed by Andreas Kling.
1499
1500         [Qt] Fix methods.html and methods-lower-case.html
1501         https://bugs.webkit.org/show_bug.cgi?id=62221
1502
1503         * platform/network/qt/QNetworkReplyHandler.cpp:
1504         (WebCore::QNetworkReplyHandler::clearContentsHeaders): Refactor code from sendNetworkRequest
1505         (WebCore::QNetworkReplyHandler::getIODevice): ditto
1506         (WebCore::QNetworkReplyHandler::sendNetworkRequest):
1507             - Remove ContentType and ContentLength headers from GET, DELETE and HEAD requests since
1508               we do not send data with any of these requests.
1509             - If a custom HTTP operation contains data, send it.
1510         * platform/network/qt/QNetworkReplyHandler.h:
1511
1512 2011-06-11  Michael Saboff  <msaboff@apple.com>
1513
1514         Reviewed by James Robinson.
1515
1516         REGRESSION(88260): 10-50% performance regression across many page cyclers
1517         https://bugs.webkit.org/show_bug.cgi?id=62349
1518
1519         Made CHROMIUM platform specific values for cMaxInactiveFontData and
1520         cTargetInactiveFontData to mitigate the current performance issue on Chromium
1521         page cycler tests.  Made the chromium value for cMaxInactiveFontData 250 based
1522         on recommendation from James Robinson.  Changed cTargetInactiveFontData to 200
1523         so that 50 inactive fonts will be cleaned up at a time.
1524
1525         Change made to address existing Chromium performance test regression.
1526
1527         * platform/graphics/FontCache.cpp:
1528
1529 2011-06-11  Adam Barth  <abarth@webkit.org>
1530
1531         Reviewed by Darin Adler.
1532
1533         Remove unnecessary strlen from DocumentWriter
1534         https://bugs.webkit.org/show_bug.cgi?id=62505
1535
1536         This ugly piece of code appears not to be needed.  Rejoice.
1537
1538         * WebCore.exp.in:
1539         * loader/DocumentLoader.cpp:
1540         (WebCore::DocumentLoader::commitData):
1541         * loader/DocumentLoader.h:
1542         * loader/DocumentWriter.cpp:
1543         (WebCore::DocumentWriter::addData):
1544         * loader/DocumentWriter.h:
1545
1546 2011-06-11  Adam Barth  <abarth@webkit.org>
1547
1548         Reviewed by Darin Adler.
1549
1550         DocumentParser::appendBytes shouldn't have a "flush" boolean parameter
1551         https://bugs.webkit.org/show_bug.cgi?id=62499
1552
1553         This patch removes the "flush" Boolean parameter from
1554         DocumentParser::appendBytes in favor of a new flush method.  This makes
1555         some code in DocumentWriter look less ridiculous.
1556
1557         There's still lots of on contorting to do here, but it's a start.
1558
1559         * dom/DecodedDataDocumentParser.cpp:
1560         (WebCore::DecodedDataDocumentParser::appendBytes):
1561         (WebCore::DecodedDataDocumentParser::flush):
1562         * dom/DecodedDataDocumentParser.h:
1563         * dom/DocumentParser.h:
1564         * dom/RawDataDocumentParser.h:
1565         (WebCore::RawDataDocumentParser::flush):
1566         * html/ImageDocument.cpp:
1567         (WebCore::ImageDocumentParser::appendBytes):
1568         * html/MediaDocument.cpp:
1569         (WebCore::MediaDocumentParser::appendBytes):
1570         * html/PluginDocument.cpp:
1571         (WebCore::PluginDocumentParser::appendBytes):
1572         * loader/DocumentWriter.cpp:
1573         (WebCore::DocumentWriter::reportDataReceived):
1574         (WebCore::DocumentWriter::addData):
1575         (WebCore::DocumentWriter::endIfNotLoadingMainResource):
1576         * loader/DocumentWriter.h:
1577         * loader/SinkDocument.cpp:
1578         (WebCore::SinkDocumentParser::appendBytes):
1579
1580 2011-06-11  Dimitri Glazkov  <dglazkov@chromium.org>
1581
1582         Unreviewed, rolling out r88569.
1583         http://trac.webkit.org/changeset/88569
1584         https://bugs.webkit.org/show_bug.cgi?id=62398
1585
1586         Broke Chromium browser test:
1587         IndexedDBBrowserTestWithGCExposed.DatabaseCallbacksTest
1588
1589         * storage/IDBFactory.idl:
1590
1591 2011-06-11  Dimitri Glazkov  <dglazkov@chromium.org>
1592
1593         Unreviewed, rolling out r88565.
1594         http://trac.webkit.org/changeset/88565
1595         https://bugs.webkit.org/show_bug.cgi?id=62401
1596
1597         Broke Chromium browser test:
1598         IndexedDBBrowserTestWithGCExposed.DatabaseCallbacksTest
1599
1600         * storage/IDBDatabase.cpp:
1601         (WebCore::IDBDatabase::setVersion):
1602         * storage/IDBDatabase.idl:
1603
1604 2011-06-10  Abhishek Arya  <inferno@chromium.org>
1605
1606         Reviewed by Simon Fraser.
1607
1608         Null parent element sheet pointers in CSSMutableStyleDeclaration consumers
1609         when removed from document, set them when reinserted into document.
1610         https://bugs.webkit.org/show_bug.cgi?id=62230
1611
1612         When a HTMLBodyElement, StyledElement are removed from document,
1613         we didn't clear out the parent pointers from their link, style declarations.
1614         These parent pointers pointed to the document's element sheet which will
1615         get removed when document is getting destroyed. It does make sense to
1616         clear out parent pointers when we are getting removed from document and
1617         readd them when we get inserted again.
1618
1619         Tests: fast/dom/body-link-decl-parent-crash.html
1620                fast/dom/styled-inline-style-decl-parent-crash.html
1621
1622         * dom/StyledElement.cpp:
1623         (WebCore::StyledElement::insertedIntoDocument):
1624         (WebCore::StyledElement::removedFromDocument):
1625         * dom/StyledElement.h:
1626         * html/HTMLBodyElement.cpp:
1627         (WebCore::HTMLBodyElement::parseMappedAttribute):
1628         (WebCore::HTMLBodyElement::insertedIntoDocument):
1629         (WebCore::HTMLBodyElement::removedFromDocument):
1630         (WebCore::HTMLBodyElement::didMoveToNewOwnerDocument):
1631         * html/HTMLBodyElement.h:
1632
1633 2011-06-10  Adam Barth  <abarth@webkit.org>
1634
1635         Remove bogus ASSERTs.  These ASSERTs used to be correct before I
1636         changed DocumentWriter to put the onus for ignoring empty writes onto
1637         the parser.
1638
1639         This patch should stop these test from triggering ASSERTs:
1640
1641         plugins/plugin-document-back-forward.html
1642         plugins/return-error-from-new-stream-callback-in-full-frame-plugin.html
1643         userscripts/user-script-plugin-document.html
1644
1645         * html/MediaDocument.cpp:
1646         (WebCore::MediaDocumentParser::appendBytes):
1647         * html/PluginDocument.cpp:
1648         (WebCore::PluginDocumentParser::appendBytes):
1649
1650 2011-06-09  Jer Noble  <jer.noble@apple.com>
1651
1652         Reviewed by Darin Adler.
1653
1654         REGRESSION: End of apple.com video in full-screen mode leads to unusable page.
1655         https://bugs.webkit.org/show_bug.cgi?id=62411
1656         
1657         Test: fullscreen/full-screen-remove-ancestor-after.html
1658
1659         The placeholder for RenderFullScreen was being created as a non-anonymous object, which led
1660         to the document's renderer being set to 0 when the placeholder was removed due to its parent
1661         being removed. Setting the placeholder to be anonymous, however, means that it will be
1662         coalesced with sibling anonymous blocks, so added the RenderFullScreenPlaceholder to the
1663         list of anonymous objects that are not considered anonymous blocks, to avoid the placeholder
1664         being so coalesced. To do so, made the placeholder object a true subclass, and add and
1665         override its destroy() function to notify the RenderFullScreen object that it has been
1666         destroyed.
1667
1668         * rendering/RenderFullScreen.cpp:
1669         (RenderFullScreenPlaceholder::RenderFullScreenPlaceholder): Added.
1670         (RenderFullScreenPlaceholder::~RenderFullScreenPlaceholder): Added.
1671         (RenderFullScreenPlaceholder::isRenderFullScreenPlaceholder): Added.
1672         (RenderFullScreenPlaceholder::destroy): Notify the owner renderer that its placeholder
1673             has been destroyed.
1674         (RenderFullScreen::destroy): Assert that the m_placeholder ivar is 0 after destroying it.
1675         (RenderFullScreen::setPlaceholder): Added.
1676         (RenderFullScreen::createPlaceholder): Do not make the placeholder anonymous.
1677         * rendering/RenderFullScreen.h:
1678         * rendering/RenderObject.h:
1679         (WebCore::RenderObject::isRenderFullScreenPlaceholder): Added.
1680         (WebCore::RenderObject::isAnonymousBlock): Added the placeholder class to the list of
1681             objects which are not anonymous blocks.
1682
1683 2011-06-10  Gavin Barraclough  <barraclough@apple.com>
1684
1685         Reviewed by Sam Weinig.
1686
1687         https://bugs.webkit.org/show_bug.cgi?id=16777
1688         Eliminate JSC::NaN and JSC::Inf
1689
1690         There's no good reason for -K-J-S- JSC to have its own NAN and infinity constants.
1691         The ones in std::numeric_limits are perfectly good.
1692         Remove JSC::Inf, JSC::NaN, switch some cases of (isnan || isinf) to !isfinite.
1693
1694         * bindings/js/JSDataViewCustom.cpp:
1695         (WebCore::getDataViewMember):
1696
1697 2011-06-10  James Simonsen  <simonjam@chromium.org>
1698
1699         Reviewed by Eric Seidel.
1700
1701         <script> inside <svg> should be executed
1702         https://bugs.webkit.org/show_bug.cgi?id=62412
1703
1704         Tests: svg/in-html/script-external.html
1705                svg/in-html/script-nested.html
1706                svg/in-html/script-write.html
1707                svg/in-html/script.html
1708
1709         * html/parser/HTMLTreeBuilder.cpp:
1710         (WebCore::HTMLTreeBuilder::processEndTag):
1711
1712 2011-06-10  Adam Barth  <abarth@webkit.org>
1713
1714         Reviewed by Darin Adler.
1715
1716         Script-created parsers should ignore data from the network
1717         https://bugs.webkit.org/show_bug.cgi?id=62336
1718
1719         If the network packet boundaries line up just right, we can end up
1720         feeding network data to a parser created by document.write (or
1721         document.open).  That's incorrect.
1722
1723         This patch causes DocumentWriter to grab hold of the original parser
1724         and direct all input to that parser.
1725
1726         Test: fast/parser/document-write-ignores-later-network-bytes.html
1727
1728         * dom/Document.cpp:
1729         (WebCore::Document::explicitClose):
1730         * loader/DocumentWriter.cpp:
1731         (WebCore::DocumentWriter::begin):
1732         (WebCore::DocumentWriter::addData):
1733         (WebCore::DocumentWriter::endIfNotLoadingMainResource):
1734         (WebCore::DocumentWriter::setDocumentWasLoadedAsPartOfNavigation):
1735         * loader/DocumentWriter.h:
1736
1737 2011-06-10  Simon Fraser  <simon.fraser@apple.com>
1738
1739         Reviewed by Dan Bernstein.
1740
1741         Keep overlap testing logic until real 3d transforms are being used
1742         https://bugs.webkit.org/show_bug.cgi?id=49857
1743         
1744         For pages that use the translateZ(0) hack to force compositing layers, it's
1745         advantageous to keep overlap testing, to avoid putting too many other
1746         elements into layers.
1747         
1748         Only turn off overlap testing if non-identity 3D transforms are used.
1749
1750         Tests: compositing/layer-creation/rotate3d-overlap.html
1751                compositing/layer-creation/translatez-overlap.html
1752
1753         * rendering/RenderLayerCompositor.cpp:
1754         (WebCore::RenderLayerCompositor::updateBacking):
1755         (WebCore::RenderLayerCompositor::hasNonIdentity3DTransform):
1756         * rendering/RenderLayerCompositor.h:
1757
1758 2011-06-10  David Levin  <levin@chromium.org>
1759
1760         Reviewed by Dmitry Titov.
1761
1762         Web Worker fails to fire error event when a resource fetch fails.
1763         https://bugs.webkit.org/show_bug.cgi?id=62475
1764
1765         Test: http/tests/workers/worker-workerScriptNotThere.html
1766
1767         * workers/WorkerScriptLoader.cpp:
1768         (WebCore::WorkerScriptLoader::didFinishLoading): Ensure that
1769         the client is notified of the error when it happens during loading.
1770
1771 2011-06-10  David Levin  <levin@chromium.org>
1772
1773         Reviewed by Dmitry Titov.
1774
1775         Fetching a Worker with url that isn't allowed from a file based test causes DRT to crash.
1776         https://bugs.webkit.org/show_bug.cgi?id=62469
1777
1778         Test: fast/workers/worker-crash-with-invalid-location.html
1779
1780         * workers/DefaultSharedWorkerRepository.cpp:
1781         (WebCore::SharedWorkerScriptLoader::load): Changed to using the RefCounted version of WorkerScriptLoader.
1782         * workers/Worker.cpp:
1783         (WebCore::Worker::create): Ditto.
1784         * workers/Worker.h: Ditto.
1785         * workers/WorkerContext.cpp:
1786         (WebCore::WorkerContext::importScripts):  Ditto.
1787         * workers/WorkerScriptLoader.cpp:
1788         (WebCore::WorkerScriptLoader::~WorkerScriptLoader): Created to
1789         allow removing some header includes in WorkerScriptLoader.h.
1790         (WebCore::WorkerScriptLoader::loadAsynchronously): Fix the ordering
1791         of setPendingActivity and keep WorkerScriptLoader alive during a
1792         potential callback.
1793         * workers/WorkerScriptLoader.h: Made this RefCounted to allow for
1794         keeping it alive during callbacks. Also, removed unnecessary header
1795         inclusions (and added a destructor to facilitate that).
1796         (WebCore::WorkerScriptLoader::create):
1797
1798 2011-06-10  Alok Priyadarshi  <alokp@chromium.org>
1799
1800         Reviewed by James Robinson.
1801
1802         [chromium] Top portion of page is rendered messed up with accelerated drawing
1803         https://bugs.webkit.org/show_bug.cgi?id=62484
1804
1805         Fixed the math in flipping the texture from bottom-up to top-down.
1806         Test: compositing/repaint/shrink-layer.html (existing)
1807
1808         * platform/graphics/chromium/LayerTilerChromium.cpp:
1809         (WebCore::LayerTilerChromium::draw):
1810
1811 2011-06-10  Tony Chang  <tony@chromium.org>
1812
1813         Reviewed by Ojan Vafai.
1814
1815         add a compile guard ENABLE(FLEXBOX)
1816         https://bugs.webkit.org/show_bug.cgi?id=62049
1817
1818         * Configurations/FeatureDefines.xcconfig:
1819
1820 2011-06-10  Sam Weinig  <sam@webkit.org>
1821
1822         Roll out r88568. It is not the right fix for the problem.
1823
1824         * loader/appcache/ApplicationCacheHost.cpp:
1825         (WebCore::ApplicationCacheHost::isApplicationCacheEnabled):
1826
1827 2011-06-10  Mark Rowe  <mrowe@apple.com>
1828
1829         Reviewed by Dimitri Glazkov.
1830
1831         <rdar://problem/9562114> Fix DumpRenderTree build for production configuration.
1832
1833         Rename the built WebCoreTestSupport dylib to libWebCoreTestSupport.dylib so
1834         that it can be found via the library search path rather than requiring an
1835         absolute path be passed to the linker.
1836
1837         Install the library and its associated header file in a more appropriate location
1838         for the production configuration.
1839
1840         * Configurations/WebCoreTestSupport.xcconfig:
1841
1842 2011-06-10  Simon Fraser  <simon.fraser@apple.com>
1843
1844         Reviewed by Dave Hyatt.
1845
1846         Add a scheduleSetNeedsStyleRecalc() method to ContainerNode for use by RenderLayerCompositor
1847         https://bugs.webkit.org/show_bug.cgi?id=62471
1848
1849         RenderLayerCompositor had some code that did a setNeedsStyleRecalc(), but
1850         in a way that was safe to call during existing style recalc or layout.
1851         
1852         Move this code to ContainerElement so it can be called elsewhere.
1853         Also add a param to the node callback so we can pass the style change type.
1854
1855         * dom/ContainerNode.cpp:
1856         (WebCore::ContainerNode::queuePostAttachCallback):
1857         (WebCore::ContainerNode::dispatchPostAttachCallbacks):
1858         (WebCore::needsStyleRecalcCallback):
1859         (WebCore::ContainerNode::scheduleSetNeedsStyleRecalc):
1860         * dom/ContainerNode.h:
1861         * dom/Node.h:
1862         (WebCore::Node::scheduleSetNeedsStyleRecalc):
1863         * html/HTMLFormControlElement.cpp:
1864         (WebCore::focusPostAttach):
1865         (WebCore::updateFromElementCallback):
1866         * html/HTMLPlugInImageElement.cpp:
1867         (WebCore::HTMLPlugInImageElement::updateWidgetCallback):
1868         * html/HTMLPlugInImageElement.h:
1869         * rendering/RenderLayerCompositor.cpp:
1870         (WebCore::RenderLayerCompositor::attachRootPlatformLayer):
1871         (WebCore::RenderLayerCompositor::detachRootPlatformLayer):
1872         (WebCore::RenderLayerCompositor::notifyIFramesOfCompositingChange):
1873         * rendering/RenderLayerCompositor.h:
1874         * svg/SVGUseElement.cpp:
1875         (WebCore::updateFromElementCallback):
1876
1877 2011-06-10  Mark Pilgrim  <pilgrim@chromium.org>
1878
1879         Reviewed by Tony Chang.
1880
1881         IndexedDB: indexedDB.open() name argument is required
1882         https://bugs.webkit.org/show_bug.cgi?id=62398
1883
1884         Test: storage/indexeddb/database-name-undefined.html
1885
1886         * storage/IDBFactory.idl: use appropriate IDL magic to force undefined values to null, so we handle missing arguments as well as null arguments
1887
1888 2011-06-10  Sam Weinig  <sam@webkit.org>
1889
1890         Reviewed by Beth Dakin.
1891
1892         Common crash in ApplicationCacheHost::isApplicationCacheEnabled
1893         <rdar://problem/9328684>
1894
1895         * loader/appcache/ApplicationCacheHost.cpp:
1896         (WebCore::ApplicationCacheHost::isApplicationCacheEnabled):
1897         Speculative fix for a null frame on ApplicationCacheHost's DocumentLoader.
1898
1899 2011-06-10  Adam Barth  <abarth@webkit.org>
1900
1901         Reviewed by Eric Seidel.
1902
1903         Remove Document::finishParsing
1904         https://bugs.webkit.org/show_bug.cgi?id=62474
1905
1906         This function appears to exist only to confuse and befuddle us.  This
1907         patch prepares for DocumentWriter to grab hold of the parser.
1908
1909         This patch removes one of the print statements from
1910         INSTRUMENT_LAYOUT_SCHEDULING, but I'm not sure
1911         INSTRUMENT_LAYOUT_SCHEDULING works anymore anyway.
1912
1913         * dom/Document.cpp:
1914         * dom/Document.h:
1915         * dom/XMLDocumentParser.cpp:
1916         (WebCore::XMLDocumentParser::finish):
1917         * html/parser/HTMLDocumentParser.cpp:
1918         (WebCore::HTMLDocumentParser::finish):
1919         * loader/DocumentWriter.cpp:
1920         (WebCore::DocumentWriter::addData):
1921         (WebCore::DocumentWriter::endIfNotLoadingMainResource):
1922         * loader/FrameLoader.cpp:
1923         (WebCore::FrameLoader::stop):
1924
1925 2011-06-10  Mark Pilgrim  <pilgrim@chromium.org>
1926
1927         Reviewed by Tony Chang.
1928
1929         IndexedDB: setVersion() version argument is required
1930         https://bugs.webkit.org/show_bug.cgi?id=62401
1931
1932         Test: storage/indexeddb/setVersion-undefined.html
1933
1934         * storage/IDBDatabase.cpp:
1935         (WebCore::IDBDatabase::setVersion): check for null version
1936         * storage/IDBDatabase.idl: add IDL magic to force undefined to null so we can handle both missing and null arguments
1937
1938 2011-06-10  Simon Fraser  <simon.fraser@apple.com>
1939
1940         Reviewed by Dan Bernstein.
1941
1942         Null-check the layer owner again when painting layers
1943         https://bugs.webkit.org/show_bug.cgi?id=62473
1944
1945         Speculative fix for a crash that occurs when the layer's owner
1946         gets destroyed during painting.
1947
1948         * platform/graphics/mac/WebLayer.mm:
1949         (drawLayerContents):
1950
1951 2011-06-08  Robert Hogan  <robert@webkit.org>
1952
1953         Reviewed by Andreas Kling.
1954
1955         [Qt] Lighten the --no-svg build a little
1956         https://bugs.webkit.org/show_bug.cgi?id=62314
1957
1958         Only generate source from SVG*.idl if the build is svg-enabled.
1959
1960         * CodeGenerators.pri:
1961
1962 2011-06-10  Nikolas Zimmermann  <nzimmermann@rim.com>
1963
1964         Reviewed by Rob Buis.
1965
1966         Integrate SVG Fonts within GlyphPage concept, removing the special SVG code paths from Font, making it possible to reuse the simple text code path for SVG Fonts
1967         https://bugs.webkit.org/show_bug.cgi?id=59085
1968
1969         Add glyph table to SVGFontElement mapping between SVGGlyph <-> Glyph
1970         https://bugs.webkit.org/show_bug.cgi?id=62441
1971
1972         Preparation patch 1: Introduce the internal glyph table in SVGGlyphMap that will be used to identify each
1973         SVGGlyph identifier with a Glyph (which is just an ushort). It will be used by follow-up patches.
1974
1975         Doesn't affect any test so far.
1976
1977         * platform/graphics/SVGGlyph.h:
1978         (WebCore::SVGGlyph::SVGGlyph):
1979         (WebCore::SVGGlyph::operator==):
1980         * rendering/svg/SVGTextRunRenderingContext.cpp:
1981         (WebCore::SVGTextRunWalker::walk):
1982         * svg/SVGFontData.cpp:
1983         (WebCore::SVGFontData::initializeFontData):
1984         * svg/SVGFontElement.cpp:
1985         (WebCore::SVGFontElement::SVGFontElement):
1986         (WebCore::SVGFontElement::registerLigaturesInGlyphCache):
1987         (WebCore::SVGFontElement::ensureGlyphCache):
1988         (WebCore::kerningForPairOfStringsAndGlyphs):
1989         (WebCore::SVGFontElement::horizontalKerningForPairOfStringsAndGlyphs):
1990         (WebCore::SVGFontElement::verticalKerningForPairOfStringsAndGlyphs):
1991         (WebCore::SVGFontElement::collectGlyphsForString):
1992         (WebCore::SVGFontElement::collectGlyphsForGlyphName):
1993         (WebCore::SVGFontElement::svgGlyphForGlyph):
1994         (WebCore::SVGFontElement::missingGlyph):
1995         * svg/SVGFontElement.h:
1996         (WebCore::SVGKerningPair::SVGKerningPair):
1997         * svg/SVGGlyphMap.h:
1998         (WebCore::SVGGlyphMap::addGlyphByUnicodeString):
1999         (WebCore::SVGGlyphMap::addGlyphByName):
2000         (WebCore::SVGGlyphMap::appendToGlyphTable):
2001         (WebCore::SVGGlyphMap::collectGlyphsForString):
2002         (WebCore::SVGGlyphMap::clear):
2003         (WebCore::SVGGlyphMap::svgGlyphForGlyph):
2004         (WebCore::SVGGlyphMap::glyphIdentifierForGlyphName):
2005
2006 2011-06-10  Emil A Eklund  <eae@chromium.org>
2007
2008         Reviewed by Eric Seidel.
2009
2010         Regression r85573: Blank pages appear at the end of some wikipedia documents.
2011         https://bugs.webkit.org/show_bug.cgi?id=62343
2012
2013         Fix regression caused by r85573. Cached document size not updated after layout.
2014
2015         Test: printing/page-count-relayout-shrink.html
2016
2017         * page/FrameView.cpp:
2018         (WebCore::FrameView::forceLayoutForPagination):
2019
2020 2011-06-10  Rob Buis  <rbuis@rim.com>
2021
2022         Reviewed by Nikolas Zimmermann.
2023
2024         amation event handling broken: focusin
2025         https://bugs.webkit.org/show_bug.cgi?id=12894
2026
2027         focusin, focusout, activate not implemented in SVG
2028         https://bugs.webkit.org/show_bug.cgi?id=40545
2029
2030         Make elements that should support GraphicalEventAttribute handle focussing, since focusin, focusout is part of that:
2031
2032         http://www.w3.org/TR/SVG11/intro.html#TermGraphicalEventAttribute
2033
2034         Match Opera behaviour ; elements that support GraphicalEventAttribute can receive visual mouse focus when having either a focusin or focusout event handler. Elements that support GraphicalEventAttribute can receive visual keyboard focus when having either a focusin or focusout event handler. Keyboard focus does not advance to SVG elements that are not focusable at the time.
2035
2036         Tests: svg/custom/focus-event-handling-keyboard.xhtml
2037                svg/custom/focus-event-handling.xhtml
2038
2039         * rendering/svg/SVGRenderSupport.cpp:
2040         (WebCore::SVGRenderSupport::computeRectForRepaint):
2041         * svg/SVGCircleElement.h:
2042         (WebCore::SVGCircleElement::supportsFocus):
2043         * svg/SVGEllipseElement.h:
2044         (WebCore::SVGEllipseElement::supportsFocus):
2045         * svg/SVGGElement.h:
2046         (WebCore::SVGGElement::supportsFocus):
2047         * svg/SVGImageElement.h:
2048         (WebCore::SVGImageElement::supportsFocus):
2049         * svg/SVGLineElement.h:
2050         (WebCore::SVGLineElement::supportsFocus):
2051         * svg/SVGPathElement.h:
2052         (WebCore::SVGPathElement::supportsFocus):
2053         * svg/SVGPolyElement.h:
2054         (WebCore::SVGPolyElement::supportsFocus):
2055         * svg/SVGRectElement.h:
2056         (WebCore::SVGRectElement::supportsFocus):
2057         * svg/SVGSVGElement.h:
2058         (WebCore::SVGSVGElement::supportsFocus):
2059         * svg/SVGStyledElement.cpp:
2060         (WebCore::SVGStyledElement::isMouseFocusable):
2061         (WebCore::SVGStyledElement::isKeyboardFocusable):
2062         * svg/SVGStyledElement.h:
2063         * svg/SVGSwitchElement.h:
2064         (WebCore::SVGSwitchElement::supportsFocus):
2065         * svg/SVGSymbolElement.h:
2066         (WebCore::SVGSymbolElement::supportsFocus):
2067         * svg/SVGTextElement.h:
2068         (WebCore::SVGTextElement::supportsFocus):
2069         * svg/SVGUseElement.h:
2070         (WebCore::SVGUseElement::supportsFocus):
2071
2072 2011-06-10  Luke Macpherson   <macpherson@chromium.org>
2073
2074         Reviewed by Eric Seidel.
2075
2076         Clean up CSSPrimitiveValue::computeLength*
2077         https://bugs.webkit.org/show_bug.cgi?id=61612
2078
2079         No new tests as no functionality changed.
2080
2081         * css/CSSGradientValue.cpp:
2082         Use new computeLength functions.
2083         * css/CSSPrimitiveValue.cpp:
2084         (WebCore::CSSPrimitiveValue::computeLengthIntForLength):
2085         Reduce to a single function using default parameter values.
2086         (WebCore::CSSPrimitiveValue::computeLength):
2087         Redefine existing functions with separate names as a single function using templated function specialization.
2088         * css/CSSPrimitiveValue.h:
2089         Prototypes for computeLengthIntForLength and computeLength.
2090         * css/CSSStyleApplyProperty.cpp:
2091         Use new computeLength functions.
2092         * css/CSSStyleSelector.cpp:
2093         Use new computeLength functions.
2094         * css/MediaQueryEvaluator.cpp:
2095         Use new computeLength functions.
2096         * css/SVGCSSStyleSelector.cpp:
2097         Use new computeLength functions.
2098
2099 2011-06-10  Simon Fraser  <simon.fraser@apple.com>
2100
2101         Reviewed by Beth Dakin.
2102
2103         Add utility to RenderLayer to determine if the layer is scrollable
2104         https://bugs.webkit.org/show_bug.cgi?id=62467
2105
2106         New method that returns true if either scrollbar is present and enabled.
2107         Not called anywhere yet.
2108
2109         * rendering/RenderLayer.cpp:
2110         (WebCore::RenderLayer::allowsScrolling):
2111         * rendering/RenderLayer.h:
2112
2113 2011-06-10  Dimitri Glazkov  <dglazkov@chromium.org>
2114
2115         Reviewed by Tony Chang.
2116
2117         REGRESSION (r88332): prototype-inheritance-2 ASSERTS attempting to enumerate spellCheckRanges
2118         https://bugs.webkit.org/show_bug.cgi?id=62460
2119
2120         Test: fast/dom/prototype-inheritance-2.html
2121
2122         * dom/DocumentMarkerController.cpp:
2123         (WebCore::DocumentMarkerController::userSpellingMarkersForNode): Added an extra 0-check.
2124
2125 2011-06-10  James Simonsen  <simonjam@chromium.org>
2126
2127         Reviewed by Tony Gentilcore.
2128
2129         Don't execute scripts in shadow SVG.
2130         https://bugs.webkit.org/show_bug.cgi?id=62225
2131
2132         Test: svg/dom/use-style-recalc-script-execute-crash.html
2133
2134         * dom/ScriptElement.cpp:
2135         (WebCore::ScriptElement::prepareScript):
2136
2137 2011-06-10  Konstantin Tokarev  <ktokarev@smartlabs.tv>
2138
2139         Reviewed by Joseph Pecoraro.
2140
2141         Fixed build with enabled workers and disabled inspector
2142         https://bugs.webkit.org/show_bug.cgi?id=62461
2143
2144         * inspector/InspectorWorkerAgent.cpp: Added inspector guard
2145
2146 2011-06-10  Darin Adler  <darin@apple.com>
2147
2148         Reviewed by Eric Carlson.
2149
2150         REGRESSION: Fullscreen video controller can't be dragged
2151         https://bugs.webkit.org/show_bug.cgi?id=62462
2152
2153         No regression test because we don't have machinery for testing the fullscreen
2154         mode. We may find a way to add this in the future.
2155
2156         * html/shadow/MediaControlElements.cpp:
2157         (WebCore::MediaControlPanelElement::MediaControlPanelElement): Initialize new
2158         booleans related to dragging.
2159         (WebCore::MediaControlPanelElement::startDrag): Added. Starts drag if dragging
2160         is allowed and a drag isn't already in progress.
2161         (WebCore::MediaControlPanelElement::continueDrag): Added. Moves the window if
2162         dragging is already in progress.
2163         (WebCore::MediaControlPanelElement::endDrag): Added. Ends the capture that is
2164         done during the dragging process.
2165         (WebCore::MediaControlPanelElement::setPosition): Added. Positions the panel
2166         using explicit top/left.
2167         (WebCore::MediaControlPanelElement::resetPosition): Added. Removes the positioning
2168         done by setPosition.
2169         (WebCore::MediaControlPanelElement::defaultEventHandler): Added. Calls startDrag,
2170         continueDrag, and endDrag in response to mouse events.
2171         (WebCore::MediaControlPanelElement::setCanBeDragged): Added.
2172         * html/shadow/MediaControlElements.h: Added new function and data members
2173         as mentioned above.
2174
2175         * html/shadow/MediaControlRootElement.cpp:
2176         (WebCore::MediaControlRootElement::enteredFullscreen): Call setCanBeDragged(true)
2177         so you can drag the panel while in fullscreen.
2178         (WebCore::MediaControlRootElement::exitedFullscreen): Call setCanBeDragged(false)
2179         so you can't drag the panel while not in fullscreen. Also call resetPosition so
2180         position changes from dragging don't affect the panel in other contexts.
2181
2182 2011-06-10  Darin Adler  <darin@apple.com>
2183
2184         Reviewed by Eric Carlson.
2185
2186         REGRESSION: Full screen video HUD is positioned too low for standalone video documents
2187         https://bugs.webkit.org/show_bug.cgi?id=62463
2188
2189         No test because we don't currently have machinery for testing fullscreen.
2190
2191         * css/fullscreen.css: Removed rule that said bottom: 0px for the control panel
2192         for full page media in full screen mode. This is not needed because the control
2193         panel for full screen mode already has style rules to set its vertical position.
2194         (:-webkit-full-screen-ancestor:not(iframe)): Fixed typo where it said
2195         -webkit-tranform. This will fix a potential problem where fullscreen would
2196         malfunction on a page that had a media element inside a transform.
2197
2198 2011-06-10  Sergio Villar Senin  <svillar@igalia.com>
2199
2200         Reviewed by Gustavo Noronha Silva.
2201
2202         [GTK] Add support for non-ASCII filenames in Content-Disposition header
2203         https://bugs.webkit.org/show_bug.cgi?id=62454
2204
2205         Try latin1 as fallback for header parameter values as some servers
2206         do not follow RFC 2045 for example with filename parameter in
2207         Content-Disposition.
2208
2209         No new tests required as no functionality changed.
2210
2211         * platform/network/soup/ResourceResponseSoup.cpp:
2212         (WebCore::ResourceResponse::updateFromSoupMessage):
2213
2214 2011-06-10  No'am Rosenthal  <noam.rosenthal@nokia.com> and Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
2215
2216         Reviewed by Kenneth Rohde Christiansen.
2217
2218         Add layer factory to GraphicsLayer for creating non-default layer type.
2219         https://bugs.webkit.org/show_bug.cgi?id=61925
2220
2221         Added a static factory protected member to GraphicsLayer, which should be accessed from
2222         a port-specific implementation of GraphicsLayer::create. For now this is enabled for Qt only.
2223
2224         This is needed for accelerated compositing across processes in WebKit2, since WebCore
2225         doesn't know in compile time whether it's in WebKit or WebKit2, which makes having two
2226         different implementations of GraphicsLayer coexist impossible without some runtime
2227         factory that can be overridden by the web process.
2228
2229         Note that the use of the factory would be optional, and the port-specific GraphicsLayer::create
2230         would have to explicitly call it, in order to be unintrusive with current implementations.
2231
2232         No new functionality, so no new tests.
2233
2234         * platform/graphics/GraphicsLayer.cpp:
2235         (WebCore::GraphicsLayer::setGraphicsLayerFactory):
2236         * platform/graphics/GraphicsLayer.h:
2237
2238 2011-06-10  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
2239
2240         Reviewed by Kenneth Rohde Christiansen.
2241
2242         [CMAKE] Add generic support for building with WebGL
2243         https://bugs.webkit.org/show_bug.cgi?id=62376
2244
2245         Set new THIRDPARTY_DIR variable to compile sources under ThirdParty.
2246
2247         No change in functionality so no new tests.
2248
2249         * CMakeLists.txt:
2250
2251 2011-06-10  Ryuan Choi  <ryuan.choi@samsung.com>
2252
2253         Reviewed by Andreas Kling.
2254
2255         [GTK][EFL] m_imageInterpolationQuality is not initialized in PlatformContextCairo::PlatformContextCairo.
2256         https://bugs.webkit.org/show_bug.cgi?id=62435
2257
2258         No new tests required as just fixed warning.
2259
2260         * platform/graphics/cairo/PlatformContextCairo.cpp:
2261         (WebCore::PlatformContextCairo::PlatformContextCairo):
2262
2263 2011-06-11-06-09  Ilya Tikhonovsky  <loislo@chromium.org>
2264
2265         Reviewed by Yury Semikhatsky.
2266
2267         Web Inspector: protocol: json: Whitespace can be inserted between any pair of tokens.
2268         https://bugs.webkit.org/show_bug.cgi?id=62377
2269
2270         * inspector/InspectorValues.cpp:
2271
2272 2011-06-10  Sheriff Bot  <webkit.review.bot@gmail.com>
2273
2274         Unreviewed, rolling out r88530.
2275         http://trac.webkit.org/changeset/88530
2276         https://bugs.webkit.org/show_bug.cgi?id=62440
2277
2278         qt build was broken (Requested by loislo on #webkit).
2279
2280         * inspector/InspectorValues.cpp:
2281
2282 2011-06-09  Ilya Tikhonovsky  <loislo@chromium.org>
2283
2284         Reviewed by Yury Semikhatsky.
2285
2286         Web Inspector: protocol: json: Whitespace can be inserted between any pair of tokens.
2287         https://bugs.webkit.org/show_bug.cgi?id=62377
2288
2289         * inspector/InspectorValues.cpp:
2290
2291 2011-06-09  Jer Noble  <jer.noble@apple.com>
2292
2293         Reviewed by Darin Adler.
2294
2295         REGRESSION: Vertical scroll bar appears when taking videos into full screen at jerryseinfeld.com
2296         https://bugs.webkit.org/show_bug.cgi?id=62402
2297
2298         Sites are able to override the "overflow:hidden" rule for root full-screen nodes
2299         simply by adding a "html {}" rule.  Make this rule !important, and also make it apply
2300         to root nodes who are merely ancestors of full-screen elements, to cover the case of
2301         a root node containing an <iframe> whose contents have gone full-screen.
2302
2303         * css/fullscreen.css:
2304         (:root:-webkit-full-screen-document:not(:-webkit-full-screen),
2305             :root:-webkit-full-screen-ancestor): Apply the overflow rule to root elements
2306             who are full-screen ancestors, and make them !important.
2307
2308 2011-06-09  Luke Macpherson   <macpherson@chromium.org>
2309
2310         Reviewed by Eric Seidel.
2311
2312         Rename RenderStyle visuallyOrdered property and use an enum instead of a bool.
2313         https://bugs.webkit.org/show_bug.cgi?id=61495
2314
2315         No new tests required as no functionality changed.
2316
2317         * css/CSSPrimitiveValueMappings.h:
2318         Support cast to/from Order
2319         * css/CSSStyleSelector.cpp:
2320         (WebCore::CSSStyleSelector::styleForDocument):
2321         Convert from bool to enum type.
2322         (WebCore::CSSStyleSelector::applyProperty):
2323         Convert to macro that uses the cast defined in CSSPrimitiveValueMappings.
2324         * dom/Document.cpp:
2325         (WebCore::Document::setVisuallyOrdered):
2326         Change call to RenderStyle::setRTLOrdering using enum parameter.
2327         * rendering/style/RenderStyle.h:
2328         rename visuallyOrdered proerties rtlOrdering and use appropriate enum types.
2329         * rendering/style/RenderStyleConstants.h:
2330         Define enum type.
2331
2332 2011-06-09  Luke Macpherson   <macpherson@chromium.org>
2333
2334         Reviewed by Eric Seidel.
2335
2336         Implement CSSPropertyOutlineStyle handler in CSSStyleApplyProperty
2337         https://bugs.webkit.org/show_bug.cgi?id=61601
2338
2339         No new tests. No new functionality added / covered by existing tests.
2340
2341         * css/CSSPrimitiveValueMappings.h:
2342         (WebCore::CSSPrimitiveValue::operator EBorderStyle):
2343         Support CSSValueAuto as required by outline-style property.
2344         (WebCore::CSSPrimitiveValue::operator OutlineIsAuto):
2345         Add cast to new OutlineIsAuto enum.
2346         * css/CSSStyleApplyProperty.cpp:
2347         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
2348         Initialize handler for CSSPropertyOutlineStyle.
2349         * css/CSSStyleSelector.cpp:
2350         (WebCore::CSSStyleSelector::applyProperty):
2351         Remove old handler for CSSPropertyOutlineStyle.
2352         * rendering/style/OutlineValue.h:
2353         Use new OutlineIsAuto enum instead of bool.
2354         * rendering/style/RenderStyle.h:
2355         Split existing two-parameter setter setOutlineStyle into separate setters for style and auto properties.
2356         Use new OutlineIsAuto enum type.
2357         * rendering/style/RenderStyleConstants.h:
2358         Define new enum OutlineIsAuto.
2359
2360 2011-06-09  Luke Macpherson   <macpherson@chromium.org>
2361
2362         Reviewed by Eric Seidel.
2363
2364         Code cleanup - add wrappers for function pointer dereferences to improve readability in ApplyPropertyDefaultBase and derived classes.
2365         https://bugs.webkit.org/show_bug.cgi?id=62418
2366
2367         No new tests / cleanup only.
2368
2369         * css/CSSStyleApplyProperty.cpp:
2370         (WebCore::ApplyPropertyDefaultBase::applyInheritValue):
2371         Use new wrapper functions.
2372         (WebCore::ApplyPropertyDefaultBase::applyInitialValue):
2373         Use new wrapper functions.
2374         (WebCore::ApplyPropertyDefaultBase::setValue):
2375         Wrapper for calling m_setter function pointer.
2376         (WebCore::ApplyPropertyDefaultBase::value):
2377         Wrapper for calling m_getter function pointer.
2378         (WebCore::ApplyPropertyDefaultBase::initial):
2379         Wrapper for calling m_initial function pointer.
2380         (WebCore::ApplyPropertyDefault::applyValue):
2381         Use new setValue function.
2382         (WebCore::ApplyPropertyLength::applyValue):
2383         Use new setValue function.
2384         (WebCore::ApplyPropertyWidth::applyValue):
2385         Use new setValue function.
2386
2387 2011-06-09  Hyowon Kim  <hw1008.kim@samsung.com>
2388
2389         Reviewed by Antonio Gomes.
2390
2391         [EFL] Make accelerated compositing build in Webkit-EFL
2392         https://bugs.webkit.org/show_bug.cgi?id=62361
2393
2394         Add a new class, GraphicsLayerEfl - not yet implemented.
2395         Add ACCELERATED_COMPOSITING related files to CMakeLists.
2396
2397         * CMakeLists.txt:
2398         * CMakeListsEfl.txt:
2399         * platform/graphics/efl/GraphicsLayerEfl.cpp: Added.
2400         (WebCore::GraphicsLayer::create):
2401         (WebCore::GraphicsLayerEfl::GraphicsLayerEfl):
2402         (WebCore::GraphicsLayerEfl::~GraphicsLayerEfl):
2403         (WebCore::GraphicsLayerEfl::setNeedsDisplay):
2404         (WebCore::GraphicsLayerEfl::setNeedsDisplayInRect):
2405         * platform/graphics/efl/GraphicsLayerEfl.h: Added.
2406
2407 2011-06-09  Jian Li  <jianli@chromium.org>
2408
2409         Reviewed by David Levin.
2410
2411         Calling WebKitBlobBuilder.append with null argument should not crash
2412         https://bugs.webkit.org/show_bug.cgi?id=62419
2413
2414         Test: fast/files/blob-builder-crash.html
2415
2416         * fileapi/WebKitBlobBuilder.cpp:
2417         (WebCore::WebKitBlobBuilder::append):
2418
2419 2011-06-09  Jer Noble  <jer.noble@apple.com>
2420
2421         Reviewed by David Hyatt.
2422
2423         Roll out r88468, and fix bug #61911 without making Element::offset functions virtual.
2424         https://bugs.webkit.org/show_bug.cgi?id=62400
2425
2426         No new tests; covered by existing fullscreen/full-screen-video-offset.html test.
2427
2428         * rendering/RenderVideo.cpp:
2429         (WebCore::rendererPlaceholder): Added; returns the placeholder block, if it exists.
2430         (WebCore::RenderVideo::offsetLeft): Pass the offset request to the placeholder block.
2431         (WebCore::RenderVideo::offsetTop): Ditto.
2432         (WebCore::RenderVideo::offsetWidth): Ditto.
2433         (WebCore::RenderVideo::offsetHeight): Ditto.
2434         * rendering/RenderVideo.h: Added virtual overrides for the offset functions.
2435
2436 2011-06-09  James Robinson  <jamesr@chromium.org>
2437
2438         Reviewed by Kenneth Russell.
2439
2440         [chromium] Scissor rect not set for clipping layers set offscreen
2441         https://bugs.webkit.org/show_bug.cgi?id=62339
2442
2443         We set a scissorRect on each layer, but only layers with masksToBounds and their descendants should actually set
2444         a scissor.  Layers that didn't need to scissor had empty scissorRects.  Unfortunately layers with masksToBounds
2445         and their descendants that are scrolled offscreen also end up with an empty clipped scissor rect.
2446
2447         This patch sets an explicit bit on each layer that should scissor and then checks that bit instead of checking
2448         for an empty scissor rect at draw time.  RenderSurfaceChromiums have different requirements for
2449         setScissorToRect, so the old behavior is still available with a flag.  This can probably be cleaned up more.
2450
2451         Test: platform/chromium/compositing/scissor-out-of-viewport.html
2452
2453         * platform/graphics/chromium/LayerRendererChromium.cpp:
2454         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
2455         (WebCore::LayerRendererChromium::drawLayer):
2456         (WebCore::LayerRendererChromium::setScissorToRect):
2457         * platform/graphics/chromium/LayerRendererChromium.h:
2458         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
2459         (WebCore::RenderSurfaceChromium::draw):
2460         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
2461         (WebCore::CCLayerImpl::CCLayerImpl):
2462         * platform/graphics/chromium/cc/CCLayerImpl.h:
2463         (WebCore::CCLayerImpl::setUsesLayerScissor):
2464         (WebCore::CCLayerImpl::usesLayerScissor):
2465
2466 2011-06-09  Sheriff Bot  <webkit.review.bot@gmail.com>
2467
2468         Unreviewed, rolling out r88468.
2469         http://trac.webkit.org/changeset/88468
2470         https://bugs.webkit.org/show_bug.cgi?id=62408
2471
2472         It broke build if !ENABLE(FULLSCREEN_API) (Requested by Ossy
2473         on #webkit).
2474
2475         * dom/Element.cpp:
2476         (WebCore::adjustForLocalZoom):
2477         * dom/Element.h:
2478         * html/HTMLMediaElement.cpp:
2479         * html/HTMLMediaElement.h:
2480
2481 2011-06-09  Kenneth Russell  <kbr@google.com>
2482
2483         Reviewed by Adam Barth.
2484
2485         Disallow use of cross-domain media (images, video) in WebGL
2486         https://bugs.webkit.org/show_bug.cgi?id=62257
2487
2488         Updated WebGL implementation to track recent spec updates in this area.
2489
2490         Tests: http/tests/security/webgl-remote-read-remote-image-allowed-with-credentials.html
2491                http/tests/security/webgl-remote-read-remote-image-allowed.html
2492                http/tests/security/webgl-remote-read-remote-image-blocked-no-crossorigin.html
2493
2494         * html/canvas/CanvasRenderingContext.cpp:
2495         (WebCore::CanvasRenderingContext::wouldTaintOrigin):
2496         (WebCore::CanvasRenderingContext::checkOrigin):
2497         * html/canvas/CanvasRenderingContext.h:
2498         (WebCore::CanvasRenderingContext::checkOrigin):
2499         * html/canvas/WebGLRenderingContext.cpp:
2500         (WebCore::WebGLRenderingContext::readPixels):
2501         (WebCore::WebGLRenderingContext::texImage2D):
2502         (WebCore::WebGLRenderingContext::videoFrameToImage):
2503         (WebCore::WebGLRenderingContext::texSubImage2D):
2504         * html/canvas/WebGLRenderingContext.h:
2505
2506 2011-06-09  Adam Barth  <abarth@webkit.org>
2507
2508         Reviewed by Eric Seidel.
2509
2510         Add an ASSERT to HTMLTreeBuilder
2511         https://bugs.webkit.org/show_bug.cgi?id=62403
2512
2513         This ASSERT was useful in investigating a re-entrancy bug.  We should
2514         keep it.
2515
2516         * html/parser/HTMLTreeBuilder.cpp:
2517         (WebCore::HTMLTreeBuilder::processEndOfFile):
2518
2519 2011-06-09  Dan Bernstein  <mitz@apple.com>
2520
2521         Reviewed by Darin Adler.
2522
2523         Fix a regression from r88478.
2524
2525         * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
2526         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText): Add the runs
2527         in reverse order in the RTL case here, since the whole vector is reversed by collectComplexTextRuns()
2528         afterwards.
2529
2530 2011-06-09  Julien Chaffraix  <jchaffraix@codeaurora.org>
2531
2532         Reviewed by Antti Koivisto.
2533
2534         REGRESSION(84329): Stylesheets on some pages do not load
2535         https://bugs.webkit.org/show_bug.cgi?id=61400
2536
2537         Test: fast/css/link-disabled-attr.html
2538
2539         Fixed r84329: the change did not take into account the fact
2540         that HTMLLinkElement did already contain the disabled information
2541         and the 2 information were not linked as they should have!
2542
2543         The new logic pushes the information to the stylesheet as this
2544         is what the spec mandates and what FF is doing. Also it keeps
2545         one bit of information (that JS enabled the stylesheet) as it
2546         is needed for the recalcStyleSelector logic.
2547
2548         * dom/Document.cpp:
2549         (WebCore::Document::recalcStyleSelector): s/isDisabled/disabled.
2550
2551         * html/HTMLLinkElement.cpp:
2552         (WebCore::HTMLLinkElement::HTMLLinkElement): Removed m_disabledState,
2553         replaced by m_isEnabledViaScript.
2554         (WebCore::HTMLLinkElement::setDisabled): Updated the logic after
2555         m_disabledState removal. It also matches the spec by forwarding
2556         the disabled state to our stylesheet if we have one.
2557         (WebCore::HTMLLinkElement::parseMappedAttribute): Removed harmful
2558         handling of the disabledAttr.
2559         (WebCore::HTMLLinkElement::process): Updated after m_disabledState removal.
2560         * html/HTMLLinkElement.h:
2561         (WebCore::HTMLLinkElement::isEnabledViaScript): Ditto.
2562         (WebCore::HTMLLinkElement::isAlternate): Ditto.
2563
2564 2011-06-09  Dan Bernstein  <mitz@apple.com>
2565
2566         Reviewed by Darin Adler.
2567
2568         Simplify ComplexTextController::collectComplexTextRuns()
2569         https://bugs.webkit.org/show_bug.cgi?id=62387
2570
2571         No new test, since functionality is unchanged.
2572
2573         * platform/graphics/mac/ComplexTextController.cpp:
2574         (WebCore::ComplexTextController::collectComplexTextRuns): Always iterate characters in logical order,
2575         then reverse the run vector for RTL.
2576
2577 2011-06-09  Dimitri Glazkov  <dglazkov@chromium.org>
2578
2579         Reviewed by Kent Tamura.
2580
2581         Fold isShadowBoundary into isShadowRoot.
2582         https://bugs.webkit.org/show_bug.cgi?id=62317
2583
2584         Since there are no longer cases where Node::isShadowBoundary() != Node::isShadowRoot, we can remove this function.
2585
2586         In one case where isShadowBoundary was also tested to find ShadowContentElemnt, added a new isContentElement function.
2587
2588         Refactoring, covered by existing tests.
2589
2590         * css/CSSStyleSelector.cpp:
2591         (WebCore::isAtShadowBoundary): Changed to use isShadowRoot.
2592         * dom/Element.cpp:
2593         (WebCore::Element::isSpellCheckingEnabled): Ditto.
2594         * dom/Node.cpp:
2595         (WebCore::Node::nonBoundaryShadowTreeRootNode): Ditto.
2596         (WebCore::Node::nonShadowBoundaryParentNode): Ditto.
2597         * dom/Node.h:
2598         (WebCore::Node::isContentElement): Added.
2599         * dom/NodeRenderingContext.cpp:
2600         (WebCore::NodeRenderingContext::NodeRenderingContext): Changed to use isShadowRoot.
2601         * dom/Position.cpp:
2602         (WebCore::Position::Position): Ditto.
2603         * dom/ShadowContentElement.h:
2604         (WebCore::ShadowContentElement::isContentElement): Added.
2605         * dom/ShadowRoot.cpp:
2606         (WebCore::ShadowRoot::hasContentElement): Changed to use isContentElement.
2607         * editing/CompositeEditCommand.cpp:
2608         (WebCore::CompositeEditCommand::insertNodeAfter): Changed to use isShadowRoot.
2609         * editing/htmlediting.cpp:
2610         (WebCore::visiblePositionBeforeNode): Ditto.
2611         (WebCore::visiblePositionAfterNode): Ditto.
2612         * page/DragController.cpp:
2613         (WebCore::asFileInput): Ditto.
2614         * rendering/RenderTreeAsText.cpp:
2615         (WebCore::nodePosition): Ditto.
2616
2617 2011-06-09  Simon Fraser  <simon.fraser@apple.com>
2618
2619         Reviewed by Darin Adler.
2620
2621         Crashes in RenderLayerBacking::paintingGoesToWindow
2622         https://bugs.webkit.org/show_bug.cgi?id=61159
2623
2624         Speculative fix for unreproducible crash that can occur when RenderObject::repaintUsingContainer()
2625         finds a repaintContainer that is not the RenderView, but that is also not
2626         composited (for unknown reasons), by checking to see if the layer is
2627         compositing before using backing(). An assertion remains to try to catch
2628         this in debug builds.
2629
2630         * rendering/RenderLayer.cpp:
2631         (WebCore::RenderLayer::setBackingNeedsRepaintInRect):
2632
2633 2011-06-09  Julien Chaffraix  <jchaffraix@webkit.org>
2634
2635         Reviewed by Darin Adler.
2636
2637         WebCore::WebKitCSSKeyframesRuleInternal::nameAttrSetter() - crash
2638         https://bugs.webkit.org/show_bug.cgi?id=62384
2639
2640         Test: fast/css/webkit-keyframes-crash.html
2641
2642         * css/WebKitCSSKeyframesRule.cpp:
2643         (WebCore::WebKitCSSKeyframesRule::setName): stylesheet() is never garanteed
2644         to return a non-null pointer. Thus null-check here like the rest of the code.
2645
2646 2011-06-09  Julien Chaffraix  <jchaffraix@codeaurora.org>
2647
2648         Reviewed by David Hyatt.
2649
2650         chrome.dll!WebCore::RenderStyle::fontMetrics ReadAV@NULL (two crashes)
2651         https://bugs.webkit.org/show_bug.cgi?id=57756
2652
2653         Tests: fast/css/fontMetric-border-radius-null-crash.html
2654                fast/css/fontMetric-webkit-border-end-width-null-crash.html
2655
2656         * css/CSSStyleSelector.cpp:
2657         (WebCore::CSSStyleSelector::styleForElement): Added a call to Font::update
2658         so that our FontFallbackList is allocated if we ever need it when applying our
2659         style rules.
2660
2661 2011-06-09  Cary Clark  <caryclark@google.com>
2662
2663         Reviewed by Eric Seidel.
2664
2665         Create local CG context for Mac UI elements when Skia is renderer
2666         https://bugs.webkit.org/show_bug.cgi?id=62213
2667
2668         When building Mac Chrome using Skia as the WebKit renderer,
2669         add state to LocalCurrentGraphicsContext to convert the SkCanvas
2670         context passed by WebKit into the CGContext needed by UI
2671         rendering.
2672
2673         No new tests.  The define typo in question is
2674         not yet enabled, so this change has no functional
2675         impact.
2676
2677         * platform/mac/LocalCurrentGraphicsContext.h:
2678         Add SkiaBitLocker to create and release the converted CGContext.
2679         Add ContextContainer, a class for Skia to create and release
2680         the converted CGContext. If Skia is not used, the class has no effect.
2681
2682         * platform/mac/LocalCurrentGraphicsContext.mm:
2683         (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext):
2684         When building with Skia, create the CGContext before passing it on.
2685
2686         (WebCore::LocalCurrentGraphicsContext::cgContext):
2687         Get the CGContext from the SkiaBitLocker, or the saved context,
2688         as appropriate.
2689
2690         * rendering/RenderThemeMac.mm:
2691         Get the CGContext from Skia conversion or native, as appropriate.
2692         Use the LocalCurrentGraphicsContext if there is one. Otherwise,
2693         add a ContextContainer to house the SkCanvas to CGContext conversion.
2694
2695         (WebCore::RenderThemeMac::paintCapsLockIndicator):
2696         (WebCore::RenderThemeMac::paintProgressBar):
2697         (WebCore::RenderThemeMac::paintMenuListButtonGradients):
2698         (WebCore::RenderThemeMac::paintSliderTrack):
2699         (WebCore::RenderThemeMac::paintMediaFullscreenButton):
2700         (WebCore::RenderThemeMac::paintMediaMuteButton):
2701         (WebCore::RenderThemeMac::paintMediaPlayButton):
2702         (WebCore::RenderThemeMac::paintMediaSeekBackButton):
2703         (WebCore::RenderThemeMac::paintMediaSeekForwardButton):
2704         (WebCore::RenderThemeMac::paintMediaSliderTrack):
2705         (WebCore::RenderThemeMac::paintMediaSliderThumb):
2706         (WebCore::RenderThemeMac::paintMediaRewindButton):
2707         (WebCore::RenderThemeMac::paintMediaReturnToRealtimeButton):
2708         (WebCore::RenderThemeMac::paintMediaToggleClosedCaptionsButton):
2709         (WebCore::RenderThemeMac::paintMediaControlsBackground):
2710         (WebCore::RenderThemeMac::paintMediaCurrentTime):
2711         (WebCore::RenderThemeMac::paintMediaTimeRemaining):
2712         (WebCore::RenderThemeMac::paintMediaVolumeSliderContainer):
2713         (WebCore::RenderThemeMac::paintMediaVolumeSliderTrack):
2714         (WebCore::RenderThemeMac::paintMediaVolumeSliderThumb):
2715
2716 2011-06-02  Jer Noble  <jer.noble@apple.com>
2717
2718         Reviewed by Maciej Stachowiak.
2719
2720         REGRESSION: Page layout messed up after exiting full screen after video ends at jerryseinfeld.com
2721         https://bugs.webkit.org/show_bug.cgi?id=61911
2722         <rdar://problem/9523017>
2723
2724         Test: fullscreen/full-screen-video-offset.html
2725
2726         When the video element is taken full-screen in the new element full-screen API, return the
2727         offset width and height of the placeholder renderer which is filling in for the full-screen
2728         element.  To do so, override offsetWidth, Height, Left, and Top from Element.  These are
2729         non-virtual functions, so make them virtual.
2730
2731         * dom/Element.cpp:
2732         (WebCore::Element::adjustForLocalZoom): Made into a class-static function.
2733         * dom/Element.h: Made offset functions virtual.
2734         * html/HTMLMediaElement.cpp:
2735         (WebCore::elementPlaceholder): Added; utility function.
2736         (WebCore::HTMLMediaElement::offsetLeft): Added; virtual override of the 
2737             Element function. Will be called directly via javascript.
2738         (WebCore::HTMLMediaElement::offsetTop): Ditto.
2739         (WebCore::HTMLMediaElement::offsetWidth): Ditto.
2740         (WebCore::HTMLMediaElement::offsetHeight): Ditto.
2741         * html/HTMLMediaElement.h:
2742
2743 2011-06-09  Dave Tapuska  <dtapuska@rim.com>
2744
2745         Reviewed by Daniel Bates.
2746
2747         PingLoader destructor could dereference 0 if the Resource
2748         Handle creation failed.
2749
2750         https://bugs.webkit.org/show_bug.cgi?id=62304
2751
2752         * loader/PingLoader.cpp:
2753         (WebCore::PingLoader::~PingLoader):
2754
2755 2011-06-08  Abhishek Arya  <inferno@chromium.org>
2756
2757         Reviewed by Ryosuke Niwa.
2758
2759         Make indexForVisiblePosition and isSelectableElement static.
2760         https://bugs.webkit.org/show_bug.cgi?id=62329
2761
2762         This protects us when converting frame->selection->start() or end()
2763         to VisiblePosition which blows away the RenderTextControl from
2764         underneath (due to layout update).
2765
2766         Test: fast/forms/text-control-selection-crash.html
2767
2768         * accessibility/AccessibilityRenderObject.cpp:
2769         (WebCore::AccessibilityRenderObject::indexForVisiblePosition):
2770         * rendering/RenderTextControl.cpp:
2771         (WebCore::RenderTextControl::selectionStart):
2772         (WebCore::RenderTextControl::selectionEnd):
2773         (WebCore::RenderTextControl::isSelectableElement):
2774         (WebCore::RenderTextControl::indexForVisiblePosition):
2775         * rendering/RenderTextControl.h:
2776
2777 2011-06-09  Ben Murdoch  <benm@google.com>
2778
2779         Reviewed by Yury Semikhatsky.
2780
2781         Build break in ScriptProfile.cpp and inspector disabled.
2782         https://bugs.webkit.org/show_bug.cgi?id=62373
2783
2784         No new tests - build fix only.
2785
2786         * bindings/v8/ScriptProfile.cpp: Add necessary guards.
2787         * bindings/v8/ScriptProfile.h: ditto.
2788
2789 2011-06-09  Vsevolod Vlasov  <vsevik@chromium.org>
2790
2791         Reviewed by Yury Semikhatsky.
2792
2793         Web Inspector: Network panel preview tab does not reattach SourceFrame when switching between preview and response tabs.
2794         https://bugs.webkit.org/show_bug.cgi?id=62298
2795
2796         * inspector/front-end/ResourcePreviewView.js:
2797         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown.callback):
2798         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown):
2799
2800 2011-06-09  Csaba Osztrogonác  <ossy@webkit.org>
2801
2802         [Qt][Mac] Speculative buildfix after r88286.
2803
2804         * platform/graphics/IntPoint.h:
2805
2806 2011-06-09  Mike Lawther  <mikelawther@chromium.org>
2807
2808         Reviewed by Kent Tamura.
2809
2810         Parsing issue with -webkit-calc
2811         https://bugs.webkit.org/show_bug.cgi?id=62276
2812
2813         Set the CSSParserString for the calc functions.
2814
2815         Test: css3/calc/regression-62276.html
2816
2817         * css/CSSParser.cpp:
2818         (WebCore::CSSParser::lex):
2819
2820 2011-06-09  Robert Hogan  <robert@webkit.org>
2821
2822         Reviewed by Andreas Kling.
2823
2824         Teach Qt about window.internals
2825         https://bugs.webkit.org/show_bug.cgi?id=61074
2826
2827         A weakness of the Qt DRT setup is that things like JSContextRef are abstracted
2828         away from the QtWebKit API so we need DumpRenderTreeSupportQt to access WebCore internals.
2829         Since the window.internals object requires JSContextRef we need to implement it in DumpRenderTreeSupportQt
2830         where we can access it. DumpRenderTreeSupportQt cannot be compiled outside Qt's WebCore and as it
2831         is our only possible route into the WebCoreTestSupport class neither can the new window.internals plumbing.
2832         Likewise we can't put the accessor in WebCoreTestSupport because it would then need to know about QWebFrame
2833         and others. The only alternative seems like a compile time guard which we would have to teach the bots about.
2834
2835         * CodeGenerators.pri:
2836         * WebCore.pri:
2837         * WebCore.pro:
2838
2839 2011-06-08  Mikołaj Małecki  <m.malecki@samsung.com>
2840
2841         Reviewed by Pavel Feldman.
2842
2843         Web Inspector: Crash by buffer overrun crash when serializing inspector object tree.
2844         https://bugs.webkit.org/show_bug.cgi?id=52791
2845
2846         No new tests. The problem can be reproduced by trying to create InspectorValue
2847         from 1.0e-100 and call ->toJSONString() on this.
2848
2849         * inspector/InspectorValues.cpp:
2850         (WebCore::InspectorBasicValue::writeJSON):
2851         Added checking the predicted buffer size and choosing exponential format, or
2852         eventually "NaN" if the buffer is too small for decimal format.
2853
2854 2011-06-09  Sheriff Bot  <webkit.review.bot@gmail.com>
2855
2856         Unreviewed, rolling out r88387.
2857         http://trac.webkit.org/changeset/88387
2858         https://bugs.webkit.org/show_bug.cgi?id=62368
2859
2860         New tests introduced in 88387 fail on Leopard,GTK,Qt bots
2861         (Requested by Ossy on #webkit).
2862
2863         * html/canvas/CanvasRenderingContext.cpp:
2864         (WebCore::CanvasRenderingContext::checkOrigin):
2865         * html/canvas/CanvasRenderingContext.h:
2866         * html/canvas/WebGLRenderingContext.cpp:
2867         (WebCore::WebGLRenderingContext::readPixels):
2868         (WebCore::WebGLRenderingContext::texImage2D):
2869         (WebCore::WebGLRenderingContext::videoFrameToImage):
2870         (WebCore::WebGLRenderingContext::texSubImage2D):
2871         * html/canvas/WebGLRenderingContext.h:
2872
2873 2011-06-09  Adam Barth  <abarth@webkit.org>
2874
2875         Reviewed by Eric Seidel.
2876
2877         Running script from attach can remove elements from the stack of open elements
2878         https://bugs.webkit.org/show_bug.cgi?id=62160
2879
2880         When the tree build runs script synchronously, that script can remove
2881         arbitrary elements from the stack of open elements.  We need to hold a
2882         reference to |parent| in attach instead of rely upon the reference in
2883         the stack of open elements.
2884
2885         Test: fast/parser/document-write-onload-clear.html
2886
2887         * html/parser/HTMLConstructionSite.cpp:
2888         (WebCore::HTMLConstructionSite::attach):
2889
2890 2011-06-08  Luke Macpherson   <macpherson@chromium.org>
2891
2892         Reviewed by Eric Seidel.
2893
2894         Make CSSPrimitiveValue support cast to EVerticalAlign.
2895         https://bugs.webkit.org/show_bug.cgi?id=62356
2896
2897         No new tests / refactoring only.
2898
2899         * css/CSSPrimitiveValueMappings.h:
2900         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2901         (WebCore::CSSPrimitiveValue::operator EVerticalAlign):
2902         * css/CSSStyleSelector.cpp:
2903         (WebCore::CSSStyleSelector::applyProperty):
2904
2905 2011-06-08  Justin Novosad  <junov@chromium.org>
2906
2907         Reviewed by James Robinson.
2908
2909         [Chromium] Crash when closing a tab with accelerated 2d canvas
2910         https://bugs.webkit.org/show_bug.cgi?id=62324
2911         Upon graphics context destruction, it is important to signal skia
2912         to abandon all of its resource handles.  This prevents a crash caused
2913         by skia attempting to release resources that were in the destroyed
2914         graphics context.
2915
2916         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
2917         (WebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D):
2918
2919 2011-06-08  James Robinson  <jamesr@chromium.org>
2920
2921         Reviewed by Darin Fisher.
2922
2923         REGRESSION(88260): 10-50% performance regression across many page cyclers
2924         https://bugs.webkit.org/show_bug.cgi?id=62349
2925
2926         r88260 fixed a font cache resource leak and lowered the inactive font cache threshold.  The latter caused a
2927         significant performance regression across many chromium page cyclers, for example
2928         http://build.chromium.org/f/chromium/perf/linux-release-webkit-latest/moz/report.html?history=50&rev=88279.
2929
2930         This restores the previous inactive font size thresholds to their previous values, but retains the font cleanup
2931         logic.
2932
2933         * platform/graphics/FontCache.cpp:
2934
2935 2011-06-08  Hayato Ito  <hayato@chromium.org>
2936
2937         Reviewed by Dimitri Glazkov.
2938
2939         A forward/backward tab traversal now visits focusable elements in a shadow root.
2940         https://bugs.webkit.org/show_bug.cgi?id=61410
2941
2942         Test: fast/dom/shadow/tab-order-iframe-and-shadow.html
2943
2944         Like a iframe element, a shadow host becomes a scope of
2945         tabindex. That means all descendant elements in a shadow root are
2946         skipped if the host node of the shadow root is not focusable.
2947
2948         The patch doesn't affect HTMLInputElement and HTMLTextAreaElement,
2949         which uses a shadow root and do extra works in their focus()
2950         method.
2951
2952         A shadow root's <content> is not considered in this patch.
2953         That will be addressed in a following patch.
2954
2955         * page/FocusController.cpp:
2956         (WebCore::shadowRoot):
2957         (WebCore::isTreeScopeOwner):
2958         (WebCore::FocusController::deepFocusableNode):
2959         (WebCore::FocusController::advanceFocusInDocumentOrder):
2960         (WebCore::FocusController::findFocusableNodeAcrossTreeScope):
2961         (WebCore::FocusController::findFocusableNode):
2962         (WebCore::FocusController::nextFocusableNode):
2963         (WebCore::FocusController::previousFocusableNode):
2964         (WebCore::FocusController::ownerOfTreeScope):
2965         * page/FocusController.h:
2966
2967 2011-06-08  Hayato Ito  <hayato@chromium.org>
2968
2969         Reviewed by Hajime Morita.
2970
2971         Makes sure that document.activeElement won't be an element in shadow root.
2972
2973         https://bugs.webkit.org/show_bug.cgi?id=61413
2974
2975         Test: fast/dom/shadow/activeelement-should-be-shadowhost.html
2976
2977         * html/HTMLDocument.cpp:
2978         (WebCore::focusedFrameOwnerElement):
2979         (WebCore::HTMLDocument::activeElement):
2980
2981 2011-06-08  Kent Tamura  <tkent@chromium.org>
2982
2983         Reviewed by Dimitri Glazkov.
2984
2985         Allow drawing a slider thumb for any nodes.
2986         https://bugs.webkit.org/show_bug.cgi?id=62196
2987
2988         RenderObject::node() should provide various information which is
2989         necessary for rendering. We don't need to refer the parent renderer.
2990
2991         * dom/Node.cpp:
2992         (WebCore::Node::focusDe1egate): Added.
2993         * dom/Node.h: Added a declaration.
2994         * html/shadow/MediaControlElements.cpp:
2995         (WebCore::toParentMediaElement):
2996           Added an overload of toParentMediaElement() with Node* parameter.
2997         * html/shadow/MediaControlElements.h:
2998         (WebCore::toParentMediaElement): ditto.
2999         * html/shadow/SliderThumbElement.cpp:
3000         (WebCore::SliderThumbElement::isEnabledFormControl):
3001           Returns the status of the host node.
3002         (WebCore::SliderThumbElement::isReadOnlyFormControl): ditto.
3003         (WebCore::SliderThumbElement::focusDe1egate):
3004           Returns the host node so that RenderTheme::isFocused() returns true.
3005         (WebCore::SliderThumbElement::detach): Style nit.
3006         (WebCore::SliderThumbElement::hostInput):
3007           Make it const because it is called by const functions.
3008         * html/shadow/SliderThumbElement.h:
3009           - Remove inDragMode()
3010           - Update declarations
3011         * platform/qt/RenderThemeQt.cpp:
3012         (WebCore::RenderThemeQt::paintMediaSliderThumb):
3013           Use Node::shadowAncestorNode() instead of RenderObject::parent() to
3014           support deeper thumb nodes.
3015         * rendering/RenderMediaControlsChromium.cpp:
3016         (WebCore::paintMediaSliderThumb): ditto.
3017         (WebCore::paintMediaVolumeSliderThumb): Remove isSlider() check.
3018         * rendering/RenderSlider.cpp:
3019         (WebCore::RenderSlider::inDragMode):
3020           SliderThumbElement::inDragMode() was removed, and Node::active() has
3021           the same information.
3022         * rendering/RenderTheme.cpp:
3023         (WebCore::RenderTheme::paint): Remove isSlider() checks.
3024         (WebCore::RenderTheme::isFocused): Apply Node::focusDelegate().
3025         * rendering/RenderThemeChromiumLinux.cpp:
3026         (WebCore::RenderThemeChromiumLinux::paintSliderThumb):
3027           isPressed() is enough.
3028         * rendering/RenderThemeChromiumWin.cpp:
3029           isEnabled(), isFocused(), and isPressed() are enough.
3030         (WebCore::RenderThemeChromiumWin::determineSliderThumbState):
3031         (WebCore::RenderThemeChromiumWin::determineClassicState):
3032         * rendering/RenderThemeMac.mm:
3033         (WebCore::RenderThemeMac::paintSliderThumb):
3034           - Remove isSlider() check.
3035           - Passing 'o' to udpateFooState functions is enough.
3036           - isPressed() is enough.
3037         * rendering/RenderThemeSafari.cpp:
3038         (WebCore::RenderThemeSafari::paintSliderThumb):
3039           We don't need special handling anymore.
3040         * rendering/RenderThemeWin.cpp:
3041         (WebCore::RenderThemeWin::determineSliderThumbState):
3042           isEnabled(), isFocused(), and isPressed() are enough.
3043
3044 2011-06-08  Adam Barth  <abarth@webkit.org>
3045
3046         Reviewed by Eric Seidel.
3047
3048         constructTreeFromToken can re-enter parser, causing ASSERTs
3049         https://bugs.webkit.org/show_bug.cgi?id=62160
3050
3051         This patch clears the HTMLToken before constructing the tree from the
3052         token, putting the HTMLDocumentParser in a good state to be re-entered.
3053
3054         Tests: fast/parser/document-write-onload-nesting.html
3055                fast/parser/document-write-onload-ordering.html
3056
3057         * html/parser/HTMLDocumentParser.cpp:
3058         (WebCore::HTMLDocumentParser::pumpTokenizer):
3059         * html/parser/HTMLToken.h:
3060         (WebCore::HTMLToken::isUninitialized):
3061         * html/parser/HTMLTreeBuilder.cpp:
3062         (WebCore::HTMLTreeBuilder::constructTreeFromToken):
3063
3064 2011-06-08  Kent Tamura  <tkent@chromium.org>
3065
3066         Fix Qt build for r88405.
3067         https://bugs.webkit.org/show_bug.cgi?id=62208
3068
3069         * platform/qt/RenderThemeQt.h:
3070
3071 2011-06-08  Kent Tamura  <tkent@chromium.org>
3072
3073         Reviewed by Dimitri Glazkov.
3074
3075         Change the argument of RenderTheme::adjustSliderThumbSize(): RenderObject* -> RenderStyle*
3076         https://bugs.webkit.org/show_bug.cgi?id=62208
3077
3078         Change the argument type of RenderTheme::adjustSliderThumbSize() and
3079         RenderMediaControls::adjustMediaSliderThumbSize() from RenderObject* to RenderStyle*.
3080
3081         Also, each of adjustSliderThumbStyle() overrides calls RenderTheme::
3082         adjustSliderThumbStyle() for future changes.
3083
3084         No new tests. This is a refactoring and should not change any behavior.
3085
3086         * html/shadow/SliderThumbElement.cpp:
3087         (WebCore::RenderSliderThumb::layout): Passing RenderStyle* and remove a FIXME comment.
3088         * platform/efl/RenderThemeEfl.cpp:
3089         (WebCore::RenderThemeEfl::adjustSliderThumbStyle): Calls RenderTheme::adjustSliderThumbStyle().
3090         * platform/gtk/RenderThemeGtk.cpp:
3091         (WebCore::RenderThemeGtk::adjustSliderThumbStyle): ditto.
3092         (WebCore::RenderThemeGtk::adjustMediaSliderThumbSize):
3093         * platform/gtk/RenderThemeGtk.h:
3094         * platform/gtk/RenderThemeGtk2.cpp:
3095         (WebCore::RenderThemeGtk::adjustSliderThumbSize):
3096         * platform/gtk/RenderThemeGtk3.cpp:
3097         (WebCore::RenderThemeGtk::adjustSliderThumbSize):
3098         * platform/qt/RenderThemeQt.cpp:
3099         (WebCore::RenderThemeQt::adjustSliderThumbStyle): ditto.
3100         (WebCore::RenderThemeQt::adjustSliderThumbSize):
3101         * rendering/RenderMediaControls.cpp:
3102         (WebCore::RenderMediaControls::adjustMediaSliderThumbSize):
3103         * rendering/RenderMediaControls.h:
3104         * rendering/RenderMediaControlsChromium.cpp:
3105         (WebCore::RenderMediaControlsChromium::adjustMediaSliderThumbSize):
3106         * rendering/RenderMediaControlsChromium.h:
3107         * rendering/RenderSlider.cpp:
3108         (WebCore::RenderSlider::layout): Passing RenderStyle* and remove a FIXME comment.
3109         * rendering/RenderTheme.cpp:
3110         (WebCore::RenderTheme::adjustSliderThumbStyle): Add a comment.
3111         (WebCore::RenderTheme::adjustSliderThumbSize):
3112         * rendering/RenderTheme.h:
3113         * rendering/RenderThemeChromiumLinux.cpp:
3114         (WebCore::RenderThemeChromiumLinux::adjustSliderThumbSize):
3115         * rendering/RenderThemeChromiumLinux.h:
3116         * rendering/RenderThemeChromiumMac.h:
3117         * rendering/RenderThemeChromiumMac.mm:
3118         (WebCore::RenderThemeChromiumMac::adjustMediaSliderThumbSize):
3119         * rendering/RenderThemeChromiumSkia.cpp:
3120         (WebCore::RenderThemeChromiumSkia::adjustSliderThumbSize):
3121         * rendering/RenderThemeChromiumSkia.h:
3122         * rendering/RenderThemeChromiumWin.cpp:
3123         (WebCore::RenderThemeChromiumWin::adjustSliderThumbSize):
3124         * rendering/RenderThemeChromiumWin.h:
3125         * rendering/RenderThemeMac.h:
3126         * rendering/RenderThemeMac.mm:
3127         (WebCore::RenderThemeMac::adjustSliderThumbStyle): Calls RenderTheme::adjustSliderThumbStyle().
3128         (WebCore::RenderThemeMac::adjustSliderThumbSize):
3129         (WebCore::RenderThemeMac::adjustMediaSliderThumbSize):
3130         * rendering/RenderThemeSafari.cpp:
3131         (WebCore::RenderThemeSafari::adjustSliderThumbStyle): Calls RenderTheme::adjustSliderThumbStyle().
3132         (WebCore::RenderThemeSafari::adjustSliderThumbSize):
3133         * rendering/RenderThemeSafari.h:
3134         * rendering/RenderThemeWin.cpp:
3135         (WebCore::RenderThemeWin::adjustSliderThumbSize):
3136         * rendering/RenderThemeWin.h:
3137         * rendering/RenderThemeWinCE.cpp:
3138         (WebCore::RenderThemeWinCE::adjustSliderThumbSize):
3139         * rendering/RenderThemeWinCE.h:
3140
3141 2011-06-08  Brian Salomon  <bsalomon@google.com>
3142
3143         Reviewed by James Robinson.
3144
3145         Avoid always binding FBO 0 implicitly when deleting FBO in DrawingBuffer code because it invalidates Ganesh's cache of the current FBO.
3146         https://bugs.webkit.org/show_bug.cgi?id=62318
3147
3148         Chromium-only crash
3149         Failures takes multiple seconds to occur, relying on JS garbage-collection to occur 
3150         http://www.hotbazooka.com/privatejoe-large
3151
3152         * platform/graphics/gpu/DrawingBuffer.cpp:
3153         (WebCore::DrawingBuffer::clear):
3154
3155 2011-06-08  Emil A Eklund  <eae@chromium.org>
3156
3157         Reviewed by Eric Seidel.
3158
3159         RenderEmbeddedObject::getReplacementTextGeometry
3160         https://bugs.webkit.org/show_bug.cgi?id=62313
3161
3162         Replace the last use of tx, ty with IntPoint.
3163
3164         Covered by existing tests.
3165
3166         * platform/graphics/FloatRect.h:
3167         (WebCore::FloatRect::move):
3168         (WebCore::FloatRect::moveBy):
3169         * rendering/RenderEmbeddedObject.cpp:
3170         (WebCore::RenderEmbeddedObject::paintReplaced):
3171         (WebCore::RenderEmbeddedObject::getReplacementTextGeometry):
3172         (WebCore::RenderEmbeddedObject::isInMissingPluginIndicator):
3173         * rendering/RenderEmbeddedObject.h:
3174
3175 2011-06-08  Tim Horton  <timothy_horton@apple.com>
3176
3177         Reviewed by Ryosuke Niwa.
3178
3179         Use correct CFURLStorageSessionRef definition on Leopard, as
3180         we created an inconsistency in const-ness between
3181         WebCoreSystemInterface.h and these two files in the case
3182         of Leopard only.
3183         https://bugs.webkit.org/show_bug.cgi?id=62223
3184
3185         * platform/network/ResourceHandle.h:
3186         * platform/network/cf/ResourceRequest.h:
3187
3188 2011-06-08  Sailesh Agrawal  <sail@chromium.org>
3189
3190         Reviewed by Mihai Parparita.
3191
3192         Chromium Mac: Enable overlay scrollbars
3193         https://bugs.webkit.org/show_bug.cgi?id=59756
3194
3195         Sync ScrollbarThemeChromiumMac.mm/.h with ScrollbarThemeMac.mm to pick up support for overlay scrollbars. The only changes are renaming ScrollbarThemeMac to ScrollbarThemeChromiumMac and using runtime checks instead of #ifdef's.
3196
3197         No new tests, since this code is only enabled on future versions of Mac OS X.
3198
3199         * platform/chromium/ScrollAnimatorChromiumMac.mm: All changes to this file except in scroll() were to swap #if USE(WK_SCROLLBAR_PAINTER) with runtime checks.
3200         (WebCore::ScrollAnimatorChromiumMac::ScrollAnimatorChromiumMac):
3201         (WebCore::ScrollAnimatorChromiumMac::~ScrollAnimatorChromiumMac):
3202         (WebCore::ScrollAnimatorChromiumMac::notityPositionChanged):
3203         (WebCore::ScrollAnimatorChromiumMac::contentAreaWillPaint):
3204         (WebCore::ScrollAnimatorChromiumMac::mouseEnteredContentArea):
3205         (WebCore::ScrollAnimatorChromiumMac::mouseExitedContentArea):
3206         (WebCore::ScrollAnimatorChromiumMac::mouseMovedInContentArea):
3207         (WebCore::ScrollAnimatorChromiumMac::willStartLiveResize):
3208         (WebCore::ScrollAnimatorChromiumMac::contentsResized):
3209         (WebCore::ScrollAnimatorChromiumMac::willEndLiveResize):
3210         (WebCore::ScrollAnimatorChromiumMac::contentAreaDidShow):
3211         (WebCore::ScrollAnimatorChromiumMac::contentAreaDidHide):
3212         (WebCore::ScrollAnimatorChromiumMac::didBeginScrollGesture):
3213         (WebCore::ScrollAnimatorChromiumMac::didEndScrollGesture):
3214         (WebCore::ScrollAnimatorChromiumMac::didAddVerticalScrollbar):
3215         (WebCore::ScrollAnimatorChromiumMac::willRemoveVerticalScrollbar):
3216         (WebCore::ScrollAnimatorChromiumMac::didAddHorizontalScrollbar):
3217         (WebCore::ScrollAnimatorChromiumMac::willRemoveHorizontalScrollbar):
3218         (WebCore::ScrollAnimatorChromiumMac::cancelAnimations):
3219         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
3220         (preferredScrollerStyle): Disabled overlay scrollbar styles due to trailing artifacts.
3221         (wkScrollbarPainterPaint): Fixed a problem where the scrollbar track wasn't being drawn.
3222         (wkScrollbarPainterKnobRect): Implemented a previously unimplemented function.
3223         (wkSetScrollbarPainterKnobStyle): Implemented a function that's now supported by the latest Mac OS X seeds.
3224         (isScrollbarOverlayAPIAvailable): Enabled new scrollbar code.
3225         * platform/chromium/ScrollbarThemeChromiumMac.h:
3226         * platform/chromium/ScrollbarThemeChromiumMac.mm: Sync with ScrollbarThemeMac.mm.
3227         (WebCore::scrollbarMap):
3228         (+[ScrollbarPrefsObserver appearancePrefsChanged:]):
3229         (WebCore::updateArrowPlacement):
3230         (WebCore::ScrollbarThemeChromiumMac::registerScrollbar):
3231         (WebCore::ScrollbarThemeChromiumMac::unregisterScrollbar):
3232         (WebCore::ScrollbarThemeChromiumMac::setNewPainterForScrollbar):
3233         (WebCore::ScrollbarThemeChromiumMac::painterForScrollbar):
3234         (WebCore::ScrollbarThemeChromiumMac::scrollbarThickness):
3235         (WebCore::ScrollbarThemeChromiumMac::usesOverlayScrollbars):
3236         (WebCore::ScrollbarThemeChromiumMac::hasButtons):
3237         (WebCore::ScrollbarThemeChromiumMac::hasThumb):
3238         (WebCore::buttonRepaintRect):
3239         (WebCore::ScrollbarThemeChromiumMac::minimumThumbLength):
3240         (WebCore::ScrollbarThemeChromiumMac::shouldDragDocumentInsteadOfThumb):
3241         (WebCore::toScrollbarPainterKnobStyle):
3242         (WebCore::ScrollbarThemeChromiumMac::paint):
3243
3244 2011-06-06  Nate Chapin  <japhet@chromium.org>
3245
3246         Reviewed by Adam Barth.
3247
3248         Remove all knowledge of CachedResourceRequests from
3249         CachedResourceLoader. This puts the full burden of
3250         canceling these requests on DocumentLoader (via
3251         SubresourceLoader), and makes a CachedResourceRequest
3252         an OwnPtr in CachedResource.
3253
3254         https://bugs.webkit.org/show_bug.cgi?id=62308
3255
3256         * loader/FrameLoader.cpp:
3257         (WebCore::FrameLoader::stopLoading):
3258         * loader/cache/CachedResource.cpp:
3259         (WebCore::CachedResource::CachedResource):
3260         (WebCore::CachedResource::load):
3261         (WebCore::CachedResource::stopLoading):
3262         * loader/cache/CachedResource.h:
3263         * loader/cache/CachedResourceLoader.cpp:
3264         (WebCore::CachedResourceLoader::~CachedResourceLoader):
3265         (WebCore::CachedResourceLoader::loadDone):
3266         * loader/cache/CachedResourceLoader.h:
3267         * loader/cache/CachedResourceRequest.cpp:
3268         (WebCore::CachedResourceRequest::CachedResourceRequest):
3269         (WebCore::CachedResourceRequest::~CachedResourceRequest):
3270         (WebCore::CachedResourceRequest::load):
3271         (WebCore::CachedResourceRequest::didFinishLoading):
3272         (WebCore::CachedResourceRequest::didFail):
3273         (WebCore::CachedResourceRequest::didReceiveResponse):
3274         (WebCore::CachedResourceRequest::end):
3275         * loader/cache/CachedResourceRequest.h:
3276
3277 2011-06-08  Mike Reed  <reed@google.com>
3278
3279         Reviewed by James Robinson.
3280
3281         [Skia] check for null-shader from gradient factory
3282         https://bugs.webkit.org/show_bug.cgi?id=62319
3283
3284         * platform/graphics/skia/GradientSkia.cpp:
3285         (WebCore::Gradient::platformDestroy):
3286         (WebCore::Gradient::platformGradient):
3287
3288 2011-06-08  Kenneth Russell  <kbr@google.com>
3289
3290         Reviewed by Adam Barth.
3291
3292         Disallow use of cross-domain media (images, video) in WebGL
3293         https://bugs.webkit.org/show_bug.cgi?id=62257
3294
3295         Updated WebGL implementation to track recent spec updates in this area.
3296
3297         Tests: http/tests/security/webgl-remote-read-remote-image-allowed-with-credentials.html
3298                http/tests/security/webgl-remote-read-remote-image-allowed.html
3299                http/tests/security/webgl-remote-read-remote-image-blocked-no-crossorigin.html
3300
3301         * html/canvas/CanvasRenderingContext.cpp:
3302         (WebCore::CanvasRenderingContext::wouldTaintOrigin):
3303         (WebCore::CanvasRenderingContext::checkOrigin):
3304         * html/canvas/CanvasRenderingContext.h:
3305         (WebCore::CanvasRenderingContext::checkOrigin):
3306         * html/canvas/WebGLRenderingContext.cpp:
3307         (WebCore::WebGLRenderingContext::readPixels):
3308         (WebCore::WebGLRenderingContext::texImage2D):
3309         (WebCore::WebGLRenderingContext::videoFrameToImage):
3310         (WebCore::WebGLRenderingContext::texSubImage2D):
3311         * html/canvas/WebGLRenderingContext.h:
3312
3313 2011-06-08  John Bauman  <jbauman@chromium.org>
3314
3315         Reviewed by James Robinson.
3316
3317         Only draw portions of tiles in contentRect
3318         https://bugs.webkit.org/show_bug.cgi?id=62243
3319
3320         Old garbage data can remain in tiles, so make sure to draw only those
3321         portions that are supposed to be drawn.
3322
3323         Test: compositing/repaint/shrink-layer.html
3324
3325         * platform/graphics/chromium/LayerTilerChromium.cpp:
3326         (WebCore::LayerTilerChromium::draw):
3327
3328 2011-06-08  Emil A Eklund  <eae@chromium.org>
3329
3330         Reviewed by Eric Seidel.
3331
3332         Convert RenderBlock::isPointInOverflowControl to IntPoint
3333         https://bugs.webkit.org/show_bug.cgi?id=62312
3334
3335         Covered by existing tests.
3336
3337         * rendering/RenderBlock.cpp:
3338         (WebCore::RenderBlock::isPointInOverflowControl):
3339         (WebCore::RenderBlock::nodeAtPoint):
3340         * rendering/RenderBlock.h:
3341         * rendering/RenderListBox.cpp:
3342         (WebCore::RenderListBox::isPointInOverflowControl):
3343         * rendering/RenderListBox.h:
3344
3345 2011-06-08  James Simonsen  <simonjam@chromium.org>
3346
3347         Reviewed by Tony Gentilcore.
3348
3349         Fix clang issue, virtual function const mismatch
3350         https://bugs.webkit.org/show_bug.cgi?id=62307
3351
3352         No new tests. Built with clang & ran layout tests.
3353
3354         * page/MediaStreamFrameController.h:
3355         (WebCore::MediaStreamFrameController::GenericClient::isGenericClient):
3356
3357 2011-06-08  Chris Rogers  <crogers@google.com>
3358
3359         Reviewed by Kenneth Russell.
3360
3361         Implement BiquadFilterNode for filter types: LOWPASS, HIGHPASS, BANDPASS, LOWSHELF, HIGHSHELF, PEAKING, NOTCH, ALLPASS
3362         https://bugs.webkit.org/show_bug.cgi?id=62078
3363
3364         No new tests since audio API is not yet implemented.
3365
3366         * DerivedSources.make:
3367         * WebCore.gypi:
3368         * WebCore.xcodeproj/project.pbxproj:
3369         * platform/audio/Biquad.cpp:
3370         (WebCore::Biquad::Biquad):
3371         (WebCore::Biquad::reset):
3372         (WebCore::Biquad::setLowpassParams):
3373         (WebCore::Biquad::setHighpassParams):
3374         (WebCore::Biquad::setNormalizedCoefficients):
3375         (WebCore::Biquad::setLowShelfParams):
3376         (WebCore::Biquad::setHighShelfParams):
3377         (WebCore::Biquad::setPeakingParams):
3378         (WebCore::Biquad::setAllpassParams):
3379         (WebCore::Biquad::setNotchParams):
3380         (WebCore::Biquad::setBandpassParams):
3381         (WebCore::Biquad::setZeroPolePairs):
3382         (WebCore::Biquad::setAllpassPole):
3383         * platform/audio/Biquad.h:
3384         * webaudio/AudioContext.cpp:
3385         (WebCore::AudioContext::createBiquadFilter):
3386         (WebCore::AudioContext::createLowPass2Filter):
3387         (WebCore::AudioContext::createHighPass2Filter):
3388         * webaudio/AudioContext.h:
3389         * webaudio/AudioContext.idl:
3390         * webaudio/AudioNode.h:
3391         * webaudio/BiquadDSPKernel.cpp:
3392         (WebCore::BiquadDSPKernel::process):
3393         * webaudio/BiquadFilterNode.cpp: Added.
3394         (WebCore::BiquadFilterNode::BiquadFilterNode):
3395         * webaudio/BiquadFilterNode.h: Added.
3396         (WebCore::BiquadFilterNode::create):
3397         (WebCore::BiquadFilterNode::type):
3398         (WebCore::BiquadFilterNode::setType):
3399         (WebCore::BiquadFilterNode::frequency):
3400         (WebCore::BiquadFilterNode::q):
3401         (WebCore::BiquadFilterNode::gain):
3402         (WebCore::BiquadFilterNode::biquadProcessor):
3403         * webaudio/BiquadFilterNode.idl: Added.
3404         * webaudio/BiquadProcessor.cpp:
3405         (WebCore::BiquadProcessor::BiquadProcessor):
3406         * webaudio/BiquadProcessor.h:
3407         (WebCore::BiquadProcessor::setType):
3408         * webaudio/HighPass2FilterNode.cpp:
3409         (WebCore::HighPass2FilterNode::HighPass2FilterNode):
3410         * webaudio/LowPass2FilterNode.cpp:
3411         (WebCore::LowPass2FilterNode::LowPass2FilterNode):
3412
3413 2011-06-08  No'am Rosenthal  <noam.rosenthal@nokia.com>
3414
3415         Reviewed by Kenneth Rohde Christiansen.
3416
3417         WebKit2: Enable serializing of data types needed for cross-process accelerated compositing
3418         https://bugs.webkit.org/show_bug.cgi?id=61694
3419
3420         No new tests, code path is not activated yet.
3421
3422         * WebCore.xcodeproj/project.pbxproj: Changed the TransformOperation subclassed from "project" to "private"
3423
3424 2011-06-08  Tom Sepez  <tsepez@chromium.org>
3425
3426         Reviewed by Adam Barth.
3427
3428         Cause checks for insecure content blocking policy to callback to client.
3429         https://bugs.webkit.org/show_bug.cgi?id=61946
3430         Tests: platform/chromium/http/tests/security/mixedContent/insecure-image-in-main-frame-allowed.html
3431                platform/chromium/http/tests/security/mixedContent/insecure-image-in-main-frame-blocked.html
3432                platform/chromium/http/tests/security/mixedContent/insecure-script-in-main-frame-allowed.html
3433                platform/chromium/http/tests/security/mixedContent/insecure-script-in-main-frame-blocked.html
3434
3435         * loader/FrameLoader.cpp:
3436         (WebCore::FrameLoader::checkIfDisplayInsecureContent):
3437         (WebCore::FrameLoader::checkIfRunInsecureContent):
3438         * loader/FrameLoaderClient.h:
3439         (WebCore::FrameLoaderClient::allowDisplayingInsecureContent):
3440         (WebCore::FrameLoaderClient::allowRunningInsecureContent):
3441
3442 2011-06-08  Kevin Ollivier  <kevino@theolliviers.com>
3443
3444         [wx] Build fix after introduction of FontCache::ShouldRetain
3445
3446         * platform/graphics/wx/FontCacheWx.cpp:
3447         (WebCore::FontCache::getFontDataForCharacters):
3448
3449 2011-06-08  Sheriff Bot  <webkit.review.bot@gmail.com>
3450
3451         Unreviewed, rolling out r88365.
3452         http://trac.webkit.org/changeset/88365
3453         https://bugs.webkit.org/show_bug.cgi?id=62301
3454
3455         windows bots broken (Requested by loislo_ on #webkit).
3456
3457         * inspector/InspectorValues.cpp:
3458         (WebCore::InspectorBasicValue::writeJSON):
3459
3460 2011-06-08  Mikołaj Małecki  <m.malecki@samsung.com>
3461
3462         Reviewed by Pavel Feldman.
3463
3464         Web Inspector: Crash by buffer overrun crash when serializing inspector object tree.
3465         https://bugs.webkit.org/show_bug.cgi?id=52791
3466
3467         No new tests. The problem can be reproduced by trying to create InspectorValue
3468         from 1.0e-100 and call ->toJSONString() on this.
3469
3470         * inspector/InspectorValues.cpp:
3471         (WebCore::InspectorBasicValue::writeJSON):
3472         Added checking the predicted buffer size and choosing exponential format, or
3473         eventually "NaN" if the buffer is too small for decimal format.
3474
3475 2011-06-08  Nico Weber  <thakis@chromium.org>
3476
3477         Reviewed by Darin Adler.
3478
3479         Fix a ?: precedence error in ScrollbarThemeMac and ScrollbarThemeChromium
3480         https://bugs.webkit.org/show_bug.cgi?id=62295
3481
3482         This was found by a new warning recently added to clang's -Wparentheses
3483
3484         * platform/chromium/ScrollbarThemeChromiumMac.mm:
3485         (WebCore::ScrollbarThemeChromiumMac::backButtonRect):
3486         * platform/mac/ScrollbarThemeMac.mm:
3487         (WebCore::ScrollbarThemeMac::backButtonRect):
3488
3489 2011-06-08  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3490
3491         Reviewed by Andreas Kling.
3492
3493         [Qt] Remove dead code from our JSC bridge
3494         https://bugs.webkit.org/show_bug.cgi?id=62287
3495
3496         The m_defaultMethod member is not used since r36848 and QtMethod
3497         was replaced by QtRuntimeMethod and subclasses in r29729.
3498
3499         * bridge/qt/qt_instance.cpp:
3500         (JSC::Bindings::QtInstance::removeCachedMethod):
3501         (JSC::Bindings::QtInstance::visitAggregate):
3502         * bridge/qt/qt_instance.h:
3503         * bridge/qt/qt_runtime.h:
3504
3505 2011-06-08  Ryan Sleevi  <rsleevi@chromium.org>
3506
3507         Reviewed by Tony Chang.
3508
3509         Suppress C++0x compat warnings when compiling Chromium port with GCC 4.6
3510
3511         Compiling Chromium port under GCC 4.6 produces warnings about nullptr
3512         https://bugs.webkit.org/show_bug.cgi?id=62242
3513
3514         * WebCore.gyp/WebCore.gyp:
3515
3516 2011-05-25  Xiaomei Ji  <xji@chromium.org>
3517
3518         Reviewed by Ryosuke Niwa.
3519
3520         --webkit-visual-word does not work well in words separated by multiple spaces
3521         https://bugs.webkit.org/show_bug.cgi?id=61324
3522
3523         Remove positionBeforeNextWord and positionAfterPreviousWord short-cuts. They try to find the
3524         right word boundary (before the space or after the space) by using previousWordPosition and
3525         nextWordPosition. But they assume words are separated by single space and are not correct 
3526         for words separated by multiple spaces and words not separated by space.
3527
3528         Consider positionBeforeNextWord() for example, 
3529
3530         First, it checks whether the current position is after the current word by checking current
3531         position's previousWordPosition's nextWordPosition is the same as current position, which is
3532         wrong for words separated by multiple spaces. For example, given words A and B separated by 
3533         3 continuous spaces "A   B", position "A|", "A |", and "A  |" should all be considered as 
3534         position after current word. But for position "A |", its previousWordPosition's 
3535         nextWordPosition is position "A|", which is different from its current position, so the
3536         current position is not considered as a position after current word, consequently,
3537         instead of returning the right position as "A   |B", positionBeforeNextWord returns the
3538         position before next next word, as "A   B |C". Similar happens for position "A  |".
3539
3540         Second, given 3 Chinese words "ABC" that are not segmented by space, when cursor is at 
3541         "A|BC", positionBeforeNextWord() returns the same position after calling current position's
3542         nextWordPosition's previousWordPosition. It should returns position "AB|C".
3543
3544         For those cases, we will have to collect all the word breaks inside the box and look for
3545         the one at left or right of current position.
3546
3547         * editing/visible_units.cpp:
3548         (WebCore::leftWordPosition):
3549         (WebCore::rightWordPosition):
3550
3551 2011-06-08  Greg Simon  <gregsimon@chromium.org>
3552
3553         Reviewed by Dimitri Glazkov.
3554
3555         Control Indexeddb backends from LayoutTestController
3556         https://bugs.webkit.org/show_bug.cgi?id=61000
3557
3558         Test: storage/indexeddb/migrate-basics.html
3559
3560         * storage/IDBBackingStore.h:
3561         * storage/IDBFactoryBackendImpl.cpp:
3562         (WebCore::IDBFactoryBackendImpl::open):
3563         (WebCore::IDBFactoryBackendImpl::migrate):
3564         * storage/IDBFactoryBackendImpl.h:
3565         * storage/IDBFactoryBackendInterface.h:
3566         * storage/IDBLevelDBBackingStore.cpp:
3567         (WebCore::IDBLevelDBBackingStore::backingStoreExists):
3568         * storage/IDBLevelDBBackingStore.h:
3569         (WebCore::IDBLevelDBBackingStore::backingStoreType):
3570         * storage/IDBSQLiteBackingStore.cpp:
3571         (WebCore::IDBSQLiteBackingStore::backingStoreExists):
3572         * storage/IDBSQLiteBackingStore.h:
3573         (WebCore::IDBSQLiteBackingStore::backingStoreType):
3574
3575 2011-06-08  Dmitry Lomov  <dslomov@google.com>
3576
3577         Reviewed by Adam Barth.
3578
3579         https://bugs.webkit.org/show_bug.cgi?id=62164
3580         Remove "multi-threaded" logic in V8 DOMData, DOMDataStore and friends
3581         This functionality is untested and unused:
3582         This is an old code from Lockers-based implementation of WebWorkers in
3583         V8 bindings, to make sure that DOM objects are released on the right thread
3584         even though GC could have happened on any thread. It is currently unused (since
3585         current model is one worker per process) and is being removed because new implementation
3586         of WebWorkers will be using V8 isolates.
3587
3588         * WebCore.gypi:
3589         * WebCore.pro:
3590         * bindings/v8/ChildThreadDOMData.cpp: Removed.
3591         * bindings/v8/ChildThreadDOMData.h: Removed.
3592         * bindings/v8/DOMData.cpp:
3593         (WebCore::DOMData::DOMData):
3594         (WebCore::DOMData::getCurrent):
3595         (WebCore::DOMData::getMainThreadStore):
3596         * bindings/v8/DOMData.h:
3597         (WebCore::DOMData::getStore):
3598         (WebCore::DOMData::getCurrentMainThreadStore):
3599         (WebCore::DOMData::handleWeakObject):
3600         * bindings/v8/DOMDataStore.cpp:
3601         (WebCore::DOMDataStore::DOMDataStore):
3602         (WebCore::DOMDataStore::~DOMDataStore):
3603         (WebCore::DOMDataStore::weakNodeCallback):
3604         * bindings/v8/DOMDataStore.h:
3605         * bindings/v8/MainThreadDOMData.cpp: Removed.
3606         * bindings/v8/MainThreadDOMData.h: Removed.
3607         * bindings/v8/V8DOMMap.cpp:
3608         (WebCore::getDOMDataStore):
3609         (WebCore::removeAllDOMObjects):
3610         (WebCore::visitDOMNodes):
3611         (WebCore::visitDOMObjects):
3612         (WebCore::visitActiveDOMObjects):
3613         (WebCore::visitDOMSVGElementInstances):
3614         * bindings/v8/V8DOMMap.h:
3615         * bindings/v8/V8GCController.cpp:
3616         (WebCore::V8GCController::gcPrologue):
3617         (WebCore::V8GCController::gcEpilogue):
3618         * bindings/v8/WorkerScriptController.cpp:
3619         (WebCore::WorkerScriptController::~WorkerScriptController):
3620
3621 2011-06-08  Yael Aharon  <yael.aharon@nokia.com>
3622
3623         Reviewed by Andreas Kling.
3624
3625         [Qt] Build fix for building QtWebKit inside of Qt.
3626         https://bugs.webkit.org/show_bug.cgi?id=62280
3627
3628         Remove CONFIG=staticlib, because it causes the configure script to add -lwebcore
3629         into QtWebKit.prl.
3630
3631         No new tests, as this is just a build fix.
3632
3633         * WebCore.pri:
3634
3635 2011-06-08  Vsevolod Vlasov  <vsevik@chromium.org>
3636
3637         Reviewed by Pavel Feldman.
3638
3639         Web Inspector: Render non-document HTML resources as HTML
3640         https://bugs.webkit.org/show_bug.cgi?id=58886
3641
3642         * English.lproj/localizedStrings.js:
3643         * WebCore.gypi:
3644         * WebCore.vcproj/WebCore.vcproj:
3645         * inspector/front-end/NetworkItemView.js:
3646         (WebInspector.NetworkItemView):
3647         * inspector/front-end/Resource.js:
3648         (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType):
3649         (WebInspector.Resource.prototype.hasErrorStatusCode):
3650         * inspector/front-end/ResourceHTMLView.js: Added.
3651         (WebInspector.ResourceHTMLView):
3652         (WebInspector.ResourceHTMLView.prototype.hasContent):
3653         (WebInspector.ResourceHTMLView.prototype.show):
3654         (WebInspector.ResourceHTMLView.prototype.hide):
3655         (WebInspector.ResourceHTMLView.prototype._createIFrame):
3656         * inspector/front-end/ResourcePreviewView.js: Added.
3657         (WebInspector.ResourcePreviewView):
3658         (WebInspector.ResourcePreviewView.prototype.hasContent):
3659         (WebInspector.ResourcePreviewView.prototype.show):
3660         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown.callback):
3661         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown):
3662         (WebInspector.ResourcePreviewView.prototype._createInnerView):
3663         * inspector/front-end/Settings.js:
3664         (WebInspector.Settings):
3665         * inspector/front-end/WebKit.qrc:
3666         * inspector/front-end/inspector.css:
3667         (.resource-view.html iframe):
3668         * inspector/front-end/inspector.html:
3669
3670 2011-05-18  Pavel Podivilov  <podivilov@chromium.org>
3671
3672         Reviewed by Yury Semikhatsky.
3673
3674         Web Inspector: hide script location to ui location conversion details from ScriptsPanel.
3675         https://bugs.webkit.org/show_bug.cgi?id=61035
3676
3677         * inspector/front-end/DebuggerPresentationModel.js:
3678         (WebInspector.DebuggerPresentationModel.prototype.sourceFileForScriptURL):
3679         (WebInspector.DebuggerPresentationModel.prototype.scriptLocationToUILocation.didRequestSourceMapping):
3680         (WebInspector.DebuggerPresentationModel.prototype.scriptLocationToUILocation):
3681         * inspector/front-end/ScriptsPanel.js:
3682         (WebInspector.ScriptsPanel.prototype.showAnchorLocation.didGetUILocation):
3683         (WebInspector.ScriptsPanel.prototype.showAnchorLocation):
3684
3685 2011-06-08  Tommy Widenflycht  <tommyw@google.com>
3686
3687         Reviewed by Tony Gentilcore.
3688
3689         StreamEvent
3690
3691         Media Stream PeerConnection API: adding StreamEvent class
3692         https://bugs.webkit.org/show_bug.cgi?id=61537
3693
3694         Tests for the Media Stream API will be provided by the bug 56587.
3695
3696         * CMakeLists.txt:
3697         * CodeGenerators.pri:
3698         * DerivedSources.cpp:
3699         * DerivedSources.make:
3700         * GNUmakefile.list.am:
3701         * WebCore.gypi:
3702         * WebCore.pro:
3703         * WebCore.vcproj/WebCore.vcproj:
3704         * WebCore.xcodeproj/project.pbxproj:
3705         * bindings/js/JSEventCustom.cpp:
3706         (WebCore::toJS):
3707         * bindings/v8/custom/V8EventCustom.cpp:
3708         (WebCore::toV8):
3709         * dom/DOMAllInOne.cpp:
3710         * dom/Event.cpp:
3711         (WebCore::Event::isStreamEvent):
3712         * dom/Event.h:
3713         * dom/StreamEvent.cpp: Added.
3714         (WebCore::StreamEvent::create):
3715         (WebCore::StreamEvent::StreamEvent):
3716         (WebCore::StreamEvent::~StreamEvent):
3717         (WebCore::StreamEvent::initStreamEvent):
3718         (WebCore::StreamEvent::stream):
3719         * dom/StreamEvent.h: Added.
3720         (WebCore::StreamEvent::isStreamEvent):
3721         * dom/StreamEvent.idl: Added.
3722
3723 2011-06-08  Tommy Widenflycht  <tommyw@google.com>
3724
3725         Reviewed by Tony Gentilcore.
3726
3727         Media Stream API: integrate the Track List objects into the existing code.
3728         https://bugs.webkit.org/show_bug.cgi?id=60205
3729
3730         Tests for the Media Stream API will be provided by the bug 56587.
3731
3732         * dom/ExclusiveTrackList.cpp:
3733         (WebCore::ExclusiveTrackList::select):
3734         (WebCore::ExclusiveTrackList::trackFailed):
3735         * dom/ExclusiveTrackList.h:
3736         * dom/GeneratedStream.cpp:
3737         (WebCore::GeneratedStream::create):
3738         (WebCore::GeneratedStream::GeneratedStream):
3739         (WebCore::GeneratedStream::streamEnded):
3740         (WebCore::GeneratedStream::audioTracks):
3741         (WebCore::GeneratedStream::videoTracks):
3742         (WebCore::GeneratedStream::stop):
3743         * dom/GeneratedStream.h:
3744         * dom/GeneratedStream.idl:
3745         * dom/MultipleTrackList.cpp:
3746         (WebCore::MultipleTrackList::trackFailed):
3747         (WebCore::MultipleTrackList::enable):
3748         (WebCore::MultipleTrackList::disable):
3749         * dom/MultipleTrackList.h:
3750         * dom/Stream.h:
3751         * dom/TrackList.cpp:
3752         (WebCore::TrackList::clear):
3753         (WebCore::TrackList::associateStream):
3754         (WebCore::TrackList::associatedStreamLabel):
3755         (WebCore::TrackList::trackFailed):
3756         (WebCore::TrackList::scriptExecutionContext):
3757         * dom/TrackList.h:
3758         * page/MediaStreamClient.h:
3759         * page/MediaStreamController.cpp:
3760         (WebCore::MediaStreamController::enableAudioTrack):
3761         (WebCore::MediaStreamController::disableAudioTrack):
3762         (WebCore::MediaStreamController::selectVideoTrack):
3763         (WebCore::MediaStreamController::streamGenerated):
3764         (WebCore::MediaStreamController::audioTrackFailed):
3765         (WebCore::MediaStreamController::videoTrackFailed):
3766         * page/MediaStreamController.h:
3767         * page/MediaStreamFrameController.cpp:
3768         (WebCore::MediaStreamFrameController::unregister):
3769         (WebCore::MediaStreamFrameController::enterDetachedState):
3770         (WebCore::MediaStreamFrameController::disconnectFrame):
3771         (WebCore::MediaStreamFrameController::enableAudioTrack):
3772         (WebCore::MediaStreamFrameController::disableAudioTrack):
3773         (WebCore::MediaStreamFrameController::selectVideoTrack):
3774         (WebCore::MediaStreamFrameController::streamGenerated):
3775         (WebCore::MediaStreamFrameController::audioTrackFailed):
3776         (WebCore::MediaStreamFrameController::videoTrackFailed):
3777         * page/MediaStreamFrameController.h:
3778         (WebCore::MediaStreamFrameController::ClientBase::isGenericClient):
3779         (WebCore::MediaStreamFrameController::GenericClient::GenericClient):
3780         (WebCore::MediaStreamFrameController::GenericClient::~GenericClient):
3781         (WebCore::MediaStreamFrameController::GenericClient::isGenericClient):
3782         (WebCore::MediaStreamFrameController::GenericClient::unregister):
3783
3784 2011-06-08  Pavel Podivilov  <podivilov@chromium.org>
3785
3786         Reviewed by Yury Semikhatsky.
3787
3788         Web Inspector: [REGRESSION] breakpoints are not persisted.
3789         https://bugs.webkit.org/show_bug.cgi?id=62273
3790
3791         * inspector/front-end/Settings.js:
3792
3793 2011-06-08  Alexander Pavlov  <apavlov@chromium.org>
3794
3795         Reviewed by Yury Semikhatsky.
3796
3797         Web Inspector: node selection is slow in the Elements panel.
3798         https://bugs.webkit.org/show_bug.cgi?id=60813
3799
3800         Schedule full style updates rather than request all node styles from the backend immediately.
3801
3802         * inspector/front-end/StylesSidebarPane.js:
3803         (WebInspector.StylesSidebarPane.prototype.update.reloadAllStyles):
3804         (WebInspector.StylesSidebarPane.prototype.update):
3805
3806 2011-06-08  Andreas Kling  <andreas.kling@nokia.com>
3807
3808         Reviewed by Laszlo Gombos.
3809
3810         [Symbian] Float{32,64}Array and Int16Array fail to build.
3811         https://bugs.webkit.org/show_bug.cgi?id=62219
3812
3813         For some reason, RVCT 2.x is moaning about "class member designated by
3814         a using-declaration must be visible in a direct base class".
3815         Apply same fix as r69122 and r76592.
3816
3817         * html/canvas/Float32Array.h:
3818         (WebCore::Float32Array::set):
3819         * html/canvas/Float64Array.h:
3820         (WebCore::Float64Array::set):
3821         * html/canvas/Int16Array.h:
3822         (WebCore::Int16Array::set):
3823
3824 2011-06-08  Syed Idris Shah  <syed.idris-shah@nokia.com>
3825
3826         Reviewed by Andreas Kling.
3827
3828         [Qt] GL_POINT_SPRITE and GL_VERTEX_PROGRAM_POINT_SIZE should be enabled for desktop WebGL
3829         https://bugs.webkit.org/show_bug.cgi?id=61945
3830
3831         For OpenGL ES we do not need these features. 
3832         These features are available via shaders in OpenGL ES. But for desktop WebGL using QtWebKit they should be enabled.
3833
3834         LayoutTests/fast/canvas/webgl/point-size.html
3835
3836         * platform/graphics/qt/GraphicsContext3DQt.cpp:
3837         (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
3838
3839 2011-06-08  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3840
3841         Unreviewed. Fix style error.
3842
3843         * platform/efl/RenderThemeEfl.cpp:
3844         * platform/efl/RenderThemeEfl.h:
3845
3846 2011-06-08  Hironori Bono  <hbono@chromium.org>
3847
3848         Reviewed by Brent Fulgham.
3849
3850         Add SpellCheck API
3851         https://bugs.webkit.org/show_bug.cgi?id=59693
3852
3853         This change adds two SpellCheck API functions (addSpellcheckRange and
3854         removeSpellcheckRange) and one attribute (spellcheckRange) discussed in
3855         the public-webapps ML. This change is currently available only on Chromium.
3856
3857         Tests: editing/spelling/spellcheck-api-pixel.html
3858                editing/spelling/spellcheck-api.html
3859
3860         * WebCore.gypi:
3861         * bindings/generic/RuntimeEnabledFeatures.cpp:
3862         * bindings/generic/RuntimeEnabledFeatures.h:
3863         (WebCore::RuntimeEnabledFeatures::spellCheckAPIEnabled):
3864         (WebCore::RuntimeEnabledFeatures::setSpellCheckAPIEnabled):
3865         * dom/DocumentMarker.h:
3866         (WebCore::DocumentMarker::length):
3867         * dom/DocumentMarkerController.cpp:
3868         (WebCore::DocumentMarkerController::userSpellingMarkersForNode):
3869         (WebCore::DocumentMarkerController::addUserSpellingMarker):
3870         (WebCore::DocumentMarkerController::removeUserSpellingMarker):
3871         (WebCore::DocumentMarkerController::userSpellingNode):
3872         * dom/DocumentMarkerController.h:
3873         * html/HTMLDivElement.cpp:
3874         (WebCore::HTMLDivElement::spellcheckRanges):
3875         (WebCore::HTMLDivElement::addSpellcheckRange):
3876         (WebCore::HTMLDivElement::removeSpellcheckRange):
3877         * html/HTMLDivElement.h:
3878         * html/HTMLDivElement.idl:
3879         * html/HTMLInputElement.cpp:
3880         (WebCore::HTMLInputElement::spellcheckRanges):
3881         (WebCore::HTMLInputElement::addSpellcheckRange):
3882         (WebCore::HTMLInputElement::removeSpellcheckRange):
3883         * html/HTMLInputElement.h:
3884         * html/HTMLInputElement.idl:
3885         * html/HTMLTextAreaElement.cpp:
3886         (WebCore::HTMLTextAreaElement::spellcheckRanges):
3887         (WebCore::HTMLTextAreaElement::addSpellcheckRange):
3888         (WebCore::HTMLTextAreaElement::removeSpellcheckRange):
3889         * html/HTMLTextAreaElement.h:
3890         * html/HTMLTextAreaElement.idl:
3891         * html/SpellcheckRange.cpp: Added.
3892         (WebCore::SpellcheckRange::SpellcheckRange):
3893         (WebCore::SpellcheckRange::~SpellcheckRange):
3894         * html/SpellcheckRange.h: Added.
3895         (WebCore::SpellcheckRange::create):
3896         (WebCore::SpellcheckRange::start):
3897         (WebCore::SpellcheckRange::length):
3898         (WebCore::SpellcheckRange::suggestions):
3899         (WebCore::SpellcheckRange::options):
3900         * html/SpellcheckRange.idl: Added.
3901         * html/SpellcheckRangeList.cpp: Added.
3902         (WebCore::SpellcheckRangeList::SpellcheckRangeList):
3903         (WebCore::SpellcheckRangeList::~SpellcheckRangeList):
3904         (WebCore::SpellcheckRangeList::item):
3905         * html/SpellcheckRangeList.h: Added.
3906         (WebCore::SpellcheckRangeList::create):
3907         (WebCore::SpellcheckRangeList::isEmpty):
3908         (WebCore::SpellcheckRangeList::clear):
3909         (WebCore::SpellcheckRangeList::append):
3910         (WebCore::SpellcheckRangeList::remove):
3911         (WebCore::SpellcheckRangeList::length):
3912         * html/SpellcheckRangeList.idl: Added.
3913         * rendering/InlineTextBox.cpp:
3914         (WebCore::textCheckingLineStyleForMarkerType):
3915         (WebCore::InlineTextBox::paintDocumentMarkers):
3916
3917 2011-06-07  Andrey Kosyakov  <caseq@chromium.org>
3918
3919         Reviewed by Pavel Feldman.
3920
3921         Web Inspector: remove shadow dom inspection from Elements panel by default.
3922         https://bugs.webkit.org/show_bug.cgi?id=62188
3923
3924         This reverts r85751
3925
3926         * dom/Element.cpp:
3927         (WebCore::Element::ensureShadowRoot):
3928         (WebCore::Element::removeShadowRoot):
3929         * inspector/Inspector.json:
3930         * inspector/InspectorDOMAgent.cpp:
3931         (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
3932         (WebCore::InspectorDOMAgent::buildObjectForNode):
3933         (WebCore::InspectorDOMAgent::didInsertDOMNode):
3934         (WebCore::InspectorDOMAgent::didRemoveDOMNode):
3935         * inspector/InspectorDOMAgent.h:
3936         * inspector/front-end/DOMAgent.js:
3937         (WebInspector.DOMNode):
3938         (WebInspector.DOMNode.prototype._renumber):
3939         (WebInspector.DOMAgent.prototype._bindNodes):
3940         (WebInspector.DOMAgent.prototype.querySelectorAll):
3941         (WebInspector.DOMDispatcher.prototype.searchResults):
3942         * inspector/front-end/ElementsPanel.js:
3943         (WebInspector.ElementsPanel):
3944         (WebInspector.ElementsPanel.prototype._attributesUpdated):
3945         (WebInspector.ElementsPanel.prototype._characterDataModified):
3946         (WebInspector.ElementsPanel.prototype._nodeInserted):
3947         (WebInspector.ElementsPanel.prototype._nodeRemoved):
3948         (WebInspector.ElementsPanel.prototype.updateModifiedNodes):
3949         (WebInspector.ElementsPanel.prototype.updateBreadcrumb):
3950         * inspector/front-end/ElementsTreeOutline.js:
3951         (WebInspector.ElementsTreeElement):
3952         (WebInspector.ElementsTreeElement.prototype._updateChildren.updateChildrenOfNode):
3953         (WebInspector.ElementsTreeElement.prototype._updateChildren):
3954         ():
3955         * inspector/front-end/inspector.css:
3956         * inspector/front-end/utilities.js:
3957         (Element.prototype.query):
3958
3959 2011-06-08  Mark Rowe  <mrowe@apple.com>
3960
3961         Fix the build.
3962
3963         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
3964         (WebCore::MediaPlayerPrivateAVFoundation::timeChanged):
3965         (WebCore::MediaPlayerPrivateAVFoundation::seekCompleted):
3966
3967 2011-06-07  Keishi Hattori  <keishi@webkit.org>
3968
3969         Reviewed by Kent Tamura.
3970
3971         Rename HTMLInputElement::m_value to m_valueIfDirty
3972         https://bugs.webkit.org/show_bug.cgi?id=61990
3973
3974         No new tests because no behavior change.
3975
3976         * html/HTMLInputElement.cpp: Replaced m_value with m_valueIfDirty.
3977         (WebCore::HTMLInputElement::tooLong):
3978         (WebCore::HTMLInputElement::updateType):
3979         (WebCore::HTMLInputElement::parseMappedAttribute):
3980         (WebCore::HTMLInputElement::copyNonAttributeProperties):
3981         (WebCore::HTMLInputElement::value):
3982         (WebCore::HTMLInputElement::setValue):
3983         (WebCore::HTMLInputElement::setValueFromRenderer):
3984         (WebCore::HTMLInputElement::updateValueIfNeeded):
3985         * html/HTMLInputElement.h: Renamed m_value to m_valueIfDirty.
3986         (WebCore::HTMLInputElement::hasDirtyValue): Added. Returns the dirty value flag.
3987
3988 2011-06-07  Ian Henderson  <ianh@apple.com>
3989
3990         Reviewed by Dan Bernstein.
3991
3992         (CG) Sub-image drawing clips unnecessarily
3993         https://bugs.webkit.org/show_bug.cgi?id=62258
3994
3995         If destRect completely encompasses the adjustedDestRect into which we
3996         draw, clipping to destRect will do nothing.  Skip the call to
3997         CGContextClipToRect in this case.
3998
3999         * platform/graphics/cg/ImageCG.cpp:
4000         (WebCore::BitmapImage::draw):
4001
4002 2011-06-07  Emil A Eklund  <eae@chromium.org>
4003
4004         Reviewed by Eric Seidel.
4005
4006         Convert nodeAtPoint to IntPoint
4007         https://bugs.webkit.org/show_bug.cgi?id=62145
4008
4009         Convert nodeAtPoint to take an IntPoint instead of a pair of ints for the
4010         accumulated offset.
4011
4012         Covered by existing tests.
4013
4014         * platform/graphics/FloatPoint.h:
4015         (WebCore::FloatPoint::moveBy):
4016         Add moveBy(IntPoint) method
4017         
4018         * rendering/EllipsisBox.cpp:
4019         (WebCore::EllipsisBox::nodeAtPoint):
4020         * rendering/EllipsisBox.h:
4021         * rendering/InlineBox.cpp:
4022         (WebCore::InlineBox::nodeAtPoint):
4023         * rendering/InlineBox.h:
4024         * rendering/InlineFlowBox.cpp:
4025         (WebCore::InlineFlowBox::nodeAtPoint):
4026         * rendering/InlineFlowBox.h:
4027         * rendering/InlineTextBox.cpp:
4028         (WebCore::InlineTextBox::nodeAtPoint):
4029         * rendering/InlineTextBox.h:
4030         * rendering/RenderBlock.cpp:
4031         (WebCore::RenderBlock::nodeAtPoint):
4032         (WebCore::RenderBlock::hitTestContents):
4033         * rendering/RenderBlock.h:
4034         * rendering/RenderBox.cpp:
4035         (WebCore::RenderBox::nodeAtPoint):
4036         * rendering/RenderBox.h:
4037         * rendering/RenderFrameSet.cpp:
4038         (WebCore::RenderFrameSet::nodeAtPoint):
4039         * rendering/RenderFrameSet.h:
4040         * rendering/RenderImage.cpp:
4041         (WebCore::RenderImage::nodeAtPoint):
4042         * rendering/RenderImage.h:
4043         * rendering/RenderInline.cpp:
4044         (WebCore::RenderInline::nodeAtPoint):
4045         * rendering/RenderInline.h:
4046         * rendering/RenderLineBoxList.cpp:
4047         (WebCore::RenderLineBoxList::hitTest):
4048         * rendering/RenderListBox.cpp:
4049         (WebCore::RenderListBox::nodeAtPoint):
4050         * rendering/RenderListBox.h:
4051         * rendering/RenderObject.cpp:
4052         (WebCore::RenderObject::hitTest):
4053         * rendering/RenderObject.h:
4054         * rendering/RenderTable.cpp:
4055         (WebCore::RenderTable::nodeAtPoint):
4056         * rendering/RenderTable.h:
4057         * rendering/RenderTableRow.cpp:
4058         (WebCore::RenderTableRow::nodeAtPoint):
4059         * rendering/RenderTableRow.h:
4060         * rendering/RenderTableSection.cpp:
4061         (WebCore::RenderTableSection::nodeAtPoint):
4062         * rendering/RenderTableSection.h:
4063         * rendering/RenderText.h:
4064         (WebCore::RenderText::nodeAtPoint):
4065         * rendering/RenderTextControlMultiLine.cpp:
4066         (WebCore::RenderTextControlMultiLine::nodeAtPoint):
4067         * rendering/RenderTextControlMultiLine.h:
4068         * rendering/RenderTextControlSingleLine.cpp:
4069         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
4070         * rendering/RenderTextControlSingleLine.h:
4071         * rendering/RenderWidget.cpp:
4072         (WebCore::RenderWidget::nodeAtPoint):
4073         * rendering/RenderWidget.h:
4074         * rendering/RootInlineBox.cpp:
4075         (WebCore::RootInlineBox::nodeAtPoint):
4076         * rendering/RootInlineBox.h:
4077         * rendering/svg/RenderSVGForeignObject.cpp:
4078         (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
4079         (WebCore::RenderSVGForeignObject::nodeAtPoint):
4080         * rendering/svg/RenderSVGForeignObject.h:
4081         * rendering/svg/RenderSVGModelObject.cpp:
4082         (WebCore::RenderSVGModelObject::nodeAtPoint):
4083         * rendering/svg/RenderSVGModelObject.h:
4084         * rendering/svg/RenderSVGRoot.cpp:
4085         (WebCore::RenderSVGRoot::nodeAtPoint):
4086         * rendering/svg/RenderSVGRoot.h:
4087         * rendering/svg/RenderSVGText.cpp:
4088         (WebCore::RenderSVGText::nodeAtFloatPoint):
4089         (WebCore::RenderSVGText::nodeAtPoint):
4090         * rendering/svg/RenderSVGText.h:
4091
4092 2011-06-07  Yi Shen  <yi.4.shen@nokia.com>
4093
4094         Reviewed by Simon Hausmann.
4095
4096         [Qt] Fix the error code for media resource failures when using QtMobility
4097         https://bugs.webkit.org/