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