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