2011-01-12 Ilya Tikhonovsky <loislo@chromium.org>
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-01-12  Ilya Tikhonovsky  <loislo@chromium.org>
2
3         Reviewed by Yury Semikhatsky.
4
5         Web Inspector: Extract BrowserDebuggerAgent from InspectorController, InspectorDOMAgent and InspectorDebugger agent.
6         We have some methods of Debugger which are related to DOM.
7         Lets extract these methods to BrowserDebugger agent.
8
9         http://bugs.webkit.org/show_bug.cgi?id=52294
10
11         * CMakeLists.txt:
12         * WebCore.gypi:
13         * WebCore.pro:
14         * WebCore.vcproj/WebCore.vcproj:
15         * WebCore.xcodeproj/project.pbxproj:
16         * inspector/CodeGeneratorInspector.pm:
17         * inspector/Inspector.idl:
18         * inspector/InspectorBrowserDebuggerAgent.cpp: Added.
19         (WebCore::InspectorBrowserDebuggerAgent::InspectorBrowserDebuggerAgent):
20         (WebCore::InspectorBrowserDebuggerAgent::~InspectorBrowserDebuggerAgent):
21         (WebCore::InspectorBrowserDebuggerAgent::discardBindings):
22         (WebCore::InspectorBrowserDebuggerAgent::setEventListenerBreakpoint):
23         (WebCore::InspectorBrowserDebuggerAgent::removeEventListenerBreakpoint):
24         (WebCore::InspectorBrowserDebuggerAgent::didInsertDOMNode):
25         (WebCore::InspectorBrowserDebuggerAgent::didRemoveDOMNode):
26         (WebCore::InspectorBrowserDebuggerAgent::setDOMBreakpoint):
27         (WebCore::InspectorBrowserDebuggerAgent::removeDOMBreakpoint):
28         (WebCore::InspectorBrowserDebuggerAgent::willInsertDOMNode):
29         (WebCore::InspectorBrowserDebuggerAgent::willRemoveDOMNode):
30         (WebCore::InspectorBrowserDebuggerAgent::willModifyDOMAttr):
31         (WebCore::InspectorBrowserDebuggerAgent::descriptionForDOMEvent):
32         (WebCore::InspectorBrowserDebuggerAgent::hasBreakpoint):
33         (WebCore::InspectorBrowserDebuggerAgent::updateSubtreeBreakpoints):
34         (WebCore::InspectorBrowserDebuggerAgent::pauseOnNativeEventIfNeeded):
35         (WebCore::InspectorBrowserDebuggerAgent::setXHRBreakpoint):
36         (WebCore::InspectorBrowserDebuggerAgent::removeXHRBreakpoint):
37         (WebCore::InspectorBrowserDebuggerAgent::willSendXMLHttpRequest):
38         (WebCore::InspectorBrowserDebuggerAgent::clearForPageNavigation):
39         * inspector/InspectorBrowserDebuggerAgent.h: Added.
40         (WebCore::InspectorBrowserDebuggerAgent::create):
41         * inspector/InspectorController.cpp:
42         (WebCore::InspectorController::InspectorController):
43         (WebCore::InspectorController::inspectedPageDestroyed):
44         (WebCore::InspectorController::didCommitLoad):
45         (WebCore::InspectorController::enableDebuggerFromFrontend):
46         (WebCore::InspectorController::disableDebugger):
47         (WebCore::InspectorController::restoreStickyBreakpoints):
48         (WebCore::InspectorController::restoreStickyBreakpoint):
49         * inspector/InspectorController.h:
50         * inspector/InspectorDOMAgent.cpp:
51         (WebCore::InspectorDOMAgent::discardBindings):
52         (WebCore::InspectorDOMAgent::didInsertDOMNode):
53         (WebCore::InspectorDOMAgent::didRemoveDOMNode):
54         * inspector/InspectorDOMAgent.h:
55         * inspector/InspectorInstrumentation.cpp:
56         (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl):
57         (WebCore::InspectorInstrumentation::didInsertDOMNodeImpl):
58         (WebCore::InspectorInstrumentation::willRemoveDOMNodeImpl):
59         (WebCore::InspectorInstrumentation::didRemoveDOMNodeImpl):
60         (WebCore::InspectorInstrumentation::willModifyDOMAttrImpl):
61         (WebCore::InspectorInstrumentation::willSendXMLHttpRequestImpl):
62         (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded):
63
64 2011-01-13  Kent Tamura  <tkent@chromium.org>
65
66         Reviewed by Dimitri Glazkov.
67
68         Implement form validation message UI
69         https://bugs.webkit.org/show_bug.cgi?id=48980
70
71         * Add four internal pseudo selectors:
72           - -webkit-validation-bubble
73           - -webkit-validation-bubble-message
74           - -webkit-validation-bubble-top-outer-arrow
75           - -webkit-validation-bubble-top-inner-arrow
76
77         * Implement ValidationMessage functions
78           Show the message for <the number of characters> / 20.0 seconds.
79
80         No new tests because the feature is disabled by default for now and the
81         new behavior is strongly timing-dependent.
82
83         * css/CSSStyleSelector.cpp:
84         (WebCore::CSSStyleSelector::canShareStyleWithElement):
85           Do not share a style with elements with different shadowPseudoId().
86         * css/html.css: Define appearance for the internal selectors.
87         (::-webkit-validation-bubble):
88         (::-webkit-validation-bubble-message):
89         (::-webkit-validation-bubble-top-outer-arrow):
90         (::-webkit-validation-bubble-top-inner-arrow):
91         * dom/Node.cpp:
92         (WebCore::Node::createRendererIfNeeded):
93           Allow to add shadow renderers even if canHaveChildren() returns false.
94         * html/HTMLFormControlElement.cpp:
95         (WebCore::HTMLFormControlElement::detach):
96           Remove m_validationMessage immediately because we can't use
97           hideVisibleValidationMessage(), which calls a ValidationMessage function later.
98         (WebCore::HTMLFormControlElement::updateVisibleValidationMessage):
99           - Don't create ValidationMessage if the message is empty.
100           - Remove the check for message equality.
101         (WebCore::HTMLFormControlElement::hideVisibleValidationMessage):
102           Don't remove m_validationMessage immediately. We shouldn't make the
103           element needsLayout() state in this context.
104         * html/ValidationMessage.cpp:
105         (WebCore::ValidationMessage::~ValidationMessage):
106           hideMessage() -> deleteBubbleTree() renaming.
107         (WebCore::ValidationMessage::setMessage): Implemented.
108         (WebCore::ValidationMessage::setMessageDOMAndStartTimer):
109           Added. This updates the validation message and starts the timer to hide it.
110         (WebCore::ElementWithPseudoId):
111           Added to help implementations of styled shadow nodes.
112         (WebCore::ValidationMessage::buildBubbleTree): Added.
113         (WebCore::ValidationMessage::requestToHideMessage): Added.
114         (WebCore::ValidationMessage::deleteBubbleTree):
115           Renamed from hideMessage(), and implemented.
116         * html/ValidationMessage.h: Add declarations.
117
118 2011-01-13  Dan Bernstein  <mitz@apple.com>
119
120         Reviewed by Alexey Proskuryakov.
121
122         <rdar://problem/8827065> REGRESSION (r71884): Cross-origin XHR fails if willSendRequest changes the URL
123         https://bugs.webkit.org/show_bug.cgi?id=52419
124
125         Test: http/tests/loading/cross-origin-XHR-willLoadRequest.html
126
127         * loader/ResourceLoader.cpp:
128         (WebCore::ResourceLoader::init): Complete r74453 by ensuring that m_request is only set after
129         willSendRequest(). Otherwise, willSendRequest() ends up calling into
130         ThreadableDocumentRequest::willSendRequest(), which cancels the request.
131
132 2011-01-13  Dan Bernstein  <mitz@apple.com>
133
134         Reviewed by Mark Rowe.
135
136         Don’t try to compile InjectedScriptSource.js into WebCore.
137
138         * WebCore.xcodeproj/project.pbxproj:
139
140 2011-01-13  Mike Thole  <mthole@apple.com>
141
142         Reviewed by Darin Adler and Brady Eidson.
143
144         The pageScaleFactor() should be saved/restored along with the scroll position
145         https://bugs.webkit.org/show_bug.cgi?id=52406
146         <rdar://problem/8714412>
147
148         * history/HistoryItem.cpp:
149         (WebCore::HistoryItem::HistoryItem): Initialize m_pageScaleFactor.
150         (WebCore::HistoryItem::pageScaleFactor): Added getter.
151         (WebCore::HistoryItem::setPageScaleFactor): Added setter.
152         (WebCore::HistoryItem::encodeBackForwardTreeNode): Encode m_pageScaleFactor.
153         (WebCore::HistoryItem::decodeBackForwardTree): Decode m_pageScaleFactor.
154         * history/HistoryItem.h:
155         * loader/HistoryController.cpp:
156         (WebCore::HistoryController::saveScrollPositionAndViewStateToItem): Save the page scale factor...
157         (WebCore::HistoryController::restoreScrollPositionAndViewState): ...and restore it here.
158
159 2011-01-13  Evan Martin  <evan@chromium.org>
160
161         Reviewed by Tony Chang.
162
163         [chromium] drop backwards iteration in Linux complex text code
164         https://bugs.webkit.org/show_bug.cgi?id=52403
165
166         ComplexTextController previously supported iterating through the text in
167         both directions, but this resulted in duplicate code for each path.
168         Instead, by being more careful about flipping signs where appropriate,
169         we can refactor the code into one code path.
170
171         No tests, just a refactoring; should be covered by existing tests.
172
173         * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
174         (WebCore::ComplexTextController::ComplexTextController):
175         (WebCore::ComplexTextController::reset):
176         (WebCore::ComplexTextController::nextScriptRun):
177         * platform/graphics/chromium/ComplexTextControllerLinux.h:
178         * platform/graphics/chromium/FontLinux.cpp:
179         (WebCore::glyphIndexForXPositionInScriptRun):
180         (WebCore::Font::selectionRectForComplexText):
181
182 2011-01-13  Dimitri Glazkov  <dglazkov@chromium.org>
183
184         Reviewed by Darin Adler.
185
186         Flip input[type=range] to use the new shadow DOM model.
187         https://bugs.webkit.org/show_bug.cgi?id=52317
188
189         This is a straight-up flip, minimal change to the logic, which will be
190         refactored in a follow-up patch.
191
192         Covered by existing tests.
193
194         * css/CSSStyleSelector.cpp:
195         (WebCore::CSSStyleSelector::initForStyleResolve): Changed to use either
196             host or parent node to find parent.
197         * html/HTMLInputElement.cpp:
198         (WebCore::HTMLInputElement::updateType): Added logic for destroying/creating
199             shadow DOM subtree.
200         * html/InputType.cpp:
201         (WebCore::InputType::createShadowSubtree): Added empty decl.
202         (WebCore::InputType::destroyShadowSubtree): Added a method to destroy
203             shadow subtree.
204         * html/InputType.h: Added defs.
205         * html/RangeInputType.cpp:
206         (WebCore::RangeInputType::createShadowSubtree): Added a virtual method to create
207             slider thumb.
208         * html/RangeInputType.h: Adde def.
209         * html/shadow/SliderThumbElement.cpp: Added temporary RenderSliderThumb class
210             to handle cascading appearance.
211         (WebCore::RenderSliderThumb::RenderSliderThumb): Added.
212         (WebCore::RenderSliderThumb::layout): Moved here the logic from
213             RenderSlider::createThumbStyle.
214         (WebCore::SliderThumbElement::createRenderer): Added virtual method to
215             create RenderSliderThumb instance.
216         (WebCore::SliderThumbElement::defaultEventHandler): Changed to use HTMLDivElement
217             as base class.
218         (WebCore::SliderThumbElement::detach): Ditto.
219         * html/shadow/SliderThumbElement.h:
220         (WebCore::SliderThumbElement::SliderThumbElement): Ditto.
221         (WebCore::SliderThumbElement::create): Ditto.
222         (WebCore::toSliderThumbElement): Added a casting helper.
223         * rendering/MediaControlElements.cpp:
224         (WebCore::MediaControlInputElement::attach): Added handling of shadow DOM,
225             since the whole method is hand-rolled.
226         (WebCore::MediaControlInputElement::updateStyle): Ditto.
227         * rendering/RenderSlider.cpp:
228         (WebCore::RenderSlider::~RenderSlider): Removed unneeded code.
229         (WebCore::RenderSlider::thumbRect): Changed to use sliderThumbElement helper.
230         (WebCore::RenderSlider::layout): Ditto.
231         (WebCore::RenderSlider::sliderThumbElement): Added a temporary helper to access
232             SliderThumbElement.
233         (WebCore::RenderSlider::mouseEventIsInThumb): Changed to use sliderThumbElement helper.
234         (WebCore::RenderSlider::mouseEventOffsetToThumb): Ditto.
235         (WebCore::RenderSlider::setValueForPosition): Ditto.
236         (WebCore::RenderSlider::positionForOffset): Ditto.
237         (WebCore::RenderSlider::currentPosition): Ditto.
238         (WebCore::RenderSlider::trackSize): Ditto.
239         (WebCore::RenderSlider::forwardEvent): Ditto.
240         (WebCore::RenderSlider::inDragMode): Ditto.
241         * rendering/RenderSlider.h: Added def.
242
243 2011-01-13  Adam Barth  <abarth@webkit.org>
244
245         Reviewed by Eric Seidel.
246
247         Rename RGBA32Buffer to ImageFrame
248         https://bugs.webkit.org/show_bug.cgi?id=52363
249
250         RGBA32Buffer is a terrible misnomer.  ImageFrame is vastly
251         more accurate.  More cleanup to come.
252
253         * WebCore.pro:
254         * platform/graphics/ImageSource.cpp:
255         (WebCore::ImageSource::createFrameAtIndex):
256         (WebCore::ImageSource::frameDurationAtIndex):
257         (WebCore::ImageSource::frameIsCompleteAtIndex):
258         * platform/graphics/qt/ImageDecoderQt.cpp:
259         (WebCore::ImageDecoderQt::frameBufferAtIndex):
260         (WebCore::ImageDecoderQt::internalReadImage):
261         (WebCore::ImageDecoderQt::internalHandleCurrentImage):
262         * platform/graphics/qt/ImageDecoderQt.h:
263         * platform/graphics/wince/ImageWinCE.cpp:
264         (WebCore::ImageFrame::asNewNativeImage):
265         * platform/image-decoders/ImageDecoder.cpp:
266         (WebCore::ImageFrame::ImageFrame):
267         (WebCore::ImageFrame::operator=):
268         (WebCore::ImageFrame::clear):
269         (WebCore::ImageFrame::zeroFill):
270         (WebCore::ImageFrame::copyReferenceToBitmapData):
271         (WebCore::ImageFrame::copyBitmapData):
272         (WebCore::ImageFrame::setSize):
273         (WebCore::ImageFrame::hasAlpha):
274         (WebCore::ImageFrame::setHasAlpha):
275         (WebCore::ImageFrame::setColorProfile):
276         (WebCore::ImageFrame::setStatus):
277         (WebCore::ImageFrame::width):
278         (WebCore::ImageFrame::height):
279         * platform/image-decoders/ImageDecoder.h:
280         (WebCore::ImageFrame::ImageFrame):
281         * platform/image-decoders/bmp/BMPImageDecoder.cpp:
282         (WebCore::BMPImageDecoder::frameBufferAtIndex):
283         (WebCore::BMPImageDecoder::decode):
284         * platform/image-decoders/bmp/BMPImageDecoder.h:
285         * platform/image-decoders/bmp/BMPImageReader.cpp:
286         (WebCore::BMPImageReader::decodeBMP):
287         * platform/image-decoders/bmp/BMPImageReader.h:
288         (WebCore::BMPImageReader::setBuffer):
289         * platform/image-decoders/cairo/ImageDecoderCairo.cpp:
290         (WebCore::ImageFrame::asNewNativeImage):
291         * platform/image-decoders/cg/ImageDecoderCG.cpp:
292         (WebCore::getPtrAsPixelData):
293         (WebCore::ImageFrame::copyReferenceToBitmapData):
294         (WebCore::ImageFrame::copyBitmapData):
295         (WebCore::ImageFrame::setSize):
296         (WebCore::ImageFrame::asNewNativeImage):
297         * platform/image-decoders/gif/GIFImageDecoder.cpp:
298         (WebCore::GIFImageDecoder::frameBufferAtIndex):
299         (WebCore::GIFImageDecoder::clearFrameBufferCache):
300         (WebCore::GIFImageDecoder::haveDecodedRow):
301         (WebCore::GIFImageDecoder::frameComplete):
302         (WebCore::GIFImageDecoder::initFrameBuffer):
303         * platform/image-decoders/gif/GIFImageDecoder.h:
304         * platform/image-decoders/gif/GIFImageReader.cpp:
305         (GIFImageReader::read):
306         * platform/image-decoders/gif/GIFImageReader.h:
307         (GIFFrameReader::GIFFrameReader):
308         * platform/image-decoders/haiku/ImageDecoderHaiku.cpp:
309         (WebCore::ImageFrame::asNewNativeImage):
310         * platform/image-decoders/ico/ICOImageDecoder.cpp:
311         (WebCore::ICOImageDecoder::frameBufferAtIndex):
312         (WebCore::ICOImageDecoder::decode):
313         * platform/image-decoders/ico/ICOImageDecoder.h:
314         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
315         (WebCore::JPEGImageDecoder::frameBufferAtIndex):
316         (WebCore::JPEGImageDecoder::outputScanlines):
317         (WebCore::JPEGImageDecoder::jpegComplete):
318         (WebCore::JPEGImageDecoder::decode):
319         * platform/image-decoders/jpeg/JPEGImageDecoder.h:
320         * platform/image-decoders/openvg/ImageDecoderOpenVG.cpp:
321         (WebCore::ImageFrame::asNewNativeImage):
322         * platform/image-decoders/png/PNGImageDecoder.cpp:
323         (WebCore::PNGImageDecoder::frameBufferAtIndex):
324         (WebCore::PNGImageDecoder::rowAvailable):
325         (WebCore::PNGImageDecoder::pngComplete):
326         * platform/image-decoders/png/PNGImageDecoder.h:
327         (WebCore::PNGImageDecoder::isComplete):
328         * platform/image-decoders/qt/ImageFrameQt.cpp: Copied from Source/WebCore/platform/image-decoders/qt/RGBA32BufferQt.cpp.
329         (WebCore::ImageFrame::ImageFrame):
330         (WebCore::ImageFrame::operator=):
331         (WebCore::ImageFrame::clear):
332         (WebCore::ImageFrame::zeroFill):
333         (WebCore::ImageFrame::copyBitmapData):
334         (WebCore::ImageFrame::setSize):
335         (WebCore::ImageFrame::asNewNativeImage):
336         (WebCore::ImageFrame::hasAlpha):
337         (WebCore::ImageFrame::setHasAlpha):
338         (WebCore::ImageFrame::setColorProfile):
339         (WebCore::ImageFrame::setStatus):
340         (WebCore::ImageFrame::setPixmap):
341         (WebCore::ImageFrame::width):
342         (WebCore::ImageFrame::height):
343         * platform/image-decoders/qt/RGBA32BufferQt.cpp: Removed.
344         * platform/image-decoders/skia/ImageDecoderSkia.cpp:
345         (WebCore::ImageFrame::ImageFrame):
346         (WebCore::ImageFrame::operator=):
347         (WebCore::ImageFrame::clear):
348         (WebCore::ImageFrame::zeroFill):
349         (WebCore::ImageFrame::copyBitmapData):
350         (WebCore::ImageFrame::setSize):
351         (WebCore::ImageFrame::asNewNativeImage):
352         (WebCore::ImageFrame::hasAlpha):
353         (WebCore::ImageFrame::setHasAlpha):
354         (WebCore::ImageFrame::setColorProfile):
355         (WebCore::ImageFrame::setStatus):
356         (WebCore::ImageFrame::width):
357         (WebCore::ImageFrame::height):
358         * platform/image-decoders/webp/WEBPImageDecoder.cpp:
359         (WebCore::WEBPImageDecoder::frameBufferAtIndex):
360         (WebCore::WEBPImageDecoder::decode):
361         * platform/image-decoders/webp/WEBPImageDecoder.h:
362         * platform/image-decoders/wx/ImageDecoderWx.cpp:
363         (WebCore::ImageFrame::asNewNativeImage):
364
365 2011-01-13  Dimitri Glazkov  <dglazkov@chromium.org>
366
367         Reviewed by Darin Adler.
368
369         Transferring nodes between documents should be aware of the shadow DOM.
370         https://bugs.webkit.org/show_bug.cgi?id=52399
371
372         No visible change in behavior at the moment.
373
374         Once https://bugs.webkit.org/show_bug.cgi?id=52317 lands, the following
375         tests should no longer crash:
376         * fast/css/pseudo-in-range-invalid-value.html
377         * fast/css/pseudo-in-range.html
378         * fast/forms/form-collection-elements.html
379         * fast/forms/range-keyoperation.html
380
381         * dom/Document.cpp:
382         (WebCore::Document::adoptNode): Changed to use Node::setDocumentRecursively.
383         * dom/Node.cpp:
384         (WebCore::Node::setDocumentRecursively): Added new method, taking existing
385             logic and adding shadow DOM traversal.
386         (WebCore::Node::traverseNextNode): Style fix.
387         (WebCore::Node::traverseNextSibling): Ditto.
388         (WebCore::Node::traversePreviousNode): Ditto.
389         (WebCore::Node::traversePreviousNodePostOrder): Ditto.
390         (WebCore::Node::checkReplaceChild): Changed to use setDocumentRecursively.
391         (WebCore::Node::checkAddChild): Ditto.
392         * dom/Node.h: Added def.
393
394 2011-01-12  Enrica Casucci  <enrica@apple.com>
395
396         Reviewed by Darin Adler.
397
398         WebKit2: Add support for drag and drop
399         https://bugs.webkit.org/show_bug.cgi?id=52343
400         <rdar://problem/7660558>
401                
402         This patch contains the changes required to support dropping content
403         in WebKit on the Mac. The DragData class has been extended to provide
404         additional context from the application (keyboard state, modal windows, etc.)
405         as well as information of the drag pasteboard being used.
406         The support for WebKit as drag source will be added with a separate patch.
407
408         * WebCore.exp.in:
409         * page/DragController.cpp:
410         (WebCore::DragController::dragIsMove): Added DragData parameter.
411         (WebCore::DragController::tryDocumentDrag): Modified call to dragIsMove.
412         (WebCore::DragController::concludeEditDrag): Same as above.
413         * page/DragController.h: Added parameter to isCopyKeyDown.
414         * page/mac/DragControllerMac.mm:
415         The following methods have been modified to use the information stored
416         in the DragData class.
417         (WebCore::DragController::isCopyKeyDown):
418         (WebCore::DragController::dragOperation):
419         * platform/DragData.h:
420         (WebCore::DragData::flags):
421         * platform/DragData.cpp: Added default flags parameter to the constructor.
422         * platform/mac/DragDataMac.mm:
423         (WebCore::DragData::DragData): Added constructor that receives the name of the pasteboard to use.
424         (WebCore::DragData::canSmartReplace):
425         (WebCore::DragData::containsColor):
426         (WebCore::DragData::containsFiles):
427         (WebCore::DragData::asFilenames):
428         (WebCore::DragData::containsPlainText):
429         (WebCore::DragData::asPlainText):
430         (WebCore::DragData::containsCompatibleContent):
431         (WebCore::DragData::asURL):
432         (WebCore::DragData::asFragment):
433         All the following files have been modified to add the DragData
434         parameter to isCopyKeyDown. I plan to improve this in the future
435         and make isCopyKeyDown not platform specific.
436         * page/android/DragControllerAndroid.cpp:
437         (WebCore::DragController::isCopyKeyDown):
438         * page/brew/DragControllerBrew.cpp:
439         (WebCore::DragController::isCopyKeyDown):
440         * page/chromium/DragControllerChromium.cpp:
441         (WebCore::DragController::isCopyKeyDown):
442         * page/efl/DragControllerEfl.cpp:
443         (WebCore::DragController::isCopyKeyDown):
444         * page/gtk/DragControllerGtk.cpp:
445         (WebCore::DragController::isCopyKeyDown):
446         * page/haiku/DragControllerHaiku.cpp:
447         (WebCore::DragController::isCopyKeyDown):
448         * page/mac/DragControllerMac.mm:
449         (WebCore::DragController::isCopyKeyDown):
450         (WebCore::DragController::dragOperation):
451         * page/qt/DragControllerQt.cpp:
452         (WebCore::DragController::isCopyKeyDown):
453         * page/win/DragControllerWin.cpp:
454         (WebCore::DragController::isCopyKeyDown):
455         * page/wx/DragControllerWx.cpp:
456         (WebCore::DragController::isCopyKeyDown):
457
458 2011-01-13  David Kilzer  <ddkilzer@apple.com>
459
460         Add missing MathMLElementFactory.h and MathMLNames.h to Xcode project
461
462         Not reviewed.
463
464         * WebCore.xcodeproj/project.pbxproj: Add missing headers.  Note
465         that the corresponding source files were originally added to the
466         project in r48559.
467
468 2011-01-12  Zhenyao Mo  <zmo@google.com>
469
470         Reviewed by Kenneth Russell.
471
472         Use GC3D types in WebGLRenderingContext and related WebGL classes
473         https://bugs.webkit.org/show_bug.cgi?id=51908
474
475         * html/canvas/WebGLActiveInfo.h:
476         (WebCore::WebGLActiveInfo::create):
477         (WebCore::WebGLActiveInfo::type):
478         (WebCore::WebGLActiveInfo::size):
479         (WebCore::WebGLActiveInfo::WebGLActiveInfo):
480         * html/canvas/WebGLBuffer.cpp:
481         (WebCore::WebGLBuffer::associateBufferDataImpl):
482         (WebCore::WebGLBuffer::associateBufferData):
483         (WebCore::WebGLBuffer::associateBufferSubDataImpl):
484         (WebCore::WebGLBuffer::associateBufferSubData):
485         (WebCore::WebGLBuffer::byteLength):
486         (WebCore::WebGLBuffer::getCachedMaxIndex):
487         (WebCore::WebGLBuffer::setCachedMaxIndex):
488         (WebCore::WebGLBuffer::setTarget):
489         * html/canvas/WebGLBuffer.h:
490         (WebCore::WebGLBuffer::getTarget):
491         * html/canvas/WebGLFramebuffer.cpp:
492         (WebCore::WebGLFramebuffer::setAttachment):
493         (WebCore::WebGLFramebuffer::getAttachment):
494         (WebCore::WebGLFramebuffer::getWidth):
495         (WebCore::WebGLFramebuffer::getHeight):
496         (WebCore::WebGLFramebuffer::getColorBufferFormat):
497         (WebCore::WebGLFramebuffer::initializeRenderbuffers):
498         * html/canvas/WebGLFramebuffer.h:
499         * html/canvas/WebGLProgram.cpp:
500         (WebCore::WebGLProgram::cacheActiveAttribLocations):
501         (WebCore::WebGLProgram::numActiveAttribLocations):
502         (WebCore::WebGLProgram::getActiveAttribLocation):
503         (WebCore::WebGLProgram::isUsingVertexAttrib0):
504         * html/canvas/WebGLProgram.h:
505         (WebCore::WebGLProgram::getLinkCount):
506         * html/canvas/WebGLRenderbuffer.h:
507         (WebCore::WebGLRenderbuffer::setInternalFormat):
508         (WebCore::WebGLRenderbuffer::getInternalFormat):
509         (WebCore::WebGLRenderbuffer::setSize):
510         (WebCore::WebGLRenderbuffer::getWidth):
511         (WebCore::WebGLRenderbuffer::getHeight):
512         * html/canvas/WebGLRenderingContext.cpp:
513         (WebCore::WebGLRenderingContext::initializeNewContext):
514         (WebCore::WebGLRenderingContext::sizeInBytes):
515         (WebCore::WebGLRenderingContext::activeTexture):
516         (WebCore::WebGLRenderingContext::bindAttribLocation):
517         (WebCore::WebGLRenderingContext::bindBuffer):
518         (WebCore::WebGLRenderingContext::bindFramebuffer):
519         (WebCore::WebGLRenderingContext::bindRenderbuffer):
520         (WebCore::WebGLRenderingContext::bindTexture):
521         (WebCore::WebGLRenderingContext::blendColor):
522         (WebCore::WebGLRenderingContext::blendEquation):
523         (WebCore::WebGLRenderingContext::blendEquationSeparate):
524         (WebCore::WebGLRenderingContext::blendFunc):
525         (WebCore::WebGLRenderingContext::blendFuncSeparate):
526         (WebCore::WebGLRenderingContext::bufferData):
527         (WebCore::WebGLRenderingContext::bufferSubData):
528         (WebCore::WebGLRenderingContext::checkFramebufferStatus):
529         (WebCore::WebGLRenderingContext::clear):
530         (WebCore::WebGLRenderingContext::clearColor):
531         (WebCore::WebGLRenderingContext::clearDepth):
532         (WebCore::WebGLRenderingContext::clearStencil):
533         (WebCore::WebGLRenderingContext::colorMask):
534         (WebCore::WebGLRenderingContext::copyTexImage2D):
535         (WebCore::WebGLRenderingContext::copyTexSubImage2D):
536         (WebCore::WebGLRenderingContext::createShader):
537         (WebCore::WebGLRenderingContext::cullFace):
538         (WebCore::WebGLRenderingContext::deleteBuffer):
539         (WebCore::WebGLRenderingContext::depthFunc):
540         (WebCore::WebGLRenderingContext::depthMask):
541         (WebCore::WebGLRenderingContext::depthRange):
542         (WebCore::WebGLRenderingContext::disable):
543         (WebCore::WebGLRenderingContext::disableVertexAttribArray):
544         (WebCore::WebGLRenderingContext::validateElementArraySize):
545         (WebCore::WebGLRenderingContext::validateIndexArrayConservative):
546         (WebCore::WebGLRenderingContext::validateIndexArrayPrecise):
547         (WebCore::WebGLRenderingContext::validateRenderingState):
548         (WebCore::WebGLRenderingContext::drawArrays):
549         (WebCore::WebGLRenderingContext::drawElements):
550         (WebCore::WebGLRenderingContext::enable):
551         (WebCore::WebGLRenderingContext::enableVertexAttribArray):
552         (WebCore::WebGLRenderingContext::framebufferRenderbuffer):
553         (WebCore::WebGLRenderingContext::framebufferTexture2D):
554         (WebCore::WebGLRenderingContext::frontFace):
555         (WebCore::WebGLRenderingContext::generateMipmap):
556         (WebCore::WebGLRenderingContext::getActiveAttrib):
557         (WebCore::WebGLRenderingContext::getActiveUniform):
558         (WebCore::WebGLRenderingContext::getAttachedShaders):
559         (WebCore::WebGLRenderingContext::getAttribLocation):
560         (WebCore::WebGLRenderingContext::getBufferParameter):
561         (WebCore::WebGLRenderingContext::getError):
562         (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter):
563         (WebCore::WebGLRenderingContext::getParameter):
564         (WebCore::WebGLRenderingContext::getProgramParameter):
565         (WebCore::WebGLRenderingContext::getRenderbufferParameter):
566         (WebCore::WebGLRenderingContext::getShaderParameter):
567         (WebCore::WebGLRenderingContext::getTexParameter):
568         (WebCore::WebGLRenderingContext::getUniform):
569         (WebCore::WebGLRenderingContext::getUniformLocation):
570         (WebCore::WebGLRenderingContext::getVertexAttrib):
571         (WebCore::WebGLRenderingContext::getVertexAttribOffset):
572         (WebCore::WebGLRenderingContext::hint):
573         (WebCore::WebGLRenderingContext::isBuffer):
574         (WebCore::WebGLRenderingContext::isEnabled):
575         (WebCore::WebGLRenderingContext::isFramebuffer):
576         (WebCore::WebGLRenderingContext::isProgram):
577         (WebCore::WebGLRenderingContext::isRenderbuffer):
578         (WebCore::WebGLRenderingContext::isShader):
579         (WebCore::WebGLRenderingContext::isTexture):
580         (WebCore::WebGLRenderingContext::lineWidth):
581         (WebCore::WebGLRenderingContext::linkProgram):
582         (WebCore::WebGLRenderingContext::pixelStorei):
583         (WebCore::WebGLRenderingContext::polygonOffset):
584         (WebCore::WebGLRenderingContext::readPixels):
585         (WebCore::WebGLRenderingContext::renderbufferStorage):
586         (WebCore::WebGLRenderingContext::sampleCoverage):
587         (WebCore::WebGLRenderingContext::scissor):
588         (WebCore::WebGLRenderingContext::stencilFunc):
589         (WebCore::WebGLRenderingContext::stencilFuncSeparate):
590         (WebCore::WebGLRenderingContext::stencilMask):
591         (WebCore::WebGLRenderingContext::stencilMaskSeparate):
592         (WebCore::WebGLRenderingContext::stencilOp):
593         (WebCore::WebGLRenderingContext::stencilOpSeparate):
594         (WebCore::WebGLRenderingContext::texImage2DBase):
595         (WebCore::WebGLRenderingContext::texImage2DImpl):
596         (WebCore::WebGLRenderingContext::texImage2D):
597         (WebCore::WebGLRenderingContext::texParameter):
598         (WebCore::WebGLRenderingContext::texParameterf):
599         (WebCore::WebGLRenderingContext::texParameteri):
600         (WebCore::WebGLRenderingContext::texSubImage2DBase):
601         (WebCore::WebGLRenderingContext::texSubImage2DImpl):
602         (WebCore::WebGLRenderingContext::texSubImage2D):
603         (WebCore::WebGLRenderingContext::uniform1f):
604         (WebCore::WebGLRenderingContext::uniform1fv):
605         (WebCore::WebGLRenderingContext::uniform1i):
606         (WebCore::WebGLRenderingContext::uniform1iv):
607         (WebCore::WebGLRenderingContext::uniform2f):
608         (WebCore::WebGLRenderingContext::uniform2fv):
609         (WebCore::WebGLRenderingContext::uniform2i):
610         (WebCore::WebGLRenderingContext::uniform2iv):
611         (WebCore::WebGLRenderingContext::uniform3f):
612         (WebCore::WebGLRenderingContext::uniform3fv):
613         (WebCore::WebGLRenderingContext::uniform3i):
614         (WebCore::WebGLRenderingContext::uniform3iv):
615         (WebCore::WebGLRenderingContext::uniform4f):
616         (WebCore::WebGLRenderingContext::uniform4fv):
617         (WebCore::WebGLRenderingContext::uniform4i):
618         (WebCore::WebGLRenderingContext::uniform4iv):
619         (WebCore::WebGLRenderingContext::uniformMatrix2fv):
620         (WebCore::WebGLRenderingContext::uniformMatrix3fv):
621         (WebCore::WebGLRenderingContext::uniformMatrix4fv):
622         (WebCore::WebGLRenderingContext::vertexAttrib1f):
623         (WebCore::WebGLRenderingContext::vertexAttrib1fv):
624         (WebCore::WebGLRenderingContext::vertexAttrib2f):
625         (WebCore::WebGLRenderingContext::vertexAttrib2fv):
626         (WebCore::WebGLRenderingContext::vertexAttrib3f):
627         (WebCore::WebGLRenderingContext::vertexAttrib3fv):
628         (WebCore::WebGLRenderingContext::vertexAttrib4f):
629         (WebCore::WebGLRenderingContext::vertexAttrib4fv):
630         (WebCore::WebGLRenderingContext::vertexAttribPointer):
631         (WebCore::WebGLRenderingContext::viewport):
632         (WebCore::WebGLRenderingContext::getBooleanParameter):
633         (WebCore::WebGLRenderingContext::getBooleanArrayParameter):
634         (WebCore::WebGLRenderingContext::getFloatParameter):
635         (WebCore::WebGLRenderingContext::getIntParameter):
636         (WebCore::WebGLRenderingContext::getLongParameter):
637         (WebCore::WebGLRenderingContext::getUnsignedLongParameter):
638         (WebCore::WebGLRenderingContext::getWebGLFloatArrayParameter):
639         (WebCore::WebGLRenderingContext::getWebGLIntArrayParameter):
640         (WebCore::WebGLRenderingContext::isTexInternalFormatColorBufferCombinationValid):
641         (WebCore::WebGLRenderingContext::getBoundFramebufferColorFormat):
642         (WebCore::WebGLRenderingContext::validateTextureBinding):
643         (WebCore::WebGLRenderingContext::validateSize):
644         (WebCore::WebGLRenderingContext::validateTexFuncFormatAndType):
645         (WebCore::WebGLRenderingContext::validateTexFuncLevel):
646         (WebCore::WebGLRenderingContext::validateTexFuncParameters):
647         (WebCore::WebGLRenderingContext::validateTexFuncData):
648         (WebCore::WebGLRenderingContext::validateDrawMode):
649         (WebCore::WebGLRenderingContext::validateStencilFunc):
650         (WebCore::WebGLRenderingContext::validateFramebufferFuncParameters):
651         (WebCore::WebGLRenderingContext::validateBlendEquation):
652         (WebCore::WebGLRenderingContext::validateBlendFuncFactors):
653         (WebCore::WebGLRenderingContext::validateCapability):
654         (WebCore::WebGLRenderingContext::validateUniformParameters):
655         (WebCore::WebGLRenderingContext::validateUniformMatrixParameters):
656         (WebCore::WebGLRenderingContext::validateBufferDataParameters):
657         (WebCore::WebGLRenderingContext::vertexAttribfImpl):
658         (WebCore::WebGLRenderingContext::vertexAttribfvImpl):
659         (WebCore::WebGLRenderingContext::simulateVertexAttrib0):
660         * html/canvas/WebGLRenderingContext.h:
661         (WebCore::WebGLRenderingContext::VertexAttribState::VertexAttribState):
662         * html/canvas/WebGLShader.cpp:
663         (WebCore::WebGLShader::create):
664         (WebCore::WebGLShader::WebGLShader):
665         * html/canvas/WebGLShader.h:
666         (WebCore::WebGLShader::getType):
667         * html/canvas/WebGLTexture.cpp:
668         (WebCore::WebGLTexture::setTarget):
669         (WebCore::WebGLTexture::setParameteri):
670         (WebCore::WebGLTexture::setParameterf):
671         (WebCore::WebGLTexture::setLevelInfo):
672         (WebCore::WebGLTexture::generateMipmapLevelInfo):
673         (WebCore::WebGLTexture::getInternalFormat):
674         (WebCore::WebGLTexture::getType):
675         (WebCore::WebGLTexture::getWidth):
676         (WebCore::WebGLTexture::getHeight):
677         (WebCore::WebGLTexture::isNPOT):
678         (WebCore::WebGLTexture::mapTargetToIndex):
679         (WebCore::WebGLTexture::computeLevelCount):
680         (WebCore::WebGLTexture::update):
681         (WebCore::WebGLTexture::getLevelInfo):
682         * html/canvas/WebGLTexture.h:
683         (WebCore::WebGLTexture::LevelInfo::setInfo):
684         * html/canvas/WebGLUniformLocation.cpp:
685         (WebCore::WebGLUniformLocation::create):
686         (WebCore::WebGLUniformLocation::WebGLUniformLocation):
687         (WebCore::WebGLUniformLocation::location):
688         * html/canvas/WebGLUniformLocation.h:
689         * platform/graphics/GraphicsContext3D.h: Map GC3Dboolean to bool instead of unsigned char.
690
691 2011-01-13  Jian Li  <jianli@chromium.org>
692
693         Reviewed by Darin Fisher.
694
695         Change createObjectURL and revokeObjectURL to put under webkitURL.
696         https://bugs.webkit.org/show_bug.cgi?id=52257
697
698         Note that we add "webkit" vendor prefix to URL that is introduced in
699         the latest File API spec.
700
701         For the time being, we implement webkitURL as a readonly attribute
702         instead of a constructor so that we will not expose prototype property,
703         as required by the spec.
704
705         * Android.derived.jscbindings.mk:
706         * Android.derived.v8bindings.mk:
707         * Android.mk:
708         * CMakeLists.txt:
709         * DerivedSources.cpp:
710         * DerivedSources.make:
711         * GNUmakefile.am:
712         * WebCore.gypi:
713         * WebCore.pri:
714         * WebCore.pro:
715         * WebCore.vcproj/WebCore.vcproj:
716         * WebCore.xcodeproj/project.pbxproj:
717         * html/DOMURL.cpp: Added.
718         * html/DOMURL.h: Added.
719         * html/DOMURL.idl: Added.
720         * inspector/front-end/NetworkPanel.js:
721         * inspector/front-end/utilities.js:
722         * page/DOMWindow.cpp:
723         (WebCore::DOMWindow::webkitURL):
724         * page/DOMWindow.h:
725         * page/DOMWindow.idl:
726         * workers/WorkerContext.cpp:
727         (WebCore::WorkerContext::webkitURL):
728         * workers/WorkerContext.h:
729         * workers/WorkerContext.idl:
730
731 2011-01-13  Emil Eklund  <eae@chromium.org>
732
733         Reviewed by Dimitri Glazkov.
734
735         Setting outerText should convert CR/LF to <br>
736         https://bugs.webkit.org/show_bug.cgi?id=52268
737
738         Make set outerText support line breaks (sharing the text to fragment code
739         with setInnerText) and handle empty text nodes the same way IE does.
740
741         Test: fast/dom/set-outer-text.html
742
743         * html/HTMLElement.cpp:
744         (WebCore::HTMLElement::textToFragment): Shared between setInnerText and setOuterText
745         (WebCore::HTMLElement::setInnerText): Split out text parsing code.
746         (WebCore::mergeWithNextTextNode): Split out text node merging code.
747         (WebCore::HTMLElement::setOuterText): Added support for line breaks.
748         * html/HTMLElement.h:
749
750 2011-01-13  Zhenyao Mo  <zmo@google.com>
751
752         Reviewed by Kenneth Russell.
753
754         Relax the ESSL valid charset a little bit to include " ' `
755         https://bugs.webkit.org/show_bug.cgi?id=52396
756
757         * html/canvas/WebGLRenderingContext.cpp:
758
759 >>>>>>> .r75740
760 2011-01-13  Adrienne Walker  <enne@google.com>
761
762         Reviewed by Kenneth Russell.
763
764         [chromium] Attempt to fix crash in tiled compositor memcpy
765         https://bugs.webkit.org/show_bug.cgi?id=52379
766
767         * platform/graphics/chromium/LayerTilerChromium.cpp:
768         (WebCore::LayerTilerChromium::update):
769
770 2011-01-13  Dimitri Glazkov  <dglazkov@chromium.org>
771
772         Unreviewed, rolling out r75725.
773         http://trac.webkit.org/changeset/75725
774         https://bugs.webkit.org/show_bug.cgi?id=52317
775
776         Caused crashes in layout tests.
777
778         * css/CSSStyleSelector.cpp:
779         (WebCore::CSSStyleSelector::initForStyleResolve):
780         * html/HTMLInputElement.cpp:
781         (WebCore::HTMLInputElement::updateType):
782         * html/InputType.cpp:
783         * html/InputType.h:
784         * html/RangeInputType.cpp:
785         * html/RangeInputType.h:
786         * html/shadow/SliderThumbElement.cpp:
787         (WebCore::SliderThumbElement::defaultEventHandler):
788         (WebCore::SliderThumbElement::detach):
789         * html/shadow/SliderThumbElement.h:
790         (WebCore::SliderThumbElement::SliderThumbElement):
791         (WebCore::SliderThumbElement::create):
792         * rendering/MediaControlElements.cpp:
793         (WebCore::MediaControlInputElement::attach):
794         (WebCore::MediaControlInputElement::updateStyle):
795         * rendering/RenderSlider.cpp:
796         (WebCore::RenderSlider::~RenderSlider):
797         (WebCore::RenderSlider::styleDidChange):
798         (WebCore::RenderSlider::createThumbStyle):
799         (WebCore::RenderSlider::thumbRect):
800         (WebCore::RenderSlider::layout):
801         (WebCore::RenderSlider::updateFromElement):
802         (WebCore::RenderSlider::mouseEventIsInThumb):
803         (WebCore::RenderSlider::mouseEventOffsetToThumb):
804         (WebCore::RenderSlider::setValueForPosition):
805         (WebCore::RenderSlider::positionForOffset):
806         (WebCore::RenderSlider::currentPosition):
807         (WebCore::RenderSlider::trackSize):
808         (WebCore::RenderSlider::forwardEvent):
809         (WebCore::RenderSlider::inDragMode):
810         * rendering/RenderSlider.h:
811
812 2011-01-12  Dimitri Glazkov  <dglazkov@chromium.org>
813
814         Reviewed by Darin Adler.
815
816         Flip input[type=range] to use the new shadow DOM model.
817         https://bugs.webkit.org/show_bug.cgi?id=52317
818
819         This is a straight-up flip, minimal change to the logic, which will be
820         refactored in a follow-up patch.
821
822         Covered by existing tests.
823
824         * css/CSSStyleSelector.cpp:
825         (WebCore::CSSStyleSelector::initForStyleResolve): Changed to use either
826             host or parent node to find parent.
827         * html/HTMLInputElement.cpp:
828         (WebCore::HTMLInputElement::updateType): Added logic for destroying/creating
829             shadow DOM subtree.
830         * html/InputType.cpp:
831         (WebCore::InputType::createShadowSubtree): Added empty decl.
832         (WebCore::InputType::destroyShadowSubtree): Added a method to destroy
833             shadow subtree.
834         * html/InputType.h: Added defs.
835         * html/RangeInputType.cpp:
836         (WebCore::RangeInputType::createShadowSubtree): Added a virtual method to create
837             slider thumb.
838         * html/RangeInputType.h: Adde def.
839         * html/shadow/SliderThumbElement.cpp: Added temporary RenderSliderThumb class
840             to handle cascading appearance.
841         (WebCore::RenderSliderThumb::RenderSliderThumb): Added.
842         (WebCore::RenderSliderThumb::layout): Moved here the logic from
843             RenderSlider::createThumbStyle.
844         (WebCore::SliderThumbElement::createRenderer): Added virtual method to
845             create RenderSliderThumb instance.
846         (WebCore::SliderThumbElement::defaultEventHandler): Changed to use HTMLDivElement
847             as base class.
848         (WebCore::SliderThumbElement::detach): Ditto.
849         * html/shadow/SliderThumbElement.h:
850         (WebCore::SliderThumbElement::SliderThumbElement): Ditto.
851         (WebCore::SliderThumbElement::create): Ditto.
852         (WebCore::toSliderThumbElement): Added a casting helper.
853         * rendering/MediaControlElements.cpp:
854         (WebCore::MediaControlInputElement::attach): Added handling of shadow DOM,
855             since the whole method is hand-rolled.
856         (WebCore::MediaControlInputElement::updateStyle): Ditto.
857         * rendering/RenderSlider.cpp:
858         (WebCore::RenderSlider::~RenderSlider): Removed unneeded code.
859         (WebCore::RenderSlider::thumbRect): Changed to use sliderThumbElement helper.
860         (WebCore::RenderSlider::layout): Ditto.
861         (WebCore::RenderSlider::sliderThumbElement): Added a temporary helper to access
862             SliderThumbElement.
863         (WebCore::RenderSlider::mouseEventIsInThumb): Changed to use sliderThumbElement helper.
864         (WebCore::RenderSlider::mouseEventOffsetToThumb): Ditto.
865         (WebCore::RenderSlider::setValueForPosition): Ditto.
866         (WebCore::RenderSlider::positionForOffset): Ditto.
867         (WebCore::RenderSlider::currentPosition): Ditto.
868         (WebCore::RenderSlider::trackSize): Ditto.
869         (WebCore::RenderSlider::forwardEvent): Ditto.
870         (WebCore::RenderSlider::inDragMode): Ditto.
871         * rendering/RenderSlider.h: Added def.
872
873 2011-01-13  Dan Bernstein  <mitz@apple.com>
874
875         Reviewed by Simon Fraser.
876
877         <rdar://problem/8098442> Crash in Widget::setFrameRect()
878         https://bugs.webkit.org/show_bug.cgi?id=52375
879
880         Test: plugins/destroy-on-setwindow.html
881
882         * platform/mac/WidgetMac.mm:
883         (WebCore::Widget::setFrameRect): Protect the Widget from being deleted as a result of calling
884         out to the view.
885         (WebCore::Widget::getOuterView): Coding style fix.
886         (WebCore::Widget::paint): Protect the Widget from being deleted as a result of calling out to
887         the views. This is precautionary, since this function does not applear to access member variables
888         after such calls.
889         * platform/wx/WidgetWx.cpp:
890         (WebCore::Widget::setFrameRect): Protect the Widget from being deleted as a result of calling
891         out to the platform widget.
892
893 2011-01-13  Csaba Osztrogonác  <ossy@webkit.org>
894
895         Unreviewed buildfix after r75715.
896
897         * WebCore.pri:
898         * WebCore.pro:
899
900 2011-01-13  Pavel Feldman  <pfeldman@chromium.org>
901
902         Not reviewed: Qt build fix.
903
904         * WebCore.pri:
905
906 2011-01-12  Pavel Feldman  <pfeldman@chromium.org>
907
908         Reviewed by Yury Semikhatsky.
909
910         Web Inspector: embed injected script into the backend.
911         https://bugs.webkit.org/show_bug.cgi?id=52312
912
913         InjectedScript belongs to the backend of the system and
914         should be exposed by means of protocol, not InjectedScriptAccess.
915         This patch makes injected script a part of the backend.
916         It introduces single manual generation step (xxd -i) that should be
917         automated by the build scripts for all the platforms.
918
919         * CMakeLists.txt:
920         * DerivedSources.make:
921         * GNUmakefile.am:
922         * WebCore.gyp/WebCore.gyp:
923         * WebCore.gypi:
924         * WebCore.pro:
925         * WebCore.vcproj/WebCore.vcproj:
926         * WebCore.xcodeproj/project.pbxproj:
927         * bindings/js/JSInjectedScriptHostCustom.cpp:
928         (WebCore::InjectedScriptHost::injectedScriptFor):
929         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
930         (WebCore::InjectedScriptHost::injectedScriptFor):
931         * inspector/InjectedScriptHost.cpp:
932         (WebCore::InjectedScriptHost::injectedScriptSource):
933         * inspector/InjectedScriptHost.h:
934         * inspector/Inspector.idl:
935         * inspector/InspectorController.cpp:
936         (WebCore::InspectorController::restoreInspectorStateFromCookie):
937         * inspector/InspectorState.cpp:
938         (WebCore::InspectorState::InspectorState):
939         * inspector/InspectorState.h:
940         * inspector/front-end/InjectedScript.js: Removed.
941         * inspector/front-end/WebKit.qrc:
942         * inspector/front-end/inspector.html:
943         * inspector/front-end/inspector.js:
944         (WebInspector.doLoadedDone.propertyNamesCallback):
945         (WebInspector.doLoadedDone):
946         * inspector/xxd.pl: Added.
947
948 2011-01-13  Mikhail Naganov  <mnaganov@chromium.org>
949
950         Reviewed by Timothy Hatcher.
951
952         Web Inspector: Cleanup after r75613 -- make all UI-facing strings
953         to be passed directly to WebInspector.UIString
954
955         https://bugs.webkit.org/show_bug.cgi?id=52365
956
957         * English.lproj/localizedStrings.js:
958         * inspector/front-end/ApplicationCacheItemsView.js:
959         (WebInspector.ApplicationCacheItemsView.prototype._updateCallback):
960         (WebInspector.ApplicationCacheItemsView.prototype._populateDataGrid):
961         * inspector/front-end/AuditRules.js:
962         (WebInspector.AuditRules.GzipRule.prototype.doRun):
963         (WebInspector.AuditRules.CookieSizeRule.prototype.processCookies):
964         (WebInspector.AuditRules.StaticCookielessRule.prototype.processCookies):
965         * inspector/front-end/BreakpointsSidebarPane.js:
966         (WebInspector.EventListenerBreakpointsSidebarPane):
967         (WebInspector.EventListenerBreakpointsSidebarPane.prototype._createCategory):
968         * inspector/front-end/CookieItemsView.js:
969         (WebInspector.CookieItemsView.prototype._updateWithCookies):
970         * inspector/front-end/ImageView.js:
971         (WebInspector.ImageView.prototype._createContentIfNeeded.onImageLoad):
972         (WebInspector.ImageView.prototype._createContentIfNeeded):
973         * inspector/front-end/NetworkPanel.js:
974         (WebInspector.NetworkTimeCalculator.prototype.formatValue):
975         (WebInspector.NetworkTransferTimeCalculator.prototype.formatValue):
976         (WebInspector.NetworkTransferDurationCalculator.prototype.formatValue):
977         * inspector/front-end/ProfileDataGridTree.js:
978         (WebInspector.ProfileDataGridNode.prototype.get data.formatMilliseconds):
979         (WebInspector.ProfileDataGridNode.prototype.get data):
980         * inspector/front-end/Resource.js:
981         (WebInspector.Resource.Type.toUIString):
982         (WebInspector.Resource.Type.toString):
983         * inspector/front-end/TimelineOverviewPane.js:
984         (WebInspector.TimelineOverviewCalculator.prototype.formatValue):
985         * inspector/front-end/TimelinePanel.js:
986         (WebInspector.TimelinePanel):
987         (WebInspector.TimelineCalculator.prototype.formatValue):
988         (WebInspector.TimelinePanel.FormattedRecord.prototype._generateAggregatedInfo):
989         (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
990         (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
991         * inspector/front-end/utilities.js:
992         ():
993
994 2011-01-13  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
995
996         Reviewed by Simon Hausmann.
997
998         [Qt] Need a way to inform the application when a Netscape plugin is created.
999         https://bugs.webkit.org/show_bug.cgi?id=30179
1000
1001         Added "c" style static method for the application to hook up for
1002         receiving notifications when a plugin is created.
1003
1004         * plugins/symbian/PluginViewSymbian.cpp:
1005         (qtwebkit_setPluginCreatedCallback):
1006         (WebCore::PluginView::platformStart):
1007
1008 2011-01-13  Yi Shen  <yi.4.shen@nokia.com>
1009
1010         Reviewed by Eric Seidel.
1011
1012         [Qt] Use a black background color for the video element on Qt Mobile
1013         https://bugs.webkit.org/show_bug.cgi?id=52252
1014
1015         Use black as the background color for the video element on Qt Mobile.
1016
1017         * css/themeQtMobile.css:
1018         (video):
1019
1020 2011-01-13  Yi Shen  <yi.4.shen@nokia.com>
1021
1022         Reviewed by Eric Seidel.
1023
1024         [Qt] Use a big central media play control button for video element 
1025         https://bugs.webkit.org/show_bug.cgi?id=52315
1026
1027         When ChromeClient::requiresFullscreenForVideoPlayback() returns true,
1028         all other control buttons for the video element are hidden, except 
1029         a big centralized play button.
1030
1031         No new tests because no client implements requiresFullscreenForVideoPlayback yet.
1032
1033         * WebCore.pri:
1034         * css/mediaControlsQtFullscreen.css: Added.
1035         (audio):
1036         (audio::-webkit-media-controls-panel):
1037         (video::-webkit-media-controls-panel):
1038         (video:-webkit-full-page-media::-webkit-media-controls-panel):
1039         (audio::-webkit-media-controls-mute-button):
1040         (video::-webkit-media-controls-mute-button):
1041         (audio::-webkit-media-controls-play-button):
1042         (video::-webkit-media-controls-play-button):
1043         (audio::-webkit-media-controls-timeline-container):
1044         (video::-webkit-media-controls-timeline-container):
1045         (audio::-webkit-media-controls-current-time-display):
1046         (video::-webkit-media-controls-current-time-display):
1047         (audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-time-remaining-display):
1048         (audio::-webkit-media-controls-timeline):
1049         (video::-webkit-media-controls-timeline):
1050         (audio::-webkit-media-controls-volume-slider-container):
1051         (video::-webkit-media-controls-volume-slider-container):
1052         (audio::-webkit-media-controls-volume-slider):
1053         (video::-webkit-media-controls-volume-slider):
1054         (audio::-webkit-media-controls-seek-back-button, video::-webkit-media-controls-seek-back-button):
1055         (audio::-webkit-media-controls-seek-forward-button, video::-webkit-media-controls-seek-forward-button):
1056         (audio::-webkit-media-controls-fullscreen-button):
1057         (video::-webkit-media-controls-fullscreen-button):
1058         (audio::-webkit-media-controls-rewind-button, video::-webkit-media-controls-rewind-button):
1059         (audio::-webkit-media-controls-return-to-realtime-button, video::-webkit-media-controls-return-to-realtime-button):
1060         (audio::-webkit-media-controls-toggle-closed-captions-button, video::-webkit-media-controls-toggle-closed-captions-button):
1061         * platform/qt/RenderThemeQt.cpp:
1062         (WebCore::RenderThemeQt::extraMediaControlsStyleSheet):
1063
1064 2011-01-13  Carlos Garcia Campos  <cgarcia@igalia.com>
1065
1066         Reviewed by Xan Lopez.
1067
1068         [GTK] Paint toggle buttons inconsistent when the object state is indeterminate
1069         https://bugs.webkit.org/show_bug.cgi?id=52361
1070
1071         Check whether the object state is indeterminate to set the flag
1072         GTK_STATE_FLAG_INCONSISTENT before rendering check and radio
1073         buttons.
1074
1075         * platform/gtk/RenderThemeGtk3.cpp:
1076         (WebCore::paintToggle):
1077
1078 2011-01-13  Yi Shen  <yi.4.shen@nokia.com>
1079
1080         Reviewed by Simon Hausmann.
1081
1082         [Qt] Extend the Platform Plugin to support full screen video handler
1083         https://bugs.webkit.org/show_bug.cgi?id=51249
1084
1085         Make MediaPlayerPrivateQt support a fullscreen player.
1086
1087         No new tests because LayoutTests/media/media-fullscreen-inline.html already exists.
1088         However, this test failed for Qt (QtMediaPlayer) due to durationchange event getting fired twice.
1089         So, still skip it for Qt.
1090
1091         * WebCore.pro:
1092         * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
1093         (WebCore::MediaPlayerPrivateQt::MediaPlayerPrivateQt):
1094         (WebCore::MediaPlayerPrivateQt::removeVideoItem):
1095         (WebCore::MediaPlayerPrivateQt::restoreVideoItem):
1096         * platform/graphics/qt/MediaPlayerPrivateQt.h:
1097         (WebCore::MediaPlayerPrivateQt::supportsFullscreen):
1098         (WebCore::MediaPlayerPrivateQt::mediaPlayer):
1099
1100 2011-01-13  Dan Bernstein  <mitz@apple.com>
1101
1102         Reviewed by Dave Hyatt.
1103
1104         <rdar://problem/8858548> Disable inheritance of text emphasis marks to ruby text
1105         https://bugs.webkit.org/show_bug.cgi?id=52359
1106
1107         Test: fast/ruby/text-emphasis.html
1108
1109         * css/html.css:
1110         (rt):
1111
1112 2011-01-13  Csaba Osztrogonác  <ossy@webkit.org>
1113
1114         Rubber-stamped by David Levin.
1115
1116         Trivial fix after r75682.
1117
1118         * loader/FrameLoader.cpp: Remove accidentally committed debug code.
1119         (WebCore::FrameLoader::shouldClose):
1120
1121 2011-01-12  Ryosuke Niwa  <rniwa@webkit.org>
1122
1123         Reviewed by Eric Seidel.
1124
1125         REGRESSION(r69831): focus() in onkeypress discards input (affects chaseonline.chase.com)
1126         https://bugs.webkit.org/show_bug.cgi?id=52241
1127
1128         The bug was caused by RenderTextControl::selection's creating a Range with m_insertText
1129         which is a shadow DOM div as both start and end containers. Fixed the bug by traversing
1130         through the descendents of m_innerText and using the right start and end containers to
1131         create a Range.
1132
1133         Test: fast/forms/focus-change-on-keypress.html
1134
1135         * rendering/RenderTextControl.cpp:
1136         (WebCore::setContainerAndOffsetForRange): Added; a helper function.
1137         (WebCore::RenderTextControl::selection): See above.
1138
1139 2011-01-12  Kenichi Ishibashi  <bashi@google.com>
1140
1141         Reviewed by Kent Tamura.
1142
1143         M_formElementsWithFormAttribute not cleared when FormAssociatedElement is inserted with a null m_form and then removed.
1144         https://bugs.webkit.org/show_bug.cgi?id=51905
1145
1146         Calls unregisterFormElementWithFormAttribute() when 'form' attribute
1147         is removed.
1148
1149         Tests: fast/forms/form-associated-element-crash.html
1150                fast/forms/form-associated-element-crash2.html
1151
1152         * html/FormAssociatedElement.cpp:
1153         (WebCore::FormAssociatedElement::formAttributeChanged):
1154
1155 2011-01-12  Kenichi Ishibashi  <bashi@google.com>
1156
1157         Reviewed by Kent Tamura.
1158
1159         M_formElementsWithFormAttribute not cleared when Node is moved to another document.
1160         https://bugs.webkit.org/show_bug.cgi?id=51418
1161
1162         Calls unregisterFormElementWithFormAttribute() when form associated elements
1163         are moved to another document.
1164
1165         Test: fast/forms/change-form-element-document-crash.html
1166
1167         * html/FormAssociatedElement.cpp:
1168         (WebCore::FormAssociatedElement::willMoveToNewOwnerDocument): Added.
1169         * html/FormAssociatedElement.h: Added willMoveToNewOwnerDocument().
1170         * html/HTMLFormControlElement.cpp:
1171         (WebCore::HTMLFormControlElement::willMoveToNewOwnerDocument): Added.
1172         * html/HTMLFormControlElement.h: Added willMoveToNewOwnerDocument().
1173         * html/HTMLObjectElement.cpp:
1174         (WebCore::HTMLObjectElement::willMoveToNewOwnerDocument): Added.
1175         * html/HTMLObjectElement.h: Added willMoveToNewOwnerDocument().
1176         * html/HTMLPlugInImageElement.h: Moves willMoveToNewOwnerDocument() to protected.
1177
1178 2011-01-12  Ryosuke Niwa  <rniwa@webkit.org>
1179
1180         Reviewed by Eric Seidel.
1181
1182         Stop instantiating legacy editing positions in ApplyBlockElementCommand and ApplyStyleCommand
1183         https://bugs.webkit.org/show_bug.cgi?id=52250
1184
1185         Removed instantiation of legacy editing positions.
1186         Calls to Position::Position are replaced by calls to Position's convenience functions.
1187
1188         Also added firstPositionInOrBeforeNode and lastPositionInOrAfterNode,
1189         which are functions that return firstPositionInNode and lastPositionInNode respectively
1190         when the specified node can have children for editing purpose and return positionBeforeNode
1191         and positionAfterNode respectively otherwise. They can be used to guarantee that we never
1192         create a bogus position like [img, 0] or [br, 0].
1193
1194         No tests are added since this is a cleanup.
1195
1196         * editing/ApplyBlockElementCommand.cpp:
1197         (WebCore::ApplyBlockElementCommand::formatSelection):
1198         * editing/ApplyStyleCommand.cpp:
1199         (WebCore::ApplyStyleCommand::applyBlockStyle):
1200         (WebCore::ApplyStyleCommand::fixRangeAndApplyInlineStyle):
1201         (WebCore::ApplyStyleCommand::highestAncestorWithConflictingInlineStyle):
1202         (WebCore::ApplyStyleCommand::removeInlineStyle):
1203         (WebCore::ApplyStyleCommand::nodeFullySelected):
1204         (WebCore::ApplyStyleCommand::nodeFullyUnselected):
1205         (WebCore::ApplyStyleCommand::splitTextAtStart):
1206         (WebCore::ApplyStyleCommand::splitTextAtEnd):
1207         (WebCore::ApplyStyleCommand::splitTextElementAtStart):
1208         (WebCore::ApplyStyleCommand::splitTextElementAtEnd):
1209         (WebCore::ApplyStyleCommand::isValidCaretPositionInTextNode):
1210         (WebCore::ApplyStyleCommand::mergeStartWithPreviousIfIdentical):
1211         (WebCore::ApplyStyleCommand::mergeEndWithNextIfIdentical):
1212         (WebCore::ApplyStyleCommand::computedFontSize):
1213         (WebCore::ApplyStyleCommand::joinChildTextNodes):
1214         * editing/ApplyStyleCommand.h:
1215         * editing/htmlediting.h:
1216         (WebCore::firstPositionInOrBeforeNode): Added.
1217         (WebCore::lastPositionInOrAfterNode): Added.
1218
1219 >>>>>>> .r75734
1220 2011-01-12  Sam Weinig  <sam@webkit.org>
1221
1222         Another build fix.
1223
1224         * platform/mac/WheelEventMac.mm:
1225         (WebCore::phaseForEvent):
1226
1227 2011-01-12  Sam Weinig  <sam@webkit.org>
1228
1229         Fix build.
1230
1231         * platform/mac/WheelEventMac.mm:
1232         (WebCore::phaseForEvent):
1233
1234 2011-01-12  Adam Barth  <abarth@webkit.org>
1235
1236         Reviewed by Darin Adler.
1237
1238         Remove premature optimization from SchemeRegistry
1239         https://bugs.webkit.org/show_bug.cgi?id=52283
1240
1241         As far as I can tell, this optimization isn't necessary.  I'm slightly
1242         unsure which benchmarks to run to demonstrate this numerically, but
1243         none of the benchmarks Chromium tracks were affected by adding a
1244         similar check for "display-isolated" schemes.
1245
1246         * platform/SchemeRegistry.cpp:
1247         (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal):
1248
1249 2011-01-12  Beth Dakin  <bdakin@apple.com>
1250
1251         Reviewed by Anders Carlsson.
1252
1253         Add-on for https://bugs.webkit.org/show_bug.cgi?id=52309 
1254         Expose fixed layout through WebKit SPI
1255         -and corresponding-
1256         <rdar://problem/8844464>
1257
1258         And now with getters!
1259         * WebCore.exp.in:
1260
1261 2011-01-12  Sam Weinig  <sam@webkit.org>
1262
1263         Reviewed by Anders Carlsson.
1264
1265         https://bugs.webkit.org/show_bug.cgi?id=52337
1266         PlatformWheelEvent should know about the scroll phase on the Mac
1267
1268         Add a phase parameter on Mac PlatformWheelEvents.
1269
1270         * platform/PlatformWheelEvent.h:
1271         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1272         (WebCore::PlatformWheelEvent::phase):
1273         * platform/mac/WheelEventMac.mm:
1274         (WebCore::phaseForEvent):
1275         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1276
1277 2011-01-12  Chris Marrin  <cmarrin@apple.com>
1278
1279         Unreviewed.
1280
1281         A couple of lines of the patch for https://bugs.webkit.org/show_bug.cgi?id=52321
1282         were omitted. 
1283
1284         * platform/graphics/ca/GraphicsLayerCA.cpp:
1285         (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers):
1286
1287 2011-01-12  Chris Marrin  <cmarrin@apple.com>
1288
1289         Unreviewed.
1290
1291         Getting rid of an assert that was causing build failures that turns out not to be needed.
1292
1293         * rendering/RenderLayer.cpp:
1294         (WebCore::RenderLayer::paintsWithTransform):
1295
1296 2011-01-12  Chris Marrin  <cmarrin@apple.com>
1297
1298         Unreviewed.
1299
1300         Another fix for Gtk
1301
1302         * rendering/RenderLayer.cpp:
1303         (WebCore::RenderLayer::paintsWithTransform):
1304
1305 2011-01-12  Chris Marrin  <cmarrin@apple.com>
1306
1307         Unreviewed.
1308
1309         Fix for Gtk and Windows builds
1310
1311         * page/Frame.cpp:
1312         (WebCore::Frame::scalePage):
1313         * page/Frame.h:
1314         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
1315         (PlatformCALayer::contentsScale):
1316         (PlatformCALayer::setContentsScale):
1317
1318 2011-01-12  Chris Marrin  <cmarrin@apple.com>
1319
1320         UNreviewed.
1321
1322         Fix for the Windows build
1323
1324         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
1325         (contentsScale):
1326         (setContentsScale):
1327
1328 2011-01-12  Chris Marrin  <cmarrin@apple.com>
1329
1330         Unreviewed.
1331
1332         Another build fix
1333
1334         * platform/graphics/ca/GraphicsLayerCA.cpp:
1335         (WebCore::GraphicsLayerCA::clampedContentsScaleForScale):
1336         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
1337         (PlatformCALayer::setContentsScale):
1338
1339 2011-01-11  Matthew Delaney  <mdelaney@apple.com>
1340
1341         Reviewed by Simon Fraser.
1342
1343         Max area bound needed in creation of IOSurface in ImageBufferCG.cpp
1344         https://bugs.webkit.org/show_bug.cgi?id=52172
1345
1346         Tests: fast/canvas/canvas-large-dimensions.html
1347
1348         * platform/graphics/cg/ImageBufferCG.cpp:
1349         (WebCore::ImageBuffer::ImageBuffer):
1350
1351 2011-01-12  Daniel Bates  <dbates@rim.com>
1352             And Benjamin C Meyer  <bmeyer@rim.com>
1353
1354         Build fix when building with Inspector disabled
1355         https://bugs.webkit.org/show_bug.cgi?id=52313
1356
1357         After changeset 75604 <http://trac.webkit.org/changeset/75604> it's not
1358         possible to build when the Inspector is disabled.
1359
1360         * inspector/InspectorInstrumentation.h:
1361         (WebCore::InspectorInstrumentation::updateApplicationCacheStatus): Fix build breakage when building
1362         with Inspector disabled and Offline Web Applications enabled by moving macro guard condition
1363         ENABLE(INSPECTOR) && ENABLE(OFFLINE_WEB_APPLICATIONS) into function body. This makes us also
1364         consistent with the form we use for InspectorInstrumentation::networkStateChanged() and other
1365         InspectorInstrumentation functions.
1366         * loader/appcache/ApplicationCacheGroup.cpp:
1367         (WebCore::ApplicationCacheGroup::didReceiveData): Fix build breakage when building with Inspector
1368         disabled by adding ENABLE(INSPECTOR) guard around code that references the instance variable
1369         ApplicationCacheGroup::m_currentResourceIdentifier as this variable only exists when building
1370         with the Inspector.
1371         (WebCore::ApplicationCacheGroup::didFinishLoading): Ditto.
1372         (WebCore::ApplicationCacheGroup::didFail): Ditto.
1373
1374 2011-01-12  Chris Marrin  <cmarrin@apple.com>
1375
1376         Unreviewed.
1377
1378         Fix a build issue from http://trac.webkit.org/changeset/75639.
1379
1380         * platform/graphics/GraphicsLayer.h:
1381         (WebCore::GraphicsLayer::contentsScale):
1382         (WebCore::GraphicsLayer::setContentsScale):
1383
1384 2011-01-12  Chris Marrin  <cmarrin@apple.com>
1385
1386         Reviewed by Kevin Decker.
1387
1388         Pages with accelerated layers lose subpixel-AA and become blurry when a scale factor is applied
1389         rdar://problem/8824974
1390
1391         This prevents the rootLayer (with the WebKit rendered content) from going becoming
1392         a tiled layer when zoomed, and when there is other layered content on the page.
1393         This speeds up zooming a lot and avoids some buggy behavior in CA with a very large
1394         number of layers.
1395         
1396         * rendering/RenderLayer.cpp:
1397         (WebCore::RenderLayer::paintsWithTransform):
1398         * rendering/RenderLayer.h:
1399         * rendering/RenderLayerBacking.cpp:
1400         (WebCore::RenderLayerBacking::paintingGoesToWindow):
1401
1402 2011-01-12  Chris Marrin  <cmarrin@apple.com>
1403
1404         Reviewed by Simon Fraser.
1405         
1406         Pages with accelerated layers lose subpixel-AA and become blurry when a scale factor is applied
1407         rdar://problem/8824974
1408
1409         When scaled, WebKit renders the page content at the scaled up size, so there are no
1410         scaling artifacts. But content drawn into a layer's backing store does not scale up.
1411         This is made worse by the fact that the root page contents become layered when there
1412         are other accelerated compositing layers present (video, plugins, etc.).
1413         
1414         Plumb scaling factor from Frame::scalePage() down into all layers with content. It
1415         eventually calls CALayer::setContentsScale which renders to a backing store whose dimensions
1416         are scaled, causing them to render larger and appear pixel perfect at the scaled
1417         page size.
1418  
1419          * page/Frame.cpp:
1420          (WebCore::Frame::updateContentsScale):
1421          (WebCore::Frame::scalePage):
1422          * page/Frame.h:
1423          * platform/graphics/GraphicsLayer.h:
1424          * platform/graphics/ca/GraphicsLayerCA.cpp:
1425          (WebCore::GraphicsLayerCA::setContentsScale):
1426          (WebCore::GraphicsLayerCA::clampedContentsScaleForScale):
1427          * platform/graphics/ca/GraphicsLayerCA.h:
1428          (WebCore::GraphicsLayerCA::contentsScale):
1429          * platform/graphics/ca/PlatformCALayer.h:
1430          * platform/graphics/ca/mac/PlatformCALayerMac.mm:
1431          (PlatformCALayer::contentsScale):
1432          (PlatformCALayer::setContentsScale):
1433          * rendering/RenderLayer.cpp:
1434          (WebCore::RenderLayer::updateContentsScale):
1435          * rendering/RenderLayer.h:
1436          * rendering/RenderLayerBacking.cpp:
1437          (WebCore::RenderLayerBacking::createGraphicsLayer):
1438          (WebCore::RenderLayerBacking::updateForegroundLayer):
1439          (WebCore::RenderLayerBacking::updateMaskLayer):
1440          (WebCore::RenderLayerBacking::updateContentsScale):
1441          * rendering/RenderLayerBacking.h:
1442          * rendering/RenderLayerCompositor.cpp:
1443          (WebCore::RenderLayerCompositor::updateContentsScale):
1444          * rendering/RenderLayerCompositor.h:
1445  
1446 2011-01-12  Stephen White  <senorblanco@chromium.org>
1447
1448         Reviewed by James Robinson.
1449
1450         Fix DrawingBuffer issues for depth/stencil, extensions, etc.
1451         https://bugs.webkit.org/show_bug.cgi?id=52310
1452
1453         1)  GL_TEXTURE is not a valid argument to glFramebufferTexture2D()
1454         (should be GL_TEXTURE_2D).
1455         2)  Support for the multisampling extension was being checked after
1456         the DrawingBuffer constructor was called, which calls multisample()
1457         to check for the extension.
1458         3)  If depth or stencil is set, the corresponding framebuffers must
1459         be created in the DrawingBuffer constructor.
1460         4)  GL_DEPTH_STENCIL is not a valid framebuffer internal type in
1461         GLES2.  Must use GL_OES_DEPTH24_STENCIL8, and check for the
1462         OES_packed_depth_stencil extension.
1463
1464         * platform/graphics/chromium/DrawingBufferChromium.cpp:
1465         (WebCore::DrawingBuffer::DrawingBuffer):
1466         Record the extension support in the constructor.  Create all the
1467         secondary drawing buffers (for multisampling, depth/stencil).
1468         * platform/graphics/gpu/DrawingBuffer.cpp:
1469         (WebCore::DrawingBuffer::create):
1470         Check for the extensions before calling the DrawingBuffer constructor.
1471         (WebCore::DrawingBuffer::createSecondaryBuffers):
1472         Refactor creation of the secondary buffers from DrawingBufferMac.mm to
1473         here.
1474         (WebCore::DrawingBuffer::reset):
1475         Use DEPTH24_STENCIL8 format, not DEPTH_STENCIL.  Use
1476         DEPTH_COMPONENT16, not DEPTH_COMPONENT.
1477         Use GL_TEXTURE_2D, not GL_TEXTURE (for glFramebufferTexture2D).
1478         * platform/graphics/gpu/DrawingBuffer.h:
1479         Refactor createSecondaryBuffers().  Add extension support arguments to
1480         constructor.  Add support for packed_depth_stencil extension.
1481         * platform/graphics/gpu/mac/DrawingBufferMac.mm:
1482         (WebCore::DrawingBuffer::DrawingBuffer):
1483         Record extension support in constructor.  Refactor out creation of
1484         secondary buffers.
1485
1486 2011-01-12  Beth Dakin  <bdakin@apple.com>
1487
1488         Reviewed by Anders Carlsson.
1489
1490         Fix for https://bugs.webkit.org/show_bug.cgi?id=52309 Expose
1491         fixed layout through WebKit SPI
1492         -and corresponding-
1493         <rdar://problem/8844464>
1494
1495         Export symbols for ScrollView::setUseFixedLayout() and 
1496         ScrollView::setFixedLayoutSize()
1497         * WebCore.exp.in:
1498
1499 2011-01-12  Robert Hogan  <robert@webkit.org>
1500
1501         Reviewed by Kenneth Rohde Christiansen.
1502
1503         [Qt] Search input field doesn't have cancel button
1504
1505         Add a cancel button to the search field and make it customizable
1506         by the client. For now, use the close dialog button associated
1507         with the application's style as the default.
1508
1509         Unskip a bunch of search field related tests that pass now:
1510
1511         fast/forms/search-cancel-button-mouseup.html
1512         fast/forms/search-rtl.html
1513         fast/forms/search-abs-pos-cancel-button.html
1514         fast/forms/search-styled.html
1515         fast/forms/search-transformed.html
1516         fast/forms/search-zoomed.html
1517         fast/forms/search-cancel-button-style-sharing.html
1518         fast/forms/search-display-none-cancel-button.html
1519         fast/forms/search-placeholder-value-changed.html
1520         fast/repaint/search-field-cancel.html
1521         fast/forms/search-cancel-button-events.html
1522
1523         https://bugs.webkit.org/show_bug.cgi?id=42887
1524
1525         * platform/graphics/qt/ImageQt.cpp:
1526         (loadResourcePixmap):
1527         * platform/qt/RenderThemeQt.cpp:
1528         (WebCore::RenderThemeQt::isControlStyled):
1529         (WebCore::RenderThemeQt::computeSizeBasedOnStyle):
1530         (WebCore::RenderThemeQt::paintSearchField):
1531         (WebCore::RenderThemeQt::adjustSearchFieldStyle):
1532         (WebCore::RenderThemeQt::adjustSearchFieldCancelButtonStyle):
1533         (WebCore::RenderThemeQt::convertToPaintingRect):
1534         (WebCore::RenderThemeQt::paintSearchFieldCancelButton):
1535         * platform/qt/RenderThemeQt.h:
1536
1537 2011-01-12  Andrey Kosyakov  <caseq@chromium.org>
1538
1539         Reviewed by Pavel Feldman.
1540
1541         Web Inspector: cookie table is multiplied after repeated switching to cookies tab in network item view
1542         Only create cookiesTable is it hasn't been done yet.
1543         https://bugs.webkit.org/show_bug.cgi?id=52303
1544
1545         * inspector/front-end/ResourceCookiesView.js:
1546         (WebInspector.ResourceCookiesView.prototype.show):
1547
1548 2011-01-12  Koan-Sin Tan  <koansin.tan@gmail.com>
1549
1550         Reviewed by Martin Robinson.
1551
1552         [Gtk] WebKitGtk+ doesn't build on Mac OS X 10.6
1553         https://bugs.webkit.org/show_bug.cgi?id=50867
1554
1555         * config.h: Don't disallow ctype for (OS(DARWIN) && PLATFORM(GTK))
1556         Many GTK+ related files include <libintl.h> or <glib/gi18n-lib.h>.
1557         On Mac, <libintl.h> includes <xlocale.h>. <xclocale.h> includes 
1558         <xlocale/_ctype.h>, which uses isacii().
1559         * platform/UUID.cpp:
1560         (WebCore::createCanonicalUUIDString): For OS(DARWIN) && !PLATFORM(CF)
1561         use the Chromium Linux UUID generation.
1562
1563 2011-01-12  Simon Fraser  <simon.fraser@apple.com>
1564
1565         Reviewed by Eric Seidel.
1566
1567         [CSS Gradients] One color stop should not paint anything for linear-gradient
1568         https://bugs.webkit.org/show_bug.cgi?id=52259
1569         
1570         Share color stop parsing code between linear and radial gradients.
1571         Consider the gradient invalid if it has less than two color stops.
1572
1573         * css/CSSParser.cpp:
1574         (WebCore::CSSParser::parseLinearGradient):
1575         (WebCore::CSSParser::parseRadialGradient):
1576         (WebCore::CSSParser::parseGradientColorStops):
1577         * css/CSSParser.h:
1578
1579 2011-01-12  Mikhail Naganov  <mnaganov@chromium.org>
1580
1581         Reviewed by Pavel Feldman.
1582
1583         Fix inconsistencies in Inspector strings found by the new check-inspector-strings script.
1584
1585         https://bugs.webkit.org/show_bug.cgi?id=52295
1586
1587         * English.lproj/localizedStrings.js:
1588         * inspector/front-end/BreakpointsSidebarPane.js:
1589         (WebInspector.EventListenerBreakpointsSidebarPane):
1590         * inspector/front-end/ProfilesPanel.js:
1591         (WebInspector.ProfilesPanel.prototype.setRecordingProfile):
1592         * inspector/front-end/Resource.js:
1593         (WebInspector.Resource.Type.toString):
1594         * inspector/front-end/ResourcesPanel.js:
1595         (WebInspector.ResourceRevisionTreeElement):
1596         * inspector/front-end/utilities.js:
1597         ():
1598
1599 2011-01-12  Yury Semikhatsky  <yurys@chromium.org>
1600
1601         Unreviewed. Fix WML compilation on Mac.
1602
1603         * wml/WMLInputElement.cpp:
1604         (WebCore::WMLInputElement::setValue):
1605         (WebCore::WMLInputElement::setValueForUser):
1606         (WebCore::WMLInputElement::initialize):
1607         (WebCore::WMLInputElement::validateInputMask):
1608         * wml/WMLSelectElement.cpp:
1609         (WebCore::WMLSelectElement::listBoxSelectItem):
1610
1611 2011-01-12  Justin Schuh  <jschuh@chromium.org>
1612
1613         Unreviewed build fix for debug strict compiles.
1614
1615         Use fprintf for debug statements instead of fwrite, which caused compile failures
1616         in debug strict mode because of failure to check the fwrite return value.
1617
1618         No behavior changed.
1619
1620         * rendering/CounterNode.cpp:
1621         (WebCore::showTreeAndMark):
1622
1623 2010-12-29  Yury Semikhatsky  <yurys@chromium.org>
1624
1625         Reviewed by Pavel Feldman.
1626
1627         inspector/timeline-network-resource.html fails when run twice
1628         https://bugs.webkit.org/show_bug.cgi?id=37394
1629
1630         Send didReceiveResponse notification to the timeline agent from ResourceLoadNotifier
1631         instead of ResourceLoader::didReceiveResponse to cover the cases when resources
1632         are loaded from memory cache.
1633
1634         Network notifications are now sent to InspectorInstrumentation which dispatches
1635         them to interested agents and InspectorController.
1636
1637         * inspector/Inspector.idl:
1638         * inspector/InspectorApplicationCacheAgent.cpp:
1639         (WebCore::InspectorApplicationCacheAgent::didReceiveManifestResponse):
1640         * inspector/InspectorController.cpp:
1641         (WebCore::InspectorController::InspectorController):
1642         (WebCore::InspectorController::didCommitLoad):
1643         (WebCore::InspectorController::willSendRequest):
1644         (WebCore::InspectorController::didReceiveResponse):
1645         (WebCore::InspectorController::didFailLoading):
1646         (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
1647         * inspector/InspectorController.h:
1648         * inspector/InspectorInstrumentation.cpp:
1649         (WebCore::InspectorInstrumentation::identifierForInitialRequestImpl):
1650         (WebCore::InspectorInstrumentation::willSendRequestImpl):
1651         (WebCore::InspectorInstrumentation::markResourceAsCachedImpl):
1652         (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCacheImpl):
1653         (WebCore::InspectorInstrumentation::willReceiveResourceResponseImpl):
1654         (WebCore::InspectorInstrumentation::didReceiveContentLengthImpl):
1655         (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
1656         (WebCore::InspectorInstrumentation::didFailLoadingImpl):
1657         (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequestImpl):
1658         (WebCore::InspectorInstrumentation::scriptImportedImpl):
1659         (WebCore::InspectorInstrumentation::retrieveResourceAgent):
1660         * inspector/InspectorInstrumentation.h:
1661         (WebCore::InspectorInstrumentation::identifierForInitialRequest):
1662         (WebCore::InspectorInstrumentation::willSendRequest):
1663         (WebCore::InspectorInstrumentation::markResourceAsCached):
1664         (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCache):
1665         (WebCore::InspectorInstrumentation::willReceiveResourceResponse):
1666         (WebCore::InspectorInstrumentation::didReceiveContentLength):
1667         (WebCore::InspectorInstrumentation::didFinishLoading):
1668         (WebCore::InspectorInstrumentation::didFailLoading):
1669         (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequest):
1670         (WebCore::InspectorInstrumentation::scriptImported):
1671         * inspector/InspectorResourceAgent.cpp:
1672         (WebCore::InspectorResourceAgent::identifierForInitialRequest):
1673         * inspector/InspectorResourceAgent.h:
1674         * inspector/InspectorTimelineAgent.cpp:
1675         (WebCore::InspectorTimelineAgent::willSendResourceRequest):
1676         * inspector/InspectorTimelineAgent.h:
1677         * inspector/TimelineRecordFactory.cpp:
1678         (WebCore::TimelineRecordFactory::createResourceSendRequestData):
1679         * inspector/TimelineRecordFactory.h:
1680         * inspector/front-end/NetworkManager.js:
1681         (WebInspector.NetworkManager.prototype.identifierForInitialRequest):
1682         * inspector/front-end/TimelinePanel.js:
1683         (WebInspector.TimelinePanel.prototype.addRecordToTimeline):
1684         * loader/FrameLoader.cpp:
1685         (WebCore::FrameLoader::loadedResourceFromMemoryCache):
1686         * loader/ResourceLoadNotifier.cpp:
1687         (WebCore::ResourceLoadNotifier::didReceiveResponse):
1688         (WebCore::ResourceLoadNotifier::didFailToLoad):
1689         (WebCore::ResourceLoadNotifier::assignIdentifierToInitialRequest):
1690         (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
1691         (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
1692         (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
1693         (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
1694         (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
1695         * loader/ResourceLoader.cpp:
1696         (WebCore::ResourceLoader::didReceiveResponse):
1697         * loader/appcache/ApplicationCacheGroup.cpp:
1698         (WebCore::ApplicationCacheGroup::createResourceHandle):
1699         (WebCore::ApplicationCacheGroup::didReceiveResponse):
1700         (WebCore::ApplicationCacheGroup::didReceiveData):
1701         (WebCore::ApplicationCacheGroup::didFinishLoading):
1702         (WebCore::ApplicationCacheGroup::didFail):
1703         * loader/appcache/ApplicationCacheGroup.h:
1704         * workers/DefaultSharedWorkerRepository.cpp:
1705         (WebCore::SharedWorkerScriptLoader::notifyFinished):
1706         * workers/Worker.cpp:
1707         (WebCore::Worker::notifyFinished):
1708         * workers/WorkerContext.cpp:
1709         (WebCore::WorkerContext::importScripts):
1710         * xml/XMLHttpRequest.cpp:
1711         (WebCore::XMLHttpRequest::didFinishLoading):
1712
1713 2011-01-12  Pavel Podivilov  <podivilov@chromium.org>
1714
1715         Reviewed by Pavel Feldman.
1716
1717         Web Inspector: do not replace all tabs with spaces when editing script source
1718         https://bugs.webkit.org/show_bug.cgi?id=52291
1719
1720         * inspector/front-end/SourceFrame.js:
1721         (WebInspector.SourceFrame.prototype.setContent):
1722         (WebInspector.SourceFrame.prototype._editLine):
1723
1724 2011-01-11  Jeremy Orlow  <jorlow@chromium.org>
1725
1726         Reviewed by Nate Chapin.
1727
1728         Enforce READ_ONLY transactions in IndexedDB
1729         https://bugs.webkit.org/show_bug.cgi?id=52229
1730
1731         Add READ_ONLY_ERR and return it whenever delete or put
1732         are called.  Note that IDBCursor's delete and update
1733         are simply aliases for delete/put, which is why no
1734         extra code is required to handle those cases.
1735
1736         Test: storage/indexeddb/transaction-read-only.html
1737
1738         * dom/ExceptionCode.cpp:
1739         * storage/IDBCursorBackendImpl.cpp:
1740         (WebCore::IDBCursorBackendImpl::deleteFunction):
1741         * storage/IDBDatabase.idl:
1742         * storage/IDBDatabaseException.h:
1743         * storage/IDBDatabaseException.idl:
1744         * storage/IDBObjectStoreBackendImpl.cpp:
1745         (WebCore::IDBObjectStoreBackendImpl::put):
1746         (WebCore::IDBObjectStoreBackendImpl::deleteFunction):
1747         (WebCore::IDBObjectStoreBackendImpl::deleteIndex):
1748
1749 2011-01-11  Philippe Normand  <pnormand@igalia.com>
1750
1751         Reviewed by Eric Seidel.
1752
1753         [GTK] minimal build breaks in RenderThemeGtk3
1754         https://bugs.webkit.org/show_bug.cgi?id=52202
1755
1756         * platform/gtk/RenderThemeGtk3.cpp: Added VIDEO guards around
1757         initMediaColors().
1758
1759 2011-01-11  Philippe Normand  <pnormand@igalia.com>
1760
1761         Reviewed by Eric Carlson.
1762
1763         [GStreamer] PlatformVideoWindowMac implementation
1764         https://bugs.webkit.org/show_bug.cgi?id=50770
1765
1766         This new implementation will be used on Mac OS to display the
1767         fullscreen video window with the GStreamer-based media player.
1768
1769         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
1770         (WebCore::gstGWorldSyncMessageCallback):
1771         * platform/graphics/gstreamer/PlatformVideoWindow.h:
1772         (WebCore::PlatformVideoWindow::window):
1773         * platform/graphics/gstreamer/PlatformVideoWindowMac.mm:
1774         (PlatformVideoWindow::PlatformVideoWindow):
1775         (PlatformVideoWindow::~PlatformVideoWindow):
1776         (PlatformVideoWindow::prepareForOverlay):
1777
1778 2011-01-11  Simon Fraser  <simon.fraser@apple.com>
1779
1780         Reviewed by Dan Bernstein.
1781
1782         Webkit crashes when a gradient is applied using the first-line pseudo element
1783         https://bugs.webkit.org/show_bug.cgi?id=52225
1784         
1785         When a pseudostyle references images, we fail to register/unregister
1786         the relevant RenderObjects as clients of the image in the style.
1787         For gradients, this caused a crash.
1788         
1789         This patch fixes the crash by returning a null gradient image in this
1790         situation.
1791
1792         Test: fast/gradients/gradient-on-pseudoelement-crash.html
1793
1794         * css/CSSGradientValue.cpp:
1795         (WebCore::CSSGradientValue::image):
1796
1797 2011-01-11  Andy Estes  <aestes@apple.com>
1798
1799         Reviewed by Darin Adler.
1800
1801         REGRESSION (r71562): servePendingRequests() no longer called when
1802         resources are done loading.
1803         https://bugs.webkit.org/show_bug.cgi?id=52264
1804         <rdar://problem/8767429>
1805         
1806         In r71562, servePendingRequests() is no longer called in Loader's
1807         didFinishLoading(), didFail() and didReceiveResponse() methods. Since
1808         r71562 was intended only as a refactoring, these calls should be
1809         restored. At least one WebKit-based Mac OS X application relies on this
1810         for correct behavior.
1811
1812         * loader/cache/CachedResourceLoader.cpp:
1813         (WebCore::CachedResourceLoader::loadDone): Call
1814         resourceLoadScheduler()->servePendingRequests().
1815
1816 2011-01-11  Patrick Gansterer  <paroga@webkit.org>
1817
1818         Reviewed by Eric Seidel.
1819
1820         Add Document::setContent()
1821         https://bugs.webkit.org/show_bug.cgi?id=52085
1822
1823         Add a method to Document to set the whole content at once.
1824         This removes the hack of the insert method in the xml parser
1825         and is a predecessor to feed the xml parser with raw data.
1826
1827         * dom/Document.cpp:
1828         (WebCore::Document::setContent):
1829         * dom/Document.h:
1830         * dom/XMLDocumentParser.cpp:
1831         (WebCore::XMLDocumentParser::insert): Added ASSERT_NOT_REACHED().
1832         * loader/cache/CachedFont.cpp:
1833         (WebCore::CachedFont::ensureSVGFontData): Use setContent.
1834         * xml/DOMParser.cpp:
1835         (WebCore::DOMParser::parseFromString): Ditto.
1836         * xml/XMLHttpRequest.cpp:
1837         (WebCore::XMLHttpRequest::responseXML): Ditto.
1838         * xml/XSLTProcessor.cpp:
1839         (WebCore::XSLTProcessor::createDocumentFromSource): Ditto.
1840
1841 2011-01-11  Brent Fulgham  <bfulgham@webkit.org>
1842
1843         Unreviewed build fix.
1844
1845         * platform/graphics/cairo/PathCairo.cpp:
1846         (WebCore::Path::addArc): Switch to MathExtra's piFloat define,
1847         rather than M_PI which is not always available.
1848
1849 2011-01-11  Nicolas Dufresne  <nicolas.dufresne@collabora.co.uk>
1850
1851         Reviewed by Adam Barth.
1852
1853         Use plug-in DB for extensions to MIME type convertion
1854
1855         Plugins extension to MIME type conversion was not used in the
1856         frameLoader. This was causing some fallback to be use which as the side
1857         effect of loosing all the <OBJECT> parameters or <EMBED> attributes.
1858         This patch ensure that we try to convert the extension to MIME type
1859         using the plugin database beofre using this fallback.
1860
1861         Attribute lost with Flash plugin without mime type set
1862         https://bugs.webkit.org/show_bug.cgi?id=50657
1863
1864         Test: plugins/no-mime-with-valid-extension.html
1865
1866         * loader/FrameLoader.cpp:
1867         (WebCore::FrameLoader::defaultObjectContentType): Use PluginDatabase for MIME
1868
1869 2011-01-11  James Simonsen  <simonjam@chromium.org>
1870
1871         Reviewed by Eric Seidel.
1872
1873         [Web Timing] Rename sslHandshakeStart to secureConnectionStart
1874         https://bugs.webkit.org/show_bug.cgi?id=52239
1875
1876         * page/PerformanceTiming.cpp:
1877         (WebCore::PerformanceTiming::secureConnectionStart):
1878         * page/PerformanceTiming.h:
1879         * page/PerformanceTiming.idl:
1880
1881 2011-01-11  Adam Barth  <abarth@webkit.org>
1882
1883         Reviewed by Eric Seidel.
1884
1885         Introduce the notion of a "display-isolated" URL scheme for use by
1886         Chrome-internal URLs
1887         https://bugs.webkit.org/show_bug.cgi?id=50182
1888
1889         This patch actually makes the display-isolated schemes display
1890         isolated.  The behavior should be the same as the previous iteration of
1891         this patch, but re-organized a bit because reading the access white
1892         list is expensive.
1893
1894         * page/SecurityOrigin.cpp:
1895         (WebCore::SecurityOrigin::isAccessToURLWhiteListed):
1896         (WebCore::SecurityOrigin::canDisplay):
1897         * page/SecurityOrigin.h:
1898         * platform/SchemeRegistry.cpp:
1899         * platform/SchemeRegistry.h:
1900
1901 2011-01-11  Mihai Parparita  <mihaip@chromium.org>
1902
1903         Reviewed by Darin Fisher.
1904
1905         Scroll event should be fired asynchronously
1906         https://bugs.webkit.org/show_bug.cgi?id=45631
1907
1908         Tests: fast/events/fire-scroll-event.html
1909                fast/events/fire-scroll-event-element.html
1910                fast/events/scroll-event-phase.html
1911
1912         Makes scroll events fire asynchronously to be in compliance with the
1913         CSSOM View Module and consistent with Gecko, Opera and (to some degree)
1914         IE.
1915         
1916         Implemented via the EventQueue class added by r74062 (EventQueue now
1917         has a convenience enqueueScrollEvent method).
1918
1919         * dom/EventQueue.cpp:
1920         (WebCore::EventQueue::enqueueScrollEvent):
1921         (WebCore::EventQueue::pendingEventTimerFired):
1922         * dom/EventQueue.h:
1923         * page/EventHandler.cpp:
1924         (WebCore::EventHandler::sendScrollEvent):
1925         * rendering/RenderLayer.cpp:
1926         (WebCore::RenderLayer::scrollToOffset):
1927         * rendering/RenderListBox.cpp:
1928         (WebCore::RenderListBox::valueChanged):
1929
1930 2011-01-11  Patrick Gansterer  <paroga@webkit.org>
1931
1932         Unreviewed WinCE build fix for r75523.
1933
1934         * platform/wince/DragDataWinCE.cpp: Added missing include.
1935
1936 2011-01-11  Abhishek Arya  <inferno@chromium.org>
1937
1938         Reviewed by Dimitri Glazkov.
1939
1940         RefPtr the FrameView to prevent scrollbar from getting deleted inside
1941         its scroll event.
1942         https://bugs.webkit.org/show_bug.cgi?id=52238
1943
1944         Test: scrollbars/scrollable-iframe-remove-crash.html
1945
1946         * page/DOMWindow.cpp:
1947         (WebCore::DOMWindow::scrollTo):
1948
1949 2011-01-08  Dimitri Glazkov  <dglazkov@chromium.org>
1950
1951         Reviewed by David Hyatt.
1952
1953         Make pseudo-style resolution less hard-coded when used to select a shadow node
1954         https://bugs.webkit.org/show_bug.cgi?id=46595
1955
1956         Essentially implements the plumbing for the XBL2 pseudo attribute:
1957         http://dev.w3.org/2006/xbl2/#the-pseudo-attribute
1958
1959         Test: fast/css/unknown-pseudo-element-matching.html
1960
1961         * css/CSSGrammar.y: Changed to handle specifier_list structure with the
1962             CSSParser::updateSpecifierWithElementName helper, added logic to
1963             keep unknown pseudo-element selectors at the top of the selector chain,
1964             so that we can easily check for them and grab them, and also because
1965             they would either not match anything or act as a descendant selector
1966             (descendant into a shadow DOM subtree that is), not a specifier.
1967         * css/CSSParser.cpp:
1968         (WebCore::CSSParser::updateSpecifiersWithElementName): Generalized/combined
1969             the logic adding element name to selectors and added the special case
1970             to handle unknown pseudo-element selectors.
1971         * css/CSSParser.h: Added def.
1972         * css/CSSSelector.cpp:
1973         (WebCore::CSSSelector::pseudoId): Removed any mention of PseudoSliderThumb/SLIDER_THUMB.
1974         (WebCore::nameToPseudoTypeMap): Ditto.
1975         (WebCore::CSSSelector::extractPseudoType): Ditto.
1976         * css/CSSSelector.h: Added a new ShadowDescendant relation type,
1977             removed PseudoSliderThumb def.
1978         (WebCore::CSSSelector::isUnknownPseudoElement): Added a helper method.
1979         * css/CSSSelectorList.cpp:
1980         (WebCore::SelectorHasUnknownPseudoElementFunctor::operator()): Added a functor
1981             to check for an unknown pseudo-element in the list.
1982         (WebCore::CSSSelectorList::hasUnknownPseudoElements): Added.
1983         * css/CSSSelectorList.h: Added a def.
1984         * css/CSSStyleSelector.cpp:
1985         (WebCore::CSSRuleSet::getPseudoRules): Added accessor to pseudo-element hash.
1986         (WebCore::CSSStyleSelector::matchRules): Added matching pseudo elements.
1987         (WebCore::CSSStyleSelector::SelectorChecker::checkSelector): Added handling
1988             of ShadowDescendant relation.
1989         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Enabled handling
1990             of unknown pseudo-element selectors.
1991         (WebCore::CSSRuleSet::addRule): Added populating unknown pseudo-element hash.
1992         * css/html.css:
1993         (input[type="range"]::-webkit-slider-thumb): Added previously-hard-coded
1994             display:block.
1995         * dom/Element.h:
1996         (WebCore::Element::shadowPseudoId): Added new virtual method to allow
1997             elements to provide the value of pseudo-element selector they would match.
1998         * dom/Node.cpp:
1999         (WebCore::Node::querySelector): Added checking for unknown pseudo-element selectors,
2000             so that we can throw a SYNTAX_ERR if found.
2001         (WebCore::Node::querySelectorAll): Ditto.
2002         * html/shadow/SliderThumbElement.h:
2003         (WebCore::SliderThumbElement::shadowPseudoId): Added to return "-webkit-slider-thumb";
2004         * rendering/RenderSlider.cpp:
2005         (WebCore::RenderSlider::createThumbStyle): Changed to use the new styleForElement logic.
2006         * rendering/style/RenderStyleConstants.h: Removed SLIDER_THUMB.
2007
2008 2011-01-11  Dean Jackson  <dino@apple.com>
2009
2010         Reviewed by Simon Fraser.
2011
2012         https://bugs.webkit.org/show_bug.cgi?id=52233
2013
2014         WebKitCSSMatrix constructor should accept 'none'
2015         as a valid string parameter.
2016
2017         * css/WebKitCSSMatrix.cpp:
2018         (WebCore::WebKitCSSMatrix::setMatrixValue):
2019
2020 2011-01-11  James Robinson  <jamesr@chromium.org>
2021
2022         Reviewed by Dimitri Glazkov.
2023
2024         Set all RenderBlocks as replaced when an inline display type is specified
2025         https://bugs.webkit.org/show_bug.cgi?id=50858
2026
2027         When a RenderBlock is created for an element with a specified display:inline style,
2028         it should always be treated as inline-block.  This situations often comes up for form
2029         controls.  Previously, RenderBlock::styleWillChange set the replaced flag for display
2030         values of inline-block, inline-table, and inline-table and a number of subclasses of
2031         RenderBlock set the replaced flag in styleDidChange for a display:inline.  However
2032         sometimes new subclasses would miss this step leading to bugs (such as with RenderDetails).
2033         This patch sets the replaced flag for all inline display types in RenderBlock::styleWillChange.
2034
2035         Code cleanup only, no change in behavior so no new tests.
2036
2037         * rendering/RenderBlock.cpp:
2038         (WebCore::RenderBlock::styleWillChange):
2039         * rendering/RenderButton.cpp:
2040         (WebCore::RenderButton::styleDidChange):
2041         * rendering/RenderFieldset.cpp:
2042         * rendering/RenderFieldset.h:
2043         * rendering/RenderFileUploadControl.cpp:
2044         (WebCore::RenderFileUploadControl::styleDidChange):
2045         * rendering/RenderListBox.cpp:
2046         * rendering/RenderListBox.h:
2047         * rendering/RenderMenuList.cpp:
2048         (WebCore::RenderMenuList::styleDidChange):
2049         * rendering/RenderSlider.cpp:
2050         (WebCore::RenderSlider::styleDidChange):
2051         * rendering/RenderTextControl.cpp:
2052         (WebCore::RenderTextControl::styleDidChange):
2053
2054 2011-01-11  Dimitri Glazkov  <dglazkov@chromium.org>
2055
2056         Reviewed by Eric Seidel.
2057
2058         REGRESSION(r71934) Can't type in search edit field on skin-one.com
2059         https://bugs.webkit.org/show_bug.cgi?id=52195
2060
2061         Restored the original behavior, where the selectstart event is not
2062         dispatched when selection changes inside of the shadow DOM.
2063
2064         * dom/Node.cpp:
2065         (WebCore::determineDispatchBehavior): Moved EventDispatchBehavior-determining
2066             logic into a helper function, also added a check to keep selectstart
2067                 events inside of the shadow DOM.
2068         (WebCore::Node::dispatchGenericEvent): Changed to use the helper function.
2069
2070 2011-01-11  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
2071
2072         Reviewed by Eric Seidel.
2073
2074         [Qt] Provide plugin coordinates to windowless plugins on Symbian.
2075         https://bugs.webkit.org/show_bug.cgi?id=52213
2076
2077         * plugins/symbian/PluginViewSymbian.cpp:
2078         (WebCore::PluginView::setNPWindowIfNeeded):
2079
2080 2011-01-10  Zhenyao Mo  <zmo@google.com>
2081
2082         Reviewed by Kenneth Russell.
2083
2084         Need to consider UNPACK_ALIGNMENT in GraphicsContext3D::texImage2DResourceSafe
2085         https://bugs.webkit.org/show_bug.cgi?id=52068
2086
2087         * html/canvas/WebGLRenderingContext.cpp:
2088         (WebCore::WebGLRenderingContext::copyTexImage2D): Use computeImageSizeInBytes.
2089         (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto.
2090         (WebCore::WebGLRenderingContext::readPixels): Ditto, and fix a bug on generating the wrong error.
2091         (WebCore::WebGLRenderingContext::texImage2DBase): Ditto.
2092         (WebCore::WebGLRenderingContext::validateTexFuncData): Use computeImageSizeInBytes.
2093         * platform/graphics/GraphicsContext3D.cpp:
2094         (WebCore::GraphicsContext3D::texImage2DResourceSafe): Add a new parameter alignment.
2095         (WebCore::GraphicsContext3D::computeFormatAndTypeParameters): Add more supported format/type.
2096         (WebCore::GraphicsContext3D::computeImageSizeInBytes): Added.
2097         * platform/graphics/GraphicsContext3D.h:
2098
2099 2011-01-10  Enrica Casucci  <enrica@apple.com>
2100
2101         Reviewed by Alexey Proskuryakov.
2102
2103         Paste and drag and drop use different code paths to interact with the pasteboard.
2104         https://bugs.webkit.org/show_bug.cgi?id=52093
2105         The change consists in a refactoring of the code to have only one class that
2106         deals with the pasteboard on Mac.
2107
2108         No new tests. A test is already available for this
2109         (editing/pasteboard/drag-image-to-contenteditable-in-iframe.html) but had incorrect results.
2110
2111         * WebCore.exp.in:
2112         * loader/EmptyClients.h: Added two Mac only methods to call into WebKit to use functionality
2113         that is in NSURLExtras.
2114         (WebCore::EmptyEditorClient::canonicalizeURL):
2115         (WebCore::EmptyEditorClient::canonicalizeURLString):
2116         * page/DragController.cpp:
2117         The following methods have been changed to pass a pointer to the Frame object
2118         to the DragData class.
2119         (WebCore::documentFragmentFromDragData):
2120         (WebCore::DragController::performDrag):
2121         (WebCore::DragController::dispatchTextInputEventFor):
2122         (WebCore::DragController::concludeEditDrag):
2123         * page/EditorClient.h: Added two Mac only methods to call into WebKit to use functionality
2124         that is in NSURLExtras.
2125         The following files have been modified to pass the Frame object to the DragData method calls.
2126         * page/chromium/DragControllerChromium.cpp:
2127         (WebCore::DragController::dragOperation):
2128         * page/gtk/DragControllerGtk.cpp:
2129         (WebCore::DragController::dragOperation):
2130         * page/mac/DragControllerMac.mm:
2131         (WebCore::DragController::dragOperation):
2132         * page/qt/DragControllerQt.cpp:
2133         (WebCore::DragController::dragOperation):
2134         * page/win/DragControllerWin.cpp:
2135         (WebCore::DragController::dragOperation):
2136         * platform/DragData.h: Removed Mac specific constructor and reference to PasteboardHelper class.
2137         * platform/Pasteboard.h: Added public constructor to create a Pasteboard object from an NSPasteboard.
2138         The following files were all modified to match the new parameters of the methods listed.
2139         * platform/android/DragDataAndroid.cpp:
2140         (WebCore::DragData::asPlainText):
2141         (WebCore::DragData::containsURL):
2142         (WebCore::DragData::asURL):
2143         (WebCore::DragData::asFragment):
2144         * platform/chromium/DragDataChromium.cpp:
2145         (WebCore::DragData::containsURL):
2146         (WebCore::DragData::asURL):
2147         (WebCore::DragData::asPlainText):
2148         (WebCore::DragData::containsCompatibleContent):
2149         (WebCore::DragData::asFragment):
2150         * platform/gtk/DragDataGtk.cpp:
2151         (WebCore::DragData::asPlainText):
2152         (WebCore::DragData::containsCompatibleContent):
2153         (WebCore::DragData::containsURL):
2154         (WebCore::DragData::asURL):
2155         (WebCore::DragData::asFragment):
2156         * platform/haiku/DragDataHaiku.cpp:
2157         (WebCore::DragData::asPlainText):
2158         (WebCore::DragData::containsURL):
2159         (WebCore::DragData::asURL):
2160         (WebCore::DragData::asFragment):
2161         * platform/mac/DragDataMac.mm:
2162         (WebCore::DragData::DragData):
2163         (WebCore::DragData::asPlainText):
2164         (WebCore::insertablePasteboardTypes):
2165         (WebCore::DragData::containsCompatibleContent):
2166         (WebCore::DragData::containsURL):
2167         (WebCore::DragData::asURL):
2168         (WebCore::DragData::asFragment):
2169         * platform/mac/PasteboardMac.mm:
2170         (WebCore::Pasteboard::getBestURL):
2171         (WebCore::Pasteboard::asURL):
2172         * platform/qt/DragDataQt.cpp:
2173         (WebCore::DragData::asPlainText):
2174         (WebCore::DragData::containsCompatibleContent):
2175         (WebCore::DragData::containsURL):
2176         (WebCore::DragData::asURL):
2177         (WebCore::DragData::asFragment):
2178         * platform/win/DragDataWin.cpp:
2179         (WebCore::DragData::containsURL):
2180         (WebCore::DragData::asURL):
2181         (WebCore::DragData::asPlainText):
2182         (WebCore::DragData::containsCompatibleContent):
2183         (WebCore::DragData::asFragment):
2184         * platform/wince/DragDataWinCE.cpp:
2185         (WebCore::DragData::containsURL):
2186         (WebCore::DragData::asURL):
2187         (WebCore::DragData::asPlainText):
2188         (WebCore::DragData::asFragment):
2189         * platform/wx/DragDataWx.cpp:
2190         (WebCore::DragData::asPlainText):
2191         (WebCore::DragData::containsURL):
2192         (WebCore::DragData::asURL):
2193         (WebCore::DragData::asFragment):
2194
2195 2011-01-11  Abhishek Arya  <inferno@chromium.org>
2196
2197         Reviewed by Dimitri Glazkov.
2198
2199         RefPtr text node in setOuterText since calling appendData
2200         on a text node can fire away dom event listener which might
2201         remove the text node from underneath.
2202         https://bugs.webkit.org/show_bug.cgi?id=52163
2203
2204         Test: fast/dom/text-node-append-data-remove-crash.html
2205
2206         * html/HTMLElement.cpp:
2207         (WebCore::HTMLElement::setOuterText):
2208
2209 2011-01-11  Carlos Garcia Campos  <cgarcia@igalia.com>
2210
2211         Reviewed by Martin Robinson.
2212
2213         [GTK] Add support for <meter> element
2214         https://bugs.webkit.org/show_bug.cgi?id=48713
2215
2216         * GNUmakefile.am: Enable meter element.
2217
2218 2011-01-11  Csaba Osztrogonác  <ossy@webkit.org>
2219
2220         Unreviewed buildfix.
2221
2222         [Qt][V8] Add missing include for debug build.
2223
2224         * loader/cache/CachedResourceLoader.cpp:
2225
2226 2011-01-11  Pavel Feldman  <pfeldman@chromium.org>
2227
2228         Reviewed by Yury Semikhatsky.
2229
2230         Web Inspector: redirects are lost from the network panel upon navigation.
2231         https://bugs.webkit.org/show_bug.cgi?id=52210
2232
2233         * inspector/front-end/NetworkManager.js:
2234         (WebInspector.NetworkManager.prototype.didCommitLoadForFrame):
2235
2236 2011-01-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2237
2238         Reviewed by Kenneth Rohde Christiansen.
2239
2240         [Qt] Remove uses of QFuture since it isn't supported on all platforms.
2241         https://bugs.webkit.org/show_bug.cgi?id=51204
2242
2243         * platform/network/qt/QtNAMThreadSafeProxy.cpp:
2244         (WebCore::QtNAMThreadSafeProxy::QtNAMThreadSafeProxy):
2245         (WebCore::QtNAMThreadSafeProxy::localCookiesForUrl):
2246         (WebCore::QtNAMThreadSafeProxy::localWillLoadFromCache):
2247         * platform/network/qt/QtNAMThreadSafeProxy.h:
2248         (WebCore::QtNAMThreadSafeProxy::cookiesForUrl):
2249         (WebCore::QtNAMThreadSafeProxy::willLoadFromCache):
2250
2251 2011-01-11  Pavel Podivilov  <podivilov@chromium.org>
2252
2253         Reviewed by Pavel Feldman.
2254
2255         Web Inspector: recreate script view after live edit.
2256         https://bugs.webkit.org/show_bug.cgi?id=51751
2257
2258         * inspector/front-end/Script.js:
2259         (WebInspector.Script.prototype.set source):
2260         * inspector/front-end/ScriptView.js:
2261         (WebInspector.ScriptView):
2262         * inspector/front-end/ScriptsPanel.js:
2263         (WebInspector.ScriptsPanel.prototype.editScriptSource.mycallback):
2264         (WebInspector.ScriptsPanel.prototype.editScriptSource):
2265         (WebInspector.ScriptsPanel.prototype.viewRecreated):
2266         * inspector/front-end/SourceFrame.js:
2267         (WebInspector.SourceFrame.prototype._doEditLine):
2268
2269 2011-01-11  Pavel Podivilov  <podivilov@chromium.org>
2270
2271         Reviewed by Pavel Feldman.
2272
2273         Web Inspector: frameDetachedFromParent notification handler is missing in NetworkManager.
2274         https://bugs.webkit.org/show_bug.cgi?id=52205
2275
2276         * inspector/front-end/NetworkManager.js:
2277         (WebInspector.NetworkManager.prototype.frameDetachedFromParent):
2278
2279 2011-01-11  Alexander Pavlov  <apavlov@chromium.org>
2280
2281         Reviewed by Pavel Feldman.
2282
2283         Web Inspector: "Audit present state" always disabled
2284         https://bugs.webkit.org/show_bug.cgi?id=52199
2285
2286         Removed all traces of resource tracking checks, as we have it no more.
2287
2288         * English.lproj/localizedStrings.js:
2289         * inspector/front-end/AuditLauncherView.js:
2290         (WebInspector.AuditLauncherView.prototype._createLauncherUI):
2291         * inspector/front-end/AuditsPanel.js:
2292
2293 2011-01-11  Pavel Podivilov  <podivilov@chromium.org>
2294
2295         Reviewed by Pavel Feldman.
2296
2297         Web Inspector: move delayed search implementation to SourceFrame.
2298         https://bugs.webkit.org/show_bug.cgi?id=51753
2299
2300         * inspector/front-end/SourceFrame.js:
2301         (WebInspector.SourceFrame.prototype._createViewerIfNeeded):
2302         (WebInspector.SourceFrame.prototype.findSearchMatches):
2303         (WebInspector.SourceFrame.prototype.cancelFindSearchMatches):
2304         * inspector/front-end/SourceView.js:
2305         (WebInspector.SourceView.prototype.hide):
2306         (WebInspector.SourceView.prototype.searchCanceled):
2307         (WebInspector.SourceView.prototype.performSearch.didFindSearchMatches):
2308         (WebInspector.SourceView.prototype.performSearch):
2309
2310 2011-01-11  Ilya Tikhonovsky  <loislo@chromium.org>
2311
2312         Reviewed by Pavel Feldman.
2313
2314         Web Inspector: innerFirstChild has a side effect which should be called explicitly.
2315
2316         If a node is a frame's owner then innerFirstChild method
2317         subscribes DOMAgent instance to the frame's doc's events.
2318         I think this should be done explicitly when we meet with
2319         the node for the first time. As I understand it happens
2320         in buildArrayForContainerChildren method.
2321
2322         https://bugs.webkit.org/show_bug.cgi?id=52204
2323
2324         * inspector/InspectorDOMAgent.cpp:
2325         (WebCore::InspectorDOMAgent::startListeningFrameDoc):
2326         (WebCore::InspectorDOMAgent::buildArrayForContainerChildren):
2327         (WebCore::InspectorDOMAgent::innerFirstChild):
2328         * inspector/InspectorDOMAgent.h:
2329
2330 2011-01-11  Adam Roben  <aroben@apple.com>
2331
2332         Delete WKCACFLayer.{cpp,h}
2333
2334         These have been unused since r75262
2335
2336         * platform/graphics/win/WKCACFLayer.cpp: Removed.
2337         * platform/graphics/win/WKCACFLayer.h: Removed.
2338
2339 2011-01-11  Pavel Feldman  <pfeldman@chromium.org>
2340
2341         Reviewed by Yury Semikhatsky.
2342
2343         Web Inspector: [regression] Cookies view does not allow columns resize.
2344         https://bugs.webkit.org/show_bug.cgi?id=51877
2345
2346         * inspector/front-end/CookieItemsView.js:
2347         (WebInspector.CookieItemsView.prototype._updateWithCookies):
2348
2349 2011-01-11  Noel Gordon  <noel.gordon@gmail.com>
2350
2351          Reviewed by James Robinson.
2352
2353          [chromium] canvas.toDataURL("image/jpeg") should composite onto black.
2354          https://bugs.webkit.org/show_bug.cgi?id=51237
2355
2356          The Canvas specification requires that the canvas image is composited using
2357          the Porter-Duff operator source-over onto a black background; the resultant
2358          image should be JPEG encoded and returned as a dataURL.  To composite image
2359          A and background B, for any Porter-Duff operator, produce pixels I with
2360
2361             I = c(A)F(A) + c(B)F(B)
2362
2363          where, F(X) is the fraction [0.0-1.0] contributed to the composite by image
2364          X, and c(X) are the premultiplied RGB color components of image X.  Note by
2365          definition, c(B) = 0 since the background is black, so I = c(A)F(A).  Since
2366          F(A) = 1 in Porter-Duff operator source-over, the composited pixels satisfy
2367          I = c(A).  Hence, to conform to the Canvas spec, pass the premultiplied RGB
2368          color components of the canvas image to the JPEG encoder.
2369
2370          Covered by canvas/philip/tests/toDataURL.jpeg.alpha.html
2371
2372          * platform/image-encoders/skia/JPEGImageEncoder.cpp:
2373          (WebCore::preMultipliedBGRAtoRGB): Use Porter-Duff source-over black.
2374
2375 2011-01-11  Pavel Feldman  <pfeldman@chromium.org>
2376
2377         Reviewed by Yury Semikhatsky.
2378
2379         Chromium DevTools: get rid of APU-related code in WebKit/chromium.
2380         https://bugs.webkit.org/show_bug.cgi?id=52152
2381
2382         * inspector/InspectorController.cpp:
2383         (WebCore::InspectorController::restoreInspectorStateFromCookie):
2384         (WebCore::InspectorController::setInjectedScriptSource):
2385         * inspector/InspectorState.cpp:
2386         (WebCore::InspectorState::InspectorState):
2387         * inspector/InspectorState.h:
2388         * inspector/front-end/inspector.js:
2389
2390 2011-01-11  Pavel Feldman  <pfeldman@chromium.org>
2391
2392         Reviewed by Yury Semikhatsky.
2393
2394         Web Inspector: [REGRESSION] Load timing is requested
2395         for all resources (not only for the main one).
2396         https://bugs.webkit.org/show_bug.cgi?id=51749
2397
2398         * inspector/InspectorController.cpp:
2399         (WebCore::InspectorController::willSendRequest):
2400         * loader/ResourceLoadNotifier.cpp:
2401         (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
2402
2403 2011-01-11  Carlos Garcia Campos  <cgarcia@igalia.com>
2404
2405         Reviewed by Martin Robinson.
2406
2407         [GTK] GRefPtr should not be used with Gtk widgets
2408         https://bugs.webkit.org/show_bug.cgi?id=51241
2409
2410         GRefPtr breaks the widget life-cycle, the main problem is
2411         that GRefPtr calls g_object_unref() when it's destroyed,
2412         which is undesirable for widgets. In gtk+ widgets are created with
2413         a floating reference and when added to a container, the container
2414         takes the ownership of the widget consuming the floating
2415         reference. So you don't usually need to call g_object_ref/unref on
2416         widgets (only for some operations like reparent a widget) and
2417         toplevel widgets are destroyed with gtk_widget_destroy().
2418
2419         * platform/ContextMenuItem.h:
2420         * platform/gtk/ContextMenuGtk.cpp:
2421         (WebCore::ContextMenu::ContextMenu):
2422         (WebCore::ContextMenu::~ContextMenu):
2423         (WebCore::ContextMenu::setPlatformDescription):
2424         * platform/gtk/ContextMenuItemGtk.cpp:
2425         (WebCore::ContextMenuItem::ContextMenuItem):
2426         (WebCore::ContextMenuItem::releasePlatformDescription):
2427         (WebCore::ContextMenuItem::type):
2428         (WebCore::ContextMenuItem::action):
2429         (WebCore::ContextMenuItem::setAction):
2430         (WebCore::ContextMenuItem::title):
2431         (WebCore::ContextMenuItem::setTitle):
2432         (WebCore::ContextMenuItem::platformSubMenu):
2433         (WebCore::ContextMenuItem::setSubMenu):
2434         (WebCore::ContextMenuItem::setChecked):
2435         (WebCore::ContextMenuItem::setEnabled):
2436
2437 2010-10-10  David Hyatt  <hyatt@apple.com>
2438
2439         Reviewed by Simon Fraser.
2440
2441         https://bugs.webkit.org/show_bug.cgi?id=51119, transformed 
2442         elements not responding properly to :hover after r73385.  
2443         Just use the entire document area as the hit test area, 
2444         since there appears to be a rounding bug/issues with relying 
2445         on float math when mapping the hit test area into
2446         transformed coordinates.
2447
2448         * rendering/RenderLayer.cpp:
2449         (WebCore::RenderLayer::hitTest):
2450
2451 2011-01-10  Stephen White  <senorblanco@chromium.org>
2452
2453         Reviewed by James Robinson.
2454
2455         Fix canvas->canvas draws on the GPU path.
2456         https://bugs.webkit.org/show_bug.cgi?id=52141
2457         
2458         Two problems:  according to the canvas spec, both source and
2459         destination rects can have negative width or height, but this shouldn't
2460         cause the image to be flipped.  So we need to normalize the rects (in
2461         the software path, this is done by BitmapImage*::draw).  Secondly, in
2462         the FBO->FBO path, the image needs to be flipped vertically, since it
2463         is drawn upside down.  We were doing this by flipping the destination
2464         rect, but this doesn't work if the source rect is not the entire image,
2465         since we extract the wrong part of the image.  Fixed by flipping the
2466         source rect instead (and flipping it within the image buffer's height,
2467         not the source rect's height).
2468
2469         Covered by fast/canvas/drawImage-with-negative-source-destination.html.
2470
2471
2472         * platform/graphics/skia/BitmapImageSingleFrameSkia.h:
2473         Put normalizeRect() in global scope.
2474         * platform/graphics/skia/ImageBufferSkia.cpp:
2475         (WebCore::ImageBuffer::draw):
2476         Fix as above:  normalize both source and dest rects, and flip the
2477         source rect instead of the dest rect.
2478         * platform/graphics/skia/ImageSkia.cpp:
2479         (WebCore::normalizeRect):
2480         Put normalizeRect() in global scope.
2481
2482 2011-01-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2483
2484         Reviewed by Csaba Osztrogonác.
2485
2486         [Qt] Baseline qt_minimal configuration
2487         https://bugs.webkit.org/show_bug.cgi?id=51313
2488
2489         No new tests as there is no new functionality.
2490
2491         * platform/graphics/qt/GraphicsLayerQt.cpp: Fix the location of the
2492         QT_NO_ANIMATION guard.
2493
2494         * platform/qt/WheelEventQt.cpp:
2495         (WebCore::PlatformWheelEvent::applyDelta): Fix the location of the
2496         QT_NO_WHEELEVENT guard.
2497
2498 2011-01-10  Joe Mason  <jmason@rim.com>
2499
2500         Reviewed by Alexey Proskuryakov.
2501
2502         WebSockets: unbounded buffer growth when server sends bad data
2503         https://bugs.webkit.org/show_bug.cgi?id=51253
2504
2505         Fail a websocket handshake after 1024 bytes without a newline, or if it
2506         contains a null byte before the first newline.
2507
2508         Tests: http/tests/websocket/tests/handshake-fail-by-maxlength.html
2509                http/tests/websocket/tests/handshake-fail-by-prepended-null.html
2510
2511         * websockets/WebSocketHandshake.cpp:
2512         (WebCore::WebSocketHandshake::readStatusLine):
2513
2514 2011-01-10  Adam Barth  <abarth@webkit.org>
2515
2516         Reviewed by Darin Adler.
2517
2518         Introduce the notion of a "display-isolated" URL scheme for use by
2519         Chrome-internal URLs
2520         https://bugs.webkit.org/show_bug.cgi?id=50182
2521
2522         This patch adds the basic plumbing for display-isolated URL schemes.
2523         Originally, this patch also had the functional change, but I've split
2524         that off into a separate patch because the original patch caused a
2525         performance regression.
2526
2527         * page/SecurityOrigin.cpp:
2528         (WebCore::SecurityOrigin::canDisplay):
2529         * platform/SchemeRegistry.cpp:
2530         (WebCore::displayIsolatedURLSchemes):
2531         (WebCore::SchemeRegistry::registerURLSchemeAsLocal):
2532         (WebCore::SchemeRegistry::removeURLSchemeRegisteredAsLocal):
2533         (WebCore::SchemeRegistry::localSchemes):
2534         (WebCore::SchemeRegistry::deprecatedShouldTreatURLAsLocal):
2535         (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal):
2536         (WebCore::SchemeRegistry::registerURLSchemeAsDisplayIsolated):
2537         (WebCore::SchemeRegistry::shouldTreatURLSchemeAsDisplayIsolated):
2538         * platform/SchemeRegistry.h:
2539
2540 2011-01-10  Jer Noble  <jer.noble@apple.com>
2541
2542         Reviewed by Simon Fraser.
2543
2544         https://bugs.webkit.org/show_bug.cgi?id=52095
2545         REGRESSION (r75277): 2 test cases (<1%) had incorrect layout
2546         
2547         Fixes tests:
2548             fullscreen/full-screen-remove-ancestor.html
2549             fullscreen/full-screen-remove.html
2550             
2551         Previously, the above tests were failing because DRT dumped the contents of their
2552         <script> tags, though all the explicit tests were passing.  This was caused by
2553         the document's render tree being left in an inconsistent state when a full screen
2554         element's ancestor was removed from the DOM.
2555         
2556         In nodeWillBeRemoved(), match the code in webkitDidExitFullScreen().
2557         Don't detach the documentElement, but rather simply call recalcStyle(Force).
2558
2559         * dom/Document.cpp:
2560         (WebCore::Document::nodeWillBeRemoved):
2561         * rendering/RenderFullScreen.cpp:
2562         (RenderFullScreen::setAnimating): #if ENABLED -> # if USE
2563         * rendering/RenderFullScreen.h:
2564         (WebCore::RenderFullScreen::RenderFullScreen): RenderFullScreen should be an anonymous renderer.
2565
2566 2011-01-10  Martin Robinson  <mrobinson@igalia.com>
2567
2568         Reviewed by Xan Lopez.
2569
2570         [GTK] Remove use of deprecated GTK+ methods before the 1.3.10 release
2571         https://bugs.webkit.org/show_bug.cgi?id=52173
2572
2573         No new tests. This is only a build fix.
2574
2575         * platform/gtk/GRefPtrGtk.cpp: Guard the GdkCursor specialization against GTK+ 3.x.
2576         In GTK+ 3.x, GdkCursor is just a GObject.
2577         * platform/gtk/GRefPtrGtk.h: Ditto.
2578
2579 2011-01-10  Geoffrey Garen  <ggaren@apple.com>
2580
2581         Reviewed by Oliver Hunt.
2582
2583         Moved Collector.* => Heap.*, since the file contains a class named "Heap".
2584
2585         * ForwardingHeaders/runtime/Collector.h: Removed.
2586         * ForwardingHeaders/runtime/Heap.h: Copied from WebCore/ForwardingHeaders/runtime/Collector.h.
2587         * WebCore.vcproj/WebCore.vcproj:
2588         * bindings/js/GCController.cpp:
2589         * bindings/js/ScriptGCEvent.cpp:
2590
2591 2011-01-10  Leonid Ebril  <leonid.ebril@nokia.com>
2592
2593         Reviewed by Kenneth Rohde Christiansen.
2594
2595         https://bugs.webkit.org/show_bug.cgi?id=51879
2596
2597         Set the PluginQuirkDontSetNullWindowHandleOnDestroy for Adobe Lite  
2598         plugin if Flash 10 or newer (for Symbian platform), setting a nulled 
2599         window handler on destroy crashes WebKit.
2600
2601         * plugins/symbian/PluginPackageSymbian.cpp:
2602         (WebCore::PluginPackage::fetchInfo):
2603         (WebCore::PluginPackage::determineQuirks):
2604
2605 2011-01-10  Martin Robinson  <mrobinson@igalia.com>
2606
2607         Reviewed by Xan Lopez.
2608
2609         [GTK] Remove unecessary RenderThemeGtk and WidgetRenderingContext code
2610         https://bugs.webkit.org/show_bug.cgi?id=52170
2611
2612         Remove unnecessary code from RenderThemeGtk3 and RenderThemeGtk now that the
2613         GtkStyleContext port is complete. Also remove WidgetRenderingContextGtk3 and
2614         move WidgetRenderingRenderingContextGtk2 to WidgetRenderingContext and make it
2615         GTK+ 2.x only. Some methods have been moved to RenderThemeGtk2 since they are
2616         GTK+ 2.x only now.
2617
2618         No new tests. This should not change functionality.
2619
2620         * GNUmakefile.am: Remove WidgetRenderingContextGtk3 and gtk3drawing.c
2621         * platform/gtk/RenderThemeGtk.cpp:
2622         (WebCore::RenderThemeGtk::RenderThemeGtk):
2623         (WebCore::gtkIconState): Made this method static. It isn't used outside RenderThemeGtk.
2624         (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration): Updated to refelct gtkIconState change.
2625         (WebCore::RenderThemeGtk::paintSearchFieldCancelButton): Ditto.
2626         (WebCore::RenderThemeGtk::paintMediaButton): Ditto
2627         * platform/gtk/RenderThemeGtk.h: Move a few methods which are now GTK+ 2.x only.
2628         * platform/gtk/RenderThemeGtk2.cpp:
2629         (WebCore::RenderThemeGtk::platformInit): Added this platform initialization method
2630         that is only used for GTK+ 2.x at the moment.
2631         (WebCore::RenderThemeGtk::~RenderThemeGtk): Added.
2632         (WebCore::getGtkStateType): Made this method static.
2633         (WebCore::RenderThemeGtk::getIndicatorMetrics): Moved this here from RenderThemeGtk.
2634         (WebCore::setToggleSize): Updated to reflect changes to getGtkStateType.
2635         (WebCore::RenderThemeGtk::paintButton): Ditto.
2636         (WebCore::RenderThemeGtk::paintSliderTrack): Ditto.
2637         (WebCore::RenderThemeGtk::paintSliderThumb): Ditto.
2638         * platform/gtk/RenderThemeGtk3.cpp:
2639         (WebCore::RenderThemeGtk::gtkScrollbarStyle): Moved to the top of the file.
2640         (WebCore::RenderThemeGtk::platformInit): Added.
2641         (WebCore::RenderThemeGtk::~RenderThemeGtk): Added.
2642         (WebCore::RenderThemeGtk::initMediaColors): Changed to use the GtkStyleContext API to
2643         fetch these colors. This was the last dependency on the old API.
2644         * platform/gtk/WidgetRenderingContext.cpp: Renamed from Source/WebCore/platform/gtk/WidgetRenderingContextGtk2.cpp.
2645         * platform/gtk/WidgetRenderingContext.h: Made GTK+ 2.x only.
2646         * platform/gtk/WidgetRenderingContextGtk3.cpp: Removed.
2647         * platform/gtk/gtk3drawing.c: Removed.
2648         * platform/gtk/gtkdrawing.h: Made GTK+ 2.x only.
2649
2650 2011-01-10  Benjamin Poulain  <benjamin.poulain@nokia.com>
2651
2652         Reviewed by Kenneth Rohde Christiansen.
2653
2654         [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
2655         https://bugs.webkit.org/show_bug.cgi?id=52081
2656
2657         Test for the availability of cookie jar to return if cookies are enabled or not.
2658
2659         * platform/qt/CookieJarQt.cpp:
2660         (WebCore::cookiesEnabled):
2661
2662 2011-01-10  W. James MacLean  <wjmaclean@chromium.org>
2663
2664         Reviewed by Kenneth Russell.
2665
2666         [chromium] Enable reuse of RenderSurface for drawing.
2667         https://bugs.webkit.org/show_bug.cgi?id=51928
2668
2669         Modifies RenderSurfaceChromium::prepareContentsTexture to avoid trying to 'reserve' a texture
2670         that is already reserved, should an attempt be made to re-select a previously drawn render surface
2671         in order to continue drawing to it. This use case appears when compositing into an offscreen texture.
2672
2673         Covered by existing test (compositing/geometry/fixed-position.html) when offscreen compositing enabled.
2674
2675         * platform/graphics/chromium/LayerTexture.h:
2676         (WebCore::LayerTexture::isReserved):
2677         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
2678         (WebCore::RenderSurfaceChromium::prepareContentsTexture):
2679         * platform/graphics/chromium/TextureManager.cpp:
2680         (WebCore::TextureManager::isProtected):
2681         * platform/graphics/chromium/TextureManager.h:
2682
2683 2011-01-10  Carlos Garcia Campos  <cgarcia@igalia.com>
2684
2685         Reviewed by Xan Lopez.
2686
2687         [GTK] Port combo box painting to GtkStyleContext
2688         https://bugs.webkit.org/show_bug.cgi?id=51828
2689
2690         Use GtkStyleContext API to paint combo boxes when building with
2691         GTK+ 3.x. Method paintButton() has been factored out and the new
2692         static method renderButton() is used by both paintButton() and
2693         paintMenuList().
2694
2695         No new tests. This should not change functionality.
2696
2697         * platform/gtk/RenderThemeGtk3.cpp:
2698         (WebCore::RenderThemeGtk::adjustRepaintRect):
2699         (WebCore::renderButton):
2700         (WebCore::RenderThemeGtk::paintButton):
2701         (WebCore::getComboBoxMetrics):
2702         (WebCore::RenderThemeGtk::popupInternalPaddingLeft):
2703         (WebCore::RenderThemeGtk::popupInternalPaddingRight):
2704         (WebCore::RenderThemeGtk::popupInternalPaddingTop):
2705         (WebCore::RenderThemeGtk::popupInternalPaddingBottom):
2706         (WebCore::RenderThemeGtk::paintMenuList):
2707
2708 2011-01-10  Evan Martin  <evan@chromium.org>
2709
2710         Reviewed by Tony Chang.
2711
2712         [chromium] simplify complex glyph positioning code
2713         https://bugs.webkit.org/show_bug.cgi?id=52159
2714
2715         Before, we had roughly same code duplicated for RTL and LTR.
2716         Now, use the same code for both directions by being careful about
2717         flipping signs where appropriate.
2718
2719         * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
2720         (WebCore::ComplexTextController::shapeGlyphs):
2721         (WebCore::ComplexTextController::setGlyphXPositions):
2722
2723 2011-01-10  Alejandro G. Castro  <alex@igalia.com>
2724
2725         Reviewed by Xan Lopez.
2726
2727         [GTK] Fix gtk2 compilation for master
2728         https://bugs.webkit.org/show_bug.cgi?id=51885
2729
2730         * platform/gtk/GtkVersioning.h: Replaced the 2.24.0 check with
2731         2.23.0 to avoid using the old symbols in the 2.23 releases. Added
2732         support for gdk_pixmap_get_size before the 2.23.4.
2733         * platform/gtk/WidgetRenderingContextGtk2.cpp:
2734         (WebCore::WidgetRenderingContext::WidgetRenderingContext):
2735         Replaced the old gdk_drawable_get_size with gdk_pixmap_get_size.
2736
2737 2011-01-10  Ryosuke Niwa  <rniwa@webkit.org>
2738
2739         Unreviewed; build fix for r75385.
2740
2741         * rendering/mathml/RenderMathMLFraction.cpp:
2742         (WebCore::RenderMathMLFraction::paint):
2743
2744 2011-01-10  Sheriff Bot  <webkit.review.bot@gmail.com>
2745
2746         Unreviewed, rolling out r75341.
2747         http://trac.webkit.org/changeset/75341
2748         https://bugs.webkit.org/show_bug.cgi?id=52157
2749
2750         Regressions on several pixel tests (Requested by jorlow on
2751         #webkit).
2752
2753         * platform/graphics/cg/GraphicsContextCG.cpp:
2754         (WebCore::GraphicsContext::fillPath):
2755
2756 2011-01-10  Carlos Garcia Campos  <cgarcia@igalia.com>
2757
2758         Reviewed by Martin Robinson.
2759
2760         [GTK] Port check and radio button painting to GtkStyleContext
2761         https://bugs.webkit.org/show_bug.cgi?id=51815
2762
2763         Use GtkStyleContext API to paint check and radio buttons when
2764         building with GTK+ 3.x.
2765
2766         No new tests. This should not change functionality.
2767
2768         * platform/gtk/RenderThemeGtk3.cpp:
2769         (WebCore::RenderThemeGtk::adjustRepaintRect):
2770         (WebCore::setToggleSize):
2771         (WebCore::paintToggle):
2772         (WebCore::RenderThemeGtk::setCheckboxSize):
2773         (WebCore::RenderThemeGtk::paintCheckbox):
2774         (WebCore::RenderThemeGtk::setRadioSize):
2775         (WebCore::RenderThemeGtk::paintRadio):
2776
2777 2011-01-10  François Sausset  <sausset@gmail.com>
2778
2779         Reviewed by Kenneth Rohde Christiansen.
2780
2781         MathML: vertical alignment & bar thickness adjustments of fractions.
2782         https://bugs.webkit.org/show_bug.cgi?id=50018
2783
2784         The fraction bar thickness default value should follow the w3c MathML 3 recommendation:
2785         http://www.w3.org/TR/MathML3/chapter3.html#presm.mfrac
2786         The vertical alignment of the fraction bar should be more accurate, specially with operators (+,=,...).
2787
2788         Test: mathml/presentation/fractions.xhtml
2789
2790         * rendering/mathml/RenderMathMLFraction.cpp:
2791         (WebCore::RenderMathMLFraction::RenderMathMLFraction):
2792         (WebCore::RenderMathMLFraction::updateFromElement):
2793         (WebCore::RenderMathMLFraction::layout):
2794         (WebCore::RenderMathMLFraction::paint):
2795         (WebCore::RenderMathMLFraction::baselinePosition):
2796         * rendering/mathml/RenderMathMLFraction.h:
2797
2798 2011-01-10  Antti Koivisto  <antti@apple.com>
2799
2800         Reviewed by Alexey Proskuryakov.
2801
2802         https://bugs.webkit.org/show_bug.cgi?id=52044
2803         REGRESSION(r74807): No-store is ignored within a document
2804         
2805         Don't use cached resources with Cache-control: no-store (unless cache policy is CachePolicyHistoryBuffer).
2806         This matches a behavior that got lost in r74807.
2807
2808         Test: http/tests/misc/script-no-store.html
2809         (by Alexey Proskuryakov)
2810
2811         * loader/cache/CachedResourceLoader.cpp:
2812         (WebCore::CachedResourceLoader::determineRevalidationPolicy):
2813
2814 2011-01-10  Patrick Gansterer  <paroga@webkit.org>
2815
2816         Reviewed by Laszlo Gombos.
2817
2818         [WIN] Add ProxyServerWin.cpp
2819         https://bugs.webkit.org/show_bug.cgi?id=52031
2820
2821         Add stub implementation to fix ENABLE_NETSCAPE_PLUGIN_API on WinCE.
2822
2823         * CMakeLists.txt:
2824         * CMakeListsWinCE.txt:
2825         * platform/network/win/ProxyServerWin.cpp: Added.
2826         (WebCore::proxyServersForURL):
2827
2828 2011-01-10  Alejandro G. Castro  <alex@igalia.com>
2829
2830         Reviewed by Martin Robinson.
2831
2832         [cairo] Rendering a lot of arcs on top of each other causes time
2833         outs in some tests
2834         https://bugs.webkit.org/show_bug.cgi?id=50869
2835
2836         We avoid the situation where we have to render the same arc
2837         multiple times over itself. Now it renders just one oval and
2838         moves to the end angle.
2839
2840         * platform/graphics/cairo/PathCairo.cpp:
2841         (WebCore::Path::addArc):
2842
2843 2011-01-10  Carlos Garcia Campos  <cgarcia@igalia.com>
2844
2845         Reviewed by Martin Robinson.
2846
2847         [GTK] Port text input control painting to GtkStyleContext
2848         https://bugs.webkit.org/show_bug.cgi?id=51870
2849
2850         Use GtkStyleContext API to paint text input controls when building
2851         with GTK+ 3.x.
2852
2853         No new tests. This should not change functionality.
2854
2855         * platform/gtk/RenderThemeGtk3.cpp:
2856         (WebCore::RenderThemeGtk::adjustRepaintRect):
2857         (WebCore::RenderThemeGtk::paintTextField):
2858
2859 2011-01-09  Tony Gentilcore  <tonyg@chromium.org>
2860
2861         Reviewed by Alexey Proskuryakov.
2862
2863         Forward declare some headers where possible
2864         https://bugs.webkit.org/show_bug.cgi?id=52133
2865
2866         No new tests because no new functionality.
2867
2868         * css/CSSValue.h:
2869         * dom/BeforeLoadEvent.h:
2870         * dom/Event.cpp:
2871         * dom/Event.h:
2872         * dom/StyledElement.cpp:
2873         * dom/StyledElement.h:
2874         * loader/DocumentLoader.h:
2875         * loader/FrameLoader.h:
2876         * page/Frame.h:
2877         * platform/graphics/GraphicsContext.cpp:
2878         * platform/graphics/GraphicsContext.h:
2879         * platform/graphics/filters/FEBlend.cpp:
2880         * platform/graphics/filters/FEColorMatrix.cpp:
2881         * platform/graphics/filters/FEComponentTransfer.cpp:
2882         * platform/graphics/filters/FEComposite.cpp:
2883         * platform/graphics/filters/FEConvolveMatrix.cpp:
2884         * platform/graphics/filters/FEDiffuseLighting.cpp:
2885         * platform/graphics/filters/FEDisplacementMap.cpp:
2886         * platform/graphics/filters/FEFlood.cpp:
2887         * platform/graphics/filters/FEGaussianBlur.cpp:
2888         * platform/graphics/filters/FEMerge.cpp:
2889         * platform/graphics/filters/FEMorphology.cpp:
2890         * platform/graphics/filters/FEOffset.cpp:
2891         * platform/graphics/filters/FESpecularLighting.cpp:
2892         * platform/graphics/filters/FETile.cpp:
2893         * platform/graphics/filters/FETurbulence.cpp:
2894         * platform/graphics/filters/FilterEffect.cpp:
2895         * platform/graphics/filters/FilterEffect.h:
2896         * platform/graphics/filters/SourceAlpha.cpp:
2897         * platform/graphics/filters/SourceGraphic.cpp:
2898         * svg/SVGElement.cpp:
2899         * svg/SVGElement.h:
2900         * svg/SVGFEBlendElement.cpp:
2901         * svg/SVGFEColorMatrixElement.cpp:
2902         * svg/SVGFEComponentTransferElement.cpp:
2903         * svg/SVGFECompositeElement.cpp:
2904         * svg/SVGFEConvolveMatrixElement.cpp:
2905         * svg/SVGFEConvolveMatrixElement.h:
2906         * svg/SVGFEDiffuseLightingElement.cpp:
2907         * svg/SVGFEDisplacementMapElement.cpp:
2908         * svg/SVGFEGaussianBlurElement.cpp:
2909         * svg/SVGFEImageElement.h:
2910         * svg/SVGFEMergeElement.cpp:
2911         * svg/SVGFEMorphologyElement.cpp:
2912         * svg/SVGFEOffsetElement.cpp:
2913         * svg/SVGFESpecularLightingElement.cpp:
2914         * svg/SVGFETileElement.cpp:
2915         * svg/SVGFETurbulenceElement.h:
2916         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
2917         * svg/SVGFilterPrimitiveStandardAttributes.h:
2918         * svg/SVGTextContentElement.cpp:
2919         * svg/graphics/filters/SVGFEImage.cpp:
2920         * svg/graphics/filters/SVGFEImage.h:
2921
2922 2011-01-10  Adam Roben  <aroben@apple.com>
2923
2924         Windows build fix after r75313
2925
2926         * WebCore.vcproj/build-generated-files.sh: Updated for the change in
2927         this script's path.
2928
2929 2011-01-10  Pavel Podivilov  <podivilov@chromium.org>
2930
2931         Reviewed by Pavel Feldman.
2932
2933         Web Inspector: make properties on Array's prototype non-enumerable.
2934         https://bugs.webkit.org/show_bug.cgi?id=51776
2935
2936         * inspector/front-end/utilities.js:
2937         ():
2938
2939 2011-01-10  Yael Aharon  <yael.aharon@nokia.com>
2940
2941         Reviewed by Simon Fraser.
2942
2943         Specificity of negated selectors apparently miscalculated
2944         https://bugs.webkit.org/show_bug.cgi?id=41206
2945
2946         Give negated selectors the specificity of the selector they are negating.
2947         This is the same as the behavior of other browsers.
2948
2949         Test: fast/css/pseudo-not.html
2950
2951         * css/CSSSelector.cpp:
2952         (WebCore::CSSSelector::specificityForOneSelector):
2953
2954 2011-01-10  Adam Roben  <aroben@apple.com>
2955
2956         Windows build fix after r75353
2957
2958         * WebCore.vcproj/WebCoreCommon.vsprops: Added rendering/mathml to the
2959         include path.
2960
2961 2011-01-10  John Knottenbelt  <jknotten@chromium.org>
2962
2963         Reviewed by Jeremy Orlow.
2964
2965         [Chromium] Remove non-client-based Geolocation code
2966         https://bugs.webkit.org/show_bug.cgi?id=50921
2967
2968         Code clean up, covered by existing tests.
2969
2970         * WebCore.gyp/WebCore.gyp:
2971         * WebCore.gypi:
2972         * platform/chromium/ChromiumBridge.h:
2973         * platform/chromium/GeolocationServiceChromium.cpp: Removed.
2974         * platform/chromium/GeolocationServiceChromium.h: Removed.
2975
2976 2011-01-10  Ilya Tikhonovsky  <loislo@chromium.org>
2977
2978         Reviewed by Pavel Feldman.
2979
2980         Web Inspector: protocol related change. Rename stepIntoStatement, stepOutOfFunction, stepOverStatement.
2981         stepIntoStatement => stepInto
2982         stepOutOfFunction => stepOut
2983         stepOverStatement => stepOver
2984
2985         https://bugs.webkit.org/show_bug.cgi?id=52142
2986
2987         * inspector/Inspector.idl:
2988         * inspector/InspectorDebuggerAgent.cpp:
2989         (WebCore::InspectorDebuggerAgent::stepOver):
2990         (WebCore::InspectorDebuggerAgent::stepInto):
2991         (WebCore::InspectorDebuggerAgent::stepOut):
2992         * inspector/InspectorDebuggerAgent.h:
2993         * inspector/front-end/ScriptsPanel.js:
2994         (WebInspector.ScriptsPanel.prototype._stepOverClicked):
2995         (WebInspector.ScriptsPanel.prototype._stepIntoClicked):
2996         (WebInspector.ScriptsPanel.prototype._stepOutClicked):
2997
2998 2011-01-10  Carlos Garcia Campos  <cgarcia@igalia.com>
2999
3000         Reviewed by Martin Robinson.
3001
3002         [GTK] Port progressbar painting to GtkStyleContext
3003         https://bugs.webkit.org/show_bug.cgi?id=52054
3004
3005         Use GtkStyleContext API to paint progressbars when building with
3006         GTK+ 3.x. Also add support for indeterminate progressbars.
3007
3008         No new tests. This should not change functionality.
3009
3010         * platform/gtk/RenderThemeGtk.cpp:
3011         * platform/gtk/RenderThemeGtk2.cpp:
3012         (WebCore::RenderThemeGtk::animationRepeatIntervalForProgressBar):
3013         (WebCore::RenderThemeGtk::animationDurationForProgressBar):
3014         * platform/gtk/RenderThemeGtk3.cpp:
3015         (WebCore::RenderThemeGtk::animationRepeatIntervalForProgressBar):
3016         (WebCore::RenderThemeGtk::animationDurationForProgressBar):
3017         (WebCore::RenderThemeGtk::paintProgressBar):
3018
3019 2011-01-10  Andreas Kling  <kling@webkit.org>
3020
3021         Reviewed by Darin Adler.
3022
3023         Remove unused class "Pen" in WebCore/platform/graphics
3024         https://bugs.webkit.org/show_bug.cgi?id=49955
3025
3026         * Android.mk:
3027         * CMakeLists.txt:
3028         * GNUmakefile.am:
3029         * WebCore.gypi:
3030         * WebCore.pro:
3031         * WebCore.vcproj/WebCore.vcproj:
3032         * WebCore.xcodeproj/project.pbxproj:
3033         * platform/graphics/Pen.cpp: Removed.
3034         * platform/graphics/Pen.h: Removed.
3035         * platform/graphics/haiku/GraphicsContextHaiku.cpp:
3036         * platform/graphics/wx/GraphicsContextWx.cpp:
3037         * platform/graphics/wx/PenWx.cpp: Removed.
3038
3039 2011-01-10  Xan Lopez  <xlopez@igalia.com>
3040
3041         Reviewed by Martin Robinson.
3042
3043         [GTK] Create intermediate libWebCore library
3044         https://bugs.webkit.org/show_bug.cgi?id=52116
3045
3046         Create intermediate libWebCore.la to avoid overflowing the linker
3047         in the final link stage.
3048
3049         * GNUmakefile.am: define the new library.
3050
3051 2011-01-09  Sheriff Bot  <webkit.review.bot@gmail.com>
3052
3053         Unreviewed, rolling out r75337.
3054         http://trac.webkit.org/changeset/75337
3055         https://bugs.webkit.org/show_bug.cgi?id=52137
3056
3057         It made fast/dom/navigator-detached-no-crash.html crash
3058         (Requested by Ossy on #webkit).
3059
3060         * platform/qt/CookieJarQt.cpp:
3061         (WebCore::cookiesEnabled):
3062
3063 2011-01-09  Mark Rowe  <mrowe@apple.com>
3064
3065         Fix the build.
3066
3067         * WebCore.xcodeproj/project.pbxproj: Copy SVGResourcesCache.h in to PrivateHeaders
3068         once more.
3069
3070 2011-01-09  Dan Bernstein  <mitz@apple.com>
3071
3072         Reviewed by Sam Weinig.
3073
3074         <rdar://problem/8765555> WebKit2: Search field focus ring is missing
3075
3076         Provide a focus ring visible rect to AppKit.
3077
3078         * platform/mac/ThemeMac.mm:
3079         (-[WebCoreFlippedView _focusRingVisibleRect]):
3080         (-[WebCoreFlippedView _focusRingClipAncestor]):
3081
3082 2011-01-09  Dirk Schulze  <krit@webkit.org>
3083
3084         Reviewed by Rob Buis.
3085
3086         Move MathML renderer to rendering/mathml
3087         https://bugs.webkit.org/show_bug.cgi?id=52131
3088
3089         Move all renderer of MathML to WebCore/rendering/mathml
3090
3091         No change of functionality, no new tests added.
3092
3093         * CMakeLists.txt:
3094         * GNUmakefile.am:
3095         * WebCore.gypi:
3096         * WebCore.pro:
3097         * WebCore.vcproj/WebCore.vcproj:
3098         * WebCore.xcodeproj/project.pbxproj:
3099         * mathml/RenderMathMLBlock.cpp: Removed.
3100         * mathml/RenderMathMLBlock.h: Removed.
3101         * mathml/RenderMathMLFenced.cpp: Removed.
3102         * mathml/RenderMathMLFenced.h: Removed.
3103         * mathml/RenderMathMLFraction.cpp: Removed.
3104         * mathml/RenderMathMLFraction.h: Removed.
3105         * mathml/RenderMathMLMath.cpp: Removed.
3106         * mathml/RenderMathMLMath.h: Removed.
3107         * mathml/RenderMathMLOperator.cpp: Removed.
3108         * mathml/RenderMathMLOperator.h: Removed.
3109         * mathml/RenderMathMLRoot.cpp: Removed.
3110         * mathml/RenderMathMLRoot.h: Removed.
3111         * mathml/RenderMathMLRow.cpp: Removed.
3112         * mathml/RenderMathMLRow.h: Removed.
3113         * mathml/RenderMathMLSquareRoot.cpp: Removed.
3114         * mathml/RenderMathMLSquareRoot.h: Removed.
3115         * mathml/RenderMathMLSubSup.cpp: Removed.
3116         * mathml/RenderMathMLSubSup.h: Removed.
3117         * mathml/RenderMathMLUnderOver.cpp: Removed.
3118         * mathml/RenderMathMLUnderOver.h: Removed.
3119         * rendering/mathml: Added.
3120         * rendering/mathml/RenderMathMLBlock.cpp: Copied from Source/WebCore/mathml/RenderMathMLBlock.cpp.
3121         * rendering/mathml/RenderMathMLBlock.h: Copied from Source/WebCore/mathml/RenderMathMLBlock.h.
3122         * rendering/mathml/RenderMathMLFenced.cpp: Copied from Source/WebCore/mathml/RenderMathMLFenced.cpp.
3123         * rendering/mathml/RenderMathMLFenced.h: Copied from Source/WebCore/mathml/RenderMathMLFenced.h.
3124         * rendering/mathml/RenderMathMLFraction.cpp: Copied from Source/WebCore/mathml/RenderMathMLFraction.cpp.
3125         * rendering/mathml/RenderMathMLFraction.h: Copied from Source/WebCore/mathml/RenderMathMLFraction.h.
3126         * rendering/mathml/RenderMathMLMath.cpp: Copied from Source/WebCore/mathml/RenderMathMLMath.cpp.
3127         * rendering/mathml/RenderMathMLMath.h: Copied from Source/WebCore/mathml/RenderMathMLMath.h.
3128         * rendering/mathml/RenderMathMLOperator.cpp: Copied from Source/WebCore/mathml/RenderMathMLOperator.cpp.
3129         * rendering/mathml/RenderMathMLOperator.h: Copied from Source/WebCore/mathml/RenderMathMLOperator.h.
3130         * rendering/mathml/RenderMathMLRoot.cpp: Copied from Source/WebCore/mathml/RenderMathMLRoot.cpp.
3131         * rendering/mathml/RenderMathMLRoot.h: Copied from Source/WebCore/mathml/RenderMathMLRoot.h.
3132         * rendering/mathml/RenderMathMLRow.cpp: Copied from Source/WebCore/mathml/RenderMathMLRow.cpp.
3133         * rendering/mathml/RenderMathMLRow.h: Copied from Source/WebCore/mathml/RenderMathMLRow.h.
3134         * rendering/mathml/RenderMathMLSquareRoot.cpp: Copied from Source/WebCore/mathml/RenderMathMLSquareRoot.cpp.
3135         * rendering/mathml/RenderMathMLSquareRoot.h: Copied from Source/WebCore/mathml/RenderMathMLSquareRoot.h.
3136         * rendering/mathml/RenderMathMLSubSup.cpp: Copied from Source/WebCore/mathml/RenderMathMLSubSup.cpp.
3137         * rendering/mathml/RenderMathMLSubSup.h: Copied from Source/WebCore/mathml/RenderMathMLSubSup.h.
3138         * rendering/mathml/RenderMathMLUnderOver.cpp: Copied from Source/WebCore/mathml/RenderMathMLUnderOver.cpp.
3139         * rendering/mathml/RenderMathMLUnderOver.h: Copied from Source/WebCore/mathml/RenderMathMLUnderOver.h.
3140
3141 2011-01-08  Simon Fraser  <simon.fraser@apple.com>
3142
3143         Reviewed by Alexey Proskuryakov.
3144
3145         HTMLStyleElement.disabled doesn't work (affects jQuery)
3146         https://bugs.webkit.org/show_bug.cgi?id=25287
3147         
3148         Fix the disabled property of a HTMLStyleElement to reflect,
3149         and set the disabled state of its style sheet, as required
3150         by DOM1 etc.
3151
3152         Based on initial patch by Tarun Nainani.
3153
3154         Test: fast/html/disable-style-element.html
3155
3156         * dom/StyleElement.h:
3157         (WebCore::StyleElement::sheet): Make const.
3158         
3159         * html/HTMLStyleElement.h:
3160         * html/HTMLStyleElement.idl:
3161         * html/HTMLStyleElement.cpp:
3162         (WebCore::HTMLStyleElement::disabled): 
3163         (WebCore::HTMLStyleElement::setDisabled): Getter and setter for disabled
3164         call through to the sheet (if any).
3165
3166 2011-01-09  Dirk Schulze  <krit@webkit.org>
3167
3168         Reviewed by Nikolas Zimmermann.
3169
3170         Rename RenderForeignObject to RenderSVGForeignObject
3171         https://bugs.webkit.org/show_bug.cgi?id=52129
3172
3173         Rename RenderForeignObject to RenderSVGForeignObject to match the naming schema in render/svg.
3174
3175         No change of functionality, no new tests.
3176
3177         * Android.mk:
3178         * CMakeLists.txt:
3179         * GNUmakefile.am:
3180         * WebCore.gypi:
3181         * WebCore.pro:
3182         * WebCore.xcodeproj/project.pbxproj:
3183         * rendering/RenderingAllInOne.cpp:
3184         * rendering/svg/RenderForeignObject.cpp: Removed.
3185         * rendering/svg/RenderForeignObject.h: Removed.
3186         * rendering/svg/RenderSVGAllInOne.cpp:
3187         * rendering/svg/RenderSVGBlock.cpp:
3188         (WebCore::RenderSVGBlock::updateBoxModelInfoFromStyle):
3189         * rendering/svg/RenderSVGForeignObject.cpp: Copied from Source/WebCore/rendering/svg/RenderForeignObject.cpp.
3190         (WebCore::RenderSVGForeignObject::RenderSVGForeignObject):
3191         (WebCore::RenderSVGForeignObject::~RenderSVGForeignObject):
3192         (WebCore::RenderSVGForeignObject::paint):
3193         (WebCore::RenderSVGForeignObject::clippedOverflowRectForRepaint):
3194         (WebCore::RenderSVGForeignObject::computeRectForRepaint):
3195         (WebCore::RenderSVGForeignObject::localToParentTransform):
3196         (WebCore::RenderSVGForeignObject::computeLogicalWidth):
3197         (WebCore::RenderSVGForeignObject::computeLogicalHeight):
3198         (WebCore::RenderSVGForeignObject::layout):
3199         (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
3200         (WebCore::RenderSVGForeignObject::nodeAtPoint):
3201         (WebCore::RenderSVGForeignObject::mapLocalToContainer):
3202         * rendering/svg/RenderSVGForeignObject.h: Copied from Source/WebCore/rendering/svg/RenderForeignObject.h.
3203         (WebCore::RenderSVGForeignObject::renderName):
3204         * svg/SVGForeignObjectElement.cpp:
3205         (WebCore::SVGForeignObjectElement::createRenderer):
3206
3207 2011-01-09  Dirk Schulze  <krit@webkit.org>
3208
3209         Reviewed by Nikolas Zimmermann.
3210
3211         Move all SVG renderer to WebCore/rendering/svg
3212         https://bugs.webkit.org/show_bug.cgi?id=52087
3213
3214         No change of functionality. Just moved all SVG renderer to WebCore/rendering/svg.
3215
3216         * Android.mk:
3217         * CMakeLists.txt:
3218         * GNUmakefile.am:
3219         * WebCore.gypi:
3220         * WebCore.pro:
3221         * WebCore.vjproj/project.vjproj:
3222         * WebCore.xcodeproj/project.pbxproj:
3223         * rendering/RenderForeignObject.cpp: Removed.
3224         * rendering/RenderForeignObject.h: Removed.
3225         * rendering/RenderSVGAllInOne.cpp: Removed.
3226         * rendering/RenderSVGBlock.cpp: Removed.
3227         * rendering/RenderSVGBlock.h: Removed.
3228         * rendering/RenderSVGContainer.cpp: Removed.
3229         * rendering/RenderSVGContainer.h: Removed.
3230         * rendering/RenderSVGGradientStop.cpp: Removed.
3231         * rendering/RenderSVGGradientStop.h: Removed.
3232         * rendering/RenderSVGHiddenContainer.cpp: Removed.
3233         * rendering/RenderSVGHiddenContainer.h: Removed.
3234         * rendering/RenderSVGImage.cpp: Removed.
3235         * rendering/RenderSVGImage.h: Removed.
3236         * rendering/RenderSVGModelObject.cpp: Removed.
3237         * rendering/RenderSVGModelObject.h: Removed.
3238         * rendering/RenderSVGResource.cpp: Removed.
3239         * rendering/RenderSVGResource.h: Removed.
3240         * rendering/RenderSVGResourceClipper.cpp: Removed.
3241         * rendering/RenderSVGResourceClipper.h: Removed.
3242         * rendering/RenderSVGResourceContainer.cpp: Removed.
3243         * rendering/RenderSVGResourceContainer.h: Removed.
3244         * rendering/RenderSVGResourceFilter.cpp: Removed.
3245         * rendering/RenderSVGResourceFilter.h: Removed.
3246         * rendering/RenderSVGResourceFilterPrimitive.cpp: Removed.
3247         * rendering/RenderSVGResourceFilterPrimitive.h: Removed.
3248         * rendering/RenderSVGResourceGradient.cpp: Removed.
3249         * rendering/RenderSVGResourceGradient.h: Removed.
3250         * rendering/RenderSVGResourceLinearGradient.cpp: Removed.
3251         * rendering/RenderSVGResourceLinearGradient.h: Removed.
3252         * rendering/RenderSVGResourceMarker.cpp: Removed.
3253         * rendering/RenderSVGResourceMarker.h: Removed.
3254         * rendering/RenderSVGResourceMasker.cpp: Removed.
3255         * rendering/RenderSVGResourceMasker.h: Removed.
3256         * rendering/RenderSVGResourcePattern.cpp: Removed.
3257         * rendering/RenderSVGResourcePattern.h: Removed.
3258         * rendering/RenderSVGResourceRadialGradient.cpp: Removed.
3259         * rendering/RenderSVGResourceRadialGradient.h: Removed.
3260         * rendering/RenderSVGResourceSolidColor.cpp: Removed.
3261         * rendering/RenderSVGResourceSolidColor.h: Removed.
3262         * rendering/RenderSVGRoot.cpp: Removed.
3263         * rendering/RenderSVGRoot.h: Removed.
3264         * rendering/RenderSVGShadowTreeRootContainer.cpp: Removed.
3265         * rendering/RenderSVGShadowTreeRootContainer.h: Removed.
3266         * rendering/RenderSVGTransformableContainer.cpp: Removed.
3267         * rendering/RenderSVGTransformableContainer.h: Removed.
3268         * rendering/RenderSVGViewportContainer.cpp: Removed.
3269         * rendering/RenderSVGViewportContainer.h: Removed.
3270         * rendering/SVGImageBufferTools.cpp: Removed.
3271         * rendering/SVGImageBufferTools.h: Removed.
3272         * rendering/SVGMarkerData.h: Removed.
3273         * rendering/SVGMarkerLayoutInfo.cpp: Removed.
3274         * rendering/SVGMarkerLayoutInfo.h: Removed.
3275         * rendering/SVGRenderSupport.cpp: Removed.
3276         * rendering/SVGRenderSupport.h: Removed.
3277         * rendering/SVGRenderTreeAsText.cpp: Removed.
3278         * rendering/SVGRenderTreeAsText.h: Removed.
3279         * rendering/SVGResources.cpp: Removed.
3280         * rendering/SVGResources.h: Removed.
3281         * rendering/SVGResourcesCache.cpp: Removed.
3282         * rendering/SVGResourcesCache.h: Removed.
3283         * rendering/SVGResourcesCycleSolver.cpp: Removed.
3284         * rendering/SVGResourcesCycleSolver.h: Removed.
3285         * rendering/SVGShadowTreeElements.cpp: Removed.
3286         * rendering/SVGShadowTreeElements.h: Removed.
3287         * rendering/svg/RenderForeignObject.cpp: Copied from Source/WebCore/rendering/RenderForeignObject.cpp.
3288         * rendering/svg/RenderForeignObject.h: Copied from Source/WebCore/rendering/RenderForeignObject.h.
3289         * rendering/svg/RenderSVGAllInOne.cpp: Copied from Source/WebCore/rendering/RenderSVGAllInOne.cpp.
3290         * rendering/svg/RenderSVGBlock.cpp: Copied from Source/WebCore/rendering/RenderSVGBlock.cpp.
3291         * rendering/svg/RenderSVGBlock.h: Copied from Source/WebCore/rendering/RenderSVGBlock.h.
3292         * rendering/svg/RenderSVGContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGContainer.cpp.
3293         * rendering/svg/RenderSVGContainer.h: Copied from Source/WebCore/rendering/RenderSVGContainer.h.
3294         * rendering/svg/RenderSVGGradientStop.cpp: Copied from Source/WebCore/rendering/RenderSVGGradientStop.cpp.
3295         * rendering/svg/RenderSVGGradientStop.h: Copied from Source/WebCore/rendering/RenderSVGGradientStop.h.
3296         * rendering/svg/RenderSVGHiddenContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGHiddenContainer.cpp.
3297         * rendering/svg/RenderSVGHiddenContainer.h: Copied from Source/WebCore/rendering/RenderSVGHiddenContainer.h.
3298         * rendering/svg/RenderSVGImage.cpp: Copied from Source/WebCore/rendering/RenderSVGImage.cpp.
3299         * rendering/svg/RenderSVGImage.h: Copied from Source/WebCore/rendering/RenderSVGImage.h.
3300         * rendering/svg/RenderSVGModelObject.cpp: Copied from Source/WebCore/rendering/RenderSVGModelObject.cpp.
3301         * rendering/svg/RenderSVGModelObject.h: Copied from Source/WebCore/rendering/RenderSVGModelObject.h.
3302         * rendering/svg/RenderSVGResource.cpp: Copied from Source/WebCore/rendering/RenderSVGResource.cpp.
3303         * rendering/svg/RenderSVGResource.h: Copied from Source/WebCore/rendering/RenderSVGResource.h.
3304         * rendering/svg/RenderSVGResourceClipper.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceClipper.cpp.
3305         * rendering/svg/RenderSVGResourceClipper.h: Copied from Source/WebCore/rendering/RenderSVGResourceClipper.h.
3306         * rendering/svg/RenderSVGResourceContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceContainer.cpp.
3307         * rendering/svg/RenderSVGResourceContainer.h: Copied from Source/WebCore/rendering/RenderSVGResourceContainer.h.
3308         * rendering/svg/RenderSVGResourceFilter.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceFilter.cpp.
3309         * rendering/svg/RenderSVGResourceFilter.h: Copied from Source/WebCore/rendering/RenderSVGResourceFilter.h.
3310         * rendering/svg/RenderSVGResourceFilterPrimitive.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceFilterPrimitive.cpp.
3311         * rendering/svg/RenderSVGResourceFilterPrimitive.h: Copied from Source/WebCore/rendering/RenderSVGResourceFilterPrimitive.h.
3312         * rendering/svg/RenderSVGResourceGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceGradient.cpp.
3313         * rendering/svg/RenderSVGResourceGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceGradient.h.
3314         * rendering/svg/RenderSVGResourceLinearGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceLinearGradient.cpp.
3315         * rendering/svg/RenderSVGResourceLinearGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceLinearGradient.h.
3316         * rendering/svg/RenderSVGResourceMarker.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceMarker.cpp.
3317         * rendering/svg/RenderSVGResourceMarker.h: Copied from Source/WebCore/rendering/RenderSVGResourceMarker.h.
3318         * rendering/svg/RenderSVGResourceMasker.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceMasker.cpp.
3319         * rendering/svg/RenderSVGResourceMasker.h: Copied from Source/WebCore/rendering/RenderSVGResourceMasker.h.
3320         * rendering/svg/RenderSVGResourcePattern.cpp: Copied from Source/WebCore/rendering/RenderSVGResourcePattern.cpp.
3321         * rendering/svg/RenderSVGResourcePattern.h: Copied from Source/WebCore/rendering/RenderSVGResourcePattern.h.
3322         * rendering/svg/RenderSVGResourceRadialGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceRadialGradient.cpp.
3323         * rendering/svg/RenderSVGResourceRadialGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceRadialGradient.h.
3324         * rendering/svg/RenderSVGResourceSolidColor.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceSolidColor.cpp.
3325         * rendering/svg/RenderSVGResourceSolidColor.h: Copied from Source/WebCore/rendering/RenderSVGResourceSolidColor.h.
3326         * rendering/svg/RenderSVGRoot.cpp: Copied from Source/WebCore/rendering/RenderSVGRoot.cpp.
3327         * rendering/svg/RenderSVGRoot.h: Copied from Source/WebCore/rendering/RenderSVGRoot.h.
3328         * rendering/svg/RenderSVGShadowTreeRootContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGShadowTreeRootContainer.cpp.
3329         * rendering/svg/RenderSVGShadowTreeRootContainer.h: Copied from Source/WebCore/rendering/RenderSVGShadowTreeRootContainer.h.
3330         * rendering/svg/RenderSVGTransformableContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGTransformableContainer.cpp.
3331         * rendering/svg/RenderSVGTransformableContainer.h: Copied from Source/WebCore/rendering/RenderSVGTransformableContainer.h.
3332         * rendering/svg/RenderSVGViewportContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGViewportContainer.cpp.
3333         * rendering/svg/RenderSVGViewportContainer.h: Copied from Source/WebCore/rendering/RenderSVGViewportContainer.h.
3334         * rendering/svg/SVGImageBufferTools.cpp: Copied from Source/WebCore/rendering/SVGImageBufferTools.cpp.
3335         * rendering/svg/SVGImageBufferTools.h: Copied from Source/WebCore/rendering/SVGImageBufferTools.h.
3336         * rendering/svg/SVGMarkerData.h: Copied from Source/WebCore/rendering/SVGMarkerData.h.
3337         * rendering/svg/SVGMarkerLayoutInfo.cpp: Copied from Source/WebCore/rendering/SVGMarkerLayoutInfo.cpp.
3338         * rendering/svg/SVGMarkerLayoutInfo.h: Copied from Source/WebCore/rendering/SVGMarkerLayoutInfo.h.
3339         * rendering/svg/SVGRenderSupport.cpp: Copied from Source/WebCore/rendering/SVGRenderSupport.cpp.
3340         * rendering/svg/SVGRenderSupport.h: Copied from Source/WebCore/rendering/SVGRenderSupport.h.
3341         * rendering/svg/SVGRenderTreeAsText.cpp: Copied from Source/WebCore/rendering/SVGRenderTreeAsText.cpp.
3342         * rendering/svg/SVGRenderTreeAsText.h: Copied from Source/WebCore/rendering/SVGRenderTreeAsText.h.
3343         * rendering/svg/SVGResources.cpp: Copied from Source/WebCore/rendering/SVGResources.cpp.
3344         * rendering/svg/SVGResources.h: Copied from Source/WebCore/rendering/SVGResources.h.
3345         * rendering/svg/SVGResourcesCache.cpp: Copied from Source/WebCore/rendering/SVGResourcesCache.cpp.
3346         * rendering/svg/SVGResourcesCache.h: Copied from Source/WebCore/rendering/SVGResourcesCache.h.
3347         * rendering/svg/SVGResourcesCycleSolver.cpp: Copied from Source/WebCore/rendering/SVGResourcesCycleSolver.cpp.
3348         * rendering/svg/SVGResourcesCycleSolver.h: Copied from Source/WebCore/rendering/SVGResourcesCycleSolver.h.
3349         * rendering/svg/SVGShadowTreeElements.cpp: Copied from Source/WebCore/rendering/SVGShadowTreeElements.cpp.
3350         * rendering/svg/SVGShadowTreeElements.h: Copied from Source/WebCore/rendering/SVGShadowTreeElements.h.
3351
3352 2011-01-09  Xianzhu Wang  <phnixwxz@gmail.com>
3353
3354         Reviewed by Darin Fisher.
3355
3356         https://bugs.webkit.org/show_bug.cgi?id=41441
3357         createWindow method should only do window-creating without URL navigation.
3358         Let client APIs know which URL a new window will start with
3359
3360         * loader/FrameLoader.cpp:
3361         (WebCore::createWindow):
3362         * page/ContextMenuController.cpp:
3363         (WebCore::openNewWindow):
3364         * page/DOMWindow.cpp:
3365         (WebCore::DOMWindow::createWindow):
3366
3367 2011-01-09  Dirk Schulze  <krit@webkit.org>
3368
3369         Unreviewed sort of Xcode project file.
3370
3371         * WebCore.xcodeproj/project.pbxproj:
3372
3373 2011-01-09  Amruth Raj  <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
3374
3375         Reviewed by Martin Robinson.
3376
3377         Changes to add Process Launcher and Thread Launcher implementation to the WebKit2 GTK port.
3378         https://bugs.webkit.org/show_bug.cgi?id=48511
3379
3380         * platform/FileSystem.h: 
3381         * platform/gtk/FileSystemGtk.cpp: Implement function to get a binary's path
3382         (WebCore::applicationDirectoryPath):
3383
3384 2011-01-08  Martin Robinson  <mrobinson@igalia.com>
3385
3386         GTK+ Build fix. Add missing headers to the source list, fixing make dist.
3387
3388         No new tests. This is only a build change.
3389
3390         * GNUmakefile.am: Add missing headers to the source list.
3391
3392 2011-01-08 Amruth Raj  <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
3393
3394         Reviewed by Martin Robinson.
3395
3396         [GTK] WebKit2 GNUmakefile is out of date from trunk
3397         https://bugs.webkit.org/show_bug.cgi?id=51883
3398
3399         Added stubs for WebKit2 compilation.
3400
3401         * platform/gtk/ContextMenuGtk.cpp:
3402         (WebCore::contextMenuItemVector):
3403         * platform/gtk/ContextMenuItemGtk.cpp:
3404         (WebCore::ContextMenuItem::ContextMenuItem):
3405         (WebCore::ContextMenuItem::checked):
3406         (WebCore::ContextMenuItem::enabled):
3407         * platform/network/soup/AuthenticationChallenge.h:
3408         (WebCore::AuthenticationChallenge::authenticationClient):
3409
3410 2011-01-08  Helder Correia  <helder@sencha.com>
3411
3412         Reviewed by Simon Fraser.
3413
3414         Shadow is not drawn when filling a path with a gradient
3415         https://bugs.webkit.org/show_bug.cgi?id=51982
3416
3417         This happens in CG and is related to bug 51869, this time to be fixed
3418         in GraphicsContext::fillPath(const Path& path). We need to draw the
3419         gradient clipped to the path on a CGLayer first, and then draw the
3420         layer on the GraphicsContext.
3421
3422         Test: fast/canvas/canvas-fillPath-gradient-shadow.html
3423
3424         * platform/graphics/cg/GraphicsContextCG.cpp:
3425         (WebCore::GraphicsContext::fillPath):
3426
3427 2011-01-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
3428
3429         Reviewed by Kenneth Rohde Christiansen.
3430
3431         [Qt] PasteboardQt.cpp has coding-style errors
3432         https://bugs.webkit.org/show_bug.cgi?id=39771
3433
3434         Update the code to follow the coding style.
3435
3436         * platform/qt/PasteboardQt.cpp:
3437         (WebCore::Pasteboard::writeSelection):
3438         (WebCore::Pasteboard::plainText):
3439         (WebCore::Pasteboard::writePlainText):
3440         (WebCore::Pasteboard::writeURL):
3441
3442 2011-01-08  Tony Gentilcore  <tonyg@chromium.org>
3443
3444         Reviewed by Eric Seidel.
3445
3446         HTML5 Conformance Test failure: approved/xhtml5/html_style_in_comment.xhtml
3447         https://bugs.webkit.org/show_bug.cgi?id=48593
3448
3449         XHTML <style> blocks, unlike HTML <style> blocks, should respect HTML
3450         comments.
3451
3452         Test: fast/parser/xhtml-html-comment-in-style-block.xhtml
3453
3454         * dom/StyleElement.cpp:
3455         (WebCore::isValidStyleChild): Remove the COMMENT_NODE check as the HTML parser doesn't add COMMENT_NODEs as children of style blocks.
3456         (WebCore::StyleElement::process): Factored out a condition that must remain in sync.
3457
3458 2011-01-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
3459
3460         Reviewed by Kenneth Rohde Christiansen.