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