2011-04-28 Simon Fraser <simon.fraser@apple.com>
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-04-28  Simon Fraser  <simon.fraser@apple.com>
2
3         Reviewed by Dan Bernstein.
4
5         Mask placement on composited layer is incorrect sometimes
6         https://bugs.webkit.org/show_bug.cgi?id=59775
7         
8         The mask layer always has the same size as its owning GraphicsLayer,
9         so it needs to share the same offsetFromRenderer as well. This fixes
10         the offset at which the mask layer contents are painted in cases where
11         that offset is non-zero, for example when outline style bloats all of
12         the layer sizes.
13
14         Test: compositing/masks/layer-mask-placement.html
15
16         * rendering/RenderLayerBacking.cpp:
17         (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):
18
19 2011-04-28  Dan Bernstein  <mitz@apple.com>
20
21         Rubber-stamped by Mark Rowe.
22
23         Reverted r81319.
24
25         Fixes <rdar://problem/9331580> REGRESSION (r81319): Safari fails to display dropdown navigation on classics.berkeley.edu
26
27         * page/NavigatorBase.cpp:
28
29 2011-04-28  Simon Fraser  <simon.fraser@apple.com>
30
31         Reviewed by Dirk Schulze.
32
33         1px box-shadow looks ugly
34         https://bugs.webkit.org/show_bug.cgi?id=58100
35         and
36         ShadowBlur incorrectly handles zero-sized blur radius in one axis
37         https://bugs.webkit.org/show_bug.cgi?id=59710
38         
39         blurLayerImage() has issues at the edges if the blur radius
40         is one, so in that case bump the buffer size out by a pixel.
41         This results in a correct, symmetrical blur.
42         
43         Also fix an issue noticed during testing where a zero
44         height or width radius would still blur on that axis,
45         because we clamp the kernel size to a minimum of two.
46
47         Test: fast/box-shadow/single-pixel-shadow.html
48
49         * platform/graphics/ShadowBlur.h:
50         * platform/graphics/ShadowBlur.cpp:
51         (WebCore::ShadowBlur::blurLayerImage):
52         Skip horizontal or vertial passes if the radius on that axis is zero.
53         Move the "if (pass && m_blurRadius.width() != m_blurRadius.height())"
54         clause to the end of the loop, since it only needs to execute once
55         after the first pass.        
56         (WebCore::ShadowBlur::blurredEdgeSize):
57         New method to compute the width of the blurred edge (radius + extra
58         pixel when necessary).
59         (WebCore::ShadowBlur::calculateLayerBoundingRect):
60         (WebCore::ShadowBlur::templateSize):
61         (WebCore::ShadowBlur::drawRectShadow):
62         (WebCore::ShadowBlur::drawInsetShadow):
63         (WebCore::ShadowBlur::drawInsetShadowWithTiling):
64         (WebCore::ShadowBlur::drawRectShadowWithTiling):
65         (WebCore::ShadowBlur::drawLayerPieces):
66         Use the result of blurredEdgeSize() rather than recomputing.
67
68 2011-04-28  Yael Aharon  <yael.aharon@nokia.com>
69
70         Reviewed by Beth Dakin.
71
72         CSS sibling selector (~) does not work with :target pseudo class
73         https://bugs.webkit.org/show_bug.cgi?id=26539
74
75         Allow style recalculation of forward siblings of elements with
76         forward positional rules.
77
78         Tests: fast/css/pseudo-target-indirect-sibling-001.html
79                fast/css/pseudo-target-indirect-sibling-002.html
80
81         * dom/Element.cpp:
82         (WebCore::Element::recalcStyle):
83
84 2011-04-28  Nat Duca  <nduca@chromium.org>
85
86         Reviewed by Kenneth Russell.
87
88         [chromium] Add swapBuffersCompleteCallback to Extensions3DChromium
89         https://bugs.webkit.org/show_bug.cgi?id=59626
90
91         * platform/graphics/chromium/Extensions3DChromium.h:
92         (WebCore::Extensions3DChromium::SwapBuffersCompleteCallbackCHROMIUM::~SwapBuffersCompleteCallbackCHROMIUM):
93
94 2011-04-28  Steve Lacey  <sjl@chromium.org>
95
96         Reviewed by Eric Carlson.
97
98         Change chromium media controls to use absolute positioning until bug 59644 is fixed.
99         https://bugs.webkit.org/show_bug.cgi?id=59732
100
101         * css/mediaControlsChromium.css:
102         (audio::-webkit-media-controls-current-time-display, video::-webkit-media-controls-current-time-display):
103         (audio::-webkit-media-controls-timeline, video::-webkit-media-controls-timeline):
104
105 2011-04-28  Luke Macpherson   <macpherson@chromium.org>
106
107         Reviewed by Eric Seidel.
108
109         Implement CSS border width and related properties in CSSStyleApplyProperty.
110         https://bugs.webkit.org/show_bug.cgi?id=59414
111
112         No new tests as no functionality added.
113
114         * css/CSSStyleApplyProperty.cpp:
115         Separated ApplyPropertyDefault into parent and child so that other classes could inherit
116         the applyInheritValue and applyInitialValue methods only.
117         This was necessary to avoid casting from CSSPrimitiveValue to inappropriate types in ApplyPropertyDefault::applyValue().
118         
119         Added ApplyPropertyWidth class for handling width based CSS properties.
120         * css/CSSStyleSelector.cpp:
121         Removed no-longer-required code for handling width based CSS properties.
122         * css/CSSStyleSelector.h:
123         Added a getter for m_rootElementStyle.
124
125 2011-04-28  Kent Tamura  <tkent@chromium.org>
126
127         Run sort-Xcode-project-file.
128
129         * WebCore.xcodeproj/project.pbxproj:
130
131 2011-04-28  Martin Robinson  <mrobinson@igalia.com>
132
133         Reviewed by Dirk Schulze.
134
135         [Cairo] Text underline is not shadowed when text-shadow is enabled
136         https://bugs.webkit.org/show_bug.cgi?id=48074
137
138         Use ContextShadow to enable shadows for text underlines. Also remove quite a bit
139         of duplicate code in GraphicsContext used for stroking lines. This code looks like it was
140         originally copied from the CG GraphicsContext.
141
142         * platform/graphics/GraphicsContext.h: Make adjustLineToPixelBoundaries so that we
143           can call it from a static helper function.
144         * platform/graphics/cairo/GraphicsContextCairo.cpp:
145         (WebCore::calculateStrokePatternOffset): Abstracted this code into a helper.
146         (WebCore::drawLineOnCairoContext): Abstracted this code into a helper. We need to
147         call it multiple times when shadowing text underlines.
148         (WebCore::GraphicsContext::drawLine): Use drawLineOnCairoContext.
149         (WebCore::GraphicsContext::strokeArc): Use calculateStrokePatternOffset.
150         (WebCore::GraphicsContext::drawLineForText): Use drawLineOnCairoContext.
151
152 2011-04-28  Sam Weinig  <sam@webkit.org>
153
154         Rubber-stamped by Mark Rowe.
155
156         Cleanup WebCore.xcodeproj a bit.
157
158         * WebCore.xcodeproj/project.pbxproj:
159         Added CompilerVersion.xcconfig and moved some JS bindings files into the
160         correct sub groups.
161
162 2011-04-28  David Levin  <levin@chromium.org>
163
164         Reviewed by Adam Barth.
165
166         Remove IMAGE_RESIZER related code.
167         https://bugs.webkit.org/show_bug.cgi?id=59735
168
169         * CMakeLists.txt:
170         * Configurations/FeatureDefines.xcconfig:
171         * GNUmakefile.am:
172         * GNUmakefile.list.am:
173         * WebCore.gypi:
174         * WebCore.pro:
175         * WebCore.vcproj/WebCore.vcproj:
176         * WebCore.xcodeproj/project.pbxproj:
177         * features.pri:
178         * html/AsyncImageResizer.cpp: Removed.
179         * html/AsyncImageResizer.h: Removed.
180         * html/ImageResizerThread.cpp: Removed.
181         * html/ImageResizerThread.h: Removed.
182
183 2011-04-28  Ilya Tikhonovsky  <loislo@chromium.org>
184
185         Unreviewed trivial one-line fix inspired by wrong patch for https://bugs.webkit.org/show_bug.cgi?id=59630.
186
187         * inspector/front-end/Settings.js:
188         (WebInspector.Settings):
189
190 2011-04-28  Beth Dakin  <bdakin@apple.com>
191
192         Rubber-stamped by Sam Weinig.
193
194         Rolling out revision 85258! I want to fix that bug a different way.
195         * platform/mac/ScrollbarThemeMac.mm:
196         (WebCore::ScrollbarThemeMac::paint):
197
198 2011-04-28  Chang Shu  <cshu@webkit.org>
199
200         Reviewed by Eric Seidel.
201
202         isContentEditable is not working properly with document.designMode
203         https://bugs.webkit.org/show_bug.cgi?id=53031
204
205         The specification (http://dev.w3.org/html5/spec/Overview.html#attr-contenteditable)
206         indicates that the element.isContentEditable relies on document.designMode if its
207         and its ancestors' contenteditable attributes are set to inherit.
208
209         1. Sync document render style after document.designMode is changed.
210         2. Removed the code that does unnecessary and incorrect handling for contenteditable
211         attribute with "inherit" value.
212         3. Ryosuke Niwa also helped to fix the code in ApplyStyleCommand that causes an assertion.
213
214         Tests: fast/dom/HTMLElement/iscontenteditable-designmodeon-allinherit-subframe.html
215                fast/dom/HTMLElement/iscontenteditable-designmodeon-allinherit.html
216                fast/dom/HTMLElement/iscontenteditable-designmodeon-ancestor.html
217                fast/dom/HTMLElement/iscontenteditable-designmodeon.html
218
219         * css/CSSStyleSelector.cpp:
220         (WebCore::CSSStyleSelector::styleForDocument):
221         * dom/Document.cpp:
222         (WebCore::Document::setDesignMode):
223         * dom/Node.cpp:
224         (WebCore::Node::rendererIsEditable):
225         * editing/ApplyStyleCommand.cpp:
226         (WebCore::ApplyStyleCommand::surroundNodeRangeWithElement):
227         * html/HTMLElement.cpp:
228         (WebCore::HTMLElement::setContentEditable):
229
230 2011-04-28  Sheriff Bot  <webkit.review.bot@gmail.com>
231
232         Unreviewed, rolling out r85101.
233         http://trac.webkit.org/changeset/85101
234         https://bugs.webkit.org/show_bug.cgi?id=59757
235
236          it'd be better to rollout the patch and do another one with
237         another property name. Current one will bring us to a problem
238         at first run after upgrade because it's type was changed from
239         int to string. (Requested by loislo on #webkit).
240
241         * inspector/front-end/ScriptsPanel.js:
242         (WebInspector.ScriptsPanel.prototype._debuggerWasEnabled):
243         (WebInspector.ScriptsPanel.prototype._setPauseOnExceptions.callback):
244         (WebInspector.ScriptsPanel.prototype._setPauseOnExceptions):
245
246 2011-04-28  Mike Reed  <reed@google.com>
247
248         Reviewed by Eric Seidel.
249
250         fix shadw behavior for both CSS and Canvas -- skia only
251         https://bugs.webkit.org/show_bug.cgi?id=59700
252
253         Test:
254         canvas/philip/tests/2d.shadow.alpha.3.html
255         canvas/philip/tests/2d.shadow.alpha.4.html
256         canvas/philip/tests/2d.shadow.alpha.5.html
257         fast/canvas/canvas-fillPath-alpha-shadow.html
258         fast/canvas/canvas-strokePath-alpha-shadow.html
259         fast/canvas/canvas-strokeRect-alpha-shadow.html
260         fast/css/text-input-with-webkit-border-radius.html
261         fast/repaint/shadow-multiple-horizontal.html
262         fast/repaint/shadow-multiple-strict-horizontal.html
263         fast/repaint/shadow-multiple-strict-vertical.html
264         fast/repaint/shadow-multiple-vertical.html
265         fast/canvas/canvas-getImageData.html
266
267         * platform/graphics/chromium/FontChromiumWin.cpp:
268         (WebCore::Font::drawGlyphs):
269         * platform/graphics/skia/GraphicsContextSkia.cpp:
270         (WebCore::GraphicsContext::setPlatformShadow):
271
272 2011-04-28  David Kilzer  <ddkilzer@apple.com>
273
274         <http://webkit.org/b/59755> AXObjectCache::attachWrapper() over-retains an AccessibilityObjectWrapper
275
276         Reviewed by Chris Fleizach.
277
278         Previously, AXObjectCache::attachWrapper over-retained each
279         AccessibilityObjectWrapper it created, which is why
280         AXObjectCache::detachWrapper() contained an extra -release.
281
282         * accessibility/mac/AXObjectCacheMac.mm:
283         (WebCore::AXObjectCache::detachWrapper): Removed extra -release.
284         (WebCore::AXObjectCache::attachWrapper): Because setWrapper()
285         assigns to a RetainPtr<> instance variable, it doesn't need a +1
286         retained object passed in.  Fix the leak by using a RetainPtr<>
287         for the AccessibilityObjectWrapper.
288
289 2011-04-28  Nat Duca  <nduca@chromium.org>
290
291         Reviewed by Darin Fisher.
292
293         [chromium] Compute compositor fps value and history using the frameBegin timestamp
294         https://bugs.webkit.org/show_bug.cgi?id=59668
295
296         This change switches the compositor FPS meter to use the timestamp
297         of the beginning of the frame rather than the time we call
298         swapBuffers. When scheduling is correctly tied to vsync, we can
299         have highly variable times when we finish vsync and still have
300         stable frame rates.
301
302         * platform/graphics/chromium/LayerRendererChromium.cpp:
303         (WebCore::LayerRendererChromium::updateAndDrawLayers):
304         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
305         (WebCore::CCHeadsUpDisplay::CCHeadsUpDisplay):
306         (WebCore::CCHeadsUpDisplay::drawFPSCounter):
307         (WebCore::CCHeadsUpDisplay::onFrameBegin):
308         (WebCore::CCHeadsUpDisplay::onPresent):
309         * platform/graphics/chromium/cc/CCHeadsUpDisplay.h:
310
311 2011-04-28  Beth Dakin  <bdakin@apple.com>
312
313         Reviewed by Darin Adler.
314
315         https://bugs.webkit.org/show_bug.cgi?id=59759
316         Overflow:scroll regions with overlay scrollbars show full thumb instead of just a 
317         track when there is nothing to scroll to
318         <rdar://problem/9282066>
319
320         Scrollbar::totalSize() and Scrollbar::visibleSize() are the same when there is 
321         nothing to scroll to. Just dividing them to get a knob proportion yields 1, which 
322         is not right. Set the proportion to 0 in this case instead.
323         * platform/mac/ScrollbarThemeMac.mm:
324         (WebCore::ScrollbarThemeMac::paint):
325
326 2011-04-28  Dan Bernstein  <mitz@apple.com>
327
328         Reviewed by Simon Fraser.
329
330         <rdar://problem/9291132> Add support for -epub-prefixed properties
331
332         Test: fast/css/epub-properties.html
333
334         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
335         (WebCore::cssPropertyName): Map "epub"-prefixed properties to "-epub"-prefixed ones.
336         * css/CSSPropertyNames.in: Added -epub- aliases to caption-side, -webkit-hyphens, -webkit-text-combine,
337         -webkit-text-emphasis, -webkit-text-emphasis-color, -webkit-text-emphasis-style, -webkit-text-orientation,
338         text-transform, text-transform, word-break, and -webkit-writing-mode.
339
340 2011-04-28  Adam Barth  <abarth@webkit.org>
341
342         Reviewed by Eric Seidel.
343
344         Remove WML
345         https://bugs.webkit.org/show_bug.cgi?id=59678
346
347         This patch removes WML from WebCore.  After removing WML, there's a
348         bunch of twisted code that could be untwisted, but this patch contains
349         only the purely mechanical part of removing the feature.
350
351         There's been a lot of discussion on webkit-dev about whether we should
352         remove WML.  In addition to those threads, we've had an informal poll
353         of the reviewers as well as an in-person discussion at the WebKit
354         contributor's meeting.  Removing any feature is likely to make some
355         folks unhappy, but, on balance, removing WML appears to be the right
356         thing for the project to do at this time.
357
358         * CMakeLists.txt:
359         * CodeGenerators.pri:
360         * Configurations/FeatureDefines.xcconfig:
361         * DerivedSources.cpp:
362         * DerivedSources.make:
363         * GNUmakefile.am:
364         * GNUmakefile.list.am:
365         * WebCore.gyp/WebCore.gyp:
366         * WebCore.gypi:
367         * WebCore.pro:
368         * WebCore.vcproj/WebCore.vcproj:
369         * WebCore.xcodeproj/project.pbxproj:
370         * css/CSSStyleSelector.cpp:
371         (WebCore::linkAttribute):
372         (WebCore::CSSStyleSelector::styleForElement):
373         (WebCore::CSSStyleSelector::adjustRenderStyle):
374         * css/wml.css: Removed.
375         * dom/DOMImplementation.cpp:
376         (WebCore::DOMImplementation::createDocument):
377         * dom/Document.cpp:
378         (WebCore::Document::Document):
379         (WebCore::Document::createElement):
380         * dom/Document.h:
381         (WebCore::Document::isMediaDocument):
382         * dom/Document.idl:
383         * dom/InputElement.h:
384         * dom/Node.cpp:
385         (WebCore::Node::toInputElement):
386         * dom/Node.h:
387         * dom/OptionElement.cpp:
388         (WebCore::toOptionElement):
389         (WebCore::isOptionElement):
390         * dom/OptionElement.h:
391         * dom/OptionGroupElement.cpp:
392         (WebCore::toOptionGroupElement):
393         (WebCore::isOptionGroupElement):
394         * dom/SelectElement.cpp:
395         (WebCore::toSelectElement):
396         * dom/SelectElement.h:
397         * dom/Text.cpp:
398         (WebCore::Text::attach):
399         * dom/XMLDocumentParser.cpp:
400         (WebCore::XMLDocumentParser::insertErrorMessageBlock):
401         * dom/XMLDocumentParser.h:
402         * dom/XMLDocumentParserLibxml2.cpp:
403         (WebCore::XMLDocumentParser::internalSubset):
404         (WebCore::getEntityHandler):
405         * dom/XMLDocumentParserQt.cpp:
406         (WebCore::XMLDocumentParser::parse):
407         (WebCore::XMLDocumentParser::parseDtd):
408         * editing/htmlediting.cpp:
409         (WebCore::canHaveChildrenForEditing):
410         * features.pri:
411         * history/BackForwardList.h:
412         * history/BackForwardListImpl.cpp:
413         * history/BackForwardListImpl.h:
414         * history/PageCache.cpp:
415         (WebCore::PageCache::canCachePageContainingThisFrame):
416         * html/HTMLAnchorElement.h:
417         * inspector/ConsoleMessage.cpp:
418         (WebCore::messageSourceValue):
419         * inspector/front-end/ConsoleView.js:
420         (WebInspector.ConsoleMessage.prototype.toString):
421         * loader/FrameLoader.cpp:
422         (WebCore::isBackForwardLoadType):
423         (WebCore::FrameLoader::transitionToCommitted):
424         (WebCore::FrameLoader::shouldReload):
425         (WebCore::FrameLoader::loadDifferentDocumentItem):
426         (WebCore::FrameLoader::loadItem):
427         * loader/FrameLoaderTypes.h:
428         * loader/HistoryController.cpp:
429         (WebCore::HistoryController::restoreDocumentState):
430         * manual-tests/wml: Removed.
431         * manual-tests/wml/StartTests.wml: Removed.
432         * manual-tests/wml/a-br-element.wml: Removed.
433         * manual-tests/wml/a-element.wml: Removed.
434         * manual-tests/wml/a-img-element.wml: Removed.
435         * manual-tests/wml/access-target.wml: Removed.
436         * manual-tests/wml/anchor-br-element.wml: Removed.
437         * manual-tests/wml/anchor-element.wml: Removed.
438         * manual-tests/wml/anchor-img-element.wml: Removed.
439         * manual-tests/wml/card-newcontext-attr.wml: Removed.
440         * manual-tests/wml/card-onenterbackward.wml: Removed.
441         * manual-tests/wml/card-onenterforward.wml: Removed.
442         * manual-tests/wml/card-ontimer.wml: Removed.
443         * manual-tests/wml/deck-access-control.wml: Removed.
444         * manual-tests/wml/input-format.wml: Removed.
445         * manual-tests/wml/onevent-go.wml: Removed.
446         * manual-tests/wml/onevent-noop.wml: Removed.
447         * manual-tests/wml/onevent-prev.wml: Removed.
448         * manual-tests/wml/onevent-refresh.wml: Removed.
449         * manual-tests/wml/onevent-shadow.wml: Removed.
450         * manual-tests/wml/resources: Removed.
451         * manual-tests/wml/resources/smiley.png: Removed.
452         * manual-tests/wml/select-element.wml: Removed.
453         * manual-tests/wml/select-onpick-event-crash.wml: Removed.
454         * manual-tests/wml/select-onpick-event.wml: Removed.
455         * manual-tests/wml/setvar-element.wml: Removed.
456         * manual-tests/wml/targetdeck.wml: Removed.
457         * manual-tests/wml/task-go-in-anchor.wml: Removed.
458         * manual-tests/wml/task-prev-in-anchor.wml: Removed.
459         * manual-tests/wml/task-refresh-in-anchor.wml: Removed.
460         * manual-tests/wml/template-go.wml: Removed.
461         * manual-tests/wml/template-ontimer.wml: Removed.
462         * manual-tests/wml/timer.wml: Removed.
463         * manual-tests/wml/variable-substitution.wml: Removed.
464         * page/Console.cpp:
465         (WebCore::printMessageSourceAndLevelPrefix):
466         * page/Console.h:
467         * page/Frame.cpp:
468         (WebCore::Frame::Frame):
469         * page/Page.cpp:
470         * page/Page.h:
471         * platform/MIMETypeRegistry.cpp:
472         (WebCore::initializeSupportedNonImageMimeTypes):
473         * platform/network/FormDataBuilder.h:
474         * platform/network/mac/ResourceHandleMac.mm:
475         (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]):
476         * platform/wince/MIMETypeRegistryWinCE.cpp:
477         (WebCore::initMIMETypeEntensionMap):
478         * rendering/HitTestResult.cpp:
479         (WebCore::HitTestResult::altDisplayString):
480         (WebCore::HitTestResult::absoluteImageURL):
481         (WebCore::HitTestResult::absoluteLinkURL):
482         (WebCore::HitTestResult::isLiveLink):
483         * rendering/RenderBox.cpp:
484         * rendering/RenderButton.cpp:
485         (WebCore::RenderButton::updateFromElement):
486         * rendering/RenderFieldset.cpp:
487         (WebCore::RenderFieldset::findLegend):
488         * rendering/RenderImage.cpp:
489         (WebCore::RenderImage::updateAltText):
490         * rendering/RenderObject.cpp:
491         (WebCore::RenderObject::isLegend):
492         (WebCore::RenderObject::offsetParent):
493         * wml: Removed.
494         * wml/WMLAElement.cpp: Removed.
495         * wml/WMLAElement.h: Removed.
496         * wml/WMLAccessElement.cpp: Removed.
497         * wml/WMLAccessElement.h: Removed.
498         * wml/WMLAnchorElement.cpp: Removed.
499         * wml/WMLAnchorElement.h: Removed.
500         * wml/WMLAttributeNames.in: Removed.
501         * wml/WMLBRElement.cpp: Removed.
502         * wml/WMLBRElement.h: Removed.
503         * wml/WMLCardElement.cpp: Removed.
504         * wml/WMLCardElement.h: Removed.
505         * wml/WMLDoElement.cpp: Removed.
506         * wml/WMLDoElement.h: Removed.
507         * wml/WMLDocument.cpp: Removed.
508         * wml/WMLDocument.h: Removed.
509         * wml/WMLElement.cpp: Removed.
510         * wml/WMLElement.h: Removed.
511         * wml/WMLErrorHandling.cpp: Removed.
512         * wml/WMLErrorHandling.h: Removed.
513         * wml/WMLEventHandlingElement.cpp: Removed.
514         * wml/WMLEventHandlingElement.h: Removed.
515         * wml/WMLFieldSetElement.cpp: Removed.
516         * wml/WMLFieldSetElement.h: Removed.
517         * wml/WMLFormControlElement.cpp: Removed.
518         * wml/WMLFormControlElement.h: Removed.
519         * wml/WMLGoElement.cpp: Removed.
520         * wml/WMLGoElement.h: Removed.
521         * wml/WMLImageElement.cpp: Removed.
522         * wml/WMLImageElement.h: Removed.
523         * wml/WMLImageLoader.cpp: Removed.
524         * wml/WMLImageLoader.h: Removed.
525         * wml/WMLInputElement.cpp: Removed.
526         * wml/WMLInputElement.h: Removed.
527         * wml/WMLInsertedLegendElement.cpp: Removed.
528         * wml/WMLInsertedLegendElement.h: Removed.
529         * wml/WMLIntrinsicEvent.cpp: Removed.
530         * wml/WMLIntrinsicEvent.h: Removed.
531         * wml/WMLIntrinsicEventHandler.cpp: Removed.
532         * wml/WMLIntrinsicEventHandler.h: Removed.
533         * wml/WMLMetaElement.cpp: Removed.
534         * wml/WMLMetaElement.h: Removed.
535         * wml/WMLNoopElement.cpp: Removed.
536         * wml/WMLNoopElement.h: Removed.
537         * wml/WMLOnEventElement.cpp: Removed.
538         * wml/WMLOnEventElement.h: Removed.
539         * wml/WMLOptGroupElement.cpp: Removed.
540         * wml/WMLOptGroupElement.h: Removed.
541         * wml/WMLOptionElement.cpp: Removed.
542         * wml/WMLOptionElement.h: Removed.
543         * wml/WMLPElement.cpp: Removed.
544         * wml/WMLPElement.h: Removed.
545         * wml/WMLPageState.cpp: Removed.
546         * wml/WMLPageState.h: Removed.
547         * wml/WMLPostfieldElement.cpp: Removed.
548         * wml/WMLPostfieldElement.h: Removed.
549         * wml/WMLPrevElement.cpp: Removed.
550         * wml/WMLPrevElement.h: Removed.
551         * wml/WMLRefreshElement.cpp: Removed.
552         * wml/WMLRefreshElement.h: Removed.
553         * wml/WMLSelectElement.cpp: Removed.
554         * wml/WMLSelectElement.h: Removed.
555         * wml/WMLSetvarElement.cpp: Removed.
556         * wml/WMLSetvarElement.h: Removed.
557         * wml/WMLTableElement.cpp: Removed.
558         * wml/WMLTableElement.h: Removed.
559         * wml/WMLTagNames.in: Removed.
560         * wml/WMLTaskElement.cpp: Removed.
561         * wml/WMLTaskElement.h: Removed.
562         * wml/WMLTemplateElement.cpp: Removed.
563         * wml/WMLTemplateElement.h: Removed.
564         * wml/WMLTimerElement.cpp: Removed.
565         * wml/WMLTimerElement.h: Removed.
566         * wml/WMLVariables.cpp: Removed.
567         * wml/WMLVariables.h: Removed.
568
569 2011-04-28  Sheriff Bot  <webkit.review.bot@gmail.com>
570
571         Unreviewed, rolling out r85233 and r85235.
572         http://trac.webkit.org/changeset/85233
573         http://trac.webkit.org/changeset/85235
574         https://bugs.webkit.org/show_bug.cgi?id=59754
575
576         Causes issues with jsc. (Requested by dave_levin on #webkit).
577
578         * ForwardingHeaders/wtf/ThreadRestrictionVerifier.h: Removed.
579         * loader/icon/IconDatabase.cpp:
580         (WebCore::IconDatabase::defaultIcon):
581         (WebCore::IconDatabase::setIconDataForIconURL):
582         (WebCore::IconDatabase::getOrCreateIconRecord):
583         (WebCore::IconDatabase::readFromDatabase):
584
585 2011-04-28  Jay Civelli  <jcivelli@chromium.org>
586
587         Reviewed by Adam Barth.
588
589         Introducing a new class that allows serialization of a page back
590         to HTML/XML with all its sub-frames and also retrieves the page's
591         resources.
592         Tests: unit-tests in chromium/tests/WebPageNewSerializerTest.cpp
593         https://bugs.webkit.org/show_bug.cgi?id=58947
594
595         * Android.mk:
596         * CMakeLists.txt:
597         * GNUmakefile.list.am:
598         * WebCore.gypi:
599         * WebCore.pro:
600         * WebCore.vcproj/WebCore.vcproj:
601         * dom/Document.cpp:
602         (WebCore::Document::suggestedMIMEType):
603         * dom/Document.h:
604         * editing/MarkupAccumulator.cpp:
605         (WebCore::MarkupAccumulator::appendCustomAttributes):
606         (WebCore::MarkupAccumulator::appendElement):
607         * editing/MarkupAccumulator.h:
608         * html/parser/HTMLMetaCharsetParser.cpp:
609         (WebCore::HTMLMetaCharsetParser::processMeta):
610         (WebCore::HTMLMetaCharsetParser::encodingFromMetaAttributes):
611         * html/parser/HTMLMetaCharsetParser.h:
612         * page/PageSerializer.cpp: Added.
613         * page/PageSerializer.h: Added.
614
615 2011-04-28  Mark Pilgrim  <pilgrim@chromium.org>
616
617         Reviewed by Tony Chang.
618
619         IndexedDB createIndex should fail if name arg is null
620         https://bugs.webkit.org/show_bug.cgi?id=58365
621
622         Test: storage/indexeddb/mozilla/create-index-null-name.html
623
624         * storage/IDBObjectStore.idl:
625         * storage/IDBObjectStoreBackendImpl.cpp:
626         (WebCore::IDBObjectStoreBackendImpl::createIndex):
627
628 2011-04-28  Mark Pilgrim  <pilgrim@chromium.org>
629
630         Reviewed by Tony Chang.
631
632         IndexedDB put() should fail if second (key) parameter is null
633         https://bugs.webkit.org/show_bug.cgi?id=58613
634
635         If key arg is not specified, prpKey ends up as a null pointer in ::put().
636         However, if the key arg is specified but is null, prpKey ends up as a
637         valid IDBKey which has a null key type. As it happens, we need to be able
638         to detect the difference between these cases (the key arg is optional but
639         if specified must not be null).
640
641         Test: storage/indexeddb/mozilla/key-requirements-put-null-key.html
642
643         * storage/IDBObjectStoreBackendImpl.cpp:
644         (WebCore::IDBObjectStoreBackendImpl::put):
645
646 2011-04-07  David Levin  <levin@chromium.org>
647
648         Reviewed by Darin Adler.
649
650         Add asserts to RefCounted to make sure ref/deref happens on the right thread.
651         https://bugs.webkit.org/show_bug.cgi?id=31639
652
653         No new functionality exposed so no new tests. (The change is basically adding
654         more testing.)
655
656         * ForwardingHeaders/wtf/ThreadRestrictionVerifier.h: Added.
657         * loader/icon/IconDatabase.cpp:
658         (WebCore::IconDatabase::defaultIcon): Set the mutex which does the guarding of the variable.
659         (WebCore::IconDatabase::getOrCreateIconRecord): Ditto.
660         (WebCore::IconDatabase::setIconDataForIconURL): Ditto.
661         (WebCore::IconDatabase::readFromDatabase): Ditto.
662
663 2011-04-28  Kenneth Russell  <kbr@google.com>
664
665         Unreviewed build fix for Web Audio with strict OwnPtr.
666
667         * platform/audio/HRTFDatabaseLoader.cpp:
668         (WebCore::HRTFDatabaseLoader::HRTFDatabaseLoader):
669
670 2011-04-28  Dominic Cooney  <dominicc@chromium.org>
671
672         Reviewed by Geoffrey Garen.
673
674         Walk shadow hosts as well as parent nodes when finding opaque roots.
675         https://bugs.webkit.org/show_bug.cgi?id=59571
676
677         Test: fast/dom/shadow/gc-shadow.html
678
679         * bindings/js/JSDOMBinding.h:
680         (WebCore::root):
681
682 2011-04-28  Martin Robinson  <mrobinson@igalia.com>
683
684         Reviewed by Xan Lopez.
685
686         [GTK] Click counting logic should be shared between WebKit1 and WebKit2
687         https://bugs.webkit.org/show_bug.cgi?id=59715
688
689         Added a GtkClickCounter class which is just the logic from WebKit1 pushed down
690         into WebCore so that WebKit1 and WebKit2 can share the code.
691
692         No new tests. This is covered by fast/events/click-count.html.
693
694         * GNUmakefile.list.am: Added new files.
695         * platform/gtk/GtkClickCounter.cpp: Added.
696         (WebCore::GtkClickCounter::GtkClickCounter): Added.
697         (WebCore::GtkClickCounter::reset): Added.
698         (WebCore::GtkClickCounter::shouldProcessButtonEvent): Added.
699         (WebCore::getEventTime): Added.
700         (WebCore::GtkClickCounter::clickCountForGdkButtonEvent): Added.
701         * platform/gtk/GtkClickCounter.h: Added.
702
703 2011-04-28  Dan Bernstein  <mitz@apple.com>
704
705         Build fix.
706
707         * css/CSSParser.cpp:
708         (WebCore::cssPropertyID):
709
710 2011-04-28  Dan Bernstein  <mitz@apple.com>
711
712         Reviewed by Simon Fraser.
713
714         Allow specifying CSS property aliases in CSSPropertyNames.in files
715         https://bugs.webkit.org/show_bug.cgi?id=59712
716
717         * css/CSSParser.cpp:
718         (WebCore::cssPropertyID): Removed code to handle some aliases
719         * css/CSSPropertyNames.in: Added aliases no longer handled in code.
720         * css/makeprop.pl: Interpret lines of the form "alias-property-name = property-name" as
721         defining an alias, and add an appropriate entry to the gperf file.
722
723 2011-04-28  Arno Renevier  <arno@renevier.net>
724
725         Reviewed by Gustavo Noronha Silva.
726
727         [Soup] does not load css stylesheets without content-type
728         https://bugs.webkit.org/show_bug.cgi?id=59697
729
730         When sniffing content type, do not replace http Content-Type header in
731         soup message anymore, but keep sniffed content type in a separate
732         variable.
733
734         * platform/network/soup/ResourceHandleSoup.cpp:
735         (WebCore::contentSniffedCallback):
736         * platform/network/soup/ResourceResponse.h:
737         (WebCore::ResourceResponse::sniffedContentType):
738         (WebCore::ResourceResponse::setSniffedContentType):
739         * platform/network/soup/ResourceResponseSoup.cpp:
740         (WebCore::ResourceResponse::updateFromSoupMessage):
741
742 2011-04-28  Yael Aharon  <yael.aharon@nokia.com>
743
744         Reviewed by Andreas Kling.
745
746         Remove flag ENABLE_SYMBIAN_DIALOG_PROVIDER
747         https://bugs.webkit.org/show_bug.cgi?id=59704
748
749         No new tests, just code cleanup.
750
751         * WebCore.pri:
752
753 2011-04-28  Pavel Podivilov  <podivilov@chromium.org>
754
755         Reviewed by Pavel Feldman.
756
757         Web Inspector: remove "Pretty print" source frame context menu item.
758         https://bugs.webkit.org/show_bug.cgi?id=59709
759
760         * inspector/front-end/DebuggerPresentationModel.js:
761         (WebInspector.DebuggerPresentationModel.prototype.setFormatSourceFiles):
762         * inspector/front-end/ScriptsPanel.js:
763         (WebInspector.ScriptsPanel.prototype._toggleFormatSourceFiles):
764         * inspector/front-end/SourceFrame.js:
765         (WebInspector.SourceFrame.prototype.populateTextAreaContextMenu):
766
767 2011-04-28  Satish Sampath  <satish@chromium.org>
768
769         Reviewed by Tony Gentilcore.
770
771         Speech input button layout issues with padding and border.
772         https://bugs.webkit.org/show_bug.cgi?id=59613
773
774         * rendering/RenderTextControlSingleLine.cpp:
775         (WebCore::RenderTextControlSingleLine::layout):
776         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
777         (WebCore::RenderTextControlSingleLine::forwardEvent):
778
779 2011-04-28  Carlos Garcia Campos  <cgarcia@igalia.com>
780
781         Reviewed by Martin Robinson.
782
783         [GTK] Check whether to use native scrollbars at run time
784         https://bugs.webkit.org/show_bug.cgi?id=59694
785
786         It's currently decided at build time depending on whether webkit2
787         build is enabled or not. That makes imposible to build both
788         webkit1 and webkit2 using the same libWebCore.
789
790         * GNUmakefile.am:
791         * platform/ScrollView.cpp:
792         (WebCore::ScrollView::wheelEvent):
793         * platform/gtk/ScrollViewGtk.cpp:
794         (WebCore::ScrollView::createScrollbar):
795
796 2011-04-28  Pavel Feldman  <pfeldman@google.com>
797
798         Reviewed by Yury Semikhatsky.
799
800         Web Inspector: add status bar button for pretty print.
801         https://bugs.webkit.org/show_bug.cgi?id=59467
802
803         * WebCore.gypi:
804         * inspector/front-end/Images/prettyPrintButtonGlyph.png: Added.
805         * inspector/front-end/ScriptsPanel.js:
806         (WebInspector.ScriptsPanel):
807         (WebInspector.ScriptsPanel.prototype.get statusBarItems):
808         (WebInspector.ScriptsPanel.prototype._toggleFormatSourceFiles):
809         * inspector/front-end/WebKit.qrc:
810         * inspector/front-end/inspector.css:
811         (.scripts-toggle-pretty-print-status-bar-item .glyph):
812         (.scripts-toggle-pretty-print-status-bar-item.toggled .glyph):
813
814 2011-04-28  Pavel Feldman  <pfeldman@google.com>
815
816         Reviewed by Yury Semikhatsky.
817
818         Web Inspector: add ResourceTreeModel tests.
819         https://bugs.webkit.org/show_bug.cgi?id=59616
820
821         Tests: http/tests/inspector/resource-tree/resource-tree-document-url.html
822                http/tests/inspector/resource-tree/resource-tree-frame-navigate.html
823                http/tests/inspector/resource-tree/resource-tree-reload.html
824
825         * inspector/front-end/ResourceTreeModel.js:
826         (WebInspector.ResourceTreeModel.prototype.frontendReused):
827         (WebInspector.ResourceTreeModel.prototype._addFrame):
828         (WebInspector.ResourceTreeModel.prototype._frameNavigated):
829         (WebInspector.ResourceTreeModel.prototype._frameDetached):
830         (WebInspector.ResourceTreeModel.prototype._onResourceUpdated):
831         (WebInspector.ResourceTreeModel.prototype.forAllResources):
832         (WebInspector.ResourceTreeModel.prototype._clearChildFramesAndResources):
833         (WebInspector.ResourceTreeModel.prototype._callForFrameResources):
834         (WebInspector.ResourceTreeModel.prototype._addFramesRecursively):
835         * inspector/front-end/ResourcesPanel.js:
836         (WebInspector.ResourcesPanel.prototype._populateResourceTree):
837         (WebInspector.ResourcesPanel.prototype._frameAdded):
838         (WebInspector.ResourcesPanel.prototype._frameDetached):
839         (WebInspector.ResourcesPanel.prototype._frameNavigated):
840         (WebInspector.FrameTreeElement):
841         (WebInspector.FrameTreeElement.prototype.frameNavigated):
842
843 2011-04-28  Mikhail Naganov  <mnaganov@chromium.org>
844
845         Reviewed by Yury Semikhatsky.
846
847         WebInspector: [Chromium] Implement retaining paths following in detailed heap snapshots.
848         https://bugs.webkit.org/show_bug.cgi?id=59592
849
850         * inspector/front-end/DetailedHeapshotGridNodes.js:
851         (WebInspector.HeapSnapshotGridNode.prototype._populate):
852         (WebInspector.HeapSnapshotGridNode.prototype.populateChildren.childrenRetrieved):
853         (WebInspector.HeapSnapshotGridNode.prototype.populateChildren.callSerialize):
854         (WebInspector.HeapSnapshotGridNode.prototype.populateChildren):
855         * inspector/front-end/DetailedHeapshotView.js:
856         (WebInspector.HeapSnapshotContainmentDataGrid.prototype._defaultPopulateCount.100.expandRoute.nextStep.else.afterExpand):
857         (WebInspector.HeapSnapshotContainmentDataGrid.prototype._defaultPopulateCount.100.expandRoute):
858         (WebInspector.HeapSnapshotRetainingPathsList.prototype.showNext.pathFound):
859         (WebInspector.DetailedHeapshotView.prototype._mouseClickInRetainmentGrid.expandRoute):
860         (WebInspector.DetailedHeapshotView.prototype._mouseClickInRetainmentGrid):
861         (WebInspector.DetailedHeapshotView.prototype.changeView.sortingComplete):
862         (WebInspector.DetailedHeapshotView.prototype.changeView):
863         * inspector/front-end/HeapSnapshot.js:
864         (WebInspector.HeapSnapshotPathFinder.prototype.findNext):
865         (WebInspector.HeapSnapshotPathFinder.prototype._nextEdgeIter):
866         (WebInspector.HeapSnapshotPathFinder.prototype._buildNextPath):
867         (WebInspector.HeapSnapshotPathFinder.prototype._pathToString):
868         (WebInspector.HeapSnapshotPathFinder.prototype._pathToRoute):
869         * inspector/front-end/heapProfiler.css:
870         (div.retaining-paths-view td.path-column div:hover):
871
872 2011-04-28  Mikhail Naganov  <mnaganov@chromium.org>
873
874         Reviewed by Yury Semikhatsky.
875
876         Web Inspector: [Chromium] Optimize detailed heap snapshots loading / parsing.
877         https://bugs.webkit.org/show_bug.cgi?id=59454
878
879         Test: inspector/profiler/heap-snapshot-loader.html
880
881         * inspector/front-end/HeapSnapshot.js:
882         (WebInspector.HeapSnapshotLoader):
883         (WebInspector.HeapSnapshotLoader.prototype._findBalancedCurlyBrackets):
884         (WebInspector.HeapSnapshotLoader.prototype.finishLoading):
885         (WebInspector.HeapSnapshotLoader.prototype._parseNodes):
886         (WebInspector.HeapSnapshotLoader.prototype._parseStringsArray):
887         (WebInspector.HeapSnapshotLoader.prototype.pushJSONChunk):
888         * inspector/front-end/HeapSnapshotProxy.js:
889         (WebInspector.HeapSnapshotFakeWorker.prototype.postMessage):
890
891 2011-04-28  ojab  <ojab@ojab.ru>
892
893         Reviewed by David Levin.
894
895         Fix build with libpng-1.5.1
896         https://bugs.webkit.org/show_bug.cgi?id=59607
897
898         * platform/image-decoders/png/PNGImageDecoder.cpp:
899         (WebCore::readColorProfile):
900
901 2011-04-28  Zoltan Herczeg  <zherczeg@inf.u-szeged.hu>
902
903         Reviewed by Nikolas Zimmermann.
904
905         Optimizing gaussian blur filter to ARM-neon SIMD instruction set
906         https://bugs.webkit.org/show_bug.cgi?id=59447
907
908         This patch contains two sub-routines, one for speeding up
909         alpha channel only gaussian blur (by 2.5 times) and one
910         for speeding up all channel blur (by 4 times).
911
912         The common code is also redesigned to better fit for platform
913         specific code. This means large chunks of code was moved to
914         different files, and all platform specific files are added to
915         all build systems.
916
917         * CMakeLists.txt:
918         * GNUmakefile.am:
919         * GNUmakefile.list.am:
920         * WebCore.gypi:
921         * WebCore.pro:
922         * WebCore.vcproj/WebCore.vcproj:
923         * WebCore.vcproj/WebCoreCommon.vsprops:
924         * WebCore.xcodeproj/project.pbxproj:
925         * platform/graphics/filters/FEGaussianBlur.cpp:
926         (WebCore::FEGaussianBlur::platformApplyGeneric):
927         (WebCore::FEGaussianBlur::apply):
928         * platform/graphics/filters/FEGaussianBlur.h:
929         (WebCore::FEGaussianBlur::kernelPosition):
930         (WebCore::FEGaussianBlur::platformApply):
931         * platform/graphics/filters/FELighting.cpp:
932         (WebCore::FELighting::platformApplyGeneric):
933         (WebCore::FELighting::drawLighting):
934         * platform/graphics/filters/FELighting.h:
935         (WebCore::FELighting::platformApply):
936         * platform/graphics/filters/arm/FEGaussianBlurNEON.cpp: Added.
937         (WebCore::WTF_ALIGNED):
938         (WebCore::feGaussianBlurConstantsForNeon):
939         * platform/graphics/filters/arm/FEGaussianBlurNEON.h: Added.
940         (WebCore::FEGaussianBlur::platformApplyNeon):
941         * platform/graphics/filters/arm/FELightingNEON.cpp:
942         (WebCore::WTF_ALIGNED):
943         (WebCore::FELighting::getPowerCoefficients):
944         * platform/graphics/filters/arm/FELightingNEON.h:
945         (WebCore::FELighting::platformApplyNeon):
946
947 2011-04-28  Alexander Pavlov  <apavlov@chromium.org>
948
949         Reviewed by Yury Semikhatsky.
950
951         Web Inspector: provide a hotkey for script pause
952         https://bugs.webkit.org/show_bug.cgi?id=59593
953
954         In fact, F8 works as a hotkey, but this fact was not reflected
955         in the shortcut help popup.
956
957         * English.lproj/localizedStrings.js:
958         * inspector/front-end/ScriptsPanel.js:
959         (WebInspector.ScriptsPanel.prototype._registerShortcuts):
960
961 2011-04-28  Adam Barth  <abarth@webkit.org>
962
963         Reviewed by Eric Seidel.
964
965         PluginStream should play nice with strict OwnPtr
966         https://bugs.webkit.org/show_bug.cgi?id=59675
967
968         These failures appear when enabling strict OwnPtr on Qt.
969
970         * plugins/PluginStream.cpp:
971         (WebCore::PluginStream::PluginStream):
972         (WebCore::PluginStream::didReceiveData):
973
974 2011-04-26  Alexander Pavlov  <apavlov@chromium.org>
975
976         Reviewed by Pavel Feldman.
977
978         Web Inspector: Use CachedResource to retrieve charset-decoded stylesheet text
979         https://bugs.webkit.org/show_bug.cgi?id=59326
980
981         Concrete CachedResource successors for stylesheets and scripts
982         can decode their content better than the generic approach we use.
983
984         * inspector/InspectorPageAgent.cpp:
985         (WebCore::decodeSharedBuffer):
986         (WebCore::prepareCachedResourceBuffer):
987         (WebCore::cachedResourceDecoded):
988         (WebCore::InspectorPageAgent::resourceContent):
989         (WebCore::InspectorPageAgent::resourceData):
990         * inspector/InspectorStyleSheet.cpp:
991         (WebCore::InspectorStyleSheet::originalStyleSheetText):
992
993 2011-04-28  Jon Lee  <jonlee@apple.com>
994
995         Reviewed by Simon Fraser.
996
997         REGRESSION: white overlay scrollbars on apple.com/startpage
998         https://bugs.webkit.org/show_bug.cgi?id=59540
999         <rdar://problem/9338653>
1000
1001         Now we look at the document background in addition to the <body> element,
1002         and blend those colors in with the base background of the frame view to
1003         arrive at our aggregate color. This provides a better result to determine
1004         overlay scrollbar style.
1005
1006         * page/Frame.cpp:
1007         (WebCore::Frame::getDocumentBackgroundColor): look up the colors on the html and body element, and properly composite them.
1008         * platform/graphics/Color.h: a short comment to note that blend() uses the Porter-Duff source-over equation
1009
1010 2011-04-27  Adam Barth  <abarth@webkit.org>
1011
1012         Reviewed by Maciej Stachowiak.
1013
1014         Fix OwnPtr issues in IndexedDB
1015         https://bugs.webkit.org/show_bug.cgi?id=59656
1016
1017         This patch is an attempt to fix the clang build.  Clang can't seem to
1018         cope with OwnPtrs to classes declared in an anonymous namespace because
1019         OwnPtr's copy constructor isn't defined (but would need to be defined
1020         in this translation unit).
1021
1022         * platform/leveldb/LevelDBDatabase.cpp:
1023
1024 2011-04-27  Ryuan Choi  <ryuan.choi@samsung.com>
1025
1026         Reviewed by Antonio Gomes.
1027
1028         [EFL] Change cursor to LAZY_NATIVE_CURSOR
1029         https://bugs.webkit.org/show_bug.cgi?id=59411
1030
1031         Enable LAZY_NATIVE_CURSOR on EFL build.
1032
1033         No test added because functionality is unchanged.
1034
1035         * CMakeListsEfl.txt: Add Cursor.cpp
1036         * platform/Cursor.h:
1037         (WebCore::Cursor::Cursor):
1038         * platform/efl/CursorEfl.cpp:
1039         (WebCore::Cursor::Cursor):
1040         (WebCore::Cursor::~Cursor):
1041         (WebCore::getCursorString):
1042         (WebCore::Cursor::ensurePlatformCursor):
1043         * platform/efl/WidgetEfl.cpp:
1044         (WebCore::Widget::setCursor):
1045
1046 2011-04-27  Adam Barth  <abarth@webkit.org>
1047
1048         Build fix from the future.  Another trival strict OwnPtr fixes.  This
1049         is the last futuristic build fix I can detect with my time traveling
1050         abilities.
1051
1052         * platform/graphics/chromium/TransparencyWin.cpp:
1053         (WebCore::TransparencyWin::initializeNewContext):
1054
1055 2011-04-27  Dmitry Lomov  <dslomov@google.com>
1056
1057         Reviewed by David Levin.
1058
1059         CrossThreadCopier should not have a default specialization for raw pointers
1060         https://bugs.webkit.org/show_bug.cgi?id=59234
1061         Removed the ablity to pass raw pointers cross-thread
1062         Added and applied annotations for doing that
1063
1064         * fileapi/FileReader.cpp:
1065         (WebCore::FileReader::readInternal):
1066         (WebCore::FileReader::abort):
1067         * fileapi/FileStreamProxy.cpp:
1068         (WebCore::FileStreamProxy::startOnFileThread):
1069         (WebCore::FileStreamProxy::stopOnFileThread):
1070         (WebCore::FileStreamProxy::getSize):
1071         (WebCore::FileStreamProxy::getSizeOnFileThread):
1072         (WebCore::FileStreamProxy::openForRead):
1073         (WebCore::FileStreamProxy::openForReadOnFileThread):
1074         (WebCore::FileStreamProxy::openForWrite):
1075         (WebCore::FileStreamProxy::openForWriteOnFileThread):
1076         (WebCore::FileStreamProxy::close):
1077         (WebCore::FileStreamProxy::read):
1078         (WebCore::FileStreamProxy::readOnFileThread):
1079         (WebCore::FileStreamProxy::write):
1080         (WebCore::FileStreamProxy::writeOnFileThread):
1081         (WebCore::FileStreamProxy::truncate):
1082         (WebCore::FileStreamProxy::truncateOnFileThread):
1083         * loader/WorkerThreadableLoader.cpp:
1084         (WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge):
1085         (WebCore::WorkerThreadableLoader::MainThreadBridge::destroy):
1086         (WebCore::WorkerThreadableLoader::MainThreadBridge::cancel):
1087         * page/GeolocationPositionCache.cpp:
1088         (WebCore::GeolocationPositionCache::triggerReadFromDatabase):
1089         (WebCore::GeolocationPositionCache::triggerWriteToDatabase):
1090         * platform/CrossThreadCopier.h:
1091         (WebCore::AllowCrossThreadAccessWrapper::AllowCrossThreadAccessWrapper):
1092         (WebCore::AllowCrossThreadAccessWrapper::value):
1093         (WebCore::AllowCrossThreadAccess):
1094         (WebCore::AllowExtendedLifetimeWrapper::AllowExtendedLifetimeWrapper):
1095         (WebCore::AllowExtendedLifetimeWrapper::value):
1096         (WebCore::AllowExtendedLifetime):
1097         * platform/graphics/chromium/cc/CCCompletionEvent.h:
1098         * storage/IDBObjectStoreBackendImpl.cpp:
1099         (WebCore::IDBObjectStoreBackendImpl::get):
1100         (WebCore::IDBObjectStoreBackendImpl::put):
1101         (WebCore::IDBObjectStoreBackendImpl::deleteFunction):
1102         (WebCore::IDBObjectStoreBackendImpl::clear):
1103         (WebCore::IDBObjectStoreBackendImpl::createIndex):
1104         (WebCore::IDBObjectStoreBackendImpl::deleteIndex):
1105         (WebCore::IDBObjectStoreBackendImpl::openCursor):
1106         * storage/SQLCallbackWrapper.h:
1107         (WebCore::SQLCallbackWrapper::clear):
1108         * websockets/WorkerThreadableWebSocketChannel.cpp:
1109         (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel):
1110         (WebCore::WorkerThreadableWebSocketChannel::Bridge::Bridge):
1111         (WebCore::WorkerThreadableWebSocketChannel::Bridge::connect):
1112         (WebCore::WorkerThreadableWebSocketChannel::Bridge::send):
1113         (WebCore::WorkerThreadableWebSocketChannel::Bridge::bufferedAmount):
1114         (WebCore::WorkerThreadableWebSocketChannel::Bridge::close):
1115         (WebCore::WorkerThreadableWebSocketChannel::Bridge::disconnect):
1116         (WebCore::WorkerThreadableWebSocketChannel::Bridge::suspend):
1117         (WebCore::WorkerThreadableWebSocketChannel::Bridge::resume):
1118         * workers/WorkerMessagingProxy.cpp:
1119         (WebCore::WorkerMessagingProxy::postConsoleMessageToWorkerObject):
1120
1121 2011-04-27  Adam Barth  <abarth@webkit.org>
1122
1123         Two build fixes from the future.  (Trivial strict OwnPtr fixes.)
1124
1125         * page/Frame.cpp:
1126         (WebCore::Frame::setTiledBackingStoreEnabled):
1127         * platform/audio/ReverbConvolver.cpp:
1128         (WebCore::ReverbConvolver::ReverbConvolver):
1129
1130 2011-04-27  Adam Barth  <abarth@webkit.org>
1131
1132         Reviewed by David Levin.
1133
1134         Fix five strict PassOwnPtr violations in WebCore
1135         https://bugs.webkit.org/show_bug.cgi?id=59640
1136
1137         * css/MediaList.cpp:
1138         (WebCore::MediaList::deleteMedium):
1139         (WebCore::MediaList::setMediaText):
1140         (WebCore::MediaList::appendMedium):
1141         * css/MediaQuery.h:
1142         * dom/MessagePort.cpp:
1143         (WebCore::MessagePort::disentanglePorts):
1144         (WebCore::MessagePort::entanglePorts):
1145         * inspector/InspectorStyleSheet.cpp:
1146         (ParsedStyleSheet::setText):
1147         * rendering/RenderTheme.cpp:
1148         (WebCore::RenderTheme::adjustStyle):
1149         (WebCore::RenderTheme::adjustMeterStyle):
1150         * rendering/RenderThemeMac.mm:
1151         (WebCore::RenderThemeMac::adjustMenuListStyle):
1152         (WebCore::RenderThemeMac::adjustSliderTrackStyle):
1153         (WebCore::RenderThemeMac::adjustSliderThumbStyle):
1154         (WebCore::RenderThemeMac::adjustSearchFieldStyle):
1155         (WebCore::RenderThemeMac::adjustSearchFieldCancelButtonStyle):
1156         (WebCore::RenderThemeMac::adjustSearchFieldDecorationStyle):
1157         (WebCore::RenderThemeMac::adjustSearchFieldResultsDecorationStyle):
1158         (WebCore::RenderThemeMac::adjustSearchFieldResultsButtonStyle):
1159
1160 2011-04-27  Chris Fleizach  <cfleizach@apple.com>
1161
1162         Reviewed by Beth Dakin.
1163
1164         <rdar://problem/9315254> ARIA role attribute implemented incorrectly; does not support token list with fallbacks
1165         https://bugs.webkit.org/show_bug.cgi?id=59648
1166
1167         Test: accessibility/aria-fallback-roles.html
1168
1169         * accessibility/AccessibilityObject.cpp:
1170         (WebCore::AccessibilityObject::ariaRoleToWebCoreRole):
1171
1172 2011-04-27  Beth Dakin  <bdakin@apple.com>
1173
1174         Reviewed by Dan Bernstein.
1175
1176         https://bugs.webkit.org/show_bug.cgi?id=59671
1177         Race condition with scrollbar animations and closing a page can cause a crash in 
1178         WebCore::FrameView::setVisibleScrollerThumbRect + 15
1179         -and corresponding-
1180         <rdar://problem/9329253>
1181
1182         It is definitely possible for Page to be null here. So we should null-check it! 
1183         And we should not ASSERT.
1184         * page/FrameView.cpp:
1185         (WebCore::FrameView::didCompleteRubberBand):
1186         (WebCore::FrameView::scrollbarStyleChanged):
1187         (WebCore::FrameView::setVisibleScrollerThumbRect):
1188
1189 2011-04-27  Ryosuke Niwa  <rniwa@webkit.org>
1190
1191         WinCE build fix after r85143.
1192
1193         * platform/graphics/wince/FontWinCE.cpp:
1194         (WebCore::TextRunComponent::TextRunComponent):
1195
1196 2011-04-27  Mark Pilgrim  <pilgrim@chromium.org>
1197
1198         Reviewed by Tony Chang.
1199
1200         IndexedDB object store delete should fail if key is null
1201         https://bugs.webkit.org/show_bug.cgi?id=58614
1202
1203         Test: storage/indexeddb/mozilla/key-requirements-delete-null-key.html
1204
1205         * storage/IDBObjectStoreBackendImpl.cpp:
1206         (WebCore::IDBObjectStoreBackendImpl::deleteFunction):
1207
1208 2011-04-27  Eric Seidel  <eric@webkit.org>
1209
1210         Reviewed by Ryosuke Niwa.
1211
1212         Should have an easy way to construct starting BidiStatus for a paragraph root
1213         https://bugs.webkit.org/show_bug.cgi?id=59226
1214
1215         Two places try to construct BidiStatuses for a paragraph root using copy/paste code.
1216         I've made this a constructor for BidiStatus instead.
1217
1218         As part of this effort I added a direction() accessor for TextRun and got
1219         rid of the old m_rtl bool.  This is part of the generic effort in the
1220         Bidi code to replace old bool usage with the superior TextDirection enum
1221         (this generally makes the code cleaner).
1222
1223         As part of this replacement effort I found several places which were
1224         assuming LTR (by passing rtl=false) when they probably want to use
1225         the current text direction.  I suspect that LTR vs. RTL may affect
1226         string width in the case of ligatures.  It's unclear.
1227
1228         This is almost entirely a mechanical change.
1229
1230         * html/canvas/CanvasRenderingContext2D.cpp:
1231         (WebCore::CanvasRenderingContext2D::drawTextInternal):
1232         * platform/graphics/GraphicsContext.cpp:
1233         (WebCore::GraphicsContext::drawBidiText):
1234         * platform/graphics/TextRun.h:
1235         (WebCore::TextRun::TextRun):
1236         (WebCore::TextRun::direction):
1237         (WebCore::TextRun::rtl):
1238         (WebCore::TextRun::ltr):
1239         (WebCore::TextRun::setDirection):
1240         * platform/text/BidiResolver.h:
1241         (WebCore::BidiStatus::BidiStatus):
1242         * rendering/EllipsisBox.cpp:
1243         (WebCore::EllipsisBox::paint):
1244         (WebCore::EllipsisBox::selectionRect):
1245         (WebCore::EllipsisBox::paintSelection):
1246         * rendering/InlineTextBox.cpp:
1247         (WebCore::InlineTextBox::selectionRect):
1248         (WebCore::InlineTextBox::paint):
1249         (WebCore::InlineTextBox::paintSelection):
1250         (WebCore::InlineTextBox::paintCompositionBackground):
1251         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
1252         (WebCore::InlineTextBox::paintTextMatchMarker):
1253         (WebCore::InlineTextBox::computeRectForReplacementMarker):
1254         (WebCore::InlineTextBox::offsetForPosition):
1255         (WebCore::InlineTextBox::positionForOffset):
1256         * rendering/RenderBlockLineLayout.cpp:
1257         (WebCore::RenderBlock::determineStartPosition):
1258         * rendering/RenderFileUploadControl.cpp:
1259         (WebCore::RenderFileUploadControl::paintObject):
1260         (WebCore::RenderFileUploadControl::computePreferredLogicalWidths):
1261         * rendering/RenderListBox.cpp:
1262         (WebCore::RenderListBox::updateFromElement):
1263         (WebCore::RenderListBox::paintItemForeground):
1264         * rendering/RenderTextControl.cpp:
1265         (WebCore::RenderTextControl::getAvgCharWidth):
1266         (WebCore::RenderTextControl::paintPlaceholder):
1267         * rendering/svg/SVGInlineTextBox.cpp:
1268         (WebCore::SVGInlineTextBox::constructTextRun):
1269         * rendering/svg/SVGTextMetrics.cpp:
1270         (WebCore::constructTextRun):
1271
1272 2011-04-27  Robert Hogan  <robert@webkit.org>
1273
1274         Reviewed by Adam Barth.
1275
1276         Allow shadowing of history object
1277         https://bugs.webkit.org/show_bug.cgi?id=55965
1278
1279         Tests: http/tests/history/cross-origin-replace-history-object-child.html
1280                http/tests/history/cross-origin-replace-history-object.html
1281
1282         * page/DOMWindow.idl:
1283
1284 2011-04-27  James Robinson  <jamesr@chromium.org>
1285
1286         Reviewed by Kenneth Russell.
1287
1288         [chromium] Ensure compositing layers are up to date before entering doComposite
1289         https://bugs.webkit.org/show_bug.cgi?id=59159
1290
1291         Adds some assertions to try to catch GraphicsLayer mutations at bad times (such as during
1292         GraphicsLayerClient::paintContents() implementations).
1293
1294         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
1295         (WebCore::GraphicsLayerChromium::updateLayerPreserves3D):
1296         * platform/graphics/chromium/LayerChromium.cpp:
1297         (WebCore::LayerChromium::LayerChromium):
1298         (WebCore::LayerChromium::~LayerChromium):
1299         * platform/graphics/chromium/LayerRendererChromium.cpp:
1300         (WebCore::LayerRendererChromium::updateLayers):
1301         * platform/graphics/chromium/LayerRendererChromium.h:
1302           Add a set of assertions that we aren't creating or destroying LayerChromiums during paintContents
1303
1304 2011-04-27  James Robinson  <jamesr@chromium.org>
1305
1306         Reviewed by Adam Barth.
1307
1308         Fix OwnPtr strict issues in chromium linux build
1309         https://bugs.webkit.org/show_bug.cgi?id=59664
1310
1311         * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
1312         (WebCore::ComplexTextController::getNormalizedTextRun):
1313         * platform/graphics/skia/ImageBufferSkia.cpp:
1314         (WebCore::ImageBuffer::ImageBuffer):
1315         * platform/graphics/skia/PlatformContextSkia.cpp:
1316         (WebCore::PlatformContextSkia::PlatformContextSkia):
1317
1318 2011-04-27  Chris Rogers  <crogers@google.com>
1319
1320         Reviewed by Kenneth Russell.
1321
1322         Make sure to set sample-rate of created AudioBus in AudioBus::createBySampleRateConverting()
1323         https://bugs.webkit.org/show_bug.cgi?id=59641
1324
1325         No new tests since audio API is not yet implemented.
1326
1327         * platform/audio/AudioBus.cpp:
1328         (WebCore::AudioBus::createBySampleRateConverting):
1329         (WebCore::AudioBus::createByMixingToMono):
1330
1331 2011-04-27  Geoffrey Garen  <ggaren@apple.com>
1332
1333         Motivated by Alexey Proskuryakov.
1334
1335         * bindings/scripts/CodeGeneratorJS.pm: Tried to make this comment more
1336         informative, since it confused Alexey and me.
1337
1338 2011-04-27  Geoffrey Garen  <ggaren@apple.com>
1339
1340         Reviewed by Sam Weinig.
1341
1342         Fixed a small leak related to CSSValues when deallocating a DOMWrapperWorld
1343         https://bugs.webkit.org/show_bug.cgi?id=59646
1344
1345         Made the cssValueRoots map per-world, instead of a global. When we deallocate
1346         a world, we need to clear all entries in the map for that world, since
1347         the finalizers that would otherwise clear those entries don't run. The
1348         simplest way to do this is just to make the world own the map.
1349         
1350         * bindings/js/DOMWrapperWorld.h:
1351         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
1352         (WebCore::JSCSSStyleDeclaration::getPropertyCSSValue):
1353         * bindings/js/JSCSSValueCustom.cpp:
1354         (WebCore::JSCSSValueOwner::isReachableFromOpaqueRoots):
1355         (WebCore::JSCSSValueOwner::finalize):
1356         * bindings/js/JSDOMBinding.h:
1357
1358 2011-04-27  Adam Barth  <abarth@webkit.org>
1359
1360         Reviewed by David Levin.
1361
1362         Fix OwnPtr issues in IndexedDB
1363         https://bugs.webkit.org/show_bug.cgi?id=59656
1364
1365         I didn't do an exhaustive review of this code, but I fixed the problems
1366         caught by turning on strict OwnPtr and all their antecedents.  This
1367         patch is entirely tighter bookkeeping.  There shouldn't be any actual
1368         behavior change.
1369
1370         * platform/leveldb/LevelDBDatabase.cpp:
1371         (WebCore::LevelDBDatabase::LevelDBDatabase):
1372         (WebCore::LevelDBDatabase::open):
1373         (WebCore::LevelDBDatabase::createIterator):
1374         * platform/leveldb/LevelDBDatabase.h:
1375         * platform/leveldb/LevelDBIterator.cpp:
1376         (WebCore::LevelDBIterator::LevelDBIterator):
1377         * platform/leveldb/LevelDBIterator.h:
1378         * storage/IDBLevelDBBackingStore.cpp:
1379         (WebCore::IDBLevelDBBackingStore::IDBLevelDBBackingStore):
1380         (WebCore::IDBLevelDBBackingStore::open):
1381         (WebCore::getNewDatabaseId):
1382         (WebCore::IDBLevelDBBackingStore::getObjectStores):
1383         (WebCore::getNewObjectStoreId):
1384         (WebCore::deleteRange):
1385         (WebCore::IDBLevelDBBackingStore::nextAutoIncrementNumber):
1386         (WebCore::IDBLevelDBBackingStore::forEachObjectStoreRecord):
1387         (WebCore::IDBLevelDBBackingStore::getIndexes):
1388         (WebCore::getNewIndexId):
1389         (WebCore::findGreatestKeyLessThan):
1390         (WebCore::IDBLevelDBBackingStore::getPrimaryKeyViaIndex):
1391         (WebCore::IDBLevelDBBackingStore::keyExistsInIndex):
1392         (WebCore::findLastIndexKeyEqualTo):
1393         * storage/IDBLevelDBBackingStore.h:
1394
1395 2011-04-19  MORITA Hajime  <morrita@google.com>
1396
1397         Reviewed by Tony Chang.
1398
1399         [Refactoring] DocumentMarkerController::MarkerMapVectorPair should be replaced with a list of some class.
1400         https://bugs.webkit.org/show_bug.cgi?id=58113
1401
1402         * Introduced RenderedDocumentMarker, a subclass of DocumentMarker.
1403         * Eliminated Vector<IntRect> and move the IntRect into RenderedDocumentMarker
1404         * Now MarkerMapVectorPair is no longer used.
1405         
1406         No new tests, No behavior change.
1407
1408         * GNUmakefile.list.am:
1409         * WebCore.gypi:
1410         * WebCore.pro:
1411         * WebCore.vcproj/WebCore.vcproj:
1412         * WebCore.xcodeproj/project.pbxproj:
1413         * dom/DocumentMarker.h:
1414         * dom/DocumentMarkerController.cpp:
1415         (WebCore::DocumentMarkerController::addMarker):
1416         (WebCore::DocumentMarkerController::copyMarkers):
1417         (WebCore::DocumentMarkerController::removeMarkers):
1418         (WebCore::DocumentMarkerController::markerContainingPoint):
1419         (WebCore::DocumentMarkerController::markersForNode):
1420         (WebCore::DocumentMarkerController::renderedRectsForMarkers):
1421         (WebCore::DocumentMarkerController::removeMarkersFromList):
1422         (WebCore::DocumentMarkerController::repaintMarkers):
1423         (WebCore::DocumentMarkerController::setRenderedRectForMarker):
1424         (WebCore::DocumentMarkerController::invalidateRenderedRectsForMarkersInRect):
1425         (WebCore::DocumentMarkerController::shiftMarkers):
1426         (WebCore::DocumentMarkerController::setMarkersActive):
1427         (WebCore::DocumentMarkerController::clearDescriptionOnMarkersIntersectingRange):
1428         (WebCore::DocumentMarkerController::showMarkers):
1429         * dom/DocumentMarkerController.h:
1430         * dom/RenderedDocumentMarker.h: Added.
1431         (WebCore::RenderedDocumentMarker::RenderedDocumentMarker):
1432         (WebCore::RenderedDocumentMarker::isRendered):
1433         (WebCore::RenderedDocumentMarker::contains):
1434         (WebCore::RenderedDocumentMarker::setRenderedRect):
1435         (WebCore::RenderedDocumentMarker::renderedRect):
1436         (WebCore::RenderedDocumentMarker::invalidate):
1437         (WebCore::RenderedDocumentMarker::invalidMarkerRect):
1438
1439 2011-04-27  James Robinson  <jamesr@chromium.org>
1440
1441         Unreviewed, rolling out r85112.
1442         http://trac.webkit.org/changeset/85112
1443         https://bugs.webkit.org/show_bug.cgi?id=59159
1444
1445         Broke mac compile
1446
1447         * page/FrameView.cpp:
1448         (WebCore::FrameView::updateCompositingLayers):
1449         * page/FrameView.h:
1450         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
1451         (WebCore::GraphicsLayerChromium::updateLayerPreserves3D):
1452         * platform/graphics/chromium/LayerChromium.cpp:
1453         (WebCore::LayerChromium::LayerChromium):
1454         (WebCore::LayerChromium::~LayerChromium):
1455         * platform/graphics/chromium/LayerRendererChromium.cpp:
1456         (WebCore::LayerRendererChromium::updateLayers):
1457         * platform/graphics/chromium/LayerRendererChromium.h:
1458
1459 2011-04-27  Mark Rowe  <mrowe@apple.com>
1460
1461         Build fix.
1462
1463         * WebCore.xcodeproj/project.pbxproj: Make RenderLayerCompositor.h accessbile to WebKit and WebKit2.
1464
1465 2011-04-27  Pratik Solanki  <psolanki@apple.com>
1466
1467         Unreviewed. Fix WinCE build. The include should be guarded inside USE(CFNETWORK).
1468
1469         * platform/network/ResourceHandleClient.h:
1470
1471 2011-04-27  James Robinson  <jamesr@chromium.org>
1472
1473         Reviewed by Kenneth Russell.
1474
1475         [chromium] Ensure compositing layers are up to date before entering doComposite
1476         https://bugs.webkit.org/show_bug.cgi?id=59159
1477
1478         Adds some assertions to try to catch GraphicsLayer mutations at bad times (such as during
1479         GraphicsLayerClient::paintContents() implementations).
1480
1481         * page/FrameView.cpp:
1482         (WebCore::FrameView::updateCompositingLayers):
1483             Add an optional CompositingUpdateType parameter.
1484         * page/FrameView.h:
1485         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
1486         (WebCore::GraphicsLayerChromium::updateLayerPreserves3D):
1487         * platform/graphics/chromium/LayerChromium.cpp:
1488         (WebCore::LayerChromium::LayerChromium):
1489         (WebCore::LayerChromium::~LayerChromium):
1490         * platform/graphics/chromium/LayerRendererChromium.cpp:
1491         (WebCore::LayerRendererChromium::updateLayers):
1492         * platform/graphics/chromium/LayerRendererChromium.h:
1493           Add a set of assertions that we aren't creating or destroying LayerChromiums during paintContents
1494         * rendering/RenderLayer.cpp:
1495         (WebCore::RenderLayer::dirtyZOrderLists):
1496         (WebCore::RenderLayer::updateCompositingAndLayerListsIfNeeded):
1497         * rendering/RenderLayerCompositor.cpp:
1498         (WebCore::RenderLayerCompositor::updateCompositingLayers):
1499         * rendering/RenderLayerCompositor.h:
1500           Fix a typo in CompositingUpdateType Pait->Paint
1501
1502 2011-04-27  Pratik Solanki  <psolanki@apple.com>
1503
1504         Reviewed by Antti Koivisto.
1505
1506         Part of WebCore should use CFNetwork-based loader on Mac
1507         https://bugs.webkit.org/show_bug.cgi?id=51836
1508
1509         Add willCacheResponse method when using CFNetwork on Mac. Also put appropriate ifdefs around
1510         willCacheResponse/shouldCacheResponse.
1511
1512         * loader/EmptyClients.h:
1513         * loader/FrameLoaderClient.h:
1514         * loader/ResourceLoader.h:
1515         * loader/cf/ResourceLoaderCFNet.cpp:
1516         * loader/mac/ResourceLoaderMac.mm:
1517         (WebCore::ResourceLoader::willCacheResponse):
1518         * platform/network/ResourceHandleClient.h:
1519         (WebCore::ResourceHandleClient::willCacheResponse):
1520         (WebCore::ResourceHandleClient::shouldCacheResponse):
1521         * platform/network/cf/ResourceHandleCFNet.cpp:
1522         (WebCore::willCacheResponse):
1523
1524 2011-04-27  Ilya Tikhonovsky  <loislo@chromium.org>
1525
1526         Reviewed by Brian Weinstein.
1527
1528         Web Inspector: Stop on Exception state does not persist.
1529
1530         A wrong property name was used when we persist PauseOnExceptionState property to Local Storage.
1531         https://bugs.webkit.org/show_bug.cgi?id=59630
1532
1533         * inspector/front-end/ScriptsPanel.js:
1534         (WebInspector.ScriptsPanel.prototype._debuggerWasEnabled):
1535         (WebInspector.ScriptsPanel.prototype._setPauseOnExceptions.callback):
1536         (WebInspector.ScriptsPanel.prototype._setPauseOnExceptions):
1537
1538 2011-04-27  Adrienne Walker  <enne@google.com>
1539
1540         [chromium] Unreviewed, rollout r85075 (scissor rect changes)
1541         https://bugs.webkit.org/show_bug.cgi?id=59020
1542
1543         * platform/graphics/chromium/LayerRendererChromium.cpp:
1544         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
1545
1546 2011-04-27  Darin Adler  <darin@apple.com>
1547
1548         Reviewed by David Levin.
1549
1550         Fix strict OwnPtr issues seen in about 30 more files
1551         https://bugs.webkit.org/show_bug.cgi?id=59615
1552
1553         * bindings/js/JSCallbackData.h:
1554         (WebCore::DeleteCallbackDataTask::create): Use adoptPtr.
1555         * bindings/js/JSMessageEventCustom.cpp:
1556         (WebCore::JSMessageEvent::initMessageEvent): Use adoptPtr.
1557         * css/CSSParser.cpp:
1558         (WebCore::CSSParser::updateSpecifiersWithElementName): Use OwnPtr,
1559         adoptPtr, and release.
1560         * dom/MessageEvent.cpp:
1561         (WebCore::MessageEvent::initMessageEvent): Use OwnPtr, adoptPtr,
1562         and release.
1563         * dom/MessagePortChannel.cpp:
1564         (WebCore::MessagePortChannel::EventData::create): Use adoptPtr.
1565         * dom/ScriptExecutionContext.cpp:
1566         (WebCore::ProcessMessagesSoonTask::create): Use adoptPtr.
1567         * dom/XMLDocumentParserLibxml2.cpp:
1568         (WebCore::XMLDocumentParser::doEnd): Use adoptPtr.
1569         * dom/default/PlatformMessagePortChannel.cpp:
1570         (WebCore::MessagePortChannel::create): Use adoptPtr.
1571         * html/HTMLFormControlElement.cpp:
1572         (WebCore::HTMLFormControlElement::detach): Use nullptr.
1573         * inspector/InspectorAgent.cpp:
1574         (WebCore::PostWorkerNotificationToFrontendTask::create): Use adoptPtr.
1575         * inspector/InspectorConsoleAgent.cpp:
1576         (WebCore::InspectorConsoleAgent::addMessageToConsole): Use adoptPtr.
1577         (WebCore::InspectorConsoleAgent::didReceiveResponse): Use adoptPtr.
1578         (WebCore::InspectorConsoleAgent::didFailLoading): Use adoptPtr.
1579         * inspector/InspectorController.cpp:
1580         (WebCore::InspectorController::connectFrontend): Use adoptPtr.
1581         * inspector/InspectorDOMAgent.cpp:
1582         (WebCore::InspectorDOMAgent::didInvalidateStyleAttr): Use adoptPtr.
1583         * inspector/InspectorResourceAgent.cpp:
1584         (WebCore::InspectorResourceAgent::InspectorResourceAgent): Use adoptPtr.
1585         * page/FrameActionScheduler.cpp:
1586         (WebCore::FrameActionScheduler::scheduleEvent): Use adoptPtr.
1587         * platform/graphics/ShadowBlur.cpp:
1588         (WebCore::ScratchBuffer::clearScratchBuffer): Use nullptr.
1589         * platform/graphics/ca/GraphicsLayerCA.cpp:
1590         (WebCore::GraphicsLayer::create): Use adoptPtr.
1591         (WebCore::GraphicsLayerCA::ensureCloneLayers): Use adoptPtr.
1592         (WebCore::GraphicsLayerCA::removeCloneLayers): Use nullptr.
1593         * rendering/RenderBlock.cpp:
1594         (WebCore::RenderBlock::setMaxMarginBeforeValues): Use adoptPtr.
1595         (WebCore::RenderBlock::setMaxMarginAfterValues): Use adoptPtr.
1596         (WebCore::RenderBlock::setPaginationStrut): Use adoptPtr.
1597         (WebCore::RenderBlock::setPageLogicalOffset): Use adoptPtr.
1598         * rendering/RenderLayerBacking.cpp:
1599         (WebCore::RenderLayerBacking::destroyGraphicsLayer): Use nullptr.
1600         (WebCore::RenderLayerBacking::updateClippingLayers): Use nullptr.
1601         (WebCore::RenderLayerBacking::updateForegroundLayer): Use nullptr.
1602         (WebCore::RenderLayerBacking::updateMaskLayer): Use nullptr.
1603         * rendering/RenderLayerCompositor.cpp:
1604         (WebCore::RenderLayerCompositor::updateOverflowControlsLayers): Use nullptr.
1605         (WebCore::RenderLayerCompositor::ensureRootPlatformLayer): Use nullptr.
1606         (WebCore::RenderLayerCompositor::destroyRootPlatformLayer): Use nullptr.
1607         * rendering/style/StyleRareNonInheritedData.cpp:
1608         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): Removed
1609         explicit initializations of OwnPtr members to 0. Use adoptPtr.
1610         * workers/SharedWorkerContext.cpp:
1611         (WebCore::createConnectEvent): Use adoptPtr.
1612         * workers/Worker.cpp:
1613         (WebCore::Worker::notifyFinished): Use nullptr.
1614
1615 2011-04-27  Enrica Casucci  <enrica@apple.com>
1616
1617         Reviewed by Darin Adler.
1618
1619         REGRESSION (r84311): Copy should preserve background color if specified in the body only if the entire content is selected.
1620         https://bugs.webkit.org/show_bug.cgi?id=59251
1621         <rdar://problem/9327044>
1622
1623         When we are looking for wrapping elements that are presentational, we should
1624         include elements that have a non transparent background color only if they
1625         are not blocks.
1626
1627         Test: editing/pasteboard/do-not-copy-body-color.html
1628
1629         * editing/markup.cpp:
1630         (WebCore::isElementPresentational):
1631
1632 2011-04-20  Dimitri Glazkov  <dglazkov@chromium.org>
1633
1634         Reviewed by Antti Koivisto.
1635
1636         Teach sub-selector chains about shadow descendants
1637         https://bugs.webkit.org/show_bug.cgi?id=58342
1638
1639         The primary change is to the logic of parsing specifiers:
1640         1) The shadow descendant selectors (those specifiers that are unknown
1641         pseudo element selectors) are always kept at the top of the chain.
1642         2) The sub-selectors after shadow descendant selectors are stashed right
1643         behind the sub-selector, but not at the end of the chain.
1644         3) Other sub-selectors are appended at the end of the chain.
1645
1646         * css/CSSGrammar.y: Changed specifier_list collection to use new
1647             CSSParser::updateSpecifier helper.
1648         * css/CSSParser.cpp:
1649         (WebCore::CSSParser::updateSpecifiersWithElementName): Added logic to
1650             look for the last ShadowDescendant relation in the chain of selectors,
1651             because the next selector after it is the one that should get the
1652             element name.
1653         (WebCore::CSSParser::updateSpecifiers): Moved and modified the logic from
1654             CSSGrammar.y. The new logic adjusts the selector chain to allow
1655             shadow descendant selectors have sub-selectors (and have multiple shadow
1656             descendants in the chain).
1657         * css/CSSParser.h: Added decl.
1658         * css/CSSParserValues.cpp:
1659         (WebCore::CSSParserSelector::insertTagHistory): Added.
1660         (WebCore::CSSParserSelector::appendTagHistory): Aded.
1661         * css/CSSParserValues.h: Added decls.
1662         * css/CSSStyleSelector.cpp:
1663         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Added
1664             shadow descendant selector match check, since now there could be many
1665             of them in the selector chain.
1666
1667 2011-04-20  Adrienne Walker  <enne@google.com>
1668
1669         Reviewed by Kenneth Russell.
1670
1671         [chromium] Fix incorrect scissor rect for layers that render into a rendersurface
1672         https://bugs.webkit.org/show_bug.cgi?id=59020
1673
1674         mapRect is the incorrect transform here.  The parent scissor rect
1675         needs to be projected into layer space instead.
1676
1677         Test: compositing/flat-with-transformed-child.html
1678
1679         * platform/graphics/chromium/LayerRendererChromium.cpp:
1680         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
1681
1682 2011-04-27  Pratik Solanki  <psolanki@apple.com>
1683
1684         Reviewed by Antti Koivisto.
1685
1686         Part of WebCore should use CFNetwork-based loader on Mac
1687         https://bugs.webkit.org/show_bug.cgi?id=51836
1688
1689         * Configurations/WebCore.xcconfig: Add location of CFNetwork.framework.
1690         * platform/mac/SoftLinking.h:
1691         * platform/network/cf/CookieJarCFNet.cpp: Soft-link in CFNetwork functions on Mac.
1692
1693 2011-04-27  Nikolas Zimmermann  <nzimmermann@rim.com>
1694
1695         Reviewed by Antti Koivisto.
1696
1697         Cleanup CSSStyleApplyProperty.cpp
1698         https://bugs.webkit.org/show_bug.cgi?id=59623
1699
1700         As first step remove ApplyPropertyColorBase, merge it with ApplyPropertyColor, there's no need for two seperated classes.
1701         Use typedefs instead of repating the function pointer declarations in a few places.
1702
1703         * css/CSSStyleApplyProperty.cpp:
1704         (WebCore::ApplyPropertyDefault::ApplyPropertyDefault):
1705         (WebCore::ApplyPropertyColor::ApplyPropertyColor):
1706         (WebCore::ApplyPropertyColor::applyInheritValue):
1707         (WebCore::ApplyPropertyColor::applyInitialValue):
1708         (WebCore::ApplyPropertyColor::applyValue):
1709         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
1710
1711 2011-04-27  Dan Bernstein  <mitz@apple.com>
1712
1713         Reviewed by Anders Carlsson.
1714
1715         <rdar://problem/9335973> REGRESSION (r84341): Buttons in the Mac App store are rendered incorrectly
1716         https://bugs.webkit.org/show_bug.cgi?id=59622
1717
1718         Test: fast/borders/border-image-trumps-radius.html
1719
1720         * rendering/RenderBox.cpp:
1721         (WebCore::RenderBox::determineBackgroundBleedAvoidance): If there is a renderable, loaded border
1722         image, then border radius is ignored, so no bleed avoidance is needed.
1723         * rendering/RenderObject.cpp:
1724         (WebCore::RenderObject::borderImageIsLoadedAndCanBeRendered): Added. Moved some logic here from...
1725         (WebCore::RenderObject::mustRepaintBackgroundOrBorder): ...here.
1726         * rendering/RenderObject.h:
1727
1728 2011-02-03  Martin Robinson  <mrobinson@igalia.com>
1729
1730         Reviewed by Xan Lopez.
1731
1732         [GTK] editing/pasteboard/copy-standalone-image.html fails
1733         https://bugs.webkit.org/show_bug.cgi?id=53645
1734
1735         When writing an image to the clipboard, also write the URL and title
1736         into the markup and URL portion. This change also abstracts a helper
1737         imageToMarkup into markup.{cpp/h} from several different locations
1738         throughout the platform layer.
1739
1740         * editing/markup.h: Added new function definition.
1741         * editing/markup.cpp:
1742         (WebCore::imageToMarkup): Add this function which turns an image URL 
1743         and element into some markup representing that image, while preserving
1744         non-src attributes.
1745         * platform/chromium/ClipboardChromium.cpp: Move the imageToMarkup helper
1746         to markup.cpp.
1747         * platform/gtk/PasteboardGtk.cpp:
1748         (WebCore::getURLForImageNode): Add this helper which gets the appropriate
1749         image URL for a variety of image tag types.
1750         (WebCore::Pasteboard::writeImage): Write the image URL and title to the
1751         markup and URL portions of the clipboard. This will ensure that images
1752         paste properly back into WebKit.
1753         * platform/win/ClipboardWin.cpp: Remove the imageToMarkup helper and the
1754         one from markup.h
1755
1756 2011-04-27  Steve Block  <steveblock@google.com>
1757
1758         Reviewed by David Levin.
1759
1760         Remove Android build system
1761         https://bugs.webkit.org/show_bug.cgi?id=48111
1762
1763         This is to avoid the maintenance burden until the Android port is
1764         fully upstreamed.
1765
1766         No new tests, build change only.
1767
1768         * Android.derived.jscbindings.mk: Removed.
1769         * Android.derived.mk: Removed.
1770         * Android.derived.v8bindings.mk: Removed.
1771         * Android.jscbindings.mk: Removed.
1772         * Android.mk: Removed.
1773         * Android.v8bindings.mk: Removed.
1774
1775 2011-04-27  Darin Adler  <darin@apple.com>
1776
1777         Reviewed by Sam Weinig.
1778
1779         Somehow about:blank gets into the icon database
1780         https://bugs.webkit.org/show_bug.cgi?id=58067
1781         rdar://problem/6751446
1782
1783         Implemented the policy Brady suggested, where only http and https URLs can
1784         be associated with and icon, guarding both on the way in to the database,
1785         and on the way out.
1786
1787         * loader/icon/IconDatabase.cpp:
1788         (WebCore::pageCanHaveIcon): Added.
1789         (WebCore::IconDatabase::synchronousIconForPageURL): Call pageCanHaveIcon
1790         instead of just checking for an empty URL.
1791         (WebCore::IconDatabase::synchronousIconURLForPageURL): Ditto.
1792         (WebCore::IconDatabase::retainIconForPageURL): Ditto.
1793         (WebCore::IconDatabase::releaseIconForPageURL): Ditto.
1794         (WebCore::IconDatabase::setIconURLForPageURL): Ditto.
1795         (WebCore::IconDatabase::getOrCreatePageURLRecord): Ditto.
1796         (WebCore::IconDatabase::importIconURLForPageURL): Broke assertion into
1797         two separate assertions and added a third.
1798         (WebCore::IconDatabase::performURLImport): Call pageCanHaveIcon.
1799
1800         * platform/KURL.cpp: Sorted includes. Moved a FIXME to the top of the file.
1801         (WebCore::isLetterMatchIgnoringCase): Renamed matchLetter to this name,
1802         overloaded it to work on both UChar and char, and added an assertion to it.
1803         Also moved this to the top of the file and made the UChar version usable
1804         in the shared code used even by Google.
1805         (WebCore::KURL::invalidate): Updated for name change.
1806         (WebCore::KURL::protocolIs): Use isLetterMatchIgnoringCase instead of
1807         toASCIILower since it's faster.
1808         (WebCore::KURL::parse): Updated for name changes.
1809         (WebCore::protocolIs):Use isLetterMatchIgnoringCase instead of toASCIILower
1810         since it's faster.
1811         (WebCore::protocolIsInHTTPFamily): Added.
1812
1813         * platform/KURL.h: Tweaked formatting. Renamed protocolInHTTPFamily
1814         to protocolIsInHTTPFamily and added a version that works on a string.
1815         Kept the old name as an inline function so we don't have to rename
1816         all the cal sites now.
1817
1818         * platform/KURLGoogle.cpp: Renamed as above.
1819         (WebCore::KURLGooglePrivate::KURLGooglePrivate): Updated for rename.
1820         (WebCore::KURLGooglePrivate::setUtf8): Ditto.
1821         (WebCore::KURLGooglePrivate::setAscii): Ditto.
1822         (WebCore::KURLGooglePrivate::initProtocolIsInHTTPFamily): Ditto.
1823         (WebCore::KURLGooglePrivate::copyTo): Ditto.
1824         (WebCore::KURL::KURL): Ditto.
1825         (WebCore::KURL::protocolIsInHTTPFamily): Ditto.
1826         (WebCore::KURL::invalidate): Ditto.
1827         * platform/KURLGooglePrivate.h: Ditto.
1828
1829         * WebCore.exp.in: Updated for above changes.
1830
1831 2011-04-27  Yury Semikhatsky  <yurys@chromium.org>
1832
1833         Reviewed by Pavel Feldman.
1834
1835         Web Inspector: browser crash on evaluation of 'throw undefined'
1836         https://bugs.webkit.org/show_bug.cgi?id=59611
1837
1838         Test: inspector/console/console-eval-throw-undefined.html
1839
1840         * inspector/InjectedScriptSource.js: use try/catch to protect from
1841         exception during conversion of another exception to string.
1842
1843 2011-04-27  Pavel Feldman  <pfeldman@google.com>
1844
1845         Reviewed by Yury Semikhatsky.
1846
1847         Web Inspector: clicking bookmarklet multiplies resources panel entries.
1848         https://bugs.webkit.org/show_bug.cgi?id=59590
1849
1850         * inspector/front-end/ResourceTreeModel.js:
1851         (WebInspector.ResourceTreeModel):
1852         (WebInspector.ResourceTreeModel.prototype._processCachedResources):
1853         (WebInspector.ResourceTreeModel.prototype._frameNavigated):
1854         * inspector/front-end/ResourcesPanel.js:
1855         (WebInspector.ResourcesPanel.prototype._populateResourceTree):
1856         (WebInspector.FrameTreeElement):
1857         (WebInspector.FrameTreeElement.prototype.appendResource):
1858         * inspector/front-end/inspector.js:
1859         (WebInspector.frontendReused):
1860
1861 2011-04-27  Pavel Feldman  <pfeldman@google.com>
1862
1863         Reviewed by Yury Semikhatsky.
1864
1865         Web Inspector: opening bookmarklet disconnects DOM agent.
1866         https://bugs.webkit.org/show_bug.cgi?id=59588
1867
1868         * inspector/InspectorDOMAgent.cpp:
1869         (WebCore::InspectorDOMAgent::setDocument):
1870
1871 2011-04-27  Hans Wennborg  <hans@chromium.org>
1872
1873         Reviewed by Tony Gentilcore.
1874
1875         IndexedDB: Fix compiler warnings about uninitialized variables
1876         https://bugs.webkit.org/show_bug.cgi?id=59599
1877
1878         Build fix. No new tests.
1879
1880         * storage/IDBLevelDBBackingStore.cpp:
1881         (WebCore::getNewObjectStoreId):
1882         (WebCore::getNewIndexId):
1883
1884 2011-04-26  Hans Wennborg  <hans@chromium.org>
1885
1886         Reviewed by Tony Gentilcore.
1887
1888         IndexedDB: Move LevelDB key coding routines to separate file
1889         https://bugs.webkit.org/show_bug.cgi?id=59452
1890
1891         Move all routines concerned with encoding, decoding and comparison of
1892         LevelDB keys from IDBLevelDBBackingStore.cpp to a separate file:
1893         IDBLevelDBCoding.cpp.
1894
1895         This makes IDBLevelDBBackingStore.cpp easier to work with, and will
1896         allow for unit testing of the coding routines.
1897
1898         No new functionality, no new tests.
1899
1900         * WebCore.gypi:
1901         * storage/IDBLevelDBBackingStore.cpp:
1902         (WebCore::getInt):
1903         (WebCore::putInt):
1904         (WebCore::getString):
1905         (WebCore::putString):
1906         (WebCore::compareKeys):
1907         (WebCore::compareIndexKeys):
1908         (WebCore::Comparator::compare):
1909         (WebCore::setUpMetadata):
1910         (WebCore::IDBLevelDBBackingStore::extractIDBDatabaseMetaData):
1911         (WebCore::getNewDatabaseId):
1912         (WebCore::IDBLevelDBBackingStore::setIDBDatabaseMetaData):
1913         (WebCore::IDBLevelDBBackingStore::getObjectStores):
1914         (WebCore::getNewObjectStoreId):
1915         (WebCore::IDBLevelDBBackingStore::createObjectStore):
1916         (WebCore::IDBLevelDBBackingStore::deleteObjectStore):
1917         (WebCore::IDBLevelDBBackingStore::getObjectStoreRecord):
1918         (WebCore::getNewVersionNumber):
1919         (WebCore::IDBLevelDBBackingStore::putObjectStoreRecord):
1920         (WebCore::IDBLevelDBBackingStore::clearObjectStore):
1921         (WebCore::IDBLevelDBBackingStore::deleteObjectStoreRecord):
1922         (WebCore::IDBLevelDBBackingStore::nextAutoIncrementNumber):
1923         (WebCore::IDBLevelDBBackingStore::keyExistsInObjectStore):
1924         (WebCore::IDBLevelDBBackingStore::forEachObjectStoreRecord):
1925         (WebCore::IDBLevelDBBackingStore::getIndexes):
1926         (WebCore::getNewIndexId):
1927         (WebCore::IDBLevelDBBackingStore::createIndex):
1928         (WebCore::IDBLevelDBBackingStore::putIndexDataForRecord):
1929         (WebCore::versionExists):
1930         (WebCore::IDBLevelDBBackingStore::getPrimaryKeyViaIndex):
1931         (WebCore::IDBLevelDBBackingStore::keyExistsInIndex):
1932         (WebCore::IDBLevelDBBackingStore::openObjectStoreCursor):
1933         (WebCore::IDBLevelDBBackingStore::openIndexKeyCursor):
1934         (WebCore::IDBLevelDBBackingStore::openIndexCursor):
1935         * storage/IDBLevelDBCoding.cpp: Added.
1936         (WebCore::IDBLevelDBCoding::encodeByte):
1937         (WebCore::IDBLevelDBCoding::maxIDBKey):
1938         (WebCore::IDBLevelDBCoding::minIDBKey):
1939         (WebCore::IDBLevelDBCoding::encodeInt):
1940         (WebCore::IDBLevelDBCoding::decodeInt):
1941         (WebCore::IDBLevelDBCoding::encodeVarInt):
1942         (WebCore::IDBLevelDBCoding::decodeVarInt):
1943         (WebCore::IDBLevelDBCoding::encodeString):
1944         (WebCore::IDBLevelDBCoding::decodeString):
1945         (WebCore::IDBLevelDBCoding::encodeStringWithLength):
1946         (WebCore::IDBLevelDBCoding::decodeStringWithLength):
1947         (WebCore::IDBLevelDBCoding::encodeDouble):
1948         (WebCore::IDBLevelDBCoding::decodeDouble):
1949         (WebCore::IDBLevelDBCoding::encodeIDBKey):
1950         (WebCore::IDBLevelDBCoding::decodeIDBKey):
1951         (WebCore::IDBLevelDBCoding::extractEncodedIDBKey):
1952         (WebCore::IDBLevelDBCoding::compareEncodedIDBKeys):
1953         (WebCore::IDBLevelDBCoding::compare):
1954         (WebCore::IDBLevelDBCoding::KeyPrefix::KeyPrefix):
1955         (WebCore::IDBLevelDBCoding::KeyPrefix::decode):
1956         (WebCore::IDBLevelDBCoding::KeyPrefix::encode):
1957         (WebCore::IDBLevelDBCoding::KeyPrefix::compare):
1958         (WebCore::IDBLevelDBCoding::KeyPrefix::type):
1959         (WebCore::IDBLevelDBCoding::SchemaVersionKey::encode):
1960         (WebCore::IDBLevelDBCoding::MaxDatabaseIdKey::encode):
1961         (WebCore::IDBLevelDBCoding::DatabaseFreeListKey::DatabaseFreeListKey):
1962         (WebCore::IDBLevelDBCoding::DatabaseFreeListKey::decode):
1963         (WebCore::IDBLevelDBCoding::DatabaseFreeListKey::encode):
1964         (WebCore::IDBLevelDBCoding::DatabaseFreeListKey::databaseId):
1965         (WebCore::IDBLevelDBCoding::DatabaseFreeListKey::compare):
1966         (WebCore::IDBLevelDBCoding::DatabaseNameKey::decode):
1967         (WebCore::IDBLevelDBCoding::DatabaseNameKey::encode):
1968         (WebCore::IDBLevelDBCoding::DatabaseNameKey::compare):
1969         (WebCore::IDBLevelDBCoding::DatabaseMetaDataKey::encode):
1970         (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::ObjectStoreMetaDataKey):
1971         (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::decode):
1972         (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::encode):
1973         (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::objectStoreId):
1974         (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::metaDataType):
1975         (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::compare):
1976         (WebCore::IDBLevelDBCoding::IndexMetaDataKey::IndexMetaDataKey):
1977         (WebCore::IDBLevelDBCoding::IndexMetaDataKey::decode):
1978         (WebCore::IDBLevelDBCoding::IndexMetaDataKey::encode):
1979         (WebCore::IDBLevelDBCoding::IndexMetaDataKey::compare):
1980         (WebCore::IDBLevelDBCoding::IndexMetaDataKey::indexId):
1981         (WebCore::IDBLevelDBCoding::ObjectStoreFreeListKey::ObjectStoreFreeListKey):
1982         (WebCore::IDBLevelDBCoding::ObjectStoreFreeListKey::decode):
1983         (WebCore::IDBLevelDBCoding::ObjectStoreFreeListKey::encode):
1984         (WebCore::IDBLevelDBCoding::ObjectStoreFreeListKey::objectStoreId):
1985         (WebCore::IDBLevelDBCoding::ObjectStoreFreeListKey::compare):
1986         (WebCore::IDBLevelDBCoding::IndexFreeListKey::IndexFreeListKey):
1987         (WebCore::IDBLevelDBCoding::IndexFreeListKey::decode):
1988         (WebCore::IDBLevelDBCoding::IndexFreeListKey::encode):
1989         (WebCore::IDBLevelDBCoding::IndexFreeListKey::compare):
1990         (WebCore::IDBLevelDBCoding::IndexFreeListKey::objectStoreId):
1991         (WebCore::IDBLevelDBCoding::IndexFreeListKey::indexId):
1992         (WebCore::IDBLevelDBCoding::ObjectStoreNamesKey::decode):
1993         (WebCore::IDBLevelDBCoding::ObjectStoreNamesKey::encode):
1994         (WebCore::IDBLevelDBCoding::ObjectStoreNamesKey::compare):
1995         (WebCore::IDBLevelDBCoding::IndexNamesKey::IndexNamesKey):
1996         (WebCore::IDBLevelDBCoding::IndexNamesKey::decode):
1997         (WebCore::IDBLevelDBCoding::IndexNamesKey::encode):
1998         (WebCore::IDBLevelDBCoding::IndexNamesKey::compare):
1999         (WebCore::IDBLevelDBCoding::ObjectStoreDataKey::decode):
2000         (WebCore::IDBLevelDBCoding::ObjectStoreDataKey::encode):
2001         (WebCore::IDBLevelDBCoding::ObjectStoreDataKey::compare):
2002         (WebCore::IDBLevelDBCoding::ObjectStoreDataKey::userKey):
2003         (WebCore::IDBLevelDBCoding::ExistsEntryKey::decode):
2004         (WebCore::IDBLevelDBCoding::ExistsEntryKey::encode):
2005         (WebCore::IDBLevelDBCoding::ExistsEntryKey::compare):
2006         (WebCore::IDBLevelDBCoding::ExistsEntryKey::userKey):
2007         (WebCore::IDBLevelDBCoding::IndexDataKey::IndexDataKey):
2008         (WebCore::IDBLevelDBCoding::IndexDataKey::decode):
2009         (WebCore::IDBLevelDBCoding::IndexDataKey::encode):
2010         (WebCore::IDBLevelDBCoding::IndexDataKey::encodeMaxKey):
2011         (WebCore::IDBLevelDBCoding::IndexDataKey::compare):
2012         (WebCore::IDBLevelDBCoding::IndexDataKey::databaseId):
2013         (WebCore::IDBLevelDBCoding::IndexDataKey::objectStoreId):
2014         (WebCore::IDBLevelDBCoding::IndexDataKey::indexId):
2015         (WebCore::IDBLevelDBCoding::IndexDataKey::userKey):
2016         * storage/IDBLevelDBCoding.h: Added.
2017         (WebCore::IDBLevelDBCoding::DatabaseNameKey::origin):
2018         (WebCore::IDBLevelDBCoding::DatabaseNameKey::databaseName):
2019         (WebCore::IDBLevelDBCoding::IndexMetaDataKey::metaDataType):
2020         (WebCore::IDBLevelDBCoding::ObjectStoreNamesKey::objectStoreName):
2021         (WebCore::IDBLevelDBCoding::IndexNamesKey::indexName):
2022
2023 2011-04-27  Yury Semikhatsky  <yurys@chromium.org>
2024
2025         Reviewed by Pavel Feldman.
2026
2027         Web Inspector: expose exception details when script is paused on exception
2028         https://bugs.webkit.org/show_bug.cgi?id=59591
2029
2030         When script is paused on an exception, the exception value is added as <exception>
2031         property in the local scope and the breakpoint details message says
2032         "Paused on excepion: '<exception to strin value>'."
2033
2034         * English.lproj/localizedStrings.js:
2035         * inspector/front-end/ScopeChainSidebarPane.js:
2036         (WebInspector.ScopeChainSidebarPane.prototype.update):
2037         * inspector/front-end/ScriptsPanel.js:
2038         (WebInspector.ScriptsPanel.prototype._debuggerPaused.else.didGetSourceLocation):
2039         (WebInspector.ScriptsPanel.prototype._debuggerPaused):
2040
2041 2011-04-26  Yury Semikhatsky  <yurys@chromium.org>
2042
2043         Reviewed by Pavel Feldman.
2044
2045         Web Inspector: [protocol] Paused event should expose exception value that caused it
2046         https://bugs.webkit.org/show_bug.cgi?id=58996
2047
2048         Debug.pause event now contains an optional reference to the exception
2049         object in case script execution is paused on a JavaScript exception.
2050
2051         Also JavaScript call frames are passed directly into the injected script when
2052         we need to wrap them for passing to the front-end. This change breaks cyclic
2053         dependency ScriptDebugServer->InspectorDebuggerAgent->InjectedScript->InjectedScriptHost->ScriptDebugServer
2054
2055         * bindings/js/JSInjectedScriptHostCustom.cpp:
2056         * bindings/js/ScriptDebugServer.cpp:
2057         (WebCore::ScriptDebugServer::dispatchDidPause):
2058         * bindings/js/ScriptDebugServer.h:
2059         * bindings/v8/ScriptDebugServer.cpp:
2060         (WebCore::ScriptDebugServer::breakProgram):
2061         (WebCore::ScriptDebugServer::editScriptSource):
2062         (WebCore::ScriptDebugServer::breakProgramCallback):
2063         (WebCore::ScriptDebugServer::handleV8DebugEvent):
2064         * bindings/v8/ScriptDebugServer.h:
2065         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
2066         * inspector/InjectedScript.cpp:
2067         (WebCore::InjectedScript::evaluateOnCallFrame):
2068         (WebCore::InjectedScript::wrapCallFrames):
2069         * inspector/InjectedScript.h:
2070         * inspector/InjectedScriptHost.cpp:
2071         * inspector/InjectedScriptHost.h:
2072         (WebCore::InjectedScriptHost::init):
2073         * inspector/InjectedScriptHost.idl:
2074         * inspector/InjectedScriptSource.js:
2075         (.):
2076         * inspector/Inspector.json:
2077         * inspector/InspectorAgent.cpp:
2078         (WebCore::InspectorAgent::InspectorAgent):
2079         * inspector/InspectorDebuggerAgent.cpp:
2080         (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
2081         (WebCore::InspectorDebuggerAgent::currentCallFrames):
2082         (WebCore::InspectorDebuggerAgent::wrapCallFrames):
2083         (WebCore::InspectorDebuggerAgent::didPause):
2084         (WebCore::InspectorDebuggerAgent::didContinue):
2085         (WebCore::InspectorDebuggerAgent::clear):
2086         * inspector/InspectorDebuggerAgent.h:
2087         * inspector/ScriptDebugListener.h:
2088         * inspector/WorkerInspectorController.cpp:
2089         (WebCore::WorkerInspectorController::WorkerInspectorController):
2090
2091 2011-04-27  Pavel Feldman  <pfeldman@google.com>
2092
2093         Reviewed by Yury Semikhatsky.
2094
2095         Web Inspector: implement incremental CSS editing in the structure view.
2096         https://bugs.webkit.org/show_bug.cgi?id=59455
2097
2098         * inspector/front-end/StylesSidebarPane.js:
2099         (WebInspector.StylePropertyTreeElement.prototype):
2100
2101 2011-04-27  Mihai Parparita  <mihaip@chromium.org>
2102
2103         Reviewed by Eric Seidel.
2104
2105         Frame.h shouldn't include Document.h
2106         https://bugs.webkit.org/show_bug.cgi?id=59560
2107
2108         Frame can use a forward-declared Document if we move
2109         Frame::displayStringModifiedByEncoding's implementation out of the
2110         header.
2111                                 Size  #includes  Size * #includes
2112         Before: page/Frame.h:   0.746       653           487.138
2113                 dom/Document.h: 0.220      1306           287.320
2114         
2115         After:  page/Frame.h:   0.646       653           421.838
2116                 dom/Document.h: 0.220      1189           261.580
2117
2118         * WebCore.exp.in:
2119         * bindings/ScriptControllerBase.cpp:
2120         * bindings/generic/BindingSecurityBase.cpp:
2121         * bindings/v8/V8Proxy.cpp:
2122         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
2123         * dom/CharacterData.cpp:
2124         * dom/UserTypingGestureIndicator.cpp:
2125         * editing/chromium/SelectionControllerChromium.cpp:
2126         * inspector/InspectorDOMStorageResource.cpp:
2127         * inspector/InspectorInstrumentation.h:
2128         * loader/PingLoader.cpp:
2129         * loader/SubresourceLoader.cpp:
2130         * loader/appcache/DOMApplicationCache.cpp:
2131         * loader/cache/CachedResourceRequest.cpp:
2132         * page/Frame.cpp:
2133         (WebCore::Frame::displayStringModifiedByEncoding):
2134         * page/Frame.h:
2135         * page/Geolocation.cpp:
2136         * page/Location.cpp:
2137         * page/Navigator.cpp:
2138         * page/PageGroupLoadDeferrer.cpp:
2139         * page/PerformanceTiming.cpp:
2140         * xml/XSLTProcessorLibxslt.cpp:
2141
2142 2011-04-27  James Robinson  <jamesr@chromium.org>
2143
2144         Reviewed by Eric Seidel.
2145
2146         Fix OwnPtr strict errors in RenderStyle and make StyleRareInheritedData::textShadow an OwnPtr
2147         https://bugs.webkit.org/show_bug.cgi?id=59377
2148
2149         This cleans up some strict OwnPtr<> violations around text and box shadow data.  ShadowData's linked list data
2150         structure now uses OwnPtr<>s to manage memory - each entry in the list has ownership of the next ShadowData.
2151
2152         * css/CSSStyleSelector.cpp:
2153         (WebCore::CSSStyleSelector::applyProperty):
2154         * page/animation/AnimationBase.cpp:
2155         (WebCore::blendFunc):
2156         (WebCore::PropertyWrapperShadow::PropertyWrapperShadow):
2157         (WebCore::PropertyWrapperShadow::blend):
2158         * rendering/style/RenderStyle.cpp:
2159         (WebCore::RenderStyle::setTextShadow):
2160         (WebCore::RenderStyle::setBoxShadow):
2161         * rendering/style/RenderStyle.h:
2162         (WebCore::InheritedFlags::textShadow):
2163         * rendering/style/ShadowData.cpp:
2164         (WebCore::ShadowData::ShadowData):
2165         * rendering/style/ShadowData.h:
2166         (WebCore::ShadowData::ShadowData):
2167         (WebCore::ShadowData::next):
2168         (WebCore::ShadowData::setNext):
2169         * rendering/style/StyleRareInheritedData.cpp:
2170         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
2171         (WebCore::StyleRareInheritedData::~StyleRareInheritedData):
2172         * rendering/style/StyleRareInheritedData.h:
2173         * rendering/style/StyleRareNonInheritedData.cpp:
2174         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
2175
2176 2011-04-26  David Levin  <levin@chromium.org>
2177
2178         Reviewed by Eric Seidel.
2179
2180         Fix some strict PassOwnPtr issues in WebCore.
2181         https://bugs.webkit.org/show_bug.cgi?id=59563
2182
2183         * css/SVGCSSStyleSelector.cpp:
2184         (WebCore::CSSStyleSelector::applySVGProperty):
2185         * html/canvas/WebGLRenderingContext.cpp:
2186         (WebCore::WebGLRenderingContext::create):
2187         (WebCore::WebGLRenderingContext::~WebGLRenderingContext):
2188         * platform/text/TextCodecLatin1.cpp:
2189         (WebCore::newStreamingTextDecoderWindowsLatin1):
2190         * platform/text/TextCodecUTF16.cpp:
2191         (WebCore::newStreamingTextDecoderUTF16LE):
2192         (WebCore::newStreamingTextDecoderUTF16BE):
2193         * platform/text/TextCodecUserDefined.cpp:
2194         (WebCore::newStreamingTextDecoderUserDefined):
2195         * platform/text/mac/TextCodecMac.cpp:
2196         (WebCore::newTextCodecMac):
2197         * workers/Worker.cpp:
2198         (WebCore::Worker::notifyFinished):
2199
2200 2011-04-26  Justin Novosad  <junov@chromium.org>
2201
2202         Reviewed by Kenneth Russell.
2203
2204         [Chromium] Expose skia gpu canvas rendering as a runtime flag
2205         https://bugs.webkit.org/show_bug.cgi?id=58683
2206         Replace the SKIA_GPU compile flag by the pre-existing
2207         acceleratedDrawingEnabled flag. Most code changes are trivial:
2208         compile-time conditionals on SKIA_GPU were either replaced with
2209         a run-time check, or a compile time check on USE(SKIA) 
2210
2211         No new tests. Covered by existing tests.
2212
2213         * html/canvas/CanvasRenderingContext2D.cpp:
2214         (WebCore::CanvasRenderingContext2D::setGlobalCompositeOperation):
2215         * page/Page.cpp:
2216         (WebCore::Page::sharedGraphicsContext3D):
2217         Added check for the acceleratedDrawing flag.
2218         * platform/graphics/chromium/DrawingBufferChromium.cpp:
2219         (WebCore::DrawingBuffer::DrawingBuffer):
2220         (WebCore::DrawingBuffer::publishToPlatformLayer):
2221         * platform/graphics/gpu/DrawingBuffer.h:
2222         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
2223         (WebCore::SharedGraphicsContext3D::create):
2224         On Skia builds, this methos now receives a bool arg to turn on
2225         GPU-accelerated skia rendering
2226         (WebCore::SharedGraphicsContext3D::SharedGraphicsContext3D):
2227         (WebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D):
2228         (WebCore::SharedGraphicsContext3D::grContext):
2229         * platform/graphics/gpu/SharedGraphicsContext3D.h:
2230         * platform/graphics/skia/ImageSkia.cpp:
2231         (WebCore::computeResamplingMode):
2232         (WebCore::paintSkBitmap):
2233         (WebCore::Image::drawPattern):
2234         * platform/graphics/skia/PlatformContextSkia.cpp:
2235         (WebCore::PlatformContextSkia::PlatformContextSkia):
2236         (WebCore::PlatformContextSkia::~PlatformContextSkia):
2237         (WebCore::PlatformContextSkia::isNativeFontRenderingAllowed):
2238         (WebCore::PlatformContextSkia::setSharedGraphicsContext3D):
2239         (WebCore::PlatformContextSkia::prepareForSoftwareDraw):
2240         (WebCore::PlatformContextSkia::prepareForHardwareDraw):
2241         (WebCore::PlatformContextSkia::syncSoftwareCanvas):
2242         (WebCore::PlatformContextSkia::markDirtyRect):
2243         * platform/graphics/skia/PlatformContextSkia.h:
2244         (WebCore::PlatformContextSkia::accelerationMode):
2245         (WebCore::PlatformContextSkia::useGPU):
2246         (WebCore::PlatformContextSkia::useSkiaGPU):
2247
2248 2011-04-26  Pavel Feldman  <pfeldman@chromium.org>
2249
2250         Not reviewed: restore inspector test disabled in r84913.
2251
2252         Test: http/tests/inspector-enabled/dom-storage-open.html
2253
2254         * inspector/InspectorDOMStorageAgent.cpp:
2255         (WebCore::InspectorDOMStorageAgent::clearFrontend):
2256
2257 2011-04-26  Kenichi Ishibashi  <bashi@chromium.org>
2258
2259         Reviewed by Tony Chang.
2260
2261         [Chromium] Vertical positions are off for some Arabic glyphs on Linux
2262         https://bugs.webkit.org/show_bug.cgi?id=59182
2263
2264         Use vertical offsets of the shaping results.
2265
2266         Test: platform/chromium-linux/fast/text/international/arabic-vertical-offset.html
2267
2268         * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
2269         (WebCore::ComplexTextController::ComplexTextController):
2270         Added initialization of m_startingY.
2271         (WebCore::ComplexTextController::nextScriptRun):
2272         Followed the change in handling positions.
2273         (WebCore::ComplexTextController::deleteGlyphArrays): Ditto.
2274         (WebCore::ComplexTextController::createGlyphArrays): Ditto.
2275         (WebCore::ComplexTextController::resetGlyphArrays): Ditto.
2276         (WebCore::ComplexTextController::setGlyphPositions):
2277         Changed to use vertical offsets as same as horizontal offsets.
2278         * platform/graphics/chromium/ComplexTextControllerLinux.h:
2279         Removed m_xPositions and Added m_positions and m_startingY.
2280         (WebCore::ComplexTextController::positions): Added.
2281         * platform/graphics/chromium/FontLinux.cpp:
2282         Followed the change in ComplexTextController.
2283         (WebCore::Font::drawComplexText): Ditto.
2284         (WebCore::Font::floatWidthForComplexText): Ditto.
2285         (WebCore::glyphIndexForXPositionInScriptRun): Ditto.
2286         (WebCore::Font::offsetForPositionForComplexText): Ditto.
2287         (WebCore::Font::selectionRectForComplexText): Ditto.
2288
2289 2011-04-26  Levi Weintraub  <leviw@chromium.org>
2290
2291         Reviewed by Eric Seidel.
2292
2293         Root element should establish a new block formatting context
2294         https://bugs.webkit.org/show_bug.cgi?id=54573
2295
2296         Always expanding the root renderer to include overhanging floats.
2297
2298         Test: fast/block/float/float-overhangs-root.html
2299
2300         * rendering/RenderBlock.cpp:
2301         (WebCore::RenderBlock::expandsToEncloseOverhangingFloats):
2302
2303 2011-04-26  Dawit Alemayehu  <adawit@kde.org>
2304
2305         Reviewed by Andreas Kling.
2306
2307         [Qt] Improper rendering of <button> tag when it contains a <br>
2308         https://bugs.webkit.org/show_bug.cgi?id=50521
2309
2310         Test: platform/qt/fast/forms/button-line-break.html
2311
2312         * platform/qt/RenderThemeQt.cpp:
2313         (WebCore::RenderThemeQt::computeSizeBasedOnStyle):
2314         (WebCore::RenderThemeQt::setButtonPadding):
2315
2316 2011-04-26  James Robinson  <jamesr@chromium.org>
2317
2318         Reviewed by Kenneth Russell.
2319
2320         [chromium] Only reset tiles if the LayerRendererChromium is actually changing
2321         https://bugs.webkit.org/show_bug.cgi?id=59572
2322
2323         http://trac.webkit.org/changeset/84981/ caused us to reset the tiles
2324         when LayerRendererChromium was set.  We set this pointer every frame
2325         and should only reset the tiles if the new LayerRendererChromium is
2326         different from the old one (indicating a context loss), not just reset
2327         on every frame.
2328
2329         * platform/graphics/chromium/LayerTilerChromium.cpp:
2330         (WebCore::LayerTilerChromium::setLayerRenderer):
2331         * platform/graphics/chromium/LayerTilerChromium.h:
2332
2333 2011-04-26  Dinesh K Garg  <dineshg@codeaurora.org>
2334
2335         Reviewed by Eric Seidel.
2336
2337         beginElement broken by setAttribute
2338         https://bugs.webkit.org/show_bug.cgi?id=26019
2339
2340         Test: svg/animations/animate-beginElementAt.svg
2341
2342         * svg/SVGAnimationElement.cpp:
2343         (WebCore::SVGAnimationElement::attributeChanged):
2344         Reset the animation state here as the rest of the code reads it and would still
2345         think we are animating when we are not.
2346
2347         * svg/animation/SVGSMILElement.h:
2348         (WebCore::SVGSMILElement::setInactive): Helper function to reset the state.
2349
2350 2011-04-26  Sheriff Bot  <webkit.review.bot@gmail.com>
2351
2352         Unreviewed, rolling out r84989.
2353         http://trac.webkit.org/changeset/84989
2354         https://bugs.webkit.org/show_bug.cgi?id=59566
2355
2356         REGRESSION (r84989): Lots of vertical text tests failing on
2357         windows (Requested by weinig on #webkit).
2358
2359         * platform/graphics/FontPlatformData.h:
2360         * platform/graphics/win/FontCacheWin.cpp:
2361         (WebCore::FontCache::getFontDataForCharacters):
2362         (WebCore::FontCache::createFontPlatformData):
2363         * platform/graphics/win/FontCustomPlatformData.cpp:
2364         (WebCore::FontCustomPlatformData::fontPlatformData):
2365         * platform/graphics/win/FontPlatformDataCGWin.cpp:
2366         (WebCore::FontPlatformData::FontPlatformData):
2367         * platform/graphics/win/FontPlatformDataWin.cpp:
2368         (WebCore::FontPlatformData::FontPlatformData):
2369
2370 2011-04-26  Sam Weinig  <sam@webkit.org>
2371
2372         Reviewed by Eric Seidel.
2373
2374         Try again:
2375             Remove JSDOMWrapperWithGlobalPointer now that all JSDOMWrappers have global objects
2376             https://bugs.webkit.org/show_bug.cgi?id=59310
2377
2378         * bindings/js/JSDOMBinding.h:
2379         (WebCore::DOMConstructorObject::DOMConstructorObject):
2380         * bindings/js/JSDOMWrapper.h:
2381         (WebCore::JSDOMWrapper::globalObject):
2382         (WebCore::JSDOMWrapper::scriptExecutionContext):
2383         (WebCore::JSDOMWrapper::createStructure):
2384         (WebCore::JSDOMWrapper::JSDOMWrapper):
2385         * bindings/scripts/CodeGeneratorJS.pm:
2386
2387 2011-04-26  Sam Weinig  <sam@webkit.org>
2388
2389         Reviewed by David Hyatt.
2390
2391         Remove Datagrid from the tree
2392         https://bugs.webkit.org/show_bug.cgi?id=59543
2393
2394         * Android.derived.jscbindings.mk:
2395         * Android.derived.v8bindings.mk:
2396         * Android.jscbindings.mk:
2397         * Android.v8bindings.mk:
2398         * CMakeLists.txt:
2399         * CodeGenerators.pri:
2400         * Configurations/FeatureDefines.xcconfig:
2401         * DerivedSources.cpp:
2402         * DerivedSources.make:
2403         * GNUmakefile.am:
2404         * GNUmakefile.list.am:
2405         * UseJSC.cmake:
2406         * WebCore.gypi:
2407         * WebCore.pro:
2408         * WebCore.vcproj/WebCore.vcproj:
2409         * WebCore.xcodeproj/project.pbxproj:
2410         * bindings/js/JSBindingsAllInOne.cpp:
2411         * bindings/js/JSDataGridColumnListCustom.cpp: Removed.
2412         * bindings/js/JSDataGridDataSource.cpp: Removed.
2413         * bindings/js/JSDataGridDataSource.h: Removed.
2414         * bindings/js/JSHTMLDataGridElementCustom.cpp: Removed.
2415         * bindings/v8/V8DataGridDataSource.cpp: Removed.
2416         * bindings/v8/V8DataGridDataSource.h: Removed.
2417         * bindings/v8/custom/V8DataGridColumnListCustom.cpp: Removed.
2418         * bindings/v8/custom/V8HTMLDataGridElementCustom.cpp: Removed.
2419         * css/CSSStyleSelector.cpp:
2420         * css/CSSStyleSelector.h:
2421         * css/html.css:
2422         (input, textarea, keygen, select, button, isindex):
2423         (select:disabled, keygen:disabled, optgroup:disabled, option:disabled):
2424         * editing/htmlediting.cpp:
2425         (WebCore::canHaveChildrenForEditing):
2426         * features.pri:
2427         * html/DOMDataGridDataSource.cpp: Removed.
2428         * html/DOMDataGridDataSource.h: Removed.
2429         * html/DataGridColumn.cpp: Removed.
2430         * html/DataGridColumn.h: Removed.
2431         * html/DataGridColumn.idl: Removed.
2432         * html/DataGridColumnList.cpp: Removed.
2433         * html/DataGridColumnList.h: Removed.
2434         * html/DataGridColumnList.idl: Removed.
2435         * html/DataGridDataSource.h: Removed.
2436         * html/HTMLDataGridCellElement.cpp: Removed.
2437         * html/HTMLDataGridCellElement.h: Removed.
2438         * html/HTMLDataGridCellElement.idl: Removed.
2439         * html/HTMLDataGridColElement.cpp: Removed.
2440         * html/HTMLDataGridColElement.h: Removed.
2441         * html/HTMLDataGridColElement.idl: Removed.
2442         * html/HTMLDataGridElement.cpp: Removed.
2443         * html/HTMLDataGridElement.h: Removed.
2444         * html/HTMLDataGridElement.idl: Removed.
2445         * html/HTMLDataGridRowElement.cpp: Removed.
2446         * html/HTMLDataGridRowElement.h: Removed.
2447         * html/HTMLDataGridRowElement.idl: Removed.
2448         * html/HTMLElement.cpp:
2449         (WebCore::HTMLElement::ieForbidsInsertHTML):
2450         * html/HTMLElementsAllInOne.cpp:
2451         * html/HTMLTagNames.in:
2452         * page/DOMWindow.idl:
2453         * rendering/RenderBox.cpp:
2454         (WebCore::RenderBox::sizesToIntrinsicLogicalWidth):
2455         * rendering/RenderDataGrid.cpp: Removed.
2456         * rendering/RenderDataGrid.h: Removed.
2457         * rendering/RenderingAllInOne.cpp:
2458
2459 2011-04-26  Chun-Lung Huang  <alvincl.huang@gmail.com>
2460
2461         Reviewed by Adele Peterson.
2462
2463         On WebKit (Windows), glyphs in vertical text tests are rotated 90
2464         degrees clockwise.  https://bugs.webkit.org/show_bug.cgi?id=48459
2465
2466         This platform dependent patch makes WebKit (Windows) show the
2467         vertical writing text correctly.  Job was done by adding a prefix '@'
2468         in front of the font family name (Windows Only). No new tests added.
2469         Some layout tests images:
2470         http://www.flickr.com/photos/burorly/sets/72157625585506341/
2471
2472         * platform/graphics/FontPlatformData.h:
2473         * platform/graphics/win/FontCacheWin.cpp:
2474         (WebCore::FontCache::getFontDataForCharacters):
2475         (WebCore::FontCache::createFontPlatformData):
2476         * platform/graphics/win/FontCustomPlatformData.cpp:
2477         (WebCore::FontCustomPlatformData::fontPlatformData):
2478         * platform/graphics/win/FontPlatformDataCGWin.cpp:
2479         (WebCore::FontPlatformData::FontPlatformData):
2480         * platform/graphics/win/FontPlatformDataWin.cpp:
2481         (WebCore::FontPlatformData::FontPlatformData):
2482
2483 2011-04-26  Jer Noble  <jer.noble@apple.com>
2484
2485         Reviewed by Brady Eidson.
2486
2487         HTML5 video fullscreen transition causes an audio stutter
2488         https://bugs.webkit.org/show_bug.cgi?id=59544
2489
2490         AVFoundation will momentarily stutter when you disconnect a AVPlayerLayer 
2491         from its AVPlayer.  Since you shouldn't necessarily have to destroy the
2492         layer to render it invisible, instead just set the layer as hidden.
2493
2494         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
2495         (WebCore::MediaPlayerPrivateAVFoundation::setVisible): Call through to platformSetVisible().
2496         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
2497         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationObjC.h:
2498         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationObjC.mm:
2499         (WebCore::MediaPlayerPrivateAVFoundationObjC::platformSetVisible): Added.
2500
2501 2011-04-26  Christian Dywan  <christian@lanedo.com>
2502
2503         Reviewed by Eric Seidel.
2504
2505         Extra separator after Select All in context menu
2506         https://bugs.webkit.org/show_bug.cgi?id=54092
2507
2508         * page/ContextMenuController.cpp: Move separator to non-GTK+
2509             port guards since it is for the spelling options menu
2510             which the GTK+ port doesn't use.
2511
2512 2011-04-26  James Robinson  <jamesr@chromium.org>
2513
2514         Reviewed by Kenneth Russell.
2515
2516         [chromium] Clear out LayerTilerChromium's tiles on lost context
2517         https://bugs.webkit.org/show_bug.cgi?id=59233
2518
2519         Clears out the LayerTilerChromium's tile set when the LayerRendererChromium is reset.  In this case the tiles are
2520         no longer valid since they exist in the previous LayerRendererChromium.
2521
2522         Will be tested by a chrome test since we don't have any way to exercise the context lost case in layout tests.
2523
2524         * platform/graphics/chromium/LayerTilerChromium.h:
2525         (WebCore::LayerTilerChromium::setLayerRenderer):
2526
2527 2011-04-26  Martin Robinson  <mrobinson@igalia.com>
2528
2529         Reviewed by Dirk Schulze.
2530
2531         [GTK] Flash in divs with overflow: auto is not positioned and clipped properly
2532         https://bugs.webkit.org/show_bug.cgi?id=57644
2533
2534         Manual test: plugins/windowed-in-iframe-2.html
2535
2536         * manual-tests/plugins/windowed-in-iframe-2.html: Added.
2537         * platform/gtk/WidgetGtk.cpp:
2538         (WebCore::Widget::setFrameRect): Like the Qt port, we notify the widget via frameRectsChanged.
2539         * plugins/PluginView.h: Added helper method to set the allocation and clip.
2540         * plugins/gtk/PluginViewGtk.cpp:
2541         (WebCore::PluginView::setNPWindowIfNeeded):Call the helper method instead of setting
2542         the allocation immediately. Bring this method into sync with the implementation in
2543         the Qt port.
2544         (WebCore::PluginView::updateWidgetAllocationAndClip): Added.
2545         (WebCore::PluginView::plugAddedCallback): Call the new helper method.
2546
2547 2011-04-26  Martin Robinson  <mrobinson@igalia.com>
2548
2549         Reviewed by Eric Seidel.
2550
2551         [GTK]  fast/block/float/overhanging-tall-block.html crashes in the bots
2552         https://bugs.webkit.org/show_bug.cgi?id=58818
2553
2554         Prevent allocating scratch buffers larger than the target GdkDrawable
2555         when creating a WidgetRenderingContext. This prevents incredibly large
2556         widgets from crashing the X Server. This change also allowed greatly
2557         simplifying the way that the painting offset is calculated.
2558
2559         * platform/gtk/WidgetRenderingContext.cpp:
2560         (WebCore::WidgetRenderingContext::WidgetRenderingContext): Never allocate a pixmap
2561         larger than the target GdkDrawable.
2562         (WebCore::WidgetRenderingContext::~WidgetRenderingContext): Calculate the offset of the
2563         blit by looking at the location of the target rect itself, rather than delaying the
2564         calculation up to this point.
2565         (WebCore::WidgetRenderingContext::calculateClipRect): Added.
2566         (WebCore::WidgetRenderingContext::gtkPaintBox): Use the new calculateClipRectHelper.
2567         (WebCore::WidgetRenderingContext::gtkPaintFlatBox): Ditto.
2568         (WebCore::WidgetRenderingContext::gtkPaintFocus): Ditto.
2569         (WebCore::WidgetRenderingContext::gtkPaintSlider): Ditto.
2570         (WebCore::WidgetRenderingContext::gtkPaintCheck): Ditto.
2571         (WebCore::WidgetRenderingContext::gtkPaintOption): Ditto.
2572         (WebCore::WidgetRenderingContext::gtkPaintShadow): Ditto.
2573         (WebCore::WidgetRenderingContext::gtkPaintArrow): Ditto.
2574         (WebCore::WidgetRenderingContext::gtkPaintVLine): Ditto.
2575         * platform/gtk/WidgetRenderingContext.h: Remove some now unused members. Add
2576         a member to store the IntSize mapping from the coordinates of the target to the coordinates
2577         of the scratch buffer.
2578
2579 2011-04-26  Patrick Gansterer  <paroga@webkit.org>
2580
2581         Reviewed by Adam Barth.
2582
2583         Respect charset in handleDataURL
2584         https://bugs.webkit.org/show_bug.cgi?id=47746
2585
2586         Original patch by Kwang Yul Seo <skyul@company100.net>
2587
2588         We must use TextEncoding(charset) to encode data URL again. Otherwise TextEncoding::encode()
2589         returns an empty string because encoding name is not specified.
2590
2591         Also use "US-ASCII" as fallback charset as extractCharsetFromMediaType can be empty.
2592
2593         This change fixes over 130 layout tests when running GTK port with cURL network backend.
2594
2595         * platform/network/DataURL.cpp:
2596         (WebCore::handleDataURL):
2597
2598 2011-04-26  Anders Carlsson  <andersca@apple.com>
2599
2600         Fix clang++ build.
2601
2602         You can never have too many casts!
2603
2604         * accessibility/mac/AccessibilityObjectWrapper.mm:
2605         (-[AccessibilityObjectWrapper position]):
2606         * editing/mac/SelectionControllerMac.mm:
2607         (WebCore::accessibilityConvertScreenRect):
2608
2609 2011-04-26  Chris Rogers  <crogers@google.com>
2610
2611         Reviewed by Kenneth Russell.
2612
2613         Fix web audio build on mac port
2614         https://bugs.webkit.org/show_bug.cgi?id=59355
2615
2616         No new tests since audio API is not yet implemented.
2617
2618         * WebCore.xcodeproj/project.pbxproj:
2619         * bindings/js/JSAudioContextCustom.cpp:
2620         (WebCore::JSAudioContext::visitChildren):
2621         * bindings/js/JSJavaScriptAudioNodeCustom.cpp:
2622         (WebCore::JSJavaScriptAudioNode::visitChildren):
2623         * webaudio/AudioContext.idl:
2624
2625 2011-04-26  Chris Rogers  <crogers@google.com>
2626
2627         Reviewed by Kenneth Russell.
2628
2629         Add FFTFrame implementation for FFmpeg
2630         https://bugs.webkit.org/show_bug.cgi?id=59408
2631
2632         No new tests since audio API is not yet implemented.
2633
2634         * WebCore.gyp/WebCore.gyp:
2635         * WebCore.gypi:
2636         * platform/audio/FFTFrame.h:
2637         * platform/audio/FFTFrameStub.cpp:
2638         * platform/audio/ffmpeg: Added.
2639         * platform/audio/ffmpeg/FFTFrameFFMPEG.cpp: Added.
2640         (WebCore::FFTFrame::FFTFrame):
2641         (WebCore::FFTFrame::initialize):
2642         (WebCore::FFTFrame::cleanup):
2643         (WebCore::FFTFrame::~FFTFrame):
2644         (WebCore::FFTFrame::multiply):
2645         (WebCore::FFTFrame::doFFT):
2646         (WebCore::FFTFrame::doInverseFFT):
2647         (WebCore::FFTFrame::realData):
2648         (WebCore::FFTFrame::imagData):
2649         (WebCore::FFTFrame::getUpToDateComplexData):
2650         (WebCore::FFTFrame::contextForSize):
2651         * platform/audio/mac/FFTFrameMac.cpp:
2652         * webaudio/ConvolverNode.cpp:
2653
2654 2011-04-26  Jeff Miller  <jeffm@apple.com>
2655
2656         Add a newline at the end of SVGFEDropShadowElement.idl.
2657
2658         * svg/SVGFEDropShadowElement.idl:
2659
2660 2011-04-26  Mihai Parparita  <mihaip@chromium.org>
2661
2662         Reviewed by Eric Seidel.
2663
2664         InlineBox.h shouldn't include RenderBR.h
2665         https://bugs.webkit.org/show_bug.cgi?id=59480
2666
2667         Per bug 59348 RenderBR.h is a "top header" by include * size, because
2668         InlineBox.h includes it. There's no reason why it has to.
2669
2670         * rendering/InlineBox.h:
2671         * rendering/InlineTextBox.cpp:
2672         * rendering/RenderBlock.h:
2673
2674 2011-04-26  Sam Weinig  <sam@webkit.org>
2675
2676         Nope, roll out r84950 and r84952. Working on a laptop is clearly not something
2677         I should do.
2678
2679         * bindings/js/JSDOMBinding.h:
2680         (WebCore::JSDOMWrapperWithGlobalPointer::globalObject):
2681         (WebCore::JSDOMWrapperWithGlobalPointer::scriptExecutionContext):
2682         (WebCore::JSDOMWrapperWithGlobalPointer::createStructure):
2683         (WebCore::JSDOMWrapperWithGlobalPointer::JSDOMWrapperWithGlobalPointer):
2684         (WebCore::DOMConstructorObject::DOMConstructorObject):
2685         * bindings/js/JSDOMWrapper.h:
2686         (WebCore::JSDOMWrapper::JSDOMWrapper):
2687         * bindings/scripts/CodeGeneratorJS.pm:
2688
2689 2011-04-26  Sam Weinig  <sam@webkit.org>
2690
2691         Fix build.
2692
2693         * bindings/js/JSDOMWrapper.h:
2694         (WebCore::JSDOMWrapper::globalObject):
2695
2696 2011-04-26  Sam Weinig  <sam@webkit.org>
2697
2698         Roll r84945 back in with infinite recursion removed.
2699
2700         * bindings/js/JSDOMBinding.h:
2701         (WebCore::DOMConstructorObject::DOMConstructorObject):
2702         * bindings/js/JSDOMWrapper.h:
2703         (WebCore::JSDOMWrapper::globalObject):
2704         (WebCore::JSDOMWrapper::scriptExecutionContext):
2705         (WebCore::JSDOMWrapper::createStructure):
2706         (WebCore::JSDOMWrapper::JSDOMWrapper):
2707         * bindings/scripts/CodeGeneratorJS.pm:
2708
2709 2011-04-26  Sam Weinig  <sam@webkit.org>
2710
2711         Rollout previous patch. It broke stuff.
2712
2713         * bindings/js/JSDOMBinding.h:
2714         (WebCore::JSDOMWrapperWithGlobalPointer::globalObject):
2715         (WebCore::JSDOMWrapperWithGlobalPointer::scriptExecutionContext):
2716         (WebCore::JSDOMWrapperWithGlobalPointer::createStructure):
2717         (WebCore::JSDOMWrapperWithGlobalPointer::JSDOMWrapperWithGlobalPointer):
2718         (WebCore::DOMConstructorObject::DOMConstructorObject):
2719         * bindings/js/JSDOMWrapper.h:
2720         (WebCore::JSDOMWrapper::JSDOMWrapper):
2721         * bindings/scripts/CodeGeneratorJS.pm:
2722
2723 2011-04-26  Sam Weinig  <sam@webkit.org>
2724
2725         Reviewed by Maciej Stachowiak.
2726
2727         Remove JSDOMWrapperWithGlobalPointer now that all JSDOMWrappers have global objects
2728         https://bugs.webkit.org/show_bug.cgi?id=59310
2729
2730         * bindings/js/JSDOMBinding.h:
2731         (WebCore::DOMConstructorObject::DOMConstructorObject):
2732         * bindings/js/JSDOMWrapper.h:
2733         (WebCore::JSDOMWrapper::globalObject):
2734         (WebCore::JSDOMWrapper::scriptExecutionContext):
2735         (WebCore::JSDOMWrapper::createStructure):
2736         (WebCore::JSDOMWrapper::JSDOMWrapper):
2737         Merge JSDOMWrapperWithGlobalPointer with JSDOMWrapper.
2738
2739         * bindings/scripts/CodeGeneratorJS.pm:
2740         Make JSDOMWrapper the base class.
2741
2742 2011-04-26  Dan Bernstein  <mitz@apple.com>
2743
2744         Reviewed by Mark Rowe.
2745
2746         Choose the compiler based on the Xcode version for Snow Leopard debug builds.
2747
2748         * Configurations/Base.xcconfig:
2749         * Configurations/CompilerVersion.xcconfig: Added.
2750
2751 2011-04-26  Adrienne Walker  <enne@google.com>
2752
2753         Reviewed by Geoffrey Garen.
2754
2755         Use OwnArrayPtr<T> instead of OwnPtr<T*> in ScopeTracer
2756         https://bugs.webkit.org/show_bug.cgi?id=59469
2757
2758         * platform/chromium/TraceEvent.h:
2759         (WebCore::internal::ScopeTracer::ScopeTracer):
2760
2761 2011-04-25  Geoffrey Garen  <ggaren@apple.com>
2762
2763         Reviewed by Oliver Hunt.
2764
2765         Nixed special finalizer handling for WebCore strings
2766         https://bugs.webkit.org/show_bug.cgi?id=59425
2767
2768         Not needed anymore, since weak handles have finalizers.
2769
2770         * WebCore.exp.in: Exports!
2771
2772         * bindings/js/DOMWrapperWorld.cpp:
2773         (WebCore::JSStringOwner::finalize):
2774         (WebCore::DOMWrapperWorld::DOMWrapperWorld): Use a weak handle finalizer,
2775         so we don't need special treatment anymore.
2776
2777         * bindings/js/DOMWrapperWorld.h:
2778         (WebCore::JSStringOwner::JSStringOwner):
2779         (WebCore::DOMWrapperWorld::stringWrapperOwner): Use a HashMap of Weak<T>
2780         instead of a WeakGCMap, so we can specify a custom finalizer.
2781
2782         * bindings/js/JSDOMBinding.cpp:
2783         (WebCore::jsStringSlowCase):
2784         * bindings/js/JSDOMBinding.h:
2785         (WebCore::jsString): Updated for string map change.
2786
2787 2011-04-26  David Kilzer  <ddkilzer@apple.com>
2788
2789         <http://webkit.org/b/59372> Restore user default for enabling HTTP pipelining
2790
2791         Reviewed by Antti Koivisto.
2792
2793         To enable HTTP pipelining post-SnowLeopard, use this command:
2794
2795             defaults write BUNDLE.ID WebKitEnableHTTPPipelining -bool YES
2796
2797         * platform/network/cf/ResourceRequestCFNet.cpp:
2798         (WebCore::readBooleanPreference): Re-added.  Originally added in
2799         r76756 and removed in r84120.
2800         (WebCore::initializeMaximumHTTPConnectionCountPerHost): Enable
2801         HTTP pipelining if use default is set to true.  Added macro
2802         guards to match those in ResourceRequestMac.mm.
2803
2804 2011-04-26  Antti Koivisto  <antti@apple.com>
2805
2806         Reviewed by Adele Peterson.
2807
2808         Don't strip fragments from file: urls in memory cache
2809         https://bugs.webkit.org/show_bug.cgi?id=59463
2810         <rdar://problem/9231130>
2811
2812         Some clients expect file: resources to be unique based on fragment identifier. 
2813         Limit the changes in http://trac.webkit.org/changeset/74107 to the HTTP protocol only
2814
2815         Test: fast/loader/file-protocol-fragment.html
2816
2817         * loader/cache/MemoryCache.cpp:
2818         (WebCore::MemoryCache::removeFragmentIdentifierIfNeeded):
2819
2820 2011-04-26  David Levin  <levin@chromium.org>
2821
2822         Reviewed by Darin Adler.
2823
2824         Fix more strict OwnPtr in WebCore (round N).
2825         https://bugs.webkit.org/show_bug.cgi?id=59464
2826
2827         * dom/Document.cpp:
2828         (WebCore::Document::Document):
2829         (WebCore::Document::attach):
2830         * fileapi/FileReader.cpp:
2831         (WebCore::FileReader::terminate):
2832         * loader/DocumentThreadableLoader.cpp:
2833         (WebCore::DocumentThreadableLoader::preflightFailure):
2834         * workers/DefaultSharedWorkerRepository.cpp:
2835         (WebCore::SharedWorkerConnectTask::create):
2836         (WebCore::SharedWorkerScriptLoader::load):
2837
2838 2011-04-26  Ruben  <chromium@hybridsource.org>
2839
2840         Reviewed by Tony Chang.
2841
2842         Change linux ifdefs for Chromium to Unix instead, allowing
2843         new Unix ports to be enabled by default
2844         https://bugs.webkit.org/show_bug.cgi?id=59297
2845
2846         No new tests, just changing preprocessor defines.
2847
2848         * bindings/js/JSInspectorFrontendHostCustom.cpp:
2849         * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:
2850         * dom/SelectElement.cpp:
2851         * loader/cache/CachedFont.cpp:
2852         * page/EventHandler.cpp:
2853         * page/chromium/EventHandlerChromium.cpp:
2854         * platform/Scrollbar.cpp:
2855         * platform/chromium/PlatformBridge.h:
2856         * platform/graphics/chromium/FontPlatformData.h:
2857         * platform/graphics/skia/FontCustomPlatformData.cpp:
2858         * platform/graphics/skia/FontCustomPlatformData.h:
2859
2860 2011-04-26  Ryosuke Niwa  <rniwa@webkit.org>
2861
2862         Reviewed by Dan Bernstein.
2863
2864         [RTL] Arabic/AB - after typing a date, cursors doesn't go back
2865         https://bugs.webkit.org/show_bug.cgi?id=49111
2866
2867         Even when the offset corresponds to a position visually left of the box
2868         and there aren't any inline boxes on the left, the previous/next position
2869         may still correspond to some position in the same line.
2870
2871         The bug was caused by our ignoring such cases. Fixed the bug by comparing
2872         previous/next position's inline box to the current box. If they match,
2873         then we stay on the same position because moving to the left visually at
2874         the left edge should not result in a position on the same line.
2875
2876         Also fixed a bug that WebKit uses offsets that are not extrema when moved to
2877         the left edge or to the right edge, and a bug that WebKit could not move to
2878         the left from 12^3 CBA abc to 123 C^BA abc (there is no offset between 3 and C).
2879
2880         Test cases are added to editing/selection/move-left-right.html
2881
2882         * editing/VisiblePosition.cpp:
2883         (WebCore::VisiblePosition::leftVisuallyDistinctCandidate):
2884         (WebCore::VisiblePosition::rightVisuallyDistinctCandidate):
2885
2886 2011-04-26  Gabor Loki  <loki@webkit.org>
2887
2888         Reviewed by Csaba Osztrogon√°c.
2889
2890         Speeding up SVG filters with multicore (SMP) support
2891         https://bugs.webkit.org/show_bug.cgi?id=43903
2892
2893         Some SVG filters execute a huge number of pixel manipulations, which
2894         cannot be sped up by graphics accelerators, since their algorithm is
2895         too complex. Using the power of Symmetric Multi Processing (SMP) we
2896         can split up a task to smaller (data independent) tasks, which can be
2897         executed independently.
2898
2899         The ParallelJobs framework provides a simple way for distributed
2900         programming. The framework is based on WebKit's threading infrastructure,
2901         Open Multi-Processing's (OpenMP) API, and libdispatch API.
2902
2903         * ForwardingHeaders/wtf/ParallelJobs.h: Added.
2904         * platform/graphics/filters/FETurbulence.cpp:
2905         (WebCore::FETurbulence::PaintingData::PaintingData):
2906         (WebCore::FETurbulence::noise2D):
2907         (WebCore::FETurbulence::calculateTurbulenceValueForPoint):
2908         (WebCore::FETurbulence::fillRegion):
2909         (WebCore::FETurbulence::fillRegionWorker):
2910         (WebCore::FETurbulence::apply):
2911         * platform/graphics/filters/FETurbulence.h:
2912
2913 2011-04-26  Pavel Feldman  <pfeldman@google.com>
2914
2915         Reviewed by Yury Semikhatsky.
2916
2917         Web Inspector: close button is off in docked mode on a mac.
2918         https://bugs.webkit.org/show_bug.cgi?id=59453
2919
2920         * inspector/front-end/inspector.css:
2921         (.toolbar-item.close-left):
2922
2923 2011-04-26  Pavel Feldman  <pfeldman@google.com>
2924
2925         Reviewed by Yury Semikhatsky.
2926
2927         Web Inspector: New Style is not working (UI glitch)
2928         https://bugs.webkit.org/show_bug.cgi?id=59451
2929
2930         * inspector/InspectorDOMStorageAgent.cpp:
2931         (WebCore::InspectorDOMStorageAgent::setFrontend):
2932         * inspector/front-end/AuditRules.js:
2933         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.getStyles):
2934         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun.externalStylesheetsReceived):
2935         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun.inlineStylesReceived):
2936         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun.cssBeforeInlineReceived):
2937         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun.lateStylesReceived):
2938         * inspector/front-end/CSSStyleModel.js:
2939         (WebInspector.CSSStyleModel.prototype.setRuleSelector):
2940         (WebInspector.CSSStyleModel.prototype.setRuleSelector.callback):
2941         (WebInspector.CSSStyleModel.prototype.addRule):
2942         (WebInspector.CSSStyleModel.prototype.addRule.callback):
2943         (WebInspector.CSSStyleModel.prototype._documentElementId):
2944         * inspector/front-end/DOMAgent.js:
2945         (WebInspector.DOMNode.prototype._addAttribute):
2946         (WebInspector.DOMNode.prototype.documentElement):
2947         * inspector/front-end/ResourceTreeModel.js:
2948         (WebInspector.PageDispatcher.prototype.frameDetached):
2949         * inspector/front-end/StylesSidebarPane.js:
2950         (WebInspector.StylesSidebarPane.prototype._createNewRule):
2951
2952 2011-04-26  Pavel Feldman  <pfeldman@google.com>
2953
2954         Reviewed by Yury Semikhatsky.
2955
2956         Web Inspector: introduce DOMStorage::enable and disable.
2957         https://bugs.webkit.org/show_bug.cgi?id=59445
2958
2959         * inspector/Inspector.json:
2960         * inspector/InspectorAgent.cpp:
2961         (WebCore::InspectorAgent::InspectorAgent):
2962         (WebCore::InspectorAgent::restoreInspectorStateFromCookie):
2963         * inspector/InspectorDOMStorageAgent.cpp:
2964         (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
2965         (WebCore::InspectorDOMStorageAgent::restore):
2966         (WebCore::InspectorDOMStorageAgent::enable):
2967         (WebCore::InspectorDOMStorageAgent::disable):
2968         * inspector/InspectorDOMStorageAgent.h:
2969         (WebCore::InspectorDOMStorageAgent::create):
2970         * inspector/front-end/DOMStorage.js:
2971         (WebInspector.DOMStorageDispatcher.prototype.addDOMStorage):
2972         * inspector/front-end/ResourcesPanel.js:
2973         (WebInspector.ResourcesPanel.prototype._reset):
2974         * inspector/front-end/inspector.js:
2975
2976 2011-04-26  Pavel Feldman  <pfeldman@google.com>
2977
2978         Reviewed by Yury Semikhatsky.
2979
2980         Web Inspector: extract Page agent dispatcher into the ResourceTreeModel.
2981         https://bugs.webkit.org/show_bug.cgi?id=59440
2982
2983         * inspector/Inspector.json:
2984         * inspector/InspectorAgent.cpp:
2985         (WebCore::InspectorAgent::restoreInspectorStateFromCookie):
2986         * inspector/InspectorPageAgent.cpp:
2987         (WebCore::InspectorPageAgent::setFrontend):
2988         (WebCore::InspectorPageAgent::frameNavigated):
2989         * inspector/InspectorPageAgent.h:
2990         * inspector/front-end/AuditsPanel.js:
2991         (WebInspector.AuditsPanel):
2992         (WebInspector.AuditsPanel.prototype._onLoadEventFired):
2993         (WebInspector.AuditsPanel.prototype._domContentLoadedEventFired):
2994         * inspector/front-end/CSSStyleModel.js:
2995         (WebInspector.CSSStyleModelResourceBinding):
2996         (WebInspector.CSSStyleModelResourceBinding.prototype._inspectedURLChanged):
2997         * inspector/front-end/DOMBreakpointsSidebarPane.js:
2998         (WebInspector.DOMBreakpointsSidebarPane):
2999         (WebInspector.DOMBreakpointsSidebarPane.prototype._inspectedURLChanged):
3000         * inspector/front-end/DOMStorage.js:
3001         (WebInspector.DOMStorageDispatcher.prototype.addDOMStorage):
3002         * inspector/front-end/ExtensionServer.js:
3003         (WebInspector.ExtensionServer.prototype._inspectedURLChanged):
3004         (WebInspector.ExtensionServer.prototype.initExtensions):
3005         * inspector/front-end/NetworkPanel.js:
3006         (WebInspector.NetworkPanel):
3007         (WebInspector.NetworkPanel.prototype._onLoadEventFired):
3008         (WebInspector.NetworkPanel.prototype._domContentLoadedEventFired):
3009         (WebInspector.NetworkPanel.prototype._frameNavigated):
3010         * inspector/front-end/ResourceTreeModel.js:
3011         (WebInspector.ResourceTreeModel):
3012         (WebInspector.ResourceTreeModel.prototype._processCachedResources):
3013         (WebInspector.ResourceTreeModel.prototype._dispatchInspectedURLChanged):
3014         (WebInspector.ResourceTreeModel.prototype._frameNavigated):
3015         (WebInspector.ResourceTreeModel.prototype._frameDetached):
3016         (WebInspector.ResourceTreeModel.prototype._clearChildFramesAndResources):
3017         (WebInspector.PageDispatcher):
3018         (WebInspector.PageDispatcher.prototype.domContentEventFired):
3019         (WebInspector.PageDispatcher.prototype.loadEventFired):
3020         (WebInspector.PageDispatcher.prototype.frameNavigated):
3021         (WebInspector.PageDispatcher.prototype.frameDetached):
3022         * inspector/front-end/ResourcesPanel.js:
3023         (WebInspector.ResourcesPanel):
3024         (WebInspector.ResourcesPanel.prototype._onLoadEventFired):
3025         (WebInspector.ResourcesPanel.prototype._frameNavigated):
3026         * inspector/front-end/inspector.js:
3027
3028 2011-04-26  Csaba Osztrogon√°c  <ossy@webkit.org>
3029
3030         Unreviewed rollout r84877 and StyleRareInheritedData.cpp changes of r84892,
3031         because it broke transitions/multiple-text-shadow-transition.html
3032
3033         Fix OwnPtr strict errors in RenderStyle and make StyleRareInheritedData::textShadow an OwnPtr
3034         https://bugs.webkit.org/show_bug.cgi?id=59377
3035
3036         * css/CSSStyleSelector.cpp:
3037         (WebCore::CSSStyleSelector::applyProperty):
3038         * page/animation/AnimationBase.cpp:
3039         (WebCore::PropertyWrapperShadow::PropertyWrapperShadow):
3040         (WebCore::PropertyWrapperShadow::blend):
3041         * rendering/style/RenderStyle.cpp:
3042         (WebCore::RenderStyle::setTextShadow):
3043         (WebCore::RenderStyle::setBoxShadow):
3044         * rendering/style/RenderStyle.h:
3045         (WebCore::InheritedFlags::textShadow):
3046         * rendering/style/StyleRareInheritedData.cpp:
3047         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
3048         (WebCore::StyleRareInheritedData::~StyleRareInheritedData):
3049         * rendering/style/StyleRareInheritedData.h:
3050         * rendering/style/StyleRareNonInheritedData.cpp:
3051         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
3052
3053 2011-04-26  Mihai Parparita  <mihaip@chromium.org>
3054
3055         Reviewed by Adam Barth.
3056
3057         Turn off make built-in implicit rules for derived sources makefile
3058         https://bugs.webkit.org/show_bug.cgi?id=59418
3059
3060         We don't use any of make's built-in implicit rules, turning them off
3061         speeds up parsing of the makefile.
3062
3063         * WebCore.xcodeproj/project.pbxproj:
3064         * gyp/generate-derived-sources.sh:
3065
3066 2011-04-26  Leo Yang  <leo.yang@torchmobile.com.cn>
3067
3068         Reviewed by Nikolas Zimmermann.
3069
3070         ASSERT failure in SVGUseElement
3071         https://bugs.webkit.org/show_bug.cgi?id=59313
3072
3073         In SVGUseElement::insertedIntoDocument(), ASSERT(!m_isPendingResource)
3074         was wrong because the document may not be well-formed.
3075
3076         This patch asserts the element is not pending on resource or the
3077         document is not well-formed.
3078
3079         Test: svg/custom/use-crash-in-non-wellformed-document.svg
3080
3081         * svg/SVGUseElement.cpp:
3082         (WebCore::isWellFormedDocument):
3083         (WebCore::SVGUseElement::insertedIntoDocument):
3084
3085 2011-04-26  Mikhail Naganov  <mnaganov@chromium.org>
3086
3087         Reviewed by Pavel Feldman.
3088
3089         Web Inspector: [Chromium] Fix columns resizing in the detailed heap snapshot grids.
3090         https://bugs.webkit.org/show_bug.cgi?id=59438
3091
3092         * inspector/front-end/DetailedHeapshotView.js:
3093         (WebInspector.DetailedHeapshotView.prototype._changeView):
3094
3095 2011-04-26  David Levin  <levin@chromium.org>
3096
3097         Reviewed by Adam Barth.
3098
3099         Fix a few OwnPtr strict errors in WebCore headers.
3100         https://bugs.webkit.org/show_bug.cgi?id=59431
3101
3102         * bindings/js/ScheduledAction.cpp:
3103         (WebCore::ScheduledAction::create):
3104         * css/MediaQueryMatcher.cpp:
3105         (WebCore::MediaQueryMatcher::prepareEvaluator):
3106         * dom/NodeRareData.h:
3107         (WebCore::NodeListsNodeData::create):
3108         * dom/ScriptRunner.h:
3109         (WebCore::ScriptRunner::create):
3110         * inspector/WorkerInspectorController.cpp:
3111         (WebCore::WorkerInspectorController::connectFrontend):
3112         * loader/icon/IconDatabase.h:
3113         (WebCore::IconDatabase::create):
3114         * platform/graphics/SimpleFontData.cpp:
3115         (WebCore::SimpleFontData::verticalRightOrientationFontData):
3116         (WebCore::SimpleFontData::uprightOrientationFontData):
3117         (WebCore::SimpleFontData::brokenIdeographFontData):
3118         * rendering/style/StyleRareInheritedData.cpp:
3119         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
3120         * rendering/svg/SVGResources.h:
3121         (WebCore::SVGResources::ClipperFilterMaskerData::create):
3122         (WebCore::SVGResources::MarkerData::create):
3123         (WebCore::SVGResources::FillStrokeData::create):
3124         * storage/StorageSyncManager.cpp:
3125         (WebCore::StorageSyncManager::close):
3126         * workers/WorkerContext.cpp:
3127         (WebCore::CloseWorkerContextTask::create):
3128         * workers/WorkerMessagingProxy.cpp:
3129         (WebCore::MessageWorkerContextTask::create):
3130         (WebCore::MessageWorkerTask::create):
3131         (WebCore::WorkerExceptionTask::create):
3132         (WebCore::WorkerContextDestroyedTask::create):
3133         (WebCore::WorkerTerminateTask::create):
3134         (WebCore::WorkerThreadActivityReportTask::create):
3135         * workers/WorkerRunLoop.cpp:
3136         (WebCore::WorkerRunLoop::Task::create):
3137         * workers/WorkerThread.cpp:
3138         (WebCore::WorkerThreadStartupData::create):
3139         (WebCore::WorkerThreadShutdownFinishTask::create):
3140         (WebCore::WorkerThreadShutdownStartTask::create):
3141
3142 2011-04-26  Adam Klein  <adamk@chromium.org>
3143
3144         Reviewed by Adam Barth.
3145
3146         Fix last strict OwnPtr violation under svg/...
3147         https://bugs.webkit.org/show_bug.cgi?id=59429
3148
3149         * svg/SVGDocumentExtensions.cpp:
3150         (WebCore::SVGDocumentExtensions::removePendingResource):
3151
3152 2011-04-26  Adam Barth  <abarth@webkit.org>
3153
3154         Reviewed by David Levin.
3155
3156         Fix more strict OwnPtr violations in WebCore
3157         https://bugs.webkit.org/show_bug.cgi?id=59433
3158
3159         These manifest in the Chromium build.
3160
3161         * bindings/v8/ScriptController.cpp:
3162         (WebCore::ScriptController::ScriptController):
3163         * bindings/v8/ScriptDebugServer.cpp:
3164         (WebCore::ScriptDebugServer::editScriptSource):
3165         * bindings/v8/V8DOMMap.cpp:
3166         (WebCore::DOMDataStoreHandle::DOMDataStoreHandle):
3167         * bindings/v8/V8Proxy.cpp:
3168         (WebCore::V8Proxy::precompileScript):
3169         * bindings/v8/WorkerScriptController.cpp:
3170         (WebCore::WorkerScriptController::WorkerScriptController):
3171         * page/Page.cpp:
3172         (WebCore::Page::Page):
3173         (WebCore::Page::speechInput):
3174         * platform/PlatformGestureRecognizer.cpp:
3175         (WebCore::PlatformGestureRecognizer::create):
3176         * platform/PlatformGestureRecognizer.h:
3177         * platform/graphics/chromium/DrawingBufferChromium.cpp:
3178         (WebCore::DrawingBuffer::DrawingBuffer):
3179         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
3180         (WebCore::CCLayerImpl::CCLayerImpl):
3181         * platform/graphics/gpu/Texture.cpp:
3182         (WebCore::Texture::create):
3183         * platform/image-decoders/bmp/BMPImageDecoder.cpp:
3184         (WebCore::BMPImageDecoder::decodeHelper):
3185         * platform/image-decoders/gif/GIFImageDecoder.cpp:
3186         (WebCore::GIFImageDecoder::decode):
3187         * platform/image-decoders/ico/ICOImageDecoder.cpp:
3188         (WebCore::ICOImageDecoder::decodeAtIndex):
3189         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
3190         (WebCore::JPEGImageDecoder::decode):
3191         * platform/image-decoders/png/PNGImageDecoder.cpp:
3192         (WebCore::PNGImageDecoder::decode):
3193         * storage/chromium/DatabaseTrackerChromium.cpp:
3194         (WebCore::DatabaseTracker::addOpenDatabase):
3195
3196 2011-04-25  David Levin  <levin@chromium.org>
3197
3198         Reviewed by Adam Barth.
3199
3200         Fix OwnPtr strict errors in CrossThreadTask.h
3201         https://bugs.webkit.org/show_bug.cgi?id=59427
3202
3203         * dom/CrossThreadTask.h:
3204         (WebCore::CrossThreadTask1::create):
3205         (WebCore::CrossThreadTask2::create):
3206         (WebCore::CrossThreadTask3::create):
3207         (WebCore::CrossThreadTask4::create):
3208         (WebCore::CrossThreadTask5::create):
3209         (WebCore::CrossThreadTask6::create):
3210         (WebCore::CrossThreadTask7::create):
3211         (WebCore::CrossThreadTask8::create):
3212
3213 2011-04-25  Mark Rowe  <mrowe@apple.com>
3214
3215         Reviewed by Dan Bernstein.
3216
3217         <rdar://problem/9330337> Leak of 'WebCore::ApplyPropertyFillLayer<WebCore::FillSize>'
3218
3219         * css/CSSStyleApplyProperty.cpp:
3220         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): Don't initialize CSSPropertyWebkitMaskSize twice.
3221         * css/CSSStyleApplyProperty.h:
3222         (WebCore::CSSStyleApplyProperty::setPropertyValue): Add some asserts to catch this class of leak.
3223
3224 2011-04-25  Levi Weintraub  <leviw@chromium.org>
3225
3226         Reviewed by Ryosuke Niwa.
3227
3228         REGRESSION: a character appears after tab span when typing immediately before the tab span
3229         https://bugs.webkit.org/show_bug.cgi?id=58132
3230
3231         Correcting the order of operations we use to avoid inserting into invalid positions in
3232         ReplaceSelectionCommand to avoid inserting into tab-spans.
3233
3234         Test: editing/pasteboard/paste-before-tab-span.html
3235
3236         * editing/ReplaceSelectionCommand.cpp:
3237         (WebCore::ReplaceSelectionCommand::doApply): Moving positionOutsideTabSpan to after
3238         positionAvoidingPrecedingNodes, since that function could once again put our position
3239         inside a tab span.
3240
3241 2011-04-25  David Levin  <levin@chromium.org>
3242
3243         Reviewed by Adam Barth.
3244
3245         Fix OwnPtr strict error in ImageBuffer.h
3246         https://bugs.webkit.org/show_bug.cgi?id=59422
3247
3248         * platform/graphics/ImageBuffer.h:
3249         (WebCore::ImageBuffer::create):
3250
3251 2011-04-25  Adam Barth  <abarth@webkit.org>
3252
3253         Reviewed by David Levin.
3254
3255         Fix strict OwnPtr violations and whitelist known-tricky files
3256         https://bugs.webkit.org/show_bug.cgi?id=59421
3257
3258         With this patch, WebCore builds cleanly with strict OwnPtrs.
3259
3260         * dom/MessagePort.cpp:
3261         (WebCore::MessagePort::MessagePort):
3262         * dom/XMLDocumentParserLibxml2.cpp:
3263         * page/ContextMenuController.cpp:
3264         (WebCore::ContextMenuController::ContextMenuController):
3265         (WebCore::ContextMenuController::clearContextMenu):
3266         * page/PluginHalter.cpp:
3267         * platform/graphics/MediaPlayer.cpp:
3268         * platform/network/ResourceRequestBase.cpp:
3269         (WebCore::ResourceRequestBase::adopt):
3270         (WebCore::ResourceRequestBase::copyData):
3271         * svg/SVGDocumentExtensions.cpp:
3272
3273 2011-04-25  David Levin  <levin@chromium.org>
3274
3275         Reviewed by Adam Barth.
3276
3277         Fix OwnPtr strict errors in DatasetDOMStringMap.h.
3278         https://bugs.webkit.org/show_bug.cgi?id=59419
3279
3280         * dom/DatasetDOMStringMap.h:
3281         (WebCore::DatasetDOMStringMap::create):
3282
3283 2011-04-25  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3284
3285         Reviewed by Eric Seidel.
3286
3287         KeyboardEvent.cpp should work with strict OwnPtrs.
3288         https://bugs.webkit.org/show_bug.cgi?id=59403
3289
3290         * dom/KeyboardEvent.cpp:
3291         (WebCore::KeyboardEvent::KeyboardEvent):
3292
3293 2011-04-25  James Robinson  <jamesr@chromium.org>
3294
3295         Reviewed by Eric Seidel.
3296
3297         Fix OwnPtr strict errors in RenderStyle and make StyleRareInheritedData::textShadow an OwnPtr
3298         https://bugs.webkit.org/show_bug.cgi?id=59377
3299
3300         * css/CSSStyleSelector.cpp:
3301         (WebCore::CSSStyleSelector::applyProperty):
3302         * page/animation/AnimationBase.cpp:
3303         (WebCore::PropertyWrapperShadow::PropertyWrapperShadow):
3304         (WebCore::PropertyWrapperShadow::blend):
3305         * rendering/style/RenderStyle.cpp:
3306         (WebCore::RenderStyle::setTextShadow):
3307         (WebCore::RenderStyle::setBoxShadow):
3308         * rendering/style/RenderStyle.h:
3309         (WebCore::InheritedFlags::textShadow):
3310         * rendering/style/StyleRareInheritedData.cpp:
3311         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
3312         (WebCore::StyleRareInheritedData::~StyleRareInheritedData):
3313         * rendering/style/StyleRareInheritedData.h:
3314         * rendering/style/StyleRareNonInheritedData.cpp:
3315         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
3316
3317 2011-04-25  Sheriff Bot  <webkit.review.bot@gmail.com>
3318
3319         Unreviewed, rolling out r84864.
3320         http://trac.webkit.org/changeset/84864
3321         https://bugs.webkit.org/show_bug.cgi?id=59413
3322
3323         Expect result of use-crash-in-non-wellformed-document.svg is
3324         platform dependent (Requested by leoyang on #webkit).
3325
3326         * svg/SVGUseElement.cpp:
3327         (WebCore::SVGUseElement::insertedIntoDocument):
3328
3329 2011-04-25  Leo Yang  <leo.yang@torchmobile.com.cn>
3330
3331         Reviewed by Nikolas Zimmermann.
3332
3333         ASSERT failure in SVGUseElement
3334         https://bugs.webkit.org/show_bug.cgi?id=59313
3335
3336         In SVGUseElement::insertedIntoDocument(), ASSERT(!m_isPendingResource)
3337         was wrong because the document may not be well-formed.
3338
3339         This patch asserts the element is not pending on resource or the
3340         document is not well-formed.
3341
3342         Test: svg/custom/use-crash-in-non-wellformed-document.svg
3343
3344         * svg/SVGUseElement.cpp:
3345         (WebCore::isWellFormedDocument):
3346         (WebCore::SVGUseElement::insertedIntoDocument):
3347
3348 2011-04-25  Igor Oliveira  <igor.oliveira@openbossa.org>
3349
3350         Reviewed by Tony Chang.
3351
3352         Move complexity from DataTransferItemsChromium and DataTransferItemChromium for base class
3353         https://bugs.webkit.org/show_bug.cgi?id=59028
3354
3355         The DataTransferItemsChromium and DataTransferItemChromium code can be reused by other platforms.
3356         Moving the code for base class we can reduce the efforts to support DataTransferItems
3357         element in different platforms.
3358
3359         * Android.mk:
3360         * CMakeLists.txt:
3361         * GNUmakefile.list.am:
3362         * WebCore.gypi:
3363         * WebCore.pro:
3364         * WebCore.vcproj/WebCore.vcproj:
3365         * WebCore.xcodeproj/project.pbxproj:
3366         * dom/DataTransferItem.cpp:
3367         (WebCore::DataTransferItem::DataTransferItem):
3368         (WebCore::DataTransferItem::owner):
3369         (WebCore::DataTransferItem::kind):
3370         (WebCore::DataTransferItem::type):
3371         * dom/DataTransferItem.h:
3372         * dom/DataTransferItems.cpp: Copied from Source/WebCore/platform/chromium/DataTransferItemsChromium.cpp.
3373         (WebCore::DataTransferItems::DataTransferItems):
3374         (WebCore::DataTransferItems::length):
3375         (WebCore::DataTransferItems::item):
3376         (WebCore::DataTransferItems::deleteItem):
3377         (WebCore::DataTransferItems::clear):
3378         (WebCore::DataTransferItems::add):
3379         * dom/DataTransferItems.h:
3380         * platform/chromium/DataTransferItemChromium.cpp:
3381         (WebCore::DataTransferItem::create):
3382         (WebCore::DataTransferItemChromium::DataTransferItemChromium):
3383         (WebCore::DataTransferItemChromium::getAsString):
3384         (WebCore::DataTransferItemChromium::getAsFile):
3385         * platform/chromium/DataTransferItemChromium.h:
3386         * platform/chromium/DataTransferItemsChromium.cpp:
3387         (WebCore::DataTransferItemsChromium::DataTransferItemsChromium):
3388         * platform/chromium/DataTransferItemsChromium.h:
3389
3390 2011-04-25  Chris Marrin  <cmarrin@apple.com>
3391
3392         Reviewed by Simon Fraser.
3393
3394         REGRESSION(75137): directly composited images are double-drawn sometimes
3395         https://bugs.webkit.org/show_bug.cgi?id=58632
3396
3397         Depending on the order of operations (layout, creating compositing 
3398         layers and creating simple image layers) a layer can have both image
3399         content and have m_drawsContent=true. In this case 2 copies of the image
3400         are drawn in the layer. If the image has alpha, it looks wrong.
3401
3402         I added an updateDrawsContent() call after setting the image contents
3403         to make sure it's correct.
3404
3405         I couldn't create a test case that shows the problem because layerTreeAsText()
3406         doesn't emit enough info to show this level of detail. I've opened
3407         https://bugs.webkit.org/show_bug.cgi?id=59352 to fix that.
3408
3409         * rendering/RenderLayerBacking.cpp:
3410         (WebCore::RenderLayerBacking::updateImageContents):
3411
3412 2011-04-25  Kenneth Russell  <kbr@google.com>
3413
3414         Reviewed by David Levin.
3415
3416         Fix OwnPtr strict errors in InlineFlowBox.cpp
3417         https://bugs.webkit.org/show_bug.cgi?id=59392
3418
3419         * rendering/InlineFlowBox.cpp:
3420         (WebCore::InlineFlowBox::setLayoutOverflow):
3421         (WebCore::InlineFlowBox::setVisualOverflow):
3422
3423 2011-04-25  Kenneth Russell  <kbr@google.com>
3424
3425         Reviewed by David Levin.
3426
3427         Fix OwnPtr strict errors in TransformState.cpp
3428         https://bugs.webkit.org/show_bug.cgi?id=59380
3429
3430         * rendering/TransformState.cpp:
3431         (WebCore::TransformState::applyTransform):
3432
3433 2011-04-25  Adam Barth  <abarth@webkit.org>
3434
3435         Reviewed by James Robinson.
3436
3437         DOMWindow.cpp should work with strict OwnPtrs
3438         https://bugs.webkit.org/show_bug.cgi?id=59356
3439
3440         * page/DOMWindow.cpp:
3441         (WebCore::PostMessageTimer::fired):
3442         (WebCore::DOMWindow::postMessageTimerFired):
3443         * page/DOMWindow.h:
3444
3445 2011-04-25  Adam Klein  <adamk@chromium.org>
3446
3447         Reviewed by James Robinson.
3448
3449         Fix OwnPtr strict errors in some SVG classes.
3450         https://bugs.webkit.org/show_bug.cgi?id=59395
3451
3452         * rendering/style/SVGRenderStyleDefs.cpp:
3453         (WebCore::StyleShadowSVGData::StyleShadowSVGData):
3454         * svg/SVGSVGElement.cpp:
3455         (WebCore::SVGSVGElement::SVGSVGElement):
3456         * svg/SVGStyledTransformableElement.cpp:
3457         (WebCore::SVGStyledTransformableElement::supplementalTransform):
3458         * svg/SVGTextElement.cpp:
3459         (WebCore::SVGTextElement::supplementalTransform):
3460         * svg/graphics/SVGImage.cpp:
3461         (WebCore::SVGImage::dataChanged):
3462
3463 2011-04-25  Adam Barth  <abarth@webkit.org>
3464
3465         Re-land changes to ValidationMessage.
3466
3467         * html/ValidationMessage.cpp:
3468         (WebCore::ValidationMessage::setMessage):
3469         (WebCore::ValidationMessage::setMessageDOMAndStartTimer):
3470         (WebCore::ValidationMessage::requestToHideMessage):
3471
3472 2011-04-25  Ojan Vafai  <ojan@chromium.org>
3473
3474         Reviewed by James Robinson.
3475
3476         fix OwnPtr strict error in FrameView.cpp
3477         https://bugs.webkit.org/show_bug.cgi?id=59402
3478
3479         * page/FrameView.cpp:
3480         (WebCore::FrameView::FrameView):
3481         (WebCore::FrameView::addWidgetToUpdate):
3482
3483 2011-04-25  Adam Klein  <adamk@chromium.org>
3484
3485         Unreviewed, rolling out r84844.
3486         http://trac.webkit.org/changeset/84844
3487         https://bugs.webkit.org/show_bug.cgi?id=59395
3488
3489         Checked in too much.
3490
3491         * rendering/style/SVGRenderStyleDefs.cpp:
3492         (WebCore::StyleShadowSVGData::StyleShadowSVGData):
3493         * svg/SVGDocumentExtensions.cpp:
3494         (WebCore::SVGDocumentExtensions::removePendingResource):
3495         * svg/SVGSVGElement.cpp:
3496         (WebCore::SVGSVGElement::SVGSVGElement):
3497         * svg/SVGStyledTransformableElement.cpp:
3498         (WebCore::SVGStyledTransformableElement::supplementalTransform):
3499         * svg/SVGTextElement.cpp:
3500         (WebCore::SVGTextElement::supplementalTransform):
3501         * svg/graphics/SVGImage.cpp:
3502         (WebCore::SVGImage::dataChanged):
3503
3504 2011-04-25  Adrienne Walker  <enne@google.com>
3505
3506         Reviewed by David Levin.
3507
3508         Make ActiveDOMCallback play nice with OwnPtr strict mode
3509         https://bugs.webkit.org/show_bug.cgi?id=59398
3510
3511         * bindings/generic/ActiveDOMCallback.cpp:
3512         (WebCore::ActiveDOMCallback::ActiveDOMCallback):
3513
3514 2011-04-25  Adam Klein  <adamk@chromium.org>
3515
3516         Reviewed by James Robinson.
3517
3518         Fix OwnPtr strict errors in some SVG classes.
3519         https://bugs.webkit.org/show_bug.cgi?id=59395
3520
3521         * rendering/style/SVGRenderStyleDefs.cpp:
3522         (WebCore::StyleShadowSVGData::StyleShadowSVGData):
3523         * svg/SVGSVGElement.cpp:
3524         (WebCore::SVGSVGElement::SVGSVGElement):
3525         * svg/SVGStyledTransformableElement.cpp:
3526         (WebCore::SVGStyledTransformableElement::supplementalTransform):
3527         * svg/SVGTextElement.cpp:
3528         (WebCore::SVGTextElement::supplementalTransform):
3529         * svg/graphics/SVGImage.cpp:
3530         (WebCore::SVGImage::dataChanged):
3531
3532 2011-04-25  James Robinson  <jamesr@chromium.org>
3533
3534         Unreviewed, rolling out r84835.
3535         http://trac.webkit.org/changeset/84835
3536         https://bugs.webkit.org/show_bug.cgi?id=59394
3537
3538         Breaks compile because Deque<OwnPtr> doesn't work
3539
3540         * dom/XMLDocumentParserLibxml2.cpp:
3541         (WebCore::PendingCallbacks::~PendingCallbacks):
3542         (WebCore::PendingCallbacks::appendStartElementNSCallback):
3543         (WebCore::PendingCallbacks::appendEndElementNSCallback):
3544         (WebCore::PendingCallbacks::appendCharactersCallback):
3545         (WebCore::PendingCallbacks::appendProcessingInstructionCallback):
3546         (WebCore::PendingCallbacks::appendCDATABlockCallback):
3547         (WebCore::PendingCallbacks::appendCommentCallback):
3548         (WebCore::PendingCallbacks::appendInternalSubsetCallback):
3549         (WebCore::PendingCallbacks::appendErrorCallback):
3550         (WebCore::XMLDocumentParser::XMLDocumentParser):
3551         * html/ValidationMessage.cpp:
3552         (WebCore::ValidationMessage::setMessage):
3553         (WebCore::ValidationMessage::setMessageDOMAndStartTimer):
3554         (WebCore::ValidationMessage::requestToHideMessage):
3555
3556 2011-04-25  James Robinson  <jamesr@chromium.org>
3557
3558         Reviewed by Sam Weinig.
3559
3560         Fix OwnPtr strict mode violation in ImageBufferCG
3561         https://bugs.webkit.org/show_bug.cgi?id=59396
3562
3563         * platform/graphics/cg/ImageBufferCG.cpp:
3564         (WebCore::ImageBuffer::ImageBuffer):
3565
3566 2011-04-25  Huang Dongsung  <luxtella@company100.net>
3567
3568         Reviewed by Dirk Schulze.
3569
3570         [Skia] Remove an unused local variable in PlatformContextSkia::readbackHardwareToSoftware().
3571         https://bugs.webkit.org/show_bug.cgi?id=59308
3572
3573         An unused local variable is created and even allocates heap memory.
3574
3575         * platform/graphics/skia/PlatformContextSkia.cpp:
3576         (WebCore::PlatformContextSkia::readbackHardwareToSoftware):
3577
3578 2011-04-25  Geoffrey Garen  <ggaren@apple.com>
3579
3580         Qt build fix: Updated files not used by other ports for rename.
3581
3582         * bindings/js/JSTouchCustom.cpp:
3583         (WebCore::toJSNewlyCreated):
3584         * bindings/js/JSTouchListCustom.cpp:
3585         (WebCore::toJSNewlyCreated):
3586
3587 2011-04-25  Adrienne Walker  <enne@google.com>
3588
3589         Reviewed by David Levin.
3590
3591         WebCore/css/CSS* files should play nice with strict OwnPtrs
3592         https://bugs.webkit.org/show_bug.cgi?id=59382
3593
3594         * css/CSSFontFaceSource.cpp:
3595         (WebCore::CSSFontFaceSource::getFontData):
3596         * css/CSSParser.cpp:
3597         (WebCore::CSSParser::addProperty):
3598         (WebCore::CSSParser::parseValue):
3599
3600 2011-04-25  Adam Barth  <abarth@webkit.org>
3601
3602         Reviewed by James Robinson.
3603
3604         ValidationMessage and XMLDocumentParserLibxml2 should play nice with strict OwnPtrs
3605         https://bugs.webkit.org/show_bug.cgi?id=59394
3606
3607         * dom/XMLDocumentParserLibxml2.cpp:
3608         (WebCore::PendingCallbacks::PendingCallbacks):
3609         (WebCore::PendingCallbacks::appendStartElementNSCallback):
3610         (WebCore::PendingCallbacks::appendEndElementNSCallback):
3611         (WebCore::PendingCallbacks::appendCharactersCallback):
3612         (WebCore::PendingCallbacks::appendProcessingInstructionCallback):
3613         (WebCore::PendingCallbacks::appendCDATABlockCallback):
3614         (WebCore::PendingCallbacks::appendCommentCallback):
3615         (WebCore::PendingCallbacks::appendInternalSubsetCallback):
3616         (WebCore::PendingCallbacks::appendErrorCallback):
3617         (WebCore::XMLDocumentParser::XMLDocumentParser):
3618         * html/ValidationMessage.cpp:
3619         (WebCore::ValidationMessage::setMessage):
3620         (WebCore::ValidationMessage::setMessageDOMAndStartTimer):
3621         (WebCore::ValidationMessage::requestToHideMessage):
3622
3623 2011-04-25  James Robinson  <jamesr@chromium.org>
3624
3625         Reviewed by Adam Barth.
3626
3627         Fix OwnPtr strictness issues in WebCore/inspector/
3628         https://bugs.webkit.org/show_bug.cgi?id=59387
3629
3630         * inspector/InspectorAgent.cpp:
3631         (WebCore::InspectorAgent::InspectorAgent):
3632         * inspector/InspectorController.cpp:
3633         (WebCore::InspectorController::InspectorController):
3634         * inspector/InspectorStyleSheet.cpp:
3635         (WebCore::InspectorStyleSheet::ensureSourceData):
3636
3637 2011-04-25  Geoffrey Garen  <ggaren@apple.com>
3638
3639         Reviewed by Beth Dakin.
3640
3641         Removed XPathNamespace because it was unused
3642         https://bugs.webkit.org/show_bug.cgi?id=59381
3643         
3644         This allows us to make Node::ownerDocument() non-virtual, though it has
3645         the unhappy side-effect of rebuilding the world.
3646
3647         * CMakeLists.txt:
3648         * GNUmakefile.list.am:
3649         * WebCore.gypi:
3650         * WebCore.pro:
3651         * WebCore.vcproj/WebCore.vcproj:
3652         * WebCore.xcodeproj/project.pbxproj: Bye bye dead code.
3653
3654         * dom/Node.h: Hello fast code!
3655
3656         * xml/XPathNamespace.cpp: Removed.
3657         * xml/XPathNamespace.h: Removed.
3658
3659 2011-04-25  Adam Barth  <abarth@webkit.org>
3660
3661         Reviewed by Darin Adler.
3662
3663         HistoryItemMac should play nice with OwnPtrs
3664         https://bugs.webkit.org/show_bug.cgi?id=59388
3665
3666         * history/mac/HistoryItemMac.mm:
3667         (WebCore::HistoryItem::setTransientProperty):
3668
3669 2011-04-25  David Levin  <levin@chromium.org>
3670
3671         Reviewed by Kenneth Russell.
3672
3673         Fix strict OwnPtrs in ContextMenuController.cpp
3674         https://bugs.webkit.org/show_bug.cgi?id=59375
3675
3676         * page/ContextMenuController.cpp:
3677         (WebCore::ContextMenuController::createContextMenu):
3678         (WebCore::separatorItem):
3679
3680 2011-04-25  Adam Barth  <abarth@webkit.org>
3681
3682         Reviewed by Darin Adler.
3683
3684         CheckedRadioButton should play nice with strict OwnPtr
3685         https://bugs.webkit.org/show_bug.cgi?id=59386
3686
3687         * dom/CheckedRadioButtons.cpp:
3688         (WebCore::CheckedRadioButtons::addButton):
3689
3690 2011-04-25  Adam Barth  <abarth@webkit.org>
3691
3692         Reviewed by David Levin.
3693
3694         Resource*.cpp should play nice with strict OwnPtrs
3695         https://bugs.webkit.org/show_bug.cgi?id=59383
3696
3697         * bridge/runtime_method.cpp:
3698         (JSC::RuntimeMethod::RuntimeMethod):
3699         * platform/network/ResourceHandle.cpp:
3700         (WebCore::ResourceHandle::ResourceHandle):
3701         * platform/network/ResourceResponseBase.cpp:
3702         (WebCore::ResourceResponseBase::adopt):
3703         (WebCore::ResourceResponseBase::copyData):
3704
3705 2011-04-25  Adam Barth  <abarth@webkit.org>
3706
3707         Reviewed by David Levin.
3708
3709         Page*.cpp and objc_runtime.mm should play nice with strict OwnPtrs
3710         https://bugs.webkit.org/show_bug.cgi?id=59374
3711
3712         * bridge/objc/objc_runtime.mm:
3713         (JSC::Bindings::callObjCFallbackObject):
3714         * page/Page.cpp:
3715         (WebCore::Page::Page):
3716         (WebCore::Page::initGroup):
3717         * page/PageGroup.cpp:
3718         (WebCore::PageGroup::addUserScriptToWorld):
3719         (WebCore::PageGroup::addUserStyleSheetToWorld):
3720         * page/mac/PageMac.cpp:
3721         (WebCore::Page::addSchedulePair):
3722
3723 2011-04-25  Geoffrey Garen  <ggaren@apple.com>
3724
3725         Build fix: This time for sure!
3726         
3727         * dom/make_names.pl:
3728
3729 2011-04-25  Geoffrey Garen  <ggaren@apple.com>
3730
3731         Build fix: Let's edit the script instead of the autogenrated file. That
3732         way, our change will stand the test of time.
3733
3734         * dom/make_names.pl:
3735
3736 2011-04-25  Adam Barth  <abarth@webkit.org>
3737
3738         Reviewed by David Levin.
3739
3740         Fix strict OwnPtrs in HTMLMediaElement and HTTPHeaderMap
3741         https://bugs.webkit.org/show_bug.cgi?id=59368
3742
3743         * html/HTMLMediaElement.cpp:
3744         (WebCore::HTMLMediaElement::HTMLMediaElement):
3745         * platform/network/HTTPHeaderMap.cpp:
3746         (WebCore::HTTPHeaderMap::copyData):
3747
3748 2011-04-25  James Robinson  <jamesr@chromium.org>
3749
3750         Reviewed by Adam Barth.
3751
3752         Fix strict OwnPtr violations in Render*.cpp
3753         https://bugs.webkit.org/show_bug.cgi?id=59361
3754
3755         * rendering/RenderBlock.cpp:
3756         (WebCore::RenderBlock::RenderBlock):
3757         (WebCore::RenderBlock::finishDelayUpdateScrollInfo):
3758         * rendering/RenderBox.cpp:
3759         (WebCore::RenderBox::addLayoutOverflow):
3760         (WebCore::RenderBox::addVisualOverflow):
3761         * rendering/RenderButton.cpp:
3762         (WebCore::RenderButton::styleDidChange):
3763         * rendering/RenderLayer.cpp:
3764         (WebCore::RenderLayer::updateTransform):
3765         (WebCore::RenderLayer::paintChildLayerIntoColumns):
3766         (WebCore::RenderLayer::hitTestChildLayerColumns):
3767         (WebCore::RenderLayer::ensureBacking):
3768         * rendering/RenderTable.cpp:
3769         (WebCore::RenderTable::styleDidChange):
3770         * rendering/RenderView.cpp:
3771         (WebCore::RenderView::compositor):
3772         * rendering/style/RenderStyle.cpp:
3773         (WebCore::RenderStyle::addCachedPseudoStyle):
3774         (WebCore::RenderStyle::accessCounterDirectives):
3775         (WebCore::RenderStyle::accessAnimations):
3776         (WebCore::RenderStyle::accessTransitions):
3777         * rendering/svg/RenderSVGResourceFilter.cpp:
3778         (WebCore::RenderSVGResourceFilter::applyResource):
3779         * rendering/svg/SVGResources.cpp:
3780         (WebCore::SVGResources::SVGResources):
3781
3782 2011-04-25  Adam Barth  <abarth@webkit.org>
3783
3784         Attempt to fix the compile.
3785
3786         * platform/graphics/MediaPlayer.cpp:
3787         (WebCore::MediaPlayer::loadWithNextMediaEngine):
3788
3789 2011-04-25  Geoffrey Garen  <ggaren@apple.com>
3790
3791         Rubber-stamped by Beth Dakin.
3792
3793         Merged CREATE_DOM_NODE_WRAPPER and CREATE_DOM_OBJECT_WRAPPER into 
3794         CREATE_DOM_WRAPPER because there's no meaningful difference between
3795         them anymore.
3796
3797         * bindings/js/JSCDATASectionCustom.cpp:
3798         (WebCore::toJSNewlyCreated):
3799         * bindings/js/JSCSSRuleCustom.cpp:
3800         (WebCore::toJS):
3801         * bindings/js/JSCSSValueCustom.cpp:
3802         (WebCore::toJS):
3803         * bindings/js/JSDOMBinding.h:
3804         * bindings/js/JSDocumentCustom.cpp:
3805         (WebCore::toJS):
3806         * bindings/js/JSElementCustom.cpp:
3807         (WebCore::toJSNewlyCreated):
3808         * bindings/js/JSEventCustom.cpp:
3809         (WebCore::toJS):
3810         * bindings/js/JSHTMLCollectionCustom.cpp:
3811         (WebCore::toJS):
3812         * bindings/js/JSImageDataCustom.cpp:
3813         (WebCore::toJS):
3814         * bindings/js/JSNodeCustom.cpp:
3815         (WebCore::createWrapperInline):
3816         * bindings/js/JSSVGPathSegCustom.cpp:
3817         (WebCore::toJS):
3818         * bindings/js/JSStyleSheetCustom.cpp:
3819         (WebCore::toJS):
3820         * bindings/js/JSTextCustom.cpp:
3821         (WebCore::toJSNewlyCreated):
3822         * bindings/js/JSWebKitCSSMatrixCustom.cpp:
3823         (WebCore::JSWebKitCSSMatrixConstructor::constructJSWebKitCSSMatrix):
3824         * bindings/js/JSWebSocketCustom.cpp:
3825         (WebCore::JSWebSocketConstructor::constructJSWebSocket):
3826         * bindings/js/JSXMLHttpRequestCustom.cpp:
3827         (WebCore::JSXMLHttpRequestConstructor::constructJSXMLHttpRequest):
3828         * bindings/js/JSXSLTProcessorCustom.cpp:
3829         (WebCore::JSXSLTProcessorConstructor::constructJSXSLTProcessor):
3830
3831 2011-04-25  Adam Barth  <abarth@webkit.org>
3832
3833         Reviewed by James Robinson.
3834
3835         HTMLDocumentParser should play nice with OwnPtrs
3836         https://bugs.webkit.org/show_bug.cgi?id=59363
3837
3838         * html/parser/HTMLDocumentParser.cpp:
3839         (WebCore::HTMLDocumentParser::pumpTokenizer):
3840
3841 2011-04-25  Adam Barth  <abarth@webkit.org>
3842
3843         Reviewed by James Robinson.
3844
3845         Frame.cpp should work with strict OwnPtrs
3846         https://bugs.webkit.org/show_bug.cgi?id=59360
3847
3848         * page/Frame.cpp:
3849         (WebCore::createRegExpForLabels):
3850
3851 2011-04-25  Adam Barth  <abarth@webkit.org>
3852
3853         Reviewed by David Levin.
3854
3855         Fix strict OwnPtr in Element.cpp
3856         https://bugs.webkit.org/show_bug.cgi?id=59357
3857
3858         * dom/NodeRareData.h:
3859         (WebCore::NodeRareData::ensureEventTargetData):
3860
3861 2011-04-25  Adam Barth  <abarth@webkit.org>
3862
3863         Reviewed by David Levin.
3864
3865         Fix strict OwnPtr issues in Media*.cpp
3866         https://bugs.webkit.org/show_bug.cgi?id=59354
3867
3868         There's still a tricky case in MediaPlayer.cpp, but we'll worry about
3869         that later.
3870
3871         * css/MediaQueryMatcher.cpp:
3872         (WebCore::MediaQueryMatcher::addListener):
3873         * dom/Document.cpp:
3874         * platform/graphics/MediaPlayer.cpp:
3875         (WebCore::createNullMediaPlayer):
3876
3877 2011-04-25  James Robinson  <jamesr@chromium.org>
3878
3879         Reviewed by David Levin.
3880
3881         Fix strict OwnPtr violations in ListHashSet and RenderLayerCompositor
3882         https://bugs.webkit.org/show_bug.cgi?id=59353
3883
3884         * rendering/RenderLayerCompositor.cpp:
3885         (WebCore::RenderLayerCompositor::RenderLayerCompositor):
3886
3887 2011-04-25  Adam Barth  <abarth@webkit.org>
3888
3889         Reviewed by James Robinson.
3890
3891         Worker*.cpp should work with strict OwnPtrs
3892         https://bugs.webkit.org/show_bug.cgi?id=59346
3893
3894         * inspector/WorkerInspectorController.cpp:
3895         (WebCore::WorkerInspectorController::WorkerInspectorController):
3896         * workers/WorkerContext.cpp:
3897         (WebCore::WorkerContext::WorkerContext):
3898         * workers/WorkerRunLoop.cpp:
3899         (WebCore::WorkerRunLoop::WorkerRunLoop):
3900         * workers/WorkerScriptLoader.cpp:
3901         (WebCore::WorkerScriptLoader::createResourceRequest):
3902
3903 2011-04-25  James Robinson  <jamesr@chromium.org>
3904
3905         Reviewed by Adam Barth.
3906
3907         Remove bad use of OwnPtr::set() in IconDatabase.cpp
3908         https://bugs.webkit.org/show_bug.cgi?id=59344
3909
3910         Needed for strict OwnPtr compliance.
3911
3912         * loader/icon/IconDatabase.cpp:
3913         (WebCore::readySQLiteStatement):
3914
3915 2011-04-25  Adam Barth  <abarth@webkit.org>
3916
3917         Reviewed by Maciej Stachowiak.
3918
3919         ImageBuffer.h should work with strict OwnPtrs
3920         https://bugs.webkit.org/show_bug.cgi?id=59341
3921
3922         This patch is to prepare for the strict OwnPtr hack-a-thon.
3923
3924         * platform/graphics/ImageBuffer.h:
3925         (WebCore::ImageBuffer::create):
3926
3927 2011-04-25  Steve Falkenburg  <sfalken@apple.com>
3928
3929         Reviewed by Brian Weinstein.
3930
3931         WebCore build on Windows should include windows.h in its precompiled header to speed builds
3932         https://bugs.webkit.org/show_bug.cgi?id=59339
3933
3934         windows.h is included by several of the underlying wtf headers, including Atomics.h and
3935         ThreadingPrimitives.h anyway, so include it in the WebCorePrefix.h to speed up compilation.
3936         
3937         On my 8 core Mac Pro, this reduces a clean rebuild of debug WebCore from 8 minutes to 7 minutes
3938         (a 12% speedup).
3939
3940         * WebCorePrefix.h: Include windows.h
3941
3942 2011-04-25  Martin Robinson  <mrobinson@igalia.com>
3943
3944         Reviewed by Xan Lopez.
3945
3946         [GTK] Crash in WebCore::FrameView::notifyPageThatContentAreaWillPaint()
3947         https://bugs.webkit.org/show_bug.cgi?id=59311
3948
3949         * platform/gtk/MainFrameScrollbarGtk.cpp:
3950         (MainFrameScrollbarGtk::attachAdjustment): Before connecting an adjustment to a scrollbar
3951         disconnect any lingering signal handlers. This prevents an adjustment from controlling the
3952         active ScrollView and some zombie ScrollView.
3953
3954 2011-04-25  Geoffrey Garen  <ggaren@apple.com>
3955
3956         Another shot at fixing the EFL build.
3957
3958         * UseJSC.cmake:
3959         * bindings/js/JSDOMBinding.cpp:
3960
3961 2011-04-25  Geoffrey Garen  <ggaren@apple.com>
3962
3963         Try to fix EFL build.
3964
3965         * UseJSC.cmake: Added a missing file.
3966
3967 2011-04-25  Geoffrey Garen  <ggaren@apple.com>
3968
3969         Reviewed by Oliver Hunt.
3970
3971         Removed a use of markDOMObjectWrapper: ActiveDOMObjects, Workers, and MessagePorts
3972         https://bugs.webkit.org/show_bug.cgi?id=59333
3973
3974         * WebCore.xcodeproj/project.pbxproj: Added .idl files for easier editing.
3975
3976         * bindings/js/JSDOMBinding.cpp:
3977         * bindings/js/JSDOMBinding.h:
3978         * bindings/js/JSDocumentCustom.cpp:
3979         * bindings/js/JSWorkerContextCustom.cpp:
3980         (WebCore::JSWorkerContext::visitChildren): Removed now-unused functions.
3981
3982         * bindings/scripts/CodeGeneratorJS.pm: Added support for ActiveDOMObject
3983         lifetime management.
3984
3985         * dom/Document.idl: No need for a custom mark function anymore, since
3986         ActiveDOMObjets now manage their own lifetimes.
3987
3988         * dom/MessagePort.cpp:
3989         (WebCore::MessagePort::hasPendingActivity): Correctly report that we
3990         have pending activity when we're remotely entangled, instead of relying
3991         on our clients to know this about us and do the check for us.
3992
3993         * dom/MessagePort.h: FIXME!
3994
3995         * dom/MessagePort.idl:
3996         * fileapi/DOMFileSystem.idl:
3997         * fileapi/FileReader.idl:
3998         * fileapi/FileWriter.idl:
3999         * notifications/Notification.idl:
4000         * notifications/NotificationCenter.idl:
4001         * page/EventSource.idl:
4002         * storage/IDBDatabase.idl:
4003         * storage/IDBRequest.idl:
4004         * storage/IDBTransaction.idl:
4005         * webaudio/AudioContext.idl:
4006         * websockets/WebSocket.idl:
4007         * workers/AbstractWorker.idl:
4008         * workers/SharedWorker.idl:
4009         * workers/Worker.idl: Opt in to ActiveDOMObject lifetime management.
4010
4011         * workers/WorkerContext.cpp:
4012         (WebCore::WorkerContext::hasPendingActivity): No need to make up for
4013         MessagePort::hasPendingActivity being wrong anymore, since it's now right.
4014
4015         * xml/XMLHttpRequest.idl: Opt in to ActiveDOMObject lifetime management.
4016
4017 2011-04-25  Yury Semikhatsky  <yurys@chromium.org>
4018
4019         Reviewed by Pavel Feldman.
4020
4021         Web Inspector: worker messages should be routed to corresponding worker front-end
4022         https://bugs.webkit.org/show_bug.cgi?id=59323
4023
4024         Added WorkerManager which is responsible for routing messages between
4025         Page inspector front-end and Worker inspector front-ends.
4026
4027         * WebCore.gypi:
4028         * inspector/front-end/WebKit.qrc:
4029         * inspector/front-end/WorkerManager.js: Added.
4030         (WebInspector.WorkerManager):
4031         (WebInspector.WorkerManager.loaded.InspectorFrontendHost.sendMessageToBackend):
4032         (WebInspector.WorkerManager.loaded.InspectorFrontendHost.loaded):
4033         (WebInspector.WorkerManager.loaded):
4034         (WebInspector.WorkerFrontendStub):
4035         (WebInspector.WorkerFrontendStub.prototype._receiveMessage):
4036         (WebInspector.WorkerDispatcher):
4037         (WebInspector.WorkerDispatcher.prototype._receiveMessage):
4038         (WebInspector.WorkerDispatcher.prototype.workerCreated):
4039         (WebInspector.WorkerDispatcher.prototype.dispatchMessageFromWorker):
4040         * inspector/front-end/inspector.html:
4041         * inspector/front-end/inspector.js:
4042         (WebInspector.loaded):
4043
4044 2011-04-25  Annie Sullivan  <sullivan@chromium.org>
4045
4046         Reviewed by Pavel Feldman.
4047
4048         Web Inspector: [Resources panel] Should be easy to copy data.
4049         https://bugs.webkit.org/show_bug.cgi?id=45662
4050
4051         Adds context menu items to copy resource location, resource request headers, and resource response headers.
4052
4053         * inspector/front-end/NetworkPanel.js:
4054         (WebInspector.NetworkPanel.prototype._contextMenu): Add new items to context menu.
4055         (WebInspector.NetworkPanel.prototype._exportLocation): Copy resource location to clipboard.
4056         (WebInspector.NetworkPanel.prototype._exportRequestHeaders): Copy resource request headers to clipboard.
4057         (WebInspector.NetworkPanel.prototype._exportResponseHeaders): Copy resource response headers to clipboard.
4058         * inspector/front-end/Resource.js:
4059         (WebInspector.Resource.prototype.get requestHeadersText): If _requestHeadersText is undefined, generate it from requestHeaders.
4060         (WebInspector.Resource.prototype.get responseHeadersText): If _responseHeadersText is undefined, generate it form responseHeaders.
4061
4062 2011-04-25  Alexander Pavlov  <apavlov@chromium.org>
4063
4064         Reviewed by Yury Semikhatsky.
4065
4066         Web Inspector: CSS is parsed improperly when saved in UTF-8 with a BOM
4067         https://bugs.webkit.org/show_bug.cgi?id=59322
4068
4069         Use TextResourceDecoder to determine external stylesheet charsets correctly.
4070
4071         Test: inspector/styles/parse-utf8-bom.html
4072
4073         * inspector/InspectorStyleSheet.cpp:
4074         (WebCore::InspectorStyleSheet::originalStyleSheetText):
4075
4076 2011-04-25  Pavel Feldman  <pfeldman@google.com>
4077
4078         Not reviewed: Inspector.json cleanup.
4079
4080         * inspector/Inspector.json:
4081
4082 2011-04-25  Yury Semikhatsky  <yurys@chromium.org>
4083
4084         Reviewed by Pavel Feldman.
4085
4086         Web Inspector: introduce InspectorWorkerAgent
4087         https://bugs.webkit.org/show_bug.cgi?id=59320
4088
4089         InspectorWorkerAgent is responsible for routing inspector messages
4090         between worker context inspector agents and corresponding worker
4091         inspector front-end.
4092
4093         * CMakeLists.txt:
4094         * GNUmakefile.list.am:
4095         * WebCore.gypi:
4096         * WebCore.pro:
4097         * WebCore.vcproj/WebCore.vcproj:
4098         * WebCore.xcodeproj/project.pbxproj:
4099         * inspector/CodeGeneratorInspector.pm:
4100         * inspector/Inspector.json:
4101         * inspector/InspectorAgent.cpp:
4102         (WebCore::InspectorAgent::InspectorAgent):
4103         (WebCore::InspectorAgent::setFrontend):
4104         (WebCore::InspectorAgent::disconnectFrontend):
4105         * inspector/InspectorAgent.h:
4106         (WebCore::InspectorAgent::workerAgent):
4107         * inspector/InspectorController.cpp:
4108         (WebCore::InspectorController::connectFrontend):
4109         (WebCore::InspectorController::disconnectFrontend):
4110         * inspector/InspectorInstrumentation.cpp:
4111         (WebCore::InspectorInstrumentation::didStartWorkerContextImpl):
4112         * inspector/InspectorInstrumentation.h:
4113         (WebCore::InspectorInstrumentation::willStartWorkerContext):
4114         (WebCore::InspectorInstrumentation::didStartWorkerContext):
4115         * inspector/InspectorWorkerAgent.cpp: Added.
4116         (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::WorkerFrontendChannel):
4117         (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::~WorkerFrontendChannel):