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