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