https://bugs.webkit.org/show_bug.cgi?id=72591
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-11-18  Vineet Chaudhary  <vineet.chaudhary@motorola.com>
2
3         https://bugs.webkit.org/show_bug.cgi?id=72591
4         Remove document.width / document.height
5
6         Reviewed by Darin Adler.
7
8         Removed document.width/document.height from JS bindings,
9         but keeping the same for ObjC bindings. Also it should use
10         document.body.clientWidth and document.body.clientHeight instead.
11
12         * html/HTMLDocument.idl:
13
14 2011-11-18  Martin Robinson  <mrobinson@igalia.com>
15
16         Fix the GTK+ build.
17
18         * page/Navigator.idl: Properly disable the webkitGamepads API if gamepad
19         isn't enabled at compile time.
20
21 2011-11-18  Daniel Bates  <dbates@rim.com>
22
23         Add CMake build infrastructure for the BlackBerry port
24         https://bugs.webkit.org/show_bug.cgi?id=72768
25
26         Reviewed by Antonio Gomes.
27
28         * CMakeLists.txt: At this time the BlackBerry port doesn't support generating
29           DOM bindings from the SVG IDLs. See WebKit bug #72773.
30         * PlatformBlackBerry.cmake: Added.
31
32 2011-11-18  Sheriff Bot  <webkit.review.bot@gmail.com>
33
34         Unreviewed, rolling out r100826.
35         http://trac.webkit.org/changeset/100826
36         https://bugs.webkit.org/show_bug.cgi?id=72786
37
38         Broke Chromium Mac build (Requested by aklein on #webkit).
39
40         * page/ChromeClient.h:
41         * page/FrameView.cpp:
42         * page/FrameView.h:
43         * platform/ScrollView.cpp:
44         (WebCore::ScrollView::wheelEvent):
45         * platform/ScrollView.h:
46         * platform/ScrollableArea.h:
47         (WebCore::ScrollableArea::scrollbarStyleChanged):
48         * platform/mac/ScrollAnimatorMac.mm:
49         (WebCore::ScrollAnimatorMac::updateScrollerStyle):
50
51 2011-11-18  Alpha Lam  <hclam@chromium.org>
52
53         [chromium] composited layers are blurry with a zoom-in page scale factor
54         https://bugs.webkit.org/show_bug.cgi?id=71225
55
56         Reviewed by James Robinson.
57
58         Pass contents scale factor to the compositor such that it can:
59         1. Adjust contentBounds() of the compositoer layers with content scale.
60         2. Apply the content scale in the painter for texture update in better resolution.
61         3. Apply the content scale to the dirty rect in CanvasLayerTextureUpdater.
62
63         This change fixed blurry problem for all tiled layer types and is not limited to
64         position:fixed layers.
65
66         Tests: compositing/geometry/fixed-position-composited-page-scale-down.html
67                compositing/geometry/fixed-position-composited-page-scale.html
68                compositing/geometry/fixed-position-iframe-composited-page-scale-down.html
69                compositing/geometry/fixed-position-iframe-composited-page-scale.html
70                compositing/geometry/fixed-position-transform-composited-page-scale-down.html
71                compositing/geometry/fixed-position-transform-composited-page-scale.html
72
73         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
74         (WebCore::GraphicsLayerChromium::setTransform):
75         (WebCore::GraphicsLayerChromium::updateLayerPreserves3D):
76         (WebCore::GraphicsLayerChromium::updateContentsScale):
77         (WebCore::GraphicsLayerChromium::contentsScale):
78         (WebCore::GraphicsLayerChromium::deviceOrPageScaleFactorChanged):
79         * platform/graphics/chromium/GraphicsLayerChromium.h:
80         * platform/graphics/chromium/ImageLayerChromium.cpp:
81         (WebCore::ImageLayerTextureUpdater::prepareToUpdate):
82         (WebCore::ImageLayerChromium::needsContentsScale):
83         * platform/graphics/chromium/ImageLayerChromium.h:
84         * platform/graphics/chromium/LayerChromium.cpp:
85         (WebCore::LayerChromium::LayerChromium):
86         (WebCore::LayerChromium::setContentsScale):
87         * platform/graphics/chromium/LayerChromium.h:
88         (WebCore::LayerChromium::needsContentsScale):
89         (WebCore::LayerChromium::contentsScale):
90         * platform/graphics/chromium/LayerTextureUpdater.h:
91         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp:
92         (WebCore::LayerTextureUpdaterCanvas::paintContents):
93         (WebCore::LayerTextureUpdaterBitmap::prepareToUpdate):
94         (WebCore::LayerTextureUpdaterSkPicture::prepareToUpdate):
95         * platform/graphics/chromium/LayerTextureUpdaterCanvas.h:
96         * platform/graphics/chromium/TiledLayerChromium.cpp:
97         (WebCore::TiledLayerChromium::needsContentsScale):
98         (WebCore::TiledLayerChromium::contentBounds):
99         (WebCore::TiledLayerChromium::prepareToUpdate):
100         * platform/graphics/chromium/TiledLayerChromium.h:
101
102 2011-11-18  Igor Oliveira  <igor.oliveira@openbossa.org>
103
104         [WK2][Qt] Move Accelerated Composite animations to UIProcess
105         https://bugs.webkit.org/show_bug.cgi?id=72753
106
107         Add helper method to synchronize animations in TextureMapper.
108
109         Reviewed by Noam Rosenthal.
110
111         * platform/graphics/texmap/TextureMapperNode.cpp:
112         (WebCore::TextureMapperNode::syncAnimationsRecursively):
113         * platform/graphics/texmap/TextureMapperNode.h:
114
115 2011-11-18  Scott Graham  <scottmg@chromium.org>
116
117         IDL changes for gamepad support
118         https://bugs.webkit.org/show_bug.cgi?id=71753
119
120         Reviewed by Adam Barth.
121
122         IDL changes and associated plumbing to expose list of gamepad objects
123         on navigator object (per current spec). Full patch is
124         https://bugs.webkit.org/show_bug.cgi?id=69451. Only basic existence
125         test until more plumbing in future patches.
126
127         Test: gamepad/gamepad-api.html
128
129         * WebCore.gypi:
130         * bindings/generic/RuntimeEnabledFeatures.h:
131         (WebCore::RuntimeEnabledFeatures::setWebkitGamepadsEnabled):
132         (WebCore::RuntimeEnabledFeatures::webkitGamepadsEnabled):
133         * page/Gamepad.cpp: Added.
134         (WebCore::Gamepad::Gamepad):
135         (WebCore::Gamepad::axes):
136         (WebCore::Gamepad::buttons):
137         (WebCore::Gamepad::~Gamepad):
138         * page/Gamepad.h: Added.
139         * page/Gamepad.idl: Added.
140         * page/GamepadList.cpp: Added.
141         (WebCore::GamepadList::~GamepadList):
142         (WebCore::GamepadList::set):
143         (WebCore::GamepadList::length):
144         (WebCore::GamepadList::item):
145         * page/GamepadList.h: Added.
146         (WebCore::GamepadList::create):
147         (WebCore::GamepadList::GamepadList):
148         * page/GamepadList.idl: Added.
149         * page/Navigator.cpp:
150         (WebCore::Navigator::webkitGamepads):
151         * page/Navigator.h:
152         * page/Navigator.idl:
153
154 2011-11-18  Sheriff Bot  <webkit.review.bot@gmail.com>
155
156         Unreviewed, rolling out r100693.
157         http://trac.webkit.org/changeset/100693
158         https://bugs.webkit.org/show_bug.cgi?id=72779
159
160         This patch caused a rendering regression (see bug 72770)
161         (Requested by philip__ on #webkit).
162
163         * rendering/RenderObject.cpp:
164         (WebCore::RenderObject::setStyle):
165         * rendering/style/RenderStyle.cpp:
166         (WebCore::RenderStyle::diff):
167
168 2011-11-18  Simon Fraser  <simon.fraser@apple.com>
169
170         Reflection on composited element doesn't update if the element changes to show no content
171         https://bugs.webkit.org/show_bug.cgi?id=72774
172
173         Reviewed by Chris Marrin.
174         
175         When a style change results in a reflected element losing its backing store,
176         we need to clear the backing stores on the layer clones as well.
177
178         Test: compositing/reflections/become-simple-composited-reflection.html
179
180         * platform/graphics/ca/GraphicsLayerCA.cpp:
181         (WebCore::GraphicsLayerCA::updateLayerDrawsContent):
182
183 2011-11-18  Daniel Cheng  <dcheng@chromium.org>
184
185         [chromium] Use correct backing store for ChromiumDataObject in pasteboard writes.
186         https://bugs.webkit.org/show_bug.cgi?id=72767
187
188         Reviewed by Tony Chang.
189
190         Covered by existing tests.
191
192         * editing/chromium/EditorChromium.cpp:
193         (WebCore::Editor::newGeneralClipboard):
194         * page/chromium/EventHandlerChromium.cpp:
195         (WebCore::EventHandler::createDraggingClipboard):
196         * platform/chromium/ChromiumDataObject.cpp:
197         (WebCore::ChromiumDataObject::types):
198         (WebCore::ChromiumDataObject::getData):
199         (WebCore::ChromiumDataObject::containsFilenames):
200         (WebCore::ChromiumDataObject::ChromiumDataObject):
201         * platform/chromium/ChromiumDataObject.h:
202         (WebCore::ChromiumDataObject::createFromPasteboard):
203         (WebCore::ChromiumDataObject::create):
204         (WebCore::ChromiumDataObject::storageMode):
205         * platform/chromium/ClipboardChromium.cpp:
206         (WebCore::ClipboardChromium::hasData):
207
208 2011-11-18  Chris Evans  <cevans@google.com>
209
210         Crash with ranges across a detached, reparented node tree
211         https://bugs.webkit.org/show_bug.cgi?id=72757
212
213         Reviewed by Adam Barth.
214
215         Test: fast/dom/move-detached-child-in-range.html
216
217         * dom/RangeBoundaryPoint.h:
218         (WebCore::RangeBoundaryPoint::childBefore): protect the raw child node from getting pulled from under us.
219
220 2011-11-18  Beth Dakin  <bdakin@apple.com>
221
222         https://bugs.webkit.org/show_bug.cgi?id=72551
223         When the recommended scrollbar style changes, WKView's tracking options should 
224         adjust accordingly
225         -and corresponding-
226         <rdar://problem/10409328>
227
228         Reviewed by Darin Adler.
229
230         This new ChromeClient function is called when the recommended scrollbar style 
231         changes. This way, WebKit can respond to the change by adjusting its mouse 
232         tracking.
233         * page/ChromeClient.h:
234         (WebCore::ChromeClient::recommendedScrollbarStyleDidChange):
235
236         Existing ScrollableArea function scrollbarStyleChanged() now takes an int 
237         indicating the new scrollbar style and a bool indicating whether it is necessary 
238         to force an update. It used to be the case that this function was ONLY used to 
239         force an update (and only called when an updated was needed), but now that it must 
240         also call into the ChromeClient, it is necessary to include a bool tracking 
241         whether we need to force an update. New implementation on FrameView is responsible 
242         for calling ChromeClient, and then that calls into the pre-existing ScrollView 
243         function for the forceUpdate part.
244         * page/FrameView.cpp:
245         (WebCore::FrameView::scrollbarStyleChanged):
246         * page/FrameView.h:
247         * platform/ScrollView.cpp:
248         (WebCore::ScrollView:: scrollbarStyleChanged):
249         * platform/ScrollView.h:
250         * platform/ScrollableArea.h:
251         (WebCore::ScrollableArea::scrollbarStyleChanged):
252         * platform/mac/ScrollAnimatorMac.mm:
253         (WebCore::ScrollAnimatorMac::updateScrollerStyle):
254
255 2011-11-18  Kelly Norton  <knorton@google.com>
256
257         Fixes several more void functions in RenderObject that return values.
258         https://bugs.webkit.org/show_bug.cgi?id=72750
259
260         Reviewed by Adam Barth.
261
262         * rendering/RenderBlock.cpp:
263         (WebCore::RenderBlock::updateBeforeAfterContent):
264         (WebCore::RenderBlock::addChildToContinuation):
265         (WebCore::RenderBlock::addChildToAnonymousColumnBlocks):
266         (WebCore::RenderBlock::addChild):
267         (WebCore::RenderBlock::addChildIgnoringContinuation):
268
269 2011-11-18  Shawn Singh  <shawnsingh@chromium.org>
270
271         [chromium] Add some useful text to existing debug dump
272         https://bugs.webkit.org/show_bug.cgi?id=72576
273
274         Reviewed by James Robinson.
275
276         No new tests needed.
277
278         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
279         (WebCore::CCLayerImpl::dumpLayerProperties):
280         * platform/graphics/chromium/cc/CCRenderSurface.cpp:
281         (WebCore::CCRenderSurface::dumpSurface):
282
283 2011-11-18  Xiaomei Ji  <xji@chromium.org>
284
285         REGRESSION: rtl horizontal scrollbar / resize bug - Body shifts on resize when scrolled all the way to the left
286         https://bugs.webkit.org/show_bug.cgi?id=70395
287
288         Reviewed by Tony Chang.
289
290         This patch fixes the problem in Mac and Chromium Mac.
291    
292         The existing test fast/dom/rtl-scroll-to-leftmost-and-resize.html seems does not really work in Mac DRT
293         (the browswer window is not resized). It works in Chromium-Mac. And Chromium-Mac's code
294         is forked from Mac.
295
296         * platform/chromium/ScrollAnimatorChromiumMac.mm:
297         (WebCore::ScrollAnimatorChromiumMac::immediateScrollToPoint):
298         * platform/mac/ScrollAnimatorMac.mm:
299         (WebCore::ScrollAnimatorMac::immediateScrollToPoint):
300
301 2011-11-18  Martin Robinson  <mrobinson@igalia.com>
302
303         REGRESSION (r99924): broke 2 pasteboard tests on GTK
304         https://bugs.webkit.org/show_bug.cgi?id=72131
305
306         Reviewed by Tony Chang.
307
308         * platform/gtk/ClipboardGtk.cpp:
309         (WebCore::ClipboardGtk::clearData): Call clearAll now.
310         (WebCore::ClipboardGtk::clearAllData): Call clearAllExceptFilenames now.
311         * platform/gtk/DataObjectGtk.cpp:
312         (WebCore::DataObjectGtk::clearAllExceptFilenames): Renamed from clear.
313         (WebCore::DataObjectGtk::clearAll): Added this method which also clear filenames.
314         * platform/gtk/DataObjectGtk.h:
315         * platform/gtk/PasteboardGtk.cpp: Call clear before setting new clipboard data.
316         (WebCore::Pasteboard::writeSelection): Ditto.
317         (WebCore::Pasteboard::writePlainText): Ditto.
318         (WebCore::Pasteboard::writeURL): Ditto.
319         (WebCore::Pasteboard::writeImage): Ditto.
320         * platform/gtk/PasteboardHelper.cpp:
321         (WebCore::clearClipboardContentsCallback): Use the clearAll method now.
322
323 2011-11-18  Vineet Chaudhary  <vineet.chaudhary@motorola.com>
324
325         Access key should work on all elements.
326         https://bugs.webkit.org/show_bug.cgi?id=71854
327
328         Reviewed by Ryosuke Niwa.
329
330         All HTML elements can have the accesskey content attribute set.
331         Specification http://dev.w3.org/html5/spec/Overview.html#the-accesskey-attribute
332         Adding "accessKey" attribute to HTMLElement.idl file as [Reflect].
333
334         Test: fast/forms/access-key-for-all-elements.html
335
336         * bindings/objc/PublicDOMInterfaces.h: Moved properties form subclass to base class.
337         * html/BaseButtonInputType.cpp: 
338         (WebCore::BaseButtonInputType::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
339         * html/BaseButtonInputType.h: Ditto
340         * html/BaseCheckableInputType.cpp:
341         (WebCore::BaseCheckableInputType::accessKeyAction): Ditto
342         * html/BaseCheckableInputType.h: Ditto
343         * html/HTMLAnchorElement.cpp:
344         (WebCore::HTMLAnchorElement::accessKeyAction): Ditto
345         * html/HTMLAnchorElement.h: Ditto
346         * html/HTMLAnchorElement.idl: Removed redundant IDL attribute entries.
347         * html/HTMLAreaElement.idl: Removed redundant IDL attribute entries.
348         * html/HTMLButtonElement.cpp:
349         (WebCore::HTMLButtonElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
350         * html/HTMLButtonElement.h: Ditto
351         * html/HTMLButtonElement.idl: Removed redundant IDL attribute entries.
352         * html/HTMLElement.cpp:
353         (WebCore::HTMLElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
354         If the element does not have a defined activation behavior, fire a click event at the element.
355         * html/HTMLElement.h: Ditto
356         * html/HTMLElement.idl: Added accessKey IDL attribute.
357         * html/HTMLInputElement.cpp:
358         (WebCore::HTMLInputElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
359         * html/HTMLInputElement.h: Ditto
360         * html/HTMLInputElement.idl: Removed redundant IDL attribute entries.
361         * html/HTMLLabelElement.cpp:
362         (WebCore::HTMLLabelElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
363         * html/HTMLLabelElement.h: Ditto
364         * html/HTMLLabelElement.idl: Removed redundant IDL attribute entries.
365         * html/HTMLLegendElement.cpp:
366         (WebCore::HTMLLegendElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
367         * html/HTMLLegendElement.h: Ditto
368         * html/HTMLLegendElement.idl: Removed redundant IDL attribute entries.
369         * html/HTMLOptGroupElement.h: Renamed variable sendToAnyElement to sendMouseEvents.
370         * html/HTMLSelectElement.cpp:
371         (WebCore::HTMLSelectElement::accessKeyAction): Ditto
372         * html/HTMLSelectElement.h: Ditto
373         * html/HTMLTextAreaElement.h: Ditto
374         * html/HTMLTextAreaElement.idl: Removed redundant IDL attribute entries.
375         * html/HiddenInputType.h: Renamed variable sendToAnyElement to sendMouseEvents.
376         * html/InputType.h: Ditto
377         * html/RangeInputType.cpp:
378         (WebCore::RangeInputType::accessKeyAction): Ditto
379         * html/RangeInputType.h: Ditto
380
381 2011-11-18  Simon Fraser  <simon.fraser@apple.com>
382
383         Appearance of compound transform animations under apps linked on SnowLeopard is incorrect
384         https://bugs.webkit.org/show_bug.cgi?id=72641
385         and
386         <rdar://problem/10314267>
387
388         Reviewed by Dean Jackson.
389
390         GraphicsLayerCA contains a "linked on or after" check to account for a bug in
391         Core Animation on SnowLeopard and earlier, which is that CA would apply the list
392         of animations in reverse order.
393         
394         Our previous fix was incorrect, because it only adjusted the 'additive' property
395         of the animation list based on ordering, rather than flipping the entire list.
396         This change reverses the list of animations before giving them to CA, which fixes
397         the bug.
398                 
399         Test: animations/additive-transform-animations.html
400
401         * platform/graphics/ca/GraphicsLayerCA.cpp:
402         (WebCore::GraphicsLayerCA::appendToUncommittedAnimations):
403         (WebCore::GraphicsLayerCA::createTransformAnimationsFromKeyframes):
404         * platform/graphics/ca/GraphicsLayerCA.h:
405
406 2011-11-18  Tim Horton  <timothy_horton@apple.com>
407
408         -webkit-cross-fade rendered incorrectly in overflow divs
409         https://bugs.webkit.org/show_bug.cgi?id=72693
410         <rdar://problem/10468564>
411
412         Reviewed by Simon Fraser.
413
414         Respect the desired source rectangle when rendering the cross-fade.
415
416         Test: css3/images/cross-fade-overflow-position.html
417
418         * platform/graphics/CrossfadeGeneratedImage.cpp:
419         (WebCore::CrossfadeGeneratedImage::drawCrossfade):
420         (WebCore::CrossfadeGeneratedImage::draw):
421         (WebCore::CrossfadeGeneratedImage::drawPattern):
422         * platform/graphics/CrossfadeGeneratedImage.h:
423
424 2011-11-18  Raphael Kubo da Costa  <kubo@profusion.mobi>
425
426         Unreviewed build fix; r100686 broke the EFL build when Geolocation
427         support is enabled.
428
429         * platform/efl/GeolocationServiceEfl.cpp: Only declare
430         s_factoryFunction if CLIENT_BASED_GEOLOCATION is off, otherwise it is
431         also declared in GeolocationService.cpp.
432
433 2011-11-18  Igor Oliveira  <igor.oliveira@openbossa.org>
434
435         [TextureMapper] computePerspectiveTransformIfNeeded is called twice in TextureMapperNode::syncCompositingState
436         https://bugs.webkit.org/show_bug.cgi?id=72727
437
438         TextureMapperNode::computeAllTransforms already has a call to TextureMapperNode::computePerspectiveTransformIfNeeded,
439         so it does not need to be called again after TextureMapperNode::computeAllTransforms.
440
441         Reviewed by Noam Rosenthal.
442
443         * platform/graphics/texmap/TextureMapperNode.cpp:
444         (WebCore::TextureMapperNode::syncCompositingState):
445
446 2011-11-18  Mihnea Ovidenie  <mihnea@adobe.com>
447
448         Fix compilation warning in ComplexTextControllerCoreText.mm
449         https://bugs.webkit.org/show_bug.cgi?id=72702
450
451         Reviewed by Andreas Kling.
452
453         No functionality changed, so no new tests.
454
455         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
456         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText):
457
458 2011-11-18  Pavel Feldman  <pfeldman@google.com>
459
460         Not reviewed: restore front-end compilability via updating externs and JS generator.
461
462         * inspector/front-end/ElementsPanel.js:
463         (WebInspector.ElementsPanel.prototype.jumpToNextSearchResult):
464         (WebInspector.ElementsPanel.prototype.jumpToPreviousSearchResult):
465         * inspector/front-end/externs.js:
466         (WebInspector.showPanelForAnchorNavigation):
467         * inspector/generate-protocol-externs:
468
469 2011-11-17  Pavel Feldman  <pfeldman@google.com>
470
471         Web Inspector: dispatch messages from the front-end to the backend asynchronously.
472         https://bugs.webkit.org/show_bug.cgi?id=72621
473
474         We should align the way we dispatch messages from the front-end to backend across the environments:
475           - WebKit has it synchronoulsly
476           - Chromium has it asynchronously
477           - Remote debugging has it asynchronously
478         Making it asynchronous made a number of flaky Qt tests pass.
479
480         Tests uncovered console agent problem that was also fixed.
481
482         Reviewed by Yury Semikhatsky.
483
484         * inspector/InspectorConsoleAgent.cpp:
485         (WebCore::InspectorConsoleAgent::clearFrontend):
486         * inspector/InspectorFrontendClient.h:
487         * inspector/InspectorFrontendClientLocal.cpp:
488         (WebCore::InspectorBackendDispatchTask::InspectorBackendDispatchTask):
489         (WebCore::InspectorBackendDispatchTask::dispatch):
490         (WebCore::InspectorBackendDispatchTask::reset):
491         (WebCore::InspectorBackendDispatchTask::onTimer):
492         (WebCore::InspectorFrontendClientLocal::InspectorFrontendClientLocal):
493         (WebCore::InspectorFrontendClientLocal::windowObjectCleared):
494         (WebCore::InspectorFrontendClientLocal::sendMessageToBackend):
495         * inspector/InspectorFrontendClientLocal.h:
496
497 2011-11-18  Iain Merrick  <husky@google.com>
498
499         [chromium] Pass screen refresh rate into compositor.
500         https://bugs.webkit.org/show_bug.cgi?id=71040
501
502         Reviewed by Tony Gentilcore.
503
504         Covered by CCLayerTreeHostTest.
505
506         * platform/PlatformScreen.h:
507         * platform/chromium/PlatformScreenChromium.cpp:
508         (WebCore::screenRefreshRate):
509         * platform/chromium/PlatformSupport.h:
510         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
511         (WebCore::CCSettings::CCSettings):
512         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
513         (WebCore::CCThreadProxy::initializeImplOnImplThread):
514
515 2011-11-18  Alexandru Chiculita  <achicu@adobe.com>
516
517         [CSSShaders] Implement the computed style for mesh parameters of the custom() filter
518         https://bugs.webkit.org/show_bug.cgi?id=72478
519
520         Reviewed by Dean Jackson.
521
522         Added parsing and computed style for the mesh rows, columns, mesh box type 
523         (filter-box, border-box, content-box and padding-box) and the detached mode.
524         
525         Also fixed a case where "custom(none, 10, 10 filter-box)" was incorrectly
526         treated as "custom(none, 10)".
527
528         * css/CSSComputedStyleDeclaration.cpp:
529         (WebCore::CSSComputedStyleDeclaration::valueForFilter):
530         * css/CSSParser.cpp:
531         (WebCore::CSSParser::parseCustomFilter): Fixed a case where invalid syntax was parsed as correct syntax.
532         * css/CSSPrimitiveValueMappings.h:
533         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
534         (WebCore::CSSPrimitiveValue::operator CustomFilterOperation::MeshBoxType):
535         * css/CSSStyleSelector.cpp:
536         (WebCore::CSSStyleSelector::createCustomFilterOperation):
537         * css/CSSValueList.h:
538         (WebCore::CSSValueListIterator::isPrimitiveValue):
539         * platform/graphics/filters/CustomFilterOperation.h:
540
541 2011-11-18  Adam Barth  <abarth@webkit.org>
542
543         Remove unneeded include (and ifdef) from V8DOMWindowCustom.cpp
544         https://bugs.webkit.org/show_bug.cgi?id=72705
545
546         Reviewed by Eric Seidel.
547
548         Death to ifdefs!
549
550         * bindings/v8/custom/V8DOMWindowCustom.cpp:
551
552 2011-11-18  Adam Barth  <abarth@webkit.org>
553
554         Move some mediastream related files into the mediastream directory
555         https://bugs.webkit.org/show_bug.cgi?id=72695
556
557         Reviewed by Eric Seidel.
558
559         Just moving the files to the proper directory.
560
561         * GNUmakefile.list.am:
562         * WebCore.gypi:
563         * mediastream/NavigatorUserMediaError.h: Renamed from Source/WebCore/page/NavigatorUserMediaError.h.
564         (WebCore::NavigatorUserMediaError::create):
565         (WebCore::NavigatorUserMediaError::~NavigatorUserMediaError):
566         (WebCore::NavigatorUserMediaError::code):
567         (WebCore::NavigatorUserMediaError::NavigatorUserMediaError):
568         * mediastream/NavigatorUserMediaError.idl: Renamed from Source/WebCore/page/NavigatorUserMediaError.idl.
569         * mediastream/NavigatorUserMediaErrorCallback.h: Renamed from Source/WebCore/page/NavigatorUserMediaErrorCallback.h.
570         (WebCore::NavigatorUserMediaErrorCallback::~NavigatorUserMediaErrorCallback):
571         * mediastream/NavigatorUserMediaErrorCallback.idl: Renamed from Source/WebCore/page/NavigatorUserMediaErrorCallback.idl.
572         * mediastream/NavigatorUserMediaSuccessCallback.h: Renamed from Source/WebCore/page/NavigatorUserMediaSuccessCallback.h.
573         (WebCore::NavigatorUserMediaSuccessCallback::~NavigatorUserMediaSuccessCallback):
574         * mediastream/NavigatorUserMediaSuccessCallback.idl: Renamed from Source/WebCore/page/NavigatorUserMediaSuccessCallback.idl.
575
576 2011-11-18  Andrey Kosyakov  <caseq@chromium.org>
577
578         Web Inspector: [Extensions API] Provide a way for extension to create a status bar icon
579         https://bugs.webkit.org/show_bug.cgi?id=45955
580
581         Reviewed by Pavel Feldman.
582
583         * inspector/front-end/ExtensionAPI.js:
584         (injectedExtensionAPI.ExtensionPanelImpl.prototype.createStatusBarButton):
585         (injectedExtensionAPI):
586         (injectedExtensionAPI.ButtonImpl.prototype.update):
587         * inspector/front-end/ExtensionPanel.js:
588         (WebInspector.ExtensionPanel):
589         (WebInspector.ExtensionPanel.prototype.get statusBarItems):
590         (WebInspector.ExtensionPanel.prototype.addStatusBarItem):
591         (WebInspector.ExtensionButton):
592         (WebInspector.ExtensionButton.prototype.update):
593         (WebInspector.ExtensionButton.prototype._onClicked):
594         * inspector/front-end/ExtensionServer.js:
595         (WebInspector.ExtensionServer):
596         (WebInspector.ExtensionServer.prototype.notifyButtonClicked):
597         (WebInspector.ExtensionServer.prototype._onCreateStatusBarButton):
598         (WebInspector.ExtensionServer.prototype._onUpdateButton):
599         (WebInspector.ExtensionServer.prototype._onCreateSidebarPane):
600         * inspector/front-end/inspector.css:
601         (button.status-bar-item.extension):
602
603 2011-11-18  Tommy Widenflycht  <tommyw@google.com>
604
605         MediaStream API: Merging the PeerConnectionHandler.h files
606         https://bugs.webkit.org/show_bug.cgi?id=72611
607
608         Reviewed by Adam Barth.
609
610         No actual code changes.
611
612         * GNUmakefile.am:
613         * GNUmakefile.list.am:
614         * WebCore.gyp/WebCore.gyp:
615         * WebCore.gypi:
616         * platform/mediastream/PeerConnectionHandler.h: Renamed from Source/WebCore/platform/mediastream/chromium/PeerConnectionHandler.h.
617         * platform/mediastream/gstreamer/PeerConnectionHandler.h: Removed.
618
619 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
620
621         [Qt] Layer violation: ThirdPartyCookiesQt.cpp uses QWebSettings in two places
622         https://bugs.webkit.org/show_bug.cgi?id=72597
623
624         Reviewed by Kenneth Rohde Christiansen.
625
626         Moved code that queries the third party cookie policy from QWebSettings
627         out of WebCore. Instead NetworkingContext has now the interface that allows
628         delegating the functionality into WebKit/qt.
629
630         In order to do that we need to pass the NetworkingContext around, which is used to
631         retrieve the cookie jar and the originating frame object pointer.
632
633         * platform/network/NetworkingContext.h: Add interface.
634         * platform/network/qt/QNetworkReplyHandler.cpp:
635         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler): Pass NetworkingContext to ResourceRequest::toNetworkRequest.
636         (WebCore::QNetworkReplyHandler::redirect): Ditto.
637         * platform/network/qt/ResourceRequest.h: Replaced originatingObject parameter with NetworkingContext, which can
638         also provide the same plus more (cookie jar, policy callback).
639         * platform/network/qt/ResourceRequestQt.cpp:
640         (WebCore::ResourceRequest::toNetworkRequest): Ditto.
641         * platform/qt/CookieJarQt.cpp: Simplify to use NetworkingContext to get cookie jar and
642         call new thirdPartyCookiePolicyPermits API that takes the context as parameter.
643         (WebCore::networkingContext):
644         (WebCore::setCookies):
645         (WebCore::cookies):
646         (WebCore::cookieRequestHeaderFieldValue):
647         (WebCore::cookiesEnabled):
648         * platform/qt/ThirdPartyCookiesQt.cpp: Replace up-casting to QWebFrame and use of QWebSettings
649         with useage of NetworkingContext.
650         (WebCore::thirdPartyCookiePolicyPermits):
651         * platform/qt/ThirdPartyCookiesQt.h:
652
653 2011-11-17  Kenichi Ishibashi  <bashi@chromium.org>
654
655         crash: WebCore::FontPlatformData::roundsGlyphAdvances on Lion
656         https://bugs.webkit.org/show_bug.cgi?id=71997
657
658         Reviewed by Dan Bernstein.
659
660         The cause is a null dereference of a fontData that is stored in
661         ComplexTextRun. The fontData is initialized by using the
662         fontCache, but it could be null when the font is in fallback
663         list. The reason a font from the fallback list might not be in the
664         font Cache is that it may be a web font. Before looking up the
665         fontCache, try to see whether the font is in the fallback list.
666
667         No new tests. We don't have webfonts that can produce the problem.
668
669         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
670         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText): See fallback list first, then lookup cache.
671
672 2011-11-17  Kaustubh Atrawalkar  <kaustubh@motorola.com>
673
674         Remove initProgressEvent method
675         https://bugs.webkit.org/show_bug.cgi?id=71340
676
677         Reviewed by Adam Barth.
678
679         This method has been removed from the spec draft.
680         http://www.w3.org/TR/progress-events/#interface-progressevent
681
682         No new tests. Removed method.
683
684         * dom/ProgressEvent.cpp:
685         * dom/ProgressEvent.h:
686         * dom/ProgressEvent.idl:
687
688 2011-11-17  Eunmi Lee  <eunmi15.lee@samsung.com>
689
690         [EFL] Move keyIdentifierForEvasKeyName() and windowsKeyCodeForEvasKeyName() to the
691         EflKeyboardUtilities.cpp to use in the WebKit2
692         https://bugs.webkit.org/show_bug.cgi?id=62451
693
694         Reviewed by Martin Robinson.
695
696         The keyIdentifierForEvasKeyName() and windowsKeyCodeForEvasKeyName() were static functions
697         in the PlatformKeyboardEventEfl.cpp. But they are also needed in the WebKit2 EFL port, so I
698         moved them to the separated file - EflKeyboardUtilities.cpp.
699
700         * PlatformEfl.cmake:
701         * platform/efl/EflKeyboardUtilities.cpp: Copied from Source/WebCore/platform/efl/PlatformKeyboardEventEfl.cpp.
702         (WebCore::createKeyMap):
703         (WebCore::createWindowsKeyMap):
704         (WebCore::keyIdentifierForEvasKeyName):
705         (WebCore::windowsKeyCodeForEvasKeyName):
706         * platform/efl/EflKeyboardUtilities.h: Added.
707         * platform/efl/PlatformKeyboardEventEfl.cpp:
708
709 2011-11-17  Martin Robinson  <mrobinson@igalia.com>
710
711         [GTK] The process freezes when you right click on windowless Flash
712         https://bugs.webkit.org/show_bug.cgi?id=69123
713
714         Reviewed by Xan Lopez.
715
716         No new tests. I tried to create a layout test that exercised this
717         issue, but it appears that EventSender clicks do not trigger
718         it. This is covered by the manual tests containing Flash.
719
720         * plugins/PluginPackage.cpp:
721         (WebCore::PluginPackage::determineQuirks): Always activate the
722         windowless Flash quirk if on x86_64 and X11.
723         * plugins/gtk/PluginViewGtk.cpp:
724         (WebCore::PluginView::handleMouseEvent): Avoid sending right-click
725         events if we have the quirk.
726
727 2011-11-17  Peter Rybin  <peter.rybin@gmail.com>
728
729         Web Inspector: clear fixme in generator script
730         https://bugs.webkit.org/show_bug.cgi?id=71372
731
732         Remove unnecessary field name map and update license year number.
733
734         Reviewed by Pavel Feldman.
735
736         * inspector/CodeGeneratorInspector.py:
737
738 2011-11-17  Raphael Kubo da Costa  <kubo@profusion.mobi>
739
740         [EFL] Clean up the use of DATA_DIR in the buildsystem
741         https://bugs.webkit.org/show_bug.cgi?id=72681
742
743         Reviewed by Daniel Bates.
744
745         Add the -DDATA_DIR definition here instead of defining it globally in
746         OptionsEfl.cmake, as WebCore is the only place which needs it.
747
748         No new tests, this is a buildsystem change.
749
750         * PlatformEfl.cmake:
751
752 2011-11-17  Adam Klein  <adamk@chromium.org>
753
754         Move JS recursion counter from V8Proxy to V8BindingPerIsolateData
755         https://bugs.webkit.org/show_bug.cgi?id=72645
756
757         Reviewed by Adam Barth.
758
759         With the JS recursion level stored as a member of V8Proxy, it's tied
760         to a frame. But this is incorrect, as there's no reason that a JS call
761         stack need be restricted to a single frame (see my new test case for
762         an example of code going across frames).
763
764         In order to get the correct accounting of JS recursion level, per-Isolate
765         is the right granularity (per dslomov), which is what this patch accomplishes.
766
767         Test: storage/indexeddb/transaction-abort-with-js-recursion-cross-frame.html
768
769         * bindings/v8/V8Binding.cpp:
770         (WebCore::V8BindingPerIsolateData::V8BindingPerIsolateData):
771         * bindings/v8/V8Binding.h:
772         (WebCore::V8BindingPerIsolateData::recursionLevel):
773         (WebCore::V8BindingPerIsolateData::incrementRecursionLevel):
774         (WebCore::V8BindingPerIsolateData::decrementRecursionLevel):
775         (WebCore::V8RecursionScope::V8RecursionScope):
776         (WebCore::V8RecursionScope::~V8RecursionScope):
777         * bindings/v8/V8Proxy.cpp:
778         (WebCore::incrementRecursionLevel):
779         (WebCore::decrementRecursionLevel):
780         (WebCore::recursionLevel):
781         (WebCore::V8Proxy::V8Proxy):
782         (WebCore::V8Proxy::runScript):
783         (WebCore::V8Proxy::callFunction):
784         (WebCore::V8Proxy::didLeaveScriptContext):
785         * bindings/v8/V8Proxy.h:
786
787 2011-11-17  Robin Cao  <robin.cao@torchmobile.com.cn>
788
789         [chromium] Font::drawComplexText can not draw a segment of text run
790         https://bugs.webkit.org/show_bug.cgi?id=72095
791
792         Reviewed by Adam Barth.
793
794         drawComplexText() should respect the 'from' and 'to' arguments.
795         Drawing the whole text run may result in text overlapping.
796
797         Test: platform/chromium-linux/fast/text/international/draw-complex-text-from-to.html
798
799         * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
800         (WebCore::ComplexTextController::glyphsForRange):
801         * platform/graphics/chromium/ComplexTextControllerLinux.h:
802         * platform/graphics/chromium/FontLinux.cpp:
803         (WebCore::Font::drawComplexText):
804
805 2011-11-17  Adam Barth  <abarth@webkit.org>
806
807         Unique SecurityOrigins shouldn't remember their old schemes and hosts
808         https://bugs.webkit.org/show_bug.cgi?id=71745
809
810         Reviewed by Darin Adler.
811
812         This is the final step in this series of patches.
813
814         This patch removes the forceUnique flag from SecurityOrigin::create.
815         Now, we create unique origins without passing in the document's URL,
816         preventing information from the document's URL from leaking into the
817         unique origin.
818
819         * WebCore.exp.in:
820         * dom/Document.cpp:
821         (WebCore::Document::setIsViewSource):
822         (WebCore::Document::initSecurityContext):
823         * loader/cache/MemoryCache.cpp:
824         (WebCore::MemoryCache::getOriginsWithCache):
825             - Update this callsite to use createFromString, which does exactly
826               what this code is doing manually.
827         * page/SecurityOrigin.cpp:
828         (WebCore::SecurityOrigin::create):
829         * page/SecurityOrigin.h:
830
831 2011-11-17  Vincent Scheib  <scheib@chromium.org>
832
833         Pointer Lock: Page Settings unecessary
834         https://bugs.webkit.org/show_bug.cgi?id=72662
835
836         Reviewed by Darin Fisher.
837
838         No new tests.
839
840         * page/Settings.cpp:
841         (WebCore::Settings::Settings):
842         * page/Settings.h:
843
844 2011-11-17  James Robinson  <jamesr@chromium.org>
845
846         [chromium] Disable incremental uploading in threaded compositing path
847         https://bugs.webkit.org/show_bug.cgi?id=72669
848
849         Reviewed by Kenneth Russell.
850
851         Since we don't currently support atomic incremental uploads, incremental uploads in the threaded path result in
852         very strange-looking texture popping as tiles come in on pages that require more than 16 tile uploads per frame.
853         This disables that logic (by setting the upload limit per frame to 99999) until we handle the incremental
854         updates in an atomic fashion.
855
856         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
857         (WebCore::CCThreadProxy::scheduledActionUpdateMoreResources):
858
859 2011-11-06  Nat Duca  <nduca@chromium.org>
860
861         [chromium] Fix handling of setNeedsCommit and setNeedsAnimate in threaded mode
862         https://bugs.webkit.org/show_bug.cgi?id=71638
863
864         Reviewed by James Robinson.
865
866         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
867         (WebCore::CCThreadProxy::CCThreadProxy):
868         (WebCore::CCThreadProxy::setNeedsAnimate):
869         (WebCore::CCThreadProxy::beginFrameAndCommit):
870
871 2011-11-17  Adam Barth  <abarth@webkit.org>
872
873         Remove bogus ASSERT.
874
875         * page/SecurityOrigin.cpp:
876         (WebCore::SecurityOrigin::SecurityOrigin):
877
878 2011-11-17  Peter Kasting  <pkasting@google.com>
879
880         Unreviewed, rolling out r100698.
881         http://trac.webkit.org/changeset/100698
882         https://bugs.webkit.org/show_bug.cgi?id=72239
883
884         This change wasn't the problem either.
885
886         * dom/Document.cpp:
887         (WebCore::Document::implicitClose):
888
889 2011-11-17  David Reveman  <reveman@chromium.org>
890
891         [Chromium] Calls to paintContentsIfDirty() and updateCompositorResources() should be balanced.
892         https://bugs.webkit.org/show_bug.cgi?id=72630
893
894         Reviewed by James Robinson.
895
896         Layer property changes during paintContent() can leave the layer
897         in an invalid state as paintContentsIfDirty() has been called
898         without a matching updateCompositorResources() call. Removing
899         conditionals around these calls ensure they are balanced.
900
901         This patch is tested by the following unit test:
902         - CCLayerTreeHostTestOpacityChange.runMultiThread
903
904         * platform/graphics/chromium/ContentLayerChromium.cpp:
905         (WebCore::ContentLayerChromium::paintContentsIfDirty):
906         * platform/graphics/chromium/VideoLayerChromium.cpp:
907         (WebCore::VideoLayerChromium::updateCompositorResources):
908         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
909         (WebCore::CCLayerTreeHost::paintMaskAndReplicaForRenderSurface):
910         (WebCore::CCLayerTreeHost::paintLayerContents):
911         (WebCore::CCLayerTreeHost::updateCompositorResources):
912         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
913
914 2011-11-17  Peter Kasting  <pkasting@google.com>
915
916         Unreviewed, rolling out r100584.
917         http://trac.webkit.org/changeset/100584
918         https://bugs.webkit.org/show_bug.cgi?id=72239
919
920         See if this change caused Linux dbg crashes.
921
922         * dom/Document.cpp:
923         (WebCore::Document::implicitClose):
924
925 2011-11-17  Adam Barth  <abarth@webkit.org>
926
927         Remove cargo-cult copy/pasting of ScriptExecutionContext namespace
928         https://bugs.webkit.org/show_bug.cgi?id=72676
929
930         Reviewed by Eric Seidel.
931
932         It looks like this cargo-cult started with initDNSPrefetch being hacked
933         into setSecurityOrigin.  I've removed this hack along with the
934         copy/paste code.
935
936         * dom/DOMImplementation.cpp:
937         * dom/Document.cpp:
938         (WebCore::Document::setIsViewSource):
939         (WebCore::Document::open):
940         (WebCore::Document::initSecurityContext):
941         (WebCore::Document::setSecurityOrigin):
942         * dom/Document.h:
943         * xml/XSLTProcessor.cpp:
944
945 2011-11-17  Peter Kasting  <pkasting@google.com>
946
947         Unreviewed, rolling out r100676.
948         http://trac.webkit.org/changeset/100676
949         https://bugs.webkit.org/show_bug.cgi?id=72393
950
951         Looks like r100572 was not the source of the crashes.
952
953         * bindings/js/ScriptDebugServer.cpp:
954         (WebCore::ScriptDebugServer::canSetScriptSource):
955         * bindings/js/ScriptDebugServer.h:
956         * bindings/v8/ScriptDebugServer.cpp:
957         (WebCore::ScriptDebugServer::stepOutOfFunction):
958         (WebCore::ScriptDebugServer::canSetScriptSource):
959         * bindings/v8/ScriptDebugServer.h:
960         * inspector/CodeGeneratorInspector.py:
961         * inspector/Inspector.json:
962         * inspector/InspectorDebuggerAgent.cpp:
963         (WebCore::InspectorDebuggerAgent::getCapabilities):
964         * inspector/InspectorDebuggerAgent.h:
965         * inspector/front-end/DebuggerModel.js:
966         (WebInspector.DebuggerModel):
967         (WebInspector.DebuggerModel.prototype.enableDebugger):
968         (WebInspector.DebuggerModel.prototype.disableDebugger):
969         (WebInspector.DebuggerModel.prototype.canSetScriptSource):
970         * inspector/front-end/DebuggerPresentationModel.js:
971         (WebInspector.DebuggerPresentationModel.prototype.canEditScriptSource):
972         * inspector/front-end/Settings.js:
973
974 2011-11-17  Konstantin Scheglov  <scheglov@google.com>
975
976         Absolute child is not repainted when parent opacity changes
977         https://bugs.webkit.org/show_bug.cgi?id=68777
978
979         Reviewed by Simon Fraser.
980
981         First time when we change opacity for parent we don't have layer, so
982         diff=StyleDifferenceRepaint is used instead of diff=StyleDifferenceRepaintLayer.
983         Layer is created later, in styleDidChange().
984         So, when we recalculate later diff, we now check for diff=StyleDifferenceRepaintLayer and
985         performs repaintIncludingDescendants().
986
987         Test: fast/layers/layer-absolute-parent-opacity.html
988
989         * rendering/RenderObject.cpp:
990         (WebCore::RenderObject::setStyle): Call repaintIncludingDescendants() instead of repaint().
991         * rendering/style/RenderStyle.cpp:
992         (WebCore::RenderStyle::diff): Add ContextSensitivePropertyOpacity when change opacity.
993
994 2011-11-17  Nate Chapin  <japhet@chromium.org>
995
996         r100311 dropped a RefPtr that is very
997         helpful. Add it back.
998         https://bugs.webkit.org/show_bug.cgi?id=72647
999
1000         Reviewed by Adam Barth.
1001
1002         http/tests/misc/xslt-bad-import.html should
1003         stop crashing in full chromium builds.
1004
1005         * loader/cache/CachedResourceLoader.cpp:
1006         (WebCore::CachedResourceLoader::loadDone):
1007
1008 2011-11-17  Adam Barth  <abarth@webkit.org>
1009
1010         Refactor SecurityOrigin::create to be easier to understand
1011         https://bugs.webkit.org/show_bug.cgi?id=72342
1012
1013         Reviewed by Eric Seidel.
1014
1015         Over time, the SecurityOrigin constructor has grown a bit out of
1016         control.  This patch attempts to separate the different concerns into
1017         free functions.  The general approach is to put more logic in the
1018         "create" function and introduce a simple constructor for unique
1019         origins.
1020
1021         This patch shouldn't change any behavior.
1022
1023         * page/SecurityOrigin.cpp:
1024         (WebCore::schemeRequiresAuthority):
1025         (WebCore::shouldUseInnerURL):
1026         (WebCore::extractInnerURL):
1027         (WebCore::isDirectory):
1028         (WebCore::shouldTreatAsUniqueOrigin):
1029         (WebCore::SecurityOrigin::SecurityOrigin):
1030         (WebCore::SecurityOrigin::create):
1031         (WebCore::SecurityOrigin::createUnique):
1032         (WebCore::SecurityOrigin::databaseIdentifier):
1033         * page/SecurityOrigin.h:
1034
1035 2011-11-17  Shawn Singh  <shawnsingh@chromium.org>
1036
1037         [chromium] Fix minor style nit in CCLayerImpl
1038         https://bugs.webkit.org/show_bug.cgi?id=71070
1039
1040         Reviewed by James Robinson.
1041
1042         Fixes if-statements on several settors to follow WebKit
1043         conventions. Existing CCLayerImplTest unit tests already cover
1044         this change.
1045
1046         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1047         (WebCore::CCLayerImpl::setBounds):
1048         (WebCore::CCLayerImpl::setMaskLayer):
1049         (WebCore::CCLayerImpl::setReplicaLayer):
1050         (WebCore::CCLayerImpl::setDrawsContent):
1051         (WebCore::CCLayerImpl::setAnchorPoint):
1052         (WebCore::CCLayerImpl::setAnchorPointZ):
1053         (WebCore::CCLayerImpl::setBackgroundColor):
1054         (WebCore::CCLayerImpl::setMasksToBounds):
1055         (WebCore::CCLayerImpl::setOpaque):
1056         (WebCore::CCLayerImpl::setOpacity):
1057         (WebCore::CCLayerImpl::setPosition):
1058         (WebCore::CCLayerImpl::setPreserves3D):
1059         (WebCore::CCLayerImpl::setZoomAnimatorTransform):
1060         (WebCore::CCLayerImpl::setSublayerTransform):
1061         (WebCore::CCLayerImpl::setTransform):
1062         (WebCore::CCLayerImpl::setDebugBorderColor):
1063         (WebCore::CCLayerImpl::setDebugBorderWidth):
1064         (WebCore::CCLayerImpl::setContentBounds):
1065         (WebCore::CCLayerImpl::setScrollPosition):
1066         (WebCore::CCLayerImpl::setScrollDelta):
1067         (WebCore::CCLayerImpl::setScaleDelta):
1068         (WebCore::CCLayerImpl::setDoubleSided):
1069
1070 2011-11-17  Michael Saboff  <msaboff@apple.com>
1071
1072         Leaks seen in MemoryPressureHandlerMac.mm on Leaks bot
1073         https://bugs.webkit.org/show_bug.cgi?id=72416
1074
1075         Added code to release _cache_event_source and _timer_event_source
1076         after they are canceled.  Also added defensive code to
1077         clean up the _timer_event_source in uninstall().
1078
1079         Reviewed by Geoffrey Garen.
1080
1081         No new tests, fixing leaks caught by leaks bot.
1082
1083         * platform/mac/MemoryPressureHandlerMac.mm:
1084         (WebCore::MemoryPressureHandler::uninstall):
1085         (WebCore::MemoryPressureHandler::holdOff):
1086
1087 2011-11-17  Ken Buchanan <kenrb@chromium.org>
1088
1089         Crash from positioned generated content under run-in
1090         https://bugs.webkit.org/show_bug.cgi?id=70456
1091
1092         Reviewed by David Hyatt.
1093
1094         Modified handling of run-in children to clear generated children
1095         before removing the parent from the render tree. This caused problems
1096         with absolute positioned children being not properly removed from the
1097         positioned object list of the RenderView.
1098
1099         * rendering/RenderBlock.cpp:
1100         (WebCore::RenderBlock::handleRunInChild):
1101
1102 2011-11-17  Peter Kasting  <pkasting@google.com>
1103
1104         Unreviewed, rolling out r100572.
1105         https://bugs.webkit.org/show_bug.cgi?id=72393
1106         https://bugs.webkit.org/show_bug.cgi?id=72651
1107
1108         May have caused seg faults on Chromium Linux dbg bot.
1109
1110         * bindings/js/ScriptDebugServer.cpp:
1111         * bindings/js/ScriptDebugServer.h:
1112         * bindings/v8/ScriptDebugServer.cpp:
1113         (WebCore::ScriptDebugServer::stepOutOfFunction):
1114         * bindings/v8/ScriptDebugServer.h:
1115         * inspector/CodeGeneratorInspector.py:
1116         * inspector/Inspector.json:
1117         * inspector/InspectorDebuggerAgent.cpp:
1118         * inspector/InspectorDebuggerAgent.h:
1119         * inspector/front-end/DebuggerModel.js:
1120         (WebInspector.DebuggerModel):
1121         (WebInspector.DebuggerModel.prototype.enableDebugger):
1122         (WebInspector.DebuggerModel.prototype.disableDebugger):
1123         * inspector/front-end/DebuggerPresentationModel.js:
1124         (WebInspector.DebuggerPresentationModel.prototype.canEditScriptSource):
1125         * inspector/front-end/Settings.js:
1126
1127 2011-11-17  Sheriff Bot  <webkit.review.bot@gmail.com>
1128
1129         Unreviewed, rolling out r100652.
1130         http://trac.webkit.org/changeset/100652
1131         https://bugs.webkit.org/show_bug.cgi?id=72648
1132
1133         "Caused outline-offset-min-assert.html to assert on debug
1134         builds" (Requested by mwenge2 on #webkit).
1135
1136         * rendering/RenderObject.cpp:
1137         (WebCore::RenderObject::paintOutline):
1138
1139 2011-11-17  Mark Rowe  <mrowe@apple.com>
1140
1141         <http://webkit.org/b/72637> Stop performing runtime version checks on OS versions where the check can never possibly fail.
1142
1143         Reviewed by Simon Fraser.
1144
1145         * platform/graphics/cg/ImageBufferDataCG.cpp:
1146         (WebCore::haveVImageRoundingErrorFix): When not targeting Snow Leopard we always have the fix.
1147
1148 2011-11-17  Chris Fleizach  <cfleizach@apple.com>
1149
1150         AX: The scrollArea is not correctly returning the scrollbars
1151         https://bugs.webkit.org/show_bug.cgi?id=70247
1152
1153         Reviewed by Beth Dakin.
1154
1155         A few bugs that were preventing this from working.
1156            1) In accessibilityAttributeValue: when an element did not have a renderer() we were returning earlier than we should have
1157            2) We were not updating and clearing the scrollbars correctly when children were cleared or when asked for.
1158
1159         Test: platform/mac/accessibility/scrollbars.html
1160
1161         * accessibility/AccessibilityScrollView.cpp:
1162         (WebCore::AccessibilityScrollView::scrollBar):
1163         (WebCore::AccessibilityScrollView::clearChildren):
1164         * accessibility/AccessibilityScrollView.h:
1165         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
1166         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
1167
1168 2011-11-14  Adam Barth  <abarth@webkit.org>
1169
1170         Unique origins shouldn't remember their scheme, host, or port
1171         https://bugs.webkit.org/show_bug.cgi?id=72308
1172
1173         Reviewed by Eric Seidel.
1174
1175         This patch contains the bulk (all?) of the behavior differences in this
1176         patch series.  Unique origins shouldn't remember their schemes.  Doing
1177         so causes some privileges (e.g., local access) to leak into unique
1178         origins.
1179
1180         * page/SecurityOrigin.cpp:
1181         (WebCore::SecurityOrigin::SecurityOrigin):
1182             - Explicitly clear out the protocol, host, and port for unique
1183               origins.  A future patch will refactor all this code to be more
1184               elegant.
1185         * platform/SchemeRegistry.cpp:
1186         (WebCore::schemesWithUniqueOrigins):
1187             - Merge "about" and "javascript" in with the general case now that
1188               we don't have a separate notion of an empty origin.
1189
1190 2011-11-17  Chris Fleizach  <cfleizach@apple.com>
1191
1192         AX: cleanup style and naming and code in accessibility search mechanism
1193         https://bugs.webkit.org/show_bug.cgi?id=72570
1194
1195         Reviewed by Beth Dakin.
1196
1197         Cleanup the naming and code style within the element searching mechanism.
1198
1199         * accessibility/AccessibilityObject.cpp:
1200         (WebCore::AccessibilityObject::isAccessibilityObjectSearchMatch):
1201         (WebCore::AccessibilityObject::isAccessibilityTextSearchMatch):
1202         (WebCore::AccessibilityObject::firstAccessibleObjectFromNode):
1203         (WebCore::AccessibilityObject::findMatchingObjects):
1204         * accessibility/AccessibilityObject.h:
1205         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
1206         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
1207
1208 2011-11-17  Julien Chaffraix  <jchaffraix@webkit.org>
1209
1210         CSS table with 100% width can overflow their containing block
1211         https://bugs.webkit.org/show_bug.cgi?id=72180
1212
1213         Reviewed by David Hyatt.
1214
1215         Tests: fast/table/table-in-table-percent-width-collapsing-border-quirks-mode.html
1216                fast/table/table-in-table-percent-width-collapsing-border.html
1217                fast/table/table-in-table-percent-width-quirks-mode.html
1218                fast/table/table-in-table-percent-width.html
1219
1220         After r97555, we would include the borders in a CSS table's logical width even if the 'width'
1221         property was a percent. This does not match what Firefox and IE are doing. Thus don't apply
1222         this behavior to percent 'width'.
1223
1224         * rendering/RenderTable.cpp:
1225         (WebCore::RenderTable::computeLogicalWidth):
1226
1227 2011-11-17  Adrienne Walker  <enne@google.com>
1228
1229         [chromium] Implicitly skip render surfaces that won't be drawn
1230         https://bugs.webkit.org/show_bug.cgi?id=71038
1231
1232         Rather than having redundant checks in three places for how to walk
1233         through a render surface list, instead don't add render surfaces that
1234         don't need to get rendered to the render surface list.
1235
1236         Reviewed by James Robinson.
1237
1238         Covered by existing layout tests and unit tests.
1239
1240         * platform/graphics/chromium/LayerRendererChromium.cpp:
1241         (WebCore::LayerRendererChromium::drawLayersOntoRenderSurfaces):
1242         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
1243         (WebCore::CCLayerTreeHost::paintLayerContents):
1244         (WebCore::CCLayerTreeHost::updateCompositorResources):
1245         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
1246         (WebCore::calculateDrawTransformsAndVisibilityInternal):
1247
1248 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
1249
1250         [Qt] Layer violation: qt_runtime.cpp accesses QWebElement and QTDRTNode
1251         https://bugs.webkit.org/show_bug.cgi?id=72595
1252
1253         Reviewed by Noam Rosenthal.
1254
1255         Removed QWebElement and QtDRTNode usage that reached from WebCore into
1256         WebKit/qt and replaced it with the ability to register custom JSValue
1257         conversion functions. The old code has been moved to WebKit/qt.
1258
1259         * bridge/qt/qt_instance.cpp:
1260         (JSC::Bindings::QtInstance::QtInstance): Remove unnecessary meta type registration
1261         (now done in QtWebElementRuntime::initialize in WebKit/qt).
1262         * bridge/qt/qt_runtime.cpp:
1263         (JSC::Bindings::registerCustomType):
1264         (JSC::Bindings::convertValueToQVariant):
1265         (JSC::Bindings::convertQVariantToValue):
1266         * bridge/qt/qt_runtime.h:
1267
1268 2011-11-17  Fady Samuel  <fsamuel@chromium.org>
1269
1270         Pass Aspect Ratio to RenderStyle
1271         https://bugs.webkit.org/show_bug.cgi?id=72350
1272
1273         Reviewed by Ojan Vafai.
1274
1275         * css/CSSComputedStyleDeclaration.cpp:
1276         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1277         * css/CSSStyleApplyProperty.cpp:
1278         (WebCore::ApplyPropertyAspectRatio::applyInheritValue):
1279         (WebCore::ApplyPropertyAspectRatio::applyInitialValue):
1280         (WebCore::ApplyPropertyAspectRatio::applyValue):
1281         (WebCore::ApplyPropertyAspectRatio::createHandler):
1282         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
1283         * css/CSSStyleSelector.cpp:
1284         (WebCore::CSSStyleSelector::applyProperty):
1285         * css/CSSValue.h:
1286         (WebCore::CSSValue::isAspectRatioValue):
1287         * rendering/style/RenderStyle.h:
1288         (WebCore::InheritedFlags::hasAspectRatio):
1289         (WebCore::InheritedFlags::aspectRatio):
1290         (WebCore::InheritedFlags::aspectRatioDenominator):
1291         (WebCore::InheritedFlags::aspectRatioNumerator):
1292         (WebCore::InheritedFlags::setHasAspectRatio):
1293         (WebCore::InheritedFlags::setAspectRatioDenominator):
1294         (WebCore::InheritedFlags::setAspectRatioNumerator):
1295         (WebCore::InheritedFlags::initialHasAspectRatio):
1296         (WebCore::InheritedFlags::initialAspectRatioDenominator):
1297         (WebCore::InheritedFlags::initialAspectRatioNumerator):
1298         * rendering/style/StyleRareNonInheritedData.cpp:
1299         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
1300         (WebCore::StyleRareNonInheritedData::operator==):
1301         * rendering/style/StyleRareNonInheritedData.h:
1302
1303 2011-11-09  Robert Hogan  <robert@webkit.org>
1304
1305         CSS 2.1 failure: outline-color-* tests fail
1306         https://bugs.webkit.org/show_bug.cgi?id=71931
1307
1308         Reviewed by Julien Chaffraix.
1309
1310         WebKit wasn't displaying the top block in these tests because it did not paint the outline
1311         of divs with zero size.
1312
1313         * rendering/RenderObject.cpp:
1314         (WebCore::RenderObject::paintOutline): paint the outline even when the block has zero size
1315
1316 2011-11-17  Sergio Villar Senin  <svillar@igalia.com>
1317
1318         [GTK] plugins/get-url-notify-with-url-that-fails-to-load.html on bots after r100466
1319         https://bugs.webkit.org/show_bug.cgi?id=72613
1320
1321         Reviewed by Martin Robinson.
1322
1323         Do not assume that a SoupRequest always exists, it is not
1324         generated for example when the provided URL is
1325         invalid. ResourceHandle::platformSetDefersLoading was crashing
1326         because of that.
1327
1328         * platform/network/soup/ResourceHandleSoup.cpp:
1329         (WebCore::ResourceHandle::platformSetDefersLoading):
1330
1331 2011-11-17  Vsevolod Vlasov  <vsevik@chromium.org>
1332
1333         Web Inspector: Remove onlineDetectionEnabled from Preferences
1334         https://bugs.webkit.org/show_bug.cgi?id=72617
1335
1336         Reviewed by Pavel Feldman.
1337
1338         * inspector/front-end/ApplicationCacheItemsView.js:
1339         (WebInspector.ApplicationCacheItemsView):
1340         (WebInspector.ApplicationCacheItemsView.prototype.get statusBarItems):
1341         * inspector/front-end/Settings.js:
1342
1343 2011-11-17  Ken Buchanan  <kenrb@chromium.org>
1344
1345         Crash from nested tables with generated content
1346         https://bugs.webkit.org/show_bug.cgi?id=68811
1347
1348         Reviewed by David Hyatt.
1349
1350         When adding a child to a table that has generated content, this change
1351         ensures that we leave alone any generated content renderers that belong
1352         to descendants in the tree. They don't need to be touched, and doing so
1353         can create confusion about who the content belongs to.
1354
1355         This patch also simplifies some existing code for finding pseudoelement
1356         renderers. 
1357
1358         * rendering/RenderBlock.cpp:
1359         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):
1360         * rendering/RenderObject.cpp:
1361         (WebCore::RenderObject::addChild):
1362         (WebCore::RenderObject::isBeforeAfterContentGeneratedByAncestor): Added
1363         * rendering/RenderObject.h:
1364         (WebCore::RenderObject::findAfterContentRenderer): Deleted
1365         (WebCore::RenderObject::findBeforeContentRenderer): Deleted
1366         * rendering/RenderObjectChildList.cpp:
1367         (WebCore::RenderObjectChildList::beforePseudoElementRenderer):
1368         (WebCore::RenderObjectChildList::afterPseudoElementRenderer):
1369         * rendering/RenderTable.cpp:
1370         (WebCore::RenderTable::addChild):
1371         * rendering/RenderTableRow.cpp:
1372         (WebCore::RenderTableRow::addChild):
1373         * rendering/RenderTableSection.cpp:
1374         (WebCore::RenderTableSection::addChild):
1375
1376 2011-11-17  Patrick Gansterer  <paroga@webkit.org>
1377
1378         Unreviewed WinCE build fix for r94119.
1379
1380         MSVC throws multiply defined symbols linker error when using local class in inline function.
1381
1382         * bindings/js/JSDictionary.h:
1383         (WebCore::JSDictionary::IdentitySetter::identitySetter):
1384         (WebCore::JSDictionary::tryGetProperty):
1385
1386 2011-11-17  Eric Carlson  <eric.carlson@apple.com>
1387
1388         TextTrackList not sorted correctly
1389         https://bugs.webkit.org/show_bug.cgi?id=72545
1390
1391         Reviewed by Darin Adler.
1392
1393         Test: media/track/track-texttracks.html
1394
1395         * WebCore.xcodeproj/project.pbxproj: Add TextTrack.h to WebCore private headers because 
1396             it is included by HTMLMediaElement.h.
1397         * html/LoadableTextTrack.cpp:
1398         (WebCore::LoadableTextTrack::LoadableTextTrack): Pass track type to base class constructor.
1399         (WebCore::LoadableTextTrack::trackElementIndex): New, return the <track> element's tree order
1400             for sorting.
1401         * html/LoadableTextTrack.h:
1402
1403         * html/TextTrack.cpp:
1404         (WebCore::TextTrack::TextTrack): Set track type.
1405         * html/TextTrack.h:
1406         (WebCore::TextTrack::create): Ditto.
1407         (WebCore::TextTrack::trackType): Ditto.
1408
1409         * html/track/TextTrackList.cpp:
1410         (TextTrackList::length): Update to deal with two TextTrack vectors.
1411         (TextTrackList::item): Ditto.
1412         (TextTrackList::append): Ditto.
1413         (TextTrackList::remove): Ditto
1414         * html/track/TextTrackList.h: Store the two types of TextTracks in separate Vectors to make
1415             it simpler to keep them in the correct order.
1416
1417 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
1418
1419         [Qt] Layer violation: WebCore::dnsPrefetch uses QWebSettings::globalSettings()
1420         https://bugs.webkit.org/show_bug.cgi?id=72596
1421
1422         Reviewed by Kenneth Rohde Christiansen.
1423
1424         We don't need to use QWebSettings here, because we now propagate the DNS prefetch
1425         setting to WebCore::Settings and the rest of WebCore checks the setting before calling
1426         WebCore::prefetchDNS.
1427
1428         * platform/network/qt/DnsPrefetchHelper.cpp:
1429         (WebCore::prefetchDNS): Removed the use of QWebSettings.
1430         * platform/network/qt/DnsPrefetchHelper.h: Remove offending qwebsettings.h inclusion.
1431
1432 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
1433
1434         [Qt] Layer violation: Image::loadPlatformResource uses QWebSettings::webGraphic
1435         https://bugs.webkit.org/show_bug.cgi?id=72594
1436
1437         Reviewed by Kenneth Rohde Christiansen.
1438
1439         Move the cache for the resource pixmaps into ImageQt.cpp.
1440
1441         * platform/graphics/Image.h: Add Qt specific setter for resource pixmaps.
1442         * platform/graphics/qt/ImageQt.cpp: Moved resource pixmap hash from qwebsettings.
1443         (earlyClearGraphics):
1444         (graphics):
1445         (loadResourcePixmap):
1446         (WebCore::Image::setPlatformResource):
1447
1448 2011-11-17  Zeno Albisser  <zeno@webkit.org>
1449
1450         [Qt][WK2] Touch/Mouse events are delivered with wrong coordinates.
1451         https://bugs.webkit.org/show_bug.cgi?id=72604
1452
1453         When using the QtViewportInterationEngine for zooming/panning,
1454         no additional scroll offset should be applied to input events
1455         by the ScrollView.
1456
1457         This patch is based on work by Andreas Kling.
1458
1459         Reviewed by Kenneth Rohde Christiansen.
1460
1461         * platform/ScrollView.cpp:
1462         (WebCore::ScrollView::windowToContents):
1463         (WebCore::ScrollView::contentsToWindow):
1464
1465 2011-11-17  Ben Murdoch  <benm@google.com>
1466
1467         Unreviewed build fix.
1468
1469         Fix the Windows builds by adding WorkerEventQueue.cpp|h to the
1470         vcproj. Build break was introduced in
1471         https://bugs.webkit.org/show_bug.cgi?id=72528
1472
1473         * WebCore.vcproj/WebCore.vcproj: Add missing files.
1474
1475 2011-11-17  Mihnea Ovidenie  <mihnea@adobe.com>
1476
1477         CSS Exclusions: parse the wrap-margin and wrap-padding properties
1478         https://bugs.webkit.org/show_bug.cgi?id=71900
1479
1480         Reviewed by Dean Jackson.
1481
1482         Tests: fast/exclusions/wrap-margin-parsing.html
1483                fast/exclusions/wrap-padding-parsing.html
1484
1485         * css/CSSComputedStyleDeclaration.cpp:
1486         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1487         * css/CSSParser.cpp:
1488         (WebCore::isSimpleLengthPropertyID):
1489         (WebCore::CSSParser::parseValue):
1490         * css/CSSProperty.cpp:
1491         (WebCore::CSSProperty::isInheritedProperty):
1492         * css/CSSPropertyNames.in:
1493         * css/CSSStyleApplyProperty.cpp:
1494         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
1495         * css/CSSStyleSelector.cpp:
1496         (WebCore::CSSStyleSelector::applyProperty):
1497         * rendering/style/RenderStyle.cpp:
1498         (WebCore::RenderStyle::diff):
1499         * rendering/style/RenderStyle.h:
1500         (WebCore::InheritedFlags::wrapPadding):
1501         (WebCore::InheritedFlags::setWrapPadding):
1502         (WebCore::InheritedFlags::initialWrapPadding):
1503         (WebCore::InheritedFlags::wrapMargin):
1504         (WebCore::InheritedFlags::setWrapMargin):
1505         (WebCore::InheritedFlags::initialWrapMargin):
1506         * rendering/style/StyleRareNonInheritedData.cpp:
1507         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
1508         (WebCore::StyleRareNonInheritedData::operator==):
1509         * rendering/style/StyleRareNonInheritedData.h:
1510
1511 2011-11-17  Kenichi Ishibashi  <bashi@chromium.org>
1512
1513         [chromium] don't call fontconfig twice in complex text path
1514         https://bugs.webkit.org/show_bug.cgi?id=38701
1515
1516         Adds a new API for getting font family. For now, FontCacheLinux calls the new API, but don't use additional properties for compatibility. The old API will be removed when Chromium is ready to use new API.
1517
1518         Reviewed by Tony Chang.
1519
1520         No new tests. No behavior changes for now.
1521
1522         * platform/chromium/PlatformSupport.h: Added FontFamily struct and changed the declaration of getFontFamilyForCharacters().
1523         * platform/graphics/chromium/FontCacheLinux.cpp:
1524         (WebCore::FontCache::getFontDataForCharacters): Uses new PlatformSupport::getFontFamilyForCharacters().
1525         * platform/graphics/chromium/FontPlatformDataLinux.h:
1526         (WebCore::FontPlatformData::setFakeBold): Added.
1527         (WebCore::FontPlatformData::setFakeItalic): Added.
1528
1529 2011-11-17  Mario Sanchez Prada  <msanchez@igalia.com>
1530
1531         [GTK] Consider parent AtkObject in webkit_accessible_get_parent(), if already set
1532         https://bugs.webkit.org/show_bug.cgi?id=72525
1533
1534         Reviewed by Xan Lopez.
1535
1536         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1537         (webkit_accessible_get_parent): Call to the implementation of
1538         atk_object_get_parent in AtkObject class to check whether a parent
1539         AtkObject has been previously set, before trying to find one.
1540
1541 2011-11-17  Pavel Feldman  <pfeldman@google.com>
1542
1543         Not reviewed: fix IE user agents strings in the inspector.
1544
1545         * inspector/front-end/SettingsScreen.js:
1546         (WebInspector.SettingsScreen.prototype._createUserAgentSelectRowElement.get const):
1547
1548 2011-11-16  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1549
1550         Make use-fixed-layout work reliable
1551         https://bugs.webkit.org/show_bug.cgi?id=72511
1552
1553         Reviewed by Simon Hausmann.
1554
1555         Always send a viewport update per page load as we depend on that,
1556         to reset all viewport handling before doing layout.
1557
1558         * page/Page.cpp:
1559         (WebCore::Page::updateViewportArguments):
1560
1561 2011-11-16  Alexander Pavlov  <apavlov@chromium.org>
1562
1563         Web Inspector: inspector follows javascript: hrefs as relative
1564         https://bugs.webkit.org/show_bug.cgi?id=72373
1565
1566         javascript: hrefs should never be linkified for security.
1567
1568         Reviewed by Yury Semikhatsky.
1569
1570         * inspector/front-end/ElementsTreeOutline.js:
1571         (WebInspector.ElementsTreeElement.prototype._buildAttributeDOM):
1572         * inspector/front-end/ResourceUtils.js:
1573         (WebInspector.completeURL):
1574
1575 2011-11-17  Nikolas Zimmermann  <nzimmermann@rim.com>
1576
1577         Not reviewed. Fix 32bit builds.
1578
1579         * platform/ClockGeneric.cpp:
1580         (ClockGeneric::now): Use narrowPrecisionToFloat.
1581         * rendering/FilterEffectRenderer.cpp:
1582         (WebCore::FilterEffectRenderer::build): Use it correctly.
1583
1584 2011-11-17  Dominic Mazzoni  <dmazzoni@google.com>
1585
1586         Accessibility: Chromium requires an AX notification when an iframe loads.
1587         https://bugs.webkit.org/show_bug.cgi?id=72239
1588
1589         When a document finishes loading, we were sending an AXLoadComplete if it
1590         was the top document. Now, if it's a document in an iframe, send an
1591         AXLayoutComplete on the iframe.
1592
1593         Reviewed by Chris Fleizach.
1594
1595         Test: accessibility/loading-iframe-sends-notification.html
1596
1597         * dom/Document.cpp:
1598         (WebCore::Document::implicitClose):
1599
1600 2011-11-16  Mark Rowe  <mrowe@apple.com>
1601
1602         <http://webkit.org/b/72574> Remove unnecessary use of CarbonCore APIs from Audio code
1603
1604         Reviewed by Andy Estes.
1605
1606         * platform/audio/mac/AudioDestinationMac.cpp:
1607         (WebCore::AudioDestinationMac::AudioDestinationMac): Switch from using the Carbon Component Manager
1608         to using AudioUnit's own component interface.
1609         (WebCore::AudioDestinationMac::~AudioDestinationMac): Ditto.
1610         * platform/audio/mac/AudioFileReaderMac.cpp:
1611         (WebCore::AudioFileReader::AudioFileReader): Remove an unncessary trip through the Carbon File Manager
1612         when converting a char* path to a CFURLRef representing the same.
1613
1614 2011-11-17  Adam Barth  <abarth@webkit.org>
1615
1616         CSP report-only mode doesn't work from an HTTP header
1617         https://bugs.webkit.org/show_bug.cgi?id=71958
1618
1619         Reviewed by Eric Seidel.
1620
1621         "It's tested or it's broken." -- Adam Leventhal
1622
1623         Test: http/tests/security/contentSecurityPolicy/report-only-from-header.php
1624
1625         * loader/FrameLoader.cpp:
1626         (WebCore::FrameLoader::didBeginDocument):
1627
1628 2011-11-15  Pavel Feldman  <pfeldman@google.com>
1629
1630         Web Inspector: introduce Debugger domain capabilities concept.
1631         https://bugs.webkit.org/show_bug.cgi?id=72393
1632
1633         Many of the Preferences that we have in Settings.js and override in DevTools.js
1634         are really not preferences, but capabilities. Protocol clients should have a way
1635         of figuring out whether some capability is present before using it.
1636
1637         Reviewed by Yury Semikhatsky.
1638
1639         * bindings/js/ScriptDebugServer.cpp:
1640         (WebCore::ScriptDebugServer::canSetScriptSource):
1641         * bindings/js/ScriptDebugServer.h:
1642         * bindings/v8/ScriptDebugServer.cpp:
1643         (WebCore::ScriptDebugServer::canSetScriptSource):
1644         * bindings/v8/ScriptDebugServer.h:
1645         * inspector/CodeGeneratorInspector.py:
1646         * inspector/Inspector.json:
1647         * inspector/InspectorDebuggerAgent.cpp:
1648         (WebCore::InspectorDebuggerAgent::getCapabilities):
1649         * inspector/InspectorDebuggerAgent.h:
1650         * inspector/front-end/DebuggerModel.js:
1651         (WebInspector.DebuggerModel):
1652         (WebInspector.DebuggerModel.prototype.enableDebugger):
1653         (WebInspector.DebuggerModel.prototype.canSetScriptSource):
1654         * inspector/front-end/DebuggerPresentationModel.js:
1655         (WebInspector.DebuggerPresentationModel.prototype.canEditScriptSource):
1656         * inspector/front-end/Settings.js:
1657
1658 2011-11-17  Mihnea Ovidenie  <mihnea@adobe.com>
1659
1660         CSS exclusions: parse the wrap-flow and wrap-through properties
1661         https://bugs.webkit.org/show_bug.cgi?id=71904
1662
1663         Reviewed by Dean Jackson.
1664
1665         Tests: fast/exclusions/wrap-flow-parsing.html
1666                fast/exclusions/wrap-through-parsing.html
1667
1668         * css/CSSComputedStyleDeclaration.cpp:
1669         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1670         * css/CSSParser.cpp:
1671         (WebCore::CSSParser::parseValue):
1672         * css/CSSPrimitiveValueMappings.h:
1673         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
1674         (WebCore::CSSPrimitiveValue::operator WrapFlow):
1675         (WebCore::CSSPrimitiveValue::operator WrapThrough):
1676         * css/CSSProperty.cpp:
1677         (WebCore::CSSProperty::isInheritedProperty):
1678         * css/CSSPropertyNames.in:
1679         * css/CSSStyleSelector.cpp:
1680         (WebCore::CSSStyleSelector::applyProperty):
1681         * css/CSSValueKeywords.in:
1682         * rendering/style/RenderStyle.cpp:
1683         (WebCore::RenderStyle::diff):
1684         * rendering/style/RenderStyle.h:
1685         (WebCore::InheritedFlags::wrapFlow):
1686         (WebCore::InheritedFlags::wrapThrough):
1687         (WebCore::InheritedFlags::setWrapFlow):
1688         (WebCore::InheritedFlags::setWrapThrough):
1689         (WebCore::InheritedFlags::initialWrapFlow):
1690         (WebCore::InheritedFlags::initialWrapThrough):
1691         * rendering/style/RenderStyleConstants.h:
1692         * rendering/style/StyleRareNonInheritedData.cpp:
1693         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
1694         (WebCore::StyleRareNonInheritedData::operator==):
1695         * rendering/style/StyleRareNonInheritedData.h:
1696
1697 2011-11-16  Dean Jackson  <dino@apple.com>
1698
1699         Implement filter function shorthands
1700         https://bugs.webkit.org/show_bug.cgi?id=68475
1701
1702         Reviewed by Simon Fraser.
1703
1704         Implement the shorthand functions for filter effects.
1705         This includes grayscale, sepia, invert, hue-rotate, saturate,
1706         opacity, gamma, drop-shadow and blur. At the moment sharpen
1707         and url are not supported.
1708
1709         CSSParser needed to be updated because it was mistakenly
1710         clamping saturation values to [0,1]. Any positive number
1711         is allowed so you can produce super-saturated images.
1712
1713         The biggest change was the API to FilterEffectRenderer. It now
1714         builds a list of effects and applies the filter itself.
1715
1716         Note that the drop-shadow and blur operations don't yet
1717         provide accurate results because they produce an output image
1718         that is larger than the input. See
1719         https://bugs.webkit.org/show_bug.cgi?id=71929
1720         https://bugs.webkit.org/show_bug.cgi?id=71930
1721
1722         While I was there, I fixed a small style issue in
1723         CustomFilterOperation.
1724
1725         Tests: css3/filters/effect-blur.html
1726                css3/filters/effect-combined.html
1727                css3/filters/effect-drop-shadow.html
1728                css3/filters/effect-gamma.html
1729                css3/filters/effect-grayscale.html
1730                css3/filters/effect-hue-rotate.html
1731                css3/filters/effect-invert.html
1732                css3/filters/effect-opacity.html
1733                css3/filters/effect-saturate.html
1734                css3/filters/effect-sepia.html
1735
1736         * WebCore.xcodeproj/project.pbxproj: Add StyleShader.h to
1737         the project (missing from earlier commit).
1738         * css/CSSParser.cpp:
1739         (WebCore::CSSParser::isValidFilterArgument): Don't clamp
1740         saturate to [0,1]
1741         * platform/graphics/filters/CustomFilterOperation.h:
1742         * rendering/FilterEffectRenderer.cpp:
1743         (WebCore::endMatrixRow):
1744         (WebCore::lastMatrixRow):
1745         (WebCore::FilterEffectRenderer::FilterEffectRenderer):
1746         (WebCore::FilterEffectRenderer::inputContext):
1747         (WebCore::FilterEffectRenderer::build):
1748         (WebCore::FilterEffectRenderer::prepare):
1749         (WebCore::FilterEffectRenderer::apply):
1750         * rendering/FilterEffectRenderer.h:
1751         (WebCore::FilterEffectRenderer::setSourceImageRect):
1752         (WebCore::FilterEffectRenderer::output):
1753         (WebCore::FilterEffectRenderer::setMaxEffectRects):
1754         (WebCore::FilterEffectRenderer::lastEffect):
1755         * rendering/RenderLayer.cpp:
1756         (WebCore::RenderLayer::paintLayer):
1757         (WebCore::RenderLayer::updateOrRemoveFilterEffect):
1758         (WebCore::RenderLayer::updateFilterBackingStore):
1759
1760 2011-11-16  Kentaro Hara  <haraken@chromium.org>
1761
1762         Remove all custom constructors of Events from JSC
1763         https://bugs.webkit.org/show_bug.cgi?id=72577
1764
1765         Reviewed by Adam Barth.
1766
1767         - Makes CodeGeneratorJS.pm generate Event constructors
1768         if [ConstructorTemplate=Event] IDL is specified.
1769         - Removes EventConstructors.h and JSEventConstructors.cpp.
1770         - Replaces all JSC custom constructors of Events
1771         with the generated code by [ConstructorTemplate=Event] IDL.
1772
1773         Tests: fast/events/constructors/before-load-event-constructor.html
1774                fast/events/constructors/close-event-constructor.html
1775                fast/events/constructors/custom-event-constructor.html
1776                fast/events/constructors/error-event-constructor.html
1777                fast/events/constructors/event-constructors.html
1778                fast/events/constructors/hash-change-event-constructor.html
1779                fast/events/constructors/message-event-constructor.html
1780                fast/events/constructors/overflow-event-constructor.html
1781                fast/events/constructors/page-transition-event-constructor.html
1782                fast/events/constructors/pop-state-event-constructor.html
1783                fast/events/constructors/progress-event-constructor.html
1784                fast/events/constructors/track-event-constructor.html
1785                fast/events/constructors/webkit-animation-event-constructor.html
1786                fast/events/constructors/webkit-transition-event-constructor.html
1787
1788         * bindings/generic/EventConstructors.h: Removed. This is what we wanted to do in this patch.
1789         * bindings/js/JSEventConstructors.cpp: Ditto.
1790         * GNUmakefile.list.am: Removed EventConstructors.h and JSEventConstructors.cpp.
1791         * Target.pri: Ditto.
1792         * UseJSC.cmake: Ditto.
1793         * WebCore.gypi: Ditto.
1794         * WebCore.vcproj/WebCore.vcproj: Ditto.
1795         * WebCore.xcodeproj/project.pbxproj: Ditto.
1796         * bindings/js/JSBindingsAllInOne.cpp: Ditto.
1797
1798         * bindings/scripts/CodeGeneratorJS.pm:
1799         (GenerateHeader): Added JSDictionary.h.
1800         (GenerateConstructorDeclaration): Added a header for fillXXXXEventInit(...).
1801         (GenerateConstructorDefinition): Generates an Event constructor. The generated code is the same as the code that had been written in JSEventConstructors.cpp.
1802         (IsConstructable): Judges if a given interface is constructable.
1803         (IsConstructorTemplate): Judges if a given interface has a given template, e.g. judges if an interface has [ConstructorTemplate=Event].
1804
1805         * bindings/scripts/test/TestEventConstructor.idl: Changed 'CustomConstructor=Event' to 'ConstructorTemplate=Event'. We should have changed this in r100108.
1806         * bindings/scripts/test/JS/JSTestEventConstructor.cpp: Updated a run-bindings-tests result.
1807         (WebCore::JSTestEventConstructorConstructor::constructJSTestEventConstructor):
1808         (WebCore::fillTestEventConstructorInit):
1809         * bindings/scripts/test/JS/JSTestEventConstructor.h: Ditto.
1810         * bindings/scripts/test/V8/V8TestEventConstructor.cpp: Ditto.
1811         (WebCore::V8TestEventConstructor::constructorCallback):
1812         (WebCore::fillTestEventConstructorInit):
1813         * bindings/scripts/test/V8/V8TestEventConstructor.h: Ditto.
1814
1815         * dom/BeforeLoadEvent.idl: In essence, replaced [JSCustomConstructor] IDL with [JSConstructorTemplate=Event] IDL.
1816         * dom/CustomEvent.idl: Ditto.
1817         * dom/ErrorEvent.idl: Ditto.
1818         * dom/Event.idl: Ditto.
1819         * dom/HashChangeEvent.idl: Ditto.
1820         * dom/MessageEvent.idl: Ditto.
1821         * dom/OverflowEvent.idl: Ditto.
1822         * dom/PageTransitionEvent.idl: Ditto.
1823         * dom/PopStateEvent.idl: Ditto.
1824         * dom/ProgressEvent.idl: Ditto.
1825         * dom/WebKitAnimationEvent.idl: Ditto.
1826         * dom/WebKitTransitionEvent.idl: Ditto.
1827         * html/track/TrackEvent.idl: Ditto.
1828         * websockets/CloseEvent.idl: Ditto.
1829
1830 2011-11-16  Dean Jackson  <dino@apple.com>
1831
1832         Build fix for Apple WebKit due to r100560.
1833         When I removed the violating header file it lost the
1834         reference to Color.
1835
1836         No review.
1837
1838         * platform/graphics/filters/FilterOperation.h:
1839
1840 2011-11-16  Dean Jackson  <dino@apple.com>
1841
1842         DropShadowFilterOperation violates platform isolation
1843         https://bugs.webkit.org/show_bug.cgi?id=72544
1844
1845         Reviewed by Simon Fraser.
1846
1847         Move ShadowData properties into the DropShadowFilterOperation
1848         to avoid depending on something outside platform.
1849
1850         * css/CSSComputedStyleDeclaration.cpp:
1851         (WebCore::CSSComputedStyleDeclaration::valueForFilter):
1852         * css/CSSStyleSelector.cpp:
1853         (WebCore::CSSStyleSelector::createFilterOperations):
1854         * platform/graphics/filters/FilterOperation.h:
1855         (WebCore::DropShadowFilterOperation::create):
1856         (WebCore::DropShadowFilterOperation::x):
1857         (WebCore::DropShadowFilterOperation::y):
1858         (WebCore::DropShadowFilterOperation::stdDeviation):
1859         (WebCore::DropShadowFilterOperation::color):
1860         (WebCore::DropShadowFilterOperation::operator==):
1861         (WebCore::DropShadowFilterOperation::DropShadowFilterOperation):
1862
1863 2011-11-16  Adam Bergkvist  <adam.bergkvist@ericsson.com>
1864
1865         Use a simple page client for user consent in getUserMedia()
1866         https://bugs.webkit.org/show_bug.cgi?id=70897
1867
1868         Reviewed by Adam Barth.
1869
1870         This is one in a series of patches that update the MediaStream feature
1871         to use WebCore platform interfaces.
1872
1873         Covered by existing tests.
1874
1875         * GNUmakefile.list.am:
1876         * WebCore.gypi:
1877         * mediastream/MediaStreamClient.h: Removed.
1878         * mediastream/MediaStreamController.cpp: Removed.
1879         * mediastream/MediaStreamController.h: Removed.
1880         * mediastream/MediaStreamFrameController.cpp: Removed.
1881         * mediastream/MediaStreamFrameController.h: Removed.
1882         * mediastream/UserMediaClient.h: Added.
1883         (WebCore::UserMediaClient::~UserMediaClient):
1884         * mediastream/UserMediaRequest.cpp: Added.
1885         (WebCore::UserMediaRequest::create):
1886         (WebCore::UserMediaRequest::UserMediaRequest):
1887         (WebCore::UserMediaRequest::~UserMediaRequest):
1888         (WebCore::UserMediaRequest::start):
1889         (WebCore::UserMediaRequest::mediaStreamSourcesQueryCompleted):
1890         (WebCore::UserMediaRequest::succeed):
1891         (WebCore::UserMediaRequest::fail):
1892         (WebCore::UserMediaRequest::contextDestroyed):
1893         (WebCore::UserMediaRequest::parseOptions):
1894         * mediastream/UserMediaRequest.h: Added.
1895         (WebCore::UserMediaRequest::audio):
1896         (WebCore::UserMediaRequest::video):
1897         (WebCore::UserMediaRequest::cameraPreferenceUser):
1898         (WebCore::UserMediaRequest::cameraPreferenceEnvironment):
1899         (WebCore::UserMediaRequest::successCallback):
1900         (WebCore::UserMediaRequest::errorCallback):
1901         * page/CallbackTask.h: Removed.
1902         * page/Frame.cpp:
1903         (WebCore::Frame::Frame):
1904         (WebCore::Frame::~Frame):
1905         (WebCore::Frame::pageDestroyed):
1906         (WebCore::Frame::transferChildFrameToNewDocument):
1907         * page/Frame.h:
1908         * page/Navigator.cpp:
1909         (WebCore::Navigator::webkitGetUserMedia):
1910         * page/NavigatorUserMediaErrorCallback.h:
1911         * page/Page.cpp:
1912         (WebCore::Page::Page):
1913         (WebCore::Page::~Page):
1914         (WebCore::Page::PageClients::PageClients):
1915         * page/Page.h:
1916         (WebCore::Page::userMediaClient):
1917
1918 2011-11-16  David Grogan  <dgrogan@chromium.org>
1919
1920         instantiate WorkerEventQueue in WorkerContext
1921         https://bugs.webkit.org/show_bug.cgi?id=72528
1922
1923         Reviewed by David Levin.
1924
1925         No new tests - nothing uses it yet.
1926
1927         * workers/WorkerContext.cpp:
1928         (WebCore::WorkerContext::WorkerContext):
1929         Instantiate WorkerEventQueue in InitializerList
1930
1931         * workers/WorkerEventQueue.h:
1932         Don't inherit from RefCounted, WorkerContext has an OwnPtr to it
1933
1934 2011-11-16  Kentaro Hara  <haraken@chromium.org>
1935
1936         Unreviewed. Rebaselined run-bindings-tests results.
1937
1938         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
1939         (WebCore::JSTestEventConstructor::JSTestEventConstructor):
1940         (WebCore::JSTestEventConstructorOwner::finalize):
1941         * bindings/scripts/test/JS/JSTestEventConstructor.h:
1942         (WebCore::JSTestEventConstructor::impl):
1943         (WebCore::JSTestEventConstructor::releaseImpl):
1944         * bindings/scripts/test/JS/JSTestInterface.cpp:
1945         (WebCore::JSTestInterface::JSTestInterface):
1946         (WebCore::JSTestInterfaceOwner::finalize):
1947         * bindings/scripts/test/JS/JSTestInterface.h:
1948         (WebCore::JSTestInterface::impl):
1949         (WebCore::JSTestInterface::releaseImpl):
1950         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
1951         (WebCore::JSTestMediaQueryListListener::JSTestMediaQueryListListener):
1952         (WebCore::JSTestMediaQueryListListenerOwner::finalize):
1953         * bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
1954         (WebCore::JSTestMediaQueryListListener::impl):
1955         (WebCore::JSTestMediaQueryListListener::releaseImpl):
1956         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
1957         (WebCore::JSTestNamedConstructor::JSTestNamedConstructor):
1958         (WebCore::JSTestNamedConstructorOwner::finalize):
1959         * bindings/scripts/test/JS/JSTestNamedConstructor.h:
1960         (WebCore::JSTestNamedConstructor::impl):
1961         (WebCore::JSTestNamedConstructor::releaseImpl):
1962         * bindings/scripts/test/JS/JSTestObj.cpp:
1963         (WebCore::JSTestObj::JSTestObj):
1964         (WebCore::JSTestObjOwner::finalize):
1965         * bindings/scripts/test/JS/JSTestObj.h:
1966         (WebCore::JSTestObj::impl):
1967         (WebCore::JSTestObj::releaseImpl):
1968         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
1969         (WebCore::JSTestSerializedScriptValueInterface::JSTestSerializedScriptValueInterface):
1970         (WebCore::JSTestSerializedScriptValueInterfaceOwner::finalize):
1971         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
1972         (WebCore::JSTestSerializedScriptValueInterface::impl):
1973         (WebCore::JSTestSerializedScriptValueInterface::releaseImpl):
1974
1975 2011-11-16  Jay Civelli  <jcivelli@chromium.org>
1976
1977         Make sure MHTML documents use the domain of the MHTML file.
1978         https://bugs.webkit.org/show_bug.cgi?id=72445
1979
1980         Reviewed by Adam Barth.
1981
1982         * dom/Document.h:
1983         (WebCore::Document::setBaseURL):
1984         * loader/FrameLoader.cpp:
1985         (WebCore::FrameLoader::receivedFirstData):
1986
1987 2011-11-16  Julien Chaffraix  <jchaffraix@webkit.org>
1988
1989         Update supported display list after -webkit-grid and -webkit-inline-grid addition
1990         https://bugs.webkit.org/show_bug.cgi?id=72559
1991
1992         Reviewed by Tony Chang.
1993
1994         * css/CSSParser.cpp:
1995         (WebCore::CSSParser::parseValue): Added the 2 new supported
1996         values (forgotten in the previous change).
1997
1998 2011-11-11  Adrienne Walker  <enne@google.com>
1999
2000         [chromium] Expose mock scrollbars to window.internals
2001         https://bugs.webkit.org/show_bug.cgi?id=72195
2002
2003         Reviewed by James Robinson.
2004
2005         * testing/Internals.cpp:
2006         (WebCore::Internals::setMockScrollbarsEnabled):
2007         * testing/Internals.h:
2008         * testing/Internals.idl:
2009
2010 2011-11-16  Michael Nordman  <michaeln@google.com>
2011
2012         ApplicationCache manifest should work with any MIME type.
2013         https://bugs.webkit.org/show_bug.cgi?id=72082
2014
2015         Reviewed by Alexey Proskuryakov.
2016
2017         * loader/appcache/ApplicationCacheGroup.cpp:
2018         (WebCore::ApplicationCacheGroup::didReceiveManifestResponse): Remove the test for a particular type.
2019
2020 2011-11-16  Daniel Sievers  <sievers@chromium.org>
2021
2022         [Chromium] Avoid color mask operations for root layers
2023         https://bugs.webkit.org/show_bug.cgi?id=72452
2024
2025         Instead of relying on the combination of clearing the surface and initializing
2026         the alpha channel to 1.0 followed by disabling alpha in the color mask when
2027         rendering the root layer tiles, add shaders to support writing out opaque layers
2028         (alpha channel values written as 1.0).
2029
2030         Reviewed by James Robinson.
2031
2032         No functional change made that requires new tests.
2033
2034         * platform/graphics/chromium/LayerRendererChromium.cpp:
2035         (WebCore::LayerRendererChromium::drawLayersInternal):
2036         (WebCore::LayerRendererChromium::initializeSharedObjects):
2037         (WebCore::LayerRendererChromium::tilerProgramOpaque):
2038         (WebCore::LayerRendererChromium::tilerProgramOpaqueAA):
2039         (WebCore::LayerRendererChromium::tilerProgramSwizzleOpaque):
2040         (WebCore::LayerRendererChromium::tilerProgramSwizzleOpaqueAA):
2041         (WebCore::LayerRendererChromium::cleanupSharedObjects):
2042         * platform/graphics/chromium/LayerRendererChromium.h:
2043         * platform/graphics/chromium/ShaderChromium.cpp:
2044         (WebCore::FragmentTexOpaqueBinding::FragmentTexOpaqueBinding):
2045         (WebCore::FragmentTexOpaqueBinding::init):
2046         (WebCore::FragmentShaderRGBATexOpaque::getShaderString):
2047         (WebCore::FragmentShaderRGBATexSwizzleOpaque::getShaderString):
2048         (WebCore::FragmentTexClampOpaqueAABinding::FragmentTexClampOpaqueAABinding):
2049         (WebCore::FragmentTexClampOpaqueAABinding::init):
2050         (WebCore::FragmentShaderRGBATexClampOpaqueAA::getShaderString):
2051         (WebCore::FragmentShaderRGBATexClampSwizzleOpaqueAA::getShaderString):
2052         * platform/graphics/chromium/ShaderChromium.h:
2053         (WebCore::FragmentTexOpaqueBinding::alphaLocation):
2054         (WebCore::FragmentTexOpaqueBinding::samplerLocation):
2055         (WebCore::FragmentTexClampOpaqueAABinding::alphaLocation):
2056         (WebCore::FragmentTexClampOpaqueAABinding::samplerLocation):
2057         (WebCore::FragmentTexClampOpaqueAABinding::fragmentTexTransformLocation):
2058         (WebCore::FragmentTexClampOpaqueAABinding::edgeLocation):
2059         * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
2060         (WebCore::CCTiledLayerImpl::draw):
2061         * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
2062
2063 2011-11-16  Tim Horton  <timothy_horton@apple.com>
2064
2065         Implement CSS3 Images cross-fade() image function
2066         https://bugs.webkit.org/show_bug.cgi?id=52162
2067         <rdar://problem/10209254>
2068
2069         Reviewed by Simon Fraser.
2070
2071         Render -webkit-cross-fade. Only cross-fades entirely composed of images will render for now,
2072         cross-fades involving generated images are not yet implemented.
2073
2074         Reorganize GeneratedImage to be the base class for GeneratorGeneratedImage and CrossfadeGeneratedImage.
2075
2076         Add a pending state to CSSImageGeneratorValue, which is used to enable the pending-images loading
2077         mechanism for -webkit-cross-fade's sub-images. Rework the logic in CSSStyleSelector to support pending
2078         generated images.
2079         
2080         Support parsing fractional values for the cross-fade amount (for example, 0.5 = 50%). Clamp cross-fade
2081         amount to 0-1 range.
2082
2083         Tests: css3/images/cross-fade-invalidation.html
2084                css3/images/cross-fade-simple.html
2085                css3/images/cross-fade-sizing.html
2086                css3/images/cross-fade-tiled.html
2087
2088         * CMakeLists.txt:
2089         * GNUmakefile.list.am:
2090         * Target.pri:
2091         * WebCore.gypi:
2092         * WebCore.xcodeproj/project.pbxproj:
2093         * css/CSSCanvasValue.h:
2094         (WebCore::CSSCanvasValue::isPending):
2095         (WebCore::CSSCanvasValue::loadSubimages):
2096         * css/CSSCrossfadeValue.cpp:
2097         (WebCore::CSSCrossfadeValue::isPending):
2098         (WebCore::CSSCrossfadeValue::loadSubimages):
2099         (WebCore::subimageIsPending):
2100         (WebCore::loadSubimage):
2101         (WebCore::cachedImageForCSSValue):
2102         (WebCore::CSSCrossfadeValue::image):
2103         (WebCore::CSSCrossfadeValue::crossfadeChanged):
2104         * css/CSSCrossfadeValue.h:
2105         (WebCore::CSSCrossfadeValue::create):
2106         (WebCore::CSSCrossfadeValue::~CSSCrossfadeValue):
2107         (WebCore::CSSCrossfadeValue::fixedSize):
2108         (WebCore::CSSCrossfadeValue::CSSCrossfadeValue):
2109         (WebCore::CSSCrossfadeValue::CrossfadeObserverProxy::CrossfadeObserverProxy):
2110         * css/CSSGradientValue.cpp:
2111         (WebCore::CSSGradientValue::image):
2112         * css/CSSGradientValue.h:
2113         (WebCore::CSSGradientValue::isPending):
2114         (WebCore::CSSGradientValue::loadSubimages):
2115         * css/CSSImageGeneratorValue.cpp:
2116         (WebCore::CSSImageGeneratorValue::generatedOrPendingImage):
2117         (WebCore::CSSImageGeneratorValue::generatedImage):
2118         (WebCore::CSSImageGeneratorValue::isPending):
2119         (WebCore::CSSImageGeneratorValue::loadSubimages):
2120         * css/CSSImageGeneratorValue.h:
2121         * css/CSSParser.cpp:
2122         (WebCore::CSSParser::parseCrossfade):
2123         * css/CSSStyleSelector.cpp:
2124         (WebCore::CSSStyleSelector::styleImage):
2125         (WebCore::CSSStyleSelector::generatedOrPendingFromValue):
2126         (WebCore::CSSStyleSelector::loadPendingImage):
2127         (WebCore::CSSStyleSelector::loadPendingImages):
2128         * css/CSSStyleSelector.h:
2129         * platform/graphics/BitmapImage.h:
2130         * platform/graphics/CrossfadeGeneratedImage.cpp: Added.
2131         (WebCore::CrossfadeGeneratedImage::CrossfadeGeneratedImage):
2132         (WebCore::CrossfadeGeneratedImage::~CrossfadeGeneratedImage):
2133         (WebCore::CrossfadeGeneratedImage::drawCrossfade):
2134         (WebCore::CrossfadeGeneratedImage::draw):
2135         (WebCore::CrossfadeGeneratedImage::drawPattern):
2136         (WebCore::CrossfadeGeneratedImage::imageChanged):
2137         * platform/graphics/CrossfadeGeneratedImage.h: Added.
2138         (WebCore::CrossfadeGeneratedImage::create):
2139         (WebCore::CrossfadeSubimageObserverProxy::CrossfadeSubimageObserverProxy):
2140         (WebCore::CrossfadeSubimageObserverProxy::setReady):
2141         * platform/graphics/GeneratedImage.h:
2142         (WebCore::GeneratedImage::GeneratedImage):
2143         * platform/graphics/GeneratorGeneratedImage.cpp: Renamed from Source/WebCore/platform/graphics/GeneratedImage.cpp.
2144         (WebCore::GeneratorGeneratedImage::draw):
2145         (WebCore::GeneratorGeneratedImage::drawPattern):
2146         (WebCore::GeneratedImage::computeIntrinsicDimensions):
2147         * platform/graphics/GeneratorGeneratedImage.h: Copied from Source/WebCore/platform/graphics/GeneratedImage.h.
2148         (WebCore::GeneratorGeneratedImage::create):
2149         (WebCore::GeneratorGeneratedImage::~GeneratorGeneratedImage):
2150         (WebCore::GeneratorGeneratedImage::GeneratorGeneratedImage):
2151         * platform/graphics/Image.h:
2152         * platform/graphics/ImageBuffer.h:
2153         * rendering/style/StylePendingImage.h:
2154         (WebCore::StylePendingImage::create):
2155         (WebCore::StylePendingImage::data):
2156         (WebCore::StylePendingImage::cssImageValue):
2157         (WebCore::StylePendingImage::cssImageGeneratorValue):
2158         (WebCore::StylePendingImage::StylePendingImage):
2159
2160
2161 2011-11-16  Dan Bernstein  <mitz@apple.com>
2162
2163         WebCore part of <rdar://problem/10262242> Add API for paginated display
2164         https://bugs.webkit.org/show_bug.cgi?id=72537
2165
2166         Reviewed by Anders Carlsson.
2167
2168         * WebCore.exp.in: Exported Page::pageCount().
2169         * page/Page.cpp:
2170         (WebCore::Page::pageCount): Added this getter.
2171         * page/Page.h:
2172
2173 2011-11-16  Shawn Singh  <shawnsingh@chromium.org>
2174
2175         [chromium] Track property changes for render surfaces.
2176         https://bugs.webkit.org/show_bug.cgi?id=72521
2177
2178         Reviewed by James Robinson.
2179
2180         Created CCRenderSurfaceTest for testing.
2181
2182         * platform/graphics/chromium/LayerRendererChromium.cpp:
2183         (WebCore::LayerRendererChromium::drawLayersOntoRenderSurfaces):
2184         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
2185         (WebCore::CCLayerImpl::resetPropertyChangedFlagForSubtree):
2186         * platform/graphics/chromium/cc/CCLayerImpl.h:
2187         * platform/graphics/chromium/cc/CCRenderSurface.cpp:
2188         (WebCore::CCRenderSurface::CCRenderSurface):
2189         (WebCore::CCRenderSurface::setClipRect):
2190         (WebCore::CCRenderSurface::setContentRect):
2191         (WebCore::CCRenderSurface::surfacePropertyChanged):
2192         * platform/graphics/chromium/cc/CCRenderSurface.h:
2193         (WebCore::CCRenderSurface::resetPropertyChangedFlag):
2194
2195 2011-11-16  Ben Wells  <benwells@chromium.org>
2196
2197         Seaming on border corners with mixed colour alpha borders
2198         https://bugs.webkit.org/show_bug.cgi?id=70471
2199
2200         Reviewed by Simon Fraser.
2201
2202         Seaming is fixed by antialiasing mitred corners for edges that have alpha and are joining
2203         a side that is of a different color.
2204
2205         Test: fast/borders/border-mixed-alpha.html
2206
2207         * rendering/RenderBoxModelObject.cpp:
2208         (WebCore::colorNeedsAntiAliasAtCorner):
2209         (WebCore::RenderBoxModelObject::paintOneBorderSide):
2210
2211 2011-11-16  Sam Weinig  <sam@webkit.org>
2212
2213         JS wrappers of DOM objects should have no-op constructors
2214         https://bugs.webkit.org/show_bug.cgi?id=72556
2215
2216         Reviewed by Geoffrey Garen.
2217
2218         Stop using a RefPtr to hold DOM objects contained by JavaScript
2219         wrappers and instead use a raw pointer. We were already releasing
2220         the underlying object before the destructor ran (via the finalizer)
2221         so the default behavior of destroying the RefPtr is always unnecessary
2222         busy work. 
2223
2224         * bindings/js/JSCSSValueCustom.cpp:
2225         (WebCore::JSCSSValueOwner::finalize):
2226         * bindings/js/JSNodeCustom.cpp:
2227         (WebCore::JSNodeOwner::finalize):
2228         (WebCore::JSNode::visitChildren):
2229         Call releaseImpl() instead of clearImpl().
2230
2231         * bindings/scripts/CodeGeneratorJS.pm:
2232         (GenerateHeader):
2233         Stop storing m_impl in a RefPtr and instead use a raw pointer. Switch
2234         clearImpl() to releaseImpl(), which explicitly derefs the pointer and
2235         clear it.
2236
2237         (GenerateImplementation):
2238         Use leakPtr() to explicitly adopt the PassRefPtr into the raw pointer.
2239         Change default finalize to call releaseImpl() instead of clearImpl().
2240
2241 2011-11-16  Michael Saboff  <msaboff@apple.com>
2242
2243         Enable 8 Bit Strings in JavaScriptCore
2244         https://bugs.webkit.org/show_bug.cgi?id=71337
2245
2246         This patch turns on 8 bit strings in StringImpl and enables
2247         their use in JavaScriptCore. Some of the changes are to
2248         turn on code that had been staged (Lexer.cpp, Identifier.cpp,
2249         SmallStrings.cpp and some of StringImpl.{h,cpp}).
2250         Other changes are minor fixes to make 8 bit strings work
2251         (UString.h, StringImpl::getData16SlowCase()).
2252         Changed StringBuffer to be a templated class based on character
2253         type.  This change riplled into WebCore code as well.
2254
2255         Reviewed by Geoffrey Garen.
2256
2257         No new tests - Changes in response to refactoring StringBuffer to
2258         be a template on character type.
2259
2260         * css/CSSParser.cpp:
2261         (WebCore::quoteCSSString):
2262         * css/CSSPrimitiveValue.cpp:
2263         (WebCore::formatNumber):
2264         * dom/Document.cpp:
2265         (WebCore::canonicalizedTitle):
2266         * platform/Length.cpp:
2267         (WebCore::newCoordsArray):
2268         * platform/sql/SQLiteStatement.cpp:
2269         (WebCore::SQLiteStatement::prepare):
2270         * platform/text/TextCodecUTF16.cpp:
2271         (WebCore::TextCodecUTF16::decode):
2272         * platform/text/TextCodecUTF8.cpp:
2273         (WebCore::TextCodecUTF8::decode):
2274         * rendering/RenderText.cpp:
2275         (WebCore::makeCapitalized):
2276         * xml/XSLTProcessorLibxslt.cpp:
2277         (WebCore::writeToStringBuilder):
2278
2279 2011-11-16  Alexandre Elias  <aelias@google.com>
2280
2281         [chromium] Improvements for page scale delta during commit
2282         https://bugs.webkit.org/show_bug.cgi?id=72471
2283
2284         Reviewed by James Robinson.
2285
2286         Page scale now follows the same commit flow as scroll position:
2287         the delta is folded into m_pageScale at BFAC time, and a "sent" value
2288         is preserved for temporary use until the commit finishes.
2289
2290         I also merged setPageScaleFactor and setPageScaleFactorLimits into one
2291         function on the impl side.  The reason is that setPageFactor must
2292         be applied after the limits are updated, but on the other hand setting
2293         the limits first may cause an unnecessary clamp of the scale delta.
2294         Merging the methods avoids this bind.
2295
2296         No new tests. (planning to add later: https://bugs.webkit.org/show_bug.cgi?id=71529)
2297
2298         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
2299         (WebCore::CCLayerTreeHost::finishCommitOnImplThread):
2300         (WebCore::CCLayerTreeHost::applyScrollAndScale):
2301         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.h:
2302         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
2303         (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
2304         (WebCore::CCLayerTreeHostImpl::setPageScaleFactorAndLimits):
2305         (WebCore::CCLayerTreeHostImpl::adjustScrollsForPageScaleChange):
2306         (WebCore::CCLayerTreeHostImpl::setScaleDelta):
2307         (WebCore::CCLayerTreeHostImpl::applyScaleDeltaToScrollLayer):
2308         (WebCore::CCLayerTreeHostImpl::scrollRootLayer):
2309         (WebCore::CCLayerTreeHostImpl::processScrollDeltas):
2310         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
2311
2312 2011-11-16  Joshua Bell  <jsbell@chromium.org>
2313
2314         IndexedDB: Reduce nested key depth threshold, re-enable flaky test
2315         https://bugs.webkit.org/show_bug.cgi?id=72529
2316
2317         Reviewed by Adam Barth.
2318
2319         Drop maximum array key depth from 20k to 2k.
2320
2321         * bindings/v8/IDBBindingUtilities.cpp:
2322
2323 2011-11-16  Nate Chapin  <japhet@chromium.org>
2324
2325         Fix incorrect multipart handling in r100311.
2326         SubresourceLoader::didReceiveData() is getting called
2327         twice, which has unintended side effects.
2328         https://bugs.webkit.org/show_bug.cgi?id=72436
2329
2330         Reviewed by Adam Barth.
2331
2332         http/tests/multipart/invalid-image-data.html should stop
2333         asserting after this.
2334
2335         * loader/SubresourceLoader.cpp:
2336         (WebCore::SubresourceLoader::didReceiveResponse):
2337         (WebCore::SubresourceLoader::didReceiveData):
2338         (WebCore::SubresourceLoader::sendDataToResource):
2339         * loader/SubresourceLoader.h:
2340
2341 2011-11-16  Justin Schuh  <jschuh@chromium.org>
2342
2343         Clear SVG filter client when its node is detached
2344         https://bugs.webkit.org/show_bug.cgi?id=71741
2345
2346         Reviewed by Eric Seidel.
2347
2348         Test: svg/filters/reparent-animated-filter-target.html
2349
2350         * rendering/svg/SVGResourcesCache.cpp:
2351         (WebCore::SVGResourcesCache::clientDestroyed):
2352
2353 2011-11-16  John Bates  <jbates@google.com>
2354
2355         Page/layer flashes after GPU-accelerated CSS transition
2356         https://bugs.webkit.org/show_bug.cgi?id=72343
2357
2358         LayerRendererChromium was resizing the window to 1x1 at initialization.
2359         In some cases, there is no drawLayers before switching back to
2360         software rendering. This left the window resized to 1x1 and the
2361         following software paints would therefore not be visible. This change
2362         moves the reshape call into drawLayers so that it will only be called
2363         if rendering will occur.
2364
2365         Reviewed by James Robinson.
2366
2367         New test: CCLayerTreeHostImplTest.reshapeNotCalledUntilDraw.
2368
2369         * platform/graphics/chromium/LayerRendererChromium.cpp:
2370         (WebCore::LayerRendererChromium::viewportChanged):
2371         (WebCore::LayerRendererChromium::doViewportChanged):
2372         (WebCore::LayerRendererChromium::drawLayersInternal):
2373         * platform/graphics/chromium/LayerRendererChromium.h:
2374
2375 2011-11-16  Alexandre Elias  <aelias@google.com>
2376
2377         [chromium] Add null pointer check in setDeviceScaleFactor
2378         https://bugs.webkit.org/show_bug.cgi?id=72464
2379
2380         Reviewed by James Robinson.
2381
2382         No new tests. (Tiny fix.)
2383
2384         * page/Page.cpp:
2385         (WebCore::Page::setDeviceScaleFactor):
2386
2387 2011-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
2388
2389         Unreviewed, rolling out r100438.
2390         http://trac.webkit.org/changeset/100438
2391         https://bugs.webkit.org/show_bug.cgi?id=72536
2392
2393         Broke unit tests (Requested by jamesr_ on #webkit).
2394
2395         * platform/PlatformScreen.h:
2396         * platform/chromium/PlatformScreenChromium.cpp:
2397         * platform/chromium/PlatformSupport.h:
2398         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2399         (WebCore::CCSettings::CCSettings):
2400         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2401         (WebCore::CCThreadProxy::initializeImplOnImplThread):
2402
2403 2011-11-16  Andy Estes  <aestes@apple.com>
2404
2405         Assertion failure in LayerFlushScheduler::resume() when running some layout tests in WebKitTestRunner
2406         https://bugs.webkit.org/show_bug.cgi?id=72535
2407
2408         Reviewed by Anders Carlsson.
2409
2410         LayerFlushScheduler attempted to use a counter strategy for calls to
2411         suspend() and resume(), which allowed us to assert that these calls
2412         were balanced. Unfortunately it is hard to guarantee this in WebKit2,
2413         where we sometimes try to call suspend() before we've entered
2414         compositing mode (hence before we have a LayerTreeHost and a
2415         LayerFlushScheduler). When we later call resume(), this call ends up
2416         being unbalanced and asserts.
2417
2418         For now, remove the assertions and allow unbalanced calls to suspend()
2419         and resume().
2420
2421         * platform/graphics/ca/LayerFlushScheduler.cpp:
2422         (WebCore::LayerFlushScheduler::suspend):
2423         (WebCore::LayerFlushScheduler::resume):
2424         * platform/graphics/ca/LayerFlushScheduler.h:
2425         * platform/graphics/ca/mac/LayerFlushSchedulerMac.cpp:
2426         (WebCore::LayerFlushScheduler::LayerFlushScheduler):
2427         (WebCore::LayerFlushScheduler::runLoopObserverCallback):
2428         (WebCore::LayerFlushScheduler::schedule):
2429
2430 2011-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
2431
2432         Unreviewed, rolling out r100473.
2433         http://trac.webkit.org/changeset/100473
2434         https://bugs.webkit.org/show_bug.cgi?id=72534
2435
2436         "Broke the Mac Build" (Requested by mwenge2 on #webkit).
2437
2438         * CMakeLists.txt:
2439         * GNUmakefile.list.am:
2440         * Target.pri:
2441         * WebCore.gypi:
2442         * rendering/RenderBlock.cpp:
2443         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):
2444         * rendering/RenderObject.cpp:
2445         (WebCore::RenderObject::createObject):
2446         (WebCore::RenderObject::addChild):
2447         * rendering/RenderObject.h:
2448         * rendering/RenderTable.cpp:
2449         (WebCore::RenderTable::addChild):
2450         * rendering/RenderTable.h:
2451         * rendering/RenderTableCaption.cpp: Removed.
2452         * rendering/RenderTableCaption.h: Removed.
2453
2454 2011-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
2455
2456         Unreviewed, rolling out r100479.
2457         http://trac.webkit.org/changeset/100479
2458         https://bugs.webkit.org/show_bug.cgi?id=72533
2459
2460         "Broke the Mac Build" (Requested by mwenge2 on #webkit).
2461
2462         * WebCore.vcproj/WebCore.vcproj:
2463         * WebCore.xcodeproj/project.pbxproj:
2464         * rendering/RenderingAllInOne.cpp:
2465
2466 2011-11-16  Chris Fleizach  <cfleizach@apple.com>
2467
2468         WebKitTestRunner needs to support accessibility-related DRT APIs
2469         https://bugs.webkit.org/show_bug.cgi?id=42131
2470
2471         Minor changes needed to support AX testing in WKTestRunner.
2472
2473         Reviewed by Beth Dakin.
2474
2475         * WebCore.exp.in:
2476              Expose focusedUIElementForPage so that the WK2 injected bundle can retrieve it.
2477         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
2478         (accessibilitySearchKeyForString):
2479             Remove an unncessary assert that was causing issues with the WK2 test run.
2480
2481 2011-11-16  Sergio Villar Senin  <svillar@igalia.com>
2482
2483         [Soup] Somet tests fail with FAIL Unexpected response data received: Wrong method: GET
2484         https://bugs.webkit.org/show_bug.cgi?id=69219
2485
2486         Reviewed by Martin Robinson.
2487
2488         Do not stop appending data to the request body if any of the blob
2489         items to upload is not accesible.
2490
2491         * platform/network/soup/ResourceHandleSoup.cpp:
2492         (WebCore::addEncodedBlobToSoupMessageBody):
2493
2494 2011-11-16  Beth Dakin  <bdakin@apple.com>
2495
2496         https://bugs.webkit.org/show_bug.cgi?id=72400
2497         Scrollbar uiStateTransitionProgress requires tracking the mouse all the time
2498         -and corresponding-
2499         <rdar://problem/10409328>
2500
2501         Reviewed by Darin Adler.
2502
2503         This patch makes it so we track the mouse all the time when we have legacy 
2504         scrollbars (rather than only tracking the mouse when the window is key). When 
2505         we're in that mode, we want to do as little work as possible when handling the 
2506         mouseMoved event so that this extra tracking has little to no performance impact. 
2507         Also, we don't want to change basic behaviors by having normal web content hover 
2508         effects start happening when a window is in the background. So this patch also 
2509         introduces a way to handle a mouseMoved event that will only affect scrollbars.
2510
2511         EventHandler::mouseMoved() and EventHandler::handleMouseEvent() both now take a 
2512         boolean parameter that indicates if we are only updating scrollbars. If that is 
2513         the case, then we make our HitTestRequest ReadOnly, and we return early once 
2514         updateLastScrollbarUnderMouse() is called.
2515         * WebCore.exp.in:
2516         * page/EventHandler.cpp:
2517         (WebCore::EventHandler::mouseMoved):
2518         (WebCore::EventHandler::handleMouseMoveEvent):
2519
2520         In addition to calling Scrollbar::mouseExited() when appropriate, this function 
2521         now calls a new function, Scrollbar::mouseEntered() when appropriate. 
2522         (WebCore::EventHandler::updateLastScrollbarUnderMouse):
2523         * page/EventHandler.h:
2524
2525         Scrollbar::mouseMoved() used to be responsible for calling 
2526         ScrollAnimator::mouseEnteredScrollbar(), but now Scrollbar::mouseEntered() takes 
2527         care of that instead, much like how Scrollbar::mouseExited() takes care of calling 
2528         the animator's exit function.
2529         * platform/Scrollbar.cpp:
2530         (WebCore::Scrollbar::mouseMoved):
2531         (WebCore::Scrollbar::mouseEntered):
2532         * platform/Scrollbar.h:
2533
2534 2011-11-16  Andreas Kling  <kling@webkit.org>
2535
2536         CSSValue: isInheritedValue() doesn't need a dedicated bit.
2537         <http://webkit.org/b/72514>
2538
2539         Reviewed by Antti Koivisto.
2540
2541         Remove CSSValue::m_isInherited and have isInheritedValue() check the
2542         class type instead. There's no compelling reason for CSSInheritedValue
2543         to have a dedicated bit, since nobody subclasses it anyway.
2544
2545         * css/CSSValue.h:
2546         (WebCore::CSSValue::isInheritedValue):
2547         (WebCore::CSSValue::CSSValue):
2548
2549 2011-11-16  Robert Hogan  <robert@webkit.org>
2550
2551         Fix build on Windows and Mac after r100473
2552
2553         Unreviewed, fix build.
2554
2555         * WebCore.vcproj/WebCore.vcproj:
2556         * WebCore.xcodeproj/project.pbxproj:
2557         * rendering/RenderingAllInOne.cpp:
2558
2559 2011-11-16  Philip Rogers  <pdr@google.com>
2560
2561         Remove extra GraphicsContextStateSaver restore() call.
2562         https://bugs.webkit.org/show_bug.cgi?id=72497
2563
2564         Reviewed by Andreas Kling.
2565
2566         * html/canvas/CanvasRenderingContext2D.cpp:
2567         (WebCore::CanvasRenderingContext2D::drawTextInternal):
2568
2569 2011-11-08  Robert Hogan  <robert@webkit.org>
2570
2571         CSS 2.1 failure: border-collapse-offset-002.htm fails
2572         https://bugs.webkit.org/show_bug.cgi?id=71705
2573
2574         Table captions are implemented as children of the table but have a special
2575         requirement to expand to the full width of the table rather than just the 'available'
2576         width, i.e. the full width minus padding and borders.
2577
2578         To accomodate this create a RenderTableCaption object that reimplements containingBlockLogicalWidthForContent()
2579         to return the full width of the containing block (i.e. the table) rather than the available width.
2580
2581         Reviewed by Antti Koivisto.
2582
2583         * CMakeLists.txt: Add RenderTableCaption.[cpp|h]
2584         * GNUmakefile.list.am: Add RenderTableCaption.[cpp|h]
2585         * Target.pri: Add RenderTableCaption.[cpp|h]
2586         * WebCore.gypi: Add RenderTableCaption.[cpp|h]
2587         * rendering/RenderBlock.cpp:
2588         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks): Use RenderTableCaption
2589         * rendering/RenderObject.cpp:
2590         (WebCore::RenderObject::createObject): Add RenderTableCaption.[cpp|h]
2591         (WebCore::RenderObject::addChild): ditto
2592         * rendering/RenderObject.h:
2593         (WebCore::RenderObject::isTableCaption):
2594         * rendering/RenderTable.cpp:
2595         (WebCore::RenderTable::addChild):
2596         * rendering/RenderTable.h:
2597         * rendering/RenderTableCaption.cpp: Added.
2598         (WebCore::RenderTableCaption::RenderTableCaption): Implement RenderTableCaption
2599         (WebCore::RenderTableCaption::~RenderTableCaption):
2600         (WebCore::RenderTableCaption::containingBlockLogicalWidthForContent): Return the containing block's full width rather than it's available width.
2601         * rendering/RenderTableCaption.h: Added.
2602         (WebCore::RenderTableCaption::isTableCaption):
2603         (WebCore::toRenderTableCaption):
2604
2605 2011-11-16  Antaryami Pandia  <antaryami.pandia@motorola.com>
2606
2607         [Gtk] display:none has no effect on <option> element.
2608         https://bugs.webkit.org/show_bug.cgi?id=72370
2609
2610         Reviewed by Martin Robinson.
2611
2612         * platform/gtk/GtkPopupMenu.cpp:
2613         (WebCore::GtkPopupMenu::appendItem):
2614         * platform/gtk/PopupMenuGtk.cpp:
2615         (WebCore::PopupMenuGtk::createGtkActionForMenuItem):
2616
2617 2011-11-16  Dan Winship  <danw@gnome.org>
2618
2619         [GTK] Fix platformDefersLoading to handle non-http requests, and
2620         to not use broken-ish libsoup APIs.
2621         https://bugs.webkit.org/show_bug.cgi?id=72227
2622
2623         Reviewed by Martin Robinson.
2624
2625         * platform/network/ResourceHandleInternal.h:
2626         * platform/network/soup/ResourceHandleSoup.cpp:
2627         (WebCore::sendRequestCallback):
2628         (WebCore::startHTTPRequest):
2629         (WebCore::hasBeenSent):
2630         (WebCore::ResourceHandle::platformSetDefersLoading):
2631         (WebCore::readCallback): rather than deferring by using
2632         soup_session_pause_message(), let the read complete, but just don't
2633         process the result until we're no longer deferred.
2634         (WebCore::startNonHTTPRequest): Don't start the request if
2635         it's deferred.
2636
2637 2011-11-16  Vsevolod Vlasov  <vsevik@chromium.org>
2638
2639         Web Inspector: Application cache status should be updated after swapCache().
2640         https://bugs.webkit.org/show_bug.cgi?id=72123
2641
2642         Reviewed by Pavel Feldman.
2643
2644         Application cache view resources and status are now updated after swapCache() call.
2645         Refresh button removed from application cache view.
2646         Application cache inspector tests are moved to their own folder.
2647
2648         Tests: http/tests/inspector/appcache/appcache-iframe-manifests.html
2649                http/tests/inspector/appcache/appcache-manifest-with-non-existing-file.html
2650                http/tests/inspector/appcache/appcache-swap.html
2651
2652         * inspector/front-end/ApplicationCacheItemsView.js:
2653         (WebInspector.ApplicationCacheItemsView):
2654         (WebInspector.ApplicationCacheItemsView.prototype.get statusBarItems):
2655         (WebInspector.ApplicationCacheItemsView.prototype.wasShown):
2656         (WebInspector.ApplicationCacheItemsView.prototype._maybeUpdate):
2657         (WebInspector.ApplicationCacheItemsView.prototype._markDirty):
2658         (WebInspector.ApplicationCacheItemsView.prototype.updateStatus):
2659         (WebInspector.ApplicationCacheItemsView.prototype._updateCallback):
2660         (WebInspector.ApplicationCacheItemsView.prototype._deleteCallback):
2661         * loader/appcache/ApplicationCacheGroup.cpp:
2662         (WebCore::ApplicationCacheGroup::setNewestCache):
2663         (WebCore::ApplicationCacheGroup::makeObsolete):
2664         (WebCore::ApplicationCacheGroup::setUpdateStatus):
2665         * loader/appcache/ApplicationCacheHost.cpp:
2666         (WebCore::ApplicationCacheHost::notifyDOMApplicationCache):
2667         (WebCore::ApplicationCacheHost::swapCache):
2668
2669 2011-11-16  Eric Carlson  <eric.carlson@apple.com>
2670
2671         addTrack() must throw an exception if 'kind' is unknown
2672         https://bugs.webkit.org/show_bug.cgi?id=71915
2673
2674         Reviewed by Philippe Normand.
2675
2676         Tests: media/track/track-addtrack-kind.html
2677                media/track/track-kind.html
2678
2679         * html/HTMLMediaElement.cpp:
2680         (WebCore::HTMLMediaElement::textTrackKindChanged): New. Will be implemented for 62885.
2681         (WebCore::HTMLMediaElement::addTrack): Throw if  'kind' is not a known value.
2682         (WebCore::HTMLMediaElement::addTextTrack): Call textTracks(), it will allocate the track
2683             list object if necessary.
2684         (WebCore::HTMLMediaElement::textTracks): Never return NULL, a TextTrackList with no tracks
2685             is allowed.
2686         * html/HTMLMediaElement.h:
2687         (WebCore::HTMLMediaElement::addTrack): Add variants to deal with optional parameters plus
2688             a mandatory ExceptionCode parameter.
2689         * html/HTMLMediaElement.idl: addTrack can generate an exception.
2690
2691         * html/HTMLTrackElement.cpp:
2692         (WebCore::HTMLTrackElement::attributeChanged): kind, label, and srclang attribute changes should
2693             percolate down the the TextTrack.
2694         (WebCore::HTMLTrackElement::kind): Return the TextTrack kind because it is not necessarily the
2695             same as the attribute value.
2696         (WebCore::HTMLTrackElement::ensureTrack): Only pass legal 'kind' keywords to create a TextTrack.
2697         (WebCore::HTMLTrackElement::textTrackKindChanged): Notify parent element, if any.
2698         * html/HTMLTrackElement.h:
2699
2700         * html/TextTrack.cpp:
2701         (WebCore::TextTrack::subtitlesKeyword): New, return legal kind attribute value.
2702         (WebCore::TextTrack::captionsKeyword): Ditto.
2703         (WebCore::TextTrack::descriptionsKeyword): Ditto.
2704         (WebCore::TextTrack::chaptersKeyword): Ditto.
2705         (WebCore::TextTrack::metadataKeyword): Ditto.
2706         (WebCore::TextTrack::TextTrack): Call setKind to make sure m_kind is always set to legal value.
2707         (WebCore::TextTrack::isValidKindKeyword): New, validate 'kind' value.
2708         (WebCore::TextTrack::setKind): Only allow legal values.
2709         * html/TextTrack.h:
2710         (WebCore::TextTrack::kind):
2711         (WebCore::TextTrack::label):
2712         (WebCore::TextTrack::setLabel):
2713         (WebCore::TextTrack::language):
2714         (WebCore::TextTrack::setLanguage):
2715         (WebCore::TextTrack::readyState):
2716         (WebCore::TextTrack::mode):
2717
2718 2011-11-16  Andreas Kling  <kling@webkit.org>
2719
2720         CSSValue: Clean up initial value construction.
2721         <http://webkit.org/b/72502>
2722
2723         Reviewed by Antti Koivisto.
2724
2725         Instead of determining whether a given CSSInitialValue is 'implicit' or not by
2726         querying the CSSValue::ClassType (InitialClass vs. ImplicitInitialClass),
2727         add a protected CSSValue member and set it from the CSSInitialValue constructor.
2728
2729         Also get rid of the CSSValue::m_isInitial bit since we can now replace the
2730         checks by classType() == InitialClass.
2731
2732         No new tests, this is a cleanup.
2733
2734         * css/CSSInitialValue.h:
2735         (WebCore::CSSInitialValue::CSSInitialValue):
2736
2737             Poke 'implicit' constructor argument into CSSValue::m_isImplicit.
2738
2739         * css/CSSValue.cpp:
2740         (WebCore::CSSValue::cssText):
2741         (WebCore::CSSValue::destroy):
2742
2743             Remove ImplicitInitialClass cases.
2744
2745         * css/CSSValue.h:
2746         (WebCore::CSSValue::isImplicitInitialValue):
2747         (WebCore::CSSValue::isInitialValue):
2748         (WebCore::CSSValue::CSSValue):
2749
2750 2011-11-16  Antaryami Pandia  <antaryami.pandia@motorola.com>
2751
2752         Remove unnecessary if check from RenderListBox::paintItemForeground.
2753         https://bugs.webkit.org/show_bug.cgi?id=72488
2754
2755         Reviewed by Andreas Kling.
2756
2757         * rendering/RenderListBox.cpp:
2758         (WebCore::RenderListBox::paintItemForeground):
2759
2760 2011-11-15  Simon Hausmann  <simon.hausmann@nokia.com>
2761
2762         [Qt] Centralize hide_symbols and ensure all libs are built with symbol visibility & bsymbolic_functions
2763
2764         Reviewed by Tor Arne Vestbø.
2765
2766         * Target.pri: Eliminate duplicated symbol stuff that lives now in default_post.prf.
2767
2768 2011-11-16  Iain Merrick  <husky@google.com>
2769
2770         [chromium] Pass screen refresh rate into compositor.
2771         https://bugs.webkit.org/show_bug.cgi?id=71040
2772
2773         Reviewed by Tony Gentilcore.
2774
2775         * platform/PlatformScreen.h:
2776         * platform/chromium/PlatformScreenChromium.cpp:
2777         (WebCore::screenRefreshRate):
2778         * platform/chromium/PlatformSupport.h:
2779         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2780         (WebCore::CCSettings::CCSettings):
2781         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2782         (WebCore::CCThreadProxy::initializeImplOnImplThread):
2783
2784 2011-11-15  Andrey Kosyakov  <caseq@chromium.org>
2785
2786         Web Inspector: [Extensions API] drop ExtensionSidebarPane.onUpdated, use callbacks instead
2787         https://bugs.webkit.org/show_bug.cgi?id=72388
2788
2789         Reviewed by Pavel Feldman.
2790
2791         Tests: inspector/extensions/extensions-panel.html
2792                inspector/extensions/extensions-sidebar.html
2793
2794         - fire ExtensionSidebarPane.on{Hidden,Shown} for non-iframe content (experssions/objects);
2795         - drop ExtensionsSidebarPane.onUpdated, provide callback for setObject()/setExpression() instead;
2796         - fix an exception when a page is replaced with object/expression.
2797
2798          inspector/front-end/ExtensionAPI.js:
2799         (injectedExtensionAPI.ExtensionSidebarPaneImpl):
2800         (injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setExpression):
2801         (injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setObject):
2802         * inspector/front-end/ExtensionPanel.js:
2803         (WebInspector.ExtensionNotifierView):
2804         (WebInspector.ExtensionNotifierView.prototype.wasShown):
2805         (WebInspector.ExtensionNotifierView.prototype.willHide):
2806         (WebInspector.ExtensionSidebarPane.prototype.setObject):
2807         (WebInspector.ExtensionSidebarPane.prototype.setExpression):
2808         (WebInspector.ExtensionSidebarPane.prototype.setPage):
2809         (WebInspector.ExtensionSidebarPane.prototype._onEvaluate):
2810         (WebInspector.ExtensionSidebarPane.prototype._makeObjectPropertiesView):
2811         (WebInspector.ExtensionSidebarPane.prototype._setObject):
2812         * inspector/front-end/ExtensionServer.js:
2813         (WebInspector.ExtensionServer.prototype._onSetSidebarContent.callback):
2814         (WebInspector.ExtensionServer.prototype._onSetSidebarContent):
2815         (WebInspector.ExtensionServer.prototype._dispatchCallback):
2816         * inspector/front-end/View.js:
2817         (WebInspector.View.prototype.detach):
2818
2819 2011-11-16  Simon Hausmann  <simon.hausmann@nokia.com>
2820
2821         Unreviewed, rolling out r100266.
2822         http://trac.webkit.org/changeset/100266
2823
2824         Broke WTR.
2825
2826         * Target.pri:
2827
2828 2011-11-16  Per-Erik Brodin  <per-erik.brodin@ericsson.com>
2829
2830         [GTK] fast/events/event-creation.html fails creating MediaStreamEvent
2831         https://bugs.webkit.org/show_bug.cgi?id=70720
2832
2833         Reviewed by Philippe Normand.
2834
2835         Added missing overriding of Event::interfaceName()
2836
2837         * mediastream/MediaStreamEvent.cpp:
2838         (WebCore::MediaStreamEvent::stream): Changed return value to raw pointer.
2839         (WebCore::MediaStreamEvent::interfaceName): Added back from r98044.
2840         * mediastream/MediaStreamEvent.h:
2841         * mediastream/MediaStreamEvent.idl: Changed module name to "events".
2842
2843 2011-11-16  Mario Sanchez Prada  <msanchez@igalia.com>
2844
2845         [GTK] Use GQuark's in the ATK wrapper to get and set arbitrary data
2846         https://bugs.webkit.org/show_bug.cgi?id=72394
2847
2848         Reviewed by Martin Robinson.
2849
2850         No new functionality, no new tests needed.
2851
2852         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2853         (webkit_accessible_class_init): Initialize GQuarks.
2854         (getGailTextUtilForAtk): Use gailTextUtilQuark.
2855         (getPangoLayoutForAtk): Remove unused call to
2856         g_object_set_data_full, since that data is no used anywhere.
2857         (webkitAccessibleHyperlinkImplGetHyperlink): Use hyperlinkObjectQuark.
2858
2859 2011-11-15  Alexandru Chiculita  <achicu@adobe.com>
2860
2861         [CSSShaders] Implement the style cached resources and computed style for the shader urls
2862         https://bugs.webkit.org/show_bug.cgi?id=72378
2863
2864         Reviewed by Dean Jackson.
2865
2866         Test: css3/filters/custom-filter-property-computed-style.html
2867
2868         * GNUmakefile.list.am:
2869         * Target.pri:
2870         * WebCore.gypi:
2871         * WebCore.vcproj/WebCore.vcproj:
2872         * WebCore.xcodeproj/project.pbxproj:
2873         * css/CSSComputedStyleDeclaration.cpp:
2874         (WebCore::CSSComputedStyleDeclaration::valueForFilter):
2875         * css/CSSStyleSelector.cpp:
2876         (WebCore::CSSStyleSelector::CSSStyleSelector):
2877         (WebCore::CSSStyleSelector::styleForKeyframe):
2878         (WebCore::CSSStyleSelector::pseudoStyleForElement):
2879         (WebCore::CSSStyleSelector::styleForPage):
2880         (WebCore::CSSStyleSelector::applyMatchedDeclarations):
2881         (WebCore::CSSStyleSelector::styleShader):
2882         (WebCore::CSSStyleSelector::cachedOrPendingStyleShaderFromValue):
2883         (WebCore::CSSStyleSelector::loadPendingShaders):
2884         (WebCore::CSSStyleSelector::createCustomFilterOperation):
2885         (WebCore::CSSStyleSelector::createFilterOperations):
2886         * css/CSSStyleSelector.h:
2887         * css/WebKitCSSShaderValue.cpp:
2888         (WebCore::WebKitCSSShaderValue::WebKitCSSShaderValue):
2889         (WebCore::WebKitCSSShaderValue::~WebKitCSSShaderValue):
2890         (WebCore::WebKitCSSShaderValue::cachedShader):
2891         (WebCore::WebKitCSSShaderValue::cachedOrPendingShader):
2892         * css/WebKitCSSShaderValue.h:
2893         * loader/cache/CachedResource.cpp:
2894         (WebCore::defaultPriorityForResourceType):
2895         * loader/cache/CachedResource.h:
2896         * loader/cache/CachedResourceLoader.cpp:
2897         (WebCore::createResource):
2898         (WebCore::CachedResourceLoader::requestShader):
2899         (WebCore::CachedResourceLoader::checkInsecureContent):
2900         (WebCore::CachedResourceLoader::canRequest):
2901         * loader/cache/CachedResourceLoader.h:
2902         * loader/cache/CachedShader.cpp:
2903         (WebCore::CachedShader::CachedShader):
2904         (WebCore::CachedShader::~CachedShader):
2905         * loader/cache/CachedShader.h:
2906         * platform/graphics/filters/CustomFilterOperation.h:
2907         * rendering/style/RenderStyle.h:
2908         (WebCore::InheritedFlags::filter):
2909         * rendering/style/StyleCachedShader.cpp:
2910         (WebCore::StyleCachedShader::StyleCachedShader):
2911         (WebCore::StyleCachedShader::cssValue):
2912         * rendering/style/StyleCachedShader.h:
2913         (WebCore::StyleCachedShader::create):
2914         * rendering/style/StylePendingShader.h:
2915         (WebCore::StylePendingShader::create):
2916         (WebCore::StylePendingShader::cssValue):
2917         (WebCore::StylePendingShader::cssShaderValue):
2918         (WebCore::StylePendingShader::StylePendingShader):
2919         * rendering/style/StyleShader.h:
2920         (WebCore::StyleShader::~StyleShader):
2921         (WebCore::StyleShader::isCachedShader):
2922         (WebCore::StyleShader::isPendingShader):
2923         (WebCore::StyleShader::StyleShader):
2924
2925 2011-11-15  Sergio Villar Senin  <svillar@igalia.com>
2926
2927         [WK2] [GTK] fast/css/webkit-mask-crash-fieldset-legend.html asserts WebKitWebProcess
2928         https://bugs.webkit.org/show_bug.cgi?id=69510
2929
2930         Reviewed by Simon Fraser.
2931
2932         End the current transparency layer before early returning from
2933         paintMask() when there is a maskBoxImage which is still being
2934         loaded. This will balance the previous call to
2935         beginTransparencyLayer().
2936
2937         * rendering/InlineFlowBox.cpp:
2938         (WebCore::InlineFlowBox::paintMask):
2939
2940 2011-11-15  Darin Adler  <darin@apple.com>
2941
2942         Incorrect type checks in RenderTheme media code
2943         https://bugs.webkit.org/show_bug.cgi?id=72184
2944
2945         Reviewed by Eric Carlson.
2946
2947         No tests added. Ideally this patch should be revised to add tests!
2948
2949         * accessibility/AccessibilityMediaControls.cpp:
2950         (WebCore::AccessibilityMediaControl::create): Use mediaControlElementType.
2951         (WebCore::AccessibilityMediaControl::controlType): Ditto.
2952         (WebCore::AccessibilityMediaTimeline::valueDescription): Use early return
2953         rather than an assertion to check type of input element.
2954
2955         * html/shadow/MediaControlElements.cpp:
2956         (WebCore::mediaControlElementType): Added. A type-safe way to get the
2957         media control element type after checking isMediaControlElement but with
2958         no other assumptions.
2959         * html/shadow/MediaControlElements.h: Added mediaControlElementType.
2960
2961         * platform/efl/RenderThemeEfl.cpp:
2962         (WebCore::RenderThemeEfl::paintMediaPlayButton): Use mediaControlElementType.
2963         (WebCore::RenderThemeEfl::paintMediaSeekBackButton): Use mediaControlElementType.
2964         (WebCore::RenderThemeEfl::paintMediaSeekForwardButton): Use mediaControlElementType.
2965         * platform/gtk/RenderThemeGtk.cpp:
2966         (WebCore::RenderThemeGtk::paintMediaPlayButton): Check isMediaControlElement and
2967         use mediaControlElementType.
2968         * rendering/RenderThemeMac.mm:
2969         (WebCore::RenderThemeMac::paintMediaMuteButton): Ditto. Also remove uneeded
2970         redundant null check.
2971         (WebCore::RenderThemeMac::paintMediaPlayButton): Ditto.
2972         (WebCore::RenderThemeMac::paintMediaToggleClosedCaptionsButton): Ditto.
2973
2974 2011-11-15  Jeff Timanus  <twiz@chromium.org>
2975
2976         [chromium] During tear down, prevent the WebGLLayerChromium instance from attempting to stop a timer for a NULL context.
2977         https://bugs.webkit.org/show_bug.cgi?id=72423
2978
2979         Reviewed by Kenneth Russell.
2980
2981         * platform/graphics/chromium/WebGLLayerChromium.cpp:
2982         (WebCore::WebGLLayerChromium::setDrawingBuffer):
2983
2984 2011-11-15  Mark Hahnenberg  <mhahnenberg@apple.com>
2985
2986         Rebaseline generated WebCore bindings
2987
2988         Unreviewed build fix
2989
2990         No new tests.
2991
2992         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
2993         (WebCore::isObservable):
2994         (WebCore::JSTestEventConstructorOwner::isReachableFromOpaqueRoots):
2995         (WebCore::JSTestEventConstructorOwner::finalize):
2996         * bindings/scripts/test/JS/JSTestEventConstructor.h:
2997         (WebCore::JSTestEventConstructor::clearImpl):
2998         (WebCore::wrapperOwner):
2999         (WebCore::wrapperContext):
3000         * bindings/scripts/test/JS/JSTestInterface.cpp:
3001         (WebCore::JSTestInterfaceOwner::finalize):
3002         * bindings/scripts/test/JS/JSTestInterface.h:
3003         (WebCore::JSTestInterface::clearImpl):
3004         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
3005         (WebCore::isObservable):
3006         (WebCore::JSTestMediaQueryListListenerOwner::isReachableFromOpaqueRoots):
3007         (WebCore::JSTestMediaQueryListListenerOwner::finalize):
3008         * bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
3009         (WebCore::JSTestMediaQueryListListener::clearImpl):
3010         (WebCore::wrapperOwner):
3011         (WebCore::wrapperContext):
3012         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
3013         (WebCore::JSTestNamedConstructorOwner::finalize):
3014         * bindings/scripts/test/JS/JSTestNamedConstructor.h:
3015         (WebCore::JSTestNamedConstructor::clearImpl):
3016         * bindings/scripts/test/JS/JSTestObj.cpp:
3017         (WebCore::isObservable):
3018         (WebCore::JSTestObjOwner::isReachableFromOpaqueRoots):
3019         (WebCore::JSTestObjOwner::finalize):
3020         * bindings/scripts/test/JS/JSTestObj.h:
3021         (WebCore::JSTestObj::clearImpl):
3022         (WebCore::wrapperOwner):
3023         (WebCore::wrapperContext):
3024         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
3025         (WebCore::isObservable):
3026         (WebCore::JSTestSerializedScriptValueInterfaceOwner::isReachableFromOpaqueRoots):
3027         (WebCore::JSTestSerializedScriptValueInterfaceOwner::finalize):
3028         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
3029         (WebCore::JSTestSerializedScriptValueInterface::clearImpl):
3030         (WebCore::wrapperOwner):
3031         (WebCore::wrapperContext):
3032
3033 2011-11-15  Jeff Timanus  <twiz@chromium.org>
3034
3035         Patch removing duplicated code in the setup of the DrawingBuffer used
3036         to host the back-buffer for WebGL contents.
3037         https://bugs.webkit.org/show_bug.cgi?id=72327
3038
3039         Reviewed by Kenneth Russell.
3040
3041         * html/canvas/WebGLRenderingContext.cpp:
3042         (WebCore::WebGLRenderingContext::copyTexImage2D):
3043         (WebCore::WebGLRenderingContext::copyTexSubImage2D):
3044         (WebCore::WebGLRenderingContext::readPixels):
3045
3046 2011-11-15  Mark Hahnenberg  <mhahnenberg@apple.com>
3047
3048         JS DOM wrappers depend on destructor to deref impl RefPtrs
3049         https://bugs.webkit.org/show_bug.cgi?id=72341
3050
3051         Reviewed by Sam Weinig.
3052
3053         No new tests.
3054
3055         Added clearing of impl RefPtrs to JS DOM wrapper nodes and removed the default 
3056         wrapperOwner function in favor of generating all WeakHandleOwners and wrapperOwner functions.
3057
3058         * bindings/js/JSCSSValueCustom.cpp:
3059         (WebCore::JSCSSValueOwner::finalize):
3060         * bindings/js/JSDOMBinding.h:
3061         * bindings/js/JSNodeCustom.cpp:
3062         (WebCore::JSNodeOwner::finalize):
3063         * bindings/scripts/CodeGeneratorJS.pm:
3064         (GenerateHeader):
3065         (GenerateImplementation):
3066
3067 2011-11-15  Joseph Pecoraro  <pecoraro@apple.com>
3068
3069         Web Inspector: Share Highlight Code for Drawing Outlined Quad
3070         https://bugs.webkit.org/show_bug.cgi?id=72451
3071
3072         Reviewed by Timothy Hatcher.
3073
3074         * inspector/DOMNodeHighlighter.cpp:
3075
3076 2011-11-15  Sheriff Bot  <webkit.review.bot@gmail.com>
3077
3078         Unreviewed, rolling out r100308.
3079         http://trac.webkit.org/changeset/100308
3080         https://bugs.webkit.org/show_bug.cgi?id=72450
3081
3082         Introduces WebGL conformance test regressions. (Requested by
3083         twiz on #webkit).
3084
3085         * html/canvas/WebGLRenderingContext.cpp:
3086         (WebCore::WebGLRenderingContext::copyTexImage2D):
3087         (WebCore::WebGLRenderingContext::copyTexSubImage2D):
3088         (WebCore::WebGLRenderingContext::readPixels):
3089
3090 2011-11-15  James Robinson  <jamesr@chromium.org>
3091
3092         Rollout http://trac.webkit.org/changeset/99813, caused some crashes in
3093         TiledLayerChromium::updateCompositorResources()
3094
3095         * WebCore.gypi:
3096         * platform/graphics/chromium/BitmapCanvasLayerTextureUpdater.cpp: Removed.
3097         * platform/graphics/chromium/BitmapCanvasLayerTextureUpdater.h: Removed.
3098         * platform/graphics/chromium/CanvasLayerTextureUpdater.cpp: Removed.
3099         * platform/graphics/chromium/CanvasLayerTextureUpdater.h: Removed.
3100         * platform/graphics/chromium/ContentLayerChromium.cpp:
3101         (WebCore::ContentLayerChromium::createTextureUpdater):
3102         * platform/graphics/chromium/FrameBufferSkPictureCanvasLayerTextureUpdater.h: Removed.
3103         * platform/graphics/chromium/ImageLayerChromium.cpp:
3104         (WebCore::ImageLayerTextureUpdater::prepareToUpdate):
3105         * platform/graphics/chromium/LayerRendererChromium.cpp:
3106         * platform/graphics/chromium/LayerTextureUpdater.h:
3107         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp: Renamed from Source/WebCore/platform/graphics/chromium/FrameBufferSkPictureCanvasLayerTextureUpdater.cpp.
3108         (WebCore::FrameBuffer::FrameBuffer::FrameBuffer):
3109         (WebCore::FrameBuffer::FrameBuffer::~FrameBuffer):
3110         (WebCore::FrameBuffer::FrameBuffer::initialize):
3111         (WebCore::LayerTextureUpdaterCanvas::LayerTextureUpdaterCanvas):
3112         (WebCore::LayerTextureUpdaterCanvas::paintContents):
3113         (WebCore::LayerTextureUpdaterBitmap::create):
3114         (WebCore::LayerTextureUpdaterBitmap::LayerTextureUpdaterBitmap):
3115         (WebCore::LayerTextureUpdaterBitmap::sampledTexelFormat):
3116         (WebCore::LayerTextureUpdaterBitmap::prepareToUpdate):
3117         (WebCore::LayerTextureUpdaterBitmap::updateTextureRect):
3118         (WebCore::LayerTextureUpdaterSkPicture::create):
3119         (WebCore::LayerTextureUpdaterSkPicture::LayerTextureUpdaterSkPicture):
3120         (WebCore::LayerTextureUpdaterSkPicture::~LayerTextureUpdaterSkPicture):
3121         (WebCore::LayerTextureUpdaterSkPicture::sampledTexelFormat):
3122         (WebCore::LayerTextureUpdaterSkPicture::prepareToUpdate):
3123         (WebCore::LayerTextureUpdaterSkPicture::updateTextureRect):
3124         * platform/graphics/chromium/LayerTextureUpdaterCanvas.h: Added.
3125         (WebCore::LayerTextureUpdaterCanvas::contentRect):
3126         (WebCore::LayerTextureUpdaterBitmap::orientation):
3127         (WebCore::LayerTextureUpdaterSkPicture::orientation):
3128         * platform/graphics/chromium/SkPictureCanvasLayerTextureUpdater.cpp: Removed.
3129         * platform/graphics/chromium/SkPictureCanvasLayerTextureUpdater.h: Removed.
3130         * platform/graphics/chromium/TiledLayerChromium.cpp:
3131         (WebCore::UpdatableTile::UpdatableTile):
3132         (WebCore::UpdatableTile::texture):
3133         (WebCore::TiledLayerChromium::updateCompositorResources):
3134         (WebCore::TiledLayerChromium::pushPropertiesTo):
3135         (WebCore::TiledLayerChromium::createTile):
3136         (WebCore::TiledLayerChromium::protectTileTextures):
3137         (WebCore::TiledLayerChromium::prepareToUpdate):
3138         * platform/graphics/chromium/cc/CCTextureUpdater.cpp:
3139         (WebCore::CCTextureUpdater::append):
3140         (WebCore::CCTextureUpdater::update):
3141         * platform/graphics/chromium/cc/CCTextureUpdater.h:
3142
3143 2011-11-15  Julien Chaffraix  <jchaffraix@webkit.org>
3144
3145         Add the needed plumbing to parse display: -webkit-inline-grid
3146         https://bugs.webkit.org/show_bug.cgi?id=72438
3147
3148         Reviewed by Tony Chang.
3149
3150         Test: fast/css-grid-layout/display-grid-set-get.html
3151
3152         Added the needed constants and plugged everything together.
3153         Again we treat display: -webkit-inline-grid like display: none
3154         for the moment.
3155
3156         * css/CSSParser.cpp:
3157         (WebCore::CSSParser::parseValue):
3158         * css/CSSPrimitiveValueMappings.h:
3159         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
3160         * css/CSSValueKeywords.in:
3161         * rendering/RenderObject.cpp:
3162         (WebCore::RenderObject::createObject):
3163         * rendering/style/RenderStyleConstants.h:
3164
3165 2011-11-15  W. James MacLean  <wjmaclean@chromium.org>
3166
3167         [chromium] Move setVisibleRect() calls into calculateDrawTransformAndVisibility()
3168         https://bugs.webkit.org/show_bug.cgi?id=72162
3169
3170         Reviewed by Kenneth Russell.
3171
3172         Refactoring of existing functionality, so uses existing tests.
3173
3174         * platform/graphics/chromium/LayerRendererChromium.cpp:
3175         (WebCore::LayerRendererChromium::drawLayer):
3176         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
3177         (WebCore::paintContentsIfDirty):
3178         (WebCore::CCLayerTreeHost::paintMaskAndReplicaForRenderSurface):
3179         (WebCore::CCLayerTreeHost::paintLayerContents):
3180         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
3181         (WebCore::walkLayersAndCalculateVisibleLayerRects):
3182         (WebCore::CCLayerTreeHostCommon::calculateDrawTransformsAndVisibility):
3183
3184 2011-11-15  Sheriff Bot  <webkit.review.bot@gmail.com>
3185
3186         Unreviewed, rolling out r100340.
3187         http://trac.webkit.org/changeset/100340
3188         https://bugs.webkit.org/show_bug.cgi?id=72448
3189
3190         Caused assertion failure in Win dbg canary. (Requested by
3191         pkasting on #webkit).
3192
3193         * platform/graphics/chromium/LayerRendererChromium.cpp:
3194         (WebCore::LayerRendererChromium::LayerRendererChromium):
3195         (WebCore::LayerRendererChromium::viewportChanged):
3196         (WebCore::LayerRendererChromium::drawLayersInternal):
3197         * platform/graphics/chromium/LayerRendererChromium.h:
3198
3199 2011-11-15  Julien Chaffraix  <jchaffraix@webkit.org>
3200
3201         Switch table indexing to unsigned
3202         https://bugs.webkit.org/show_bug.cgi?id=72083
3203
3204         Reviewed by Darin Adler.
3205
3206         No expected change in behavior.
3207
3208         All of the code is now using unsigned for indexing!
3209
3210         * rendering/FixedTableLayout.cpp:
3211         (WebCore::FixedTableLayout::layout):
3212         * rendering/RenderTable.cpp:
3213         (WebCore::RenderTable::colElement):
3214         (WebCore::RenderTable::cellAbove):
3215         * rendering/RenderTableSection.cpp:
3216         (WebCore::RenderTableSection::splitColumn):
3217         Added some ASSERTs to make sure we don't underflow. Looking at how
3218         the different variables are populated, they should not be reached.
3219
3220         * rendering/RenderTableCell.cpp:
3221         (WebCore::RenderTableCell::colSpan):
3222         (WebCore::RenderTableCell::rowSpan):
3223         Those 2 functions promotes HTMLTableCellElement's int to unsigned
3224         which should be fine as we make sure their are positive. Also HTML5
3225         makes those 2 fields "unsigned long" which goes in the same direction.
3226
3227         * rendering/AutoTableLayout.cpp:
3228         (WebCore::AutoTableLayout::layout):
3229         * rendering/RenderTableSection.cpp:
3230         (WebCore::RenderTableSection::nodeAtPoint):
3231         Rewrote a couple of reverse iterating to be able to use unsigned
3232         without overflowing.
3233
3234         * rendering/AutoTableLayout.cpp:
3235         (WebCore::AutoTableLayout::recalcColumn):
3236         (WebCore::AutoTableLayout::fullRecalc):
3237         (WebCore::AutoTableLayout::calcEffectiveLogicalWidth):
3238         (WebCore::AutoTableLayout::insertSpanCell):
3239         * rendering/AutoTableLayout.h:
3240         * rendering/FixedTableLayout.cpp:
3241         (WebCore::FixedTableLayout::calcWidthArray):
3242         * rendering/RenderTable.cpp:
3243         (WebCore::RenderTable::splitColumn):
3244         (WebCore::RenderTable::appendColumn):
3245         (WebCore::RenderTable::recalcSections):
3246         * rendering/RenderTable.h:
3247         (WebCore::RenderTable::getColumnPos):
3248         (WebCore::RenderTable::spanOfEffCol):
3249         (WebCore::RenderTable::effColToCol):
3250         * rendering/RenderTableCell.cpp:
3251         (WebCore::RenderTableCell::styleOrColLogicalWidth):
3252         (WebCore::CollapsedBorders::nextBorder):
3253         * rendering/RenderTableCell.h:
3254         * rendering/RenderTableCol.cpp:
3255         (WebCore::RenderTableCol::updateFromElement):
3256         * rendering/RenderTableCol.h:
3257         (WebCore::RenderTableCol::span):
3258         (WebCore::RenderTableCol::setSpan):
3259         * rendering/RenderTableSection.cpp:
3260         (WebCore::RenderTableSection::addCell):
3261         (WebCore::RenderTableSection::setCellLogicalWidths):
3262         (WebCore::RenderTableSection::layoutRows):
3263         (WebCore::RenderTableSection::calcOuterBorderBefore):
3264         (WebCore::RenderTableSection::calcOuterBorderAfter):
3265         (WebCore::RenderTableSection::calcOuterBorderStart):
3266         (WebCore::RenderTableSection::calcOuterBorderEnd):
3267         (WebCore::RenderTableSection::paintObject):
3268         (WebCore::RenderTableSection::appendColumn):
3269         * rendering/RenderTableSection.h:
3270         (WebCore::RenderTableSection::cellAt):
3271         (WebCore::RenderTableSection::primaryCellAt):
3272         (WebCore::RenderTableSection::getBaseline):
3273         Mechanical change int -> unsigned.
3274
3275 2011-11-15  Andy Estes  <aestes@apple.com>
3276
3277         Consolidate the logic that creates run loop observers for flushing layer tree changes to CoreAnimation
3278         https://bugs.webkit.org/show_bug.cgi?id=72106
3279
3280         Reviewed by Anders Carlsson.
3281
3282         Add a class that encapsulates the logic of scheduling, enabling and
3283         invalidating a run loop observer that fires before Core Animation's
3284         commit observer. Clients can subclass LayerFlushSchedulerClient and
3285         implement flushLayers(), which will be called by the observer.
3286
3287         * WebCore.exp.in:
3288         * WebCore.xcodeproj/project.pbxproj:
3289         * platform/graphics/ca/LayerFlushScheduler.cpp: Added.
3290         (WebCore::LayerFlushScheduler::suspend): Suspend scheduling by
3291         invalidating the run loop observer. Keep a count of calls to suspend()
3292         in m_suspendCount.
3293         (WebCore::LayerFlushScheduler::resume): Decrement m_suspendCount.
3294         Install the run loop observer when it reaches 0.
3295         * platform/graphics/ca/LayerFlushSchedulerClient.h: Added.
3296         (WebCore::LayerFlushSchedulerClient::~LayerFlushSchedulerClient):
3297         * platform/graphics/ca/LayerFlushScheduler.h: Added.
3298         * platform/graphics/ca/mac/LayerFlushSchedulerMac.cpp: Added.
3299         (LayerFlushScheduler::LayerFlushScheduler):
3300         (LayerFlushScheduler::~LayerFlushScheduler):
3301         (LayerFlushScheduler::runLoopObserverCallback): Call flushLayers() on
3302         the LayerFlushSchedulerClient.
3303         (LayerFlushScheduler::schedule): Install the run loop observer.
3304         (LayerFlushScheduler::invalidate): Remove the run loop
3305         observer if it is installed.
3306
3307 2011-11-15  Adam Klein  <adamk@chromium.org>
3308
3309         [v8] Use throwError instead of compiling and running script in handleMaxRecursionDepthExceeded
3310         https://bugs.webkit.org/show_bug.cgi?id=72432
3311
3312         Reviewed by Adam Barth.
3313
3314         * bindings/v8/V8Proxy.cpp:
3315         (WebCore::handleMaxRecursionDepthExceeded):
3316
3317 2011-11-15  Vincent Scheib  <scheib@chromium.org>
3318
3319         Pointer Lock: Refactoring: PointerLock.idl: Dropping webkit prefix
3320         https://bugs.webkit.org/show_bug.cgi?id=72431
3321
3322         Reviewed by Adam Barth.
3323
3324         * page/PointerLock.cpp:
3325         (WebCore::PointerLock::lock):
3326         (WebCore::PointerLock::unlock):
3327         (WebCore::PointerLock::isLocked):
3328         * page/PointerLock.h:
3329         * page/PointerLock.idl:
3330
3331 2011-11-15  Nat Duca  <nduca@chromium.org>
3332
3333         [chromium] Fuse MainThread and CCThread
3334         https://bugs.webkit.org/show_bug.cgi?id=72426
3335
3336         Reviewed by James Robinson.
3337
3338         * WebCore.gypi:
3339         * platform/graphics/chromium/LayerRendererChromium.cpp:
3340         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
3341         (WebCore::CCLayerTreeHost::CCLayerTreeHost):
3342         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
3343         * platform/graphics/chromium/cc/CCMainThread.cpp: Removed.
3344         * platform/graphics/chromium/cc/CCMainThread.h: Removed.
3345         * platform/graphics/chromium/cc/CCMainThreadTask.h: Removed.
3346         * platform/graphics/chromium/cc/CCProxy.cpp:
3347         (WebCore::CCProxy::setMainThread):
3348         (WebCore::CCProxy::mainThread):
3349         (WebCore::CCProxy::setImplThread):
3350         (WebCore::CCProxy::implThread):
3351         (WebCore::CCProxy::isMainThread):
3352         (WebCore::CCProxy::isImplThread):
3353         (WebCore::CCProxy::~CCProxy):
3354         * platform/graphics/chromium/cc/CCProxy.h:
3355         * platform/graphics/chromium/cc/CCScopedThreadProxy.h: Renamed from Source/WebCore/platform/graphics/chromium/cc/CCScopedMainThreadProxy.h.
3356         (WebCore::CCScopedThreadProxy::create):
3357         (WebCore::CCScopedThreadProxy::postTask):
3358         (WebCore::CCScopedThreadProxy::shutdown):
3359         (WebCore::CCScopedThreadProxy::CCScopedThreadProxy):
3360         (WebCore::CCScopedThreadProxy::runTaskIfNotShutdown):
3361         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
3362         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
3363         (WebCore::CCThreadProxy::CCThreadProxy):
3364         (WebCore::CCThreadProxy::compositeAndReadback):
3365         (WebCore::CCThreadProxy::finishAllRendering):
3366         (WebCore::CCThreadProxy::initializeLayerRenderer):
3367         (WebCore::CCThreadProxy::setNeedsAnimate):
3368         (WebCore::CCThreadProxy::setNeedsCommit):
3369         (WebCore::CCThreadProxy::onSwapBuffersCompleteOnImplThread):
3370         (WebCore::CCThreadProxy::setNeedsRedraw):
3371         (WebCore::CCThreadProxy::setVisible):
3372         (WebCore::CCThreadProxy::start):
3373         (WebCore::CCThreadProxy::stop):
3374         (WebCore::CCThreadProxy::obtainBeginFrameAndCommitTaskFromCCThread):
3375         (WebCore::CCThreadProxy::createBeginFrameAndCommitTaskOnImplThread):
3376         (WebCore::CCThreadProxy::beginFrameAndCommit):
3377         (WebCore::CCThreadProxy::scheduledActionDrawAndSwap):
3378         (WebCore::CCThreadProxy::initializeImplOnImplThread):
3379         * platform/graphics/chromium/cc/CCThreadProxy.h:
3380
3381 2011-11-15  Vincent Scheib  <scheib@chromium.org>
3382
3383         Pointer Lock: Refactor: MouseEvent.idl movementX/Y
3384         https://bugs.webkit.org/show_bug.cgi?id=72427
3385
3386         - [Conditional...] vs #if defined
3387         - Runtime enabled
3388         - .movementX/Y prefixed with 'webkit'
3389
3390         Reviewed by Adam Barth.
3391
3392         No new tests.
3393
3394         * bindings/generic/RuntimeEnabledFeatures.h:
3395         (WebCore::RuntimeEnabledFeatures::webkitMovementXEnabled):
3396         (WebCore::RuntimeEnabledFeatures::webkitMovementYEnabled):
3397         * dom/MouseEvent.idl:
3398         * dom/MouseRelatedEvent.h:
3399         (WebCore::MouseRelatedEvent::webkitMovementX):
3400         (WebCore::MouseRelatedEvent::webkitMovementY):
3401
3402 2011-10-28  Ojan Vafai  <ojan@chromium.org>
3403
3404         implement flex-align for flex-flow: column
3405         https://bugs.webkit.org/show_bug.cgi?id=70754
3406
3407         Reviewed by David Hyatt.
3408
3409         Tests: css3/flexbox/flex-align-column.html
3410                css3/flexbox/line-wrapping.html
3411
3412         * rendering/RenderBox.cpp:
3413         (WebCore::RenderBox::sizesToIntrinsicLogicalWidth):
3414         When flexitems are column, they should size to the intrinsic width unless flex-flow is stretch.
3415
3416         * rendering/RenderFlexibleBox.cpp:
3417         (WebCore::RenderFlexibleBox::alignChildrenBlockDirection):
3418         This was just using the wrong, non-flow-aware method.
3419
3420 2011-11-15  Jochen Eisinger  <jochen@chromium.org>
3421
3422         Rename ReferrerPolicy to clarify its meaning
3423         https://bugs.webkit.org/show_bug.cgi?id=72420
3424
3425         Reviewed by Nate Chapin.
3426
3427         On the one hand, even if the ReferrerPolicy was set to SendReferrer, the
3428         referrer wasn't necessarily send. On the other hand, I want to use the
3429         name ReferrerPolicy when implementing the meta referrer tag.
3430
3431         No change in behavior expected so no test.
3432
3433         * html/HTMLAnchorElement.cpp:
3434         (WebCore::HTMLAnchorElement::handleClick):
3435         (WebCore::handleLinkClick):
3436         * loader/FrameLoader.cpp:
3437         (WebCore::FrameLoader::changeLocation):
3438         (WebCore::FrameLoader::urlSelected):
3439         (WebCore::FrameLoader::loadFrameRequest):
3440         * loader/FrameLoader.h:
3441         * loader/FrameLoaderTypes.h:
3442         * loader/NavigationScheduler.cpp:
3443         (WebCore::ScheduledHistoryNavigation::fire):
3444         (WebCore::ScheduledFormSubmission::fire):
3445         * page/ContextMenuController.cpp:
3446         (WebCore::openNewWindow):
3447         (WebCore::ContextMenuController::contextMenuItemSelected):
3448         * WebCore.exp.in: updated.
3449
3450 2011-11-15  Adam Klein  <adamk@chromium.org>
3451
3452         Factor out V8Proxy's max recursion depth handling code
3453         https://bugs.webkit.org/show_bug.cgi?id=72422
3454
3455         Reviewed by Nate Chapin.
3456
3457         Previously, V8Proxy used slightly different code to handle stack limit
3458         violations depending on whether they occured in runScript or
3459         callFunction. As described in http://webkit.org/b/72063, I intend to
3460         expand the usage of m_recursion when calling into script. This patch
3461         is intended to unify the existing handling code, making it easier to
3462         move elsewhere without causing unintended side-effects.
3463
3464         No tests changed, as the only change in behavior is the string passed
3465         to RangeError in the runScript case, and it's not mentioned anywhere
3466         in the LayoutTests.
3467
3468         * bindings/v8/V8Proxy.cpp:
3469         (WebCore::handleMaxRecursionDepthExceeded):
3470         (WebCore::V8Proxy::runScript): Use callFunction's factored-out code.
3471         (WebCore::V8Proxy::callFunction): Simplify and factor out code into handleMaxRecursionDepthExceeded.
3472
3473 2011-11-15  Jessie Berlin  <jberlin@apple.com>
3474
3475         NSURLRequest leak beneath ResourceRequest::setStorageSession seen on Leaks bot.
3476         https://bugs.webkit.org/show_bug.cgi?id=72419
3477
3478         Reviewed by Adam Roben.
3479
3480         Adopt the copied NSURLRequest.
3481
3482         * platform/network/mac/ResourceRequestMac.mm:
3483         (WebCore::ResourceRequest::setStorageSession):
3484
3485 2011-11-15  John Bates  <jbates@google.com>
3486
3487         Page/layer flashes after GPU-accelerated CSS transition
3488         https://bugs.webkit.org/show_bug.cgi?id=72343
3489
3490         LayerRendererChromium was resizing the window to 1x1 at initialization.
3491         In some cases, there is no drawLayers before switching back to
3492         software rendering. This left the window resized to 1x1 and the
3493         following software paints would therefore not be visible. This change