2010-10-22 Adam Barth <abarth@webkit.org>
[WebKit-https.git] / WebCore / ChangeLog
1 2010-10-22  Adam Barth  <abarth@webkit.org>
2
3         Unreviewed, rolling out r70290.
4         http://trac.webkit.org/changeset/70290
5         https://bugs.webkit.org/show_bug.cgi?id=48111
6
7         Undelete Android build files.
8
9         * Android.mk: Added.
10
11 2010-10-22  Cosmin Truta  <ctruta@chromium.org>
12
13         Reviewed by Nikolas Zimmermann.
14
15         getBoundingClientRect does not work with SVG <text>
16         https://bugs.webkit.org/show_bug.cgi?id=46775
17
18         Dispatched the calls from Element::getBoundingClientRect to getBBox
19         through SVGElement::boundingBox.
20         Recognized SVGTextElement in addition to SVGStyledLocatableElement
21         as a class that provides getBBox.
22         Fixed the result of zooming: adjusted the getBoundingClientRect rectangle
23         for absolute zoom, even for SVG elements.
24
25         Additional cleanup task:
26         Removed redundant overloads of SVGStyledTransformableElement
27         methods: nearestViewportElement, farthestViewportElement, getBBox.
28         These methods are already inherited from SVGStyledLocatableElement.
29
30         Test: css3/zoom-coords.xhtml
31
32         * WebCore.xcodeproj/project.pbxproj: Set role of SVGLocatable.h to private.
33         * dom/Element.cpp:
34         (Element::getBoundingClientRect): Used SVGElement::boundingBox.
35         Adjusted coordinates for absolute zoom, for all kinds of elements.
36         * svg/SVGElement.cpp:
37         * svg/SVGElement.h:
38         (SVGElement::boundingBox): Added.
39         * svg/SVGStyledTransformableElement.cpp:
40         * svg/SVGStyledTransformableElement.h:
41         (SVGStyledTransformableElement::nearestViewportElement): Removed.
42         (SVGStyledTransformableElement::farthestViewportElement): Removed.
43         (SVGStyledTransformableElement::getBBox): Removed.
44
45 2010-10-22  Patrick Gansterer  <paroga@webkit.org>
46
47         Reviewed by Adam Roben.
48
49         [WIN] Add stubs for SocketStream classes
50         https://bugs.webkit.org/show_bug.cgi?id=47983
51
52         * platform/network/win/SocketStreamError.h: Copied from WebCore/platform/network/curl/SocketStreamError.h.
53         (WebCore::SocketStreamError::SocketStreamError):
54         * platform/network/win/SocketStreamHandle.h: Copied from WebCore/platform/network/curl/SocketStreamHandle.h.
55         (WebCore::SocketStreamHandle::create):
56         * platform/network/win/SocketStreamHandleWin.cpp: Copied from WebCore/platform/network/curl/SocketStreamHandleCurl.cpp.
57
58 2010-10-22  Patrick Gansterer  <paroga@webkit.org>
59
60         Reviewed by Adam Roben.
61
62         Disable cache in ResourceHandleWin
63         https://bugs.webkit.org/show_bug.cgi?id=48128
64
65         The caching of windows does not work correctly, so disable it for now.
66
67         * platform/network/win/ResourceHandleWin.cpp:
68         (WebCore::ResourceHandle::start):
69
70 2010-10-22  Jia Pu  <jpu@apple.com>
71
72         Reviewed by Dan Bernstein.
73
74         Regression (r69548): cancelled autocorrection suggestion is still applied.
75         https://bugs.webkit.org/show_bug.cgi?id=48081
76         <rdar://problem/8579765>
77         
78         The test requires a 0.3 second delay using setTimeout(). So we put it in manual-tests.
79
80         * editing/Editor.cpp:
81         (WebCore::Editor::handleRejectedCorrection): Clear autocorrection info when user dismissed the panel.
82         * manual-tests/autocorrection/autocorrection-cancelled-by-ESC.html: Added.
83
84 2010-10-22  Andreas Kling  <kling@webkit.org>
85
86         Reviewed by Kenneth Rohde Christiansen.
87
88         [Gtk] Fix canvas/philip/tests/2d.path.isPointInPath.nonfinite.html
89         https://bugs.webkit.org/show_bug.cgi?id=48133
90
91         * platform/graphics/cairo/PathCairo.cpp:
92         (WebCore::Path::contains): Return false if any x or y are nonfinite.
93
94 2010-10-22  Alexander Pavlov  <apavlov@chromium.org>
95
96         Reviewed by Pavel Feldman.
97
98         Web Inspector: Implement property toggling in InspectorCSSAgent
99
100         This change implements enablement/disablement and setting of style properties.
101         Disabled properties are persisted in the (top-level) scope of InspectorStyleSheet.
102         https://bugs.webkit.org/show_bug.cgi?id=47339
103
104         Drive-by: fixes for the Web Inspector Protocol format.
105
106         * inspector/InspectorCSSAgent.cpp:
107         (WebCore::InspectorCSSAgent::getComputedStyleForNode2):
108         (WebCore::InspectorCSSAgent::getInheritedStylesForNode2):
109         (WebCore::InspectorCSSAgent::setPropertyText2):
110         (WebCore::InspectorCSSAgent::toggleProperty2):
111         (WebCore::InspectorCSSAgent::setRuleSelector2):
112         (WebCore::InspectorCSSAgent::buildObjectForAttributeStyles):
113         * inspector/InspectorCSSAgent.h:
114         * inspector/InspectorStyleSheet.cpp:
115         (WebCore::InspectorStyle::buildObjectForStyle):
116         (WebCore::InspectorStyle::setPropertyText):
117         (WebCore::InspectorStyle::toggleProperty):
118         (WebCore::InspectorStyle::disabledIndexByOrdinal):
119         (WebCore::InspectorStyle::styleText):
120         (WebCore::InspectorStyle::disableProperty):
121         (WebCore::InspectorStyle::enableProperty):
122         (WebCore::InspectorStyle::populateAllProperties):
123         (WebCore::InspectorStyle::populateObjectWithStyleProperties):
124         (WebCore::InspectorStyle::shiftDisabledProperties):
125         (WebCore::InspectorStyle::replacePropertyInStyleText):
126         (WebCore::InspectorStyle::shorthandValue):
127         (WebCore::InspectorStyle::shorthandPriority):
128         (WebCore::InspectorStyle::longhandProperties):
129         (WebCore::InspectorStyleSheet::setText):
130         (WebCore::InspectorStyleSheet::setRuleSelector):
131         (WebCore::InspectorStyleSheet::addRule):
132         (WebCore::InspectorStyleSheet::ruleForId):
133         (WebCore::InspectorStyleSheet::buildObjectForStyleSheet):
134         (WebCore::InspectorStyleSheet::buildObjectForRule):
135         (WebCore::InspectorStyleSheet::buildObjectForStyle):
136         (WebCore::InspectorStyleSheet::setPropertyText):
137         (WebCore::InspectorStyleSheet::toggleProperty):
138         (WebCore::InspectorStyleSheet::styleForId):
139         (WebCore::InspectorStyleSheet::inspectorStyleForId):
140         (WebCore::InspectorStyleSheet::rememberInspectorStyle):
141         (WebCore::InspectorStyleSheet::forgetInspectorStyle):
142         (WebCore::InspectorStyleSheet::ruleOrStyleId):
143         (WebCore::InspectorStyleSheet::ensureText):
144         (WebCore::InspectorStyleSheet::setStyleText):
145         (WebCore::InspectorStyleSheet::styleSheetTextWithChangedStyle):
146         (WebCore::InspectorStyleSheet::ruleId):
147         (WebCore::InspectorStyleSheet::revalidateStyle):
148         (WebCore::InspectorStyleSheet::originalStyleSheetText):
149         (WebCore::InspectorStyleSheet::resourceStyleSheetText):
150         (WebCore::InspectorStyleSheetForInlineStyle::InspectorStyleSheetForInlineStyle):
151         (WebCore::InspectorStyleSheetForInlineStyle::setStyleText):
152         (WebCore::InspectorStyleSheetForInlineStyle::inspectorStyleForId):
153         * inspector/InspectorStyleSheet.h:
154         (WebCore::InspectorCSSId::createFromParts):
155         (WebCore::InspectorCSSId::InspectorCSSId):
156         (WebCore::InspectorCSSId::styleSheetId):
157         (WebCore::InspectorCSSId::ordinal):
158         (WebCore::InspectorCSSId::isEmpty):
159         (WebCore::InspectorCSSId::asString):
160         (WebCore::InspectorStyleProperty::InspectorStyleProperty):
161         (WebCore::InspectorStyle::create):
162         (WebCore::InspectorStyle::InspectorStyle):
163         (WebCore::InspectorStyle::cssStyle):
164         (WebCore::InspectorStyle::hasDisabledProperties):
165         (WebCore::InspectorStyleSheet::styleId):
166         (WebCore::InspectorStyleSheetForInlineStyle::styleForId):
167         (WebCore::InspectorStyleSheetForInlineStyle::ruleSourceDataFor):
168         (WebCore::InspectorStyleSheetForInlineStyle::rememberInspectorStyle):
169         (WebCore::InspectorStyleSheetForInlineStyle::forgetInspectorStyle):
170
171 2010-10-22  Pavel Feldman  <pfeldman@chromium.org>
172
173         Reviewed by Yury Semikhatsky.
174
175         Web Inspector: update resources tree in storage panel upon network events.
176         https://bugs.webkit.org/show_bug.cgi?id=48121
177
178         * inspector/Inspector.idl:
179         * inspector/InspectorResourceAgent.cpp:
180         (WebCore::buildObjectForDocumentLoader):
181         (WebCore::buildObjectForFrameTree):
182         (WebCore::InspectorResourceAgent::didCommitLoad):
183         (WebCore::InspectorResourceAgent::frameDetachedFromParent):
184         * inspector/front-end/ResourceManager.js:
185         (WebInspector.ResourceManager):
186         (WebInspector.ResourceManager.prototype._createResource):
187         (WebInspector.ResourceManager.prototype.didReceiveResponse):
188         (WebInspector.ResourceManager.prototype.didLoadResourceFromMemoryCache):
189         (WebInspector.ResourceManager.prototype.didCommitLoadForFrame):
190         (WebInspector.ResourceManager.prototype._addResourceToStorageFrame):
191         (WebInspector.ResourceManager.prototype.frameDetachedFromParent):
192         (WebInspector.ResourceManager.prototype._clearResources):
193         (WebInspector.ResourceManager.prototype._processCachedResources):
194         (WebInspector.ResourceManager.prototype._addFramesRecursively):
195         (WebInspector.ResourceManager.getContents):
196         * inspector/front-end/StoragePanel.js:
197         (WebInspector.StoragePanel.prototype.addOrUpdateFrame):
198         (WebInspector.StoragePanel.prototype.removeFrame):
199         (WebInspector.StoragePanel.prototype.addResourceToFrame):
200         (WebInspector.StoragePanel.prototype.removeResourcesFromFrame):
201         (WebInspector.BaseStorageTreeElement.prototype.onattach):
202         (WebInspector.BaseStorageTreeElement.prototype.onreveal):
203         (WebInspector.BaseStorageTreeElement.prototype.set titleText):
204         (WebInspector.FrameTreeElement):
205         (WebInspector.FrameTreeElement.prototype.onselect):
206         (WebInspector.FrameTreeElement.prototype.get displayName):
207         (WebInspector.FrameTreeElement.prototype.set displayName):
208
209 2010-10-22  François Sausset  <sausset@gmail.com>
210
211         Reviewed by Kenneth Rohde Christiansen.
212
213         Fix wrong xHeight() value for Apple Symbols font.
214         https://bugs.webkit.org/show_bug.cgi?id=41535
215
216         Test: mathml/xHeight.xhtml
217
218         * platform/graphics/mac/SimpleFontDataMac.mm:
219         (WebCore::SimpleFontData::platformInit):
220
221 2010-10-22  Nikolas Zimmermann  <nzimmermann@rim.com>
222
223         Reviewed by Dirk Schulze.
224
225         Further preparations to deploy the new SVGAnimatedProperty concept for the rest of the SVG datatypes
226         https://bugs.webkit.org/show_bug.cgi?id=48125
227
228         Model SVGListPropertyTearOff similar to SVGPropertyTearOff, allow it to be used for SVGXXXList datatypes, that are not animated. (SVGStringList)
229         Recognize all SVG primitive datatypes in SVGPropertyTraits.
230         Add a new - temporary - macro to support multiple animated properties that map to a single DOM attribute (kernelUnitLength attribute vs. kernelUnitLengthX/Y properties).
231         These macros will all be removed and expanded by their content, as soon as the transition to the new SVGAnimatedProperty concept is done.
232
233         Doesn't affect any tests yet, as the code is still unused.
234
235         * svg/properties/SVGAnimatedProperty.h:
236         (WebCore::SVGAnimatedProperty::lookupOrCreateWrapper):
237         (WebCore::SVGAnimatedProperty::lookupWrapper):
238         * svg/properties/SVGAnimatedPropertyMacros.h:
239         * svg/properties/SVGAnimatedPropertySynchronizer.h:
240         * svg/properties/SVGListPropertyTearOff.h:
241         (WebCore::SVGListPropertyTearOff::create):
242         (WebCore::SVGListPropertyTearOff::removeItemFromList):
243         (WebCore::SVGListPropertyTearOff::detachListWrappers):
244         (WebCore::SVGListPropertyTearOff::clear):
245         (WebCore::SVGListPropertyTearOff::numberOfItems):
246         (WebCore::SVGListPropertyTearOff::initialize):
247         (WebCore::SVGListPropertyTearOff::getItem):
248         (WebCore::SVGListPropertyTearOff::insertItemBefore):
249         (WebCore::SVGListPropertyTearOff::replaceItem):
250         (WebCore::SVGListPropertyTearOff::removeItem):
251         (WebCore::SVGListPropertyTearOff::appendItem):
252         (WebCore::SVGListPropertyTearOff::SVGListPropertyTearOff):
253         (WebCore::SVGListPropertyTearOff::~SVGListPropertyTearOff):
254         (WebCore::SVGListPropertyTearOff::commitChange):
255         * svg/properties/SVGPropertyTearOff.h:
256         * svg/properties/SVGPropertyTraits.h:
257
258 2010-10-22  Sheriff Bot  <webkit.review.bot@gmail.com>
259
260         Unreviewed, rolling out r70301.
261         http://trac.webkit.org/changeset/70301
262         https://bugs.webkit.org/show_bug.cgi?id=48126
263
264         "Lang attribute layout tests failing" (Requested by satish on
265         #webkit).
266
267         * dom/Element.cpp:
268         (WebCore::Element::computeInheritedLanguage):
269         * page/SpeechInput.cpp:
270         (WebCore::SpeechInput::startRecognition):
271         * page/SpeechInput.h:
272         * page/SpeechInputClient.h:
273         * platform/mock/SpeechInputClientMock.cpp:
274         (WebCore::SpeechInputClientMock::startRecognition):
275         (WebCore::SpeechInputClientMock::setRecognitionResult):
276         (WebCore::SpeechInputClientMock::timerFired):
277         * platform/mock/SpeechInputClientMock.h:
278         * rendering/TextControlInnerElements.cpp:
279         (WebCore::TextControlInnerElement::attachInnerElement):
280         (WebCore::SearchFieldCancelButtonElement::detach):
281         (WebCore::SpinButtonElement::defaultEventHandler):
282         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
283         (WebCore::InputFieldSpeechButtonElement::detach):
284
285 2010-10-22  Leandro Gracia Gil  <leandrogracia@google.com>
286
287         Reviewed by Jeremy Orlow.
288
289         Patch the current speech input implementation to use and validate the
290         nearest language tag. The language is now passed to the startRecognition
291         methods so that language-specific recognition could be used. Also added
292         a second parameter to setMockSpeechInputResult for the language used in
293         speech recognition.
294         https://bugs.webkit.org/show_bug.cgi?id=47089
295
296         This is the 2nd of a 4-sided patch in Chromium and WebKit. For more
297         details see http://codereview.chromium.org/3615005/show and
298         http://codereview.chromium.org/3595018/show.
299
300         Test: fast/speech/input-text-language-tag.html
301
302         * dom/Element.cpp:
303         (WebCore::Element::computeInheritedLanguage): includes a brief character
304           validation for the BCP 47 language tag.
305         * page/SpeechInput.cpp:
306         (WebCore::SpeechInput::startRecognition):
307         * page/SpeechInput.h:
308         * page/SpeechInputClient.h:
309         * platform/mock/SpeechInputClientMock.cpp:
310         (WebCore::SpeechInputClientMock::startRecognition):
311         (WebCore::SpeechInputClientMock::setRecognitionResult): results are now
312           stored by language using a hash map.
313         (WebCore::SpeechInputClientMock::timerFired):
314         * platform/mock/SpeechInputClientMock.h:
315         * rendering/TextControlInnerElements.cpp:
316         (WebCore::TextControlInnerElement::attachInnerElement):
317         (WebCore::SearchFieldCancelButtonElement::detach):
318         (WebCore::SpinButtonElement::defaultEventHandler):
319         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
320         (WebCore::InputFieldSpeechButtonElement::detach):
321
322 2010-10-21  Yury Semikhatsky  <yurys@chromium.org>
323
324         Unreviewed, rolling out r70298.WebKit win compilation failure.
325         http://trac.webkit.org/changeset/70298
326         https://bugs.webkit.org/show_bug.cgi?id=48122
327
328 2010-10-21  Yury Semikhatsky  <yurys@chromium.org>
329
330         Reviewed by Pavel Feldman.
331
332         Web Inspector: decouple ScriptArguments from ScriptCallStack
333         https://bugs.webkit.org/show_bug.cgi?id=48058
334
335         ScriptCallFrame and ScriptCallStack are now the same for both JSC and V8.
336         The factory functions that allow to create ScriptCallStack from VM-specific
337         objects are defined in ScriptCallStackFactory.cpp.
338
339         ScriptArguments class is used for passing arguments from JS code to the native
340         part.
341
342         No new tests. This refactoring is covered with existing Console tests.
343
344         * WebCore.gypi:
345         * WebCore.xcodeproj/project.pbxproj:
346         * bindings/js/ScriptCallFrame.cpp: Removed.
347         * bindings/js/ScriptCallFrame.h: Removed.
348         * bindings/js/ScriptCallStack.cpp: Removed.
349         * bindings/js/ScriptCallStack.h: Removed.
350         * bindings/js/ScriptCallStackFactory.cpp: Added.
351         (WebCore::createScriptCallStack):
352         (WebCore::createScriptArguments):
353         (WebCore::ScriptCallStack::stackTrace):
354         * bindings/js/ScriptCallStackFactory.h: Added.
355         * bindings/js/ScriptState.h:
356         (WebCore::ScriptStateProtectedPtr::get):
357         * bindings/scripts/CodeGeneratorJS.pm:
358         * bindings/scripts/CodeGeneratorV8.pm:
359         * bindings/v8/ScriptCallFrame.cpp: Removed.
360         * bindings/v8/ScriptCallFrame.h: Removed.
361         * bindings/v8/ScriptCallStack.cpp: Removed.
362         * bindings/v8/ScriptCallStack.h: Removed.
363         * bindings/v8/ScriptCallStackFactory.cpp: Added.
364         (WebCore::toScriptCallFrame):
365         (WebCore::toScriptCallFramesVector):
366         (WebCore::createScriptCallStack):
367         (WebCore::createScriptArguments):
368         (WebCore::ScriptCallStack::stackTrace):
369         * bindings/v8/ScriptCallStackFactory.h: Added.
370         * bindings/v8/ScriptController.cpp:
371         (WebCore::ScriptController::setCaptureCallStackForUncaughtExceptions):
372         * bindings/v8/ScriptState.h:
373         (WebCore::ScriptStateProtectedPtr::get):
374         * bindings/v8/V8ConsoleMessage.cpp:
375         (WebCore::V8ConsoleMessage::handler):
376         (WebCore::V8ConsoleMessage::dispatchNow):
377         * bindings/v8/V8ConsoleMessage.h:
378         * bindings/v8/custom/V8ConsoleCustom.cpp:
379         (WebCore::V8Console::traceCallback):
380         (WebCore::V8Console::assertCallback):
381         * inspector/ConsoleMessage.cpp:
382         (WebCore::ConsoleMessage::ConsoleMessage):
383         (WebCore::ConsoleMessage::addToFrontend):
384         (WebCore::ConsoleMessage::updateRepeatCountInConsole):
385         (WebCore::ConsoleMessage::isEqual):
386         * inspector/ConsoleMessage.h:
387         * inspector/InspectorController.cpp:
388         (WebCore::InspectorController::addMessageToConsole):
389         (WebCore::InspectorController::startGroup):
390         * inspector/InspectorController.h:
391         * inspector/ScriptArguments.cpp: Added.
392         (WebCore::ScriptArguments::ScriptArguments):
393         (WebCore::ScriptArguments::~ScriptArguments):
394         (WebCore::ScriptArguments::argumentAt):
395         (WebCore::ScriptArguments::globalState):
396         (WebCore::ScriptArguments::getFirstArgumentAsString):
397         (WebCore::ScriptArguments::isEqual):
398         * inspector/ScriptArguments.h: Added.
399         (WebCore::ScriptArguments::argumentCount):
400         * inspector/ScriptCallFrame.cpp: Added.
401         (WebCore::ScriptCallFrame::ScriptCallFrame):
402         (WebCore::ScriptCallFrame::~ScriptCallFrame):
403         (WebCore::ScriptCallFrame::isEqual):
404         (WebCore::ScriptCallFrame::buildInspectorObject):
405         * inspector/ScriptCallFrame.h: Added.
406         (WebCore::ScriptCallFrame::functionName):
407         (WebCore::ScriptCallFrame::sourceURL):
408         (WebCore::ScriptCallFrame::lineNumber):
409         * inspector/ScriptCallStack.cpp: Added.
410         (WebCore::ScriptCallStack::ScriptCallStack):
411         (WebCore::ScriptCallStack::~ScriptCallStack):
412         (WebCore::ScriptCallStack::at):
413         (WebCore::ScriptCallStack::size):
414         (WebCore::ScriptCallStack::isEqual):
415         (WebCore::ScriptCallStack::buildInspectorObject):
416         * inspector/ScriptCallStack.h: Added.
417         * page/Console.cpp:
418         (WebCore::Console::addMessage):
419         (WebCore::Console::debug):
420         (WebCore::Console::error):
421         (WebCore::Console::info):
422         (WebCore::Console::log):
423         (WebCore::Console::dir):
424         (WebCore::Console::dirxml):
425         (WebCore::Console::trace):
426         (WebCore::Console::assertCondition):
427         (WebCore::Console::count):
428         (WebCore::Console::markTimeline):
429         (WebCore::Console::profile):
430         (WebCore::Console::profileEnd):
431         (WebCore::Console::timeEnd):
432         (WebCore::Console::group):
433         (WebCore::Console::groupCollapsed):
434         (WebCore::Console::shouldCaptureFullStackTrace):
435         (WebCore::Console::warn):
436         * page/Console.h:
437
438 2010-10-22  Benjamin Poulain  <benjamin.poulain@nokia.com>
439
440         Reviewed by Simon Hausmann.
441
442         [Qt] All widgets are rendered incorrectly when rendered through a cache
443         https://bugs.webkit.org/show_bug.cgi?id=47767
444
445         When a widget is not available to the RenderTheme, default
446         value are used for the state.
447
448         * platform/qt/RenderThemeQt.cpp:
449         (WebCore::initStyleOption):
450         (WebCore::RenderThemeQt::paintButton):
451         (WebCore::RenderThemeQt::paintTextField):
452         (WebCore::RenderThemeQt::paintMenuList):
453         (WebCore::RenderThemeQt::paintMenuListButton):
454         (WebCore::RenderThemeQt::paintProgressBar):
455         (WebCore::RenderThemeQt::paintSliderTrack):
456
457 2010-10-22  Zoltan Herczeg  <zherczeg@webkit.org>
458
459         Reviewed by Dirk Schulze.
460
461         Moving all bounding box related calculation to RenderSVGResourceFilterPrimitive
462         https://bugs.webkit.org/show_bug.cgi?id=47174
463
464         The primitive sub-region calculation was spread in many
465         files across in WebKit source code, and all of them are moved
466         to RenderSVGResourceFilterPrimitive, where they should be.
467         In this patch the calculation is a static method which will
468         be turned to a real member function in the near future.
469
470         * platform/graphics/filters/FETile.cpp:
471         * platform/graphics/filters/FETile.h:
472         (WebCore::FETile::filterEffectType):
473         * platform/graphics/filters/Filter.h:
474         * platform/graphics/filters/FilterEffect.cpp:
475         * platform/graphics/filters/FilterEffect.h:
476         * rendering/RenderSVGResourceFilter.cpp:
477         (WebCore::RenderSVGResourceFilter::applyResource):
478         * rendering/RenderSVGResourceFilterPrimitive.cpp:
479         (WebCore::RenderSVGResourceFilterPrimitive::determineFilterPrimitiveSubregion):
480         * rendering/RenderSVGResourceFilterPrimitive.h:
481         (WebCore::RenderSVGResourceFilterPrimitive::RenderSVGResourceFilterPrimitive):
482         * svg/graphics/filters/SVGFilter.cpp:
483         * svg/graphics/filters/SVGFilter.h:
484         (WebCore::SVGFilter::mapLocalRectToAbsoluteRect):
485         (WebCore::SVGFilter::targetBoundingBox):
486
487 2010-10-21  Kwang Yul Seo  <skyul@company100.net>
488
489         Reviewed by Kent Tamura.
490
491         [BREWMP] Add a String constructor which takes AECHAR*
492         https://bugs.webkit.org/show_bug.cgi?id=45043
493
494         Implement String(const AECHAR*) constructor.
495
496         * platform/text/brew/StringBrew.cpp: Added.
497         (WTF::String::String):
498
499 2010-10-21  James Simonsen  <simonjam@chromium.org>
500
501         Reviewed by Adam Barth.
502
503         HTMLTreeBuilder's InForeignContent code needs a re-write
504
505         Foreign Content mode was changed significantly by:
506         http://www.w3.org/Bugs/Public/show_bug.cgi?id=10314
507
508         The differences can be seen here:
509         http://html5.org/tools/web-apps-tracker?from=5520&to=5522
510
511         This bug addresses all spec changes in the diff except the select scope
512         changes, which have already been fixed in a separate bug.
513
514         https://bugs.webkit.org/show_bug.cgi?id=46676
515
516         * html/parser/HTMLElementStack.cpp:
517         (WebCore::HTMLNames::isScopeMarker): Add foreign elements to list.
518         * html/parser/HTMLTreeBuilder.cpp:
519         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
520         (WebCore::HTMLTreeBuilder::processDoctypeToken): Switch mode before reprocessing any tokens.
521         (WebCore::HTMLTreeBuilder::processStartTagForInBody): Ditto. Remove secondary insertion mode.
522         (WebCore::HTMLTreeBuilder::processStartTagForInTable): Switch mode before reprocessing any tokens.
523         (WebCore::HTMLTreeBuilder::processStartTag): Ditto. Remove secondary insertion mode.
524         (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately): Remove foreign var. Use hasTagName() instead of == localName() to fix bug with foreign elements.
525         (WebCore::HTMLTreeBuilder::processEndTagForInTableBody): Switch mode before reprocessing any tokens.
526         (WebCore::HTMLTreeBuilder::processEndTagForInRow): Ditto.
527         (WebCore::HTMLTreeBuilder::processEndTagForInCell): Ditto.
528         (WebCore::HTMLTreeBuilder::processEndTagForInBody): Ditto.
529         (WebCore::HTMLTreeBuilder::processEndTag): Ditto.
530         (WebCore::HTMLTreeBuilder::prepareToReprocessToken): Added.
531         (WebCore::HTMLTreeBuilder::reprocessStartTag): Added.
532         (WebCore::HTMLTreeBuilder::reprocessEndTag): Added.
533         (WebCore::HTMLTreeBuilder::processForeignContentUsingInBodyModeAndResetMode): Added.
534         (WebCore::HTMLTreeBuilder::resetForeignInsertionMode): Added.
535         (WebCore::HTMLTreeBuilder::processComment): Switch mode before reprocessing any tokens.
536         (WebCore::HTMLTreeBuilder::processCharacterBuffer): Ditto.
537         (WebCore::HTMLTreeBuilder::processEndOfFile): Ditto.
538         * html/parser/HTMLTreeBuilder.h: Functions and member for tracking potential switch from InForeignContentMode.
539
540 2010-10-21  Adam Barth  <abarth@webkit.org>
541
542         Reviewed by David Levin.
543
544         Remove Android build system
545         https://bugs.webkit.org/show_bug.cgi?id=48111
546
547         As far as I can tell, these files are not maintained.  They are a
548         mantaince burden on the project.  If folks would like to come out of
549         the woodwork and maintain these files, that's great.  At the moment,
550         they seem like dead weight for the project.
551
552         * Android.mk: Removed.
553
554 2010-10-21  Kwang Yul Seo  <skyul@company100.net>
555
556         Reviewed by James Robinson.
557
558         Make sure skia is not Chromium specific
559         https://bugs.webkit.org/show_bug.cgi?id=39672
560
561         GlyphPageTreeNodeLinux does not depend on Linux or Chromium.
562         Move GlyphPageTreeNodeLinux to platform/graphics/skia and rename it to
563         GlyphPageTreeNodeSkia.cpp so that other ports can use it.
564
565         * WebCore.gyp/WebCore.gyp:
566         * WebCore.gypi:
567         * platform/graphics/chromium/GlyphPageTreeNodeLinux.cpp: Removed.
568         * platform/graphics/skia/GlyphPageTreeNodeSkia.cpp: Added.
569
570 2010-10-21  Ryosuke Niwa  <rniwa@webkit.org>
571
572         Reviewed by Tony Chang.
573
574         removeFormat needs to be reimplemented
575         https://bugs.webkit.org/show_bug.cgi?id=43017
576
577         Reimplemented execCommand('RemoveFormat', false, null). New implementation removes
578         the same elements removed by Internet Explorer. Because WebKit supports StyleWithCSS
579         we also reset any editing styles to match that of the root editable element
580         while Internet Explorer does not remove any CSS styles.
581
582         New implementation uses ApplyStyleCommand to remove appropriate elements and reset the style.
583         Added new constructor and member variable to ApplyStyleCommand to support mass-removal of elements
584         since it's inefficient to call ApplyStyleCommand on each element we're removing.
585
586         To avoid an infinite loop in pushDownInlineStyleAroundNode when mass-removing, WebKit no longer
587         push down element one level at a time. Instead, we keep a stack of styled elements to be applied,
588         and apply wrap siblings of targetNode's ancestors by all of them at once.
589
590         Tests: editing/execCommand/remove-format-elements.html
591                editing/execCommand/remove-format-multiple-elements.html
592
593         * editing/ApplyStyleCommand.cpp:
594         (WebCore::ApplyStyleCommand::ApplyStyleCommand): Added; this version takes style and a function pointer
595         to a boolean function that determines which element needs to removed, and set m_removeOnly to true.
596         (WebCore::ApplyStyleCommand::doApply): Added support for m_isInlineElementToRemoveFunction.
597         (WebCore::ApplyStyleCommand::applyBlockStyle): Ditto.
598         (WebCore::ApplyStyleCommand::applyInlineStyleToNodeRange): Exits early if m_removeOnly is true.
599         (WebCore::ApplyStyleCommand::isStyledInlineElementToRemove): Added.
600         (WebCore::ApplyStyleCommand::removeStyleFromRunBeforeApplyingStyle): Calls isStyledInlineElementToRemove.
601         (WebCore::ApplyStyleCommand::removeInlineStyleFromElement): Ditto.
602         (WebCore::ApplyStyleCommand::removeInlineStyle): Ditto.
603         (WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode): See above.
604         * editing/ApplyStyleCommand.h:
605         (WebCore::ApplyStyleCommand::create): Added.
606         * editing/RemoveFormatCommand.cpp:
607         (WebCore::isElementForRemoveFormatCommand): Added.
608         (WebCore::RemoveFormatCommand::doApply): Rewritten.
609
610 2010-10-21  Tony Gentilcore  <tonyg@chromium.org>
611
612         Reviewed by Adam Barth.
613
614         Ignore document.write() when it comes from a network task
615         https://bugs.webkit.org/show_bug.cgi?id=47560
616
617         This implements the update to the spec made by:
618         http://www.w3.org/Bugs/Public/show_bug.cgi?id=9767
619
620         It also matches the latest Firefox 4 beta. The notable change is that
621         document.write from a deferred script no longer works. This avoids
622         blowing the patch away.
623
624         * dom/Document.cpp:
625         (WebCore::Document::Document):
626         (WebCore::Document::write):
627         * dom/Document.h:
628         (WebCore::DestructiveWriteCountIncrementer::DestructiveWriteCountIncrementer):
629         (WebCore::Document::ignoreDestructiveWriteCountIncrementer):
630         * dom/ScriptElement.cpp:
631         (WebCore::ScriptElement::insertedIntoDocument):
632         (WebCore::ScriptElementData::ScriptElementData):
633         (WebCore::ScriptElementData::evaluateScript):
634         * dom/ScriptElement.h:
635         * html/parser/HTMLScriptRunner.cpp:
636         (WebCore::HTMLScriptRunner::executePendingScriptAndDispatchEvent):
637
638 2010-10-21  Ryosuke Niwa  <rniwa@webkit.org>
639
640         Unreviewed Leopard build fix attempt.
641
642         Explicitly cast the return value of deg2rad to float.
643
644         * rendering/InlineTextBox.cpp:
645         (WebCore::InlineTextBox::paint):
646
647 2010-10-21  Mihai Parparita  <mihaip@chromium.org>
648
649         Reviewed by James Robinson.
650
651         [Chromium] Fix Chromium Mac build
652         https://bugs.webkit.org/show_bug.cgi?id=48096
653
654         Fix Chromium Mac build after r70225 (Chromium uses Core Text but is not
655         PLATFORM(MAC)).
656
657         * platform/graphics/SimpleFontData.h:
658
659 2010-10-21  Xiaomei Ji  <xji@chromium.org>
660
661         Reviewed by David Levin.
662
663         Performance improvement for FontLinux.
664         https://bugs.webkit.org/show_bug.cgi?id=47019
665         
666         Reduce the number of calls for the normalization function because converting
667         to NFC form is very expensive.
668     
669         Combine space normalization and character mirroring into one text scan.
670
671         Test: platform/chromium/fast/text/font-linux-normalize.html
672
673         * platform/graphics/chromium/FontLinux.cpp:
674         (WebCore::TextRunWalker::TextRunWalker):
675         (WebCore::TextRunWalker::~TextRunWalker):
676         (WebCore::TextRunWalker::getNormalizedTextRun):
677         (WebCore::TextRunWalker::normalizeSpacesAndMirrorChars):
678
679 2010-10-21  David Hyatt  <hyatt@apple.com>
680
681         Reviewed by Darin Adler.
682
683         https://bugs.webkit.org/show_bug.cgi?id=48085
684
685         Make basic vertical text painting work.  This includes the text itself, underlines, overlines, line-throughs and shadows.
686
687         Added fast/blockflow/english-lr-text.html
688
689         * rendering/InlineFlowBox.cpp:
690         (WebCore::InlineFlowBox::paint):
691         * rendering/InlineFlowBox.h:
692         * rendering/InlineTextBox.cpp:
693         (WebCore::InlineTextBox::applyShadowToGraphicsContext):
694         (WebCore::paintTextWithShadows):
695         (WebCore::InlineTextBox::paint):
696         (WebCore::InlineTextBox::paintDecoration):
697         (WebCore::InlineTextBox::paintTextMatchMarker):
698         * rendering/InlineTextBox.h:
699         * rendering/svg/SVGInlineTextBox.cpp:
700         (WebCore::SVGInlineTextBox::paintTextWithShadows):
701
702 2010-10-21  No'am Rosenthal  <noam.rosenthal@nokia.com>
703
704         Reviewed by Simon Hausmann.
705
706         [Qt] When doing rendering through tiling, it seems the tiles are not initialized before rendering
707         https://bugs.webkit.org/show_bug.cgi?id=48070
708
709         No new tests. Auto-tests for Tiled Backing Store should be added, see bug 48082
710
711         * page/Frame.cpp:
712         (WebCore::Frame::tiledBackingStoreBackgroundColor):
713         * page/Frame.h:
714         * platform/graphics/TiledBackingStoreClient.h:
715         * platform/graphics/qt/TileQt.cpp:
716         (WebCore::Tile::updateBackBuffer):
717
718 2010-10-21  Carlos Garcia Campos  <cgarcia@igalia.com>
719
720         Reviewed by Martin Robinson.
721
722         [GTK] Use GCharsetConverter instead of g_iconv in TextCodecGtk
723         https://bugs.webkit.org/show_bug.cgi?id=47896
724
725         It makes error handling easier. Fixes tests:
726          fast/encoding/invalid-multi-byte-over-consumption.html
727          fast/encoding/invalid-xml.html
728          fast/encoding/japanese-encoding-mix.html
729         when building with glib unicode
730
731         * platform/text/gtk/TextCodecGtk.cpp:
732         (WebCore::TextCodecGtk::TextCodecGtk):
733         (WebCore::TextCodecGtk::~TextCodecGtk):
734         (WebCore::TextCodecGtk::createIConvDecoder):
735         (WebCore::TextCodecGtk::createIConvEncoder):
736         (WebCore::TextCodecGtk::decode):
737         (WebCore::TextCodecGtk::encode):
738         * platform/text/gtk/TextCodecGtk.h:
739
740 2010-10-21  Chris Fleizach  <cfleizach@apple.com>
741
742         Reviewed by Beth Dakin.
743
744         AX: contenteditable nodes do not return correct AXSelectedText* attributes
745         https://bugs.webkit.org/show_bug.cgi?id=48080
746
747         The ariaSelectedDOMTextRange() method was not returning the correct values. 
748         The fix is to return a plain text range that represents the current selection.
749
750         Test: platform/mac/accessibility/content-editable-range-properties.html
751
752         * accessibility/AccessibilityObject.h:
753         (WebCore::AccessibilityObject::accessibilityDescription):
754         * accessibility/AccessibilityRenderObject.cpp:
755         (WebCore::AccessibilityRenderObject::ariaSelectedTextRange):
756         (WebCore::AccessibilityRenderObject::selectedText):
757         (WebCore::AccessibilityRenderObject::selectedTextRange):
758         * accessibility/AccessibilityRenderObject.h:
759
760 2010-10-20  Jer Noble  <jer.noble@apple.com>
761
762         Reviewed by Eric Carlson.
763
764         Video -> Canvas doesn't work on Windows
765         https://bugs.webkit.org/show_bug.cgi?id=47996
766         rdar://problem/7884690
767
768         * WebCore.vcproj/QTMovieWin.vcproj: Added QTDecompressionSession.{cpp,h}
769         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
770         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::paint): Create a 
771             QTDecompressionSession if necessary and convert the QTPixelBuffer
772             into a CG-compatible one.
773         * platform/graphics/win/QTDecompressionSession.cpp: Added.
774         * platform/graphics/win/QTDecompressionSession.h: Added.
775         * platform/graphics/win/QTPixelBuffer.cpp:
776         (SetNumberValue): Moved from QTMovieVisualContext.
777         (QTPixelBuffer::createPixelBufferAttributesDictionary): Moved from inside
778             QTMovieVisualContext::createPixelBufferOptionsDictionary().
779         * platform/graphics/win/QTPixelBuffer.h: Moved the Type enum 
780             from QTMovieVisualContext.h.
781
782 2010-10-21  Carlos Garcia Campos  <cgarcia@igalia.com>
783
784         Reviewed by Martin Robinson.
785
786         [GTK] TextBreakIteratorGtk should initialize its internal index to 0
787         https://bugs.webkit.org/show_bug.cgi?id=48065
788
789         It fixes the following tests when using glib unicode:
790           fast/forms/ValidityState-tooLong-input.html
791           fast/forms/ValidityState-tooLong-textarea.html
792           fast/forms/input-appearance-maxlength.html
793           fast/forms/input-implicit-length-limit.html
794           fast/forms/input-maxlength.html
795           fast/forms/textarea-live-pseudo-selectors.html
796           fast/forms/mailto/advanced-get.html
797           fast/forms/mailto/advanced-put.html
798
799         * platform/text/gtk/TextBreakIteratorGtk.cpp:
800         (WebCore::setUpIterator):
801
802 2010-10-21  takano takumi  <takano1@asia.apple.com>
803
804         Reviewed by Dan Bernstein.
805
806         Need to swap glyphs for vertical writing
807         https://bugs.webkit.org/show_bug.cgi?id=46973
808
809         Made changes to pass the writing-mode orientation flag in RenderStyle down to FontPlatformData,
810         and ultimately to CoreText APIs in both font complex path and fast path.
811
812         Tests: fast/text/international/vertical-text-glyph-test.html
813                fast/text/international/vertical-text-metrics-test.html
814
815         * WebCore.exp.in:
816         * WebCore.xcodeproj/project.pbxproj: Added platform/graphics/FontOrientation.h.
817         * css/CSSFontFaceSource.cpp:
818         (WebCore::CSSFontFaceSource::getFontData): Added font orientation parameter to SimpleFontData.
819         * css/CSSStyleSelector.cpp:
820         (WebCore::CSSStyleSelector::applyProperty): Set appropriate font orientation to the font description
821         when writing-mode is being specified.
822         * loader/CachedFont.cpp:
823         (WebCore::CachedFont::platformDataFromCustomData): Made to pass font orientation to FontPlatformData.
824         * loader/CachedFont.h:
825         * platform/graphics/FontCache.cpp: Added font orientation to FontPlatformDataCacheKey
826         (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
827         (WebCore::FontPlatformDataCacheKey::operator==):
828         (WebCore::computeHash):
829         (WebCore::FontCache::getCachedFontPlatformData):
830         * platform/graphics/FontDescription.h: Added font orientation support to FontDescription class
831         (WebCore::FontDescription::FontDescription):
832         (WebCore::FontDescription::orientation):
833         (WebCore::FontDescription::setOrientation):
834         (WebCore::FontDescription::operator==):
835         * platform/graphics/FontOrientation.h: Added.
836         * platform/graphics/SimpleFontData.h:
837         * platform/graphics/cairo/FontCustomPlatformData.cpp: Changed to pass font orientation to fontPlatformData()
838         (WebCore::FontCustomPlatformData::fontPlatformData):
839         * platform/graphics/cairo/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
840         * platform/graphics/cocoa/FontPlatformData.h: Added font orientation support to FontPlatformData class
841         (WebCore::FontPlatformData::FontPlatformData):
842         (WebCore::FontPlatformData::orientation):
843         (WebCore::FontPlatformData::hash):
844         (WebCore::FontPlatformData::operator==):
845         * platform/graphics/cocoa/FontPlatformDataCocoa.mm: Added font orientation support
846         (WebCore::FontPlatformData::FontPlatformData):
847         (WebCore::FontPlatformData::operator=):
848         (WebCore::FontPlatformData::allowsLigatures): Don't allow ligatures when the font is vertical orientation.
849         (WebCore::FontPlatformData::description):
850         * platform/graphics/gtk/FontCustomPlatformDataPango.cpp: Changed to pass font orientation to fontPlatformData()
851         (WebCore::FontCustomPlatformData::fontPlatformData):
852         * platform/graphics/haiku/FontCustomPlatformData.cpp: Changed to pass font orientation to fontPlatformData()
853         (WebCore::FontCustomPlatformData::fontPlatformData):
854         * platform/graphics/haiku/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
855         * platform/graphics/mac/FontCacheMac.mm: Added font orientation parameter when creating FontPlatformData object.
856         (WebCore::FontCache::getFontDataForCharacters):
857         (WebCore::FontCache::createFontPlatformData):
858         * platform/graphics/mac/FontCustomPlatformData.cpp: Added font orientation parameter when creating FontPlatformData object.
859         (WebCore::FontCustomPlatformData::fontPlatformData):
860         * platform/graphics/mac/FontCustomPlatformData.h: Changed to pass font orientation parameter to fontPlatformData()
861         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
862         (WebCore::GlyphPage::fill): Changed to use CoreText to extract glyphs when the current font is vertical orientation.
863         CoreText automatically swaps glyphs with vertical variants when the font orientation is vertical.
864         * platform/graphics/mac/SimpleFontDataCoreText.cpp: Added vertical form attribute to the attribute dictionary for a CTLine.
865         (WebCore::SimpleFontData::getCFStringAttributes):
866         * platform/graphics/mac/SimpleFontDataMac.mm:
867         (WebCore::SimpleFontData::platformBoundsForGlyph): Changed to use CoreText (from CG) to support vertical metrics.
868         (WebCore::SimpleFontData::platformWidthForGlyph): Made to use CoreText, instead of wkGetGlyphTransformedAdvances,
869         to get vertical metrics when the font orientation is vertical.
870         * platform/graphics/qt/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
871         * platform/graphics/qt/FontCustomPlatformDataQt.cpp: Changed to pass font orientation to fontPlatformData()
872         (WebCore::FontCustomPlatformData::fontPlatformData):
873         * platform/graphics/skia/FontCustomPlatformData.cpp: Changed to pass font orientation to fontPlatformData()
874         (WebCore::FontCustomPlatformData::fontPlatformData):
875         * platform/graphics/skia/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
876         * platform/graphics/win/FontCustomPlatformData.cpp: Changed to pass font orientation to fontPlatformData()
877         (WebCore::FontCustomPlatformData::fontPlatformData):
878         * platform/graphics/win/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
879         * platform/graphics/win/FontCustomPlatformDataCairo.cpp: Changed to pass font orientation to fontPlatformData()
880         (WebCore::FontCustomPlatformData::fontPlatformData):
881         * platform/graphics/win/FontCustomPlatformDataCairo.h: Changed to pass font orientation to fontPlatformData()
882         * platform/graphics/wince/FontCustomPlatformData.cpp: Changed to pass font orientation to fontPlatformData()
883         (WebCore::FontCustomPlatformData::fontPlatformData):
884         * platform/graphics/wince/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
885         * platform/graphics/wx/FontCustomPlatformData.cpp: Changed to pass font orientation to fontPlatformData()
886         (WebCore::FontCustomPlatformData::fontPlatformData):
887         * platform/graphics/wx/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
888
889 2010-10-21  Pavel Feldman  <pfeldman@chromium.org>
890
891         Reviewed by Yury Semikhatsky.
892
893         Web Inspector: provide resource tree in the Storage panel (behind the flag).
894         https://bugs.webkit.org/show_bug.cgi?id=48069
895
896         * WebCore.gypi:
897         * inspector/Inspector.idl:
898         * inspector/InspectorController.cpp:
899         (WebCore::InspectorController::frameDetachedFromParent):
900         * inspector/InspectorResourceAgent.cpp:
901         (WebCore::buildObjectForDocumentLoader):
902         (WebCore::buildObjectForFrameResource):
903         (WebCore::buildObjectForCachedResource):
904         (WebCore::populateObjectWithFrameResources):
905         (WebCore::InspectorResourceAgent::identifierForInitialRequest):
906         (WebCore::InspectorResourceAgent::didLoadResourceFromMemoryCache):
907         (WebCore::buildObjectForFrameTree):
908         (WebCore::InspectorResourceAgent::didCommitLoad):
909         (WebCore::InspectorResourceAgent::frameDetachedFromParent):
910         (WebCore::InspectorResourceAgent::cachedResources):
911         (WebCore::InspectorResourceAgent::resourceContent):
912         * inspector/InspectorResourceAgent.h:
913         * inspector/front-end/Images/frame.png: Added.
914         * inspector/front-end/NetworkPanel.js:
915         (WebInspector.NetworkPanel.prototype.refreshResource):
916         (WebInspector.NetworkPanel.prototype._showResource):
917         * inspector/front-end/Resource.js:
918         (WebInspector.Resource.Type.toString):
919         (WebInspector.Resource.prototype.getContents):
920         * inspector/front-end/ResourceManager.js:
921         (WebInspector.ResourceManager):
922         (WebInspector.ResourceManager.prototype.identifierForInitialRequest):
923         (WebInspector.ResourceManager.prototype._createResource):
924         (WebInspector.ResourceManager.prototype.willSendRequest):
925         (WebInspector.ResourceManager.prototype._appendRedirect):
926         (WebInspector.ResourceManager.prototype.markResourceAsCached):
927         (WebInspector.ResourceManager.prototype.didReceiveResponse):
928         (WebInspector.ResourceManager.prototype._updateResourceWithResponse):
929         (WebInspector.ResourceManager.prototype.didReceiveContentLength):
930         (WebInspector.ResourceManager.prototype.didFinishLoading):
931         (WebInspector.ResourceManager.prototype.didFailLoading):
932         (WebInspector.ResourceManager.prototype.didLoadResourceFromMemoryCache):
933         (WebInspector.ResourceManager.prototype._updateResourceWithCachedResource):
934         (WebInspector.ResourceManager.prototype.setOverrideContent):
935         (WebInspector.ResourceManager.prototype.didCommitLoadForFrame):
936         (WebInspector.ResourceManager.prototype.frameDetachedFromParent):
937         (WebInspector.ResourceManager.prototype._clearResources):
938         (WebInspector.ResourceManager.prototype.didCreateWebSocket):
939         (WebInspector.ResourceManager.prototype.willSendWebSocketHandshakeRequest):
940         (WebInspector.ResourceManager.prototype.didReceiveWebSocketHandshakeResponse):
941         (WebInspector.ResourceManager.prototype.didCloseWebSocket):
942         (WebInspector.ResourceManager.prototype._processCachedResources):
943         (WebInspector.ResourceManager.prototype._appendFramesRecursively.comparator):
944         (WebInspector.ResourceManager.prototype._appendFramesRecursively):
945         (WebInspector.ResourceManager.createResourceView):
946         (WebInspector.ResourceManager.resourceViewTypeMatchesResource):
947         (WebInspector.ResourceManager.resourceViewForResource):
948         (WebInspector.ResourceManager.getContents):
949         * inspector/front-end/ResourcesPanel.js:
950         (WebInspector.ResourcesPanel.prototype.get searchableViews):
951         (WebInspector.ResourcesPanel.prototype.addMessageToResource):
952         (WebInspector.ResourcesPanel.prototype._recreateViewForResourceIfNeeded):
953         (WebInspector.ResourcesPanel.prototype.showResource):
954         (WebInspector.ResourcesPanel.prototype.sourceFrameForResource):
955         * inspector/front-end/ScriptsPanel.js:
956         (WebInspector.ScriptsPanel.prototype._showScriptOrResource):
957         * inspector/front-end/StoragePanel.js:
958         (WebInspector.StoragePanel):
959         (WebInspector.StoragePanel.prototype.addFrame):
960         (WebInspector.StoragePanel.prototype.removeFrame):
961         (WebInspector.StoragePanel.prototype.addFrameResource):
962         (WebInspector.StoragePanel.prototype.removeFrameResources):
963         (WebInspector.StoragePanel.prototype.showResource):
964         (WebInspector.BaseStorageTreeElement.prototype.onattach):
965         (WebInspector.BaseStorageTreeElement.prototype.onreveal):
966         (WebInspector.FrameTreeElement):
967         (WebInspector.FrameTreeElement.prototype.onselect):
968         (WebInspector.FrameResourceTreeElement):
969         (WebInspector.FrameResourceTreeElement.prototype.onselect):
970         (WebInspector.FrameResourceTreeElement.prototype.onattach):
971         * inspector/front-end/WebKit.qrc:
972         * inspector/front-end/inspector.css:
973         (.frame-storage-tree-item .icon):
974         (.storage.panel .sidebar.outline-disclosure > ol):
975         (.resources-category-images .image-resource-icon-preview):
976         (.children.small .resources-category-images .image-resource-icon-preview):
977         * inspector/front-end/inspector.js:
978
979 2010-10-21  David Kilzer  <ddkilzer@apple.com>
980
981         <http://webkit.org/b/48047> Fix warnings found by check-Xcode-source-file-types
982
983         Reviewed by Adam Roben.
984
985         Fixes the following warning:
986
987             WARNING: Unknown file type 'sourcecode' for file 'CSSPrimitiveValue.idl'.
988             1 issues found for WebCore/WebCore.xcodeproj/project.pbxproj.
989
990         * WebCore.xcodeproj/project.pbxproj: Removed explicit file type
991         for CSSPrimitiveValue.idl to make it match other IDL files.
992
993 2010-10-21  Yury Semikhatsky  <yurys@chromium.org>
994
995         Unreviewed. Revert r70232. Chromium compilation failure.
996
997 2010-10-21  Yury Semikhatsky  <yurys@chromium.org>
998
999         Unreviewed. Revert r70233. Too many failures.
1000
1001 2010-10-21  Yury Semikhatsky  <yurys@chromium.org>
1002
1003         Unreviewed. Remove references to deleted headers from WebCore.pro
1004
1005         * WebCore.pro:
1006
1007 2010-10-21  Yury Semikhatsky  <yurys@chromium.org>
1008
1009         Reviewed by Pavel Feldman.
1010
1011         Web Inspector: decouple ScriptArguments from ScriptCallStack
1012         https://bugs.webkit.org/show_bug.cgi?id=48058
1013
1014         ScriptCallFrame and ScriptCallStack are now the same for both JSC and V8.
1015         The factory functions that allow to create ScriptCallStack from VM-specific
1016         objects are defined in ScriptCallStackFactory.cpp.
1017
1018         ScriptArguments class is used for passing arguments from JS code to the native
1019         part.
1020
1021         No new tests. This refactoring is covered with existing Console tests.
1022
1023         * WebCore.gypi:
1024         * WebCore.xcodeproj/project.pbxproj:
1025         * bindings/js/ScriptCallFrame.cpp: Removed.
1026         * bindings/js/ScriptCallFrame.h: Removed.
1027         * bindings/js/ScriptCallStack.cpp: Removed.
1028         * bindings/js/ScriptCallStack.h: Removed.
1029         * bindings/js/ScriptCallStackFactory.cpp: Added.
1030         (WebCore::createScriptCallStack):
1031         (WebCore::createScriptArguments):
1032         (WebCore::ScriptCallStack::stackTrace):
1033         * bindings/js/ScriptCallStackFactory.h: Added.
1034         * bindings/js/ScriptState.h:
1035         (WebCore::ScriptStateProtectedPtr::get):
1036         * bindings/scripts/CodeGeneratorJS.pm:
1037         * bindings/scripts/CodeGeneratorV8.pm:
1038         * bindings/v8/ScriptCallFrame.cpp: Removed.
1039         * bindings/v8/ScriptCallFrame.h: Removed.
1040         * bindings/v8/ScriptCallStack.cpp: Removed.
1041         * bindings/v8/ScriptCallStack.h: Removed.
1042         * bindings/v8/ScriptCallStackFactory.cpp: Added.
1043         (WebCore::toScriptCallFrame):
1044         (WebCore::toScriptCallFramesVector):
1045         (WebCore::createScriptCallStack):
1046         (WebCore::createScriptArguments):
1047         (WebCore::ScriptCallStack::stackTrace):
1048         * bindings/v8/ScriptCallStackFactory.h: Added.
1049         * bindings/v8/ScriptController.cpp:
1050         (WebCore::ScriptController::setCaptureCallStackForUncaughtExceptions):
1051         * bindings/v8/ScriptState.h:
1052         (WebCore::ScriptStateProtectedPtr::get):
1053         * bindings/v8/V8ConsoleMessage.cpp:
1054         (WebCore::V8ConsoleMessage::handler):
1055         (WebCore::V8ConsoleMessage::dispatchNow):
1056         * bindings/v8/V8ConsoleMessage.h:
1057         * bindings/v8/custom/V8ConsoleCustom.cpp:
1058         (WebCore::V8Console::traceCallback):
1059         (WebCore::V8Console::assertCallback):
1060         * inspector/ConsoleMessage.cpp:
1061         (WebCore::ConsoleMessage::ConsoleMessage):
1062         (WebCore::ConsoleMessage::addToFrontend):
1063         (WebCore::ConsoleMessage::updateRepeatCountInConsole):
1064         (WebCore::ConsoleMessage::isEqual):
1065         * inspector/ConsoleMessage.h:
1066         * inspector/InspectorController.cpp:
1067         (WebCore::InspectorController::addMessageToConsole):
1068         (WebCore::InspectorController::startGroup):
1069         * inspector/InspectorController.h:
1070         * inspector/ScriptArguments.cpp: Added.
1071         (WebCore::ScriptArguments::ScriptArguments):
1072         (WebCore::ScriptArguments::~ScriptArguments):
1073         (WebCore::ScriptArguments::argumentAt):
1074         (WebCore::ScriptArguments::globalState):
1075         (WebCore::ScriptArguments::getFirstArgumentAsString):
1076         (WebCore::ScriptArguments::isEqual):
1077         * inspector/ScriptArguments.h: Added.
1078         (WebCore::ScriptArguments::argumentCount):
1079         * inspector/ScriptCallFrame.cpp: Added.
1080         (WebCore::ScriptCallFrame::ScriptCallFrame):
1081         (WebCore::ScriptCallFrame::~ScriptCallFrame):
1082         (WebCore::ScriptCallFrame::isEqual):
1083         (WebCore::ScriptCallFrame::buildInspectorObject):
1084         * inspector/ScriptCallFrame.h: Added.
1085         (WebCore::ScriptCallFrame::functionName):
1086         (WebCore::ScriptCallFrame::sourceURL):
1087         (WebCore::ScriptCallFrame::lineNumber):
1088         * inspector/ScriptCallStack.cpp: Added.
1089         (WebCore::ScriptCallStack::ScriptCallStack):
1090         (WebCore::ScriptCallStack::~ScriptCallStack):
1091         (WebCore::ScriptCallStack::at):
1092         (WebCore::ScriptCallStack::size):
1093         (WebCore::ScriptCallStack::isEqual):
1094         (WebCore::ScriptCallStack::buildInspectorObject):
1095         * inspector/ScriptCallStack.h: Added.
1096         * page/Console.cpp:
1097         (WebCore::Console::addMessage):
1098         (WebCore::Console::debug):
1099         (WebCore::Console::error):
1100         (WebCore::Console::info):
1101         (WebCore::Console::log):
1102         (WebCore::Console::dir):
1103         (WebCore::Console::dirxml):
1104         (WebCore::Console::trace):
1105         (WebCore::Console::assertCondition):
1106         (WebCore::Console::count):
1107         (WebCore::Console::markTimeline):
1108         (WebCore::Console::profile):
1109         (WebCore::Console::profileEnd):
1110         (WebCore::Console::timeEnd):
1111         (WebCore::Console::group):
1112         (WebCore::Console::groupCollapsed):
1113         (WebCore::Console::shouldCaptureFullStackTrace):
1114         (WebCore::Console::warn):
1115         * page/Console.h:
1116
1117 2010-10-21  Pavel Feldman  <pfeldman@chromium.org>
1118
1119         Reviewed by Yury Semikhatsky.
1120
1121         Chromium: use dedicated event listener type in EventListenerWrapper.
1122         https://bugs.webkit.org/show_bug.cgi?id=48059
1123
1124         This change introduces new EventListener::Type NativeEventListenerType.
1125         This new type is intended to be used by any code that wants to protect
1126         itself from unsafe casts to particular event listener implementations.
1127
1128         * dom/EventListener.h:
1129
1130 2010-10-21  Sheriff Bot  <webkit.review.bot@gmail.com>
1131
1132         Unreviewed, rolling out r70225.
1133         http://trac.webkit.org/changeset/70225
1134         https://bugs.webkit.org/show_bug.cgi?id=48061
1135
1136         Build breakage on Leopard. (Requested by pfeldman on #webkit).
1137
1138         * WebCore.exp.in:
1139         * WebCore.xcodeproj/project.pbxproj:
1140         * css/CSSFontFaceSource.cpp:
1141         (WebCore::CSSFontFaceSource::getFontData):
1142         * css/CSSStyleSelector.cpp:
1143         (WebCore::CSSStyleSelector::applyProperty):
1144         * loader/CachedFont.cpp:
1145         (WebCore::CachedFont::platformDataFromCustomData):
1146         * loader/CachedFont.h:
1147         * platform/graphics/FontCache.cpp:
1148         (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
1149         (WebCore::FontPlatformDataCacheKey::operator==):
1150         (WebCore::computeHash):
1151         (WebCore::FontCache::getCachedFontPlatformData):
1152         * platform/graphics/FontDescription.h:
1153         (WebCore::FontDescription::FontDescription):
1154         (WebCore::FontDescription::operator==):
1155         * platform/graphics/FontOrientation.h: Removed.
1156         * platform/graphics/SimpleFontData.h:
1157         * platform/graphics/cairo/FontCustomPlatformData.cpp:
1158         (WebCore::FontCustomPlatformData::fontPlatformData):
1159         * platform/graphics/cairo/FontCustomPlatformData.h:
1160         * platform/graphics/cocoa/FontPlatformData.h:
1161         (WebCore::FontPlatformData::FontPlatformData):
1162         (WebCore::FontPlatformData::hash):
1163         (WebCore::FontPlatformData::operator==):
1164         * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
1165         (WebCore::FontPlatformData::FontPlatformData):
1166         (WebCore::FontPlatformData::operator=):
1167         (WebCore::FontPlatformData::allowsLigatures):
1168         (WebCore::FontPlatformData::description):
1169         * platform/graphics/gtk/FontCustomPlatformDataPango.cpp:
1170         (WebCore::FontCustomPlatformData::fontPlatformData):
1171         * platform/graphics/haiku/FontCustomPlatformData.cpp:
1172         (WebCore::FontCustomPlatformData::fontPlatformData):
1173         * platform/graphics/haiku/FontCustomPlatformData.h:
1174         * platform/graphics/mac/FontCacheMac.mm:
1175         (WebCore::FontCache::getFontDataForCharacters):
1176         (WebCore::FontCache::createFontPlatformData):
1177         * platform/graphics/mac/FontCustomPlatformData.cpp:
1178         (WebCore::FontCustomPlatformData::fontPlatformData):
1179         * platform/graphics/mac/FontCustomPlatformData.h:
1180         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
1181         (WebCore::GlyphPage::fill):
1182         * platform/graphics/mac/SimpleFontDataCoreText.cpp:
1183         (WebCore::SimpleFontData::getCFStringAttributes):
1184         * platform/graphics/mac/SimpleFontDataMac.mm:
1185         (WebCore::SimpleFontData::platformBoundsForGlyph):
1186         (WebCore::SimpleFontData::platformWidthForGlyph):
1187         * platform/graphics/qt/FontCustomPlatformData.h:
1188         * platform/graphics/qt/FontCustomPlatformDataQt.cpp:
1189         (WebCore::FontCustomPlatformData::fontPlatformData):
1190         * platform/graphics/skia/FontCustomPlatformData.cpp:
1191         (WebCore::FontCustomPlatformData::fontPlatformData):
1192         * platform/graphics/skia/FontCustomPlatformData.h:
1193         * platform/graphics/win/FontCustomPlatformData.cpp:
1194         (WebCore::FontCustomPlatformData::fontPlatformData):
1195         * platform/graphics/win/FontCustomPlatformData.h:
1196         * platform/graphics/win/FontCustomPlatformDataCairo.cpp:
1197         (WebCore::FontCustomPlatformData::fontPlatformData):
1198         * platform/graphics/win/FontCustomPlatformDataCairo.h:
1199         * platform/graphics/wince/FontCustomPlatformData.cpp:
1200         (WebCore::FontCustomPlatformData::fontPlatformData):
1201         * platform/graphics/wince/FontCustomPlatformData.h:
1202         * platform/graphics/wx/FontCustomPlatformData.cpp:
1203         (WebCore::FontCustomPlatformData::fontPlatformData):
1204         * platform/graphics/wx/FontCustomPlatformData.h:
1205
1206 2010-10-21  Carlos Garcia Campos  <cgarcia@igalia.com>
1207
1208         Reviewed by Martin Robinson.
1209
1210         [GTK] Tests LayoutTests/fast/encoding/utf-32* fail when using glib unicode
1211         https://bugs.webkit.org/show_bug.cgi?id=47805
1212
1213         Register UTF-32 encodings in TextCodecGtk.
1214
1215         * platform/text/gtk/TextCodecGtk.cpp:
1216         (WebCore::TextCodecGtk::registerBaseEncodingNames):
1217         (WebCore::TextCodecGtk::registerBaseCodecs):
1218
1219 2010-10-21  Luiz Agostini  <luiz.agostini@openbossa.org>
1220
1221         Reviewed by Darin Adler.
1222
1223         Adding MediaQueryListListener binding test cases
1224         https://bugs.webkit.org/show_bug.cgi?id=48028
1225
1226         MediaQueryListListener type will need special handling of the code generators. Adding the test cases.
1227
1228         * bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp: Added.
1229         (WebDOMTestMediaQueryListListener::WebDOMTestMediaQueryListListenerPrivate::WebDOMTestMediaQueryListListenerPrivate):
1230         (WebDOMTestMediaQueryListListener::WebDOMTestMediaQueryListListener):
1231         (WebDOMTestMediaQueryListListener::operator=):
1232         (WebDOMTestMediaQueryListListener::impl):
1233         (WebDOMTestMediaQueryListListener::~WebDOMTestMediaQueryListListener):
1234         (WebDOMTestMediaQueryListListener::method):
1235         (toWebCore):
1236         (toWebKit):
1237         * bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h: Added.
1238         * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp: Added.
1239         (WebKit::kit):
1240         (webkit_dom_test_media_query_list_listener_method):
1241         (WebKit::core):
1242         (webkit_dom_test_media_query_list_listener_finalize):
1243         (webkit_dom_test_media_query_list_listener_set_property):
1244         (webkit_dom_test_media_query_list_listener_get_property):
1245         (webkit_dom_test_media_query_list_listener_constructed):
1246         (webkit_dom_test_media_query_list_listener_class_init):
1247         (webkit_dom_test_media_query_list_listener_init):
1248         (WebKit::wrapTestMediaQueryListListener):
1249         * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.h: Added.
1250         * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h: Added.
1251         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp: Added.
1252         (WebCore::JSTestMediaQueryListListenerConstructor::classInfo):
1253         (WebCore::JSTestMediaQueryListListenerConstructor::createStructure):
1254         (WebCore::JSTestMediaQueryListListenerConstructor::JSTestMediaQueryListListenerConstructor):
1255         (WebCore::JSTestMediaQueryListListenerConstructor::getOwnPropertySlot):
1256         (WebCore::JSTestMediaQueryListListenerConstructor::getOwnPropertyDescriptor):
1257         (WebCore::JSTestMediaQueryListListenerPrototype::self):
1258         (WebCore::JSTestMediaQueryListListenerPrototype::getOwnPropertySlot):
1259         (WebCore::JSTestMediaQueryListListenerPrototype::getOwnPropertyDescriptor):
1260         (WebCore::JSTestMediaQueryListListener::JSTestMediaQueryListListener):
1261         (WebCore::JSTestMediaQueryListListener::~JSTestMediaQueryListListener):
1262         (WebCore::JSTestMediaQueryListListener::createPrototype):
1263         (WebCore::JSTestMediaQueryListListener::getOwnPropertySlot):
1264         (WebCore::JSTestMediaQueryListListener::getOwnPropertyDescriptor):
1265         (WebCore::jsTestMediaQueryListListenerConstructor):
1266         (WebCore::JSTestMediaQueryListListener::getConstructor):
1267         (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
1268         (WebCore::toJS):
1269         (WebCore::toTestMediaQueryListListener):
1270         * bindings/scripts/test/JS/JSTestMediaQueryListListener.h: Added.
1271         (WebCore::JSTestMediaQueryListListener::classInfo):
1272         (WebCore::JSTestMediaQueryListListener::createStructure):
1273         (WebCore::JSTestMediaQueryListListener::impl):
1274         (WebCore::JSTestMediaQueryListListenerPrototype::classInfo):
1275         (WebCore::JSTestMediaQueryListListenerPrototype::createStructure):
1276         (WebCore::JSTestMediaQueryListListenerPrototype::JSTestMediaQueryListListenerPrototype):
1277         * bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h: Added.
1278         * bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm: Added.
1279         (-[DOMTestMediaQueryListListener dealloc]):
1280         (-[DOMTestMediaQueryListListener finalize]):
1281         (-[DOMTestMediaQueryListListener method:]):
1282         (core):
1283         (kit):
1284         * bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h: Added.
1285         * bindings/scripts/test/TestMediaQueryListListener.idl: Added.
1286         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp: Added.
1287         (WebCore::TestMediaQueryListListenerInternal::V8_USE):
1288         (WebCore::TestMediaQueryListListenerInternal::methodCallback):
1289         (WebCore::ConfigureV8TestMediaQueryListListenerTemplate):
1290         (WebCore::V8TestMediaQueryListListener::GetRawTemplate):
1291         (WebCore::V8TestMediaQueryListListener::GetTemplate):
1292         (WebCore::V8TestMediaQueryListListener::HasInstance):
1293         (WebCore::V8TestMediaQueryListListener::wrapSlow):
1294         (WebCore::V8TestMediaQueryListListener::derefObject):
1295         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h: Added.
1296         (WebCore::V8TestMediaQueryListListener::toNative):
1297         (WebCore::V8TestMediaQueryListListener::wrap):
1298         (WebCore::toV8):
1299
1300 2010-10-21  takano takumi  <takano1@asia.apple.com>
1301
1302         Reviewed by Dan Bernstein.
1303
1304         Need to swap glyphs for vertical writing
1305         https://bugs.webkit.org/show_bug.cgi?id=46973
1306
1307         Made changes to pass the writing-mode orientation flag in RenderStyle down to FontPlatformData,
1308         and ultimately to CoreText APIs in both font complex path and fast path.
1309
1310         Tests: fast/text/international/vertical-text-glyph-test.html
1311                fast/text/international/vertical-text-metrics-test.html
1312
1313         * WebCore.exp.in:
1314         * WebCore.xcodeproj/project.pbxproj: Added platform/graphics/FontOrientation.h.
1315         * css/CSSFontFaceSource.cpp:
1316         (WebCore::CSSFontFaceSource::getFontData): Added font orientation parameter to SimpleFontData.
1317         * css/CSSStyleSelector.cpp:
1318         (WebCore::CSSStyleSelector::applyProperty): Set appropriate font orientation to the font description
1319         when writing-mode is being specified.
1320         * loader/CachedFont.cpp:
1321         (WebCore::CachedFont::platformDataFromCustomData): Made to pass font orientation to FontPlatformData.
1322         * loader/CachedFont.h:
1323         * platform/graphics/FontCache.cpp: Added font orientation to FontPlatformDataCacheKey
1324         (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
1325         (WebCore::FontPlatformDataCacheKey::operator==):
1326         (WebCore::computeHash):
1327         (WebCore::FontCache::getCachedFontPlatformData):
1328         * platform/graphics/FontDescription.h: Added font orientation support to FontDescription class
1329         (WebCore::FontDescription::FontDescription):
1330         (WebCore::FontDescription::orientation):
1331         (WebCore::FontDescription::setOrientation):
1332         (WebCore::FontDescription::operator==):
1333         * platform/graphics/FontOrientation.h: Added.
1334         * platform/graphics/SimpleFontData.h:
1335         * platform/graphics/cairo/FontCustomPlatformData.cpp: Changed to pass font orientation to fontPlatformData()
1336         (WebCore::FontCustomPlatformData::fontPlatformData):
1337         * platform/graphics/cairo/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
1338         * platform/graphics/cocoa/FontPlatformData.h: Added font orientation support to FontPlatformData class
1339         (WebCore::FontPlatformData::FontPlatformData):
1340         (WebCore::FontPlatformData::orientation):
1341         (WebCore::FontPlatformData::hash):
1342         (WebCore::FontPlatformData::operator==):
1343         * platform/graphics/cocoa/FontPlatformDataCocoa.mm: Added font orientation support
1344         (WebCore::FontPlatformData::FontPlatformData):
1345         (WebCore::FontPlatformData::operator=):
1346         (WebCore::FontPlatformData::allowsLigatures): Don't allow ligatures when the font is vertical orientation.
1347         (WebCore::FontPlatformData::description):
1348         * platform/graphics/gtk/FontCustomPlatformDataPango.cpp: Changed to pass font orientation to fontPlatformData()
1349         (WebCore::FontCustomPlatformData::fontPlatformData):
1350         * platform/graphics/haiku/FontCustomPlatformData.cpp: Changed to pass font orientation to fontPlatformData()
1351         (WebCore::FontCustomPlatformData::fontPlatformData):
1352         * platform/graphics/haiku/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
1353         * platform/graphics/mac/FontCacheMac.mm: Added font orientation parameter when creating FontPlatformData object.
1354         (WebCore::FontCache::getFontDataForCharacters):
1355         (WebCore::FontCache::createFontPlatformData):
1356         * platform/graphics/mac/FontCustomPlatformData.cpp: Added font orientation parameter when creating FontPlatformData object.
1357         (WebCore::FontCustomPlatformData::fontPlatformData):
1358         * platform/graphics/mac/FontCustomPlatformData.h: Changed to pass font orientation parameter to fontPlatformData()
1359         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
1360         (WebCore::GlyphPage::fill): Changed to use CoreText to extract glyphs when the current font is vertical orientation.
1361         CoreText automatically swaps glyphs with vertical variants when the font orientation is vertical.
1362         * platform/graphics/mac/SimpleFontDataCoreText.cpp: Added vertical form attribute to the attribute dictionary for a CTLine.
1363         (WebCore::SimpleFontData::getCFStringAttributes):
1364         * platform/graphics/mac/SimpleFontDataMac.mm:
1365         (WebCore::SimpleFontData::platformBoundsForGlyph): Changed to use CoreText (from CG) to support vertical metrics.
1366         (WebCore::SimpleFontData::platformWidthForGlyph): Made to use CoreText, instead of wkGetGlyphTransformedAdvances,
1367         to get vertical metrics when the font orientation is vertical.
1368         * platform/graphics/qt/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
1369         * platform/graphics/qt/FontCustomPlatformDataQt.cpp: Changed to pass font orientation to fontPlatformData()
1370         (WebCore::FontCustomPlatformData::fontPlatformData):
1371         * platform/graphics/skia/FontCustomPlatformData.cpp: Changed to pass font orientation to fontPlatformData()
1372         (WebCore::FontCustomPlatformData::fontPlatformData):
1373         * platform/graphics/skia/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
1374         * platform/graphics/win/FontCustomPlatformData.cpp: Changed to pass font orientation to fontPlatformData()
1375         (WebCore::FontCustomPlatformData::fontPlatformData):
1376         * platform/graphics/win/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
1377         * platform/graphics/win/FontCustomPlatformDataCairo.cpp: Changed to pass font orientation to fontPlatformData()
1378         (WebCore::FontCustomPlatformData::fontPlatformData):
1379         * platform/graphics/win/FontCustomPlatformDataCairo.h: Changed to pass font orientation to fontPlatformData()
1380         * platform/graphics/wince/FontCustomPlatformData.cpp: Changed to pass font orientation to fontPlatformData()
1381         (WebCore::FontCustomPlatformData::fontPlatformData):
1382         * platform/graphics/wince/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
1383         * platform/graphics/wx/FontCustomPlatformData.cpp: Changed to pass font orientation to fontPlatformData()
1384         (WebCore::FontCustomPlatformData::fontPlatformData):
1385         * platform/graphics/wx/FontCustomPlatformData.h: Changed to pass font orientation to fontPlatformData()
1386
1387 2010-10-20  Nikolas Zimmermann  <nzimmermann@rim.com>
1388
1389         Reviewed by Dirk Schulze.
1390
1391         Redesign SVGAnimatedProperty concept to share "POD type wrappers" between all bindings (-> add ObjC SVG bindings)
1392         https://bugs.webkit.org/show_bug.cgi?id=47905
1393
1394         Tests: svg/dom/SVGLengthList-appendItem.xhtml
1395                svg/dom/SVGLengthList-basics.xhtml
1396                svg/dom/SVGLengthList-getItem.xhtml
1397                svg/dom/SVGLengthList-initialize.xhtml
1398                svg/dom/SVGLengthList-insertItemBefore.xhtml
1399                svg/dom/SVGLengthList-removeItem.xhtml
1400                svg/dom/SVGLengthList-replaceItem.xhtml
1401                svg/dom/SVGLengthList-xml-dom-modifications.xhtml
1402
1403         Introduce a more lightweight, less intrusive way to expose SVGAnimated* DOM bindings.
1404
1405         Concrete example:
1406         The SVG DOM defines a 'SVGAnimatedLength' object, that's used to represent the x / y / width / height attributes of a 'SVGRectElement'.
1407         Each 'SVGAnimatedLength' object exposes a baseVal (markup defined attribute value) and an animVal (reflects the current state during animations),
1408         both of type 'SVGLength'. These objects are all _live_. That means you can do:
1409         var foobar = rect.x.baseVal; foobar.value += 150;
1410
1411         If we'd implement the SVG DOM straightforward, we'd have to store a refcounted SVGAnimatedLength object, containing two refcounted SVGLength objects
1412         in SVGRectElement, for each of the x/y/width/height attributes. Our solution, to reduce memory footprint and increase performance is to store
1413         SVGLength stack-allocated, non refcounted types in SVGRectElement for x/y/width/height, and don't implement the SVGAnimatedLength object at all.
1414
1415         In the past the JS bindings had to expose wrappers for SVGAnimatedLength on their own, and wrap each SVGLength object in an object called JSSVGPODTypeWrapper<SVGLength>.
1416         When JS changed the 'value' of the 'SVGLength', we constructed a copy of the SVGLength object, modified it, and called rectElement->setXBaseValue(newLength).
1417         This is not efficient at all, as we have to construct several copies of the SVGLength object, utilize callbacks to propagate the value changes in the SVG DOM.
1418         Furthermore, all bindings had to expose a similar concept, otherwhise SVG DOM wouldn't work. Up until now, only JSC and V8 bindings were available, that worked properly.
1419
1420         The new SVGAnimatedProperty concept removes the need for JSSVGPODTypeWrapper (and friends like JSSVGContextCache, that associated a SVGLength with its SVGRectElement).
1421         Instead a solution is offered, that all bindings can use simultaneously, without adding new types or special concepts like JSSVGPODTypeWrapper.
1422
1423         It works like this:
1424         A new refcounted SVGAnimatedProperty<PropertyType> template class is available, that stores a QualifiedName to associate the SVG DOM property with a XML DOM attribute.
1425         It also stores a RefPtr to the SVGElement that created it.
1426         
1427         In SVGRectElement we still store SVGLength m_x/m_y/m_width/m_height members, and offer a new "xAnimated()" method which looks up or creates a SVGAnimatedProperty<SVGLength>
1428         object. The JS/V8/ObjC bindings call this method whenever someone requests "rect.x/y/width/height", and a new wrapper is created, and stored in a HashMap.
1429
1430         The SVGAnimatedProperty<PropertyType> is a base class for SVGAnimatedPropertyTearOff and SVGAnimatedListPropertyTearOff, the latter is used for all types of lists (SVGLengthList).
1431         SVGAnimatedProperty contains two methods used in the bindings: SVGProperty* baseVal and SVGProperty* animVal. SVGProperty is a base class for SVGPropertyTearOff and
1432         SVGListPropertyTearOff. Upon invocation of the baseVal/animVal methods a new SVG(List)PropertyTearOff object is created and stored in a RefPtr.
1433         The SVGPropertyTearOff objects stores a _reference_ to the type it wraps. Concrete example:
1434         When calling rect.x, a SVGAnimatedPropertyTearOff<SVGLength> is created, that stores a pointer to the SVGRectElement, and a SVGNames::xAttr.
1435         When calling rect.x.baseVal, a SVGPropertyTearOf<SVGLength> is created, that stores a reference to the "m_x" member variable of the SVGRectElement.
1436         Any changes applied to the SVGLength object, through the wrapper, are immediately live, as no copies are involved anymore, nor the need to fire any callback methods.
1437         This is the key concept of the new tear offs, no copies, no callbacks, no virtual methods (except one, needed for lists, but it's a detail).
1438
1439         The SVGAnimatedListPropertyTearOff and SVGListPropertyTearOff work the same, but for SVG*List objects. The whole SVG*List API is _removed_ from the SVG DOM classes
1440         like SVGLengthList. It now inherits from Vector<SVGLength>, where it used to store a Vector<RefPtr<SVGListItem<SVGLength> > >. The SVGList API (insertItemBefore, appendItem, etc.)
1441         is exposed through SVGListPropertyTearOff, and there's no need anymore for SVGLengthList to deal with it at all.
1442         SVGLengthList is live just like most other SVG DOM object. Concrete example:
1443         var item0 = text.x.baseVal.getItem(0); item0.value += 150;
1444
1445         Previously we chose to store a refcounted SVGListItem object, which wrapped the SVGLength object, to achieve liveness. We could change a single list item from DOM
1446         w/o copying the whole list. The drawback is that a simple type likeSVGLengthList, was heavy to store, as it contained a list of RefPtrs around a wrapper object
1447         around the real object 'SVGLength'. This complexity is completly gone.
1448
1449         The SVGListPropertyTearOff<SVGLengthList> stores a reference to the SVGLengthList object (eg. SVGTextElement::m_x) and maintains a list of SVGPropertyTearOff<SVGLength>
1450         wrappers, that are created when necessary (getItem(2), will create a wrapper around the third list item), and cached. These SVGPropertyTearOff<SVGLength> objects
1451         store references to the SVGLength object _in the SVGLengthList_. One has to be extra carefully, to keep those lists synchronized.
1452         The SVGLengthList API is fully implemented for the first time, including moving items between lists, and is extensively tested with 8 new testcases.
1453
1454         This patch only changed SVGLength/SVGLengthList to the new concept. All other types remain using the old DeprecatedSVGAnimatedProperty* concept.
1455         This will change in follow-up patches.
1456
1457         * GNUmakefile.am: Add new files from svg/properties to build.
1458         * WebCore.gypi: Ditto.
1459         * WebCore.pro: Ditto.
1460         * WebCore.vcproj/WebCore.vcproj: Ditto.
1461         * WebCore.xcodeproj/project.pbxproj: Ditto.
1462         * bindings/js/JSSVGLengthCustom.cpp: Adapt to context cache removal for SVGLength.
1463         (WebCore::JSSVGLength::value):
1464         (WebCore::JSSVGLength::convertToSpecifiedUnits):
1465         * bindings/scripts/CodeGenerator.pm: Add new isSVGNewStyleAnimatedProperty() helper method, return true for "SVGAnimatedLength" and "SVGAnimatedLengthList".
1466         * bindings/scripts/CodeGeneratorJS.pm: Generate new style SVG JS bindings, that don't need JSSVGContextCache / JSSVGPODTypeWrapper.
1467         * bindings/scripts/CodeGeneratorObjC.pm: Ditto. (+ Finally expose a working set of SVG DOM API for Objective C).
1468         * bindings/scripts/CodeGeneratorV8.pm: Ditto.
1469         * bindings/v8/custom/V8SVGLengthCustom.cpp: Adapt to context cache removal for SVGLength.
1470         (WebCore::V8SVGLength::valueAccessorGetter):
1471         (WebCore::V8SVGLength::convertToSpecifiedUnitsCallback):
1472         * rendering/svg/SVGTextLayoutAttributesBuilder.cpp:
1473         (WebCore::extractFloatValuesFromSVGLengthList): SVGLengthList is a POD type now, passed as const reference.
1474         * svg/DeprecatedSVGAnimatedPropertyTraits.h: Remove handling for SVGLength/SVGLengthList, those are converted to the new SVGAnimatedProperty design now.
1475         * svg/DeprecatedSVGAnimatedTemplate.h: Ditto.
1476         * svg/SVGAnimatedLength.h: Added.
1477         * svg/SVGAnimatedLength.idl: Mark as [SVGAnimatedProperty].
1478         * svg/SVGAnimatedLengthList.h: Added.
1479         * svg/SVGAnimatedLengthList.idl: Mark as [SVGAnimatedProperty].
1480         * svg/SVGCircleElement.h: s/DECLARE_ANIMATED_PROPERTY/DECLARE_ANIMATED_PROPERTY_NEW/ until the transition to the new concept is finished.
1481         * svg/SVGCursorElement.h: Ditto.
1482         * svg/SVGEllipseElement.h: Ditto.
1483         * svg/SVGFilterElement.h: Ditto.
1484         * svg/SVGFilterPrimitiveStandardAttributes.h: Ditto.
1485         * svg/SVGForeignObjectElement.h: Ditto.
1486         * svg/SVGImageElement.h: Ditto.
1487         * svg/SVGLength.idl: Mark as [SVGProperty].
1488         * svg/SVGLengthList.cpp: Use Vector API (appendItem -> append). No need to ever use the SVGList API internally. SVGLengthList is a Vector<SVGLength> now.
1489         (WebCore::SVGLengthList::parse): 
1490         (WebCore::SVGLengthList::valueAsString):
1491         * svg/SVGLengthList.h: Inherit from Vector<SVGLength> - not from the SVGList base class. It's a simple, non-refcounted POD type now.
1492         (WebCore::SVGLengthList::SVGLengthList):
1493         * svg/SVGLengthList.idl: Mark as [SVGListProperty].
1494         * svg/SVGLineElement.h: s/DECLARE_ANIMATED_PROPERTY/DECLARE_ANIMATED_PROPERTY_NEW/ until the transition to the new concept is finished.
1495         * svg/SVGLinearGradientElement.h: Ditto.
1496         * svg/SVGMarkerElement.h: Ditto.
1497         * svg/SVGMaskElement.h: Ditto.
1498         * svg/SVGPatternElement.h: Ditto.
1499         * svg/SVGRadialGradientElement.h: Ditto.
1500         * svg/SVGRectElement.h: Ditto.
1501         * svg/SVGSVGElement.h: Ditto.
1502         * svg/SVGSVGElement.idl: Mark createSVGLength() as [SVGLiveProperty] - a wrapper for the returned object has to be created.
1503         * svg/SVGTextContentElement.h: s/DECLARE_ANIMATED_PROPERTY/DECLARE_ANIMATED_PROPERTY_NEW/ until the transition to the new concept is finished.
1504         * svg/SVGTextPathElement.h: Ditto.
1505         * svg/SVGTextPositioningElement.cpp:
1506         (WebCore::SVGTextPositioningElement::SVGTextPositioningElement):
1507         (WebCore::SVGTextPositioningElement::parseMappedAttribute): Detach wrappers pointing to the old x/y/dx/dy list, if the underlying list changes via XML DOM.
1508         (WebCore::listContainsRelativeValue): Adapt to SVGLengthList interface changes, it's a POD type now.
1509         * svg/SVGTextPositioningElement.h: s/DECLARE_ANIMATED_PROPERTY/DECLARE_ANIMATED_LIST_PROPERTY_NEW/ until the transition to the new concept is finished.
1510         * svg/SVGUseElement.h:
1511         * svg/properties/SVGAnimatedListPropertyTearOff.h: Added.
1512         * svg/properties/SVGAnimatedProperty.h: Added. This is the base class for SVGAnimatedPropertyTearOff and SVGAnimatedListPropertyTearOff.
1513         * svg/properties/SVGAnimatedPropertyDescription.h: Added. Refactored from DeprecatedSVGAnimatedProperty.h.
1514         * svg/properties/SVGAnimatedPropertyMacros.h: Added. These macros will be _removed_ as soon as the transition to the new concept is finished.
1515         * svg/properties/SVGAnimatedPropertyTearOff.h: Added.
1516         * svg/properties/SVGListPropertyTearOff.h: Added.
1517         * svg/properties/SVGProperty.h: Added. This is the base class for SVGPropertyTearOff and SVGListPropertyTearOff.
1518         * svg/properties/SVGPropertyTearOff.h: Added.
1519         * svg/properties/SVGPropertyTraits.h: Added.
1520
1521 2010-10-21  Alex Milowski  <alex@milowski.com>
1522
1523         Reviewed by Kenneth Rohde Christiansen.
1524
1525         Changed the layout algorithm for rows to avoid unnecessary recursion
1526         into child rows.  This solves the long rendering time experienced in
1527         https://bugs.webkit.org/show_bug.cgi?id=43462 as well as reports in
1528         various other bugs.  The change in the algorithm required some
1529         tweaks to other rendering objects to make sure that the baseline
1530         alignment still works.
1531
1532         In addition, an attempt was made to go through the various
1533         rendering objects for MathML and reduce unnecessary calls that
1534         mark the tree in need of layout.
1535
1536         * mathml/RenderMathMLFenced.cpp:
1537         * mathml/RenderMathMLFenced.h:
1538         * mathml/RenderMathMLFraction.cpp:
1539         (WebCore::RenderMathMLFraction::layout):
1540         * mathml/RenderMathMLOperator.cpp:
1541         (WebCore::RenderMathMLOperator::stretchToHeight):
1542         * mathml/RenderMathMLRoot.cpp:
1543         (WebCore::RenderMathMLRoot::layout):
1544         * mathml/RenderMathMLRow.cpp:
1545         (WebCore::RenderMathMLRow::layout):
1546         * mathml/RenderMathMLRow.h:
1547         (WebCore::RenderMathMLRow::stretchToHeight):
1548         * mathml/RenderMathMLSubSup.cpp:
1549         (WebCore::RenderMathMLSubSup::addChild):
1550         (WebCore::RenderMathMLSubSup::stretchToHeight):
1551         (WebCore::RenderMathMLSubSup::nonOperatorHeight):
1552         (WebCore::RenderMathMLSubSup::layout):
1553         (WebCore::RenderMathMLSubSup::baselinePosition):
1554         * mathml/RenderMathMLUnderOver.cpp:
1555         (WebCore::RenderMathMLUnderOver::stretchToHeight):
1556         (WebCore::RenderMathMLUnderOver::layout):
1557         (WebCore::RenderMathMLUnderOver::nonOperatorHeight):
1558         * mathml/mathtags.in:
1559
1560 2010-10-21  Evan Martin  <evan@chromium.org>
1561
1562         Reviewed by Tony Chang.
1563
1564         sqlite: show extended error codes in error logs
1565         https://bugs.webkit.org/show_bug.cgi?id=47859
1566
1567         SQLite can provide "extended" error codes, where extra information
1568         about the error is potentially encoded in the high bits of the error
1569         code.  It's only off by default in case older apps rely on equality
1570         testing on the older error codes, which WebKit doesn't do.
1571
1572         * platform/sql/SQLiteDatabase.cpp:
1573         (WebCore::SQLiteDatabase::open):
1574         * platform/sql/SQLiteStatement.cpp:
1575         (WebCore::SQLiteStatement::step):
1576
1577 2010-10-21  Yuta Kitamura  <yutak@chromium.org>
1578
1579         Reviewed by Yury Semikhatsky.
1580
1581         Web Inspector: Handle WebSocket events via InspectorInstrumentation
1582         https://bugs.webkit.org/show_bug.cgi?id=47968
1583
1584         * inspector/InspectorInstrumentation.cpp:
1585         (WebCore::InspectorInstrumentation::didCreateWebSocketImpl):
1586         (WebCore::InspectorInstrumentation::willSendWebSocketHandshakeRequestImpl):
1587         (WebCore::InspectorInstrumentation::didReceiveWebSocketHandshakeResponseImpl):
1588         (WebCore::InspectorInstrumentation::didCloseWebSocketImpl):
1589         * inspector/InspectorInstrumentation.h:
1590         (WebCore::InspectorInstrumentation::didCreateWebSocket):
1591         (WebCore::InspectorInstrumentation::willSendWebSocketHandshakeRequest):
1592         (WebCore::InspectorInstrumentation::didReceiveWebSocketHandshakeResponse):
1593         (WebCore::InspectorInstrumentation::didCloseWebSocket):
1594         * websockets/WebSocketChannel.cpp:
1595         (WebCore::WebSocketChannel::WebSocketChannel):
1596         Now we do not depend on InspectorController to generate a resource identifier.
1597         (WebCore::WebSocketChannel::disconnect):
1598         Check if m_identifier is valid in case we could not obtain an identifier.
1599         (WebCore::WebSocketChannel::didOpen):
1600         (WebCore::WebSocketChannel::didClose):
1601         (WebCore::WebSocketChannel::processBuffer):
1602         * websockets/WebSocketChannel.h:
1603
1604 2010-10-20  Pavel Feldman  <pfeldman@chromium.org>
1605
1606         Reviewed by Yury Semikhatsky.
1607
1608         Web Inspector: Convert sidebar into the browsing tree in the Storage panel.
1609         https://bugs.webkit.org/show_bug.cgi?id=47988
1610
1611         * English.lproj/localizedStrings.js:
1612         * inspector/front-end/ApplicationCacheItemsView.js:
1613         (WebInspector.ApplicationCacheItemsView):
1614         * inspector/front-end/ConsoleView.js:
1615         (WebInspector.ConsoleMessage.prototype._formatMessage):
1616         * inspector/front-end/CookieItemsView.js:
1617         (WebInspector.CookieItemsView):
1618         * inspector/front-end/DatabaseTableView.js:
1619         (WebInspector.DatabaseTableView.prototype._queryFinished):
1620         * inspector/front-end/StoragePanel.js:
1621         (WebInspector.StoragePanel):
1622         (WebInspector.StoragePanel.prototype.reset):
1623         (WebInspector.StoragePanel.prototype.addDatabase):
1624         (WebInspector.StoragePanel.prototype.addCookieDomain):
1625         (WebInspector.StoragePanel.prototype.addDOMStorage):
1626         (WebInspector.StoragePanel.prototype.addApplicationCache):
1627         (WebInspector.StoragePanel.prototype.showDatabase):
1628         (WebInspector.StoragePanel.prototype.showDOMStorage):
1629         (WebInspector.StoragePanel.prototype.showCookies):
1630         (WebInspector.StoragePanel.prototype.showApplicationCache):
1631         (WebInspector.StoragePanel.prototype.showCategoryView):
1632         (WebInspector.StoragePanel.prototype._innerShowView):
1633         (WebInspector.BaseStorageTreeElement):
1634         (WebInspector.BaseStorageTreeElement.prototype.onattach):
1635         (WebInspector.StorageCategoryTreeElement):
1636         (WebInspector.StorageCategoryTreeElement.prototype.onselect):
1637         (WebInspector.DatabaseTreeElement):
1638         (WebInspector.DatabaseTreeElement.prototype.onselect):
1639         (WebInspector.DatabaseTreeElement.prototype.onpopulate.tableNamesCallback):
1640         (WebInspector.DatabaseTreeElement.prototype.onpopulate):
1641         (WebInspector.DatabaseTableTreeElement):
1642         (WebInspector.DatabaseTableTreeElement.prototype.onselect):
1643         (WebInspector.DOMStorageTreeElement):
1644         (WebInspector.DOMStorageTreeElement.prototype.onselect):
1645         (WebInspector.CookieTreeElement):
1646         (WebInspector.CookieTreeElement.prototype.onselect):
1647         (WebInspector.ApplicationCacheTreeElement):
1648         (WebInspector.ApplicationCacheTreeElement.prototype.onselect):
1649         (WebInspector.StorageCategoryView):
1650         (WebInspector.StorageCategoryView.prototype.setText):
1651         * inspector/front-end/inspector.css:
1652         (.properties-tree ol):
1653         (.properties-tree ol.expanded):
1654         (.database-storage-tree-item .icon):
1655         (.database-table-storage-tree-item .icon):
1656         (.domstorage-storage-tree-item.local-storage .icon):
1657         (.domstorage-storage-tree-item.session-storage .icon):
1658         (.cookie-storage-tree-item .icon):
1659         (.application-cache-storage-tree-item .icon):
1660         (.storage.panel .sidebar):
1661         (.storage.panel .outline-disclosure > ol):
1662         (.storage.panel .outline-disclosure li):
1663         (.storage.panel .outline-disclosure li .selection):
1664         (.storage.panel .sidebar-resizer-vertical):
1665         (.storage-base-tree-element-title):
1666         (.storage.panel .outline-disclosure ol):
1667         (.storage.panel .outline-disclosure li.selected):
1668         (.storage.panel .outline-disclosure .icon):
1669         (.storage-empty-view, .storage-view.table .storage-table-error):
1670
1671 2010-10-21  Carlos Garcia Campos  <cgarcia@igalia.com>
1672
1673         Reviewed by Martin Robinson.
1674
1675         [GTK] Replace encodings multi-dimensional array with calls to registrar method
1676         https://bugs.webkit.org/show_bug.cgi?id=47990
1677
1678         * platform/text/gtk/TextCodecGtk.cpp:
1679         (WebCore::isEncodingAvailable):
1680         (WebCore::registerEncodingNameIfAvailable):
1681         (WebCore::registerEncodingAliasIfAvailable):
1682         (WebCore::registerCodecIfAvailable):
1683         (WebCore::TextCodecGtk::registerBaseEncodingNames):
1684         (WebCore::TextCodecGtk::registerBaseCodecs):
1685         (WebCore::TextCodecGtk::registerExtendedEncodingNames):
1686         (WebCore::TextCodecGtk::registerExtendedCodecs):
1687         (WebCore::TextCodecGtk::createIConvDecoder):
1688         (WebCore::TextCodecGtk::createIConvEncoder):
1689         * platform/text/gtk/TextCodecGtk.h:
1690
1691 2010-10-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1692
1693         Unreviewed, rolling out r70040.
1694         http://trac.webkit.org/changeset/70040
1695         https://bugs.webkit.org/show_bug.cgi?id=48042
1696
1697         "Reverting a performance regression detected by page_cycler"
1698         (Requested by hayato on #webkit).
1699
1700         * css/CSSStyleSelector.cpp:
1701         (WebCore::CSSStyleSelector::SelectorChecker::checkSelector):
1702         (WebCore::CSSStyleSelector::checkSelector):
1703         * css/CSSStyleSelector.h:
1704
1705 2010-10-19  Simon Fraser  <simon.fraser@apple.com>
1706
1707         Reviewed by Gavin Barraclough.
1708
1709         https://bugs.webkit.org/show_bug.cgi?id=47851
1710         
1711         Avoid buffer overflows in CSSPrimitiveValue's use of 
1712         DecimalNumber, and pass the buffer size in InspectorBasicValue.
1713
1714         Test: fast/css/large-value-csstext.html
1715
1716         * css/CSSPrimitiveValue.cpp:
1717         (WebCore::formatNumber):
1718         * inspector/InspectorValues.cpp:
1719         (WebCore::InspectorBasicValue::writeJSON):
1720
1721 2010-10-20  Dumitru Daniliuc  <dumi@chromium.org>
1722
1723         Reviewed by David Levin.
1724
1725         Add SecurityOrigin::threadsafeCopy() to the list of exported symbols.
1726         https://bugs.webkit.org/show_bug.cgi?id=40655
1727
1728         * WebCore.exp.in:
1729
1730 2010-10-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1731
1732         Unreviewed, rolling out r70165.
1733         http://trac.webkit.org/changeset/70165
1734         https://bugs.webkit.org/show_bug.cgi?id=48007
1735
1736         It broke tests on Qt bot (Requested by Ossy on #webkit).
1737
1738         * ForwardingHeaders/wtf/text/TextPosition.h: Removed.
1739         * bindings/js/ScriptSourceCode.h:
1740         (WebCore::ScriptSourceCode::ScriptSourceCode):
1741         * bindings/v8/ScheduledAction.cpp:
1742         (WebCore::ScheduledAction::ScheduledAction):
1743         * bindings/v8/ScriptController.cpp:
1744         (WebCore::ScriptController::eventHandlerLineNumber):
1745         (WebCore::ScriptController::eventHandlerColumnNumber):
1746         * bindings/v8/ScriptController.h:
1747         * bindings/v8/ScriptEventListener.cpp:
1748         (WebCore::createAttributeEventListener):
1749         * bindings/v8/ScriptSourceCode.h:
1750         (WebCore::ScriptSourceCode::ScriptSourceCode):
1751         (WebCore::ScriptSourceCode::startLine):
1752         * bindings/v8/V8LazyEventListener.cpp:
1753         (WebCore::V8LazyEventListener::V8LazyEventListener):
1754         (WebCore::V8LazyEventListener::prepareListenerObject):
1755         * bindings/v8/V8LazyEventListener.h:
1756         (WebCore::V8LazyEventListener::create):
1757         * bindings/v8/V8Proxy.cpp:
1758         (WebCore::V8Proxy::compileScript):
1759         (WebCore::V8Proxy::evaluate):
1760         (WebCore::V8Proxy::runScript):
1761         * bindings/v8/V8Proxy.h:
1762         * bindings/v8/WorkerContextExecutionProxy.cpp:
1763         (WebCore::WorkerContextExecutionProxy::evaluate):
1764         (WebCore::WorkerContextExecutionProxy::runScript):
1765         * bindings/v8/WorkerContextExecutionProxy.h:
1766         * bindings/v8/WorkerScriptController.cpp:
1767         (WebCore::WorkerScriptController::evaluate):
1768         * dom/PendingScript.cpp:
1769         (WebCore::PendingScript::releaseElementAndClear):
1770         * dom/PendingScript.h:
1771         (WebCore::PendingScript::PendingScript):
1772         (WebCore::PendingScript::operator=):
1773         (WebCore::PendingScript::startingLineNumber):
1774         * dom/ScriptableDocumentParser.h:
1775         * dom/XMLDocumentParser.h:
1776         * dom/XMLDocumentParserLibxml2.cpp:
1777         (WebCore::XMLDocumentParser::XMLDocumentParser):
1778         (WebCore::XMLDocumentParser::startElementNs):
1779         (WebCore::XMLDocumentParser::endElementNs):
1780         (WebCore::XMLDocumentParser::lineNumber):
1781         (WebCore::XMLDocumentParser::columnNumber):
1782         * dom/XMLDocumentParserQt.cpp:
1783         (WebCore::XMLDocumentParser::XMLDocumentParser):
1784         (WebCore::XMLDocumentParser::parseStartElement):
1785         (WebCore::XMLDocumentParser::parseEndElement):
1786         * html/parser/HTMLDocumentParser.cpp:
1787         (WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder):
1788         (WebCore::HTMLDocumentParser::columnNumber):
1789         * html/parser/HTMLDocumentParser.h:
1790         * html/parser/HTMLScriptRunner.cpp:
1791         (WebCore::HTMLScriptRunner::sourceFromPendingScript):
1792         (WebCore::HTMLScriptRunner::execute):
1793         (WebCore::HTMLScriptRunner::runScript):
1794         * html/parser/HTMLScriptRunner.h:
1795         * html/parser/HTMLTreeBuilder.cpp:
1796         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
1797         (WebCore::HTMLTreeBuilder::takeScriptToProcess):
1798         (WebCore::HTMLTreeBuilder::processEndTag):
1799         (WebCore::HTMLTreeBuilder::processScriptStartTag):
1800         * html/parser/HTMLTreeBuilder.h:
1801
1802 2010-10-20  David Hyatt  <hyatt@apple.com>
1803
1804         Reviewed by Dan Bernstein.
1805
1806         https://bugs.webkit.org/show_bug.cgi?id=48001
1807
1808         Make boxes place themselves properly in the block direction.  Get basic painting working for spans and add a test that
1809         verifies that span painting and replaced element painting (like images) works correctly.
1810         
1811         Added fast/blockflow/basic-vertical-line.html
1812
1813         * rendering/InlineBox.cpp:
1814         (WebCore::InlineBox::logicalHeight):
1815         * rendering/InlineFlowBox.cpp:
1816         (WebCore::InlineFlowBox::placeBoxesInInlineDirection):
1817         (WebCore::InlineFlowBox::adjustMaxAscentAndDescent):
1818         (WebCore::verticalPositionForBox):
1819         (WebCore::InlineFlowBox::computeLogicalBoxHeights):
1820         (WebCore::InlineFlowBox::placeBoxesInBlockDirection):
1821         (WebCore::InlineFlowBox::flipLinesInBlockDirection):
1822         (WebCore::InlineFlowBox::paintBoxDecorations):
1823         (WebCore::InlineFlowBox::paintMask):
1824         * rendering/InlineFlowBox.h:
1825         * rendering/style/RenderStyle.h:
1826         (WebCore::InheritedFlags::isFlippedLinesWritingMode):
1827
1828 2010-10-20  Beth Dakin  <bdakin@apple.com>
1829
1830         Reviewed by Dave Hyatt.
1831
1832         Fix for https://bugs.webkit.org/show_bug.cgi?id=47514 CSS 
1833         transforms should affect scrolling
1834
1835         This patch causes topmostPosition, lowestPosition, 
1836         leftmostPosition, and rightmostPosition to take transforms into 
1837         account.
1838
1839         Compute the topmost/lowest/leftmost/rightmost position without 
1840         factoring in the block's transform until the end.
1841         * rendering/RenderBlock.cpp:
1842         (WebCore::RenderBlock::topmostPosition):
1843         (WebCore::RenderBlock::lowestPosition):
1844         (WebCore::RenderBlock::rightmostPosition):
1845         (WebCore::RenderBlock::leftmostPosition):
1846         * rendering/RenderBlock.h:
1847
1848         transformedFrameRect() returns the frameRect() transformed to the 
1849         layer's transform. applyLayerTransformToRect() does the same thing 
1850         for the input rect.
1851         * rendering/RenderBox.cpp:
1852         (WebCore::RenderBox::applyLayerTransformToRect):
1853         (WebCore::RenderBox::transformedFrameRect):
1854         (WebCore::RenderBox::topmostPosition):
1855         (WebCore::RenderBox::lowestPosition):
1856         (WebCore::RenderBox::rightmostPosition):
1857         (WebCore::RenderBox::leftmostPosition):
1858         * rendering/RenderBox.h:
1859         * rendering/RenderMedia.cpp:
1860         (WebCore::RenderMedia::topmostPosition):
1861         (WebCore::RenderMedia::lowestPosition):
1862         (WebCore::RenderMedia::rightmostPosition):
1863         (WebCore::RenderMedia::leftmostPosition):
1864         * rendering/RenderMedia.h:
1865         * rendering/RenderTableSection.cpp:
1866         (WebCore::RenderTableSection::topmostPosition):
1867         (WebCore::RenderTableSection::lowestPosition):
1868         (WebCore::RenderTableSection::rightmostPosition):
1869         (WebCore::RenderTableSection::leftmostPosition):
1870         * rendering/RenderTableSection.h:
1871
1872 2010-10-20  Nikolas Zimmermann  <nzimmermann@rim.com>
1873
1874         Not reviewed.
1875
1876         Rename SVGAnimatedProperty* -> DeprecatedSVGAnimatedProperty*
1877         https://bugs.webkit.org/show_bug.cgi?id=47973
1878
1879         Copy headers from svg/properties, otherwhise builds from scratch on win are broken.
1880
1881         * WebCore.vcproj/copyForwardingHeaders.cmd:
1882
1883 2010-10-20  Peter Rybin  <peter.rybin@gmail.com>
1884
1885         Reviewed by Adam Barth.
1886
1887         HTML parser should provide script column position within HTML document to JavaScript engine
1888         https://bugs.webkit.org/show_bug.cgi?id=45271
1889
1890         Replaces line number with TextPosition struct so that script engine
1891         gets script starting line/column.
1892
1893         * ForwardingHeaders/wtf/text/TextPosition.h: Added.
1894         * bindings/js/ScriptSourceCode.h:
1895         (WebCore::ScriptSourceCode::ScriptSourceCode):
1896         * bindings/v8/ScheduledAction.cpp:
1897         (WebCore::ScheduledAction::ScheduledAction):
1898         * bindings/v8/ScriptController.cpp:
1899         (WebCore::ScriptController::eventHandlerPosition):
1900         * bindings/v8/ScriptController.h:
1901         * bindings/v8/ScriptEventListener.cpp:
1902         (WebCore::createAttributeEventListener):
1903         * bindings/v8/ScriptSourceCode.h:
1904         (WebCore::ScriptSourceCode::ScriptSourceCode):
1905         (WebCore::ScriptSourceCode::startLine):
1906         (WebCore::ScriptSourceCode::startPosition):
1907         * bindings/v8/V8LazyEventListener.cpp:
1908         (WebCore::V8LazyEventListener::V8LazyEventListener):
1909         (WebCore::V8LazyEventListener::prepareListenerObject):
1910         * bindings/v8/V8LazyEventListener.h:
1911         (WebCore::V8LazyEventListener::create):
1912         * bindings/v8/V8Proxy.cpp:
1913         (WebCore::V8Proxy::compileScript):
1914         (WebCore::V8Proxy::evaluate):
1915         (WebCore::V8Proxy::runScript):
1916         * bindings/v8/V8Proxy.h:
1917         * bindings/v8/WorkerContextExecutionProxy.cpp:
1918         (WebCore::WorkerContextExecutionProxy::evaluate):
1919         (WebCore::WorkerContextExecutionProxy::runScript):
1920         * bindings/v8/WorkerContextExecutionProxy.h:
1921         * bindings/v8/WorkerScriptController.cpp:
1922         (WebCore::WorkerScriptController::evaluate):
1923         * dom/PendingScript.cpp:
1924         (WebCore::PendingScript::releaseElementAndClear):
1925         * dom/PendingScript.h:
1926         (WebCore::PendingScript::PendingScript):
1927         (WebCore::PendingScript::operator=):
1928         (WebCore::PendingScript::startingPosition):
1929         * dom/ScriptableDocumentParser.h:
1930         * dom/XMLDocumentParser.h:
1931         * dom/XMLDocumentParserLibxml2.cpp:
1932         (WebCore::XMLDocumentParser::XMLDocumentParser):
1933         (WebCore::XMLDocumentParser::startElementNs):
1934         (WebCore::XMLDocumentParser::endElementNs):
1935         (WebCore::XMLDocumentParser::lineNumber):
1936         (WebCore::XMLDocumentParser::columnNumber):
1937         (WebCore::XMLDocumentParser::textPosition):
1938         (WebCore::XMLDocumentParser::textPositionOneBased):
1939         * dom/XMLDocumentParserQt.cpp:
1940         (WebCore::XMLDocumentParser::XMLDocumentParser):
1941         (WebCore::XMLDocumentParser::textPosition):
1942         (WebCore::XMLDocumentParser::parseStartElement):
1943         (WebCore::XMLDocumentParser::parseEndElement):
1944         * html/parser/HTMLDocumentParser.cpp:
1945         (WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder):
1946         (WebCore::HTMLDocumentParser::textPosition):
1947         * html/parser/HTMLDocumentParser.h:
1948         * html/parser/HTMLScriptRunner.cpp:
1949         (WebCore::HTMLScriptRunner::sourceFromPendingScript):
1950         (WebCore::HTMLScriptRunner::execute):
1951         (WebCore::HTMLScriptRunner::runScript):
1952         * html/parser/HTMLScriptRunner.h:
1953         * html/parser/HTMLTreeBuilder.cpp:
1954         (WebCore::uninitializedPositionValue1):
1955         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
1956         (WebCore::HTMLTreeBuilder::takeScriptToProcess):
1957         (WebCore::HTMLTreeBuilder::processEndTag):
1958         (WebCore::HTMLTreeBuilder::processScriptStartTag):
1959         * html/parser/HTMLTreeBuilder.h:
1960
1961 2010-10-20  David Hyatt  <hyatt@apple.com>
1962
1963         Reviewed by Simon Fraser.
1964
1965         https://bugs.webkit.org/show_bug.cgi?id=47994
1966         
1967         Make computeBlockDirectionPositionsForLine writing-mode-aware.  None of the functions it calls are patched yet.
1968
1969         * rendering/RenderBlockLineLayout.cpp:
1970         (WebCore::RenderBlock::computeBlockDirectionPositionsForLine):
1971
1972 2010-10-20  John Abd-El-Malek  <jam@chromium.org>
1973
1974         Reviewed by Darin Fisher.
1975
1976         [chromium] Fix crash when mousing over scrollview
1977         https://bugs.webkit.org/show_bug.cgi?id=47956
1978
1979         Test: plugins/mouse-move-over-plugin-in-frame.html
1980
1981         * platform/Widget.h:
1982         (WebCore::Widget::isPluginContainer):
1983
1984 2010-10-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1985
1986         Unreviewed, rolling out r70149.
1987         http://trac.webkit.org/changeset/70149
1988         https://bugs.webkit.org/show_bug.cgi?id=47989
1989
1990         "Build breaks in mac and win" (Requested by satish on
1991         #webkit).
1992
1993         * dom/Element.cpp:
1994         (WebCore::Element::computeInheritedLanguage):
1995         * page/SpeechInput.cpp:
1996         (WebCore::SpeechInput::startRecognition):
1997         * page/SpeechInput.h:
1998         * page/SpeechInputClient.h:
1999         * platform/mock/SpeechInputClientMock.cpp:
2000         (WebCore::SpeechInputClientMock::startRecognition):
2001         (WebCore::SpeechInputClientMock::setRecognitionResult):
2002         (WebCore::SpeechInputClientMock::timerFired):
2003         * platform/mock/SpeechInputClientMock.h:
2004         * rendering/TextControlInnerElements.cpp:
2005         (WebCore::TextControlInnerElement::attachInnerElement):
2006         (WebCore::SearchFieldCancelButtonElement::detach):
2007         (WebCore::SpinButtonElement::defaultEventHandler):
2008         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
2009         (WebCore::InputFieldSpeechButtonElement::detach):
2010
2011 2010-10-20  Dirk Schulze  <krit@webkit.org>
2012
2013         Reviewed by Nikolas Zimmermann.
2014
2015         Merge ColorSpace and ImageColorSpace enums
2016         https://bugs.webkit.org/show_bug.cgi?id=47922
2017
2018         Merging these two enums makes it easier to implement color-interpolation as well as
2019         color-interpolation-filter for SVG.
2020         Added ColorSpaceLinearRGB to the ColorSpace enum and changed ImageColorSpace to ColorSpace in all related
2021         files. Renamed enum entries DeviceColorSpace and sRGBColorSpace to ColorSpaceDeviceRGB and ColorSpaceSRGB
2022         to follow webkit style rules.
2023         Removed gray scale support in ImageBuffer since it is not used anymore on WebKit.
2024
2025         * css/CSSPrimitiveValueMappings.h:
2026         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2027         (WebCore::CSSPrimitiveValue::operator ColorSpace):
2028         * css/CSSStyleSelector.cpp:
2029         (WebCore::CSSStyleSelector::applyProperty):
2030         * editing/SelectionController.cpp:
2031         (WebCore::SelectionController::paintCaret):
2032         * html/HTMLCanvasElement.cpp:
2033         (WebCore::HTMLCanvasElement::paint):
2034         * html/canvas/CanvasRenderingContext2D.cpp:
2035         (WebCore::CanvasRenderingContext2D::setAllAttributesToDefault):
2036         (WebCore::CanvasRenderingContext2D::setShadow):
2037         (WebCore::CanvasRenderingContext2D::applyShadow):
2038         (WebCore::CanvasRenderingContext2D::drawImage):
2039         (WebCore::CanvasRenderingContext2D::drawImageFromRect):
2040         (WebCore::CanvasRenderingContext2D::drawTextInternal):
2041         * html/canvas/CanvasStyle.cpp:
2042         (WebCore::CanvasStyle::applyStrokeColor):
2043         (WebCore::CanvasStyle::applyFillColor):
2044         * inspector/InspectorController.cpp:
2045         (WebCore::drawOutlinedQuad):
2046         (WebCore::InspectorController::drawElementTitle):
2047         * mathml/RenderMathMLBlock.cpp:
2048         (WebCore::RenderMathMLBlock::paint):
2049         * mathml/RenderMathMLFraction.cpp:
2050         (WebCore::RenderMathMLFraction::paint):
2051         * mathml/RenderMathMLRoot.cpp:
2052         (WebCore::RenderMathMLRoot::paint):
2053         * mathml/RenderMathMLSquareRoot.cpp:
2054         (WebCore::RenderMathMLSquareRoot::paint):
2055         * page/FrameView.cpp:
2056         (WebCore::FrameView::paintContents):
2057         * page/PrintContext.cpp:
2058         (WebCore::PrintContext::spoolAllPagesWithBoundaries):
2059         * platform/ScrollView.cpp:
2060         (WebCore::ScrollView::wheelEvent):
2061         * platform/ScrollbarTheme.h:
2062         (WebCore::ScrollbarTheme::paintScrollCorner):
2063         * platform/ScrollbarThemeComposite.cpp:
2064         (WebCore::ScrollbarThemeComposite::paintScrollCorner):
2065         * platform/chromium/PopupMenuChromium.cpp:
2066         (WebCore::PopupContainer::paintBorder):
2067         (WebCore::PopupListBox::paint):
2068         (WebCore::PopupListBox::paintRow):
2069         * platform/chromium/ScrollbarThemeChromium.cpp:
2070         (WebCore::ScrollbarThemeChromium::paintTickmarks):
2071         * platform/chromium/ScrollbarThemeChromiumMac.mm:
2072         (WebCore::ScrollbarThemeChromiumMac::paint):
2073         * platform/graphics/ColorSpace.h:
2074         * platform/graphics/GraphicsContext.cpp:
2075         (WebCore::GraphicsContext::setStrokePattern):
2076         (WebCore::GraphicsContext::setFillPattern):
2077         (WebCore::GraphicsContext::setStrokeGradient):
2078         (WebCore::GraphicsContext::setFillGradient):
2079         * platform/graphics/GraphicsContextPrivate.h:
2080         (WebCore::GraphicsContextState::GraphicsContextState):
2081         * platform/graphics/ImageBuffer.cpp:
2082         (WebCore::ImageBuffer::transformColorSpace):
2083         * platform/graphics/ImageBuffer.h:
2084         (WebCore::ImageBuffer::create):
2085         * platform/graphics/cairo/ImageBufferCairo.cpp:
2086         (WebCore::ImageBuffer::ImageBuffer):
2087         * platform/graphics/cg/ColorCG.cpp:
2088         (WebCore::cachedCGColorSpace):
2089         (WebCore::cachedCGColor):
2090         * platform/graphics/cg/GraphicsContextCG.cpp:
2091         (WebCore::linearRGBColorSpaceRef):
2092         * platform/graphics/cg/GraphicsContextCG.h:
2093         * platform/graphics/cg/ImageBufferCG.cpp:
2094         (WebCore::ImageBuffer::ImageBuffer):
2095         (WebCore::cgImage):
2096         (WebCore::ImageBuffer::draw):
2097         * platform/graphics/cg/ImageBufferData.h:
2098         * platform/graphics/cg/ImageCG.cpp:
2099         (WebCore::imageWithColorSpace):
2100         * platform/graphics/chromium/GLES2Canvas.cpp:
2101         (WebCore::GLES2Canvas::clearRect):
2102         (WebCore::GLES2Canvas::fillRect):
2103         * platform/graphics/chromium/TransparencyWin.cpp:
2104         (WebCore::TransparencyWin::setupLayerForWhiteLayer):
2105         * platform/graphics/filters/FEColorMatrix.cpp:
2106         (WebCore::FEColorMatrix::apply):
2107         * platform/graphics/filters/FEComposite.cpp:
2108         (WebCore::FEComposite::apply):
2109         * platform/graphics/filters/FEFlood.cpp:
2110         (WebCore::FEFlood::apply):
2111         * platform/graphics/filters/FEMerge.cpp:
2112         (WebCore::FEMerge::apply):
2113         * platform/graphics/filters/FEOffset.cpp:
2114         (WebCore::FEOffset::apply):
2115         * platform/graphics/filters/FETile.cpp:
2116         (WebCore::FETile::apply):
2117         * platform/graphics/filters/FilterEffect.cpp:
2118         (WebCore::FilterEffect::effectContext):
2119         * platform/graphics/filters/SourceAlpha.cpp:
2120         (WebCore::SourceAlpha::apply):
2121         * platform/graphics/filters/SourceGraphic.cpp:
2122         (WebCore::SourceGraphic::apply):
2123         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2124         (WebCore::MediaPlayerPrivateGStreamer::paint):
2125         * platform/graphics/gtk/FontGtk.cpp:
2126         (WebCore::Font::drawComplexText):
2127         * platform/graphics/mac/GraphicsContextMac.mm:
2128         (WebCore::GraphicsContext::drawFocusRing):
2129         * platform/graphics/mac/GraphicsLayerCA.mm:
2130         (WebCore::setLayerBorderColor):
2131         (WebCore::setLayerBackgroundColor):
2132         * platform/graphics/qt/GraphicsContextQt.cpp:
2133         (WebCore::GraphicsContext::GraphicsContext):
2134         * platform/graphics/qt/ImageBufferQt.cpp:
2135         (WebCore::ImageBuffer::ImageBuffer):
2136         (WebCore::ImageBuffer::draw):
2137         * platform/graphics/skia/ImageBufferSkia.cpp:
2138         (WebCore::ImageBuffer::ImageBuffer):
2139         * platform/graphics/skia/PlatformContextSkia.cpp:
2140         (WebCore::PlatformContextSkia::uploadSoftwareToHardware):
2141         * platform/graphics/win/FontCGWin.cpp:
2142         (WebCore::Font::drawGlyphs):
2143         * platform/graphics/win/GraphicsContextCGWin.cpp:
2144         (WebCore::GraphicsContext::GraphicsContext):
2145         (WebCore::GraphicsContext::drawFocusRing):
2146         * platform/graphics/win/GraphicsLayerCACF.cpp:
2147         (WebCore::setLayerBorderColor):
2148         (WebCore::setLayerBackgroundColor):
2149         * platform/graphics/win/ImageCGWin.cpp:
2150         (WebCore::BitmapImage::getHBITMAPOfSize):
2151         * platform/graphics/win/ImageCairoWin.cpp:
2152         (WebCore::BitmapImage::getHBITMAPOfSize):
2153         (WebCore::BitmapImage::drawFrameMatchingSourceSize):
2154         * platform/graphics/win/WebLayer.cpp:
2155         (WebCore::WebLayer::drawInContext):
2156         * platform/graphics/wince/GraphicsContextWinCE.cpp:
2157         (WebCore::GraphicsContext::clearRect):
2158         (WebCore::GraphicsContext::fillRect):
2159         * platform/graphics/wince/ImageWinCE.cpp:
2160         (WebCore::BitmapImage::getHBITMAPOfSize):
2161         * platform/graphics/wx/GraphicsContextWx.cpp:
2162         (WebCore::GraphicsContext::GraphicsContext):
2163         * platform/gtk/RenderThemeGtk.cpp:
2164         (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration):
2165         (WebCore::RenderThemeGtk::paintSearchFieldCancelButton):
2166         (WebCore::paintMediaButton):
2167         (WebCore::RenderThemeGtk::paintMediaSliderTrack):
2168         (WebCore::RenderThemeGtk::paintMediaSliderThumb):
2169         * platform/mac/ScrollbarThemeMac.mm:
2170         (WebCore::ScrollbarThemeMac::paint):
2171         * platform/win/PopupMenuWin.cpp:
2172         (WebCore::PopupMenuWin::paint):
2173         * platform/win/WebCoreTextRenderer.cpp:
2174         (WebCore::doDrawTextAtPoint):
2175         * platform/wx/wxcode/mac/carbon/non-kerned-drawing.cpp:
2176         (WebCore::drawTextWithSpacing):
2177         * plugins/PluginView.cpp:
2178         (WebCore::PluginView::paintMissingPluginIcon):
2179         * rendering/RenderLayer.cpp:
2180         (WebCore::RenderLayer::beginTransparencyLayers):
2181         (WebCore::RenderLayer::paintResizer):
2182         * rendering/RenderListMarker.cpp:
2183         (WebCore::RenderListMarker::paint):
2184         * rendering/RenderMediaControlsChromium.cpp:
2185         (WebCore::paintMediaButton):
2186         (WebCore::paintMediaSlider):
2187         (WebCore::paintMediaVolumeSlider):
2188         (WebCore::paintMediaTimelineContainer):
2189         * rendering/RenderSVGImage.cpp:
2190         (WebCore::RenderSVGImage::paint):
2191         * rendering/RenderSVGResourceClipper.cpp:
2192         (WebCore::RenderSVGResourceClipper::applyClippingToContext):
2193         * rendering/RenderSVGResourceFilter.cpp:
2194         (WebCore::RenderSVGResourceFilter::applyResource):
2195         (WebCore::RenderSVGResourceFilter::postApplyResource):
2196         * rendering/RenderSVGResourceGradient.cpp:
2197         (WebCore::createMaskAndSwapContextForTextGradient):
2198         * rendering/RenderSVGResourceMasker.cpp:
2199         (WebCore::RenderSVGResourceMasker::applyResource):
2200         (WebCore::RenderSVGResourceMasker::drawContentIntoMaskImage):
2201         * rendering/RenderSVGResourcePattern.cpp:
2202         (WebCore::RenderSVGResourcePattern::createTileImage):
2203         * rendering/RenderSVGResourceSolidColor.cpp:
2204         (WebCore::RenderSVGResourceSolidColor::applyResource):
2205         * rendering/RenderScrollbarTheme.cpp:
2206         (WebCore::RenderScrollbarTheme::paintScrollCorner):
2207         * rendering/RenderThemeMac.mm:
2208         (WebCore::RenderThemeMac::paintProgressBar):
2209         (WebCore::RenderThemeMac::paintMenuListButton):
2210         * rendering/RenderThemeSafari.cpp:
2211         (WebCore::RenderThemeSafari::paintMenuListButton):
2212         * rendering/RenderThemeWinCE.cpp:
2213         (WebCore::RenderThemeWinCE::paintSearchFieldCancelButton):
2214         (WebCore::RenderThemeWinCE::paintSliderTrack):
2215         (WebCore::RenderThemeWinCE::paintSliderThumb):
2216         * rendering/SVGImageBufferTools.cpp:
2217         (WebCore::SVGImageBufferTools::createImageBuffer):
2218         * rendering/SVGImageBufferTools.h:
2219         * rendering/style/StyleRareInheritedData.cpp:
2220         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
2221         * svg/SVGFEImageElement.cpp:
2222         (WebCore::SVGFEImageElement::build):
2223         * svg/graphics/SVGImage.cpp:
2224         (WebCore::SVGImage::nativeImageForCurrentFrame):
2225         * svg/graphics/filters/SVGFEImage.cpp:
2226         (WebCore::FEImage::apply):
2227
2228 2010-10-20  Dirk Schulze  <krit@webkit.org>
2229
2230         Reviewed by Andreas Kling.
2231
2232         Remove left over code after moving Cairo port to ShadowContext
2233         https://bugs.webkit.org/show_bug.cgi?id=47929
2234
2235         ImageBufferFilter is not needed anymore, since Cairo is using ShadowContext now.
2236         Made kernelPosition() in FEGaussianBlur a inline function instead of a static function.
2237
2238         * CMakeLists.txt:
2239         * GNUmakefile.am:
2240         * WebCore.gypi:
2241         * WebCore.vcproj/WebCore.vcproj:
2242         * platform/graphics/filters/FEGaussianBlur.cpp:
2243         (WebCore::kernelPosition):
2244         * platform/graphics/filters/FEGaussianBlur.h:
2245         * platform/graphics/filters/ImageBufferFilter.cpp: Removed.
2246         * platform/graphics/filters/ImageBufferFilter.h: Removed.
2247
2248 2010-10-20  Nikolas Zimmermann  <nzimmermann@rim.com>
2249
2250         Not reviewed.
2251
2252         Fix efl build, by adding the new svg/properties include directory.
2253
2254         * CMakeLists.txt:
2255
2256 2010-10-19  Andrey Kosyakov  <caseq@chromium.org>
2257
2258         Reviewed by Pavel Feldman.
2259
2260         Web Inspector: expose request/response cookies in HAR
2261         https://bugs.webkit.org/show_bug.cgi?id=47894
2262
2263         Test: inspector/cookie-parser.html
2264
2265         * WebCore.gypi:
2266         * WebCore.vcproj/WebCore.vcproj:
2267         * inspector/front-end/CookieParser.js: Added.
2268         * inspector/front-end/HAREntry.js:
2269         (WebInspector.HAREntry.prototype._buildRequest):
2270         (WebInspector.HAREntry.prototype._buildResponse):
2271         (WebInspector.HAREntry.prototype._buildCookies):
2272         (WebInspector.HAREntry.prototype._buildCookie):
2273         * inspector/front-end/Resource.js: Parse Cookie/Set-Cookie headers and expose cookies.
2274         (WebInspector.Resource.prototype.set requestHeaders):
2275         (WebInspector.Resource.prototype.get requestCookies):
2276         (WebInspector.Resource.prototype.set responseHeaders):
2277         (WebInspector.Resource.prototype.get responseCookies):
2278         (WebInspector.Resource.prototype._parseRequestCookies):
2279         (WebInspector.Resource.prototype._parseResponseCookies):
2280         * inspector/front-end/WebKit.qrc:
2281         * inspector/front-end/inspector.html:
2282
2283 2010-10-20  Nikolas Zimmermann  <nzimmermann@rim.com>
2284
2285         Not reviewed.
2286
2287         Fix non-mac builds, by adding the new svg/properties include directory.
2288
2289         * GNUmakefile.am:
2290         * WebCore.gyp/WebCore.gyp:
2291         * WebCore.pro:
2292         * WebCore.vcproj/WebCoreCommon.vsprops:
2293
2294 2010-10-20  Nikolas Zimmermann  <nzimmermann@rim.com>
2295
2296         Reviewed by Adam Roben.
2297
2298         Rename SVGAnimatedProperty* -> DeprecatedSVGAnimatedProperty*
2299         https://bugs.webkit.org/show_bug.cgi?id=47973
2300
2301         Prepare fixing bug 47905, redesigning SVGAnimatedProperty. As we're going to move type by type
2302         to the new animated property concept, keep the old one around, marked deprecated, until the
2303         transition is finished.
2304
2305         * GNUmakefile.am:
2306         * WebCore.gypi:
2307         * WebCore.pro:
2308         * WebCore.vcproj/WebCore.vcproj:
2309         * WebCore.xcodeproj/project.pbxproj:
2310         * bindings/scripts/CodeGeneratorObjC.pm:
2311         * bindings/scripts/CodeGeneratorV8.pm:
2312         * svg/DeprecatedSVGAnimatedProperty.h: Copied from svg/SVGAnimatedProperty.h.
2313         (WebCore::DeprecatedSVGAnimatedPropertyTearOff::DeprecatedSVGAnimatedPropertyTearOff):
2314         (WebCore::DeprecatedSVGAnimatedPropertyTearOff::~DeprecatedSVGAnimatedPropertyTearOff):
2315         (WebCore::DeprecatedSVGAnimatedProperty::~DeprecatedSVGAnimatedProperty):
2316         (WebCore::DeprecatedSVGAnimatedProperty::DeprecatedSVGAnimatedProperty):
2317         (WebCore::DeprecatedSVGAnimatedProperty::value):
2318         (WebCore::DeprecatedSVGAnimatedProperty::baseValue):
2319         * svg/DeprecatedSVGAnimatedPropertyTraits.h: Copied from svg/SVGAnimatedPropertyTraits.h.
2320         * svg/DeprecatedSVGAnimatedTemplate.h: Copied from svg/SVGAnimatedTemplate.h.
2321         (WebCore::DeprecatedSVGAnimatedTypeWrapperKey::DeprecatedSVGAnimatedTypeWrapperKey):
2322         (WebCore::DeprecatedSVGAnimatedTypeWrapperKey::operator==):
2323         (WebCore::DeprecatedSVGAnimatedTypeWrapperKeyHash::hash):
2324         (WebCore::DeprecatedSVGAnimatedTypeWrapperKeyHash::equal):
2325         (WebCore::DeprecatedSVGAnimatedTypeWrapperKeyHashTraits::constructDeletedValue):
2326         (WebCore::DeprecatedSVGAnimatedTypeWrapperKeyHashTraits::isDeletedValue):
2327         (WebCore::DeprecatedSVGAnimatedTemplate::~DeprecatedSVGAnimatedTemplate):
2328         (WebCore::DeprecatedSVGAnimatedTemplate::forgetWrapper):
2329         (WebCore::lookupOrCreateWrapper):
2330         * svg/SVGAnimatedProperty.h: Removed.
2331         * svg/SVGAnimatedPropertySynchronizer.h: Removed.
2332         * svg/SVGAnimatedPropertyTraits.h: Removed.
2333         * svg/SVGAnimatedTemplate.h: Removed.
2334         * svg/SVGElement.h:
2335         * svg/SVGExternalResourcesRequired.h:
2336         * svg/SVGFitToViewBox.h:
2337         * svg/SVGURIReference.h:
2338         * svg/properties: Added.
2339         * svg/properties/SVGAnimatedPropertySynchronizer.h: Copied from svg/SVGAnimatedPropertySynchronizer.h.
2340
2341 2010-10-20  Shinichiro Hamaji  <hamaji@chromium.org>
2342
2343         Reviewed by Kent Tamura.
2344
2345         absolutely positioned list in inline element crashes
2346         https://bugs.webkit.org/show_bug.cgi?id=45095
2347
2348         Add a NULL check to avoid crash. The rendering result isn't ideal yet.
2349
2350         Test: fast/lists/positioned-count-crash.html
2351
2352         * rendering/RenderListItem.cpp:
2353         (WebCore::previousListItem):
2354
2355 2010-10-19  Adam Roben  <aroben@apple.com>
2356
2357         Remove uses of CACFContextRef and CARender* from WebCore
2358
2359         These types are now wrapped in a WKCACFContext type exported by
2360         WebKitSystemInterface.
2361
2362         Fixes <http://webkit.org/b/43244>.
2363
2364         Reviewed by Sam Weinig.
2365
2366         * platform/graphics/win/WKCACFContextFlusher.cpp:
2367         (WebCore::WKCACFContextFlusher::addContext):
2368         (WebCore::WKCACFContextFlusher::removeContext):
2369         (WebCore::WKCACFContextFlusher::flushAllContexts):
2370         * platform/graphics/win/WKCACFContextFlusher.h:
2371         Changed to use WKCACFContext. We don't retain/release the context when
2372         putting it into/taking it out of the set. WKCACFContext is not a
2373         ref-counted type, so we can't retain/release it, but the
2374         retain/release was also unnecessary as WKCACFLayerRenderer calls
2375         removeContext before the context is destroyed.
2376
2377         * platform/graphics/win/WKCACFLayer.cpp:
2378         (WebCore::WKCACFLayer::becomeRootLayerForContext):
2379         * platform/graphics/win/WKCACFLayer.h:
2380         Changed to use WKCACFContext.
2381
2382         * platform/graphics/win/WKCACFLayerRenderer.cpp:
2383         (WebCore::WKCACFLayerRenderer::didFlushContext):
2384         (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer):
2385         (WebCore::WKCACFLayerRenderer::~WKCACFLayerRenderer):
2386         (WebCore::WKCACFLayerRenderer::layerTreeDidChange):
2387         (WebCore::WKCACFLayerRenderer::createRenderer):
2388         (WebCore::WKCACFLayerRenderer::destroyRenderer):
2389         (WebCore::WKCACFLayerRenderer::render): Also replaced uses of
2390         CGSRegion with WebKitSystemInterface functions/types.
2391         (WebCore::WKCACFLayerRenderer::resetDevice):
2392         * platform/graphics/win/WKCACFLayerRenderer.h:
2393         Replaced our CACFContextRef, CARenderContext, and CARenderOGLContext
2394         with a single WKCACFContext, which wraps all three. We hold a bare
2395         pointer to it and destroy it in our destructor.
2396
2397 2010-10-19  Yongjun Zhang  <yongjun_zhang@apple.com>
2398
2399         Reviewed by Dan Bernstein.
2400
2401         Pixel cracks when using background image sprite on transformed element at certain scales.
2402         https://bugs.webkit.org/show_bug.cgi?id=47868
2403
2404         The pixel bleeding happens when the current context has scale and interpolation is kCGInterpolationHigh
2405         or kCGInterpolationDefault.  If the source rect size is smaller than the intrinsic image size,  some
2406         pixels outside of the clip rect will also be used to interpolate the color value for clip edges, which
2407         results in unwanted thin lines around the painted area.  We need to use sub-image patch to get rid of
2408         the artifacts in this case.
2409
2410         Test: fast/images/pixel-crack-image-background-webkit-transform-scale.html
2411
2412         * platform/graphics/cg/ImageCG.cpp:
2413         (WebCore::BitmapImage::draw):
2414
2415 2010-10-19  Evan Martin  <evan@chromium.org>
2416
2417         Reviewed by Tony Chang.
2418
2419         sqlite: remove unused member variable
2420         https://bugs.webkit.org/show_bug.cgi?id=47957
2421
2422         There's no need to save the error code into a member variable
2423         because nobody ever looks at it.
2424
2425         * platform/sql/SQLiteDatabase.cpp:
2426         (WebCore::SQLiteDatabase::open):
2427         * platform/sql/SQLiteDatabase.h:
2428
2429 2010-10-19  Jia Pu  <jpu@apple.com>
2430
2431         Reviewed by James Robinson.
2432
2433         Moving cursor back to autocorrected word in the same line shouldn't remove the underline
2434         https://bugs.webkit.org/show_bug.cgi?id=47629
2435         <rdar://problem/8546758>
2436         
2437         Patch <http://trac.webkit.org/changeset/70071> breaks some Chromium Mac hehavior. This patch
2438         fixes that.
2439
2440         * editing/Editor.cpp:
2441         (WebCore::Editor::respondToChangedSelection): Add "!PLATFORM(MAC)" to make sure nothing changes
2442           on non-Mac platforms.
2443
2444 2010-10-19  Alexey Proskuryakov  <ap@apple.com>
2445
2446         Build fix (EFL, maybe more).
2447
2448         * CMakeLists.txt: Added platform/Language.cpp here, too.
2449
2450 2010-10-19  Jian Li  <jianli@chromium.org>
2451
2452         Reviewed by Darin Fisher.
2453
2454         Rename createBlobURL to createObjectURL and revokeBlobURL to
2455         revokeObjectURL per the latest File API spec.
2456         https://bugs.webkit.org/show_bug.cgi?id=47934
2457
2458         * inspector/front-end/ResourcesPanel.js:
2459         (WebInspector.ResourcesPanel.prototype._contextMenu):
2460         * inspector/front-end/utilities.js:
2461         * page/DOMWindow.cpp:
2462         (WebCore::DOMWindow::createObjectURL):
2463         (WebCore::DOMWindow::revokeObjectURL):
2464         * page/DOMWindow.h:
2465         * page/DOMWindow.idl:
2466         * workers/WorkerContext.cpp:
2467         (WebCore::WorkerContext::createObjectURL):
2468         (WebCore::WorkerContext::revokeObjectURL):
2469         * workers/WorkerContext.h:
2470         * workers/WorkerContext.idl:
2471
2472 2010-10-19  Alexey Proskuryakov  <ap@apple.com>
2473
2474         Reviewed by Anders Carlsson.
2475
2476         https://bugs.webkit.org/show_bug.cgi?id=47933
2477         <rdar://problem/8494337> navigator.language doesn't work in WebKit2
2478
2479         * CMakeListsEfl.txt:
2480         * GNUmakefile.am:
2481         * WebCore.gypi:
2482         * WebCore.pro:
2483         * WebCore.vcproj/WebCore.vcproj:
2484         * WebCore.xcodeproj/project.pbxproj:
2485         * platform/chromium/Language.cpp: Removed.
2486         * platform/chromium/LanguageChromium.cpp: Copied from WebCore/platform/chromium/Language.cpp.
2487         * platform/efl/Language.cpp: Removed.
2488         * platform/efl/LanguageEfl.cpp: Copied from WebCore/platform/efl/Language.cpp.
2489         * platform/gtk/Language.cpp: Removed.
2490         * platform/gtk/LanguageGtk.cpp: Copied from WebCore/platform/gtk/Language.cpp.
2491         * platform/qt/Language.cpp: Removed.
2492         * platform/qt/LanguageQt.cpp: Copied from WebCore/platform/qt/Language.cpp.
2493         * platform/win/Language.cpp: Removed.
2494         * platform/win/LanguageWin.cpp: Copied from WebCore/platform/win/Language.cpp.
2495         * platform/Language.cpp: Added.
2496         Cross platform code is now in platform/Language.cpp. So, I renamed platform files to match
2497         the common pattern.
2498
2499         * WebCore.exp.in: Exported new functions.
2500
2501         * platform/Language.h: Added an ability to force the language, and an ability to set up
2502         listeners for changes (if the platform implements that). Web process will always use the
2503         forced language, as sent to it from UI process.
2504
2505         * platform/mac/Language.mm: Moved code from WebKit.
2506         (WebCore::platformDefaultLanguage): Added code to synchronize user defaults. For some reason,
2507         they come unsynchronized in WebKit2 here, unlike WebKit1.
2508
2509         * page/mac/WebCoreViewFactory.h: Removed defaultLanguageCode. WebCore no longer goes to WebKit
2510         to ask for that.
2511
2512         * platform/mac/WebCoreSystemInterface.h:
2513         * platform/mac/WebCoreSystemInterface.mm:
2514         Added wkCopyCFLocalizationPreferredName().
2515
2516 2010-10-19  James Simonsen  <simonjam@chromium.org>
2517
2518         Reviewed by Adam Barth.
2519
2520         Add "in select" insertion mode to parser.
2521
2522         This was added to the spec in:
2523         http://html5.org/tools/web-apps-tracker?from=5520&to=5522
2524
2525         And as a result of:
2526         http://www.w3.org/Bugs/Public/show_bug.cgi?id=10314
2527
2528         https://bugs.webkit.org/show_bug.cgi?id=47706
2529
2530         No new tests. Open to ideas.
2531
2532         * html/parser/HTMLElementStack.cpp: Added "in select" mode.
2533         (WebCore::HTMLNames::isSelectScopeMarker): Ditto.
2534         (WebCore::HTMLElementStack::inSelectScope): Ditto.
2535         * html/parser/HTMLElementStack.h: Ditto.
2536         * html/parser/HTMLTreeBuilder.cpp:
2537         (WebCore::HTMLTreeBuilder::processStartTag): Use "in select" instead of "in table."
2538         (WebCore::HTMLTreeBuilder::processEndTag): Ditto.
2539
2540 2010-10-19  Jeremy Orlow  <jorlow@chromium.org>
2541
2542         Reviewed by Nate Chapin.
2543
2544         Fix multiple index support in IndexedDB
2545         https://bugs.webkit.org/show_bug.cgi?id=47919
2546
2547         Fix 2 bugs that caused the IndexData of all but the last index to be
2548         properly updated:
2549         * The objectStoreDataId is NOT unique if there are multiple indexes. So
2550           remove the constraint.
2551         * Do not delete all existing entries with that objectStoreDataId before
2552           adding an entry for each index. Only do it once at the beginning.
2553
2554         Test: storage/indexeddb/queued-commands.html
2555             + index-basics.html modified
2556
2557         * storage/IDBFactoryBackendImpl.cpp:
2558         (WebCore::createTables):
2559         * storage/IDBObjectStoreBackendImpl.cpp:
2560         (WebCore::deleteIndexData):
2561         (WebCore::putIndexData):
2562         (WebCore::IDBObjectStoreBackendImpl::putInternal):
2563
2564 2010-10-19  Martin Robinson  <mrobinson@igalia.com>
2565
2566         Fix the GTK+ build after r70072. The logic looks incorrect, but
2567         this fix tries to preserves it, even so.
2568
2569         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2570         (baselinePositionForAccessibilityRenderObject):
2571         (getAttributeSetForAccessibilityObject):
2572
2573 2010-10-06  Jer Noble  <jer.noble@apple.com>
2574
2575         Reviewed by Eric Carlson.
2576
2577         Windows: Implement 'preload=none'
2578         https://bugs.webkit.org/show_bug.cgi?id=47317
2579         <rdar://problem/7718442>
2580         
2581         Implement the 'preload=none' identically to the mac implementation. Add three new
2582         ivars: m_preload, m_delayLoad and m_movieURL; and override the MediaPlayerPrivate
2583         functions: prepareToPlay() and setPreload().
2584
2585         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
2586         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext):
2587             Initialize new ivars m_delayLoad and m_preload.
2588         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::resumeLoad): Added; new.
2589         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::load): Split contents between
2590             load and loadInternal.
2591         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::loadInternal): Added; new.
2592         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::prepareToPlay): Added; overrides MediaPlayerPrivate.
2593         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::setPreload): Added; overrides MediaPlayerPrivate.
2594         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
2595         
2596 2010-10-19  Enrica Casucci  <enrica@apple.com>
2597
2598         Reviewed by Alexey Proskuryakov.
2599
2600         Upstream support of KeyCodes for iOS
2601         https://bugs.webkit.org/show_bug.cgi?id=47857
2602         
2603         * platform/cocoa/KeyEventCocoa.mm:
2604         (WebCore::windowsKeyCodeForCharCode): Added special handling of keyCodes for iOS.
2605
2606 2010-10-19  Joseph Pecoraro  <joepeck@webkit.org>
2607
2608         Reviewed by David Kilzer.
2609
2610         iOS: ASSERT in Cache::adjustSize running layout tests
2611         https://bugs.webkit.org/show_bug.cgi?id=47873
2612
2613         Inside Cache::pruneDeadResources we loop over the LRU lists and make resources purgeable
2614         with Cache::makeResourcePurgeable(). This wasn't taking into account whether the resource
2615         was already purgeable or not, and the makeResourcePurgeable call was always calling
2616         adjustSize(). Now we make sure makeResourcePurgable only adjusts the size of the Cache's
2617         dead sizes when it first marks the resource purgeable. Likewise, if a resource is marked
2618         as purgeable and then evicted, we should not adjust the size again.
2619
2620         The balancing call is when we have a resource that has been marked as purgeable and we
2621         successfully mark it as no longer purgeable in Cache::resourceForURL.
2622
2623         No test added because this requires testing purgeable memory.
2624
2625         * loader/Cache.cpp:
2626         (WebCore::Cache::makeResourcePurgeable):
2627         (WebCore::Cache::evict):
2628
2629 2010-10-19  Vangelis Kokkevis  <vangelis@chromium.org>
2630
2631         Reviewed by Kenneth Russell.
2632
2633         [chromium] Disable mipmapping for ImageLayer's to prevent memory use and
2634         performance regression.
2635         https://bugs.webkit.org/show_bug.cgi?id=47913
2636         
2637         This patch is a straight revert of the patch committed with issue 46493
2638
2639         * platform/graphics/chromium/ContentLayerChromium.cpp:
2640         (WebCore::ContentLayerChromium::SharedValues::SharedValues):
2641         (WebCore::ContentLayerChromium::updateTextureRect):
2642         * platform/graphics/chromium/ContentLayerChromium.h:
2643         (WebCore::ContentLayerChromium::SharedValues::initialized):
2644         * platform/graphics/chromium/ImageLayerChromium.cpp:
2645         (WebCore::ImageLayerChromium::updateContents):
2646
2647 2010-10-18  Zhenyao Mo  <zmo@google.com>
2648
2649         Reviewed by Kenneth Russell.
2650
2651         gl-teximage.html fails on chromium webkit mac bot
2652         https://bugs.webkit.org/show_bug.cgi?id=47034
2653
2654         * platform/graphics/GraphicsContext3D.cpp: Deal with endians in 16 bit image data.
2655         (WebCore::convertColor16LittleTo8):
2656         (WebCore::convertColor16BigTo8):
2657         (WebCore::doPacking):
2658         * platform/graphics/GraphicsContext3D.h: Ditto.
2659         * platform/graphics/cg/GraphicsContext3DCG.cpp: Ditto.
2660         (WebCore::GraphicsContext3D::getImageData):
2661
2662 2010-10-19  David Hyatt  <hyatt@apple.com>
2663
2664         Reviewed by Dan Bernstein.
2665
2666         https://bugs.webkit.org/show_bug.cgi?id=47841
2667
2668         Rework baselinePosition and lineHeight to be writing-mode-aware.  There's a lot of refactoring here to clean up
2669         the method parameters to be more readable and to simplify the subclassing of the various methods in order to 
2670         keep the horizontal/vertical querying to a minimum.
2671
2672         * WebCore.xcodeproj/project.pbxproj:
2673         * mathml/RenderMathMLFraction.cpp:
2674         (WebCore::RenderMathMLFraction::baselinePosition):
2675         * mathml/RenderMathMLFraction.h:
2676         * mathml/RenderMathMLOperator.cpp:
2677         (WebCore::RenderMathMLOperator::baselinePosition):
2678         * mathml/RenderMathMLOperator.h:
2679         * mathml/RenderMathMLRow.cpp:
2680         (WebCore::RenderMathMLRow::baselinePosition):
2681         * mathml/RenderMathMLRow.h:
2682         * mathml/RenderMathMLSubSup.cpp:
2683         (WebCore::RenderMathMLSubSup::baselinePosition):
2684         * mathml/RenderMathMLSubSup.h:
2685         * mathml/RenderMathMLUnderOver.cpp:
2686         (WebCore::RenderMathMLUnderOver::layout):
2687         (WebCore::RenderMathMLUnderOver::baselinePosition):
2688         * mathml/RenderMathMLUnderOver.h:
2689         * rendering/InlineBox.h:
2690         (WebCore::InlineBox::baselinePosition):
2691         (WebCore::InlineBox::lineHeight):
2692         * rendering/InlineFlowBox.cpp:
2693         (WebCore::InlineFlowBox::adjustMaxAscentAndDescent):
2694         (WebCore::InlineFlowBox::computeLogicalBoxHeights):
2695         (WebCore::InlineFlowBox::placeBoxesInBlockDirection):
2696         * rendering/InlineTextBox.cpp:
2697         (WebCore::InlineTextBox::baselinePosition):
2698         (WebCore::InlineTextBox::lineHeight):
2699         * rendering/InlineTextBox.h:
2700         * rendering/RenderBR.cpp:
2701         (WebCore::RenderBR::lineHeight):
2702         * rendering/RenderBR.h:
2703         (WebCore::toRenderBR):
2704         * rendering/RenderBlock.cpp:
2705         (WebCore::RenderBlock::lineHeight):
2706         (WebCore::RenderBlock::baselinePosition):
2707         (WebCore::RenderBlock::firstLineBoxBaseline):
2708         (WebCore::RenderBlock::lastLineBoxBaseline):
2709         (WebCore::RenderBlock::localCaretRect):
2710         * rendering/RenderBlock.h:
2711         * rendering/RenderBlockLineLayout.cpp:
2712         (WebCore::RenderBlock::layoutInlineChildren):
2713         * rendering/RenderBox.cpp:
2714         (WebCore::RenderBox::lineHeight):
2715         (WebCore::RenderBox::baselinePosition):
2716         * rendering/RenderBox.h:
2717         * rendering/RenderBoxModelObject.cpp:
2718         (WebCore::RenderBoxModelObject::verticalPosition):
2719         * rendering/RenderBoxModelObject.h:
2720         * rendering/RenderFileUploadControl.cpp:
2721         (WebCore::RenderFileUploadControl::paintObject):
2722         * rendering/RenderFlexibleBox.cpp:
2723         (WebCore::RenderFlexibleBox::layoutHorizontalBox):
2724         (WebCore::RenderFlexibleBox::layoutVerticalBox):
2725         * rendering/RenderInline.cpp:
2726         (WebCore::RenderInline::lineHeight):
2727         (WebCore::RenderInline::baselinePosition):
2728         * rendering/RenderInline.h:
2729         * rendering/RenderListBox.cpp:
2730         (WebCore::RenderListBox::baselinePosition):
2731         * rendering/RenderListBox.h:
2732         * rendering/RenderListMarker.cpp:
2733         (WebCore::RenderListMarker::lineHeight):
2734         (WebCore::RenderListMarker::baselinePosition):
2735         * rendering/RenderListMarker.h:
2736         * rendering/RenderObject.cpp:
2737         * rendering/RenderObject.h:
2738         * rendering/RenderReplaced.cpp:
2739         * rendering/RenderReplaced.h:
2740         * rendering/RenderSVGRoot.cpp:
2741         * rendering/RenderSVGRoot.h:
2742         * rendering/RenderSlider.cpp:
2743         (WebCore::RenderSlider::baselinePosition):
2744         * rendering/RenderSlider.h:
2745         * rendering/RenderTableCell.cpp:
2746         (WebCore::RenderTableCell::baselinePosition):
2747         * rendering/RenderTableCell.h:
2748         * rendering/RenderTableCol.h:
2749         (WebCore::RenderTableCol::isTableCol):
2750         * rendering/RenderTableRow.h:
2751         * rendering/RenderTableSection.h:
2752         * rendering/RenderText.cpp:
2753         * rendering/RenderText.h:
2754         * rendering/RenderTextControl.cpp:
2755         (WebCore::RenderTextControl::computeLogicalHeight):
2756         * rendering/RenderTextControlMultiLine.cpp:
2757         (WebCore::RenderTextControlMultiLine::baselinePosition):
2758         * rendering/RenderTextControlMultiLine.h:
2759         * rendering/RenderTextControlSingleLine.cpp:
2760         (WebCore::RenderTextControlSingleLine::createInnerTextStyle):
2761         * rendering/RootInlineBox.h:
2762         (WebCore::RootInlineBox::baselinePosition):
2763         (WebCore::RootInlineBox::lineHeight):
2764         * rendering/svg/SVGInlineTextBox.cpp:
2765         (WebCore::SVGInlineTextBox::calculateBoundaries):
2766
2767 2010-10-19  Jia Pu  <jpu@apple.com>
2768
2769         Reviewed by Adele Peterson.
2770
2771         Moving cursor back to autocorrected word in the same line shouldn't remove the underline
2772         https://bugs.webkit.org/show_bug.cgi?id=47629
2773         <rdar://problem/8546758>
2774
2775         Tests: platform/mac/editing/spelling/click-autocorrected-word.html
2776                platform/mac/editing/spelling/delete-into-autocorrected-word.html
2777                platform/mac/editing/spelling/delete-into-misspelled-word.html
2778                platform/mac/editing/spelling/forward-delete-into-autocorrected-word.html
2779                platform/mac/editing/spelling/move-cursor-around-misspelled-word.html
2780                platform/mac/editing/spelling/move-cursor-to-autocorrected-word.html
2781                platform/mac/editing/spelling/move-cursor-to-beginning-of-autocorrected-word.html
2782
2783         * editing/Editor.cpp:
2784         (WebCore::Editor::respondToChangedSelection): Don't remove misspelling or autocorrection
2785           underlines when cursor is moved onto a word.
2786
2787 2010-10-19  Eric Carlson  <eric.carlson@apple.com>
2788
2789         Not reviewed. Build fix.
2790
2791         * html/HTMLMediaElement.cpp:
2792         (WebCore::HTMLMediaElement::selectNextSourceChild): Initialize variable to avoid Windows
2793         "potentially uninitialized local variable" warning.
2794
2795 2010-10-19  Eric Carlson  <eric.carlson@apple.com>
2796
2797         Reviewed by Darin Adler.
2798
2799         https://bugs.webkit.org/show_bug.cgi?id=46763
2800         CRASH in WebCore::ThreadTimers::sharedTimerFiredInternal
2801
2802         Fix crashes caused by moving and deleting <source> element(s) of active media element.
2803
2804         Tests: media/video-source-moved.html
2805                media/video-source-removed.html
2806
2807         * html/HTMLMediaElement.cpp:
2808         (WebCore::HTMLMediaElement::HTMLMediaElement): Add logging. Initialize selectNextSourceChild.
2809         (WebCore::HTMLMediaElement::~HTMLMediaElement): Ditto.
2810         (WebCore::HTMLMediaElement::insertedIntoDocument): Ditto.
2811         (WebCore::HTMLMediaElement::removedFromDocument): Ditto.
2812         (WebCore::HTMLMediaElement::scheduleLoad): Ditto.
2813         (WebCore::HTMLMediaElement::setNetworkState): Deal with m_currentSourceNode being null when
2814         the media engine signals a failure by skipping the error message and continuing as usual.
2815         (WebCore::HTMLMediaElement::setVolume): Fix logging typo.
2816         (WebCore::HTMLMediaElement::havePotentialSourceChild): Save and restore m_nextChildNodeToConsider
2817         around call to selectNextSourceChild because they are both significant.
2818         (WebCore::HTMLMediaElement::selectNextSourceChild): Use m_nextChildNodeToConsider to pick
2819         the first node to consider. Bail immediately if it signals that we have already processed 
2820         every <source> node. Stach the node following the current source element in m_nextChildNodeToConsider
2821         so we can resume the search even if m_currentSourceNode is removed while it is being processed.
2822         (WebCore::HTMLMediaElement::sourceWasAdded): New, move logic from HTMLSourceElement::insertedIntoTree
2823         here and correct it to deal with a <source> node being inserted immediately after the
2824         current <source> node and a new <source> node being inserted at the end of the list after
2825         all candidates have failed.
2826         (WebCore::HTMLMediaElement::sourceWillBeRemoved): New, deal with current source node and next
2827         potential node being removed.
2828         * html/HTMLMediaElement.h:
2829         (WebCore::HTMLMediaElement::sourceChildEndOfListValue): New, define sentinal value used to indicate
2830         that all nodes have been processed.
2831
2832         * html/HTMLSourceElement.cpp:
2833         (WebCore::HTMLSourceElement::HTMLSourceElement): Add logging.
2834         (WebCore::HTMLSourceElement::insertedIntoTree): Call mediaElement->sourceWasAdded instead
2835         of having logic here.
2836         (WebCore::HTMLSourceElement::willRemove): New, call mediaElement->sourceWillBeRemoved
2837         (WebCore::HTMLSourceElement::scheduleErrorEvent): Add logging.
2838         (WebCore::HTMLSourceElement::cancelPendingErrorEvent): Add logging.
2839         * html/HTMLSourceElement.h:
2840
2841 2010-10-19  Luiz Agostini  <luiz.agostini@openbossa.org>
2842
2843         Reviewed by Antti Koivisto.
2844
2845         [Qt] WebKit2 MacOS build fix
2846         https://bugs.webkit.org/show_bug.cgi?id=47897
2847
2848         Qt WebKit2 MacOS build fix.
2849
2850         * bridge/npapi.h:
2851
2852 2010-10-19  Philippe Normand  <pnormand@igalia.com>
2853
2854         Reviewed by Xan Lopez.
2855
2856         [GTK] Soup cache code still has some warnings
2857         https://bugs.webkit.org/show_bug.cgi?id=47733
2858
2859         Fixed some compilation warnings happening with gcc 4.4.5 on
2860         64-bits architecture.
2861
2862         * platform/network/soup/cache/webkit/soup-cache.c:
2863         (webkit_soup_cache_entry_set_freshness):
2864         (close_ready_cb):
2865
2866 2010-10-19  Yury Semikhatsky  <yurys@chromium.org>
2867
2868         Reviewed by Pavel Feldman.
2869
2870         Web Inspector: crash while trying to step over a function using inspector
2871         https://bugs.webkit.org/show_bug.cgi?id=47902
2872
2873         * inspector/front-end/ScriptsPanel.js:
2874         (WebInspector.ScriptsPanel.prototype.reset): reset scripts panel to resumed state on navigation.
2875
2876 2010-10-19  Ryuan Choi  <ryuan.choi@samsung.com>
2877
2878         Unreviewed attempt to remove warning in EFL build.
2879
2880         Fix #if to #ifdef.
2881
2882         No new features, so no tests added.
2883
2884         * platform/efl/WidgetEfl.cpp:
2885         (WebCore::Widget::applyFallbackCursor):
2886
2887 2010-10-19  Andreas Kling  <kling@webkit.org>
2888
2889         Reviewed by Tor Arne Vestbø.
2890
2891         [Qt] getImageData returns wrong data for non-0,0 source offset
2892         https://bugs.webkit.org/show_bug.cgi?id=47898
2893
2894         Test: fast/canvas/canvas-getImageData-negative-source.html
2895
2896         * platform/graphics/qt/ImageBufferQt.cpp:
2897         (WebCore::getImageData): Add missing *4's to get correct pixel offset.
2898
2899 2010-10-19  Andreas Kling  <kling@webkit.org>
2900
2901         Reviewed by Kenneth Rohde Christiansen.
2902
2903         [Qt] Correct initial state of ImageBuffer QPen
2904         https://bugs.webkit.org/show_bug.cgi?id=47804
2905
2906         Have the QPen on ImageBuffers start in Qt::SvgMiterJoin mode.
2907
2908         * platform/graphics/qt/ImageBufferQt.cpp:
2909         (WebCore::ImageBufferData::ImageBufferData):
2910
2911 2010-10-19  Philippe Normand  <pnormand@igalia.com>
2912
2913         Reviewed by Martin Robinson.
2914
2915         GStreamer PlatformVideoWindow needs an API to prepare the widget before applying the overlay
2916         https://bugs.webkit.org/show_bug.cgi?id=46790
2917
2918         Simple API addition to PlatformVideoWindow to allow
2919         implementations to optionally prepare their own PlatformWidget
2920         before applying the GStreamer XOverlay to it. This will likely be
2921         needed on Mac OSX only.
2922
2923         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
2924         (WebCore::GStreamerGWorld::setWindowOverlay):
2925         * platform/graphics/gstreamer/PlatformVideoWindow.h:
2926         * platform/graphics/gstreamer/PlatformVideoWindowGtk.cpp:
2927         (PlatformVideoWindow::prepareForOverlay):
2928         * platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp:
2929         (PlatformVideoWindow::prepareForOverlay):
2930
2931 2010-10-19  Ben Murdoch  <benm@google.com>
2932
2933         Reviewed by Steve Block.
2934
2935         Missing support for document.createTouch and document.createTouchList
2936         https://bugs.webkit.org/show_bug.cgi?id=47676
2937
2938         These APIs are used by many sites to detect support for touch events.
2939
2940         Implement the APIs according to the documentation at:
2941         http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html
2942
2943         Tests: fast/events/touch/document-create-touch-list.html
2944                fast/events/touch/document-create-touch.html
2945
2946         * bindings/js/JSBindingsAllInOne.cpp: Add new files to list.
2947         * bindings/js/JSTouchCustom.cpp: Added.
2948         (WebCore::toJSNewlyCreated):
2949         * bindings/js/JSTouchListCustom.cpp: Added.
2950         (WebCore::toJSNewlyCreated):
2951         * bindings/scripts/CodeGeneratorJS.pm:
2952         * dom/Document.cpp:
2953         (WebCore::Document::createTouch):
2954         (WebCore::Document::createTouchList):
2955         * dom/Document.h:
2956         * dom/Document.idl: Add createTouch and createTouchList functions.
2957         * Android.jscbindings.mk: Update makefiles.
2958         * CMakeLists.txt: Ditto.
2959         * GNUmakefile.am: Ditto.
2960         * WebCore.gypi: Ditto.
2961         * WebCore.pro: Ditto.
2962
2963
2964 2010-10-19  Pavel Feldman  <pfeldman@chromium.org>
2965
2966         Reviewed by Yury Semikhatsky.
2967
2968         Web Inspector: migrate from legacy Object.properties to Object.keys, remove dead code.
2969         https://bugs.webkit.org/show_bug.cgi?id=47890
2970
2971         * inspector/front-end/ConsoleView.js:
2972         (WebInspector.ConsoleView.prototype._reportCompletions):
2973         * inspector/front-end/ElementsPanel.js:
2974         (WebInspector.ElementsPanel):
2975         * inspector/front-end/ExtensionServer.js:
2976         (WebInspector.ExtensionServer.prototype._onGetResources):
2977         * inspector/front-end/HAREntry.js:
2978         (WebInspector.HARLog.prototype.build):
2979         * inspector/front-end/StylesSidebarPane.js:
2980         (WebInspector.StylePropertyTreeElement.prototype.):
2981         (WebInspector.StylePropertyTreeElement.prototype):
2982         * inspector/front-end/utilities.js:
2983
2984 2010-10-19  Pavel Feldman  <pfeldman@chromium.org>
2985
2986         Reviewed by Yury Semikhatsky.
2987
2988         Web Inspector: do not access ResourcePanel from resources directly.
2989         https://bugs.webkit.org/show_bug.cgi?id=47892
2990
2991         * inspector/front-end/Resource.js:
2992         (WebInspector.Resource.prototype.set documentURL):
2993         (WebInspector.Resource.prototype.set startTime):
2994         (WebInspector.Resource.prototype.set responseReceivedTime):
2995         (WebInspector.Resource.prototype.set endTime):
2996         (WebInspector.Resource.prototype.set resourceSize):
2997         (WebInspector.Resource.prototype.set expectedContentLength):
2998         (WebInspector.Resource.prototype.set category):
2999         (WebInspector.Resource.prototype.set cached):
3000         (WebInspector.Resource.prototype.set mimeType):
3001         (WebInspector.Resource.prototype.get requestHeaders):
3002         (WebInspector.Resource.prototype.set requestHeaders):
3003         (WebInspector.Resource.prototype.get responseHeaders):
3004         (WebInspector.Resource.prototype.set responseHeaders):
3005         * inspector/front-end/ResourcesPanel.js:
3006         (WebInspector.ResourcesPanel.prototype.addResource):
3007         (WebInspector.ResourcesPanel.prototype.refreshResource):
3008         (WebInspector.ResourcesPanel.prototype._recreateViewForResourceIfNeeded):
3009         (WebInspector.ResourcesPanel.prototype._resourceViewIsConsistentWithCategory):
3010         (WebInspector.ResourceGraph):
3011         (WebInspector.ResourceGraph.prototype.refresh):
3012         * inspector/front-end/inspector.js:
3013         (WebInspector.updateResource):
3014
3015 2010-10-19  Yuta Kitamura  <yutak@chromium.org>
3016
3017         Reviewed by Pavel Feldman.
3018
3019         Make sure WebSocket resource has the url field when it is created.
3020
3021         Web Inspector: Uncaught TypeError when connection to WebSocket server is refused
3022         https://bugs.webkit.org/show_bug.cgi?id=47891
3023
3024         * inspector/InspectorResource.cpp:
3025         (WebCore::InspectorResource::createWebSocket):
3026
3027 2010-10-19  Hayato Ito  <hayato@chromium.org>
3028
3029         Reviewed by Darin Adler.
3030
3031         Make CSS style selector non-recursive.
3032         https://bugs.webkit.org/show_bug.cgi?id=43783
3033
3034         This change is one of the required changes to fix the following master bug:
3035         https://bugs.webkit.org/show_bug.cgi?id=42806
3036
3037         To avoid recursion, we prepare a call stack and maintain a list of
3038         function call state by ourselves and try matching iteratively.
3039
3040         Test: fast/css/long-css-selector-matches.html
3041
3042         * css/CSSStyleSelector.cpp:
3043         (WebCore::CSSStyleSelector::SelectorChecker::checkSelector):
3044         (WebCore::CSSStyleSelector::checkSelector):
3045         * css/CSSStyleSelector.h:
3046
3047 2010-10-19  Sheriff Bot  <webkit.review.bot@gmail.com>
3048
3049         Unreviewed, rolling out r70034.
3050         http://trac.webkit.org/changeset/70034
3051         https://bugs.webkit.org/show_bug.cgi?id=47889
3052
3053         "Gustavo's bot is lame" (Requested by xan_ on #webkit).
3054
3055         * platform/network/soup/CookieJarSoup.cpp:
3056         (WebCore::defaultCookieJar):
3057         (WebCore::setCookies):
3058         * platform/network/soup/ResourceHandleSoup.cpp:
3059         (WebCore::ResourceHandle::prepareForURL):
3060         (WebCore::restartedCallback):
3061         (WebCore::startHttp):
3062         * platform/network/soup/ResourceRequestSoup.cpp:
3063         (WebCore::ResourceRequest::toSoupMessage):
3064         (WebCore::ResourceRequest::updateFromSoupMessage):
3065
3066 2010-10-19  Xan Lopez  <xlopez@igalia.com>
3067
3068         Reviewed by Martin Robinson.
3069
3070         [GTK] Bump minimum requirement for libsoup to 2.30
3071         https://bugs.webkit.org/show_bug.cgi?id=46176
3072
3073         Bump minimum required libsoup version to 2.30.
3074
3075         * platform/network/soup/CookieJarSoup.cpp:
3076         (WebCore::defaultCookieJar):
3077         (WebCore::setCookies):
3078         * platform/network/soup/ResourceHandleSoup.cpp:
3079         (WebCore::ResourceHandle::prepareForURL):
3080         (WebCore::restartedCallback):
3081         (WebCore::startHttp):
3082         * platform/network/soup/ResourceRequestSoup.cpp:
3083         (WebCore::ResourceRequest::toSoupMessage):
3084         (WebCore::ResourceRequest::updateFromSoupMessage):
3085
3086 2010-10-19  Xan Lopez  <xlopez@igalia.com>
3087
3088         Reviewed by Martin Robinson.
3089
3090         Fix distcheck, take 2.
3091
3092         * GNUmakefile.am: also move the generated CSS hash files to the
3093         build dir.
3094
3095 2010-10-18  Kent Tamura  <tkent@chromium.org>
3096
3097         Reviewed by Dimitri Glazkov.
3098
3099         Should not save state of a detached form control.
3100         https://bugs.webkit.org/show_bug.cgi?id=47811
3101
3102         Test: fast/forms/state-save-of-detached-control.html
3103
3104         * html/HTMLFormControlElement.cpp:
3105         (WebCore::HTMLFormControlElementWithState::shouldSaveAndRestoreFormControlState):
3106           If the node is detached, don't save the state.
3107
3108 2010-10-18  Xan Lopez  <xlopez@igalia.com>
3109
3110         Reviewed by Martin Robinson.
3111
3112         * GNUmakefile.am: add missing files.
3113
3114 2010-10-18  Oliver Hunt  <oliver@apple.com>
3115
3116         Reviewed by Sam Weinig.
3117
3118         REGRESSION: Feedly extension crashes Webkit
3119         https://bugs.webkit.org/show_bug.cgi?id=45811
3120
3121         The basic problem was the deserializer was holding a pointer into
3122         the constant pool, but if you were sufficiently unlucky then the
3123         constant pool would be moved while still relying on the pointer,
3124         which leads to badness.
3125
3126         I looked at just making all the sites this could happen extract the
3127         right string/jsstring before any possible allocations, but it seemed
3128         too fragile so i've gone for a forwarding object as the solution.
3129
3130         * bindings/js/SerializedScriptValue.cpp:
3131         (WebCore::CloneDeserializer::CachedStringRef::CachedStringRef):
3132         (WebCore::CloneDeserializer::CachedStringRef::operator->):
3133         (WebCore::CloneDeserializer::readStringData):
3134         (WebCore::CloneDeserializer::readFile):
3135         (WebCore::CloneDeserializer::readTerminal):
3136         (WebCore::CloneDeserializer::deserialize):
3137
3138 2010-10-18  Chris Rogers  <crogers@google.com>
3139
3140         Reviewed by Chris Fleizach.
3141
3142         Add AudioResampler files
3143         https://bugs.webkit.org/show_bug.cgi?id=47623
3144
3145         No new tests since audio API is not yet implemented.
3146
3147         * platform/audio/AudioResampler.cpp: Added.
3148         (WebCore::AudioResampler::AudioResampler):
3149         (WebCore::AudioResampler::configureChannels):
3150         (WebCore::AudioResampler::process):
3151         (WebCore::AudioResampler::setRate):
3152         (WebCore::AudioResampler::reset):
3153         * platform/audio/AudioResampler.h: Added.
3154         (WebCore::AudioResampler::~AudioResampler):
3155         (WebCore::AudioResampler::rate):
3156
3157 2010-10-18  Vangelis Kokkevis  <vangelis@chromium.org>
3158
3159         Reviewed by James Robinson.
3160
3161         [chromium] Prevent the creation of very large textures for layers by switching
3162         to "large layer" mode when a texture is larger than some fixed reasonable size
3163         (set to 2000 pixels for now).
3164         https://bugs.webkit.org/show_bug.cgi?id=47751
3165
3166         The code also changes the large layer logic to use the current scissor rect used
3167         by the compositor instead of the visible rect to determine how to clip large layers.
3168         This will provide additional texture savings. In addition, the various layer rects
3169         have been converted to use integers instead of floats to preserve uniformity in the code.
3170         
3171         Tests: Existing large layer layout tests including huge-layer and huge-layer-img
3172
3173         * platform/graphics/chromium/ContentLayerChromium.cpp:
3174         (WebCore::ContentLayerChromium::requiresClippedUpdateRect):
3175         (WebCore::ContentLayerChromium::calculateClippedUpdateRect):
3176         * platform/graphics/chromium/LayerChromium.cpp:
3177         (WebCore::LayerChromium::getDrawRect):
3178         * platform/graphics/chromium/LayerChromium.h:
3179         * platform/graphics/chromium/LayerRendererChromium.cpp:
3180         (WebCore::LayerRendererChromium::drawLayers):
3181         (WebCore::LayerRendererChromium::drawLayersRecursive):
3182         (WebCore::LayerRendererChromium::scissorToRect):
3183         * platform/graphics/chromium/LayerRendererChromium.h:
3184         (WebCore::LayerRendererChromium::currentScissorRect):
3185
3186 2010-10-18  Jia Pu  <jpu@apple.com>
3187
3188         Reviewed by Stephanie Lewis.
3189
3190         Correct the description of manual test: autocorrection-cancelled-by-typing-1.html
3191         https://bugs.webkit.org/show_bug.cgi?id=47722
3192         <rdar://problem/8556206>
3193
3194         * manual-tests/autocorrection/autocorrection-cancelled-by-typing-1.html: Update description
3195           to match the test content.
3196
3197 2010-10-18  Martin Robinson  <mrobinson@igalia.com>
3198
3199         Build fix for newer versions of GTK+ 2.0. Instead of using GDK_DISPLAY()
3200         use GDK_DRAWABLE_XDISPLAY(gdk_display_get_default()). GDK_DISPLAY() was
3201         recently deprecated and the latter method has been available since GTK+
3202         2.2.
3203
3204         * plugins/gtk/PluginViewGtk.cpp:
3205         (WebCore::PluginView::updatePluginWidget):
3206         (WebCore::PluginView::paint):
3207         (WebCore::PluginView::initXEvent):
3208         (WebCore::PluginView::platformGetValue):
3209         (WebCore::getVisualAndColormap):
3210         (WebCore::PluginView::platformStart):
3211         (WebCore::PluginView::platformDestroy):
3212
3213 2010-10-18  Ryosuke Niwa  <rniwa@webkit.org>
3214
3215         Reviewed by Adam Barth.
3216
3217         elementCannotHaveEndTag should be a member function of MarkupAccumulator
3218         https://bugs.webkit.org/show_bug.cgi?id=47846
3219
3220         Moved elementCannotHaveEndTag into MarkupAccumulator.
3221
3222         No new tests are added since this is a cleanup.
3223
3224         * editing/MarkupAccumulator.cpp:
3225         (WebCore::MarkupAccumulator::elementCannotHaveEndTag): Added.
3226         * editing/MarkupAccumulator.h: Added MarkupAccumulator::elementCannotHaveEndTag.
3227         * editing/markup.cpp: Removed elementCannotHaveEndTag.
3228         * editing/markup.h: Removed elementCannotHaveEndTag.
3229
3230 2010-10-18  Johnny Ding  <jnd@chromium.org>
3231
3232         Reviewed by Adam Barth.
3233
3234         Set the right referent sourceURL for the script with force user gesture.
3235         https://bugs.webkit.org/show_bug.cgi?id=37138
3236
3237         Because empty sourceURL indicates running script with force user gesture,
3238         make WebKit use document.url() as referent sourceURL (Since it uses blank
3239         URL instead empty if the input URL is empty) if WebKit isn't running the
3240         script from a hyper-link.
3241
3242         Test: fast/events/popup-blocked-from-window-open.html
3243
3244         * bindings/ScriptControllerBase.cpp:
3245         (WebCore::ScriptController::executeScript):
3246         * bindings/js/ScriptController.cpp:
3247         (WebCore::ScriptController::executeScriptInWorld):
3248
3249 2010-10-18  Darin Adler  <darin@apple.com>
3250
3251         * dom/Node.h: Fix ancient typo in just-modified comment.
3252
3253 2010-10-18  Darin Adler  <darin@apple.com>
3254
3255         Reviewed by Alexey Proskuryakov.
3256
3257         Remove some functions from class Node and make a few others non-virtual
3258         https://bugs.webkit.org/show_bug.cgi?id=47735
3259
3260         Refactoring. No new tests.
3261
3262         * bindings/js/JSNodeCustom.cpp:
3263         (WebCore::JSNode::markChildren): Added a FIXME about the use of the virtual
3264         ownerDocument function.
3265
3266         * dom/ContainerNode.cpp:
3267         (WebCore::ContainerNode::removeChildren): Removed the unused return value.
3268
3269         * dom/ContainerNode.h: Made insertBefore, replaceChild, removeChild, and
3270         appendChild non-virtual for clarity and performance. Made removeChildren
3271         non-virtual and removed its return value. Moved the inline Node functions
3272         that call through to ContainerNode into this file since the old way involved
3273         an extra level of inline function but otherwise had no advantages.
3274
3275         * dom/Element.h: Moved isMathMLElement here because there is no call site
3276         that needs to call it on a Node*. We can always move it back if we need to,
3277         but it's better to have less in the Node class.
3278
3279         * dom/Node.cpp:
3280         (WebCore::Node::insertBefore): Added an isContainerNode check so this can
3281         be non-virtual. There are very few callers who call this function on Node.
3282         If we want to optimize them further we can make the isContainerNode check
3283         inline in the future.
3284         (WebCore::Node::replaceChild): Ditto.
3285         (WebCore::Node::removeChild): Ditto.
3286         (WebCore::Node::appendChild): Ditto.
3287         (WebCore::Node::remove): Removed unneeded ref/unref because
3288         ContainerNode::removeChild already does this.
3289         (WebCore::Node::createRendererIfNeeded): Removed #if around call to
3290         childShouldCreateRenderer since it's needed even without SVG and XHTMLMP.
3291
3292         * dom/Node.h: Moved definitions of inline functions that depend on
3293         ContainerNode to the ContainerNode.h header. They already required inclusion
3294         of that header, so there is no functional change. Made insertBefore,
3295         replaceChild, removeChild, and appendChild non-virtual. There are very few
3296         callers of these functions on this class. Moved isMathMLElement to Element.
3297         Added a FIXME about the name of eventAncestors. Fixed comment formatting.
3298         Eliminated unused isEditableBlock function. Moved the body of the
3299         enclosingInlineElement function to the editing file that was the only
3300         call site. Removed the previousEditable and nextEditable functions,
3301         incorporating their bodies into the one place they were called.
3302         Took the childShouldCreateRenderer function out of #if since it's
3303         now used by the implementation of the <noscript> element.
3304
3305         * dom/Position.cpp:
3306         (WebCore::nextRenderedEditable): Rewrote the function to use nextLeafNode
3307         instead of nextEditable.
3308         (WebCore::previousRenderedEditable): Rewrote the function to use
3309         previousLeafNode instead of previousEditable.
3310
3311         * editing/ReplaceSelectionCommand.cpp:
3312         (WebCore::enclosingInline): Moved function here from the Node class. Also
3313         fixed an incorrect cast this function did, which assumed the function
3314         result was always an element, which the function does not guarantee.
3315         (WebCore::ReplaceSelectionCommand::doApply): Call the function above.
3316
3317         * history/HistoryItem.cpp: Added include of MathExtras.h.
3318
3319 2010-10-18  Yongjun Zhang  <yongjun_zhang@apple.com>
3320
3321         Reviewed by Darin Adler.
3322
3323         Missing support for document.createEvent("OrientationEvent")
3324         https://bugs.webkit.org/show_bug.cgi?id=32492
3325
3326         Add support for document.createEvent("OrientationEvent") to help unit testing of
3327         onOrientationChange event.
3328
3329         Test: fast/dom/DeviceOrientation/create-event-onorientationchange.html
3330
3331         * dom/Document.cpp:
3332         (WebCore::Document::createEvent):
3333
3334 2010-10-18  Jeremy Orlow  <jorlow@chromium.org>
3335
3336         Reviewed by Darin Adler.
3337
3338         DOMStringList should return null if the index is out of range
3339         https://bugs.webkit.org/show_bug.cgi?id=47829
3340
3341         When item() returns a null string, it needs to be passed to JS as
3342         null. The indexed getter will then magically do the right thing.
3343         So all that's left is having DOMStringList::item() return null when
3344         the index is out of bounds.
3345
3346         * dom/DOMStringList.cpp:
3347         (WebCore::DOMStringList::item):
3348         * dom/DOMStringList.h:
3349         * dom/DOMStringList.idl:
3350
3351 2010-10-18  Girish Ramakrishnan  <girish@forwardbias.in>
3352
3353         Reviewed by Ariya Hidayat.
3354
3355         [Qt] Implement Accelerated Composition for NPAPI Plugins.
3356
3357         https://bugs.webkit.org/show_bug.cgi?id=35524
3358
3359         * plugins/PluginView.h:
3360         (WebCore::PluginView::platformLayer):
3361         * plugins/qt/PluginViewQt.cpp:
3362         (WebCore::PluginGraphicsLayerQt::PluginGraphicsLayerQt):
3363         (WebCore::PluginGraphicsLayerQt::~PluginGraphicsLayerQt):
3364         (WebCore::PluginGraphicsLayerQt::paint):
3365         (WebCore::PluginView::updatePluginWidget):
3366         (WebCore::PluginView::paint):
3367         (WebCore::PluginView::invalidateRect):
3368         (WebCore::PluginView::invalidateRegion):
3369         (WebCore::PluginView::platformStart):
3370         (WebCore::PluginView::platformLayer):
3371
3372 2010-10-18  Stuart Morgan  <stuartmorgan@chromium.org>
3373
3374         Reviewed by Eric Seidel.
3375
3376         Switch to using the new Carbon NPAPI event declarations, and remove
3377         the old ones.
3378
3379         https://bugs.webkit.org/show_bug.cgi?id=40784
3380
3381         * bridge/npapi.h:
3382         * plugins/mac/PluginViewMac.mm:
3383         (WebCore::PluginView::setFocus):
3384         (WebCore::PluginView::handleMouseEvent):
3385
3386 2010-10-18  Pavel Feldman  <pfeldman@chromium.org>
3387
3388         Reviewed by Yury Semikhatsky.
3389
3390         Web Inspector: comment out resource manager instantiation on front-end side.
3391         https://bugs.webkit.org/show_bug.cgi?id=47823
3392
3393         * inspector/front-end/inspector.js:
3394
3395 2010-10-18  Andrei Popescu  <andreip@google.com>
3396
3397         Reviewed by Jeremy Orlow.
3398
3399         The description parameter of IDBFactory::open() should be mandatory.
3400         https://bugs.webkit.org/show_bug.cgi?id=47835
3401
3402         Makes the description parameter mandatory, as per the IndexedDatabase specification.
3403         Modified existing tests to cover this change.
3404
3405         * storage/IDBDatabaseBackendImpl.cpp:
3406         (WebCore::extractMetaData):
3407         (WebCore::setMetaData):
3408         (WebCore::IDBDatabaseBackendImpl::IDBDatabaseBackendImpl):
3409         * storage/IDBFactory.cpp:
3410         (WebCore::IDBFactory::open):
3411         * storage/IDBFactory.h:
3412         * storage/IDBFactory.idl:
3413
3414 2010-10-18  Xiaomei Ji  <xji@chromium.org>
3415
3416         Reviewed by David Levin.
3417
3418         Code cleanup: Move most function members in TextRunWorker from inlined.
3419         https://bugs.webkit.org/show_bug.cgi?id=47732
3420
3421         No functionality change, so no tests added.
3422
3423         * platform/graphics/chromium/FontLinux.cpp:
3424         (WebCore::TextRunWalker::setWordSpacingAdjustment):
3425         (WebCore::TextRunWalker::setLetterSpacingAdjustment):
3426         (WebCore::TextRunWalker::setXOffsetToZero):
3427         (WebCore::TextRunWalker::rtl):
3428         (WebCore::TextRunWalker::glyphs):
3429         (WebCore::TextRunWalker::length):
3430         (WebCore::TextRunWalker::xPositions):
3431         (WebCore::TextRunWalker::advances):
3432         (WebCore::TextRunWalker::width):
3433         (WebCore::TextRunWalker::logClusters):
3434         (WebCore::TextRunWalker::numCodePoints):
3435         (WebCore::TextRunWalker::fontPlatformDataForScriptRun):
3436         (WebCore::TextRunWalker::isCodepointSpace):
3437         (WebCore::TextRunWalker::TextRunWalker):
3438         (WebCore::TextRunWalker::~TextRunWalker):
3439         (WebCore::TextRunWalker::isWordBreak):
3440         (WebCore::TextRunWalker::setPadding):
3441         (WebCore::TextRunWalker::reset):
3442         (WebCore::TextRunWalker::setBackwardsIteration):
3443         (WebCore::TextRunWalker::nextScriptRun):
3444         (WebCore::TextRunWalker::widthOfFullRun):
3445         (WebCore::TextRunWalker::getTextRun):
3446         (WebCore::TextRunWalker::getNormalizedTextRun):
3447         (WebCore::TextRunWalker::setupFontForScriptRun):
3448         (WebCore::TextRunWalker::allocHarfbuzzFont):
3449         (WebCore::TextRunWalker::deleteGlyphArrays):
3450         (WebCore::TextRunWalker::createGlyphArrays):
3451         (WebCore::TextRunWalker::resetGlyphArrays):
3452         (WebCore::TextRunWalker::shapeGlyphs):
3453         (WebCore::TextRunWalker::setGlyphXPositions):
3454         (WebCore::TextRunWalker::mirrorCharacters):
3455
3456 2010-10-18  No'am Rosenthal  <noam.rosenthal@nokia.com>
3457
3458         Reviewed by Andreas Kling.
3459
3460         [Qt] AC rendering bugs
3461         There were a few missing connections in Qt AC between GraphicsLayer and plugins, like changing the plugin's geometry to the layer's
3462         contentsRect, and making sure media layers handle ParentChange events and setContentsNeedsDisplay. Now media layers behave correctly.
3463
3464         https://bugs.webkit.org/show_bug.cgi?id=47571
3465
3466         No new tests. This is in preparation for fixing AC+plugins, which already has tests that don't work yet with Qt.
3467
3468         * platform/graphics/qt/GraphicsLayerQt.cpp:
3469         (WebCore::GraphicsLayerQtImpl::flushChanges):
3470         (WebCore::GraphicsLayerQt::setContentsNeedsDisplay):
3471         * platform/graphics/qt/GraphicsLayerQt.h:
3472
3473 2010-10-18  Pavel Feldman  <pfeldman@chromium.org>
3474
3475         Reviewed by Simon Fraser.
3476
3477         Web Inspector: [crash] when Inspector Open in CSSStyleSelector::loadPendingImages().
3478         https://bugs.webkit.org/show_bug.cgi?id=46224
3479
3480         * CMakeLists.txt:
3481         * GNUmakefile.am:
3482         * WebCore.gypi:
3483         * WebCore.pro:
3484         * WebCore.vcproj/WebCore.vcproj:
3485         * WebCore.xcodeproj/project.pbxproj:
3486         * inspector/InspectorClient.cpp: Added.
3487         (WebCore::InspectorClient::doDispatchMessageOnFrontendPage):
3488         * inspector/InspectorClient.h:
3489         (WebCore::InspectorClient::InspectorClient):
3490
3491 2010-10-18  Andrei Popescu  <andreip@google.com>
3492
3493         Reviewed by Jeremy Orlow.
3494