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