4687e24540ba4e228bf418d3fab685c46f2f2a8c
[WebKit-https.git] / WebCore / ChangeLog
1 2010-10-19  Simon Fraser  <simon.fraser@apple.com>
2
3         Reviewed by Gavin Barraclough.
4
5         https://bugs.webkit.org/show_bug.cgi?id=47851
6         
7         Avoid buffer overflows in CSSPrimitiveValue's use of 
8         DecimalNumber, and pass the buffer size in InspectorBasicValue.
9
10         Test: fast/css/large-value-csstext.html
11
12         * css/CSSPrimitiveValue.cpp:
13         (WebCore::formatNumber):
14         * inspector/InspectorValues.cpp:
15         (WebCore::InspectorBasicValue::writeJSON):
16
17 2010-10-20  Dumitru Daniliuc  <dumi@chromium.org>
18
19         Reviewed by David Levin.
20
21         Add SecurityOrigin::threadsafeCopy() to the list of exported symbols.
22         https://bugs.webkit.org/show_bug.cgi?id=40655
23
24         * WebCore.exp.in:
25
26 2010-10-20  Sheriff Bot  <webkit.review.bot@gmail.com>
27
28         Unreviewed, rolling out r70165.
29         http://trac.webkit.org/changeset/70165
30         https://bugs.webkit.org/show_bug.cgi?id=48007
31
32         It broke tests on Qt bot (Requested by Ossy on #webkit).
33
34         * ForwardingHeaders/wtf/text/TextPosition.h: Removed.
35         * bindings/js/ScriptSourceCode.h:
36         (WebCore::ScriptSourceCode::ScriptSourceCode):
37         * bindings/v8/ScheduledAction.cpp:
38         (WebCore::ScheduledAction::ScheduledAction):
39         * bindings/v8/ScriptController.cpp:
40         (WebCore::ScriptController::eventHandlerLineNumber):
41         (WebCore::ScriptController::eventHandlerColumnNumber):
42         * bindings/v8/ScriptController.h:
43         * bindings/v8/ScriptEventListener.cpp:
44         (WebCore::createAttributeEventListener):
45         * bindings/v8/ScriptSourceCode.h:
46         (WebCore::ScriptSourceCode::ScriptSourceCode):
47         (WebCore::ScriptSourceCode::startLine):
48         * bindings/v8/V8LazyEventListener.cpp:
49         (WebCore::V8LazyEventListener::V8LazyEventListener):
50         (WebCore::V8LazyEventListener::prepareListenerObject):
51         * bindings/v8/V8LazyEventListener.h:
52         (WebCore::V8LazyEventListener::create):
53         * bindings/v8/V8Proxy.cpp:
54         (WebCore::V8Proxy::compileScript):
55         (WebCore::V8Proxy::evaluate):
56         (WebCore::V8Proxy::runScript):
57         * bindings/v8/V8Proxy.h:
58         * bindings/v8/WorkerContextExecutionProxy.cpp:
59         (WebCore::WorkerContextExecutionProxy::evaluate):
60         (WebCore::WorkerContextExecutionProxy::runScript):
61         * bindings/v8/WorkerContextExecutionProxy.h:
62         * bindings/v8/WorkerScriptController.cpp:
63         (WebCore::WorkerScriptController::evaluate):
64         * dom/PendingScript.cpp:
65         (WebCore::PendingScript::releaseElementAndClear):
66         * dom/PendingScript.h:
67         (WebCore::PendingScript::PendingScript):
68         (WebCore::PendingScript::operator=):
69         (WebCore::PendingScript::startingLineNumber):
70         * dom/ScriptableDocumentParser.h:
71         * dom/XMLDocumentParser.h:
72         * dom/XMLDocumentParserLibxml2.cpp:
73         (WebCore::XMLDocumentParser::XMLDocumentParser):
74         (WebCore::XMLDocumentParser::startElementNs):
75         (WebCore::XMLDocumentParser::endElementNs):
76         (WebCore::XMLDocumentParser::lineNumber):
77         (WebCore::XMLDocumentParser::columnNumber):
78         * dom/XMLDocumentParserQt.cpp:
79         (WebCore::XMLDocumentParser::XMLDocumentParser):
80         (WebCore::XMLDocumentParser::parseStartElement):
81         (WebCore::XMLDocumentParser::parseEndElement):
82         * html/parser/HTMLDocumentParser.cpp:
83         (WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder):
84         (WebCore::HTMLDocumentParser::columnNumber):
85         * html/parser/HTMLDocumentParser.h:
86         * html/parser/HTMLScriptRunner.cpp:
87         (WebCore::HTMLScriptRunner::sourceFromPendingScript):
88         (WebCore::HTMLScriptRunner::execute):
89         (WebCore::HTMLScriptRunner::runScript):
90         * html/parser/HTMLScriptRunner.h:
91         * html/parser/HTMLTreeBuilder.cpp:
92         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
93         (WebCore::HTMLTreeBuilder::takeScriptToProcess):
94         (WebCore::HTMLTreeBuilder::processEndTag):
95         (WebCore::HTMLTreeBuilder::processScriptStartTag):
96         * html/parser/HTMLTreeBuilder.h:
97
98 2010-10-20  David Hyatt  <hyatt@apple.com>
99
100         Reviewed by Dan Bernstein.
101
102         https://bugs.webkit.org/show_bug.cgi?id=48001
103
104         Make boxes place themselves properly in the block direction.  Get basic painting working for spans and add a test that
105         verifies that span painting and replaced element painting (like images) works correctly.
106         
107         Added fast/blockflow/basic-vertical-line.html
108
109         * rendering/InlineBox.cpp:
110         (WebCore::InlineBox::logicalHeight):
111         * rendering/InlineFlowBox.cpp:
112         (WebCore::InlineFlowBox::placeBoxesInInlineDirection):
113         (WebCore::InlineFlowBox::adjustMaxAscentAndDescent):
114         (WebCore::verticalPositionForBox):
115         (WebCore::InlineFlowBox::computeLogicalBoxHeights):
116         (WebCore::InlineFlowBox::placeBoxesInBlockDirection):
117         (WebCore::InlineFlowBox::flipLinesInBlockDirection):
118         (WebCore::InlineFlowBox::paintBoxDecorations):
119         (WebCore::InlineFlowBox::paintMask):
120         * rendering/InlineFlowBox.h:
121         * rendering/style/RenderStyle.h:
122         (WebCore::InheritedFlags::isFlippedLinesWritingMode):
123
124 2010-10-20  Beth Dakin  <bdakin@apple.com>
125
126         Reviewed by Dave Hyatt.
127
128         Fix for https://bugs.webkit.org/show_bug.cgi?id=47514 CSS 
129         transforms should affect scrolling
130
131         This patch causes topmostPosition, lowestPosition, 
132         leftmostPosition, and rightmostPosition to take transforms into 
133         account.
134
135         Compute the topmost/lowest/leftmost/rightmost position without 
136         factoring in the block's transform until the end.
137         * rendering/RenderBlock.cpp:
138         (WebCore::RenderBlock::topmostPosition):
139         (WebCore::RenderBlock::lowestPosition):
140         (WebCore::RenderBlock::rightmostPosition):
141         (WebCore::RenderBlock::leftmostPosition):
142         * rendering/RenderBlock.h:
143
144         transformedFrameRect() returns the frameRect() transformed to the 
145         layer's transform. applyLayerTransformToRect() does the same thing 
146         for the input rect.
147         * rendering/RenderBox.cpp:
148         (WebCore::RenderBox::applyLayerTransformToRect):
149         (WebCore::RenderBox::transformedFrameRect):
150         (WebCore::RenderBox::topmostPosition):
151         (WebCore::RenderBox::lowestPosition):
152         (WebCore::RenderBox::rightmostPosition):
153         (WebCore::RenderBox::leftmostPosition):
154         * rendering/RenderBox.h:
155         * rendering/RenderMedia.cpp:
156         (WebCore::RenderMedia::topmostPosition):
157         (WebCore::RenderMedia::lowestPosition):
158         (WebCore::RenderMedia::rightmostPosition):
159         (WebCore::RenderMedia::leftmostPosition):
160         * rendering/RenderMedia.h:
161         * rendering/RenderTableSection.cpp:
162         (WebCore::RenderTableSection::topmostPosition):
163         (WebCore::RenderTableSection::lowestPosition):
164         (WebCore::RenderTableSection::rightmostPosition):
165         (WebCore::RenderTableSection::leftmostPosition):
166         * rendering/RenderTableSection.h:
167
168 2010-10-20  Nikolas Zimmermann  <nzimmermann@rim.com>
169
170         Not reviewed.
171
172         Rename SVGAnimatedProperty* -> DeprecatedSVGAnimatedProperty*
173         https://bugs.webkit.org/show_bug.cgi?id=47973
174
175         Copy headers from svg/properties, otherwhise builds from scratch on win are broken.
176
177         * WebCore.vcproj/copyForwardingHeaders.cmd:
178
179 2010-10-20  Peter Rybin  <peter.rybin@gmail.com>
180
181         Reviewed by Adam Barth.
182
183         HTML parser should provide script column position within HTML document to JavaScript engine
184         https://bugs.webkit.org/show_bug.cgi?id=45271
185
186         Replaces line number with TextPosition struct so that script engine
187         gets script starting line/column.
188
189         * ForwardingHeaders/wtf/text/TextPosition.h: Added.
190         * bindings/js/ScriptSourceCode.h:
191         (WebCore::ScriptSourceCode::ScriptSourceCode):
192         * bindings/v8/ScheduledAction.cpp:
193         (WebCore::ScheduledAction::ScheduledAction):
194         * bindings/v8/ScriptController.cpp:
195         (WebCore::ScriptController::eventHandlerPosition):
196         * bindings/v8/ScriptController.h:
197         * bindings/v8/ScriptEventListener.cpp:
198         (WebCore::createAttributeEventListener):
199         * bindings/v8/ScriptSourceCode.h:
200         (WebCore::ScriptSourceCode::ScriptSourceCode):
201         (WebCore::ScriptSourceCode::startLine):
202         (WebCore::ScriptSourceCode::startPosition):
203         * bindings/v8/V8LazyEventListener.cpp:
204         (WebCore::V8LazyEventListener::V8LazyEventListener):
205         (WebCore::V8LazyEventListener::prepareListenerObject):
206         * bindings/v8/V8LazyEventListener.h:
207         (WebCore::V8LazyEventListener::create):
208         * bindings/v8/V8Proxy.cpp:
209         (WebCore::V8Proxy::compileScript):
210         (WebCore::V8Proxy::evaluate):
211         (WebCore::V8Proxy::runScript):
212         * bindings/v8/V8Proxy.h:
213         * bindings/v8/WorkerContextExecutionProxy.cpp:
214         (WebCore::WorkerContextExecutionProxy::evaluate):
215         (WebCore::WorkerContextExecutionProxy::runScript):
216         * bindings/v8/WorkerContextExecutionProxy.h:
217         * bindings/v8/WorkerScriptController.cpp:
218         (WebCore::WorkerScriptController::evaluate):
219         * dom/PendingScript.cpp:
220         (WebCore::PendingScript::releaseElementAndClear):
221         * dom/PendingScript.h:
222         (WebCore::PendingScript::PendingScript):
223         (WebCore::PendingScript::operator=):
224         (WebCore::PendingScript::startingPosition):
225         * dom/ScriptableDocumentParser.h:
226         * dom/XMLDocumentParser.h:
227         * dom/XMLDocumentParserLibxml2.cpp:
228         (WebCore::XMLDocumentParser::XMLDocumentParser):
229         (WebCore::XMLDocumentParser::startElementNs):
230         (WebCore::XMLDocumentParser::endElementNs):
231         (WebCore::XMLDocumentParser::lineNumber):
232         (WebCore::XMLDocumentParser::columnNumber):
233         (WebCore::XMLDocumentParser::textPosition):
234         (WebCore::XMLDocumentParser::textPositionOneBased):
235         * dom/XMLDocumentParserQt.cpp:
236         (WebCore::XMLDocumentParser::XMLDocumentParser):
237         (WebCore::XMLDocumentParser::textPosition):
238         (WebCore::XMLDocumentParser::parseStartElement):
239         (WebCore::XMLDocumentParser::parseEndElement):
240         * html/parser/HTMLDocumentParser.cpp:
241         (WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder):
242         (WebCore::HTMLDocumentParser::textPosition):
243         * html/parser/HTMLDocumentParser.h:
244         * html/parser/HTMLScriptRunner.cpp:
245         (WebCore::HTMLScriptRunner::sourceFromPendingScript):
246         (WebCore::HTMLScriptRunner::execute):
247         (WebCore::HTMLScriptRunner::runScript):
248         * html/parser/HTMLScriptRunner.h:
249         * html/parser/HTMLTreeBuilder.cpp:
250         (WebCore::uninitializedPositionValue1):
251         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
252         (WebCore::HTMLTreeBuilder::takeScriptToProcess):
253         (WebCore::HTMLTreeBuilder::processEndTag):
254         (WebCore::HTMLTreeBuilder::processScriptStartTag):
255         * html/parser/HTMLTreeBuilder.h:
256
257 2010-10-20  David Hyatt  <hyatt@apple.com>
258
259         Reviewed by Simon Fraser.
260
261         https://bugs.webkit.org/show_bug.cgi?id=47994
262         
263         Make computeBlockDirectionPositionsForLine writing-mode-aware.  None of the functions it calls are patched yet.
264
265         * rendering/RenderBlockLineLayout.cpp:
266         (WebCore::RenderBlock::computeBlockDirectionPositionsForLine):
267
268 2010-10-20  John Abd-El-Malek  <jam@chromium.org>
269
270         Reviewed by Darin Fisher.
271
272         [chromium] Fix crash when mousing over scrollview
273         https://bugs.webkit.org/show_bug.cgi?id=47956
274
275         Test: plugins/mouse-move-over-plugin-in-frame.html
276
277         * platform/Widget.h:
278         (WebCore::Widget::isPluginContainer):
279
280 2010-10-20  Sheriff Bot  <webkit.review.bot@gmail.com>
281
282         Unreviewed, rolling out r70149.
283         http://trac.webkit.org/changeset/70149
284         https://bugs.webkit.org/show_bug.cgi?id=47989
285
286         "Build breaks in mac and win" (Requested by satish on
287         #webkit).
288
289         * dom/Element.cpp:
290         (WebCore::Element::computeInheritedLanguage):
291         * page/SpeechInput.cpp:
292         (WebCore::SpeechInput::startRecognition):
293         * page/SpeechInput.h:
294         * page/SpeechInputClient.h:
295         * platform/mock/SpeechInputClientMock.cpp:
296         (WebCore::SpeechInputClientMock::startRecognition):
297         (WebCore::SpeechInputClientMock::setRecognitionResult):
298         (WebCore::SpeechInputClientMock::timerFired):
299         * platform/mock/SpeechInputClientMock.h:
300         * rendering/TextControlInnerElements.cpp:
301         (WebCore::TextControlInnerElement::attachInnerElement):
302         (WebCore::SearchFieldCancelButtonElement::detach):
303         (WebCore::SpinButtonElement::defaultEventHandler):
304         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
305         (WebCore::InputFieldSpeechButtonElement::detach):
306
307 2010-10-19  Leandro Gracia Gil  <leandrogracia@google.com>
308
309         Reviewed by Jeremy Orlow.
310
311         Patch the current speech input implementation to use and validate the
312         nearest language tag. The language is now passed to the startRecognition
313         methods so that language-specific recognition could be used. Also added
314         a second parameter to setMockSpeechInputResult for the language used in
315         speech recognition.
316         https://bugs.webkit.org/show_bug.cgi?id=47089
317
318         This is the 2nd of a 4-sided patch in Chromium and WebKit. For more
319         details see http://codereview.chromium.org/3615005/show and
320         http://codereview.chromium.org/3595018/show.
321
322         Test: fast/speech/input-text-language-tag.html
323
324         * dom/Element.cpp:
325         (WebCore::Element::computeInheritedLanguage): includes a brief character
326           validation for the BCP 47 language tag.
327         * page/SpeechInput.cpp:
328         (WebCore::SpeechInput::startRecognition):
329         * page/SpeechInput.h:
330         * page/SpeechInputClient.h:
331         * platform/mock/SpeechInputClientMock.cpp:
332         (WebCore::SpeechInputClientMock::startRecognition):
333         (WebCore::SpeechInputClientMock::setRecognitionResult): results are now
334           stored by language using a hash map.
335         (WebCore::SpeechInputClientMock::timerFired):
336         * platform/mock/SpeechInputClientMock.h:
337         * rendering/TextControlInnerElements.cpp:
338         (WebCore::TextControlInnerElement::attachInnerElement):
339         (WebCore::SearchFieldCancelButtonElement::detach):
340         (WebCore::SpinButtonElement::defaultEventHandler):
341         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
342         (WebCore::InputFieldSpeechButtonElement::detach):
343
344 2010-10-20  Dirk Schulze  <krit@webkit.org>
345
346         Reviewed by Nikolas Zimmermann.
347
348         Merge ColorSpace and ImageColorSpace enums
349         https://bugs.webkit.org/show_bug.cgi?id=47922
350
351         Merging these two enums makes it easier to implement color-interpolation as well as
352         color-interpolation-filter for SVG.
353         Added ColorSpaceLinearRGB to the ColorSpace enum and changed ImageColorSpace to ColorSpace in all related
354         files. Renamed enum entries DeviceColorSpace and sRGBColorSpace to ColorSpaceDeviceRGB and ColorSpaceSRGB
355         to follow webkit style rules.
356         Removed gray scale support in ImageBuffer since it is not used anymore on WebKit.
357
358         * css/CSSPrimitiveValueMappings.h:
359         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
360         (WebCore::CSSPrimitiveValue::operator ColorSpace):
361         * css/CSSStyleSelector.cpp:
362         (WebCore::CSSStyleSelector::applyProperty):
363         * editing/SelectionController.cpp:
364         (WebCore::SelectionController::paintCaret):
365         * html/HTMLCanvasElement.cpp:
366         (WebCore::HTMLCanvasElement::paint):
367         * html/canvas/CanvasRenderingContext2D.cpp:
368         (WebCore::CanvasRenderingContext2D::setAllAttributesToDefault):
369         (WebCore::CanvasRenderingContext2D::setShadow):
370         (WebCore::CanvasRenderingContext2D::applyShadow):
371         (WebCore::CanvasRenderingContext2D::drawImage):
372         (WebCore::CanvasRenderingContext2D::drawImageFromRect):
373         (WebCore::CanvasRenderingContext2D::drawTextInternal):
374         * html/canvas/CanvasStyle.cpp:
375         (WebCore::CanvasStyle::applyStrokeColor):
376         (WebCore::CanvasStyle::applyFillColor):
377         * inspector/InspectorController.cpp:
378         (WebCore::drawOutlinedQuad):
379         (WebCore::InspectorController::drawElementTitle):
380         * mathml/RenderMathMLBlock.cpp:
381         (WebCore::RenderMathMLBlock::paint):
382         * mathml/RenderMathMLFraction.cpp:
383         (WebCore::RenderMathMLFraction::paint):
384         * mathml/RenderMathMLRoot.cpp:
385         (WebCore::RenderMathMLRoot::paint):
386         * mathml/RenderMathMLSquareRoot.cpp:
387         (WebCore::RenderMathMLSquareRoot::paint):
388         * page/FrameView.cpp:
389         (WebCore::FrameView::paintContents):
390         * page/PrintContext.cpp:
391         (WebCore::PrintContext::spoolAllPagesWithBoundaries):
392         * platform/ScrollView.cpp:
393         (WebCore::ScrollView::wheelEvent):
394         * platform/ScrollbarTheme.h:
395         (WebCore::ScrollbarTheme::paintScrollCorner):
396         * platform/ScrollbarThemeComposite.cpp:
397         (WebCore::ScrollbarThemeComposite::paintScrollCorner):
398         * platform/chromium/PopupMenuChromium.cpp:
399         (WebCore::PopupContainer::paintBorder):
400         (WebCore::PopupListBox::paint):
401         (WebCore::PopupListBox::paintRow):
402         * platform/chromium/ScrollbarThemeChromium.cpp:
403         (WebCore::ScrollbarThemeChromium::paintTickmarks):
404         * platform/chromium/ScrollbarThemeChromiumMac.mm:
405         (WebCore::ScrollbarThemeChromiumMac::paint):
406         * platform/graphics/ColorSpace.h:
407         * platform/graphics/GraphicsContext.cpp:
408         (WebCore::GraphicsContext::setStrokePattern):
409         (WebCore::GraphicsContext::setFillPattern):
410         (WebCore::GraphicsContext::setStrokeGradient):
411         (WebCore::GraphicsContext::setFillGradient):
412         * platform/graphics/GraphicsContextPrivate.h:
413         (WebCore::GraphicsContextState::GraphicsContextState):
414         * platform/graphics/ImageBuffer.cpp:
415         (WebCore::ImageBuffer::transformColorSpace):
416         * platform/graphics/ImageBuffer.h:
417         (WebCore::ImageBuffer::create):
418         * platform/graphics/cairo/ImageBufferCairo.cpp:
419         (WebCore::ImageBuffer::ImageBuffer):
420         * platform/graphics/cg/ColorCG.cpp:
421         (WebCore::cachedCGColorSpace):
422         (WebCore::cachedCGColor):
423         * platform/graphics/cg/GraphicsContextCG.cpp:
424         (WebCore::linearRGBColorSpaceRef):
425         * platform/graphics/cg/GraphicsContextCG.h:
426         * platform/graphics/cg/ImageBufferCG.cpp:
427         (WebCore::ImageBuffer::ImageBuffer):
428         (WebCore::cgImage):
429         (WebCore::ImageBuffer::draw):
430         * platform/graphics/cg/ImageBufferData.h:
431         * platform/graphics/cg/ImageCG.cpp:
432         (WebCore::imageWithColorSpace):
433         * platform/graphics/chromium/GLES2Canvas.cpp:
434         (WebCore::GLES2Canvas::clearRect):
435         (WebCore::GLES2Canvas::fillRect):
436         * platform/graphics/chromium/TransparencyWin.cpp:
437         (WebCore::TransparencyWin::setupLayerForWhiteLayer):
438         * platform/graphics/filters/FEColorMatrix.cpp:
439         (WebCore::FEColorMatrix::apply):
440         * platform/graphics/filters/FEComposite.cpp:
441         (WebCore::FEComposite::apply):
442         * platform/graphics/filters/FEFlood.cpp:
443         (WebCore::FEFlood::apply):
444         * platform/graphics/filters/FEMerge.cpp:
445         (WebCore::FEMerge::apply):
446         * platform/graphics/filters/FEOffset.cpp:
447         (WebCore::FEOffset::apply):
448         * platform/graphics/filters/FETile.cpp:
449         (WebCore::FETile::apply):
450         * platform/graphics/filters/FilterEffect.cpp:
451         (WebCore::FilterEffect::effectContext):
452         * platform/graphics/filters/SourceAlpha.cpp:
453         (WebCore::SourceAlpha::apply):
454         * platform/graphics/filters/SourceGraphic.cpp:
455         (WebCore::SourceGraphic::apply):
456         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
457         (WebCore::MediaPlayerPrivateGStreamer::paint):
458         * platform/graphics/gtk/FontGtk.cpp:
459         (WebCore::Font::drawComplexText):
460         * platform/graphics/mac/GraphicsContextMac.mm:
461         (WebCore::GraphicsContext::drawFocusRing):
462         * platform/graphics/mac/GraphicsLayerCA.mm:
463         (WebCore::setLayerBorderColor):
464         (WebCore::setLayerBackgroundColor):
465         * platform/graphics/qt/GraphicsContextQt.cpp:
466         (WebCore::GraphicsContext::GraphicsContext):
467         * platform/graphics/qt/ImageBufferQt.cpp:
468         (WebCore::ImageBuffer::ImageBuffer):
469         (WebCore::ImageBuffer::draw):
470         * platform/graphics/skia/ImageBufferSkia.cpp:
471         (WebCore::ImageBuffer::ImageBuffer):
472         * platform/graphics/skia/PlatformContextSkia.cpp:
473         (WebCore::PlatformContextSkia::uploadSoftwareToHardware):
474         * platform/graphics/win/FontCGWin.cpp:
475         (WebCore::Font::drawGlyphs):
476         * platform/graphics/win/GraphicsContextCGWin.cpp:
477         (WebCore::GraphicsContext::GraphicsContext):
478         (WebCore::GraphicsContext::drawFocusRing):
479         * platform/graphics/win/GraphicsLayerCACF.cpp:
480         (WebCore::setLayerBorderColor):
481         (WebCore::setLayerBackgroundColor):
482         * platform/graphics/win/ImageCGWin.cpp:
483         (WebCore::BitmapImage::getHBITMAPOfSize):
484         * platform/graphics/win/ImageCairoWin.cpp:
485         (WebCore::BitmapImage::getHBITMAPOfSize):
486         (WebCore::BitmapImage::drawFrameMatchingSourceSize):
487         * platform/graphics/win/WebLayer.cpp:
488         (WebCore::WebLayer::drawInContext):
489         * platform/graphics/wince/GraphicsContextWinCE.cpp:
490         (WebCore::GraphicsContext::clearRect):
491         (WebCore::GraphicsContext::fillRect):
492         * platform/graphics/wince/ImageWinCE.cpp:
493         (WebCore::BitmapImage::getHBITMAPOfSize):
494         * platform/graphics/wx/GraphicsContextWx.cpp:
495         (WebCore::GraphicsContext::GraphicsContext):
496         * platform/gtk/RenderThemeGtk.cpp:
497         (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration):
498         (WebCore::RenderThemeGtk::paintSearchFieldCancelButton):
499         (WebCore::paintMediaButton):
500         (WebCore::RenderThemeGtk::paintMediaSliderTrack):
501         (WebCore::RenderThemeGtk::paintMediaSliderThumb):
502         * platform/mac/ScrollbarThemeMac.mm:
503         (WebCore::ScrollbarThemeMac::paint):
504         * platform/win/PopupMenuWin.cpp:
505         (WebCore::PopupMenuWin::paint):
506         * platform/win/WebCoreTextRenderer.cpp:
507         (WebCore::doDrawTextAtPoint):
508         * platform/wx/wxcode/mac/carbon/non-kerned-drawing.cpp:
509         (WebCore::drawTextWithSpacing):
510         * plugins/PluginView.cpp:
511         (WebCore::PluginView::paintMissingPluginIcon):
512         * rendering/RenderLayer.cpp:
513         (WebCore::RenderLayer::beginTransparencyLayers):
514         (WebCore::RenderLayer::paintResizer):
515         * rendering/RenderListMarker.cpp:
516         (WebCore::RenderListMarker::paint):
517         * rendering/RenderMediaControlsChromium.cpp:
518         (WebCore::paintMediaButton):
519         (WebCore::paintMediaSlider):
520         (WebCore::paintMediaVolumeSlider):
521         (WebCore::paintMediaTimelineContainer):
522         * rendering/RenderSVGImage.cpp:
523         (WebCore::RenderSVGImage::paint):
524         * rendering/RenderSVGResourceClipper.cpp:
525         (WebCore::RenderSVGResourceClipper::applyClippingToContext):
526         * rendering/RenderSVGResourceFilter.cpp:
527         (WebCore::RenderSVGResourceFilter::applyResource):
528         (WebCore::RenderSVGResourceFilter::postApplyResource):
529         * rendering/RenderSVGResourceGradient.cpp:
530         (WebCore::createMaskAndSwapContextForTextGradient):
531         * rendering/RenderSVGResourceMasker.cpp:
532         (WebCore::RenderSVGResourceMasker::applyResource):
533         (WebCore::RenderSVGResourceMasker::drawContentIntoMaskImage):
534         * rendering/RenderSVGResourcePattern.cpp:
535         (WebCore::RenderSVGResourcePattern::createTileImage):
536         * rendering/RenderSVGResourceSolidColor.cpp:
537         (WebCore::RenderSVGResourceSolidColor::applyResource):
538         * rendering/RenderScrollbarTheme.cpp:
539         (WebCore::RenderScrollbarTheme::paintScrollCorner):
540         * rendering/RenderThemeMac.mm:
541         (WebCore::RenderThemeMac::paintProgressBar):
542         (WebCore::RenderThemeMac::paintMenuListButton):
543         * rendering/RenderThemeSafari.cpp:
544         (WebCore::RenderThemeSafari::paintMenuListButton):
545         * rendering/RenderThemeWinCE.cpp:
546         (WebCore::RenderThemeWinCE::paintSearchFieldCancelButton):
547         (WebCore::RenderThemeWinCE::paintSliderTrack):
548         (WebCore::RenderThemeWinCE::paintSliderThumb):
549         * rendering/SVGImageBufferTools.cpp:
550         (WebCore::SVGImageBufferTools::createImageBuffer):
551         * rendering/SVGImageBufferTools.h:
552         * rendering/style/StyleRareInheritedData.cpp:
553         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
554         * svg/SVGFEImageElement.cpp:
555         (WebCore::SVGFEImageElement::build):
556         * svg/graphics/SVGImage.cpp:
557         (WebCore::SVGImage::nativeImageForCurrentFrame):
558         * svg/graphics/filters/SVGFEImage.cpp:
559         (WebCore::FEImage::apply):
560
561 2010-10-20  Dirk Schulze  <krit@webkit.org>
562
563         Reviewed by Andreas Kling.
564
565         Remove left over code after moving Cairo port to ShadowContext
566         https://bugs.webkit.org/show_bug.cgi?id=47929
567
568         ImageBufferFilter is not needed anymore, since Cairo is using ShadowContext now.
569         Made kernelPosition() in FEGaussianBlur a inline function instead of a static function.
570
571         * CMakeLists.txt:
572         * GNUmakefile.am:
573         * WebCore.gypi:
574         * WebCore.vcproj/WebCore.vcproj:
575         * platform/graphics/filters/FEGaussianBlur.cpp:
576         (WebCore::kernelPosition):
577         * platform/graphics/filters/FEGaussianBlur.h:
578         * platform/graphics/filters/ImageBufferFilter.cpp: Removed.
579         * platform/graphics/filters/ImageBufferFilter.h: Removed.
580
581 2010-10-20  Nikolas Zimmermann  <nzimmermann@rim.com>
582
583         Not reviewed.
584
585         Fix efl build, by adding the new svg/properties include directory.
586
587         * CMakeLists.txt:
588
589 2010-10-19  Andrey Kosyakov  <caseq@chromium.org>
590
591         Reviewed by Pavel Feldman.
592
593         Web Inspector: expose request/response cookies in HAR
594         https://bugs.webkit.org/show_bug.cgi?id=47894
595
596         Test: inspector/cookie-parser.html
597
598         * WebCore.gypi:
599         * WebCore.vcproj/WebCore.vcproj:
600         * inspector/front-end/CookieParser.js: Added.
601         * inspector/front-end/HAREntry.js:
602         (WebInspector.HAREntry.prototype._buildRequest):
603         (WebInspector.HAREntry.prototype._buildResponse):
604         (WebInspector.HAREntry.prototype._buildCookies):
605         (WebInspector.HAREntry.prototype._buildCookie):
606         * inspector/front-end/Resource.js: Parse Cookie/Set-Cookie headers and expose cookies.
607         (WebInspector.Resource.prototype.set requestHeaders):
608         (WebInspector.Resource.prototype.get requestCookies):
609         (WebInspector.Resource.prototype.set responseHeaders):
610         (WebInspector.Resource.prototype.get responseCookies):
611         (WebInspector.Resource.prototype._parseRequestCookies):
612         (WebInspector.Resource.prototype._parseResponseCookies):
613         * inspector/front-end/WebKit.qrc:
614         * inspector/front-end/inspector.html:
615
616 2010-10-20  Nikolas Zimmermann  <nzimmermann@rim.com>
617
618         Not reviewed.
619
620         Fix non-mac builds, by adding the new svg/properties include directory.
621
622         * GNUmakefile.am:
623         * WebCore.gyp/WebCore.gyp:
624         * WebCore.pro:
625         * WebCore.vcproj/WebCoreCommon.vsprops:
626
627 2010-10-20  Nikolas Zimmermann  <nzimmermann@rim.com>
628
629         Reviewed by Adam Roben.
630
631         Rename SVGAnimatedProperty* -> DeprecatedSVGAnimatedProperty*
632         https://bugs.webkit.org/show_bug.cgi?id=47973
633
634         Prepare fixing bug 47905, redesigning SVGAnimatedProperty. As we're going to move type by type
635         to the new animated property concept, keep the old one around, marked deprecated, until the
636         transition is finished.
637
638         * GNUmakefile.am:
639         * WebCore.gypi:
640         * WebCore.pro:
641         * WebCore.vcproj/WebCore.vcproj:
642         * WebCore.xcodeproj/project.pbxproj:
643         * bindings/scripts/CodeGeneratorObjC.pm:
644         * bindings/scripts/CodeGeneratorV8.pm:
645         * svg/DeprecatedSVGAnimatedProperty.h: Copied from svg/SVGAnimatedProperty.h.
646         (WebCore::DeprecatedSVGAnimatedPropertyTearOff::DeprecatedSVGAnimatedPropertyTearOff):
647         (WebCore::DeprecatedSVGAnimatedPropertyTearOff::~DeprecatedSVGAnimatedPropertyTearOff):
648         (WebCore::DeprecatedSVGAnimatedProperty::~DeprecatedSVGAnimatedProperty):
649         (WebCore::DeprecatedSVGAnimatedProperty::DeprecatedSVGAnimatedProperty):
650         (WebCore::DeprecatedSVGAnimatedProperty::value):
651         (WebCore::DeprecatedSVGAnimatedProperty::baseValue):
652         * svg/DeprecatedSVGAnimatedPropertyTraits.h: Copied from svg/SVGAnimatedPropertyTraits.h.
653         * svg/DeprecatedSVGAnimatedTemplate.h: Copied from svg/SVGAnimatedTemplate.h.
654         (WebCore::DeprecatedSVGAnimatedTypeWrapperKey::DeprecatedSVGAnimatedTypeWrapperKey):
655         (WebCore::DeprecatedSVGAnimatedTypeWrapperKey::operator==):
656         (WebCore::DeprecatedSVGAnimatedTypeWrapperKeyHash::hash):
657         (WebCore::DeprecatedSVGAnimatedTypeWrapperKeyHash::equal):
658         (WebCore::DeprecatedSVGAnimatedTypeWrapperKeyHashTraits::constructDeletedValue):
659         (WebCore::DeprecatedSVGAnimatedTypeWrapperKeyHashTraits::isDeletedValue):
660         (WebCore::DeprecatedSVGAnimatedTemplate::~DeprecatedSVGAnimatedTemplate):
661         (WebCore::DeprecatedSVGAnimatedTemplate::forgetWrapper):
662         (WebCore::lookupOrCreateWrapper):
663         * svg/SVGAnimatedProperty.h: Removed.
664         * svg/SVGAnimatedPropertySynchronizer.h: Removed.
665         * svg/SVGAnimatedPropertyTraits.h: Removed.
666         * svg/SVGAnimatedTemplate.h: Removed.
667         * svg/SVGElement.h:
668         * svg/SVGExternalResourcesRequired.h:
669         * svg/SVGFitToViewBox.h:
670         * svg/SVGURIReference.h:
671         * svg/properties: Added.
672         * svg/properties/SVGAnimatedPropertySynchronizer.h: Copied from svg/SVGAnimatedPropertySynchronizer.h.
673
674 2010-10-20  Shinichiro Hamaji  <hamaji@chromium.org>
675
676         Reviewed by Kent Tamura.
677
678         absolutely positioned list in inline element crashes
679         https://bugs.webkit.org/show_bug.cgi?id=45095
680
681         Add a NULL check to avoid crash. The rendering result isn't ideal yet.
682
683         Test: fast/lists/positioned-count-crash.html
684
685         * rendering/RenderListItem.cpp:
686         (WebCore::previousListItem):
687
688 2010-10-19  Adam Roben  <aroben@apple.com>
689
690         Remove uses of CACFContextRef and CARender* from WebCore
691
692         These types are now wrapped in a WKCACFContext type exported by
693         WebKitSystemInterface.
694
695         Fixes <http://webkit.org/b/43244>.
696
697         Reviewed by Sam Weinig.
698
699         * platform/graphics/win/WKCACFContextFlusher.cpp:
700         (WebCore::WKCACFContextFlusher::addContext):
701         (WebCore::WKCACFContextFlusher::removeContext):
702         (WebCore::WKCACFContextFlusher::flushAllContexts):
703         * platform/graphics/win/WKCACFContextFlusher.h:
704         Changed to use WKCACFContext. We don't retain/release the context when
705         putting it into/taking it out of the set. WKCACFContext is not a
706         ref-counted type, so we can't retain/release it, but the
707         retain/release was also unnecessary as WKCACFLayerRenderer calls
708         removeContext before the context is destroyed.
709
710         * platform/graphics/win/WKCACFLayer.cpp:
711         (WebCore::WKCACFLayer::becomeRootLayerForContext):
712         * platform/graphics/win/WKCACFLayer.h:
713         Changed to use WKCACFContext.
714
715         * platform/graphics/win/WKCACFLayerRenderer.cpp:
716         (WebCore::WKCACFLayerRenderer::didFlushContext):
717         (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer):
718         (WebCore::WKCACFLayerRenderer::~WKCACFLayerRenderer):
719         (WebCore::WKCACFLayerRenderer::layerTreeDidChange):
720         (WebCore::WKCACFLayerRenderer::createRenderer):
721         (WebCore::WKCACFLayerRenderer::destroyRenderer):
722         (WebCore::WKCACFLayerRenderer::render): Also replaced uses of
723         CGSRegion with WebKitSystemInterface functions/types.
724         (WebCore::WKCACFLayerRenderer::resetDevice):
725         * platform/graphics/win/WKCACFLayerRenderer.h:
726         Replaced our CACFContextRef, CARenderContext, and CARenderOGLContext
727         with a single WKCACFContext, which wraps all three. We hold a bare
728         pointer to it and destroy it in our destructor.
729
730 2010-10-19  Yongjun Zhang  <yongjun_zhang@apple.com>
731
732         Reviewed by Dan Bernstein.
733
734         Pixel cracks when using background image sprite on transformed element at certain scales.
735         https://bugs.webkit.org/show_bug.cgi?id=47868
736
737         The pixel bleeding happens when the current context has scale and interpolation is kCGInterpolationHigh
738         or kCGInterpolationDefault.  If the source rect size is smaller than the intrinsic image size,  some
739         pixels outside of the clip rect will also be used to interpolate the color value for clip edges, which
740         results in unwanted thin lines around the painted area.  We need to use sub-image patch to get rid of
741         the artifacts in this case.
742
743         Test: fast/images/pixel-crack-image-background-webkit-transform-scale.html
744
745         * platform/graphics/cg/ImageCG.cpp:
746         (WebCore::BitmapImage::draw):
747
748 2010-10-19  Evan Martin  <evan@chromium.org>
749
750         Reviewed by Tony Chang.
751
752         sqlite: remove unused member variable
753         https://bugs.webkit.org/show_bug.cgi?id=47957
754
755         There's no need to save the error code into a member variable
756         because nobody ever looks at it.
757
758         * platform/sql/SQLiteDatabase.cpp:
759         (WebCore::SQLiteDatabase::open):
760         * platform/sql/SQLiteDatabase.h:
761
762 2010-10-19  Jia Pu  <jpu@apple.com>
763
764         Reviewed by James Robinson.
765
766         Moving cursor back to autocorrected word in the same line shouldn't remove the underline
767         https://bugs.webkit.org/show_bug.cgi?id=47629
768         <rdar://problem/8546758>
769         
770         Patch <http://trac.webkit.org/changeset/70071> breaks some Chromium Mac hehavior. This patch
771         fixes that.
772
773         * editing/Editor.cpp:
774         (WebCore::Editor::respondToChangedSelection): Add "!PLATFORM(MAC)" to make sure nothing changes
775           on non-Mac platforms.
776
777 2010-10-19  Alexey Proskuryakov  <ap@apple.com>
778
779         Build fix (EFL, maybe more).
780
781         * CMakeLists.txt: Added platform/Language.cpp here, too.
782
783 2010-10-19  Jian Li  <jianli@chromium.org>
784
785         Reviewed by Darin Fisher.
786
787         Rename createBlobURL to createObjectURL and revokeBlobURL to
788         revokeObjectURL per the latest File API spec.
789         https://bugs.webkit.org/show_bug.cgi?id=47934
790
791         * inspector/front-end/ResourcesPanel.js:
792         (WebInspector.ResourcesPanel.prototype._contextMenu):
793         * inspector/front-end/utilities.js:
794         * page/DOMWindow.cpp:
795         (WebCore::DOMWindow::createObjectURL):
796         (WebCore::DOMWindow::revokeObjectURL):
797         * page/DOMWindow.h:
798         * page/DOMWindow.idl:
799         * workers/WorkerContext.cpp:
800         (WebCore::WorkerContext::createObjectURL):
801         (WebCore::WorkerContext::revokeObjectURL):
802         * workers/WorkerContext.h:
803         * workers/WorkerContext.idl:
804
805 2010-10-19  Alexey Proskuryakov  <ap@apple.com>
806
807         Reviewed by Anders Carlsson.
808
809         https://bugs.webkit.org/show_bug.cgi?id=47933
810         <rdar://problem/8494337> navigator.language doesn't work in WebKit2
811
812         * CMakeListsEfl.txt:
813         * GNUmakefile.am:
814         * WebCore.gypi:
815         * WebCore.pro:
816         * WebCore.vcproj/WebCore.vcproj:
817         * WebCore.xcodeproj/project.pbxproj:
818         * platform/chromium/Language.cpp: Removed.
819         * platform/chromium/LanguageChromium.cpp: Copied from WebCore/platform/chromium/Language.cpp.
820         * platform/efl/Language.cpp: Removed.
821         * platform/efl/LanguageEfl.cpp: Copied from WebCore/platform/efl/Language.cpp.
822         * platform/gtk/Language.cpp: Removed.
823         * platform/gtk/LanguageGtk.cpp: Copied from WebCore/platform/gtk/Language.cpp.
824         * platform/qt/Language.cpp: Removed.
825         * platform/qt/LanguageQt.cpp: Copied from WebCore/platform/qt/Language.cpp.
826         * platform/win/Language.cpp: Removed.
827         * platform/win/LanguageWin.cpp: Copied from WebCore/platform/win/Language.cpp.
828         * platform/Language.cpp: Added.
829         Cross platform code is now in platform/Language.cpp. So, I renamed platform files to match
830         the common pattern.
831
832         * WebCore.exp.in: Exported new functions.
833
834         * platform/Language.h: Added an ability to force the language, and an ability to set up
835         listeners for changes (if the platform implements that). Web process will always use the
836         forced language, as sent to it from UI process.
837
838         * platform/mac/Language.mm: Moved code from WebKit.
839         (WebCore::platformDefaultLanguage): Added code to synchronize user defaults. For some reason,
840         they come unsynchronized in WebKit2 here, unlike WebKit1.
841
842         * page/mac/WebCoreViewFactory.h: Removed defaultLanguageCode. WebCore no longer goes to WebKit
843         to ask for that.
844
845         * platform/mac/WebCoreSystemInterface.h:
846         * platform/mac/WebCoreSystemInterface.mm:
847         Added wkCopyCFLocalizationPreferredName().
848
849 2010-10-19  James Simonsen  <simonjam@chromium.org>
850
851         Reviewed by Adam Barth.
852
853         Add "in select" insertion mode to parser.
854
855         This was added to the spec in:
856         http://html5.org/tools/web-apps-tracker?from=5520&to=5522
857
858         And as a result of:
859         http://www.w3.org/Bugs/Public/show_bug.cgi?id=10314
860
861         https://bugs.webkit.org/show_bug.cgi?id=47706
862
863         No new tests. Open to ideas.
864
865         * html/parser/HTMLElementStack.cpp: Added "in select" mode.
866         (WebCore::HTMLNames::isSelectScopeMarker): Ditto.
867         (WebCore::HTMLElementStack::inSelectScope): Ditto.
868         * html/parser/HTMLElementStack.h: Ditto.
869         * html/parser/HTMLTreeBuilder.cpp:
870         (WebCore::HTMLTreeBuilder::processStartTag): Use "in select" instead of "in table."
871         (WebCore::HTMLTreeBuilder::processEndTag): Ditto.
872
873 2010-10-19  Jeremy Orlow  <jorlow@chromium.org>
874
875         Reviewed by Nate Chapin.
876
877         Fix multiple index support in IndexedDB
878         https://bugs.webkit.org/show_bug.cgi?id=47919
879
880         Fix 2 bugs that caused the IndexData of all but the last index to be
881         properly updated:
882         * The objectStoreDataId is NOT unique if there are multiple indexes. So
883           remove the constraint.
884         * Do not delete all existing entries with that objectStoreDataId before
885           adding an entry for each index. Only do it once at the beginning.
886
887         Test: storage/indexeddb/queued-commands.html
888             + index-basics.html modified
889
890         * storage/IDBFactoryBackendImpl.cpp:
891         (WebCore::createTables):
892         * storage/IDBObjectStoreBackendImpl.cpp:
893         (WebCore::deleteIndexData):
894         (WebCore::putIndexData):
895         (WebCore::IDBObjectStoreBackendImpl::putInternal):
896
897 2010-10-19  Martin Robinson  <mrobinson@igalia.com>
898
899         Fix the GTK+ build after r70072. The logic looks incorrect, but
900         this fix tries to preserves it, even so.
901
902         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
903         (baselinePositionForAccessibilityRenderObject):
904         (getAttributeSetForAccessibilityObject):
905
906 2010-10-06  Jer Noble  <jer.noble@apple.com>
907
908         Reviewed by Eric Carlson.
909
910         Windows: Implement 'preload=none'
911         https://bugs.webkit.org/show_bug.cgi?id=47317
912         <rdar://problem/7718442>
913         
914         Implement the 'preload=none' identically to the mac implementation. Add three new
915         ivars: m_preload, m_delayLoad and m_movieURL; and override the MediaPlayerPrivate
916         functions: prepareToPlay() and setPreload().
917
918         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
919         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext):
920             Initialize new ivars m_delayLoad and m_preload.
921         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::resumeLoad): Added; new.
922         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::load): Split contents between
923             load and loadInternal.
924         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::loadInternal): Added; new.
925         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::prepareToPlay): Added; overrides MediaPlayerPrivate.
926         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::setPreload): Added; overrides MediaPlayerPrivate.
927         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
928         
929 2010-10-19  Enrica Casucci  <enrica@apple.com>
930
931         Reviewed by Alexey Proskuryakov.
932
933         Upstream support of KeyCodes for iOS
934         https://bugs.webkit.org/show_bug.cgi?id=47857
935         
936         * platform/cocoa/KeyEventCocoa.mm:
937         (WebCore::windowsKeyCodeForCharCode): Added special handling of keyCodes for iOS.
938
939 2010-10-19  Joseph Pecoraro  <joepeck@webkit.org>
940
941         Reviewed by David Kilzer.
942
943         iOS: ASSERT in Cache::adjustSize running layout tests
944         https://bugs.webkit.org/show_bug.cgi?id=47873
945
946         Inside Cache::pruneDeadResources we loop over the LRU lists and make resources purgeable
947         with Cache::makeResourcePurgeable(). This wasn't taking into account whether the resource
948         was already purgeable or not, and the makeResourcePurgeable call was always calling
949         adjustSize(). Now we make sure makeResourcePurgable only adjusts the size of the Cache's
950         dead sizes when it first marks the resource purgeable. Likewise, if a resource is marked
951         as purgeable and then evicted, we should not adjust the size again.
952
953         The balancing call is when we have a resource that has been marked as purgeable and we
954         successfully mark it as no longer purgeable in Cache::resourceForURL.
955
956         No test added because this requires testing purgeable memory.
957
958         * loader/Cache.cpp:
959         (WebCore::Cache::makeResourcePurgeable):
960         (WebCore::Cache::evict):
961
962 2010-10-19  Vangelis Kokkevis  <vangelis@chromium.org>
963
964         Reviewed by Kenneth Russell.
965
966         [chromium] Disable mipmapping for ImageLayer's to prevent memory use and
967         performance regression.
968         https://bugs.webkit.org/show_bug.cgi?id=47913
969         
970         This patch is a straight revert of the patch committed with issue 46493
971
972         * platform/graphics/chromium/ContentLayerChromium.cpp:
973         (WebCore::ContentLayerChromium::SharedValues::SharedValues):
974         (WebCore::ContentLayerChromium::updateTextureRect):
975         * platform/graphics/chromium/ContentLayerChromium.h:
976         (WebCore::ContentLayerChromium::SharedValues::initialized):
977         * platform/graphics/chromium/ImageLayerChromium.cpp:
978         (WebCore::ImageLayerChromium::updateContents):
979
980 2010-10-18  Zhenyao Mo  <zmo@google.com>
981
982         Reviewed by Kenneth Russell.
983
984         gl-teximage.html fails on chromium webkit mac bot
985         https://bugs.webkit.org/show_bug.cgi?id=47034
986
987         * platform/graphics/GraphicsContext3D.cpp: Deal with endians in 16 bit image data.
988         (WebCore::convertColor16LittleTo8):
989         (WebCore::convertColor16BigTo8):
990         (WebCore::doPacking):
991         * platform/graphics/GraphicsContext3D.h: Ditto.
992         * platform/graphics/cg/GraphicsContext3DCG.cpp: Ditto.
993         (WebCore::GraphicsContext3D::getImageData):
994
995 2010-10-19  David Hyatt  <hyatt@apple.com>
996
997         Reviewed by Dan Bernstein.
998
999         https://bugs.webkit.org/show_bug.cgi?id=47841
1000
1001         Rework baselinePosition and lineHeight to be writing-mode-aware.  There's a lot of refactoring here to clean up
1002         the method parameters to be more readable and to simplify the subclassing of the various methods in order to 
1003         keep the horizontal/vertical querying to a minimum.
1004
1005         * WebCore.xcodeproj/project.pbxproj:
1006         * mathml/RenderMathMLFraction.cpp:
1007         (WebCore::RenderMathMLFraction::baselinePosition):
1008         * mathml/RenderMathMLFraction.h:
1009         * mathml/RenderMathMLOperator.cpp:
1010         (WebCore::RenderMathMLOperator::baselinePosition):
1011         * mathml/RenderMathMLOperator.h:
1012         * mathml/RenderMathMLRow.cpp:
1013         (WebCore::RenderMathMLRow::baselinePosition):
1014         * mathml/RenderMathMLRow.h:
1015         * mathml/RenderMathMLSubSup.cpp:
1016         (WebCore::RenderMathMLSubSup::baselinePosition):
1017         * mathml/RenderMathMLSubSup.h:
1018         * mathml/RenderMathMLUnderOver.cpp:
1019         (WebCore::RenderMathMLUnderOver::layout):
1020         (WebCore::RenderMathMLUnderOver::baselinePosition):
1021         * mathml/RenderMathMLUnderOver.h:
1022         * rendering/InlineBox.h:
1023         (WebCore::InlineBox::baselinePosition):
1024         (WebCore::InlineBox::lineHeight):
1025         * rendering/InlineFlowBox.cpp:
1026         (WebCore::InlineFlowBox::adjustMaxAscentAndDescent):
1027         (WebCore::InlineFlowBox::computeLogicalBoxHeights):
1028         (WebCore::InlineFlowBox::placeBoxesInBlockDirection):
1029         * rendering/InlineTextBox.cpp:
1030         (WebCore::InlineTextBox::baselinePosition):
1031         (WebCore::InlineTextBox::lineHeight):
1032         * rendering/InlineTextBox.h:
1033         * rendering/RenderBR.cpp:
1034         (WebCore::RenderBR::lineHeight):
1035         * rendering/RenderBR.h:
1036         (WebCore::toRenderBR):
1037         * rendering/RenderBlock.cpp:
1038         (WebCore::RenderBlock::lineHeight):
1039         (WebCore::RenderBlock::baselinePosition):
1040         (WebCore::RenderBlock::firstLineBoxBaseline):
1041         (WebCore::RenderBlock::lastLineBoxBaseline):
1042         (WebCore::RenderBlock::localCaretRect):
1043         * rendering/RenderBlock.h:
1044         * rendering/RenderBlockLineLayout.cpp:
1045         (WebCore::RenderBlock::layoutInlineChildren):
1046         * rendering/RenderBox.cpp:
1047         (WebCore::RenderBox::lineHeight):
1048         (WebCore::RenderBox::baselinePosition):
1049         * rendering/RenderBox.h:
1050         * rendering/RenderBoxModelObject.cpp:
1051         (WebCore::RenderBoxModelObject::verticalPosition):
1052         * rendering/RenderBoxModelObject.h:
1053         * rendering/RenderFileUploadControl.cpp:
1054         (WebCore::RenderFileUploadControl::paintObject):
1055         * rendering/RenderFlexibleBox.cpp:
1056         (WebCore::RenderFlexibleBox::layoutHorizontalBox):
1057         (WebCore::RenderFlexibleBox::layoutVerticalBox):
1058         * rendering/RenderInline.cpp:
1059         (WebCore::RenderInline::lineHeight):
1060         (WebCore::RenderInline::baselinePosition):
1061         * rendering/RenderInline.h:
1062         * rendering/RenderListBox.cpp:
1063         (WebCore::RenderListBox::baselinePosition):
1064         * rendering/RenderListBox.h:
1065         * rendering/RenderListMarker.cpp:
1066         (WebCore::RenderListMarker::lineHeight):
1067         (WebCore::RenderListMarker::baselinePosition):
1068         * rendering/RenderListMarker.h:
1069         * rendering/RenderObject.cpp:
1070         * rendering/RenderObject.h:
1071         * rendering/RenderReplaced.cpp:
1072         * rendering/RenderReplaced.h:
1073         * rendering/RenderSVGRoot.cpp:
1074         * rendering/RenderSVGRoot.h:
1075         * rendering/RenderSlider.cpp:
1076         (WebCore::RenderSlider::baselinePosition):
1077         * rendering/RenderSlider.h:
1078         * rendering/RenderTableCell.cpp:
1079         (WebCore::RenderTableCell::baselinePosition):
1080         * rendering/RenderTableCell.h:
1081         * rendering/RenderTableCol.h:
1082         (WebCore::RenderTableCol::isTableCol):
1083         * rendering/RenderTableRow.h:
1084         * rendering/RenderTableSection.h:
1085         * rendering/RenderText.cpp:
1086         * rendering/RenderText.h:
1087         * rendering/RenderTextControl.cpp:
1088         (WebCore::RenderTextControl::computeLogicalHeight):
1089         * rendering/RenderTextControlMultiLine.cpp:
1090         (WebCore::RenderTextControlMultiLine::baselinePosition):
1091         * rendering/RenderTextControlMultiLine.h:
1092         * rendering/RenderTextControlSingleLine.cpp:
1093         (WebCore::RenderTextControlSingleLine::createInnerTextStyle):
1094         * rendering/RootInlineBox.h:
1095         (WebCore::RootInlineBox::baselinePosition):
1096         (WebCore::RootInlineBox::lineHeight):
1097         * rendering/svg/SVGInlineTextBox.cpp:
1098         (WebCore::SVGInlineTextBox::calculateBoundaries):
1099
1100 2010-10-19  Jia Pu  <jpu@apple.com>
1101
1102         Reviewed by Adele Peterson.
1103
1104         Moving cursor back to autocorrected word in the same line shouldn't remove the underline
1105         https://bugs.webkit.org/show_bug.cgi?id=47629
1106         <rdar://problem/8546758>
1107
1108         Tests: platform/mac/editing/spelling/click-autocorrected-word.html
1109                platform/mac/editing/spelling/delete-into-autocorrected-word.html
1110                platform/mac/editing/spelling/delete-into-misspelled-word.html
1111                platform/mac/editing/spelling/forward-delete-into-autocorrected-word.html
1112                platform/mac/editing/spelling/move-cursor-around-misspelled-word.html
1113                platform/mac/editing/spelling/move-cursor-to-autocorrected-word.html
1114                platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word.html
1115
1116         * editing/Editor.cpp:
1117         (WebCore::Editor::respondToChangedSelection): Don't remove misspelling or autocorrection
1118           underlines when cursor is moved onto a word.
1119
1120 2010-10-19  Eric Carlson  <eric.carlson@apple.com>
1121
1122         Not reviewed. Build fix.
1123
1124         * html/HTMLMediaElement.cpp:
1125         (WebCore::HTMLMediaElement::selectNextSourceChild): Initialize variable to avoid Windows
1126         "potentially uninitialized local variable" warning.
1127
1128 2010-10-19  Eric Carlson  <eric.carlson@apple.com>
1129
1130         Reviewed by Darin Adler.
1131
1132         https://bugs.webkit.org/show_bug.cgi?id=46763
1133         CRASH in WebCore::ThreadTimers::sharedTimerFiredInternal
1134
1135         Fix crashes caused by moving and deleting <source> element(s) of active media element.
1136
1137         Tests: media/video-source-moved.html
1138                media/video-source-removed.html
1139
1140         * html/HTMLMediaElement.cpp:
1141         (WebCore::HTMLMediaElement::HTMLMediaElement): Add logging. Initialize selectNextSourceChild.
1142         (WebCore::HTMLMediaElement::~HTMLMediaElement): Ditto.
1143         (WebCore::HTMLMediaElement::insertedIntoDocument): Ditto.
1144         (WebCore::HTMLMediaElement::removedFromDocument): Ditto.
1145         (WebCore::HTMLMediaElement::scheduleLoad): Ditto.
1146         (WebCore::HTMLMediaElement::setNetworkState): Deal with m_currentSourceNode being null when
1147         the media engine signals a failure by skipping the error message and continuing as usual.
1148         (WebCore::HTMLMediaElement::setVolume): Fix logging typo.
1149         (WebCore::HTMLMediaElement::havePotentialSourceChild): Save and restore m_nextChildNodeToConsider
1150         around call to selectNextSourceChild because they are both significant.
1151         (WebCore::HTMLMediaElement::selectNextSourceChild): Use m_nextChildNodeToConsider to pick
1152         the first node to consider. Bail immediately if it signals that we have already processed 
1153         every <source> node. Stach the node following the current source element in m_nextChildNodeToConsider
1154         so we can resume the search even if m_currentSourceNode is removed while it is being processed.
1155         (WebCore::HTMLMediaElement::sourceWasAdded): New, move logic from HTMLSourceElement::insertedIntoTree
1156         here and correct it to deal with a <source> node being inserted immediately after the
1157         current <source> node and a new <source> node being inserted at the end of the list after
1158         all candidates have failed.
1159         (WebCore::HTMLMediaElement::sourceWillBeRemoved): New, deal with current source node and next
1160         potential node being removed.
1161         * html/HTMLMediaElement.h:
1162         (WebCore::HTMLMediaElement::sourceChildEndOfListValue): New, define sentinal value used to indicate
1163         that all nodes have been processed.
1164
1165         * html/HTMLSourceElement.cpp:
1166         (WebCore::HTMLSourceElement::HTMLSourceElement): Add logging.
1167         (WebCore::HTMLSourceElement::insertedIntoTree): Call mediaElement->sourceWasAdded instead
1168         of having logic here.
1169         (WebCore::HTMLSourceElement::willRemove): New, call mediaElement->sourceWillBeRemoved
1170         (WebCore::HTMLSourceElement::scheduleErrorEvent): Add logging.
1171         (WebCore::HTMLSourceElement::cancelPendingErrorEvent): Add logging.
1172         * html/HTMLSourceElement.h:
1173
1174 2010-10-19  Luiz Agostini  <luiz.agostini@openbossa.org>
1175
1176         Reviewed by Antti Koivisto.
1177
1178         [Qt] WebKit2 MacOS build fix
1179         https://bugs.webkit.org/show_bug.cgi?id=47897
1180
1181         Qt WebKit2 MacOS build fix.
1182
1183         * bridge/npapi.h:
1184
1185 2010-10-19  Philippe Normand  <pnormand@igalia.com>
1186
1187         Reviewed by Xan Lopez.
1188
1189         [GTK] Soup cache code still has some warnings
1190         https://bugs.webkit.org/show_bug.cgi?id=47733
1191
1192         Fixed some compilation warnings happening with gcc 4.4.5 on
1193         64-bits architecture.
1194
1195         * platform/network/soup/cache/webkit/soup-cache.c:
1196         (webkit_soup_cache_entry_set_freshness):
1197         (close_ready_cb):
1198
1199 2010-10-19  Yury Semikhatsky  <yurys@chromium.org>
1200
1201         Reviewed by Pavel Feldman.
1202
1203         Web Inspector: crash while trying to step over a function using inspector
1204         https://bugs.webkit.org/show_bug.cgi?id=47902
1205
1206         * inspector/front-end/ScriptsPanel.js:
1207         (WebInspector.ScriptsPanel.prototype.reset): reset scripts panel to resumed state on navigation.
1208
1209 2010-10-19  Ryuan Choi  <ryuan.choi@samsung.com>
1210
1211         Unreviewed attempt to remove warning in EFL build.
1212
1213         Fix #if to #ifdef.
1214
1215         No new features, so no tests added.
1216
1217         * platform/efl/WidgetEfl.cpp:
1218         (WebCore::Widget::applyFallbackCursor):
1219
1220 2010-10-19  Andreas Kling  <kling@webkit.org>
1221
1222         Reviewed by Tor Arne Vestbø.
1223
1224         [Qt] getImageData returns wrong data for non-0,0 source offset
1225         https://bugs.webkit.org/show_bug.cgi?id=47898
1226
1227         Test: fast/canvas/canvas-getImageData-negative-source.html
1228
1229         * platform/graphics/qt/ImageBufferQt.cpp:
1230         (WebCore::getImageData): Add missing *4's to get correct pixel offset.
1231
1232 2010-10-19  Andreas Kling  <kling@webkit.org>
1233
1234         Reviewed by Kenneth Rohde Christiansen.
1235
1236         [Qt] Correct initial state of ImageBuffer QPen
1237         https://bugs.webkit.org/show_bug.cgi?id=47804
1238
1239         Have the QPen on ImageBuffers start in Qt::SvgMiterJoin mode.
1240
1241         * platform/graphics/qt/ImageBufferQt.cpp:
1242         (WebCore::ImageBufferData::ImageBufferData):
1243
1244 2010-10-19  Philippe Normand  <pnormand@igalia.com>
1245
1246         Reviewed by Martin Robinson.
1247
1248         GStreamer PlatformVideoWindow needs an API to prepare the widget before applying the overlay
1249         https://bugs.webkit.org/show_bug.cgi?id=46790
1250
1251         Simple API addition to PlatformVideoWindow to allow
1252         implementations to optionally prepare their own PlatformWidget
1253         before applying the GStreamer XOverlay to it. This will likely be
1254         needed on Mac OSX only.
1255
1256         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
1257         (WebCore::GStreamerGWorld::setWindowOverlay):
1258         * platform/graphics/gstreamer/PlatformVideoWindow.h:
1259         * platform/graphics/gstreamer/PlatformVideoWindowGtk.cpp:
1260         (PlatformVideoWindow::prepareForOverlay):
1261         * platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp:
1262         (PlatformVideoWindow::prepareForOverlay):
1263
1264 2010-10-19  Ben Murdoch  <benm@google.com>
1265
1266         Reviewed by Steve Block.
1267
1268         Missing support for document.createTouch and document.createTouchList
1269         https://bugs.webkit.org/show_bug.cgi?id=47676
1270
1271         These APIs are used by many sites to detect support for touch events.
1272
1273         Implement the APIs according to the documentation at:
1274         http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html
1275
1276         Tests: fast/events/touch/document-create-touch-list.html
1277                fast/events/touch/document-create-touch.html
1278
1279         * bindings/js/JSBindingsAllInOne.cpp: Add new files to list.
1280         * bindings/js/JSTouchCustom.cpp: Added.
1281         (WebCore::toJSNewlyCreated):
1282         * bindings/js/JSTouchListCustom.cpp: Added.
1283         (WebCore::toJSNewlyCreated):
1284         * bindings/scripts/CodeGeneratorJS.pm:
1285         * dom/Document.cpp:
1286         (WebCore::Document::createTouch):
1287         (WebCore::Document::createTouchList):
1288         * dom/Document.h:
1289         * dom/Document.idl: Add createTouch and createTouchList functions.
1290         * Android.jscbindings.mk: Update makefiles.
1291         * CMakeLists.txt: Ditto.
1292         * GNUmakefile.am: Ditto.
1293         * WebCore.gypi: Ditto.
1294         * WebCore.pro: Ditto.
1295
1296
1297 2010-10-19  Pavel Feldman  <pfeldman@chromium.org>
1298
1299         Reviewed by Yury Semikhatsky.
1300
1301         Web Inspector: migrate from legacy Object.properties to Object.keys, remove dead code.
1302         https://bugs.webkit.org/show_bug.cgi?id=47890
1303
1304         * inspector/front-end/ConsoleView.js:
1305         (WebInspector.ConsoleView.prototype._reportCompletions):
1306         * inspector/front-end/ElementsPanel.js:
1307         (WebInspector.ElementsPanel):
1308         * inspector/front-end/ExtensionServer.js:
1309         (WebInspector.ExtensionServer.prototype._onGetResources):
1310         * inspector/front-end/HAREntry.js:
1311         (WebInspector.HARLog.prototype.build):
1312         * inspector/front-end/StylesSidebarPane.js:
1313         (WebInspector.StylePropertyTreeElement.prototype.):
1314         (WebInspector.StylePropertyTreeElement.prototype):
1315         * inspector/front-end/utilities.js:
1316
1317 2010-10-19  Pavel Feldman  <pfeldman@chromium.org>
1318
1319         Reviewed by Yury Semikhatsky.
1320
1321         Web Inspector: do not access ResourcePanel from resources directly.
1322         https://bugs.webkit.org/show_bug.cgi?id=47892
1323
1324         * inspector/front-end/Resource.js:
1325         (WebInspector.Resource.prototype.set documentURL):
1326         (WebInspector.Resource.prototype.set startTime):
1327         (WebInspector.Resource.prototype.set responseReceivedTime):
1328         (WebInspector.Resource.prototype.set endTime):
1329         (WebInspector.Resource.prototype.set resourceSize):
1330         (WebInspector.Resource.prototype.set expectedContentLength):
1331         (WebInspector.Resource.prototype.set category):
1332         (WebInspector.Resource.prototype.set cached):
1333         (WebInspector.Resource.prototype.set mimeType):
1334         (WebInspector.Resource.prototype.get requestHeaders):
1335         (WebInspector.Resource.prototype.set requestHeaders):
1336         (WebInspector.Resource.prototype.get responseHeaders):
1337         (WebInspector.Resource.prototype.set responseHeaders):
1338         * inspector/front-end/ResourcesPanel.js:
1339         (WebInspector.ResourcesPanel.prototype.addResource):
1340         (WebInspector.ResourcesPanel.prototype.refreshResource):
1341         (WebInspector.ResourcesPanel.prototype._recreateViewForResourceIfNeeded):
1342         (WebInspector.ResourcesPanel.prototype._resourceViewIsConsistentWithCategory):
1343         (WebInspector.ResourceGraph):
1344         (WebInspector.ResourceGraph.prototype.refresh):
1345         * inspector/front-end/inspector.js:
1346         (WebInspector.updateResource):
1347
1348 2010-10-19  Yuta Kitamura  <yutak@chromium.org>
1349
1350         Reviewed by Pavel Feldman.
1351
1352         Make sure WebSocket resource has the url field when it is created.
1353
1354         Web Inspector: Uncaught TypeError when connection to WebSocket server is refused
1355         https://bugs.webkit.org/show_bug.cgi?id=47891
1356
1357         * inspector/InspectorResource.cpp:
1358         (WebCore::InspectorResource::createWebSocket):
1359
1360 2010-10-19  Hayato Ito  <hayato@chromium.org>
1361
1362         Reviewed by Darin Adler.
1363
1364         Make CSS style selector non-recursive.
1365         https://bugs.webkit.org/show_bug.cgi?id=43783
1366
1367         This change is one of the required changes to fix the following master bug:
1368         https://bugs.webkit.org/show_bug.cgi?id=42806
1369
1370         To avoid recursion, we prepare a call stack and maintain a list of
1371         function call state by ourselves and try matching iteratively.
1372
1373         Test: fast/css/long-css-selector-matches.html
1374
1375         * css/CSSStyleSelector.cpp:
1376         (WebCore::CSSStyleSelector::SelectorChecker::checkSelector):
1377         (WebCore::CSSStyleSelector::checkSelector):
1378         * css/CSSStyleSelector.h:
1379
1380 2010-10-19  Sheriff Bot  <webkit.review.bot@gmail.com>
1381
1382         Unreviewed, rolling out r70034.
1383         http://trac.webkit.org/changeset/70034
1384         https://bugs.webkit.org/show_bug.cgi?id=47889
1385
1386         "Gustavo's bot is lame" (Requested by xan_ on #webkit).
1387
1388         * platform/network/soup/CookieJarSoup.cpp:
1389         (WebCore::defaultCookieJar):
1390         (WebCore::setCookies):
1391         * platform/network/soup/ResourceHandleSoup.cpp:
1392         (WebCore::ResourceHandle::prepareForURL):
1393         (WebCore::restartedCallback):
1394         (WebCore::startHttp):
1395         * platform/network/soup/ResourceRequestSoup.cpp:
1396         (WebCore::ResourceRequest::toSoupMessage):
1397         (WebCore::ResourceRequest::updateFromSoupMessage):
1398
1399 2010-10-19  Xan Lopez  <xlopez@igalia.com>
1400
1401         Reviewed by Martin Robinson.
1402
1403         [GTK] Bump minimum requirement for libsoup to 2.30
1404         https://bugs.webkit.org/show_bug.cgi?id=46176
1405
1406         Bump minimum required libsoup version to 2.30.
1407
1408         * platform/network/soup/CookieJarSoup.cpp:
1409         (WebCore::defaultCookieJar):
1410         (WebCore::setCookies):
1411         * platform/network/soup/ResourceHandleSoup.cpp:
1412         (WebCore::ResourceHandle::prepareForURL):
1413         (WebCore::restartedCallback):
1414         (WebCore::startHttp):
1415         * platform/network/soup/ResourceRequestSoup.cpp:
1416         (WebCore::ResourceRequest::toSoupMessage):
1417         (WebCore::ResourceRequest::updateFromSoupMessage):
1418
1419 2010-10-19  Xan Lopez  <xlopez@igalia.com>
1420
1421         Reviewed by Martin Robinson.
1422
1423         Fix distcheck, take 2.
1424
1425         * GNUmakefile.am: also move the generated CSS hash files to the
1426         build dir.
1427
1428 2010-10-18  Kent Tamura  <tkent@chromium.org>
1429
1430         Reviewed by Dimitri Glazkov.
1431
1432         Should not save state of a detached form control.
1433         https://bugs.webkit.org/show_bug.cgi?id=47811
1434
1435         Test: fast/forms/state-save-of-detached-control.html
1436
1437         * html/HTMLFormControlElement.cpp:
1438         (WebCore::HTMLFormControlElementWithState::shouldSaveAndRestoreFormControlState):
1439           If the node is detached, don't save the state.
1440
1441 2010-10-18  Xan Lopez  <xlopez@igalia.com>
1442
1443         Reviewed by Martin Robinson.
1444
1445         * GNUmakefile.am: add missing files.
1446
1447 2010-10-18  Oliver Hunt  <oliver@apple.com>
1448
1449         Reviewed by Sam Weinig.
1450
1451         REGRESSION: Feedly extension crashes Webkit
1452         https://bugs.webkit.org/show_bug.cgi?id=45811
1453
1454         The basic problem was the deserializer was holding a pointer into
1455         the constant pool, but if you were sufficiently unlucky then the
1456         constant pool would be moved while still relying on the pointer,
1457         which leads to badness.
1458
1459         I looked at just making all the sites this could happen extract the
1460         right string/jsstring before any possible allocations, but it seemed
1461         too fragile so i've gone for a forwarding object as the solution.
1462
1463         * bindings/js/SerializedScriptValue.cpp:
1464         (WebCore::CloneDeserializer::CachedStringRef::CachedStringRef):
1465         (WebCore::CloneDeserializer::CachedStringRef::operator->):
1466         (WebCore::CloneDeserializer::readStringData):
1467         (WebCore::CloneDeserializer::readFile):
1468         (WebCore::CloneDeserializer::readTerminal):
1469         (WebCore::CloneDeserializer::deserialize):
1470
1471 2010-10-18  Chris Rogers  <crogers@google.com>
1472
1473         Reviewed by Chris Fleizach.
1474
1475         Add AudioResampler files
1476         https://bugs.webkit.org/show_bug.cgi?id=47623
1477
1478         No new tests since audio API is not yet implemented.
1479
1480         * platform/audio/AudioResampler.cpp: Added.
1481         (WebCore::AudioResampler::AudioResampler):
1482         (WebCore::AudioResampler::configureChannels):
1483         (WebCore::AudioResampler::process):
1484         (WebCore::AudioResampler::setRate):
1485         (WebCore::AudioResampler::reset):
1486         * platform/audio/AudioResampler.h: Added.
1487         (WebCore::AudioResampler::~AudioResampler):
1488         (WebCore::AudioResampler::rate):
1489
1490 2010-10-18  Vangelis Kokkevis  <vangelis@chromium.org>
1491
1492         Reviewed by James Robinson.
1493
1494         [chromium] Prevent the creation of very large textures for layers by switching
1495         to "large layer" mode when a texture is larger than some fixed reasonable size
1496         (set to 2000 pixels for now).
1497         https://bugs.webkit.org/show_bug.cgi?id=47751
1498
1499         The code also changes the large layer logic to use the current scissor rect used
1500         by the compositor instead of the visible rect to determine how to clip large layers.
1501         This will provide additional texture savings. In addition, the various layer rects
1502         have been converted to use integers instead of floats to preserve uniformity in the code.
1503         
1504         Tests: Existing large layer layout tests including huge-layer and huge-layer-img
1505
1506         * platform/graphics/chromium/ContentLayerChromium.cpp:
1507         (WebCore::ContentLayerChromium::requiresClippedUpdateRect):
1508         (WebCore::ContentLayerChromium::calculateClippedUpdateRect):
1509         * platform/graphics/chromium/LayerChromium.cpp:
1510         (WebCore::LayerChromium::getDrawRect):
1511         * platform/graphics/chromium/LayerChromium.h:
1512         * platform/graphics/chromium/LayerRendererChromium.cpp:
1513         (WebCore::LayerRendererChromium::drawLayers):
1514         (WebCore::LayerRendererChromium::drawLayersRecursive):
1515         (WebCore::LayerRendererChromium::scissorToRect):
1516         * platform/graphics/chromium/LayerRendererChromium.h:
1517         (WebCore::LayerRendererChromium::currentScissorRect):
1518
1519 2010-10-18  Jia Pu  <jpu@apple.com>
1520
1521         Reviewed by Stephanie Lewis.
1522
1523         Correct the description of manual test: autocorrection-cancelled-by-typing-1.html
1524         https://bugs.webkit.org/show_bug.cgi?id=47722
1525         <rdar://problem/8556206>
1526
1527         * manual-tests/autocorrection/autocorrection-cancelled-by-typing-1.html: Update description
1528           to match the test content.
1529
1530 2010-10-18  Martin Robinson  <mrobinson@igalia.com>
1531
1532         Build fix for newer versions of GTK+ 2.0. Instead of using GDK_DISPLAY()
1533         use GDK_DRAWABLE_XDISPLAY(gdk_display_get_default()). GDK_DISPLAY() was
1534         recently deprecated and the latter method has been available since GTK+
1535         2.2.
1536
1537         * plugins/gtk/PluginViewGtk.cpp:
1538         (WebCore::PluginView::updatePluginWidget):
1539         (WebCore::PluginView::paint):
1540         (WebCore::PluginView::initXEvent):
1541         (WebCore::PluginView::platformGetValue):
1542         (WebCore::getVisualAndColormap):
1543         (WebCore::PluginView::platformStart):
1544         (WebCore::PluginView::platformDestroy):
1545
1546 2010-10-18  Ryosuke Niwa  <rniwa@webkit.org>
1547
1548         Reviewed by Adam Barth.
1549
1550         elementCannotHaveEndTag should be a member function of MarkupAccumulator
1551         https://bugs.webkit.org/show_bug.cgi?id=47846
1552
1553         Moved elementCannotHaveEndTag into MarkupAccumulator.
1554
1555         No new tests are added since this is a cleanup.
1556
1557         * editing/MarkupAccumulator.cpp:
1558         (WebCore::MarkupAccumulator::elementCannotHaveEndTag): Added.
1559         * editing/MarkupAccumulator.h: Added MarkupAccumulator::elementCannotHaveEndTag.
1560         * editing/markup.cpp: Removed elementCannotHaveEndTag.
1561         * editing/markup.h: Removed elementCannotHaveEndTag.
1562
1563 2010-10-18  Johnny Ding  <jnd@chromium.org>
1564
1565         Reviewed by Adam Barth.
1566
1567         Set the right referent sourceURL for the script with force user gesture.
1568         https://bugs.webkit.org/show_bug.cgi?id=37138
1569
1570         Because empty sourceURL indicates running script with force user gesture,
1571         make WebKit use document.url() as referent sourceURL (Since it uses blank
1572         URL instead empty if the input URL is empty) if WebKit isn't running the
1573         script from a hyper-link.
1574
1575         Test: fast/events/popup-blocked-from-window-open.html
1576
1577         * bindings/ScriptControllerBase.cpp:
1578         (WebCore::ScriptController::executeScript):
1579         * bindings/js/ScriptController.cpp:
1580         (WebCore::ScriptController::executeScriptInWorld):
1581
1582 2010-10-18  Darin Adler  <darin@apple.com>
1583
1584         * dom/Node.h: Fix ancient typo in just-modified comment.
1585
1586 2010-10-18  Darin Adler  <darin@apple.com>
1587
1588         Reviewed by Alexey Proskuryakov.
1589
1590         Remove some functions from class Node and make a few others non-virtual
1591         https://bugs.webkit.org/show_bug.cgi?id=47735
1592
1593         Refactoring. No new tests.
1594
1595         * bindings/js/JSNodeCustom.cpp:
1596         (WebCore::JSNode::markChildren): Added a FIXME about the use of the virtual
1597         ownerDocument function.
1598
1599         * dom/ContainerNode.cpp:
1600         (WebCore::ContainerNode::removeChildren): Removed the unused return value.
1601
1602         * dom/ContainerNode.h: Made insertBefore, replaceChild, removeChild, and
1603         appendChild non-virtual for clarity and performance. Made removeChildren
1604         non-virtual and removed its return value. Moved the inline Node functions
1605         that call through to ContainerNode into this file since the old way involved
1606         an extra level of inline function but otherwise had no advantages.
1607
1608         * dom/Element.h: Moved isMathMLElement here because there is no call site
1609         that needs to call it on a Node*. We can always move it back if we need to,
1610         but it's better to have less in the Node class.
1611
1612         * dom/Node.cpp:
1613         (WebCore::Node::insertBefore): Added an isContainerNode check so this can
1614         be non-virtual. There are very few callers who call this function on Node.
1615         If we want to optimize them further we can make the isContainerNode check
1616         inline in the future.
1617         (WebCore::Node::replaceChild): Ditto.
1618         (WebCore::Node::removeChild): Ditto.
1619         (WebCore::Node::appendChild): Ditto.
1620         (WebCore::Node::remove): Removed unneeded ref/unref because
1621         ContainerNode::removeChild already does this.
1622         (WebCore::Node::createRendererIfNeeded): Removed #if around call to
1623         childShouldCreateRenderer since it's needed even without SVG and XHTMLMP.
1624
1625         * dom/Node.h: Moved definitions of inline functions that depend on
1626         ContainerNode to the ContainerNode.h header. They already required inclusion
1627         of that header, so there is no functional change. Made insertBefore,
1628         replaceChild, removeChild, and appendChild non-virtual. There are very few
1629         callers of these functions on this class. Moved isMathMLElement to Element.
1630         Added a FIXME about the name of eventAncestors. Fixed comment formatting.
1631         Eliminated unused isEditableBlock function. Moved the body of the
1632         enclosingInlineElement function to the editing file that was the only
1633         call site. Removed the previousEditable and nextEditable functions,
1634         incorporating their bodies into the one place they were called.
1635         Took the childShouldCreateRenderer function out of #if since it's
1636         now used by the implementation of the <noscript> element.
1637
1638         * dom/Position.cpp:
1639         (WebCore::nextRenderedEditable): Rewrote the function to use nextLeafNode
1640         instead of nextEditable.
1641         (WebCore::previousRenderedEditable): Rewrote the function to use
1642         previousLeafNode instead of previousEditable.
1643
1644         * editing/ReplaceSelectionCommand.cpp:
1645         (WebCore::enclosingInline): Moved function here from the Node class. Also
1646         fixed an incorrect cast this function did, which assumed the function
1647         result was always an element, which the function does not guarantee.
1648         (WebCore::ReplaceSelectionCommand::doApply): Call the function above.
1649
1650         * history/HistoryItem.cpp: Added include of MathExtras.h.
1651
1652 2010-10-18  Yongjun Zhang  <yongjun_zhang@apple.com>
1653
1654         Reviewed by Darin Adler.
1655
1656         Missing support for document.createEvent("OrientationEvent")
1657         https://bugs.webkit.org/show_bug.cgi?id=32492
1658
1659         Add support for document.createEvent("OrientationEvent") to help unit testing of
1660         onOrientationChange event.
1661
1662         Test: fast/dom/DeviceOrientation/create-event-onorientationchange.html
1663
1664         * dom/Document.cpp:
1665         (WebCore::Document::createEvent):
1666
1667 2010-10-18  Jeremy Orlow  <jorlow@chromium.org>
1668
1669         Reviewed by Darin Adler.
1670
1671         DOMStringList should return null if the index is out of range
1672         https://bugs.webkit.org/show_bug.cgi?id=47829
1673
1674         When item() returns a null string, it needs to be passed to JS as
1675         null. The indexed getter will then magically do the right thing.
1676         So all that's left is having DOMStringList::item() return null when
1677         the index is out of bounds.
1678
1679         * dom/DOMStringList.cpp:
1680         (WebCore::DOMStringList::item):
1681         * dom/DOMStringList.h:
1682         * dom/DOMStringList.idl:
1683
1684 2010-10-18  Girish Ramakrishnan  <girish@forwardbias.in>
1685
1686         Reviewed by Ariya Hidayat.
1687
1688         [Qt] Implement Accelerated Composition for NPAPI Plugins.
1689
1690         https://bugs.webkit.org/show_bug.cgi?id=35524
1691
1692         * plugins/PluginView.h:
1693         (WebCore::PluginView::platformLayer):
1694         * plugins/qt/PluginViewQt.cpp:
1695         (WebCore::PluginGraphicsLayerQt::PluginGraphicsLayerQt):
1696         (WebCore::PluginGraphicsLayerQt::~PluginGraphicsLayerQt):
1697         (WebCore::PluginGraphicsLayerQt::paint):
1698         (WebCore::PluginView::updatePluginWidget):
1699         (WebCore::PluginView::paint):
1700         (WebCore::PluginView::invalidateRect):
1701         (WebCore::PluginView::invalidateRegion):
1702         (WebCore::PluginView::platformStart):
1703         (WebCore::PluginView::platformLayer):
1704
1705 2010-10-18  Stuart Morgan  <stuartmorgan@chromium.org>
1706
1707         Reviewed by Eric Seidel.
1708
1709         Switch to using the new Carbon NPAPI event declarations, and remove
1710         the old ones.
1711
1712         https://bugs.webkit.org/show_bug.cgi?id=40784
1713
1714         * bridge/npapi.h:
1715         * plugins/mac/PluginViewMac.mm:
1716         (WebCore::PluginView::setFocus):
1717         (WebCore::PluginView::handleMouseEvent):
1718
1719 2010-10-18  Pavel Feldman  <pfeldman@chromium.org>
1720
1721         Reviewed by Yury Semikhatsky.
1722
1723         Web Inspector: comment out resource manager instantiation on front-end side.
1724         https://bugs.webkit.org/show_bug.cgi?id=47823
1725
1726         * inspector/front-end/inspector.js:
1727
1728 2010-10-18  Andrei Popescu  <andreip@google.com>
1729
1730         Reviewed by Jeremy Orlow.
1731
1732         The description parameter of IDBFactory::open() should be mandatory.
1733         https://bugs.webkit.org/show_bug.cgi?id=47835
1734
1735         Makes the description parameter mandatory, as per the IndexedDatabase specification.
1736         Modified existing tests to cover this change.
1737
1738         * storage/IDBDatabaseBackendImpl.cpp:
1739         (WebCore::extractMetaData):
1740         (WebCore::setMetaData):
1741         (WebCore::IDBDatabaseBackendImpl::IDBDatabaseBackendImpl):
1742         * storage/IDBFactory.cpp:
1743         (WebCore::IDBFactory::open):
1744         * storage/IDBFactory.h:
1745         * storage/IDBFactory.idl:
1746
1747 2010-10-18  Xiaomei Ji  <xji@chromium.org>
1748
1749         Reviewed by David Levin.
1750
1751         Code cleanup: Move most function members in TextRunWorker from inlined.
1752         https://bugs.webkit.org/show_bug.cgi?id=47732
1753
1754         No functionality change, so no tests added.
1755
1756         * platform/graphics/chromium/FontLinux.cpp:
1757         (WebCore::TextRunWalker::setWordSpacingAdjustment):
1758         (WebCore::TextRunWalker::setLetterSpacingAdjustment):
1759         (WebCore::TextRunWalker::setXOffsetToZero):
1760         (WebCore::TextRunWalker::rtl):
1761         (WebCore::TextRunWalker::glyphs):
1762         (WebCore::TextRunWalker::length):
1763         (WebCore::TextRunWalker::xPositions):
1764         (WebCore::TextRunWalker::advances):
1765         (WebCore::TextRunWalker::width):
1766         (WebCore::TextRunWalker::logClusters):
1767         (WebCore::TextRunWalker::numCodePoints):
1768         (WebCore::TextRunWalker::fontPlatformDataForScriptRun):
1769         (WebCore::TextRunWalker::isCodepointSpace):
1770         (WebCore::TextRunWalker::TextRunWalker):
1771         (WebCore::TextRunWalker::~TextRunWalker):
1772         (WebCore::TextRunWalker::isWordBreak):
1773         (WebCore::TextRunWalker::setPadding):
1774         (WebCore::TextRunWalker::reset):
1775         (WebCore::TextRunWalker::setBackwardsIteration):
1776         (WebCore::TextRunWalker::nextScriptRun):
1777         (WebCore::TextRunWalker::widthOfFullRun):
1778         (WebCore::TextRunWalker::getTextRun):
1779         (WebCore::TextRunWalker::getNormalizedTextRun):
1780         (WebCore::TextRunWalker::setupFontForScriptRun):
1781         (WebCore::TextRunWalker::allocHarfbuzzFont):
1782         (WebCore::TextRunWalker::deleteGlyphArrays):
1783         (WebCore::TextRunWalker::createGlyphArrays):
1784         (WebCore::TextRunWalker::resetGlyphArrays):
1785         (WebCore::TextRunWalker::shapeGlyphs):
1786         (WebCore::TextRunWalker::setGlyphXPositions):
1787         (WebCore::TextRunWalker::mirrorCharacters):
1788
1789 2010-10-18  No'am Rosenthal  <noam.rosenthal@nokia.com>
1790
1791         Reviewed by Andreas Kling.
1792
1793         [Qt] AC rendering bugs
1794         There were a few missing connections in Qt AC between GraphicsLayer and plugins, like changing the plugin's geometry to the layer's
1795         contentsRect, and making sure media layers handle ParentChange events and setContentsNeedsDisplay. Now media layers behave correctly.
1796
1797         https://bugs.webkit.org/show_bug.cgi?id=47571
1798
1799         No new tests. This is in preparation for fixing AC+plugins, which already has tests that don't work yet with Qt.
1800
1801         * platform/graphics/qt/GraphicsLayerQt.cpp:
1802         (WebCore::GraphicsLayerQtImpl::flushChanges):
1803         (WebCore::GraphicsLayerQt::setContentsNeedsDisplay):
1804         * platform/graphics/qt/GraphicsLayerQt.h:
1805
1806 2010-10-18  Pavel Feldman  <pfeldman@chromium.org>
1807
1808         Reviewed by Simon Fraser.
1809
1810         Web Inspector: [crash] when Inspector Open in CSSStyleSelector::loadPendingImages().
1811         https://bugs.webkit.org/show_bug.cgi?id=46224
1812
1813         * CMakeLists.txt:
1814         * GNUmakefile.am:
1815         * WebCore.gypi:
1816         * WebCore.pro:
1817         * WebCore.vcproj/WebCore.vcproj:
1818         * WebCore.xcodeproj/project.pbxproj:
1819         * inspector/InspectorClient.cpp: Added.
1820         (WebCore::InspectorClient::doDispatchMessageOnFrontendPage):
1821         * inspector/InspectorClient.h:
1822         (WebCore::InspectorClient::InspectorClient):
1823
1824 2010-10-18  Andrei Popescu  <andreip@google.com>
1825
1826         Reviewed by Jeremy Orlow.
1827
1828         IDBKeyTree.h is no longer used.
1829         https://bugs.webkit.org/show_bug.cgi?id=47824
1830
1831         No new tests, just removing unused files.
1832
1833         * WebCore.gypi:
1834         * WebCore.xcodeproj/project.pbxproj:
1835         * storage/IDBKeyTree.h: Removed.
1836
1837 2010-10-18  Andreas Kling  <kling@webkit.org>
1838
1839         Unreviewed buildfix for Qt + V8.
1840         Add missing <wtf/text/CString.h> include.
1841
1842         * inspector/InspectorInstrumentation.cpp:
1843
1844 2010-10-18  Ilya Tikhonovsky  <loislo@chromium.org>
1845
1846         Reviewed by Yury Semikhatsky.
1847
1848         Web Inspector: toJSON serialization for Numbers should be fixed.
1849         DecimalNumber is used instead of printf.
1850
1851         https://bugs.webkit.org/show_bug.cgi?id=43832
1852
1853         * inspector/InspectorValues.cpp:
1854         (WebCore::InspectorBasicValue::writeJSON):
1855
1856 2010-10-18  Ilya Tikhonovsky  <loislo@chromium.org>
1857
1858         Reviewed by Yury Semikhatsky.
1859
1860         Web Inspector: [REGRESSION] Inspector window visible during run-webkit-tests.
1861         The initial state of an inspector setting should stay untouched
1862         if the profile has no value for it.
1863
1864         https://bugs.webkit.org/show_bug.cgi?id=47785
1865
1866         * inspector/InspectorState.cpp:
1867         (WebCore::InspectorState::loadFromSettings):
1868
1869 2010-10-18  Pavel Feldman  <pfeldman@chromium.org>
1870
1871         Reviewed by Yury Semikhatsky.
1872
1873         Web Inspector: tab headers on resource panel are 1px off on Mac.
1874         https://bugs.webkit.org/show_bug.cgi?id=47798
1875
1876         * inspector/front-end/inspector.css:
1877         (.tabbed-pane-header li):
1878
1879 2010-10-18  Pavel Feldman  <pfeldman@chromium.org>
1880
1881         Not reviewed. Build fix.
1882
1883         * inspector/InspectorResourceAgent.cpp:
1884         (WebCore::cachedResourceTypeString):
1885
1886 2010-10-17  Pavel Feldman  <pfeldman@chromium.org>
1887
1888         Reviewed by Yury Semikhatsky.
1889
1890         Web Inspector: Introduce InspectorResourceAgent.h/cpp and ResourceManager.js to
1891         fill network panel with data.
1892         https://bugs.webkit.org/show_bug.cgi?id=47779
1893         
1894         InspectorResourceAgent instance / JS part are introduced in this patch. Agent's lifetime is equal
1895         to the front-end's. This new resource agent does not have state, instead it covers two functions:
1896          1) forwards loader client messages to the front-end 2) is capable of building a tree of cached resources.
1897         (1) feeds network panel with data, (2) shows the resource tree in the new ResourcesPanel concept.
1898         This bug is for extracting this new InspectorResourceAgent class and its javascript counterpart.
1899         Once resources panel is refactored for the new concept, InspectorResource, InspectorController's
1900         resource-related routines, inspector.js's code dealing with resources, they all will be gone.
1901
1902         * WebCore.gypi:
1903         * WebCore.vcproj/WebCore.vcproj:
1904         * inspector/CodeGeneratorInspector.pm:
1905         * inspector/Inspector.idl:
1906         * inspector/InspectorApplicationCacheAgent.cpp:
1907         (WebCore::InspectorApplicationCacheAgent::didReceiveManifestResponse):
1908         * inspector/InspectorController.cpp:
1909         (WebCore::InspectorController::connectFrontend):
1910         (WebCore::InspectorController::releaseFrontendLifetimeAgents):
1911         (WebCore::InspectorController::didCommitLoad):
1912         (WebCore::InspectorController::frameDetachedFromParent):
1913         (WebCore::InspectorController::didLoadResourceFromMemoryCache):
1914         (WebCore::InspectorController::identifierForInitialRequest):
1915         (WebCore::InspectorController::willSendRequest):
1916         (WebCore::InspectorController::markResourceAsCached):
1917         (WebCore::InspectorController::didReceiveResponse):
1918         (WebCore::InspectorController::didReceiveContentLength):
1919         (WebCore::InspectorController::didFinishLoading):
1920         (WebCore::InspectorController::didFailLoading):
1921         (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
1922         (WebCore::InspectorController::scriptImported):
1923         (WebCore::InspectorController::didCreateWebSocket):
1924         (WebCore::InspectorController::willSendWebSocketHandshakeRequest):
1925         (WebCore::InspectorController::didReceiveWebSocketHandshakeResponse):
1926         (WebCore::InspectorController::didCloseWebSocket):
1927         * inspector/InspectorController.h:
1928         * inspector/InspectorResource.cpp:
1929         (WebCore::InspectorResource::updateResponse):
1930         (WebCore::cachedResourceType):
1931         (WebCore::InspectorResource::type):
1932         (WebCore::InspectorResource::sourceString):
1933         (WebCore::InspectorResource::sourceBytes):
1934         (WebCore::InspectorResource::endTiming):
1935         * inspector/InspectorResourceAgent.cpp:
1936         (WebCore::InspectorResourceAgent::resourceContent):
1937         (WebCore::InspectorResourceAgent::resourceContentBase64):
1938         (WebCore::InspectorResourceAgent::resourceData):
1939         (WebCore::InspectorResourceAgent::cachedResource):
1940         (WebCore::buildObjectForHeaders):
1941         (WebCore::buildObjectForTiming):
1942         (WebCore::buildObjectForResourceRequest):
1943         (WebCore::buildObjectForResourceResponse):
1944         (WebCore::buildObjectForMainResource):
1945         (WebCore::cachedResourceTypeString):
1946         (WebCore::buildObjectForCachedResource):
1947         (WebCore::buildObjectForFrameResources):
1948         (WebCore::InspectorResourceAgent::~InspectorResourceAgent):
1949         (WebCore::InspectorResourceAgent::identifierForInitialRequest):
1950         (WebCore::InspectorResourceAgent::willSendRequest):
1951         (WebCore::InspectorResourceAgent::markResourceAsCached):
1952         (WebCore::InspectorResourceAgent::didReceiveResponse):
1953         (WebCore::InspectorResourceAgent::didReceiveContentLength):
1954         (WebCore::InspectorResourceAgent::didFinishLoading):
1955         (WebCore::InspectorResourceAgent::didFailLoading):
1956         (WebCore::InspectorResourceAgent::didLoadResourceFromMemoryCache):
1957         (WebCore::InspectorResourceAgent::setOverrideContent):
1958         (WebCore::InspectorResourceAgent::didCommitLoad):
1959         (WebCore::InspectorResourceAgent::frameDetachedFromParent):
1960         (WebCore::createReadableStringFromBinary):
1961         (WebCore::InspectorResourceAgent::didCreateWebSocket):
1962         (WebCore::InspectorResourceAgent::willSendWebSocketHandshakeRequest):
1963         (WebCore::InspectorResourceAgent::didReceiveWebSocketHandshakeResponse):
1964         (WebCore::InspectorResourceAgent::didCloseWebSocket):
1965         (WebCore::InspectorResourceAgent::cachedResources):
1966         (WebCore::InspectorResourceAgent::InspectorResourceAgent):
1967         * inspector/InspectorResourceAgent.h:
1968         (WebCore::InspectorResourceAgent::create):
1969         * inspector/InspectorStyleSheet.cpp:
1970         (WebCore::InspectorStyleSheet::resourceStyleSheetText):
1971         * inspector/front-end/ExtensionServer.js:
1972         (WebInspector.ExtensionServer.prototype._onRevealAndSelectResource):
1973         (WebInspector.ExtensionServer.prototype._onGetResourceContent):
1974         * inspector/front-end/Resource.js:
1975         (WebInspector.Resource.prototype.get responseReceivedTime):
1976         (WebInspector.Resource.prototype.set endTime):
1977         * inspector/front-end/Settings.js:
1978         * inspector/front-end/SourceView.js:
1979         (WebInspector.SourceView.prototype.setupSourceFrameIfNeeded):
1980         * inspector/front-end/WebKit.qrc:
1981         * inspector/front-end/inspector.css:
1982         (.tabbed-pane-header li):
1983         * inspector/front-end/inspector.html:
1984         * inspector/front-end/inspector.js:
1985         (WebInspector.updateResource):
1986         * loader/ResourceLoadNotifier.cpp:
1987         (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
1988         * loader/appcache/ApplicationCacheGroup.cpp:
1989         (WebCore::ApplicationCacheGroup::didReceiveResponse):
1990
1991 2010-10-16  Pavel Feldman  <pfeldman@chromium.org>
1992
1993         Reviewed by Yury Semikhatsky.
1994
1995         Web Inspector: brush up URL parsing on the front-end.
1996         https://bugs.webkit.org/show_bug.cgi?id=47772
1997
1998         * inspector/InspectorResource.cpp:
1999         (WebCore::InspectorResource::updateScriptObject):
2000         * inspector/front-end/AuditRules.js:
2001         (WebInspector.AuditRules.getDomainToResourcesMap):
2002         (WebInspector.AuditRules.CombineExternalResourcesRule.prototype.doRun):
2003         (WebInspector.AuditRules.MinimizeDnsLookupsRule.prototype.doRun):
2004         (WebInspector.AuditRules.ParallelizeDownloadRule.prototype.doRun):
2005         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
2006         (WebInspector.AuditRules.CookieSizeRule.prototype.processCookies):
2007         (WebInspector.AuditRules.StaticCookielessRule.prototype.processCookies):
2008         * inspector/front-end/CookieItemsView.js:
2009         (WebInspector.CookieItemsView.prototype._filterCookiesForDomain):
2010         * inspector/front-end/DOMAgent.js:
2011         (WebInspector.Cookies.cookieMatchesResourceURL):
2012         * inspector/front-end/Resource.js:
2013         (WebInspector.Resource):
2014         (WebInspector.Resource.prototype.set url):
2015         (WebInspector.Resource.prototype.get displayName):
2016         * inspector/front-end/ResourceCategory.js:
2017         (WebInspector.ResourceCategory.prototype.addResource):
2018         * inspector/front-end/ResourceView.js:
2019         (WebInspector.ResourceView):
2020         * inspector/front-end/inspector.js:
2021         (WebInspector.documentClick.followLink):
2022         (WebInspector.documentClick):
2023         (WebInspector.updateResource):
2024         (WebInspector.linkifyStringAsFragment):
2025         (WebInspector.resourceURLForRelatedNode):
2026         (WebInspector.completeURL):
2027         * inspector/front-end/utilities.js:
2028         (String.prototype.asParsedURL):
2029
2030 2010-10-17  Andreas Kling  <kling@webkit.org>
2031
2032         Reviewed by Kenneth Rohde Christiansen.
2033
2034         [Qt] Support custom open() verbs/methods in XMLHttpRequest
2035         https://bugs.webkit.org/show_bug.cgi?id=40476
2036
2037         Fall back to QNetworkAccessManager::CustomOperation for any HTTP verb
2038         that's not specifically supported by QNetworkAccessManager.
2039
2040         This prevents the infinite loop that otherwise occurs after sending
2041         an UnknownOperation request.
2042
2043         This change is covered by existing (skipped) tests that will be
2044         unskipped once the Qt bots are running Qt 4.7.
2045
2046         * platform/network/qt/QNetworkReplyHandler.cpp:
2047         (WebCore::QNetworkReplyHandler::httpMethod):
2048         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
2049         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
2050         * platform/network/qt/QNetworkReplyHandler.h:
2051
2052 2010-10-17  Adam Barth  <abarth@webkit.org>
2053
2054         Reviewed by Dimitri Glazkov.
2055
2056         Remove explicit passing of user gesture in NavigationScheduler
2057         https://bugs.webkit.org/show_bug.cgi?id=47786
2058
2059         As requested by Mr. Glazkov, remove more explicit passing of the user
2060         gesture state.  We now use a static to pass this information around.
2061
2062         * bindings/generic/BindingFrame.h:
2063         (WebCore::::navigateIfAllowed):
2064         * bindings/js/JSDOMWindowCustom.cpp:
2065         (WebCore::JSDOMWindow::setLocation):
2066         * bindings/js/JSLocationCustom.cpp:
2067         (WebCore::JSLocation::reload):
2068         * bindings/v8/custom/V8LocationCustom.cpp:
2069         (WebCore::V8Location::reloadCallback):
2070         * inspector/InspectorController.cpp:
2071         (WebCore::InspectorController::setResourceTrackingEnabled):
2072         (WebCore::InspectorController::reloadPage):
2073         * loader/NavigationScheduler.cpp:
2074         (WebCore::ScheduledNavigation::ScheduledNavigation):
2075         (WebCore::ScheduledURLNavigation::ScheduledURLNavigation):
2076         (WebCore::ScheduledRedirect::ScheduledRedirect):
2077         (WebCore::ScheduledLocationChange::ScheduledLocationChange):
2078         (WebCore::ScheduledRefresh::ScheduledRefresh):
2079         (WebCore::ScheduledHistoryNavigation::ScheduledHistoryNavigation):
2080         (WebCore::ScheduledFormSubmission::ScheduledFormSubmission):
2081         (WebCore::NavigationScheduler::scheduleRedirect):
2082         (WebCore::NavigationScheduler::mustLockBackForwardList):
2083         (WebCore::NavigationScheduler::scheduleLocationChange):
2084         (WebCore::NavigationScheduler::scheduleFormSubmission):
2085         (WebCore::NavigationScheduler::scheduleRefresh):
2086         (WebCore::NavigationScheduler::scheduleHistoryNavigation):
2087         * loader/NavigationScheduler.h:
2088         * loader/SubframeLoader.cpp:
2089         (WebCore::SubframeLoader::loadOrRedirectSubframe):
2090
2091 2010-10-17  Julien Chaffraix  <jchaffraix@codeaurora.org>
2092
2093         Reviewed by Andreas Kling.
2094
2095         'transparent' should be a valid color
2096         https://bugs.webkit.org/show_bug.cgi?id=45482
2097
2098         Test: svg/animations/svg-animate-color-transparent.svg
2099
2100         Based on previous work by Jan Erik Hanssen  <jhanssen@codeaurora.org>
2101
2102         * platform/ColorData.gperf: Added 'transparent' to the list of colors.
2103         Added the alpha to all the colors as it was needed to support the new color.
2104
2105         * platform/graphics/Color.cpp:
2106         (WebCore::Color::Color):
2107         (WebCore::Color::setNamedColor): Avoid setting the alpha as now it is not
2108         always 0xFF.
2109
2110 2010-10-17  Justin Schuh  <jschuh@chromium.org>
2111
2112         Reviewed by Nikolas Zimmermann.
2113
2114         Duplicate use element children in shadow tree.
2115         https://bugs.webkit.org/show_bug.cgi?id=47561
2116
2117         Test: svg/custom/use-nested-children.svg
2118
2119         * svg/SVGUseElement.cpp:
2120         (WebCore::SVGUseElement::expandUseElementsInShadowTree):
2121
2122 2010-10-17  Hyung Song  <beergun@company100.net>
2123
2124         Reviewed by David Levin.
2125
2126         Add !SINGLE_THREADED guard.
2127         https://bugs.webkit.org/show_bug.cgi?id=47608
2128
2129         For SINGLE_THREADED ports LockingMutex.tryLock() returns false.
2130         This will prevent interrupt() from falling into infinite loop.
2131
2132         * platform/sql/SQLiteDatabase.cpp:
2133         (WebCore::SQLiteDatabase::interrupt):
2134
2135 2010-10-17  Simon Fraser  <simon.fraser@apple.com>
2136
2137         Reviewed by Nikolas Zimmermann.
2138
2139         Very large and small numbers fail to round-trip through CSS
2140         https://bugs.webkit.org/show_bug.cgi?id=20674
2141         
2142         Use the new DecimalNumber functionality to convert CSS numberic values to strings
2143         using decimal notation, rather than %g (which can output scientific notation).
2144
2145         Test: fast/css/round-trip-values.html
2146
2147         * css/CSSPrimitiveValue.cpp:
2148         (WebCore::formatNumber):
2149         (WebCore::CSSPrimitiveValue::cssText):
2150
2151 2010-10-17  Cosmin Truta  <ctruta@chromium.org>
2152
2153         Reviewed by Nikolas Zimmermann.
2154
2155         Crash while processing ill-formed SVG with cycles
2156         https://bugs.webkit.org/show_bug.cgi?id=47498
2157
2158         Test: svg/custom/invalid-paint-shape-mask.svg
2159
2160         * rendering/SVGResources.cpp:
2161         (paintingResourceFromSVGPaint): Ensured that the painting resource is
2162         either a pattern resource or a gradient resource.
2163         (SVGResources::setClipper):
2164         (SVGResources::setFilter):
2165         (SVGResources::setMarkerStart):
2166         (SVGResources::setMarkerMid):
2167         (SVGResources::setMarkerEnd):
2168         (SVGResources::setMasker):
2169         (SVGResources::setFill):
2170         (SVGResources::setStroke): Added ASSERT statements for previously-unchecked
2171         preconditions.
2172
2173 2010-10-17  Alex Milowski  <alex@milowski.com>
2174
2175         Reviewed by Kenneth Rohde Christiansen.
2176
2177         Fixed extra whitespace above operators when they aren't stretched
2178         yet the stretch height is large.  Also, the baseline alignment
2179         was changed so that rows and operators interact appropriately now
2180         that operators don't have the extra white space.
2181
2182         * mathml/RenderMathMLOperator.cpp:
2183         * mathml/RenderMathMLRow.cpp:
2184
2185 2010-10-17  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
2186
2187         Reviewed by Antonio Gomes.
2188
2189         [Qt] Fix focusing of control elements on mouse click.
2190         Brings GTK fix to Qt platform.
2191         https://bugs.webkit.org/show_bug.cgi?id=40641
2192                         
2193         Test: fast/events/click-focus-control.html
2194
2195         * html/HTMLFormControlElement.cpp:
2196         (WebCore::HTMLFormControlElement::isMouseFocusable):
2197
2198 2010-10-17  Adam Barth  <abarth@webkit.org>
2199
2200         Reviewed by Dimitri Glazkov.
2201
2202         FrameLoader doesn't need an explicit userGesture parameter
2203         https://bugs.webkit.org/show_bug.cgi?id=47777
2204
2205         We used to pass around the user gesture state explicitly.  Now we use
2206         static state.  Explicitly passing the user gesture state to FrameLoader
2207         in these methods is pretty out-dated.
2208
2209         * bindings/ScriptControllerBase.cpp:
2210         (WebCore::ScriptController::executeIfJavaScriptURL):
2211         * bindings/generic/BindingDOMWindow.h:
2212         (WebCore::::createWindow):
2213         (WebCore::::open):
2214         * bindings/js/JSDOMWindowCustom.cpp:
2215         (WebCore::createWindow):
2216         (WebCore::JSDOMWindow::open):
2217         * bindings/js/JSDocumentCustom.cpp:
2218         (WebCore::JSDocument::setLocation):
2219         * bindings/js/ScriptController.h:
2220         * bindings/v8/ScriptController.h:
2221         * html/HTMLAnchorElement.cpp:
2222         (WebCore::handleLinkClick):
2223         * inspector/InspectorController.cpp:
2224         (WebCore::InspectorController::openInInspectedWindow):
2225         * loader/FrameLoader.cpp:
2226         (WebCore::FrameLoader::changeLocation):
2227         (WebCore::FrameLoader::urlSelected):
2228         (WebCore::FrameLoader::submitForm):
2229         * loader/FrameLoader.h:
2230         * loader/NavigationScheduler.cpp:
2231         (WebCore::ScheduledURLNavigation::fire):
2232         (WebCore::ScheduledRefresh::fire):
2233         (WebCore::ScheduledHistoryNavigation::fire):
2234         (WebCore::NavigationScheduler::scheduleLocationChange):
2235
2236 2010-10-17  Sergey A. Sukiyazov  <sergey.sukiyazov@gmail.com>
2237
2238         Reviewed by Andreas Kling
2239
2240         [Qt] Hovering the mouse over links produce a trail of underlined links (X11 paint engine)
2241         https://bugs.webkit.org/show_bug.cgi?id=42248
2242
2243         The problem will appear because coordinates of points may increase by 0.05f (if line width is odd) inside
2244         method GraphicsContext::adjustLineToPixelBoundaries(...) and become outside of text bounding rect htere,
2245         then the new point coordinates will be passed to Qt graphics engine.
2246
2247         The solution decreases Y cordinates of points inside drawLineForText(...) method only if Qt graphics engine
2248         is X11. The Y coordinates will be increase by 0.5f inside method adjustLineToPixelBoundaries(...),  which
2249         called from drawLine(...), and then inside Qt painting engine will be rounded to next greater integer value.
2250
2251         NOTE: This changes will affect only Qt X11 verision and if only X11 Painting Engine will be used.
2252
2253         No new tests.
2254
2255         * platform/graphics/qt/GraphicsContextQt.cpp:
2256         (WebCore::GraphicsContext::drawLineForText):
2257
2258 2010-10-17  Rob Buis  <rwlbuis@gmail.com>
2259
2260         Reviewed by Dirk Schulze.
2261
2262         Text under nested link dropped
2263         https://bugs.webkit.org/show_bug.cgi?id=46460
2264
2265         Allow links inside of tspan and textPath elements.
2266
2267         * svg/SVGTSpanElement.cpp:
2268         (WebCore::SVGTSpanElement::childShouldCreateRenderer):
2269         * svg/SVGTextPathElement.cpp:
2270         (WebCore::SVGTextPathElement::childShouldCreateRenderer):
2271
2272 2010-10-16  Kwang Yul Seo  <skyul@company100.net>
2273
2274         Reviewed by Kent Tamura.
2275
2276         [BREWMP] Port TextCodec
2277         https://bugs.webkit.org/show_bug.cgi?id=45797
2278
2279         Implement TextCodec with Brew MP's ICharsetConv.
2280         Only UTF-8 is supported for now.
2281
2282         * platform/text/TextEncoding.cpp:
2283         (WebCore::TextEncoding::encode):
2284         * platform/text/TextEncodingRegistry.cpp:
2285         (WebCore::buildBaseTextCodecMaps):
2286         * platform/text/brew/TextCodecBrew.cpp: Added.
2287         (WebCore::newTextCodecBrew):
2288         (WebCore::TextCodecBrew::registerBaseEncodingNames):
2289         (WebCore::TextCodecBrew::registerBaseCodecs):
2290         (WebCore::TextCodecBrew::registerExtendedEncodingNames):
2291         (WebCore::TextCodecBrew::registerExtendedCodecs):
2292         (WebCore::TextCodecBrew::TextCodecBrew):
2293         (WebCore::TextCodecBrew::~TextCodecBrew):
2294         (WebCore::TextCodecBrew::decode):
2295         (WebCore::TextCodecBrew::encode):
2296         * platform/text/brew/TextCodecBrew.h: Added.
2297
2298 2010-10-16  Patrick Gansterer  <paroga@webkit.org>
2299
2300         Unreviewed.
2301
2302         Build fix for !ENABLE(INSPECTOR) after r69844.
2303
2304         * inspector/InspectorState.h: Added ENABLE(INSPECTOR) guard.
2305
2306 2010-10-16  Patrick Gansterer  <paroga@webkit.org>
2307
2308         Unreviewed, build fix.
2309
2310         WinCE build fix for r69798.
2311
2312         * platform/text/wince/TextCodecWinCE.cpp: Added missing include.
2313
2314 2010-10-16  Johnny Ding  <jnd@chromium.org>
2315
2316         Reviewed by Adam Barth.
2317
2318         Requires a user gesture when opening file choose dialog.
2319         https://bugs.webkit.org/show_bug.cgi?id=47593
2320
2321         Test: fast/forms/input-file-not-open-without-gesture.html
2322
2323         * rendering/RenderFileUploadControl.cpp:
2324         (WebCore::RenderFileUploadControl::click):
2325
2326 2010-10-16  Alex Milowski  <alex@milowski.com>
2327
2328         Reviewed by Kenneth Rohde Christiansen.
2329
2330         Changed the vertical alignment within mfenced to baseline to
2331         match the rest of the containers (e.g. mrow) and adjusted the
2332         operator spacing to 0.1em.
2333
2334         Test: mathml/presentation/fenced-mi.xhtml
2335
2336         * css/mathml.css:
2337         * mathml/RenderMathMLFenced.cpp:
2338
2339 2010-10-16  Patrick Gansterer  <paroga@webkit.org>
2340
2341         Reviewed by Adam Barth.
2342
2343         Rename StringHasherFunctions.h to StringHasher.h
2344         https://bugs.webkit.org/show_bug.cgi?id=47200
2345
2346         * ForwardingHeaders/wtf/StringHashFunctions.h: Removed.
2347         * ForwardingHeaders/wtf/StringHasher.h: Copied from WebCore/ForwardingHeaders/wtf/StringHashFunctions.h. 
2348  
2349 2010-10-15  Ryosuke Niwa  <rniwa@webkit.org>
2350
2351         Reviewed by Darin Adler.
2352
2353         unlink removes inline style of anchor elements
2354         https://bugs.webkit.org/show_bug.cgi?id=47424
2355
2356         The bug was caused by our not extracting styles when the anchor element is removed by removeInlineStyle.
2357         Because we removed the element without pushing its inline style down, we lost style information.
2358
2359         Fixed the bug by pushing down styles in removeInlineStyle as done in pushDownInlineStyleAroundNode.
2360         Also fixed a bug in addInlineStyleIfNeeded where StyleChange incorrectly removed styles of the container
2361         node as supposed to that of startNode from the style to apply when startNode is not an element.
2362
2363         Test: editing/execCommand/toggle-unlink.html
2364
2365         * editing/ApplyStyleCommand.cpp:
2366         (WebCore::ApplyStyleCommand::removeInlineStyleFromElement): To prevent a similar bug in the future,
2367         added an assert that extractedStyle is specified whenever we're removing a styled element.
2368         (WebCore::ApplyStyleCommand::removeInlineStyle):
2369         (WebCore::ApplyStyleCommand::addInlineStyleIfNeeded):
2370
2371 2010-10-15  Ryosuke Niwa  <rniwa@webkit.org>
2372
2373         Reviewed by Tony Chang.
2374
2375         serializeNodesWithNamespaces should be in MarkupAccumulator
2376         https://bugs.webkit.org/show_bug.cgi?id=47749
2377
2378         Moved serializeNodesWithNamespaces to MarkupAccumulator, and renamed it to serializeNodes.
2379         MarkupAccumulator::serializeNode now returns the resultant string instead of having a separate takeResults().
2380         Added several helper functions to MarkupAccumulator.
2381
2382         No new tests are added since this is a cleanup.
2383
2384         * editing/MarkupAccumulator.cpp:
2385         (WebCore::MarkupAccumulator::serializeNodes): Wrapper for serializeNodes and concatenateMarkup.
2386         (WebCore::MarkupAccumulator::serializeNodesWithNamespaces): Moved from markup.cpp
2387         (WebCore::MarkupAccumulator::appendStartTag): Calls appendString instead of appending into m_succeedingMarkup directly.
2388         (WebCore::MarkupAccumulator::appendEndTag): Ditto.
2389         (WebCore::MarkupAccumulator::totalLength): Added; extracted from takeResults.
2390         (WebCore::MarkupAccumulator::concatenateMarkup): Ditto.
2391         * editing/MarkupAccumulator.h:
2392         (WebCore::MarkupAccumulator::length): Added; calls totalLength.
2393         * editing/markup.cpp:
2394         (WebCore::StyledMarkupAccumulator::appendString): Added; calls MarkupAccumulator's appendString.
2395         (WebCore::StyledMarkupAccumulator::wrapWithStyleNode): Calls appendString.
2396         (WebCore::StyledMarkupAccumulator::takeResults): Calls length, totalLength, and concatenateMarkup.
2397         (WebCore::StyledMarkupAccumulator::serializeNodes): Became a member function.
2398         (WebCore::createMarkup): Uses MarkupAccumulator.
2399
2400 2010-10-15  Kinuko Yasuda  <kinuko@google.com>
2401
2402         Reviewed by Jian Li.
2403
2404         Implement FileEntrySync.file() in FileSystem API
2405         https://bugs.webkit.org/show_bug.cgi?id=47310
2406
2407         Tests: fast/filesystem/workers/file-from-file-entry-sync.html
2408                fast/filesystem/workers/file-from-file-entry.html
2409
2410         * fileapi/DOMFileSystem.cpp:
2411         (WebCore::DOMFileSystem::createFile): Added.
2412         * fileapi/DOMFileSystem.h:
2413         * fileapi/DOMFileSystemSync.cpp:
2414         (WebCore::DOMFileSystemSync::createFile): Added.
2415         * fileapi/DOMFileSystemSync.h:
2416         * fileapi/DirectoryReaderBase.h: Added 'virtual path' comment.
2417         * fileapi/EntryBase.h: Added 'virtual path' comment.
2418         * fileapi/FileEntry.cpp:
2419         (WebCore::FileEntry::file): Changed to use DOMFileSystem::createFile.
2420         * fileapi/FileEntrySync.cpp:
2421         (WebCore::FileEntrySync::file): Implemented.
2422         * fileapi/FileEntrySync.h:
2423         * fileapi/FileEntrySync.idl: Added file().
2424
2425 2010-10-15  Nico Weber  <thakis@chromium.org>
2426
2427         Reviewed by Eric Carlson.
2428
2429         Make sure to update the current graphics context when calling out to AppKit.
2430         https://bugs.webkit.org/show_bug.cgi?id=47757
2431
2432         Like r57741, but for the spellchecking highlight
2433
2434         * platform/graphics/mac/GraphicsContextMac.mm:
2435         (WebCore::GraphicsContext::drawLineForTextChecking):
2436
2437 2010-10-15  Brian Weinstein  <bweinstein@apple.com>
2438
2439         Reviewed by Sam Weinig.
2440
2441         REGRESSION(r69850) Loading apple.com/startpage in WebKit on Windows gets a bad request.
2442         https://bugs.webkit.org/show_bug.cgi?id=47753
2443         <rdar://problem/8558242>
2444         
2445         r69850 switched over to a different way of concatenating WebCore strings, but ran into an issue
2446         where some Windows calls were returning null terminated strings, and this breaks the new
2447         method of concatenation.
2448         
2449         GetLocaleInfo returns a null-terminated string, but WebCore strings are non-null terminated,
2450         so once we create our WebCore string, we want to trim off the null terminating character before
2451         we return the localeInfo.
2452
2453         Test: fast/dom/navigator-userAgent.html
2454
2455         * platform/win/Language.cpp:
2456         (WebCore::localeInfo):
2457
2458 2010-10-15  Alexey Proskuryakov  <ap@apple.com>
2459
2460         Trying to fix crashes on Leopard buildbot.
2461
2462         * loader/loader.cpp:
2463         (WebCore::Loader::Host::didFinishLoading):
2464         (WebCore::Loader::Host::didFail):
2465         Moved logging higher in the function - it seems that CachedResource can be already destroyed.
2466
2467         * platform/Logging.cpp: (WebCore::getChannelFromName):
2468         * platform/mac/LoggingMac.mm: (WebCore::InitializeLoggingChannelsIfNecessary):
2469         Initialize the new channel (oops).
2470
2471 2010-10-15  Mike Lawther  <mikelawther@chromium.org>
2472
2473         Reviewed by James Robinson.
2474
2475         Prevent scrollbars from appearing in iframes with scrolling=no
2476         when the embedded content has overflow:scroll set on the html
2477         or body tags.
2478
2479         iframes keep getting scrollbars with scrolling="no"
2480         https://bugs.webkit.org/show_bug.cgi?id=29240
2481
2482         Test: fast/frames/iframe-scrolling-attribute-overflowscroll.html
2483
2484         * page/FrameView.cpp:
2485         (WebCore::FrameView::calculateScrollbarModesForLayout)
2486         (WebCore::FrameView::updateCanHaveScrollbars):
2487         (WebCore::FrameView::layout):
2488         * page/FrameView.h:
2489         (WebCore::FrameView::calculateScrollbarModesForLayout)
2490
2491 2010-10-15  Dan Bernstein  <mitz@apple.com>
2492
2493         Reviewed by Adele Peterson.
2494
2495         Clean up RenderFlexibleBox::applyLineClamp()
2496         https://bugs.webkit.org/show_bug.cgi?id=47743
2497
2498         * rendering/RenderFlexibleBox.cpp:
2499         (WebCore::RenderFlexibleBox::applyLineClamp):
2500
2501 2010-10-15  Alexey Proskuryakov  <ap@apple.com>
2502
2503         Reviewed by Darin Adler.
2504
2505         https://bugs.webkit.org/show_bug.cgi?id=47736
2506         <rdar://problem/8429396> WebCore cache gets corrupted if revalidation request starts at an inopportune time
2507
2508         Test: http/tests/cache/stopped-revalidation.html
2509
2510         * loader/loader.cpp: (WebCore::Loader::Host::servePendingRequests): Copied logic for
2511         revalidation requests from didFail().
2512
2513 2010-10-15  Alexey Proskuryakov  <ap@apple.com>
2514
2515         Reviewed by Darin Adler in <https://bugs.webkit.org/show_bug.cgi?id=47736>.
2516
2517         Add a logging channel for WebCore cache and resource loading.
2518
2519         Test: http/tests/cache/stopped-revalidation.html
2520
2521         * platform/Logging.cpp:
2522         * platform/Logging.h:
2523         Added a logging channel for Cache and Loader.
2524
2525         * loader/Cache.cpp:
2526         (WebCore::Cache::requestResource):
2527         (WebCore::Cache::revalidateResource):
2528         (WebCore::Cache::revalidationFailed):
2529         (WebCore::Cache::evict):
2530         * loader/CachedResource.cpp:
2531         (WebCore::CachedResource::setResourceToRevalidate):
2532         (WebCore::CachedResource::switchClientsToRevalidatedResource):
2533         (WebCore::CachedResource::mustRevalidate):
2534         Added logging.
2535
2536         * loader/loader.cpp:
2537         (WebCore::Loader::load): Added logging.
2538         (WebCore::Loader::scheduleServePendingRequests): Ditto.
2539         (WebCore::Loader::requestTimerFired): Ditto.
2540         (WebCore::Loader::servePendingRequests): Ditto.
2541         (WebCore::Loader::Host::servePendingRequests):  Changed logging to use the new channel.
2542         (WebCore::Loader::Host::didFinishLoading): Changed logging to use the new channel.
2543         (WebCore::Loader::Host::didFail): Added logging.
2544
2545 2010-10-15  No'am Rosenthal  <noam.rosenthal@nokia.com>
2546
2547         Reviewed by Simon Fraser.
2548
2549         Add public functions to serialize TransformOperations.
2550         https://bugs.webkit.org/show_bug.cgi?id=47728
2551
2552         Added public accessors to the internal data of the TransformOperations.
2553
2554         No new tests. These functions are enablers for WebKit2.
2555
2556         * platform/graphics/transforms/Matrix3DTransformOperation.h:
2557         (WebCore::Matrix3DTransformOperation::matrix):
2558         * platform/graphics/transforms/MatrixTransformOperation.h:
2559         (WebCore::MatrixTransformOperation::matrix):
2560         * platform/graphics/transforms/PerspectiveTransformOperation.h:
2561         (WebCore::PerspectiveTransformOperation::perspective):
2562         * platform/graphics/transforms/RotateTransformOperation.h:
2563         (WebCore::RotateTransformOperation::x):
2564         (WebCore::RotateTransformOperation::y):
2565         (WebCore::RotateTransformOperation::z):
2566         * platform/graphics/transforms/SkewTransformOperation.h:
2567         (WebCore::SkewTransformOperation::angleX):
2568         (WebCore::SkewTransformOperation::angleY):
2569         * platform/graphics/transforms/TranslateTransformOperation.h:
2570         (WebCore::TranslateTransformOperation::x):
2571         (WebCore::TranslateTransformOperation::y):
2572         (WebCore::TranslateTransformOperation::z):
2573
2574 2010-10-15  Jian Li  <jianli@chromium.org>
2575
2576         Reviewed by Dmitry Titov.
2577
2578         FileReader.readAsDataURL should take Blob object
2579         https://bugs.webkit.org/show_bug.cgi?id=47679
2580
2581         Test cases have been added into read-blob-test-cases.js.
2582
2583         * fileapi/FileReader.idl: Update per the latest File API spec.
2584
2585 2010-10-15  Adam Barth  <abarth@webkit.org>
2586
2587         Reviewed by Eric Seidel.
2588
2589         Move MarkupAccumulator from markup.cpp to its own file
2590         https://bugs.webkit.org/show_bug.cgi?id=47734
2591
2592         This patch moves the MarkupAccumulator class into its own file.
2593         There's a lot of clean up left to do, but this patch is a step in the
2594         right direction.
2595
2596         No behavior change.
2597
2598         * Android.mk:
2599         * CMakeLists.txt:
2600         * GNUmakefile.am:
2601         * WebCore.gypi:
2602         * WebCore.pro:
2603         * WebCore.vcproj/WebCore.vcproj:
2604         * WebCore.xcodeproj/project.pbxproj:
2605         * editing/markup.cpp:
2606         (WebCore::elementCannotHaveEndTag):
2607         * editing/markup.h:
2608         * editing/MarkupAccumulator.h: Added.
2609         * editing/MarkupAccumulator.cpp: Added.
2610
2611 2010-10-15  Ryosuke Niwa  <rniwa@webkit.org>
2612
2613         Reviewed by Darin Adler.
2614
2615         Match the elements supported by execCommand('formatBlock') and queryCommandValue('formatBlock')
2616         https://bugs.webkit.org/show_bug.cgi?id=47712
2617
2618         Extended queryCommandValue('formatBlock', false, null) to support article, aside, blockquote, dd, dl,
2619         div, dl, dt, dl, footer, header, hgroup, nav, and section. Because this makes isElementForFormatBlockCommand
2620         in Editor.cpp and FormatBlockCommand::isElementToApplyInFormatBlockCommand identical, they are merged and moved
2621         to FormatBlockCommand.cpp
2622
2623         Tests are added to editing/execCommand/query-format-block.html
2624
2625         * editing/Editor.cpp: Removed isElementForFormatBlockCommand and Editor::elementForFormatBlockCommand.
2626         * editing/Editor.h:
2627         * editing/EditorCommand.cpp:
2628         (WebCore::executeFormatBlock): Removed the check of tag name; the check is moved into FormatBlockCommand.
2629         (WebCore::valueFormatBlock): Calls FormatBlockCommand::elementForFormatBlockCommand.
2630         * editing/FormatBlockCommand.cpp:
2631         (WebCore::isElementForFormatBlock):
2632         (WebCore::FormatBlockCommand::FormatBlockCommand):
2633         (WebCore::FormatBlockCommand::formatSelection): Added to check the tag name. Exit early if the specified tag name
2634         is not what FormatBlock should apply. Set m_didApply true if m_didApply did apply the element.
2635         (WebCore::FormatBlockCommand::formatRange): Moved from Editor.cpp.  Takes Range* instead of accessing selection directly.
2636         (WebCore::FormatBlockCommand::elementForFormatBlockCommand): Moved from Editor.cpp
2637         (WebCore::enclosingBlockToSplitTreeTo): Calls isElementForFormatBlock.
2638         * editing/FormatBlockCommand.h:
2639         (WebCore::FormatBlockCommand::didApply): Added.
2640
2641 2010-10-15  Dirk Schulze  <krit@webkit.org>
2642
2643         Reviewed by Nikolas Zimmermann.
2644
2645         carto.net Dock example redraws *way* too often
2646         https://bugs.webkit.org/show_bug.cgi?id=16090
2647
2648         Setting the attributes x, y, width or height shouldn't cause a repaint if the image boundaries don't change.
2649         Added updateFromElement() to RenderSVGImage that checks if the old boundaries match the new boundaries after
2650         setting one of the attributes of above. Mark renderer for layout (and therefore repaint) if the boundaries
2651         differ, do nothing if not.
2652         Also added caching of the repaint rect to avoid multiple calculations.
2653
2654         Test: svg/custom/repaint-on-constant-size-change.svg
2655
2656         * rendering/RenderSVGImage.cpp:
2657         (WebCore::RenderSVGImage::RenderSVGImage):
2658         (WebCore::RenderSVGImage::layout): Update repaint rect on layout.
2659         (WebCore::RenderSVGImage::updateFromElement): Check SVGImageElement for boundaries update.
2660         * rendering/RenderSVGImage.h:
2661         (WebCore::RenderSVGImage::repaintRectInLocalCoordinates): Return the cached repaint rect.
2662         * svg/SVGImageElement.cpp:
2663         (WebCore::SVGImageElement::svgAttributeChanged): Call updateFromElement() on changes to x, y, width or height.
2664
2665 2010-10-15  Martin Robinson  <mrobinson@igalia.com>
2666
2667         Build fix for GTK+.
2668
2669         * platform/network/soup/cache/webkit/soup-cache.h: Do not use PLATFORM(...) macro
2670         in a file that does not include config.h
2671
2672 2010-10-15  Anders Carlsson  <andersca@apple.com>
2673
2674         Reviewed by Sam Weinig.
2675
2676         Add FindIndicatorWindow class
2677         https://bugs.webkit.org/show_bug.cgi?id=47731
2678
2679         Export symbols needed by the FindIndicator in WebKit2.
2680
2681         * WebCore.exp.in:
2682
2683 2010-10-15  Leandro Pereira  <leandro@profusion.mobi>
2684
2685         [EFL] Unreviewed. Build fix.
2686
2687         Add new files needed by the Soup network backend, and #ifdef a
2688         GTK+-port only include in soup-cache.h.
2689
2690         * CMakeListsEfl.txt:
2691         * platform/network/soup/cache/webkit/soup-cache.h:
2692
2693 2010-10-14  Darin Adler  <darin@apple.com>
2694
2695         Reviewed by Alexey Proskuryakov.
2696
2697         Use more specific types for node pointers, especially when calling node insertion and removal functions
2698         https://bugs.webkit.org/show_bug.cgi?id=47702
2699
2700         Refactoring. No new tests.
2701
2702         While developing this patch I temporarily removed the node insertion and
2703         removal member functions from the Node class and fixed almost all call sites
2704         so they call it directly on the ContainerNode class, which will be important
2705         once we make the functions non-virtual.
2706
2707         * css/CSSStyleSelector.cpp:
2708         (WebCore::CSSStyleSelector::SelectorChecker::checkSelector):
2709         * dom/ContainerNode.cpp:
2710         (WebCore::ContainerNode::insertBefore):
2711         (WebCore::ContainerNode::replaceChild):
2712         (WebCore::ContainerNode::appendChild):
2713         * dom/Document.cpp:
2714         (WebCore::Document::caretRangeFromPoint):
2715         * dom/DynamicNodeList.cpp:
2716         (WebCore::DynamicNodeList::itemWithName):
2717         * dom/Position.cpp:
2718         (WebCore::Position::previous):
2719         (WebCore::Position::next):
2720         * dom/Text.cpp:
2721         (WebCore::Text::replaceWholeText):
2722         * dom/TreeWalker.cpp:
2723         (WebCore::TreeWalker::firstChild):
2724         (WebCore::TreeWalker::lastChild):
2725         (WebCore::TreeWalker::previousNode):
2726         * dom/XMLDocumentParserLibxml2.cpp:
2727         (WebCore::XMLDocumentParser::XMLDocumentParser):
2728         * editing/BreakBlockquoteCommand.cpp:
2729         (WebCore::BreakBlockquoteCommand::doApply):
2730         * editing/CompositeEditCommand.h:
2731         * editing/DeleteButtonController.cpp:
2732         (WebCore::isDeletableElement):
2733         * editing/IndentOutdentCommand.cpp:
2734         (WebCore::IndentOutdentCommand::outdentParagraph):
2735         * editing/InsertNodeBeforeCommand.cpp:
2736         (WebCore::InsertNodeBeforeCommand::doApply):
2737         * editing/JoinTextNodesCommand.cpp:
2738         (WebCore::JoinTextNodesCommand::doApply):
2739         (WebCore::JoinTextNodesCommand::doUnapply):
2740         * editing/MergeIdenticalElementsCommand.cpp:
2741         (WebCore::MergeIdenticalElementsCommand::doUnapply):
2742         * editing/RemoveNodeCommand.cpp:
2743         (WebCore::RemoveNodeCommand::doApply):
2744         (WebCore::RemoveNodeCommand::doUnapply):
2745         * editing/RemoveNodeCommand.h:
2746         * editing/SplitElementCommand.cpp:
2747         (WebCore::SplitElementCommand::executeApply):
2748         * editing/SplitTextNodeCommand.cpp:
2749         (WebCore::SplitTextNodeCommand::doApply):
2750         (WebCore::SplitTextNodeCommand::doReapply):
2751         * editing/TextIterator.cpp:
2752         (WebCore::parentCrossingShadowBoundaries):
2753         * editing/htmlediting.cpp:
2754         (WebCore::enclosingList):
2755         * editing/markup.cpp:
2756         (WebCore::serializeNodes):
2757         (WebCore::ancestorToRetainStructureAndAppearance):
2758         (WebCore::createMarkup):
2759         * html/HTMLAreaElement.cpp:
2760         (WebCore::HTMLAreaElement::updateFocusAppearance):
2761         * html/HTMLEmbedElement.cpp:
2762         (WebCore::HTMLEmbedElement::rendererIsNeeded):
2763         * html/HTMLFormElement.cpp:
2764         (WebCore::HTMLFormElement::rendererIsNeeded):
2765         * html/HTMLFrameSetElement.cpp:
2766         (WebCore::HTMLFrameSetElement::attach):
2767         * html/HTMLImageElement.cpp:
2768         (WebCore::HTMLImageElement::insertedIntoTree):
2769         * html/HTMLLegendElement.cpp:
2770         (WebCore::HTMLLegendElement::associatedControl):
2771         * html/HTMLOptGroupElement.cpp:
2772         (WebCore::HTMLOptGroupElement::recalcSelectOptions):
2773         (WebCore::HTMLOptGroupElement::ownerSelectElement):
2774         * html/HTMLOptionElement.cpp:
2775         (WebCore::HTMLOptionElement::ownerSelectElement):
2776         * html/HTMLTableCellElement.cpp:
2777         (WebCore::HTMLTableCellElement::additionalAttributeStyleDecls):
2778         * html/HTMLTableColElement.cpp:
2779         (WebCore::HTMLTableColElement::additionalAttributeStyleDecls):
2780         * html/HTMLTableElement.cpp:
2781         (WebCore::HTMLTableElement::insertRow):
2782         * html/HTMLTableRowElement.cpp:
2783         (WebCore::HTMLTableRowElement::rowIndex):
2784         * html/HTMLTableSectionElement.cpp:
2785         (WebCore::HTMLTableSectionElement::additionalAttributeStyleDecls):
2786         * page/DOMSelection.cpp:
2787         (WebCore::DOMSelection::getRangeAt):
2788         (WebCore::DOMSelection::containsNode):
2789         * rendering/RenderSVGGradientStop.cpp:
2790         (WebCore::RenderSVGGradientStop::gradientElement):
2791         * svg/SVGElement.cpp:
2792         (WebCore::SVGElement::ownerSVGElement):
2793         (WebCore::SVGElement::viewportElement):
2794         * svg/SVGFELightElement.cpp:
2795         (WebCore::SVGFELightElement::svgAttributeChanged):
2796         (WebCore::SVGFELightElement::childrenChanged):
2797         * svg/SVGFEMergeNodeElement.cpp:
2798         (WebCore::SVGFEMergeNodeElement::svgAttributeChanged):
2799         * svg/SVGFontFaceFormatElement.cpp:
2800         (WebCore::SVGFontFaceFormatElement::childrenChanged):
2801         * svg/SVGFontFaceUriElement.cpp:
2802         (WebCore::SVGFontFaceUriElement::childrenChanged):
2803         * svg/SVGGlyphElement.cpp:
2804         (WebCore::SVGGlyphElement::invalidateGlyphCache):
2805         * svg/SVGHKernElement.cpp:
2806         (WebCore::SVGHKernElement::insertedIntoDocument):
2807         (WebCore::SVGHKernElement::removedFromDocument):
2808         * svg/SVGLocatable.cpp:
2809         (WebCore::SVGLocatable::nearestViewportElement):
2810         (WebCore::SVGLocatable::farthestViewportElement):
2811         * svg/SVGUseElement.cpp:
2812         (WebCore::SVGUseElement::updateContainerOffsets):
2813         * svg/SVGVKernElement.cpp:
2814         (WebCore::SVGVKernElement::insertedIntoDocument):
2815         (WebCore::SVGVKernElement::removedFromDocument):
2816         * svg/animation/SVGSMILElement.cpp:
2817         (WebCore::SVGSMILElement::targetElement):
2818         * wml/WMLDoElement.cpp:
2819         (WebCore::WMLDoElement::insertedIntoDocument):
2820         (WebCore::WMLDoElement::removedFromDocument):
2821         * wml/WMLNoopElement.cpp:
2822         (WebCore::WMLNoopElement::insertedIntoDocument):
2823         * wml/WMLOptionElement.cpp:
2824         (WebCore::ownerSelectElement):
2825         * wml/WMLPostfieldElement.cpp:
2826         (WebCore::WMLPostfieldElement::insertedIntoDocument):
2827         (WebCore::WMLPostfieldElement::removedFromDocument):
2828         * wml/WMLSetvarElement.cpp:
2829         (WebCore::WMLSetvarElement::insertedIntoDocument):
2830         (WebCore::WMLSetvarElement::removedFromDocument):
2831         * wml/WMLTaskElement.cpp:
2832         (WebCore::WMLTaskElement::insertedIntoDocument):
2833         (WebCore::WMLTaskElement::removedFromDocument):
2834         * wml/WMLTimerElement.cpp:
2835         (WebCore::WMLTimerElement::insertedIntoDocument):
2836         (WebCore::WMLTimerElement::removedFromDocument):
2837         * xml/XPathStep.cpp:
2838         (WebCore::XPath::Step::nodesInAxis):
2839         Use ContainerNode* for the result of the parentNode function now that
2840         it returns a ContainerNode*. In the past it used to return just Node*.
2841
2842         * dom/ContainerNode.h: Added toContainerNode.
2843
2844         * dom/Element.h: Use ContainerNode*. Added toElement.
2845
2846         * dom/Element.cpp:
2847         (WebCore::Element::deprecatedCreateContextualFragment): Explcitly
2848         cast to HTMLElement* in the case that handles <html> and <body>
2849         elements.
2850         (WebCore::Element::baseURI): Use ContainerNode*.
2851
2852         * dom/Node.cpp:
2853         (WebCore::Node::markAncestorsWithChildNeedsStyleRecalc): Use ContainerNode*.
2854         (WebCore::Node::isDescendantOf): Ditto.
2855         (WebCore::Node::createRendererIfNeeded): Ditto.
2856         (WebCore::Node::setTextContent): Use already-typecast pointer in a call to
2857         appendChild.
2858         (WebCore::Node::ancestorElement): Use ContainerNode*.
2859
2860         * dom/Range.cpp:
2861         (WebCore::Range::compareNode): Use ContainerNode*.
2862         (WebCore::Range::intersectsNode): Ditto.
2863         (WebCore::Range::processContents): Cast to ContainerNode* in a couple cases
2864         where we previously checked that the node in question has a child. Any node
2865         that returns a non-zero value for firstChild is a ContainerNode.
2866         (WebCore::Range::checkNodeBA): Ditto.
2867         (WebCore::Range::selectNode): Ditto.
2868         (WebCore::Range::surroundContents): Ditto.
2869
2870         * dom/XMLDocumentParser.cpp:
2871         (WebCore::XMLDocumentParser::insertErrorMessageBlock): Rewrote code to use
2872         more specific types, document instead of doc, and paragraph instead of par.
2873
2874         * editing/ApplyStyleCommand.cpp:
2875         (WebCore::ApplyStyleCommand::removeStyleFromRunBeforeApplyingStyle):
2876         Use ContainerNode*.
2877         (WebCore::ApplyStyleCommand::replaceWithSpanOrRemoveIfWithoutAttributes):
2878         Use replaceElementWithSpanPreservingChildrenAndAttributes; the old function
2879         took a Node argument and had Node in its name.
2880
2881         * editing/CompositeEditCommand.cpp:
2882         (WebCore::CompositeEditCommand::removeNodeAndPruneAncestors): Use ContainerNode.
2883         (WebCore::CompositeEditCommand::replaceElementWithSpanPreservingChildrenAndAttributes):
2884         Renamed and changed to take HTMLElement. Also use ContainerNode.
2885         (WebCore::CompositeEditCommand::prune): Ditto.
2886         (WebCore::CompositeEditCommand::breakOutOfEmptyListItem): Ditto.
2887         (WebCore::CompositeEditCommand::breakOutOfEmptyMailBlockquotedParagraph): Ditto.
2888
2889         * editing/ReplaceNodeWithSpanCommand.cpp:
2890         (WebCore::ReplaceNodeWithSpanCommand::ReplaceNodeWithSpanCommand): Take an
2891         HTMLElement instead of a Node. Call it m_elementToReplace instead of m_node.
2892         (WebCore::swapInNodePreservingAttributesAndChildren): Take HTMLElement.
2893         (WebCore::ReplaceNodeWithSpanCommand::doApply): Updated for name changes.
2894         (WebCore::ReplaceNodeWithSpanCommand::doUnapply): Ditto.
2895         * editing/ReplaceNodeWithSpanCommand.h: Ditto.
2896
2897         * editing/ReplaceSelectionCommand.cpp:
2898         (WebCore::ReplacementFragment::ReplacementFragment): Use StyledElement for result
2899         of insertFragmentForTestRendering since that's what it returns.
2900         (WebCore::ReplacementFragment::removeNode): Use ContainerNode.
2901         (WebCore::ReplacementFragment::insertNodeBefore): Ditto.
2902         (WebCore::ReplacementFragment::insertFragmentForTestRendering): Return StyledElement.
2903         Use HTMLElement for body.
2904         (WebCore::ReplacementFragment::restoreTestRenderingNodesToFragment): Take
2905         StyledElement.
2906         (WebCore::ReplaceSelectionCommand::handleStyleSpans): Use ContainerNode.
2907         (WebCore::ReplaceSelectionCommand::copyStyleToChildren): Use HTMLElement for
2908         the cloned span, since the clone will be a sspan too.
2909         (WebCore::ReplaceSelectionCommand::insertAsListItems): Use ContainerNode since
2910         the list item has a child, and that proves it is a ContainerNode.
2911
2912         * editing/SelectionController.cpp:
2913         (WebCore::SelectionController::selectFrameElementInParentIfFullySelected):
2914         Use ContainerNode and also removed an unnneded local variable.
2915
2916         * html/HTMLElement.cpp:
2917         (WebCore::HTMLElement::setOuterText): Use ContainerNode.
2918         (WebCore::HTMLElement::insertAdjacent): Use ContainerNode and also use && to make
2919         the logic a little simpler.
2920         (WebCore::contextElementForInsertion): Use ContainerNode.
2921         (WebCore::HTMLElement::findFormAncestor): Ditto.
2922
2923         * inspector/InspectorDOMAgent.cpp:
2924         (WebCore::InspectorDOMAgent::removeNode): Use ContainerNode.
2925         (WebCore::InspectorDOMAgent::changeTagName): Ditto.
2926         (WebCore::InspectorDOMAgent::setOuterHTML): Ditto.
2927         (WebCore::InspectorDOMAgent::innerParentNode): Use isDocumentNode instead of
2928         nodeType. We should almost never use nodeType inside the engine.
2929         (WebCore::InspectorDOMAgent::didInsertDOMNode): Use ContainerNode.
2930         (WebCore::InspectorDOMAgent::didRemoveDOMNode): Ditto.
2931
2932         * wml/WMLOptGroupElement.cpp: Removed unneeded overrides of insertBefore,
2933         replaceChild, removeChild, appendChild, and removeChildren functions.
2934         Ths already overrides childrenChanged, that is called by all of the above,
2935         and it does the same thing these functions did.
2936         (WebCore::ownerSelectElement): Use ContainerNode.
2937         * wml/WMLOptGroupElement.h: Ditto.
2938
2939 2010-10-15  Ryosuke Niwa  <rniwa@webkit.org>
2940
2941         Reviewed by Darin Adler.
2942
2943         Crash in WebCore::ApplyStyleCommand::applyBlockStyle
2944         https://bugs.webkit.org/show_bug.cgi?id=47699
2945
2946         The crash was caused by applyBlockStyle's invalidly assuming that visibleStart and visibleEnd always exist.
2947         Added an early exit to the function when either visibleStart or visibleEnd is null or orphaned.
2948
2949         Test: editing/style/block-style-progress-crash.html
2950
2951         * editing/ApplyStyleCommand.cpp:
2952         (WebCore::ApplyStyleCommand::applyBlockStyle):
2953
2954 2010-10-13  Anders Carlsson  <andersca@apple.com>
2955
2956         Reviewed by Sam Weinig.
2957
2958         Add a FindIndicator class
2959         https://bugs.webkit.org/show_bug.cgi?id=47635
2960
2961         Make Gradient.h and Generator.h private headers; they're used by WebKit2.
2962
2963         * WebCore.xcodeproj/project.pbxproj:
2964
2965 2010-10-15  Sergio Villar Senin  <svillar@igalia.com>
2966
2967         Reviewed by Gustavo Noronha Silva.
2968
2969         [Soup] Should not ignore body for redirection responses
2970         https://bugs.webkit.org/show_bug.cgi?id=29299
2971
2972         Body is now provided to WebKitGtk+ in some redirections (like 302)
2973         because it could be used by servers to perform clunky redirections
2974         for example using http-equiv=REFRESH
2975
2976         Test: http/tests/navigation/redirect302-metaredirect.html
2977
2978         * platform/network/soup/ResourceHandleSoup.cpp:
2979         (WebCore::gotHeadersCallback):
2980         (WebCore::finishedCallback):
2981
2982 2010-10-15  Sergio Villar Senin  <svillar@igalia.com>
2983
2984         Reviewed by Martin Robinson.
2985
2986         [GTK] Fix introspection support
2987         https://bugs.webkit.org/show_bug.cgi?id=47723
2988
2989         WebKitSoupCacheType was incorrectly registered twice. Renamed to
2990         WebKitSoupCacheTypeType for the enumerated type.
2991
2992         * platform/network/soup/cache/webkit/soup-cache.c:
2993         (webkit_soup_cache_type_get_type):
2994
2995 2010-10-15  Ilya Tikhonovsky  <loislo@chromium.org>
2996
2997         Reviewed by Yury Semikhatsky.
2998
2999         Web Inspector: extract consoleMessages related stuff from populateScriptObjects into separate function.
3000
3001         This is a part of Inspector protocol sanitization activity.
3002         We want to populate console messages only if it is required by frontend.
3003
3004         https://bugs.webkit.org/show_bug.cgi?id=46802
3005
3006         * inspector/Inspector.idl:
3007         * inspector/InspectorController.cpp:
3008         (WebCore::InspectorController::setConsoleMessagesEnabled):
3009         (WebCore::InspectorController::addConsoleMessage):
3010         (WebCore::InspectorController::disconnectFrontend):
3011         (WebCore::InspectorController::populateScriptObjects):
3012         * inspector/InspectorController.h:
3013         * inspector/InspectorState.cpp:
3014         (WebCore::InspectorState::InspectorState):
3015         * inspector/InspectorState.h:
3016         * inspector/front-end/inspector.js:
3017         (WebInspector.doLoadedDone):
3018
3019 2010-10-15  Ryuan Choi  <ryuan.choi@samsung.com>
3020
3021         Reviewed by Nikolas Zimmermann.
3022
3023         [EFL] REGRESSION(69798) UCHAR can't be converted to String.
3024         https://bugs.webkit.org/show_bug.cgi?id=47698
3025
3026         Create String value using String(const char*, 1) instead of operator[].
3027
3028         No tests. No functionality changed.
3029
3030         * platform/efl/PlatformKeyboardEventEfl.cpp:
3031         (WebCore::createWindowsKeyMap):
3032
3033 2010-10-15  Sergio Villar Senin  <svillar@igalia.com>
3034
3035         Reviewed by Xan Lopez.
3036
3037         [GTK] Do a stricter check for invalid base64 dataURLs
3038         https://bugs.webkit.org/show_bug.cgi?id=47717
3039
3040         Restore the strict base64 decoding we added in
3041         https://bugs.webkit.org/show_bug.cgi?id=44261 and then rolled back
3042         in https://bugs.webkit.org/show_bug.cgi?id=47666 due to a failing
3043         test. The actual issue was that we were not finishing the load of
3044         the resource gracefully when an error happened.
3045
3046         Loading invalid base64-encoded data:// URLs are now handled
3047         properly.
3048
3049         * platform/network/soup/ResourceHandleSoup.cpp:
3050         (WebCore::parseDataUrl):
3051         * platform/network/soup/cache/soup-request-data.c:
3052         (webkit_soup_request_data_send):
3053
3054 2010-10-15  Alejandro G. Castro  <alex@igalia.com>
3055
3056         Reviewed by Martin Robinson.
3057
3058         compile fail with gtk >= 2.22
3059         https://bugs.webkit.org/show_bug.cgi?id=47483
3060
3061         * platform/graphics/gtk/FontGtk.cpp: Removed the shrink operation,
3062         it was added long time ago and currently it is not adding any real
3063         area to the clip vertically, actually the gtk3 shrink version did
3064         not work.
3065         (WebCore::Font::drawComplexText):
3066         * platform/gtk/gtk2drawing.c: Undef the deprecation flags, this
3067         file is full of gtk2 stuff, and it does not seem interesting to
3068         upgrade because we are already creating a new version of the file
3069         for gtk3.
3070
3071 2010-10-14  Ilya Tikhonovsky  <loislo@chromium.org>
3072
3073         Reviewed by Pavel Feldman.
3074
3075         Web Inspector: inspector settings/properties/states management
3076         should be extracted into separate class.
3077
3078         We have a lot of flags/values in InspectorController.
3079         Some flags are persisting into profile.
3080         Others are part of inspector state for frontend.
3081         All these flags should keep their values after navigation.
3082         It'd be better to extract these flags/values into separate
3083         class which will care about theirs lifetime.
3084
3085         https://bugs.webkit.org/show_bug.cgi?id=47275
3086
3087         * CMakeLists.txt:
3088         * GNUmakefile.am:
3089         * WebCore.exp.in:
3090         * WebCore.gypi:
3091         * WebCore.pro:
3092         * WebCore.vcproj/WebCore.vcproj:
3093         * WebCore.xcodeproj/project.pbxproj:
3094         * inspector/InspectorController.cpp:
3095         (WebCore::InspectorController::InspectorController):
3096         (WebCore::InspectorController::inspectorStartsAttached):
3097         (WebCore::InspectorController::setInspectorStartsAttached):
3098         (WebCore::InspectorController::setInspectorAttachedHeight):
3099         (WebCore::InspectorController::inspectorAttachedHeight):
3100         (WebCore::InspectorController::searchingForNodeInPage):
3101         (WebCore::InspectorController::resourceTrackingEnabled):
3102         (WebCore::InspectorController::saveApplicationSettings):
3103         (WebCore::InspectorController::getInspectorState):
3104         (WebCore::InspectorController::restoreInspectorStateFromCookie):
3105         (WebCore::InspectorController::getSettings):
3106         (WebCore::InspectorController::storeLastActivePanel):
3107         (WebCore::InspectorController::mouseDidMoveOverElement):
3108         (WebCore::InspectorController::handleMousePress):
3109         (WebCore::InspectorController::setSearchingForNode):
3110         (WebCore::InspectorController::setMonitoringXHREnabled):
3111         (WebCore::InspectorController::showPanel):
3112         (WebCore::InspectorController::disconnectFrontend):
3113         (WebCore::InspectorController::populateScriptObjects):
3114         (WebCore::InspectorController::restoreDebugger):
3115         (WebCore::InspectorController::restoreProfiler):
3116         (WebCore::InspectorController::getTrackedResource):
3117         (WebCore::InspectorController::didLoadResourceFromMemoryCache):
3118         (WebCore::InspectorController::identifierForInitialRequest):
3119         (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
3120         (WebCore::InspectorController::scriptImported):
3121         (WebCore::InspectorController::setResourceTrackingEnabled):
3122         (WebCore::InspectorController::ensureSettingsLoaded):
3123         (WebCore::InspectorController::startTimelineProfiler):
3124         (WebCore::InspectorController::stopTimelineProfiler):
3125         (WebCore::InspectorController::enableProfiler):
3126         (WebCore::InspectorController::disableProfiler):
3127         (WebCore::InspectorController::enableDebuggerFromFrontend):
3128         (WebCore::InspectorController::disableDebugger):
3129         (WebCore::InspectorController::loadBreakpoints):
3130         (WebCore::InspectorController::saveBreakpoints):
3131         * inspector/InspectorController.h:
3132         * inspector/InspectorFrontendClientLocal.cpp:
3133         (WebCore::InspectorFrontendClientLocal::changeAttachedWindowHeight):
3134         (WebCore::InspectorFrontendClientLocal::restoreAttachedWindowHeight):
3135         * inspector/InspectorState.cpp: Added.
3136         (WebCore::InspectorState::InspectorState):
3137         (WebCore::InspectorState::restoreFromInspectorCookie):
3138         (WebCore::InspectorState::generateStateObjectForFrontend):
3139         (WebCore::InspectorState::loadFromSettings):
3140         (WebCore::InspectorState::updateCookie):
3141         (WebCore::InspectorState::setValue):
3142         (WebCore::InspectorState::getBoolean):
3143         (WebCore::InspectorState::getString):
3144         (WebCore::InspectorState::getLong):
3145         (WebCore::InspectorState::registerBoolean):
3146         (WebCore::InspectorState::registerString):
3147         (WebCore::InspectorState::registerLong):
3148         (WebCore::InspectorState::Property::create):
3149         * inspector/InspectorState.h: Added.
3150         (WebCore::InspectorState::setBoolean):
3151         (WebCore::InspectorState::setString):
3152         (WebCore::InspectorState::setLong):
3153
3154 2010-10-14  Jia Pu  <jpu@apple.com>
3155
3156         Reviewed by Adele Peterson.
3157
3158         REGRESSION (r69548): Autocorrections are applied even after typing further characters in the word
3159         https://bugs.webkit.org/show_bug.cgi?id=47689
3160         <rdar://problem/8552250>
3161
3162         The test requires using setTimeout(). So we put it in manual-tests.
3163
3164         * editing/Editor.cpp:
3165         (WebCore::Editor::markMisspellingsAfterTypingToPosition): Relpace release() with clear().
3166         (WebCore::Editor::startCorrectionPanelTimer): Release previously set correction range before
3167           start timer for next autocorrection check.
3168         * manual-tests/autocorrection: Added.
3169         * manual-tests/autocorrection/autocorrection-cancelled-by-typing-1.html: Added.
3170
3171 2010-10-14  Ryosuke Niwa  <rniwa@webkit.org>
3172
3173         Reviewed by Tony Chang and Darin Adler.
3174
3175         execCommand FormatBlock creates lots of blockquotes
3176         https://bugs.webkit.org/show_bug.cgi?id=19795
3177
3178         The bug was caused by WebKit's not reusing the block node added by previous iteration
3179         and its inserting block node at wrong places.
3180
3181         Fixed the bug by rewriting FormatBlockCommand::formatRange.  New code resembles that of
3182         IndentOutdentCommand::indentIntoBlockquote.  The difference between two is that formatRange
3183         avoids the existing block elements when replacing blocks and it also adds a placeholder
3184         when removing the existing block caused paragraphs to collapse.
3185
3186         Also fixed a bug in moveParagraphWithClones where erroneous br is added to the start of
3187         the block element to which the paragraph is moved if the block element is the start of a paragraph
3188         and not the end of a paragraph.
3189
3190         Tests: editing/execCommand/format-block-multiple-paragraphs.html
3191                editing/execCommand/format-block-table.html
3192
3193         * editing/CompositeEditCommand.cpp:
3194         (WebCore::CompositeEditCommand::moveParagraphWithClones): No longer adds erroneous br.
3195         * editing/EditorCommand.cpp:
3196         (WebCore::executeFormatBlock):
3197         * editing/FormatBlockCommand.cpp:
3198         (WebCore::FormatBlockCommand::formatRange): Rewritten; see above.
3199         (WebCore::FormatBlockCommand::isElementToApplyInFormatBlockCommand): Renamed from validBlockElement
3200         and moved from htmlediting.cpp.
3201         (WebCore::enclosingBlockToSplitTreeTo): Added.
3202         * editing/FormatBlockCommand.h:
3203         * editing/VisiblePosition.cpp:
3204         (WebCore::enclosingBlockFlowElement): Changed the return type to Element*
3205         * editing/VisiblePosition.h:
3206
3207 2010-10-14  Justin Schuh  <jschuh@chromium.org>
3208
3209         Reviewed by James Robinson.
3210
3211         Crash in HTMLTextFormControlElement::selection()
3212         https://bugs.webkit.org/show_bug.cgi?id=47522
3213
3214         Patch by Ryosuke Niwa  <rniwa@webkit.org>
3215
3216         The bug was caused by our triggering layout inside RenderTextControl::selection.
3217         Fixed it by changing the return type of RenderTextControl::selection to PassRefPtr<Range> from VisibleSelection.
3218
3219         Test: fast/forms/render-text-crash.html
3220
3221         * editing/Editor.cpp:
3222         (WebCore::Editor::selectionForCommand): Calls HTMLTextFormControlElement::selection.
3223         * html/HTMLFormControlElement.cpp:
3224         (WebCore::HTMLTextFormControlElement::selection): Calls RenderTextControl::selection.
3225         * html/HTMLFormControlElement.h:
3226         * rendering/RenderTextControl.cpp:
3227         (WebCore::RenderTextControl::selection): Changed the return type.
3228         * rendering/RenderTextControl.h:
3229
3230 2010-10-14  James Robinson  <jamesr@chromium.org>
3231
3232         Reviewed by Simon Fraser.
3233
3234         SelectElement should check if its renderer exists after calling Element::focus()
3235         https://bugs.webkit.org/show_bug.cgi?id=47696
3236
3237         Adds null checks for element->renderer() after calling element->focus(), since focus()
3238         can dispatch an event and run arbitrary javascript that may cause the select element
3239         to lose its renderer.
3240
3241         Test: fast/forms/select-listbox-focus-displaynone.html
3242
3243         * dom/SelectElement.cpp:
3244         (WebCore::SelectElement::menuListDefaultEventHandler):
3245         (WebCore::SelectElement::listBoxDefaultEventHandler):
3246
3247 2010-10-14  Beth Dakin  <bdakin@apple.com>
3248
3249         Reviewed by Dave Hyatt.
3250
3251         This patch lays the groundwork for 
3252         https://bugs.webkit.org/show_bug.cgi?id=47514 CSS transforms should 
3253         affect scrolling
3254         by adding topmostPosition().
3255
3256         * rendering/RenderBlock.cpp:
3257         (WebCore::RenderBlock::topmostPosition):
3258         * rendering/RenderBlock.h:
3259         * rendering/RenderBox.cpp:
3260         (WebCore::RenderBox::topmostPosition):
3261         * rendering/RenderBox.h:
3262         * rendering/RenderMedia.cpp:
3263         (WebCore::RenderMedia::topmostPosition):
3264         * rendering/RenderMedia.h:
3265         * rendering/RenderTableSection.cpp:
3266         (WebCore::RenderTableSection::topmostPosition):
3267         * rendering/RenderTableSection.h:
3268
3269 2010-10-14  Sergio Villar Senin  <svillar@igalia.com>
3270
3271         Reviewed by Martin Robinson.
3272
3273         [GTK] fix compilation warnings in imported libsoup code
3274         https://bugs.webkit.org/show_bug.cgi?id=47674
3275
3276         Fixed some warnings caused by comparisons between signed and
3277         unsigned integer expressions
3278
3279         * platform/network/soup/cache/soup-directory-input-stream.c:
3280         (webkit_soup_directory_input_stream_read):
3281         * platform/network/soup/cache/soup-request-data.c:
3282         (webkit_soup_request_data_send):
3283         * platform/network/soup/cache/soup-request-file.c:
3284         (webkit_soup_request_file_ensure_file):
3285         * platform/network/soup/cache/webkit/soup-cache.c:
3286         (webkit_soup_cache_entry_is_fresh_enough):
3287         (webkit_soup_cache_has_response):
3288
3289 2010-10-14  Andreas Kling  <kling@webkit.org>
3290
3291         Unreviewed buildfix, RetainPtr is a mac thing..
3292
3293         * platform/network/soup/ProxyServerSoup.cpp:
3294
3295 2010-10-08  Martin Robinson  <mrobinson@igalia.com>
3296
3297         Reviewed by Xan Lopez.
3298
3299         [GTK] Form controls do not respect GTK+ font size
3300         https://bugs.webkit.org/show_bug.cgi?id=47134
3301
3302         Have form controls use the font specified in GtkSettings. This font is
3303         the default control font in GTK+ applications and Firefox. We need to
3304         pass the string through Pango to get a valid font name and size.
3305
3306         * platform/gtk/RenderThemeGtk.cpp:
3307         (WebCore::getScreenDPI): A helper function which returns
3308         the DPI of the default screen or 96 as a fallback.
3309         (WebCore::RenderThemeGtk::systemFont): Calculate the system font
3310         by looking at the GtkSettings value and pushing it through Pango
3311         to get the font family and font size.
3312
3313 2010-10-14  Andreas Kling  <kling@webkit.org>
3314
3315         Soup buildfix for r69808: add ProxyServer stub.
3316
3317         * GNUmakefile.am:
3318         * platform/network/soup/ProxyServerSoup.cpp: Added.
3319         (WebCore::proxyServersForURL):
3320
3321 2010-10-14  Andreas Kling  <kling@webkit.org>
3322
3323         Fix GTK+ build after r69808.
3324
3325         * GNUmakefile.am:
3326         * platform/network/curl/ProxyServerCurl.cpp:
3327         (WebCore::proxyServersForURL):
3328
3329 2010-10-14  Simon Fraser  <simon.fraser@apple.com>
3330
3331         Another build fix. Export FrameLoader::networkingContext()
3332
3333         * WebCore.exp.in:
3334
3335 2010-10-14  Simon Fraser  <simon.fraser@apple.com>
3336
3337         Fix the build after r69808.
3338         
3339         * WebCore.xcodeproj/project.pbxproj:
3340         * platform/network/cf/ProxyServerCFNet.cpp:
3341         (WebCore::proxyServersForURL):
3342
3343 2010-10-14  Gavin Barraclough  <barraclough@apple.com>
3344
3345         Windows build fix following r69806.
3346
3347         * platform/win/ClipboardUtilitiesWin.cpp:
3348         (WebCore::markupToCFHTML):
3349
3350 2010-10-14  Dawit Alemayehu  <adawit@kde.org>
3351
3352         Reviewed by Andreas Kling
3353
3354         Implemented NPN_GetValueForURL and NPN_SetValueForURL and NPN_GetAuthenticationInfo.
3355         https://bugs.webkit.org/show_bug.cgi?id=34539
3356
3357         These missing NPN functions cause Java applets to crash in ports such
3358         as QtWebkit that rely on webkit for Java applet support.
3359
3360         * plugins/PluginDebug.cpp:
3361         (WebCore::prettyNameForNPNURLVariable):
3362         * plugins/PluginDebug.h:
3363         * plugins/PluginPackage.cpp:
3364         (WebCore::PluginPackage::initializeBrowserFuncs):
3365         * plugins/PluginView.cpp:
3366         (WebCore::PluginView::getValueForURL):
3367         (WebCore::PluginView::setValueForURL):
3368         (WebCore::PluginView::getAuthenticationInfo):
3369         * plugins/PluginView.h:
3370         * plugins/npapi.cpp:
3371         (NPN_GetValueForURL):
3372         (NPN_SetValueForURL):
3373         (NPN_GetAuthenticationInfo):
3374         * platform/network/ProxyServer.h:
3375         * platform/network/cf/ProxyServerCFNet.cpp:
3376         (WebCore::proxyServersForURL):
3377         * platform/network/qt/ProxyServerQt.cpp:
3378         (WebCore::proxyServersForURL):
3379  
3380 2010-10-14  Gavin Barraclough  <barraclough@apple.com>
3381
3382         Windows build fix following r69806.
3383
3384         * platform/win/ClipboardUtilitiesWin.cpp:
3385         (WebCore::markupToCFHTML):
3386
3387 2010-10-14  Zhenyao Mo  <zmo@google.com>
3388
3389         Reviewed by Kenneth Russell.
3390
3391         Cache link status at linkProgram and use it in useProgram instead of querying GPU
3392         https://bugs.webkit.org/show_bug.cgi?id=47685
3393
3394         * html/canvas/WebGLProgram.cpp: Always cache link status at linkStatus and use it upon query.
3395         (WebCore::WebGLProgram::WebGLProgram):
3396         * html/canvas/WebGLProgram.h: Ditto.
3397         (WebCore::WebGLProgram::getLinkStatus):
3398         (WebCore::WebGLProgram::setLinkStatus):
3399         * html/canvas/WebGLRenderingContext.cpp: Ditto.
3400         (WebCore::WebGLRenderingContext::getProgramParameter):
3401         (WebCore::WebGLRenderingContext::linkProgram):
3402         (WebCore::WebGLRenderingContext::useProgram):
3403
3404 2010-10-14  Justin Schuh  <jschuh@chromium.org>
3405
3406         Reviewed by James Robinson.
3407
3408         Style fix for r69735
3409         https://bugs.webkit.org/show_bug.cgi?id=47684
3410
3411         No logic change. Existing tests apply.
3412
3413         * rendering/RootInlineBox.cpp:
3414         (WebCore::RootInlineBox::alignBoxesInBlockDirection):
3415
3416 2010-10-14  Yury Semikhatsky  <yurys@chromium.org>
3417
3418         Reviewed by Pavel Feldman.
3419
3420         Web Inspector: encapsulate ScriptState into ConsoleMessage instead of passing it as additional parameter
3421         https://bugs.webkit.org/show_bug.cgi?id=47675
3422
3423         No new tests. This refactoring is covered by existing inspector tests.
3424
3425         * bindings/js/JSConsoleCustom.cpp:
3426         * bindings/js/ScriptCallFrame.cpp:
3427         * bindings/js/ScriptCallFrame.h:
3428         (WebCore::ScriptCallFrame::functionName):
3429         (WebCore::ScriptCallFrame::sourceURL):
3430         (WebCore::ScriptCallFrame::lineNumber):
3431         (WebCore::ScriptCallFrame::argumentCount):
3432         * inspector/ConsoleMessage.cpp:
3433         (WebCore::ConsoleMessage::isEqual):
3434         * inspector/ConsoleMessage.h:
3435         * inspector/InspectorController.cpp:
3436         (WebCore::InspectorController::addMessageToConsole):
3437         (WebCore::InspectorController::addConsoleMessage):
3438         (WebCore::InspectorController::startGroup):
3439         (WebCore::InspectorController::endGroup):
3440         * inspector/InspectorController.h:
3441
3442 2010-10-14  Nikolas Zimmermann  <nzimmermann@rim.com>
3443
3444         Reviewed by Gavin Barraclough.
3445
3446         Replace lots of String::format() usages by StringConcatenate
3447         https://bugs.webkit.org/show_bug.cgi?id=47664
3448
3449         * ForwardingHeaders/wtf/text/StringConcatenate.h: Added.
3450         * bindings/js/JSDOMWindowBase.cpp:
3451         (WebCore::JSDOMWindowBase::crossDomainAccessErrorMessage):
3452         * bindings/v8/V8Proxy.cpp:
3453         (WebCore::V8Proxy::reportUnsafeAccessTo):
3454         * dom/ExceptionBase.cpp:
3455         (WebCore::ExceptionBase::ExceptionBase):
3456         * dom/XMLDocumentParser.cpp:
3457         (WebCore::XMLDocumentParser::handleError):
3458         * history/PageCache.cpp:
3459         (WebCore::logCanCacheFrameDecision):
3460         * html/FTPDirectoryDocument.cpp:
3461         (WebCore::processFileDateString):
3462         * inspector/CodeGeneratorInspector.pm:
3463         * inspector/InspectorController.cpp:
3464         (WebCore::InspectorController::didReceiveResponse):
3465         (WebCore::InspectorController::count):
3466         * inspector/InspectorDOMAgent.cpp:
3467         (WebCore::InspectorDOMAgent::createBreakpointId):
3468         * inspector/InspectorDebuggerAgent.cpp:
3469         (WebCore::formatBreakpointId):
3470         * inspector/InspectorProfilerAgent.cpp:
3471         (WebCore::InspectorProfilerAgent::addProfileFinishedMessageToConsole):
3472         (WebCore::InspectorProfilerAgent::addStartProfilingMessageToConsole):
3473         (WebCore::InspectorProfilerAgent::getCurrentUserInitiatedProfileName):
3474         (WebCore::InspectorProfilerAgent::takeHeapSnapshot):
3475         * loader/CachedResourceLoader.cpp:
3476         (WebCore::CachedResourceLoader::printAccessDeniedMessage):
3477         * loader/FrameLoader.cpp:
3478         (WebCore::FrameLoader::checkIfDisplayInsecureContent):
3479         (WebCore::FrameLoader::checkIfRunInsecureContent):
3480         (WebCore::FrameLoader::shouldAllowNavigation):
3481         * loader/archive/cf/LegacyWebArchive.cpp:
3482         (WebCore::LegacyWebArchive::createFromSelection):
3483         * page/DOMWindow.cpp:
3484         (WebCore::DOMWindow::postMessageTimerFired):
3485         * page/PrintContext.cpp:
3486         (WebCore::PrintContext::pageProperty):
3487         (WebCore::PrintContext::pageSizeAndMarginsInPixels):
3488         * page/XSSAuditor.cpp:
3489         (WebCore::XSSAuditor::canLoadObject):
3490         * platform/efl/PlatformKeyboardEventEfl.cpp:
3491         (WebCore::createKeyMap):
3492         (WebCore::createWindowsKeyMap):
3493         * platform/graphics/GraphicsLayer.cpp:
3494         (WebCore::GraphicsLayer::animationNameForTransition):
3495         * platform/graphics/brew/ImageBrew.cpp:
3496         (WebCore::Image::loadPlatformResource):
3497         * platform/graphics/cg/ImageBufferCG.cpp:
3498         (WebCore::ImageBuffer::toDataURL):
3499         * platform/graphics/efl/ImageEfl.cpp:
3500         (WebCore::loadResourceSharedBuffer):
3501         * platform/graphics/gtk/ImageBufferGtk.cpp:
3502         (WebCore::ImageBuffer::toDataURL):
3503         * platform/graphics/haiku/ImageBufferHaiku.cpp:
3504         (WebCore::ImageBuffer::toDataURL):
3505         * platform/graphics/mac/GraphicsLayerCA.mm:
3506         (WebCore::animationIdentifier):
3507         * platform/graphics/qt/ImageBufferQt.cpp:
3508         (WebCore::ImageBuffer::toDataURL):
3509         * platform/graphics/skia/ImageBufferSkia.cpp:
3510         (WebCore::ImageBuffer::toDataURL):
3511         * platform/graphics/win/WebLayer.cpp:
3512         (WebCore::WebLayer::drawInContext):
3513         * platform/network/CredentialStorage.cpp:
3514         (WebCore::originStringFromURL):
3515         * platform/sql/SQLiteDatabase.cpp:
3516         (WebCore::SQLiteDatabase::setSynchronous):
3517         * platform/text/wince/TextCodecWinCE.cpp:
3518         (WebCore::LanguageManager::LanguageManager):
3519         * platform/win/ClipboardUtilitiesWin.cpp:
3520         (WebCore::markupToCFHTML):
3521         * platform/win/Language.cpp:
3522         (WebCore::defaultLanguage):
3523         * plugins/PluginStream.cpp:
3524         (WebCore::PluginStream::startStream):
3525         * svg/SVGUseElement.cpp:
3526         (WebCore::dumpInstanceTree):
3527         * websockets/WebSocket.cpp:
3528         (WebCore::WebSocket::connect):
3529         * websockets/WebSocketChannel.cpp:
3530         (WebCore::WebSocketChannel::appendToBuffer):
3531         * websockets/WebSocketHandshake.cpp:
3532         (WebCore::WebSocketHandshake::readServerHandshake):
3533
3534 2010-10-14  Xan Lopez  <xlopez@igalia.com>
3535
3536         Reviewed by Martin Robinson.
3537
3538         [GTK] Small cleanup in PluginViewGtk
3539         https://bugs.webkit.org/show_bug.cgi?id=47588
3540
3541         Remove some dead code and use PlatformRefPtr for cairo surfaces.
3542
3543         No new tests, only refactoring.
3544
3545         * plugins/gtk/PluginViewGtk.cpp:
3546         (WebCore::PluginView::paint):
3547
3548 2010-10-14  Dawit Alemayehu  <adawit@kde.org>
3549
3550         Reviewed by Andreas Kling.
3551
3552         Fix compile error when bulding webkit's Qt port using the "--v8" option.
3553         https://bugs.webkit.org/show_bug.cgi?id=47455
3554
3555         * platform/qt/PlatformBridge.h:
3556
3557 2010-10-01  Martin Robinson  <mrobinson@igalia.com>
3558
3559         Reviewed by Holger Freyther.
3560
3561         [GTK] REGRESSION: FreeType backend does not respect XSettings font settings after r68558
3562         https://bugs.webkit.org/show_bug.cgi?id=47033
3563
3564         Fix logic that merges XSettings defaults and FontConfig settings. If
3565         FontConfig or XSettings specifies a subpixel order, we force subpixel
3566         anti-aliasing on. If anti-aliasing is turned on explicitly, only
3567         override the setting if it was previously off, otherwise we ignore
3568         the user's preference for subpixel or gray antialiasing.
3569
3570         Test: platform/gtk/fonts/xsettings_antialias_settings.html
3571
3572         * platform/graphics/cairo/FontPlatformDataFreeType.cpp:
3573         (WebCore::setCairoFontOptionsFromFontConfigPattern): Fix merging of XSettings
3574         and FontConfig anti-aliasing settings.
3575         (WebCore::getDefaultFontOptions): Added this helper.
3576         (WebCore::FontPlatformData::FontPlatformData): Use the getDefaultFontOptions helper.
3577
3578 2010-10-14  Jian Li  <jianli@chromium.org>
3579
3580         Reviewed by David Levin.
3581
3582         Support typed arrays in workers
3583         https://bugs.webkit.org/show_bug.cgi?id=47616
3584
3585         To support typed arrays in workers, we need to expose constructors in
3586         WorkerContext and add NoStaticTables attribute.
<