Updated change log
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-07-07  Kyusun Kim  <maniagoon@company100.net>
2
3         The return value of SharedBuffer::createWithContentsOfFile must have valid m_size.
4         https://bugs.webkit.org/show_bug.cgi?id=63313
5
6         Reviewed by Eric Seidel.
7
8         * platform/posix/SharedBufferPOSIX.cpp:
9         (WebCore::SharedBuffer::createWithContentsOfFile):
10
11 2011-07-07  Dan Bernstein  <mitz@apple.com>
12
13         <rdar://problem/9737435> Re-enable -webkit-column-break-inside: avoid
14         https://bugs.webkit.org/show_bug.cgi?id=64102
15
16         Reviewed by Simon Fraser.
17
18         -webkit-column-break-inside: avoid was disabled in r62632 along with page-break-inside: avoid.
19         The latter remains disabled.
20
21         * rendering/RenderBlock.cpp:
22         (WebCore::RenderBlock::adjustForUnsplittableChild): Treat the child as unsplittable if
23         '-webkit-column-break-inside: avoid' was specified.
24
25 2011-07-07  Andrey Kosyakov  <caseq@chromium.org>
26
27         Web Inspector: visual regressions in network panel
28         https://bugs.webkit.org/show_bug.cgi?id=64089
29
30         Reviewed by Pavel Feldman.
31
32         * inspector/front-end/networkPanel.css:
33         (.data-grid.network-log-grid tr.filler td):
34         (.network.panel .sidebar):
35
36 2011-07-07  Julien Chaffraix  <jchaffraix@webkit.org>
37
38         Reviewed by David Hyatt.
39
40         Partial layout when a flex-box has visibility: collapse
41         https://bugs.webkit.org/show_bug.cgi?id=63776
42
43         Tests: fast/flexbox/crash-button-input-autofocus.html
44                fast/flexbox/crash-button-keygen.html
45                fast/flexbox/crash-button-relayout.html
46
47         The issue is that FlexBoxIterator would skip any child if it has visibility: collapsed.
48         However if one of the child is anonymous, it may wrap some other child that would be skipped.
49         Now FlexBoxIterator is called during the layout phase and thus some nodes would not relayouted
50         as expected.
51
52         * rendering/RenderDeprecatedFlexibleBox.cpp:
53         (WebCore::FlexBoxIterator::next): When iterating, don't skip anonymous content as there may
54         be real content hiding below.
55
56 2011-07-07  Vsevolod Vlasov  <vsevik@chromium.org>
57
58         Web Inspector: URL links in styles open new tab instead of showing resources panel.
59         https://bugs.webkit.org/show_bug.cgi?id=64090
60
61         Reviewed by Pavel Feldman.
62
63         * inspector/front-end/StylesSidebarPane.js:
64         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.linkifyURL):
65
66 2011-07-07  Andrey Kosyakov  <caseq@chromium.org>
67
68         Web Inspector: active panel does not receive resize event when drawer is resized
69         https://bugs.webkit.org/show_bug.cgi?id=64094
70
71         Reviewed by Pavel Feldman.
72
73         * inspector/front-end/Drawer.js:
74         (WebInspector.Drawer.prototype._statusBarDragging):
75
76 2011-07-07  Pavel Feldman  <pfeldman@chromium.org>
77
78         Web Inspector: prevent default action during drag'n'drop in the Elements panel.
79         https://bugs.webkit.org/show_bug.cgi?id=64081
80
81         Reviewed by Yury Semikhatsky.
82
83         * inspector/front-end/ElementsTreeOutline.js:
84         (WebInspector.ElementsTreeOutline):
85         (WebInspector.ElementsTreeOutline.prototype._ondragstart):
86         (WebInspector.ElementsTreeOutline.prototype._ondragover):
87         (WebInspector.ElementsTreeOutline.prototype._ondragend):
88         * inspector/front-end/treeoutline.js:
89         (TreeOutline.prototype.treeElementFromPoint):
90
91 2011-07-07  Nikolas Zimmermann  <nzimmermann@rim.com>
92
93         Move remaining enums out of SVG*Element classes
94         https://bugs.webkit.org/show_bug.cgi?id=64075
95
96         Reviewed by Dirk Schulze.
97
98         Move remaining enums out of SVG*Element classes. This is a preparation patch for bug 63797.
99         Also move the SVGPropertyTraits template specializations for enum types before the class
100         definition in the header, otherwhise we can't use SVGPropertyTraits<FooType>::fromString/toString
101         in the DECLARE_ANIMATED* macros, which is needed soon.
102
103         No new tests, just refactoring.
104
105         * rendering/svg/RenderSVGResourceGradient.cpp:
106         (WebCore::RenderSVGResourceGradient::applyResource):
107         * rendering/svg/RenderSVGResourceGradient.h:
108         * rendering/svg/RenderSVGResourceMarker.cpp:
109         (WebCore::RenderSVGResourceMarker::angle):
110         (WebCore::RenderSVGResourceMarker::markerTransformation):
111         * rendering/svg/RenderSVGResourceMarker.h:
112         (WebCore::RenderSVGResourceMarker::markerUnits):
113         * rendering/svg/RenderSVGTextPath.cpp:
114         (WebCore::RenderSVGTextPath::RenderSVGTextPath):
115         (WebCore::RenderSVGTextPath::exactAlignment):
116         (WebCore::RenderSVGTextPath::stretchMethod):
117         * rendering/svg/SVGRenderTreeAsText.cpp:
118         (WebCore::operator<<):
119         (WebCore::writeCommonGradientProperties):
120         * rendering/svg/SVGTextChunkBuilder.cpp:
121         (WebCore::SVGTextChunkBuilder::addTextChunk):
122         * rendering/svg/SVGTextLayoutEngine.cpp:
123         (WebCore::SVGTextLayoutEngine::parentDefinesTextLength):
124         (WebCore::SVGTextLayoutEngine::beginTextPathLayout):
125         * svg/GradientAttributes.h:
126         (WebCore::GradientAttributes::GradientAttributes):
127         (WebCore::GradientAttributes::spreadMethod):
128         (WebCore::GradientAttributes::setSpreadMethod):
129         * svg/SVGComponentTransferFunctionElement.h:
130         * svg/SVGFEBlendElement.h:
131         * svg/SVGFEColorMatrixElement.h:
132         * svg/SVGFECompositeElement.h:
133         * svg/SVGFEConvolveMatrixElement.h:
134         * svg/SVGFEDisplacementMapElement.h:
135         * svg/SVGFEMorphologyElement.h:
136         * svg/SVGFETurbulenceElement.h:
137         * svg/SVGGradientElement.cpp:
138         (WebCore::SVGGradientElement::SVGGradientElement):
139         * svg/SVGGradientElement.h:
140         * svg/SVGMarkerElement.cpp:
141         (WebCore::SVGMarkerElement::SVGMarkerElement):
142         (WebCore::SVGMarkerElement::parseMappedAttribute):
143         (WebCore::SVGMarkerElement::setOrientToAuto):
144         (WebCore::SVGMarkerElement::setOrientToAngle):
145         (WebCore::SVGMarkerElement::synchronizeOrientType):
146         (WebCore::SVGMarkerElement::orientTypeAnimated):
147         * svg/SVGMarkerElement.h:
148         * svg/SVGTextContentElement.cpp:
149         (WebCore::SVGTextContentElement::SVGTextContentElement):
150         * svg/SVGTextContentElement.h:
151         * svg/SVGTextPathElement.cpp:
152         (WebCore::SVGTextPathElement::SVGTextPathElement):
153         * svg/SVGTextPathElement.h:
154
155 2011-07-07  Ilya Tikhonovsky  <loislo@chromium.org>
156
157         Web Inspector: Protocol: pointers to optional "in" parameters passing to the
158         backend methods should be NULL if they are not specified in the message.
159         https://bugs.webkit.org/show_bug.cgi?id=64083
160
161         Reviewed by Pavel Feldman.
162
163         * inspector/CodeGeneratorInspector.pm:
164         (generateBackendFunction):
165         (generateArgumentGetters):
166         * inspector/InspectorCSSAgent.cpp:
167         (WebCore::InspectorCSSAgent::getStylesForNode):
168
169 2011-07-07  Ilya Tikhonovsky  <loislo@chromium.org>
170
171         Web Inspector: Searching on the Network panel doesn't do anything?
172         https://bugs.webkit.org/show_bug.cgi?id=55489
173
174         This is initial implementation of search in Network panel.
175         It is pretty simple search only for names and paths.
176
177         Reviewed by Pavel Feldman.
178
179         * inspector/front-end/NetworkPanel.js:
180         (WebInspector.NetworkPanel.prototype.refresh):
181         (WebInspector.NetworkPanel.prototype._reset):
182         (WebInspector.NetworkPanel.prototype._updateOffscreenRows):
183         (WebInspector.NetworkPanel.prototype._matchResource):
184         (WebInspector.NetworkPanel.prototype._clearSearchMatchedList):
185         (WebInspector.NetworkPanel.prototype._highlightNthMatchedResource):
186         (WebInspector.NetworkPanel.prototype.performSearch):
187         (WebInspector.NetworkDataGridNode.prototype.createCells):
188         * inspector/front-end/utilities.js:
189         (String.prototype.escapeHTML):
190         ():
191
192 2011-07-07  Vsevolod Vlasov  <vsevik@chromium.org>
193
194         Web Inspector: Resources panel shows only one resource when multiple resources have the same url.
195         https://bugs.webkit.org/show_bug.cgi?id=63936
196
197         Reviewed by Pavel Feldman.
198
199         Test: http/tests/inspector/resource-tree/resource-tree-non-unique-url.html
200
201         * inspector/front-end/ResourcesPanel.js:
202         (WebInspector.FrameTreeElement.prototype.appendResource):
203
204 2011-07-07  Vsevolod Vlasov  <vsevik@chromium.org>
205
206         Web Inspector: Add support for clearing cache and cookies from network panel.
207         https://bugs.webkit.org/show_bug.cgi?id=63999
208
209         Reviewed by Pavel Feldman.
210
211         * English.lproj/localizedStrings.js:
212         * inspector/Inspector.json:
213         * inspector/InspectorClient.h:
214         (WebCore::InspectorClient::clearBrowserCache):
215         (WebCore::InspectorClient::clearBrowserCookies):
216         * inspector/InspectorController.cpp:
217         (WebCore::InspectorController::InspectorController):
218         * inspector/InspectorResourceAgent.cpp:
219         (WebCore::InspectorResourceAgent::clearBrowserCache):
220         (WebCore::InspectorResourceAgent::clearBrowserCookies):
221         (WebCore::InspectorResourceAgent::InspectorResourceAgent):
222         * inspector/InspectorResourceAgent.h:
223         (WebCore::InspectorResourceAgent::create):
224         * inspector/front-end/NetworkPanel.js:
225         (WebInspector.NetworkPanel.prototype._contextMenu):
226         (WebInspector.NetworkPanel.prototype._clearBrowserCache):
227         (WebInspector.NetworkPanel.prototype._clearBrowserCookies):
228         * inspector/front-end/Settings.js:
229
230 2011-07-07  Shinya Kawanaka  <shinyak@google.com>
231
232         Added more key bindings for input[type=range].
233         https://bugs.webkit.org/show_bug.cgi?id=52262
234
235         Added PageUp/PageDown/Home/End key bindings for input[type=range].
236         PageUp/PageDown change value by about 10%.
237         Home/End change value to minimum/maximum.
238
239         Reviewed by Kent Tamura.
240
241         * html/RangeInputType.cpp:
242         (WebCore::RangeInputType::handleKeydownEvent):
243           Added key bindings.
244
245 2011-07-07  Oleg Romashin  <romaxa@gmail.com>
246
247         Fix InspectorInstrumentation compilation.
248         https://bugs.webkit.org/show_bug.cgi?id=64033
249
250         Reviewed by Yury Semikhatsky.
251
252         No new tests. just compile fix.
253
254         * inspector/InspectorInstrumentation.cpp:
255         (WebCore::InspectorInstrumentation::didInvalidateStyleAttrImpl):
256
257 2011-07-06  Mihnea Ovidenie  <mihnea@adobe.com>
258
259         Reviewed by David Hyatt.
260
261         [CSSRegions] Parse flow property
262         https://bugs.webkit.org/show_bug.cgi?id=61730
263
264         Test: fast/regions/webkit-flow-parsing.html
265
266         * css/CSSComputedStyleDeclaration.cpp:
267         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
268         * css/CSSParser.cpp:
269         (WebCore::CSSParser::parseValue):
270         (WebCore::CSSParser::parseFlowThread):
271         * css/CSSParser.h:
272         * css/CSSPropertyNames.in:
273         * css/CSSStyleSelector.cpp:
274         (WebCore::CSSStyleSelector::applyProperty):
275         * rendering/style/RenderStyle.cpp:
276         (WebCore::RenderStyle::diff):
277         * rendering/style/RenderStyle.h:
278         (WebCore::InheritedFlags::flowThread):
279         (WebCore::InheritedFlags::setFlowThread):
280         (WebCore::InheritedFlags::initialFlowThread):
281         * rendering/style/StyleRareNonInheritedData.cpp:
282         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
283         (WebCore::StyleRareNonInheritedData::operator==):
284         * rendering/style/StyleRareNonInheritedData.h:
285
286 2011-07-06  MORITA Hajime  <morrita@google.com>
287
288         [ShadowContentElement] Redundant RenderText objects are created on the content boundaries.
289         https://bugs.webkit.org/show_bug.cgi?id=63977
290
291         Reviewed by Dimitri Glazkov.
292
293         NodeRenderingContext::nextRenderer() and previousRenderer() didn't work well
294         when it crosses content elements:
295         - It doesn't step into forwarded children of ShadowContentElement.
296         - It doesn't step out from traversing forwarded children to
297           neighbors of the content element of that forwarded chidren.
298         
299         This change makes it to step into and out from content element.
300         
301         Test: fast/dom/shadow/content-element-renderers.html
302
303         * dom/NodeRenderingContext.cpp:
304         (WebCore::firstRendererOf): Added
305         (WebCore::lastRendererOf): Added
306         (WebCore::NodeRenderingContext::nextRenderer):
307         (WebCore::NodeRenderingContext::previousRenderer):
308
309 2011-07-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
310
311         [EFL] Add Fullscreen API feature
312         https://bugs.webkit.org/show_bug.cgi?id=63975
313
314         Add needed files for enabling ENABLE_FULLSCREEN_API feature.
315
316         Reviewed by Adam Barth.
317
318         * CMakeLists.txt: Add RenderFullScreen.cpp, fullscreen.css
319
320 2011-07-06  Emil A Eklund  <eae@chromium.org>
321
322         Switch absoluteRects to to new layout types
323         https://bugs.webkit.org/show_bug.cgi?id=64035
324
325         Reviewed by Eric Seidel.
326
327         Move absoluteRects over to new layout unit abstraction.
328         Add flooredLayoutPoint, mapped to flooredIntPoint.
329
330         No new tests, no functionality changes.
331
332         * rendering/LayoutTypes.h:
333         (WebCore::flooredLayoutPoint):
334         * rendering/RenderBlock.cpp:
335         (WebCore::RenderBlock::absoluteRects):
336         * rendering/RenderBlock.h:
337         * rendering/RenderBox.cpp:
338         (WebCore::RenderBox::absoluteRects):
339         * rendering/RenderInline.cpp:
340         (WebCore::RenderInline::absoluteRects):
341         * rendering/RenderInline.h:
342         * rendering/RenderObject.cpp:
343         (WebCore::RenderObject::absoluteBoundingBoxRect):
344         * rendering/RenderObject.h:
345         (WebCore::RenderObject::absoluteRects):
346         * rendering/RenderText.cpp:
347         (WebCore::RenderText::absoluteRects):
348         * rendering/RenderText.h:
349         * rendering/RenderView.cpp:
350         (WebCore::RenderView::absoluteRects):
351         * rendering/RenderView.h:
352         * rendering/svg/RenderSVGBlock.cpp:
353         (WebCore::RenderSVGBlock::absoluteRects):
354         * rendering/svg/RenderSVGBlock.h:
355         * rendering/svg/RenderSVGModelObject.cpp:
356         (WebCore::RenderSVGModelObject::absoluteRects):
357         * rendering/svg/RenderSVGModelObject.h:
358
359 2011-07-06  Emil A Eklund  <eae@chromium.org>
360
361         Reviewed by Eric Seidel.
362
363         Switch offsetFromContainer and related to to new layout types
364         https://bugs.webkit.org/show_bug.cgi?id=63659
365
366         Switch offsetFromContainer and related mapping methods to new layout unit
367         abstraction.
368
369         No new tests, no functionality changes.
370
371         * rendering/LayoutTypes.h:
372         (WebCore::enclosingLayoutRect):
373         (WebCore::roundedLayoutPoint):
374         (WebCore::roundedLayoutUnit):
375         Add LayoutUnit versions of enclosingIntRect, roundedIntPoint and lroundf.
376         For now these map to their int counterpart but once we switch to float or
377         fixed point they'll be no-ops and eventually will be removed. 
378         
379         * rendering/RenderBox.cpp:
380         (WebCore::RenderBox::mapLocalToContainer):
381         (WebCore::RenderBox::mapAbsoluteToLocalPoint):
382         (WebCore::RenderBox::offsetFromContainer):
383         * rendering/RenderBox.h:
384         * rendering/RenderInline.cpp:
385         (WebCore::RenderInline::linesBoundingBox):
386         (WebCore::RenderInline::offsetFromContainer):
387         (WebCore::RenderInline::mapLocalToContainer):
388         (WebCore::RenderInline::mapAbsoluteToLocalPoint):
389         (WebCore::RenderInline::relativePositionedInlineOffset):
390         * rendering/RenderInline.h:
391         * rendering/RenderObject.cpp:
392         (WebCore::RenderObject::offsetFromContainer):
393         (WebCore::RenderObject::offsetFromAncestorContainer):
394         * rendering/RenderObject.h:
395         * rendering/RenderTableCell.cpp:
396         (WebCore::RenderTableCell::offsetFromContainer):
397         * rendering/RenderTableCell.h:
398         * rendering/RenderThemeMac.mm:
399         (WebCore::RenderThemeMac::convertToPaintingRect):
400
401 2011-07-06  Levi Weintraub  <leviw@chromium.org>
402
403         Switch FrameSelection to new Layout Types
404         https://bugs.webkit.org/show_bug.cgi?id=64043
405
406         Reviewed by Eric Seidel.
407
408         Switching the selection classes to the new layout types. Changing
409         NoXPosForVerticalArrowNavigation to a static inline since as it stood it violated
410         our global initializer rule when converted to numeric_limits from INT_MIN.
411
412         No new tests, no functionality changes.
413
414         * editing/FrameSelection.cpp:
415         (WebCore::FrameSelection::modify):
416         (WebCore::absoluteCaretY):
417         (WebCore::FrameSelection::lineDirectionPointForBlockDirectionNavigation):
418         (WebCore::CaretBase::clearCaretRect):
419         (WebCore::CaretBase::updateCaretRect):
420         (WebCore::FrameSelection::localCaretRect):
421         (WebCore::CaretBase::absoluteBoundsForLocalRect):
422         (WebCore::FrameSelection::absoluteCaretBounds):
423         (WebCore::repaintRectForCaret):
424         (WebCore::CaretBase::caretRepaintRect):
425         (WebCore::FrameSelection::recomputeCaretRect):
426         (WebCore::FrameSelection::paintCaret):
427         (WebCore::CaretBase::paintCaret):
428         (WebCore::FrameSelection::contains):
429         (WebCore::DragCaretController::paintDragCaret):
430         (WebCore::FrameSelection::bounds):
431         (WebCore::FrameSelection::revealSelection):
432         * editing/FrameSelection.h:
433         (WebCore::CaretBase::localCaretRectWithoutUpdate):
434
435 2011-07-06  Levi Weintraub  <leviw@chromium.org>
436
437         Switch Overflow and FrameRect methods in InlineBox to Layout Units
438         https://bugs.webkit.org/show_bug.cgi?id=64034
439
440         Reviewed by Eric Seidel.
441
442         Switching Overflow and FrameRect methods on InlineBox to new Layout Unit abstraction and
443         cleaning up some compilation errors that crop up when building with floating point layout units.
444
445         No new tests, no functionality changes.
446
447         * css/CSSComputedStyleDeclaration.cpp:
448         (WebCore::sizingBox):
449         * dom/Document.h:
450         * editing/DeleteButtonController.cpp:
451         (WebCore::isDeletableElement):
452         * inspector/DOMNodeHighlighter.cpp:
453         (WebCore::DOMNodeHighlighter::drawNodeHighlight):
454         * page/animation/AnimationBase.cpp:
455         (WebCore::blendFunc):
456         * platform/ScrollView.h:
457         (WebCore::ScrollView::visibleWidth):
458         (WebCore::ScrollView::visibleHeight):
459         * platform/ScrollableArea.h:
460         (WebCore::ScrollableArea::visibleHeight):
461         (WebCore::ScrollableArea::visibleWidth):
462         * platform/graphics/FloatPoint.h: Adding FloatPoint and FloatSize move[By] functions
463         (WebCore::FloatPoint::move):
464         (WebCore::FloatPoint::moveBy):
465         * rendering/AutoTableLayout.cpp:
466         (WebCore::AutoTableLayout::computePreferredLogicalWidths):
467         (WebCore::AutoTableLayout::layout):
468         * rendering/InlineFlowBox.h:
469         (WebCore::InlineFlowBox::layoutOverflowRect):
470         (WebCore::InlineFlowBox::logicalLeftLayoutOverflow):
471         (WebCore::InlineFlowBox::logicalRightLayoutOverflow):
472         (WebCore::InlineFlowBox::logicalTopLayoutOverflow):
473         (WebCore::InlineFlowBox::logicalBottomLayoutOverflow):
474         (WebCore::InlineFlowBox::logicalLayoutOverflowRect):
475         (WebCore::InlineFlowBox::visualOverflowRect):
476         (WebCore::InlineFlowBox::logicalLeftVisualOverflow):
477         (WebCore::InlineFlowBox::logicalRightVisualOverflow):
478         (WebCore::InlineFlowBox::logicalTopVisualOverflow):
479         (WebCore::InlineFlowBox::logicalBottomVisualOverflow):
480         (WebCore::InlineFlowBox::logicalVisualOverflowRect):
481         (WebCore::InlineFlowBox::frameRectIncludingLineHeight):
482         (WebCore::InlineFlowBox::logicalFrameRectIncludingLineHeight):
483         * rendering/RenderBlock.h:
484         (WebCore::RenderBlock::RenderBlockRareData::positiveMarginBeforeDefault):
485         (WebCore::RenderBlock::RenderBlockRareData::negativeMarginBeforeDefault):
486         (WebCore::RenderBlock::RenderBlockRareData::positiveMarginAfterDefault):
487         (WebCore::RenderBlock::RenderBlockRareData::negativeMarginAfterDefault):
488
489 2011-07-06  Emil A Eklund  <eae@chromium.org>
490
491         Reviewed by Eric Seidel.
492         
493         Switch nodeAtPoint to to new layout types
494         https://bugs.webkit.org/show_bug.cgi?id=63663
495
496         No new tests, no functionality changes.
497
498         * rendering/EllipsisBox.cpp:
499         (WebCore::EllipsisBox::nodeAtPoint):
500         * rendering/EllipsisBox.h:
501         * rendering/InlineBox.cpp:
502         (WebCore::InlineBox::nodeAtPoint):
503         * rendering/InlineBox.h:
504         * rendering/InlineFlowBox.cpp:
505         (WebCore::InlineFlowBox::nodeAtPoint):
506         * rendering/InlineFlowBox.h:
507         * rendering/InlineTextBox.cpp:
508         (WebCore::InlineTextBox::nodeAtPoint):
509         * rendering/InlineTextBox.h:
510         * rendering/LayoutTypes.h:
511         (WebCore::toLayoutSize):
512         (WebCore::toLayoutPoint):
513         (WebCore::roundedLayoutPoint):
514         (WebCore::roundedLayoutUnit):
515         * rendering/RenderBlock.cpp:
516         (WebCore::RenderBlock::nodeAtPoint):
517         * rendering/RenderBlock.h:
518         * rendering/RenderBox.cpp:
519         (WebCore::RenderBox::nodeAtPoint):
520         * rendering/RenderBox.h:
521         * rendering/RenderFrameSet.cpp:
522         (WebCore::RenderFrameSet::nodeAtPoint):
523         * rendering/RenderFrameSet.h:
524         * rendering/RenderImage.cpp:
525         (WebCore::RenderImage::nodeAtPoint):
526         * rendering/RenderImage.h:
527         * rendering/RenderInline.cpp:
528         (WebCore::RenderInline::nodeAtPoint):
529         * rendering/RenderInline.h:
530         * rendering/RenderListBox.cpp:
531         (WebCore::RenderListBox::nodeAtPoint):
532         * rendering/RenderListBox.h:
533         * rendering/RenderObject.cpp:
534         (WebCore::RenderObject::nodeAtPoint):
535         * rendering/RenderObject.h:
536         * rendering/RenderTable.cpp:
537         (WebCore::RenderTable::nodeAtPoint):
538         * rendering/RenderTable.h:
539         * rendering/RenderTableRow.cpp:
540         (WebCore::RenderTableRow::nodeAtPoint):
541         * rendering/RenderTableRow.h:
542         * rendering/RenderTableSection.cpp:
543         (WebCore::RenderTableSection::nodeAtPoint):
544         * rendering/RenderTableSection.h:
545         * rendering/RenderText.h:
546         (WebCore::RenderText::nodeAtPoint):
547         * rendering/RenderTextControlMultiLine.cpp:
548         (WebCore::RenderTextControlMultiLine::nodeAtPoint):
549         * rendering/RenderTextControlMultiLine.h:
550         * rendering/RenderTextControlSingleLine.cpp:
551         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
552         * rendering/RenderTextControlSingleLine.h:
553         * rendering/RenderWidget.cpp:
554         (WebCore::RenderWidget::nodeAtPoint):
555         * rendering/RenderWidget.h:
556         * rendering/RootInlineBox.cpp:
557         (WebCore::RootInlineBox::nodeAtPoint):
558         * rendering/RootInlineBox.h:
559         * rendering/svg/RenderSVGForeignObject.cpp:
560         (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
561         (WebCore::RenderSVGForeignObject::nodeAtPoint):
562         * rendering/svg/RenderSVGForeignObject.h:
563         * rendering/svg/RenderSVGModelObject.cpp:
564         (WebCore::RenderSVGModelObject::nodeAtPoint):
565         * rendering/svg/RenderSVGModelObject.h:
566         * rendering/svg/RenderSVGRoot.cpp:
567         (WebCore::RenderSVGRoot::nodeAtPoint):
568         * rendering/svg/RenderSVGRoot.h:
569         * rendering/svg/RenderSVGText.cpp:
570         (WebCore::RenderSVGText::nodeAtPoint):
571         * rendering/svg/RenderSVGText.h:
572         * rendering/svg/SVGInlineTextBox.cpp:
573         (WebCore::SVGInlineTextBox::nodeAtPoint):
574         * rendering/svg/SVGInlineTextBox.h:
575
576 2011-07-06  Adrienne Walker  <enne@google.com>
577
578         [chromium] Add compositor texture manager soft limits and lost focus reclaiming
579         https://bugs.webkit.org/show_bug.cgi?id=64009
580
581         Reviewed by James Robinson.
582
583         Add a soft limit for texture memory. Unprotected textures will get
584         reclaimed when above this limit. Increase the hard limit for maximum
585         texture memory as well, now that there is a better heuristic and
586         textures are reclaimed from tabs without focus.
587
588         Landing this for vangelis@chromium.org.
589
590         * platform/graphics/chromium/LayerRendererChromium.cpp:
591         (WebCore::LayerRendererChromium::releaseTextures):
592         (WebCore::LayerRendererChromium::initializeSharedObjects):
593         * platform/graphics/chromium/LayerRendererChromium.h:
594         * platform/graphics/chromium/LayerTilerChromium.cpp:
595         (WebCore::LayerTilerChromium::protectTileTextures):
596         * platform/graphics/chromium/LayerTilerChromium.h:
597         * platform/graphics/chromium/TextureManager.cpp:
598         (WebCore::TextureManager::TextureManager):
599         (WebCore::TextureManager::requestTexture):
600         * platform/graphics/chromium/TextureManager.h:
601         (WebCore::TextureManager::create):
602
603 2011-07-06  Pavel Feldman  <pfeldman@chromium.org>
604
605         Not reviewed: Web Inspector: fixing typo introduced in the r90397.
606
607         * inspector/front-end/StylesSidebarPane.js:
608
609 2011-07-06  Mike Reed  <reed@google.com>
610
611         [skia] don't include deprecated header
612         https://bugs.webkit.org/show_bug.cgi?id=64025
613
614         Reviewed by James Robinson.
615
616         No new tests. Just removing #include of an unused header that will be gone soon
617
618         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp:
619         * platform/graphics/skia/PlatformContextSkia.cpp:
620
621 2011-06-30  Cris Neckar  <cdn@chromium.org>
622
623         Reviewed by Darin Fisher.
624
625         Add versioning to Chromium clipboard and prevent polling from inside events.
626         https://bugs.webkit.org/show_bug.cgi?id=63738
627
628         * platform/chromium/ChromiumDataObject.cpp:
629         (WebCore::ChromiumDataObject::getSequenceNumber):
630         * platform/chromium/ChromiumDataObject.h:
631         * platform/chromium/ClipboardChromium.cpp:
632         (WebCore::ClipboardChromium::ClipboardChromium):
633         (WebCore::ClipboardChromium::getData):
634         (WebCore::ClipboardChromium::platformClipboardChanged):
635         * platform/chromium/ClipboardChromium.h:
636         * platform/chromium/DataTransferItemChromium.cpp:
637         (WebCore::DataTransferItemChromium::getAsString):
638         (WebCore::DataTransferItemChromium::getAsFile):
639         * platform/chromium/PlatformBridge.h:
640         * svg/SVGAnimationElement.cpp:
641         (WebCore::SVGAnimationElement::setTargetAttributeAnimatedValue):
642
643 2011-07-01  James Robinson  <jamesr@chromium.org>
644
645         Reviewed by Stephen White.
646
647         [chromium] Externalize layer visibility calculation
648         https://bugs.webkit.org/show_bug.cgi?id=63847
649
650         This moves the layer visibility calculation from the layer itself out to LayerRendererChromium, like the other
651         calculated properties.  Previously, we were doing this calculating at paint time and again at draw time and
652         relying on the fact that this produced the same value.  This avoids the redundant calculation.
653
654         Covered by existing compositing/ layout tests.
655
656         * platform/graphics/chromium/ContentLayerChromium.cpp:
657         (WebCore::ContentLayerChromium::ContentLayerChromium):
658         (WebCore::ContentLayerChromium::paintContentsIfDirty):
659         (WebCore::ContentLayerChromium::tilingTransform):
660         (WebCore::ContentLayerChromium::contentBounds):
661         (WebCore::ContentLayerChromium::updateLayerSize):
662         (WebCore::ContentLayerChromium::draw):
663         (WebCore::ContentLayerChromium::setTilingOption):
664         (WebCore::ContentLayerChromium::setIsMask):
665         * platform/graphics/chromium/ContentLayerChromium.h:
666         * platform/graphics/chromium/ImageLayerChromium.cpp:
667         (WebCore::ImageLayerChromium::paintContentsIfDirty):
668         (WebCore::ImageLayerChromium::contentBounds):
669         * platform/graphics/chromium/ImageLayerChromium.h:
670         * platform/graphics/chromium/LayerChromium.cpp:
671         (WebCore::LayerChromium::pushPropertiesTo):
672         * platform/graphics/chromium/LayerChromium.h:
673         (WebCore::LayerChromium::contentBounds):
674         (WebCore::LayerChromium::visibleLayerRect):
675         (WebCore::LayerChromium::setVisibleLayerRect):
676         (WebCore::LayerChromium::draw):
677         * platform/graphics/chromium/LayerRendererChromium.cpp:
678         (WebCore::calculateVisibleLayerRect):
679         (WebCore::LayerRendererChromium::paintLayerContents):
680         (WebCore::LayerRendererChromium::drawLayer):
681         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
682         (WebCore::RenderSurfaceChromium::draw):
683         * platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp:
684         (WebCore::CCCanvasLayerImpl::draw):
685         * platform/graphics/chromium/cc/CCCanvasLayerImpl.h:
686         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
687         (WebCore::CCLayerImpl::draw):
688         * platform/graphics/chromium/cc/CCLayerImpl.h:
689         (WebCore::CCLayerImpl::contentBounds):
690         (WebCore::CCLayerImpl::setContentBounds):
691         (WebCore::CCLayerImpl::visibleLayerRect):
692         (WebCore::CCLayerImpl::setVisibleLayerRect):
693         (WebCore::CCLayerImpl::doubleSided):
694         (WebCore::CCLayerImpl::setDoubleSided):
695         * platform/graphics/chromium/cc/CCPluginLayerImpl.cpp:
696         (WebCore::CCPluginLayerImpl::draw):
697         * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
698         * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
699         (WebCore::CCVideoLayerImpl::draw):
700         * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
701
702 2011-07-06  John Sullivan  <sullivan@apple.com>
703
704         IconDatabase::synchronousIconForPageURL() has inconsistent API when no custom icon is available
705         <https://bugs.webkit.org/show_bug.cgi?id=64015>
706         <rdar://problem/9706277>
707
708         For some URLs it would return a particular size of default icon; for other
709         URLs it would return 0.
710
711         Reviewed by Ada Chan.
712
713         * loader/icon/IconDatabase.cpp:
714         (WebCore::IconDatabase::synchronousIconForPageURL):
715         Return 0 in all cases where there is no custom icon.
716
717 2011-07-06  Emil A Eklund  <eae@chromium.org>
718
719         Reviewed by Eric Seidel.
720
721         Switch RenderLayer::hitTest* to to new layout types
722         https://bugs.webkit.org/show_bug.cgi?id=63640
723
724         Switch hit testing and supporting methods for RenderLayer over to the new
725         layout unit abstraction.
726         
727         No new tests, no functionality changes.
728
729         * rendering/LayoutTypes.h:
730         (WebCore::roundedLayoutPoint):
731         Add roundedLayoutPoint abstraction, calls roundedIntPoint now but will be a
732         no-op (and eventually go away) once we switch to float or fixed point.
733         
734         * rendering/RenderLayer.cpp:
735         (WebCore::RenderLayer::createLocalTransformState):
736         (WebCore::RenderLayer::hitTestLayer):
737         (WebCore::RenderLayer::hitTestList):
738         (WebCore::RenderLayer::hitTestPaginatedChildLayer):
739         (WebCore::RenderLayer::hitTestChildLayerColumns):
740         (WebCore::RenderLayer::calculateRects):
741         * rendering/RenderLayer.h:
742
743 2011-07-06  Simon Fraser  <simon.fraser@apple.com>
744
745         Have RenderLayerCompositor take care of clearing backing store when entering the page cache
746         https://bugs.webkit.org/show_bug.cgi?id=64018
747
748         Reviewed by Joseph Pecoraro.
749
750         Move responsibility for tearing down all RenderLayer backing stores from
751         RenderLayer itself to RenderLayerCompositor, since RenderLayerCompositor 
752         manages backing store creation and destruction in general.
753
754         * page/FrameView.cpp:
755         (WebCore::FrameView::clearBackingStores):
756         * rendering/RenderLayer.cpp:
757         * rendering/RenderLayer.h:
758         * rendering/RenderLayerCompositor.cpp:
759         (WebCore::RenderLayerCompositor::clearBackingForLayerIncludingDescendants):
760         (WebCore::RenderLayerCompositor::clearBackingForAllLayers):
761         * rendering/RenderLayerCompositor.h:
762
763 2011-07-06  Ryuan Choi  <ryuan.choi@samsung.com>
764
765         [Performance] Only call sendContentResizeNotification when the scrollbar actually did change
766         https://bugs.webkit.org/show_bug.cgi?id=47320
767
768         Reviewed by Eric Seidel.
769
770         Move avoidScrollbarCreation checking code from setHasHorizontalScrollbar
771         and setHasVerticalScrollbar to their caller in order to keep sendContentResizedNotification
772         false in case scrollbar is not really changed.
773         As a result, it will remove unnecessary relayout in the above case.
774
775         No new tests as this is very hard to write tests for. The bug only
776         occured when scrolling the sites which contain frame in browser with
777         frameFlattening. This should not change functionality in other case.
778
779         * platform/ScrollView.cpp:
780         (WebCore::ScrollView::setHasHorizontalScrollbar):
781         (WebCore::ScrollView::setHasVerticalScrollbar):
782         (WebCore::ScrollView::updateScrollbars):
783
784 2011-07-06  Nate Chapin  <japhet@chromium.org>
785
786         Don't let all subresources keep isLoadingInAPISense() from
787         returning false, only requests that affect
788         CachedResourceRequest::requestCount().
789         https://bugs.webkit.org/show_bug.cgi?id=62066
790
791         Reviewed by Adam Barth.
792
793         * dom/Document.cpp:
794         (WebCore::Document::Document):
795         (WebCore::Document::dispatchWindowLoadEvent):
796         * dom/Document.h:
797         (WebCore::Document::loadEventFinished):
798         * loader/DocumentLoader.cpp:
799         (WebCore::DocumentLoader::isLoadingInAPISense):
800
801 2011-07-06  Pavel Feldman  <pfeldman@google.com>
802
803         Web Inspector: implement drag'n'drop in the elements panel for reordering nodes.
804         https://bugs.webkit.org/show_bug.cgi?id=63990
805
806         Reviewed by Yury Semikhatsky.
807
808         * inspector/Inspector.json:
809         * inspector/InspectorDOMAgent.cpp:
810         (WebCore::InspectorDOMAgent::moveTo):
811         * inspector/InspectorDOMAgent.h:
812         * inspector/front-end/DOMAgent.js:
813         (WebInspector.DOMNode.prototype._removeChild):
814         (WebInspector.DOMNode.prototype.ownerDocumentElement):
815         (WebInspector.DOMNode.prototype.moveTo):
816         (WebInspector.DOMAgent.prototype._childNodeRemoved):
817         * inspector/front-end/ElementsTreeOutline.js:
818         (WebInspector.ElementsTreeOutline):
819         (WebInspector.ElementsTreeOutline.prototype._ondragstart):
820         (WebInspector.ElementsTreeOutline.prototype._ondragover):
821         (WebInspector.ElementsTreeOutline.prototype._ondragleave):
822         (WebInspector.ElementsTreeOutline.prototype._isValidDragSourceOrTarget):
823         (WebInspector.ElementsTreeOutline.prototype._ondragend.callback):
824         (WebInspector.ElementsTreeOutline.prototype._ondragend):
825         (WebInspector.ElementsTreeOutline.prototype._clearDragOverTreeElementMarker):
826         (WebInspector.ElementsTreeOutline.prototype.populateContextMenu.focusElement):
827         (WebInspector.ElementsTreeOutline.prototype.populateContextMenu):
828         (WebInspector.ElementsTreeElement.prototype.onattach):
829         * inspector/front-end/inspector.css:
830         (.outline-disclosure li.elements-drag-over .selection):
831         * inspector/front-end/treeoutline.js:
832         (TreeOutline.prototype.treeElementFromEvent):
833
834 2011-07-06  Andras Becsi  <abecsi@webkit.org>
835
836         Fix "warning: a `;' might be needed at the end of action code"
837
838         Unreviewed gardening.
839
840         No new tests needed.
841
842         * css/CSSGrammar.y: Future versions of Bison will not add the ';' so add it.
843
844 2011-07-06  Andras Becsi  <abecsi@webkit.org>
845
846         [Qt] Revome unused but set shadowBlur variable after r90406.
847
848         Unreviewed build fix.
849
850         No new tests needed.
851
852         * platform/graphics/qt/GraphicsContextQt.cpp:
853         (WebCore::GraphicsContext::fillPath): Use the GraphicsContext brush.
854
855 2011-07-06  Andras Becsi  <abecsi@webkit.org>
856
857         [Qt] Remove duplicate entries of ShadowBlur sources from project file.
858
859         Rubber-stamped by Csaba Osztrogon√°c.
860
861         No new tests needed.
862
863         * WebCore.pro: These files were already added in r84410.
864
865 2011-07-05  Kentaro Hara  <haraken@google.com>
866
867         Trigger a 'change' event whenever selected files are changed
868         https://bugs.webkit.org/show_bug.cgi?id=63929
869
870         Reviewed by Kent Tamura.
871
872         Record previously selected files and then compare them with newly selected files.
873         If the previously selected files and their order are not equal to those of
874         the newly selected files, we trigger the 'change' event.
875
876         Test: fast/forms/file-input-change-event.html
877
878         * html/FileInputType.cpp:
879         (WebCore::FileInputType::filesChosen): Calls dispathChangeEvent() only when the previously selected files are different from the newly selected files
880
881 2011-06-29  Kent Tamura  <tkent@chromium.org>
882
883         Reviewed by Alexey Proskuryakov.
884
885         [Mac] REGRESSION (r88415): Range slider doesn't have focus appearance.
886         https://bugs.webkit.org/show_bug.cgi?id=63573
887
888         * rendering/RenderThemeMac.mm:
889         (WebCore::RenderThemeMac::paintSliderThumb):
890         Need to pass the RenderObject of the owner <input> because
891         updateFocusedState() checks the outline style of the specified
892         renderer, and we'd like to make a slider thumb reflect the owner
893         focus style.
894
895 2011-07-05  Hans Wennborg  <hans@chromium.org>
896
897         [V8][Chromium] Remove use of OwnHandle from V8LocalContext
898         https://bugs.webkit.org/show_bug.cgi?id=63925
899
900         Reviewed by Adam Barth.
901
902         Replace the OwnHandle<> member in V8LocalContext with
903         v8::Persistent<v8::Context>.
904         The code that used OwnHandle<> would not correctly Dispose
905         of the Context, which would cause the memory to fill up when creating
906         and destructing many V8LocalContext objects, such as in the case
907         of IndexedDB.
908
909         * bindings/v8/V8Utilities.cpp:
910         (WebCore::V8LocalContext::V8LocalContext):
911         (WebCore::V8LocalContext::~V8LocalContext):
912         * bindings/v8/V8Utilities.h:
913
914 2011-07-05  Igor Oliveira  <igor.oliveira@openbossa.org>
915
916         [Qt] Add ShadowBlur support
917         https://bugs.webkit.org/show_bug.cgi?id=62997
918
919         Use ShadowBlur instead of ContextShadow to handle canvas and css shadows. ShadowBlur is
920         a newer and platform independent shadow implementation.
921         Qt QPainter does not have support for shadows so is necessary to create a layer support
922         to draw complex shapes and fonts. The beginShadowLayer creates a temporary shadow buffer
923         where the canvas can draw onto and endShadowLayer applies the blur filter, colors the
924         shadow buffer and draw the final shadow to the graphics context.
925
926         Reviewed by Andreas Kling.
927
928         * WebCore.pro:
929         * platform/graphics/GraphicsContext.cpp:
930         * platform/graphics/GraphicsContext.h:
931         * platform/graphics/ShadowBlur.cpp:
932         (WebCore::ShadowBlur::ShadowBlur):
933         (WebCore::ShadowBlur::setShadowValues):
934         (WebCore::ShadowBlur::updateShadowBlurValues):
935         (WebCore::ShadowBlur::clear):
936         (WebCore::ShadowBlur::blurAndColorShadowBuffer):
937         (WebCore::ShadowBlur::beginShadowLayer):
938         (WebCore::ShadowBlur::endShadowLayer):
939         * platform/graphics/ShadowBlur.h:
940         (WebCore::ShadowBlur::type):
941         * platform/graphics/qt/ContextShadowQt.cpp: Removed.
942         * platform/graphics/qt/FontQt.cpp:
943         (WebCore::drawTextCommon):
944         (WebCore::Font::drawGlyphs):
945         * platform/graphics/qt/GraphicsContextQt.cpp:
946         (WebCore::GraphicsContextPlatformPrivate::mustUseShadowBlur):
947         (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
948         (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
949         (WebCore::GraphicsContext::savePlatformState):
950         (WebCore::GraphicsContext::restorePlatformState):
951         (WebCore::GraphicsContext::fillPath):
952         (WebCore::GraphicsContext::strokePath):
953         (WebCore::GraphicsContext::fillRect):
954         (WebCore::GraphicsContext::fillRoundedRect):
955         (WebCore::GraphicsContext::shadowBlur):
956         (WebCore::GraphicsContext::clipBounds):
957         (WebCore::GraphicsContext::setPlatformShadow):
958         (WebCore::GraphicsContext::clearPlatformShadow):
959         * platform/graphics/qt/ImageQt.cpp:
960         (WebCore::BitmapImage::draw):
961         * platform/graphics/qt/StillImageQt.cpp:
962         (WebCore::StillImage::draw):
963
964 2011-07-05  Sam Weinig  <sam@webkit.org>
965
966         Null deref accessing CustomEvent.detail
967         <rdar://problem/9724577>
968         https://bugs.webkit.org/show_bug.cgi?id=63885
969
970         Reviewed by Anders Carlsson.
971
972         Test: fast/events/custom-event-uninitialized.html
973
974         * bindings/scripts/CodeGeneratorJS.pm:
975         Guard against uninitialized script value.
976
977 2011-07-05  Pratik Solanki  <psolanki@apple.com>
978
979         Reviewed by Dan Bernstein.
980
981         Coalesce data array into one NSData before calling didReceiveData
982         https://bugs.webkit.org/show_bug.cgi?id=63916
983         <rdar://problem/9715181>
984
985         Instead of calling didReceiveData multiple times with smaller chunks of data, we merge the
986         data buffers into one and call it once.
987
988         No new tests because the flag isn't enabled yet.
989
990         * platform/network/mac/ResourceHandleMac.mm:
991         (-[WebCoreResourceHandleAsDelegate connection:didReceiveDataArray:]):
992
993 2011-07-05  Tamas Czene  <Czene.Tamas@stud.u-szeged.hu>
994
995         Reviewed by Simon Fraser.
996
997         Remove virtual functions from StyleImage.
998         https://bugs.webkit.org/show_bug.cgi?id=63909
999
1000         We can remove the virtual "isChachedImage, isPendingImage, isGeneratedImage" functions to speed up the StyleImage.
1001         Some profile data shows this part is significant, especially in small CSS-based sites.
1002         Removing the virtual functions - removing the calls - makes a small performance progression on this part.
1003
1004         * rendering/style/StyleCachedImage.h:
1005         (WebCore::StyleCachedImage::StyleCachedImage):
1006         * rendering/style/StyleGeneratedImage.h:
1007         (WebCore::StyleGeneratedImage::StyleGeneratedImage):
1008         * rendering/style/StyleImage.h:
1009         (WebCore::StyleImage::isCachedImage):
1010         (WebCore::StyleImage::isPendingImage):
1011         (WebCore::StyleImage::isGeneratedImage):
1012         (WebCore::StyleImage::StyleImage):
1013         * rendering/style/StylePendingImage.h:
1014         (WebCore::StylePendingImage::StylePendingImage):
1015
1016 2011-07-05  Pavel Feldman  <pfeldman@google.com>
1017
1018         Web Inspector: add "element state" setting to the styles section title.
1019         https://bugs.webkit.org/show_bug.cgi?id=63932
1020
1021         Reviewed by Yury Semikhatsky.
1022
1023         * English.lproj/localizedStrings.js:
1024         * WebCore.gypi:
1025         * inspector/front-end/Images/paneElementStateButtons.png: Added.
1026         * inspector/front-end/StylesSidebarPane.js:
1027         (WebInspector.StylesSidebarPane.muteEventListener):
1028         (WebInspector.StylesSidebarPane):
1029         (WebInspector.StylesSidebarPane.prototype.update):
1030         (WebInspector.StylesSidebarPane.prototype._rebuildUpdate):
1031         (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
1032         (WebInspector.StylesSidebarPane.prototype.addBlankSection):
1033         (WebInspector.StylesSidebarPane.prototype.registerShortcuts):
1034         (WebInspector.StylesSidebarPane.prototype._toggleElementStatePane):
1035         (WebInspector.StylesSidebarPane.prototype._createElementStatePane.clickListener):
1036         (WebInspector.StylesSidebarPane.prototype._createElementStatePane.createCheckbox):
1037         (WebInspector.StylesSidebarPane.prototype._createElementStatePane):
1038         * inspector/front-end/WebKit.qrc:
1039         * inspector/front-end/inspector.css:
1040         (.pane > .title > .pane-title-button:active, .pane > .title > .pane-title-button.toggled):
1041         (.pane > .title > .pane-title-button.element-state):
1042         (.styles-element-state-pane):
1043         (.styles-element-state-pane.expanded):
1044         (.styles-element-state-pane > table):
1045         (.styles-element-state-pane input):
1046
1047 2011-06-22  Pavel Podivilov  <podivilov@chromium.org>
1048
1049         Reviewed by Yury Semikhatsky.
1050
1051         Web Inspector: extract duplicated code that deals with source mappings.
1052         https://bugs.webkit.org/show_bug.cgi?id=63139
1053
1054         * inspector/front-end/ConsoleView.js:
1055         (WebInspector.ConsoleMessage.prototype.isEqual):
1056         (WebInspector.ConsoleMessage.prototype.get stackTrace):
1057         * inspector/front-end/DebuggerPresentationModel.js:
1058         (WebInspector.DebuggerPresentationModel.prototype._uiLocationToScriptLocation):
1059         (WebInspector.DebuggerPresentationModel.prototype._updateAnchor):
1060         (WebInspector.DebuggerPresentationModel.prototype._addConsoleMessage.didGetUILocation):
1061         (WebInspector.DebuggerPresentationModel.prototype._addConsoleMessage):
1062         (WebInspector.DebuggerPresentationModel.prototype.continueToLine):
1063         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger.didGetScriptLocation):
1064         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger):
1065         (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded.updateSourceFileBreakpointsAndDispatchEvent):
1066         (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded.didGetUILocation):
1067         (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded):
1068         (WebInspector.DebuggerPresentationModel.prototype._debuggerPaused):
1069         (WebInspector.DebuggerPresentationModel.prototype._sourceFileForScript):
1070         (WebInspector.PresenationCallFrame):
1071         (WebInspector.PresenationCallFrame.prototype.sourceLine):
1072
1073 2011-07-05  Ilya Tikhonovsky  <loislo@chromium.org>
1074
1075         Web Inspector: WebInspector frontend reports a protocol error in remote debugging mode.
1076         https://bugs.webkit.org/show_bug.cgi?id=63935
1077
1078         it was error generated for obsolete message "loaded" which was sent from frontend to backend.
1079
1080         Reviewed by Yury Semikhatsky.
1081
1082         * inspector/CodeGeneratorInspector.pm:
1083         * inspector/front-end/inspector.js:
1084         (WebInspector.loaded.WebInspector.socket.onopen):
1085         (WebInspector.loaded):
1086
1087 2011-07-05  Andrey Kosyakov  <caseq@chromium.org>
1088
1089         Web Inspector: [refactoring] remove network-sidebar style, add network-log-grid
1090         https://bugs.webkit.org/show_bug.cgi?id=63913
1091
1092         Reviewed by Yury Semikhatsky.
1093
1094         * inspector/front-end/NetworkPanel.js:
1095         (WebInspector.NetworkPanel):
1096         (WebInspector.NetworkPanel.prototype._createTable):
1097         * inspector/front-end/networkPanel.css:
1098         (.network-log-grid):
1099         (.network-log-grid table.data):
1100         (.network-log-grid.small table.data):
1101         (.network-log-grid td):
1102         (.network-log-grid.small td):
1103         (.network-log-grid th):
1104         (.network-log-grid.small th):
1105         (.network-log-grid th, .network.panel .data-grid th.sort-descending, .network.panel .data-grid th.sort-ascending):
1106         (.network-log-grid .data-container):
1107         (.network-log-grid.small .data-container):
1108         (.network-log-grid select):
1109         (.network-log-grid.small tr.offscreen):
1110         (.network-log-grid tr.offscreen):
1111         (.network-log-grid tr.offscreen td):
1112         (.network-log-grid tr.filler):
1113         (.network-log-grid tr:not(.filler) td.name-column):
1114         (.network.panel:not(.viewing-resource) .network-log-grid td.name-column:hover):
1115         (.network-log-grid td.time-column):
1116         (.network-log-grid.small .network-graph-side):
1117         (.network-log-grid th.sortable:active):
1118         (.network-log-grid tr.selected .network-cell-subtitle):
1119         (.network-log-grid .icon):
1120         (.network-log-grid.small .icon):
1121         (.network-log-grid .network-category-scripts .icon):
1122         (.network-log-grid.small .network-category-scripts .icon):
1123         (.network-log-grid .network-category-documents .icon):
1124         (.network-log-grid.small .network-category-documents .icon):
1125         (.network-log-grid .network-category-stylesheets .icon):
1126         (.network-log-grid.small .network-category-stylesheets .icon):
1127         (.network-log-grid .network-category-images .icon):
1128         (.network-log-grid.small .network-category-images .icon):
1129         (.network-log-grid .image-network-icon-preview):
1130         (.network-log-grid.small .image-network-icon-preview):
1131         (.network-timeline-grid.small .network-event-divider):
1132         (.network-log-grid .resources-dividers):
1133         (.network-log-grid .resources-dividers-label-bar):
1134         (.network-timeline-grid.small .resources-dividers-label-bar):
1135         (.network-timeline-grid .resources-divider-label):
1136         (.network-timeline-grid .resources-dividers-label-bar .resources-divider):
1137         (.network-timeline-grid.small .resources-dividers-label-bar .resources-divider):
1138         (.network-timeline-grid .resources-divider.first .resources-divider-label):
1139         (.network-timeline-grid .resources-dividers-label-bar .resources-divider.first):
1140         (.network-timeline-grid tr.filler td):
1141         (.network-summary-bar td):
1142         (.network.panel.viewing-resource .network-log-grid th):
1143         (.network-log-grid.full-grid-mode .viewer-column):
1144         (.network-log-grid.brief-grid-mode .time-column):
1145         (.network-log-grid.viewing-resource-mode .timeline-column):
1146         (.network.panel .sidebar):
1147         (.network.panel.viewing-resource .network-log-grid .data-grid-resizer):
1148
1149 2011-07-05  Alexandru Chiculita  <achicu@adobe.com>
1150
1151         Reviewed by Simon Hausmann.
1152
1153         [Qt] "cat" is not available when building.
1154         https://bugs.webkit.org/show_bug.cgi?id=63924
1155
1156         Changed 'cat' to 'perl -ne \"print $1\"' because 'cat' is not available on Windows with
1157         MSVC toolchain. It passed the Qt buildbots, because they run with cygwin.
1158
1159         Project file change. No tests needed.
1160
1161         * CodeGenerators.pri:
1162 2011-07-05  Vsevolod Vlasov  <vsevik@chromium.org>
1163
1164         Unreviewed; Qt Linux Release minimal compile fix.
1165
1166         * testing/Internals.h:
1167         (WebCore::Internals::setInspectorResourcesDataSizeLimits):
1168         * testing/Internals.idl:
1169
1170 2011-07-05  Vsevolod Vlasov  <vsevik@chromium.org>
1171
1172         Web Inspector: Show content for plugin requests in network panel.
1173         https://bugs.webkit.org/show_bug.cgi?id=30080
1174
1175         Now the data from didReceiveData callback is passed to inspector.
1176         It is then saved in NetworkResourcesData structure for plugin requests.
1177         Added window.internals.setInspectorResourcesDataSizeLimits() method
1178         for testing replacement logic.
1179
1180         Reviewed by Pavel Feldman.
1181
1182         Tests: http/tests/inspector/network/network-content-replacement-embed.html
1183                http/tests/inspector/network/network-content-replacement-xhr.html
1184                http/tests/inspector/network/network-embed.html
1185
1186         * WebCore.exp.in:
1187         * inspector/InspectorController.cpp:
1188         (WebCore::InspectorController::setResourcesDataSizeLimitsFromInternals):
1189         * inspector/InspectorController.h:
1190         * inspector/InspectorInstrumentation.cpp:
1191         (WebCore::InspectorInstrumentation::didReceiveDataImpl):
1192         * inspector/InspectorInstrumentation.h:
1193         (WebCore::InspectorInstrumentation::didReceiveData):
1194         * inspector/InspectorResourceAgent.cpp:
1195         (WebCore::InspectorResourceAgent::didReceiveResponse):
1196         (WebCore::InspectorResourceAgent::didReceiveData):
1197         (WebCore::InspectorResourceAgent::didFinishLoading):
1198         (WebCore::InspectorResourceAgent::setInitialXHRContent):
1199         (WebCore::InspectorResourceAgent::setResourcesDataSizeLimitsFromInternals):
1200         (WebCore::InspectorResourceAgent::getResourceContent):
1201         * inspector/InspectorResourceAgent.h:
1202         * inspector/NetworkResourcesData.cpp:
1203         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
1204         (WebCore::NetworkResourcesData::ResourceData::setContent):
1205         (WebCore::NetworkResourcesData::ResourceData::purgeContent):
1206         (WebCore::NetworkResourcesData::ResourceData::createDecoder):
1207         (WebCore::NetworkResourcesData::ResourceData::dataLength):
1208         (WebCore::NetworkResourcesData::ResourceData::appendData):
1209         (WebCore::NetworkResourcesData::ResourceData::decodeDataToContent):
1210         (WebCore::NetworkResourcesData::NetworkResourcesData):
1211         (WebCore::NetworkResourcesData::responseReceived):
1212         (WebCore::NetworkResourcesData::setResourceContent):
1213         (WebCore::NetworkResourcesData::maybeAddResourceData):
1214         (WebCore::NetworkResourcesData::maybeDecodeDataToContent):
1215         (WebCore::NetworkResourcesData::data):
1216         (WebCore::NetworkResourcesData::clear):
1217         (WebCore::NetworkResourcesData::setResourcesDataSizeLimits):
1218         (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
1219         (WebCore::NetworkResourcesData::ensureFreeSpace):
1220         * inspector/NetworkResourcesData.h:
1221         (WebCore::NetworkResourcesData::ResourceData::hasContent):
1222         (WebCore::NetworkResourcesData::ResourceData::content):
1223         (WebCore::NetworkResourcesData::ResourceData::decoder):
1224         (WebCore::NetworkResourcesData::ResourceData::buffer):
1225         (WebCore::NetworkResourcesData::ResourceData::setBuffer):
1226         (WebCore::NetworkResourcesData::ResourceData::hasData):
1227         * inspector/front-end/Resource.js:
1228         (WebInspector.Resource.prototype.get contentEncoded):
1229         * inspector/front-end/ResourcePreviewView.js:
1230         (WebInspector.ResourcePreviewView.prototype.contentLoaded):
1231         (WebInspector.ResourcePreviewView.prototype._createEmptyView):
1232         (WebInspector.ResourcePreviewView.prototype._createPreviewView):
1233         * inspector/front-end/ResourceView.js:
1234         (WebInspector.ResourceView.hasTextContent):
1235         * loader/DocumentThreadableLoader.cpp:
1236         (WebCore::DocumentThreadableLoader::didReceiveData):
1237         * loader/FrameLoader.cpp:
1238         (WebCore::FrameLoader::willLoadMediaElementURL):
1239         (WebCore::FrameLoader::commitProvisionalLoad):
1240         (WebCore::FrameLoader::loadResourceSynchronously):
1241         (WebCore::FrameLoader::loadedResourceFromMemoryCache):
1242         * loader/ResourceLoadNotifier.cpp:
1243         (WebCore::ResourceLoadNotifier::didReceiveData):
1244         (WebCore::ResourceLoadNotifier::dispatchDidReceiveData):
1245         (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
1246         * loader/ResourceLoadNotifier.h:
1247         * loader/appcache/ApplicationCacheGroup.cpp:
1248         (WebCore::ApplicationCacheGroup::didReceiveData):
1249         * testing/Internals.cpp:
1250         (WebCore::Internals::setInspectorResourcesDataSizeLimits):
1251         * testing/Internals.h:
1252         * testing/Internals.idl:
1253
1254 2011-07-05  Kent Tamura  <tkent@chromium.org>
1255
1256         Add an assertion that percent height box is unregistered correctly.
1257         https://bugs.webkit.org/show_bug.cgi?id=62792
1258
1259         Reviewed by Hajime Morita.
1260
1261         No new tests. This won't change behavior.
1262
1263         * rendering/RenderBlock.cpp:
1264         (WebCore::RenderBlock::hasPercentHeightDescendant): Added.
1265         * rendering/RenderBlock.h: Declare hasPercentHeightDescendant().
1266         * rendering/RenderBox.cpp:
1267         (WebCore::RenderBox::destroy): Assert !hasPercentHeightDescendant().
1268
1269 2011-07-04  Pavel Feldman  <pfeldman@google.com>
1270
1271         Web Inspector: Enable settings screen with settings for console and elements panels.
1272         https://bugs.webkit.org/show_bug.cgi?id=62853
1273
1274         Reviewed by Yury Semikhatsky.
1275
1276         * English.lproj/localizedStrings.js:
1277         * inspector/front-end/HelpScreen.js:
1278         (WebInspector.HelpScreen.prototype.hide):
1279         * inspector/front-end/SettingsScreen.js:
1280         (WebInspector.SettingsScreen):
1281         (WebInspector.SettingsScreen.prototype._createRadioSetting.clickListener):
1282         (WebInspector.SettingsScreen.prototype._createRadioSetting.get for):
1283         * inspector/front-end/ShortcutsScreen.js:
1284         (WebInspector.ShortcutsScreen.prototype.hide):
1285         * inspector/front-end/StylesSidebarPane.js:
1286         (WebInspector.StylesSidebarPane.prototype._colorFormatSettingChanged):
1287         (WebInspector.StylesSidebarPane.prototype._updateColorFormatFilter.get var):
1288         (WebInspector.StylesSidebarPane.prototype._updateColorFormatFilter):
1289         (WebInspector.StylesSidebarPane.prototype._changeSetting):
1290         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.):
1291         * inspector/front-end/inspector.css:
1292         (#counters):
1293         * inspector/front-end/inspector.js:
1294         (WebInspector._createGlobalStatusBarItems):
1295         (WebInspector._toggleSettings):
1296         (WebInspector._showShortcutsScreen):
1297         (WebInspector._hideShortcutsScreen):
1298         (WebInspector._showSettingsScreen.onhide):
1299         (WebInspector._showSettingsScreen):
1300         (WebInspector._hideSettingsScreen):
1301         (WebInspector.documentKeyDown):
1302
1303 2011-07-05  Shinya Kawanaka  <shinyak@google.com>
1304
1305         Reviewed by Kent Tamura.
1306
1307         The default step is used when attribute step of input[type='number'] is "any".
1308         https://bugs.webkit.org/show_bug.cgi?id=57723
1309
1310         When step is "any", 0 was chosen as step, but this is not intuitive.
1311         So changed to use the default step.
1312
1313         * html/HTMLInputElement.cpp:
1314         (WebCore::HTMLInputElement::getAllowedValueStep):
1315           Calls getAllowedValueStepWithDecimalPlaces with RejectAny.
1316         (WebCore::HTMLInputElement::getAllowedValueStepWithDecimalPlaces):
1317           Takes a new arugument AnyStepHandling. If it is AnyIsDefaultStep, this method
1318           allows "step" attribute to take a value "any" to use the default step as step value.
1319           Otherwise, INVALID_STATE_ERR will be returned if "step" is "any".
1320         (WebCore::HTMLInputElement::applyStep): ditto.
1321         (WebCore::HTMLInputElement::stepUp):
1322           Calls applyStep with RejectAny.
1323         (WebCore::HTMLInputElement::stepDown): ditto.
1324         (WebCore::HTMLInputElement::stepUpFromRenderer):
1325           Removes a check that step is "any". It is checked in getAllowedValueStepWithDecimalPlaces.
1326         * html/HTMLInputElement.h:
1327
1328 2011-07-04  Dominic Cooney   <dominicc@chromium.org>
1329
1330         Simplify <progress> element's isDeterminate logic.
1331         https://bugs.webkit.org/show_bug.cgi?id=63889
1332
1333         Reviewed by Hajime Morita.
1334
1335         Covered by existing tests
1336         fast/dom/HTMLProgressElement/indeterminate-progress-*.html
1337
1338         * html/HTMLProgressElement.cpp:
1339         (WebCore::HTMLProgressElement::position): don't duplicate isDeterminate
1340         (WebCore::HTMLProgressElement::isDeterminate): remove redundant tests
1341         (WebCore::HTMLProgressElement::didElementStateChange): fix formatting
1342         * html/HTMLProgressElement.h:
1343
1344 2011-07-04  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1345
1346         Reviewed by Kent Tamura.
1347
1348         [EFL] Add hasOwnDisabledStateHandlingFor() to RenderThemeEfl
1349         https://bugs.webkit.org/show_bug.cgi?id=63884
1350
1351         As MediaControlRootElement decides whether it will display timeline
1352         according to the return value of RenderTheme's hasOwnDisabledStateHandlingFor(),
1353         RenderThemeEfl has to implement this function.
1354
1355         Existing tests cover the visibility of the controls.
1356
1357         * platform/efl/RenderThemeEfl.h:
1358         (WebCore::RenderThemeEfl::hasOwnDisabledStateHandlingFor):
1359
1360 2011-07-04  Kent Tamura  <tkent@chromium.org>
1361
1362         REGRESSION (r87067): Text overflows from short height text field.
1363         https://bugs.webkit.org/show_bug.cgi?id=61768
1364
1365         Reviewed by Dimitri Glazkov.
1366
1367         Since r87067, the RenderStyle for the inner text element is reset
1368         by the value update, but the renderer for the inner text element
1369         keeps to have metrics calculated by the previous style. So
1370         RenderTextControlSingleLine::layout() didn't set a desired height
1371         to the renderer for the inner text element.
1372
1373         This patch changes the style creation code so that it has the
1374         desired height initially.
1375
1376         Test: fast/forms/textfield-overflow-by-value-update.html
1377
1378         * rendering/RenderTextControlSingleLine.cpp:
1379         (WebCore::RenderTextControlSingleLine::RenderTextControlSingleLine):
1380         Initialize m_desiredInnerTextHeight.
1381         (WebCore::RenderTextControlSingleLine::layout):
1382         Update m_desiredInnerTextHeight.
1383         (WebCore::RenderTextControlSingleLine::styleDidChange):
1384         Reset m_desiredInnerTextHeight.
1385         (WebCore::RenderTextControlSingleLine::createInnerTextStyle):
1386         Sets the height if m_desiredInnerTextHeight has a concrete value.
1387         * rendering/RenderTextControlSingleLine.h:
1388         Declare m_desiredInnerTextHeight.
1389
1390 2011-07-04  MORITA Hajime  <morrita@google.com>
1391
1392         Accessing ShadowRoot.nodeList causes an assertion failure.
1393         http://webkit.org/b/63798
1394         
1395         The TreeScope destructor did clear the reference to TreeScope, 
1396         then the Node destructor accessing treeScope(), which results 
1397         an inconsistent state during the NodeList cache cleanup.
1398
1399         This change clears NodeList cache during the TreeScope destructor.
1400         The Node destructor no longer does problematic NodeList cache
1401         manipulation.
1402
1403         Test: fast/dom/shadow/shadow-root-node-list.html
1404
1405         Reviewed by Dimitri Glazkov.
1406         
1407         * dom/Node.cpp:
1408         (WebCore::Node::~Node):
1409         (WebCore::Node::clearRareData):
1410         * dom/Node.h:
1411         * dom/TreeScope.cpp:
1412         (WebCore::TreeScope::~TreeScope):
1413
1414 2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
1415
1416         ResourceLoadNotifier::dispatchWillSendRequest should not compare StringImpl directly
1417         https://bugs.webkit.org/show_bug.cgi?id=63873
1418
1419         Reviewed by Alexey Proskuryakov.
1420
1421         * loader/ResourceLoadNotifier.cpp:
1422         (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
1423
1424 2011-07-04  Sheriff Bot  <webkit.review.bot@gmail.com>
1425
1426         Unreviewed, rolling out r90373.
1427         http://trac.webkit.org/changeset/90373
1428         https://bugs.webkit.org/show_bug.cgi?id=63917
1429
1430         Breaks Qt Linux Release minimal (Requested by vsevik on
1431         #webkit).
1432
1433         * WebCore.exp.in:
1434         * inspector/InspectorController.cpp:
1435         * inspector/InspectorController.h:
1436         * inspector/InspectorInstrumentation.cpp:
1437         (WebCore::InspectorInstrumentation::didReceiveContentLengthImpl):
1438         * inspector/InspectorInstrumentation.h:
1439         (WebCore::InspectorInstrumentation::didReceiveContentLength):
1440         * inspector/InspectorResourceAgent.cpp:
1441         (WebCore::InspectorResourceAgent::didReceiveResponse):
1442         (WebCore::InspectorResourceAgent::didReceiveContentLength):
1443         (WebCore::InspectorResourceAgent::didFinishLoading):
1444         (WebCore::InspectorResourceAgent::setInitialXHRContent):
1445         (WebCore::InspectorResourceAgent::getResourceContent):
1446         * inspector/InspectorResourceAgent.h:
1447         * inspector/NetworkResourcesData.cpp:
1448         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
1449         (WebCore::NetworkResourcesData::ResourceData::content):
1450         (WebCore::NetworkResourcesData::ResourceData::appendContent):
1451         (WebCore::NetworkResourcesData::ResourceData::purgeContent):
1452         (WebCore::NetworkResourcesData::NetworkResourcesData):
1453         (WebCore::NetworkResourcesData::responseReceived):
1454         (WebCore::NetworkResourcesData::addResourceContent):
1455         (WebCore::NetworkResourcesData::data):
1456         (WebCore::NetworkResourcesData::clear):
1457         (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
1458         (WebCore::NetworkResourcesData::ensureFreeSpace):
1459         * inspector/NetworkResourcesData.h:
1460         (WebCore::NetworkResourcesData::ResourceData::hasContent):
1461         (WebCore::NetworkResourcesData::ResourceData::setIsContentPurged):
1462         (WebCore::NetworkResourcesData::ResourceData::textEncodingName):
1463         (WebCore::NetworkResourcesData::ResourceData::setTextEncodingName):
1464         * inspector/front-end/Resource.js:
1465         * inspector/front-end/ResourcePreviewView.js:
1466         (WebInspector.ResourcePreviewView.prototype.contentLoaded):
1467         (WebInspector.ResourcePreviewView.prototype._createInnerView):
1468         * inspector/front-end/ResourceView.js:
1469         (WebInspector.ResourceView.hasTextContent):
1470         * loader/DocumentThreadableLoader.cpp:
1471         (WebCore::DocumentThreadableLoader::didReceiveData):
1472         * loader/FrameLoader.cpp:
1473         (WebCore::FrameLoader::willLoadMediaElementURL):
1474         (WebCore::FrameLoader::commitProvisionalLoad):
1475         (WebCore::FrameLoader::loadResourceSynchronously):
1476         (WebCore::FrameLoader::loadedResourceFromMemoryCache):
1477         * loader/ResourceLoadNotifier.cpp:
1478         (WebCore::ResourceLoadNotifier::didReceiveData):
1479         (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
1480         (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
1481         * loader/ResourceLoadNotifier.h:
1482         * loader/appcache/ApplicationCacheGroup.cpp:
1483         (WebCore::ApplicationCacheGroup::didReceiveData):
1484         * testing/Internals.cpp:
1485         * testing/Internals.h:
1486         * testing/Internals.idl:
1487
1488 2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
1489
1490         Web Inspector: Show content for plugin requests in network panel.
1491         https://bugs.webkit.org/show_bug.cgi?id=30080
1492
1493         Reviewed by Pavel Feldman.
1494
1495         Tests: http/tests/inspector/network/network-content-replacement-embed.html
1496                http/tests/inspector/network/network-content-replacement-xhr.html
1497                http/tests/inspector/network/network-embed.html
1498
1499         * WebCore.exp.in:
1500         * inspector/InspectorController.cpp:
1501         (WebCore::InspectorController::setResourcesDataSizeLimitsFromInternals):
1502         * inspector/InspectorController.h:
1503         * inspector/InspectorInstrumentation.cpp:
1504         (WebCore::InspectorInstrumentation::didReceiveDataImpl):
1505         * inspector/InspectorInstrumentation.h:
1506         (WebCore::InspectorInstrumentation::didReceiveData):
1507         * inspector/InspectorResourceAgent.cpp:
1508         (WebCore::InspectorResourceAgent::didReceiveResponse):
1509         (WebCore::InspectorResourceAgent::didReceiveData):
1510         (WebCore::InspectorResourceAgent::didFinishLoading):
1511         (WebCore::InspectorResourceAgent::setInitialXHRContent):
1512         (WebCore::InspectorResourceAgent::setResourcesDataSizeLimitsFromInternals):
1513         (WebCore::InspectorResourceAgent::getResourceContent):
1514         * inspector/InspectorResourceAgent.h:
1515         * inspector/NetworkResourcesData.cpp:
1516         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
1517         (WebCore::NetworkResourcesData::ResourceData::setContent):
1518         (WebCore::NetworkResourcesData::ResourceData::purgeContent):
1519         (WebCore::NetworkResourcesData::ResourceData::createDecoder):
1520         (WebCore::NetworkResourcesData::ResourceData::dataLength):
1521         (WebCore::NetworkResourcesData::ResourceData::appendData):
1522         (WebCore::NetworkResourcesData::ResourceData::decodeDataToContent):
1523         (WebCore::NetworkResourcesData::NetworkResourcesData):
1524         (WebCore::NetworkResourcesData::responseReceived):
1525         (WebCore::NetworkResourcesData::setResourceContent):
1526         (WebCore::NetworkResourcesData::maybeAddResourceData):
1527         (WebCore::NetworkResourcesData::maybeDecodeDataToContent):
1528         (WebCore::NetworkResourcesData::data):
1529         (WebCore::NetworkResourcesData::clear):
1530         (WebCore::NetworkResourcesData::setResourcesDataSizeLimits):
1531         (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
1532         (WebCore::NetworkResourcesData::ensureFreeSpace):
1533         * inspector/NetworkResourcesData.h:
1534         (WebCore::NetworkResourcesData::ResourceData::hasContent):
1535         (WebCore::NetworkResourcesData::ResourceData::content):
1536         (WebCore::NetworkResourcesData::ResourceData::decoder):
1537         (WebCore::NetworkResourcesData::ResourceData::buffer):
1538         (WebCore::NetworkResourcesData::ResourceData::setBuffer):
1539         (WebCore::NetworkResourcesData::ResourceData::hasData):
1540         * inspector/front-end/Resource.js:
1541         (WebInspector.Resource.prototype.get contentEncoded):
1542         * inspector/front-end/ResourcePreviewView.js:
1543         (WebInspector.ResourcePreviewView.prototype.contentLoaded):
1544         (WebInspector.ResourcePreviewView.prototype._createEmptyView):
1545         (WebInspector.ResourcePreviewView.prototype._createPreviewView):
1546         * inspector/front-end/ResourceView.js:
1547         (WebInspector.ResourceView.hasTextContent):
1548         * loader/DocumentThreadableLoader.cpp:
1549         (WebCore::DocumentThreadableLoader::didReceiveData):
1550         * loader/FrameLoader.cpp:
1551         (WebCore::FrameLoader::willLoadMediaElementURL):
1552         (WebCore::FrameLoader::commitProvisionalLoad):
1553         (WebCore::FrameLoader::loadResourceSynchronously):
1554         (WebCore::FrameLoader::loadedResourceFromMemoryCache):
1555         * loader/ResourceLoadNotifier.cpp:
1556         (WebCore::ResourceLoadNotifier::didReceiveData):
1557         (WebCore::ResourceLoadNotifier::dispatchDidReceiveData):
1558         (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
1559         * loader/ResourceLoadNotifier.h:
1560         * loader/appcache/ApplicationCacheGroup.cpp:
1561         (WebCore::ApplicationCacheGroup::didReceiveData):
1562         * testing/Internals.cpp:
1563         (WebCore::Internals::setInspectorResourcesDataSizeLimits):
1564         * testing/Internals.h:
1565         * testing/Internals.idl:
1566
1567 2011-07-04  Jeff Timanus  <twiz@chromium.org>
1568
1569         Reviewed by Stephen White.
1570
1571         Prevent calls to GrapicsContext3D::deleteTexture with id 0 in DrawingBuffer::clear().
1572         https://bugs.webkit.org/show_bug.cgi?id=63756
1573
1574         * platform/graphics/gpu/DrawingBuffer.cpp:
1575         (WebCore::DrawingBuffer::clear):
1576
1577 2011-07-04  Martin Robinson  <mrobinson@igalia.com>
1578
1579         Reviewed by Andreas Kling.
1580
1581         [GTK] r90148 did not apply to X11 platforms in WebKit1
1582         https://bugs.webkit.org/show_bug.cgi?id=63862
1583
1584         Correct the guard for an X11 specific piece of code. TARGET(X11) not
1585         defined for the GTK+ port.
1586
1587         No new tests. This is covered by an existing test.
1588
1589         * plugins/npapi.cpp: Correct the X11 guard.
1590         (NPN_InvalidateRect):
1591
1592 2011-07-04  Pavel Feldman  <pfeldman@google.com>
1593
1594         Web Inspector: implement settings panel.
1595         https://bugs.webkit.org/show_bug.cgi?id=63907
1596
1597         Reviewed by Yury Semikhatsky.
1598
1599         * English.lproj/localizedStrings.js:
1600         * WebCore.gypi:
1601         * WebCore.vcproj/WebCore.vcproj:
1602         * inspector/front-end/BreakpointsSidebarPane.js:
1603         (WebInspector.XHRBreakpointsSidebarPane.prototype._saveBreakpoints):
1604         (WebInspector.EventListenerBreakpointsSidebarPane.prototype._saveBreakpoints):
1605         * inspector/front-end/ConsoleView.js:
1606         (WebInspector.ConsoleView):
1607         (WebInspector.ConsoleView.prototype._handleContextMenuEvent.monitoringXHRItemAction):
1608         (WebInspector.ConsoleView.prototype._handleContextMenuEvent.get preserveLogItemAction):
1609         (WebInspector.ConsoleView.prototype._monitoringXHREnabledSettingChanged):
1610         (WebInspector.ConsoleView.prototype._registerShortcuts):
1611         * inspector/front-end/DOMBreakpointsSidebarPane.js:
1612         (WebInspector.DOMBreakpointsSidebarPane.prototype._saveBreakpoints):
1613         * inspector/front-end/DebuggerPresentationModel.js:
1614         (WebInspector.DebuggerPresentationModel.prototype._saveBreakpoints):
1615         * inspector/front-end/ElementsPanel.js:
1616         (WebInspector.ElementsPanel.prototype._contextMenuEventFired):
1617         (WebInspector.ElementsPanel.prototype._domWordWrapSettingChanged):
1618         (WebInspector.ElementsPanel.prototype._registerShortcuts):
1619         * inspector/front-end/EventListenersSidebarPane.js:
1620         (WebInspector.EventListenersSidebarPane.prototype):
1621         ():
1622         * inspector/front-end/HelpScreen.js:
1623         (WebInspector.HelpScreen):
1624         (WebInspector.HelpScreen.prototype.show):
1625         (WebInspector.HelpScreen.prototype.hide):
1626         (WebInspector.HelpScreen.prototype._onKeyDown):
1627         * inspector/front-end/NetworkItemView.js:
1628         * inspector/front-end/NetworkPanel.js:
1629         * inspector/front-end/Panel.js:
1630         (WebInspector.Panel.prototype.saveSidebarWidth):
1631         * inspector/front-end/ProfilesPanel.js:
1632         * inspector/front-end/ResourcesPanel.js:
1633         (WebInspector.BaseStorageTreeElement.prototype.onselect):
1634         (WebInspector.StorageCategoryTreeElement.prototype.onexpand):
1635         (WebInspector.StorageCategoryTreeElement.prototype.set oncollapse):
1636         * inspector/front-end/ScriptsPanel.js:
1637         (WebInspector.ScriptsPanel.prototype._sourceFileAdded.get if):
1638         (WebInspector.ScriptsPanel.prototype._setPauseOnExceptions.callback):
1639         (WebInspector.ScriptsPanel.prototype._createSidebarButtonAndRegisterShortcuts):
1640         * inspector/front-end/Settings.js:
1641         (WebInspector.Settings):
1642         (WebInspector.Settings.prototype.installApplicationSetting):
1643         (WebInspector.Setting):
1644         (WebInspector.Setting.prototype.addChangeListener):
1645         (WebInspector.Setting.prototype.removeChangeListener):
1646         (WebInspector.Setting.prototype.get var):
1647         (WebInspector.Setting.prototype):
1648         (WebInspector.Setting.prototype.set if):
1649         * inspector/front-end/SettingsScreen.js: Added.
1650         (WebInspector.SettingsScreen):
1651         (WebInspector.SettingsScreen.prototype._appendSection):
1652         (WebInspector.SettingsScreen.prototype._columnElement):
1653         (WebInspector.SettingsScreen.prototype._createCheckboxSetting.get listener):
1654         (WebInspector.SettingsScreen.prototype._createRadioSetting):
1655         * inspector/front-end/ShortcutsScreen.js: Renamed from Source/WebCore/inspector/front-end/ShortcutsHelp.js.
1656         (WebInspector.ShortcutsScreen):
1657         * inspector/front-end/StylesSidebarPane.js:
1658         (WebInspector.StylesSidebarPane.prototype.registerShortcuts):
1659         * inspector/front-end/WatchExpressionsSidebarPane.js:
1660         * inspector/front-end/WebKit.qrc:
1661         * inspector/front-end/helpScreen.css:
1662         (.help-window-main):
1663         (body.attached .help-window-main):
1664         (.help-window-caption):
1665         (body.attached .help-window-caption):
1666         (.help-content):
1667         (.help-close-button):
1668         (body.attached .help-close-button):
1669         (body.attached .help-content):
1670         (.help-table):
1671         (body.platform-mac .help-key):
1672         (.help-combine-keys):
1673         (.help-content p):
1674         (.help-content fieldset):
1675         (.help-content fieldset p):
1676         (.help-content p.help-section):
1677         (.help-section-title):
1678         (.help-content input[type=checkbox]):
1679         * inspector/front-end/inspector.css:
1680         (button.settings-status-bar-item):
1681         (.settings-status-bar-item .glyph):
1682         * inspector/front-end/inspector.html:
1683         * inspector/front-end/inspector.js:
1684         (WebInspector._createGlobalStatusBarItems):
1685         (WebInspector._toggleAttach):
1686         (WebInspector._toggleSettings):
1687         (WebInspector._registerShortcuts):
1688         (WebInspector.documentKeyDown):
1689
1690 2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
1691
1692         Web Inspector: Resources loaded to Resources Panel from InspectorPageAgent do not have mime type set.
1693         https://bugs.webkit.org/show_bug.cgi?id=63701
1694
1695         Pass cachedResource/documentLoader mimeType from InspectorPageAgent to frontend.
1696
1697         Reviewed by Yury Semikhatsky.
1698
1699         Test: http/tests/inspector/resource-tree/resource-tree-mimetype.html
1700
1701         * inspector/Inspector.json:
1702         * inspector/InspectorPageAgent.cpp:
1703         (WebCore::InspectorPageAgent::buildObjectForFrame):
1704         (WebCore::InspectorPageAgent::buildObjectForFrameTree):
1705         * inspector/front-end/ResourceTreeModel.js:
1706         (WebInspector.ResourceTreeModel.prototype._addFramesRecursively):
1707         (WebInspector.ResourceTreeModel.prototype._createResource):
1708
1709 2011-07-04  Yury Semikhatsky  <yurys@chromium.org>
1710
1711         Web Inspector: repeated message counter should be aligned with other message icons
1712         https://bugs.webkit.org/show_bug.cgi?id=63901
1713
1714         Reviewed by Pavel Feldman.
1715
1716         * inspector/front-end/inspector.css:
1717         (.console-message .bubble):
1718
1719 2011-07-04  Alexander Pavlov  <apavlov@chromium.org>
1720
1721         Reviewed by Pavel Feldman.
1722
1723         Web Inspector: Adding new CSS rules should be more discoverable in the UI
1724         https://bugs.webkit.org/show_bug.cgi?id=63803
1725
1726         * inspector/front-end/StylesSidebarPane.js:
1727         (WebInspector.StylesSidebarPane.prototype._createNewRule):
1728
1729 2011-07-04  Danilo Cesar Lemes de Paula  <danilo.cesar@collabora.co.uk>
1730
1731         [Qt] Fixing build with --media-stream flag enabled
1732         https://bugs.webkit.org/show_bug.cgi?id=63831
1733
1734         Reviewed by Benjamin Poulain.
1735
1736         * features.pri: Adding support to ENABLE_MEDIA_STREAM flag.
1737
1738 2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
1739
1740         Reviewed by Yury Semikhatsky.
1741
1742         Web Inspector: Update network resource url from response data.
1743         https://bugs.webkit.org/show_bug.cgi?id=63736
1744
1745         * inspector/Inspector.json:
1746         * inspector/InspectorResourceAgent.cpp:
1747         (WebCore::buildObjectForResourceResponse):
1748         * inspector/front-end/NetworkManager.js:
1749         (WebInspector.NetworkDispatcher.prototype._updateResourceWithResponse):
1750
1751 2011-07-04  Andrey Kosyakov  <caseq@chromium.org>
1752
1753         Reviewed by Yury Semikhatsky.
1754
1755         Web Inspector: [Extensions API] audit formatter names should begin with create
1756         https://bugs.webkit.org/show_bug.cgi?id=63802
1757
1758         * inspector/front-end/ExtensionAPI.js:
1759         (WebInspector.injectedExtensionAPI.AuditResultImpl):
1760
1761 2011-07-03  Dominic Cooney  <dominicc@chromium.org>
1762
1763         The value property of an indeterminate progress element should be zero
1764         https://bugs.webkit.org/show_bug.cgi?id=63861
1765
1766         Reviewed by Kent Tamura.
1767
1768         Test: fast/dom/HTMLProgressElement/set-progress-properties.html
1769
1770         * html/HTMLProgressElement.cpp:
1771         (WebCore::HTMLProgressElement::value):
1772
1773 2011-07-03  Robert Hogan  <robert@webkit.org>
1774
1775         Restore scroll position on page reloads scheduled by <meta http-equiv="refresh" content="XX"/>
1776         https://bugs.webkit.org/show_bug.cgi?id=62482
1777
1778         If a <meta http-equiv="refresh"> directive schedules a page reload rather than
1779         a redirect restore the scroll position after the reload. Do the same on location.reload().
1780
1781         Reviewed by Adam Barth.
1782
1783         Tests: http/tests/navigation/scrollstate-after-http-equiv-refresh-fragment-identifier-2.html
1784                http/tests/navigation/scrollstate-after-http-equiv-refresh-fragment-identifier.html
1785                http/tests/navigation/scrollstate-after-http-equiv-refresh.html
1786                http/tests/navigation/scrollstate-after-location-reload.html
1787
1788         * loader/FrameLoader.cpp:
1789         (WebCore::FrameLoader::loadURL):
1790         Only make the load FrameLoadTypeSame if it has not already been set as FrameLoadTypeReload*.
1791         FrameLoadTypeReload* loads are set through http-equiv refreshes, manual reloads, or location.reload()
1792         and honour the user's scroll position in the frame. A FrameLoadTypeSame is for when the frame is loading
1793         the same page again, e.g. by clicking a link.
1794
1795         * loader/NavigationScheduler.cpp:
1796         (WebCore::ScheduledRedirect::fire): Tell FrameLoader::changeLocation() if this is a reload.
1797
1798 2011-07-03  Dirk Schulze  <krit@webkit.org>
1799
1800         SVGAnimateTransform accumulate=sum restarts on every repeat
1801         https://bugs.webkit.org/show_bug.cgi?id=63876
1802
1803         Reviewed by Nikolas Zimmermann.
1804         
1805         We applied transforms from previous animation repeats to a transform list. The problem is, that we calculated the current
1806         transform based on the percentage of the current repeat count. This causes an animation starting from scale level 0
1807         on every repeat. Now I add the repeat count to the current percentage, so that the distance calculation starts from 100% on
1808         the first repeat, from 200% on the second and so on.
1809
1810         Test: svg/animations/svgtransform-animation-1.html
1811
1812         * svg/SVGAnimateTransformElement.cpp:
1813         (WebCore::SVGAnimateTransformElement::calculateAnimatedValue):
1814
1815 2011-07-03  Sheriff Bot  <webkit.review.bot@gmail.com>
1816
1817         Unreviewed, rolling out r90342.
1818         http://trac.webkit.org/changeset/90342
1819         https://bugs.webkit.org/show_bug.cgi?id=63875
1820
1821         Newly added tests fail on Mac, GTK, and Win7 (Requested by
1822         abarth on #webkit).
1823
1824         * loader/FrameLoader.cpp:
1825         (WebCore::FrameLoader::loadURL):
1826         * loader/NavigationScheduler.cpp:
1827
1828 2011-07-03  Robert Hogan  <robert@webkit.org>
1829
1830         Restore scroll position on page reloads scheduled by <meta http-equiv="refresh" content="XX"/>
1831         https://bugs.webkit.org/show_bug.cgi?id=62482
1832
1833         If a <meta http-equiv="refresh"> directive schedules a page reload rather than
1834         a redirect restore the scroll position after the reload. Do the same on location.reload().
1835
1836         Reviewed by Adam Barth.
1837
1838         Tests: http/tests/navigation/scrollstate-after-http-equiv-refresh-fragment-identifier-2.html
1839                http/tests/navigation/scrollstate-after-http-equiv-refresh-fragment-identifier.html
1840                http/tests/navigation/scrollstate-after-http-equiv-refresh.html
1841                http/tests/navigation/scrollstate-after-location-reload.html
1842
1843         * loader/FrameLoader.cpp:
1844         (WebCore::FrameLoader::loadURL):
1845         Only make the load FrameLoadTypeSame if it has not already been set as FrameLoadTypeReload*.
1846         FrameLoadTypeReload* loads are set through http-equiv refreshes, manual reloads, or location.reload()
1847         and honour the user's scroll position in the frame. A FrameLoadTypeSame is for when the frame is loading
1848         the same page again, e.g. by clicking a link.
1849
1850         * loader/NavigationScheduler.cpp:
1851         (WebCore::ScheduledRedirect::fire): Tell FrameLoader::changeLocation() if this is a reload.
1852
1853 2011-04-02  Robert Hogan  <robert@webkit.org>
1854
1855         Reviewed by Benjamin Poulain.
1856
1857         [Qt] Support third-party cookie policy for Qt clients
1858         https://bugs.webkit.org/show_bug.cgi?id=45455
1859
1860         Identifying third-party cookies is facilitated by API new to QUrl from
1861         Qt 4.8: QUrl::topLevelDomain(). This API uses the Mozilla public suffix
1862         list to determine the top-level registry-controlled domain of the Url.
1863
1864         See also: http://gitorious.org/qt/qt/merge_requests/1205
1865                    (commit 154402f56dcf8303a6ce601a52215226af8d31ba)
1866                   http://bugreports.qt.nokia.com/browse/QTBUG-13601
1867
1868         Test: http/tests/cookies/strict-third-party-cookie-blocking.html
1869
1870         * WebCore.pro:
1871         * platform/network/qt/ResourceRequestQt.cpp:
1872         (WebCore::ResourceRequest::toNetworkRequest):
1873         * platform/qt/CookieJarQt.cpp:
1874         (WebCore::setCookies):
1875         (WebCore::cookies):
1876         * platform/qt/ThirdPartyCookiesQt.cpp: Added.
1877         (WebCore::cookieJar):
1878         (WebCore::isFirstPartyCookie):
1879         (WebCore::cookieAllowed):
1880         (WebCore::allowThirdPartyCookies):
1881         * platform/qt/ThirdPartyCookiesQt.h: Added.
1882
1883 2011-07-03  Vsevolod Vlasov  <vsevik@chromium.org>
1884
1885         Reviewed by Alexey Proskuryakov.
1886
1887         Web Inspector: Preflight OPTIONS requests are not shown on network panel for asynchronous XHRs.
1888         https://bugs.webkit.org/show_bug.cgi?id=63712
1889
1890         Added InspectorInstrumentation calls to preflight OPTIONS requests callbacks in DocumentThreadableLoader.
1891
1892         * loader/DocumentThreadableLoader.cpp:
1893         (WebCore::DocumentThreadableLoader::DocumentThreadableLoader):
1894         (WebCore::DocumentThreadableLoader::didReceiveResponse):
1895         (WebCore::DocumentThreadableLoader::didReceiveData):
1896         (WebCore::DocumentThreadableLoader::didFinishLoading):
1897         (WebCore::DocumentThreadableLoader::didFail):
1898         (WebCore::DocumentThreadableLoader::loadRequest):
1899         * loader/DocumentThreadableLoader.h:
1900
1901 2011-06-23  Robert Hogan  <robert@webkit.org>
1902
1903         Reviewed by Simon Hausmann.
1904
1905         [Qt] Windowless Plugins : <input> cursor blinks even after transferring focus to plugin
1906         https://bugs.webkit.org/show_bug.cgi?id=30355
1907
1908         Test: plugins/mouse-click-plugin-clears-selection.html
1909
1910         PluginView needs to use page->focusController()->setFocusedNode() when focusing a plugin
1911         in order to clear the FrameSelection in the currently focused node. In its platform-specific
1912         code Chromium already does this (WebPluginContainerImpl.cpp).
1913
1914         * WebCore.exp.in: Add symbol for FocusController::setFocusedNode
1915         * plugins/PluginView.cpp:
1916         (WebCore::PluginView::focusPluginElement): Using FocusController::setFocusedNode() makes
1917                                                    the call to FocusController:setFocusedFrame() and Document::setFocusedNode()
1918                                                    redundant, since it calls both.
1919
1920 2011-07-01  Michael Nordman  <michaeln@google.com>
1921
1922         Reviewed by Darin Fisher.
1923
1924         [Chromium] FileSystem API can be used to learn about installed software on the user's computer.
1925         Added a new MIMETypeRegistry method to return a type based on a well known set of mappings
1926         without consulting the OS/registry.
1927         https://bugs.webkit.org/show_bug.cgi?id=63220
1928
1929         No new tests, existing layout tests that invoke file.type apply.
1930
1931         * fileapi/File.cpp: Refactored the factory methods.
1932         (WebCore::createBlobDataForFileWithType):
1933         (WebCore::createBlobDataForFile):
1934         (WebCore::createBlobDataForFileSystemFile):
1935         (WebCore::File::File):
1936         * platform/MIMETypeRegistry.cpp: Added getWellKnownMIMETypeForExtension() method.
1937         (WebCore::mediaMIMETypeMap):
1938         (WebCore::findMimeType):
1939         (WebCore::MIMETypeRegistry::getWellKnownMIMETypeForExtension):
1940         * platform/MIMETypeRegistry.h:
1941         * platform/chromium/MIMETypeRegistryChromium.cpp: Added getWellKnownMIMETypeForExtension() method.
1942         (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
1943         (WebCore::MIMETypeRegistry::getWellKnownMIMETypeForExtension):
1944         (WebCore::findMimeType):
1945         * platform/chromium/PlatformBridge.h:
1946
1947 2011-07-01  Tim Horton  <timothy_horton@apple.com>
1948
1949         Reviewed by Darin Adler.
1950
1951         SVG data:image/svg+xml;base64 URLs inside CSS throw mime type warning
1952         https://bugs.webkit.org/show_bug.cgi?id=54325
1953         
1954         Add image/svg+xml to the list of acceptable MIME types for the Image type.
1955
1956         * inspector/front-end/inspector.js:
1957         (WebInspector):
1958
1959 2011-07-01  Tim Horton  <timothy_horton@apple.com>
1960
1961         Reviewed by Darin Adler.
1962
1963         Errors encountered within SVG documents should be reported to the console
1964         https://bugs.webkit.org/show_bug.cgi?id=62599
1965
1966         Add SVGElement::reportAttributeParsingError, which will
1967         write a Web Inspector console message if passed an SVGParsingError
1968         and the attribute which was being applied, only in the case where
1969         there is actually an error.
1970
1971         Include the SVG document's URI when writing to the Web Inspector
1972         console, so that the UI displays both the filename and the line number.
1973
1974         * svg/SVGDocumentExtensions.cpp:
1975         (WebCore::reportMessage):
1976         * svg/SVGElement.cpp:
1977         (WebCore::SVGElement::reportAttributeParsingError):
1978         * svg/SVGElement.h:
1979
1980 2011-07-01  Scott Byer  <scottbyer@chromium.org>
1981
1982         Reviewed by Adam Barth.
1983
1984         Smooth scrolling fixes
1985         https://bugs.webkit.org/show_bug.cgi?id=63770
1986
1987         Tests: Chromium webkit_unit_tests ScrollAnimatorNoneTest.ScrollWheelTrace and .LinuxTrackPadTrace
1988
1989         Fix issues found in manual testing; distill the traces into unit tests. Fix the issues the tests exposed in the
1990         scroll animation code.
1991
1992         * platform/ScrollAnimatorNone.cpp:
1993         (WebCore::ScrollAnimatorNone::PerAxisData::updateDataFromParameters):
1994         (WebCore::ScrollAnimatorNone::scroll):
1995
1996 2011-07-01  Levi Weintraub  <leviw@chromium.org>
1997
1998         Switch primary virtual layout functions to new layout types
1999         https://bugs.webkit.org/show_bug.cgi?id=63852
2000
2001         Reviewed by Eric Seidel.
2002
2003         Switching the primary overloaded layout functions over to the new layout unit abstraction.
2004
2005         No new tests, no functionality changes.
2006
2007         * html/shadow/MediaControlElements.cpp:
2008         (WebCore::RenderMediaVolumeSliderContainer::layout):
2009         * page/FrameView.cpp:
2010         (WebCore::FrameView::layout):
2011         * rendering/AutoTableLayout.cpp:
2012         (WebCore::AutoTableLayout::layout):
2013         * rendering/FixedTableLayout.cpp:
2014         (WebCore::FixedTableLayout::layout):
2015         * rendering/RenderBox.cpp:
2016         (WebCore::RenderBox::layout):
2017         * rendering/RenderFrameSet.cpp:
2018         (WebCore::RenderFrameSet::layout):
2019         * rendering/RenderMedia.cpp:
2020         (WebCore::RenderMedia::layout):
2021         * rendering/RenderRubyRun.cpp:
2022         (WebCore::RenderRubyRun::layout):
2023         * rendering/RenderScrollbarPart.cpp:
2024         (WebCore::RenderScrollbarPart::layout):
2025         * rendering/RenderSlider.cpp:
2026         (WebCore::RenderSlider::layout):
2027         * rendering/RenderTable.cpp:
2028         (WebCore::RenderTable::layout):
2029         * rendering/RenderTableRow.cpp:
2030         (WebCore::RenderTableRow::layout):
2031         * rendering/RenderTableSection.cpp:
2032         (WebCore::RenderTableSection::layout):
2033         * rendering/RenderTextControlSingleLine.cpp:
2034         (WebCore::RenderTextControlSingleLine::layout):
2035         * rendering/RenderView.cpp:
2036         (WebCore::RenderView::layout):
2037         * rendering/RenderView.h:
2038         (WebCore::RenderView::layoutDelta):
2039         (WebCore::RenderView::addLayoutDelta):
2040         * rendering/mathml/RenderMathMLRoot.cpp:
2041         (WebCore::RenderMathMLRoot::layout):
2042         * rendering/mathml/RenderMathMLRow.cpp:
2043         (WebCore::RenderMathMLRow::layout):
2044         * rendering/mathml/RenderMathMLSquareRoot.cpp:
2045         (WebCore::RenderMathMLSquareRoot::layout):
2046         * rendering/mathml/RenderMathMLSubSup.cpp:
2047         (WebCore::RenderMathMLSubSup::layout):
2048         * rendering/mathml/RenderMathMLUnderOver.cpp:
2049         (WebCore::RenderMathMLUnderOver::layout):
2050
2051 2011-07-01  Sam Weinig  <sam@webkit.org>
2052
2053         Reduce parser nesting cap to 512
2054         https://bugs.webkit.org/show_bug.cgi?id=63856
2055
2056         Reviewed by Dan Bernstein.
2057
2058         Given Firefox's cap of 200, our cap of 2048 seemed a little excessive. Lower
2059         the nesting cap to 512 to cover more cases where rending recursion was biting us.
2060
2061         * page/Settings.h:
2062         Reduce the nesting cap to 512.
2063
2064 2011-07-01  Darin Adler  <darin@apple.com>
2065
2066         Add change accidentally left out of last commit.
2067
2068         * rendering/RenderLayerBacking.cpp:
2069         (WebCore::RenderLayerBacking::updateContentsScale): Multiply in the
2070         backing scale.
2071
2072 2011-07-01  Darin Adler  <darin@apple.com>
2073
2074         Consider backing scale when setting up graphics layers
2075         https://bugs.webkit.org/show_bug.cgi?id=63848
2076
2077         Reviewed by Simon Fraser.
2078
2079         * platform/graphics/ca/GraphicsLayerCA.cpp:
2080         (WebCore::GraphicsLayerCA::clampedContentsScaleForScale):
2081         Increased the maximum scale since scale factor can now include
2082         both page contents scale and backing scale.
2083
2084         * rendering/RenderLayerBacking.cpp:
2085         (WebCore::RenderLayerBacking::createGraphicsLayer): Multiply in the
2086         backing scale as well as the page contents scale.
2087         (WebCore::RenderLayerBacking::updateForegroundLayer): Ditto.
2088         (WebCore::RenderLayerBacking::updateMaskLayer): Ditto.
2089         (WebCore::RenderLayerBacking::pageContentsScale): Added.
2090         (WebCore::RenderLayerBacking::backingScale): Added.
2091         * rendering/RenderLayerBacking.h: Added new private functions.
2092
2093 2011-07-01  Adele Peterson  <adele@apple.com>
2094
2095         Reviewed by Darin Adler.
2096
2097         WebCore part of fix for https://bugs.webkit.org/show_bug.cgi?id=63851
2098         <rdar://problem/8981062> Crash when loading a document in an editable WebView that has a subframe with an unstyled body
2099
2100         No new tests.  I tried to make a test in DumpRenderTree with an editable WebView, 
2101         but was unsuccessful in getting the crash to happen in that instance.
2102
2103         * editing/Editor.cpp: (WebCore::Editor::applyEditingStyleToElement): Add a nil check that exits early, in addition to the ASSERT.
2104
2105 2011-07-01  Levi Weintraub  <leviw@chromium.org>
2106
2107         Switch overflow and collapsedMargins to new layout types
2108         https://bugs.webkit.org/show_bug.cgi?id=63840
2109
2110         Reviewed by Eric Seidel.
2111
2112         Switching overflow and collapsedMargins over to the new layout unit abstraction.
2113
2114         Also removing an unused function: blockDirectionOverflow
2115
2116         No new tests, no functionality changes.
2117
2118         * rendering/RenderBlock.cpp:
2119         (WebCore::RenderBlock::collapsedMarginBeforeForChild):
2120         (WebCore::RenderBlock::collapsedMarginAfterForChild):
2121         * rendering/RenderBlock.h:
2122         (WebCore::RenderBlock::collapsedMarginBefore):
2123         (WebCore::RenderBlock::collapsedMarginAfter):
2124         * rendering/RenderBox.cpp:
2125         (WebCore::RenderBox::addOverflowFromChild):
2126         (WebCore::RenderBox::addLayoutOverflow):
2127         (WebCore::RenderBox::addVisualOverflow):
2128         * rendering/RenderBox.h:
2129         (WebCore::RenderBox::layoutOverflowRect):
2130         (WebCore::RenderBox::minYLayoutOverflow):
2131         (WebCore::RenderBox::maxYLayoutOverflow):
2132         (WebCore::RenderBox::minXLayoutOverflow):
2133         (WebCore::RenderBox::maxXLayoutOverflow):
2134         (WebCore::RenderBox::maxLayoutOverflow):
2135         (WebCore::RenderBox::logicalLeftLayoutOverflow):
2136         (WebCore::RenderBox::logicalRightLayoutOverflow):
2137         (WebCore::RenderBox::visualOverflowRect):
2138         (WebCore::RenderBox::minYVisualOverflow):
2139         (WebCore::RenderBox::maxYVisualOverflow):
2140         (WebCore::RenderBox::minXVisualOverflow):
2141         (WebCore::RenderBox::maxXVisualOverflow):
2142         (WebCore::RenderBox::logicalLeftVisualOverflow):
2143         (WebCore::RenderBox::logicalRightVisualOverflow):
2144         (WebCore::RenderBox::addOverflowFromChild):
2145         (WebCore::RenderBox::collapsedMarginBefore):
2146         (WebCore::RenderBox::collapsedMarginAfter):
2147         * rendering/RenderOverflow.h:
2148         (WebCore::RenderOverflow::RenderOverflow):
2149         (WebCore::RenderOverflow::minYLayoutOverflow):
2150         (WebCore::RenderOverflow::maxYLayoutOverflow):
2151         (WebCore::RenderOverflow::minXLayoutOverflow):
2152         (WebCore::RenderOverflow::maxXLayoutOverflow):
2153         (WebCore::RenderOverflow::minYVisualOverflow):
2154         (WebCore::RenderOverflow::maxYVisualOverflow):
2155         (WebCore::RenderOverflow::minXVisualOverflow):
2156         (WebCore::RenderOverflow::maxXVisualOverflow):
2157         (WebCore::RenderOverflow::setMinYLayoutOverflow):
2158         (WebCore::RenderOverflow::setMaxYLayoutOverflow):
2159         (WebCore::RenderOverflow::setMinXLayoutOverflow):
2160         (WebCore::RenderOverflow::setMaxXLayoutOverflow):
2161         (WebCore::RenderOverflow::setMinYVisualOverflow):
2162         (WebCore::RenderOverflow::setMaxYVisualOverflow):
2163         (WebCore::RenderOverflow::setMinXVisualOverflow):
2164         (WebCore::RenderOverflow::setMaxXVisualOverflow):
2165         (WebCore::RenderOverflow::layoutOverflowRect):
2166         (WebCore::RenderOverflow::visualOverflowRect):
2167         (WebCore::RenderOverflow::move):
2168         (WebCore::RenderOverflow::addLayoutOverflow):
2169         (WebCore::RenderOverflow::addVisualOverflow):
2170         (WebCore::RenderOverflow::setLayoutOverflow):
2171         (WebCore::RenderOverflow::setVisualOverflow):
2172         (WebCore::RenderOverflow::resetLayoutOverflow):
2173
2174 2011-07-01  Nate Chapin  <japhet@chromium.org>
2175
2176         Ensure WorkerScriptLoader::notifyFinished() doesn't re-enter.
2177         https://bugs.webkit.org/show_bug.cgi?id=63835
2178
2179         Reviewed by Dmitry Titov.
2180
2181         Test: fast/workers/worker-finish-crash.html
2182
2183         * workers/WorkerScriptLoader.cpp:
2184         (WebCore::WorkerScriptLoader::WorkerScriptLoader):
2185         (WebCore::WorkerScriptLoader::notifyFinished):
2186         * workers/WorkerScriptLoader.h:
2187
2188 2011-07-01  Adrienne Walker  <enne@google.com>
2189
2190         [chromium] Upload root layer textures first so that it is less likely to be skipped
2191         https://bugs.webkit.org/show_bug.cgi?id=63850
2192
2193         Reviewed by James Robinson.
2194
2195         This is a tiny follow-on patch to bug 63760.  If the root layer is not
2196         uploaded first, then it may not have enough space to fit into texture
2197         memory and might be skipped, leaving a blue background.
2198
2199         * platform/graphics/chromium/LayerRendererChromium.cpp:
2200         (WebCore::LayerRendererChromium::updateLayers):
2201
2202 2011-07-01  Mihai Parparita  <mihaip@chromium.org>
2203
2204         Reviewed by Darin Fisher.
2205
2206         location.replace with a hash change does not update the history entry
2207         https://bugs.webkit.org/show_bug.cgi?id=63777
2208
2209         location.replace('#foo') would not update the HistoryItem with the
2210         new URL, thus navigating back to the page would use the previous
2211         URL, even though it had been replaced. Make
2212         HistoryController::updateForSameDocumentNavigation mirror 
2213         HistoryController::replaceState.
2214
2215         Test: fast/history/location-replace-hash.html
2216
2217         * loader/HistoryController.cpp:
2218         (WebCore::HistoryController::updateForSameDocumentNavigation):
2219
2220 2011-07-01  Ryosuke Niwa  <rniwa@webkit.org>
2221
2222         Reviewed by Ojan Vafai.
2223
2224         Move m_isDirectional from FrameSelection to VisibleSelection
2225         https://bugs.webkit.org/show_bug.cgi?id=63473
2226
2227         Move m_isDirectional from FrameSelection to VisibleSelection.
2228
2229         Also fixed a bug that WebKit does not preserve non-directional selection after undo.
2230
2231         Test: editing/selection/directionality-after-undo-replace.html
2232
2233         * WebCore.exp.in: Updated the signature of setSelection.
2234         * editing/FrameSelection.cpp:
2235         (WebCore::FrameSelection::FrameSelection): Removed the call to setIsDirectional.
2236         (WebCore::shouldAlwaysUseDirectionalSelection): Added.
2237         (WebCore::FrameSelection::setSelection): No longer takes DirectionalityPolicy.
2238         Calls setIsDirectional(true) when the platform doesn't support non-directional selection.
2239         Passes align and granularity to setSelection of the base end point as expected.
2240         No longer updates granularity when updating the selection of a different frame.
2241         (WebCore::FrameSelection::willBeModified): Calls VisibleSelection::isDirectional().
2242         (WebCore::FrameSelection::modify): No longer calls trialFrameSelection.setIsDirectional
2243         because the directionality is passed from m_selection automatically.
2244         Also calls shouldAlwaysUseDirectionalSelection.
2245         * editing/FrameSelection.h: Remove m_isDirectional. Make all boolean bit fields.
2246         (WebCore::FrameSelection::setSelection): No longer takes DirectionalityPolicy.
2247         * editing/VisibleSelection.cpp:
2248         (WebCore::VisibleSelection::VisibleSelection): Initializes m_isDirectional to true.
2249         This should be changed to false to fix the bug 60529.
2250         * editing/VisibleSelection.h:
2251         (WebCore::VisibleSelection::isDirectional): Added.
2252         (WebCore::VisibleSelection::setIsDirectional): Added.
2253         * page/EventHandler.cpp:
2254         (WebCore::setNonDirectionalSelectionIfNeeded): Creates a non-directional selection instead of
2255         calling setSelection with MakeNonDirectionalSelection.
2256         (WebCore::EventHandler::handleMousePressEventSingleClick): Remove the call to setIsDirectional
2257         because it already calls setNonDirectionalSelectionIfNeeded.
2258
2259 2011-07-01  Tony Chang  <tony@chromium.org>
2260
2261         cleanup of flexbox and marquee data naming in StyleRareNonInheritedData
2262         https://bugs.webkit.org/show_bug.cgi?id=63827
2263
2264         Reviewed by Ojan Vafai.
2265
2266         * rendering/style/RenderStyle.cpp:
2267         (WebCore::RenderStyle::RenderStyle):
2268         (WebCore::RenderStyle::diff):
2269         * rendering/style/RenderStyle.h:
2270         (WebCore::InheritedFlags::boxAlign):
2271         (WebCore::InheritedFlags::boxFlex):
2272         (WebCore::InheritedFlags::boxFlexGroup):
2273         (WebCore::InheritedFlags::boxLines):
2274         (WebCore::InheritedFlags::boxOrdinalGroup):
2275         (WebCore::InheritedFlags::boxOrient):
2276         (WebCore::InheritedFlags::boxPack):
2277         (WebCore::InheritedFlags::marqueeIncrement):
2278         (WebCore::InheritedFlags::marqueeSpeed):
2279         (WebCore::InheritedFlags::marqueeLoopCount):
2280         (WebCore::InheritedFlags::marqueeBehavior):
2281         (WebCore::InheritedFlags::marqueeDirection):
2282         (WebCore::InheritedFlags::setBoxAlign):
2283         (WebCore::InheritedFlags::setBoxFlex):
2284         (WebCore::InheritedFlags::setBoxFlexGroup):
2285         (WebCore::InheritedFlags::setBoxLines):
2286         (WebCore::InheritedFlags::setBoxOrdinalGroup):
2287         (WebCore::InheritedFlags::setBoxOrient):
2288         (WebCore::InheritedFlags::setBoxPack):
2289         (WebCore::InheritedFlags::setMarqueeIncrement):
2290         (WebCore::InheritedFlags::setMarqueeSpeed):
2291         (WebCore::InheritedFlags::setMarqueeDirection):
2292         (WebCore::InheritedFlags::setMarqueeBehavior):
2293         (WebCore::InheritedFlags::setMarqueeLoopCount):
2294         * rendering/style/StyleRareNonInheritedData.cpp:
2295         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
2296         (WebCore::StyleRareNonInheritedData::operator==):
2297         * rendering/style/StyleRareNonInheritedData.h:
2298             flexibleBox -> m_deprecatedFlexibleBox and marquee to m_marquee
2299
2300 2011-07-01  Mike Reed  <reed@google.com>
2301
2302         Stop using deprecated SkDeviceFactory API
2303         https://bugs.webkit.org/show_bug.cgi?id=63488
2304
2305         Reviewed by James Robinson.
2306
2307         No new tests. Check-point for removing Factory API from Skia
2308
2309         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp:
2310         (WebCore::LayerTextureUpdaterSkPicture::createFrameBuffer):
2311         * platform/graphics/skia/PlatformContextSkia.cpp:
2312         (WebCore::PlatformContextSkia::setSharedGraphicsContext3D):
2313
2314 2011-07-01  Jeffrey Pfau  <jpfau@apple.com>
2315
2316         Reviewed by Adam Barth.
2317
2318         Move XMLDocumentParser to new folder xml/parser/
2319         https://bugs.webkit.org/show_bug.cgi?id=63666
2320
2321         * CMakeLists.txt:
2322         * GNUmakefile.am:
2323         * GNUmakefile.list.am:
2324         * WebCore.gyp/WebCore.gyp:
2325         * WebCore.gypi:
2326         * WebCore.pri:
2327         * WebCore.pro:
2328         * WebCore.vcproj/WebCore.vcproj:
2329         * WebCore.vcproj/WebCoreCommon.vsprops:
2330         * WebCore.vcproj/copyForwardingHeaders.cmd:
2331         * WebCore.xcodeproj/project.pbxproj:
2332         * xml/parser/XMLDocumentParser.cpp:
2333         (WebCore::XMLDocumentParser::pushCurrentNode):
2334         (WebCore::XMLDocumentParser::popCurrentNode):
2335         (WebCore::XMLDocumentParser::clearCurrentNodeStack):
2336         (WebCore::XMLDocumentParser::insert):
2337         (WebCore::XMLDocumentParser::append):
2338         (WebCore::XMLDocumentParser::handleError):
2339         (WebCore::XMLDocumentParser::enterText):
2340         (WebCore::toString):
2341         (WebCore::XMLDocumentParser::exitText):
2342         (WebCore::XMLDocumentParser::detach):
2343         (WebCore::XMLDocumentParser::end):
2344         (WebCore::XMLDocumentParser::finish):
2345         (WebCore::XMLDocumentParser::finishWasCalled):
2346         (WebCore::createXHTMLParserErrorHeader):
2347         (WebCore::XMLDocumentParser::insertErrorMessageBlock):
2348         (WebCore::XMLDocumentParser::notifyFinished):
2349         (WebCore::XMLDocumentParser::isWaitingForScripts):
2350         (WebCore::XMLDocumentParser::pauseParsing):
2351         (WebCore::XMLDocumentParser::parseDocumentFragment):
2352         * xml/parser/XMLDocumentParser.h:
2353         (WebCore::XMLParserContext::context):
2354         (WebCore::XMLParserContext::XMLParserContext):
2355         (WebCore::XMLDocumentParser::create):
2356         (WebCore::XMLDocumentParser::setIsXHTMLDocument):
2357         (WebCore::XMLDocumentParser::isXHTMLDocument):
2358         (WebCore::XMLDocumentParser::setIsXHTMLMPDocument):
2359         (WebCore::XMLDocumentParser::isXHTMLMPDocument):
2360         (WebCore::XMLDocumentParser::wellFormed):
2361         (WebCore::XMLDocumentParser::context):
2362         * xml/parser/XMLDocumentParserLibxml2.cpp:
2363         (WebCore::PendingCallbacks::~PendingCallbacks):
2364         (WebCore::PendingCallbacks::create):
2365         (WebCore::PendingCallbacks::appendStartElementNSCallback):
2366         (WebCore::PendingCallbacks::appendEndElementNSCallback):
2367         (WebCore::PendingCallbacks::appendCharactersCallback):
2368         (WebCore::PendingCallbacks::appendProcessingInstructionCallback):
2369         (WebCore::PendingCallbacks::appendCDATABlockCallback):
2370         (WebCore::PendingCallbacks::appendCommentCallback):
2371         (WebCore::PendingCallbacks::appendInternalSubsetCallback):
2372         (WebCore::PendingCallbacks::appendErrorCallback):
2373         (WebCore::PendingCallbacks::callAndRemoveFirstCallback):
2374         (WebCore::PendingCallbacks::isEmpty):
2375         (WebCore::PendingCallbacks::PendingCallbacks):
2376         (WebCore::PendingCallbacks::PendingCallback::~PendingCallback):
2377         (WebCore::PendingCallbacks::PendingStartElementNSCallback::~PendingStartElementNSCallback):
2378         (WebCore::PendingCallbacks::PendingStartElementNSCallback::call):
2379         (WebCore::PendingCallbacks::PendingEndElementNSCallback::call):
2380         (WebCore::PendingCallbacks::PendingCharactersCallback::~PendingCharactersCallback):
2381         (WebCore::PendingCallbacks::PendingCharactersCallback::call):
2382         (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::~PendingProcessingInstructionCallback):
2383         (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::call):
2384         (WebCore::PendingCallbacks::PendingCDATABlockCallback::~PendingCDATABlockCallback):
2385         (WebCore::PendingCallbacks::PendingCDATABlockCallback::call):
2386         (WebCore::PendingCallbacks::PendingCommentCallback::~PendingCommentCallback):
2387         (WebCore::PendingCallbacks::PendingCommentCallback::call):
2388         (WebCore::PendingCallbacks::PendingInternalSubsetCallback::~PendingInternalSubsetCallback):
2389         (WebCore::PendingCallbacks::PendingInternalSubsetCallback::call):
2390         (WebCore::matchFunc):
2391         (WebCore::OffsetBuffer::OffsetBuffer):
2392         (WebCore::OffsetBuffer::readOutBytes):
2393         (WebCore::switchToUTF16):
2394         (WebCore::shouldAllowExternalLoad):
2395         (WebCore::openFunc):
2396         (WebCore::readFunc):
2397         (WebCore::writeFunc):
2398         (WebCore::closeFunc):
2399         (WebCore::errorFunc):
2400         (WebCore::XMLParserContext::createStringParser):
2401         (WebCore::XMLParserContext::createMemoryParser):
2402         (WebCore::XMLDocumentParser::supportsXMLVersion):
2403         (WebCore::XMLDocumentParser::XMLDocumentParser):
2404         (WebCore::XMLParserContext::~XMLParserContext):
2405         (WebCore::XMLDocumentParser::~XMLDocumentParser):
2406         (WebCore::XMLDocumentParser::doWrite):
2407         (WebCore::toString):
2408         (WebCore::toAtomicString):
2409         (WebCore::handleElementNamespaces):
2410         (WebCore::handleElementAttributes):
2411         (WebCore::XMLDocumentParser::startElementNs):
2412         (WebCore::XMLDocumentParser::endElementNs):
2413         (WebCore::XMLDocumentParser::characters):
2414         (WebCore::XMLDocumentParser::error):
2415         (WebCore::XMLDocumentParser::processingInstruction):
2416         (WebCore::XMLDocumentParser::cdataBlock):
2417         (WebCore::XMLDocumentParser::comment):
2418         (WebCore::XMLDocumentParser::startDocument):
2419         (WebCore::XMLDocumentParser::endDocument):
2420         (WebCore::XMLDocumentParser::internalSubset):
2421         (WebCore::getParser):
2422         (WebCore::hackAroundLibXMLEntityBug):
2423         (WebCore::startElementNsHandler):
2424         (WebCore::endElementNsHandler):
2425         (WebCore::charactersHandler):
2426         (WebCore::processingInstructionHandler):
2427         (WebCore::cdataBlockHandler):
2428         (WebCore::commentHandler):
2429         (WebCore::warningHandler):
2430         (WebCore::fatalErrorHandler):
2431         (WebCore::normalErrorHandler):
2432         (WebCore::sharedXHTMLEntity):
2433         (WebCore::getXHTMLEntity):
2434         (WebCore::getEntityHandler):
2435         (WebCore::startDocumentHandler):
2436         (WebCore::endDocumentHandler):
2437         (WebCore::internalSubsetHandler):
2438         (WebCore::externalSubsetHandler):
2439         (WebCore::ignorableWhitespaceHandler):
2440         (WebCore::XMLDocumentParser::initializeParserContext):
2441         (WebCore::XMLDocumentParser::doEnd):
2442         (WebCore::xmlDocPtrForString):
2443         (WebCore::XMLDocumentParser::lineNumber):
2444         (WebCore::XMLDocumentParser::columnNumber):
2445         (WebCore::XMLDocumentParser::textPosition):
2446         (WebCore::XMLDocumentParser::textPositionOneBased):
2447         (WebCore::XMLDocumentParser::stopParsing):
2448         (WebCore::XMLDocumentParser::resumeParsing):
2449         (WebCore::XMLDocumentParser::appendFragmentSource):
2450         (WebCore::attributesStartElementNsHandler):
2451         (WebCore::parseAttributes):
2452         * xml/parser/XMLDocumentParserQt.cpp:
2453         (WebCore::EntityResolver::resolveUndeclaredEntity):
2454         (WebCore::XMLDocumentParser::supportsXMLVersion):
2455         (WebCore::XMLDocumentParser::XMLDocumentParser):
2456         (WebCore::XMLDocumentParser::~XMLDocumentParser):
2457         (WebCore::XMLDocumentParser::doWrite):
2458         (WebCore::XMLDocumentParser::initializeParserContext):
2459         (WebCore::XMLDocumentParser::doEnd):
2460         (WebCore::XMLDocumentParser::lineNumber):
2461         (WebCore::XMLDocumentParser::columnNumber):
2462         (WebCore::XMLDocumentParser::textPosition):
2463         (WebCore::XMLDocumentParser::textPositionOneBased):
2464         (WebCore::XMLDocumentParser::stopParsing):
2465         (WebCore::XMLDocumentParser::resumeParsing):
2466         (WebCore::XMLDocumentParser::appendFragmentSource):
2467         (WebCore::attributesStartElementNsHandler):
2468         (WebCore::parseAttributes):
2469         (WebCore::prefixFromQName):
2470         (WebCore::handleElementNamespaces):
2471         (WebCore::handleElementAttributes):
2472         (WebCore::XMLDocumentParser::parse):
2473         (WebCore::XMLDocumentParser::startDocument):
2474         (WebCore::XMLDocumentParser::parseStartElement):
2475         (WebCore::XMLDocumentParser::parseEndElement):
2476         (WebCore::XMLDocumentParser::parseCharacters):
2477         (WebCore::XMLDocumentParser::parseProcessingInstruction):
2478         (WebCore::XMLDocumentParser::parseCdata):
2479         (WebCore::XMLDocumentParser::parseComment):
2480         (WebCore::XMLDocumentParser::endDocument):
2481         (WebCore::XMLDocumentParser::hasError):
2482         (WebCore::XMLDocumentParser::parseDtd):
2483         * xml/parser/XMLDocumentParserScope.cpp:
2484         (WebCore::XMLDocumentParserScope::XMLDocumentParserScope):
2485         (WebCore::XMLDocumentParserScope::~XMLDocumentParserScope):
2486
2487 2011-07-01  Vangelis Kokkevis  <vangelis@chromium.org>
2488
2489         Reviewed by James Robinson.
2490
2491         [chromium] Reserve all tile textures at layer update time to guarantee
2492         that they will be available at draw time.
2493         https://bugs.webkit.org/show_bug.cgi?id=63760
2494
2495         In addition, this patch unreserves textures used by RenderSurface's
2496         right after the RenderSurface has been used to free up memory for
2497         subsequent RenderSurfaces.
2498         
2499         This patch also "fixes" the pages that display a blue background when
2500         running out of texture memory as the root layer tiles get reserved first
2501         and are guaranteed to get textures.
2502
2503         * platform/graphics/chromium/ContentLayerChromium.cpp:
2504         (WebCore::ContentLayerChromium::ContentLayerChromium):
2505         (WebCore::ContentLayerChromium::visibleLayerRect):
2506         (WebCore::ContentLayerChromium::setIsMask):
2507         * platform/graphics/chromium/ContentLayerChromium.h:
2508         * platform/graphics/chromium/ImageLayerChromium.cpp:
2509         (WebCore::ImageLayerChromium::paintContentsIfDirty):
2510         * platform/graphics/chromium/LayerRendererChromium.cpp:
2511         (WebCore::LayerRendererChromium::paintLayerContents):
2512         (WebCore::LayerRendererChromium::drawLayer):
2513         (WebCore::LayerRendererChromium::initializeSharedObjects):
2514         * platform/graphics/chromium/LayerTexture.cpp:
2515         (WebCore::LayerTexture::unreserve):
2516         * platform/graphics/chromium/LayerTexture.h:
2517         * platform/graphics/chromium/LayerTilerChromium.cpp:
2518         (WebCore::LayerTilerChromium::prepareToUpdate):
2519         (WebCore::LayerTilerChromium::updateRect):
2520         (WebCore::LayerTilerChromium::drawTiles):
2521         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
2522         (WebCore::RenderSurfaceChromium::releaseContentsTexture):
2523         * platform/graphics/chromium/RenderSurfaceChromium.h:
2524         * platform/graphics/chromium/TextureManager.cpp:
2525         (WebCore::TextureManager::unprotectTexture):
2526         * platform/graphics/chromium/TextureManager.h:
2527
2528 2011-07-01  Jungshik Shin  <jshin@chromium.org>
2529
2530         Reviewed by Alexey Proskuryakov.
2531
2532         Allow generic font family settings per script code.
2533         https://bugs.webkit.org/show_bug.cgi?id=20797
2534
2535         Make generic font family getters/setters accept an additional
2536         argument (script code). It has a default value so that if an embedder
2537         does not have/want a per-script font family setting, call-sites
2538         don't have to be changed.
2539         This is to prepare for fixing bug 10874 (font selection is not
2540         language-dependent) and bug 18085.
2541
2542         uscript.h has been updated to that of ICU 3.6 (the version of ICU on
2543         Mac OS 10.5)
2544
2545         There should be no change in layout and no new layout test
2546         is added.
2547
2548         * WebCore.exp.in:
2549         * icu/unicode/uscript.h: updated to ICU 4.6
2550         * page/Settings.cpp:
2551         (WebCore::setGenericFontFamilyMap): helper to set generic family per script
2552         (WebCore::getGenericFontFamilyForScript): helper function used by getters for fooFontFamily.
2553         (WebCore::Settings::standardFontFamily):
2554         (WebCore::Settings::setStandardFontFamily):
2555         (WebCore::Settings::fixedFontFamily):
2556         (WebCore::Settings::setFixedFontFamily):
2557         (WebCore::Settings::serifFontFamily):
2558         (WebCore::Settings::setSerifFontFamily):
2559         (WebCore::Settings::sansSerifFontFamily):
2560         (WebCore::Settings::setSansSerifFontFamily):
2561         (WebCore::Settings::cursiveFontFamily):
2562         (WebCore::Settings::setCursiveFontFamily):
2563         (WebCore::Settings::fantasyFontFamily):
2564         (WebCore::Settings::setFantasyFontFamily):
2565         * page/Settings.h: setter and getter for FooFontFamily have a new optional argument, scriptCode.
2566
2567 2011-07-01  Tony Chang  <tony@chromium.org>
2568
2569         Reviewed by Ojan Vafai.
2570
2571         rename StyleFlexibleBoxData to StyleDeprecatedFlexibleBoxData
2572         https://bugs.webkit.org/show_bug.cgi?id=63773
2573
2574         We will have a similar struct to hold CSS3 flexible box data, so
2575         this makes way for the new class.
2576         I will rename the member variable in RenderStyle.h in a follow up
2577         change.
2578
2579         * CMakeLists.txt:
2580         * GNUmakefile.list.am:
2581         * WebCore.gypi:
2582         * WebCore.order:
2583         * WebCore.pro:
2584         * WebCore.vcproj/WebCore.vcproj:
2585         * WebCore.xcodeproj/project.pbxproj:
2586         * rendering/style/RenderStyle.h:
2587         * rendering/style/StyleAllInOne.cpp:
2588         * rendering/style/StyleDeprecatedFlexibleBoxData.cpp:
2589         (WebCore::StyleDeprecatedFlexibleBoxData::StyleDeprecatedFlexibleBoxData):
2590         (WebCore::StyleDeprecatedFlexibleBoxData::operator==):
2591         * rendering/style/StyleDeprecatedFlexibleBoxData.h:
2592         (WebCore::StyleDeprecatedFlexibleBoxData::create):
2593         (WebCore::StyleDeprecatedFlexibleBoxData::copy):
2594         (WebCore::StyleDeprecatedFlexibleBoxData::operator!=):
2595         * rendering/style/StyleRareNonInheritedData.h:
2596
2597 2011-07-01  Hans Wennborg  <hans@chromium.org>
2598
2599         Reviewed by Tony Chang.
2600
2601         IndexedDB: Fix constants for webkitIDBTransaction.READ_WRITE/READ_ONLY
2602         https://bugs.webkit.org/show_bug.cgi?id=63754
2603
2604         Fix values for the webkitIDBTransaction.READ_WRITE/READ_ONLY
2605         constants. Douglas Stockwell pointed out that these were reverse
2606         of what the spec says.
2607
2608         * storage/IDBTransaction.h:
2609         * storage/IDBTransaction.idl:
2610
2611 2011-07-01  Levi Weintraub  <leviw@chromium.org>
2612
2613         Reviewed by Eric Seidel.
2614
2615         Switch positionForPoint to new layout types
2616         https://bugs.webkit.org/show_bug.cgi?id=63774
2617
2618         Switching positionForPoint functions to new layout unit abstraction.
2619
2620         No new tests, no functionality changes.
2621
2622         * rendering/RenderBR.cpp:
2623         (WebCore::RenderBR::positionForPoint):
2624         * rendering/RenderBR.h:
2625         * rendering/RenderBlock.cpp:
2626         (WebCore::RenderBlock::positionForPoint):
2627         * rendering/RenderBlock.h:
2628         * rendering/RenderBox.cpp:
2629         (WebCore::RenderBox::positionForPoint):
2630         * rendering/RenderBox.h:
2631         * rendering/RenderFileUploadControl.cpp:
2632         (WebCore::RenderFileUploadControl::positionForPoint):
2633         * rendering/RenderFileUploadControl.h:
2634         * rendering/RenderInline.cpp:
2635         (WebCore::RenderInline::positionForPoint):
2636         * rendering/RenderInline.h:
2637         * rendering/RenderObject.cpp:
2638         (WebCore::RenderObject::positionForPoint):
2639         * rendering/RenderReplaced.cpp:
2640         (WebCore::RenderReplaced::positionForPoint):
2641         * rendering/RenderReplaced.h:
2642         * rendering/RenderText.cpp:
2643         (WebCore::RenderText::positionForPoint):
2644         * rendering/RenderText.h:
2645         * rendering/RenderTextControlSingleLine.cpp:
2646         (WebCore::RenderTextControlInnerBlock::positionForPoint):
2647         * rendering/RenderTextControlSingleLine.h:
2648         * rendering/svg/RenderSVGInlineText.cpp:
2649         (WebCore::RenderSVGInlineText::positionForPoint):
2650         * rendering/svg/RenderSVGInlineText.h:
2651         * rendering/svg/RenderSVGText.cpp:
2652         (WebCore::RenderSVGText::positionForPoint):
2653         * rendering/svg/RenderSVGText.h:
2654
2655 2011-07-01  Andrew Scherkus  <scherkus@chromium.org>
2656
2657         Reviewed by Darin Fisher.
2658
2659         Re-enable WTF_USE_WEBAUDIO_FFMPEG for Chromium
2660         https://bugs.webkit.org/show_bug.cgi?id=63783
2661
2662         * WebCore.gyp/WebCore.gyp:
2663
2664 2011-07-01  Patrick Gansterer  <paroga@webkit.org>
2665
2666         Reviewed by Daniel Bates.
2667
2668         [CMake] Don't compile unused bindings
2669         https://bugs.webkit.org/show_bug.cgi?id=63741
2670
2671         * UseJSC.cmake: Added IF (ENABLE_XXX) around files.
2672
2673 2011-07-01  Joone Hur  <joone.hur@collabora.co.uk>
2674
2675         Reviewed by Martin Robinson.
2676
2677         [GTK] Add DeviceOrientation feature
2678         https://bugs.webkit.org/show_bug.cgi?id=63720
2679
2680         Add DeviceMotionClientGtk.cpp and DeviceOrientationClientGtk.cpp to WebKitGtk+ build.
2681
2682         * GNUmakefile.am: Add DeviceMotionClientGtk.cpp, DeviceOrientationClientGtk.cpp.
2683
2684 2011-07-01  Kentaro Hara  <haraken@google.com>
2685
2686         Reviewed by Kent Tamura.
2687
2688         Disallow clicking an [X] button in 'search' input forms when 'disabled' attribute or 'readonly' attribute is set.
2689         https://bugs.webkit.org/show_bug.cgi?id=63709
2690
2691         Ignore a cancel button event on a 'search' input form if 'disabled' attribute or
2692         'readonly' attribute is set to the input form.
2693
2694         Test: fast/forms/search-disabled-readonly.html
2695
2696         * html/shadow/TextControlInnerElements.cpp:
2697         (WebCore::SearchFieldCancelButtonElement::defaultEventHandler):
2698
2699 2011-06-30  Mikhail Naganov  <mnaganov@chromium.org>
2700
2701         Reviewed by Yury Semikhatsky.
2702
2703         Web Inspector: [Chromium] Fix heap snapshots in a remote debugging session from Safari.
2704         https://bugs.webkit.org/show_bug.cgi?id=63703
2705
2706         * inspector/front-end/HeapSnapshotWorker.js:
2707         (.Function.prototype.bind.return.bound):
2708         (.Function.prototype.bind):
2709
2710 2011-07-01  Dirk Schulze  <krit@webkit.org>
2711
2712         Reviewed by Nikolas Zimmermann.
2713
2714         SVGAnimatedLengthListAnimator does not take additive="sum" into accout
2715         https://bugs.webkit.org/show_bug.cgi?id=63705
2716
2717         Added support for additive animations to SVGAnimatedLengthListAnimator. Don't clear the animatedList if not
2718         necessary.
2719
2720         SVGLength unit gets animated as well now. We used to take the unit of 'from' all the time.
2721
2722         Tests: svg/animations/svglength-animation-unitType.html
2723                svg/animations/svglengthlist-animation-5.html
2724
2725         * svg/SVGAnimatedLength.cpp:
2726         (WebCore::SVGAnimatedLengthAnimator::calculateAnimatedValue): Code clean-up and support for unit animation.
2727         * svg/SVGAnimatedLengthList.cpp: Add support for additive animations.
2728         (WebCore::SVGAnimatedLengthListAnimator::calculateAnimatedValue):
2729         * svg/SVGLength.cpp:
2730         (WebCore::SVGLength::SVGLength):
2731         (WebCore::SVGLength::setValue): New setValue that gets the LengthType and UnitType as argument for supporting animations of units as well.
2732         * svg/SVGLength.h:
2733
2734 2011-07-01  Dirk Schulze  <krit@webkit.org>
2735
2736         Reviewed by Nikolas Zimmermann.
2737
2738         SVGAnimatedType should support SVGAnimatedInteger animation
2739         https://bugs.webkit.org/show_bug.cgi?id=63789
2740         
2741         Follow up of "SVGAnimation should use direct unit animation for SVGLength": https://bugs.webkit.org/show_bug.cgi?id=61368
2742         This patch continues the conversion to the new concept of SVGAnimatorFactory with SVGAnimatedInteger.
2743         
2744         SVGAnimatedInteger is used for some attributes of SVG filter effects. The animation of those attributes work after this patch.
2745
2746         Test: svg/animations/svginteger-animation-1.html
2747
2748         * CMakeLists.txt: Added file to build system.
2749         * GNUmakefile.list.am: Ditto.
2750         * WebCore.gypi: Ditto.
2751         * WebCore.pro: Ditto.
2752         * WebCore.xcodeproj/project.pbxproj: Ditto.
2753         * svg/SVGAllInOne.cpp: Ditto.
2754         * svg/SVGAnimateElement.cpp: Make use of AnimatedInteger.
2755         (WebCore::SVGAnimateElement::determineAnimatedAttributeType):
2756         (WebCore::SVGAnimateElement::calculateAnimatedValue):
2757         (WebCore::SVGAnimateElement::calculateFromAndToValues):
2758         (WebCore::SVGAnimateElement::calculateFromAndByValues):
2759         (WebCore::SVGAnimateElement::resetToBaseValue):
2760         (WebCore::SVGAnimateElement::applyResultsToTarget):
2761         (WebCore::SVGAnimateElement::calculateDistance):
2762         * svg/SVGAnimatedInteger.cpp: Added. The new animator for SVGAnimatedInteger.
2763         (WebCore::SVGAnimatedIntegerAnimator::SVGAnimatedIntegerAnimator):
2764         (WebCore::SVGAnimatedIntegerAnimator::constructFromString):
2765         (WebCore::SVGAnimatedIntegerAnimator::calculateFromAndToValues):
2766         (WebCore::SVGAnimatedIntegerAnimator::calculateFromAndByValues):
2767         (WebCore::SVGAnimatedIntegerAnimator::calculateAnimatedValue):
2768         (WebCore::SVGAnimatedIntegerAnimator::calculateDistance):
2769         * svg/SVGAnimatedInteger.h:
2770         (WebCore::SVGAnimatedIntegerAnimator::~SVGAnimatedIntegerAnimator):
2771         * svg/SVGAnimatedType.cpp: Added handler for AnimatedInteger.
2772         (WebCore::SVGAnimatedType::~SVGAnimatedType):
2773         (WebCore::SVGAnimatedType::createInteger):
2774         (WebCore::SVGAnimatedType::integer):
2775         (WebCore::SVGAnimatedType::valueAsString):
2776         (WebCore::SVGAnimatedType::setValueAsString):
2777         * svg/SVGAnimatedType.h:
2778         * svg/SVGAnimatorFactory.h:
2779         (WebCore::SVGAnimatorFactory::create):
2780
2781 2011-06-30  Eugene Klyuchnikov  <eustas.bug@gmail.com>
2782
2783         Reviewed by Pavel Feldman.
2784
2785         WebInspector: Performance / memory allocation issue in WebInspector.TextEditorModel.prototype._replaceTabsIfNeeded
2786         https://bugs.webkit.org/show_bug.cgi?id=40447
2787
2788         Test: inspector/editor/text-editor-model-replace-tabs.html
2789
2790         * inspector/front-end/TextEditorModel.js:
2791         (WebInspector.TextEditorModel.prototype._replaceTabsIfNeeded): avoid looped production of tail substrings 
2792
2793 2011-06-30  Kent Tamura  <tkent@chromium.org>
2794
2795         Reviewed by Tony Chang.
2796
2797         [Chromium] Input type="range" slider thumb is rendered upside down on Mac OS X.
2798         https://bugs.webkit.org/show_bug.cgi?id=63697
2799
2800         http://trac.webkit.org/changeset/86261 added a thumb flipping code
2801         for Mac-WebKit2. Chromium also needs it.
2802
2803         * rendering/RenderThemeMac.mm:
2804         (WebCore::RenderThemeMac::paintSliderThumb): Always flip vertically on Chromium.
2805
2806 2011-06-30  Kenichi Ishibashi  <bashi@chromium.org>
2807
2808         Reviewed by Simon Fraser.
2809
2810         [Chromium] -webkit-text-stroke doesn't affect with non-zero width border property
2811         https://bugs.webkit.org/show_bug.cgi?id=63698
2812
2813         Restore the stroke style when it is modified in RenderObject::drawLineForBoxSide() to show text stroke correctly.
2814
2815         Test: platform/chromium/fast/text/text-stroke-with-border.html
2816
2817         * rendering/RenderObject.cpp:
2818         (WebCore::RenderObject::drawLineForBoxSide): Save/restore the stroke style.
2819
2820 2011-06-30  Gwang Yoon Hwang  <ryumiel@company100.net>
2821
2822         Reviewed by Nate Chapin.
2823
2824         [V8] Add ENABLE(INSPECTOR) guards around v8 custom bindings.
2825         https://bugs.webkit.org/show_bug.cgi?id=63442
2826
2827         No new tests needed.
2828
2829         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
2830         * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:
2831
2832 2011-06-30  Levi Weintraub  <leviw@chromium.org>
2833
2834         Reviewed by Eric Seidel.
2835
2836         Remove positionForCoordinates
2837         https://bugs.webkit.org/show_bug.cgi?id=63765
2838
2839         Removing positionForCoordinate. We should always use positionForPoint. Also cleaning up
2840         RenderBox's implementation of positionForPoint.
2841
2842         No new tests, there should be no functionality changes.
2843
2844         * accessibility/AccessibilityRenderObject.cpp:
2845         (WebCore::AccessibilityRenderObject::stringValue): Removing dead, or at least untested, code and
2846         adding an ASSERT_NOT_REACHED.
2847         (WebCore::AccessibilityRenderObject::visiblePositionRangeForLine):
2848         * rendering/RenderBox.cpp:
2849         (WebCore::RenderBox::positionForPoint): cleaning up some ugly code.
2850         * rendering/RenderInline.cpp:
2851         (WebCore::RenderInline::positionForPoint):
2852         * rendering/RenderObject.cpp:
2853         * rendering/RenderObject.h:
2854
2855 2011-06-30  Zhenyao Mo  <zmo@google.com>
2856
2857         Reviewed by Kenneth Russell.
2858
2859         Improve WebGL object lifetime management in WebGLRenderingContext
2860         https://bugs.webkit.org/show_bug.cgi?id=63635
2861
2862         * html/canvas/WebGLRenderingContext.cpp:
2863         (WebCore::WebGLRenderingContext::getAttachedShaders): Use cached objects instead of querying the underlying GL.
2864         (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter): Ditto.
2865         (WebCore::WebGLRenderingContext::detachAndRemoveAllObjects): Multiple loop because objects might be removed from the table within an iteration.
2866         * html/canvas/WebGLRenderingContext.h:
2867
2868 2011-06-30  Rafael Brandao  <rafael.lobo@openbossa.org>
2869
2870         Reviewed by Andreas Kling.
2871
2872         [Qt] build-webkit warning: cannot find file ElementShadowPseudoId.h
2873         https://bugs.webkit.org/show_bug.cgi?id=63747
2874
2875         Removed reference to ElementShadowPseudoId.h that no longer exists.
2876
2877         * WebCore.pro:
2878
2879 2011-06-30  Anders Carlsson  <andersca@apple.com>
2880
2881         Fix clang build.
2882
2883         Remove the complete Widget constructor from the .exp.in file; since Widget is an abstract class,
2884         its complete constructor can never be called and clang has stopped emitting it altogether.
2885
2886         * WebCore.exp.in:
2887
2888 2011-06-30  Levi Weintraub  <leviw@chromium.org>
2889
2890         Reviewed by Eric Seidel.
2891
2892         Switch paintingRootRect and RenderObject repaint methods to new layout types
2893         https://bugs.webkit.org/show_bug.cgi?id=63746
2894
2895         Switching paintingRootRect and RenderObject repaint functions over to the
2896         new layout unit abstraction.
2897
2898         No new tests, no functionality changes.
2899
2900         * rendering/RenderBox.cpp:
2901         (WebCore::RenderBox::repaintDuringLayoutIfMoved):
2902         * rendering/RenderBox.h:
2903         * rendering/RenderObject.cpp:
2904         (WebCore::RenderObject::paintingRootRect):
2905         (WebCore::RenderObject::paint):
2906         (WebCore::RenderObject::repaintUsingContainer):
2907         (WebCore::RenderObject::repaintRectangle):
2908         (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
2909         (WebCore::RenderObject::repaintDuringLayoutIfMoved):
2910         * rendering/RenderObject.h:
2911
2912 2011-06-30  Cary Clark  <caryclark@google.com>
2913
2914         Reviewed by James Robinson.
2915
2916         Use Skia if Skia on Mac Chrome is enabled
2917         https://bugs.webkit.org/show_bug.cgi?id=62999
2918
2919         No new tests. This does not affect existing
2920         functionality.
2921
2922         * WebCore.gyp/WebCore.gyp:
2923         Include Skia and related files and exclude CG
2924         and related files when building Chromium for Skia
2925         on the Mac.
2926
2927         * loader/cache/CachedFont.cpp:
2928         Rename CHROME to CHROMIUM.
2929
2930         * platform/chromium/DragImageRef.h:
2931         * platform/graphics/FloatPoint.h:
2932         * platform/graphics/FloatRect.h:
2933         * platform/graphics/FloatSize.h:
2934         * platform/graphics/FontPlatformData.h:
2935         (WebCore::FontPlatformData::hash):
2936         * platform/graphics/GlyphBuffer.h:
2937         (WebCore::GlyphBuffer::advanceAt):
2938         (WebCore::GlyphBuffer::add):
2939         (WebCore::GlyphBuffer::expandLastAdvance):
2940         * platform/graphics/IntPoint.h:
2941         * platform/graphics/IntRect.h:
2942         * platform/graphics/IntSize.h:
2943         * platform/graphics/SimpleFontData.h:
2944         * platform/graphics/cg/FloatPointCG.cpp:
2945         * platform/graphics/cg/FloatRectCG.cpp:
2946         * platform/graphics/cg/FloatSizeCG.cpp:
2947         * platform/graphics/cg/IntPointCG.cpp:
2948         * platform/graphics/cg/IntRectCG.cpp:
2949         * platform/graphics/cg/IntSizeCG.cpp:
2950         * platform/graphics/mac/FontCustomPlatformData.cpp:
2951         (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
2952         (WebCore::createFontCustomPlatformData):
2953         * platform/graphics/mac/FontCustomPlatformData.h:
2954         (WebCore::FontCustomPlatformData::FontCustomPlatformData):
2955         Ditto.
2956
2957 2011-06-30  Julien Chaffraix  <jchaffraix@webkit.org>
2958
2959         Reviewed by Nikolas Zimmermann.
2960
2961         Update SVG position values on SVG DOM updates
2962         https://bugs.webkit.org/show_bug.cgi?id=62439
2963
2964         Test: svg/custom/crash-textPath-attributes.html
2965
2966         * rendering/svg/RenderSVGInline.cpp:
2967         (WebCore::RenderSVGInline::destroy): Notify our containing RenderSVGText that it needs
2968         to update its positioning information.
2969
2970         * rendering/svg/SVGInlineFlowBox.cpp:
2971         (WebCore::SVGInlineFlowBox::calculateBoundaries): Check the type of the InlineBox
2972         like the rest of the code (fixes an ASSERT_NOT_REACHED in InlineBox::calculateBoudaries).
2973
2974         * rendering/svg/SVGTextLayoutAttributesBuilder.cpp:
2975         (WebCore::SVGTextLayoutAttributesBuilder::buildLayoutAttributesForTextSubtree): Clear
2976         our cached layout attributes every time we invalidate them. This avoids keeping stale
2977         attribute that have a backpointer to a RenderObject.
2978
2979 2011-06-30  Sreeram Ramachandran  <sreeram@chromium.org>
2980
2981         Reviewed by Adam Barth.
2982
2983         Suppress modal JavaScript/HTML dialogs during unload events
2984         https://bugs.webkit.org/show_bug.cgi?id=56397
2985
2986         Allows clients to specify whether to show alerts during unload handlers.
2987         When checking for whether a page dismissal event is being dispatched,
2988         it's important to check all frames on the page (otherwise it becomes a
2989         loophole easily exploited).
2990
2991         Test: fast/loader/page-dismissal-modal-dialogs.html
2992
2993         * loader/FrameLoader.cpp:
2994         (WebCore::FrameLoader::FrameLoader):
2995         (WebCore::FrameLoader::stopLoading):
2996         (WebCore::FrameLoader::loadURL):
2997         (WebCore::FrameLoader::loadWithDocumentLoader):
2998         (WebCore::FrameLoader::stopAllLoaders):
2999         (WebCore::FrameLoader::fireBeforeUnloadEvent):
3000         * loader/FrameLoader.h:
3001         (WebCore::FrameLoader::pageDismissalEventBeingDispatched):
3002         * loader/cache/CachedResourceLoader.cpp:
3003         (WebCore::CachedResourceLoader::requestImage):
3004         * page/Chrome.cpp:
3005         (WebCore::canRunModalIfDuringPageDismissal):
3006         (WebCore::Chrome::canRunModalNow):
3007         (WebCore::Chrome::runJavaScriptAlert):
3008         (WebCore::Chrome::runJavaScriptConfirm):
3009         (WebCore::Chrome::runJavaScriptPrompt):
3010         * page/Chrome.h:
3011         * page/ChromeClient.h:
3012         (WebCore::ChromeClient::shouldRunModalDialogDuringPageDismissal):
3013         * page/DOMWindow.cpp:
3014         (WebCore::DOMWindow::showModalDialog):
3015
3016 2011-06-30  Julien Chaffraix  <jchaffraix@webkit.org>
3017
3018         Reviewed by Nikolas Zimmermann.
3019
3020         Assertion failure in RenderSVGInlineText::characterStartsNewTextChunk
3021         https://bugs.webkit.org/show_bug.cgi?id=63076
3022
3023         Tests: svg/custom/crash-text-in-textpath.svg
3024                svg/custom/text-node-in-text-invalidated.svg
3025
3026         The problem was that we did not call setNeedsPositionUpdate on RenderSVGText. When
3027         doing our layout, we would not update the attributes on our SVGRenderInlineText as
3028         we would not lay it out.
3029
3030         This was caused by childrenChanged being overridden on SVGTextPositioningElement but
3031         not on SVGTextPathElement.
3032
3033         As both classes shared the same mother class, it made sense to move the logic here.
3034         There should be no other side effects as SVGTextPathElement and SVGTextPositioningElement
3035         are the only classes deriving from SVGTextContentElement.
3036
3037         * svg/SVGTextContentElement.cpp:
3038         (WebCore::SVGTextContentElement::childrenChanged): Moved this method from SVGTextPositioningElement.
3039         * svg/SVGTextContentElement.h:
3040         * svg/SVGTextPositioningElement.cpp:
3041         (WebCore::SVGTextPositioningElement::svgAttributeChanged): Updated after updatePositioningValuesInRenderer
3042         removal, replaced by RenderSVGText::locateRenderSVGTextAncestor.
3043         * svg/SVGTextPositioningElement.h:
3044
3045 2011-06-30  Patrick Gansterer  <paroga@webkit.org>
3046
3047         Unreviewed build fix for !ENABLE(DATABASE) after r84789.
3048
3049         * bindings/js/JSDOMBinding.cpp:
3050
3051 2011-06-30  Anders Carlsson  <andersca@apple.com>
3052
3053         Reviewed by Dan Bernstein.
3054
3055         More ScrollableArea scaffolding
3056         https://bugs.webkit.org/show_bug.cgi?id=63678
3057
3058         Add a way to get the enclosing scrollable area for a given scrollable area.
3059         Also, add ScrollableArea::isPinnedInDirectionOfScrollDelta.
3060
3061         * page/FrameView.cpp:
3062         (WebCore::FrameView::enclosingScrollableArea):
3063         Return 0 for now.
3064
3065         * page/FrameView.h:
3066         Add FrameView::enclosingScrollableArea.
3067
3068         * platform/ScrollableArea.cpp:
3069         (WebCore::ScrollableArea::isPinnedInDirectionOfScrollDelta):
3070         Return whether the area is pinned in the direction of the scroll delta.
3071
3072         * platform/ScrollableArea.h:
3073         Add new member functions.
3074
3075         * platform/chromium/FramelessScrollView.cpp:
3076         (WebCore::FramelessScrollView::enclosingScrollableArea):
3077         * platform/chromium/FramelessScrollView.h:
3078         Add stub.
3079
3080         * platform/win/PopupMenuWin.h:
3081         (WebCore::PopupMenuWin::enclosingScrollableArea):
3082         Always return 0.
3083
3084         * rendering/RenderLayer.cpp:
3085         (WebCore::RenderLayer::enclosingScrollableLayer):
3086         Add helper function.
3087
3088         (WebCore::RenderLayer::scrollByRecursively):
3089         Use the new enclosingScrollableLayer helper function.
3090
3091         (WebCore::RenderLayer::enclosingScrollableArea):
3092         Return the enclosing scrollable area.
3093
3094         * rendering/RenderLayer.h:
3095         Add new member function.
3096
3097         * rendering/RenderListBox.cpp:
3098         (WebCore::RenderListBox::enclosingScrollableArea):
3099         Return 0 for now.
3100         
3101         * rendering/RenderListBox.h:
3102         Add new member function.
3103
3104 2011-06-30  Martin Robinson  <mrobinson@igalia.com>
3105
3106         Reviewed by Anders Carlsson.
3107
3108         [GTK] Crash observed with nspluginwrapper and flash
3109         https://bugs.webkit.org/show_bug.cgi?id=62249
3110
3111         Test: plugins/invalidate-rect-with-null-npp-argument.html
3112
3113         * plugins/npapi.cpp:
3114         (NPN_InvalidateRect): Guard against null instances here.
3115
3116 2011-06-30  Levi Weintraub  <leviw@chromium.org>
3117
3118         Reviewed by Eric Seidel.
3119
3120         Switch availableWidth/Height, logicalLeft/RightOffsetForLine to new layout types
3121         https://bugs.webkit.org/show_bug.cgi?id=63671
3122
3123         Switch availableWidth/Height, logicalLeft/RightOffsetForLine functions over to the
3124         new layout unit abstraction.
3125
3126         No new tests, no functionality changes.
3127
3128         * rendering/RenderBlock.cpp:
3129         (WebCore::RenderBlock::logicalLeftOffsetForLine):
3130         (WebCore::RenderBlock::logicalRightOffsetForLine):
3131         (WebCore::RenderBlock::availableLogicalWidthForLine):
3132         (WebCore::RenderBlock::availableLogicalWidth):
3133         * rendering/RenderBlock.h:
3134         (WebCore::RenderBlock::logicalRightOffsetForLine):
3135         (WebCore::RenderBlock::logicalLeftOffsetForLine):
3136         (WebCore::RenderBlock::startOffsetForLine):
3137         * rendering/RenderBox.cpp:
3138         (WebCore::RenderBox::availableLogicalHeight):
3139         (WebCore::RenderBox::availableLogicalHeightUsing):
3140         * rendering/RenderBox.h:
3141         (WebCore::RenderBox::availableLogicalWidth):
3142         (WebCore::RenderBox::availableWidth):
3143         (WebCore::RenderBox::availableHeight):
3144
3145 2011-06-30  Adam Barth  <abarth@webkit.org>
3146
3147         Remove useless ASSERT that breaks the build.
3148
3149         * dom/StyledElement.cpp:
3150         (WebCore::parseColorStringWithCrazyLegacyRules):
3151
3152 2011-06-30  Tab Atkins  <jackalmage@gmail.com>
3153
3154         Reviewed by Adam Barth.
3155
3156         Fix legacy color attribute parsing to match HTML spec
3157         https://bugs.webkit.org/show_bug.cgi?id=63029
3158
3159         Relevant spec link: http://www.whatwg.org/specs/web-apps/current-work/complete/common-microsyntaxes.html#rules-for-parsing-a-legacy-color-value
3160         Fix legacy color attribute parsing (<body bgcolor>, <font color>, etc.) to match the HTML spec and more closely match other browsers.
3161
3162         Test: fast/dom/attribute-legacy-colors.html
3163
3164         * dom/StyledElement.cpp:
3165         (WebCore::StyledElement::addCSSColor):
3166
3167 2011-06-28  Hans Wennborg  <hans@chromium.org>
3168
3169         Reviewed by Tony Chang.
3170
3171         IndexedDB: Prepare for running layout tests with LevelDB
3172         https://bugs.webkit.org/show_bug.cgi?id=63593
3173
3174         Migration of data from SQLite to LevelDB must be done before the
3175         m_backingStore map is checked for an open LevelDB, because if a
3176         previous layout test has used LevelDB, it will be in the
3177         m_backingStore map.
3178
3179         Covered by existing layout tests.
3180
3181         * storage/IDBFactoryBackendImpl.cpp:
3182         (WebCore::IDBFactoryBackendImpl::open):
3183
3184 2011-06-30  Pavel Feldman  <pfeldman@chromium.org>
3185
3186         Reviewed by Yury Semikhatsky.
3187
3188         Web Inspector: introduce "filter" icons for timeline panel and elements sidebar.
3189         https://bugs.webkit.org/show_bug.cgi?id=63731
3190
3191         * inspector/front-end/EventListenersSidebarPane.js:
3192         * inspector/front-end/Images/paneFilterButtons.png: Added.
3193         * inspector/front-end/Images/statusbarButtonGlyphs.png:
3194         * inspector/front-end/StylesSidebarPane.js:
3195         * inspector/front-end/inspector.css:
3196         (.pane > .title > select):
3197         (.pane > .title > select.select-settings):
3198         (.pane > .title > select.select-filter):
3199         (.timeline-filter-status-bar-item .glyph):
3200
3201 2011-06-28  Hans Wennborg  <hans@chromium.org>
3202
3203         Reviewed by Tony Chang.
3204
3205         IndexedDB: Support for deleteIndex with LevelDB backing store
3206         https://bugs.webkit.org/show_bug.cgi?id=63539
3207
3208         Covered by storage/indexeddb/mozilla/remove-index.html.
3209
3210         * storage/IDBLevelDBBackingStore.cpp:
3211         (WebCore::IDBLevelDBBackingStore::deleteIndex):
3212
3213 2011-06-30  Abhishek Arya  <inferno@chromium.org>
3214
3215         Reviewed by Ryosuke Niwa.
3216
3217         Crash when calling DOMSubtreeModified event when extracting range
3218         contents.
3219         https://bugs.webkit.org/show_bug.cgi?id=63650
3220
3221         Convert a few nodes to RefPtrs and add commonRoot verification checks
3222         for Range::processContents.
3223
3224         Tests: fast/dom/Range/range-extract-contents-event-fire-crash.html
3225                fast/dom/Range/range-extract-contents-event-fire-crash2.html
3226
3227         * dom/Range.cpp:
3228         (WebCore::childOfCommonRootBeforeOffset):
3229         (WebCore::Range::processContents):
3230         (WebCore::Range::processContentsBetweenOffsets):
3231         (WebCore::Range::processAncestorsAndTheirSiblings):
3232
3233 2011-06-30  Dan Bernstein  <mitz@apple.com>
3234
3235         Reviewed by Adele Peterson.
3236
3237         Add +[WebView _allowsRoundingHacks]
3238         https://bugs.webkit.org/show_bug.cgi?id=63734
3239
3240         * WebCore.exp.in: Export TextRun::allowsRoundingHacks().
3241         * platform/graphics/TextRun.cpp:
3242         (WebCore::TextRun::allowsRoundingHacks): Added this accessor.
3243         * platform/graphics/TextRun.h:
3244
3245 2011-06-30  Patrick Gansterer  <paroga@webkit.org>
3246
3247         Reviewed by Adam Roben.
3248
3249         [WIN] Don't redefine the keyboard codes
3250         https://bugs.webkit.org/show_bug.cgi?id=63726
3251
3252         Only define the codes when undefined.
3253         r64957 fixed this problem for COMPILER(MINGW) but not for OS(WINCE).
3254
3255         * platform/WindowsKeyboardCodes.h:
3256
3257 2011-06-30  Yury Semikhatsky  <yurys@chromium.org>
3258
3259         Reviewed by Pavel Feldman.
3260
3261         Web Inspector: hide "Enabled background events collection" option in context menu until the setting is persisted
3262         https://bugs.webkit.org/show_bug.cgi?id=63708
3263
3264         The option has no much sense if it is not preserved between browser restarts.
3265
3266         * inspector/front-end/NetworkPanel.js:
3267         (WebInspector.NetworkPanel.prototype._contextMenu):
3268
3269 2011-06-30  Patrick Gansterer  <paroga@webkit.org>
3270
3271         Reviewed by Darin Adler.
3272
3273         Remove dependnecy on IDL generation for disabled features in JSC bindings
3274         https://bugs.webkit.org/show_bug.cgi?id=63718
3275
3276         Move the #if ENABLE() line directly after #include "config.h".
3277         This enables us to compile all files even when we don't generate the IDL output.
3278
3279         * bindings/js/IDBBindingUtilities.cpp:
3280         * bindings/js/JSConsoleCustom.cpp:
3281         * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
3282         * bindings/js/JSCustomXPathNSResolver.cpp:
3283         * bindings/js/JSDOMApplicationCacheCustom.cpp:
3284         * bindings/js/JSDeviceMotionEventCustom.cpp:
3285         * bindings/js/JSDeviceOrientationEventCustom.cpp:
3286         * bindings/js/JSInjectedScriptHostCustom.cpp:
3287         * bindings/js/JSInjectedScriptManager.cpp:
3288         * bindings/js/JSInspectorFrontendHostCustom.cpp:
3289         * bindings/js/JSJavaScriptCallFrameCustom.cpp:
3290         * bindings/js/JSSQLResultSetRowListCustom.cpp:
3291         * bindings/js/JSSQLTransactionCustom.cpp:
3292         * bindings/js/JSSQLTransactionSyncCustom.cpp:
3293         * bindings/js/JSSVGElementInstanceCustom.cpp:
3294         * bindings/js/JSStorageCustom.cpp:
3295         * bindings/js/JSTouchCustom.cpp:
3296         * bindings/js/JSTouchListCustom.cpp:
3297         * bindings/js/JSXPathResultCustom.cpp:
3298         * bindings/js/JavaScriptCallFrame.cpp:
3299         * bindings/js/PageScriptDebugServer.cpp:
3300         * bindings/js/ScriptDebugServer.cpp:
3301         * bindings/js/ScriptGCEvent.cpp:
3302         * bindings/js/ScriptProfile.cpp:
3303         * bindings/js/WorkerScriptDebugServer.cpp:
3304
3305 2011-06-30  Alexander Pavlov  <apavlov@chromium.org>
3306
3307         Reviewed by Kent Tamura.
3308
3309         [Chromium] Autofill suggestions appear in upper left corner after input change
3310         https://bugs.webkit.org/show_bug.cgi?id=63702
3311
3312         This change fixes a few popup layout issues, some of which have existed for quite a while:
3313         - the absence of the ChromeClientImpl::screenToWindow() implementation (the method used to always return (0, 0));
3314         - the confusion of window and screen coordinates passed into the autofill popup client's setWindowRect() method;
3315         - the use of the current frameRect() width as the target element's width (which was wrong when refreshing
3316           a popup resized during the initial layout (e.g. made wider than the target element)).
3317
3318         No new tests, as this is a change to platform-specific widget code. The test case is provided in the bug description.
3319
3320         * platform/chromium/PopupMenuChromium.cpp:
3321         (WebCore::PopupContainer::layoutAndGetRTLOffset): Use original target element width, not frameRect().width(),
3322         since the latter gets updated if the popup is not the same width as the target element.
3323         (WebCore::PopupContainer::refresh): Restore only the popup bounds rather than its original rectangle,
3324         since it sometimes breaks the invalidation region and layout.
3325
3326 2011-06-30  Sheriff Bot  <webkit.review.bot@gmail.com>
3327
3328         Unreviewed, rolling out r90102.
3329         http://trac.webkit.org/changeset/90102
3330         https://bugs.webkit.org/show_bug.cgi?id=63714
3331
3332         Lots of tests asserting beneath
3333         SVGSMILElement::findInstanceTime (Requested by aroben on
3334         #webkit).
3335
3336         * svg/animation/SVGSMILElement.cpp:
3337         (WebCore::SVGSMILElement::findInstanceTime):
3338
3339 2011-06-30  Andrey Kosyakov  <caseq@chromium.org>
3340
3341         Reviewed by Yury Semikhatsky.
3342
3343         Web Inspector: remove ExtensionAPISchema.json
3344         https://bugs.webkit.org/show_bug.cgi?id=63687
3345
3346         * inspector/front-end/ExtensionAPISchema.json: Removed.
3347
3348 2011-06-30  Ilya Tikhonovsky  <loislo@chromium.org>
3349
3350         Unreviewed build fix for chromium.
3351
3352         * inspector/CodeGeneratorInspector.pm:
3353
3354 2011-06-30  Ilya Tikhonovsky  <loislo@chromium.org>
3355
3356         Unreviewed build fix for mac.
3357
3358         * inspector/CodeGeneratorInspector.pm:
3359
3360 2011-06-30  Ilya Tikhonovsky  <loislo@chromium.org>
3361
3362         Reviewed by Pavel Feldman.
3363
3364         Web Inspector: Protocol: error object needs some improvement.
3365         https://bugs.webkit.org/show_bug.cgi?id=63707
3366
3367         Current implementation is not useful in the code.
3368         We need to have toString implementation with nice formatting
3369         I'd like to use error.message property as the main place for the error's text.
3370
3371         * inspector/CodeGeneratorInspector.pm:
3372
3373 2011-06-30  Mikhail Naganov  <mnaganov@chromium.org>
3374
3375         Reviewed by Yury Semikhatsky.
3376
3377         Web Inspector: [Chromium] Support annotations for arrays in heap profiler.
3378         https://bugs.webkit.org/show_bug.cgi?id=63690
3379
3380         * inspector/front-end/DetailedHeapshotGridNodes.js:
3381         (WebInspector.HeapSnapshotGenericObjectNode.prototype.get data):
3382
3383
3384 2011-06-30  Patrick Gansterer  <paroga@webkit.org>
3385
3386         Unreviewed build fix for !ENABLE(SVG_ANIMATION) after r88663, r89187, r89220, r89431 and r89661.
3387
3388         * svg/SVGAnimatedAngle.h:
3389         * svg/SVGAnimatedLength.h:
3390         * svg/SVGAnimatedNumber.h:
3391         * svg/SVGAnimatedRect.h:
3392         * svg/SVGAnimatedString.h:
3393
3394 2011-06-30  Gabor Loki  <loki@webkit.org>
3395
3396         Reviewed by Csaba Osztrogon√°c.
3397
3398         Fixed several style and typo issues after r90091.
3399         https://bugs.webkit.org/show_bug.cgi?id=63692
3400
3401         Rename yStart to extremaStartY during computing extremas
3402
3403         * platform/graphics/filters/FEMorphology.cpp:
3404         (WebCore::FEMorphology::platformApplyGeneric):
3405         * platform/graphics/filters/FEMorphology.h:
3406
3407 2011-06-30  Oliver Varga  <Varga.Oliver@stud.u-szeged.hu>
3408
3409         Reviewed by Nikolas Zimmermann.
3410
3411         Speed up SVGSMILElement::findInstanceTime.
3412         https://bugs.webkit.org/show_bug.cgi?id=61025
3413
3414         Replace the linear search to binary search on ordered list because
3415         the previous searches from the beginning was not efficient.
3416
3417         No new tests this is only a performance tweak.
3418
3419         * svg/animation/SVGSMILElement.cpp:
3420         (WebCore::extractTimeFromVector):
3421         (WebCore::SVGSMILElement::findInstanceTime):
3422
3423 2011-06-30  Kentaro Hara  <haraken@google.com>
3424
3425         Reviewed by Kent Tamura.
3426
3427         Change the label of an HTML5 file chooser button to "Choose Files"
3428         https://bugs.webkit.org/show_bug.cgi?id=49245
3429
3430         We should notify capability of multiple files to users.
3431
3432         Test: fast/forms/input-file-label.html
3433
3434         * English.lproj/Localizable.strings:
3435         * html/FileInputType.cpp:
3436         (WebCore::UploadButtonElement::createForMultiple): Constructs a multiple file chooser button.
3437         (WebCore::FileInputType::createShadowSubtree): Constructs a single/multiple file chooser button depending on 'multiple' attribute.
3438         (WebCore::FileInputType::multipleAttributeChanged): Updates the label of the file chooser button.
3439         * html/FileInputType.h:
3440         * html/HTMLInputElement.cpp:
3441         (WebCore::HTMLInputElement::parseMappedAttribute): Updates the shadow tree of the file chooser button when 'multiple' attribute is set or unset.
3442         * html/InputType.cpp:
3443         (WebCore::InputType::multipleAttributeChanged): Virtual method to be overridden by FileInputType.
3444         * html/InputType.h:
3445         * platform/DefaultLocalizationStrategy.cpp:
3446         (WebCore::DefaultLocalizationStrategy::fileButtonChooseFileLabel): Updated the description for "Choose File".
3447         (WebCore::DefaultLocalizationStrategy::fileButtonChooseMultipleFilesLabel): Returns a string "Choose Files".
3448         * platform/DefaultLocalizationStrategy.h:
3449         * platform/LocalizationStrategy.h:
3450         * platform/LocalizedStrings.cpp:
3451         (WebCore::fileButtonChooseMultipleFilesLabel): Wrapper method for getting the "Choose Files" label.
3452         * platform/LocalizedStrings.h:
3453         * platform/brew/LocalizedStringsBrew.cpp:
3454         (WebCore::fileButtonChooseMultipleFilesLabel): Returns a "Choose Files" label.
3455         * platform/efl/LocalizedStringsEfl.cpp:
3456         (WebCore::fileButtonChooseMultipleFilesLabel): Returns a "Choose Files" label.
3457         * platform/gtk/LocalizedStringsGtk.cpp:
3458         (WebCore::fileButtonChooseMultipleFilesLabel): Returns a "Choose Files" label.
3459         * platform/haiku/LocalizedStringsHaiku.cpp:
3460         (WebCore::fileButtonChooseMultipleFilesLabel): Returns a "Choose Files" label.
3461         * platform/wx/LocalizedStringsWx.cpp:
3462         (WebCore::fileButtonChooseMultipleFilesLabel): Returns a "Choose Files" label.
3463
3464 2011-06-30  Ryosuke Niwa  <rniwa@webkit.org>
3465
3466         Reviewed by Kent Tamura.
3467
3468         Replace isNodeInTextFormControl(Node*) by enclosingTextFormControl(const Position&)
3469         https://bugs.webkit.org/show_bug.cgi?id=63672
3470
3471         Replaced isNodeInTextFormControl(Node*) by enclosingTextFormControl(const Position&).
3472         Also added a safe toTextFormControl to HTMLFormControlElement.h.
3473
3474         * editing/DeleteSelectionCommand.cpp:
3475         (WebCore::DeleteSelectionCommand::doApply): Calls enclosingTextFormControl instead of manually
3476         checking the tag name of shadowAncestorNode.
3477         * editing/Editor.cpp:
3478         (WebCore::Editor::selectionForCommand): Rewritten using enclosingTextFormControl and toTextFormControl.
3479         (WebCore::Editor::cut): Calls enclosingTextFormControl instead of isNodeInTextFormControl.
3480         (WebCore::Editor::copy): Ditto.
3481         (WebCore::Editor::setBaseWritingDirection): Calls toTextFormControl instead of manually checking tag name.
3482         * editing/FrameSelection.cpp:
3483         (WebCore::FrameSelection::isInPasswordField): Calls enclosingTextFormControl.
3484         * editing/ReplaceSelectionCommand.cpp:
3485         (WebCore::ReplaceSelectionCommand::doApply): Ditto.
3486         * editing/htmlediting.cpp:
3487         (WebCore::enclosingTextFormControl): Added.
3488         * editing/htmlediting.h:
3489         * html/HTMLFormControlElement.h:
3490         (WebCore::toTextFormControl): Added.
3491         * page/DragController.cpp:
3492         (WebCore::DragController::startDrag): Calls enclosingTextFormControl instead of isNodeInTextFormControl.
3493
3494 2011-06-27  Pavel Podivilov  <podivilov@chromium.org>
3495
<