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