Use the Cookie Storage from the Private Browsing Storage Session directly
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-03-09  Jessie Berlin  <jberlin@apple.com>
2
3         Reviewed by Adam Roben.
4
5         Use the Cookie Storage from the Private Browsing Storage Session directly
6         https://bugs.webkit.org/show_bug.cgi?id=55986
7
8         * WebCore.exp.in:
9         * platform/mac/WebCoreSystemInterface.h:
10         * platform/mac/WebCoreSystemInterface.mm:
11
12         * platform/network/mac/CookieStorageMac.mm:
13         (WebCore::setCookieStoragePrivateBrowsingEnabled):
14         Just copy the cookie storage from the private browsing storage session.
15         * platform/network/cf/CookieStorageCFNet.cpp:
16         (WebCore::setCookieStoragePrivateBrowsingEnabled):
17         Ditto.
18
19 2011-03-09  Andrey Kosyakov  <caseq@chromium.org>
20
21         Unreviewed. Fixed a crash in InspectorInstrumentation::didReceiveResponse() when loader is null (broken in r80639)
22
23         * inspector/InspectorInstrumentation.cpp:
24         (WebCore::InspectorInstrumentation::didReceiveResourceResponseImpl):
25
26 2011-03-09  Yury Semikhatsky  <yurys@chromium.org>
27
28         Reviewed by Pavel Feldman.
29
30         Web Inspector: pass explicit agent references to InspectorBackendDispatcher
31         https://bugs.webkit.org/show_bug.cgi?id=55820
32
33         * inspector/CodeGeneratorInspector.pm:
34         * inspector/InspectorController.cpp:
35         (WebCore::InspectorController::InspectorController):
36         (WebCore::InspectorController::connectFrontend):
37         (WebCore::InspectorController::disconnectFrontend):
38         (WebCore::InspectorController::dispatchMessageFromFrontend):
39
40 2011-03-09  Andrey Kosyakov  <caseq@chromium.org>
41
42         Reviewed by Pavel Feldman.
43
44         Web Inspector: resource errors are not reported before front-end is opened
45         https://bugs.webkit.org/show_bug.cgi?id=55939
46
47         * inspector/InspectorInstrumentation.cpp:
48         (WebCore::InspectorInstrumentation::didReceiveResourceResponseImpl):
49         * inspector/InspectorInstrumentation.h:
50         (WebCore::InspectorInstrumentation::didReceiveResourceResponse):
51         (WebCore::InspectorInstrumentation::didFailLoading):
52
53 2011-03-08  Hans Wennborg  <hans@chromium.org>
54
55         Reviewed by Jeremy Orlow.
56
57         IndexedDB: Add BackingStoreType parameter to IDBFactoryBackendInterface::open
58         https://bugs.webkit.org/show_bug.cgi?id=55948
59
60         Add a parameter that allows for selection of alternative backing store
61         implementations.
62
63         No new tests: no new functionality.
64
65         * storage/IDBFactory.cpp:
66         (WebCore::IDBFactory::open):
67         * storage/IDBFactoryBackendImpl.cpp:
68         (WebCore::IDBFactoryBackendImpl::open):
69         * storage/IDBFactoryBackendImpl.h:
70         * storage/IDBFactoryBackendInterface.h:
71
72 2011-03-08  Steve Block  <steveblock@google.com>
73
74         Reviewed by Jeremy Orlow.
75
76         Factor out JNI method call to be used by both JSC and V8
77         https://bugs.webkit.org/show_bug.cgi?id=55966
78
79         No new tests, refactoring only.
80
81         * bridge/jni/JNIUtility.cpp:
82         (JSC::Bindings::callJNIMethod):
83         * bridge/jni/JNIUtility.h:
84         * bridge/jni/jsc/JavaInstanceJSC.cpp:
85         (JavaInstance::invokeMethod):
86         * bridge/jni/v8/JavaInstanceV8.cpp:
87         (JavaInstance::invokeMethod):
88
89 2011-03-09  Andrey Adaikin  <aandrey@google.com>
90
91         Reviewed by Pavel Feldman.
92
93         Web Inspector: [Text editor] Regression in handling DOMNodeInserted/DOMNodeRemoved events
94         https://bugs.webkit.org/show_bug.cgi?id=55818
95
96         * inspector/front-end/TextViewer.js:
97         (WebInspector.TextEditorMainPanel.prototype._handleDOMUpdates):
98
99 2011-03-09  Ilya Tikhonovsky  <loislo@chromium.org>
100
101         Reviewed by Yury Semikhatsky.
102
103         Web Inspector: Web Inspector: we don't need to transfer objectId and hasChildren for primitive values.
104         https://bugs.webkit.org/show_bug.cgi?id=55998
105
106         * inspector/InjectedScriptSource.js:
107
108 2011-03-09  Pavel Feldman  <pfeldman@chromium.org>
109
110         Reviewed by Yury Semikhatsky.
111
112         Web Inspector: watch expressions should show string values in quotes.
113         https://bugs.webkit.org/show_bug.cgi?id=55846
114
115         * inspector/InjectedScriptSource.js:
116         * inspector/front-end/ObjectPropertiesSection.js:
117         (WebInspector.ObjectPropertyTreeElement.prototype.update):
118         * inspector/front-end/RemoteObject.js:
119         (WebInspector.LocalJSONObject.prototype.get description):
120         * inspector/front-end/WatchExpressionsSidebarPane.js:
121         (WebInspector.WatchExpressionsSection.prototype.update):
122         * inspector/front-end/inspector.css:
123         (.console-formatted-string, .console-formatted-regexp):
124
125 2011-03-09  Pavel Feldman  <pfeldman@chromium.org>
126
127         Reviewed by Yury Semikhatsky.
128
129         Web Inspector: "length" getter is invoked upon console object formatting.
130         https://bugs.webkit.org/show_bug.cgi?id=55220
131
132         * inspector/InjectedScriptSource.js:
133
134 2011-03-08  Ilya Tikhonovsky  <loislo@chromium.org>
135
136         Reviewed by Pavel Feldman.
137
138         Web Inspector: remove groupName from objectId.
139         https://bugs.webkit.org/show_bug.cgi?id=55825
140
141         * inspector/InjectedScriptSource.js:
142
143 2011-03-08  Xiaomei Ji  <xji@chromium.org>
144
145         Reviewed by David Hyatt.
146
147         Fix Regression: Content not drawn when scrolling horizontally in an RTL page.
148         https://bugs.webkit.org/show_bug.cgi?id=55077.
149
150         Inside ScrollView::calculateOverhangAreasForPainting(), when scroll position
151         is negative, should include the position value into overhang rectangle's 
152         starting position. 
153
154         Tests: fast/dom/scroll-reveal-left-overflow.html
155                fast/dom/scroll-reveal-top-overflow.html
156
157         * platform/ScrollView.cpp:
158         (WebCore::ScrollView::calculateOverhangAreasForPainting):
159
160 2011-03-08  Daniel Bates  <dbates@rim.com>
161
162         Reviewed by Darin Adler.
163
164         Add templatized CSSMutableStyleDeclaration::get{ShorthandValue, CommonValue, LayeredShorthandValue}()
165         https://bugs.webkit.org/show_bug.cgi?id=55351
166
167         By using some template magic CSSMutableStyleDeclaration::get{ShorthandValue, CommonValue, LayeredShorthandValue}()
168         can be called on an array A without the caller explicitly specifying the size of A.
169
170         No functionality was changed. So no new tests.
171
172         * css/CSSMutableStyleDeclaration.cpp:
173         (WebCore::CSSMutableStyleDeclaration::getPropertyValue): Modified to call templatized variants of
174         CSSMutableStyleDeclaration::get{ShorthandValue, CommonValue, LayeredShorthandValue}().
175         (WebCore::CSSMutableStyleDeclaration::getLayeredShorthandValue): Renamed second argument from "number" to "size"
176         to better reflect its purpose - to be the size of the passed array.
177         (WebCore::CSSMutableStyleDeclaration::getShorthandValue): Ditto.
178         (WebCore::CSSMutableStyleDeclaration::getCommonValue): Ditto.
179         (WebCore::CSSMutableStyleDeclaration::cssText): Modified to call templatized variant of CSSMutableStyleDeclaration::getShorthandValue().
180         * css/CSSMutableStyleDeclaration.h:
181         (WebCore::CSSMutableStyleDeclaration::getShorthandValue): Added templatized function that can determine
182         the size of a passed array. Changed type of second argument to size_t since it represents the size of
183         an array.
184         (WebCore::CSSMutableStyleDeclaration::getCommonValue): Ditto.
185         (WebCore::CSSMutableStyleDeclaration::getLayeredShorthandValue): Ditto.
186
187 2011-03-08  Enrica Casucci  <enrica@apple.com>
188
189         Reviewed by Darin Adler.
190         
191         REGRESSION: Copied content loses formatting on paste to external apps.
192         https://bugs.webkit.org/show_bug.cgi?id=47615
193         <rdar://problem/9001214>
194         
195         This is a resubmission of a patch that was landed a while ago then rolled
196         back because of a build failure on SnowLeopard and Leopard on the 32-bit builds.
197
198         This patch adds a way for WebKit2 to create NSAttributedStrings from
199         a DOM range without using the AppKit api initWithDOMRange that internally
200         needs to access the WebView. The NSAttributedString is needed to create
201         RTF formats in the pasteboard.
202         This is to be considered a first step, since in the future we want to have
203         an implementation based on the TextIterator.
204         * WebCore.xcodeproj/project.pbxproj:
205         * platform/mac/HTMLConverter.h: Added.
206         * platform/mac/HTMLConverter.mm: Added.
207         * platform/mac/PasteboardMac.mm:
208         (WebCore::Pasteboard::writeSelection):
209
210 2011-03-08  James Robinson  <jamesr@chromium.org>
211
212         Reviewed by Kenneth Russell.
213
214         [chromium] Explicitly copy compositing properties from LayerChromium to CCLayerImpl
215         https://bugs.webkit.org/show_bug.cgi?id=55900
216
217         This adds an explicit step to synchronize properties from
218         LayerChromiums to their corresponding CCLayerImpls.
219
220         * platform/graphics/chromium/LayerChromium.cpp:
221         (WebCore::LayerChromium::setBounds):
222         * platform/graphics/chromium/LayerChromium.h:
223         (WebCore::LayerChromium::bounds):
224         (WebCore::LayerChromium::doubleSided):
225         (WebCore::LayerChromium::setDoubleSided):
226         * platform/graphics/chromium/LayerRendererChromium.cpp:
227         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
228         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
229         (WebCore::CCLayerImpl::CCLayerImpl):
230         (WebCore::CCLayerImpl::updateFromLayer):
231         (WebCore::CCLayerImpl::descendantsDrawsContent):
232         * platform/graphics/chromium/cc/CCLayerImpl.h:
233         (WebCore::CCLayerImpl::anchorPoint):
234         (WebCore::CCLayerImpl::anchorPointZ):
235         (WebCore::CCLayerImpl::masksToBounds):
236         (WebCore::CCLayerImpl::opacity):
237         (WebCore::CCLayerImpl::position):
238         (WebCore::CCLayerImpl::preserves3D):
239         (WebCore::CCLayerImpl::sublayerTransform):
240         (WebCore::CCLayerImpl::transform):
241
242 2011-03-08  James Robinson  <jamesr@chromium.org>
243
244         Chromium compile fix.
245
246         * platform/graphics/chromium/SimpleFontDataLinux.cpp:
247         (WebCore::SimpleFontData::platformInit):
248
249 2011-03-08  Peter Kasting  <pkasting@google.com>
250
251         Reviewed by James Robinson.
252
253         Unify Windows version checks, part 1.
254         https://bugs.webkit.org/show_bug.cgi?id=55979
255
256         Make everyone (I hope) pull in SystemInfo.cpp.  Eliminate the
257         now-unnecessary WindowsVersion.cpp from Chromium.
258
259         * GNUmakefile.am:
260         * WebCore.gyp/WebCore.gyp:
261         * WebCore.gypi:
262         * platform/chromium/ScrollbarThemeChromiumWin.cpp:
263         (WebCore::ScrollbarThemeChromiumWin::invalidateOnMouseEnterExit):
264         (WebCore::ScrollbarThemeChromiumWin::getThemeState):
265         (WebCore::ScrollbarThemeChromiumWin::getThemeArrowState):
266         * platform/chromium/WindowsVersion.cpp: Removed.
267         * platform/chromium/WindowsVersion.h: Removed.
268         * platform/graphics/chromium/GlyphPageTreeNodeChromiumWin.cpp:
269         (WebCore::fillBMPGlyphs):
270         * rendering/RenderThemeChromiumWin.cpp:
271         (WebCore::getNonClientMetrics):
272
273 2011-03-08  Ryosuke Niwa  <rniwa@webkit.org>
274
275         Chromium Linux build fix attempt after r80582.
276
277         * platform/graphics/chromium/FontLinux.cpp:
278         (WebCore::Font::drawGlyphs):
279         * platform/graphics/chromium/SimpleFontDataLinux.cpp:
280         (WebCore::SimpleFontData::platformInit):
281         * platform/graphics/skia/GlyphPageTreeNodeSkia.cpp:
282         (WebCore::GlyphPage::fill):
283
284 2011-03-08  Ryosuke Niwa  <rniwa@webkit.org>
285
286         Mac build fix attempt for r80582.
287
288         * platform/graphics/mac/ComplexTextControllerATSUI.cpp:
289         (WebCore::disableLigatures):
290
291 2011-03-08  Ryosuke Niwa  <rniwa@webkit.org>
292
293         Reviewed by Kent Tamura.
294
295         Remove calls to deprecatedEditingOffset in SelectionController and VisibleSelection
296         https://bugs.webkit.org/show_bug.cgi?id=54937
297
298         * editing/SelectionController.cpp:
299         (WebCore::SelectionController::setSelection): Calls anchorNode() instead of deprecatedNode() to obtain
300         the document. Also restrained the lifetime of document variable.
301         (WebCore::removingNodeRemovesPosition): Compare the node with anchorNode() instead of deprecatedNode()
302         to determine whether or not position becomes null after removing a node.
303         (WebCore::SelectionController::directionOfEnclosingBlock): The enclosing block is always a container
304         so call containerNode() instead of deprecatedNode().
305         (WebCore::SelectionController::debugRenderer): Call containerNode() and computeOffsetInContainer()
306         instead of deprecatedNode() and deprecatedEditingOffset() respectively.
307         (WebCore::SelectionController::isInPasswordField): Look for the shadow root from containerNode()
308         instead of deprecatedNode to determine whether or not selection inside a password field. Also assert
309         that the specified position is not before or after the shadow root as it violates our assumption.
310         * editing/VisibleSelection.cpp:
311         (WebCore::makeSearchRange): Call containerNode() and offsetInContainerNode() instead of deprecatedNode()
312         and deprecatedEditingOffset() respectively because start is always parent anchored and therefore
313         guaranteed to be an offset inside an anchor node.
314         (WebCore::VisibleSelection::adjustSelectionToAvoidCrossingEditingBoundaries): Call containerNode()
315         instead of deprecatedNode() to look for the lowest editable ancestor because position before or after
316         an editable element isn't editable.
317         * page/DOMSelection.cpp: Call containerNode() and offsetInContainerNode() instead of deprecatedNode()
318         and deprecatedEditingOffset() respectively in the following functions because they are exposed to
319         DOM, which doesn't have before/after concept.
320         (WebCore::DOMSelection::anchorNode):
321         (WebCore::DOMSelection::anchorOffset):
322         (WebCore::DOMSelection::focusNode):
323         (WebCore::DOMSelection::focusOffset):
324         (WebCore::DOMSelection::baseNode):
325         (WebCore::DOMSelection::baseOffset):
326         (WebCore::DOMSelection::extentNode):
327         (WebCore::DOMSelection::extentOffset):
328
329 2011-03-08  Brent Fulgham  <bfulgham@webkit.org>
330
331         Reviewed by Adam Roben.
332
333         Correct uninitialized variable in PolicyCallback found while
334         running WebKit in BoundsChecker.
335         https://bugs.webkit.org/show_bug.cgi?id=45199.
336
337         * loader/PolicyCallback.cpp:
338         (WebCore::PolicyCallback::PolicyCallback): Initialize
339         m_argument.
340
341 2011-03-08  Brent Fulgham  <bfulgham@webkit.org>
342
343         More build bustage fix.
344
345         * platform/graphics/win/cairo/FontPlatformData.h:
346         (WebCore::FontPlatformData::setOrientation): Duplicate accessor
347         in WinCairo-local header.  This is such a mess!
348
349 2011-03-08  David Hyatt  <hyatt@apple.com>
350
351         Fix build bustage.  Hide orientation setting behind a setter and stub it out in all
352         FontPlatformData classes.  (This class really needs to move to a common header with ifdefs.)
353
354         * platform/graphics/SimpleFontData.cpp:
355         (WebCore::SimpleFontData::verticalRightOrientationFontData):
356         * platform/graphics/cg/FontPlatformData.h:
357         (WebCore::FontPlatformData::setOrientation):
358         * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
359         (WebCore::FontPlatformData::setOrientation):
360         * platform/graphics/chromium/FontPlatformDataLinux.h:
361         (WebCore::FontPlatformData::setOrientation):
362         * platform/graphics/cocoa/FontPlatformData.h:
363         (WebCore::FontPlatformData::setOrientation):
364         * platform/graphics/freetype/FontPlatformData.h:
365         (WebCore::FontPlatformData::setOrientation):
366         * platform/graphics/qt/FontPlatformData.h:
367         (WebCore::FontPlatformData::setOrientation):
368         * platform/graphics/wince/FontPlatformData.h:
369         (WebCore::FontPlatformData::setOrientation):
370         * platform/graphics/wx/FontPlatformData.h:
371         (WebCore::FontPlatformData::setOrientation):
372
373 2011-03-08  Joe Wild  <joseph.wild@nokia.com>
374
375         Reviewed by Csaba Osztrogon√°c.
376
377         [Qt] Missing SVG variables
378         https://bugs.webkit.org/show_bug.cgi?id=32941
379
380         Basically, this patch just modifies features.pri to the Qt build to
381         pass on the ENABLE_SVG_* flags to the IDL binding generator.
382
383         Also I had remove global-construtors.html from the skip list and
384         updated the associated expected results files.
385
386         * features.pri:
387         * page/DOMWindow.idl:
388
389 2011-03-08  Alok priyadarshi  <alokp@chromium.org>
390
391         Reviewed by Dimitri Glazkov.
392
393         Plugins needs a way to trigger style recalc
394         https://bugs.webkit.org/show_bug.cgi?id=55242
395
396         No test needed. A simple get function is added.
397
398         * platform/graphics/chromium/PluginLayerChromium.h:
399         (WebCore::PluginLayerChromium::getTextureId):
400
401 2011-03-08  David Hyatt  <hyatt@apple.com>
402
403         Reviewed by Dan Bernstein.
404
405         https://bugs.webkit.org/show_bug.cgi?id=48540, support the text-orientation CSS property.
406         
407         This patch adds support for two values of the text-orientation property (the ones that actually matter): vertical-right and upright.
408         The TextOrientation is part of the FontDescription and used to look up fonts (similar to FontOrientation).
409         
410         Orientation of non-CJK characters is done using fallback font data of the appropriate orientation type, e.g., verticalRightOrientation and
411         uprightOrientation fallback font data.  Vertical right is just implemented as a normal horizontal font.  Upright is implemented as a
412         vertically oriented font that rotates all glyphs.
413         
414         The main complication implementing text-orientation is that fonts have "baked-in" vertical glyphs for letters that are hardcoded to
415         a vertical right facing.  This means that you can use those special vertical glyphs for vertical-right orientation without having to 
416         fall back, but then for upright orientation you have to ignore them and still fall back.  As you can see from the test case, this doesn't
417         work very well, but hopefully it won't be all that common.  Limitations of CoreText prevent this case from rendering properly in either the
418         simple or complex code paths, although the simple code path at least gets close.
419
420         Added fast/blockflow/text-orientation-basic.html
421
422         * WebCore.exp.in:
423         * WebCore.xcodeproj/project.pbxproj:
424         * css/CSSComputedStyleDeclaration.cpp:
425         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
426         * css/CSSFontFaceSource.cpp:
427         (WebCore::CSSFontFaceSource::getFontData):
428         * css/CSSParser.cpp:
429         (WebCore::CSSParser::parseValue):
430         * css/CSSPrimitiveValueMappings.h:
431         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
432         (WebCore::CSSPrimitiveValue::operator TextOrientation):
433         * css/CSSPropertyNames.in:
434         * css/CSSStyleSelector.cpp:
435         (WebCore::CSSStyleSelector::applyDeclarations):
436         (WebCore::CSSStyleSelector::applyProperty):
437         * css/CSSValueKeywords.in:
438         * loader/cache/CachedFont.cpp:
439         (WebCore::CachedFont::platformDataFromCustomData):
440         * loader/cache/CachedFont.h:
441         * platform/graphics/FontCache.cpp:
442         (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
443         (WebCore::FontPlatformDataCacheKey::operator==):
444         (WebCore::computeHash):
445         (WebCore::FontCache::getCachedFontPlatformData):
446         * platform/graphics/FontDescription.h:
447         (WebCore::FontDescription::FontDescription):
448         (WebCore::FontDescription::textOrientation):
449         (WebCore::FontDescription::setTextOrientation):
450         (WebCore::FontDescription::operator==):
451         * platform/graphics/FontFastPath.cpp:
452         (WebCore::Font::glyphDataForCharacter):
453         (WebCore::offsetToMiddleOfGlyph):
454         * platform/graphics/SimpleFontData.cpp:
455         (WebCore::SimpleFontData::SimpleFontData):
456         (WebCore::SimpleFontData::verticalRightOrientationFontData):
457         (WebCore::SimpleFontData::uprightOrientationFontData):
458         (WebCore::SimpleFontData::brokenIdeographFontData):
459         (WebCore::SimpleFontData::DerivedFontData::~DerivedFontData):
460         * platform/graphics/SimpleFontData.h:
461         (WebCore::SimpleFontData::hasVerticalGlyphs):
462         (WebCore::SimpleFontData::isTextOrientationFallback):
463         * platform/graphics/cairo/FontCustomPlatformData.h:
464         * platform/graphics/cocoa/FontPlatformData.h:
465         (WebCore::FontPlatformData::FontPlatformData):
466         (WebCore::FontPlatformData::textOrientation):
467         (WebCore::FontPlatformData::hash):
468         (WebCore::FontPlatformData::operator==):
469         * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
470         (WebCore::FontPlatformData::FontPlatformData):
471         (WebCore::FontPlatformData::operator=):
472         * platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
473         (WebCore::FontCustomPlatformData::fontPlatformData):
474         * platform/graphics/haiku/FontCustomPlatformData.cpp:
475         (WebCore::FontCustomPlatformData::fontPlatformData):
476         * platform/graphics/haiku/FontCustomPlatformData.h:
477         * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
478         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText):
479         * platform/graphics/mac/FontCacheMac.mm:
480         (WebCore::FontCache::createFontPlatformData):
481         * platform/graphics/mac/FontCustomPlatformData.cpp:
482         (WebCore::FontCustomPlatformData::fontPlatformData):
483         * platform/graphics/mac/FontCustomPlatformData.h:
484         * platform/graphics/mac/FontMac.mm:
485         (WebCore::showGlyphsWithAdvances):
486         (WebCore::Font::drawGlyphs):
487         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
488         (WebCore::shouldUseCoreText):
489         (WebCore::GlyphPage::fill):
490         * platform/graphics/mac/SimpleFontDataCoreText.cpp:
491         (WebCore::SimpleFontData::getCFStringAttributes):
492         * platform/graphics/mac/SimpleFontDataMac.mm:
493         (WebCore::SimpleFontData::platformInit):
494         (WebCore::SimpleFontData::platformBoundsForGlyph):
495         (WebCore::SimpleFontData::platformWidthForGlyph):
496         * platform/graphics/pango/FontCustomPlatformDataPango.cpp:
497         (WebCore::FontCustomPlatformData::fontPlatformData):
498         * platform/graphics/qt/FontCustomPlatformData.h:
499         * platform/graphics/qt/FontCustomPlatformDataQt.cpp:
500         (WebCore::FontCustomPlatformData::fontPlatformData):
501         * platform/graphics/skia/FontCustomPlatformData.cpp:
502         (WebCore::FontCustomPlatformData::fontPlatformData):
503         * platform/graphics/skia/FontCustomPlatformData.h:
504         * platform/graphics/win/FontCustomPlatformData.cpp:
505         (WebCore::FontCustomPlatformData::fontPlatformData):
506         * platform/graphics/win/FontCustomPlatformData.h:
507         * platform/graphics/win/FontCustomPlatformDataCairo.cpp:
508         (WebCore::FontCustomPlatformData::fontPlatformData):
509         * platform/graphics/win/FontCustomPlatformDataCairo.h:
510         * platform/graphics/wince/FontCustomPlatformData.cpp:
511         (WebCore::FontCustomPlatformData::fontPlatformData):
512         * platform/graphics/wince/FontCustomPlatformData.h:
513         * platform/text/TextOrientation.h: Added.
514         * rendering/InlineFlowBox.cpp:
515         (WebCore::InlineFlowBox::requiresIdeographicBaseline):
516         * rendering/style/RenderStyle.h:
517         (WebCore::InheritedFlags::initialTextOrientation):
518
519 2011-03-08  Ryosuke Niwa  <rniwa@webkit.org>
520
521         Reviewed by Darin Adler.
522
523         addInlineStyleIfNeeded should take EditingStyle
524         https://bugs.webkit.org/show_bug.cgi?id=55950
525
526         Deployed EditingStyle in addInlineStyleIfNeeded, StyleChange::StyleChange, and StyleChange::init.
527         Also extracted EditingStyle::styleIsPresentInComputedStyleOfNode from removeStyleFromRunBeforeApplyingStyle.
528
529         * editing/ApplyStyleCommand.cpp:
530         (WebCore::StyleChange::StyleChange): Takes EditingStyle instead of CSSStyleDeclaration.
531         (WebCore::StyleChange::init): Ditto.
532         (WebCore::ApplyStyleCommand::applyBlockStyle): Instantiates StyleChange.
533         (WebCore::ApplyStyleCommand::applyInlineStyleToNodeRange): Calls addInlineStyleIfNeeded.
534         (WebCore::ApplyStyleCommand::removeStyleFromRunBeforeApplyingStyle): Calls styleIsPresentInComputedStyleOfNode.
535         (WebCore::ApplyStyleCommand::removeInlineStyleFromElement): Calls EditingStyle::mergeInlineStyleOfElement
536         instead of manually merging styles.
537         (WebCore::ApplyStyleCommand::applyInlineStyleToPushDown): Calls addInlineStyleIfNeeded.
538         (WebCore::ApplyStyleCommand::addInlineStyleIfNeeded): Takes EditingStyle instead of CSSMutableStyleDeclaration.
539         * editing/ApplyStyleCommand.h:
540         * editing/CompositeEditCommand.h:
541         * editing/EditingStyle.cpp:
542         (WebCore::EditingStyle::styleIsPresentInComputedStyleOfNode): Extracted from removeStyleFromRunBeforeApplyingStyle.
543         * editing/EditingStyle.h:
544
545 2011-03-08  Nico Weber  <thakis@chromium.org>
546
547         Reviewed by James Robinson.
548
549         Crash on big blur radius with canvas
550         https://bugs.webkit.org/show_bug.cgi?id=55951
551
552         Move the clamping code out of an if branch, so that it happens in the
553         canvas case as well.
554
555         Test: fast/canvas/shadow-huge-blur.html
556
557         * platform/graphics/cg/GraphicsContextCG.cpp:
558         (WebCore::GraphicsContext::setPlatformShadow):
559
560 2011-03-08  Chris Fleizach  <cfleizach@apple.com>
561
562         Reviewed by Sam Weinig.
563
564         WK2: Cannot set focus on an element when focus is outside of WKView
565         https://bugs.webkit.org/show_bug.cgi?id=55281
566     
567         In WK2, focus cannot be set from the WebProcess side because there's no platformWidget().
568         Instead, the focus/unfocus messages need to be sent to the UIProcess side.
569
570         * platform/mac/WidgetMac.mm:
571         (WebCore::Widget::setFocus):
572
573 2011-03-08  Sam Weinig  <sam@webkit.org>
574
575         Reviewed by Anders Carlsson.
576
577         Overflow: scroll areas should not paint white in scroll corner if the 
578         scrollbars are overlay.
579         <rdar://problem/9082871>
580
581         * rendering/RenderLayer.cpp:
582         (WebCore::RenderLayer::paintScrollCorner):
583         Don't paint the scroll corner white if we have overlay scrollbars.
584
585 2011-03-08  Chris Marrin  <cmarrin@apple.com>
586
587         Reviewed by Darin Adler.
588
589         The first time animations are committed they have a bad start time
590         https://bugs.webkit.org/show_bug.cgi?id=55947
591
592         Do a check for a returned lastCommitTime of <=0 and replace it
593         with the mediaTime.
594
595
596         * platform/graphics/ca/win/CACFLayerTreeHost.cpp:
597         (WebCore::CACFLayerTreeHost::notifyAnimationsStarted):
598
599 2011-03-08  James Kozianski  <koz@chromium.org>
600
601         Reviewed by David Levin.
602
603         Expose isValidProtocol() in KURL.h.
604         https://bugs.webkit.org/show_bug.cgi?id=54594
605
606         This is needed to validate protocols used in calls to
607         navigator.registerProtocolHandler().
608
609         * platform/KURL.cpp:
610         * platform/KURL.h:
611         * platform/KURLGoogle.cpp:
612         (WebCore::isValidProtocol):
613
614 2011-03-08  Adam Roben  <aroben@apple.com>
615
616         Set svn:mime-type to text/css for all Inspector CSS files
617
618         This will cause them to be served with the correct MIME type from svn.webkit.org's web
619         interface.
620
621         Rubber-stamped by Tim Hatcher.
622
623         * inspector/front-end/audits.css: Added property svn:mime-type.
624         * inspector/front-end/goToLineDialog.css: Added property svn:mime-type.
625         * inspector/front-end/heapProfiler.css: Added property svn:mime-type.
626         * inspector/front-end/helpScreen.css: Added property svn:mime-type.
627         * inspector/front-end/inspector.css: Added property svn:mime-type.
628         * inspector/front-end/inspectorSyntaxHighlight.css: Added property svn:mime-type.
629         * inspector/front-end/networkPanel.css: Added property svn:mime-type.
630         * inspector/front-end/popover.css: Added property svn:mime-type.
631         * inspector/front-end/textViewer.css: Added property svn:mime-type.
632
633 2011-03-08  Andrei Popescu  <andreip@google.com>
634
635         Reviewed by Steve Block.
636
637         IDBCallbacks::onsuccess(IDBIndex*) is unused and should be removed.
638         https://bugs.webkit.org/show_bug.cgi?id=55938
639
640         The IndexedDatabase specification changed and IDBIndex objects are no
641         longer created asynchronously. We therefore no longer need this method.
642
643         No new tests, just cleanup.
644
645         * storage/IDBCallbacks.h:
646         * storage/IDBRequest.cpp:
647         * storage/IDBRequest.h:
648
649 2011-03-08  Sheriff Bot  <webkit.review.bot@gmail.com>
650
651         Unreviewed, rolling out r80551.
652         http://trac.webkit.org/changeset/80551
653         https://bugs.webkit.org/show_bug.cgi?id=55933
654
655         It broke 285 tests on Qt bot (Requested by Ossy on #webkit).
656
657         * WebCore.pro:
658         * platform/SharedBuffer.cpp:
659         * platform/SharedBuffer.h:
660         * platform/network/qt/QNetworkReplyHandler.cpp:
661         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
662         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
663         (WebCore::QNetworkReplyHandler::forwardData):
664         (WebCore::QNetworkReplyHandler::start):
665         * platform/network/qt/QNetworkReplyHandler.h:
666         * platform/network/qt/ResourceHandleQt.cpp:
667         (WebCore::ResourceHandle::supportsBufferedData):
668         (WebCore::ResourceHandle::bufferedData):
669         * platform/qt/QtByteBlock.cpp: Removed.
670         * platform/qt/QtByteBlock.h: Removed.
671         * platform/qt/SharedBufferQt.cpp:
672
673 2011-03-08  Andreas Kling  <kling@webkit.org>
674
675         Reviewed by Benjamin Poulain.
676
677         RenderObject: Pass complex type arguments as const-references.
678
679         * WebCore.exp.in:
680         * rendering/RenderObject.h:
681         * rendering/RenderObject.cpp:
682         (WebCore::RenderObject::drawBoxSideFromPath):
683         (WebCore::RenderObject::drawArcForBoxSide):
684         (WebCore::RenderObject::localToAbsolute):
685         (WebCore::RenderObject::absoluteToLocal):
686
687 2011-03-08  Andreas Kling  <kling@webkit.org>
688
689         Reviewed by Antonio Gomes.
690
691         Path: Make measurement functions const
692         https://bugs.webkit.org/show_bug.cgi?id=55914
693
694         * platform/graphics/Path.cpp:
695         (WebCore::Path::length):
696         (WebCore::Path::pointAtLength):
697         (WebCore::Path::normalAngleAtLength):
698         * platform/graphics/Path.h:
699         * platform/graphics/cairo/PathCairo.cpp:
700         (WebCore::Path::strokeBoundingRect):
701         * platform/graphics/cg/PathCG.cpp:
702         (WebCore::Path::strokeBoundingRect):
703         * platform/graphics/openvg/PathOpenVG.cpp:
704         (WebCore::Path::strokeBoundingRect):
705         (WebCore::Path::length):
706         (WebCore::Path::pointAtLength):
707         (WebCore::Path::normalAngleAtLength):
708         * platform/graphics/qt/PathQt.cpp:
709         (WebCore::Path::strokeBoundingRect):
710         (WebCore::Path::length):
711         (WebCore::Path::pointAtLength):
712         (WebCore::Path::normalAngleAtLength):
713         * platform/graphics/skia/PathSkia.cpp:
714         (WebCore::Path::strokeBoundingRect):
715         * platform/graphics/wince/PathWinCE.cpp:
716         (WebCore::Path::strokeBoundingRect):
717         * platform/graphics/wx/PathWx.cpp:
718         (WebCore::Path::strokeBoundingRect):
719
720 2011-03-08  Carlos Garcia Campos  <cgarcia@igalia.com>
721
722         Reviewed by Martin Robinson.
723
724         [GTK] Do not set juntion sides on scrollbar stepper buttons
725         https://bugs.webkit.org/show_bug.cgi?id=55868
726
727         Fixes rendering of steppers for themes using rounded stepper
728         buttons on scrollbars like Adwaita.
729
730         * platform/gtk/ScrollbarThemeGtk3.cpp:
731         (WebCore::ScrollbarThemeGtk::paintButton):
732
733 2011-03-08  Carlos Garcia Campos  <cgarcia@igalia.com>
734
735         Reviewed by Martin Robinson.
736
737         [GTK] Use doubles instead of integers for coordinates when rendering arrows
738         https://bugs.webkit.org/show_bug.cgi?id=55866
739
740         To prevent off-by-one rounding errors.
741
742         * platform/gtk/RenderThemeGtk3.cpp:
743         (WebCore::RenderThemeGtk::paintMenuList):
744         * platform/gtk/ScrollbarThemeGtk3.cpp:
745         (WebCore::ScrollbarThemeGtk::paintButton):
746
747 2011-03-08  Markus Goetz  <guruz@guruz.de>
748
749         Reviewed by Kenneth Rohde Christiansen.
750
751         [Qt] Use the QNetworkAccessManager zerocopy feature
752         https://bugs.webkit.org/show_bug.cgi?id=50082
753
754         The feature will be introduced in Qt 4.8.
755         This patch is backwards compatible with Qt 4.7.
756
757         * WebCore.pro:
758         * platform/SharedBuffer.cpp:
759         * platform/SharedBuffer.h:
760         * platform/network/qt/QNetworkReplyHandler.cpp:
761         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
762         (WebCore::QNetworkReplyHandler::bufferedData):
763         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
764         (WebCore::QNetworkReplyHandler::downloadProgress):
765         (WebCore::QNetworkReplyHandler::forwardData):
766         (WebCore::QNetworkReplyHandler::start):
767         * platform/network/qt/QNetworkReplyHandler.h:
768         * platform/network/qt/ResourceHandleQt.cpp:
769         (WebCore::ResourceHandle::supportsBufferedData):
770         (WebCore::ResourceHandle::bufferedData):
771         * platform/qt/SharedBufferQt.cpp:
772         (WebCore::SharedBuffer::wrapQtByteBlock):
773         (WebCore::SharedBuffer::hasPlatformData):
774         (WebCore::SharedBuffer::platformData):
775         (WebCore::SharedBuffer::platformDataSize):
776         (WebCore::SharedBuffer::maybeTransferPlatformData):
777         (WebCore::SharedBuffer::clearPlatformData):
778
779 2011-03-08  Alejandro G. Castro  <alex@igalia.com>
780
781         Reviewed by Martin Robinson.
782
783         [GTK] Fix compilation warnings after r80429
784         https://bugs.webkit.org/show_bug.cgi?id=55864
785
786         * platform/gtk/WidgetGtk.cpp:
787
788 2011-03-08  Philippe Normand  <pnormand@igalia.com>
789
790         Unreviewed, GTK build fix after r80536
791
792         * GNUmakefile.am:
793
794 2011-03-08  Zan Dobersek  <zandobersek@gmail.com>
795
796         Reviewed by Martin Robinson.
797
798         [Gtk] toDataURL uses incorrect quality value when saving GdkPixbuf to buffer
799         https://bugs.webkit.org/show_bug.cgi?id=55878
800
801         Multiply the quality parameter by 100 to put it in the range [0, 100] as needed
802         when saving GdkPixbuf to a buffer.
803
804         * platform/graphics/gtk/ImageBufferGtk.cpp:
805         (WebCore::ImageBuffer::toDataURL):
806
807 2011-03-07  Daniel Cheng  <dcheng@chromium.org>
808
809         Unreviewed.
810
811         Final build fix for r80536.
812
813         * DerivedSources.make:
814
815 2011-03-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
816
817         Reviewed by Kent Tamura.
818
819         [EFL] Adjust functions of WebCore's efl port to WebKit coding style
820         https://bugs.webkit.org/show_bug.cgi?id=55924
821
822         Adjust webkit style to PlatformKeyboardEventEfl, PlatformMouseEventEfl and WidgetEfl files.
823
824         * platform/efl/PlatformKeyboardEventEfl.cpp:
825         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
826         * platform/efl/PlatformMouseEventEfl.cpp:
827         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
828         * platform/efl/WidgetEfl.cpp:
829         (WebCore::Widget::frameRectsChanged):
830         (WebCore::Widget::setEvasObject):
831
832 2011-03-07  Daniel Cheng  <dcheng@chromium.org>
833
834         Unreviewed.
835
836         More build fixes for r80536.
837
838         * CMakeLists.txt:
839         * platform/chromium/ClipboardChromium.cpp:
840         * platform/chromium/ClipboardChromium.h:
841
842 2011-03-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
843
844         Reviewed by Antonio Gomes.
845
846         [EFL] Adjust functions of ScrollbarEfl.cpp to WebKit coding style
847         https://bugs.webkit.org/show_bug.cgi?id=55917
848
849         Adjust webkit style to ScrollbarEfl files.
850
851         * platform/efl/ScrollbarEfl.cpp:
852         (scrollbarEflEdjeMessage):
853         (ScrollbarEfl::setParent):
854         (ScrollbarEfl::updateThumbPositionAndProportion):
855         (ScrollbarEfl::frameRectsChanged):
856         (ScrollbarEfl::paint):
857         * platform/efl/ScrollbarEfl.h:
858
859 2011-03-07  Daniel Cheng  <dcheng@chromium.org>
860
861         Unreviewed.
862
863         Build fix for Chromium after r80536.
864
865         * platform/chromium/DataTransferItemChromium.cpp:
866         * platform/chromium/DataTransferItemsChromium.cpp:
867
868 2011-03-07  Daniel Cheng  <dcheng@chromium.org>
869
870         Unreviewed.
871
872         More build fixes for r80536.
873
874         * CMakeLists.txt:
875         * platform/chromium/ClipboardChromium.cpp:
876         * platform/chromium/ClipboardChromium.h:
877
878 2011-03-07  Daniel Cheng  <dcheng@chromium.org>
879
880         Reviewed by David Levin.
881
882         Add support for DataTransferItems
883         https://bugs.webkit.org/show_bug.cgi?id=55115
884
885         This patch adds stubs for DataTransferItems/DataTransferItem as well as implementing the
886         basic functionality on the Chromium port. With the exception of DataTransferItem::getAsFile,
887         all functionality on the DataTransferItems collection has been implemented.
888         This change does not actually hook up DataTransferItems to reflect the actual contents of a
889         drop/paste operation or to allow mutation of data in a copy/drag start yet. That will be
890         enabled via several followup patches.
891
892         Test: editing/pasteboard/data-transfer-items.html
893
894         * Android.mk:
895         * CMakeLists.txt:
896         * CodeGenerators.pri:
897         * DerivedSources.cpp:
898         * DerivedSources.make:
899         * GNUmakefile.am:
900         * WebCore.gypi:
901         * WebCore.pro:
902         * WebCore.vcproj/WebCore.vcproj:
903         * WebCore.xcodeproj/project.pbxproj:
904         * bindings/generic/RuntimeEnabledFeatures.cpp:
905         * bindings/generic/RuntimeEnabledFeatures.h:
906         (WebCore::RuntimeEnabledFeatures::setDataTransferItemsEnabled):
907         (WebCore::RuntimeEnabledFeatures::dataTransferItemsEnabled):
908         * bindings/scripts/CodeGeneratorV8.pm: Do not emit an #include line for DOMString, since it's built-in.
909         * dom/Clipboard.h:
910         (WebCore::Clipboard::policy):
911         * dom/Clipboard.idl:
912         * dom/DataTransferItem.cpp: Added.
913         * dom/DataTransferItem.h: Added.
914         (WebCore::DataTransferItem::~DataTransferItem):
915         * dom/DataTransferItem.idl: Added.
916         * dom/DataTransferItems.h: Added.
917         (WebCore::DataTransferItems::~DataTransferItems):
918         * dom/DataTransferItems.idl: Added.
919         * dom/StringCallback.cpp: Added.
920         (WebCore::StringCallback::scheduleCallback):
921         * dom/StringCallback.h: Added.
922         (WebCore::StringCallback::~StringCallback):
923         * dom/StringCallback.idl: Added.
924         * platform/chromium/ClipboardChromium.cpp:
925         (WebCore::ClipboardChromium::items):
926         * platform/chromium/ClipboardChromium.h:
927         * platform/chromium/DataTransferItemChromium.cpp: Added.
928         (WebCore::DataTransferItemChromium::create):
929         (WebCore::DataTransferItemChromium::DataTransferItemChromium):
930         (WebCore::DataTransferItemChromium::kind):
931         (WebCore::DataTransferItemChromium::type):
932         (WebCore::DataTransferItemChromium::getAsString):
933         * platform/chromium/DataTransferItemChromium.h: Added.
934         * platform/chromium/DataTransferItemsChromium.cpp: Added.
935         (WebCore::DataTransferItemsChromium::create):
936         (WebCore::DataTransferItemsChromium::DataTransferItemsChromium):
937         (WebCore::DataTransferItemsChromium::length):
938         (WebCore::DataTransferItemsChromium::item):
939         (WebCore::DataTransferItemsChromium::deleteItem):
940         (WebCore::DataTransferItemsChromium::clear):
941         (WebCore::DataTransferItemsChromium::add):
942         * platform/chromium/DataTransferItemsChromium.h: Added.
943
944 2011-03-07  Ryosuke Niwa  <rniwa@webkit.org>
945
946         Reviewed by Darin Adler.
947
948         selectionHasStyle and selectionStartHasStyle should use EditingStyle
949         https://bugs.webkit.org/show_bug.cgi?id=55902
950
951         Deployed EditingStyle in selectionHasStyle and selectionStartHasStyle.
952         This allowed us to move triStateOfStyle from Editor.cpp to EditingStyle.cpp.
953
954         Also changed the argument lists of selectionHasStyle and selectionStartHasStyle
955         to take a property id and a value instead of a CSSMutableStyleDeclaration to cleanup
956         call sites of these two functions.
957
958         * WebCore.exp.in: Updated the signature of selectionHasStyle. No longer exports
959         selectionStartHasStyle because it's not called anywhere outside of WebCore.
960         * WebCore.order: Ditto.
961         * editing/EditingStyle.cpp:
962         (WebCore::EditingStyle::EditingStyle): Added a new constructor that takes a property id
963         and a property value.
964         (WebCore::EditingStyle::triStateOfStyle): Moved from Editor.cpp.
965         * editing/EditingStyle.h:
966         (WebCore::EditingStyle::create): Added.
967         * editing/Editor.cpp:
968         (WebCore::Editor::selectionStartHasStyle): Takes a property id and a value instead of
969         a CSSStyleDeclaration.
970         (WebCore::Editor::selectionHasStyle): Ditto.
971         * editing/Editor.h: Updated the signatures of selectionStartHasStyle and selectionHasStyle.
972         * editing/EditorCommand.cpp:
973         (WebCore::executeToggleStyle): Calls selectionStartHasStyle and selectionHasStyle.
974         (WebCore::stateStyle): Ditto.
975         * page/ContextMenuController.cpp:
976         (WebCore::ContextMenuController::checkOrEnableIfNeeded): Ditto.
977
978 2011-03-07  Alexey Proskuryakov  <ap@apple.com>
979
980         Reviewed by Darin Adler.
981
982         REGRESSION (HTML5 tree builder): Text selection in a large text document is extremely slow
983         https://bugs.webkit.org/show_bug.cgi?id=55898
984
985         <rdar://problem/9095839> REGRESSION: Mail hangs with a certain large mail message when
986         linkifying e-mail addresses in in -[DOMCharacterData setData:]
987
988         Changes render tree of fast/text/large-text-composed-char.html, but not image results.
989
990         * dom/CharacterData.cpp: (WebCore::CharacterData::parserAppendData):
991         Changed parserAppendData() to accept a maximum length, and moved code from Text::createWithLengthLimit().
992
993         * dom/CharacterData.h: Moved a constant for maximum length from Text.h.
994
995         * dom/Text.cpp: (WebCore::Text::createWithLengthLimit):
996         * dom/Text.h:
997         This function was unused in ToT. Moved code around to share with CharacterData.
998
999         * html/parser/HTMLConstructionSite.cpp: (WebCore::HTMLConstructionSite::insertTextNode):
1000         Chnaged to split large text nodes while parsing again.
1001
1002 2011-03-07  Alice Boxhall  <aboxhall@chromium.org>
1003
1004         Reviewed by Adam Barth.
1005
1006         Fix platform/image-encoders/JPEGImageEncoder.cpp empty_output_buffer() behaviour
1007         https://bugs.webkit.org/show_bug.cgi?id=54522
1008
1009         Fix jpegEmptyOutputBuffer() by ignoring free_in_buffer value as required.
1010
1011         No new tests, as this code is not yet used in WebKit. Once this code is used to implement canvas.toDataUrl(), the canvas tests will exercise it.
1012
1013         * platform/image-encoders/JPEGImageEncoder.cpp:
1014         (WebCore::jpegEmptyOutputBuffer):
1015
1016 2011-03-07  Sergey Glazunov  <serg.glazunov@gmail.com>
1017
1018         Reviewed by Eric Seidel.
1019
1020         Add the missing insertedIntoDocument() call in SVGVKernElement and SVGHKernElement
1021         https://bugs.webkit.org/show_bug.cgi?id=55896
1022
1023         Test: svg/dom/vkern-element-crash.html
1024
1025         * svg/SVGHKernElement.cpp:
1026         (WebCore::SVGHKernElement::insertedIntoDocument):
1027         * svg/SVGVKernElement.cpp:
1028         (WebCore::SVGVKernElement::insertedIntoDocument):
1029
1030 2011-03-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1031
1032         Unreviewed, rolling out r80514.
1033         http://trac.webkit.org/changeset/80514
1034         https://bugs.webkit.org/show_bug.cgi?id=55915
1035
1036         Caused assertion failures (Requested by ukai on #webkit).
1037
1038         * platform/graphics/skia/GraphicsContextSkia.cpp:
1039         (WebCore::GraphicsContext::setPlatformShadow):
1040         * platform/graphics/skia/ImageSkia.cpp:
1041         (WebCore::paintSkBitmap):
1042
1043 2011-03-07  Cosmin Truta  <ctruta@chromium.org>
1044
1045         Reviewed by Adam Barth.
1046
1047         SVG <image> referenced by <use> is displayed incorrectly
1048         https://bugs.webkit.org/show_bug.cgi?id=55750
1049
1050         The result of sourceURI must use the URL of the enclosing document as base.
1051         Otherwise, the base may sometimes be empty, and, as a consequence,
1052         the intermediate KURL object may be invalid.
1053
1054         Test: svg/custom/use-image-in-g.svg
1055
1056         * svg/SVGImageLoader.cpp:
1057         (WebCore::SVGImageLoader::sourceURI):
1058
1059 2011-03-07  Helder Correia  <helder@sencha.com>
1060
1061         Reviewed by Simon Fraser.
1062
1063         Shadow is not shown when using strokeRect with a gradient strokeStyle
1064         https://bugs.webkit.org/show_bug.cgi?id=52509
1065
1066         This happens in CG and is related to bug 51869, this time to be fixed
1067         in GraphicsContext::strokeRect(const FloatRect& r, float lineWidth).
1068         We need to draw the gradient clipped to the stroke on a CGLayer first,
1069         and then draw the layer on the GraphicsContext.
1070
1071         Tests: fast/canvas/canvas-strokeRect-gradient-shadow.html
1072                svg/css/rect-gradient-stroke-shadow.svg
1073
1074         * platform/graphics/cg/GraphicsContextCG.cpp:
1075         (WebCore::GraphicsContext::strokeRect):
1076
1077 2011-03-07  Justin Novosad  <junov@chromium.org>
1078
1079         Reviewed by Kenneth Russell.
1080
1081         Fix for blurs behind bitmap images in Chromium, and boosting
1082         shadow blur quality 
1083         Bug URLs:
1084                 https://bugs.webkit.org/show_bug.cgi?id=55410
1085                 https://bugs.webkit.org/show_bug.cgi?id=55506
1086
1087         No new tests. Covered by existing layout tests. 
1088
1089         * platform/graphics/skia/GraphicsContextSkia.cpp:
1090         (WebCore::GraphicsContext::setPlatformShadow): Turn on high quality shadows and fix shadow color
1091         * platform/graphics/skia/ImageSkia.cpp:
1092         (WebCore::paintSkBitmap): Propagate the draw looper from context to painter
1093
1094 2011-03-07  Andreas Kling  <kling@webkit.org>
1095
1096         Unreviewed Mac build fix after r80508.
1097
1098         * WebCore.exp.in:
1099
1100 2011-03-07  Enrica Casucci  <enrica@apple.com>
1101
1102         Unreviewed build fix.
1103
1104         Rolling back  http://trac.webkit.org/changeset/80497 due to the
1105         32-bit build failures.
1106
1107         * WebCore.xcodeproj/project.pbxproj:
1108         * platform/mac/HTMLConverter.h: Removed.
1109         * platform/mac/HTMLConverter.mm: Removed.
1110         * platform/mac/PasteboardMac.mm:
1111         (WebCore::Pasteboard::writeSelection):
1112
1113 2011-03-07  Andreas Kling  <kling@webkit.org>
1114
1115         Reviewed by Benjamin Poulain.
1116
1117         FrameView::setBaseBackgroundColor: Pass Color argument as const-reference.
1118
1119         * page/FrameView.cpp:
1120         (WebCore::FrameView::setBaseBackgroundColor):
1121         * page/FrameView.h:
1122
1123 2011-03-07  Adam Barth  <abarth@webkit.org>
1124
1125         Reviewed by Dimitri Glazkov.
1126
1127         REGRESSION(r78147): Crash on http://gnarf.net/jquery/test/
1128         https://bugs.webkit.org/show_bug.cgi?id=55894
1129
1130         The m_frame can disappear out from under us, and there's no point in
1131         checking whether the load is complete in a non-existant frame.
1132
1133         Test: fast/parser/document-write-into-initial-document.html
1134
1135         * dom/Document.cpp:
1136         (WebCore::Document::explicitClose):
1137
1138 2011-03-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1139
1140         Unreviewed, rolling out r80500.
1141         http://trac.webkit.org/changeset/80500
1142         https://bugs.webkit.org/show_bug.cgi?id=55908
1143
1144         Caused mysterious GYP error (Requested by abarth on #webkit).
1145
1146         * WebCore.gyp/WebCore.gyp:
1147         * WebCore.gypi:
1148
1149 2011-03-07  Adam Barth  <abarth@webkit.org>
1150
1151         Fix Chromium Mac build.  This header should only be included when the
1152         feature is enabled.
1153
1154         * platform/cf/RunLoopTimerCF.cpp:
1155
1156 2011-03-07  Adam Barth  <abarth@webkit.org>
1157
1158         Reviewed by Dimitri Glazkov.
1159
1160         Add WML files to WebCore.gypi
1161         https://bugs.webkit.org/show_bug.cgi?id=55905
1162
1163         * WebCore.gyp/WebCore.gyp:
1164         * WebCore.gypi:
1165
1166 2011-03-07  Adrienne Walker  <enne@google.com>
1167
1168         Reviewed by James Robinson.
1169
1170         [chromium] Add missing include to #define Skia parameter
1171         https://bugs.webkit.org/show_bug.cgi?id=55885
1172
1173         * platform/graphics/chromium/ShaderChromium.h:
1174
1175 2011-03-07  Chris Fleizach  <cfleizach@apple.com>
1176
1177         Reviewed by Beth Dakin.
1178
1179         AX: WK1 needs to use ScrollView attachment for AXScrollArea, WK2 does not
1180         https://bugs.webkit.org/show_bug.cgi?id=55706
1181
1182         * WebCore.exp.in:
1183         * accessibility/AXObjectCache.cpp:
1184         (WebCore::AXObjectCache::rootObjectForFrame):
1185         * accessibility/AXObjectCache.h:
1186         * accessibility/AccessibilityScrollView.cpp:
1187         (WebCore::AccessibilityScrollView::isAttachment):
1188         (WebCore::AccessibilityScrollView::widgetForAttachmentView):
1189         * accessibility/AccessibilityScrollView.h:
1190         (WebCore::AccessibilityScrollView::firstChild):
1191         * accessibility/mac/AccessibilityObjectWrapper.mm:
1192         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
1193
1194 2011-03-07  Enrica Casucci  <enrica@apple.com>
1195
1196         Reviewed by Darin Adler.
1197         
1198         REGRESSION: Copied content loses formatting on paste to external apps.
1199         https://bugs.webkit.org/show_bug.cgi?id=47615
1200         <rdar://problem/9001214>
1201
1202         This is a resubmission of a patch that was landed a while ago then rolled
1203         back because of a build failure on SnowLeopard and Leopard.
1204         
1205         This patch adds a way for WebKit2 to create NSAttributedStrings from
1206         a DOM range without using the AppKit api initWithDOMRange that internally
1207         needs to access the WebView. The NSAttributedString is needed to create
1208         RTF formats in the pasteboard.
1209         This is to be considered a first step, since in the future we want to have
1210         an implementation based on the TextIterator.
1211
1212         * WebCore.xcodeproj/project.pbxproj: Added new file.
1213         * platform/mac/HTMLConverter.h: Added.
1214         * platform/mac/HTMLConverter.mm: Added.
1215         * platform/mac/PasteboardMac.mm:
1216         (WebCore::Pasteboard::writeSelection): We now use WebHTMLConverter
1217         class for WebKit2 to create the NSAttributedString from the DOM range.
1218
1219 2011-03-07  Adam Barth  <abarth@webkit.org>
1220
1221         Reviewed by Dimitri Glazkov.
1222
1223         Add some missing platform files to WebCore.gypi
1224         https://bugs.webkit.org/show_bug.cgi?id=55897
1225
1226         There are a bunch more, but this is a start.
1227
1228         * WebCore.gyp/WebCore.gyp:
1229         * WebCore.gypi:
1230
1231 2011-03-07  Steve Block  <steveblock@google.com>
1232
1233         Reviewed by Jeremy Orlow.
1234
1235         Rename JNIBridgeV8.cpp/h to JavaFieldV8.cpp/h
1236         https://bugs.webkit.org/show_bug.cgi?id=55879
1237
1238         No new tests, refactoring only.
1239
1240         * Android.v8bindings.mk:
1241         * WebCore.gypi:
1242         * bridge/jni/v8/JavaClassV8.cpp:
1243         * bridge/jni/v8/JavaClassV8.h:
1244         * bridge/jni/v8/JavaFieldV8.cpp: Renamed from Source/WebCore/bridge/jni/v8/JNIBridgeV8.cpp.
1245         (JavaField::JavaField):
1246         * bridge/jni/v8/JavaFieldV8.h: Renamed from Source/WebCore/bridge/jni/v8/JNIBridgeV8.h.
1247         (JSC::Bindings::JavaField::name):
1248         (JSC::Bindings::JavaField::type):
1249         (JSC::Bindings::JavaField::getJNIType):
1250         * bridge/jni/v8/JavaInstanceV8.cpp:
1251         * bridge/jni/v8/JavaNPObjectV8.cpp:
1252
1253 2011-03-07  Daniel Cheng  <dcheng@chromium.org>
1254
1255         Reviewed by Tony Chang.
1256
1257         Add plumbing for paste support to ChromiumDataObject::types()
1258         https://bugs.webkit.org/show_bug.cgi?id=55792
1259
1260         This is a preliminary patch to support event.dataTransfer.items. This
1261         adds plumbing to support retrieving the types in a paste event. It also
1262         moves the check for files in a drag/paste up to ClipboardChromium, since
1263         internal code needs to be able to differentiate between actual files in
1264         a drag and someone that simply decided to use "Files" as a custom type
1265         string.
1266
1267         Test: editing/pasteboard/onpaste-text-html-types.html
1268
1269         * platform/chromium/ChromiumDataObject.cpp:
1270         (WebCore::ChromiumDataObject::types):
1271         (WebCore::ChromiumDataObject::containsFilenames):
1272         * platform/chromium/ChromiumDataObject.h:
1273         * platform/chromium/ClipboardChromium.cpp:
1274         (WebCore::ClipboardChromium::types):
1275         * platform/chromium/ClipboardMimeTypes.cpp:
1276         * platform/chromium/ClipboardMimeTypes.h:
1277
1278 2011-03-07  Takayoshi Kochi  <kochi@chromium.org>
1279
1280         Reviewed by Tony Chang.
1281
1282         [chromium] Use preferred locale information when choosing fallback
1283         font using fontconfig on Linux platform.
1284         http://bugs.webkit.org/show_bug.cgi?id=55453
1285
1286         No new tests, as it depends on ICU and locale setting, so it will be
1287         covered by Chromium side.
1288
1289         * platform/chromium/PlatformBridge.h:
1290         * platform/graphics/chromium/FontCacheLinux.cpp:
1291
1292 2011-03-07  Adam Barth  <abarth@webkit.org>
1293
1294         Reviewed by Eric Seidel.
1295
1296         Add gobject, cpp, and objc bindings to WebCore.gypi
1297         https://bugs.webkit.org/show_bug.cgi?id=55892
1298
1299         These are also excluded from the Chromium build but needed for various
1300         other ports.
1301
1302         * WebCore.gyp/WebCore.gyp:
1303         * WebCore.gypi:
1304
1305 2011-03-07  Sergey Glazunov  <serg.glazunov@gmail.com>
1306
1307         Reviewed by Dimitri Glazkov.
1308
1309         Node::checkAddChild and Node::checkReplaceChild shouldn't change the owner document of a node
1310         https://bugs.webkit.org/show_bug.cgi?id=55803
1311
1312         Test: fast/dom/dom-method-document-change.html
1313
1314         * dom/ContainerNode.cpp:
1315         (WebCore::ContainerNode::insertBefore):
1316         (WebCore::ContainerNode::replaceChild):
1317         (WebCore::ContainerNode::appendChild):
1318         * dom/Node.cpp:
1319         (WebCore::Node::checkReplaceChild):
1320         (WebCore::Node::checkAddChild):
1321         * dom/Node.h:
1322
1323 2011-03-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1324
1325         Unreviewed, rolling out r80484.
1326         http://trac.webkit.org/changeset/80484
1327         https://bugs.webkit.org/show_bug.cgi?id=55891
1328
1329         requires Chromium DEPS roll (Requested by dcheng on #webkit).
1330
1331         * platform/chromium/ChromiumDataObject.cpp:
1332         (WebCore::ChromiumDataObject::types):
1333         * platform/chromium/ChromiumDataObject.h:
1334         (WebCore::ChromiumDataObject::containsFilenames):
1335         * platform/chromium/ClipboardChromium.cpp:
1336         (WebCore::ClipboardChromium::types):
1337         * platform/chromium/ClipboardMimeTypes.cpp:
1338         * platform/chromium/ClipboardMimeTypes.h:
1339
1340 2011-03-07  Adam Barth  <abarth@webkit.org>
1341
1342         Reviewed by Dimitri Glazkov.
1343
1344         Add missing bindings/js files to WebCore.gypi
1345         https://bugs.webkit.org/show_bug.cgi?id=55888
1346
1347         These files are excluded from the Chromium build but needed for the Mac
1348         build.
1349
1350         * WebCore.gypi:
1351
1352 2011-03-07  Daniel Cheng  <dcheng@chromium.org>
1353
1354         Reviewed by Tony Chang.
1355
1356         Add plumbing for paste support to ChromiumDataObject::types()
1357         https://bugs.webkit.org/show_bug.cgi?id=55792
1358
1359         This is a preliminary patch to support event.dataTransfer.items. This
1360         adds plumbing to support retrieving the types in a paste event. It also
1361         moves the check for files in a drag/paste up to ClipboardChromium, since
1362         internal code needs to be able to differentiate between actual files in
1363         a drag and someone that simply decided to use "Files" as a custom type
1364         string.
1365
1366         Test: editing/pasteboard/onpaste-text-html-types.html
1367
1368         * platform/chromium/ChromiumDataObject.cpp:
1369         (WebCore::ChromiumDataObject::types):
1370         (WebCore::ChromiumDataObject::containsFilenames):
1371         * platform/chromium/ChromiumDataObject.h:
1372         * platform/chromium/ClipboardChromium.cpp:
1373         (WebCore::ClipboardChromium::types):
1374         * platform/chromium/ClipboardMimeTypes.cpp:
1375         * platform/chromium/ClipboardMimeTypes.h:
1376
1377 2011-03-07  Joseph Pecoraro  <joepeck@webkit.org>
1378
1379         Reviewed by Kenneth Rohde Christiansen.
1380
1381         Viewport Warning/Error Messages Are Now Inaccurate
1382         https://bugs.webkit.org/show_bug.cgi?id=53707
1383
1384         Correct and improve the error messages for viewport parsing.
1385
1386         Tests: fast/viewport/viewport-warnings-1.html
1387                fast/viewport/viewport-warnings-2.html
1388                fast/viewport/viewport-warnings-3.html
1389                fast/viewport/viewport-warnings-4.html
1390                fast/viewport/viewport-warnings-5.html
1391                fast/viewport/viewport-warnings-6.html
1392
1393         * dom/ViewportArguments.cpp:
1394         (WebCore::numericPrefix):
1395         (WebCore::findSizeValue): remove incorrect device-width / height tips.
1396         (WebCore::setViewportFeature): report a warning for an unrecognized key.
1397         (WebCore::viewportErrorMessageTemplate): added template for unrecognized key.
1398         (WebCore::viewportErrorMessageLevel): classify an unrecognized key is an error.
1399         * dom/ViewportArguments.h: removed no longer used warnings.
1400
1401 2011-03-07  James Robinson  <jamesr@chromium.org>
1402
1403         Reviewed by Kenneth Russell.
1404
1405         [chromium] Separate the update and draw portions of LayerRendererChromium's drawLayers function
1406         https://bugs.webkit.org/show_bug.cgi?id=54047
1407
1408         This splits up LayerRendererChromium::drawLayers() into two phases,
1409         one that updates layers and one that actually draws them.  Most of the
1410         patch is moving the bodies of drawLayers() and updateLayersRecursive()
1411         into smaller helper functions.
1412
1413         The main entry point is renamed updateAndDrawLayers(), but otherwise
1414         has the same signature as drawLayers() did.  Internally it does the
1415         following:
1416
1417         1.) Updates the root layer's contents
1418         2.) Updates the root layer's scrollbars
1419         3.) Updates the RenderSurface tree and the contents of all child
1420         layers
1421         4.) Draws the root layer and root layer scrollbars
1422         5.) Draws all child layers using the previously updated
1423         CCLayerImpl/RenderSurface data.
1424
1425         A few things still need to be done after this patch to complete the separation
1426         of the update and draw step, but they can happen in later patches:
1427         *) The root layer and root layer scrollbars contents should be
1428         uploaded to textures at draw time, not update time.
1429         *) The RenderSurface tree should be updated at draw time, not update
1430         time.
1431
1432         Covered by the compositing/ tests.
1433
1434         * platform/graphics/chromium/LayerRendererChromium.cpp:
1435         (WebCore::LayerRendererChromium::LayerRendererChromium):
1436         (WebCore::LayerRendererChromium::updateRootLayerContents):
1437         (WebCore::LayerRendererChromium::updateRootLayerScrollbars):
1438         (WebCore::LayerRendererChromium::drawRootLayer):
1439         (WebCore::LayerRendererChromium::updateAndDrawLayers):
1440         (WebCore::LayerRendererChromium::updateLayers):
1441         (WebCore::LayerRendererChromium::drawLayers):
1442         (WebCore::LayerRendererChromium::getFramebufferPixels):
1443         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
1444         (WebCore::LayerRendererChromium::updateContentsRecursive):
1445         (WebCore::LayerRendererChromium::drawLayer):
1446         * platform/graphics/chromium/LayerRendererChromium.h:
1447         (WebCore::LayerRendererChromium::visibleRectSize):
1448         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
1449         (WebCore::RenderSurfaceChromium::drawSurface):
1450         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1451         * platform/graphics/chromium/cc/CCLayerImpl.h:
1452
1453 2011-03-07  Adam Barth  <abarth@webkit.org>
1454
1455         Reviewed by Eric Seidel.
1456
1457         Sort WebCore.gypi
1458         https://bugs.webkit.org/show_bug.cgi?id=55887
1459
1460         These files should be in order.  This is preparation for adding in the
1461         missing files.
1462
1463         * WebCore.gypi:
1464
1465 2011-03-07  Csaba Osztrogon√°c  <ossy@webkit.org>
1466
1467         Unreviewed buildfix after r80478.
1468
1469         * dom/Document.cpp: Add suggested parentheses to make GCC happy.
1470         (WebCore::Document::didReceiveTask):
1471
1472 2011-03-07  Yong Li  <yoli@rim.com>
1473
1474         Reviewed by Darin Adler.
1475
1476         Defer ScriptExecutionContext::Task's in Document when page loading is deferred.
1477         Schedule them with timer when page loading is resumed. The tasks will be performed
1478         in the original order. This fixes the problem that database callbacks could be missed
1479         when page loading was deferred.
1480         https://bugs.webkit.org/show_bug.cgi?id=49401
1481
1482         Manual test added: manual-tests/database-callback-deferred.html.
1483
1484         * dom/Document.cpp:
1485         (WebCore::Document::Document):
1486         (WebCore::Document::~Document):
1487         (WebCore::Document::didReceiveTask):
1488         (WebCore::Document::postTask):
1489         (WebCore::Document::pendingTasksTimerFired):
1490         (WebCore::Document::willDeferLoading):
1491         (WebCore::Document::didResumeLoading):
1492         * dom/Document.h:
1493         * manual-tests/database-callback-deferred.html: Added.
1494         * page/PageGroupLoadDeferrer.cpp:
1495         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
1496         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
1497
1498 2011-03-07  Antti Koivisto  <antti@apple.com>
1499
1500         Reviewed by Sam Weinig.
1501
1502         Use HashMaps for caching primitive values
1503         https://bugs.webkit.org/show_bug.cgi?id=55873
1504         
1505         Most documents use only small subset of cacheable primitive values. By replacing
1506         fixed size cache arrays with HashMaps we can reduce the constant memory usage while also
1507         expanding the range of cacheable values.
1508
1509         * css/CSSPrimitiveValueCache.cpp:
1510         (WebCore::CSSPrimitiveValueCache::CSSPrimitiveValueCache):
1511         (WebCore::CSSPrimitiveValueCache::createIdentifierValue):
1512         (WebCore::CSSPrimitiveValueCache::createColorValue):
1513         (WebCore::CSSPrimitiveValueCache::createValue):
1514         * css/CSSPrimitiveValueCache.h:
1515
1516 2011-03-07  Steve Block  <steveblock@google.com>
1517
1518         Reviewed by Jeremy Orlow.
1519
1520         Split JNIBridgeJSC.cpp/h into JavaArrayJSC.cpp/h and JavaFieldJSC.cpp/h
1521         https://bugs.webkit.org/show_bug.cgi?id=55881
1522
1523         No new tests, refactoring only.
1524
1525         * Android.jscbindings.mk:
1526         * GNUmakefile.am:
1527         * WebCore.xcodeproj/project.pbxproj:
1528         * bridge/jni/jsc/JNIBridgeJSC.cpp: Removed.
1529         * bridge/jni/jsc/JNIBridgeJSC.h: Removed.
1530         * bridge/jni/jsc/JNIUtilityPrivate.cpp:
1531         * bridge/jni/jsc/JavaClassJSC.cpp:
1532         * bridge/jni/jsc/JavaClassJSC.h:
1533         * bridge/jni/jsc/JavaInstanceJSC.cpp:
1534
1535 2011-03-07  Sam Weinig  <sam@webkit.org>
1536
1537         Reviewed by Anders Carlsson.
1538
1539         Replace WebKit2's decidePolicyForMIMEType with decidePolicyForResponse
1540         https://bugs.webkit.org/show_bug.cgi?id=55827
1541
1542         * loader/EmptyClients.h:
1543         (WebCore::EmptyFrameLoaderClient::dispatchDecidePolicyForResponse):
1544         * loader/FrameLoaderClient.h:
1545         * loader/MainResourceLoader.cpp:
1546         (WebCore::MainResourceLoader::didReceiveResponse):
1547         * loader/PolicyChecker.cpp:
1548         (WebCore::PolicyChecker::checkContentPolicy):
1549         * loader/PolicyChecker.h:
1550         Rename FrameLoaderClient::dispatchDecidePolicyForMIMEType to dispatchDecidePolicyForResponse
1551         and pass the entire response, instead of just the MIMEType.
1552
1553 2011-03-07  Eric Carlson  <eric.carlson@apple.com>
1554
1555         Reviewed by Darin Adler.
1556
1557         Add API to enumerate/delete files downloaded for <audio> and <video>
1558         https://bugs.webkit.org/show_bug.cgi?id=55267
1559         <rdar://problem/9049280>
1560
1561         No new tests, this is just more plumbing.
1562
1563         * html/HTMLMediaElement.cpp:
1564         (WebCore::HTMLMediaElement::getSitesInMediaCache): Make static, call MediaPlayer static method.
1565         (WebCore::HTMLMediaElement::clearMediaCache): Ditto.
1566         (WebCore::HTMLMediaElement::clearMediaCacheForSite): Ditto.
1567         * html/HTMLMediaElement.h:
1568
1569         * platform/graphics/MediaPlayer.cpp:
1570         (WebCore::MediaPlayerFactory::MediaPlayerFactory): Add new media engine factory functions.
1571         (WebCore::addMediaEngine): Ditto.
1572         (WebCore::MediaPlayer::getSitesInMediaCache): Call static method on all installed media engines.
1573         (WebCore::MediaPlayer::clearMediaCache): Ditto.
1574         (WebCore::MediaPlayer::clearMediaCacheForSite): Ditto.
1575         * platform/graphics/MediaPlayer.h:
1576
1577         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
1578         (WebCore::MediaPlayerPrivateGStreamer::registerMediaEngine): Update for MediaEngineRegistrar change.
1579
1580         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1581         (WebCore::MediaPlayerPrivateQTKit::registerMediaEngine): Ditto.
1582
1583         * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
1584         (WebCore::MediaPlayerPrivatePhonon::registerMediaEngine): Ditto.
1585
1586         * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
1587         (WebCore::MediaPlayerPrivateQt::registerMediaEngine): Ditto.
1588
1589         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
1590         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::registerMediaEngine): Ditto.
1591
1592         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
1593         (WebCore::MediaPlayerPrivate::registerMediaEngine): Ditto.
1594
1595 2011-03-07  Steve Block  <steveblock@google.com>
1596
1597         Reviewed by Jeremy Orlow.
1598
1599         Split JNIBridge.cpp/h into JavaString.h and JavaMethod.cpp/h
1600         https://bugs.webkit.org/show_bug.cgi?id=55774
1601
1602         No new tests, refactoring only.
1603
1604         * Android.jscbindings.mk:
1605         * Android.v8bindings.mk:
1606         * GNUmakefile.am:
1607         * WebCore.gypi:
1608         * WebCore.xcodeproj/project.pbxproj:
1609         * bridge/jni/JavaMethod.cpp:
1610         (JavaMethod::JavaMethod):
1611         (JavaMethod::~JavaMethod):
1612         (appendClassName):
1613         (JavaMethod::signature):
1614         (JavaMethod::JNIReturnType):
1615         (JavaMethod::methodID):
1616         * bridge/jni/JavaMethod.h:
1617         (JSC::Bindings::JavaMethod::name):
1618         (JSC::Bindings::JavaMethod::returnType):
1619         (JSC::Bindings::JavaMethod::parameterAt):
1620         (JSC::Bindings::JavaMethod::numParameters):
1621         (JSC::Bindings::JavaMethod::isStatic):
1622         * bridge/jni/JavaString.h:
1623         (JSC::Bindings::JavaString::JavaString):
1624         (JSC::Bindings::JavaString::utf8):
1625         (JSC::Bindings::JavaString::length):
1626         (JSC::Bindings::JavaString::impl):
1627         * bridge/jni/jni_jsobject.mm:
1628         * bridge/jni/jsc/JNIBridgeJSC.h:
1629         * bridge/jni/v8/JNIBridgeV8.h:
1630         * bridge/jni/v8/JavaClassV8.cpp:
1631         * bridge/jni/v8/JavaClassV8.h:
1632         * bridge/jni/v8/JavaInstanceV8.cpp:
1633
1634 2011-03-07  Jeremy Orlow  <jorlow@chromium.org>
1635
1636         Reviewed by Steve Block.
1637
1638         Add source to IDBCursor, objectStore to IDBIndex, and remove storeName
1639         https://bugs.webkit.org/show_bug.cgi?id=55812
1640
1641         This brings us in line with what's in the spec:
1642         http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html
1643
1644         * storage/IDBCursor.cpp:
1645         (WebCore::IDBCursor::create):
1646         (WebCore::IDBCursor::IDBCursor):
1647         (WebCore::IDBCursor::source):
1648         * storage/IDBCursor.h:
1649         * storage/IDBCursor.idl:
1650         * storage/IDBCursorWithValue.cpp:
1651         (WebCore::IDBCursorWithValue::create):
1652         (WebCore::IDBCursorWithValue::IDBCursorWithValue):
1653         * storage/IDBCursorWithValue.h:
1654         * storage/IDBIndex.cpp:
1655         (WebCore::IDBIndex::IDBIndex):
1656         * storage/IDBIndex.h:
1657         (WebCore::IDBIndex::create):
1658         (WebCore::IDBIndex::objectStore):
1659         * storage/IDBIndex.idl:
1660         * storage/IDBObjectStore.cpp:
1661         (WebCore::IDBObjectStore::createIndex):
1662         (WebCore::IDBObjectStore::index):
1663         * storage/IDBRequest.cpp:
1664         (WebCore::IDBRequest::onSuccess):
1665
1666 2011-03-07  Chris Fleizach  <cfleizach@apple.com>
1667
1668         Reviewed by Beth Dakin.
1669
1670         AX: kAXCellForColumnAndRowParameterizedAttribute doesn't work ARIA grids with colspans
1671         https://bugs.webkit.org/show_bug.cgi?id=55735
1672
1673         The ARIA grid implementation needed to verify the row/column range of a cell instead of 
1674         assuming a 1-1 mapping between children and row/column.
1675
1676         Test: platform/mac/accessibility/aria-table-with-colspan-cells.html
1677
1678         * accessibility/AccessibilityARIAGrid.cpp:
1679         (WebCore::AccessibilityARIAGrid::cellForColumnAndRow):
1680
1681 2011-03-07  Andrei Popescu  <andreip@google.com>
1682
1683         Reviewed by Steve Block.
1684
1685         IDBRequest::onSuccess(IDBObjectStore*) should be removed as it is unused.
1686         IDBObjectStore objects used to be created asynchronously, so we needed
1687         this method to be invoked, with the new object store as the parameter,
1688         whenever the creation succeeded. The spec has changed so that IDBObjectStore
1689         objects are created synchronously, so this method is no longer needed.
1690         https://bugs.webkit.org/show_bug.cgi?id=55777
1691
1692         No new tests, just refactoring.
1693
1694         * storage/IDBCallbacks.h:
1695         * storage/IDBRequest.cpp:
1696         * storage/IDBRequest.h:
1697
1698 2011-03-04  Steve Block  <steveblock@google.com>
1699
1700         Reviewed by Jeremy Orlow.
1701
1702         JavaParameter should be removed
1703         https://bugs.webkit.org/show_bug.cgi?id=55772
1704
1705         No new tests, refactoring only.
1706
1707         * bridge/jni/JNIBridge.cpp:
1708         (JavaMethod::JavaMethod):
1709         (JavaMethod::~JavaMethod):
1710         (JavaMethod::signature):
1711         * bridge/jni/JNIBridge.h:
1712         (JSC::Bindings::JavaMethod::parameterAt):
1713         (JSC::Bindings::JavaMethod::numParameters):
1714         * bridge/jni/JNIUtility.h:
1715         * bridge/jni/jsc/JavaInstanceJSC.cpp:
1716         (JavaInstance::invokeMethod):
1717         * bridge/jni/v8/JNIUtilityPrivate.cpp:
1718         (JSC::Bindings::convertNPVariantToJValue):
1719         * bridge/jni/v8/JNIUtilityPrivate.h:
1720         * bridge/jni/v8/JavaInstanceV8.cpp:
1721         (JavaInstance::invokeMethod):
1722
1723 2011-03-07  Antti Koivisto  <antti@apple.com>
1724
1725         Reviewed by Oliver Hunt.
1726
1727         REGRESSION (r79574): fast/dom/global-constructors.html failing on Windows 7 Release (Tests) bots 
1728         https://bugs.webkit.org/show_bug.cgi?id=55166
1729         <rdar://problem/9050430>
1730         
1731         Make CSS primitive value cache per-document.
1732         
1733         Test: http/tests/security/cross-origin-css-primitive.html
1734
1735         * Android.mk:
1736         * CMakeLists.txt:
1737         * GNUmakefile.am:
1738         * WebCore.gypi:
1739         * WebCore.pro:
1740         * WebCore.vcproj/WebCore.vcproj:
1741         * WebCore.xcodeproj/project.pbxproj:
1742         * css/CSSComputedStyleDeclaration.cpp:
1743         (WebCore::valueForNinePieceImage):
1744         (WebCore::zoomAdjustedPixelValue):
1745         (WebCore::zoomAdjustedNumberValue):
1746         (WebCore::zoomAdjustedPixelValueForLength):
1747         (WebCore::valueForReflection):
1748         (WebCore::getPositionOffsetValue):
1749         (WebCore::CSSComputedStyleDeclaration::currentColorOrValidColor):
1750         (WebCore::getBorderRadiusCornerValue):
1751         (WebCore::computedTransform):
1752         (WebCore::getDelayValue):
1753         (WebCore::getDurationValue):
1754         (WebCore::CSSComputedStyleDeclaration::getFontSizeCSSValuePreferringKeyword):
1755         (WebCore::CSSComputedStyleDeclaration::valueForShadow):
1756         (WebCore::valueForFamily):
1757         (WebCore::renderTextDecorationFlagsToCSSValue):
1758         (WebCore::fillRepeatToCSSValue):
1759         (WebCore::fillSizeToCSSValue):
1760         (WebCore::contentToCSSValue):
1761         (WebCore::counterToCSSValue):
1762         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1763         * css/CSSParser.cpp:
1764         (WebCore::CSSParser::parseSheet):
1765         (WebCore::CSSParser::parseRule):
1766         (WebCore::CSSParser::parseKeyframeRule):
1767         (WebCore::CSSParser::parseValue):
1768         (WebCore::CSSParser::parseColor):
1769         (WebCore::CSSParser::parseSelector):
1770         (WebCore::CSSParser::parseDeclaration):
1771         (WebCore::CSSParser::setStyleSheet):
1772         (WebCore::CSSParser::parseWCSSInputProperty):
1773         (WebCore::parseBackgroundClip):
1774         (WebCore::CSSParser::parseFillShorthand):
1775         (WebCore::CSSParser::parsePage):
1776         (WebCore::CSSParser::parseSizeParameter):
1777         (WebCore::CSSParser::parseContent):
1778         (WebCore::CSSParser::parseAttr):
1779         (WebCore::CSSParser::parseBackgroundColor):
1780         (WebCore::CSSParser::parseFillPositionXY):
1781         (WebCore::CSSParser::parseFillPosition):
1782         (WebCore::CSSParser::parseFillRepeat):
1783         (WebCore::CSSParser::parseFillSize):
1784         (WebCore::CSSParser::parseFillProperty):
1785         (WebCore::CSSParser::parseAnimationDelay):
1786         (WebCore::CSSParser::parseAnimationDirection):
1787         (WebCore::CSSParser::parseAnimationDuration):
1788         (WebCore::CSSParser::parseAnimationFillMode):
1789         (WebCore::CSSParser::parseAnimationIterationCount):
1790         (WebCore::CSSParser::parseAnimationName):
1791         (WebCore::CSSParser::parseAnimationPlayState):
1792         (WebCore::CSSParser::parseAnimationProperty):
1793         (WebCore::CSSParser::parseTransformOriginShorthand):
1794         (WebCore::CSSParser::parseAnimationTimingFunction):
1795         (WebCore::CSSParser::parseDashboardRegions):
1796         (WebCore::CSSParser::parseCounterContent):
1797         (WebCore::CSSParser::parseShape):
1798         (WebCore::CSSParser::parseFont):
1799         (WebCore::CSSParser::parseFontFamily):
1800         (WebCore::CSSParser::parseFontStyle):
1801         (WebCore::CSSParser::parseFontVariant):
1802         (WebCore::CSSParser::parseFontWeight):
1803         (WebCore::ShadowParseContext::ShadowParseContext):
1804         (WebCore::ShadowParseContext::commitLength):
1805         (WebCore::ShadowParseContext::commitStyle):
1806         (WebCore::CSSParser::parseShadow):
1807         (WebCore::CSSParser::parseReflect):
1808         (WebCore::BorderImageParseContext::BorderImageParseContext):
1809         (WebCore::BorderImageParseContext::commitNumber):
1810         (WebCore::BorderImageParseContext::commitBorderImage):
1811         (WebCore::CSSParser::parseBorderImage):
1812         (WebCore::CSSParser::parseBorderRadius):
1813         (WebCore::CSSParser::parseCounter):
1814         (WebCore::parseDeprecatedGradientPoint):
1815         (WebCore::parseDeprecatedGradientColorStop):
1816         (WebCore::CSSParser::parseDeprecatedGradient):
1817         (WebCore::valueFromSideKeyword):
1818         (WebCore::parseGradientColorOrKeyword):
1819         (WebCore::CSSParser::parseLinearGradient):
1820         (WebCore::CSSParser::parseRadialGradient):
1821         (WebCore::CSSParser::parseGradientColorStops):
1822         (WebCore::CSSParser::parseTransform):
1823         (WebCore::CSSParser::parseTransformOrigin):
1824         (WebCore::CSSParser::parseTextEmphasisStyle):
1825         * css/CSSParser.h:
1826         (WebCore::CSSParser::primitiveValueCache):
1827         * css/CSSPrimitiveValue.cpp:
1828         * css/CSSPrimitiveValue.h:
1829         (WebCore::CSSPrimitiveValue::createIdentifier):
1830         (WebCore::CSSPrimitiveValue::createColor):
1831         (WebCore::CSSPrimitiveValue::create):
1832         * css/CSSPrimitiveValueCache.cpp: Added.
1833         (WebCore::CSSPrimitiveValueCache::CSSPrimitiveValueCache):
1834         (WebCore::CSSPrimitiveValueCache::~CSSPrimitiveValueCache):
1835         (WebCore::CSSPrimitiveValueCache::createIdentifierValue):
1836         (WebCore::CSSPrimitiveValueCache::createColorValue):
1837         (WebCore::CSSPrimitiveValueCache::createValue):
1838         * css/CSSPrimitiveValueCache.h: Added.
1839         (WebCore::CSSPrimitiveValueCache::create):
1840         (WebCore::CSSPrimitiveValueCache::createValue):
1841         * dom/Document.cpp:
1842         (WebCore::Document::cssPrimitiveValueCache):
1843         * dom/Document.h:
1844
1845 2011-03-06  Adam Barth  <abarth@webkit.org>
1846
1847         Reviewed by Eric Seidel.
1848
1849         Filter sources in WebCore GYP build for Mac
1850         https://bugs.webkit.org/show_bug.cgi?id=55857
1851
1852         This patch removes a large number of files that do not build as part of
1853         the Mac build.  I'm not fully sold on this method of
1854         including/excluding files, but it's the "gyp way" so we should probably
1855         try it first.
1856
1857         This patch also sets xcode_list_excluded_files to 0, which removes the
1858         excluded files from the Xcode project file, which is necessary in order
1859         to prevent the header map feature from including the wrong header file.
1860
1861         * gyp/WebCore.gyp:
1862
1863 2011-03-07  Ryuan Choi  <ryuan.choi@samsung.com>
1864
1865         Unreviewed EFL build fix.
1866
1867         [EFL] Build break on Debug build.
1868         https://bugs.webkit.org/show_bug.cgi?id=55858
1869
1870         * platform/efl/RenderThemeEfl.cpp:
1871         (WebCore::RenderThemeEfl::themePartCacheEntrySurfaceCreate):
1872
1873 2011-03-06  Adam Barth  <abarth@webkit.org>
1874
1875         Reviewed by Eric Seidel.
1876
1877         Add webcore_derived_source_files to WebCore.gypi
1878         https://bugs.webkit.org/show_bug.cgi?id=55856
1879
1880         This is the list of files generated by the Mac port.  It's possible
1881         other ports generate a different list of files.
1882
1883         * WebCore.gypi:
1884         * gyp/WebCore.gyp:
1885
1886 2011-03-06  Naoki Takano  <takano.naoki@gmail.com>
1887
1888         Reviewed by Kent Tamura.
1889
1890         Input type=number spin buttons remain invisible but functional after div changed from hidden to visible.
1891         https://bugs.webkit.org/show_bug.cgi?id=55839
1892         http://crbug.com/73866
1893         http://crbug.com/62527
1894
1895         We also need style change for m_innerSpinButton not only for m_outerSpinBuggon when styleDidChange() is called.
1896
1897         Test: fast/forms/input-appearance-spinbutton-visibility.html
1898
1899         * rendering/RenderTextControlSingleLine.cpp:
1900         (WebCore::RenderTextControlSingleLine::styleDidChange):
1901
1902 2011-03-06  Naoki Takano  <takano.naoki@gmail.com>
1903
1904         Reviewed by Kent Tamura.
1905
1906         [Chromium] Autocomplete suggestion extends out of window (and onto second monitor)
1907         https://bugs.webkit.org/show_bug.cgi?id=54795
1908
1909         Implement width clip logic according to browser screen width and popup window width. This fix is enough for Win and Mac, but there is a problem in Linux. Because WebScreenInfoFactory::screenInfo() can get only merged screen size, not the screen size where the browser exists.
1910
1911         Test: manual-tests/popup-width-restriction-within-screen.html
1912
1913         * manual-tests/popup-width-restriction-within-screen.html: Added.
1914         * platform/chromium/PopupMenuChromium.cpp:
1915         (WebCore::PopupContainer::layoutAndCalculateWidgetRect): Implement the width clip logic according to screen width.
1916
1917 2011-03-06  Yuta Kitamura  <yutak@chromium.org>
1918
1919         Reviewed by Kent Tamura.
1920
1921         Add SHA-1 for new WebSocket protocol
1922         https://bugs.webkit.org/show_bug.cgi?id=55039
1923
1924         * ForwardingHeaders/wtf/SHA1.h: Added.
1925
1926 2011-03-06  Eric Carlson  <eric.carlson@apple.com>
1927
1928         Reviewed by Antti Koivisto.
1929
1930         QuickTime based media engines should respect private browsing mode
1931         https://bugs.webkit.org/show_bug.cgi?id=55848
1932
1933         No new tests, it is only possible to test this by manually deleting and monitoring the
1934         the Quicktime caches.
1935
1936         * html/HTMLMediaElement.cpp:
1937         (WebCore::HTMLMediaElement::privateBrowsingStateDidChange): Add logging.
1938
1939         * platform/graphics/MediaPlayer.cpp:
1940         (WebCore::MediaPlayer::MediaPlayer): Initialize m_privateBrowsing.
1941         (WebCore::MediaPlayer::loadWithNextMediaEngine): Set privacy mode on new media engine.
1942         (WebCore::MediaPlayer::setPrivateBrowsingMode): Stash setting in m_privateBrowsing.
1943         * platform/graphics/MediaPlayer.h:
1944         * platform/graphics/MediaPlayerPrivate.h:
1945         (WebCore::MediaPlayerPrivateInterface::setPrivateBrowsingMode):
1946
1947         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
1948         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1949         (WebCore::MediaPlayerPrivateQTKit::MediaPlayerPrivateQTKit): Initialize m_privateBrowsing.
1950         (WebCore::MediaPlayerPrivateQTKit::createQTMovie): Pass private browsing attribute when
1951             creating new movie.
1952         (WebCore::MediaPlayerPrivateQTKit::setPrivateBrowsingMode): New, store privacy setting in
1953             m_privateBrowsing and set movie attribute.
1954
1955         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
1956         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext):
1957             Initialize m_privateBrowsing.
1958         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::setPrivateBrowsingMode): New, store 
1959             privacy setting in m_privateBrowsing and call QTMovie.
1960         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
1961
1962         * platform/graphics/win/QTMovie.cpp:
1963         (QTMoviePrivate::QTMoviePrivate): Initialize m_privateBrowsing.
1964         (QTMovie::load):Pass private browsing property when creating new movie.
1965         (QTMovie::setPrivateBrowsingMode):  New, store privacy setting in m_privateBrowsing and 
1966             set movie property.
1967         * platform/graphics/win/QTMovie.h:
1968
1969 2011-03-06  Daniel Bates  <dbates@rim.com>
1970
1971         Reviewed by Darin Adler.
1972
1973         style.borderSpacing always returns empty string
1974         https://bugs.webkit.org/show_bug.cgi?id=54816
1975
1976         Teach CSSMutableStyleDeclaration::getPropertyValue() how to reconstitute
1977         the value for border-spacing from the value of the WebKit internal CSS
1978         property -webkit-border-horizontal-spacing and -webkit-border-vertical-spacing.
1979
1980         The CSS property border-spacing describes the horizontal and vertical border
1981         spacing for an HTML Table element. Notice, WebKit internally represents the value
1982         of this property as two properties: -webkit-border-horizontal-spacing and
1983         -webkit-border-vertical-spacing, for the horizontal and vertical border spacing,
1984         respectively. And WebKit doesn't know to reconstitute these internal properties.
1985         Therefore style.borderSpacing always returns the empty string.
1986
1987         Test: fast/css/table-border-spacing.html
1988
1989         * css/CSSMutableStyleDeclaration.cpp:
1990         (WebCore::CSSMutableStyleDeclaration::getPropertyValue):
1991         (WebCore::CSSMutableStyleDeclaration::borderSpacingValue): Added.
1992         * css/CSSMutableStyleDeclaration.h:
1993
1994 2011-03-06  Dan Bernstein  <mitz@apple.com>
1995
1996         Reviewed by Oliver Hunt.
1997
1998         <rdar://problem/9093327> Implement -hyphenate-limit-{before,after}
1999         https://bugs.webkit.org/show_bug.cgi?id=55850
2000
2001         Tests: fast/css/parsing-hyphenate-limit.html
2002                fast/text/hyphenate-limit-before-after.html
2003
2004         * css/CSSComputedStyleDeclaration.cpp:
2005         (WebCore::computedProperties) Updated this array with the new properties and some old properties
2006         that it was missing.
2007         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Added
2008         CSSPropertyWebkitHyphenateLimit{Before,After}.
2009
2010         * css/CSSParser.cpp:
2011         (WebCore::CSSParser::parseValue): Parse -webkit-hyphenate-limit-{before,after}, allowing
2012         'auto' and non-negative integers.
2013
2014         * css/CSSPropertyNames.in: Added -webkit-hyphenate-limit-{before,after}.
2015
2016         * css/CSSStyleSelector.cpp:
2017         (WebCore::CSSStyleSelector::applyProperty): Handle CSSPropertyWebkitHyphenateLimit{Before,After}.
2018
2019         * rendering/RenderBlockLineLayout.cpp:
2020         (WebCore::tryHyphenating): Added minimum prefix and suffix length parameters and checks to only
2021         allow hyphenation if the prefix and the suffix are sufficiently long.
2022         (WebCore::RenderBlock::findNextLineBreak): Pass the limits to tryHyphenating().
2023
2024         * rendering/style/RenderStyle.cpp:
2025         (WebCore::RenderStyle::diff): A difference in hyphenation limits is a layout difference.
2026
2027         * rendering/style/RenderStyle.h:
2028         (WebCore::InheritedFlags::hyphenationLimitBefore): Added.
2029         (WebCore::InheritedFlags::hyphenationLimitAfter): Added.
2030         (WebCore::InheritedFlags::setHyphenationLimitBefore): Added.
2031         (WebCore::InheritedFlags::setHyphenationLimitAfter): Added.
2032         (WebCore::InheritedFlags::initialHyphenationLimitBefore): Added. Returns -1, which is the
2033         representation of 'auto'.
2034         (WebCore::InheritedFlags::initialHyphenationLimitAfter): Ditto.
2035
2036         * rendering/style/StyleRareInheritedData.cpp:
2037         (WebCore::StyleRareInheritedData::StyleRareInheritedData): Initialize hyphenation limits.
2038         (WebCore::StyleRareInheritedData::operator==): Compare hyphenation limits.
2039         * rendering/style/StyleRareInheritedData.h:
2040
2041 2011-03-06  Jessie Berlin  <jberlin@apple.com>
2042
2043         Reviewed by Sam Weinig.
2044
2045         WebKit2: Use CFNetwork Sessions API.
2046         https://bugs.webkit.org/show_bug.cgi?id=55435.
2047
2048         When Private Browsing is enabled, use cookies from a in-memory cookie storage based on the
2049         Private Browsing Storage Session.
2050
2051         * WebCore.exp.in:
2052         Add the new WKSI functions.
2053         * platform/mac/WebCoreSystemInterface.h:
2054         Ditto.
2055         * platform/mac/WebCoreSystemInterface.mm:
2056         Ditto.
2057
2058         * platform/mac/CookieJar.mm:
2059         (WebCore::cookies):
2060         If USE(CFURLSTORAGESESSIONS) and there is a Private Browsing Cookie Storage, call into WKSI.
2061         Otherwise, behave the same as before.
2062         (WebCore::cookieRequestHeaderFieldValue):
2063         Ditto.
2064         (WebCore::setCookies):
2065         Ditto.
2066         (WebCore::cookiesEnabled):
2067         Ditto
2068         (WebCore::getRawCookies):
2069         Ditto.
2070         (WebCore::deleteCookie):
2071         Ditto.
2072
2073         * platform/network/CookieStorage.h:
2074         * platform/network/cf/CookieStorageCFNet.cpp:
2075         (WebCore::privateBrowsingCookieStorage):
2076         Keep track of the Private Browsing Cookie Storage in a locally defined static inside a
2077         function instead of at the global scope.
2078         (WebCore::currentCookieStorage):
2079         Use privateBrowsingCookieStorage.
2080         (WebCore::setCurrentCookieStorage):
2081         Ditto.
2082         (WebCore::setCookieStoragePrivateBrowsingEnabled):
2083         If USE(CFURLSTORAGESESSIONS), send the Private Browsing Storage Session to
2084         wkCreatePrivateInMemoryHTTPCookieStorage.
2085         * platform/network/mac/CookieStorageMac.mm:
2086         (WebCore::privateBrowsingCookieStorage):
2087         Keep track of the Private Browsing Cookie Storage.
2088         (WebCore::setCookieStoragePrivateBrowsingEnabled):
2089         If USE(CFURLSTORAGESESSIONS), then set or clear privateBrowsingCookieStorage().
2090         Added a FIXME to observe changes to the Private Browsing Cookie Storage when it is defined.
2091
2092         * platform/network/mac/ResourceHandleMac.mm:
2093         (WebCore::shouldRelaxThirdPartyCookiePolicy):
2094         Refactor the logic to determine whether or not to relax the third party cookie policy here.
2095         If USE(CFURLSTORAGESESSIONS), then get the information from the privateBrowsingCookieStorage.
2096         (WebCore::ResourceHandle::createNSURLConnection):
2097         Use shouldRelaxThirdPartyCookiePolicy.
2098         (WebCore::ResourceHandle::loadResourceSynchronously):
2099         Ditto.
2100
2101 2011-03-05  Sheriff Bot  <webkit.review.bot@gmail.com>
2102
2103         Unreviewed, rolling out r80428.
2104         http://trac.webkit.org/changeset/80428
2105         https://bugs.webkit.org/show_bug.cgi?id=55833
2106
2107         Broke SnowLeopard (Requested by xan_ on #webkit).
2108
2109         * plugins/gtk/PluginViewGtk.cpp:
2110         (WebCore::PluginView::handlePostReadFile):
2111
2112 2011-03-01  Martin Robinson  <mrobinson@igalia.com>
2113
2114         Reviewed by Xan Lopez.
2115
2116         [GTK] Windowless plugins override the view cursor
2117         https://bugs.webkit.org/show_bug.cgi?id=55531
2118
2119         manual test: manual-tests/plugins/windowless.html
2120
2121         * platform/gtk/WidgetGtk.cpp:
2122         (WebCore::Widget::setCursor): Call into the ChromeClient implementation now.
2123         * plugins/gtk/PluginViewGtk.cpp:
2124         (WebCore::PluginView::initXEvent): Instead of setting the window for windowless
2125         plugin events, set the window value to none. This method is also used to send
2126         focus in / focus out events to windowed plugins, but this is not one of the plugin
2127         types where the window parameter matters. This matches what Mozilla does. Also
2128         pass in the display of the widget itself, not the default display.
2129         (WebCore::PluginView::handleMouseEvent): When the cursor leaves the plugin area,
2130         reset the cursor.
2131         (WebCore::PluginView::platformGetValue): Clean up this section slightly. Give the
2132         widget the top-level window explicitly. This matches Mozilla.
2133
2134 2011-03-05  Martin Robinson  <mrobinson@igalia.com>
2135
2136         Reviewed by Xan Lopez.
2137
2138         [GTK] http/tests/plugins/post-url-file.html fails on GTK+
2139         https://bugs.webkit.org/show_bug.cgi?id=55826
2140
2141         Correct the implementation of handlePostReadFile which uses GIO APIs and
2142         actually resizes the buffer to fit the entire size of the file data. This
2143         was likely leading to memory corruption until now.
2144
2145         * plugins/gtk/PluginViewGtk.cpp:
2146         (WebCore::PluginView::handlePostReadFile): Fix this method.
2147
2148 2011-03-05  Mikhail Naganov  <mnaganov@chromium.org>
2149
2150         Reviewed by Pavel Feldman.
2151
2152         Web Inspector: [Chromium] Allow dynamic enabling of detailed heap profiles.
2153         https://bugs.webkit.org/show_bug.cgi?id=55824
2154
2155         Detailed heap profiles can be now enabled by typing "leakz" in Profiles tab.
2156
2157         * inspector/front-end/DetailedHeapshotView.js:
2158         (WebInspector.DetailedHeapshotView.prototype.isDetailedSnapshot):
2159         * inspector/front-end/ProfilesPanel.js:
2160         (WebInspector.ProfilesPanel.prototype._finishHeapSnapshot.doParse):
2161         (WebInspector.ProfilesPanel.prototype._finishHeapSnapshot):
2162         (WebInspector.ProfilesPanel.prototype._reportHeapSnapshotProgress):
2163         (WebInspector.ProfilesPanel.prototype.handleShortcut):
2164         (WebInspector.ProfilesPanel.prototype._displayDetailedHeapProfilesEnabledHint.hideHint):
2165         (WebInspector.ProfilesPanel.prototype._displayDetailedHeapProfilesEnabledHint):
2166         (WebInspector.ProfilesPanel.prototype._enableDetailedHeapProfiles):
2167         (WebInspector.ProfilesPanel.prototype._recognizeKeyboardCombo):
2168
2169 2011-03-05  Qi Zhang  <qi.2.zhang@nokia.com>
2170
2171         Reviewed by Laszlo Gombos.
2172
2173         [Qt] Mobile Devices should include Model and Firmware Version in Webkit Generated User Agent String
2174         https://bugs.webkit.org/show_bug.cgi?id=48636
2175
2176         Add model infomation into user agent string when qtmobility is available, but only for symbian, Maemo and MeeGo.
2177
2178         * WebCore.pri:
2179         * features.pri:
2180
2181 2011-03-05  Pavel Feldman  <pfeldman@chromium.org>
2182
2183         Not reviewed: adding null check to prevent inspector tests from failing.
2184
2185         * inspector/front-end/TextViewer.js:
2186         (WebInspector.TextEditorGutterChunk.prototype.get offsetTop):
2187         (WebInspector.TextEditorMainChunk.prototype.get offsetTop):
2188
2189 2011-03-05  Pavel Feldman  <pfeldman@chromium.org>
2190
2191         Not reviewed: chromium rebaseline, flaky test fix.
2192
2193         * inspector/front-end/BreakpointManager.js:
2194         (WebInspector.DOMBreakpointView.prototype.populateStatusMessageElement.decorateNode):
2195         (WebInspector.DOMBreakpointView.prototype.populateStatusMessageElement):
2196         (WebInspector.DOMBreakpointView.prototype._format.formatters.s):
2197         (WebInspector.DOMBreakpointView.prototype._format.append):
2198         (WebInspector.DOMBreakpointView.prototype._format):
2199
2200 2011-03-04  Pavel Podivilov  <podivilov@chromium.org>
2201
2202         Reviewed by Yury Semikhatsky.
2203
2204         Web Inspector: [chromium] pause when script is running is broken.
2205         https://bugs.webkit.org/show_bug.cgi?id=55762
2206
2207         * inspector/CodeGeneratorInspector.pm:
2208
2209 2011-03-05  Adam Barth  <abarth@webkit.org>
2210
2211         Reviewed by Dimitri Glazkov.
2212
2213         Add Derived Sources to WebCore GYP build
2214         https://bugs.webkit.org/show_bug.cgi?id=55813
2215
2216         Adding the derived source action to the GYP file required tweaking
2217         DerivedSources.make.  I'm not sure how DerivedSources.make worked
2218         before beause these paths were incorrectly based.
2219
2220         * DerivedSources.make:
2221         * gyp/generate-derived-sources.sh: Added.
2222         * gyp/WebCore.gyp:
2223
2224 2011-03-04  Pavel Feldman  <pfeldman@chromium.org>
2225
2226         Reviewed by Yury Semikhatsky.
2227
2228         Web Inspector: fix layout tests flakiness.
2229         https://bugs.webkit.org/show_bug.cgi?id=55816
2230
2231         - Order of issuing of evaluateForTestInFrontend was not guaranteed on the backend side (InspectorAgent side)
2232         - Order of dispatching using timeouts was guaranteed via queueing. Source of all kinds of pains on SnowLeopard Release (inspector.js)
2233
2234         * inspector/CodeGeneratorInspector.pm:
2235         * inspector/InspectorAgent.cpp:
2236         (WebCore::InspectorAgent::InspectorAgent):
2237         (WebCore::InspectorAgent::disconnectFrontend):
2238         (WebCore::InspectorAgent::populateScriptObjects):
2239         (WebCore::InspectorAgent::evaluateForTestInFrontend):
2240         (WebCore::InspectorAgent::issueEvaluateForTestCommands):
2241         * inspector/InspectorAgent.h:
2242         * inspector/front-end/TimelinePanel.js:
2243         (WebInspector.TimelinePanel.FormattedRecord):
2244         * inspector/front-end/inspector.js:
2245         (WebInspector.dispatch):
2246
2247 2011-03-05  Adam Barth  <abarth@webkit.org>
2248
2249         Reviewed by Dimitri Glazkov.
2250
2251         WebCore GYP build should generate fewer than 10,000 compile errors per file
2252         https://bugs.webkit.org/show_bug.cgi?id=55810
2253
2254         This patch adds some missing include paths.  We need to figure out how
2255         to handle separate include paths per port.  It's clear that
2256         ForwardingHeaders are only useful for Mac, but it's less clear how to
2257         handle the others.
2258
2259         * WebCore.gypi:
2260         * gyp/WebCore.gyp:
2261
2262 2011-03-05  Dan Bernstein  <mitz@apple.com>
2263
2264         Reviewed by Cameron Zwarich.
2265
2266         <rdar://problem/9082946> Make the Core Text code path in GlyphPage::fill() more robust
2267         https://bugs.webkit.org/show_bug.cgi?id=55817
2268
2269         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
2270         (WebCore::GlyphPage::fill): When determining if a CTRun uses the primary font, compare against
2271         a CGFont obtained from Core Text for the primary font. This CGFont may be different from
2272         the CGFont stored in the FontPlatformData.
2273
2274 2011-03-05  Ilya Sherman  <isherman@chromium.org>
2275
2276         Reviewed by Darin Adler.
2277
2278         HTMLInputElement::setValue() should schedule change event when the element is focused.
2279         Refactored tracking of "changed since last change event" state from renderer to DOM.In service of https://code.google.com/p/chromium/issues
2280         In service of https://code.google.com/p/chromium/issues/detail?id=42716
2281         https://bugs.webkit.org/show_bug.cgi?id=53160
2282
2283         Test: fast/forms/onchange-change-type.html
2284         Test: fast/forms/onchange-setvalueforuser.html
2285
2286         * WebCore.exp.in:
2287         * dom/Document.cpp:
2288         (WebCore::Document::setFocusedNode):
2289         * dom/Element.h:
2290         (WebCore::Element::wasChangedSinceLastFormControlChangeEvent): Added.
2291         (WebCore::Element::setChangedSinceLastFormControlChangeEvent): Added.
2292         * html/HTMLFormControlElement.cpp:
2293         (WebCore::HTMLFormControlElement::HTMLFormControlElement):
2294         (WebCore::HTMLFormControlElement::wasChangedSinceLastFormControlChangeEvent): Added.
2295         (WebCore::HTMLFormControlElement::setChangedSinceLastFormControlChangeEvent): Added.
2296         (WebCore::HTMLFormControlElement::dispatchFormControlChangeEvent): Also clear the "changed since last change event" flag.
2297         (WebCore::HTMLFormControlElement::dispatchFormControlInputEvent): Also set the "changed since last change event" flag.
2298         * html/HTMLFormControlElement.h:
2299         * html/HTMLInputElement.cpp:
2300         (WebCore::HTMLInputElement::updateType): Also clear the "changed since last change event" flag.
2301         (WebCore::HTMLInputElement::setValue):
2302             For a focused text field, dispatch an input event, but delay the change event until the field loses focus.
2303         (WebCore::HTMLInputElement::defaultEventHandler):
2304         (WebCore::HTMLInputElement::stepUpFromRenderer):
2305         * html/shadow/TextControlInnerElements.cpp:
2306         (WebCore::SearchFieldCancelButtonElement::defaultEventHandler):
2307         * rendering/RenderTextControl.cpp:
2308         (WebCore::RenderTextControl::RenderTextControl):
2309         (WebCore::RenderTextControl::subtreeHasChanged):
2310         * rendering/RenderTextControl.h:
2311         * rendering/RenderTextControlMultiLine.cpp:
2312         (WebCore::RenderTextControlMultiLine::subtreeHasChanged):
2313         * rendering/RenderTextControlSingleLine.cpp:
2314         (WebCore::RenderTextControlSingleLine::subtreeHasChanged):
2315         * wml/WMLInputElement.cpp:
2316         (WebCore::WMLInputElement::WMLInputElement):
2317         (WebCore::WMLInputElement::defaultEventHandler):
2318         * wml/WMLInputElement.h:
2319         (WebCore::WMLInputElement::wasChangedSinceLastFormControlChangeEvent): Added.
2320         (WebCore::WMLInputElement::setChangedSinceLastFormControlChangeEvent): Added.
2321
2322 2011-03-04  Xianzhu Wang  <wangxianzhu@google.com>
2323
2324         Reviewed by Adam Barth.
2325
2326         Remove fake request loading of SVGImage to avoid MainResourceLoader
2327         leak. The frame->init() already ensures initialization of the
2328         document loader.
2329
2330         https://bugs.webkit.org/show_bug.cgi?id=55017
2331
2332         Test: fast/images/svg-image-leak-loader.html
2333
2334         * svg/graphics/SVGImage.cpp:
2335         (WebCore::SVGImage::dataChanged):
2336
2337 2011-03-04  Mike Reed  <reed@google.com>
2338
2339         Reviewed by Mihai Parparita.
2340
2341         [Chromium] fast/canvas/canvas-arc-360-winding.html fails on Linux and Windows
2342         https://bugs.webkit.org/show_bug.cgi?id=49477
2343
2344         * platform/graphics/skia/PathSkia.cpp:
2345         (WebCore::Path::addArc):
2346
2347 2011-03-04  Jia Pu  <jpu@apple.com>
2348
2349         Reviewed by Darin Adler.
2350
2351         On Mac, the bounding box sent to EditorClient::showCorrectionPanel() is incorrect when the correction occurs in an iframe.
2352         https://bugs.webkit.org/show_bug.cgi?id=55717
2353         <rdar://problem/9018127>
2354
2355         manual-test: manual-tests/platforms/mac/autocorrection/autocorrection-in-iframe.html
2356
2357         Previously, the bounding box passed into EditorClient::showCorrectionPanel() is in the frame's
2358         coordinate. This is incorrect when the correction occurs in an iframe. This patch added code
2359         to convert the bounding box to window coordinate using ScrollView::contentToWindow().
2360
2361         * dom/Range.cpp:
2362         (WebCore::Range::getBoundingClientRect):
2363         (WebCore::Range::boundingRect):
2364         * dom/Range.h:
2365         * editing/Editor.cpp:
2366         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
2367         (WebCore::Editor::correctionPanelTimerFired):
2368         (WebCore::Editor::windowRectForRange):
2369         * editing/Editor.h:
2370         * manual-tests/autocorrection/autocorrection-in-iframe.html: Added.
2371         * manual-tests/autocorrection/document-for-iframe-test.html: Added.
2372
2373 2011-03-04  Jia Pu  <jpu@apple.com>
2374
2375         Reviewed by Darin Adler.
2376
2377         Those checking in Editor::removeSpellAndCorrectionMarkersFromWordsToBeEdited() should be done with VisiblePosition::isNull().
2378         https://bugs.webkit.org/show_bug.cgi?id=55731
2379
2380         No new tests. There's no behavioral change.
2381
2382         This patch improved clarity and readability of Editor::removeSpellAndCorrectionMarkersFromWordsToBeEdited().
2383
2384         * editing/Editor.cpp:
2385         (WebCore::Editor::removeSpellAndCorrectionMarkersFromWordsToBeEdited):
2386
2387 2011-03-04  John Bauman  <jbauman@chromium.org>
2388
2389         Reviewed by Kenneth Russell.
2390
2391         [chromium] premultipliedAlpha WebGL context attribute is ignored.
2392         https://bugs.webkit.org/show_bug.cgi?id=55411
2393
2394         Update compositor to set the blending of each layer correctly.
2395
2396         Test: compositing/webgl/webgl-nonpremultiplied-blend.html
2397
2398         * platform/graphics/chromium/CanvasLayerChromium.cpp:
2399         (WebCore::CanvasLayerChromium::CanvasLayerChromium):
2400         (WebCore::CanvasLayerChromium::draw):
2401         * platform/graphics/chromium/CanvasLayerChromium.h:
2402         * platform/graphics/chromium/ContentLayerChromium.cpp:
2403         (WebCore::ContentLayerChromium::draw):
2404         * platform/graphics/chromium/LayerRendererChromium.cpp:
2405         (WebCore::LayerRendererChromium::drawLayers):
2406         * platform/graphics/chromium/WebGLLayerChromium.cpp:
2407         (WebCore::WebGLLayerChromium::setContext):
2408
2409 2011-03-04  Adam Barth  <abarth@webkit.org>
2410
2411         Reviewed by Eric Seidel.
2412
2413         WebCore GYP build should link with the correct frameworks
2414         https://bugs.webkit.org/show_bug.cgi?id=55804
2415
2416         * gyp/WebCore.gyp:
2417
2418 2011-03-04  Adam Barth  <abarth@webkit.org>
2419
2420         Reviewed by Eric Seidel.
2421
2422         WebCore GYP build should Check For Inappropriate Files in Framework
2423         https://bugs.webkit.org/show_bug.cgi?id=55806
2424
2425         * gyp/WebCore.gyp:
2426
2427 2011-03-04  Dimitri Glazkov  <dglazkov@chromium.org>
2428
2429         Reviewed by Adam Barth.
2430
2431         Add skeletal WebCore.gyp
2432         https://bugs.webkit.org/show_bug.cgi?id=55802
2433
2434         This doesn't yet build, but the basic structure is there.
2435
2436         * WebCore.gypi: Added headers and include directories variables.
2437         * gyp/WebCore.gyp: Added.
2438
2439 2011-03-04  Adam Barth  <abarth@webkit.org>
2440
2441         Reviewed by Dimitri Glazkov.
2442
2443         Remove unneeded round-trips through ../Source in the Chromium GYP build
2444         https://bugs.webkit.org/show_bug.cgi?id=55795
2445
2446         This is just cleanup work, but it was bugging me.
2447
2448         * WebCore.gyp/WebCore.gyp:
2449
2450 2011-03-04  Mike Reed  <reed@google.com>
2451
2452         Reviewed by James Robinson.
2453
2454         Option to use skia's native text drawing APIs when drawing text
2455         on Windows, rather than from outlines using drawPath(). This will
2456         only have a significant effect when the skia-gpu backend is enabled.
2457         https://bugs.webkit.org/show_bug.cgi?id=55609
2458
2459         No new tests. This is disabled by default. When enabled, it will draw
2460         essentially the same, but with slightly different antialiased edges, due
2461         to differences between the current scanconverter and GDI's font scaler.
2462         When enabled, we will have to recalibrate layouttest image results. 
2463
2464         * platform/graphics/skia/SkiaFontWin.cpp:
2465         (WebCore::skiaDrawText):
2466         (WebCore::setupPaintForFont):
2467         (WebCore::paintSkiaText):
2468
2469 2011-03-04  Adrienne Walker  <enne@google.com>
2470
2471         Reviewed by James Robinson.
2472
2473         [chromium] Fix texture stride issues on large content and image layers.
2474         https://bugs.webkit.org/show_bug.cgi?id=55679
2475
2476         This was an error caused during the refactoring in r80081.
2477
2478         Tests: LayoutTests/compositing/tiling/huge-layer-img.html
2479
2480         * platform/graphics/chromium/ContentLayerChromium.cpp:
2481         (WebCore::ContentLayerChromium::updateTexture):
2482         * platform/graphics/chromium/ImageLayerChromium.cpp:
2483         (WebCore::ImageLayerChromium::updateTextureIfNeeded):
2484
2485 2011-03-04  Sheriff Bot  <webkit.review.bot@gmail.com>
2486
2487         Unreviewed, rolling out r80379.
2488         http://trac.webkit.org/changeset/80379
2489         https://bugs.webkit.org/show_bug.cgi?id=55799
2490
2491         "Breaks leopard compile (implicit conversion)" (Requested by
2492         tonyg-cr on #webkit).
2493
2494         * css/CSSStyleSelector.cpp:
2495         (WebCore::convertToLength):
2496         (WebCore::CSSStyleSelector::applyProperty):
2497         (WebCore::CSSStyleSelector::createTransformOperations):
2498         * platform/Length.h:
2499         (WebCore::Length::Length):
2500         (WebCore::Length::operator==):
2501         (WebCore::Length::operator!=):
2502         (WebCore::Length::rawValue):
2503         (WebCore::Length::type):
2504         (WebCore::Length::quirk):
2505         (WebCore::Length::setValue):
2506         (WebCore::Length::setRawValue):
2507         (WebCore::Length::calcFloatValue):
2508         (WebCore::Length::isZero):
2509         (WebCore::Length::blend):
2510         * rendering/AutoTableLayout.cpp:
2511         (WebCore::AutoTableLayout::recalcColumn):
2512         (WebCore::AutoTableLayout::calcEffectiveLogicalWidth):
2513         * rendering/FixedTableLayout.cpp:
2514         (WebCore::FixedTableLayout::calcWidthArray):
2515
2516 2011-03-04  Jessie Berlin  <jberlin@apple.com>
2517
2518         Reviewed by Darin Adler.
2519
2520         WebKit2: Use CFNetwork Sessions API.
2521         https://bugs.webkit.org/show_bug.cgi?id=55435.
2522
2523         Add in the CFURLSTORAGESESSIONS guards that I incorrectly left out because the code was
2524         contained within guards that made USE(CFURLSTORAGESESSIONS) always be true.
2525
2526         * platform/network/cf/ResourceHandleCFNet.cpp:
2527         (WebCore::makeFinalRequest):
2528         (WebCore::ResourceHandle::willSendRequest):
2529         * platform/network/cf/ResourceRequestCFNet.cpp:
2530         * platform/network/mac/ResourceHandleMac.mm:
2531         (WebCore::ResourceHandle::createNSURLConnection):
2532         (WebCore::ResourceHandle::willSendRequest):
2533         * platform/network/mac/ResourceRequestMac.mm:
2534
2535 2011-03-04  Yuqiang Xian  <yuqiang.xian@intel.com>
2536
2537         Reviewed by Darin Adler.
2538
2539         improve layout performance by reducing the traversal time of the floating objects
2540         https://bugs.webkit.org/show_bug.cgi?id=55440
2541
2542         We observered large overhead on traversing the floating objects list
2543         in logicalLeftOffsetForLine() and logicalRightOffsetForLine() especially
2544         when the list becomes enormous, for example in the default 30x30 maze test
2545         from http://ie.microsoft.com/testdrive/Performance/MazeSolver/Default.html
2546         there're >3700 floating objects. When placing a new floating object the
2547         entire list (from begin to end) is traversed for multiple times.
2548         There's a low hanging fruit to reduce the chances to do the traversal
2549         which is especially applicable in logicalLeftOffsetForLine and logicalRightOffsetForLine.
2550         As the two routines either cares about FloatLeft objects or FloatRight objects only,
2551         if we know there's no corresponding type floating objects in the list
2552         we can avoid the traversal actually. One thing we could do is to record
2553         the number of FloatLeft objects and the number of FloatRight objects and
2554         add a check before doing the traversal. This can reduce the time by 45%
2555         to resolve the 30x30 Maze measured on N470 Netbook MeeGo using latest
2556         Chromium browser 11 (from 503s to 269s).
2557
2558         No new tests, relying on existing layout tests.
2559
2560         * rendering/RenderBlock.cpp:
2561         (WebCore::RenderBlock::~RenderBlock):
2562         (WebCore::RenderBlock::addOverflowFromFloats):
2563         (WebCore::RenderBlock::repaintOverhangingFloats):
2564         (WebCore::RenderBlock::paintFloats):
2565         (WebCore::RenderBlock::selectionGaps):
2566         (WebCore::RenderBlock::insertFloatingObject):
2567         (WebCore::RenderBlock::removeFloatingObject):
2568         (WebCore::RenderBlock::removeFloatingObjectsBelow):
2569         (WebCore::RenderBlock::positionNewFloats):
2570         (WebCore::RenderBlock::positionNewFloatOnLine):
2571         (WebCore::RenderBlock::logicalLeftOffsetForLine):
2572         (WebCore::RenderBlock::logicalRightOffsetForLine):
2573         (WebCore::RenderBlock::nextFloatLogicalBottomBelow):
2574         (WebCore::RenderBlock::lowestFloatLogicalBottom):
2575         (WebCore::RenderBlock::clearFloats):
2576         (WebCore::RenderBlock::addOverhangingFloats):
2577         (WebCore::RenderBlock::addIntrudingFloats):
2578         (WebCore::RenderBlock::containsFloat):
2579         (WebCore::RenderBlock::hitTestFloats):
2580         (WebCore::RenderBlock::adjustForBorderFit):
2581         (WebCore::RenderBlock::FloatingObjects::clear):
2582         (WebCore::RenderBlock::FloatingObjects::increaseObjectsCount):
2583         (WebCore::RenderBlock::FloatingObjects::decreaseObjectsCount):
2584         * rendering/RenderBlock.h:
2585         (WebCore::RenderBlock::containsFloats):
2586         (WebCore::RenderBlock::FloatingObjects::FloatingObjects):
2587         (WebCore::RenderBlock::FloatingObjects::hasLeftObjects):
2588         (WebCore::RenderBlock::FloatingObjects::hasRightObjects):
2589         (WebCore::RenderBlock::FloatingObjects::set):
2590         * rendering/RenderBlockLineLayout.cpp:
2591         (WebCore::RenderBlock::layoutInlineChildren):
2592         (WebCore::RenderBlock::matchedEndLine):
2593
2594 2011-03-04  Rik Cabanier  <cabanier@gmail.com>
2595
2596         Reviewed by David Hyatt.
2597
2598         Fix that allows fixed length values to be floating point
2599         https://bugs.webkit.org/show_bug.cgi?id=52699
2600
2601         * WebCore.xcodeproj/project.pbxproj:
2602         * css/CSSStyleSelector.cpp:
2603         (WebCore::convertToLength):
2604         (WebCore::convertToIntLength):
2605         (WebCore::convertToFloatLength):
2606         (WebCore::CSSStyleSelector::applyProperty):
2607         (WebCore::CSSStyleSelector::createTransformOperations):
2608         * platform/Length.h:
2609         (WebCore::Length::Length):
2610         (WebCore::Length::operator==):
2611         (WebCore::Length::operator!=):
2612         (WebCore::Length::rawValue):
2613         (WebCore::Length::type):
2614         (WebCore::Length::quirk):
2615         (WebCore::Length::setValue):
2616         (WebCore::Length::calcFloatValue):
2617         (WebCore::Length::isZero):
2618         (WebCore::Length::blend):
2619         (WebCore::Length::getIntValue):
2620         (WebCore::Length::getFloatValue):
2621         * rendering/AutoTableLayout.cpp:
2622         (WebCore::AutoTableLayout::recalcColumn):
2623         (WebCore::AutoTableLayout::calcEffectiveLogicalWidth):
2624         * rendering/FixedTableLayout.cpp:
2625         (WebCore::FixedTableLayout::calcWidthArray):
2626
2627 2011-03-04  Steve Falkenburg  <sfalken@apple.com>
2628
2629         Reviewed by Jon Honeycutt.
2630
2631         Adopt VersionStamper tool for Windows WebKit DLLs
2632         https://bugs.webkit.org/show_bug.cgi?id=55784
2633         
2634         We now use a tool to stamp the version number onto the Apple WebKit DLLs
2635         during the post-build step.
2636
2637         * WebCore.vcproj/QTMovieWin.rc: Removed.
2638         * WebCore.vcproj/QTMovieWin.vcproj:
2639         * WebCore.vcproj/QTMovieWinPostBuild.cmd: Stamp version with VersionStamper.
2640         * WebCore.vcproj/QTMovieWinPreBuild.cmd: Don't run auto-version.sh. We don't use autoversion.h in this project.
2641         * WebCore.vcproj/WebCoreMediaQT.vsprops: Remove unnecessary include paths for resource files.
2642
2643 2011-03-04  Cosmin Truta  <ctruta@chromium.org>
2644
2645         Reviewed by Adam Barth.
2646
2647         Clarify comment about potential memory leak in SVGImage
2648         https://bugs.webkit.org/show_bug.cgi?id=55362
2649
2650         No functionality change. No new tests.
2651
2652         * svg/graphics/SVGImage.cpp:
2653         (WebCore::SVGImage::dataChanged):
2654
2655 2011-03-04  Jessie Berlin  <jberlin@apple.com>
2656
2657         Reviewed by Maciej Stachowiak.
2658
2659         WebKit2: Use CFNetwork Sessions API.
2660         https://bugs.webkit.org/show_bug.cgi?id=55435.
2661
2662         When Private Browsing is enabled, get the cached url response from the cache associated with
2663         the Private Browsing Storage Session.
2664
2665         * WebCore.exp.in:
2666         Export the symbol for ResourceHandle::privateBrowsingStorageSession.
2667
2668 2011-03-04  Steve Block  <steveblock@google.com>
2669
2670         Reviewed by Jeremy Orlow.
2671
2672         JSC and V8 versions of Java bridge should share JobjectWrapper
2673         https://bugs.webkit.org/show_bug.cgi?id=55763
2674
2675         No new tests, refactoring only.
2676
2677         * Android.jscbindings.mk:
2678         * Android.v8bindings.mk:
2679         * WebCore.gypi:
2680         * WebCore.order:
2681         * WebCore.xcodeproj/project.pbxproj:
2682         * bridge/jni/JobjectWrapper.cpp:
2683         (JobjectWrapper::JobjectWrapper):
2684         (JobjectWrapper::~JobjectWrapper):
2685         * bridge/jni/JobjectWrapper.h:
2686         (JSC::Bindings::JobjectWrapper::instance):
2687         (JSC::Bindings::JobjectWrapper::setInstance):
2688         (JSC::Bindings::JobjectWrapper::ref):
2689         (JSC::Bindings::JobjectWrapper::deref):
2690         * bridge/jni/jsc/JNIBridgeJSC.cpp:
2691         (JavaField::JavaField):
2692         (JavaArray::JavaArray):
2693         * bridge/jni/jsc/JNIBridgeJSC.h:
2694         * bridge/jni/jsc/JavaInstanceJSC.cpp:
2695         (JavaInstance::JavaInstance):
2696         * bridge/jni/jsc/JavaInstanceJSC.h:
2697
2698 2011-03-04  Patrick Gansterer  <paroga@webkit.org>
2699
2700         Reviewed by Nikolas Zimmermann.
2701
2702         Move shared code into SVGStyledTransformableElement::svgAttributeChanged
2703         https://bugs.webkit.org/show_bug.cgi?id=55771
2704
2705         All sub classes of SVGStyledTransformableElement request a relayout
2706         the same way. So move that code into the common base class.
2707
2708         * svg/SVGCircleElement.cpp:
2709         (WebCore::SVGCircleElement::svgAttributeChanged):
2710         * svg/SVGEllipseElement.cpp:
2711         (WebCore::SVGEllipseElement::svgAttributeChanged):
2712         * svg/SVGForeignObjectElement.cpp:
2713         (WebCore::SVGForeignObjectElement::svgAttributeChanged):
2714         * svg/SVGGElement.cpp:
2715         (WebCore::SVGGElement::svgAttributeChanged):
2716         * svg/SVGImageElement.cpp:
2717         (WebCore::SVGImageElement::svgAttributeChanged):
2718         * svg/SVGLineElement.cpp:
2719         (WebCore::SVGLineElement::svgAttributeChanged):
2720         * svg/SVGPathElement.cpp:
2721         (WebCore::SVGPathElement::svgAttributeChanged):
2722         * svg/SVGPolyElement.cpp:
2723         (WebCore::SVGPolyElement::svgAttributeChanged):
2724         * svg/SVGRectElement.cpp:
2725         (WebCore::SVGRectElement::svgAttributeChanged):
2726         * svg/SVGStyledTransformableElement.cpp:
2727         (WebCore::SVGStyledTransformableElement::svgAttributeChanged):
2728         * svg/SVGStyledTransformableElement.h:
2729         * svg/SVGUseElement.cpp:
2730         (WebCore::SVGUseElement::svgAttributeChanged):
2731
2732 2011-03-03  John Abd-El-Malek  <jam@chromium.org>
2733
2734         Reviewed by Dimitri Glazkov.
2735
2736         [chromium] Get rid of IsContentFiltered flags since they&apos;re not used anymore
2737         https://bugs.webkit.org/show_bug.cgi?id=55748
2738
2739         * platform/network/chromium/ResourceResponse.cpp:
2740         (WebCore::ResourceResponse::doPlatformCopyData):
2741         (WebCore::ResourceResponse::doPlatformAdopt):
2742         * platform/network/chromium/ResourceResponse.h:
2743         (WebCore::ResourceResponse::ResourceResponse):
2744
2745 2011-03-03  Timothy Hatcher  <timothy@apple.com>
2746
2747         Export SerializedScriptValue::create(JSC::ExecState* exec, JSC::JSValue value).
2748
2749         Reviewed by Darin Adler.
2750
2751         * WebCore.exp.in: Added __ZN7WebCore21SerializedScriptValue6createEPN3JSC9ExecStateENS1_7JSValueE.
2752
2753 2011-03-04  Pavel Podivilov  <podivilov@chromium.org>
2754
2755         Reviewed by Yury Semikhatsky.
2756
2757         Web Inspector: extract all code that depends on source mapping from SourceFrame.
2758         https://bugs.webkit.org/show_bug.cgi?id=55464
2759
2760         Extract all dependencies on DebuggerModel and ScriptsPanel to a delegate class
2761         to encapsulate source mapping aspects from SourceFrame.
2762
2763         * inspector/front-end/ResourceView.js:
2764         (WebInspector.ResourceView.createResourceView):
2765         (WebInspector.SourceFrameDelegateForResourcesPanel):
2766         (WebInspector.SourceFrameDelegateForResourcesPanel.prototype.requestContent):
2767         * inspector/front-end/ScriptsPanel.js:
2768         (WebInspector.ScriptsPanel.prototype._createSourceFrame):
2769         (WebInspector.SourceFrameDelegateForScriptsPanel):
2770         * inspector/front-end/SourceFrame.js:
2771         (WebInspector.SourceFrame):
2772         (WebInspector.SourceFrame.prototype.show):
2773         (WebInspector.SourceFrame.prototype._createTextViewer):
2774         (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint.didEditBreakpointCondition):
2775         (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint):
2776         (WebInspector.SourceFrame.prototype._contextMenu.else.editBreakpointCondition.didEditBreakpointCondition):
2777         (WebInspector.SourceFrame.prototype._contextMenu.else.editBreakpointCondition):
2778         (WebInspector.SourceFrame.prototype._contextMenu.else.setBreakpointEnabled):
2779         (WebInspector.SourceFrame.prototype._contextMenu):
2780         (WebInspector.SourceFrame.prototype._mouseDown):
2781         (WebInspector.SourceFrame.prototype._mouseMove):
2782         (WebInspector.SourceFrame.prototype._hidePopup):
2783         (WebInspector.SourceFrame.prototype._mouseHover):
2784         (WebInspector.SourceFrame.prototype._showPopup.showObjectPopup):
2785         (WebInspector.SourceFrame.prototype._showPopup):
2786         (WebInspector.SourceFrame.prototype._doubleClick):
2787         (WebInspector.SourceFrame.prototype._didEditLine):
2788         (WebInspector.SourceFrameDelegate):
2789         (WebInspector.SourceFrameDelegate.prototype.requestContent):
2790         (WebInspector.SourceFrameDelegate.prototype.debuggingSupported):
2791         (WebInspector.SourceFrameDelegate.prototype.setBreakpoint):
2792         (WebInspector.SourceFrameDelegate.prototype.removeBreakpoint):
2793         (WebInspector.SourceFrameDelegate.prototype.updateBreakpoint):
2794         (WebInspector.SourceFrameDelegate.prototype.findBreakpoint):
2795         (WebInspector.SourceFrameDelegate.prototype.continueToLine):
2796         (WebInspector.SourceFrameDelegate.prototype.canEditScriptSource):
2797         (WebInspector.SourceFrameDelegate.prototype.editScriptSource):
2798         (WebInspector.SourceFrameDelegate.prototype.debuggerPaused):
2799         (WebInspector.SourceFrameDelegate.prototype.evaluate):
2800         (WebInspector.SourceFrameDelegate.prototype.releaseEvaluationResult):
2801
2802 2011-03-04  Andrey Kosyakov  <caseq@chromium.org>
2803
2804         Reviewed by Pavel Feldman.
2805
2806         Web Inspector: [Extensions API] maintain own, unique & persistent identifiers for resources.
2807         https://bugs.webkit.org/show_bug.cgi?id=55686
2808
2809         - Use internal ids for resources in extension server.
2810         - Log errors in inspector tests.
2811
2812         * inspector/front-end/ExtensionServer.js:
2813         (WebInspector.ExtensionServer):
2814         (WebInspector.ExtensionServer.prototype.resetResources):
2815         (WebInspector.ExtensionServer.prototype._notifyResourceFinished):
2816         (WebInspector.ExtensionServer.prototype._onRevealAndSelectResource):
2817         (WebInspector.ExtensionServer.prototype._onGetHAR):
2818         (WebInspector.ExtensionServer.prototype._onGetResourceContent):
2819         (WebInspector.ExtensionServer.prototype._resourceId):
2820         (WebInspector.ExtensionServer.prototype._resourceById):
2821         * inspector/front-end/HAREntry.js:
2822         (WebInspector.HARLog):
2823         (WebInspector.HARLog.prototype._convertResource):
2824         * inspector/front-end/NetworkPanel.js:
2825         (WebInspector.NetworkPanel.prototype._reset):
2826
2827 2011-03-04  Andrey Kosyakov  <caseq@chromium.org>
2828
2829         Reviewed by Pavel Feldman.
2830
2831         Web Inspector: exceptions when building context menu in network panel
2832         https://bugs.webkit.org/show_bug.cgi?id=55678
2833
2834         * inspector/front-end/DataGrid.js:
2835         (WebInspector.DataGrid.prototype.dataGridNodeFromNode):
2836         (WebInspector.DataGrid.prototype.dataGridNodeFromPoint):
2837         * inspector/front-end/NetworkPanel.js:
2838         (WebInspector.NetworkPanel.prototype._contextMenu):
2839
2840 2011-03-04  Ilya Sherman  <isherman@chromium.org>
2841
2842         Reviewed by James Robinson.
2843
2844         Override paintScrollCorner() for FramelessScrollView to forego any custom scrollbar corner rendering.
2845         This was previously done in ScrollbarThemeChromium, but we also need this on the Mac when the ScrollView
2846         is a FramelessScrollView -- which is mostly just for Autofill.
2847         In service of http://crbug.com/73772 (crash)
2848         https://bugs.webkit.org/show_bug.cgi?id=55557
2849
2850         No tests added because this fix is Chromium-specific and the code is currently untestable from within WebKit.
2851         In particular, DRT crashes when trying to render a FramelessScrollView.
2852
2853         * platform/ScrollbarTheme.h:
2854         (WebCore::ScrollbarTheme::paintScrollCorner): Body moved to static function defaultPaintScrollCorner().
2855         (WebCore::ScrollbarTheme::defaultPaintScrollCorner): Added.
2856         * platform/chromium/FramelessScrollView.cpp:
2857         (WebCore::FramelessScrollView::paintContents):
2858         (WebCore::FramelessScrollView::paintScrollCorner): Fix implementation moved to here from ScrollbarThemeChromium
2859         * platform/chromium/FramelessScrollView.h:
2860         * platform/chromium/ScrollbarThemeChromium.cpp:
2861         * platform/chromium/ScrollbarThemeChromium.h:
2862
2863 2011-03-04  Yury Semikhatsky  <yurys@chromium.org>
2864
2865         Reviewed by Pavel Feldman.
2866
2867         Web Inspector: move dispatching of didCommitLoad to agents into InspectorInstrumentation
2868         https://bugs.webkit.org/show_bug.cgi?id=55770
2869
2870         * inspector/InspectorAgent.cpp:
2871         (WebCore::InspectorAgent::InspectorAgent):
2872         (WebCore::InspectorAgent::didCommitLoad):
2873         * inspector/InspectorCSSAgent.cpp:
2874         (WebCore::InspectorCSSAgent::InspectorCSSAgent):
2875         (WebCore::InspectorCSSAgent::~InspectorCSSAgent):
2876         * inspector/InspectorCSSAgent.h:
2877         * inspector/InspectorDatabaseAgent.cpp:
2878         (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
2879         * inspector/InspectorInstrumentation.cpp:
2880         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
2881         * inspector/InspectorInstrumentation.h:
2882         (WebCore::InspectorInstrumentation::didCommitLoad):
2883         * inspector/InspectorProfilerAgent.cpp:
2884         (WebCore::InspectorProfilerAgent::create):
2885         (WebCore::InspectorProfilerAgent::InspectorProfilerAgent):
2886         (WebCore::InspectorProfilerAgent::~InspectorProfilerAgent):
2887         (WebCore::InspectorProfilerAgent::addProfileFinishedMessageToConsole):
2888         (WebCore::InspectorProfilerAgent::addStartProfilingMessageToConsole):
2889         (WebCore::InspectorProfilerAgent::startUserInitiatedProfiling):
2890         (WebCore::InspectorProfilerAgent::stopUserInitiatedProfiling):
2891         * inspector/InspectorProfilerAgent.h:
2892         * inspector/InstrumentingAgents.h:
2893         (WebCore::InstrumentingAgents::InstrumentingAgents):
2894         (WebCore::InstrumentingAgents::inspectorCSSAgent):
2895         (WebCore::InstrumentingAgents::setInspectorCSSAgent):
2896         (WebCore::InstrumentingAgents::inspectorDOMStorageAgent):
2897         (WebCore::InstrumentingAgents::setInspectorDOMStorageAgent):
2898         (WebCore::InstrumentingAgents::inspectorDatabaseAgent):
2899         (WebCore::InstrumentingAgents::setInspectorDatabaseAgent):
2900         (WebCore::InstrumentingAgents::inspectorApplicationCacheAgent):
2901         (WebCore::InstrumentingAgents::setInspectorApplicationCacheAgent):
2902         (WebCore::InstrumentingAgents::inspectorDebuggerAgent):
2903         (WebCore::InstrumentingAgents::setInspectorDebuggerAgent):
2904         (WebCore::InstrumentingAgents::inspectorBrowserDebuggerAgent):
2905         (WebCore::InstrumentingAgents::setInspectorBrowserDebuggerAgent):
2906         (WebCore::InstrumentingAgents::inspectorProfilerAgent):
2907         (WebCore::InstrumentingAgents::setInspectorProfilerAgent):
2908
2909 2011-03-04  Ilya Tikhonovsky  <loislo@chromium.org>
2910
2911         Reviewed by Yury Semikhatsky.
2912
2913         Web Inspector: rename RuntimeAgent's function from releaseWrapperObjectGroup to releaseObjectGroup.
2914         https://bugs.webkit.org/show_bug.cgi?id=55773
2915
2916         * inspector/CodeGeneratorInspector.pm:
2917         * inspector/InjectedScript.cpp:
2918         (WebCore::InjectedScript::releaseObjectGroup):
2919         * inspector/InjectedScript.h:
2920         * inspector/InjectedScriptHost.cpp:
2921         (WebCore::InjectedScriptHost::releaseObjectGroup):
2922         * inspector/InjectedScriptHost.h:
2923         * inspector/InjectedScriptSource.js:
2924         (.):
2925         * inspector/Inspector.idl:
2926         * inspector/InspectorConsoleAgent.cpp:
2927         (WebCore::InspectorConsoleAgent::clearConsoleMessages):
2928         * inspector/InspectorRuntimeAgent.cpp:
2929         (WebCore::InspectorRuntimeAgent::releaseObjectGroup):
2930         * inspector/InspectorRuntimeAgent.h:
2931         * inspector/front-end/ConsoleView.js:
2932         (WebInspector.ConsoleView.prototype.completions.evaluatedProperties):
2933         (WebInspector.ConsoleView.prototype.completions):
2934         * inspector/front-end/PropertiesSidebarPane.js:
2935         * inspector/front-end/SourceFrame.js:
2936         (WebInspector.SourceFrame.prototype._hidePopup):
2937         * inspector/front-end/WatchExpressionsSidebarPane.js:
2938         (WebInspector.WatchExpressionsSection.prototype.update):
2939
2940 2011-03-02  Andrey Adaikin  <aandrey@google.com>
2941
2942         Reviewed by Pavel Feldman.
2943
2944         Web Inspector: Gutter height should be 100% when few lines are displayed
2945         https://bugs.webkit.org/show_bug.cgi?id=55574
2946
2947         * inspector/front-end/SourceFrame.js:
2948         (WebInspector.SourceFrame.prototype._startEditing):
2949         * inspector/front-end/TextViewer.js:
2950         (WebInspector.TextViewer.prototype._syncScroll):
2951         (WebInspector.TextEditorGutterPanel.prototype._expandChunks):
2952         (WebInspector.TextEditorGutterPanel.prototype.textChanged):
2953         (WebInspector.TextEditorGutterPanel.prototype.syncClientHeight):
2954         * inspector/front-end/textViewer.css:
2955         (.text-editor-lines):
2956         (.text-editor-contents .inner-container):
2957         (.webkit-line-number):
2958
2959 2011-03-04  Andrey Adaikin  <aandrey@google.com>
2960
2961         Reviewed by Pavel Feldman.
2962
2963         Web Inspector: [Text editor] Do bisect to find visible chunks
2964         https://bugs.webkit.org/show_bug.cgi?id=55685
2965
2966         * inspector/front-end/TextViewer.js:
2967         (WebInspector.TextEditorChunkedPanel.prototype._chunkNumberForLine):
2968         (WebInspector.TextEditorChunkedPanel.prototype._findVisibleChunks):
2969         (WebInspector.TextEditorChunkedPanel.prototype._repaintAll):
2970         (WebInspector.TextEditorGutterChunk.prototype.get offsetTop):
2971         (WebInspector.TextEditorMainPanel.prototype._updateHighlightsForRange):
2972         (WebInspector.TextEditorMainChunk.prototype.get offsetTop):
2973
2974 2011-03-04  Andrey Adaikin  <aandrey@google.com>
2975
2976         Reviewed by Pavel Feldman.
2977
2978         Web Inspector: [Text editor] DOMNodeRemoved events are missing
2979         https://bugs.webkit.org/show_bug.cgi?id=55769
2980
2981         * inspector/front-end/TextViewer.js:
2982         (WebInspector.TextEditorMainPanel):
2983         (WebInspector.TextEditorMainPanel.prototype._handleDOMUpdates):
2984         (WebInspector.TextEditorMainChunk):
2985         (WebInspector.TextEditorMainChunk.prototype._createRow):
2986
2987 2011-03-04  Ilya Tikhonovsky  <loislo@chromium.org>
2988
2989         Reviewed by Yury Semikhatsky.
2990
2991         Web Inspector: Remove unnecessary domain and success flags from the response messages.
2992         https://bugs.webkit.org/show_bug.cgi?id=55768
2993
2994         We have domain property in the response messages but it is not used because we dispatch
2995         the responses on the callback associated with seq.
2996
2997         If we have property 'errors' in the response then success eq false and true in the other case.
2998
2999         * inspector/CodeGeneratorInspector.pm:
3000
3001 2011-03-04  Christian Dywan  <christian@lanedo.com>
3002
3003         Reviewed by Gustavo Noronha Silva.
3004
3005         Enable Copy Image Address context menu item in the Gtk port
3006         https://bugs.webkit.org/show_bug.cgi?id=55136
3007
3008         * page/ContextMenuController.cpp:
3009         * platform/ContextMenuItem.h:
3010         * platform/LocalizationStrategy.h:
3011         * platform/LocalizedStrings.cpp:
3012         * platform/LocalizedStrings.h:
3013         * platform/gtk/ContextMenuItemGtk.cpp:
3014         * platform/gtk/LocalizedStringsGtk.cpp:
3015
3016 2011-03-04  Pavel Feldman  <pfeldman@chromium.org>
3017
3018         Reviewed by Yury Semikhatsky.
3019
3020         Web Inspector: implement getCompletions via evaluate.
3021         https://bugs.webkit.org/show_bug.cgi?id=55759
3022
3023         * inspector/InjectedScript.cpp:
3024         * inspector/InjectedScript.h:
3025         * inspector/InjectedScriptSource.js:
3026         * inspector/Inspector.idl:
3027         * inspector/InspectorDebuggerAgent.cpp:
3028         * inspector/InspectorDebuggerAgent.h:
3029         * inspector/InspectorRuntimeAgent.cpp:
3030         * inspector/InspectorRuntimeAgent.h:
3031         * inspector/front-end/ConsoleView.js:
3032         (WebInspector.ConsoleView.prototype.completions.evaluated):
3033         (WebInspector.ConsoleView.prototype.completions.evaluatedProperties):
3034         (WebInspector.ConsoleView.prototype.completions):
3035         (WebInspector.ConsoleView.prototype._reportCompletions):
3036         * inspector/front-end/ScriptsPanel.js:
3037         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame.updatingCallbackWrapper):
3038         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
3039         * inspector/front-end/SourceFrame.js:
3040         (WebInspector.SourceFrame.prototype._showPopup):
3041         (WebInspector.SourceFrame.prototype._evalSelectionInCallFrame):
3042
3043 2011-03-04  Steve Block  <steveblock@google.com>
3044
3045         Reviewed by Jeremy Orlow.
3046
3047         V8 version of JavaString should obtain string from JNI in UTF-16 encoding
3048         https://bugs.webkit.org/show_bug.cgi?id=55566
3049
3050         We obtain the string from JNI in UTF-16 encoding and convert
3051         to UTF-8 using our own routines as required. This matches the
3052         behaviour of the JSC version of JavaString.
3053
3054         No new tests, no change in behaviour.
3055
3056         * bridge/jni/v8/JavaStringV8.h:
3057         (JSC::Bindings::JavaStringImpl::init):
3058         (JSC::Bindings::JavaStringImpl::utf8):
3059         (JSC::Bindings::JavaStringImpl::impl):
3060
3061 2011-03-03  Pavel Feldman  <pfeldman@chromium.org>
3062
3063         Reviewed by Yury Semikhatsky.
3064
3065         Web Inspector: do not push document into front-end, make it request one.
3066         https://bugs.webkit.org/show_bug.cgi?id=55664
3067
3068         * inspector/Inspector.idl:
3069         * inspector/InspectorAgent.cpp:
3070         (WebCore::InspectorAgent::InspectorAgent):
3071         * inspector/InspectorAgent.h:
3072         * inspector/InspectorBrowserDebuggerAgent.cpp:
3073         (WebCore::InspectorBrowserDebuggerAgent::descriptionForDOMEvent):
3074         * inspector/InspectorDOMAgent.cpp:
3075         (WebCore::InspectorDOMAgent::InspectorDOMAgent):
3076         (WebCore::InspectorDOMAgent::clearFrontend):
3077         (WebCore::InspectorDOMAgent::setDocument):
3078         (WebCore::InspectorDOMAgent::getDocument):
3079         (WebCore::InspectorDOMAgent::pushNodePathToFrontend):
3080         (WebCore::InspectorDOMAgent::boundNodeId):
3081         (WebCore::InspectorDOMAgent::resolveNode):
3082         (WebCore::InspectorDOMAgent::mainFrameDOMContentLoaded):
3083         * inspector/InspectorDOMAgent.h:
3084         (WebCore::InspectorDOMAgent::create):
3085         * inspector/front-end/BreakpointManager.js:
3086         (WebInspector.BreakpointManager.prototype.restoreDOMBreakpoints):
3087         (WebInspector.DOMBreakpointView.prototype.populateStatusMessageElement.decorateNode):
3088         (WebInspector.DOMBreakpointView.prototype.populateStatusMessageElement):
3089         * inspector/front-end/DOMAgent.js:
3090         (WebInspector.DOMDocument):
3091         (WebInspector.DOMAgent):
3092         (WebInspector.DOMAgent.prototype.requestDocument):
3093         (WebInspector.DOMAgent.prototype.pushNodeToFrontend):
3094         (WebInspector.DOMAgent.prototype.pushNodeByPathToFrontend):
3095         (WebInspector.DOMAgent.prototype._attributesUpdated):
3096         (WebInspector.DOMAgent.prototype._characterDataModified):
3097         (WebInspector.DOMAgent.prototype._documentUpdated):
3098         (WebInspector.DOMAgent.prototype._setDocument):
3099         (WebInspector.DOMAgent.prototype._setDetachedRoot):
3100         (WebInspector.DOMAgent.prototype._setChildNodes):
3101         (WebInspector.DOMAgent.prototype._childNodeInserted):
3102         (WebInspector.DOMAgent.prototype._childNodeRemoved):
3103         (WebInspector.DOMDispatcher.prototype.documentUpdated):
3104         * inspector/front-end/ElementsPanel.js:
3105         (WebInspector.ElementsPanel.prototype.show):
3106         (WebInspector.ElementsPanel.prototype.setDocument):
3107         * inspector/front-end/MetricsSidebarPane.js:
3108         * inspector/front-end/RemoteObject.js:
3109         (WebInspector.RemoteObject.prototype.pushNodeToFrontend):
3110
3111 2011-03-04  Andrey Kosyakov  <caseq@chromium.org>
3112
3113         Reviewed by Pavel Feldman.
3114
3115         Web Inspector: summary bar may overlap content of the network item view
3116         https://bugs.webkit.org/show_bug.cgi?id=55656
3117
3118         - drop custom summary bar placement logic, do it with CSS instead.
3119
3120         * inspector/front-end/NetworkPanel.js:
3121         (WebInspector.NetworkPanel.prototype.resize):
3122         (WebInspector.NetworkPanel.prototype._createSummaryBar):
3123         (WebInspector.NetworkPanel.prototype._updateSummaryBar):
3124         (WebInspector.NetworkPanel.prototype._updateFilter):
3125         (WebInspector.NetworkPanel.prototype.show):
3126         (WebInspector.NetworkPanel.prototype.refresh):
3127         (WebInspector.NetworkPanel.prototype._reset):
3128         (WebInspector.NetworkPanel.prototype._setLargerResources):
3129         (WebInspector.NetworkPanel.prototype._updateOffscreenRows):
3130         * inspector/front-end/networkPanel.css:
3131         (.network-sidebar .data-grid td):
3132         (.network-sidebar tr.filler td):
3133         (.network-summary-bar):
3134         (.network-sidebar .data-grid .network-summary-bar td):
3135         (.network-summary-bar img):
3136
3137 2011-03-04  James Su <suzhe@chromium.org>
3138
3139         Reviewed by Dimitri Glazkov.
3140
3141         [Chromium] keycode is always 0 when using non-Latin keyboard layout.
3142         https://bugs.webkit.org/show_bug.cgi?id=54939
3143
3144         Add KeyEventCocoa.{h,mm}, so that we can reuse them in chromium.
3145
3146         No intended functionality change.
3147
3148         * WebCore.gyp/WebCore.gyp:
3149         * WebCore.gypi:
3150
3151 2011-03-04  Patrick Gansterer  <paroga@webkit.org>
3152
3153         Unreviewed EFL build fix for r80324.
3154
3155         * platform/efl/RenderThemeEfl.cpp:
3156         (WebCore::RenderThemeEfl::paintThemePart):
3157
3158 2011-03-04  Patrick Gansterer  <paroga@webkit.org>
3159
3160         Unreviewed EFL build fix for r80324.
3161
3162         * platform/efl/RenderThemeEfl.cpp:
3163         (WebCore::RenderThemeEfl::paintThemePart):
3164
3165 2011-03-03  Yury Semikhatsky  <yurys@chromium.org>
3166
3167         Reviewed by Pavel Feldman.
3168
3169         Web Inspector: AppCache agent should have same lifetime as InspectorAgent
3170         https://bugs.webkit.org/show_bug.cgi?id=55673
3171
3172         * inspector/InspectorAgent.cpp:
3173         (WebCore::InspectorAgent::InspectorAgent):
3174         (WebCore::InspectorAgent::setFrontend):
3175         (WebCore::InspectorAgent::disconnectFrontend):
3176         (WebCore::InspectorAgent::createFrontendLifetimeAgents):
3177         (WebCore::InspectorAgent::releaseFrontendLifetimeAgents):
3178         (WebCore::InspectorAgent::didCommitLoad):
3179         * inspector/InspectorApplicationCacheAgent.cpp:
3180         (WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent):
3181         (WebCore::InspectorApplicationCacheAgent::setFrontend):
3182         (WebCore::InspectorApplicationCacheAgent::clearFrontend):
3183         * inspector/InspectorApplicationCacheAgent.h:
3184         * inspector/InspectorInstrumentation.cpp:
3185         (WebCore::InspectorInstrumentation::networkStateChangedImpl):
3186         (WebCore::InspectorInstrumentation::updateApplicationCacheStatusImpl):
3187         * inspector/InstrumentingAgents.h:
3188         (WebCore::InstrumentingAgents::inspectorApplicationCacheAgent):
3189         (WebCore::InstrumentingAgents::setInspectorApplicationCacheAgent):
3190
3191 2011-03-03  Brian Weinstein  <bweinstein@apple.com>
3192
3193         Reviewed by Adam Roben.
3194
3195         Cleanup from https://bugs.webkit.org/show_bug.cgi?id=55427.
3196         
3197         Call WebCore::startObservingCookieChanges and WebCore::stopObservingCookieChanges
3198         on all platforms, and stub the functions on platforms that don't implement them.
3199         
3200         Add startObservingCookieChanges and stopObservingCookieChanges to TemporaryLinkStubs
3201         for platforms that don't implement them.
3202
3203         * platform/android/TemporaryLinkStubs.cpp:
3204         * platform/brew/TemporaryLinkStubs.cpp:
3205         * platform/chromium/TemporaryLinkStubs.cpp:
3206         * platform/efl/TemporaryLinkStubs.cpp:
3207         * platform/gtk/TemporaryLinkStubs.cpp:
3208         * platform/haiku/TemporaryLinkStubs.cpp:
3209         * platform/qt/TemporaryLinkStubsQt.cpp:
3210         * platform/win/TemporaryLinkStubs.cpp:
3211
3212 2011-03-03  Eric Seidel  <eric@webkit.org>
3213
3214         Reviewed by Dimitri Glazkov.
3215
3216         Refactor createRendererIfNeeded to avoid premature nextRenderer calculation
3217         https://bugs.webkit.org/show_bug.cgi?id=55720
3218
3219         There are two thing going on here:
3220         1. Delaying nextRenderer calculation until we actually use it,
3221            previously we would always compute nextRenderer (expensive!)
3222            even if no renderer insertion was to occur.
3223         2. Fix fullscreen elements to be inserted into the right place
3224            in the rendering tree.  Previously they would always be the last
3225            child in their parent's list, even if that wasn't the right place.
3226
3227         I don't know of any way to trigger the fullscreen bug,
3228         but I tested this with peacekeeper and saw no performance change.
3229
3230         Peacekeeper's domJQueryBasics is now possibly as much as 2% faster
3231         but I don't really trust the stability of peacekeeper to begin with.
3232
3233         This paves the way for further improvement in our nextRenderer calculation.
3234
3235         * dom/Node.cpp:
3236         (WebCore::Node::attach):
3237         (WebCore::Node::previousRenderer):
3238         (WebCore::Node::nextRenderer):
3239         (WebCore::Node::createRendererAndStyle):
3240         (WebCore::wrapWithRenderFullScreen):
3241         (WebCore::Node::createRendererIfNeeded):
3242         * dom/Node.h:
3243
3244 2011-03-03  Ryosuke Niwa  <rniwa@webkit.org>
3245
3246         Reviewed by Darin Adler.
3247
3248         Remove LOOSE_PASS_OWN_ARRAY_PTR from PassOwnArrayPtr.h
3249         https://bugs.webkit.org/show_bug.cgi?id=55554
3250
3251         * platform/Length.cpp:
3252         (WebCore::newLengthArray): Pass nullptr instead of 0.
3253
3254 2011-03-03  Nat Duca  <nduca@chromium.org>
3255
3256         Reviewed by James Robinson.
3257
3258         [chromium] Create a LayerChromium layerTreeAsText. Add HUD to
3259         LayerRendererChromium that draws compositor FPS and, optionally,
3260         the layer tree.
3261         https://bugs.webkit.org/show_bug.cgi?id=54710
3262
3263         * WebCore.gypi:
3264         * platform/graphics/chromium/Canvas2DLayerChromium.h:
3265         (WebCore::Canvas2DLayerChromium::drawsContent):
3266         * platform/graphics/chromium/CanvasLayerChromium.h:
3267         (WebCore::CanvasLayerChromium::layerTypeAsString):
3268         * platform/graphics/chromium/ContentLayerChromium.cpp:
3269         (WebCore::writeIndent):
3270         (WebCore::ContentLayerChromium::dumpLayerProperties):
3271         * platform/graphics/chromium/ContentLayerChromium.h:
3272         (WebCore::ContentLayerChromium::drawsContent):
3273         (WebCore::ContentLayerChromium::layerTypeAsString):
3274         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
3275         (WebCore::GraphicsLayerChromium::setName):
3276         (WebCore::GraphicsLayerChromium::updateNames):
3277         (WebCore::GraphicsLayerChromium::updateLayerPreserves3D):
3278         (WebCore::GraphicsLayerChromium::setupContentsLayer):
3279         * platform/graphics/chromium/GraphicsLayerChromium.h:
3280         * platform/graphics/chromium/ImageLayerChromium.h:
3281         (WebCore::ImageLayerChromium::drawsContent):
3282         (WebCore::ImageLayerChromium::layerTypeAsString):
3283         * platform/graphics/chromium/LayerChromium.cpp:
3284         (WebCore::LayerChromium::LayerChromium):
3285         (WebCore::LayerChromium::setName):
3286         (WebCore::LayerChromium::layerTreeAsText):
3287         (WebCore::writeIndent):
3288         (WebCore::LayerChromium::dumpLayer):
3289         (WebCore::LayerChromium::dumpLayerProperties):
3290         * platform/graphics/chromium/LayerChromium.h:
3291         (WebCore::LayerChromium::name):
3292         (WebCore::LayerChromium::drawsContent):
3293         (WebCore::LayerChromium::debugID):
3294         (WebCore::LayerChromium::layerTypeAsString):
3295         * platform/graphics/chromium/LayerRendererChromium.cpp:
3296         (WebCore::LayerRendererChromium::LayerRendererChromium):
3297         (WebCore::LayerRendererChromium::~LayerRendererChromium):
3298         (WebCore::LayerRendererChromium::drawLayers):
3299         (WebCore::LayerRendererChromium::present):
3300         (WebCore::LayerRendererChromium::layerTreeAsText):
3301         (WebCore::LayerRendererChromium::dumpRenderSurfaces):
3302         * platform/graphics/chromium/LayerRendererChromium.h:
3303         (WebCore::LayerRendererChromium::getHeadsUpDisplay):
3304         (WebCore::LayerRendererChromium::rootVisibleRect):
3305         * platform/graphics/chromium/PluginLayerChromium.h:
3306         (WebCore::PluginLayerChromium::drawsContent):
3307         (WebCore::PluginLayerChromium::layerTypeAsString):
3308         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
3309         (WebCore::RenderSurfaceChromium::name):
3310         (WebCore::writeIndent):
3311         (WebCore::RenderSurfaceChromium::dumpSurface):
3312         * platform/graphics/chromium/RenderSurfaceChromium.h:
3313         * platform/graphics/chromium/VideoLayerChromium.h:
3314         (WebCore::VideoLayerChromium::drawsContent):
3315         (WebCore::VideoLayerChromium::layerTypeAsString):
3316         * platform/graphics/chromium/WebGLLayerChromium.h:
3317         (WebCore::WebGLLayerChromium::drawsContent):
3318         (WebCore::WebGLLayerChromium::layerTypeAsString):
3319         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp: Added.
3320         (WebCore::CCHeadsUpDisplay::CCHeadsUpDisplay):
3321         (WebCore::CCHeadsUpDisplay::~CCHeadsUpDisplay):
3322         (WebCore::CCHeadsUpDisplay::draw):
3323         (WebCore::CCHeadsUpDisplay::drawHudContents):
3324         (WebCore::CCHeadsUpDisplay::onPresent):
3325         * platform/graphics/chromium/cc/CCHeadsUpDisplay.h: Added.
3326         (WebCore::CCHeadsUpDisplay::setShowFPSCounter):
3327         (WebCore::CCHeadsUpDisplay::showFPSCounter):
3328         (WebCore::CCHeadsUpDisplay::setShowPlatformLayerTree):
3329         (WebCore::CCHeadsUpDisplay::showPlatformLayerTree):
3330         (WebCore::CCHeadsUpDisplay::enabled):
3331         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
3332         (WebCore::CCLayerImpl::CCLayerImpl):
3333         (WebCore::writeIndent):
3334         (WebCore::CCLayerImpl::dumpLayerProperties):
3335         * platform/graphics/chromium/cc/CCLayerImpl.h:
3336         (WebCore::CCLayerImpl::debugID):
3337         (WebCore::CCLayerImpl::setName):
3338         (WebCore::CCLayerImpl::name):
3339
3340 2011-03-02  Ojan Vafai  <ojan@chromium.org>
3341
3342         Reviewed by Darin Adler.
3343
3344         crash in adoptNode with mutation events
3345         https://bugs.webkit.org/show_bug.cgi?id=50046
3346
3347         If the DOM is modified during the removeChild call in adoptNode,
3348         then the setDocument call that follows can leave the DOM in an
3349         inconsistent state.
3350
3351         * dom/Document.cpp:
3352         (WebCore::Document::adoptNode):
3353
3354 2011-03-03  Dimitri Glazkov  <dglazkov@chromium.org>
3355
3356         Reviewed by Darin Adler.
3357
3358         Add audio tag tests to the media controls manual test suite.
3359         https://bugs.webkit.org/show_bug.cgi?id=55722
3360
3361         * manual-tests/media-controls.html: Added 4 audio tests.
3362
3363 2011-03-03  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3364
3365         Reviewed by Eric Seidel.
3366
3367         [EFL] Adjust functions of RenderThemeEfl.cpp to WebKit parameter style
3368         https://bugs.webkit.org/show_bug.cgi?id=54392
3369
3370         Functions of RenderThemeEfl.cpp adhere efl coding style instead of WebKit coding style.
3371         WebCore's functions should adhere WebKit coding style.
3372
3373         * platform/efl/RenderThemeEfl.cpp:
3374         (WebCore::RenderThemeEfl::themePartCacheEntryReset):
3375         (WebCore::RenderThemeEfl::themePartCacheEntrySurfaceCreate):
3376         (WebCore::RenderThemeEfl::cacheThemePartNew):
3377         (WebCore::RenderThemeEfl::cacheThemePartReset):
3378         (WebCore::RenderThemeEfl::cacheThemePartResizeAndReset):
3379         (WebCore::RenderThemeEfl::cacheThemePartGet):
3380         (WebCore::RenderThemeEfl::cacheThemePartFlush):
3381         (WebCore::RenderThemeEfl::applyEdjeStateFromForm):
3382         (WebCore::RenderThemeEfl::paintThemePart):
3383         (WebCore::renderThemeEflColorClassSelectionActive):
3384         (WebCore::renderThemeEflColorClassSelectionInactive):
3385         (WebCore::renderThemeEflColorClassFocusRing):
3386         (WebCore::renderThemeEflColorClassButtonText):
3387         (WebCore::renderThemeEflColorClassComboText):
3388         (WebCore::renderThemeEflColorClassEntryText):
3389         (WebCore::renderThemeEflColorClassSearchText):
3390         (WebCore::RenderThemeEfl::applyPartDescription):
3391         (WebCore::RenderThemeEfl::applyPartDescriptions):
3392         (WebCore::RenderThemeEfl::controlSupportsTints):
3393         (WebCore::RenderThemeEfl::baselinePosition):
3394         (WebCore::RenderThemeEfl::paintSliderTrack):
3395         (WebCore::RenderThemeEfl::adjustSliderTrackStyle):
3396         (WebCore::RenderThemeEfl::adjustSliderThumbStyle):
3397         (WebCore::RenderThemeEfl::paintSliderThumb):
3398         (WebCore::RenderThemeEfl::adjustCheckboxStyle):
3399         (WebCore::RenderThemeEfl::paintCheckbox):
3400         (WebCore::RenderThemeEfl::adjustRadioStyle):
3401         (WebCore::RenderThemeEfl::paintRadio):
3402         (WebCore::RenderThemeEfl::adjustButtonStyle):
3403         (WebCore::RenderThemeEfl::paintButton):
3404         (WebCore::RenderThemeEfl::adjustMenuListStyle):
3405         (WebCore::RenderThemeEfl::paintMenuList):
3406         (WebCore::RenderThemeEfl::adjustTextFieldStyle):
3407         (WebCore::RenderThemeEfl::paintTextField):
3408         (WebCore::RenderThemeEfl::adjustTextAreaStyle):
3409         (WebCore::RenderThemeEfl::paintTextArea):
3410         (WebCore::RenderThemeEfl::adjustSearchFieldDecorationStyle):
3411         (WebCore::RenderThemeEfl::paintSearchFieldDecoration):
3412         (WebCore::RenderThemeEfl::adjustSearchFieldResultsButtonStyle):
3413         (WebCore::RenderThemeEfl::paintSearchFieldResultsButton):
3414         (WebCore::RenderThemeEfl::adjustSearchFieldResultsDecorationStyle):
3415         (WebCore::RenderThemeEfl::paintSearchFieldResultsDecoration):
3416         (WebCore::RenderThemeEfl::adjustSearchFieldCancelButtonStyle):
3417         (WebCore::RenderThemeEfl::paintSearchFieldCancelButton):
3418         (WebCore::RenderThemeEfl::adjustSearchFieldStyle):
3419         (WebCore::RenderThemeEfl::paintSearchField):
3420         (WebCore::RenderThemeEfl::adjustProgressBarStyle):
3421         (WebCore::RenderThemeEfl::paintProgressBar):
3422         (WebCore::RenderThemeEfl::paintMediaFullscreenButton):
3423         (WebCore::RenderThemeEfl::paintMediaMuteButton):
3424         (WebCore::RenderThemeEfl::paintMediaPlayButton):
3425         (WebCore::RenderThemeEfl::paintMediaSeekBackButton):
3426         (WebCore::RenderThemeEfl::paintMediaSeekForwardButton):
3427         (WebCore::RenderThemeEfl::paintMediaSliderTrack):
3428         (WebCore::RenderThemeEfl::paintMediaSliderThumb):
3429         (WebCore::RenderThemeEfl::paintMediaVolumeSliderContainer):
3430         (WebCore::RenderThemeEfl::paintMediaVolumeSliderTrack):
3431         (WebCore::RenderThemeEfl::paintMediaVolumeSliderThumb):
3432         (WebCore::RenderThemeEfl::paintMediaCurrentTime):
3433
3434 2011-03-03  Andy Estes  <aestes@apple.com>
3435
3436         Reviewed by Adam Barth.
3437
3438         Assertion failure in toElement(WebCore::Node*)
3439         https://bugs.webkit.org/show_bug.cgi?id=55697
3440
3441         Test: fast/parser/fragment-foreign-content.html
3442
3443         * html/parser/HTMLTreeBuilder.cpp:
3444         (WebCore::HTMLTreeBuilder::constructTreeFromAtomicToken): The current
3445         element in the HTMLElementStack might be a DocumentFragment if a
3446         fragment is being parsed who's first node is foreign content.
3447
3448 2011-03-03  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
3449
3450         Reviewed by Kenneth Rohde Christiansen.
3451
3452         [QT] Implement mock client-based geolocation for layout testing
3453         https://bugs.webkit.org/show_bug.cgi?id=54334
3454
3455         Implements client() to GeolocationController to re-use geolocationClientMock class
3456         for layout testing purpose.
3457
3458         * page/GeolocationController.h:
3459         (WebCore::GeolocationController::client):
3460
3461 2011-03-03  Ryosuke Niwa  <rniwa@webkit.org>
3462
3463         Reviewed by Kent Tamura.
3464
3465         Stop calling deprecatedNode and deprecatedEditingOffset in InsertTextCommand
3466         https://bugs.webkit.org/show_bug.cgi?id=55352
3467
3468         Stopped calling deprecatedNode and deprecatedEditingOffset in the following functions:
3469
3470         * editing/CompositeEditCommand.cpp:
3471         (WebCore::CompositeEditCommand::positionOutsideTabSpan): Takes care of all types of positions and
3472         no longer calls deprecated functions.
3473         * editing/InsertTextCommand.cpp:
3474         (WebCore::InsertTextCommand::positionInsideTextNode): Ditto; renamed from prepareForTextInsertion.
3475         Check if the text node inside a tab span before checking if the container node is a text node
3476         because the position before or after a text node can still be inside a tab span.
3477         (WebCore::InsertTextCommand::input): No longer calls deprecated functions.
3478         * editing/InsertTextCommand.h:
3479         * editing/ModifySelectionListLevel.cpp:
3480         (WebCore::getStartEndListChildren): Call anchorNode() instead of deprecatedNode() because the start
3481         or the end of selection could be an immediate child of a list node (e.g. br inside ul)
3482
3483 2011-03-03  Hans Wennborg  <hans@chromium.org>
3484
3485         Reviewed by Jeremy Orlow.
3486
3487         IndexedDB: Move last bits of SQL into IDBBackingStore
3488         https://bugs.webkit.org/show_bug.cgi?id=55668
3489
3490         After this, all SQL code for IndexedDB is in IDBBackingStore.cpp.
3491
3492         No new tests: refactoring only.
3493
3494         * storage/IDBBackingStore.cpp:
3495         (WebCore::IDBBackingStore::createTransaction):
3496         * storage/IDBBackingStore.h:
3497         * storage/IDBCursorBackendImpl.h:
3498         * storage/IDBDatabaseBackendImpl.cpp:
3499         (WebCore::IDBDatabaseBackendImpl::backingStore):
3500         * storage/IDBDatabaseBackendImpl.h:
3501         * storage/IDBIndexBackendImpl.h:
3502         * storage/IDBKey.h:
3503         * storage/IDBObjectStoreBackendImpl.h:
3504         * storage/IDBTransactionBackendImpl.cpp:
3505         (WebCore::IDBTransactionBackendImpl::IDBTransactionBackendImpl):
3506         * storage/IDBTransactionBackendImpl.h:
3507         * storage/IDBTransactionBackendInterface.h:
3508         * storage/IDBTransactionCoordinator.cpp:
3509
3510 2011-03-03  Adam Klein  <adamk@chromium.org>
3511
3512         Reviewed by David Levin.