5d082fe912c34efc8e7d626e82ef6eb751342197
[WebKit-https.git] / WebCore / ChangeLog
1 2006-09-30  Sam Weinig  <sam.weinig@gmail.com>
2
3         Reviewed by Darin.
4
5         Patch for http://bugs.webkit.org/show_bug.cgi?id=11102
6         Add more SVG Objective-C DOM bindings
7
8         - Auto-generate Objective-C DOM bindings for DOMSVGAElement,
9           DOMSVGAnimateColorElement, DOMSVGAnimateElement, DOMSVGAnimateTransformElement,
10           DOMSVGAnimatedPathData, DOMSVGAnimatedPoints, DOMSVGAnimatedPreserveAspectRatio,
11           DOMSVGAnimationElement, DOMSVGCircleElement, DOMSVGClipPathElement, DOMSVGColor,
12           DOMSVGCursorElement, DOMSVGDefsElement, DOMSVGDescElement, DOMSVGDocument, 
13           DOMSVGEllipseElement, DOMSVGPreserveAspectRatio, and DOMSVGURIReference.
14
15         * DerivedSources.make:
16         * WebCore.xcodeproj/project.pbxproj:
17         * bindings/objc/DOMInternal.h:
18         * bindings/objc/DOMSVG.h:
19         * bindings/scripts/CodeGeneratorObjC.pm:
20         * ksvg2/svg/SVGAElement.idl:
21         * ksvg2/svg/SVGAnimateColorElement.idl:
22         * ksvg2/svg/SVGAnimateElement.idl:
23         * ksvg2/svg/SVGAnimateTransformElement.idl:
24         * ksvg2/svg/SVGAnimatedPathData.idl:
25         * ksvg2/svg/SVGAnimatedPoints.idl:
26         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl:
27         * ksvg2/svg/SVGAnimationElement.idl:
28         * ksvg2/svg/SVGCircleElement.idl:
29         * ksvg2/svg/SVGClipPathElement.idl:
30         * ksvg2/svg/SVGColor.idl:
31         * ksvg2/svg/SVGCursorElement.idl:
32         * ksvg2/svg/SVGDefsElement.idl:
33         * ksvg2/svg/SVGDescElement.idl:
34         * ksvg2/svg/SVGDocument.idl:
35         * ksvg2/svg/SVGEllipseElement.idl:
36         * ksvg2/svg/SVGPointList.idl:
37         * ksvg2/svg/SVGPreserveAspectRatio.idl:
38         * ksvg2/svg/SVGRect.idl:
39         * ksvg2/svg/SVGSVGElement.idl:
40
41 2006-09-30  Maciej Stachowiak  <mjs@apple.com>
42
43         Reviewed by Adele.
44
45         - fix build
46
47         * platform/FloatRect.h:
48         (WebCore::FloatRect::contains): Added; not exactly the same semantic as IntRect containment
49         but more appropriate for path-type stuff.
50         * platform/cg/PathCG.cpp:
51         (WebCore::Path::contains): Don't use enclosingIntRect, just use FloatRect::contains.
52
53 2006-09-30  Alexey Proskuryakov  <ap@nypop.com>
54
55         Reviewed by Darin.
56
57         http://bugs.webkit.org/show_bug.cgi?id=11011
58         External CSS is parsed as iso-8859-1 even though the main document is utf-8
59
60         Test: fast/encoding/css-charset-default.xhtml
61
62         * loader/CachedResourceClient.h:
63         (WebCore::CachedResourceClient::setCSSStyleSheet):
64         (WebCore::CachedResourceClient::setXSLStyleSheet):
65         Divided setStyleSheet into setCSSStyleSheet and setXSLStyleSheet. The former
66         takes an additional charset parameter, to be passed to CSSStyleSheet constructor.
67
68         * css/CSSImportRule.cpp:
69         (WebCore::CSSImportRule::setCSSStyleSheet):
70         (WebCore::CSSImportRule::insertedIntoParent): Default to parent stylesheet's charset.
71         * css/CSSImportRule.h:
72
73         * css/CSSStyleSheet.cpp:
74         (WebCore::CSSStyleSheet::CSSStyleSheet):
75         * css/CSSStyleSheet.h:
76         Added an m_charset member to be used when loading child stylesheets. Removed an unused m_implicit
77         member. Changed some String parameters to const String&.
78
79         * css/StyleSheet.cpp:
80         (WebCore::StyleSheet::StyleSheet):
81         * css/StyleSheet.h:
82         Changed some String parameters to const String&. Removed an unused (even unimplemented) constructor.
83
84         * css/StyleSheetList.cpp:
85         (WebCore::StyleSheetList::length):
86         (WebCore::StyleSheetList::item):
87         * css/StyleSheetList.h:
88         Special-casing implicit stylesheets seemed to be dead code, removed.
89
90         * dom/Document.cpp:
91         (WebCore::Document::setCSSStyleSheet):
92         (WebCore::Document::recalcStyleSelector):
93         * dom/Document.h:
94         Renamed setStyleSheet() to setCSSStyleSheet().
95
96         * dom/ProcessingInstruction.cpp:
97         (WebCore::ProcessingInstruction::checkStyleSheet): Pass a correct charset to requestCSSStyleSheet().
98         (WebCore::ProcessingInstruction::setCSSStyleSheet):
99         (WebCore::ProcessingInstruction::setXSLStyleSheet):
100         (WebCore::ProcessingInstruction::parseStyleSheet):
101         * dom/ProcessingInstruction.h:
102
103         * html/HTMLLinkElement.cpp:
104         (WebCore::HTMLLinkElement::process): Default to document encoding if a charset attribute 
105         is not specified.
106         (WebCore::HTMLLinkElement::setCSSStyleSheet):
107         * html/HTMLLinkElement.h:
108
109         * html/HTMLStyleElement.cpp:
110         (WebCore::HTMLStyleElement::childrenChanged):
111         * ksvg2/svg/SVGStyleElement.cpp:
112         (WebCore::SVGStyleElement::childrenChanged):
113         Inherit URL and charset from the document.
114
115         * loader/Cache.cpp:
116         (WebCore::Cache::requestCSSStyleSheet):
117         * loader/Cache.h:
118         Adjust for setStyleSheet() renaming.
119
120         * loader/CachedCSSStyleSheet.h: Removed an unused constructor.
121         * loader/CachedCSSStyleSheet.cpp:
122         (WebCore::CachedCSSStyleSheet::ref):
123         (WebCore::CachedCSSStyleSheet::deref):
124         (WebCore::CachedCSSStyleSheet::checkNotify):
125         Pass the encoding to setCSSStyleSheet().
126
127         * loader/CachedXSLStyleSheet.cpp:
128         (WebCore::CachedXSLStyleSheet::ref):
129         (WebCore::CachedXSLStyleSheet::checkNotify):
130         * loader/DocLoader.cpp:
131         (WebCore::DocLoader::requestCSSStyleSheet):
132         * loader/DocLoader.h:
133         * page/Frame.cpp:
134         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
135         (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
136         * xml/XSLImportRule.cpp:
137         (WebCore::XSLImportRule::setXSLStyleSheet):
138         (WebCore::XSLImportRule::loadSheet):
139         * xml/XSLImportRule.h:
140         Adjust for setStyleSheet() renaming.
141
142 2006-09-30  Rob Buis  <buis@kde.org>
143
144         Reviewed by eseidel.
145
146         http://bugs.webkit.org/show_bug.cgi?id=11096
147         Hit testing for polylines fails
148
149         Fix Path::contains so it handles filled, non-closed paths too.
150
151         * platform/cg/PathCG.cpp:
152         (WebCore::Path::contains):
153
154 2006-09-30  Dave Hyatt  <hyatt@apple.com>
155
156         Refactor subframe event handling to hide more of the Mac-specific logic from the cross-platform code.
157         Stub out a capturing API that mimics the way Web browsers capture events and route them to specific
158         subframes while the mouse is down.
159       
160         Reviewed by mitzpettel
161
162         * bridge/mac/FrameMac.h:
163         * bridge/mac/FrameMac.mm:
164         (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
165         (WebCore::FrameMac::passWheelEventToWidget):
166         * bridge/mac/FrameViewMac.mm:
167         (WebCore::FrameView::passMousePressEventToSubframe):
168         (WebCore::FrameView::passMouseMoveEventToSubframe):
169         (WebCore::FrameView::passMouseReleaseEventToSubframe):
170         (WebCore::FrameView::passWheelEventToSubframe):
171         * page/Frame.cpp:
172         * page/Frame.h:
173         * page/FrameView.cpp:
174         (WebCore::subframeForTargetNode):
175         (WebCore::FrameView::handleMousePressEvent):
176         (WebCore::FrameView::handleMouseDoubleClickEvent):
177         (WebCore::FrameView::handleMouseMoveEvent):
178         (WebCore::FrameView::handleMouseReleaseEvent):
179         (WebCore::FrameView::handleWheelEvent):
180         * page/FrameView.h:
181         * platform/ScrollBar.h:
182         (WebCore::ScrollBar::handleMouseMoveEvent):
183         (WebCore::ScrollBar::handleMouseOutEvent):
184         * platform/Widget.h:
185         (WebCore::Widget::handleMouseMoveEvent):
186         (WebCore::Widget::handleMouseReleaseEvent):
187         * platform/win/TemporaryLinkStubs.cpp:
188         (FrameView::passMousePressEventToSubframe):
189         (FrameView::passMouseMoveEventToSubframe):
190         (FrameView::passMouseReleaseEventToSubframe):
191         (FrameView::passWheelEventToSubframe):
192         (Widget::capturingMouse):
193         (Widget::setCapturingMouse):
194         (Widget::capturingTarget):
195         (Widget::capturingChild):
196         (Widget::setCapturingChild):
197         * rendering/RenderView.cpp:
198         (WebCore::RenderView::paintBoxDecorations):
199
200 2006-09-29  MorganL  <morganl.webkit@yahoo.com>
201
202         Reviewed by Adele.
203
204         Fixes windows bustage:
205         http://bugs.webkit.org/show_bug.cgi?id=11093
206
207         * platform/win/PlatformScrollBar.h:
208         * platform/win/TemporaryLinkStubs.cpp:
209         (PlatformScrollBar::PlatformScrollBar):
210         (ScrollBar::ScrollBar):
211
212 2006-09-29  David Hyatt  <hyatt@apple.com>
213
214         Eliminate RenderLayer::gScrollBar in favor of caching the scrollbar hit
215         in RenderObject::NodeInfo (and then propagating that Widget to
216         MouseEventWithHitTestResults).
217
218         This allows RenderListBox and RenderBlock to do the same thing when the
219         mouse is over the scrollbar.
220
221         Also land fix to support font-size: 0.
222
223         Reviewed by mjs (scrollbar), eric (font-size)
224
225         * dom/Document.cpp:
226         (WebCore::Document::prepareMouseEvent):
227         * page/Frame.cpp:
228         (WebCore::Frame::passWidgetMouseDownEventToWidget):
229         * page/FrameView.cpp:
230         (WebCore::selectCursor):
231         (WebCore::FrameView::handleMouseMoveEvent):
232         (WebCore::FrameView::dispatchMouseEvent):
233         * page/MouseEventWithHitTestResults.cpp:
234         (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
235         * page/MouseEventWithHitTestResults.h:
236         (WebCore::MouseEventWithHitTestResults::scrollbar):
237         * rendering/RenderBlock.cpp:
238         (WebCore::RenderBlock::isPointInScrollbar):
239         (WebCore::RenderBlock::nodeAtPoint):
240         * rendering/RenderBlock.h:
241         * rendering/RenderLayer.cpp:
242         (WebCore::RenderLayer::hitTest):
243         * rendering/RenderLayer.h:
244         (WebCore::RenderLayer::getHiddenBehavior):
245         * rendering/RenderListBox.cpp:
246         (WebCore::RenderListBox::RenderListBox):
247         (WebCore::RenderListBox::~RenderListBox):
248         (WebCore::RenderListBox::isPointInScrollbar):
249         * rendering/RenderListBox.h:
250         * rendering/RenderObject.h:
251         (WebCore::RenderObject::NodeInfo::NodeInfo):
252         (WebCore::RenderObject::NodeInfo::scrollbar):
253         (WebCore::RenderObject::NodeInfo::setScrollbar):
254
255 2006-09-29  MorganL  <morganl.webkit@yahoo.com>
256
257         Reviewed by Adele.
258
259         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
260
261         * platform/win/ScrollViewWin.cpp:
262         (WebCore::ScrollView::convertToContainingWindow):
263         (WebCore::ScrollView::convertFromContainingWindow):
264         * platform/win/WidgetWin.cpp:
265         (WebCore::Widget::convertToContainingWindow):
266         (WebCore::Widget::convertFromContainingWindow):
267
268 2006-09-29  Adele Peterson  <adele@apple.com>
269
270         Updated with new argument for PlatformScrollBar.
271
272         * platform/win/TemporaryLinkStubs.cpp:
273         (PlatformScrollBar::PlatformScrollBar):
274
275 2006-09-29  Adele Peterson  <adele@apple.com>
276
277         Reviewed by Hyatt.
278
279         Fixing build bustage with cast to int.
280
281         * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::lastSelectedListIndex):
282
283 2006-09-29  Adele Peterson  <adele@apple.com>
284
285         Fixing accidental include.
286
287         * rendering/RenderListBox.cpp:
288
289 2006-09-29  Adele Peterson  <adele@apple.com>
290
291         Adding RenderListBox files.
292
293         * WebCore.vcproj/WebCore/WebCore.vcproj:
294
295 2006-09-29  Adele Peterson  <adele@apple.com>
296
297         Reviewed by Adam.
298
299         Initial implementation of engine-based list box control.
300
301         * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
302
303         * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
304         * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
305         (WebCore::FrameMac::FrameMac):
306         (WebCore::FrameMac::handleMousePressEvent):
307         (WebCore::FrameMac::handleMouseMoveEvent):
308         (WebCore::FrameMac::mouseDown):
309
310         * page/Frame.cpp:
311         (WebCore::Frame::handleMouseMoveEvent):
312         (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
313         (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
314         (WebCore::Frame::autoscrollTimerFired): ditto.
315         (WebCore::Frame::stopAutoscrollTimer): ditto.
316         (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
317         * page/Frame.h:
318         * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
319
320         * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
321         (WebCore::FrameViewPrivate::reset):
322         (WebCore::FrameView::currentMousePosition):
323         (WebCore::FrameView::handleMousePressEvent):
324         (WebCore::FrameView::handleMouseDoubleClickEvent):
325         (WebCore::selectCursor):
326         (WebCore::FrameView::handleMouseMoveEvent):
327         (WebCore::FrameView::handleMouseReleaseEvent):
328         * page/FrameView.h:
329
330         * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument.  The list box will use a smaller scroll bar size.
331         * platform/ScrollBar.h:
332         (WebCore::):
333         (WebCore::ScrollBar::controlSize):
334         * platform/mac/PlatformScrollBar.h:
335         * platform/mac/PlatformScrollBarMac.mm:
336         (NSControlSizeForScrollBarControlSize):
337         (-[WebCoreScrollBar initWithPlatformScrollBar:]):
338         (WebCore::PlatformScrollBar::PlatformScrollBar):
339
340         * rendering/RenderBlock.h:
341         * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
342         * rendering/RenderLayer.h:
343         * rendering/RenderObject.cpp:
344         (WebCore::RenderObject::shouldAutoscroll):
345         (WebCore::RenderObject::autoscroll):
346         * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
347
348         * css/html4.css: Added properties for new list boxes.
349
350         * html/HTMLOptionElement.cpp:
351         (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
352         (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
353         * html/HTMLOptionElement.h: Added disabled method.
354
355         * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
356         (WebCore::HTMLSelectElement::recalcStyle):
357         (WebCore::HTMLSelectElement::lastSelectedListIndex):
358         (WebCore::HTMLSelectElement::deselectItems):
359         (WebCore::HTMLSelectElement::setSelectedIndex):
360         (WebCore::HTMLSelectElement::isKeyboardFocusable):
361         (WebCore::HTMLSelectElement::isMouseFocusable):
362         (WebCore::HTMLSelectElement::createRenderer):
363         (WebCore::HTMLSelectElement::recalcListItems):
364         (WebCore::HTMLSelectElement::setRecalcListItems):
365         (WebCore::HTMLSelectElement::reset):
366         (WebCore::HTMLSelectElement::notifyOptionSelected):
367         (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
368         (WebCore::HTMLSelectElement::nextSelectableListIndex):
369         (WebCore::HTMLSelectElement::previousSelectableListIndex):
370         * html/HTMLSelectElement.h:
371
372         * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
373         (WebCore::RenderTheme::paint):
374         (WebCore::RenderTheme::paintBorderOnly):
375         (WebCore::RenderTheme::paintDecorations):
376         (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
377         (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
378         (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
379         (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
380         (WebCore::RenderTheme::isControlStyled):
381         (WebCore::RenderTheme::supportsFocusRing):
382         * rendering/RenderTheme.h:
383         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
384
385         * rendering/RenderListBox.cpp: Added.
386         (WebCore::RenderListBox::RenderListBox):
387         (WebCore::RenderListBox::~RenderListBox):
388         (WebCore::RenderListBox::setStyle):
389         (WebCore::RenderListBox::updateFromElement):
390         (WebCore::RenderListBox::calcMinMaxWidth):
391         (WebCore::RenderListBox::size):
392         (WebCore::RenderListBox::numItems):
393         (WebCore::RenderListBox::calcHeight):
394         (WebCore::RenderListBox::baselinePosition):
395         (WebCore::RenderListBox::itemBoundingBoxRect):
396         (WebCore::RenderListBox::paintObject):
397         (WebCore::RenderListBox::paintScrollbar):
398         (WebCore::RenderListBox::paintItemForeground):
399         (WebCore::RenderListBox::paintItemBackground):
400         (WebCore::RenderListBox::scrollBarTarget):
401         (WebCore::RenderListBox::isPointInScrollbar):
402         (WebCore::RenderListBox::optionAtPoint):
403         (WebCore::RenderListBox::autoscroll):
404         (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
405         (WebCore::RenderListBox::scroll):
406         (WebCore::RenderListBox::valueChanged):
407         * rendering/RenderListBox.h: Added.
408         (WebCore::RenderListBox::isListBox):
409         (WebCore::RenderListBox::selectionChanged):
410         (WebCore::RenderListBox::setSelectionChanged):
411         (WebCore::RenderListBox::canHaveChildren):
412         (WebCore::RenderListBox::renderName):
413         (WebCore::RenderListBox::setOptionsChanged):
414         (WebCore::RenderListBox::shouldAutoscroll):
415         (WebCore::RenderListBox::listIndexIsVisible):
416
417 2006-09-29  Beth Dakin  <bdakin@apple.com>
418
419         Reviewed by Darin.
420
421         We had a bug where html4.css was ignoring Media Queries. In the end 
422         the problem was that we were trying to send a char* to the 
423         MediaQueryEvaluator constructor that expects a String, but the 
424         char* got interpreted as a bool, the wrong constructor was called, 
425         and the media type was never set.
426
427         No test case possible since this only affects html4.css
428
429         * css/MediaQueryEvaluator.cpp: New constructor that expects takes a 
430         char*
431         (WebCore::MediaQueryEvaluator):
432         * css/MediaQueryEvaluator.h: Same.
433
434 2006-09-29  Geoffrey Garen  <ggaren@apple.com>
435
436         Reviewed by John, Maciej.
437         
438         Integrated some frame and iframe code. I'm trying to fix up frame ownership
439         and loading. Reducing the number of different code paths involved
440         seemed like a good first step.
441         
442         As a side effect, I fixed a bug where FRAME elements would report their
443         src attributes as relative, rather than compelete, URLs. (IFRAME elements
444         had the correct complete URL behavior.)
445
446         * html/HTMLFrameElement.cpp:
447         (WebCore::HTMLFrameElement::isURLAllowed): Fixed comment typo
448         (WebCore::HTMLFrameElement::openURL):
449             (1) Removed checks that requestFrame does for us
450             (2) Added isURLAllowed check, to have one clear bottleneck for it
451             (3) Added viewsource check, to have one clear bottleneck for it
452         (WebCore::HTMLFrameElement::close): Changed to use the common contentFrame()
453         method, instead of finding our content frame in our own unique way.
454         (WebCore::HTMLFrameElement::setLocation): Removed isURLAllowed check,
455         since openURL does this for us now.
456         (WebCore::HTMLFrameElement::src): Return complete URL instead of relative.
457         This is what FF does, and it made no sense to have different behaviors
458         for FRAME and IFRAME elements.
459         * html/HTMLIFrameElement.cpp:
460         (WebCore::HTMLIFrameElement::HTMLIFrameElement): Removed duplicate init
461         code.
462         * html/HTMLIFrameElement.h: Removed src() and openURL() methods, since
463         HTMLFrameElement now does everything we need.
464
465 2006-09-30  Nikolas Zimmermann  <zimmermann@kde.org>
466
467         Reviewed by Hyatt.
468
469         Fix Qt/Linux build.
470
471         * CMakeLists.txt:
472         * platform/qt/ScrollViewQt.cpp:
473         (WebCore::ScrollView::convertToContainingWindow):
474         (WebCore::ScrollView::convertFromContainingWindow):
475         * platform/qt/TemporaryLinkStubs.cpp:
476         (WebCore::signedPublicKeyAndChallengeString):
477         * platform/qt/WidgetQt.cpp:
478         (WebCore::Widget::convertToContainingWindow):
479         (WebCore::Widget::convertFromContainingWindow):
480
481 2006-09-29  Sam Weinig  <sam.weinig@gmail.com>
482
483         Reviewed by Tim H.
484
485         Patch for http://bugs.webkit.org/show_bug.cgi?id=11082
486         Simplify Internal methods for the auto-generated Objective-C DOM code
487
488         - Auto-generate the internal methods for more Objective-C classes.
489
490         * WebCore.xcodeproj/project.pbxproj:
491         * bindings/objc/DOM.mm:
492         * bindings/objc/DOMCSS.mm:
493         (-[DOMStyleSheet WebCore::]):
494         (+[DOMStyleSheet _styleSheetWith:WebCore::]):
495         (-[DOMCSSRule WebCore::]):
496         (-[DOMCSSRule _initWithCSSRule:WebCore::]):
497         (+[DOMCSSRule _CSSRuleWith:WebCore::]):
498         (-[DOMCSSValue WebCore::]):
499         (-[DOMCSSValue _initWithCSSValue:WebCore::]):
500         (+[DOMCSSValue _CSSValueWith:WebCore::]):
501         * bindings/objc/DOMHTMLAppletElement.mm:
502         (-[DOMHTMLAppletElement WebCore::]):
503         (+[DOMHTMLAppletElement _HTMLOptionElementWith:WebCore::]):
504         * bindings/objc/DOMHTMLEmbedElement.mm:
505         (-[DOMHTMLEmbedElement WebCore::]):
506         (+[DOMHTMLEmbedElement _HTMLEmbedElementWith:WebCore::]):
507         * bindings/objc/DOMInternal.h:
508         * bindings/objc/DOMInternal.mm:
509         * bindings/scripts/CodeGeneratorObjC.pm:
510         * css/CSSCharsetRule.idl:
511         * css/CSSFontFaceRule.idl:
512         * css/CSSImportRule.idl:
513         * css/CSSMediaRule.idl:
514         * css/CSSPageRule.idl:
515         * css/CSSPrimitiveValue.idl:
516         * css/CSSStyleRule.idl:
517         * css/CSSStyleSheet.idl:
518         * css/CSSUnknownRule.idl:
519         * css/CSSValueList.idl:
520         * dom/KeyboardEvent.idl:
521         * dom/MouseEvent.idl:
522         * dom/MutationEvent.idl:
523         * dom/NodeIterator.idl:
524         * dom/OverflowEvent.idl:
525         * dom/UIEvent.idl:
526         * dom/WheelEvent.idl:
527
528 2006-09-29  David Harrison  <harrison@apple.com>
529
530         Reviewed by John Sullivan.
531
532         <rdar://problem/4663772> REGRESSION: Cannot type in Japanese after replying to a particular message
533         <rdar://problem/4673293> REGRESSION: Can't enter the Japanese characters in Mail or Blot
534
535         Test added
536         * fast/text/attributed-substring-from-range-001.html
537
538         * bridge/mac/FrameMac.mm:
539         (WebCore::FrameMac::attributedString):
540         Handle non-zero offsets when start and/or end node is a container. Offset used to be ignored in this case.
541         Also, add validation of the range.
542
543 2006-09-29  Rob Buis  <buis@kde.org>
544
545         Reviewed by Maciej.
546
547         http://bugs.webkit.org/show_bug.cgi?id=10893
548         InsertRule can not handle @import statements
549
550         Allow @import as part of a css rule.
551
552         * css/CSSGrammar.y:
553
554 2006-09-28  David Hyatt  <hyatt@apple.com>
555
556         Switch over the Mac-specific uses of viewportToContents/contentsToViewport.
557
558         * bridge/mac/FrameMac.mm:
559         (WebCore::FrameMac::eventMayStartDrag):
560         (WebCore::FrameMac::dragHysteresisExceeded):
561         (WebCore::FrameMac::mouseDown):
562         (WebCore::FrameMac::shouldDragAutoNode):
563         (WebCore::FrameMac::sendContextMenuEvent):
564         * bridge/mac/WebCoreFrameBridge.mm:
565         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
566
567 2006-09-28  Dave Hyatt  <hyatt@apple.com>
568
569         This patch eliminates viewportToContents/contentsToViewport in favor of convertTo/FromContainingWindow.
570         ScrollView now subclasses these methods to factor in its scrollOffset and to deal with the document
571         view.
572        
573         Reviewed by mjs (the convertTo/From changes), (I added the elimination of viewportToContents to
574         the patch after review, once I realized that these new functions essentially do the same thing.)
575
576         * dom/EventTargetNode.cpp:
577         (WebCore::EventTargetNode::dispatchMouseEvent):
578         (WebCore::EventTargetNode::dispatchWheelEvent):
579         * page/Frame.cpp:
580         (WebCore::Frame::selectClosestWordFromMouseEvent):
581         (WebCore::Frame::handleMousePressEventTripleClick):
582         (WebCore::Frame::handleMousePressEventSingleClick):
583         (WebCore::Frame::handleMouseMoveEvent):
584         (WebCore::Frame::handleMouseReleaseEvent):
585         * page/FrameView.cpp:
586         (WebCore::FrameView::handleMousePressEvent):
587         (WebCore::selectCursor):
588         (WebCore::FrameView::dispatchDragEvent):
589         (WebCore::FrameView::prepareMouseEvent):
590         (WebCore::FrameView::handleWheelEvent):
591         * platform/ScrollView.h:
592         * platform/Widget.cpp:
593         (WebCore::Widget::convertToContainingWindow):
594         * platform/Widget.h:
595         * platform/mac/ScrollViewMac.mm:
596         (WebCore::ScrollView::convertToContainingWindow):
597         (WebCore::ScrollView::convertFromContainingWindow):
598         * platform/mac/WidgetMac.mm:
599         (WebCore::Widget::convertToContainingWindow):
600         (WebCore::Widget::convertFromContainingWindow):
601         * platform/win/ScrollViewWin.cpp:
602         (WebCore::ScrollView::convertToContainingWindow):
603         (WebCore::ScrollView::convertFromContainingWindow):
604         * rendering/RenderLayer.cpp:
605         (WebCore::RenderLayer::resize):
606
607 2006-09-28  Alice Liu  <alice.liu@apple.com>
608
609         Build fix by adding missing files for CommandByName
610
611         * WebCore.xcodeproj/project.pbxproj:
612
613 2006-09-28  Alice Liu  <alice.liu@apple.com>
614
615         Adding CommandByName files to the vcproj
616
617         * WebCore.vcproj/WebCore/WebCore.vcproj:
618
619 2006-09-28  Alice Liu  <alice.liu@apple.com>
620
621         Reviewed by Adam Roben.
622
623         This patch adds a command class that is attached to the frame so the frame can more easily execute commands such as copy, paste, select, etc. 
624         This patch also exposes some UBRK-related utilities so that they can be used elsewhere.
625         This patch also changes windows PlatformMouseEvent so that we can detect multiple-click mouse events
626
627         * editing/CommandByName.cpp: Added.
628         Added a command class that hangs off the frame so the frame can call commands more easily.  
629         (WebCore::Frame::commandImp):
630         (WebCore::Frame::execCopy):
631         (WebCore::Frame::execCut):
632         (WebCore::Frame::execDelete):
633         (WebCore::Frame::execForwardDelete):
634         (WebCore::Frame::execPaste):
635         (WebCore::Frame::execMoveLeft):
636         (WebCore::Frame::execMoveRight):
637         (WebCore::Frame::execMoveUp):
638         (WebCore::Frame::execMoveDown):
639         (WebCore::Frame::execSelectAll):
640         (WebCore::Frame::execSelectLeft):
641         (WebCore::Frame::execSelectRight):
642         (WebCore::Frame::execSelectUp):
643         (WebCore::Frame::execSelectDown):
644         (WebCore::Frame::enabled):
645         (WebCore::Frame::enabledAnySelection):
646         (WebCore::Frame::enabledAnyEditableSelection):
647         (WebCore::Frame::enabledPaste):
648         (WebCore::Frame::enabledAnyRangeSelection):
649         (WebCore::Frame::enabledAnyEditableRangeSelection):
650         (WebCore::Frame::createCommandDictionary):
651         (WebCore::Frame::Command::):
652         (WebCore:::m_frame):
653         (WebCore::CommandByName::execCommand):
654         * editing/CommandByName.h: Added.
655         * page/Frame.cpp:
656         Added implementation of accessor for CommandByName member
657         (WebCore::Frame::command):
658         * page/Frame.h:
659         Added accessor for CommandByName member
660         * page/FramePrivate.h:
661         Added a CommandByName member
662         (WebCore::FramePrivate::FramePrivate):
663         * platform/PlatformMouseEvent.h:
664         Changed constructor prototype
665         * platform/StringImpl.cpp:
666         Exposing getWordBreakIterator to be used elsewhere
667         (WebCore::getWordBreakIterator):
668         * platform/StringImpl.h:
669         Exposing getWordBreakIterator to be used elsewhere
670         * platform/win/MouseEventWin.cpp:
671         Changed the PlatformMouseEvent on windows so that we "roll our own" multi-click mouse events instead of relying on the system to tell us, enabling us to detect triple-clicks
672         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
673
674 2006-09-28  Adam Roben  <aroben@apple.com>
675
676         Reviewed by Adele.
677
678         Remove no-longer-used PopUpButton.
679
680         * WebCore.vcproj/WebCore/WebCore.vcproj: Remove PopUpButton.h
681         * WebCore.xcodeproj/project.pbxproj: Remove PopUpButton.h,
682         PopUpButtonMac.mm
683         * platform/PopUpButton.h: Removed.
684         * platform/mac/PopUpButtonMac.mm: Removed.
685         * platform/win/TemporaryLinkStubs.cpp: Remove PopUpButton:: methods
686         * rendering/DeprecatedRenderSelect.cpp: Change #include of
687         PopUpButton.h to ListBox.h
688
689 2006-09-28  Darin Adler  <darin@apple.com>
690
691         Reviewed by Alice.
692
693         - change that should fix <rdar://problem/4733044> REGRESSION: XML iBench shows
694           10% perf. regression (copying strings while decoding)
695
696         Use Vector<UChar> instead of String when building up the decoded string in
697         the ICU and Mac decoders. Using String leads to O(n^2) behavior because
698         String grows the buffer every single time that append is called. Using
699         Vector::append instead of String::append also avoids constructing a string
700         each time just to append and a questionable copy that is done inside the
701         String::append function which also contributed to the slowness.
702
703         * platform/PlatformString.h:
704         * platform/String.cpp: (WebCore::String::adopt): Added. Makes a String from a
705         Vector<UChar>, adopting the buffer from the vector to avoid copying and memory
706         allocation.
707         * platform/StringImpl.h:
708         * platform/StringImpl.cpp: (WebCore::StringImpl::adopt): Ditto.
709
710         * platform/StreamingTextDecoder.h:
711         * platform/StreamingTextDecoder.cpp: (WebCore::TextCodec::appendOmittingBOM):
712         Change to use a Vector<UChar> instead of a String, since vectors have better
713         resizing performance (they store a separate capacity).
714
715         * platform/StreamingTextDecoderICU.cpp: (WebCore::TextCodecICU::decode):
716         * platform/mac/StreamingTextDecoderMac.cpp: (WebCore::TextCodecMac::decode):
717         Change to use Vector<UChar> instead of String and then create a string at
718         the end of the process using the new adopt function.
719
720 2006-09-28  Sam Weinig  <sam.weinig@gmail.com>
721
722         Reviewed by Tim H.
723
724         Patch for http://bugs.webkit.org/show_bug.cgi?id=11057
725         Auto-generate more SVG Objective-C bindings
726
727         - Auto-generates DOMSVGAnimatedAngle, DOMSVGAnimatedBoolean, 
728           DOMSVGAnimatedEnumeration, DOMSVGAnimatedInteger, DOMSVGAnimatedLength,
729           DOMSVGAnimatedLengthList, DOMSVGAnimatedNumber, DOMSVGAnimatedString,
730           DOMSVGAnimatedTransformList, DOMSVGExternalResourcesRequired,
731           DOMSVGLangSpace, DOMSVGLocatable, DOMSVGMetadataElement, DOMSVGRectElement,
732           DOMSVGStringList, DOMSVGStylable, DOMSVGStyleElement, DOMSVGTests, 
733           and DOMSVGTransformable.
734
735         - Adds ability to CodeGeneratorObjC.pm to handle interfaces with mulitple
736           parent interfaces and the SVG animated classes.
737
738         - Corrects CodeGenerator.pm to only skip the first parent for the main 
739           interface.
740
741         * DerivedSources.make:
742         * WebCore.xcodeproj/project.pbxproj:
743         * bindings/objc/DOMInternal.h:
744         * bindings/objc/DOMSVG.h:
745         * bindings/scripts/CodeGenerator.pm:
746         * bindings/scripts/CodeGeneratorObjC.pm:
747         * ksvg2/svg/SVGAnimatedAngle.idl:
748         * ksvg2/svg/SVGAnimatedBoolean.idl:
749         * ksvg2/svg/SVGAnimatedEnumeration.idl:
750         * ksvg2/svg/SVGAnimatedInteger.idl:
751         * ksvg2/svg/SVGAnimatedLength.idl:
752         * ksvg2/svg/SVGAnimatedLengthList.idl:
753         * ksvg2/svg/SVGAnimatedNumber.idl:
754         * ksvg2/svg/SVGAnimatedPathData.idl:
755         * ksvg2/svg/SVGAnimatedString.idl:
756         * ksvg2/svg/SVGAnimatedTransformList.idl:
757         * ksvg2/svg/SVGExternalResourcesRequired.idl:
758         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl:
759         * ksvg2/svg/SVGFitToViewBox.idl:
760         * ksvg2/svg/SVGLangSpace.idl:
761         * ksvg2/svg/SVGLocatable.idl:
762         * ksvg2/svg/SVGMetadataElement.idl:
763         * ksvg2/svg/SVGStringList.idl:
764         * ksvg2/svg/SVGStylable.idl:
765         * ksvg2/svg/SVGStyleElement.idl:
766         * ksvg2/svg/SVGTests.idl:
767         * ksvg2/svg/SVGTransformable.idl:
768         * ksvg2/svg/SVGURIReference.idl:
769         * ksvg2/svg/SVGUnitTypes.idl:
770         * ksvg2/svg/SVGZoomAndPan.idl:
771
772 2006-09-28  Brady Eidson  <beidson@apple.com>
773
774         Reviewed by Mitz Pettel!!!
775
776         Change the error code check for common functions from SQLResultOk to SQLResultDone 
777
778         * loader/icon/IconDatabase.cpp:
779         (WebCore::IconDatabase::forgetPageURLQuery):
780         (WebCore::IconDatabase::setIconIDForPageURLQuery):
781         (WebCore::IconDatabase::addIconForIconURLQuery):
782
783 2006-09-28  Dave Hyatt  <hyatt@apple.com>
784
785         Just eliminate MapWindowPoints usage and use the HWND as
786         the viewport.
787
788         * platform/win/MouseEventWin.cpp:
789         (WebCore::positionForEvent):
790         * platform/win/ScrollViewWin.cpp:
791         (WebCore::ScrollView::viewportToContents):
792         (WebCore::ScrollView::contentsToViewport):
793
794 2006-09-27  David Hyatt  <hyatt@apple.com>
795
796         Fix for bug 9222, cursor is wrong when mousing over overflow scrollbars in textareas.  Make sure
797         selectCursor checks for whether or not a scrollbar was hit.  Also stub out a mouseMoved method for
798         scrollbars to provide hover feedback if needed.
799
800         Reviewed by Eric
801
802         * page/FrameView.cpp:
803         (WebCore::selectCursor):
804         (WebCore::FrameView::handleMouseMoveEvent):
805         * platform/ScrollBar.h:
806         (WebCore::ScrollBar::mouseMoved):
807
808 2006-09-27  MorganL  <morganl.webkit@yahoo.com>
809
810         Reviewed by Maciej and Adam, landed by Adam
811
812         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11072
813         Windows build is busted
814
815         * platform/win/TemporaryLinkStubs.cpp:
816         (ScrollView::paint):
817         (ScrollView::themeChanged):
818
819 2006-09-27  Eric Seidel  <eric@eseidel.com>
820
821         Reviewed by mitz.
822
823         paths with no fill specified default to black but do not recieve paint-related mouse events
824         http://bugs.webkit.org/show_bug.cgi?id=11069
825         The default fill was being applied at the wrong place in the rendering chain, causing this problem.
826
827         Test: svg/custom/hover-default-fill.svg
828
829         * kcanvas/RenderPath.cpp:
830         (WebCore::RenderPath::nodeAtPoint): use isFilled and isStroked
831         * ksvg2/css/SVGRenderStyle.h: use defaultFill() and defaultStroke()
832         * ksvg2/misc/KCanvasRenderingStyle.cpp:
833         (WebCore::KSVGPainterFactory::isFilled): remove null check
834         (WebCore::KSVGPainterFactory::fillPaintServer): remove null check
835         (WebCore::KSVGPainterFactory::isStroked): remove null check
836         (WebCore::KSVGPainterFactory::strokePaintServer): remove null check
837         * ksvg2/svg/SVGPaint.cpp:
838         (WebCore::SVGPaint::defaultFill): added.
839         (WebCore::SVGPaint::defaultStroke): added.
840         * ksvg2/svg/SVGPaint.h:
841
842 2006-09-27  Rob Buis  <buis@kde.org>
843
844         Reviewed by eseidel.
845
846         http://bugs.webkit.org/show_bug.cgi?id=11015
847         SVG handles em units incorrectly
848
849         Calculate viewport coordinates at layout time, since
850         at this point the font size is known and lengths depending
851         on font sizes can be calculated correctly.
852
853         * kcanvas/RenderSVGContainer.cpp:
854         (WebCore::RenderSVGContainer::layout):
855         (WebCore::RenderSVGContainer::viewport):
856         (WebCore::RenderSVGContainer::calcViewport):
857         * kcanvas/RenderSVGContainer.h:
858         * ksvg2/svg/SVGLength.cpp:
859         (WebCore::SVGLength::updateValue):
860         * ksvg2/svg/SVGMarkerElement.cpp:
861         (WebCore::SVGMarkerElement::createRenderer):
862         * ksvg2/svg/SVGSVGElement.cpp:
863         (WebCore::SVGSVGElement::createRenderer):
864         (WebCore::SVGSVGElement::attributeChanged):
865         * ksvg2/svg/SVGSVGElement.h:
866
867 2006-09-27  Eric Seidel  <eric@eseidel.com>
868
869         Reviewed by darin.
870
871         Change our invalid-fill error behavior to match Opera (and soon Firefox)
872         http://bugs.webkit.org/show_bug.cgi?id=11017
873
874         * ksvg2/misc/KCanvasRenderingStyle.cpp:
875         (WebCore::KSVGPainterFactory::isFilled):
876         (WebCore::KSVGPainterFactory::fillPaintServer):
877         (WebCore::KSVGPainterFactory::isStroked):
878         (WebCore::KSVGPainterFactory::strokePaintServer):
879
880 2006-09-27  Brady Eidson  <beidson@apple.com>
881
882         Build fix
883
884         * loader/icon/IconDatabase.cpp:
885         (WebCore::readySQLStatement):
886
887 2006-09-27  Brady Eidson  <beidson@apple.com>
888
889         Reviewed by Adam
890
891         In very specific circumstances, prepared SQLStatements can become invalid without
892         any warning.  This checks for that state and re-prepares the statement and also
893         adds more aggressive error-checking everywhere these statements are used.
894
895         * loader/icon/IconDatabase.cpp:
896         (WebCore::readySQLStatement): Check if the statement is expired - reprepare it
897         (WebCore::IconDatabase::imageDataForIconURLQuery): More thoroughly catch error cases
898         (WebCore::IconDatabase::timeStampForIconURLQuery): Ditto
899         (WebCore::IconDatabase::iconURLForPageURLQuery): Ditto
900         (WebCore::IconDatabase::forgetPageURLQuery): Ditto
901         (WebCore::IconDatabase::setIconIDForPageURLQuery): Ditto
902         (WebCore::IconDatabase::getIconIDForIconURLQuery): Ditto
903         (WebCore::IconDatabase::addIconForIconURLQuery): Ditto
904         (WebCore::IconDatabase::hasIconForIconURLQuery): Ditto
905         * loader/icon/SQLStatement.cpp:
906         (WebCore::SQLStatement::isExpired): Added (accessor to sqlite3_expired())
907         * loader/icon/SQLStatement.h:
908
909 2006-09-26  Darin Adler  <darin@apple.com>
910
911         Reviewed by Steve.
912
913         - clean up options for font code path
914
915         * platform/Font.h:
916         * platform/Font.cpp:
917         (WebCore::Font::setCodePath): Added. Replaces boolean version.
918         (WebCore::Font::canUseGlyphCache): Update to handle "never use complex" case too.
919
920         * platform/mac/WebCoreTextRenderer.mm:
921         (WebCoreSetAlwaysUseATSU): Change to call setCodePath.
922
923 2006-09-26  John Sullivan  <sullivan@apple.com>
924
925         Reviewed by Darin
926
927         * bridge/mac/WebCoreFrameBridge.h:
928         * bridge/mac/WebCoreFrameBridge.mm:
929         (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:limit:]):
930         Added limit parameter, passed down to Frame
931         
932         * page/Frame.h:
933         * page/Frame.cpp:
934         (WebCore::Frame::markAllMatchesForText):
935         Added limit parameter. Stop the search if it hits limit.
936
937 2006-09-26  Sean Gies  <seangies@apple.com>
938
939         Reviewed by Brady Eidson.
940
941         * platform/cg/ImageCG.cpp: Removed #if's -- Darin said we don't need these.
942
943 2006-09-26  Justin Garcia  <justin.garcia@apple.com>
944
945         Reviewed by john
946         
947         <rdar://problem/4747695> 
948         Gmail Editor: Crash at WebCore::Range::startPosition() when decreasing a indent
949         
950         * editing/DeleteSelectionCommand.cpp:
951         (WebCore::DeleteSelectionCommand::initializeStartEnd): Stop expanding
952         to select special elements that are fully selected after expansion
953         moves to positions that are visually distinct from the originals.
954         * editing/InsertListCommand.cpp:
955         (WebCore::InsertListCommand::doApply): If the content of the list 
956         item will be moved into another list, put it in a list item.
957
958 2006-09-26  Geoffrey Garen <ggaren@apple.com>
959
960         Reviewed by Darin.
961         
962         Temporary work-around for frame lifetime issue.
963
964         * page/Frame.cpp:
965         (WebCore::Frame::clear):
966         (WebCore::Frame::disconnectOwnerElement):
967
968 2006-09-26  Sam Weinig  <sam.weinig@gmail.com>
969
970         Reviewed by Tim H.
971
972         Patch for http://bugs.webkit.org/show_bug.cgi?id=11038
973         Auto-generate DOMSVGElement for the Objective-C bindings
974
975         - Auto-generates DOMSVGElement.
976
977         - Make SVGExceptions work like all the other ExceptionCode
978           extensions (Range, XPath, etc.) by adding SVGExceptionOffset
979           and SVGExceptionMax.
980
981         * DerivedSources.make:
982         * WebCore.xcodeproj/project.pbxproj:
983         * bindings/js/kjs_binding.cpp:
984         (KJS::):
985         (KJS::setDOMException):
986         * bindings/objc/DOMInternal.h:
987         * bindings/objc/DOMInternal.mm:
988         (raiseDOMException):
989         * bindings/objc/DOMSVG.h:
990         * bindings/objc/DOMSVGExecption.h: Added.
991         * ksvg2/ksvg.h:
992         * ksvg2/svg/SVGElement.cpp:
993         (WebCore::SVGElement::setId):
994         (WebCore::SVGElement::setXmlbase):
995         * ksvg2/svg/SVGElement.h:
996         * ksvg2/svg/SVGElement.idl:
997         * ksvg2/svg/SVGException.h: Added.
998         (WebCore::):
999
1000 2006-09-26  Eric Seidel  <eric@eseidel.com>
1001
1002         Reviewed by Tim H.
1003         
1004         viewbox parser does not allow <tab> as a delimiter
1005         http://bugs.webkit.org/show_bug.cgi?id=11014
1006
1007         Test: svg/hixie/viewbox/003.xml
1008
1009         * ksvg2/svg/svgpathparser.cpp:
1010         (WebCore::isWhitespace): new function
1011         (WebCore::skipOptionalSpaces):
1012         (WebCore::skipOptionalSpacesOrComma):
1013
1014 2006-09-26  Eric Seidel  <eric@eseidel.com>
1015
1016         Reviewed by Tim H.
1017
1018         SVGDocument::createElement does not create elements in the SVG namespace
1019         http://bugs.webkit.org/show_bug.cgi?id=10932
1020         
1021         Test: svg/custom/createelement.svg
1022
1023         * ksvg2/svg/SVGDocument.cpp:
1024         (WebCore::SVGDocument::createElement):
1025         * ksvg2/svg/SVGDocument.h:
1026
1027 2006-09-26  Eric Seidel  <eric@eseidel.com>
1028
1029         Reviewed by Tim H.
1030         
1031         RenderPath::nodeAtPoint does not respect stroke width
1032         http://bugs.webkit.org/show_bug.cgi?id=10829
1033
1034         Test: svg/custom/stroke-width-click.svg
1035
1036         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
1037         (WebCore::RenderPath::strokeContains):
1038         * kcanvas/device/quartz/QuartzSupport.h:
1039         * kcanvas/device/quartz/QuartzSupport.mm:
1040
1041 2006-09-26  Eric Seidel  <eric@eseidel.com>
1042
1043         Reviewed by mitz.
1044
1045         Bring animation back to life
1046         http://bugs.webkit.org/show_bug.cgi?id=11021
1047         
1048         Register/unregister SVGSVGElements as time containers on insertion/removal.
1049         Replace uses of DeprecatedString with String in SVGAnimationElement
1050         Various whitespace clean-up.
1051
1052         * ksvg2/misc/KSVGTimeScheduler.cpp:
1053         (WebCore::SVGTimer::notifyAll):
1054         * ksvg2/misc/SVGDocumentExtensions.cpp:
1055         (WebCore::SVGDocumentExtensions::startAnimations):
1056         (WebCore::SVGDocumentExtensions::pauseAnimations):
1057         (WebCore::SVGDocumentExtensions::unpauseAnimations):
1058         * ksvg2/svg/SVGAnimateTransformElement.cpp:
1059         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
1060         (WebCore::SVGAnimateTransformElement::parseTransformValue):
1061         * ksvg2/svg/SVGAnimateTransformElement.h:
1062         * ksvg2/svg/SVGAnimationElement.cpp:
1063         (WebCore::SVGAnimationElement::SVGAnimationElement):
1064         (WebCore::SVGAnimationElement::parseMappedAttribute):
1065         (WebCore::SVGAnimationElement::parseClockValue):
1066         (WebCore::SVGAnimationElement::targetAttribute):
1067         (WebCore::SVGAnimationElement::setTargetAttribute):
1068         (WebCore::SVGAnimationElement::attributeName):
1069         * ksvg2/svg/SVGAnimationElement.h:
1070         (WebCore::SVGAnimationElement::rendererIsNeeded):
1071         * ksvg2/svg/SVGSVGElement.cpp:
1072         (WebCore::SVGSVGElement::getScreenCTM):
1073         (WebCore::SVGSVGElement::createRenderer):
1074         (WebCore::SVGSVGElement::insertedIntoDocument): added, calls addTimeContainer(this)
1075         (WebCore::SVGSVGElement::removedFromDocument): added, calls removeTimeContainer(this)
1076         * ksvg2/svg/SVGSVGElement.h:
1077         * ksvg2/svg/SVGSetElement.cpp:
1078         (WebCore::SVGSetElement::handleTimerEvent):
1079         * ksvg2/svg/SVGURIReference.cpp:
1080         (WebCore::SVGURIReference::getTarget):
1081         * ksvg2/svg/SVGURIReference.h:
1082
1083 2006-09-26  Graham Dennis  <graham.dennis@gmail.com>
1084
1085         Reviewed by mitzpettel.
1086
1087         - fix http://bugs.webkit.org/show_bug.cgi?id=11020
1088         No-SVG build broken since r16549
1089         
1090         Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT
1091
1092         * css/cssparser.cpp:
1093         (WebCore::CSSParser::parseValue):
1094         * css/cssstyleselector.cpp:
1095         (WebCore::CSSStyleSelector::applyProperty):
1096         * page/FrameView.cpp:
1097         (WebCore::selectCursor):
1098         * platform/qt/GraphicsContextQt.cpp:
1099
1100 2006-09-26  Anders Carlsson  <acarlsson@apple.com>
1101
1102         Reviewed by Maciej.
1103
1104         http://bugs.webkit.org/show_bug.cgi?id=10820
1105         Add StringImpl::toDouble() and remove uses of .deprecatedString().toDouble()
1106         
1107         (Originally written by Eric Seidel).
1108         
1109         * bindings/js/kjs_window.cpp:
1110         (KJS::floatFeature):
1111         * ksvg2/svg/SVGAngle.cpp:
1112         (SVGAngle::setValueAsString):
1113         * ksvg2/svg/SVGAnimationElement.cpp:
1114         (SVGAnimationElement::parseMappedAttribute):
1115         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1116         (SVGComponentTransferFunctionElement::parseMappedAttribute):
1117         * ksvg2/svg/SVGFECompositeElement.cpp:
1118         (WebCore::SVGFECompositeElement::parseMappedAttribute):
1119         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1120         (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
1121         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1122         (SVGFEDisplacementMapElement::parseMappedAttribute):
1123         * ksvg2/svg/SVGFELightElement.cpp:
1124         (SVGFELightElement::parseMappedAttribute):
1125         * ksvg2/svg/SVGFEOffsetElement.cpp:
1126         (WebCore::SVGFEOffsetElement::parseMappedAttribute):
1127         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1128         (SVGFESpecularLightingElement::parseMappedAttribute):
1129         * ksvg2/svg/SVGFETurbulenceElement.cpp:
1130         (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
1131         * ksvg2/svg/SVGStopElement.cpp:
1132         (SVGStopElement::parseMappedAttribute):
1133         * platform/AtomicString.h:
1134         (WebCore::AtomicString::toDouble):
1135         * platform/PlatformString.h:
1136         * platform/String.cpp:
1137         (WebCore::String::toDouble):
1138         * platform/StringImpl.cpp:
1139         (WebCore::StringImpl::toDouble):
1140         * platform/StringImpl.h:
1141         * rendering/DeprecatedSlider.cpp:
1142         (WebCore::DeprecatedSlider::updateFromElement):
1143         * xml/XPathGrammar.y:
1144
1145 2006-09-25  David Harrison  <harrison@apple.com>
1146
1147         Reviewed by Tim Omernick and Tim Hatcher.
1148
1149         <rdar://problem/4717965> Text Field text parameterized attributes should work
1150         <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
1151
1152         * bridge/mac/WebCoreAXObject.mm:
1153         (-[WebCoreAXObject accessibilityAttributeValue:]):
1154         Use new line number support to implement NSAccessibilityInsertionPointLineNumberAttribute.
1155         
1156         (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
1157         Cleaned up. Added text field and text area parameterzed attributes.
1158         
1159         (-[WebCoreAXObject doAXLineForTextMarker:]):
1160         Fixed to be zero-based and to deal with the first position properly.
1161         
1162         (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
1163         Minor formatting.
1164         
1165         (-[WebCoreAXObject textMarkerForIndex:lastIndexOK:]):
1166         (-[WebCoreAXObject indexForTextMarker:]):
1167         (-[WebCoreAXObject textMarkerRangeForRange:]):
1168         (-[WebCoreAXObject rangeForTextMarkerRange:]):
1169         New utility methods.
1170         
1171         (-[WebCoreAXObject doAXLineForIndex:]):
1172         (-[WebCoreAXObject doAXRangeForLine:]):
1173         (-[WebCoreAXObject doAXStringForRange:]):
1174         (-[WebCoreAXObject doAXRangeForPosition:]):
1175         (-[WebCoreAXObject doAXRangeForIndex:]):
1176         (-[WebCoreAXObject doAXBoundsForRange:]):
1177         (-[WebCoreAXObject doAXAttributedStringForRange:]):
1178         (-[WebCoreAXObject doAXRTFForRange:]):
1179         (-[WebCoreAXObject doAXStyleRangeForIndex:]):
1180         Implement text field and text area parameterized attributes.
1181          
1182         (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
1183         Added text field and text area parameterzed attributes.
1184
1185         * rendering/RenderTextControl.h:
1186         Made indexForVisiblePosition() and visiblePositionForIndex() public.
1187
1188 2006-09-25  Adam Roben  <aroben@apple.com>
1189
1190         Reviewed by Brady.
1191
1192         Build fixes.
1193
1194         * WebCore.vcproj/WebCore/WebCore.vcproj: Fix malformed XML.
1195         * platform/ResourceLoader.h: Store whether a particular job
1196         has received a response within the ResourceLoader object itself, since
1197         it's possible that we will enter the InternetReadFileExA while loop
1198         twice for the same job.
1199         * platform/ResourceLoaderInternal.h: Add private instance variable to
1200         store whether we've received a response.
1201         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1202         * platform/win/GraphicsContextWin.cpp: Fix order of preprocessor
1203         directives.
1204         * platform/win/ResourceLoaderWin.cpp: 
1205         (WebCore::ResourceLoader::onRequestComplete): Ask the ResourceLoader
1206         whether it has received a response instead of assuming it hasn't.
1207         (WebCore::ResourceLoader::setHasReceivedResponse): Added.
1208         (WebCore::ResourceLoader::hasReceivedResponse): Added.
1209         * platform/win/TemporaryLinkStubs.cpp: Rename setKnobProportion to
1210         setProportion
1211         (ScrollBar::setProportion):
1212
1213 2006-09-25  Brady Eidson  <beidson@apple.com>
1214
1215         Requested by ggaren
1216
1217         Disabled IconDatabase logging by default
1218
1219         * platform/Logging.cpp:
1220         (WebCore::):
1221
1222 2006-09-25  Steve Falkenburg  <sfalken@apple.com>
1223
1224         Build fix
1225
1226         * platform/cf/ResourceLoaderCFNet.cpp:
1227         (WebCore::willCacheResponse):
1228
1229 2006-09-25  Justin Garcia  <justin.garcia@apple.com>
1230
1231         Reviewed by john
1232         
1233         <http://bugs.webkit.org/show_bug.cgi?id=11002>
1234         Gmail Editor: Crash at WebCore::SplitElementCommand::doApply() when attempting to indent in a new message
1235         
1236         * editing/IndentOutdentCommand.cpp:
1237         (WebCore::IndentOutdentCommand::indentRegion): Special case
1238         an empty root editable element.
1239
1240 2006-09-25  Brady Eidson  <beidson@apple.com>
1241
1242         Reviewed by Steve
1243
1244         Math error in SystemTimeWin
1245
1246         * platform/win/SystemTimeWin.cpp:
1247         (WebCore::currentTime):
1248
1249 2006-09-25  Alexey Proskuryakov  <ap@nypop.com>
1250
1251         Reviewed by Eric.
1252
1253         Whitespace cleanup; rename *job variables to *loader.
1254
1255         * bindings/js/JSXMLHttpRequest.cpp:
1256         (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
1257         (KJS::JSXMLHttpRequestConstructorImp::implementsConstruct):
1258         (KJS::JSXMLHttpRequestConstructorImp::construct):
1259         (KJS::JSXMLHttpRequest::getOwnPropertySlot):
1260         (KJS::JSXMLHttpRequest::getValueProperty):
1261         (KJS::JSXMLHttpRequest::put):
1262         (KJS::JSXMLHttpRequest::putValueProperty):
1263         (KJS::JSXMLHttpRequest::mark):
1264         (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
1265         (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
1266         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
1267         * bindings/js/JSXMLHttpRequest.h:
1268         (KJS::JSXMLHttpRequest::toBoolean):
1269         * xml/xmlhttprequest.cpp:
1270         (WebCore::XMLHttpRequest::XMLHttpRequest):
1271         (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
1272         (WebCore::XMLHttpRequest::send):
1273         (WebCore::XMLHttpRequest::abort):
1274         (WebCore::XMLHttpRequest::receivedAllData):
1275         (WebCore::XMLHttpRequest::receivedData):
1276         * xml/xmlhttprequest.h:
1277         (WebCore::):
1278
1279 2006-09-25  Timothy Hatcher  <timothy@apple.com>
1280
1281         Reviewed by Brady.
1282
1283         - Deprecate the rest of the old-style methods that are not generated.
1284         - Add @property syntax to DOMRange.
1285
1286         * WebCore.xcodeproj/project.pbxproj:
1287         * bindings/objc/DOM.mm:
1288         (-[DOMRange setStart:offset:]):
1289         (-[DOMRange setEnd:offset:]):
1290         (-[DOMRange compareBoundaryPoints:sourceRange:]):
1291         (-[DOMRange setStart::]):
1292         (-[DOMRange setEnd::]):
1293         (-[DOMRange compareBoundaryPoints::]):
1294         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
1295         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
1296         (-[DOMDocument createNodeIterator::::]):
1297         (-[DOMDocument createTreeWalker::::]):
1298         * bindings/objc/DOMCSS.h:
1299         * bindings/objc/DOMCSS.mm:
1300         (-[DOMDocument getComputedStyle:pseudoElement:]):
1301         (-[DOMDocument getComputedStyle::]):
1302         (-[DOMDocument getMatchedCSSRules:pseudoElement:]):
1303         * bindings/objc/DOMExtensions.h:
1304         * bindings/objc/DOMHTML.h:
1305         * bindings/objc/DOMRange.h:
1306         * bindings/objc/DOMTraversal.h:
1307
1308 2006-09-25  Eric Seidel  <eric@eseidel.com>
1309
1310         Reviewed by mjs.
1311         
1312         Outermost <svg> element should clip to viewport
1313         http://bugs.webkit.org/show_bug.cgi?id=11007
1314
1315         Test: svg/custom/viewport-clip.svg
1316
1317         * css/svg.css: change svg:root overflow: from 'visible' to 'hidden'
1318
1319 2006-09-25  Anders Carlsson  <acarlsson@apple.com>
1320
1321         Reviewed by Maciej.
1322
1323         * css/MediaList.cpp:
1324         Remove unused header.
1325         
1326         * dom/Document.cpp:
1327         (WebCore::Document::clear):
1328         Use clear instead of iterating through the list of event listeners, removing each one.
1329         (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
1330         
1331         * html/HTMLKeygenElement.cpp:
1332         (WebCore::HTMLKeygenElement::HTMLKeygenElement):
1333         (WebCore::HTMLKeygenElement::appendFormData):
1334         Update due to changes in the SSL key generator.
1335         
1336         * ksvg2/svg/SVGAngle.cpp:
1337         Remove unused header.
1338         
1339         * ksvg2/svg/SVGAnimationElement.cpp:
1340         (SVGAnimationElement::parseMappedAttribute):
1341         Rename methods and pass Strings instead of DeprecatedStrings to
1342         parseSeparatedList.
1343         
1344         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1345         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1346         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1347         * ksvg2/svg/SVGFEMergeElement.cpp:
1348         * ksvg2/svg/SVGFEOffsetElement.cpp:
1349         Remove unused headers.
1350         
1351         * ksvg2/svg/SVGHelper.cpp:
1352         (WebCore::SVGHelper::parseSeparatedList):
1353         * ksvg2/svg/SVGHelper.h:
1354         Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a 
1355         DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
1356         
1357         * ksvg2/svg/SVGLengthList.cpp:
1358         (WebCore::SVGLengthList::parse):
1359         * ksvg2/svg/SVGLengthList.h:
1360         Use Vector<String> instead of DeprecatedStringList.
1361         
1362         * loader/Cache.cpp:
1363         (WebCore::Cache::requestImage):
1364         (WebCore::Cache::requestStyleSheet):
1365         (WebCore::Cache::requestScript):
1366         (WebCore::Cache::requestXSLStyleSheet):
1367         (WebCore::Cache::requestXBLDocument):
1368         (WebCore::Cache::remove):
1369         (WebCore::Cache::get):
1370         Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
1371         
1372         * loader/DocLoader.cpp:
1373         (WebCore::DocLoader::needReload):
1374         * loader/DocLoader.h:
1375         Use a HashSet instead of DeprecatedStringList.
1376         
1377         * page/FrameView.h:
1378         Remove declarations that have no functions.
1379         
1380         * platform/SSLKeyGenerator.h:
1381         * platform/mac/SSLKeyGeneratorMac.mm:
1382         (WebCore::supportedKeySizes):
1383         (WebCore::signedPublicKeyAndChallengeString):
1384         Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
1385         DeprecatedString.
1386
1387 2006-09-25  Dave Hyatt  <hyatt@apple.com>
1388
1389         Shunt the RenderTheme world transform adoption between
1390         Cairo and Windows into getWindowsContext and move the method
1391         out of GraphicsContextCairo and into GraphicsContextWin.
1392
1393         * ChangeLog:
1394         * WebCore.vcproj/WebCore/WebCore.vcproj:
1395         * platform/cairo/GraphicsContextCairo.cpp:
1396         * platform/win/GraphicsContextWin.cpp: Added.
1397         (WebCore::GraphicsContext::getWindowsContext):
1398         (WebCore::GraphicsContext::releaseWindowsContext):
1399         * rendering/RenderThemeWin.cpp:
1400         (WebCore::prepareForDrawing):
1401
1402 2006-09-24  Eric Seidel  <eric@eseidel.com>
1403
1404         Reviewed by hyatt.
1405
1406         <svg:a> cannot be styled with a:hover
1407         http://bugs.webkit.org/show_bug.cgi?id=11005
1408         
1409         Test: svg/hixie/cascade/002.xml
1410
1411         * css/cssstyleselector.cpp:
1412         (WebCore::checkPseudoState):
1413
1414 2006-09-24  Sam Weinig  <sam.weinig@gmail.com>
1415
1416         Reviewed by Tim H.
1417
1418         Patch for http://bugs.webkit.org/show_bug.cgi?id=10882
1419         SVG needs Obj-C DOM bindings
1420
1421         - Auto-generate the first 8 Objective-C SVG DOM bindings.  The 
1422           auto-generated classes are DOMSVGAngle, DOMSVGLength, DOMSVGLengthList,
1423           DOMSVGMatrix, DOMSVGPathSeg, DOMSVGPathSegList, DOMSVGTransform, and 
1424           DOMSVGTransformList.
1425
1426         * DerivedSources.make:
1427         * WebCore.xcodeproj/project.pbxproj:
1428         * bindings/objc/DOMInternal.h:
1429         * bindings/objc/DOMSVG.h: Added.
1430         * ksvg2/svg/SVGAngle.idl:
1431         * ksvg2/svg/SVGLength.idl:
1432         * ksvg2/svg/SVGLengthList.idl:
1433         * ksvg2/svg/SVGMatrix.idl:
1434         * ksvg2/svg/SVGPathSeg.idl:
1435         * ksvg2/svg/SVGPathSegList.idl:
1436         * ksvg2/svg/SVGTransform.idl:
1437         * ksvg2/svg/SVGTransformList.idl:
1438
1439 2006-09-24  Rob Buis  <buis@kde.org>
1440
1441         Reviewed by eseidel.
1442
1443         Fix for http://bugs.webkit.org/show_bug.cgi?id=6001
1444         WebKit does not handle fallback custom cursors
1445         Fix for http://bugs.webkit.org/show_bug.cgi?id=6002
1446         WebKit does not properly handle SVG <cursor> element
1447
1448         Add support for svg cursor images. Also make sure hotspot
1449         settings are handled correctly. Add tests for handling of css3
1450         cursor syntax with hotspots in strict and quirks mode. Finally
1451         implement fallback.
1452
1453         * WebCore.xcodeproj/project.pbxproj:
1454         * css/CSSComputedStyleDeclaration.cpp:
1455         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1456         * css/CSSCursorImageValue.cpp: Added.
1457         (WebCore::CSSCursorImageValue::CSSCursorImageValue):
1458         (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
1459         * css/CSSCursorImageValue.h: Added.
1460         (WebCore::CSSCursorImageValue::hotspot):
1461         * css/cssparser.cpp:
1462         (WebCore::CSSParser::parseValue):
1463         * css/cssstyleselector.cpp:
1464         (WebCore::CSSStyleSelector::applyProperty):
1465         * ksvg2/svg/SVGCursorElement.cpp:
1466         * manual-tests/css3-cursor-fallback-quirks.html: Added.
1467         * manual-tests/css3-cursor-fallback-strict.html: Added.
1468         * manual-tests/cursorfallback.xml: Added.
1469         * page/FrameView.cpp:
1470         (WebCore::selectCursor):
1471         * platform/Cursor.h:
1472         * platform/mac/CursorMac.mm:
1473         (WebCore::createCustomCursor):
1474         (WebCore::Cursor::Cursor):
1475         * platform/qt/CursorQt.cpp:
1476         (WebCore::Cursor::Cursor):
1477         * rendering/RenderStyle.cpp:
1478         (WebCore::StyleInheritedData::StyleInheritedData):
1479         (WebCore::StyleInheritedData::operator==):
1480         (WebCore::RenderStyle::diff):
1481         (WebCore::RenderStyle::addCursor):
1482         (WebCore::RenderStyle::addSVGCursor):
1483         (WebCore::RenderStyle::setCursorList):
1484         (WebCore::RenderStyle::clearCursorList):
1485         * rendering/RenderStyle.h:
1486         (WebCore::CursorData::CursorData):
1487         (WebCore::CursorList::operator[]):
1488         (WebCore::CursorList::size):
1489         (WebCore::CursorList::append):
1490         (WebCore::RenderStyle::cursors):
1491
1492 2006-09-24  Sam Weinig  <sam.weinig@gmail.com>
1493
1494         Reviewed by Tim H.
1495
1496         Patch for http://bugs.webkit.org/show_bug.cgi?id=11009
1497         Auto-generate the internal methods interfaces for the Objective-C bindings
1498
1499         - Auto-generate the internal method declarations into their own files
1500           named in the form DOMFooBarInternal.h for class DOMFooBar.
1501
1502         - Remove all use of DOM_cast from code.
1503
1504         - Assorted cleanups.
1505
1506         * WebCore.xcodeproj/project.pbxproj:
1507         * bindings/objc/DOM.mm:
1508         (-[DOMNode _initWithNode:WebCore::]):
1509         (-[DOMNode WebCore::]):
1510         (-[DOMRange dealloc]):
1511         (-[DOMRange finalize]):
1512         (-[DOMRange _initWithRange:WebCore::]):
1513         (-[DOMRange WebCore::]):
1514         (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
1515         (-[DOMNodeFilter WebCore::]):
1516         (-[DOMNodeFilter dealloc]):
1517         (-[DOMNodeFilter finalize]):
1518         (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
1519         (-[DOMNodeIterator WebCore::]):
1520         (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
1521         (-[DOMTreeWalker WebCore::]):
1522         * bindings/objc/DOMAbstractView.mm:
1523         (-[DOMAbstractView _initWithAbstractView:WebCore::]):
1524         * bindings/objc/DOMCSS.mm:
1525         (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
1526         (-[DOMCSSRule _initWithRule:WebCore::]):
1527         (-[DOMCSSValue _initWithValue:WebCore::]):
1528         * bindings/objc/DOMEvents.mm:
1529         (-[DOMEvent _initWithEvent:WebCore::]):
1530         * bindings/objc/DOMHTMLAppletElement.mm:
1531         (-[DOMHTMLAppletElement align]):
1532         (-[DOMHTMLAppletElement setAlign:]):
1533         (-[DOMHTMLAppletElement alt]):
1534         (-[DOMHTMLAppletElement setAlt:]):
1535         (-[DOMHTMLAppletElement archive]):
1536         (-[DOMHTMLAppletElement setArchive:]):
1537         (-[DOMHTMLAppletElement code]):
1538         (-[DOMHTMLAppletElement setCode:]):
1539         (-[DOMHTMLAppletElement codeBase]):
1540         (-[DOMHTMLAppletElement setCodeBase:]):
1541         (-[DOMHTMLAppletElement height]):
1542         (-[DOMHTMLAppletElement setHeight:]):
1543         (-[DOMHTMLAppletElement hspace]):
1544         (-[DOMHTMLAppletElement setHspace:]):
1545         (-[DOMHTMLAppletElement name]):
1546         (-[DOMHTMLAppletElement setName:]):
1547         (-[DOMHTMLAppletElement object]):
1548         (-[DOMHTMLAppletElement setObject:]):
1549         (-[DOMHTMLAppletElement vspace]):
1550         (-[DOMHTMLAppletElement setVspace:]):
1551         (-[DOMHTMLAppletElement width]):
1552         (-[DOMHTMLAppletElement setWidth:]):
1553         * bindings/objc/DOMInternal.h:
1554         (getDOMWrapper):
1555         (addDOMWrapper):
1556         (raiseOnDOMError):
1557         * bindings/objc/DOMXPath.mm:
1558         (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
1559         * bindings/scripts/CodeGeneratorObjC.pm:
1560
1561 2006-09-24  Nikolas Zimmermann  <zimmermann@kde.org>
1562
1563         Reviewed by eseidel.
1564
1565         Fix Qt/Linux build after Dave's Scrollbar changes.
1566
1567         * platform/qt/PlatformScrollBar.h: (Somehow this contained the file twice! Removed one instance!)
1568         * platform/qt/TemporaryLinkStubs.cpp:
1569         (WebCore::ScrollBar::setProportion):
1570         (WebCore::PlatformScrollBar::updateThumbPosition):
1571         (WebCore::PlatformScrollBar::updateThumbProportion):
1572
1573 2006-09-24  Nikolas Zimmermann  <zimmermann@kde.org>
1574
1575         Reviewed by eseidel.
1576
1577         Qt/Linux build system changes: enable xpath/xslt by default.
1578         Offer possibility to change all of these using 'ccmake'.
1579
1580         * CMakeLists.txt:
1581
1582 2006-09-24  Dave Hyatt  <hyatt@apple.com>
1583
1584         Cleanup of Scrollbar APIs.  Rename setKnobProportion to setProportion.  Rename setScrollbarValue to updateThumbPosition.
1585         Give setProportion a base class implementation and implement it using the same pattern as setValue/updateThumbPosition (so that
1586         the base calls a protected virtual function, updateThumbProportion, implemented by the derived class to update the actual scrollbar itself).
1587
1588         * platform/ScrollBar.cpp:
1589         (WebCore::ScrollBar::setValue):
1590         (WebCore::ScrollBar::setProportion):
1591         * platform/ScrollBar.h:
1592         (WebCore::ScrollBar::value):
1593         * platform/mac/PlatformScrollBar.h:
1594         * platform/mac/PlatformScrollBarMac.mm:
1595         (WebCore::PlatformScrollBar::updateThumbPosition):
1596         (WebCore::PlatformScrollBar::updateThumbProportion):
1597         * platform/win/PlatformScrollBar.h:
1598         * platform/win/TemporaryLinkStubs.cpp:
1599         (PlatformScrollBar::updateThumbPosition):
1600         (PlatformScrollBar::updateThumbProportion):
1601         * rendering/RenderLayer.cpp:
1602         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
1603
1604 2006-09-23  Alexey Proskuryakov  <ap@nypop.com>
1605
1606         Reviewed by Eric.
1607
1608         http://bugs.webkit.org/show_bug.cgi?id=4872
1609         XMLHttpRequest fails to throw an exception when there is a security violation
1610         (mismatching domains)
1611
1612         Raise an exception if there is a security violation, and also in cases required by
1613         the current draft of XHR specification.
1614
1615         * bindings/js/JSXMLHttpRequest.cpp:
1616         (KJS::JSXMLHttpRequest::getValueProperty): Raise an exception if a DOM method reports one.
1617         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Raise an exception if a DOM method
1618         reports one, and also if there were too few arguments passed. 
1619
1620         * bindings/js/kjs_binding.cpp:
1621         (KJS::setDOMException): Added support for custom XHR exceptions.
1622
1623         * xml/xmlhttprequest.h: Changed state names to match the current spec. Defined an
1624         exception code range for XHR exceptions.
1625
1626         * xml/xmlhttprequest.cpp:
1627         (WebCore::XMLHttpRequest::open): Removed a check for m_aborted that could never succeed.
1628         (WebCore::XMLHttpRequest::send):
1629         (WebCore::XMLHttpRequest::setRequestHeader):
1630         (WebCore::XMLHttpRequest::getStatus):
1631         (WebCore::XMLHttpRequest::getStatusText):
1632         (WebCore::XMLHttpRequest::processSyncLoadResults):
1633         (WebCore::XMLHttpRequest::receivedAllData):
1634         (WebCore::XMLHttpRequest::receivedData):
1635
1636 2006-09-22  Steve Falkenburg  <sfalken@apple.com>
1637
1638         Reviewed by Jeff Jenkins.
1639
1640         Tweak CF types.
1641
1642         * platform/cf/ResourceLoaderCFNet.cpp:
1643         (WebCore::willCacheResponse):
1644
1645 2006-09-22  Justin Garcia  <justin.garcia@apple.com>
1646
1647         Reviewed by darin
1648
1649         <http://bugs.webkit.org/show_bug.cgi?id=8029>
1650         Rename Node::isAncestor and RenderObject::hasAncestor to isDescendantOf
1651
1652         * dom/Document.cpp:
1653         (WebCore::Document::clearSelectionIfNeeded):
1654         * dom/Element.cpp:
1655         (WebCore::Element::contains):
1656         * dom/Node.cpp:
1657         (WebCore::Node::traverseNextNode):
1658         (WebCore::Node::traverseNextSibling):
1659         (WebCore::Node::traversePreviousNodePostOrder):
1660         (WebCore::Node::checkAddChild):
1661         (WebCore::Node::isDescendantOf):
1662         * dom/Node.h:
1663         * dom/NodeIterator.cpp:
1664         (WebCore::NodeIterator::notifyBeforeNodeRemoval):
1665         * editing/ApplyStyleCommand.cpp:
1666         (WebCore::ApplyStyleCommand::applyBlockStyle):
1667         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
1668         (WebCore::ApplyStyleCommand::applyInlineStyle):
1669         (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode):
1670         * editing/CompositeEditCommand.cpp:
1671         (WebCore::CompositeEditCommand::mergeIdenticalElements):
1672         (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
1673         * editing/DeleteSelectionCommand.cpp:
1674         (WebCore::updatePositionForNodeRemoval):
1675         (WebCore::DeleteSelectionCommand::handleGeneralDelete):
1676         (WebCore::DeleteSelectionCommand::mergeParagraphs):
1677         * editing/FormatBlockCommand.cpp:
1678         (WebCore::FormatBlockCommand::doApply):
1679         * editing/IndentOutdentCommand.cpp:
1680         (WebCore::enclosingListOrBlockquote):
1681         * editing/Selection.cpp:
1682         (WebCore::Selection::validate):
1683         * editing/SelectionController.cpp:
1684         (WebCore::SelectionController::nodeWillBeRemoved):
1685         * editing/TextIterator.cpp:
1686         (WebCore::SimplifiedBackwardsTextIterator::advance):
1687         * editing/VisiblePosition.cpp:
1688         (WebCore::VisiblePosition::next):
1689         (WebCore::VisiblePosition::previous):
1690         (WebCore::VisiblePosition::canonicalPosition):
1691         (WebCore::isFirstVisiblePositionInNode):
1692         (WebCore::isLastVisiblePositionInNode):
1693         * editing/htmlediting.cpp:
1694         (WebCore::firstEditablePositionAfterPositionInRoot):
1695         (WebCore::lastEditablePositionBeforePositionInRoot):
1696         (WebCore::enclosingNodeWithTag):
1697         (WebCore::enclosingList):
1698         (WebCore::enclosingListChild):
1699         * editing/markup.cpp:
1700         (WebCore::createMarkup):
1701
1702 2006-09-22  Timothy Hatcher  <timothy@apple.com>
1703
1704         Reviewed by Darin.
1705
1706         - Added @property syntax to non-generated headers
1707           inside #ifndef BUILDING_ON_TIGER.
1708         - Changed the DOMEventTarget protocol to have have new versions
1709           of addEventListener and removeEventListener with named parameters.
1710           These old style methods can be removed once Mail changes to use
1711           the new methods <rdar://problem/4746649>.
1712
1713         * WebCorePrefix.h: define BUILDING_ON_TIGER when Tiger is the target
1714         * bindings/objc/DOM.mm:
1715         (-[DOMNode addEventListener:listener:useCapture:]):
1716         (-[DOMNode addEventListener:::]): call the new method
1717         (-[DOMNode removeEventListener:listener:useCapture:]):
1718         (-[DOMNode removeEventListener:::]): call the new method
1719         * bindings/objc/DOMAbstractView.h:
1720         * bindings/objc/DOMEventTarget.h:
1721         * bindings/objc/DOMHTMLAppletElement.h:
1722         * bindings/objc/DOMHTMLEmbedElement.h:
1723         * bindings/objc/DOMHTMLOptionElement.h:
1724         * bindings/objc/DOMObject.h:
1725         * bindings/objc/DOMRGBColor.h:
1726
1727 2006-09-22  Nikolas Zimmermann  <zimmermann@kde.org>
1728
1729         Reviewed by Eric.
1730
1731         Fix Qt/Linux build and a really stupid mixup in GraphicsContextQt.
1732
1733         * platform/qt/FrameQt.cpp:
1734         * platform/qt/GraphicsContextQt.cpp:
1735         (WebCore::GraphicsContext::translate): Make it actually translate, not scale! :-)
1736         (WebCore::GraphicsContext::origin):
1737         * platform/qt/PlatformScrollBar.h: Added.
1738         (WebCore::PlatformScrollBar::isWidget):
1739         * platform/qt/WidgetQt.cpp:
1740         (WebCore::Widget::invalidate):
1741         (WebCore::Widget::invalidateRect):
1742
1743 2006-09-22  Dave Hyatt <hyatt@apple.com>
1744
1745         Super-minor tweaks to the systemFont function on Mac.
1746         Set the generic family to None rather than to Serif, and
1747         don't waste time setting the computed size, since that is
1748         set from the specified size over in CSSStyleSelector anyway.
1749
1750         * rendering/RenderThemeMac.mm:
1751         (WebCore::RenderThemeMac::systemFont):
1752
1753 2006-09-22  Timothy Hatcher  <timothy@apple.com>
1754
1755         Reviewed by Brady.
1756
1757         Build fix for Xcode 2.3. Convert GraphicsContext::translate() to
1758         take floats. There was already an implicit conversion to float/double
1759         when calling CGContextTranslateCTM or cairo_translate.
1760
1761         * platform/GraphicsContext.h:
1762         * platform/cairo/GraphicsContextCairo.cpp:
1763         (WebCore::GraphicsContext::translate):
1764         * platform/cg/GraphicsContextCG.cpp:
1765         (WebCore::GraphicsContext::translate):
1766
1767 2006-09-22  Brady Eidson  <beidson@apple.com>
1768
1769         Reviewed by Sfalken
1770
1771         Add redirect and other cleanup to ResourceLoaderWin.cpp
1772         Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10927
1773         Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10744
1774
1775         * WebCore.xcodeproj/project.pbxproj:
1776         * platform/ResourceLoader.h:
1777         * platform/win/ResourceLoaderWin.cpp:
1778         (WebCore::ResourceLoaderWndProc):
1779         (WebCore::initializeOffScreenResourceLoaderWindow):
1780         (WebCore::ResourceLoader::onHandleCreated):
1781         (WebCore::ResourceLoader::onRequestRedirected):
1782         (WebCore::ResourceLoader::onRequestComplete):
1783         (WebCore::transferJobStatusCallback):
1784
1785 2006-09-22  Alexey Proskuryakov  <ap@nypop.com>
1786
1787         Reviewed by Geoff.
1788
1789         http://bugs.webkit.org/show_bug.cgi?id=10803
1790         REGRESSION (r15536-r15544): manual-tests/bugzilla-6821.html failing
1791
1792         * page/FrameView.cpp:
1793         (WebCore::FrameView::hoverTimerFired): Use the current event.
1794
1795 2006-09-22  Nikolas Zimmermann  <zimmermann@kde.org>
1796
1797         Reviewed by Anders.
1798
1799         Fix (last) svg memory leak.
1800
1801         * ksvg2/svg/SVGTransformable.cpp: delete 't' in error case.
1802         (SVGTransformable::parseTransformAttribute):
1803
1804 2006-09-22  Eric Seidel  <eric@eseidel.com>
1805
1806         No review necessary, just removing a dead file.
1807
1808         Remove unused file (added previously by mistake) to make room for real implementation.
1809
1810         * platform/mac/BitmapImageMac.mm: Removed.
1811
1812 2006-09-22  Dave Hyatt <hyatt@apple.com>
1813
1814         Move PlatformScrollBar.h down into the platforms.
1815         
1816         Reviewed by andersca
1817
1818         * platform/PlatformScrollBar.h: Removed.
1819         * platform/win/PlatformScrollBar.h: Added.
1820         * platform/mac/PlatformScrollBar.h: Added.
1821
1822 2006-09-22   Dave Hyatt  <hyatt@apple.com>
1823
1824         Add support for invalidation of widgets.  This will be needed for the Win32 widget subsystem (and for
1825         any widget subsystems that don't have any underlying native objects backing the widgets.
1826
1827         Reviewed by anders
1828
1829         * platform/Widget.h:
1830         * platform/mac/WidgetMac.mm:
1831         (WebCore::Widget::invalidate):
1832         (WebCore::Widget::invalidateRect):
1833         * platform/win/TemporaryLinkStubs.cpp:
1834         (Widget::invalidate):
1835         (Widget::invalidateRect):
1836
1837 2006-09-22  Rob Buis  <buis@kd.org>
1838
1839         Reviewed by eseidel.
1840
1841         http://bugs.webkit.org/show_bug.cgi?id=10901
1842         Merge build fixes from unity
1843
1844         * CMakeLists.txt:
1845
1846 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
1847
1848         Reviewed by eseidel.
1849
1850         http://bugs.webkit.org/show_bug.cgi?id=10977
1851         SVGDocument does not expose 'rootElement' property
1852
1853         Enable 'rootElement' property.
1854
1855         * ksvg2/svg/SVGDocument.idl:
1856
1857 2006-09-21  Steve Falkenburg  <sfalken@apple.com>
1858
1859         Tweak includes.
1860
1861         * platform/ResourceLoaderInternal.h:
1862
1863 2006-09-21  Geoffrey Garen  <ggaren@apple.com>
1864
1865         build fixed. band happy.
1866         
1867         * platform/cg/GraphicsContextCG.cpp:
1868         (WebCore::GraphicsContext::translate):
1869         * platform/mac/WidgetMac.mm:
1870
1871 2006-09-21  Geoffrey Garen  <ggaren@apple.com>
1872
1873         Reviewed by Maciej.
1874         
1875         Some Widget refactoring.
1876
1877         * WebCore.vcproj/WebCore/WebCore.vcproj:
1878         * bridge/mac/FrameMac.mm:
1879         * bridge/win/FrameWin.cpp:
1880         (WebCore::FrameWin::runJavaScriptAlert):
1881         (WebCore::FrameWin::runJavaScriptConfirm):
1882         * bridge/win/PageWin.cpp:
1883         (WebCore::Page::Page):
1884         (WebCore::rootWindowForFrame):
1885         * html/CanvasRenderingContext2D.cpp:
1886         (WebCore::CanvasRenderingContext2D::translate):
1887         * page/FrameView.cpp:
1888         (WebCore::FrameView::isFrameView):
1889         * page/Page.h:
1890         (WebCore::Page::setInstanceHandle):
1891         (WebCore::Page::instanceHandle):
1892         * platform/GraphicsContext.h:
1893         * platform/ScrollView.h:
1894         * platform/Widget.h:
1895         * platform/cairo/GraphicsContextCairo.cpp:
1896         (WebCore::GraphicsContext::translate):
1897         (WebCore::GraphicsContext::origin):
1898         * platform/mac/WidgetMac.mm:
1899         (WebCore::Widget::clearFocus):
1900         * platform/win/ResourceLoaderWin.cpp:
1901         (WebCore::initializeOffScreenResourceLoaderWindow):
1902         * platform/win/ScreenWin.cpp:
1903         (WebCore::monitorInfo):
1904         * platform/win/ScrollViewWin.cpp:
1905         (WebCore::ScrollView::updateContents):
1906         (WebCore::ScrollView::visibleWidth):
1907         (WebCore::ScrollView::visibleHeight):
1908         (WebCore::ScrollView::visibleContentRect):
1909         (WebCore::ScrollView::viewportToContents):
1910         (WebCore::ScrollView::contentsToViewport):
1911         (WebCore::ScrollView::scrollBy):
1912         (WebCore::ScrollView::updateScrollInfo):
1913         (WebCore::ScrollView::updateScrollBars):
1914         * platform/win/SharedTimerWin.cpp:
1915         (WebCore::initializeOffScreenTimerWindow):
1916         * platform/win/TemporaryLinkStubs.cpp:
1917         (FrameView::updateBorder):
1918         (ScrollView::paint):
1919         (GraphicsContext::clip):
1920         * platform/win/WidgetWin.cpp:
1921         (WebCore::Widget::Widget):
1922         (WebCore::Widget::parentWindow):
1923         (WebCore::Widget::setParentWindow):
1924         (WebCore::Widget::frameGeometry):
1925         (WebCore::Widget::hasFocus):
1926         (WebCore::Widget::setFocus):
1927         (WebCore::Widget::show):
1928         (WebCore::Widget::hide):
1929         (WebCore::Widget::setFrameGeometry):
1930
1931 2006-09-22  Anders Carlsson  <acarlsson@apple.com>
1932
1933         Reviewed by Tim H.
1934
1935         * platform/TextEncoding.cpp:
1936         (WebCore::TextEncoding::backslashAsCurrencySymbol):
1937         Add comment clarifying why backslashAsCurrencySymbol is needed.
1938
1939 2006-09-21  Sean Gies  <seangies@apple.com>
1940
1941         Reviewed by Adam Roben.
1942
1943         Add utility functions to get and release HDC from GraphicsContext.
1944
1945         * platform/GraphicsContext.h: Add utilities to get and release HDC.
1946         * platform/cairo/GraphicsContextCairo.cpp: Implement new utilities.
1947         * rendering/RenderThemeWin.cpp: Switch to new utilities.
1948
1949 2006-09-21  Justin Garcia  <justin.garcia@apple.com>
1950
1951         Reviewed by anders
1952         
1953         <rdar://problem/4426622>
1954         Plain text paste slow.  Time spent mostly in WebCore::rebalanceWhitespaceInTextNode(...)
1955
1956         * editing/htmlediting.cpp:
1957         (WebCore::rebalanceWhitespaceInTextNode): We no longer need to use a RegExp replace because we
1958         aren't producing complicated sequences here.  Use multiple UChar -> UChar replaces instead for speed.
1959         Got rid of uses of DepricatedString.
1960
1961 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
1962
1963         Reviewed by eseidel.
1964
1965         Don't crash if no IconDatabase is available (ie. on Qt/Gdk)
1966
1967         * page/Frame.cpp:
1968         (WebCore::Frame::endIfNotLoading):
1969
1970 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
1971
1972         Reviewed by eseidel.
1973
1974         Fix Qt/Linux build.
1975
1976         * CMakeLists.txt:
1977         * kcanvas/device/qt/KCanvasClipperQt.h:
1978         * kcanvas/device/qt/KRenderingDeviceQt.cpp:
1979         * platform/qt/FrameQt.cpp:
1980         (WebCore::FrameQt::isLoadTypeReload):
1981         (WebCore::FrameQt::originalRequestURL):
1982         * platform/qt/FrameQt.h:
1983         * platform/qt/GraphicsContextQt.cpp:
1984         (WebCore::GraphicsContext::concatCTM):
1985         * platform/qt/ScrollViewQt.cpp:
1986         (WebCore::ScrollView::wheelEvent):
1987         * platform/qt/TemporaryLinkStubs.cpp:
1988         (WebCore::IconDatabase::setIconURLForPageURL):
1989
1990 2006-09-20  Justin Garcia  <justin.garcia@apple.com>
1991
1992         Reviewed by john
1993         
1994         <http://bugs.webkit.org/show_bug.cgi?id=7165>
1995         TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
1996
1997         * editing/MoveSelectionCommand.cpp:
1998         (WebCore::MoveSelectionCommand::MoveSelectionCommand): Set the document
1999         to the position-to-move-to's document, not the fragment's document.  The 
2000         fragment's document is the document used to create the fragment and is irrelavant.
2001
2002 === Safari-521.27 ===
2003
2004 2006-09-21  Brady Eidson  <beidson@apple.com>
2005
2006         Reviewed by Anders
2007
2008         When your assumption is "IconDatabase::sharedIconDatabase()" will never fail but it does, you're in trouble
2009         This fixes Spinneret so it won't crash on its first load!
2010
2011         * page/Frame.cpp:
2012         (WebCore::Frame::endIfNotLoading):
2013
2014 2006-09-21  Brady Eidson  <beidson@apple.com>
2015
2016         Build fix
2017
2018         * platform/win/TemporaryLinkStubs.cpp:
2019         (ScrollView::wheelEvent):
2020
2021 2006-09-20  Rob Buis  <buis@kde.org>
2022
2023         Reviewed by eseidel.
2024
2025         http://bugs.webkit.org/show_bug.cgi?id=10946
2026         new marker code draws end-marker in wrong place
2027
2028         Keep track of the start of the subpath so we can handle
2029         closeTo/moveTo correctly.
2030
2031         * kcanvas/RenderPath.cpp:
2032         (WebCore::DrawMarkersData::DrawMarkersData):
2033         (WebCore::updateMarkerDataForElement):
2034
2035 2006-09-21  David Hyatt <hyatt@apple.com>
2036
2037         Wheel scrolling prep for Win32.
2038
2039         WARNING: NO TEST CASES ADDED OR CHANGED
2040
2041         * platform/PlatformWheelEvent.h:
2042         * platform/ScrollBar.h:
2043         * platform/ScrollView.h:
2044         * platform/mac/ScrollViewMac.mm:
2045         (WebCore::ScrollView::wheelEvent):
2046         * rendering/RenderLayer.cpp:
2047
2048 2006-09-20  Timothy Hatcher  <timothy@apple.com>
2049
2050         Reviewed by Hyatt.
2051
2052         Bug 10917: REGRESSION (r16027): iFrame transparency broken
2053         http://bugs.webkit.org/show_bug.cgi?id=10917
2054
2055         Don't paint the base background color if we transparent.
2056
2057         * rendering/RenderBox.cpp:
2058         (WebCore::RenderBox::paintBackgroundExtended):
2059
2060 2006-09-20  Adam Roben  <aroben@apple.com>
2061
2062         Reviewed by andersca.
2063
2064         * platform/FileChooser.h: Remove no-longer-necessary namespace std
2065
2066 2006-09-20  Eric Seidel  <eric@eseidel.com>
2067
2068         Reviewed by beth.
2069
2070         Cleanup style in KCanvas.
2071         Remove extra white-space, unneeded arguments, etc.
2072
2073         * WebCore.xcodeproj/project.pbxproj:
2074         * kcanvas/KCanvasClipper.cpp:
2075         (WebCore::operator<<):
2076         (WebCore::KCanvasClipper::externalRepresentation):
2077         * kcanvas/KCanvasClipper.h:
2078         * kcanvas/KCanvasFilters.cpp:
2079         (WebCore::KCanvasFilter::externalRepresentation):
2080         (WebCore::operator<<):
2081         (WebCore::KCanvasFilterEffect::externalRepresentation):
2082         (WebCore::KCPointLightSource::externalRepresentation):
2083         (WebCore::KCSpotLightSource::externalRepresentation):
2084         (WebCore::KCDistantLightSource::externalRepresentation):
2085         (WebCore::KCanvasFEBlend::externalRepresentation):
2086         (WebCore::KCanvasFEColorMatrix::externalRepresentation):
2087         (WebCore::KCanvasFEComponentTransfer::externalRepresentation):
2088         (WebCore::KCanvasFEComposite::externalRepresentation):
2089         (WebCore::KCanvasFEConvolveMatrix::externalRepresentation):
2090         (WebCore::KCanvasFEDiffuseLighting::externalRepresentation):
2091         (WebCore::KCanvasFEDisplacementMap::externalRepresentation):
2092         (WebCore::KCanvasFEFlood::externalRepresentation):
2093         (WebCore::KCanvasFEGaussianBlur::externalRepresentation):
2094         (WebCore::KCanvasFEImage::externalRepresentation):
2095         (WebCore::KCanvasFEMerge::externalRepresentation):
2096         (WebCore::KCanvasFEMorphology::externalRepresentation):
2097         (WebCore::KCanvasFEOffset::externalRepresentation):
2098         (WebCore::KCanvasFESpecularLighting::externalRepresentation):
2099         (WebCore::KCanvasFETile::externalRepresentation):
2100         (WebCore::KCanvasFETurbulence::externalRepresentation):
2101         * kcanvas/KCanvasFilters.h:
2102         (WebCore::KCanvasFEDiffuseLighting::lightSource):
2103         (WebCore::KCanvasFESpecularLighting::lightSource):
2104         * kcanvas/KCanvasImage.h:
2105         * kcanvas/KCanvasMarker.cpp:
2106         (WebCore::KCanvasMarker::externalRepresentation):
2107         * kcanvas/KCanvasMarker.h:
2108         * kcanvas/KCanvasResource.cpp:
2109         (WebCore::operator<<):
2110         * kcanvas/KCanvasResource.h:
2111         * kcanvas/KCanvasTreeDebug.cpp:
2112         (WebCore::operator<<):
2113         (WebCore::writeIndent):
2114         (WebCore::writeStyle):
2115         (WebCore::write):
2116         (WebCore::writeRenderResources):
2117         * kcanvas/KCanvasTreeDebug.h:
2118         (WebCore::operator<<):
2119         * kcanvas/RenderForeignObject.cpp:
2120         (WebCore::RenderForeignObject::paint):
2121         * kcanvas/RenderPath.cpp:
2122         (WebCore::RenderPath::paint):
2123         (WebCore::drawStartAndMidMarkers):
2124         * kcanvas/RenderSVGContainer.cpp:
2125         (WebCore::RenderSVGContainer::paint):
2126         * kcanvas/RenderSVGImage.cpp:
2127         (WebCore::RenderSVGImage::translateForAttributes):
2128         * kcanvas/RenderSVGImage.h:
2129         * kcanvas/device/KRenderingDevice.cpp:
2130         (WebCore::KRenderingDevice::currentContext):
2131         (WebCore::KRenderingDevice::popContext):
2132         (WebCore::KRenderingDevice::pushContext):
2133         * kcanvas/device/KRenderingDevice.h:
2134         * kcanvas/device/KRenderingFillPainter.h:
2135         * kcanvas/device/KRenderingPaintServer.h:
2136         (WebCore::KRenderingPaintServer::KRenderingPaintServer):
2137         (WebCore::KRenderingPaintServer::activeClient):
2138         (WebCore::KRenderingPaintServer::setActiveClient):
2139         * kcanvas/device/KRenderingPaintServerGradient.cpp:
2140         (WebCore::operator<<):
2141         (WebCore::KRenderingPaintServerGradient::externalRepresentation):
2142         (WebCore::KRenderingPaintServerLinearGradient::externalRepresentation):
2143         (WebCore::KRenderingPaintServerGradient::listener):
2144         (WebCore::KRenderingPaintServerGradient::setListener):
2145         (WebCore::KRenderingPaintServerRadialGradient::externalRepresentation):
2146         * kcanvas/device/KRenderingPaintServerGradient.h:
2147         * kcanvas/device/KRenderingPaintServerPattern.cpp:
2148         (WebCore::KRenderingPaintServerPattern::tile):
2149         (WebCore::KRenderingPaintServerPattern::setTile):
2150         (WebCore::KRenderingPaintServerPattern::listener):
2151         (WebCore::KRenderingPaintServerPattern::setListener):
2152         (WebCore::KRenderingPaintServerPattern::externalRepresentation):
2153         * kcanvas/device/KRenderingPaintServerPattern.h:
2154         * kcanvas/device/KRenderingPaintServerSolid.cpp:
2155         (WebCore::KRenderingPaintServerSolid::externalRepresentation):
2156         * kcanvas/device/KRenderingPaintServerSolid.h:
2157         * kcanvas/device/KRenderingStrokePainter.cpp:
2158         (WebCore::KRenderingStrokePainter::strokeMiterLimit):
2159         (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
2160         * kcanvas/device/KRenderingStrokePainter.h:
2161         * kcanvas/device/quartz/KCanvasFilterQuartz.h:
2162         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
2163         (WebCore::KCanvasFilterQuartz::prepareFilter):
2164         * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
2165         * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
2166         (WebCore::KCanvasMaskerQuartz::applyMask):
2167         * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
2168         (WebCore::KCanvasImageQuartz::init):
2169         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
2170         (WebCore::KCanvasClipperQuartz::applyClip):
2171         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
2172         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
2173         (WebCore::KRenderingDeviceQuartz::quartzContext):
2174         (WebCore::KRenderingDeviceQuartz::contextForImage):
2175         (WebCore::KRenderingDeviceQuartz::createPaintServer):
2176         (WebCore::KRenderingDeviceQuartz::createResource):
2177         (WebCore::KRenderingDeviceQuartz::createFilterEffect):
2178         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
2179         (WebCore::CGShadingRefForLinearGradient):
2180         (WebCore::CGShadingRefForRadialGradient):
2181         (WebCore::KRenderingPaintServerGradientQuartz::updateQuartzGradientCache):
2182         (WebCore::KRenderingPaintServerGradientQuartz::teardown):
2183         * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
2184         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
2185         (WebCore::KRenderingPaintServerQuartzHelper::strokePath):
2186         (WebCore::KRenderingPaintServerQuartzHelper::clipToStrokePath):
2187         (WebCore::KRenderingPaintServerQuartzHelper::fillPath):
2188         (WebCore::KRenderingPaintServerQuartzHelper::clipToFillPath):
2189         (WebCore::KRenderingPaintServerSolidQuartz::draw):
2190         (WebCore::KRenderingPaintServerSolidQuartz::setup):
2191         (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
2192         (WebCore::KRenderingPaintServerPatternQuartz::setup):
2193         (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
2194         (WebCore::KRenderingPaintServerPatternQuartz::teardown):
2195         * kcanvas/device/quartz/QuartzSupport.h:
2196         * kcanvas/device/quartz/QuartzSupport.mm:
2197         (WebCore::applyStrokeStyleToContext):
2198
2199 2006-09-20  Anders Carlsson  <acarlsson@apple.com>
2200
2201         Reviewed by Dave Hyatt.
2202
2203         * dom/WheelEvent.cpp:
2204         (WebCore::WheelEvent::WheelEvent):
2205         Use lroundf instead of lround since deltas are floats.
2206
2207 2006-09-20  Julien Palmas  <julien.palmas@gmail.com>
2208
2209         Reviewed by eseidel.  Landed by eseidel.
2210
2211         Test: svg/custom/pattern-y-offset.svg
2212
2213         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
2214         (WebCore::KRenderingPaintServerPatternQuartz::setup):
2215
2216 2006-09-20  David Hyatt  <hyatt@apple.com>
2217
2218         Add a new wheelEvent method to ScrollView.  Platforms that wish
2219         to handle the wheel event for the scroll view themselves can then
2220         do so there.  (Mac lets the underlying NSScrollView do it for now.)
2221
2222         * page/FrameView.cpp:
2223         (WebCore::FrameView::handleWheelEvent):
2224         * platform/ScrollView.h:
2225         (WebCore::ScrollView::wheelEvent):
2226
2227 2006-09-20  Brady Eidson  <beidson@apple.com>
2228
2229         Reviewed by Tim Omernick
2230
2231         Part of fixing a crash Tim O showed me that I missed in a release build.
2232         WebKit should be able to call through the bridge to WebCore no matter what -
2233         Replace the _iconDB member with calls to IconDatabase::sharedIconDatabase()
2234
2235         * bridge/mac/WebCoreIconDatabaseBridge.h:
2236         * bridge/mac/WebCoreIconDatabaseBridge.mm:
2237         (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
2238         (-[WebCoreIconDatabaseBridge isOpen]):
2239         (-[WebCoreIconDatabaseBridge removeAllIcons]):
2240         (-[WebCoreIconDatabaseBridge _isEmpty]):
2241         (-[WebCoreIconDatabaseBridge isIconExpiredForIconURL:]):
2242         (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
2243         (-[WebCoreIconDatabaseBridge privateBrowsingEnabled]):
2244         (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
2245         (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
2246         (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
2247         (-[WebCoreIconDatabaseBridge retainIconForURL:]):
2248         (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
2249         (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
2250         (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
2251         (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
2252         (-[WebCoreIconDatabaseBridge _hasEntryForIconURL:]):
2253         (-[WebCoreIconDatabaseBridge _setEnabled:]):
2254         (-[WebCoreIconDatabaseBridge _isEnabled]):
2255
2256 2006-09-20  Anders Carlsson  <acarlsson@apple.com>
2257
2258         Reviewed by Darin.
2259
2260         Add String::split which returns a Vector of Strings and use it instead of 
2261         DeprecatedStringList.
2262         
2263         * bindings/js/kjs_events.cpp:
2264         (KJS::Clipboard::getValueProperty):
2265         * bindings/js/kjs_window.cpp:
2266         (KJS::parseModalDialogFeatures):
2267         * css/MediaList.cpp:
2268         (WebCore::MediaList::setMediaText):
2269         * dom/Clipboard.h:
2270         * html/HTMLFormElement.cpp:
2271         (WebCore::HTMLFormElement::formData):
2272         * html/HTMLLinkElement.cpp:
2273         (WebCore::HTMLLinkElement::tokenizeRelAttribute):
2274         * platform/PlatformString.h:
2275         * platform/String.cpp:
2276         (WebCore::String::split):
2277         * platform/StringImpl.cpp:
2278         * platform/StringImpl.h:
2279         * platform/mac/ClipboardMac.h:
2280         * platform/mac/ClipboardMac.mm:
2281         (WebCore::ClipboardMac::types):
2282
2283 2006-09-20  Justin Garcia  <justin.garcia@apple.com>
2284
2285         Reviewed by harrison
2286
2287         * css/cssstyleselector.cpp:
2288         (WebCore::CSSStyleSelector::adjustRenderStyle): Don't call 
2289         HTMLElement::isContentEditable just to check the Frame's editability, since
2290         it calls updateRenderering, which can get us into infinite recursion.
2291
2292 2006-09-20  Brady Eidson  <beidson@apple.com>
2293
2294         Reviewed by Darin
2295
2296         Cleaned up my last patch alot, and made the WebCore icon database disabled by default
2297
2298         * loader/icon/IconDatabase.cpp:
2299         (WebCore::IconDatabase::IconDatabase): Disabled by default
2300         (WebCore::IconDatabase::removeAllIcons): Respect just isOpen() (disabled database will always be closed)
2301         (WebCore::IconDatabase::setPrivateBrowsingEnabled): Ditto
2302         (WebCore::IconDatabase::iconForPageURL): Ditto
2303         (WebCore::IconDatabase::isIconExpiredForIconURL): Ditto
2304         (WebCore::IconDatabase::iconURLForPageURL): Ditto
2305         (WebCore::IconDatabase::retainIconForPageURL): Ditto
2306         (WebCore::IconDatabase::releaseIconForPageURL): Ditto
2307         (WebCore::IconDatabase::setIconDataForIconURL): Ditto
2308         (WebCore::IconDatabase::setIconURLForPageURL): Ditto
2309         (WebCore::IconDatabase::hasEntryForIconURL): Ditto
2310         (WebCore::IconDatabase::setEnabled): Fixed a big bug here!
2311
2312 2006-09-20  Adam Roben  <aroben@apple.com>
2313
2314         Reviewed by Adele.
2315
2316         Fixes http://bugs.webkit.org/show_bug.cgi?id=10935
2317         REGRESSION: file upload control with direction:rtl or text-align:right
2318         draws button on top of filename/icon
2319
2320         * rendering/RenderFileUploadControl.cpp:
2321         (WebCore::RenderFileUploadControl::setStyle): Force text-align to
2322         match direction
2323         (WebCore::RenderFileUploadControl::paintObject): Fix positioning of
2324         the filename and icon in RTL
2325
2326 2006-09-20  Alice Liu  <alice.liu@apple.com>
2327
2328         Reviewed by Adam Roben.
2329
2330         fixed windows build
2331
2332         * dom/WheelEvent.cpp:
2333         (WebCore::WheelEvent::WheelEvent):
2334         changed lrint to lround
2335
2336 2006-09-20  Sam Weinig  <sam.weinig@gmail.com>
2337
2338         Build Fix.  Adds isHorizontal attribute back to WheelEvent
2339         for the Objective-C bindings.  If it is found that isHorizontal
2340         is not used, we should remove it again but also remove it's
2341         declaration from PublicDOMInterfaces.h
2342
2343         * dom/WheelEvent.h:
2344         (WebCore::WheelEvent::isHorizontal):
2345         * dom/WheelEvent.idl:
2346
2347 2006-09-20  David Hyatt  <hyatt@apple.com>
2348
2349         Fix for 10945, WheelEvent should support two dimensions at once, since
2350         MacBooks allow for diagonal scrolling.  Also enhance the PlatformWheelEvent
2351         to allow for diagonal scrolling.
2352
2353         Reviewed by Eric
2354
2355         * dom/EventTargetNode.cpp:
2356         (WebCore::EventTargetNode::dispatchWheelEvent):
2357         * dom/WheelEvent.cpp:
2358         (WebCore::WheelEvent::WheelEvent):
2359         (WebCore::WheelEvent::initWheelEvent):
2360         * dom/WheelEvent.h:
2361         (WebCore::WheelEvent::wheelDelta):
2362         (WebCore::WheelEvent::wheelDeltaX):
2363         (WebCore::WheelEvent::wheelDeltaY):
2364         * dom/WheelEvent.idl:
2365         * page/FrameView.cpp:
2366         (WebCore::FrameView::handleWheelEvent):
2367         * platform/PlatformWheelEvent.h:
2368         (WebCore::PlatformWheelEvent::deltaX):
2369         (WebCore::PlatformWheelEvent::deltaY):
2370         (WebCore::PlatformWheelEvent::normalize):
2371         * platform/mac/WheelEventMac.mm:
2372         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
2373
2374 2006-09-19  Eric Seidel  <eric@eseidel.com>
2375
2376         Reviewed by hyatt.
2377
2378         Split KCanvasResources.* into multiple files (and some other minor spacing changes).
2379         
2380         No tests were harmed in the making of this patch.
2381
2382         * WebCore.xcodeproj/project.pbxproj:
2383         * kcanvas/KCanvasClipper.cpp: Added.
2384         (WebCore::operator<<):
2385         * kcanvas/KCanvasClipper.h: Added.
2386         * kcanvas/KCanvasFilters.h:
2387         * kcanvas/KCanvasImage.h:
2388         * kcanvas/KCanvasMarker.cpp: Added.
2389         * kcanvas/KCanvasMarker.h: Added.
2390         * kcanvas/KCanvasMasker.cpp: Added.
2391         (WebCore::KCanvasMasker::KCanvasMasker):
2392         (WebCore::KCanvasMasker::setMask):
2393         (WebCore::KCanvasMasker::externalRepresentation):
2394         (WebCore::getMaskerById):
2395         * kcanvas/KCanvasMasker.h: Added.
2396         * kcanvas/KCanvasResource.cpp: Added.
2397         (WebCore::KCanvasResource::invalidate):
2398         (WebCore::KCanvasResource::externalRepresentation):
2399         (WebCore::getResourceById):
2400         (WebCore::getPaintServerById):
2401         * kcanvas/KCanvasResource.h: Added.
2402         * kcanvas/KCanvasResources.cpp: Removed.
2403         * kcanvas/KCanvasResources.h: Removed.
2404         * kcanvas/RenderPath.cpp:
2405         * kcanvas/RenderSVGContainer.cpp:
2406         * kcanvas/RenderSVGImage.cpp:
2407         * kcanvas/RenderSVGText.cpp:
2408         * kcanvas/device/KRenderingPaintServer.h:
2409         * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
2410         * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
2411         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
2412         * ksvg2/svg/SVGClipPathElement.h:
2413         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
2414         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
2415         * ksvg2/svg/SVGFECompositeElement.cpp:
2416         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
2417         * ksvg2/svg/SVGFELightElement.cpp:
2418         * ksvg2/svg/SVGFEOffsetElement.cpp:
2419         * ksvg2/svg/SVGFETurbulenceElement.cpp:
2420         * ksvg2/svg/SVGFilterElement.cpp:
2421         * ksvg2/svg/SVGLinearGradientElement.cpp:
2422         * ksvg2/svg/SVGMarkerElement.h:
2423         * ksvg2/svg/SVGMaskElement.h:
2424
2425 2006-09-19  Brady Eidson <beidson@apple.com>
2426
2427         Reviewed by Sarge Decker
2428
2429         <rdar://problem/4739892> and <rdar://problem/4729797>
2430         - WebCore::IconDatabase needs to have and respect an enabled() flag
2431         - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
2432
2433         * bridge/mac/WebCoreIconDatabaseBridge.h:
2434         * bridge/mac/WebCoreIconDatabaseBridge.mm:
2435         (-[WebCoreIconDatabaseBridge _setEnabled:]): Added
2436         (-[WebCoreIconDatabaseBridge _isEnabled]): Added
2437         * loader/icon/IconDatabase.cpp:
2438         (WebCore::IconDatabase::IconDatabase):
2439         (WebCore::IconDatabase::open): Don't open if disabled
2440         (WebCore::IconDatabase::removeAllIcons): Ignore if disabled/closed
2441         (WebCore::IconDatabase::setPrivateBrowsingEnabled): Ignore if disabled/closed
2442         (WebCore::IconDatabase::iconForPageURL): Default Icon if disabled/closed
2443         (WebCore::IconDatabase::isIconExpiredForIconURL): Default return if disabled/closed
2444         (WebCore::IconDatabase::iconURLForPageURL): Default return if disabled/closed
2445         (WebCore::IconDatabase::retainIconForPageURL): Ignore if disabled/closed
2446         (WebCore::IconDatabase::releaseIconForPageURL): Ignore if disabled/closed
2447         (WebCore::IconDatabase::releaseIconURL):
2448         (WebCore::IconDatabase::setIconDataForIconURL): Ignore if disabled/closed
2449         (WebCore::IconDatabase::setIconURLForPageURL): Ignore if disabled/closed
2450         (WebCore::IconDatabase::hasEntryForIconURL): Default return if disabled/closed
2451         (WebCore::IconDatabase::setEnabled): Added
2452         * loader/icon/IconDatabase.h:
2453         (WebCore::IconDatabase::enabled): Added
2454         * page/Frame.cpp:
2455         (WebCore::Frame::endIfNotLoading): do an IconDatabase::enabled() check before bothering to load the icon
2456         * platform/mac/ResourceLoaderMac.mm: Removed extraneous #include
2457
2458 2006-09-20  David Hyatt  <hyatt@apple.com>
2459
2460         Massage mouse wheel handling so that it is more cross-platform.  Make
2461         all the work happen in handleWheelEvent on the FrameView.
2462
2463         Reviewed by bradee-oh
2464
2465         * bridge/mac/FrameMac.mm:
2466         (WebCore::FrameMac::wheelEvent):
2467         * page/FrameView.cpp:
2468         (WebCore::FrameView::handleWheelEvent):
2469         * platform/PlatformWheelEvent.h:
2470         (WebCore::PlatformWheelEvent::platformDelta):
2471         (WebCore::PlatformWheelEvent::delta):
2472         * platform/mac/WheelEventMac.mm:
2473         (WebCore::platformDeltaForEvent):
2474         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
2475         * rendering/RenderLayer.cpp:
2476         (WebCore::RenderLayer::scroll):
2477         * rendering/RenderObject.cpp:
2478         (WebCore::RenderObject::scroll):
2479
2480 2006-09-19  Eric Seidel  <eric@eseidel.com>
2481
2482         Reviewed by adele.
2483
2484         Improve test output for filters with bounding-box relative sizes.
2485         http://bugs.webkit.org/show_bug.cgi?id=8585
2486
2487         Many test results updated.
2488
2489         * kcanvas/KCanvasFilters.cpp:
2490         (WebCore::KCanvasFilter::externalRepresentation):
2491
2492 2006-09-19  Eric Seidel  <eric@eseidel.com>
2493
2494         Reviewed by adele.
2495         
2496         Markers should clip to their viewport.
2497         http://bugs.webkit.org/show_bug.cgi?id=5967
2498
2499         Test: svg/custom/marker-overflow-clip.svg
2500
2501         * kcanvas/KCanvasResources.cpp:
2502         (WebCore::KCanvasMarker::KCanvasMarker):
2503         (WebCore::KCanvasMarker::setMarker):
2504         (WebCore::KCanvasMarker::draw):
2505         * kcanvas/KCanvasResources.h:
2506         (WebCore::KCanvasMasker::mask):
2507         * ksvg2/svg/SVGMarkerElement.cpp:
2508         (WebCore::SVGMarkerElement::SVGMarkerElement):
2509         (WebCore::SVGMarkerElement::parseMappedAttribute):
2510         (WebCore::SVGMarkerElement::canvasResource):
2511         (WebCore::SVGMarkerElement::createRenderer):
2512
2513 2006-09-19  Justin Garcia  <justin.garcia@apple.com>
2514
2515         Reviewed by eseidel
2516
2517         Backing out my recent change.
2518
2519         * css/cssstyleselector.cpp:
2520         (WebCore::CSSStyleSelector::adjustRenderStyle): 
2521
2522 2006-09-19  Brady Eidson  <beidson@apple.com>
2523
2524         Reviewed by Kevin McCullough
2525
2526         http://bugs.webkit.org/show_bug.cgi?id=10940
2527         Opening a PDF in a new tab/window creates a documentless-frame
2528         and we deref the document without checking its validity
2529
2530         * page/Frame.cpp:
2531         (WebCore::Frame::iconURL):
2532
2533 2006-09-19  Justin Garcia  <justin.garcia@apple.com>
2534
2535         Reviewed by harrison
2536         
2537         <rdar://problem/4735272>
2538         Can not click into link in programmatically editable content
2539
2540         * css/cssstyleselector.cpp:
2541         (WebCore::CSSStyleSelector::adjustRenderStyle): We stopped using
2542         userModify to implement document wide editability.
2543
2544 2006-09-19  MorganL  <morlmor@yahoo.com>
2545
2546         Reviewed by Darin and landed by Brady
2547
2548         Fixes http://bugs.webkit.org/show_bug.cgi?id=10939
2549         Build broken when SVG is not enabled.
2550
2551         * dom/XMLTokenizer.cpp:
2552         (WebCore::XMLTokenizer::startElementNs):
2553
2554 2006-09-19  Justin Garcia  <justin.garcia@apple.com>
2555
2556         Reviewed by harrison
2557         
2558         <rdar://problem/4727383> REGRESSION: Pasting plain text with tabs into Blot converts the tabs to single spaces
2559
2560         Pasting plain text results in a match style paste, and the insertion
2561         position is whitespace normal, which clobbers the whitespace:pre on 
2562         tab spans.  Skip changes to the whitespace mode when computing a style
2563         change for tab spans or the text nodes inside tab spans.
2564
2565         * editing/ApplyStyleCommand.cpp:
2566         (WebCore::StyleChange::init): Don't change the whitespace mode inside
2567         tab spans.
2568
2569 2006-09-19  David Hyatt  <hyatt@apple.com>
2570
2571         Fix for bug 5298, shape=default not supported for image maps.  Implement
2572         support for it.
2573
2574         Reviewed by timo
2575
2576         * html/HTMLAreaElement.cpp:
2577         (WebCore::HTMLAreaElement::getRegion):
2578         * html/HTMLMapElement.cpp:
2579         (WebCore::HTMLMapElement::mapMouseEvent):
2580
2581 2006-09-19  Adam Roben  <aroben@apple.com>
2582
2583         Reviewed by Adele.
2584
2585         Fixes http://bugs.webkit.org/show_bug.cgi?id=10824
2586         "no file selected" placeholder text missing from file upload control
2587
2588         * WebCore.xcodeproj/project.pbxproj:
2589         * rendering/RenderFileUploadControl.cpp: Remove class
2590         RenderFileUploadInnerFileBox, rename defaultFilenameNumChars to
2591         defaultWidthNumChars
2592         (WebCore::RenderFileUploadControl::RenderFileUploadControl): Call
2593         RenderBlock constructor instead of RenderFlexibleBox, 
2594         (WebCore::RenderFileUploadControl::setStyle): Remove references to
2595         m_fileBox.
2596         (WebCore::RenderFileUploadControl::valueChanged): Call repaint()
2597         instead of updateIconAndFileName() (which has been removed)
2598         (WebCore::RenderFileUploadControl::updateFromElement): Remove
2599         references to m_fileBox, don't call updateIconAndFilename()
2600         (WebCore::RenderFileUploadControl::maxFilenameWidth): Calculate width
2601         without using m_fileBox
2602         (WebCore::RenderFileUploadControl::createButtonStyle): Remove
2603         now-unnecessary display:box rule.
2604         (WebCore::RenderFileUploadControl::paintObject): Remove redundant call
2605         to paintingDisabled() now that Icon::paint() does it, and add code to
2606         paint the filename directly.
2607         (WebCore::RenderFileUploadControl::calcMinMaxWidth): Move this method
2608         out of RenderFileUploadInnerFileBox and into RenderFileUploadControl
2609         * rendering/RenderFileUploadControl.h: Make RenderFileUploadControl a
2610         subclass of RenderBlock instead of RenderFlexibleBox, remove
2611         updateIconAndFilename() method, remove m_fileBox instance variable.
2612
2613 2006-09-19  Eric Seidel  <eric@eseidel.com>
2614
2615         Reviewed by hyatt.
2616
2617         Exceptions thrown from <script> tags in XHTML/SVG docs show the wrong line numbers
2618         http://bugs.webkit.org/show_bug.cgi?id=10846
2619         
2620         No automated test case possible until http://bugs.webkit.org/show_bug.cgi?id=10905 is resolved.
2621
2622         * dom/XMLTokenizer.cpp:
2623         (WebCore::XMLTokenizer::XMLTokenizer):
2624         (WebCore::XMLTokenizer::startElementNs):
2625         (WebCore::XMLTokenizer::endElementNs):
2626
2627 2006-09-19  Krzysztof Kowalczyk <kkowalczyk@gmail.com>
2628
2629         Reviewed by eseidel.  Landed by eseidel.
2630         
2631         Build fix only, no tests affected.
2632
2633         * platform/gdk/FontPlatformDataGdk.cpp:
2634         (WebCore::FontPlatformData::FontPlatformData):
2635         (WebCore::FontPlatformData::~FontPlatformData):
2636         * platform/gdk/FrameGdk.h:
2637         * platform/gdk/TemporaryLinkStubs.cpp:
2638         (FrameGdk::isLoadTypeReload):
2639         (FrameGdk::originalRequestURL):
2640         (IconDatabase::setIconURLForPageURL):
2641
2642 2006-09-19  David Hyatt  <hyatt@apple.com>
2643
2644         Refine the fix for 9805 to really get all the complex cases right.
2645
2646         Reviewed by Eric
2647
2648         * rendering/RenderBlock.cpp:
2649         (WebCore::RenderBlock::clearFloatsIfNeeded):
2650         (WebCore::RenderBlock::handleBottomOfBlock):
2651
2652 2006-09-18  David Hyatt  <hyatt@apple.com>
2653
2654         Fix for 9805, <hr> not positioned properly following a previous empty sibling
2655         that had clear:both set on it.  Update self-collapsing block clearance
2656         behavior to match what is specified in the latest draft of CSS2.1.
2657
2658         Reviewed by Eric
2659
2660         Added fast/block/margin-collapse/empty-clear-blocks.html
2661
2662         * rendering/RenderBlock.cpp:
2663         (WebCore::RenderBlock::clearFloatsIfNeeded):
2664         (WebCore::RenderBlock::handleBottomOfBlock):
2665
2666 2006-09-18  MorganL  <morlmor@yahoo.com>
2667
2668         Reviewed by Brady, landed by Brady
2669
2670         Send receivedResponse callback to ResourceLoaderClient when loading
2671         file URLs.
2672
2673         See http://bugs.webkit.org/show_bug.cgi?id=10845
2674
2675         * platform/win/ResourceLoaderWin.cpp:
2676         (WebCore::ResourceLoader::fileLoadTimer):
2677
2678 2006-09-18  Brady Eidson  <beidson@apple.com>
2679
2680         Reviewed by Anders
2681
2682         <rdar://problem/3028061> - WebKit never updates favicon
2683         The WebKit enforced expiration date for icons has worked for some time, but the
2684         move to the new Icon Loader broke the "always get the icon if the user refreshes the page" 
2685         functionality.  This patch fixes that up, along with some other architectural improvements,
2686         the main one being that WebCore::Document now contains an iconURL for the Frame to query if needed.
2687
2688         * bridge/mac/FrameMac.h: Added isLoadTypeReload()
2689         * bridge/mac/FrameMac.mm:
2690         (WebCore::FrameMac::isLoadTypeReload): Implementation, calls into the bridge
2691         * bridge/mac/WebCoreFrameBridge.h: Added isLoadTypeReload:
2692         * bridge/win/FrameWin.h: Added isLoadTypeReload() for temporary link stub
2693         * dom/Document.h: Added m_iconURL
2694         (WebCore::Document::iconURL): Added
2695         (WebCore::Document::setIconURL): Ditto
2696         * html/HTMLLinkElement.cpp:
2697         (WebCore::HTMLLinkElement::process): Sets the iconURL in the Document instead of the Frame
2698         * page/Frame.cpp:
2699         (WebCore::Frame::iconURL): Calculates the iconURL based on the document, then the default favicon.ico url
2700         (WebCore::Frame::endIfNotLoading): Checks for the load type - always loads icon on Reload
2701         * page/Frame.h: Nuked setIconURL(), added isLoadTypeReload()
2702         * page/FramePrivate.h: Nuked IconURL
2703         * platform/win/TemporaryLinkStubs.cpp:
2704         (FrameWin::isLoadTypeReload):
2705
2706 2006-09-18  Sam Weinig  <sam.weinig@gmail.com>
2707
2708         Reviewed by Tim H.
2709
2710         - Re-add private method [DOMRGBColor _color] to DOMPrivate.h as
2711           it is it turns out that AppKit uses it.
2712
2713         * bindings/objc/DOMPrivate.h:
2714         * bindings/objc/DOMRGBColor.mm:
2715         (-[DOMRGBColor _color]):
2716
2717 2006-09-18  Sam Weinig  <sam.weinig@gmail.com>
2718
2719         Reviewed by Tim H.
2720
2721         Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
2722         Yet Another Objective-C Bindings Patch
2723
2724         - Whitespace cleanup for IDLParser.pm
2725
2726         - Split DOMException, DOMRangeException, DOMXPathException, DOMEventsException
2727           and DOMAbstractView into their own files.
2728
2729         - Remove private method [DOMRGBColor _color] from DOMPrivate.h as
2730           it is not used and a public method is available now.
2731
2732         - Remove internal method [DOMDocument _ownerElement] from DOMInternal.h
2733           as it not used.
2734
2735         - Auto-generate method isContentEditable for DOMNode.
2736
2737         - General cleanup of bindings code including removing unneeded #imports
2738           and whitespace cleanup
2739
2740         * WebCore.xcodeproj/project.pbxproj:
2741         * bindings/objc/DOM.mm:
2742         (addElementClass):
2743         (elementClass):
2744         (-[DOMNode _initWithNode:WebCore::]):
2745         (+[DOMNode _nodeWith:WebCore::]):
2746         (-[DOMNode WebCore::]):
2747         (-[DOMNode KJS::Bindings::]):
2748         (-[DOMNode addEventListener:::]):
2749         (-[DOMNode removeEventListener:::]):
2750         (-[DOMNode dispatchEvent:]):
2751         (-[DOMElement image]):
2752         (-[DOMElement _font]):
2753         (-[DOMElement _imageTIFFRepresentation]):
2754         (-[DOMElement _getURLAttribute:]):
2755         (-[DOMElement _NPObject]):
2756         (-[DOMElement isFocused]):
2757         (-[DOMRange dealloc]):
2758         (-[DOMRange finalize]):
2759         (-[DOMRange description]):
2760         (-[DOMRange startContainer]):
2761         (-[DOMRange startOffset]):
2762         (-[DOMRange endContainer]):
2763         (-[DOMRange endOffset]):
2764         (-[DOMRange collapsed]):
2765         (-[DOMRange commonAncestorContainer]):
2766         (-[DOMRange setStart::]):
2767         (-[DOMRange setEnd::]):
2768         (-[DOMRange setStartBefore:]):
2769         (-[DOMRange setStartAfter:]):
2770         (-[DOMRange setEndBefore:]):
2771         (-[DOMRange setEndAfter:]):
2772         (-[DOMRange collapse:]):
2773         (-[DOMRange selectNode:]):
2774         (-[DOMRange selectNodeContents:]):
2775         (-[DOMRange compareBoundaryPoints::]):
2776         (-[DOMRange deleteContents]):
2777         (-[DOMRange extractContents]):
2778         (-[DOMRange cloneContents]):
2779         (-[DOMRange insertNode:]):
2780         (-[DOMRange surroundContents:]):
2781         (-[DOMRange cloneRange]):
2782         (-[DOMRange toString]):
2783         (-[DOMRange detach]):
2784         (-[DOMRange _initWithRange:WebCore::]):
2785         (+[DOMRange _rangeWith:WebCore::]):
2786         (-[DOMRange WebCore::]):
2787         (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
2788         (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
2789         (-[DOMNodeFilter WebCore::]):
2790         (-[DOMNodeFilter dealloc]):
2791         (-[DOMNodeFilter finalize]):
2792         (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
2793         (-[DOMNodeIterator WebCore::]):
2794         (+[DOMNodeIterator _nodeIteratorWith:WebCore::filter:]):
2795         (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
2796         (-[DOMTreeWalker WebCore::]):
2797         (+[DOMTreeWalker _treeWalkerWith:WebCore::filter:]):
2798         (ObjCNodeFilterCondition::acceptNode):
2799         (-[DOMDocument createNodeIterator::::]):
2800         (-[DOMDocument createTreeWalker::::]):
2801         (ObjCEventListener::find):
2802         (ObjCEventListener::create):
2803         (ObjCEventListener::handleEvent):
2804         * bindings/objc/DOMAbstractView.h: Added.
2805         * bindings/objc/DOMAbstractView.mm: Added.
2806         (-[DOMAbstractView document]):
2807         (-[DOMAbstractView WebCore::]):
2808         (-[DOMAbstractView _initWithAbstractView:WebCore::]):
2809         (+[DOMAbstractView _abstractViewWith:WebCore::]):
2810         * bindings/objc/DOMCSS.mm:
2811         (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
2812         (+[DOMStyleSheet _styleSheetWith:WebCore::]):
2813         (+[DOMCSSStyleSheet _CSSStyleSheetWith:WebCore::]):
2814         (-[DOMCSSRule _initWithRule:WebCore::]):
2815         (+[DOMCSSRule _CSSRuleWith:WebCore::]):
2816         (-[DOMCSSValue _initWithValue:WebCore::]):
2817         (+[DOMCSSValue _CSSValueWith:WebCore::]):
2818         (+[DOMCSSPrimitiveValue _CSSPrimitiveValueWith:WebCore::]):
2819         (-[DOMDocument getComputedStyle::]):
2820         (-[DOMDocument getMatchedCSSRules::]):
2821         * bindings/objc/DOMCore.h:
2822         * bindings/objc/DOMEventException.h: Added.
2823         * bindings/objc/DOMEvents.h:
2824         * bindings/objc/DOMEvents.mm:
2825         * bindings/objc/DOMException.h: Added.
2826         * bindings/objc/DOMHTML.mm:
2827         (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]):
2828         (viewForElement):
2829         (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
2830         (-[DOMHTMLInputElement _selectedRange]):
2831         (-[DOMHTMLInputElement _setAutofilled:]):
2832         * bindings/objc/DOMInternal.h:
2833         * bindings/objc/DOMObject.h:
2834         * bindings/objc/DOMPrivate.h:
2835         * bindings/objc/DOMRange.h:
2836         * bindings/objc/DOMRangeException.h: Added.
2837         * bindings/objc/DOMViews.h:
2838         * bindings/objc/DOMViews.mm: Removed.
2839         * bindings/objc/DOMXPath.h:
2840         * bindings/objc/DOMXPathException.h: Added.
2841         * bindings/scripts/IDLParser.pm:
2842         * dom/Node.idl:
2843
2844 2006-09-18  Brady Eidson  <beidson@apple.com>
2845
2846         Windows build fix
2847
2848         * platform/win/TemporaryLinkStubs.cpp:
2849         (IconDatabase::setIconURLForPageURL):
2850
2851 2006-09-18  David Hyatt  <hyatt@apple.com>
2852
2853         Fix for bug 3969, hr width doesn't update when it clears a float.  This
2854         was also a problem with tables and overflow sections.
2855
2856         Reviewed by Eric
2857
2858         Added fast/block/float/width-update-after-clear.html
2859
2860         * rendering/RenderBlock.cpp:
2861         (WebCore::RenderBlock::collapseMargins):
2862         (WebCore::RenderBlock::clearFloatsIfNeeded):
2863
2864 2006-09-18  Brady Eidson  <beidson@apple.com>
2865
2866         Reviewed by John
2867
2868         http://bugs.webkit.org/show_bug.cgi?id=10907
2869         REGRESSION: New Icon Loaders don't handle certain non-server-root URLs correctly
2870
2871         * bridge/mac/FrameMac.h: Changed originalRequestURL() to virtual
2872         * bridge/win/FrameWin.h: Added originalRequestURL()
2873         * loader/icon/IconLoader.cpp:
2874         (IconLoader::receivedAllData): Moved the "pageURL to iconURL mapping logic" to Frame::commitIconURLToIconDatabase()
2875         * page/Frame.cpp:
2876         (WebCore::Frame::iconURL): Construct the icon URL from *only* the protocol and host of the frame's url.
2877         (WebCore::Frame::endIfNotLoading): Call commitIconURLToIconDatabase() if we're not kicking off an icon load
2878         (WebCore::Frame::commitIconURLToIconDatabase): Map the completed doc's pageURL to the iconURL
2879         * page/Frame.h: Added pure virtual originalRequestURL()
2880         * platform/win/TemporaryLinkStubs.cpp:
2881         (FrameWin::originalRequestURL): Added
2882
2883 2006-09-18  Rob Buis  <buis@kde.org>
2884
2885         Reviewed by Maciej.
2886
2887         http://bugs.webkit.org/show_bug.cgi?id=10807
2888         REGRESSION (r16259): Repro crash on manual-tests/svg-repaint-image.svg
2889
2890         Make sure the paint method is not exited without popping
2891         context and transparency layer.
2892
2893         WARNING: NO TEST CASES ADDED OR CHANGED
2894
2895         * kcanvas/RenderSVGImage.cpp:
2896         (WebCore::RenderSVGImage::paint):
2897
2898 2006-09-18  Graham Dennis  <graham.dennis@gmail.com>
2899
2900         Reviewed by Eric.
2901         
2902         - fix for http://bugs.webkit.org/show_bug.cgi?id=10896
2903         REGRESSION: WebKit can't be built with SVG disabled
2904         
2905         * bindings/scripts/CodeGeneratorObjC.pm:
2906         For each file generated add a #ifdef <something>_SUPPORT / #endif
2907         pair if the idl file has a Conditional extended attribute
2908
2909 2006-09-17  Eric Seidel  <eric@eseidel.com>
2910
2911         Reviewed by ap.
2912         
2913         REGRESSION (r16245): double-clicking on javascript exceptions fails to show source
2914         http://bugs.webkit.org/show_bug.cgi?id=10813
2915
2916         * bridge/mac/WebCoreFrameBridge.mm:
2917         (+[WebCoreFrameBridge stringWithData:textEncodingName:]):
2918
2919 2006-09-17  Alexey Proskuryakov  <ap@nypop.com>
2920
2921         Reviewed by Hyatt.
2922
2923         http://bugs.webkit.org/show_bug.cgi?id=10779
2924         REGRESSION: Animated GIF ignores frame intervals and loops infinitely
2925
2926         No test possible.
2927
2928         * platform/Image.cpp:
2929         (WebCore::Image::shouldAnimate): Don't check that there is more than one frame,
2930         maybe the rest just hasn't been loaded yet.
2931         (WebCore::Image::startAnimation): Move the frame count check here - there is no need
2932         to start animating before we get at least two frames.
2933
2934 2006-09-17  Brady Eidson <beidson@apple.com>
2935
2936         Reviewed by Sarge
2937
2938         IconLoader now gracefully handles the condition where there's no document in the frame
2939         (ie. PDFs)
2940
2941         * loader/icon/IconLoader.cpp:
2942         (IconLoader::startLoading):
2943
2944 2006-09-17  David Hyatt  <hyatt@apple.com>
2945
2946         Fix for bug 10899, rework how CSS keywords work to be smarter about
2947         using the correct size when generic families change (e.g., monospace to
2948         serif and vice versa).
2949
2950         Reviewed by aroben
2951
2952         Added fast/text/basic/generic-family-changes.html
2953
2954         * css/cssstyleselector.cpp:
2955         (WebCore::CSSStyleSelector::applyProperty):
2956         (WebCore::CSSStyleSelector::checkForGenericFamilyChange):
2957         (WebCore::CSSStyleSelector::fontSizeForKeyword):
2958         * css/cssstyleselector.h:
2959         * dom/Document.cpp:
2960         (WebCore::Document::recalcStyle):
2961         * platform/FontDescription.h:
2962         (WebCore::FontDescription::FontDescription):
2963         (WebCore::FontDescription::keywordSize):
2964         (WebCore::FontDescription::setKeywordSize):
2965         (WebCore::FontDescription::operator==):
2966
2967 2006-09-17  Alexey Proskuryakov  <ap@nypop.com>
2968
2969         Reviewed by Brady.
2970
2971         http://bugs.webkit.org/show_bug.cgi?id=10852
2972         REGRESSION: Reproducible crash in XMLHttpRequest::abort()
2973
2974         Test: http/tests/xmlhttprequest/xhr-onunload.html
2975
2976         * xml/xmlhttprequest.cpp:
2977         (WebCore::XMLHttpRequest::send): Check the return value of ResourceLoader::start().
2978
2979         * loader/icon/IconLoader.cpp:
2980         (IconLoader::startLoading): Fix a similar latent bug here.
2981
2982 2006-09-17  Adam Roben  <aroben@apple.com>
2983
2984         Build fix.
2985
2986         * loader/icon/IconDatabase.cpp:
2987
2988 2006-09-17  Anders Carlsson  <acarlsson@apple.com>
2989
2990         Reviewed by Brady.
2991
2992         Add simplifyWhiteSpace and stripWhiteSpace to the String class. 
2993         Change the XSLT Parameter Map to use Strings instead of StringImpls.
2994         General cleanup.
2995
2996         * bindings/js/JSXSLTProcessor.cpp:
2997         (KJS::XSLTProcessorProtoFunc::callAsFunction):
2998         * bindings/js/kjs_events.cpp:
2999         (KJS::JSAbstractEventListener::handleEvent):
3000         * bindings/js/kjs_window.cpp:
3001         (KJS::ScheduledAction::execute):
3002         * css/MediaList.cpp:
3003         (WebCore::MediaList::setMediaText):
3004         * dom/Document.cpp:
3005         (WebCore::Document::processHttpEquiv):
3006         * editing/ApplyStyleCommand.cpp:
3007         (WebCore::StyleChange::init):
3008         * html/HTMLDocument.cpp:
3009         (WebCore::parseDocTypeDeclaration):
3010         * html/HTMLLinkElement.cpp:
3011         (WebCore::HTMLLinkElement::parseMappedAttribute):
3012         * html/HTMLObjectElement.cpp:
3013         (WebCore::HTMLObjectElement::HTMLObjectElement):
3014         (WebCore::HTMLObjectElement::parseMappedAttribute):
3015         (WebCore::HTMLObjectElement::attach):
3016         (WebCore::HTMLObjectElement::setComplete):
3017         (WebCore::HTMLObjectElement::detach):
3018         (WebCore::HTMLObjectElement::recalcStyle):
3019         (WebCore::HTMLObjectElement::childrenChanged):
3020         (WebCore::HTMLObjectElement::isImageType):
3021         * html/HTMLObjectElement.h:
3022         * html/HTMLOptionElement.cpp:
3023         (WebCore::HTMLOptionElement::value):
3024         * html/HTMLSelectElement.cpp:
3025         (WebCore::HTMLSelectElement::appendFormData):
3026         * html/HTMLTokenizer.cpp:
3027         (WebCore::HTMLTokenizer::parseTag):
3028         * ksvg2/svg/SVGColor.cpp:
3029         (WebCore::SVGColor::setRGBColor):
3030         * ksvg2/svg/SVGDescElement.cpp:
3031         (WebCore::SVGDescElement::description):
3032         * platform/PlatformString.h:
3033         * platform/String.cpp:
3034         (WebCore::String::stripWhiteSpace):
3035         (WebCore::String::simplifyWhiteSpace):
3036         * platform/StringImpl.cpp:
3037         (WebCore::isSpace):
3038         (WebCore::parseLength):
3039         (WebCore::StringImpl::stripWhiteSpace):
3040         (WebCore::StringImpl::simplifyWhiteSpace):
3041         (WebCore::StringImpl::toInt):
3042         * platform/StringImpl.h:
3043         * platform/mac/ClipboardMac.mm:
3044         (WebCore::cocoaTypeFromMIMEType):
3045         * rendering/RenderPartObject.cpp:
3046         (WebCore::RenderPartObject::updateWidget):
3047         * xml/XPathFunctions.cpp:
3048         (WebCore::XPath::FunNormalizeSpace::doEvaluate):
3049         * xml/XPathGrammar.y:
3050         * xml/XPathStep.cpp:
3051         (WebCore::XPath::Step::nodeTestMatches):
3052         * xml/XSLStyleSheet.cpp:
3053         (WebCore::XSLStyleSheet::loadChildSheets):
3054         (WebCore::XSLStyleSheet::locateStylesheetSubResource):
3055         * xml/XSLTProcessor.cpp:
3056         (WebCore::xsltParamArrayFromParameterMap):
3057         (WebCore::XSLTProcessor::setParameter):
3058         (WebCore::XSLTProcessor::getParameter):
3059         (WebCore::XSLTProcessor::removeParameter):
3060         * xml/XSLTProcessor.h:
3061         * xml/xmlhttprequest.cpp:
3062         (WebCore::XMLHttpRequest::getStatusText):
3063
3064 2006-09-17  David Hyatt  <hyatt@apple.com>
3065
3066         Fix for bugzilla bugs 10895 and 6336, fieldsets misbehaving when floats
3067         are declared right before the fieldsets.  It turns out fieldsets in other
3068         browsers avoid floats (like overflow:auto/hidden/scroll sections do), so
3069         adding that behavior to fieldset fixes the bug.
3070
3071         Made avoidsFloats virtual and did some refactoring to make tables, flexboxes
3072         and fieldsets all subclass.
3073
3074         Reviewed by anders
3075
3076         Added fast/forms/float-before-fieldset.html
3077
3078         * rendering/RenderFieldset.h:
3079         (WebCore::RenderFieldset::avoidsFloats):
3080         * rendering/RenderFlexibleBox.h:
3081         (WebCore::RenderFlexibleBox::avoidsFloats):
3082         * rendering/RenderObject.cpp:
3083         (WebCore::RenderObject::avoidsFloats):
3084         * rendering/RenderObject.h:
3085         * rendering/RenderTable.h:
3086         (WebCore::RenderTable::avoidsFloats):
3087
3088 2006-09-17  David Hyatt  <hyatt@apple.com>
3089
3090         Fix for bugzilla bug 3240, implement support for the HTML4 "frame" and
3091         "rules" attributes on tables.
3092
3093         Reviewed by bradee-oh
3094
3095         Well-covered by existing layout tests.
3096
3097         * html/HTMLTableCellElement.cpp:
3098         (WebCore::HTMLTableCellElement::additionalAttributeStyleDecl):
3099         * html/HTMLTableColElement.cpp:
3100         (WebCore::HTMLTableColElement::additionalAttributeStyleDecl):
3101         * html/HTMLTableColElement.h:
3102         * html/HTMLTableElement.cpp:
3103         (WebCore::HTMLTableElement::HTMLTableElement):
3104         (WebCore::HTMLTableElement::~HTMLTableElement):
3105         (WebCore::HTMLTableElement::setCaption):
3106         (WebCore::HTMLTableElement::setTHead):
3107         (WebCore::HTMLTableElement::setTFoot):
3108         (WebCore::HTMLTableElement::setTBody):
3109         (WebCore::HTMLTableElement::createTHead):
3110         (WebCore::HTMLTableElement::deleteTHead):
3111         (WebCore::HTMLTableElement::createTFoot):
3112         (WebCore::HTMLTableElement::deleteTFoot):
3113         (WebCore::HTMLTableElement::createCaption):
3114         (WebCore::HTMLTableElement::deleteCaption):
3115         (WebCore::HTMLTableElement::insertRow):
3116         (WebCore::HTMLTableElement::deleteRow):
3117         (WebCore::HTMLTableElement::addChild):
3118         (WebCore::HTMLTableElement::childrenChanged):
3119         (WebCore::HTMLTableElement::mapToEntry):
3120         (WebCore::HTMLTableElement::parseMappedAttribute):
3121         (WebCore::HTMLTableElement::additionalAttributeStyleDecl):
3122         (WebCore::HTMLTableElement::getSharedCellDecl):
3123         (WebCore::HTMLTableElement::getSharedGroupDecl):
3124         (WebCore::HTMLTableElement::attach):
3125         * html/HTMLTableElement.h:
3126         (WebCore::HTMLTableElement::caption):
3127         (WebCore::HTMLTableElement::tHead):
3128         (WebCore::HTMLTableElement::tFoot):
3129         (WebCore::HTMLTableElement::):
3130         * html/HTMLTableRowElement.h:
3131         * html/HTMLTableSectionElement.cpp:
3132         (WebCore::HTMLTableSectionElement::additionalAttributeStyleDecl):
3133         * html/HTMLTableSectionElement.h:
3134
3135 2006-09-17  David Hyatt  <hyatt@apple.com>
3136
3137         Fix for bugzilla bug 4192, font size wrong for <tt> elements that
3138         specify their own new font-family list.  Make sure to always
3139         reset the generic family along with the family list when mapping in
3140         new font-family values.
3141
3142         Reviewed by bradee-oh
3143
3144         fast/text/basic/generic-family-reset.html
3145
3146         * css/cssstyleselector.cpp:
3147         (WebCore::CSSStyleSelector::applyProperty):
3148
3149 2006-09-16  Brady Eidson <beidson@apple.com>
3150
3151         Reviewed by Hyatt
3152
3153         Pruning code relating to WebKit's icon loader
3154
3155         * bridge/mac/WebCoreIconDatabaseBridge.h:
3156         * bridge/mac/WebCoreIconDatabaseBridge.mm:
3157         * loader/icon/IconDatabase.h:
3158         * page/Frame.cpp:
3159         (WebCore::Frame::endIfNotLoading): Moved a FIXME in from WebKit's IconLoader to 
3160         its new home
3161
3162 2006-09-16  Sam Weinig  <sam.weinig@gmail.com>
3163
3164         Reviewed by Tim H.
3165
3166         Patch for http://bugs.webkit.org/show_bug.cgi?id=10885
3167         Auto-generate DOMHTMLDocument for the Objective-C bindings
3168
3169         * DerivedSources.make:
3170         * WebCore.xcodeproj/project.pbxproj:
3171         * bindings/objc/DOMExtensions.h:
3172         * bindings/objc/DOMHTML.mm:
3173         (-[DOMHTMLDocument createDocumentFragmentWithText:]):
3174         * bindings/objc/DOMHTMLDocument.h: Removed.
3175         * bindings/objc/DOMHTMLDocument.mm: Removed.
3176         * bindings/objc/PublicDOMInterfaces.h:
3177         * bindings/scripts/CodeGeneratorObjC.pm:
3178         * html/HTMLDocument.idl:
3179         * platform/DeprecatedString.h:
3180         (WebCore::DeprecatedString::operator NSString*):
3181
3182 2006-09-16  Rob Buis  <buis@kde.org>
3183
3184         Reviewed by Eric.
3185
3186         http://bugs.webkit.org/show_bug.cgi?id=10866
3187         Code in kcanvas/ should not use Private
3188
3189         Remove Private classes and tweak coding style.
3190
3191         WARNING: NO TEST CASES ADDED OR CHANGED
3192
3193         * kcanvas/RenderPath.cpp:
3194         (WebCore::RenderPath::RenderPath):
3195         (WebCore::RenderPath::~RenderPath):
3196         (WebCore::RenderPath::localTransform):
3197         (WebCore::RenderPath::setLocalTransform):
3198         (WebCore::RenderPath::fillContains):
3199         (WebCore::RenderPath::relativeBBox):
3200         (WebCore::RenderPath::setPath):
3201         (WebCore::RenderPath::path):
3202         (WebCore::RenderPath::layout):
3203         * kcanvas/RenderPath.h:
3204         * kcanvas/RenderSVGContainer.cpp:
3205         (WebCore::RenderSVGContainer::RenderSVGContainer):
3206         (WebCore::RenderSVGContainer::~RenderSVGContainer):
3207         (WebCore::RenderSVGContainer::drawsContents):
3208         (WebCore::RenderSVGContainer::setDrawsContents):
3209         (WebCore::RenderSVGContainer::localTransform):
3210         (WebCore::RenderSVGContainer::setLocalTransform):
3211         (WebCore::RenderSVGContainer::layout):
3212         (WebCore::RenderSVGContainer::paint):
3213         (WebCore::RenderSVGContainer::setViewport):
3214         (WebCore::RenderSVGContainer::viewport):
3215         (WebCore::RenderSVGContainer::setViewBox):
3216         (WebCore::RenderSVGContainer::viewBox):
3217         (WebCore::RenderSVGContainer::setAlign):
3218         (WebCore::RenderSVGContainer::align):
3219         (WebCore::RenderSVGContainer::fillContains):
3220         (WebCore::RenderSVGContainer::strokeContains):
3221         (WebCore::RenderSVGContainer::setSlice):
3222         (WebCore::RenderSVGContainer::slice):
3223         * kcanvas/RenderSVGContainer.h:
3224         * kcanvas/device/KRenderingFillPainter.cpp:
3225         (WebCore::KRenderingFillPainter::KRenderingFillPainter):
3226         (WebCore::KRenderingFillPainter::~KRenderingFillPainter):
3227         (WebCore::KRenderingFillPainter::fillRule):
3228         (WebCore::KRenderingFillPainter::setFillRule):
3229         (WebCore::KRenderingFillPainter::opacity):
3230         (WebCore::KRenderingFillPainter::setOpacity):
3231         * kcanvas/device/KRenderingFillPainter.h:
3232         * kcanvas/device/KRenderingPaintServerGradient.cpp:
3233         (WebCore::KRenderingPaintServerGradient::KRenderingPaintServerGradient):
3234         (WebCore::KRenderingPaintServerGradient::~KRenderingPaintServerGradient):
3235         (WebCore::KRenderingPaintServerGradient::gradientStops):
3236         (WebCore::KRenderingPaintServerGradient::setGradientStops):
3237         (WebCore::KRenderingPaintServerGradient::spreadMethod):
3238         (WebCore::KRenderingPaintServerGradient::setGradientSpreadMethod):
3239         (WebCore::KRenderingPaintServerGradient::boundingBoxMode):
3240         (WebCore::KRenderingPaintServerGradient::setBoundingBoxMode):
3241         (WebCore::KRenderingPaintServerGradient::gradientTransform):
3242         (WebCore::KRenderingPaintServerGradient::setGradientTransform):
3243         (WebCore::KRenderingPaintServerLinearGradient::KRenderingPaintServerLinearGradient):
3244         (WebCore::KRenderingPaintServerLinearGradient::~KRenderingPaintServerLinearGradient):
3245         (WebCore::KRenderingPaintServerLinearGradient::gradientStart):
3246         (WebCore::KRenderingPaintServerLinearGradient::setGradientStart):
3247         (WebCore::KRenderingPaintServerLinearGradient::gradientEnd):
3248         (WebCore::KRenderingPaintServerLinearGradient::setGradientEnd):
3249         (WebCore::KRenderingPaintServerRadialGradient::KRenderingPaintServerRadialGradient):
3250         (WebCore::KRenderingPaintServerRadialGradient::~KRenderingPaintServerRadialGradient):
3251         (WebCore::KRenderingPaintServerRadialGradient::gradientCenter):
3252         (WebCore::KRenderingPaintServerRadialGradient::setGradientCenter):
3253         (WebCore::KRenderingPaintServerRadialGradient::gradientFocal):
3254         (WebCore::KRenderingPaintServerRadialGradient::setGradientFocal):
3255         (WebCore::KRenderingPaintServerRadialGradient::gradientRadius):
3256         (WebCore::KRenderingPaintServerRadialGradient::setGradientRadius):
3257         (WebCore::KRenderingPaintServerGradient::listener):
3258         (WebCore::KRenderingPaintServerGradient::setListener):
3259         * kcanvas/device/KRenderingPaintServerGradient.h:
3260         * kcanvas/device/KRenderingPaintServerPattern.cpp:
3261         (WebCore::KRenderingPaintServerPattern::KRenderingPaintServerPattern):
3262         (WebCore::KRenderingPaintServerPattern::~KRenderingPaintServerPattern):
3263         (WebCore::KRenderingPaintServerPattern::setBbox):
3264         (WebCore::KRenderingPaintServerPattern::bbox):
3265         (WebCore::KRenderingPaintServerPattern::boundingBoxMode):
3266         (WebCore::KRenderingPaintServerPattern::setBoundingBoxMode):
3267         (WebCore::KRenderingPaintServerPattern::tile):
3268         (WebCore::KRenderingPaintServerPattern::setTile):
3269         (WebCore::KRenderingPaintServerPattern::patternTransform):
3270         (WebCore::KRenderingPaintServerPattern::setPatternTransform):
3271         (WebCore::KRenderingPaintServerPattern::listener):
3272         (WebCore::KRenderingPaintServerPattern::setListener):
3273         * kcanvas/device/KRenderingPaintServerPattern.h:
3274         * kcanvas/device/KRenderingPaintServerSolid.cpp:
3275         (WebCore::KRenderingPaintServerSolid::KRenderingPaintServerSolid):
3276         (WebCore::KRenderingPaintServerSolid::~KRenderingPaintServerSolid):
3277         (WebCore::KRenderingPaintServerSolid::color):
3278         (WebCore::KRenderingPaintServerSolid::setColor):
3279         * kcanvas/device/KRenderingPaintServerSolid.h:
3280         * kcanvas/device/KRenderingStrokePainter.cpp:
3281         (WebCore::KRenderingStrokePainter::KRenderingStrokePainter):
3282         (WebCore::KRenderingStrokePainter::~KRenderingStrokePainter):
3283         (WebCore::KRenderingStrokePainter::strokeWidth):
3284         (WebCore::KRenderingStrokePainter::setStrokeWidth):
3285         (WebCore::KRenderingStrokePainter::strokeMiterLimit):
3286         (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
3287         (WebCore::KRenderingStrokePainter::strokeCapStyle):
3288         (WebCore::KRenderingStrokePainter::setStrokeCapStyle):
3289         (WebCore::KRenderingStrokePainter::strokeJoinStyle):
3290         (WebCore::KRenderingStrokePainter::setStrokeJoinStyle):
3291         (WebCore::KRenderingStrokePainter::dashOffset):
3292         (WebCore::KRenderingStrokePainter::setDashOffset):
3293         (WebCore::KRenderingStrokePainter::dashArray):
3294         (WebCore::KRenderingStrokePainter::setDashArray):
3295         (WebCore::KRenderingStrokePainter::opacity):
3296         (WebCore::KRenderingStrokePainter::setOpacity):
3297         (WebCore::KRenderingStrokePainter::dirty):
3298         (WebCore::KRenderingStrokePainter::setDirty):
3299         * kcanvas/device/KRenderingStrokePainter.h:
3300
3301 2006-09-16  Mark Rowe  <opendarwin.org@bdash.net.nz>
3302
3303         Reviewed by Anders.
3304
3305         http://bugs.webkit.org/show_bug.cgi?id=10887
3306         Fix build error
3307
3308         * bindings/objc/DOMPrivate.h: Remove reference to DOMEventPrivate.h.
3309
3310 2006-09-16  Sam Weinig  <sam.weinig@gmail.com>
3311
3312         Reviewed by Anders.
3313
3314         Fix for http://bugs.webkit.org/show_bug.cgi?id=10886
3315         REGRESSION (r16387): Reproducible crash when mousing over HTML document
3316
3317         - Special case method [DOMNode ownerDocument] to call document() instead
3318           or ownerDocument() to return to the old behavior. 
3319
3320         * WebCore.xcodeproj/project.pbxproj:
3321         * bindings/scripts/CodeGeneratorObjC.pm:
3322
3323 2006-09-15  Brady Eidson  <beidson@apple.com>
3324
3325         Reviewed by Tim Hatcher
3326
3327         <rdar://problem/4730811> - New IconDatabase needs to attempt to create its path.
3328         Otherwise new installs and new user accounts won't have any icons because the icon.db cannot be created
3329
3330         * loader/icon/IconDatabase.cpp: Removed a now obsolete FIXME
3331         (WebCore::makeAllDirectories): Added - candidate to be in a header for "platform neutral file utilities"
3332         (WebCore::IconDatabase::open): Make sure the directory exists
3333
3334 2006-09-15  Timothy Hatcher  <timothy@apple.com>
3335
3336         Reviewed by Brady.
3337
3338         Make new style ObjC methods public API.
3339
3340         * WebCore.xcodeproj/project.pbxproj:
3341         * bindings/objc/DOMPrivate.h:
3342         * bindings/objc/PublicDOMInterfaces.h:
3343
3344 2006-09-15  Sam Weinig  <sam.weinig@gmail.com>
3345
3346         Reviewed by Tim H.
3347
3348         Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
3349         Auto-generate DOMNode for the Objective-C bindings
3350
3351         * DerivedSources.make:
3352         * WebCore.xcodeproj/project.pbxproj:
3353         * bindings/objc/DOM.mm:
3354         (-[DOMNode boundingBox]):
3355         (-[DOMNode lineBoxRects]):
3356         * bindings/objc/DOMEvents.h:
3357         * bindings/objc/DOMExtensions.h:
3358         * bindings/objc/DOMNode.h: Removed.
3359         * bindings/objc/DOMNode.mm: Removed.
3360         * bindings/objc/PublicDOMInterfaces.h:
3361         * bindings/scripts/CodeGeneratorObjC.pm:
3362         * dom/Node.idl:
3363
3364 2006-09-15  Timothy Hatcher  <timothy@apple.com>
3365
3366         Reviewed by Justin.
3367
3368         Removed alter selection logic from WebCoreFrameBridge and moved to SelectionController.
3369
3370         * bridge/mac/WebCoreFrameBridge.h:
3371         * bridge/mac/WebCoreFrameBridge.mm:
3372         (-[WebCoreFrameBridge centerSelectionInVisibleArea]):
3373         (-[WebCoreFrameBridge rangeByExpandingSelectionWithGranularity:]):
3374         (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:direction:granularity:]):
3375         (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
3376         (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]):
3377         (-[WebCoreFrameBridge replaceMarkedTextWithText:]):
3378         (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
3379         (-[WebCoreFrameBridge increaseSelectionListLevel]):
3380         (-[WebCoreFrameBridge increaseSelectionListLevelOrdered]):
3381         (-[WebCoreFrameBridge increaseSelectionListLevelUnordered]):
3382         (-[WebCoreFrameBridge decreaseSelectionListLevel]):
3383         (-[WebCoreFrameBridge insertLineBreak]):
3384         (-[WebCoreFrameBridge insertParagraphSeparator]):
3385         (-[WebCoreFrameBridge insertParagraphSeparatorInQuotedContent]):
3386         (-[WebCoreFrameBridge insertText:selectInsertedText:]):
3387         (-[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:]):
3388         (-[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:]):
3389         (createMouseEventFromDraggingInfo):
3390         * editing/SelectionController.cpp:
3391         (WebCore::SelectionController::moveTo):
3392         (WebCore::SelectionController::setSelection):
3393         (WebCore::SelectionController::modify):
3394         (WebCore::SelectionController::setBase):
3395         (WebCore::SelectionController::setExtent):
3396         * editing/SelectionController.h:
3397         * page/Frame.cpp:
3398         (WebCore::Frame::revealSelection):
3399         (WebCore::Frame::revealCaret):
3400         * page/Frame.h:
3401
3402 2006-09-15  Brady Eidson  <beidson@apple.com>
3403
3404         Reviewed by Anders
3405
3406         Added the ability to get a mutable char* from a CString, which will copy the internal
3407         buffer if the ref count is greater than 1 so your mutable char* won't affect any other
3408         referrer of that buffer.
3409
3410         * platform/CString.cpp:
3411         (WebCore::CString::mutableData):
3412         (WebCore::CString::copyBufferIfNeeded):
3413         * platform/CString.h:
3414
3415 2006-09-15  Justin Garcia  <justin.garcia@apple.com>
3416
3417         Reviewed by harrison
3418         
3419         <rdar://problem/4674869>
3420         REGRESSION: selecting text to write over results in cursor jumping to middle of next line
3421
3422         * editing/SelectionController.cpp:
3423         (WebCore::SelectionController::modify): Added lineBoundary to test fix.
3424         * editing/visible_units.cpp:
3425         (WebCore::endOfLine): If the last box on the line is a lineBreak, return the
3426         position before it, not after it.
3427
3428 2006-09-15  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
3429
3430         Reviewed by Adam.
3431
3432         http://bugs.webkit.org/show_bug.cgi?id=10864
3433         Bug 10864: Linux\GDK build fixes
3434
3435         * Projects/gdk/webcore-gdk.bkl:
3436         * WebCoreSources.bkl:
3437         * platform/gdk/FontCacheGdk.cpp:
3438         * platform/gdk/FontDataGdk.cpp:
3439         (WebCore::FontData::platformInit):
3440         * platform/gdk/FontGdk.cpp:
3441         (WebCore::Font::drawGlyphs):
3442         * platform/gdk/FrameGdk.cpp:
3443         (WebCore::FrameGdk::handleGdkEvent):
3444         * platform/gdk/FrameGdk.h:
3445         * platform/gdk/ImageGdk.cpp: Added.
3446         (WebCore::Image::initPlatformData):
3447         (WebCore::Image::invalidatePlatformData):
3448         (WebCore::Image::loadPlatformResource):
3449         (WebCore::Image::supportsType):
3450         * platform/gdk/RenderPopupMenuGdk.cpp:
3451         (WebCore::RenderPopupMenuGdk::hidePopup):
3452         * platform/gdk/RenderPopupMenuGdk.h:
3453         * platform/gdk/ScreenGdk.cpp:
3454         (WebCore::drawableForPage):
3455         (WebCore::screenRect):
3456         (WebCore::screenDepth):
3457         (WebCore::usableScreenRect):
3458         (WebCore::scaleFactor):
3459         * platform/gdk/SystemTimeLinux.cpp:
3460         (WebCore::currentTime):
3461         * platform/gdk/TemporaryLinkStubs.cpp:
3462         (FrameGdk::bindingRootObject):
3463         (FrameGdk::markMisspellings):
3464         (WebCore::screenDepthPerComponent):
3465         (WebCore::screenIsMonochrome):
3466         (WebCore::fileButtonChooseFileLabel):
3467         (WebCore::fileButtonNoFileSelectedLabel):
3468         (FrameGdk::shouldChangeSelection):
3469         (FrameGdk::respondToChangedSelection):
3470         (FrameGdk::respondToChangedContents):
3471         (Path::contains):
3472         (PlatformScrollBar::PlatformScrollBar):
3473         (PlatformScrollBar::~PlatformScrollBar):
3474         (PlatformScrollBar::width):
3475         (PlatformScrollBar::height):
3476         (PlatformScrollBar::setEnabled):
3477         (PlatformScrollBar::paint):
3478         (PlatformScrollBar::setScrollBarValue):
3479         (PlatformScrollBar::setKnobProportion):
3480         (PlatformScrollBar::setRect):
3481         (ScrollBar::ScrollBar):
3482         (FileChooser::FileChooser):
3483         (FileChooser::~FileChooser):
3484         (FileChooser::openFileChooser):
3485         (FileChooser::basenameForWidth):
3486         (FileChooser::uploadControlDetaching):
3487         (FileChooser::chooseFile):
3488         (Icon::Icon):
3489         (Icon::~Icon):
3490         (Icon::newIconForFile):
3491         (Icon::paint):
3492         (IconLoader::stopLoading):
3493         (IconLoader::startLoading):
3494         (IconLoader::createForFrame):
3495         (IconDatabase::isIconExpiredForIconURL):
3496         (IconDatabase::hasEntryForIconURL):
3497         (IconDatabase::sharedIconDatabase):
3498         * platform/gdk/WidgetGdk.cpp:
3499         * webcore-base.bkl:
3500
3501 2006-09-15  Nikolas Zimmermann  <zimmermann@kde.org>
3502
3503         Reviewed by Eric.
3504
3505         Fixes: http://bugs.webkit.org/show_bug.cgi?id=10835
3506         Fix svg memory leaks.
3507
3508         Reworked SVGList to deal with RefPtr's for ptr types
3509         which makes manual refcounting unnecessary, and is much safer.
3510
3511         Removing all virtual functions (nullItem) from SVGList, and
3512         also remove SVGListBase. Switch to a similar concept like
3513         Vector/VectorTraits (see new file SVGListTraits.h).
3514
3515         Credits go to Eric/Maciej for the inspiration.
3516
3517         * CMakeLists.txt: Add SVGListTraits.cpp to build
3518         * WebCore.xcodeproj/project.pbxproj: Ditto.
3519         * bindings/scripts/CodeGeneratorJS.pm: Generator changes for SVGTransform/PathSeg/LengthList (now RefPtr based)
3520         * kcanvas/RenderSVGText.cpp: Add some get() methods, as SVGLengthList is RefPtr based now.
3521         (WebCore::RenderSVGText::translationForAttributes):
3522         * ksvg2/svg/SVGAnimateTransformElement.cpp: Add some get() methods, as SVGTransformList is RefPtr based now.
3523         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
3524         * ksvg2/svg/SVGElementInstanceList.cpp: Be RefPtr based.
3525         (WebCore::SVGElementInstanceList::SVGElementInstanceList):
3526         * ksvg2/svg/SVGElementInstanceList.h:
3527         * ksvg2/svg/SVGLengthList.cpp: Ditto.
3528         (WebCore::SVGLengthList::SVGLengthList):
3529         * ksvg2/svg/SVGLengthList.h: Ditto.
3530         * ksvg2/svg/SVGList.h: Rewrote, as described above.
3531         (WebCore::SVGListTypeOperations::nullItem):
3532         (WebCore::SVGList::SVGList):
3533         (WebCore::SVGList::~SVGList):
3534         (WebCore::SVGList::clear):
3535         (WebCore::SVGList::getFirst):
3536         (WebCore::SVGList::getLast):
3537         (WebCore::SVGList::getItem):
3538         (WebCore::SVGList::replaceItem):
3539         (WebCore::SVGList::removeItem):
3540         * ksvg2/svg/SVGListTraits.cpp: Added.
3541         * ksvg2/svg/SVGListTraits.h: Added.
3542         (WebCore::):
3543         * ksvg2/svg/SVGPathElement.cpp: Add some get() methods, as SVGPathSegList is RefPtr based now.
3544         (WebCore::SVGPathElement::toPathData):
3545         * ksvg2/svg/SVGPathSegList.cpp: Be RefPtr based.
3546         (WebCore::SVGPathSegList::SVGPathSegList):
3547         * ksvg2/svg/SVGPathSegList.h: Ditto.
3548         * ksvg2/svg/SVGTransform.cpp: Style cleanup.
3549         (SVGTransform::SVGTransform):
3550         * ksvg2/svg/SVGTransformList.cpp: Be RefPtr based.
3551         (SVGTransformList::SVGTransformList):
3552         (SVGTransformList::createSVGTransformFromMatrix):
3553         (SVGTransformList::consolidate):
3554         * ksvg2/svg/SVGTransformList.h: Ditto.
3555         * ksvg2/svg/SVGTransformable.cpp: Fix RefPtr usage of SVGTransform.
3556         (SVGTransformable::parseTransformAttribute):
3557
3558 2006-09-15  Nikolas Zimmermann  <zimmermann@kde.org>
3559
3560         Reviewed by eseidel.  Landed by eseidel.
3561
3562         Fix build on Qt/Linux and implement Frame::addMessageToConsole to
3563         be able to see javascript errors for instance.
3564
3565         * CMakeLists.txt:
3566         * platform/qt/FrameQt.h:
3567         * platform/qt/FrameQt.cpp: Implement addMessageToConsole.
3568         (WebCore::FrameQt::bindingRootObject):
3569         * platform/qt/TemporaryLinkStubs.cp
3570         (WebCore::IconDatabase::hasEntryForIconURL):
3571         (WebCore::IconDatabase::sharedIconDatabase):
3572
3573 2006-09-15  Sam Weinig  <sam.weinig@gmail.com>
3574
3575         Reviewed by Tim H.
3576
3577         Patch for http://bugs.webkit.org/show_bug.cgi?id=10869
3578         Auto-generate the internal methods for the Objective-C bindings
3579
3580         - Auto-generates the internal method (ie. the _fooBar and _fooBarWith methods)
3581           implementations where standard.  For cases where a custom implementation was
3582           needed, added a [ObjCNoInternal] extended attribute to the corresponding IDL.
3583
3584         - Some general cleanup of some of the non-generated bindings, to bring them in-
3585           line with what the generated bindings look like.
3586
3587         * bindings/objc/DOM.mm:
3588         (-[DOMNode description]):
3589         * bindings/objc/DOMCSS.mm:
3590         (-[DOMCSSPrimitiveValue WebCore::]):
3591         (-[DOMDocument getComputedStyle::]):
3592         (-[DOMDocument getMatchedCSSRules::]):
3593         * bindings/objc/DOMEvents.mm:
3594         (-[DOMEvent WebCore::]):
3595         * bindings/objc/DOMHTML.mm:
3596         * bindings/objc/DOMHTMLDocument.mm:
3597         (-[DOMHTMLDocument title]):
3598         (-[DOMHTMLDocument setTitle:]):
3599         (-[DOMHTMLDocument referrer]):
3600         (-[DOMHTMLDocument domain]):
3601         (-[DOMHTMLDocument URL]):
3602         (-[DOMHTMLDocument body]):
3603         (-[DOMHTMLDocument setBody:]):
3604         (-[DOMHTMLDocument images]):
3605         (-[DOMHTMLDocument applets]):
3606         (-[DOMHTMLDocument links]):
3607         (-[DOMHTMLDocument forms]):
3608         (-[DOMHTMLDocument anchors]):
3609         (-[DOMHTMLDocument cookie]):
3610         (-[DOMHTMLDocument setCookie:]):
3611         (-[DOMHTMLDocument open]):
3612         (-[DOMHTMLDocument close]):
3613         (-[DOMHTMLDocument write:]):
3614         (-[DOMHTMLDocument writeln:]):
3615         (-[DOMHTMLDocument getElementById:]):
3616         (-[DOMHTMLDocument getElementsByName:]):
3617         (-[DOMHTMLDocument WebCore::]):
3618         (+[DOMHTMLDocument _HTMLDocumentWith:WebCore::]):
3619         * bindings/objc/DOMHTMLOptionElement.mm:
3620         (-[DOMHTMLOptionElement form]):
3621         (-[DOMHTMLOptionElement defaultSelected]):
3622         (-[DOMHTMLOptionElement setDefaultSelected:]):
3623         (-[DOMHTMLOptionElement text]):
3624         (-[DOMHTMLOptionElement index]):
3625         (-[DOMHTMLOptionElement disabled]):
3626         (-[DOMHTMLOptionElement setDisabled:]):
3627         (-[DOMHTMLOptionElement label]):
3628         (-[DOMHTMLOptionElement setLabel:]):
3629         (-[DOMHTMLOptionElement selected]):
3630         (-[DOMHTMLOptionElement setSelected:]):
3631         (-[DOMHTMLOptionElement value]):
3632         (-[DOMHTMLOptionElement setValue:]):
3633         (-[DOMHTMLOptionElement WebCore::]):
3634         (+[DOMHTMLOptionElement _HTMLOptionElementWith:WebCore::]):
3635         * bindings/objc/DOMInternal.h:
3636         * bindings/objc/DOMNode.mm:
3637         (-[DOMNode dealloc]):
3638         (-[DOMNode finalize]):
3639         (-[DOMNode nodeName]):
3640         (-[DOMNode nodeValue]):
3641         (-[DOMNode setNodeValue:]):
3642         (-[DOMNode nodeType]):
3643         (-[DOMNode parentNode]):
3644         (-[DOMNode childNodes]):
3645         (-[DOMNode firstChild]):
3646         (-[DOMNode lastChild]):
3647         (-[DOMNode previousSibling]):
3648         (-[DOMNode nextSibling]):
3649         (-[DOMNode attributes]):
3650         (-[DOMNode ownerDocument]):
3651         (-[DOMNode insertBefore::]):
3652         (-[DOMNode replaceChild::]):
3653         (-[DOMNode removeChild:]):
3654         (-[DOMNode appendChild:]):
3655         (-[DOMNode hasChildNodes]):
3656         (-[DOMNode cloneNode:]):
3657         (-[DOMNode normalize]):
3658         (-[DOMNode isSupported::]):
3659         (-[DOMNode namespaceURI]):
3660         (-[DOMNode prefix]):
3661         (-[DOMNode setPrefix:]):
3662         (-[DOMNode localName]):
3663         (-[DOMNode hasAttributes]):
3664         (-[DOMNode isSameNode:]):
3665         (-[DOMNode isEqualNode:]):
3666         (-[DOMNode isDefaultNamespace:]):
3667         (-[DOMNode lookupPrefix:]):
3668         (-[DOMNode lookupNamespaceURI:]):
3669         (-[DOMNode textContent]):
3670         (-[DOMNode setTextContent:]):
3671         (-[DOMNode boundingBox]):
3672         (-[DOMNode lineBoxRects]):
3673         * bindings/objc/DOMObject.mm:
3674         (-[DOMObject _init]):
3675         * bindings/objc/DOMXPath.mm:
3676         (-[DOMNativeXPathNSResolver dealloc]):
3677         (-[DOMNativeXPathNSResolver finalize]):
3678         (-[DOMNativeXPathNSResolver WebCore::]):
3679         (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
3680         (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
3681         (-[DOMNativeXPathNSResolver lookupNamespaceURI:]):
3682         * bindings/scripts/CodeGeneratorObjC.pm:
3683         * bridge/mac/WebCoreFrameBridge.mm:
3684         (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
3685         (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]):
3686         * css/CSSCharsetRule.idl:
3687         * css/CSSFontFaceRule.idl:
3688         * css/CSSImportRule.idl:
3689         * css/CSSMediaRule.idl:
3690         * css/CSSPageRule.idl:
3691         * css/CSSPrimitiveValue.idl:
3692         * css/CSSRule.idl:
3693         * css/CSSStyleRule.idl:
3694         * css/CSSStyleSheet.idl:
3695         * css/CSSUnknownRule.idl:
3696         * css/CSSValue.idl:
3697         * css/CSSValueList.idl:
3698         * css/StyleSheet.idl:
3699         * dom/Event.idl:
3700         * dom/KeyboardEvent.idl:
3701         * dom/MouseEvent.idl:
3702         * dom/MutationEvent.idl:
3703         * dom/NodeIterator.idl:
3704         * dom/OverflowEvent.idl:
3705         * dom/TreeWalker.idl:
3706         * dom/UIEvent.idl:
3707         * dom/WheelEvent.idl:
3708
3709 2006-09-15  Adam Roben  <aroben@apple.com>
3710
3711         Reviewed by timothy.
3712
3713         Fixes http://bugs.webkit.org/show_bug.cgi?id=10865
3714         New file upload control should match the width of the old one
3715
3716         Make width of new file upload control match the old one as closely as
3717         possible.
3718
3719         * rendering/RenderFileUploadControl.cpp:
3720
3721 2006-09-15  Timothy Hatcher  <timothy@apple.com>
3722
3723         Reviewed by Eric.
3724
3725         Remove the SVG IDL files from the Copy Resources phase.
3726
3727         * WebCore.xcodeproj/project.pbxproj:
3728
3729 2006-09-15  Brady Eidson  <beidson@apple.com>
3730
3731         Reviewed by Eric Siedel
3732
3733         Dumped the use of CGColorRef and directly use the floating point data from
3734         WebCore::Color
3735
3736         This fixes the performance regression found between 16285 and 16286
3737
3738         * platform/mac/FontMac.mm:
3739         (WebCore::Font::drawComplexText):
3740         (WebCore::Font::drawGlyphs):
3741
3742 2006-09-14  Mark Rowe  <opendarwin.org@bdash.net.nz>
3743
3744         Reviewed by Adam.
3745
3746         http://bugs.webkit.org/show_bug.cgi?id=10838
3747         Bug 10838: REGRESSION: Leaking of WebScriptObjectPrivate
3748
3749         FrameMac relies on its cleanupPluginObjects being called to perform cleanup.  The virtual
3750         Frame::cleanupPluginObjects method is called from Frame's destructor, which results
3751         in Frame::cleanupPluginObjects being called rather than FrameMac::cleanupPluginObjects.
3752
3753         * bridge/mac/FrameMac.mm:
3754         (WebCore::FrameMac::~FrameMac): Call cancelAndClear to ensure that FrameMac::cleanupPluginObjects
3755         will be called from Frame::clear
3756         * page/Frame.cpp:
3757         (WebCore::Frame::~Frame): Use cancelAndClear.
3758         (WebCore::Frame::cancelAndClear): Move cancellation and clearing into a separate method that
3759         FrameMac can use.
3760         * page/Frame.h:
3761
3762 2006-09-14  Brady Eidson  <beidson@apple.com>
3763
3764         Reviewed by Maciej's rubber stamp
3765
3766         Exact same fix I just made, but in the other method I horked up
3767         Also added a reference to the bugzilla in comments
3768
3769         * page/Frame.cpp:
3770         (WebCore::Frame::endIfNotLoading):
3771         (WebCore::Frame::stop):
3772
3773 2006-09-14  Brady Eidson  <beidson@apple.com>
3774
3775         Reviewed by Maciej
3776
3777         Fixed a bad iFrame crash, resolving some of the layout test badness
3778
3779         * page/Frame.cpp:
3780         (WebCore::Frame::endIfNotLoading):
3781         - Added a RefPtr to protect the frame itself to prevent its destruction during this method
3782
3783 2006-09-14  Justin Garcia  <justin.garcia@apple.com>
3784
3785         Reviewed by harrison
3786         
3787         <rdar://problem/4655880> Up/Down arrows skip over To Do
3788
3789         * bridge/mac/WebCoreFrameBridge.mm:
3790         (-[WebCoreFrameBridge canDeleteRange:]): Added a FIXME.
3791         * dom/Node.cpp: Removed the unused inSameRootEditableElement.
3792         * dom/Node.h:
3793         * editing/SelectionController.cpp:
3794         (WebCore::SelectionController::modify): Added documentboundary to granularities in order test a fix.
3795         * editing/visible_units.cpp:
3796         (WebCore::previousLinePosition): Use highestEditableRoot so that this function can move from
3797         editable content into editable content that's embedded in non-editable content.
3798         (WebCore::nextLinePosition): Ditto.
3799         (WebCore::startOfEditableContent): Renamed from startOfEditableRoot and use highestEditableRoot.
3800         This is the behavior that callers desire.  This fixes Command + Up/Down.
3801         (WebCore::endOfEditableContent): Ditto.
3802         * editing/visible_units.h:
3803
3804 2006-09-14  Karthik Kumar  <karthikkumar@gmail.com>
3805
3806         Reviewed by timothy. Landed by aroben.
3807
3808         Fixes http://bugs.webkit.org/show_bug.cgi?id=10856
3809         Windows build fixes after r16360
3810
3811         * WebCore.vcproj/WebCore/WebCore.vcproj: Add loader\icon to
3812         AdditionalIncludeDirectories
3813         * platform/win/TemporaryLinkStubs.cpp: Add link stubs for IconLoader,
3814         IconDatabase
3815         (IconLoader::stopLoading):
3816         (IconLoader::startLoading):
3817         (IconLoader::createForFrame):
3818         (IconDatabase::isIconExpiredForIconURL):
3819         (IconDatabase::hasEntryForIconURL):
3820         (IconDatabase::sharedIconDatabase):
3821
3822 2006-09-14  Brady Eidson  <beidson@apple.com>
3823
3824         Part of a build fix for Windows - rest will be working out a mess of temporary link stubs
3825
3826         * loader/icon/IconLoader.cpp:
3827         (IconLoader::receivedAllData):
3828         * page/Frame.cpp:
3829         * page/FramePrivate.h:
3830
3831 2006-09-14  Graham Dennis  <graham.dennis@gmail.com>
3832
3833         Reviewed by Justin Garcia.
3834
3835         - http://bugs.webkit.org/show_bug.cgi?id=10726
3836           Crash in ApplyStyleCommand::applyRelativeFontStyleChange
3837
3838         * editing/ApplyStyleCommand.cpp:
3839         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange): Prevent a crash by
3840         makeing sure that the 'beyondEnd' node is after the start node.
3841
3842 2006-09-14  MorganL  <morlmor@yahoo.com>
3843
3844         Reviewed by Brady.
3845
3846         Fixes http://bugs.webkit.org/show_bug.cgi?id=10845
3847         Various bugs/crashes in ResourceLoaderWin with local files.
3848
3849         * platform/ResourceLoaderInternal.h:
3850         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
3851         * platform/win/ResourceLoaderWin.cpp:
3852         (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
3853         (WebCore::ResourceLoader::fileLoadTimer):
3854
3855 2006-09-13  Brady Eidson <beidson@apple.com>
3856
3857         Reviewed by Maciej
3858
3859         Icon loads now take place in WebCore
3860
3861         * WebCore.xcodeproj/project.pbxproj:
3862         * bridge/BrowserExtension.h:
3863         * bridge/mac/BrowserExtensionMac.h:
3864         * bridge/mac/BrowserExtensionMac.mm:
3865         - Moved enforcement of a Mozilla Favicon extension elsewhere
3866         
3867         * bridge/mac/FrameMac.h: 
3868         * bridge/mac/FrameMac.mm: 
3869         (WebCore::FrameMac::originalRequestURL):
3870         - Added accessor to "original request URL"
3871         
3872         * bridge/mac/WebCoreFrameBridge.h: 
3873         - Removed methods to set the iconURL as all loading is now done in WebCore
3874         - Added call throughs to notify WebKit an Icon is done loading, and a to get the original request URL
3875         
3876         * html/HTMLLinkElement.cpp: 
3877         (WebCore::HTMLLinkElement::process):
3878         - Moved enforcement of a Mozilla Favicon extension elsewhere
3879         
3880         * loader/icon/IconDatabase.cpp:
3881         (WebCore::IconDatabase::setIconURLForPageURL):
3882         - Changed an ASSERT to correctly handle a sketchy (invalid) situation
3883
3884         * loader/icon/IconLoader.h: Added.
3885         * loader/icon/IconLoader.cpp: Added.
3886         (IconLoader::IconLoader):
3887         (IconLoader::createForFrame):
3888         - Static factory method with a private constructor to enforce 
3889           "you MUST have a Frame to create an IconLoader" semantics
3890         (IconLoader::~IconLoader):
3891         (IconLoader::startLoading):
3892         (IconLoader::stopLoading):
3893         (IconLoader::receivedData):
3894         - ResourceLoaderClient delegate
3895         (IconLoader::receivedAllData):
3896         - Ditto
3897
3898         * loader/mac/IconLoaderMac.mm: Added.
3899         (IconLoader::receivedResponse):
3900         (IconLoader::notifyIconChanged):
3901         - For now, these are platform specific methods
3902         - One to get the HTTP response code of an icon load
3903         - The other to call through to the app when the icon has changed (loaded)
3904
3905         * page/Frame.h:
3906         * page/Frame.cpp:
3907         (WebCore::Frame::iconURL):
3908         (WebCore::Frame::setIconURL):
3909         - Frame objects now have an inherent icon URL and a way to calculate/access it
3910         (WebCore::Frame::endIfNotLoading):
3911         - This is where we actually kick off the IconLoader
3912         (WebCore::Frame::stop):
3913         - Added call to stop loading the icon
3914
3915         * page/FramePrivate.h:
3916         (WebCore::FramePrivate::FramePrivate):
3917         (WebCore::FramePrivate::~FramePrivate):
3918         - Added the icon URL as a private member
3919         - Added the IconLoader as a private member, and clean it up on deletion
3920
3921         * platform/mac/ResourceLoaderMac.mm:
3922         (WebCore::ResourceLoader::start):  Added a valuable ASSERT
3923
3924 2006-09-13  David Hyatt  <hyatt@apple.com>
3925
3926         Fix for 10841, unable to check checkboxes inside labels.
3927
3928         Reviewed by xenon, bradee-oh
3929
3930         * css/html4.css:
3931         * dom/Element.cpp:
3932         (WebCore::Element::contains):
3933         * dom/Element.h:
3934         * html/HTMLLabelElement.cpp:
3935         (WebCore::HTMLLabelElement::defaultEventHandler):
3936
3937 2006-09-13  Mark Rowe  <opendarwin.org@bdash.net.nz>
3938
3939         Reviewed by Adam.
3940
3941         http://bugs.webkit.org/show_bug.cgi?id=10834
3942         Bug 10834: FileChooser constructor in FileChooserMac appears to overretain m_controller
3943
3944         * platform/mac/FileChooserMac.mm:
3945         (WebCore::FileChooser::FileChooser): Don't over-retain the OpenPanelController.
3946
3947 2006-09-13  Mark Rowe  <opendarwin.org@bdash.net.nz>
3948
3949         Reviewed by Eric.
3950
3951         http://bugs.webkit.org/show_bug.cgi?id=10836
3952         Bug 10836: REGRESSION: Mac implementation of Font::drawGlyphs leaks a CGColorRef
3953
3954         * platform/mac/FontMac.mm:
3955         (WebCore::Font::drawComplexText): Release CGColorRef after use.
3956         (WebCore::Font::drawGlyphs): Ditto.
3957
3958 2006-09-14  Anders Carlsson  <acarlsson@apple.com>
3959
3960         Try fixing the Win32 build.
3961         
3962         * bridge/win/FrameWin.h:
3963         * platform/win/TemporaryLinkStubs.cpp:
3964         (FrameWin::bindingRootObject):
3965
3966 2006-09-14  Anders Carlsson  <acarlsson@apple.com>
3967
3968         Reviewed by Tim O.
3969
3970         Add USE defines for the generic JavaScriptCore bindings as well as NPAPI bindings.
3971         
3972         * bindings/js/kjs_binding.cpp:
3973         (KJS::ScriptInterpreter::createLanguageInstanceForValue):
3974         * bindings/js/kjs_dom.cpp:
3975         (KJS::getRuntimeObject):
3976         * bridge/mac/FrameMac.h:
3977         * config.h:
3978         * html/HTMLAppletElement.cpp:
3979         (WebCore::HTMLAppletElement::~HTMLAppletElement):
3980         (WebCore::HTMLAppletElement::detach):
3981         * html/HTMLAppletElement.h:
3982         * html/HTMLEmbedElement.cpp:
3983         (WebCore::HTMLEmbedElement::~HTMLEmbedElement):
3984         (WebCore::HTMLEmbedElement::detach):
3985         * html/HTMLEmbedElement.h:
3986         * html/HTMLObjectElement.cpp:
3987         (WebCore::HTMLObjectElement::~HTMLObjectElement):
3988         (WebCore::HTMLObjectElement::detach):
3989         * html/HTMLObjectElement.h:
3990         * html/HTMLPlugInElement.cpp:
3991         (WebCore::HTMLPlugInElement::HTMLPlugInElement):
3992         (WebCore::HTMLPlugInElement::~HTMLPlugInElement):
3993         (WebCore::HTMLPlugInElement::createNPObject):
3994         * html/HTMLPlugInElement.h:
3995         * page/Frame.h:
3996
3997 2006-09-13  David Hyatt  <hyatt@apple.com>
3998
3999         Clean up the XBL and XSLT ifdefs to be consistent with the SVG
4000         and XPath ifdefs.  KHTML_NO_XBL is flipped and is now XBL_SUPPORT.
4001         KHTML_XSLT is now XSLT_SUPPORT.
4002
4003         * WebCore.xcodeproj/project.pbxproj:
4004         * bindings/js/JSXSLTProcessor.cpp:
4005         * bindings/js/JSXSLTProcessor.h:
4006         * bindings/js/kjs_window.cpp:
4007         (KJS::Window::getValueProperty):
4008         * config.h:
4009         * css/CSSComputedStyleDeclaration.cpp:
4010         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
4011         * css/cssparser.cpp:
4012         (WebCore::CSSParser::parseValue):
4013         * css/cssstyleselector.cpp:
4014         (WebCore::CSSStyleSelector::applyProperty):
4015         * dom/Document.cpp:
4016         (WebCore::Document::Document):
4017         (WebCore::Document::~Document):
4018         (WebCore::Document::recalcStyleSelector):
4019         * dom/Document.h:
4020         (WebCore::Document::bindingManager):
4021         * dom/Node.cpp:
4022         (WebCore::Node::createRendererIfNeeded):
4023         * dom/ProcessingInstruction.cpp:
4024         (WebCore::ProcessingInstruction::ProcessingInstruction):
4025         (WebCore::ProcessingInstruction::checkStyleSheet):
4026         (WebCore::ProcessingInstruction::setStyleSheet):
4027         * dom/ProcessingInstruction.h:
4028         * dom/XMLTokenizer.cpp:
4029         (WebCore::XMLTokenizer::processingInstruction):
4030         (WebCore::XMLTokenizer::insertErrorMessageBlock):
4031         * dom/XMLTokenizer.h:
4032         * loader/Cache.cpp:
4033         (WebCore::Cache::getStatistics):
4034         * loader/Cache.h:
4035         * loader/CachedResource.h:
4036         (WebCore::CachedResource::):
4037         * loader/CachedResourceClient.h:
4038         * loader/CachedXBLDocument.cpp:
4039         * loader/CachedXBLDocument.h:
4040         * loader/CachedXSLStyleSheet.cpp:
4041         * loader/CachedXSLStyleSheet.h:
4042         * loader/DocLoader.cpp:
4043         * loader/DocLoader.h:
4044         * rendering/RenderStyle.cpp:
4045         (WebCore::StyleCSS3NonInheritedData::StyleCSS3NonInheritedData):
4046         (WebCore::StyleCSS3NonInheritedData::~StyleCSS3NonInheritedData):
4047         (WebCore::StyleCSS3NonInheritedData::operator==):
4048         * rendering/RenderStyle.h:
4049         * xml/XSLImportRule.cpp:
4050         * xml/XSLImportRule.h:
4051         * xml/XSLStyleSheet.cpp:
4052         * xml/XSLStyleSheet.h:
4053         * xml/XSLTProcessor.cpp:
4054         * xml/XSLTProcessor.h:
4055
4056 2006-09-13  Nikolas Zimmermann  <zimmermann@kde.org>
4057
4058         Reviewed by eseidel.  Landed by eseidel.
4059
4060         Fix newly introduced memory leaks in SVG.
4061         http://bugs.webkit.org/show_bug.cgi?id=10835
4062
4063         * ksvg2/svg/SVGList.h:
4064         (WebCore::SVGListBase::~SVGListBase):
4065         (WebCore::SVGListBase::clearVector):
4066         (WebCore::SVGListBase::clear):
4067         (WebCore::SVGList::clearVector):
4068         (WebCore::):
4069         * ksvg2/svg/SVGNumberList.cpp: s/float/double/ - forgot that!
4070         (SVGNumberList::SVGNumberList):
4071         * ksvg2/svg/SVGNumberList.h: Ditto.
4072
4073 2006-09-13  MorganL  <morlmor@yahoo.com>
4074
4075         Reviewed/landed by aroben.
4076
4077         Fixes http://bugs.webkit.org/show_bug.cgi?id=10833
4078         Windows build needs fixed after move to engine-rendered file upload widget
4079
4080         * WebCore.vcproj/WebCore/WebCore.vcproj: Add RenderFileUpload files,
4081         remove RenderFileButton files
4082         * platform/win/TemporaryLinkStubs.cpp: Add stubs for FileChooser, Icon
4083         (FileChooser::FileChooser):
4084         (FileChooser::~FileChooser):
4085         (FileChooser::openFileChooser):
4086         (FileChooser::basenameForWidth):
4087         (FileChooser::uploadControlDetaching):
4088         (FileChooser::chooseFile):
4089         (WebCore::fileButtonChooseFileLabel):
4090         (WebCore::fileButtonNoFileSelectedLabel):
4091         (Icon::Icon):
4092         (Icon::~Icon):
4093         (Icon::newIconForFile):
4094         (Icon::paint):
4095
4096 2006-09-13  MorganL  <morlmor@yahoo.com>
4097
4098         Reviewed/landed by aroben.
4099
4100         Fixes http://bugs.webkit.org/attachment.cgi?id=10537
4101         Webkit WebCore build fails on Windows
4102
4103         * WebCore.vcproj/WebCore/build-generated-files.sh: export SOURCE_ROOT
4104         variable
4105
4106 2006-09-13  Nikolas Zimmermann  <zimmermann@kde.org>
4107
4108         Reviewed by Tim H.
4109
4110         Fix Qt/Linux build.
4111
4112         * CMakeLists.txt: Change SVGZoomEvent.idl location & add RenderFileUploadControl
4113         * platform/Icon.h: Add wtf/Platform.h include
4114         * platform/qt/FileChooserQt.cpp: Added as stub. Easy to implement though.
4115         (WebCore::FileChooser::FileChooser):
4116         (WebCore::FileChooser::~FileChooser):
4117         (WebCore::FileChooser::openFileChooser):
4118         (WebCore::FileChooser::basenameForWidth):
4119         (WebCore::FileChooser::uploadControlDetaching):
4120         (WebCore::FileChooser::chooseFile):
4121         * platform/qt/IconQt.cpp: Added as stub.
4122         (WebCore::Icon::Icon):
4123         (WebCore::Icon::~Icon):
4124         (WebCore::Icon::newIconForFile):
4125         (WebCore::Icon::paint):
4126         * platform/qt/TemporaryLinkStubs.cpp: Remove old RenderFileButton code & some new *Labels needed
4127         (searchableIndexIntroduction):
4128         (fileButtonChooseFileLabel):
4129         (fileButtonNoFileSelectedLabel):
4130
4131 2006-09-12  Adam Roben  <aroben@apple.com>
4132
4133         Reviewed by eseidel.
4134
4135         Switch back to passing relative paths to generate-bindings.pl when
4136         generating JS bindings.
4137
4138         * DerivedSources.make: Pass in relative paths to generate-bindings.pl
4139         * bindings/scripts/CodeGenerator.pm: Make ScanDirectory never call
4140         chdir and always construct absolute paths instead.
4141
4142 2006-09-12  David Hyatt  <hyatt@apple.com>
4143
4144         Fix for bug 3244, implement html4 label support.
4145
4146         Reviewed by mjs, aroben
4147
4148         Added fast/events/label-focus.html
4149
4150         * css/html4.css:
4151         * html/HTMLLabelElement.cpp:
4152         (WebCore::HTMLLabelElement::formElement):
4153         (WebCore::HTMLLabelElement::setActive):
4154         (WebCore::HTMLLabelElement::setHovered):
4155         (WebCore::HTMLLabelElement::defaultEventHandler):
4156         * html/HTMLLabelElement.h:
4157
4158 2006-09-12  Julien Palmas  <julien.palmas@gmail.com>
4159
4160         Reviewed by darin.  Landed by eseidel.
4161
4162         * ksvg2/svg/svgpathparser.cpp:
4163         (WebCore::SVGPolyParser::parsePoints):
4164
4165 2006-09-11  Kevin McCullough  <KMcCullough@apple.com>
4166
4167         Reviewed by Andersca, Maciej, Brady.
4168
4169         - Implemented intersectsNode in the Range Class
4170           to be compliant with Mozilla standard
4171
4172         * dom/Range.cpp:
4173         (WebCore::Range::intersectsNode):
4174         * dom/Range.h:
4175         * dom/Range.idl:
4176
4177 2006-09-12  Nikolas Zimmermann  <zimmermann@kde.org>
4178
4179         Reviewed by eseidel.  Landed by eseidel.
4180
4181         Test: svg/W3C-SVG-1.1/struct-dom-01-b.svg (fixed)
4182         Fixes: http://bugs.webkit.org/show_bug.cgi?id=10826
4183         
4184         Also finally fixes some long outstanding bugs:
4185         Fixes: http://bugs.webkit.org/show_bug.cgi?id=9190
4186         Fixes: http://bugs.webkit.org/show_bug.cgi?id=9229
4187         Fixes: http://bugs.webkit.org/show_bug.cgi?id=10413
4188
4189         Enable all JavaScript SVG bindings. Builds on Qt/Linux & OSX.
4190
4191         * CMakeLists.txt:
4192         * DerivedSources.make:
4193         * WebCore.xcodeproj/project.pbxproj:
4194         * bindings/scripts/CodeGenerator.pm:
4195         * bindings/scripts/CodeGeneratorJS.pm:
4196         * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp:
4197         * ksvg2/svg/SVGAElement.idl: Added.
4198         * ksvg2/svg/SVGAngle.idl:
4199         * ksvg2/svg/SVGAnimateColorElement.idl: Added.
4200         * ksvg2/svg/SVGAnimateElement.idl: Added.
4201         * ksvg2/svg/SVGAnimateTransformElement.idl: Added.
4202         * ksvg2/svg/SVGAnimatedLengthList.idl: Added.
4203         * ksvg2/svg/SVGAnimatedNumberList.idl: Added.
4204         * ksvg2/svg/SVGAnimatedTransformList.idl: Added.
4205         * ksvg2/svg/SVGAnimationElement.idl: Added.
4206         * ksvg2/svg/SVGCircleElement.idl: Added.
4207         * ksvg2/svg/SVGClipPathElement.idl: Added.
4208         * ksvg2/svg/SVGColor.idl:
4209         * ksvg2/svg/SVGComponentTransferFunctionElement.idl: Added.
4210         * ksvg2/svg/SVGCursorElement.idl: Added.
4211         * ksvg2/svg/SVGDefsElement.idl: Added.
4212         * ksvg2/svg/SVGDescElement.idl: Added.
4213         * ksvg2/svg/SVGEllipseElement.idl: Added.
4214         * ksvg2/svg/SVGEvent.idl:
4215         * ksvg2/svg/SVGExternalResourcesRequired.idl: Added.
4216         * ksvg2/svg/SVGFEBlendElement.idl: Added.
4217         * ksvg2/svg/SVGFEColorMatrixElement.idl: Added.
4218         * ksvg2/svg/SVGFEComponentTransferElement.idl: Added.
4219         * ksvg2/svg/SVGFECompositeElement.idl: Added.
4220         * ksvg2/svg/SVGFEDiffuseLightingElement.idl: Added.
4221         * ksvg2/svg/SVGFEDisplacementMapElement.idl: Added.
4222         * ksvg2/svg/SVGFEDistantLightElement.idl: Added.
4223         * ksvg2/svg/SVGFEFloodElement.idl: Added.
4224         * ksvg2/svg/SVGFEFuncAElement.idl: Added.
4225         * ksvg2/svg/SVGFEFuncBElement.idl: Added.
4226         * ksvg2/svg/SVGFEFuncGElement.idl: Added.
4227         * ksvg2/svg/SVGFEFuncRElement.idl: Added.
4228         * ksvg2/svg/SVGFEGaussianBlurElement.idl: Added.
4229         * ksvg2/svg/SVGFEImageElement.idl: Added.
4230         * ksvg2/svg/SVGFEMergeElement.idl: Added.
4231         * ksvg2/svg/SVGFEMergeNodeElement.idl: Added.
4232         * ksvg2/svg/SVGFEOffsetElement.idl: Added.
4233         * ksvg2/svg/SVGFEPointLightElement.idl: Added.
4234         * ksvg2/svg/SVGFESpecularLightingElement.idl: Added.
4235         * ksvg2/svg/SVGFESpotLightElement.idl: Added.
4236         * ksvg2/svg/SVGFETileElement.idl: Added.
4237         * ksvg2/svg/SVGFETurbulenceElement.idl: Added.
4238         * ksvg2/svg/SVGFilterElement.idl: Added.
4239         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl: Added.
4240         * ksvg2/svg/SVGFitToViewBox.idl: Added.
4241         * ksvg2/svg/SVGForeignObjectElement.idl: Added.
4242         * ksvg2/svg/SVGGElement.idl: Added.
4243         * ksvg2/svg/SVGGradientElement.idl: Added.
4244         * ksvg2/svg/SVGImageElement.idl: Added.
4245         * ksvg2/svg/SVGLangSpace.idl: Added.
4246         * ksvg2/svg/SVGLength.idl:
4247         * ksvg2/svg/SVGLengthList.idl: Added.
4248         * ksvg2/svg/SVGLineElement.idl: Added.
4249         * ksvg2/svg/SVGLinearGradientElement.idl: Added.
4250         * ksvg2/svg/SVGLocatable.idl: Added.
4251         * ksvg2/svg/SVGMarkerElement.idl: Added.
4252         * ksvg2/svg/SVGMaskElement.idl: Added.
4253         * ksvg2/svg/SVGNumberList.idl: Added.
4254         * ksvg2/svg/SVGPaint.idl: Added.
4255         * ksvg2/svg/SVGPathElement.idl:
4256         * ksvg2/svg/SVGPathSeg.idl:
4257         * ksvg2/svg/SVGPatternElement.idl: Added.
4258         * ksvg2/svg/SVGPointList.idl: Added.
4259         * ksvg2/svg/SVGPolygonElement.idl: Added.
4260         * ksvg2/svg/SVGPolylineElement.idl: Added.
4261         * ksvg2/svg/SVGPreserveAspectRatio.idl:
4262         * ksvg2/svg/SVGRadialGradientElement.idl: Added.
4263         * ksvg2/svg/SVGRectElement.idl: Added.
4264         * ksvg2/svg/SVGRenderingIntent.idl: Added.
4265         * ksvg2/svg/SVGSVGElement.idl:
4266         * ksvg2/svg/SVGScriptElement.idl: