2010-12-24 Gyuyoung Kim <gyuyoung.kim@samsung.com>
[WebKit-https.git] / WebCore / ChangeLog
1 2010-12-24  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2
3         Reviewed by Kenneth Rohde Christiansen.
4
5         [EFL] Return an empty string instead of 'application/octet-stream' in getMIMETypeForExtension()
6         https://bugs.webkit.org/show_bug.cgi?id=51457
7
8         WebKit EFL can't play html5 audio because of wrong mime type checking.
9         So, 'application/octet-stream' is changed with an empty string.
10
11         * platform/efl/MIMETypeRegistryEfl.cpp:
12         (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
13         Returns an empty string instead of application/octet-stream when it can't find proper mime type.
14
15 2010-12-24  Justin Schuh  <jschuh@chromium.org>
16
17         Reviewed by Darin Adler.
18
19         SVGFontFaceElement::rebuildFontFace() should exit when not in document
20         https://bugs.webkit.org/show_bug.cgi?id=51571
21
22         We were hitting a NULL deref crash. Since most of the callers checked
23         inDocument() anyway, I moved it into the start of rebuildFontFace.
24
25         Test: svg/custom/use-invalid-font-face.svg
26
27         * svg/SVGFontFaceElement.cpp:
28         (WebCore::SVGFontFaceElement::parseMappedAttribute):
29         (WebCore::SVGFontFaceElement::rebuildFontFace):
30         (WebCore::SVGFontFaceElement::childrenChanged):
31
32 2010-12-24  Justin Schuh  <jschuh@chromium.org>
33
34         Reviewed by Darin Adler.
35
36         Remove unnecessary check in CSSCanvasValue::canvasDestroyed().
37         https://bugs.webkit.org/show_bug.cgi?id=51564
38
39         This check was duplicating an ASSERT for a case fixed in r73927.
40         Now that the bug is fixed the check is no longer necessary.
41
42         Removing dead code, so no new tests needed.
43
44         * css/CSSCanvasValue.cpp:
45         (WebCore::CSSCanvasValue::canvasDestroyed):
46
47 2010-12-23  Evan Martin  <evan@chromium.org>
48
49         Reviewed by Darin Adler.
50
51         ViewportArguments.h uses an enum to intialize a bool
52         https://bugs.webkit.org/show_bug.cgi?id=50982
53
54         Initialize userScalable to true, rather than -1.
55         No tests; fixes a compiler warning.
56
57         * dom/ViewportArguments.h:
58         (WebCore::ViewportArguments::ViewportArguments):
59
60 2010-12-23  Jan Erik Hanssen  <jhanssen@sencha.com>
61
62         Reviewed by Adam Barth.
63
64         [Qt] User name/password stripped from URLs
65         https://bugs.webkit.org/show_bug.cgi?id=36232
66
67         If a username but no password or no username but a password is present
68         in a URL, QtWebKit won't send any authentication information down to Qt
69         as it should.
70
71         Tests: http/tests/xmlhttprequest/basic-auth-nopassword.html
72                http/tests/xmlhttprequest/basic-auth-nouser.html
73
74         * platform/network/qt/ResourceHandleQt.cpp:
75         (WebCore::ResourceHandle::start):
76         (WebCore::ResourceHandle::loadResourceSynchronously):
77
78 2010-12-23  Ryosuke Niwa  <rniwa@webkit.org>
79
80         Reviewed by Darin Adler.
81
82         queryCommandValue("FormatBlock") does not respect editing boundaries
83         https://bugs.webkit.org/show_bug.cgi?id=51219
84
85         Fixed the bug by checking the element we found in elementForFormatBlockCommand
86         does not contain the editable root.
87
88         * editing/FormatBlockCommand.cpp:
89         (WebCore::FormatBlockCommand::elementForFormatBlockCommand):
90
91 2010-12-23  Ryosuke Niwa  <rniwa@webkit.org>
92
93         Reviewed by Darin Adler.
94
95         FormatBlock doesn't preserve typing style but it should
96         https://bugs.webkit.org/show_bug.cgi?id=51140
97
98         Fixed the bug by making preserveTypingStyle return true.
99
100         Test: editing/execCommand/format-block-typing-style.html
101
102         * editing/FormatBlockCommand.h:
103         (WebCore::FormatBlockCommand::preservesTypingStyle):
104
105 2010-12-23  Jessie Berlin  <jberlin@apple.com>
106
107         Reviewed by Sam Weinig.
108
109         Need WebKit2 API to create a SecurityOrigin from protocol, host, and port
110         https://bugs.webkit.org/show_bug.cgi?id=51563
111
112         Add SecurityOrigin::create(const String& protocol, const String& host, int port).
113
114         * WebCore.exp.in:
115         Export the symbols for WebCore::SecurityOrigin::create(String, String, int).
116
117         * page/SecurityOrigin.cpp:
118         (WebCore::SecurityOrigin::createFromDatabaseIdentifier):
119         Use the constant MaxAllowedPort.
120         (WebCore::SecurityOrigin::create):
121         Sanitizing based off of that done in createFromDatabaseIdentifier.
122         * page/SecurityOrigin.h:
123
124 2010-12-23  Patrick Gansterer  <paroga@webkit.org>
125
126         Unreviewed build fix for WinCE after r73802.
127
128         Reapply r70812:
129         Port ContextMenuItemWin.cpp to WinCE
130         https://bugs.webkit.org/show_bug.cgi?id=48407
131
132         * platform/win/ContextMenuItemWin.cpp:
133
134 2010-12-23  Adam Barth  <abarth@webkit.org>
135
136         Remove include of non-existant file.
137
138         * bindings/v8/custom/V8DOMWindowCustom.cpp:
139
140 2010-12-23  Ryosuke Niwa  <rniwa@webkit.org>
141
142         Reviewed by Darin Adler.
143
144         Selection becomes stale when CharacterData is manipulated directly
145         https://bugs.webkit.org/show_bug.cgi?id=51389
146
147         The bug was caused by SelectionController's not adjusting selection when CharacterData's
148         m_data is modified by its API.
149
150         Fixed the bug by adding textWillBeReplaced to SelectionController and calling it in
151         CharacterData::textWillBeReplaced. Added newLength to setDataAndUpdate, which is passed to
152         textWillBeReplaced because inserting, replacing, or removing data may require moving
153         the offset of the selection end points (done by shouldRemovePositionAfterAdoptingTextReplacement).
154
155         Also fixed the condition for determining whether or not a node intersects the selection
156         in respondToNodeModification, which is extracted from nodeWillBeRemoved. The old condition
157         failed to recognize certain cases when selection started and ended with non-zero offsets.
158
159         Tests: editing/selection/character-data-mutation-crash.html
160                editing/selection/character-data-mutation.html
161
162         * dom/CharacterData.cpp:
163         (WebCore::CharacterData::setData): Passes newLegnth to setDataAndUpdate.
164         (WebCore::CharacterData::appendData): Ditto.
165         (WebCore::CharacterData::insertData): Ditto.
166         (WebCore::CharacterData::deleteData): Ditto.
167         (WebCore::CharacterData::replaceData): Ditto.
168         (WebCore::CharacterData::setDataAndUpdate): Added newLegnth to the argument list,
169         and renamed lengthOfReplacedData to oldLength; calls textWillBeReplaced.
170         * dom/CharacterData.h:
171         * editing/SelectionController.cpp:
172         (WebCore::removingNodeRemovesPosition): Removed indentations from blank lines.
173         (WebCore::SelectionController::nodeWillBeRemoved): Calls nodeWillBeRemoved.
174         (WebCore::SelectionController::respondToNodeModification): Extracted from nodeWillBeRemoved;
175         fixed the logic to figure out whether a node is inside the range or not.
176         (WebCore::shouldRemovePositionAfterAdoptingTextReplacement): Added.
177         (WebCore::SelectionController::textWillBeReplaced): Added.
178         * editing/SelectionController.h:
179
180 2010-12-23  Adam Barth  <abarth@webkit.org>
181
182         Reviewed by Darin Adler.
183
184         Remove unneeded V8 bindings files
185         https://bugs.webkit.org/show_bug.cgi?id=51570
186
187         * WebCore.gypi:
188         * bindings/generic/BindingDOMWindow.h: Removed.
189         * bindings/v8/specialization/V8BindingDOMWindow.h: Removed.
190
191 2010-12-23  Dan Bernstein  <mitz@apple.com>
192
193         Build fix.
194
195         * editing/EditorCommand.cpp:
196         (WebCore::enabledDismissCorrectionPanel):
197
198 2010-12-23  Darin Adler  <darin@apple.com>
199
200         Try to fix crash seen on GTK bot.
201
202         * editing/EditorCommand.cpp:
203         (WebCore::internalCommand): Add back empty string check I accidentally deleted in r74580.
204
205         * WebCore.xcodeproj/project.pbxproj: Let Xcode edit the file.
206
207 2010-12-23  Sheriff Bot  <webkit.review.bot@gmail.com>
208
209         Unreviewed, rolling out r74561.
210         http://trac.webkit.org/changeset/74561
211         https://bugs.webkit.org/show_bug.cgi?id=51565
212
213         "Broke Chromium UI tests on Vista" (Requested by kbr_google on
214         #webkit).
215
216         * platform/graphics/chromium/ImageLayerChromium.cpp:
217         (WebCore::ImageLayerChromium::updateContentsIfDirty):
218         * platform/graphics/skia/GraphicsContext3DSkia.cpp:
219         (WebCore::GraphicsContext3D::getImageData):
220
221 2010-12-23  Mihai Parparita  <mihaip@chromium.org>
222
223         Reviewed by Kent Tamura.
224
225         [Chromium] Add WebThemeEngine for Mac to allow scrollbar rendering to be overridden for the DRT
226         https://bugs.webkit.org/show_bug.cgi?id=51507
227         
228         Adds WebThemeEngine for the Mac (it already has parallel definitions for
229         Windows and Linux) so that scrollbar thumb rendering can be overridden
230         for the DRT (to be consistent with the NSScroller-based rendering
231         used by the Mac port).
232
233         No new tests since the functionality is not exposed yet. Eventually will
234         result in the Chromium/Mac port being able to use the same pixel
235         baselines for layout tests as the Mac port.
236
237         * platform/chromium/ChromiumBridge.h:
238         * platform/chromium/ScrollbarThemeChromiumMac.mm:
239         (WebCore::scrollbarStateToThemeState):
240         (WebCore::ScrollbarThemeChromiumMac::paint):
241
242 2010-12-23  Darin Adler  <darin@apple.com>
243
244         Reviewed by Sam Weinig.
245
246         WKView should not try to do asynchronous validation for selectors that are not editor commands
247         https://bugs.webkit.org/show_bug.cgi?id=51555
248
249         * WebCore.exp.in: Added commandIsSupportedFromMenuOrKeyBinding.
250         * editing/Editor.h: Reordered arguments in the Editor::Command constructor
251         and the data members too so the frame is last. Added
252         commandIsSupportedFromMenuOrKeyBinding.
253
254         * editing/EditorCommand.cpp:
255         (WebCore::supported): Removed the EditorCommandSource argument. These
256         functions are now only used when called from DOM.
257         (WebCore::supportedFromMenuOrKeyBinding): Ditto.
258         (WebCore::supportedCopyCut): Ditto.
259         (WebCore::supportedPaste): Ditto.
260         (WebCore::enabledDismissCorrectionPanel): Changed the supported function to
261         an enabled function. It was incorrect to say that this is "supported" only
262         when the correction panel is up. Correct to say that it is "enabled" only
263         then. And also probably OK to enable it even when the selection is not in
264         editable text, as long as the panel is up.
265         (WebCore::createCommandMap): Moved conditional commands out of the main
266         array into a separate section at the end.
267         (WebCore::internalCommand): Added.
268         (WebCore::Editor::command): Changed to use the new internalCommand function
269         and simplified by relying on the null check in the Command constructor.
270         (WebCore::Editor::commandIsSupportedFromMenuOrKeyBinding): Added.
271         (WebCore::Editor::Command::Command): Removed unneeded initialization of
272         m_source, which is never looked at if m_command is 0. Added feature of
273         passing a null command pointer to the non-default constructor.
274         (WebCore::Editor::Command::isSupported): Changed to only call the
275         per-command isSupported function when the command source is DOM.
276         Accordingly that function is now called isSupportedFromDOM.
277
278 2010-12-23  Matthew Delaney  <mdelaney@apple.com>
279
280         Reviewed by Simon Fraser.
281
282         Incorrect layer property used noted as changed in GraphicsLayerCA::setAcceleratesDrawing
283         https://bugs.webkit.org/show_bug.cgi?id=51560
284
285         No new tests.
286
287         * platform/graphics/ca/GraphicsLayerCA.cpp:
288         (WebCore::GraphicsLayerCA::setAcceleratesDrawing):
289
290 2010-12-23  Jan Erik Hanssen  <jhanssen@sencha.com>
291
292         Reviewed by Andreas Kling.
293
294         [Qt] copy and paste greek symbols to Word, TextEdit results in ?'s being shown
295         https://bugs.webkit.org/show_bug.cgi?id=35635
296
297         Explicitly set text/html data on QClipboard as UTF-8 and also include a <meta>
298         tag informing the OS that the data is in UTF-8 format.
299
300         * platform/qt/PasteboardQt.cpp:
301         (WebCore::Pasteboard::writeSelection):
302
303 2010-12-23  Justin Schuh  <jschuh@chromium.org>
304
305         Reviewed by Eric Seidel.
306
307         CSSCursorImageValue destructor should clear referenced element.
308         https://bugs.webkit.org/show_bug.cgi?id=51417
309
310         Calls correct method to clear image and renames method to avoid future confusion.
311
312         Test: svg/css/cursor-image-replace.svg
313
314         * css/CSSCursorImageValue.cpp:
315         (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
316         * svg/SVGElement.cpp:
317         (WebCore::SVGElement::cursorImageValueRemoved):
318         * svg/SVGElement.h:
319
320 2010-12-22  Sam Weinig  <sam@webkit.org>
321
322         Reviewed by Darin Adler.
323
324         WebKit2 needs to mirror the frame tree in the UIProcess
325         https://bugs.webkit.org/show_bug.cgi?id=51546
326
327         - Add client functions to notify that a frame has been added or
328           removed from the page cache.
329
330         * history/CachedFrame.cpp:
331         (WebCore::CachedFrameBase::restore):
332         (WebCore::CachedFrame::CachedFrame):
333         * history/CachedFrame.h:
334         * loader/EmptyClients.h:
335         (WebCore::EmptyFrameLoaderClient::didSaveToPageCache):
336         (WebCore::EmptyFrameLoaderClient::didRestoreFromPageCache):
337         * loader/FrameLoaderClient.h:
338
339 2010-12-22  Matthew Delaney  <mdelaney@apple.com>
340
341         Reviewed by Simon Fraser.
342
343         Add setNeedsStyleRecalc for getting canvas contexts that use IOSurfaces
344         This patch also changes USE_IOSURFACE to instead follow USE(IOSURFACE)
345         https://bugs.webkit.org/show_bug.cgi?id=51279
346
347         * html/HTMLCanvasElement.cpp: For IOSurface, use setNeedsStyleRecalc
348         * html/canvas/CanvasRenderingContext2D.cpp: Use new flag
349         * platform/graphics/ImageBuffer.h: Use new flag
350         * platform/graphics/cg/ImageBufferCG.cpp: Use new flag
351
352 2010-12-20  Adrienne Walker  <enne@google.com>
353
354         Reviewed by Kenneth Russell.
355
356         [chromium] Tile root layer of the compositor.
357         https://bugs.webkit.org/show_bug.cgi?id=49947
358
359         Refactor root layer update and drawing from LayerRendererChromium into
360         LayerTilerChromium.  The root layer is now drawn as multiple tiles
361         rather than as one single large texture.  Scrollbars are now drawn
362         separately rather than as part of the root layer.
363
364         Test: LayoutTests/compositing/
365
366         * WebCore.gypi:
367         * page/FrameView.cpp:
368         (WebCore::FrameView::repaintContentRectangle):
369         * platform/ScrollView.cpp:
370         (WebCore::ScrollView::ScrollView):
371         (WebCore::ScrollView::setClipsRepaints):
372         * platform/ScrollView.h:
373         (WebCore::ScrollView::clipsRepaints):
374         * platform/graphics/chromium/LayerChromium.h:
375         * platform/graphics/chromium/LayerRendererChromium.cpp:
376         (WebCore::LayerRendererChromium::LayerRendererChromium):
377         (WebCore::LayerRendererChromium::~LayerRendererChromium):
378         (WebCore::LayerRendererChromium::useShader):
379         (WebCore::LayerRendererChromium::verticalScrollbarRect):
380         (WebCore::LayerRendererChromium::horizontalScrollbarRect):
381         (WebCore::LayerRendererChromium::invalidateRootLayerRect):
382         (WebCore::LayerRendererChromium::updateAndDrawRootLayer):
383         (WebCore::LayerRendererChromium::drawLayers):
384         (WebCore::LayerRendererChromium::setRootLayer):
385         (WebCore::LayerRendererChromium::initializeSharedObjects):
386         (WebCore::LayerRendererChromium::cleanupSharedObjects):
387         * platform/graphics/chromium/LayerRendererChromium.h:
388         * platform/graphics/chromium/LayerTilerChromium.cpp: Added.
389         (WebCore::LayerTilerChromium::create):
390         (WebCore::LayerTilerChromium::LayerTilerChromium):
391         (WebCore::LayerTilerChromium::~LayerTilerChromium):
392         (WebCore::LayerTilerChromium::layerRendererContext):
393         (WebCore::LayerTilerChromium::setTileSize):
394         (WebCore::LayerTilerChromium::reset):
395         (WebCore::LayerTilerChromium::createTile):
396         (WebCore::LayerTilerChromium::invalidateTiles):
397         (WebCore::LayerTilerChromium::contentRectToTileIndices):
398         (WebCore::LayerTilerChromium::contentRectToLayerRect):
399         (WebCore::LayerTilerChromium::layerRectToContentRect):
400         (WebCore::LayerTilerChromium::tileIndex):
401         (WebCore::LayerTilerChromium::tileContentRect):
402         (WebCore::LayerTilerChromium::tileLayerRect):
403         (WebCore::LayerTilerChromium::invalidateRect):
404         (WebCore::LayerTilerChromium::invalidateEntireLayer):
405         (WebCore::LayerTilerChromium::update):
406         (WebCore::LayerTilerChromium::setLayerPosition):
407         (WebCore::LayerTilerChromium::draw):
408         (WebCore::LayerTilerChromium::resizeLayer):
409         (WebCore::LayerTilerChromium::growLayerToContain):
410         (WebCore::LayerTilerChromium::Tile::~Tile):
411         (WebCore::LayerTilerChromium::Tile::releaseTextureId):
412         * platform/graphics/chromium/LayerTilerChromium.h: Added.
413         (WebCore::LayerTilerChromium::Tile::Tile):
414         (WebCore::LayerTilerChromium::Tile::textureId):
415         (WebCore::LayerTilerChromium::Tile::dirty):
416         (WebCore::LayerTilerChromium::Tile::clearDirty):
417         (WebCore::LayerTilerChromium::layerRenderer):
418
419 2010-12-22  Ryosuke Niwa  <rniwa@webkit.org>
420
421         Reviewed by Eric Seidel.
422
423         Editor.h doesn't need to include SelectionController.h
424         https://bugs.webkit.org/show_bug.cgi?id=51441
425
426         Removed #include <Selection.h> from Editor.h.
427         Also extracted WritingDirection.h from EditingStyle.h and renamed SelectionController::EDirection
428         to SelectionDirection and moved its declaration from SelectionController.h to VisibleSelection.h
429
430         * WebCore.exp.in: Signature changes.
431         * WebCore.xcodeproj/project.pbxproj: Added WritingDirection.h
432         * accessibility/AccessibilityRenderObject.cpp:
433         (WebCore::AccessibilityRenderObject::visiblePositionRangeForLine): Change due to SelectionDirection.
434         * editing/EditingStyle.h: Removed WritingDirection and included WritingDirection.h
435         * editing/Editor.cpp:
436         (WebCore::Editor::deleteWithDirection): Change due to SelectionDirection.
437         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): Ditto.
438         (WebCore::Editor::markMisspellingsAfterTypingToWord): Ditto.
439         * editing/Editor.h: Removed SelectionController.h; added DocumentMarker.h, Timer.h, VisibleSelection.h
440         and WritingDirection.h; forward declared CSSMutableStyleDeclaration.
441         * editing/EditorCommand.cpp:
442         (WebCore::executeDeleteBackward): Change due to SelectionDirection.
443         (WebCore::executeDeleteBackwardByDecomposingPreviousCharacter): Ditto.
444         (WebCore::executeDeleteForward): Ditto.
445         (WebCore::executeDeleteToBeginningOfLine): Ditto.
446         (WebCore::executeDeleteToBeginningOfParagraph): Ditto.
447         (WebCore::executeDeleteToEndOfLine): Ditto.
448         (WebCore::executeDeleteToEndOfParagraph): Ditto.
449         (WebCore::executeDeleteWordBackward): Ditto.
450         (WebCore::executeDeleteWordForward): Ditto.
451         (WebCore::executeForwardDelete): Ditto.
452         (WebCore::executeMoveBackward): Ditto.
453         (WebCore::executeMoveBackwardAndModifySelection): Ditto.
454         (WebCore::executeMoveDown): Ditto.
455         (WebCore::executeMoveDownAndModifySelection): Ditto.
456         (WebCore::executeMoveForward): Ditto.
457         (WebCore::executeMoveForwardAndModifySelection): Ditto.
458         (WebCore::executeMoveLeft): Ditto.
459         (WebCore::executeMoveLeftAndModifySelection): Ditto.
460         (WebCore::executeMoveRight): Ditto.
461         (WebCore::executeMoveRightAndModifySelection): Ditto.
462         (WebCore::executeMoveToBeginningOfDocument): Ditto.
463         (WebCore::executeMoveToBeginningOfDocumentAndModifySelection): Ditto.
464         (WebCore::executeMoveToBeginningOfLine): Ditto.
465         (WebCore::executeMoveToBeginningOfLineAndModifySelection): Ditto.
466         (WebCore::executeMoveToBeginningOfParagraph): Ditto.
467         (WebCore::executeMoveToBeginningOfParagraphAndModifySelection): Ditto.
468         (WebCore::executeMoveToBeginningOfSentence): Ditto.
469         (WebCore::executeMoveToBeginningOfSentenceAndModifySelection): Ditto.
470         (WebCore::executeMoveToEndOfDocument): Ditto.
471         (WebCore::executeMoveToEndOfDocumentAndModifySelection): Ditto.
472         (WebCore::executeMoveToEndOfSentence): Ditto.
473         (WebCore::executeMoveToEndOfSentenceAndModifySelection): Ditto.
474         (WebCore::executeMoveToEndOfLine): Ditto.
475         (WebCore::executeMoveToEndOfLineAndModifySelection): Ditto.
476         (WebCore::executeMoveToEndOfParagraph): Ditto.
477         (WebCore::executeMoveToEndOfParagraphAndModifySelection): Ditto.
478         (WebCore::executeMoveParagraphBackwardAndModifySelection): Ditto.
479         (WebCore::executeMoveParagraphForwardAndModifySelection): Ditto.
480         (WebCore::executeMoveUp): Ditto.
481         (WebCore::executeMoveUpAndModifySelection): Ditto.
482         (WebCore::executeMoveWordBackward): Ditto.
483         (WebCore::executeMoveWordBackwardAndModifySelection): Ditto.
484         (WebCore::executeMoveWordForward): Ditto.
485         (WebCore::executeMoveWordForwardAndModifySelection): Ditto.
486         (WebCore::executeMoveWordLeft): Ditto.
487         (WebCore::executeMoveWordLeftAndModifySelection): Ditto.
488         (WebCore::executeMoveWordRight): Ditto.
489         (WebCore::executeMoveWordRightAndModifySelection): Ditto.
490         (WebCore::executeMoveToLeftEndOfLine): Ditto.
491         (WebCore::executeMoveToLeftEndOfLineAndModifySelection): Ditto.
492         (WebCore::executeMoveToRightEndOfLine): Ditto.
493         (WebCore::executeMoveToRightEndOfLineAndModifySelection): Ditto.
494         * editing/SelectionController.cpp:
495         (WebCore::SelectionController::willBeModified): Takes SelectionDirection instead of EDirection.
496         (WebCore::SelectionController::modify): Ditto.
497         * editing/SelectionController.h: Change due to SelectionDirection.
498         * editing/TypingCommand.cpp:
499         (WebCore::TypingCommand::deleteKeyPressed): Ditto.
500         (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
501         * editing/VisibleSelection.h: Added SelectionDirection, renamed and moved from EDirection
502         in SelectionController.h
503         * editing/WritingDirection.h: Added.
504         * page/DOMSelection.cpp:
505         (WebCore::DOMSelection::modify): Change due to SelectionDirection.
506         (WebCore::DOMSelection::deleteFromDocument): Ditto.
507         * page/EventHandler.cpp:
508         (WebCore::EventHandler::handleKeyboardSelectionMovement): Ditto.
509         * page/Frame.h: Includes SelectionController.h.
510
511 2010-12-23  Adam Barth  <abarth@webkit.org>
512
513         Reviewed by Darin Adler.
514
515         Move V8 to WebCore's implementation of showModalDialog
516         https://bugs.webkit.org/show_bug.cgi?id=51527
517
518         This code is basically verbatim translation from the JavaScriptCore
519         bindings.  The only intentional difference is in the world selection
520         for the dialog's frame.  I suspect JavaScriptCore's bindings have a
521         subtle bug there.
522
523         In this patch, I also remove a bunch of now-unneeded code in the
524         generic bindings.
525
526         * bindings/generic/BindingDOMWindow.h:
527         * bindings/js/JSDOMWindowCustom.cpp:
528         (WebCore::DialogHandler::dialogCreated):
529         (WebCore::setUpDialog):
530         * bindings/v8/custom/V8DOMWindowCustom.cpp:
531         (WebCore::DialogHandler::DialogHandler):
532         (WebCore::DialogHandler::dialogCreated):
533         (WebCore::DialogHandler::returnValue):
534         (WebCore::setUpDialog):
535         (WebCore::V8DOMWindow::showModalDialogCallback):
536         (WebCore::V8DOMWindow::openCallback):
537         * bindings/v8/specialization/V8BindingDOMWindow.h:
538
539 2010-12-23  Alexander Pavlov  <apavlov@chromium.org>
540
541         Reviewed by Joseph Pecoraro.
542
543         Web Inspector: Can't backspace from CSS value to CSS key field
544         https://bugs.webkit.org/show_bug.cgi?id=51476
545
546         * inspector/front-end/StylesSidebarPane.js:
547         (WebInspector.StylePropertyTreeElement.prototype.):
548         (WebInspector.StylePropertyTreeElement.prototype):
549
550 2010-12-23  W. James MacLean  <wjmaclean@chromium.org>
551
552         Reviewed by Kenneth Russell.
553
554         [chromium] Add asserts to test for contiguous-pixel Skia bitmaps.
555         https://bugs.webkit.org/show_bug.cgi?id=51186
556
557         No new tests. Behaviour not changed, but need the asserts to detect when assumptions violated.
558
559         * platform/graphics/chromium/ImageLayerChromium.cpp:
560         (WebCore::ImageLayerChromium::updateContentsIfDirty):
561         * platform/graphics/skia/GraphicsContext3DSkia.cpp:
562         (WebCore::GraphicsContext3D::getImageData):
563
564 2010-12-23  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
565
566         Reviewed by Kenneth Rohde Christiansen.
567
568         Fix check by undefined macro
569         https://bugs.webkit.org/show_bug.cgi?id=51531
570
571         Fix check by undefined macro
572
573         When building EFL port with libsoup, BUILDING_GTK__ is not defined,
574         leading to warnings during compile. We actually have to use an #ifdef
575         instead of an #if.
576
577         No change in functionality so no new tests.
578
579         * platform/network/soup/cache/webkit/soup-cache.h:
580
581 2010-12-23  Jonathan Dixon  <joth@chromium.org>
582
583         Reviewed by Steve Block.
584
585         TouchEvents does not support multi-touch on a page with multiple touch targets
586         https://bugs.webkit.org/show_bug.cgi?id=51258
587
588         Test: fast/events/touch/multi-touch-grouped-targets.html
589
590         * page/EventHandler.cpp:
591         (WebCore::eventNameForTouchPointState):
592         (WebCore::EventHandler::handleTouchEvent):
593         Redesigned event handler to ensure all event targets involved in a given
594         multitouch event get the appropriate event(s) fired.
595
596         * platform/PlatformTouchPoint.h: Added end-stop marker for State enum.
597
598 2010-12-23  Philippe Normand  <pnormand@igalia.com>
599
600         Reviewed by Xan Lopez.
601
602         [GTK] media/audio-data-url.html fails since r75504
603         https://bugs.webkit.org/show_bug.cgi?id=51525
604
605         Make the GStreamer media-player advertize 3gpp mime-types as
606         supported if the 3gp caps are in the typefind factories.
607
608         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
609         (WebCore::mimeTypeCache):
610
611 2010-12-23  Kent Tamura  <tkent@chromium.org>
612
613         Reviewed by Dimitri Glazkov.
614
615         Refactor HTMLInputElement: Move a part of HTMLInputElement::defaultEventHandler()
616         to InputTypes.
617         https://bugs.webkit.org/show_bug.cgi?id=51093
618
619         Move BeforeTextInserted and Wheel event handling, event forwarding to
620         renderers, and the isindex form submission quirk code to InputTypes.
621         Also, change the return types of InputType event handlers from 'bool'
622         to 'void'. We use Event::defaultHandled() to decide whether event
623         handling should be stopped.
624
625         No new tests because this is just a refactoring.
626
627         * html/BaseButtonInputType.cpp: bool->void changes
628         (WebCore::BaseButtonInputType::handleKeydownEvent):
629         (WebCore::BaseButtonInputType::handleKeypressEvent):
630         (WebCore::BaseButtonInputType::handleKeyupEvent):
631         * html/BaseButtonInputType.h: ditto.
632         * html/BaseCheckableInputType.cpp: ditto.
633         (WebCore::BaseCheckableInputType::handleKeydownEvent):
634         (WebCore::BaseCheckableInputType::handleKeypressEvent):
635         * html/BaseCheckableInputType.h: ditto.
636         * html/BaseDateAndTimeInputType.cpp:
637         (WebCore::BaseDateAndTimeInputType::handleKeydownEvent): ditto.
638         (WebCore::BaseDateAndTimeInputType::handleWheelEvent): Just calls handleWheelEventForSpinButton().
639         * html/BaseDateAndTimeInputType.h: bool->void change and handleWhellEvent() addition.
640         * html/CheckboxInputType.cpp: bool->void change
641         (WebCore::CheckboxInputType::handleKeyupEvent):
642         * html/CheckboxInputType.h: ditto.
643         * html/FileInputType.cpp: ditto.
644         (WebCore::FileInputType::handleDOMActivateEvent):
645         * html/FileInputType.h: ditto.
646         * html/HTMLInputElement.cpp:
647         (WebCore::HTMLInputElement::defaultEventHandler):
648          - Change return-value handling of InputType event handlers
649          - Move out beforeTextInserted/wheel event handling and isindex form quirk.
650         * html/HTMLInputElement.h:
651         (WebCore::HTMLInputElement::handleBeforeTextInsertedEvent):
652          Added so that InputType can call InputElement::handleBeforeTextInsertedEvent().
653         * html/ImageInputType.cpp: bool->void change
654         (WebCore::ImageInputType::handleDOMActivateEvent):
655         * html/ImageInputType.h: ditto.
656         * html/InputType.cpp: ditto.
657         (WebCore::InputType::handleClickEvent):
658         (WebCore::InputType::handleDOMActivateEvent):
659         (WebCore::InputType::handleKeydownEvent):
660         (WebCore::InputType::handleKeypressEvent):
661         (WebCore::InputType::handleKeyupEvent):
662         (WebCore::InputType::handleBeforeTextInsertedEvent):
663         (WebCore::InputType::handleWheelEvent): Added default implementation.
664         (WebCore::InputType::forwardEvent): ditto.
665         (WebCore::InputType::formForSubmission): ditto.
666         * html/InputType.h:
667         * html/IsIndexInputType.cpp:
668         (WebCore::IsIndexInputType::formForSubmission): Moved from HTMLInputElement.cpp.
669         * html/IsIndexInputType.h:
670         * html/NumberInputType.cpp:
671         (WebCore::isNumberCharacter): Moved from HTMLInputElement.cpp.
672         (WebCore::NumberInputType::handleKeydownEvent): bool->void change.
673         (WebCore::NumberInputType::handleBeforeTextInsertedEvent): Moved from HTMInputElement.cpp.
674         (WebCore::NumberInputType::handleWheelEvent): Added. Just calls handleWheelEventForSpinButton().
675         * html/NumberInputType.h:
676         * html/RadioInputType.cpp: bool->void changes.
677         (WebCore::RadioInputType::handleClickEvent):
678         (WebCore::RadioInputType::handleKeydownEvent):
679         (WebCore::RadioInputType::handleKeyupEvent):
680         * html/RadioInputType.h:
681         * html/RangeInputType.cpp:
682         (WebCore::RangeInputType::handleKeydownEvent): ditto.
683         (WebCore::RangeInputType::forwardEvent): Moved from HTMLInputElement.cpp.
684         * html/RangeInputType.h:
685         * html/ResetInputType.cpp: bool->void change.
686         (WebCore::ResetInputType::handleDOMActivateEvent):
687         * html/ResetInputType.h: ditto.
688         * html/SubmitInputType.cpp: ditto.
689         (WebCore::SubmitInputType::handleDOMActivateEvent):
690         * html/SubmitInputType.h: ditto.
691         * html/TextFieldInputType.cpp:
692         (WebCore::TextFieldInputType::handleKeydownEvent): bool->void change.
693         (WebCore::TextFieldInputType::handleKeydownEventForSpinButton): ditto.
694         (WebCore::TextFieldInputType::handleWheelEventForSpinButton): Moved from HTMLInputElement.cpp.
695         (WebCore::TextFieldInputType::forwardEvent): ditto.
696         * html/TextFieldInputType.h:
697
698 2010-12-23  Alexander Pavlov  <apavlov@chromium.org>
699
700         Reviewed by Joseph Pecoraro.
701
702         Web Inspector: After scrolling new property value and cancelling, removed property remains active in page style
703         https://bugs.webkit.org/show_bug.cgi?id=51390
704
705         * inspector/front-end/StylesSidebarPane.js:
706         (WebInspector.StylePropertyTreeElement.prototype):
707
708 2010-12-23  Noel Gordon  <noel.gordon@gmail.com>
709
710         Reviewed by Adam Barth.
711
712         [chromium] Reduce canvas.toDataURL("image/png") run-time costs 300%
713         https://bugs.webkit.org/show_bug.cgi?id=51455
714
715         Chromium uses the libpng compression defaults.  Good compression results,
716         but at much larger run-time cost compared to other browsers.  Chrome is 2
717         times slower than Mozilla 3.6.12 and 3-4 times slower than Safari 5.0.3.
718
719         libpng has supported alternative compression methods for some time, they
720         better meet the dual goals of good compression and run-time cost for the
721         on-line case, and are well-documented.  Here use Huffman encoding.  It's
722         2-20% faster than other encodings (Z_RLE, Z_FILTERED) and the compressed
723         size is within 1% of the Safari 5.0.3 result independent of image size.
724
725         No change in behaviour, so no new tests.
726
727         * platform/image-encoders/skia/PNGImageEncoder.cpp:
728         (WebCore::PNGImageEncoder::encode): Apply Huffman image encoding.
729
730 2010-12-22  Noel Gordon  <noel.gordon@gmail.com>
731
732         Reviewed by Darin Fisher.
733
734         [chromium] Optimize canvas.toDataURL("image/png") unpremultiplication loop
735         https://bugs.webkit.org/show_bug.cgi?id=51321
736
737         Follow on from r73890, unroll the SkUnPreMultiply::PMColorToColor() call for
738         the "image/png" encoder case viz., compute the unpremultiplication in-place.
739         See https://bugs.webkit.org/show_bug.cgi?id=50804 for reference.
740
741         No new tests: canvas.toDataURL() is covered by existing tests.
742
743         * platform/image-encoders/skia/PNGImageEncoder.cpp:
744         (WebCore::preMultipliedBGRAtoRGBA):
745
746 2010-12-22  Ariya Hidayat  <ariya@sencha.com>
747
748         Reviewed by Simon Fraser.
749
750         Implement skewX() and skewY() for CSSMatrix.
751         https://bugs.webkit.org/show_bug.cgi?id=38335
752
753         * css/WebKitCSSMatrix.cpp:
754         (WebCore::WebKitCSSMatrix::skew): Implemented skewX() and skewY().
755         * css/WebKitCSSMatrix.h: Added skewX() and skewY().
756         * css/WebKitCSSMatrix.idl: Added skewX() and skewY().
757
758 2010-12-22  Simon Fraser  <simon.fraser@apple.com>
759
760         Reviewed by Dan Bernstein.
761
762         Support unprefixed box-shadow property
763         https://bugs.webkit.org/show_bug.cgi?id=51448
764         
765         Add support for the box-shadow CSS property. We'll currently render this
766         similarly to -webkit-box-shadow, but a later fix will adjust the blur radius
767         handling to match the spec.
768
769         Test: fast/css/box-shadow.html
770
771         * css/CSSComputedStyleDeclaration.cpp:
772         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Implement getComputedStyle
773         for box-shadow
774         
775         * css/CSSParser.cpp:
776         (WebCore::CSSParser::parseValue):
777         (WebCore::ShadowParseContext::ShadowParseContext):
778         (WebCore::ShadowParseContext::commitValue):
779         (WebCore::ShadowParseContext::commitLength):
780         (WebCore::ShadowParseContext::commitColor): Support CSSPropertyBoxShadow
781
782         * css/CSSPropertyNames.in: add box-shadow
783
784         * css/CSSStyleSelector.cpp:
785         (WebCore::CSSStyleSelector::applyProperty): Add CSSPropertyBoxShadow, and
786         store in the ShadowData if this is -webkit-box-shadow or not. We'll use this
787         to adjust radii later.
788
789         * css/SVGCSSStyleSelector.cpp:
790         (WebCore::CSSStyleSelector::applySVGProperty): Add CSSPropertyBoxShadow.
791         
792         * page/animation/AnimationBase.cpp:
793         (WebCore::blendFunc):
794         (WebCore::PropertyWrapperShadow::blend):
795         (WebCore::AnimationBase::ensurePropertyMap): Support animations of box-shadow.
796         
797         * rendering/style/ShadowData.cpp: Store a flag to say if this is a -webkit-box-shadow.
798         (WebCore::ShadowData::ShadowData):
799         (WebCore::ShadowData::operator==):
800         * rendering/style/ShadowData.h:
801         (WebCore::ShadowData::ShadowData):
802         (WebCore::ShadowData::isWebkitBoxShadow):
803
804 2010-12-22  Michael Saboff  <msaboff@apple.com>
805
806         Reviewed by Sam Weinig.
807
808         REGRESSION: Can't shadow/overwrite window.constructor 
809         (causes TypeError exception)
810         https://bugs.webkit.org/show_bug.cgi?id=48953
811
812         Added code in the javascript code generator to create a setter for
813         a constructor if the new extended attribute ReplaceableConstructor
814         is present for the interface.
815
816         * bindings/scripts/CodeGeneratorJS.pm:
817         * page/DOMWindow.idl:
818
819 2010-12-22  Steve Lacey  <sjl@chromium.org>
820
821         Reviewed by David Levin.
822
823         Change css for chromium media controls to deal with the timeline
824         not expanding when the current time disappears. This happens when
825         the width of the control drops below 240px.
826
827         This change results in a minor pixel difference - the timebar now
828         aligns better with the time and when the time is not displayed is
829         now perfectly centered. Disabling the affected tests for now
830         and will rebaseline.
831
832         https://bugs.webkit.org/show_bug.cgi?id=51500
833
834         * css/mediaControlsChromium.css:
835         (audio::-webkit-media-controls-timeline-container, video::-webkit-media-controls-timeline-container):
836         (audio::-webkit-media-controls-current-time-display, video::-webkit-media-controls-current-time-display):
837         (audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-time-remaining-display):
838         (audio::-webkit-media-controls-timeline, video::-webkit-media-controls-timeline):
839
840 2010-12-22  Mihai Parparita  <mihaip@chromium.org>
841
842         Reviewed by Simon Fraser.
843
844         the shadow direction is negated in canvas context shadowOffsetY.
845         https://bugs.webkit.org/show_bug.cgi?id=25619
846         
847         Invert shadow offset Y direction in 0-blur path in FontMac::drawGlyps
848         if we're not transforming shadows (i.e. are rendering in a canvas). Also
849         use CG shadows if there's a non-translate/flip transform applied
850         (shadow offsets are supposed to ignore transforms, but the naive/simple
851         implementation was taking them into account).
852         
853         Also does the equivalent changes to FontCGWin.
854
855         Test: fast/canvas/fillText-shadow.html
856
857         * platform/graphics/GraphicsContext.cpp:
858         (WebCore::GraphicsContext::shadowsIgnoreTransforms):
859         * platform/graphics/GraphicsContext.h:
860         * platform/graphics/mac/FontMac.mm:
861         (WebCore::Font::drawGlyphs):
862         * platform/graphics/win/FontCGWin.cpp:
863         (WebCore::Font::drawGlyphs):
864
865 2010-12-22  Sheriff Bot  <webkit.review.bot@gmail.com>
866
867         Unreviewed, rolling out r74503.
868         http://trac.webkit.org/changeset/74503
869         https://bugs.webkit.org/show_bug.cgi?id=51513
870
871         breaks chromium mac debug compile (Requested by tonyg-cr on
872         #webkit).
873
874         * platform/graphics/chromium/ImageLayerChromium.cpp:
875         (WebCore::ImageLayerChromium::updateContentsIfDirty):
876         * platform/graphics/skia/GraphicsContext3DSkia.cpp:
877         (WebCore::GraphicsContext3D::getImageData):
878
879 2010-12-22  Dan Bernstein  <mitz@apple.com>
880
881         Reviewed by Darin Adler.
882
883         Replace runtime checks for hyphenation API availability with compile-time checks.
884
885         * platform/text/cf/HyphenationCF.cpp:
886         (WebCore::::createValueForNullKey): Changed to use CFLocaleCopyCurrent() instead of using the
887         search locale, which is empty on Windows. On Mac, this is equivalent to using the search locale.
888         (WebCore::canHyphenate): Added this implementation for when the hyphenation API is not available.
889         It is identical to the implementation in Hyphenation.cpp.
890         (WebCore::lastHyphenLocation): Ditto.
891
892 2010-12-22  Simon Fraser  <simon.fraser@apple.com>
893
894         Reviewed by Darin Adler.
895
896         Cache snapshots of plug-ins before painting, to avoid script running during painting
897         https://bugs.webkit.org/show_bug.cgi?id=51493
898         
899         When FrameView is asked to do a flattening paint (e.g. when Safari snapshots,
900         or when printing), plug-ins which otherwise use the CA rendering model
901         are sent a paint event. Some plug-ins may run script while handling this event,
902         or out of process plug-ins may process queued requests at this time. Running
903         script while inside layout or painting can have bad consequences, because it
904         can result in arbitrary changes to the render tree.
905         
906         This patch avoids sending plug-ins paint events inside of painting. Instead,
907         we ask the plug-ins to cache a snapshot before we paint, and then the software
908         paint simply draws that snapshot.
909         
910         Requires manual test, because the bug happens when Safari does
911         a page snapshot. It's not possible to tell the Test Netscape Plug-in
912         to paint without laying out, making an automated test impossible.
913
914         * manual-tests/plugins/plugin-paint-causes-layout.html: Added.
915
916         * page/FrameView.h:
917         * page/FrameView.cpp:
918         (WebCore::FrameView::paintContents): Notify all enclosed widgets
919         that a flattening paint is going to happen.
920         (WebCore::FrameView::notifyWidgetsInAllFrames): Utility method 
921         that tells the RenderView in all subframes to notify their widgets.
922
923         * platform/Widget.h:
924         (WebCore::Widget::notifyWidget): Generic method that can be used
925         to send messages to widgets. Current messages are just 'before flattening paint'
926         and 'after flattening paint'. Message has no payload.
927
928         * rendering/RenderView.h:
929         * rendering/RenderView.cpp:
930         (WebCore::RenderView::getRetainedWidgets):
931         (WebCore::RenderView::releaseWidgets): Factor code out of updateWidgetPositions(),
932         since we use it in two places now.
933         
934         (WebCore::RenderView::updateWidgetPositions): Use getRetainedWidgets() etc.
935         (WebCore::RenderView::notifyWidgets): Retain all the widgets, then send
936         them all the message.
937
938         * rendering/RenderWidget.h:
939         * rendering/RenderWidget.cpp:
940         (WebCore::RenderWidget::notifyWidget): Pass the message to the widget.
941
942 2010-12-22  Adrienne Walker  <enne@google.com>
943
944         Reviewed by Kenneth Russell.
945
946         Fix null pointer deref when restoring a lost WebGL context.
947         https://bugs.webkit.org/show_bug.cgi?id=51494
948
949         No new tests, as context restored events are not currently testable.
950
951         * html/canvas/WebGLRenderingContext.cpp:
952         (WebCore::WebGLRenderingContext::initializeNewContext):
953         (WebCore::WebGLRenderingContext::restoreContext):
954
955 2010-12-22  Adam Bergkvist  <adam.bergkvist@ericsson.com>
956
957         Reviewed by Martin Robinson.
958
959         [GTK] Building with Blob support fails again
960         https://bugs.webkit.org/show_bug.cgi?id=51392
961
962         Build fix.
963
964         * GNUmakefile.am:
965
966 2010-12-22  Dan Bernstein  <mitz@apple.com>
967
968         Reviewed by Anders Carlsson.
969
970         canHyphenate() always returns true for the default locale
971         https://bugs.webkit.org/show_bug.cgi?id=51506
972
973         No test, since this change only affects performance.
974
975         * platform/text/cf/HyphenationCF.cpp:
976         (WebCore::::createValueForNullKey): Return 0 if hyphenation is not supported for the default locale.
977         (WebCore::::createValueForKey): Removed whitespace.
978
979 2010-12-22  Yury Semikhatsky  <yurys@chromium.org>
980
981         Reviewed by Joseph Pecoraro.
982
983         Web Inspector: script name gets parsed as HTML in Call stack panel
984         https://bugs.webkit.org/show_bug.cgi?id=51468
985
986         * inspector/front-end/Placard.js:
987         (WebInspector.Placard.prototype.set subtitle):
988
989 2010-12-22  Eric Carlson  <eric.carlson@apple.com>
990
991         Reviewed by Darin Adler.
992
993         MediaPlayer should look for MIME type in data: URL
994         https://bugs.webkit.org/show_bug.cgi?id=51195
995
996         If no MIME type is passed from the media element for a data: URL, try to get it from
997         the URL itself.
998
999         No new tests are possible because the MIME type is just passed to the media engine.
1000
1001         * platform/graphics/MediaPlayer.cpp:
1002         (WebCore::MediaPlayer::load):
1003
1004 2010-12-22  W. James MacLean  <wjmaclean@chromium.org>
1005
1006         Reviewed by Kenneth Russell.
1007
1008         [chromium] Add asserts to test for contiguous-pixel Skia bitmaps.
1009         https://bugs.webkit.org/show_bug.cgi?id=51186
1010
1011         No new tests. Behaviour not changed, but need the asserts to detect when assumptions violated.
1012
1013         * platform/graphics/chromium/ImageLayerChromium.cpp:
1014         (WebCore::ImageLayerChromium::updateContentsIfDirty):
1015         * platform/graphics/skia/GraphicsContext3DSkia.cpp:
1016         (WebCore::GraphicsContext3D::getImageData):
1017
1018 2010-12-22  Chris Fleizach  <cfleizach@apple.com>
1019
1020         Reviewed by Darin Adler.
1021
1022         WAI-ARIA menubar role mapped to AXGroup, should be AXMenuBar
1023         https://bugs.webkit.org/show_bug.cgi?id=51488
1024
1025         Test: platform/mac/accessibility/aria-menubar.html
1026
1027         * accessibility/AccessibilityObject.cpp:
1028         (WebCore::createARIARoleMap):
1029
1030 2010-12-22  Zhenyao Mo  <zmo@google.com>
1031
1032         Reviewed by Kenneth Russell.
1033
1034         CopyTex{Sub}Image2D check always if the bound fbo's internal color format is compatible
1035         https://bugs.webkit.org/show_bug.cgi?id=51423
1036
1037         * html/canvas/WebGLRenderingContext.cpp:
1038         (WebCore::WebGLRenderingContext::copyTexImage2D): Remove the isGLES2Compliant flag around format compatibility checking.
1039         (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto.
1040         (WebCore::WebGLRenderingContext::getBoundFramebufferColorFormat): Helper function to get bound framebuffer's color format; deal with the case of webgl's internal fbo.
1041         * html/canvas/WebGLRenderingContext.h:
1042
1043 2010-12-22  Xan Lopez  <xlopez@igalia.com>
1044
1045         Reviewed by Gustavo Noronha.
1046
1047         [GTK] Compilation fixes with GTK+ 2.91.7
1048         https://bugs.webkit.org/show_bug.cgi?id=51487
1049
1050         * platform/gtk/GtkVersioning.h: do not define GDK_DISPLAY for
1051         backwards compatibility, it's now defined again in GTK+ 3.x.
1052         * platform/gtk/PasteboardHelper.cpp: do not call GDK functions to
1053         initialize global static variables (!). These are called when the
1054         .so is loaded, and they now require GType to be initialized and
1055         will crash. Initialize them once from the ctor, which is a more
1056         common pattern anyway.
1057         (WebCore::initGdkAtoms): new method to initialize static variables.
1058         (WebCore::PasteboardHelper::PasteboardHelper): call it.
1059         * plugins/gtk/PluginViewGtk.cpp: do not include gdkconfig.h when
1060         using GTK+ 3.x, since it's no longer installed.
1061
1062 2010-12-22  Dirk Schulze  <krit@wbekit.org>
1063
1064         Reviewed by Nikolas Zimmermann.
1065
1066         Cleanup SVG code according to the webkit style rules 2
1067         https://bugs.webkit.org/show_bug.cgi?id=51461
1068
1069         Second patch to fix indention and other style issues according to the WebKit style rules in the SVG code.
1070
1071         No changes of functionality, so no new tests. 
1072
1073         * svg/SVGFEDisplacementMapElement.cpp:
1074         (WebCore::SVGFEDisplacementMapElement::stringToChannel):
1075         * svg/SVGFEDistantLightElement.h:
1076         * svg/SVGFEFuncAElement.h:
1077         * svg/SVGFEFuncBElement.h:
1078         * svg/SVGFEFuncGElement.h:
1079         * svg/SVGFEFuncRElement.h:
1080         * svg/SVGFEMergeElement.cpp:
1081         (WebCore::SVGFEMergeElement::build):
1082         * svg/SVGFEMorphologyElement.cpp:
1083         * svg/SVGFEPointLightElement.h:
1084         * svg/SVGFESpecularLightingElement.cpp:
1085         (WebCore::SVGFESpecularLightingElement::findLights):
1086         * svg/SVGFESpotLightElement.h:
1087         * svg/SVGFitToViewBox.cpp:
1088         (WebCore::SVGFitToViewBox::parseViewBox):
1089         (WebCore::SVGFitToViewBox::isKnownAttribute):
1090         * svg/SVGFontFaceElement.cpp:
1091         (WebCore::cssPropertyIdForSVGAttributeName):
1092         * svg/SVGFontFaceElement.h:
1093         (WebCore::SVGFontFaceElement::associatedFontElement):
1094         * svg/SVGFontFaceNameElement.h:
1095         * svg/SVGFontFaceSrcElement.cpp:
1096         * svg/SVGFontFaceSrcElement.h:
1097         * svg/SVGFontFaceUriElement.h:
1098         * svg/SVGForeignObjectElement.h:
1099         * svg/SVGGlyphElement.cpp:
1100         (WebCore::parseArabicForm):
1101         (WebCore::parseOrientation):
1102         * svg/SVGGlyphElement.h:
1103         (WebCore::SVGGlyphIdentifier::SVGGlyphIdentifier):
1104         (WebCore::SVGGlyphIdentifier::inheritedValue):
1105         (WebCore::SVGGlyphIdentifier::operator==):
1106         (WebCore::SVGGlyphElement::rendererIsNeeded):
1107         * svg/SVGGlyphMap.h:
1108         (WebCore::GlyphMapNode::GlyphMapNode):
1109         (WebCore::GlyphMapNode::create):
1110         (WebCore::SVGGlyphMap::SVGGlyphMap):
1111         (WebCore::SVGGlyphMap::add):
1112         (WebCore::SVGGlyphMap::compareGlyphPriority):
1113         (WebCore::SVGGlyphMap::get):
1114         (WebCore::SVGGlyphMap::clear):
1115         * svg/SVGGradientElement.cpp:
1116         * svg/SVGHKernElement.cpp:
1117         * svg/SVGHKernElement.h:
1118         (WebCore::SVGHKernElement::rendererIsNeeded):
1119         * svg/SVGImageElement.h:
1120         * svg/SVGImageLoader.cpp:
1121         * svg/SVGImageLoader.h:
1122         * svg/SVGLangSpace.cpp:
1123         (WebCore::SVGLangSpace::parseMappedAttribute):
1124         (WebCore::SVGLangSpace::isKnownAttribute):
1125         * svg/SVGLangSpace.h:
1126         (WebCore::SVGLangSpace::xmllang):
1127         * svg/SVGMetadataElement.h:
1128         * svg/SVGMissingGlyphElement.h:
1129         (WebCore::SVGMissingGlyphElement::rendererIsNeeded):
1130         * svg/SVGPaint.cpp:
1131         (WebCore::SVGPaint::cssText):
1132         * svg/SVGPaint.h:
1133         (WebCore::SVGPaint::create):
1134         (WebCore::SVGPaint::paintType):
1135         (WebCore::SVGPaint::isSVGPaint):
1136         * svg/SVGParserUtilities.cpp:
1137         * svg/SVGParserUtilities.h:
1138         (WebCore::isWhitespace):
1139         (WebCore::skipOptionalSpaces):
1140         (WebCore::skipOptionalSpacesOrDelimiter):
1141         * svg/SVGPathElement.cpp:
1142         * svg/SVGPathParserFactory.h:
1143         * svg/SVGPathSegList.h:
1144
1145 2010-12-22  Chris Fleizach  <cfleizach@apple.com>
1146
1147         Reviewed by Sam Weinig.
1148
1149         AX: WAI-ARIA textbox role needs different AXRole, depending on value of aria-multiline property
1150         https://bugs.webkit.org/show_bug.cgi?id=51481
1151
1152         Support aria-multiline and use it to change the role of an ARIA "textbox" 
1153         from AXTextArea to AXTextField.
1154
1155         Test: platform/mac/accessibility/aria-multiline.html
1156
1157         * accessibility/AccessibilityObject.cpp:
1158         (WebCore::AccessibilityObject::ariaIsMultiline):
1159         * accessibility/AccessibilityObject.h:
1160         (WebCore::AccessibilityObject::isPasswordField):
1161         (WebCore::AccessibilityObject::isTextControl):
1162         * accessibility/AccessibilityRenderObject.cpp:
1163         (WebCore::AccessibilityRenderObject::determineAriaRoleAttribute):
1164         * accessibility/AccessibilityRenderObject.h:
1165         * html/HTMLAttributeNames.in:
1166
1167 2010-12-22  Simon Fraser  <simon.fraser@apple.com>
1168
1169         Reviewed by Dan Bernstein.
1170
1171         CSS 2.1 failure: counter-increment-013 fails
1172         https://bugs.webkit.org/show_bug.cgi?id=51483
1173         
1174         Clamp the counter-increment property to the valid range of signed
1175         integers.
1176
1177         Test: fast/css/counters/counter-increment-overflow.html
1178
1179         * css/CSSParser.cpp:
1180         (WebCore::clampToSignedInteger):
1181         (WebCore::CSSParser::parseCounter):
1182
1183 2010-12-22  Dan Bernstein  <mitz@apple.com>
1184
1185         Rubber-stamped by Mark Rowe.
1186
1187         Changed WebKitTools to Tools in script build phases.
1188
1189         * WebCore.xcodeproj/project.pbxproj:
1190
1191 2010-12-21  Vangelis Kokkevis  <vangelis@chromium.org>
1192
1193         Reviewed by Kenneth Russell.
1194
1195         [chromium] Fixing crash with empty render surfaces.
1196         https://bugs.webkit.org/show_bug.cgi?id=51432
1197
1198         Test: platform/chromium/compositing/empty-render-surface-crasher.html
1199
1200         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
1201         (WebCore::RenderSurfaceChromium::draw):
1202
1203 2010-12-21  Pavel Podivilov  <podivilov@chromium.org>
1204
1205         Reviewed by Yury Semikhatsky.
1206
1207         Web Inspector: persist JavaScript breakpoints in frontend settings.
1208         https://bugs.webkit.org/show_bug.cgi?id=48434
1209
1210         * bindings/js/ScriptDebugServer.cpp:
1211         (WebCore::ScriptDebugServer::setBreakpoint):
1212         (WebCore::ScriptDebugServer::removeBreakpoint):
1213         * bindings/js/ScriptDebugServer.h:
1214         * bindings/v8/DebuggerScript.js:
1215         ():
1216         * bindings/v8/ScriptDebugServer.cpp:
1217         (WebCore::ScriptDebugServer::setBreakpoint):
1218         (WebCore::ScriptDebugServer::removeBreakpoint):
1219         * bindings/v8/ScriptDebugServer.h:
1220         * inspector/Inspector.idl:
1221         * inspector/InspectorBackend.cpp:
1222         * inspector/InspectorController.cpp:
1223         (WebCore::InspectorController::InspectorController):
1224         (WebCore::InspectorController::enableDebuggerFromFrontend):
1225         (WebCore::InspectorController::setStickyBreakpoints):
1226         (WebCore::InspectorController::restoreStickyBreakpoint):
1227         * inspector/InspectorController.h:
1228         * inspector/InspectorDebuggerAgent.cpp:
1229         (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
1230         (WebCore::InspectorDebuggerAgent::setStickyBreakpoint):
1231         (WebCore::InspectorDebuggerAgent::setBreakpoint):
1232         (WebCore::InspectorDebuggerAgent::removeBreakpoint):
1233         (WebCore::InspectorDebuggerAgent::restoreBreakpoint):
1234         (WebCore::InspectorDebuggerAgent::clearForPageNavigation):
1235         (WebCore::InspectorDebuggerAgent::didParseSource):
1236         * inspector/InspectorDebuggerAgent.h:
1237         * inspector/front-end/Breakpoint.js:
1238         (WebInspector.Breakpoint):
1239         (WebInspector.Breakpoint.prototype.remove):
1240         * inspector/front-end/BreakpointManager.js:
1241         (WebInspector.BreakpointManager):
1242         (WebInspector.DOMBreakpoint.prototype._serializeToJSON):
1243         (WebInspector.JavaScriptBreakpoint):
1244         (WebInspector.XHRBreakpoint.prototype._serializeToJSON):
1245         * inspector/front-end/DebuggerModel.js:
1246         (WebInspector.DebuggerModel):
1247         * inspector/front-end/ScriptsPanel.js:
1248         (WebInspector.ScriptsPanel.prototype._debuggerPaused):
1249         * inspector/front-end/SourceFrame.js:
1250
1251 2010-12-20  Antti Koivisto  <antti@apple.com>
1252
1253         Reviewed by Alexey Proskuryakov.
1254
1255         https://bugs.webkit.org/show_bug.cgi?id=51354
1256         Don't block rendering and script execution on deferred stylesheets
1257         
1258         - Don't add low priority stylesheets to the document pending sheet count.
1259         - Resolve media attribute fully for the link element stylesheet load.
1260
1261         Test: http/tests/local/stylesheet-and-script-load-order-media-print.html
1262
1263         * html/HTMLLinkElement.cpp:
1264         (WebCore::HTMLLinkElement::HTMLLinkElement):
1265         (WebCore::HTMLLinkElement::~HTMLLinkElement):
1266         (WebCore::HTMLLinkElement::setDisabledState):
1267         (WebCore::HTMLLinkElement::process):
1268         (WebCore::HTMLLinkElement::sheetLoaded):
1269         (WebCore::HTMLLinkElement::addPendingSheet):
1270         (WebCore::HTMLLinkElement::removePendingSheet):
1271         * html/HTMLLinkElement.h:
1272
1273 2010-12-22  Sheriff Bot  <webkit.review.bot@gmail.com>
1274
1275         Unreviewed, rolling out r74473.
1276         http://trac.webkit.org/changeset/74473
1277         https://bugs.webkit.org/show_bug.cgi?id=51463
1278
1279         broke compilation on leopard intel release (Requested by
1280         podivilov on #webkit).
1281
1282         * bindings/js/ScriptDebugServer.cpp:
1283         (WebCore::ScriptDebugServer::setBreakpoint):
1284         (WebCore::ScriptDebugServer::removeBreakpoint):
1285         * bindings/js/ScriptDebugServer.h:
1286         * bindings/v8/DebuggerScript.js:
1287         ():
1288         * bindings/v8/ScriptDebugServer.cpp:
1289         (WebCore::ScriptDebugServer::setBreakpoint):
1290         (WebCore::ScriptDebugServer::removeBreakpoint):
1291         * bindings/v8/ScriptDebugServer.h:
1292         * inspector/Inspector.idl:
1293         * inspector/InspectorBackend.cpp:
1294         * inspector/InspectorController.cpp:
1295         (WebCore::InspectorController::InspectorController):
1296         (WebCore::InspectorController::enableDebuggerFromFrontend):
1297         (WebCore::InspectorController::setStickyBreakpoints):
1298         (WebCore::InspectorController::restoreStickyBreakpoint):
1299         (WebCore::InspectorController::breakpointsSettingKey):
1300         (WebCore::InspectorController::loadBreakpoints):
1301         (WebCore::InspectorController::saveBreakpoints):
1302         * inspector/InspectorController.h:
1303         * inspector/InspectorDebuggerAgent.cpp:
1304         (WebCore::formatBreakpointId):
1305         (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
1306         (WebCore::InspectorDebuggerAgent::setBreakpoint):
1307         (WebCore::InspectorDebuggerAgent::removeBreakpoint):
1308         (WebCore::InspectorDebuggerAgent::clearForPageNavigation):
1309         (WebCore::InspectorDebuggerAgent::md5Base16):
1310         (WebCore::InspectorDebuggerAgent::loadBreakpoints):
1311         (WebCore::InspectorDebuggerAgent::saveBreakpoints):
1312         (WebCore::InspectorDebuggerAgent::didParseSource):
1313         * inspector/InspectorDebuggerAgent.h:
1314         * inspector/front-end/Breakpoint.js:
1315         (WebInspector.Breakpoint):
1316         (WebInspector.Breakpoint.jsBreakpointId):
1317         (WebInspector.Breakpoint.prototype.set enabled):
1318         (WebInspector.Breakpoint.prototype.get id):
1319         (WebInspector.Breakpoint.prototype.set condition):
1320         (WebInspector.Breakpoint.prototype.remove):
1321         * inspector/front-end/BreakpointManager.js:
1322         (WebInspector.BreakpointManager):
1323         (WebInspector.BreakpointManager.prototype._createDOMBreakpoint):
1324         (WebInspector.BreakpointManager.prototype._createEventListenerBreakpoint):
1325         (WebInspector.BreakpointManager.prototype._createXHRBreakpoint):
1326         (WebInspector.BreakpointManager.prototype._setNativeBreakpoint):
1327         (WebInspector.BreakpointManager.prototype._setNativeBreakpointEnabled):
1328         (WebInspector.BreakpointManager.prototype._removeNativeBreakpoint):
1329         (WebInspector.BreakpointManager.prototype.breakpointViewForEventData):
1330         (WebInspector.BreakpointManager.prototype._projectChanged):
1331         (WebInspector.BreakpointManager.prototype.restoreDOMBreakpoints):
1332         (WebInspector.BreakpointManager.prototype._saveBreakpoints):
1333         (WebInspector.BreakpointManager.prototype._validateBreakpoints):
1334         (WebInspector.DOMBreakpoint.prototype._serializeToJSON):
1335         (WebInspector.EventListenerBreakpoint.prototype._serializeToJSON):
1336         (WebInspector.XHRBreakpoint.prototype._serializeToJSON):
1337         (WebInspector.NativeBreakpointView.prototype.set enabled):
1338         (WebInspector.NativeBreakpointView.prototype.remove):
1339         * inspector/front-end/DebuggerModel.js:
1340         (WebInspector.DebuggerModel):
1341         (WebInspector.DebuggerModel.prototype.setOneTimeBreakpoint):
1342         (WebInspector.DebuggerModel.prototype.removeOneTimeBreakpoint):
1343         (WebInspector.DebuggerModel.prototype.setBreakpoint):
1344         (WebInspector.DebuggerModel.prototype.findBreakpoint):
1345         (WebInspector.DebuggerModel.prototype.reset):
1346         (WebInspector.DebuggerModel.prototype._setBreakpoint):
1347         (WebInspector.DebuggerModel.prototype._breakpointRemoved):
1348         (WebInspector.DebuggerModel.prototype._setBreakpointOnBackend):
1349         (WebInspector.DebuggerModel.prototype.breakpointRestored):
1350         (WebInspector.DebuggerModel.prototype.pausedScript):
1351         (WebInspector.DebuggerModel.prototype.resumedScript):
1352         * inspector/front-end/ScriptsPanel.js:
1353         (WebInspector.ScriptsPanel.prototype.continueToLine):
1354         (WebInspector.ScriptsPanel.prototype._debuggerPaused):
1355         * inspector/front-end/SourceFrame.js:
1356         (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint.didEditBreakpointCondition):
1357         (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint):
1358         (WebInspector.SourceFrame.prototype._contextMenu.else.editBreakpointCondition.didEditBreakpointCondition):
1359         (WebInspector.SourceFrame.prototype._contextMenu.else.editBreakpointCondition):
1360         (WebInspector.SourceFrame.prototype._contextMenu):
1361         (WebInspector.SourceFrame.prototype._mouseDown):
1362         (WebInspector.SourceFrame.prototype._continueToLine):
1363         (WebInspector.SourceFrame.prototype._setBreakpoint):
1364
1365 2010-12-21  Pavel Podivilov  <podivilov@chromium.org>
1366
1367         Reviewed by Yury Semikhatsky.
1368
1369         Web Inspector: persist JavaScript breakpoints in frontend settings.
1370         https://bugs.webkit.org/show_bug.cgi?id=48434
1371
1372         * bindings/js/ScriptDebugServer.cpp:
1373         (WebCore::ScriptDebugServer::setBreakpoint):
1374         (WebCore::ScriptDebugServer::removeBreakpoint):
1375         * bindings/js/ScriptDebugServer.h:
1376         * bindings/v8/DebuggerScript.js:
1377         ():
1378         * bindings/v8/ScriptDebugServer.cpp:
1379         (WebCore::ScriptDebugServer::setBreakpoint):
1380         (WebCore::ScriptDebugServer::removeBreakpoint):
1381         * bindings/v8/ScriptDebugServer.h:
1382         * inspector/Inspector.idl:
1383         * inspector/InspectorBackend.cpp:
1384         * inspector/InspectorController.cpp:
1385         (WebCore::InspectorController::InspectorController):
1386         (WebCore::InspectorController::enableDebuggerFromFrontend):
1387         (WebCore::InspectorController::setStickyBreakpoints):
1388         (WebCore::InspectorController::restoreStickyBreakpoint):
1389         * inspector/InspectorController.h:
1390         * inspector/InspectorDebuggerAgent.cpp:
1391         (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
1392         (WebCore::InspectorDebuggerAgent::setStickyBreakpoint):
1393         (WebCore::InspectorDebuggerAgent::setBreakpoint):
1394         (WebCore::InspectorDebuggerAgent::removeBreakpoint):
1395         (WebCore::InspectorDebuggerAgent::restoreBreakpoint):
1396         (WebCore::InspectorDebuggerAgent::clearForPageNavigation):
1397         (WebCore::InspectorDebuggerAgent::didParseSource):
1398         * inspector/InspectorDebuggerAgent.h:
1399         * inspector/front-end/Breakpoint.js:
1400         (WebInspector.Breakpoint):
1401         (WebInspector.Breakpoint.prototype.remove):
1402         * inspector/front-end/BreakpointManager.js:
1403         (WebInspector.BreakpointManager):
1404         (WebInspector.DOMBreakpoint.prototype._serializeToJSON):
1405         (WebInspector.JavaScriptBreakpoint):
1406         (WebInspector.XHRBreakpoint.prototype._serializeToJSON):
1407         * inspector/front-end/DebuggerModel.js:
1408         (WebInspector.DebuggerModel):
1409         * inspector/front-end/ScriptsPanel.js:
1410         (WebInspector.ScriptsPanel.prototype._debuggerPaused):
1411         * inspector/front-end/SourceFrame.js:
1412
1413 2010-12-22  Dirk Schulze  <krit@wbekit.org>
1414
1415         Reviewed by Nikolas Zimmermann.
1416
1417         Cleanup SVG code according to the webkit style rules 1
1418         https://bugs.webkit.org/show_bug.cgi?id=51411
1419
1420         First patch to fix indention and other style issues according to the WebKit style rules in the SVG code.
1421
1422         No change of functionality. 
1423
1424         * svg/ColorDistance.cpp:
1425         (WebCore::ColorDistance::isZero):
1426         * svg/ColorDistance.h:
1427         * svg/ElementTimeControl.h:
1428         (WebCore::ElementTimeControl::~ElementTimeControl):
1429         * svg/LinearGradientAttributes.h:
1430         (WebCore::LinearGradientAttributes::LinearGradientAttributes):
1431         (WebCore::LinearGradientAttributes::x1):
1432         (WebCore::LinearGradientAttributes::y1):
1433         (WebCore::LinearGradientAttributes::x2):
1434         (WebCore::LinearGradientAttributes::y2):
1435         (WebCore::LinearGradientAttributes::setX1):
1436         (WebCore::LinearGradientAttributes::setY1):
1437         (WebCore::LinearGradientAttributes::setX2):
1438         (WebCore::LinearGradientAttributes::setY2):
1439         (WebCore::LinearGradientAttributes::hasX1):
1440         (WebCore::LinearGradientAttributes::hasY1):
1441         (WebCore::LinearGradientAttributes::hasX2):
1442         (WebCore::LinearGradientAttributes::hasY2):
1443         * svg/RadialGradientAttributes.h:
1444         (WebCore::RadialGradientAttributes::RadialGradientAttributes):
1445         (WebCore::RadialGradientAttributes::cx):
1446         (WebCore::RadialGradientAttributes::cy):
1447         (WebCore::RadialGradientAttributes::r):
1448         (WebCore::RadialGradientAttributes::fx):
1449         (WebCore::RadialGradientAttributes::fy):
1450         (WebCore::RadialGradientAttributes::setCx):
1451         (WebCore::RadialGradientAttributes::setCy):
1452         (WebCore::RadialGradientAttributes::setR):
1453         (WebCore::RadialGradientAttributes::setFx):
1454         (WebCore::RadialGradientAttributes::setFy):
1455         (WebCore::RadialGradientAttributes::hasCx):
1456         (WebCore::RadialGradientAttributes::hasCy):
1457         (WebCore::RadialGradientAttributes::hasR):
1458         (WebCore::RadialGradientAttributes::hasFx):
1459         (WebCore::RadialGradientAttributes::hasFy):
1460         * svg/SVGAngle.cpp:
1461         * svg/SVGAnimateColorElement.h:
1462         * svg/SVGAnimateElement.cpp:
1463         (WebCore::SVGAnimateElement::calculateAnimatedValue):
1464         (WebCore::SVGAnimateElement::calculateDistance):
1465         * svg/SVGAnimateElement.h:
1466         * svg/SVGAnimateMotionElement.cpp:
1467         * svg/SVGAnimateMotionElement.h:
1468         * svg/SVGAnimatedNumber.h:
1469         * svg/SVGAnimationElement.cpp:
1470         (WebCore::parseKeyTimes):
1471         (WebCore::SVGAnimationElement::currentValuesForValuesAnimation):
1472         (WebCore::SVGAnimationElement::updateAnimation):
1473         * svg/SVGClipPathElement.cpp:
1474         (WebCore::SVGClipPathElement::svgAttributeChanged):
1475         * svg/SVGColor.h:
1476         (WebCore::SVGColor::create):
1477         (WebCore::SVGColor::createCurrentColor):
1478         (WebCore::SVGColor::colorType):
1479         (WebCore::SVGColor::setRGBColor):
1480         (WebCore::SVGColor::color):
1481         (WebCore::SVGColor::isSVGColor):
1482         * svg/SVGCursorElement.cpp:
1483         (WebCore::SVGCursorElement::svgAttributeChanged):
1484         * svg/SVGCursorElement.h:
1485         * svg/SVGDescElement.h:
1486         (WebCore::SVGDescElement::rendererIsNeeded):
1487         * svg/SVGDocument.cpp:
1488         * svg/SVGDocument.h:
1489         (WebCore::SVGDocument::create):
1490         (WebCore::SVGDocument::isSVGDocument):
1491         * svg/SVGElement.h:
1492         (WebCore::SVGElement::isStyled):
1493         (WebCore::SVGElement::isStyledTransformable):
1494         (WebCore::SVGElement::isStyledLocatable):
1495         (WebCore::SVGElement::isSVG):
1496         (WebCore::SVGElement::isFilterEffect):
1497         (WebCore::SVGElement::isGradientStop):
1498         (WebCore::SVGElement::isTextContent):
1499         (WebCore::SVGElement::isValid):
1500         (WebCore::SVGElement::svgAttributeChanged):
1501         (WebCore::SVGElement::synchronizeProperty):
1502         (WebCore::SVGElement::supplementalTransform):
1503         (WebCore::SVGElement::invalidateSVGAttributes):
1504         (WebCore::SVGElement::rendererIsNeeded):
1505         (WebCore::SVGElement::needsPendingResourceHandling):
1506         (WebCore::SVGElement::buildPendingResource):
1507         * svg/SVGElementInstance.h:
1508         (WebCore::SVGElementInstance::create):
1509         (WebCore::SVGElementInstance::correspondingElement):
1510         (WebCore::SVGElementInstance::correspondingUseElement):
1511         (WebCore::SVGElementInstance::shadowTreeElement):
1512         (WebCore::SVGElementInstance::parentNode):
1513         (WebCore::SVGElementInstance::previousSibling):
1514         (WebCore::SVGElementInstance::nextSibling):
1515         (WebCore::SVGElementInstance::firstChild):
1516         (WebCore::SVGElementInstance::lastChild):
1517         (WebCore::SVGElementInstance::ownerDocument):
1518         (WebCore::SVGElementInstance::toNode):
1519         (WebCore::SVGElementInstance::toSVGElementInstance):
1520         (WebCore::SVGElementInstance::hasChildNodes):
1521         (WebCore::SVGElementInstance::setFirstChild):
1522         (WebCore::SVGElementInstance::setLastChild):
1523         (WebCore::SVGElementInstance::setNextSibling):
1524         (WebCore::SVGElementInstance::setPreviousSibling):
1525         (WebCore::SVGElementInstance::refEventTarget):
1526         (WebCore::SVGElementInstance::derefEventTarget):
1527         * svg/SVGElementInstanceList.h:
1528         (WebCore::SVGElementInstanceList::create):
1529         * svg/SVGException.h:
1530         (WebCore::SVGException::create):
1531         (WebCore::SVGException::SVGException):
1532         * svg/SVGFEColorMatrixElement.cpp:
1533         (WebCore::SVGFEColorMatrixElement::parseMappedAttribute):
1534         * svg/SVGFEComponentTransferElement.cpp:
1535         (WebCore::SVGFEComponentTransferElement::build):
1536         * svg/SVGFEDiffuseLightingElement.cpp:
1537         (WebCore::SVGFEDiffuseLightingElement::findLights):
1538         * svg/SVGFont.cpp:
1539         (WebCore::convertEmUnitToPixel):
1540         * svg/SVGUseElement.cpp:
1541         (WebCore::isDirectReference):
1542
1543 2010-12-22  Dai Mikurube  <dmikurube@google.com>
1544
1545         Reviewed by Kent Tamura.
1546
1547         https://bugs.webkit.org/show_bug.cgi?id=51289
1548         Initial state of checkValidity() and :invalid are incorrect with <select required>
1549
1550         * html/HTMLSelectElement.cpp:
1551         (WebCore::HTMLSelectElement::childrenChanged): setNeedsValidityCheck() after <select>'s children change.
1552
1553 2010-12-22  Alexander Pavlov  <apavlov@chromium.org>
1554
1555         Reviewed by Joseph Pecoraro.
1556
1557         Web Inspector: Styles pane fails to display properties from a broken CSS rule correctly
1558         https://bugs.webkit.org/show_bug.cgi?id=51405
1559
1560         Invoke markPropertyStart() after the parser has restored after an error.
1561
1562         * css/CSSGrammar.y:
1563
1564 2010-12-22  Dai Mikurube  <dmikurube@google.com>
1565
1566         Reviewed by Kent Tamura.
1567
1568         Assertion failure with <select multiple required>
1569         https://bugs.webkit.org/show_bug.cgi?id=51260
1570
1571         Test: fast/css/pseudo-valid-select-click.html
1572
1573         * dom/SelectElement.cpp: updateValidity() after selecting some options of ListBox-typed <select> elements to update valid() cache.
1574         (WebCore::SelectElement::updateListBoxSelection):
1575
1576 2010-12-21  Darin Adler  <darin@apple.com>
1577
1578         Unreviewed correction to unreviewed build fix for r74447.
1579
1580         Inappropriate code was left behind in sourceURI function for non-Dashboard platforms.
1581
1582         * html/HTMLImageLoader.cpp:
1583         (WebCore::HTMLImageLoader::sourceURI): Change the logic so all the bug-workaround
1584         logic is inside the #ifdef.
1585
1586 2010-12-21  Simon Fraser  <simon.fraser@apple.com>
1587
1588         Reviewed by Darin Adler.
1589
1590         Include the shadow color space as part of the GraphicsContext state
1591         https://bugs.webkit.org/show_bug.cgi?id=51420
1592         
1593         Include the ColorSpace for the shadow color as part of the graphics
1594         state. This will be used later for a shadow implementation that
1595         does not rely on platform shadow code.
1596
1597         * platform/graphics/GraphicsContext.cpp:
1598         (WebCore::GraphicsContext::setShadow):
1599         (WebCore::GraphicsContext::clearShadow):
1600         (WebCore::GraphicsContext::getShadow):
1601         * platform/graphics/GraphicsContext.h:
1602         (WebCore::GraphicsContextState::GraphicsContextState):
1603         * platform/graphics/chromium/FontChromiumWin.cpp:
1604         (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::drawGlyphs):
1605         (WebCore::Font::drawComplexText):
1606         * platform/graphics/mac/FontMac.mm:
1607         (WebCore::Font::drawGlyphs):
1608         * platform/graphics/skia/SkiaFontWin.cpp:
1609         (WebCore::windowsCanHandleDrawTextShadow):
1610         * platform/graphics/win/FontCGWin.cpp:
1611         (WebCore::drawGDIGlyphs):
1612         (WebCore::Font::drawGlyphs):
1613         * platform/graphics/wince/GraphicsContextWinCE.cpp:
1614         (WebCore::GraphicsContext::fillRoundedRect):
1615         (WebCore::GraphicsContext::drawText):
1616
1617 2010-12-21  Dan Bernstein  <mitz@apple.com>
1618
1619         Reviewed by Sam Weinig.
1620
1621         <rdar://problem/8668230> REGRESSION (r71884): Returning alternate requests from willSendRequest can prevent other requests from ever being sent
1622         https://bugs.webkit.org/show_bug.cgi?id=51413
1623
1624         71884 was wrong in moving willSendRequest to ResourceLoader::start(). It’s wrong to do all the
1625         scheduling, which is host-dependent, before calling willSendRequest, because the latter can
1626         change the host.
1627
1628         * loader/NetscapePlugInStreamLoader.cpp:
1629         (WebCore::NetscapePlugInStreamLoader::create): Check the return value from ResourceLoader::init()
1630         and return 0 if it is false.
1631         * loader/ResourceLoader.cpp:
1632         (WebCore::ResourceLoader::init): Made this function return a boolean. Moved the call to willSendRequest()
1633         from start() into here. Return false if willSendRequest() canceled the request.
1634         (WebCore::ResourceLoader::start): Moved the call to willSendRequest() from here to init().
1635         * loader/ResourceLoader.h:
1636         * loader/SubresourceLoader.cpp:
1637         (WebCore::SubresourceLoader::create): Check the return value from ResourceLoader::init()
1638         and return 0 if it is false.
1639
1640 2010-12-21  Benjamin Kalman  <kalman@chromium.org>
1641
1642         Reviewed by Darin Adler.
1643
1644         Shift-End does not select to the end of the line
1645         https://bugs.webkit.org/show_bug.cgi?id=50610
1646
1647         Let the VisiblePosition affinity for end of line selection to be set by
1648         visibleEnd/visibleStart rather than using end/start and always using UPSTREAM.
1649
1650         Test: editing/selection/extend-to-line-boundary.html
1651
1652         * editing/SelectionController.cpp:
1653         (WebCore::SelectionController::positionForPlatform): Use visibleStart/visibleEnd rather than
1654         start/end.
1655         (WebCore::SelectionController::modifyExtendingForward): Don't explicitly use UPSTREAM affinity.
1656
1657 2010-12-21  Jan Erik Hanssen  <jhanssen@sencha.com>
1658
1659         Reviewed by Simon Fraser.
1660
1661         matrix3d() must take the zoom factor into account
1662         https://bugs.webkit.org/show_bug.cgi?id=51408
1663
1664         Test: transforms/3d/general/matrix-with-zoom-3d.html
1665
1666         * css/CSSStyleSelector.cpp:
1667         (WebCore::CSSStyleSelector::createTransformOperations):
1668
1669 2010-12-21  Adam Barth  <abarth@webkit.org>
1670
1671         Reviewed by Darin Adler.
1672
1673         Move V8 to common implementation of window.open
1674         https://bugs.webkit.org/show_bug.cgi?id=51385
1675
1676         I also changed some function names to match WebKit style.  There's a
1677         bunch of code we can remove in the generic bindings now.  I'll do that
1678         in the next patch.
1679
1680         * bindings/generic/BindingDOMWindow.h:
1681         (WebCore::::open):
1682         * bindings/generic/BindingFrame.h:
1683         (WebCore::::navigateIfAllowed):
1684         * bindings/generic/BindingSecurity.h:
1685         (WebCore::::canAccessWindow):
1686         (WebCore::::allowPopUp):
1687         (WebCore::::shouldAllowNavigation):
1688         * bindings/generic/GenericBinding.h:
1689         (WebCore::completeURL):
1690         * bindings/js/JSDOMBinding.cpp:
1691         (WebCore::toLexicalFrame):
1692         (WebCore::toDynamicFrame):
1693         * bindings/js/specialization/JSBindingState.cpp:
1694         (WebCore::::activeFrame):
1695         (WebCore::::firstFrame):
1696         * bindings/js/specialization/JSBindingState.h:
1697         * bindings/v8/V8Utilities.cpp:
1698         (WebCore::callingOrEnteredFrame):
1699         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1700         (WebCore::V8DOMWindow::locationAccessorSetter):
1701         (WebCore::V8DOMWindow::openCallback):
1702         * bindings/v8/specialization/V8BindingState.cpp:
1703         (WebCore::::activeWindow):
1704         (WebCore::::firstWindow):
1705         (WebCore::::activeFrame):
1706         (WebCore::::firstFrame):
1707         * bindings/v8/specialization/V8BindingState.h:
1708
1709 2010-12-21  Ryosuke Niwa  <rniwa@webkit.org>
1710
1711         Unreviewed build fix for r74447.
1712
1713         Call usesDashboardBackwardCompatibilityMode() only if DASHBOARD_SUPPORT is enabled.
1714
1715         * html/HTMLImageLoader.cpp:
1716         (WebCore::HTMLImageLoader::sourceURI):
1717
1718 2010-12-21  Dan Bernstein  <mitz@apple.com>
1719
1720         Reviewed by John Sullivan.
1721
1722         <rdar://problem/8725702> REGRESSION (r68854): Broken image icon seen in the Address Book Dashboard widget
1723
1724         Test: platform/mac/fast/dom/HTMLImageElement/dashboard-src-quirk.html
1725
1726         The Address Book widget sets the src attribute of an img element to a string that looks like a CSS
1727         URL value. This used to work prior to r68854, because some DOM attribute parsing functions were using
1728         the wrong function to parse URL attributes (last named deprecatedParseURL).
1729
1730         * html/HTMLImageLoader.cpp:
1731         (WebCore::HTMLImageLoader::sourceURI): In Dashboard, check if the src attribute begins with 'url("'
1732         and ends with '")', and if so, strip those away.
1733
1734 2010-12-21  Ryosuke Niwa  <rniwa@webkit.org>
1735
1736         Reviewed by Darin Adler.
1737
1738         CharacterData needs cleanup
1739         https://bugs.webkit.org/show_bug.cgi?id=51426
1740
1741         Extracted CharacterData::setDataAndNotify and CharacterData::updateRenderer.
1742
1743         * dom/CharacterData.cpp:
1744         (WebCore::CharacterData::setData): Calls setDataAndUpdate.
1745         (WebCore::CharacterData::parserAppendData): Ditto.
1746         (WebCore::CharacterData::appendData): Ditto.
1747         (WebCore::CharacterData::insertData): Ditto.
1748         (WebCore::CharacterData::deleteData): Ditto.
1749         (WebCore::CharacterData::replaceData): Ditto.
1750         (WebCore::CharacterData::setDataAndUpdate): Added.
1751         (WebCore::CharacterData::updateRenderer): Added.
1752         (WebCore::CharacterData::dispatchModifiedEvent): Renamed prevValue to oldData.
1753         * dom/CharacterData.h:
1754
1755 2010-12-21  Sheriff Bot  <webkit.review.bot@gmail.com>
1756
1757         Unreviewed, rolling out r74420.
1758         http://trac.webkit.org/changeset/74420
1759         https://bugs.webkit.org/show_bug.cgi?id=51436
1760
1761         causes editing/pasteboard/paste-noscript-xhtml.xhtml to crash
1762         (Requested by tonyg-cr on #webkit).
1763
1764         * dom/DocumentParser.cpp:
1765         * dom/DocumentParser.h:
1766         * html/parser/HTMLDocumentParser.cpp:
1767         * html/parser/HTMLDocumentParser.h:
1768         * html/parser/HTMLParserScheduler.cpp:
1769         (WebCore::HTMLParserScheduler::HTMLParserScheduler):
1770         * html/parser/HTMLParserScheduler.h:
1771         (WebCore::HTMLParserScheduler::isScheduledForResume):
1772         * page/PageGroupLoadDeferrer.cpp:
1773         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
1774         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
1775
1776 2010-12-21  Kenneth Russell  <kbr@google.com>
1777
1778         Reviewed by Darin Fisher.
1779
1780         Enable extensions used in accelerated 2D canvas implementation
1781         https://bugs.webkit.org/show_bug.cgi?id=51433
1782
1783         Call Extensions3D::ensureEnabled() for all supported extensions
1784         the accelerated 2D Canvas implementation uses. Tested with a few
1785         layout tests previously failing when run in Chromium due to OpenGL
1786         INVALID_ENUM and other errors.
1787
1788         * platform/graphics/gpu/DrawingBuffer.cpp:
1789         (WebCore::DrawingBuffer::create):
1790         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
1791         (WebCore::SharedGraphicsContext3D::SharedGraphicsContext3D):
1792         (WebCore::SharedGraphicsContext3D::supportsBGRA):
1793         * platform/graphics/gpu/SharedGraphicsContext3D.h:
1794
1795 2010-12-21  Zhenyao Mo  <zmo@google.com>
1796
1797         Reviewed by Kenneth Russell.
1798
1799         WebGLRenderingContext needs to zero textures and renderbuffers
1800         https://bugs.webkit.org/show_bug.cgi?id=49355
1801
1802         Test: fast/canvas/webgl/uninitialized-test.html
1803
1804         * html/canvas/WebGLFramebuffer.cpp:
1805         (WebCore::WebGLFramebuffer::onAccess): Use a parameter to decide if renderbuffer initialization is needed.
1806         (WebCore::WebGLFramebuffer::initializeRenderbuffers): Don't return false if color buffer doesn't exist.
1807         * html/canvas/WebGLFramebuffer.h: Modify onAccess with an added parameter.
1808         * html/canvas/WebGLRenderingContext.cpp:
1809         (WebCore::WebGLRenderingContext::clear): Call onAccess with an added parameter.
1810         (WebCore::WebGLRenderingContext::copyTexImage2D): Ditto.
1811         (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto.
1812         (WebCore::WebGLRenderingContext::drawArrays): Ditto.
1813         (WebCore::WebGLRenderingContext::drawElements): Ditto.
1814         (WebCore::WebGLRenderingContext::readPixels): Ditto.
1815         (WebCore::WebGLRenderingContext::texImage2DBase): Create buffer data of 0s if input is null to initialize textures.
1816         * platform/graphics/GraphicsContext3D.cpp:
1817         (WebCore::GraphicsContext3D::texImage2DResourceSafe): Helper function that initialize all pixels to 0.
1818         * platform/graphics/GraphicsContext3D.h:
1819         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
1820         (WebCore::Canvas2DLayerChromium::updateContentsIfDirty): Use texImage2DResourceSafe.
1821         * platform/graphics/chromium/DrawingBufferChromium.cpp:
1822         (WebCore::generateColorTexture): Ditto.
1823         * platform/graphics/chromium/LayerRendererChromium.cpp:
1824         (WebCore::LayerRendererChromium::prepareToDrawLayers): Ditto.
1825         * platform/graphics/chromium/TextureManager.cpp:
1826         (WebCore::TextureManager::requestTexture): Ditto.
1827         * platform/graphics/chromium/VideoLayerChromium.cpp:
1828         (WebCore::VideoLayerChromium::allocateTexture): Ditto.
1829         * platform/graphics/gpu/DrawingBuffer.cpp:
1830         (WebCore::DrawingBuffer::reset): Use texImage2DResourceSafe; also, only initialize depth/stencil buffer.
1831         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
1832         (WebCore::SharedGraphicsContext3D::texImage2D): Use texImage2DResourceSafe.
1833         * platform/graphics/gpu/Texture.cpp:
1834         (WebCore::Texture::create): Ditto.
1835         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
1836         (WebCore::GraphicsContext3D::texImage2D): Generate an INVALID_VALUE if pixels==null is passed in.
1837
1838 2010-12-21  Chris Rogers  <crogers@google.com>
1839
1840         Reviewed by Kenneth Russell.
1841
1842         Add AudioBusChromium for decoding audio file data
1843         https://bugs.webkit.org/show_bug.cgi?id=51430
1844
1845         No new tests since audio API is not yet implemented.
1846
1847         * platform/audio/chromium: Added.
1848         * platform/audio/chromium/AudioBusChromium.cpp: Added.
1849         (WebCore::createBusFromInMemoryAudioFile):
1850
1851 2010-12-21  Chris Rogers  <crogers@google.com>
1852
1853         Reviewed by Kenneth Russell.
1854
1855         Add web audio spatialization resource files
1856         https://bugs.webkit.org/show_bug.cgi?id=50998
1857
1858         No new tests since audio API is not yet implemented.
1859
1860         * platform/audio/HRTFElevation.cpp:
1861         (WebCore::HRTFElevation::calculateKernelsForAzimuthElevation):
1862         * platform/audio/mac/AudioBusMac.mm:
1863         (WebCore::AudioBus::loadPlatformResource):
1864         * platform/audio/resources: Added.
1865         * platform/audio/resources/IRC_Composite_C_R0195_T000_P000.wav: Added.
1866         * platform/audio/resources/IRC_Composite_C_R0195_T000_P015.wav: Added.
1867         * platform/audio/resources/IRC_Composite_C_R0195_T000_P030.wav: Added.
1868         * platform/audio/resources/IRC_Composite_C_R0195_T000_P045.wav: Added.
1869         * platform/audio/resources/IRC_Composite_C_R0195_T000_P060.wav: Added.
1870         * platform/audio/resources/IRC_Composite_C_R0195_T000_P075.wav: Added.
1871         * platform/audio/resources/IRC_Composite_C_R0195_T000_P090.wav: Added.
1872         * platform/audio/resources/IRC_Composite_C_R0195_T000_P315.wav: Added.
1873         * platform/audio/resources/IRC_Composite_C_R0195_T000_P330.wav: Added.
1874         * platform/audio/resources/IRC_Composite_C_R0195_T000_P345.wav: Added.
1875         * platform/audio/resources/IRC_Composite_C_R0195_T015_P000.wav: Added.
1876         * platform/audio/resources/IRC_Composite_C_R0195_T015_P015.wav: Added.
1877         * platform/audio/resources/IRC_Composite_C_R0195_T015_P030.wav: Added.
1878         * platform/audio/resources/IRC_Composite_C_R0195_T015_P045.wav: Added.
1879         * platform/audio/resources/IRC_Composite_C_R0195_T015_P060.wav: Added.
1880         * platform/audio/resources/IRC_Composite_C_R0195_T015_P075.wav: Added.
1881         * platform/audio/resources/IRC_Composite_C_R0195_T015_P090.wav: Added.
1882         * platform/audio/resources/IRC_Composite_C_R0195_T015_P315.wav: Added.
1883         * platform/audio/resources/IRC_Composite_C_R0195_T015_P330.wav: Added.
1884         * platform/audio/resources/IRC_Composite_C_R0195_T015_P345.wav: Added.
1885         * platform/audio/resources/IRC_Composite_C_R0195_T030_P000.wav: Added.
1886         * platform/audio/resources/IRC_Composite_C_R0195_T030_P015.wav: Added.
1887         * platform/audio/resources/IRC_Composite_C_R0195_T030_P030.wav: Added.
1888         * platform/audio/resources/IRC_Composite_C_R0195_T030_P045.wav: Added.
1889         * platform/audio/resources/IRC_Composite_C_R0195_T030_P060.wav: Added.
1890         * platform/audio/resources/IRC_Composite_C_R0195_T030_P075.wav: Added.
1891         * platform/audio/resources/IRC_Composite_C_R0195_T030_P090.wav: Added.
1892         * platform/audio/resources/IRC_Composite_C_R0195_T030_P315.wav: Added.
1893         * platform/audio/resources/IRC_Composite_C_R0195_T030_P330.wav: Added.
1894         * platform/audio/resources/IRC_Composite_C_R0195_T030_P345.wav: Added.
1895         * platform/audio/resources/IRC_Composite_C_R0195_T045_P000.wav: Added.
1896         * platform/audio/resources/IRC_Composite_C_R0195_T045_P015.wav: Added.
1897         * platform/audio/resources/IRC_Composite_C_R0195_T045_P030.wav: Added.
1898         * platform/audio/resources/IRC_Composite_C_R0195_T045_P045.wav: Added.
1899         * platform/audio/resources/IRC_Composite_C_R0195_T045_P060.wav: Added.
1900         * platform/audio/resources/IRC_Composite_C_R0195_T045_P075.wav: Added.
1901         * platform/audio/resources/IRC_Composite_C_R0195_T045_P090.wav: Added.
1902         * platform/audio/resources/IRC_Composite_C_R0195_T045_P315.wav: Added.
1903         * platform/audio/resources/IRC_Composite_C_R0195_T045_P330.wav: Added.
1904         * platform/audio/resources/IRC_Composite_C_R0195_T045_P345.wav: Added.
1905         * platform/audio/resources/IRC_Composite_C_R0195_T060_P000.wav: Added.
1906         * platform/audio/resources/IRC_Composite_C_R0195_T060_P015.wav: Added.
1907         * platform/audio/resources/IRC_Composite_C_R0195_T060_P030.wav: Added.
1908         * platform/audio/resources/IRC_Composite_C_R0195_T060_P045.wav: Added.
1909         * platform/audio/resources/IRC_Composite_C_R0195_T060_P060.wav: Added.
1910         * platform/audio/resources/IRC_Composite_C_R0195_T060_P075.wav: Added.
1911         * platform/audio/resources/IRC_Composite_C_R0195_T060_P090.wav: Added.
1912         * platform/audio/resources/IRC_Composite_C_R0195_T060_P315.wav: Added.
1913         * platform/audio/resources/IRC_Composite_C_R0195_T060_P330.wav: Added.
1914         * platform/audio/resources/IRC_Composite_C_R0195_T060_P345.wav: Added.
1915         * platform/audio/resources/IRC_Composite_C_R0195_T075_P000.wav: Added.
1916         * platform/audio/resources/IRC_Composite_C_R0195_T075_P015.wav: Added.
1917         * platform/audio/resources/IRC_Composite_C_R0195_T075_P030.wav: Added.
1918         * platform/audio/resources/IRC_Composite_C_R0195_T075_P045.wav: Added.
1919         * platform/audio/resources/IRC_Composite_C_R0195_T075_P060.wav: Added.
1920         * platform/audio/resources/IRC_Composite_C_R0195_T075_P075.wav: Added.
1921         * platform/audio/resources/IRC_Composite_C_R0195_T075_P090.wav: Added.
1922         * platform/audio/resources/IRC_Composite_C_R0195_T075_P315.wav: Added.
1923         * platform/audio/resources/IRC_Composite_C_R0195_T075_P330.wav: Added.
1924         * platform/audio/resources/IRC_Composite_C_R0195_T075_P345.wav: Added.
1925         * platform/audio/resources/IRC_Composite_C_R0195_T090_P000.wav: Added.
1926         * platform/audio/resources/IRC_Composite_C_R0195_T090_P015.wav: Added.
1927         * platform/audio/resources/IRC_Composite_C_R0195_T090_P030.wav: Added.
1928         * platform/audio/resources/IRC_Composite_C_R0195_T090_P045.wav: Added.
1929         * platform/audio/resources/IRC_Composite_C_R0195_T090_P060.wav: Added.
1930         * platform/audio/resources/IRC_Composite_C_R0195_T090_P075.wav: Added.
1931         * platform/audio/resources/IRC_Composite_C_R0195_T090_P090.wav: Added.
1932         * platform/audio/resources/IRC_Composite_C_R0195_T090_P315.wav: Added.
1933         * platform/audio/resources/IRC_Composite_C_R0195_T090_P330.wav: Added.
1934         * platform/audio/resources/IRC_Composite_C_R0195_T090_P345.wav: Added.
1935         * platform/audio/resources/IRC_Composite_C_R0195_T105_P000.wav: Added.
1936         * platform/audio/resources/IRC_Composite_C_R0195_T105_P015.wav: Added.
1937         * platform/audio/resources/IRC_Composite_C_R0195_T105_P030.wav: Added.
1938         * platform/audio/resources/IRC_Composite_C_R0195_T105_P045.wav: Added.
1939         * platform/audio/resources/IRC_Composite_C_R0195_T105_P060.wav: Added.
1940         * platform/audio/resources/IRC_Composite_C_R0195_T105_P075.wav: Added.
1941         * platform/audio/resources/IRC_Composite_C_R0195_T105_P090.wav: Added.
1942         * platform/audio/resources/IRC_Composite_C_R0195_T105_P315.wav: Added.
1943         * platform/audio/resources/IRC_Composite_C_R0195_T105_P330.wav: Added.
1944         * platform/audio/resources/IRC_Composite_C_R0195_T105_P345.wav: Added.
1945         * platform/audio/resources/IRC_Composite_C_R0195_T120_P000.wav: Added.
1946         * platform/audio/resources/IRC_Composite_C_R0195_T120_P015.wav: Added.
1947         * platform/audio/resources/IRC_Composite_C_R0195_T120_P030.wav: Added.
1948         * platform/audio/resources/IRC_Composite_C_R0195_T120_P045.wav: Added.
1949         * platform/audio/resources/IRC_Composite_C_R0195_T120_P060.wav: Added.
1950         * platform/audio/resources/IRC_Composite_C_R0195_T120_P075.wav: Added.
1951         * platform/audio/resources/IRC_Composite_C_R0195_T120_P090.wav: Added.
1952         * platform/audio/resources/IRC_Composite_C_R0195_T120_P315.wav: Added.
1953         * platform/audio/resources/IRC_Composite_C_R0195_T120_P330.wav: Added.
1954         * platform/audio/resources/IRC_Composite_C_R0195_T120_P345.wav: Added.
1955         * platform/audio/resources/IRC_Composite_C_R0195_T135_P000.wav: Added.
1956         * platform/audio/resources/IRC_Composite_C_R0195_T135_P015.wav: Added.
1957         * platform/audio/resources/IRC_Composite_C_R0195_T135_P030.wav: Added.
1958         * platform/audio/resources/IRC_Composite_C_R0195_T135_P045.wav: Added.
1959         * platform/audio/resources/IRC_Composite_C_R0195_T135_P060.wav: Added.
1960         * platform/audio/resources/IRC_Composite_C_R0195_T135_P075.wav: Added.
1961         * platform/audio/resources/IRC_Composite_C_R0195_T135_P090.wav: Added.
1962         * platform/audio/resources/IRC_Composite_C_R0195_T135_P315.wav: Added.
1963         * platform/audio/resources/IRC_Composite_C_R0195_T135_P330.wav: Added.
1964         * platform/audio/resources/IRC_Composite_C_R0195_T135_P345.wav: Added.
1965         * platform/audio/resources/IRC_Composite_C_R0195_T150_P000.wav: Added.
1966         * platform/audio/resources/IRC_Composite_C_R0195_T150_P015.wav: Added.
1967         * platform/audio/resources/IRC_Composite_C_R0195_T150_P030.wav: Added.
1968         * platform/audio/resources/IRC_Composite_C_R0195_T150_P045.wav: Added.
1969         * platform/audio/resources/IRC_Composite_C_R0195_T150_P060.wav: Added.
1970         * platform/audio/resources/IRC_Composite_C_R0195_T150_P075.wav: Added.
1971         * platform/audio/resources/IRC_Composite_C_R0195_T150_P090.wav: Added.
1972         * platform/audio/resources/IRC_Composite_C_R0195_T150_P315.wav: Added.
1973         * platform/audio/resources/IRC_Composite_C_R0195_T150_P330.wav: Added.
1974         * platform/audio/resources/IRC_Composite_C_R0195_T150_P345.wav: Added.
1975         * platform/audio/resources/IRC_Composite_C_R0195_T165_P000.wav: Added.
1976         * platform/audio/resources/IRC_Composite_C_R0195_T165_P015.wav: Added.
1977         * platform/audio/resources/IRC_Composite_C_R0195_T165_P030.wav: Added.
1978         * platform/audio/resources/IRC_Composite_C_R0195_T165_P045.wav: Added.
1979         * platform/audio/resources/IRC_Composite_C_R0195_T165_P060.wav: Added.
1980         * platform/audio/resources/IRC_Composite_C_R0195_T165_P075.wav: Added.
1981         * platform/audio/resources/IRC_Composite_C_R0195_T165_P090.wav: Added.
1982         * platform/audio/resources/IRC_Composite_C_R0195_T165_P315.wav: Added.
1983         * platform/audio/resources/IRC_Composite_C_R0195_T165_P330.wav: Added.
1984         * platform/audio/resources/IRC_Composite_C_R0195_T165_P345.wav: Added.
1985         * platform/audio/resources/IRC_Composite_C_R0195_T180_P000.wav: Added.
1986         * platform/audio/resources/IRC_Composite_C_R0195_T180_P015.wav: Added.
1987         * platform/audio/resources/IRC_Composite_C_R0195_T180_P030.wav: Added.
1988         * platform/audio/resources/IRC_Composite_C_R0195_T180_P045.wav: Added.
1989         * platform/audio/resources/IRC_Composite_C_R0195_T180_P060.wav: Added.
1990         * platform/audio/resources/IRC_Composite_C_R0195_T180_P075.wav: Added.
1991         * platform/audio/resources/IRC_Composite_C_R0195_T180_P090.wav: Added.
1992         * platform/audio/resources/IRC_Composite_C_R0195_T180_P315.wav: Added.
1993         * platform/audio/resources/IRC_Composite_C_R0195_T180_P330.wav: Added.
1994         * platform/audio/resources/IRC_Composite_C_R0195_T180_P345.wav: Added.
1995         * platform/audio/resources/IRC_Composite_C_R0195_T195_P000.wav: Added.
1996         * platform/audio/resources/IRC_Composite_C_R0195_T195_P015.wav: Added.
1997         * platform/audio/resources/IRC_Composite_C_R0195_T195_P030.wav: Added.
1998         * platform/audio/resources/IRC_Composite_C_R0195_T195_P045.wav: Added.
1999         * platform/audio/resources/IRC_Composite_C_R0195_T195_P060.wav: Added.
2000         * platform/audio/resources/IRC_Composite_C_R0195_T195_P075.wav: Added.
2001         * platform/audio/resources/IRC_Composite_C_R0195_T195_P090.wav: Added.
2002         * platform/audio/resources/IRC_Composite_C_R0195_T195_P315.wav: Added.
2003         * platform/audio/resources/IRC_Composite_C_R0195_T195_P330.wav: Added.
2004         * platform/audio/resources/IRC_Composite_C_R0195_T195_P345.wav: Added.
2005         * platform/audio/resources/IRC_Composite_C_R0195_T210_P000.wav: Added.
2006         * platform/audio/resources/IRC_Composite_C_R0195_T210_P015.wav: Added.
2007         * platform/audio/resources/IRC_Composite_C_R0195_T210_P030.wav: Added.
2008         * platform/audio/resources/IRC_Composite_C_R0195_T210_P045.wav: Added.
2009         * platform/audio/resources/IRC_Composite_C_R0195_T210_P060.wav: Added.
2010         * platform/audio/resources/IRC_Composite_C_R0195_T210_P075.wav: Added.
2011         * platform/audio/resources/IRC_Composite_C_R0195_T210_P090.wav: Added.
2012         * platform/audio/resources/IRC_Composite_C_R0195_T210_P315.wav: Added.
2013         * platform/audio/resources/IRC_Composite_C_R0195_T210_P330.wav: Added.
2014         * platform/audio/resources/IRC_Composite_C_R0195_T210_P345.wav: Added.
2015         * platform/audio/resources/IRC_Composite_C_R0195_T225_P000.wav: Added.
2016         * platform/audio/resources/IRC_Composite_C_R0195_T225_P015.wav: Added.
2017         * platform/audio/resources/IRC_Composite_C_R0195_T225_P030.wav: Added.
2018         * platform/audio/resources/IRC_Composite_C_R0195_T225_P045.wav: Added.
2019         * platform/audio/resources/IRC_Composite_C_R0195_T225_P060.wav: Added.
2020         * platform/audio/resources/IRC_Composite_C_R0195_T225_P075.wav: Added.
2021         * platform/audio/resources/IRC_Composite_C_R0195_T225_P090.wav: Added.
2022         * platform/audio/resources/IRC_Composite_C_R0195_T225_P315.wav: Added.
2023         * platform/audio/resources/IRC_Composite_C_R0195_T225_P330.wav: Added.
2024         * platform/audio/resources/IRC_Composite_C_R0195_T225_P345.wav: Added.
2025         * platform/audio/resources/IRC_Composite_C_R0195_T240_P000.wav: Added.
2026         * platform/audio/resources/IRC_Composite_C_R0195_T240_P015.wav: Added.
2027         * platform/audio/resources/IRC_Composite_C_R0195_T240_P030.wav: Added.
2028         * platform/audio/resources/IRC_Composite_C_R0195_T240_P045.wav: Added.
2029         * platform/audio/resources/IRC_Composite_C_R0195_T240_P060.wav: Added.
2030         * platform/audio/resources/IRC_Composite_C_R0195_T240_P075.wav: Added.
2031         * platform/audio/resources/IRC_Composite_C_R0195_T240_P090.wav: Added.
2032         * platform/audio/resources/IRC_Composite_C_R0195_T240_P315.wav: Added.
2033         * platform/audio/resources/IRC_Composite_C_R0195_T240_P330.wav: Added.
2034         * platform/audio/resources/IRC_Composite_C_R0195_T240_P345.wav: Added.
2035         * platform/audio/resources/IRC_Composite_C_R0195_T255_P000.wav: Added.
2036         * platform/audio/resources/IRC_Composite_C_R0195_T255_P015.wav: Added.
2037         * platform/audio/resources/IRC_Composite_C_R0195_T255_P030.wav: Added.
2038         * platform/audio/resources/IRC_Composite_C_R0195_T255_P045.wav: Added.
2039         * platform/audio/resources/IRC_Composite_C_R0195_T255_P060.wav: Added.
2040         * platform/audio/resources/IRC_Composite_C_R0195_T255_P075.wav: Added.
2041         * platform/audio/resources/IRC_Composite_C_R0195_T255_P090.wav: Added.
2042         * platform/audio/resources/IRC_Composite_C_R0195_T255_P315.wav: Added.
2043         * platform/audio/resources/IRC_Composite_C_R0195_T255_P330.wav: Added.
2044         * platform/audio/resources/IRC_Composite_C_R0195_T255_P345.wav: Added.
2045         * platform/audio/resources/IRC_Composite_C_R0195_T270_P000.wav: Added.
2046         * platform/audio/resources/IRC_Composite_C_R0195_T270_P015.wav: Added.
2047         * platform/audio/resources/IRC_Composite_C_R0195_T270_P030.wav: Added.
2048         * platform/audio/resources/IRC_Composite_C_R0195_T270_P045.wav: Added.
2049         * platform/audio/resources/IRC_Composite_C_R0195_T270_P060.wav: Added.
2050         * platform/audio/resources/IRC_Composite_C_R0195_T270_P075.wav: Added.
2051         * platform/audio/resources/IRC_Composite_C_R0195_T270_P090.wav: Added.
2052         * platform/audio/resources/IRC_Composite_C_R0195_T270_P315.wav: Added.
2053         * platform/audio/resources/IRC_Composite_C_R0195_T270_P330.wav: Added.
2054         * platform/audio/resources/IRC_Composite_C_R0195_T270_P345.wav: Added.
2055         * platform/audio/resources/IRC_Composite_C_R0195_T285_P000.wav: Added.
2056         * platform/audio/resources/IRC_Composite_C_R0195_T285_P015.wav: Added.
2057         * platform/audio/resources/IRC_Composite_C_R0195_T285_P030.wav: Added.
2058         * platform/audio/resources/IRC_Composite_C_R0195_T285_P045.wav: Added.
2059         * platform/audio/resources/IRC_Composite_C_R0195_T285_P060.wav: Added.
2060         * platform/audio/resources/IRC_Composite_C_R0195_T285_P075.wav: Added.
2061         * platform/audio/resources/IRC_Composite_C_R0195_T285_P090.wav: Added.
2062         * platform/audio/resources/IRC_Composite_C_R0195_T285_P315.wav: Added.
2063         * platform/audio/resources/IRC_Composite_C_R0195_T285_P330.wav: Added.
2064         * platform/audio/resources/IRC_Composite_C_R0195_T285_P345.wav: Added.
2065         * platform/audio/resources/IRC_Composite_C_R0195_T300_P000.wav: Added.
2066         * platform/audio/resources/IRC_Composite_C_R0195_T300_P015.wav: Added.
2067         * platform/audio/resources/IRC_Composite_C_R0195_T300_P030.wav: Added.
2068         * platform/audio/resources/IRC_Composite_C_R0195_T300_P045.wav: Added.
2069         * platform/audio/resources/IRC_Composite_C_R0195_T300_P060.wav: Added.
2070         * platform/audio/resources/IRC_Composite_C_R0195_T300_P075.wav: Added.
2071         * platform/audio/resources/IRC_Composite_C_R0195_T300_P090.wav: Added.
2072         * platform/audio/resources/IRC_Composite_C_R0195_T300_P315.wav: Added.
2073         * platform/audio/resources/IRC_Composite_C_R0195_T300_P330.wav: Added.
2074         * platform/audio/resources/IRC_Composite_C_R0195_T300_P345.wav: Added.
2075         * platform/audio/resources/IRC_Composite_C_R0195_T315_P000.wav: Added.
2076         * platform/audio/resources/IRC_Composite_C_R0195_T315_P015.wav: Added.
2077         * platform/audio/resources/IRC_Composite_C_R0195_T315_P030.wav: Added.
2078         * platform/audio/resources/IRC_Composite_C_R0195_T315_P045.wav: Added.
2079         * platform/audio/resources/IRC_Composite_C_R0195_T315_P060.wav: Added.
2080         * platform/audio/resources/IRC_Composite_C_R0195_T315_P075.wav: Added.
2081         * platform/audio/resources/IRC_Composite_C_R0195_T315_P090.wav: Added.
2082         * platform/audio/resources/IRC_Composite_C_R0195_T315_P315.wav: Added.
2083         * platform/audio/resources/IRC_Composite_C_R0195_T315_P330.wav: Added.
2084         * platform/audio/resources/IRC_Composite_C_R0195_T315_P345.wav: Added.
2085         * platform/audio/resources/IRC_Composite_C_R0195_T330_P000.wav: Added.
2086         * platform/audio/resources/IRC_Composite_C_R0195_T330_P015.wav: Added.
2087         * platform/audio/resources/IRC_Composite_C_R0195_T330_P030.wav: Added.
2088         * platform/audio/resources/IRC_Composite_C_R0195_T330_P045.wav: Added.
2089         * platform/audio/resources/IRC_Composite_C_R0195_T330_P060.wav: Added.
2090         * platform/audio/resources/IRC_Composite_C_R0195_T330_P075.wav: Added.
2091         * platform/audio/resources/IRC_Composite_C_R0195_T330_P090.wav: Added.
2092         * platform/audio/resources/IRC_Composite_C_R0195_T330_P315.wav: Added.
2093         * platform/audio/resources/IRC_Composite_C_R0195_T330_P330.wav: Added.
2094         * platform/audio/resources/IRC_Composite_C_R0195_T330_P345.wav: Added.
2095         * platform/audio/resources/IRC_Composite_C_R0195_T345_P000.wav: Added.
2096         * platform/audio/resources/IRC_Composite_C_R0195_T345_P015.wav: Added.
2097         * platform/audio/resources/IRC_Composite_C_R0195_T345_P030.wav: Added.
2098         * platform/audio/resources/IRC_Composite_C_R0195_T345_P045.wav: Added.
2099         * platform/audio/resources/IRC_Composite_C_R0195_T345_P060.wav: Added.
2100         * platform/audio/resources/IRC_Composite_C_R0195_T345_P075.wav: Added.
2101         * platform/audio/resources/IRC_Composite_C_R0195_T345_P090.wav: Added.
2102         * platform/audio/resources/IRC_Composite_C_R0195_T345_P315.wav: Added.
2103         * platform/audio/resources/IRC_Composite_C_R0195_T345_P330.wav: Added.
2104         * platform/audio/resources/IRC_Composite_C_R0195_T345_P345.wav: Added.
2105
2106 2010-12-21  Geoffrey Garen  <ggaren@apple.com>
2107
2108         Reviewed by Gavin Barraclough & Oliver Hunt.
2109
2110         Added PageAllocationAligned, a cross-platform abstraction for memory allocations with arbitrary alignment requirements
2111         https://bugs.webkit.org/show_bug.cgi?id=51359
2112
2113         * ForwardingHeaders/wtf/PageAllocationAligned.h: Added.
2114
2115 2010-12-21  Ariya Hidayat  <ariya@sencha.com>
2116
2117         Reviewed by Simon Fraser.
2118
2119         https://bugs.webkit.org/show_bug.cgi?id=49774
2120         Need to scale translation values in matrix() by the zoom factor.
2121
2122         Test: fast/transforms/matrix-with-zoom.html
2123
2124         * css/CSSStyleSelector.cpp:
2125         (WebCore::CSSStyleSelector::createTransformOperations):
2126
2127 2010-12-21  Jian Li  <jianli@chromium.org>
2128
2129         Reviewed by Darin Adler.
2130
2131         Fix bug 51366: REGRESSION (r66452): Form data no longer contains
2132         'Content-Type' header for files with unrecognized extensions
2133         https://bugs.webkit.org/show_bug.cgi?id=51366
2134
2135         Test: http/tests/local/formdata/form-data-with-unknown-file-extension.html
2136
2137         * platform/network/FormData.cpp:
2138         (WebCore::FormData::appendKeyValuePairItems):
2139
2140 2010-12-21  Darin Adler  <darin@apple.com>
2141
2142         Reviewed by Sam Weinig.
2143
2144         Mac WebKit delivers an extra didCommit when loading web archives
2145         https://bugs.webkit.org/show_bug.cgi?id=51419
2146
2147         Could not find a simple way to test this in WebKit1, but in WebKit2
2148         it leads to an immediate failure when loading a web archive. Tested
2149         that making the Mac share the same code path with other platforms
2150         works fine in WebKit1.
2151
2152         * loader/FrameLoader.cpp:
2153         (WebCore::FrameLoader::finishedLoadingDocument): Removed special case for
2154         the Mac platform. Also removed the call to isArchiveMimeType since we
2155         get a 0 from ArchiveFactory::create in that case.
2156
2157         * loader/archive/ArchiveFactory.cpp:
2158         (WebCore::ArchiveFactory::isArchiveMimeType): Hardened slightly by
2159         adding a special case for null and empty strings, since hash tables can't
2160         handle null strings.
2161         (WebCore::ArchiveFactory::create): Ditto.
2162
2163 2010-12-21  Yong Li  <yoli@rim.com>
2164
2165         Reviewed by Adam Barth.
2166
2167         Suspend HTMLParserScheduler when page load is deferred to
2168         avoid potential JS re-entrancy. Otherwise, when JS execution is triggered
2169         from an external script or by events, and is blocked by a modal dialog,
2170         WebKit can parse more HTML source and also start another JS execution.
2171         
2172         https://bugs.webkit.org/show_bug.cgi?id=48077
2173
2174         Test case: WebCore/manual-tests/bugzilla-48077.html.
2175
2176         * dom/DocumentParser.cpp:
2177         (WebCore::DocumentParser::suspendParsing):
2178         (WebCore::DocumentParser::resumeParsing):
2179         * dom/DocumentParser.h:
2180         * html/parser/HTMLDocumentParser.cpp:
2181         (WebCore::HTMLDocumentParser::suspendParsing):
2182         (WebCore::HTMLDocumentParser::resumeParsing):
2183         * html/parser/HTMLParserScheduler.cpp:
2184         (WebCore::HTMLParserScheduler::HTMLParserScheduler):
2185         (WebCore::HTMLParserScheduler::suspend):
2186         (WebCore::HTMLParserScheduler::resume):
2187         * html/parser/HTMLParserScheduler.h:
2188         (WebCore::HTMLParserScheduler::isScheduledForResume):
2189         * page/PageGroupLoadDeferrer.cpp:
2190         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
2191         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
2192
2193 2010-12-21  Anders Carlsson  <andersca@apple.com>
2194
2195         Reviewed by John Sullivan.
2196
2197         Clicking missing plug-in text does not show a sheet
2198         https://bugs.webkit.org/show_bug.cgi?id=51403
2199
2200         * WebCore.exp.in:
2201         Export symbols needed by WebKit2.
2202
2203         * WebCore.xcodeproj/project.pbxproj:
2204         Make HTMLPlugInImageElement.h a private header.
2205
2206         * html/HTMLPlugInImageElement.h:
2207         (WebCore::HTMLPlugInImageElement::serviceType):
2208         (WebCore::HTMLPlugInImageElement::url):
2209         Make these member functions public.
2210
2211 2010-12-21  Andras Becsi  <abecsi@webkit.org>
2212
2213         Unreviewed build fix.
2214
2215         [Qt] Fix the build with USE_GSTREAMER=1
2216
2217         No new tests needed.
2218
2219         * WebCore.pro: remove nonexisting DataSourceGStreamer sources.
2220
2221 2010-12-21  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
2222
2223         Reviewed by Andreas Kling.
2224
2225         [Qt] QtWebKit doesn't build in debug on Windows
2226         https://bugs.webkit.org/show_bug.cgi?id=41930
2227
2228         Disable incremental linking in windows 32bit debug version as webkit is so 
2229         big it fails to link incremental. 
2230
2231         Build fix. No new test cases added. 
2232
2233         * WebCore.pro:
2234
2235 2010-12-21  Dominic Cooney  <dominicc@google.com>
2236
2237         Reviewed by Adam Barth.
2238
2239         Rename Node::isShadowNode to isShadowRoot
2240         https://bugs.webkit.org/show_bug.cgi?id=51060
2241
2242         The method gets whether the node is the root of a shadow tree;
2243         renamed to reflect intent.
2244
2245         A simple rename--no new tests needed.
2246
2247         * css/CSSStyleSelector.cpp:
2248         (WebCore::CSSStyleSelector::initForStyleResolve):
2249         (WebCore::CSSStyleSelector::SelectorChecker::checkSelector):
2250         * dom/Node.cpp:
2251         (WebCore::Node::shadowTreeRootNode):
2252         (WebCore::Node::isInShadowTree):
2253         (WebCore::eventTargetRespectingSVGTargetRules):
2254         (WebCore::Node::getEventAncestors):
2255         * dom/Node.h:
2256         (WebCore::Node::isShadowRoot):
2257         * dom/Range.cpp:
2258         (WebCore::Range::checkNodeBA):
2259         * page/DragController.cpp:
2260         (WebCore::asFileInput):
2261         * page/EventHandler.cpp:
2262         (WebCore::EventHandler::handleMousePressEvent):
2263         (WebCore::EventHandler::dispatchMouseEvent):
2264         * rendering/RenderBlock.cpp:
2265         (WebCore::RenderBlock::hasLineIfEmpty):
2266         * rendering/TextControlInnerElements.cpp:
2267         (WebCore::TextControlInnerElement::attachInnerElement):
2268         * svg/SVGStyledElement.cpp:
2269         (WebCore::SVGStyledElement::title):
2270         * svg/SVGUseElement.cpp:
2271         (WebCore::ShadowTreeUpdateBlocker::while):
2272         * svg/animation/SVGSMILElement.cpp:
2273         (WebCore::SVGSMILElement::insertedIntoDocument):
2274
2275 2010-12-20  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
2276
2277         Reviewed by Andreas Kling.
2278
2279         Qt port of geolocation, geoposition objects timestamp was in seconds
2280         instead of miliseconds as per HTML5 Geolocation standards.
2281         Ref: http://dev.w3.org/geo/api/spec-source.html#position_interface 
2282         http://www.w3.org/TR/DOM-Level-3-Core/core.html#Core-DOMTimeStamp 
2283
2284         Implemented by Asheesh Srivastava.
2285
2286         [QT] QtWebkit geolocation's position.timestamp is not in miliseconds
2287         https://bugs.webkit.org/show_bug.cgi?id=51100
2288
2289         Porting code not covered in layout testing. No new tests added.
2290
2291         * platform/qt/GeolocationServiceQt.cpp:
2292         (WebCore::GeolocationServiceQt::positionUpdated):
2293
2294 2010-12-20  Yuzo Fujishima  <yuzo@google.com>
2295
2296         Reviewed by Eric Seidel.
2297
2298         Fix for Bug 26183 - [@font-face] font-family descriptor with multiple names should be discarded
2299         https://bugs.webkit.org/show_bug.cgi?id=26183
2300
2301         Test: fast/css/font-face-font-family-descriptor.html
2302
2303         * css/CSSParser.cpp:
2304         (WebCore::CSSParser::createFontFaceRule): Consider @font-face rule
2305         invalid if its font-family descriptor has multiple (or zero) families.
2306
2307 2010-12-20  Pavel Feldman  <pfeldman@chromium.org>
2308
2309         Reviewed by Yury Semikhatsky.
2310
2311         Web Inspector: fall back to object formatting in case dom is not yet loaded.
2312         https://bugs.webkit.org/show_bug.cgi?id=44273
2313
2314         Sometimes DOM is loaded after the inline message is being formatted, so we get
2315         no nodeId for it. Let us fall back to object formatting in such cases.
2316
2317         * inspector/front-end/ConsoleView.js:
2318         (WebInspector.ConsoleView.prototype._formatnode):
2319         (WebInspector.ConsoleMessage):
2320
2321 2010-12-20  Pavel Feldman  <pfeldman@chromium.org>
2322
2323         Reviewed by Joseph Pecoraro.
2324
2325         Web Inspector: cycle through tag name / attributes / new attribute on Tab.
2326
2327         https://bugs.webkit.org/show_bug.cgi?id=38429
2328
2329         * inspector/front-end/ElementsTreeOutline.js:
2330         (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.moveToNextAttributeIfNeeded):
2331
2332 2010-12-20  Yuta Kitamura  <yutak@chromium.org>
2333
2334         Reviewed by Alexey Proskuryakov.
2335
2336         WebSocket errors should be logged to console
2337         https://bugs.webkit.org/show_bug.cgi?id=40945
2338
2339         Test: http/tests/inspector/console-websocket-error.html
2340
2341         * platform/network/SocketStreamErrorBase.cpp:
2342         (WebCore::SocketStreamErrorBase::compare):
2343         * platform/network/SocketStreamErrorBase.h:
2344         (WebCore::SocketStreamErrorBase::failingURL):
2345         (WebCore::SocketStreamErrorBase::localizedDescription):
2346         (WebCore::SocketStreamErrorBase::SocketStreamErrorBase):
2347         * platform/network/cf/SocketStreamError.h:
2348         (WebCore::SocketStreamError::SocketStreamError):
2349         * platform/network/cf/SocketStreamHandle.h:
2350         * platform/network/cf/SocketStreamHandleCFNet.cpp:
2351         (WebCore::SocketStreamHandle::readStreamCallback):
2352         (WebCore::SocketStreamHandle::writeStreamCallback):
2353         (WebCore::SocketStreamHandle::reportErrorToClient):
2354         * websockets/WebSocketChannel.cpp:
2355         (WebCore::WebSocketChannel::didFail):
2356
2357 2010-12-17  MORITA Hajime  <morrita@google.com>
2358
2359         Reviewed by James Robinson.
2360
2361         https://bugs.webkit.org/show_bug.cgi?id=51240
2362         [Chromium][Skia] Border with a color with alpha != 1 breaks webkit gradient on skia.
2363
2364         Even after a shader was set, old color value had been remaining and passed to Skia.
2365         Then Skia refered an alpha component of that color to make pixels transparent.
2366         This change invalidates existing color value when a shader is given, 
2367         which means the renderer will paint shapes with gradients or patterns.
2368         
2369         Test: fast/gradients/gradient-after-transparent-border.html
2370
2371         * platform/graphics/skia/PlatformContextSkia.cpp:
2372         (WebCore::PlatformContextSkia::setStrokeShader):
2373         (WebCore::PlatformContextSkia::setFillShader):
2374
2375 2010-12-20  Xiaomei Ji  <xji@chromium.org>
2376
2377         Reviewed by Dan Bernstein.
2378
2379         Fix move left/right by character hang.
2380         https://bugs.webkit.org/show_bug.cgi?id=51344
2381
2382         Test: editing/selection/51344.html
2383
2384         * editing/VisiblePosition.cpp:
2385         (WebCore::VisiblePosition::leftVisuallyDistinctCandidate):
2386         (WebCore::VisiblePosition::rightVisuallyDistinctCandidate):
2387
2388 2010-12-20  Steve Lacey  <sjl@chromium.org>
2389
2390         Reviewed by David Levin.
2391
2392         Add missing default styles in mediaControlsChromium.css to prevent
2393         user overrides.
2394         https://bugs.webkit.org/show_bug.cgi?id=51360
2395
2396         No new tests needed as functionality is covered by existing layout
2397         tests.
2398
2399
2400         * css/mediaControlsChromium.css:
2401         (audio::-webkit-media-controls-current-time-display, video::-webkit-media-controls-current-time-display):
2402         (audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-time-remaining-display):
2403
2404 2010-12-20  Jian Li  <jianli@chromium.org>
2405
2406         Reviewed by David Levin.
2407
2408         Add lastModifiedDate attribute to File interface per File API spec
2409         https://bugs.webkit.org/show_bug.cgi?id=49895
2410
2411         lastModifiedDate is not supported for GObject bindings because Date is
2412         not support in code generation.
2413
2414         Test: http/tests/local/fileapi/file-last-modified.html
2415
2416         * fileapi/File.cpp:
2417         (WebCore::File::lastModifiedDate):
2418         * fileapi/File.h:
2419         * fileapi/File.idl:
2420
2421 2010-12-20  Mark Rowe  <mrowe@apple.com>
2422
2423         Reviewed by Dan Bernstein.
2424
2425         <rdar://problem/8757601> Don't install header files in to the Resources directory.
2426
2427         * WebCore.xcodeproj/project.pbxproj:
2428
2429 2010-12-20  Andrei Popescu  <andreip@google.com>
2430
2431         Reviewed by Jeremy Orlow.
2432
2433         [Chromium] v8/SerializedScriptValue::readUint32 treats incoming raw values as signed instead of unsigned
2434         https://bugs.webkit.org/show_bug.cgi?id=51338
2435
2436         * bindings/v8/SerializedScriptValue.cpp:
2437         (WebCore::ZigZag::Reader::readUint32):
2438
2439 2010-12-20  Beth Dakin  <bdakin@apple.com>
2440
2441         Reviewed by Ada Chan.
2442
2443         Fix for https://bugs.webkit.org/show_bug.cgi?id=51355 Crash in 
2444         RenderMathMLSubSup::layout() because of null base
2445         -and corresponding-
2446         <rdar://problem/8712200>
2447
2448         Only use base inside if(base) block.
2449         * mathml/RenderMathMLSubSup.cpp:
2450         (WebCore::RenderMathMLSubSup::layout):
2451
2452 2010-12-20  Enrica Casucci  <enrica@apple.com>
2453
2454         Reviewed by Darin Adler.
2455
2456         Crash at WebCore::SplitElementCommand::SplitElementCommand
2457         https://bugs.webkit.org/show_bug.cgi?id=51278
2458         <rdar://problem/7347139> 
2459
2460         Executing outdent command on an inline blockquote that is
2461         not the first element in a block causes a crash.
2462         The fix consists in chaging the was the start of block is
2463         calculated in case of the inline blockquote.
2464         
2465         Test: editing/execCommand/outdent-inline-blockquote.html
2466               editing/execCommand/outdent-inline-list.html
2467
2468         * editing/IndentOutdentCommand.cpp:
2469         (WebCore::IndentOutdentCommand::outdentParagraph):
2470
2471 2010-12-20  Oliver Hunt  <oliver@apple.com>
2472
2473         Reviewed by Darin Adler.
2474
2475         Need to support serialisation of cyclic graphs in the internal structured cloning algorithm
2476         https://bugs.webkit.org/show_bug.cgi?id=51353
2477
2478         The Internal Structured Clone algorithm has been changed to allow (and
2479         correctly clone) cyclic graphs.  This patch updates our implementation
2480         to provide that functionality.
2481
2482         I've bumped the serialization version number, and added ObjectReferenceTag
2483         to represent references to objects that have already been seen.
2484
2485         * bindings/js/SerializedScriptValue.cpp:
2486         (WebCore::CloneSerializer::startObjectInternal):
2487           Now that we have something a bit more complex than cycle checking
2488           I've replaced the duplicate code in startObject and startArray with
2489           a shared function that implements that logic to plant an object
2490           reference
2491         (WebCore::CloneSerializer::startObject):
2492         (WebCore::CloneSerializer::startArray):
2493           Lift out duplicate code
2494         (WebCore::CloneSerializer::endObject):
2495           Can't remove objects from the gcbuffer now as they need to remain live
2496           so we can identify graphs
2497         (WebCore::CloneSerializer::writeStringIndex):
2498         (WebCore::CloneSerializer::writeObjectIndex):
2499         (WebCore::CloneSerializer::writeConstantPoolIndex):
2500         (WebCore::CloneSerializer::write):
2501         (WebCore::CloneSerializer::serialize):
2502         (WebCore::CloneDeserializer::readStringIndex):
2503         (WebCore::CloneDeserializer::readConstantPoolIndex):
2504         (WebCore::CloneDeserializer::readTerminal):
2505         (WebCore::CloneDeserializer::deserialize):
2506
2507 2010-12-20  Xan Lopez  <xlopez@igalia.com>
2508
2509         Reviewed by Gustavo Noronha.
2510
2511         * GNUmakefile.am: add missing files.
2512
2513 2010-12-20  Abhishek Arya  <inferno@chromium.org>
2514
2515         Reviewed by James Robinson.
2516
2517         Pass the correct beforeChild value when adding a child to an anonymous table part.
2518         https://bugs.webkit.org/show_bug.cgi?id=50932
2519
2520         When a "before" content child was added to an anonymous table part, it was added
2521         after the last child. This patch fixes the behavior by adding it properly before
2522         the first child.
2523
2524         Test: fast/css-generated-content/table-before-child-add.html
2525
2526         * rendering/RenderTableRow.cpp:
2527         (WebCore::RenderTableRow::addChild):
2528
2529 2010-12-18  Gavin Barraclough  <barraclough@apple.com>
2530
2531         Reviewed by Oliver Hunt.
2532
2533         Bug 26276 - Need a mechanism to determine stack extent
2534
2535         Add forwarding header for StackBounds.h.
2536
2537         * ForwardingHeaders/wtf/StackBounds.h: Added.
2538
2539 2010-12-20  James Robinson  <jamesr@chromium.org>
2540
2541         Unreviewed, rolling out r74278.
2542         http://trac.webkit.org/changeset/74278
2543         https://bugs.webkit.org/show_bug.cgi?id=50833
2544
2545         [chromium] Causes many layout tests to crash
2546
2547         * platform/graphics/chromium/LayerRendererChromium.cpp:
2548         (WebCore::LayerRendererChromium::LayerRendererChromium):
2549         (WebCore::LayerRendererChromium::prepareToDrawLayers):
2550         (WebCore::LayerRendererChromium::drawLayers):
2551         (WebCore::LayerRendererChromium::useRenderSurface):
2552         (WebCore::LayerRendererChromium::setScissorToRect):
2553         * platform/graphics/chromium/LayerRendererChromium.h:
2554
2555 2010-12-20  Geoffrey Garen  <ggaren@apple.com>
2556
2557         Reviewed by Sam Weinig.
2558
2559         Factored common page set management into a new PageBlock base class
2560         https://bugs.webkit.org/show_bug.cgi?id=51285
2561
2562         * ForwardingHeaders/wtf/PageBlock.h: Added.
2563
2564 2010-12-20  Steve Block  <steveblock@google.com>
2565
2566         Reviewed by Jeremy Orlow.
2567
2568         GeolocationPositionCache should do database access on background thread
2569         https://bugs.webkit.org/show_bug.cgi?id=50825
2570
2571         Covered by existing Geolocation tests.
2572
2573         * page/Coordinates.h:
2574         (WebCore::Coordinates::threadSafeCopy):
2575         * page/GeolocationPositionCache.cpp:
2576         (WebCore::GeolocationPositionCache::GeolocationPositionCache):
2577         (WebCore::GeolocationPositionCache::addUser):
2578         (WebCore::GeolocationPositionCache::removeUser):
2579         (WebCore::GeolocationPositionCache::setDatabasePath):
2580         (WebCore::GeolocationPositionCache::setCachedPosition):
2581         (WebCore::GeolocationPositionCache::cachedPosition):
2582         (WebCore::GeolocationPositionCache::startBackgroundThread):
2583         (WebCore::GeolocationPositionCache::threadEntryPoint):
2584         (WebCore::GeolocationPositionCache::threadEntryPointImpl):
2585         (WebCore::GeolocationPositionCache::triggerReadFromDatabase):
2586         (WebCore::GeolocationPositionCache::readFromDatabase):
2587         (WebCore::GeolocationPositionCache::readFromDatabaseImpl):
2588         (WebCore::GeolocationPositionCache::triggerWriteToDatabase):
2589         (WebCore::GeolocationPositionCache::writeToDatabase):
2590         (WebCore::GeolocationPositionCache::writeToDatabaseImpl):
2591         * page/GeolocationPositionCache.h:
2592         * page/Geoposition.h:
2593         (WebCore::Geoposition::threadSafeCopy):
2594         (WebCore::Geoposition::Geoposition):
2595
2596 2010-12-20  Andras Becsi  <abecsi@webkit.org>
2597
2598         Unreviewed build fix.
2599
2600         [Qt][V8] Add  missing sources to the pro file and remove duplications to fix linking.
2601
2602         No new tests needed.
2603
2604         * WebCore.pro:
2605
2606 2010-12-20  Alexander Pavlov  <apavlov@chromium.org>
2607
2608         Reviewed by Yury Semikhatsky.
2609
2610         Web Inspector: Make CSSCompletions a real class rather than singleton
2611         https://bugs.webkit.org/show_bug.cgi?id=51332
2612
2613         Drive-by: make use of keywords from re2js in the CSS tokenizer
2614         (apparently, various authors have presumed that re2js is processed at build time).
2615
2616         No new tests, as this is a refactoring.
2617
2618         * inspector/front-end/CSSCompletions.js:
2619         (WebInspector.CSSCompletions):
2620         (WebInspector.CSSCompletions.prototype.startsWith):
2621         (WebInspector.CSSCompletions.prototype.firstStartsWith):
2622         (WebInspector.CSSCompletions.prototype._firstIndexOfPrefix):
2623         (WebInspector.CSSCompletions.prototype.keySet):
2624         (WebInspector.CSSCompletions.prototype.next):
2625         (WebInspector.CSSCompletions.prototype.previous):
2626         (WebInspector.CSSCompletions.prototype._closest):
2627         * inspector/front-end/SourceCSSTokenizer.js:
2628         (WebInspector.SourceCSSTokenizer):
2629         * inspector/front-end/SourceCSSTokenizer.re2js:
2630         * inspector/front-end/StylesSidebarPane.js:
2631         (WebInspector.StylePropertyTreeElement.prototype):
2632         * inspector/front-end/inspector.js:
2633         (WebInspector.doLoadedDone.propertyNamesCallback):
2634         (WebInspector.doLoadedDone):
2635
2636 2010-12-10  Pavel Podivilov  <podivilov@chromium.org>
2637
2638         Reviewed by Yury Semikhatsky.
2639
2640         Web Inspector: "Add conditional breakpoint" - create breakpoint only after condition is provided.
2641         https://bugs.webkit.org/show_bug.cgi?id=50813
2642
2643         * inspector/front-end/SourceFrame.js:
2644         (WebInspector.SourceFrame.prototype._addBreakpoint):
2645         (WebInspector.SourceFrame.prototype._breakpointRemoved):
2646         (WebInspector.SourceFrame.prototype._breakpointChanged):
2647         (WebInspector.SourceFrame.prototype._setBreakpointDecoration):
2648         (WebInspector.SourceFrame.prototype._removeBreakpointDecoration):
2649         (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint.didEditBreakpointCondition):
2650         (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint):
2651         (WebInspector.SourceFrame.prototype._contextMenu.else.editBreakpointCondition.didEditBreakpointCondition):
2652         (WebInspector.SourceFrame.prototype._contextMenu.else.editBreakpointCondition):
2653         (WebInspector.SourceFrame.prototype._contextMenu):
2654         (WebInspector.SourceFrame.prototype._editBreakpointCondition.finishEditing):
2655         (WebInspector.SourceFrame.prototype._editBreakpointCondition):
2656         (WebInspector.SourceFrame.prototype._continueToLine):
2657         (WebInspector.SourceFrame.prototype._setBreakpoint):
2658
2659 2010-12-20  Andrei Popescu  <andreip@google.com>
2660
2661         Reviewed by Jeremy Orlow.
2662
2663         IDBTransactionBackedImpl instances can be accidentally deleted during calls to abort/commit.
2664         https://bugs.webkit.org/show_bug.cgi?id=51112
2665
2666         Makes IDBTransactionBackendImpl objects take a self reference while executing commit and abort.
2667
2668         Test: storage/indexeddb/transaction-crash-on-abort.html
2669
2670         * storage/IDBTransactionBackendImpl.cpp:
2671         (WebCore::IDBTransactionBackendImpl::abort):
2672         (WebCore::IDBTransactionBackendImpl::commit):
2673
2674 2010-12-20  Andrei Popescu  <andreip@google.com>
2675
2676         Reviewed by Jeremy Orlow.
2677
2678         IDBCursor::delete is not implemented.
2679         https://bugs.webkit.org/show_bug.cgi?id=51110
2680
2681         Implement IDBCursor::delete.
2682         See http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBCursor-delete
2683
2684         Tests: storage/indexeddb/cursor-delete.html
2685                storage/indexeddb/cursor-index-delete.html
2686
2687         * storage/IDBCursor.cpp:
2688         (WebCore::IDBCursor::deleteFunction):
2689         * storage/IDBCursor.h:
2690         * storage/IDBCursor.idl:
2691         * storage/IDBCursorBackendImpl.cpp:
2692         (WebCore::IDBCursorBackendImpl::IDBCursorBackendImpl):
2693         (WebCore::IDBCursorBackendImpl::deleteFunction):
2694         (WebCore::IDBCursorBackendImpl::loadCurrentRow):
2695         * storage/IDBCursorBackendImpl.h:
2696         (WebCore::IDBCursorBackendImpl::create):
2697         * storage/IDBCursorBackendInterface.h:
2698         * storage/IDBIndexBackendImpl.cpp:
2699         (WebCore::IDBIndexBackendImpl::openCursorInternal):
2700         * storage/IDBKey.cpp:
2701         (WebCore::IDBKey::fromQuery):
2702         * storage/IDBObjectStoreBackendImpl.cpp:
2703         (WebCore::IDBObjectStoreBackendImpl::deleteInternal):
2704         (WebCore::IDBObjectStoreBackendImpl::openCursorInternal):
2705
2706 2010-12-20  Yury Semikhatsky  <yurys@chromium.org>
2707
2708         Reviewed by Pavel Feldman.
2709
2710         Web Inspector: After a multiline command execution Console does not show the command prompt
2711         https://bugs.webkit.org/show_bug.cgi?id=51257
2712
2713         * inspector/front-end/TextPrompt.js:
2714         (WebInspector.TextPrompt.prototype._moveBackInHistory):
2715         (WebInspector.TextPrompt.prototype._moveForwardInHistory):
2716
2717 2010-12-19  Helder Correia  <helder@sencha.com>
2718
2719         Reviewed by Ariya Hidayat.
2720
2721         [Qt] Blur distance should not be affected by transformations
2722         https://bugs.webkit.org/show_bug.cgi?id=51161
2723
2724         From the spec at http://dev.w3.org/html5/2dcontext/#dom-context-2d-shadowblur:
2725         "The shadowBlur attribute specifies the level of the blurring effect.
2726         (The units do not map to coordinate space units, and are not affected
2727         by the current transformation matrix.)"
2728
2729         Test: fast/canvas/canvas-scale-shadowBlur.html
2730
2731         * platform/graphics/ContextShadow.cpp:
2732         (WebCore::ContextShadow::adjustBlurDistance):
2733         * platform/graphics/ContextShadow.h:
2734         * platform/graphics/cairo/ContextShadowCairo.cpp:
2735         (WebCore::ContextShadow::beginShadowLayer):
2736         * platform/graphics/qt/ContextShadowQt.cpp:
2737         (WebCore::ContextShadow::beginShadowLayer):
2738
2739 2010-12-19  Dan Bernstein  <mitz@apple.com>
2740
2741         Reviewed by Cameron Zwarich.
2742
2743         Text emphasis marks are not repainted correctly in flipped writing modes
2744         https://bugs.webkit.org/show_bug.cgi?id=51307
2745
2746         Tests: fast/repaint/text-emphasis-h.html
2747                fast/repaint/text-emphasis-v.html
2748
2749         * rendering/InlineFlowBox.cpp:
2750         (WebCore::InlineFlowBox::addTextBoxVisualOverflow): Added flippedness check.
2751
2752 2010-12-19  Rob Buis  <rwlbuis@gmail.com>
2753
2754         Reviewed by Andreas Kling.
2755
2756         Remove m_drawsContents from RenderSVGContainer.h
2757         https://bugs.webkit.org/show_bug.cgi?id=51305
2758
2759         Remove m_drawsContents, its getter and setter and the call
2760         sites, since it has no effect anymore.
2761
2762         * WebCore.order:
2763         * rendering/RenderSVGContainer.cpp:
2764         (WebCore::RenderSVGContainer::RenderSVGContainer):
2765         (WebCore::RenderSVGContainer::paint):
2766         * rendering/RenderSVGContainer.h:
2767         * rendering/RenderSVGResourceContainer.h:
2768         * rendering/SVGImageBufferTools.cpp:
2769         (WebCore::SVGImageBufferTools::renderSubtreeToImageBuffer):
2770
2771 2010-12-19  Benjamin Poulain  <benjamin.poulain@nokia.com>
2772
2773         Reviewed by Kenneth Rohde Christiansen.
2774
2775         WebKit does not build with worker but without the javascript debugger
2776         https://bugs.webkit.org/show_bug.cgi?id=51293
2777
2778         Add missing guard for calls depending on the debugger.
2779
2780         * inspector/InspectorController.cpp:
2781         (WebCore::InspectorController::populateScriptObjects):
2782         (WebCore::InspectorController::postWorkerNotificationToFrontend):
2783
2784 2010-12-18  Tom Sepez  <tsepez@chromium.org>
2785
2786         Reviewed by David Levin.
2787
2788         https://bugs.webkit.org/show_bug.cgi?id=51055
2789         Fix a null de-reference when an XML file contains a malformed entity
2790         of the form "&:;".
2791
2792         Test: fast/parser/xml-colon-entity.html
2793
2794         * html/parser/HTMLEntitySearch.cpp:
2795         (WebCore::HTMLEntitySearch::advance):
2796
2797 2010-12-18  Noel Gordon  <noel.gordon@gmail.com>
2798
2799         Reviewed by David Levin.
2800
2801         [chromium] Simplify the PNG encoder.
2802         https://bugs.webkit.org/show_bug.cgi?id=50905
2803
2804         Remove PNGEncoderState class - it was a proxy for the encoder output, and
2805         that is a Vector<>, so just write into it directly using append() to make
2806         use of Vector<>'s resize() smarts. Simplify the preMultipliedBGRAtoRGBA()
2807         and encode() routines, replace the OwnArrayPtr<> with a Vector<>.
2808         
2809         canvas.toDataURL("image/png") is covered by existing tests.
2810
2811         * platform/image-encoders/skia/PNGImageEncoder.cpp:
2812         (WebCore::writeOutput): Use a Vector<>, append() the encoded data to it.
2813         (WebCore::preMultipliedBGRAtoRGBA): simplified.
2814         (WebCore::PNGImageEncoder::encode): ditto.
2815
2816 2010-12-18  Dan Bernstein  <mitz@apple.com>
2817
2818         Reviewed by Cameron Zwarich.
2819
2820         Text emphasis marks are not always included in the selection highlight
2821         https://bugs.webkit.org/show_bug.cgi?id=51299
2822
2823         Affects pixel results of fast/text/emphasis.html
2824
2825         Account for annotations in selectionTop() and selectionBottom().
2826
2827         * rendering/RootInlineBox.cpp:
2828         (WebCore::RootInlineBox::selectionTop):
2829         (WebCore::RootInlineBox::selectionBottom):
2830
2831 2010-12-18  Dan Bernstein  <mitz@apple.com>
2832
2833         Reviewed by Cameron Zwarich.
2834
2835         In flipped writing modes, opposite text emphasis marks from adjacent lines overlap
2836         https://bugs.webkit.org/show_bug.cgi?id=51298
2837
2838         Test: fast/text/emphasis-overlap.html
2839
2840         * rendering/RootInlineBox.cpp:
2841         (WebCore::RootInlineBox::beforeAnnotationsAdjustment): Changed + to -.
2842
2843 2010-12-18  Helder Correia  <helder@sencha.com> and Martin Robinson  <mrobinson@igalia.com>
2844
2845         Reviewed by Ariya Hidayat.
2846
2847         [Qt] Canvas shadow offset should not be affected by any transformation
2848         https://bugs.webkit.org/show_bug.cgi?id=50422
2849
2850         On a canvas context, shadows are currently affected by all
2851         transformations except scaling. According to the spec:
2852         http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#shadows
2853
2854         "The shadowOffsetX and shadowOffsetY attributes specify the distance
2855         that the shadow will be offset in the positive horizontal and positive
2856         vertical distance respectively. Their values are in coordinate space
2857         units. They are not affected by the current transformation matrix."
2858
2859         NOTE: this applies only to canvas, not to box shadows.
2860
2861         Test: fast/canvas/canvas-transforms-fillRect-shadow.html
2862
2863         * platform/graphics/ContextShadow.cpp:
2864         (WebCore::ContextShadow::ContextShadow):
2865         (WebCore::ContextShadow::calculateLayerBoundingRect):
2866         * platform/graphics/ContextShadow.h:
2867         (WebCore::ContextShadow::setShadowsIgnoreTransforms):
2868         (WebCore::ContextShadow::shadowsIgnoreTransforms):
2869         (WebCore::ContextShadow::offset):
2870         * platform/graphics/qt/ContextShadowQt.cpp:
2871         (WebCore::ContextShadow::beginShadowLayer):
2872         (WebCore::ContextShadow::endShadowLayer):
2873         * platform/graphics/qt/GraphicsContextQt.cpp:
2874         (WebCore::mustUseContextShadow):
2875         (WebCore::GraphicsContext::fillPath):
2876         (WebCore::GraphicsContext::strokePath):
2877         (WebCore::GraphicsContext::fillRect):
2878         (WebCore::GraphicsContext::fillRoundedRect):
2879         (WebCore::GraphicsContext::setPlatformShadow):
2880
2881 2010-12-18  Ariya Hidayat  <ariya@sencha.com>
2882
2883         Reviewed by Andreas Kling.
2884
2885         [Qt] TransparencyLayer should inherit its container render hints
2886         https://bugs.webkit.org/show_bug.cgi?id=51283
2887
2888         * platform/graphics/qt/TransparencyLayer.h:
2889         (WebCore::TransparencyLayer::TransparencyLayer):
2890
2891 2010-12-18  Tony Gentilcore  <tonyg@chromium.org>
2892
2893         Reviewed by Laszlo Gombos.
2894
2895         [Web Timing] Rename domContentLoaded{Start,End}->domContentLoadedEvent{Start,End}
2896         https://bugs.webkit.org/show_bug.cgi?id=50943
2897
2898         See: http://test.w3.org/webperf/specs/NavigationTiming/#nt-dom-content-event-start
2899
2900         * dom/Document.cpp:
2901         (WebCore::Document::finishedParsing):
2902         * dom/DocumentTiming.h:
2903         (WebCore::DocumentTiming::DocumentTiming):
2904         * page/PerformanceTiming.cpp:
2905         (WebCore::PerformanceTiming::domContentLoadedEventStart):
2906         (WebCore::PerformanceTiming::domContentLoadedEventEnd):
2907         * page/PerformanceTiming.h:
2908         * page/PerformanceTiming.idl:
2909
2910 2010-12-17  Justin Schuh  <jschuh@chromium.org>
2911
2912         Reviewed by Andreas Kling.
2913
2914         Style fix for r73927
2915         https://bugs.webkit.org/show_bug.cgi?id=51194
2916
2917         No functionality change. No new tests needed.
2918
2919         * html/HTMLCanvasElement.h:
2920
2921 2010-12-17  Carlos Garcia Campos  <cgarcia@igalia.com>
2922
2923         Reviewed by Martin Robinson.
2924
2925         [GTK] Buttons rendering was broken in r74129
2926         https://bugs.webkit.org/show_bug.cgi?id=51173
2927
2928         * platform/gtk/RenderThemeGtk.cpp:
2929         (WebCore::RenderThemeGtk::paintRenderObject):
2930
2931 2010-12-17  Zoltan Herczeg  <zherczeg@webkit.org>
2932
2933         Reviewed by Dirk Schulze.
2934
2935         Improve 'arithmetic' operator on feComposite
2936         https://bugs.webkit.org/show_bug.cgi?id=51105
2937
2938         Fixing style errors and bug description for r74177.
2939
2940         * platform/graphics/filters/FEComposite.cpp:
2941         (WebCore::arithmetic):
2942
2943 2010-12-17  Dan Bernstein  <mitz@apple.com>
2944
2945         Rubber-stamped by Mark Rowe.
2946
2947         Updated for the renaming of WebKitTools to Tools
2948
2949         * WebCore.vcproj/build-generated-files.sh:
2950         * WebCore.vcproj/migrate-scripts.sh:
2951
2952 2010-12-17  Carol Szabo  <carol.szabo@nokia.com>
2953
2954         Reviewed by Darin Adler.
2955
2956         A corrupted counter tree is created when renderers are added to the
2957         tree bypassing RenderObject::addChild
2958         https://bugs.webkit.org/show_bug.cgi?id=51270
2959
2960         This patch replaces the hack introduced for fixing bug 43812
2961         with code that addresses the underlying problem for that bug.
2962         No new layout tests provided as there is no identified scenario when
2963         visible behavior would be different, the internal datastructures
2964         are maintained properly through this fix so the previous hack
2965         introduced for bug 43812 is now removed. The fact that the 
2966         layout test introduced for 43812 continues to pass is proof that the
2967         code works.
2968
2969         * rendering/RenderCounter.cpp:
2970         (WebCore::findPlaceForCounter):
2971           Removed hack.
2972         * rendering/RenderObject.cpp:
2973         (WebCore::RenderObject::addChild):
2974           Moved call to counter nodes updater to lower level
2975           functions to avoid bypass.
2976         * rendering/RenderObjectChildList.cpp:
2977         (WebCore::RenderObjectChildList::appendChildNode):
2978         (WebCore::RenderObjectChildList::insertChildNode):
2979           Changed to update the values of the counters that
2980           may be inserted in the tree.
2981
2982 2010-12-17  Shimeng (Simon) Wang  <swang@google.com>
2983
2984         Reviewed by Steve Block.
2985
2986         Fix V8 JNI binding.
2987         https://bugs.webkit.org/show_bug.cgi?id=51156
2988
2989         There're LayoutTests in:
2990         http://trac.webkit.org/browser/trunk/LayoutTests/java/lc3/JSNumber
2991         to exercise these code paths.
2992         Though Chromium don't run them.
2993         Tested on Android fast/events/touch tests.
2994
2995         * bridge/jni/v8/JNIUtilityPrivate.cpp:
2996         (JSC::Bindings::convertNPVariantToJValue):
2997
2998 2010-12-17  Simon Fraser  <simon.fraser@apple.com>
2999
3000         Reviewed by Chris Marrin.
3001
3002         Interrupted accelerated animation can break later transitions
3003         <rdar://problem/8767714>
3004         https://bugs.webkit.org/show_bug.cgi?id=51264
3005         
3006         If we're still waiting for the 'animationDidStart' callback when renderers
3007         get destroyed, then the m_waitingForStartTimeResponse flag could be left
3008         set to 'true', which causes later transitions to never start.
3009         
3010         Fix by clearing the m_waitingForStartTimeResponse flag when the m_startTimeResponseWaiters
3011         becomes empty.
3012
3013         Test: transitions/interrupted-accelerated-transition.html
3014
3015         * page/animation/AnimationController.cpp:
3016         (WebCore::AnimationControllerPrivate::removeFromStartTimeResponseWaitList):
3017
3018 2010-12-17  Simon Fraser  <simon.fraser@apple.com>
3019
3020         Reviewed by Chris Marrin.
3021
3022         Interrupted accelerated animation can break later transitions
3023         https://bugs.webkit.org/show_bug.cgi?id=51264
3024
3025         Step 1: code cleanup.
3026         Rename "responseWait" variables to "startTimeResponseWait", to make it clear
3027         the kind of response that is being waited for.
3028         
3029         Make a couple of methods private.
3030         
3031         No behavioral changes, so no tests.
3032
3033         * page/animation/AnimationController.cpp:
3034         (WebCore::AnimationControllerPrivate::AnimationControllerPrivate):
3035         (WebCore::AnimationControllerPrivate::endAnimationUpdate):
3036         (WebCore::AnimationControllerPrivate::receivedStartTimeResponse):
3037         (WebCore::AnimationControllerPrivate::addToStartTimeResponseWaitList):
3038         (WebCore::AnimationControllerPrivate::removeFromStartTimeResponseWaitList):
3039         (WebCore::AnimationControllerPrivate::startTimeResponse):
3040         * page/animation/AnimationControllerPrivate.h:
3041
3042 2010-12-17  Dan Bernstein  <mitz@apple.com>
3043
3044         Reviewed by Dave Hyatt.
3045
3046         Layout and rendering of CSS text-emphasis
3047         Final part of <rdar://problem/7720300> Support the CSS3 text-emphasis property
3048         https://bugs.webkit.org/show_bug.cgi?id=48539
3049
3050         Tests: fast/text/emphasis-vertical.html
3051                fast/text/emphasis.html
3052
3053         Emphasis marks behave like they are stuck just above the ascender (or just below the
3054         descender). They occupy space in the leading and in padding, and only grow the line space
3055         if they cannot fit.
3056
3057         * rendering/InlineFlowBox.cpp:
3058         (WebCore::InlineFlowBox::placeBoxesInBlockDirection): Renamed the containsRuby parameter to
3059         hasAnnotationsBefore, and added hasAnnotationsAfter. Line annotations include ruby and text emphasis
3060         marks.
3061         (WebCore::InlineFlowBox::addTextBoxVisualOverflow): Added overflow from emphasis marks.
3062         (WebCore::InlineFlowBox::computeOverAnnotationAdjustment): Remaned computeBlockDirectionRubyAdjustment()
3063         to this and added adjustment for text emphasis marks.
3064         (WebCore::InlineFlowBox::computeUnderAnnotationAdjustment): Added. Similar to the previous function,
3065         but for annotations under the glyphs. These can only be text emphasis marks.
3066         * rendering/InlineFlowBox.h:
3067         * rendering/InlineTextBox.cpp:
3068         (WebCore::paintTextWithShadows): Paint emphasis marks.
3069         (WebCore::InlineTextBox::paint): Ditto.
3070         * rendering/RenderBlockLineLayout.cpp:
3071         (WebCore::RenderBlock::layoutInlineChildren): Generalized the code that adjusts the last line for
3072         ruby in flipped writing mode to also adjust the last line for emphasis marks under the line in non-
3073         flipped writing mode.
3074         * rendering/RenderObject.cpp:
3075         (WebCore::RenderObject::selectionColor): Added this helper method which generalizes selectionForegroundColor().
3076         (WebCore::RenderObject::selectionForegroundColor): Moved most of the code to selectionColor().
3077         (WebCore::RenderObject::selectionEmphasisMarkColor): Added.
3078         * rendering/RenderObject.h:
3079         * rendering/RootInlineBox.cpp:
3080         (WebCore::RootInlineBox::RootInlineBox): Updated initialization for new members.
3081         (WebCore::RootInlineBox::alignBoxesInBlockDirection): Update new members.
3082         (WebCore::RootInlineBox::beforeAnnotationsAdjustment): Renamed blockDirectionRubyAdjustment() to this
3083         and extended to deal with annotations over and under the line and the previous line. If both lines have
3084         annotations into the space between the lines, maintain separation so that the annotations do not overlap.
3085         * rendering/RootInlineBox.h:
3086         (WebCore::RootInlineBox::hasAnnotationsBefore): Added this accessor.
3087         (WebCore::RootInlineBox::hasAnnotationsAfter): Ditto.
3088
3089 2010-12-17  W. James MacLean  <wjmaclean@chromium.org>
3090
3091         Reviewed by James Robinson.
3092
3093         [chromium] Add support to compositor to composite to offscreen texture.
3094         https://bugs.webkit.org/show_bug.cgi?id=50833
3095
3096         A patch to extend compositor to be able to composite into an offscreen texture instead
3097         of just directly to the display buffer. Builds on RenderSurfaceChromium support.
3098
3099         External behaviour not changed, so no tests.
3100
3101         * platform/graphics/chromium/LayerRendererChromium.cpp:
3102         (WebCore::LayerRendererChromium::LayerRendererChromium):
3103         (WebCore::LayerRendererChromium::prepareToDrawLayers):
3104         (WebCore::LayerRendererChromium::drawLayers):
3105         (WebCore::LayerRendererChromium::setCompositeOffscreen):
3106         (WebCore::LayerRendererChromium::useRenderSurface):
3107         (WebCore::LayerRendererChromium::setScissorToRect):
3108         * platform/graphics/chromium/LayerRendererChromium.h:
3109         (WebCore::LayerRendererChromium::isCompositingOffscreen):
3110         (WebCore::LayerRendererChromium::getOffscreenLayerTexture):
3111
3112 2010-12-17  Ariya Hidayat  <ariya@sencha.com>
3113
3114         Reviewed by Andreas Kling.
3115
3116         [Qt] Default image interpolation should reset the render hint
3117         https://bugs.webkit.org/show_bug.cgi?id=51233
3118
3119         Save initial SmoothPixmapTransform render hint so that it can be used
3120         with default image interpolation quality to reset back the render hints.
3121
3122         * platform/graphics/qt/GraphicsContextQt.cpp:
3123         (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
3124         (WebCore::GraphicsContext::setImageInterpolationQuality):
3125
3126 2010-12-17  Hans Wennborg  <hans@chromium.org>
3127
3128         Reviewed by Jeremy Orlow.
3129
3130         IndexedDB: Support Date objects as keys.
3131         https://bugs.webkit.org/show_bug.cgi?id=51193
3132
3133         * bindings/v8/IDBBindingUtilities.cpp:
3134         (WebCore::createIDBKeyFromValue):
3135         Use the new IDBKey factory functions, and support Date objects.
3136         * bindings/v8/custom/V8IDBKeyCustom.cpp:
3137         (WebCore::toV8):
3138         Create Date objects from DateType keys.
3139         * storage/IDBKey.cpp:
3140         (WebCore::IDBKey::fromQuery):
3141         (WebCore::IDBKey::isEqual):
3142         (WebCore::IDBKey::whereSyntax):
3143         (WebCore::IDBKey::lowerCursorWhereFragment):
3144         (WebCore::IDBKey::upperCursorWhereFragment):
3145         (WebCore::IDBKey::bind):
3146         (WebCore::IDBKey::bindWithNulls):
3147         Update all SQL related functions to handle Date keys.
3148         * storage/IDBKey.h:
3149         (WebCore::IDBKey::createNull):
3150         (WebCore::IDBKey::createNumber):
3151         (WebCore::IDBKey::createString):
3152         (WebCore::IDBKey::createDate):
3153         Rename the create factories; since both number and date is just a
3154         double, function overloading can't be used to discriminate between
3155         the factories.
3156         (WebCore::IDBKey::date):
3157         Add getter for the date value.
3158
3159 2010-12-17  Pavel Podivilov  <podivilov@chromium.org>
3160
3161         Reviewed by Pavel Feldman.
3162
3163         Web Inspector: add scripts parsed after resource load to SourceFrame.
3164         https://bugs.webkit.org/show_bug.cgi?id=51243
3165
3166         * inspector/front-end/ScriptsPanel.js:
3167         (WebInspector.ScriptsPanel.prototype._addScript):
3168         * inspector/front-end/SourceFrame.js:
3169         (WebInspector.SourceFrame.prototype.addScript):
3170
3171 2010-12-17  Anton Muhin  <antonm@chromium.org>
3172
3173         Reviewed by Yury Semikhatsky.
3174
3175         [v8] The last portion of CSS GC work: fixing fast/dom/StyleSheet/gc-stylesheet-wrapper.html
3176         https://bugs.webkit.org/show_bug.cgi?id=51121
3177
3178         Properly group style elements of HTML links, style elements and processing instructions.
3179
3180         * bindings/v8/V8GCController.cpp:
3181         (WebCore::NodeGrouperVisitor::visitDOMWrapper):
3182         (WebCore::NodeGrouperVisitor::addDOMObjectToGroup):
3183
3184 2010-12-17  Pavel Podivilov  <podivilov@chromium.org>
3185
3186         Reviewed by Pavel Feldman.
3187
3188         Web Inspector: [REGRESSION] scripts in scripts panel are not updated on reload.
3189         https://bugs.webkit.org/show_bug.cgi?id=51101
3190
3191         * inspector/front-end/ResourceManager.js:
3192         (WebInspector.ResourceTreeModel.prototype.didCommitLoadForFrame):
3193
3194 2010-12-17  Benjamin Poulain  <benjamin.poulain@nokia.com>
3195
3196         Reviewed by Laszlo Gombos.
3197
3198         The inspector does not compile without JAVASCRIPT_DEBUGGER
3199         https://bugs.webkit.org/show_bug.cgi?id=51246
3200
3201         Fix the build, m_extraHeaders does not depend on JAVASCRIPT_DEBUGGER.
3202
3203         * inspector/InspectorController.h:
3204
3205 2010-12-17  Andrey Kosyakov  <caseq@chromium.org>
3206
3207         Reviewed by Pavel Feldman.
3208
3209         Web Inspector: clear extra/override headers when front-end is closed
3210         https://bugs.webkit.org/show_bug.cgi?id=51244
3211
3212         * inspector/InspectorController.cpp:
3213         (WebCore::InspectorController::disconnectFrontend):
3214         (WebCore::InspectorController::willSendRequest):
3215
3216 2010-12-17  Pavel Feldman  <pfeldman@chromium.org>
3217
3218         Reviewed by Yury Semikhatsky.
3219
3220         Web Inspector: [REGRESSION] Cmd (Ctrl) + G does not search next in Scripts panel.
3221         https://bugs.webkit.org/show_bug.cgi?id=50893
3222
3223         Now Mac shortcuts are:
3224         - Cmd F/G = find / next
3225         - Cmd L = go to line
3226
3227         Win/Linux:
3228         - Ctrl+G = go to line
3229
3230         * inspector/front-end/ScriptsPanel.js:
3231         (WebInspector.ScriptsPanel.prototype._registerShortcuts):
3232         * inspector/front-end/inspector.js:
3233         (WebInspector._registerShortcuts):
3234
3235 2010-12-16  Sergio Villar Senin  <svillar@igalia.com>
3236
3237         Reviewed by Martin Robinson.
3238
3239         Wrong check in ResourceHandleSoup in error cases
3240         https://bugs.webkit.org/show_bug.cgi?id=51171
3241
3242         Calling didReceiveData with no data causes a crash in debug
3243         builds. Checking for soupMsg->response_body->data is not correct as libsoup
3244         always creates a buffer for that. Instead we should check for
3245         soupMsg->response_body->length
3246
3247         * platform/network/soup/ResourceHandleSoup.cpp:
3248         (WebCore::sendRequestCallback):
3249
3250 2010-12-17  Andreas Kling  <andreas.kling@nokia.com>
3251
3252         Reviewed by Kenneth Rohde Christiansen.
3253
3254         [Qt] Avoid unnecessary calls to GraphicsContextPlatformPrivate::p()
3255         https://bugs.webkit.org/show_bug.cgi?id=49954
3256
3257         * platform/graphics/qt/GraphicsContextQt.cpp:
3258         (WebCore::GraphicsContext::pushTransparencyLayerInternal):
3259         (WebCore::GraphicsContext::beginTransparencyLayer):
3260
3261 2010-12-17  Carlos Garcia Campos  <cgarcia@igalia.com>
3262
3263         Reviewed by Martin Robinson.
3264
3265         [GTK] Compile warning introduced in r74129
3266         https://bugs.webkit.org/show_bug.cgi?id=51181
3267
3268         * platform/gtk/RenderThemeGtk.cpp:
3269         (WebCore::RenderThemeGtk::gtkContainer):
3270
3271 2010-12-17  James Simonsen  <simonjam@chromium.org>
3272
3273         Reviewed by Darin Fisher.
3274
3275         [Web Timing] Add sslHandshakeStart to interface
3276
3277         https://bugs.webkit.org/show_bug.cgi?id=50400
3278
3279         Test: http/tests/misc/webtiming-ssl.php
3280
3281         * page/PerformanceTiming.cpp:
3282         (WebCore::PerformanceTiming::connectStart): Update comment.
3283         (WebCore::PerformanceTiming::connectEnd): Remove SSL time.
3284         (WebCore::PerformanceTiming::sslHandshakeStart): Added.
3285         * page/PerformanceTiming.h: Added sslHandshakeStart.
3286         * page/PerformanceTiming.idl: Ditto.
3287
3288 2010-12-17  James Simonsen  <simonjam@chromium.org>
3289
3290         Reviewed by Darin Fisher.
3291
3292         [Web Timing] Navigation type enums should begin with TYPE_
3293         https://bugs.webkit.org/show_bug.cgi?id=51200
3294
3295         * page/PerformanceNavigation.cpp:
3296         (WebCore::PerformanceNavigation::type): Added TYPE_ to navigation types.
3297         * page/PerformanceNavigation.h: Ditto and added TYPE_RESERVED.
3298         * page/PerformanceNavigation.idl: Ditto.
3299
3300 2010-12-17  Steve Block  <steveblock@google.com>
3301
3302         Unreviewed build fix.
3303
3304         Fix build when Geolocation is disabled.
3305
3306         No new tests, build fix only.
3307
3308         * page/Geolocation.h:
3309
3310 2010-12-17  Patrick Gansterer  <paroga@webkit.org>
3311
3312         Unreviewed. WinCE build fix.
3313
3314         * platform/graphics/GraphicsContext.h:
3315
3316 2010-12-17  Ilya Tikhonovsky  <loislo@chromium.org>
3317
3318         Reviewed by Yury Semikhatsky.
3319
3320         Web Inspector: remove unnecessary dependencies from InspectorBackendStub.
3321
3322         InspectorBackendStub is a transport-only thing but it has dependencies with
3323         Callback.js and WebInspector namespace. Callback can be integrated into
3324         InspectorBackendStub because it is the only client.
3325         Without these dependencies InspectorBackendStub can be used as an API
3326         wrapper for Inspector Protocol.
3327
3328         https://bugs.webkit.org/show_bug.cgi?id=51184
3329
3330         * WebCore.gypi:
3331         * inspector/CodeGeneratorInspector.pm:
3332         * inspector/front-end/Callback.js: Removed.
3333         * inspector/front-end/WebKit.qrc:
3334         * inspector/front-end/inspector.html:
3335
3336 2010-12-15  Andrey Kosyakov  <caseq@chromium.org>
3337
3338         Reviewed by Pavel Feldman.
3339
3340         Web Inspector: [Extension API] add support for adding/overriding HTTP request headers
3341         https://bugs.webkit.org/show_bug.cgi?id=50493
3342
3343         Test: http/tests/inspector/extensions-headers.html
3344
3345         * inspector/Inspector.idl:
3346         * inspector/InspectorController.cpp:
3347         (WebCore::InspectorController::willSendRequest): Apply extra headers.
3348         (WebCore::InspectorController::setExtraHeaders):
3349         * inspector/InspectorController.h:
3350         * inspector/front-end/ExtensionAPI.js:
3351         (WebInspector.injectedExtensionAPI.Resources.prototype.getHAR):
3352         (WebInspector.injectedExtensionAPI.Resources.prototype.addRequestHeaders):
3353         * inspector/front-end/ExtensionServer.js:
3354         (WebInspector.ExtensionServer):
3355         (WebInspector.ExtensionServer.prototype._onAddRequestHeaders):
3356
3357 2010-12-16  Koan-Sin Tan  <koansin.tan@gmail.com>
3358
3359         Reviewed by Kent Tamura.
3360
3361         Glyphs in vertical text tests are rotated 90 degrees clockwise on Chromium Linux
3362         https://bugs.webkit.org/show_bug.cgi?id=50365
3363
3364         No new tests. But this makes Chromimium Linux show
3365         fast/blockflow/japanese-*-text.html and other vertical
3366         writing text correctly as on WebKit and Chromimum for Mac.
3367
3368         * platform/graphics/chromium/FontCacheLinux.cpp:
3369         (WebCore::FontCache::createFontPlatformData):
3370         * platform/graphics/chromium/FontLinux.cpp:
3371         (WebCore::Font::drawGlyphs):
3372         * platform/graphics/chromium/FontPlatformDataLinux.cpp:
3373         (WebCore::FontPlatformData::FontPlatformData):
3374         (WebCore::FontPlatformData::operator=):
3375         (WebCore::FontPlatformData::operator==):
3376         (WebCore::FontPlatformData::hash):
3377         * platform/graphics/chromium/FontPlatformDataLinux.h:
3378         (WebCore::FontPlatformData::FontPlatformData):
3379         (WebCore::FontPlatformData::orientation):
3380         * platform/graphics/chromium/SimpleFontDataLinux.cpp:
3381         (WebCore::SimpleFontData::platformInit):
3382         * platform/graphics/skia/FontCustomPlatformData.cpp:
3383         (WebCore::FontCustomPlatformData::fontPlatformData):
3384         * platform/graphics/skia/GlyphPageTreeNodeSkia.cpp:
3385         (WebCore::substituteWithVerticalGlyphs):
3386         (WebCore::GlyphPage::fill):
3387
3388 2010-12-16  Yi Shen  <yi.4.shen@nokia.com>, Tor Arne Vestbo <tor.arne.vestbo@nokia.com>
3389
3390         Reviewed by Eric Carlson.
3391
3392         Provide an interface to require using fullscreen mediaplayer
3393         https://bugs.webkit.org/show_bug.cgi?id=51133
3394
3395         Add ChromeClient::requiresFullscreenForVideoPlayback to require webkit
3396         to launch fullscreen video player for playing the html5 video. The 
3397         idea is that a browser vendor can specify this behavior through the
3398         platform plugin or something else by using this interface.
3399
3400         No new tests because no client implements requiresFullscreenForVideoPlayback yet.
3401
3402         * html/HTMLMediaElement.cpp:
3403         (WebCore::HTMLMediaElement::updatePlayState):
3404         (WebCore::HTMLMediaElement::exitFullscreen):
3405         * page/Chrome.cpp:
3406         (WebCore::Chrome::requiresFullscreenForVideoPlayback):
3407         * page/Chrome.h:
3408         * page/ChromeClient.h:
3409         (WebCore::ChromeClient::requiresFullscreenForVideoPlayback):
3410
3411 2010-12-16  Steve Block  <steveblock@google.com>
3412
3413         Reviewed by Steve Block.
3414
3415         GeolocationPositionCache needs refactoring
3416         https://bugs.webkit.org/show_bug.cgi?id=50826
3417
3418         No new tests, refactoring only.
3419
3420         * page/Geolocation.cpp:
3421         (WebCore::Geolocation::Geolocation):
3422         (WebCore::Geolocation::makeCachedPositionCallbacks):
3423         (WebCore::Geolocation::haveSuitableCachedPosition):
3424         (WebCore::Geolocation::positionChangedInternal):
3425         * page/Geolocation.h:
3426         * page/GeolocationPositionCache.cpp:
3427         (WebCore::GeolocationPositionCache::instance):
3428         (WebCore::GeolocationPositionCache::GeolocationPositionCache):
3429         (WebCore::GeolocationPositionCache::addUser):
3430         (WebCore::GeolocationPositionCache::removeUser):
3431         (WebCore::GeolocationPositionCache::setDatabasePath):
3432         (WebCore::GeolocationPositionCache::setCachedPosition):
3433         (WebCore::GeolocationPositionCache::cachedPosition):
3434         (WebCore::GeolocationPositionCache::readFromDatabase):
3435         (WebCore::GeolocationPositionCache::writeToDatabase):
3436         * page/GeolocationPositionCache.h:
3437         (WebCore::GeolocationPositionCacheWrapper::GeolocationPositionCacheWrapper):
3438         (WebCore::GeolocationPositionCacheWrapper::~GeolocationPositionCacheWrapper):
3439         (WebCore::GeolocationPositionCacheWrapper::setCachedPosition):
3440         (WebCore::GeolocationPositionCacheWrapper::cachedPosition):
3441
3442 2010-12-16  Ariya Hidayat  <ariya@sencha.com>
3443
3444         Reviewed by Andreas Kling.
3445
3446         [Qt] GraphicsContext should respect QWebView render hints
3447         https://bugs.webkit.org/show_bug.cgi?id=51208
3448
3449         GraphicsContext does not override SmoothPixmapTransform (see also
3450         r62762). To keep the same behavior, canvas default image interpolation
3451         quality is set to medium and QWebView's render hints by default also
3452         include SmoothPixmapTransform.
3453
3454         * html/HTMLCanvasElement.h:
3455         * platform/graphics/qt/GraphicsContextQt.cpp:
3456         (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
3457
3458 2010-12-16  Daniel Bates  <dbates@rim.com>
3459
3460         Formatting fix; un-indent one level all lines in [2793, 2808] (with respect to r74217)
3461         so as to be consistent with the formatting of the rest of this file.
3462
3463         Also, add an empty line between the win32* and wince* conditional include blocks.
3464
3465         * WebCore.pro:
3466
3467 2010-12-16  Daniel Bates  <dbates@rim.com>
3468
3469         Reviewed by Antonio Gomes.
3470
3471         [Qt] Only include ScrollAnimatorWin.h and compile ScrollAnimatorWin.cpp
3472         on Windows if ENABLE_SMOOTH_SCROLLING=1
3473         https://bugs.webkit.org/show_bug.cgi?id=51215
3474
3475         Conditionally include the files ScrollAnimatorWin.h and ScrollAnimatorWin.cpp when building
3476         the Qt Windows with smooth scrolling enabled.
3477
3478         No change in functionality since these files are guarded by ENABLE(SMOOTH_SCROLLING).
3479
3480         * WebCore.pro:
3481
3482 2010-12-16  Ryosuke Niwa  <rniwa@webkit.org>
3483
3484         Reviewed by Darin Adler.
3485
3486         execCommand('JustifyCenter') adds extra BR
3487         https://bugs.webkit.org/show_bug.cgi?id=51082
3488
3489         The bug was caused by moveParagraphContentsToNewBlockIfNecessary's adding a placeholder br
3490         to new block and not removing it later. Fixed the bug by removing it when the paragraph
3491         moved into the block didn't have a br at the end.
3492
3493         Test: editing/execCommand/justify.html
3494
3495         * editing/CompositeEditCommand.cpp:
3496         (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
3497
3498 2010-12-16  Jian Li  <jianli@chromium.org>
3499
3500         Unreviewed. Fixed chromium build break caused by r74207.
3501
3502         * platform/ContextMenuItem.h:
3503
3504 2010-12-16  Leandro Pereira  <leandro@profusion.mobi>
3505
3506         [EFL] Unreviewed build fix.
3507
3508         Disable ContextMenu support for now while support for
3509         CROSS_PLATFORM_MENUS is written.
3510
3511         * CMakeListsEfl.txt:
3512         * platform/ContextMenu.h:
3513         * platform/ContextMenuItem.h:
3514         * platform/efl/ContextMenuEfl.cpp:
3515         (WebCore::ContextMenu::ContextMenu):
3516         (WebCore::ContextMenu::getContextMenuItems):
3517         (WebCore::ContextMenu::createNativeMenuFromItems):
3518         (WebCore::ContextMenu::nativeMenu):
3519         * platform/efl/ContextMenuItemEfl.cpp:
3520         (WebCore::ContextMenuItem::ContextMenuItem):
3521         (WebCore::ContextMenuItem::~ContextMenuItem):
3522         (WebCore::ContextMenuItem::nativeMenuItem):
3523         (WebCore::ContextMenuItem::type):
3524         (WebCore::ContextMenuItem::setAction):
3525         (WebCore::ContextMenuItem::action):
3526         (WebCore::ContextMenuItem::setChecked):
3527         (WebCore::ContextMenuItem::checked):
3528         (WebCore::ContextMenuItem::setEnabled):
3529         (WebCore::ContextMenuItem::enabled):
3530         (WebCore::ContextMenuItem::setSubMenu):
3531
3532 2010-12-16  Ryosuke Niwa  <rniwa@webkit.org>
3533
3534         Reviewed by Darin Adler.
3535
3536         execCommand('styleWithCSS') is ignored when selection isn't inside a contenteditable area
3537         https://bugs.webkit.org/show_bug.cgi?id=51164
3538
3539         Fixed the bug by always enabling the StyleWithCSS command.
3540
3541         Test: editing/style/stylewithcss-without-selection.html
3542
3543         * editing/EditorCommand.cpp:
3544         (WebCore::createCommandMap): StyleWithCSS is enabled rather than enabledInRichlyEditableText.
3545
3546 2010-12-16  Anders Carlsson  <andersca@apple.com>
3547
3548         Reviewed by Darin Adler.
3549
3550         Save the manual plug-in stream data and redeliver it when the plug-in is initialized
3551         https://bugs.webkit.org/show_bug.cgi?id=51201
3552
3553         Export SharedBuffer related symbols.
3554
3555         * WebCore.exp.in:
3556
3557 2010-12-16  Pavel Feldman  <pfeldman@chromium.org>
3558
3559         Reviewed by Yury Semikhatsky.
3560
3561         Web Inspector: timeline records should only operate WebCore time.
3562         https://bugs.webkit.org/show_bug.cgi?id=51127
3563
3564         * inspector/InspectorTimelineAgent.cpp:
3565         (WebCore::InspectorTimelineAgent::didFinishLoadingResource):
3566         * inspector/TimelineRecordFactory.cpp:
3567         (WebCore::TimelineRecordFactory::createResourceFinishData):
3568         * inspe