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