WebCore: Adding a way to get the set of all open database handles pointing
[WebKit-https.git] / WebCore / ChangeLog
1 2010-02-05  Dumitru Daniliuc  <dumi@chromium.org>
2
3         Reviewed by Jeremy Orlow.
4
5         Adding a way to get the set of all open database handles pointing
6         to a given database.
7         https://bugs.webkit.org/show_bug.cgi?id=34619
8
9         Sometimes we need to be able to close all handles to a database as
10         soon as possible (to delete the DB file, for example).
11
12         * storage/DatabaseTracker.cpp:
13         (WebCore::DatabaseTracker::getOpenDatabases):
14         * storage/DatabaseTracker.h:
15         * storage/chromium/DatabaseTrackerChromium.cpp:
16         (WebCore::DatabaseTracker::addOpenDatabase):
17         (WebCore::DatabaseTracker::removeOpenDatabase):
18         (WebCore::DatabaseTracker::getOpenDatabases):
19
20 2010-02-08  Dirk Schulze  <krit@webkit.org>
21
22         Unreviewed windows build-fix.
23
24         * page/win/FrameCGWin.cpp:
25         (WebCore::drawRectIntoContext):
26
27 2010-02-08  Dirk Schulze  <krit@webkit.org>
28
29         Reviewed by Nikolas Zimmermann.
30
31         Add back an AffineTransform class for use by SVG
32         https://bugs.webkit.org/show_bug.cgi?id=33750
33
34         This adds back AffineTransform. This saves additional 4% memory consumption
35         on the 50k rects stress test: https://bugs.webkit.org/attachment.cgi?id=46721
36         It also makes it possible to optimize the calculations internally of
37         AffineTransform to the needs of 2D transformations (the second benefit for SVG,
38         which uses transformations relative often at the moment.
39         Everything that is 2D related (like images, patterns, gradients, fonts), uses
40         AffineTransform now.
41
42         * WebCore.xcodeproj/project.pbxproj:
43         * bindings/js/JSSVGMatrixCustom.cpp:
44         (WebCore::JSSVGMatrix::multiply):
45         (WebCore::JSSVGMatrix::inverse):
46         (WebCore::JSSVGMatrix::rotateFromVector):
47         * bindings/js/JSSVGPODTypeWrapper.h:
48         * bindings/scripts/CodeGeneratorJS.pm:
49         * bindings/scripts/CodeGeneratorObjC.pm:
50         * bindings/scripts/CodeGeneratorV8.pm:
51         * bindings/v8/V8Index.h:
52         * bindings/v8/custom/V8SVGMatrixCustom.cpp:
53         (WebCore::V8SVGMatrix::multiplyCallback):
54         (WebCore::V8SVGMatrix::inverseCallback):
55         (WebCore::V8SVGMatrix::rotateFromVectorCallback):
56         * html/HTMLCanvasElement.cpp: Changed to AffineTransform now
57         (WebCore::HTMLCanvasElement::baseTransform):
58         * html/HTMLCanvasElement.h:
59         * platform/graphics/FloatPoint.cpp:
60         (WebCore::FloatPoint::matrixTransform):
61         * platform/graphics/FloatPoint.h:
62         * platform/graphics/GeneratedImage.cpp:
63         (WebCore::GeneratedImage::drawPattern):
64         * platform/graphics/GeneratedImage.h:
65         * platform/graphics/Gradient.cpp:
66         (WebCore::Gradient::setGradientSpaceTransform):
67         (WebCore::Gradient::setPlatformGradientSpaceTransform):
68         * platform/graphics/Gradient.h:
69         (WebCore::Gradient::gradientSpaceTransform):
70         * platform/graphics/GraphicsContext.h:
71         * platform/graphics/Image.cpp:
72         (WebCore::Image::drawTiled):
73         * platform/graphics/Image.h:
74         * platform/graphics/ImageBuffer.h:
75         (WebCore::ImageBuffer::baseTransform):
76         * platform/graphics/Path.h:
77         * platform/graphics/Pattern.cpp:
78         (WebCore::Pattern::setPatternSpaceTransform):
79         * platform/graphics/Pattern.h:
80         (WebCore::Pattern::create):
81         (WebCore::Pattern::tileImage):
82         * platform/graphics/cairo/FontCairo.cpp:
83         (WebCore::Font::drawGlyphs):
84         * platform/graphics/cairo/GraphicsContextCairo.cpp:
85         (WebCore::setPlatformFill):
86         (WebCore::setPlatformStroke):
87         (WebCore::GraphicsContext::getCTM):
88         * platform/graphics/cairo/ImageCairo.cpp:
89         (WebCore::Image::drawPattern):
90         * platform/graphics/cairo/PathCairo.cpp:
91         * platform/graphics/cairo/PatternCairo.cpp:
92         (WebCore::Pattern::createPlatformPattern):
93         * platform/graphics/cg/GraphicsContextCG.cpp:
94         (WebCore::GraphicsContext::getCTM):
95         * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
96         (WebCore::GraphicsContextPlatformPrivate::concatCTM):
97         * platform/graphics/cg/ImageCG.cpp:
98         (WebCore::Image::drawPattern):
99         * platform/graphics/cg/PathCG.cpp:
100         * platform/graphics/cg/PatternCG.cpp:
101         (WebCore::Pattern::createPlatformPattern):
102         * platform/graphics/haiku/GraphicsContextHaiku.cpp:
103         (WebCore::GraphicsContext::getCTM):
104         * platform/graphics/haiku/ImageHaiku.cpp:
105         (WebCore::Image::drawPattern):
106         * platform/graphics/haiku/PathHaiku.cpp:
107         * platform/graphics/qt/FontQt.cpp:
108         (WebCore::Font::drawComplexText):
109         * platform/graphics/qt/GraphicsContextQt.cpp:
110         (WebCore::GraphicsContext::getCTM):
111         (WebCore::GraphicsContext::fillPath):
112         (WebCore::GraphicsContext::strokePath):
113         (WebCore::GraphicsContext::fillRect):
114         * platform/graphics/qt/ImageQt.cpp:
115         (WebCore::Image::drawPattern):
116         * platform/graphics/qt/PathQt.cpp:
117         * platform/graphics/qt/PatternQt.cpp:
118         (WebCore::Pattern::createPlatformPattern):
119         * platform/graphics/skia/GradientSkia.cpp:
120         (WebCore::Gradient::setPlatformGradientSpaceTransform):
121         * platform/graphics/skia/GraphicsContextSkia.cpp:
122         (WebCore::GraphicsContext::getCTM):
123         * platform/graphics/skia/ImageSkia.cpp:
124         (WebCore::Image::drawPattern):
125         * platform/graphics/skia/PathSkia.cpp:
126         * platform/graphics/skia/PatternSkia.cpp:
127         (WebCore::Pattern::platformPattern):
128         * platform/graphics/skia/SkiaFontWin.cpp:
129         (WebCore::windowsCanHandleTextDrawing):
130         * platform/graphics/transforms/AffineTransform.cpp:
131         (WebCore::AffineTransform::makeIdentity): needed by some parts of WebCore
132         (WebCore::AffineTransform::scale): Didn't scale the complete matrix
133         (WebCore::AffineTransform::translate): Didn't respect other transformations
134         (WebCore::AffineTransform::shear): direct calculation, no extra multiply of matrices
135         (WebCore::AffineTransform::map):
136         (WebCore::AffineTransform::mapPoint):
137         (WebCore::AffineTransform::mapRect):
138         * platform/graphics/transforms/AffineTransform.h:
139         (WebCore::AffineTransform::isIdentityOrTranslation):
140         * platform/graphics/transforms/TransformationMatrix.cpp:
141         (WebCore::TransformationMatrix::toAffineTransform):
142         * platform/graphics/transforms/TransformationMatrix.h:
143         * platform/graphics/win/FontCGWin.cpp:
144         (WebCore::drawGDIGlyphs):
145         * platform/graphics/win/GraphicsContextCGWin.cpp:
146         * platform/graphics/win/GraphicsContextCairoWin.cpp:
147         * platform/graphics/win/GraphicsContextWin.cpp:
148         (WebCore::GraphicsContextPlatformPrivate::concatCTM):
149         * platform/graphics/wince/FontWince.cpp:
150         * platform/graphics/wince/GraphicsContextWince.cpp:
151         (WebCore::GraphicsContextPlatformPrivate::concatCTM):
152         (WebCore::GraphicsContext::fillPath):
153         (WebCore::GraphicsContext::strokePath):
154         (WebCore::GraphicsContext::getCTM):
155         (WebCore::GraphicsContext::drawBitmapPattern):
156         * platform/graphics/wince/ImageBufferWince.cpp:
157         (WebCore::):
158         (WebCore::BufferedImage::drawPattern):
159         * platform/graphics/wince/PathWince.cpp:
160         (WebCore::Path::transform):
161         * platform/graphics/wince/PlatformPathWince.cpp:
162         (WebCore::drawPolygons):
163         (WebCore::PathPolygon::transform):
164         (WebCore::PlatformPathElement::transform):
165         (WebCore::PlatformPath::strokePath):
166         (WebCore::PlatformPath::fillPath):
167         (WebCore::PlatformPath::transform):
168         * platform/graphics/wince/PlatformPathWince.h:
169         (WebCore::):
170         * platform/graphics/wx/GraphicsContextWx.cpp:
171         (WebCore::GraphicsContext::getCTM):
172         * platform/graphics/wx/ImageWx.cpp:
173         (WebCore::BitmapImage::drawPattern):
174         (WebCore::Image::drawPattern):
175         * platform/graphics/wx/PathWx.cpp:
176         * platform/gtk/RenderThemeGtk.cpp:
177         (WebCore::paintMozillaGtkWidget):
178         * plugins/win/PluginViewWin.cpp:
179         (WebCore::PluginView::paintWindowedPluginIntoContext):
180         * rendering/RenderBox.cpp:
181         (WebCore::RenderBox::localTransform):
182         * rendering/RenderBox.h:
183         * rendering/RenderBoxModelObject.cpp:
184         (WebCore::RenderBoxModelScaleData::RenderBoxModelScaleData):
185         (WebCore::RenderBoxModelScaleData::transform):
186         (WebCore::RenderBoxModelScaleData::setTransform):
187         (WebCore::RenderBoxModelScaleObserver::shouldPaintBackgroundAtLowQuality):
188         (WebCore::RenderBoxModelObject::paintBoxShadow):
189         * rendering/RenderForeignObject.cpp:
190         (WebCore::RenderForeignObject::translationForAttributes):
191         (WebCore::RenderForeignObject::localToParentTransform):
192         * rendering/RenderForeignObject.h:
193         (WebCore::RenderForeignObject::localTransform):
194         * rendering/RenderLayer.cpp:
195         (WebCore::RenderLayer::paintLayer):
196         * rendering/RenderObject.cpp:
197         (WebCore::RenderObject::localTransform):
198         (WebCore::RenderObject::localToParentTransform):
199         (WebCore::RenderObject::absoluteTransform):
200         * rendering/RenderObject.h:
201         * rendering/RenderPath.cpp:
202         (WebCore::RenderPath::localToParentTransform):
203         (WebCore::RenderPath::localTransform):
204         * rendering/RenderPath.h:
205         * rendering/RenderSVGHiddenContainer.h:
206         (WebCore::RenderSVGHiddenContainer::absoluteTransform):
207         * rendering/RenderSVGImage.h:
208         (WebCore::RenderSVGImage::localToParentTransform):
209         (WebCore::RenderSVGImage::localTransform):
210         * rendering/RenderSVGRoot.cpp:
211         (WebCore::RenderSVGRoot::localToBorderBoxTransform):
212         (WebCore::RenderSVGRoot::localToRepaintContainerTransform):
213         (WebCore::RenderSVGRoot::localToParentTransform):
214         (WebCore::RenderSVGRoot::absoluteTransform):
215         (WebCore::RenderSVGRoot::localTransform):
216         * rendering/RenderSVGRoot.h:
217         * rendering/RenderSVGText.h:
218         (WebCore::RenderSVGText::localToParentTransform):
219         (WebCore::RenderSVGText::localTransform):
220         * rendering/RenderSVGTransformableContainer.cpp:
221         (WebCore::RenderSVGTransformableContainer::localToParentTransform):
222         (WebCore::RenderSVGTransformableContainer::localTransform):
223         (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
224         * rendering/RenderSVGTransformableContainer.h:
225         * rendering/RenderSVGViewportContainer.cpp:
226         (WebCore::RenderSVGViewportContainer::markerBoundaries):
227         (WebCore::RenderSVGViewportContainer::markerContentTransformation):
228         (WebCore::RenderSVGViewportContainer::viewportTransform):
229         (WebCore::RenderSVGViewportContainer::localToParentTransform):
230         (WebCore::RenderSVGViewportContainer::absoluteTransform):
231         * rendering/RenderSVGViewportContainer.h:
232         * rendering/SVGCharacterLayoutInfo.cpp:
233         (WebCore::SVGChar::characterTransform):
234         * rendering/SVGCharacterLayoutInfo.h:
235         (WebCore::SVGTextChunkWalker::operator()):
236         * rendering/SVGInlineTextBox.cpp:
237         (WebCore::SVGInlineTextBox::calculateGlyphBoundaries):
238         (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::chunkPortionCallback):
239         (WebCore::SVGInlineTextBoxSelectionRectWalker::chunkPortionCallback):
240         (WebCore::SVGInlineTextBox::paintCharacters):
241         (WebCore::SVGInlineTextBox::paintDecoration):
242         * rendering/SVGMarkerLayoutInfo.h:
243         (WebCore::MarkerLayout::MarkerLayout):
244         * rendering/SVGRenderSupport.cpp:
245         (WebCore::applyTransformToPaintInfo):
246         * rendering/SVGRenderSupport.h:
247         * rendering/SVGRenderTreeAsText.cpp:
248         (WebCore::operator<<):
249         * rendering/SVGRenderTreeAsText.h:
250         * rendering/SVGRootInlineBox.cpp:
251         (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
252         (WebCore::applyTextLengthCorrectionToTextChunk):
253         (WebCore::SVGRootInlineBox::buildLayoutInformation):
254         * rendering/TransformState.cpp:
255         (WebCore::TransformState::applyTransform):
256         * rendering/TransformState.h:
257         * svg/GradientAttributes.h:
258         (WebCore::GradientAttributes::gradientTransform):
259         (WebCore::GradientAttributes::setGradientTransform):
260         * svg/PatternAttributes.h:
261         (WebCore::PatternAttributes::patternTransform):
262         (WebCore::PatternAttributes::setPatternTransform):
263         * svg/SVGAnimateMotionElement.cpp:
264         (WebCore::SVGAnimateMotionElement::resetToBaseValue):
265         (WebCore::SVGAnimateMotionElement::calculateAnimatedValue):
266         (WebCore::SVGAnimateMotionElement::applyResultsToTarget):
267         * svg/SVGAnimateMotionElement.h:
268         * svg/SVGAnimateTransformElement.cpp:
269         * svg/SVGAnimateTransformElement.h:
270         * svg/SVGElement.h:
271         (WebCore::SVGElement::supplementalTransform):
272         * svg/SVGFitToViewBox.cpp:
273         (WebCore::SVGFitToViewBox::viewBoxToViewTransform):
274         * svg/SVGFitToViewBox.h:
275         * svg/SVGLocatable.cpp:
276         (WebCore::SVGLocatable::getCTM):
277         (WebCore::SVGLocatable::getScreenCTM):
278         (WebCore::SVGLocatable::getTransformToElement):
279         * svg/SVGLocatable.h:
280         * svg/SVGMarkerElement.cpp:
281         (WebCore::SVGMarkerElement::viewBoxToViewTransform):
282         * svg/SVGMarkerElement.h:
283         * svg/SVGMaskElement.cpp:
284         (WebCore::SVGMaskElement::drawMaskerContent):
285         * svg/SVGMatrix.idl:
286         * svg/SVGPatternElement.cpp:
287         (WebCore::SVGPatternElement::buildPattern):
288         * svg/SVGPreserveAspectRatio.cpp:
289         (WebCore::SVGPreserveAspectRatio::getCTM):
290         * svg/SVGPreserveAspectRatio.h:
291         * svg/SVGSVGElement.cpp:
292         (WebCore::SVGSVGElement::viewport):
293         (WebCore::SVGSVGElement::createSVGMatrix):
294         (WebCore::SVGSVGElement::createSVGTransformFromMatrix):
295         (WebCore::SVGSVGElement::getCTM):
296         (WebCore::SVGSVGElement::getScreenCTM):
297         (WebCore::SVGSVGElement::viewBoxToViewTransform):
298         * svg/SVGSVGElement.h:
299         * svg/SVGStyledLocatableElement.cpp:
300         (WebCore::SVGStyledLocatableElement::getCTM):
301         (WebCore::SVGStyledLocatableElement::getScreenCTM):
302         * svg/SVGStyledLocatableElement.h:
303         * svg/SVGStyledTransformableElement.cpp:
304         (WebCore::SVGStyledTransformableElement::getCTM):
305         (WebCore::SVGStyledTransformableElement::getScreenCTM):
306         (WebCore::SVGStyledTransformableElement::animatedLocalTransform):
307         (WebCore::SVGStyledTransformableElement::supplementalTransform):
308         * svg/SVGStyledTransformableElement.h:
309         (WebCore::SVGStyledTransformableElement::isStyledTransformable):
310         (WebCore::SVGStyledTransformableElement::toPathData):
311         * svg/SVGTextContentElement.cpp:
312         (WebCore::SVGInlineTextBoxQueryWalker::chunkPortionCallback):
313         * svg/SVGTextElement.cpp:
314         (WebCore::SVGTextElement::getScreenCTM):
315         (WebCore::SVGTextElement::getCTM):
316         (WebCore::SVGTextElement::animatedLocalTransform):
317         (WebCore::SVGTextElement::supplementalTransform):
318         * svg/SVGTextElement.h:
319         * svg/SVGTextPathElement.cpp:
320         * svg/SVGTransform.cpp:
321         (SVGTransform::SVGTransform):
322         (SVGTransform::matrix):
323         (SVGTransform::setMatrix):
324         * svg/SVGTransform.h:
325         * svg/SVGTransformDistance.cpp:
326         (WebCore::SVGTransformDistance::SVGTransformDistance):
327         (WebCore::SVGTransformDistance::scaledDistance):
328         (WebCore::SVGTransformDistance::isZero):
329         * svg/SVGTransformDistance.h:
330         * svg/SVGTransformList.cpp:
331         (SVGTransformList::createSVGTransformFromMatrix):
332         (SVGTransformList::concatenate):
333         (SVGTransformList::valueAsString):
334         * svg/SVGTransformList.h:
335         * svg/SVGTransformable.cpp:
336         (WebCore::SVGTransformable::getCTM):
337         (WebCore::SVGTransformable::getScreenCTM):
338         (WebCore::SVGTransformable::parseTransformValue):
339         * svg/SVGTransformable.h:
340         (WebCore::SVGTransformable::):
341         * svg/graphics/SVGPaintServerGradient.cpp:
342         (WebCore::SVGPaintServerGradient::gradientTransform):
343         (WebCore::SVGPaintServerGradient::setGradientTransform):
344         (WebCore::clipToTextMask):
345         (WebCore::SVGPaintServerGradient::setup):
346         * svg/graphics/SVGPaintServerGradient.h:
347         * svg/graphics/SVGPaintServerPattern.cpp:
348         (WebCore::SVGPaintServerPattern::patternTransform):
349         (WebCore::SVGPaintServerPattern::setPatternTransform):
350         (WebCore::SVGPaintServerPattern::setup):
351         * svg/graphics/SVGPaintServerPattern.h:
352         * svg/graphics/SVGResourceClipper.cpp:
353         (WebCore::SVGResourceClipper::applyClip):
354         * svg/graphics/SVGResourceMarker.cpp:
355         (WebCore::SVGResourceMarker::markerTransformation):
356         (WebCore::SVGResourceMarker::draw):
357         * svg/graphics/SVGResourceMarker.h:
358         * svg/graphics/filters/SVGFEImage.cpp:
359         * svg/graphics/filters/SVGFETile.cpp:
360         (WebCore::FETile::apply):
361
362 2010-02-08  Stephen White  <senorblanco@chromium.org>
363
364         Reviewed by Dimitri Glazkov.
365
366         Make an inline function containing a static var out-of-line.  This is
367         a workaround for Xcode 3.1 bug radar 7070016.  We tripped on this in
368         deviceRGBColorSpaceRef on the Chromium canaries.  This is a proactive
369         fix for the same problem in sRGBColorSpaceRef().
370
371         https://bugs.webkit.org/show_bug.cgi?id=34663
372
373         * platform/graphics/cg/GraphicsContextCG.cpp:
374         (WebCore::sRGBColorSpaceRef):
375         * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
376
377 2010-02-08  Nate Chapin  <japhet@chromium.org>
378
379         Reviewed by Dimitri Glazkov.
380
381         [V8] Unify the WorkerContext V8 object wrapping code with
382         the standard V8 object wrapping code.
383
384         https://bugs.webkit.org/show_bug.cgi?id=34658
385
386         * bindings/scripts/CodeGeneratorV8.pm:
387         * bindings/v8/V8DOMWrapper.cpp:
388         (WebCore::V8DOMWrapper::instantiateV8Object):
389         (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
390         * bindings/v8/V8WorkerContextEventListener.cpp:
391         (WebCore::V8WorkerContextEventListener::handleEvent):
392         (WebCore::V8WorkerContextEventListener::getReceiverObject):
393         * bindings/v8/WorkerContextExecutionProxy.cpp:
394         * bindings/v8/WorkerContextExecutionProxy.h:
395         * bindings/v8/custom/V8NotificationCenterCustom.cpp:
396         (WebCore::V8NotificationCenter::createHTMLNotificationCallback):
397         (WebCore::V8NotificationCenter::createNotificationCallback):
398         * bindings/v8/custom/V8WorkerContextCustom.cpp:
399         (WebCore::toV8):
400
401 2010-02-08  Kwang Yul Seo  <skyul@company100.net>
402
403         Reviewed by Darin Adler.
404
405         Use fastStrDup instead of strdup
406         https://bugs.webkit.org/show_bug.cgi?id=33943
407
408         Replace strdup/free with fastStrDup/fastFree.
409
410         * bridge/IdentifierRep.h:
411         (WebCore::IdentifierRep::IdentifierRep):
412         * bridge/jni/JNIBridge.cpp:
413         (JavaMethod::~JavaMethod):
414         (appendClassName):
415         (JavaMethod::signature):
416         * bridge/jni/jsc/JavaClassJSC.cpp:
417         (JavaClass::JavaClass):
418         (JavaClass::~JavaClass):
419         * platform/network/curl/ResourceHandleCurl.cpp:
420         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
421         * platform/network/curl/ResourceHandleManager.cpp:
422         (WebCore::ResourceHandleManager::~ResourceHandleManager):
423         (WebCore::ResourceHandleManager::setCookieJarFileName):
424         (WebCore::ResourceHandleManager::initializeHandle):
425         * plugins/PluginStream.cpp:
426         (WebCore::PluginStream::~PluginStream):
427         (WebCore::PluginStream::startStream):
428         * xml/XSLTProcessorLibxslt.cpp:
429         (WebCore::xsltParamArrayFromParameterMap):
430         (WebCore::freeXsltParamArray):
431
432 2010-02-08  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
433
434         Reviewed by Simon Hausmann.
435
436         Fix Qt build on Windows.
437
438         nmake fails to pick the right cpp file, so we have to
439         rename the file to to a unique name.
440
441         * WebCore.pro:
442         * platform/graphics/qt/FontCustomPlatformDataQt.cpp: Renamed from WebCore/platform/graphics/qt/FontCustomPlatformData.cpp.
443
444 2010-02-08  Nikolas Zimmermann  <nzimmermann@rim.com>
445
446         Reviewed by Dirk Schulze.
447
448         All SVG *-expected.txt files contain wrong results
449         https://bugs.webkit.org/show_bug.cgi?id=34703
450
451         Finally dump meaningful information for SVG layout tests.
452         Use 'absoluteClippedOverflowRect' which goes through the same code paths used
453         to actually calculate repaint rects etc - instead of the legacy CSS-unaware
454         code path that mapped 'repaintRectInLocalCoordinates' through 'absoluteTransform'.
455         Remove absoluteTransform() - a long standing TODO, finally not needed anymore.
456
457         Despite SVGRenderTreeAsText, SVGPaintServerGradient was also using absoluteTransform().
458         Rewrite the code in question, fixing svg/W3C-SVG-1.1/pserver-grad-08-b.svg alignment issues
459         when scaling/panning text using gradient on stroke/fill. Affects some other gradient tests as well.
460
461         As we're now dumping clipped overflow rects any problems with repaint rects will become
462         immediate visible - it turns out we're not supporting the overflow rules on the outermost <svg>
463         element properly (repaint rects and bounding boxes need to take special SVG overflow rules into account).
464         Fixing that magically gives pixel-perfect clipped overflow rects for all types of shapes/text/containers.
465
466         Note: This will break any overriden platform-specific SVG results, need to wait for build bots in order to update them.
467
468         * rendering/RenderObject.cpp: Remove absoluteTransform() method, centralize overflow query code in SVGRenderSupport::isOverflowHidden().
469         * rendering/RenderObject.h: Remove absoluteTransform() method.
470         * rendering/RenderSVGHiddenContainer.h: Ditto.
471         * rendering/RenderSVGRoot.cpp:
472         (WebCore::RenderSVGRoot::paint): Use SVGRenderSupport::isOverflowHidden() to query SVG overflow mode.
473         (WebCore::RenderSVGRoot::computeRectForRepaint): Respect SVG overflow rules here: clip repaintRect against overflow rect _before_ passing
474                                                          along to RenderBox. This is the key issue behind wrong absoluteClippedOverflowRect() values.
475         (WebCore::RenderSVGRoot::nodeAtPoint): Use SVGRenderSupport::isOverflowHidden() to query SVG overflow mode.
476         * rendering/RenderSVGRoot.h: Remove absoluteTransform(). Don't expose viewportSize() anymore.
477         * rendering/RenderSVGText.cpp: 
478         (WebCore::RenderSVGText::strokeBoundingBox): Fix default stroke width to 1. This was the only wrong place -> fixes repaint rects for stroked text.
479         * rendering/RenderSVGViewportContainer.cpp: Remove absoluteTransform() method.
480         (WebCore::RenderSVGViewportContainer::pointIsInsideViewportClip): Use SVGRenderSupport::isOverflowHidden() to query SVG overflow mode.
481         * rendering/RenderSVGViewportContainer.h: Remove absoluteTransform() method.
482         * rendering/SVGRenderSupport.cpp: Refactored overflow queries in one place, centralizing SVG specific assumptions about overflowX/Y.
483         (WebCore::SVGRenderBase::isOverflowHidden):
484         * rendering/SVGRenderSupport.h:
485         * rendering/SVGRenderTreeAsText.cpp: Dump absoluteClippedOverflowRect() instead of absoluteTransform().mapRect(repaintRectInLocalCoordinates()).
486         (WebCore::writePositionAndStyle): Affects all layout tests dumping render trees.
487         * svg/graphics/SVGPaintServerGradient.cpp: Rewrite Gradient on text fill/stroke support on Cg, to avoid using absoluteTransform().
488         (WebCore::absoluteTransformForRenderer):
489         (WebCore::createMaskAndSwapContextForTextGradient):
490         (WebCore::clipToTextMask):
491         (WebCore::SVGPaintServerGradient::setup):
492
493 2010-02-07  Daniel Bates  <dbates@webkit.org>
494
495         Reviewed by Darin Adler.
496
497         https://bugs.webkit.org/show_bug.cgi?id=34402
498
499         Implements all of the numeric CSS3 list-style-types as per
500         section 4.3 of the CSS3 Lists module <http://www.w3.org/TR/css3-lists/#numeric>.
501
502         Test: fast/lists/w3-css3-list-styles-numeric.html
503
504         * css/CSSPrimitiveValueMappings.h:
505         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
506         * css/CSSValueKeywords.in:
507         * inspector/front-end/SourceCSSTokenizer.re2js:
508         * platform/text/CharacterNames.h: Added constant hyphenMinus.
509         * rendering/RenderListMarker.cpp:
510         (WebCore::): Defined enum SequenceType.
511         (WebCore::toAlphabeticOrNumeric): Added.
512         (WebCore::toAlphabetic): Modified to call WebCore::toAlphabeticOrNumeric.
513         (WebCore::toNumeric): Added.
514         (WebCore::listMarkerSuffix):
515         (WebCore::listMarkerText):
516         (WebCore::RenderListMarker::paint):
517         (WebCore::RenderListMarker::calcPrefWidths):
518         (WebCore::RenderListMarker::getRelativeMarkerRect):
519         * rendering/style/RenderStyle.h:
520         (WebCore::):
521         * rendering/style/RenderStyleConstants.h: Added numeric list style types
522         and fixed indent level for the enum values.
523         (WebCore::):
524
525 2010-02-07  Ismail Donmez  <ismail@namtrac.org>
526
527         Reviewed by Darin Adler.
528
529         Include wtf/StringExtras.h for strdup definition, which
530         is needed for WinCE.
531
532         * bridge/IdentifierRep.h:
533
534 2010-02-07  Pavel Feldman  <pfeldman@chromium.org>
535
536         Reviewed by Timothy Hatcher.
537
538         Web Inspector: Fragment-held Elements Not Shown in Inspector.
539
540         https://bugs.webkit.org/show_bug.cgi?id=34680
541
542         * inspector/InspectorDOMAgent.cpp:
543         (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
544         (WebCore::InspectorDOMAgent::buildObjectForNode):
545         * inspector/front-end/ElementsTreeOutline.js:
546         (WebInspector.ElementsTreeElement.prototype._nodeTitleInfo):
547
548 2010-02-07  Jian Li  <jianli@chromium.org>
549
550         Reviewed by Darin Fisher.
551
552         [chromium] Change chromium interface to handle DownloadURL format.
553         https://bugs.webkit.org/show_bug.cgi?id=34655
554
555         * platform/chromium/ChromiumDataObject.cpp:
556         (WebCore::ChromiumDataObject::clear):
557         (WebCore::ChromiumDataObject::hasData):
558         (WebCore::ChromiumDataObject::ChromiumDataObject):
559         * platform/chromium/ChromiumDataObject.h:
560         * platform/chromium/ClipboardChromium.cpp:
561         (WebCore::ClipboardChromium::setData):
562
563 2010-02-06  Dimitri Glazkov  <dglazkov@chromium.org>
564
565         No review, rolling out r54364.
566         http://trac.webkit.org/changeset/54364
567         https://bugs.webkit.org/show_bug.cgi?id=34464
568
569         Introduced asserts in layout tests, needs more testing
570         locally.
571
572         * accessibility/chromium/AXObjectCacheChromium.cpp:
573         (WebCore::AXObjectCache::postPlatformNotification):
574         * page/chromium/ChromeClientChromium.h:
575
576 2010-02-06  Dimitri Glazkov  <dglazkov@chromium.org>
577
578         Reviewed by Adam Barth.
579
580         Using inlines and function-level statics don't mix, according to gcc.
581         https://bugs.webkit.org/show_bug.cgi?id=34663
582
583         De-inline deviceRGBColorSpaceRef to avoid gcc-bug landmines.
584
585         It appears that the initialization check, generated by gcc doesn't account
586         for a possibility that the function may be inlined, resulting in lazy
587         initialization failure for more than one inlined instance of the function.
588
589         No behavior change, so no new tests.
590
591         * platform/graphics/cg/GraphicsContextCG.cpp:
592         (WebCore::deviceRGBColorSpaceRef):
593         * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
594
595 2010-02-05  Geoffrey Garen  <ggaren@apple.com>
596
597         Reviewed by Dan Bernstein.
598
599         Added an ASSERT to catch an implausible but theoretically possible leak.
600         
601         In theory, if malloc allocated a UChar buffer directly after a StringImpl,
602         the StringImpl might incorrecly assume that the UChar buffer was inline,
603         and fail to delete it.
604         
605         This ASSERT is somewhat academic, since we don't use the same allocator
606         in debug builds, but oh well.
607
608         * platform/text/StringImpl.cpp:
609         (WebCore::StringImpl::StringImpl):
610         (WebCore::StringImpl::createUninitialized):
611         * platform/text/StringImpl.h: Separated the inline buffer StringImpl
612         constructor from the out-of-line buffer StringImpl constructor. Made
613         the former ASSERT that its buffer was indeed inline, and the latter ASSERT
614         that its buffer was indeed not inline.
615
616 2010-02-05  Chris Marrin  <cmarrin@apple.com>
617
618         Reviewed by Simon Fraser.
619
620         Fixed changed virtual function in GraphicsLayerCACF and call order issues
621         https://bugs.webkit.org/show_bug.cgi?id=34348
622         
623         The correct virtual function in GraphicsLayerCACF is now being
624         called. We also fixed an issue in QTMovieWin where the size
625         of the movie was not being set correctly because the call order
626         was changed.
627         
628         I also changed the order of a couple of calls in QTMovieWin to account
629         for changed calling order from the logic above.
630
631         * platform/graphics/win/GraphicsLayerCACF.cpp:Update to new virtual function API
632         (WebCore::GraphicsLayerCACF::setContentsToMedia):
633         (WebCore::GraphicsLayerCACF::updateContentsMedia):
634         * platform/graphics/win/GraphicsLayerCACF.h:Update to new virtual function API
635         (WebCore::GraphicsLayerCACF::):
636         * platform/graphics/win/QTMovieWin.cpp:
637         (QTMovieWinPrivate::cacheMovieScale):Fix a bug where ratio was computed wrong because it was using integer math
638         (QTMovieWinPrivate::task):Compute movie scale before computing movie size so values are correct
639         (QTMovieWinPrivate::setSize):Move movie size update to updateMovieSize()
640         (QTMovieWinPrivate::updateMovieSize):Wrap size update in a new call so it can be used from multiple places
641
642 2010-02-05  Enrica Casucci  <enrica@apple.com>
643
644         Reviewed by Simon Fraser.
645
646         Horizontal scrollbar works in reverse at milliondollarcu.be
647         <rdar://problem/7556121>
648         https://bugs.webkit.org/show_bug.cgi?id=33848
649         
650         Added a manual test.
651
652         * manual-tests/win: Added.
653         * manual-tests/win/horizontal-scroll-composited.html: Added.
654         * platform/graphics/win/WKCACFLayerRenderer.cpp:
655         (WebCore::WKCACFLayerRenderer::setScrollFrame):
656         (WebCore::WKCACFLayerRenderer::setRootChildLayer):
657
658 2010-02-05  Ryan Leavengood  <leavengood@gmail.com>
659
660         Reviewed by David Levin.
661
662         Implementation of GlyphPage::fill() for Haiku port.
663         https://bugs.webkit.org/show_bug.cgi?id=34527
664
665         Covered by existing tests.
666
667         * platform/graphics/haiku/GlyphPageTreeNodeHaiku.cpp
668
669 2010-01-19  Kenneth Rohde Christiansen  <kenneth@webkit.org>
670
671         Reviewed by Dave Hyatt.
672
673         Implement flattening of framesets
674         https://bugs.webkit.org/show_bug.cgi?id=32717
675
676         The following patch, builds ontop of Antti Koivisto's frameset
677         flattening code from the iPhone source, which itself is based on
678         the old Nokia Series 60 source.
679
680         Layout tests have been added to test the functionality and the original
681         code which has then been fixed to make these pass, as well as support
682         frameset grids.
683
684         Tests: fast/frames/flattening/frameset-flattening-advanced.html
685                fast/frames/flattening/frameset-flattening-grid.html
686                fast/frames/flattening/frameset-flattening-simple.html
687                fast/frames/flattening/frameset-flattening-subframe-resize.html
688                fast/frames/flattening/frameset-flattening-subframesets.html
689
690         * page/FrameView.cpp:
691         (WebCore::FrameView::layout):
692         (WebCore::FrameView::scheduleRelayout):
693         * page/Settings.cpp:
694         (WebCore::Settings::Settings):
695         (WebCore::Settings::setFrameSetFlatteningEnabled):
696         * page/Settings.h:
697         (WebCore::Settings::frameSetFlatteningEnabled):
698         * rendering/RenderFrame.cpp:
699         (WebCore::RenderFrame::layoutWithFlattening):
700         * rendering/RenderFrame.h:
701         * rendering/RenderFrameSet.cpp:
702         (WebCore::RenderFrameSet::layout):
703         (WebCore::RenderFrameSet::positionFramesWithFlattening):
704         (WebCore::RenderFrameSet::flattenFrameSet):
705         (WebCore::RenderFrameSet::userResize):
706         * rendering/RenderFrameSet.h:
707
708 2010-02-05  Simon Fraser  <simon.fraser@apple.com>
709
710         Reviewed by Dan Bernstein.
711
712         Changing display type of parent of input on focus causes input field to not receive key events
713         https://bugs.webkit.org/show_bug.cgi?id=34620
714         <rdar://problem/7584572>
715         
716         When layout affects a text input, the RenderTextControl gets destroyed and
717         recreated, which in turn makes a new innerTextElement. However, if the text field was
718         focused, the VisibleSelection is left pointing to the old innerTextElement, so text
719         input no longer works.
720         
721         The fix is to call updateFocusAppearanceSoon() when attaching the input element,
722         which will update the selection if necessary.
723
724         Test: fast/forms/restore-selection-after-layout.html
725
726         * dom/Document.h: Add a paramter to updateFocusAppearanceSoon() and a member variable,
727         m_updateFocusAppearanceRestoresSelection, to store its value until the timer fires.
728         * dom/Document.cpp:
729         (WebCore::Document::Document): Initialize m_updateFocusAppearanceRestoresSelection
730         (WebCore::Document::updateFocusAppearanceSoon): New restorePreviousSelection parameter.
731         (WebCore::Document::updateFocusAppearanceTimerFired): Pass m_updateFocusAppearanceRestoresSelection down.
732         * dom/Element.cpp:
733         (WebCore::Element::attach): Call updateFocusAppearanceSoon() with false.
734         * dom/Element.h: The updateFocusAppearanceSoonAfterAttach() was undefined.
735         * html/HTMLInputElement.cpp:
736         (WebCore::HTMLInputElement::attach): Call document()->updateFocusAppearanceSoon() with true.
737
738 2010-02-05  Pavel Feldman  <pfeldman@chromium.org>
739
740         Reviewed by Timothy Hatcher.
741
742         Web Inspector: simplify cookies view, introduce DataGrid::autoSizeColumns.
743
744         https://bugs.webkit.org/show_bug.cgi?id=34646
745
746         * inspector/front-end/CookieItemsView.js:
747         (WebInspector.CookieItemsView):
748         (WebInspector.CookieItemsView.prototype.show):
749         (WebInspector.CookieItemsView.prototype._update):
750         (WebInspector.CookieItemsView.prototype._updateWithCookies):
751         (WebInspector.CookieItemsView.prototype._filterCookiesForDomain):
752         (WebInspector.CookieItemsView.prototype._createDataGrid):
753         (WebInspector.CookieItemsView.prototype._populateDataGrid.expiresCompare):
754         (WebInspector.CookieItemsView.prototype._populateDataGrid):
755         (WebInspector.CookieItemsView.prototype._createSimpleDataGrid):
756         (WebInspector.CookieItemsView.prototype._populateSimpleDataGrid):
757         (WebInspector.CookieItemsView.prototype._deleteCookieCallback):
758         (WebInspector.CookieItemsView.prototype._refreshButtonClicked):
759         * inspector/front-end/DOMStorageItemsView.js:
760         (WebInspector.DOMStorageItemsView.prototype._showDOMStorageEntries):
761         (WebInspector.DOMStorageItemsView.prototype._dataGridForDOMStorageEntries):
762         * inspector/front-end/DataGrid.js:
763         (WebInspector.DataGrid):
764         (WebInspector.DataGrid.prototype.autoSizeColumns):
765         * inspector/front-end/DatabaseQueryView.js:
766         (WebInspector.DatabaseQueryView.prototype._queryFinished):
767         * inspector/front-end/DatabaseTableView.js:
768         (WebInspector.DatabaseTableView.prototype._queryFinished):
769         * inspector/front-end/StoragePanel.js:
770         (WebInspector.StoragePanel.prototype.dataGridForResult):
771
772 2010-02-04  Pavel Feldman  <pfeldman@chromium.org>
773
774         Reviewed by Timothy Hatcher.
775
776         Web Inspector: group cookies by frame, show total
777         cookies size, allow sorting cookie table.
778
779         https://bugs.webkit.org/show_bug.cgi?id=34617
780
781         * English.lproj/localizedStrings.js:
782         * inspector/InspectorController.cpp:
783         (WebCore::InspectorController::deleteCookie):
784         * inspector/front-end/CookieItemsView.js:
785         (WebInspector.CookieItemsView):
786         (WebInspector.CookieItemsView.prototype.update):
787         (WebInspector.CookieItemsView.prototype._updateWithCookies):
788         (WebInspector.CookieItemsView.prototype._cookiesForDomain):
789         (WebInspector.CookieItemsView.prototype.dataGridForCookies):
790         (WebInspector.CookieItemsView.prototype._createNodes):
791         (WebInspector.CookieItemsView.prototype._sortData.localeCompare):
792         (WebInspector.CookieItemsView.prototype._sortData.numberCompare):
793         (WebInspector.CookieItemsView.prototype._sortData.expiresCompare):
794         (WebInspector.CookieItemsView.prototype._sortData):
795         * inspector/front-end/StoragePanel.js:
796         (WebInspector.StoragePanel.prototype.showCookies):
797         (WebInspector.CookieSidebarTreeElement):
798         (WebInspector.CookieSidebarTreeElement.prototype.onselect):
799         (WebInspector.CookieSidebarTreeElement.prototype.get subtitle):
800         (WebInspector.CookieSidebarTreeElement.prototype.set subtitle):
801         * inspector/front-end/inspector.js:
802         (WebInspector.updateResource):
803
804 2010-02-05  Maxime Simone  <simon.maxime@gmail.com>
805
806         Reviewed by David Levin.
807
808         More robust conversion from BString to String for Haiku port.
809         https://bugs.webkit.org/show_bug.cgi?id=34527
810
811         Covered by existing tests.
812
813         * platform/text/haiku/StringHaiku.cpp: Fixed include order, Improved coversion from BString.
814
815 2010-02-05  Steve Falkenburg  <sfalken@apple.com>
816
817         Reviewed by Adam Roben.
818
819         Windows build fix.
820
821         * WebCore.vcproj/WebCore.make:
822
823 2010-02-05  Csaba Osztrogonác  <ossy@webkit.org>
824
825         Reviewed by Dirk Schulze.
826         Rubber-stamped by Kenneth Rohde Christiansen.
827
828         [Qt] Modifying SVG path dumping to equal to other ports
829         https://bugs.webkit.org/show_bug.cgi?id=33784
830
831         * platform/graphics/qt/PathQt.cpp:
832         (WebCore::Path::debugString): Path dumping style is aproached to Mac.
833
834 2010-02-05  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
835
836         Reviewed by Gustavo Noronha.
837
838         Add a GStreamer HTTP/HTTPS source, using WebKit infrastructure
839         https://bugs.webkit.org/show_bug.cgi?id=34317
840
841         * GNUmakefile.am:
842         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
843         (WebCore::mediaPlayerPrivateSourceChangedCallback):
844         (WebCore::doGstInit):
845         * platform/graphics/gtk/WebKitWebSourceGStreamer.cpp:
846         * platform/graphics/gtk/WebKitWebSourceGStreamer.h:
847         Add a GStreamer HTTP/HTTPS source, using the WebKit infrastructure.
848         This makes sure that referer, cookies, authentication information
849         and all kinds of other context are passed to GStreamer for websites
850         like Vimeo or YouTube.
851
852 2010-02-05  Nate Chapin  <japhet@chromium.org>
853
854         Reviewed by Dimitri Glazkov.
855
856         [V8] Clean up code for getting a v8::FunctionTemplate.
857         
858         https://bugs.webkit.org/show_bug.cgi?id=34606
859
860         * bindings/scripts/CodeGeneratorV8.pm: Making GetTemplate() public
861         * bindings/v8/V8Binding.cpp:
862         (WebCore::configureTemplate):
863         * bindings/v8/V8DOMWrapper.cpp: Remove getTemplate(), use V8ClassIndex::getTemplate() instead.
864         (WebCore::V8DOMWrapper::getConstructor):
865         (WebCore::V8DOMWrapper::instantiateV8Object):
866         * bindings/v8/V8DOMWrapper.h:
867         (WebCore::V8DOMWrapper::lookupDOMWrapper):
868         * bindings/v8/V8Index.cpp: Remove duplicate caching of FunctionTemplates.
869         (WebCore::V8ClassIndex::getTemplate):
870         * bindings/v8/V8Index.h:
871         * bindings/v8/WorkerContextExecutionProxy.cpp:
872         (WebCore::WorkerContextExecutionProxy::toV8):
873         * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
874         (WebCore::v8HTMLAudioElementConstructorCallback):
875         (WebCore::V8HTMLAudioElementConstructor::GetTemplate):
876         * bindings/v8/custom/V8HTMLAudioElementConstructor.h:
877         * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
878         (WebCore::v8HTMLImageElementConstructorCallback):
879         (WebCore::V8HTMLImageElementConstructor::GetTemplate):
880         * bindings/v8/custom/V8HTMLImageElementConstructor.h:
881         * bindings/v8/custom/V8HTMLOptionElementConstructor.cpp:
882         (WebCore::v8HTMLOptionElementConstructorCallback):
883         (WebCore::V8HTMLOptionElementConstructor::GetTemplate):
884         * bindings/v8/custom/V8HTMLOptionElementConstructor.h:
885         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
886         (WebCore::createInjectedScriptHostV8Wrapper):
887
888 2010-02-05  Siddharth Mathur  <siddharth.mathur@nokia.com>
889
890         Reviewed by Ariya Hidayat.
891
892         [Qt] Build break in QtWebkit on Symbian
893         https://bugs.webkit.org/show_bug.cgi?id=34597
894
895         * plugins/PluginView.h:
896
897 2010-02-05  Yury Semikhatsky  <yurys@chromium.org>
898
899         Reviewed by Pavel Feldman.
900
901         - Use SerializedScriptValue for passing data between injected script and
902         inspector frontend.
903         - Remove custom JSON implementation from the instpector utility script.
904         - Make sure that only objects created in the same ScriptState can be values
905         of ScriptObject/Array properties and arguments to ScriptFunctionCall. We don't
906         want ScriptObjects to leak between contexts.
907         - Use ScriptState of the 'this' object in ScriptFunctionCall instead of passing
908         it as additional parameter.
909
910         https://bugs.webkit.org/show_bug.cgi?id=33592
911
912         * bindings/js/JSInjectedScriptHostCustom.cpp:
913         (WebCore::JSInjectedScriptHost::reportDidDispatchOnInjectedScript):
914         * bindings/js/ScriptArray.cpp:
915         (WebCore::ScriptArray::set):
916         * bindings/js/ScriptFunctionCall.cpp:
917         (WebCore::ScriptFunctionCall::ScriptFunctionCall):
918         (WebCore::ScriptFunctionCall::appendArgument):
919         * bindings/js/ScriptFunctionCall.h:
920         * bindings/js/ScriptObject.cpp:
921         (WebCore::ScriptObject::set):
922         * bindings/js/ScriptValue.cpp:
923         (WebCore::ScriptValue::serialize):
924         (WebCore::ScriptValue::deserialize):
925         * bindings/js/ScriptValue.h:
926         * bindings/v8/ScriptArray.cpp:
927         (WebCore::ScriptArray::set):
928         * bindings/v8/ScriptFunctionCall.cpp:
929         (WebCore::ScriptFunctionCall::ScriptFunctionCall):
930         (WebCore::ScriptFunctionCall::appendArgument):
931         * bindings/v8/ScriptFunctionCall.h:
932         * bindings/v8/ScriptObject.cpp:
933         (WebCore::ScriptObject::set):
934         * bindings/v8/ScriptState.h:
935         * bindings/v8/ScriptValue.cpp:
936         (WebCore::ScriptValue::serialize):
937         (WebCore::deserialize):
938         * bindings/v8/ScriptValue.h:
939         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
940         (WebCore::V8InjectedScriptHost::reportDidDispatchOnInjectedScriptCallback):
941         * inspector/InjectedScript.cpp:
942         (WebCore::InjectedScript::dispatch):
943         (WebCore::InjectedScript::callFrames):
944         (WebCore::InjectedScript::wrapForConsole):
945         (WebCore::InjectedScript::releaseWrapperObjectGroup):
946         * inspector/InjectedScript.h:
947         * inspector/InjectedScriptHost.cpp:
948         (WebCore::InjectedScriptHost::reportDidDispatchOnInjectedScript):
949         * inspector/InjectedScriptHost.h:
950         * inspector/InjectedScriptHost.idl:
951         * inspector/InspectorBackend.cpp:
952         (WebCore::InspectorBackend::dispatchOnInjectedScript):
953         * inspector/InspectorController.cpp:
954         (WebCore::InspectorController::setFrontendProxyObject):
955         (WebCore::InspectorController::didPause):
956         (WebCore::InspectorController::didEvaluateForTestInFrontend):
957         * inspector/InspectorFrontend.cpp:
958         (WebCore::InspectorFrontend::InspectorFrontend):
959         (WebCore::InspectorFrontend::newScriptArray):
960         (WebCore::InspectorFrontend::newScriptObject):
961         (WebCore::InspectorFrontend::populateFrontendSettings):
962         (WebCore::InspectorFrontend::updateConsoleMessageExpiredCount):
963         (WebCore::InspectorFrontend::addConsoleMessage):
964         (WebCore::InspectorFrontend::updateConsoleMessageRepeatCount):
965         (WebCore::InspectorFrontend::updateResource):
966         (WebCore::InspectorFrontend::removeResource):
967         (WebCore::InspectorFrontend::didGetResourceContent):
968         (WebCore::InspectorFrontend::updateFocusedNode):
969         (WebCore::InspectorFrontend::setAttachedWindow):
970         (WebCore::InspectorFrontend::addRecordToTimeline):
971         (WebCore::InspectorFrontend::parsedScriptSource):
972         (WebCore::InspectorFrontend::failedToParseScriptSource):
973         (WebCore::InspectorFrontend::addProfileHeader):
974         (WebCore::InspectorFrontend::setRecordingProfile):
975         (WebCore::InspectorFrontend::didGetProfileHeaders):
976         (WebCore::InspectorFrontend::didGetProfile):
977         (WebCore::InspectorFrontend::pausedScript):
978         (WebCore::InspectorFrontend::setDocument):
979         (WebCore::InspectorFrontend::setDetachedRoot):
980         (WebCore::InspectorFrontend::setChildNodes):
981         (WebCore::InspectorFrontend::childNodeCountUpdated):
982         (WebCore::InspectorFrontend::childNodeInserted):
983         (WebCore::InspectorFrontend::childNodeRemoved):
984         (WebCore::InspectorFrontend::attributesUpdated):
985         (WebCore::InspectorFrontend::didRemoveNode):
986         (WebCore::InspectorFrontend::didGetChildNodes):
987         (WebCore::InspectorFrontend::didApplyDomChange):
988         (WebCore::InspectorFrontend::didGetEventListenersForNode):
989         (WebCore::InspectorFrontend::didGetCookies):
990         (WebCore::InspectorFrontend::didDispatchOnInjectedScript):
991         (WebCore::InspectorFrontend::addDatabase):
992         (WebCore::InspectorFrontend::selectDatabase):
993         (WebCore::InspectorFrontend::didGetDatabaseTableNames):
994         (WebCore::InspectorFrontend::addDOMStorage):
995         (WebCore::InspectorFrontend::selectDOMStorage):
996         (WebCore::InspectorFrontend::didGetDOMStorageEntries):
997         (WebCore::InspectorFrontend::didSetDOMStorageItem):
998         (WebCore::InspectorFrontend::didRemoveDOMStorageItem):
999         (WebCore::InspectorFrontend::updateDOMStorage):
1000         (WebCore::InspectorFrontend::addNodesToSearchResult):
1001         (WebCore::InspectorFrontend::contextMenuItemSelected):
1002         (WebCore::InspectorFrontend::evaluateForTestInFrontend):
1003         (WebCore::InspectorFrontend::callSimpleFunction):
1004         * inspector/InspectorFrontend.h:
1005         (WebCore::InspectorFrontend::scriptState):
1006         * inspector/front-end/InjectedScript.js:
1007         (injectedScriptConstructor):
1008         (injectedScriptConstructor.):
1009         * inspector/front-end/InjectedScriptAccess.js:
1010         (InjectedScriptAccess._installHandler.InjectedScriptAccess.prototype.methodName.myCallback):
1011         (InjectedScriptAccess._installHandler.InjectedScriptAccess.prototype.methodName):
1012         (InjectedScriptAccess._installHandler):
1013         * inspector/front-end/inspector.js:
1014         (WebInspector.pausedScript):
1015         (WebInspector.addConsoleMessage):
1016
1017 2010-02-05  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1018
1019         Reviewed by Simon Hausmann.
1020
1021         [Qt] Generate convenience headers (QWebView, etc) using qmake
1022
1023         In Qt this is done using syncqt, but we use a pro-file instead
1024         that generates makefile-rules for each of the extra headers.
1025
1026         These extra headers are installed alongside the normal headers.
1027
1028         * WebCore.pro: Use headers.pri based on DerivedSources instead
1029         of the one previously checked in in the source tree.
1030
1031 2010-02-05  Mikhail Naganov  <mnaganov@chromium.org>
1032
1033         Reviewed by Pavel Feldman.
1034
1035         Enable JAVASCRIPT_DEBUGGER in chromium port.
1036
1037         https://bugs.webkit.org/show_bug.cgi?id=34638
1038
1039         * page/Console.cpp:
1040         * page/Console.h:
1041         * page/Console.idl:
1042
1043 2010-02-05  Pavel Feldman  <pfeldman@chromium.org>
1044
1045         Reviewed by Timothy Hatcher.
1046
1047         Web Inspector: Tab width for javascript source is 8, should be 4
1048
1049         https://bugs.webkit.org/show_bug.cgi?id=31248
1050
1051         * inspector/front-end/SourceFrame.js:
1052         (WebInspector.SourceFrame):
1053         * inspector/front-end/TextEditorModel.js:
1054         (WebInspector.TextEditorModel.prototype.set replaceTabsWithSpaces):
1055         (WebInspector.TextEditorModel.prototype._innerSetText):
1056         (WebInspector.TextEditorModel.prototype._replaceTabsIfNeeded):
1057
1058 2010-02-05  Tony Chang  <tony@chromium.org>
1059
1060         Reviewed by Eric Seidel.
1061
1062         https://bugs.webkit.org/show_bug.cgi?id=24872
1063         When pasting a list into another list should not indent another level.
1064         If the cursor is at the beginning of the line, it should insert the
1065         list items before the current list item.  If the cursor is at the end
1066         of the line, it should insert the list items after the current list item.
1067
1068         This matches Firefox and IE and makes the common activity of reordering a list
1069         work as expected.
1070
1071         This also adds a small helper method (isListItem) to htmlediting.h.
1072
1073         Test: editing/pasteboard/paste-list-002.html
1074
1075         * editing/ReplaceSelectionCommand.cpp:
1076         (WebCore::ReplaceSelectionCommand::doApply):
1077         (WebCore::ReplaceSelectionCommand::insertAsListItems):
1078         * editing/ReplaceSelectionCommand.h:
1079         * editing/htmlediting.cpp:
1080         (WebCore::isListItem):
1081         (WebCore::appendedSublist):
1082         * editing/htmlediting.h:
1083
1084 2010-02-04  Mark Rowe  <mrowe@apple.com>
1085
1086         Reviewed by Timothy Hatcher.
1087
1088         Build fix.  Remove a symbol corresponding to an inline function from the linker export
1089         file to prevent a weak external failure.
1090
1091         * WebCore.base.exp: Remove symbol.
1092         * WebCore.xcodeproj/project.pbxproj: Accommodate rename of script.
1093
1094 2010-02-04  Geoffrey Garen  <ggaren@apple.com>
1095
1096         Reviewed by Oliver Hunt.
1097
1098         Updated to use new WeakGCPtr::clear interface.
1099
1100         * bindings/js/JSEventListener.cpp:
1101         * bindings/js/JSEventListener.h:
1102         (WebCore::JSEventListener::invalidateJSFunction):
1103
1104 2010-02-04  Geoffrey Garen  <ggaren@apple.com>
1105
1106         Build fix: Added a forwarding header.
1107
1108         * ForwardingHeaders/runtime/WeakGCPtr.h: Added.
1109
1110 2010-02-04  Geoffrey Garen  <ggaren@apple.com>
1111
1112         Reviewed by Alexey Proskuryakov and Darin Adler.
1113
1114         REGRESSION (r52082): Missing event handlers on JQuery demo page (33383)
1115         https://bugs.webkit.org/show_bug.cgi?id=33383
1116         <rdar://problem/7559449>
1117         
1118         There were two bugs here:
1119         
1120         1. A stale wrapper would invalidate a node's event listeners, even if
1121         the node had a fresh wrapper keeping it alive.
1122         
1123         The fix for this is for an event listener to keep a WeakGCPtr back-pointer
1124         to the wrapper it expects to mark it. The wrapper destructor checks this
1125         back-pointer, and only invalidates the event listener in the case of a match.
1126
1127         2. Conversely, a stale wrapper would not invalidate a node's event
1128         listeners soon enough, if its destructor didn't have a chance to run
1129         before an event fired on the node. (This can only happen in cases where
1130         we've made some other error and failed to mark a wrapper that was circuitously
1131         observable in the DOM. But we know we have edge case bugs like this, and
1132         we don't want them to be crashes.)
1133         
1134         The fix for this is to check the wrapper back-pointer before firing the
1135         event listener. As long as the the wrapper back-pointer is not null,
1136         it's safe to fire the listener. 
1137
1138         * ForwardingHeaders/runtime/WeakGCPtr.h: Added. Appease build gods.
1139
1140         * bindings/js/JSAbstractWorkerCustom.cpp:
1141         (WebCore::JSAbstractWorker::addEventListener):
1142         (WebCore::JSAbstractWorker::removeEventListener):
1143         * bindings/js/JSDOMApplicationCacheCustom.cpp:
1144         (WebCore::JSDOMApplicationCache::addEventListener):
1145         (WebCore::JSDOMApplicationCache::removeEventListener):
1146         * bindings/js/JSDOMWindowCustom.cpp:
1147         (WebCore::JSDOMWindow::markChildren):
1148         (WebCore::JSDOMWindow::addEventListener):
1149         (WebCore::JSDOMWindow::removeEventListener): Updated to pass a wrapper
1150         to the JSEventListener constructor.
1151
1152         * bindings/js/JSEventListener.cpp:
1153         (WebCore::JSEventListener::JSEventListener):
1154         (WebCore::JSEventListener::initializeJSFunction):
1155         (WebCore::JSEventListener::invalidateJSFunction):
1156         * bindings/js/JSEventListener.h:
1157         (WebCore::JSEventListener::create):
1158         (WebCore::JSEventListener::isolatedWorld):
1159         (WebCore::JSEventListener::wrapper):
1160         (WebCore::JSEventListener::setWrapper):
1161         (WebCore::JSEventListener::jsFunction):
1162         (WebCore::createJSAttributeEventListener): Implemented the back-pointer
1163         described above. Refactored the jsFunction() accessor to return 0 if
1164         the wrapper back-pointer is 0.
1165
1166         * bindings/js/JSEventSourceCustom.cpp:
1167         (WebCore::JSEventSource::addEventListener):
1168         (WebCore::JSEventSource::removeEventListener):
1169         * bindings/js/JSLazyEventListener.cpp:
1170         (WebCore::JSLazyEventListener::JSLazyEventListener):
1171         (WebCore::JSLazyEventListener::initializeJSFunction):
1172         * bindings/js/JSLazyEventListener.h:
1173         (WebCore::JSLazyEventListener::create):
1174         * bindings/js/JSMessagePortCustom.cpp:
1175         (WebCore::JSMessagePort::markChildren):
1176         (WebCore::JSMessagePort::addEventListener):
1177         (WebCore::JSMessagePort::removeEventListener):
1178         * bindings/js/JSNodeCustom.cpp:
1179         (WebCore::JSNode::addEventListener):
1180         (WebCore::JSNode::removeEventListener):
1181         (WebCore::JSNode::markChildren):
1182         * bindings/js/JSSVGElementInstanceCustom.cpp:
1183         (WebCore::JSSVGElementInstance::addEventListener):
1184         (WebCore::JSSVGElementInstance::removeEventListener):
1185         * bindings/js/JSWebSocketCustom.cpp:
1186         (WebCore::JSWebSocket::addEventListener):
1187         (WebCore::JSWebSocket::removeEventListener):
1188         * bindings/js/JSWorkerContextCustom.cpp:
1189         (WebCore::JSWorkerContext::markChildren):
1190         (WebCore::JSWorkerContext::addEventListener):
1191         (WebCore::JSWorkerContext::removeEventListener):
1192         * bindings/js/JSXMLHttpRequestCustom.cpp:
1193         (WebCore::JSXMLHttpRequest::markChildren):
1194         (WebCore::JSXMLHttpRequest::addEventListener):
1195         (WebCore::JSXMLHttpRequest::removeEventListener):
1196         * bindings/js/JSXMLHttpRequestUploadCustom.cpp:
1197         (WebCore::JSXMLHttpRequestUpload::markChildren):
1198         (WebCore::JSXMLHttpRequestUpload::addEventListener):
1199         (WebCore::JSXMLHttpRequestUpload::removeEventListener): Updated to pass a wrapper
1200         to the JSEventListener constructor.
1201
1202
1203         * bindings/js/ScriptEventListener.cpp:
1204         (WebCore::createAttributeEventListener): Updated to pass a wrapper
1205         to the JSEventListener constructor.
1206         (WebCore::getEventListenerHandlerBody): Updated for the fact that jsFunction()
1207         is no longer a virtual accessor on the EventHandler base class.
1208
1209         * bindings/scripts/CodeGeneratorJS.pm: Updated for the fact that jsFunction()
1210         is no longer a virtual accessor on the EventHandler base class. Added a "JS"
1211         to invalidateEventListeners and markEventListeners to clarify that these
1212         actions are for JS event listeners only. Added a wrapper parameter to
1213         invalidateEventListeners for the back-pointer check explained above.
1214
1215         * dom/EventListener.h:
1216         (WebCore::EventListener::invalidateJSFunction): ditto
1217
1218         * dom/EventTarget.h:
1219         (WebCore::EventTarget::markJSEventListeners):
1220         (WebCore::EventTarget::invalidateJSEventListeners): ditto
1221
1222 2010-02-04  Tony Chang  <tony@chromium.org>
1223
1224         Reviewed by Eric Seidel.
1225
1226         https://bugs.webkit.org/show_bug.cgi?id=25002
1227         When inserting a new paragraph, avoid nesting empty divs.  When
1228         pasting near the end of a paragraph, this prevents each paste
1229         command for getting nested one level deeper.
1230
1231         Test: editing/inserting/paragraph-outside-nested-divs.html
1232
1233         * editing/InsertParagraphSeparatorCommand.cpp:
1234         (WebCore::highestVisuallyEquivalentDiv):
1235         (WebCore::InsertParagraphSeparatorCommand::doApply):
1236
1237 2010-02-04  Dumitru Daniliuc  <dumi@chromium.org>
1238
1239         Reviewed by Eric Seidel.
1240
1241         1. Fix a bug in SQLiteTransaction: do not assume that COMMIT always
1242         succeeds.
1243         2. Jump straight to the transaction error callback when a
1244         statement fails in a way that makes sqlite automatically rollback
1245         the transaction.
1246         3. Fix the code that handles the "quota reached" failure, as it is
1247         one of the failures that lead to an automatic transaction
1248         rollback.
1249
1250         https://bugs.webkit.org/show_bug.cgi?id=34280
1251
1252         * platform/sql/SQLiteDatabase.cpp:
1253         (WebCore::SQLiteDatabase::isAutoCommitOn):
1254         * platform/sql/SQLiteDatabase.h:
1255         * platform/sql/SQLiteTransaction.cpp:
1256         (WebCore::SQLiteTransaction::begin):
1257         (WebCore::SQLiteTransaction::commit):
1258         (WebCore::SQLiteTransaction::rollback):
1259         (WebCore::SQLiteTransaction::transactionWasRolledBackBySqlite):
1260         * platform/sql/SQLiteTransaction.h:
1261         * storage/SQLTransaction.cpp:
1262         (WebCore::SQLTransaction::SQLTransaction):
1263         (WebCore::SQLTransaction::runStatements):
1264         (WebCore::SQLTransaction::runCurrentStatement):
1265         (WebCore::SQLTransaction::handleCurrentStatementError):
1266         (WebCore::SQLTransaction::deliverQuotaIncreaseCallback):
1267
1268 2010-02-04  Peter Kasting  <pkasting@google.com>
1269
1270         Not reviewed, rollback.
1271
1272         Rollback r54387, it doesn't fix builds and Chromium doesn't want this behavior.
1273
1274         * platform/chromium/ScrollbarThemeChromiumMac.h:
1275
1276 2010-02-04  Stephen White  <senorblanco@chromium.org>
1277
1278         Unreviewed, build fix.
1279
1280         Fix for Chromium/Mac after palindromic scrollbar change (54345).
1281
1282         Covered by many layout tests.
1283
1284         * platform/chromium/ScrollbarThemeChromiumMac.h:
1285         (WebCore::ScrollbarThemeChromiumMac::maxOverlapBetweenPages):
1286
1287 2010-02-04  Clemmitt Sigler  <cmsigler@gmail.com>
1288
1289         Reviewed by David Levin.
1290
1291         WebKitGTK doesn't build GtkLauncher when --enable-mathml is specified.
1292         Updated WebCore/GNUmakefile.am to include needed files in build.
1293         
1294         https://bugs.webkit.org/show_bug.cgi?id=34387
1295
1296         No new tests.
1297
1298         * GNUmakefile.am:
1299
1300 2010-02-04  Stephan Aßmus  <superstippi@gmx.de>
1301
1302         Reviewed by David Levin.
1303
1304         Misc coding style fixes in Haiku port code.
1305         https://bugs.webkit.org/show_bug.cgi?id=34527
1306
1307         No tests needed.
1308
1309         * platform/haiku/ContextMenuItemHaiku.cpp: Trailing white space, NULL -> 0
1310         * platform/haiku/DragImageHaiku.cpp: Trailing white space.
1311         * platform/haiku/FileChooserHaiku.cpp: Sorted headers.
1312         * platform/haiku/LocalizedStringsHaiku.cpp: Needed to include NotImplemented.h
1313
1314 2010-02-04  Enrica Casucci  <enrica@apple.com>
1315
1316         Reviewed by Csaba Osztrogonac.
1317
1318         Fixed crash on QT introduced with the fix for
1319         https://bugs.webkit.org/show_bug.cgi?id=34609
1320
1321         The test has been added with the original patch.
1322         
1323         * platform/qt/ClipboardQt.cpp:
1324         (WebCore::ClipboardQt::writePlainText): Added missing allocation of m_writeData.
1325
1326 2010-02-04  Christian Dywan  <christian@twotoasts.de>
1327
1328         Reviewed by Xan Lopez.
1329
1330         Conditionalize third party cookie policy for libsoup 2.29.90.
1331
1332         * platform/network/soup/CookieJarSoup.cpp:
1333         (WebCore::setCookies):
1334         * platform/network/soup/DNSSoup.cpp:
1335         (WebCore::prefetchDNS):
1336         * platform/network/soup/ResourceHandleSoup.cpp:
1337         (WebCore::restartedCallback):
1338         (WebCore::startHttp):
1339         * platform/network/soup/ResourceRequestSoup.cpp:
1340         (WebCore::ResourceRequest::toSoupMessage):
1341         (WebCore::ResourceRequest::updateFromSoupMessage):
1342
1343 2010-02-04  Christian Dywan  <christian@twotoasts.de>
1344
1345         Rubber-stamped by Gustavo Noronha Silva.
1346
1347         Add ENABLE(VIDEO) guards around freeOwnedGPtr<GstElement> implementation.
1348
1349         * platform/gtk/GOwnPtrGtk.cpp:
1350
1351 2010-02-04  Alexey Proskuryakov  <ap@apple.com>
1352
1353         Reviewed by Darin Adler.
1354
1355         Assertion failure in CheckedRadioButtons::removeButton when using jQuery 1.4.1
1356         https://bugs.webkit.org/show_bug.cgi?id=34520
1357
1358         Test: fast/dom/HTMLInputElement/cloned-input-checked-state.html
1359
1360         * dom/Element.cpp: (WebCore::Element::cloneElementWithoutChildren): Copy non-attribute
1361         properties before attributes. Otherwise, copying "checked" attribute would make the cloned
1362         node checked, unchecking original (they share a name, and are thus in the same radio group).
1363         We do want the original to be unchecked, but we also want to know its original state in
1364         HTMLInputElement::copyNonAttributeProperties().
1365
1366         * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::copyNonAttributeProperties):
1367         Use setChecked instead of plain assignment to prevent m_checked getting out of sync with
1368         checkedRadioButtons. Also, copy field related to default checked state, so that m_checked
1369         won't be overridden when copying attributes.
1370
1371 2010-02-04  Kevin Ollivier  <kevino@theolliviers.com>
1372
1373         [wx] Build fix after addition of Clipboard::writePlainText method.
1374
1375         * platform/wx/ClipboardWx.cpp:
1376         (WebCore::ClipboardWx::writePlainText):
1377         * platform/wx/ClipboardWx.h:
1378
1379 2010-02-04  Enrica Casucci  <enrica@apple.com>
1380
1381         Reviewed by Oliver Hunt.
1382
1383         REGRESSION: Dragging plain text into a styled text region does not acquire the correct style info.
1384         <rdar://problem/7595685>
1385         https://bugs.webkit.org/show_bug.cgi?id=34609
1386
1387         Test: editing/pasteboard/drop-inputtext-acquires-style.html
1388
1389         The dragging code did not distinguish the case of dragging the content of an input control
1390         as a special case. The markup placed in the pasteboard included the style information.
1391         I've modified the Clipboard class interface adding a new method writePlainText to match the
1392         behavior of the copy and cut commands and modified the drag code to detect the special case.
1393         I've modified all the platform specific implementations of the Clipboard class.
1394         
1395         * dom/Clipboard.h: Added writePlainText pure virtual function.
1396         * editing/Editor.cpp:
1397         (WebCore::Editor::cut): Renamed nodeIsTextFormControl to isNodeInTextFormControl.
1398         (WebCore::Editor::copy): Renamed nodeIsTextFormControl to isNodeInTextFormControl.
1399         * editing/htmlediting.cpp:
1400         (WebCore::isNodeInTextFormControl): Added, after removing the implementation with the old name
1401         in Editor.cpp
1402         * editing/htmlediting.h:
1403         * page/DragController.cpp:
1404         (WebCore::DragController::startDrag):
1405         * platform/Pasteboard.h:
1406         * platform/android/ClipboardAndroid.cpp:
1407         (WebCore::ClipboardAndroid::writePlainText): Added.
1408         * platform/android/ClipboardAndroid.h:
1409         * platform/chromium/ClipboardChromium.cpp:
1410         (WebCore::ClipboardChromium::writePlainText): Added.
1411         * platform/chromium/ClipboardChromium.h:
1412         * platform/gtk/ClipboardGtk.cpp:
1413         (WebCore::ClipboardGtk::writePlainText): Added.
1414         * platform/gtk/ClipboardGtk.h:
1415         * platform/haiku/ClipboardHaiku.cpp:
1416         (WebCore::ClipboardHaiku::writePlainText): Added.
1417         * platform/haiku/ClipboardHaiku.h:
1418         * platform/mac/ClipboardMac.h:
1419         * platform/mac/ClipboardMac.mm:
1420         (WebCore::ClipboardMac::writePlainText): Added.
1421         * platform/mac/PasteboardMac.mm:
1422         (WebCore::Pasteboard::writePlainText): Added helper function.
1423         * platform/qt/ClipboardQt.cpp:
1424         (WebCore::ClipboardQt::writePlainText): Added.
1425         * platform/qt/ClipboardQt.h:
1426         * platform/win/ClipboardWin.cpp:
1427         (WebCore::ClipboardWin::writePlainText): Added.
1428         * platform/win/ClipboardWin.h:
1429
1430 2010-02-04  Steve Block  <steveblock@google.com>
1431
1432         Reviewed by Nate Chapin.
1433
1434         Fix bug in V8 convertNPVariantToJValue when converting float and double types
1435         https://bugs.webkit.org/show_bug.cgi?id=34593
1436
1437         No new tests, build fix only.
1438
1439         * bridge/jni/v8/JNIUtilityPrivate.cpp: Modified.
1440         (JSC::Bindings::convertNPVariantToJValue): Modified. Use correct members of 'result' enum.
1441
1442 2010-02-04  Chris Guillory  <chris.guillory@google.com>
1443
1444         Reviewed by Darin Fisher.
1445
1446         [Chromium] Notify ChromeClientChromium of AccessibilityObject state
1447         change notifications.
1448         
1449         https://bugs.webkit.org/show_bug.cgi?id=34464
1450
1451         * accessibility/chromium/AXObjectCacheChromium.cpp:
1452         (WebCore::toChromeClientChromium):
1453         (WebCore::AXObjectCache::postPlatformNotification):
1454         * page/chromium/ChromeClientChromium.h:
1455
1456 2010-02-04  Stephen White  <senorblanco@chromium.org>
1457
1458         Unreviewed, build fix for Chromium.
1459
1460         Revert r54341 ("[v8] Remove clear method from DOM object maps"),
1461         since it causes the worker tests to fail on Chromium.
1462
1463         * bindings/v8/DOMData.h:
1464         (WebCore::DOMData::removeObjectsFromWrapperMap):
1465         * bindings/v8/DOMDataStore.h:
1466         (WebCore::ChunkedTable::clear):
1467         (WebCore::ChunkedTable::clearEntries):
1468         (WebCore::DOMDataStore::IntrusiveDOMWrapperMap::clear):
1469         (WebCore::DOMDataStore::IntrusiveDOMWrapperMap::ChunkedTableTraits::clear):
1470         * bindings/v8/V8DOMMap.cpp:
1471         (WebCore::removeAllDOMObjectsInCurrentThreadHelper):
1472         (WebCore::removeAllDOMObjectsInCurrentThread):
1473         * bindings/v8/V8DOMMap.h:
1474         (WebCore::WeakReferenceMap::clear):
1475         * bindings/v8/WorkerScriptController.cpp:
1476         (WebCore::WorkerScriptController::~WorkerScriptController):
1477
1478 2010-02-04  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1479
1480         Reviewed by Xan Lopez.
1481
1482         [GTK] Crashes when an invalid hostname is pre-fetched
1483         https://bugs.webkit.org/show_bug.cgi?id=34602
1484
1485         * platform/network/soup/DNSSoup.cpp:
1486         (WebCore::prefetchDNS): NULL-check the SoupURI that is created
1487         from the hostname; that will happen for invalid hostnames.
1488
1489 2010-02-04  José Millán Soto  <jmillan@igalia.com>
1490
1491         Reviewed by Xan Lopez.
1492
1493         [Gtk] webkitgtk crashed when Orca open
1494         https://bugs.webkit.org/show_bug.cgi?id=34463
1495
1496         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1497         (textForObject):
1498         Checking if render objects are texts before calling toRenderText
1499
1500 2010-02-04  Xan Lopez  <xlopez@igalia.com>
1501
1502         Reviewed by Gustavo Noronha.
1503
1504         Set first party URI in all SoupMessages. This allows libsoup to
1505         implement a "no third party cookies" policy in case it wants
1506         to. Also start a non-JSC-specific, gtk-specific GOwnPtr module and
1507         use it for SoupURI.
1508
1509         * platform/network/soup/CookieJarSoup.cpp:
1510         (WebCore::setCookies):
1511         * platform/network/soup/ResourceHandleSoup.cpp:
1512         (WebCore::restartedCallback):
1513         (WebCore::startHttp):
1514         * platform/network/soup/ResourceRequestSoup.cpp:
1515         (WebCore::ResourceRequest::toSoupMessage):
1516         (WebCore::ResourceRequest::updateFromSoupMessage):
1517
1518 2010-02-04  Pavel Feldman  <pfeldman@chromium.org>
1519
1520         Reviewed by Timothy Hatcher.
1521
1522         Web Inspector: group cookies by domains, not frame's domains.
1523
1524         https://bugs.webkit.org/show_bug.cgi?id=34599
1525
1526         * inspector/front-end/CookieItemsView.js:
1527         (WebInspector.CookieItemsView.prototype._cookiesForDomain):
1528         * inspector/front-end/inspector.js:
1529         (WebInspector.updateResource):
1530         (WebInspector._addCookieDomain):
1531
1532 2010-02-04  Nate Chapin  <japhet@chromium.org>
1533
1534         Reviewed by Dimitri Glazkov.
1535
1536         [V8] Delete V8CustomBinding.h and all references to V8Custom
1537
1538         https://bugs.webkit.org/show_bug.cgi?id=32638
1539
1540         * bindings/v8/NPV8Object.cpp:
1541         * bindings/v8/V8DOMWindowShell.h:
1542         * bindings/v8/V8NPObject.cpp:
1543         * bindings/v8/V8Utilities.cpp:
1544         * bindings/v8/custom/V8AbstractWorkerCustom.cpp:
1545         * bindings/v8/custom/V8AttrCustom.cpp:
1546         * bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp:
1547         * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
1548         * bindings/v8/custom/V8ClipboardCustom.cpp:
1549         * bindings/v8/custom/V8CoordinatesCustom.cpp:
1550         * bindings/v8/custom/V8CustomBinding.h: Removed.
1551         * bindings/v8/custom/V8DOMApplicationCacheCustom.cpp:
1552         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1553         * bindings/v8/custom/V8DataGridColumnListCustom.cpp:
1554         * bindings/v8/custom/V8DatabaseCustom.cpp:
1555         * bindings/v8/custom/V8ElementCustom.cpp:
1556         * bindings/v8/custom/V8EventSourceConstructor.cpp:
1557         * bindings/v8/custom/V8EventSourceCustom.cpp:
1558         * bindings/v8/custom/V8GeolocationCustom.cpp:
1559         * bindings/v8/custom/V8HTMLAllCollectionCustom.cpp:
1560         * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
1561         (WebCore::v8HTMLAudioElementConstructorCallback):
1562         (WebCore::V8HTMLAudioElementConstructor::GetTemplate):
1563         * bindings/v8/custom/V8HTMLCollectionCustom.cpp:
1564         * bindings/v8/custom/V8HTMLDataGridElementCustom.cpp:
1565         * bindings/v8/custom/V8HTMLFrameElementCustom.cpp:
1566         * bindings/v8/custom/V8HTMLIFrameElementCustom.cpp:
1567         * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
1568         (WebCore::v8HTMLImageElementConstructorCallback):
1569         (WebCore::V8HTMLImageElementConstructor::GetTemplate):
1570         * bindings/v8/custom/V8HTMLInputElementCustom.cpp:
1571         * bindings/v8/custom/V8HTMLOptionElementConstructor.cpp:
1572         (WebCore::v8HTMLOptionElementConstructorCallback):
1573         (WebCore::V8HTMLOptionElementConstructor::GetTemplate):
1574         * bindings/v8/custom/V8HTMLPlugInElementCustom.cpp:
1575         * bindings/v8/custom/V8HistoryCustom.cpp:
1576         * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:
1577         * bindings/v8/custom/V8LocationCustom.cpp:
1578         * bindings/v8/custom/V8MessagePortCustom.cpp:
1579         * bindings/v8/custom/V8NodeCustom.cpp:
1580         * bindings/v8/custom/V8NodeFilterCustom.cpp:
1581         * bindings/v8/custom/V8SQLResultSetRowListCustom.cpp:
1582         * bindings/v8/custom/V8SQLTransactionCustom.cpp:
1583         * bindings/v8/custom/V8SVGElementInstanceCustom.cpp:
1584         * bindings/v8/custom/V8SVGLengthCustom.cpp:
1585         * bindings/v8/custom/V8SharedWorkerCustom.cpp:
1586         * bindings/v8/custom/V8StorageCustom.cpp:
1587         * bindings/v8/custom/V8WebGLArrayBufferCustom.cpp:
1588         * bindings/v8/custom/V8WebGLArrayCustom.h:
1589         * bindings/v8/custom/V8WebGLByteArrayCustom.cpp:
1590         * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp:
1591         * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
1592         * bindings/v8/custom/V8WebGLShortArrayCustom.cpp:
1593         * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp:
1594         * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp:
1595         * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp:
1596         * bindings/v8/custom/V8WebKitPointConstructor.cpp:
1597         * bindings/v8/custom/V8WorkerContextCustom.cpp:
1598         * bindings/v8/custom/V8WorkerCustom.cpp:
1599         * bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:
1600         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
1601         * bindings/v8/custom/V8XMLHttpRequestUploadCustom.cpp:
1602
1603 2010-02-04  Ariya Hidayat  <ariya.hidayat@gmail.com>
1604
1605         Reviewed by Simon Hausmann.
1606
1607         [Qt] Unnecessary QBrush construction for doing a solid fill
1608         https://bugs.webkit.org/show_bug.cgi?id=34559
1609
1610         Use the similar trick like r37421, i.e. use the special brush for
1611         solid color to avoid creating QBrush again and again.
1612
1613         * platform/graphics/qt/GraphicsContextQt.cpp:
1614         (WebCore::GraphicsContext::setPlatformFillColor):
1615
1616 2010-02-04  Dan Bernstein  <mitz@apple.com>
1617
1618         Reviewed by Simon Fraser.
1619
1620         REGRESSION (r53718): When scrolling a tall window by page, the overlap between pages is too big
1621         https://bugs.webkit.org/show_bug.cgi?id=34371
1622
1623         Allow ScrollbarTheme to cap the overlap between pages, and set a cap of
1624         40 in ScrollbarThemeMac.
1625
1626         * WebCore.base.exp: Export Scrollbar::maxOverlapBetweenPages().
1627         * editing/EditorCommand.cpp:
1628         (WebCore::verticalScrollDistance): Use Scrollbar methods instead of
1629         constants, and cap the scroll distance if needed.
1630         * platform/ScrollView.cpp:
1631         (WebCore::ScrollView::updateScrollbars): Ditto.
1632         (WebCore::ScrollView::wheelEvent): Ditto.
1633         * platform/Scrollbar.cpp:
1634         (WebCore::Scrollbar::maxOverlapBetweenPages): Added. Returns the
1635         value from the native scrollbar theme.
1636         * platform/Scrollbar.h: Replaced scroll amount constants with static methods.
1637         (WebCore::Scrollbar::pixelsPerLineStep): Replaces cScrollbarPixelsPerLineStep.
1638         (WebCore::Scrollbar::minFractionToStepWhenPaging): Replaces cFractionToStepWhenPaging.
1639         * platform/ScrollbarTheme.h:
1640         (WebCore::ScrollbarTheme::maxOverlapBetweenPages): A base implementation
1641         that returns the largest int.
1642         * platform/gtk/WheelEventGtk.cpp:
1643         (WebCore::PlatformWheelEvent::PlatformWheelEvent): Use Scrollbar methods instead of
1644         constants.
1645         * platform/haiku/PlatformWheelEventHaiku.cpp:
1646         (WebCore::PlatformWheelEvent::PlatformWheelEvent): Use Scrollbar methods instead of
1647         constants.
1648         * platform/mac/ScrollbarThemeMac.h:
1649         (WebCore::ScrollbarThemeMac::maxOverlapBetweenPages): An override
1650         that returns 40.
1651         * platform/mac/WheelEventMac.mm:
1652         (WebCore::PlatformWheelEvent::PlatformWheelEvent): Use
1653         Scrollbar::pixelsPerLineStep() instead of cScrollbarPixelsPerLineStep.
1654         * platform/wx/MouseWheelEventWx.cpp:
1655         (WebCore::PlatformWheelEvent::PlatformWheelEvent): Use Scrollbar methods instead of
1656         constants.
1657         * platform/wx/ScrollViewWx.cpp:
1658         (WebCore::ScrollView::ScrollViewPrivate::OnScrollWinEvents): Use Scrollbar
1659         methods instead of constants, and cap the scroll distance if needed.
1660         * rendering/RenderLayer.cpp:
1661         (WebCore::RenderLayer::updateScrollInfoAfterLayout): Ditto.
1662
1663 2010-02-04  No'am Rosenthal  <noam.rosenthal@nokia.com>
1664
1665         Reviewed by Ariya Hidayat.
1666
1667         [Qt] Tuning and optimizations to GraphicsLayerQt. Reduce unnecessary
1668         recaching, remove QTimer::singleShot and QPixmap::scaled, more
1669         accurate strategy of handling transform operation blends. Rotating a
1670         bordered-table, for example, now runs at 50FPS instead of 40FPS on Maemo5.
1671
1672         https://bugs.webkit.org/show_bug.cgi?id=34062
1673
1674         This is tested by https://bugs.webkit.org/show_bug.cgi?id=34450, fps measurements.
1675
1676         * platform/graphics/qt/GraphicsLayerQt.cpp:
1677         (WebCore::GraphicsLayerQtImpl::flushChanges): Fine-tune caching
1678         (WebCore::TransformAnimationQt::TransformAnimationQt): transform bugs
1679         (WebCore::OpacityAnimationQt::updateState): style change
1680
1681 2010-02-04  Pavel Feldman  <pfeldman@chromium.org>
1682
1683         Reviewed by Timothy Hatcher.
1684
1685         Web Inspector: Cookies for resources are not shown in storage panel.
1686
1687         https://bugs.webkit.org/show_bug.cgi?id=34594
1688
1689         * inspector/InspectorController.cpp:
1690         (WebCore::InspectorController::getCookies):
1691         * inspector/InspectorResource.cpp:
1692         (WebCore::InspectorResource::updateScriptObject):
1693         (WebCore::InspectorResource::cachedResource):
1694         * inspector/InspectorResource.h:
1695         (WebCore::InspectorResource::requestURL):
1696
1697 2010-02-04  Anton Muhin  <antonm@chromium.org>
1698
1699         Reviewed by Adam Barth.
1700
1701         [v8] Remove clear method from DOM object maps
1702         https://bugs.webkit.org/show_bug.cgi?id=34530
1703
1704         No new tests. Should be covered by existent testing infrastructure.
1705
1706         * bindings/v8/DOMData.h:
1707         * bindings/v8/DOMDataStore.h:
1708         * bindings/v8/V8DOMMap.cpp:
1709         * bindings/v8/V8DOMMap.h:
1710         * bindings/v8/WorkerScriptController.cpp:
1711         (WebCore::WorkerScriptController::~WorkerScriptController):
1712
1713 2010-02-04  Holger Hans Peter Freyther  <zecke@selfish.org>
1714
1715         Reviewed by Xan Lopez.
1716
1717         [Gtk] Check if the renderer() exists in textForObject.
1718
1719         This is fixing a crash in the textForObject method. It can
1720         happen when inspecting AtkObjects in the accerciser, then
1721         navigating to a new page and still inspecting the old tree.
1722
1723         In this case the AccessibilityObjectWrapperAtk was still
1724         valid but the included renderer() was returning 0. Add a
1725         check for the accObject->renderer() before trying to use
1726         the result.
1727
1728         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1729         (textForObject):
1730
1731 2010-02-04  Yury Semikhatsky  <yurys@chromium.org>
1732
1733         Reviewed by Pavel Feldman.
1734
1735         Provide strongly typed C++ interface for inspector's injected script.
1736
1737         https://bugs.webkit.org/show_bug.cgi?id=33616
1738
1739         * GNUmakefile.am:
1740         * WebCore.gypi:
1741         * WebCore.pro:
1742         * WebCore.vcproj/WebCore.vcproj:
1743         * WebCore.xcodeproj/project.pbxproj:
1744         * bindings/js/JSInjectedScriptHostCustom.cpp:
1745         (WebCore::InjectedScriptHost::injectedScriptFor):
1746         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
1747         (WebCore::InjectedScriptHost::injectedScriptFor):
1748         * inspector/InjectedScript.cpp: Added.
1749         (WebCore::InjectedScript::InjectedScript):
1750         (WebCore::InjectedScript::dispatch):
1751         (WebCore::InjectedScript::callFrames):
1752         (WebCore::InjectedScript::wrapAndStringifyForConsole):
1753         (WebCore::InjectedScript::releaseWrapperObjectGroup):
1754         * inspector/InjectedScript.h: Added.
1755         (WebCore::InjectedScript::InjectedScript):
1756         (WebCore::InjectedScript::~InjectedScript):
1757         (WebCore::InjectedScript::hasNoValue):
1758         * inspector/InjectedScriptHost.cpp:
1759         (WebCore::InjectedScriptHost::injectedScriptForId):
1760         (WebCore::InjectedScriptHost::releaseWrapperObjectGroup):
1761         * inspector/InjectedScriptHost.h:
1762         * inspector/InspectorBackend.cpp:
1763         (WebCore::InspectorBackend::dispatchOnInjectedScript):
1764         * inspector/InspectorController.cpp:
1765         (WebCore::InspectorController::InspectorController):
1766         (WebCore::InspectorController::~InspectorController):
1767         (WebCore::InspectorController::inspectedPageDestroyed):
1768         (WebCore::InspectorController::windowScriptObjectAvailable):
1769         (WebCore::InspectorController::scriptObjectReady):
1770         (WebCore::InspectorController::setFrontendProxyObject):
1771         (WebCore::InspectorController::close):
1772         (WebCore::InspectorController::getProfile):
1773         (WebCore::InspectorController::enableDebugger):
1774         (WebCore::InspectorController::didPause):
1775         (WebCore::InspectorController::injectedScriptForNodeId):
1776         * inspector/InspectorController.h:
1777         (WebCore::InspectorController::frontendScriptState):
1778         * inspector/InspectorFrontend.cpp:
1779         (WebCore::InspectorFrontend::addConsoleMessage):
1780         * inspector/front-end/InjectedScript.js:
1781         (injectedScriptConstructor):
1782
1783 2010-02-04  Philippe Normand  <pnormand@igalia.com>
1784
1785         Rubber stamped by Xan Lopez.
1786
1787         Missing include, build fix after landing of patch from the bug 34435.
1788
1789         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
1790
1791 2010-02-02  Philippe Normand  <pnormand@igalia.com>
1792
1793         Reviewed by Gustavo Noronha Silva.
1794
1795         [Gtk] libsoup critical warning in media player http cookies injection code
1796         https://bugs.webkit.org/show_bug.cgi?id=34435
1797
1798         Fixed the critical warning and refactored the
1799         User-Agent/Referer/cookies injection code, in that order. Previous
1800         order (cookies first) was wrong because if cookies injection could
1801         not be done neither the User-Agent nor Referer were injected. Also
1802         started a non-JSC-specific, gtk-specific GOwnPtr module.
1803
1804         * GNUmakefile.am:
1805         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
1806         (WebCore::mediaPlayerPrivateSourceChangedCallback):
1807         * platform/gtk/GOwnPtrGtk.cpp: Added.
1808         (WTF::SoupURI):
1809         (WTF::GstElement):
1810         * platform/gtk/GOwnPtrGtk.h: Added.
1811
1812 2010-02-04  Mikhail Naganov  <mnaganov@chromium.org>
1813
1814         Reviewed by Timothy Hatcher.
1815
1816         Put JSC-specific debugger & profiler code under "USE(JSC)" defines.
1817         The plan is to enable "JAVASCRIPT_DEBUGGER" in Chromium and then
1818         make this code engine-agnostic.
1819
1820         https://bugs.webkit.org/show_bug.cgi?id=34531
1821
1822         * inspector/InjectedScriptHost.cpp:
1823         * inspector/InjectedScriptHost.h:
1824         * inspector/InspectorBackend.cpp:
1825         * inspector/InspectorBackend.h:
1826         * inspector/InspectorController.cpp:
1827         (WebCore::InspectorController::InspectorController):
1828         (WebCore::InspectorController::setWindowVisible):
1829         (WebCore::InspectorController::scriptObjectReady):
1830         (WebCore::InspectorController::close):
1831         (WebCore::InspectorController::didCommitLoad):
1832         * inspector/InspectorController.h:
1833         * inspector/InspectorFrontend.cpp:
1834         * inspector/InspectorFrontend.h:
1835         * inspector/JavaScriptCallFrame.cpp:
1836         * inspector/JavaScriptCallFrame.h:
1837         * inspector/JavaScriptDebugListener.h:
1838         * inspector/JavaScriptDebugServer.cpp:
1839         * inspector/JavaScriptDebugServer.h:
1840         * inspector/JavaScriptProfile.cpp:
1841         * inspector/JavaScriptProfile.h:
1842         * inspector/JavaScriptProfileNode.cpp:
1843         * inspector/JavaScriptProfileNode.h:
1844         * loader/FrameLoader.cpp:
1845         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
1846         * page/Page.cpp:
1847         (WebCore::Page::Page):
1848
1849 2010-02-03  Nicholas Young  <nicholas.young@nokia.com>
1850
1851         Reviewed by Eric Carlson.
1852
1853         Defer formatting of times displayed on media controls to the current theme.
1854         https://bugs.webkit.org/show_bug.cgi?id=34405
1855
1856         No new tests needed. Refactoring Only.
1857
1858         * rendering/MediaControlElements.cpp: Removed formatTime()
1859         (WebCore::MediaControlTimeDisplayElement::setCurrentValue): No longer sets inner text
1860         * rendering/MediaControlElements.h:
1861         * rendering/RenderMedia.cpp:
1862         (WebCore::RenderMedia::updateTimeDisplay): Asks the theme to format the time display elements
1863         * rendering/RenderTheme.cpp:
1864         (WebCore::RenderTheme::formatMediaControlsTime): new virtual method
1865         (WebCore::RenderTheme::formatMediaControlsCurrentTime): new virtual method
1866         (WebCore::RenderTheme::formatMediaControlsRemainingTime): new virtual method
1867         * rendering/RenderTheme.h:
1868
1869 2010-02-03  Steve Falkenburg  <sfalken@apple.com>
1870
1871         Windows Debug_All build fix.
1872
1873         * platform/graphics/win/WKCACFLayer.cpp:
1874
1875 2010-02-03  Brady Eidson  <beidson@apple.com>
1876
1877         Reviewed by Alexey Proskuryakov.
1878
1879         REGRESSION (r51644): WebCore/manual-tests/linkjump-1.html fails
1880         <rdar://problem/7595694> and https://bugs.webkit.org/show_bug.cgi?id=34550
1881
1882         Tests: fast/loader/document-with-fragment-url-1.html
1883                fast/loader/document-with-fragment-url-2.html
1884                fast/loader/document-with-fragment-url-3.html
1885                fast/loader/document-with-fragment-url-4.html
1886
1887         * platform/KURL.cpp:
1888         (WebCore::KURL::init): When resolving new URL from an empty reference relative to an absolute URL,
1889           any fragment identifier from the absolute URL should be removed from the resulting resolution.
1890
1891 2010-02-03  Kwang Yul Seo  <skyul@company100.net>
1892
1893         Reviewed by Eric Seidel.
1894
1895         [BREWMP] Port TextBreakIteratorInternalICU
1896         https://bugs.webkit.org/show_bug.cgi?id=34515
1897
1898         Port TextBreakIteratorInternalICU.
1899
1900         * platform/text/brew/TextBreakIteratorInternalICUBrew.cpp: Added.
1901         (WebCore::currentSearchLocaleID):
1902         (WebCore::currentTextBreakLocaleID):
1903
1904 2010-02-03  Adele Peterson  <adele@apple.com>
1905
1906         Reviewed by Simon Fraser.
1907
1908         Fix for <rdar://problem/7594212> 
1909         https://bugs.webkit.org/show_bug.cgi?id=34549 - CSS counters crash at http://www.w3.org/TR/css3-content/
1910         CrashTracer: [USER] 20 crashes in Safari at com.apple.WebCore: WebCore::CounterNode::insertAfter + 319
1911
1912         Test: fast/css/counters/counter-before-selector-crash.html
1913
1914         * rendering/RenderCounter.cpp: (WebCore::updateCounters): nil check.
1915
1916 2010-02-03  Adele Peterson  <adele@apple.com>
1917
1918         Reviewed by Brady Eidson.
1919
1920         Initialize the variable in the last checkin to false.  I didn't realize DRT relies on this being false.  
1921         So ports that want visited link tracking need to set that flag.
1922
1923         * page/PageGroup.cpp:
1924
1925 2010-02-03  Adele Peterson  <adele@apple.com>
1926
1927         Reviewed by Brady Eidson.
1928
1929         Fix for https://bugs.webkit.org/show_bug.cgi?id=34547
1930         static shouldTrackVisitedLinks is not initialized
1931
1932         For ports that don't call into WebKit to initialize this, 
1933         we should initialize to true so they get the visited link behavior by default.
1934
1935         * page/PageGroup.cpp:
1936
1937 2010-02-03  Dan Bernstein  <mitz@apple.com>
1938
1939         Reviewed by Simon Fraser.
1940
1941         <rdar://problem/7577604> Drag and Drop: background elements are bleeding through
1942         https://bugs.webkit.org/show_bug.cgi?id=34546
1943
1944         * manual-tests/drag-image-table-part-decorations.html: Added.
1945         * rendering/RenderFieldset.cpp:
1946         (WebCore::RenderFieldset::paintBoxDecorations): Bail out if this object shouldn’t
1947         paint within the current painting root.
1948         * rendering/RenderTable.cpp:
1949         (WebCore::RenderTable::paintBoxDecorations): Ditto.
1950         * rendering/RenderTableCell.cpp:
1951         (WebCore::RenderTableCell::paintBackgroundsBehindCell): Ditto.
1952         (WebCore::RenderTableCell::paintBoxDecorations): Ditto.
1953
1954 2010-02-03  Nate Chapin  <japhet@chromium.org>
1955
1956         Unreviewed, Chromium mac build fix.
1957
1958         [V8] Remove unused V8Proxy* variable from generated wrapping code.
1959
1960         * bindings/scripts/CodeGeneratorV8.pm:
1961
1962 2010-02-03  Nate Chapin  <japhet@chromium.org>
1963
1964         Reviewed by Dimitri Glazkov.
1965
1966         [V8] Use toV8() to wrap in the custom bindings, and remove
1967         the old wrapping code from V8DOMWrapper.
1968         
1969         https://bugs.webkit.org/show_bug.cgi?id=32563
1970
1971         * bindings/scripts/CodeGeneratorV8.pm:
1972         * bindings/v8/ScriptController.cpp:
1973         * bindings/v8/ScriptObject.cpp:
1974         * bindings/v8/V8AbstractEventListener.cpp:
1975         * bindings/v8/V8Collection.h:
1976         * bindings/v8/V8DOMWindowShell.cpp:
1977         * bindings/v8/V8DOMWrapper.cpp:
1978         * bindings/v8/V8DOMWrapper.h:
1979         * bindings/v8/V8NodeFilterCondition.cpp:
1980         * bindings/v8/V8Proxy.cpp:
1981         * bindings/v8/WorkerContextExecutionProxy.h
1982         * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
1983         * bindings/v8/custom/V8CustomPositionCallback.cpp:
1984         * bindings/v8/custom/V8CustomPositionErrorCallback.cpp:
1985         * bindings/v8/custom/V8CustomSQLStatementCallback.cpp:
1986         * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
1987         * bindings/v8/custom/V8CustomSQLTransactionCallback.cpp:
1988         * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp:
1989         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1990         * bindings/v8/custom/V8DataGridColumnListCustom.cpp:
1991         * bindings/v8/custom/V8DocumentCustom.cpp:
1992         * bindings/v8/custom/V8DocumentLocationCustom.cpp:
1993         * bindings/v8/custom/V8ElementCustom.cpp:
1994         * bindings/v8/custom/V8EventCustom.cpp:
1995         * bindings/v8/custom/V8HTMLAllCollectionCustom.cpp:
1996         * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
1997         * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
1998         * bindings/v8/custom/V8HTMLCollectionCustom.cpp:
1999         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
2000         * bindings/v8/custom/V8HTMLFormElementCustom.cpp:
2001         * bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp:
2002         * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
2003         * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
2004         * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
2005         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
2006         * bindings/v8/custom/V8MessageChannelConstructor.cpp:
2007         * bindings/v8/custom/V8MessageEventCustom.cpp:
2008         * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
2009         * bindings/v8/custom/V8NodeIteratorCustom.cpp:
2010         * bindings/v8/custom/V8NodeListCustom.cpp:
2011         * bindings/v8/custom/V8NotificationCenterCustom.cpp:
2012         * bindings/v8/custom/V8SVGMatrixCustom.cpp:
2013         * bindings/v8/custom/V8StyleSheetListCustom.cpp:
2014         * bindings/v8/custom/V8TreeWalkerCustom.cpp:
2015         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
2016         * bindings/v8/custom/V8XSLTProcessorCustom.cpp:
2017
2018 2010-02-03  Sam Weinig  <sam@webkit.org>
2019
2020         Reviewed by Anders Carlsson.
2021
2022         Fix drawing buttons in viewless WebKit.
2023
2024         * platform/mac/ThemeMac.mm:
2025         (WebCore::paintButton): If there is no view, make sure to flip the
2026         context so that the button is drawn correctly.
2027
2028 2010-02-03  Yael Aharon  <yael.aharon@nokia.com>
2029
2030         Reviewed by Kenneth Rohde Christiansen.
2031
2032         [Qt] WebSockets : Buffer the data in WebKit instead of QtNetwork
2033         https://bugs.webkit.org/show_bug.cgi?id=34425
2034
2035         Reverting r54279, it was a misunderstanding.
2036
2037         * platform/network/qt/SocketStreamHandlePrivate.h:
2038         * platform/network/qt/SocketStreamHandleQt.cpp:
2039         (WebCore::SocketStreamHandlePrivate::SocketStreamHandlePrivate):
2040         (WebCore::SocketStreamHandlePrivate::send):
2041         (WebCore::SocketStreamHandlePrivate::close):
2042
2043 2010-02-03  Drew Wilson  <atwilson@chromium.org>
2044
2045         Reviewed by Alexey Proskuryakov.
2046
2047         SharedWorkerScriptLoader should not be an ActiveDOMObject
2048         https://bugs.webkit.org/show_bug.cgi?id=34513
2049
2050         Test: Existing tests suffice (fixes test downstream in Chrome).
2051
2052         * workers/DefaultSharedWorkerRepository.cpp:
2053         (WebCore::SharedWorkerScriptLoader::SharedWorkerScriptLoader):
2054         Changed to no longer derive from ActiveDOMObject (handles its own refcounting).
2055         (WebCore::SharedWorkerScriptLoader::load):
2056         Now increments own refcount when a load is pending.
2057         (WebCore::SharedWorkerScriptLoader::notifyFinished):
2058         Changed to decrement refcount when load is complete.
2059         * workers/WorkerScriptLoaderClient.h:
2060         Documentation change about reliability of notifyFinished() when used from worker context.
2061
2062 2010-02-03  Pavel Feldman  <pfeldman@chromium.org>
2063
2064         Reviewed by Timothy Hatcher.
2065
2066         Web Inspector: Inspector renders blank scripts on reloading the webpage.
2067
2068         https://bugs.webkit.org/show_bug.cgi?id=34537
2069
2070         * inspector/front-end/ResourcesPanel.js:
2071         (WebInspector.ResourcesPanel.prototype.recreateViewForResourceIfNeeded):
2072
2073 2010-02-03  Yury Semikhatsky  <yurys@chromium.org>
2074
2075         Reviewed by Pavel Feldman.
2076
2077         Provide strongly typed C++ interface for inspector's injected script.
2078
2079         https://bugs.webkit.org/show_bug.cgi?id=33616
2080
2081         * WebCore.gypi:
2082         * WebCore.pro:
2083         * WebCore.vcproj/WebCore.vcproj:
2084         * WebCore.xcodeproj/project.pbxproj:
2085         * bindings/js/JSInjectedScriptHostCustom.cpp:
2086         (WebCore::InjectedScriptHost::injectedScriptFor):
2087         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
2088         (WebCore::InjectedScriptHost::injectedScriptFor):
2089         * inspector/InjectedScript.cpp: Added.
2090         (WebCore::InjectedScript::InjectedScript):
2091         (WebCore::InjectedScript::dispatch):
2092         (WebCore::InjectedScript::callFrames):
2093         (WebCore::InjectedScript::wrapAndStringify):
2094         (WebCore::InjectedScript::releaseWrapperObjectGroup):
2095         * inspector/InjectedScript.h: Added.
2096         (WebCore::InjectedScript::InjectedScript):
2097         (WebCore::InjectedScript::~InjectedScript):
2098         (WebCore::InjectedScript::hasNoValue):
2099         * inspector/InjectedScriptHost.cpp:
2100         (WebCore::InjectedScriptHost::injectedScriptForId):
2101         (WebCore::InjectedScriptHost::releaseWrapperObjectGroup):
2102         * inspector/InjectedScriptHost.h:
2103         * inspector/InspectorBackend.cpp:
2104         (WebCore::InspectorBackend::dispatchOnInjectedScript):
2105         * inspector/InspectorController.cpp:
2106         (WebCore::InspectorController::InspectorController):
2107         (WebCore::InspectorController::~InspectorController):
2108         (WebCore::InspectorController::inspectedPageDestroyed):
2109         (WebCore::InspectorController::windowScriptObjectAvailable):
2110         (WebCore::InspectorController::scriptObjectReady):
2111         (WebCore::InspectorController::setFrontendProxyObject):
2112         (WebCore::InspectorController::close):
2113         (WebCore::InspectorController::getProfile):
2114         (WebCore::InspectorController::enableDebugger):
2115         (WebCore::InspectorController::didPause):
2116         (WebCore::InspectorController::injectedScriptForNodeId):
2117         * inspector/InspectorController.h:
2118         (WebCore::InspectorController::frontendScriptState):
2119         * inspector/InspectorFrontend.cpp:
2120         (WebCore::InspectorFrontend::addConsoleMessage):
2121
2122 2010-02-03  Andras Becsi  <abecsi@webkit.org>
2123
2124         Unreviewed build fix.
2125
2126         [Qt] Roll-out r54281 because it broke the build on the Qt Release bot.
2127
2128         * platform/graphics/qt/GraphicsLayerQt.cpp:
2129         (WebCore::GraphicsLayerQtImpl::State::State):
2130         (WebCore::GraphicsLayerQtImpl::GraphicsLayerQtImpl):
2131         (WebCore::GraphicsLayerQtImpl::setBaseTransform):
2132         (WebCore::GraphicsLayerQtImpl::drawContents):
2133         (WebCore::GraphicsLayerQtImpl::notifyChange):
2134         (WebCore::GraphicsLayerQtImpl::flushChanges):
2135         (WebCore::GraphicsLayerQt::setNeedsDisplayInRect):
2136         (WebCore::applyTimingFunction):
2137         (WebCore::webkitAnimationToQtAnimationValue):
2138         (WebCore::AnimationQtBase::updateState):
2139         (WebCore::AnimationQt::updateCurrentTime):
2140         (WebCore::TransformAnimationQt::TransformAnimationQt):
2141         (WebCore::TransformAnimationQt::~TransformAnimationQt):
2142         (WebCore::TransformAnimationQt::applyFrame):
2143         (WebCore::TransformAnimationQt::updateState):
2144         (WebCore::OpacityAnimationQt::updateState):
2145         (WebCore::GraphicsLayerQt::pauseAnimation):
2146
2147 2010-02-02  Bryan Yeung  <bryeung@google.com>
2148
2149         Reviewed by Darin Adler.
2150
2151         Avoid using an invalidated KURL object in baseURI.
2152
2153         https://bugs.webkit.org/show_bug.cgi?id=34492
2154
2155         This change fixes baseURI for Chromium (where the KURL implementation
2156         does not allow invalid KURLs to carry relative paths).  This is
2157         regression tested by
2158         LayoutTests/svg/W3C-SVG-1.1/struct-image-07-t.svg
2159
2160         This is a re-application of this patch since it was mistakenly identified as
2161         the cause of a big chromium test regression and rolled out in r54264.
2162
2163         * dom/Element.cpp:
2164         (WebCore::Element::baseURI):
2165
2166 2010-02-02  Joel Stanley  <joel@jms.id.au>
2167
2168         Reviewed by David Levin.
2169
2170         [Chromium] Make setCaretBlinkInterval static.
2171         https://bugs.webkit.org/show_bug.cgi?id=31704
2172
2173         This is so it can be called from the newly exposed Chromium API setter
2174         method.
2175
2176         * rendering/RenderThemeChromiumLinux.cpp:
2177         * rendering/RenderThemeChromiumLinux.h:
2178
2179 2010-02-02  Yael Aharon  <yael.aharon@nokia.com>
2180
2181         Reviewed by Kenneth Rohde Christiansen.
2182
2183         [Qt] WebSockets : Buffer the data in WebKit instead of QtNetwork
2184         https://bugs.webkit.org/show_bug.cgi?id=34425
2185
2186         Buffer the sent data in SocketStreamHandlePrivate instead of relying on
2187         the network layer to do it. This is more robust and more consistent with how 
2188         Qt's HTTP stack works.
2189         Close the socket in SocketStreamHandlePrivate::close() regardless of its state.
2190
2191         No new tests, since no new functionality is introduced.
2192
2193         * platform/network/qt/SocketStreamHandlePrivate.h:
2194         * platform/network/qt/SocketStreamHandleQt.cpp:
2195         (WebCore::SocketStreamHandlePrivate::SocketStreamHandlePrivate):
2196         (WebCore::SocketStreamHandlePrivate::send):
2197         (WebCore::SocketStreamHandlePrivate::close):
2198         (WebCore::SocketStreamHandlePrivate::socketBytesWritten):
2199
2200 2010-02-03  Shinichiro Hamaji  <hamaji@chromium.org>
2201
2202         Unreviewed revert of r54259 as it seems to break chromium's unit tests.
2203         The tests pass with r54257 but fail with r54260.
2204         As r54258 and r54260 don't touch code, I'm reverting this change.
2205
2206         [V8] Generate toV8 conversion helpers, a la JSC bindings.
2207         https://bugs.webkit.org/show_bug.cgi?id=32563
2208
2209         * bindings/v8/ScriptController.cpp:
2210         (WebCore::ScriptController::processingUserGesture):
2211         (WebCore::createScriptObject):
2212         (WebCore::ScriptController::createScriptObjectForPluginElement):
2213         * bindings/v8/ScriptObject.cpp:
2214         (WebCore::ScriptGlobalObject::set):
2215         * bindings/v8/V8AbstractEventListener.cpp:
2216         (WebCore::V8AbstractEventListener::handleEvent):
2217         * bindings/v8/V8Collection.h:
2218         (WebCore::getV8Object):
2219         (WebCore::toNativeCollection):
2220         (WebCore::getNamedPropertyOfCollection):
2221         (WebCore::collectionNamedPropertyGetter):
2222         (WebCore::getIndexedPropertyOfCollection):
2223         (WebCore::collectionIndexedPropertyGetter):
2224         (WebCore::nodeCollectionIndexedPropertyEnumerator):
2225         (WebCore::collectionIndexedPropertyEnumerator):
2226         (WebCore::collectionStringOrNullIndexedPropertyGetter):
2227         (WebCore::collectionStringIndexedPropertyGetter):
2228         (WebCore::setCollectionIndexedGetter):
2229         (WebCore::setCollectionNamedGetter):
2230         (WebCore::setCollectionStringOrNullIndexedGetter):
2231         (WebCore::setCollectionStringIndexedGetter):
2232         * bindings/v8/V8DOMWindowShell.cpp:
2233         (WebCore::V8DOMWindowShell::updateDocumentWrapperCache):
2234         * bindings/v8/V8DOMWrapper.cpp:
2235         (WebCore::downcastSVGPathSeg):
2236         (WebCore::V8DOMWrapper::convertSVGElementInstanceToV8Object):
2237         (WebCore::V8DOMWrapper::convertSVGObjectWithContextToV8Object):
2238         (WebCore::V8DOMWrapper::convertToV8Object):
2239         (WebCore::V8DOMWrapper::instantiateV8Object):
2240         (WebCore::V8DOMWrapper::isDOMEventWrapper):
2241         (WebCore::V8DOMWrapper::htmlElementType):
2242         (WebCore::V8DOMWrapper::svgElementType):
2243         (WebCore::V8DOMWrapper::convertEventToV8Object):
2244         (WebCore::):
2245         (WebCore::V8DOMWrapper::convertDocumentToV8Object):
2246         (WebCore::V8DOMWrapper::convertNodeToV8Object):
2247         (WebCore::V8DOMWrapper::convertNewNodeToV8Object):
2248         (WebCore::V8DOMWrapper::convertEventListenerToV8Object):
2249         (WebCore::V8DOMWrapper::convertDOMImplementationToV8Object):
2250         (WebCore::V8DOMWrapper::convertStyleSheetToV8Object):
2251         (WebCore::V8DOMWrapper::convertCSSValueToV8Object):
2252         (WebCore::V8DOMWrapper::convertCSSRuleToV8Object):
2253         (WebCore::V8DOMWrapper::convertWindowToV8Object):
2254         (WebCore::V8DOMWrapper::convertNamedNodeMapToV8Object):
2255         * bindings/v8/V8DOMWrapper.h:
2256         (WebCore::V8DOMWrapper::convertToV8Object):
2257         (WebCore::V8DOMWrapper::convertNodeToV8Object):
2258         (WebCore::V8DOMWrapper::convertNewNodeToV8Object):
2259         (WebCore::V8DOMWrapper::convertEventToV8Object):
2260         (WebCore::V8DOMWrapper::convertEventListenerToV8Object):
2261         (WebCore::V8DOMWrapper::instantiateV8Object):
2262         * bindings/v8/V8NodeFilterCondition.cpp:
2263         (WebCore::V8NodeFilterCondition::acceptNode):
2264         * bindings/v8/V8Proxy.cpp:
2265         (WebCore::V8Proxy::setDOMException):
2266         * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
2267         (WebCore::toV8Object):
2268         (WebCore::V8CanvasRenderingContext2D::createPatternCallback):
2269         * bindings/v8/custom/V8CustomPositionCallback.cpp:
2270         (WebCore::V8CustomPositionCallback::handleEvent):
2271         * bindings/v8/custom/V8CustomPositionErrorCallback.cpp:
2272         (WebCore::V8CustomPositionErrorCallback::handleEvent):
2273         * bindings/v8/custom/V8CustomSQLStatementCallback.cpp:
2274         (WebCore::V8CustomSQLStatementCallback::handleEvent):
2275         * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
2276         (WebCore::V8CustomSQLStatementErrorCallback::handleEvent):
2277         * bindings/v8/custom/V8CustomSQLTransactionCallback.cpp:
2278         (WebCore::V8CustomSQLTransactionCallback::handleEvent):
2279         * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp:
2280         (WebCore::V8CustomSQLTransactionErrorCallback::handleEvent):
2281         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2282         (WebCore::V8DOMWindow::openCallback):
2283         (WebCore::V8DOMWindow::indexedPropertyGetter):
2284         (WebCore::V8DOMWindow::namedPropertyGetter):
2285         * bindings/v8/custom/V8DataGridColumnListCustom.cpp:
2286         (WebCore::NAMED_PROPERTY_GETTER):
2287         * bindings/v8/custom/V8DocumentCustom.cpp:
2288         (WebCore::V8Document::evaluateCallback):
2289         (WebCore::V8Document::getCSSCanvasContextCallback):
2290         (WebCore::V8Document::implementationAccessorGetter):
2291         * bindings/v8/custom/V8DocumentLocationCustom.cpp:
2292         (WebCore::V8Document::locationAccessorGetter):
2293         * bindings/v8/custom/V8ElementCustom.cpp:
2294         (WebCore::V8Element::setAttributeNodeCallback):
2295         (WebCore::V8Element::setAttributeNodeNSCallback):
2296         * bindings/v8/custom/V8EventCustom.cpp:
2297         (WebCore::V8Event::dataTransferAccessorGetter):
2298         (WebCore::V8Event::clipboardDataAccessorGetter):
2299         * bindings/v8/custom/V8HTMLAllCollectionCustom.cpp:
2300         (WebCore::getNamedItems):
2301         (WebCore::getItem):
2302         (WebCore::V8HTMLAllCollection::callAsFunctionCallback):
2303         * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
2304         (WebCore::V8Custom::v8HTMLAudioElementConstructorCallback):
2305         * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
2306         (WebCore::V8HTMLCanvasElement::getContextCallback):
2307         * bindings/v8/custom/V8HTMLCollectionCustom.cpp:
2308         (WebCore::getNamedItems):
2309         (WebCore::getItem):
2310         (WebCore::V8HTMLCollection::callAsFunctionCallback):
2311         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
2312         (WebCore::V8HTMLDocument::namedPropertyGetter):
2313         (WebCore::V8HTMLDocument::allAccessorGetter):
2314         * bindings/v8/custom/V8HTMLFormElementCustom.cpp:
2315         (WebCore::V8HTMLFormElement::indexedPropertyGetter):
2316         (WebCore::V8HTMLFormElement::namedPropertyGetter):
2317         * bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp:
2318         (WebCore::V8HTMLFrameSetElement::namedPropertyGetter):
2319         * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
2320         (WebCore::V8Custom::v8HTMLImageElementConstructorCallback):
2321         * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
2322         (WebCore::V8HTMLOptionsCollection::indexedPropertyGetter):
2323         * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
2324         (WebCore::V8HTMLSelectElement::namedPropertyGetter):
2325         (WebCore::V8HTMLSelectElement::indexedPropertyGetter):
2326         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
2327         (WebCore::createInjectedScript):
2328         (WebCore::V8InjectedScriptHost::nodeForIdCallback):
2329         (WebCore::V8InjectedScriptHost::databaseForIdCallback):
2330         * bindings/v8/custom/V8MessageChannelConstructor.cpp:
2331         (WebCore::V8MessageChannel::constructorCallback):
2332         * bindings/v8/custom/V8MessageEventCustom.cpp:
2333         (WebCore::V8MessageEvent::portsAccessorGetter):
2334         * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
2335         (WebCore::V8NamedNodeMap::indexedPropertyGetter):
2336         (WebCore::V8NamedNodeMap::namedPropertyGetter):
2337         * bindings/v8/custom/V8NodeIteratorCustom.cpp:
2338         (WebCore::toV8):
2339         * bindings/v8/custom/V8NodeListCustom.cpp:
2340         (WebCore::V8NodeList::namedPropertyGetter):
2341         (WebCore::V8NodeList::callAsFunctionCallback):
2342         * bindings/v8/custom/V8NotificationCenterCustom.cpp:
2343         (WebCore::V8NotificationCenter::createHTMLNotificationCallback):
2344         (WebCore::V8NotificationCenter::createNotificationCallback):
2345         * bindings/v8/custom/V8SVGMatrixCustom.cpp:
2346         (WebCore::V8SVGMatrix::multiplyCallback):
2347         (WebCore::V8SVGMatrix::inverseCallback):
2348         (WebCore::V8SVGMatrix::rotateFromVectorCallback):
2349         * bindings/v8/custom/V8StyleSheetListCustom.cpp:
2350         (WebCore::V8StyleSheetList::namedPropertyGetter):
2351         * bindings/v8/custom/V8TreeWalkerCustom.cpp:
2352         (WebCore::toV8Object):
2353         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
2354         (WebCore::toV8Object):
2355         * bindings/v8/custom/V8XSLTProcessorCustom.cpp:
2356         (WebCore::V8XSLTProcessor::transformToFragmentCallback):
2357         (WebCore::V8XSLTProcessor::transformToDocumentCallback):
2358
2359 2010-02-03  Mikhail Naganov  <mnaganov@chromium.org>
2360
2361         Reviewed by Pavel Feldman.
2362
2363         Start unforking debugger and profiler code.
2364
2365         Remove custom implementation of Console.
2366         Add 'ScriptProfiler' and 'ScriptProfile' types.
2367         Start migration to engine-neutral types in InspectorController.
2368
2369         https://bugs.webkit.org/show_bug.cgi?id=34481
2370
2371         * GNUmakefile.am:
2372         * WebCore.gypi:
2373         * WebCore.pro:
2374         * WebCore.xcodeproj/project.pbxproj:
2375         * bindings/js/JSBindingsAllInOne.cpp:
2376         * bindings/js/JSConsoleCustom.cpp:
2377         * bindings/js/ScriptProfile.h: Added.
2378         * bindings/js/ScriptProfiler.cpp: Added.
2379         (WebCore::ScriptProfiler::start):
2380         (WebCore::ScriptProfiler::stop):
2381         * bindings/js/ScriptProfiler.h: Added.
2382         * bindings/scripts/CodeGeneratorV8.pm:
2383         * bindings/v8/ScriptProfile.h: Added.
2384         (WebCore::ScriptProfile::create):
2385         (WebCore::ScriptProfile::~ScriptProfile):
2386         (WebCore::ScriptProfile::title):
2387         (WebCore::ScriptProfile::uid):
2388         (WebCore::ScriptProfile::ScriptProfile):
2389         * bindings/v8/ScriptProfiler.cpp: Added.
2390         (WebCore::ScriptProfiler::start):
2391         (WebCore::ScriptProfiler::stop):
2392         * bindings/v8/ScriptProfiler.h: Added.
2393         * bindings/v8/custom/V8ConsoleCustom.cpp: Removed.
2394         * inspector/InspectorController.cpp:
2395         (WebCore::InspectorController::endGroup):
2396         (WebCore::InspectorController::show):
2397         (WebCore::InspectorController::setDOMStorageItem):
2398         (WebCore::InspectorController::addProfile):
2399         (WebCore::InspectorController::addProfileFinishedMessageToConsole):
2400         (WebCore::InspectorController::addStartProfilingMessageToConsole):
2401         (WebCore::InspectorController::createProfileHeader):
2402         (WebCore::InspectorController::getCurrentUserInitiatedProfileName):
2403         (WebCore::InspectorController::startUserInitiatedProfiling):
2404         (WebCore::InspectorController::stopUserInitiatedProfiling):
2405         (WebCore::InspectorController::enableDebugger):
2406         (WebCore::InspectorController::specialPanelForJSName):
2407         * inspector/InspectorController.h:
2408         (WebCore::InspectorController::searchingForNodeInPage):
2409         * page/Console.cpp:
2410         (WebCore::Console::profile):
2411         (WebCore::Console::profileEnd):
2412         * page/Console.h:
2413         (WebCore::):
2414         (WebCore::Console::create):
2415         (WebCore::Console::profiles):
2416         * page/Console.idl:
2417
2418 2010-02-02  Kent Tamura  <tkent@chromium.org>
2419
2420         Reviewed by Darin Adler.
2421
2422         Fix a bug that changes for some constraint attributes doesn't
2423         update validation CSS selectors.
2424         https://bugs.webkit.org/show_bug.cgi?id=31716
2425
2426         - Rename HTMLFormControlElement::updateValidity() to setNeedsValidityCheck()
2427         - Introduce HTMLFormControlElement::setNeedsWillValidate()
2428         - Introduce HTMLFormControlElement::m_hasName to make willValidate()
2429           work in parseMappedAttribute().
2430         - We need to call setNeedsValidityCheck() when HTMLInputElement::step or
2431           HTMLTextAreaElement::maxLength is changed.
2432
2433         * html/HTMLFormControlElement.cpp:
2434         (WebCore::HTMLFormControlElement::HTMLFormControlElement):
2435         (WebCore::HTMLFormControlElement::parseMappedAttribute):
2436         (WebCore::HTMLFormControlElement::insertedIntoTree):
2437         (WebCore::HTMLFormControlElement::removedFromTree):
2438         (WebCore::HTMLFormControlElement::formDestroyed):
2439         (WebCore::HTMLFormControlElement::willValidate): Avoids function calls.
2440         (WebCore::HTMLFormControlElement::setNeedsWillValidateCheck):
2441         (WebCore::HTMLFormControlElement::setNeedsValidityCheck):
2442         * html/HTMLFormControlElement.h:
2443         (WebCore::HTMLFormControlElement::disabled): Move the code from .cpp.
2444         * html/HTMLInputElement.cpp:
2445         (WebCore::HTMLInputElement::setInputType):
2446         (WebCore::HTMLInputElement::parseMappedAttribute):
2447         (WebCore::HTMLInputElement::setValue):
2448         (WebCore::HTMLInputElement::setValueFromRenderer):
2449         (WebCore::HTMLInputElement::setFileListFromRenderer):
2450         * html/HTMLTextAreaElement.cpp:
2451         (WebCore::HTMLTextAreaElement::parseMappedAttribute):
2452         (WebCore::HTMLTextAreaElement::setValue):
2453         * rendering/RenderTextControlMultiLine.cpp:
2454         (WebCore::RenderTextControlMultiLine::subtreeHasChanged):
2455
2456 2010-02-02  Roland Steiner  <rolandsteiner@chromium.org>
2457
2458         Reviewed by Adele Peterson.
2459
2460         Bug 34198 -  Ruby text should not inherit line-height
2461         (https://bugs.webkit.org/show_bug.cgi?id=34198)
2462         
2463         Resetting line-height to 'normal' in the default UA style sheet.
2464         Adding layout-test to check for this.
2465
2466         Test: fast/ruby/ruby-line-height.html
2467
2468         * css/html.css:
2469
2470 2010-02-02  James Robinson  <jamesr@chromium.org>
2471
2472         Reviewed by Dmitry Titov.
2473
2474         Add a null check for image, which might be NULL if tileSize is empty
2475         https://bugs.webkit.org/show_bug.cgi?id=34510
2476
2477         Test: fast/gradients/crash-on-1px-border.html
2478
2479         * rendering/RenderBoxModelObject.cpp:
2480         (WebCore::RenderBoxModelScaleObserver::shouldPaintBackgroundAtLowQuality):
2481
2482 2010-02-02  Kent Tamura  <tkent@chromium.org>
2483
2484         Reviewed by Darin Adler.
2485
2486         rangeOverflow/rangeUnderflow support for type=datetime, datetime-local,
2487         month, time and week
2488         https://bugs.webkit.org/show_bug.cgi?id=34483
2489
2490         Tests: fast/forms/ValidityState-rangeOverflow.html
2491                fast/forms/ValidityState-rangeUnderflow.html
2492
2493         * html/HTMLInputElement.cpp:
2494           Defines the hard limits for the types as double values.
2495         (WebCore::HTMLInputElement::rangeUnderflow): Supports the types.
2496         (WebCore::HTMLInputElement::rangeOverflow): Supports the types.
2497         (WebCore::HTMLInputElement::minimum): Supports the types.
2498         (WebCore::HTMLInputElement::maximum): Supports the types.
2499
2500 2010-02-02  Fumitoshi Ukai  <ukai@chromium.org>
2501
2502         Reviewed by Alexey Proskuryakov.
2503
2504         WebSocket set pending activity to avoid unexpected GC.
2505         https://bugs.webkit.org/show_bug.cgi?id=34014
2506
2507         Test: websocket/tests/websocket-pending-activity.html
2508
2509         * websockets/WebSocket.cpp:
2510         (WebCore::WebSocket::connect): set pending activity until it receives didClose. 
2511         (WebCore::WebSocket::contextDestroyed): check socket is already closed.
2512         (WebCore::WebSocket::stop): close the connection and unset pending activity when it stops.
2513         (WebCore::WebSocket::didClose): unset pending activity.
2514         * websockets/WebSocket.h:
2515         * websockets/WebSocketChannel.cpp:
2516         (WebCore::WebSocketChannel::didReceiveData): protect this while it processes received data.
2517
2518 2010-02-02  Gustavo Noronha Silva  <gns@gnome.org>
2519
2520         No review, rolling out r54261.
2521         http://trac.webkit.org/changeset/54261
2522         https://bugs.webkit.org/show_bug.cgi?id=34435
2523
2524         Causes crashes on release builds
2525
2526         * GNUmakefile.am:
2527         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
2528         (WebCore::mediaPlayerPrivateSourceChangedCallback):
2529         * platform/gtk/GOwnPtrGtk.cpp: Removed.
2530         * platform/gtk/GOwnPtrGtk.h: Removed.
2531
2532 2010-02-02  David Levin  <levin@chromium.org>
2533
2534         No review, rolling out r54245.
2535         http://trac.webkit.org/changeset/54245
2536         https://bugs.webkit.org/show_bug.cgi?id=34492
2537
2538         This patch seems to have broken thousands of chromium tests on
2539         Windows (and since it was for chromium, I'm rolling it out).
2540
2541         * dom/Element.cpp:
2542         (WebCore::Element::baseURI):
2543
2544 2010-02-02  Steve Falkenburg  <sfalken@apple.com>
2545
2546         Reviewed by Darin Adler.
2547
2548         Copyright year updating for Windows version resources should be automatic
2549         https://bugs.webkit.org/show_bug.cgi?id=34503
2550
2551         * WebCore.vcproj/QTMovieWin.rc:
2552
2553 2010-02-02  Dimitri Glazkov  <dglazkov@chromium.org>
2554
2555         No review, rolling out r54257.
2556         http://trac.webkit.org/changeset/54257
2557         https://bugs.webkit.org/show_bug.cgi?id=34491
2558
2559         [Chromium] broke thousands of Win tests and a few of Linux tests.
2560
2561         * platform/graphics/skia/GraphicsContextSkia.cpp:
2562         (WebCore::GraphicsContext::beginTransparencyLayer):
2563         * platform/graphics/skia/PlatformContextSkia.cpp:
2564         (PlatformContextSkia::applyAntiAliasedClipPaths):
2565         * platform/graphics/skia/PlatformContextSkia.h:
2566
2567 2010-02-02  Philippe Normand  <pnormand@igalia.com>
2568
2569         Reviewed by Gustavo Noronha Silva.
2570
2571         [Gtk] libsoup critical warning in media player http cookies injection code
2572         https://bugs.webkit.org/show_bug.cgi?id=34435
2573
2574         Fixed the critical warning and refactored the
2575         User-Agent/Referer/cookies injection code, in that order. Previous
2576         order (cookies first) was wrong because if cookies injection could
2577         not be done neither the User-Agent not Referer were injected. Also
2578         started a non-JSC-specific, gtk-specific GOwnPtr module.
2579
2580         * GNUmakefile.am:
2581         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
2582         (WebCore::mediaPlayerPrivateSourceChangedCallback):
2583         * platform/gtk/GOwnPtrGtk.cpp: Added.
2584         (WTF::SoupURI):
2585         (WTF::GstElement):
2586         * platform/gtk/GOwnPtrGtk.h: Added.
2587
2588 2010-02-02  Nate Chapin  <japhet@chromium.org>
2589
2590         Reviewed by Dimitri Glazkov.
2591
2592         [V8] Use toV8() to wrap in the custom bindings, and remove
2593         the old wrapping code from V8DOMWrapper.
2594         
2595         https://bugs.webkit.org/show_bug.cgi?id=32563
2596
2597         * bindings/v8/ScriptController.cpp:
2598         * bindings/v8/ScriptObject.cpp:
2599         * bindings/v8/V8AbstractEventListener.cpp:
2600         * bindings/v8/V8Collection.h:
2601         * bindings/v8/V8DOMWindowShell.cpp:
2602         * bindings/v8/V8DOMWrapper.cpp:
2603         * bindings/v8/V8DOMWrapper.h:
2604         * bindings/v8/V8NodeFilterCondition.cpp:
2605         * bindings/v8/V8Proxy.cpp:
2606         * bindings/v8/custom/V8CanvasRenderingContext2DCustom.cpp:
2607         * bindings/v8/custom/V8CustomPositionCallback.cpp:
2608         * bindings/v8/custom/V8CustomPositionErrorCallback.cpp:
2609         * bindings/v8/custom/V8CustomSQLStatementCallback.cpp:
2610         * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
2611         * bindings/v8/custom/V8CustomSQLTransactionCallback.cpp:
2612         * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp:
2613         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2614         * bindings/v8/custom/V8DataGridColumnListCustom.cpp:
2615         * bindings/v8/custom/V8DocumentCustom.cpp:
2616         * bindings/v8/custom/V8DocumentLocationCustom.cpp:
2617         * bindings/v8/custom/V8ElementCustom.cpp:
2618         * bindings/v8/custom/V8EventCustom.cpp:
2619         * bindings/v8/custom/V8HTMLAllCollectionCustom.cpp:
2620         * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
2621         * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
2622         * bindings/v8/custom/V8HTMLCollectionCustom.cpp:
2623         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
2624         * bindings/v8/custom/V8HTMLFormElementCustom.cpp:
2625         * bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp:
2626         * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
2627         * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
2628         * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
2629         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
2630         * bindings/v8/custom/V8MessageChannelConstructor.cpp:
2631         * bindings/v8/custom/V8MessageEventCustom.cpp:
2632         * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
2633         * bindings/v8/custom/V8NodeIteratorCustom.cpp:
2634         * bindings/v8/custom/V8NodeListCustom.cpp:
2635         * bindings/v8/custom/V8NotificationCenterCustom.cpp:
2636         * bindings/v8/custom/V8SVGMatrixCustom.cpp:
2637         * bindings/v8/custom/V8StyleSheetListCustom.cpp:
2638         * bindings/v8/custom/V8TreeWalkerCustom.cpp:
2639         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
2640         * bindings/v8/custom/V8XSLTProcessorCustom.cpp:
2641
2642 2010-02-02  Garret Kelly  <gdk@chromium.org>
2643
2644         Reviewed by David Levin.
2645
2646         When using the Skia graphics context, the beginTransparencyLayer call
2647         currently creates a new layer, but does not keep the current
2648         compositing mode for use when merging the created layer back onto the
2649         rest of the context. This patch fixes that.
2650         https://bugs.webkit.org/show_bug.cgi?id=34491
2651
2652         fast/backgrounds/svg-as-mask.html is affected by this change in Chromium,
2653         but not fixed. This is the first of a series of patches to fix it.
2654
2655         * platform/graphics/skia/GraphicsContextSkia.cpp:
2656         (WebCore::GraphicsContext::beginTransparencyLayer):
2657         * platform/graphics/skia/PlatformContextSkia.cpp:
2658         (PlatformContextSkia::beginTransparencyLayer):
2659         * platform/graphics/skia/PlatformContextSkia.h:
2660
2661 2010-02-02  Kwang Yul Seo  <skyul@company100.net>
2662
2663         Reviewed by Eric Seidel.
2664
2665         Use WTF::getLocalTime instead of localtime_r in FTPDirectoryDocument
2666         https://bugs.webkit.org/show_bug.cgi?id=34409
2667
2668         Platform guards for localtime_r are not needed because we already have
2669         WTF::getLocalTime which does the same thing.
2670
2671         * loader/FTPDirectoryDocument.cpp:
2672         (WebCore::processFileDateString):
2673         * loader/FTPDirectoryParser.cpp:
2674         (WebCore::gmtimeQt):
2675
2676 2010-02-02  Adam Roben  <aroben@apple.com>
2677
2678         Copy WebCore's bindings generation scripts to the PrivateHeaders
2679         directory on Mac
2680
2681         This will allow other projects to use these scripts.
2682
2683         Fixes <http://webkit.org/b/34498>.
2684
2685         Reviewed by Mark Rowe.
2686
2687         * WebCore.xcodeproj/project.pbxproj: Added the bindings generation
2688         scripst to the Copy Headers phase, and marked them as Private.
2689
2690 2010-02-02  Adam Roben  <aroben@apple.com>
2691
2692         Copy WebCore's bindings generation scripts to a more sensible location
2693
2694         Part of Bug 34496: Clean up WebCore's IDL/script copying
2695         <https://bugs.webkit.org/show_bug.cgi?id=34496>
2696
2697         Reviewed by Steve Falkenburg.
2698
2699         * WebCore.vcproj/WebCore.make:
2700         * WebCore.vcproj/WebCoreGenerated.vcproj:
2701         Instead of copying to obj/WebKit/DOMInterfaces, copy to obj/WebCore/scripts.
2702
2703 2010-02-02  Adam Roben  <aroben@apple.com>
2704
2705         Rename the scripts used to copy WebCore's bindings generation scripts
2706
2707         Part of Bug 34496: Clean up WebCore's IDL/script copying
2708         <https://bugs.webkit.org/show_bug.cgi?id=34496>
2709
2710         Reviewed by Steve Falkenburg.
2711
2712         * WebCore.vcproj/MigrateScripts: Renamed from WebCore/WebCore.vcproj/MigrateIDLAndScripts.
2713         * WebCore.vcproj/migrate-scripts.sh: Renamed from WebCore/WebCore.vcproj/migrate-idls.sh.
2714
2715         * WebCore.vcproj/WebCoreGenerated.vcproj: Updated for renames.
2716
2717 2010-02-02  Adam Roben  <aroben@apple.com>
2718
2719         Stop copying IDL files into $(WebKitOutputDir)
2720
2721         No one uses these anymore (as of r52921).
2722
2723         Part of Bug 34496: Clean up WebCore's IDL/script copying
2724         <https://bugs.webkit.org/show_bug.cgi?id=34496>
2725
2726         Reviewed by Steve Falkenburg.
2727
2728         * WebCore.vcproj/MigrateIDLAndScripts: Don't copy the IDL files
2729         anymore. Keep copying the scripts, though, since other projects
2730         (outside of the WebKit repository) do use those.
2731
2732 2010-02-02  Bryan Yeung  <bryeung@google.com>
2733
2734         Reviewed by Darin Adler.
2735
2736         Avoid using an invalidated KURL object in baseURI.
2737
2738         https://bugs.webkit.org/show_bug.cgi?id=34492
2739
2740         This change fixes baseURI for Chromium (where the KURL implementation
2741         does not allow invalid KURLs to carry relative paths).  This is
2742         regression tested by
2743         LayoutTests/svg/W3C-SVG-1.1/struct-image-07-t.svg
2744
2745         * dom/Element.cpp:
2746         (WebCore::Element::baseURI):
2747
2748 2010-02-02  Alexey Proskuryakov  <ap@apple.com>
2749
2750         Reviewed by Darin Adler.
2751
2752         https://bugs.webkit.org/show_bug.cgi?id=34076
2753         <rdar://problem/7594601> Crash in mangleme in WebCore::Element::getAttribute
2754
2755         Test: fast/forms/misplaced-img-form-registration.html
2756
2757         * html/HTMLFormElement.cpp:
2758         (WebCore::HTMLFormElement::registerImgElement): Assert that the same image isn't added
2759         to vector again.
2760         (WebCore::HTMLFormElement::removeImgElement): Similarly, assert that we're removing something
2761         that's actually registered.
2762
2763         * html/HTMLImageElement.cpp: (WebCore::HTMLImageElement::~HTMLImageElement): If parser fails
2764         to insert the image element, then there will be no removed from tree notification either,
2765         need to unregister right away.
2766
2767 2010-02-02  Alexander Pavlov  <apavlov@chromium.org>
2768
2769         Reviewed by Pavel Feldman.
2770
2771         Web Inspector: Eliminate some of the platform flavor-specific stylesheet selectors
2772
2773         Extract OS version into WebInspector.platformFlavor
2774         https://bugs.webkit.org/show_bug.cgi?id=34469
2775
2776         * inspector/front-end/InspectorBackendStub.js:
2777         * inspector/front-end/InspectorFrontendHostStub.js:
2778         (.WebInspector.InspectorFrontendHostStub.prototype.platform):
2779         * inspector/front-end/inspector.css:
2780         * inspector/front-end/inspector.js:
2781         (WebInspector.pendingDispatches.0.URLRegExp.i.get platform):
2782         (WebInspector.get platformFlavor):
2783         (WebInspector._detectPlatformFlavor):
2784         (WebInspector.loaded):
2785         (WebInspector.toolbarDragStart):
2786         (WebInspector.isMac):
2787
2788 2010-02-02  Steve Block  <steveblock@google.com>
2789
2790         Reviewed by Ariya Hidayat.
2791
2792         Adds utility functions for converting between JavaInstance and NPAPI types
2793         https://bugs.webkit.org/show_bug.cgi?id=34468
2794
2795         This is required by Android for injecting objects into V8 JavaScript.
2796
2797         No new tests, added utility functions only.
2798
2799         * Android.v8bindings.mk: Modified. Added JavaNPObjectV8.cpp
2800         * bridge/jni/v8/JavaNPObjectV8.cpp: Added.
2801         (JSC::Bindings::AllocJavaNPObject):
2802         (JSC::Bindings::FreeJavaNPObject):
2803         (JSC::Bindings::):
2804         (JSC::Bindings::JavaInstanceToNPObject):
2805         (JSC::Bindings::ExtractJavaInstance):
2806         (JSC::Bindings::JavaNPObjectHasMethod):
2807         (JSC::Bindings::JavaNPObjectInvoke):
2808         (JSC::Bindings::JavaNPObjectHasProperty):
2809         (JSC::Bindings::JavaNPObjectGetProperty):
2810         * bridge/jni/v8/JavaNPObjectV8.h: Added.
2811
2812 2010-02-02  Benjamin Poulain  <benjamin.poulain@nokia.com>
2813
2814         Reviewed by Ariya Hidayat.
2815
2816         [Qt] Symbian plugins include a wrong header file for QPixmap
2817         https://bugs.webkit.org/show_bug.cgi?id=34475
2818
2819         * plugins/symbian/PluginViewSymbian.cpp:
2820
2821 2010-02-02  Pavel Feldman  <pfeldman@chromium.org>
2822
2823         Reviewed by Timothy Hatcher.
2824
2825         Web Inspector: URLs are not syntax-higlighted as links in source view.
2826
2827         This change enables linkifier in the NativeTextViewer. It adds
2828         "linkify" and "a_node" parse states into the highlighter in order
2829         to detect links and distinguish between resource and external ones.
2830         Contains drive-by fix for the webkit-html-* styles and moves them to the
2831         common location.
2832
2833         https://bugs.webkit.org/show_bug.cgi?id=34364
2834
2835         * inspector/front-end/NativeTextViewer.js:
2836         (WebInspector.NativeTextViewer):
2837         (WebInspector.NativeTextViewer.prototype._createSpan):
2838         (WebInspector.NativeTextViewer.prototype._createLink):
2839         (WebInspector.NativeTextViewer.prototype._rewriteHref):
2840         * inspector/front-end/SourceFrame.js:
2841         (WebInspector.SourceFrame.prototype.setContent):
2842         (WebInspector.SourceFrame.prototype._createEditorIfNeeded):
2843         * inspector/front-end/SourceHTMLTokenizer.js:
2844         (WebInspector.SourceHTMLTokenizer):
2845         (WebInspector.SourceHTMLTokenizer.prototype._isExpectingAttribute):
2846         (WebInspector.SourceHTMLTokenizer.prototype._isExpectingAttributeValue):
2847         (WebInspector.SourceHTMLTokenizer.prototype._setExpectingAttribute):
2848         (WebInspector.SourceHTMLTokenizer.prototype._setExpectingAttributeValue):
2849         (WebInspector.SourceHTMLTokenizer.prototype._stringToken):
2850         (WebInspector.SourceHTMLTokenizer.prototype._attrValueTokenType):
2851         (WebInspector.SourceHTMLTokenizer.prototype.nextToken):
2852         * inspector/front-end/SourceHTMLTokenizer.re2js:
2853         * inspector/front-end/SourceView.js:
2854         (WebInspector.SourceView.prototype._contentLoaded):
2855         * inspector/front-end/TextEditorHighlighter.js:
2856         (WebInspector.TextEditorHighlighter):
2857         * inspector/front-end/inspector.css:
2858         * inspector/front-end/inspectorSyntaxHighlight.css:
2859
2860 2010-02-02  Simon Hausmann  <simon.hausmann@nokia.com>
2861
2862         Reviewed by Ariya Hidayat.
2863
2864         [Qt] Install libraries and headers in package builds
2865         https://bugs.webkit.org/show_bug.cgi?id=34325
2866
2867         Add the QtWebKit libraries to the installable items, except on
2868         Symbian where the libraries are always linked in their final
2869         destination.
2870
2871         Also include the headers generated by syncqt in the installation.
2872
2873         * WebCore.pro:
2874
2875 2010-02-02  Kavita Kanetkar  <kkanetkar@chromium.org>
2876
2877         Reviewed by Dmitry Titov.
2878
2879         [V8] Raising an exception while setting timeout/interval from a detached frame
2880         https://bugs.webkit.org/show_bug.cgi?id=34453
2881         This fixes the issue/failing test mentioned in Chromium bug:
2882         http://code.google.com/p/chromium/issues/detail?id=32671
2883
2884
2885         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2886         (WebCore::WindowSetTimeoutImpl):
2887
2888 2010-02-02  Kwang Yul Seo  <skyul@company100.net>
2889
2890         Reviewed by Eric Seidel.
2891
2892         [BREWMP] Port Screen
2893         https://bugs.webkit.org/show_bug.cgi?id=34299
2894
2895         Get the screen size and depth from the main display bitmap.
2896
2897         * platform/brew/ScreenBrew.cpp: Added.
2898         (WebCore::getDisplayInfo):
2899         (WebCore::screenRect):
2900         (WebCore::screenAvailableRect):
2901         (WebCore::screenDepth):
2902         (WebCore::screenDepthPerComponent):
2903         (WebCore::screenIsMonochrome):
2904
2905 2010-02-02  Kwang Yul Seo  <skyul@company100.net>
2906
2907         Reviewed by Eric Seidel.
2908
2909         [BREWMP] Port LocalizedStrings
2910         https://bugs.webkit.org/show_bug.cgi?id=34257
2911
2912         Port LocalizedStrings to BREWMP.
2913
2914         * platform/brew/LocalizedStringsBrew.cpp: Added.
2915         (WebCore::submitButtonDefaultLabel):
2916         (WebCore::inputElementAltText):
2917         (WebCore::resetButtonDefaultLabel):
2918         (WebCore::defaultLanguage):
2919         (WebCore::searchableIndexIntroduction):
2920         (WebCore::fileButtonChooseFileLabel):
2921         (WebCore::fileButtonNoFileSelectedLabel):
2922         (WebCore::contextMenuItemTagOpenLinkInNewWindow):
2923         (WebCore::contextMenuItemTagDownloadLinkToDisk):
2924         (WebCore::contextMenuItemTagCopyLinkToClipboard):
2925         (WebCore::contextMenuItemTagOpenImageInNewWindow):
2926         (WebCore::contextMenuItemTagDownloadImageToDisk):
2927         (WebCore::contextMenuItemTagCopyImageToClipboard):
2928         (WebCore::contextMenuItemTagOpenFrameInNewWindow):
2929         (WebCore::contextMenuItemTagCopy):
2930         (WebCore::contextMenuItemTagGoBack):
2931         (WebCore::contextMenuItemTagGoForward):
2932         (WebCore::contextMenuItemTagStop):
2933         (WebCore::contextMenuItemTagReload):
2934         (WebCore::contextMenuItemTagCut):
2935         (WebCore::contextMenuItemTagPaste):
2936         (WebCore::contextMenuItemTagNoGuessesFound):
2937         (WebCore::contextMenuItemTagIgnoreSpelling):
2938         (WebCore::contextMenuItemTagLearnSpelling):
2939         (WebCore::contextMenuItemTagSearchWeb):
2940         (WebCore::contextMenuItemTagLookUpInDictionary):
2941         (WebCore::contextMenuItemTagOpenLink):
2942         (WebCore::contextMenuItemTagIgnoreGrammar):
2943         (WebCore::contextMenuItemTagSpellingMenu):
2944         (WebCore::contextMenuItemTagShowSpellingPanel):
2945         (WebCore::contextMenuItemTagCheckSpelling):
2946         (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
2947         (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
2948         (WebCore::contextMenuItemTagFontMenu):
2949         (WebCore::contextMenuItemTagBold):
2950         (WebCore::contextMenuItemTagItalic):
2951         (WebCore::contextMenuItemTagUnderline):
2952         (WebCore::contextMenuItemTagOutline):
2953         (WebCore::contextMenuItemTagWritingDirectionMenu):
2954         (WebCore::contextMenuItemTagDefaultDirection):
2955         (WebCore::contextMenuItemTagLeftToRight):
2956         (WebCore::contextMenuItemTagRightToLeft):
2957         (WebCore::contextMenuItemTagInspectElement):
2958         (WebCore::searchMenuNoRecentSearchesText):
2959         (WebCore::searchMenuRecentSearchesText):
2960         (WebCore::searchMenuClearRecentSearchesText):
2961         (WebCore::unknownFileSizeText):
2962         (WebCore::AXWebAreaText):
2963         (WebCore::AXLinkText):
2964         (WebCore::AXListMarkerText):
2965         (WebCore::AXImageMapText):
2966         (WebCore::AXHeadingText):
2967         (WebCore::imageTitle):
2968         (WebCore::contextMenuItemTagTextDirectionMenu):
2969         (WebCore::AXButtonActionVerb):
2970         (WebCore::AXTextFieldActionVerb):
2971         (WebCore::AXRadioButtonActionVerb):
2972         (WebCore::AXCheckedCheckBoxActionVerb):
2973         (WebCore::AXUncheckedCheckBoxActionVerb):
2974         (WebCore::AXLinkActionVerb):
2975         (WebCore::AXMenuListPopupActionVerb):
2976         (WebCore::AXMenuListActionVerb):
2977         (WebCore::AXDefinitionListTermText):
2978         (WebCore::AXDefinitionListDefinitionText):
2979         (WebCore::validationMessageValueMissingText):
2980         (WebCore::validationMessageTypeMismatchText):
2981         (WebCore::validationMessagePatternMismatchText):
2982         (WebCore::validationMessageTooLongText):
2983         (WebCore::validationMessageRangeUnderflowText):
2984         (WebCore::validationMessageRangeOverflowText):
2985         (WebCore::validationMessageStepMismatchText):
2986
2987 2010-02-02  Kwang Yul Seo  <skyul@company100.net>
2988
2989         Reviewed by Eric Seidel.
2990
2991         [BREWMP] Port systemBeep
2992         https://bugs.webkit.org/show_bug.cgi?id=33601
2993
2994         Implement systemBeep with IShell_Beep.
2995
2996         * platform/brew/SoundBrew.cpp: Added.
2997         (WebCore::systemBeep):
2998
2999 2010-02-02  Shinichiro Hamaji  <hamaji@chromium.org>
3000
3001         Reviewed by Eric Seidel.
3002
3003         [Win] Utilize PrintContext to share the printing code with other ports
3004         https://bugs.webkit.org/show_bug.cgi?id=34312
3005
3006         No new tests as this is just a small refactoring.
3007
3008 2010-02-02  Kwang Yul Seo  <skyul@company100.net>
3009
3010         Reviewed by Eric Seidel.
3011
3012         [BREWMP] Add conversions between IntPoint and AEEPoint
3013         https://bugs.webkit.org/show_bug.cgi?id=34194
3014
3015         Make it easy to convert between IntPoint and AEEPoint.
3016
3017         * platform/graphics/IntPoint.h:
3018         * platform/graphics/brew/IntPointBrew.cpp: Added.
3019         (WebCore::IntPoint::IntPoint):
3020         (WebCore::IntPoint::operator AEEPoint):
3021
3022 2010-02-02  Steve Block  <steveblock@google.com>
3023
3024         Reviewed by Adam Barth.
3025
3026         Adds virtual destructors for AbstractWeakReferenceMap and AbstractWeakReferenceMap::Visitor
3027         https://bugs.webkit.org/show_bug.cgi?id=34434
3028
3029         No new tests, build fix only.
3030
3031         * bindings/v8/V8DOMMap.h: Modified.
3032         (WebCore::AbstractWeakReferenceMap::~AbstractWeakReferenceMap): Added.
3033         (WebCore::AbstractWeakReferenceMap::Visitor::~Visitor): Added.
3034
3035 2010-02-02  Avi Drissman  <avi@chromium.org>
3036
3037         Reviewed by Eric Seidel.
3038
3039         Sync up Chromium Mac render theme to Mac render theme
3040         https://bugs.webkit.org/show_bug.cgi?id=34340
3041
3042         Covered by existing layout tests.
3043
3044         * platform/chromium/ThemeChromiumMac.mm:
3045         (WebCore::updateStates):
3046         (WebCore::checkbox):
3047         (WebCore::paintCheckbox):
3048         (WebCore::radio):
3049         (WebCore::paintRadio):
3050         (WebCore::listButtonSizes):
3051         (WebCore::setupButtonCell):
3052         (WebCore::button):
3053         (WebCore::paintButton):
3054         (WebCore::ThemeChromiumMac::controlSize):
3055         (WebCore::ThemeChromiumMac::minimumControlSize):
3056         (WebCore::ThemeChromiumMac::controlBorder):
3057         (WebCore::ThemeChromiumMac::paint):
3058         * rendering/RenderThemeChromiumMac.h:
3059         * rendering/RenderThemeChromiumMac.mm:
3060         (-[WebCoreRenderThemeNotificationObserver initWithTheme:WebCore::]):
3061         (WebCore::convertNSColorToColor):
3062         (WebCore::RenderThemeChromiumMac::systemColor):
3063         (WebCore::RenderThemeChromiumMac::isControlStyled):
3064         (WebCore::RenderThemeChromiumMac::adjustRepaintRect):
3065         (WebCore::RenderThemeChromiumMac::convertToPaintingRect):
3066         (WebCore::RenderThemeChromiumMac::paintCapsLockIndicator):
3067         (WebCore::RenderThemeChromiumMac::paintMenuList):
3068         (WebCore::RenderThemeChromiumMac::paintMenuListButton):
3069         (WebCore::RenderThemeChromiumMac::adjustMenuListStyle):
3070         (WebCore::RenderThemeChromiumMac::adjustMenuListButtonStyle):
3071         (WebCore::RenderThemeChromiumMac::paintSliderTrack):
3072         (WebCore::RenderThemeChromiumMac::paintSliderThumb):
3073         (WebCore::RenderThemeChromiumMac::paintSearchField):
3074         (WebCore::RenderThemeChromiumMac::setSearchFieldSize):
3075         (WebCore::RenderThemeChromiumMac::adjustSearchFieldStyle):
3076         (WebCore::RenderThemeChromiumMac::paintSearchFieldResultsButton):
3077         (WebCore::RenderThemeChromiumMac::adjustSliderThumbSize):
3078         (WebCore::RenderThemeChromiumMac::popupButton):
3079         (WebCore::RenderThemeChromiumMac::sliderThumbHorizontal):
3080         (WebCore::RenderThemeChromiumMac::sliderThumbVertical):
3081
3082 2010-02-02  Kwang Yul Seo  <skyul@company100.net>
3083
3084         Reviewed by Eric Seidel.
3085
3086         [BREWMP] Port Logging
3087         https://bugs.webkit.org/show_bug.cgi?id=34300
3088
3089         Log calls to notImplemented() by default.
3090
3091         * platform/brew/LoggingBrew.cpp: Added.
3092         (WebCore::InitializeLoggingChannelsIfNecessary):
3093
3094 2010-02-02  Kwang Yul Seo  <skyul@company100.net>
3095
3096         Reviewed by Eric Seidel.
3097
3098         [BREWMP] Port FileChooser
3099         https://bugs.webkit.org/show_bug.cgi?id=34261
3100
3101         Port FileChooser to BREWMP.
3102
3103         * platform/brew/FileChooserBrew.cpp: Added.
3104         (WebCore::FileChooser::basenameForWidth):
3105
3106 2010-02-01  Zoltan Horvath  <zoltan@webkit.org>
3107
3108         Reviewed by Darin Adler.
3109
3110         Allow custom memory allocation control for IconDatabaseClient class
3111         https://bugs.webkit.org/show_bug.cgi?id=33252
3112
3113         Inherits the following struct from Noncopyable because it is 
3114         instantiated by 'new' and no need to be copyable:
3115
3116         class name               - instantiated at: WebCore/'location'
3117         class IconDatabaseClient - loader/icon/IconDatabase.cpp:89
3118
3119         * loader/icon/IconDatabaseClient.h:
3120
3121 2010-02-01  Kwang Yul Seo  <skyul@company100.net>
3122
3123         Reviewed by Eric Seidel.
3124
3125         [BREWMP] Port MIMETypeRegistry
3126         https://bugs.webkit.org/show_bug.cgi?id=34220
3127
3128         Port MIMETypeRegistry with an extension map as other ports do.
3129
3130         * platform/brew: Added.
3131         * platform/brew/MIMETypeRegistryBrew.cpp: Added.
3132         (WebCore::):
3133         (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
3134
3135 2010-02-01  Dmitry Titov  <dimich@chromium.org>
3136
3137         Not reviewed, revert r54194 that fails new test on Qt and Chromium.
3138         https://bugs.webkit.org/show_bug.cgi?id=34382
3139
3140         * html/HTMLFrameElementBase.cpp:
3141         (WebCore::HTMLFrameElementBase::setNameAndOpenURL):
3142         (WebCore::HTMLFrameElementBase::insertedIntoDocument):
3143         * html/HTMLFrameElementBase.h:
3144         * page/Frame.cpp:
3145         * page/Frame.h:
3146
3147 2010-02-01  Shinichiro Hamaji  <hamaji@chromium.org>
3148
3149         Reviewed by Eric Seidel.
3150
3151         Provide a way to get page number with layoutTestController
3152         https://bugs.webkit.org/show_bug.cgi?id=33840
3153
3154         Test: printing/page-break-always.html
3155
3156         * WebCore.base.exp:
3157         * WebCore.xcodeproj/project.pbxproj:
3158         * page/PrintContext.cpp:
3159         (WebCore::PrintContext::pageRect): Added a getter function.
3160         (WebCore::PrintContext::computePageRects): Move its logic into computePageRectsWithPageSize.
3161         (WebCore::PrintContext::computePageRectsWithPageSize): Factored out from computePageRects for pageNumberForElement.
3162         (WebCore::enclosingBoxModelObject): Added for pageNumberForElement.
3163         (WebCore::PrintContext::pageNumberForElement): Added for testing.
3164         * page/PrintContext.h:
3165
3166 2010-02-01  Kwang Yul Seo  <skyul@company100.net>
3167
3168         Reviewed by Eric Seidel.
3169
3170         [BREWMP] Add conversions between IntSize and AEESize
3171         https://bugs.webkit.org/show_bug.cgi?id=34197
3172
3173         Make it easy to convert between IntSize and AEESize.
3174
3175         * platform/graphics/IntSize.h:
3176         * platform/graphics/brew/IntSizeBrew.cpp: Added.
3177         (WebCore::IntSize::IntSize):
3178         (WebCore::IntSize::operator AEESize):
3179
3180 2010-02-01  Stephen White  <senorblanco@chromium.org>
3181
3182         Reviewed by Eric Seidel.
3183
3184         Fix for Pattern transformations in Chromium/Skia.  This required 
3185         reworking Pattern a bit to be more like the Gradient implementation.
3186         In particular, it now holds an m_pattern reference to the
3187         platform-specific implementation, and passes along changes to the
3188         m_patternSpaceTransformation, in the same way that Gradient does for
3189         m_gradientSpaceTransformation.  This is necessary since Skia creates the
3190         platform-specific pattern (SkShader) once, rather than recreating it
3191         on each draw.
3192         For platforms other than Skia, m_pattern is unused, they will
3193         continue to use the static createPlatformPattern(), and the new
3194         notification functions are stubbed out.  Other platforms can switch to
3195         the new implementation if they so choose.
3196
3197         https://bugs.webkit.org/show_bug.cgi?id=24534 
3198
3199         Covered by svg/custom/pattern-y-offset.svg,
3200         svg/custom/pattern-cycle-detection.svg, and many more.
3201
3202         * platform/graphics/Pattern.cpp:
3203         (WebCore::Pattern::Pattern):
3204         Initializer for m_pattern.
3205         (WebCore::Pattern::~Pattern):
3206         call platformDestroy().
3207         (WebCore::Pattern::setPatternSpaceTransform):
3208         Pass along the transform via setPlatformPatternSpaceTransform().
3209         (WebCore::Pattern::platformDestroy):
3210         (WebCore::Pattern::setPlatformPatternSpaceTransform):
3211         Stub implementations for non-skia platforms.
3212         * platform/graphics/Pattern.h:
3213         * platform/graphics/skia/GraphicsContextSkia.cpp:
3214         (WebCore::GraphicsContext::setPlatformFillPattern):
3215         (WebCore::GraphicsContext::setPlatformStrokePattern):
3216         Call platformPattern() instead of static version.
3217         Since Pattern now owns its SkShader, no need to unref here.
3218         * platform/graphics/skia/PatternSkia.cpp:
3219         (WebCore::Pattern::platformDestroy):
3220         Unref the SkShader on destroy.
3221         (WebCore::Pattern::platformPattern):
3222         Create the platform pattern (SkShader) once, and cache it.
3223         (WebCore::Pattern::setPlatformPatternSpaceTransform):
3224         Set the shader's local matrix from the m_patternSpaceTransformation.
3225
3226 2010-02-01  Daniel Bates  <dbates@webkit.org>
3227
3228         Reviewed by Adam Barth.
3229
3230         https://bugs.webkit.org/show_bug.cgi?id=27312
3231
3232         Implements support for full page blocking via the X-XSS-Protection header.
3233
3234         Tests: http/tests/security/xssAuditor/full-block-base-href.html
3235                http/tests/security/xssAuditor/full-block-get-from-iframe.html
3236                http/tests/security/xssAuditor/full-block-iframe-javascript-url.html
3237                http/tests/security/xssAuditor/full-block-iframe-no-inherit.php
3238                http/tests/security/xssAuditor/full-block-javascript-link.html
3239                http/tests/security/xssAuditor/full-block-link-onclick.html
3240                http/tests/security/xssAuditor/full-block-object-tag.html
3241                http/tests/security/xssAuditor/full-block-post-from-iframe.html
3242                http/tests/security/xssAuditor/full-block-script-tag-with-source.html
3243                http/tests/security/xssAuditor/full-block-script-tag.html
3244                http/tests/security/xssAuditor/malformed-xss-protection-header.html
3245
3246         * page/XSSAuditor.cpp:
3247         (WebCore::XSSAuditor::shouldFullPageBlockForXSSProtectionHeader): Added.
3248         (WebCore::XSSAuditor::findInRequest): Modified to call method
3249         XSSAuditor::shouldFullPageBlockForXSSProtectionHeader.
3250         * page/XSSAuditor.h: Defined method shouldFullPageBlockForXSSProtectionHeader
3251         and fixed misspelled words in large comment block.
3252
3253 2010-02-01  Kwang Yul Seo  <skyul@company100.net>
3254
3255         Reviewed by Eric Seidel.
3256
3257         [BREWMP] Port SharedTimer with IShell_SetTimerEx.
3258         https://bugs.webkit.org/show_bug.cgi?id=33599
3259
3260         As fireTime passed in setSharedTimerFireTime is the absolute time,
3261         we must calcalute the interval by subtracting currentTime() from
3262         fireTime and pass the result to ISHELL_SetTimerEx.
3263
3264         * platform/brew/SharedTimerBrew.cpp: Added.
3265         (WebCore::invokeCallback):
3266         (WebCore::setSharedTimerFiredFunction):
3267         (WebCore::setSharedTimerFireTime):
3268         (WebCore::stopSharedTimer):
3269
3270 2010-02-01  Shinichiro Hamaji  <hamaji@chromium.org>
3271
3272         [Chromium] Unreviewed attempt to fix the chromium build.
3273
3274         Corresponding change: http://trac.webkit.org/changeset/54182
3275
3276         * bindings/scripts/CodeGeneratorV8.pm:
3277         * bindings/v8/ScriptController.cpp:
3278         (WebCore::ScriptController::processingUserGesture):
3279         * bindings/v8/ScriptController.h:
3280
3281 2010-02-01  Dmitry Titov  <dimich@chromium.org>
3282
3283         Reviewed by David Levin.
3284
3285         When a live iframe element is moved between pages, it still depends on the old page.
3286         https://bugs.webkit.org/show_bug.cgi?id=34382
3287
3288         Test: fast/frames/iframe-reparenting-new-page.html
3289
3290         * html/HTMLFrameElementBase.cpp:
3291         (WebCore::HTMLFrameElementBase::setName):
3292         Move the code setting the frame name into a separate function.
3293
3294         (WebCore::HTMLFrameElementBase::setNameAndOpenURL):
3295         (WebCore::HTMLFrameElementBase::updateLiveFrame):
3296         Update frame tree, reset page in the contentFrame and re-set the name.
3297
3298         (WebCore::HTMLFrameElementBase::insertedIntoDocument): 
3299         * html/HTMLFrameElementBase.h:
3300
3301         * page/Frame.cpp:
3302         (WebCore::Frame::setPage):
3303         * page/Frame.h: Add setPage method. It is only currently used when iframe is
3304                         moved between pages (so the ASSERT(m_ownerElement).
3305
3306 2010-02-01  Brady Eidson  <beidson@apple.com>
3307
3308         Reviewed by Tim Hatcher.
3309
3310         Add common IRC ports to port blocking.
3311         <rdar://problem/7593895> and https://bugs.webkit.org/show_bug.cgi?id=34451
3312
3313         * platform/KURL.cpp:
3314         (WebCore::portAllowed):
3315
3316 2010-01-29  Jeremy Orlow  <jorlow@chromium.org>
3317
3318         Reviewed by Nate Chapin.
3319
3320         [V8] Add compile time guards for IndexedDB custom functions
3321         https://bugs.webkit.org/show_bug.cgi?id=34368
3322
3323         * bindings/v8/custom/V8IDBRequestCustom.cpp:
3324         * bindings/v8/custom/V8IndexedDatabaseRequestCustom.cpp:
3325
3326 2010-01-29  Gavin Barraclough  <barraclough@apple.com>
3327
3328         Reviewed by Sam Weinig + Oliver Hunt.
3329
3330         Bug 34346 - With JSC bindings, make processingUserGesture work with events in Isolated Worlds
3331
3332         Change HTMLMediaElement methods that require checking whether the event is a user gesture to
3333         be passed a boolean.  This may be passed from the JSC bindings (where we have an exec state),
3334         or read from the event.  Add a Flag to the IDL to mark this information is required.
3335
3336         * WebCore.Video.exp:
3337         * bindings/js/JSDOMBinding.cpp:
3338         (WebCore::processingUserGesture):
3339         * bindings/js/JSDOMWindowCustom.cpp:
3340         (WebCore::domWindowAllowPopUp):
3341         (WebCore::JSDOMWindow::open):
3342         (WebCore::JSDOMWindow::showModalDialog):
3343         * bindings/js/JSDocumentCustom.cpp:
3344         (WebCore::JSDocument::setLocation):
3345         * bindings/js/ScriptController.cpp:
3346         (WebCore::ScriptController::processingUserGesture):
3347         (WebCore::ScriptController::processingUserGestureEvent):
3348         (WebCore::ScriptController::anyPageIsProcessingUserGesture):
3349         * bindings/js/ScriptController.h:
3350         * bindings/scripts/CodeGeneratorJS.pm:
3351         * dom/Event.cpp:
3352         (WebCore::Event::isUserEvent):
3353         * dom/Event.h:
3354         * html/HTMLMediaElement.cpp:
3355         (WebCore::HTMLMediaElement::removedFromDocument):
3356         (WebCore::HTMLMediaElement::load):
3357         (WebCore::HTMLMediaElement::play):
3358         (WebCore::HTMLMediaElement::pause):
3359         (WebCore::HTMLMediaElement::beginScrubbing):
3360         (WebCore::HTMLMediaElement::documentDidBecomeActive):
3361         (WebCore::HTMLMediaElement::webkitEnterFullScreen):
3362         * html/HTMLMediaElement.h:
3363         * html/HTMLMediaElement.idl:
3364         * loader/FrameLoader.cpp:
3365         (WebCore::FrameLoader::isProcessingUserGesture):
3366         * loader/MediaDocument.cpp:
3367         (WebCore::MediaDocument::defaultEventHandler):
3368         * page/DOMWindow.cpp:
3369         (WebCore::DOMWindow::allowPopUp):
3370         * rendering/MediaControlElements.cpp:
3371         (WebCore::MediaControlSeekButtonElement::defaultEventHandler):
3372
3373 2010-02-01  Andreas Kling  <andreas.kling@nokia.com>
3374
3375         Reviewed by Kenneth Rohde Christiansen.
3376
3377         [Qt] Use the fallback style on Maemo 5
3378
3379         https://bugs.webkit.org/show_bug.cgi?id=34376
3380
3381         * platform/qt/RenderThemeQt.cpp:
3382         (WebCore::RenderThemeQt::RenderThemeQt):
3383         (WebCore::RenderThemeQt::fallbackStyle):
3384         (WebCore::RenderThemeQt::qStyle):
3385         (WebCore::RenderThemeQt::setPaletteFromPageClientIfExists):
3386         * platform/qt/RenderThemeQt.h:
3387
3388 2010-02-01  Kavita Kanetkar  <kkanetkar@chromium.org>
3389
3390         Reviewed by Nate Chapin.
3391
3392         [V8] Making V8 generated classes' GetTemplate() function public
3393         https://bugs.webkit.org/show_bug.cgi?id=34026
3394
3395         * bindings/scripts/CodeGeneratorV8.pm: Generated code need not depend on V8CustomBinding.h, made GetTemplate() signature public.
3396
3397 2010-02-01  Steve Block  <steveblock@google.com>
3398
3399         Reviewed by Ariya Hidayat.
3400
3401         Adds V8-specific JNI bridge classes
3402         https://bugs.webkit.org/show_bug.cgi?id=34166
3403
3404         This is the V8 equivalent of bridge/jni/jsc/JNIBridgeJSC.
3405
3406         No new tests, build fix only.
3407
3408         * Android.v8bindings.mk: Modified. Added JNIBridge.cpp and JNIBridgeV8.cpp
3409         * bridge/Bridge.h: Modified. Added missing include for Noncopyable.h
3410         * bridge/jni/v8/JNIBridgeV8.cpp: Added.
3411         (JavaField::JavaField):
3412         * bridge/jni/v8/JNIBridgeV8.h: Added.
3413         (JSC::Bindings::JavaField::name):
3414         (JSC::Bindings::JavaField::type):
3415         (JSC::Bindings::JavaField::getJNIType):
3416
3417 2010-02-01  Steve Block  <steveblock@google.com>
3418
3419         Reviewed by Ariya Hidayat.
3420
3421         Adds V8-specific JNI utility functions.
3422         https://bugs.webkit.org/show_bug.cgi?id=33901
3423
3424         This is the V8 equivalent of bridge/jni/jsc/JNIUtilityPrivate.
3425
3426         No new tests, build fix only.
3427
3428         * Android.v8bindings.mk: Modified. Add JNIUtilityPrivate.cpp
3429         * bridge/jni/v8/JNIUtilityPrivate.cpp: Added.
3430         (JSC::Bindings::convertNPVariantToJValue):
3431         (JSC::Bindings::convertJValueToNPVariant):
3432         * bridge/jni/v8/JNIUtilityPrivate.h: Added.
3433
3434 2010-02-01  Steve Block  <steveblock@google.com>
3435
3436         Reviewed by Ariya Hidayat.
3437
3438         Adds V8 version of JavaClass
3439         https://bugs.webkit.org/show_bug.cgi?id=33898
3440
3441         This is the V8 equivalent of bridge/jni/jsc/JavaClassJSC
3442
3443         No new tests, build fix only.
3444
3445         * Android.v8bindings.mk: Modified. Added JavaClassV8.cpp
3446         * bridge/jni/v8/JavaClassV8.cpp: Added.
3447         (JavaClass::JavaClass):
3448         (JavaClass::~JavaClass):
3449         (JavaClass::methodsNamed):
3450         (JavaClass::fieldNamed):
3451         * bridge/jni/v8/JavaClassV8.h: Added.
3452
3453 2010-02-01  Steve Block  <steveblock@google.com>
3454
3455         Reviewed by Ariya Hidayat.
3456
3457         Adds V8 version of JavaInstance
3458         https://bugs.webkit.org/show_bug.cgi?id=33951
3459
3460         This is the V8 equivalent of bridge/jni/jsc/JavaInstanceJSC.
3461         Also fixes a typo in a comment in JavaInstanceJSC.cpp.
3462
3463         No new tests, build fix only.
3464
3465         * Android.v8bindings.mk: Modified. Added JavaInstanceV8.cpp
3466         * bridge/jni/jsc/JavaInstanceJSC.cpp: Modified.
3467         (JavaInstance::invokeMethod): Modified. Fixed comment
3468         * bridge/jni/v8/JavaInstanceV8.cpp: Added.
3469         (JavaInstance::JavaInstance):
3470         (JavaInstance::~JavaInstance):
3471         (JavaInstance::getClass):
3472         (JavaInstance::invokeMethod):
3473         (JObjectWrapper::JObjectWrapper):
3474         (JObjectWrapper::~JObjectWrapper):
3475         * bridge/jni/v8/JavaInstanceV8.h: Added.
3476         (JSC::Bindings::JObjectWrapper::instance):
3477         (JSC::Bindings::JObjectWrapper::setInstance):
3478         (JSC::Bindings::JObjectWrapper::ref):
3479         (JSC::Bindings::JObjectWrapper::deref):
3480         (JSC::Bindings::JavaInstance::javaInstance):
3481         (JSC::Bindings::JavaInstance::begin):
3482         (JSC::Bindings::JavaInstance::end):
3483         (JSC::Bindings::JavaInstance::virtualBegin):
3484         (JSC::Bindings::JavaInstance::virtualEnd):
3485
3486 2010-02-01  Dumitru Daniliuc  <dumi@chromium.org>
3487
3488         Reviewed by Eric Seidel.
3489
3490         Making sure that all in-progress transactions are rolled back on
3491         the database thread before they're destroyed. Otherwise,
3492         SQLiteTransaction's destructor will try to do a rollback and that
3493         would cause an assertion failure, if the object is not destroyed
3494         on the DB thread.
3495
3496         https://bugs.webkit.org/show_bug.cgi?id=34152
3497
3498         * platform/sql/SQLiteTransaction.cpp:
3499         (WebCore::SQLiteTransaction::stop):
3500         * storage/SQLTransaction.cpp:
3501         (WebCore::SQLTransaction::notifyDatabaseThreadIsShuttingDown):
3502         * storage/SQLTransaction.h:
3503         * storage/SQLTransactionCoordinator.cpp:
3504         (WebCore::SQLTransactionCoordinator::shutdown):
3505
3506 2010-02-01  Sam Weinig  <sam@webkit.org>
3507
3508         Reviewed by Beth Dakin.
3509
3510         Fix EXPERIMENTAL_SINGLE_VIEW_MODE build.
3511
3512         * page/EventHandler.h:
3513         * page/mac/EventHandlerMac.mm:
3514         (WebCore::EventHandler::currentNSEvent):
3515         (WebCore::EventHandler::currentKeyboardEvent):
3516         (WebCore::EventHandler::mouseDown):
3517         (WebCore::EventHandler::mouseDragged):
3518         (WebCore::EventHandler::mouseUp):
3519         (WebCore::EventHandler::mouseMoved):
3520         (WebCore::EventHandler::keyEvent):
3521         (WebCore::EventHandler::wheelEvent):
3522         (WebCore::EventHandler::sendContextMenuEvent):
3523         (WebCore::EventHandler::eventMayStartDrag):
3524         (WebCore::EventHandler::sendFakeEventsAfterWidgetTracking):
3525
3526 2010-02-01  Nate Chapin  <japhet@chromium.org>
3527
3528         Unreviewed, Chromium build fix.
3529
3530         Failed to properly add new files for http://trac.webkit.org/changeset/54150.
3531
3532         * bindings/v8/custom/V8BarInfoCustom.cpp: Added.
3533         * bindings/v8/custom/V8CSSRuleCustom.cpp: Added.
3534         * bindings/v8/custom/V8CSSStyleSheetCustom.cpp: Added.
3535         * bindings/v8/custom/V8CSSValueCustom.cpp: Added.
3536         * bindings/v8/custom/V8CanvasPixelArrayCustom.cpp: Added.
3537         * bindings/v8/custom/V8DOMSelectionCustom.cpp: Added.
3538         * bindings/v8/custom/V8HTMLElementCustom.cpp: Added.
3539         * bindings/v8/custom/V8SVGDocumentCustom.cpp: Added.
3540         * bindings/v8/custom/V8SVGElementCustom.cpp: Added.
3541         * bindings/v8/custom/V8SVGPathSegCustom.cpp: Added.
3542         * bindings/v8/custom/V8ScreenCustom.cpp: Added.
3543         * bindings/v8/custom/V8StyleSheetCustom.cpp: Added.
3544         * bindings/v8/custom/V8WebGLArrayCustom.cpp: Added.
3545
3546 2010-01-27  Matt Perry  <mpcomplete@chromium.org>
3547
3548         Reviewed by Eric Seidel.
3549
3550         Add support for addUserScript to chromium port.
3551
3552         * bindings/v8/ScriptController.cpp:
3553         (WebCore::ScriptController::evaluateInWorld):
3554         * bindings/v8/ScriptController.h:
3555
3556 2010-02-01  Eric Carlson  <eric.carlson@apple.com>
3557
3558         Reviewed by Dan Bernstein.
3559
3560         https://bugs.webkit.org/show_bug.cgi?id=34448
3561         <rdar://problem/7598130>
3562
3563         RenderVideo::intrinsicSizeChanged infinite recursion
3564
3565         * rendering/RenderImage.h:
3566         (WebCore::RenderImage::intrinsicSizeChanged): Make protected instead of private so it can
3567             be called by RenderVideo.
3568         * rendering/RenderVideo.cpp:
3569         (WebCore::RenderVideo::intrinsicSizeChanged): Call RenderMedia::intrinsicSizeChanged, not
3570             RenderVideo::intrinsicSizeChanged.
3571         (WebCore::RenderVideo::imageChanged): Call RenderMedia::imageChanged instead of 
3572             RenderImage::imageChanged.
3573
3574 2010-02-01  Nate Chapin  <japhet@chromium.org>
3575
3576         Reviewed by Dimitri Glazkov.
3577
3578         [V8] Generate toV8() converter for most WebCore->V8 conversions,
3579         and defined custom converters in their respective V8<class>Custom.cpp.
3580