eedef8c6c27582fddd4d2afa8135fe269b7df2ea
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-06-09  Dimitri Glazkov  <dglazkov@chromium.org>
2
3         Reviewed by Kent Tamura.
4
5         Fold isShadowBoundary into isShadowRoot.
6         https://bugs.webkit.org/show_bug.cgi?id=62317
7
8         Since there are no longer cases where Node::isShadowBoundary() != Node::isShadowRoot, we can remove this function.
9
10         In one case where isShadowBoundary was also tested to find ShadowContentElemnt, added a new isContentElement function.
11
12         Refactoring, covered by existing tests.
13
14         * css/CSSStyleSelector.cpp:
15         (WebCore::isAtShadowBoundary): Changed to use isShadowRoot.
16         * dom/Element.cpp:
17         (WebCore::Element::isSpellCheckingEnabled): Ditto.
18         * dom/Node.cpp:
19         (WebCore::Node::nonBoundaryShadowTreeRootNode): Ditto.
20         (WebCore::Node::nonShadowBoundaryParentNode): Ditto.
21         * dom/Node.h:
22         (WebCore::Node::isContentElement): Added.
23         * dom/NodeRenderingContext.cpp:
24         (WebCore::NodeRenderingContext::NodeRenderingContext): Changed to use isShadowRoot.
25         * dom/Position.cpp:
26         (WebCore::Position::Position): Ditto.
27         * dom/ShadowContentElement.h:
28         (WebCore::ShadowContentElement::isContentElement): Added.
29         * dom/ShadowRoot.cpp:
30         (WebCore::ShadowRoot::hasContentElement): Changed to use isContentElement.
31         * editing/CompositeEditCommand.cpp:
32         (WebCore::CompositeEditCommand::insertNodeAfter): Changed to use isShadowRoot.
33         * editing/htmlediting.cpp:
34         (WebCore::visiblePositionBeforeNode): Ditto.
35         (WebCore::visiblePositionAfterNode): Ditto.
36         * page/DragController.cpp:
37         (WebCore::asFileInput): Ditto.
38         * rendering/RenderTreeAsText.cpp:
39         (WebCore::nodePosition): Ditto.
40
41 2011-06-09  Simon Fraser  <simon.fraser@apple.com>
42
43         Reviewed by Darin Adler.
44
45         Crashes in RenderLayerBacking::paintingGoesToWindow
46         https://bugs.webkit.org/show_bug.cgi?id=61159
47
48         Speculative fix for unreproducible crash that can occur when RenderObject::repaintUsingContainer()
49         finds a repaintContainer that is not the RenderView, but that is also not
50         composited (for unknown reasons), by checking to see if the layer is
51         compositing before using backing(). An assertion remains to try to catch
52         this in debug builds.
53
54         * rendering/RenderLayer.cpp:
55         (WebCore::RenderLayer::setBackingNeedsRepaintInRect):
56
57 2011-06-09  Julien Chaffraix  <jchaffraix@webkit.org>
58
59         Reviewed by Darin Adler.
60
61         WebCore::WebKitCSSKeyframesRuleInternal::nameAttrSetter() - crash
62         https://bugs.webkit.org/show_bug.cgi?id=62384
63
64         Test: fast/css/webkit-keyframes-crash.html
65
66         * css/WebKitCSSKeyframesRule.cpp:
67         (WebCore::WebKitCSSKeyframesRule::setName): stylesheet() is never garanteed
68         to return a non-null pointer. Thus null-check here like the rest of the code.
69
70 2011-06-09  Julien Chaffraix  <jchaffraix@codeaurora.org>
71
72         Reviewed by David Hyatt.
73
74         chrome.dll!WebCore::RenderStyle::fontMetrics ReadAV@NULL (two crashes)
75         https://bugs.webkit.org/show_bug.cgi?id=57756
76
77         Tests: fast/css/fontMetric-border-radius-null-crash.html
78                fast/css/fontMetric-webkit-border-end-width-null-crash.html
79
80         * css/CSSStyleSelector.cpp:
81         (WebCore::CSSStyleSelector::styleForElement): Added a call to Font::update
82         so that our FontFallbackList is allocated if we ever need it when applying our
83         style rules.
84
85 2011-06-09  Cary Clark  <caryclark@google.com>
86
87         Reviewed by Eric Seidel.
88
89         Create local CG context for Mac UI elements when Skia is renderer
90         https://bugs.webkit.org/show_bug.cgi?id=62213
91
92         When building Mac Chrome using Skia as the WebKit renderer,
93         add state to LocalCurrentGraphicsContext to convert the SkCanvas
94         context passed by WebKit into the CGContext needed by UI
95         rendering.
96
97         No new tests.  The define typo in question is
98         not yet enabled, so this change has no functional
99         impact.
100
101         * platform/mac/LocalCurrentGraphicsContext.h:
102         Add SkiaBitLocker to create and release the converted CGContext.
103         Add ContextContainer, a class for Skia to create and release
104         the converted CGContext. If Skia is not used, the class has no effect.
105
106         * platform/mac/LocalCurrentGraphicsContext.mm:
107         (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext):
108         When building with Skia, create the CGContext before passing it on.
109
110         (WebCore::LocalCurrentGraphicsContext::cgContext):
111         Get the CGContext from the SkiaBitLocker, or the saved context,
112         as appropriate.
113
114         * rendering/RenderThemeMac.mm:
115         Get the CGContext from Skia conversion or native, as appropriate.
116         Use the LocalCurrentGraphicsContext if there is one. Otherwise,
117         add a ContextContainer to house the SkCanvas to CGContext conversion.
118
119         (WebCore::RenderThemeMac::paintCapsLockIndicator):
120         (WebCore::RenderThemeMac::paintProgressBar):
121         (WebCore::RenderThemeMac::paintMenuListButtonGradients):
122         (WebCore::RenderThemeMac::paintSliderTrack):
123         (WebCore::RenderThemeMac::paintMediaFullscreenButton):
124         (WebCore::RenderThemeMac::paintMediaMuteButton):
125         (WebCore::RenderThemeMac::paintMediaPlayButton):
126         (WebCore::RenderThemeMac::paintMediaSeekBackButton):
127         (WebCore::RenderThemeMac::paintMediaSeekForwardButton):
128         (WebCore::RenderThemeMac::paintMediaSliderTrack):
129         (WebCore::RenderThemeMac::paintMediaSliderThumb):
130         (WebCore::RenderThemeMac::paintMediaRewindButton):
131         (WebCore::RenderThemeMac::paintMediaReturnToRealtimeButton):
132         (WebCore::RenderThemeMac::paintMediaToggleClosedCaptionsButton):
133         (WebCore::RenderThemeMac::paintMediaControlsBackground):
134         (WebCore::RenderThemeMac::paintMediaCurrentTime):
135         (WebCore::RenderThemeMac::paintMediaTimeRemaining):
136         (WebCore::RenderThemeMac::paintMediaVolumeSliderContainer):
137         (WebCore::RenderThemeMac::paintMediaVolumeSliderTrack):
138         (WebCore::RenderThemeMac::paintMediaVolumeSliderThumb):
139
140 2011-06-02  Jer Noble  <jer.noble@apple.com>
141
142         Reviewed by Maciej Stachowiak.
143
144         REGRESSION: Page layout messed up after exiting full screen after video ends at jerryseinfeld.com
145         https://bugs.webkit.org/show_bug.cgi?id=61911
146         <rdar://problem/9523017>
147
148         Test: fullscreen/full-screen-video-offset.html
149
150         When the video element is taken full-screen in the new element full-screen API, return the
151         offset width and height of the placeholder renderer which is filling in for the full-screen
152         element.  To do so, override offsetWidth, Height, Left, and Top from Element.  These are
153         non-virtual functions, so make them virtual.
154
155         * dom/Element.cpp:
156         (WebCore::Element::adjustForLocalZoom): Made into a class-static function.
157         * dom/Element.h: Made offset functions virtual.
158         * html/HTMLMediaElement.cpp:
159         (WebCore::elementPlaceholder): Added; utility function.
160         (WebCore::HTMLMediaElement::offsetLeft): Added; virtual override of the 
161             Element function. Will be called directly via javascript.
162         (WebCore::HTMLMediaElement::offsetTop): Ditto.
163         (WebCore::HTMLMediaElement::offsetWidth): Ditto.
164         (WebCore::HTMLMediaElement::offsetHeight): Ditto.
165         * html/HTMLMediaElement.h:
166
167 2011-06-09  Dave Tapuska  <dtapuska@rim.com>
168
169         Reviewed by Daniel Bates.
170
171         PingLoader destructor could dereference 0 if the Resource
172         Handle creation failed.
173
174         https://bugs.webkit.org/show_bug.cgi?id=62304
175
176         * loader/PingLoader.cpp:
177         (WebCore::PingLoader::~PingLoader):
178
179 2011-06-08  Abhishek Arya  <inferno@chromium.org>
180
181         Reviewed by Ryosuke Niwa.
182
183         Make indexForVisiblePosition and isSelectableElement static.
184         https://bugs.webkit.org/show_bug.cgi?id=62329
185
186         This protects us when converting frame->selection->start() or end()
187         to VisiblePosition which blows away the RenderTextControl from
188         underneath (due to layout update).
189
190         Test: fast/forms/text-control-selection-crash.html
191
192         * accessibility/AccessibilityRenderObject.cpp:
193         (WebCore::AccessibilityRenderObject::indexForVisiblePosition):
194         * rendering/RenderTextControl.cpp:
195         (WebCore::RenderTextControl::selectionStart):
196         (WebCore::RenderTextControl::selectionEnd):
197         (WebCore::RenderTextControl::isSelectableElement):
198         (WebCore::RenderTextControl::indexForVisiblePosition):
199         * rendering/RenderTextControl.h:
200
201 2011-06-09  Ben Murdoch  <benm@google.com>
202
203         Reviewed by Yury Semikhatsky.
204
205         Build break in ScriptProfile.cpp and inspector disabled.
206         https://bugs.webkit.org/show_bug.cgi?id=62373
207
208         No new tests - build fix only.
209
210         * bindings/v8/ScriptProfile.cpp: Add necessary guards.
211         * bindings/v8/ScriptProfile.h: ditto.
212
213 2011-06-09  Vsevolod Vlasov  <vsevik@chromium.org>
214
215         Reviewed by Yury Semikhatsky.
216
217         Web Inspector: Network panel preview tab does not reattach SourceFrame when switching between preview and response tabs.
218         https://bugs.webkit.org/show_bug.cgi?id=62298
219
220         * inspector/front-end/ResourcePreviewView.js:
221         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown.callback):
222         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown):
223
224 2011-06-09  Csaba Osztrogonác  <ossy@webkit.org>
225
226         [Qt][Mac] Speculative buildfix after r88286.
227
228         * platform/graphics/IntPoint.h:
229
230 2011-06-09  Mike Lawther  <mikelawther@chromium.org>
231
232         Reviewed by Kent Tamura.
233
234         Parsing issue with -webkit-calc
235         https://bugs.webkit.org/show_bug.cgi?id=62276
236
237         Set the CSSParserString for the calc functions.
238
239         Test: css3/calc/regression-62276.html
240
241         * css/CSSParser.cpp:
242         (WebCore::CSSParser::lex):
243
244 2011-06-09  Robert Hogan  <robert@webkit.org>
245
246         Reviewed by Andreas Kling.
247
248         Teach Qt about window.internals
249         https://bugs.webkit.org/show_bug.cgi?id=61074
250
251         A weakness of the Qt DRT setup is that things like JSContextRef are abstracted
252         away from the QtWebKit API so we need DumpRenderTreeSupportQt to access WebCore internals.
253         Since the window.internals object requires JSContextRef we need to implement it in DumpRenderTreeSupportQt
254         where we can access it. DumpRenderTreeSupportQt cannot be compiled outside Qt's WebCore and as it
255         is our only possible route into the WebCoreTestSupport class neither can the new window.internals plumbing.
256         Likewise we can't put the accessor in WebCoreTestSupport because it would then need to know about QWebFrame
257         and others. The only alternative seems like a compile time guard which we would have to teach the bots about.
258
259         * CodeGenerators.pri:
260         * WebCore.pri:
261         * WebCore.pro:
262
263 2011-06-08  Mikołaj Małecki  <m.malecki@samsung.com>
264
265         Reviewed by Pavel Feldman.
266
267         Web Inspector: Crash by buffer overrun crash when serializing inspector object tree.
268         https://bugs.webkit.org/show_bug.cgi?id=52791
269
270         No new tests. The problem can be reproduced by trying to create InspectorValue
271         from 1.0e-100 and call ->toJSONString() on this.
272
273         * inspector/InspectorValues.cpp:
274         (WebCore::InspectorBasicValue::writeJSON):
275         Added checking the predicted buffer size and choosing exponential format, or
276         eventually "NaN" if the buffer is too small for decimal format.
277
278 2011-06-09  Sheriff Bot  <webkit.review.bot@gmail.com>
279
280         Unreviewed, rolling out r88387.
281         http://trac.webkit.org/changeset/88387
282         https://bugs.webkit.org/show_bug.cgi?id=62368
283
284         New tests introduced in 88387 fail on Leopard,GTK,Qt bots
285         (Requested by Ossy on #webkit).
286
287         * html/canvas/CanvasRenderingContext.cpp:
288         (WebCore::CanvasRenderingContext::checkOrigin):
289         * html/canvas/CanvasRenderingContext.h:
290         * html/canvas/WebGLRenderingContext.cpp:
291         (WebCore::WebGLRenderingContext::readPixels):
292         (WebCore::WebGLRenderingContext::texImage2D):
293         (WebCore::WebGLRenderingContext::videoFrameToImage):
294         (WebCore::WebGLRenderingContext::texSubImage2D):
295         * html/canvas/WebGLRenderingContext.h:
296
297 2011-06-09  Adam Barth  <abarth@webkit.org>
298
299         Reviewed by Eric Seidel.
300
301         Running script from attach can remove elements from the stack of open elements
302         https://bugs.webkit.org/show_bug.cgi?id=62160
303
304         When the tree build runs script synchronously, that script can remove
305         arbitrary elements from the stack of open elements.  We need to hold a
306         reference to |parent| in attach instead of rely upon the reference in
307         the stack of open elements.
308
309         Test: fast/parser/document-write-onload-clear.html
310
311         * html/parser/HTMLConstructionSite.cpp:
312         (WebCore::HTMLConstructionSite::attach):
313
314 2011-06-08  Luke Macpherson   <macpherson@chromium.org>
315
316         Reviewed by Eric Seidel.
317
318         Make CSSPrimitiveValue support cast to EVerticalAlign.
319         https://bugs.webkit.org/show_bug.cgi?id=62356
320
321         No new tests / refactoring only.
322
323         * css/CSSPrimitiveValueMappings.h:
324         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
325         (WebCore::CSSPrimitiveValue::operator EVerticalAlign):
326         * css/CSSStyleSelector.cpp:
327         (WebCore::CSSStyleSelector::applyProperty):
328
329 2011-06-08  Justin Novosad  <junov@chromium.org>
330
331         Reviewed by James Robinson.
332
333         [Chromium] Crash when closing a tab with accelerated 2d canvas
334         https://bugs.webkit.org/show_bug.cgi?id=62324
335         Upon graphics context destruction, it is important to signal skia
336         to abandon all of its resource handles.  This prevents a crash caused
337         by skia attempting to release resources that were in the destroyed
338         graphics context.
339
340         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
341         (WebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D):
342
343 2011-06-08  James Robinson  <jamesr@chromium.org>
344
345         Reviewed by Darin Fisher.
346
347         REGRESSION(88260): 10-50% performance regression across many page cyclers
348         https://bugs.webkit.org/show_bug.cgi?id=62349
349
350         r88260 fixed a font cache resource leak and lowered the inactive font cache threshold.  The latter caused a
351         significant performance regression across many chromium page cyclers, for example
352         http://build.chromium.org/f/chromium/perf/linux-release-webkit-latest/moz/report.html?history=50&rev=88279.
353
354         This restores the previous inactive font size thresholds to their previous values, but retains the font cleanup
355         logic.
356
357         * platform/graphics/FontCache.cpp:
358
359 2011-06-08  Hayato Ito  <hayato@chromium.org>
360
361         Reviewed by Dimitri Glazkov.
362
363         A forward/backward tab traversal now visits focusable elements in a shadow root.
364         https://bugs.webkit.org/show_bug.cgi?id=61410
365
366         Test: fast/dom/shadow/tab-order-iframe-and-shadow.html
367
368         Like a iframe element, a shadow host becomes a scope of
369         tabindex. That means all descendant elements in a shadow root are
370         skipped if the host node of the shadow root is not focusable.
371
372         The patch doesn't affect HTMLInputElement and HTMLTextAreaElement,
373         which uses a shadow root and do extra works in their focus()
374         method.
375
376         A shadow root's <content> is not considered in this patch.
377         That will be addressed in a following patch.
378
379         * page/FocusController.cpp:
380         (WebCore::shadowRoot):
381         (WebCore::isTreeScopeOwner):
382         (WebCore::FocusController::deepFocusableNode):
383         (WebCore::FocusController::advanceFocusInDocumentOrder):
384         (WebCore::FocusController::findFocusableNodeAcrossTreeScope):
385         (WebCore::FocusController::findFocusableNode):
386         (WebCore::FocusController::nextFocusableNode):
387         (WebCore::FocusController::previousFocusableNode):
388         (WebCore::FocusController::ownerOfTreeScope):
389         * page/FocusController.h:
390
391 2011-06-08  Hayato Ito  <hayato@chromium.org>
392
393         Reviewed by Hajime Morita.
394
395         Makes sure that document.activeElement won't be an element in shadow root.
396
397         https://bugs.webkit.org/show_bug.cgi?id=61413
398
399         Test: fast/dom/shadow/activeelement-should-be-shadowhost.html
400
401         * html/HTMLDocument.cpp:
402         (WebCore::focusedFrameOwnerElement):
403         (WebCore::HTMLDocument::activeElement):
404
405 2011-06-08  Kent Tamura  <tkent@chromium.org>
406
407         Reviewed by Dimitri Glazkov.
408
409         Allow drawing a slider thumb for any nodes.
410         https://bugs.webkit.org/show_bug.cgi?id=62196
411
412         RenderObject::node() should provide various information which is
413         necessary for rendering. We don't need to refer the parent renderer.
414
415         * dom/Node.cpp:
416         (WebCore::Node::focusDe1egate): Added.
417         * dom/Node.h: Added a declaration.
418         * html/shadow/MediaControlElements.cpp:
419         (WebCore::toParentMediaElement):
420           Added an overload of toParentMediaElement() with Node* parameter.
421         * html/shadow/MediaControlElements.h:
422         (WebCore::toParentMediaElement): ditto.
423         * html/shadow/SliderThumbElement.cpp:
424         (WebCore::SliderThumbElement::isEnabledFormControl):
425           Returns the status of the host node.
426         (WebCore::SliderThumbElement::isReadOnlyFormControl): ditto.
427         (WebCore::SliderThumbElement::focusDe1egate):
428           Returns the host node so that RenderTheme::isFocused() returns true.
429         (WebCore::SliderThumbElement::detach): Style nit.
430         (WebCore::SliderThumbElement::hostInput):
431           Make it const because it is called by const functions.
432         * html/shadow/SliderThumbElement.h:
433           - Remove inDragMode()
434           - Update declarations
435         * platform/qt/RenderThemeQt.cpp:
436         (WebCore::RenderThemeQt::paintMediaSliderThumb):
437           Use Node::shadowAncestorNode() instead of RenderObject::parent() to
438           support deeper thumb nodes.
439         * rendering/RenderMediaControlsChromium.cpp:
440         (WebCore::paintMediaSliderThumb): ditto.
441         (WebCore::paintMediaVolumeSliderThumb): Remove isSlider() check.
442         * rendering/RenderSlider.cpp:
443         (WebCore::RenderSlider::inDragMode):
444           SliderThumbElement::inDragMode() was removed, and Node::active() has
445           the same information.
446         * rendering/RenderTheme.cpp:
447         (WebCore::RenderTheme::paint): Remove isSlider() checks.
448         (WebCore::RenderTheme::isFocused): Apply Node::focusDelegate().
449         * rendering/RenderThemeChromiumLinux.cpp:
450         (WebCore::RenderThemeChromiumLinux::paintSliderThumb):
451           isPressed() is enough.
452         * rendering/RenderThemeChromiumWin.cpp:
453           isEnabled(), isFocused(), and isPressed() are enough.
454         (WebCore::RenderThemeChromiumWin::determineSliderThumbState):
455         (WebCore::RenderThemeChromiumWin::determineClassicState):
456         * rendering/RenderThemeMac.mm:
457         (WebCore::RenderThemeMac::paintSliderThumb):
458           - Remove isSlider() check.
459           - Passing 'o' to udpateFooState functions is enough.
460           - isPressed() is enough.
461         * rendering/RenderThemeSafari.cpp:
462         (WebCore::RenderThemeSafari::paintSliderThumb):
463           We don't need special handling anymore.
464         * rendering/RenderThemeWin.cpp:
465         (WebCore::RenderThemeWin::determineSliderThumbState):
466           isEnabled(), isFocused(), and isPressed() are enough.
467
468 2011-06-08  Adam Barth  <abarth@webkit.org>
469
470         Reviewed by Eric Seidel.
471
472         constructTreeFromToken can re-enter parser, causing ASSERTs
473         https://bugs.webkit.org/show_bug.cgi?id=62160
474
475         This patch clears the HTMLToken before constructing the tree from the
476         token, putting the HTMLDocumentParser in a good state to be re-entered.
477
478         Tests: fast/parser/document-write-onload-nesting.html
479                fast/parser/document-write-onload-ordering.html
480
481         * html/parser/HTMLDocumentParser.cpp:
482         (WebCore::HTMLDocumentParser::pumpTokenizer):
483         * html/parser/HTMLToken.h:
484         (WebCore::HTMLToken::isUninitialized):
485         * html/parser/HTMLTreeBuilder.cpp:
486         (WebCore::HTMLTreeBuilder::constructTreeFromToken):
487
488 2011-06-08  Kent Tamura  <tkent@chromium.org>
489
490         Fix Qt build for r88405.
491         https://bugs.webkit.org/show_bug.cgi?id=62208
492
493         * platform/qt/RenderThemeQt.h:
494
495 2011-06-08  Kent Tamura  <tkent@chromium.org>
496
497         Reviewed by Dimitri Glazkov.
498
499         Change the argument of RenderTheme::adjustSliderThumbSize(): RenderObject* -> RenderStyle*
500         https://bugs.webkit.org/show_bug.cgi?id=62208
501
502         Change the argument type of RenderTheme::adjustSliderThumbSize() and
503         RenderMediaControls::adjustMediaSliderThumbSize() from RenderObject* to RenderStyle*.
504
505         Also, each of adjustSliderThumbStyle() overrides calls RenderTheme::
506         adjustSliderThumbStyle() for future changes.
507
508         No new tests. This is a refactoring and should not change any behavior.
509
510         * html/shadow/SliderThumbElement.cpp:
511         (WebCore::RenderSliderThumb::layout): Passing RenderStyle* and remove a FIXME comment.
512         * platform/efl/RenderThemeEfl.cpp:
513         (WebCore::RenderThemeEfl::adjustSliderThumbStyle): Calls RenderTheme::adjustSliderThumbStyle().
514         * platform/gtk/RenderThemeGtk.cpp:
515         (WebCore::RenderThemeGtk::adjustSliderThumbStyle): ditto.
516         (WebCore::RenderThemeGtk::adjustMediaSliderThumbSize):
517         * platform/gtk/RenderThemeGtk.h:
518         * platform/gtk/RenderThemeGtk2.cpp:
519         (WebCore::RenderThemeGtk::adjustSliderThumbSize):
520         * platform/gtk/RenderThemeGtk3.cpp:
521         (WebCore::RenderThemeGtk::adjustSliderThumbSize):
522         * platform/qt/RenderThemeQt.cpp:
523         (WebCore::RenderThemeQt::adjustSliderThumbStyle): ditto.
524         (WebCore::RenderThemeQt::adjustSliderThumbSize):
525         * rendering/RenderMediaControls.cpp:
526         (WebCore::RenderMediaControls::adjustMediaSliderThumbSize):
527         * rendering/RenderMediaControls.h:
528         * rendering/RenderMediaControlsChromium.cpp:
529         (WebCore::RenderMediaControlsChromium::adjustMediaSliderThumbSize):
530         * rendering/RenderMediaControlsChromium.h:
531         * rendering/RenderSlider.cpp:
532         (WebCore::RenderSlider::layout): Passing RenderStyle* and remove a FIXME comment.
533         * rendering/RenderTheme.cpp:
534         (WebCore::RenderTheme::adjustSliderThumbStyle): Add a comment.
535         (WebCore::RenderTheme::adjustSliderThumbSize):
536         * rendering/RenderTheme.h:
537         * rendering/RenderThemeChromiumLinux.cpp:
538         (WebCore::RenderThemeChromiumLinux::adjustSliderThumbSize):
539         * rendering/RenderThemeChromiumLinux.h:
540         * rendering/RenderThemeChromiumMac.h:
541         * rendering/RenderThemeChromiumMac.mm:
542         (WebCore::RenderThemeChromiumMac::adjustMediaSliderThumbSize):
543         * rendering/RenderThemeChromiumSkia.cpp:
544         (WebCore::RenderThemeChromiumSkia::adjustSliderThumbSize):
545         * rendering/RenderThemeChromiumSkia.h:
546         * rendering/RenderThemeChromiumWin.cpp:
547         (WebCore::RenderThemeChromiumWin::adjustSliderThumbSize):
548         * rendering/RenderThemeChromiumWin.h:
549         * rendering/RenderThemeMac.h:
550         * rendering/RenderThemeMac.mm:
551         (WebCore::RenderThemeMac::adjustSliderThumbStyle): Calls RenderTheme::adjustSliderThumbStyle().
552         (WebCore::RenderThemeMac::adjustSliderThumbSize):
553         (WebCore::RenderThemeMac::adjustMediaSliderThumbSize):
554         * rendering/RenderThemeSafari.cpp:
555         (WebCore::RenderThemeSafari::adjustSliderThumbStyle): Calls RenderTheme::adjustSliderThumbStyle().
556         (WebCore::RenderThemeSafari::adjustSliderThumbSize):
557         * rendering/RenderThemeSafari.h:
558         * rendering/RenderThemeWin.cpp:
559         (WebCore::RenderThemeWin::adjustSliderThumbSize):
560         * rendering/RenderThemeWin.h:
561         * rendering/RenderThemeWinCE.cpp:
562         (WebCore::RenderThemeWinCE::adjustSliderThumbSize):
563         * rendering/RenderThemeWinCE.h:
564
565 2011-06-08  Brian Salomon  <bsalomon@google.com>
566
567         Reviewed by James Robinson.
568
569         Avoid always binding FBO 0 implicitly when deleting FBO in DrawingBuffer code because it invalidates Ganesh's cache of the current FBO.
570         https://bugs.webkit.org/show_bug.cgi?id=62318
571
572         Chromium-only crash
573         Failures takes multiple seconds to occur, relying on JS garbage-collection to occur 
574         http://www.hotbazooka.com/privatejoe-large
575
576         * platform/graphics/gpu/DrawingBuffer.cpp:
577         (WebCore::DrawingBuffer::clear):
578
579 2011-06-08  Emil A Eklund  <eae@chromium.org>
580
581         Reviewed by Eric Seidel.
582
583         RenderEmbeddedObject::getReplacementTextGeometry
584         https://bugs.webkit.org/show_bug.cgi?id=62313
585
586         Replace the last use of tx, ty with IntPoint.
587
588         Covered by existing tests.
589
590         * platform/graphics/FloatRect.h:
591         (WebCore::FloatRect::move):
592         (WebCore::FloatRect::moveBy):
593         * rendering/RenderEmbeddedObject.cpp:
594         (WebCore::RenderEmbeddedObject::paintReplaced):
595         (WebCore::RenderEmbeddedObject::getReplacementTextGeometry):
596         (WebCore::RenderEmbeddedObject::isInMissingPluginIndicator):
597         * rendering/RenderEmbeddedObject.h:
598
599 2011-06-08  Tim Horton  <timothy_horton@apple.com>
600
601         Reviewed by Ryosuke Niwa.
602
603         Use correct CFURLStorageSessionRef definition on Leopard, as
604         we created an inconsistency in const-ness between
605         WebCoreSystemInterface.h and these two files in the case
606         of Leopard only.
607         https://bugs.webkit.org/show_bug.cgi?id=62223
608
609         * platform/network/ResourceHandle.h:
610         * platform/network/cf/ResourceRequest.h:
611
612 2011-06-08  Sailesh Agrawal  <sail@chromium.org>
613
614         Reviewed by Mihai Parparita.
615
616         Chromium Mac: Enable overlay scrollbars
617         https://bugs.webkit.org/show_bug.cgi?id=59756
618
619         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.
620
621         No new tests, since this code is only enabled on future versions of Mac OS X.
622
623         * platform/chromium/ScrollAnimatorChromiumMac.mm: All changes to this file except in scroll() were to swap #if USE(WK_SCROLLBAR_PAINTER) with runtime checks.
624         (WebCore::ScrollAnimatorChromiumMac::ScrollAnimatorChromiumMac):
625         (WebCore::ScrollAnimatorChromiumMac::~ScrollAnimatorChromiumMac):
626         (WebCore::ScrollAnimatorChromiumMac::notityPositionChanged):
627         (WebCore::ScrollAnimatorChromiumMac::contentAreaWillPaint):
628         (WebCore::ScrollAnimatorChromiumMac::mouseEnteredContentArea):
629         (WebCore::ScrollAnimatorChromiumMac::mouseExitedContentArea):
630         (WebCore::ScrollAnimatorChromiumMac::mouseMovedInContentArea):
631         (WebCore::ScrollAnimatorChromiumMac::willStartLiveResize):
632         (WebCore::ScrollAnimatorChromiumMac::contentsResized):
633         (WebCore::ScrollAnimatorChromiumMac::willEndLiveResize):
634         (WebCore::ScrollAnimatorChromiumMac::contentAreaDidShow):
635         (WebCore::ScrollAnimatorChromiumMac::contentAreaDidHide):
636         (WebCore::ScrollAnimatorChromiumMac::didBeginScrollGesture):
637         (WebCore::ScrollAnimatorChromiumMac::didEndScrollGesture):
638         (WebCore::ScrollAnimatorChromiumMac::didAddVerticalScrollbar):
639         (WebCore::ScrollAnimatorChromiumMac::willRemoveVerticalScrollbar):
640         (WebCore::ScrollAnimatorChromiumMac::didAddHorizontalScrollbar):
641         (WebCore::ScrollAnimatorChromiumMac::willRemoveHorizontalScrollbar):
642         (WebCore::ScrollAnimatorChromiumMac::cancelAnimations):
643         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
644         (preferredScrollerStyle): Disabled overlay scrollbar styles due to trailing artifacts.
645         (wkScrollbarPainterPaint): Fixed a problem where the scrollbar track wasn't being drawn.
646         (wkScrollbarPainterKnobRect): Implemented a previously unimplemented function.
647         (wkSetScrollbarPainterKnobStyle): Implemented a function that's now supported by the latest Mac OS X seeds.
648         (isScrollbarOverlayAPIAvailable): Enabled new scrollbar code.
649         * platform/chromium/ScrollbarThemeChromiumMac.h:
650         * platform/chromium/ScrollbarThemeChromiumMac.mm: Sync with ScrollbarThemeMac.mm.
651         (WebCore::scrollbarMap):
652         (+[ScrollbarPrefsObserver appearancePrefsChanged:]):
653         (WebCore::updateArrowPlacement):
654         (WebCore::ScrollbarThemeChromiumMac::registerScrollbar):
655         (WebCore::ScrollbarThemeChromiumMac::unregisterScrollbar):
656         (WebCore::ScrollbarThemeChromiumMac::setNewPainterForScrollbar):
657         (WebCore::ScrollbarThemeChromiumMac::painterForScrollbar):
658         (WebCore::ScrollbarThemeChromiumMac::scrollbarThickness):
659         (WebCore::ScrollbarThemeChromiumMac::usesOverlayScrollbars):
660         (WebCore::ScrollbarThemeChromiumMac::hasButtons):
661         (WebCore::ScrollbarThemeChromiumMac::hasThumb):
662         (WebCore::buttonRepaintRect):
663         (WebCore::ScrollbarThemeChromiumMac::minimumThumbLength):
664         (WebCore::ScrollbarThemeChromiumMac::shouldDragDocumentInsteadOfThumb):
665         (WebCore::toScrollbarPainterKnobStyle):
666         (WebCore::ScrollbarThemeChromiumMac::paint):
667
668 2011-06-06  Nate Chapin  <japhet@chromium.org>
669
670         Reviewed by Adam Barth.
671
672         Remove all knowledge of CachedResourceRequests from
673         CachedResourceLoader. This puts the full burden of
674         canceling these requests on DocumentLoader (via
675         SubresourceLoader), and makes a CachedResourceRequest
676         an OwnPtr in CachedResource.
677
678         https://bugs.webkit.org/show_bug.cgi?id=62308
679
680         * loader/FrameLoader.cpp:
681         (WebCore::FrameLoader::stopLoading):
682         * loader/cache/CachedResource.cpp:
683         (WebCore::CachedResource::CachedResource):
684         (WebCore::CachedResource::load):
685         (WebCore::CachedResource::stopLoading):
686         * loader/cache/CachedResource.h:
687         * loader/cache/CachedResourceLoader.cpp:
688         (WebCore::CachedResourceLoader::~CachedResourceLoader):
689         (WebCore::CachedResourceLoader::loadDone):
690         * loader/cache/CachedResourceLoader.h:
691         * loader/cache/CachedResourceRequest.cpp:
692         (WebCore::CachedResourceRequest::CachedResourceRequest):
693         (WebCore::CachedResourceRequest::~CachedResourceRequest):
694         (WebCore::CachedResourceRequest::load):
695         (WebCore::CachedResourceRequest::didFinishLoading):
696         (WebCore::CachedResourceRequest::didFail):
697         (WebCore::CachedResourceRequest::didReceiveResponse):
698         (WebCore::CachedResourceRequest::end):
699         * loader/cache/CachedResourceRequest.h:
700
701 2011-06-08  Mike Reed  <reed@google.com>
702
703         Reviewed by James Robinson.
704
705         [Skia] check for null-shader from gradient factory
706         https://bugs.webkit.org/show_bug.cgi?id=62319
707
708         * platform/graphics/skia/GradientSkia.cpp:
709         (WebCore::Gradient::platformDestroy):
710         (WebCore::Gradient::platformGradient):
711
712 2011-06-08  Kenneth Russell  <kbr@google.com>
713
714         Reviewed by Adam Barth.
715
716         Disallow use of cross-domain media (images, video) in WebGL
717         https://bugs.webkit.org/show_bug.cgi?id=62257
718
719         Updated WebGL implementation to track recent spec updates in this area.
720
721         Tests: http/tests/security/webgl-remote-read-remote-image-allowed-with-credentials.html
722                http/tests/security/webgl-remote-read-remote-image-allowed.html
723                http/tests/security/webgl-remote-read-remote-image-blocked-no-crossorigin.html
724
725         * html/canvas/CanvasRenderingContext.cpp:
726         (WebCore::CanvasRenderingContext::wouldTaintOrigin):
727         (WebCore::CanvasRenderingContext::checkOrigin):
728         * html/canvas/CanvasRenderingContext.h:
729         (WebCore::CanvasRenderingContext::checkOrigin):
730         * html/canvas/WebGLRenderingContext.cpp:
731         (WebCore::WebGLRenderingContext::readPixels):
732         (WebCore::WebGLRenderingContext::texImage2D):
733         (WebCore::WebGLRenderingContext::videoFrameToImage):
734         (WebCore::WebGLRenderingContext::texSubImage2D):
735         * html/canvas/WebGLRenderingContext.h:
736
737 2011-06-08  John Bauman  <jbauman@chromium.org>
738
739         Reviewed by James Robinson.
740
741         Only draw portions of tiles in contentRect
742         https://bugs.webkit.org/show_bug.cgi?id=62243
743
744         Old garbage data can remain in tiles, so make sure to draw only those
745         portions that are supposed to be drawn.
746
747         Test: compositing/repaint/shrink-layer.html
748
749         * platform/graphics/chromium/LayerTilerChromium.cpp:
750         (WebCore::LayerTilerChromium::draw):
751
752 2011-06-08  Emil A Eklund  <eae@chromium.org>
753
754         Reviewed by Eric Seidel.
755
756         Convert RenderBlock::isPointInOverflowControl to IntPoint
757         https://bugs.webkit.org/show_bug.cgi?id=62312
758
759         Covered by existing tests.
760
761         * rendering/RenderBlock.cpp:
762         (WebCore::RenderBlock::isPointInOverflowControl):
763         (WebCore::RenderBlock::nodeAtPoint):
764         * rendering/RenderBlock.h:
765         * rendering/RenderListBox.cpp:
766         (WebCore::RenderListBox::isPointInOverflowControl):
767         * rendering/RenderListBox.h:
768
769 2011-06-08  James Simonsen  <simonjam@chromium.org>
770
771         Reviewed by Tony Gentilcore.
772
773         Fix clang issue, virtual function const mismatch
774         https://bugs.webkit.org/show_bug.cgi?id=62307
775
776         No new tests. Built with clang & ran layout tests.
777
778         * page/MediaStreamFrameController.h:
779         (WebCore::MediaStreamFrameController::GenericClient::isGenericClient):
780
781 2011-06-08  Chris Rogers  <crogers@google.com>
782
783         Reviewed by Kenneth Russell.
784
785         Implement BiquadFilterNode for filter types: LOWPASS, HIGHPASS, BANDPASS, LOWSHELF, HIGHSHELF, PEAKING, NOTCH, ALLPASS
786         https://bugs.webkit.org/show_bug.cgi?id=62078
787
788         No new tests since audio API is not yet implemented.
789
790         * DerivedSources.make:
791         * WebCore.gypi:
792         * WebCore.xcodeproj/project.pbxproj:
793         * platform/audio/Biquad.cpp:
794         (WebCore::Biquad::Biquad):
795         (WebCore::Biquad::reset):
796         (WebCore::Biquad::setLowpassParams):
797         (WebCore::Biquad::setHighpassParams):
798         (WebCore::Biquad::setNormalizedCoefficients):
799         (WebCore::Biquad::setLowShelfParams):
800         (WebCore::Biquad::setHighShelfParams):
801         (WebCore::Biquad::setPeakingParams):
802         (WebCore::Biquad::setAllpassParams):
803         (WebCore::Biquad::setNotchParams):
804         (WebCore::Biquad::setBandpassParams):
805         (WebCore::Biquad::setZeroPolePairs):
806         (WebCore::Biquad::setAllpassPole):
807         * platform/audio/Biquad.h:
808         * webaudio/AudioContext.cpp:
809         (WebCore::AudioContext::createBiquadFilter):
810         (WebCore::AudioContext::createLowPass2Filter):
811         (WebCore::AudioContext::createHighPass2Filter):
812         * webaudio/AudioContext.h:
813         * webaudio/AudioContext.idl:
814         * webaudio/AudioNode.h:
815         * webaudio/BiquadDSPKernel.cpp:
816         (WebCore::BiquadDSPKernel::process):
817         * webaudio/BiquadFilterNode.cpp: Added.
818         (WebCore::BiquadFilterNode::BiquadFilterNode):
819         * webaudio/BiquadFilterNode.h: Added.
820         (WebCore::BiquadFilterNode::create):
821         (WebCore::BiquadFilterNode::type):
822         (WebCore::BiquadFilterNode::setType):
823         (WebCore::BiquadFilterNode::frequency):
824         (WebCore::BiquadFilterNode::q):
825         (WebCore::BiquadFilterNode::gain):
826         (WebCore::BiquadFilterNode::biquadProcessor):
827         * webaudio/BiquadFilterNode.idl: Added.
828         * webaudio/BiquadProcessor.cpp:
829         (WebCore::BiquadProcessor::BiquadProcessor):
830         * webaudio/BiquadProcessor.h:
831         (WebCore::BiquadProcessor::setType):
832         * webaudio/HighPass2FilterNode.cpp:
833         (WebCore::HighPass2FilterNode::HighPass2FilterNode):
834         * webaudio/LowPass2FilterNode.cpp:
835         (WebCore::LowPass2FilterNode::LowPass2FilterNode):
836
837 2011-06-08  No'am Rosenthal  <noam.rosenthal@nokia.com>
838
839         Reviewed by Kenneth Rohde Christiansen.
840
841         WebKit2: Enable serializing of data types needed for cross-process accelerated compositing
842         https://bugs.webkit.org/show_bug.cgi?id=61694
843
844         No new tests, code path is not activated yet.
845
846         * WebCore.xcodeproj/project.pbxproj: Changed the TransformOperation subclassed from "project" to "private"
847
848 2011-06-08  Tom Sepez  <tsepez@chromium.org>
849
850         Reviewed by Adam Barth.
851
852         Cause checks for insecure content blocking policy to callback to client.
853         https://bugs.webkit.org/show_bug.cgi?id=61946
854         Tests: platform/chromium/http/tests/security/mixedContent/insecure-image-in-main-frame-allowed.html
855                platform/chromium/http/tests/security/mixedContent/insecure-image-in-main-frame-blocked.html
856                platform/chromium/http/tests/security/mixedContent/insecure-script-in-main-frame-allowed.html
857                platform/chromium/http/tests/security/mixedContent/insecure-script-in-main-frame-blocked.html
858
859         * loader/FrameLoader.cpp:
860         (WebCore::FrameLoader::checkIfDisplayInsecureContent):
861         (WebCore::FrameLoader::checkIfRunInsecureContent):
862         * loader/FrameLoaderClient.h:
863         (WebCore::FrameLoaderClient::allowDisplayingInsecureContent):
864         (WebCore::FrameLoaderClient::allowRunningInsecureContent):
865
866 2011-06-08  Kevin Ollivier  <kevino@theolliviers.com>
867
868         [wx] Build fix after introduction of FontCache::ShouldRetain
869
870         * platform/graphics/wx/FontCacheWx.cpp:
871         (WebCore::FontCache::getFontDataForCharacters):
872
873 2011-06-08  Sheriff Bot  <webkit.review.bot@gmail.com>
874
875         Unreviewed, rolling out r88365.
876         http://trac.webkit.org/changeset/88365
877         https://bugs.webkit.org/show_bug.cgi?id=62301
878
879         windows bots broken (Requested by loislo_ on #webkit).
880
881         * inspector/InspectorValues.cpp:
882         (WebCore::InspectorBasicValue::writeJSON):
883
884 2011-06-08  Mikołaj Małecki  <m.malecki@samsung.com>
885
886         Reviewed by Pavel Feldman.
887
888         Web Inspector: Crash by buffer overrun crash when serializing inspector object tree.
889         https://bugs.webkit.org/show_bug.cgi?id=52791
890
891         No new tests. The problem can be reproduced by trying to create InspectorValue
892         from 1.0e-100 and call ->toJSONString() on this.
893
894         * inspector/InspectorValues.cpp:
895         (WebCore::InspectorBasicValue::writeJSON):
896         Added checking the predicted buffer size and choosing exponential format, or
897         eventually "NaN" if the buffer is too small for decimal format.
898
899 2011-06-08  Nico Weber  <thakis@chromium.org>
900
901         Reviewed by Darin Adler.
902
903         Fix a ?: precedence error in ScrollbarThemeMac and ScrollbarThemeChromium
904         https://bugs.webkit.org/show_bug.cgi?id=62295
905
906         This was found by a new warning recently added to clang's -Wparentheses
907
908         * platform/chromium/ScrollbarThemeChromiumMac.mm:
909         (WebCore::ScrollbarThemeChromiumMac::backButtonRect):
910         * platform/mac/ScrollbarThemeMac.mm:
911         (WebCore::ScrollbarThemeMac::backButtonRect):
912
913 2011-06-08  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
914
915         Reviewed by Andreas Kling.
916
917         [Qt] Remove dead code from our JSC bridge
918         https://bugs.webkit.org/show_bug.cgi?id=62287
919
920         The m_defaultMethod member is not used since r36848 and QtMethod
921         was replaced by QtRuntimeMethod and subclasses in r29729.
922
923         * bridge/qt/qt_instance.cpp:
924         (JSC::Bindings::QtInstance::removeCachedMethod):
925         (JSC::Bindings::QtInstance::visitAggregate):
926         * bridge/qt/qt_instance.h:
927         * bridge/qt/qt_runtime.h:
928
929 2011-06-08  Ryan Sleevi  <rsleevi@chromium.org>
930
931         Reviewed by Tony Chang.
932
933         Suppress C++0x compat warnings when compiling Chromium port with GCC 4.6
934
935         Compiling Chromium port under GCC 4.6 produces warnings about nullptr
936         https://bugs.webkit.org/show_bug.cgi?id=62242
937
938         * WebCore.gyp/WebCore.gyp:
939
940 2011-05-25  Xiaomei Ji  <xji@chromium.org>
941
942         Reviewed by Ryosuke Niwa.
943
944         --webkit-visual-word does not work well in words separated by multiple spaces
945         https://bugs.webkit.org/show_bug.cgi?id=61324
946
947         Remove positionBeforeNextWord and positionAfterPreviousWord short-cuts. They try to find the
948         right word boundary (before the space or after the space) by using previousWordPosition and
949         nextWordPosition. But they assume words are separated by single space and are not correct 
950         for words separated by multiple spaces and words not separated by space.
951
952         Consider positionBeforeNextWord() for example, 
953
954         First, it checks whether the current position is after the current word by checking current
955         position's previousWordPosition's nextWordPosition is the same as current position, which is
956         wrong for words separated by multiple spaces. For example, given words A and B separated by 
957         3 continuous spaces "A   B", position "A|", "A |", and "A  |" should all be considered as 
958         position after current word. But for position "A |", its previousWordPosition's 
959         nextWordPosition is position "A|", which is different from its current position, so the
960         current position is not considered as a position after current word, consequently,
961         instead of returning the right position as "A   |B", positionBeforeNextWord returns the
962         position before next next word, as "A   B |C". Similar happens for position "A  |".
963
964         Second, given 3 Chinese words "ABC" that are not segmented by space, when cursor is at 
965         "A|BC", positionBeforeNextWord() returns the same position after calling current position's
966         nextWordPosition's previousWordPosition. It should returns position "AB|C".
967
968         For those cases, we will have to collect all the word breaks inside the box and look for
969         the one at left or right of current position.
970
971         * editing/visible_units.cpp:
972         (WebCore::leftWordPosition):
973         (WebCore::rightWordPosition):
974
975 2011-06-08  Greg Simon  <gregsimon@chromium.org>
976
977         Reviewed by Dimitri Glazkov.
978
979         Control Indexeddb backends from LayoutTestController
980         https://bugs.webkit.org/show_bug.cgi?id=61000
981
982         Test: storage/indexeddb/migrate-basics.html
983
984         * storage/IDBBackingStore.h:
985         * storage/IDBFactoryBackendImpl.cpp:
986         (WebCore::IDBFactoryBackendImpl::open):
987         (WebCore::IDBFactoryBackendImpl::migrate):
988         * storage/IDBFactoryBackendImpl.h:
989         * storage/IDBFactoryBackendInterface.h:
990         * storage/IDBLevelDBBackingStore.cpp:
991         (WebCore::IDBLevelDBBackingStore::backingStoreExists):
992         * storage/IDBLevelDBBackingStore.h:
993         (WebCore::IDBLevelDBBackingStore::backingStoreType):
994         * storage/IDBSQLiteBackingStore.cpp:
995         (WebCore::IDBSQLiteBackingStore::backingStoreExists):
996         * storage/IDBSQLiteBackingStore.h:
997         (WebCore::IDBSQLiteBackingStore::backingStoreType):
998
999 2011-06-08  Dmitry Lomov  <dslomov@google.com>
1000
1001         Reviewed by Adam Barth.
1002
1003         https://bugs.webkit.org/show_bug.cgi?id=62164
1004         Remove "multi-threaded" logic in V8 DOMData, DOMDataStore and friends
1005         This functionality is untested and unused:
1006         This is an old code from Lockers-based implementation of WebWorkers in
1007         V8 bindings, to make sure that DOM objects are released on the right thread
1008         even though GC could have happened on any thread. It is currently unused (since
1009         current model is one worker per process) and is being removed because new implementation
1010         of WebWorkers will be using V8 isolates.
1011
1012         * WebCore.gypi:
1013         * WebCore.pro:
1014         * bindings/v8/ChildThreadDOMData.cpp: Removed.
1015         * bindings/v8/ChildThreadDOMData.h: Removed.
1016         * bindings/v8/DOMData.cpp:
1017         (WebCore::DOMData::DOMData):
1018         (WebCore::DOMData::getCurrent):
1019         (WebCore::DOMData::getMainThreadStore):
1020         * bindings/v8/DOMData.h:
1021         (WebCore::DOMData::getStore):
1022         (WebCore::DOMData::getCurrentMainThreadStore):
1023         (WebCore::DOMData::handleWeakObject):
1024         * bindings/v8/DOMDataStore.cpp:
1025         (WebCore::DOMDataStore::DOMDataStore):
1026         (WebCore::DOMDataStore::~DOMDataStore):
1027         (WebCore::DOMDataStore::weakNodeCallback):
1028         * bindings/v8/DOMDataStore.h:
1029         * bindings/v8/MainThreadDOMData.cpp: Removed.
1030         * bindings/v8/MainThreadDOMData.h: Removed.
1031         * bindings/v8/V8DOMMap.cpp:
1032         (WebCore::getDOMDataStore):
1033         (WebCore::removeAllDOMObjects):
1034         (WebCore::visitDOMNodes):
1035         (WebCore::visitDOMObjects):
1036         (WebCore::visitActiveDOMObjects):
1037         (WebCore::visitDOMSVGElementInstances):
1038         * bindings/v8/V8DOMMap.h:
1039         * bindings/v8/V8GCController.cpp:
1040         (WebCore::V8GCController::gcPrologue):
1041         (WebCore::V8GCController::gcEpilogue):
1042         * bindings/v8/WorkerScriptController.cpp:
1043         (WebCore::WorkerScriptController::~WorkerScriptController):
1044
1045 2011-06-08  Yael Aharon  <yael.aharon@nokia.com>
1046
1047         Reviewed by Andreas Kling.
1048
1049         [Qt] Build fix for building QtWebKit inside of Qt.
1050         https://bugs.webkit.org/show_bug.cgi?id=62280
1051
1052         Remove CONFIG=staticlib, because it causes the configure script to add -lwebcore
1053         into QtWebKit.prl.
1054
1055         No new tests, as this is just a build fix.
1056
1057         * WebCore.pri:
1058
1059 2011-06-08  Vsevolod Vlasov  <vsevik@chromium.org>
1060
1061         Reviewed by Pavel Feldman.
1062
1063         Web Inspector: Render non-document HTML resources as HTML
1064         https://bugs.webkit.org/show_bug.cgi?id=58886
1065
1066         * English.lproj/localizedStrings.js:
1067         * WebCore.gypi:
1068         * WebCore.vcproj/WebCore.vcproj:
1069         * inspector/front-end/NetworkItemView.js:
1070         (WebInspector.NetworkItemView):
1071         * inspector/front-end/Resource.js:
1072         (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType):
1073         (WebInspector.Resource.prototype.hasErrorStatusCode):
1074         * inspector/front-end/ResourceHTMLView.js: Added.
1075         (WebInspector.ResourceHTMLView):
1076         (WebInspector.ResourceHTMLView.prototype.hasContent):
1077         (WebInspector.ResourceHTMLView.prototype.show):
1078         (WebInspector.ResourceHTMLView.prototype.hide):
1079         (WebInspector.ResourceHTMLView.prototype._createIFrame):
1080         * inspector/front-end/ResourcePreviewView.js: Added.
1081         (WebInspector.ResourcePreviewView):
1082         (WebInspector.ResourcePreviewView.prototype.hasContent):
1083         (WebInspector.ResourcePreviewView.prototype.show):
1084         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown.callback):
1085         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown):
1086         (WebInspector.ResourcePreviewView.prototype._createInnerView):
1087         * inspector/front-end/Settings.js:
1088         (WebInspector.Settings):
1089         * inspector/front-end/WebKit.qrc:
1090         * inspector/front-end/inspector.css:
1091         (.resource-view.html iframe):
1092         * inspector/front-end/inspector.html:
1093
1094 2011-05-18  Pavel Podivilov  <podivilov@chromium.org>
1095
1096         Reviewed by Yury Semikhatsky.
1097
1098         Web Inspector: hide script location to ui location conversion details from ScriptsPanel.
1099         https://bugs.webkit.org/show_bug.cgi?id=61035
1100
1101         * inspector/front-end/DebuggerPresentationModel.js:
1102         (WebInspector.DebuggerPresentationModel.prototype.sourceFileForScriptURL):
1103         (WebInspector.DebuggerPresentationModel.prototype.scriptLocationToUILocation.didRequestSourceMapping):
1104         (WebInspector.DebuggerPresentationModel.prototype.scriptLocationToUILocation):
1105         * inspector/front-end/ScriptsPanel.js:
1106         (WebInspector.ScriptsPanel.prototype.showAnchorLocation.didGetUILocation):
1107         (WebInspector.ScriptsPanel.prototype.showAnchorLocation):
1108
1109 2011-06-08  Tommy Widenflycht  <tommyw@google.com>
1110
1111         Reviewed by Tony Gentilcore.
1112
1113         StreamEvent
1114
1115         Media Stream PeerConnection API: adding StreamEvent class
1116         https://bugs.webkit.org/show_bug.cgi?id=61537
1117
1118         Tests for the Media Stream API will be provided by the bug 56587.
1119
1120         * CMakeLists.txt:
1121         * CodeGenerators.pri:
1122         * DerivedSources.cpp:
1123         * DerivedSources.make:
1124         * GNUmakefile.list.am:
1125         * WebCore.gypi:
1126         * WebCore.pro:
1127         * WebCore.vcproj/WebCore.vcproj:
1128         * WebCore.xcodeproj/project.pbxproj:
1129         * bindings/js/JSEventCustom.cpp:
1130         (WebCore::toJS):
1131         * bindings/v8/custom/V8EventCustom.cpp:
1132         (WebCore::toV8):
1133         * dom/DOMAllInOne.cpp:
1134         * dom/Event.cpp:
1135         (WebCore::Event::isStreamEvent):
1136         * dom/Event.h:
1137         * dom/StreamEvent.cpp: Added.
1138         (WebCore::StreamEvent::create):
1139         (WebCore::StreamEvent::StreamEvent):
1140         (WebCore::StreamEvent::~StreamEvent):
1141         (WebCore::StreamEvent::initStreamEvent):
1142         (WebCore::StreamEvent::stream):
1143         * dom/StreamEvent.h: Added.
1144         (WebCore::StreamEvent::isStreamEvent):
1145         * dom/StreamEvent.idl: Added.
1146
1147 2011-06-08  Tommy Widenflycht  <tommyw@google.com>
1148
1149         Reviewed by Tony Gentilcore.
1150
1151         Media Stream API: integrate the Track List objects into the existing code.
1152         https://bugs.webkit.org/show_bug.cgi?id=60205
1153
1154         Tests for the Media Stream API will be provided by the bug 56587.
1155
1156         * dom/ExclusiveTrackList.cpp:
1157         (WebCore::ExclusiveTrackList::select):
1158         (WebCore::ExclusiveTrackList::trackFailed):
1159         * dom/ExclusiveTrackList.h:
1160         * dom/GeneratedStream.cpp:
1161         (WebCore::GeneratedStream::create):
1162         (WebCore::GeneratedStream::GeneratedStream):
1163         (WebCore::GeneratedStream::streamEnded):
1164         (WebCore::GeneratedStream::audioTracks):
1165         (WebCore::GeneratedStream::videoTracks):
1166         (WebCore::GeneratedStream::stop):
1167         * dom/GeneratedStream.h:
1168         * dom/GeneratedStream.idl:
1169         * dom/MultipleTrackList.cpp:
1170         (WebCore::MultipleTrackList::trackFailed):
1171         (WebCore::MultipleTrackList::enable):
1172         (WebCore::MultipleTrackList::disable):
1173         * dom/MultipleTrackList.h:
1174         * dom/Stream.h:
1175         * dom/TrackList.cpp:
1176         (WebCore::TrackList::clear):
1177         (WebCore::TrackList::associateStream):
1178         (WebCore::TrackList::associatedStreamLabel):
1179         (WebCore::TrackList::trackFailed):
1180         (WebCore::TrackList::scriptExecutionContext):
1181         * dom/TrackList.h:
1182         * page/MediaStreamClient.h:
1183         * page/MediaStreamController.cpp:
1184         (WebCore::MediaStreamController::enableAudioTrack):
1185         (WebCore::MediaStreamController::disableAudioTrack):
1186         (WebCore::MediaStreamController::selectVideoTrack):
1187         (WebCore::MediaStreamController::streamGenerated):
1188         (WebCore::MediaStreamController::audioTrackFailed):
1189         (WebCore::MediaStreamController::videoTrackFailed):
1190         * page/MediaStreamController.h:
1191         * page/MediaStreamFrameController.cpp:
1192         (WebCore::MediaStreamFrameController::unregister):
1193         (WebCore::MediaStreamFrameController::enterDetachedState):
1194         (WebCore::MediaStreamFrameController::disconnectFrame):
1195         (WebCore::MediaStreamFrameController::enableAudioTrack):
1196         (WebCore::MediaStreamFrameController::disableAudioTrack):
1197         (WebCore::MediaStreamFrameController::selectVideoTrack):
1198         (WebCore::MediaStreamFrameController::streamGenerated):
1199         (WebCore::MediaStreamFrameController::audioTrackFailed):
1200         (WebCore::MediaStreamFrameController::videoTrackFailed):
1201         * page/MediaStreamFrameController.h:
1202         (WebCore::MediaStreamFrameController::ClientBase::isGenericClient):
1203         (WebCore::MediaStreamFrameController::GenericClient::GenericClient):
1204         (WebCore::MediaStreamFrameController::GenericClient::~GenericClient):
1205         (WebCore::MediaStreamFrameController::GenericClient::isGenericClient):
1206         (WebCore::MediaStreamFrameController::GenericClient::unregister):
1207
1208 2011-06-08  Pavel Podivilov  <podivilov@chromium.org>
1209
1210         Reviewed by Yury Semikhatsky.
1211
1212         Web Inspector: [REGRESSION] breakpoints are not persisted.
1213         https://bugs.webkit.org/show_bug.cgi?id=62273
1214
1215         * inspector/front-end/Settings.js:
1216
1217 2011-06-08  Alexander Pavlov  <apavlov@chromium.org>
1218
1219         Reviewed by Yury Semikhatsky.
1220
1221         Web Inspector: node selection is slow in the Elements panel.
1222         https://bugs.webkit.org/show_bug.cgi?id=60813
1223
1224         Schedule full style updates rather than request all node styles from the backend immediately.
1225
1226         * inspector/front-end/StylesSidebarPane.js:
1227         (WebInspector.StylesSidebarPane.prototype.update.reloadAllStyles):
1228         (WebInspector.StylesSidebarPane.prototype.update):
1229
1230 2011-06-08  Andreas Kling  <andreas.kling@nokia.com>
1231
1232         Reviewed by Laszlo Gombos.
1233
1234         [Symbian] Float{32,64}Array and Int16Array fail to build.
1235         https://bugs.webkit.org/show_bug.cgi?id=62219
1236
1237         For some reason, RVCT 2.x is moaning about "class member designated by
1238         a using-declaration must be visible in a direct base class".
1239         Apply same fix as r69122 and r76592.
1240
1241         * html/canvas/Float32Array.h:
1242         (WebCore::Float32Array::set):
1243         * html/canvas/Float64Array.h:
1244         (WebCore::Float64Array::set):
1245         * html/canvas/Int16Array.h:
1246         (WebCore::Int16Array::set):
1247
1248 2011-06-08  Syed Idris Shah  <syed.idris-shah@nokia.com>
1249
1250         Reviewed by Andreas Kling.
1251
1252         [Qt] GL_POINT_SPRITE and GL_VERTEX_PROGRAM_POINT_SIZE should be enabled for desktop WebGL
1253         https://bugs.webkit.org/show_bug.cgi?id=61945
1254
1255         For OpenGL ES we do not need these features. 
1256         These features are available via shaders in OpenGL ES. But for desktop WebGL using QtWebKit they should be enabled.
1257
1258         LayoutTests/fast/canvas/webgl/point-size.html
1259
1260         * platform/graphics/qt/GraphicsContext3DQt.cpp:
1261         (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
1262
1263 2011-06-08  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1264
1265         Unreviewed. Fix style error.
1266
1267         * platform/efl/RenderThemeEfl.cpp:
1268         * platform/efl/RenderThemeEfl.h:
1269
1270 2011-06-08  Hironori Bono  <hbono@chromium.org>
1271
1272         Reviewed by Brent Fulgham.
1273
1274         Add SpellCheck API
1275         https://bugs.webkit.org/show_bug.cgi?id=59693
1276
1277         This change adds two SpellCheck API functions (addSpellcheckRange and
1278         removeSpellcheckRange) and one attribute (spellcheckRange) discussed in
1279         the public-webapps ML. This change is currently available only on Chromium.
1280
1281         Tests: editing/spelling/spellcheck-api-pixel.html
1282                editing/spelling/spellcheck-api.html
1283
1284         * WebCore.gypi:
1285         * bindings/generic/RuntimeEnabledFeatures.cpp:
1286         * bindings/generic/RuntimeEnabledFeatures.h:
1287         (WebCore::RuntimeEnabledFeatures::spellCheckAPIEnabled):
1288         (WebCore::RuntimeEnabledFeatures::setSpellCheckAPIEnabled):
1289         * dom/DocumentMarker.h:
1290         (WebCore::DocumentMarker::length):
1291         * dom/DocumentMarkerController.cpp:
1292         (WebCore::DocumentMarkerController::userSpellingMarkersForNode):
1293         (WebCore::DocumentMarkerController::addUserSpellingMarker):
1294         (WebCore::DocumentMarkerController::removeUserSpellingMarker):
1295         (WebCore::DocumentMarkerController::userSpellingNode):
1296         * dom/DocumentMarkerController.h:
1297         * html/HTMLDivElement.cpp:
1298         (WebCore::HTMLDivElement::spellcheckRanges):
1299         (WebCore::HTMLDivElement::addSpellcheckRange):
1300         (WebCore::HTMLDivElement::removeSpellcheckRange):
1301         * html/HTMLDivElement.h:
1302         * html/HTMLDivElement.idl:
1303         * html/HTMLInputElement.cpp:
1304         (WebCore::HTMLInputElement::spellcheckRanges):
1305         (WebCore::HTMLInputElement::addSpellcheckRange):
1306         (WebCore::HTMLInputElement::removeSpellcheckRange):
1307         * html/HTMLInputElement.h:
1308         * html/HTMLInputElement.idl:
1309         * html/HTMLTextAreaElement.cpp:
1310         (WebCore::HTMLTextAreaElement::spellcheckRanges):
1311         (WebCore::HTMLTextAreaElement::addSpellcheckRange):
1312         (WebCore::HTMLTextAreaElement::removeSpellcheckRange):
1313         * html/HTMLTextAreaElement.h:
1314         * html/HTMLTextAreaElement.idl:
1315         * html/SpellcheckRange.cpp: Added.
1316         (WebCore::SpellcheckRange::SpellcheckRange):
1317         (WebCore::SpellcheckRange::~SpellcheckRange):
1318         * html/SpellcheckRange.h: Added.
1319         (WebCore::SpellcheckRange::create):
1320         (WebCore::SpellcheckRange::start):
1321         (WebCore::SpellcheckRange::length):
1322         (WebCore::SpellcheckRange::suggestions):
1323         (WebCore::SpellcheckRange::options):
1324         * html/SpellcheckRange.idl: Added.
1325         * html/SpellcheckRangeList.cpp: Added.
1326         (WebCore::SpellcheckRangeList::SpellcheckRangeList):
1327         (WebCore::SpellcheckRangeList::~SpellcheckRangeList):
1328         (WebCore::SpellcheckRangeList::item):
1329         * html/SpellcheckRangeList.h: Added.
1330         (WebCore::SpellcheckRangeList::create):
1331         (WebCore::SpellcheckRangeList::isEmpty):
1332         (WebCore::SpellcheckRangeList::clear):
1333         (WebCore::SpellcheckRangeList::append):
1334         (WebCore::SpellcheckRangeList::remove):
1335         (WebCore::SpellcheckRangeList::length):
1336         * html/SpellcheckRangeList.idl: Added.
1337         * rendering/InlineTextBox.cpp:
1338         (WebCore::textCheckingLineStyleForMarkerType):
1339         (WebCore::InlineTextBox::paintDocumentMarkers):
1340
1341 2011-06-07  Andrey Kosyakov  <caseq@chromium.org>
1342
1343         Reviewed by Pavel Feldman.
1344
1345         Web Inspector: remove shadow dom inspection from Elements panel by default.
1346         https://bugs.webkit.org/show_bug.cgi?id=62188
1347
1348         This reverts r85751
1349
1350         * dom/Element.cpp:
1351         (WebCore::Element::ensureShadowRoot):
1352         (WebCore::Element::removeShadowRoot):
1353         * inspector/Inspector.json:
1354         * inspector/InspectorDOMAgent.cpp:
1355         (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
1356         (WebCore::InspectorDOMAgent::buildObjectForNode):
1357         (WebCore::InspectorDOMAgent::didInsertDOMNode):
1358         (WebCore::InspectorDOMAgent::didRemoveDOMNode):
1359         * inspector/InspectorDOMAgent.h:
1360         * inspector/front-end/DOMAgent.js:
1361         (WebInspector.DOMNode):
1362         (WebInspector.DOMNode.prototype._renumber):
1363         (WebInspector.DOMAgent.prototype._bindNodes):
1364         (WebInspector.DOMAgent.prototype.querySelectorAll):
1365         (WebInspector.DOMDispatcher.prototype.searchResults):
1366         * inspector/front-end/ElementsPanel.js:
1367         (WebInspector.ElementsPanel):
1368         (WebInspector.ElementsPanel.prototype._attributesUpdated):
1369         (WebInspector.ElementsPanel.prototype._characterDataModified):
1370         (WebInspector.ElementsPanel.prototype._nodeInserted):
1371         (WebInspector.ElementsPanel.prototype._nodeRemoved):
1372         (WebInspector.ElementsPanel.prototype.updateModifiedNodes):
1373         (WebInspector.ElementsPanel.prototype.updateBreadcrumb):
1374         * inspector/front-end/ElementsTreeOutline.js:
1375         (WebInspector.ElementsTreeElement):
1376         (WebInspector.ElementsTreeElement.prototype._updateChildren.updateChildrenOfNode):
1377         (WebInspector.ElementsTreeElement.prototype._updateChildren):
1378         ():
1379         * inspector/front-end/inspector.css:
1380         * inspector/front-end/utilities.js:
1381         (Element.prototype.query):
1382
1383 2011-06-08  Mark Rowe  <mrowe@apple.com>
1384
1385         Fix the build.
1386
1387         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
1388         (WebCore::MediaPlayerPrivateAVFoundation::timeChanged):
1389         (WebCore::MediaPlayerPrivateAVFoundation::seekCompleted):
1390
1391 2011-06-07  Keishi Hattori  <keishi@webkit.org>
1392
1393         Reviewed by Kent Tamura.
1394
1395         Rename HTMLInputElement::m_value to m_valueIfDirty
1396         https://bugs.webkit.org/show_bug.cgi?id=61990
1397
1398         No new tests because no behavior change.
1399
1400         * html/HTMLInputElement.cpp: Replaced m_value with m_valueIfDirty.
1401         (WebCore::HTMLInputElement::tooLong):
1402         (WebCore::HTMLInputElement::updateType):
1403         (WebCore::HTMLInputElement::parseMappedAttribute):
1404         (WebCore::HTMLInputElement::copyNonAttributeProperties):
1405         (WebCore::HTMLInputElement::value):
1406         (WebCore::HTMLInputElement::setValue):
1407         (WebCore::HTMLInputElement::setValueFromRenderer):
1408         (WebCore::HTMLInputElement::updateValueIfNeeded):
1409         * html/HTMLInputElement.h: Renamed m_value to m_valueIfDirty.
1410         (WebCore::HTMLInputElement::hasDirtyValue): Added. Returns the dirty value flag.
1411
1412 2011-06-07  Ian Henderson  <ianh@apple.com>
1413
1414         Reviewed by Dan Bernstein.
1415
1416         (CG) Sub-image drawing clips unnecessarily
1417         https://bugs.webkit.org/show_bug.cgi?id=62258
1418
1419         If destRect completely encompasses the adjustedDestRect into which we
1420         draw, clipping to destRect will do nothing.  Skip the call to
1421         CGContextClipToRect in this case.
1422
1423         * platform/graphics/cg/ImageCG.cpp:
1424         (WebCore::BitmapImage::draw):
1425
1426 2011-06-07  Emil A Eklund  <eae@chromium.org>
1427
1428         Reviewed by Eric Seidel.
1429
1430         Convert nodeAtPoint to IntPoint
1431         https://bugs.webkit.org/show_bug.cgi?id=62145
1432
1433         Convert nodeAtPoint to take an IntPoint instead of a pair of ints for the
1434         accumulated offset.
1435
1436         Covered by existing tests.
1437
1438         * platform/graphics/FloatPoint.h:
1439         (WebCore::FloatPoint::moveBy):
1440         Add moveBy(IntPoint) method
1441         
1442         * rendering/EllipsisBox.cpp:
1443         (WebCore::EllipsisBox::nodeAtPoint):
1444         * rendering/EllipsisBox.h:
1445         * rendering/InlineBox.cpp:
1446         (WebCore::InlineBox::nodeAtPoint):
1447         * rendering/InlineBox.h:
1448         * rendering/InlineFlowBox.cpp:
1449         (WebCore::InlineFlowBox::nodeAtPoint):
1450         * rendering/InlineFlowBox.h:
1451         * rendering/InlineTextBox.cpp:
1452         (WebCore::InlineTextBox::nodeAtPoint):
1453         * rendering/InlineTextBox.h:
1454         * rendering/RenderBlock.cpp:
1455         (WebCore::RenderBlock::nodeAtPoint):
1456         (WebCore::RenderBlock::hitTestContents):
1457         * rendering/RenderBlock.h:
1458         * rendering/RenderBox.cpp:
1459         (WebCore::RenderBox::nodeAtPoint):
1460         * rendering/RenderBox.h:
1461         * rendering/RenderFrameSet.cpp:
1462         (WebCore::RenderFrameSet::nodeAtPoint):
1463         * rendering/RenderFrameSet.h:
1464         * rendering/RenderImage.cpp:
1465         (WebCore::RenderImage::nodeAtPoint):
1466         * rendering/RenderImage.h:
1467         * rendering/RenderInline.cpp:
1468         (WebCore::RenderInline::nodeAtPoint):
1469         * rendering/RenderInline.h:
1470         * rendering/RenderLineBoxList.cpp:
1471         (WebCore::RenderLineBoxList::hitTest):
1472         * rendering/RenderListBox.cpp:
1473         (WebCore::RenderListBox::nodeAtPoint):
1474         * rendering/RenderListBox.h:
1475         * rendering/RenderObject.cpp:
1476         (WebCore::RenderObject::hitTest):
1477         * rendering/RenderObject.h:
1478         * rendering/RenderTable.cpp:
1479         (WebCore::RenderTable::nodeAtPoint):
1480         * rendering/RenderTable.h:
1481         * rendering/RenderTableRow.cpp:
1482         (WebCore::RenderTableRow::nodeAtPoint):
1483         * rendering/RenderTableRow.h:
1484         * rendering/RenderTableSection.cpp:
1485         (WebCore::RenderTableSection::nodeAtPoint):
1486         * rendering/RenderTableSection.h:
1487         * rendering/RenderText.h:
1488         (WebCore::RenderText::nodeAtPoint):
1489         * rendering/RenderTextControlMultiLine.cpp:
1490         (WebCore::RenderTextControlMultiLine::nodeAtPoint):
1491         * rendering/RenderTextControlMultiLine.h:
1492         * rendering/RenderTextControlSingleLine.cpp:
1493         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
1494         * rendering/RenderTextControlSingleLine.h:
1495         * rendering/RenderWidget.cpp:
1496         (WebCore::RenderWidget::nodeAtPoint):
1497         * rendering/RenderWidget.h:
1498         * rendering/RootInlineBox.cpp:
1499         (WebCore::RootInlineBox::nodeAtPoint):
1500         * rendering/RootInlineBox.h:
1501         * rendering/svg/RenderSVGForeignObject.cpp:
1502         (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
1503         (WebCore::RenderSVGForeignObject::nodeAtPoint):
1504         * rendering/svg/RenderSVGForeignObject.h:
1505         * rendering/svg/RenderSVGModelObject.cpp:
1506         (WebCore::RenderSVGModelObject::nodeAtPoint):
1507         * rendering/svg/RenderSVGModelObject.h:
1508         * rendering/svg/RenderSVGRoot.cpp:
1509         (WebCore::RenderSVGRoot::nodeAtPoint):
1510         * rendering/svg/RenderSVGRoot.h:
1511         * rendering/svg/RenderSVGText.cpp:
1512         (WebCore::RenderSVGText::nodeAtFloatPoint):
1513         (WebCore::RenderSVGText::nodeAtPoint):
1514         * rendering/svg/RenderSVGText.h:
1515
1516 2011-06-07  Yi Shen  <yi.4.shen@nokia.com>
1517
1518         Reviewed by Simon Hausmann.
1519
1520         [Qt] Fix the error code for media resource failures when using QtMobility
1521         https://bugs.webkit.org/show_bug.cgi?id=55901
1522
1523         To indicate the media resource failures, set the network state to
1524         MediaPlayer::FormatError when receives QMediaPlayer::InvalidMedia or
1525         QMediaPlayer::ResourceError.
1526
1527         * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
1528         (WebCore::MediaPlayerPrivateQt::updateStates):
1529
1530 2011-06-07  Emil A Eklund  <eae@chromium.org>
1531
1532         Reviewed by Eric Seidel.
1533
1534         Change RenderBlock::hitTestFloats to IntPoint
1535         https://bugs.webkit.org/show_bug.cgi?id=62176
1536
1537         Covered by existing tests.
1538
1539         * rendering/RenderBlock.cpp:
1540         (WebCore::RenderBlock::nodeAtPoint):
1541         (WebCore::RenderBlock::hitTestFloats):
1542         (WebCore::RenderBlock::hitTestColumns):
1543         * rendering/RenderBlock.h:
1544
1545 2011-06-07  Tim Horton  <timothy_horton@apple.com>
1546
1547         Reviewed by Alexey Proskuryakov.
1548
1549         Use correct CFURLStorageSessionRef definition on Snow Leopard
1550         https://bugs.webkit.org/show_bug.cgi?id=62223
1551
1552         * platform/mac/WebCoreSystemInterface.h:
1553         * platform/network/ResourceHandle.h:
1554         * platform/network/cf/ResourceRequest.h:
1555
1556 2011-06-07  Emil A Eklund  <eae@chromium.org>
1557
1558         Reviewed by Eric Seidel.
1559
1560         Change RenderBlock::hitTestColumns to IntPoint
1561         https://bugs.webkit.org/show_bug.cgi?id=62172
1562
1563         Covered by existing tests.
1564
1565         * rendering/RenderBlock.cpp:
1566         (WebCore::RenderBlock::nodeAtPoint):
1567         (WebCore::RenderBlock::hitTestColumns):
1568         * rendering/RenderBlock.h:
1569
1570 2011-06-07  Simon Fraser  <simon.fraser@apple.com>
1571
1572         Reviewed by Darin Adler.
1573
1574         Opacity transition doesn't work while content property is set.
1575         https://bugs.webkit.org/show_bug.cgi?id=59301
1576         
1577         StyleRareNonInheritedData's copy constructor omitted to copy
1578         the m_content data, which caused us to detach and re-attach the renderer
1579         at the start of the transition, thereby killing the transition.
1580         
1581         Fix by making StyleRareNonInheritedData's copy ctor do the right thing.
1582
1583         Test: transitions/transition-on-element-with-content.html
1584
1585         * rendering/style/ContentData.h:
1586         * rendering/style/ContentData.cpp:
1587         (WebCore::ContentData::clone): New method to do a deep clone. (Can't use a copy
1588         ctor because of the subclasses.)
1589         * rendering/style/CounterDirectives.h: Pack the data members to save space.
1590         Add a clone() function for the HashMap.
1591         * rendering/style/CounterDirectives.cpp:
1592         (WebCore::clone): Make a new HashMap and copy the contents over.
1593         * rendering/style/StyleRareNonInheritedData.cpp:
1594         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): Copy
1595         the content and counter directives over.
1596         (WebCore::StyleRareNonInheritedData::operator==): Rather than just comparing
1597         for pointer equality, do a correct check for m_counterDirectives equality.
1598         (WebCore::StyleRareNonInheritedData::counterDataEquivalent):
1599         * rendering/style/StyleRareNonInheritedData.h:
1600
1601 2011-06-07  Robert Kroeger  <rjkroege@chromium.org>
1602
1603         Reviewed by Adam Barth.
1604
1605         [chromium] Add a basic gesture recognizer to the Chromium platform
1606         https://bugs.webkit.org/show_bug.cgi?id=54417
1607
1608         Adds a basic gesture recognizer to the Chromium platform. Adds an entry
1609         point to the GestureRecognizer to reset any internal state on a page reset.
1610         Resetting the gesture recognizer on page load is necesary for reliable
1611         layout test execution and improves gesture recognizer operational
1612         robustness.
1613
1614         Added an additional constructor to permit building a synthetic
1615         PlatformWheelEvent.
1616
1617         Small modifications to the PlatformGestureRecognizer as required to
1618         implement the simple Chromium platform gesture recognizer.
1619
1620         Tests: fast/events/touch/touch-gesture-click.html
1621
1622         * WebCore.gypi:
1623         * page/EventHandler.cpp:
1624         (WebCore::EventHandler::resetGestureRecognizer):
1625         * page/EventHandler.h:
1626         * page/FrameView.cpp:
1627         (WebCore::FrameView::reset):
1628         * platform/PlatformGestureRecognizer.h:
1629         * platform/PlatformWheelEvent.h:
1630         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1631         * platform/chromium/GestureRecognizerChromium.cpp: Added.
1632         (WebCore::InnerGestureRecognizer::InnerGestureRecognizer):
1633         (WebCore::InnerGestureRecognizer::reset):
1634         (WebCore::InnerGestureRecognizer::~InnerGestureRecognizer):
1635         (WebCore::InnerGestureRecognizer::addEdgeFunction):
1636         (WebCore::InnerGestureRecognizer::isInClickTimeWindow):
1637         (WebCore::InnerGestureRecognizer::isInsideManhattanSquare):
1638         (WebCore::InnerGestureRecognizer::dispatchSyntheticClick):
1639         (WebCore::InnerGestureRecognizer::processTouchEventForGesture):
1640         (WebCore::InnerGestureRecognizer::scrollViaTouchMotion):
1641         (WebCore::InnerGestureRecognizer::updateValues):
1642         (WebCore::InnerGestureRecognizer::signature):
1643         (WebCore::touchDown):
1644         (WebCore::noGesture):
1645         (WebCore::click):
1646         (WebCore::isClickOrScroll):
1647         (WebCore::inScroll):
1648         (WebCore::PlatformGestureRecognizer::create):
1649         (WebCore::PlatformGestureRecognizer::PlatformGestureRecognizer):
1650         (WebCore::PlatformGestureRecognizer::~PlatformGestureRecognizer):
1651         (WebCore::GestureRecognizerChromium::GestureRecognizerChromium):
1652         (WebCore::GestureRecognizerChromium::~GestureRecognizerChromium):
1653         * platform/chromium/GestureRecognizerChromium.h: Added.
1654         (WebCore::InnerGestureRecognizer::setState):
1655         (WebCore::InnerGestureRecognizer::state):
1656         (WebCore::GestureRecognizerChromium::reset):
1657         (WebCore::GestureRecognizerChromium::processTouchEventForGesture):
1658
1659 2011-06-07  No'am Rosenthal  <noam.rosenthal@nokia.com>
1660
1661         Reviewed by Andreas Kling.
1662
1663         [Texmap][Qt] Enable TextureMapper by default
1664         https://bugs.webkit.org/show_bug.cgi?id=61740
1665
1666         Enable TextureMapper on Windows+Symbian, disabling the direct OpenGL path. This would mean that
1667         for now QtWebKit on Windows/Symbian would use the Qt backend for TextureMapper.
1668
1669         No new functionality so no new tests.
1670
1671         * WebCore.pri:
1672         * WebCore.pro:
1673         * platform/graphics/qt/GraphicsContext3DQt.cpp:
1674         * platform/graphics/qt/TextureMapperQt.cpp:
1675         (WebCore::TextureMapper::create):
1676
1677 2011-06-07  Emil A Eklund  <eae@chromium.org>
1678
1679         Reviewed by Eric Seidel.
1680
1681         Convert RenderBox::absoluteRects to IntPoint
1682         https://bugs.webkit.org/show_bug.cgi?id=62130
1683
1684         Covered by existing tests.
1685
1686         * dom/Node.cpp:
1687         (WebCore::Node::hasNonEmptyBoundingBox):
1688         * rendering/InlineBox.h:
1689         (WebCore::InlineBox::size):
1690         * rendering/RenderBlock.cpp:
1691         (WebCore::RenderBlock::absoluteRects):
1692         * rendering/RenderBlock.h:
1693         * rendering/RenderBox.cpp:
1694         (WebCore::RenderBox::absoluteRects):
1695         * rendering/RenderBox.h:
1696         * rendering/RenderInline.cpp:
1697         (WebCore::RenderInline::absoluteRects):
1698         * rendering/RenderInline.h:
1699         * rendering/RenderObject.cpp:
1700         (WebCore::RenderObject::absoluteBoundingBoxRect):
1701         * rendering/RenderObject.h:
1702         (WebCore::RenderObject::absoluteRects):
1703         * rendering/RenderText.cpp:
1704         (WebCore::RenderText::absoluteRects):
1705         * rendering/RenderText.h:
1706         * rendering/RenderView.cpp:
1707         (WebCore::RenderView::absoluteRects):
1708         * rendering/RenderView.h:
1709         * rendering/svg/RenderSVGBlock.cpp:
1710         (WebCore::RenderSVGBlock::absoluteRects):
1711         * rendering/svg/RenderSVGBlock.h:
1712         * rendering/svg/RenderSVGModelObject.cpp:
1713         (WebCore::RenderSVGModelObject::absoluteRects):
1714         * rendering/svg/RenderSVGModelObject.h:
1715
1716 2011-06-07  Kent Tamura  <tkent@chromium.org>
1717
1718         Reviewed by Andreas Kling.
1719
1720         [Qt] RenderThemeQt::adjustSliderThumbSize() should not refer to the parent style.
1721         https://bugs.webkit.org/show_bug.cgi?id=62207
1722
1723         * css/mediaControlsQt.css: Add comments.
1724         (audio::-webkit-media-controls-timeline):
1725         (video::-webkit-media-controls-timeline):
1726         (audio::-webkit-media-controls-volume-slider):
1727         (video::-webkit-media-controls-volume-slider):
1728         * platform/qt/RenderThemeQt.cpp: Use fixed values to avoid referring to o->parent().
1729         (WebCore::RenderThemeQt::adjustSliderThumbSize):
1730
1731 2011-06-07  Sailesh Agrawal  <sail@chromium.org>
1732
1733         Reviewed by Mihai Parparita.
1734
1735         Chromium Mac: Fork ScrollAnimatorMac to ScrollAnimatorChromiumMac for overlay scrollbar support
1736         https://bugs.webkit.org/show_bug.cgi?id=59753
1737
1738         No new tests. Just forking ScrollAnimatorMac to ScrollAnimatorChromiumMac.
1739
1740         * WebCore.gyp/WebCore.gyp: Added IntPointMac.mm. This is used by some functions in ScrollAnimatorChromiumMac. Also added filters for conflicting class names in ScrollAnimatorChromiumMac.
1741         * WebCore.gypi: Added ScrollAnimatorChromiumMac.h/mm.
1742         * platform/ScrollAnimator.cpp: Extended the #ifdef around ScrollAnimator::create() so that the chromium version will be created.
1743         * platform/chromium/ScrollAnimatorChromiumMac.h: Added.
1744         (WebCore::ScrollAnimatorChromiumMac::setIsDrawingIntoLayer):
1745         (WebCore::ScrollAnimatorChromiumMac::isDrawingIntoLayer):
1746         (WebCore::ScrollAnimatorChromiumMac::haveScrolledSincePageLoad):
1747         * platform/chromium/ScrollAnimatorChromiumMac.mm: Added. Forked from ScrollAnimatorMac and replaced all instances of ScrollAnimatorMac with ScrollAnimatorChromiumMac and ScrollbarThemeMac with ScrollbarThemeChromiumMac. Removed the ENABLE(SMOOTH_SCROLLING) around the file. Stubbed out ScrollAnimatorChromiumMac::scroll() if smooth scrolling is disabled.
1748         (abs):
1749         (-[ScrollAnimationHelperDelegate initWithScrollAnimator:WebCore::]):
1750         (-[ScrollAnimationHelperDelegate scrollAnimatorDestroyed]):
1751         (-[ScrollAnimationHelperDelegate bounds]):
1752         (-[ScrollAnimationHelperDelegate _immediateScrollToPoint:]):
1753         (-[ScrollAnimationHelperDelegate _pixelAlignProposedScrollPosition:]):
1754         (-[ScrollAnimationHelperDelegate convertSizeToBase:]):
1755         (-[ScrollAnimationHelperDelegate convertSizeFromBase:]):
1756         (-[ScrollAnimationHelperDelegate convertSizeToBacking:]):
1757         (-[ScrollAnimationHelperDelegate convertSizeFromBacking:]):
1758         (-[ScrollAnimationHelperDelegate superview]):
1759         (-[ScrollAnimationHelperDelegate documentView]):
1760         (-[ScrollAnimationHelperDelegate window]):
1761         (-[ScrollAnimationHelperDelegate _recursiveRecomputeToolTips]):
1762         (-[ScrollbarPainterControllerDelegate initWithScrollAnimator:WebCore::]):
1763         (-[ScrollbarPainterControllerDelegate scrollAnimatorDestroyed]):
1764         (-[ScrollbarPainterControllerDelegate contentAreaRectForScrollerImpPair:]):
1765         (-[ScrollbarPainterControllerDelegate inLiveResizeForScrollerImpPair:]):
1766         (-[ScrollbarPainterControllerDelegate mouseLocationInContentAreaForScrollerImpPair:]):
1767         (-[ScrollbarPainterControllerDelegate scrollerImpPair:convertContentPoint:toScrollerImp:]):
1768         (-[ScrollbarPainterControllerDelegate scrollerImpPair:setContentAreaNeedsDisplayInRect:]):
1769         (-[ScrollbarPainterControllerDelegate scrollerImpPair:updateScrollerStyleForNewRecommendedScrollerStyle:]):
1770         (-[ScrollbarPartAnimation initWithScrollbarPainter:part:WebCore::scrollAnimator:WebCore::animateAlphaTo:duration:]):
1771         (-[ScrollbarPartAnimation setCurrentProgress:]):
1772         (-[ScrollbarPartAnimation scrollAnimatorDestroyed]):
1773         (-[ScrollbarPainterDelegate initWithScrollAnimator:WebCore::]):
1774         (-[ScrollbarPainterDelegate cancelAnimations]):
1775         (-[ScrollbarPainterDelegate convertRectToBacking:]):
1776         (-[ScrollbarPainterDelegate convertRectFromBacking:]):
1777         (-[ScrollbarPainterDelegate layer]):
1778         (-[ScrollbarPainterDelegate setUpAnimation:scrollerPainter:part:WebCore::animateAlphaTo:duration:]):
1779         (-[ScrollbarPainterDelegate scrollerImp:animateKnobAlphaTo:duration:]):
1780         (-[ScrollbarPainterDelegate scrollerImp:animateTrackAlphaTo:duration:]):
1781         (-[ScrollbarPainterDelegate scrollerImp:overlayScrollerStateChangedTo:]):
1782         (-[ScrollbarPainterDelegate scrollAnimatorDestroyed]):
1783         (WebCore::ScrollAnimator::create):
1784         (WebCore::ScrollAnimatorChromiumMac::ScrollAnimatorChromiumMac):
1785         (WebCore::ScrollAnimatorChromiumMac::~ScrollAnimatorChromiumMac):
1786         (WebCore::ScrollAnimatorChromiumMac::scroll):
1787         (WebCore::ScrollAnimatorChromiumMac::scrollToOffsetWithoutAnimation):
1788         (WebCore::ScrollAnimatorChromiumMac::adjustScrollXPositionIfNecessary):
1789         (WebCore::ScrollAnimatorChromiumMac::adjustScrollYPositionIfNecessary):
1790         (WebCore::ScrollAnimatorChromiumMac::adjustScrollPositionIfNecessary):
1791         (WebCore::ScrollAnimatorChromiumMac::immediateScrollToPoint):
1792         (WebCore::ScrollAnimatorChromiumMac::immediateScrollByDeltaX):
1793         (WebCore::ScrollAnimatorChromiumMac::immediateScrollByDeltaY):
1794         (WebCore::ScrollAnimatorChromiumMac::notityPositionChanged):
1795         (WebCore::ScrollAnimatorChromiumMac::contentAreaWillPaint):
1796         (WebCore::ScrollAnimatorChromiumMac::mouseEnteredContentArea):
1797         (WebCore::ScrollAnimatorChromiumMac::mouseExitedContentArea):
1798         (WebCore::ScrollAnimatorChromiumMac::mouseMovedInContentArea):
1799         (WebCore::ScrollAnimatorChromiumMac::willStartLiveResize):
1800         (WebCore::ScrollAnimatorChromiumMac::contentsResized):
1801         (WebCore::ScrollAnimatorChromiumMac::willEndLiveResize):
1802         (WebCore::ScrollAnimatorChromiumMac::contentAreaDidShow):
1803         (WebCore::ScrollAnimatorChromiumMac::contentAreaDidHide):
1804         (WebCore::ScrollAnimatorChromiumMac::didBeginScrollGesture):
1805         (WebCore::ScrollAnimatorChromiumMac::didEndScrollGesture):
1806         (WebCore::ScrollAnimatorChromiumMac::didAddVerticalScrollbar):
1807         (WebCore::ScrollAnimatorChromiumMac::willRemoveVerticalScrollbar):
1808         (WebCore::ScrollAnimatorChromiumMac::didAddHorizontalScrollbar):
1809         (WebCore::ScrollAnimatorChromiumMac::willRemoveHorizontalScrollbar):
1810         (WebCore::ScrollAnimatorChromiumMac::cancelAnimations):
1811         (WebCore::elasticDeltaForTimeDelta):
1812         (WebCore::elasticDeltaForReboundDelta):
1813         (WebCore::reboundDeltaForElasticDelta):
1814         (WebCore::scrollWheelMultiplier):
1815         (WebCore::ScrollAnimatorChromiumMac::handleWheelEvent):
1816         (WebCore::ScrollAnimatorChromiumMac::handleGestureEvent):
1817         (WebCore::ScrollAnimatorChromiumMac::pinnedInDirection):
1818         (WebCore::ScrollAnimatorChromiumMac::allowsVerticalStretching):
1819         (WebCore::ScrollAnimatorChromiumMac::allowsHorizontalStretching):
1820         (WebCore::ScrollAnimatorChromiumMac::smoothScrollWithEvent):
1821         (WebCore::ScrollAnimatorChromiumMac::beginScrollGesture):
1822         (WebCore::ScrollAnimatorChromiumMac::endScrollGesture):
1823         (WebCore::ScrollAnimatorChromiumMac::snapRubberBand):
1824         (WebCore::roundTowardZero):
1825         (WebCore::roundToDevicePixelTowardZero):
1826         (WebCore::ScrollAnimatorChromiumMac::snapRubberBandTimerFired):
1827         (WebCore::ScrollAnimatorChromiumMac::startScrollbarPaintTimer):
1828         (WebCore::ScrollAnimatorChromiumMac::scrollbarPaintTimerIsActive):
1829         (WebCore::ScrollAnimatorChromiumMac::stopScrollbarPaintTimer):
1830         (WebCore::ScrollAnimatorChromiumMac::initialScrollbarPaintTimerFired):
1831         (WebCore::ScrollAnimatorChromiumMac::setVisibleScrollerThumbRect):
1832         * platform/graphics/IntPoint.h: Exposed NSPoint conversion routines to chromium mac.
1833
1834 2011-06-07  Sam Weinig  <sam@webkit.org>
1835
1836         Reviewed by Anders Carlsson.
1837
1838         Remove repeated IPC traffic from SetRenderTreeSize message
1839         https://bugs.webkit.org/show_bug.cgi?id=62244
1840
1841         * WebCore.xcodeproj/project.pbxproj:
1842         Make RenderArena.h private so it can be called from WebKit2.
1843
1844         * loader/FrameLoaderClient.h:
1845         (WebCore::FrameLoaderClient::dispatchDidLayout):
1846         Added.
1847
1848         * page/ChromeClient.h:
1849         Remove setRenderTreeSize.
1850
1851         * page/FrameView.cpp:
1852         (WebCore::FrameView::performPostLayoutTasks):
1853         Call dispatchDidLayout for all frames instead of calling setRenderTreeSize
1854         for the main frame.
1855
1856 2011-06-07  Emil A Eklund  <eae@chromium.org>
1857
1858         Reviewed by Eric Seidel.
1859
1860         Change RenderBlock::hitTestContents to IntPoint
1861         https://bugs.webkit.org/show_bug.cgi?id=62170
1862
1863         Covered by existing tests.
1864
1865         * rendering/RenderBlock.cpp:
1866         (WebCore::RenderBlock::nodeAtPoint):
1867         (WebCore::RenderBlock::hitTestColumns):
1868         (WebCore::RenderBlock::hitTestContents):
1869         * rendering/RenderBlock.h:
1870
1871 2011-06-07  Jer Noble  <jer.noble@apple.com>
1872
1873         Reviewed by Eric Carlson.
1874
1875         Video with poster attribute will not display new frames when scrubbing.
1876         https://bugs.webkit.org/show_bug.cgi?id=62036
1877
1878         Remove our "detection" about the end of a scrub now that there is an explicit seek completion
1879         handler available in AVFoundation.  Move what we used to do upon detection in timeChanged()
1880         into seekCompleted().
1881
1882         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
1883         (WebCore::MediaPlayerPrivateAVFoundation::timeChanged): 
1884         (WebCore::MediaPlayerPrivateAVFoundation::seekCompleted):
1885
1886 2011-06-07  James Simonsen  <simonjam@chromium.org>
1887
1888         Unreviewed, build fix, missing files from r88274.
1889
1890         * bindings/v8/ChildThreadDOMData.cpp: Added.
1891         (WebCore::ChildThreadDOMData::ChildThreadDOMData):
1892         (WebCore::ChildThreadDOMData::getStore):
1893         * bindings/v8/ChildThreadDOMData.h: Added.
1894         * bindings/v8/MainThreadDOMData.cpp: Added.
1895         (WebCore::MainThreadDOMData::MainThreadDOMData):
1896         (WebCore::MainThreadDOMData::getCurrent):
1897         (WebCore::MainThreadDOMData::getMainThreadStore):
1898         (WebCore::MainThreadDOMData::getCurrentMainThreadStore):
1899         * bindings/v8/MainThreadDOMData.h: Added.
1900         (WebCore::MainThreadDOMData::getStore):
1901
1902 2011-06-07  Abhishek Arya  <inferno@chromium.org>
1903
1904         Reviewed by Dan Bernstein.
1905
1906         Replicate WidthIterator.cpp fix from r88139.
1907         https://bugs.webkit.org/show_bug.cgi?id=62238
1908
1909         No new tests. Covered by existing layout tests on XP debug bots.
1910
1911         * platform/graphics/win/UniscribeController.cpp:
1912         (WebCore::UniscribeController::advance):
1913
1914 2011-06-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1915
1916         Unreviewed, rolling out r88221, r88224, and r88231.
1917         http://trac.webkit.org/changeset/88221
1918         http://trac.webkit.org/changeset/88224
1919         http://trac.webkit.org/changeset/88231
1920         https://bugs.webkit.org/show_bug.cgi?id=62233
1921
1922         assert failure on chromium linux debug (Requested by simonjam
1923         on #webkit).
1924
1925         * WebCore.gypi:
1926         * WebCore.pro:
1927         * bindings/v8/ChildThreadDOMData.cpp: Copied from Source/WebCore/bindings/v8/DOMData.cpp.
1928         (WebCore::ChildThreadDOMData::ChildThreadDOMData):
1929         (WebCore::ChildThreadDOMData::getStore):
1930         * bindings/v8/ChildThreadDOMData.h: Copied from Source/WebCore/bindings/v8/DOMData.cpp.
1931         * bindings/v8/DOMData.cpp:
1932         (WebCore::DOMData::DOMData):
1933         (WebCore::DOMData::getCurrent):
1934         * bindings/v8/DOMData.h:
1935         (WebCore::DOMData::owningThread):
1936         (WebCore::DOMData::handleWeakObject):
1937         * bindings/v8/DOMDataStore.cpp:
1938         (WebCore::DOMDataStore::DOMDataStore):
1939         (WebCore::DOMDataStore::~DOMDataStore):
1940         (WebCore::DOMDataStore::allStoresMutex):
1941         (WebCore::DOMDataStore::weakNodeCallback):
1942         * bindings/v8/DOMDataStore.h:
1943         * bindings/v8/MainThreadDOMData.cpp: Copied from Source/WebCore/bindings/v8/DOMData.cpp.
1944         (WebCore::MainThreadDOMData::MainThreadDOMData):
1945         (WebCore::MainThreadDOMData::getCurrent):
1946         (WebCore::MainThreadDOMData::getMainThreadStore):
1947         (WebCore::MainThreadDOMData::getCurrentMainThreadStore):
1948         * bindings/v8/MainThreadDOMData.h: Copied from Source/WebCore/bindings/v8/DOMData.cpp.
1949         (WebCore::MainThreadDOMData::getStore):
1950         * bindings/v8/V8DOMMap.cpp:
1951         (WebCore::getDOMDataStore):
1952         (WebCore::removeAllDOMObjectsInCurrentThread):
1953         (WebCore::visitDOMNodesInCurrentThread):
1954         (WebCore::visitDOMObjectsInCurrentThread):
1955         (WebCore::visitActiveDOMObjectsInCurrentThread):
1956         (WebCore::visitDOMSVGElementInstancesInCurrentThread):
1957         * bindings/v8/V8DOMMap.h:
1958         * bindings/v8/V8GCController.cpp:
1959         (WebCore::V8GCController::gcPrologue):
1960         (WebCore::V8GCController::gcEpilogue):
1961         * bindings/v8/WorkerScriptController.cpp:
1962         (WebCore::WorkerScriptController::~WorkerScriptController):
1963
1964 2011-06-07  Simon Fraser  <simon.fraser@apple.com>
1965
1966         Reviewed by Dave Hyatt.
1967
1968         Clean up ContentData
1969         https://bugs.webkit.org/show_bug.cgi?id=62185
1970
1971         ContentData did manual ref()/deref() and had a lot of awkward
1972         code from using a union to store data.
1973         
1974         Clean this up by adding ContentData subclasses for different
1975         content types, which are then able to use RefPtr and OwnPtr
1976         as appropriate.
1977
1978         * css/CSSComputedStyleDeclaration.cpp:
1979         (WebCore::contentToCSSValue): Cast to different ContentData types as
1980         appropriate.
1981
1982         * css/CSSStyleSelector.cpp: 
1983         (WebCore::CSSStyleSelector::loadPendingImages): Cast to ImageContentData, and do some
1984         const gyrations.
1985
1986         * html/HTMLBRElement.cpp:
1987         (WebCore::HTMLBRElement::createRenderer): Use hasContent().
1988         * html/HTMLFrameSetElement.cpp:
1989         (WebCore::HTMLFrameSetElement::createRenderer): Ditto
1990         * html/HTMLImageElement.cpp:
1991         (WebCore::HTMLImageElement::createRenderer): Ditto
1992         * rendering/RenderObject.cpp:
1993         (WebCore::RenderObject::createObject): Cast to ImageContentData.
1994         * rendering/RenderObjectChildList.cpp:
1995         (WebCore::RenderObjectChildList::updateBeforeAfterContent): Cast to different ContentData types as
1996         appropriate.
1997
1998         * rendering/style/ContentData.h:
1999         (WebCore::ContentData::~ContentData):
2000         (WebCore::ContentData::isCounter):
2001         (WebCore::ContentData::isImage):
2002         (WebCore::ContentData::isQuote):
2003         (WebCore::ContentData::isText):
2004         (WebCore::ContentData::next):
2005         (WebCore::ContentData::setNext):
2006         (WebCore::ImageContentData::image):
2007         (WebCore::ImageContentData::setImage):
2008         (WebCore::ImageContentData::ImageContentData):
2009         (WebCore::ImageContentData::type):
2010         (WebCore::ImageContentData::isImage):
2011         (WebCore::TextContentData::text):
2012         (WebCore::TextContentData::setText):
2013         (WebCore::TextContentData::TextContentData):
2014         (WebCore::TextContentData::type):
2015         (WebCore::TextContentData::isText):
2016         (WebCore::CounterContentData::counter):
2017         (WebCore::CounterContentData::setCounter):
2018         (WebCore::CounterContentData::CounterContentData):
2019         (WebCore::CounterContentData::type):
2020         (WebCore::CounterContentData::isCounter):
2021         (WebCore::QuoteContentData::quote):
2022         (WebCore::QuoteContentData::setQuote):
2023         (WebCore::QuoteContentData::QuoteContentData):
2024         (WebCore::QuoteContentData::type):
2025         (WebCore::QuoteContentData::isQuote):
2026         Add subclasses for different content types, which are created
2027         via overloaded create() methods on the base class.
2028
2029         * rendering/style/ContentData.cpp:
2030         (WebCore::ContentData::create):
2031         (WebCore::operator==): Test for type equality, followed by comparing data.
2032         (WebCore::operator!=):
2033
2034         * rendering/style/RenderStyle.cpp:
2035         (WebCore::RenderStyle::clearContent):
2036         (WebCore::RenderStyle::appendContent): 
2037         (WebCore::RenderStyle::setContent): Replace the overly complex prepareToSetContent()
2038         code with code that either appends, or replaces the content.
2039         This loses an optimization where the existing ContentData object could get reused,
2040         but this seems to be rarely hit in practice.
2041         * rendering/style/RenderStyle.h:
2042         (WebCore::InheritedFlags::hasContent): Convenience method.
2043         * rendering/style/StyleRareNonInheritedData.cpp:
2044         (WebCore::StyleRareNonInheritedData::contentDataEquivalent): Test
2045         that the pointers are non-null, then use the != operator.
2046         * rendering/style/StyleRareNonInheritedData.h: ContentData is a class now.
2047
2048 2011-06-07  Brian Weinstein  <bweinstein@apple.com>
2049
2050         Build fix after r88260.
2051
2052         * platform/graphics/win/FontCacheWin.cpp:
2053         (WebCore::FontCache::getFontDataForCharacters): Update to use enum instead of bool.
2054         * platform/graphics/wince/FontCacheWinCE.cpp:
2055
2056 2011-06-07  Rob Buis  <rbuis@rim.com>
2057
2058         Reviewed by Dirk Schulze.
2059
2060         stroke-dasharray does not handle "none"
2061         https://bugs.webkit.org/show_bug.cgi?id=62203
2062
2063         Use the initial strokeDashArray style for stroke-dasharray="none" to apply to SVGRenderStyle rather than bailing out.
2064
2065         Tests: svg/W3C-SVG-1.1-SE/styling-css-04-f.svg
2066                svg/custom/invalid-dasharray.svg
2067
2068         * css/SVGCSSStyleSelector.cpp:
2069         (WebCore::CSSStyleSelector::applySVGProperty):
2070
2071 2011-06-07  Sheriff Bot  <webkit.review.bot@gmail.com>
2072
2073         Unreviewed, rolling out r88259 and r88263.
2074         http://trac.webkit.org/changeset/88259
2075         http://trac.webkit.org/changeset/88263
2076         https://bugs.webkit.org/show_bug.cgi?id=62228
2077
2078         broke builds (Requested by rniwa on #webkit).
2079
2080         * platform/mac/WebCoreSystemInterface.h:
2081         * platform/network/ResourceHandle.h:
2082         * platform/network/cf/ResourceRequest.h:
2083
2084 2011-06-07  Emil A Eklund  <eae@chromium.org>
2085
2086         Reviewed by Eric Seidel.
2087
2088         Switch ContainerNode to use IntPoint
2089         https://bugs.webkit.org/show_bug.cgi?id=61893
2090
2091         Covered by existing tests.
2092
2093         * dom/ContainerNode.cpp:
2094         (WebCore::ContainerNode::getUpperLeftCorner):
2095         (WebCore::ContainerNode::getLowerRightCorner):
2096         (WebCore::ContainerNode::getRect):
2097         Change to use maxX/maxY instead of x+width/y+height
2098         
2099         * platform/graphics/FloatPoint.h:
2100         (WebCore::FloatPoint::move):
2101         (WebCore::FloatPoint::moveBy):
2102         (WebCore::FloatPoint::expandedTo):
2103         Add move, moveBy and expandedTo mirroring the IntPoint implementation of the same.
2104
2105 2011-06-07  Ryosuke Niwa  <rniwa@webkit.org>
2106
2107         Speculative build fix after r88259.
2108
2109         * platform/network/cf/ResourceRequest.h:
2110
2111 2011-06-07  Michael Saboff  <msaboff@apple.com>
2112
2113         Reviewed by Geoffrey Garen.
2114
2115         Need to enable font cache purging in MemoryPressureHandler
2116         https://bugs.webkit.org/show_bug.cgi?id=62060
2117
2118         Improve memory usage under pressure.
2119         Added call to fontCache()->purgeInactiveFontData() in 
2120         MemoryPressureHandler::respondToMemoryPressure().  Added protection to 
2121         MemoryPressureHandler::install() being called multiple times.
2122
2123         No new tests as funtionality wasn't changed.
2124
2125         * platform/MemoryPressureHandler.cpp:
2126         (WebCore::MemoryPressureHandler::MemoryPressureHandler):
2127         * platform/MemoryPressureHandler.h:
2128         * platform/mac/MemoryPressureHandlerMac.mm:
2129         (WebCore::MemoryPressureHandler::install):
2130         (WebCore::MemoryPressureHandler::respondToMemoryPressure):
2131
2132 2011-06-07  Michael Saboff  <msaboff@apple.com>
2133
2134         Reviewed by Geoffrey Garen.
2135
2136         Fonts returned by FontCache::getFontDataForCharacters() are never released
2137         https://bugs.webkit.org/show_bug.cgi?id=61875
2138
2139         This change allows fonts allocated as system fallback fonts to be 
2140         released.  Previously, the reference counts for these fonts grew 
2141         without bound.  This is implemented as an auto release class that wraps
2142         accesses to the cache for system fallback fonts. All such accesses are
2143         via the method FontCache::getFontDataForCharacters. The new class is
2144         called FontCachePurgePreventer. When such an object exists, it protects
2145         these fonts from deletion.
2146
2147         Most accesses to the font cache still use the reference counting
2148         implemented by FontCache::getCacheFontData() and 
2149         FontCache::releaseFontData() and that operation is not affected by
2150         this change.
2151
2152         Added local scoped instance of FontCachePurgePreventer to wrap code
2153         that directly or indirectly accesses fonts via getFontDataForCharacters.
2154         Did a few other miscellaneous bug fixes and changes to allow system
2155         fallback fonts to be pruned from the GlyphPageTree. Changed the
2156         calls to getFontData in the platform specific versions of
2157         Fontcache::getFontDataForCharacters to not increment the reference
2158         count.  Moved the purge font check
2159         outside of FontCache::getCachedFontData() into a separate method, 
2160         purgeInactiveFontDataIfNeeded() since almost all calls to 
2161         getCachedFontData() now happen when purging is not allowed.
2162         purgeInactiveFontDataIfNeeded is invoked in enablePurging() when
2163         m_purgePreventCount is 0.
2164
2165         No new test as the functionality has not changed. Improved font life
2166         cycle management.
2167
2168         * WebCore.exp.in: Added FontCache::purgeInactiveFontDataIfNeeded().
2169         * html/canvas/CanvasRenderingContext2D.cpp:
2170         (WebCore::CanvasRenderingContext2D::measureText):
2171         (WebCore::CanvasRenderingContext2D::drawTextInternal):
2172         Wrapped code accessing fallback fonts with local 
2173         FontCachePurgePreventer in these methods.
2174
2175         * page/FrameView.cpp:
2176         (WebCore::FrameView::layout):
2177         (WebCore::FrameView::paintContents):
2178         Wrapped code accessing fallback fonts with local 
2179         FontCachePurgePreventer in these methods.
2180
2181         * platform/graphics/FontCache.cpp:
2182         (WebCore::FontCache::FontCache):
2183         (WebCore::FontCache::getCachedFontData):
2184         Moved purge check to new method since it likely can't happen here.
2185         (WebCore::FontCache::releaseFontData):
2186         (WebCore::FontCache::purgeInactiveFontDataIfNeeded):
2187         (WebCore::FontCache::purgeInactiveFontData):
2188         Made purging conditional on m_purgePreventCount.  Now some fonts
2189         in the cache are reference counted while other can be purged 
2190         outside of code wrapped by in scope FontCachePurgePreventer objects.
2191
2192         * platform/graphics/FontCache.h:
2193         (WebCore::FontCache::disablePurging):
2194         (WebCore::FontCache::enablePurging):
2195         (WebCore::FontCachePurgePreventer::FontCachePurgePreventer):
2196         (WebCore::FontCachePurgePreventer::~FontCachePurgePreventer):
2197         Added new simple purge prevention wrapper class and methods
2198         that it calls in FontCache actually prevent purging.  The
2199         simple methods inlined to reduce overhead.
2200
2201         * platform/graphics/FontFastPath.cpp:
2202         (WebCore::Font::glyphDataForCharacter): Update level in 
2203         glyph page tree for system fallback fonts so pruning works.
2204
2205         * platform/graphics/GlyphPage.h:
2206         (WebCore::GlyphPage::clearForFontData): New method used for pruning
2207         * platform/graphics/GlyphPageTreeNode.cpp:
2208         (WebCore::GlyphPageTreeNode::pruneFontData):
2209         Now we prune system fallback fonts.
2210
2211         * platform/graphics/chromium/FontCacheChromiumWin.cpp:
2212         (WebCore::FontCache::getFontDataForCharacters):
2213         * platform/graphics/freetype/FontCacheFreeType.cpp:
2214         (WebCore::FontCache::getFontDataForCharacters):
2215         * platform/graphics/haiku/FontCacheHaiku.cpp:
2216         (WebCore::FontCache::getFontDataForCharacters):
2217         * platform/graphics/mac/FontCacheMac.mm:
2218         (WebCore::FontCache::getFontDataForCharacters):
2219         * platform/graphics/qt/FontCacheQt.cpp:
2220         (WebCore::FontCache::getFontDataForCharacters):
2221         * platform/graphics/win/FontCacheWin.cpp:
2222         (WebCore::FontCache::getFontDataForCharacters):
2223         * platform/graphics/wince/FontCacheWinCE.cpp:
2224         * platform/graphics/wx/FontCacheWx.cpp:
2225         (WebCore::FontCache::getFontDataForCharacters):
2226         Changed the calls to getFontData() to not increment the reference
2227         count. The caller of this getFontDataForCharacters() (currently only
2228         Font::glyphDataForCharacter() in fontFastPath.cpp) and it's callers
2229         don't attempt to release the returned fonts so we use the purge
2230         protection described above.
2231
2232         * rendering/InlineTextBox.cpp:
2233         (WebCore::InlineTextBox::selectionRect):
2234         (WebCore::InlineTextBox::offsetForPosition):
2235         (WebCore::InlineTextBox::positionForOffset):
2236         Wrapped code accessing fallback fonts with local
2237         FontCachePurgePreventer in these methods.
2238
2239         * rendering/RenderImage.cpp:
2240         (WebCore::RenderImage::setImageSizeForAltText):
2241         Wrapped code accessing fallback fonts with local
2242         FontCachePurgePreventer in this method.
2243
2244         * rendering/RenderListBox.cpp:
2245         (WebCore::RenderListBox::updateFromElement):
2246         (WebCore::RenderListBox::paintItemForeground):
2247         Wrapped code accessing fallback fonts with local
2248         FontCachePurgePreventer in these methods
2249
2250         * rendering/svg/SVGInlineTextBox.cpp:
2251         (WebCore::SVGInlineTextBox::selectionRectForTextFragment):
2252         Wrapped code accessing fallback fonts with local
2253         FontCachePurgePreventer in this method.
2254
2255 2011-06-07  Tim Horton  <timothy_horton@apple.com>
2256
2257         Reviewed by Alexey Proskuryakov.
2258
2259         Use correct CFURLStorageSessionRef definition on Snow Leopard
2260         https://bugs.webkit.org/show_bug.cgi?id=62223
2261
2262         * platform/mac/WebCoreSystemInterface.h:
2263         * platform/network/ResourceHandle.h:
2264         * platform/network/cf/ResourceRequest.h:
2265
2266 2011-06-07  Alok Priyadarshi  <alokp@chromium.org>
2267
2268         Reviewed by Stephen White.
2269
2270         [chromium] PlatformContextSkia leaks SkDeviceFactory
2271         https://bugs.webkit.org/show_bug.cgi?id=62163
2272
2273         Valgrind tests should have caught this.
2274
2275         * platform/graphics/skia/PlatformContextSkia.cpp:
2276         (WebCore::PlatformContextSkia::setSharedGraphicsContext3D):
2277
2278 2011-06-07  Emil A Eklund  <eae@chromium.org>
2279
2280         Reviewed by Eric Seidel.
2281
2282         Convert RenderTextControl::hitInnerTextElement to IntPoint
2283         https://bugs.webkit.org/show_bug.cgi?id=62167
2284
2285         Covered by existing tests.
2286
2287         * rendering/RenderTextControl.cpp:
2288         (WebCore::RenderTextControl::hitInnerTextElement):
2289         * rendering/RenderTextControl.h:
2290         * rendering/RenderTextControlMultiLine.cpp:
2291         (WebCore::RenderTextControlMultiLine::nodeAtPoint):
2292         * rendering/RenderTextControlSingleLine.cpp:
2293         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
2294
2295 2011-06-07  Levi Weintraub  <leviw@chromium.org>
2296
2297         Reviewed by Eric Seidel.
2298
2299         Switch paint to use IntPoint
2300         https://bugs.webkit.org/show_bug.cgi?id=62177
2301
2302         Flipping the switch on the remaining paint functions to have them all
2303         use IntPoint for the paint offset instead of tx/ty.
2304
2305         No new tests since this is just refactoring.
2306
2307         * page/FrameView.cpp:
2308         (WebCore::FrameView::paintScrollCorner):
2309         * rendering/InlineBox.cpp:
2310         (WebCore::InlineBox::paint):
2311         * rendering/RenderBlock.cpp:
2312         (WebCore::RenderBlock::paint):
2313         (WebCore::RenderBlock::paintContents):
2314         (WebCore::RenderBlock::paintChildren):
2315         (WebCore::RenderBlock::paintFloats):
2316         * rendering/RenderBlock.h:
2317         * rendering/RenderBox.cpp:
2318         (WebCore::RenderBox::paint):
2319         * rendering/RenderBox.h:
2320         * rendering/RenderBoxModelObject.cpp:
2321         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
2322         * rendering/RenderDetailsMarker.cpp:
2323         (WebCore::RenderDetailsMarker::paint):
2324         * rendering/RenderDetailsMarker.h:
2325         * rendering/RenderEmbeddedObject.cpp:
2326         (WebCore::RenderEmbeddedObject::paint):
2327         * rendering/RenderEmbeddedObject.h:
2328         * rendering/RenderFrameSet.cpp:
2329         (WebCore::RenderFrameSet::paint):
2330         * rendering/RenderFrameSet.h:
2331         * rendering/RenderImage.cpp:
2332         (WebCore::RenderImage::paint):
2333         * rendering/RenderImage.h:
2334         * rendering/RenderInline.cpp:
2335         (WebCore::RenderInline::paint):
2336         * rendering/RenderInline.h:
2337         * rendering/RenderLayer.cpp:
2338         (WebCore::RenderLayer::paintScrollCorner):
2339         (WebCore::RenderLayer::paintResizer):
2340         (WebCore::RenderLayer::paintLayer):
2341         * rendering/RenderLayerBacking.cpp:
2342         (WebCore::RenderLayerBacking::paintIntoLayer):
2343         * rendering/RenderLineBoxList.cpp:
2344         (WebCore::RenderLineBoxList::paint):
2345         * rendering/RenderLineBoxList.h:
2346         * rendering/RenderListItem.cpp:
2347         (WebCore::RenderListItem::paint):
2348         * rendering/RenderListItem.h:
2349         * rendering/RenderListMarker.cpp:
2350         (WebCore::RenderListMarker::paint):
2351         * rendering/RenderListMarker.h:
2352         * rendering/RenderObject.cpp:
2353         (WebCore::RenderObject::paint):
2354         * rendering/RenderObject.h:
2355         * rendering/RenderReplaced.cpp:
2356         (WebCore::RenderReplaced::paint):
2357         * rendering/RenderReplaced.h:
2358         * rendering/RenderReplica.cpp:
2359         (WebCore::RenderReplica::paint):
2360         * rendering/RenderReplica.h:
2361         * rendering/RenderScrollbar.cpp:
2362         (WebCore::RenderScrollbar::paintPart):
2363         * rendering/RenderScrollbarPart.cpp:
2364         (WebCore::RenderScrollbarPart::paintIntoRect):
2365         * rendering/RenderScrollbarPart.h:
2366         * rendering/RenderTable.cpp:
2367         (WebCore::RenderTable::paint):
2368         (WebCore::RenderTable::paintObject):
2369         * rendering/RenderTable.h:
2370         * rendering/RenderTableCell.cpp:
2371         (WebCore::RenderTableCell::paint):
2372         * rendering/RenderTableCell.h:
2373         * rendering/RenderTableRow.cpp:
2374         (WebCore::RenderTableRow::paint):
2375         * rendering/RenderTableRow.h:
2376         * rendering/RenderTableSection.cpp:
2377         (WebCore::RenderTableSection::paint):
2378         (WebCore::RenderTableSection::paintCell):
2379         * rendering/RenderTableSection.h:
2380         * rendering/RenderText.h:
2381         (WebCore::RenderText::paint):
2382         * rendering/RenderTextControlSingleLine.cpp:
2383         (WebCore::RenderTextControlSingleLine::paint):
2384         * rendering/RenderTextControlSingleLine.h:
2385         * rendering/RenderView.cpp:
2386         (WebCore::RenderView::paint):
2387         * rendering/RenderView.h:
2388         * rendering/RenderWidget.cpp:
2389         (WebCore::RenderWidget::paint):
2390         * rendering/RenderWidget.h:
2391         * rendering/mathml/RenderMathMLBlock.cpp:
2392         (WebCore::RenderMathMLBlock::paint):
2393         * rendering/mathml/RenderMathMLBlock.h:
2394         * rendering/mathml/RenderMathMLFraction.cpp:
2395         (WebCore::RenderMathMLFraction::paint):
2396         * rendering/mathml/RenderMathMLFraction.h:
2397         * rendering/mathml/RenderMathMLRoot.cpp:
2398         (WebCore::RenderMathMLRoot::paint):
2399         * rendering/mathml/RenderMathMLRoot.h:
2400         * rendering/mathml/RenderMathMLSquareRoot.cpp:
2401         (WebCore::RenderMathMLSquareRoot::paint):
2402         * rendering/mathml/RenderMathMLSquareRoot.h:
2403         * rendering/svg/RenderSVGContainer.cpp:
2404         (WebCore::RenderSVGContainer::paint):
2405         * rendering/svg/RenderSVGContainer.h:
2406         * rendering/svg/RenderSVGForeignObject.cpp:
2407         (WebCore::RenderSVGForeignObject::paint):
2408         * rendering/svg/RenderSVGForeignObject.h:
2409         * rendering/svg/RenderSVGHiddenContainer.cpp:
2410         (WebCore::RenderSVGHiddenContainer::paint):
2411         * rendering/svg/RenderSVGHiddenContainer.h:
2412         * rendering/svg/RenderSVGImage.cpp:
2413         (WebCore::RenderSVGImage::paint):
2414         * rendering/svg/RenderSVGImage.h:
2415         * rendering/svg/RenderSVGPath.cpp:
2416         (WebCore::RenderSVGPath::paint):
2417         * rendering/svg/RenderSVGPath.h:
2418         * rendering/svg/RenderSVGResourceMarker.cpp:
2419         (WebCore::RenderSVGResourceMarker::draw):
2420         * rendering/svg/RenderSVGRoot.cpp:
2421         (WebCore::RenderSVGRoot::paint):
2422         * rendering/svg/RenderSVGRoot.h:
2423         * rendering/svg/RenderSVGText.cpp:
2424         (WebCore::RenderSVGText::paint):
2425         * rendering/svg/RenderSVGText.h:
2426         * rendering/svg/SVGImageBufferTools.cpp:
2427         (WebCore::SVGImageBufferTools::renderSubtreeToImageBuffer):
2428
2429 2011-06-07  Young Han Lee  <joybro@company100.net>
2430
2431         Reviewed by Kenneth Rohde Christiansen.
2432
2433         [Texmap][Qt] Accelerated animation is not paused properly.
2434         https://bugs.webkit.org/show_bug.cgi?id=61446
2435
2436         The transform matrix of an accelerated animation shouldn't be synced with the matrix of the GraphicsLayer when the animation is paused.
2437
2438         Test: animations/play-state-paused.html
2439
2440         * platform/graphics/texmap/TextureMapperNode.cpp:
2441         (WebCore::TextureMapperNode::syncCompositingStateSelf):
2442         (WebCore::TextureMapperNode::hasOpacityAnimation):
2443         (WebCore::TextureMapperNode::hasTransformAnimation):
2444         * platform/graphics/texmap/TextureMapperNode.h:
2445
2446 2011-06-07  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
2447
2448         Reviewed by Antonio Gomes.
2449
2450         [EFL] Remove Ecore_X bits from PlatformScreenEfl
2451         https://bugs.webkit.org/show_bug.cgi?id=61649
2452
2453         Remove the need for Ecore_X and some X calls by always using
2454         new functions available in EFL to get the screen size.
2455
2456         No new tests since the same functionality are done inside EFL now.
2457
2458         * platform/efl/PlatformScreenEfl.cpp:
2459         (WebCore::screenRect):
2460
2461 2011-06-07  Carlos Garcia Campos  <cgarcia@igalia.com>
2462
2463         Reviewed by Martin Robinson.
2464
2465         [GTK] Move moduleMixesGtkSymbols() from PluginPackage to PluginView
2466         https://bugs.webkit.org/show_bug.cgi?id=62200
2467
2468         In WebKit2 PluginPackage is used by the UI process to load plugins
2469         in order to get information about them, but it doesn't use any GTK
2470         symbol. So the UI process should be able to load plugins even when
2471         building with GTK3, but we should not allow the plugin view to use
2472         the plugin if it mixes GTK2 and GTK3 symbols.
2473
2474         * plugins/PluginPackage.h:
2475         (WebCore::PluginPackage::module): New method to return the
2476         platform module.
2477         * plugins/gtk/PluginPackageGtk.cpp:
2478         (WebCore::PluginPackage::load): Remove moduleMixesGtkSymbols().
2479         * plugins/gtk/PluginViewGtk.cpp:
2480         (WebCore::PluginView::updatePluginWidget): Check whether plugin
2481         was successfully loaded before trying to create the drawable.
2482         (WebCore::PluginView::paint): Return early if plugin didn't start
2483         or was not successfully loaded.
2484         (WebCore::PluginView::handleKeyboardEvent): Ditto.
2485         (WebCore::PluginView::handleMouseEvent): Ditto.
2486         (WebCore::PluginView::handleFocusInEvent): Ditto.
2487         (WebCore::PluginView::handleFocusOutEvent): Ditto.
2488         (WebCore::moduleMixesGtkSymbols):
2489         (WebCore::PluginView::platformStart): Check whether module is
2490         mixing GTK+ 2 and GTK+ 3 symbols.
2491
2492 2011-06-07  Sheriff Bot  <webkit.review.bot@gmail.com>
2493
2494         Unreviewed, rolling out r88238.
2495         http://trac.webkit.org/changeset/88238
2496         https://bugs.webkit.org/show_bug.cgi?id=62216
2497
2498         Broke a couple of inspector tests (Requested by apavlov on
2499         #webkit).
2500
2501         * inspector/front-end/StylesSidebarPane.js:
2502         (WebInspector.StylesSidebarPane.prototype.update):
2503
2504 2011-06-07  Dinu Jacob  <dinu.jacob@nokia.com>
2505
2506         Reviewed by Dimitri Glazkov.
2507
2508         Inform ChromeClient touch events are not needed by the webpage when navigating away from the page instead of in both Document:detach/CachedFrame
2509         https://bugs.webkit.org/show_bug.cgi?id=61543
2510
2511         Inform chrome client that touch events are not needed by the webpage 
2512         when navigating away from the page only once to avoid the flag being 
2513         overwritten later if a page is removed from the page cache
2514
2515         * dom/Document.cpp:
2516         (WebCore::Document::detach):
2517         * history/CachedFrame.cpp:
2518         (WebCore::CachedFrame::CachedFrame):
2519         * loader/FrameLoader.cpp:
2520         (WebCore::FrameLoader::transitionToCommitted):
2521
2522 2011-06-07  Alexander Pavlov  <apavlov@chromium.org>
2523
2524         Reviewed by Yury Semikhatsky.
2525
2526         Web Inspector: node selection is slow in the Elements panel.
2527         https://bugs.webkit.org/show_bug.cgi?id=60813
2528
2529         Schedule full style updates rather than request all node styles from the backend immediately.
2530
2531         * inspector/front-end/StylesSidebarPane.js:
2532         (WebInspector.StylesSidebarPane.prototype.update.reloadAllStyles):
2533         (WebInspector.StylesSidebarPane.prototype.update):
2534
2535 2011-06-07  Yury Semikhatsky  <yurys@chromium.org>
2536
2537         Reviewed by Pavel Feldman.
2538
2539         Web Inspector: remove duplicate breakpoints from localStorage
2540         https://bugs.webkit.org/show_bug.cgi?id=62206
2541
2542         Perform one-time breakpoint storage cleanup to get rid of duplicate breakpoints in
2543         case when settings version is less than 1. 
2544
2545         * inspector/front-end/Settings.js:
2546         (WebInspector.Settings):
2547         (WebInspector.Settings.prototype._set):
2548         (WebInspector.Settings.prototype._migrateSettings.splitObjects):
2549         (WebInspector.Settings.prototype._migrateSettings.removeDuplicateObjects):
2550         (WebInspector.Settings.prototype._migrateSettings):
2551
2552 2011-06-03  Yury Semikhatsky  <yurys@chromium.org>
2553
2554         Reviewed by Pavel Feldman.
2555
2556         [Chromium] Web Inspector: correctly handle disconnect from worker when script execution is paused
2557         https://bugs.webkit.org/show_bug.cgi?id=62019
2558
2559         Dispatch disconnecFrontend message in debugger task mode to make sure
2560         it is processed even if execution is paused.
2561
2562         * bindings/v8/WorkerScriptDebugServer.cpp:
2563         (WebCore::WorkerScriptDebugServer::runMessageLoopOnPause):
2564         (WebCore::WorkerScriptDebugServer::quitMessageLoopOnPause):
2565         * bindings/v8/WorkerScriptDebugServer.h:
2566
2567 2011-06-07  Felician Marton  <marton.felician.zoltan@stud.u-szeged.hu>
2568
2569         Reviewed by Nikolas Zimmermann.
2570
2571         SVG animation beginElement() does not restart the animation after endElement().
2572         https://bugs.webkit.org/show_bug.cgi?id=43452
2573
2574         Test: svg/animations/animate-endElement-beginElement.html
2575
2576         Calling beginElement() after calling endElement() previously does not restarted the animation when animation
2577         element's end attribute doesn't contains a bigger value than the current animation time.
2578
2579         * svg/animation/SVGSMILElement.cpp:
2580         (WebCore::SVGSMILElement::findInstanceTime):
2581
2582 2011-06-07  Naoki Takano  <takano.naoki@gmail.com>
2583
2584         Reviewed by Kent Tamura.
2585
2586         [Chromium] Click event is not fired for a menulist <select>
2587         https://bugs.webkit.org/show_bug.cgi?id=60563
2588
2589         Tests: SelectItemEventFire, SelectItemKeyEvent, SelectItemRemoveSelectOnChange and SelectItemRemoveSelectOnChange in webkit_unit_tests.
2590
2591         * platform/chromium/PopupMenuChromium.cpp:
2592         (WebCore::PopupContainer::showPopup): Set m_focusedNode from m_frameView.
2593         (WebCore::PopupListBox::handleMouseReleaseEvent): Call dispatchMouseEvent to forward the event only if select popup.
2594         (WebCore::PopupListBox::acceptIndex): Change to return accepted or not.
2595
2596 2011-06-07  Andras Becsi  <abecsi@webkit.org>
2597
2598         Reviewed by Yury Semikhatsky.
2599  
2600         REGRESSION(r88221): "Chromium debug compilation broken".
2601         https://bugs.webkit.org/show_bug.cgi?id=62197
2602
2603         No new tests needed.
2604
2605         * bindings/v8/V8GCController.cpp: Also rename call-sites.
2606         (WebCore::V8GCController::gcPrologue):
2607         (WebCore::V8GCController::gcEpilogue):
2608
2609 2011-06-07  MORITA Hajime  <morrita@google.com>
2610
2611         Unreviewed, rolling out r88212 and r88219.
2612         http://trac.webkit.org/changeset/88212
2613         http://trac.webkit.org/changeset/88219
2614         https://bugs.webkit.org/show_bug.cgi?id=57439
2615
2616         Tests get timeout at Snow Leopard
2617
2618         * css/html.css:
2619         (html:focus, body:focus, input[readonly]:focus):
2620         * rendering/RenderWidget.cpp:
2621         (WebCore::RenderWidget::paint):
2622
2623 2011-06-07  Andras Becsi  <abecsi@webkit.org>
2624
2625         Rubber-stamped by Csaba Osztrogonác.
2626
2627         [Qt][V8] Fix the build after 88221.
2628
2629         No new tests needed.
2630
2631         * WebCore.pro: Remove non-existing files.
2632         * bindings/v8/V8DOMMap.cpp: 
2633         (WebCore::removeAllDOMObjects): Also rename the definition of the function.
2634
2635 2011-06-06  Dmitry Lomov  <dslomov@google.com>
2636
2637         Reviewed by Adam Barth.
2638
2639         https://bugs.webkit.org/show_bug.cgi?id=62164
2640         Remove "multi-threaded" logic in V8 DOMData, DOMDataStore and friends
2641         This functionality is untested and unused:
2642         This is an old code from Lockers-based implementation of WebWorkers in
2643         V8 bindings, to make sure that DOM objects are released on the right thread
2644         even though GC could have happened on any thread. It is currently unused (since
2645         current model is one worker per process) and is being removed because new implementation
2646         of WebWorkers will be using V8 isolates.
2647
2648         * WebCore.gypi:
2649         * bindings/v8/ChildThreadDOMData.cpp: Removed.
2650         * bindings/v8/ChildThreadDOMData.h: Removed.
2651         * bindings/v8/DOMData.cpp:
2652         (WebCore::DOMData::DOMData):
2653         (WebCore::DOMData::getCurrent):
2654         (WebCore::DOMData::getMainThreadStore):
2655         * bindings/v8/DOMData.h:
2656         (WebCore::DOMData::getStore):
2657         (WebCore::DOMData::getCurrentMainThreadStore):
2658         (WebCore::DOMData::handleWeakObject):
2659         * bindings/v8/DOMDataStore.cpp:
2660         (WebCore::DOMDataStore::DOMDataStore):
2661         (WebCore::DOMDataStore::~DOMDataStore):
2662         (WebCore::DOMDataStore::weakNodeCallback):
2663         * bindings/v8/DOMDataStore.h:
2664         * bindings/v8/MainThreadDOMData.cpp: Removed.
2665         * bindings/v8/MainThreadDOMData.h: Removed.
2666         * bindings/v8/V8DOMMap.cpp:
2667         (WebCore::getDOMDataStore):
2668         (WebCore::visitDOMNodes):
2669         (WebCore::visitDOMObjects):
2670         (WebCore::visitActiveDOMObjects):
2671         (WebCore::visitDOMSVGElementInstances):
2672         * bindings/v8/V8DOMMap.h:
2673         * bindings/v8/V8GCController.cpp:
2674         (WebCore::V8GCController::gcPrologue):
2675         (WebCore::V8GCController::gcEpilogue):
2676         * bindings/v8/WorkerScriptController.cpp:
2677         (WebCore::WorkerScriptController::~WorkerScriptController):
2678
2679 2011-06-06  Nico Weber  <thakis@chromium.org>
2680
2681         Reviewed by Adam Barth.
2682
2683         [chromium] Make VideoFrameChromium's destructor virtual
2684         https://bugs.webkit.org/show_bug.cgi?id=62186
2685
2686         This fixes a real bug, since WebMediaPlayerClientImpl::putCurrentFrame
2687         deletes a VideoFrameChromium subclass type through this interface
2688         class, causing ~VideoFrameChromiumImpl's destructor not to run.
2689         (VideoFrameChroimumImpl happens to not have a destructor or any
2690         non-POD member variables, so it's more a latent bug.)
2691
2692         * platform/graphics/chromium/VideoFrameChromium.cpp:
2693         (WebCore::VideoFrameChromium::~VideoFrameChromium):
2694         * platform/graphics/chromium/VideoFrameChromium.h:
2695
2696 2011-06-06  Simon Fraser  <simon.fraser@apple.com>
2697
2698         Reviewed by Sammy Weinig.
2699
2700         Remove some unnecessary includes from AnimationBase.cpp
2701         https://bugs.webkit.org/show_bug.cgi?id=62183
2702
2703         * page/animation/AnimationBase.cpp:
2704
2705 2011-06-06  Kent Tamura  <tkent@chromium.org>
2706
2707         Unreviewed, a crash fix by a roll out.
2708
2709         REGRESSION(r87980): Null pointer dereference in RenderTextControl::setInnerText()
2710         https://bugs.webkit.org/show_bug.cgi?id=62116
2711
2712         Roll out the WebCore part of r87980.
2713
2714         * html/SearchInputType.cpp:
2715         (WebCore::SearchInputType::SearchInputType):
2716         (WebCore::SearchInputType::createShadowSubtree):
2717         (WebCore::SearchInputType::destroyShadowSubtree):
2718         * html/SearchInputType.h:
2719         (WebCore::SearchInputType::innerBlockElement):
2720         (WebCore::SearchInputType::resultsButtonElement):
2721         (WebCore::SearchInputType::cancelButtonElement):
2722         * html/TextFieldInputType.cpp:
2723         (WebCore::TextFieldInputType::TextFieldInputType):
2724         (WebCore::TextFieldInputType::createShadowSubtree):
2725         (WebCore::TextFieldInputType::destroyShadowSubtree):
2726         * html/TextFieldInputType.h:
2727         (WebCore::TextFieldInputType::innerTextElement):
2728         (WebCore::TextFieldInputType::innerSpinButtonElement):
2729         (WebCore::TextFieldInputType::speechButtonElement):
2730         (WebCore::TextFieldInputType::setInnerTextElement):
2731         (WebCore::TextFieldInputType::setSpeechButtonElement):
2732         * html/shadow/TextControlInnerElements.cpp:
2733         * html/shadow/TextControlInnerElements.h:
2734
2735 2011-06-06  No'am Rosenthal  <noam.rosenthal@nokia.com>
2736
2737         Reviewed by Simon Fraser.
2738
2739         Allow copying of KeyframeValueList.
2740         https://bugs.webkit.org/show_bug.cgi?id=62171
2741
2742         Make a deep copy of KeyframeValueList, copying each of the keyframes with a virtual clone() function.
2743
2744         No new functionality so no new tests.
2745
2746         * platform/graphics/GraphicsLayer.h:
2747         (WebCore::FloatAnimationValue::clone):
2748         (WebCore::TransformAnimationValue::TransformAnimationValue):
2749         (WebCore::TransformAnimationValue::clone):
2750         (WebCore::TransformAnimationValue::value):
2751         (WebCore::KeyframeValueList::KeyframeValueList):
2752
2753 2011-06-06  Simon Fraser  <simon.fraser@apple.com>
2754
2755         Reviewed by Dan Bernstein.
2756
2757         Incorrect rounding of color values during transitions
2758         https://bugs.webkit.org/show_bug.cgi?id=62141
2759         
2760         When blending integers, round to the nearest integer, instead of always rounding down.
2761
2762         Test: transitions/color-transition-rounding.html
2763
2764         * page/animation/AnimationBase.cpp:
2765         (WebCore::blendFunc):
2766
2767 2011-06-06  Sheriff Bot  <webkit.review.bot@gmail.com>
2768
2769         Unreviewed, rolling out r88202.
2770         http://trac.webkit.org/changeset/88202
2771         https://bugs.webkit.org/show_bug.cgi?id=62182
2772
2773         This broke the mac clang bot (Requested by koz__ on #webkit).
2774
2775         * dom/Node.cpp:
2776         (WebCore::Node::hasNonEmptyBoundingBox):
2777         * rendering/InlineBox.h:
2778         * rendering/RenderBlock.cpp:
2779         (WebCore::RenderBlock::absoluteRects):
2780         * rendering/RenderBlock.h:
2781         * rendering/RenderBox.cpp:
2782         (WebCore::RenderBox::absoluteRects):
2783         * rendering/RenderBox.h:
2784         * rendering/RenderInline.cpp:
2785         (WebCore::RenderInline::absoluteRects):
2786         * rendering/RenderInline.h:
2787         * rendering/RenderObject.cpp:
2788         (WebCore::RenderObject::absoluteBoundingBoxRect):
2789         * rendering/RenderObject.h:
2790         (WebCore::RenderObject::absoluteRects):
2791         * rendering/RenderText.cpp:
2792         (WebCore::RenderText::absoluteRects):
2793         * rendering/RenderText.h:
2794         * rendering/RenderView.cpp:
2795         (WebCore::RenderView::absoluteRects):
2796         * rendering/RenderView.h:
2797
2798 2011-06-06  Noel Gordon  <noel.gordon@gmail.com>
2799
2800         Reviewed by Hajime Morita.
2801
2802         Draw CSS outline style for render widgets: iframe, embed, object, applet.
2803         https://bugs.webkit.org/show_bug.cgi?id=57439
2804
2805         Draw CSS outlines for render widgets: iframe, embed, object, applet. These elements can
2806         be focused (via clicks or tabIndex) but should not have a visible focus ring by default.
2807
2808         Tests: fast/replaced/no-focus-ring-embed-1.html
2809                fast/replaced/no-focus-ring-embed-2.html
2810                fast/replaced/no-focus-ring-iframe.html
2811                fast/replaced/no-focus-ring-object-1.html
2812                fast/replaced/no-focus-ring-object-2.html
2813                fast/replaced/outline-replaced-elements.html
2814
2815         * css/html.css:
2816         (applet:focus, embed:focus, iframe:focus, object:focus):  Default to no focus ring.
2817         * rendering/RenderWidget.cpp:
2818         (WebCore::RenderWidget::paint): Paint the render widget CSS outline style.
2819
2820 2011-06-06  MORITA Hajime  <morrita@google.com>
2821
2822         Reviewed by Kent Tamura.
2823
2824         Assertion fails in TextCheckingHelper by right-clicking on <input type=search>
2825         https://bugs.webkit.org/show_bug.cgi?id=61991
2826
2827         Added a guard bofore TextCheckingHelper construction sites.
2828
2829         Test: editing/spelling/spellcheck-input-search-crash.html
2830
2831         * editing/Editor.cpp:
2832         (WebCore::Editor::isSelectionUngrammatical):
2833         (WebCore::Editor::guessesForUngrammaticalSelection):
2834         (WebCore::Editor::guessesForMisspelledOrUngrammaticalSelection):
2835
2836 2011-06-06  Emil A Eklund  <eae@chromium.org>
2837
2838         Reviewed by Eric Seidel.
2839
2840         Update RenderBlock::paint to use IntPoint internally
2841         https://bugs.webkit.org/show_bug.cgi?id=62140
2842
2843         Covered by existing tests.
2844
2845         * rendering/RenderBlock.cpp:
2846         (WebCore::RenderBlock::paint):
2847
2848 2011-06-06  Emil A Eklund  <eae@chromium.org>
2849
2850         Reviewed by Eric Seidel.
2851
2852         Convert RenderBox::absoluteRects to IntPoint
2853         https://bugs.webkit.org/show_bug.cgi?id=62130
2854
2855         Covered by existing tests.
2856
2857         * dom/Node.cpp:
2858         (WebCore::Node::hasNonEmptyBoundingBox):
2859         * rendering/RenderBlock.cpp:
2860         (WebCore::RenderBlock::absoluteRects):
2861         * rendering/RenderBlock.h:
2862         * rendering/RenderBox.cpp:
2863         (WebCore::RenderBox::absoluteRects):
2864         * rendering/RenderBox.h:
2865         * rendering/RenderInline.cpp:
2866         (WebCore::RenderInline::absoluteRects):
2867         * rendering/RenderInline.h:
2868         * rendering/RenderObject.cpp:
2869         (WebCore::RenderObject::absoluteBoundingBoxRect):
2870         * rendering/RenderObject.h:
2871         (WebCore::RenderObject::absoluteRects):
2872         * rendering/RenderText.cpp:
2873         (WebCore::RenderText::absoluteRects):
2874         * rendering/RenderText.h:
2875         * rendering/RenderView.cpp:
2876         (WebCore::RenderView::absoluteRects):
2877         * rendering/RenderView.h:
2878
2879 2011-06-06  Levi Weintraub  <leviw@chromium.org>
2880
2881         Reviewed by Eric Seidel.
2882
2883         Switch shouldPaint to use IntPoint
2884         https://bugs.webkit.org/show_bug.cgi?id=62158
2885
2886         Switching shouldPaint to take an IntPoint representing the paint offset instead
2887         of a pair of ints.
2888
2889         No new tests as this is simple refactoring.
2890
2891         * rendering/RenderReplaced.cpp:
2892         (WebCore::RenderReplaced::paint):
2893         (WebCore::RenderReplaced::shouldPaint):
2894         * rendering/RenderReplaced.h:
2895         * rendering/RenderWidget.cpp:
2896         (WebCore::RenderWidget::paint):
2897
2898 2011-06-06  James Simonsen  <simonjam@chromium.org>
2899
2900         Reviewed by James Robinson.
2901
2902         Add monotonicallyIncreasingTime() to get monotonically increasing time
2903         https://bugs.webkit.org/show_bug.cgi?id=37743
2904
2905         * platform/chromium/SystemTimeChromium.cpp:
2906         (WebCore::monotonicallyIncreasingTime): Add primitive monotonicallyIncreasingTime() which just wraps currentTime().
2907
2908 2011-06-06  Emil A Eklund  <eae@chromium.org>
2909
2910         Reviewed by Eric Seidel.
2911
2912         Convert RenderBox::pushContentsClip to IntPoint
2913         https://bugs.webkit.org/show_bug.cgi?id=62133
2914
2915         Covered by existing tests.
2916
2917         * rendering/RenderBlock.cpp:
2918         (WebCore::Covered by existing tests.RenderBlock::paint):
2919         * rendering/RenderBox.cpp:
2920         (WebCore::RenderBox::pushContentsClip):
2921         * rendering/RenderBox.h:
2922         * rendering/RenderTable.cpp:
2923         (WebCore::RenderTable::paint):
2924         * rendering/RenderTableSection.cpp:
2925         (WebCore::RenderTableSection::paint):
2926
2927 2011-06-06  Levi Weintraub  <leviw@chromium.org>
2928
2929         Reviewed by Eric Seidel.
2930
2931         Switch InlineFlowBox::paintMask to use IntPoint
2932         https://bugs.webkit.org/show_bug.cgi?id=62156
2933
2934         Switching InlineFlowBox::paintMask to take an IntPoint representing the paint
2935         offset instead of a pair of ints.
2936
2937         No new tests as this is simple refactoring.
2938
2939         * rendering/InlineFlowBox.cpp:
2940         (WebCore::InlineFlowBox::paint):
2941         (WebCore::InlineFlowBox::paintMask):
2942         * rendering/InlineFlowBox.h:
2943
2944 2011-06-06  Emil A Eklund  <eae@chromium.org>
2945
2946         Reviewed by Eric Seidel.
2947
2948         Convert hitTest to IntPoint
2949         https://bugs.webkit.org/show_bug.cgi?id=62144
2950
2951         Covered by existing tests.
2952
2953         * rendering/InlineBox.cpp:
2954         (WebCore::InlineBox::nodeAtPoint):
2955         * rendering/RenderBlock.cpp:
2956         (WebCore::RenderBlock::hitTestFloats):
2957         (WebCore::RenderBlock::hitTestContents):
2958         * rendering/RenderInline.cpp:
2959         (WebCore::RenderInline::nodeAtPoint):
2960         * rendering/RenderLayer.cpp:
2961         (WebCore::RenderLayer::hitTestContents):
2962         * rendering/RenderLayer.h:
2963         (WebCore::RenderLayer::renderBoxLocation):
2964         (WebCore::RenderLayer::renderBoxX):
2965         (WebCore::RenderLayer::renderBoxY):
2966         * rendering/RenderLineBoxList.cpp:
2967         (WebCore::RenderLineBoxList::hitTest):
2968         * rendering/RenderLineBoxList.h:
2969         * rendering/RenderObject.cpp:
2970         (WebCore::RenderObject::hitTest):
2971         * rendering/RenderObject.h:
2972
2973 2011-06-06  Levi Weintraub  <leviw@chromium.org>
2974
2975         Reviewed by Eric Seidel.
2976
2977         Switch paintScrollbar to use IntPoint
2978         https://bugs.webkit.org/show_bug.cgi?id=62151
2979
2980         Switching paintScrollbar to use IntPoint instead of a pair of ints.
2981
2982         No new tests since this is simple refactoring.
2983
2984         * rendering/RenderListBox.cpp:
2985         (WebCore::RenderListBox::paintObject):
2986         (WebCore::RenderListBox::paintScrollbar):
2987         * rendering/RenderListBox.h:
2988
2989 2011-06-06  Daniel Cheng  <dcheng@chromium.org>
2990
2991         Reviewed by Tony Chang.
2992
2993         [chromium] Delete dead clipboard code.
2994         https://bugs.webkit.org/show_bug.cgi?id=62113
2995
2996         No new tests since this change only deleted unused code.
2997
2998         * WebCore.gypi:
2999         * platform/chromium/ChromiumDataObjectLegacy.cpp: Removed.
3000         * platform/chromium/ChromiumDataObjectLegacy.h: Removed.
3001         * platform/chromium/ReadableDataObject.cpp: Removed.
3002         * platform/chromium/ReadableDataObject.h: Removed.
3003         * platform/chromium/WritableDataObject.cpp: Removed.
3004         * platform/chromium/WritableDataObject.h: Removed.
3005
3006 2011-06-06  Levi Weintraub  <leviw@chromium.org>
3007
3008         Reviewed by Eric Seidel.
3009
3010         Switch paintOutline, paintContinuationOutlines, and paintOutlineForLine to use IntPoint
3011         https://bugs.webkit.org/show_bug.cgi?id=62137
3012
3013         Switching paintOutline, paintContinuationOutlines, and paintOutlineForLine to take an IntPoint
3014         representing the paint offset instead of a pair of ints.
3015
3016         No new tests as this is simple refactoring.
3017
3018         * rendering/RenderBlock.cpp:
3019         (WebCore::RenderBlock::paintObject):
3020         (WebCore::RenderBlock::paintContinuationOutlines):
3021         * rendering/RenderBlock.h:
3022         * rendering/RenderInline.cpp:
3023         (WebCore::RenderInline::paintOutline):
3024         (WebCore::RenderInline::paintOutlineForLine):
3025         * rendering/RenderInline.h:
3026         * rendering/RenderLineBoxList.cpp:
3027         (WebCore::RenderLineBoxList::paint):
3028
3029 2011-06-06  Emil A Eklund  <eae@chromium.org>
3030
3031         Reviewed by Eric Seidel.
3032
3033         Convert RenderBox::popContentsClip to IntPoint
3034         https://bugs.webkit.org/show_bug.cgi?id=62132
3035
3036         Covered by existing tests.
3037
3038         * rendering/RenderBlock.cpp:
3039         (WebCore::RenderBlock::paint):
3040         * rendering/RenderBox.cpp:
3041         (WebCore::RenderBox::popContentsClip):
3042         * rendering/RenderBox.h:
3043         * rendering/RenderTable.cpp:
3044         (WebCore::RenderTable::paint):
3045         * rendering/RenderTableSection.cpp:
3046         (WebCore::RenderTableSection::paint):
3047
3048 2011-06-06  Levi Weintraub  <leviw@chromium.org>
3049
3050         Reviewed by Eric Seidel.
3051
3052         Remove tx/ty offset from selectionRect
3053         https://bugs.webkit.org/show_bug.cgi?id=62146
3054
3055         Removing unused offset parameters from selectionRect.
3056
3057         No new tests since this is just cleanup.
3058
3059         * rendering/EllipsisBox.cpp:
3060         (WebCore::EllipsisBox::selectionRect):
3061         * rendering/EllipsisBox.h:
3062         * rendering/InlineTextBox.cpp:
3063         (WebCore::InlineTextBox::selectionRect):
3064         * rendering/InlineTextBox.h:
3065         * rendering/RenderText.cpp:
3066         (WebCore::RenderText::absoluteRectsForRange):
3067         (WebCore::ellipsisRectForBox):
3068         (WebCore::RenderText::absoluteQuadsForRange):
3069         (WebCore::RenderText::selectionRectForRepaint):
3070         * rendering/svg/RenderSVGInlineText.cpp:
3071         (WebCore::RenderSVGInlineText::localCaretRect):
3072         * rendering/svg/SVGInlineTextBox.cpp:
3073         (WebCore::SVGInlineTextBox::selectionRect):
3074         * rendering/svg/SVGInlineTextBox.h:
3075
3076 2011-06-06  Paul Kinlan  <paulkinlan@google.com>
3077
3078         Reviewed by Jeremy Orlow.
3079
3080         Let developers call createEvent("PopStateEvent"), previously it wasn't
3081         exposed and threw an exeception. 
3082         https://bugs.webkit.org/show_bug.cgi?id=62099
3083
3084         * WebCore/dom/Document.cpp:
3085         * WebCore/dom/PopStateEvent.cpp:
3086         * WebCore/dom/PopStateEvent.h:
3087
3088 2011-06-03  Levi Weintraub  <leviw@chromium.org>
3089
3090         Reviewed by Eric Seidel.
3091
3092         Switch paintSelection to use IntPoint
3093         https://bugs.webkit.org/show_bug.cgi?id=62059
3094
3095         Switching paintSelection to use an IntPoint to represent the paint offset
3096         instead of a pair of ints.
3097
3098         No new tests since this is simple refactoring.
3099
3100         * rendering/EllipsisBox.cpp:
3101         (WebCore::EllipsisBox::paint):
3102         (WebCore::EllipsisBox::paintSelection):
3103         * rendering/EllipsisBox.h:
3104         * rendering/RenderBlock.cpp:
3105         (WebCore::RenderBlock::paintObject):
3106         (WebCore::RenderBlock::paintSelection):
3107         * rendering/RenderBlock.h:
3108
3109 2011-06-06  Emil A Eklund  <eae@chromium.org>
3110
3111         Reviewed by Eric Seidel.
3112
3113         Convert RenderBox::clipRect to IntPoint
3114         https://bugs.webkit.org/show_bug.cgi?id=62045
3115
3116         Covered by existing tests.
3117
3118         * rendering/RenderBox.cpp:
3119         (WebCore::RenderBox::clipRect):
3120         * rendering/RenderBox.h:
3121         * rendering/RenderLayer.cpp:
3122         (WebCore::RenderLayer::calculateClipRects):
3123         (WebCore::RenderLayer::calculateRects):
3124         (WebCore::RenderLayer::repaintBlockSelectionGaps):
3125         * rendering/RenderLayerBacking.cpp:
3126         (WebCore::clipBox):
3127
3128 2011-06-06  Peter Kasting  <pkasting@google.com>
3129
3130         Reviewed by Antonio Gomes.
3131
3132         Remove unnecessary args from scroll functions.
3133         https://bugs.webkit.org/show_bug.cgi?id=61648
3134
3135         No behavior change, so no tests.
3136
3137         * WebCore.exp.in:
3138         * WebCore.order:
3139         * dom/Element.cpp:
3140         (WebCore::Element::scrollIntoView):
3141         (WebCore::Element::scrollIntoViewIfNeeded):
3142         * editing/FrameSelection.cpp:
3143         (WebCore::FrameSelection::revealSelection):
3144         * page/EventHandler.cpp:
3145         (WebCore::EventHandler::handleMousePressEvent):
3146         * page/FrameView.cpp:
3147         (WebCore::FrameView::scrollToAnchor):
3148         * rendering/RenderBox.cpp:
3149         (WebCore::RenderBox::canBeScrolledAndHasScrollableArea):
3150         (WebCore::RenderBox::canBeProgramaticallyScrolled):
3151         * rendering/RenderBox.h:
3152         * rendering/RenderLayer.cpp:
3153         (WebCore::RenderLayer::scrollRectToVisible):
3154         (WebCore::RenderLayer::autoscroll):
3155         * rendering/RenderLayer.h:
3156         * rendering/RenderListBox.h:
3157         (WebCore::RenderListBox::canBeProgramaticallyScrolled):
3158         * rendering/RenderTextControl.h:
3159         (WebCore::RenderTextControl::canBeProgramaticallyScrolled):
3160
3161 2011-06-06  Levi Weintraub  <leviw@chromium.org>
3162
3163         Reviewed by Eric Seidel.
3164
3165         Switch paintContents, paintColumnContents, paintColumnRules, and paintSelection to use IntPoint
3166         https://bugs.webkit.org/show_bug.cgi?id=62134
3167
3168         Switching paintContents, paintColumnContents, paintColumnRules, and paintSelection to take an
3169         IntPoint representing the paint offset instead of a pair of ints.
3170
3171         No new tests as this simple refactoring.
3172
3173         * rendering/RenderBlock.cpp:
3174         (WebCore::RenderBlock::paintColumnRules):
3175         (WebCore::RenderBlock::paintColumnContents):
3176         (WebCore::RenderBlock::paintContents):
3177         (WebCore::RenderBlock::paintObject):
3178         (WebCore::RenderBlock::paintSelection):
3179         * rendering/RenderBlock.h:
3180
3181 2011-06-06  Yael Aharon  <yael.aharon@nokia.com>
3182
3183         Reviewed by Eric Seidel.
3184
3185         Inline elements are wrapped prematurely with non-zero border, margin or padding.
3186         https://bugs.webkit.org/show_bug.cgi?id=60459
3187
3188         When an inline element has a right border/margin/padding and it has more than one descendant with no siblings,
3189         the width of the right border/margin/padding should be included in line breaking calculation only once,
3190         and not for each descendant.
3191
3192         Test: fast/inline/inline-wrap-with-parent-padding.html
3193
3194         * rendering/RenderBlockLineLayout.cpp:
3195         (WebCore::RenderBlock::LineBreaker::nextLineBreak):
3196
3197 2011-06-06  Shishir Agrawal  <shishir@chromium.org>
3198
3199         Reviewed by Tony Gentilcore.
3200
3201         Add a "prerender" state for page visibility.
3202         https://bugs.webkit.org/show_bug.cgi?id=62062
3203
3204         * page/PageVisibilityState.cpp:
3205         (WebCore::pageVisibilityStateString):
3206         * page/PageVisibilityState.h:
3207
3208 2011-06-06  Cary Clark  <caryclark@google.com>
3209
3210         Reviewed by Eric Seidel.
3211
3212         Fix typo in CachedFont.cpp #define
3213         https://bugs.webkit.org/show_bug.cgi?id=62127
3214
3215         No new tests. The define typo in question is
3216         not yet enabled, so this change has no functional
3217         impact.
3218
3219         * loader/cache/CachedFont.cpp:
3220         change SKIA_MAC_ON_CHROME to SKIA_ON_MAC_CHROME
3221
3222 2011-06-03  Levi Weintraub  <leviw@chromium.org>
3223
3224         Reviewed by Eric Seidel.
3225
3226         Switch paintFloats, paintChildren, and paintEllipsisBoxes to use IntPoint
3227         https://bugs.webkit.org/show_bug.cgi?id=62058
3228
3229         Switching paintFloats, paintChildren, and paintEllipsisBoxes to take IntPoints representing
3230         their paint offsets instead of pairs of ints.
3231
3232         No new tests since this is simple refactoring.
3233
3234         * rendering/RenderBlock.cpp:
3235         (WebCore::RenderBlock::paintColumnContents):
3236         (WebCore::RenderBlock::paintContents):
3237         (WebCore::RenderBlock::paintChildren):
3238         (WebCore::RenderBlock::paintObject):
3239         (WebCore::RenderBlock::paintFloats):
3240         (WebCore::RenderBlock::paintEllipsisBoxes):
3241         * rendering/RenderBlock.h:
3242
3243 2011-06-06  Steve Block  <steveblock@google.com>
3244
3245         Reviewed by Yury Semikhatsky.
3246
3247         Use of ENABLE(INSPECTOR) is inconsistent
3248         https://bugs.webkit.org/show_bug.cgi?id=62118
3249
3250         Correctly guard implementation of ScriptProfiler.
3251
3252         No new tests, build fix only.
3253
3254         * bindings/v8/ScriptProfiler.cpp:
3255         (WebCore::ScriptProfiler::initialize):
3256
3257 2011-06-04  Dominic Cooney  <dominicc@chromium.org>
3258
3259         Reviewed by Dimitri Glazkov.
3260
3261         Add WebCoreTestSupport project.
3262         https://bugs.webkit.org/show_bug.cgi?id=61076
3263
3264         * WebCore.vcproj/WebCoreCommon.vsprops:
3265         * WebCore.vcproj/WebCoreTestSupport.vcproj: Added.
3266         * WebCore.vcproj/copyForwardingHeaders.cmd: Copy WebCoreTestSupport.h.
3267
3268 2011-06-06  Alexandru Chiculita  <achicu@adobe.com>
3269
3270         Reviewed by Kent Tamura.
3271
3272         Add ENABLE_CSS_EXCLUSIONS support for build-webkit script
3273         https://bugs.webkit.org/show_bug.cgi?id=61628
3274
3275         This patch modifies only the build system. Therefore,
3276         there are no new tests.
3277
3278         * Configurations/FeatureDefines.xcconfig:
3279
3280 2011-06-06  Mihnea Ovidenie  <mihnea@adobe.com>
3281
3282         Reviewed by Kent Tamura.
3283
3284         Add ENABLE(CSS_REGIONS) guard for CSS Regions support
3285         https://bugs.webkit.org/show_bug.cgi?id=61631
3286         
3287         This patch modifies only the build system. Therefore,
3288         there are no new tests.
3289
3290         * Configurations/FeatureDefines.xcconfig:
3291
3292 2011-06-03  Hans Wennborg  <hans@chromium.org>
3293
3294         Reviewed by Tony Gentilcore.
3295
3296         IndexedDB: Clean-up function prototypes in IDBLevelDBBackingStore.cpp
3297         https://bugs.webkit.org/show_bug.cgi?id=62013
3298
3299         Clean up the prototypes for cursor open functions by introducing the
3300         CursorOptions struct.
3301
3302         Just clean-up, no new functionality so no new tests.
3303
3304         * storage/IDBLevelDBBackingStore.cpp:
3305         (WebCore::CursorOptions::CursorImplCommon::CursorImplCommon):
3306         (WebCore::CursorOptions::CursorImplCommon::firstSeek):
3307         (WebCore::CursorOptions::CursorImplCommon::continueFunction):
3308         (WebCore::CursorOptions::ObjectStoreCursorImpl::create):
3309         (WebCore::CursorOptions::ObjectStoreCursorImpl::ObjectStoreCursorImpl):
3310         (WebCore::CursorOptions::IndexKeyCursorImpl::create):
3311         (WebCore::CursorOptions::IndexKeyCursorImpl::IndexKeyCursorImpl):
3312         (WebCore::CursorOptions::IndexCursorImpl::create):
3313         (WebCore::CursorOptions::IndexCursorImpl::IndexCursorImpl):
3314         (WebCore::IDBLevelDBBackingStore::openObjectStoreCursor):
3315         (WebCore::IDBLevelDBBackingStore::openIndexKeyCursor):
3316         (WebCore::IDBLevelDBBackingStore::openIndexCursor):
3317
3318 2011-06-06  Mustafizur Rahaman  <mustaf.here@gmail.com>
3319
3320         Reviewed by Darin Adler.
3321
3322         Fix LayoutTests/canvas/philip/tests/2d.composite.operation.highlight.html
3323         https://bugs.webkit.org/show_bug.cgi?id=48290
3324         
3325         "highlight" is not a valid globalComposite operation
3326         as per http://www.w3.org/TR/2011/WD-2dcontext-20110525/#compositing
3327         Therefore, removed the option from the source code.
3328         
3329         Tests: No new tests required.
3330         LayoutTests\canvas\philip\tests\2d.composite.operation.highlight.html can be used for testing.
3331
3332         * css/CSSPrimitiveValueMappings.h:
3333         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
3334         (WebCore::CSSPrimitiveValue::operator CompositeOperator):
3335         * platform/graphics/GraphicsTypes.cpp:
3336         * platform/graphics/GraphicsTypes.h:
3337         * platform/graphics/cairo/CairoUtilities.cpp:
3338         (WebCore::toCairoOperator):
3339         * platform/graphics/cg/GraphicsContextCG.cpp:
3340         (WebCore::GraphicsContext::setPlatformCompositeOperation):
3341         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
3342         (WebCore::SharedGraphicsContext3D::applyCompositeOperator):
3343         * platform/graphics/openvg/PainterOpenVG.cpp:
3344         (WebCore::PlatformPainterState::applyBlending):
3345         * platform/graphics/qt/GraphicsContextQt.cpp:
3346         (WebCore::toQtCompositionMode):
3347         * platform/graphics/skia/SkiaUtils.cpp:
3348
3349 2011-06-04  Abhishek Arya  <inferno@chromium.org>
3350
3351         Reviewed by Kent Tamura.
3352
3353         Add some asserts for array boundary checks in TextRun. Fix
3354         an integer issue in linux text controller code.
3355         https://bugs.webkit.org/show_bug.cgi?id=62085
3356
3357         Testing ComplexTextControllerLinux change requires a testcase
3358         > 32 kb which is not feasible. All other changes are tested by
3359         existing layouttests.
3360
3361         * platform/graphics/TextRun.h:
3362         (WebCore::TextRun::operator[]): add assert.
3363         (WebCore::TextRun::data): add assert.
3364         * platform/graphics/WidthIterator.cpp:
3365         (WebCore::WidthIterator::advance): bail early and prevent access
3366         to one byte across the text run boundary.
3367         * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
3368         (WebCore::ComplexTextController::getNormalizedTextRun): wrong
3369         int16 vs int comparison.
3370         * rendering/svg/SVGTextRunRenderingContext.cpp:
3371         (WebCore::SVGTextRunWalker::walk): bail early when from and to
3372         is outside the text run boundary. this hit easily after adding
3373         the assert when from = to = end and read in run.data(from). 
3374
3375 2011-06-05  Kent Tamura  <tkent@chromium.org>
3376
3377         Reviewed by Dimitri Glazkov.
3378
3379         Rolling out r84528.
3380         http://trac.webkit.org/changeset/84528
3381         https://bugs.webkit.org/show_bug.cgi?id=62100
3382
3383         It made several problems on elements with new shadow DOM.
3384
3385         * dom/Element.cpp:
3386         (WebCore::Element::copyNonAttributeProperties):
3387
3388 2011-06-05  Igor Oliveira  <igor.oliveira@openbossa.org>
3389
3390         Reviewed by Kenneth Rohde Christiansen.
3391
3392         fast/viewport/viewport-45.html fails in GTK+/Qt
3393         https://bugs.webkit.org/show_bug.cgi?id=47481
3394
3395         computeViewportAttributes does many math operations with float point arithmetic
3396         and in some cases there is loss of precision making tests have incorrect values.
3397
3398         * dom/ViewportArguments.cpp:
3399         (WebCore::computeViewportAttributes):
3400
3401 == Rolled over to ChangeLog-2011-06-04 ==