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