b80d53888d7b8a7ae68e56fc15f781b29ef52820
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-07-10  Dan Bernstein  <mitz@apple.com>
2
3         <rdar://problem/9750062> REGRESSION: Button text missing in many iTunes Store pages
4         https://bugs.webkit.org/show_bug.cgi?id=64236
5
6         Reviewed by Maciej Stachowiak.
7
8         Test: fast/css/empty-display-none.html
9
10         When an :empty selector caused an element to not have a renderer, the check for empty style
11         change when finishing parsing the elemenet did nothing, because it could not check if the
12         element’s current style was affected by :empty. The fix is to record the fact that the style
13         was affected by :empty in ElementRareData in the no-renderer case.
14
15         * dom/Element.cpp:
16         (WebCore::Element::recalcStyle): Clear the m_styleAffectedByEmpty flag.
17         (WebCore::checkForEmptyStyleChange): If the style is null (meaning there is no renderer), check
18         Element::styleAffectedByEmpty().
19         (WebCore::Element::setStyleAffectedByEmpty): Added. Sets the flag in rare data.
20         (WebCore::Element::styleAffectedByEmpty): Added. Checks for the flag in rare data.
21         * dom/Element.h:
22         * dom/ElementRareData.h:
23         (WebCore::ElementRareData::ElementRareData): Added m_styleAffectedByEmpty and initialized it
24         to false.
25         * dom/NodeRenderingContext.cpp:
26         (WebCore::NodeRendererFactory::createRendererAndStyle): If an element doesn’t need a renderer
27         and its style is affected by :empty, record this fact in the element by calling setStyleAffectedByEmpty().
28
29 2011-07-10  Mark Rowe  <mrowe@apple.com>
30
31         Fix the build.
32
33         * svg/properties/SVGAttributeToPropertyMap.h: Forward-declare SVGPropertyInfo as a struct
34         since that's what it is.
35
36 2011-07-09  Patrick Gansterer  <paroga@webkit.org>
37
38         Unreviewed WinCE build fix for r90680.
39
40         Repeat the change done in r90681 for all other SVGAnimated*PropertyTearOff.h files.
41
42         * svg/properties/SVGAnimatedEnumerationPropertyTearOff.h: Make create public and remove friendship with SVGAnimatedProperty.
43         * svg/properties/SVGAnimatedListPropertyTearOff.h: Ditto.
44         * svg/properties/SVGAnimatedPathSegListPropertyTearOff.h: Ditto.
45         * svg/properties/SVGAnimatedPropertyTearOff.h: Ditto.
46         * svg/properties/SVGAnimatedTransformListPropertyTearOff.h: Ditto.
47
48 2011-07-09  Nikolas Zimmermann  <nzimmermann@rim.com>
49
50         Add a possibility to retrieve the associated SVGAnimatedProperty object for a certain XML attribute
51         https://bugs.webkit.org/show_bug.cgi?id=63797
52
53         Fix WinCE build. Funny none other platform complained.
54
55         * svg/properties/SVGAnimatedStaticPropertyTearOff.h: Make create public, SVGAnimatedProperty needs it - remove friendship with it.
56
57 2011-07-09  Nikolas Zimmermann  <nzimmermann@rim.com>
58
59         Add a possibility to retrieve the associated SVGAnimatedProperty object for a certain XML attribute
60         https://bugs.webkit.org/show_bug.cgi?id=63797
61
62         Reviewed by Dirk Schulze.
63
64         In order to prepare animVal support we need a way to map a given SVG DOM attribute to a SVGAnimatedProperty.
65         eg. SVGNames::xAttr -> SVGRectElement::xAnimated(), etc. This will be needed to update the animVal of the
66         SVGAnimatedProperty, if an animation is running. It would required adding a new method to all SVG* classes
67         that define animated properties. Unfortunately we already have lots of repeated code in methods like
68         synchronizeProperty / fillAttributeToPropertyTypeMap. Look at SVGRectElement for example:
69
70         void SVGRectElement::synchronizeProperty(const QualifiedName& attrName)
71         {
72             if (attrName == anyQName()) {
73                 synchronizeX();
74                 synchronizeY();
75                  ...
76               }
77
78             if (attrName == SVGNames::xAttr) {
79                 synchronizeX();
80                 return;
81             }
82
83             if (attrName == SVGNames::yAttr) {
84                 synchronizeY();
85                 return;
86             }
87             ...
88         }
89
90         or
91
92         void SVGRectElement::fillAttributeToPropertyTypeMap()
93         {
94             AttributeToPropertyTypeMap& attributeToPropertyTypeMap = this->attributeToPropertyTypeMap();
95         
96             SVGStyledTransformableElement::fillPassedAttributeToPropertyTypeMap(attributeToPropertyTypeMap);
97             attributeToPropertyTypeMap.set(SVGNames::xAttr, AnimatedLength);
98             attributeToPropertyTypeMap.set(SVGNames::yAttr, AnimatedLength);
99             ...
100         }
101
102         These lookups are all performed dynamically. Each synchronizeProperty() call does a lot of comparisons.
103         fillAttributeToPropertyTypeMap() isn't that bad as the result is cached in a static HashMap per-SVGRectElement.
104         There's no reason to do these things dynamically!
105
106         Inspired by JSC, I'm adding a "static const SVGPropertyInfo s_fooPropertyInfo" object for each animated SVG property.
107         For example, for SVGRectElements SVGAnimatedLength x property we're storing:
108         - "AnimatedPropertyType type" (AnimatedLength -- note the enum was named AnimatedAttributeType, I renamed it to AnimatedPropertyType for clarity)
109         - "const QualifiedName& attributeName" (SVGNames::xAttr)
110         - "const AtomicString& propertyIdentifier" (SVGNames::xAttr.localName() -- only different if N-wrappers map to a single XML DOM attribute, eg. orientAttr)
111         - "SynchronizeProperty synchronizeProperty" (callback to SVGRectElement::synchronizeX)
112         - "LookupOrCreateWrapperForAnimatedProperty lookupOrCreateWrapperForAnimatedProperty" (callback to SVGRectElement::xAnimated)
113
114         Using this information, we can replace all the various synchronizeProperty/fillAttributeToPropertyMap implementations, with a single one in SVGElement.
115         All these are auto-generated, using the standard macros used to define/declare SVG animated properties. This required several changes to the macros.
116         Here's a summary:
117     
118         #1) In all headers, wrap DECLARE_ANIMATED_* calls, in BEGIN_DECLARE_ANIMATED_PROPERTIES(ClassName) / END_DECLARE_ANIMATED_PROPERTIES blocks.
119         
120             Sample change for SVGRectElement:
121             -    DECLARE_ANIMATED_LENGTH(X, x)
122             -    DECLARE_ANIMATED_LENGTH(Y, y)
123             -    ...
124
125             +    BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGRectElement)
126             +        DECLARE_ANIMATED_LENGTH(X, x)
127             +        DECLARE_ANIMATED_LENGTH(Y, y)
128             +         ...
129             +    END_DECLARE_ANIMATED_PROPERTIES
130
131         #2) In all cpp files, add a new section wrapped in BEGIN_REGISTER_ANIMATED_PROPERTIES(ClassName / END_REGISTER_ANIMATED_PROPERTIES blocks:
132
133             Sample change for SVGRectElement:
134             +BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGRectElement)
135             +    REGISTER_LOCAL_ANIMATED_PROPERTY(x)
136             +    REGISTER_LOCAL_ANIMATED_PROPERTY(y)
137             +    ...
138             +    REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledTransformableElement)
139             +    REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests)
140             +END_REGISTER_ANIMATED_PROPERTIES
141
142             This is the main piece of the logic that replaces the manual synchronizeProperty/fillAttributeToPropertyMap implementation. It expands to following:
143
144             SVGAttributeToPropertyMap& SVGRectElement::attributeToPropertyMap()
145             {
146                 DEFINE_STATIC_LOCAL(SVGAttributeToPropertyMap, s_attributeToPropertyMap, ());
147             }
148
149             static void registerAnimatedPropertiesForSVGRectElement()
150             {
151                 SVGAttributeToPropertyMap& map = SVGRectElement::attributeToPropertyMap();
152                 if (!map.isEmpty())
153                     return;
154                 map.addProperty(SVGRectElement::xPropertyInfo());
155                 map.addProperty(SVGRectElement::yPropertyInfo());
156                 ...
157                 map.addProperties(SVGStyledTransformableElement::attributeToPropertyMap());
158                 map.addProperties(SVGTests::attributeToPropertyMap());
159             }
160
161             A single-instance of SVGAttributeToPropertyMap is created for each SVG*Element. The constructor of SVGRectElement is supposed to call
162             registerAnimatedPropertiesForSVGRectElement(), which collects all properties of SVGRectElement and all its parent classes and stores them
163             in a Vector<const SVGPropertyInfo*>. This Vector is stored in a HashMap<QualifiedName, Vector<const SVGPropertyInfo*> > where the key
164             is the attribute name (eg. SVGNames::xAttr -> SVGRectElement::xPropertyInfo). This is only done _once_ per SVGRectElement.
165
166             SVGElement contains a "virtual SVGAttributeToPropertyMap& localAttributeToPropertyMap()" method, and SVGRectElement overrides it
167             and returns SVGRectElement::attributeToPropertyMap() (which is static!) -- this is hidden again in the macros, no need to write any code.
168
169             SVGAttributeToPropertyMap provides following API:
170             - bool synchronizeProperty(SVGElement* contextElement, const QualifiedName& attributeName)
171             - void synchronizeProperties(SVGElement* contextElement)
172             
173                 A generic way to synchronize a SVGAnimatedProperty with its XML DOM attribute. Any SVG DOM change to eg. <rect>s x property will now trigger
174                 contextElement->localAttributeToPropertyMap().synchronizeProperty(this, SVGNames::xAttr)
175                 The SVGAttributeToPropertyMap will ask its HashMap for the Vector containing the properties for SVGNames::xAttr (in that case, just one xAnimated()).
176
177             - void animatedPropertyTypeForAttribute(const QualifiedName& attributeName, Vector<AnimatedPropertyType>& propertyTypes)
178
179                 This method replaces the fillAttributeToPropertyMap implementations everywhere.
180         
181             - void animatedPropertiesForAttribute(SVGElement* contextElement, const QualifiedName& attributeName, Vector<RefPtr<SVGAnimatedProperty> >& properties);
182
183                 This method is not used yet, but allows us to collect all SVGAnimatedProperties for a QualifiedName -- the initial goal for this patch.
184
185         #3) In all cpp files, add a call to "registerAnimatedPropertiesForClassName()" in the constructor. Forgetting this will result in a compile error.
186
187         Doesn't affect any tests.
188
189         * CMakeLists.txt:
190         * GNUmakefile.list.am:
191         * WebCore.gypi:
192         * WebCore.pro:
193         * WebCore.vcproj/WebCore.vcproj:
194         * WebCore.xcodeproj/project.pbxproj:
195         * bindings/scripts/CodeGeneratorJS.pm:
196         (NativeToJSValue):
197         * bindings/scripts/CodeGeneratorObjC.pm:
198         (GenerateImplementation):
199         * bindings/scripts/CodeGeneratorV8.pm:
200         (GenerateNormalAttrGetter):
201         * svg/SVGAElement.cpp:
202         (WebCore::SVGAElement::SVGAElement):
203         * svg/SVGAElement.h:
204         (WebCore::SVGAElement::synchronizeRequiredFeatures):
205         (WebCore::SVGAElement::synchronizeRequiredExtensions):
206         (WebCore::SVGAElement::synchronizeSystemLanguage):
207         * svg/SVGAltGlyphElement.cpp:
208         (WebCore::SVGAltGlyphElement::SVGAltGlyphElement):
209         * svg/SVGAltGlyphElement.h:
210         * svg/SVGAnimateElement.cpp:
211         (WebCore::SVGAnimateElement::SVGAnimateElement):
212         (WebCore::SVGAnimateElement::hasValidAttributeType):
213         (WebCore::SVGAnimateElement::determineAnimatedPropertyType):
214         (WebCore::SVGAnimateElement::determinePropertyValueTypes):
215         (WebCore::SVGAnimateElement::calculateAnimatedValue):
216         (WebCore::SVGAnimateElement::calculateFromAndToValues):
217         (WebCore::SVGAnimateElement::calculateFromAndByValues):
218         (WebCore::SVGAnimateElement::resetToBaseValue):
219         (WebCore::SVGAnimateElement::applyResultsToTarget):
220         (WebCore::SVGAnimateElement::calculateDistance):
221         (WebCore::SVGAnimateElement::ensureAnimator):
222         * svg/SVGAnimateElement.h:
223         * svg/SVGAnimateTransformElement.cpp:
224         (WebCore::SVGAnimateTransformElement::hasValidAttributeType):
225         (WebCore::SVGAnimateTransformElement::determineAnimatedPropertyType):
226         (WebCore::SVGAnimateTransformElement::resetToBaseValue):
227         (WebCore::SVGAnimateTransformElement::calculateAnimatedValue):
228         (WebCore::SVGAnimateTransformElement::applyResultsToTarget):
229         * svg/SVGAnimateTransformElement.h:
230         * svg/SVGAnimatedAngle.h:
231         * svg/SVGAnimatedBoolean.h:
232         * svg/SVGAnimatedEnumeration.h:
233         * svg/SVGAnimatedInteger.h:
234         * svg/SVGAnimatedLength.h:
235         * svg/SVGAnimatedLengthList.h:
236         * svg/SVGAnimatedNumber.h:
237         * svg/SVGAnimatedNumberList.h:
238         * svg/SVGAnimatedPreserveAspectRatio.h:
239         * svg/SVGAnimatedRect.h:
240         * svg/SVGAnimatedString.h:
241         * svg/SVGAnimatedTransformList.h:
242         * svg/SVGAnimatedType.cpp:
243         (WebCore::SVGAnimatedType::SVGAnimatedType):
244         * svg/SVGAnimatedType.h:
245         (WebCore::SVGAnimatedType::type):
246         * svg/SVGAnimatedTypeAnimator.h:
247         (WebCore::SVGAnimatedTypeAnimator::SVGAnimatedTypeAnimator):
248         * svg/SVGAnimationElement.cpp:
249         (WebCore::SVGAnimationElement::SVGAnimationElement):
250         (WebCore::SVGAnimationElement::currentValuesForValuesAnimation):
251         * svg/SVGAnimationElement.h:
252         (WebCore::SVGAnimationElement::synchronizeRequiredFeatures):
253         (WebCore::SVGAnimationElement::synchronizeRequiredExtensions):
254         (WebCore::SVGAnimationElement::synchronizeSystemLanguage):
255         * svg/SVGAnimatorFactory.h:
256         (WebCore::SVGAnimatorFactory::create):
257         * svg/SVGCircleElement.cpp:
258         (WebCore::SVGCircleElement::SVGCircleElement):
259         * svg/SVGCircleElement.h:
260         (WebCore::SVGCircleElement::synchronizeRequiredFeatures):
261         (WebCore::SVGCircleElement::synchronizeRequiredExtensions):
262         (WebCore::SVGCircleElement::synchronizeSystemLanguage):
263         * svg/SVGClipPathElement.cpp:
264         (WebCore::SVGClipPathElement::SVGClipPathElement):
265         * svg/SVGClipPathElement.h:
266         (WebCore::SVGClipPathElement::synchronizeRequiredFeatures):
267         (WebCore::SVGClipPathElement::synchronizeRequiredExtensions):
268         (WebCore::SVGClipPathElement::synchronizeSystemLanguage):
269         * svg/SVGComponentTransferFunctionElement.cpp:
270         (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
271         * svg/SVGComponentTransferFunctionElement.h:
272         * svg/SVGCursorElement.cpp:
273         (WebCore::SVGCursorElement::SVGCursorElement):
274         * svg/SVGCursorElement.h:
275         (WebCore::SVGCursorElement::synchronizeRequiredFeatures):
276         (WebCore::SVGCursorElement::synchronizeRequiredExtensions):
277         (WebCore::SVGCursorElement::synchronizeSystemLanguage):
278         * svg/SVGDefsElement.cpp:
279         (WebCore::SVGDefsElement::SVGDefsElement):
280         * svg/SVGDefsElement.h:
281         (WebCore::SVGDefsElement::synchronizeRequiredFeatures):
282         (WebCore::SVGDefsElement::synchronizeRequiredExtensions):
283         (WebCore::SVGDefsElement::synchronizeSystemLanguage):
284         * svg/SVGElement.cpp:
285         (WebCore::SVGElement::animatedPropertyTypeForAttribute):
286         (WebCore::SVGElement::updateAnimatedSVGAttribute):
287         (WebCore::SVGElement::localAttributeToPropertyMap):
288         (WebCore::SVGElement::synchronizeRequiredFeatures):
289         (WebCore::SVGElement::synchronizeRequiredExtensions):
290         (WebCore::SVGElement::synchronizeSystemLanguage):
291         * svg/SVGElement.h:
292         (WebCore::SVGElement::svgAttributeChanged):
293         (WebCore::SVGElement::synchronizeRequiredFeatures):
294         (WebCore::SVGElement::synchronizeRequiredExtensions):
295         (WebCore::SVGElement::synchronizeSystemLanguage):
296         * svg/SVGEllipseElement.cpp:
297         (WebCore::SVGEllipseElement::SVGEllipseElement):
298         * svg/SVGEllipseElement.h:
299         (WebCore::SVGEllipseElement::synchronizeRequiredFeatures):
300         (WebCore::SVGEllipseElement::synchronizeRequiredExtensions):
301         (WebCore::SVGEllipseElement::synchronizeSystemLanguage):
302         * svg/SVGFEBlendElement.cpp:
303         (WebCore::SVGFEBlendElement::SVGFEBlendElement):
304         * svg/SVGFEBlendElement.h:
305         * svg/SVGFEColorMatrixElement.cpp:
306         (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
307         * svg/SVGFEColorMatrixElement.h:
308         * svg/SVGFEComponentTransferElement.cpp:
309         (WebCore::SVGFEComponentTransferElement::SVGFEComponentTransferElement):
310         * svg/SVGFEComponentTransferElement.h:
311         * svg/SVGFECompositeElement.cpp:
312         (WebCore::SVGFECompositeElement::SVGFECompositeElement):
313         * svg/SVGFECompositeElement.h:
314         * svg/SVGFEConvolveMatrixElement.cpp:
315         (WebCore::SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement):
316         * svg/SVGFEConvolveMatrixElement.h:
317         * svg/SVGFEDiffuseLightingElement.cpp:
318         (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
319         * svg/SVGFEDiffuseLightingElement.h:
320         * svg/SVGFEDisplacementMapElement.cpp:
321         (WebCore::SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
322         * svg/SVGFEDisplacementMapElement.h:
323         * svg/SVGFEDropShadowElement.cpp:
324         (WebCore::SVGFEDropShadowElement::SVGFEDropShadowElement):
325         * svg/SVGFEDropShadowElement.h:
326         * svg/SVGFEFloodElement.cpp:
327         * svg/SVGFEFloodElement.h:
328         * svg/SVGFEGaussianBlurElement.cpp:
329         (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
330         * svg/SVGFEGaussianBlurElement.h:
331         * svg/SVGFEImageElement.cpp:
332         (WebCore::SVGFEImageElement::SVGFEImageElement):
333         * svg/SVGFEImageElement.h:
334         * svg/SVGFELightElement.cpp:
335         (WebCore::SVGFELightElement::SVGFELightElement):
336         * svg/SVGFELightElement.h:
337         * svg/SVGFEMergeElement.cpp:
338         * svg/SVGFEMergeElement.h:
339         * svg/SVGFEMergeNodeElement.cpp:
340         (WebCore::SVGFEMergeNodeElement::SVGFEMergeNodeElement):
341         * svg/SVGFEMergeNodeElement.h:
342         * svg/SVGFEMorphologyElement.cpp:
343         (WebCore::SVGFEMorphologyElement::SVGFEMorphologyElement):
344         * svg/SVGFEMorphologyElement.h:
345         * svg/SVGFEOffsetElement.cpp:
346         (WebCore::SVGFEOffsetElement::SVGFEOffsetElement):
347         * svg/SVGFEOffsetElement.h:
348         * svg/SVGFESpecularLightingElement.cpp:
349         (WebCore::SVGFESpecularLightingElement::SVGFESpecularLightingElement):
350         * svg/SVGFESpecularLightingElement.h:
351         * svg/SVGFETileElement.cpp:
352         (WebCore::SVGFETileElement::SVGFETileElement):
353         * svg/SVGFETileElement.h:
354         * svg/SVGFETurbulenceElement.cpp:
355         (WebCore::SVGFETurbulenceElement::SVGFETurbulenceElement):
356         * svg/SVGFETurbulenceElement.h:
357         * svg/SVGFilterElement.cpp:
358         (WebCore::SVGFilterElement::SVGFilterElement):
359         * svg/SVGFilterElement.h:
360         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
361         (WebCore::SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes):
362         * svg/SVGFilterPrimitiveStandardAttributes.h:
363         * svg/SVGFitToViewBox.cpp:
364         * svg/SVGFitToViewBox.h:
365         * svg/SVGFontElement.cpp:
366         (WebCore::SVGFontElement::SVGFontElement):
367         * svg/SVGFontElement.h:
368         (WebCore::SVGFontElement::rendererIsNeeded):
369         * svg/SVGForeignObjectElement.cpp:
370         (WebCore::SVGForeignObjectElement::SVGForeignObjectElement):
371         * svg/SVGForeignObjectElement.h:
372         (WebCore::SVGForeignObjectElement::synchronizeRequiredFeatures):
373         (WebCore::SVGForeignObjectElement::synchronizeRequiredExtensions):
374         (WebCore::SVGForeignObjectElement::synchronizeSystemLanguage):
375         * svg/SVGGElement.cpp:
376         (WebCore::SVGGElement::SVGGElement):
377         * svg/SVGGElement.h:
378         (WebCore::SVGGElement::synchronizeRequiredFeatures):
379         (WebCore::SVGGElement::synchronizeRequiredExtensions):
380         (WebCore::SVGGElement::synchronizeSystemLanguage):
381         * svg/SVGGlyphElement.cpp:
382         * svg/SVGGlyphElement.h:
383         * svg/SVGGradientElement.cpp:
384         (WebCore::SVGGradientElement::SVGGradientElement):
385         (WebCore::SVGGradientElement::svgAttributeChanged):
386         * svg/SVGGradientElement.h:
387         * svg/SVGImageElement.cpp:
388         (WebCore::SVGImageElement::SVGImageElement):
389         * svg/SVGImageElement.h:
390         (WebCore::SVGImageElement::synchronizeRequiredFeatures):
391         (WebCore::SVGImageElement::synchronizeRequiredExtensions):
392         (WebCore::SVGImageElement::synchronizeSystemLanguage):
393         * svg/SVGLineElement.cpp:
394         (WebCore::SVGLineElement::SVGLineElement):
395         * svg/SVGLineElement.h:
396         (WebCore::SVGLineElement::synchronizeRequiredFeatures):
397         (WebCore::SVGLineElement::synchronizeRequiredExtensions):
398         (WebCore::SVGLineElement::synchronizeSystemLanguage):
399         * svg/SVGLinearGradientElement.cpp:
400         (WebCore::SVGLinearGradientElement::SVGLinearGradientElement):
401         * svg/SVGLinearGradientElement.h:
402         * svg/SVGMPathElement.cpp:
403         (WebCore::SVGMPathElement::SVGMPathElement):
404         * svg/SVGMPathElement.h:
405         * svg/SVGMarkerElement.cpp:
406         (WebCore::SVGMarkerElement::orientTypePropertyInfo):
407         (WebCore::SVGMarkerElement::SVGMarkerElement):
408         (WebCore::SVGMarkerElement::setOrientToAuto):
409         (WebCore::SVGMarkerElement::setOrientToAngle):
410         (WebCore::SVGMarkerElement::synchronizeOrientType):
411         (WebCore::SVGMarkerElement::lookupOrCreateOrientTypeWrapper):
412         (WebCore::SVGMarkerElement::orientTypeAnimated):
413         * svg/SVGMarkerElement.h:
414         * svg/SVGMaskElement.cpp:
415         (WebCore::SVGMaskElement::SVGMaskElement):
416         * svg/SVGMaskElement.h:
417         (WebCore::SVGMaskElement::synchronizeRequiredFeatures):
418         (WebCore::SVGMaskElement::synchronizeRequiredExtensions):
419         (WebCore::SVGMaskElement::synchronizeSystemLanguage):
420         * svg/SVGMissingGlyphElement.cpp:
421         * svg/SVGMissingGlyphElement.h:
422         * svg/SVGPathElement.cpp:
423         (WebCore::SVGPathElement::dPropertyInfo):
424         (WebCore::SVGPathElement::SVGPathElement):
425         (WebCore::SVGPathElement::svgAttributeChanged):
426         (WebCore::SVGPathElement::lookupOrCreateDWrapper):
427         (WebCore::SVGPathElement::synchronizeD):
428         (WebCore::SVGPathElement::pathSegList):
429         (WebCore::SVGPathElement::animatedPathSegList):
430         * svg/SVGPathElement.h:
431         (WebCore::SVGPathElement::pathByteStream):
432         (WebCore::SVGPathElement::synchronizeRequiredFeatures):
433         (WebCore::SVGPathElement::synchronizeRequiredExtensions):
434         (WebCore::SVGPathElement::synchronizeSystemLanguage):
435         * svg/SVGPathSegWithContext.h:
436         (WebCore::SVGPathSegWithContext::animatedProperty):
437         * svg/SVGPatternElement.cpp:
438         (WebCore::SVGPatternElement::SVGPatternElement):
439         * svg/SVGPatternElement.h:
440         (WebCore::SVGPatternElement::synchronizeRequiredFeatures):
441         (WebCore::SVGPatternElement::synchronizeRequiredExtensions):
442         (WebCore::SVGPatternElement::synchronizeSystemLanguage):
443         * svg/SVGPolyElement.cpp:
444         (WebCore::SVGPolyElement::pointsPropertyInfo):
445         (WebCore::SVGPolyElement::SVGPolyElement):
446         (WebCore::SVGPolyElement::parseMappedAttribute):
447         (WebCore::SVGPolyElement::synchronizePoints):
448         (WebCore::SVGPolyElement::lookupOrCreatePointsWrapper):
449         (WebCore::SVGPolyElement::points):
450         (WebCore::SVGPolyElement::animatedPoints):
451         * svg/SVGPolyElement.h:
452         (WebCore::SVGPolyElement::synchronizeRequiredFeatures):
453         (WebCore::SVGPolyElement::synchronizeRequiredExtensions):
454         (WebCore::SVGPolyElement::synchronizeSystemLanguage):
455         * svg/SVGRadialGradientElement.cpp:
456         (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
457         * svg/SVGRadialGradientElement.h:
458         * svg/SVGRectElement.cpp:
459         (WebCore::SVGRectElement::SVGRectElement):
460         * svg/SVGRectElement.h:
461         (WebCore::SVGRectElement::synchronizeRequiredFeatures):
462         (WebCore::SVGRectElement::synchronizeRequiredExtensions):
463         (WebCore::SVGRectElement::synchronizeSystemLanguage):
464         * svg/SVGSVGElement.cpp:
465         (WebCore::SVGSVGElement::SVGSVGElement):
466         * svg/SVGSVGElement.h:
467         (WebCore::SVGSVGElement::synchronizeRequiredFeatures):
468         (WebCore::SVGSVGElement::synchronizeRequiredExtensions):
469         (WebCore::SVGSVGElement::synchronizeSystemLanguage):
470         * svg/SVGScriptElement.cpp:
471         (WebCore::SVGScriptElement::SVGScriptElement):
472         * svg/SVGScriptElement.h:
473         * svg/SVGStopElement.cpp:
474         (WebCore::SVGStopElement::SVGStopElement):
475         * svg/SVGStopElement.h:
476         * svg/SVGStyledElement.cpp:
477         (WebCore::SVGStyledElement::SVGStyledElement):
478         (WebCore::cssPropertyToTypeMap):
479         (WebCore::SVGStyledElement::animatedPropertyTypeForAttribute):
480         * svg/SVGStyledElement.h:
481         * svg/SVGStyledTransformableElement.cpp:
482         (WebCore::SVGStyledTransformableElement::SVGStyledTransformableElement):
483         * svg/SVGStyledTransformableElement.h:
484         * svg/SVGSwitchElement.cpp:
485         (WebCore::SVGSwitchElement::SVGSwitchElement):
486         * svg/SVGSwitchElement.h:
487         (WebCore::SVGSwitchElement::synchronizeRequiredFeatures):
488         (WebCore::SVGSwitchElement::synchronizeRequiredExtensions):
489         (WebCore::SVGSwitchElement::synchronizeSystemLanguage):
490         * svg/SVGSymbolElement.cpp:
491         (WebCore::SVGSymbolElement::SVGSymbolElement):
492         * svg/SVGSymbolElement.h:
493         * svg/SVGTRefElement.cpp:
494         (WebCore::SVGTRefElement::SVGTRefElement):
495         * svg/SVGTRefElement.h:
496         * svg/SVGTSpanElement.cpp:
497         * svg/SVGTSpanElement.h:
498         * svg/SVGTests.cpp:
499         (WebCore::SVGTests::requiredFeaturesPropertyInfo):
500         (WebCore::SVGTests::requiredExtensionsPropertyInfo):
501         (WebCore::SVGTests::systemLanguagePropertyInfo):
502         (WebCore::SVGTests::attributeToPropertyMap):
503         (WebCore::SVGTests::synchronizeRequiredFeatures):
504         (WebCore::SVGTests::synchronizeRequiredExtensions):
505         (WebCore::SVGTests::synchronizeSystemLanguage):
506         * svg/SVGTests.h:
507         * svg/SVGTextContentElement.cpp:
508         (WebCore::SVGTextContentElement::textLengthPropertyInfo):
509         (WebCore::SVGTextContentElement::SVGTextContentElement):
510         (WebCore::SVGTextContentElement::synchronizeTextLength):
511         (WebCore::SVGTextContentElement::lookupOrCreateTextLengthWrapper):
512         (WebCore::SVGTextContentElement::textLengthAnimated):
513         * svg/SVGTextContentElement.h:
514         (WebCore::SVGTextContentElement::synchronizeRequiredFeatures):
515         (WebCore::SVGTextContentElement::synchronizeRequiredExtensions):
516         (WebCore::SVGTextContentElement::synchronizeSystemLanguage):
517         * svg/SVGTextElement.cpp:
518         (WebCore::SVGTextElement::SVGTextElement):
519         * svg/SVGTextElement.h:
520         * svg/SVGTextPathElement.cpp:
521         (WebCore::SVGTextPathElement::SVGTextPathElement):
522         * svg/SVGTextPathElement.h:
523         * svg/SVGTextPositioningElement.cpp:
524         (WebCore::SVGTextPositioningElement::SVGTextPositioningElement):
525         * svg/SVGTextPositioningElement.h:
526         * svg/SVGTitleElement.cpp:
527         * svg/SVGTitleElement.h:
528         (WebCore::SVGTitleElement::rendererIsNeeded):
529         * svg/SVGUseElement.cpp:
530         (WebCore::SVGUseElement::SVGUseElement):
531         * svg/SVGUseElement.h:
532         (WebCore::SVGUseElement::synchronizeRequiredFeatures):
533         (WebCore::SVGUseElement::synchronizeRequiredExtensions):
534         (WebCore::SVGUseElement::synchronizeSystemLanguage):
535         * svg/SVGViewElement.cpp:
536         (WebCore::SVGViewElement::SVGViewElement):
537         * svg/SVGViewElement.h:
538         * svg/SVGViewSpec.cpp:
539         (WebCore::SVGViewSpec::SVGViewSpec):
540         * svg/SVGViewSpec.h:
541         * svg/properties/SVGAnimatedProperty.h:
542         (WebCore::SVGAnimatedProperty::lookupOrCreateWrapper):
543         (WebCore::SVGAnimatedProperty::lookupWrapper):
544         * svg/properties/SVGAnimatedPropertyMacros.h:
545         * svg/properties/SVGAnimatedPropertySynchronizer.h:
546         * svg/properties/SVGAttributeToPropertyMap.cpp: Added.
547         (WebCore::SVGAttributeToPropertyMap::addProperties):
548         (WebCore::SVGAttributeToPropertyMap::addProperty):
549         (WebCore::SVGAttributeToPropertyMap::animatedPropertiesForAttribute):
550         (WebCore::SVGAttributeToPropertyMap::animatedPropertyTypeForAttribute):
551         (WebCore::SVGAttributeToPropertyMap::synchronizeProperties):
552         (WebCore::SVGAttributeToPropertyMap::synchronizeProperty):
553         (WebCore::SVGAttributeToPropertyMap::animatedProperty):
554         * svg/properties/SVGAttributeToPropertyMap.h: Added.
555         (WebCore::SVGAttributeToPropertyMap::SVGAttributeToPropertyMap):
556         (WebCore::SVGAttributeToPropertyMap::~SVGAttributeToPropertyMap):
557         (WebCore::SVGAttributeToPropertyMap::isEmpty):
558         * svg/properties/SVGPropertyInfo.h: Added.
559         (WebCore::SVGPropertyInfo::SVGPropertyInfo):
560
561 2011-07-09  Patrick Gansterer  <paroga@webkit.org>
562
563         Unreviewed build fix after r90676.
564
565         * platform/graphics/ImageBuffer.cpp:
566
567 2011-07-08  Dirk Schulze  <krit@webkit.org>
568
569         Refactoring luminance code in RenderSVGResourceMasker
570         https://bugs.webkit.org/show_bug.cgi?id=64146
571
572         Reviewed by Simon Fraser.
573
574         Moved luminance calculcation code to ImageBuffer. The code is doing pixel manipulations and can now get replaced
575         by platform specific algorithms in the ImmageBuffer*.cpp files.
576
577         No change of functionality. No new tests.
578
579         * WebCore.xcodeproj/project.pbxproj:
580         * platform/graphics/ImageBuffer.cpp:
581         (WebCore::ImageBuffer::transformColorSpace):
582         (WebCore::ImageBuffer::genericConvertToLuminanceMask):
583         (WebCore::ImageBuffer::convertToLuminanceMask):
584         * platform/graphics/ImageBuffer.h:
585         * rendering/svg/RenderSVGResourceMasker.cpp:
586         (WebCore::RenderSVGResourceMasker::drawContentIntoMaskImage):
587
588 2011-07-08  Simon Fraser  <simon.fraser@apple.com>
589
590         Clean up RenderWidget::destroy() to share more code
591         https://bugs.webkit.org/show_bug.cgi?id=64138
592
593         Reviewed by James Robinson.
594
595         RenderWidget::destroy() copied code from various other
596         destroy() methods, which made code maintenance in this
597         area very risky.
598         
599         Fix by adding a virtual willBeDestroyed() method, which
600         replaces most instances of destroy(). Now, only RenderWidget
601         and RenderObject implement destroy(), and each just calls
602         willBeDestroyed(). Code duplication is averted.
603         
604         No behavior change, so no tests.
605
606         * rendering/RenderBlock.cpp:
607         (WebCore::RenderBlock::willBeDestroyed):
608         * rendering/RenderBlock.h:
609         * rendering/RenderBox.cpp:
610         (WebCore::RenderBox::willBeDestroyed):
611         * rendering/RenderBox.h:
612         * rendering/RenderBoxModelObject.cpp:
613         (WebCore::RenderBoxModelObject::willBeDestroyed):
614         * rendering/RenderBoxModelObject.h:
615         * rendering/RenderFullScreen.cpp:
616         (RenderFullScreenPlaceholder::willBeDestroyed):
617         (RenderFullScreen::willBeDestroyed):
618         * rendering/RenderFullScreen.h:
619         * rendering/RenderInline.cpp:
620         (WebCore::RenderInline::willBeDestroyed):
621         * rendering/RenderInline.h:
622         * rendering/RenderListItem.cpp:
623         (WebCore::RenderListItem::willBeDestroyed):
624         * rendering/RenderListItem.h:
625         * rendering/RenderObject.cpp:
626         (WebCore::RenderObject::willBeDestroyed):
627         (WebCore::RenderObject::destroy):
628         * rendering/RenderObject.h:
629         * rendering/RenderReplaced.cpp:
630         (WebCore::RenderReplaced::willBeDestroyed):
631         * rendering/RenderReplaced.h:
632         * rendering/RenderTableCell.cpp:
633         (WebCore::RenderTableCell::willBeDestroyed):
634         * rendering/RenderTableCell.h:
635         * rendering/RenderTableRow.cpp:
636         (WebCore::RenderTableRow::willBeDestroyed):
637         * rendering/RenderTableRow.h:
638         * rendering/RenderTableSection.cpp:
639         (WebCore::RenderTableSection::willBeDestroyed):
640         * rendering/RenderTableSection.h:
641         * rendering/RenderText.cpp:
642         (WebCore::RenderText::willBeDestroyed):
643         * rendering/RenderText.h:
644         * rendering/RenderTextFragment.cpp:
645         (WebCore::RenderTextFragment::willBeDestroyed):
646         * rendering/RenderTextFragment.h:
647         * rendering/RenderWidget.cpp:
648         (WebCore::RenderWidget::willBeDestroyed):
649         (WebCore::RenderWidget::destroy):
650         * rendering/RenderWidget.h:
651         * rendering/svg/RenderSVGBlock.cpp:
652         (WebCore::RenderSVGBlock::willBeDestroyed):
653         * rendering/svg/RenderSVGBlock.h:
654         * rendering/svg/RenderSVGInline.cpp:
655         (WebCore::RenderSVGInline::willBeDestroyed):
656         * rendering/svg/RenderSVGInline.h:
657         * rendering/svg/RenderSVGInlineText.cpp:
658         (WebCore::RenderSVGInlineText::willBeDestroyed):
659         * rendering/svg/RenderSVGInlineText.h:
660         * rendering/svg/RenderSVGModelObject.cpp:
661         (WebCore::RenderSVGModelObject::willBeDestroyed):
662         * rendering/svg/RenderSVGModelObject.h:
663         * rendering/svg/RenderSVGResourceContainer.cpp:
664         (WebCore::RenderSVGResourceContainer::willBeDestroyed):
665         * rendering/svg/RenderSVGResourceContainer.h:
666         * rendering/svg/RenderSVGRoot.cpp:
667         (WebCore::RenderSVGRoot::willBeDestroyed):
668         * rendering/svg/RenderSVGRoot.h:
669         * rendering/svg/SVGResourcesCache.h:
670
671 2011-07-08  Adam Barth  <abarth@webkit.org>
672
673         Unreviewed, rolling out r90662.
674         http://trac.webkit.org/changeset/90662
675         https://bugs.webkit.org/show_bug.cgi?id=64210
676
677         Introduced regressions in Chromium browser tests (Requested by
678         rniwa on #webkit).
679
680         * accessibility/AccessibilityRenderObject.cpp:
681         (WebCore::AccessibilityRenderObject::selectedText):
682         (WebCore::AccessibilityRenderObject::selectedTextRange):
683         (WebCore::AccessibilityRenderObject::setSelectedTextRange):
684         * html/HTMLFormControlElement.cpp:
685         (WebCore::HTMLTextFormControlElement::setSelectionRange):
686         (WebCore::HTMLTextFormControlElement::selectionStart):
687         (WebCore::HTMLTextFormControlElement::selectionEnd):
688         (WebCore::HTMLTextFormControlElement::selection):
689         (WebCore::HTMLTextFormControlElement::restoreCachedSelection):
690         (WebCore::HTMLTextFormControlElement::selectionChanged):
691         * html/HTMLFormControlElement.h:
692         * html/HTMLInputElement.cpp:
693         (WebCore::HTMLInputElement::setValue):
694         * rendering/RenderTextControl.cpp:
695         (WebCore::RenderTextControl::selectionStart):
696         (WebCore::RenderTextControl::selectionEnd):
697         (WebCore::RenderTextControl::hasVisibleTextArea):
698         (WebCore::setSelectionRange):
699         (WebCore::setContainerAndOffsetForRange):
700         (WebCore::RenderTextControl::selection):
701         * rendering/RenderTextControl.h:
702
703 2011-07-08  Brian Salomon  <bsalomon@google.com>
704
705         Make GL context current before updating layer texture using skia-gpu
706         https://bugs.webkit.org/show_bug.cgi?id=64206
707
708         Reviewed by James Robinson.
709
710         Covered by existing tests (when accelerated drawing and compositing are on).
711
712         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp:
713         (WebCore::LayerTextureUpdaterSkPicture::updateTextureRect):
714
715 2011-07-08  Tony Chang  <tony@chromium.org>
716
717         Refactor override size to be a size rather than just an int
718         https://bugs.webkit.org/show_bug.cgi?id=64195
719
720         Reviewed by David Hyatt.
721
722         Also convert to LayoutSize and LayoutUnit.
723
724         Covered by existing tests.
725
726         * rendering/RenderBox.cpp:
727         (WebCore::RenderBox::overrideSize): Pass in a LayoutSize.
728         (WebCore::RenderBox::setOverrideSize):
729         (WebCore::RenderBox::clearOverrideSize): New method for clearing the
730             override size (previous we would pass in -1)
731         (WebCore::RenderBox::overrideWidth):
732         (WebCore::RenderBox::overrideHeight):
733         (WebCore::RenderBox::computeLogicalWidth):
734         (WebCore::RenderBox::computeLogicalHeight):
735         (WebCore::RenderBox::computePercentageLogicalHeight):
736         (WebCore::RenderBox::availableLogicalHeightUsing):
737         * rendering/RenderBox.h:
738         * rendering/RenderDeprecatedFlexibleBox.cpp:
739         (WebCore::gatherFlexChildrenInfo):
740         (WebCore::RenderDeprecatedFlexibleBox::layoutHorizontalBox):
741         (WebCore::RenderDeprecatedFlexibleBox::layoutVerticalBox):
742         (WebCore::RenderDeprecatedFlexibleBox::applyLineClamp):
743         * rendering/RenderTableCell.cpp:
744         (WebCore::RenderTableCell::setOverrideSizeFromRowHeight):
745         * rendering/RenderTableCell.h: Remove setOverrideSize since it was
746             only called in one place to clear the override size.  Inline this
747             logic instead.
748         * rendering/RenderTableSection.cpp:
749         (WebCore::RenderTableSection::calcRowLogicalHeight):
750         * rendering/RenderWidget.cpp:
751         (WebCore::RenderWidget::destroy):
752
753 2011-07-08  Emil A Eklund  <eae@chromium.org>
754
755         Switch pointInContainer and accumulatedOffset to to new layout types
756         https://bugs.webkit.org/show_bug.cgi?id=64112
757
758         Reviewed by Eric Seidel.
759
760         Convert remaining IntPoint versions of the pointInContainer and
761         accumulatedOffset arguments to the new layout abstraction.
762
763         No new tests, no functionality changes.
764
765         * rendering/HitTestResult.cpp:
766         (WebCore::HitTestResult::addNodeToRectBasedTestResult):
767         * rendering/HitTestResult.h:
768         * rendering/RenderBlock.cpp:
769         (WebCore::RenderBlock::isPointInOverflowControl):
770         * rendering/RenderBlock.h:
771         * rendering/RenderBox.cpp:
772         (WebCore::RenderBox::pushContentsClip):
773         (WebCore::RenderBox::popContentsClip):
774         * rendering/RenderBox.h:
775         * rendering/RenderEmbeddedObject.cpp:
776         (WebCore::RenderEmbeddedObject::getReplacementTextGeometry):
777         * rendering/RenderEmbeddedObject.h:
778         * rendering/RenderLineBoxList.cpp:
779         (WebCore::RenderLineBoxList::hitTest):
780         * rendering/RenderLineBoxList.h:
781         * rendering/RenderListBox.cpp:
782         (WebCore::RenderListBox::isPointInOverflowControl):
783         * rendering/RenderListBox.h:
784         * rendering/RenderObject.cpp:
785         (WebCore::RenderObject::hitTest):
786         * rendering/RenderObject.h:
787         * rendering/RenderTextControl.cpp:
788         (WebCore::RenderTextControl::hitInnerTextElement):
789         * rendering/RenderTextControl.h:
790         * rendering/RenderTextControlSingleLine.cpp:
791         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
792
793 2011-07-07  Ryosuke Niwa  <rniwa@webkit.org>
794
795         Move selection related code from RenderTextControl to HTMLTextFormControlElement
796         https://bugs.webkit.org/show_bug.cgi?id=64133
797
798         Reviewed by Dimitri Glazkov.
799
800         Moved selectionStart, selectionEnd, hasVisibleTextArea, setSelectionRange, setContainerAndOffsetForRange
801         and selection from RenderTextControl.cpp to HTMLFormControlElement.cpp.
802
803         This refactoring removes RenderTextControl's dependency on FrameSelection.
804
805         * accessibility/AccessibilityRenderObject.cpp:
806         (WebCore::AccessibilityRenderObject::selectedText): Calls HTMLTextFromControl::selectedText.
807         (WebCore::AccessibilityRenderObject::selectedTextRange): Calls selectionStart and selectionEnd.
808         (WebCore::AccessibilityRenderObject::setSelectedTextRange): Ditto.
809         * html/HTMLFormControlElement.cpp:
810         (WebCore::HTMLTextFormControlElement::selectedText): Extracted from AccessibilityRenderObject::selectedText.
811         (WebCore::hasVisibleTextArea):
812         (WebCore::HTMLTextFormControlElement::setSelectionRange): Merged with the function of the same name in
813         RenderTextControl.
814         (WebCore::HTMLTextFormControlElement::selectionStart): Ditto.
815         (WebCore::HTMLTextFormControlElement::selectionEnd): Ditto.
816         (WebCore::setContainerAndOffsetForRange): Moved from RenderTextControl.cpp
817         (WebCore::HTMLTextFormControlElement::selection): Merged with the function of the same name in RenderTextControl.
818         (WebCore::HTMLTextFormControlElement::selectionChanged): Calls selectionStart and selectionEnd.
819         * html/HTMLFormControlElement.h:
820         (WebCore::HTMLTextFormControlElement::restoreCachedSelection): Moved from HTMLFormControlElement.cpp now that
821         all functions are self-contained in HTMLTextFormControlElement.
822         * html/HTMLInputElement.cpp:
823         (WebCore::HTMLInputElement::setValue): Calls setSelectionRange.
824         * rendering/RenderTextControl.cpp:
825         (WebCore::RenderTextControl::textFormControlElement): Added.
826         * rendering/RenderTextControl.h:
827
828 2011-07-08  Mike Reed  <reed@google.com>
829
830         remove (empty) indirection between GraphicsContextPlatformPrivate and PlatformContextSkia
831         https://bugs.webkit.org/show_bug.cgi?id=64178
832
833         Reviewed by Stephen White.
834
835         No new tests. no functionality change, other than removing an indirection that is not needed
836
837         * platform/graphics/GraphicsContext.h:
838         * platform/graphics/skia/GraphicsContextPlatformPrivate.h: Removed.
839         * platform/graphics/skia/GraphicsContextSkia.cpp:
840         (WebCore::GraphicsContext::platformInit):
841         (WebCore::GraphicsContext::platformDestroy):
842         (WebCore::GraphicsContext::platformContext):
843
844 2011-07-08  Jeffrey Pfau  <jpfau@apple.com>
845
846         Add framework for a new/dummy XMLDocumentParser
847         https://bugs.webkit.org/show_bug.cgi?id=63955
848
849         Reviewed by Adam Barth.
850
851         Added a dummy framework NewXMLDocumentParser
852
853         * WebCore.xcodeproj/project.pbxproj:
854         * dom/Document.cpp:
855         (WebCore::Document::createParser):
856         * xml/parser/NewXMLDocumentParser.cpp: Added.
857         (WebCore::NewXMLDocumentParser::NewXMLDocumentParser):
858         (WebCore::NewXMLDocumentParser::textPosition):
859         (WebCore::NewXMLDocumentParser::lineNumber):
860         (WebCore::NewXMLDocumentParser::insert):
861         (WebCore::NewXMLDocumentParser::append):
862         (WebCore::NewXMLDocumentParser::finish):
863         (WebCore::NewXMLDocumentParser::detach):
864         (WebCore::NewXMLDocumentParser::hasInsertionPoint):
865         (WebCore::NewXMLDocumentParser::finishWasCalled):
866         (WebCore::NewXMLDocumentParser::processingData):
867         (WebCore::NewXMLDocumentParser::prepareToStopParsing):
868         (WebCore::NewXMLDocumentParser::stopParsing):
869         (WebCore::NewXMLDocumentParser::isWaitingForScripts):
870         (WebCore::NewXMLDocumentParser::isExecutingScript):
871         (WebCore::NewXMLDocumentParser::executeScriptsWaitingForStylesheets):
872         * xml/parser/NewXMLDocumentParser.h: Added.
873         (WebCore::NewXMLDocumentParser::create):
874
875 2011-07-08  David Reveman  <reveman@chromium.org>
876
877         Remove unused function parameters.
878
879         Reviewed by Ryosuke Niwa.
880
881         * platform/graphics/gpu/TilingData.cpp:
882         (WebCore::TilingData::textureOffset):
883
884 2011-07-08  David Reveman  <reveman@chromium.org>
885
886         Reviewed by Stephen White.
887
888         [Chromium] Edge anti-aliasing for composited layers.
889         https://bugs.webkit.org/show_bug.cgi?id=61388
890
891         Add transparent outer border to tiled layers and adjust vertex
892         coordinates so that use of a bilinear filter creates a smooth
893         layer edge.
894
895         Tests: platform/chromium/compositing/tiny-layer-rotated.html
896                platform/chromium/compositing/huge-layer-rotated.html (existing)
897                TilingDataTest in webkit_unit_tests
898
899         * platform/graphics/chromium/ContentLayerChromium.cpp:
900         Change maxUntiledSize to 510 to ensure that tiles are not greater
901         than 512 with outer borders.
902         (WebCore::ContentLayerChromium::updateLayerSize): We can't use the
903         layer size as tile size when we want to avoid tiling as this will
904         not be enough space to include possible outer borders. We instead use
905         an empty size, which allows the tiler to automatically adjust the
906         tile size to be large enough for the layer to fit in one tile.
907         (WebCore::ContentLayerChromium::createTilerIfNeeded):
908         (WebCore::ContentLayerChromium::setIsMask): Don't use border texels
909         for layer used as mask.
910
911         * platform/graphics/chromium/ContentLayerChromium.h:
912         (WebCore::ContentLayerChromium::m_borderTexels) Added.
913
914         * platform/graphics/chromium/LayerTilerChromium.cpp:
915         (WebCore::LayerTilerChromium::tileTexRect): Added.
916         (WebCore::LayerTilerChromium::tileLayerRect): m_tileSize is no
917         longer the correct layer size. Size of bounds with border should
918         be the correct layer size.
919         (WebCore::LayerTilerChromium::growLayerToContain): Adjust texture
920         size to include outer borders and handle empty m_tileSize.
921         (WebCore::LayerTilerChromium::invalidateRect): Use size of rectangle
922         returned by tileTexRect instead of m_tileSize for texture size.
923         (WebCore::LayerTilerChromium::prepareToUpdate): Ditto.
924         (WebCore::LayerTilerChromium::draw): Compute and intersect tile edges
925         instead of using tile coordinates directly. Edges are adjusted to
926         include outer borders and make sure all partially covered pixels are
927         processed.
928         (WebCore::LayerTilerChromium::drawTexturedQuad): Pass quad to
929         shader using point uniform.
930         (WebCore::LayerTilerChromium::invalidateRect): Invalidate old layer
931         area to clear any contents left from previous layer size.
932
933         * platform/graphics/chromium/LayerTilerChromium.h:
934         (WebCore::LayerTilerChromium::tileTexRect) Added.
935         (WebCore::LayerTilerChromium::drawTexturedQuad): Add quad parameter.
936
937         * platform/graphics/chromium/ShaderChromium.cpp:
938         (WebCore::VertexShaderPosTexTransform::getShaderString) Get X/Y vertex
939         components from point uniform.
940         (WebCore::VertexShaderPosTexTransform::VertexShaderPosTexTransform)
941         Added point uniform.
942         (WebCore::VertexShaderPosTexTransform::init) Ditto.
943         (WebCore::VertexShaderPosTexTransform::pointLocation) Added.
944
945         * platform/graphics/chromium/ShaderChromium.h:
946         (WebCore::VertexShaderPosTexTransform::pointLocation) Added.
947
948         * platform/graphics/gpu/TilingData.cpp:
949         (WebCore::TilingData::tileBoundsWithOuterBorder): Added.
950         (WebCore::TilingData::computeNumTiles): Adjust for outer border.
951         (WebCore::TilingData::tileXIndexFromSrcCoord): Ditto.
952         (WebCore::TilingData::tileYIndexFromSrcCoord): Ditto.
953         (WebCore::TilingData::tileSizeX): Ditto.
954         (WebCore::TilingData::tileSizeY): Ditto.
955         (WebCore::TilingData::intersectDrawQuad): Ditto.
956         (WebCore::TilingData::textureOffset): Ditto.
957
958         * platform/graphics/gpu/TilingData.h:
959         (WebCore::TilingData::tileBoundsWithOuterBorder): Added.
960
961 2011-07-08  Mike Reed  <reed@google.com>
962
963         [skia] don't rely on lockPixels failure to detect gpu-backed device (in prep for skia roll)
964         https://bugs.webkit.org/show_bug.cgi?id=64162
965
966         Reviewed by Stephen White.
967
968         No new tests. preparing for skia roll, where lockPixels always succeeds (but slowly for gpu-backed)
969
970         * platform/graphics/skia/ImageBufferSkia.cpp:
971         (WebCore::putImageData):
972
973 2011-07-08  Chang Shu  <cshu@webkit.org>
974
975         Update calling sites after function renamed.
976         https://bugs.webkit.org/show_bug.cgi?id=59114
977
978         Reviewed by Alexey Proskuryakov.
979
980         No new tests, just refactoring.
981
982         * editing/visible_units.cpp:
983         (WebCore::previousBoundary):
984         (WebCore::nextBoundary):
985         * rendering/RenderText.cpp:
986         (WebCore::RenderText::setTextInternal):
987
988 2011-07-08  Mihnea Ovidenie  <mihnea@adobe.com>
989
990         [CSSRegions]Parse content: -webkit-from-flow
991         https://bugs.webkit.org/show_bug.cgi?id=63133
992
993         Reviewed by David Hyatt.
994
995         Test: fast/regions/content-webkit-from-flow-parsing.html
996
997         * css/CSSComputedStyleDeclaration.cpp:
998         (WebCore::contentToCSSValue):
999         * css/CSSParser.cpp:
1000         (WebCore::CSSParser::parseContent):
1001         (WebCore::CSSParser::parseFromFlowContent):
1002         * css/CSSParser.h:
1003         * css/CSSPrimitiveValue.cpp:
1004         (WebCore::CSSPrimitiveValue::cleanup):
1005         (WebCore::CSSPrimitiveValue::getStringValue):
1006         (WebCore::CSSPrimitiveValue::cssText):
1007         * css/CSSPrimitiveValue.h:
1008         * css/CSSStyleSelector.cpp:
1009         (WebCore::CSSStyleSelector::applyProperty):
1010         * rendering/style/RenderStyle.cpp:
1011         (WebCore::RenderStyle::diff):
1012         * rendering/style/RenderStyle.h:
1013         (WebCore::InheritedFlags::regionThread):
1014         (WebCore::InheritedFlags::setRegionThread):
1015         (WebCore::InheritedFlags::initialRegionThread):
1016         * rendering/style/StyleRareNonInheritedData.cpp:
1017         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
1018         (WebCore::StyleRareNonInheritedData::operator==):
1019         * rendering/style/StyleRareNonInheritedData.h:
1020
1021 2011-07-08  Ilya Tikhonovsky  <loislo@chromium.org>
1022
1023         Web Inspector: NetworkPanel search failed if the matched sting is in the query part of url
1024         https://bugs.webkit.org/show_bug.cgi?id=64167
1025
1026         Reviewed by Yury Semikhatsky.
1027
1028         * inspector/front-end/NetworkPanel.js:
1029         (WebInspector.NetworkPanel.prototype._matchResource):
1030         (WebInspector.NetworkPanel.prototype._highlightNthMatchedResource):
1031         (WebInspector.NetworkDataGridNode.prototype._refreshNameCell):
1032         * inspector/front-end/Resource.js:
1033         (WebInspector.Resource.prototype.get folder):
1034
1035 2011-07-08  Benjamin Poulain  <benjamin@webkit.org>
1036
1037         [Qt] Enable HTTP Pipelining by default
1038         https://bugs.webkit.org/show_bug.cgi?id=64169
1039
1040         Reviewed by Andreas Kling.
1041
1042         QNetworkAccessManager disables HTTP pipelining by default. We enable it by
1043         setting an attribute on the request.
1044
1045         * platform/network/qt/ResourceRequestQt.cpp:
1046         (WebCore::ResourceRequest::toNetworkRequest):
1047
1048 2011-07-08  Alexander Pavlov  <apavlov@chromium.org>
1049
1050         Web Inspector: CSS inspector gets confused about specificity of !important properties
1051         https://bugs.webkit.org/show_bug.cgi?id=64074
1052
1053         Reviewed by Yury Semikhatsky.
1054
1055         * inspector/front-end/StylesSidebarPane.js:
1056         (WebInspector.StylesSidebarPane.prototype._markUsedProperties):
1057
1058 2011-07-08  Alexander Pavlov  <apavlov@chromium.org>
1059
1060         [Chromium] Unreviewed, clang build fix.
1061
1062         * inspector/InspectorStyleTextEditor.h:
1063
1064 2011-07-08  Pavel Feldman  <pfeldman@google.com>
1065
1066         Web Inspector: add support for drag'n'drop of non-elements (comments, text, etc.)
1067         https://bugs.webkit.org/show_bug.cgi?id=64163
1068
1069         Reviewed by Yury Semikhatsky.
1070
1071         * inspector/Inspector.json:
1072         * inspector/InspectorDOMAgent.cpp:
1073         (WebCore::InspectorDOMAgent::moveTo):
1074         * inspector/front-end/ElementsTreeOutline.js:
1075         (WebInspector.ElementsTreeOutline.prototype._isValidDragSourceOrTarget):
1076
1077 2011-07-08  Andrey Kosyakov  <caseq@chromium.org>
1078
1079         Web Inspector: secure access to extensions API
1080         https://bugs.webkit.org/show_bug.cgi?id=64080
1081
1082         Reviewed by Pavel Feldman.
1083
1084         * inspector/front-end/ExtensionAPI.js:
1085         (WebInspector.injectedExtensionAPI.Panels.prototype.create):
1086         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setPage):
1087         * inspector/front-end/ExtensionPanel.js:
1088         (WebInspector.ExtensionPanel):
1089         * inspector/front-end/ExtensionServer.js:
1090         (WebInspector.ExtensionServer):
1091         (WebInspector.ExtensionServer.prototype._onCreatePanel):
1092         (WebInspector.ExtensionServer.prototype._onSetSidebarPage):
1093         (WebInspector.ExtensionServer.prototype._addExtensions):
1094         (WebInspector.ExtensionServer.prototype._onWindowMessage):
1095         (WebInspector.ExtensionServer.prototype._registerSubscriptionHandler):
1096         (WebInspector.ExtensionServer.prototype._expandResourcePath):
1097         (WebInspector.ExtensionServer.prototype._normalizePath):
1098
1099 2011-07-08  Adam Barth  <abarth@webkit.org>
1100
1101         Unreviewed, rolling out r90615.
1102         http://trac.webkit.org/changeset/90615
1103         https://bugs.webkit.org/show_bug.cgi?id=64158
1104
1105         broke inspector/extensions/extensions.html (Requested by caseq
1106         on #webkit).
1107
1108         * inspector/front-end/ExtensionAPI.js:
1109         (WebInspector.injectedExtensionAPI.Panels.prototype.create):
1110         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setPage):
1111         (WebInspector.injectedExtensionAPI.expandURL):
1112         * inspector/front-end/ExtensionPanel.js:
1113         (WebInspector.ExtensionPanel):
1114         * inspector/front-end/ExtensionServer.js:
1115         (WebInspector.ExtensionServer):
1116         (WebInspector.ExtensionServer.prototype._onCreatePanel):
1117         (WebInspector.ExtensionServer.prototype._onSetSidebarPage):
1118         (WebInspector.ExtensionServer.prototype._addExtensions):
1119         (WebInspector.ExtensionServer.prototype._onWindowMessage):
1120         (WebInspector.ExtensionServer.prototype._registerSubscriptionHandler):
1121
1122 2011-07-07  Alexander Pavlov  <apavlov@chromium.org>
1123
1124         Web Inspector: Adding CSS properties results in messy style rules
1125         https://bugs.webkit.org/show_bug.cgi?id=63622
1126
1127         Reviewed by Pavel Feldman.
1128
1129         Test: inspector/styles/styles-formatting.html
1130
1131         * CMakeLists.txt:
1132         * GNUmakefile.list.am:
1133         * WebCore.gypi:
1134         * WebCore.pro:
1135         * WebCore.vcproj/WebCore.vcproj:
1136         * WebCore.xcodeproj/project.pbxproj:
1137         * css/CSSPropertySourceData.cpp:
1138         (WebCore::SourceRange::length):
1139         * css/CSSPropertySourceData.h:
1140         * inspector/InspectorStyleSheet.cpp:
1141         (WebCore::InspectorStyle::InspectorStyle):
1142         (WebCore::InspectorStyle::setPropertyText):
1143         (WebCore::InspectorStyle::toggleProperty):
1144         (WebCore::InspectorStyle::applyStyleText):
1145         (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters):
1146         * inspector/InspectorStyleSheet.h:
1147         * inspector/InspectorStyleTextEditor.cpp: Added.
1148         (WebCore::InspectorStyleTextEditor::InspectorStyleTextEditor):
1149         (WebCore::InspectorStyleTextEditor::insertProperty):
1150         (WebCore::InspectorStyleTextEditor::replaceProperty):
1151         (WebCore::InspectorStyleTextEditor::removeProperty):
1152         (WebCore::InspectorStyleTextEditor::enableProperty):
1153         (WebCore::InspectorStyleTextEditor::disableProperty):
1154         (WebCore::InspectorStyleTextEditor::disabledIndexByOrdinal):
1155         (WebCore::InspectorStyleTextEditor::shiftDisabledProperties):
1156         (WebCore::InspectorStyleTextEditor::internalReplaceProperty):
1157         * inspector/InspectorStyleTextEditor.h: Added.
1158         (WebCore::InspectorStyleTextEditor::styleText):
1159
1160 2011-07-08  Alexander Pavlov  <apavlov@chromium.org>
1161
1162         Web Inspector: Quotes are rendered as &quot; in the DOM tree
1163         https://bugs.webkit.org/show_bug.cgi?id=64154
1164
1165         Reviewed by Yury Semikhatsky.
1166
1167         Since we currently rely on setting textContent rather than innerHTML for the DOM tree elements,
1168         escapeHTML() calls unnecessarily HTML-escape certain characters in the DOM tree contents.
1169
1170         * inspector/front-end/ElementsTreeOutline.js:
1171         (WebInspector.ElementsTreeElement.prototype._buildAttributeDOM):
1172         ():
1173
1174 2011-07-08  Vsevolod Vlasov  <vsevik@chromium.org>
1175
1176         Web Inspector: Remove unused code from InspectorAgent.h.
1177         https://bugs.webkit.org/show_bug.cgi?id=64120
1178
1179         Reviewed by Joseph Pecoraro.
1180
1181         * inspector/InspectorAgent.h:
1182
1183 2011-07-08  Andrey Kosyakov  <caseq@chromium.org>
1184
1185         Web Inspector: secure access to extensions API
1186         https://bugs.webkit.org/show_bug.cgi?id=64080
1187
1188         Reviewed by Pavel Feldman.
1189
1190         * inspector/front-end/ExtensionAPI.js:
1191         (WebInspector.injectedExtensionAPI.Panels.prototype.create):
1192         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setPage):
1193         * inspector/front-end/ExtensionPanel.js:
1194         (WebInspector.ExtensionPanel):
1195         * inspector/front-end/ExtensionServer.js:
1196         (WebInspector.ExtensionServer):
1197         (WebInspector.ExtensionServer.prototype._onCreatePanel):
1198         (WebInspector.ExtensionServer.prototype._onSetSidebarPage):
1199         (WebInspector.ExtensionServer.prototype._addExtensions):
1200         (WebInspector.ExtensionServer.prototype._onWindowMessage):
1201         (WebInspector.ExtensionServer.prototype._registerSubscriptionHandler):
1202         (WebInspector.ExtensionServer.prototype._expandResourcePath):
1203         (WebInspector.ExtensionServer.prototype._normalizePath):
1204
1205 2011-07-08  Yury Semikhatsky  <yurys@chromium.org>
1206
1207         Web Inspector: typing undefined = 1 in console crashes browser
1208         https://bugs.webkit.org/show_bug.cgi?id=64155
1209
1210         Do not access undefined value directly when producing JSON objects as undefined
1211         may be overriden by the inspected page.
1212
1213         Reviewed by Pavel Feldman.
1214
1215         Test: inspector/console/console-eval-undefined-override.html
1216
1217         * inspector/InjectedScriptSource.js:
1218         (.):
1219         ():
1220
1221 2011-07-07  Emil A Eklund  <eae@chromium.org>
1222
1223         Switch HitTestResult to to new layout types
1224         https://bugs.webkit.org/show_bug.cgi?id=64131
1225
1226         Reviewed by Eric Seidel.
1227
1228         No new tests, no functionality changes.
1229
1230         * page/MouseEventWithHitTestResults.cpp:
1231         (WebCore::MouseEventWithHitTestResults::localPoint):
1232         * page/MouseEventWithHitTestResults.h:
1233         * rendering/HitTestResult.cpp:
1234         (WebCore::HitTestResult::HitTestResult):
1235         (WebCore::HitTestResult::addNodeToRectBasedTestResult):
1236         (WebCore::HitTestResult::rectForPoint):
1237         * rendering/HitTestResult.h:
1238         (WebCore::HitTestResult::point):
1239         (WebCore::HitTestResult::localPoint):
1240         (WebCore::HitTestResult::setPoint):
1241         (WebCore::HitTestResult::setLocalPoint):
1242         (WebCore::HitTestResult::rectForPoint):
1243
1244 2011-07-07  Levi Weintraub  <leviw@chromium.org>
1245
1246         Switch remaining paint functions to new layout types
1247         https://bugs.webkit.org/show_bug.cgi?id=64116
1248
1249         Reviewed by Eric Seidel.
1250
1251         Switching all functions with IntPoint paintOffsets to the new Layout types.
1252
1253         No new tests, no functionality changes.
1254
1255         * rendering/EllipsisBox.cpp:
1256         (WebCore::EllipsisBox::paint):
1257         (WebCore::EllipsisBox::paintSelection):
1258         * rendering/EllipsisBox.h:
1259         * rendering/InlineBox.cpp:
1260         (WebCore::InlineBox::paint):
1261         * rendering/InlineBox.h:
1262         * rendering/InlineFlowBox.cpp:
1263         (WebCore::InlineFlowBox::paint):
1264         * rendering/InlineFlowBox.h:
1265         * rendering/InlineTextBox.cpp:
1266         (WebCore::InlineTextBox::paint):
1267         (WebCore::InlineTextBox::paintCustomHighlight):
1268         * rendering/InlineTextBox.h:
1269         * rendering/LayoutTypes.h:
1270         * rendering/RenderBlock.cpp:
1271         (WebCore::RenderBlock::paintColumnRules):
1272         (WebCore::RenderBlock::paintColumnContents):
1273         (WebCore::RenderBlock::paintContents):
1274         (WebCore::RenderBlock::paintChildren):
1275         (WebCore::RenderBlock::paintCaret):
1276         (WebCore::RenderBlock::paintObject):
1277         (WebCore::RenderBlock::paintFloats):
1278         (WebCore::RenderBlock::paintEllipsisBoxes):
1279         (WebCore::RenderBlock::paintContinuationOutlines):
1280         (WebCore::RenderBlock::paintSelection):
1281         * rendering/RenderBlock.h:
1282         * rendering/RenderBox.cpp:
1283         (WebCore::RenderBox::paintCustomHighlight):
1284         * rendering/RenderBox.h:
1285         * rendering/RenderInline.cpp:
1286         (WebCore::RenderInline::paintOutline):
1287         (WebCore::RenderInline::paintOutlineForLine):
1288         * rendering/RenderInline.h:
1289         * rendering/RenderLayer.cpp:
1290         (WebCore::RenderLayer::paintOverflowControls):
1291         (WebCore::RenderLayer::paintScrollCorner):
1292         (WebCore::RenderLayer::paintResizer):
1293         * rendering/RenderLayer.h:
1294         * rendering/RenderLineBoxList.cpp:
1295         (WebCore::RenderLineBoxList::paint):
1296         * rendering/RenderListBox.cpp:
1297         (WebCore::RenderListBox::paintScrollbar):
1298         (WebCore::RenderListBox::paintItemForeground):
1299         (WebCore::RenderListBox::paintItemBackground):
1300         * rendering/RenderListBox.h:
1301         * rendering/RenderObject.cpp:
1302         (WebCore::RenderObject::paintFocusRing):
1303         (WebCore::RenderObject::paintOutline):
1304         * rendering/RenderObject.h:
1305         * rendering/RenderReplaced.cpp:
1306         (WebCore::RenderReplaced::shouldPaint):
1307         * rendering/RenderReplaced.h:
1308         * rendering/RenderScrollbarPart.cpp:
1309         (WebCore::RenderScrollbarPart::paintIntoRect):
1310         * rendering/RenderScrollbarPart.h:
1311         * rendering/RenderTableCell.cpp:
1312         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
1313         * rendering/RenderTableSection.cpp:
1314         (WebCore::RenderTableSection::paintCell):
1315         * rendering/RenderTableSection.h:
1316         * rendering/RenderTextControl.cpp:
1317         (WebCore::RenderTextControl::paintPlaceholder):
1318         * rendering/RootInlineBox.cpp:
1319         (WebCore::RootInlineBox::paintEllipsisBox):
1320         (WebCore::RootInlineBox::paintCustomHighlight):
1321         (WebCore::RootInlineBox::paint):
1322         * rendering/RootInlineBox.h:
1323         * rendering/mathml/RenderMathMLBlock.cpp:
1324         (WebCore::RenderMathMLBlock::paint):
1325         * rendering/mathml/RenderMathMLFraction.cpp:
1326         (WebCore::RenderMathMLFraction::paint):
1327         * rendering/mathml/RenderMathMLRoot.cpp:
1328         (WebCore::RenderMathMLRoot::paint):
1329         * rendering/mathml/RenderMathMLSquareRoot.cpp:
1330         (WebCore::RenderMathMLSquareRoot::paint):
1331
1332 2011-07-07  Steve VanDeBogart  <vandebo@chromium.org>
1333
1334         Work around Skia PDF's lack of inverted path support.
1335         https://bugs.webkit.org/show_bug.cgi?id=64032
1336
1337         Reviewed by James Robinson.
1338
1339         The trick used in http://neugierig.org/software/chromium/notes/2010/07/clipping.html
1340         to support antialiased clips doesn't work when printing to Skia's PDF backend because
1341         the backend does not support inverted paths. This manifests as rounded buttons not being
1342         drawn when printing, tracked as Chrome bug 79519.
1343         
1344         However, when the output is a vector device, like PDF, we don't need antialiased clips.
1345         It's up to the PDF rendering engine to do that.  So we can simply disable the antialiased
1346         clip code if the output is a vector device.
1347         
1348         I think the fix isn't testable because it requires examining the printed output.
1349
1350         * platform/graphics/skia/PlatformContextSkia.cpp:
1351         (WebCore::PlatformContextSkia::clipPathAntiAliased):
1352
1353 2011-07-07  Emil A Eklund  <eae@chromium.org>
1354
1355         Switch rendering tree selection code to to new layout types
1356         https://bugs.webkit.org/show_bug.cgi?id=63762
1357
1358         Reviewed by Eric Seidel.
1359
1360         Switch selection getters and selection gap calculation methods over to
1361         new layout abstraction.
1362
1363         No new tests, no functionality changes.
1364
1365         * rendering/InlineTextBox.cpp:
1366         (WebCore::InlineTextBox::selectionTop):
1367         (WebCore::InlineTextBox::selectionBottom):
1368         (WebCore::InlineTextBox::selectionHeight):
1369         (WebCore::InlineTextBox::isSelected):
1370         * rendering/InlineTextBox.h:
1371         * rendering/RenderBR.h:
1372         (WebCore::RenderBR::selectionRectForRepaint):
1373         * rendering/RenderBlock.cpp:
1374         (WebCore::RenderBlock::selectionGapRectsForRepaint):
1375         (WebCore::RenderBlock::selectionGaps):
1376         (WebCore::RenderBlock::inlineSelectionGaps):
1377         (WebCore::RenderBlock::blockSelectionGaps):
1378         (WebCore::RenderBlock::blockSelectionGap):
1379         (WebCore::RenderBlock::logicalLeftSelectionGap):
1380         (WebCore::RenderBlock::logicalRightSelectionGap):
1381         (WebCore::RenderBlock::logicalLeftSelectionOffset):
1382         (WebCore::RenderBlock::logicalRightSelectionOffset):
1383         (WebCore::RenderBlock::positionForPointWithInlineChildren):
1384         (WebCore::RenderBlock::desiredColumnWidth):
1385         * rendering/RenderBlock.h:
1386         (WebCore::RenderBlock::selectionRectForRepaint):
1387         * rendering/RenderListMarker.cpp:
1388         (WebCore::RenderListMarker::selectionRectForRepaint):
1389         * rendering/RenderListMarker.h:
1390         * rendering/RenderObject.h:
1391         (WebCore::RenderObject::selectionRect):
1392         (WebCore::RenderObject::selectionRectForRepaint):
1393         * rendering/RenderReplaced.cpp:
1394         (WebCore::RenderReplaced::selectionRectForRepaint):
1395         * rendering/RenderReplaced.h:
1396         * rendering/RenderSelectionInfo.h:
1397         (WebCore::RenderSelectionInfo::RenderSelectionInfo):
1398         * rendering/RenderText.cpp:
1399         (WebCore::RenderText::selectionRectForRepaint):
1400         * rendering/RenderText.h:
1401         * rendering/RootInlineBox.cpp:
1402         (WebCore::RootInlineBox::selectionTop):
1403         (WebCore::RootInlineBox::selectionBottom):
1404         * rendering/RootInlineBox.h:
1405         (WebCore::RootInlineBox::selectionHeight):
1406
1407 2011-07-07  Gavin Peters  <gavinp@chromium.org>
1408
1409         Reviewed by Alexey Proskuryakov.
1410
1411         fast/dom/HTMLLinkElement/link-and-subresource-test.html is flaky on chromium debug bots
1412         https://bugs.webkit.org/show_bug.cgi?id=60097
1413
1414         The culprit was that CachedResource:stopLoading() was using *this
1415         after a call to checkNotify(), which isn't kosher.  This patch
1416         uses a CachedResourceHandle to keep the CachedResource alive.
1417
1418         The test is a very close copy of the eponymous
1419         link-and-subresource-test.html, only substituting invalid
1420         resources for the valid ones in that test.  The reproduction is
1421         timing related, and happens much more consistantly with an invalid
1422         resource for whatever reason.
1423         Test: fast/dom/HTMLLinkElement/link-and-subresource-test-nonexistent.html
1424
1425         * loader/cache/CachedResource.cpp:
1426         (WebCore::CachedResource::stopLoading):
1427
1428 2011-07-07  James Robinson  <jamesr@chromium.org>
1429
1430         Reviewed by Kenneth Russell.
1431
1432         Use v8::AdjustAmountOfExternalAllocatedMemory for ArrayBuffers
1433         https://bugs.webkit.org/show_bug.cgi?id=42912
1434
1435         This calls v8's AdjustAmountOfExternalAllocatedMemory when ArrayBuffers are allocated/deallocated so that V8's
1436         garbage collection heuristics can account for the memory held by these objects.  On the new test page, this
1437         reduces the peak memory use from 5BG+ (or a crash in 32-bit systems) to <300MB.
1438
1439         Test: WebCore/manual-tests/array-buffer-memory.html
1440
1441         * html/canvas/ArrayBuffer.cpp:
1442         (WebCore::ArrayBuffer::~ArrayBuffer):
1443         (WebCore::ArrayBuffer::tryAllocate):
1444
1445 2011-07-07  Ryosuke Niwa  <rniwa@webkit.org>
1446
1447         Move all code related to cachedSelection to HTMLTextFormControlElement
1448         https://bugs.webkit.org/show_bug.cgi?id=64118
1449
1450         Reviewed by Alexey Proskuryakov.
1451
1452         Moved m_cachedSelectionStart and m_cachedSelectionEnd from HTMLInputElement
1453         and HTMLTextAreaElement to HTMLTextFormControlElement
1454
1455         Also removed cached selection related functions from RenderTextControl,
1456         RenderTextControlSingleLine, and RenderTextControlMultiLine because they were
1457         merely providing wrapper functions to enable polymorphism between
1458         input and textarea elements and their WML equivalents.
1459
1460         * editing/FrameSelection.cpp:
1461         (WebCore::FrameSelection::notifyRendererOfSelectionChange): Calls HTMLTextFormControlElement's
1462         selectionChanged instead of RenderTextControl's.
1463         * html/HTMLFormControlElement.cpp:
1464         (WebCore::HTMLTextFormControlElement::HTMLTextFormControlElement): Initialize
1465         m_cachedSelectionStart and m_cachedSelectionEnd.
1466         (WebCore::HTMLTextFormControlElement::selectionStart):
1467         (WebCore::HTMLTextFormControlElement::selectionEnd):
1468         (WebCore::HTMLTextFormControlElement::selection):
1469         (WebCore::HTMLTextFormControlElement::restoreCachedSelection): Added.
1470         (WebCore::HTMLTextFormControlElement::selectionChanged): Extracted from
1471         RenderTextControl::selectionChanged.
1472         * html/HTMLFormControlElement.h:
1473         (WebCore::HTMLTextFormControlElement::cacheSelection): Extracted from HTMLInputElement
1474         and HTMLTextAreaElement.
1475         (WebCore::HTMLTextFormControlElement::hasCachedSelectionStart): Added.
1476         (WebCore::HTMLTextFormControlElement::hasCachedSelectionEnd): Added.
1477         * html/HTMLInputElement.cpp:
1478         (WebCore::HTMLInputElement::HTMLInputElement):
1479         (WebCore::HTMLInputElement::updateFocusAppearance):
1480         * html/HTMLInputElement.h:
1481         * html/HTMLTextAreaElement.cpp:
1482         (WebCore::HTMLTextAreaElement::HTMLTextAreaElement):
1483         (WebCore::HTMLTextAreaElement::updateFocusAppearance):
1484         * html/HTMLTextAreaElement.h:
1485         (WebCore::HTMLTextAreaElement::isEmptyValue):
1486         * rendering/RenderTextControl.cpp:
1487         (WebCore::setSelectionRange):
1488         * rendering/RenderTextControl.h:
1489         * rendering/RenderTextControlMultiLine.cpp:
1490         * rendering/RenderTextControlMultiLine.h:
1491         * rendering/RenderTextControlSingleLine.cpp:
1492         * rendering/RenderTextControlSingleLine.h:
1493
1494 2011-07-07  Emil A Eklund  <eae@chromium.org>
1495
1496         Switch addFocusRingRects to to new layout types
1497         https://bugs.webkit.org/show_bug.cgi?id=64114
1498
1499         Reviewed by Eric Seidel.
1500
1501         No new tests, no functionality changes.
1502
1503         * rendering/LayoutTypes.h:
1504         (WebCore::flooredLayoutPoint):
1505         * rendering/RenderBlock.cpp:
1506         (WebCore::RenderBlock::addFocusRingRects):
1507         * rendering/RenderBlock.h:
1508         * rendering/RenderBox.cpp:
1509         (WebCore::RenderBox::addFocusRingRects):
1510         * rendering/RenderBox.h:
1511         * rendering/RenderInline.cpp:
1512         (WebCore::RenderInline::addFocusRingRects):
1513         * rendering/RenderInline.h:
1514         * rendering/RenderListBox.cpp:
1515         (WebCore::RenderListBox::addFocusRingRects):
1516         * rendering/RenderListBox.h:
1517         * rendering/RenderObject.h:
1518         (WebCore::RenderObject::addFocusRingRects):
1519         * rendering/RenderTextControl.cpp:
1520         (WebCore::RenderTextControl::addFocusRingRects):
1521         * rendering/RenderTextControl.h:
1522         * rendering/svg/RenderSVGContainer.cpp:
1523         (WebCore::RenderSVGContainer::addFocusRingRects):
1524         * rendering/svg/RenderSVGContainer.h:
1525         * rendering/svg/RenderSVGImage.cpp:
1526         (WebCore::RenderSVGImage::addFocusRingRects):
1527         * rendering/svg/RenderSVGImage.h:
1528         * rendering/svg/RenderSVGPath.cpp:
1529         (WebCore::RenderSVGPath::addFocusRingRects):
1530         * rendering/svg/RenderSVGPath.h:
1531
1532 2011-07-06  Adrienne Walker  <enne@google.com>
1533
1534         [chromium] Reduce compositor texture memory by skipping layers and clipping surfaces
1535         https://bugs.webkit.org/show_bug.cgi?id=64052
1536
1537         Reviewed by James Robinson.
1538
1539         Layers and surfaces that are entirely transparent are now skipped.
1540         Parent scissor rects are now applied to the content rect of surfaces
1541         so that offscreen surfaces can be skipped.
1542
1543         Landing this for vangelis@chromium.org.
1544
1545         Covered by existing tests.
1546
1547         * platform/graphics/chromium/LayerRendererChromium.cpp:
1548         (WebCore::calculateVisibleRect):
1549         (WebCore::calculateVisibleLayerRect):
1550         (WebCore::LayerRendererChromium::paintLayerContents):
1551         (WebCore::LayerRendererChromium::drawLayers):
1552         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
1553         (WebCore::LayerRendererChromium::updateCompositorResources):
1554         (WebCore::LayerRendererChromium::drawLayer):
1555         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
1556         (WebCore::RenderSurfaceChromium::RenderSurfaceChromium):
1557
1558 2011-07-07  Adam Barth  <abarth@webkit.org>
1559
1560         Unreviewed, rolling out r90581.
1561         http://trac.webkit.org/changeset/90581
1562         https://bugs.webkit.org/show_bug.cgi?id=64124
1563
1564         Broke a bunch of inspector tests (Requested by ojan on
1565         #webkit).
1566
1567         * inspector/front-end/ExtensionAPI.js:
1568         (WebInspector.injectedExtensionAPI.Panels.prototype.create):
1569         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setPage):
1570         (WebInspector.injectedExtensionAPI.expandURL):
1571         * inspector/front-end/ExtensionPanel.js:
1572         (WebInspector.ExtensionPanel):
1573         * inspector/front-end/ExtensionServer.js:
1574         (WebInspector.ExtensionServer):
1575         (WebInspector.ExtensionServer.prototype._onCreatePanel):
1576         (WebInspector.ExtensionServer.prototype._onSetSidebarPage):
1577         (WebInspector.ExtensionServer.prototype._addExtensions):
1578         (WebInspector.ExtensionServer.prototype._onWindowMessage):
1579         (WebInspector.ExtensionServer.prototype._registerSubscriptionHandler):
1580
1581 2011-07-07  Adrienne Walker  <enne@google.com>
1582
1583         [chromium] Fix crash when compositing gets disabled mid-paint
1584         https://bugs.webkit.org/show_bug.cgi?id=64119
1585
1586         Reviewed by James Robinson.
1587
1588         WebKit paint can disable compositing and call setRootLayer(0). Adding
1589         a check for this in drawLayers prevents a null pointer deref.
1590
1591         * platform/graphics/chromium/LayerRendererChromium.cpp:
1592         (WebCore::LayerRendererChromium::drawLayers):
1593
1594 2011-07-07  Dirk Schulze  <krit@webkit.org>
1595
1596         SVGAnimateTransform does not support calcMode=discrete
1597         https://bugs.webkit.org/show_bug.cgi?id=63914
1598
1599         Reviewed by Rob Buis.
1600
1601         CalcMode discrete specifies that the animation function will jump from one value to the next without any interpolation.
1602         Implemented calcMode discrete by checking current progress of animation. If we are in the first half of the animation,
1603         we use the start value of the aniamtion, end value for the second half of the animation. The key time at 50% is used on
1604         all other animations as well as on other SVG viewers.
1605
1606         Added a manual test. DRT crashes on an automated test with the SVG animation API. Opened a new bug report: 64104.
1607
1608         * manual-tests/svg-animateTransform-calcMode-discrete.svg: Added.
1609         * svg/SVGAnimateTransformElement.cpp:
1610         (WebCore::SVGAnimateTransformElement::calculateAnimatedValue):
1611
1612 2011-07-07  Dirk Schulze  <krit@webkit.org>
1613
1614         Reviewed by Rob Buis.
1615
1616         SVGAnimatedPath needs fallback for 'by' animation
1617         https://bugs.webkit.org/show_bug.cgi?id=63865
1618         
1619         Added fallback to 'to' animation for 'by' animated SVGAnimatedPathAnimator.
1620         
1621         Clenup of SVGAnimateElement. Removed all switches since we support all AnimatedTypes
1622         with the exception of AnimatedEnumeration. AnimatedEnumeration gets animated as AnimatedString at the moment. 
1623
1624         Test: svg/animations/svgpath-animation-1.html
1625
1626         * svg/SVGAnimateElement.cpp:
1627         (WebCore::getPropertyValue):
1628         (WebCore::inheritsFromProperty):
1629         (WebCore::attributeValueIsCurrentColor):
1630         (WebCore::SVGAnimateElement::adjustForCurrentColor):
1631         (WebCore::SVGAnimateElement::determineAnimatedAttributeType):
1632         (WebCore::SVGAnimateElement::calculateAnimatedValue):
1633         (WebCore::SVGAnimateElement::calculateFromAndToValues):
1634         (WebCore::SVGAnimateElement::calculateFromAndByValues):
1635         (WebCore::SVGAnimateElement::resetToBaseValue):
1636         (WebCore::SVGAnimateElement::applyResultsToTarget):
1637         (WebCore::SVGAnimateElement::calculateDistance):
1638         * svg/SVGAnimatedPath.cpp:
1639         (WebCore::SVGAnimatedPathAnimator::calculateFromAndByValues):
1640
1641 2011-07-07  Andrey Kosyakov  <caseq@chromium.org>
1642
1643         Web Inspector: secure access to extensions API
1644         https://bugs.webkit.org/show_bug.cgi?id=64080
1645
1646         Reviewed by Pavel Feldman.
1647
1648         * inspector/front-end/ExtensionAPI.js:
1649         (WebInspector.injectedExtensionAPI.Panels.prototype.create):
1650         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setPage):
1651         * inspector/front-end/ExtensionPanel.js:
1652         (WebInspector.ExtensionPanel):
1653         * inspector/front-end/ExtensionServer.js:
1654         (WebInspector.ExtensionServer):
1655         (WebInspector.ExtensionServer.prototype._onCreatePanel):
1656         (WebInspector.ExtensionServer.prototype._onSetSidebarPage):
1657         (WebInspector.ExtensionServer.prototype._addExtensions):
1658         (WebInspector.ExtensionServer.prototype._onWindowMessage):
1659         (WebInspector.ExtensionServer.prototype._registerSubscriptionHandler):
1660         (WebInspector.ExtensionServer.prototype._expandResourcePath):
1661
1662 2011-07-07  Kyusun Kim  <maniagoon@company100.net>
1663
1664         The return value of SharedBuffer::createWithContentsOfFile must have valid m_size.
1665         https://bugs.webkit.org/show_bug.cgi?id=63313
1666
1667         Reviewed by Eric Seidel.
1668
1669         * platform/posix/SharedBufferPOSIX.cpp:
1670         (WebCore::SharedBuffer::createWithContentsOfFile):
1671
1672 2011-07-07  Dan Bernstein  <mitz@apple.com>
1673
1674         <rdar://problem/9737435> Re-enable -webkit-column-break-inside: avoid
1675         https://bugs.webkit.org/show_bug.cgi?id=64102
1676
1677         Reviewed by Simon Fraser.
1678
1679         -webkit-column-break-inside: avoid was disabled in r62632 along with page-break-inside: avoid.
1680         The latter remains disabled.
1681
1682         * rendering/RenderBlock.cpp:
1683         (WebCore::RenderBlock::adjustForUnsplittableChild): Treat the child as unsplittable if
1684         '-webkit-column-break-inside: avoid' was specified.
1685
1686 2011-07-07  Andrey Kosyakov  <caseq@chromium.org>
1687
1688         Web Inspector: visual regressions in network panel
1689         https://bugs.webkit.org/show_bug.cgi?id=64089
1690
1691         Reviewed by Pavel Feldman.
1692
1693         * inspector/front-end/networkPanel.css:
1694         (.data-grid.network-log-grid tr.filler td):
1695         (.network.panel .sidebar):
1696
1697 2011-07-07  Julien Chaffraix  <jchaffraix@webkit.org>
1698
1699         Reviewed by David Hyatt.
1700
1701         Partial layout when a flex-box has visibility: collapse
1702         https://bugs.webkit.org/show_bug.cgi?id=63776
1703
1704         Tests: fast/flexbox/crash-button-input-autofocus.html
1705                fast/flexbox/crash-button-keygen.html
1706                fast/flexbox/crash-button-relayout.html
1707
1708         The issue is that FlexBoxIterator would skip any child if it has visibility: collapsed.
1709         However if one of the child is anonymous, it may wrap some other child that would be skipped.
1710         Now FlexBoxIterator is called during the layout phase and thus some nodes would not relayouted
1711         as expected.
1712
1713         * rendering/RenderDeprecatedFlexibleBox.cpp:
1714         (WebCore::FlexBoxIterator::next): When iterating, don't skip anonymous content as there may
1715         be real content hiding below.
1716
1717 2011-07-07  Vsevolod Vlasov  <vsevik@chromium.org>
1718
1719         Web Inspector: URL links in styles open new tab instead of showing resources panel.
1720         https://bugs.webkit.org/show_bug.cgi?id=64090
1721
1722         Reviewed by Pavel Feldman.
1723
1724         * inspector/front-end/StylesSidebarPane.js:
1725         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.linkifyURL):
1726
1727 2011-07-07  Andrey Kosyakov  <caseq@chromium.org>
1728
1729         Web Inspector: active panel does not receive resize event when drawer is resized
1730         https://bugs.webkit.org/show_bug.cgi?id=64094
1731
1732         Reviewed by Pavel Feldman.
1733
1734         * inspector/front-end/Drawer.js:
1735         (WebInspector.Drawer.prototype._statusBarDragging):
1736
1737 2011-07-07  Pavel Feldman  <pfeldman@chromium.org>
1738
1739         Web Inspector: prevent default action during drag'n'drop in the Elements panel.
1740         https://bugs.webkit.org/show_bug.cgi?id=64081
1741
1742         Reviewed by Yury Semikhatsky.
1743
1744         * inspector/front-end/ElementsTreeOutline.js:
1745         (WebInspector.ElementsTreeOutline):
1746         (WebInspector.ElementsTreeOutline.prototype._ondragstart):
1747         (WebInspector.ElementsTreeOutline.prototype._ondragover):
1748         (WebInspector.ElementsTreeOutline.prototype._ondragend):
1749         * inspector/front-end/treeoutline.js:
1750         (TreeOutline.prototype.treeElementFromPoint):
1751
1752 2011-07-07  Nikolas Zimmermann  <nzimmermann@rim.com>
1753
1754         Move remaining enums out of SVG*Element classes
1755         https://bugs.webkit.org/show_bug.cgi?id=64075
1756
1757         Reviewed by Dirk Schulze.
1758
1759         Move remaining enums out of SVG*Element classes. This is a preparation patch for bug 63797.
1760         Also move the SVGPropertyTraits template specializations for enum types before the class
1761         definition in the header, otherwhise we can't use SVGPropertyTraits<FooType>::fromString/toString
1762         in the DECLARE_ANIMATED* macros, which is needed soon.
1763
1764         No new tests, just refactoring.
1765
1766         * rendering/svg/RenderSVGResourceGradient.cpp:
1767         (WebCore::RenderSVGResourceGradient::applyResource):
1768         * rendering/svg/RenderSVGResourceGradient.h:
1769         * rendering/svg/RenderSVGResourceMarker.cpp:
1770         (WebCore::RenderSVGResourceMarker::angle):
1771         (WebCore::RenderSVGResourceMarker::markerTransformation):
1772         * rendering/svg/RenderSVGResourceMarker.h:
1773         (WebCore::RenderSVGResourceMarker::markerUnits):
1774         * rendering/svg/RenderSVGTextPath.cpp:
1775         (WebCore::RenderSVGTextPath::RenderSVGTextPath):
1776         (WebCore::RenderSVGTextPath::exactAlignment):
1777         (WebCore::RenderSVGTextPath::stretchMethod):
1778         * rendering/svg/SVGRenderTreeAsText.cpp:
1779         (WebCore::operator<<):
1780         (WebCore::writeCommonGradientProperties):
1781         * rendering/svg/SVGTextChunkBuilder.cpp:
1782         (WebCore::SVGTextChunkBuilder::addTextChunk):
1783         * rendering/svg/SVGTextLayoutEngine.cpp:
1784         (WebCore::SVGTextLayoutEngine::parentDefinesTextLength):
1785         (WebCore::SVGTextLayoutEngine::beginTextPathLayout):
1786         * svg/GradientAttributes.h:
1787         (WebCore::GradientAttributes::GradientAttributes):
1788         (WebCore::GradientAttributes::spreadMethod):
1789         (WebCore::GradientAttributes::setSpreadMethod):
1790         * svg/SVGComponentTransferFunctionElement.h:
1791         * svg/SVGFEBlendElement.h:
1792         * svg/SVGFEColorMatrixElement.h:
1793         * svg/SVGFECompositeElement.h:
1794         * svg/SVGFEConvolveMatrixElement.h:
1795         * svg/SVGFEDisplacementMapElement.h:
1796         * svg/SVGFEMorphologyElement.h:
1797         * svg/SVGFETurbulenceElement.h:
1798         * svg/SVGGradientElement.cpp:
1799         (WebCore::SVGGradientElement::SVGGradientElement):
1800         * svg/SVGGradientElement.h:
1801         * svg/SVGMarkerElement.cpp:
1802         (WebCore::SVGMarkerElement::SVGMarkerElement):
1803         (WebCore::SVGMarkerElement::parseMappedAttribute):
1804         (WebCore::SVGMarkerElement::setOrientToAuto):
1805         (WebCore::SVGMarkerElement::setOrientToAngle):
1806         (WebCore::SVGMarkerElement::synchronizeOrientType):
1807         (WebCore::SVGMarkerElement::orientTypeAnimated):
1808         * svg/SVGMarkerElement.h:
1809         * svg/SVGTextContentElement.cpp:
1810         (WebCore::SVGTextContentElement::SVGTextContentElement):
1811         * svg/SVGTextContentElement.h:
1812         * svg/SVGTextPathElement.cpp:
1813         (WebCore::SVGTextPathElement::SVGTextPathElement):
1814         * svg/SVGTextPathElement.h:
1815
1816 2011-07-07  Ilya Tikhonovsky  <loislo@chromium.org>
1817
1818         Web Inspector: Protocol: pointers to optional "in" parameters passing to the
1819         backend methods should be NULL if they are not specified in the message.
1820         https://bugs.webkit.org/show_bug.cgi?id=64083
1821
1822         Reviewed by Pavel Feldman.
1823
1824         * inspector/CodeGeneratorInspector.pm:
1825         (generateBackendFunction):
1826         (generateArgumentGetters):
1827         * inspector/InspectorCSSAgent.cpp:
1828         (WebCore::InspectorCSSAgent::getStylesForNode):
1829
1830 2011-07-07  Ilya Tikhonovsky  <loislo@chromium.org>
1831
1832         Web Inspector: Searching on the Network panel doesn't do anything?
1833         https://bugs.webkit.org/show_bug.cgi?id=55489
1834
1835         This is initial implementation of search in Network panel.
1836         It is pretty simple search only for names and paths.
1837
1838         Reviewed by Pavel Feldman.
1839
1840         * inspector/front-end/NetworkPanel.js:
1841         (WebInspector.NetworkPanel.prototype.refresh):
1842         (WebInspector.NetworkPanel.prototype._reset):
1843         (WebInspector.NetworkPanel.prototype._updateOffscreenRows):
1844         (WebInspector.NetworkPanel.prototype._matchResource):
1845         (WebInspector.NetworkPanel.prototype._clearSearchMatchedList):
1846         (WebInspector.NetworkPanel.prototype._highlightNthMatchedResource):
1847         (WebInspector.NetworkPanel.prototype.performSearch):
1848         (WebInspector.NetworkDataGridNode.prototype.createCells):
1849         * inspector/front-end/utilities.js:
1850         (String.prototype.escapeHTML):
1851         ():
1852
1853 2011-07-07  Vsevolod Vlasov  <vsevik@chromium.org>
1854
1855         Web Inspector: Resources panel shows only one resource when multiple resources have the same url.
1856         https://bugs.webkit.org/show_bug.cgi?id=63936
1857
1858         Reviewed by Pavel Feldman.
1859
1860         Test: http/tests/inspector/resource-tree/resource-tree-non-unique-url.html
1861
1862         * inspector/front-end/ResourcesPanel.js:
1863         (WebInspector.FrameTreeElement.prototype.appendResource):
1864
1865 2011-07-07  Vsevolod Vlasov  <vsevik@chromium.org>
1866
1867         Web Inspector: Add support for clearing cache and cookies from network panel.
1868         https://bugs.webkit.org/show_bug.cgi?id=63999
1869
1870         Reviewed by Pavel Feldman.
1871
1872         * English.lproj/localizedStrings.js:
1873         * inspector/Inspector.json:
1874         * inspector/InspectorClient.h:
1875         (WebCore::InspectorClient::clearBrowserCache):
1876         (WebCore::InspectorClient::clearBrowserCookies):
1877         * inspector/InspectorController.cpp:
1878         (WebCore::InspectorController::InspectorController):
1879         * inspector/InspectorResourceAgent.cpp:
1880         (WebCore::InspectorResourceAgent::clearBrowserCache):
1881         (WebCore::InspectorResourceAgent::clearBrowserCookies):
1882         (WebCore::InspectorResourceAgent::InspectorResourceAgent):
1883         * inspector/InspectorResourceAgent.h:
1884         (WebCore::InspectorResourceAgent::create):
1885         * inspector/front-end/NetworkPanel.js:
1886         (WebInspector.NetworkPanel.prototype._contextMenu):
1887         (WebInspector.NetworkPanel.prototype._clearBrowserCache):
1888         (WebInspector.NetworkPanel.prototype._clearBrowserCookies):
1889         * inspector/front-end/Settings.js:
1890
1891 2011-07-07  Shinya Kawanaka  <shinyak@google.com>
1892
1893         Added more key bindings for input[type=range].
1894         https://bugs.webkit.org/show_bug.cgi?id=52262
1895
1896         Added PageUp/PageDown/Home/End key bindings for input[type=range].
1897         PageUp/PageDown change value by about 10%.
1898         Home/End change value to minimum/maximum.
1899
1900         Reviewed by Kent Tamura.
1901
1902         * html/RangeInputType.cpp:
1903         (WebCore::RangeInputType::handleKeydownEvent):
1904           Added key bindings.
1905
1906 2011-07-07  Oleg Romashin  <romaxa@gmail.com>
1907
1908         Fix InspectorInstrumentation compilation.
1909         https://bugs.webkit.org/show_bug.cgi?id=64033
1910
1911         Reviewed by Yury Semikhatsky.
1912
1913         No new tests. just compile fix.
1914
1915         * inspector/InspectorInstrumentation.cpp:
1916         (WebCore::InspectorInstrumentation::didInvalidateStyleAttrImpl):
1917
1918 2011-07-06  Mihnea Ovidenie  <mihnea@adobe.com>
1919
1920         Reviewed by David Hyatt.
1921
1922         [CSSRegions] Parse flow property
1923         https://bugs.webkit.org/show_bug.cgi?id=61730
1924
1925         Test: fast/regions/webkit-flow-parsing.html
1926
1927         * css/CSSComputedStyleDeclaration.cpp:
1928         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1929         * css/CSSParser.cpp:
1930         (WebCore::CSSParser::parseValue):
1931         (WebCore::CSSParser::parseFlowThread):
1932         * css/CSSParser.h:
1933         * css/CSSPropertyNames.in:
1934         * css/CSSStyleSelector.cpp:
1935         (WebCore::CSSStyleSelector::applyProperty):
1936         * rendering/style/RenderStyle.cpp:
1937         (WebCore::RenderStyle::diff):
1938         * rendering/style/RenderStyle.h:
1939         (WebCore::InheritedFlags::flowThread):
1940         (WebCore::InheritedFlags::setFlowThread):
1941         (WebCore::InheritedFlags::initialFlowThread):
1942         * rendering/style/StyleRareNonInheritedData.cpp:
1943         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
1944         (WebCore::StyleRareNonInheritedData::operator==):
1945         * rendering/style/StyleRareNonInheritedData.h:
1946
1947 2011-07-06  MORITA Hajime  <morrita@google.com>
1948
1949         [ShadowContentElement] Redundant RenderText objects are created on the content boundaries.
1950         https://bugs.webkit.org/show_bug.cgi?id=63977
1951
1952         Reviewed by Dimitri Glazkov.
1953
1954         NodeRenderingContext::nextRenderer() and previousRenderer() didn't work well
1955         when it crosses content elements:
1956         - It doesn't step into forwarded children of ShadowContentElement.
1957         - It doesn't step out from traversing forwarded children to
1958           neighbors of the content element of that forwarded chidren.
1959         
1960         This change makes it to step into and out from content element.
1961         
1962         Test: fast/dom/shadow/content-element-renderers.html
1963
1964         * dom/NodeRenderingContext.cpp:
1965         (WebCore::firstRendererOf): Added
1966         (WebCore::lastRendererOf): Added
1967         (WebCore::NodeRenderingContext::nextRenderer):
1968         (WebCore::NodeRenderingContext::previousRenderer):
1969
1970 2011-07-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1971
1972         [EFL] Add Fullscreen API feature
1973         https://bugs.webkit.org/show_bug.cgi?id=63975
1974
1975         Add needed files for enabling ENABLE_FULLSCREEN_API feature.
1976
1977         Reviewed by Adam Barth.
1978
1979         * CMakeLists.txt: Add RenderFullScreen.cpp, fullscreen.css
1980
1981 2011-07-06  Emil A Eklund  <eae@chromium.org>
1982
1983         Switch absoluteRects to to new layout types
1984         https://bugs.webkit.org/show_bug.cgi?id=64035
1985
1986         Reviewed by Eric Seidel.
1987
1988         Move absoluteRects over to new layout unit abstraction.
1989         Add flooredLayoutPoint, mapped to flooredIntPoint.
1990
1991         No new tests, no functionality changes.
1992
1993         * rendering/LayoutTypes.h:
1994         (WebCore::flooredLayoutPoint):
1995         * rendering/RenderBlock.cpp:
1996         (WebCore::RenderBlock::absoluteRects):
1997         * rendering/RenderBlock.h:
1998         * rendering/RenderBox.cpp:
1999         (WebCore::RenderBox::absoluteRects):
2000         * rendering/RenderInline.cpp:
2001         (WebCore::RenderInline::absoluteRects):
2002         * rendering/RenderInline.h:
2003         * rendering/RenderObject.cpp:
2004         (WebCore::RenderObject::absoluteBoundingBoxRect):
2005         * rendering/RenderObject.h:
2006         (WebCore::RenderObject::absoluteRects):
2007         * rendering/RenderText.cpp:
2008         (WebCore::RenderText::absoluteRects):
2009         * rendering/RenderText.h:
2010         * rendering/RenderView.cpp:
2011         (WebCore::RenderView::absoluteRects):
2012         * rendering/RenderView.h:
2013         * rendering/svg/RenderSVGBlock.cpp:
2014         (WebCore::RenderSVGBlock::absoluteRects):
2015         * rendering/svg/RenderSVGBlock.h:
2016         * rendering/svg/RenderSVGModelObject.cpp:
2017         (WebCore::RenderSVGModelObject::absoluteRects):
2018         * rendering/svg/RenderSVGModelObject.h:
2019
2020 2011-07-06  Emil A Eklund  <eae@chromium.org>
2021
2022         Reviewed by Eric Seidel.
2023
2024         Switch offsetFromContainer and related to to new layout types
2025         https://bugs.webkit.org/show_bug.cgi?id=63659
2026
2027         Switch offsetFromContainer and related mapping methods to new layout unit
2028         abstraction.
2029
2030         No new tests, no functionality changes.
2031
2032         * rendering/LayoutTypes.h:
2033         (WebCore::enclosingLayoutRect):
2034         (WebCore::roundedLayoutPoint):
2035         (WebCore::roundedLayoutUnit):
2036         Add LayoutUnit versions of enclosingIntRect, roundedIntPoint and lroundf.
2037         For now these map to their int counterpart but once we switch to float or
2038         fixed point they'll be no-ops and eventually will be removed. 
2039         
2040         * rendering/RenderBox.cpp:
2041         (WebCore::RenderBox::mapLocalToContainer):
2042         (WebCore::RenderBox::mapAbsoluteToLocalPoint):
2043         (WebCore::RenderBox::offsetFromContainer):
2044         * rendering/RenderBox.h:
2045         * rendering/RenderInline.cpp:
2046         (WebCore::RenderInline::linesBoundingBox):
2047         (WebCore::RenderInline::offsetFromContainer):
2048         (WebCore::RenderInline::mapLocalToContainer):
2049         (WebCore::RenderInline::mapAbsoluteToLocalPoint):
2050         (WebCore::RenderInline::relativePositionedInlineOffset):
2051         * rendering/RenderInline.h:
2052         * rendering/RenderObject.cpp:
2053         (WebCore::RenderObject::offsetFromContainer):
2054         (WebCore::RenderObject::offsetFromAncestorContainer):
2055         * rendering/RenderObject.h:
2056         * rendering/RenderTableCell.cpp:
2057         (WebCore::RenderTableCell::offsetFromContainer):
2058         * rendering/RenderTableCell.h:
2059         * rendering/RenderThemeMac.mm:
2060         (WebCore::RenderThemeMac::convertToPaintingRect):
2061
2062 2011-07-06  Levi Weintraub  <leviw@chromium.org>
2063
2064         Switch FrameSelection to new Layout Types
2065         https://bugs.webkit.org/show_bug.cgi?id=64043
2066
2067         Reviewed by Eric Seidel.
2068
2069         Switching the selection classes to the new layout types. Changing
2070         NoXPosForVerticalArrowNavigation to a static inline since as it stood it violated
2071         our global initializer rule when converted to numeric_limits from INT_MIN.
2072
2073         No new tests, no functionality changes.
2074
2075         * editing/FrameSelection.cpp:
2076         (WebCore::FrameSelection::modify):
2077         (WebCore::absoluteCaretY):
2078         (WebCore::FrameSelection::lineDirectionPointForBlockDirectionNavigation):
2079         (WebCore::CaretBase::clearCaretRect):
2080         (WebCore::CaretBase::updateCaretRect):
2081         (WebCore::FrameSelection::localCaretRect):
2082         (WebCore::CaretBase::absoluteBoundsForLocalRect):
2083         (WebCore::FrameSelection::absoluteCaretBounds):
2084         (WebCore::repaintRectForCaret):
2085         (WebCore::CaretBase::caretRepaintRect):
2086         (WebCore::FrameSelection::recomputeCaretRect):
2087         (WebCore::FrameSelection::paintCaret):
2088         (WebCore::CaretBase::paintCaret):
2089         (WebCore::FrameSelection::contains):
2090         (WebCore::DragCaretController::paintDragCaret):
2091         (WebCore::FrameSelection::bounds):
2092         (WebCore::FrameSelection::revealSelection):
2093         * editing/FrameSelection.h:
2094         (WebCore::CaretBase::localCaretRectWithoutUpdate):
2095
2096 2011-07-06  Levi Weintraub  <leviw@chromium.org>
2097
2098         Switch Overflow and FrameRect methods in InlineBox to Layout Units
2099         https://bugs.webkit.org/show_bug.cgi?id=64034
2100
2101         Reviewed by Eric Seidel.
2102
2103         Switching Overflow and FrameRect methods on InlineBox to new Layout Unit abstraction and
2104         cleaning up some compilation errors that crop up when building with floating point layout units.
2105
2106         No new tests, no functionality changes.
2107
2108         * css/CSSComputedStyleDeclaration.cpp:
2109         (WebCore::sizingBox):
2110         * dom/Document.h:
2111         * editing/DeleteButtonController.cpp:
2112         (WebCore::isDeletableElement):
2113         * inspector/DOMNodeHighlighter.cpp:
2114         (WebCore::DOMNodeHighlighter::drawNodeHighlight):
2115         * page/animation/AnimationBase.cpp:
2116         (WebCore::blendFunc):
2117         * platform/ScrollView.h:
2118         (WebCore::ScrollView::visibleWidth):
2119         (WebCore::ScrollView::visibleHeight):
2120         * platform/ScrollableArea.h:
2121         (WebCore::ScrollableArea::visibleHeight):
2122         (WebCore::ScrollableArea::visibleWidth):
2123         * platform/graphics/FloatPoint.h: Adding FloatPoint and FloatSize move[By] functions
2124         (WebCore::FloatPoint::move):
2125         (WebCore::FloatPoint::moveBy):
2126         * rendering/AutoTableLayout.cpp:
2127         (WebCore::AutoTableLayout::computePreferredLogicalWidths):
2128         (WebCore::AutoTableLayout::layout):
2129         * rendering/InlineFlowBox.h:
2130         (WebCore::InlineFlowBox::layoutOverflowRect):
2131         (WebCore::InlineFlowBox::logicalLeftLayoutOverflow):
2132         (WebCore::InlineFlowBox::logicalRightLayoutOverflow):
2133         (WebCore::InlineFlowBox::logicalTopLayoutOverflow):
2134         (WebCore::InlineFlowBox::logicalBottomLayoutOverflow):
2135         (WebCore::InlineFlowBox::logicalLayoutOverflowRect):
2136         (WebCore::InlineFlowBox::visualOverflowRect):
2137         (WebCore::InlineFlowBox::logicalLeftVisualOverflow):
2138         (WebCore::InlineFlowBox::logicalRightVisualOverflow):
2139         (WebCore::InlineFlowBox::logicalTopVisualOverflow):
2140         (WebCore::InlineFlowBox::logicalBottomVisualOverflow):
2141         (WebCore::InlineFlowBox::logicalVisualOverflowRect):
2142         (WebCore::InlineFlowBox::frameRectIncludingLineHeight):
2143         (WebCore::InlineFlowBox::logicalFrameRectIncludingLineHeight):
2144         * rendering/RenderBlock.h:
2145         (WebCore::RenderBlock::RenderBlockRareData::positiveMarginBeforeDefault):
2146         (WebCore::RenderBlock::RenderBlockRareData::negativeMarginBeforeDefault):
2147         (WebCore::RenderBlock::RenderBlockRareData::positiveMarginAfterDefault):
2148         (WebCore::RenderBlock::RenderBlockRareData::negativeMarginAfterDefault):
2149
2150 2011-07-06  Emil A Eklund  <eae@chromium.org>
2151
2152         Reviewed by Eric Seidel.
2153         
2154         Switch nodeAtPoint to to new layout types
2155         https://bugs.webkit.org/show_bug.cgi?id=63663
2156
2157         No new tests, no functionality changes.
2158
2159         * rendering/EllipsisBox.cpp:
2160         (WebCore::EllipsisBox::nodeAtPoint):
2161         * rendering/EllipsisBox.h:
2162         * rendering/InlineBox.cpp:
2163         (WebCore::InlineBox::nodeAtPoint):
2164         * rendering/InlineBox.h:
2165         * rendering/InlineFlowBox.cpp:
2166         (WebCore::InlineFlowBox::nodeAtPoint):
2167         * rendering/InlineFlowBox.h:
2168         * rendering/InlineTextBox.cpp:
2169         (WebCore::InlineTextBox::nodeAtPoint):
2170         * rendering/InlineTextBox.h:
2171         * rendering/LayoutTypes.h:
2172         (WebCore::toLayoutSize):
2173         (WebCore::toLayoutPoint):
2174         (WebCore::roundedLayoutPoint):
2175         (WebCore::roundedLayoutUnit):
2176         * rendering/RenderBlock.cpp:
2177         (WebCore::RenderBlock::nodeAtPoint):
2178         * rendering/RenderBlock.h:
2179         * rendering/RenderBox.cpp:
2180         (WebCore::RenderBox::nodeAtPoint):
2181         * rendering/RenderBox.h:
2182         * rendering/RenderFrameSet.cpp:
2183         (WebCore::RenderFrameSet::nodeAtPoint):
2184         * rendering/RenderFrameSet.h:
2185         * rendering/RenderImage.cpp:
2186         (WebCore::RenderImage::nodeAtPoint):
2187         * rendering/RenderImage.h:
2188         * rendering/RenderInline.cpp:
2189         (WebCore::RenderInline::nodeAtPoint):
2190         * rendering/RenderInline.h:
2191         * rendering/RenderListBox.cpp:
2192         (WebCore::RenderListBox::nodeAtPoint):
2193         * rendering/RenderListBox.h:
2194         * rendering/RenderObject.cpp:
2195         (WebCore::RenderObject::nodeAtPoint):
2196         * rendering/RenderObject.h:
2197         * rendering/RenderTable.cpp:
2198         (WebCore::RenderTable::nodeAtPoint):
2199         * rendering/RenderTable.h:
2200         * rendering/RenderTableRow.cpp:
2201         (WebCore::RenderTableRow::nodeAtPoint):
2202         * rendering/RenderTableRow.h:
2203         * rendering/RenderTableSection.cpp:
2204         (WebCore::RenderTableSection::nodeAtPoint):
2205         * rendering/RenderTableSection.h:
2206         * rendering/RenderText.h:
2207         (WebCore::RenderText::nodeAtPoint):
2208         * rendering/RenderTextControlMultiLine.cpp:
2209         (WebCore::RenderTextControlMultiLine::nodeAtPoint):
2210         * rendering/RenderTextControlMultiLine.h:
2211         * rendering/RenderTextControlSingleLine.cpp:
2212         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
2213         * rendering/RenderTextControlSingleLine.h:
2214         * rendering/RenderWidget.cpp:
2215         (WebCore::RenderWidget::nodeAtPoint):
2216         * rendering/RenderWidget.h:
2217         * rendering/RootInlineBox.cpp:
2218         (WebCore::RootInlineBox::nodeAtPoint):
2219         * rendering/RootInlineBox.h:
2220         * rendering/svg/RenderSVGForeignObject.cpp:
2221         (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
2222         (WebCore::RenderSVGForeignObject::nodeAtPoint):
2223         * rendering/svg/RenderSVGForeignObject.h:
2224         * rendering/svg/RenderSVGModelObject.cpp:
2225         (WebCore::RenderSVGModelObject::nodeAtPoint):
2226         * rendering/svg/RenderSVGModelObject.h:
2227         * rendering/svg/RenderSVGRoot.cpp:
2228         (WebCore::RenderSVGRoot::nodeAtPoint):
2229         * rendering/svg/RenderSVGRoot.h:
2230         * rendering/svg/RenderSVGText.cpp:
2231         (WebCore::RenderSVGText::nodeAtPoint):
2232         * rendering/svg/RenderSVGText.h:
2233         * rendering/svg/SVGInlineTextBox.cpp:
2234         (WebCore::SVGInlineTextBox::nodeAtPoint):
2235         * rendering/svg/SVGInlineTextBox.h:
2236
2237 2011-07-06  Adrienne Walker  <enne@google.com>
2238
2239         [chromium] Add compositor texture manager soft limits and lost focus reclaiming
2240         https://bugs.webkit.org/show_bug.cgi?id=64009
2241
2242         Reviewed by James Robinson.
2243
2244         Add a soft limit for texture memory. Unprotected textures will get
2245         reclaimed when above this limit. Increase the hard limit for maximum
2246         texture memory as well, now that there is a better heuristic and
2247         textures are reclaimed from tabs without focus.
2248
2249         Landing this for vangelis@chromium.org.
2250
2251         * platform/graphics/chromium/LayerRendererChromium.cpp:
2252         (WebCore::LayerRendererChromium::releaseTextures):
2253         (WebCore::LayerRendererChromium::initializeSharedObjects):
2254         * platform/graphics/chromium/LayerRendererChromium.h:
2255         * platform/graphics/chromium/LayerTilerChromium.cpp:
2256         (WebCore::LayerTilerChromium::protectTileTextures):
2257         * platform/graphics/chromium/LayerTilerChromium.h:
2258         * platform/graphics/chromium/TextureManager.cpp:
2259         (WebCore::TextureManager::TextureManager):
2260         (WebCore::TextureManager::requestTexture):
2261         * platform/graphics/chromium/TextureManager.h:
2262         (WebCore::TextureManager::create):
2263
2264 2011-07-06  Pavel Feldman  <pfeldman@chromium.org>
2265
2266         Not reviewed: Web Inspector: fixing typo introduced in the r90397.
2267
2268         * inspector/front-end/StylesSidebarPane.js:
2269
2270 2011-07-06  Mike Reed  <reed@google.com>
2271
2272         [skia] don't include deprecated header
2273         https://bugs.webkit.org/show_bug.cgi?id=64025
2274
2275         Reviewed by James Robinson.
2276
2277         No new tests. Just removing #include of an unused header that will be gone soon
2278
2279         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp:
2280         * platform/graphics/skia/PlatformContextSkia.cpp:
2281
2282 2011-06-30  Cris Neckar  <cdn@chromium.org>
2283
2284         Reviewed by Darin Fisher.
2285
2286         Add versioning to Chromium clipboard and prevent polling from inside events.
2287         https://bugs.webkit.org/show_bug.cgi?id=63738
2288
2289         * platform/chromium/ChromiumDataObject.cpp:
2290         (WebCore::ChromiumDataObject::getSequenceNumber):
2291         * platform/chromium/ChromiumDataObject.h:
2292         * platform/chromium/ClipboardChromium.cpp:
2293         (WebCore::ClipboardChromium::ClipboardChromium):
2294         (WebCore::ClipboardChromium::getData):
2295         (WebCore::ClipboardChromium::platformClipboardChanged):
2296         * platform/chromium/ClipboardChromium.h:
2297         * platform/chromium/DataTransferItemChromium.cpp:
2298         (WebCore::DataTransferItemChromium::getAsString):
2299         (WebCore::DataTransferItemChromium::getAsFile):
2300         * platform/chromium/PlatformBridge.h:
2301         * svg/SVGAnimationElement.cpp:
2302         (WebCore::SVGAnimationElement::setTargetAttributeAnimatedValue):
2303
2304 2011-07-01  James Robinson  <jamesr@chromium.org>
2305
2306         Reviewed by Stephen White.
2307
2308         [chromium] Externalize layer visibility calculation
2309         https://bugs.webkit.org/show_bug.cgi?id=63847
2310
2311         This moves the layer visibility calculation from the layer itself out to LayerRendererChromium, like the other
2312         calculated properties.  Previously, we were doing this calculating at paint time and again at draw time and
2313         relying on the fact that this produced the same value.  This avoids the redundant calculation.
2314
2315         Covered by existing compositing/ layout tests.
2316
2317         * platform/graphics/chromium/ContentLayerChromium.cpp:
2318         (WebCore::ContentLayerChromium::ContentLayerChromium):
2319         (WebCore::ContentLayerChromium::paintContentsIfDirty):
2320         (WebCore::ContentLayerChromium::tilingTransform):
2321         (WebCore::ContentLayerChromium::contentBounds):
2322         (WebCore::ContentLayerChromium::updateLayerSize):
2323         (WebCore::ContentLayerChromium::draw):
2324         (WebCore::ContentLayerChromium::setTilingOption):
2325         (WebCore::ContentLayerChromium::setIsMask):
2326         * platform/graphics/chromium/ContentLayerChromium.h:
2327         * platform/graphics/chromium/ImageLayerChromium.cpp:
2328         (WebCore::ImageLayerChromium::paintContentsIfDirty):
2329         (WebCore::ImageLayerChromium::contentBounds):
2330         * platform/graphics/chromium/ImageLayerChromium.h:
2331         * platform/graphics/chromium/LayerChromium.cpp:
2332         (WebCore::LayerChromium::pushPropertiesTo):
2333         * platform/graphics/chromium/LayerChromium.h:
2334         (WebCore::LayerChromium::contentBounds):
2335         (WebCore::LayerChromium::visibleLayerRect):
2336         (WebCore::LayerChromium::setVisibleLayerRect):
2337         (WebCore::LayerChromium::draw):
2338         * platform/graphics/chromium/LayerRendererChromium.cpp:
2339         (WebCore::calculateVisibleLayerRect):
2340         (WebCore::LayerRendererChromium::paintLayerContents):
2341         (WebCore::LayerRendererChromium::drawLayer):
2342         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
2343         (WebCore::RenderSurfaceChromium::draw):
2344         * platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp:
2345         (WebCore::CCCanvasLayerImpl::draw):
2346         * platform/graphics/chromium/cc/CCCanvasLayerImpl.h:
2347         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
2348         (WebCore::CCLayerImpl::draw):
2349         * platform/graphics/chromium/cc/CCLayerImpl.h:
2350         (WebCore::CCLayerImpl::contentBounds):
2351         (WebCore::CCLayerImpl::setContentBounds):
2352         (WebCore::CCLayerImpl::visibleLayerRect):
2353         (WebCore::CCLayerImpl::setVisibleLayerRect):
2354         (WebCore::CCLayerImpl::doubleSided):
2355         (WebCore::CCLayerImpl::setDoubleSided):
2356         * platform/graphics/chromium/cc/CCPluginLayerImpl.cpp:
2357         (WebCore::CCPluginLayerImpl::draw):
2358         * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
2359         * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
2360         (WebCore::CCVideoLayerImpl::draw):
2361         * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
2362
2363 2011-07-06  John Sullivan  <sullivan@apple.com>
2364
2365         IconDatabase::synchronousIconForPageURL() has inconsistent API when no custom icon is available
2366         <https://bugs.webkit.org/show_bug.cgi?id=64015>
2367         <rdar://problem/9706277>
2368
2369         For some URLs it would return a particular size of default icon; for other
2370         URLs it would return 0.
2371
2372         Reviewed by Ada Chan.
2373
2374         * loader/icon/IconDatabase.cpp:
2375         (WebCore::IconDatabase::synchronousIconForPageURL):
2376         Return 0 in all cases where there is no custom icon.
2377
2378 2011-07-06  Emil A Eklund  <eae@chromium.org>
2379
2380         Reviewed by Eric Seidel.
2381
2382         Switch RenderLayer::hitTest* to to new layout types
2383         https://bugs.webkit.org/show_bug.cgi?id=63640
2384
2385         Switch hit testing and supporting methods for RenderLayer over to the new
2386         layout unit abstraction.
2387         
2388         No new tests, no functionality changes.
2389
2390         * rendering/LayoutTypes.h:
2391         (WebCore::roundedLayoutPoint):
2392         Add roundedLayoutPoint abstraction, calls roundedIntPoint now but will be a
2393         no-op (and eventually go away) once we switch to float or fixed point.
2394         
2395         * rendering/RenderLayer.cpp:
2396         (WebCore::RenderLayer::createLocalTransformState):
2397         (WebCore::RenderLayer::hitTestLayer):
2398         (WebCore::RenderLayer::hitTestList):
2399         (WebCore::RenderLayer::hitTestPaginatedChildLayer):
2400         (WebCore::RenderLayer::hitTestChildLayerColumns):
2401         (WebCore::RenderLayer::calculateRects):
2402         * rendering/RenderLayer.h:
2403
2404 2011-07-06  Simon Fraser  <simon.fraser@apple.com>
2405
2406         Have RenderLayerCompositor take care of clearing backing store when entering the page cache
2407         https://bugs.webkit.org/show_bug.cgi?id=64018
2408
2409         Reviewed by Joseph Pecoraro.
2410
2411         Move responsibility for tearing down all RenderLayer backing stores from
2412         RenderLayer itself to RenderLayerCompositor, since RenderLayerCompositor 
2413         manages backing store creation and destruction in general.
2414
2415         * page/FrameView.cpp:
2416         (WebCore::FrameView::clearBackingStores):
2417         * rendering/RenderLayer.cpp:
2418         * rendering/RenderLayer.h:
2419         * rendering/RenderLayerCompositor.cpp:
2420         (WebCore::RenderLayerCompositor::clearBackingForLayerIncludingDescendants):
2421         (WebCore::RenderLayerCompositor::clearBackingForAllLayers):
2422         * rendering/RenderLayerCompositor.h:
2423
2424 2011-07-06  Ryuan Choi  <ryuan.choi@samsung.com>
2425
2426         [Performance] Only call sendContentResizeNotification when the scrollbar actually did change
2427         https://bugs.webkit.org/show_bug.cgi?id=47320
2428
2429         Reviewed by Eric Seidel.
2430
2431         Move avoidScrollbarCreation checking code from setHasHorizontalScrollbar
2432         and setHasVerticalScrollbar to their caller in order to keep sendContentResizedNotification
2433         false in case scrollbar is not really changed.
2434         As a result, it will remove unnecessary relayout in the above case.
2435
2436         No new tests as this is very hard to write tests for. The bug only
2437         occured when scrolling the sites which contain frame in browser with
2438         frameFlattening. This should not change functionality in other case.
2439
2440         * platform/ScrollView.cpp:
2441         (WebCore::ScrollView::setHasHorizontalScrollbar):
2442         (WebCore::ScrollView::setHasVerticalScrollbar):
2443         (WebCore::ScrollView::updateScrollbars):
2444
2445 2011-07-06  Nate Chapin  <japhet@chromium.org>
2446
2447         Don't let all subresources keep isLoadingInAPISense() from
2448         returning false, only requests that affect
2449         CachedResourceRequest::requestCount().
2450         https://bugs.webkit.org/show_bug.cgi?id=62066
2451
2452         Reviewed by Adam Barth.
2453
2454         * dom/Document.cpp:
2455         (WebCore::Document::Document):
2456         (WebCore::Document::dispatchWindowLoadEvent):
2457         * dom/Document.h:
2458         (WebCore::Document::loadEventFinished):
2459         * loader/DocumentLoader.cpp:
2460         (WebCore::DocumentLoader::isLoadingInAPISense):
2461
2462 2011-07-06  Pavel Feldman  <pfeldman@google.com>
2463
2464         Web Inspector: implement drag'n'drop in the elements panel for reordering nodes.
2465         https://bugs.webkit.org/show_bug.cgi?id=63990
2466
2467         Reviewed by Yury Semikhatsky.
2468
2469         * inspector/Inspector.json:
2470         * inspector/InspectorDOMAgent.cpp:
2471         (WebCore::InspectorDOMAgent::moveTo):
2472         * inspector/InspectorDOMAgent.h:
2473         * inspector/front-end/DOMAgent.js:
2474         (WebInspector.DOMNode.prototype._removeChild):
2475         (WebInspector.DOMNode.prototype.ownerDocumentElement):
2476         (WebInspector.DOMNode.prototype.moveTo):
2477         (WebInspector.DOMAgent.prototype._childNodeRemoved):
2478         * inspector/front-end/ElementsTreeOutline.js:
2479         (WebInspector.ElementsTreeOutline):
2480         (WebInspector.ElementsTreeOutline.prototype._ondragstart):
2481         (WebInspector.ElementsTreeOutline.prototype._ondragover):
2482         (WebInspector.ElementsTreeOutline.prototype._ondragleave):
2483         (WebInspector.ElementsTreeOutline.prototype._isValidDragSourceOrTarget):
2484         (WebInspector.ElementsTreeOutline.prototype._ondragend.callback):
2485         (WebInspector.ElementsTreeOutline.prototype._ondragend):
2486         (WebInspector.ElementsTreeOutline.prototype._clearDragOverTreeElementMarker):
2487         (WebInspector.ElementsTreeOutline.prototype.populateContextMenu.focusElement):
2488         (WebInspector.ElementsTreeOutline.prototype.populateContextMenu):
2489         (WebInspector.ElementsTreeElement.prototype.onattach):
2490         * inspector/front-end/inspector.css:
2491         (.outline-disclosure li.elements-drag-over .selection):
2492         * inspector/front-end/treeoutline.js:
2493         (TreeOutline.prototype.treeElementFromEvent):
2494
2495 2011-07-06  Andras Becsi  <abecsi@webkit.org>
2496
2497         Fix "warning: a `;' might be needed at the end of action code"
2498
2499         Unreviewed gardening.
2500
2501         No new tests needed.
2502
2503         * css/CSSGrammar.y: Future versions of Bison will not add the ';' so add it.
2504
2505 2011-07-06  Andras Becsi  <abecsi@webkit.org>
2506
2507         [Qt] Revome unused but set shadowBlur variable after r90406.
2508
2509         Unreviewed build fix.
2510
2511         No new tests needed.
2512
2513         * platform/graphics/qt/GraphicsContextQt.cpp:
2514         (WebCore::GraphicsContext::fillPath): Use the GraphicsContext brush.
2515
2516 2011-07-06  Andras Becsi  <abecsi@webkit.org>
2517
2518         [Qt] Remove duplicate entries of ShadowBlur sources from project file.
2519
2520         Rubber-stamped by Csaba Osztrogonác.
2521
2522         No new tests needed.
2523
2524         * WebCore.pro: These files were already added in r84410.
2525
2526 2011-07-05  Kentaro Hara  <haraken@google.com>
2527
2528         Trigger a 'change' event whenever selected files are changed
2529         https://bugs.webkit.org/show_bug.cgi?id=63929
2530
2531         Reviewed by Kent Tamura.
2532
2533         Record previously selected files and then compare them with newly selected files.
2534         If the previously selected files and their order are not equal to those of
2535         the newly selected files, we trigger the 'change' event.
2536
2537         Test: fast/forms/file-input-change-event.html
2538
2539         * html/FileInputType.cpp:
2540         (WebCore::FileInputType::filesChosen): Calls dispathChangeEvent() only when the previously selected files are different from the newly selected files
2541
2542 2011-06-29  Kent Tamura  <tkent@chromium.org>
2543
2544         Reviewed by Alexey Proskuryakov.
2545
2546         [Mac] REGRESSION (r88415): Range slider doesn't have focus appearance.
2547         https://bugs.webkit.org/show_bug.cgi?id=63573
2548
2549         * rendering/RenderThemeMac.mm:
2550         (WebCore::RenderThemeMac::paintSliderThumb):
2551         Need to pass the RenderObject of the owner <input> because
2552         updateFocusedState() checks the outline style of the specified
2553         renderer, and we'd like to make a slider thumb reflect the owner
2554         focus style.
2555
2556 2011-07-05  Hans Wennborg  <hans@chromium.org>
2557
2558         [V8][Chromium] Remove use of OwnHandle from V8LocalContext
2559         https://bugs.webkit.org/show_bug.cgi?id=63925
2560
2561         Reviewed by Adam Barth.
2562
2563         Replace the OwnHandle<> member in V8LocalContext with
2564         v8::Persistent<v8::Context>.
2565         The code that used OwnHandle<> would not correctly Dispose
2566         of the Context, which would cause the memory to fill up when creating
2567         and destructing many V8LocalContext objects, such as in the case
2568         of IndexedDB.
2569
2570         * bindings/v8/V8Utilities.cpp:
2571         (WebCore::V8LocalContext::V8LocalContext):
2572         (WebCore::V8LocalContext::~V8LocalContext):
2573         * bindings/v8/V8Utilities.h:
2574
2575 2011-07-05  Igor Oliveira  <igor.oliveira@openbossa.org>
2576
2577         [Qt] Add ShadowBlur support
2578         https://bugs.webkit.org/show_bug.cgi?id=62997
2579
2580         Use ShadowBlur instead of ContextShadow to handle canvas and css shadows. ShadowBlur is
2581         a newer and platform independent shadow implementation.
2582         Qt QPainter does not have support for shadows so is necessary to create a layer support
2583         to draw complex shapes and fonts. The beginShadowLayer creates a temporary shadow buffer
2584         where the canvas can draw onto and endShadowLayer applies the blur filter, colors the
2585         shadow buffer and draw the final shadow to the graphics context.
2586
2587         Reviewed by Andreas Kling.
2588
2589         * WebCore.pro:
2590         * platform/graphics/GraphicsContext.cpp:
2591         * platform/graphics/GraphicsContext.h:
2592         * platform/graphics/ShadowBlur.cpp:
2593         (WebCore::ShadowBlur::ShadowBlur):
2594         (WebCore::ShadowBlur::setShadowValues):
2595         (WebCore::ShadowBlur::updateShadowBlurValues):
2596         (WebCore::ShadowBlur::clear):
2597         (WebCore::ShadowBlur::blurAndColorShadowBuffer):
2598         (WebCore::ShadowBlur::beginShadowLayer):
2599         (WebCore::ShadowBlur::endShadowLayer):
2600         * platform/graphics/ShadowBlur.h:
2601         (WebCore::ShadowBlur::type):
2602         * platform/graphics/qt/ContextShadowQt.cpp: Removed.
2603         * platform/graphics/qt/FontQt.cpp:
2604         (WebCore::drawTextCommon):
2605         (WebCore::Font::drawGlyphs):
2606         * platform/graphics/qt/GraphicsContextQt.cpp:
2607         (WebCore::GraphicsContextPlatformPrivate::mustUseShadowBlur):
2608         (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
2609         (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
2610         (WebCore::GraphicsContext::savePlatformState):
2611         (WebCore::GraphicsContext::restorePlatformState):
2612         (WebCore::GraphicsContext::fillPath):
2613         (WebCore::GraphicsContext::strokePath):
2614         (WebCore::GraphicsContext::fillRect):
2615         (WebCore::GraphicsContext::fillRoundedRect):
2616         (WebCore::GraphicsContext::shadowBlur):
2617         (WebCore::GraphicsContext::clipBounds):
2618         (WebCore::GraphicsContext::setPlatformShadow):
2619         (WebCore::GraphicsContext::clearPlatformShadow):
2620         * platform/graphics/qt/ImageQt.cpp:
2621         (WebCore::BitmapImage::draw):
2622         * platform/graphics/qt/StillImageQt.cpp:
2623         (WebCore::StillImage::draw):
2624
2625 2011-07-05  Sam Weinig  <sam@webkit.org>
2626
2627         Null deref accessing CustomEvent.detail
2628         <rdar://problem/9724577>
2629         https://bugs.webkit.org/show_bug.cgi?id=63885
2630
2631         Reviewed by Anders Carlsson.
2632
2633         Test: fast/events/custom-event-uninitialized.html
2634
2635         * bindings/scripts/CodeGeneratorJS.pm:
2636         Guard against uninitialized script value.
2637
2638 2011-07-05  Pratik Solanki  <psolanki@apple.com>
2639
2640         Reviewed by Dan Bernstein.
2641
2642         Coalesce data array into one NSData before calling didReceiveData
2643         https://bugs.webkit.org/show_bug.cgi?id=63916
2644         <rdar://problem/9715181>
2645
2646         Instead of calling didReceiveData multiple times with smaller chunks of data, we merge the
2647         data buffers into one and call it once.
2648
2649         No new tests because the flag isn't enabled yet.
2650
2651         * platform/network/mac/ResourceHandleMac.mm:
2652         (-[WebCoreResourceHandleAsDelegate connection:didReceiveDataArray:]):
2653
2654 2011-07-05  Tamas Czene  <Czene.Tamas@stud.u-szeged.hu>
2655
2656         Reviewed by Simon Fraser.
2657
2658         Remove virtual functions from StyleImage.
2659         https://bugs.webkit.org/show_bug.cgi?id=63909
2660
2661         We can remove the virtual "isChachedImage, isPendingImage, isGeneratedImage" functions to speed up the StyleImage.
2662         Some profile data shows this part is significant, especially in small CSS-based sites.
2663         Removing the virtual functions - removing the calls - makes a small performance progression on this part.
2664
2665         * rendering/style/StyleCachedImage.h:
2666         (WebCore::StyleCachedImage::StyleCachedImage):
2667         * rendering/style/StyleGeneratedImage.h:
2668         (WebCore::StyleGeneratedImage::StyleGeneratedImage):
2669         * rendering/style/StyleImage.h:
2670         (WebCore::StyleImage::isCachedImage):
2671         (WebCore::StyleImage::isPendingImage):
2672         (WebCore::StyleImage::isGeneratedImage):
2673         (WebCore::StyleImage::StyleImage):
2674         * rendering/style/StylePendingImage.h:
2675         (WebCore::StylePendingImage::StylePendingImage):
2676
2677 2011-07-05  Pavel Feldman  <pfeldman@google.com>
2678
2679         Web Inspector: add "element state" setting to the styles section title.
2680         https://bugs.webkit.org/show_bug.cgi?id=63932
2681
2682         Reviewed by Yury Semikhatsky.
2683
2684         * English.lproj/localizedStrings.js:
2685         * WebCore.gypi:
2686         * inspector/front-end/Images/paneElementStateButtons.png: Added.
2687         * inspector/front-end/StylesSidebarPane.js:
2688         (WebInspector.StylesSidebarPane.muteEventListener):
2689         (WebInspector.StylesSidebarPane):
2690         (WebInspector.StylesSidebarPane.prototype.update):
2691         (WebInspector.StylesSidebarPane.prototype._rebuildUpdate):
2692         (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
2693         (WebInspector.StylesSidebarPane.prototype.addBlankSection):
2694         (WebInspector.StylesSidebarPane.prototype.registerShortcuts):
2695         (WebInspector.StylesSidebarPane.prototype._toggleElementStatePane):
2696         (WebInspector.StylesSidebarPane.prototype._createElementStatePane.clickListener):
2697         (WebInspector.StylesSidebarPane.prototype._createElementStatePane.createCheckbox):
2698         (WebInspector.StylesSidebarPane.prototype._createElementStatePane):
2699         * inspector/front-end/WebKit.qrc:
2700         * inspector/front-end/inspector.css:
2701         (.pane > .title > .pane-title-button:active, .pane > .title > .pane-title-button.toggled):
2702         (.pane > .title > .pane-title-button.element-state):
2703         (.styles-element-state-pane):
2704         (.styles-element-state-pane.expanded):
2705         (.styles-element-state-pane > table):
2706         (.styles-element-state-pane input):
2707
2708 2011-06-22  Pavel Podivilov  <podivilov@chromium.org>
2709
2710         Reviewed by Yury Semikhatsky.
2711
2712         Web Inspector: extract duplicated code that deals with source mappings.
2713         https://bugs.webkit.org/show_bug.cgi?id=63139
2714
2715         * inspector/front-end/ConsoleView.js:
2716         (WebInspector.ConsoleMessage.prototype.isEqual):
2717         (WebInspector.ConsoleMessage.prototype.get stackTrace):
2718         * inspector/front-end/DebuggerPresentationModel.js:
2719         (WebInspector.DebuggerPresentationModel.prototype._uiLocationToScriptLocation):
2720         (WebInspector.DebuggerPresentationModel.prototype._updateAnchor):
2721         (WebInspector.DebuggerPresentationModel.prototype._addConsoleMessage.didGetUILocation):
2722         (WebInspector.DebuggerPresentationModel.prototype._addConsoleMessage):
2723         (WebInspector.DebuggerPresentationModel.prototype.continueToLine):
2724         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger.didGetScriptLocation):
2725         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger):
2726         (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded.updateSourceFileBreakpointsAndDispatchEvent):
2727         (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded.didGetUILocation):
2728         (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded):
2729         (WebInspector.DebuggerPresentationModel.prototype._debuggerPaused):
2730         (WebInspector.DebuggerPresentationModel.prototype._sourceFileForScript):
2731         (WebInspector.PresenationCallFrame):
2732         (WebInspector.PresenationCallFrame.prototype.sourceLine):
2733
2734 2011-07-05  Ilya Tikhonovsky  <loislo@chromium.org>
2735
2736         Web Inspector: WebInspector frontend reports a protocol error in remote debugging mode.
2737         https://bugs.webkit.org/show_bug.cgi?id=63935
2738
2739         it was error generated for obsolete message "loaded" which was sent from frontend to backend.
2740
2741         Reviewed by Yury Semikhatsky.
2742
2743         * inspector/CodeGeneratorInspector.pm:
2744         * inspector/front-end/inspector.js:
2745         (WebInspector.loaded.WebInspector.socket.onopen):
2746         (WebInspector.loaded):
2747
2748 2011-07-05  Andrey Kosyakov  <caseq@chromium.org>
2749
2750         Web Inspector: [refactoring] remove network-sidebar style, add network-log-grid
2751         https://bugs.webkit.org/show_bug.cgi?id=63913
2752
2753         Reviewed by Yury Semikhatsky.
2754
2755         * inspector/front-end/NetworkPanel.js:
2756         (WebInspector.NetworkPanel):
2757         (WebInspector.NetworkPanel.prototype._createTable):
2758         * inspector/front-end/networkPanel.css:
2759         (.network-log-grid):
2760         (.network-log-grid table.data):
2761         (.network-log-grid.small table.data):
2762         (.network-log-grid td):
2763         (.network-log-grid.small td):
2764         (.network-log-grid th):
2765         (.network-log-grid.small th):
2766         (.network-log-grid th, .network.panel .data-grid th.sort-descending, .network.panel .data-grid th.sort-ascending):
2767         (.network-log-grid .data-container):
2768         (.network-log-grid.small .data-container):
2769         (.network-log-grid select):
2770         (.network-log-grid.small tr.offscreen):
2771         (.network-log-grid tr.offscreen):
2772         (.network-log-grid tr.offscreen td):
2773         (.network-log-grid tr.filler):
2774         (.network-log-grid tr:not(.filler) td.name-column):
2775         (.network.panel:not(.viewing-resource) .network-log-grid td.name-column:hover):
2776         (.network-log-grid td.time-column):
2777         (.network-log-grid.small .network-graph-side):
2778         (.network-log-grid th.sortable:active):
2779         (.network-log-grid tr.selected .network-cell-subtitle):
2780         (.network-log-grid .icon):
2781         (.network-log-grid.small .icon):
2782         (.network-log-grid .network-category-scripts .icon):
2783         (.network-log-grid.small .network-category-scripts .icon):
2784         (.network-log-grid .network-category-documents .icon):
2785         (.network-log-grid.small .network-category-documents .icon):
2786         (.network-log-grid .network-category-stylesheets .icon):
2787         (.network-log-grid.small .network-category-stylesheets .icon):
2788         (.network-log-grid .network-category-images .icon):
2789         (.network-log-grid.small .network-category-images .icon):
2790         (.network-log-grid .image-network-icon-preview):
2791         (.network-log-grid.small .image-network-icon-preview):
2792         (.network-timeline-grid.small .network-event-divider):
2793         (.network-log-grid .resources-dividers):
2794         (.network-log-grid .resources-dividers-label-bar):
2795         (.network-timeline-grid.small .resources-dividers-label-bar):
2796         (.network-timeline-grid .resources-divider-label):
2797         (.network-timeline-grid .resources-dividers-label-bar .resources-divider):
2798         (.network-timeline-grid.small .resources-dividers-label-bar .resources-divider):
2799         (.network-timeline-grid .resources-divider.first .resources-divider-label):
2800         (.network-timeline-grid .resources-dividers-label-bar .resources-divider.first):
2801         (.network-timeline-grid tr.filler td):
2802         (.network-summary-bar td):
2803         (.network.panel.viewing-resource .network-log-grid th):
2804         (.network-log-grid.full-grid-mode .viewer-column):
2805         (.network-log-grid.brief-grid-mode .time-column):
2806         (.network-log-grid.viewing-resource-mode .timeline-column):
2807         (.network.panel .sidebar):
2808         (.network.panel.viewing-resource .network-log-grid .data-grid-resizer):
2809
2810 2011-07-05  Alexandru Chiculita  <achicu@adobe.com>
2811
2812         Reviewed by Simon Hausmann.
2813
2814         [Qt] "cat" is not available when building.
2815         https://bugs.webkit.org/show_bug.cgi?id=63924
2816
2817         Changed 'cat' to 'perl -ne \"print $1\"' because 'cat' is not available on Windows with
2818         MSVC toolchain. It passed the Qt buildbots, because they run with cygwin.
2819
2820         Project file change. No tests needed.
2821
2822         * CodeGenerators.pri:
2823 2011-07-05  Vsevolod Vlasov  <vsevik@chromium.org>
2824
2825         Unreviewed; Qt Linux Release minimal compile fix.
2826
2827         * testing/Internals.h:
2828         (WebCore::Internals::setInspectorResourcesDataSizeLimits):
2829         * testing/Internals.idl:
2830
2831 2011-07-05  Vsevolod Vlasov  <vsevik@chromium.org>
2832
2833         Web Inspector: Show content for plugin requests in network panel.
2834         https://bugs.webkit.org/show_bug.cgi?id=30080
2835
2836         Now the data from didReceiveData callback is passed to inspector.
2837         It is then saved in NetworkResourcesData structure for plugin requests.
2838         Added window.internals.setInspectorResourcesDataSizeLimits() method
2839         for testing replacement logic.
2840
2841         Reviewed by Pavel Feldman.
2842
2843         Tests: http/tests/inspector/network/network-content-replacement-embed.html
2844                http/tests/inspector/network/network-content-replacement-xhr.html
2845                http/tests/inspector/network/network-embed.html
2846
2847         * WebCore.exp.in:
2848         * inspector/InspectorController.cpp:
2849         (WebCore::InspectorController::setResourcesDataSizeLimitsFromInternals):
2850         * inspector/InspectorController.h:
2851         * inspector/InspectorInstrumentation.cpp:
2852         (WebCore::InspectorInstrumentation::didReceiveDataImpl):
2853         * inspector/InspectorInstrumentation.h:
2854         (WebCore::InspectorInstrumentation::didReceiveData):
2855         * inspector/InspectorResourceAgent.cpp:
2856         (WebCore::InspectorResourceAgent::didReceiveResponse):
2857         (WebCore::InspectorResourceAgent::didReceiveData):
2858         (WebCore::InspectorResourceAgent::didFinishLoading):
2859         (WebCore::InspectorResourceAgent::setInitialXHRContent):
2860         (WebCore::InspectorResourceAgent::setResourcesDataSizeLimitsFromInternals):
2861         (WebCore::InspectorResourceAgent::getResourceContent):
2862         * inspector/InspectorResourceAgent.h:
2863         * inspector/NetworkResourcesData.cpp:
2864         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
2865         (WebCore::NetworkResourcesData::ResourceData::setContent):
2866         (WebCore::NetworkResourcesData::ResourceData::purgeContent):
2867         (WebCore::NetworkResourcesData::ResourceData::createDecoder):
2868         (WebCore::NetworkResourcesData::ResourceData::dataLength):
2869         (WebCore::NetworkResourcesData::ResourceData::appendData):
2870         (WebCore::NetworkResourcesData::ResourceData::decodeDataToContent):
2871         (WebCore::NetworkResourcesData::NetworkResourcesData):
2872         (WebCore::NetworkResourcesData::responseReceived):
2873         (WebCore::NetworkResourcesData::setResourceContent):
2874         (WebCore::NetworkResourcesData::maybeAddResourceData):
2875         (WebCore::NetworkResourcesData::maybeDecodeDataToContent):
2876         (WebCore::NetworkResourcesData::data):
2877         (WebCore::NetworkResourcesData::clear):
2878         (WebCore::NetworkResourcesData::setResourcesDataSizeLimits):
2879         (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
2880         (WebCore::NetworkResourcesData::ensureFreeSpace):
2881         * inspector/NetworkResourcesData.h:
2882         (WebCore::NetworkResourcesData::ResourceData::hasContent):
2883         (WebCore::NetworkResourcesData::ResourceData::content):
2884         (WebCore::NetworkResourcesData::ResourceData::decoder):
2885         (WebCore::NetworkResourcesData::ResourceData::buffer):
2886         (WebCore::NetworkResourcesData::ResourceData::setBuffer):
2887         (WebCore::NetworkResourcesData::ResourceData::hasData):
2888         * inspector/front-end/Resource.js:
2889         (WebInspector.Resource.prototype.get contentEncoded):
2890         * inspector/front-end/ResourcePreviewView.js:
2891         (WebInspector.ResourcePreviewView.prototype.contentLoaded):
2892         (WebInspector.ResourcePreviewView.prototype._createEmptyView):
2893         (WebInspector.ResourcePreviewView.prototype._createPreviewView):
2894         * inspector/front-end/ResourceView.js:
2895         (WebInspector.ResourceView.hasTextContent):
2896         * loader/DocumentThreadableLoader.cpp:
2897         (WebCore::DocumentThreadableLoader::didReceiveData):
2898         * loader/FrameLoader.cpp:
2899         (WebCore::FrameLoader::willLoadMediaElementURL):
2900         (WebCore::FrameLoader::commitProvisionalLoad):
2901         (WebCore::FrameLoader::loadResourceSynchronously):
2902         (WebCore::FrameLoader::loadedResourceFromMemoryCache):
2903         * loader/ResourceLoadNotifier.cpp:
2904         (WebCore::ResourceLoadNotifier::didReceiveData):
2905         (WebCore::ResourceLoadNotifier::dispatchDidReceiveData):
2906         (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
2907         * loader/ResourceLoadNotifier.h:
2908         * loader/appcache/ApplicationCacheGroup.cpp:
2909         (WebCore::ApplicationCacheGroup::didReceiveData):
2910         * testing/Internals.cpp:
2911         (WebCore::Internals::setInspectorResourcesDataSizeLimits):
2912         * testing/Internals.h:
2913         * testing/Internals.idl:
2914
2915 2011-07-05  Kent Tamura  <tkent@chromium.org>
2916
2917         Add an assertion that percent height box is unregistered correctly.
2918         https://bugs.webkit.org/show_bug.cgi?id=62792
2919
2920         Reviewed by Hajime Morita.
2921
2922         No new tests. This won't change behavior.
2923
2924         * rendering/RenderBlock.cpp:
2925         (WebCore::RenderBlock::hasPercentHeightDescendant): Added.
2926         * rendering/RenderBlock.h: Declare hasPercentHeightDescendant().
2927         * rendering/RenderBox.cpp:
2928         (WebCore::RenderBox::destroy): Assert !hasPercentHeightDescendant().
2929
2930 2011-07-04  Pavel Feldman  <pfeldman@google.com>
2931
2932         Web Inspector: Enable settings screen with settings for console and elements panels.
2933         https://bugs.webkit.org/show_bug.cgi?id=62853
2934
2935         Reviewed by Yury Semikhatsky.
2936
2937         * English.lproj/localizedStrings.js:
2938         * inspector/front-end/HelpScreen.js:
2939         (WebInspector.HelpScreen.prototype.hide):
2940         * inspector/front-end/SettingsScreen.js:
2941         (WebInspector.SettingsScreen):
2942         (WebInspector.SettingsScreen.prototype._createRadioSetting.clickListener):
2943         (WebInspector.SettingsScreen.prototype._createRadioSetting.get for):
2944         * inspector/front-end/ShortcutsScreen.js:
2945         (WebInspector.ShortcutsScreen.prototype.hide):
2946         * inspector/front-end/StylesSidebarPane.js:
2947         (WebInspector.StylesSidebarPane.prototype._colorFormatSettingChanged):
2948         (WebInspector.StylesSidebarPane.prototype._updateColorFormatFilter.get var):
2949         (WebInspector.StylesSidebarPane.prototype._updateColorFormatFilter):
2950         (WebInspector.StylesSidebarPane.prototype._changeSetting):
2951         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.):
2952         * inspector/front-end/inspector.css:
2953         (#counters):
2954         * inspector/front-end/inspector.js:
2955         (WebInspector._createGlobalStatusBarItems):
2956         (WebInspector._toggleSettings):
2957         (WebInspector._showShortcutsScreen):
2958         (WebInspector._hideShortcutsScreen):
2959         (WebInspector._showSettingsScreen.onhide):
2960         (WebInspector._showSettingsScreen):
2961         (WebInspector._hideSettingsScreen):
2962         (WebInspector.documentKeyDown):
2963
2964 2011-07-05  Shinya Kawanaka  <shinyak@google.com>
2965
2966         Reviewed by Kent Tamura.
2967
2968         The default step is used when attribute step of input[type='number'] is "any".
2969         https://bugs.webkit.org/show_bug.cgi?id=57723
2970
2971         When step is "any", 0 was chosen as step, but this is not intuitive.
2972         So changed to use the default step.
2973
2974         * html/HTMLInputElement.cpp:
2975         (WebCore::HTMLInputElement::getAllowedValueStep):
2976           Calls getAllowedValueStepWithDecimalPlaces with RejectAny.
2977         (WebCore::HTMLInputElement::getAllowedValueStepWithDecimalPlaces):
2978           Takes a new arugument AnyStepHandling. If it is AnyIsDefaultStep, this method
2979           allows "step" attribute to take a value "any" to use the default step as step value.
2980           Otherwise, INVALID_STATE_ERR will be returned if "step" is "any".
2981         (WebCore::HTMLInputElement::applyStep): ditto.
2982         (WebCore::HTMLInputElement::stepUp):
2983           Calls applyStep with RejectAny.
2984         (WebCore::HTMLInputElement::stepDown): ditto.
2985         (WebCore::HTMLInputElement::stepUpFromRenderer):
2986           Removes a check that step is "any". It is checked in getAllowedValueStepWithDecimalPlaces.
2987         * html/HTMLInputElement.h:
2988
2989 2011-07-04  Dominic Cooney   <dominicc@chromium.org>
2990
2991         Simplify <progress> element's isDeterminate logic.
2992         https://bugs.webkit.org/show_bug.cgi?id=63889
2993
2994         Reviewed by Hajime Morita.
2995
2996         Covered by existing tests
2997         fast/dom/HTMLProgressElement/indeterminate-progress-*.html
2998
2999         * html/HTMLProgressElement.cpp:
3000         (WebCore::HTMLProgressElement::position): don't duplicate isDeterminate
3001         (WebCore::HTMLProgressElement::isDeterminate): remove redundant tests
3002         (WebCore::HTMLProgressElement::didElementStateChange): fix formatting
3003         * html/HTMLProgressElement.h:
3004
3005 2011-07-04  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3006
3007         Reviewed by Kent Tamura.
3008
3009         [EFL] Add hasOwnDisabledStateHandlingFor() to RenderThemeEfl
3010         https://bugs.webkit.org/show_bug.cgi?id=63884
3011
3012         As MediaControlRootElement decides whether it will display timeline
3013         according to the return value of RenderTheme's hasOwnDisabledStateHandlingFor(),
3014         RenderThemeEfl has to implement this function.
3015
3016         Existing tests cover the visibility of the controls.
3017
3018         * platform/efl/RenderThemeEfl.h:
3019         (WebCore::RenderThemeEfl::hasOwnDisabledStateHandlingFor):
3020
3021 2011-07-04  Kent Tamura  <tkent@chromium.org>
3022
3023         REGRESSION (r87067): Text overflows from short height text field.
3024         https://bugs.webkit.org/show_bug.cgi?id=61768
3025
3026         Reviewed by Dimitri Glazkov.
3027
3028         Since r87067, the RenderStyle for the inner text element is reset
3029         by the value update, but the renderer for the inner text element
3030         keeps to have metrics calculated by the previous style. So
3031         RenderTextControlSingleLine::layout() didn't set a desired height
3032         to the renderer for the inner text element.
3033
3034         This patch changes the style creation code so that it has the
3035         desired height initially.
3036
3037         Test: fast/forms/textfield-overflow-by-value-update.html
3038
3039         * rendering/RenderTextControlSingleLine.cpp:
3040         (WebCore::RenderTextControlSingleLine::RenderTextControlSingleLine):
3041         Initialize m_desiredInnerTextHeight.
3042         (WebCore::RenderTextControlSingleLine::layout):
3043         Update m_desiredInnerTextHeight.
3044         (WebCore::RenderTextControlSingleLine::styleDidChange):
3045         Reset m_desiredInnerTextHeight.
3046         (WebCore::RenderTextControlSingleLine::createInnerTextStyle):
3047         Sets the height if m_desiredInnerTextHeight has a concrete value.
3048         * rendering/RenderTextControlSingleLine.h:
3049         Declare m_desiredInnerTextHeight.
3050
3051 2011-07-04  MORITA Hajime  <morrita@google.com>
3052
3053         Accessing ShadowRoot.nodeList causes an assertion failure.
3054         http://webkit.org/b/63798
3055         
3056         The TreeScope destructor did clear the reference to TreeScope, 
3057         then the Node destructor accessing treeScope(), which results 
3058         an inconsistent state during the NodeList cache cleanup.
3059
3060         This change clears NodeList cache during the TreeScope destructor.
3061         The Node destructor no longer does problematic NodeList cache
3062         manipulation.
3063
3064         Test: fast/dom/shadow/shadow-root-node-list.html
3065
3066         Reviewed by Dimitri Glazkov.
3067         
3068         * dom/Node.cpp:
3069         (WebCore::Node::~Node):
3070         (WebCore::Node::clearRareData):
3071         * dom/Node.h:
3072         * dom/TreeScope.cpp:
3073         (WebCore::TreeScope::~TreeScope):
3074
3075 2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
3076
3077         ResourceLoadNotifier::dispatchWillSendRequest should not compare StringImpl directly
3078         https://bugs.webkit.org/show_bug.cgi?id=63873
3079
3080         Reviewed by Alexey Proskuryakov.
3081
3082         * loader/ResourceLoadNotifier.cpp:
3083         (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
3084
3085 2011-07-04  Sheriff Bot  <webkit.review.bot@gmail.com>
3086
3087         Unreviewed, rolling out r90373.
3088         http://trac.webkit.org/changeset/90373
3089         https://bugs.webkit.org/show_bug.cgi?id=63917
3090
3091         Breaks Qt Linux Release minimal (Requested by vsevik on
3092         #webkit).
3093
3094         * WebCore.exp.in:
3095         * inspector/InspectorController.cpp:
3096         * inspector/InspectorController.h:
3097         * inspector/InspectorInstrumentation.cpp:
3098         (WebCore::InspectorInstrumentation::didReceiveContentLengthImpl):
3099         * inspector/InspectorInstrumentation.h:
3100         (WebCore::InspectorInstrumentation::didReceiveContentLength):
3101         * inspector/InspectorResourceAgent.cpp:
3102         (WebCore::InspectorResourceAgent::didReceiveResponse):
3103         (WebCore::InspectorResourceAgent::didReceiveContentLength):
3104         (WebCore::InspectorResourceAgent::didFinishLoading):
3105         (WebCore::InspectorResourceAgent::setInitialXHRContent):
3106         (WebCore::InspectorResourceAgent::getResourceContent):
3107         * inspector/InspectorResourceAgent.h:
3108         * inspector/NetworkResourcesData.cpp:
3109         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
3110         (WebCore::NetworkResourcesData::ResourceData::content):
3111         (WebCore::NetworkResourcesData::ResourceData::appendContent):
3112         (WebCore::NetworkResourcesData::ResourceData::purgeContent):
3113         (WebCore::NetworkResourcesData::NetworkResourcesData):
3114         (WebCore::NetworkResourcesData::responseReceived):
3115         (WebCore::NetworkResourcesData::addResourceContent):
3116         (WebCore::NetworkResourcesData::data):
3117         (WebCore::NetworkResourcesData::clear):
3118         (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
3119         (WebCore::NetworkResourcesData::ensureFreeSpace):
3120         * inspector/NetworkResourcesData.h:
3121         (WebCore::NetworkResourcesData::ResourceData::hasContent):
3122         (WebCore::NetworkResourcesData::ResourceData::setIsContentPurged):
3123         (WebCore::NetworkResourcesData::ResourceData::textEncodingName):
3124         (WebCore::NetworkResourcesData::ResourceData::setTextEncodingName):
3125         * inspector/front-end/Resource.js:
3126         * inspector/front-end/ResourcePreviewView.js:
3127         (WebInspector.ResourcePreviewView.prototype.contentLoaded):
3128         (WebInspector.ResourcePreviewView.prototype._createInnerView):
3129         * inspector/front-end/ResourceView.js:
3130         (WebInspector.ResourceView.hasTextContent):
3131         * loader/DocumentThreadableLoader.cpp:
3132         (WebCore::DocumentThreadableLoader::didReceiveData):
3133         * loader/FrameLoader.cpp:
3134         (WebCore::FrameLoader::willLoadMediaElementURL):
3135         (WebCore::FrameLoader::commitProvisionalLoad):
3136         (WebCore::FrameLoader::loadResourceSynchronously):
3137         (WebCore::FrameLoader::loadedResourceFromMemoryCache):
3138         * loader/ResourceLoadNotifier.cpp:
3139         (WebCore::ResourceLoadNotifier::didReceiveData):
3140         (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
3141         (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
3142         * loader/ResourceLoadNotifier.h:
3143         * loader/appcache/ApplicationCacheGroup.cpp:
3144         (WebCore::ApplicationCacheGroup::didReceiveData):
3145         * testing/Internals.cpp:
3146         * testing/Internals.h:
3147         * testing/Internals.idl:
3148
3149 2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
3150
3151         Web Inspector: Show content for plugin requests in network panel.
3152         https://bugs.webkit.org/show_bug.cgi?id=30080
3153
3154         Reviewed by Pavel Feldman.
3155
3156         Tests: http/tests/inspector/network/network-content-replacement-embed.html
3157                http/tests/inspector/network/network-content-replacement-xhr.html
3158                http/tests/inspector/network/network-embed.html
3159
3160         * WebCore.exp.in:
3161         * inspector/InspectorController.cpp:
3162         (WebCore::InspectorController::setResourcesDataSizeLimitsFromInternals):
3163         * inspector/InspectorController.h:
3164         * inspector/InspectorInstrumentation.cpp:
3165         (WebCore::InspectorInstrumentation::didReceiveDataImpl):
3166         * inspector/InspectorInstrumentation.h:
3167         (WebCore::InspectorInstrumentation::didReceiveData):
3168         * inspector/InspectorResourceAgent.cpp:
3169         (WebCore::InspectorResourceAgent::didReceiveResponse):
3170         (WebCore::InspectorResourceAgent::didReceiveData):
3171         (WebCore::InspectorResourceAgent::didFinishLoading):
3172         (WebCore::InspectorResourceAgent::setInitialXHRContent):
3173         (WebCore::InspectorResourceAgent::setResourcesDataSizeLimitsFromInternals):
3174         (WebCore::InspectorResourceAgent::getResourceContent):
3175         * inspector/InspectorResourceAgent.h:
3176         * inspector/NetworkResourcesData.cpp:
3177         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
3178         (WebCore::NetworkResourcesData::ResourceData::setContent):
3179         (WebCore::NetworkResourcesData::ResourceData::purgeContent):
3180         (WebCore::NetworkResourcesData::ResourceData::createDecoder):
3181         (WebCore::NetworkResourcesData::ResourceData::dataLength):
3182         (WebCore::NetworkResourcesData::ResourceData::appendData):
3183         (WebCore::NetworkResourcesData::ResourceData::decodeDataToContent):
3184         (WebCore::NetworkResourcesData::NetworkResourcesData):
3185         (WebCore::NetworkResourcesData::responseReceived):
3186         (WebCore::NetworkResourcesData::setResourceContent):
3187         (WebCore::NetworkResourcesData::maybeAddResourceData):
3188         (WebCore::NetworkResourcesData::maybeDecodeDataToContent):
3189         (WebCore::NetworkResourcesData::data):
3190         (WebCore::NetworkResourcesData::clear):
3191         (WebCore::NetworkResourcesData::setResourcesDataSizeLimits):
3192         (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
3193         (WebCore::NetworkResourcesData::ensureFreeSpace):
3194         * inspector/NetworkResourcesData.h:
3195         (WebCore::NetworkResourcesData::ResourceData::hasContent):
3196         (WebCore::NetworkResourcesData::ResourceData::content):
3197         (WebCore::NetworkResourcesData::ResourceData::decoder):
3198         (WebCore::NetworkResourcesData::ResourceData::buffer):
3199         (WebCore::NetworkResourcesData::ResourceData::setBuffer):
3200         (WebCore::NetworkResourcesData::ResourceData::hasData):
3201         * inspector/front-end/Resource.js:
3202         (WebInspector.Resource.prototype.get contentEncoded):
3203         * inspector/front-end/ResourcePreviewView.js:
3204         (WebInspector.ResourcePreviewView.prototype.contentLoaded):
3205         (WebInspector.ResourcePreviewView.prototype._createEmptyView):
3206         (WebInspector.ResourcePreviewView.prototype._createPreviewView):
3207         * inspector/front-end/ResourceView.js:
3208         (WebInspector.ResourceView.hasTextContent):
3209         * loader/DocumentThreadableLoader.cpp:
3210         (WebCore::DocumentThreadableLoader::didReceiveData):
3211         * loader/FrameLoader.cpp:
3212         (WebCore::FrameLoader::willLoadMediaElementURL):
3213         (WebCore::FrameLoader::commitProvisionalLoad):
3214         (WebCore::FrameLoader::loadResourceSynchronously):
3215         (WebCore::FrameLoader::loadedResourceFromMemoryCache):
3216         * loader/ResourceLoadNotifier.cpp:
3217         (WebCore::ResourceLoadNotifier::didReceiveData):
3218         (WebCore::ResourceLoadNotifier::dispatchDidReceiveData):
3219         (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
3220         * loader/ResourceLoadNotifier.h:
3221         * loader/appcache/ApplicationCacheGroup.cpp:
3222         (WebCore::ApplicationCacheGroup::didReceiveData):
3223         * testing/Internals.cpp:
3224         (WebCore::Internals::setInspectorResourcesDataSizeLimits):
3225         * testing/Internals.h:
3226         * testing/Internals.idl:
3227
3228 2011-07-04  Jeff Timanus  <twiz@chromium.org>
3229
3230         Reviewed by Stephen White.
3231
3232         Prevent calls to GrapicsContext3D::deleteTexture with id 0 in DrawingBuffer::clear().
3233         https://bugs.webkit.org/show_bug.cgi?id=63756
3234
3235         * platform/graphics/gpu/DrawingBuffer.cpp:
3236         (WebCore::DrawingBuffer::clear):
3237
3238 2011-07-04  Martin Robinson  <mrobinson@igalia.com>
3239
3240         Reviewed by Andreas Kling.
3241
3242         [GTK] r90148 did not apply to X11 platforms in WebKit1
3243         https://bugs.webkit.org/show_bug.cgi?id=63862
3244
3245         Correct the guard for an X11 specific piece of code. TARGET(X11) not
3246         defined for the GTK+ port.
3247
3248         No new tests. This is covered by an existing test.
3249
3250         * plugins/npapi.cpp: Correct the X11 guard.
3251         (NPN_InvalidateRect):
3252
3253 2011-07-04  Pavel Feldman  <pfeldman@google.com>
3254
3255         Web Inspector: implement settings panel.
3256         https://bugs.webkit.org/show_bug.cgi?id=63907
3257
3258         Reviewed by Yury Semikhatsky.
3259
3260         * English.lproj/localizedStrings.js:
3261         * WebCore.gypi:
3262         * WebCore.vcproj/WebCore.vcproj:
3263         * inspector/front-end/BreakpointsSidebarPane.js:
3264         (WebInspector.XHRBreakpointsSidebarPane.prototype._saveBreakpoints):
3265         (WebInspector.EventListenerBreakpointsSidebarPane.prototype._saveBreakpoints):
3266         * inspector/front-end/ConsoleView.js:
3267         (WebInspector.ConsoleView):
3268         (WebInspector.ConsoleView.prototype._handleContextMenuEvent.monitoringXHRItemAction):
3269         (WebInspector.ConsoleView.prototype._handleContextMenuEvent.get preserveLogItemAction):
3270         (WebInspector.ConsoleView.prototype._monitoringXHREnabledSettingChanged):
3271         (WebInspector.ConsoleView.prototype._registerShortcuts):
3272         * inspector/front-end/DOMBreakpointsSidebarPane.js:
3273         (WebInspector.DOMBreakpointsSidebarPane.prototype._saveBreakpoints):
3274         * inspector/front-end/DebuggerPresentationModel.js:
3275         (WebInspector.DebuggerPresentationModel.prototype._saveBreakpoints):
3276         * inspector/front-end/ElementsPanel.js:
3277         (WebInspector.ElementsPanel.prototype._contextMenuEventFired):
3278         (WebInspector.ElementsPanel.prototype._domWordWrapSettingChanged):
3279         (WebInspector.ElementsPanel.prototype._registerShortcuts):
3280         * inspector/front-end/EventListenersSidebarPane.js:
3281         (WebInspector.EventListenersSidebarPane.prototype):
3282         ():
3283         * inspector/front-end/HelpScreen.js:
3284         (WebInspector.HelpScreen):
3285         (WebInspector.HelpScreen.prototype.show):
3286         (WebInspector.HelpScreen.prototype.hide):
3287         (WebInspector.HelpScreen.prototype._onKeyDown):
3288         * inspector/front-end/NetworkItemView.js:
3289         * inspector/front-end/NetworkPanel.js:
3290         * inspector/front-end/Panel.js:
3291         (WebInspector.Panel.prototype.saveSidebarWidth):
3292         * inspector/front-end/ProfilesPanel.js:
3293         * inspector/front-end/ResourcesPanel.js:
3294         (WebInspector.BaseStorageTreeElement.prototype.onselect):
3295         (WebInspector.StorageCategoryTreeElement.prototype.onexpand):
3296         (WebInspector.StorageCategoryTreeElement.prototype.set oncollapse):
3297         * inspector/front-end/ScriptsPanel.js:
3298         (WebInspector.ScriptsPanel.prototype._sourceFileAdded.get if):
3299         (WebInspector.ScriptsPanel.prototype._setPauseOnExceptions.callback):
3300         (WebInspector.ScriptsPanel.prototype._createSidebarButtonAndRegisterShortcuts):
3301         * inspector/front-end/Settings.js:
3302         (WebInspector.Settings):
3303         (WebInspector.Settings.prototype.installApplicationSetting):
3304         (WebInspector.Setting):
3305         (WebInspector.Setting.prototype.addChangeListener):
3306         (WebInspector.Setting.prototype.removeChangeListener):
3307         (WebInspector.Setting.prototype.get var):
3308         (WebInspector.Setting.prototype):
3309         (WebInspector.Setting.prototype.set if):
3310         * inspector/front-end/SettingsScreen.js: Added.
3311         (WebInspector.SettingsScreen):
3312         (WebInspector.SettingsScreen.prototype._appendSection):
3313         (WebInspector.SettingsScreen.prototype._columnElement):
3314         (WebInspector.SettingsScreen.prototype._createCheckboxSetting.get listener):
3315         (WebInspector.SettingsScreen.prototype._createRadioSetting):
3316         * inspector/front-end/ShortcutsScreen.js: Renamed from Source/WebCore/inspector/front-end/ShortcutsHelp.js.
3317         (WebInspector.ShortcutsScreen):
3318         * inspector/front-end/StylesSidebarPane.js:
3319         (WebInspector.StylesSidebarPane.prototype.registerShortcuts):
3320         * inspector/front-end/WatchExpressionsSidebarPane.js:
3321         * inspector/front-end/WebKit.qrc:
3322         * inspector/front-end/helpScreen.css:
3323         (.help-window-main):
3324         (body.attached .help-window-main):
3325         (.help-window-caption):
3326         (body.attached .help-window-caption):
3327         (.help-content):
3328         (.help-close-button):
3329         (body.attached .help-close-button):
3330         (body.attached .help-content):
3331         (.help-table):
3332         (body.platform-mac .help-key):
3333         (.help-combine-keys):
3334         (.help-content p):
3335         (.help-content fieldset):
3336         (.help-content fieldset p):
3337         (.help-content p.help-section):
3338         (.help-section-title):
3339         (.help-content input[type=checkbox]):
3340         * inspector/front-end/inspector.css:
3341         (button.settings-status-bar-item):
3342         (.settings-status-bar-item .glyph):
3343         * inspector/front-end/inspector.html:
3344         * inspector/front-end/inspector.js:
3345         (WebInspector._createGlobalStatusBarItems):
3346         (WebInspector._toggleAttach):
3347         (WebInspector._toggleSettings):
3348         (WebInspector._registerShortcuts):
3349         (WebInspector.documentKeyDown):
3350
3351 2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
3352
3353         Web Inspector: Resources loaded to Resources Panel from InspectorPageAgent do not have mime type set.
3354         https://bugs.webkit.org/show_bug.cgi?id=63701
3355
3356         Pass cachedResource/documentLoader mimeType from InspectorPageAgent to frontend.
3357
3358         Reviewed by Yury Semikhatsky.
3359
3360         Test: http/tests/inspector/resource-tree/resource-tree-mimetype.html
3361
3362         * inspector/Inspector.json:
3363         * inspector/InspectorPageAgent.cpp:
3364         (WebCore::InspectorPageAgent::buildObjectForFrame):
3365         (WebCore::InspectorPageAgent::buildObjectForFrameTree):
3366         * inspector/front-end/ResourceTreeModel.js:
3367         (WebInspector.ResourceTreeModel.prototype._addFramesRecursively):
3368         (WebInspector.ResourceTreeModel.prototype._createResource):
3369
3370 2011-07-04  Yury Semikhatsky  <yurys@chromium.org>
3371
3372         Web Inspector: repeated message counter should be aligned with other message icons
3373         https://bugs.webkit.org/show_bug.cgi?id=63901
3374
3375         Reviewed by Pavel Feldman.
3376
3377         * inspector/front-end/inspector.css:
3378         (.console-message .bubble):
3379
3380 2011-07-04  Alexander Pavlov  <apavlov@chromium.org>
3381
3382         Reviewed by Pavel Feldman.
3383
3384         Web Inspector: Adding new CSS rules should be more discoverable in the UI
3385         https://bugs.webkit.org/show_bug.cgi?id=63803
3386
3387         * inspector/front-end/StylesSidebarPane.js:
3388         (WebInspector.StylesSidebarPane.prototype._createNewRule):
3389
3390 2011-07-04  Danilo Cesar Lemes de Paula  <danilo.cesar@collabora.co.uk>
3391
3392         [Qt] Fixing build with --media-stream flag enabled
3393         https://bugs.webkit.org/show_bug.cgi?id=63831
3394
3395         Reviewed by Benjamin Poulain.
3396
3397         * features.pri: Adding support to ENABLE_MEDIA_STREAM flag.
3398
3399 2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
3400
3401         Reviewed by Yury Semikhatsky.
3402
3403         Web Inspector: Update network resource url from response data.
3404         https://bugs.webkit.org/show_bug.cgi?id=63736
3405
3406         * inspector/Inspector.json:
3407         * inspector/InspectorResourceAgent.cpp:
3408         (WebCore::buildObjectForResourceResponse):
3409         * inspector/front-end/NetworkManager.js:
3410         (WebInspector.NetworkDispatcher.prototype._updateResourceWithResponse):
3411
3412 2011-07-04  Andrey Kosyakov  <caseq@chromium.org>
3413
3414         Reviewed by Yury Semikhatsky.
3415
3416         Web Inspector: [Extensions API] audit formatter names should begin with create
3417         https://bugs.webkit.org/show_bug.cgi?id=63802
3418
3419         * inspector/front-end/ExtensionAPI.js:
3420         (WebInspector.injectedExtensionAPI.AuditResultImpl):
3421
3422 2011-07-03  Dominic Cooney  <dominicc@chromium.org>
3423
3424         The value property of an indeterminate progress element should be zero
3425         https://bugs.webkit.org/show_bug.cgi?id=63861
3426
3427         Reviewed by Kent Tamura.
3428
3429         Test: fast/dom/HTMLProgressElement/set-progress-properties.html
3430
3431         * html/HTMLProgressElement.cpp:
3432         (WebCore::HTMLProgressElement::value):
3433
3434 2011-07-03  Robert Hogan  <robert@webkit.org>
3435
3436         Restore scroll position on page reloads scheduled by <meta http-equiv="refresh" content="XX"/>
3437         https://bugs.webkit.org/show_bug.cgi?id=62482
3438
3439         If a <meta http-equiv="refresh"> directive schedules a page reload rather than
3440         a redirect restore the scroll position after the reload. Do the same on location.reload().
3441
3442         Reviewed by Adam Barth.
3443
3444         Tests: http/tests/navigation/scrollstate-after-http-equiv-refresh-fragment-identifier-2.html
3445                http/tests/navigation/scrollstate-after-http-equiv-refresh-fragment-identifier.html
3446                http/tests/navigation/scrollstate-after-http-equiv-refresh.html
3447                http/tests/navigation/scrollstate-after-location-reload.html
3448
3449         * loader/FrameLoader.cpp:
3450         (WebCore::FrameLoader::loadURL):
3451         Only make the load FrameLoadTypeSame if it has not already been set as FrameLoadTypeReload*.
3452         FrameLoadTypeReload* loads are set through http-equiv refreshes, manual reloads, or location.reload()
3453         and honour the user's scroll position in the frame. A FrameLoadTypeSame is for when the frame is loading
3454         the same page again, e.g. by clicking a link.
3455
3456         * loader/NavigationScheduler.cpp:
3457         (WebCore::ScheduledRedirect::fire): Tell FrameLoader::changeLocation() if this is a reload.
3458
3459 2011-07-03  Dirk Schulze  <krit@webkit.org>
3460
3461         SVGAnimateTransform accumulate=sum restarts on every repeat
3462         https://bugs.webkit.org/show_bug.cgi?id=63876
3463