Reviewed by Maciej.
[WebKit-https.git] / WebCore / ChangeLog
1 2007-06-28  Rob Buis  <buis@kde.org>
2
3         Reviewed by Maciej.
4
5         http://bugs.webkit.org/show_bug.cgi?id=14373
6         CSS1: selectors (classes and IDs) cannot start with a dash or with a digit
7
8         Make sure the id selector validates against the CSS2.1 identfier
9         definition, not the hexcolor/HASH definition.
10
11         * css/CSSGrammar.y:
12         * css/cssparser.cpp:
13         (WebCore::CSSParser::lex):
14         (WebCore::CSSParser::text):
15         * css/tokenizer.flex:
16
17 2007-06-28  Simon Hausmann  <hausmann@kde.org>
18
19         Reviewed by Zack.
20
21         Implemented PasteboardQt::writeSelection to copy the selected text into the Clipboard as well as PasteboardQt::plainText to retrieve plain text from the clipboard for pasting for example into form fields.
22
23         * platform/qt/PasteboardQt.cpp:
24         (WebCore::Pasteboard::writeSelection):
25
26 2007-06-28  Antti Koivisto  <antti@apple.com>
27
28         Reviewed by Mitz.
29         
30         Fix http://bugs.webkit.org/show_bug.cgi?id=14332
31         Bug 14332: REGRESSION (r21145): <td> width ignored
32         <rdar://problem/5290123>
33         
34         Cells in table with non-zero cellpadding are not considered empty.
35
36         * rendering/AutoTableLayout.cpp:
37         (WebCore::AutoTableLayout::recalcColumn):
38
39 2007-06-28  Adam Roben  <aroben@apple.com>
40
41         Fix <rdar://problem/5300455> Prefast: typo in RenderBlock::paintObject
42
43         Reviewed by Hyatt.
44
45         No layout test possible, as this bug didn't have any effect since
46         "bool & bool" has the same value as "bool && bool"
47
48         * rendering/RenderBlock.cpp:
49         (WebCore::RenderBlock::paintObject): Changed & to &&.
50
51 2007-06-28  Adam Roben  <aroben@apple.com>
52
53         Fix <rdar://problem/5300443> word-break and -webkit-user-modify allow any value
54
55         The bug was caused by two typos found by prefast.
56
57         Reviewed by Hyatt.
58
59         * css/cssparser.cpp:
60         (WebCore::CSSParser::parseValue): Fixed typos.
61
62 2007-06-20  Matt Perry  <mpComplete@gmail.com>
63
64         Reviewed by Adam.
65
66         - Fix http://bugs.webkit.org/show_bug.cgi?id=14251:
67           onchange handler for select controls doesn't fire when changing via keyboard
68
69         * html/HTMLSelectElement.cpp:
70         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Got rid of
71         a call to saveLastSelection in the "Enter" key handler for select
72         controls that was preventing onchange from firing.
73
74 2007-06-27  Sam Weinig  <sam@webkit.org>
75
76         Fix Gdk, Qt, and Win32 builds.
77
78         * WebCore.pro:
79         * WebCore.vcproj/WebCore.vcproj:
80
81 2007-06-27  Sam Weinig  <sam@webkit.org>
82
83         Reviewed by Geoff.
84
85         Patch for http://bugs.webkit.org/show_bug.cgi?id=14319
86         Move the Selection object out of the JS bindings
87
88         - Renames JS Object Selection to DOMSelection to avoid a name
89           conflict.
90
91         * DerivedSources.make:
92         * WebCore.xcodeproj/project.pbxproj:
93         * bindings/js/kjs_window.cpp:
94         (KJS::WindowPrivate::WindowPrivate):
95         (KJS::Window::mark):
96         (KJS::Window::clearHelperObjectProperties):
97         (KJS::WindowFunc::callAsFunction):
98         (KJS::Window::disconnectFrame):
99         * bindings/js/kjs_window.h:
100         (KJS::Window::):
101         * page/DOMSelection.cpp: Added.
102         (WebCore::DOMSelection::DOMSelection):
103         (WebCore::DOMSelection::frame):
104         (WebCore::DOMSelection::disconnectFrame):
105         (WebCore::DOMSelection::anchorNode):
106         (WebCore::DOMSelection::baseNode):
107         (WebCore::DOMSelection::anchorOffset):
108         (WebCore::DOMSelection::baseOffset):
109         (WebCore::DOMSelection::focusNode):
110         (WebCore::DOMSelection::extentNode):
111         (WebCore::DOMSelection::focusOffset):
112         (WebCore::DOMSelection::extentOffset):
113         (WebCore::DOMSelection::isCollapsed):
114         (WebCore::DOMSelection::type):
115         (WebCore::DOMSelection::rangeCount):
116         (WebCore::DOMSelection::collapse):
117         (WebCore::DOMSelection::collapseToEnd):
118         (WebCore::DOMSelection::collapseToStart):
119         (WebCore::DOMSelection::empty):
120         (WebCore::DOMSelection::setBaseAndExtent):
121         (WebCore::DOMSelection::setPosition):
122         (WebCore::DOMSelection::modify):
123         (WebCore::DOMSelection::getRangeAt):
124         (WebCore::DOMSelection::removeAllRanges):
125         (WebCore::DOMSelection::addRange):
126         (WebCore::DOMSelection::toString):
127         * page/DOMSelection.h: Added.
128         * page/DOMSelection.idl: Added.
129         * page/DOMWindow.cpp:
130         (WebCore::DOMWindow::disconnectFrame):
131         (WebCore::DOMWindow::getSelection):
132         * page/DOMWindow.h:
133         * page/DOMWindow.idl:
134
135 2007-06-27  Sam Weinig  <sam@webkit.org>
136
137         Reviewed by Maciej.
138
139         2nd patch for http://bugs.webkit.org/show_bug.cgi?id=14111
140         Autogenerate Event JS binding
141
142         - Cleanup kjs_events
143
144         * bindings/js/kjs_events.cpp:
145         (WebCore::JSAbstractEventListener::JSAbstractEventListener):
146         (WebCore::JSAbstractEventListener::handleEvent):
147         (WebCore::JSAbstractEventListener::isHTMLEventListener):
148         (WebCore::JSUnprotectedEventListener::JSUnprotectedEventListener):
149         (WebCore::JSUnprotectedEventListener::~JSUnprotectedEventListener):
150         (WebCore::JSUnprotectedEventListener::listenerObj):
151         (WebCore::JSUnprotectedEventListener::windowObj):
152         (WebCore::JSUnprotectedEventListener::clearWindowObj):
153         (WebCore::JSUnprotectedEventListener::mark):
154         (WebCore::JSEventListener::JSEventListener):
155         (WebCore::JSEventListener::~JSEventListener):
156         (WebCore::JSEventListener::listenerObj):
157         (WebCore::JSEventListener::windowObj):
158         (WebCore::JSEventListener::clearWindowObj):
159         (WebCore::JSLazyEventListener::JSLazyEventListener):
160         (WebCore::JSLazyEventListener::listenerObj):
161         (WebCore::JSLazyEventListener::parseCode):
162         (WebCore::getNodeEventListener):
163         (WebCore::JSClipboard::JSClipboard):
164         (WebCore::JSClipboard::getValueProperty):
165         (WebCore::JSClipboard::putValueProperty):
166         (WebCore::JSClipboardPrototypeFunction::callAsFunction):
167         (WebCore::toJS):
168         (WebCore::toClipboard):
169         * bindings/js/kjs_events.h:
170         (WebCore::JSClipboard::classInfo):
171         (WebCore::JSClipboard::impl):
172         * bindings/js/kjs_window.h:
173         * ksvg2/events/JSSVGLazyEventListener.h:
174
175 2007-06-27  Sam Weinig  <sam@webkit.org>
176
177         Reviewed by Adam Roben.
178
179         Patch for http://bugs.webkit.org/show_bug.cgi?id=12045
180         Crash under gmalloc at WTF::RefPtr<WebCore::HTMLSliderThumbElement>::operator->
181         <rdar://problem/5286670>
182
183         Test: fast/forms/thumbslider-no-parent-slider.html
184         Test: fast/forms/thumbslider-crash.html
185
186         * rendering/RenderObject.h:
187         (WebCore::RenderObject::isSlider):
188         * rendering/RenderSlider.h:
189         (WebCore::RenderSlider::isSlider):
190         * rendering/RenderTheme.cpp:
191         (WebCore::RenderTheme::paint): Only paint thumbslider
192         if the parent renderer is a RenderSlider.
193         * rendering/RenderThemeMac.mm:
194         (WebCore::RenderThemeMac::paintSliderThumb):
195         * rendering/RenderThemeSafari.cpp:
196         (WebCore::RenderThemeSafari::paintSliderThumb):
197
198 2007-06-27  George Staikos  <staikos@kde.org>
199
200         Make Qt builds link when XSLT is turned off.
201
202         * WebCore.pro:
203
204 2007-06-27  Steve Falkenburg  <sfalken@apple.com>
205
206         Turn on static code analysis (Windows only).
207
208         Affects only folks that have Visual Studio Team Suite installed,
209         or who have replaced their compiler with the version shipping in the
210         Vista SDK.
211         
212         Reviewed by Oliver.
213
214         * WebCore.vcproj/WebCore.vcproj:
215
216 2007-06-27  George Staikos  <staikos@kde.org>
217
218         Remove old commented out files that no-longer exist.
219
220         * WebCore.pro:
221
222 2007-06-27  Justin Garcia  <justin.garcia@apple.com>
223
224         Reviewed by John.
225
226         <rdar://problem/5247341> REGRESSION: Pasting sometimes leaves out trailing newline
227         
228         Pasting with a trailing interchange newline doesn't work when pasting
229         into an empty line.  Code that handles removing brs at the insertion
230         position tries to also handle trailing interchange newlines by re-using
231         those brs and fails.  Removed that code and handle all interchange
232         newlines with code later in doApply().
233
234         * editing/ReplaceSelectionCommand.cpp:
235         (WebCore::ReplaceSelectionCommand::doApply): Don't try to re-use the
236         endBR when there's a trailing interchange newline.
237         
238 2007-06-27  Anders Carlsson  <andersca@apple.com>
239
240         Reviewed by Oliver.
241
242         <rdar://problem/5253950>
243         When Shockwave plugin has been loaded, exiting crashes Safari
244         
245         Add a "load count" for plugin packages. When the load count is zero, unload the plugin.
246         
247         * plugins/win/PluginPackageWin.cpp:
248         (WebCore::PluginPackageWin::PluginPackageWin):
249         (WebCore::PluginPackageWin::load):
250         (WebCore::PluginPackageWin::unload):
251         (WebCore::PluginPackageWin::unloadWithoutShutdown):
252         * plugins/win/PluginPackageWin.h:
253         
254         * plugins/win/PluginViewWin.cpp:
255         (WebCore::PluginViewWin::~PluginViewWin):
256         Make sure to unload the plugin package and clear any references to plugin script objects.
257
258 2007-06-27  George Staikos  <staikos@kde.org>
259
260         This was succeeding compile by luck.  Setup dependencies properly.
261
262         * WebCore.pro:
263
264 2007-06-27  Justin Garcia  <justin.garcia@apple.com>
265
266         Reviewed by John.
267
268         <rdar://problem/4580583> Breaking blockquoted list should not automatically renumber the second list
269         
270         When a quoted numbered list is broken in half, it's cloned
271         to make the second list. That second list needs its start attribute
272         set so that the numbers of the list items in it will be preserved.
273
274         * editing/BreakBlockquoteCommand.cpp:
275         (WebCore::BreakBlockquoteCommand::doApply): Set the start attribute
276         of a cloned list to be the original number of the first list item in it.
277
278 2007-06-27  Alexey Proskuryakov  <ap@webkit.org>
279
280         Reviewed by Geoff.
281
282         http://bugs.webkit.org/show_bug.cgi?id=14413
283         GIF animation throttling is different from MSIE
284
285         * platform/graphics/cg/ImageSourceCG.cpp:
286         (WebCore::ImageSource::frameDurationAtIndex):
287         Change the cut-off value to 50ms to match MSIE.
288
289 2007-06-27  Sam Weinig  <sam@webkit.org>
290
291         Reviewed by Darin.
292
293         First pass at fixing implicit 64-32 bit conversion errors.
294         <rdar://problem/5292262>
295
296         - Add 'f' suffix where necessary.
297
298         * bridge/mac/WebCoreAXObject.mm:
299         (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
300         * css/csshelper.h:
301         * css/cssstyleselector.cpp:
302         (WebCore::):
303         (WebCore::CSSStyleSelector::largerFontSize):
304         (WebCore::CSSStyleSelector::smallerFontSize):
305         * html/CanvasGradient.cpp:
306         (WebCore::CanvasGradient::addColorStop):
307         * html/CanvasPattern.cpp:
308         (WebCore::CanvasPattern::createPattern):
309         * ksvg2/css/SVGCSSStyleSelector.cpp:
310         (WebCore::CSSStyleSelector::applySVGProperty):
311         * ksvg2/css/SVGRenderStyle.h:
312         * ksvg2/events/SVGZoomEvent.cpp:
313         (WebCore::SVGZoomEvent::SVGZoomEvent):
314         * ksvg2/svg/SVGLength.cpp:
315         (WebCore::SVGLength::SVGLength):
316         (WebCore::SVGLength::value):
317         (WebCore::SVGLength::setValue):
318         (WebCore::SVGLength::valueAsPercentage):
319         (WebCore::SVGLength::PercentageOfViewport):
320         * ksvg2/svg/SVGSVGElement.cpp:
321         (WebCore::SVGSVGElement::pixelUnitToMillimeterX):
322         (WebCore::SVGSVGElement::pixelUnitToMillimeterY):
323         (WebCore::SVGSVGElement::getScreenCTM):
324         * ksvg2/svg/SVGTextContentElement.cpp:
325         (WebCore::SVGTextContentElement::getComputedTextLength):
326         (WebCore::SVGTextContentElement::getSubStringLength):
327         (WebCore::SVGTextContentElement::getRotationOfChar):
328         * ksvg2/svg/SVGTransformDistance.cpp:
329         (WebCore::SVGTransformDistance::SVGTransformDistance):
330         (WebCore::SVGTransformDistance::distance):
331         * page/InspectorController.cpp:
332         (WebCore::InspectorResource::InspectorResource):
333         * platform/graphics/FloatPoint3D.cpp:
334         (WebCore::FloatPoint3D::normalize):
335         * platform/graphics/Path.cpp:
336         (WebCore::pathLengthApplierFunction):
337         (WebCore::Path::createRoundedRectangle):
338         * platform/graphics/cg/GraphicsContextCG.cpp:
339         (WebCore::GraphicsContext::drawLine):
340         (WebCore::GraphicsContext::strokeArc):
341         * platform/graphics/cg/ImageCG.cpp:
342         (WebCore::FrameData::clear):
343         * platform/graphics/cg/ImageSourceCG.cpp:
344         (WebCore::ImageSource::frameDurationAtIndex):
345         * platform/graphics/cg/PDFDocumentImage.cpp:
346         (WebCore::PDFDocumentImage::setCurrentPage):
347         * platform/graphics/svg/SVGPaintServerPattern.cpp:
348         (WebCore::SVGPaintServerPattern::externalRepresentation):
349         * platform/graphics/svg/SVGPaintServerRadialGradient.cpp:
350         (WebCore::SVGPaintServerRadialGradient::SVGPaintServerRadialGradient):
351         * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
352         (WebCore::cgGradientCallback):
353         (WebCore::CGShadingRefForRadialGradient):
354         (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
355         * platform/mac/FontDataMac.mm:
356         (WebCore::webFallbackFontFamily):
357         * platform/mac/PopupMenuMac.mm:
358         (WebCore::PopupMenu::show):
359         * rendering/InlineFlowBox.cpp:
360         (WebCore::InlineFlowBox::placeBoxesHorizontally):
361         * rendering/RenderSlider.cpp:
362         (WebCore::RenderSlider::setValueForPosition):
363         (WebCore::RenderSlider::setPositionFromValue):
364
365 2007-06-27  Alexey Proskuryakov  <ap@webkit.org>
366
367         Reviewed by Geoff.
368
369         http://bugs.webkit.org/show_bug.cgi?id=14288
370         XMLHttpRequest doesn't use a correct content type for file:// URLs
371
372         Test: fast/dom/xmlhttprequest-html-response-encoding.html
373
374         * xml/xmlhttprequest.cpp:
375         (WebCore::XMLHttpRequest::responseMIMEType): Use MIME type provided by
376         the network layer, since it provides it even for non-HTTP responses.
377
378 2007-06-26  Alp Toker  <alp.toker@collabora.co.uk>
379
380         Reviewed by Sam Weinig.
381
382         http://bugs.webkit.org/show_bug.cgi?id=14061
383         Implement more of FrameLoaderClientGdk
384
385         Make FrameLoaderClientGdk work properly when the MIME type is set.
386
387         * loader/gdk/FrameLoaderClientGdk.cpp:
388         (WebCore::FrameLoaderClientGdk::objectContentType):
389         (WebCore::FrameLoaderClientGdk::canShowMIMEType):
390
391 2007-06-26  Alp Toker  <alp.toker@collabora.co.uk>
392
393         Reviewed by Maciej.
394
395         http://bugs.webkit.org/show_bug.cgi?id=14058
396         Gdk font backend cleanup
397
398         * platform/FontData.h: Remove obsolete function.
399         * platform/gdk/FontDataGdk.cpp:
400         (WebCore::FontData::containsCharacters): Lock/unlock only once.
401         (WebCore::FontData::platformWidthForGlyph): Remove needless cast.
402         * platform/gdk/FontPlatformData.h: Remove obsolete function.
403         * platform/gdk/FontPlatformDataGdk.cpp:
404         (WebCore::FontPlatformData::FontPlatformData): Pass the actual size,
405         not the pixel size.
406         (WebCore::FontPlatformData::~FontPlatformData): Free m_fontMatrix.
407         * platform/gdk/GlyphPageTreeNodeGdk.cpp:
408         (WebCore::GlyphPage::fill): Lock/unlock only once.
409
410 2007-06-26  Mitz Pettel  <mitz@webkit.org>
411
412         Reviewed by Hyatt.
413
414         - fix http://bugs.webkit.org/show_bug.cgi?id=14406
415           <colgroup>'s borders are ignored when it has <col> children
416
417         Covered by existing tests.
418
419         * rendering/RenderTableCell.cpp:
420         (WebCore::RenderTableCell::collapsedLeftBorder):
421         (WebCore::RenderTableCell::collapsedRightBorder):
422         (WebCore::RenderTableCell::collapsedTopBorder):
423         (WebCore::RenderTableCell::collapsedBottomBorder):
424
425 2007-06-26  Mitz Pettel  <mitz@webkit.org>
426
427         Reviewed by Oliver.
428
429         - fix http://bugs.webkit.org/show_bug.cgi?id=14329
430           REGRESSION: TEXTAREA - cannot drag-and-drop text at en.wikipedia.org/
431
432         Test: fast/repaint/text-selection-rect-in-overflow-2.html
433
434         * rendering/RenderObject.cpp:
435         (WebCore::RenderObject::computeAbsoluteRepaintRect): Added code to account
436         for overflow scroll and columns.
437         * rendering/RenderText.cpp:
438         (WebCore::RenderText::selectionRect): Adjust for columns only in the
439         non-clipped case, since RenderObject::absolutePosition() does not.
440
441 2007-06-26  Mitz Pettel  <mitz@webkit.org>
442
443         Reviewed by Sam.
444
445         - http://bugs.webkit.org/show_bug.cgi?id=14415
446           Remove the unused method RenderObject::setTable()
447
448         * rendering/RenderObject.h:
449
450 2007-06-26  MorganL  <morganl.webkit@yahoo.com>
451
452         Reviewed by Maciej.
453
454         Implement http://bugs.webkit.org/show_bug.cgi?id=14225
455         Bug 14225: Make it possible to define platform-specific ResourceRequest without #ifdefs
456
457         This change moves the bulk of ResourceRequest into a base class named
458         ResourceRequestBase with all platform-specific bits pushed into
459         ResourceRequest.  This allows ports to easily add new members to a
460         ResourceRequest without having to #ifdef the code that is shared
461         between ports.
462
463         * WebCore.exp:
464         * WebCore.pro:
465         * WebCore.vcproj/WebCore.vcproj:
466         * WebCore.xcodeproj/project.pbxproj:
467         * platform/network/ResourceRequest.cpp: Removed.
468         * platform/network/ResourceRequest.h: Removed.
469         * platform/network/ResourceRequestBase.cpp: Added.
470         (WebCore::ResourceRequestBase::asResourceRequest):
471         (WebCore::ResourceRequestBase::isEmpty):
472         (WebCore::ResourceRequestBase::isNull):
473         (WebCore::ResourceRequestBase::url):
474         (WebCore::ResourceRequestBase::setURL):
475         (WebCore::ResourceRequestBase::cachePolicy):
476         (WebCore::ResourceRequestBase::setCachePolicy):
477         (WebCore::ResourceRequestBase::timeoutInterval):
478         (WebCore::ResourceRequestBase::setTimeoutInterval):
479         (WebCore::ResourceRequestBase::mainDocumentURL):
480         (WebCore::ResourceRequestBase::setMainDocumentURL):
481         (WebCore::ResourceRequestBase::httpMethod):
482         (WebCore::ResourceRequestBase::setHTTPMethod):
483         (WebCore::ResourceRequestBase::httpHeaderFields):
484         (WebCore::ResourceRequestBase::httpHeaderField):
485         (WebCore::ResourceRequestBase::setHTTPHeaderField):
486         (WebCore::ResourceRequestBase::httpBody):
487         (WebCore::ResourceRequestBase::setHTTPBody):
488         (WebCore::ResourceRequestBase::allowHTTPCookies):
489         (WebCore::ResourceRequestBase::setAllowHTTPCookies):
490         (WebCore::ResourceRequestBase::addHTTPHeaderField):
491         (WebCore::ResourceRequestBase::addHTTPHeaderFields):
492         (WebCore::operator==):
493         (WebCore::ResourceRequestBase::isConditional):
494         (WebCore::ResourceRequestBase::updatePlatformRequest):
495         (WebCore::ResourceRequestBase::updateResourceRequest):
496         * platform/network/ResourceRequestBase.h: Added.
497         (WebCore::):
498         (WebCore::ResourceRequestBase::httpContentType):
499         (WebCore::ResourceRequestBase::setHTTPContentType):
500         (WebCore::ResourceRequestBase::httpReferrer):
501         (WebCore::ResourceRequestBase::setHTTPReferrer):
502         (WebCore::ResourceRequestBase::clearHTTPReferrer):
503         (WebCore::ResourceRequestBase::httpUserAgent):
504         (WebCore::ResourceRequestBase::setHTTPUserAgent):
505         (WebCore::ResourceRequestBase::httpAccept):
506         (WebCore::ResourceRequestBase::setHTTPAccept):
507         (WebCore::ResourceRequestBase::ResourceRequestBase):
508         (WebCore::operator!=):
509         * platform/network/cf/ResourceRequest.h: Added.
510         (WebCore::ResourceRequest::ResourceRequest):
511         * platform/network/curl/ResourceRequest.h: Added.
512         (WebCore::ResourceRequest::ResourceRequest):
513         (WebCore::ResourceRequest::doUpdatePlatformRequest):
514         (WebCore::ResourceRequest::doUpdateResourceRequest):
515         * platform/network/mac/ResourceRequest.h: Added.
516         (WebCore::ResourceRequest::ResourceRequest):
517         * platform/network/qt/ResourceRequest.h: Added.
518         (WebCore::ResourceRequest::ResourceRequest):
519         (WebCore::ResourceRequest::doUpdatePlatformRequest):
520         (WebCore::ResourceRequest::doUpdateResourceRequest):
521
522 2007-06-26  Adam Roben  <aroben@apple.com>
523
524         Add ChangeLog entries from the Windows merge.
525
526         Reviewed by Maciej.
527
528         * ChangeLog:
529
530 2007-06-26  Sam Weinig  <sam@webkit.org>
531
532         Reviewed by Maciej.
533
534         Make sure not to enumerate the toString() function.
535         <rdar://problem/5297118>
536
537         * bindings/js/kjs_window.cpp:
538         * bindings/scripts/CodeGeneratorJS.pm: Add support for [DontEnum].
539         * html/HTMLAnchorElement.idl:
540
541 2007-06-26  Alp Toker  <alp.toker@collabora.co.uk>
542
543         Reviewed by Mitz, landed by Anders.
544
545         http://bugs.webkit.org/show_bug.cgi?id=14421
546         Implement GraphicsContext::clearRect()
547
548         * platform/graphics/cairo/GraphicsContextCairo.cpp:
549         (WebCore::GraphicsContext::clearRect):
550
551 2007-06-26  Alp Toker  <alp.toker@collabora.co.uk>
552
553         Reviewed and landed by Anders.
554
555         http://bugs.webkit.org/show_bug.cgi?id=14416
556         Content does not render fully in some cases
557
558         Fix mismatched calls to cairo_save/restore due to an early method return.
559
560         * platform/graphics/cairo/GraphicsContextCairo.cpp:
561         (WebCore::GraphicsContext::drawLine):
562
563 2007-06-26  Tristan O'Tierney  <tristan@apple.com>
564
565         Reviewed by John Sullivan.
566
567         Added two accessor functions for <rdar://problem/4119138>
568
569         * bindings/objc/DOMHTML.mm:
570         (-[DOMHTMLInputElement _isEdited]):
571         (-[DOMHTMLTextAreaElement _isEdited]):
572         Added an accessor to the isEdited value of a DOM node's render object
573
574         * bindings/objc/DOMPrivate.h:
575         Added header definitions for _isEdited
576
577 2007-06-26  Sam Weinig  <sam@webkit.org>
578
579         Fix Win32 build.
580
581         * WebCore.vcproj/WebCore.vcproj:
582
583 2007-06-26  Sam Weinig  <sam@webkit.org>
584
585         Fix Qt and Gdk builds.
586
587         * WebCore.pro:
588
589 2007-06-26  Sam Weinig  <sam@webkit.org>
590
591         Reviewed by Geoff.
592
593         Patch for http://bugs.webkit.org/show_bug.cgi?id=14111
594         Autogenerate Event JS binding
595
596         - Moves the dataTransfer method into MouseEvent where it should be.
597
598         * WebCore.xcodeproj/project.pbxproj:
599         * bindings/js/JSEventCustom.cpp: Added.
600         (WebCore::JSEvent::clipboardData):
601         (WebCore::toJS):
602         * bindings/js/JSEventTargetNode.cpp:
603         * bindings/js/JSXMLHttpRequest.cpp:
604         * bindings/js/kjs_events.cpp:
605         * bindings/js/kjs_events.h:
606         * bindings/objc/DOMUtility.mm:
607         (KJS::createDOMWrapper):
608         * bindings/scripts/CodeGeneratorJS.pm:
609         * dom/Event.h:
610         (WebCore::Event::returnValue):
611         (WebCore::Event::setReturnValue):
612         (WebCore::Event::clipboardData):
613         * dom/Event.idl:
614         * dom/MouseEvent.h:
615         (WebCore::MouseEvent::dataTransfer):
616         * dom/MouseEvent.idl:
617
618 2007-06-26  Timothy Hatcher  <timothy@apple.com>
619
620         Reviewed by Mark Rowe.
621
622         Follow up fix for: Bug 14385: Web Inspector's computed style doesn't show implicitly set properties
623         http://bugs.webkit.org/show_bug.cgi?id=14385
624
625         Correctly remember the "Show implicit properties" setting as you switch nodes.
626
627         * page/inspector/ResourcePanel.js:
628
629 2007-06-26  Justin Garcia  <justin.garcia@apple.com>
630
631         Reviewed by John.
632
633         <rdar://problem/5290534> Crash at RenderTextControl::calcHeight() after deleting text in a search field
634         
635         Editing removed a node that was part of a search field's internal
636         structure that should not be removed.
637
638         * editing/DeleteSelectionCommand.cpp:
639         (WebCore::DeleteSelectionCommand::handleGeneralDelete): If the
640         selection to delete ends at [container, x], where x is the number
641         of children in container, don't remove container.  Special case
642         code elsewhere in this function will remove it if necessary.
643
644 2007-06-25  Sam Weinig  <sam@webkit.org>
645
646         Reviewed by Maciej.
647
648         Patch for http://bugs.webkit.org/show_bug.cgi?id=11315
649         Mutating document.constructor.prototype mutates Object.prototype
650
651         Test: fast/js/constructor.html
652
653         * bindings/scripts/CodeGeneratorJS.pm: add constructor attribute to
654         classes with constructors.  It is an non-enumeratable, non-deletable,
655         readonly attribute.
656
657 2007-06-26  George Staikos  <staikos@kde.org>
658
659         Repair the OS X build.
660
661         * WebCore.exp:
662
663 2007-06-26  Adam Treat  <adam@staikos.net>
664
665         Reviewed by Adam Roben.
666
667         Make the SQLite icon database optional.
668
669         * loader/icon/IconDatabase.cpp:
670         (WebCore::IconDatabase::isOpen):
671         (WebCore::IconDatabase::isPrivateBrowsingEnabled):
672         (WebCore::IconDatabase::enabled):
673         * loader/icon/IconDatabase.h:
674
675 2007-06-25  Sam Weinig  <sam@webkit.org>
676
677         Reviewed by Adam Roben.
678
679         Patch for http://bugs.webkit.org/show_bug.cgi?id=14369
680         HTML syntax highlighting colors and DOM tree colors should be the same
681
682         * css/view-source.css:
683         * page/inspector/ResourcePanel.js:
684         * page/inspector/inspector.css:
685         * page/inspector/inspector.js:
686         * page/inspector/utilities.js:
687
688 2007-06-25  Adam Roben  <aroben@apple.com>
689
690         Fix Bug 14402: Main resource of http://www.apple.com/safari/ is called "www.apple.com" instead of "safari"
691         http://bugs.webkit.org/show_bug.cgi?id=14402
692
693         The solution was to make KURL::lastPathComponent ignore trailing
694         slashes, which is what -[NSURL lastPathComponent] does, too.
695
696         Reviewed by Oliver.
697
698         * platform/KURL.cpp:
699         (WebCore::KURL::lastPathComponent):
700
701 2007-06-25  Sam Weinig  <sam@webkit.org>
702
703         Reviewed by Adam Roben.
704
705         Patch for http://bugs.webkit.org/show_bug.cgi?id=14257
706         Web Inspector lists favicon.ico as "other" instead of "image"
707
708         * page/InspectorController.cpp:
709         (WebCore::InspectorResource::type):
710
711 2007-06-25  Adele Peterson  <adele@apple.com>
712
713         Reviewed by Hyatt.
714
715         Fix for <rdar://problem/5286410> Scrollbar and resize corner for overflow area is not hidden with style "visibility: hidden;"
716         http://bugs.webkit.org/show_bug.cgi?id=14297
717
718         Test: fast/overflow/hidden-scrollbar-resize.html
719
720         * rendering/RenderLayer.cpp: (WebCore::RenderLayer::paintLayer):
721         Updated our shouldPaint check to consider visibility.
722
723 2007-06-25  Oliver Hunt  <oliver@apple.com>
724
725         Reviewed by Darin.
726
727         <rdar://problem/5293444> REGRESSION: Dragging plain text into a styled text region does not acquire the correct style info
728
729         Fixing logic error in DragController
730
731         * manual-tests/drop-text-acquires-style.html: Added.
732         * page/DragController.cpp:
733         (WebCore::documentFragmentFromDragData):
734
735 2007-06-25  Sam Weinig  <sam@webkit.org>
736
737         Reviewed by Adam Roben.
738
739         Annotate prototypes by adding "Prototype" subtitle.
740
741         * page/inspector/ResourcePanel.js:
742
743 2007-06-25  George Staikos  <staikos@kde.org>
744
745         Reviewed by Zack.
746
747         Start to add proxy and SSL support to WebKitQt.  Proxying works.
748
749         * platform/network/ResourceHandleInternal.h:
750         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
751         * platform/network/qt/ResourceHandleQt.cpp:
752         (WebCore::ResourceHandle::start):
753
754 2007-06-25  Alp Toker  <alp.toker@collabora.co.uk>
755
756         Reviewed by Adam Roben.
757
758         http://bugs.webkit.org/show_bug.cgi?id=14386
759         Gdk build fix
760
761         * WebCore.pro: Fix gtk/gdk typo.
762
763 2007-06-25  Timothy Hatcher  <timothy@apple.com>
764
765         Reviewed by Anders.
766
767         Bug 14385: Web Inspector's computed style doesn't show implicitly set properties
768         http://bugs.webkit.org/show_bug.cgi?id=14385
769
770         Add a toggle to show implict computed properties.
771
772         * page/inspector/ResourcePanel.js:
773         * page/inspector/inspector.css:
774         * page/inspector/inspector.js:
775
776 2007-06-25  Alp Toker  <alp.toker@collabora.co.uk>
777
778         Reviewed by Mark.
779
780         http://bugs.webkit.org/show_bug.cgi?id=13975
781         Use system-provided libjpeg and libpng
782
783         * WebCore.pro: Remove bundled libjpeg and libpng sources.
784         * platform/image-decoders/jpeg: Remove sources.
785         * platform/image-decoders/png: Remove sources.
786
787 2007-06-25  Mitz Pettel  <mitz@webkit.org>
788
789         Reviewed by Darin.
790
791         - fix http://bugs.webkit.org/show_bug.cgi?id=14202
792           Table caption renders too narrow sometimes
793
794         Test: fast/table/caption-relayout.html
795
796         * rendering/RenderTable.cpp:
797         (WebCore::RenderTable::layout): Mark the caption for layout if the table
798         width changed.
799
800 2007-06-25  Mitz Pettel  <mitz@webkit.org>
801
802         Reviewed by Darin.
803
804         - fix http://bugs.webkit.org/show_bug.cgi?id=14245
805           Underline painted under <br>, not repainted properly
806
807         Test: fast/inline/br-text-decoration.html
808
809         * platform/graphics/cg/GraphicsContextCG.cpp:
810         (WebCore::GraphicsContext::drawLineForText): Added an early return if the line width
811         is zero. Also changed the line stroke to a rect fill, so that lines with length shorter
812         than their thickness paint correctly.
813
814 2007-06-25  Mitz Pettel  <mitz@webkit.org>
815
816         Reviewed by Maciej.
817
818         - fix http://bugs.webkit.org/show_bug.cgi?id=14341
819           rules="none" ignored in certain cases
820
821         Covered by existing tests.
822
823         * html/HTMLTableElement.cpp:
824         (WebCore::HTMLTableElement::getSharedCellDecl):
825
826 2007-06-24  Sam Weinig  <sam@webkit.org>
827
828         Reviewed by Mitz.
829
830         Patch for http://bugs.webkit.org/show_bug.cgi?id=14379
831         Anchor elements show up as their href in the properties pane, not HTMLAnchorElement
832
833         * page/inspector/ResourcePanel.js: make sure not to call an overriden
834         toString() by using Object.prototype.toString.call().
835
836 2007-06-24  Adam Roben  <aroben@apple.com>
837
838         Fix http://bugs.webkit.org/show_bug.cgi?id=14374
839         Bug 14374: Computed Style section should be expanded by default
840
841         Reviewed by Sam.
842
843         No regression test possible.
844
845         * page/inspector/ResourcePanel.js: Expand all style sections.
846
847 2007-06-24  Adam Roben  <aroben@apple.com>
848
849         Unify the style of enums in the Inspector JS
850
851         All our enums are now represented by an object with a property for
852         each enum value.
853
854         Reviewed by Sam.
855
856         No regression test possible.
857
858         * page/inspector/ConsolePanel.js:
859         * page/inspector/Resource.js:
860         * page/inspector/ResourcePanel.js:
861         * page/inspector/inspector.js:
862
863 2007-06-23  Sam Weinig  <sam@webkit.org>
864
865         Reviewed by Mitz.
866
867         Patch for http://bugs.webkit.org/show_bug.cgi?id=14321
868         getComputedStyle(...).zIndex returns string "normal"
869
870         Test: fast/css/getComputedStyle-zIndex-auto.html
871
872         * css/CSSComputedStyleDeclaration.cpp:
873         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return 'auto' instead of 'normal'.
874
875 2007-06-24  Matt Lilek  <pewtermoose@gmail.com>
876
877         Reviewed by Tim Hatcher.
878
879         Bug 14265: Cannot resize columns in webinspector
880         http://bugs.webkit.org/show_bug.cgi?id=14265
881
882         * page/inspector/inspector.css:
883         * page/inspector/inspector.html:
884         * page/inspector/inspector.js:
885
886 2007-06-23  Adam Roben  <aroben@apple.com>
887
888         Silence a build warning about not finding `num-cpus`
889
890         Reviewed by Mark Rowe.
891
892         * WebCore.vcproj/build-generated-files.sh: Look for num-cpus in its new
893         location.
894
895 2007-06-22  Anders Carlsson  <andersca@apple.com>
896
897         Reviewed by Darin.
898
899         * plugins/win/PluginStreamWin.cpp:
900         (WebCore::PluginStreamWin::didFinishLoading):
901         No need to fetch the size from resourceData.
902
903 2007-06-22  Anders Carlsson  <andersca@apple.com>
904
905         Reviewed by Darin.
906
907         <rdar://problem/5288617>
908         Crash playing a very large QuickTime movie inside Safari.
909
910         Get rid of m_completeDeliveryData and use the loader's resource data instead. This reduces the memory usage for 
911         plug-ins which loads large files and use a transfer mode of NP_ASFILE or NP_ASFILEONLY.
912         
913         * plugins/win/PluginStreamWin.cpp:
914         (WebCore::PluginStreamWin::PluginStreamWin):
915         (WebCore::PluginStreamWin::~PluginStreamWin):
916         (WebCore::PluginStreamWin::didReceiveData):
917         (WebCore::PluginStreamWin::didFinishLoading):
918         * plugins/win/PluginStreamWin.h:
919
920 2007-06-22  Beth Dakin  <bdakin@apple.com>
921
922         Reviewed by Oliver and Darin.
923
924         Fix for <rdar://problem/5266999> Loading page from MangleMe fuzz 
925         tester crashes in RenderTableRow::addChild (giant ROWSPAN)
926
927         We already have code that tries to prevent allocating too-large 
928         rowspans. The rowspan in this test, however, was small enough that 
929         we thought it was okay in that code, even though clearly it was 
930         still too large. I did a bunch of testing in Firefox, and it seems 
931         that they set a hard limit on the maximum rowspan right in the DOM 
932         -- 8k. So that is what this patch implements. 
933
934         * html/HTMLTableCellElement.cpp:
935         (WebCore::HTMLTableCellElement::parseMappedAttribute):
936
937 2007-06-22  Justin Garcia  <justin.garcia@apple.com>
938
939         Reviewed by Darin.
940         
941         <rdar://problem/5272440> Adding To Do via Note received in e-mail adds newlines on delete
942         
943         Deletion inserts a placeholder after it removes full paragraphs if
944         one doesn't already exist.  The code that looked for a pre-existing
945         placeholder didn't work because of a bug in enclosingNodeOfType.
946
947         * editing/htmlediting.cpp:
948         (WebCore::enclosingNodeOfType): We start looking at node->parentNode(),
949         but don't go above an editing root.
950
951 2007-06-22  Anders Carlsson  <andersca@apple.com>
952
953         Reviewed by Maciej and Geoff.
954
955         <rdar://problem/5244734>
956         WebKit shouldn't send delegate resource load methods for the user stylesheet (doing so causes assertions in Safari)
957         
958         Add a sendResourceLoadCallbacks argument to the ResourceLoader and only send resource load callbacks if it's true. Make it so that
959         loading the user style sheet creates a resource loader with sendResourceLoadCallbacks set to false (done by adding a sendResourceLoadCallbacks 
960         argument to a bunch of classes).
961         
962         * loader/Cache.cpp:
963         (WebCore::createResource):
964         (WebCore::Cache::requestResource):
965         * loader/Cache.h:
966         * loader/CachedCSSStyleSheet.cpp:
967         (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
968         * loader/CachedCSSStyleSheet.h:
969         * loader/CachedResource.cpp:
970         (WebCore::CachedResource::CachedResource):
971         * loader/CachedResource.h:
972         (WebCore::CachedResource::sendResourceLoadCallbacks):
973         * loader/DocLoader.cpp:
974         (WebCore::DocLoader::requestCSSStyleSheet):
975         (WebCore::DocLoader::requestResource):
976         (WebCore::DocLoader::checkCacheObjectStatus):
977         * loader/DocLoader.h:
978         * loader/MainResourceLoader.cpp:
979         (WebCore::MainResourceLoader::MainResourceLoader):
980         * loader/Request.cpp:
981         (WebCore::Request::Request):
982         * loader/Request.h:
983         (WebCore::Request::sendResourceLoadCallbacks):
984         * loader/ResourceLoader.cpp:
985         (WebCore::ResourceLoader::ResourceLoader):
986         (WebCore::ResourceLoader::willSendRequest):
987         (WebCore::ResourceLoader::didReceiveResponse):
988         (WebCore::ResourceLoader::didReceiveData):
989         (WebCore::ResourceLoader::didFinishLoadingOnePart):
990         (WebCore::ResourceLoader::didFail):
991         (WebCore::ResourceLoader::didCancel):
992         * loader/ResourceLoader.h:
993         (WebCore::ResourceLoader::sendResourceLoadCallbacks):
994         * loader/SubresourceLoader.cpp:
995         (WebCore::SubresourceLoader::SubresourceLoader):
996         (WebCore::SubresourceLoader::create):
997         * loader/SubresourceLoader.h:
998         * loader/loader.cpp:
999         (WebCore::Loader::load):
1000         (WebCore::Loader::servePendingRequests):
1001         * loader/loader.h:
1002         * loader/mac/NetscapePlugInStreamLoaderMac.mm:
1003         (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
1004
1005 2007-06-21  Richard Connamacher  <rich@indieimage.com>
1006
1007         Reviewed by Tim Hatcher.
1008
1009         Bug 14305: Web Inspector marks local files with server-side compression tip
1010         http://bugs.webkit.org/show_bug.cgi?id=14305
1011
1012         * page/inspector/Resource.js:
1013         (WebInspector.Resource._shouldCompress): Prevent server-side compression tip
1014         from being given to local files
1015
1016 2007-06-21  Mark Rowe  <mrowe@apple.com>
1017
1018         Reviewed by Darin.
1019
1020         Fix for <rdar://problem/5266928> REGRESSION: crash/assert failure beneath RenderFrameSet::layOutAxis when loading
1021
1022         * platform/StringImpl.cpp:
1023         (WebCore::StringImpl::toLengthArray): Simplify whitespace before checking for an empty string.  This avoids returning
1024         a length of zero when the string is collapsed to empty by whitespace simplification.
1025
1026 2007-06-21  Dave Hyatt  <hyatt@apple.com>
1027
1028         Fix for <rdar://problem/5286978>, large font sizes crash Windows.
1029         
1030         Limit the maximum font size to 1,000,000 to avoid crashes and issues with platforms that
1031         start failing to do anything useful if the font size is too big.
1032         
1033         Reviewed by olliej
1034
1035         * css/cssstyleselector.cpp:
1036         (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
1037         
1038 2007-06-21  Andrew Wellington  <proton@wiretapped.net>
1039
1040         Reviewed by Timothy.
1041
1042         Stop shift+scroll wheel performing a horizontal scroll in Web Inspector
1043
1044         * page/inspector/inspector.css: Set body margin to 0
1045
1046 2007-06-21  Adam Treat  <adam@staikos.net>
1047
1048         Reviewed by George Staikos.
1049
1050         Implement the default resources on Qt.
1051
1052         * platform/graphics/BitmapImage.h:
1053         * platform/graphics/Image.h:
1054         * platform/graphics/qt/ImageQt.cpp:
1055         (WebCore::Image::loadPlatformResource):
1056         (WebCore::BitmapImage::BitmapImage):
1057         (WebCore::BitmapImage::initPlatformData):
1058         (WebCore::BitmapImage::invalidatePlatformData):
1059         (WebCore::BitmapImage::getPixmap):
1060         * platform/qt/TemporaryLinkStubs.cpp:
1061
1062 2007-06-21  Oliver Hunt  <oliver@apple.com>
1063
1064         Reviewed by Darin.
1065
1066         Use RetainPtr for holding currentEvent.  This removes explicit HardRetain/Release calls
1067         and makes reference handling simpler in advance of IME refactoring.
1068
1069         * WebCore.xcodeproj/project.pbxproj:
1070         * page/mac/EventHandlerMac.mm:
1071         (WebCore::currentEvent):
1072         (WebCore::EventHandler::currentNSEvent):
1073         (WebCore::EventHandler::wheelEvent):
1074         (WebCore::EventHandler::keyEvent):
1075         (WebCore::lastEventIsMouseUp):
1076         (WebCore::EventHandler::passMouseDownEventToWidget):
1077         (WebCore::EventHandler::eventLoopHandleMouseDragged):
1078         (WebCore::EventHandler::eventLoopHandleMouseUp):
1079         (WebCore::EventHandler::passSubframeEventToSubframe):
1080         (WebCore::EventHandler::passWheelEventToWidget):
1081         (WebCore::EventHandler::mouseDown):
1082         (WebCore::EventHandler::mouseDragged):
1083         (WebCore::EventHandler::mouseUp):
1084         (WebCore::EventHandler::mouseMoved):
1085
1086 2007-06-21  George Staikos  <staikos@kde.org>
1087
1088         Reviewed by George & Marius.
1089
1090         Patch by me, revision by Marius, minor rev by me.  Adds rendered
1091         and stylable scrollbars.
1092
1093         * page/qt/EventHandlerQt.cpp:
1094         (WebCore::EventHandler::passMousePressEventToScrollbar):
1095         * platform/Widget.h:
1096         * platform/qt/PlatformScrollBar.h:
1097         (WebCore::PlatformScrollbar::isWidget):
1098         * platform/qt/PlatformScrollBarQt.cpp:
1099         (WebCore::PlatformScrollbar::PlatformScrollbar):
1100         (WebCore::PlatformScrollbar::~PlatformScrollbar):
1101         (WebCore::PlatformScrollbar::updateThumbPosition):
1102         (WebCore::PlatformScrollbar::updateThumbProportion):
1103         (WebCore::PlatformScrollbar::width):
1104         (WebCore::PlatformScrollbar::height):
1105         (WebCore::PlatformScrollbar::setRect):
1106         (WebCore::PlatformScrollbar::isEnabled):
1107         (WebCore::PlatformScrollbar::setEnabled):
1108         (WebCore::PlatformScrollbar::paint):
1109         (WebCore::PlatformScrollbar::thumbPosition):
1110         (WebCore::PlatformScrollbar::thumbLength):
1111         (WebCore::PlatformScrollbar::trackLength):
1112         (WebCore::PlatformScrollbar::handleMouseMoveEvent):
1113         (WebCore::PlatformScrollbar::handleMouseOutEvent):
1114         (WebCore::PlatformScrollbar::handleMousePressEvent):
1115         (WebCore::PlatformScrollbar::handleMouseReleaseEvent):
1116         (WebCore::PlatformScrollbar::startTimerIfNeeded):
1117         (WebCore::PlatformScrollbar::stopTimerIfNeeded):
1118         (WebCore::PlatformScrollbar::autoscrollPressedPart):
1119         (WebCore::PlatformScrollbar::autoscrollTimerFired):
1120         (WebCore::PlatformScrollbar::pressedPartScrollDirection):
1121         (WebCore::PlatformScrollbar::pressedPartScrollGranularity):
1122         (WebCore::PlatformScrollbar::thumbUnderMouse):
1123         (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
1124         (WebCore::PlatformScrollbar::verticalScrollbarWidth):
1125         (WebCore::PlatformScrollbar::windowClipRect):
1126         * platform/qt/ScrollViewQt.cpp:
1127         (WebCore::ScrollView::addChild):
1128         (WebCore::ScrollView::removeChild):
1129         * platform/qt/WidgetQt.cpp:
1130         (WebCore::WidgetPrivate::WidgetPrivate):
1131         (WebCore::Widget::setQWidget):
1132         (WebCore::Widget::invalidate):
1133         (WebCore::Widget::invalidateRect):
1134         (WebCore::Widget::setParent):
1135         (WebCore::Widget::parent):
1136
1137 2007-06-21  Geoffrey Garen  <ggaren@apple.com>
1138
1139         Reviewed by Dave Hyatt.
1140         
1141         Fixed <rdar://problem/4977124> | http://bugs.webkit.org/show_bug.cgi?id=12646
1142         REGRESSION: RapidWeaver's "Hello" HTML page doesn't display any DHTML 
1143         effects when clicking on its links (12646)
1144         
1145         I'm rolling our r7703 for these reasons:
1146
1147         1. It broke RapidWeaver.
1148         
1149         2. WebKit is now orders of magnitude faster when handling deep nesting
1150         (5 seconds vs 3 minutes on my MBP in this particular case).
1151
1152         3. Firefox, IE, and HTML5 all allow nested heading tags.
1153         
1154         4. Hyatt said so.
1155
1156         * html/HTMLParser.cpp:
1157         (WebCore::HTMLParser::parseToken):
1158
1159 2007-06-21  Sam Weinig  <sam@webkit.org>
1160
1161         Reviewed by Tim Hatcher.
1162
1163         http://bugs.webkit.org/show_bug.cgi?id=14260
1164         ASSERTION FAILED: m_mainResource->loader == loader going back in history on any page
1165
1166         Remove assert for now as it is causing the back button to not
1167         work in debug builds.
1168
1169         * page/InspectorController.cpp:
1170         (WebCore::InspectorController::didCommitLoad):
1171
1172 2007-06-21  Lars Knoll <lars@trolltech.com>
1173
1174         Remove some debug output.
1175
1176         * platform/qt/FontQt.cpp:
1177         (WebCore::generateComponents):
1178         (WebCore::Font::width):
1179
1180 2007-06-21  George Staikos  <staikos@kde.org>
1181
1182         Repair Qt/Mac OS X build.
1183
1184         * WebCore.pro:
1185
1186 2007-06-21  Alexey Proskuryakov  <ap@webkit.org>
1187
1188         Reviewed by Anders.
1189
1190         http://bugs.webkit.org/show_bug.cgi?id=13905
1191         REGRESSION: A Chinese dictionary widget has a problem with XMLHttpRequest response encoding
1192
1193         Tiger WebKit accidentally looked at HTML Http-Equiv META to determine the response encoding
1194         (regardless of the actual response MIME type). This was corrected a while ago to match other 
1195         browsers and the draft XHR spec.
1196
1197         Now restoring this functionality for "text/html", with spec editor's blessing.
1198
1199         * xml/xmlhttprequest.cpp:
1200         (WebCore::XMLHttpRequest::responseMIMEType):
1201         (WebCore::XMLHttpRequest::responseIsXML):
1202         (WebCore::XMLHttpRequest::didReceiveData):
1203         * xml/xmlhttprequest.h:
1204
1205 2007-06-21  Andrew Wellington  <proton@wiretapped.net>
1206
1207         Mac build fix.
1208
1209         * platform/Font.h:
1210
1211 2007-06-21  Lars Knoll  <lars@trolltech.com>
1212
1213         Reviewed by Simon.
1214
1215         another small fix for letter spacing
1216
1217         * platform/qt/FontQt.cpp:
1218         (WebCore::generateComponents):
1219
1220 2007-06-21  Lars Knoll  <lars@trolltech.com>
1221
1222         Reviewed by Simon.
1223
1224         fix word-spacing
1225
1226         * platform/qt/FontQt.cpp:
1227         (WebCore::generateComponents):
1228         (WebCore::Font::width):
1229
1230 2007-06-21  Lars Knoll  <lars@trolltech.com>
1231
1232         Reviewed by Simon.
1233
1234         fix letterspacing and small caps.
1235
1236         * platform/Font.h:
1237         * platform/graphics/qt/GraphicsContextQt.cpp:
1238         (WebCore::GraphicsContext::setPlatformFont):
1239         * platform/qt/FileChooserQt.cpp:
1240         * platform/qt/FontQt.cpp:
1241         (WebCore::TextRunComponent::TextRunComponent):
1242         (WebCore::Font::Font):
1243         (WebCore::Font::operator=):
1244         (WebCore::Font::update):
1245         (WebCore::generateComponents):
1246         (WebCore::Font::selectionRectForText):
1247         * platform/qt/RenderThemeQt.cpp:
1248
1249 2007-06-21  Lars Knoll  <lars@trolltech.com>
1250
1251         Reviewed by Simon.
1252
1253         store the metrics and space width in the Font object
1254
1255         * platform/Font.h:
1256         * platform/qt/FontQt.cpp:
1257         (WebCore::Font::Font):
1258         (WebCore::Font::drawText):
1259         (WebCore::Font::width):
1260         (WebCore::Font::isFixedPitch):
1261         (WebCore::Font::ascent):
1262         (WebCore::Font::descent):
1263         (WebCore::Font::lineSpacing):
1264
1265 2007-06-21  Lars Knoll  <lars@trolltech.com>
1266
1267         Reviewed by Simon.
1268
1269         simplify some codepaths
1270
1271         * platform/qt/FontQt.cpp:
1272         (WebCore::Font::drawText):
1273         (WebCore::Font::width):
1274
1275 2007-06-21  Lars Knoll  <lars@trolltech.com>
1276
1277         Reviewed by Simon.
1278
1279         fix copyright header
1280
1281         * platform/qt/FontQt.cpp:
1282
1283 2007-06-21  Lars Knoll  <lars@trolltech.com>
1284
1285         Reviewed by Simon.
1286
1287         correctly load fonts when a list of font families is given
1288
1289         * platform/qt/FontQt.cpp:
1290         (WebCore::Font::Font):
1291
1292 2007-06-21  Lars Knoll  <lars@trolltech.com>
1293
1294         Reviewed by Simon.
1295
1296         fix some more of the font support
1297
1298         * platform/qt/FontQt.cpp:
1299         (WebCore::Font::drawText):
1300         (WebCore::Font::width):
1301
1302 2007-06-21  Lars Knoll  <lars@trolltech.com>
1303
1304         Reviewed by Simon.
1305
1306         Compile fixes
1307
1308         * platform/Font.h:
1309         (WebCore::Font::isRoundingHackCharacter):
1310         * platform/qt/FontQt.cpp:
1311         (WebCore::Font::drawText):
1312
1313 2007-06-21  Lars Knoll  <lars@trolltech.com>
1314
1315         Reviewed by Simon.
1316
1317         Some more work on the implementation of FontQt.
1318
1319         * platform/qt/FontQt.cpp:
1320         (WebCore::Font::Font):
1321         (WebCore::Font::~Font):
1322         (WebCore::Font::operator=):
1323
1324 2007-06-21  Lars Knoll  <lars@trolltech.com>
1325
1326         Reviewed by Simon.
1327
1328         Started work on the new font infrastructure for the Qt port.
1329
1330         * WebCore.pro:
1331         * editing/Editor.cpp:
1332         (WebCore::Editor::fontForSelection):
1333         * platform/Font.h:
1334         (WebCore::Font::treatAsSpace):
1335         (WebCore::Font::treatAsZeroWidthSpace):
1336         (WebCore::Font::isRoundingHackCharacter):
1337         * platform/qt/FontQt.cpp:
1338         (WebCore::Font::operator QFont):
1339         * platform/qt/TemporaryLinkStubs.cpp:
1340
1341 2007-06-21  Adam Roben  <aroben@apple.com>
1342
1343         More Gdk build fixes.
1344
1345         * page/gdk/ContextMenuClientGdk.cpp:
1346         (WebCore::ContextMenuClientGdk::shouldIncludeInspectElementItem):
1347         * page/gdk/ContextMenuClientGdk.h:
1348         * platform/gdk/TemporaryLinkStubs.cpp:
1349
1350 2007-06-21  Adam Roben  <aroben@apple.com>
1351
1352         Speculative Gdk build fix.
1353
1354         * page/InspectorController.h: Only include the JS headers we really
1355         need to avoid pulling in ones like JSStringRefCF.h.
1356
1357 2007-06-20  Adam Roben  <aroben@apple.com>
1358
1359         Speculative Gdk build fix.
1360
1361         * WebCore.pro: Don't try to build WebKitQt/Plugins on Gdk.
1362
1363 2007-06-20  Adam Roben  <aroben@apple.com>
1364
1365         Windows build fix.
1366
1367         * WebCore.vcproj/WebCore.vcproj: Include ForwardingHeaders after
1368         everything but $WebKitLibrariesDir so that we will pick up
1369         JavaScriptCore headers directly.
1370
1371 2007-06-15  George Staikos  <staikos@kde.org>
1372
1373         Add missing symbol.
1374
1375         * platform/qt/TemporaryLinkStubs.cpp:
1376         (WebCore::contextMenuItemTagInspectElement):
1377
1378 2007-06-20  Steve Falkenburg  <sfalken@apple.com>
1379
1380         Reviewed by Maciej, Anders.
1381         
1382         <rdar://problem/5283789> Crash after dismissing JavaScript alert at end of test on http://lcamtuf.coredump.cx/ierace/
1383
1384         Keep a reference to the Page (via the main frame) for the
1385         load deferred pages.
1386         
1387         Reference is held via the frame since Page isn't refcounted.
1388
1389         * page/Chrome.cpp:
1390         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
1391         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
1392
1393 2007-06-15  Adam Treat <adam@staikos.net>
1394
1395         Reviewed by George Staikos.
1396
1397         Add ICO support to the Qt build.
1398
1399         * WebCore.pro:
1400         * platform/graphics/qt/ImageDecoderQt.cpp:
1401         (Q_IMPORT_PLUGIN):
1402
1403 2007-06-15  George Staikos  <staikos@kde.org>
1404
1405         Fixing Qt build.
1406
1407         * ForwardingHeaders/JavaScriptCore/APICast.h: Added.
1408         * WebCore.pro:
1409         * page/InspectorController.h:
1410
1411 2007-06-20  Adam Roben  <aroben@apple.com>
1412
1413         More speculative Qt/Gdk build fixes.
1414
1415         * WebCore.pro: Add new files.
1416
1417 2007-06-20  Adam Roben  <aroben@apple.com>
1418
1419         Speculative Qt/Gdk build fix.
1420
1421         Added forwarding headers for JavaScriptCore. We may eventually move
1422         InspectorController off of the JSC API, but for now this is the
1423         quickest way to a working build.
1424
1425         * ForwardingHeaders/JavaScriptCore/JSBase.h: Added.
1426         * ForwardingHeaders/JavaScriptCore/JSContextRef.h: Added.
1427         * ForwardingHeaders/JavaScriptCore/JSObjectRef.h: Added.
1428         * ForwardingHeaders/JavaScriptCore/JSStringRef.h: Added.
1429         * ForwardingHeaders/JavaScriptCore/JSStringRefCF.h: Added.
1430         * ForwardingHeaders/JavaScriptCore/JSValueRef.h: Added.
1431         * ForwardingHeaders/JavaScriptCore/JavaScriptCore.h: Added.
1432
1433 2007-06-20  Sam Weinig  <sam@webkit.org>
1434
1435         Rubber stamped by Adam Roben.
1436
1437         Add licenses.
1438
1439         * page/inspector/ConsolePanel.js:
1440         * page/inspector/NetworkPanel.js:
1441         * page/inspector/Resource.js:
1442         * page/inspector/ResourceCategory.js:
1443         * page/inspector/ResourcePanel.js:
1444
1445 2007-06-20  Mark Rowe  <mrowe@apple.com>
1446
1447         Reviewed by Adam.
1448
1449         * WebCore.exp: Export InspectorController::inspect so WebKit can see it.
1450
1451 2007-06-20  Geoffrey Garen  <ggaren@apple.com>
1452
1453         Reviewed by Adele Peterson, Oliver Hunt, Anders Carlsson.
1454
1455         Fixed <rdar://problem/5222911> Leopard9A446 : VitalSource Bookshelf 4.5: 
1456         Crashes when you click on sign in (stringByEvaluatingJavaScriptFromString 
1457         returning nil instead of "")
1458
1459         I'm basically rolling out the change for <rdar://problem/4782422> because
1460         my testing shows that it was backwards.
1461         
1462         * html/HTMLElement.cpp:
1463         (dumpInnerHTML): New debug-only function to work around gdb being 
1464         perpetually suck-tastic.
1465
1466         * page/mac/WebCoreFrameBridge.mm:
1467         (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
1468         
1469         Return "", not nil. This function never used to return nil, so let's not
1470         start now. I've filed <rdar://problem/5283271> to cover the documentation bug,
1471
1472 2007-06-20  Adam Roben  <aroben@apple.com>
1473
1474         Addressed some of Geoff's comments.
1475
1476         * page/ContextMenuController.cpp:
1477         (WebCore::ContextMenuController::handleContextMenuEvent): Added a
1478         FIXME.
1479         * platform/ContextMenu.cpp:
1480         (WebCore::ContextMenu::addInspectElementItem): Null-check
1481         frame->page().
1482
1483 2007-06-20  Adam Roben  <aroben@apple.com>
1484
1485         Fix crash in fast/dom/dir-no-body.html
1486
1487         Reviewed by Mark.
1488
1489         * html/HTMLDocument.cpp:
1490         (WebCore::HTMLDocument::createTokenizer): Don't assume we have a
1491         Frame, since we won't if someone creates an HTMLDocument from JS.
1492
1493 2007-06-20  Adam Roben  <aroben@apple.com>
1494
1495         Land the new Inspector.
1496
1497         Co-written with Tim Hatcher.
1498
1499         Reviewed by Anders, Adele, Hyatt, and Sam.
1500
1501         No regression tests possible.
1502
1503         Add a new InspectorController that is in charge of the Inspector. It
1504         has an InspectorClient that controls the Inspector's window and node
1505         highlight.
1506
1507         * page/InspectorClient.h: Added.
1508         (WebCore::InspectorClient::~InspectorClient):
1509         * page/InspectorController.cpp: Added.
1510         (WebCore::ConsoleMessage::ConsoleMessage):
1511         (WebCore::InspectorResource::): Represents a single resource that the
1512         Inspector knows about.
1513         (WebCore::InspectorResource::InspectorResource):
1514         (WebCore::InspectorResource::~InspectorResource):
1515         (WebCore::InspectorResource::type):
1516         (WebCore::InspectorResource::setScriptObject):
1517         (WebCore::addSourceToFrame): Callback available from JS.
1518         (WebCore::getResourceDocumentNode): Ditto.
1519         (WebCore::highlightDOMNode): Ditto.
1520         (WebCore::hideDOMNodeHighlight): Ditto.
1521         (WebCore::loaded): Ditto.
1522         (WebCore::unloading): Ditto.
1523         (WebCore::attach): Ditto.
1524         (WebCore::detach): Ditto.
1525         (WebCore::log): Ditto.
1526         (WebCore::search): Ditto.
1527         (WebCore::inspectedWindow): Ditto.
1528         (WebCore::InspectorController::InspectorController):
1529         (WebCore::InspectorController::~InspectorController):
1530         (WebCore::InspectorController::inspect): Called by
1531         ContextMenuController to inspect a node.
1532         (WebCore::InspectorController::focusNode):
1533         (WebCore::InspectorController::highlight):
1534         (WebCore::InspectorController::hideHighlight):
1535         (WebCore::InspectorController::windowVisible):
1536         (WebCore::InspectorController::setWindowVisible):
1537         (WebCore::InspectorController::addMessageToConsole):
1538         (WebCore::InspectorController::attachWindow):
1539         (WebCore::InspectorController::detachWindow):
1540         (WebCore::InspectorController::windowScriptObjectAvailable):
1541         (WebCore::InspectorController::scriptObjectReady):
1542         (WebCore::InspectorController::windowUnloading):
1543         (WebCore::addHeaders): Static helper function.
1544         (WebCore::objectForRequest): Ditto.
1545         (WebCore::objectForResponse): Ditto.
1546         (WebCore::InspectorController::addScriptResource):
1547         (WebCore::InspectorController::addAndUpdateScriptResource):
1548         (WebCore::InspectorController::removeScriptResource):
1549         (WebCore::InspectorController::updateScriptResource):
1550         (WebCore::InspectorController::populateScriptResources):
1551         (WebCore::InspectorController::addScriptConsoleMessage):
1552         (WebCore::callClearFunction): Static helper function.
1553         (WebCore::InspectorController::clearScriptResources):
1554         (WebCore::InspectorController::clearScriptConsoleMessages):
1555         (WebCore::InspectorController::clearNetworkTimeline):
1556         (WebCore::InspectorController::pruneResources):
1557         (WebCore::InspectorController::didCommitLoad): Callback from
1558         FrameLoader.
1559         (WebCore::InspectorController::frameDetachedFromParent): Ditto.
1560         (WebCore::InspectorController::addResource): Ditto.
1561         (WebCore::InspectorController::removeResource): Ditto.
1562         (WebCore::InspectorController::didLoadResourceFromMemoryCache): Ditto.
1563         (WebCore::InspectorController::identifierForInitialRequest): Ditto.
1564         (WebCore::InspectorController::willSendRequest): Ditto.
1565         (WebCore::InspectorController::didReceiveResponse): Ditto.
1566         (WebCore::InspectorController::didReceiveContentLength): Ditto.
1567         (WebCore::InspectorController::didFinishLoading): Ditto.
1568         (WebCore::InspectorController::didFailLoading): Ditto.
1569         * page/InspectorController.h: Added.
1570         (WebCore::InspectorController::inspectedPage):
1571         (WebCore::InspectorController::scriptContext):
1572         (WebCore::InspectorController::setScriptContext):
1573         (WebCore::InspectorController::resources):
1574         (WebCore::InspectorController::removeAllResources):
1575
1576         Add the JavaScript that defines most of the behavior of the Inspector.
1577         
1578         * page/inspector/ConsolePanel.js: Added.
1579         * page/inspector/NetworkPanel.js: Added.
1580         * page/inspector/Resource.js: Added.
1581         * page/inspector/ResourceCategory.js: Added.
1582         * page/inspector/ResourcePanel.js: Added.
1583         * page/inspector/inspector.js: Added.
1584         * page/inspector/treeoutline.js: Renamed from WebKit/WebInspector/webInspector/treeoutline.js.
1585         * page/inspector/utilities.js: Added.
1586
1587         Add the Inspector's CSS and HTML.
1588
1589         * page/inspector/inspector.css: Added.
1590         * page/inspector/inspector.html: Added.
1591
1592         Hang the InspectorController off of Page. We only create an
1593         InspectorController if an InspectorClient is given to the Page.
1594
1595         * page/Page.cpp:
1596         (WebCore::Page::Page):
1597         * page/Page.h:
1598         (WebCore::Page::inspectorController):
1599
1600         Use FrameLoader to notify the InspectorController of resource loads.
1601
1602         * loader/FrameLoader.cpp:
1603         (WebCore::FrameLoader::begin):
1604         (WebCore::FrameLoader::transitionToCommitted):
1605         (WebCore::FrameLoader::continueLoadAfterWillSubmitForm):
1606         (WebCore::FrameLoader::detachFromParent):
1607         (WebCore::FrameLoader::assignIdentifierToInitialRequest):
1608         (WebCore::FrameLoader::willSendRequest):
1609         (WebCore::FrameLoader::didReceiveResponse):
1610         (WebCore::FrameLoader::didReceiveData):
1611         (WebCore::FrameLoader::sendRemainingDelegateMessages):
1612         (WebCore::FrameLoader::requestFromDelegate):
1613         (WebCore::FrameLoader::didFinishLoad):
1614         (WebCore::FrameLoader::dispatchWindowObjectAvailable):
1615         (WebCore::FrameLoader::dispatchDidCommitLoad):
1616         (WebCore::FrameLoader::dispatchAssignIdentifierToInitialRequest):
1617         (WebCore::FrameLoader::dispatchWillSendRequest):
1618         (WebCore::FrameLoader::dispatchDidReceiveResponse):
1619         (WebCore::FrameLoader::dispatchDidReceiveContentLength):
1620         (WebCore::FrameLoader::dispatchDidFinishLoading):
1621         (WebCore::FrameLoader::dispatchDidLoadResourceFromMemoryCache):
1622         * loader/FrameLoader.h:
1623
1624         Send console messages to the InspectorController.
1625
1626         * page/Chrome.cpp:
1627         (WebCore::Chrome::addMessageToConsole): Send all console messages to
1628         the InspectorController.
1629         * page/Chrome.h: Add a new MessageLevel and MessageSource that are
1630         used in the Inspector JS.
1631
1632         Report HTML errors when the Inspector window is open.
1633         We don't report errors when the window is closed because we don't want
1634         to slow down the HTMLTokenizer.
1635
1636         * html/HTMLDocument.cpp:
1637         (WebCore::HTMLDocument::createTokenizer):
1638         * html/HTMLParser.cpp:
1639         (WebCore::HTMLParser::HTMLParser):
1640         * html/HTMLParser.h:
1641         * html/HTMLTokenizer.cpp:
1642         (WebCore::HTMLTokenizer::HTMLTokenizer):
1643         * html/HTMLTokenizer.h:
1644
1645         Append the "Inspect Element" context menu item after passing the
1646         context menu to the ContextMenuClient. This work used to be done in
1647         WebKit.
1648
1649         * page/ContextMenuClient.h:
1650         * page/ContextMenuController.cpp:
1651         (WebCore::ContextMenuController::handleContextMenuEvent): Add the
1652         "Inspect Element" item.
1653         (WebCore::ContextMenuController::contextMenuItemSelected): Handle the
1654         "Inspect Element" item.
1655         * platform/ContextMenu.cpp:
1656         (WebCore::ContextMenu::addInspectElementItem):
1657         (WebCore::ContextMenu::checkOrEnableIfNeeded): Updated for "Inspect
1658         Element" item.
1659         * platform/ContextMenu.h:
1660         * platform/ContextMenuItem.h:
1661         (WebCore::): Add ContextMenuItemTagInspectElement.
1662         * platform/graphics/svg/SVGImageEmptyClients.h:
1663         * page/mac/WebCoreViewFactory.h: Add the "Inspect Element" localized
1664         string.
1665         * platform/LocalizedStrings.h: Ditto.
1666         * platform/mac/LocalizedStringsMac.mm:
1667         (WebCore::contextMenuItemTagInspectElement): Ditto.
1668
1669         Miscellaneous changes:
1670
1671         * css/view-source.css: Add message bubble styles.
1672         * loader/DocumentLoader.h: Add a frame getter.
1673         * platform/win/ScrollViewWin.cpp:
1674         (WebCore::ScrollView::updateScrollbars): Respect
1675         Frame::prohibitsScrolling.
1676
1677         Add new images needed for the Inspector.
1678
1679         * page/inspector/Images/attachedShadow.png: Added.
1680         * page/inspector/Images/bottomShadow.png: Added.
1681         * page/inspector/Images/breadcrumbBackground.png: Added.
1682         * page/inspector/Images/checker.png: Added.
1683         * page/inspector/Images/console.png: Added.
1684         * page/inspector/Images/darkShadow.png: Added.
1685         * page/inspector/Images/disclosureDownPressed.png: Added.
1686         * page/inspector/Images/disclosureRightDown.png: Added.
1687         * page/inspector/Images/disclosureRightPressed.png: Added.
1688         * page/inspector/Images/document.png: Added.
1689         * page/inspector/Images/domViewButton.png: Added.
1690         * page/inspector/Images/domViewButtonSelected.png: Added.
1691         * page/inspector/Images/downTriangle.png: Added.
1692         * page/inspector/Images/errorIcon.png: Added.
1693         * page/inspector/Images/errorMediumIcon.png: Added.
1694         * page/inspector/Images/folder.png: Added.
1695         * page/inspector/Images/goArrow.png: Added.
1696         * page/inspector/Images/gradient.png: Added.
1697         * page/inspector/Images/gradientHighlight.png: Added.
1698         * page/inspector/Images/gradientHighlightBottom.png: Added.
1699         * page/inspector/Images/hideStatusWidget.png: Added.
1700         * page/inspector/Images/hideStatusWidgetPressed.png: Added.
1701         * page/inspector/Images/network.png: Added.
1702         * page/inspector/Images/paneBottomGrow.png: Added.
1703         * page/inspector/Images/paneBottomGrowActive.png: Added.
1704         * page/inspector/Images/paneGrowHandleLine.png: Added.
1705         * page/inspector/Images/paneHeader.png: Added.
1706         * page/inspector/Images/paneHeaderActive.png: Added.
1707         * page/inspector/Images/plainDocument.png: Added.
1708         * page/inspector/Images/popupArrows.png: Added.
1709         * page/inspector/Images/rightTriangle.png: Added.
1710         * page/inspector/Images/segment.png: Added.
1711         * page/inspector/Images/segmentEnd.png: Added.
1712         * page/inspector/Images/segmentHover.png: Added.
1713         * page/inspector/Images/segmentHoverEnd.png: Added.
1714         * page/inspector/Images/segmentSelected.png: Added.
1715         * page/inspector/Images/segmentSelectedEnd.png: Added.
1716         * page/inspector/Images/showStatusWidget.png: Added.
1717         * page/inspector/Images/showStatusWidgetPressed.png: Added.
1718         * page/inspector/Images/sidbarItemBackground.png: Added.
1719         * page/inspector/Images/sidebarActionWidget.png: Added.
1720         * page/inspector/Images/sidebarActionWidgetPressed.png: Added.
1721         * page/inspector/Images/sidebarAttachWidget.png: Added.
1722         * page/inspector/Images/sidebarAttachWidgetPressed.png: Added.
1723         * page/inspector/Images/sidebarDetachWidget.png: Added.
1724         * page/inspector/Images/sidebarDetachWidgetPressed.png: Added.
1725         * page/inspector/Images/sidebarResizeWidget.png: Added.
1726         * page/inspector/Images/sidebarSelection.png: Added.
1727         * page/inspector/Images/sidebarSelectionBlurred.png: Added.
1728         * page/inspector/Images/sidebarSelectionBlurredTall.png: Added.
1729         * page/inspector/Images/sidebarSelectionGray.png: Added.
1730         * page/inspector/Images/sidebarSelectionGrayTall.png: Added.
1731         * page/inspector/Images/sidebarSelectionTall.png: Added.
1732         * page/inspector/Images/sidebarStatusAreaBackground.png: Added.
1733         * page/inspector/Images/sourceViewButton.png: Added.
1734         * page/inspector/Images/sourceViewButtonSelected.png: Added.
1735         * page/inspector/Images/splitviewDimple.png: Added.
1736         * page/inspector/Images/splitviewDividerBackground.png: Added.
1737         * page/inspector/Images/tab.png: Added.
1738         * page/inspector/Images/tabSelected.png: Added.
1739         * page/inspector/Images/timelinePillBlue.png: Added.
1740         * page/inspector/Images/timelinePillGray.png: Added.
1741         * page/inspector/Images/timelinePillGreen.png: Added.
1742         * page/inspector/Images/timelinePillOrange.png: Added.
1743         * page/inspector/Images/timelinePillPurple.png: Added.
1744         * page/inspector/Images/timelinePillRed.png: Added.
1745         * page/inspector/Images/timelinePillYellow.png: Added.
1746         * page/inspector/Images/tipBalloon.png: Added.
1747         * page/inspector/Images/tipBalloonBottom.png: Added.
1748         * page/inspector/Images/tipIcon.png: Added.
1749         * page/inspector/Images/tipIconPressed.png: Added.
1750         * page/inspector/Images/toggleDown.png: Added.
1751         * page/inspector/Images/toggleUp.png: Added.
1752         * page/inspector/Images/toolbarBackground.png: Added.
1753         * page/inspector/Images/toolbarBackgroundInactive.png: Added.
1754         * page/inspector/Images/toolbarButton.png: Added.
1755         * page/inspector/Images/toolbarButtonInactive.png: Added.
1756         * page/inspector/Images/toolbarButtonPressed.png: Added.
1757         * page/inspector/Images/toolbarButtonPressedInactive.png: Added.
1758         * page/inspector/Images/toolbarSplitButtonDivider.png: Added.
1759         * page/inspector/Images/toolbarSplitButtonDividerInactive.png: Added.
1760         * page/inspector/Images/treeDownTriangleBlack.png: Added.
1761         * page/inspector/Images/treeDownTriangleWhite.png: Added.
1762         * page/inspector/Images/treeLeftTriangleBlack.png: Added.
1763         * page/inspector/Images/treeRightTriangleBlack.png: Added.
1764         * page/inspector/Images/treeRightTriangleWhite.png: Added.
1765         * page/inspector/Images/warningIcon.png: Added.
1766         * page/inspector/Images/warningMediumIcon.png: Added.
1767         * page/inspector/Images/warningsErrors.png: Added.
1768
1769         Build-fu:
1770
1771         * WebCore.exp: Added new symbols.
1772         * WebCore.xcodeproj/project.pbxproj: Added new source files and
1773         resources.
1774         * WebCore.vcproj/WebCore.vcproj: Ditto, and copy the resources to
1775         $WebKitOutputDir.
1776
1777         Windows build fixes:
1778
1779         * history/HistoryItem.h: ResourceRequest is a struct.
1780         * loader/FrameLoaderClient.h: Ditto.
1781
1782 2007-06-20  Mitz Pettel  <mitz@webkit.org>
1783
1784         Reviewed by Beth.
1785
1786         - fix http://bugs.webkit.org/show_bug.cgi?id=14056
1787           REGRESSION (r21113-21143): TR background not repainted via style class change
1788
1789         Test: fast/repaint/table-row.html
1790
1791         * rendering/RenderTableRow.cpp:
1792         (WebCore::RenderTableRow::layout): Added a repaint to make up for the case where the
1793         table row also needs layout, so it doesn't get a repaint in setStyle().
1794
1795 2007-06-20  Mitz Pettel  <mitz@webkit.org>
1796
1797         Reviewed by Adele.
1798
1799         - fix http://bugs.webkit.org/show_bug.cgi?id=14040
1800           Top and bottom border images flipped when using -webkit-border-image when border end up tiled
1801
1802         Test: fast/borders/border-image-01.html
1803
1804         Correctly account for the fact that "pattern space" is flipped.
1805
1806         * platform/graphics/Image.cpp: (WebCore::Image::drawTiled):
1807         * platform/graphics/cg/ImageCG.cpp:
1808         (WebCore::Image::drawPatternCallback):
1809         (WebCore::Image::drawPattern):
1810
1811 2007-06-20  Anders Carlsson  <andersca@apple.com>
1812
1813         Reviewed by Darin.
1814
1815         <rdar://problem/5245555> REGRESSION: HTTP header injection in XMLHttpRequest.setRequestHeader
1816         
1817         Check for either '\r' or '\n' in the header value.
1818         
1819         * xml/xmlhttprequest.cpp:
1820         (WebCore::isValidHeaderValue):
1821
1822 2007-06-20  Patti Hoa  <patti@apple.com>
1823
1824         Reviewed by Geoffrey Garen.
1825
1826         <rdar://problem/4882527> VO should speak URL of image links that lack tags
1827         Add additional change from review
1828         
1829         * bridge/mac/WebCoreAXObject.mm:
1830         (-[WebCoreAXObject accessibilityAttributeValue:]):
1831         Check if the element has imgTag before asking for its url
1832         
1833 2007-06-20  Patti Hoa  <patti@apple.com>
1834
1835         Reviewed by Tristan O'Tierney.
1836
1837         <rdar://problem/4882527> VO should speak URL of image links that lack tags
1838         
1839         * bridge/mac/WebCoreAXObject.mm:
1840         (-[WebCoreAXObject accessibilityAttributeNames]):
1841         (-[WebCoreAXObject accessibilityAttributeValue:]):
1842         Return the url of images.
1843
1844 2007-06-19  Anders Carlsson  <andersca@apple.com>
1845
1846         Reviewed by Kevin Decker.
1847
1848         <rdar://problem/5266289> REGRESSION (Safari 3 Beta 1): Incoming iChat messages are delayed
1849         
1850         Add a new m_deferMainResourceDataLoad that can be used to control whether a data load should be deferred using a timer or not.
1851         
1852         * loader/DocumentLoader.cpp:
1853         (WebCore::DocumentLoader::DocumentLoader):
1854         * loader/DocumentLoader.h:
1855         (WebCore::DocumentLoader::deferMainResourceDataLoad):
1856         * loader/MainResourceLoader.cpp:
1857         (WebCore::MainResourceLoader::handleDataLoadSoon):
1858         (WebCore::MainResourceLoader::loadNow):
1859         (WebCore::MainResourceLoader::setDefersLoading):
1860
1861 2007-06-19  Patti Hoa <patti@apple.com>
1862
1863         Reviewed by Justin Garcia.
1864         
1865         <rdar://problem/5237325> Incorrect AXLeftLineTextMarkerRangeForTextMarker/AXPreviousLineStartTextMarkerForTextMarker for non-editable text
1866         
1867         * editing/visible_units.cpp:
1868         (WebCore::startPositionForLine):
1869         (WebCore::startOfLine):
1870         (WebCore::endPositionForLine):
1871         (WebCore::endOfLine):
1872         Break down the line routines to allow another try to ask for start/end of line if the returned position is not valid.
1873         An example would be when lineStart/lineEnd at different line than the input position.
1874         This can happen if the input position is before the space character at the end of a soft-wrapped non-editable line, 
1875         specifically a line without webkit-line-break:after-white-space style.
1876
1877 2007-06-19  Patti Hoa  <patti@apple.com>
1878
1879         Reviewed by Justin Garcia.
1880         
1881         <rdar://problem/3992645> VO view bounds misplaced when reading text after a line wrap
1882         
1883         * bridge/mac/WebCoreAXObject.mm:
1884         (-[WebCoreAXObject doAXBoundsForTextMarkerRange:]):
1885         Improve the accuracy of the bounds for a given range
1886         
1887 2007-06-19  Anders Carlsson  <andersca@apple.com>
1888
1889         Reviewed by Darin.
1890
1891         <rdar://problem/5130630>
1892         XPath fails LayoutTests on Windows
1893         
1894         * xml/XPathPredicate.cpp:
1895         Include MathExtras.h here so we get a version of fmod that works around a bug in the Microsoft CRT.
1896         
1897         * xml/XPathValue.cpp:
1898         (WebCore::XPath::Value::toNumber):
1899         Instead of using NAN, which isn't really the NaN value on Windows, use numeric_limits.
1900         
1901 2007-06-19  Geoffrey Garen  <ggaren@apple.com>
1902
1903         Reviewed by Darin Adler.
1904
1905         Fixed cross-frame access. <rdar://problem/5251309>. 
1906
1907         * bindings/js/kjs_window.cpp:
1908         (KJS::Window::getValueProperty):
1909         * bindings/scripts/CodeGeneratorJS.pm:
1910         * page/DOMWindow.idl:
1911
1912 2007-06-19  Anders Carlsson  <andersca@apple.com>
1913
1914         Build fix.
1915         
1916         * platform/win/PopupMenuWin.cpp:
1917
1918 2007-06-19  Lars Knoll <lars@trolltech.com>
1919
1920         Reviewed by Zack
1921
1922         Implement these methods correctly.
1923
1924         * platform/qt/PlatformScreenQt.cpp:
1925         (WebCore::screenRect):
1926         (WebCore::screenAvailableRect):
1927
1928 2007-06-19  Sam Weinig  <sam@webkit.org>
1929
1930         Reviewed by Geoff.
1931
1932         Patch for http://bugs.webkit.org/show_bug.cgi?id=14226
1933         Move the History object out of the JS bindings
1934
1935         - Autogenerate JSHistory.
1936
1937         * DerivedSources.make:
1938         * WebCore.pro:
1939         * WebCore.vcproj/WebCore.vcproj:
1940         * WebCore.xcodeproj/project.pbxproj:
1941         * bindings/js/kjs_window.cpp:
1942         (KJS::WindowPrivate::WindowPrivate):
1943         (KJS::Window::mark):
1944         (KJS::Window::getValueProperty):
1945         (KJS::Window::clearHelperObjectProperties):
1946         (KJS::Window::disconnectFrame):
1947         * bindings/js/kjs_window.h:
1948         (KJS::Window::):
1949         * bridge/GlobalHistory.h: Copied from WebCore/bridge/History.h.
1950         * bridge/History.h: Removed.
1951         * bridge/mac/GlobalHistoryMac.mm: Copied from WebCore/bridge/mac/HistoryMac.mm.
1952         * bridge/mac/HistoryMac.mm: Removed.
1953         * bridge/win/GlobalHistoryWin.cpp: Copied from WebCore/bridge/win/HistoryWin.cpp.
1954         * bridge/win/HistoryWin.cpp: Removed.
1955         * css/cssstyleselector.cpp:
1956         * page/DOMWindow.cpp:
1957         (WebCore::DOMWindow::disconnectFrame):
1958         (WebCore::DOMWindow::history):
1959         * page/DOMWindow.h:
1960         * page/DOMWindow.idl:
1961         * page/History.cpp: Added.
1962         (WebCore::History::History):
1963         (WebCore::History::frame):
1964         (WebCore::History::disconnectFrame):
1965         (WebCore::History::length):
1966         (WebCore::History::back):
1967         (WebCore::History::forward):
1968         (WebCore::History::go):
1969         * page/History.h: Added.
1970         * page/History.idl: Added.
1971         * platform/gdk/TemporaryLinkStubs.cpp:
1972         * platform/qt/TemporaryLinkStubs.cpp:
1973         * platform/wx/TemporaryLinkStubs.cpp:
1974
1975 2007-06-18  Sam Weinig  <sam@webkit.org>
1976
1977         Qt build fix.
1978
1979         * platform/qt/PlatformScreenQt.cpp:
1980         (WebCore::screenDepth):
1981         (WebCore::screenDepthPerComponent):
1982         (WebCore::screenIsMonochrome):
1983         (WebCore::screenRect):
1984         (WebCore::screenAvailableRect):
1985
1986 2007-06-18  Sam Weinig  <sam@webkit.org>
1987
1988         Reviewed by Beth.
1989
1990         Fix build and update licenses. 
1991
1992         * WebCore.xcodeproj/project.pbxproj:
1993         * page/BarInfo.cpp:
1994         * page/BarInfo.h:
1995         * page/BarInfo.idl:
1996         * page/Screen.cpp:
1997         (WebCore::Screen::height):
1998         (WebCore::Screen::width):
1999         (WebCore::Screen::colorDepth):
2000         (WebCore::Screen::pixelDepth):
2001         (WebCore::Screen::availLeft):
2002         (WebCore::Screen::availTop):
2003         (WebCore::Screen::availHeight):
2004         (WebCore::Screen::availWidth):
2005         * page/Screen.h:
2006         * page/Screen.idl:
2007
2008 2007-06-18  Anders Carlsson  <andersca@apple.com>
2009
2010         Reviewed by John Sullivan.
2011
2012         <rdar://problem/5277008> Assertion in [LocationChangeHandler finishedLoadingFrame:]
2013         
2014         Don't send any frame load callbacks if the document load hasn't been
2015         committed for real.
2016         
2017         * loader/FrameLoader.cpp:
2018         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
2019
2020 2007-06-18  Sam Weinig  <sam@webkit.org>
2021
2022         Reviewed by Geoff.
2023
2024         Patch for http://bugs.webkit.org/show_bug.cgi?id=14193
2025         Move the Screen object out of the JS bindings
2026
2027         - Renames Screen.h to PlatformScreen.h to accommodate new class.
2028         - Autogenerates JSScreen.
2029
2030         * DerivedSources.make:
2031         * WebCore.pro:
2032         * WebCore.vcproj/WebCore.vcproj:
2033         * WebCore.xcodeproj/project.pbxproj:
2034         * bindings/js/kjs_window.cpp:
2035         (KJS::WindowPrivate::WindowPrivate):
2036         (KJS::Window::mark):
2037         (KJS::Window::getValueProperty):
2038         (KJS::Window::clearHelperObjectProperties):
2039         * bindings/js/kjs_window.h:
2040         (KJS::Window::):
2041         * css/MediaQueryEvaluator.cpp:
2042         * page/DOMWindow.cpp:
2043         (WebCore::DOMWindow::DOMWindow):
2044         (WebCore::DOMWindow::~DOMWindow):
2045         (WebCore::DOMWindow::frame):
2046         (WebCore::DOMWindow::disconnectFrame):
2047         (WebCore::DOMWindow::screen):
2048         * page/DOMWindow.h:
2049         * page/DOMWindow.idl:
2050         * page/Screen.cpp: Added.
2051         (WebCore::Screen::Screen):
2052         (WebCore::Screen::disconnectFrame):
2053         (WebCore::Screen::height):
2054         (WebCore::Screen::width):
2055         (WebCore::Screen::colorDepth):
2056         (WebCore::Screen::pixelDepth):
2057         (WebCore::Screen::availLeft):
2058         (WebCore::Screen::availTop):
2059         (WebCore::Screen::availHeight):
2060         (WebCore::Screen::availWidth):
2061         * page/Screen.h: Added.
2062         * page/Screen.idl: Added.
2063         * page/mac/WebCoreFrameBridge.mm:
2064         * platform/PlatformScreen.h: Copied from WebCore/platform/Screen.h.
2065         * platform/Screen.h: Removed.
2066         * platform/gdk/PlatformScreenGdk.cpp: Copied from WebCore/platform/gdk/ScreenGdk.cpp.
2067         * platform/gdk/ScreenGdk.cpp: Removed.
2068         * platform/mac/PlatformMouseEventMac.mm:
2069         * platform/mac/PlatformScreenMac.mm: Copied from WebCore/platform/mac/ScreenMac.mm.
2070         * platform/mac/ScreenMac.mm: Removed.
2071         * platform/qt/PlatformScreenQt.cpp: Added.
2072         (WebCore::WebCore::screenDepth):
2073         (WebCore::WebCore::screenDepthPerComponent):
2074         (WebCore::WebCore::screenIsMonochrome):
2075         (WebCore::WebCore::screenRect):
2076         (WebCore::WebCore::screenAvailableRect):
2077         * platform/qt/TemporaryLinkStubs.cpp:
2078         * platform/win/PlatformScreenWin.cpp: Copied from WebCore/platform/win/ScreenWin.cpp.
2079         * platform/win/ScreenWin.cpp: Removed.
2080         * rendering/RenderObject.cpp:
2081
2082 2007-06-18  Sam Weinig  <sam@webkit.org>
2083
2084         Reviewed by Geoff.
2085
2086         Patch for http://bugs.webkit.org/show_bug.cgi?id=14211
2087         Move the BarInfo object out of the JS bindings
2088
2089         * DerivedSources.make:
2090         * WebCore.pro:
2091         * WebCore.vcproj/WebCore.vcproj:
2092         * WebCore.xcodeproj/project.pbxproj:
2093         * bindings/js/kjs_window.cpp:
2094         (KJS::WindowPrivate::WindowPrivate):
2095         (KJS::Window::mark):
2096         (KJS::Window::getValueProperty):
2097         (KJS::Window::clearHelperObjectProperties):
2098         (KJS::Window::disconnectFrame):
2099         * bindings/js/kjs_window.h:
2100         (KJS::Window::):
2101         * page/BarInfo.cpp: Added.
2102         (WebCore::BarInfo::BarInfo):
2103         (WebCore::BarInfo::disconnectFrame):
2104         (WebCore::BarInfo::visible):
2105         * page/BarInfo.h: Added.
2106         (WebCore::BarInfo::):
2107         * page/BarInfo.idl: Added.
2108         * page/DOMWindow.cpp:
2109         (WebCore::DOMWindow::~DOMWindow):
2110         (WebCore::DOMWindow::disconnectFrame):
2111         (WebCore::DOMWindow::locationbar):
2112         (WebCore::DOMWindow::menubar):
2113         (WebCore::DOMWindow::personalbar):
2114         (WebCore::DOMWindow::scrollbars):
2115         (WebCore::DOMWindow::statusbar):
2116         (WebCore::DOMWindow::toolbar):
2117         * page/DOMWindow.h:
2118         * page/DOMWindow.idl:
2119
2120 2007-06-18  Sam Weinig  <sam@webkit.org>
2121
2122         Reviewed by Darin.
2123
2124         Remove the FrameArray class and instead make window.frames another
2125         self-reference for window (like window.window, window.self, etc).
2126         This is what Firefox and what the HTML5 dictates.
2127
2128         * bindings/js/kjs_window.cpp:
2129         (KJS::WindowPrivate::WindowPrivate):
2130         (KJS::Window::mark):
2131         (KJS::Window::getValueProperty):
2132         (KJS::Window::clearHelperObjectProperties):
2133         (KJS::Window::disconnectFrame):
2134         * bindings/js/kjs_window.h:
2135
2136 2007-06-18  Mitz Pettel  <mitz@webkit.org>
2137
2138         Reviewed by Adele.
2139
2140         - fix http://bugs.webkit.org/show_bug.cgi?id=13413
2141           Failed assertion in RenderTextControl::setSelectionRange in Google Spreadsheets
2142
2143         Test: fast/forms/input-zero-height-focus.html
2144
2145         * rendering/RenderTextControl.cpp:
2146         (WebCore::RenderTextControl::setSelectionRange): Avoid setting the
2147         selection in a zero-height text control.
2148
2149 2007-06-18  Alp Toker  <alp.toker@collabora.co.uk>
2150
2151         Reviewed by Sam Weinig.
2152
2153         http://bugs.webkit.org/show_bug.cgi?id=14052
2154         Implement SoundGdk
2155
2156         * WebCore.pro:
2157         * platform/gdk/SoundGdk.cpp: Added.
2158         (WebCore::systemBeep):
2159         * platform/gdk/TemporaryLinkStubs.cpp:
2160         (WebCore::systemBeep):
2161
2162 2007-06-18  Dave Hyatt  <hyatt@apple.com>
2163
2164         Add support for horizontal mouse wheeling on Windows.
2165         
2166         Reviewed by aroben
2167
2168         * platform/PlatformWheelEvent.h:
2169         * platform/win/WheelEventWin.cpp:
2170         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
2171
2172 2007-06-17  Sam Weinig  <sam@webkit.org>
2173
2174         Win32 build fix.
2175
2176         * WebCore.vcproj/WebCore.vcproj:
2177
2178 2007-06-15  David Hyatt  <hyatt@apple.com>
2179
2180         Fix for bugzilla bugs 14183 and 14184, 'repeat' regressed in border-image
2181         because of a botched 'round' support removal.  Also update for a change in
2182         the spec that has the second stretch/round/repeat keyword match the first
2183         if omitted.
2184         
2185         Reviewed by olliej
2186
2187         * css/cssparser.cpp:
2188         (WebCore::BorderImageParseContext::commitBorderImage):
2189         * platform/graphics/Image.cpp:
2190         (WebCore::Image::drawTiled):
2191         * platform/graphics/Image.h:
2192         (WebCore::Image::):
2193
2194 2007-06-15  Sam Weinig  <sam@webkit.org>
2195
2196         Reviewed by Darin.
2197
2198         Patch for http://bugs.webkit.org/show_bug.cgi?id=14053
2199         Autogenerate JS binding for Rect
2200
2201         - Renames RectImpl to Rect, DOMStyleSheetList to JSStyleSheetList 
2202           and DOMRGBColor to JSRGBColor
2203         - Moves JSStyleSheetList and JSRGBColor into the WebCore namespace.
2204
2205         * DerivedSources.make:
2206         * WebCore.pro:
2207         * WebCore.xcodeproj/project.pbxproj:
2208         * bindings/js/kjs_css.cpp:
2209         (WebCore::):
2210         (WebCore::JSStyleSheetList::JSStyleSheetList):
2211         (WebCore::JSStyleSheetList::~JSStyleSheetList):
2212         (WebCore::JSStyleSheetList::getValueProperty):
2213         (WebCore::JSStyleSheetList::indexGetter):
2214         (WebCore::JSStyleSheetList::nameGetter):
2215         (WebCore::JSStyleSheetList::getOwnPropertySlot):
2216         (WebCore::toJS):
2217         (WebCore::JSStyleSheetListFunc::callAsFunction):
2218         (WebCore::JSRGBColor::JSRGBColor):
2219         (WebCore::JSRGBColor::~JSRGBColor):
2220         (WebCore::JSRGBColor::getOwnPropertySlot):
2221         (WebCore::JSRGBColor::getValueProperty):
2222         (WebCore::getJSRGBColor):
2223         * bindings/js/kjs_css.h:
2224         (WebCore::JSStyleSheetList::classInfo):
2225         (WebCore::JSStyleSheetList::):
2226         (WebCore::JSStyleSheetList::impl):
2227         (WebCore::JSRGBColor::classInfo):
2228         (WebCore::JSRGBColor::):
2229         (WebCore::JSRGBColor::impl):
2230         * bindings/objc/DOMUtility.mm:
2231         (KJS::createDOMWrapper):
2232         * bindings/scripts/CodeGeneratorJS.pm:
2233         * bindings/scripts/CodeGeneratorObjC.pm:
2234         * css/CSSBorderImageValue.cpp:
2235         (WebCore::CSSBorderImageValue::CSSBorderImageValue):
2236         * css/CSSBorderImageValue.h:
2237         * css/CSSPrimitiveValue.cpp:
2238         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2239         (WebCore::CSSPrimitiveValue::cssText):
2240         * css/CSSPrimitiveValue.h:
2241         (WebCore::CSSPrimitiveValue::getRectValue):
2242         (WebCore::CSSPrimitiveValue::):
2243         * css/DashboardRegion.h:
2244         * css/Rect.h: Copied from css/RectImpl.h.
2245         (WebCore::Rect::~Rect):
2246         (WebCore::Rect::top):
2247         (WebCore::Rect::right):
2248         (WebCore::Rect::bottom):
2249         (WebCore::Rect::left):
2250         (WebCore::Rect::setTop):
2251         (WebCore::Rect::setRight):
2252         (WebCore::Rect::setBottom):
2253         (WebCore::Rect::setLeft):
2254         * css/Rect.idl:
2255         * css/RectImpl.h: Removed.
2256         * css/cssparser.cpp:
2257         (WebCore::CSSParser::parseShape):
2258         (WebCore::BorderImageParseContext::commitBorderImage):
2259         * css/cssstyleselector.cpp:
2260         (WebCore::CSSStyleSelector::applyProperty):
2261         * page/DOMWindow.idl:
2262
2263 2007-06-14  George Staikos  <staikos@kde.org>
2264
2265         Reviewed by Lars.
2266
2267         Implement missing tab support and a slight refactor.
2268
2269         * platform/qt/PlatformKeyboardEventQt.cpp:
2270         (WebCore::keyIdentifierForQtKeyCode):
2271         (WebCore::windowsKeyCodeForKeyEvent):
2272         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2273
2274 2007-06-14  Dave Hyatt  <hyatt@apple.com>
2275
2276         Fix for Bugzilla bug 14806, missing text for bold/italic fonts in non-English Windows installs.
2277         
2278         This patch adds an additional step after the lookup by full name fails.  It will then look up
2279         a PostScript name in a (localized full name) -> (PostScript name) cache.  If the name is not
2280         found, then the font's name table is obtained and searched for a PostScript name (and the
2281         result is cached).
2282         
2283         If lookup on PostScript name fails too, then we now properly fall back to the next font in the
2284         list (so text should never be missing).
2285
2286         Reviewed by Darin (thoroughly reviewed, super reviewed even)
2287
2288         * platform/win/FontCacheWin.cpp:
2289         * platform/win/FontPlatformDataWin.cpp:
2290
2291 2007-06-14  Anders Carlsson  <andersca@apple.com>
2292
2293         Reviewed by Geoff.
2294
2295         Add Frame::cleanupScriptObjectsForPlugin which will invalidate the root object
2296         for a given plug-in.
2297
2298         * WebCore.exp:
2299         * page/Frame.cpp:
2300         (WebCore::Frame::cleanupScriptObjectsForPlugin):
2301         * page/Frame.h:
2302
2303 2007-06-14  Anders Carlsson  <andersca@apple.com>
2304
2305         Reviewed by Geoff.
2306
2307         <rdar://problem/5211677>
2308         -[WebPreferences setJavaEnabled:] only disables java inside <applet>, not <object>
2309         
2310         * loader/FrameLoader.cpp:
2311         (WebCore::FrameLoader::requestObject):
2312         If the object is a Java MIME type and Java is disabled, don't load the plug-in.
2313         
2314         * platform/MimeTypeRegistry.cpp:
2315         (WebCore::MimeTypeRegistry::isJavaAppletMIMEType):
2316         Clean this up and add another applet MIME type.
2317
2318 2007-06-14  George Staikos  <staikos@kde.org>
2319
2320         Reviewed by Lars.
2321
2322         Implement the file chooser for Qt.
2323
2324         * platform/qt/FileChooserQt.cpp:
2325         (WebCore::FileChooser::openFileChooser):
2326         (WebCore::FileChooser::basenameForWidth):
2327
2328 2007-06-14  George Staikos  <staikos@kde.org>
2329
2330         Reviewed by Lars.
2331
2332         Add missing initialization of pointer.
2333
2334         * platform/qt/ContextMenuQt.cpp:
2335         (WebCore::ContextMenu::ContextMenu):
2336
2337 2007-06-14  Anders Carlsson  <andersca@apple.com>
2338
2339         Reviewed by Mitz.
2340
2341         <rdar://problem/5244948>
2342         Safari keeps on complaining about slow script playing NBC TV video (14133)
2343
2344         http://bugs.webkit.org/show_bug.cgi?id=14133
2345         Runaway JavaScript timer fires when spinning around in Google Maps street view
2346
2347         Make sure to start and stop the timeout checker around calls to JS.
2348
2349         * bindings/objc/WebScriptObject.mm:
2350         (-[WebScriptObject callWebScriptMethod:withArguments:]):
2351         (-[WebScriptObject evaluateWebScript:]):
2352
2353 2007-06-14  George Staikos  <staikos@kde.org>
2354
2355         Reviewed by Maciej.
2356
2357         Keypress causes typeahead crash on empty selects due to modulo 0.
2358
2359         * html/HTMLSelectElement.cpp:
2360         (WebCore::HTMLSelectElement::typeAheadFind):
2361
2362 2007-06-13  George Staikos  <staikos@kde.org>
2363
2364         Reviewed by Lars.
2365
2366         Compile without self-linking.
2367
2368         * WebCore.pro:
2369
2370 2007-06-13  Darin Adler  <darin@apple.com>
2371
2372         Reviewed by Kevin Decker.
2373
2374         - fix <rdar://problem/5264923> Safari frequently "stalls" beneath
2375           +[NSFont fontWithName:size:] while loading a web page (searching on disk for the font)
2376
2377         * platform/mac/WebFontCache.mm:
2378         (+[WebFontCache internalFontWithFamily:traits:size:]): Renamed from fontWithFamily.
2379         Took out the auto-activation code.
2380         (+[WebFontCache fontWithFamily:traits:size:]): Added. Calls internalFontWithFamily,
2381         then calls NSFont to trigger activation if that returned nil, then calls
2382         internalFontWithFamily again.
2383
2384 2007-06-13  Anders Carlsson  <andersca@apple.com>
2385
2386         Reviewed by Geoff.
2387
2388         Pass the root object to methods that end up creating new ObjcInstance objects.
2389         
2390         * bindings/objc/WebScriptObject.mm:
2391         (listFromNSArray):
2392         (-[WebScriptObject callWebScriptMethod:withArguments:]):
2393         (-[WebScriptObject evaluateWebScript:]):
2394         (-[WebScriptObject setValue:forKey:]):
2395         (-[WebScriptObject valueForKey:]):
2396         (-[WebScriptObject removeWebScriptKey:]):
2397         (-[WebScriptObject setWebScriptValueAtIndex:value:]):
2398
2399 2007-06-13  Anders Carlsson  <andersca@apple.com>
2400
2401         Reviewed by Darin.
2402
2403         <rdar://problem/5267992>
2404         Make sure an alert doesn't allow loading to continue inside a script.
2405         
2406         Make sure to defer all loads where it's possible for a second main loop to be running.
2407         
2408         * page/Chrome.cpp:
2409         (WebCore::Chrome::runModal):
2410         (WebCore::Chrome::runBeforeUnloadConfirmPanel):
2411         (WebCore::Chrome::runJavaScriptAlert):
2412         (WebCore::Chrome::runJavaScriptConfirm):
2413         (WebCore::Chrome::runJavaScriptPrompt):
2414         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
2415         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
2416         
2417         * platform/network/cf/ResourceHandleCFNet.cpp:
2418         (WebCore::ResourceHandle::setDefersLoading):
2419         Implement this.
2420
2421 2007-06-13  Alp Toker  <alp.toker@collabora.co.uk>
2422
2423         Reviewed by Rob.
2424
2425         http://bugs.webkit.org/show_bug.cgi?id=14060
2426         Cairo SVG support
2427
2428         * WebCore.pro: Add new files to the build.
2429         * platform/graphics/svg/SVGPaintServerPattern.h:
2430         * platform/graphics/svg/SVGPaintServerSolid.h:
2431         * platform/graphics/svg/cairo: Added.
2432         * platform/graphics/svg/cairo/RenderPathCairo.cpp: Added.
2433         (WebCore::RenderPath::strokeContains):
2434         (WebCore::RenderPath::strokeBBox):
2435         * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp: Added.
2436         (WebCore::SVGPaintServer::draw):
2437         (WebCore::SVGPaintServer::teardown):
2438         (WebCore::SVGPaintServer::renderPath):
2439         * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp: Added.
2440         (WebCore::SVGPaintServerGradient::setup):
2441         * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp: Added.
2442         (WebCore::SVGPaintServerPattern::setup):
2443         * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp: Added.
2444         (WebCore::SVGPaintServerSolid::setup):
2445         * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp: Added.
2446         (WebCore::SVGResourceClipper::applyClip):
2447         * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp: Added.
2448         (WebCore::SVGResourceMasker::applyMask):
2449
2450 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2451
2452         Reviewed by Lars.
2453
2454         Added a make install target that installs the Qt port and renamed
2455         WebKitQt to QtWebKit
2456
2457         * WebCore.pro:
2458
2459 2007-06-13  Adam Roben  <aroben@apple.com>
2460
2461         Fix one more BITMAPINFO/BITMAPINFOHEADER typo.
2462
2463         Rubberstamped by Oliver.
2464
2465         * platform/win/DragImageWin.cpp:
2466         (WebCore::allocImage):
2467
2468 2007-06-12  Oliver Hunt  <oliver@apple.com>
2469
2470         Reviewed by Darin.
2471
2472         Use correct size for BITMAPINFOHEADER -- whoops.
2473
2474         * platform/win/CursorWin.cpp:
2475         (WebCore::Cursor::Cursor):
2476         * platform/win/PasteboardWin.cpp:
2477         (WebCore::Pasteboard::writeImage):
2478
2479 2007-06-12  Sam Weinig  <sam@webkit.org>
2480
2481         Reviewed by Oliver.
2482
2483         Patch for http://bugs.webkit.org/show_bug.cgi?id=14109
2484         Cleanup JSEvent and JSClipboard in preperation for autogeneration
2485
2486         * bindings/js/kjs_events.cpp:
2487         (KJS::DOMEvent::DOMEvent):
2488         (KJS::DOMEvent::getValueProperty):
2489         (KJS::DOMEvent::put):
2490         (KJS::DOMEvent::putValueProperty):
2491         (KJS::DOMEventPrototypeFunction::callAsFunction):
2492         (KJS::toJS):
2493         (KJS::toEvent):
2494         (KJS::):
2495         (KJS::JSClipboard::JSClipboard):
2496         (KJS::JSClipboard::~JSClipboard):
2497         (KJS::JSClipboard::getOwnPropertySlot):
2498         (KJS::JSClipboard::getValueProperty):
2499         (KJS::JSClipboard::put):
2500         (KJS::JSClipboard::putValueProperty):
2501         (KJS::JSClipboardPrototypeFunction::callAsFunction):
2502         (KJS::toClipboard):
2503         * bindings/js/kjs_events.h:
2504         (KJS::DOMEvent::):
2505         (KJS::DOMEvent::impl):
2506         (KJS::JSClipboard::impl):
2507         * dom/ClipboardEvent.h:
2508         * dom/Event.h:
2509         (WebCore::Event::srcElement):
2510         (WebCore::Event::returnValue):
2511         (WebCore::Event::clipboardData):
2512         (WebCore::Event::dataTransfer):
2513         (WebCore::Event::clipboard):
2514         * dom/MouseEvent.h:
2515
2516 2007-06-13  Lars Knoll <lars@trolltech.com>
2517
2518         Reviewed by Niko.
2519
2520         Small cleanup
2521
2522         * platform/qt/PlugInInfoStoreQt.cpp:
2523         (WebCore::PlugInInfoStore::supportsMIMEType):
2524
2525 2007-06-13  Lars Knoll <lars@trolltech.com>
2526
2527         Reviewed by Niko
2528
2529         Implement the parts required for the JS bridge
2530         to know about the plugins.
2531
2532         * WebCore.pro:
2533         * platform/qt/PlugInInfoStoreQt.cpp: Added.
2534         (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
2535         (WebCore::PlugInInfoStore::pluginCount):
2536         (WebCore::PlugInInfoStore::supportsMIMEType):
2537         (WebCore::refreshPlugins):
2538         * platform/qt/TemporaryLinkStubs.cpp:
2539
2540 === Merged the following changes from branches/WindowsMerge ===
2541
2542 2007-06-09  Sam Weinig  <sam@webkit.org>
2543
2544         Build fix.
2545
2546         * WebCore.vcproj/WebCore.vcproj:
2547
2548 2007-06-08  Anders Carlsson  <andersca@apple.com>
2549
2550         Reviewed by Adam.
2551
2552         If both the old and new WMP plugins are present, remove the old one
2553         so we won't end up choosing it.
2554         
2555         * plugins/win/PluginDatabaseWin.cpp:
2556         (WebCore::PluginDatabaseWin::getPluginsInPaths):
2557
2558 2007-06-08  David Hyatt  <hyatt@apple.com>
2559
2560         Update licenses/copyrights for WebCoreWin.
2561
2562         Reviewed by mccullough
2563
2564         * WebCorePrefix.cpp:
2565         * bridge/win/FrameWin.cpp:
2566         * bridge/win/FrameWin.h:
2567         * bridge/win/HistoryWin.cpp:
2568         * bridge/win/PageWin.cpp:
2569         * page/win/EventHandlerWin.cpp:
2570         * platform/graphics/cg/ColorCG.cpp:
2571         * platform/graphics/cg/GraphicsContextPlatformPrivate.h:
2572         * platform/graphics/svg/cg/SVGResourceFilterCg.cpp:
2573         * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp:
2574         * platform/graphics/win/IconWin.cpp:
2575         * platform/graphics/win/ImageWin.cpp:
2576         * platform/network/cf/FormDataStreamCFNet.cpp:
2577         * platform/network/cf/FormDataStreamCFNet.h:
2578         * platform/network/cf/ResourceHandleCFNet.cpp:
2579         * platform/network/cf/ResourceRequestCFNet.cpp:
2580         * platform/network/cf/ResourceResponseCFNet.cpp:
2581         * platform/network/win/CookieJarWin.cpp:
2582         * platform/network/win/ResourceHandleWin.cpp:
2583         * platform/network/win/ResourceHandleWin.h:
2584         * platform/win/BString.cpp:
2585         * platform/win/BString.h:
2586         * platform/win/ClipboardWin.h:
2587         * platform/win/ContextMenuWin.cpp:
2588         * platform/win/CursorWin.cpp:
2589         * platform/win/EditorWin.cpp:
2590         * platform/win/FontCacheWin.cpp:
2591         * platform/win/FontDataWin.cpp:
2592         * platform/win/FontPlatformData.h:
2593         * platform/win/FontPlatformDataWin.cpp:
2594         * platform/win/FontWin.cpp:
2595         * platform/win/GlyphPageTreeNodeWin.cpp:
2596         * platform/win/GraphicsContextWin.cpp:
2597         * platform/win/KeyEventWin.cpp:
2598         * platform/win/MimeTypeRegistryWin.cpp:
2599         * platform/win/NotImplemented.h:
2600         * platform/win/PlatformMouseEventWin.cpp:
2601         * platform/win/PlatformScrollBar.h:
2602         * platform/win/PlatformScrollBarWin.cpp:
2603         * platform/win/PopupMenuWin.cpp:
2604         * platform/win/ScreenWin.cpp:
2605         * platform/win/ScrollViewWin.cpp:
2606         * platform/win/SearchPopupMenuWin.cpp:
2607         * platform/win/SoundWin.cpp:
2608         * platform/win/TemporaryLinkStubs.cpp:
2609         * platform/win/TextBoundariesWin.cpp:
2610         * platform/win/WebCoreHistory.cpp:
2611         * platform/win/WebCoreHistory.h:
2612         * platform/win/WebCoreSystemInterface.cpp:
2613         * platform/win/WebCoreSystemInterface.h:
2614         * platform/win/WheelEventWin.cpp:
2615         * platform/win/WidgetWin.cpp:
2616         * plugins/win/PlugInInfoStoreWin.cpp:
2617         * plugins/win/PluginDatabaseWin.cpp:
2618         * plugins/win/PluginDatabaseWin.h:
2619         * plugins/win/PluginDebug.h:
2620         * plugins/win/PluginPackageWin.cpp:
2621         * plugins/win/PluginPackageWin.h:
2622         * plugins/win/PluginStreamWin.cpp:
2623         * plugins/win/PluginStreamWin.h:
2624         * plugins/win/PluginViewWin.cpp:
2625         * plugins/win/PluginViewWin.h:
2626         * plugins/win/npapi.cpp:
2627         * plugins/win/npfunctions.h:
2628         * rendering/RenderThemeSafari.cpp:
2629         * rendering/RenderThemeSafari.h:
2630         * rendering/RenderThemeWin.h:
2631
2632 2007-06-07  Sam Weinig  <sam@webkit.org>
2633
2634         Fix build.
2635
2636         * WebCore.vcproj/WebCore.vcproj:
2637
2638 2007-06-07  Anders Carlsson  <andersca@apple.com>
2639
2640         Reviewed by Steve.
2641
2642         <rdar://problem/5252902>
2643         Shockwave plug-in content crashes.
2644         
2645         Add a new quirk for plug-ins that need their WNDPROCs to be ASCII. If someone uses SetWindowLongA to set the WNDPROC to an ASCII one
2646         and the previous one was an Unicode one, the value returned from SetWindowLongA (the old WNDPROC) will not be a function pointer, but instead
2647         a special value. The Win32 API CallWndProc knows that when it encounters a special value it must convert the message to Unicode. Shockwave 
2648         does not use CallWndProc but instead treats the WNDPROC as a function.
2649         
2650         * plugins/win/PluginViewWin.cpp:
2651         (WebCore::PluginViewWndProc):
2652         (WebCore::PluginViewWin::determineQuirks):
2653         (WebCore::PluginViewWin::init):
2654         * plugins/win/PluginViewWin.h:
2655         (WebCore::):
2656         (WebCore::PluginViewWin::quirks):
2657
2658 2007-06-07  Sam Weinig  <sam@webkit.org>
2659
2660         Build fix for the build fix.
2661
2662         * WebCore.vcproj/WebCore.vcproj:
2663
2664 2007-06-07  Sam Weinig  <sam@webkit.org>
2665
2666         Build fix.
2667
2668         * WebCore.vcproj/WebCore.vcproj:
2669
2670 2007-06-06  Sam Weinig  <sam@webkit.org>
2671
2672         Build fix.
2673
2674         * WebCore.vcproj/WebCore.vcproj:
2675
2676 2007-06-03  Steve Falkenburg  <sfalken@apple.com>
2677
2678         Reviewed by Oliver.
2679
2680         Update to last fix.
2681         Invalidate a list of rects rather than unioning them.
2682
2683         * plugins/win/PluginViewWin.cpp:
2684         (WebCore::PluginViewWin::invalidateTimerFired):
2685         (WebCore::PluginViewWin::invalidateRect):
2686         * plugins/win/PluginViewWin.h:
2687
2688 2007-06-03  Steve Falkenburg  <sfalken@apple.com>
2689
2690         Reviewed by Oliver.
2691
2692         <rdar://problem/5245016> 100A89+WebKit.dll: Can't select text in page location field at kids.yahoo.com
2693         
2694         Delay invalidates for windowless Flash to prevent Flash WM_PAINT and WM_USER+1 messages from
2695         starving other HWNDs.
2696         
2697         This code defers the invalidate through a WebCore::Timer.  We could have used a Windows ::SetTimer
2698         to further lessen CPU load, but this would have the additional risk of negatively impacting Flash
2699         performance, since WebCore::Timer is set up to be more responsive than ::SetTimer.
2700
2701         * plugins/win/PluginViewWin.cpp:
2702         (WebCore::PluginViewWin::invalidateTimerFired): Added.
2703         (WebCore::PluginViewWin::invalidateRect): Delay invalidates for windowless Flash.
2704         (WebCore::PluginViewWin::determineQuirks): Add delayed invalidate quirk.
2705         * plugins/win/PluginViewWin.h:
2706
2707 2007-06-02  Steve Falkenburg  <sfalken@apple.com>
2708
2709         Reviewed by Adam.
2710
2711         Update last fix to use startsWith instead of strcmpi.
2712
2713         * plugins/win/PluginStreamWin.cpp:
2714         (WebCore::PluginStreamWin::startStream):
2715         * plugins/win/PluginViewWin.cpp:
2716         (WebCore::scriptStringIfJavaScriptURL):
2717
2718 2007-06-02  Steve Falkenburg  <sfalken@apple.com>
2719
2720         Reviewed by gramps.
2721
2722         Fix http://www.tvguide.com/ "LAUNCH VIDEO & PHOTO PLAYER" button.
2723         Make "javascript" URL scheme string compare case insensitive.
2724
2725         * plugins/win/PluginStreamWin.cpp:
2726         (WebCore::PluginStreamWin::startStream): Use strcmpi.
2727         * plugins/win/PluginViewWin.cpp:
2728         (WebCore::scriptStringIfJavaScriptURL): Use strcmpi.
2729
2730 2007-06-01  Anders Carlsson  <andersca@apple.com>
2731
2732         Reviewed by Steve.
2733
2734         If the value exists but is empty, return an empty String.
2735         
2736         * plugins/win/PluginPackageWin.cpp:
2737         (WebCore::getVersionInfo):
2738
2739 2007-06-01  Anders Carlsson  <andersca@apple.com>
2740
2741         Reviewed by Steve.
2742
2743         Add the default path for the new WMP Firefox plugin.
2744
2745         * plugins/win/PluginDatabaseWin.cpp:
2746         (WebCore::addWindowsMediaPlayerPluginPath):
2747
2748 2007-05-31  Sam Weinig  <sam@webkit.org>
2749
2750         Fixed build.
2751
2752         * WebCore.vcproj/WebCore.vcproj:
2753
2754 2007-05-31  Sam Weinig  <sam@webkit.org>
2755
2756         Fixed build.
2757
2758         * WebCore.vcproj/WebCore.vcproj:
2759
2760 2007-05-30  Ada Chan  <adachan@apple.com>
2761
2762         Reviewed by Adam.
2763
2764         Fixed build.
2765
2766         * platform/win/PopupMenuWin.cpp:
2767         (WebCore::PopupMenu::itemWritingDirectionIsNatural):
2768
2769 2007-05-30  Sam Weinig  <sam@webkit.org>
2770
2771         Build Fix.
2772
2773         * WebCore.vcproj/WebCore.vcproj:
2774
2775 2007-05-29  Sam Weinig  <sam@webkit.org>
2776
2777         Fix the build.
2778
2779         * WebCore.vcproj/WebCore.vcproj:
2780
2781 2007-05-29  Anders Carlsson  <andersca@apple.com>
2782
2783         Reviewed by Adam.
2784
2785         <rdar://4782915> plugin is not in the right place at jumble.com/play.html
2786
2787         Pass the plugin window coordinates for windowed plugins too.
2788         
2789         * plugins/win/PluginViewWin.cpp:
2790         (WebCore::PluginViewWin::setNPWindowRect):
2791
2792 2007-05-29  Anders Carlsson  <andersca@apple.com>
2793
2794         Reviewed by Adam.
2795
2796         <rdar://problem/4761543> nike.com doesn't finish loading if Flash plugin is installed
2797         <rdar://problem/5131528> play button on Flash in ESPN front page does not start movie
2798         
2799         Make sure to call NPP_SetWindow right after creating the plugin, and not from the main loop. However,
2800         the WMP plugin needs to have the plugin's window coordinates set correctly when calling NPP_SetWindow so add a 
2801         quirk for that.
2802         
2803         * plugins/win/PluginViewWin.cpp:
2804         (WebCore::PluginViewWin::determineQuirks):
2805         (WebCore::PluginViewWin::init):
2806         * plugins/win/PluginViewWin.h:
2807         (WebCore::):
2808
2809 2007-05-29  Sam Weinig  <sam@webkit.org>
2810
2811         Reviewed by Adam Roben.
2812
2813         - Removes platform/win/NotImplemented.h because we have consolidated
2814           the notImplemented() for all platforms in platform/NotImplemented.h
2815         - Fixes remaining uses of old macro to use the new notImplemented() one.
2816
2817         * WebCore.vcproj/WebCore.vcproj:
2818         * page/win/EventHandlerWin.cpp:
2819         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
2820         * platform/graphics/svg/cg/SVGResourceFilterCg.cpp:
2821         (WebCore::SVGResourceFilter::prepareFilter):
2822         (WebCore::SVGResourceFilter::applyFilter):
2823         * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp:
2824         (WebCore::SVGResourceMasker::applyMask):
2825         * platform/win/GraphicsContextWin.cpp:
2826         (WebCore::contextForImage):
2827         * platform/win/NotImplemented.h: Removed.
2828         * platform/win/SearchPopupMenuWin.cpp:
2829         (WebCore::SearchPopupMenu::saveRecentSearches):
2830         (WebCore::SearchPopupMenu::loadRecentSearches):
2831         * platform/win/TemporaryLinkStubs.cpp:
2832         (Frame::print):
2833         (Frame::issueTransposeCommand):
2834         (GraphicsContextPlatformPrivate::clip):
2835         (WebCore::FrameView::updateBorder):
2836         (Widget::setIsSelected):
2837         (ScrollView::inWindow):
2838         (WebCore::focusRingColor):
2839         (WebCore::setFocusRingColorChangeFunction):
2840         (Frame::setNeedsReapplyStyles):
2841         (FrameLoader::overrideMediaType):
2842         (DocumentLoader::getResponseModifiedHeader):
2843         (ResourceHandle::willLoadFromCache):
2844         (WebCore::userIdleTime):
2845         (CachedPage::close):
2846         (WebCore::supportedKeySizes):
2847         (WebCore::signedPublicKeyAndChallengeString):
2848         * plugins/win/PluginViewWin.cpp:
2849         (WebCore::PluginViewWin::newStream):
2850         (WebCore::PluginViewWin::write):
2851         (WebCore::PluginViewWin::setValue):
2852
2853 2007-05-29  Anders Carlsson  <andersca@apple.com>
2854
2855         Build fix.
2856         
2857         * rendering/RenderThemeSafari.cpp:
2858         (WebCore::RenderThemeSafari::adjustSliderThumbStyle):
2859
2860 2007-05-29  Anders Carlsson  <andersca@apple.com>
2861
2862         Reviewed by Adam.
2863
2864         Port code from open source changeset 21808, fixing
2865         http://bugs.webkit.org/show_bug.cgi?id=13871 
2866         
2867         * rendering/RenderThemeSafari.cpp:
2868         (WebCore::RenderThemeMac::adjustSliderThumbStyle):
2869         * rendering/RenderThemeSafari.h:
2870
2871 2007-05-29  Ada Chan  <adachan@apple.com>
2872
2873         Build fix.
2874         - Added "$(ProjectDir)..\platform\win" to include paths
2875         - Added WebCore\bindings\js\JSCSSStyleDeclarationCustom.cpp to project
2876
2877         * WebCore.vcproj/WebCore.vcproj:
2878
2879 2007-05-28  Sam Weinig  <sam@webkit.org>
2880
2881         Build fix.
2882
2883         * WebCore.vcproj/WebCore.vcproj:
2884
2885 2007-05-27  Sam Weinig  <sam@webkit.org>
2886
2887         Build fix.
2888
2889         * WebCore.vcproj/WebCore.vcproj:
2890
2891 2007-05-24  Geoffrey Garen  <ggaren@apple.com>
2892
2893         Reviewed by Darin Adler.
2894
2895         Fixed a bug with Settings where a number of different objects held bare 
2896         Settings* data members, even though the Page owns the Settings object and 
2897         deletes it upon destruction.
2898
2899         Added NULL checks since the Page can be deleted before the frame/document.
2900
2901         * plugins/win/PluginViewWin.cpp:
2902         (WebCore::PluginViewWin::load):
2903
2904 2007-05-24  Sam Weinig  <sam@webkit.org>
2905
2906         Reviewed by NOBODY.
2907
2908         Build fix.
2909
2910         * WebCore.vcproj/WebCore.vcproj:
2911
2912 2007-05-24  Anders Carlsson  <andersca@apple.com>
2913
2914         Reviewed by Adam.
2915
2916         <rdar://5211882>
2917         Need to relaunch Boomer to recognize newly installed QT plug-in
2918         
2919         <rdar://5061867>
2920         After installing Flash, Safari would still not display pages that needed it
2921         
2922         * plugins/win/PluginDatabaseWin.cpp:
2923         (WebCore::PluginDatabaseWin::refresh):
2924         Return whether the plugin database changed or not.
2925         
2926         (WebCore::PluginDatabaseWin::findPlugin):
2927         New function that tries to find a plug-in given its url and MIME type.
2928         
2929         (WebCore::PluginDatabaseWin::createPluginView):
2930         If no plugin is found, refresh the database and search for the plugin again if the database changed.
2931         
2932 2007-05-24  Adele Peterson  <adele@apple.com>
2933
2934         - fix http://bugs.webkit.org/show_bug.cgi?id=13837
2935           Separator in new <select> widget disappears when block element with border is in document.
2936
2937         * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::paintMenuListButton):
2938          Added calls to set the stroke style and thickness when painting the arrows and the separator.
2939
2940 2007-05-24  Sam Weinig  <sam@webkit.org>
2941
2942         Build fix.
2943
2944         * WebCore.vcproj/WebCore.vcproj:
2945
2946 2007-05-23  Sam Weinig  <sam@webkit.org>
2947
2948         Build fix.
2949
2950         * WebCore.vcproj/WebCore.vcproj:
2951
2952 2007-05-23  Anders Carlsson  <andersca@apple.com>
2953
2954         Fix build.
2955         
2956         * platform/win/CursorWin.cpp:
2957         (WebCore::zoomInCursor):
2958         (WebCore::zoomOutCursor):
2959
2960 2007-05-22  Ada Chan  <adachan@apple.com>
2961
2962         Fix build.
2963
2964         * plugins/win/PluginViewWin.cpp:
2965         (WebCore::PluginViewWin::handleMouseEvent):
2966
2967 2007-05-22  Justin Garcia  <justin.garcia@apple.com>
2968
2969         Reviewed by oliver
2970
2971         Build fix.
2972
2973         * plugins/win/PluginViewWin.cpp:
2974         (WebCore::PluginViewWin::handleMouseEvent): 
2975
2976 2007-05-21  Sam Weinig  <sam@webkit.org>
2977
2978         Reviewed by Oliver.
2979
2980         Build fix.
2981
2982         * WebCore.vcproj/WebCore.vcproj:
2983
2984 2007-05-21  Sam Weinig  <sam@webkit.org>
2985
2986         Reviewed by Adam.
2987
2988         Build fix.
2989
2990         * WebCore.vcproj/WebCore.vcproj:
2991
2992 2007-05-17  Steve Falkenburg  <sfalken@apple.com>
2993
2994         Reviewed by Geoff, Adam.
2995
2996         Use precompiled headers (via WebCorePrefix.h) to speed up WebCoreWin builds.
2997         This improved WebCore debug rebuild time from 40 minutes to 25 for me.
2998         
2999         A few files needed to be excluded, since they didn't build properly with
3000         the prefix file: ColorData.c, CSSGrammar.cpp, HTMLEntityNames.c, XPathGrammar.cpp, XPathParser.cpp.
3001
3002         * WebCore.vcproj/WebCore.vcproj: Turn on precompiled header, force includes flags.
3003         * WebCorePrefix.cpp: Added.
3004         * WebCorePrefix.h: Added.
3005         * config.h: Modified to be compatible with WebCorePrefix.h.
3006
3007 2007-05-18  Sam Weinig  <sam@webkit.org>
3008
3009         Reviewed by Adam.
3010
3011         Fixing the vcproj paths.
3012
3013         * WebCore.vcproj/WebCore.vcproj:
3014
3015 2007-05-18  Sam Weinig  <sam@webkit.org>
3016
3017         Reviewed by Geoff.
3018
3019         Build fix after r21577.
3020
3021         * WebCore.vcproj/WebCore.vcproj:
3022
3023 2007-05-18  Adam Roben  <aroben@apple.com>
3024
3025         Build fix after r21562.
3026
3027         * platform/win/TemporaryLinkStubs.cpp:
3028         * platform/win/WidgetWin.cpp:
3029         * plugins/win/PluginViewWin.cpp:
3030         * plugins/win/PluginViewWin.h:
3031
3032 2007-05-18  Anders Carlsson  <andersca@apple.com>
3033
3034         Reviewed by Geoff.
3035         
3036         <rdar://problem/4914940> Some plugins won't redraw correctly when scrolling
3037         
3038         This patch does two things:
3039         
3040         1. It comments out the call to set the window's region to an empty region while it's being moved. This was done to prevent
3041         the QT plugin from drawing outside its bounds when scrolling it when it's inside an iframe or div with overflow.
3042         
3043         2. It lets Windows handle its invalid region when moving the window and setting its new window region.
3044         
3045         * plugins/win/PluginViewWin.cpp:
3046         (WebCore::PluginViewWin::updateWindow):
3047
3048 2007-05-18  Adam Roben  <aroben@apple.com>
3049
3050         Build fix after r21555.
3051
3052         * page/win/EventHandlerWin.cpp:
3053         (WebCore::EventHandler::passMouseMoveEventToSubframe):
3054
3055 2007-05-17  Sam Weinig  <sam@webkit.org>
3056
3057         Reviewed by Adam.
3058
3059         Build Fix after <rdar://problem/5201423>
3060
3061         * WebCore.vcproj/WebCore.vcproj:
3062
3063 2007-05-17  Adele Peterson  <adele@apple.com>
3064
3065         Reviewed by Hyatt.
3066
3067         Follow up to <rdar://problem/5092645> PopupMenuWin needs bidiReorderCharacters logic from RenderListBox
3068
3069         * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::paint):
3070           Use the clientStyle to determine how to handle bidi text.  For popup buttons, which we restrict to LTR,
3071           we will match the button text.
3072
3073 2007-05-17  Anders Carlsson  <andersca@apple.com>
3074
3075         Reviewed by Darin.
3076
3077         <rdar://problem/5210600> New WMP plugin doesn't show any contents
3078
3079         Call NPP_SetWindow after the window's size has been updated.
3080         
3081         * plugins/win/PluginViewWin.cpp:
3082         (WebCore::PluginViewWin::setFrameGeometry):
3083
3084 2007-05-17  Anders Carlsson  <andersca@apple.com>
3085
3086         Reviewed by John.
3087
3088         <rdar://problem/5204016> Repro crash on nytimes.com in MimeTypeRegistry::getMIMETypeForExtension
3089         
3090         Return null if the extension is null.
3091         
3092         * platform/win/MimeTypeRegistryWin.cpp:
3093         (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
3094
3095 2007-05-16  Adele Peterson  <adele@apple.com>
3096
3097         Reviewed by Hyatt.
3098
3099         Fix for:
3100             <rdar://problem/5092645> PopupMenuWin needs bidiReorderCharacters logic from RenderListBox
3101             <rdar://problem/5205654> Select popup menus should always be ltr to match the mac
3102
3103         * platform/win/PopupMenuWin.cpp:
3104         (WebCore::PopupMenu::show): Remove special cases for RTL menus, since we are always going to left align.
3105         (WebCore::PopupMenu::calculatePositionAndSize): ditto.
3106         (WebCore::PopupMenu::paint): Added call to bidiReorderCharacters.
3107
3108 2007-05-14  Oliver Hunt  <oliver@apple.com>
3109
3110         Reviewed by Sam.
3111
3112         Fix for <rdar://problem/5147895> REGRESSION: Content-Disposition: filename is ignored for drag-and-drop.
3113
3114         If the image does not already have a title, fall back to the 
3115         name suggested by Content-Disposition.
3116
3117         * platform/win/ClipboardWin.cpp:
3118         (WebCore::createGlobalImageFileDescriptor):
3119
3120 2007-05-14  Oliver Hunt  <oliver@apple.com>
3121
3122         Reviewed by Sam.
3123
3124         Fix for <rdar://problem/5202805> Null dereference in createGlobalData(CString str)
3125         
3126         Null terminate manually to prevent us from dereferencing null.
3127
3128         * platform/win/ClipboardUtilitiesWin.cpp:
3129         (WebCore::createGlobalData):
3130
3131 2007-05-14  Oliver Hunt  <oliver@apple.com>
3132
3133         Reviewed by Geoff.
3134
3135         Windows side of fix for
3136         <rdar://problem/4728842> Can't drag-and-drop files onto <input type="file">
3137
3138         * platform/win/ClipboardUtilitiesWin.cpp:
3139         (WebCore::cfHDropFormat):
3140           Need to be able to access externally
3141           
3142         * platform/win/ClipboardUtilitiesWin.h:
3143           Declare cfHDropFormat
3144           
3145         * platform/win/DragDataWin.cpp:
3146         (WebCore::DragData::containsFiles):
3147         (WebCore::DragData::asFilenames):
3148           Add implementation of containsFiles and asFilenames
3149
3150 2007-05-14  Geoffrey Garen  <ggaren@apple.com>
3151
3152         Build fix.
3153
3154         * WebCore.vcproj/WebCore.vcproj:
3155
3156 2007-05-14  Anders Carlsson  <andersca@apple.com>
3157
3158         Reviewed by Geoff.
3159
3160         <rdar://problem/5176940> Seed10: MS Silverlight 1.0 beta plug-in is not supported
3161         
3162         * plugins/win/PluginDatabaseWin.cpp:
3163         (WebCore::addPluginsFromRegistry):
3164         New function that adds plugins from the registry from HKEY_LOCAL_MACHINE/MozillaPlugins.
3165
3166         * plugins/win/PluginViewWin.cpp:
3167         (WebCore::PluginViewWin::invalidateRect):
3168         (WebCore::PluginViewWin::forceRedraw):
3169         Make these work with windowed plugins.
3170         
3171 2007-05-13  Darin Adler  <darin@apple.com>
3172
3173         Requested by Hyatt.
3174
3175         - internal part of http://bugs.webkit.org/show_bug.cgi?id=13529
3176           DOM3 keyIdentifier text is incorrect
3177
3178         * platform/win/KeyEventWin.cpp:
3179         (WebCore::keyIdentifierForWindowsKeyCode): Use 4 digits for "U+" stuff.
3180
3181 2007-05-12  Oliver Hunt  <oliver@apple.com>
3182
3183         rs=hyatt.
3184
3185         Stubs to prevent build bustage
3186
3187         * platform/win/DragDataWin.cpp:
3188         (WebCore::DragData::containsFiles):
3189         (WebCore::DragData::asFilenames):
3190
3191 2007-05-11  Darin Adler  <darin@apple.com>
3192
3193         * WebCore.vcproj/WebCore.vcproj: Added new RenderWordBreak.cpp/h files.
3194
3195 2007-05-10  Adele Peterson  <adele@apple.com>
3196
3197         Reviewed by Hyatt.
3198
3199         * bridge/win/FrameWin.cpp:
3200         (WebCore::imageFromSelection): Updated to use selectionRect instead of visibleSelectionRect
3201         
3202 2007-05-08  Steve Falkenburg  <sfalken@apple.com>
3203
3204         Rubber-stamped by Geoff.
3205
3206         Moved shared EditorWin code to Editor.cpp in open source.
3207
3208         * platform/win/EditorWin.cpp: Deleted (moved) most of this file.
3209
3210 2007-05-08  Steve Falkenburg  <sfalken@apple.com>
3211
3212         Reviewed by Darin, Oliver.
3213
3214         Removed localized string stubs.
3215
3216         * platform/win/TemporaryLinkStubs.cpp:
3217
3218 2007-05-08  Steve Falkenburg  <sfalken@apple.com>
3219
3220         Reviewed by Ada.
3221
3222         Updated for new editor interface.
3223
3224         * platform/win/EditorWin.cpp:
3225         (WebCore::Editor::advanceToNextMisspelling):
3226         (WebCore::isRangeUngrammatical):
3227
3228 2007-05-07  Alice Liu  <alice.liu@apple.com>
3229
3230         Reviewed by Oliver.
3231
3232         Fixed <rdar://5087119> Paste fidelity isn't as good as it is on the mac
3233         and <rdar://5087118> Plain text copy/paste yields bad line endings on Boomer
3234         and re-organized standalone functions in DragDataWin.cpp and PasteboardWin.cpp
3235         into ClipboardUtilitiesWin.h/cpp.
3236
3237         * WebCore.vcproj/WebCore.vcproj:
3238         * platform/win/ClipboardUtilitiesWin.cpp: Added.
3239         (WebCore::cfHDropFormat):
3240         (WebCore::getWebLocData):
3241         (WebCore::extractURL):
3242         (WebCore::texthtmlFormat):
3243         (WebCore::createGlobalData):
3244         (WebCore::markupToCF_HTML):
3245         (WebCore::urlToMarkup):
3246         (WebCore::replaceNewlinesWithWindowsStyleNewlines):
3247         (WebCore::replaceNBSPWithSpace):
3248         (WebCore::urlWFormat):
3249         (WebCore::urlFormat):
3250         (WebCore::plainTextFormat):
3251         (WebCore::plainTextWFormat):
3252         (WebCore::filenameWFormat):
3253         (WebCore::filenameFormat):
3254         (WebCore::htmlFormat):
3255         (WebCore::getURL):
3256         (WebCore::getPlainText):
3257         (WebCore::fragmentFromFilenames):
3258         (WebCore::containsFilenames):
3259         (WebCore::fragmentFromCF_HTML):
3260         (WebCore::fragmentFromHTML):
3261         (WebCore::containsHTML):
3262         * platform/win/ClipboardUtilitiesWin.h: Added.
3263         * platform/win/ClipboardWin.cpp:
3264         (WebCore::ClipboardWin::writeRange):
3265         * platform/win/DragDataWin.cpp:
3266         * platform/win/PasteboardWin.cpp:
3267         (WebCore::Pasteboard::writeSelection):
3268         (WebCore::Pasteboard::documentFragment):
3269
3270 2007-05-04  Steve Falkenburg  <sfalken@apple.com>
3271
3272         Reviewed by Darin.
3273
3274         Fix crash when using "check spelling while typing".
3275
3276         * WebCore.vcproj/WebCore.vcproj: Added TextBreakIteratorInternalICUWin.cpp
3277         * platform/win/TemporaryLinkStubs.cpp: Removed findSentenceBoundary, findNextSentenceFromIndex.
3278
3279 2007-05-04  Alice Liu  <alice.liu@apple.com>
3280
3281         Reviewed by Darin.
3282
3283         changed use of DeprecatedString::fromUTF8 to UTF8Encoding().decode()
3284
3285         * platform/win/DragDataWin.cpp:
3286         (WebCore::fragmentFromHTML):
3287         * platform/win/PasteboardWin.cpp:
3288         (WebCore::Pasteboard::documentFragment):
3289
3290 2007-05-03  Steve Falkenburg  <sfalken@apple.com>
3291
3292         Reviewed by Ada, Oliver.
3293
3294         Checkpoint:
3295         <rdar://problem/4602372> Spelling
3296         <rdar://problem/4769763> Spell checking engine support
3297
3298         * platform/win/EditorWin.cpp:
3299         (WebCore::findFirstBadGrammarInRange): Account for start offset when reporting bad grammar range (fixed my porting mistake).
3300         (WebCore::Editor::advanceToNextMisspelling): Include user description with spelling error.
3301         (WebCore::isRangeUngrammatical): Include user description with spelling error.
3302
3303 2007-05-03  Alice Liu  <alice.liu@apple.com>
3304
3305         Reviewed by Oliver.
3306
3307         Fixed <rdar://5181466> HTML formatted clipboard data is not converted from UTF8 when pasted
3308
3309         * platform/win/DragDataWin.cpp:
3310         (WebCore::fragmentFromHTML):
3311         * platform/win/PasteboardWin.cpp:
3312         (WebCore::fragmentFromCF_HTML):
3313         (WebCore::Pasteboard::documentFragment):
3314
3315 2007-05-03  Oliver Hunt  <oliver@apple.com>
3316
3317         Reviewed by Steve
3318
3319         Fix misuse of GlobalLock.
3320
3321         * platform/win/PasteboardWin.cpp:
3322         (WebCore::createGlobalData):
3323
3324 2007-05-03  Oliver Hunt  <oliver@apple.com>
3325
3326         Reviewed by Steve.
3327
3328         Add logic to draw underlines for grammar and spelling errors.
3329         (rdar://problem/4769832)
3330
3331         * platform/win/GraphicsContextWin.cpp:
3332         (WebCore::spellingPatternColor):
3333         (WebCore::grammarPatternColor):
3334           Can't define global const with constructor so use function scoped globals instead.
3335         (WebCore::setCGStrokeColor):
3336           Utility function pulled over from GraphicsContextCG          
3337         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
3338         
3339         * platform/win/TemporaryLinkStubs.cpp:
3340           Remove old drawLineForMisspellingOrBadGrammar stub
3341
3342 2007-05-01  Steve Falkenburg  <sfalken@apple.com>
3343
3344         Reviewed by Oliver.
3345
3346         Fix crash when retrieving title of context menu after it has been selected.
3347         Necessary to get spelling corrections code working.
3348
3349         * platform/win/ContextMenuWin.cpp:
3350         (WebCore::ContextMenu::itemWithAction): menu item info fType is a set of flags, MFT_STRING is 0, so we need to or off flags before comparing.
3351
3352 2007-04-29  Adam Roben  <aroben@apple.com>
3353
3354         Build fix after r21183.
3355
3356         * WebCore.vcproj/WebCore.vcproj: Added LayoutState.(h|cpp).
3357
3358 2007-04-29  Oliver Hunt  <oliver@apple.com>
3359
3360         Reviewed by Steve.
3361
3362         Fix for <rdar://problem/5126393> REGRESSION (r19672-19697): Safari drag image drags at original size (13261)
3363  
3364         Prevent build bustage from opensource changes, correct scaling
3365
3366         * platform/win/DragImageWin.cpp:
3367         (WebCore::scaleDragImage):
3368
3369 2007-04-24  Steve Falkenburg  <sfalken@apple.com>
3370
3371         Reviewed by Darin, Oliver.
3372
3373         Checkpoint:
3374         <rdar://problem/4602372> Spelling
3375         <rdar://problem/4769763> Spell checking engine support
3376         
3377         Ported code from EditorMac.mm into EditorWin.cpp.
3378         Once this works, I'll move this code into Editor.cpp and remove it
3379         form EditorMac.mm.
3380
3381         * platform/win/EditorWin.cpp:
3382         (WebCore::Editor::ignoreSpelling):
3383         (WebCore::Editor::learnSpelling):
3384         (WebCore::findFirstMisspellingInRange):
3385         (WebCore::paragraphAlignedRangeForRange):
3386         (WebCore::findFirstGrammarDetailInRange):
3387         (WebCore::findFirstBadGrammarInRange):
3388         (WebCore::Editor::advanceToNextMisspelling):
3389         (WebCore::Editor::isSelectionMisspelled):
3390         (WebCore::isRangeUngrammatical):
3391         (WebCore::Editor::isSelectionUngrammatical):
3392         (WebCore::Editor::guessesForUngrammaticalSelection):
3393         (WebCore::Editor::guessesForMisspelledSelection):
3394         (WebCore::Editor::showSpellingGuessPanel):
3395         (WebCore::Editor::spellingPanelIsShowing):
3396         (WebCore::Editor::markMisspellingsAfterTypingToPosition):
3397         (WebCore::markAllMisspellingsInRange):
3398         (WebCore::markAllBadGrammarInRange):
3399         (WebCore::markMisspellingsOrBadGrammar):
3400         (WebCore::Editor::markMisspellings):
3401         (WebCore::Editor::markBadGrammar):
3402         * platform/win/TemporaryLinkStubs.cpp:
3403
3404 2007-04-23  Anders Carlsson  <andersca@apple.com>
3405
3406         Reviewed by Ada.
3407
3408         <rdar://problem/5061022>
3409         REGRESSION: Acrobat 8 plug-in fails to scroll with trackpad two-finger scroll or mouse wheel (12995)
3410         
3411         * page/win/EventHandlerWin.cpp:
3412         (WebCore::EventHandler::passWheelEventToWidget):
3413         Get rid of passWheelEventToSubframe and pass wheel events to all widgets.
3414
3415 2007-04-23  Adam Roben  <aroben@apple.com>
3416
3417         Build fix.
3418
3419         * page/win/EventHandlerWin.cpp: Removed passWheelEventToSubframe.
3420
3421 2007-04-20  Beth Dakin  <bdakin@apple.com>
3422
3423         Reviewed by Adam.
3424
3425         Fix for <rdar://problem/5089822> Boomer does not send scroll events
3426
3427         * platform/win/ScrollViewWin.cpp:
3428         (WebCore::ScrollView::ScrollViewPrivate::valueChanged):
3429
3430 2007-04-19  Adam Roben  <aroben@apple.com>
3431
3432         * WebCore.vcproj/WebCore.vcproj: Removed empty filter.
3433
3434 2007-04-19  Adam Roben  <aroben@apple.com>
3435
3436         * WebCore.vcproj/WebCore.vcproj: Removed unused files.
3437
3438 2007-04-18  Adam Roben  <aroben@apple.com>
3439
3440         Reviewed by Oliver.
3441
3442         Added an equality operator to COMPtr.
3443
3444         * platform/win/COMPtr.h:
3445         (operator==):
3446         (operator!=):
3447
3448 2007-04-18  Oliver Hunt  <oliver@apple.com>
3449
3450         Reviewed by Geoff.
3451
3452         Allow images to be dragged from page and dropped as files.
3453         This is the remainder of the fix for <rdar://problem/5035948> 
3454           -- Dragging image or link from boomer doesn't create webloc 
3455              or image file.
3456
3457         * platform/win/ClipboardWin.cpp:
3458         (WebCore::filesystemPathFromUrlOrTitle):
3459           Make name generation nicer, and better match Firefox
3460         
3461         (WebCore::createGlobalURLContent):
3462           rename function
3463         
3464         (WebCore::createGlobalImageFileContent):
3465           Copies image data into global store
3466         
3467         (WebCore::createGlobalUrlFileDescriptor):
3468           Rename function
3469           Updated for parameter change on filesystemPathFromUrlOrTitle
3470         
3471         (WebCore::createGlobalImageFileDescriptor):
3472           Set up file descriptor for image drag
3473         
3474         (WebCore::getCachedImage):
3475           Helper function
3476         
3477         (WebCore::writeImageToDataObject):
3478           Attempts to build and insert data for image->file drag
3479         
3480         (WebCore::ClipboardWin::declareAndWriteDragImage):
3481           Attempts to build and insert data for image->file drag
3482         
3483         (WebCore::ClipboardWin::writeURL):
3484           Add call to imageDataToDataObject
3485
3486 2007-04-17  Adam Roben  <aroben@apple.com>
3487
3488         Rubberstamped by Oliver.
3489
3490         * platform/network/cf/ResourceHandleCFNet.cpp: Removed an unnecessary
3491         include.
3492
3493 2007-04-17  Oliver Hunt  <oliver@apple.com>
3494
3495         Whoops, had code commented out from manual failure test.
3496         Also fixed date of previous changelog entry
3497
3498         * platform/win/ClipboardWin.cpp:
3499         (WebCore::writeFileToDataObject):
3500
3501 2007-04-17  Oliver Hunt  <oliver@apple.com>
3502
3503         Reviewed by Ada.
3504
3505         Partial fix for <rdar://problem/5035948> -- Dragging image 
3506         or link from boomer doesn't create webloc or image file.
3507         
3508         Add all the ground work to set up FileDescriptors and FileContent
3509         for allowing files to be created from drag and drop actions,
3510         and hook up logic for links to create WebLoc data for drag and drop.
3511
3512         * platform/win/ClipboardWin.cpp:
3513         (WebCore::fileDescriptorFormat):
3514         (WebCore::fileContentFormat):
3515           Clipboard formats 
3516           
3517         (WebCore::pathRemoveBadFSCharacters):
3518         (WebCore::filesystemPathFromUrlOrTitle):
3519           Helper functions for create filenames
3520           
3521         (WebCore::createGlobalDataForURLContent):
3522           Create the WebLoc content
3523           
3524         (WebCore::createGlobalDataForUrlFileDescriptor):
3525           Create a file descriptor for the WebLoc data
3526           
3527         (WebCore::writeFileToDataObject):
3528           Basic helper function to push generated file info
3529           into the target DataObject
3530           
3531         (WebCore::ClipboardWin::writeURL):
3532           Now puts WebLoc file onto the Clipboard
3533
3534 2007-04-16  Adam Roben  <aroben@apple.com>
3535
3536         Reviewed by Adele.
3537
3538         Fix <rdar://problem/5002577> Focus ring SPI in GraphicsContextWin.cpp
3539         needs to move to WebKitSystemInterface
3540
3541         * platform/win/GraphicsContextWin.cpp:
3542         (WebCore::GraphicsContext::drawFocusRing): Use wkDrawFocusRing.
3543
3544 2007-04-14  Adam Roben  <aroben@apple.com>
3545
3546         * WebCore.vcproj/WebCore.submit.sln: Use the Debug_Internal
3547         configuration.
3548
3549 2007-04-14  Adam Roben  <aroben@apple.com>
3550
3551         Small correctness fix that is needed for building OpenSource.
3552
3553         * platform/win/PopupMenuWin.cpp: Use RenderTheme instead of RenderThemeWin.
3554
3555 2007-04-13  Adam Roben  <aroben@apple.com>
3556
3557         Reviewed by Tim.
3558
3559         Sync our config.h with the OpenSource version so we can merge ours in
3560         later.
3561
3562         * config.h: Added #defines from the OpenSource version, moved
3563         Windows-specific defines inside #if PLATFORM(WIN[_OS]), and got rid
3564         of assert.h
3565         * platform/win/CursorWin.cpp:
3566         (WebCore::Cursor::Cursor): Use ASSERT instead of assert.
3567
3568 2007-04-13  Adam Roben  <aroben@apple.com>
3569
3570         Rubberstamped by Tim.
3571
3572         Removed the loader/win directory since it only contains empty files.
3573
3574         * WebCore.vcproj/WebCore.vcproj: Removed empty files.
3575         * loader/win/FrameLoaderWin.cpp: Removed.
3576         * loader/win/ResourceLoaderWin.cpp: Removed.
3577
3578 2007-04-12  Adam Roben  <aroben@apple.com>
3579
3580         Rubberstamped by Steve.
3581
3582         Removed unused file.
3583
3584         * WebCore.vcproj/WebCore.sln: Removed.
3585
3586 2007-04-12  Adam Roben  <aroben@apple.com>
3587
3588         Didn't mean to commit this.
3589
3590         * WebCore.vcproj/WebCore.vcproj:
3591
3592 2007-04-12  Adam Roben  <aroben@apple.com>
3593
3594         Reviewed by Steve.
3595
3596         <rdar://problem/5131565> Need to be able to use debug WebKit with
3597         release Safari.
3598
3599         * WebCore.vcproj/WebCore.vcproj:
3600         * WebCore.vcproj/debug.vsprops:
3601         * WebCore.vcproj/debug_internal.vsprops: Added.
3602         * WebCore.vcproj/release.vsprops:
3603
3604 2007-04-11  Adam Roben  <aroben@apple.com>
3605
3606         Reviewed by Tim.
3607
3608         Get rid of FrameViewWin.cpp, since it's empty.
3609
3610         * WebCore.vcproj/WebCore.vcproj:
3611         * bridge/win/FrameViewWin.cpp: Removed.
3612
3613 2007-04-11  Adam Roben  <aroben@apple.com>
3614
3615         Reviewed by Anders.
3616
3617         Update for changes to Pasteboard.
3618
3619         * platform/win/PasteboardWin.cpp:
3620         (WebCore::Pasteboard::writeImage):
3621
3622 2007-04-10  Brady Eidson  <beidson@apple.com>
3623
3624         Reviewed by Darin
3625
3626         <rdar://problem/4887095> - PageCache and PageState should be combined
3627
3628         Changed a TemporaryLinkStub and updated the project file
3629
3630         * WebCore.vcproj/WebCore.vcproj:
3631         * platform/win/TemporaryLinkStubs.cpp:
3632         (CachedPage::close):
3633
3634 2007-04-10  John Sullivan  <sullivan@apple.com>
3635
3636         * platform/win/TemporaryLinkStubs.cpp:
3637         (WebCore::Editor::markBadGrammar):
3638         Keep build going: added stub for this new method
3639
3640 2007-04-10  Anders Carlsson  <andersca@apple.com>
3641
3642         Reviewed by Adam.
3643
3644         <rdar://problem/5056988>
3645         Can not open player on http://radioalice.com
3646
3647         Fix scriptStringIfJavaScriptURL to not use the path of the URL. This would ignore any characters past 
3648         a '?' character because that would be parsed as the query part of the URL.
3649         
3650         * plugins/win/PluginViewWin.cpp:
3651         (WebCore::scriptStringIfJavaScriptURL):
3652         Make this be more like the mac, chopping off the first 12 characters ("javascript:") 
3653         and then decoding the remaining characters.
3654
3655 2007-04-10  Anders Carlsson  <acarlsson@apple.com>
3656
3657         * plugins/win/PluginViewWin.cpp:
3658         (WebCore::PluginViewWin::PluginViewWin):
3659         Initialize m_status.
3660
3661 2007-04-09  Anders Carlsson  <acarlsson@apple.com>
3662
3663         Reviewed by Adam.
3664
3665         <rdar://problem/5062624>
3666         No prompt to install QT for pages with uninstalled QT plug-in.
3667         
3668         Add a status() accessor to PluginViewWin. This can be used by WebKit to find out if the plug-in
3669         loaded successfully or not.
3670         
3671         * plugins/win/PluginViewWin.cpp:
3672         (WebCore::PluginViewWin::PluginViewWin):
3673         (WebCore::PluginViewWin::init):
3674         * plugins/win/PluginViewWin.h:
3675         (WebCore::):
3676         (WebCore::PluginViewWin::status):
3677
3678 2007-04-09  Brady Eidson  <beidson@apple.com>
3679
3680         Build fix
3681
3682         * plugins/win/PluginViewWin.cpp:
3683         (WebCore::PluginViewWin::performRequest): assume userGesture is true
3684
3685 2007-04-09  Adam Roben  <aroben@apple.com>
3686
3687         Build fix.
3688
3689         * platform/win/PasteboardWin.cpp:
3690         (WebCore::Pasteboard::writeImage):
3691
3692 2007-04-08  Adam Roben  <aroben@apple.com>
3693
3694         Reviewed by Oliver.
3695
3696         Stubbed out Frame::dashboardRegionsChanged now that it's not
3697         Mac-specific.
3698
3699         * bridge/win/FrameWin.cpp:
3700         (WebCore::Frame::dashboardRegionsChanged):
3701
3702 2007-04-06  Oliver Hunt  <oliver@apple.com>
3703
3704         Reviewed by Adam.
3705
3706         Fix for rdar://problem/5097227 Can't drag Flash-based 
3707         scrollbar on mtv.com
3708         
3709         The problem was when creating a mouse move event for the 
3710         plugin we weren't passing on the mouse button state.  
3711         
3712         The opensource side&nb