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