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