9953316afe87bc43b16ca4d6c7239913b23d88a5
[WebKit-https.git] / WebCore / ChangeLog
1 2010-08-07  Nikolas Zimmermann  <nzimmermann@rim.com>
2
3         Reviewed by Daniel Bates.
4
5         Pattern fill with image not rendered after reload
6         https://bugs.webkit.org/show_bug.cgi?id=41596
7
8         Fixed by a one-liner. Instead of just invalidating it's own resources, images also have to update
9         resources in the ancestor chain, if imageChanged() has been called (for example, a slow loading image)
10
11         Test: http/tests/misc/slow-loading-image-in-pattern.html
12
13         * rendering/RenderSVGImage.cpp:
14         (WebCore::RenderSVGImage::imageChanged):
15
16 2010-08-06  Dirk Schulze  <krit@webkit.org>
17
18         Reviewed by Nikolas Zimmermann.
19
20         Generalize SVGPathParser to allow more than just strings as input source
21         https://bugs.webkit.org/show_bug.cgi?id=43618
22
23         Generalize SVGPathParser, by allowing different parsing sources than just strings.
24         For now only a SVGPathStringSource is available, parsing from bytestreams follows soon.
25         Each client that wants to parse strings, like Path or SVGPathSegList objects, only
26         needs to use the new central SVGPathParserFactory, which glues consumer and sources together.
27         Moved the SVGPathSegType enum from SVGPathSeg class in WebCore namespace, for
28         easier access throughout the SVG code.
29
30         Doesn't affect any tests.
31
32         * Android.mk:
33         * CMakeLists.txt
34         * GNUmakefile.am:
35         * WebCore.gypi:
36         * WebCore.pro:
37         * WebCore.vcproj/WebCore.vcproj:
38         * WebCore.xcodeproj/project.pbxproj
39         * svg/SVGAllInOne.cpp:
40         * svg/SVGAnimateElement.cpp:
41         (WebCore::SVGAnimateElement::calculateFromAndToValues):
42         * svg/SVGAnimateMotionElement.cpp:
43         (WebCore::SVGAnimateMotionElement::parseMappedAttribute):
44         * svg/SVGGlyphElement.cpp:
45         (WebCore::parsePathData):
46         * svg/SVGPathBuilder.cpp:
47         (WebCore::SVGPathBuilder::SVGPathBuilder):
48         (WebCore::SVGPathBuilder::moveTo):
49         (WebCore::SVGPathBuilder::lineTo):
50         (WebCore::SVGPathBuilder::curveToCubic):
51         (WebCore::SVGPathBuilder::closePath):
52         * svg/SVGPathBuilder.h:
53         (WebCore::SVGPathBuilder::setCurrentPath):
54         (WebCore::SVGPathBuilder::arcTo):
55         * svg/SVGPathConsumer.h:
56         * svg/SVGPathElement.cpp:
57         (WebCore::SVGPathElement::parseMappedAttribute):
58         * svg/SVGPathParser.cpp:
59         (WebCore::SVGPathParser::SVGPathParser):
60         (WebCore::SVGPathParser::parseClosePathSegment):
61         (WebCore::SVGPathParser::parseMoveToSegment):
62         (WebCore::SVGPathParser::parseLineToSegment):
63         (WebCore::SVGPathParser::parseLineToHorizontalSegment):
64         (WebCore::SVGPathParser::parseLineToVerticalSegment):
65         (WebCore::SVGPathParser::parseCurveToCubicSegment):
66         (WebCore::SVGPathParser::parseCurveToCubicSmoothSegment):
67         (WebCore::SVGPathParser::parseCurveToQuadraticSegment):
68         (WebCore::SVGPathParser::parseCurveToQuadraticSmoothSegment):
69         (WebCore::SVGPathParser::parseArcToSegment):
70         (WebCore::SVGPathParser::parsePathDataFromSource):
71         (WebCore::SVGPathParser::decomposeArcToCubic):
72         * svg/SVGPathParser.h:
73         (WebCore::SVGPathParser::setCurrentConsumer):
74         * svg/SVGPathParserFactory.cpp: Added.
75         (WebCore::globalSVGPathBuilder):
76         (WebCore::globalSVGPathSegListBuilder):
77         (WebCore::globalSVGPathParser):
78         (WebCore::SVGPathParserFactory::self):
79         (WebCore::SVGPathParserFactory::SVGPathParserFactory):
80         (WebCore::SVGPathParserFactory::~SVGPathParserFactory):
81         (WebCore::SVGPathParserFactory::buildPathFromString):
82         (WebCore::SVGPathParserFactory::buildSVGPathSegListFromString):
83         * svg/SVGPathParserFactory.h: Added.
84         * svg/SVGPathSeg.h:
85         (WebCore::):
86         (WebCore::SVGPathSeg::~SVGPathSeg):
87         (WebCore::SVGPathSeg::):
88         (WebCore::SVGPathSeg::pathSegType):
89         (WebCore::SVGPathSeg::pathSegTypeAsLetter):
90         (WebCore::SVGPathSeg::toString):
91         (WebCore::SVGPathSeg::associatedAttributeName):
92         (WebCore::SVGPathSeg::SVGPathSeg):
93         (WebCore::SVGPathSegSingleCoord::SVGPathSegSingleCoord):
94         (WebCore::SVGPathSegSingleCoord::setX):
95         (WebCore::SVGPathSegSingleCoord::x):
96         (WebCore::SVGPathSegSingleCoord::setY):
97         (WebCore::SVGPathSegSingleCoord::y):
98         (WebCore::SVGPathSegSingleCoord::toString):
99         * svg/SVGPathSegList.cpp:
100         (WebCore::SVGPathSegList::getPathSegAtLength):
101         (WebCore::SVGPathSegList::toPathData):
102         (WebCore::SVGPathSegList::createAnimated):
103         * svg/SVGPathSegListBuilder.cpp:
104         (WebCore::SVGPathSegListBuilder::SVGPathSegListBuilder):
105         (WebCore::SVGPathSegListBuilder::moveTo):
106         (WebCore::SVGPathSegListBuilder::lineTo):
107         (WebCore::SVGPathSegListBuilder::curveToCubic):
108         (WebCore::SVGPathSegListBuilder::curveToCubicSmooth):
109         (WebCore::SVGPathSegListBuilder::curveToQuadratic):
110         (WebCore::SVGPathSegListBuilder::curveToQuadraticSmooth):
111         (WebCore::SVGPathSegListBuilder::arcTo):
112         * svg/SVGPathSegListBuilder.h:
113         (WebCore::SVGPathSegListBuilder::setCurrentSVGPathSegList):
114         * svg/SVGPathSource.h: Added.
115         (WebCore::SVGPathSource::~SVGPathSource):
116         (WebCore::SVGPathSource::SVGPathSource):
117         * svg/SVGPathStringSource.cpp: Added.
118         (WebCore::SVGPathStringSource::SVGPathStringSource):
119         (WebCore::SVGPathStringSource::~SVGPathStringSource):
120         (WebCore::SVGPathStringSource::endOfStream):
121         (WebCore::SVGPathStringSource::parseFloat):
122         (WebCore::SVGPathStringSource::parseFlag):
123         (WebCore::SVGPathStringSource::skipSpaces):
124         (WebCore::SVGPathStringSource::parseSVGSegmentType):
125         (WebCore::SVGPathStringSource::hasRemainingCoordinatesInCurrentCommand):
126         * svg/SVGPathStringSource.h: Added.
127         (WebCore::SVGPathStringSource::create):
128
129 2010-08-06  Robert Hogan  <robert@webkit.org>
130
131         Reviewed by Adam Barth.
132
133         Define setPrivateBrowsingEnabled()
134         https://bugs.webkit.org/show_bug.cgi?id=42283
135
136         Define the scope of 'private browsing' in WebKit
137         See also https://bugs.webkit.org/show_bug.cgi?id=41801
138
139         * page/Settings.h:
140
141 2010-08-06  Adam Barth  <abarth@webkit.org>
142
143         Reviewed by Eric Seidel.
144
145         REGRESSION (r64712): YouTube video pages have contents of <noembed> elements overlapping the video description
146         https://bugs.webkit.org/show_bug.cgi?id=43605
147
148         The old parser used to drop <noembed> on the floor.  We're supposed to
149         add it to the DOM, but we don't want to create a renderer for it.
150
151         * html/HTMLElement.cpp:
152         (WebCore::HTMLElement::rendererIsNeeded):
153
154 2010-08-06  Tony Gentilcore  <tonyg@chromium.org>
155
156         Reviewed by Adam Barth.
157
158         Fix style violations in Document
159         https://bugs.webkit.org/show_bug.cgi?id=43657
160
161         No new tests because no new functionality.
162
163         * dom/Document.cpp:
164         (WebCore::acceptsEditingFocus):
165         (WebCore::Document::Document):
166         (WebCore::Document::importNode):
167         (WebCore::Document::adoptNode):
168         (WebCore::Document::getElementById):
169         (WebCore::Document::readyState):
170         (WebCore::Document::createTreeWalker):
171         (WebCore::Document::shouldScheduleLayout):
172         (WebCore::Document::nextFocusableNode):
173         (WebCore::Document::previousFocusableNode):
174         (WebCore::Document::nodeAbsIndex):
175         (WebCore::Document::nodeWithAbsIndex):
176         (WebCore::Document::childTypeAllowed):
177         (WebCore::Document::canReplaceChild):
178         (WebCore::Document::recalcStyleSelector):
179         (WebCore::Document::setFocusedNode):
180         (WebCore::Document::attachNodeIterator):
181         (WebCore::Document::detachNodeIterator):
182         (WebCore::Document::parseQualifiedName):
183         (WebCore::Document::getImageMap):
184         (WebCore::Document::setInPageCache):
185         (WebCore::Document::addMarker):
186         (WebCore::Document::copyMarkers):
187         (WebCore::Document::shiftMarkers):
188         (WebCore::Document::setMarkersActive):
189         (WebCore::Document::parentDocument):
190         (WebCore::Document::topDocument):
191         (WebCore::FormElementKeyHash::hash):
192         (WebCore::Document::initSecurityContext):
193         * dom/Document.h:
194         (WebCore::Document::incDOMTreeVersion):
195         (WebCore::Document::domTreeVersion):
196
197 2010-08-06  Eric Carlson  <eric.carlson@apple.com>
198
199         Unreviewed, release Qt build fix.
200
201         * rendering/RenderLayerBacking.cpp:
202         (WebCore::RenderLayerBacking::containsPaintedContent): Guard call to toRenderVideo()
203         with #if ENABLE(VIDEO).
204
205 2010-08-06  Eric Carlson  <eric.carlson@apple.com>
206
207         Reviewed by Simon Fraser.
208
209         HTML5 "video" tag with poster frame defined "flashes" right before movie displays
210         https://bugs.webkit.org/show_bug.cgi?id=37591
211         <rdar://problem/5650561>
212
213         If a video element has a poster frame, display it until the playback is requested or the movie's
214         time is changed.
215
216         Test: compositing/video/video-poster.html
217
218         * html/HTMLMediaElement.cpp:
219         (WebCore::HTMLMediaElement::HTMLMediaElement): Initialize m_displayMode.
220         (WebCore::HTMLMediaElement::prepareForLoad): Set m_displayMode to Unknown.
221         (WebCore::HTMLMediaElement::loadResource): Call updateDisplayState to let it set configure
222         the poster, if necessary.
223         (WebCore::HTMLMediaElement::noneSupported): updatePosterImage -> updateDisplayState.
224         (WebCore::HTMLMediaElement::setNetworkState): Ditto.
225         (WebCore::HTMLMediaElement::setReadyState): Ditto.
226         (WebCore::HTMLMediaElement::finishSeek): Set display mode to Video so a video frame will be
227         displayed if a poster is currently visible.
228         (WebCore::HTMLMediaElement::mediaPlayerRepaint): updatePosterImage -> updateDisplayState.
229         (WebCore::HTMLMediaElement::updatePlayState): Set display mode to Video.
230         * html/HTMLMediaElement.h:
231         (WebCore::HTMLMediaElement::displayMode): New.
232         (WebCore::HTMLMediaElement::setDisplayMode): Ditto.
233         (WebCore::HTMLMediaElement::updateDisplayState): Ditto.
234
235         * html/HTMLVideoElement.cpp:
236         (WebCore::HTMLVideoElement::HTMLVideoElement): Remove m_shouldDisplayPosterImage.
237         (WebCore::HTMLVideoElement::attach): Call shouldDisplayPosterImage instead of checking
238         m_shouldDisplayPosterImage directly.
239         (WebCore::HTMLVideoElement::detach): Ditto.
240         (WebCore::HTMLVideoElement::parseMappedAttribute): Set m_displayMode to Unknown before calling 
241         updateDisplayState so shouldDisplayPosterImage() will return the correct result. Remove the
242         PLUGIN_PROXY_FOR_VIDEO code, it is now in updateDisplayState.
243         (WebCore::HTMLVideoElement::setDisplayMode): Renamed from updatePosterImage and rework logic
244         so we tell the media engine it is OK to display video frames when there is no poster, or 
245         once the media engine has something to display and the movie has started or seeked.
246         (WebCore::HTMLVideoElement::updateDisplayState): New, manage display mode based on poster 
247         attribute.
248         * html/HTMLVideoElement.h:
249         (WebCore::HTMLVideoElement::shouldDisplayPosterImage):
250
251         * platform/graphics/MediaPlayer.cpp:
252         (WebCore::MediaPlayer::prepareForRendering): New, call media engine's prepareForRendering.
253         * platform/graphics/MediaPlayer.h:
254         * platform/graphics/MediaPlayerPrivate.h:
255         (WebCore::MediaPlayerPrivateInterface::prepareForRendering):
256
257         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
258         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
259         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): Initialize m_isAllowedToRender.
260         (WebCore::MediaPlayerPrivate::setUpVideoRendering):
261         (WebCore::MediaPlayerPrivate::isReadyForVideoSetup): Renamed from isReadyForRendering.
262         (WebCore::MediaPlayerPrivate::prepareForRendering): New, set m_isAllowedToRender and
263         inform the client that render tree should be updated so we correctly switch from showing
264         the poster, which often doens't use a layer, to showing video frames, which do.
265         (WebCore::MediaPlayerPrivate::updateStates): Don't call setUpVideoRendering until 
266         isReadyForVideoSetup() returns true.
267         (WebCore::MediaPlayerPrivate::supportsAcceleratedRendering): isReadyForRendering -> isReadyForVideoSetup
268
269         * rendering/RenderLayerBacking.cpp:
270         (WebCore::RenderLayerBacking::containsPaintedContent): Only consider video when displaying
271         video frames so a poster won't force compositing mode.
272
273         * rendering/RenderLayerCompositor.cpp:
274         (WebCore::RenderLayerCompositor::requiresCompositingForVideo): Ditto.
275
276         * rendering/RenderVideo.cpp:
277         (WebCore::RenderVideo::shouldDisplayVideo): New, return true when not displaying a poster.
278         * rendering/RenderVideo.h:
279
280 2010-08-06  James Robinson  <jamesr@chromium.org>
281
282         Reviewed by Simon Fraser.
283
284         Accelerated 2d canvases should get compositing layers
285         https://bugs.webkit.org/show_bug.cgi?id=43362
286
287         Allows for 2d canvas rendering contexts to use a GraphicsContext3D for
288         accelerated rendering.  The rendering context holds the GraphicsContext3D
289         alive and exposes it to the compositor.  The 3d context itself is passed
290         down through the GraphicsContext to use for actual rendering:
291         https://bug-43362-attachments.webkit.org/attachment.cgi?id=63557
292
293         This approach will let us simultaneously prototype accelerated techniques
294         for canvas 2d and revise the design of canvas elements without destabilizing
295         all ports.
296
297         * html/HTMLCanvasElement.cpp:
298         (WebCore::HTMLCanvasElement::getContext):
299         (WebCore::HTMLCanvasElement::willDraw):
300         (WebCore::HTMLCanvasElement::makeRenderingResultsAvailable):
301         * html/canvas/CanvasRenderingContext.h:
302         (WebCore::CanvasRenderingContext::paintRenderingResultsToCanvas):
303         * html/canvas/CanvasRenderingContext2D.cpp:
304         (WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D):
305         (WebCore::CanvasRenderingContext2D::isAccelerated):
306         (WebCore::CanvasRenderingContext2D::reset):
307         (WebCore::CanvasRenderingContext2D::willDraw):
308         (WebCore::CanvasRenderingContext2D::paintRenderingResultsToCanvas):
309         * html/canvas/CanvasRenderingContext2D.h:
310         (WebCore::CanvasRenderingContext2D::graphicsContext3D):
311         * html/canvas/WebGLRenderingContext.cpp:
312         (WebCore::WebGLRenderingContext::paintRenderingResultsToCanvas):
313         * html/canvas/WebGLRenderingContext.h:
314         * platform/graphics/GraphicsContext.h:
315         * platform/graphics/skia/GraphicsContextSkia.cpp:
316         (WebCore::GraphicsContext::syncSoftwareCanvas):
317
318 2010-08-06  Eric Seidel  <eric@webkit.org>
319
320         Reviewed by Chris Fleizach.
321
322         Make AX Code use more specific RenderObject subclass types
323         https://bugs.webkit.org/show_bug.cgi?id=43632
324
325         No functional change, thus no tests.
326
327         * accessibility/AXObjectCache.cpp:
328         (WebCore::nodeHasRole):
329          - Make this take a String instead of AtomicString, to avoid
330            thrashing the atomic string hash.
331            It would be better to take a const char* here, except
332            one caller passes nullAtom.
333         (WebCore::createFromRenderer):
334          - Split this out from getOrCreate to make it simpler.
335          - No longer needs to deal with setting a "result"
336            pointer and can instead just return.
337          - I've also made this function use RenderBoxModelObject*
338            where appropriate.
339         (WebCore::AXObjectCache::getOrCreate):
340         * accessibility/AXObjectCache.h:
341         * accessibility/AccessibilityImageMapLink.cpp:
342         (WebCore::AccessibilityImageMapLink::AccessibilityImageMapLink):
343          - Fix style.
344         * accessibility/AccessibilityMenuList.cpp:
345         (WebCore::AccessibilityMenuList::AccessibilityMenuList):
346          - Use a more specific type.
347         (WebCore::AccessibilityMenuList::renderer):
348         * accessibility/AccessibilityMenuList.h:
349         (WebCore::AccessibilityMenuList::create):
350         * accessibility/AccessibilityMenuListPopup.cpp:
351          - Need RenderMenuList.h since renderer() is a RenderMenuList*
352         * accessibility/AccessibilityObject.cpp:
353         (WebCore::renderListItemContainerForNode):
354         * accessibility/AccessibilityRenderObject.cpp:
355         (WebCore::AccessibilityRenderObject::renderBoxModelObject):
356          - New helper function, similar to Node::renderBoxModelObject()
357         (WebCore::isInlineWithContinuation):
358         (WebCore::AccessibilityRenderObject::isNativeImage):
359         (WebCore::AccessibilityRenderObject::isAttachment):
360         (WebCore::AccessibilityRenderObject::isMultiSelectable):
361         (WebCore::AccessibilityRenderObject::isReadOnly):
362         (WebCore::AccessibilityRenderObject::isFieldset):
363         (WebCore::AccessibilityRenderObject::actionElement):
364         (WebCore::AccessibilityRenderObject::stringValue):
365         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
366         (WebCore::AccessibilityRenderObject::setValue):
367         (WebCore::AccessibilityRenderObject::widget):
368         (WebCore::AccessibilityRenderObject::visiblePositionForPoint):
369         (WebCore::AccessibilityRenderObject::doAccessibilityHitTest):
370         (WebCore::AccessibilityRenderObject::renderObjectIsObservable):
371         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
372         (WebCore::AccessibilityRenderObject::addChildren):
373         (WebCore::msaaRoleForRenderer):
374         * accessibility/AccessibilityRenderObject.h:
375         * accessibility/AccessibilityTable.cpp:
376         (WebCore::AccessibilityTable::isTableExposableThroughAccessibility):
377         * accessibility/AccessibilityTable.h:
378          - Remove unneeded "using namespace std".
379
380 2010-08-06  Tony Gentilcore  <tonyg@chromium.org>
381
382         Reviewed by Eric Seidel.
383
384         Factor an AsyncScriptRunner out of Document
385         https://bugs.webkit.org/show_bug.cgi?id=43633
386
387         This copies the existing implementation exactly. In the future
388         this will use PendingScript which handles ref counting without
389         the need for those manual ref()/deref()s. This is also currently
390         a trivial class, but a little more logic will be added to it to
391         support <script async>.
392
393         No new tests because no new functionality.
394
395         * Android.mk:
396         * CMakeLists.txt:
397         * GNUmakefile.am:
398         * WebCore.gypi:
399         * WebCore.pro:
400         * WebCore.vcproj/WebCore.vcproj:
401         * WebCore.xcodeproj/project.pbxproj:
402         * dom/AsyncScriptRunner.cpp: Added.
403         (WebCore::AsyncScriptRunner::AsyncScriptRunner):
404         (WebCore::AsyncScriptRunner::~AsyncScriptRunner):
405         (WebCore::AsyncScriptRunner::executeScriptSoon):
406         (WebCore::AsyncScriptRunner::suspend):
407         (WebCore::AsyncScriptRunner::resume):
408         (WebCore::AsyncScriptRunner::timerFired):
409         * dom/AsyncScriptRunner.h: Added.
410         (WebCore::AsyncScriptRunner::create):
411         (WebCore::AsyncScriptRunner::hasPendingScripts):
412         * dom/Document.cpp:
413         (WebCore::Document::Document):
414         (WebCore::Document::~Document):
415         * dom/Document.h:
416         (WebCore::Document::asyncScriptRunner):
417         * dom/ScriptElement.cpp:
418         (WebCore::ScriptElementData::notifyFinished):
419         * page/PageGroupLoadDeferrer.cpp:
420         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
421         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
422
423 2010-08-06  James Robinson  <jamesr@chromium.org>
424
425         Reviewed by Dimitri Glazkov.
426
427         [chromium] Implement GLES2Canvas/Texture in terms of GraphicsContext3D instead of direct OpenGL calls
428         https://bugs.webkit.org/show_bug.cgi?id=43608
429
430         This converts all OpenGL calls in GLES2(Canvas|Texture) to calls on the corresponding GraphicsContext3D
431         API, due to feedback on https://bugs.webkit.org/show_bug.cgi?id=43362.  Nearly all the changes are
432         applying the regex s/gl([A-Z])/m_context->%1</ and removing unnecessary makeCurrent() calls.
433         Other changes hilighted below.
434
435         * platform/graphics/chromium/GLES2Canvas.cpp:
436         (WebCore::affineTo3x3):
437         (WebCore::GLES2Canvas::GLES2Canvas):
438         (WebCore::GLES2Canvas::~GLES2Canvas):
439         (WebCore::GLES2Canvas::clearRect):
440         (WebCore::GLES2Canvas::fillRect):
441         (WebCore::GLES2Canvas::drawTexturedRect):
442         (WebCore::GLES2Canvas::applyCompositeOperator):
443         (WebCore::GLES2Canvas::getQuadVertices):
444         (WebCore::GLES2Canvas::getQuadIndices):
445             - use new typed XXArray classes for buffer uploads
446         (WebCore::loadShader):
447         (WebCore::GLES2Canvas::getSimpleProgram):
448         (WebCore::GLES2Canvas::getTexProgram):
449         (WebCore::GLES2Canvas::createTexture):
450         (WebCore::GLES2Canvas::checkGLError):
451         * platform/graphics/chromium/GLES2Canvas.h:
452         (WebCore::GLES2Canvas::context):
453         * platform/graphics/chromium/GLES2Texture.cpp:
454         (WebCore::GLES2Texture::GLES2Texture):
455         (WebCore::GLES2Texture::~GLES2Texture):
456         (WebCore::GLES2Texture::create):
457         (WebCore::convertFormat):
458         (WebCore::GLES2Texture::load):
459         (WebCore::GLES2Texture::bind):
460         * platform/graphics/chromium/GLES2Texture.h:
461         * platform/graphics/skia/GraphicsContextSkia.cpp:
462         (WebCore::GraphicsContext::fillRect):
463             - add a missing restore() call to the H/W path
464         * platform/graphics/skia/ImageSkia.cpp:
465         (WebCore::drawBitmapGLES2):
466         * platform/graphics/skia/PlatformContextSkia.cpp:
467         (WebCore::PlatformContextSkia::setGraphicsContext3D):
468         (WebCore::PlatformContextSkia::uploadSoftwareToHardware):
469             - avoid applying CTM to uploads
470         (WebCore::PlatformContextSkia::readbackHardwareToSoftware):
471         * platform/graphics/skia/PlatformContextSkia.h:
472
473 2010-08-06  James Robinson  <jamesr@chromium.org>
474
475         Reviewed by Simon Fraser.
476
477         Composited canvas should be treated the same by the compositor and not be WebGL specific
478         https://bugs.webkit.org/show_bug.cgi?id=43589
479
480         This treats all GraphicsContext3D-backed layers the same instead of special casing WebGL.
481         The cross-platform change is to rename GraphicsLayer::setContentsToWebGL() to
482         GraphicsLayer::setContentsToCanvas() and to rename all implementations.
483
484         This patch also renames the chromium class used for accelerating these layers.
485
486         Cross platform changes:
487         * WebCore.gypi:
488         * platform/graphics/GraphicsLayer.h:
489         (WebCore::GraphicsLayer::setContentsToCanvas):
490             Rename the function on the base class. GraphicsLayerCA and GraphicsLayerChromium implement this.
491         * rendering/RenderLayerBacking.cpp:
492         (WebCore::isAcceleratedCanvas):
493             Helper function to see if a renderer is associated with an accelerated compositing layer.
494         (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration):
495         (WebCore::RenderLayerBacking::containsPaintedContent):
496         (WebCore::RenderLayerBacking::rendererContentChanged):
497        Chromium specific changes:
498         * platform/graphics/chromium/CanvasLayerChromium.cpp: Added.
499         (WebCore::CanvasLayerChromium::create):
500         (WebCore::CanvasLayerChromium::CanvasLayerChromium):
501         (WebCore::CanvasLayerChromium::textureId):
502         (WebCore::CanvasLayerChromium::updateTextureContents):
503         (WebCore::CanvasLayerChromium::setContext):
504         * platform/graphics/chromium/CanvasLayerChromium.h: Added.
505         (WebCore::CanvasLayerChromium::drawsContent):
506         (WebCore::CanvasLayerChromium::ownsTexture):
507         (WebCore::CanvasLayerChromium::shaderProgramId):
508         (WebCore::CanvasLayerChromium::setShaderProgramId):
509         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
510         (WebCore::GraphicsLayerChromium::setContentsNeedsDisplay):
511         (WebCore::GraphicsLayerChromium::setContentsToCanvas):
512         * platform/graphics/chromium/GraphicsLayerChromium.h:
513         (WebCore::GraphicsLayerChromium::):
514         * platform/graphics/chromium/LayerRendererChromium.cpp:
515         (WebCore::LayerRendererChromium::drawLayer):
516         (WebCore::LayerRendererChromium::initializeSharedGLObjects):
517         * platform/graphics/chromium/LayerRendererChromium.h:
518         (WebCore::LayerRendererChromium::):
519         * platform/graphics/chromium/WebGLLayerChromium.cpp: Removed.
520         * platform/graphics/chromium/WebGLLayerChromium.h: Removed.
521         Mac specific changes:
522         * platform/graphics/mac/GraphicsLayerCA.h:
523         (WebCore::GraphicsLayerCA::):
524         * platform/graphics/mac/GraphicsLayerCA.mm:
525         (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers):
526         (WebCore::GraphicsLayerCA::updateContentsCanvasLayer):
527         (WebCore::GraphicsLayerCA::setContentsToCanvas):
528
529 2010-08-06  Patrick Gansterer  <paroga@paroga.com>
530
531         Reviewed by Eric Seidel.
532
533         Add PluginView::bindingInstance() to PluginViewNone
534         https://bugs.webkit.org/show_bug.cgi?id=42936
535
536         * bindings/js/ScriptControllerEfl.cpp:
537         (WebCore::ScriptController::createScriptInstanceForWidget): Removed workaround.
538         * plugins/PluginViewNone.cpp: Added property svn:eol-style.
539         (WebCore::PluginView::bindingInstance): Added missing method and use it on WinCE.
540
541 2010-08-06  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
542
543         Reviewed by Xan Lopez.
544
545         Use new "package" name also for the directory where the inspector
546         support files are installed.
547
548         * GNUmakefile.am:
549
550 2010-08-06  Jian Li  <jianli@chromium.org>
551
552         Fix chromium build break.
553
554         * inspector/InspectorDebuggerAgent.h:
555
556 2010-08-06  Dirk Schulze  <krit@webkit.org>
557
558         Not reviewed. Sort XCode project file.
559
560         * WebCore.xcodeproj/project.pbxproj:
561
562 2010-08-06  Jessie Berlin  <jberlin@apple.com>
563
564         Roll out http://trac.webkit.org/changeset/64801, which broke the Safari Windows Build.
565         Unreviewed.
566
567         * accessibility/AXObjectCache.h:
568         * accessibility/AccessibilityARIAGrid.h:
569         * accessibility/AccessibilityListBoxOption.h:
570         * accessibility/AccessibilityObject.h:
571         * accessibility/AccessibilityRenderObject.h:
572         * accessibility/AccessibilityTable.h:
573         * bindings/cpp/WebDOMCString.h:
574         * bindings/cpp/WebDOMString.h:
575         * bindings/gobject/ConvertToUTF8String.h:
576         * bindings/js/DOMWrapperWorld.h:
577         * bindings/js/JSDOMBinding.h:
578         * bindings/js/JSDOMWindowBase.h:
579         * bindings/js/JSMessagePortCustom.h:
580         * bindings/js/JavaScriptCallFrame.h:
581         * bindings/js/ScriptController.h:
582         * bindings/js/ScriptProfile.h:
583         * bindings/js/ScriptSourceProvider.h:
584         * bindings/js/ScriptString.h:
585         * bindings/js/WorkerScriptController.h:
586         * bindings/objc/DOMImplementationFront.h:
587         * bindings/v8/ScheduledAction.h:
588         * bindings/v8/ScriptController.h:
589         * bindings/v8/V8DOMWindowShell.h:
590         * bindings/v8/V8Proxy.h:
591         * bindings/v8/V8Utilities.h:
592         * bindings/v8/custom/V8CustomXPathNSResolver.h:
593         * bridge/c/c_utility.h:
594         * css/CSSFontSelector.h:
595         * css/CSSHelper.h:
596         * css/CSSOMUtils.h:
597         * css/CSSPrimitiveValue.h:
598         * css/MediaList.h:
599         * css/StyleBase.h:
600         * css/StyleSheetList.h:
601         * css/WebKitCSSKeyframesRule.h:
602         * dom/CheckedRadioButtons.h:
603         * dom/DOMImplementation.h:
604         * dom/DocumentMarker.h:
605         * dom/DynamicNodeList.h:
606         * dom/EventTarget.h:
607         * dom/MessagePort.h:
608         * dom/MessagePortChannel.h:
609         * dom/NameNodeList.h:
610         * dom/Node.h:
611         * dom/NodeList.h:
612         * dom/OptionGroupElement.h:
613         * dom/ScriptExecutionContext.h:
614         * dom/SelectElement.h:
615         * dom/ViewportArguments.h:
616         * dom/make_names.pl:
617         * editing/HTMLInterchange.h:
618         * editing/htmlediting.h:
619         * editing/markup.h:
620         * html/CollectionCache.h:
621         * html/DOMFormData.h:
622         * html/DataGridColumnList.h:
623         * html/DateComponents.h:
624         * html/FileStream.h:
625         * html/FileStreamProxy.h:
626         * html/FormDataList.h:
627         (WebCore::FormDataList::appendData):
628         * html/HTMLCollection.h:
629         * html/HTMLElementStack.h:
630         * html/HTMLFormattingElementList.h:
631         * html/HTMLParserQuirks.h:
632         * html/HTMLQuoteElement.h:
633         * html/HTMLScriptRunnerHost.h:
634         * html/StepRange.h:
635         * html/canvas/CanvasGradient.h:
636         * html/canvas/CanvasNumberArray.h:
637         * html/canvas/CanvasPattern.h:
638         * inspector/InjectedScript.h:
639         * inspector/InspectorCSSStore.h:
640         * inspector/InspectorClient.h:
641         * inspector/InspectorFrontendClient.h:
642         * inspector/InspectorValues.h:
643         * inspector/ScriptDebugListener.h:
644         * loader/CachedResourceClient.h:
645         * loader/CrossOriginAccessControl.h:
646         * loader/DocumentThreadableLoader.h:
647         * loader/FrameLoaderClient.h:
648         * loader/RedirectScheduler.h:
649         * loader/SubframeLoader.h:
650         * loader/appcache/DOMApplicationCache.h:
651         * loader/archive/ArchiveFactory.h:
652         * loader/icon/IconDatabaseClient.h:
653         * notifications/NotificationPresenter.h:
654         * page/Chrome.h:
655         * page/ChromeClient.h:
656         * page/Console.h:
657         * page/ContextMenuClient.h:
658         * page/DOMSelection.h:
659         * page/EditorClient.h:
660         * page/EventHandler.h:
661         * page/FrameView.h:
662         * page/GeolocationPositionCache.h:
663         * page/History.h:
664         * page/Location.h:
665         * page/Navigator.h:
666         * page/NavigatorBase.h:
667         * page/PluginHalterClient.h:
668         * page/PrintContext.h:
669         * page/SpeechInput.h:
670         * page/SpeechInputListener.h:
671         * page/animation/AnimationController.h:
672         * platform/CookieJar.h:
673         * platform/CrossThreadCopier.h:
674         * platform/DragImage.h:
675         * platform/FileSystem.h:
676         * platform/Language.h:
677         * platform/Length.h:
678         * platform/LinkHash.h:
679         * platform/LocalizationStrategy.h:
680         * platform/LocalizedStrings.h:
681         * platform/Logging.h:
682         * platform/Pasteboard.h:
683         * platform/PopupMenuClient.h:
684         * platform/SearchPopupMenu.h:
685         * platform/Widget.h:
686         * platform/cf/BinaryPropertyList.h:
687         * platform/chromium/ChromiumBridge.h:
688         * platform/chromium/ClipboardUtilitiesChromium.h:
689         * platform/cocoa/KeyEventCocoa.h:
690         * platform/graphics/Color.h:
691         * platform/graphics/FontCache.h:
692         * platform/graphics/FontData.h:
693         * platform/graphics/FontSelector.h:
694         * platform/graphics/GraphicsTypes.h:
695         * platform/graphics/Icon.h:
696         * platform/graphics/ImageBuffer.h:
697         * platform/graphics/ImageSource.h:
698         * platform/graphics/MediaPlayer.h:
699         * platform/graphics/MediaPlayerPrivate.h:
700         * platform/graphics/Path.h:
701         * platform/graphics/StringTruncator.h:
702         * platform/graphics/cairo/FontCustomPlatformData.h:
703         * platform/graphics/cairo/FontPlatformData.h:
704         * platform/graphics/cg/FontPlatformData.h:
705         * platform/graphics/cg/ImageSourceCG.h:
706         * platform/graphics/chromium/FontCustomPlatformData.h:
707         * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
708         * platform/graphics/chromium/FontPlatformDataLinux.h:
709         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
710         * platform/graphics/haiku/FontCustomPlatformData.h:
711         * platform/graphics/mac/FontCustomPlatformData.h:
712         * platform/graphics/mac/FontPlatformData.h:
713         * platform/graphics/qt/FontCustomPlatformData.h:
714         * platform/graphics/qt/FontPlatformData.h:
715         * platform/graphics/win/FontCustomPlatformData.h:
716         * platform/graphics/win/FontCustomPlatformDataCairo.h:
717         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
718         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
719         * platform/graphics/wince/FontPlatformData.h:
720         * platform/graphics/wince/MediaPlayerPrivateWince.h:
721         * platform/graphics/wince/MediaPlayerProxy.h:
722         * platform/graphics/wx/FontCustomPlatformData.h:
723         * platform/graphics/wx/FontPlatformData.h:
724         * platform/mac/PasteboardHelper.h:
725         * platform/network/DNS.h:
726         * platform/network/FormData.h:
727         * platform/network/FormDataBuilder.h:
728         * platform/network/HTTPParsers.h:
729         * platform/text/Hyphenation.h:
730         * platform/text/LineEnding.h:
731         * platform/text/TextCodec.h:
732         * platform/text/TextEncoding.h:
733         * platform/text/TextStream.h:
734         * platform/win/BString.h:
735         * platform/win/ClipboardUtilitiesWin.h:
736         * platform/win/WCDataObject.h:
737         * platform/win/WebCoreTextRenderer.h:
738         * plugins/DOMMimeType.h:
739         * plugins/DOMMimeTypeArray.h:
740         * plugins/DOMPlugin.h:
741         * plugins/DOMPluginArray.h:
742         * rendering/CounterNode.h:
743         * rendering/HitTestResult.h:
744         * rendering/RenderObjectChildList.h:
745         * rendering/RenderText.h:
746         * rendering/RenderTreeAsText.h:
747         * rendering/TextControlInnerElements.h:
748         * rendering/style/ContentData.h:
749         * rendering/style/RenderStyle.h:
750         * storage/DatabaseAuthorizer.h:
751         * storage/DatabaseTrackerClient.h:
752         * storage/SQLTransaction.h:
753         * storage/SQLTransactionSync.h:
754         * storage/Storage.h:
755         * storage/chromium/DatabaseObserver.h:
756         * svg/SVGAnimatedTemplate.h:
757         * svg/SVGDocumentExtensions.h:
758         * svg/SVGGlyphElement.h:
759         * svg/SVGHKernElement.h:
760         * svg/SVGNumberList.h:
761         * svg/SVGPointList.h:
762         * svg/SVGPreserveAspectRatio.h:
763         * svg/SVGStylable.h:
764         * svg/SVGTests.h:
765         * svg/SVGTransformList.h:
766         * svg/SVGTransformable.h:
767         * svg/SVGVKernElement.h:
768         * websockets/ThreadableWebSocketChannel.h:
769         * websockets/ThreadableWebSocketChannelClientWrapper.h:
770         * websockets/WebSocket.h:
771         * websockets/WebSocketChannel.h:
772         * websockets/WebSocketHandshakeResponse.h:
773         * wml/WMLErrorHandling.h:
774         * wml/WMLPageState.h:
775         * wml/WMLVariables.h:
776         * workers/DefaultSharedWorkerRepository.h:
777         * workers/SharedWorkerRepository.h:
778         * workers/Worker.h:
779         * workers/WorkerContextProxy.h:
780         * workers/WorkerLoaderProxy.h:
781         * workers/WorkerLocation.h:
782         * workers/WorkerMessagingProxy.h:
783         * workers/WorkerReportingProxy.h:
784         * workers/WorkerThread.h:
785         * xml/DOMParser.h:
786         * xml/XMLHttpRequestUpload.h:
787         * xml/XPathEvaluator.h:
788         * xml/XPathExpression.h:
789         * xml/XPathNSResolver.h:
790         * xml/XPathResult.h:
791         * xml/XPathUtil.h:
792
793 2010-08-04  Zhenyao Mo  <zmo@google.com>
794
795         Reviewed by Dimitri Glazkov.
796
797         WebGLBuffer::associateBufferData(ArrayBufferView* array) copies incorrect data for sliced views
798         https://bugs.webkit.org/show_bug.cgi?id=42124
799
800         * html/canvas/WebGLBuffer.cpp:
801         (WebCore::WebGLBuffer::associateBufferDataImpl): Helper function that's called by all associateBufferData().
802         (WebCore::WebGLBuffer::associateBufferData): Call associateBufferDataImpl().
803         (WebCore::WebGLBuffer::associateBufferSubDataImpl): Helper function that's called by all associateBufferSubData().
804         (WebCore::WebGLBuffer::associateBufferSubData): Call associateBufferSubDataImpl().
805         * html/canvas/WebGLBuffer.h: Declare helper functions.
806
807 2010-08-06  Adam Barth  <abarth@webkit.org>
808
809         Reviewed by Eric Seidel.
810
811         noembed should respect whether plugins are enabled
812         https://bugs.webkit.org/show_bug.cgi?id=43611
813
814         This instruction isn't in the HTML5 spec, but it seems like the right
815         thing to do.  I suspect this is because the spec doesn't understand
816         that plugins can be disabled.
817
818         I'm not sure how we can test this in DumpRenderTree, but I'm open to
819         suggestions.
820
821         * html/HTMLTreeBuilder.cpp:
822         (WebCore::HTMLTreeBuilder::adjustedLexerState):
823         (WebCore::HTMLTreeBuilder::processStartTagForInBody):
824         (WebCore::HTMLTreeBuilder::processStartTagForInHead):
825         (WebCore::HTMLTreeBuilder::scriptEnabled):
826         (WebCore::HTMLTreeBuilder::pluginsEnabled):
827         * html/HTMLTreeBuilder.h:
828
829 2010-08-06  Tony Gentilcore  <tonyg@chromium.org>
830
831         Reviewed by Adam Barth.
832
833         Factor out PendingScript and protect its members
834         https://bugs.webkit.org/show_bug.cgi?id=43391
835
836         This will be shared by AsyncScriptRunner.
837
838         No new tests because no new functionality.
839
840         * Android.mk:
841         * CMakeLists.txt:
842         * GNUmakefile.am:
843         * WebCore.gypi:
844         * WebCore.pro:
845         * WebCore.vcproj/WebCore.vcproj:
846         * WebCore.xcodeproj/project.pbxproj:
847         * dom/PendingScript.cpp: Added.
848         (WebCore::PendingScript::~PendingScript):
849         (WebCore::PendingScript::element):
850         (WebCore::PendingScript::releaseElementAndClear):
851         (WebCore::PendingScript::setCachedScript):
852         (WebCore::PendingScript::cachedScript):
853         * dom/PendingScript.h: Added.
854         (WebCore::PendingScript::PendingScript):
855         (WebCore::PendingScript::startingLineNumber):
856         (WebCore::PendingScript::watchingForLoad):
857         (WebCore::PendingScript::setWatchingForLoad):
858         (WebCore::PendingScript::hasElement):
859         (WebCore::PendingScript::adoptElement):
860         (WebCore::PendingScript::notifyFinished):
861         * html/HTMLScriptRunner.cpp:
862         (WebCore::HTMLScriptRunner::sourceFromPendingScript):
863         (WebCore::HTMLScriptRunner::haveParsingBlockingScript):
864         (WebCore::HTMLScriptRunner::requestScript):
865         * html/HTMLScriptRunner.h:
866
867 2010-08-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
868
869         Reviewed by Darin Adler.
870
871         Change permission to access methods in XMLDocumentParser.h
872         https://bugs.webkit.org/show_bug.cgi?id=43180
873
874         Change permission to access wellFormed(), lineNumber() and columnNumber()
875         in XMLDocumentParser.h. Because, the methods are used by WML.
876
877         * dom/XMLDocumentParser.h:
878         (WebCore::XMLDocumentParser::wellFormed): Change accebility permission. 
879
880 2010-08-06  Martin Robinson  <mrobinson@igalia.com>
881
882         Reviewed by Gustavo Noronha Silva.
883
884         [GTK] Support for image drags
885         https://bugs.webkit.org/show_bug.cgi?id=40788
886
887         Add image drag-and-drop support for WebKit GTK+.
888
889         * platform/gtk/ClipboardGtk.cpp:
890         (WebCore::ClipboardGtk::setDragImage): Filled this stub.
891         (WebCore::ClipboardGtk::setDragImageElement): Filled this stub.
892         (WebCore::ClipboardGtk::createDragImage): Filled this stub.
893         (WebCore::ClipboardGtk::declareAndWriteDragImage): Write the image URL, markup, and image itself to the data object member.
894         * platform/gtk/ClipboardGtk.h: Brought method declarations into line with the parent class.
895
896 2010-08-06  Yury Semikhatsky  <yurys@chromium.org>
897
898         Reviewed by Pavel Feldman.
899
900         Web Inspector: extract debugger implementation into InspectorDebuggerAgent
901         https://bugs.webkit.org/show_bug.cgi?id=42340
902
903         * CMakeLists.txt:
904         * GNUmakefile.am:
905         * WebCore.gypi:
906         * WebCore.pro:
907         * WebCore.vcproj/WebCore.vcproj:
908         * WebCore.xcodeproj/project.pbxproj:
909         * inspector/CodeGeneratorInspector.pm:
910         * inspector/Inspector.idl:
911         * inspector/InspectorController.cpp:
912         (WebCore::InspectorController::InspectorController):
913         (WebCore::InspectorController::connectFrontend):
914         (WebCore::InspectorController::didCommitLoad):
915         (WebCore::InspectorController::enableDebuggerFromFrontend):
916         (WebCore::InspectorController::disableDebugger):
917         (WebCore::InspectorController::resume):
918         (WebCore::InspectorController::loadBreakpoints):
919         (WebCore::InspectorController::saveBreakpoints):
920         * inspector/InspectorController.h:
921         (WebCore::InspectorController::debuggerAgent):
922         * inspector/InspectorDebuggerAgent.cpp: Added.
923         (WebCore::md5Base16):
924         (WebCore::formatBreakpointId):
925         (WebCore::InspectorDebuggerAgent::create):
926         (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
927         (WebCore::InspectorDebuggerAgent::~InspectorDebuggerAgent):
928         (WebCore::InspectorDebuggerAgent::isDebuggerAlwaysEnabled):
929         (WebCore::InspectorDebuggerAgent::activateBreakpoints):
930         (WebCore::InspectorDebuggerAgent::deactivateBreakpoints):
931         (WebCore::InspectorDebuggerAgent::setBreakpoint):
932         (WebCore::InspectorDebuggerAgent::removeBreakpoint):
933         (WebCore::InspectorDebuggerAgent::editScriptSource):
934         (WebCore::InspectorDebuggerAgent::getScriptSource):
935         (WebCore::InspectorDebuggerAgent::pause):
936         (WebCore::InspectorDebuggerAgent::resume):
937         (WebCore::InspectorDebuggerAgent::stepOverStatement):
938         (WebCore::InspectorDebuggerAgent::stepIntoStatement):
939         (WebCore::InspectorDebuggerAgent::stepOutOfFunction):
940         (WebCore::InspectorDebuggerAgent::setPauseOnExceptionsState):
941         (WebCore::InspectorDebuggerAgent::clearForPageNavigation):
942         (WebCore::InspectorDebuggerAgent::currentCallFrames):
943         (WebCore::InspectorDebuggerAgent::loadBreakpoints):
944         (WebCore::InspectorDebuggerAgent::saveBreakpoints):
945         (WebCore::InspectorDebuggerAgent::didParseSource):
946         (WebCore::InspectorDebuggerAgent::failedToParseSource):
947         (WebCore::InspectorDebuggerAgent::didPause):
948         (WebCore::InspectorDebuggerAgent::didContinue):
949         (WebCore::InspectorDebuggerAgent::remoteFrontend):
950         * inspector/InspectorDebuggerAgent.h: Added.
951         * inspector/InspectorFrontend.cpp:
952         * inspector/InspectorFrontend.h:
953         * inspector/front-end/ScriptsPanel.js:
954         (WebInspector.ScriptsPanel):
955
956 2010-08-06  Dean Jackson  <dino@apple.com>
957
958         Reviewed by Simon Fraser and Steve Block.
959
960         https://bugs.webkit.org/show_bug.cgi?id=42865
961         Implement DeviceMotionEvent
962
963         Implement the DeviceMotionEvent interface as defined
964         in http://dev.w3.org/geo/api/spec-source-orientation.html
965         This is currently an empty implementation, in that there is
966         no motion client connected - the platform implementations
967         will need to do that.
968
969         Tests: fast/dom/DeviceMotion/create-event.html
970                fast/dom/DeviceMotion/optional-event-properties.html
971                fast/dom/DeviceMotion/window-property.html
972
973         * Android.derived.jscbindings.mk:
974         * Android.derived.v8bindings.mk:
975         * Android.jscbindings.mk:
976         * Android.mk:
977         * Android.v8bindings.mk:
978         * CMakeLists.txt:
979         * Configurations/FeatureDefines.xcconfig:
980         * DerivedSources.make:
981         * GNUmakefile.am:
982         * WebCore.gypi:
983         * WebCore.pro:
984         * WebCore.vcproj/WebCore.vcproj:
985         * WebCore.xcodeproj/project.pbxproj:
986           - Add new files for DeviceMotionEvent build support
987         * bindings/generic/RuntimeEnabledFeatures.cpp:
988         * bindings/generic/RuntimeEnabledFeatures.h:
989           - new runtime flags for device motion
990         * bindings/js/JSDeviceMotionEventCustom.cpp: Added.
991         * bindings/v8/custom/V8DeviceMotionEventCustom.cpp: Added.
992           - Custom JS binding to translate property access through
993             to the DeviceMotionData object that the Event holds
994         * bindings/js/JSEventCustom.cpp:
995           - Include the custom code for DeviceMotionEvent
996         * dom/DeviceMotionClient.h: Added.
997           - Pure virtual client for DeviceMotion access
998         * dom/DeviceMotionController.cpp: Added.
999         * dom/DeviceMotionController.h: Added.
1000           - Controller class that manages event dispatch
1001         * dom/DeviceMotionData.cpp: Added.
1002         * dom/DeviceMotionData.h: Added.
1003           - Representation of the data that comes from a device motion
1004             client that is then used within the event.
1005         * dom/DeviceMotionEvent.cpp: Added.
1006         * dom/DeviceMotionEvent.h: Added.
1007         * dom/DeviceMotionEvent.idl: Added.
1008           - The actual event implementation
1009         * dom/Document.cpp:
1010         (WebCore::Document::createEvent):
1011           - Update createEvent to allow "devicemotion" events
1012         * dom/Event.cpp:
1013         * dom/Event.h:
1014           - isDeviceMotionEvent virtual method
1015         * dom/EventNames.h:
1016           - new "devicemotion" event type
1017         * page/DOMWindow.cpp:
1018         (WebCore::DOMWindow::addEventListener):
1019         * page/DOMWindow.h:
1020         * page/DOMWindow.idl:
1021           - allow creation of "devicemotion" events and pass registration
1022             through to the Page's deviceMotionController object
1023         * page/Page.cpp:
1024         * page/Page.h:
1025           - new PageClient for deviceMotionController
1026
1027 2010-08-06  Kavita Kanetkar  <kkanetkar@chromium.org>
1028
1029         Reviewed by Joseph Pecoraro.
1030
1031         Web Inspector: Remove "Online/Offline" icon for Chrome's appcache devtools UI.
1032         https://bugs.webkit.org/show_bug.cgi?id=43450
1033
1034         * inspector/front-end/ApplicationCacheItemsView.js:
1035         (WebInspector.ApplicationCacheItemsView):
1036         (WebInspector.ApplicationCacheItemsView.prototype.get statusBarItems):
1037         (WebInspector.ApplicationCacheItemsView.prototype.updateNetworkState):
1038         * inspector/front-end/Settings.js:
1039
1040 2010-08-06  Pavel Feldman  <pfeldman@chromium.org>
1041
1042         Not reviewed. Rolling out 64835, 64836 and 64839.
1043
1044         * Android.jscbindings.mk:
1045         * Android.v8bindings.mk:
1046         * CMakeLists.txt:
1047         * GNUmakefile.am:
1048         * WebCore.gypi:
1049         * WebCore.pro:
1050         * WebCore.vcproj/WebCore.vcproj:
1051         * WebCore.xcodeproj/project.pbxproj:
1052         * bindings/js/JSBindingsAllInOne.cpp:
1053         * bindings/js/JSDOMWindowCustom.cpp:
1054         (WebCore::JSDOMWindow::openDatabase):
1055         * bindings/js/JSDatabaseCustom.cpp: Added.
1056         (WebCore::JSDatabase::changeVersion):
1057         (WebCore::createTransaction):
1058         (WebCore::JSDatabase::transaction):
1059         (WebCore::JSDatabase::readTransaction):
1060         * bindings/js/JSDatabaseSyncCustom.cpp: Added.
1061         (WebCore::JSDatabaseSync::changeVersion):
1062         (WebCore::createTransaction):
1063         (WebCore::JSDatabaseSync::transaction):
1064         (WebCore::JSDatabaseSync::readTransaction):
1065         * bindings/js/JSWorkerContextCustom.cpp:
1066         (WebCore::JSWorkerContext::openDatabase):
1067         (WebCore::JSWorkerContext::openDatabaseSync):
1068         * bindings/scripts/CodeGeneratorGObject.pm:
1069         * bindings/scripts/CodeGeneratorJS.pm:
1070         * bindings/scripts/CodeGeneratorV8.pm:
1071         * bindings/scripts/test/JS/JSTestCallback.cpp:
1072         (WebCore::JSTestCallback::~JSTestCallback):
1073         * bindings/scripts/test/JS/JSTestObj.cpp:
1074         (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
1075         (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
1076         (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
1077         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgs):
1078         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
1079         (WebCore::jsTestObjPrototypeFunctionSerializedValue):
1080         (WebCore::jsTestObjPrototypeFunctionIdbKey):
1081         (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
1082         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg):
1083         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg):
1084         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
1085         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
1086         (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
1087         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
1088         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
1089         (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
1090         (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
1091         (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg):
1092         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
1093         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
1094         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
1095         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
1096         * bindings/scripts/test/TestObj.idl:
1097         * bindings/scripts/test/V8/V8TestObj.cpp:
1098         (WebCore::TestObjInternal::voidMethodWithArgsCallback):
1099         (WebCore::TestObjInternal::intMethodWithArgsCallback):
1100         (WebCore::TestObjInternal::objMethodWithArgsCallback):
1101         (WebCore::TestObjInternal::methodThatRequiresAllArgsCallback):
1102         (WebCore::TestObjInternal::methodThatRequiresAllArgsAndThrowsCallback):
1103         (WebCore::TestObjInternal::serializedValueCallback):
1104         (WebCore::TestObjInternal::idbKeyCallback):
1105         (WebCore::TestObjInternal::customArgsAndExceptionCallback):
1106         (WebCore::TestObjInternal::withDynamicFrameAndArgCallback):
1107         (WebCore::TestObjInternal::withDynamicFrameAndOptionalArgCallback):
1108         (WebCore::TestObjInternal::withDynamicFrameAndUserGestureCallback):
1109         (WebCore::TestObjInternal::withDynamicFrameAndUserGestureASADCallback):
1110         (WebCore::TestObjInternal::methodWithOptionalArgCallback):
1111         (WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback):
1112         (WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback):
1113         (WebCore::TestObjInternal::methodWithCallbackArgCallback):
1114         (WebCore::TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback):
1115         (WebCore::TestObjInternal::methodWithCallbackAndOptionalArgCallback):
1116         (WebCore::TestObjInternal::overloadedMethod1Callback):
1117         (WebCore::TestObjInternal::overloadedMethod2Callback):
1118         (WebCore::TestObjInternal::overloadedMethod3Callback):
1119         (WebCore::TestObjInternal::overloadedMethod4Callback):
1120         (WebCore::):
1121         (WebCore::ConfigureV8TestObjTemplate):
1122         * bindings/v8/V8Binding.h:
1123         (WebCore::String):
1124         (WebCore::AtomicString):
1125         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1126         (WebCore::V8DOMWindow::openDatabaseCallback):
1127         * bindings/v8/custom/V8DatabaseCustom.cpp: Added.
1128         (WebCore::V8Database::changeVersionCallback):
1129         (WebCore::createTransaction):
1130         (WebCore::V8Database::transactionCallback):
1131         (WebCore::V8Database::readTransactionCallback):
1132         * bindings/v8/custom/V8DatabaseSyncCustom.cpp: Added.
1133         (WebCore::V8DatabaseSync::changeVersionCallback):
1134         (WebCore::createTransaction):
1135         (WebCore::V8DatabaseSync::transactionCallback):
1136         (WebCore::V8DatabaseSync::readTransactionCallback):
1137         * bindings/v8/custom/V8WorkerContextCustom.cpp:
1138         (WebCore::V8WorkerContext::openDatabaseCallback):
1139         (WebCore::V8WorkerContext::openDatabaseSyncCallback):
1140         * page/DOMWindow.idl:
1141         * storage/Database.cpp:
1142         (WebCore::Database::transaction):
1143         * storage/Database.h:
1144         * storage/Database.idl:
1145         * storage/DatabaseSync.cpp:
1146         (WebCore::DatabaseSync::transaction):
1147         * storage/DatabaseSync.h:
1148         * storage/DatabaseSync.idl:
1149         * workers/WorkerContext.idl:
1150
1151 2010-08-06  Dumitru Daniliuc  <dumi@chromium.org>
1152
1153         Unreviewed, fix the "GTK Linux 64-bit Debug" bot.
1154
1155         CodeGeneratorGObject.pm doesn't know yet how to auto-generate
1156         callbacks, so we should not auto-generate functions that take
1157         callbacks as parameters. This shouldn't break anything, because
1158         all these functions were marked as ["Custom"] until now, and this
1159         code generator skipped those functions anyway.
1160
1161         * bindings/scripts/CodeGeneratorGObject.pm:
1162
1163 2010-08-06  Dumitru Daniliuc  <dumi@chromium.org>
1164
1165         Unreviewed, "Qt Linux Realese minimal" build fix.
1166
1167         * bindings/scripts/CodeGeneratorJS.pm:
1168
1169 2010-08-06  Dumitru Daniliuc  <dumi@chromium.org>
1170
1171         Reviewed by Adam Barth.
1172
1173         Auto-generate all HTML5 DB bindings.
1174         https://bugs.webkit.org/show_bug.cgi?id=43382
1175
1176         * Android.jscbindings.mk: Remove {JS|V8}Database{Sync}Custom.cpp
1177         and the custom implementations of openDatabas{Sync}().
1178         * Android.v8bindings.mk:
1179         * CMakeLists.txt:
1180         * GNUmakefile.am:
1181         * WebCore.gypi:
1182         * WebCore.pro:
1183         * WebCore.vcproj/WebCore.vcproj:
1184         * WebCore.xcodeproj/project.pbxproj:
1185         * bindings/js/JSBindingsAllInOne.cpp:
1186         * bindings/js/JSDOMWindowCustom.cpp:
1187         * bindings/js/JSDatabaseCustom.cpp: Removed.
1188         * bindings/js/JSDatabaseSyncCustom.cpp: Removed.
1189         * bindings/js/JSWorkerContextCustom.cpp:
1190         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1191         * bindings/v8/custom/V8DatabaseCustom.cpp: Removed.
1192         * bindings/v8/custom/V8DatabaseSyncCustom.cpp: Removed.
1193         * bindings/v8/custom/V8WorkerContextCustom.cpp:
1194
1195         * bindings/scripts/CodeGeneratorJS.pm: Change the code generators
1196         to check that a value was passed for each non-optional argument,
1197         and that the value can be converted to the argument type.
1198         * bindings/scripts/CodeGeneratorV8.pm:
1199         * bindings/scripts/test/JS/JSTestCallback.cpp:
1200         (WebCore::JSTestCallback::~JSTestCallback):
1201         * bindings/scripts/test/JS/JSTestObj.cpp:
1202         (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
1203         (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
1204         (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
1205         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgs):
1206         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
1207         (WebCore::jsTestObjPrototypeFunctionSerializedValue):
1208         (WebCore::jsTestObjPrototypeFunctionIdbKey):
1209         (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
1210         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg):
1211         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg):
1212         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
1213         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
1214         (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
1215         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
1216         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
1217         (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
1218         (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
1219         (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg):
1220         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
1221         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
1222         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
1223         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
1224         * bindings/scripts/test/TestObj.idl:
1225         * bindings/scripts/test/V8/V8TestObj.cpp:
1226         (WebCore::TestObjInternal::voidMethodWithArgsCallback):
1227         (WebCore::TestObjInternal::intMethodWithArgsCallback):
1228         (WebCore::TestObjInternal::objMethodWithArgsCallback):
1229         (WebCore::TestObjInternal::methodThatRequiresAllArgsCallback):
1230         (WebCore::TestObjInternal::methodThatRequiresAllArgsAndThrowsCallback):
1231         (WebCore::TestObjInternal::serializedValueCallback):
1232         (WebCore::TestObjInternal::idbKeyCallback):
1233         (WebCore::TestObjInternal::customArgsAndExceptionCallback):
1234         (WebCore::TestObjInternal::withDynamicFrameAndArgCallback):
1235         (WebCore::TestObjInternal::withDynamicFrameAndOptionalArgCallback):
1236         (WebCore::TestObjInternal::withDynamicFrameAndUserGestureCallback):
1237         (WebCore::TestObjInternal::withDynamicFrameAndUserGestureASADCallback):
1238         (WebCore::TestObjInternal::methodWithOptionalArgCallback):
1239         (WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback):
1240         (WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback):
1241         (WebCore::TestObjInternal::methodWithCallbackArgCallback):
1242         (WebCore::TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback):
1243         (WebCore::TestObjInternal::methodWithCallbackAndOptionalArgCallback):
1244         (WebCore::TestObjInternal::overloadedMethod1Callback):
1245         (WebCore::TestObjInternal::overloadedMethod2Callback):
1246         (WebCore::TestObjInternal::overloadedMethod3Callback):
1247         (WebCore::TestObjInternal::overloadedMethod4Callback):
1248         (WebCore::):
1249         (WebCore::ConfigureV8TestObjTemplate):
1250         * bindings/v8/V8Binding.h:
1251         (WebCore::String):
1252         (WebCore::AtomicString):
1253
1254         * page/DOMWindow.idl: Minor changes required by the auto-generated
1255         bindings.
1256         * storage/Database.cpp:
1257         (WebCore::Database::transaction):
1258         (WebCore::Database::readTransaction):
1259         (WebCore::Database::runTransaction):
1260         * storage/Database.h:
1261         * storage/Database.idl:
1262         * storage/DatabaseSync.cpp:
1263         (WebCore::DatabaseSync::transaction):
1264         (WebCore::DatabaseSync::readTransaction):
1265         (WebCore::DatabaseSync::runTransaction):
1266         * storage/DatabaseSync.h:
1267         * storage/DatabaseSync.idl:
1268         * workers/WorkerContext.idl:
1269
1270 2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>
1271
1272         Not reviewed. Sort XCode project file.
1273
1274         * WebCore.xcodeproj/project.pbxproj:
1275
1276 2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>
1277
1278         Not reviewed. Fix warning, breaking win build.
1279
1280         * svg/SVGLength.cpp:
1281         (WebCore::SVGLength::toCSSPrimitiveValue):
1282
1283 2010-08-06  Alexey Proskuryakov  <ap@apple.com>
1284
1285         Fix crashing Leopard and Gtk bots.
1286
1287         * platform/text/TextCodecICU.cpp: (WebCore::TextCodecICU::registerExtendedEncodingNames):
1288         Don't register ISO8859-16, because older versions of ICU don't support ISO-8859-16, causing
1289         crashes when we try to register an alias. Also, we don't need it, because Firefox doesn't
1290         support this particular alias (it supports ISO8859-1 to ISO8859-15, but only supports the
1291         main name for ISO-8859-16).
1292
1293 2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>
1294
1295         Reviewed by Dirk Schulze.
1296
1297         SVG - stroke-width:0 bug with stroke other than "none"
1298         https://bugs.webkit.org/show_bug.cgi?id=42387
1299
1300         Stop storing refcounted CSSValue/CSSValueList objects in SVGRenderStyle, replacing them with SVGLength types.
1301         Allows us to directly specify default values for stroke-dashoffset/width in the SVGRenderStyle, fixing a problem
1302         with stroke-width animations when resetting to the original stored baseVal, exposed in svg/W3C-1.1/animate-elem-40-t.svg
1303         Originally discovered by Fady Samuel.
1304
1305         Test: svg/custom/path-zero-strokewidth.svg
1306
1307         * css/SVGCSSComputedStyleDeclaration.cpp:
1308         (WebCore::strokeDashArrayToCSSValueList): New helper function converting from Vector<SVGLength> to CSSValueList.
1309         (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue): Convert SVGLength values to CSSPrimitiveValues.
1310         * css/SVGCSSStyleSelector.cpp:
1311         (WebCore::CSSStyleSelector::applySVGProperty): Convert CSSPrimitiveValues to SVGLength objects, for SVGRenderStyle storage.
1312         * rendering/RenderPath.cpp:
1313         (WebCore::RenderPath::calculateMarkerBoundsIfNeeded): Just grab strokeWidth SVGLength value from SVGRenderSTyle, no need to call cssPrimitiveToLength anymore.
1314         * rendering/RenderSVGText.cpp:
1315         (WebCore::RenderSVGText::strokeBoundingBox): Ditto.
1316         * rendering/SVGCharacterLayoutInfo.cpp:
1317         (WebCore::calculateBaselineShift): Ditto (for baseline-shift).
1318         * rendering/SVGInlineTextBox.cpp:
1319         (WebCore::SVGInlineTextBox::buildLayoutInformation): Ditto (for kerning).
1320         * rendering/SVGRenderSupport.cpp:
1321         (WebCore::SVGRenderSupport::applyStrokeStyleToContext): Ditto (for stroke-width/stroke-dashoffset/stroke-dasharray).
1322         * rendering/SVGRenderSupport.h:
1323         * rendering/SVGRenderTreeAsText.cpp:
1324         (WebCore::writeStyle): Ditto.
1325         * rendering/SVGTextLayoutUtilities.cpp:
1326         (WebCore::calculateCSSKerning): Ditto.
1327         * rendering/SVGTextLayoutUtilities.h:
1328         * rendering/style/SVGRenderStyle.cpp: Remove no longer needed cssPrimitiveToLength function.
1329         * rendering/style/SVGRenderStyle.h: Stop storing RefPtr<CSSValue> / RefPtr<CSSValueList> but use SVGLength/Vector<SVGLength>.
1330         (WebCore::SVGRenderStyle::initialStrokeDashArray): Allows us to specify correct default values, instead of null pointers.
1331         (WebCore::SVGRenderStyle::initialBaselineShiftValue): Specify 0px default value.
1332         (WebCore::SVGRenderStyle::initialKerning): Ditto.
1333         (WebCore::SVGRenderStyle::initialStrokeDashOffset): Ditto.
1334         (WebCore::SVGRenderStyle::initialStrokeWidth): Specify 1px default value.
1335         (WebCore::SVGRenderStyle::setStrokeDashArray): Takes a Vector<SVGLength> now, not a PassRefPtr<CSSValueList>.
1336         (WebCore::SVGRenderStyle::setStrokeWidth): Takes a SVGLength now, not a PassRefPtr<CSSValue>.
1337         (WebCore::SVGRenderStyle::setStrokeDashOffset): Ditto.
1338         (WebCore::SVGRenderStyle::setKerning): Ditto.
1339         (WebCore::SVGRenderStyle::setStopColor): Pass Color as const-reference.
1340         (WebCore::SVGRenderStyle::setFloodColor): Ditto.
1341         (WebCore::SVGRenderStyle::setLightingColor): Ditto.
1342         (WebCore::SVGRenderStyle::setBaselineShiftValue): Takes a SVGLength now, not a PassRefPtr<CSSValue>.
1343         (WebCore::SVGRenderStyle::setShadow): Reformat, had wrong style.
1344         (WebCore::SVGRenderStyle::setClipperResource): Pass String as const-reference.
1345         (WebCore::SVGRenderStyle::setFilterResource): Ditto.
1346         (WebCore::SVGRenderStyle::setMaskerResource): Ditto.
1347         (WebCore::SVGRenderStyle::setMarkerStartResource): Ditto.
1348         (WebCore::SVGRenderStyle::setMarkerMidResource): Ditto.
1349         (WebCore::SVGRenderStyle::setMarkerEndResource): Ditto.
1350         (WebCore::SVGRenderStyle::strokeDashArray): Return Vector<SVGLength>.
1351         (WebCore::SVGRenderStyle::strokeWidth): Return SVGLength.
1352         (WebCore::SVGRenderStyle::strokeDashOffset): Ditto.
1353         (WebCore::SVGRenderStyle::kerning): Ditto.
1354         (WebCore::SVGRenderStyle::baselineShiftValue): Ditto.
1355         * rendering/style/SVGRenderStyleDefs.cpp:
1356         (WebCore::StyleStrokeData::StyleStrokeData): Changed initialization order, to group stroke properties.
1357         * rendering/style/SVGRenderStyleDefs.h: Store SVGLength values instead of reference counted CSS objects.
1358         * svg/SVGLength.cpp:
1359         (WebCore::SVGLength::SVGLength): Add copy constructor.
1360         (WebCore::SVGLength::operator==): Add comparision operator.
1361         (WebCore::SVGLength::operator!=): Ditto.
1362         (WebCore::SVGLength::fromCSSPrimitiveValue): New static helper function to convert from a CSSPrimitiveValue.
1363         (WebCore::SVGLength::toCSSPrimitiveValue): New static helper function to convert to a CSSPrimitiveValue.
1364         * svg/SVGLength.h: Reindent.
1365
1366 2010-08-06  Luiz Agostini  <luiz.agostini@openbossa.org>
1367
1368         Reviewed by Kenneth Rohde Christiansen.
1369
1370         [Qt] Move Qt's popup menu implementation from WebCore to WebKit layer
1371         https://bugs.webkit.org/show_bug.cgi?id=43427
1372
1373         After PopupMenu changes in bug 42592 class QtAbstractWebPopup became unecessary and
1374         there is no need to keep any Qt specific code for popup menus in WebCore/platform/qt.
1375
1376         PopupMenuQt has been moved from WebCore/platform/qt to WebKit/qt/WebCoreSupport and
1377         assumed the responsibilities of QtAbstractWebPopup. SearchPopupMenuQt has been moved
1378         to WebKit/qt/WebCoreSupport as well.
1379
1380         All classes that previously inherited from QtAbstractWebPopup now inherit from 
1381         QWebSelectMethod and QtPlatformPlugin's method createSelectInputMethod now returns an
1382         instance of class QWebSelectMethod instead of QtAbstractWebPopup.
1383
1384         * WebCore.pro:
1385         * platform/qt/PopupMenuQt.cpp: Removed.
1386         * platform/qt/PopupMenuQt.h: Removed.
1387         * platform/qt/QtAbstractWebPopup.cpp: Removed.
1388         * platform/qt/QtAbstractWebPopup.h: Removed.
1389         * platform/qt/SearchPopupMenuQt.cpp: Removed.
1390         * platform/qt/SearchPopupMenuQt.h: Removed.
1391
1392 2010-08-05  Marcus Bulach  <bulach@chromium.org>
1393
1394         Reviewed by Jeremy Orlow.
1395
1396         Initial bindings and plumbing for IDBCursor.
1397         https://bugs.webkit.org/show_bug.cgi?id=41888
1398
1399         Test: storage/indexeddb/idb-opencursor.html
1400
1401         * Android.derived.jscbindings.mk:
1402         * Android.derived.v8bindings.mk:
1403         * Android.mk:
1404         * CMakeLists.txt:
1405         * DerivedSources.cpp:
1406         * DerivedSources.make:
1407         * GNUmakefile.am:
1408         * WebCore.gypi:
1409         * WebCore.pri:
1410         * WebCore.pro:
1411         * WebCore.vcproj/WebCore.vcproj:
1412         * WebCore.xcodeproj/project.pbxproj:
1413         * bindings/v8/custom/V8IDBAnyCustom.cpp:
1414         (WebCore::toV8):
1415         * storage/IDBAny.cpp:
1416         (WebCore::IDBAny::idbCursor):
1417         (WebCore::IDBAny::set):
1418         * storage/IDBAny.h:
1419         (WebCore::IDBAny::):
1420         * storage/IDBCallbacks.h:
1421         * storage/IDBCursor.cpp: Added.
1422         (WebCore::IDBCursor::IDBCursor):
1423         (WebCore::IDBCursor::~IDBCursor):
1424         (WebCore::IDBCursor::direction):
1425         (WebCore::IDBCursor::key):
1426         (WebCore::IDBCursor::value):
1427         (WebCore::IDBCursor::update):
1428         (WebCore::IDBCursor::continueFunction):
1429         (WebCore::IDBCursor::remove):
1430         * storage/IDBCursor.h: Added.
1431         (WebCore::IDBCursor::):
1432         (WebCore::IDBCursor::create):
1433         * storage/IDBCursor.idl: Added.
1434         * storage/IDBCursorBackendImpl.cpp: Added.
1435         (WebCore::IDBCursorBackendImpl::IDBCursorBackendImpl):
1436         (WebCore::IDBCursorBackendImpl::~IDBCursorBackendImpl):
1437         (WebCore::IDBCursorBackendImpl::direction):
1438         (WebCore::IDBCursorBackendImpl::key):
1439         (WebCore::IDBCursorBackendImpl::value):
1440         (WebCore::IDBCursorBackendImpl::update):
1441         (WebCore::IDBCursorBackendImpl::continueFunction):
1442         (WebCore::IDBCursorBackendImpl::remove):
1443         * storage/IDBCursorBackendImpl.h: Added.
1444         (WebCore::IDBCursorBackendImpl::create):
1445         * storage/IDBCursorBackendInterface.h: Added.
1446         (WebCore::IDBCursorBackendInterface::~IDBCursorBackendInterface):
1447         * storage/IDBObjectStore.cpp:
1448         (WebCore::IDBObjectStore::openCursor):
1449         * storage/IDBObjectStore.h:
1450         * storage/IDBObjectStore.idl:
1451         * storage/IDBObjectStoreBackendImpl.cpp:
1452         (WebCore::IDBObjectStoreBackendImpl::openCursor):
1453         * storage/IDBObjectStoreBackendImpl.h:
1454         * storage/IDBObjectStoreBackendInterface.h:
1455         * storage/IDBRequest.cpp:
1456         (WebCore::IDBRequest::onSuccess):
1457         (WebCore::IDBRequest::timerFired):
1458         * storage/IDBRequest.h:
1459
1460 2010-08-06  Andrei Popescu  <andreip@google.com>
1461
1462         Unreviewed, release build fix.
1463
1464         Leopard relase build is broken due to absolute path to JSIDBTransaction.cpp file present in XCode project file.
1465         https://bugs.webkit.org/show_bug.cgi?id=43616
1466
1467         * WebCore.xcodeproj/project.pbxproj:
1468
1469 2010-08-05  Andrei Popescu  <andreip@dhcp-172-16-14-12.lon.corp.google.com>
1470
1471         Reviewed by Jeremy Orlow.
1472
1473         [IndexedDB] IndexedDB is missing the Transaction interface.
1474         https://bugs.webkit.org/show_bug.cgi?id=42970
1475
1476         Add IDBTransaction boilerplate.
1477
1478         No new tests, not functional yet.
1479
1480         * Android.derived.jscbindings.mk:
1481         * Android.derived.v8bindings.mk:
1482         * Android.mk:
1483         * CMakeLists.txt:
1484         * DerivedSources.cpp:
1485         * DerivedSources.make:
1486         * GNUmakefile.am:
1487         * WebCore.gypi:
1488         * WebCore.pri:
1489         * WebCore.pro:
1490         * WebCore.vcproj/WebCore.vcproj:
1491         * WebCore.xcodeproj/project.pbxproj:
1492         * dom/EventNames.h:
1493         * storage/IDBDatabase.cpp:
1494         (WebCore::IDBDatabase::transaction):
1495         * storage/IDBDatabase.h:
1496         * storage/IDBDatabase.idl:
1497         * storage/IDBDatabaseBackendImpl.cpp:
1498         (WebCore::IDBDatabaseBackendImpl::transaction):
1499         * storage/IDBDatabaseBackendImpl.h:
1500         * storage/IDBDatabaseBackendInterface.h:
1501         * storage/IDBRequest.cpp:
1502         (WebCore::IDBRequest::IDBRequest):
1503         (WebCore::IDBRequest::canSuspend):
1504         (WebCore::IDBRequest::timerFired):
1505         (WebCore::IDBRequest::onEventCommon):
1506         * storage/IDBRequest.h:
1507         * storage/IDBTransaction.cpp: Added.
1508         (WebCore::IDBTransaction::IDBTransaction):
1509         (WebCore::IDBTransaction::~IDBTransaction):
1510         (WebCore::IDBTransaction::mode):
1511         (WebCore::IDBTransaction::db):
1512         (WebCore::IDBTransaction::objectStore):
1513         (WebCore::IDBTransaction::abort):
1514         (WebCore::IDBTransaction::scriptExecutionContext):
1515         (WebCore::IDBTransaction::canSuspend):
1516         (WebCore::IDBTransaction::eventTargetData):
1517         (WebCore::IDBTransaction::ensureEventTargetData):
1518         * storage/IDBTransaction.h: Added.
1519         (WebCore::IDBTransaction::create):
1520         (WebCore::IDBTransaction::):
1521         (WebCore::IDBTransaction::toIDBTransaction):
1522         (WebCore::IDBTransaction::refEventTarget):
1523         (WebCore::IDBTransaction::derefEventTarget):
1524         * storage/IDBTransaction.idl: Added.
1525         * storage/IDBTransactionBackendInterface.h: Added.
1526         (WebCore::IDBTransactionBackendInterface::~IDBTransactionBackendInterface):
1527
1528 2010-08-06  Rafael Antognolli  <antognolli@profusion.mobi>
1529
1530         Unreviewed build fix.
1531
1532         [EFL] Regression (64735) build fix for efl.
1533         https://bugs.webkit.org/show_bug.cgi?id=43564
1534
1535         Removing bindings/js/ScriptArray.cpp from the WebCore_SOURCES.
1536         No new features, so no new tests.
1537
1538         * CMakeLists.txt:
1539
1540 2010-08-05  Alexey Proskuryakov  <ap@apple.com>
1541
1542         Fix http/tests/webarchive/test-css-url-encoding-shift-jis.html
1543
1544         For some reason, I didn't see the failure locally, but bots complain.
1545
1546         * platform/text/TextCodecICU.cpp: (WebCore::TextCodecICU::registerExtendedEncodingNames):
1547         Register "shift-jis" (with dash instead of underscore). At least Firefox supports it.
1548
1549 2010-08-05  Ben Murdoch  <benm@google.com>
1550
1551         Reviewed by Simon Fraser.
1552
1553         Form button input elements lacking text in some cases after switching from
1554         visibility:collapse to visibility:visible
1555         https://bugs.webkit.org/show_bug.cgi?id=38050
1556         
1557         A relayout is required after toggling visibility from collapse to another value.
1558
1559         Test: fast/css/visibility-collapse-form-buttons.html
1560
1561         * rendering/style/RenderStyle.cpp:
1562         (WebCore::RenderStyle::diff): If we're toggling from visibility:collapse to another
1563             visibility value (or vice versa) then we need to trigger a relayout.
1564
1565 2010-08-05  Alexey Proskuryakov  <ap@apple.com>
1566
1567         Reviewed by Darin Adler.
1568
1569         https://bugs.webkit.org/show_bug.cgi?id=43554
1570         Way too many encoding aliases are treated as valid
1571
1572         <rdar://problem/7863399> Garbage characters displayed in some yesky.com pages.
1573
1574         <rdar://problem/7859068> Garbage characters displayed for most text at ceping.zhaopin.com
1575
1576         Test: http/tests/misc/bad-charset-alias.html
1577
1578         * loader/TextResourceDecoder.cpp: (WebCore::TextResourceDecoder::checkForCSSCharset):
1579         Fix encoding name length computation. Previously, a trailing quote was ignored by
1580         TextEncodingRegistry.
1581         
1582         * platform/text/TextCodecICU.cpp: (WebCore::TextCodecICU::registerExtendedEncodingNames):
1583         Added dashes to alias names that didn't have them. Added aliases prompted by regression tests.
1584
1585         * platform/text/TextCodecLatin1.cpp: (WebCore::TextCodecLatin1::registerEncodingNames):
1586         Don't register 8859-1, other browsers do not support this encoding name.
1587
1588         * platform/text/TextEncoding.cpp: (WebCore::Latin1Encoding):
1589         "Latin-1" is not a real encoding name, it's not known to Firefox or IE.
1590
1591         * platform/text/TextEncodingRegistry.cpp:
1592         (WebCore::TextEncodingNameHash::equal): Changed to no longer ignore non-alphanumeric characters.
1593         There is a good chance that we'll be missing support for some necessary alias names, but other
1594         browsers don't ignore any characters when matching names.
1595         (WebCore::TextEncodingNameHash::hash): Ditto.
1596         (WebCore::checkExistingName): Re-formatted a line.
1597         (WebCore::isUndesiredAlias): Added a filter to reject "8859_1" and any names containing commas.
1598         (WebCore::addToTextEncodingNameMap): Used it.
1599         (WebCore::atomicCanonicalTextEncodingName): Changed to no longer ignore non-alphanumeric characters.
1600
1601 2010-08-05  Simon Hausmann  <simon.hausmann@nokia.com>
1602
1603         Reviewed by Laszlo Gombos.
1604
1605         [Qt] Temporary files should not be created in the current directory
1606         https://bugs.webkit.org/show_bug.cgi?id=43562
1607
1608         Don't create temporary files in the current directory, use QDir::tempPath()
1609         instead, as suggested by the QTemporaryFile documentation.
1610
1611         * platform/qt/FileSystemQt.cpp:
1612         (WebCore::openTemporaryFile):
1613
1614 2010-08-05  François Sausset  <sausset@gmail.com>
1615
1616         Reviewed by Kenneth Rohde Christiansen.
1617
1618         Make STIX font the default one to render MathML
1619         https://bugs.webkit.org/show_bug.cgi?id=41961
1620
1621         * css/mathml.css:
1622         (math):
1623
1624 2010-08-05  Cosmin Truta  <ctruta@chromium.org>
1625
1626         Reviewed by Eric Seidel.
1627
1628         Apply a stylistic fix to the patch 62640.
1629         https://bug-41175-attachments.webkit.org/attachment.cgi?id=62640
1630         https://bugs.webkit.org/show_bug.cgi?id=41175
1631
1632         * WebCore/platform/graphics/skia/ImageBufferSkia.cpp:
1633         (getImageData):
1634
1635 2010-08-05  Patrick Gansterer  <paroga@paroga.com>
1636
1637         Reviewed by Adam Roben.
1638
1639         Make SearchPopupMenuWin more portable
1640         https://bugs.webkit.org/show_bug.cgi?id=43527
1641
1642         Add #if PLATFORM(CF) around CoreFoundation code.
1643
1644         * platform/win/SearchPopupMenuWin.cpp:
1645         (WebCore::SearchPopupMenuWin::enabled):
1646         (WebCore::SearchPopupMenuWin::saveRecentSearches):
1647         (WebCore::SearchPopupMenuWin::loadRecentSearches):
1648
1649 2010-08-05  Sheriff Bot  <webkit.review.bot@gmail.com>
1650
1651         Unreviewed, rolling out r63653.
1652         http://trac.webkit.org/changeset/63653
1653         https://bugs.webkit.org/show_bug.cgi?id=43592
1654
1655         regressed multiple background-images (Requested by smfr on
1656         #webkit).
1657
1658         * manual-tests/css3-background-layer-count.html: Removed.
1659         * rendering/style/FillLayer.cpp:
1660         (WebCore::FillLayer::fillUnsetProperties):
1661         (WebCore::FillLayer::cullEmptyLayers):
1662         * rendering/style/RenderStyle.h:
1663         (WebCore::InheritedFlags::adjustBackgroundLayers):
1664         (WebCore::InheritedFlags::adjustMaskLayers):
1665
1666 2010-08-05  Mark Rowe  <mrowe@apple.com>
1667
1668         Reviewed by Jon Honeycutt.
1669
1670         Fix some leaks seen on the buildbot.
1671
1672         * platform/graphics/cg/GraphicsContext3DCG.cpp:
1673         (WebCore::GraphicsContext3D::paintToCanvas): Adopt the newly-created CoreGraphics objects rather than sharing ownership
1674         and over-incrementing their reference count. Also cleaned up the bizarre wrapping used for function arguments while I was
1675         touching this code.
1676
1677 2010-08-05  James Robinson  <jamesr@chromium.org>
1678
1679         Rubber stamped by Eric Seidel.
1680
1681         [SVG] SVGPathSeg.cpp needs an #if ENABLE(SVG) guard
1682         https://bugs.webkit.org/show_bug.cgi?id=43599
1683
1684         Matches the rest of the .cpp files in this directory.
1685
1686         * svg/SVGPathSeg.cpp:
1687
1688 2010-08-05  Erik Arvidsson  <arv@chromium.org>
1689
1690         Reviewed by Kent Tamura.
1691
1692         Calling setCustomValidity should trigger a layout
1693         https://bugs.webkit.org/show_bug.cgi?id=43582
1694
1695         Test: fast/forms/setCustomValidity.html
1696
1697         * html/ValidityState.cpp:
1698         (WebCore::ValidityState::setCustomErrorMessage): Call setNeedsValidityCheck to tell the system that the validity might have changed.
1699         * html/ValidityState.h:
1700
1701 2010-08-05  Sam Weinig  <sam@webkit.org>
1702
1703         Reviewed by Anders Carlsson.
1704
1705         Add ability to get a JSValueRef for a node handle and a world
1706         https://bugs.webkit.org/show_bug.cgi?id=43591
1707
1708         * WebCore.exp.in: Add exports.
1709
1710 2010-08-05  Gavin Barraclough  <barraclough@apple.com>
1711
1712         Rubber stamped by Sam Weinig
1713
1714         Bug 43594 - Add string forwards to Forward.h
1715         This allows us to remove forward declarations for these classes from
1716         WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
1717
1718         * WebCore.xcodeproj/project.pbxproj:
1719         * accessibility/AXObjectCache.h:
1720         * accessibility/AccessibilityARIAGrid.h:
1721         * accessibility/AccessibilityListBoxOption.h:
1722         * accessibility/AccessibilityObject.h:
1723         * accessibility/AccessibilityRenderObject.h:
1724         * accessibility/AccessibilityTable.h:
1725         * bindings/cpp/WebDOMCString.h:
1726         * bindings/cpp/WebDOMString.h:
1727         * bindings/gobject/ConvertToUTF8String.h:
1728         * bindings/js/DOMWrapperWorld.h:
1729         * bindings/js/JSDOMBinding.h:
1730         * bindings/js/JSDOMWindowBase.h:
1731         * bindings/js/JSMessagePortCustom.h:
1732         * bindings/js/JavaScriptCallFrame.h:
1733         * bindings/js/ScriptController.h:
1734         * bindings/js/ScriptProfile.h:
1735         * bindings/js/ScriptSourceProvider.h:
1736         * bindings/js/ScriptString.h:
1737         * bindings/js/WorkerScriptController.h:
1738         * bindings/objc/DOMImplementationFront.h:
1739         * bindings/v8/ScheduledAction.h:
1740         * bindings/v8/ScriptController.h:
1741         * bindings/v8/V8DOMWindowShell.h:
1742         * bindings/v8/V8Proxy.h:
1743         * bindings/v8/V8Utilities.h:
1744         * bindings/v8/custom/V8CustomXPathNSResolver.h:
1745         * bridge/c/c_utility.h:
1746         * css/CSSFontSelector.h:
1747         * css/CSSHelper.h:
1748         * css/CSSOMUtils.h:
1749         * css/CSSPrimitiveValue.h:
1750         * css/MediaList.h:
1751         * css/StyleBase.h:
1752         * css/StyleSheetList.h:
1753         * css/WebKitCSSKeyframesRule.h:
1754         * dom/CheckedRadioButtons.h:
1755         * dom/DOMImplementation.h:
1756         * dom/DocumentMarker.h:
1757         * dom/DynamicNodeList.h:
1758         * dom/EventTarget.h:
1759         * dom/MessagePort.h:
1760         * dom/MessagePortChannel.h:
1761         * dom/NameNodeList.h:
1762         * dom/Node.h:
1763         * dom/NodeList.h:
1764         * dom/OptionGroupElement.h:
1765         * dom/ScriptExecutionContext.h:
1766         * dom/SelectElement.h:
1767         * dom/ViewportArguments.h:
1768         * dom/make_names.pl:
1769         * editing/HTMLInterchange.h:
1770         * editing/htmlediting.h:
1771         * editing/markup.h:
1772         * html/CollectionCache.h:
1773         * html/DOMFormData.h:
1774         * html/DataGridColumnList.h:
1775         * html/DateComponents.h:
1776         * html/FileStream.h:
1777         * html/FileStreamProxy.h:
1778         * html/FormDataList.h:
1779         (WebCore::FormDataList::appendData):
1780         * html/HTMLCollection.h:
1781         * html/HTMLElementStack.h:
1782         * html/HTMLFormattingElementList.h:
1783         * html/HTMLParserQuirks.h:
1784         * html/HTMLQuoteElement.h:
1785         * html/HTMLScriptRunnerHost.h:
1786         * html/StepRange.h:
1787         * html/canvas/CanvasGradient.h:
1788         * html/canvas/CanvasNumberArray.h:
1789         * html/canvas/CanvasPattern.h:
1790         * inspector/InjectedScript.h:
1791         * inspector/InspectorCSSStore.h:
1792         * inspector/InspectorClient.h:
1793         * inspector/InspectorFrontendClient.h:
1794         * inspector/InspectorValues.h:
1795         * inspector/ScriptDebugListener.h:
1796         * loader/CachedResourceClient.h:
1797         * loader/CrossOriginAccessControl.h:
1798         * loader/DocumentThreadableLoader.h:
1799         * loader/FrameLoaderClient.h:
1800         * loader/RedirectScheduler.h:
1801         * loader/SubframeLoader.h:
1802         * loader/appcache/DOMApplicationCache.h:
1803         * loader/archive/ArchiveFactory.h:
1804         * loader/icon/IconDatabaseClient.h:
1805         * notifications/NotificationPresenter.h:
1806         * page/Chrome.h:
1807         * page/ChromeClient.h:
1808         * page/Console.h:
1809         * page/ContextMenuClient.h:
1810         * page/DOMSelection.h:
1811         * page/EditorClient.h:
1812         * page/EventHandler.h:
1813         * page/FrameView.h:
1814         * page/GeolocationPositionCache.h:
1815         * page/History.h:
1816         * page/Location.h:
1817         * page/Navigator.h:
1818         * page/NavigatorBase.h:
1819         * page/PluginHalterClient.h:
1820         * page/PrintContext.h:
1821         * page/SpeechInput.h:
1822         * page/SpeechInputListener.h:
1823         * page/animation/AnimationController.h:
1824         * platform/CookieJar.h:
1825         * platform/CrossThreadCopier.h:
1826         * platform/DragImage.h:
1827         * platform/FileSystem.h:
1828         * platform/Language.h:
1829         * platform/Length.h:
1830         * platform/LinkHash.h:
1831         * platform/LocalizationStrategy.h:
1832         * platform/LocalizedStrings.h:
1833         * platform/Logging.h:
1834         * platform/Pasteboard.h:
1835         * platform/PopupMenuClient.h:
1836         * platform/SearchPopupMenu.h:
1837         * platform/Widget.h:
1838         * platform/cf/BinaryPropertyList.h:
1839         * platform/chromium/ChromiumBridge.h:
1840         * platform/chromium/ClipboardUtilitiesChromium.h:
1841         * platform/cocoa/KeyEventCocoa.h:
1842         * platform/graphics/Color.h:
1843         * platform/graphics/FontCache.h:
1844         * platform/graphics/FontData.h:
1845         * platform/graphics/FontSelector.h:
1846         * platform/graphics/GraphicsTypes.h:
1847         * platform/graphics/Icon.h:
1848         * platform/graphics/ImageBuffer.h:
1849         * platform/graphics/ImageSource.h:
1850         * platform/graphics/MediaPlayer.h:
1851         * platform/graphics/MediaPlayerPrivate.h:
1852         * platform/graphics/Path.h:
1853         * platform/graphics/StringTruncator.h:
1854         * platform/graphics/cairo/FontCustomPlatformData.h:
1855         * platform/graphics/cairo/FontPlatformData.h:
1856         * platform/graphics/cg/FontPlatformData.h:
1857         * platform/graphics/cg/ImageSourceCG.h:
1858         * platform/graphics/chromium/FontCustomPlatformData.h:
1859         * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
1860         * platform/graphics/chromium/FontPlatformDataLinux.h:
1861         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
1862         * platform/graphics/haiku/FontCustomPlatformData.h:
1863         * platform/graphics/mac/FontCustomPlatformData.h:
1864         * platform/graphics/mac/FontPlatformData.h:
1865         * platform/graphics/qt/FontCustomPlatformData.h:
1866         * platform/graphics/qt/FontPlatformData.h:
1867         * platform/graphics/win/FontCustomPlatformData.h:
1868         * platform/graphics/win/FontCustomPlatformDataCairo.h:
1869         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
1870         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
1871         * platform/graphics/wince/FontPlatformData.h:
1872         * platform/graphics/wince/MediaPlayerPrivateWince.h:
1873         * platform/graphics/wince/MediaPlayerProxy.h:
1874         * platform/graphics/wx/FontCustomPlatformData.h:
1875         * platform/graphics/wx/FontPlatformData.h:
1876         * platform/mac/PasteboardHelper.h:
1877         * platform/network/DNS.h:
1878         * platform/network/FormData.h:
1879         * platform/network/FormDataBuilder.h:
1880         * platform/network/HTTPParsers.h:
1881         * platform/text/Hyphenation.h:
1882         * platform/text/LineEnding.h:
1883         * platform/text/TextCodec.h:
1884         * platform/text/TextEncoding.h:
1885         * platform/text/TextStream.h:
1886         * platform/win/BString.h:
1887         * platform/win/ClipboardUtilitiesWin.h:
1888         * platform/win/WCDataObject.h:
1889         * platform/win/WebCoreTextRenderer.h:
1890         * plugins/DOMMimeType.h:
1891         * plugins/DOMMimeTypeArray.h:
1892         * plugins/DOMPlugin.h:
1893         * plugins/DOMPluginArray.h:
1894         * rendering/CounterNode.h:
1895         * rendering/HitTestResult.h:
1896         * rendering/RenderObjectChildList.h:
1897         * rendering/RenderText.h:
1898         * rendering/RenderTreeAsText.h:
1899         * rendering/TextControlInnerElements.h:
1900         * rendering/style/ContentData.h:
1901         * rendering/style/RenderStyle.h:
1902         * storage/DatabaseAuthorizer.h:
1903         * storage/DatabaseTrackerClient.h:
1904         * storage/SQLTransaction.h:
1905         * storage/SQLTransactionSync.h:
1906         * storage/Storage.h:
1907         * storage/chromium/DatabaseObserver.h:
1908         * svg/SVGAnimatedTemplate.h:
1909         * svg/SVGDocumentExtensions.h:
1910         * svg/SVGGlyphElement.h:
1911         * svg/SVGHKernElement.h:
1912         * svg/SVGNumberList.h:
1913         * svg/SVGPointList.h:
1914         * svg/SVGPreserveAspectRatio.h:
1915         * svg/SVGStylable.h:
1916         * svg/SVGTests.h:
1917         * svg/SVGTransformList.h:
1918         * svg/SVGTransformable.h:
1919         * svg/SVGVKernElement.h:
1920         * websockets/ThreadableWebSocketChannel.h:
1921         * websockets/ThreadableWebSocketChannelClientWrapper.h:
1922         * websockets/WebSocket.h:
1923         * websockets/WebSocketChannel.h:
1924         * websockets/WebSocketHandshakeResponse.h:
1925         * wml/WMLErrorHandling.h:
1926         * wml/WMLPageState.h:
1927         * wml/WMLVariables.h:
1928         * workers/DefaultSharedWorkerRepository.h:
1929         * workers/SharedWorkerRepository.h:
1930         * workers/Worker.h:
1931         * workers/WorkerContextProxy.h:
1932         * workers/WorkerLoaderProxy.h:
1933         * workers/WorkerLocation.h:
1934         * workers/WorkerMessagingProxy.h:
1935         * workers/WorkerReportingProxy.h:
1936         * workers/WorkerThread.h:
1937         * xml/DOMParser.h:
1938         * xml/XMLHttpRequestUpload.h:
1939         * xml/XPathEvaluator.h:
1940         * xml/XPathExpression.h:
1941         * xml/XPathNSResolver.h:
1942         * xml/XPathResult.h:
1943         * xml/XPathUtil.h:
1944
1945 2010-08-05  Adam Barth  <abarth@webkit.org>
1946
1947         Reviewed by Eric Seidel.
1948
1949         U+0000 is turned to U+FFFD (replacement character)
1950         https://bugs.webkit.org/show_bug.cgi?id=42112
1951
1952         This patch introduces an intentional parsing difference from the HTML5
1953         parsing specificiation.  The spec requires us to convert NULL
1954         characters to U+FFFD, but doing so causes compatibility issues with a
1955         number of sites, including US Bank.
1956
1957         In this patch, we strip the null characters instead in certain cases.
1958         Firefox has made a corresponding change.  After gathering compatability
1959         data, we hope to convince the HTML WG to adopt this change.
1960
1961         Tests: fast/tokenizer/null-in-text.html
1962                fast/tokenizer/null-xss.html
1963
1964         * html/HTMLTokenizer.cpp:
1965         (WebCore::HTMLTokenizer::HTMLTokenizer):
1966         (WebCore::HTMLTokenizer::reset):
1967         * html/HTMLTokenizer.h:
1968         (WebCore::HTMLTokenizer::setSkipLeadingNewLineForListing):
1969         (WebCore::HTMLTokenizer::forceNullCharacterReplacement):
1970         (WebCore::HTMLTokenizer::setForceNullCharacterReplacement):
1971         (WebCore::HTMLTokenizer::shouldSkipNullCharacters):
1972         (WebCore::HTMLTokenizer::InputStreamPreprocessor::InputStreamPreprocessor):
1973         (WebCore::HTMLTokenizer::InputStreamPreprocessor::peek):
1974         * html/HTMLTreeBuilder.cpp:
1975         (WebCore::HTMLTreeBuilder::passTokenToLegacyParser):
1976         (WebCore::HTMLTreeBuilder::constructTreeFromToken):
1977         (WebCore::HTMLTreeBuilder::processStartTagForInBody):
1978
1979 2010-08-05  Andy Estes  <aestes@apple.com>
1980
1981         Reviewed by David Kilzer.
1982
1983         Rename iOS-related OS and PLATFORM macros.
1984         https://bugs.webkit.org/show_bug.cgi?id=43493
1985
1986         Rename WTF_OS_IPHONE_OS to WTF_OS_IOS, WTF_PLATFORM_IPHONE to
1987         WTF_PLATFORM_IOS, and WTF_PLATFORM_IPHONE_SIMULATOR to
1988         WTF_PLATFORM_IOS_SIMULATOR.
1989
1990         * platform/cocoa/KeyEventCocoa.mm:
1991         * platform/iphone/KeyEventIPhone.mm:
1992         * platform/network/Credential.h:
1993
1994 2010-08-05  Anders Carlsson  <andersca@apple.com>
1995
1996         Reviewed by Sam Weinig.
1997
1998         Use the visited link provider for visited links
1999         https://bugs.webkit.org/show_bug.cgi?id=43583
2000
2001         Export Page::visitedStateChanged and Page::allvisitedStateChanged.
2002
2003         * WebCore.exp.in:
2004
2005 2010-08-05  Eric Seidel  <eric@webkit.org>
2006
2007         Reviewed by Nikolas Zimmermann.
2008
2009         Touching SVGNames should only rebuild hundreds of files, not thousands
2010         https://bugs.webkit.org/show_bug.cgi?id=43308
2011
2012         Remove SVGNames.h include from several core SVG header files
2013         which do not need to include it.
2014
2015         One of them, SVGPathSeg.h, required creation of an SVGPathSeg.cpp.
2016         A bunch of SVGPathSeg* could remove PlatformString.h includes if
2017         we moved their toString() methods into the .cpp files.
2018
2019         I re-indented on header to stop check-webkit-style from complaining.
2020         I removed a couple mode lines I saw, since my understanding from
2021         previous webkit-dev threads is that we plan to remove those all.
2022
2023         No functional change, thus no tests.
2024
2025         * Android.mk:
2026         * CMakeLists.txt:
2027         * GNUmakefile.am:
2028         * WebCore.gypi:
2029         * WebCore.pro:
2030         * WebCore.xcodeproj/project.pbxproj:
2031         * svg/SVGAllInOne.cpp:
2032         * svg/SVGAngle.h:
2033         * svg/SVGPathSeg.cpp: Added.
2034         (WebCore::SVGPathSeg::~SVGPathSeg):
2035         (WebCore::SVGPathSeg::pathSegType):
2036         (WebCore::SVGPathSeg::pathSegTypeAsLetter):
2037         (WebCore::SVGPathSeg::toString):
2038         (WebCore::SVGPathSeg::associatedAttributeName):
2039         (WebCore::SVGPathSegSingleCoord::toString):
2040         * svg/SVGPathSeg.h:
2041         (WebCore::SVGPathSegSingleCoord::SVGPathSegSingleCoord):
2042         * svg/SVGPathSegArc.cpp:
2043         (WebCore::SVGPathSegArc::toString):
2044         * svg/SVGPathSegArc.h:
2045         (WebCore::SVGPathSegArc::SVGPathSegArc):
2046         * svg/SVGPathSegClosePath.h:
2047         (WebCore::SVGPathSegClosePath::create):
2048         (WebCore::SVGPathSegClosePath::pathSegType):
2049         (WebCore::SVGPathSegClosePath::pathSegTypeAsLetter):
2050         (WebCore::SVGPathSegClosePath::toString):
2051         * svg/SVGPathSegCurvetoCubic.h:
2052         * svg/SVGPathSegCurvetoCubicSmooth.h:
2053         * svg/SVGPathSegCurvetoQuadratic.h:
2054         * svg/SVGPathSegCurvetoQuadraticSmooth.h:
2055         * svg/SVGPathSegLineto.h:
2056         * svg/SVGPathSegLinetoHorizontal.h:
2057         * svg/SVGPathSegLinetoVertical.h:
2058         * svg/SVGPathSegMoveto.h:
2059         * svg/SVGTransform.h:
2060
2061 2010-08-05  Dirk Schulze  <krit@webkit.org>
2062
2063         Unreviewed sort of XCode project file.
2064
2065         * WebCore.xcodeproj/project.pbxproj:
2066
2067 2010-08-05  Adam Barth  <abarth@webkit.org>
2068
2069         Actually make HTMLEntityNames.json valid JSON.
2070
2071         * html/HTMLEntityNames.json:
2072
2073 2010-08-05  Beth Dakin  <bdakin@apple.com>
2074
2075         Reviewed by Kenneth Rohde Christiansen.
2076
2077         Fix for https://bugs.webkit.org/show_bug.cgi?id=43516 REGRESSION: 
2078         Huge number of memory leaks after enabling MathML
2079         -and corresponding-
2080         <rdar://problem/8274123>
2081
2082         Destroy the old children in 
2083         RenderMathMLOperator::updateFromElement() instead of just removing 
2084         them since just removing them will cause them to leak.
2085         * mathml/RenderMathMLOperator.cpp:
2086         (WebCore::RenderMathMLOperator::updateFromElement):
2087
2088 2010-08-05  Tony Chang  <tony@chromium.org>
2089
2090         Reviewed by David Hyatt.
2091
2092         Fix a crash when a hidden iframe with a custom scrollbar finishes loading an image.
2093         https://bugs.webkit.org/show_bug.cgi?id=42724
2094
2095         Test: scrollbars/hidden-iframe-scrollbar-crash2.html
2096
2097         * page/FrameView.cpp:
2098         (WebCore::FrameView::createScrollbar):
2099         * rendering/RenderScrollbar.cpp:
2100         (WebCore::RenderScrollbar::createCustomScrollbar): Pass in Frame
2101         (WebCore::RenderScrollbar::RenderScrollbar): Pass in Frame
2102         (WebCore::RenderScrollbar::owningRenderer): Use the frame to get the RenderBox
2103         (WebCore::RenderScrollbar::getScrollbarPseudoStyle):
2104         (WebCore::RenderScrollbar::updateScrollbarParts):
2105         (WebCore::RenderScrollbar::updateScrollbarPart):
2106         * rendering/RenderScrollbar.h:
2107         * rendering/RenderScrollbarPart.cpp:
2108         (WebCore::RenderScrollbarPart::computeScrollbarWidth): null check
2109         (WebCore::RenderScrollbarPart::computeScrollbarHeight): null check
2110
2111 2010-08-05  Yong Li  <yoli@rim.com>
2112
2113         Reviewed by Adam Treat.
2114
2115         Fix the problem that down-sampling code doesn't work
2116         for some GIF's. GIF reader can call setSize() multiple times.
2117         We should clear the scaling maps before adding new entries.
2118         Also add a fast path to check if the size has changed since last time.
2119
2120         https://bugs.webkit.org/show_bug.cgi?id=43501
2121
2122         * platform/image-decoders/ImageDecoder.cpp:
2123         (WebCore::ImageDecoder::prepareScaleDataIfNecessary):
2124         * platform/image-decoders/gif/GIFImageDecoder.cpp:
2125         (WebCore::GIFImageDecoder::setSize):
2126
2127 2010-08-05  Ilya Tikhonovsky  <loislo@chromium.org>
2128
2129         Reviewed by Yury Semikhatsky.
2130
2131         WebInspector: In the current implementation of inspector agents we're calling
2132         did methods manually. That is error prone and is bad from protocol point of view.
2133         It would be better to call did methods automatically from the corresponding methods
2134         of InspectorBackendDispatcher and report the results. As far as our protocol is
2135         statefull this trick will keep it in the consistent state.
2136         https://bugs.webkit.org/show_bug.cgi?id=43489
2137
2138         * inspector/CodeGeneratorInspector.pm:
2139         * inspector/Inspector.idl:
2140         * inspector/InspectorApplicationCacheAgent.cpp:
2141         (WebCore::InspectorApplicationCacheAgent::getApplicationCaches):
2142         * inspector/InspectorApplicationCacheAgent.h:
2143         * inspector/InspectorBackend.cpp:
2144         (WebCore::InspectorBackend::getProfilerLogLines):
2145         (WebCore::InspectorBackend::setInjectedScriptSource):
2146         (WebCore::InspectorBackend::dispatchOnInjectedScript):
2147         (WebCore::InspectorBackend::clearConsoleMessages):
2148         (WebCore::InspectorBackend::releaseWrapperObjectGroup):
2149         (WebCore::InspectorBackend::getDatabaseTableNames):
2150         * inspector/InspectorBackend.h:
2151         * inspector/InspectorCSSStore.cpp:
2152         (WebCore::InspectorCSSStore::inspectorStyleSheet):
2153         * inspector/InspectorCSSStore.h:
2154         * inspector/InspectorController.cpp:
2155         (WebCore::InspectorController::InspectorController):
2156         (WebCore::InspectorController::getCookies):
2157         (WebCore::InspectorController::getDOMStorageEntries):
2158         (WebCore::InspectorController::setDOMStorageItem):
2159         (WebCore::InspectorController::removeDOMStorageItem):
2160         (WebCore::InspectorController::getProfileHeaders):
2161         (WebCore::InspectorController::getProfile):
2162         (WebCore::InspectorController::editScriptSource):
2163         (WebCore::InspectorController::getScriptSource):
2164         (WebCore::InspectorController::setBreakpoint):
2165         (WebCore::InspectorController::getResourceContent):
2166         * inspector/InspectorController.h:
2167         (WebCore::InspectorController::inspectorClient):
2168         * inspector/InspectorDOMAgent.cpp:
2169         (WebCore::InspectorDOMAgent::getChildNodes):
2170         (WebCore::InspectorDOMAgent::setAttribute):
2171         (WebCore::InspectorDOMAgent::removeAttribute):
2172         (WebCore::InspectorDOMAgent::removeNode):
2173         (WebCore::InspectorDOMAgent::changeTagName):
2174         (WebCore::InspectorDOMAgent::getOuterHTML):
2175         (WebCore::InspectorDOMAgent::setOuterHTML):
2176         (WebCore::InspectorDOMAgent::setTextNodeValue):
2177         (WebCore::InspectorDOMAgent::getEventListenersForNode):
2178         (WebCore::InspectorDOMAgent::getStyles):
2179         (WebCore::InspectorDOMAgent::getAllStyles):
2180         (WebCore::InspectorDOMAgent::getStyleSheet):
2181         (WebCore::InspectorDOMAgent::getRuleRanges):
2182         (WebCore::InspectorDOMAgent::getInlineStyle):
2183         (WebCore::InspectorDOMAgent::getComputedStyle):
2184         (WebCore::InspectorDOMAgent::applyStyleText):
2185         (WebCore::InspectorDOMAgent::setStyleText):
2186         (WebCore::InspectorDOMAgent::setStyleProperty):
2187         (WebCore::InspectorDOMAgent::toggleStyleEnabled):
2188         (WebCore::InspectorDOMAgent::setRuleSelector):
2189         (WebCore::InspectorDOMAgent::addRule):
2190         (WebCore::InspectorDOMAgent::buildObjectForRule):
2191         (WebCore::InspectorDOMAgent::pushNodeByPathToFrontend):
2192         * inspector/InspectorDOMAgent.h:
2193         * inspector/InspectorValues.cpp:
2194         (WebCore::InspectorValue::asNumber):
2195         (WebCore::InspectorBasicValue::asNumber):
2196         * inspector/InspectorValues.h:
2197         * inspector/front-end/Callback.js:
2198         (WebInspector.Callback.prototype.processCallback):
2199         (WebInspector.Callback.prototype.removeCallbackEntry):
2200         * inspector/front-end/ElementsPanel.js:
2201         (WebInspector.ElementsPanel.prototype.reset):
2202         * inspector/front-end/inspector.js:
2203         (WebInspector.reportProtocolError):
2204
2205 2010-08-04  Kenneth Russell  <kbr@google.com>
2206
2207         Reviewed by Dimitri Glazkov.
2208
2209         Style cleanups in WebGL
2210         https://bugs.webkit.org/show_bug.cgi?id=38761
2211
2212         Cleaned up all style violations in WebGL-related files reported by
2213         check-webkit-style. No logic or other changes. Built WebKit and
2214         Chromium and ran WebGL layout tests.
2215
2216         * html/canvas/ArrayBuffer.cpp:
2217         (WebCore::ArrayBuffer::ArrayBuffer):
2218         (WebCore::ArrayBuffer::data):
2219         (WebCore::ArrayBuffer::byteLength):
2220         (WebCore::ArrayBuffer::~ArrayBuffer):
2221         (WebCore::ArrayBuffer::tryAllocate):
2222         * html/canvas/ArrayBufferView.cpp:
2223         (WebCore::ArrayBufferView::setImpl):
2224         * html/canvas/ArrayBufferView.h:
2225         * html/canvas/TypedArrayBase.h:
2226         * html/canvas/WebGLBuffer.cpp:
2227         (WebCore::WebGLBuffer::deleteObjectImpl):
2228         (WebCore::WebGLBuffer::associateBufferData):
2229         * html/canvas/WebGLBuffer.h:
2230         (WebCore::WebGLBuffer::~WebGLBuffer):
2231         (WebCore::WebGLBuffer::elementArrayBuffer):
2232         (WebCore::WebGLBuffer::getTarget):
2233         (WebCore::WebGLBuffer::isBuffer):
2234         * html/canvas/WebGLFramebuffer.cpp:
2235         (WebCore::WebGLFramebuffer::deleteObjectImpl):
2236         * html/canvas/WebGLFramebuffer.h:
2237         (WebCore::WebGLFramebuffer::~WebGLFramebuffer):
2238         (WebCore::WebGLFramebuffer::isDepthAttached):
2239         (WebCore::WebGLFramebuffer::isStencilAttached):
2240         (WebCore::WebGLFramebuffer::isDepthStencilAttached):
2241         (WebCore::WebGLFramebuffer::isFramebuffer):
2242         * html/canvas/WebGLGetInfo.cpp:
2243         * html/canvas/WebGLGetInfo.h:
2244         * html/canvas/WebGLObject.cpp:
2245         (WebCore::WebGLObject::deleteObject):
2246         * html/canvas/WebGLObject.h:
2247         (WebCore::WebGLObject::object):
2248         (WebCore::WebGLObject::detachContext):
2249         (WebCore::WebGLObject::context):
2250         (WebCore::WebGLObject::isBuffer):
2251         (WebCore::WebGLObject::isFramebuffer):
2252         (WebCore::WebGLObject::isProgram):
2253         (WebCore::WebGLObject::isRenderbuffer):
2254         (WebCore::WebGLObject::isShader):
2255         (WebCore::WebGLObject::isTexture):
2256         * html/canvas/WebGLProgram.cpp:
2257         (WebCore::WebGLProgram::deleteObjectImpl):
2258         * html/canvas/WebGLProgram.h:
2259         (WebCore::WebGLProgram::~WebGLProgram):
2260         (WebCore::WebGLProgram::isLinkFailureFlagSet):
2261         (WebCore::WebGLProgram::setLinkFailureFlag):
2262         (WebCore::WebGLProgram::isProgram):
2263         * html/canvas/WebGLRenderbuffer.cpp:
2264         (WebCore::WebGLRenderbuffer::deleteObjectImpl):
2265         * html/canvas/WebGLRenderbuffer.h:
2266         (WebCore::WebGLRenderbuffer::~WebGLRenderbuffer):
2267         (WebCore::WebGLRenderbuffer::setInternalFormat):
2268         (WebCore::WebGLRenderbuffer::getInternalFormat):
2269         (WebCore::WebGLRenderbuffer::isInitialized):
2270         (WebCore::WebGLRenderbuffer::setInitialized):
2271         (WebCore::WebGLRenderbuffer::isRenderbuffer):
2272         * html/canvas/WebGLRenderingContext.cpp:
2273         (WebCore::WebGLRenderingContext::beginPaint):
2274         (WebCore::WebGLRenderingContext::blendEquation):
2275         (WebCore::WebGLRenderingContext::getActiveAttrib):
2276         (WebCore::WebGLRenderingContext::getActiveUniform):
2277         (WebCore::WebGLRenderingContext::getBufferParameter):
2278         (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter):
2279         (WebCore::WebGLRenderingContext::vertexAttribPointer):
2280         * html/canvas/WebGLRenderingContext.h:
2281         (WebCore::WebGLRenderingContext::is3d):
2282         (WebCore::WebGLRenderingContext::isAccelerated):
2283         (WebCore::WebGLRenderingContext::graphicsContext3D):
2284         (WebCore::WebGLRenderingContext::cleanupAfterGraphicsCall):
2285         (WebCore::WebGLRenderingContext::VertexAttribState::VertexAttribState):
2286         (WebCore::WebGLRenderingContext::VertexAttribState::initValue):
2287         * html/canvas/WebGLShader.cpp:
2288         (WebCore::WebGLShader::deleteObjectImpl):
2289         * html/canvas/WebGLShader.h:
2290         (WebCore::WebGLShader::~WebGLShader):
2291         (WebCore::WebGLShader::getType):
2292         (WebCore::WebGLShader::isShader):
2293         * html/canvas/WebGLTexture.cpp:
2294         (WebCore::WebGLTexture::deleteObjectImpl):
2295         * html/canvas/WebGLTexture.h:
2296         (WebCore::WebGLTexture::~WebGLTexture):
2297         (WebCore::WebGLTexture::isCubeMapRWrapModeInitialized):
2298         (WebCore::WebGLTexture::setCubeMapRWrapModeInitialized):
2299         (WebCore::WebGLTexture::isTexture):
2300         (WebCore::WebGLTexture::LevelInfo::LevelInfo):
2301         (WebCore::WebGLTexture::LevelInfo::setInfo):
2302         * platform/graphics/GraphicsContext3D.h:
2303         (WebCore::GraphicsContext3D::):
2304         (WebCore::GraphicsContext3D::Attributes::Attributes):
2305         (WebCore::GraphicsContext3D::platformGraphicsContext3D):
2306         (WebCore::GraphicsContext3D::platformTexture):
2307         (WebCore::GraphicsContext3D::platformLayer):
2308
2309 2010-08-05  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
2310
2311         Reviewed by Simon Hausmann.
2312
2313         Make the viewport meta tag parser support the Android
2314         target-densitydpi extension.
2315         http://webkit.org/b/43492
2316
2317         http://developer.android.com/reference/android/webkit/WebView.html
2318         Section 'Building web pages to support different screen densities'
2319
2320         * dom/ViewportArguments.cpp:
2321         (WebCore::setViewportFeature):
2322         (WebCore::viewportErrorMessageTemplate):
2323         * dom/ViewportArguments.h:
2324         (WebCore::):
2325         (WebCore::ViewportArguments::ViewportArguments):
2326         (WebCore::ViewportArguments::hasCustomArgument):
2327
2328 2010-08-05  Jian Li  <jianli@chromium.org>
2329  
2330         Reviewed by David Levin.
2331
2332         Unify blob related feature defines to ENABLE(BLOB).
2333         https://bugs.webkit.org/show_bug.cgi?id=43081
2334
2335         * Configurations/FeatureDefines.xcconfig:
2336         * GNUmakefile.am:
2337         * WebCore.pri:
2338         * bindings/js/JSEventTarget.cpp:
2339         (WebCore::toJS):
2340         * bindings/v8/V8DOMWrapper.cpp:
2341         (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
2342         * dom/EventTarget.cpp:
2343         * dom/EventTarget.h:
2344         * dom/ExceptionCode.h:
2345         (WebCore::):
2346         * dom/ScriptExecutionContext.cpp:
2347         (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
2348         * dom/ScriptExecutionContext.h:
2349         * html/Blob.cpp:
2350         * html/Blob.h:
2351         * html/Blob.idl:
2352         * html/FileError.h:
2353         * html/FileError.idl:
2354         * html/FileReader.cpp:
2355         * html/FileReader.h:
2356         * html/FileReader.idl:
2357         * html/FileStream.cpp:
2358         (WebCore::FileStream::openForRead):
2359         * html/FileStream.h:
2360         * html/FileStreamClient.h:
2361         * html/FileStreamProxy.cpp:
2362         * html/FileStreamProxy.h:
2363         * html/FileThread.cpp:
2364         * html/FileThread.h:
2365         * page/DOMWindow.idl:
2366         * platform/BlobItem.cpp:
2367         (WebCore::getFileSnapshotModificationTime):
2368         (WebCore::DataBlobItem::slice):
2369         (WebCore::FileBlobItem::slice):
2370         * platform/BlobItem.h:
2371         * platform/network/FormData.cpp:
2372         (WebCore::FormData::deepCopy):
2373         (WebCore::FormData::appendFile):
2374         (WebCore::FormData::appendItem):
2375         (WebCore::FormData::appendKeyValuePairItems):
2376         * platform/network/FormData.h:
2377         (WebCore::operator==):
2378         * platform/network/mac/FormDataStreamMac.mm:
2379         (WebCore::closeCurrentStream):
2380         (WebCore::advanceCurrentStream):
2381         (WebCore::formCreate):
2382         (WebCore::formRead):
2383         (WebCore::setHTTPBody):
2384
2385 2010-08-05  Xan Lopez  <xlopez@igalia.com>
2386
2387         Reviewed by Gustavo Noronha.
2388
2389         When trying to wrap a Node we know is an Element fallback to a
2390         simple Element wrapper in the worst case, not to Node.
2391
2392         * bindings/gobject/WebKitDOMBinding.cpp:
2393         (WebKit::createWrapper):
2394
2395 2010-08-05  François Sausset  <sausset@gmail.com>
2396
2397         Reviewed by Kenneth Rohde Christiansen.
2398
2399         Implement basic values of MathML mathvariant attribute
2400         https://bugs.webkit.org/show_bug.cgi?id=43481
2401
2402         Test: mathml/presentation/attributes.xhtml
2403
2404         * css/mathml.css:
2405         (math[mathvariant="normal"], mstyle[mathvariant="normal"], mo[mathvariant="normal"], mn[mathvariant="normal"], mi[mathvariant="normal"], mtext[mathvariant="normal"], mspace[mathvariant="normal"], ms[mathvariant="normal"]):
2406         (math[mathvariant="bold"], mstyle[mathvariant="bold"], mo[mathvariant="bold"], mn[mathvariant="bold"], mi[mathvariant="bold"], mtext[mathvariant="bold"], mspace[mathvariant="bold"], ms[mathvariant="bold"]):
2407         (math[mathvariant="italic"], mstyle[mathvariant="italic"], mo[mathvariant="italic"], mn[mathvariant="italic"], mi[mathvariant="italic"], mtext[mathvariant="italic"], mspace[mathvariant="italic"], ms[mathvariant="italic"]):
2408         (math[mathvariant="bold-italic"], mstyle[mathvariant="bold-italic"], mo[mathvariant="bold-italic"], mn[mathvariant="bold-italic"], mi[mathvariant="bold-italic"], mtext[mathvariant="bold-italic"], mspace[mathvariant="bold-italic"], ms[mathvariant="bold-italic"]):
2409         * mathml/mathattrs.in:
2410
2411 2010-08-05  Yury Semikhatsky  <yurys@chromium.org>
2412
2413         Reviewed by Pavel Feldman.
2414
2415         Web Inspector: inspected page crashes when there is a cyclic reference in Object prototype
2416         https://bugs.webkit.org/show_bug.cgi?id=43558
2417
2418         Test: inspector/debugger-cyclic-ref.html
2419
2420         * bindings/v8/ScriptValue.cpp:
2421         (WebCore::v8ToInspectorValue):
2422
2423 2010-08-05  Satish Sampath  <satish@chromium.org>
2424
2425         Reviewed by Jeremy Orlow.
2426
2427         Fix rendering of speech button and enable layout tests
2428         https://bugs.webkit.org/show_bug.cgi?id=43425
2429
2430         Rewrote the speech button rendering code to match how the spin buttons (for input type=number)
2431         are implemented as the previous implementation did not work well on many platforms.
2432
2433         * rendering/RenderTextControlSingleLine.cpp:
2434         (WebCore::RenderTextControlSingleLine::~RenderTextControlSingleLine):
2435         (WebCore::RenderTextControlSingleLine::layout):
2436         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
2437         (WebCore::RenderTextControlSingleLine::styleDidChange):
2438         (WebCore::RenderTextControlSingleLine::hasControlClip):
2439         (WebCore::RenderTextControlSingleLine::adjustControlHeightBasedOnLineHeight):
2440         (WebCore::RenderTextControlSingleLine::createSubtreeIfNeeded):
2441         (WebCore::RenderTextControlSingleLine::createInnerTextStyle):
2442         (WebCore::RenderTextControlSingleLine::createSpeechButtonStyle):
2443         (WebCore::RenderTextControlSingleLine::clientPaddingRight):
2444         * rendering/RenderTextControlSingleLine.h:
2445         * rendering/TextControlInnerElements.cpp:
2446         (WebCore::InputFieldSpeechButtonElement::InputFieldSpeechButtonElement):
2447         (WebCore::InputFieldSpeechButtonElement::create):
2448         * rendering/TextControlInnerElements.h:
2449
2450 2010-08-05  Andrey Kosyakov  <caseq@chromium.org>
2451
2452         Reviewed by Pavel Feldman.
2453
2454         Web Inspector: Separated WebInspector extension API injection logic from other scripts that inspector injects.
2455         Enabled injection of the API scripts even if inspector is disabled for inspector front-end page.
2456         https://bugs.webkit.org/show_bug.cgi?id=43344
2457
2458         * inspector/InspectorController.cpp:
2459         (WebCore::InspectorController::inspectedWindowScriptObjectCleared):
2460         (WebCore::InspectorController::setInspectorExtensionAPI):
2461         * inspector/InspectorController.h:
2462         * inspector/InspectorFrontendHost.cpp:
2463         (WebCore::InspectorFrontendHost::setExtensionAPI):
2464
2465 2010-08-05  Charles Wei  <charles.wei@torchmobile.com.cn>
2466
2467         Reviewed by George Staikos.
2468
2469         <noscript> is working the other way around in some cases with xhtmlmp enabled
2470         https://bugs.webkit.org/show_bug.cgi?id=43469
2471
2472         Test: fast/xhtmlmp/noscript-basic.xhtml
2473
2474         * dom/Document.cpp:
2475         (WebCore::Document::Document):
2476
2477 2010-08-05  Yury Semikhatsky  <yurys@chromium.org>
2478
2479         Unreviewed. Fix Win compilation.
2480
2481         * bindings/js/JSBindingsAllInOne.cpp:
2482
2483 2010-08-05  Simon Hausmann  <simon.hausmann@nokia.com>
2484
2485         Reviewed by Tor Arne Vestbø.
2486
2487         [Qt] Clean up the input method handling
2488         https://bugs.webkit.org/show_bug.cgi?id=43545
2489
2490         Changed input method hint interface to be more efficient by setting
2491         all hints in one shot, like in QWidget.
2492
2493         * platform/qt/QWebPageClient.h:
2494
2495 2010-08-05  Yury Semikhatsky  <yurys@chromium.org>
2496
2497         Reviewed by Pavel Feldman.
2498
2499         Web Inspector: remove mutator methods from ScriptObject and remove ScriptArray.
2500         We shouldn't modify JS objects from InspectorController, InspectorValues
2501         should be used instead.
2502         https://bugs.webkit.org/show_bug.cgi?id=43546
2503
2504         * GNUmakefile.am:
2505         * WebCore.gypi:
2506         * WebCore.pro:
2507         * WebCore.vcproj/WebCore.vcproj:
2508         * WebCore.xcodeproj/project.pbxproj:
2509         * bindings/js/ScriptArray.cpp: Removed.
2510         * bindings/js/ScriptArray.h: Removed.
2511         * bindings/js/ScriptCallStack.h:
2512         * bindings/js/ScriptObject.cpp:
2513         * bindings/js/ScriptObject.h:
2514         * bindings/v8/ScriptArray.cpp: Removed.
2515         * bindings/v8/ScriptArray.h: Removed.
2516         * bindings/v8/ScriptCallStack.h:
2517         * bindings/v8/ScriptObject.cpp:
2518         * bindings/v8/ScriptObject.h:
2519
2520 2010-08-05  Ned Holbrook  <nholbrook@apple.com>
2521
2522         Reviewed by Darin Adler.
2523
2524         ~5% complex layout performance improvement.
2525         https://bugs.webkit.org/show_bug.cgi?id=43436
2526
2527         * platform/graphics/mac/ComplexTextController.h:
2528         * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
2529         (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun): Use Vector rather than CFMutableData.
2530         (WebCore::ComplexTextController::ComplexTextRun::createTextRunFromFontDataCoreText): Ditto.
2531         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText): Avoid typesetter allocation unless using typesetter options.
2532
2533 2010-08-05  Steve Block  <steveblock@google.com>
2534
2535         Reviewed by Jeremy Orlow.
2536
2537         targetReferenceFromResource() in SVGResources.cpp is missing an ENABLE(FILTERS) guard
2538         https://bugs.webkit.org/show_bug.cgi?id=43550
2539
2540         Also updates an existing ENABLE(FILTERS) guard to avoid a compiler
2541         warning 'case FilterResourceType not handled in switch' when FILTERS
2542         is not enabled.
2543
2544         No new tests, build fix only.
2545
2546         * rendering/SVGResources.cpp:
2547         (WebCore::targetReferenceFromResource):
2548         (WebCore::SVGResources::resourceDestroyed):
2549
2550 2010-08-05  Victoria Kirst  <vrk@google.com>
2551
2552         Reviewed by David Levin.
2553
2554         Added logic to use glMapTexSubImage2D to write video layer to GPU
2555         texture. Also fixes CPU usage problem from previous patch.
2556         https://bugs.webkit.org/show_bug.cgi?id=43101
2557
2558         No change in user-visible functionality (since it isn't turned on),
2559         so no new tests.
2560
2561         * platform/graphics/chromium/VideoLayerChromium.cpp:
2562         (WebCore::VideoLayerChromium::VideoLayerChromium):
2563         (WebCore::VideoLayerChromium::updateTextureContents):
2564         (WebCore::VideoLayerChromium::createTextureRect):
2565         (WebCore::VideoLayerChromium::updateTextureRect):
2566         (WebCore::VideoLayerChromium::updateCompleted):
2567         * platform/graphics/chromium/VideoLayerChromium.h:
2568
2569 2010-08-05  Zoltan Horvath  <zoltan@webkit.org>
2570
2571         Reviewed by Simon Hausmann.
2572
2573         Allow custom memory allocation control for ClipperData struct
2574         https://bugs.webkit.org/show_bug.cgi?id=43337
2575
2576         Inherits the following class from FastAllocBase because it is
2577         instantiated by 'new':                                     
2578
2579         class name         - instantiated at: WebCore/'location'
2580         RenderLayerBacking - rendering/RenderSVGResourceClipper.cpp:165
2581
2582         * rendering/RenderSVGResourceClipper.h:
2583
2584 2010-08-05  Zoltan Horvath  <zoltan@webkit.org>
2585
2586         Reviewed by Simon Hausmann.
2587
2588         Allow custom memory allocation control for DoctypeData class
2589         https://bugs.webkit.org/show_bug.cgi?id=43343
2590
2591         Inherits the following class from Noncopyable because it is
2592         instantiated by 'new' and no need to be copyable:
2593
2594         class name  - instantiated at: WebCore/'location'
2595         DoctypeData - html/HTMLToken.h:113
2596
2597         * html/HTMLToken.h:
2598
2599 2010-08-05  François Sausset  <sausset@gmail.com>
2600
2601         Reviewed by Darin Adler.
2602
2603         Small style adjustments for MathML merror element.
2604         https://bugs.webkit.org/show_bug.cgi?id=43432
2605
2606         * css/mathml.css:
2607         (merror):
2608
2609 2010-08-05  Yury Semikhatsky  <yurys@chromium.org>
2610
2611         Reviewed by Pavel Feldman.
2612
2613         Web Inspector: forbid InspectorController to create script objects directly in the frontend
2614         https://bugs.webkit.org/show_bug.cgi?id=43541
2615
2616         Cookie and AppCache data are now serialized into InspectorValues instead of
2617         ScriptObjects. These were last usages of InspectorFrontend::newScript{Object,Array}
2618         so we can remove them now and use only InspectorValues to pass data to the inspector
2619         frontend.
2620
2621         * inspector/Inspector.idl:
2622         * inspector/InspectorApplicationCacheAgent.cpp:
2623         (WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent):
2624         (WebCore::InspectorApplicationCacheAgent::getApplicationCaches):
2625         (WebCore::InspectorApplicationCacheAgent::buildObjectForApplicationCache):
2626         (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources):
2627         (WebCore::InspectorApplicationCacheAgent::buildObjectForApplicationCacheResource):
2628         * inspector/InspectorApplicationCacheAgent.h:
2629         * inspector/InspectorController.cpp:
2630         (WebCore::InspectorController::connectFrontend):
2631         (WebCore::InspectorController::getCookies):
2632         (WebCore::InspectorController::buildArrayForCookies):
2633         (WebCore::InspectorController::buildObjectForCookie):
2634         * inspector/InspectorController.h:
2635         * inspector/InspectorFrontend.cpp:
2636         (WebCore::InspectorFrontend::setRecordingProfile):
2637         * inspector/InspectorFrontend.h:
2638
2639 2010-08-05  Mario Sanchez Prada  <msanchez@igalia.com>
2640
2641         Reviewed by Xan Lopez.
2642
2643         [GTK] Extra check needed at AccessibilityObject::visiblePositionRangeForRange
2644         https://bugs.webkit.org/show_bug.cgi?id=43418
2645
2646         Ensure the renderer is a RenderText before calling toRenderText()
2647
2648         Also, simplified code a bit to avoid so many nested if's in that
2649         part of the code, while keeping the same logic.
2650
2651         * accessibility/AccessibilityObject.cpp:
2652         (WebCore::AccessibilityObject::visiblePositionRangeForRange):
2653
2654 2010-08-05  Kwang Yul Seo  <skyul@company100.net>
2655
2656         Reviewed by Kent Tamura.
2657
2658         [BREWMP] Define htonl, htons, ntohl and ntohs
2659         https://bugs.webkit.org/show_bug.cgi?id=43397
2660
2661         In BREWMP, AEEStdLib.h provides macros for byte order conversion: HTONL, HTONS, NTOHL and NTOHS.
2662         Use these macros to define htonl, htons, ntohl and ntohs used by WOFFFileFormat.cpp.
2663
2664         * platform/graphics/WOFFFileFormat.cpp:
2665
2666 2010-08-04  Zoltan Herczeg  <zherczeg@webkit.org>
2667
2668         Reviewed by Nikolas Zimmermann.
2669
2670         SVGFilterElement & SVGFE*Element don't support dynamic invalidation, when attributes change
2671         https://bugs.webkit.org/show_bug.cgi?id=42244
2672
2673         Implementing svgAttributeChanged for SVGFESpotLightElement object.
2674         Furthermore, invalidateFilter has been moved to SVGFilterElement, and
2675         it is a static function now.
2676
2677         Tests: svg/dynamic-updates/SVGFESpotLightElement-dom-limitingConeAngle-attr.html
2678                svg/dynamic-updates/SVGFESpotLightElement-dom-pointsAtX-attr.html
2679                svg/dynamic-updates/SVGFESpotLightElement-dom-pointsAtY-attr.html
2680                svg/dynamic-updates/SVGFESpotLightElement-dom-pointsAtZ-attr.html
2681                svg/dynamic-updates/SVGFESpotLightElement-dom-specularExponent-attr.html
2682                svg/dynamic-updates/SVGFESpotLightElement-dom-x-attr.html
2683                svg/dynamic-updates/SVGFESpotLightElement-dom-y-attr.html
2684                svg/dynamic-updates/SVGFESpotLightElement-dom-z-attr.html
2685                svg/dynamic-updates/SVGFESpotLightElement-svgdom-limitingConeAngle-prop.html
2686                svg/dynamic-updates/SVGFESpotLightElement-svgdom-pointsAtX-prop.html
2687                svg/dynamic-updates/SVGFESpotLightElement-svgdom-pointsAtY-prop.html
2688                svg/dynamic-updates/SVGFESpotLightElement-svgdom-pointsAtZ-prop.html
2689                svg/dynamic-updates/SVGFESpotLightElement-svgdom-specularExponent-prop.html
2690                svg/dynamic-updates/SVGFESpotLightElement-svgdom-x-prop.html
2691                svg/dynamic-updates/SVGFESpotLightElement-svgdom-y-prop.html
2692                svg/dynamic-updates/SVGFESpotLightElement-svgdom-z-prop.html
2693
2694         * svg/SVGFEDiffuseLightingElement.cpp:
2695         (WebCore::SVGFEDiffuseLightingElement::svgAttributeChanged):
2696         * svg/SVGFELightElement.cpp:
2697         (WebCore::SVGFELightElement::svgAttributeChanged):
2698         (WebCore::SVGFELightElement::childrenChanged):
2699         * svg/SVGFELightElement.h:
2700         * svg/SVGFEOffsetElement.cpp:
2701         (WebCore::SVGFEOffsetElement::svgAttributeChanged):
2702         * svg/SVGFESpecularLightingElement.cpp:
2703         * svg/SVGFilterElement.h:
2704         (WebCore::SVGFilterElement::invalidateFilter):
2705         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
2706         (WebCore::SVGFilterPrimitiveStandardAttributes::svgAttributeChanged):
2707         (WebCore::SVGFilterPrimitiveStandardAttributes::childrenChanged):
2708         * svg/SVGFilterPrimitiveStandardAttributes.h:
2709
2710 2010-08-05  Yury Semikhatsky  <yurys@chromium.org>
2711
2712         Reviewed by Pavel Feldman.
2713
2714         Web Inspector: serialize DOM storage items to InspectorValues
2715         https://bugs.webkit.org/show_bug.cgi?id=43486
2716
2717         * inspector/Inspector.idl:
2718         * inspector/InspectorController.cpp:
2719         (WebCore::InspectorController::populateScriptObjects):
2720         (WebCore::InspectorController::didUseDOMStorage):
2721         (WebCore::InspectorController::selectDOMStorage):
2722         (WebCore::InspectorController::getDOMStorageEntries):
2723         (WebCore::InspectorController::setDOMStorageItem):
2724         (WebCore::InspectorController::removeDOMStorageItem):
2725         * inspector/InspectorDOMStorageResource.cpp:
2726         (WebCore::InspectorDOMStorageResource::bind):
2727         * inspector/InspectorDOMStorageResource.h:
2728         * inspector/InspectorFrontend.cpp:
2729         * inspector/InspectorFrontend.h:
2730
2731 2010-08-04  Eric Seidel  <eric@webkit.org>
2732
2733         Reviewed by Adam Barth.
2734
2735         Enable HTML5 tree builder
2736         https://bugs.webkit.org/show_bug.cgi?id=42804
2737
2738         Months of work into a single line code change.
2739         Geez.  Should have thought of this sooner.
2740
2741         * html/HTMLTreeBuilder.cpp:
2742         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
2743
2744 2010-08-04  Kent Tamura  <tkent@chromium.org>
2745
2746         Reviewed by Darin Adler.
2747
2748         Spin-button behavior improvement for out-of-range values
2749         https://bugs.webkit.org/show_bug.cgi?id=43463
2750
2751         If the current value is smaller than the minimum value, the up
2752         button should change the value to the minimum value. If the
2753         current value is larger than the maximum value, the down button
2754         should change the value to the maximum value.
2755
2756         Test: fast/forms/input-number-outofrange.html
2757
2758         * html/HTMLInputElement.cpp:
2759         (WebCore::HTMLInputElement::stepUpFromRenderer):
2760
2761 2010-08-04  Antonio Gomes  <tonikitoo@webkit.org>
2762
2763         Reviewed by Daniel Bates.
2764
2765         Remove superfluous non-negative checks in HitTestResult:padding{Width|Height}
2766         https://bugs.webkit.org/show_bug.cgi?id=43534
2767
2768         As pointed out by Steve Block in https://bugs.webkit.org/show_bug.cgi?id=40197#c54 ,
2769         the non-negative checks present in both paddingWidth and paddingHeight methods of
2770         HitTestResults class are superflous, after we changed the rect based hit testing logic
2771         of invalid padding from IntSize(-1, -1) to IntSize(0, 0). Patch addresses this issue.
2772
2773         No new tests needed.
2774
2775         * rendering/HitTestResult.h:
2776         (WebCore::HitTestResult::paddingWidth):
2777         (WebCore::HitTestResult::paddingHeight):
2778
2779 2010-08-04  Sheriff Bot  <webkit.review.bot@gmail.com>
2780
2781         Unreviewed, rolling out r64674.
2782         http://trac.webkit.org/changeset/64674
2783         https://bugs.webkit.org/show_bug.cgi?id=43532
2784
2785         Doesn't work with HTML5 tree builder (Requested by tonyg-cr on
2786         #webkit).
2787
2788         * html/HTMLDocumentParser.cpp:
2789         (WebCore::HTMLDocumentParser::attemptToEnd):
2790         (WebCore::HTMLDocumentParser::endIfDelayed):
2791         * html/HTMLDocumentParser.h:
2792         * html/HTMLScriptRunner.cpp:
2793         (WebCore::HTMLScriptRunner::requestScript):
2794         (WebCore::HTMLScriptRunner::runScript):
2795         * html/HTMLScriptRunner.h:
2796
2797 2010-08-04  Adam Barth  <abarth@webkit.org>
2798
2799         Reviewed by Eric Seidel.
2800
2801         fast/parser/residual-style-hang.html hangs
2802         https://bugs.webkit.org/show_bug.cgi?id=42950
2803
2804         We need to cap the iteration of the adoption agency algorithm to
2805         prevent this hang.  The legacy tree builder does this as well.
2806
2807         * html/HTMLTreeBuilder.cpp:
2808         (WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
2809
2810 2010-08-04  Adam Barth  <abarth@webkit.org>
2811
2812         Reviewed by Eric Seidel.
2813
2814         Pick up spec change w.r.t. figcaption and summary
2815         https://bugs.webkit.org/show_bug.cgi?id=43075
2816
2817         * html/HTMLTreeBuilder.cpp:
2818         (WebCore::HTMLTreeBuilder::processEndTagForInBody):
2819
2820 2010-08-04  Adam Barth  <abarth@webkit.org>
2821
2822         Reviewed by Eric Seidel.
2823
2824         Pick up spec change w.r.t. replacement character and <frameset>
2825         https://bugs.webkit.org/show_bug.cgi?id=43073
2826
2827         Apparently this fixes parsing for some home router configuration pages.
2828
2829         * html/HTMLTreeBuilder.cpp:
2830         (WebCore::HTMLTreeBuilder::processCharacterBuffer):
2831
2832 2010-08-04  Gavin Barraclough  <barraclough@apple.com>
2833
2834         Reviewed by Sam Weinig.
2835
2836         Bug 43515 - Fix small design issues with PageAllocation, split out PageReservation.
2837         (add forwarding headers)
2838
2839         * ForwardingHeaders/wtf/Bitmap.h: Added.
2840         * ForwardingHeaders/wtf/PageReservation.h: Added.
2841
2842 2010-08-04  Zhenyao Mo  <zmo@google.com>
2843
2844         Reviewed by Adam Barth.
2845
2846         getAttachedShaders takes wrong parameter type in WebGLRenderingContext.idl
2847         https://bugs.webkit.org/show_bug.cgi?id=43517
2848
2849         * html/canvas/WebGLRenderingContext.idl: Fix the wrong parameter type in getAttachedShaders().
2850
2851 2010-08-04  Kenneth Russell  <kbr@google.com>
2852
2853         Reviewed by Dimitri Glazkov.
2854
2855         Rename CanvasObject to WebGLObject
2856         https://bugs.webkit.org/show_bug.cgi?id=31564
2857
2858         Renamed CanvasObject to WebGLObject using do-webcore-rename script.
2859         Because it seems the new convention is to not check in the changes
2860         made to this script, only checking in its effects. No new tests;
2861         built and ran WebGL in Safari and Chromium to test.
2862
2863         * Android.mk:
2864         * WebCore.gypi:
2865         * WebCore.pro:
2866         * WebCore.xcodeproj/project.pbxproj:
2867         * html/canvas/CanvasObject.cpp: Removed.
2868         * html/canvas/CanvasObject.h: Removed.
2869         * html/canvas/CanvasRenderingContext.h:
2870         * html/canvas/WebGLBuffer.cpp:
2871         (WebCore::WebGLBuffer::WebGLBuffer):
2872         * html/canvas/WebGLBuffer.h:
2873         * html/canvas/WebGLFramebuffer.cpp:
2874         (WebCore::WebGLFramebuffer::WebGLFramebuffer):
2875         (WebCore::WebGLFramebuffer::setAttachment):
2876         (WebCore::WebGLFramebuffer::onAttachedObjectChange):
2877         (WebCore::WebGLFramebuffer::isUninitialized):
2878         (WebCore::WebGLFramebuffer::setInitialized):
2879         * html/canvas/WebGLFramebuffer.h:
2880         * html/canvas/WebGLObject.cpp: Copied from WebCore/html/canvas/CanvasObject.cpp.
2881         (WebCore::WebGLObject::WebGLObject):
2882         (WebCore::WebGLObject::~WebGLObject):
2883         (WebCore::WebGLObject::setObject):
2884         (WebCore::WebGLObject::deleteObject):
2885         * html/canvas/WebGLObject.h: Copied from WebCore/html/canvas/CanvasObject.h.
2886         * html/canvas/WebGLProgram.cpp:
2887         (WebCore::WebGLProgram::WebGLProgram):
2888         * html/canvas/WebGLProgram.h:
2889         * html/canvas/WebGLRenderbuffer.cpp:
2890         (WebCore::WebGLRenderbuffer::WebGLRenderbuffer):
2891         * html/canvas/WebGLRenderbuffer.h:
2892         * html/canvas/WebGLRenderingContext.cpp:
2893         (WebCore::objectOrZero):
2894         (WebCore::WebGLRenderingContext::validateWebGLObject):
2895         (WebCore::WebGLRenderingContext::removeObject):
2896         (WebCore::WebGLRenderingContext::addObject):
2897         (WebCore::WebGLRenderingContext::detachAndRemoveAllObjects):
2898         (WebCore::WebGLRenderingContext::findTexture):
2899         (WebCore::WebGLRenderingContext::findRenderbuffer):
2900         (WebCore::WebGLRenderingContext::findBuffer):
2901         (WebCore::WebGLRenderingContext::findShader):
2902         * html/canvas/WebGLRenderingContext.h:
2903         * html/canvas/WebGLShader.cpp:
2904         (WebCore::WebGLShader::WebGLShader):
2905         * html/canvas/WebGLShader.h:
2906         * html/canvas/WebGLTexture.cpp:
2907         (WebCore::WebGLTexture::WebGLTexture):
2908         * html/canvas/WebGLTexture.h:
2909         * html/canvas/WebGLUniformLocation.h:
2910         * platform/graphics/mac/GraphicsContext3DMac.mm:
2911         * platform/graphics/qt/GraphicsContext3DQt.cpp:
2912
2913 2010-08-04  Dan Bernstein  <mitz@apple.com>
2914
2915         Build fix.
2916
2917         * platform/text/mac/HyphenationMac.mm:
2918         (WebCore::lastHyphenLocation):
2919
2920 2010-08-04  Dan Bernstein  <mitz@apple.com>
2921
2922         Release build fix.
2923
2924         * platform/text/mac/HyphenationMac.mm:
2925         (WebCore::lastHyphenLocation):
2926
2927 2010-08-04  Mark Rowe  <mrowe@apple.com>
2928
2929         Reviewed by Sam Weinig.
2930
2931         Don't leak FontDescription objects inside MathML.
2932
2933         * mathml/RenderMathMLOperator.cpp:
2934         (WebCore::RenderMathMLOperator::updateFromElement): Don't unnecessarily allocate the FontDescription on the heap.
2935         (WebCore::RenderMathMLOperator::createStackableStyle): Ditto.
2936
2937 2010-08-04  Kenneth Russell  <kbr@google.com>
2938
2939         Reviewed by Dimitri Glazkov.
2940
2941         Add ANGLE dependency for Chromium WebCore build
2942         https://bugs.webkit.org/show_bug.cgi?id=43508
2943
2944         No new tests. Built modified version of patch from bug 42405 in
2945         Chromium to test.
2946
2947         * WebCore.gyp/WebCore.gyp:
2948
2949 2010-08-04  Dan Bernstein  <mitz@apple.com>
2950
2951         Allow the language for hyphenation to be specified
2952         https://bugs.webkit.org/show_bug.cgi?id=43467
2953
2954         Test: fast/text/hyphenate-locale.html
2955
2956         Added a -webkit-hyphenate-locale property whose value can be either auto or a locale identifier
2957         string. The initial value is auto and the property is inherited. When the value is a locale
2958         identifier, hyphenation should follow the rules for the specified locale.
2959
2960         * WebCore.xcodeproj/project.pbxproj: Added AtomicStringKeyedMRUCache.h.
2961         * css/CSSComputedStyleDeclaration.cpp:
2962         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Handle -webkit-hyphenate-locale.
2963         Updated for the renaming of RenderStyle::hyphenateCharacter() to hyphenationString().
2964         * css/CSSParser.cpp:
2965         (WebCore::CSSParser::parseValue): Parse -webkit-hyphenate-locale.
2966         * css/CSSPropertyNames.in: Added -webkit-hyphenate-locale.
2967         * css/CSSStyleSelector.cpp:
2968         (WebCore::CSSStyleSelector::applyProperty): Apply the -webkit-hyphenate-locale property to the
2969         RenderStyle. Updated for the renaming of RenderStyle::hyphenateCharacter() to hyphenationString().
2970         * platform/text/AtomicStringKeyedMRUCache.h: Added.
2971         (WebCore::AtomicStringKeyedMRUCache::get):
2972         * platform/text/Hyphenation.cpp:
2973         (WebCore::canHyphenate): Added an implementation that returns false.
2974         (WebCore::lastHyphenLocation): Now asserts that it is not called, because it is an error to call
2975         this function if canHyphenate() returned false.
2976         * platform/text/Hyphenation.h:
2977         Added canHyphenate(). Returns true if hyphenation is possible for the given locale identifier.
2978         * platform/text/android/HyphenationAndroid.cpp:
2979         (WebCore::canHyphenate): Added an implementation that returns true and a FIXME.
2980         (WebCore::lastHyphenLocation): Added unused localeIdentifier parameter.
2981         * platform/text/cf/HyphenationCF.cpp:
2982         (WebCore::AtomicStringKeyedMRUCache<RetainPtr<CFLocaleRef> >::createValueForNullKey): Returns
2983         the CFLocaleRef for the current search locale.
2984         (WebCore::AtomicStringKeyedMRUCache<RetainPtr<CFLocaleRef> >::createValueForKey): Returns a
2985         CFLocaleRef for the locale identifier.
2986         (WebCore::canHyphenate): Added. Returns true.
2987         (WebCore::lastHyphenLocation): Added localeIdentifier parameter, used to pass a CFLocaleRef to
2988         the hyphenation function.
2989         * platform/text/mac/HyphenationMac.mm:
2990         (WebCore::AtomicStringKeyedMRUCache<bool>::createValueForNullKey): Returns whether the current
2991         search locale is english.
2992         (WebCore::AtomicStringKeyedMRUCache<bool>::createValueForKey): Returns whether the locale identifier
2993         string identifies locale with the English language.
2994         (WebCore::canHyphenate): Added. Returns true if the locale language is English.
2995         (WebCore::lastHyphenLocation): Added localeIdentifier parameter and an assertion that its language
2996         is English.
2997         * rendering/RenderBlockLineLayout.cpp:
2998         (WebCore::tryHyphenating): Added a locale identifier parameter, which is passed down to
2999         lastHyphenLocation(). Added 1 to the value passed for the beforeIndex parameter to lastHyphenLocation(),
3000         because the latter only returns values smaller than that index. The Mac implementation could
3001         return a value equal to beforeIndex, but that is fixed in the WebKitSystemInterface part of this patch.
3002         (WebCore::RenderBlock::findNextLineBreak): Only set canHyphenate to true if hyphenation is possible
3003         for the specified hyphenation locale. Pass the hyphenation locale to tryHyphenating().
3004         * rendering/style/RenderStyle.cpp:
3005         (WebCore::RenderStyle::diff): Compare hyphenation locales.
3006         (WebCore::RenderStyle::hyphenString): Updated for the renaming of hyphenateCharacter() to
3007         hyphenationString().
3008         * rendering/style/RenderStyle.h:
3009         (WebCore::InheritedFlags::hyphenationString): Renamed hyphenateCharacter() to this.
3010         (WebCore::InheritedFlags::hyphenationLocale): Added this accessor.
3011         (WebCore::InheritedFlags::setHyphenationString): Renamed setHyphenateCharacter() to this.
3012         (WebCore::InheritedFlags::setHyphenationLocale): Added this accessor.
3013         (WebCore::InheritedFlags::initialHyphenationString): Renamed initialHyphenateCharacter() to this.
3014         (WebCore::InheritedFlags::initialHyphenateLocale): Added. Returns the null atom, which represents a
3015         value of auto.
3016         * rendering/style/StyleRareInheritedData.cpp:
3017         (WebCore::StyleRareInheritedData::StyleRareInheritedData): Copy the hyphenation locale. Updated for
3018         rename.
3019         (WebCore::StyleRareInheritedData::operator==): Compare the hyphenation locales. Updated for rename.
3020         * rendering/style/StyleRareInheritedData.h:
3021
3022 2010-08-04  Tony Gentilcore  <tonyg@chromium.org>
3023
3024         Reviewed by Eric Seidel.
3025
3026         Support <script defer> as specified by HTML5
3027         https://bugs.webkit.org/show_bug.cgi?id=40934
3028
3029         See: http://dev.w3.org/html5/spec/Overview.html#the-end
3030
3031         Tests: fast/dom/HTMLScriptElement/defer-double-defer-write.html
3032                fast/dom/HTMLScriptElement/defer-double-write.html
3033                fast/dom/HTMLScriptElement/defer-inline-script.html
3034                fast/dom/HTMLScriptElement/defer-onbeforeload.html
3035                fast/dom/HTMLScriptElement/defer-script-invalid-url.html
3036                http/tests/misc/script-defer-after-slow-stylesheet.html
3037                http/tests/misc/script-defer-write-slow-stylesheet.html
3038                http/tests/misc/script-defer.html
3039
3040         * html/HTMLDocumentParser.cpp:
3041         (WebCore::HTMLDocumentParser::attemptToEnd):
3042         (WebCore::HTMLDocumentParser::endIfDelayed):
3043         (WebCore::HTMLDocumentParser::executeScriptsWaitingForParsingAndEnd):
3044         * html/HTMLDocumentParser.h:
3045         * html/HTMLScriptRunner.cpp:
3046         (WebCore::HTMLScriptRunner::executeScriptsWaitingForParsing):
3047         (WebCore::HTMLScriptRunner::requestScript):
3048         (WebCore::HTMLScriptRunner::requestParsingBlockingScript):
3049         (WebCore::HTMLScriptRunner::requestDeferredScript):
3050         (WebCore::HTMLScriptRunner::runScript):
3051         * html/HTMLScriptRunner.h:
3052         (WebCore::HTMLScriptRunner::PendingScript::PendingScript):
3053         (WebCore::HTMLScriptRunner::PendingScript::operator=):
3054
3055 2010-08-04  Kevin Ollivier  <kevino@theolliviers.com>
3056
3057         [wx] Build fix for gcc not importing all symbols from convenience libraries.
3058         Works on 10.6 only for Mac until the build system is reworked.
3059
3060         * bindings/scripts/CodeGeneratorCPP.pm: Add conditionals in impl. to header as well.
3061         * wscript: 
3062
3063 2010-08-04  Kevin Ollivier  <kevino@theolliviers.com>
3064
3065         [wx] Build fix. Enclose PlatformStrategy methods in USE(PLATFORM_STRATEGIES).
3066         
3067         * platform/LocalizedStrings.cpp:
3068
3069 2010-08-04  François Sausset  <sausset@gmail.com>
3070
3071         Reviewed by Kenneth Rohde Christiansen.
3072
3073         Remove unnecessary calls to setStyle() in MathML code that made RenderLayer crash.
3074         https://bugs.webkit.org/show_bug.cgi?id=42894
3075
3076         Test: mathml/presentation/style.xhtml
3077
3078         * mathml/MathMLInlineContainerElement.cpp:
3079         (WebCore::MathMLInlineContainerElement::createRenderer):
3080         * mathml/MathMLMathElement.cpp:
3081         (WebCore::MathMLMathElement::createRenderer):
3082         * mathml/MathMLTextElement.cpp:
3083         (WebCore::MathMLTextElement::createRenderer):
3084
3085 2010-08-03  Kenneth Russell  <kbr@google.com>
3086
3087         Reviewed by Nate Chapin.
3088
3089         Move WebGL-specific code out of GraphicsContext3D so that G3D can be used as a generic accelerated drawing API
3090         https://bugs.webkit.org/show_bug.cgi?id=43221
3091
3092         Added a helper function to extract the contents of WebGL objects
3093         to reduce duplicated code and fix a couple of potential crashes
3094         introduced in the previous refactoring.
3095
3096         No new tests; ran existing WebGL tests.
3097
3098         * html/canvas/WebGLRenderingContext.cpp:
3099         (WebCore::WebGLRenderingContext::attachShader):
3100         (WebCore::WebGLRenderingContext::bindAttribLocation):
3101         (WebCore::WebGLRenderingContext::bindBuffer):
3102         (WebCore::WebGLRenderingContext::bindFramebuffer):
3103         (WebCore::WebGLRenderingContext::bindRenderbuffer):
3104         (WebCore::WebGLRenderingContext::bindTexture):
3105         (WebCore::WebGLRenderingContext::compileShader):
3106         (WebCore::WebGLRenderingContext::detachShader):
3107         (WebCore::WebGLRenderingContext::framebufferRenderbuffer):
3108         (WebCore::WebGLRenderingContext::framebufferTexture2D):
3109         (WebCore::WebGLRenderingContext::getActiveAttrib):
3110         (WebCore::WebGLRenderingContext::getActiveUniform):
3111         (WebCore::WebGLRenderingContext::getAttachedShaders):
3112         (WebCore::WebGLRenderingContext::getAttribLocation):
3113         (WebCore::WebGLRenderingContext::getProgramParameter):
3114         (WebCore::WebGLRenderingContext::getProgramInfoLog):
3115         (WebCore::WebGLRenderingContext::getShaderParameter):
3116         (WebCore::WebGLRenderingContext::getShaderInfoLog):
3117         (WebCore::WebGLRenderingContext::getShaderSource):
3118         (WebCore::WebGLRenderingContext::getUniform):
3119         (WebCore::WebGLRenderingContext::getUniformLocation):
3120         (WebCore::WebGLRenderingContext::linkProgram):
3121         (WebCore::WebGLRenderingContext::shaderSource):
3122         (WebCore::WebGLRenderingContext::useProgram):
3123         (WebCore::WebGLRenderingContext::validateProgram):
3124         (WebCore::WebGLRenderingContext::handleNPOTTextures):
3125         (WebCore::WebGLRenderingContext::restoreStatesAfterVertexAttrib0Simulation):
3126
3127 2010-08-04  Mario Sanchez Prada  <msanchez@igalia.com>
3128
3129         Reviewed by Jeremy Orlow.
3130
3131         [Gtk] Make sure DRT return the right AXTitle for controls
3132         https://bugs.webkit.org/show_bug.cgi?id=39997
3133
3134         Fallback to the text under the given element as its name in case
3135         it's a control element and has no associated label for it.
3136
3137         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3138         (webkit_accessible_get_name):
3139
3140 2010-08-02  Kenneth Russell  <kbr@google.com>
3141
3142         Reviewed by Dimitri Glazkov.
3143
3144         Port Chromium's accelerated compositing to Mac OS X
3145         https://bugs.webkit.org/show_bug.cgi?id=43398
3146
3147         No new tests. Tested manually with CSS 3D and WebGL tests.
3148
3149         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
3150         (WebCore::clearBorderColor):
3151         (WebCore::clearLayerBackgroundColor):
3152          - Fixed compilation problems with gcc.
3153         * platform/graphics/chromium/ImageLayerChromium.cpp:
3154         (WebCore::ImageLayerChromium::updateTextureContents):
3155          - Added Core Graphics port.
3156         * platform/graphics/chromium/LayerChromium.cpp:
3157         (WebCore::LayerChromium::LayerChromium):
3158          - Fixed compilation problems with gcc related to initialization
3159            order of members.
3160         (WebCore::LayerChromium::updateTextureContents):
3161         (WebCore::LayerChromium::updateTextureRect):
3162          - Ported to Core Graphics, adjusting for lower-left coordinate
3163            system origin.
3164         * platform/graphics/chromium/LayerRendererChromium.cpp:
3165         (WebCore::LayerRendererChromium::LayerRendererChromium):
3166          - Fixed compilation problems with gcc related to initialization
3167            order of members.
3168         (WebCore::LayerRendererChromium::setRootLayerCanvasSize):
3169          - Ported to Core Graphics.
3170         (WebCore::LayerRendererChromium::drawLayers):
3171          - Added more debug-only error calls during drawing phase.
3172            Adjusted scrolling and incremental updating code for Core
3173            Graphics' lower-left coordinate system origin.
3174         (WebCore::LayerRendererChromium::initializeSharedGLObjects):
3175          - Removed color channel swizzling in Core Graphics port. Fixed
3176            preexisting bug in initialization check of m_rootLayerTextureId.
3177         * platform/graphics/chromium/LayerRendererChromium.h:
3178          - Added needed data members for Core Graphics port.
3179
3180 2010-08-04  Yury Semikhatsky  <yurys@chromium.org>
3181
3182         Reviewed by Pavel Feldman.
3183
3184         Web Inspector: use InspectorValue to push dispatch results from the injected script
3185         https://bugs.webkit.org/show_bug.cgi?id=43483
3186
3187         * bindings/js/JSInjectedScriptHostCustom.cpp:
3188         (WebCore::JSInjectedScriptHost::reportDidDispatchOnInjectedScript):
3189         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
3190         (WebCore::V8InjectedScriptHost::reportDidDispatchOnInjectedScriptCallback):
3191         * inspector/InjectedScript.cpp:
3192         (WebCore::InjectedScript::dispatch):
3193         * inspector/InjectedScript.h:
3194         * inspector/InjectedScriptHost.cpp:
3195         (WebCore::InjectedScriptHost::reportDidDispatchOnInjectedScript):
3196         (WebCore::InjectedScriptHost::remoteFrontend):
3197         * inspector/InjectedScriptHost.h:
3198         * inspector/Inspector.idl:
3199         * inspector/InspectorBackend.cpp:
3200         (WebCore::InspectorBackend::dispatchOnInjectedScript):
3201         * inspector/InspectorController.cpp:
3202         (WebCore::InspectorController::didContinue):
3203         * inspector/InspectorFrontend.cpp:
3204         * inspector/InspectorFrontend.h:
3205
3206 2010-08-04  Abhishek Arya  <inferno@chromium.org>
3207
3208         Unreviewed. Put missing equivalent js bindings check.
3209
3210         Forgot putting js bindings check in http://trac.webkit.org/changeset/64647. This fixes the qt crash.
3211
3212         * bindings/js/JSDesktopNotificationsCustom.cpp:
3213         (WebCore::JSNotificationCenter::requestPermission):
3214
3215 2010-08-04  Yury Semikhatsky  <yurys@chromium.org>
3216
3217         Reviewed by Pavel Feldman.
3218
3219         Web Inspector: serialize database resources to InspectorValues
3220         https://bugs.webkit.org/show_bug.cgi?id=43482
3221
3222         * inspector/Inspector.idl:
3223         * inspector/InspectorBackend.cpp:
3224         (WebCore::InspectorBackend::getDatabaseTableNames):
3225         * inspector/InspectorController.cpp:
3226         (WebCore::InspectorController::populateScriptObjects):
3227         (WebCore::InspectorController::selectDatabase):
3228         (WebCore::InspectorController::didOpenDatabase):
3229         * inspector/InspectorController.h:
3230         * inspector/InspectorDatabaseResource.cpp:
3231         (WebCore::InspectorDatabaseResource::create):
3232         (WebCore::InspectorDatabaseResource::InspectorDatabaseResource):
3233         (WebCore::InspectorDatabaseResource::bind):
3234         * inspector/InspectorDatabaseResource.h:
3235         * inspector/InspectorFrontend.cpp:
3236         * inspector/InspectorFrontend.h:
3237         * storage/Database.cpp:
3238         (WebCore::Database::openDatabase):
3239
3240 2010-08-03  Abhishek Arya  <inferno@chromium.org>
3241
3242         Reviewed by Alexey Proskuryakov.
3243
3244         Null the script execution context when disconnecting frame in notifications.
3245         Make sure that script execution context is valid in notification requestPermission.
3246         https://bugs.webkit.org/show_bug.cgi?id=43295
3247
3248         Tests: fast/notifications/notifications-document-close-crash.html
3249
3250         * bindings/v8/custom/V8NotificationCenterCustom.cpp:
3251         (WebCore::V8NotificationCenter::requestPermissionCallback):
3252         * notifications/NotificationCenter.cpp:
3253         (WebCore::NotificationCenter::disconnectFrame):
3254
3255 2010-08-03  Adam Roben  <aroben@apple.com>
3256
3257         Turn on PLATFORM_STRATEGIES on Windows
3258
3259         Fixes <http://webkit.org/b/43431>.
3260
3261         Reviewed by Anders Carlsson.
3262
3263         * WebCore.vcproj/WebCore.vcproj: Added LocalizedStrings.cpp,
3264         PlatformStrategies.h, LocalizationStrategy.h, PluginStrategy.h, and
3265         VisitedLinkStrategy.h. Removed PluginDataWin.cpp
3266
3267         * platform/LocalizedStrings.cpp: Wrapped Mac-only functions in
3268         PLATFORM(MAC) guards.
3269
3270         (WebCore::uploadFileText):
3271         (WebCore::allFilesText):
3272         Added these Windows-only functions.
3273
3274         * plugins/win/PluginDataWin.cpp: Removed.
3275
3276 2010-08-04  Yury Semikhatsky  <yurys@chromium.org>
3277
3278         Reviewed by Pavel Feldman.
3279
3280         Web Inspector: serialize CPU profiles to InspectorValues instead of
3281         using JS wrappers.
3282         https://bugs.webkit.org/show_bug.cgi?id=43475
3283
3284         * Android.jscbindings.mk:
3285         * CMakeLists.txt:
3286         * GNUmakefile.am:
3287         * WebCore.pro:
3288         * WebCore.vcproj/WebCore.vcproj:
3289         * WebCore.xcodeproj/project.pbxproj:
3290         * bindings/js/ScriptProfile.h:
3291         * bindings/js/ScriptProfiler.cpp:
3292         (WebCore::ScriptProfiler::stop):
3293         * bindings/scripts/CodeGeneratorJS.pm:
3294         * bindings/v8/ScriptProfile.cpp:
3295         (WebCore::buildInspectorObjectFor):
3296         (WebCore::ScriptProfile::buildInspectorObjectForHead):
3297         * bindings/v8/ScriptProfile.h:
3298         * inspector/Inspector.idl:
3299         * inspector/InspectorController.cpp:
3300         (WebCore::InspectorController::addProfile):
3301         (WebCore::InspectorController::addProfileFinishedMessageToConsole):
3302         (WebCore::InspectorController::getProfileHeaders):
3303         (WebCore::InspectorController::getProfile):
3304         (WebCore::InspectorController::createProfileHeader):
3305         * inspector/InspectorController.h:
3306         * inspector/InspectorFrontend.cpp:
3307         * inspector/InspectorFrontend.h:
3308
3309 2010-08-04  Andreas Kling  <andreas.kling@nokia.com>
3310
3311         Reviewed by Simon Hausmann.
3312
3313         [Qt] Use a QImage for the stroke applier scratch context
3314
3315         This avoids leaking a server-side resource on some graphics systems.
3316
3317         * platform/graphics/qt/PathQt.cpp:
3318         (WebCore::scratchContext):
3319
3320 2010-08-03  Ben Murdoch  <benm@google.com>
3321
3322         Reviewed by Darin Adler.
3323
3324         HTML5 parser may cause onload not to fire
3325         https://bugs.webkit.org/show_bug.cgi?id=43423
3326
3327         If a complex page causes the HTML parser to yield,
3328         then when parsing continues again and eventually
3329         finishes, we are missing a call to endIfDelayed(). This
3330         results in onload never being called.
3331
3332         Not for lack of trying, but it seems almost
3333         impossible to write a reliable test for this bug,
3334         due to the highly timing-dependent nature of the
3335         bug. The link above contains further discussion and
3336         attempts at writing a test.
3337         
3338         * html/HTMLDocumentParser.cpp:
3339         (WebCore::HTMLDocumentParser::resumeParsingAfterYield):
3340         Add a call to endIfDelayed() after pumping the tokenizer
3341         post the parser yielding to ensure that the parsing step
3342         is completed properly and the onload event fires.
3343
3344 2010-08-04  Dirk Schulze  <krit@webkit.org>
3345
3346         Unreviewed sort of XCode project file.
3347
3348         * WebCore.xcodeproj/project.pbxproj:
3349
3350 2010-08-03  Darin Adler  <darin@apple.com>
3351
3352         Reviewed by Dan Bernstein.
3353
3354         System color changes are not applied properly
3355         https://bugs.webkit.org/show_bug.cgi?id=43468
3356
3357         * manual-tests/system-color-change.html: Added.
3358
3359         * rendering/RenderTheme.cpp:
3360         (WebCore::RenderTheme::platformColorsDidChange): Added a call to
3361         Page::setNeedsReapplyStyles, so all frames of all pages will recompute
3362         in case they use system colors. It's rare for these colors to change,
3363         so OK to do a little extra style computation.
3364
3365 2010-08-04  Nikolas Zimmermann  <nzimmermann@rim.com>
3366
3367         Not reviewed. Revert changed license in SVGFEOffsetElement.h, thanks Gabor for noticing.
3368
3369         * svg/SVGFEOffsetElement.h:
3370
3371 2010-08-03  Alexey Proskuryakov  <ap@apple.com>
3372
3373         Reviewed by Sam Weinig.
3374
3375         https://bugs.webkit.org/show_bug.cgi?id=42939
3376         WebEditorClient::didBeginEditing is never called in WebKit2
3377
3378         * page/FocusController.cpp: (WebCore::FocusController::setFocused): Focusing a page without
3379         a focused frame makes little sense, so WebKit used to focus a frame first when its view
3380         became first responder. For viewless frames, WebKit cannot know what to focus. The assumption
3381         here is that in all cases with null m_focusedFrame, it's the main frame that needs to be focused.
3382
3383 2010-08-03  Gavin Barraclough  <barraclough@apple.com>
3384
3385         Build fix following r64624.
3386
3387         * ForwardingHeaders/wtf/BitMap.h: Added.
3388
3389 2010-08-03  Kent Tamura  <tkent@chromium.org>
3390
3391         Reviewed by Ojan Vafai.
3392
3393         <input type=number> UI: Support wheel events
3394         https://bugs.webkit.org/show_bug.cgi?id=42441
3395
3396         Test: fast/forms/input-number-wheel.html
3397
3398         * html/HTMLInputElement.cpp:
3399         (WebCore::HTMLInputElement::defaultEventHandler):
3400          Call stepUpFromRenderer() for wheelDeltaY.
3401
3402 2010-08-03  Joseph Pecoraro  <joepeck@webkit.org>
3403
3404         Reviewed by David Kilzer.
3405
3406         Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
3407         https://bugs.webkit.org/show_bug.cgi?id=40627
3408
3409         Part 6 - LayoutTest and Cleanup
3410
3411         Test: http/tests/appcache/origin-quota.html
3412
3413         * loader/appcache/ApplicationCacheGroup.cpp:
3414         (WebCore::ApplicationCacheGroup::scheduleReachedOriginQuotaCallback): made synchronous, as asynchronously the cache group was deleted too soon.
3415         * loader/appcache/ApplicationCacheStorage.cpp:
3416         (WebCore::ApplicationCacheStorage::storeUpdatedQuotaForOrigin): all storing operations should force the database to be created if needed.
3417
3418 2010-08-03  Ryosuke Niwa  <rniwa@webkit.org>
3419
3420         Reviewed by Eric Seidel.
3421
3422         extractAndNegateTextDecorationStyle and maxRangeOffset in ApplyStyleCommand.cpp should be deleted
3423         https://bugs.webkit.org/show_bug.cgi?id=43437
3424
3425         Removed extractAndNegateTextDecorationStyle because we never push down text decorations added by CSS rules
3426         as discussed on the bug 27809. Also removed pushDownTextDecorationStyleAtBoundaries because it only existed
3427         to encapsulate the complexity of calling pushDownTextDecorationStyleAroundNode first with forceNegate = false
3428         (calling pushDownTextDecorationStyleAroundNode) and again with forceNegate = true (calling extractAndNegateTextDecorationStyle)
3429         after updating layout but neither the layout update nor the second call to pushDownTextDecorationStyleAroundNode
3430         is needed after the removal of extractAndNegateTextDecorationStyle.
3431
3432         Also replaced maxRangeOffset by lastOffsetForEditing as FIXME (added by r48235) indicated.
3433
3434         No new tests added since this is a clean up.
3435
3436         * editing/ApplyStyleCommand.cpp:
3437         (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode): No longer takes forceNegate as an argument.
3438         (WebCore::ApplyStyleCommand::removeInlineStyle): Calls pushDownTextDecorationStyleAroundNode directly.
3439         * editing/ApplyStyleCommand.h:
3440
3441 2010-08-03  Ryosuke Niwa  <rniwa@webkit.org>
3442
3443         Reviewed by Ojan Vafai.
3444
3445         Extract a function that serializes nodes from the range version of createMarkup
3446         https://bugs.webkit.org/show_bug.cgi?id=43405
3447
3448         Extracted serializeNodes that serializes nodes from createMarkup.
3449         No new tests added since this is a clean up.
3450
3451         * editing/markup.cpp:
3452         (WebCore::serializeNodes): Added.
3453         (WebCore::createMarkup): Calls serializeNodes.
3454
3455 2010-08-03  Brian Weinstein  <bweinstein@apple.com>
3456
3457         Fix the build by adding the needed MathML source files to WebCore's vcproj.
3458         Also, Visual Studio did some drive-by resorting of the vcproj, the added
3459         MathML files are the only important change.
3460
3461         * WebCore.vcproj/WebCore.vcproj:
3462
3463 2010-08-03  Joseph Pecoraro  <joepeck@webkit.org>
3464
3465         Reviewed by Nate Chapin.
3466
3467         Web Inspector: Missing ApplicationCache InspectorBackend Stub
3468         https://bugs.webkit.org/show_bug.cgi?id=43265
3469
3470         Registered "getApplicationCaches".
3471
3472         * inspector/front-end/InspectorBackendStub.js:
3473         (WebInspector.InspectorBackendStub): 
3474
3475 2010-08-03  Brian Weinstein  <bweinstein@apple.com>
3476
3477         Fix the Windows build by adding WebCore/mathml to the list of paths to look for header
3478         files.
3479
3480         * WebCore.vcproj/WebCoreCommon.vsprops:
3481
3482 2010-08-03  Mark Rowe  <mrowe@apple.com>
3483
3484         Fix the i386 build with a static_cast hammer.
3485
3486         * mathml/RenderMathMLFraction.cpp:
3487         (WebCore::RenderMathMLFraction::layout):
3488
3489 2010-08-03  Beth Dakin  <bdakin@apple.com>
3490
3491         Speculative build fix for Leopard.
3492
3493         * mathml/RenderMathMLOperator.cpp:
3494         * mathml/RenderMathMLRoot.cpp:
3495         (WebCore::RenderMathMLRoot::paint):
3496         (WebCore::RenderMathMLRoot::layout):
3497         * mathml/RenderMathMLSquareRoot.cpp:
3498         (WebCore::RenderMathMLSquareRoot::paint):
3499         * mathml/RenderMathMLSubSup.cpp:
3500
3501 2010-08-03  Beth Dakin  <bdakin@apple.com>
3502
3503         Speculative build fix.
3504
3505         * css/mathml.css:
3506         (mi):
3507         (math[mathsize="small"], mstyle[mathsize="small"], mo[mathsize="small"], mn[mathsize="small"], mi[mathsize="small"], mtext[mathsize="small"], mspace[mathsize="small"], ms[mathsize="small"]):
3508         (math[mathsize="normal"], mstyle[mathsize="normal"], mo[mathsize="normal"], mn[mathsize="normal"], mi[mathsize="normal"], mtext[mathsize="normal"], mspace[mathsize="normal"], ms[mathsize="normal"]):
3509         (math[mathsize="big"], mstyle[mathsize="big"], mo[mathsize="big"], mn[mathsize="big"], mi[mathsize="big"], mtext[mathsize="big"], mspace[mathsize="big"], ms[mathsize="big"]):
3510
3511 2010-08-03  Geoffrey Garen  <ggaren@apple.com>
3512
3513         Reviewed by Mark Rowe.
3514
3515         https://bugs.webkit.org/show_bug.cgi?id=43444
3516         PLATFORM(CF) is false on Windows in JavaScriptCore
3517
3518         Moved some PLATFORM(WIN) #defines down into JavaScriptCore.
3519
3520         * config.h: Moved WTF_PLATFORM_CF 1 and WTF_USE_PTHREADS 0 to wtf/Platform.h.
3521         Removed #undef WTF_USE_WININET because wtf/Platform.h no longer #defines it.
3522
3523 2010-08-03  Alex Milowski  <alex@milowski.com>
3524
3525         Reviewed by Beth Dakin.
3526
3527         Changed the ENABLE_MATHML value to enable MathML by default.
3528
3529         * Configurations/FeatureDefines.xcconfig:
3530
3531 2010-07-30  Stephen White  <senorblanco@chromium.org>
3532
3533         Reviewed by Ojan Vafai.
3534
3535         Move PlatformContextSkia and NativeImageSkia into the WebCore namespace.
3536         https://bugs.webkit.org/show_bug.cgi?id=43272
3537
3538         One wrinkle is that PlatformContext and NativeImagePtr are 
3539         typedef'ed outside outside the WebCore namespace block, so the
3540         PlatformContextSkia and NativeImageSkia have to be forward-declared 
3541         explicitly within that namespace.  Another solution might be to move
3542         those declarations into the WebCore namespace block below, but that
3543         would affect platforms other than Skia, so I leave it to the reviewer
3544         to decide.
3545
3546         Test:  if it compiles, you're happy.
3547
3548         * platform/graphics/GraphicsContext.h:
3549         * platform/graphics/Image.h:
3550         * platform/graphics/ImageSource.h:
3551         * platform/graphics/skia/NativeImageSkia.cpp:
3552         (WebCore::NativeImageSkia::hasResizedBitmap):
3553         (WebCore::NativeImageSkia::shouldCacheResampling):
3554         * platform/graphics/skia/NativeImageSkia.h:
3555         * platform/graphics/skia/PlatformContextSkia.cpp:
3556         (WebCore::PlatformContextSkia::State::State):
3557         (WebCore::PlatformContextSkia::beginLayerClippedToImage):
3558         (WebCore::PlatformContextSkia::drawRect):
3559         (WebCore::PlatformContextSkia::setupPaintForStroking):
3560         (WebCore::PlatformContextSkia::getStrokeStyle):
3561         (WebCore::PlatformContextSkia::setStrokeStyle):
3562         (WebCore::PlatformContextSkia::setTextDrawingMode):
3563         (WebCore::PlatformContextSkia::interpolationQuality):
3564         (WebCore::PlatformContextSkia::setInterpolationQuality):
3565         (WebCore::PlatformContextSkia::getImageResamplingHint):
3566         (WebCore::PlatformContextSkia::setImageResamplingHint):
3567         (WebCore::PlatformContextSkia::clearImageResamplingHint):
3568         (WebCore::PlatformContextSkia::applyClipFromImage):
3569         (WebCore::PlatformContextSkia::setGLES2Context):
3570         (WebCore::PlatformContextSkia::prepareForSoftwareDraw):
3571         (WebCore::PlatformContextSkia::prepareForHardwareDraw):
3572         (WebCore::PlatformContextSkia::syncSoftwareCanvas):
3573         (WebCore::PlatformContextSkia::uploadSoftwareToHardware):
3574         * platform/graphics/skia/PlatformContextSkia.h:
3575         (WebCore::PlatformContextSkia::gpuCanvas):
3576         * platform/graphics/skia/SkiaFontWin.cpp:
3577         (WebCore::windowsCanHandleDrawTextShadow):
3578         (WebCore::paintSkiaText):
3579         * platform/graphics/skia/SkiaFontWin.h:
3580
3581 2010-08-03  Adam Roben  <aroben@apple.com>
3582
3583         Rename LocalizedStringsMac.mm to LocalizedStrings.cpp
3584
3585         LocalizedStringsMac.mm should be usable by other ports
3586         https://bugs.webkit.org/show_bug.cgi?id=43441
3587
3588         Reviewed by Anders Carlsson.
3589
3590         * WebCore.xcodeproj/project.pbxproj: Updated the file's name and path.
3591
3592         * platform/LocalizedStrings.cpp: Renamed from
3593         WebCore/platform/mac/LocalizedStringsMac.mm. Changed #imports to
3594         #includes.
3595
3596 2010-08-03  James Robinson  <jamesr@chromium.org>
3597
3598         Reviewed by Darin Fisher.
3599
3600         Move WebGL-specific code out of GraphicsContext3D so that G3D can be used as a generic accelerated drawing API
3601         https://bugs.webkit.org/show_bug.cgi?id=43221
3602
3603         Changes the GraphicsContext3D API to use Platform3DObjects instead of WebGLFoo* types like WebGLTexture.
3604         WebGLRenderingContext still uses WebGLFoo types and converts to Platform3DObjects internally.  Other
3605         consumers of the GraphicsContext3D can use the Platform3DObject APIs directly without any ties to WebGL.
3606
3607         The majority of this change is purely mechanical.  The less obvious changes are:
3608         - move all null checking on WebGLFoo types to WebGLRenderingContext, instead of mixing them
3609           between WebGLRenderingContext and the various port-specific implementations of GraphicsContext3D
3610         - add a GraphicsContext3D getter to CanvasRenderingContext.  This is needed for the readback
3611           path on Chromium/mac.  It may be possible to remove this, but I would prefer to do that
3612           in a follow-up patch to minimize churn.
3613         - move some texture cube map logic that existed only in the Chromium port of GC3D to
3614           WebGLRenderingContext behind #if PLATFORM(CHROMIUM). I think this logic should either
3615           exist for all ports or exist for none, but again I would rather change the behavior
3616           in a different patch from this one.
3617
3618         * html/canvas/CanvasRenderingContext.h:
3619         (WebCore::CanvasRenderingContext::graphicsContext3D):
3620         * html/canvas/WebGLProgram.cpp:
3621         (WebCore::WebGLProgram::cacheActiveAttribLocations):
3622         * html/canvas/WebGLRenderingContext.cpp:
3623         (WebCore::WebGLRenderingContext::attachShader):
3624         (WebCore::WebGLRenderingContext::bindAttribLocation):
3625         (WebCore::WebGLRenderingContext::bindBuffer):
3626         (WebCore::WebGLRenderingContext::bindFramebuffer):
3627         (WebCore::WebGLRenderingContext::bindRenderbuffer):
3628         (WebCore::WebGLRenderingContext::bindTexture):
3629         (WebCore::WebGLRenderingContext::compileShader):
3630         (WebCore::WebGLRenderingContext::detachShader):
3631         (WebCore::WebGLRenderingContext::framebufferRenderbuffer):
3632         (WebCore::WebGLRenderingContext::framebufferTexture2D):
3633         (WebCore::WebGLRenderingContext::getActiveAttrib):
3634         (WebCore::WebGLRenderingContext::getActiveUniform):
3635         (WebCore::WebGLRenderingContext::getAttachedShaders):
3636         (WebCore::WebGLRenderingContext::getAttribLocation):
3637         (WebCore::WebGLRenderingContext::getProgramParameter):
3638         (WebCore::WebGLRenderingContext::getProgramInfoLog):
3639         (WebCore::WebGLRenderingContext::getShaderParameter):
3640         (WebCore::WebGLRenderingContext::getShaderInfoLog):
3641         (WebCore::WebGLRenderingContext::getShaderSource):
3642         (WebCore::WebGLRenderingContext::getUniform):
3643         (WebCore::WebGLRenderingContext::getUniformLocation):
3644         (WebCore::WebGLRenderingContext::isBuffer):
3645         (WebCore::WebGLRenderingContext::isFramebuffer):
3646         (WebCore::WebGLRenderingContext::isProgram):
3647         (WebCore::WebGLRenderingContext::isRenderbuffer):
3648         (WebCore::WebGLRenderingContext::isShader):
3649         (WebCore::WebGLRenderingContext::isTexture):
3650         (WebCore::WebGLRenderingContext::linkProgram):
3651         (WebCore::WebGLRenderingContext::shaderSource):
3652         (WebCore::WebGLRenderingContext::useProgram):
3653         (WebCore::WebGLRenderingContext::validateProgram):
3654         (WebCore::WebGLRenderingContext::handleNPOTTextures):
3655         (WebCore::WebGLRenderingContext::createFallbackBlackTextures1x1):
3656         (WebCore::WebGLRenderingContext::initVertexAttrib0):
3657         (WebCore::WebGLRenderingContext::simulateVertexAttrib0):
3658         (WebCore::WebGLRenderingContext::restoreStatesAfterVertexAttrib0Simulation):
3659         * html/canvas/WebGLRenderingContext.h:
3660         (WebCore::WebGLRenderingContext::graphicsContext3D):
3661         * platform/graphics/GraphicsContext3D.h:
3662         * platform/graphics/mac/GraphicsContext3DMac.mm:
3663         (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
3664         (WebCore::GraphicsContext3D::beginPaint):
3665         (WebCore::GraphicsContext3D::attachShader):
3666         (WebCore::GraphicsContext3D::bindAttribLocation):
3667         (WebCore::GraphicsContext3D::bindBuffer):
3668         (WebCore::GraphicsContext3D::bindFramebuffer):
3669         (WebCore::GraphicsContext3D::bindRenderbuffer):
3670         (WebCore::GraphicsContext3D::bindTexture):
3671         (WebCore::GraphicsContext3D::compileShader):
3672         (WebCore::GraphicsContext3D::detachShader):
3673         (WebCore::GraphicsContext3D::framebufferRenderbuffer):
3674         (WebCore::GraphicsContext3D::framebufferTexture2D):
3675         (WebCore::GraphicsContext3D::getActiveAttrib):
3676         (WebCore::GraphicsContext3D::getActiveUniform):
3677         (WebCore::GraphicsContext3D::getAttachedShaders):
3678         (WebCore::GraphicsContext3D::getAttribLocation):
3679         (WebCore::GraphicsContext3D::isBuffer):
3680         (WebCore::GraphicsContext3D::isFramebuffer):
3681         (WebCore::GraphicsContext3D::isProgram):
3682         (WebCore::GraphicsContext3D::isRenderbuffer):
3683         (WebCore::GraphicsContext3D::isShader):
3684         (WebCore::GraphicsContext3D::isTexture):
3685         (WebCore::GraphicsContext3D::linkProgram):
3686         (WebCore::GraphicsContext3D::shaderSource):
3687         (WebCore::GraphicsContext3D::useProgram):
3688         (WebCore::GraphicsContext3D::validateProgram):
3689         (WebCore::GraphicsContext3D::getProgramiv):
3690         (WebCore::GraphicsContext3D::getProgramInfoLog):
3691         (WebCore::GraphicsContext3D::getShaderiv):
3692         (WebCore::GraphicsContext3D::getShaderInfoLog):
3693         (WebCore::GraphicsContext3D::getShaderSource):
3694         (WebCore::GraphicsContext3D::getUniformfv):
3695         (WebCore::GraphicsContext3D::getUniformiv):
3696         (WebCore::GraphicsContext3D::getUniformLocation):
3697         * platform/graphics/qt/GraphicsContext3DQt.cpp:
3698         (WebCore::GraphicsContext3D::beginPaint):
3699         (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
3700         (WebCore::GraphicsContext3D::attachShader):
3701         (WebCore::GraphicsContext3D::bindAttribLocation):
3702         (WebCore::GraphicsContext3D::bindBuffer):
3703         (WebCore::GraphicsContext3D::bindFramebuffer):
3704         (WebCore::GraphicsContext3D::bindRenderbuffer):
3705         (WebCore::GraphicsContext3D::bindTexture):
3706         (WebCore::GraphicsContext3D::compileShader):
3707         (WebCore::GraphicsContext3D::detachShader):
3708         (WebCore::GraphicsContext3D::framebufferRenderbuffer):
3709         (WebCore::GraphicsContext3D::framebufferTexture2D):
3710         (WebCore::GraphicsContext3D::getActiveAttrib):
3711         (WebCore::GraphicsContext3D::getActiveUniform):
3712         (WebCore::GraphicsContext3D::getAttribLocation):
3713         (WebCore::GraphicsContext3D::isBuffer):
3714         (WebCore::GraphicsContext3D::isFramebuffer):
3715         (WebCore::GraphicsContext3D::isProgram):
3716         (WebCore::GraphicsContext3D::isRenderbuffer):
3717         (WebCore::GraphicsContext3D::isShader):
3718         (WebCore::GraphicsContext3D::isTexture):
3719         (WebCore::GraphicsContext3D::linkProgram):
3720         (WebCore::GraphicsContext3D::shaderSource):
3721         (WebCore::GraphicsContext3D::useProgram):
3722         (WebCore::GraphicsContext3D::validateProgram):
3723         (WebCore::GraphicsContext3D::getProgramiv):
3724         (WebCore::GraphicsContext3D::getProgramInfoLog):
3725         (WebCore::GraphicsContext3D::getShaderiv):
3726         (WebCore::GraphicsContext3D::getShaderInfoLog):
3727         (WebCore::GraphicsContext3D::getShaderSource):
3728         (WebCore::GraphicsContext3D::getUniformfv):
3729         (WebCore::GraphicsContext3D::getUniformiv):
3730         (WebCore::GraphicsContext3D::getUniformLocation):
3731
3732 2010-08-03  Xan Lopez  <xlopez@igalia.com>
3733
3734         Reviewed by Gustavo Noronha.
3735
3736         [GTK] Fix DOM event dispatch
3737         https://bugs.webkit.org/show_bug.cgi?id=40847
3738
3739         Bind UI and Mouse events and add ad-hoc kit method for WebCore
3740         Events.
3741
3742         * GNUmakefile.am:
3743         * bindings/gobject/WebKitDOMBinding.cpp:
3744         (WebKit::kit):
3745         * bindings/gobject/WebKitDOMBinding.h:
3746         * bindings/gobject/WebKitDOMEventTarget.cpp:
3747         (WebKit::core):
3748         * bindings/gobject/WebKitDOMEventTargetPrivate.h: Added.
3749         * bindings/scripts/CodeGeneratorGObject.pm:
3750
3751 2010-08-03  Nikolas Zimmermann  <nzimmermann@rim.com>
3752
3753         Reviewed by Eric Seidel.
3754
3755         Cleanup all of svg/ code
3756         https://bugs.webkit.org/show_bug.cgi?id=43311
3757
3758         Unify the license header in all files in svg/, to use the same template as most WebCore files use.
3759         Unified email adress style, etc. all generated with a perl script attached to bug 43311.
3760
3761         * svg/...: Updated header template in all files, in the svg/ subdirectory.
3762
3763 2010-08-03  Andrei Popescu  <andreip@google.com>
3764
3765         Reviewed by Jeremy Orlow.
3766
3767         [IndexedDB] IDBObjectStoreRequest should be called IDBObjectStore
3768         https://bugs.webkit.org/show_bug.cgi?id=43420
3769
3770         Renaming IDBObjectStoreRequest to IDBObjectStore.
3771
3772         No new tests needed, just refactoring.
3773
3774         * Android.derived.jscbindings.mk:
3775         * Android.derived.v8bindings.mk:
3776         * Android.mk:
3777         * CMakeLists.txt:
3778         * DerivedSources.cpp:
3779         * DerivedSources.make:
3780         * GNUmakefile.am:
3781         * WebCore.gypi:
3782         * WebCore.pri:
3783         * WebCore.pro:
3784         * WebCore.vcproj/WebCore.vcproj:
3785         * WebCore.xcodeproj/project.pbxproj:
3786         * bindings/js/JSIDBAnyCustom.cpp:
3787         (WebCore::toJS):
3788         * bindings/v8/custom/V8IDBAnyCustom.cpp:
3789         (WebCore::toV8):
3790         * storage/IDBAny.cpp:
3791         (WebCore::IDBAny::idbObjectStore):
3792         (WebCore::IDBAny::set):
3793         * storage/IDBAny.h:
3794         (WebCore::IDBAny::):
3795         * storage/IDBCallbacks.h:
3796         * storage/IDBDatabase.cpp:
3797         (WebCore::IDBDatabase::objectStore):
3798         * storage/IDBDatabase.h:
3799         * storage/IDBDatabaseBackendImpl.cpp:
3800         (WebCore::IDBDatabaseBackendImpl::createObjectStore):
3801         (WebCore::IDBDatabaseBackendImpl::objectStore):
3802         * storage/IDBDatabaseBackendImpl.h:
3803         * storage/IDBDatabaseBackendInterface.h:
3804         * storage/IDBObjectStore.cpp: Added.
3805         (WebCore::IDBObjectStore::IDBObjectStore):
3806         (WebCore::IDBObjectStore::name):
3807         (WebCore::IDBObjectStore::keyPath):
3808         (WebCore::IDBObjectStore::indexNames):
3809         (WebCore::IDBObjectStore::get):
3810         (WebCore::IDBObjectStore::add):
3811         (WebCore::IDBObjectStore::put):
3812         (WebCore::IDBObjectStore::remove):
3813         (WebCore::IDBObjectStore::createIndex):
3814         (WebCore::IDBObjectStore::index):
3815         (WebCore::IDBObjectStore::removeIndex):
3816         * storage/IDBObjectStore.h:
3817         (WebCore::IDBObjectStore::create):
3818         (WebCore::IDBObjectStore::~IDBObjectStore):
3819         * storage/IDBObjectStore.idl: Added.
3820         * storage/IDBObjectStoreBackendImpl.cpp: Added.
3821         (WebCore::IDBObjectStoreBackendImpl::~IDBObjectStoreBackendImpl):
3822         (WebCore::IDBObjectStoreBackendImpl::IDBObjectStoreBackendImpl):
3823         (WebCore::IDBObjectStoreBackendImpl::indexNames):
3824         (WebCore::IDBObjectStoreBackendImpl::get):
3825         (WebCore::IDBObjectStoreBackendImpl::put):
3826         (WebCore::IDBObjectStoreBackendImpl::remove):
3827         (WebCore::IDBObjectStoreBackendImpl::createIndex):
3828         (WebCore::IDBObjectStoreBackendImpl::index):
3829         (WebCore::IDBObjectStoreBackendImpl::removeIndex):
3830         * storage/IDBObjectStoreBackendImpl.h: Added.
3831         (WebCore::IDBObjectStoreBackendImpl::create):
3832         (WebCore::IDBObjectStoreBackendImpl::name):
3833         (WebCore::IDBObjectStoreBackendImpl::keyPath):
3834         * storage/IDBObjectStoreBackendInterface.h: Added.
3835         (WebCore::IDBObjectStoreBackendInterface::~IDBObjectStoreBackendInterface):
3836         * storage/IDBObjectStoreImpl.cpp: Removed.
3837         * storage/IDBObjectStoreImpl.h: Removed.
3838         * storage/IDBObjectStoreRequest.cpp: Removed.
3839         * storage/IDBObjectStoreRequest.h: Removed.
3840         * storage/IDBObjectStoreRequest.idl: Removed.
3841         * storage/IDBRequest.cpp:
3842         (WebCore::IDBRequest::onSuccess):
3843         * storage/IDBRequest.h:
3844
3845 2010-08-03  Martin Robinson  <mrobinson@igalia.com>
3846
3847         Reviewed by Ojan Vafai.
3848
3849         [GTK] Incorrect keyIdentifier for print screen key events
3850         https://bugs.webkit.org/show_bug.cgi?id=43422
3851
3852         Produce the correct keyIdentifier for GDK_Print (print screen).
3853
3854         * platform/gtk/KeyEventGtk.cpp:
3855         (WebCore::keyIdentifierForGdkKeyCode):
3856
3857 2010-08-03  Anton Muhin  <antonm@chromium.org>
3858
3859         Reviewed by David Levin.
3860
3861         [v8] Get current memory usage and make it available on stack before crashing due to out of memory
3862         https://bugs.webkit.org/show_bug.cgi?id=43426
3863
3864         That should allow us to diagnose the cases when the process just ran out of memory
3865         and hence V8 failed to allocate more OS pages.
3866
3867         * bindings/v8/V8DOMWindowShell.cpp:
3868         (WebCore::reportFatalErrorInV8):
3869
3870 2010-08-03  Leandro Pereira  <leandro@profusion.mobi>
3871
3872         Reviewed by Kenneth Rohde Christiansen.
3873
3874         [EFL] Implement HTML5 slider theme (using the scrollbar theme as base).
3875         https://bugs.webkit.org/show_bug.cgi?id=43430
3876
3877         EFL port does not yet support automated tests.
3878
3879         * platform/efl/RenderThemeEfl.cpp:
3880         (WebCore::RenderThemeEfl::paintThemePart):
3881         (WebCore::RenderThemeEfl::edjeGroupFromFormType): Add Edje groups
3882         for both vertical and horizontal sliders.
3883         (WebCore::supportsFocus): Add sliders as focusable elements.
3884         (WebCore::RenderThemeEfl::paintSliderTrack): Implement.
3885         (WebCore::RenderThemeEfl::adjustSliderTrackStyle): Implement.
3886         (WebCore::RenderThemeEfl::adjustSliderThumbStyle): Use
3887         adjustSliderTrackStyle() implementation.
3888         (WebCore::RenderThemeEfl::paintSliderThumb): Use paintSliderTrack()
3889         implementation().
3890         * platform/efl/RenderThemeEfl.h: Add SliderVertical and
3891         * SliderHorizontal.
3892         (WebCore::): Added prototypes for adjustSlider*/paintSlider*.
3893
3894 2010-08-03  Alexander Pavlov  <apavlov@chromium.org>
3895
3896         Reviewed by Joseph Pecoraro.
3897
3898         Web Inspector: incorrect absolute protocol-less URLs in tooltips of links in the ElementsTreeOutline
3899         https://bugs.webkit.org/show_bug.cgi?id=43246
3900
3901         * inspector/front-end/inspector.js:
3902         (WebInspector.completeURL):
3903
3904 2010-08-03  Adam Roben  <aroben@apple.com>
3905
3906         Compile out two Mac-only localized strings on non-Mac platforms
3907
3908         Fixes <http://webkit.org/b/43433> copyImageUnknownFileLabel and
3909         AXARIAContentGroupText should only be compiled on Mac
3910
3911         Reviewed by Anders Carlsson.
3912
3913         * platform/LocalizationStrategy.h:
3914         * platform/LocalizedStrings.h:
3915         Wrapped copyImageUnknownFileLabel and AXARIAContentGroupText in
3916         PLATFORM(MAC).
3917
3918 2010-08-03  Kevin Ollivier  <kevino@theolliviers.com>
3919
3920         [wx] Build fix, don't build some DOM bindings we don't use.
3921
3922         * wscript:
3923
3924 2010-08-03  Martin Robinson  <mrobinson@igalia.com>
3925
3926         Reviewed by Gustavo Noronha Silva.
3927
3928         [GTK] Remove a memory leak from CusorGtk.cpp
3929         https://bugs.webkit.org/show_bug.cgi?id=43424
3930
3931         * platform/gtk/CursorGtk.cpp:
3932         (WebCore::createNamedCursor):
3933         (WebCore::createCustomCursor):
3934         (WebCore::Cursor::ensurePlatformCursor):
3935         * platform/gtk/KeyEventGtk.cpp:
3936         (WebCore::keyIdentifierForGdkKeyCode):
3937
3938 2010-08-03  Pavel Feldman  <pfeldman@chromium.org>
3939
3940         Not reviewed: speculative chromium tests fix.
3941
3942         * inspector/front-end/ExtensionServer.js:
3943         * inspector/front-end/inspector.js:
3944         (WebInspector.loaded):
3945
3946 2010-08-03  Csaba Osztrogonác  <ossy@webkit.org>
3947
3948         Reviewed by Antonio Gomes.
3949
3950         Fix warning in WebCore/rendering/RenderBoxModelObject.cpp
3951         https://bugs.webkit.org/show_bug.cgi?id=43412
3952
3953         * rendering/RenderBoxModelObject.cpp:
3954         (WebCore::RenderBoxModelObject::clipBorderSidePolygon): Remove useless assignment.
3955
3956 2010-08-03  Xan Lopez  <xlopez@igalia.com>
3957
3958         Reviewed by Gustavo Noronha.
3959
3960         Make string parameters be 'const char*' instead of just 'char*'.
3961
3962         * bindings/scripts/CodeGeneratorGObject.pm:
3963
3964 2010-08-03  Xan Lopez  <xlopez@igalia.com>
3965
3966         Reviewed by Gustavo Noronha.
3967
3968         Get rid of extra spaces in the type strings.
3969
3970         * bindings/scripts/CodeGeneratorGObject.pm:
3971
3972 2010-08-03  Csaba Osztrogonác  <ossy@webkit.org>
3973
3974         Reviewed by Adam Roben.
3975
3976         Fix warning in WebCore/plugins/win/PluginMessageThrottlerWin.cpp
3977         https://bugs.webkit.org/show_bug.cgi?id=43413
3978
3979         * plugins/win/PluginMessageThrottlerWin.cpp:
3980         (WebCore::PluginMessageThrottlerWin::PluginMessageThrottlerWin): Modify initialization order.
3981
3982 2010-08-03  Yury Semikhatsky  <yurys@chromium.org>
3983
3984         Reviewed by Pavel Feldman.
3985
3986         Web Inspector: use InspectorValue to push resource data to the frontend
3987         https://bugs.webkit.org/show_bug.cgi?id=43414
3988
3989         * inspector/Inspector.idl:
3990         * inspector/InspectorController.cpp:
3991         (WebCore::InspectorController::disconnectFrontend): destroy remote frontend object along with the old inspector frontend
3992         (WebCore::InspectorController::populateScriptObjects):
3993         (WebCore::InspectorController::didCommitLoad):
3994         (WebCore::InspectorController::didLoadResourceFromMemoryCache):
3995         (WebCore::InspectorController::identifierForInitialRequest):
3996         (WebCore::InspectorController::mainResourceFiredDOMContentEvent):
3997         (WebCore::InspectorController::mainResourceFiredLoadEvent):
3998         (WebCore::InspectorController::willSendRequest):
3999         (WebCore::InspectorController::didReceiveResponse):
4000         (WebCore::InspectorController::didReceiveContentLength):
4001         (WebCore::InspectorController::didFinishLoading):
4002         (WebCore::InspectorController::didFailLoading):
4003         (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
4004         (WebCore::InspectorController::scriptImported):
4005         * inspector/InspectorFrontend.cpp:
4006         * inspector/InspectorFrontend.h:
4007         * inspector/InspectorResource.cpp:
4008         (WebCore::buildHeadersObject):
4009         (WebCore::buildObjectForTiming):
4010         (WebCore::InspectorResource::updateScriptObject):
4011         * inspector/InspectorResource.h:
4012         * inspector/front-end/inspector.js:
4013         (WebInspector.updateResource):
4014
4015 2010-08-03  Sheriff Bot  <webkit.review.bot@gmail.com>
4016
4017         Unreviewed, rolling out r64539.
4018         http://trac.webkit.org/changeset/64539
4019         https://bugs.webkit.org/show_bug.cgi?id=43409
4020
4021         Accidently changed licenses in some files (Requested by
4022         WildFox on #webkit).
4023
4024         * svg/...:
4025     
4026 2010-08-03  Andrei Popescu  <andreip@google.com>
4027
4028         Unreviewed, build fix.
4029
4030         [IndexedDB] Chromium build is broken due to typo in WebCore.gypi:3501
4031         https://bugs.webkit.org/show_bug.cgi?id=43408
4032
4033         Add missing ' in WebCore.gypi:3501.
4034
4035         * WebCore.gypi:
4036
4037 2010-07-30  Andrei Popescu  <andreip@dhcp-172-16-14-12.lon.corp.google.com>
4038
4039         Reviewed by Jeremy Orlow.
4040
4041         Rename IDBDatabaseRequest to IDBDatabase
4042         https://bugs.webkit.org/show_bug.cgi?id=43250
4043
4044         No new tests, just refactoring.
4045
4046         * Android.derived.jscbindings.mk:
4047         * Android.derived.v8bindings.mk:
4048         * Android.mk:
4049         * CMakeLists.txt:
4050         * DerivedSources.cpp:
4051         * DerivedSources.make:
4052         * GNUmakefile.am:
4053         * WebCore.gypi:
4054         * WebCore.pri:
4055         * WebCore.pro:
4056         * WebCore.vcproj/WebCore.vcproj:
4057         * WebCore.vcproj/WebCore.vcproj~: Added.
4058         * WebCore.xcodeproj/project.pbxproj:
4059         * WebCore.xcodeproj/project.pbxproj~: Added.
4060         * bindings/js/JSIDBAnyCustom.cpp:
4061         (WebCore::toJS):
4062         * bindings/v8/custom/V8IDBAnyCustom.cpp:
4063         (WebCore::toV8):
4064         * storage/IDBAny.cpp:
4065         (WebCore::IDBAny::idbDatabase):
4066         (WebCore::IDBAny::set):
4067         * storage/IDBAny.h:
4068         (WebCore::IDBAny::):
4069         * storage/IDBCallbacks.h:
4070         * storage/IDBDatabase.cpp: Added.
4071         (WebCore::IDBDatabase::IDBDatabase):
4072         (WebCore::IDBDatabase::~IDBDatabase):
4073         (WebCore::IDBDatabase::createObjectStore):
4074         (WebCore::IDBDatabase::objectStore):
4075         (WebCore::IDBDatabase::removeObjectStore):
4076         * storage/IDBDatabase.h:
4077         (WebCore::IDBDatabase::create):
4078         (WebCore::IDBDatabase::name):
4079         (WebCore::IDBDatabase::description):
4080         (WebCore::IDBDatabase::version):
4081         (WebCore::IDBDatabase::objectStores):
4082         * storage/IDBDatabase.idl: Added.
4083         * storage/IDBDatabaseBackendImpl.cpp: Added.
4084         (WebCore::IDBDatabaseBackendImpl::IDBDatabaseBackendImpl):
4085         (WebCore::IDBDatabaseBackendImpl::~IDBDatabaseBackendImpl):
4086         (WebCore::IDBDatabaseBackendImpl::objectStores):
4087         (WebCore::IDBDatabaseBackendImpl::createObjectStore):
4088         (WebCore::IDBDatabaseBackendImpl::objectStore):
4089         (WebCore::IDBDatabaseBackendImpl::removeObjectStore):
4090         * storage/IDBDatabaseBackendImpl.h: Added.
4091         (WebCore::IDBDatabaseBackendImpl::create):
4092         (WebCore::IDBDatabaseBackendImpl::name):
4093         (WebCore::IDBDatabaseBackendImpl::description):
4094         (WebCore::IDBDatabaseBackendImpl::version):
4095         * storage/IDBDatabaseBackendInterface.h: Added.
4096         (WebCore::IDBDatabaseBackendInterface::~IDBDatabaseBackendInterface):
4097         * storage/IDBDatabaseImpl.cpp: Removed.
4098         * storage/IDBDatabaseImpl.h: Removed.
4099         * storage/IDBDatabaseRequest.cpp: Removed.
4100         * storage/IDBDatabaseRequest.h: Removed.
4101         * storage/IDBDatabaseRequest.idl: Removed.
4102         * storage/IDBFactoryBackendImpl.cpp:
4103         (WebCore::IDBFactoryBackendImpl::open):
4104         * storage/IDBFactoryBackendImpl.h:
4105         * storage/IDBRequest.cpp:
4106         (WebCore::IDBRequest::onSuccess):
4107         * storage/IDBRequest.h:
4108
4109 2010-08-03  Satish Sampath  <satish@chromium.org>
4110
4111         Reviewed by Kent Tamura.
4112
4113         Initiate speech input requests on click event
4114         https://bugs.webkit.org/show_bug.cgi?id=43352
4115
4116         * rendering/TextControlInnerElements.cpp:
4117         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
4118
4119 2010-08-02  Yury Semikhatsky  <yurys@chromium.org>
4120
4121         Reviewed by Pavel Feldman.
4122
4123         Web Inspector: debugger code should serialize call frames to InspectorObjects instead of SerializedScriptValues.
4124         https://bugs.webkit.org/show_bug.cgi?id=43339
4125
4126         No new tests. Refactoring.
4127
4128         * inspector/InjectedScript.cpp:
4129         (WebCore::InjectedScript::callFrames):
4130         * inspector/InjectedScript.h:
4131         * inspector/Inspector.idl:
4132         * inspector/InspectorController.cpp:
4133         (WebCore::InspectorController::editScriptSource):
4134         (WebCore::InspectorController::getScriptSource):
4135         (WebCore::InspectorController::currentCallFrames):
4136         (WebCore::InspectorController::didPause):
4137         * inspector/InspectorController.h:
4138         * inspector/front-end/InspectorBackendStub.js:
4139         (WebInspector.InspectorBackendStub):
4140
4141 2010-08-03  Nikolas Zimmermann  <nzimmermann@rim.com>
4142
4143         Reviewed by Dirk Schulze.
4144
4145         Cleanup all of svg/ code
4146         https://bugs.webkit.org/show_bug.cgi?id=43311
4147
4148         Unify the license header in all files in svg/, to use the same template as most WebCore files use.
4149         Unified email adress style, etc. all generated with a perl script attached to bug 43311.i
4150
4151         * svg/...: Updated header template in all files, in the svg/ subdirectory.
4152
4153 2010-08-03  Dumitru Daniliuc  <dumi@chromium.org>
4154
4155         Reviewed by Adam Barth.
4156
4157         Turn all callbacks into ActiveDOMObjects and create callbacks in the correct context.
4158         https://bugs.webkit.org/show_bug.cgi?id=40112
4159
4160         Test: http/tests/storage/callbacks-are-called-in-correct-context.html
4161
4162         * CMakeLists.txt: Added new files.
4163         * DerivedSources.make:
4164         * GNUmakefile.am:
4165         * WebCore.gypi:
4166         * WebCore.pro:
4167         * WebCore.vcproj/WebCore.vcproj:
4168         * WebCore.xcodeproj/project.pbxproj:
4169
4170         * bindings/generic/ActiveDOMCallback.cpp: Added. The base class
4171         for all callbacks, that behaves like an ActiveDOMObject.
4172         (WebCore::DestroyOnContextThreadTask::create):
4173         (WebCore::DestroyOnContextThreadTask::performTask):
4174         (WebCore::DestroyOnContextThreadTask::DestroyOnContextThreadTask):
4175         (WebCore::ActiveDOMObjectCallbackImpl::ActiveDOMObjectCallbackImpl):
4176         (WebCore::ActiveDOMObjectCallbackImpl::contextDestroyed):
4177         (WebCore::ActiveDOMObjectCallbackImpl::canSuspend):
4178         (WebCore::ActiveDOMObjectCallbackImpl::suspend):
4179         (WebCore::ActiveDOMObjectCallbackImpl::resume):
4180         (WebCore::ActiveDOMObjectCallbackImpl::stop):
4181         (WebCore::ActiveDOMObjectCallbackImpl::canInvokeCallback):
4182         (WebCore::ActiveDOMObjectCallbackImpl::scriptExecutionContext):
4183         (WebCore::ActiveDOMObjectCallbackImpl::mutex):
4184         (WebCore::destroyOnContextThread):
4185         (WebCore::ActiveDOMCallback::ActiveDOMCallback):
4186         (WebCore::ActiveDOMCallback::~ActiveDOMCallback):
4187         (WebCore::ActiveDOMCallback::canInvokeCallback):
4188         (WebCore::ActiveDOMCallback::scriptExecutionContext):
4189         * bindings/generic/ActiveDOMCallback.h: Added.
4190
4191         * bindings/js/JSCustomSQLStatementErrorCallback.cpp: Pass the
4192         right ScriptExecutionContext to the JSC callbacks.