Fixes in the XML tokenizer when using QXmlStream.
[WebKit-https.git] / WebCore / ChangeLog
1 2007-10-31  Lars Knoll  <lars@trolltech.com>
2
3         Reviewed by Simon.
4
5         Fixes in the XML tokenizer when using QXmlStream.
6         
7         Use new functionality of QXmlStream in Qt 4.4 to simplify
8         the code (but keep the old code for now to still support Qt 4.3).
9         
10         Add proper support for namespace handling when parsing into
11         a document fragment.
12
13         * dom/XMLTokenizer.cpp:
14         (WebCore::XMLTokenizer::XMLTokenizer):
15         (WebCore::XMLTokenizer::write):
16         (WebCore::XMLTokenizer::startElementNs):
17         (WebCore::):
18         * dom/XMLTokenizer.h:
19
20 2007-10-31  Lars Knoll  <lars@trolltech.com>
21
22         Reviewed by Simon.
23
24         add support for dragging images.
25
26         WARNING: NO TEST CASES ADDED OR CHANGED
27
28         * platform/DragImage.h:
29         * platform/qt/ClipboardQt.cpp:
30         (WebCore::ClipboardQt::clearData):
31         (WebCore::ClipboardQt::setDragImage):
32         (WebCore::ClipboardQt::setDragImageElement):
33         (WebCore::ClipboardQt::createDragImage):
34         (WebCore::getCachedImage):
35         (WebCore::ClipboardQt::declareAndWriteDragImage):
36         * platform/qt/ClipboardQt.h:
37
38 2007-10-31  Lars Knoll  <lars@trolltech.com>
39
40         Reviewed by Simon.
41
42         fix most of the issues I found with Clipboard and DnD.
43
44         WARNING: NO TEST CASES ADDED OR CHANGED
45
46         * editing/qt/EditorQt.cpp:
47         * platform/qt/ClipboardQt.cpp:
48         (WebCore::ClipboardQt::ClipboardQt):
49         (WebCore::ClipboardQt::~ClipboardQt):
50         (WebCore::ClipboardQt::clearData):
51         (WebCore::ClipboardQt::clearAllData):
52         (WebCore::ClipboardQt::getData):
53         (WebCore::ClipboardQt::setData):
54         (WebCore::ClipboardQt::types):
55         (WebCore::ClipboardQt::setDragImage):
56         (WebCore::ClipboardQt::setDragImageElement):
57         (WebCore::ClipboardQt::declareAndWriteDragImage):
58         (WebCore::ClipboardQt::writeURL):
59         (WebCore::ClipboardQt::writeRange):
60         (WebCore::ClipboardQt::hasData):
61         * platform/qt/ClipboardQt.h:
62         * platform/qt/DragDataQt.cpp:
63         (WebCore::DragData::asURL):
64
65 2007-10-30  Mark Rowe  <mrowe@apple.com>
66
67         Fix the Gtk and Qt builds by stubbing out PlatformKeyboardEvent::currentCapsLockState.
68
69         * platform/gtk/KeyEventGtk.cpp:
70         (WebCore::PlatformKeyboardEvent::currentCapsLockState):
71         * platform/qt/PlatformKeyboardEventQt.cpp:
72         (WebCore::PlatformKeyboardEvent::currentCapsLockState):
73
74 2007-10-31  Alexey Proskuryakov  <ap@webkit.org>
75
76         Reviewed by Anders.
77
78         http://bugs.webkit.org/show_bug.cgi?id=15762
79         XSLStylesheet loads subresources from a wrong URL
80
81         Covered by corrected existing tests.
82
83         * xml/XSLStyleSheet.cpp:
84         (WebCore::XSLStyleSheet::parseString): Pass stylesheet URL, not
85         the document one.
86
87 2007-10-31  Alexey Proskuryakov  <ap@webkit.org>
88
89         Reviewed by Darin.
90
91         http://bugs.webkit.org/show_bug.cgi?id=10818
92         String::append does 2 full copies instead of 1 (or zero!)
93
94         No change in functionality, thus no test.
95
96         * platform/String.cpp:
97         (WebCore::String::append): Rewrote to copy once. Also removed an ancient
98         FIXME that doesn't seem to make any sense. Note that append() behavior doesn't 
99         match documented String behavior ("modifications to one instance will
100         also modify all others"), but there are a lot of methods that don't.
101
102 2007-10-31  Adam Roben  <aroben@apple.com>
103
104         Windows build fix
105
106         * WebCore.vcproj/WebCore.vcproj: Add [JS]ProgressEvent.{cpp,h} files.
107
108 2007-10-30  Adam Roben  <aroben@apple.com>
109
110         Windows build fixes
111
112         I'm not completely sure why these const issues weren't caught by GCC,
113         but MSVC was certainly not happy with them.
114
115         * editing/IndentOutdentCommand.cpp:
116         (WebCore::isIndentBlockquote):
117         * editing/markup.cpp:
118         (WebCore::styleFromMatchedRulesAndInlineDecl):
119
120 2007-10-30  David Hyatt  <hyatt@apple.com>
121
122         transition-property was defaulting to all when it should default to none.  
123
124         It was taking a string type.  I figured out how to make it take an ident instead, so you can write:
125
126         transition-property: opacity
127
128         instead of
129
130         transition-property: "opacity"
131
132         Transition layers also weren't properly repeating patterns the way they were supposed to.  I fixed that.
133
134         Finally, I fixed a bug in the code to fix up transition layers where something was misplaced that should have been inside a null check.
135
136         Reviewed by aroben
137
138         * css/CSSHelper.h:
139         * css/CSSParser.cpp:
140         (WebCore::CSSParser::parseTransitionProperty):
141         * css/CSSStyleSelector.cpp:
142         (WebCore::CSSStyleSelector::adjustRenderStyle):
143         * page/AnimationController.cpp:
144         (WebCore::ImplicitAnimation::animate):
145         * rendering/RenderStyle.cpp:
146         (WebCore::RenderStyle::adjustTransitions):
147         * rendering/RenderStyle.h:
148         (WebCore::RenderStyle::initialTransitionProperty):
149
150 2007-10-30  Antti Koivisto  <antti@apple.com>
151
152         Reviewed by Geoff.
153
154         Leak fix
155
156         * platform/graphics/mac/MoviePrivateQTKit.mm:
157         (WebCore::MoviePrivate::getSupportedTypes):
158
159 2007-10-30  Dan Bernstein  <mitz@apple.com>
160
161         Reviewed by Stephanie Lewis.
162
163         - fix <rdar://problem/5547237> REGRESSION (304-ToT): Repro font-related crash in fontdatawin.cpp Line 93 (many sites)
164
165         * platform/win/FontDataWin.cpp:
166         (WebCore::FontData::platformInit): Handle the case where the font has no
167         glyphs on page zero.
168
169 2007-10-30  David Hyatt  <hyatt@apple.com>
170
171         Make sure CSS transforms can be animated using the CSS transition property.
172
173         Reviewed by Dan and Antti
174
175         * css/CSSStyleSelector.cpp:
176         (WebCore::CSSStyleSelector::applyProperty):
177         * page/AnimationController.cpp:
178         (WebCore::blendFunc):
179         (WebCore::ImplicitAnimation::animate):
180         * rendering/Length.h:
181         (WebCore::Length::blend):
182         * rendering/RenderStyle.cpp:
183         (WebCore::StyleTransformData::operator==):
184         (WebCore::TransformOperations::operator==):
185         (WebCore::blendLengths):
186         (WebCore::ScaleTransformOperation::blend):
187         (WebCore::RotateTransformOperation::blend):
188         (WebCore::SkewTransformOperation::blend):
189         (WebCore::TranslateTransformOperation::blend):
190         (WebCore::MatrixTransformOperation::blend):
191         * rendering/RenderStyle.h:
192         (WebCore::TransformOperations::operator!=):
193         (WebCore::TransformOperations::isEmpty):
194         (WebCore::TransformOperations::size):
195         (WebCore::TransformOperations::operator[]):
196         (WebCore::TransformOperations::append):
197         (WebCore::RenderStyle::transform):
198         (WebCore::RenderStyle::setTransform):
199         (WebCore::RenderStyle::initialTransform):
200
201 2007-10-30  Antti Koivisto  <antti@apple.com>
202
203         Another Qt/GTK build fix.
204
205         * bindings/js/JSHTMLElementWrapperFactory.cpp:
206
207 2007-10-30  Antti Koivisto  <antti@apple.com>
208
209         Attempt to fix Qt/GTK build.
210
211         * WebCore.pro:
212
213 2007-10-30  Justin Garcia  <justin.garcia@apple.com>
214
215         Reviewed by Darin Adler.
216
217         <rdar://problem/5549929> CrashTracer: [USER] 35 crashes at WebCore::CharacterData::insertData
218         
219         We were trying to insert a tab into a br, after the br incorrectly ended up inside
220         a tab span.
221         
222         * editing/DeleteButtonController.cpp: 
223         (WebCore::isDeletableElement): Changed to take in a const Node* instead of a Node*.
224         * editing/DeleteSelectionCommand.cpp:
225         (WebCore::isTableRow): Ditto.
226         * editing/IndentOutdentCommand.cpp:
227         (WebCore::isIndentBlockquote): Ditto.
228         (WebCore::isListOrIndentBlockquote): Ditto.
229         * editing/InsertLineBreakCommand.cpp:
230         (WebCore::InsertLineBreakCommand::shouldUseBreakElement): Added, moved code from
231         doApply here.
232         (WebCore::InsertLineBreakCommand::doApply): 
233         Don't upstream() the insertion position.  upstream()ing it will only have an effect
234         when the insertion position is the first in its paragraph (since we canonicalize
235         VisiblePositions to the upstream() candidate).  In this start of paragraph case, 
236         upstream() can move outside inline elements like tab spans or elements that might
237         have a different whitespace mode (added two test cases to cover these).
238         Moved code to decide whether to insert a br or a '\n' to its own method.
239         Removed special case code for inserting at a position inside a tab span.  We instead
240         adjust the insertion position before insertion if it is inside a tab span and
241         handle insertion in the appropriate if-block.  This fixes a bug where we would 
242         only insert one line break when two were needed (added a testcase).
243         Removed special case code for inserting before and after tables and horizontal
244         rules.  We handle these insertions in the appropriate if-block.
245         * editing/InsertLineBreakCommand.h:
246         * editing/ReplaceSelectionCommand.cpp:
247         (WebCore::isMailPasteAsQuotationNode): Change to take in a const Node*.
248         * editing/htmlediting.cpp:
249         (WebCore::isContentEditable): Ditto.
250         (WebCore::isBlock): Ditto.
251         (WebCore::enclosingNodeOfType): Changed to take a function pointer to a function
252         that takes in a const Node*.
253         (WebCore::isTabSpanTextNode): Check to see that the node actually a text node,
254         and not, say, a br.
255         * editing/htmlediting.h:
256         * editing/markup.cpp:
257         (WebCore::styleFromMatchedRulesAndInlineDecl): Changed to take in a const Node*.
258         (WebCore::elementHasTextDecorationProperty): Ditto.
259
260 2007-10-30  Antti Koivisto  <antti@apple.com>
261
262         Reviewed by NOBODY.
263
264         Add missing files.
265
266         * html/VoidCallback.cpp: Added.
267         (VoidCallback::VoidCallback):
268         (VoidCallback::~VoidCallback):
269         (VoidCallback::handleEvent):
270         (VoidCallback::execute):
271         (VoidCallback::operator==):
272         (WebCore::toVoidCallback):
273         * html/VoidCallback.h: Added.
274         * html/VoidCallback.idl: Added.
275
276 2007-10-30  David Kilzer  <ddkilzer@webkit.org>
277
278         Generated files missing from WebCore's Xcode project file
279         <http://bugs.webkit.org/show_bug.cgi?id=15406>
280
281         Reviewed by Darin.
282
283         Added the following files to the Xcode project file (note that
284         JSHTMLInputElementBaseTable.cpp is used as a header file):
285
286         - DOMCSSStyleSheetPrivate.h
287         - DOMEventPrivate.h
288         - DOMHTMLCollectionPrivate.h
289         - DOMHTMLEmbedElementPrivate.h
290         - DOMHTMLIFrameElementPrivate.h
291         - DOMHTMLObjectElementPrivate.h
292         - DOMHTMLSelectElementPrivate.h
293         - DOMTextEventInternal.h
294         - JSHTMLInputElementBaseTable.cpp
295
296         * DerivedSources.make: Removed DOMSVGException.h and JSSVGAnimatedPoints.h
297         since their generated code was not used.
298         * WebCore.xcodeproj/project.pbxproj: Added missing header files.
299
300 2007-10-29  Antti Koivisto  <antti@apple.com>
301
302         Rubber stamped by Adele.
303
304         Initial media (<video> and <audio>) support from feature branch and 
305         QTKit based platform implementation.
306         
307         This will need to be updated to match current draft specification.
308
309         * Configurations/WebCore.xcconfig:
310         * DerivedSources.make:
311         * WebCore.base.exp:
312         * WebCore.xcodeproj/project.pbxproj:
313         * bindings/js/JSEventCustom.cpp:
314         (WebCore::toJS):
315         * bindings/js/JSHTMLAudioElementConstructor.cpp: Added.
316         (WebCore::JSHTMLAudioElementConstructor::JSHTMLAudioElementConstructor):
317         (WebCore::JSHTMLAudioElementConstructor::implementsConstruct):
318         (WebCore::JSHTMLAudioElementConstructor::construct):
319         * bindings/js/JSHTMLAudioElementConstructor.h: Added.
320         * bindings/js/JSHTMLElementWrapperFactory.cpp:
321         (WebCore::createJSHTMLWrapper):
322         * bindings/js/kjs_window.cpp:
323         (KJS::Window::getValueProperty):
324         * bindings/js/kjs_window.h:
325         (KJS::Window::):
326         * bindings/scripts/CodeGeneratorJS.pm:
327         * dom/Document.cpp:
328         (WebCore::Document::createEvent):
329         (WebCore::Document::willSaveToCache):
330         (WebCore::Document::didRestoreFromCache):
331         (WebCore::Document::registerForCacheCallbacks):
332         (WebCore::Document::unregisterForCacheCallbacks):
333         * dom/Document.h:
334         * dom/Element.cpp:
335         (WebCore::Element::setBooleanAttribute):
336         * dom/Element.h:
337         (WebCore::Element::willSaveToCache):
338         * dom/Event.cpp:
339         (WebCore::Event::isProgressEvent):
340         * dom/Event.h:
341         * dom/EventNames.h:
342         * dom/EventTargetNode.cpp:
343         (WebCore::EventTargetNode::dispatchProgressEvent):
344         * dom/EventTargetNode.h:
345         * dom/ProgressEvent.cpp: Added.
346         (WebCore::ProgressEvent::ProgressEvent):
347         (WebCore::ProgressEvent::initProgressEvent):
348         (WebCore::ProgressEvent::initProgressEventNS):
349         * dom/ProgressEvent.h: Added.
350         (WebCore::ProgressEvent::lengthComputable):
351         (WebCore::ProgressEvent::loaded):
352         (WebCore::ProgressEvent::total):
353         (WebCore::ProgressEvent::isProgressEvent):
354         * dom/ProgressEvent.idl: Added.
355         * history/CachedPage.cpp:
356         (WebCore::CachedPage::CachedPage):
357         * html/HTMLAttributeNames.in:
358         * html/HTMLAudioElement.cpp: Added.
359         (WebCore::HTMLAudioElement::HTMLAudioElement):
360         * html/HTMLAudioElement.h: Added.
361         (WebCore::HTMLAudioElement::tagPriority):
362         * html/HTMLAudioElement.idl: Added.
363         * html/HTMLElement.cpp:
364         (WebCore::inlineTagList):
365         * html/HTMLElementFactory.cpp:
366         (WebCore::audioConstructor):
367         (WebCore::videoConstructor):
368         (WebCore::sourceConstructor):
369         (WebCore::createFunctionMap):
370         * html/HTMLInputElement.cpp:
371         (WebCore::HTMLInputElement::~HTMLInputElement):
372         (WebCore::HTMLInputElement::setInputType):
373         (WebCore::HTMLInputElement::willMoveToNewOwnerDocument):
374         (WebCore::HTMLInputElement::didMoveToNewOwnerDocument):
375         * html/HTMLMediaElement.cpp: Added.
376         (WebCore::HTMLMediaElement::HTMLMediaElement):
377         (WebCore::HTMLMediaElement::~HTMLMediaElement):
378         (WebCore::HTMLMediaElement::checkDTD):
379         (WebCore::HTMLMediaElement::rendererIsNeeded):
380         (WebCore::HTMLMediaElement::createRenderer):
381         (WebCore::HTMLMediaElement::insertedIntoDocument):
382         (WebCore::HTMLMediaElement::removedFromDocument):
383         (WebCore::HTMLMediaElement::scheduleLoad):
384         (WebCore::HTMLMediaElement::initAndDispatchProgressEvent):
385         (WebCore::HTMLMediaElement::dispatchEventAsync):
386         (WebCore::HTMLMediaElement::loadTimerFired):
387         (WebCore::HTMLMediaElement::asyncEventTimerFired):
388         (WebCore::serializeTimeOffset):
389         (WebCore::parseTimeOffset):
390         (WebCore::HTMLMediaElement::getTimeOffsetAttribute):
391         (WebCore::HTMLMediaElement::setTimeOffsetAttribute):
392         (WebCore::HTMLMediaElement::error):
393         (WebCore::HTMLMediaElement::src):
394         (WebCore::HTMLMediaElement::HTMLMediaElement::setSrc):
395         (WebCore::HTMLMediaElement::currentSrc):
396         (WebCore::HTMLMediaElement::networkState):
397         (WebCore::HTMLMediaElement::bufferingRate):
398         (WebCore::HTMLMediaElement::load):
399         (WebCore::HTMLMediaElement::movieNetworkStateChanged):
400         (WebCore::HTMLMediaElement::movieReadyStateChanged):
401         (WebCore::HTMLMediaElement::setReadyState):
402         (WebCore::HTMLMediaElement::progressEventTimerFired):
403         (WebCore::HTMLMediaElement::seek):
404         (WebCore::HTMLMediaElement::readyState):
405         (WebCore::HTMLMediaElement::seeking):
406         (WebCore::HTMLMediaElement::currentTime):
407         (WebCore::HTMLMediaElement::setCurrentTime):
408         (WebCore::HTMLMediaElement::duration):
409         (WebCore::HTMLMediaElement::paused):
410         (WebCore::HTMLMediaElement::defaultPlaybackRate):
411         (WebCore::HTMLMediaElement::setDefaultPlaybackRate):
412         (WebCore::HTMLMediaElement::playbackRate):
413         (WebCore::HTMLMediaElement::setPlaybackRate):
414         (WebCore::HTMLMediaElement::ended):
415         (WebCore::HTMLMediaElement::autoplay):
416         (WebCore::HTMLMediaElement::setAutoplay):
417         (WebCore::HTMLMediaElement::play):
418         (WebCore::HTMLMediaElement::pause):
419         (WebCore::HTMLMediaElement::loopCount):
420         (WebCore::HTMLMediaElement::setLoopCount):
421         (WebCore::HTMLMediaElement::start):
422         (WebCore::HTMLMediaElement::setStart):
423         (WebCore::HTMLMediaElement::end):
424         (WebCore::HTMLMediaElement::setEnd):
425         (WebCore::HTMLMediaElement::loopStart):
426         (WebCore::HTMLMediaElement::setLoopStart):
427         (WebCore::HTMLMediaElement::loopEnd):
428         (WebCore::HTMLMediaElement::setLoopEnd):
429         (WebCore::HTMLMediaElement::currentLoop):
430         (WebCore::HTMLMediaElement::setCurrentLoop):
431         (WebCore::HTMLMediaElement::controls):
432         (WebCore::HTMLMediaElement::setControls):
433         (WebCore::HTMLMediaElement::volume):
434         (WebCore::HTMLMediaElement::setVolume):
435         (WebCore::HTMLMediaElement::muted):
436         (WebCore::HTMLMediaElement::setMuted):
437         (WebCore::HTMLMediaElement::pickMedia):
438         (WebCore::HTMLMediaElement::checkIfSeekNeeded):
439         (WebCore::HTMLMediaElement::movieVolumeChanged):
440         (WebCore::HTMLMediaElement::movieDidEnd):
441         (WebCore::HTMLMediaElement::movieCuePointReached):
442         (WebCore::HTMLMediaElement::addCuePoint):
443         (WebCore::HTMLMediaElement::removeCuePoint):
444         (WebCore::HTMLMediaElement::buffered):
445         (WebCore::HTMLMediaElement::played):
446         (WebCore::HTMLMediaElement::seekable):
447         (WebCore::HTMLMediaElement::effectiveStart):
448         (WebCore::HTMLMediaElement::effectiveEnd):
449         (WebCore::HTMLMediaElement::effectiveLoopStart):
450         (WebCore::HTMLMediaElement::effectiveLoopEnd):
451         (WebCore::HTMLMediaElement::activelyPlaying):
452         (WebCore::HTMLMediaElement::endedPlayback):
453         (WebCore::HTMLMediaElement::willSaveToCache):
454         (WebCore::HTMLMediaElement::didRestoreFromCache):
455         * html/HTMLMediaElement.h: Added.
456         (WebCore::HTMLMediaElement::movie):
457         (WebCore::HTMLMediaElement::isVideo):
458         (WebCore::HTMLMediaElement::):
459         (WebCore::HTMLMediaElement::CallbackEntry::CallbackEntry):
460         * html/HTMLMediaElement.idl: Added.
461         * html/HTMLSourceElement.cpp: Added.
462         (WebCore::HTMLSourceElement::HTMLSourceElement):
463         (WebCore::HTMLSourceElement::~HTMLSourceElement):
464         (WebCore::HTMLSourceElement::insertedIntoDocument):
465         (WebCore::HTMLSourceElement::src):
466         (WebCore::HTMLSourceElement::setSrc):
467         (WebCore::HTMLSourceElement::media):
468         (WebCore::HTMLSourceElement::setMedia):
469         (WebCore::HTMLSourceElement::type):
470         (WebCore::HTMLSourceElement::setType):
471         * html/HTMLSourceElement.h: Added.
472         (WebCore::HTMLSourceElement::endTagRequirement):
473         (WebCore::HTMLSourceElement::tagPriority):
474         * html/HTMLSourceElement.idl: Added.
475         * html/HTMLTagNames.in:
476         * html/HTMLVideoElement.cpp: Added.
477         (WebCore::HTMLVideoElement::HTMLVideoElement):
478         (WebCore::HTMLVideoElement::videoWidth):
479         (WebCore::HTMLVideoElement::videoHeight):
480         * html/HTMLVideoElement.h: Added.
481         (WebCore::HTMLVideoElement::tagPriority):
482         (WebCore::HTMLVideoElement::isVideo):
483         * html/HTMLVideoElement.idl: Added.
484         * html/MediaError.h: Added.
485         (WebCore::MediaError::):
486         (WebCore::MediaError::MediaError):
487         (WebCore::MediaError::code):
488         * html/MediaError.idl: Added.
489         * html/TimeRanges.cpp: Added.
490         (TimeRanges::TimeRanges):
491         (TimeRanges::start):
492         (TimeRanges::end):
493         (TimeRanges::add):
494         (TimeRanges::contain):
495         * html/TimeRanges.h: Added.
496         (WebCore::TimeRanges::TimeRanges):
497         (WebCore::TimeRanges::length):
498         (WebCore::TimeRanges::Range::Range):
499         * html/TimeRanges.idl: Added.
500         * page/DOMWindow.idl:
501         * platform/MIMETypeRegistry.cpp:
502         (WebCore::initialiseSupportedMovieMIMETypes):
503         (WebCore::initialiseMIMETypeRegistry):
504         (WebCore::MIMETypeRegistry::isSupportedMovieMIMEType):
505         (WebCore::MIMETypeRegistry::getSupportedMovieMIMETypes):
506         * platform/MIMETypeRegistry.h:
507         * platform/graphics/Movie.cpp: Added.
508         (WebCore::Movie::Movie):
509         (WebCore::Movie::~Movie):
510         (WebCore::Movie::load):
511         (WebCore::Movie::cancelLoad):
512         (WebCore::Movie::play):
513         (WebCore::Movie::pause):
514         (WebCore::Movie::duration):
515         (WebCore::Movie::currentTime):
516         (WebCore::Movie::seek):
517         (WebCore::Movie::paused):
518         (WebCore::Movie::seeking):
519         (WebCore::Movie::naturalSize):
520         (WebCore::Movie::hasVideo):
521         (WebCore::Movie::networkState):
522         (WebCore::Movie::readyState):
523         (WebCore::Movie::volume):
524         (WebCore::Movie::setVolume):
525         (WebCore::Movie::rate):
526         (WebCore::Movie::setRate):
527         (WebCore::Movie::muted):
528         (WebCore::Movie::setMuted):
529         (WebCore::Movie::dataRate):
530         (WebCore::Movie::setEndTime):
531         (WebCore::Movie::addCuePoint):
532         (WebCore::Movie::removeCuePoint):
533         (WebCore::Movie::clearCuePoints):
534         (WebCore::Movie::maxTimeBuffered):
535         (WebCore::Movie::maxTimeSeekable):
536         (WebCore::Movie::bytesLoaded):
537         (WebCore::Movie::totalBytesKnown):
538         (WebCore::Movie::totalBytes):
539         (WebCore::Movie::setRect):
540         (WebCore::Movie::visible):
541         (WebCore::Movie::setVisible):
542         (WebCore::Movie::paint):
543         (WebCore::Movie::getSupportedTypes):
544         (WebCore::Movie::networkStateChanged):
545         (WebCore::Movie::readyStateChanged):
546         (WebCore::Movie::volumeChanged):
547         (WebCore::Movie::didEnd):
548         (WebCore::Movie::cuePointReached):
549         * platform/graphics/Movie.h: Added.
550         (WebCore::MovieClient::~MovieClient):
551         (WebCore::MovieClient::movieNetworkStateChanged):
552         (WebCore::MovieClient::movieReadyStateChanged):
553         (WebCore::MovieClient::movieVolumeChanged):
554         (WebCore::MovieClient::movieDidEnd):
555         (WebCore::MovieClient::movieCuePointReached):
556         (WebCore::Movie::parentWidget):
557         (WebCore::Movie::setParentWidget):
558         (WebCore::Movie::rect):
559         (WebCore::Movie::):
560         * platform/graphics/mac/MoviePrivateQTKit.h: Added.
561         * platform/graphics/mac/MoviePrivateQTKit.mm: Added.
562         (WebCore::MoviePrivate::MoviePrivate):
563         (WebCore::MoviePrivate::~MoviePrivate):
564         (WebCore::MoviePrivate::createQTMovie):
565         (WebCore::MoviePrivate::createQTMovieView):
566         (WebCore::MoviePrivate::createQTTime):
567         (WebCore::MoviePrivate::load):
568         (WebCore::MoviePrivate::play):
569         (WebCore::MoviePrivate::pause):
570         (WebCore::MoviePrivate::duration):
571         (WebCore::MoviePrivate::currentTime):
572         (WebCore::MoviePrivate::seek):
573         (WebCore::MoviePrivate::setEndTime):
574         (WebCore::MoviePrivate::addCuePoint):
575         (WebCore::MoviePrivate::removeCuePoint):
576         (WebCore::MoviePrivate::clearCuePoints):
577         (WebCore::MoviePrivate::startCuePointTimerIfNeeded):
578         (WebCore::MoviePrivate::cancelSeek):
579         (WebCore::MoviePrivate::seekTimerFired):
580         (WebCore::MoviePrivate::cuePointTimerFired):
581         (WebCore::MoviePrivate::paused):
582         (WebCore::MoviePrivate::seeking):
583         (WebCore::MoviePrivate::naturalSize):
584         (WebCore::MoviePrivate::hasVideo):
585         (WebCore::MoviePrivate::setVolume):
586         (WebCore::MoviePrivate::setMuted):
587         (WebCore::MoviePrivate::setRate):
588         (WebCore::MoviePrivate::dataRate):
589         (WebCore::MoviePrivate::networkState):
590         (WebCore::MoviePrivate::readyState):
591         (WebCore::MoviePrivate::maxTimeBuffered):
592         (WebCore::MoviePrivate::maxTimeSeekable):
593         (WebCore::MoviePrivate::maxTimeLoaded):
594         (WebCore::MoviePrivate::bytesLoaded):
595         (WebCore::MoviePrivate::totalBytesKnown):
596         (WebCore::MoviePrivate::totalBytes):
597         (WebCore::MoviePrivate::cancelLoad):
598         (WebCore::MoviePrivate::updateStates):
599         (WebCore::MoviePrivate::loadStateChanged):
600         (WebCore::MoviePrivate::rateChanged):
601         (WebCore::MoviePrivate::sizeChanged):
602         (WebCore::MoviePrivate::timeChanged):
603         (WebCore::MoviePrivate::volumeChanged):
604         (WebCore::MoviePrivate::didEnd):
605         (WebCore::MoviePrivate::setRect):
606         (WebCore::MoviePrivate::setVisible):
607         (WebCore::MoviePrivate::paint):
608         (WebCore::MoviePrivate::getSupportedTypes):
609         (-[WebCoreMovieObserver loadStateChanged:]):
610         (-[WebCoreMovieObserver rateChanged:]):
611         (-[WebCoreMovieObserver sizeChanged:]):
612         (-[WebCoreMovieObserver timeChanged:]):
613         (-[WebCoreMovieObserver volumeChanged:]):
614         (-[WebCoreMovieObserver didEnd:]):
615         (-[WebCoreMovieObserver setCallback:WebCore::]):
616         * platform/mac/WebCoreSystemInterface.h:
617         * platform/mac/WebCoreSystemInterface.mm:
618         * rendering/RenderLayer.cpp:
619         (WebCore::RenderLayer::collectLayers):
620         * rendering/RenderVideo.cpp: Added.
621         (WebCore::RenderVideo::RenderVideo):
622         (WebCore::RenderVideo::~RenderVideo):
623         (WebCore::RenderVideo::movie):
624         (WebCore::RenderVideo::videoSizeChanged):
625         (WebCore::RenderVideo::paint):
626         (WebCore::RenderVideo::layout):
627         (WebCore::RenderVideo::updateFromElement):
628         (WebCore::RenderVideo::updateMovie):
629         (WebCore::RenderVideo::isWidthSpecified):
630         (WebCore::RenderVideo::isHeightSpecified):
631         (WebCore::RenderVideo::calcReplacedWidth):
632         (WebCore::RenderVideo::calcReplacedHeight):
633         (WebCore::RenderVideo::calcAspectRatioWidth):
634         (WebCore::RenderVideo::calcAspectRatioHeight):
635         (WebCore::RenderVideo::calcPrefWidths):
636         * rendering/RenderVideo.h: Added.
637         (WebCore::RenderVideo::renderName):
638
639 2007-10-30  Sam Weinig  <sam@webkit.org>
640
641         Reviewed by Adam Roben.
642
643         Add Interface and Class UUIDs to the IDLs in preparation of adding
644         autogeneration of the COM DOM bindings.
645
646         * bindings/scripts/IDLParser.pm: Relax parsing rules to allow newlines as whitespace.
647         * css/CSSCharsetRule.idl:
648         * css/CSSFontFaceRule.idl:
649         * css/CSSImportRule.idl:
650         * css/CSSMediaRule.idl:
651         * css/CSSPageRule.idl:
652         * css/CSSPrimitiveValue.idl:
653         * css/CSSRule.idl:
654         * css/CSSRuleList.idl:
655         * css/CSSStyleDeclaration.idl:
656         * css/CSSStyleRule.idl:
657         * css/CSSStyleSheet.idl:
658         * css/CSSUnknownRule.idl:
659         * css/CSSValue.idl:
660         * css/CSSValueList.idl:
661         * css/Counter.idl:
662         * css/MediaList.idl:
663         * css/RGBColor.idl:
664         * css/Rect.idl:
665         * css/StyleSheet.idl:
666         * css/StyleSheetList.idl:
667         * dom/Attr.idl:
668         * dom/CDATASection.idl:
669         * dom/CharacterData.idl:
670         * dom/Comment.idl:
671         * dom/DOMImplementation.idl:
672         * dom/Document.idl:
673         * dom/DocumentFragment.idl:
674         * dom/DocumentType.idl:
675         * dom/Element.idl:
676         * dom/Entity.idl:
677         * dom/EntityReference.idl:
678         * dom/Event.idl:
679         * dom/EventListener.idl:
680         * dom/EventTarget.idl:
681         * dom/NamedNodeMap.idl:
682         * dom/Node.idl:
683         * dom/NodeList.idl:
684         * dom/Notation.idl:
685         * dom/ProcessingInstruction.idl:
686         * dom/Text.idl:
687         * html/CanvasGradient.idl:
688         * html/CanvasPattern.idl:
689         * html/CanvasRenderingContext2D.idl:
690         * html/HTMLAnchorElement.idl:
691         * html/HTMLAppletElement.idl:
692         * html/HTMLAreaElement.idl:
693         * html/HTMLBRElement.idl:
694         * html/HTMLBaseElement.idl:
695         * html/HTMLBaseFontElement.idl:
696         * html/HTMLBlockquoteElement.idl:
697         * html/HTMLBodyElement.idl:
698         * html/HTMLButtonElement.idl:
699         * html/HTMLCanvasElement.idl:
700         * html/HTMLCollection.idl:
701         * html/HTMLDListElement.idl:
702         * html/HTMLDirectoryElement.idl:
703         * html/HTMLDivElement.idl:
704         * html/HTMLDocument.idl:
705         * html/HTMLElement.idl:
706         * html/HTMLEmbedElement.idl:
707         * html/HTMLFieldSetElement.idl:
708         * html/HTMLFontElement.idl:
709         * html/HTMLFormElement.idl:
710         * html/HTMLFrameElement.idl:
711         * html/HTMLFrameSetElement.idl:
712         * html/HTMLHRElement.idl:
713         * html/HTMLHeadElement.idl:
714         * html/HTMLHeadingElement.idl:
715         * html/HTMLHtmlElement.idl:
716         * html/HTMLIFrameElement.idl:
717         * html/HTMLImageElement.idl:
718         * html/HTMLInputElement.idl:
719         * html/HTMLIsIndexElement.idl:
720         * html/HTMLLIElement.idl:
721         * html/HTMLLabelElement.idl:
722         * html/HTMLLegendElement.idl:
723         * html/HTMLLinkElement.idl:
724         * html/HTMLMapElement.idl:
725         * html/HTMLMarqueeElement.idl:
726         * html/HTMLMenuElement.idl:
727         * html/HTMLMetaElement.idl:
728         * html/HTMLModElement.idl:
729         * html/HTMLOListElement.idl:
730         * html/HTMLObjectElement.idl:
731         * html/HTMLOptGroupElement.idl:
732         * html/HTMLOptionElement.idl:
733         * html/HTMLOptionsCollection.idl:
734         * html/HTMLParagraphElement.idl:
735         * html/HTMLParamElement.idl:
736         * html/HTMLPreElement.idl:
737         * html/HTMLQuoteElement.idl:
738         * html/HTMLScriptElement.idl:
739         * html/HTMLSelectElement.idl:
740         * html/HTMLStyleElement.idl:
741         * html/HTMLTableCaptionElement.idl:
742         * html/HTMLTableCellElement.idl:
743         * html/HTMLTableColElement.idl:
744         * html/HTMLTableElement.idl:
745         * html/HTMLTableRowElement.idl:
746         * html/HTMLTableSectionElement.idl:
747         * html/HTMLTextAreaElement.idl:
748         * html/HTMLTitleElement.idl:
749         * html/HTMLUListElement.idl:
750
751 2007-10-30  Adele Peterson  <adele@apple.com>
752
753         RS by Darin.
754
755         * page/AnimationController.cpp: (WebCore::blendFunc): Use lround instead of round.
756
757 2007-10-29  Timothy Hatcher  <timothy@apple.com>
758
759         Reviewed by John Sullivan.
760
761         - Allow showing and closing the inspector programatically.
762         - Add showConsole() and showTimeline() methods. 
763
764         * WebCore.base.exp: Add exports for WebKit.
765         * page/InspectorController.cpp:
766         (WebCore::callSimpleFunction): Renamed from callClearFunction().
767         (WebCore::unloading): Renamed to close().
768         (WebCore::InspectorController::InspectorController):
769         (WebCore::InspectorController::inspect): Moved showing code to show().
770         (WebCore::InspectorController::setWindowVisible): Show the timeline or console if needed.
771         (WebCore::InspectorController::show): Code factored out of inspect().
772         (WebCore::InspectorController::showConsole): Call show() and the JS showConsole().
773         (WebCore::InspectorController::showTimeline): Call show() and the JS showTimeline().
774         (WebCore::InspectorController::close):
775         (WebCore::InspectorController::clearScriptResources): Call the new callSimpleFunction.
776         (WebCore::InspectorController::clearDatabaseScriptResources): Ditto.
777         (WebCore::InspectorController::clearScriptConsoleMessages): Ditto.
778         (WebCore::InspectorController::clearNetworkTimeline): Ditto.
779         * page/InspectorController.h: Add and rename methods.
780         * page/inspector/inspector.js: Add showConsole() and showTimeline().
781
782 2007-10-30  Adele Peterson  <adele@apple.com>
783
784         Reviewed by Sam.
785
786         Build fix.
787
788         * page/AnimationController.cpp: (WebCore::blendFunc):
789
790 2007-10-30  Adele Peterson  <adele@apple.com>
791
792         Reviewed by Darin.
793
794         WebCore part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577
795         <rdar://problem/5103625> REGRESSION: Caps lock icon should show in password fields
796
797         Test: manual-tests/password-caps-lock.html
798
799         * WebCore.base.exp: Added symbol for capsLockStateMayHaveChanged.
800
801         * page/Frame.cpp: (WebCore::Frame::setIsActive): Calls capsLockStateMayHaveChanged.
802         * page/EventHandler.cpp: (WebCore::EventHandler::capsLockStateMayHaveChanged): Added. Tells the focused node's renderer that the capsLockStateMayHaveChanged.
803         * page/EventHandler.h:
804
805         * platform/PlatformKeyboardEvent.h:
806         * platform/mac/KeyEventMac.mm: (WebCore::PlatformKeyboardEvent::currentCapsLockState): Added.
807         * platform/win/KeyEventWin.cpp: (WebCore::PlatformKeyboardEvent::currentCapsLockState): Added.
808
809         * rendering/RenderTextControl.cpp:
810         (WebCore::RenderTextControl::RenderTextControl):
811         (WebCore::RenderTextControl::paint): Added.  If m_shouldDrawCapsLockIndicator is true, paints the caps lock indicator after the background.
812         (WebCore::RenderTextControl::forwardEvent): When the control gets and loses focus, update the caps lock state.
813         (WebCore::RenderTextControl::capsLockStateMayHaveChanged): Added. Updates m_shouldDrawCapsLockIndicator, which is true if the field is a password field, 
814          and the frame is active, and the element is focused, and the caps lock is on.  Causes a repaint when m_shouldDrawCapsLockIndicator changes state.
815         * rendering/RenderTextControl.h: Added m_shouldDrawCapsLockIndicator.
816         * rendering/RenderObject.h: (WebCore::RenderObject::capsLockStateMayHaveChanged): Added.
817
818         * rendering/RenderTheme.h: (WebCore::RenderTheme::paintCapsLockIndicator): Added.
819         * rendering/RenderThemeMac.h:
820         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintCapsLockIndicator): Added.  Calls wkDrawCapsLockIndicator.
821         * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::paintCapsLockIndicator): Added.  Calls paintThemePart for the CapsLockPart.
822         * rendering/RenderThemeSafari.h:
823
824 2007-10-30  David Hyatt  <hyatt@apple.com>
825
826         Land support for implicit animation in CSS.
827
828         Reviewed by mitz, darin
829
830         * css/CSSParser.cpp:
831         (WebCore::CSSParser::parseTimingFunctionValue):
832         (WebCore::CSSParser::parseTransitionTimingFunction):
833         (WebCore::CSSParser::parseTransitionProperty):
834         * css/CSSStyleSelector.cpp:
835         (WebCore::CSSStyleSelector::mapTransitionDuration):
836         (WebCore::CSSStyleSelector::mapTransitionRepeatCount):
837         (WebCore::CSSStyleSelector::mapTransitionTimingFunction):
838         (WebCore::CSSStyleSelector::mapTransitionProperty):
839         * css/CSSTimingFunctionValue.h:
840         (WebCore::CSSTimingFunctionValue::CSSTimingFunctionValue):
841         (WebCore::CSSTimingFunctionValue::x1):
842         (WebCore::CSSTimingFunctionValue::y1):
843         (WebCore::CSSTimingFunctionValue::x2):
844         (WebCore::CSSTimingFunctionValue::y2):
845         * dom/Element.cpp:
846         (WebCore::Element::styleForRenderer):
847         (WebCore::Element::createRenderer):
848         * dom/Node.cpp:
849         (WebCore::Node::createRendererIfNeeded):
850         (WebCore::Node::setRenderStyle):
851         * page/AnimationController.cpp:
852         (WebCore::CurveData::CurveData):
853         (WebCore::CurveData::sampleCurveX):
854         (WebCore::CurveData::sampleCurveY):
855         (WebCore::CurveData::sampleCurveDerivativeX):
856         (WebCore::CurveData::solveCurveX):
857         (WebCore::solveEpsilon):
858         (WebCore::solveCubicBezierFunction):
859         (WebCore::ImplicitAnimation::finished):
860         (WebCore::CompositeImplicitAnimation::~CompositeImplicitAnimation):
861         (WebCore::CompositeImplicitAnimation::hasAnimationForProperty):
862         (WebCore::ImplicitAnimation::ImplicitAnimation):
863         (WebCore::ImplicitAnimation::~ImplicitAnimation):
864         (WebCore::ImplicitAnimation::reset):
865         (WebCore::ImplicitAnimation::progress):
866         (WebCore::blendFunc):
867         (WebCore::ImplicitAnimation::animate):
868         (WebCore::CompositeImplicitAnimation::animate):
869         (WebCore::CompositeImplicitAnimation::animating):
870         (WebCore::CompositeImplicitAnimation::reset):
871         (WebCore::AnimationControllerPrivate::hasImplicitAnimations):
872         (WebCore::AnimationControllerPrivate::AnimationControllerPrivate):
873         (WebCore::AnimationControllerPrivate::~AnimationControllerPrivate):
874         (WebCore::AnimationControllerPrivate::get):
875         (WebCore::AnimationControllerPrivate::clear):
876         (WebCore::AnimationControllerPrivate::updateTimer):
877         (WebCore::AnimationControllerPrivate::timerFired):
878         (WebCore:::m_data):
879         (WebCore::AnimationController::~AnimationController):
880         (WebCore::AnimationController::cancelImplicitAnimations):
881         (WebCore::AnimationController::updateImplicitAnimations):
882         (WebCore::AnimationController::suspendAnimations):
883         (WebCore::AnimationController::resumeAnimations):
884         * page/AnimationController.h:
885         * page/Frame.cpp:
886         (WebCore::FramePrivate::FramePrivate):
887         * rendering/RenderBox.cpp:
888         (WebCore::RenderBox::setStyle):
889         (WebCore::RenderBox::destroy):
890         * rendering/RenderObject.cpp:
891         (WebCore::RenderObject::setAnimatableStyle):
892         (WebCore::RenderObject::destroy):
893         * rendering/RenderObject.h:
894         * rendering/RenderStyle.h:
895         (WebCore::TimingFunction::TimingFunction):
896         (WebCore::TimingFunction::operator==):
897         (WebCore::TimingFunction::x1):
898         (WebCore::TimingFunction::y1):
899         (WebCore::TimingFunction::x2):
900         (WebCore::TimingFunction::y2):
901         (WebCore::TimingFunction::type):
902         (WebCore::Transition::transitionProperty):
903         (WebCore::Transition::setTransitionProperty):
904         (WebCore::RenderStyle::initialTransitionProperty):
905         * rendering/RenderWidget.cpp:
906         (WebCore::RenderWidget::destroy):
907
908 2007-10-29  Beth Dakin  <bdakin@apple.com>
909
910         Reviewed by Hyatt.
911
912         Fix for <rdar://problem/5399614> anchor tag is not rendered without 
913         text content, works in Firefox with CSS background-image (13237)
914
915         This patch allows empty inlines that have box decorations or width 
916         from border/padding/margin to have line boxes.
917
918         * rendering/bidi.cpp:
919         (WebCore::inlineFlowAllowsLineBox): Convenience function that 
920         defines when we allow an inline flow to have a line box.
921         (WebCore::requiresLineBox): Call inlineFlowAllowsLineBox.
922         (WebCore::shouldSkipWhitespaceAfterStartObject): New function to 
923         merge some shared code between list markers and empty inline flows 
924         that fall at the beginning of a line.
925         (WebCore::RenderBlock::findNextLineBreak): Make flows more like 
926         list markers.
927
928         One interesting side effect of this bug appeared in our xhtml/svg 
929         tests that generate parser error tags. The tag we generate was 
930         actually an empty inline with box decorations. This patch causes 
931         those inlines to draw now, and the parser errors looked strange. So 
932         I changed it so that the parsererror tag is display:block. This 
933         matches Firefox, and I think was the original intent of the tag 
934         since that causes its red background and border to show up.
935         * dom/XMLTokenizer.cpp:
936         (WebCore::createXHTMLParserErrorHeader):
937
938 2007-10-29  Dan Bernstein  <mitz@apple.com>
939
940         Reviewed by Dave Hyatt.
941
942         - fix crashing tests fast/frames/inline-object-inside-frameset.html and
943           fast/forms/form-hides-table.html
944
945         * rendering/RenderBox.cpp:
946         (WebCore::RenderBox::destroy):
947         * rendering/RenderWidget.cpp:
948         (WebCore::RenderWidget::destroy):
949
950 2007-10-29  Dan Bernstein  <mitz@apple.com>
951
952         Reviewed by Adam Roben.
953
954         - fix http://bugs.webkit.org/show_bug.cgi?id=15750
955           REGRESSION(r27173): Web Inspector freezes beneath Image::drawPattern()
956
957         Test: fast/backgrounds/size/zero.html
958
959         * platform/graphics/cg/ImageCG.cpp:
960         (WebCore::Image::drawPattern): Added an ASSERT and an early return
961         to guard against singular pattern transforms.
962         * rendering/RenderBox.cpp:
963         (WebCore::cacluateBackgroundSize): Changed to ensure a minimum tile
964         size of 1x1.
965
966 2007-10-29  Alp Toker  <alp@atoker.com>
967
968         Reviewed by Maciej.
969
970         Add GTK+ convenience conversions for various primitives
971
972         * WebCore.pro:
973         * platform/graphics/Color.h:
974         * platform/graphics/IntPoint.h:
975         * platform/graphics/IntRect.h:
976         * platform/graphics/gtk/ColorGtk.cpp: Added.
977         (WebCore::Color::Color):
978         * platform/graphics/gtk/IntPointGtk.cpp: Added.
979         (WebCore::IntPoint::IntPoint):
980         (WebCore::IntPoint::operator GdkPoint):
981         * platform/graphics/gtk/IntRectGtk.cpp: Added.
982         (WebCore::IntRect::IntRect):
983         (WebCore::IntRect::operator GdkRectangle):
984
985 2007-10-29  Jon Honeycutt  <jhoneycutt@apple.com>
986
987         Reviewed by Anders.
988
989         Speculative fix for <rdar://5538489> Safari 3.0.4 seed hangs at
990         http://tgmonline.futuregamer.it/ (works fine on Safari 2.0.4 and Safari
991         Beta for Mac)
992         
993         I cannot reproduce this hang, but it is likely due to our not limiting
994         WM_USER+1 messages or InvalidateRect calls for a plugin with initially-
995         unknown MIME type. The embed tag on the page is missing a type
996         attribute, so as fallback, we choose to load the Flash plugin based on
997         the file extension of "swf." However, we do not record this determined
998         MIME type, and so our quirks cannot be established.
999         
1000         Changed findPlugin() so that, if it fails to find a plugin for the
1001         given MIME type, it will lookup the MIME type for the file extension -
1002         overwriting its passed MIME type parameter - and search for a plugin
1003         for that MIME type.
1004
1005         * plugins/win/PluginDatabaseWin.cpp:
1006         (WebCore::PluginDatabaseWin::pluginForMIMEType): Added an early return
1007         if the MIME type is empty
1008         (WebCore::PluginDatabaseWin::MIMETypeForExtension): Added to replace
1009         pluginForExtension. Returns a String with the MIME type for the file
1010         extension. Also, changed to use case-insensitive compares
1011         (WebCore::PluginDatabaseWin::findPlugin): If we fail to find a plugin
1012         for the given extension, overwrite the incoming MIME type parameter
1013         with the MIME type for the file extension, and search for a plugin for
1014         that MIME type. Also, changed the way that the extension is determined
1015         (WebCore::PluginDatabaseWin::createPluginView): Pass a mutable String
1016         to findPlugin() so that it can be updated if necessary
1017         * plugins/win/PluginDatabaseWin.h: Changed findPlugin() to take a non-
1018         const String, removed definition of pluginForExtension, added
1019         definition for MIMETypeForExtension
1020         * plugins/win/PluginPackageWin.cpp: 
1021         (WebCore::PluginPackageWin::fetchInfo): Store the MIME type in
1022         lowercase for easier compares
1023
1024 2007-10-29  Andrew Wellington  <proton@wiretapped.net>
1025
1026         Not reviewed - build fix
1027
1028         Fix Mac Build.
1029         
1030         WebKit/WebCore/xml/XSLTProcessor.cpp:79: warning: 'level' may be used uninitialized
1031         in this function
1032
1033         * xml/XSLTProcessor.cpp:
1034         (WebCore::XSLTProcessor::parseErrorFunc):
1035
1036 2007-10-29  Alp Toker  <alp@atoker.com>
1037
1038         Reviewed by Adam Roben.
1039
1040         http://bugs.webkit.org/show_bug.cgi?id=15725
1041         [GTK] WebCore.pro header dependencies are incorrect
1042
1043         Fix header dependencies in the build system
1044
1045         INCLUDEPATH and DEPENDPATH are now up to date.
1046
1047         * WebCore.pro:
1048
1049 2007-10-29  Beth Dakin  <bdakin@apple.com>
1050
1051         Build fix.
1052
1053         * css/CSSParser.cpp:
1054         (WebCore::CSSParser::parseTimingFunctionValue):
1055         * css/CSSStyleSelector.cpp:
1056         (WebCore::CSSStyleSelector::mapTransitionTimingFunction):
1057
1058 2007-10-29  David Hyatt  <hyatt@apple.com>
1059
1060         Land the back end for CSS animated property transitions.  I am landing this in stages, so the AnimationController
1061         class is deliberately left empty.
1062
1063         Reviewed by darin/aroben
1064
1065         * WebCore.pro:
1066         * WebCore.vcproj/WebCore.vcproj:
1067         * WebCore.xcodeproj/project.pbxproj:
1068         * css/CSSComputedStyleDeclaration.cpp:
1069         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1070         * css/CSSPropertyNames.in:
1071         * css/CSSTimingFunctionValue.cpp: Added.
1072         (WebCore::CSSTimingFunctionValue::cssText):
1073         * css/CSSTimingFunctionValue.h: Added.
1074         (WebCore::CSSTimingFunctionValue::CSSTimingFunctionValue):
1075         (WebCore::CSSTimingFunctionValue::firstPoint):
1076         (WebCore::CSSTimingFunctionValue::secondPoint):
1077         * css/CSSValueKeywords.in:
1078         * history/CachedPage.cpp:
1079         (WebCore::CachedPage::restore):
1080         * page/AnimationController.cpp: Added.
1081         (WebCore::AnimationController::AnimationController):
1082         (WebCore::AnimationController::~AnimationController):
1083         (WebCore::AnimationController::cancelTransitions):
1084         (WebCore::AnimationController::updateTransitions):
1085         (WebCore::AnimationController::suspendAnimations):
1086         (WebCore::AnimationController::resumeAnimations):
1087         * page/AnimationController.h: Added.
1088         * page/Frame.cpp:
1089         (WebCore::Frame::animationController):
1090         (WebCore::Frame::clearTimers):
1091         * page/Frame.h:
1092         * page/FramePrivate.h:
1093         * rendering/RenderBox.cpp:
1094         (WebCore::RenderBox::setStyle):
1095         (WebCore::RenderBox::destroy):
1096         * rendering/RenderObject.cpp:
1097         (WebCore::RenderObject::animationController):
1098         * rendering/RenderObject.h:
1099         * rendering/RenderStyle.cpp:
1100         (WebCore::Transition::Transition):
1101         (WebCore::Transition::~Transition):
1102         (WebCore::Transition::operator=):
1103         (WebCore::Transition::operator==):
1104         (WebCore::Transition::fillUnsetProperties):
1105         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
1106         (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData):
1107         (WebCore::StyleRareNonInheritedData::operator==):
1108         (WebCore::StyleRareNonInheritedData::transitionDataEquivalent):
1109         (WebCore::RenderStyle::diff):
1110         (WebCore::RenderStyle::adjustTransitions):
1111         (WebCore::RenderStyle::accessTransitions):
1112         * rendering/RenderStyle.h:
1113         (WebCore::BackgroundLayer::next):
1114         (WebCore::):
1115         (WebCore::TimingFunction::TimingFunction):
1116         (WebCore::TimingFunction::operator==):
1117         (WebCore::Transition::next):
1118         (WebCore::Transition::isTransitionDurationSet):
1119         (WebCore::Transition::isTransitionRepeatCountSet):
1120         (WebCore::Transition::isTransitionTimingFunctionSet):
1121         (WebCore::Transition::isTransitionPropertySet):
1122         (WebCore::Transition::isEmpty):
1123         (WebCore::Transition::clearTransitionDuration):
1124         (WebCore::Transition::clearTransitionRepeatCount):
1125         (WebCore::Transition::clearTransitionTimingFunction):
1126         (WebCore::Transition::clearTransitionProperty):
1127         (WebCore::Transition::transitionDuration):
1128         (WebCore::Transition::transitionRepeatCount):
1129         (WebCore::Transition::transitionTimingFunction):
1130         (WebCore::Transition::transitionProperty):
1131         (WebCore::Transition::setTransitionDuration):
1132         (WebCore::Transition::setTransitionRepeatCount):
1133         (WebCore::Transition::setTransitionTimingFunction):
1134         (WebCore::Transition::setTransitionProperty):
1135         (WebCore::Transition::setNext):
1136         (WebCore::Transition::operator!=):
1137         (WebCore::RenderStyle::transitions):
1138         (WebCore::RenderStyle::clearTransitions):
1139         (WebCore::RenderStyle::inheritTransitions):
1140         (WebCore::RenderStyle::initialTransitionDuration):
1141         (WebCore::RenderStyle::initialTransitionRepeatCount):
1142         (WebCore::RenderStyle::initialTransitionTimingFunction):
1143         (WebCore::RenderStyle::initialTransitionProperty):
1144         * rendering/RenderWidget.cpp:
1145         (WebCore::RenderWidget::destroy):
1146
1147 2007-10-29  Alexey Proskuryakov  <ap@webkit.org>
1148
1149         Reviewed by Darin.
1150
1151         http://bugs.webkit.org/show_bug.cgi?id=6040
1152         XSLT does not report errors to the user
1153
1154         Made parseErrorFunc a static member function of XSLTProcessor to be reusable from XSLStylesheet.
1155         Switched to xmlSetStructuredErrorFunc to get an error structure instead of pre-formatted console
1156         output. Got rid of DeprecatedString in XSLTProcessor.
1157
1158         * dom/Document.cpp:
1159         (WebCore::Document::applyXSLTransform):
1160         * xml/XSLStyleSheet.cpp:
1161         (WebCore::XSLStyleSheet::parseString):
1162         * xml/XSLTProcessor.cpp:
1163         (WebCore::XSLTProcessor::parseErrorFunc):
1164         (WebCore::docLoaderFunc):
1165         (WebCore::setXSLTLoadCallBack):
1166         (WebCore::writeToString):
1167         (WebCore::saveResultToString):
1168         (WebCore::transformTextStringToXHTMLDocumentString):
1169         (WebCore::xsltParamArrayFromParameterMap):
1170         (WebCore::freeXsltParamArray):
1171         (WebCore::XSLTProcessor::createDocumentFromSource):
1172         (WebCore::createFragmentFromSource):
1173         (WebCore::xsltStylesheetPointer):
1174         (WebCore::xmlDocPtrFromNode):
1175         (WebCore::resultMIMEType):
1176         (WebCore::XSLTProcessor::transformToString):
1177         (WebCore::XSLTProcessor::transformToDocument):
1178         (WebCore::XSLTProcessor::transformToFragment):
1179         * xml/XSLTProcessor.h:
1180         (WebCore::XSLTProcessor::setXSLStylesheet):
1181         (WebCore::XSLTProcessor::importStylesheet):
1182         (WebCore::XSLTProcessor::xslStylesheet):
1183
1184 2007-10-29  Dan Bernstein  <mitz@apple.com>
1185
1186         Reviewed by John Sullivan.
1187
1188         - fix <rdar://problem/5424455> REGRESSION (r21168-r21193, Tiger only): Safari scrollbar is clipped at top when loading particular RSS page
1189
1190         Test: fast/repaint/layout-state-only-posiitoned.html
1191
1192         * rendering/RenderBlock.cpp:
1193         (WebCore::RenderBlock::layoutOnlyPositionedObjects): Pop layout state
1194         before updating scroll info, which possibly repaints us.
1195
1196 2007-10-29  David Kilzer  <ddkilzer@webkit.org>
1197
1198         REGRESSION (r17701): Favicons should be viewable as image documents
1199         <http://bugs.webkit.org/show_bug.cgi?id=15640>
1200
1201         Reviewed by Darin.
1202
1203         On Tiger and Leopard, the image/x-icon MIME type is not returned from
1204         CGImageSourceCopyTypeIdentifiers(), so opening a URL to a favicon caused
1205         the icon to be downloaded instead being displayed in an image document.
1206
1207         Test: fast/images/favicon-as-image.html
1208
1209         * platform/MIMETypeRegistry.cpp:
1210         (WebCore::initialiseSupportedImageMIMETypes): Manually add image/x-icon to
1211         supportedImageMIMETypes and supportedImageResourceMIMETypes.  Also fixed
1212         comment about the image/bmp MIME type since it applies to both Tiger and
1213         Leopard.
1214
1215 2007-10-29  Maciej Stachowiak  <mjs@apple.com>
1216
1217         Reviewed by Mark.
1218
1219         - fixed assertion failures detected by the new assertions
1220
1221         * bindings/objc/DOMRGBColor.mm:
1222         (-[DOMRGBColor dealloc]): Clear _internal before calling [super dealloc]
1223         because it's not a pointer and shouldn't be in the normal wrapper cache.
1224         * dom/Document.cpp:
1225         (WebCore::Document::addImageMap): Don't access hashmap if name is null.
1226         (WebCore::Document::removeImageMap): ditto
1227         * dom/StyledElement.cpp:
1228         (WebCore::StyledElement::parseMappedAttribute): Don't claim we have a class
1229         when the class attribute is empty.
1230         * platform/TextCodecICU.cpp:
1231         (WebCore::gbkCallbackEscape): Don't look up 0 code points.
1232
1233 2007-10-28  Alexey Proskuryakov  <ap@webkit.org>
1234
1235         Reviewed by Darin.
1236
1237         http://bugs.webkit.org/show_bug.cgi?id=10734
1238         Made HTMLOptionElement.index read-only, matching IE and DOM standard.
1239
1240         Test: fast/dom/HTMLOptionElement/set-option-index-text.html
1241
1242         * html/HTMLOptionElement.idl: Marked index as readonly.
1243
1244         * html/HTMLOptionElement.cpp:
1245         * html/HTMLOptionElement.h:
1246         Removed setIndex().
1247
1248 2007-10-28  Eric Seidel  <eric@webkit.org>
1249
1250         Reviewed by darin.
1251
1252         Fix leaks on TOT and prevent Path code from logging to console so frequently
1253
1254         * platform/graphics/svg/SVGResourceFilter.h:
1255         (WebCore::SVGResourceFilterPlatformData::SVGResourceFilterPlatformData):
1256         (WebCore::SVGResourceFilterPlatformData::~SVGResourceFilterPlatformData):
1257         * platform/graphics/svg/cg/CgSupport.cpp:
1258         (WebCore::strokeBoundingBox):
1259         * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
1260         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h:
1261
1262 2007-10-28  Mark Rowe  <mrowe@apple.com>
1263
1264         Reviewed by Maciej.
1265
1266         Replace uses of isNaN and isInf with isnan and isinf.
1267
1268         * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
1269         (WebCore::JSHTMLOptionsCollection::setLength):
1270
1271 2007-10-28  Maciej Stachowiak  <mjs@apple.com>
1272
1273         Reviewed by Mark.
1274
1275         - fixed REGRESSION(r27176): Reproducible crash while trying to order dinner makes bdash sad
1276         http://bugs.webkit.org/show_bug.cgi?id=15731
1277
1278         * bindings/js/kjs_window.cpp:
1279         (KJS::Window::installTimeout): Avoid putting in or accessing empty or deleted keys.
1280         (KJS::Window::clearTimeout): ditto
1281         * manual-tests/bad-clearTimeout-crash.html: Added. Automated test not possible.
1282
1283 2007-10-28  Kevin Ollivier  <kevino@theolliviers.com>
1284
1285         wx port defines for graphics and network layers.
1286
1287         Reviewed by Darin Adler.
1288
1289         * platform/graphics/AffineTransform.h:
1290         * platform/graphics/BitmapImage.h:
1291         * platform/graphics/Color.h:
1292         * platform/graphics/FloatRect.h:
1293         * platform/graphics/GraphicsContext.h:
1294         * platform/graphics/ImageSource.h:
1295         * platform/graphics/IntPoint.h:
1296         * platform/graphics/IntRect.h:
1297         * platform/graphics/Path.h:
1298         * platform/graphics/Pen.h:
1299         * platform/network/ResourceHandle.h:
1300
1301
1302 2007-10-28  Alp Toker  <alp@atoker.com>
1303
1304         Reviewed by Anders Carlsson.
1305
1306         http://bugs.webkit.org/show_bug.cgi?id=14124
1307         [CURL] Support data URLs
1308
1309         Add data URL support (both Base64 and percent-encoded formats).
1310
1311         Inspired by code from the Qt port.
1312
1313         * platform/Base64.cpp:
1314         (WebCore::base64Decode):
1315         * platform/Base64.h:
1316         * platform/network/curl/ResourceHandleManager.cpp:
1317         (WebCore::ResourceHandleManager::startScheduledJobs):
1318         (WebCore::parseDataUrl):
1319
1320 2007-10-28  Alp Toker  <alp@atoker.com>
1321
1322         Reviewed by Adam Roben.
1323
1324         http://bugs.webkit.org/show_bug.cgi?id=15701
1325         The curl http backend does not deal properly with redirects
1326
1327         Implement http redirect support.
1328
1329         * platform/network/curl/ResourceHandleManager.cpp:
1330         (WebCore::headerCallback):
1331
1332 2007-10-28  Kevin Ollivier  <kevino@theolliviers.com>
1333
1334         Define types and accessors needed for wx implementation
1335         of platform classes. Also, turn off DisallowCTypes.h because
1336         disallowed methods appear in wx headers.
1337
1338         Reviewed by Adam Roben.
1339
1340         * config.h:
1341         * platform/ContextMenuItem.h:
1342         * platform/Cursor.h:
1343         * platform/DeprecatedString.h:
1344         * platform/DragData.h:
1345         * platform/DragImage.h:
1346         * platform/FontData.h:
1347         (WebCore::FontData::getWxFont):
1348         * platform/GlyphBuffer.h:
1349         (WebCore::GlyphBuffer::glyphAt):
1350         (WebCore::GlyphBuffer::advanceAt):
1351         (WebCore::GlyphBuffer::add):
1352         * platform/PlatformKeyboardEvent.h:
1353         (WebCore::PlatformKeyboardEvent::isWxCharEvent):
1354         * platform/PlatformMenuDescription.h:
1355         * platform/PlatformMouseEvent.h:
1356         * platform/PlatformString.h:
1357         * platform/PlatformWheelEvent.h:
1358         * platform/ScrollView.h:
1359         * platform/Widget.h:
1360         * platform/image-decoders/bmp/BMPImageDecoder.cpp:
1361         * platform/image-decoders/gif/GIFImageDecoder.cpp:
1362         * platform/image-decoders/gif/GIFImageReader.cpp:
1363         * platform/image-decoders/ico/ICOImageDecoder.cpp:
1364         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
1365         * platform/image-decoders/png/PNGImageDecoder.cpp:
1366         * platform/image-decoders/xbm/XBMImageDecoder.cpp:
1367
1368 2007-10-28  Mark Rowe  <mrowe@apple.com>
1369
1370         We don't include "config.h" in headers.
1371
1372         * dom/XMLTokenizer.h:
1373         * platform/graphics/svg/SVGResourceFilter.h:
1374         * platform/image-decoders/ImageDecoder.h:
1375         * platform/wx/FontPlatformData.h:
1376
1377 2007-10-28  Darin Adler  <darin@apple.com>
1378
1379         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h:
1380         We don't include "config.h" in headers. Hope this desn't break
1381         the non-SVG build again.
1382
1383 2007-10-28  Eric Seidel  <eric@webkit.org>
1384
1385         Build fix for non-SVG build, no review.
1386
1387         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h:
1388         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm:
1389
1390 2007-10-28  Eric Seidel  <eric@webkit.org>
1391
1392         Reviewed by Oliver.
1393
1394         Push SVGResourceFilter platform specific data down into m_platformData
1395         in preparation for implementing a non-mac filter solution.
1396         
1397         Also update a very old email address in copyright headers
1398
1399         * WebCore.xcodeproj/project.pbxproj:
1400         * platform/graphics/FloatPoint3D.cpp:
1401         (WebCore::FloatPoint3D::FloatPoint3D):
1402         * platform/graphics/FloatPoint3D.h:
1403         * platform/graphics/svg/SVGResourceFilter.cpp:
1404         (WebCore::SVGResourceFilter::SVGResourceFilter):
1405         * platform/graphics/svg/SVGResourceFilter.h:
1406         (WebCore::SVGResourceFilter::platformData):
1407         (WebCore::SVGResourceFilter::effects):
1408         * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
1409         (WebCore::SVGResourceFilter::createPlatformData):l
1410         (WebCore::SVGResourceFilter::prepareFilter):
1411         (WebCore::SVGResourceFilter::applyFilter):
1412         * platform/graphics/svg/filters/SVGDistantLightSource.h:
1413         * platform/graphics/svg/filters/SVGFEBlend.cpp:
1414         * platform/graphics/svg/filters/SVGFEBlend.h:
1415         * platform/graphics/svg/filters/SVGFEColorMatrix.cpp:
1416         * platform/graphics/svg/filters/SVGFEColorMatrix.h:
1417         * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp:
1418         * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
1419         * platform/graphics/svg/filters/SVGFEComposite.cpp:
1420         * platform/graphics/svg/filters/SVGFEComposite.h:
1421         * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
1422         * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
1423         * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
1424         * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
1425         * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp:
1426         * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
1427         * platform/graphics/svg/filters/SVGFEFlood.cpp:
1428         * platform/graphics/svg/filters/SVGFEFlood.h:
1429         * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
1430         * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
1431         * platform/graphics/svg/filters/SVGFEImage.cpp:
1432         * platform/graphics/svg/filters/SVGFEImage.h:
1433         * platform/graphics/svg/filters/SVGFEMerge.cpp:
1434         * platform/graphics/svg/filters/SVGFEMerge.h:
1435         * platform/graphics/svg/filters/SVGFEMorphology.cpp:
1436         * platform/graphics/svg/filters/SVGFEMorphology.h:
1437         * platform/graphics/svg/filters/SVGFEOffset.cpp:
1438         * platform/graphics/svg/filters/SVGFEOffset.h:
1439         * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
1440         * platform/graphics/svg/filters/SVGFESpecularLighting.h:
1441         * platform/graphics/svg/filters/SVGFETile.h:
1442         * platform/graphics/svg/filters/SVGFETurbulence.cpp:
1443         * platform/graphics/svg/filters/SVGFETurbulence.h:
1444         * platform/graphics/svg/filters/SVGFilterEffect.cpp:
1445         * platform/graphics/svg/filters/SVGFilterEffect.h:
1446         * platform/graphics/svg/filters/SVGLightSource.cpp:
1447         * platform/graphics/svg/filters/SVGLightSource.h:
1448         * platform/graphics/svg/filters/SVGPointLightSource.h:
1449         * platform/graphics/svg/filters/SVGSpotLightSource.h:
1450         * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm:
1451         (WebCore::SVGFEBlend::getCIFilter):
1452         * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
1453         (WebCore::SVGFEColorMatrix::getCIFilter):
1454         * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
1455         (WebCore::SVGFEComponentTransfer::getCIFilter):
1456         * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm:
1457         (WebCore::SVGFEComposite::getCIFilter):
1458         * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm:
1459         (WebCore::SVGFEDiffuseLighting::getCIFilter):
1460         * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm:
1461         (WebCore::SVGFEDisplacementMap::getCIFilter):
1462         * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm:
1463         (WebCore::SVGFEFlood::getCIFilter):
1464         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
1465         * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
1466         (WebCore::SVGFEImage::getCIFilter):
1467         * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm:
1468         (WebCore::SVGFEMerge::getCIFilter):
1469         * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm:
1470         (WebCore::SVGFESpecularLighting::getCIFilter):
1471         * platform/graphics/svg/mac: Added.
1472         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h: Added.
1473         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm: Added.
1474         (WebCore::SVGResourceFilterPlatformDataMac::SVGResourceFilterPlatformDataMac):
1475         (WebCore::SVGResourceFilterPlatformDataMac::~SVGResourceFilterPlatformDataMac):
1476         (WebCore::SVGResourceFilterPlatformDataMac::getCIFilterStack):
1477         (WebCore::alphaImageForImage):
1478         (WebCore::SVGResourceFilterPlatformDataMac::imageForName):
1479         (WebCore::SVGResourceFilterPlatformDataMac::setImageForName):
1480         (WebCore::SVGResourceFilterPlatformDataMac::setOutputImage):
1481         (WebCore::SVGResourceFilterPlatformDataMac::inputImage):
1482
1483 2007-10-28  Alexey Proskuryakov  <ap@webkit.org>
1484
1485         Reviewed by Adam Roben.
1486
1487         http://bugs.webkit.org/show_bug.cgi?id=15217
1488         Plugin complains that xpcom_core.dll missing
1489
1490         * plugins/win/PluginDatabaseWin.cpp:
1491         (WebCore::PluginDatabaseWin::isPluginBlacklisted): Blacklist npmozax.dll.
1492
1493 2007-10-28  Timothy Hatcher  <timothy@apple.com>
1494
1495         Reviewed by Adam.
1496
1497         Pass the Document's domain to InspectorController:didOpenDatabase. This matches
1498         what the Inspector shows for other resources.
1499
1500         * storage/Database.cpp:
1501         (WebCore::Database::openDatabase):
1502
1503         * dom/Document.h: Remove KURL.h, no longer needed.
1504
1505 2007-10-28  Timothy Hatcher  <timothy@apple.com>
1506
1507         Reviewed by Adam.
1508
1509         Bug 15728: Selected Resource background image gradient has banding
1510         http://bugs.webkit.org/show_bug.cgi?id=15728
1511
1512         - Reduced images to 1px wide that are tiled horizontally in CSS.
1513         - Corrected the -webkit-background-size usage to specify auto for the width.
1514
1515         * page/inspector/Images/attachedShadow.png:
1516         * page/inspector/Images/bottomShadow.png:
1517         * page/inspector/Images/darkShadow.png:
1518         * page/inspector/Images/gradient.png:
1519         * page/inspector/Images/gradientHighlight.png:
1520         * page/inspector/Images/gradientHighlightBottom.png:
1521         * page/inspector/Images/sidebarSelection.png:
1522         * page/inspector/Images/sidebarSelectionBlurred.png:
1523         * page/inspector/Images/sidebarSelectionBlurredTall.png:
1524         * page/inspector/Images/sidebarSelectionGray.png:
1525         * page/inspector/Images/sidebarSelectionGrayTall.png:
1526         * page/inspector/Images/sidebarSelectionTall.png:
1527         * page/inspector/inspector.css:
1528
1529 2007-10-27  Timothy Hatcher  <timothy@apple.com>
1530
1531         Reviewed by Adam.
1532
1533         Bug 15727: Resizing the resource sidebar doesn't scale the font preview or network timeline
1534         http://bugs.webkit.org/show_bug.cgi?id=15727
1535
1536         Add one window resize listener and call the new resize function on the currentPanel.
1537         Also call the currentPanel's resize function when resizing the sidebar.
1538
1539         * page/inspector/DocumentPanel.js: Implement resize and call updateTreeSelection() when
1540           the panel is shown and when resizing the DOM sidebar.
1541         * page/inspector/FontPanel.js: Implement resize.
1542         * page/inspector/NetworkPanel.js: Ditto.
1543         * page/inspector/inspector.js: Add a window resize listener.
1544
1545 2007-10-27  Maciej Stachowiak  <mjs@apple.com>
1546
1547         Reviewed by Oliver.
1548         
1549         - update for HashTable changes
1550
1551         * bindings/js/JSSVGPODTypeWrapper.h:
1552         * dom/Document.h:
1553         * dom/QualifiedName.cpp:
1554         * dom/StyledElement.cpp:
1555         * ksvg2/svg/SVGAnimatedTemplate.h:
1556         * platform/FontCache.cpp:
1557         * platform/StringHash.h:
1558         (WTF::):
1559         * platform/TextEncodingRegistry.cpp:
1560         * platform/graphics/IntSizeHash.h:
1561         (WTF::):
1562         * plugins/win/PluginPackageWin.h:
1563
1564 2007-10-28  Alp Toker  <alp@atoker.com>
1565
1566         Reviewed by Adam Roben.
1567
1568         http://bugs.webkit.org/show_bug.cgi?id=15646
1569         [GTK] caretBlinkFrequency is hard-coded in Frame.cpp
1570
1571         Abstract caretBlinkFrequency to RenderTheme.
1572
1573         * page/Frame.cpp:
1574         (WebCore::Frame::selectionLayoutChanged):
1575         * platform/gtk/RenderThemeGtk.cpp:
1576         (WebCore::RenderThemeGtk::caretShouldBlink):
1577         (WebCore::RenderThemeGtk::caretBlinkFrequency):
1578         * platform/gtk/RenderThemeGtk.h:
1579         * rendering/RenderTheme.h:
1580
1581 2007-10-27  Timothy Hatcher  <timothy@apple.com>
1582
1583         Reviewed by Adam.
1584
1585         Don't print the line number in the Inspector Console if it is Zero.
1586
1587         * page/inspector/ConsolePanel.js:
1588
1589 2007-10-27  Sam Weinig  <sam@webkit.org>
1590
1591         Reviewed by Adam Roben.
1592
1593         Fix http://bugs.webkit.org/show_bug.cgi?id=14953
1594         Implement window.console in WebCore
1595
1596         - Adds a window.console object that has 4 methods (log, info, warn, and error)
1597           that send messages to the Chrome.  This moves functionality that was in the
1598           app down into WebCore.
1599
1600         * DerivedSources.make:
1601         * WebCore.pro:
1602         * WebCore.vcproj/WebCore.vcproj:
1603         * WebCore.xcodeproj/project.pbxproj:
1604         * bindings/scripts/CodeGeneratorJS.pm: Add extended attribute
1605         to mark attributes as [Replacable] which indicates they can 
1606         overridden when set.
1607         * page/Chrome.cpp:
1608         (WebCore::Chrome::addMessageToConsole): Allow all messages to go
1609         up to the ChromeClient.
1610         * page/Console.cpp: Added.
1611         (WebCore::Console::Console):
1612         (WebCore::Console::disconnectFrame):
1613         (WebCore::Console::error):
1614         (WebCore::Console::info):
1615         (WebCore::Console::log):
1616         (WebCore::Console::warn):
1617         * page/Console.h: Added.
1618         * page/Console.idl: Added.
1619         * page/DOMWindow.cpp:
1620         (WebCore::DOMWindow::clear):
1621         (WebCore::DOMWindow::console):
1622         * page/DOMWindow.h:
1623         * page/DOMWindow.idl:
1624
1625 2007-10-27  Eric Seidel  <eric@webkit.org>
1626
1627         Reviewed by aroben.
1628         
1629         Remove legacy createFilterEffect function (causing extra filter tests to fail on windows)
1630
1631         No functional changes, thus no tests.
1632
1633         * ksvg2/svg/SVGFEBlendElement.cpp:
1634         (WebCore::SVGFEBlendElement::filterEffect):
1635         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1636         (WebCore::SVGFEColorMatrixElement::filterEffect):
1637         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
1638         (WebCore::SVGFEComponentTransferElement::filterEffect):
1639         * ksvg2/svg/SVGFECompositeElement.cpp:
1640         (WebCore::SVGFECompositeElement::filterEffect):
1641         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1642         (WebCore::SVGFEDiffuseLightingElement::filterEffect):
1643         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1644         (WebCore::SVGFEDisplacementMapElement::filterEffect):
1645         * ksvg2/svg/SVGFEFloodElement.cpp:
1646         (WebCore::SVGFEFloodElement::filterEffect):
1647         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1648         (WebCore::SVGFEGaussianBlurElement::filterEffect):
1649         * ksvg2/svg/SVGFEImageElement.cpp:
1650         (WebCore::SVGFEImageElement::filterEffect):
1651         * ksvg2/svg/SVGFEMergeElement.cpp:
1652         (WebCore::SVGFEMergeElement::filterEffect):
1653         * ksvg2/svg/SVGFEOffsetElement.cpp:
1654         (WebCore::SVGFEOffsetElement::filterEffect):
1655         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1656         (WebCore::SVGFESpecularLightingElement::filterEffect):
1657         * ksvg2/svg/SVGFETileElement.cpp:
1658         (WebCore::SVGFETileElement::filterEffect):
1659         * ksvg2/svg/SVGFETurbulenceElement.cpp:
1660         (WebCore::SVGFETurbulenceElement::filterEffect):
1661         * platform/graphics/svg/SVGResourceFilter.h:
1662         * platform/graphics/svg/cg/SVGResourceFilterCg.cpp:
1663         * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
1664         * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
1665
1666 2007-10-27  Dan Bernstein  <mitz@apple.com>
1667
1668         Reviewed by Darin Adler.
1669
1670         - fix a crash when opening Zenoss server history view
1671           <rdar://problem/5530657>
1672
1673         Test: fast/table/colgroup-relative.html
1674
1675         * rendering/LayoutState.cpp:
1676         (WebCore::LayoutState::LayoutState): Added a hasLayer() check before
1677         accessing layer().
1678
1679 2007-10-27  Julien  <julien.chaffraix@gmail.com>
1680
1681         Reviewed by Alexey.
1682
1683         http://bugs.webkit.org/show_bug.cgi?id=13141
1684         XMLHttpRequest should set readyState to 0 after abort()
1685         
1686         Test: http/tests/xmlhttprequest/xmlhttprequest-abort-readyState.html
1687
1688         * xml/XMLHttpRequest.cpp:
1689         (WebCore::XMLHttpRequest::open):
1690         (WebCore::XMLHttpRequest::abort):
1691
1692 2007-10-27  Dan Bernstein  <mitz@apple.com>
1693
1694         Reviewed by Dave Hyatt.
1695
1696         - fix rotated border images by using a temporary subimage containing
1697           only the part we want to tile
1698
1699         Test: fast/borders/border-image-rotate-transform.html
1700
1701         * platform/graphics/cg/ImageCG.cpp:
1702         (WebCore::Image::drawPatternCallback):
1703         (WebCore::Image::drawPattern):
1704
1705 2007-10-27  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
1706
1707         Reviewed by Alp.
1708
1709         http://bugs.webkit.org/show_bug.cgi?id=15722
1710         [GTK] Refactor gtk/RenderThemeGtk and implement a few more methods
1711
1712         Refactor/enhance GTK RenderTheme
1713
1714         * platform/gtk/RenderThemeGtk.cpp:
1715         (WebCore::RenderThemeGtk::supportsFocus): added TextArea, Menulist, Radio, and Checkbox Appearances
1716         (WebCore::RenderThemeGtk::supportsFocusRing): call supportsFocus() to check if focus on appearance is supported
1717         (WebCore::RenderThemeGtk::controlSupportsTints): copied from Qt and Safari ports
1718         (WebCore::RenderThemeGtk::baselinePosition): copied from Qt and Safari ports
1719         (WebCore::RenderThemeGtk::paintCheckbox): moved painting in paintButton
1720         (WebCore::RenderThemeGtk::paintRadio): moved painting in paintButton
1721         (WebCore::RenderThemeGtk::paintButton): paint the different buttons here, checking for the right appearance before doing so
1722         (WebCore::RenderThemeGtk::paintMenuList): use 0 instead of NULLs
1723         (WebCore::RenderThemeGtk::adjustTextFieldStyle):
1724         (WebCore::RenderThemeGtk::getThemeData):
1725         * platform/gtk/RenderThemeGtk.h:
1726         (WebCore::RenderThemeGtk::supportsControlTints):
1727
1728 2007-10-27  Alexey Proskuryakov  <ap@webkit.org>
1729
1730         Reviewed by Darin.
1731
1732         http://bugs.webkit.org/show_bug.cgi?id=15555
1733         XMLHttpRequest does not support charset "x-user-defined", which can
1734         facilitate loading of binary data
1735
1736         Test: http/tests/xmlhttprequest/binary-x-user-defined.html
1737
1738         * WebCore.pro:
1739         * WebCore.vcproj/WebCore.vcproj:
1740         * WebCore.xcodeproj/project.pbxproj:
1741         * platform/TextCodecUserDefined.cpp: Added.
1742         (WebCore::TextCodecUserDefined::registerEncodingNames):
1743         (WebCore::newStreamingTextDecoderUserDefined):
1744         (WebCore::TextCodecUserDefined::registerCodecs):
1745         (WebCore::TextCodecUserDefined::decode):
1746         (WebCore::encodeComplexUserDefined):
1747         (WebCore::TextCodecUserDefined::encode):
1748         * platform/TextCodecUserDefined.h: Added.
1749         * platform/TextEncodingRegistry.cpp:
1750         (WebCore::buildBaseTextCodecMaps):
1751
1752 2007-10-27  Alexey Proskuryakov  <ap@webkit.org>
1753
1754         Reviewed by Darin.
1755
1756         http://bugs.webkit.org/show_bug.cgi?id=15467
1757         Setting innerHTML to blank string in application/xhtml+xml mode
1758         throws DOM Exception 7
1759
1760         Test: fast/dom/blank-innerHTML.xhtml
1761
1762         * dom/XMLTokenizer.cpp:
1763         (WebCore::parseXMLDocumentFragment): Bail out early if the input string is empty.
1764
1765 2007-10-26  Sam Weinig  <sam@webkit.org>
1766
1767         Enable dragging the left sidebar using the separator.
1768
1769         Reviewed by Anders (unless Mitz says otherwise).
1770
1771         * page/inspector/DocumentPanel.js:
1772         * page/inspector/inspector.css:
1773         * page/inspector/inspector.html:
1774         * page/inspector/inspector.js:
1775
1776 2007-10-26  Sam Weinig  <sam@webkit.org>
1777
1778         Fix an off by one error when resizing the Inspector find window.
1779
1780         Reviewed by Hyatt.
1781
1782         * page/inspector/inspector.js:
1783
1784 2007-10-26  Jon Honeycutt  <jhoneycutt@apple.com>
1785
1786         Reviewed by Adam.
1787
1788         Fix fallout from r26072, which leads to all plugin streams for local
1789         resources being cancelled
1790
1791         * loader/win/NetscapePlugInStreamLoaderWin.cpp:
1792         (WebCore::NetscapePlugInStreamLoader::didReceiveResponse): Ensure this
1793         is an HTTP response before checking the HTTP response code
1794
1795 2007-10-26  David Hyatt  <hyatt@apple.com>
1796
1797         Fix for http://bugs.webkit.org/show_bug.cgi?id=15719, transformed box doesn't repaint properly
1798         when only translation changes.
1799
1800         Move the updating of the transform to in between the old repaint and the new repaint.
1801
1802         Reviewed by mitz
1803
1804         fast/repaint/transform-translate.html
1805
1806         * rendering/RenderLayer.cpp:
1807         (WebCore::RenderLayer::updateLayerPositions):
1808
1809 2007-10-26  Jon Honeycutt  <jhoneycutt@apple.com>
1810
1811         Reviewed by Darin.
1812
1813         <rdar://5557379> Crash in Silverlight when opening microsoft.com
1814
1815         The crash is within Silverlight, and the latest version of the plugin
1816         does not exhibit this crash, so just avoid loading this version of the
1817         plugin.
1818
1819         * plugins/win/PluginDatabaseWin.cpp: Added isPluginBlacklisted() and
1820         constants silverlightPluginMinRequiredVersionMSDWORD and
1821         silverlightPluginMinRequiredVersionLSDWORD. Their values are taken from 
1822         the version info of Silverlight 1.0.20926.0, which is a version known
1823         not to exhibit this crash
1824         (WebCore::PluginDatabaseWin::isPluginBlacklisted): Determine whether
1825         this plugin is blacklisted
1826         * plugins/win/PluginDatabaseWin.h:
1827         * plugins/win/PluginPackageWin.cpp:
1828         (WebCore::PluginPackageWin::PluginPackageWin): Initialize m_fileVersion*
1829         (WebCore::PluginPackageWin::getFileVersion):
1830         (WebCore::PluginPackageWin::storeFileVersion): Read version info for
1831         the plugin, and store the file version
1832         (WebCore::PluginPackageWin::fetchInfo): After determining the name,
1833         description, and file version, determine whether this plug-in is
1834         blacklisted. If so, return false so this plug-in isn't loaded
1835         * plugins/win/PluginPackageWin.h:
1836
1837 2007-10-26  Sam Weinig  <sam@webkit.org>
1838
1839         Reviewed by Adele Peterson.
1840
1841         Fix for <rdar://problem/5421754>
1842         m_frameName member variable in HTMLPlugInElement unnecessary
1843
1844         - Refactor the willRemove() method down into HTMLFrameOwnerElement now that
1845           we no longer need to use the m_frameName variable.
1846
1847         * html/HTMLFrameElementBase.cpp:
1848         * html/HTMLFrameElementBase.h:
1849         * html/HTMLFrameOwnerElement.cpp:
1850         (WebCore::HTMLFrameOwnerElement::willRemove):
1851         * html/HTMLFrameOwnerElement.h:
1852         * html/HTMLPlugInElement.cpp:
1853         * html/HTMLPlugInElement.h:
1854         * loader/FrameLoader.cpp:
1855         (WebCore::FrameLoader::requestObject):
1856
1857 2007-10-26  Adele Peterson  <adele@apple.com>
1858
1859         Export _wkDrawCapsLockIndicator.
1860
1861         * WebCore.base.exp:
1862
1863 2007-10-26  Adele Peterson  <adele@apple.com>
1864
1865         Reviewed by Oliver.
1866
1867         Adding WebKitSystemInterface support for the caps lock indicator
1868
1869         * platform/mac/WebCoreSystemInterface.h:
1870         * platform/mac/WebCoreSystemInterface.mm:
1871
1872 2007-10-26  Tristan O'Tierney  <tristan@apple.com>
1873
1874         Reviewed by Darin Adler.
1875
1876         <rdar://problem/5555053> REGRESSION:9A581: Window disappears when opening http://research.microsoft.com/users/darkok/
1877         The problem was caused by checkin r24654. This change moved explicit bounds checking into adjustWindowRect
1878         but failed to account for bounds checking (instead replaced with bounds clipping).  This caused issues
1879         when NaN was used. This patch goes one step further and does NaN checking to prevent the possibility of
1880         setting window bounds to NaN before an update occurs.
1881
1882         Test: fast/dom/Window/window-resize-nan.html
1883         
1884         * bindings/js/kjs_window.cpp:
1885         (KJS::adjustWindowRect):
1886         Added a new parameter, pendingChanges, which takes pending changes to the window
1887         rect, and if they are valid (not NaN) sets them on window.
1888         
1889         (KJS::WindowFunc::callAsFunction):
1890         Adjusted uses of adjustWindowRect to take new update parameter.
1891
1892 2007-10-26  Sam Weinig  <sam@webkit.org>
1893
1894         Reviewed by Tim Hatcher.
1895
1896         Fix for http://bugs.webkit.org/show_bug.cgi?id=15175
1897         Cannot copy text of errors from Web Inspector from Console view
1898
1899         * page/inspector/inspector.css: add -webkit-user-select: text for console messages.
1900
1901 2007-10-26  Sam Weinig  <sam@webkit.org>
1902
1903         Reviewed by Tim Hatcher.
1904
1905         Fix for http://bugs.webkit.org/show_bug.cgi?id=15446
1906         Web Inspector find window is not resizable
1907
1908         - Adds ability to resize the find window.
1909         - Fixes bug that messed up the find window when resizing the left sidebar. 
1910
1911         * page/inspector/inspector.css:
1912         * page/inspector/inspector.html:
1913         * page/inspector/inspector.js:
1914
1915 2007-10-26  Ada Chan  <adachan@apple.com>
1916
1917         Update m_current index after we've removed an item:
1918         - if item removed is before m_current, decrement m_current
1919         - if the current item is removed, make sure m_current is within bounds.
1920
1921         Reviewed by Darin.
1922
1923         * history/BackForwardList.cpp:
1924         (WebCore::BackForwardList::removeItem):
1925
1926 2007-10-26  Mark Rowe  <mrowe@apple.com>
1927
1928         Debug build fix.
1929
1930         * bindings/js/kjs_proxy.cpp:
1931         (WebCore::KJSProxy::~KJSProxy):
1932
1933 2007-10-26  Maciej Stachowiak  <mjs@apple.com>
1934
1935         No review, build fix.
1936
1937         * bindings/objc/WebScriptObject.mm:
1938         (+[WebScriptObject throwException:]):
1939         (-[WebScriptObject setException:]):
1940
1941 2007-10-26  Maciej Stachowiak  <mjs@apple.com>
1942
1943         Rubber Stamped by Mark.
1944
1945         - fix build
1946
1947         * bridge/mac/WebCoreScriptDebugger.mm:
1948         (-[WebCoreScriptCallFrame scopeChain]):
1949         (-[WebCoreScriptCallFrame functionName]):
1950         (-[WebCoreScriptCallFrame evaluateWebScript:]):
1951
1952 2007-10-26  Maciej Stachowiak  <mjs@apple.com>
1953
1954         Reviewed by Oliver.
1955
1956         - update for JavaScriptCore header changes
1957
1958         * bindings/objc/WebScriptObject.mm:
1959         * bridge/mac/WebCoreScriptDebugger.mm:
1960
1961 2007-10-26  Alp Toker  <alp@atoker.com>
1962
1963         Reviewed by Mark Rowe.
1964
1965         http://bugs.webkit.org/show_bug.cgi?id=15693
1966         [GTK] Paging does not work when widget is added to a GtkScrolledWindow
1967
1968         Eliminate MagicGtkScrollConstant in favour of the same calculations as
1969         GtkTextView for step and page increments. This also makes paging work,
1970         as the page increment was previously always 0.
1971
1972         * platform/gtk/ScrollViewGtk.cpp:
1973         (WebCore::ScrollView::updateScrollbars):
1974
1975 2007-10-25  Dan Bernstein  <mitz@apple.com>
1976
1977         Reviewed by Dave Hyatt and Sam Weinig.
1978
1979         Build fix
1980
1981         * platform/graphics/cg/ImageCG.cpp:
1982         (WebCore::Image::drawPattern):
1983
1984 2007-10-23  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
1985
1986         Reviewed by Alp.
1987
1988         http://bugs.webkit.org/show_bug.cgi?id=15656
1989         [GTK] Implement WebCore::Widget::isEnabled/setEnabled
1990
1991         * platform/gtk/WidgetGtk.cpp:
1992         (WebCore::Widget::isEnabled):
1993         (WebCore::Widget::setEnabled): Implemented.
1994
1995 2007-10-25  David Hyatt  <hyatt@apple.com>
1996
1997         Fix for bug 15672, background images don't tile properly inside transforms.  This patch fixes background
1998         tiling to work in the presence of transforms and fixes bugs in both SVG and CSS transforms.
1999
2000         Reviewed by aroben and mitz
2001
2002         * WebCore.base.exp:
2003         * platform/graphics/Image.cpp:
2004         (WebCore::Image::setData):
2005         * platform/graphics/cg/ImageCG.cpp:
2006         (WebCore::ImageInfo::ImageInfo):
2007         (WebCore::Image::drawPatternCallback):
2008         (WebCore::Image::drawPattern):
2009         * platform/graphics/mac/GraphicsContextMac.mm:
2010         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
2011         * platform/mac/WebCoreSystemInterface.h:
2012         * platform/mac/WebCoreSystemInterface.mm:
2013
2014 2007-10-25  Brady Eidson  <beidson@apple.com>
2015
2016         Blind build fix attempt
2017
2018         * WebCore.pro:
2019
2020 2007-10-25  Brady Eidson  <beidson@apple.com>
2021
2022         Reviewed by Anders and Sam
2023
2024         Bulk rename of platform/sql/SQL* to platform/sql/SQLite*
2025         
2026         This is more accurate in that there is no realistic "SQL" abstraction, the classes are obviously
2027         tied extremely close to SQLite, and is necessitated by the introduction of "SQLTransaction" in 
2028         the HTML5 database API which we are adopting.
2029
2030         * WebCore.vcproj/WebCore.vcproj:
2031         * WebCore.xcodeproj/project.pbxproj:
2032         * loader/icon/IconDatabase.cpp:
2033         (WebCore::IconDatabase::iconDatabaseSyncThread):
2034         (WebCore::databaseVersionNumber):
2035         (WebCore::isValidDatabase):
2036         (WebCore::createDatabaseTables):
2037         (WebCore::IconDatabase::performOpenInitialization):
2038         (WebCore::IconDatabase::checkIntegrity):
2039         (WebCore::IconDatabase::performURLImport):
2040         (WebCore::IconDatabase::writeToDatabase):
2041         (WebCore::IconDatabase::pruneUnretainedIcons):
2042         (WebCore::IconDatabase::checkForDanglingPageURLs):
2043         (WebCore::IconDatabase::imported):
2044         (WebCore::IconDatabase::setImported):
2045         (WebCore::readySQLiteStatement):
2046         (WebCore::IconDatabase::setIconIDForPageURLInSQLDatabase):
2047         (WebCore::IconDatabase::removePageURLFromSQLDatabase):
2048         (WebCore::IconDatabase::getIconIDForIconURLFromSQLDatabase):
2049         (WebCore::IconDatabase::addIconURLToSQLDatabase):
2050         (WebCore::IconDatabase::getImageDataForIconURLFromSQLDatabase):
2051         (WebCore::IconDatabase::removeIconFromSQLDatabase):
2052         (WebCore::IconDatabase::writeIconSnapshotToSQLDatabase):
2053         * loader/icon/IconDatabase.h:
2054         * loader/icon/IconRecord.cpp:
2055         * platform/sql/SQLAuthorizer.cpp: Removed.
2056         * platform/sql/SQLAuthorizer.h: Removed.
2057         * platform/sql/SQLDatabase.cpp: Removed.
2058         * platform/sql/SQLDatabase.h: Removed.
2059         * platform/sql/SQLStatement.cpp: Removed.
2060         * platform/sql/SQLStatement.h: Removed.
2061         * platform/sql/SQLTransaction.cpp: Removed.
2062         * platform/sql/SQLTransaction.h: Removed.
2063         * platform/sql/SQLiteAuthorizer.cpp: Copied from platform/sql/SQLAuthorizer.cpp.
2064         * platform/sql/SQLiteAuthorizer.h: Copied from platform/sql/SQLAuthorizer.h.
2065         (WebCore::SQLiteAuthorizer::~SQLiteAuthorizer):
2066         * platform/sql/SQLiteDatabase.cpp: Copied from platform/sql/SQLDatabase.cpp.
2067         (WebCore::SQLiteDatabase::SQLiteDatabase):
2068         (WebCore::SQLiteDatabase::~SQLiteDatabase):
2069         (WebCore::SQLiteDatabase::open):
2070         (WebCore::SQLiteDatabase::close):
2071         (WebCore::SQLiteDatabase::setFullsync):
2072         (WebCore::SQLiteDatabase::setSynchronous):
2073         (WebCore::SQLiteDatabase::setBusyTimeout):
2074         (WebCore::SQLiteDatabase::setBusyHandler):
2075         (WebCore::SQLiteDatabase::executeCommand):
2076         (WebCore::SQLiteDatabase::returnsAtLeastOneResult):
2077         (WebCore::SQLiteDatabase::tableExists):
2078         (WebCore::SQLiteDatabase::clearAllTables):
2079         (WebCore::SQLiteDatabase::runVacuumCommand):
2080         (WebCore::SQLiteDatabase::lastInsertRowID):
2081         (WebCore::SQLiteDatabase::lastChanges):
2082         (WebCore::SQLiteDatabase::lastError):
2083         (WebCore::SQLiteDatabase::lastErrorMsg):
2084         (WebCore::SQLiteDatabase::authorizerFunction):
2085         (WebCore::SQLiteDatabase::setAuthorizer):
2086         (WebCore::SQLiteDatabase::lock):
2087         (WebCore::SQLiteDatabase::unlock):
2088         * platform/sql/SQLiteDatabase.h: Copied from platform/sql/SQLDatabase.h.
2089         * platform/sql/SQLiteStatement.cpp: Copied from platform/sql/SQLStatement.cpp.
2090         (WebCore::SQLiteStatement::SQLiteStatement):
2091         (WebCore::SQLiteStatement::~SQLiteStatement):
2092         (WebCore::SQLiteStatement::prepare):
2093         * platform/sql/SQLiteStatement.h: Copied from platform/sql/SQLStatement.h.
2094         (WebCore::SQLiteStatement::database):
2095         * platform/sql/SQLiteTransaction.cpp: Copied from platform/sql/SQLTransaction.cpp.
2096         (WebCore::SQLiteTransaction::SQLiteTransaction):
2097         (WebCore::SQLiteTransaction::~SQLiteTransaction):
2098         (WebCore::SQLiteTransaction::begin):
2099         (WebCore::SQLiteTransaction::commit):
2100         (WebCore::SQLiteTransaction::rollback):
2101         * platform/sql/SQLiteTransaction.h: Copied from platform/sql/SQLTransaction.h.
2102         * storage/Database.cpp:
2103         (WebCore::retrieveTextResultFromDatabase):
2104         (WebCore::setTextValueInDatabase):
2105         (WebCore::Database::performExecuteSql):
2106         (WebCore::Database::performGetTableNames):
2107         (WebCore::Database::executeSql):
2108         * storage/Database.h:
2109         * storage/DatabaseAuthorizer.h:
2110         * storage/DatabaseTracker.cpp:
2111         (WebCore::DatabaseTracker::fullPathForDatabase):
2112         (WebCore::DatabaseTracker::populateOrigins):
2113         (WebCore::DatabaseTracker::databaseNamesForOrigin):
2114         (WebCore::DatabaseTracker::addDatabase):
2115         * storage/DatabaseTracker.h:
2116
2117 2007-10-25  Alexey Proskuryakov  <ap@webkit.org>
2118
2119         Reviewed by Darin.
2120
2121         http://bugs.webkit.org/show_bug.cgi?id=15650
2122         XML attribute nodes are not importable
2123
2124         Tests: fast/dom/import-attribute-node.html
2125                fast/dom/import-document-fragment.html
2126
2127         * dom/Document.cpp:
2128         (WebCore::Document::importNode): Implemented for Attribute and DocumentFragment nodes.
2129
2130 2007-10-25  Dan Bernstein  <mitz@apple.com>
2131
2132         Reviewed by Dave Hyatt.
2133
2134         - fix http://bugs.webkit.org/show_bug.cgi?id=15362
2135           <rdar://problem/5558715> Safari Crashes when opening a JS TreeGrid widget
2136
2137         Test: fast/dynamic/insert-before-table-part-in-continuation.html
2138
2139         * rendering/RenderFlow.cpp:
2140         (WebCore::RenderFlow::addChildWithContinuation): If beforeChild's
2141         parent is an anonymous table part, let the table figure out where to
2142         insert the new child.
2143
2144 2007-10-25  Alp Toker  <alp@atoker.com>
2145
2146         Reviewed by Brady.
2147
2148         http://bugs.webkit.org/show_bug.cgi?id=15686
2149         GtkLauncher aborts on launch due to uninitialized threading subsystem
2150
2151         Re-enable database support in the GTK+ port, with a fix.
2152
2153         * WebCore.pro:
2154
2155 2007-10-25  Jon Honeycutt  <jhoneycutt@apple.com>
2156
2157         Reviewed by Steve.
2158
2159         <rdar://5548217>: [NTS] Java 6 update 3 crashes Safari when loading a 
2160         java page
2161
2162         Previous patch erroneously compared a path and a
2163         path-including-filename. This corrects that. It also caches the result
2164         of safariPluginsPath() and uses shell API funcs for determining filename
2165         and parent directory from a full path.
2166
2167         * ChangeLog:
2168         * plugins/win/PluginDatabaseWin.cpp:
2169         (WebCore::safariPluginsPath): Cache return value. Use API functions to
2170         build the path
2171         (WebCore::PluginDatabaseWin::pluginForMIMEType): Compare again plugin's
2172         parent directory, not full path
2173         (WebCore::PluginDatabaseWin::pluginForExtension): Same
2174         * plugins/win/PluginPackageWin.cpp:
2175         (WebCore::PluginPackageWin::PluginPackageWin): Store parent directory
2176         * plugins/win/PluginPackageWin.h:
2177         (WebCore::PluginPackageWin::parentDirectory):
2178         * plugins/win/PluginStreamWin.cpp:
2179         (WebCore::PluginStreamWin::didReceiveData):
2180
2181 2007-10-25  Alp Toker  <alp@atoker.com>
2182
2183         Unreviewed fix to make the GTK+ port run.
2184
2185         http://bugs.webkit.org/show_bug.cgi?id=15686
2186         GtkLauncher aborts on launch due to uninitialized threading subsystem
2187
2188         Disable database support until #15686 is fixed.
2189
2190         * WebCore.pro:
2191
2192 2007-10-25  Simon Hausmann  <hausmann@kde.org>
2193
2194         Reviewed by Lars.
2195
2196         Fixed a crash in the Qt 4.4 based text iterators when they're called with a null string.
2197
2198         * platform/qt/TextBreakIteratorQt.cpp:
2199         (WebCore::wordBreakIterator):
2200         (WebCore::characterBreakIterator):
2201         (WebCore::lineBreakIterator):
2202         (WebCore::sentenceBreakIterator):
2203
2204 2007-10-25  Holger Freyther  <zecke@selfish.org>
2205
2206         Reviewed by Simon Hausmann <hausmann@kde.org>.
2207
2208         * We need to set a != 0 status code for the fast/loader/xmlhttprequest-missing-file-exception.html
2209         * libxml2 has the semantic that when writing an empty string and finishing it will report an error. For QXmlStreamReader this is valid.
2210         * This is causing some regressions...
2211         
2212
2213         * dom/XMLTokenizer.cpp:
2214         (WebCore::XMLTokenizer::XMLTokenizer):
2215         (WebCore::XMLTokenizer::write):
2216         (WebCore::XMLTokenizer::end):
2217         * dom/XMLTokenizer.h:
2218
2219 2007-10-25  Holger Freyther  <zecke@selfish.org>
2220
2221         Reviewed by Simon Hausmann <hausmann@kde.org>.
2222
2223         * fast/dom/onerror-img.html regressed due checking the JobStates because in case of error (e.g. not being able to connect) the job will no be started.
2224         * Use the error message from Qt. It might or might not be translated.
2225         
2226
2227         WARNING: NO TEST CASES ADDED OR CHANGED
2228
2229         * platform/network/qt/ResourceHandleQt.cpp:
2230         (WebCore::WebCoreSynchronousLoader::didFail):
2231
2232 2007-10-25  Holger Freyther  <zecke@selfish.org>
2233
2234         Reviewed by Simon Hausmann <hausmann@kde.org>.
2235
2236         * Implement our own queuing of network jobs to allow special handling of synchronous jobs. This makes us pass the fast/dom/xmlhttprequest-html-response-encoding.html test without a crash. Sync jobs will get a special treatment over the normals ones and in theory more than one sync job is supported.
2237         * This should be thread-safe besides QWebNetworkJob::{ref,deref}
2238         
2239
2240         * platform/network/qt/ResourceHandleQt.cpp:
2241         (WebCore::ResourceHandle::loadResourceSynchronously):
2242
2243 2007-10-25  Alp Toker  <alp@atoker.com>
2244
2245         Reviewed by Mark Rowe.
2246
2247         Add support for list box theme colors and styled menu list buttons.
2248
2249         Remove obsolete FIXMEs.
2250
2251         * platform/gtk/RenderThemeGtk.cpp:
2252         (WebCore::RenderThemeGtk::RenderThemeGtk):
2253         (WebCore::RenderThemeGtk::paintCheckbox):
2254         (WebCore::RenderThemeGtk::paintRadio):
2255         (WebCore::RenderThemeGtk::paintButton):
2256         (WebCore::RenderThemeGtk::adjustMenuListStyle):
2257         (WebCore::RenderThemeGtk::paintMenuList):
2258         (WebCore::RenderThemeGtk::activeListBoxSelectionBackgroundColor):
2259         (WebCore::RenderThemeGtk::inactiveListBoxSelectionBackgroundColor):
2260         (WebCore::RenderThemeGtk::activeListBoxSelectionForegroundColor):
2261         (WebCore::RenderThemeGtk::inactiveListBoxSelectionForegroundColor):
2262         (WebCore::RenderThemeGtk::gtkTreeView):
2263         * platform/gtk/RenderThemeGtk.h:
2264
2265 2007-10-25  Eric Seidel  <eric@webkit.org>
2266
2267         Reviewed by Geoff.
2268
2269         * bindings/js/kjs_window.h: fix bogus comment, s/DOMNode/DOMObject/
2270
2271 2007-10-24  Eric Seidel  <eric@webkit.org>
2272
2273         Reviewed by Maciej.
2274         
2275         Make Window subclass from JSGlobalObject (for a .5% win in Sunspider)
2276         http://bugs.webkit.org/show_bug.cgi?id=15681
2277
2278         No test cases necessary, no functional changes.
2279
2280         * WebCore.xcodeproj/project.pbxproj:
2281         * bindings/js/kjs_binding.cpp:
2282         (KJS::ScriptInterpreter::ScriptInterpreter):
2283         * bindings/js/kjs_binding.h:
2284         * bindings/js/kjs_proxy.cpp:
2285         (WebCore::KJSProxy::initScriptIfNeeded):
2286         * bindings/js/kjs_window.cpp:
2287         (KJS::Window::Window):
2288         * bindings/js/kjs_window.h:
2289         * bindings/objc/WebScriptObject.mm:
2290         (_didExecute):
2291         * bridge/mac/WebCoreScriptDebugger.mm:
2292
2293 2007-10-24  Adam Roben  <aroben@apple.com>
2294
2295         Add font database initialization code to WebCore
2296
2297         Reviewed by Ada.
2298
2299         * WebCore.vcproj/WebCore.vcproj: Added FontDatabase.{cpp,h}.
2300         * platform/win/FontDatabase.cpp: Added.
2301         (WebCore::systemFontsDirectory):
2302         (WebCore::fontsPlistPath):
2303         (WebCore::systemHasFontsNewerThanFontsPlist):
2304         (WebCore::readFontPlist):
2305         (WebCore::populateFontDatabaseFromPlist):
2306         (WebCore::populateFontDatabaseFromFileSystem):
2307         (WebCore::writeFontDatabaseToPlist):
2308         (WebCore::populateFontDatabase): This is the only function callable
2309         from outside this file. It populates the font database once, either
2310         from the fonts plist, or from the filesystem (and then saves a new
2311         fonts plist).
2312         * platform/win/FontDatabase.h: Added.
2313
2314 2007-10-24  Justin Garcia  <justin.garcia@apple.com>
2315
2316         Reviewed by Darin Adler.
2317
2318         Correcting the fix for:
2319         <rdar://problem/5544856> 
2320         REGRESSION: After typing 2-byte text, undo only undoes one keystroke at a time
2321         
2322         Made removal of the previous composition part of the current Undo step in the 
2323         case where the new composition is the empty string, too.
2324
2325         * editing/Editor.cpp:
2326         (WebCore::Editor::confirmComposition): Call the new TypingCommand::deleteSelection,
2327         which either has the currently open typing command delete the current selection, or
2328         opens a new typing command (of type DeleteSelection) if one is not already open.
2329         (WebCore::Editor::setComposition): Ditto.
2330         * editing/TypingCommand.cpp:
2331         (WebCore::TypingCommand::deleteSelection): Added.
2332         (WebCore::TypingCommand::doApply): Handle DeleteSelection.
2333         (WebCore::TypingCommand::deleteKeyPressed): Clarified which deleteSelection
2334         is called.
2335         (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
2336         (WebCore::TypingCommand::preservesTypingStyle): Handle DeleteSelection.
2337         * editing/TypingCommand.h:
2338
2339 2007-10-24  Sam Weinig  <sam@webkit.org>
2340
2341         Build fix.
2342
2343         * WebCore.vcproj/WebCore.vcproj:
2344
2345 2007-10-24  Alice Liu  <alice.liu@apple.com>
2346
2347         Reviewed by Oliver.
2348
2349         Fix <rdar://5410959>  editing/selection/drag-to-contenteditable-iframe.html fails on Windows
2350         
2351         * page/win/EventHandlerWin.cpp:
2352         (WebCore::EventHandler::passMouseMoveEventToSubframe):
2353         Some mouse move events are actually drags, which on mac return early from this function.
2354         Adding the same logic to its Windows equivalent.  
2355
2356 2007-10-24  Brady Eidson  <beidson@apple.com>
2357
2358         Reviewed by Anders
2359
2360         <rdar://5554130> DatabaseTracker.o has a global initializer
2361
2362         Since DatabaseTracker is a singleton, it makes much more sense to keep the database path as a member variable.
2363         Now constructing the shared DatabaseTracker no longer implicitly opens it - It is only opened when the databases 
2364         path is set.
2365         
2366         * WebCore.vcproj/WebCore.vcproj: Copy WebCore/storage headers for WebKit build
2367         
2368         * storage/Database.cpp:
2369         (WebCore::Database::~Database): Remove bogus assertion
2370         
2371         * storage/DatabaseTracker.cpp:
2372         (WebCore::DatabaseTracker::DatabaseTracker): Does nothing now!  Move this code to openTrackerDatabase
2373         (WebCore::DatabaseTracker::setDatabasePath): Set the member variable, also closing/opening the database if needed
2374         (WebCore::DatabaseTracker::databasePath):
2375         (WebCore::DatabaseTracker::openTrackerDatabase): To open and validate the Databases db, moved from the c'tor
2376         (WebCore::DatabaseTracker::fullPathForDatabase): Return the member variable
2377         * storage/DatabaseTracker.h:
2378
2379 2007-10-24  David Hyatt  <hyatt@apple.com>
2380
2381         Don't try to gap fill transformed selections.  Fix the invalidation of selection to use the clip to visible content
2382         code path so that it works with multi-column layouts and transforms.
2383
2384         Reviewed by aroben
2385
2386         * rendering/RenderBlock.cpp:
2387         (WebCore::RenderBlock::isSelectionRoot):
2388         (WebCore::RenderBlock::fillSelectionGaps):
2389         * rendering/RenderView.cpp:
2390         (WebCore::RenderView::setSelection):
2391
2392 2007-10-24  Eric Seidel  <eric@webkit.org>
2393
2394         No review, I want to tickle the CIA bot to test changes,
2395         and took this as an opportunity to clean up some old change logs.
2396
2397         * ChangeLog-2005-08-23: update email address
2398         * ChangeLog-2006-12-31: fix spelling mistakes
2399
2400 2007-10-24  Dan Bernstein  <mitz@apple.com>
2401
2402         Reviewed by Oliver Hunt.
2403
2404         - add "(anonymous)" to the renderName of anonymous table cells, rows and sections
2405
2406         * rendering/RenderTableCell.h:
2407         (WebCore::RenderTableCell::renderName):
2408         * rendering/RenderTableRow.h:
2409         (WebCore::RenderTableRow::renderName):
2410         * rendering/RenderTableSection.h:
2411         (WebCore::RenderTableSection::renderName):
2412
2413 2007-10-24  Timothy Hatcher  <timothy@apple.com>
2414
2415         Reviewed by Adam.
2416
2417         Bug 15476: DOM tree fully expands some elements when arrowing up
2418         http://bugs.webkit.org/show_bug.cgi?id=15476
2419
2420         Add a new expandTreeElementsWhenArrowing option to TreeOutline. This option
2421         is used only for the sidebar and search results.
2422
2423         * page/inspector/inspector.js: Opt-in for the sidebar and search results.
2424         * page/inspector/treeoutline.js: Add expandTreeElementsWhenArrowing and pass
2425           this option to traverseNextTreeElement and traversePreviousTreeElement.
2426
2427 2007-10-24  Anders Carlsson  <andersca@apple.com>
2428
2429         Reviewed by Geoff and Mitz.
2430
2431         <rdar://problem/5493833>
2432         REGRESSION: ~5MB of image data leaked @ cuteoverload.com (often seen while browsing other sites, too)
2433
2434         * bindings/js/kjs_binding.cpp:
2435         (KJS::ScriptInterpreter::markDOMNodesForDocument):
2436         If an image element that is currently loading an image is not in the document,
2437         it should still be marked.
2438         
2439         * bindings/js/kjs_html.cpp:
2440         (WebCore::ImageConstructorImp::construct):
2441         Force the document wrapper to be created.
2442         
2443         * html/HTMLImageElement.h:
2444         (WebCore::HTMLImageElement::haveFiredLoadEvent):
2445         New method which calls down to the image loader.
2446         
2447         * html/HTMLImageLoader.cpp:
2448         (WebCore::HTMLImageLoader::HTMLImageLoader):
2449         (WebCore::HTMLImageLoader::~HTMLImageLoader):
2450         (WebCore::HTMLImageLoader::setLoadingImage):
2451         (WebCore::HTMLImageLoader::dispatchLoadEvent):
2452         Remove code that's not needed anymore.
2453         
2454         * html/HTMLImageLoader.h:
2455         (WebCore::HTMLImageLoader::haveFiredLoadEvent):
2456         Make this public.
2457
2458 2007-10-23  Adam Roben  <aroben@apple.com>
2459
2460         Move Windows safe file creation code into WebCore from WebPreferences
2461
2462         Reviewed by Brady.
2463
2464         * platform/FileSystem.h:
2465         * platform/win/FileSystemWin.cpp:
2466         (WebCore::safeCreateFile): Moved here from WebKit/win/WebPreferences.cpp.
2467
2468 2007-10-23  Adam Roben  <aroben@apple.com>
2469
2470         Add methods to FileSystemWin to get some user profile directories
2471
2472         These directories are used to hold things like preferences, caches,
2473         etc.
2474
2475         Reviewed by Brady.
2476
2477         * platform/FileSystem.h: Added new method declarations for Windows
2478         only.
2479         * platform/win/FileSystemWin.cpp:
2480         (WebCore::bundleName): Added.
2481         (WebCore::storageDirectory): Added.
2482         (WebCore::cachedStorageDirectory): Added.
2483         (WebCore::localUserSpecificStorageDirectory): Added. Returns the
2484         directory where WebKit should store any user-specific data that should
2485         stay local to the current machine (i.e., shouldn't be stored in a
2486         roaming profile).
2487         (WebCore::roamingUserSpecificStorageDirectory): Added. Returns the
2488         directory where WebKit should store any user-specific data that should
2489         move with the user from machine to machine (i.e., should be stored in
2490         a roaming profile).
2491
2492 2007-10-24  Alp Toker  <alp@atoker.com>
2493
2494         Reviewed by Mark Rowe.
2495
2496         http://bugs.webkit.org/show_bug.cgi?id=15659
2497         InlineTextBox does not setStrokeStyle() as needed
2498
2499         GraphicsContextCairo workaround to support a GraphicsContextCG quirk:
2500
2501         Save and restore the StrokeStyle manually.
2502
2503         * platform/graphics/cairo/GraphicsContextCairo.cpp:
2504         (WebCore::GraphicsContext::drawLineForText):
2505
2506 2007-10-24  Julien Chaffraix  <julien.chaffraix@gmail.com>
2507
2508         Reviewed by Darin.
2509
2510         Patch for http://bugs.webkit.org/show_bug.cgi?id=15356
2511         Bug 15356: getResponseHeader and getAllResponseHeaders do not throw exceptions
2512
2513         - getAllResponseHeaders and getResponseHeader throws INVALID_STATE_ERR exception as specified in the specification
2514
2515         - Add the check to field-name production in getResponseHeader (call to isValidToken) and returns an empty string if the header is not valid (Opera and IE behaviour)
2516
2517         - Updated XMLHttpRequest::responseMIMEType() to keep its behaviour
2518
2519         Tests: http/tests/xmlhttprequest/xmlhttprequest-InvalidStateException-getAllRequestHeaders.html
2520                http/tests/xmlhttprequest/xmlhttprequest-InvalidStateException-getRequestHeader.html
2521                http/tests/xmlhttprequest/xmlhttprequest-invalidHeader-getRequestHeader.html
2522
2523         * bindings/js/JSXMLHttpRequest.cpp:
2524         (KJS::JSXMLHttpRequestPrototypeFunction::callAsFunction):
2525         * xml/XMLHttpRequest.cpp:
2526         (WebCore::XMLHttpRequest::getAllResponseHeaders):
2527         (WebCore::XMLHttpRequest::getResponseHeader):
2528         (WebCore::XMLHttpRequest::responseMIMEType):
2529         * xml/XMLHttpRequest.h:
2530
2531 2007-10-24  Lars Knoll  <lars@trolltech.com>
2532
2533         Reviewed by Simon.
2534
2535         implement most of DragData.
2536
2537         WARNING: NO TEST CASES ADDED OR CHANGED
2538
2539         * platform/qt/DragDataQt.cpp:
2540         (WebCore::DragData::containsColor):
2541         (WebCore::DragData::containsFiles):
2542         (WebCore::DragData::asFilenames):
2543         (WebCore::DragData::containsPlainText):
2544         (WebCore::DragData::asPlainText):
2545         (WebCore::DragData::asColor):
2546         (WebCore::DragData::containsCompatibleContent):
2547         (WebCore::DragData::containsURL):
2548
2549 2007-10-24  Lars Knoll  <lars@trolltech.com>
2550
2551         Reviewed by Simon.
2552
2553         remove a stupid notImplemented() warning and implement PasteBoad::clear().
2554
2555         WARNING: NO TEST CASES ADDED OR CHANGED
2556
2557         * platform/qt/PasteboardQt.cpp:
2558
2559 2007-10-24  Lars Knoll  <lars@trolltech.com>
2560
2561         Reviewed by Simon.
2562
2563         implement Pasteboard::documentFragment(), and fix a mem leak.
2564
2565         WARNING: NO TEST CASES ADDED OR CHANGED
2566
2567         * platform/qt/PasteboardQt.cpp:
2568         (WebCore::Pasteboard::generalPasteboard):
2569         (WebCore::Pasteboard::documentFragment):
2570
2571 2007-10-24  Lars Knoll  <lars@trolltech.com>
2572
2573         Reviewed by Simon.
2574
2575         Simplify the PlatformKeyEvent constructor. No need to have an extra boolean for isKeyUp in there, as the QKeyEvent has the information.
2576
2577         WARNING: NO TEST CASES ADDED OR CHANGED
2578
2579         * platform/PlatformKeyboardEvent.h:
2580         * platform/qt/PlatformKeyboardEventQt.cpp:
2581         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2582
2583 2007-10-24  Lars Knoll  <lars@trolltech.com>
2584
2585         Reviewed by Simon.
2586
2587         use the new QTextBoundaryFinder class in Qt.
2588
2589         WARNING: NO TEST CASES ADDED OR CHANGED
2590
2591         * platform/qt/TextBoundaries.cpp:
2592         (WebCore::findNextWordFromIndex):
2593         (WebCore::findWordBoundary):
2594         * platform/qt/TextBreakIteratorQt.cpp:
2595         (WebCore::wordBreakIterator):
2596         (WebCore::characterBreakIterator):
2597         (WebCore::lineBreakIterator):
2598         (WebCore::sentenceBreakIterator):
2599         (WebCore::textBreakFirst):
2600         (WebCore::textBreakNext):
2601         (WebCore::textBreakPreceding):
2602         (WebCore::textBreakFollowing):
2603         (WebCore::textBreakCurrent):
2604         (WebCore::isTextBreak):
2605
2606 2007-10-24  Darin Adler  <darin@apple.com>
2607
2608         Reviewed by Maciej.
2609
2610         - http://bugs.webkit.org/show_bug.cgi?id=15657
2611           change static hash tables to use powers of two for speed
2612
2613         * bindings/scripts/CodeGeneratorJS.pm: Updated to generate new format.
2614
2615 2007-10-24  Simon Hausmann  <hausmann@kde.org>
2616
2617         Reviewed by Lars.
2618
2619         Make the implementation of pathByAppendingComponent use QDir.
2620
2621         * platform/qt/FileSystemQt.cpp:
2622
2623 2007-10-24  David Hyatt  <hyatt@apple.com>
2624
2625         Make repainting work with transforms.
2626
2627         Reviewed by John Sullivan
2628
2629         * rendering/RenderBox.cpp:
2630         (WebCore::RenderBox::computeAbsoluteRepaintRect):
2631
2632 2007-10-23  Alp Toker  <alp@atoker.com>
2633
2634         Reviewed by Maciej.
2635
2636         http://bugs.webkit.org/show_bug.cgi?id=14412
2637         [GDK] Clipboard support
2638
2639         Initial clipboard implementation for the GTK+ port.
2640
2641         * platform/gtk/ClipboardGtk.cpp:
2642         (WebCore::Editor::newGeneralClipboard):
2643         * platform/gtk/PasteboardGtk.cpp:
2644         (WebCore::Pasteboard::generalPasteboard):
2645         (WebCore::Pasteboard::Pasteboard):
2646         (WebCore::Pasteboard::~Pasteboard):
2647         (WebCore::Pasteboard::writeSelection):
2648         (WebCore::Pasteboard::writeImage):
2649         (WebCore::Pasteboard::clear):
2650         (WebCore::Pasteboard::plainText):
2651         * platform/gtk/TemporaryLinkStubs.cpp:
2652
2653 2007-10-23  Timothy Hatcher  <timothy@apple.com>
2654
2655         Reviewed by Adam.
2656
2657         Fixes the Network panel so that it refreshes as needed.
2658
2659         * page/inspector/ConsolePanel.js: Call the base class show() and hide() first.
2660         * page/inspector/NetworkPanel.js: Add refreshNeeded and refreshIfNeeded back. Ditto.
2661
2662 2007-10-23  Justin Garcia  <justin.garcia@apple.com>
2663
2664         Reviewed by Oliver Hunt.
2665
2666         <rdar://problem/5544856> 
2667         REGRESSION: After typing 2-byte text, undo only undoes one keystroke at a time
2668         
2669         No layout test for now because I'm having trouble getting Undo during a layout
2670         test to only undo the last Undo step, and I want to write a test that fails
2671         without the code change.
2672
2673         * editing/Editor.cpp:
2674         (WebCore::Editor::confirmComposition): When we replace the previous composition,
2675         delete it with a sub-command of the command used to insert the new composition,
2676         instead of with a separate command.  No new code was added because insertText
2677         already deletes the current selection.
2678         (WebCore::Editor::setComposition): Ditto.
2679
2680 2007-10-23  Adam Roben  <aroben@apple.com>
2681
2682         Fix the behavior of pathByAppendingComponent when path is empty
2683
2684         We now use the Windows Shell API function PathAppendW instead of
2685         rolling our own broken implementation.
2686
2687         Reviewed by Anders.
2688
2689         * platform/win/FileSystemWin.cpp:
2690         (WebCore::pathByAppendingComponent):
2691
2692 2007-10-23  Adele Peterson  <adele@apple.com>
2693
2694         Reviewed by Darin.
2695
2696         Fix for <rdar://problem/5543228> CrashTracer: [USER] 2 crashes in Safari at com.apple.WebCore: WebCore::HTMLInputElement::defaultEventHandler + 872
2697
2698         Test: fast/forms/textfield-onchange-deletion.html
2699
2700         * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
2701           Refetch the renderer since arbitrary JS code run during onchange can do anything, including destroying it.
2702
2703 2007-10-23  Timothy Hatcher  <timothy@apple.com>
2704
2705         Reviewed by Sam Weinig.
2706
2707         - Made seperate files for the various classes in ResourcePanel.js.
2708         - Broke up ResourcePanel.js and created seperate panel classes for different resource types.
2709         - Moved View code down to the Panel base-class.
2710         - Reduced code duplication in DatabasePanel.js by sub-classing from the new ResourcePanel.
2711
2712         * page/inspector/DatabasePanel.js:
2713         * page/inspector/DocumentPanel.js: Added.
2714         * page/inspector/FontPanel.js: Added.
2715         * page/inspector/ImagePanel.js: Added.
2716         * page/inspector/Panel.js: Added.
2717         * page/inspector/PropertiesSection.js: Added.
2718         * page/inspector/Resource.js:
2719         * page/inspector/ResourcePanel.js:
2720         * page/inspector/SidebarPane.js: Added.
2721         * page/inspector/SourcePanel.js: Added.
2722         * page/inspector/inspector.css:
2723         * page/inspector/inspector.html:
2724         * page/inspector/inspector.js:
2725
2726 2007-10-23  Anders Carlsson  <andersca@apple.com>
2727
2728         Correct the version #if check.
2729         
2730         * platform/sql/SQLDatabase.cpp:
2731         (WebCore::SQLDatabase::authorizerFunction):
2732
2733 2007-10-23  Jon Honeycutt  <jhoneycutt@apple.com>
2734
2735         Reviewed by Anders.
2736
2737         <rdar://5548217>: [NTS] Java 6 update 3 crashes Safari when loading a 
2738         java page
2739
2740         It is possible to load Mozilla's Java plugin instead of our own, which
2741         can lead to a crash. The fix is to prefer plugins in our own Plugins
2742         directory when searching for a plugin.
2743
2744         * plugins/win/PluginDatabaseWin.cpp:
2745         (WebCore::safariPluginsPath): Return the path to our own Plugins
2746         directory
2747         (WebCore::PluginDatabaseWin::defaultPluginPaths): Use new method
2748         safariPluginsPath()
2749         (WebCore::PluginDatabaseWin::pluginForMIMEType): If the plugin's path is
2750         our Plugins path, return this plugin. Otherwise, continue scanning the
2751         list of plugins
2752         (WebCore::PluginDatabaseWin::pluginForExtension): Same
2753         * plugins/win/PluginPackageWin.h:
2754         (WebCore::PluginPackageWin::path): Return this plugin's path
2755
2756 2007-10-23  Jasper Bryant-Greene  <m@ni.ac.nz>
2757
2758         Reviewed by Darin.
2759
2760         http://bugs.webkit.org/show_bug.cgi?id=15058
2761         Precedence fault in KeyEventGdk causes shift, control, alt etc to work incorrectly
2762
2763         Corrected precendence fault which was causing Shift, Alt, Control and
2764         Meta to behave incorrectly on GTK.
2765
2766         Coding style fix by Alp.
2767
2768         * platform/gtk/KeyEventGtk.cpp:
2769         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2770
2771 2007-10-23  Sam Weinig  <sam@webkit.org>
2772
2773         Reviewed by Tim Hatcher.
2774
2775         Add resizing of the DOM view right sidebar.  This allows us to actually see the values now.
2776
2777         * page/inspector/ResourcePanel.js:
2778         * page/inspector/inspector.css:
2779         * page/inspector/inspector.js:
2780         * page/inspector/utilities.js:
2781
2782 2007-10-23  David Hyatt  <hyatt@apple.com>
2783
2784         Get basic hit testing right for transforms.
2785
2786         Reviewed by ollliej
2787
2788         * platform/graphics/AffineTransform.cpp:
2789         (WebCore::AffineTransform::mapPoint):
2790         * platform/graphics/AffineTransform.h:
2791         * rendering/InlineBox.cpp:
2792         (WebCore::InlineBox::nodeAtPoint):
2793         * rendering/RenderBlock.cpp:
2794         (WebCore::RenderBlock::nodeAtPoint):
2795         * rendering/RenderLayer.cpp:
2796         (WebCore::RenderLayer::paintLayer):
2797         (WebCore::RenderLayer::hitTest):
2798         (WebCore::RenderLayer::hitTestLayer):
2799         * rendering/RenderLayer.h:
2800         * rendering/RenderObject.cpp:
2801         (WebCore::RenderObject::hitTest):
2802         * rendering/RenderObject.h:
2803
2804 2007-10-23  Eric Seidel  <eric@webkit.org>
2805
2806         Reviewed by Mark Rowe.
2807
2808         Fix leaks seen on TOT from new font-face code.
2809
2810         * ksvg2/svg/SVGFontFaceElement.cpp:
2811         (WebCore::SVGFontFaceElement::rebuildFontFace): use a stack allocated CSSProperty instead of mallocing
2812
2813 2007-10-23  Eric Seidel  <eric@webkit.org>
2814
2815         Build fix only, no review.
2816
2817         Sacrifice three virgin hours upon the altar of the heathen XCode gods
2818         and pray that our build troubles are finally over. :(
2819
2820         * DerivedSources.make: add DOMSVGException.h
2821         * WebCore.xcodeproj/project.pbxproj: Remove DOMSVG*Interal.h files from "Copy Generated Headers" phase. Why?  Who knows.
2822
2823 2007-10-22  Steve Falkenburg  <sfalken@apple.com>
2824
2825         Fix build.
2826
2827         * plugins/win/PluginViewWin.cpp:
2828
2829 2007-10-22  Eric Seidel  <eric@webkit.org>
2830
2831         Build fix only, no review.
2832
2833         * WebCore.xcodeproj/project.pbxproj: re-add all DOMSVG headers to copy-files phase to make sure.
2834
2835 2007-10-22  Eric Seidel  <eric@webkit.org>
2836
2837         Build fix only, no review.
2838
2839         * WebCore.xcodeproj/project.pbxproj: make sure DOMSVGAnimateElement.h is copied into headers.
2840
2841 2007-10-22  Eric Seidel  <eric@webkit.org>
2842
2843         Reviewed by Maciej.
2844
2845         Fix build by properly exposing SVG font-face dom bindings.
2846
2847         * DerivedSources.make:
2848         * WebCore.vcproj/WebCore.vcproj: add font-face files to build
2849         * WebCore.xcodeproj/project.pbxproj: add missing DOM bindings files
2850         * bindings/js/JSSVGElementWrapperFactory.cpp:
2851         * bindings/objc/DOM.mm:
2852         (WebCore::createElementClassMap):
2853         * bindings/objc/DOMSVG.h:
2854         * ksvg2/svg/SVGDefinitionSrcElement.idl: inherit from SVGElement
2855
2856 2007-10-22  Mark Rowe  <mrowe@apple.com>
2857
2858         Gtk build fix.
2859
2860         * WebCore.pro:
2861
2862 2007-10-22  Darin Adler  <darin@apple.com>
2863
2864         - a first cut at fixing the Qt and GTK builds
2865
2866         * WebCore.pro: Add new .idl and .cpp files.
2867         * DerivedSources.make: Re-sorted.
2868
2869 2007-10-22  Eric Seidel  <eric@webkit.org>
2870
2871         Reviewed by hyatt.
2872
2873         Implement <font-face> and friends for SVG.
2874         http://bugs.webkit.org/show_bug.cgi?id=10652
2875
2876         * DerivedSources.make:
2877         * WebCore.xcodeproj/project.pbxproj:
2878         * bindings/js/JSSVGElementWrapperFactory.cpp:
2879         * dom/Document.cpp:
2880         (WebCore::Document::mappedElementSheet):
2881         (WebCore::Document::recalcStyleSelector):
2882         * dom/Document.h:
2883         * ksvg2/scripts/make_names.pl:
2884         * ksvg2/svg/SVGDefinitionSrcElement.cpp: Added.
2885         (WebCore::SVGDefinitionSrcElement::SVGDefinitionSrcElement):
2886         (WebCore::SVGDefinitionSrcElement::~SVGDefinitionSrcElement):
2887         (WebCore::SVGDefinitionSrcElement::childrenChanged):
2888         * ksvg2/svg/SVGDefinitionSrcElement.h: Added.
2889         * ksvg2/svg/SVGDefinitionSrcElement.idl: Added.
2890         * ksvg2/svg/SVGFontFaceElement.cpp: Added.
2891         (WebCore::SVGFontFaceElement::SVGFontFaceElement):
2892         (WebCore::SVGFontFaceElement::~SVGFontFaceElement):
2893         (WebCore::cssPropertyIdForName):
2894         (WebCore::mapAttributeToCSSProperty):
2895         (WebCore::cssPropertyIdForSVGAttributeName):
2896         (WebCore::SVGFontFaceElement::parseMappedAttribute):
2897         (WebCore::SVGFontFaceElement::rebuildFontFace):
2898         (WebCore::SVGFontFaceElement::childrenChanged):
2899         * ksvg2/svg/SVGFontFaceElement.h: Added.
2900         * ksvg2/svg/SVGFontFaceElement.idl: Added.
2901         * ksvg2/svg/SVGFontFaceFormatElement.cpp: Added.
2902         (WebCore::SVGFontFaceFormatElement::SVGFontFaceFormatElement):
2903         (WebCore::SVGFontFaceFormatElement::~SVGFontFaceFormatElement):
2904         (WebCore::SVGFontFaceFormatElement::childrenChanged):
2905         * ksvg2/svg/SVGFontFaceFormatElement.h: Added.
2906         * ksvg2/svg/SVGFontFaceFormatElement.idl: Added.
2907         * ksvg2/svg/SVGFontFaceNameElement.cpp: Added.
2908         (WebCore::SVGFontFaceNameElement::SVGFontFaceNameElement):
2909         (WebCore::SVGFontFaceNameElement::~SVGFontFaceNameElement):
2910         (WebCore::SVGFontFaceNameElement::srcValue):
2911         * ksvg2/svg/SVGFontFaceNameElement.h: Added.
2912         * ksvg2/svg/SVGFontFaceNameElement.idl: Added.
2913         * ksvg2/svg/SVGFontFaceSrcElement.cpp: Added.
2914         (WebCore::SVGFontFaceSrcElement::SVGFontFaceSrcElement):
2915         (WebCore::SVGFontFaceSrcElement::~SVGFontFaceSrcElement):
2916         (WebCore::SVGFontFaceSrcElement::srcValue):
2917         (WebCore::SVGFontFaceSrcElement::childrenChanged):
2918         * ksvg2/svg/SVGFontFaceSrcElement.h: Added.
2919         * ksvg2/svg/SVGFontFaceSrcElement.idl: Added.
2920         * ksvg2/svg/SVGFontFaceUriElement.cpp: Added.
2921         (WebCore::SVGFontFaceUriElement::SVGFontFaceUriElement):
2922         (WebCore::SVGFontFaceUriElement::~SVGFontFaceUriElement):
2923         (WebCore::SVGFontFaceUriElement::srcValue):
2924         (WebCore::SVGFontFaceUriElement::childrenChanged):
2925         * ksvg2/svg/SVGFontFaceUriElement.h: Added.
2926         * ksvg2/svg/SVGFontFaceUriElement.idl: Added.
2927         * ksvg2/svg/svgtags.in:
2928
2929 2007-10-22  Jon Honeycutt  <jhoneycutt@apple.com>
2930
2931         Reviewed by Anders.
2932
2933         <rdar://5548217>: [NTS] Java 6 update 3 crashes Safari when loading a 
2934         java page
2935
2936         We purposefully do not destroy our Java VM when its reference count
2937         reaches 0, but we were unloading our JavaPlugin.dll when its reference
2938         count reached 0, which lost the reference to the VM. This led to our
2939         process trying to create a new VM the next time a page using Java was
2940         loaded, and the JNI spec states that a single process is not allowed to
2941         create more than one VM. The fix is to avoid unloading the Java plugin
2942         via our PluginQuirkDontUnloadPlugin. 
2943
2944         * plugins/win/PluginViewWin.cpp:
2945         (WebCore::PluginViewWin::determineQuirks):
2946
2947 2007-10-22  David Hyatt  <hyatt@apple.com>
2948
2949         Fix for bug 15624, make transforms work properly with opacity.
2950
2951         Make sure a unitless 0 is allowed as an angle argument to rotation/skew.
2952
2953         Reviewed by Mitz Pettel
2954
2955         fast/transforms/transforms-with-opacity.html
2956         fast/transforms/skew-with-unitless-zero.html
2957
2958         * css/CSSParser.cpp:
2959         (WebCore::CSSParser::validUnit):
2960         * rendering/RenderLayer.cpp:
2961         (WebCore::transparencyClipBox):
2962         (WebCore::RenderLayer::beginTransparencyLayers):
2963         (WebCore::RenderLayer::paintLayer):
2964         (WebCore::RenderLayer::calculateClipRects):
2965         * rendering/RenderLayer.h:
2966         (WebCore::RenderLayer::transform):
2967
2968 2007-10-22  Adam Roben  <aroben@apple.com>
2969
2970         Windows build fix
2971
2972         * WebCore.vcproj/WebCore.vcproj: Copy header files from platform/sql.
2973         * page/Page.cpp: Touched to force the header files to be copied.
2974
2975 2007-10-22  Nikolas Zimmermann  <zimmermann@kde.org>
2976
2977         Reviewed by Simon.
2978
2979         Move textPath related SVGChar data in it's own structure SVGCharOnPath.
2980         Store a pointer to that datastructure inside SVGChar, instead of 4 floats & one bool.
2981
2982         Saves space for the common case. And allows me to add more data (another float) to support
2983         glyph-orientation-* on textPath later on...
2984
2985         * rendering/SVGCharacterLayoutInfo.cpp:
2986         (WebCore::SVGChar::characterTransform):
2987         * rendering/SVGCharacterLayoutInfo.h:
2988         * rendering/SVGRootInlineBox.cpp:
2989         (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
2990         (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
2991
2992 2007-10-22  Alp Toker  <alp@atoker.com>
2993
2994         Reviewed by Nikolas Zimmermann.
2995
2996         Implement more GraphicsContextCairo stubs.
2997
2998         Remove a hack "to work around no current point bug" that was breaking
2999         canvas tests.
3000
3001         Fix warnings.
3002
3003         * platform/graphics/cairo/CairoPath.h:
3004         (WebCore::CairoPath::CairoPath):
3005         * platform/graphics/cairo/GraphicsContextCairo.cpp:
3006         (WebCore::GraphicsContext::addInnerRoundedRectClip):
3007         (WebCore::GraphicsContext::strokeRect):
3008         * platform/graphics/cairo/PathCairo.cpp:
3009         (WebCore::Path::isEmpty):
3010         * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp:
3011         (WebCore::SVGPaintServerGradient::setup):
3012         * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp:
3013         (WebCore::SVGPaintServerSolid::setup):
3014
3015 2007-10-22  Simon Hausmann  <hausmann@kde.org>
3016
3017         Reviewed by Nikolas.
3018
3019         Fix compilation from a clean build with the database feature disabled.
3020         JSCustomVersionChangeCallback.cpp doesn't actually need the SQL header file, just ScriptInterpreter.
3021
3022         * bindings/js/JSCustomVersionChangeCallback.cpp:
3023         * page/InspectorController.cpp:
3024
3025 2007-10-22  Andrew Wellington  <proton@wiretapped.net>
3026
3027         Reviewed by Mark Rowe.
3028
3029         Fix for local database support after r26879
3030         Ensure that ENABLE_DATABASE and ENABLE_ICONDATABASE are correctly set
3031
3032         * Configurations/WebCore.xcconfig:
3033         * WebCore.pro:
3034         * WebCore.vcproj/build-generated-files.sh:
3035
3036 2007-10-22  Simon Hausmann  <hausmann@kde.org>
3037
3038         Reviewed by Lars.
3039
3040         Disable the Database feature for the qmake build for now.
3041
3042         * WebCore.pro:
3043
3044 2007-10-22  Simon Hausmann  <hausmann@kde.org>
3045
3046         Reviewed by Lars.
3047
3048         Make disabling the database feature (ENABLE_DATABASE=0) work by
3049         placing various #ifdefs into the code and making the compilation of
3050         some files optional.
3051
3052         * WebCore.pro:
3053         * dom/Document.cpp:
3054         (WebCore::Document::~Document):
3055         (WebCore::Document::defaultEventHandler):
3056         * dom/Document.h:
3057         * page/DOMWindow.cpp:
3058         * page/DOMWindow.h:
3059         * page/DOMWindow.idl:
3060         * page/InspectorController.cpp:
3061         (WebCore::InspectorController::windowScriptObjectAvailable):
3062         (WebCore::InspectorController::populateScriptResources):
3063         (WebCore::InspectorController::clearDatabaseScriptResources):
3064         (WebCore::InspectorController::didCommitLoad):
3065         * page/InspectorController.h:
3066
3067 2007-10-22  Alp Toker  <alp@atoker.com>
3068
3069         Reviewed by Mark Rowe.
3070
3071         http://bugs.webkit.org/show_bug.cgi?id=15611
3072         [GTK] Text selection behaviour different in Debug and Release builds
3073
3074         http://bugs.webkit.org/show_bug.cgi?id=15578
3075         [GTK] Text editor caret does not blink
3076
3077         Never allow control to reach the end of non-void functions.
3078
3079         Return more sensible values, or in some cases, nulls.
3080
3081         * page/gtk/EventHandlerGtk.cpp:
3082         (WebCore::isKeyboardOptionTab):
3083         (WebCore::EventHandler::tabsToAllControls):
3084         (WebCore::EventHandler::eventActivatedView):
3085
3086 2007-10-22  Holger Freyther  <zecke@selfish.org>
3087
3088         Reviewed by Simon Hausmann <hausmann@kde.org>.
3089
3090         Implement ResourceHandle::loadResourceSynchronously using ResourceHandle and a special ResourceHandleClient. This approach has the possible danger of reentrancy.
3091
3092         * platform/network/qt/ResourceHandleQt.cpp:
3093         (WebCore::WebCoreSynchronousLoader::resourceResponse):
3094         (WebCore::WebCoreSynchronousLoader::resourceError):
3095         (WebCore::WebCoreSynchronousLoader::data):
3096         (WebCore::WebCoreSynchronousLoader::WebCoreSynchronousLoader):
3097         (WebCore::WebCoreSynchronousLoader::didReceiveResponse):
3098         (WebCore::WebCoreSynchronousLoader::didReceiveData):
3099         (WebCore::WebCoreSynchronousLoader::didFinishLoading):
3100         (WebCore::WebCoreSynchronousLoader::didFail):
3101         (WebCore::WebCoreSynchronousLoader::waitForCompletion):
3102         (WebCore::ResourceHandle::loadResourceSynchronously):
3103
3104 2007-10-22  Holger Hans Peter Freyther <zecke@selfish.org>
3105
3106         Reviewed by Lars Knoll <lars@trolltech.com>.
3107
3108         Style fix. It is allowed to attempt to delete 0.
3109
3110         * platform/qt/ClipboardQt.cpp:
3111
3112 2007-10-22  Holger Hans Peter Freyther <zecke@selfish.org>
3113
3114         Reviewed by Lars Knoll <lars@trolltech.com>.
3115
3116         Make it actually localizable....
3117
3118         * platform/qt/Localizations.cpp:
3119         (WebCore::submitButtonDefaultLabel):
3120         (WebCore::inputElementAltText):
3121         (WebCore::searchableIndexIntroduction):
3122         (WebCore::fileButtonChooseFileLabel):
3123         (WebCore::fileButtonNoFileSelectedLabel):
3124         (WebCore::contextMenuItemTagOpenLinkInNewWindow):
3125         (WebCore::contextMenuItemTagDownloadLinkToDisk):
3126         (WebCore::contextMenuItemTagCopyLinkToClipboard):
3127         (WebCore::contextMenuItemTagOpenImageInNewWindow):
3128         (WebCore::contextMenuItemTagDownloadImageToDisk):
3129         (WebCore::contextMenuItemTagCopyImageToClipboard):
3130         (WebCore::contextMenuItemTagOpenFrameInNewWindow):
3131         (WebCore::contextMenuItemTagCopy):
3132         (WebCore::contextMenuItemTagGoBack):
3133         (WebCore::contextMenuItemTagGoForward):
3134         (WebCore::contextMenuItemTagStop):
3135         (WebCore::contextMenuItemTagReload):
3136         (WebCore::contextMenuItemTagCut):
3137         (WebCore::contextMenuItemTagPaste):
3138         (WebCore::contextMenuItemTagNoGuessesFound):
3139         (WebCore::contextMenuItemTagIgnoreSpelling):
3140         (WebCore::contextMenuItemTagLearnSpelling):
3141         (WebCore::contextMenuItemTagSearchWeb):
3142         (WebCore::contextMenuItemTagLookUpInDictionary):
3143         (WebCore::contextMenuItemTagOpenLink):
3144         (WebCore::contextMenuItemTagIgnoreGrammar):
3145         (WebCore::contextMenuItemTagSpellingMenu):
3146         (WebCore::contextMenuItemTagShowSpellingPanel):
3147         (WebCore::contextMenuItemTagCheckSpelling):
3148         (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
3149         (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
3150         (WebCore::contextMenuItemTagFontMenu):
3151         (WebCore::contextMenuItemTagBold):
3152         (WebCore::contextMenuItemTagItalic):
3153         (WebCore::contextMenuItemTagUnderline):
3154         (WebCore::contextMenuItemTagOutline):
3155         (WebCore::contextMenuItemTagWritingDirectionMenu):
3156         (WebCore::contextMenuItemTagDefaultDirection):
3157         (WebCore::contextMenuItemTagLeftToRight):
3158         (WebCore::contextMenuItemTagRightToLeft):
3159         (WebCore::contextMenuItemTagInspectElement):
3160         (WebCore::searchMenuNoRecentSearchesText):
3161         (WebCore::searchMenuRecentSearchesText):
3162
3163 2007-10-22  Holger Hans Peter Freyther <zecke@selfish.org>
3164
3165         Reviewed by Lars Knoll <lars@trolltech.com>.
3166
3167         Adjust the code to obey the Coding Style.
3168
3169         * platform/qt/Localizations.cpp:
3170         (WebCore::submitButtonDefaultLabel):
3171         (WebCore::inputElementAltText):
3172         (WebCore::resetButtonDefaultLabel):
3173         (WebCore::defaultLanguage):
3174         (WebCore::searchableIndexIntroduction):
3175         (WebCore::fileButtonChooseFileLabel):
3176         (WebCore::fileButtonNoFileSelectedLabel):
3177         (WebCore::contextMenuItemTagOpenLinkInNewWindow):
3178         (WebCore::contextMenuItemTagDownloadLinkToDisk):
3179         (WebCore::contextMenuItemTagCopyLinkToClipboard):
3180         (WebCore::contextMenuItemTagOpenImageInNewWindow):
3181         (WebCore::contextMenuItemTagDownloadImageToDisk):
3182         (WebCore::contextMenuItemTagCopyImageToClipboard):
3183         (WebCore::contextMenuItemTagOpenFrameInNewWindow):
3184         (WebCore::contextMenuItemTagCopy):
3185         (WebCore::contextMenuItemTagGoBack):
3186         (WebCore::contextMenuItemTagGoForward):
3187         (WebCore::contextMenuItemTagStop):
3188         (WebCore::contextMenuItemTagReload):
3189         (WebCore::contextMenuItemTagCut):
3190         (WebCore::contextMenuItemTagPaste):
3191         (WebCore::contextMenuItemTagNoGuessesFound):
3192         (WebCore::contextMenuItemTagIgnoreSpelling):
3193         (WebCore::contextMenuItemTagLearnSpelling):
3194         (WebCore::contextMenuItemTagSearchWeb):
3195         (WebCore::contextMenuItemTagLookUpInDictionary):
3196         (WebCore::contextMenuItemTagOpenLink):
3197         (WebCore::contextMenuItemTagIgnoreGrammar):
3198         (WebCore::contextMenuItemTagSpellingMenu):
3199         (WebCore::contextMenuItemTagShowSpellingPanel):
3200         (WebCore::contextMenuItemTagCheckSpelling):
3201         (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
3202         (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
3203         (WebCore::contextMenuItemTagFontMenu):
3204         (WebCore::contextMenuItemTagBold):
3205         (WebCore::contextMenuItemTagItalic):
3206         (WebCore::contextMenuItemTagUnderline):
3207         (WebCore::contextMenuItemTagOutline):
3208         (WebCore::contextMenuItemTagWritingDirectionMenu):
3209         (WebCore::contextMenuItemTagDefaultDirection):
3210         (WebCore::contextMenuItemTagLeftToRight):
3211         (WebCore::contextMenuItemTagRightToLeft):
3212         (WebCore::contextMenuItemTagInspectElement):
3213         (WebCore::searchMenuNoRecentSearchesText):
3214         (WebCore::searchMenuRecentSearchesText):
3215         (WebCore::searchMenuClearRecentSearchesText):
3216         (WebCore::AXWebAreaText):
3217         (WebCore::AXLinkText):
3218         (WebCore::AXListMarkerText):
3219         (WebCore::AXImageMapText):
3220         (WebCore::AXHeadingText):
3221         (WebCore::unknownFileSizeText):
3222
3223 2007-10-22 Holger Hans Peter Freyther <zecke@selfish.org>
3224
3225         Reviewed by Lars Knoll <lars@trolltech.com>.
3226
3227         Return a non empty string in more functions.
3228
3229         * platform/qt/Localizations.cpp:
3230         (WebCore::contextMenuItemTagShowSpellingPanel):
3231
3232 2007-10-22  Holger Hans Peter Freyther <zecke@selfish.org>
3233
3234         Reviewed by Lars Knoll <lars@trolltech.com>.
3235
3236         Shrink the TemporaryLinkStubs and move the
3237         Frame::setNeedsReapplyStyles stub to FrameQt.cpp
3238
3239         * page/qt/FrameQt.cpp:
3240         (WebCore::Frame::setNeedsReapplyStyles):
3241         * platform/qt/TemporaryLinkStubs.cpp:
3242
3243 2007-10-22  Holger Freyther  <zecke@selfish.org>
3244
3245         Reviewed by Lars Knoll <lars@trolltech.com>.
3246
3247         Implement the WebCore::fileSize function. The
3248         implementation assumes that QFileInfo will cache
3249         the result of the stat so that info.size() and
3250         info.exists() use the same stat result.
3251
3252         * platform/qt/FileSystemQt.cpp:
3253         (WebCore::deleteFile):
3254         * platform/qt/TemporaryLinkStubs.cpp:
3255
3256 2007-10-21  Alp Toker  <alp@atoker.com>
3257
3258         Reviewed by Mark Rowe.
3259
3260         Use the portable GLib time function.
3261
3262         Use event timestamps rather than the current time where available.
3263
3264         Rename SharedTimerLinux.cpp since it isn't Linux-specific.
3265
3266         * WebCore.pro:
3267         * platform/gtk/MouseEventGtk.cpp:
3268         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3269         * platform/gtk/SystemTimeGtk.cpp: Added.
3270         (WebCore::currentTime):
3271         * platform/gtk/SharedTimerGtk.cpp: Copied from platform/gtk/SharedTimerLinux.cpp.
3272         * platform/gtk/SharedTimerLinux.cpp: Removed.
3273
3274 2007-10-22  David Hyatt  <hyatt@apple.com>
3275
3276         Fix for 15596, regression from my transform changes.  Preserve null checks on the clip rects calls for parent(),
3277         since the method is called on orphaned layers.  This is not very well understood.
3278
3279         Reviewed by eric
3280
3281         * rendering/RenderLayer.cpp:
3282         (WebCore::RenderLayer::calculateClipRects):
3283         (WebCore::RenderLayer::calculateRects):
3284
3285 2007-10-21  Mark Rowe  <mrowe@apple.com>
3286
3287         Reviewed by Alp.
3288
3289         http://bugs.webkit.org/show_bug.cgi?id=15575
3290         Bug 15575: [GTK] Implement threading using GThread
3291
3292         * WebCore.pro: Remove ThreadingPthreads.cpp from the Gtk build and link against libgthreads.
3293         * loader/icon/IconDatabase.cpp: Initialize threading before the mutex is created to be compatible with gthreads.
3294         (WebCore::iconDatabase):
3295         (WebCore::IconDatabase::open):
3296         * platform/Threading.h:
3297         * platform/gtk/ThreadingGtk.cpp: Threading implementation in terms of GThread, based heavily on the pthreads implementation.
3298         (WebCore::initializeThreading):
3299         (WebCore::threadMapMutex):
3300         (WebCore::threadMap):
3301         (WebCore::establishIdentifierForThread):
3302         (WebCore::threadForIdentifier):
3303         (WebCore::clearThreadForIdentifier):
3304         (WebCore::createThread):
3305         (WebCore::waitForThreadCompletion):
3306         (WebCore::detachThread):
3307         (WebCore::Mutex::Mutex):
3308         (WebCore::Mutex::~Mutex):
3309         (WebCore::Mutex::lock):
3310         (WebCore::Mutex::tryLock):
3311         (WebCore::Mutex::unlock):
3312         (WebCore::ThreadCondition::ThreadCondition):
3313         (WebCore::ThreadCondition::~ThreadCondition):
3314         (WebCore::ThreadCondition::wait):
3315         (WebCore::ThreadCondition::signal):
3316         (WebCore::ThreadCondition::broadcast):
3317         * storage/Database.cpp:
3318         (WebCore::Database::Database): Initialize threading when Database is used so that it will be initialized even
3319         if the icon database is compiled out
3320
3321 2007-10-21  Mark Rowe  <mrowe@apple.com>
3322
3323         Build fix.
3324
3325         * ksvg2/css/SVGCSSStyleSelector.cpp: Use fabsf when dealing with a float to prevent the
3326         implicit conversion warning.
3327
3328 2007-10-21  Alp Toker  <alp@atoker.com>
3329
3330         Reviewed by Mark Rowe.
3331
3332         Implement spelling and grammar mistake underlining with Pango/Cairo.
3333
3334         This change does not add any actual support for spelling or grammar
3335         checking to any port.
3336
3337         * platform/graphics/cairo/GraphicsContextCairo.cpp:
3338         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
3339
3340 2007-10-21  Alp Toker  <alp@atoker.com>
3341
3342         Reviewed by Mark Rowe.
3343
3344         Cairo canvas fixes:
3345
3346         Fix a refcounting issue leading to leaks and crashes on canvas
3347         content.
3348
3349         Delegate memory management of canvas images to Cairo.
3350
3351         Mark unhandled conditions with notImplemented() instead of silently
3352         ignoring them.
3353
3354         * html/CanvasRenderingContext2D.cpp:
3355         (WebCore::CanvasRenderingContext2D::drawImage):
3356         * html/CanvasStyle.cpp:
3357         (WebCore::CanvasStyle::applyStrokeColor):
3358         * html/CanvasStyle.h:
3359         * html/HTMLCanvasElement.cpp:
3360         (WebCore::HTMLCanvasElement::HTMLCanvasElement):
3361         (WebCore::HTMLCanvasElement::~HTMLCanvasElement):
3362         (WebCore::HTMLCanvasElement::reset):
3363         (WebCore::HTMLCanvasElement::paint):
3364         (WebCore::HTMLCanvasElement::createDrawingContext):
3365         (WebCore::HTMLCanvasElement::createPlatformImage):
3366
3367 2007-10-21  Nikolas Zimmermann  <zimmermann@kde.org>
3368
3369         Reviewed by Eric.
3370
3371         Handle glyph-orientation-vertical / glyph-orientation-horizontal SVG CSS properties.
3372
3373         The SVG layouting code itself doesn't handle these properties yet,
3374         it's just about recognizing them in the SVG CSS engine.
3375
3376         * ksvg2/css/SVGCSSComputedStyleDeclaration.cpp:
3377         (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue):
3378         * ksvg2/css/SVGCSSParser.cpp:
3379         (WebCore::CSSParser::parseSVGValue):
3380         * ksvg2/css/SVGCSSStyleSelector.cpp:
3381         (WebCore::CSSStyleSelector::applySVGProperty):
3382         * ksvg2/css/SVGRenderStyle.h:
3383         (WebCore::SVGRenderStyle::InheritedFlags::operator==):
3384         (WebCore::SVGRenderStyle::InheritedFlags::operator!=):
3385         (WebCore::SVGRenderStyle::setBitDefaults):
3386         * ksvg2/css/SVGRenderStyleDefs.h:
3387
3388 2007-10-21  Christian Dywan  <christian@twotoasts.de>
3389
3390         Reviewed by Alp.
3391
3392         http://bugs.webkit.org/show_bug.cgi?id=15589
3393         Use glib's path separator on gtk
3394
3395         * platform/gtk/FileSystemGtk.cpp:
3396         (WebCore::pathByAppendingComponent):
3397
3398 2007-10-21  Dan Bernstein  <mitz@apple.com>
3399
3400         Reviewed by Dave Hyatt.
3401
3402         - fix http://bugs.webkit.org/show_bug.cgi?id=15259
3403           <rdar://problem/5499902> REGRESSION: Text overflows when using word spacing and centering (affects myspace.com music videos page)
3404
3405         Test: fast/text/word-space.html
3406
3407         * rendering/RenderBlock.cpp:
3408         (WebCore::stripTrailingSpace): Added word-spacing to the width of the
3409         space being stripped out.
3410         * rendering/RenderText.cpp:
3411         (WebCore::RenderText::trimmedPrefWidths): Changed handling of
3412         leading space. Since Font::width includes leading space width but not
3413         leading word spacing, this method needs to either remove the width of a
3414         space character or add word spacing,
3415         depending on stripFrontSpaces. 
3416         (WebCore::RenderText::calcPrefWidths): Corrected the check for adding
3417         trailing word spacing so that it would work in the case where the last
3418         space is ignored.
3419         * rendering/bidi.cpp:
3420         (WebCore::RenderBlock::computeHorizontalPositionsForLine): Changed to
3421         actually add word spacing to the total width.
3422
3423 2007-10-20  David Hyatt  <hyatt@apple.com>
3424
3425         Land support for the transform CSS property.  Basic painting now works properly. There are many open issues
3426         that will have to be covered by individual bugs.
3427
3428         Reviewed by olliej
3429
3430         * css/CSSParser.cpp:
3431         (WebCore::CSSParser::validUnit):
3432         (WebCore::CSSParser::parseTransform):
3433         * rendering/RenderLayer.cpp:
3434         (WebCore::RenderLayer::RenderLayer):
3435         (WebCore::RenderLayer::~RenderLayer):
3436         (WebCore::RenderLayer::updateLayerPositions):
3437         (WebCore::RenderLayer::updateTransform):
3438         (WebCore::transparencyClipBox):
3439         (WebCore::RenderLayer::beginTransparencyLayers):
3440         (WebCore::RenderLayer::paintLayer):
3441         (WebCore::RenderLayer::calculateClipRects):
3442         (WebCore::RenderLayer::calculateRects):
3443         (WebCore::RenderLayer::childrenClipRect):
3444         (WebCore::RenderLayer::selfClipRect):
3445         (WebCore::RenderLayer::intersectsDamageRect):
3446         (WebCore::RenderLayer::boundingBox):
3447         * rendering/RenderLayer.h:
3448         * rendering/RenderObject.cpp:
3449         (WebCore::RenderObject::containingBlock):
3450         (WebCore::RenderObject::container):
3451         * rendering/RenderStyle.cpp:
3452         (WebCore::RenderStyle::applyTransform):
3453         * rendering/RenderStyle.h:
3454         (WebCore::TransformOperation::isScaleOperation):
3455         (WebCore::TransformOperation::isRotateOperation):
3456         (WebCore::TransformOperation::isSkewOperation):
3457         (WebCore::TransformOperation::isTranslateOperation):
3458         (WebCore::TransformOperation::isMatrixOperation):
3459         (WebCore::ScaleTransformOperation::isScaleOperation):
3460         (WebCore::RotateTransformOperation::isRotateOperation):
3461         (WebCore::SkewTransformOperation::isSkewOperation):
3462         (WebCore::TranslateTransformOperation::isTranslateOperation):
3463         (WebCore::MatrixTransformOperation::isMatrixOperation):
3464         * rendering/RenderTableRow.h:
3465         (WebCore::RenderTableRow::requiresLayer):
3466         * rendering/RenderTreeAsText.cpp:
3467         (WebCore::writeLayers):
3468
3469 2007-10-20  Timothy Hatcher  <timothy@apple.com>
3470
3471         Reviewed by Adam.
3472
3473         Add basic @font-face to the Web Inspector.
3474
3475         * page/InspectorController.cpp:
3476         (WebCore::InspectorResource::type): Check for CachedResource::FontResource.
3477         * page/inspector/Resource.js: Add support for Font types and font preview in the icon.
3478         * page/inspector/ResourcePanel.js: Show a font preview for font resources.
3479         * page/inspector/inspector.css: Style for the font preview and font icon.
3480         * page/inspector/inspector.js: Add font mime types.
3481
3482 2007-10-20  Sam Weinig  <sam@webkit.org>
3483
3484         Reviewed by Mark Rowe.
3485
3486         Fixes:
3487             - http://bugs.webkit.org/show_bug.cgi?id=14393
3488               Column on the left side of the Web Inspector should have a smaller minimum width for resizing
3489             - http://bugs.webkit.org/show_bug.cgi?id=14394
3490               Left pane of the Web Inspector "shakes" when resizing it to maximum width
3491
3492         * page/inspector/inspector.js: Change the constraint logic to only enforce a 100px min-width
3493           and window.innerWidth - 100 max-width for the sidebar.  The change also makes the viewbuttons
3494           move with the sidebar.
3495
3496 2007-10-20  Dan Bernstein  <mitz@apple.com>
3497
3498         Reviewed by Dave Hyatt.
3499
3500         - fix http://bugs.webkit.org/show_bug.cgi?id=15208
3501           display:table causes the collapsed text to show at a different position when expanded
3502
3503         Test: fast/table/insert-before-anonymous-ancestors.html
3504
3505         * rendering/RenderTable.cpp:
3506         (WebCore::RenderTable::addChild): Rolled out r11579. I think whatever
3507         that change was supposed to accomplish has since been done in other
3508         places in the code.
3509
3510 2007-10-20  Mark Rowe  <mrowe@apple.com>
3511
3512         Reviewed by Dave Hyatt.
3513
3514         Fix http://bugs.webkit.org/show_bug.cgi?id=15584
3515         Bug 15584: REGRESSION(r26696): GtkLauncher segfaults on WebCore::WidthIterator::advance
3516
3517         * platform/Font.cpp:
3518         (WebCore::Font::glyphDataForCharacter): If the fallback page exists but does not have a
3519         glyph for the character, fall back to the missing glyph data rather than returning an
3520         invalid GlyphData.
3521
3522 2007-10-20  Jasper Bryant-Greene  <m@ni.ac.nz>
3523
3524         Reviewed by Maciej.
3525
3526         Changed the hard-coded scroll delta in WheelEventGtk from 120 to 0.25,
3527         as suggested by George Wright in #15108 (which this patch will
3528         resolve).
3529
3530         This gives a more sane scrolling behaviour, rather than the
3531         jumping to the end or start of the document as occurred previously.
3532
3533         * platform/gtk/WheelEventGtk.cpp:
3534         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
3535
3536 2007-10-20  Alp Toker  <alp@atoker.com>
3537
3538         Reviewed by Eric.
3539
3540         Support text boundary detection.
3541         Move TextBoundariesWin.cpp to platform/ since it's portable and useful.
3542         Split out and implement some TemporaryLinkStubs.
3543
3544         * WebCore.pro:
3545         * WebCore.vcproj/WebCore.vcproj:
3546         * platform/TextBoundariesICU.cpp: Copied from WebCore/platform/win/TextBoundariesWin.cpp.
3547         * platform/gtk/Language.cpp: Added.
3548         (WebCore::defaultLanguage):
3549         * platform/gtk/TemporaryLinkStubs.cpp:
3550         * platform/gtk/TextBreakIteratorInternalICUGtk.cpp: Added.
3551         (WebCore::currentTextBreakLocaleID):
3552         * platform/win/TextBoundariesWin.cpp: Removed.
3553
3554 2007-10-20  Mark Rowe  <mrowe@apple.com>
3555
3556         Reviewed by Tim Hatcher.
3557
3558         Workaround for http://bugs.webkit.org/show_bug.cgi?id=15574
3559         Bug 15574: Web Inspector doesn't work with the new Database feature
3560
3561         The executeSql callback is executed in the security domain of the web page that owns the database,
3562         while the inspector's window object is in the callback functions scope chain.  This is leading to a
3563         security violation when the callback attempts to access "document".  We can work around this by
3564         ensuring that "document" can be found in the scope chain before the window object.
3565
3566         * page/inspector/DatabasePanel.js:
3567
3568 2007-10-20  Darin Adler  <darin@apple.com>
3569
3570         Reviewed by Maciej.
3571
3572         - http://bugs.webkit.org/show_bug.cgi?id=15567
3573           speed up hashing const char* by removing call to strlen
3574
3575         This includes one other fix as well. Both were from a day where I did some
3576         profiling to find hot spots when running the page load test.
3577
3578         * platform/StringImpl.cpp:
3579         (WebCore::StringImpl::computeHash): Compute the hash without calling strlen.
3580         Also change the argument names to not confusingly use m_ prefixes.
3581         (WebCore::StringImpl::createStrippingNull): Added a faster case for strings that
3582         don't have null.
3583
3584 2007-10-20  Mark Rowe  <mrowe@apple.com>
3585
3586         Reviewed by Alp.
3587
3588         Gtk changes needed to enable HTML 5 client-side database storage.
3589
3590         * WebCore.pro: Have Gtk use ThreadingPthreads.cpp.
3591         * platform/pthreads/ThreadingPthreads.cpp: Include errno so that EDEADLK and EBUSY are available.
3592
3593 2007-10-20  Mark Rowe  <mrowe@apple.com>
3594
3595         Reviewed by Alp.
3596
3597         Implement callOnMainThread for Gtk+ via a one-shot zero-delay timer that will be dispatched
3598         from the main event loop.
3599
3600         * WebCore.pro:
3601         * platform/gtk/TemporaryLinkStubs.cpp:
3602         * platform/gtk/ThreadingGtk.cpp: Added.
3603         (WebCore::callFunctionOnMainThread):
3604         (WebCore::callOnMainThread):
3605
3606 2007-10-20  Nikolas Zimmermann  <zimmermann@kde.org>
3607
3608         Reviewed by Eric.
3609
3610         Fix non-functional display="inline" / display="none" for SVG text.
3611
3612         Fixes: svg/W3C-SVG-1.1/animate-elem-39-t.svg (display="inline" support)
3613         Fixes: svg/batik/text/textProperties2.svg (display="inline/none" support)
3614         Fixes: svg/carto.net/tabgroup.svg (display="none" support, stray content before layouting)
3615         
3616         * css/svg.css: Remove "important" flag on text/foreignObject display: block property
3617         * rendering/RenderSVGBlock.cpp:
3618         (WebCore::RenderSVGBlock::setStyle):
3619
3620 2007-10-20  Mark Rowe  <mrowe@apple.com>
3621