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