2011-01-05 Laszlo Gombos <laszlo.1.gombos@nokia.com>
[WebKit-https.git] / WebCore / ChangeLog
1 2011-01-05  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2
3         Reviewed by Ariya Hidayat.
4
5         [Qt] [Symbian] Make CONFIG-=def_files the default configuration for trunk builds
6         https://bugs.webkit.org/show_bug.cgi?id=51888
7
8         Overrule Qt's default from qconfig.pri for non-production builds so
9         that CONFIG(def_files) evaluates to false and QtWebKit trunk builds succeed.
10
11         No new tests as there is no new functionality.
12
13         * WebCore.pro:
14
15 2011-01-05  Sheriff Bot  <webkit.review.bot@gmail.com>
16
17         Unreviewed, rolling out r74778.
18         http://trac.webkit.org/changeset/74778
19         https://bugs.webkit.org/show_bug.cgi?id=51930
20
21         Android and QtWebKit-V8 uses V8DOMWindowShell::setContext.
22         (Requested by bbandix on #webkit).
23
24         * bindings/v8/V8DOMWindowShell.cpp:
25         (WebCore::V8DOMWindowShell::setContext):
26         * bindings/v8/V8DOMWindowShell.h:
27
28 2011-01-05  Yi Shen  <yi.4.shen@nokia.com>
29
30         Reviewed by Andreas Kling.
31
32         [Qt] Animated GIF images does not animate 10x as expected by default.
33         https://bugs.webkit.org/show_bug.cgi?id=36818
34
35         Add a test animated GIF which should be displayed 2 times and stop.
36
37         * manual-tests/animated-gif-looping.html:
38         * manual-tests/resources/animated-2x.gif: Added.
39
40 2011-01-05  Carlos Garcia Campos  <cgarcia@igalia.com>
41
42         Reviewed by Martin Robinson.
43
44         [GTK] Fork code of ScrollbarThemeGtk that will differ for GTK+ 3
45         https://bugs.webkit.org/show_bug.cgi?id=51923
46
47         Split out pieces of ScrollbarThemeGtk into ScrollbarThemeGtk2 and
48         ScrollbarThemeGtk3 that will differ between GTK+ 2 and GTK+ 3.
49
50         No new tests. This should not change functionality.
51
52         * GNUmakefile.am: Add ScrollbarThemeGtk2.cpp and ScrollbarThemeGtk3.cpp
53         * platform/gtk/ScrollbarThemeGtk.cpp:
54         (WebCore::ScrollbarThemeGtk::updateScrollbarsFrameThickness):
55         * platform/gtk/ScrollbarThemeGtk.h:
56         * platform/gtk/ScrollbarThemeGtk2.cpp: Added.
57         (WebCore::ScrollbarThemeGtk::updateThemeProperties):
58         (WebCore::ScrollbarThemeGtk::paintTrackBackground):
59         (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
60         (WebCore::ScrollbarThemeGtk::paintThumb):
61         (WebCore::ScrollbarThemeGtk::paintButton):
62         * platform/gtk/ScrollbarThemeGtk3.cpp: Added.
63         (WebCore::ScrollbarThemeGtk::updateThemeProperties):
64         (WebCore::ScrollbarThemeGtk::paintTrackBackground):
65         (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
66         (WebCore::ScrollbarThemeGtk::paintThumb):
67         (WebCore::ScrollbarThemeGtk::paintButton):
68
69 2011-01-05  Patrick Gansterer  <paroga@webkit.org>
70
71         Reviewed by Andreas Kling.
72
73         [CMake] Fix the usage of SOURCE_GROUP
74         https://bugs.webkit.org/show_bug.cgi?id=51739
75
76         * CMakeLists.txt:
77
78 2011-01-05  Andras Becsi  <abecsi@webkit.org>
79
80         Reviewed by Csaba Osztrogonác.
81
82         [Qt][V8] Fix the build after recent changes.
83
84         No new tests needed.
85
86         * WebCore.pro: Add missing files, and remove obsolete ones.
87
88 2011-01-05  Yong Li  <yoli@rim.com>
89
90         Reviewed by Adam Barth.
91
92         Suspend HTMLParserScheduler when page load is deferred to
93         avoid potential JS re-entrancy. Otherwise, when JS execution is triggered
94         from an external script or by events, and is blocked by a modal dialog,
95         WebKit can parse more HTML source and also start another JS execution.
96         
97         https://bugs.webkit.org/show_bug.cgi?id=48077
98
99         Test case: WebCore/manual-tests/bugzilla-48077.html.
100
101         * dom/DocumentParser.cpp:
102         (WebCore::DocumentParser::suspendScheduledTasks):
103         (WebCore::DocumentParser::resumeScheduledTasks):
104         * dom/DocumentParser.h:
105         * html/parser/HTMLDocumentParser.cpp:
106         (WebCore::HTMLDocumentParser::suspendScheduledTasks):
107         (WebCore::HTMLDocumentParser::resumeScheduledTasks):
108         * html/parser/HTMLParserScheduler.cpp:
109         (WebCore::HTMLParserScheduler::HTMLParserScheduler):
110         (WebCore::HTMLParserScheduler::suspend):
111         (WebCore::HTMLParserScheduler::resume):
112         * html/parser/HTMLParserScheduler.h:
113         (WebCore::HTMLParserScheduler::isScheduledForResume):
114         * page/PageGroupLoadDeferrer.cpp:
115         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
116         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
117
118 2011-01-05  Simon Hausmann  <simon.hausmann@nokia.com>
119
120         Reviewed by Kenneth Rohde Christiansen, Gustavo Noronha Silva
121
122         [GStreamer] MediaPlayerPrivateGStreamer::totalBytes() does not work reliably
123         https://bugs.webkit.org/show_bug.cgi?id=51926
124
125         Work around potential upstream bug: Querying a GstBin for the duration,
126         will forward the query to all sink children. Our WebKitWebSrc however
127         is a bin with only source children, therefore the query fails. Until
128         this is changed upstream, this patch works around it as follows,
129         based on suggestion by Philippe Normand and Sebastian Dröge:
130
131         When the initial query fails, attempt the same query on all source
132         pads and take the maximum length reported.
133
134         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
135         (WebCore::MediaPlayerPrivateGStreamer::totalBytes):
136
137 2011-01-05  Philippe Normand  <pnormand@igalia.com>
138
139         Rubber-stamped by Eric Seidel.
140
141         [GStreamer] build fails with gstreamer core 0.10.31 and -plugins-base 0.10.30
142         https://bugs.webkit.org/show_bug.cgi?id=51810
143
144         Based on a patch by Mart Raudsepp.
145
146         No new tests, build fix only.
147
148         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
149         (WebCore::GStreamerGWorld::setWindowOverlay): Use the new xoverlay
150         API if the GST_CHECK_PLUGINS_BASE_VERSION macro is defined. It was
151         introduced in same version as the xoverlay API change.
152
153 2011-01-05  Leo Yang  <leo.yang@torchmobile.com.cn>
154
155         Reviewed by Dirk Schulze.
156
157         Malformed SVG causes crash in updateContainerOffset
158         https://bugs.webkit.org/show_bug.cgi?id=44610
159
160         We should check recursive <use> at the begining of
161         WebCore::SVGUseElement::buildInstanceTree instead
162         of at the end of it because the target element's
163         children may cause infinite recursive <use>.
164
165         Test: svg/custom/recursive-use.svg
166
167         * svg/SVGUseElement.cpp:
168         (WebCore::SVGUseElement::buildInstanceTree):
169         (WebCore::SVGUseElement::hasCycleUseReferencing):
170         * svg/SVGUseElement.h:
171
172 2011-01-04  Antti Koivisto  <antti@apple.com>
173
174         Reviewed by Dan Bernstein.
175
176         https://bugs.webkit.org/show_bug.cgi?id=51907
177         Style selector should only be recalculated when the pending sheet count goes to zero
178         
179         Shark says this is a significant performance improvement on some sites with lots of stylesheets.
180
181         * dom/Document.cpp:
182         (WebCore::Document::removePendingSheet):
183
184 2011-01-05  Carlos Garcia Campos  <cgarcia@igalia.com>
185
186         Reviewed by Martin Robinson.
187
188         [GTK] Use GtkStyleContext to get platform colors
189         https://bugs.webkit.org/show_bug.cgi?id=51830
190
191         Use GtkStyleContext API to get platform colors when building with
192         GTK+ 3.x.
193
194         No new tests. This should not change functionality.
195
196         * platform/graphics/Color.h: Add specialized constructor for GdkRGBA.
197         * platform/graphics/gtk/ColorGtk.cpp:
198         (WebCore::Color::Color):
199         (WebCore::Color::operator GdkRGBA):
200         * platform/gtk/RenderThemeGtk3.cpp:
201         (WebCore::RenderThemeGtk::platformActiveSelectionBackgroundColor):
202         (WebCore::RenderThemeGtk::platformInactiveSelectionBackgroundColor):
203         (WebCore::RenderThemeGtk::platformActiveSelectionForegroundColor):
204         (WebCore::RenderThemeGtk::platformInactiveSelectionForegroundColor):
205         (WebCore::RenderThemeGtk::activeListBoxSelectionBackgroundColor):
206         (WebCore::RenderThemeGtk::inactiveListBoxSelectionBackgroundColor):
207         (WebCore::RenderThemeGtk::activeListBoxSelectionForegroundColor):
208         (WebCore::RenderThemeGtk::inactiveListBoxSelectionForegroundColor):
209         (WebCore::RenderThemeGtk::systemColor):
210
211 2011-01-05  Carlos Garcia Campos  <cgarcia@igalia.com>
212
213         Unreviewed. Build fix for GTK when using gtk+-3 after r75009.
214
215         * platform/gtk/RenderThemeGtk3.cpp:
216         (WebCore::RenderThemeGtk::getStockIcon): Use adoptGRef instead of
217         adoptGRefPtr which doesn't exist.
218
219 2011-01-05  Alexey Proskuryakov  <ap@apple.com>
220
221         Reviewed by Sam Weinig.
222
223         https://bugs.webkit.org/show_bug.cgi?id=51903
224         Tell UI process which subframe is largest
225
226         * WebCore.exp.in: Exported FrameView::contentsSize().
227
228 2011-01-04  Chris Fleizach  <cfleizach@apple.com>
229
230         Unreviewed. GTK build fix.
231
232         WK2: Support Accessibility
233         https://bugs.webkit.org/show_bug.cgi?id=51859
234
235         * page/FrameView.cpp:
236         (WebCore::FrameView::axObjectCache):
237
238 2011-01-04  Sheriff Bot  <webkit.review.bot@gmail.com>
239
240         Unreviewed, rolling out r74992.
241         http://trac.webkit.org/changeset/74992
242         https://bugs.webkit.org/show_bug.cgi?id=51917
243
244         Crash in HTMLDocumentParser::suspendScheduledTasks()
245         (Requested by tkent on #webkit).
246
247         * dom/DocumentParser.cpp:
248         * dom/DocumentParser.h:
249         * html/parser/HTMLDocumentParser.cpp:
250         * html/parser/HTMLDocumentParser.h:
251         * html/parser/HTMLParserScheduler.cpp:
252         (WebCore::HTMLParserScheduler::HTMLParserScheduler):
253         * html/parser/HTMLParserScheduler.h:
254         (WebCore::HTMLParserScheduler::isScheduledForResume):
255         * page/PageGroupLoadDeferrer.cpp:
256         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
257         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
258
259 2011-01-04  Benjamin Poulain  <benjamin.poulain@nokia.com>
260
261         Reviewed by Kenneth Rohde Christiansen.
262
263         [Qt] [WK2] Add support for non-trivial context menu action
264         https://bugs.webkit.org/show_bug.cgi?id=51902
265
266         Fix the preprocessor guard for ContextMenuItemTagSelectAll in
267         the implementation of ContextMenuController::contextMenuItemSelected(). The guard was
268         inconsistent with what is defined in ContextMenuItem.h.
269
270         * page/ContextMenuController.cpp:
271         (WebCore::ContextMenuController::contextMenuItemSelected):
272
273 2011-01-04  Tony Gentilcore  <tonyg@chromium.org>
274
275         Reviewed by Ryosuke Niwa.
276
277         Avoid manual ref/deref in AsyncScriptRunner by using PendingScript
278         https://bugs.webkit.org/show_bug.cgi?id=51723
279
280         ScriptElement should also be able to keep its Element+CachedScript in
281         a PendingScript, and then executeScriptSoon can accept a PendingScript.
282         Once HTMLScriptRunner, ScriptElement, and AsyncScriptRunner all use
283         PendingScripts, then generic request and execute which operate on
284         PendingScripts can be factored out to avoid code duplicate that we have.
285
286         No new tests because no new functionality.
287
288         * dom/AsyncScriptRunner.cpp:
289         (WebCore::AsyncScriptRunner::~AsyncScriptRunner):
290         (WebCore::AsyncScriptRunner::executeScriptSoon):
291         (WebCore::AsyncScriptRunner::timerFired):
292         * dom/AsyncScriptRunner.h:
293         * dom/PendingScript.h: Add ctor which sets element and cachedScript. Rename adoptElement->setElement.
294         * dom/HTMLScriptRunner.cpp:
295         (WebCore::HTMLScriptRunner::requestPendingScript):
296
297 2011-01-04  Jeff Miller  <jeffm@apple.com>
298
299         Reviewed by Darin Adler.
300
301         Member variable and method naming cleanup to be consistent with WebKit2.
302         https://bugs.webkit.org/show_bug.cgi?id=51228
303
304         * page/win/EventHandlerWin.cpp:
305         (WebCore::EventHandler::eventActivatedView):
306         Rename activatedWebView() to didActivateWebView().
307         
308         * platform/PlatformMouseEvent.h:
309         Rename m_activatedWebView to m_didActivateWebView.
310         
311         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
312         Initialize platform-specific member variables in PlatformMouseEvent constructors.
313         
314         (WebCore::PlatformMouseEvent::didActivateWebView):
315         Rename activatedWebView() to didActivateWebView().
316
317         * platform/win/PlatformMouseEventWin.cpp:
318         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
319         Rename m_activatedWebView to m_didActivateWebView.
320
321 2011-01-04  Yael Aharon  <yael.aharon@nokia.com>
322
323         Reviewed by Darin Adler.
324
325         CSS3 :nth-child selector and valid whitespace test fails
326         https://bugs.webkit.org/show_bug.cgi?id=36279
327
328         Teach the tokenizer to allow white spaces around [+/-] signs in nth constructs.
329
330         Test: fast/css/css3-nth-space.html
331
332         * css/tokenizer.flex:
333
334 2011-01-04  Chris Fleizach  <cfleizach@apple.com>
335
336         Unreviewed. Build fix.
337
338         WK2: Support Accessibility
339         https://bugs.webkit.org/show_bug.cgi?id=51859
340
341         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
342         (fallbackObject):
343
344 2011-01-04  Cosmin Truta  <ctruta@chromium.org>
345
346         Reviewed by Eric Seidel.
347
348         [chromium] PNG compression settings optimized for speed
349         https://bugs.webkit.org/show_bug.cgi?id=51719
350
351         Although Z_HUFFMAN_ONLY is the fastest on hard-to-compress images,
352         it is also the slowest, by a wide margin, on easy-to-compress images.
353         Use a more balanced configuration, based on the libpng compression defaults,
354         but with a faster compression level (3 instead of 6), and a faster filter
355         ("sub" instead of "all").
356
357         No change in behaviour, so no new tests.
358
359         * platform/image-encoders/skia/PNGImageEncoder.cpp:
360         (WebCore::PNGImageEncoder::encode):
361
362 2011-01-04  Chris Fleizach  <cfleizach@apple.com>
363
364         Reviewed by Sam Weinig.
365
366         WK2: Support Accessibility
367         https://bugs.webkit.org/show_bug.cgi?id=51859
368
369         WK2 doesn't use platform scroll views anymore. Accessibility code
370         needs to have its own scroll views. 
371
372         Test: platform/mac/accessibility/webkit-scrollarea.html
373
374         * CMakeLists.txt:
375         * GNUmakefile.am:
376         * WebCore.exp.in:
377         * WebCore.gypi:
378         * WebCore.pro:
379         * WebCore.vcproj/WebCore.vcproj:
380         * WebCore.xcodeproj/project.pbxproj:
381         * accessibility/AXObjectCache.cpp:
382         (WebCore::AXObjectCache::AXObjectCache):
383         (WebCore::AXObjectCache::get):
384         (WebCore::AXObjectCache::getOrCreate):
385         (WebCore::AXObjectCache::rootObject):
386         (WebCore::AXObjectCache::remove):
387         (WebCore::AXObjectCache::handleScrollbarUpdate):
388         * accessibility/AXObjectCache.h:
389         (WebCore::AXObjectCache::handleScrollbarUpdate):
390         * accessibility/AccessibilityARIAGrid.h:
391         * accessibility/AccessibilityAllInOne.cpp:
392         * accessibility/AccessibilityImageMapLink.cpp:
393         * accessibility/AccessibilityImageMapLink.h:
394         * accessibility/AccessibilityListBoxOption.cpp:
395         * accessibility/AccessibilityListBoxOption.h:
396         * accessibility/AccessibilityObject.cpp:
397         (WebCore::AccessibilityObject::updateChildrenIfNecessary):
398         (WebCore::AccessibilityObject::elementAccessibilityHitTest):
399         (WebCore::AccessibilityObject::axObjectCache):
400         (WebCore::AccessibilityObject::focusedUIElement):
401         * accessibility/AccessibilityObject.h:
402         (WebCore::AccessibilityObject::isAccessibilityScrollView):
403         (WebCore::AccessibilityObject::isScrollView):
404         (WebCore::AccessibilityObject::canSetNumericValue):
405         (WebCore::AccessibilityObject::scrollBar):
406         (WebCore::AccessibilityObject::size):
407         (WebCore::AccessibilityObject::setValue):
408         * accessibility/AccessibilityRenderObject.cpp:
409         (WebCore::AccessibilityRenderObject::parentObject):
410         (WebCore::AccessibilityRenderObject::accessibilityHitTest):
411         (WebCore::AccessibilityRenderObject::updateChildrenIfNecessary):
412         (WebCore::AccessibilityRenderObject::addChildren):
413         * accessibility/AccessibilityRenderObject.h:
414         * accessibility/AccessibilityScrollView.cpp: Added.
415         (WebCore::AccessibilityScrollView::AccessibilityScrollView):
416         (WebCore::AccessibilityScrollView::create):
417         (WebCore::AccessibilityScrollView::scrollBar):
418         (WebCore::AccessibilityScrollView::children):
419         (WebCore::AccessibilityScrollView::updateChildrenIfNecessary):
420         (WebCore::AccessibilityScrollView::removeChildScrollbar):
421         (WebCore::AccessibilityScrollView::addChildScrollbar):
422         (WebCore::AccessibilityScrollView::addChildren):
423         (WebCore::AccessibilityScrollView::webAreaObject):
424         (WebCore::AccessibilityScrollView::accessibilityHitTest):
425         (WebCore::AccessibilityScrollView::document):
426         (WebCore::AccessibilityScrollView::elementRect):
427         (WebCore::AccessibilityScrollView::parentObject):
428         * accessibility/AccessibilityScrollView.h: Added.
429         (WebCore::AccessibilityScrollView::roleValue):
430         (WebCore::AccessibilityScrollView::scrollView):
431         (WebCore::AccessibilityScrollView::accessibilityIsIgnored):
432         (WebCore::AccessibilityScrollView::isAccessibilityScrollView):
433         (WebCore::toAccessibilityScrollView):
434         * accessibility/AccessibilityScrollbar.cpp:
435         (WebCore::AccessibilityScrollbar::AccessibilityScrollbar):
436         (WebCore::AccessibilityScrollbar::create):
437         (WebCore::AccessibilityScrollbar::elementRect):
438         (WebCore::AccessibilityScrollbar::document):
439         (WebCore::AccessibilityScrollbar::orientation):
440         (WebCore::AccessibilityScrollbar::isEnabled):
441         (WebCore::AccessibilityScrollbar::valueForRange):
442         (WebCore::AccessibilityScrollbar::setValue):
443         * accessibility/AccessibilityScrollbar.h:
444         (WebCore::AccessibilityScrollbar::setParent):
445         (WebCore::AccessibilityScrollbar::canSetValueAttribute):
446         (WebCore::AccessibilityScrollbar::canSetNumericValue):
447         (WebCore::AccessibilityScrollbar::isAccessibilityScrollbar):
448         (WebCore::AccessibilityScrollbar::parentObject):
449         (WebCore::AccessibilityScrollbar::roleValue):
450         * accessibility/mac/AccessibilityObjectMac.mm:
451         (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
452         * accessibility/mac/AccessibilityObjectWrapper.mm:
453         (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
454         (-[AccessibilityObjectWrapper remoteAccessibilityParentObject]):
455         (-[AccessibilityObjectWrapper position]):
456         (-[AccessibilityObjectWrapper scrollViewParent]):
457         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
458         (-[AccessibilityObjectWrapper accessibilityHitTest:]):
459         (-[AccessibilityObjectWrapper accessibilitySetValue:forAttribute:]):
460         * dom/Document.cpp:
461         (WebCore::Document::axObjectCache):
462         * loader/EmptyClients.h:
463         (WebCore::EmptyFrameLoaderClient::accessibilityRemoteObject):
464         * loader/FrameLoaderClient.h:
465         * page/FrameView.cpp:
466         (WebCore::FrameView::~FrameView):
467         (WebCore::FrameView::axObjectCache):
468         * page/FrameView.h:
469         * platform/ScrollView.cpp:
470         (WebCore::ScrollView::setHasHorizontalScrollbar):
471         (WebCore::ScrollView::setHasVerticalScrollbar):
472         * platform/Scrollbar.cpp:
473         (WebCore::Scrollbar::~Scrollbar):
474         (WebCore::Scrollbar::scroll):
475         (WebCore::Scrollbar::axObjectCache):
476         * platform/Scrollbar.h:
477         * platform/Widget.h:
478         (WebCore::Widget::axObjectCache):
479
480 2011-01-04  W. James MacLean  <wjmaclean@chromium.org>
481
482         Reviewed by Kenneth Russell.
483
484         [chromium] Add support to compositor to composite to offscreen texture.
485         https://bugs.webkit.org/show_bug.cgi?id=50833
486
487         A patch to extend compositor to be able to composite into an offscreen texture instead
488         of just directly to the display buffer. Builds on RenderSurfaceChromium support.
489         Explicitly resets alpha channel before rendering to display.
490
491         * platform/graphics/chromium/LayerRendererChromium.cpp:
492         (WebCore::LayerRendererChromium::LayerRendererChromium):
493         (WebCore::LayerRendererChromium::updateAndDrawRootLayer):
494         (WebCore::LayerRendererChromium::drawLayers):
495         (WebCore::LayerRendererChromium::setCompositeOffscreen):
496         (WebCore::LayerRendererChromium::useRenderSurface):
497         (WebCore::LayerRendererChromium::setScissorToRect):
498         * platform/graphics/chromium/LayerRendererChromium.h:
499         (WebCore::LayerRendererChromium::isCompositingOffscreen):
500         (WebCore::LayerRendererChromium::getOffscreenLayerTexture):
501
502 2011-01-04  Evan Martin  <evan@chromium.org>
503
504         Reviewed by Tony Chang.
505
506         [chromium] depend on harfbuzz explicitly
507         https://bugs.webkit.org/show_bug.cgi?id=51895
508
509         platform/graphics/chromium uses Harfbuzz directly.  Rather than
510         expecting Skia to adjust the include paths, be explicit about
511         the dependency.
512
513         * WebCore.gyp/WebCore.gyp:
514
515 2011-01-04  Darin Adler  <darin@apple.com>
516
517         Reviewed by Brady Eidson.
518
519         Add back/forward encoding and decoding to WebKit2
520         https://bugs.webkit.org/show_bug.cgi?id=51901
521
522         * WebCore.exp.in: Export functions used in WebKit2.
523
524         * history/HistoryItem.cpp:
525         (WebCore::HistoryItem::encodeBackForwardTree): Use references instead of pointers.
526         (WebCore::HistoryItem::encodeBackForwardTreeNode): Ditto.
527         (WebCore::HistoryItem::decodeBackForwardTree): Ditto.
528         * history/HistoryItem.h: Ditto.
529         * platform/network/FormData.cpp:
530         (WebCore::encode): Ditto.
531         (WebCore::decode): Ditto.
532         (WebCore::FormData::encodeForBackForward): Ditto.
533         (WebCore::FormData::decodeForBackForward): Ditto.
534         * platform/network/FormData.h: Ditto.
535
536 2011-01-04  Xiaomei Ji  <xji@chromium.org>
537
538         Reviewed by Dan Bernstein.
539
540         Implement sel.modify('move', 'left'/'right', 'lineBoundary').
541         https://bugs.webkit.org/show_bug.cgi?id=33435
542
543         * editing/SelectionController.cpp:
544         (WebCore::SelectionController::modifyMovingRight):
545         (WebCore::SelectionController::modifyMovingLeft):
546         * editing/visible_units.cpp:
547         (WebCore::logicalStartOfLine):
548         (WebCore::logicalEndOfLine):
549         (WebCore::leftBoundaryOfLine):
550         (WebCore::rightBoundaryOfLine):
551         * editing/visible_units.h:
552
553 2011-01-04  Martin Robinson  <mrobinson@igalia.com>
554
555         Reviewed by Xan Lopez.
556
557         [GTK] Use the default CSS text input control border width of relying on the GTK+ theme
558         https://bugs.webkit.org/show_bug.cgi?id=51887
559
560         Do not rely on the GTK+ theme to determine text control borders. This simplifies
561         the RenderTheme code, prevents metrics differences between GTK+ 2.x and 3.x and
562         doesn't break the rendering of any theme that I've encountered.
563
564         * platform/gtk/RenderThemeGtk.cpp:
565         (WebCore::RenderThemeGtk::adjustSearchFieldStyle): No longer call setTextInputBorders, but
566         still disable any border radius.
567         * platform/gtk/RenderThemeGtk.h: Remove setTextInputBorders and no longer override the
568         default style of text areas and text input controls.
569         * platform/gtk/RenderThemeGtk2.cpp: Ditto.
570         * platform/gtk/RenderThemeGtk3.cpp: Ditto.
571
572 2011-01-03  Martin Robinson  <mrobinson@igalia.com>
573
574         Reviewed by Darin Adler.
575
576         Remove the last non-GObject usage of PlatformRefPtr and move the code to GRefPtr
577         https://bugs.webkit.org/show_bug.cgi?id=51846
578
579         No new tests. This should not introduce any functional changes.
580
581         Changed all references to PlatformRefPtr in GTK+ code to GRefPtr. Changed
582         all references to PlatformRefPtr in Brew code to RefPtr.
583
584 2011-01-04  David Kilzer  <ddkilzer@apple.com>
585
586         <http://webkit.org/b/51890> Move ResourceLoadPriority.h into WebCore/platform/network
587
588         Reviewed by Antti Koivisto.
589
590         This is needed to prevent a WebCore/platform policy violation in
591         my next patch.
592
593         * WebCore.gypi: Updated for moved header.
594         * WebCore.pro: Ditto.
595         * WebCore.vcproj/WebCore.vcproj: Ditto.
596         * WebCore.xcodeproj/project.pbxproj: Ditto.
597         * platform/network/ResourceLoadPriority.h: Renamed from WebCore/loader/ResourceLoadPriority.h.
598
599 2011-01-04  Brady Eidson  <beidson@apple.com>
600
601         Reviewed by a spell checker.
602
603         * storage/StorageMap.h: mesured?  Really?
604
605 2011-01-04  Carlos Garcia Campos  <cgarcia@igalia.com> and Martin Robinson  <mrobinson@igalia.com>
606
607         Reviewed by Xan Lopez.
608
609         [GTK] Port stock icon painting to GtkStyleContext
610         https://bugs.webkit.org/show_bug.cgi?id=51764
611
612         Port stock icon painting for media and search input elements to
613         GtkStyleContext. Also create the initial machinery for accessing
614         style contexts for all GTK+ 3.x based widgets.
615
616         No new tests. This should not change functionality.
617
618         * platform/gtk/RenderThemeGtk.cpp:
619         (WebCore::paintGdkPixbuf):
620         (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration):
621         (WebCore::RenderThemeGtk::paintSearchFieldCancelButton):
622         (WebCore::RenderThemeGtk::paintMediaButton):
623         * platform/gtk/RenderThemeGtk.h:
624         * platform/gtk/RenderThemeGtk2.cpp:
625         (WebCore::RenderThemeGtk::getStockIcon):
626         * platform/gtk/RenderThemeGtk3.cpp:
627         (WebCore::gtkStyleChangedCallback):
628         (WebCore::styleContextMap):
629         (WebCore::getStyleContext):
630         (WebCore::RenderThemeGtk::paintMenuList):
631
632 2010-12-31  Antti Koivisto  <antti@apple.com>
633
634         Reviewed by Dave Hyatt.
635
636         Scripts should not be executed before preceding stylesheets are loaded
637         https://bugs.webkit.org/show_bug.cgi?id=8852
638
639         Block inline script execution on pending stylesheet loads. This matches
640         other browsers and HTML5.
641
642         Tests: fast/tokenizer/inline-script-stylesheet-write.html
643                fast/tokenizer/inline-script-stylesheet.html
644
645         * dom/PendingScript.cpp:
646         (WebCore::PendingScript::releaseElementAndClear):
647         * dom/PendingScript.h:
648         (WebCore::PendingScript::PendingScript):
649         (WebCore::PendingScript::operator=):
650         (WebCore::PendingScript::startingPosition):
651         (WebCore::PendingScript::setStartingPosition):
652         * html/HTMLLinkElement.cpp:
653         (WebCore::HTMLLinkElement::process):
654         
655         This fixes an unrelated bug with beforeload events that was exposed by the other
656         changes (fast/dom/beforeload/remove-link-in-beforeload-listener.html).
657         
658         * html/parser/HTMLScriptRunner.cpp:
659         (WebCore::HTMLScriptRunner::sourceFromPendingScript):
660         (WebCore::HTMLScriptRunner::runScript):
661
662 2011-01-04  Xianzhu Wang  <wangxianzhu@google.com>
663
664         Reviewed by Darin Adler.
665
666         Let DataView.getInt8() and DataView.setInt8() use int8_t instead of
667         ambiguous 'char' to fix fast/canvas/webgl/data-view-test.html failure
668         on ARM.
669         https://bugs.webkit.org/show_bug.cgi?id=51861
670
671         By the way, changed other getIntXX() and setIntXX() methods to use
672         more precise integer types.
673
674         * bindings/js/JSDataViewCustom.cpp:
675         (WebCore::setDataViewMember):
676         * bindings/v8/custom/V8DataViewCustom.cpp:
677         (WebCore::V8DataView::getInt8Callback):
678         (WebCore::V8DataView::setInt8Callback):
679         * html/canvas/DataView.cpp:
680         (WebCore::DataView::getInt8):
681         (WebCore::DataView::setInt8):
682         * html/canvas/DataView.h:
683         * html/canvas/DataView.idl:
684
685 2011-01-04  Yong Li  <yoli@rim.com>
686
687         Reviewed by Adam Barth.
688
689         Suspend HTMLParserScheduler when page load is deferred to
690         avoid potential JS re-entrancy. Otherwise, when JS execution is triggered
691         from an external script or by events, and is blocked by a modal dialog,
692         WebKit can parse more HTML source and also start another JS execution.
693         
694         https://bugs.webkit.org/show_bug.cgi?id=48077
695
696         Test case: WebCore/manual-tests/bugzilla-48077.html.
697
698         * dom/DocumentParser.cpp:
699         (WebCore::DocumentParser::suspendScheduledTasks):
700         (WebCore::DocumentParser::resumeScheduledTasks):
701         * dom/DocumentParser.h:
702         * html/parser/HTMLDocumentParser.cpp:
703         (WebCore::HTMLDocumentParser::suspendScheduledTasks):
704         (WebCore::HTMLDocumentParser::resumeScheduledTasks):
705         * html/parser/HTMLParserScheduler.cpp:
706         (WebCore::HTMLParserScheduler::HTMLParserScheduler):
707         (WebCore::HTMLParserScheduler::suspend):
708         (WebCore::HTMLParserScheduler::resume):
709         * html/parser/HTMLParserScheduler.h:
710         (WebCore::HTMLParserScheduler::isScheduledForResume):
711         * page/PageGroupLoadDeferrer.cpp:
712         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
713         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
714
715 2011-01-04  Tony Gentilcore  <tonyg@chromium.org>
716
717         Unreviewed build fix.
718
719         Include glib-object.h for GObject
720         https://bugs.webkit.org/show_bug.cgi?id=51876
721
722         * bindings/gobject/DOMObjectCache.cpp:
723
724 2011-01-04  Ryosuke Niwa  <rniwa@webkit.org>
725
726         Reviewed by Dan Bernstein.
727
728         Clicking on the first or the last letter of LTR/RTL text in a RTL/LTR block puts caret on the opposite side.
729         https://bugs.webkit.org/show_bug.cgi?id=50992
730
731         Fixed the bug by interchanging the offset when the direction of inline text box and the containing block
732         does not match. Reused the code added by http://trac.webkit.org/changeset/73553.
733
734         Test: editing/selection/caret-bidi-first-and-last-letters.html
735
736         * rendering/InlineTextBox.cpp:
737         (WebCore::InlineTextBox::offsetForPosition):
738
739 2010-12-29  Tony Gentilcore  <tonyg@chromium.org>
740
741         Reviewed by Darin Adler.
742
743         Remove 2 unnecessary includes from Document.h
744         https://bugs.webkit.org/show_bug.cgi?id=51727
745
746         No new tests because no changed functionality.
747
748         * dom/Document.cpp:
749         * dom/Document.h:
750         * editing/Editor.cpp:
751         * editing/SpellChecker.h:
752         * editing/SplitTextNodeCommand.cpp:
753         * editing/TextCheckingHelper.cpp:
754         * page/FrameView.cpp:
755         * page/Page.cpp:
756         * rendering/HitTestResult.cpp:
757         * rendering/InlineTextBox.cpp:
758         * rendering/InlineTextBox.h:
759         * rendering/svg/SVGInlineFlowBox.cpp:
760
761 2011-01-04  Patrick Gansterer  <paroga@webkit.org>
762
763         Unreviewed WinCE build fix.
764
765         * CMakeListsWinCE.txt: Added missing include directories, files and libraries.
766
767 2011-01-04  Yi Shen  <yi.4.shen@nokia.com>
768
769         Reviewed by Simon Hausmann.
770
771         Provide an interface to require using fullscreen mediaplayer
772         https://bugs.webkit.org/show_bug.cgi?id=51133
773
774         Only video should be displayed in fullscreen when 
775         requiresFullscreenForVideoPlayback is specified.
776
777         No new tests because no client implements requiresFullscreenForVideoPlayback yet.
778
779         * html/HTMLMediaElement.cpp:
780         (WebCore::HTMLMediaElement::updatePlayState):
781
782 2011-01-04  Benjamin Poulain  <benjamin.poulain@nokia.com>
783
784         Reviewed by Kenneth Rohde Christiansen.
785
786         [Qt] [WK2] create an initial implementation of the context menu handling for WebKit 2
787         https://bugs.webkit.org/show_bug.cgi?id=51825
788
789         Implement contextMenuItemVector() for Qt, this method is used in WebKit 2 to get the
790         platform independent menu informations.
791
792         * platform/qt/ContextMenuQt.cpp:
793         (WebCore::contextMenuItemVector):
794
795 2011-01-04  Sheriff Bot  <webkit.review.bot@gmail.com>
796
797         Unreviewed, rolling out r74960.
798         http://trac.webkit.org/changeset/74960
799         https://bugs.webkit.org/show_bug.cgi?id=51868
800
801         Rollout since we hit an assert after this patch. (Requested by
802         krit on #webkit).
803
804         * svg/SVGUseElement.cpp:
805         (WebCore::SVGUseElement::buildInstanceTree):
806
807 2011-01-04  Sheriff Bot  <webkit.review.bot@gmail.com>
808
809         Unreviewed, rolling out r74961.
810         http://trac.webkit.org/changeset/74961
811         https://bugs.webkit.org/show_bug.cgi?id=51867
812
813         breaks 32/64-bits debug bots build (Requested by philn-tp on
814         #webkit).
815
816         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
817         (WebCore::GStreamerGWorld::setWindowOverlay):
818
819 2011-01-03  Philippe Normand  <pnormand@igalia.com>
820
821         Rubber-stamped by Eric Seidel.
822
823         [GStreamer] build fails with gstreamer core 0.10.31 and -plugins-base 0.10.30
824         https://bugs.webkit.org/show_bug.cgi?id=51810
825
826         Based on a patch by Mart Raudsepp.
827
828         No new tests, build fix only.
829
830         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
831         (WebCore::GStreamerGWorld::setWindowOverlay): Use the new xoverlay
832         API if the GST_CHECK_PLUGINS_BASE_VERSION macro is defined. It was
833         introduced in same version as the xoverlay API change.
834
835 2011-01-04  Leo Yang  <leo.yang@torchmobile.com.cn>
836
837         Reviewed by Dirk Schulze.
838
839         Malformed SVG causes crash in updateContainerOffset
840         https://bugs.webkit.org/show_bug.cgi?id=44610
841
842         We should check recursive <use> at the begining of
843         WebCore::SVGUseElement::buildInstanceTree instead
844         of at the end of it because the target element's
845         children may cause infinite recursive <use>.
846
847         Test: svg/custom/recursive-use.svg
848
849         * svg/SVGUseElement.cpp:
850         (WebCore::SVGUseElement::buildInstanceTree):
851
852 2011-01-04  Kent Tamura  <tkent@chromium.org>
853
854         Unreviewed, build fix.
855
856         Try to fix Clang build.
857
858         * css/CSSParser.cpp:
859         (WebCore::valueFromSideKeyword):
860         (WebCore::CSSParser::parseLinearGradient):
861
862 2011-01-03  Julie-Jeongeun-Kim  <Jeongeun.Kim@obigo.com>
863
864         Reviewed by Darin Adler.
865
866         HTML5 Conformance Test failure: approved/xhtml5/object_border_pixel.xhtml
867         https://bugs.webkit.org/show_bug.cgi?id=48596
868         
869         border attribute was not parsed in HTMLObjectElement.
870         I added code for it as HTMLImageElement handled.
871
872         new test:fast/html/object-border.html
873
874         * html/HTMLObjectElement.cpp:
875         (WebCore::HTMLObjectElement::parseMappedAttribute):
876
877 2011-01-03  Darin Adler  <darin@apple.com>
878
879         Try to fix Chromium build.
880
881         * history/HistoryItem.cpp:
882         (WebCore::HistoryItem::encodeBackForwardTreeNode): Added a V8 case here.
883         Not sure this ever will be used with V8.
884         (WebCore::HistoryItem::decodeBackForwardTree): Ditto.
885
886 2011-01-03  Darin Adler  <darin@apple.com>
887
888         Try to fix Leopard build.
889
890         * history/HistoryItem.cpp: Use a consistent type, uint64_t, for the
891         size variable.
892
893 2011-01-03  Abhishek Arya  <inferno@chromium.org>
894
895         Reviewed by Darin Adler.
896
897         Fixes before child calculation when adding anonymous childs to table parts.
898         https://bugs.webkit.org/show_bug.cgi?id=50932
899
900         Fix in r74364 was incomplete. When before child is equal to the table part(to
901         which the new child is getting added), it confuses the table part to add it
902         incorrectly as an after child. The patch fixes by passing the before child as
903         the table part's first child.
904
905         Tests: fast/css-generated-content/table-before-after-child-add.html
906                fast/css-generated-content/table-cell-before-after-child-add.html
907                fast/css-generated-content/table-row-before-after-child-add.html
908                fast/css-generated-content/table-row-before-after-child-add.html
909
910         * rendering/RenderTable.cpp:
911         (WebCore::RenderTable::addChild):
912         * rendering/RenderTableRow.cpp:
913         (WebCore::RenderTableRow::addChild):
914         * rendering/RenderTableSection.cpp:
915         (WebCore::RenderTableSection::addChild):
916
917 2011-01-03  Dan Bernstein  <mitz@apple.com>
918
919         Reviewed by Simon Fraser.
920
921         Shrink HTMLTableCellElement
922         https://bugs.webkit.org/show_bug.cgi?id=51858
923
924         * html/HTMLTableCellElement.cpp:
925         (WebCore::HTMLTableCellElement::HTMLTableCellElement): Removed intialization of m_row and
926         m_col.
927         * html/HTMLTableCellElement.h: Removed m_row and m_col and their accessors.
928
929 2011-01-03  Darin Adler  <darin@apple.com>
930
931         Fix build.
932
933         * platform/network/FormData.cpp:
934         (WebCore::FormData::create): Roll back uint8_t change.
935         (WebCore::FormData::flatten): Ditto.
936         (WebCore::FormData::flattenToString): Ditto.
937         (WebCore::encode): Ditto.
938         (WebCore::decode): Ditto.
939         (WebCore::FormData::encodeForBackForward):
940         * platform/network/FormData.h: Ditto.
941         * platform/network/mac/FormDataStreamMac.mm:
942         (WebCore::advanceCurrentStream): Ditto.
943
944 2011-01-03  Darin Adler  <darin@apple.com>
945
946         Reviewed by Brady Eidson.
947
948         Add code to encode/decode the back/forward tree
949         https://bugs.webkit.org/show_bug.cgi?id=51853
950
951         * history/HistoryItem.cpp:
952         (WebCore::HistoryItem::encodeBackForwardTree): Added.
953         (WebCore::HistoryItem::encodeBackForwardTreeNode): Added.
954         (WebCore::HistoryItem::decodeBackForwardTree): Added.
955         * history/HistoryItem.h: Added functions above.
956
957         * platform/network/FormData.cpp:
958         (WebCore::FormData::create): Changed type to Vector<uint8_t> instead of
959         Vector<char>. This type is used in our newer code for vectors of bytes.
960         (WebCore::FormData::flatten): Ditto.
961         (WebCore::FormData::flattenToString): Ditto. Had to add a cast here.
962         (WebCore::FormData::encodeForBackForward): Added.
963         (WebCore::FormData::decodeForBackForward): Added.
964         * platform/network/FormData.h: Changed type to Vector<uint8_t> instead of
965         Vector<char>. Also made some single-argument constructors explicit.
966         Also added the new functions.
967
968         * platform/network/mac/FormDataStreamMac.mm:
969         (WebCore::advanceCurrentStream): Changed to use uint8_t to match above.
970
971 2011-01-03  Simon Fraser  <simon.fraser@apple.com>
972
973         Attempt to fix GTK build.
974
975         * platform/graphics/gtk/FontGtk.cpp:
976         (WebCore::drawGlyphsShadow):
977
978 2011-01-03  Helder Correia  <helder@sencha.com>
979
980         Reviewed by Simon Fraser.
981
982         ContextShadow can avoid code duplication for getting the CTM
983         https://bugs.webkit.org/show_bug.cgi?id=51799
984
985         ContextShadow defines its own getTransformationMatrixFromContext()
986         which does exactly the same as GraphicsContext::getCTM().
987
988         Existing tests: fast/canvas/canvas*shadow*html
989
990         * platform/graphics/ContextShadow.cpp:
991         (WebCore::ContextShadow::mustUseContextShadow):
992         (WebCore::ContextShadow::adjustBlurDistance):
993         (WebCore::ContextShadow::calculateLayerBoundingRect):
994         * platform/graphics/ContextShadow.h:
995         * platform/graphics/cairo/ContextShadowCairo.cpp:
996         (WebCore::ContextShadow::beginShadowLayer):
997         (WebCore::ContextShadow::endShadowLayer):
998         (WebCore::ContextShadow::drawRectShadowWithoutTiling):
999         * platform/graphics/cairo/FontCairo.cpp:
1000         (WebCore::drawGlyphsShadow):
1001         * platform/graphics/cairo/GraphicsContextCairo.cpp:
1002         (WebCore::drawPathShadow):
1003         * platform/graphics/cairo/ImageCairo.cpp:
1004         (WebCore::BitmapImage::draw):
1005         * platform/graphics/gtk/FontGtk.cpp:
1006         (WebCore::drawGlyphsShadow):
1007         * platform/graphics/qt/ContextShadowQt.cpp:
1008         (WebCore::ContextShadow::beginShadowLayer):
1009         (WebCore::ContextShadow::endShadowLayer):
1010         * platform/graphics/qt/FontQt.cpp:
1011         (WebCore::drawTextCommon):
1012         * platform/graphics/qt/GraphicsContextQt.cpp:
1013         (WebCore::GraphicsContext::fillPath):
1014         (WebCore::GraphicsContext::strokePath):
1015         (WebCore::GraphicsContext::fillRect):
1016         (WebCore::GraphicsContext::fillRoundedRect):
1017         * platform/graphics/qt/ImageQt.cpp:
1018         (WebCore::BitmapImage::draw):
1019         * platform/graphics/qt/StillImageQt.cpp:
1020         (WebCore::StillImage::draw):
1021
1022 2011-01-03  Darin Adler  <darin@apple.com>
1023
1024         Reviewed by Dan Bernstein.
1025
1026         InsertTextCommand::m_charactersAdded is unused
1027         https://bugs.webkit.org/show_bug.cgi?id=51849
1028
1029         * editing/InsertTextCommand.cpp:
1030         (WebCore::InsertTextCommand::InsertTextCommand): Don't initialize m_charactersAdded.
1031         (WebCore::InsertTextCommand::input): Don't update m_charactersAdded.
1032         * editing/InsertTextCommand.h: Removed charactersAdded function and
1033         m_charactersAdded data member.
1034
1035 2011-01-03  Carlos Garcia Campos  <cgarcia@igalia.com>
1036
1037         Reviewed by Martin Robinson.
1038
1039         [GTK] Move paintMenuListButton() to RenderThemeGtk.cpp
1040         https://bugs.webkit.org/show_bug.cgi?id=51832
1041
1042         Method paintMenuListButton() contains code common to both gtk 2
1043         and 3, so it can be moved to RenderThemeGtk.cpp instead of
1044         duplicating it.
1045
1046         * platform/gtk/RenderThemeGtk.cpp:
1047         (WebCore::RenderThemeGtk::paintMenuListButton):
1048         * platform/gtk/RenderThemeGtk2.cpp:
1049         * platform/gtk/RenderThemeGtk3.cpp:
1050
1051 2011-01-03  Pratik Solanki  <psolanki@apple.com>
1052
1053         Reviewed by Darin Adler.
1054
1055         https://bugs.webkit.org/show_bug.cgi?id=51850
1056         Put CFNetwork loader code inside USE(CFNETWORK)
1057
1058         Add USE(CFNETWORK) macros around all the cf/mac network files. Also added all CFNetwork
1059         files to the WebCore Xcode project.
1060
1061         * WebCore.xcodeproj/project.pbxproj:
1062         * loader/cf/ResourceLoaderCFNet.cpp:
1063         * loader/mac/ResourceLoaderMac.mm:
1064         * platform/network/cf/AuthenticationCF.cpp:
1065         * platform/network/cf/AuthenticationCF.h:
1066         * platform/network/cf/CookieJarCFNet.cpp:
1067         * platform/network/cf/CookieStorageCFNet.cpp:
1068         * platform/network/cf/CookieStorageCFNet.h:
1069         * platform/network/cf/CredentialStorageCFNet.cpp:
1070         * platform/network/cf/FormDataStreamCFNet.cpp:
1071         * platform/network/cf/FormDataStreamCFNet.h:
1072         * platform/network/cf/LoaderRunLoopCF.cpp:
1073         * platform/network/cf/LoaderRunLoopCF.h:
1074         * platform/network/cf/ResourceError.h:
1075         * platform/network/cf/ResourceHandleCFNet.cpp:
1076         * platform/network/cf/ResourceRequest.h:
1077         * platform/network/cf/ResourceRequestCFNet.cpp:
1078         * platform/network/cf/ResourceRequestCFNet.h:
1079         * platform/network/cf/ResourceResponse.h:
1080         * platform/network/cf/ResourceResponseCFNet.cpp:
1081         * platform/network/mac/AuthenticationMac.h:
1082         * platform/network/mac/AuthenticationMac.mm:
1083         * platform/network/mac/FormDataStreamMac.h:
1084         * platform/network/mac/FormDataStreamMac.mm:
1085         * platform/network/mac/ResourceError.h:
1086         * platform/network/mac/ResourceHandleMac.mm:
1087         * platform/network/mac/ResourceRequest.h:
1088         * platform/network/mac/ResourceRequestMac.mm:
1089         * platform/network/mac/ResourceResponse.h:
1090         * platform/network/mac/ResourceResponseMac.mm:
1091
1092 2011-01-03  Yi Shen  <yi.4.shen@nokia.com>
1093
1094         Reviewed by Adam Barth.
1095
1096         [Qt] Add SelectAll option to the context menu for the editor
1097         https://bugs.webkit.org/show_bug.cgi?id=50049
1098
1099         Enable SelectAll for the Qt context menu.
1100
1101         * page/ContextMenuController.cpp:
1102         (WebCore::ContextMenuController::populate):
1103         * platform/ContextMenuItem.h:
1104         * platform/LocalizationStrategy.h:
1105         * platform/LocalizedStrings.cpp:
1106         (WebCore::contextMenuItemTagSelectAll):
1107         * platform/LocalizedStrings.h:
1108
1109 2011-01-03  Dan Bernstein  <mitz@apple.com>
1110
1111         Reviewed by Darin Adler.
1112
1113         Shrink RootInlineBox
1114         https://bugs.webkit.org/show_bug.cgi?id=51847
1115
1116         * rendering/RootInlineBox.cpp:
1117         (WebCore::RootInlineBox::alignBoxesInBlockDirection): Changed to use the baselineType()
1118         accessor.
1119         * rendering/RootInlineBox.h: Rolled m_baselineType into a bitfield. Changed its type to
1120         unsigned because otherwise MSVC treats it as signed.
1121         (WebCore::RootInlineBox::baselineType): Added a cast.
1122
1123 2011-01-03  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1124
1125         Reviewed by Martin Robinson.
1126
1127         [GTK] Split webkitprivate.{cpp,h} in more manageable chunks
1128         https://bugs.webkit.org/show_bug.cgi?id=50698
1129
1130         Fix DOM bindings generation to no longer include the now-gone
1131         webkitprivate.h header, including the appropriate replacements
1132         instead.
1133
1134         * bindings/scripts/CodeGeneratorGObject.pm:
1135
1136 2011-01-03  Brady Eidson  <beidson@apple.com>
1137
1138         Reviewed by Darin Adler.
1139
1140         Add Encode/Decode machinery Darin and I plan to work with for back/forward stuff in WebKit2.
1141
1142         * ForwardingHeaders/wtf/Decoder.h: Added.
1143         * ForwardingHeaders/wtf/Encoder.h: Added.
1144
1145 2011-01-03  Chris Fleizach  <cfleizach@apple.com>
1146
1147         Reviewed by Darin Adler.
1148
1149         AX: Regression: WebKit no longer auto-scrolls with VoiceOver navigation
1150         https://bugs.webkit.org/show_bug.cgi?id=51833
1151
1152         Make sure the web area returns the contentsSize, not the same size as what is displayed.
1153
1154         Test: platform/mac/accessibility/webarea-size-equals-content-size.html
1155
1156         * accessibility/AccessibilityRenderObject.cpp:
1157         (WebCore::AccessibilityRenderObject::boundingBoxRect):
1158
1159 2011-01-03  Simon Fraser  <simon.fraser@apple.com>
1160
1161         Fix warning in 32-bit builds.
1162
1163         * css/CSSGradientValue.cpp:
1164         (WebCore::CSSLinearGradientValue::createGradient):
1165
1166 2011-01-03  Benjamin C Meyer  <bmeyer@rim.com>
1167
1168         Reviewed by Daniel Bates.
1169
1170         In the cmake build system move logic related to ENABLE_NOTIFICATIONS into its own block.
1171         https://bugs.webkit.org/show_bug.cgi?id=51827
1172
1173         * CMakeLists.txt:
1174
1175 2011-01-03  Dan Bernstein  <mitz@apple.com>
1176
1177         Reviewed by Simon Fraser.
1178
1179         Remove the unused RenderTableCell::m_percentageHeight
1180         https://bugs.webkit.org/show_bug.cgi?id=51837
1181
1182         * rendering/RenderTableCell.cpp:
1183         (WebCore::RenderTableCell::RenderTableCell): Removed initialization of m_percentageHeight.
1184         * rendering/RenderTableCell.h: Removed m_percentageHeight.
1185
1186 2011-01-03  Simon Fraser  <simon.fraser@apple.com>
1187
1188         Reviewed by David Hyatt.
1189
1190         Implement -webkit-linear-gradient and -webkit-radial-gradient
1191         https://bugs.webkit.org/show_bug.cgi?id=28152
1192
1193         Add support for -webkit-radial-gradients.
1194
1195         Tests: fast/gradients/css3-radial-gradients.html
1196                fast/gradients/css3-radial-gradients2.html
1197
1198         * css/CSSGradientValue.cpp:
1199         (WebCore::blend): Used to blend colors, which is necessary when truncating
1200         the start of radial gradients.
1201         (WebCore::GradientStop): Small struct to aid gradient stop processing.
1202         (WebCore::CSSGradientValue::addStops): Rename 'positions' to 'stops', and store
1203         the color so that we can blend it when truncating radial gradients. Changed
1204         to handle both linear and radial gradients.
1205         (WebCore::CSSRadialGradientValue::cssText): Update to follow the spec.
1206         (WebCore::CSSRadialGradientValue::resolveRadius): Stylistic change.
1207         (WebCore::distanceToClosestCorner): New utility method.
1208         (WebCore::distanceToFarthestCorner): Ditto.
1209         (WebCore::CSSRadialGradientValue::createGradient): New logic to deal with shape and
1210         fill rules.
1211
1212         * css/CSSGradientValue.h:
1213         (WebCore::CSSGradientValue::isLinearGradient): Color-stop processing needs to know what
1214         kind of gradient it's dealing with, so add new isFooGradient methods.
1215         (WebCore::CSSGradientValue::isRadialGradient): Ditto.
1216         (WebCore::CSSLinearGradientValue::isLinearGradient):
1217         (WebCore::CSSRadialGradientValue::setShape): New setters for shape, size etc.
1218         (WebCore::CSSRadialGradientValue::setSizingBehavior):
1219         (WebCore::CSSRadialGradientValue::setEndHorizontalSize):
1220         (WebCore::CSSRadialGradientValue::setEndVerticalSize):
1221         (WebCore::CSSRadialGradientValue::isRadialGradient):
1222
1223         * css/CSSParser.h:
1224         * css/CSSParser.h: Pass a CSSParserValueList* into parseFillPositionXY() and parseFillPosition()
1225         so we can use parseFillPosition() when parsing a gradient function.
1226         * css/CSSParser.cpp:
1227         (WebCore::CSSParser::parseFillPositionXY): Pass in a CSSParserValueList*
1228         (WebCore::CSSParser::parseFillPosition): Ditto
1229         (WebCore::CSSParser::parseFillProperty): Pass m_valueList to parseFillPosition.
1230         (WebCore::CSSParser::parseTransformOriginShorthand): Ditto
1231         (WebCore::CSSParser::parseRadialGradient): Flesh out radial gradient parsing.
1232         (WebCore::CSSParser::parseTransformOrigin): Pass m_valueList to parseFillPosition.
1233         (WebCore::CSSParser::parsePerspectiveOrigin): Ditto
1234
1235         * css/CSSValueKeywords.in: New keywords for radial gradient shape and fill behaviors.
1236
1237         * platform/graphics/Gradient.cpp:
1238         (WebCore::Gradient::Gradient): Pass aspect ratio for elliptical gradients.
1239         * platform/graphics/Gradient.h: Add aspect ratio for elliptical gradients.
1240         (WebCore::Gradient::create):
1241         (WebCore::Gradient::startRadius): Expose radii.
1242         (WebCore::Gradient::endRadius):
1243         (WebCore::Gradient::setStartRadius): Setters are required for when we need to scale color stops.
1244         (WebCore::Gradient::setEndRadius):
1245         (WebCore::Gradient::aspectRatio):
1246         * platform/graphics/cg/GradientCG.cpp:
1247         (WebCore::Gradient::paint): For elliptical gradients, scale the CTM.
1248         * platform/graphics/wince/GraphicsContextWinCE.cpp:
1249         (WebCore::GraphicsContext::fillRect): Use start/endRadius() rather than r0() and r1().
1250
1251 2011-01-03  Simon Fraser  <simon.fraser@apple.com>
1252
1253         Reviewed by David Hyatt.
1254
1255         Implement -webkit-linear-gradient and -webkit-radial-gradient
1256         https://bugs.webkit.org/show_bug.cgi?id=28152
1257         
1258         Add support for the parsing and rendering of non-repeating CSS3 linear gradients,
1259         according to <http://dev.w3.org/csswg/css3-images/#linear-gradients>.
1260
1261         Tests: fast/gradients/css3-color-stop-units.html
1262                fast/gradients/css3-color-stops.html
1263                fast/gradients/css3-gradient-parsing.html
1264                fast/gradients/css3-linear-angle-gradients.html
1265
1266         * css/CSSGradientValue.h:
1267         Add subclasses of CSSGradientValue for linear and radial gradients.
1268         
1269         * css/CSSGradientValue.cpp:
1270         (WebCore::CSSGradientValue::image): Add FIXME comment about why we can't cache
1271         the gradient sometimes.
1272         (WebCore::compareStops): positions are CSSValues now.
1273         (WebCore::CSSGradientValue::sortStopsIfNeeded): Add assertion that this is only called
1274         for old-style gradients.
1275         (WebCore::CSSGradientValue::addStops): New method that handles the spec rules about
1276         missing positions, ensuring that stop position is ordered, and spacing out stops
1277         without positions. Also normalize gradients which use stops outside the 0-1 range
1278         so that platforms can render them correctly.
1279         (WebCore::positionFromValue): Determin the position on the gradient line for percentage,
1280         number and length values.
1281         (WebCore::CSSGradientValue::computeEndPoint):
1282         (WebCore::CSSLinearGradientValue::cssText):
1283         (WebCore::endPointsFromAngle): Compute endpoints for a gradient which covers the rectangle
1284         given an angle.
1285         (WebCore::CSSLinearGradientValue::createGradient):
1286         (WebCore::CSSRadialGradientValue::cssText):
1287         (WebCore::CSSRadialGradientValue::resolveRadius):
1288         (WebCore::CSSRadialGradientValue::createGradient):
1289
1290         * css/CSSParser.cpp:
1291         (WebCore::CSSParser::parseValue): Style fix.
1292         (WebCore::CSSParser::parseContent): Use isGeneratedImageValue() and parseGeneratedImage()
1293         (WebCore::CSSParser::parseFillImage): Use isGeneratedImageValue() and parseGeneratedImage()
1294         (WebCore::CSSParser::parseBorderImage): Use isGeneratedImageValue() and parseGeneratedImage()
1295         (WebCore::parseDeprecatedGradientPoint): Renamed to indicate that it's only used for -webkit-gradient.
1296         (WebCore::parseDeprecatedGradientColorStop): Renamed to indicate that it's only used for -webkit-gradient,
1297         and fixed to store CSSValues for the stop position.
1298         (WebCore::CSSParser::parseDeprecatedGradient): Renamed to indicate that it's only used for -webkit-gradient,
1299         and create CSSLinearGradientValue and CSSRadialGradientValue as appropriate.
1300         (WebCore::valueFromSideKeyword):
1301         (WebCore::parseGradientColorOrKeyword): Color parsing utility.
1302         (WebCore::CSSParser::parseLinearGradient): New method to parse linear gradients.
1303         (WebCore::CSSParser::parseRadialGradient): Stub for new method to parse radial gradients.
1304         (WebCore::CSSParser::isGeneratedImageValue): Detect gradients and CSS canvas.
1305         (WebCore::CSSParser::parseGeneratedImage): Parser for generated images like gradients
1306         and CSS canvas.
1307         * css/CSSParser.h:
1308         * platform/graphics/Gradient.h:
1309         (WebCore::Gradient::setP0): We need to be able to change the points when normalizing gradients.
1310         (WebCore::Gradient::setP1): Ditto.
1311
1312 2011-01-03  Noam Rosenthal  <noam.rosenthal@nokia.com>
1313
1314         Reviewed by Andreas Kling.
1315
1316         [Qt] document.getElementById(...) doesn't return the right object in combination with QGraphicsWidget
1317         https://bugs.webkit.org/show_bug.cgi?id=51464
1318
1319         Added a way to bind any QObject created as a plugin to JavaScript, 
1320         by adding a custom member (qtObject) to WebCore::Widget. 
1321         Added a test to tst_qwebpage to make sure plugins created 
1322         as QGraphicsWidget are accessible through JavaScript.
1323
1324         * bindings/js/ScriptControllerQt.cpp:
1325         (WebCore::ScriptController::createScriptInstanceForWidget):
1326         * platform/Widget.h:
1327         * platform/qt/WidgetQt.cpp:
1328         (WebCore::Widget::Widget):
1329         (WebCore::Widget::setBindingObject):
1330         (WebCore::Widget::bindingObject):
1331
1332 2011-01-03  David Hyatt  <hyatt@apple.com>
1333
1334         Reviewed by Simon Fraser.
1335
1336         https://bugs.webkit.org/show_bug.cgi?id=51328
1337
1338         Printing on a page with body { height: 100% } clips out the overflow contents.  This happened
1339         because the computePageRects function was never correct.  It was using the layer's width and height
1340         for the document's width and height, and the layer no longer includes overflow in its width and
1341         height.  It was also incorrectly assuming the first page would begin at (0,0), and this is an invalid
1342         assumption in RTL or vertical text environments.
1343
1344         Added printing/page-count-percentage-height.html
1345
1346         * page/PrintContext.cpp:
1347         (WebCore::PrintContext::computePageRects):
1348         (WebCore::PrintContext::computePageRectsWithPageSizeInternal):
1349
1350 2011-01-03  Csaba Osztrogonác  <ossy@webkit.org>
1351
1352         [Qt] Unreviewed buildfix for --minimal build after r74895.
1353
1354         * html/InputType.cpp: Missing include added.
1355         * html/NumberInputType.cpp: Missing include added.
1356
1357 2011-01-02  Darin Adler  <darin@apple.com>
1358
1359         Reviewed by Kent Tamura.
1360
1361         Eliminate HTMLInputElement::m_deprecatedTypeNumber, other input refactoring and renaming
1362         https://bugs.webkit.org/show_bug.cgi?id=51791
1363
1364         * dom/InputElement.h: Make sanitizeValueForTextField public so it can
1365         be called by InputType.
1366
1367         * html/BaseButtonInputType.cpp:
1368         (WebCore::BaseButtonInputType::accessKeyAction): Added.
1369         (WebCore::BaseButtonInputType::storesValueSeparateFromAttribute): Added.
1370         * html/BaseButtonInputType.h: Ditto.
1371
1372         * html/BaseCheckableInputType.cpp:
1373         (WebCore::BaseCheckableInputType::canSetStringValue): Added.
1374         (WebCore::BaseCheckableInputType::accessKeyAction): Added.
1375         (WebCore::BaseCheckableInputType::fallbackValue): Added.
1376         (WebCore::BaseCheckableInputType::storesValueSeparateFromAttribute): Added.
1377         (WebCore::BaseCheckableInputType::isCheckable): Added.
1378         * html/BaseCheckableInputType.h: Ditto.
1379
1380         * html/BaseDateAndTimeInputType.cpp:
1381         (WebCore::BaseDateAndTimeInputType::hasSpinButton): Added.
1382         * html/BaseDateAndTimeInputType.h: Ditto.
1383
1384         * html/BaseTextInputType.h: Made more functions private.
1385
1386         * html/ButtonInputType.cpp:
1387         (WebCore::ButtonInputType::isTextButton): Added.
1388         * html/ButtonInputType.h: Ditto.
1389
1390         * html/CheckboxInputType.cpp:
1391         (WebCore::CheckboxInputType::willDispatchClick): Added.
1392         (WebCore::CheckboxInputType::didDispatchClick): Added.
1393         (WebCore::CheckboxInputType::isCheckbox): Added.
1394         * html/CheckboxInputType.h: Ditto.
1395
1396         * html/DateTimeInputType.cpp:
1397         (WebCore::DateTimeInputType::scaledStepValueShouldBeInteger): Fixed
1398         typo in name of this function.
1399         * html/DateTimeInputType.h: Ditto.
1400         * html/DateTimeLocalInputType.cpp:
1401         (WebCore::DateTimeLocalInputType::scaledStepValueShouldBeInteger): Ditto.
1402         * html/DateTimeLocalInputType.h: Ditto.
1403
1404         * html/EmailInputType.cpp:
1405         (WebCore::EmailInputType::isEmailField): Added.
1406         * html/EmailInputType.h: Ditto.
1407
1408         * html/FileInputType.cpp:
1409         (WebCore::FileInputType::FileInputType): Added.
1410         (WebCore::FileInputType::canSetStringValue): Added.
1411         (WebCore::FileInputType::canChangeFromAnotherType): Added.
1412         (WebCore::FileInputType::files): Added.
1413         (WebCore::FileInputType::canSetValue): Added.
1414         (WebCore::FileInputType::getTypeSpecificValue): Added.
1415         (WebCore::FileInputType::storesValueSeparateFromAttribute): Added.
1416         (WebCore::FileInputType::setFileList): Added.
1417         (WebCore::FileInputType::isFileUpload): Added.
1418         * html/FileInputType.h: Ditto.
1419
1420         * html/HTMLInputElement.cpp:
1421         (WebCore::HTMLInputElement::HTMLInputElement): Updated for data member
1422         renaming and removal.
1423         (WebCore::HTMLInputElement::isValidValue): Call canSetStringValue
1424         instead of checking specific type numbers.
1425         (WebCore::HTMLInputElement::getAllowedValueStepWithDecimalPlaces):
1426         Use fastGetAttribute and fixed typo in the name of the
1427         scaledStepValueShouldBeInteger function.
1428         (WebCore::HTMLInputElement::isKeyboardFocusable): Call
1429         InputType::isKeyboardFocusable; moved most of the type-specific
1430         logic there.
1431         (WebCore::HTMLInputElement::shouldUseInputMethod): Call
1432         InputType::shouldUseInputMethod; moved the type-specific logic there.
1433         (WebCore::HTMLInputElement::handleBlurEvent): Call
1434         InputType::handleBlurEvent; moved the type-specific logic there.
1435         (WebCore::HTMLInputElement::setType): Tweak the names and types
1436         in this function.
1437         (WebCore::HTMLInputElement::updateType): Removed the code that
1438         set m_deprecatedTypeNumber. Compare types by comparing the value
1439         from formControlType. Removed file-specific logic and instead call
1440         InputType::canChangeFromAnotherType. Streamlined the logic for
1441         activation callbacks.
1442         (WebCore::HTMLInputElement::accessKeyAction): Call
1443         InputType::accessKeyAction; moved the type-specific logic there.
1444         (WebCore::HTMLInputElement::mapToEntry): Call
1445         InputType::shouldRespectHeightAndWidthAttributes and
1446         InputType::shouldRespectAlignAttribute.
1447         (WebCore::HTMLInputElement::parseMappedAttribute): Updated
1448         for name changes and the removal of m_defaultChecked. Changed the
1449         alt attribute logic to be based on the class of the renderer.
1450         Call InputType::srcAttributeChanged and moved the type-specific
1451         logic there. Call shouldRespectAlignAttribute and
1452         shouldRespectHeightAndWidthAttributes rather than having
1453         type-specific logic here. Call minOrMaxAttributeChanged.
1454         (WebCore::HTMLInputElement::rendererIsNeeded): Call
1455         InputType::rendererIsNeeded; moved the type-specific logic there.
1456         (WebCore::HTMLInputElement::attach): Removed the unneeded m_inited
1457         flag, which was redundant with the m_haveType flag. Call
1458         InputType::attach; moved the type-specific logic there.
1459         (WebCore::HTMLInputElement::altText): Use fastGetAttribute.
1460         (WebCore::HTMLInputElement::isSuccessfulSubmitButton): Call
1461         InputType::canBeSuccessfulSubmitButton; moved the type-specific
1462         logic there.
1463         (WebCore::HTMLInputElement::isActivatedSubmit): Updated for
1464         name changes.
1465         (WebCore::HTMLInputElement::setActivatedSubmit): Ditto.
1466         (WebCore::HTMLInputElement::reset): Updated to use
1467         InputType::storesValueSeparateFromAttribute. Also use
1468         hasAttribute(checkedAttr) rather than m_defaultChecked,
1469         since both are the same. Also updated for name change.
1470         (WebCore::HTMLInputElement::setChecked): Updated for name
1471         changes. Also added call to
1472         InputType::shouldSendChangeEventAfterCheckedChanged and
1473         moved the type-specific logic there.
1474         (WebCore::HTMLInputElement::setIndeterminate): Call
1475         isCheckable to see if indeterminate is allowed.
1476         Also updated for name changes.
1477         (WebCore::HTMLInputElement::copyNonAttributeProperties):
1478         Updated for name changes and removed data members.
1479         (WebCore::HTMLInputElement::value): Call
1480         InputType::getTypeSpecificValue and InputType::fallbackValue.
1481         Moved the type-specific logic there.
1482         (WebCore::HTMLInputElement::valueWithDefault): Call
1483         InputType::defaultValue. Moved the type-specific logic there.
1484         (WebCore::HTMLInputElement::setSuggestedValue): Call
1485         InputType::canSetSuggestedValue. Moved the type-specific logic
1486         there.
1487         (WebCore::HTMLInputElement::setValue): Call
1488         InputType::canSetValue. Moved the type-specific logic there.
1489         Clear the file list if it exists rather than checking the
1490         type explicitly. We could probably do that a more elegant way.
1491         (WebCore::HTMLInputElement::placeholder): Use fastGetAttribute.
1492         (WebCore::HTMLInputElement::setValueFromRenderer): Use the
1493         isFileUpload function in the assertion.
1494         (WebCore::HTMLInputElement::setFileListFromRenderer): Put most
1495         of the code from this function into FileInputType::setFileList.
1496         (WebCore::HTMLInputElement::preDispatchEventHandler): Changed
1497         to call InputType::willDispatchClick, which does the type-specific
1498         work. Still need to use a single struct for all types, because
1499         the type of the element could change during the event handling.
1500         (WebCore::HTMLInputElement::postDispatchEventHandler): Changed
1501         to call InputType::didDispatchClick.
1502         (WebCore::HTMLInputElement::defaultValue): Use fastGetAttribute.
1503         (WebCore::HTMLInputElement::accept): Use fastGetAttribute.
1504         (WebCore::HTMLInputElement::alt): Use fastGetAttribute.
1505         (WebCore::HTMLInputElement::src): Use fastGetAttribute.
1506         (WebCore::HTMLInputElement::setAutofilled): Updated for name
1507         changes.
1508         (WebCore::HTMLInputElement::files): Use InputType::files.
1509         (WebCore::HTMLInputElement::isAcceptableValue): Use
1510         InputType::isAcceptableValue.
1511         (WebCore::HTMLInputElement::sanitizeValue): Use
1512         InputType::sanitizeValue.
1513         (WebCore::HTMLInputElement::hasUnacceptableValue): Use
1514         InputType::hasUnacceptableValue.
1515         (WebCore::HTMLInputElement::needsActivationCallback): Use
1516         InputType::shouldResetOnDocumentActivation.
1517         (WebCore::HTMLInputElement::willMoveToNewOwnerDocument): Use
1518         InputType::willMoveToNewOwnerDocument.
1519         (WebCore::HTMLInputElement::dataList): Use
1520         InputType::shouldRespectListAttribute.
1521         (WebCore::HTMLInputElement::selectedOption): Tweaked logic
1522         and naming a bit.
1523         (WebCore::HTMLInputElement::stepUpFromRenderer): Use
1524         fastGetAttribute.
1525         (WebCore::HTMLInputElement::isSpeechEnabled): Use
1526         InputType::shouldRespectSpeechAttribute.
1527         (WebCore::HTMLInputElement::isTextButton): No longer inline.
1528         Calls through to InputType.
1529         (WebCore::HTMLInputElement::isRadioButton): Ditto.
1530         (WebCore::HTMLInputElement::isSearchField): Ditto.
1531         (WebCore::HTMLInputElement::isInputTypeHidden): Ditto.
1532         (WebCore::HTMLInputElement::isPasswordField): Ditto.
1533         (WebCore::HTMLInputElement::isCheckbox): Ditto.
1534         (WebCore::HTMLInputElement::isText): Ditto.
1535         (WebCore::HTMLInputElement::isEmailField): Ditto.
1536         (WebCore::HTMLInputElement::isFileUpload): Ditto.
1537         (WebCore::HTMLInputElement::isImageButton): Ditto.
1538         (WebCore::HTMLInputElement::isNumberField): Ditto.
1539         (WebCore::HTMLInputElement::isSubmitButton): Ditto.
1540         (WebCore::HTMLInputElement::isTelephoneField): Ditto.
1541         (WebCore::HTMLInputElement::isURLField): Ditto.
1542         (WebCore::HTMLInputElement::isEnumeratable): Ditto.
1543         (WebCore::HTMLInputElement::isChecked): No longer inline.
1544         Calls InputType::isCheckable.
1545         (WebCore::HTMLInputElement::hasSpinButton): No longer inline.
1546         Calls through to InputType.
1547         (WebCore::HTMLInputElement::supportsPlaceholder): No longer
1548         inline. Calls isTextType as before, but with no special case
1549         for ISINDEX. That special case was unneeded since it returns
1550         true from isTextType.
1551         (WebCore::HTMLInputElement::checkedRadioButtons): No longer
1552         inline.
1553         (WebCore::HTMLInputElement::handleBeforeTextInsertedEvent):
1554         No longer inline.
1555
1556         * html/HTMLInputElement.h: Removed multiple unneeded includes.
1557         The big one is probably InputType.h, but also HTMLFormElement.h.
1558         Removed unneeded forward declarations. Made many functions
1559         no longer inline since they now need to make virtual function
1560         dispatches. Removed the unneeded defaultChecked and
1561         webkitdirectory functions. Both are handled by HTML attribute
1562         reflection for DOM bindings, and the callers instead can get
1563         at the attribute. Made updateCheckedRadioButtons public so it
1564         can be called by an InputType class. Removed
1565         DeprecatedInputType, InputTypeMap, createTypeMap,
1566         deprecatedInputType, allowsIndeterminate,
1567         respectHeightAndWidthAttrs, storesValueSeparateFromAttribute,
1568         m_imageLoader, m_fileList, m_deprecatedTypeNumber,
1569         m_defaultChecked, and m_inited. Renamed m_checked to
1570         m_isChecked, m_useDefaultChecked to m_reflectsCheckedAttribute,
1571         m_indeterminate tom_isIndeterminate, m_haveType to m_hasType,
1572         m_activeSubmit to m_isActivatedSubmit, and m_autofilled to
1573         m_isAutofilled.
1574         
1575         * html/HiddenInputType.cpp:
1576         (WebCore::HiddenInputType::accessKeyAction): Added.
1577         (WebCore::HiddenInputType::rendererIsNeeded) Added.:
1578         (WebCore::HiddenInputType::storesValueSeparateFromAttribute): Added.
1579         (WebCore::HiddenInputType::isHiddenType): Added.
1580         (WebCore::HiddenInputType::shouldRespectHeightAndWidthAttributes): Added.
1581         * html/HiddenInputType.h: Ditto.
1582
1583         * html/ImageInputType.cpp:
1584         (WebCore::ImageInputType::ImageInputType): Moved out of the header file.
1585         (WebCore::ImageInputType::srcAttributeChanged): Added.
1586         (WebCore::ImageInputType::attach): Added.
1587         (WebCore::ImageInputType::willMoveToNewOwnerDocument): Added.
1588         (WebCore::ImageInputType::shouldRespectAlignAttribute): Added.
1589         (WebCore::ImageInputType::canBeSuccessfulSubmitButton): Added.
1590         (WebCore::ImageInputType::isImageButton): Added.
1591         (WebCore::ImageInputType::isEnumeratable): Added.
1592         (WebCore::ImageInputType::shouldRespectHeightAndWidthAttributes): Added.
1593         * html/ImageInputType.h: Ditto.
1594
1595         * html/InputType.cpp:
1596         (WebCore::InputType::create): Changed argument type to String. There
1597         is no value in taking an AtomicString here.
1598         (WebCore::InputType::scaledStepValueShouldBeInteger): Fixed typo in
1599         this function name.
1600         (WebCore::InputType::canSetStringValue): Added.
1601         (WebCore::InputType::isKeyboardFocusable): Added.
1602         (WebCore::InputType::shouldUseInputMethod): Added.
1603         (WebCore::InputType::handleBlurEvent): Added.
1604         (WebCore::InputType::accessKeyAction): Added.
1605         (WebCore::InputType::attach): Added.
1606         (WebCore::InputType::srcAttributeChanged): Added.
1607         (WebCore::InputType::willMoveToNewOwnerDocument): Added.
1608         (WebCore::InputType::shouldRespectAlignAttribute): Added.
1609         (WebCore::InputType::canChangeFromAnotherType): Added.
1610         (WebCore::InputType::minOrMaxAttributeChanged): Added.
1611         (WebCore::InputType::canBeSuccessfulSubmitButton): Added.
1612         (WebCore::InputType::rendererIsNeeded): Added.
1613         (WebCore::InputType::files): Added.
1614         (WebCore::InputType::getTypeSpecificValue): Added.
1615         (WebCore::InputType::fallbackValue): Added.
1616         (WebCore::InputType::defaultValue): Added.
1617         (WebCore::InputType::canSetSuggestedValue): Added.
1618         (WebCore::InputType::shouldSendChangeEventAfterCheckedChanged): Added.
1619         (WebCore::InputType::storesValueSeparateFromAttribute): Added.
1620         (WebCore::InputType::canSetValue): Added.
1621         (WebCore::InputType::willDispatchClick): Added.
1622         (WebCore::InputType::didDispatchClick): Added.
1623         (WebCore::InputType::isAcceptableValue): Added.
1624         (WebCore::InputType::sanitizeValue): Added.
1625         (WebCore::InputType::hasUnacceptableValue): Added.
1626         (WebCore::InputType::setFileList): Added.
1627         (WebCore::InputType::shouldResetOnDocumentActivation): Added.
1628         (WebCore::InputType::shouldRespectListAttribute): Added.
1629         (WebCore::InputType::shouldRespectSpeechAttribute): Added.
1630         (WebCore::InputType::isTextButton): Added.
1631         (WebCore::InputType::isRadioButton): Added.
1632         (WebCore::InputType::isSearchField): Added.
1633         (WebCore::InputType::isHiddenType): Added.
1634         (WebCore::InputType::isPasswordField): Added.
1635         (WebCore::InputType::isCheckbox): Added.
1636         (WebCore::InputType::isEmailField): Added.
1637         (WebCore::InputType::isFileUpload): Added.
1638         (WebCore::InputType::isImageButton): Added.
1639         (WebCore::InputType::isNumberField): Added.
1640         (WebCore::InputType::isSubmitButton): Added.
1641         (WebCore::InputType::isTelephoneField): Added.
1642         (WebCore::InputType::isURLField): Added.
1643         (WebCore::InputType::isEnumeratable): Added.
1644         (WebCore::InputType::isCheckable): Added.
1645         (WebCore::InputType::hasSpinButton): Added.
1646         (WebCore::InputType::shouldRespectHeightAndWidthAttributes): Added.
1647
1648         * html/InputType.h: Removed unneeded ExceptionCode.h include and
1649         used a typedef instead as we do when we want for forward declare it.
1650         Added includes and forward declarations needed for new functions.
1651         Added ClickHandlingState structure. Changed the argument to create
1652         to a String rather than AtomicString. Added many virtual functions.
1653         
1654         * html/IsIndexInputType.cpp:
1655         (WebCore::IsIndexInputType::shouldRespectListAttribute): Added.
1656         * html/IsIndexInputType.h: Ditto.
1657
1658         * html/NumberInputType.cpp:
1659         (WebCore::NumberInputType::handleBlurEvent): Added.
1660         (WebCore::NumberInputType::isAcceptableValue): Added.
1661         (WebCore::NumberInputType::sanitizeValue): Added.
1662         (WebCore::NumberInputType::hasUnacceptableValue): Added.
1663         (WebCore::NumberInputType::shouldRespectSpeechAttribute): Added.
1664         (WebCore::NumberInputType::isNumberField): Added.
1665         (WebCore::NumberInputType::hasSpinButton): Added.
1666         * html/NumberInputType.h: Ditto.
1667
1668         * html/PasswordInputType.cpp:
1669         (WebCore::PasswordInputType::shouldUseInputMethod): Added.
1670         (WebCore::PasswordInputType::shouldResetOnDocumentActivation): Added.
1671         (WebCore::PasswordInputType::shouldRespectListAttribute): Added.
1672         (WebCore::PasswordInputType::shouldRespectSpeechAttribute): Added.
1673         (WebCore::PasswordInputType::isPasswordField): Added.
1674         * html/PasswordInputType.h: Ditto.
1675
1676         * html/RadioInputType.cpp:
1677         (WebCore::RadioInputType::isKeyboardFocusable): Added.
1678         (WebCore::RadioInputType::attach): Added.
1679         (WebCore::RadioInputType::shouldSendChangeEventAfterCheckedChanged): Added.
1680         (WebCore::RadioInputType::willDispatchClick): Added.
1681         (WebCore::RadioInputType::didDispatchClick): Added.
1682         (WebCore::RadioInputType::isRadioButton): Added.
1683         * html/RadioInputType.h: Ditto.
1684
1685         * html/RangeInputType.cpp:
1686         (WebCore::RangeInputType::accessKeyAction): Added.
1687         (WebCore::RangeInputType::minOrMaxAttributeChanged): Added.
1688         (WebCore::RangeInputType::fallbackValue): Added.
1689         (WebCore::RangeInputType::sanitizeValue): Added.
1690         (WebCore::RangeInputType::shouldRespectListAttribute): Added.
1691         * html/RangeInputType.h: Ditto.
1692
1693         * html/ResetInputType.cpp:
1694         (WebCore::ResetInputType::defaultValue): Added.
1695         (WebCore::ResetInputType::isTextButton): Added.
1696         * html/ResetInputType.h: Ditto.
1697
1698         * html/SearchInputType.cpp:
1699         (WebCore::SearchInputType::shouldRespectSpeechAttribute): Added.
1700         (WebCore::SearchInputType::isSearchField): Added.
1701         * html/SearchInputType.h: Ditto.
1702
1703         * html/SubmitInputType.cpp:
1704         (WebCore::SubmitInputType::canBeSuccessfulSubmitButton): Added.
1705         (WebCore::SubmitInputType::defaultValue): Added.
1706         (WebCore::SubmitInputType::isSubmitButton): Added.
1707         (WebCore::SubmitInputType::isTextButton): Added.
1708         * html/SubmitInputType.h: Ditto.
1709
1710         * html/TelephoneInputType.cpp:
1711         (WebCore::TelephoneInputType::shouldRespectSpeechAttribute): Added.
1712         (WebCore::TelephoneInputType::isTelephoneField): Added.
1713         * html/TelephoneInputType.h: Ditto.
1714
1715         * html/TextFieldInputType.cpp:
1716         (WebCore::TextFieldInputType::shouldUseInputMethod): Added.
1717         (WebCore::TextFieldInputType::sanitizeValue): Added.
1718         (WebCore::TextFieldInputType::shouldRespectListAttribute): Added.
1719         * html/TextFieldInputType.h: Ditto.
1720
1721         * html/TextInputType.cpp:
1722         (WebCore::TextInputType::canSetSuggestedValue): Added.
1723         (WebCore::TextInputType::shouldRespectSpeechAttribute): Added.
1724         * html/TextInputType.h: Ditto.
1725
1726         * html/TimeInputType.cpp:
1727         (WebCore::TimeInputType::scaledStepValueShouldBeInteger): Fixed
1728         typo in the name of this function.
1729         * html/TimeInputType.h: Ditto.
1730
1731         * html/URLInputType.cpp:
1732         (WebCore::URLInputType::isURLField): Added.
1733         * html/URLInputType.h: Ditto.
1734
1735 2011-01-03  Mihai Parparita  <mihaip@chromium.org>
1736
1737         Unreviewed.
1738
1739         NSScrollView-based scrollbars and ScrollBarTheme-based scrollbars don't look the same
1740         https://bugs.webkit.org/show_bug.cgi?id=51151
1741
1742         Flip switch to use WebThemeEngine for Chromium/Mac scrollbar rendering,
1743         so that it can match Safari's (and thus use the same baselines).
1744
1745         No new tests, should be covered by layout tests (which will need
1746         expectation changes)
1747
1748         * platform/chromium/ScrollbarThemeChromiumMac.mm:
1749
1750 2011-01-03  Antonio Gomes  <agomes@rim.com>
1751
1752         Unreviewed build fix for WebKit/Gtk+.
1753
1754         RenderThemeGtk::initMediaColors() in RenderThemeGtk2.cpp needs to be
1755         guarded by ENABLE(VIDEO), as it is in its header.
1756
1757         No new tests.
1758
1759         * platform/gtk/RenderThemeGtk2.cpp:
1760
1761 2011-01-02  Dan Bernstein  <mitz@apple.com>
1762
1763         Rubber-stamped by Simon Fraser.
1764
1765         <rdar://problem/8812159> Update copyright strings
1766
1767         * Info.plist:
1768
1769 2011-01-02  Dan Bernstein  <mitz@apple.com>
1770
1771         Reviewed by Sam Weinig.
1772
1773         <rdar://problem/8806570> REGRESSION (r73337): Incorrect text match count when a match occurs in a text field
1774         https://bugs.webkit.org/show_bug.cgi?id=51623
1775
1776         * editing/Editor.cpp:
1777         (WebCore::Editor::countMatchesForText): Actually remember the original search range end
1778         container and offset and restore them when needed, instead of using two references to the
1779         same Range.
1780         * manual-tests/find-count-matches-after-text-control.html: Added.
1781
1782 2011-01-02  Benjamin Poulain  <benjamin.poulain@nokia.com>
1783
1784         Reviewed by Csaba Osztrogonác.
1785
1786         WebKit 2 does not build on 64bits with a recent GCC
1787         https://bugs.webkit.org/show_bug.cgi?id=51754
1788
1789         Use explicitely 64 bits types for the attributes of DatabaseDetails.
1790
1791         * storage/DatabaseDetails.h:
1792         (WebCore::DatabaseDetails::expectedUsage):
1793         (WebCore::DatabaseDetails::currentUsage):
1794
1795 2011-01-02  Patrick Gansterer  <paroga@webkit.org>
1796
1797         Unreviewed WinCE build fix for r74868.
1798
1799         * platform/graphics/wince/ImageBufferWinCE.cpp:
1800         (WebCore::getImageData):
1801
1802 2011-01-02  Sheriff Bot  <webkit.review.bot@gmail.com>
1803
1804         Unreviewed, rolling out r74847.
1805         http://trac.webkit.org/changeset/74847
1806         https://bugs.webkit.org/show_bug.cgi?id=51803
1807
1808         "Preprocessor guards should be in header files" (Requested by
1809         ap on #webkit).
1810
1811         * bindings/js/JSDOMWindowBase.cpp:
1812         * dom/Document.cpp:
1813         (WebCore::Document::recalcStyle):
1814         * html/HTMLDocument.cpp:
1815         * loader/FrameLoader.cpp:
1816         * loader/ResourceLoadNotifier.cpp:
1817         * page/Chrome.cpp:
1818         * page/Console.cpp:
1819         * page/ContextMenuController.cpp:
1820         * page/DOMWindow.cpp:
1821         (WebCore::DOMWindow::dispatchEvent):
1822         * page/EventHandler.cpp:
1823         * page/Page.cpp:
1824         * storage/Database.cpp:
1825         * workers/AbstractWorker.cpp:
1826         * workers/DefaultSharedWorkerRepository.cpp:
1827         * workers/SharedWorker.cpp:
1828         * workers/Worker.cpp:
1829         * workers/WorkerContext.cpp:
1830         * workers/WorkerMessagingProxy.cpp:
1831         * xml/XMLHttpRequest.cpp:
1832         (WebCore::XMLHttpRequest::callReadyStateChangeListener):
1833
1834 2011-01-02  Patrick Gansterer  <paroga@webkit.org>
1835
1836         [CMake] Unreviewed build fix.
1837
1838         * CMakeLists.txt:
1839
1840 2011-01-02  Dirk Schulze  <krit@webkit.org>
1841
1842         Reviewed by Simon Fraser.
1843
1844         Clarify ImageBuffer and ImageData relationship
1845         https://bugs.webkit.org/show_bug.cgi?id=51297
1846
1847         Remove references to ImageData and CanvasPixelArray from ImageBuffer and SVG filter/masker code,
1848         since this was a layering violation, and replaced it by ByteArray.
1849
1850         No change of functionality, so no new test added.
1851
1852         * html/ImageData.cpp:
1853         (WebCore::ImageData::create):
1854         (WebCore::ImageData::ImageData):
1855         * html/ImageData.h: Added new constructor with ByteArray input.
1856         (WebCore::ImageData::width):
1857         (WebCore::ImageData::height):
1858         (WebCore::ImageData::data):
1859         * html/canvas/CanvasPixelArray.cpp:
1860         (WebCore::CanvasPixelArray::create):
1861         (WebCore::CanvasPixelArray::CanvasPixelArray):
1862         * html/canvas/CanvasPixelArray.h: New conctructor with ByteArray input, used by HTML Canvas.
1863         (WebCore::CanvasPixelArray::data):
1864         (WebCore::CanvasPixelArray::length):
1865         (WebCore::CanvasPixelArray::set):
1866         (WebCore::CanvasPixelArray::get):
1867         * html/canvas/CanvasRenderingContext2D.cpp:
1868         (WebCore::CanvasRenderingContext2D::getImageData):
1869         (WebCore::CanvasRenderingContext2D::putImageData):
1870         * platform/graphics/ImageBuffer.h:
1871         * platform/graphics/cairo/ImageBufferCairo.cpp:
1872         (WebCore::getImageData):
1873         (WebCore::ImageBuffer::getUnmultipliedImageData):
1874         (WebCore::ImageBuffer::getPremultipliedImageData):
1875         (WebCore::putImageData):
1876         (WebCore::ImageBuffer::putUnmultipliedImageData):
1877         (WebCore::ImageBuffer::putPremultipliedImageData):
1878         * platform/graphics/cg/ImageBufferCG.cpp:
1879         (WebCore::getImageData):
1880         (WebCore::ImageBuffer::getUnmultipliedImageData):
1881         (WebCore::ImageBuffer::getPremultipliedImageData):
1882         (WebCore::putImageData):
1883         (WebCore::ImageBuffer::putUnmultipliedImageData):
1884         (WebCore::ImageBuffer::putPremultipliedImageData):
1885         * platform/graphics/filters/FEBlend.cpp:
1886         (WebCore::FEBlend::apply):
1887         * platform/graphics/filters/FEColorMatrix.cpp:
1888         (WebCore::FEColorMatrix::apply):
1889         * platform/graphics/filters/FEComponentTransfer.cpp:
1890         (WebCore::FEComponentTransfer::apply):
1891         * platform/graphics/filters/FEComposite.cpp:
1892         (WebCore::FEComposite::apply):
1893         * platform/graphics/filters/FEConvolveMatrix.cpp:
1894         (WebCore::setDestinationPixels):
1895         (WebCore::FEConvolveMatrix::apply):
1896         * platform/graphics/filters/FEConvolveMatrix.h:
1897         * platform/graphics/filters/FEDisplacementMap.cpp:
1898         (WebCore::FEDisplacementMap::apply):
1899         * platform/graphics/filters/FEGaussianBlur.cpp:
1900         (WebCore::FEGaussianBlur::apply):
1901         * platform/graphics/filters/FELighting.cpp:
1902         (WebCore::FELighting::apply):
1903         * platform/graphics/filters/FEMorphology.cpp:
1904         (WebCore::FEMorphology::apply):
1905         * platform/graphics/filters/FETurbulence.cpp:
1906         (WebCore::FETurbulence::apply):
1907         * platform/graphics/filters/FilterEffect.cpp:
1908         (WebCore::FilterEffect::asImageBuffer):
1909         (WebCore::FilterEffect::asUnmultipliedImage):
1910         (WebCore::FilterEffect::asPremultipliedImage):
1911         (WebCore::FilterEffect::copyImageBytes):
1912         (WebCore::FilterEffect::copyUnmultipliedImage):
1913         (WebCore::FilterEffect::copyPremultipliedImage):
1914         (WebCore::FilterEffect::createUnmultipliedImageResult):
1915         (WebCore::FilterEffect::createPremultipliedImageResult):
1916         * platform/graphics/filters/FilterEffect.h:
1917         * platform/graphics/qt/ImageBufferQt.cpp:
1918         (WebCore::getImageData):
1919         (WebCore::ImageBuffer::getUnmultipliedImageData):
1920         (WebCore::ImageBuffer::getPremultipliedImageData):
1921         (WebCore::putImageData):
1922         (WebCore::ImageBuffer::putUnmultipliedImageData):
1923         (WebCore::ImageBuffer::putPremultipliedImageData):
1924         * platform/graphics/skia/ImageBufferSkia.cpp:
1925         (WebCore::getImageData):
1926         (WebCore::ImageBuffer::getUnmultipliedImageData):
1927         (WebCore::ImageBuffer::getPremultipliedImageData):
1928         (WebCore::putImageData):
1929         (WebCore::ImageBuffer::putUnmultipliedImageData):
1930         (WebCore::ImageBuffer::putPremultipliedImageData):
1931         * platform/graphics/wince/ImageBufferWinCE.cpp:
1932         (WebCore::getImageData):
1933         (WebCore::ImageBuffer::getUnmultipliedImageData):
1934         (WebCore::ImageBuffer::getPremultipliedImageData):
1935         (WebCore::putImageData):
1936         (WebCore::ImageBuffer::putUnmultipliedImageData):
1937         (WebCore::ImageBuffer::putPremultipliedImageData):
1938         * platform/graphics/wx/ImageBufferWx.cpp:
1939         (WebCore::ImageBuffer::getUnmultipliedImageData):
1940         (WebCore::ImageBuffer::getPremultipliedImageData):
1941         (WebCore::ImageBuffer::putUnmultipliedImageData):
1942         (WebCore::ImageBuffer::putPremultipliedImageData):
1943         * rendering/RenderSVGResourceMasker.cpp:
1944         (WebCore::RenderSVGResourceMasker::drawContentIntoMaskImage):
1945
1946 2011-01-01  Adam Barth  <abarth@webkit.org>
1947
1948         Reviewed by Eric Seidel.
1949
1950         Move JavaScriptCore to Source
1951         https://bugs.webkit.org/show_bug.cgi?id=51604
1952
1953         Update references to JavaScriptCore.
1954
1955         * Android.derived.jscbindings.mk:
1956         * Android.v8bindings.mk:
1957         * CMakeLists.txt:
1958         * WebCore.gyp/WebCore.gyp:
1959         * WebCore.pro:
1960           - These changes are subtle and might not be 100% correct.
1961         * move-js-headers.sh:
1962
1963 2011-01-01  Adam Barth  <abarth@webkit.org>
1964
1965         Reviewed by Eric Seidel.
1966
1967         forbid sandboxed frames to call top.close() when allow-same-origin is not setted
1968         https://bugs.webkit.org/show_bug.cgi?id=38340
1969
1970         We now pass the ScriptExecutionContext to window.close so it can find
1971         the Frame and check whether navigation is allowed.  This check will
1972         almost always pass because you can only close top-level frames, but the
1973         check will fail when the calling script is sandboxed.
1974
1975         Tests: fast/frames/sandboxed-iframe-close-top-noclose.html
1976                fast/frames/sandboxed-iframe-close-top.html
1977
1978         * page/DOMWindow.cpp:
1979         (WebCore::DOMWindow::close):
1980         * page/DOMWindow.h:
1981         * page/DOMWindow.idl:
1982
1983 2011-01-01  Adam Barth  <abarth@webkit.org>
1984
1985         Reviewed by Eric Seidel.
1986
1987         sandbox iframes have access to top.history methods
1988         https://bugs.webkit.org/show_bug.cgi?id=38152
1989
1990         To enforce the sandbox restrictions on History, we need to pass the
1991         ScriptExecutionContext to WebCore.  This patch leaves the original
1992         History methods in place because they are used directly by folks who
1993         don't care about security checks.
1994
1995         Test: fast/frames/sandboxed-iframe-history-denied.html
1996
1997         * page/History.cpp:
1998         (WebCore::History::back):
1999         (WebCore::History::forward):
2000         (WebCore::History::go):
2001         * page/History.h:
2002         * page/History.idl:
2003
2004 2011-01-01  Adam Barth  <abarth@webkit.org>
2005
2006         Remove empty file.
2007
2008         * Android.mk:
2009         * CMakeLists.txt:
2010         * GNUmakefile.am:
2011         * WebCore.gypi:
2012         * WebCore.pro:
2013         * WebCore.vcproj/WebCore.vcproj:
2014         * WebCore.xcodeproj/project.pbxproj:
2015         * dom/DOMAllInOne.cpp:
2016         * dom/Entity.cpp: Removed.
2017
2018 2011-01-01  Adam Barth  <abarth@webkit.org>
2019
2020         Remove empty file.
2021
2022         * CMakeLists.txt:
2023         * GNUmakefile.am:
2024         * WebCore.pro:
2025         * WebCore.vcproj/WebCore.vcproj:
2026         * WebCore.xcodeproj/project.pbxproj:
2027         * bindings/js/JSBindingsAllInOne.cpp:
2028         * bindings/js/JSPopStateEventCustom.cpp: Removed.
2029
2030 2011-01-01  Adam Barth  <abarth@webkit.org>
2031
2032         Remove empty files.
2033
2034         * GNUmakefile.am:
2035         * WebCore.gypi:
2036         * WebCore.vcproj/WebCore.vcproj:
2037         * WebCore.xcodeproj/project.pbxproj:
2038         * bindings/generic/BindingFrame.h: Removed.
2039         * bindings/generic/BindingLocation.h: Removed.
2040
2041 2011-01-01  Konstantin Tokarev  <annulen@yandex.ru>
2042
2043         Reviewed by Darin Adler.
2044
2045         Don't include Inspector headers when Inspector is disabled
2046         https://bugs.webkit.org/show_bug.cgi?id=51789
2047
2048         * bindings/js/JSDOMWindowBase.cpp: Include Inspector headers when
2049         Inspector is enabled
2050         * dom/Document.cpp: Include Inspector headers when
2051         Inspector is enabled
2052         (WebCore::Document::recalcStyle): Disabled InspectorInstrumentationCookie
2053         handling
2054         * html/HTMLDocument.cpp: Include Inspector headers when
2055         Inspector is enabled
2056         * loader/FrameLoader.cpp: Include Inspector headers when
2057         Inspector is enabled
2058         * loader/ResourceLoadNotifier.cpp: Include Inspector headers when
2059         Inspector is enabled
2060         * page/Chrome.cpp: Include Inspector headers when
2061         Inspector is enabled
2062         * page/Console.cpp: Include Inspector headers when
2063         Inspector is enabled
2064         * page/ContextMenuController.cpp: Include Inspector headers when
2065         Inspector is enabled
2066         * page/DOMWindow.cpp: Include Inspector headers when
2067         Inspector is enabled
2068         (WebCore::DOMWindow::dispatchEvent): Disabled InspectorInstrumentationCookie
2069         handling
2070         * page/EventHandler.cpp: Include Inspector headers when
2071         Inspector is enabled
2072         * page/Page.cpp: Include Inspector headers when
2073         Inspector is enabled
2074         * storage/Database.cpp: Include Inspector headers when
2075         Inspector is enabled
2076         * workers/AbstractWorker.cpp: Include Inspector headers when
2077         Inspector is enabled
2078         * workers/DefaultSharedWorkerRepository.cpp: Include Inspector headers when
2079         Inspector is enabled
2080         * workers/SharedWorker.cpp: Include Inspector headers when
2081         Inspector is enabled
2082         * workers/Worker.cpp: Include Inspector headers when
2083         Inspector is enabled
2084         * workers/WorkerContext.cpp: Include Inspector headers when
2085         Inspector is enabled
2086         * workers/WorkerMessagingProxy.cpp: Include Inspector headers when
2087         Inspector is enabled
2088         * xml/XMLHttpRequest.cpp: Include Inspector headers when
2089         Inspector is enabled
2090         (WebCore::XMLHttpRequest::callReadyStateChangeListener): Disabled
2091         InspectorInstrumentationCookie handling
2092
2093 2010-12-31  Adam Barth  <abarth@webkit.org>
2094
2095         Reviewed by Darin Adler.
2096
2097         fast/loader/about-blank-hash-change.html fails on Chromium
2098         https://bugs.webkit.org/show_bug.cgi?id=51788
2099
2100         I'm unable to reproduce the failure locally, so this patch is slightly
2101         speculative.  We need to be slighly more careful how we compare the
2102         fragment identifiers for Chromium because Chromium uses a URL parser
2103         that is more agressive about canonicalization.
2104
2105         * page/Location.cpp:
2106         (WebCore::Location::setHash):
2107
2108 2010-12-31  Martin Robinson  <mrobinson@igalia.com>
2109
2110         Reviewed by Xan Lopez.
2111
2112         [GTK] Use GLib/GIO API for FileSystemGtk implementation
2113         https://bugs.webkit.org/show_bug.cgi?id=51617
2114
2115         Complete implementation of FileSystem platform code for GLib. This
2116         converts remaining API points using POSIX calls to platform-independent
2117         GLib calls and fixes other compilation errors.
2118
2119         No new tests. This code will be tested when an implementation
2120         of beginDragWithFiles is complete.
2121
2122         (WebCore::JSDirectoryEntry::getFile):
2123         (WebCore::JSDirectoryEntry::getDirectory):
2124         * platform/FileSystem.h: Added forward declarations for GLib types to
2125         avoid GLib includes and changed the PlatformFileHandle to be a GIOStream.
2126         * platform/gtk/FileSystemGtk.cpp:
2127         (WebCore::openTemporaryFile): Reimplement using only GLib calls.
2128         (WebCore::openFile): Ditto.
2129         (WebCore::closeFile): Ditto.
2130         (WebCore::seekFile): Added implementation.
2131         (WebCore::writeToFile): Reimplement using only GLib calls.
2132         (WebCore::readFromFile): Ditto.
2133
2134 2010-12-31  Darin Adler  <darin@apple.com>
2135
2136         Reviewed by Dan Bernstein.
2137
2138         Some renaming and refactoring of form element code
2139         https://bugs.webkit.org/show_bug.cgi?id=51784
2140
2141         * bindings/js/JSHTMLSelectElementCustom.cpp:
2142         (WebCore::JSHTMLSelectElement::remove): Call new overload of remove
2143         for option elements instead of putting the logic in the binding.
2144
2145         * html/HTMLButtonElement.cpp:
2146         (WebCore::HTMLButtonElement::HTMLButtonElement): Updated for name changes.
2147         (WebCore::HTMLButtonElement::defaultEventHandler): Renamed argument to
2148         "event" instead of "evt". Also updated for name changes.
2149         (WebCore::HTMLButtonElement::isActivatedSubmit): Ditto.
2150         (WebCore::HTMLButtonElement::setActivatedSubmit): Ditto.
2151         (WebCore::HTMLButtonElement::appendFormData): Ditto.
2152         * html/HTMLButtonElement.h: Renamed m_activeSubmit to m_isActivatedSubmit
2153         to match the getter function name. The name still doesn't seem great.
2154
2155         * html/HTMLFormElement.cpp:
2156         (WebCore::HTMLFormElement::HTMLFormElement): Updated for name changes.
2157         (WebCore::HTMLFormElement::~HTMLFormElement): Use autoComplete function
2158         instead of m_autocomplete data member.
2159         (WebCore::HTMLFormElement::rendererIsNeeded): Use m_wasDemoted data member
2160         instead of otherwise-unused isDemoted function.
2161         (WebCore::HTMLFormElement::submitImplicitly): Updated for name changes.
2162         (WebCore::HTMLFormElement::validateInteractively): Removed code to clear
2163         m_insubmit. This is now handled by the caller, prepareForSubmission.
2164         (WebCore::HTMLFormElement::prepareForSubmission): Renamed. Updated for
2165         name changes. Moved code to clear m_isSubmittingOrPreparingForSubmission
2166         here from validateInteractively. Removed unneeded check of m_doingsubmit
2167         boolean before setting it.
2168         (WebCore::HTMLFormElement::submit): Factored this function into two.
2169         One for JavaScript and one for non-JavaScript. Neither function needs a frame
2170         argument, because the question being asked, anyPageIsProcessingUserGesture,
2171         is a question asked of an entire page group, not a specific frame or page,
2172         so it's not important which is the active frame.
2173         (WebCore::HTMLFormElement::submitFromJavaScript): Ditto.
2174         (WebCore::HTMLFormElement::reset): Updated for name changes.
2175         (WebCore::HTMLFormElement::parseMappedAttribute): Removed code to parse
2176         acceptAttr and got rid of code to set m_autocomplete.
2177         (WebCore::HTMLFormElement::elementForAlias): Changed return type to a raw
2178         pointer.
2179         (WebCore::HTMLFormElement::getNamedElements): Updated to use raw pointer
2180         and the vector find function. Added a FIXME about the comment.
2181         (WebCore::HTMLFormElement::documentDidBecomeActive): Use autoComplete
2182         function instead of m_autocomplete data member.
2183         (WebCore::HTMLFormElement::willMoveToNewOwnerDocument): Ditto.
2184         (WebCore::HTMLFormElement::didMoveToNewOwnerDocument): Ditto.
2185         (WebCore::HTMLFormElement::autoComplete): Ditto.
2186         * html/HTMLFormElement.h: Added a FIXME about renaming the autoComplete
2187         function. Renamed prepareSubmit to prepareForSubmission. Got rid of the
2188         frame argument from the submit function and added a new submitFromJavaScript
2189         variant. Removed the unneeded isDemoted function. Changed the return type
2190         of elementForAlias to a raw pointer. Removed m_autocomplete. Renamed
2191         m_insubmit to m_isSubmittingOrPreparingForSubmission, m_doingsubmit to
2192         m_shouldSubmit, m_inreset to m_inResetFunction, m_malformed to m_wasMalformed,
2193         m_demoted to m_wasDemoted. Use plain bool instead of bitfields.
2194
2195         * html/HTMLFormElement.idl: Use the function named submitFromJavaScript
2196         instead of using CallWith=DynamicFrame because we don't need to know
2197         what frame is calling. If we did, it's not clear that the "dynamic"
2198         frame would be the right one anyway.
2199
2200         * html/HTMLSelectElement.cpp:
2201         (WebCore::HTMLSelectElement::remove): Added an overload that takes an option
2202         element, since the JavaScript binding supports this.
2203         * html/HTMLSelectElement.h: Ditto.
2204
2205         * html/ImageInputType.cpp:
2206         (WebCore::ImageInputType::handleDOMActivateEvent): Updated for name changes.
2207         * html/ImageInputType.h: Ditto.
2208         * html/SubmitInputType.cpp:
2209         (WebCore::SubmitInputType::handleDOMActivateEvent): Ditto.
2210
2211 2010-12-31  Daniel Bates  <dbates@rim.com>
2212
2213         Reviewed by Darin Adler.
2214
2215         Pass style for <area> instead of associated <img> when querying whether
2216         the theme draws the focus ring for an <area>
2217         https://bugs.webkit.org/show_bug.cgi?id=51632
2218
2219         Fixes an issue where the style for the associated <img> of an <area>
2220         was passed when considering whether the theme should draw a focus ring
2221         for the <area>. Instead, we should pass the theme the style for the <area>.
2222
2223         It's not possible to test this at this time since there are no themes
2224         that override focus ring drawing for <area>s.
2225
2226         * rendering/RenderImage.cpp:
2227         (WebCore::RenderImage::paintFocusRing): Moved call to RenderTheme::supportsFocusRing()
2228         such that it's called with respect to the focused <area>.
2229
2230 2010-12-31  Darin Adler  <darin@apple.com>
2231
2232         * WebCore.xcodeproj/project.pbxproj: Added back the language.
2233         Developers should be using Xcode 3.2.5 or newer.
2234
2235 2010-12-31  Adam Barth  <abarth@webkit.org>
2236
2237         Reviewed by Eric Seidel.
2238
2239         Move V8 to WebCore Location implementation
2240         https://bugs.webkit.org/show_bug.cgi?id=51768
2241
2242         * bindings/generic/BindingFrame.h:
2243         * bindings/generic/BindingLocation.h:
2244         * bindings/v8/V8Binding.h:
2245         * bindings/v8/V8DOMWindowShell.cpp:
2246         (WebCore::V8DOMWindowShell::setLocation):
2247         * bindings/v8/V8Utilities.cpp:
2248         * bindings/v8/V8Utilities.h:
2249         * bindings/v8/custom/V8LocationCustom.cpp:
2250         (WebCore::V8Location::hashAccessorSetter):
2251         (WebCore::V8Location::hostAccessorSetter):
2252         (WebCore::V8Location::hostnameAccessorSetter):
2253         (WebCore::V8Location::hrefAccessorSetter):
2254         (WebCore::V8Location::pathnameAccessorSetter):
2255         (WebCore::V8Location::portAccessorSetter):
2256         (WebCore::V8Location::protocolAccessorSetter):
2257         (WebCore::V8Location::searchAccessorSetter):
2258         (WebCore::V8Location::reloadCallback):
2259         (WebCore::V8Location::replaceCallback):
2260         (WebCore::V8Location::assignCallback):
2261
2262 2010-12-31  Yi Shen  <yi.4.shen@nokia.com>
2263
2264         Reviewed by Eric Seidel.
2265
2266         Make retrieving extraMediaControlsStyleSheet be page dependent.
2267         https://bugs.webkit.org/show_bug.cgi?id=51752
2268
2269         Use themeForPage to retrieve extraMediaControlsStyleSheet for media
2270         controls.
2271
2272         No new tests because no platform-specific theme implementation uses
2273         the passed page pointer yet.
2274
2275         * css/CSSStyleSelector.cpp:
2276         (WebCore::CSSStyleSelector::styleForElement):
2277
2278 2010-12-31  Ilya Tikhonovsky  <loislo@chromium.org>
2279
2280         Reviewed by Pavel Feldman.
2281
2282         Web Inspector: [REGRESSION] WebInspector.ResourcesPanel.prototype.canShowSourceLine() broken.
2283
2284         https://bugs.webkit.org/show_bug.cgi?id=51709
2285
2286         * inspector/front-end/ResourcesPanel.js:
2287         (WebInspector.ResourcesPanel.prototype.canShowSourceLine):
2288
2289 2010-12-31  Patrick Gansterer  <paroga@webkit.org>
2290
2291         Unreviewed build fix after r74800.
2292
2293         * bindings/js/JSDOMWindowCustom.cpp: Add missing header.
2294         * bindings/js/JSLocationCustom.cpp: Ditto.
2295
2296 2010-12-31  Adam Barth  <abarth@webkit.org>
2297
2298         Rubber-stamped by Eric Seidel.
2299
2300         Move HTML and XML parser benchmarks into PerformanceTests/Parser
2301         https://bugs.webkit.org/show_bug.cgi?id=51772
2302
2303         Remove the benchmarks folder now that it's empty.  Future benchmarks
2304         should go in the PerformanceTests directory.
2305
2306         * benchmarks: Removed.
2307         * benchmarks/parser: Removed.
2308         * benchmarks/parser/html-parser.html: Removed.
2309         * benchmarks/parser/resources: Removed.
2310         * benchmarks/parser/resources/html5.html: Removed.
2311         * benchmarks/parser/resources/runner.js: Removed.
2312         * benchmarks/parser/xml-parser.html: Removed.
2313
2314 2010-12-31  Patrick Gansterer  <paroga@webkit.org>
2315
2316         Reviewed by Adam Barth.
2317
2318         Add XML parser benchmark
2319         https://bugs.webkit.org/show_bug.cgi?id=51612
2320
2321         Move the JavaScript code of html parser into a separate file to share it with xml parser.
2322
2323         * benchmarks/parser/html-parser.html:
2324         * benchmarks/parser/resources/runner.js: Copied from WebCore/benchmarks/parser/html-parser.html.
2325         (runFunction):
2326         (run):
2327         (start):
2328         * benchmarks/parser/xml-parser.html: Copied from WebCore/benchmarks/parser/html-parser.html.
2329
2330 2010-12-29  Zhenyao Mo  <zmo@google.com>
2331
2332         Reviewed by Kenneth Russell.
2333
2334         Update validation of stencil mask and ref values
2335         https://bugs.webkit.org/show_bug.cgi?id=50716
2336
2337         * html/canvas/WebGLRenderingContext.cpp:
2338         (WebCore::WebGLRenderingContext::initializeNewContext): Initialize cached stencil settings.
2339         (WebCore::WebGLRenderingContext::drawArrays): Validate stencil settings.
2340         (WebCore::WebGLRenderingContext::drawElements): Ditto.
2341         (WebCore::WebGLRenderingContext::stencilFunc): Cache stencil settings, but generate no error.
2342         (WebCore::WebGLRenderingContext::stencilFuncSeparate): Ditto.
2343         (WebCore::WebGLRenderingContext::stencilMask): Ditto.
2344         (WebCore::WebGLRenderingContext::stencilMaskSeparate): Ditto.
2345         (WebCore::WebGLRenderingContext::validateStencilSettings): Helper function to validate stencil settings.
2346         * html/canvas/WebGLRenderingContext.h: Declare stencil setting members.
2347
2348 2010-12-30  Martin Robinson  <mrobinson@igalia.com>
2349
2350         Reviewed by Xan Lopez.
2351
2352         [GTK] Fork pieces of RenderThemeGtk that will differ for GTK+ 3
2353         https://bugs.webkit.org/show_bug.cgi?id=51755
2354
2355         Split out pieces of RenderThemeGtk into RenderThemeGtk2 and RenderThemeGtk3
2356         if they are going to differ between GTK+ 2.x and GTK+ 3.x. This is the preliminary
2357         step to landing support for the new GTK+ 3.x theming API.
2358
2359         No new tests. This should not change functionality.
2360
2361         * GNUmakefile.am: Add RenderThemeGtk2 and RenderThemeGtk3 to the sources list.
2362         * platform/gtk/RenderThemeGtk.cpp:
2363         (WebCore::RenderThemeGtk::adjustTextFieldStyle): Call the setTextInputBorders static method.
2364         (WebCore::RenderThemeGtk::adjustTextAreaStyle): Ditto.
2365         (WebCore::RenderThemeGtk::paintMediaButton): Ditto.
2366         (WebCore::RenderThemeGtk::adjustProgressBarStyle): ditto.
2367         * platform/gtk/RenderThemeGtk.h: Make setTextInputBorders a method, so that
2368         it can be exist in RenderThemeGtk{2,3} and be called from RenderThemeGtk.
2369         * platform/gtk/RenderThemeGtk2.cpp: Added. A fork of the bits of RenderThemeGtk
2370         that will eventually be platform-dependent.
2371         * platform/gtk/RenderThemeGtk3.cpp: Added. Ditto.
2372
2373 2010-12-30  Justin Schuh  <jschuh@chromium.org>
2374
2375         Reviewed by James Robinson.
2376
2377         Reverting r74292 because it introduced a crash with ruby text.
2378         https://bugs.webkit.org/show_bug.cgi?id=51637
2379
2380         Test: fast/css/counters/counter-ruby-text-cleared.html
2381
2382         * rendering/RenderCounter.cpp:
2383         (WebCore::findPlaceForCounter):
2384         * rendering/RenderObject.cpp:
2385         (WebCore::RenderObject::addChild):
2386         * rendering/RenderObjectChildList.cpp:
2387         (WebCore::RenderObjectChildList::appendChildNode):
2388         (WebCore::RenderObjectChildList::insertChildNode):
2389
2390 2010-12-30  Darin Adler  <darin@apple.com>
2391
2392         Reviewed by David Kilzer.
2393
2394         Remove unused JSBinding source files
2395         https://bugs.webkit.org/show_bug.cgi?id=51762
2396
2397         * bindings/js/JSBinding.h: Removed.
2398         * bindings/js/specialization: Removed.
2399         * bindings/js/specialization/JSBindingState.cpp: Removed.
2400         * bindings/js/specialization/JSBindingState.h: Removed.
2401
2402         * CMakeLists.txt: Removed references to files.
2403         * GNUmakefile.am: Ditto.
2404         * WebCore.gypi: Ditto.
2405         * WebCore.pro: Ditto.
2406         * WebCore.vcproj/WebCore.vcproj: Ditto.
2407         * bindings/js/JSBindingsAllInOne.cpp: Ditto.
2408
2409 2010-12-30  Tony Gentilcore  <tonyg@chromium.org>
2410
2411         Reviewed by Darin Adler.
2412
2413         Remove Document.h include from some headers where it isn't necessary
2414         https://bugs.webkit.org/show_bug.cgi?id=51730
2415
2416         No new tests because no new functionality.
2417
2418         * editing/EditingStyle.cpp:
2419         * editing/EditingStyle.h:
2420         * editing/SelectionController.h:
2421         * editing/visible_units.h:
2422         * html/HTMLAudioElement.h:
2423         * html/HTMLBodyElement.h:
2424         * inspector/InspectorCSSAgent.h:
2425         * inspector/InspectorDOMAgent.h:
2426         * inspector/InspectorInstrumentation.h:
2427         * xml/DOMParser.cpp:
2428         * xml/DOMParser.h:
2429         (WebCore::DOMParser::create):
2430         (WebCore::DOMParser::DOMParser):
2431
2432 2010-12-30  Benjamin C Meyer  <bmeyer@rim.com>
2433
2434         Reviewed by Darin Adler.
2435
2436         bindings/js/JSDesktopNotificationsCustom.cpp is not included in the cmake build
2437         which is required when NOTIFICATIONS is enabled.
2438
2439         https://bugs.webkit.org/show_bug.cgi?id=51761
2440
2441         * CMakeLists.txt:
2442
2443 2010-12-30  Antti Koivisto  <antti@apple.com>
2444
2445         Not reviewed.
2446
2447         Revert accidental project file change.
2448
2449         * WebCore.xcodeproj/project.pbxproj:
2450
2451 2010-12-30  Antti Koivisto  <antti@apple.com>
2452
2453         Reviewed by Darin Adler.
2454
2455         https://bugs.webkit.org/show_bug.cgi?id=51134
2456         Move loading related code from MemoryCache to CachedResourceLoader
2457
2458         - Merge MemoryCache::requestResource to CachedResourceLoader::requestResource
2459         - Merge MemoryCache::requestUserCSSStyleSheet to CachedResourceLoader::requestUserCSSStyleSheet
2460         - Move MemoryCache::revalidateResource to CachedResourceLoader::revalidateResource
2461         - Add MemoryCache::add
2462         - Refactor the decision on whether to reload, revalidate or use the existing resource to 
2463           a single function, CachedResourceLoader::determineRevalidationPolicy
2464
2465         * css/CSSImageValue.cpp:
2466         (WebCore::CSSImageValue::cachedImage):
2467             
2468             Remove a code path that called MemoryCache::requestResource directly. This code path would have crashed
2469             if ever taken (since it passes null CachedResourceLoader pointer).
2470             
2471         * loader/ImageLoader.cpp:
2472         (WebCore::ImageLoader::updateFromElement):
2473         * loader/cache/CachedImage.cpp:
2474         * loader/cache/CachedResource.cpp:
2475         (WebCore::CachedResource::CachedResource):
2476         (WebCore::CachedResource::~CachedResource):
2477         (WebCore::CachedResource::mustRevalidateDueToCacheHeaders):
2478         
2479             Moved tests that were not about cache headers to CachedResourceLoader::determineRevalidationPolicy and renamed.
2480         
2481         (WebCore::CachedResource::setLoadPriority):
2482         
2483             Check for Unresolved value before setting.
2484         
2485         * loader/cache/CachedResource.h:
2486         (WebCore::CachedResource::setOwningCachedResourceLoader):
2487         
2488             Rename to be bit less mysterious.
2489         
2490         * loader/cache/CachedResourceLoader.cpp:
2491         (WebCore::createResource):
2492         
2493             This was moved from MemoryCache.
2494         
2495         (WebCore::CachedResourceLoader::~CachedResourceLoader):
2496         (WebCore::CachedResourceLoader::determineRevalidationPolicy):
2497         (WebCore::CachedResourceLoader::requestUserCSSStyleSheet):
2498         
2499             This was moved/merged from MemoryCache.
2500         
2501         (WebCore::CachedResourceLoader::canRequest):
2502         (WebCore::CachedResourceLoader::requestResource):
2503         
2504             This combines MemoryCache::requestResource and the existing method.
2505         
2506         (WebCore::CachedResourceLoader::revalidateResource):
2507         
2508             This was moved from MemoryCache.
2509         
2510         (WebCore::CachedResourceLoader::loadResource):
2511         
2512             New method for initiating loading.
2513         
2514         (WebCore::CachedResourceLoader::notifyLoadedFromMemoryCache):
2515         
2516             Renamed the mysterious CachedResourceLoader::checkCacheObjectStatus
2517         
2518         * loader/cache/CachedResourceLoader.h:
2519         * loader/cache/MemoryCache.cpp:
2520         (WebCore::MemoryCache::add):
2521         * loader/cache/MemoryCache.h:
2522         (WebCore::MemoryCache::remove):
2523
2524 2010-12-30  Steve Block  <steveblock@google.com>
2525
2526         Reviewed by Gavin Barraclough.
2527
2528         Enable JSC Rich Source Info for Android even when Inspector and Debugger are disabled
2529         https://bugs.webkit.org/show_bug.cgi?id=51740
2530
2531         This is a policy decision for Android.
2532
2533         No new tests, simply enabling existing, tested code on Android.
2534
2535         * bindings/js/JSDOMWindowBase.cpp:
2536         (WebCore::JSDOMWindowBase::supportsRichSourceInfo):
2537
2538 2010-12-30  Yael Aharon  <yael.aharon@nokia.com>
2539
2540         Reviewed by Adam Barth.
2541
2542         REGRESSION: fast/dom/cssTarget-crash.html fails
2543         https://bugs.webkit.org/show_bug.cgi?id=20342
2544
2545         Do not reload the page when submitting a form, using "GET" method, and the
2546         form action url matches the location url, except for the fragment.
2547       
2548         Test: fast/forms/submit-change-fragment.html
2549
2550         * loader/FrameLoader.cpp:
2551         (WebCore::FrameLoader::loadURL):
2552         (WebCore::FrameLoader::loadWithDocumentLoader):
2553         (WebCore::FrameLoader::shouldScrollToAnchor):
2554         * loader/FrameLoader.h:
2555
2556 2010-12-30  Darin Adler  <darin@apple.com>
2557
2558         Reviewed by Adam Barth.
2559
2560         Move security logic out of the JavaScript binding for location into the DOM class
2561         https://bugs.webkit.org/show_bug.cgi?id=51714
2562
2563         * WebCore.xcodeproj/project.pbxproj: Removed JSBindingState.cpp, JSBindingState.h,
2564         and JSBinding.h. Later, we'll remove them from other project files and delete
2565         the source files.
2566
2567         * bindings/js/JSBinding.h: Emptied out, marked for later deletion.
2568
2569         * bindings/js/JSDOMBinding.cpp: Removed unused overload of the jsOwnedStringOrNull
2570         function, unused shouldAllowNavigation function, unused allowSettingSrcToJavascriptURL
2571         function, unused toLexicalFrame function, unused completeURL function, unused
2572         getCachedDOMStructure and cacheDOMStructure overloads, and unused
2573         getCachedDOMConstructor and cacheDOMConstruction functions.
2574         (WebCore::activeDOMWindow): Added.
2575         (WebCore::firstDOMWindow): Added.
2576         (WebCore::toDynamicFrame): Changed to use firstDOMWindow instead of calling through
2577         JSBindingState, since the latter is an unneeded abstraction.
2578         (WebCore::processingUserGesture): Changed to call ScriptController's function
2579         rather than calling through JSBindingState, which is an unneeded abstraction
2580
2581         * bindings/js/JSDOMBinding.h: Removed the functions mentioned above. Added
2582         activeDOMWindow and firstDOMWindow. Also added a FIXME for the extremely poorly
2583         named allowsAccessFromFrame functions, which answer the question of whether
2584         script is allowed access *to* a frame.
2585
2586         * bindings/js/JSDOMWindowCustom.cpp: Removed many unneeded includes.
2587         (WebCore::JSDOMWindow::setLocation): Streamlined by using the new
2588         activeDOMWindow and firstDOMWindow functions.
2589         (WebCore::JSDOMWindow::open): Ditto.
2590         (WebCore::JSDOMWindow::showModalDialog): Ditto.
2591         (WebCore::JSDOMWindow::postMessage): Ditto.
2592
2593         * bindings/js/JSLocationCustom.cpp:
2594         (WebCore::JSLocation::setHref): Changed to pass the active and first windows through
2595         to the Location::setHref function, with it doing the rest of the work. This moves
2596         work out of the DOM binding that belongs in the DOM itself. Eventually such functions
2597         could even be automatically generated by the bindings script.
2598         (WebCore::JSLocation::setProtocol): Ditto.
2599         (WebCore::JSLocation::setHost): Ditto.
2600         (WebCore::JSLocation::setHostname): Ditto.
2601         (WebCore::JSLocation::setPort): Ditto.
2602         (WebCore::JSLocation::setPathname): Ditto.
2603         (WebCore::JSLocation::setSearch): Ditto.
2604         (WebCore::JSLocation::setHash): Ditto.
2605         (WebCore::JSLocation::replace): Ditto.
2606         (WebCore::JSLocation::reload): Ditto.
2607         (WebCore::JSLocation::assign): Ditto.
2608
2609         * bindings/js/specialization/JSBindingState.cpp: Emptied out, marked for later deletion.
2610         * bindings/js/specialization/JSBindingState.h: Emptied out, marked for later deletion.
2611
2612         * page/DOMWindow.cpp:
2613         (WebCore::DOMWindow::setLocation): Added a SetLocationLocking argument that allows us
2614         to use this function for Location::replace, which is the same as setLocation except that
2615         it locks both history and the back/forward list.
2616         * page/DOMWindow.h: Ditto.
2617
2618         * page/Location.cpp:
2619         (WebCore::Location::setHref): Added. Uses DOMWindow::setLocation so that the security
2620         logic there does not have to be repeated or even refactored.
2621         (WebCore::Location::setProtocol): Ditto.
2622         (WebCore::Location::setHost): Ditto.
2623         (WebCore::Location::setHostname): Ditto.
2624         (WebCore::Location::setPort): Ditto.
2625         (WebCore::Location::setPathname): Ditto.
2626         (WebCore::Location::setSearch): Ditto.
2627         (WebCore::Location::setHash): Ditto.
2628         (WebCore::Location::assign): Ditto.
2629         (WebCore::Location::replace): Ditto.
2630         (WebCore::Location::reload): Added. Security logic was refactored from the code in
2631         JSLocationCustom.cpp. Added a FIXME about the fact that this security logic seems
2632         possibly unneeded.
2633
2634         * page/Location.h: Fixed indentation on the whole file. Added the new functions above.
2635         (WebCore::Location::create):
2636         (WebCore::Location::frame):
2637
2638 2010-12-30  Alexander Pavlov  <apavlov@chromium.org>
2639
2640         Reviewed by Pavel Feldman.
2641
2642         Web Inspector: Pasting a style property with value should automatically split it into prop/value
2643         https://bugs.webkit.org/show_bug.cgi?id=51581
2644
2645         The "paste" DOM event is handled for the CSS property name field to parse out the name and value parts
2646         of a CSS property being pasted (by the first ':' found). The property is committed (if not a new one),
2647         and the edit focus is transferred to the value field.
2648
2649         * inspector/front-end/StylesSidebarPane.js:
2650         (WebInspector.StylePropertyTreeElement.prototype.selectElement):
2651         (WebInspector.StylePropertyTreeElement.prototype):
2652         * inspector/front-end/inspector.js:
2653         (WebInspector.completeURL): Drive-by: return full URLs as-is.
2654         (WebInspector.startEditing.cleanUpAfterEditing):
2655         (WebInspector.startEditing):
2656         (WebInspector.startEditing.pasteEventListener):
2657         (WebInspector.startEditing.keyDownEventListener):
2658
2659 2010-12-30  Pavel Podivilov  <podivilov@chromium.org>
2660
2661         Reviewed by Pavel Feldman.
2662
2663         Web Inspector: breakpoint is not disabled when clicking on breakpoints sidebar pane checkbox.
2664         https://bugs.webkit.org/show_bug.cgi?id=51745
2665
2666         * inspector/front-end/Breakpoint.js:
2667         (WebInspector.Breakpoint.prototype.set enabled):
2668
2669 2010-12-30  Pavel Podivilov  <podivilov@chromium.org>
2670
2671         Reviewed by Pavel Feldman.
2672
2673         Web Inspector: call stack shows "Paused on a JavaScript breakpoint" when stepping.
2674         https://bugs.webkit.org/show_bug.cgi?id=51748
2675
2676         * inspector/front-end/CallStackSidebarPane.js:
2677         (WebInspector.CallStackSidebarPane.prototype.update):
2678         (WebInspector.CallStackSidebarPane.prototype.registerShortcuts):
2679         (WebInspector.CallStackSidebarPane.prototype._scriptBreakpointHit):
2680         (WebInspector.CallStackSidebarPane.prototype._nativeBreakpointHit):
2681
2682 2010-12-30  Mikhail Naganov  <mnaganov@chromium.org>
2683
2684         Reviewed by Pavel Feldman.
2685
2686         Fix leak of MemoryInfo wrappers introduced in r57004 (see issue 51712).
2687
2688         https://bugs.webkit.org/show_bug.cgi?id=51713
2689
2690         * WebCore.gypi:
2691         * WebCore.pro:
2692         * bindings/v8/custom/V8ConsoleCustom.cpp:
2693         (WebCore::V8Console::memoryAccessorGetter):
2694         * bindings/v8/custom/V8PerformanceCustom.cpp: Copied from V8ConsoleCustom.cpp.
2695         (WebCore::V8Performance::memoryAccessorGetter):
2696         * page/Console.idl:
2697         * page/Performance.idl:
2698
2699 2010-12-30  Steve Block  <steveblock@google.com>
2700
2701         Reviewed by Sam Weinig.
2702
2703         Visiting macnn.com often causes SQL spew via geolocation database
2704         https://bugs.webkit.org/show_bug.cgi?id=51557
2705
2706         If the Geolocation position cache database path has not been set, early-out
2707         rather than using an empty path and thus failing to open the database.
2708         This avoids SQL log spew.
2709
2710         Also, avoid starting the database thread until the path has been set, and
2711         shorten the thread name to avoid warnings due to exceeding 30 characters.
2712
2713         No new tests, implementation clean-up only.
2714
2715         * page/GeolocationPositionCache.cpp:
2716         (WebCore::GeolocationPositionCache::addUser):
2717         (WebCore::GeolocationPositionCache::removeUser):
2718         (WebCore::GeolocationPositionCache::setDatabasePath):
2719         (WebCore::GeolocationPositionCache::startBackgroundThread):
2720
2721 2010-12-29  Philippe Normand  <pnormand@igalia.com>
2722
2723         Reviewed by Martin Robinson.
2724
2725         [GTK] minimal build fails at link time due to missing sqlite3 symbols
2726         https://bugs.webkit.org/show_bug.cgi?id=51327
2727
2728         Guard the code calling sqlite3 with the ENABLE(DATABASE) check.
2729
2730         No new tests, build fix only.
2731
2732         * platform/sql/SQLiteAuthorizer.cpp:
2733         * platform/sql/SQLiteDatabase.cpp:
2734         * platform/sql/SQLiteFileSystem.cpp:
2735         * platform/sql/SQLiteStatement.cpp:
2736         * platform/sql/SQLiteTransaction.cpp:
2737
2738 2010-12-30  Justin Schuh  <jschuh@chromium.org>
2739
2740         Reviewed by Dirk Schulze.
2741
2742         Prevent stringToLengthType() from skipping past end-of-string on invalid length unit. 
2743         https://bugs.webkit.org/show_bug.cgi?id=51692
2744
2745         * svg/SVGLength.cpp:
2746         (WebCore::stringToLengthType):
2747         (WebCore::SVGLength::setValueAsString):
2748
2749 2010-12-30  Abhishek Arya  <inferno@chromium.org>
2750
2751         Reviewed by Eric Seidel.
2752
2753         Create a helper function for finding descendent video elements for a node.
2754         https://bugs.webkit.org/show_bug.cgi?id=51696
2755
2756         Test: media/video-element-other-namespace-crash.html
2757
2758         * html/MediaDocument.cpp:
2759         (WebCore::descendentVideoElement): helper function.
2760         (WebCore::MediaDocument::defaultEventHandler): use the new helper function. fix code repetitions.
2761         (WebCore::MediaDocument::replaceMediaElementTimerFired): use the new helper function.
2762
2763 2010-12-29  Pavel Feldman  <pfeldman@chromium.org>
2764
2765         Reviewed by Yury Semikhatsky.
2766
2767         Web Inspector: extract Database & DOM Storage agents; remove InspectorBackend.
2768         https://bugs.webkit.org/show_bug.cgi?id=51707
2769
2770         This change brushes up storage agents + removes redundant InspectorBackend class.
2771
2772         * CMakeLists.txt:
2773         * GNUmakefile.am:
2774         * WebCore.gypi:
2775         * WebCore.pro:
2776         * WebCore.vcproj/WebCore.vcproj:
2777         * WebCore.xcodeproj/project.pbxproj:
2778         * inspector/CodeGeneratorInspector.pm:
2779         * inspector/InjectedScriptHost.cpp:
2780         (WebCore::InjectedScriptHost::databaseForId):
2781         (WebCore::InjectedScriptHost::selectDatabase):
2782         (WebCore::InjectedScriptHost::selectDOMStorage):
2783         (WebCore::InjectedScriptHost::inspectorDOMAgent):
2784         * inspector/Inspector.idl:
2785         * inspector/InspectorBackend.cpp: Removed.
2786         * inspector/InspectorBackend.h: Removed.
2787         * inspector/InspectorController.cpp:
2788         (WebCore::InspectorController::InspectorController):
2789         (WebCore::InspectorController::~InspectorController):
2790         (WebCore::InspectorController::connectFrontend):
2791         (WebCore::InspectorController::releaseFrontendLifetimeAgents):
2792         (WebCore::InspectorController::didUseDOMStorage):
2793         (WebCore::InspectorController::setInjectedScriptSource):
2794         (WebCore::InspectorController::dispatchOnInjectedScript):
2795         (WebCore::InspectorController::releaseWrapperObjectGroup):
2796         * inspector/InspectorController.h:
2797         * inspector/InspectorDOMStorageAgent.cpp: Added.
2798         (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent):
2799         (WebCore::InspectorDOMStorageAgent::getDOMStorageEntries):
2800         (WebCore::InspectorDOMStorageAgent::setDOMStorageItem):
2801         (WebCore::InspectorDOMStorageAgent::removeDOMStorageItem):
2802         (WebCore::InspectorDOMStorageAgent::selectDOMStorage):
2803         (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
2804         (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
2805         * inspector/InspectorDOMStorageAgent.h: Copied from WebCore/inspector/InspectorStorageAgent.h.
2806         (WebCore::InspectorDOMStorageAgent::create):
2807         (WebCore::InspectorDOMStorageAgent::frontend):
2808         * inspector/InspectorDatabaseAgent.cpp: Renamed from WebCore/inspector/InspectorStorageAgent.cpp.
2809         (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
2810         (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
2811         (WebCore::InspectorDatabaseAgent::executeSQL):
2812         (WebCore::InspectorDatabaseAgent::databaseForId):
2813         (WebCore::InspectorDatabaseAgent::selectDatabase):
2814         (WebCore::InspectorDatabaseAgent::clearFrontend):
2815         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
2816         * inspector/InspectorDatabaseAgent.h: Renamed from WebCore/inspector/InspectorStorageAgent.h.
2817         (WebCore::InspectorDatabaseAgent::create):
2818         (WebCore::InspectorDatabaseAgent::frontend):
2819         * inspector/front-end/ScriptsPanel.js:
2820         (WebInspector.ScriptsPanel.prototype.show):
2821         (WebInspector.ScriptsPanel.prototype.attachDebuggerWhenShown):
2822         (WebInspector.ScriptsPanel.prototype._toggleDebugging):
2823
2824 2010-12-29  Dirk Schulze  <krit@webkit.org>
2825
2826         Reviewed by Darin Adler.
2827
2828         Cleanup SVG code according to the webkit style rules 3
2829         https://bugs.webkit.org/show_bug.cgi?id=51490
2830
2831         Last patch to fix indention and other style issues according to the WebKit style rules in the SVG code.
2832         Just one file can't be fixed for check-webkit-style.
2833         * SVGAllInOne.cpp: check-webkit-style wants a config.h at the beginning
2834
2835         No changes of functionality, so no new tests. 
2836
2837         * svg/SVGAllInOne.cpp:
2838         * svg/SVGImage.cpp:
2839         * svg/SVGLength.cpp:
2840         (WebCore::SVGLength::setValue):
2841         * svg/SVGPolygonElement.h:
2842         * svg/SVGPolylineElement.h:
2843         * svg/SVGPreserveAspectRatio.cpp:
2844         (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
2845         (WebCore::SVGPreserveAspectRatio::transformRect):
2846         * svg/SVGSVGElement.cpp:
2847         (WebCore::SVGSVGElement::viewport):
2848         * svg/SVGSetElement.h:
2849         * svg/SVGStylable.h:
2850         (WebCore::SVGStylable::~SVGStylable):
2851         * svg/SVGStyledLocatableElement.h:
2852         (WebCore::SVGStyledLocatableElement::localCoordinateSpaceTransform):
2853         (WebCore::SVGStyledLocatableElement::isStyledLocatable):
2854         * svg/SVGStyledTransformableElement.cpp:
2855         (WebCore::SVGStyledTransformableElement::isKnownAttribute):
2856         * svg/SVGSwitchElement.cpp:
2857         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
2858         * svg/SVGTests.cpp:
2859         (WebCore::SVGTests::parseMappedAttribute):
2860         * svg/SVGTextContentElement.cpp:
2861         (WebCore::SVGTextContentElement::isKnownAttribute):
2862         * svg/SVGTextPathElement.cpp:
2863         * svg/SVGTextPathElement.h:
2864         * svg/SVGTitleElement.h:
2865         (WebCore::SVGTitleElement::rendererIsNeeded):
2866         * svg/SVGTransformDistance.cpp:
2867         (WebCore::SVGTransformDistance::SVGTransformDistance):
2868         (WebCore::SVGTransformDistance::scaledDistance):
2869         (WebCore::SVGTransformDistance::addSVGTransforms):
2870         (WebCore::SVGTransformDistance::addSVGTransform):
2871         (WebCore::SVGTransformDistance::addToSVGTransform):
2872         (WebCore::SVGTransformDistance::isZero):
2873         * svg/SVGTransformList.cpp:
2874         * svg/SVGURIReference.cpp:
2875         (WebCore::SVGURIReference::getTarget):
2876         * svg/SVGVKernElement.h:
2877         * svg/SVGViewSpec.cpp:
2878         (WebCore::SVGViewSpec::parseViewSpec):
2879         * svg/SVGZoomAndPan.h:
2880         (WebCore::SVGZoomAndPan::SVGZoomAndPan):
2881         (WebCore::SVGZoomAndPan::~SVGZoomAndPan):
2882         (WebCore::SVGZoomAndPan::zoomAndPan):
2883         * svg/SVGZoomEvent.h:
2884         (WebCore::SVGZoomEvent::create):
2885         * svg/animation/SMILTime.cpp:
2886         (WebCore::operator*):
2887         * svg/animation/SMILTime.h:
2888         (WebCore::SMILTime::SMILTime):
2889         (WebCore::SMILTime::unresolved):
2890         (WebCore::SMILTime::indefinite):
2891         (WebCore::SMILTime::operator=):
2892         (WebCore::SMILTime::value):
2893         (WebCore::SMILTime::isFinite):
2894         (WebCore::SMILTime::isIndefinite):
2895         (WebCore::SMILTime::isUnresolved):
2896         (WebCore::operator==):
2897         (WebCore::operator!): new operator checks for 0 or infinite values.
2898         (WebCore::operator!=):
2899         (WebCore::operator>):
2900         (WebCore::operator<):
2901         (WebCore::operator>=):
2902         (WebCore::operator<=):
2903         * svg/animation/SMILTimeContainer.h:
2904         (WebCore::SMILTimeContainer::create):
2905         (WebCore::SMILTimeContainer::setDocumentOrderIndexesDirty):
2906         * svg/animation/SVGSMILElement.cpp:
2907         (WebCore::ConditionEventListener::operator==):
2908         (WebCore::SVGSMILElement::repeatingDuration):
2909         (WebCore::SVGSMILElement::resolveInterval):
2910         (WebCore::SVGSMILElement::calculateAnimationPercentAndRepeat):
2911         * svg/animation/SVGSMILElement.h:
2912         (WebCore::SVGSMILElement::timeContainer):
2913         (WebCore::SVGSMILElement::intervalBegin):
2914         (WebCore::SVGSMILElement::intervalEnd):
2915         (WebCore::SVGSMILElement::previousIntervalBegin):
2916         (WebCore::SVGSMILElement::documentOrderIndex):
2917         (WebCore::SVGSMILElement::setDocumentOrderIndex):
2918         * svg/graphics/SVGImage.h:
2919         (WebCore::SVGImage::create):
2920         (WebCore::SVGImage::destroyDecodedData):
2921         (WebCore::SVGImage::decodedSize):
2922         (WebCore::SVGImage::frameAtIndex):
2923         * svg/graphics/filters/SVGFilterBuilder.h:
2924         (WebCore::SVGFilterBuilder::create):
2925         (WebCore::SVGFilterBuilder::lastEffect):
2926         (WebCore::SVGFilterBuilder::getEffectReferences):
2927         (WebCore::SVGFilterBuilder::addBuiltinEffects):
2928
2929 2010-12-29  Abhishek Arya  <inferno@chromium.org>
2930
2931         Reviewed by Darin Adler.
2932
2933         ASSERT(oldchild->parent() == owner) fails.
2934         https://bugs.webkit.org/show_bug.cgi?id=50480
2935
2936         In RenderBlock removeChild function, when the inlineChildrenBlock(equal to prev or next)
2937         is reparented to blockChildrenBlock, it is no longer a child of "this". This causes the
2938         assertion failure when removeChildNode executes on the child(equal to prev or next).
2939         Fix a typo in canMergeContiguousAnonymousBlocks.
2940
2941         Test: fast/multicol/span/double-merge-anonymous-block-crash.html
2942
2943         * rendering/RenderBlock.cpp:
2944         (WebCore::canMergeContiguousAnonymousBlocks): fix typo, change prev to next.
2945         (WebCore::RenderBlock::removeChild): if prev or not is reparented, then set it to zero.
2946
2947 2010-12-29  Justin Schuh  <jschuh@chromium.org>
2948
2949         Reviewed by Darin Adler.
2950
2951         Check SVG element type in FrameView::scrollToAnchor
2952         https://bugs.webkit.org/show_bug.cgi?id=51718
2953
2954         Test: svg/custom/scroll-to-anchor-in-symbol.svg
2955
2956         * page/FrameView.cpp:
2957         (WebCore::FrameView::scrollToAnchor):
2958
2959 2010-12-29  Anton Muhin  <antonm@chromium.org>
2960
2961         Reviewed by Eric Seidel.
2962
2963         [v8] Minor cleanup: remove unused method (the only method which can mutate context of V8DOMWindowShell)
2964         https://bugs.webkit.org/show_bug.cgi?id=51704
2965
2966         * bindings/v8/V8DOMWindowShell.cpp:
2967         * bindings/v8/V8DOMWindowShell.h:
2968
2969 2010-12-29  Kenichi Ishibashi  <bashi@google.com>
2970
2971         Reviewed by Darin Adler.
2972
2973         Use a HashMap for m_continuation to save memory
2974         https://bugs.webkit.org/show_bug.cgi?id=43716
2975
2976         Saving memory consumption by applying a HashMap convention to
2977         continuation pointers of RenderInline and RenderBlock classes.
2978
2979         * rendering/RenderBlock.cpp: Removed m_continuation.
2980         (WebCore::RenderBlock::RenderBlock):
2981         (WebCore::RenderBlock::destroy):
2982         (WebCore::RenderBlock::inlineElementContinuation):
2983         (WebCore::RenderBlock::blockElementContinuation):
2984         * rendering/RenderBlock.h: Removed m_continuation.
2985         * rendering/RenderBoxModelObject.cpp: Added a hash map for continuations.
2986         (WebCore::RenderBoxModelObject::destroy): Added an assertion.
2987         (WebCore::RenderBoxModelObject::continuation): Added.
2988         (WebCore::RenderBoxModelObject::setContinuation): Added.
2989         * rendering/RenderBoxModelObject.h:
2990         * rendering/RenderInline.cpp: Removed m_continuation.
2991         (WebCore::RenderInline::RenderInline):
2992         (WebCore::RenderInline::destroy):
2993         (WebCore::RenderInline::inlineElementContinuation):
2994         * rendering/RenderInline.h: Removed m_continuation.
2995
2996 2010-12-27  Amruth Raj  <amruthraj@motorola.com> and Ravi Kasibhatla  <ravi.kasibhatla@motorola.com>
2997
2998         Reviewed by Martin Robinson.
2999
3000         [GTK] Enable building whatever already exists of WebKit2
3001         https://bugs.webkit.org/show_bug.cgi?id=37369
3002
3003         No new functionality added or deleted. Only makefile change. Hence, no tests added.
3004
3005         * GNUmakefile.am: Removed bindings/gobject from webcore_sources & webcore_cppflags and
3006         added them to WebKit/gtk/GNUmakefile.am
3007         * platform/network/soup/cache/webkit/soup-cache.h: Remove include <webkit/webkitdefines.h>
3008         and declare WEBKIT_API directly
3009
3010 2010-12-29  Eric Seidel  <eric@webkit.org>
3011
3012         Unreviewed.
3013
3014         Simplify make-hash-tools.pl
3015         https://bugs.webkit.org/show_bug.cgi?id=49922
3016
3017         Added HashTools.h to the project file now that its not autogenerated.
3018         I also sorted the project file using sort-xcode-project-file
3019
3020         * WebCore.xcodeproj/project.pbxproj:
3021
3022 2010-12-29  Pavel Feldman  <pfeldman@chromium.org>
3023
3024         Not reviewed: revert r74755 and 74757.
3025
3026 2010-12-29  Martin Robinson  <mrobinson@igalia.com>
3027
3028         Reviewed by Sam Weinig.
3029
3030         JSDataViewCustom.cpp gives the fastcall calling convention to functions called via C++
3031         https://bugs.webkit.org/show_bug.cgi?id=51722
3032
3033         Remove the JSC_HOST_CALL from methods that are called from C++. JSC_HOST_CALL gives
3034         methods the fastcall calling convention, which leads to runtime errors when they are
3035         called from C++. Also remove a bit of unnecessary code duplication.
3036
3037         No new tests. This is covered by fast/canvas/webgl/data-view-test.html.
3038
3039         * bindings/js/JSDataViewCustom.cpp:
3040         (WebCore::getDataViewMember): Remove duplicated code.
3041         (WebCore::JSDataView::getInt8): Remove JSC_HOST_CALL.
3042         (WebCore::JSDataView::getUint8): Ditto.
3043         (WebCore::JSDataView::getFloat32): Ditto.
3044         (WebCore::JSDataView::getFloat64): Ditto.
3045         (WebCore::setDataViewMember): Remove duplicated code.
3046         (WebCore::JSDataView::setInt8): Remove JSC_HOST_CALL.
3047         (WebCore::JSDataView::setUint8): Ditto.
3048
3049 2010-12-29  Dan Bernstein  <mitz@apple.com>
3050
3051         Reviewed by Kenneth Russel.
3052
3053         A more robust fix for https://bugs.webkit.org/show_bug.cgi?id=51681
3054
3055         * html/HTMLCanvasElement.cpp:
3056         (WebCore::HTMLCanvasElement::attach): Added. Like recalcStyle(), calls
3057         CanvasRenderingContext2D::updateFont() if necessary. This covers the case of a detach/
3058         attach-type style recalc.
3059         * html/HTMLCanvasElement.h:
3060         * html/canvas/CanvasRenderingContext2D.cpp:
3061         (WebCore::CanvasRenderingContext2D::drawTextInternal): Removed the early return added in
3062         r74716. A font that is loading custom fonts is okay to use, as long as it is valid.
3063         (WebCore::CanvasRenderingContext2D::accessFont): Added a call to
3064         Document::updateStyleIfNeeded(). This ensures that any pending style recalc will take place
3065         and update the font if it is invalid.
3066         * platform/graphics/Font.h:
3067         (WebCore::Font::loadingCustomFonts): Made this private.
3068
3069 2010-12-29  Pavel Feldman  <pfeldman@chromium.org>
3070
3071         Not reviewed: Qt build fix.
3072
3073         * inspector/InspectorController.cpp:
3074
3075 2010-12-29  Pavel Feldman  <pfeldman@chromium.org>
3076
3077         Reviewed by Yury Semikhatsky.
3078
3079         Web Inspector: extract Database & DOM Storage
3080         agents; remove InspectorBackend.
3081         https://bugs.webkit.org/show_bug.cgi?id=51707
3082
3083         This change brushes up storage agents + removes redundant
3084         InspectorBackend class.
3085
3086         * CMakeLists.txt:
3087         * GNUmakefile.am:
3088         * WebCore.gypi:
3089         * WebCore.pro:
3090         * WebCore.vcproj/WebCore.vcproj:
3091         * WebCore.xcodeproj/project.pbxproj:
3092         * inspector/CodeGeneratorInspector.pm:
3093         * inspector/InjectedScriptHost.cpp:
3094         (WebCore::InjectedScriptHost::databaseForId):
3095         (WebCore::InjectedScriptHost::selectDatabase):
3096         (WebCore::InjectedScriptHost::selectDOMStorage):
3097         (WebCore::InjectedScriptHost::inspectorDOMAgent):
3098         * inspector/Inspector.idl:
3099         * inspector/InspectorBackend.cpp: Removed.
3100         * inspector/InspectorBackend.h: Removed.
3101         * inspector/InspectorController.cpp:
3102         (WebCore::InspectorController::InspectorController):
3103         (WebCore::InspectorController::~InspectorController):
3104         (WebCore::InspectorController::connectFrontend):
3105         (WebCore::InspectorController::releaseFrontendLifetimeAgents):
3106         (WebCore::InspectorController::didUseDOMStorage):
3107         (WebCore::InspectorController::setInjectedScriptSource):
3108         (WebCore::InspectorController::dispatchOnInjectedScript):
3109         (WebCore::InspectorController::releaseWrapperObjectGroup):
3110         * inspector/InspectorController.h:
3111         * inspector/InspectorDOMStorageAgent.cpp: Added.
3112         (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent):
3113         (WebCore::InspectorDOMStorageAgent::getDOMStorageEntries):
3114         (WebCore::InspectorDOMStorageAgent::setDOMStorageItem):
3115         (WebCore::InspectorDOMStorageAgent::removeDOMStorageItem):
3116         (WebCore::InspectorDOMStorageAgent::selectDOMStorage):
3117         (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
3118         (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
3119         * inspector/InspectorDOMStorageAgent.h: Copied from WebCore/inspector/InspectorStorageAgent.h.
3120         (WebCore::InspectorDOMStorageAgent::create):
3121         (WebCore::InspectorDOMStorageAgent::frontend):
3122         * inspector/InspectorDatabaseAgent.cpp: Renamed from WebCore/inspector/InspectorStorageAgent.cpp.
3123         (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
3124         (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
3125         (WebCore::InspectorDatabaseAgent::executeSQL):
3126         (WebCore::InspectorDatabaseAgent::databaseForId):
3127         (WebCore::InspectorDatabaseAgent::selectDatabase):
3128         (WebCore::InspectorDatabaseAgent::clearFrontend):
3129         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
3130         * inspector/InspectorDatabaseAgent.h: Renamed from WebCore/inspector/InspectorStorageAgent.h.
3131         (WebCore::InspectorDatabaseAgent::create):
3132         (WebCore::InspectorDatabaseAgent::frontend):
3133         * inspector/InspectorFrontendClientLocal.cpp:
3134         * inspector/InspectorFrontendClientLocal.h:
3135         * inspector/front-end/ScriptsPanel.js:
3136         (WebInspector.ScriptsPanel.prototype.show):
3137
3138 2010-12-29  Tony Gentilcore  <tonyg@chromium.org>
3139
3140         Reviewed by Eric Seidel.
3141
3142         Assertion failure: element->inDocument() in AsyncScriptRunner::executeScriptSoon()
3143         https://bugs.webkit.org/show_bug.cgi?id=51067
3144
3145         Typically when a script element is removed from the document, the cached script
3146         client is removed. However, during the before load event, the cached script client
3147         hasn't been created yet so it can't be removed.
3148
3149         This patch handles that case by explicitly checking if the script element was
3150         removed during the beforeload event. Also, it avoids caching the Document references
3151         over the arbitrary script execution in the before load event.
3152
3153         Test: fast/dom/HTMLScriptElement/move-in-beforeload.html
3154               fast/dom/HTMLScriptElement/remove-in-beforeload.html
3155
3156         * dom/ScriptElement.cpp:
3157         (WebCore::ScriptElement::requestScript):
3158
3159 2010-12-29  Alexander Pavlov  <apavlov@chromium.org>
3160
3161         Reviewed by Yury Semikhatsky.
3162
3163         Web Inspector: Element highlight tooltip displays wrong element size when zoomed in
3164         https://bugs.webkit.org/show_bug.cgi?id=51703
3165
3166         * inspector/InspectorController.cpp:
3167         (WebCore::InspectorController::drawElementTitle):
3168
3169 2010-12-29  Yael Aharon  <yael.aharon@nokia.com>
3170
3171         Reviewed by Kent Tamura.
3172
3173         [HTML5][Forms] Support for :in-range and :out-of-range CSS selectors
3174         https://bugs.webkit.org/show_bug.cgi?id=29071
3175
3176         Use InputType::rangeUnderflow() and InputType::rangeOverflow()
3177         to determine if a control is in-range or out-of-range.
3178
3179         Tests: fast/css/pseudo-in-range-invalid-value.html
3180                fast/css/pseudo-in-range.html
3181                fast/css/pseudo-out-of-range.html
3182
3183         * css/CSSSelector.cpp:
3184         (WebCore::CSSSelector::pseudoId):
3185         (WebCore::nameToPseudoTypeMap):
3186         (WebCore::CSSSelector::extractPseudoType):
3187         * css/CSSSelector.h:
3188         * css/CSSStyleSelector.cpp:
3189         (WebCore::CSSStyleSelector::canShareStyleWithElement):
3190         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
3191         * dom/Element.h:
3192         (WebCore::Element::isInRange):
3193         (WebCore::Element::isOutOfRange):
3194         * html/BaseDateAndTimeInputType.cpp:
3195         (WebCore::BaseDateAndTimeInputType::supportsRangeLimitation):
3196         * html/BaseDateAndTimeInputType.h:
3197         * html/HTMLInputElement.cpp:
3198         (WebCore::HTMLInputElement::isInRange):
3199         (WebCore::HTMLInputElement::isOutOfRange):
3200         * html/HTMLInputElement.h:
3201         * html/InputType.cpp:
3202         (WebCore::InputType::supportsRangeLimitation):
3203         * html/InputType.h:
3204         * html/NumberInputType.cpp:
3205         (WebCore::NumberInputType::supportsRangeLimitation):
3206         * html/NumberInputType.h:
3207         * html/RangeInputType.cpp:
3208         (WebCore::RangeInputType::supportsRangeLimitation):
3209         * html/RangeInputType.h:
3210
3211 2010-12-29  Abhishek Arya  <inferno@chromium.org>
3212
3213         Reviewed by Eric Seidel.
3214
3215         When cloning an anonymous block, make sure to set the childrenInline flag based
3216         on the state of the block to be cloned.
3217         https://bugs.webkit.org/show_bug.cgi?id=51489
3218
3219         Test: fast/multicol/span/clone-anonymous-block-non-inline-child-crash.html
3220
3221         * rendering/RenderBlock.cpp:
3222         (WebCore::RenderBlock::clone): add code to handle cloning of anonymous blocks.
3223         (WebCore::RenderBlock::splitBlocks): remove anonymous block creation calls since it is now handled by clone().
3224
3225 2010-12-29  Patrick Gansterer  <paroga@webkit.org>
3226
3227         Unreviewed build fix for WinCE after r73802.
3228
3229         Reapply parts from r72585:
3230         Port ContextMenuWin.cpp to WinCE
3231         https://bugs.webkit.org/show_bug.cgi?id=48408
3232
3233         * CMakeLists.txt:
3234         * platform/ContextMenu.h:
3235         * platform/win/ContextMenuWin.cpp:
3236         (WebCore::ContextMenu::getContextMenuItems):
3237         (WebCore::ContextMenu::createNativeMenuFromItems):
3238
3239 2010-12-29  Kent Hansen  <kent.hansen@nokia.com>
3240
3241         Reviewed by Simon Hausmann.
3242
3243         [Qt] Fix compilation with Qt in namespace
3244         https://bugs.webkit.org/show_bug.cgi?id=51701
3245
3246         * platform/graphics/ContextShadow.h:
3247         * platform/graphics/GraphicsContext3D.h:
3248         * platform/network/NetworkingContext.h:
3249         * platform/network/qt/QtNAMThreadSafeProxy.h:
3250         * plugins/PluginView.h:
3251
3252 2010-12-28  Alexander Pavlov  <apavlov@chromium.org>
3253
3254         Reviewed by Pavel Feldman.
3255
3256         Web Inspector: A disabled style property should get enabled when edited
3257         https://bugs.webkit.org/show_bug.cgi?id=51679
3258
3259         Test: inspector/styles-disable-then-change.html
3260
3261         * inspector/front-end/CSSStyleModel.js:
3262         (WebInspector.CSSProperty.prototype.setText):
3263         (WebInspector.CSSProperty.prototype.setText.callback):
3264
3265 2010-12-29  Patrick Gansterer  <paroga@webkit.org>
3266
3267         Reviewed by Andreas Kling.
3268
3269         [CMake] Remove WebKitGenerators
3270         https://bugs.webkit.org/show_bug.cgi?id=50445
3271
3272         * CMakeLists.txt: Pass preprocessor to generate-bindings.pl.
3273
3274 2010-12-28  Pratik Solanki  <psolanki@apple.com>
3275
3276         Reviewed by Eric Seidel.
3277
3278         https://bugs.webkit.org/show_bug.cgi?id=51522
3279         Use deviceRGBColorSpaceRef() instead of calling CGColorSpaceCreateDeviceRGB()
3280
3281         * page/win/FrameCGWin.cpp:
3282         (WebCore::imageFromRect):
3283         * platform/graphics/cg/GradientCG.cpp:
3284         (WebCore::Gradient::platformGradient):
3285         * platform/graphics/cg/GraphicsContext3DCG.cpp:
3286         (WebCore::GraphicsContext3D::paintToCanvas):
3287         * platform/graphics/cg/ImageCG.cpp:
3288         (WebCore::BitmapImage::checkForSolidColor):
3289         * platform/graphics/gstreamer/ImageGStreamerCG.mm:
3290         (ImageGStreamer::ImageGStreamer):
3291         * platform/graphics/win/GraphicsContextCGWin.cpp:
3292         (WebCore::CGContextWithHDC):
3293         (WebCore::GraphicsContext::releaseWindowsContext):
3294         (WebCore::GraphicsContext::drawWindowsBitmap):
3295         * platform/graphics/win/ImageCGWin.cpp:
3296         (WebCore::BitmapImage::create):
3297         (WebCore::BitmapImage::getHBITMAPOfSize):
3298         * platform/image-decoders/cg/ImageDecoderCG.cpp:
3299         (WebCore::createColorSpace):
3300         * platform/win/DragImageCGWin.cpp:
3301         (WebCore::allocImage):
3302         (WebCore::createCgContextFromBitmap):
3303         * rendering/RenderThemeMac.mm:
3304         (WebCore::RenderThemeMac::paintMenuListButtonGradients):
3305         (WebCore::RenderThemeMac::paintSliderTrack):
3306         * rendering/RenderThemeSafari.cpp:
3307         (WebCore::RenderThemeSafari::paintMenuListButtonGradients):
3308         (WebCore::RenderThemeSafari::paintSliderTrack):
3309
3310 2010-12-28  Daniel Bates  <dbates@rim.com>
3311
3312         Reviewed by Sam Weinig.
3313
3314         Substitute // MARK: for compiler-specific #pragma mark
3315         https://bugs.webkit.org/show_bug.cgi?id=51657
3316
3317         Fix compilation warnings about "#pragma mark" on GTK+ bots by
3318         substituting  "// MARK:" for "#pragma mark", which provides
3319         analogous code-bookmarking functionality under Xcode.
3320
3321         * platform/graphics/cg/PathCG.cpp:
3322         * platform/graphics/mac/WebLayer.mm:
3323
3324 2010-12-28  Jan Erik Hanssen  <jhanssen@sencha.com>
3325
3326         Reviewed by Eric Seidel.
3327
3328         [Qt] GraphicsContext::getCTM() does not need to make a copy of QPainter::combinedTransform()
3329         https://bugs.webkit.org/show_bug.cgi?id=51687
3330
3331         Use a const reference instead of a copy of QPainter::combinedTransform() 
3332         in GraphicsContext::getCTM()
3333
3334         * platform/graphics/qt/GraphicsContextQt.cpp:
3335         (WebCore::GraphicsContext::getCTM):
3336
3337 2010-12-28  Takashi Toyoshima  <toyoshim@google.com>
3338
3339         Reviewed by Eric Seidel.
3340
3341         gcc detected 'control reaches end of non-void function' with
3342         -finstrument-functions option.
3343         https://bugs.webkit.org/show_bug.cgi?id=51669
3344
3345         No new tests. These fixes are trivial.
3346
3347         * dom/Element.cpp:
3348         (WebCore::Element::childTypeAllowed):
3349         * inspector/InspectorResourceAgent.cpp:
3350         (WebCore::cachedResourceTypeString):
3351
3352 2010-12-28  Tony Gentilcore  <tonyg@chromium.org>
3353
3354         Reviewed by Eric Seidel.
3355
3356         Remove unused member of PendingScript
3357         https://bugs.webkit.org/show_bug.cgi?id=51684
3358
3359         This was used when HTMLScriptRunner::runScript created a PendingScript
3360         for inline scripts. But now it just calls executeScript() directly.
3361         External scripts always have the minimum starting line number.
3362
3363         No new tests because no changed functionality.
3364
3365         * dom/PendingScript.cpp:
3366         (WebCore::PendingScript::releaseElementAndClear):
3367         * dom/PendingScript.h:
3368         (WebCore::PendingScript::PendingScript):
3369         (WebCore::PendingScript::operator=):
3370         * html/parser/HTMLScriptRunner.cpp:
3371         (WebCore::HTMLScriptRunner::sourceFromPendingScript):
3372
3373 2010-12-20  Antonio Gomes  <agomes@rim.com>
3374
3375         Reviewed by Daniel Bates.
3376
3377         Spatial Navigation: code clean up (Part VI)
3378         https://bugs.webkit.org/show_bug.cgi?id=50666
3379
3380         No new tests needed.
3381
3382         * page/FocusController.cpp:
3383         (WebCore::updatFocusCandidateIfNeeded): Assert renderer() and
3384         isElementNode() now that we are bailing out earlier in both the
3385         FocusCandidate constructor and FocusController::findFocusCandidateInContainer().
3386         * page/SpatialNavigation.h: Swapped the parameters order in canScrollInDirection
3387         and virtualRectForAreaElementAndDirection functions.
3388         (WebCore::FocusController::findFocusCandidateInContainer):
3389         (WebCore::FocusController::advanceFocusDirectionallyInContainer): Adjusted callsites
3390         of canScrollInDirection(), and added an early return if !isElementNode().
3391         (WebCore::FocusController::advanceFocusDirectionally): Adjusted callsite of
3392         virtualRectForAreaElementAndDirection();
3393         * page/SpatialNavigation.cpp:
3394         (WebCore::FocusCandidate::FocusCandidate): Assert if node is not a element node;
3395         (WebCore::isScrollableNode): Renamed from isScrollableContainerNode;
3396         (WebCore::scrollInDirection): Adjusted callsite after function name change;
3397         (WebCore::scrollableEnclosingBoxOrParentFrameForNodeInDi:rection): Assert if node is
3398         a documentNode.
3399         (WebCore::canScrollInDirection): Signature changed.
3400         (WebCore::canBeScrolledIntoView): Ditto.
3401         (WebCore::virtualRectForAreaElementAndDirection): Ditto.
3402
3403 2010-12-28  Adrienne Walker  <enne@google.com>
3404
3405         Reviewed by Kenneth Russell.
3406
3407         [chromium] Fix tiled compositor assertion after GPU process recovery.
3408         https://bugs.webkit.org/show_bug.cgi?id=51682
3409
3410         After the GPU process recovers, the layer size is set to IntSize(),
3411         but IntRect::unite() has a special case for empty rects.  This
3412         behavior was causing the layer size to be too small, causing an
3413         out-of-bounds array access elsewhere.
3414
3415         No new tests.
3416
3417         * platform/graphics/chromium/LayerTilerChromium.cpp:
3418         (WebCore::LayerTilerChromium::growLayerToContain):
3419
3420 2010-12-23  Zhenyao Mo  <zmo@google.com>
3421
3422         Reviewed by Kenneth Russell.
3423
3424         Initialize to 0 for undefined values in CopyTexImage2D
3425         https://bugs.webkit.org/show_bug.cgi?id=51421
3426
3427         * html/canvas/WebGLFramebuffer.cpp: Track width/height/internalFormat of color buffer.
3428         (WebCore::WebGLFramebuffer::WebGLFramebuffer):
3429         (WebCore::WebGLFramebuffer::setAttachment):
3430         (WebCore::WebGLFramebuffer::getWidth):
3431         (WebCore::WebGLFramebuffer::getHeight):
3432         (WebCore::WebGLFramebuffer::getColorBufferFormat):
3433         * html/canvas/WebGLFramebuffer.h:
3434         * html/canvas/WebGLRenderingContext.cpp:
3435         (WebCore::WebGLRenderingContext::copyTexImage2D): Initialize undefined pixels to 0.
3436         (WebCore::WebGLRenderingContext::copyTexSubImage2D):
3437         (WebCore::WebGLRenderingContext::framebufferTexture2D):
3438         (WebCore::WebGLRenderingContext::renderbufferStorage):
3439         (WebCore::WebGLRenderingContext::getBoundFramebufferWidth):
3440         (WebCore::WebGLRenderingContext::getBoundFramebufferHeight):
3441         * html/canvas/WebGLRenderingContext.h:
3442         * html/canvas/WebGLTexture.cpp: Track width/height/internalFormat of a texture by target/level.
3443         (WebCore::WebGLTexture::getInternalFormat):
3444         (WebCore::WebGLTexture::getWidth):
3445         (WebCore::WebGLTexture::getHeight):
3446         (WebCore::WebGLTexture::mapTargetToIndex):
3447         (WebCore::WebGLTexture::getLevelInfo):
3448         * html/canvas/WebGLTexture.h:
3449         (WebCore::WebGLTexture::isTexture):
3450         * platform/graphics/GraphicsContext3D.h: Add getInternalFramebufferSize() function.
3451         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
3452         (WebCore::GraphicsContext3D::getInternalFramebufferSize):
3453         * platform/graphics/qt/GraphicsContext3DQt.cpp:
3454         (WebCore::GraphicsContext3D::getInternalFramebufferSize):
3455
3456 2010-12-23  Zhenyao Mo  <zmo@google.com>
3457
3458         Reviewed by Kenneth Russell.
3459
3460         Map GLsizei to long instead of unsigned long in WebGLRenderingContext and GraphicsContext3D
3461         https://bugs.webkit.org/show_bug.cgi?id=39855
3462
3463         * html/canvas/WebGLRenderingContext.cpp:
3464         (WebCore::WebGLRenderingContext::copyTexImage2D): Map GLsizei to long.
3465         (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto.
3466         (WebCore::WebGLRenderingContext::renderbufferStorage): Ditto.
3467         (WebCore::WebGLRenderingContext::scissor): Ditto.
3468         (WebCore::WebGLRenderingContext::texImage2DBase): Ditto.
3469         (WebCore::WebGLRenderingContext::texImage2D): Ditto.
3470         (WebCore::WebGLRenderingContext::texSubImage2DBase): Ditto.
3471         (WebCore::WebGLRenderingContext::texSubImage2DImpl): Ditto.
3472         (WebCore::WebGLRenderingContext::texSubImage2D): Ditto.
3473         (WebCore::WebGLRenderingContext::viewport): Ditto.
3474         (WebCore::WebGLRenderingContext::validateSize): Check the sizes are non-negative.
3475         * html/canvas/WebGLRenderingContext.h:
3476         * html/canvas/WebGLRenderingContext.idl:
3477
3478 2010-12-28  Abhishek Arya  <inferno@chromium.org>
3479
3480         Reviewed by Kenneth Russell.
3481
3482         Fix crash with invalid font in m_fontList by not drawing text when a custom font is in the
3483         process of loading.
3484         https://bugs.webkit.org/show_bug.cgi?id=51681
3485
3486         Test: canvas/philip/tests/2d.text-custom-font-load-crash.html
3487
3488         * html/canvas/CanvasRenderingContext2D.cpp:
3489         (WebCore::CanvasRenderingContext2D::drawTextInternal): bail out if a custom font is loading.
3490         * platform/graphics/Font.cpp:
3491         (WebCore::Font::operator==): Replace condition with new function loadingCustomFonts()
3492         (WebCore::Font::drawText): Replace condition with new function loadingCustomFonts()
3493         (WebCore::Font::drawEmphasisMarks): Replace condition with new function loadingCustomFonts()
3494         * platform/graphics/Font.h:
3495         (WebCore::Font::loadingCustomFonts): new function that returns if a custom font is loading.
3496
3497 2010-12-28  Dimitri Glazkov  <dglazkov@chromium.org>
3498
3499         Reviewed by Eric Seidel.
3500
3501         Combine setShadowRoot and clearShadowRoot into a simpler API
3502         https://bugs.webkit.org/show_bug.cgi?id=50971
3503
3504         No change in behavior, and API is not used yet.
3505
3506         * dom/Element.cpp:
3507         (WebCore::Element::setShadowRoot): Combined clearing and setting of
3508             the shadowRoot, also hooked up with setting and clearing of the
3509             corresponding shadowHost values.
3510         * dom/Element.h: renamed clearShadowRoot to removeShadowRoot and made it
3511             private.
3512         * dom/Node.h: Made shadow host-related functions public so that
3513             Element::setShadowRoot can access setShadowHost. It seems logical
3514             to make shadowHost public as well to keep the defs together.
3515
3516 2010-12-28  Andrey Kosyakov  <caseq@chromium.org>
3517
3518         Reviewed by Pavel Feldman.
3519
3520         Web Inspector: [Chromium] Expose extension API to select a node in WebInspector
3521         Do not request content for resources with non-numeric identifiers.
3522         https://bugs.webkit.org/show_bug.cgi?id=49727
3523
3524         Test: http/tests/inspector/extensions-resources-redirect.html
3525
3526         * inspector/front-end/NetworkManager.js:
3527         (WebInspector.NetworkManager.prototype._appendRedirect):
3528
3529 2010-12-28  Ilya Tikhonovsky  <loislo@chromium.org>
3530
3531         Unreviewed build fix for Qt.
3532
3533         ResourceTreeModel.js was added.
3534
3535         * inspector/front-end/WebKit.qrc:
3536
3537 2010-12-28  Mikhail Naganov  <mnaganov@chromium.org>
3538
3539         Reviewed by Pavel Feldman.
3540
3541         [Chromium] Fix memory leak in Profiles tab concerned with heap profiles views.
3542
3543         https://bugs.webkit.org/show_bug.cgi?id=51680
3544
3545         * inspector/front-end/ProfilesPanel.js:
3546         (WebInspector.ProfilesPanel.prototype._reset):
3547
3548 2010-12-28  Alexander Pavlov  <apavlov@chromium.org>
3549
3550         Reviewed by Pavel Feldman.
3551
3552         Web Inspector: REGRESSION: Clicking image resource in style sidebar doesn't actually go to resource anymore
3553         https://bugs.webkit.org/show_bug.cgi?id=51663
3554
3555         The base URI is now computed correctly for links from CSS property uri(...) values. Additionally,
3556         optional quotes/apostrophes and spaces are now allowed inside uri(...).
3557
3558         Test: inspector/styles-url-linkify.html
3559
3560         * inspector/front-end/StylesSidebarPane.js:
3561         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.linkifyURL):
3562         (WebInspector.StylePropertyTreeElement.prototype.updateTitle):
3563
3564 2010-12-21  Ilya Tikhonovsky  <loislo@chromium.org>
3565
3566         Reviewed by Pavel Feldman.
3567
3568         Web Inspector: Protocol cleanup task. Introduce Network, DOMStorage and Database domains.
3569
3570         Domain was changed for Resources, FileSystem etc. related methods.
3571         ResourcesManager was renamed to NetworkManager.
3572         ResourceTreeModel was extracted as separate file.
3573         FileSystem, Database, DOMStorage and ApplicationCache methods were
3574         removed from NetworkManager and added to corresponding classes.