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