Backing out my previous change.
[WebKit-https.git] / WebCore / ChangeLog
1 2006-10-06  Adam Roben  <aroben@apple.com>
2
3         Backing out my previous change.
4
5         * WebCore.xcodeproj/project.pbxproj:
6         * page/FrameView.cpp:
7         (WebCore::FrameView::adjustViewSize):
8
9 2006-10-06  Adam Roben  <aroben@apple.com>
10
11         Build fix.
12
13         * WebCore.xcodeproj/project.pbxproj:
14         * page/FrameView.cpp:
15         (WebCore::FrameView::windowResizerRect):
16
17 2006-10-06  Adam Roben  <aroben@apple.com>
18
19         Reviewed by Maciej.
20
21         More loader tweaks.
22
23         * platform/ResourceLoader.h:
24         * platform/ResourceLoaderInternal.h:
25         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
26         * platform/win/TemporaryLinkStubs.cpp:
27         (WebCore::ResourceLoader::newHTTPRequest):
28
29 2006-10-05  Steve Falkenburg  <sfalken@apple.com>
30
31         Reviewed by aroben.
32
33         Stub out some methods that we'll be able to use to dodge a window resizer.
34
35         * bridge/win/FrameWin.h:
36         * page/Frame.h:
37         (WebCore::Frame::windowResizerRect):
38         * page/FrameView.h:
39         * platform/ScrollView.h:
40         (WebCore::ScrollView::windowResizerRect):
41         * platform/Widget.h:
42         * platform/win/TemporaryLinkStubs.cpp:
43         (FrameView::windowResizerRect):
44         (Widget::setParent):
45         (Widget::parent):
46         (FrameWin::windowResizerRect):
47
48 2006-10-05  Dave Hyatt  <hyatt@apple.com>
49
50         Stub out setFrameGeometry.
51         
52         * platform/ScrollView.h:
53
54 2006-10-05  Adele Peterson  <adele@apple.com>
55
56         Reverting autoscroll fix.  I need to rework this a little.
57
58         * page/Frame.cpp:
59         (WebCore::Frame::handleAutoscroll):
60         (WebCore::Frame::autoscrollTimerFired):
61         (WebCore::Frame::stopAutoscrollTimer):
62         * page/Frame.h:
63         * rendering/RenderLayer.cpp:
64         (WebCore::RenderLayer::~RenderLayer):
65         * rendering/RenderListBox.cpp:
66         (WebCore::RenderListBox::~RenderListBox):
67
68 2006-10-05  Alice  <alice.liu@apple.com>
69
70         Reviewed by Adam.
71
72         Fixed <rdar://problem/4731778>
73
74         * editing/CommandByName.cpp:
75         (WebCore::Frame::Command::):
76         was calling the wrong enabledFn for arrow selection and navigation
77
78 2006-10-05  Adele Peterson  <adele@apple.com>
79
80         Reviewed by Maciej.
81
82         - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
83           and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
84
85         * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
86         * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
87
88         * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
89         (WebCore::Frame::handleAutoscroll):
90         (WebCore::Frame::autoscrollTimerFired):
91         (WebCore::Frame::autoscrollRenderer):
92         (WebCore::Frame::setAutoscrollRenderer):
93         (WebCore::Frame::stopAutoscrollTimer):
94         * page/Frame.h:
95
96 2006-10-05  Don Gibson  <dgibson77@gmail.com>
97
98         Reviewed by Eric.
99
100         Fix win32 build bustage after ggaren's Scrollbar renaming changes.
101         Properly include PlatformScrollBar.h in WbCore.vcproj.
102         Clean up WidgetWin.cpp a bit.
103
104         * WebCore.vcproj/WebCore/WebCore.vcproj:
105         * platform/Widget.h:
106         * platform/win/PlatformScrollBar.h:
107         * platform/win/ScrollViewWin.cpp:
108         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
109         (WebCore::ScrollView::resizeContents):
110         (WebCore::ScrollView::scrollBy):
111         (WebCore::ScrollView::hScrollbarMode):
112         (WebCore::ScrollView::vScrollbarMode):
113         (WebCore::ScrollView::suppressScrollbars):
114         (WebCore::ScrollView::setHScrollbarMode):
115         (WebCore::ScrollView::setVScrollbarMode):
116         (WebCore::ScrollView::setScrollbarsMode):
117         (WebCore::ScrollView::updateScrollbars):
118         * platform/win/TemporaryLinkStubs.cpp:
119         (FrameView::passMousePressEventToScrollbar):
120         (Widget::removeFromParent):
121         (ScrollView::scrollbarUnderMouse):
122         (PlatformScrollbar::PlatformScrollbar):
123         (PlatformScrollbar::~PlatformScrollbar):
124         (PlatformScrollbar::width):
125         (PlatformScrollbar::height):
126         (PlatformScrollbar::setEnabled):
127         (PlatformScrollbar::paint):
128         (PlatformScrollbar::updateThumbPosition):
129         (PlatformScrollbar::updateThumbProportion):
130         (PlatformScrollbar::setRect):
131         (Scrollbar::Scrollbar):
132         (Scrollbar::setSteps):
133         (Scrollbar::scroll):
134         (Scrollbar::setValue):
135         (Scrollbar::setProportion):
136         * platform/win/WidgetWin.cpp:
137         (WebCore::WidgetPrivate::WidgetPrivate):
138         (WebCore::Widget::Widget):
139         (WebCore::Widget::setContainingWindow):
140         (WebCore::Widget::containingWindow):
141
142 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
143
144         build fix.
145         
146         * WebCore.xcodeproj/project.pbxproj:
147         * bridge/mac/BrowserExtensionMac.mm:
148         (WebCore::BrowserExtensionMac::createNewWindow):
149         * bridge/mac/FrameMac.mm:
150         (WebCore::FrameMac::createFrame):
151         * bridge/mac/FrameViewMac.mm:
152         (WebCore::FrameView::passMousePressEventToScrollbar):
153         * bridge/mac/WebCoreFrameBridge.mm:
154         (-[WebCoreFrameBridge installInFrame:]):
155         * bridge/mac/WebCoreFrameView.h:
156         * platform/ScrollBar.cpp:
157         * platform/Widget.h:
158         * platform/mac/PlatformScrollBar.h:
159         * platform/mac/PlatformScrollBarMac.mm:
160         (NSControlSizeForScrollBarControlSize):
161         (-[WebCoreScrollBar initWithPlatformScrollbar:]):
162         (-[WebCoreScrollBar detachPlatformScrollbar]):
163         (-[WebCoreScrollBar scroll:]):
164         (-[WebCoreScrollBar widget]):
165         (WebCore::PlatformScrollbar::PlatformScrollbar):
166         (WebCore::PlatformScrollbar::~PlatformScrollbar):
167         (WebCore::PlatformScrollbar::updateThumbPosition):
168         (WebCore::PlatformScrollbar::updateThumbProportion):
169         (WebCore::PlatformScrollbar::scrollbarHit):
170         (WebCore::PlatformScrollbar::width):
171         (WebCore::PlatformScrollbar::height):
172         (WebCore::PlatformScrollbar::setRect):
173         (WebCore::PlatformScrollbar::setEnabled):
174         (WebCore::PlatformScrollbar::paint):
175         * platform/mac/ScrollViewMac.mm:
176         (WebCore::ScrollView::setVScrollbarMode):
177         (WebCore::ScrollView::setHScrollbarMode):
178         (WebCore::ScrollView::setScrollbarsMode):
179         (WebCore::ScrollView::vScrollbarMode):
180         (WebCore::ScrollView::hScrollbarMode):
181         (WebCore::ScrollView::suppressScrollbars):
182         (WebCore::ScrollView::scrollbarUnderMouse):
183         * platform/mac/WidgetMac.mm:
184         (WebCore::Widget::removeFromParent):
185         * rendering/RenderLayer.cpp:
186         (WebCore::RenderLayer::destroyScrollbar):
187
188 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
189
190         build fix.
191         
192         * platform/Widget.h:
193         * rendering/RenderLayer.cpp:
194         (WebCore::RenderLayer::destroyScrollbar):
195
196 2006-10-06  Mitz Pettel  <mitz@webkit.org>
197
198         http://bugs.webkit.org/show_bug.cgi?id=8276
199         Fix broken manual test added back in r13990.
200
201         Add resource forks for test resources.
202
203         * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
204         * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
205         * manual-tests/resources/plain-text-paste/._4.txt: Added.
206         * manual-tests/resources/plain-text-paste/._5.webloc: Added.
207
208 2006-10-05  David Hyatt  <hyatt@apple.com>
209
210         Rename addClip to clip.
211
212         Reviewed by darin
213
214         * kcanvas/RenderForeignObject.cpp:
215         (WebCore::RenderForeignObject::paint):
216         * kcanvas/RenderSVGContainer.cpp:
217         (WebCore::RenderSVGContainer::paint):
218         * kcanvas/RenderSVGImage.cpp:
219         (WebCore::RenderSVGImage::paint):
220         * platform/GraphicsContext.h:
221         * platform/cairo/GraphicsContextCairo.cpp:
222         (WebCore::GraphicsContext::clip):
223         * platform/cg/GraphicsContextCG.cpp:
224         (WebCore::GraphicsContext::savePlatformState):
225         (WebCore::GraphicsContext::restorePlatformState):
226         (WebCore::GraphicsContext::clip):
227         (WebCore::GraphicsContext::addRoundedRectClip):
228         (WebCore::GraphicsContext::addInnerRoundedRectClip):
229         (WebCore::GraphicsContext::scale):
230         (WebCore::GraphicsContext::rotate):
231         (WebCore::GraphicsContext::translate):
232         (WebCore::GraphicsContext::concatCTM):
233         * platform/cg/GraphicsContextPlatformPrivate.h:
234         (WebCore::GraphicsContextPlatformPrivate::save):
235         (WebCore::GraphicsContextPlatformPrivate::restore):
236         (WebCore::GraphicsContextPlatformPrivate::clip):
237         (WebCore::GraphicsContextPlatformPrivate::scale):
238         (WebCore::GraphicsContextPlatformPrivate::rotate):
239         (WebCore::GraphicsContextPlatformPrivate::translate):
240         (WebCore::GraphicsContextPlatformPrivate::concatCTM):
241         * platform/qt/GraphicsContextQt.cpp:
242         (WebCore::GraphicsContext::clip):
243         (WebCore::GraphicsContext::addInnerRoundedRectClip):
244         (WebCore::GraphicsContext::addRoundedRectClip):
245         * rendering/InlineFlowBox.cpp:
246         (WebCore::InlineFlowBox::paintBackground):
247         (WebCore::InlineFlowBox::paintBackgroundAndBorder):
248         * rendering/InlineTextBox.cpp:
249         (WebCore::InlineTextBox::paintSelection):
250         (WebCore::InlineTextBox::paintTextMatchMarker):
251         * rendering/RenderBox.cpp:
252         (WebCore::RenderBox::paintBackgroundExtended):
253         * rendering/RenderButton.cpp:
254         (WebCore::RenderButton::paintObject):
255         * rendering/RenderFileUploadControl.cpp:
256         (WebCore::RenderFileUploadControl::paintObject):
257         * rendering/RenderLayer.cpp:
258         (WebCore::RenderLayer::beginTransparencyLayers):
259         (WebCore::setClip):
260         * rendering/RenderListBox.cpp:
261         (WebCore::RenderListBox::paintObject):
262         * rendering/RenderMenuList.cpp:
263         (WebCore::RenderMenuList::paintObject):
264         * rendering/RenderTableCell.cpp:
265         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
266
267 2006-10-05  Mitz Pettel  <mitz@webkit.org>
268
269         Reviewed by Darin.
270
271         - http://bugs.webkit.org/show_bug.cgi?id=10386
272           Delete RenderImageButton.* and remove references from .vcproj and .bkl files
273
274         * CMakeLists.txt:
275         * WebCore.vcproj/WebCore/WebCore.vcproj:
276         * WebCoreSources.bkl:
277         * rendering/RenderImageButton.cpp: Removed.
278         * rendering/RenderImageButton.h: Removed.
279
280 2006-10-05  Mitz Pettel  <opendarwin.org@mitzpettel.com>
281
282         Reviewed by Darin.
283
284         - http://bugs.webkit.org/show_bug.cgi?id=11067
285           manual-tests/scrollbar-hittest2.html is invalid
286
287         * manual-tests/scrollbar-hittest2.html:
288
289 2006-10-05  David Carson  <dacarson@gmail.com>
290
291         Reviewed by Darin.
292
293         http://bugs.webkit.org/show_bug.cgi?id=11152
294         Adjust the tokenizer chunk size to be smaller for
295         mobile devices, and also decrease the yield timer
296         for the tokenizer so that it can resume earlier.
297
298         * html/HTMLTokenizer.cpp:
299         * config.h:
300
301 2006-10-05  Adam Roben  <aroben@apple.com>
302
303         Removing accidentally-checked-in do-nothing code.
304
305         * html/HTMLInputElement.cpp:
306         (WebCore::HTMLInputElement::defaultEventHandler):
307
308 2006-10-05  David Carson  <dacarson@gmail.com>
309
310         Reviewed by Mitz.
311
312         http://bugs.webkit.org/show_bug.cgi?id=11158
313         Initialize class variables
314
315         * rendering/RenderLayer.cpp:
316         (WebCore::RenderLayer::RenderLayer):
317
318 2006-10-05  Don Gibson  <dgibson77@gmail.com>
319
320         Reviewed by Darin, landed by Adam.
321
322         http://bugs.webkit.org/show_bug.cgi?id=11176
323         Fix win32 build, adapt to Maciej's ResourceLoader changes.
324
325         * platform/win/ResourceLoaderWin.cpp:
326         (WebCore::ResourceLoader::start):
327
328 2006-10-05  Marvin Decker  <marv.decker@gmail.com>
329
330         Reviewed by Darin.
331
332         http://bugs.webkit.org/show_bug.cgi?id=10989
333         Provide a way for embedders to implement BrowserExtensionWin
334
335         * WebCore.vcproj/WebCore/WebCore.vcproj:
336         * bridge/win/BrowserExtensionWin.cpp: Added.
337         (BrowserExtensionWin::BrowserExtensionWin):
338         (BrowserExtensionWin::setTypedIconURL):
339         (BrowserExtensionWin::setIconURL):
340         (BrowserExtensionWin::getHistoryLength):
341         (BrowserExtensionWin::canRunModal):
342         (BrowserExtensionWin::createNewWindow):
343         (BrowserExtensionWin::canRunModalNow):
344         (BrowserExtensionWin::runModal):
345         (BrowserExtensionWin::goBackOrForward):
346         (BrowserExtensionWin::historyURL):
347         * bridge/win/BrowserExtensionWin.h:
348         * bridge/win/FrameWin.cpp:
349         (WebCore::FrameWin::createNewWindow):
350         * bridge/win/FrameWin.h:
351         * platform/win/TemporaryLinkStubs.cpp:
352
353 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
354
355         Reviewed by Darin.
356         
357         Fixed <rdar://problem/4766987>
358         
359         - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
360         except for file names.
361         
362         - fixed RenderLayer to properly tear down scrollbars, removing them from
363         their parents.
364
365         * bindings/js/kjs_window.cpp:
366         (KJS::showModalDialog):
367         (KJS::setWindowFeature):
368         (KJS::parseWindowFeatures):
369         * bridge/BrowserExtension.h:
370         * dom/Document.cpp:
371         (WebCore::Document::setInPageCache):
372         * html/HTMLFrameElement.cpp:
373         (WebCore::HTMLFrameElement::init):
374         (WebCore::HTMLFrameElement::parseMappedAttribute):
375         * html/HTMLFrameElement.h:
376         (WebCore::HTMLFrameElement::scrollingMode):
377         * page/Frame.cpp:
378         (WebCore::Frame::finishedParsing):
379         (WebCore::Frame::scrollbarsVisible):
380         * page/FrameView.cpp:
381         (WebCore::FrameViewPrivate::FrameViewPrivate):
382         (WebCore::FrameViewPrivate::reset):
383         (WebCore::FrameView::~FrameView):
384         (WebCore::FrameView::resetScrollbars):
385         (WebCore::FrameView::clear):
386         (WebCore::FrameView::initScrollbars):
387         (WebCore::FrameView::applyOverflowToViewport):
388         (WebCore::FrameView::layout):
389         (WebCore::FrameView::handleMousePressEvent):
390         (WebCore::selectCursor):
391         (WebCore::FrameView::handleMouseMoveEvent):
392         (WebCore::FrameView::setScrollbarsMode):
393         (WebCore::FrameView::setVScrollbarMode):
394         (WebCore::FrameView::setHScrollbarMode):
395         (WebCore::FrameView::restoreScrollbar):
396         (WebCore::FrameView::dispatchMouseEvent):
397         (WebCore::FrameView::scrollbarMoved):
398         * page/FrameView.h:
399         * page/MouseEventWithHitTestResults.cpp:
400         (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
401         * page/MouseEventWithHitTestResults.h:
402         (WebCore::MouseEventWithHitTestResults::scrollbar):
403         * platform/ScrollBar.cpp:
404         (WebCore::Scrollbar::Scrollbar):
405         (WebCore::Scrollbar::setValue):
406         (WebCore::Scrollbar::setProportion):
407         (WebCore::Scrollbar::setSteps):
408         (WebCore::Scrollbar::scroll):
409         * platform/ScrollBar.h:
410         (WebCore::):
411         (WebCore::ScrollbarClient::~ScrollbarClient):
412         (WebCore::Scrollbar::~Scrollbar):
413         (WebCore::Scrollbar::orientation):
414         (WebCore::Scrollbar::controlSize):
415         (WebCore::Scrollbar::hasPlatformScrollbars):
416         (WebCore::Scrollbar::client):
417         * platform/ScrollBarMode.h:
418         (WebCore::):
419         * platform/ScrollView.h:
420         * rendering/RenderBlock.cpp:
421         (WebCore::RenderBlock::isPointInScrollbar):
422         * rendering/RenderLayer.cpp:
423         (WebCore::RenderLayer::RenderLayer):
424         (WebCore::RenderLayer::~RenderLayer):
425         (WebCore::RenderLayer::scrollToOffset):
426         (WebCore::RenderLayer::horizontaScrollbarWidget):
427         (WebCore::RenderLayer::verticalScrollbarWidget):
428         (WebCore::RenderLayer::valueChanged):
429         (WebCore::RenderLayer::createScrollbar):
430         (WebCore::RenderLayer::destroyScrollbar):
431         (WebCore::RenderLayer::setHasHorizontalScrollbar):
432         (WebCore::RenderLayer::setHasVerticalScrollbar):
433         (WebCore::RenderLayer::verticalScrollbarWidth):
434         (WebCore::RenderLayer::horizontalScrollbarHeight):
435         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
436         * rendering/RenderLayer.h:
437         (WebCore::RenderLayer::horizontalScrollbar):
438         (WebCore::RenderLayer::verticalScrollbar):
439         * rendering/RenderListBox.cpp:
440         (WebCore::RenderListBox::~RenderListBox):
441         (WebCore::RenderListBox::calcMinMaxWidth):
442         (WebCore::RenderListBox::isPointInScrollbar):
443         (WebCore::RenderListBox::optionAtPoint):
444         (WebCore::RenderListBox::valueChanged):
445         * rendering/RenderListBox.h:
446         * rendering/RenderObject.h:
447         (WebCore::RenderObject::NodeInfo::scrollbar):
448         (WebCore::RenderObject::NodeInfo::setScrollbar):
449
450 2006-10-05  Don Gibson  <dgibson77@gmail.com>
451
452         Reviewed by Adam.
453
454         http://bugs.webkit.org/show_bug.cgi?id=11138
455         Incorrect mouse event generation on Windows
456
457         * platform/win/MouseEventWin.cpp:
458         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
459         (1) Set mouse button even for non-click-related messages.
460         (2) Track clicks correctly for all buttons, not just the left button.
461
462 2006-10-05  Nikolas Zimmermann  <zimmermann@kde.org>
463
464         Reviewed and landed by ap.
465
466         Fix Qt/Linux build, adapt to Eric's quartz changes and to Maciej's ResourceLoader changes.
467
468         * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
469         (WebCore::KRenderingPaintServerLinearGradientQt::renderPath):
470         (WebCore::KRenderingPaintServerLinearGradientQt::setup):
471         (WebCore::KRenderingPaintServerRadialGradientQt::setup):
472         (WebCore::KRenderingPaintServerRadialGradientQt::renderPath):
473         * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
474         (WebCore::KRenderingPaintServerPatternQt::renderPath):
475         * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
476         (WebCore::KRenderingPaintServerQt::setPenProperties):
477         * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
478         (WebCore::KRenderingPaintServerSolidQt::setup):
479         (WebCore::KRenderingPaintServerSolidQt::renderPath):
480         * kcanvas/device/qt/RenderPathQt.cpp:
481         (WebCore::getPathStroke):
482
483 2006-10-05  Alexey Proskuryakov  <ap@nypop.com>
484
485         Reviewed by Darin.
486
487         http://bugs.webkit.org/show_bug.cgi?id=11054
488         REGRESSION: Traditional Chinese encoding in login authentication
489
490         1. Treat GB2312 encoding as GBK (its more modern superset), to match other browsers.
491         2. On the Web, GB2312 is encoded as EUC-CN or HZ, while ICU provides a native encoding
492         for encoding GB_2312-80 and several others. So, we need to override this behavior, too.
493
494         * platform/StreamingTextDecoderICU.cpp:
495         (WebCore::TextCodecICU::registerEncodingNames):
496
497 2006-10-05  Eric Seidel  <eric@eseidel.com>
498
499         Reviewed by mjs.
500
501         Removed dead code.
502         Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
503
504         * WebCore.xcodeproj/project.pbxproj:
505         * ksvg2/ecma/GlobalObject.cpp: Removed.
506         * ksvg2/ecma/GlobalObject.h: Removed.
507
508 2006-10-05  Adam Roben  <aroben@apple.com>
509
510         Reviewed by Maciej.
511
512         Small ResourceLoaderInternal tweak.
513
514         * platform/ResourceLoaderInternal.h:
515         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
516
517 2006-10-05  Eric Seidel  <eric@eseidel.com>
518
519         Reviewed by mjs.
520
521         More incremental KCanvas cleanup and optimization.
522         Added SVGRenderStyle::hasFill() and hasStroke() removed more KSVGPainterFactory methods.
523         Optimized dash array usage to not malloc.
524         Also removed un-needed KSVGRenderingStyle includes.
525
526         * kcanvas/KCanvasTreeDebug.cpp:
527         (WebCore::operator<<):
528         * kcanvas/RenderPath.cpp:
529         (WebCore::RenderPath::nodeAtPoint):
530         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
531         (WebCore::RenderPath::strokeBBox):
532         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
533         (WebCore::KRenderingPaintServerGradientQuartz::setup):
534         (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
535         (WebCore::KRenderingPaintServerGradientQuartz::teardown):
536         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
537         (WebCore::KRenderingPaintServerSolidQuartz::setup):
538         (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
539         (WebCore::KRenderingPaintServerPatternQuartz::setup):
540         (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
541         * kcanvas/device/quartz/QuartzSupport.mm:
542         (WebCore::applyStrokeStyleToContext):
543         * ksvg2/css/SVGRenderStyle.h:
544         (WebCore::SVGRenderStyle::hasStroke):
545         (WebCore::SVGRenderStyle::hasFill):
546         * ksvg2/misc/KCanvasRenderingStyle.cpp:
547         (WebCore::KSVGPainterFactory::fillPaintServer):
548         (WebCore::KSVGPainterFactory::strokePaintServer):
549         * ksvg2/misc/KCanvasRenderingStyle.h:
550
551 2006-10-05  Maciej Stachowiak  <mjs@apple.com>
552
553         Reviewed by Adam.
554
555         - changed ResourceLoader to be refcounted
556
557         It keeps a ref on itself while loading as well. This makes
558         for a much saner memory management model than the previous.
559
560         * bridge/mac/WebCoreResourceLoaderImp.mm:
561         (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
562         * dom/XMLTokenizer.cpp:
563         (WebCore::openFunc):
564         * loader/icon/IconLoader.cpp:
565         (IconLoader::IconLoader):
566         (IconLoader::~IconLoader):
567         (IconLoader::startLoading):
568         (IconLoader::stopLoading):
569         (IconLoader::receivedData):
570         * loader/icon/IconLoader.h:
571         * loader/loader.cpp:
572         (WebCore::Loader::servePendingRequests):
573         * platform/ResourceLoader.cpp:
574         (WebCore::ResourceLoader::create):
575         (WebCore::ResourceLoader::kill):
576         * platform/ResourceLoader.h:
577         * platform/ResourceLoaderInternal.h:
578         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
579         * platform/mac/ResourceLoaderMac.mm:
580         (WebCore::ResourceLoader::start):
581         * xml/XSLTProcessor.cpp:
582         (WebCore::docLoaderFunc):
583         * xml/xmlhttprequest.cpp:
584         (WebCore::XMLHttpRequest::send):
585         * xml/xmlhttprequest.h:
586
587 2006-10-05  Eric Seidel  <eric@eseidel.com>
588
589         Reviewed by mjs.
590
591         Improve SVG opacity performance by clipping to the object bbox before starting a new opacity layer.
592         http://bugs.webkit.org/show_bug.cgi?id=11163
593         
594         No SVG performance tests yet.
595
596         * kcanvas/RenderForeignObject.cpp:
597         (WebCore::RenderForeignObject::paint):
598         * kcanvas/RenderSVGContainer.cpp:
599         (WebCore::RenderSVGContainer::paint):
600         * kcanvas/RenderSVGImage.cpp:
601         (WebCore::RenderSVGImage::paint):
602         * kcanvas/RenderSVGText.cpp:
603         (WebCore::RenderSVGText::paint):
604
605 2006-10-05  Dave Hyatt  <hyatt@apple.com>
606
607         Stub out some stuff for widget focusability.
608
609         Reviewed by maciej
610  
611         * page/FrameView.cpp:
612         (WebCore::FrameView::dispatchMouseEvent):
613         * platform/ScrollView.h:
614         * platform/Widget.h:
615
616 2006-10-05  Adam Roben  <aroben@apple.com>
617
618         Reviewed by Maciej and Tim H.
619
620         Copy some WebKit frame lifetime logic into WebCore -- just a step
621         along the path to frame lifetime being handled completely in WebCore.
622
623         * bridge/mac/FrameMac.mm:
624         (WebCore::FrameMac::setView): Move platform-independent parts of this
625         method into Frame.
626         * page/Frame.cpp:
627         (WebCore::Frame::setView): Adding platform-independent parts of
628         FrameMac::setView
629         (WebCore::Frame::detachChildren): New method to accomplish what
630         -[WebFrameBridge _detachChildren] currently does.
631         (WebCore::Frame::clear): Call detachChildren
632         * page/Frame.h: Add declaration for detachChildren
633
634 2006-10-04  Alice Liu  <alice.liu@apple.com>
635
636         Reviewed by Darin.
637
638         Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
639
640         * xml/xmlhttprequest.cpp:
641         (WebCore::XMLHttpRequest::setRequestHeader):
642         removed exception set when the request is not open yet
643
644 2006-10-04  Anders Carlsson  <acarlsson@apple.com>
645
646         Reviewed by John Sullivan.
647
648         <rdar://problem/4654328>
649         Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
650         
651         * loader/PluginDocument.cpp:
652         (WebCore::PluginTokenizer::writeRawData):
653         Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
654
655 2006-10-03  Alexey Proskuryakov  <ap@nypop.com>
656
657         Reviewed by Tim H.
658
659         http://bugs.webkit.org/show_bug.cgi?id=11130
660         Convert "undefined" to AE missing value
661
662         * bridge/mac/WebCoreFrameBridge.mm:
663         (aeDescFromJSValue): return missing value for UndefinedType.
664
665 2006-10-03  Dave Hyatt  <hyatt@apple.com>
666
667         Scrolling work.  Eliminate convertTo/FromContainingWindow as cross-platform functions.  Add back in
668         the windowToContents/contentsToWindow functions.
669         
670         Reviewed by anders
671
672         * bridge/mac/FrameMac.mm:
673         (WebCore::FrameMac::eventMayStartDrag):
674         (WebCore::FrameMac::dragHysteresisExceeded):
675         (WebCore::FrameMac::mouseDown):
676         (WebCore::FrameMac::shouldDragAutoNode):
677         (WebCore::FrameMac::sendContextMenuEvent):
678         * bridge/mac/FrameViewMac.mm:
679         (WebCore::FrameView::passMousePressEventToScrollbar):
680         * bridge/mac/WebCoreFrameBridge.mm:
681         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
682         * dom/EventTargetNode.cpp:
683         (WebCore::EventTargetNode::dispatchMouseEvent):
684         (WebCore::EventTargetNode::dispatchWheelEvent):
685         * page/Frame.cpp:
686         (WebCore::Frame::selectClosestWordFromMouseEvent):
687         (WebCore::Frame::handleMousePressEventTripleClick):
688         (WebCore::Frame::handleMousePressEventSingleClick):
689         (WebCore::Frame::handleMouseMoveEvent):
690         (WebCore::Frame::handleMouseReleaseEvent):
691         * page/FrameView.cpp:
692         (WebCore::FrameView::handleMousePressEvent):
693         (WebCore::FrameView::handleMouseDoubleClickEvent):
694         (WebCore::selectCursor):
695         (WebCore::FrameView::handleMouseMoveEvent):
696         (WebCore::FrameView::handleMouseReleaseEvent):
697         (WebCore::FrameView::dispatchDragEvent):
698         (WebCore::FrameView::prepareMouseEvent):
699         (WebCore::FrameView::handleWheelEvent):
700         * page/FrameView.h:
701         * platform/ScrollBar.cpp:
702         (WebCore::ScrollBar::setValue):
703         * platform/ScrollView.h:
704         * platform/Widget.h:
705         (WebCore::Widget::scrolled):
706         * platform/mac/ScrollViewMac.mm:
707         (WebCore::ScrollView::contentsToWindow):
708         (WebCore::ScrollView::windowToContents):
709         (WebCore::ScrollView::scrollbarUnderMouse):
710         * platform/mac/WidgetMac.mm:
711         * rendering/RenderLayer.cpp:
712         (WebCore::RenderLayer::resize):
713         (WebCore::RenderLayer::positionScrollbars):
714         * rendering/RenderReplaced.cpp:
715         (WebCore::RenderReplaced::shouldPaint):
716         * rendering/RenderView.cpp:
717         * rendering/RenderView.h:
718         * rendering/RenderWidget.cpp:
719         (WebCore::RenderWidget::setWidget):
720
721 2006-09-26  David Smith  <catfish.man@gmail.com>
722
723         Reviewed by Timothy.
724
725         http://bugs.webkit.org/show_bug.cgi?id=3723
726         Add -scrollDOMRangeToVisible:
727
728         No automated tests are possible as this code path isn't reachable from JavaScript.
729
730         * bridge/mac/WebCoreFrameBridge.h:
731         * bridge/mac/WebCoreFrameBridge.mm:
732         (-[WebCoreFrameBridge scrollDOMRangeToVisible:]):
733
734 2006-10-03  Graham Dennis  <graham.dennis@gmail.com>
735
736         Reviewed by Timothy.
737
738         <http://bugs.webkit.org/show_bug.cgi?id=10338>
739         When contentEditable, cursor doesn't change to hand
740         
741         Allow the behaviour of editable links to be specified by a WebPreference
742         The preference WebKitEditableLinkBehavior has four options:
743          - AlwaysLive: Safari 2.0 behaviour
744          - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
745          - LiveWhenNotFocused: Editable links are live only when their editable block is not
746              focused, or when the shift key is pressed
747          - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
748          
749         No layout tests, just a modification of a manual-test as it isn't possible to test
750         this automatically.
751
752         * bridge/mac/WebCoreSettings.h:
753         * bridge/mac/WebCoreSettings.mm:
754         (-[WebCoreSettings setEditableLinkBehavior:]):
755         (-[WebCoreSettings editableLinkBehavior]):
756         * html/HTMLAnchorElement.cpp:
757         (WebCore::HTMLAnchorElement::HTMLAnchorElement):
758         (WebCore::HTMLAnchorElement::defaultEventHandler):
759         (WebCore::HTMLAnchorElement::setActive):
760         * html/HTMLAnchorElement.h:
761         * manual-tests/contenteditable-link.html:
762         * page/FrameView.cpp:
763         (WebCore::nodeIsNotBeingEdited):
764         (WebCore::selectCursor):
765         * page/Settings.h:
766         (WebCore::Settings::):
767         (WebCore::Settings::Settings):
768         (WebCore::Settings::editableLinkBehavior):
769         (WebCore::Settings::setEditableLinkBehavior):
770
771 2006-10-03  Beth Dakin  <bdakin@apple.com>
772
773         Reviewed Darin.
774
775         No test cases needed.
776
777         Implemented a version of StringImpl::append that takes a UChar* and 
778         a length.
779
780         * platform/StringImpl.cpp:
781         (WebCore::StringImpl::append):
782         (WebCore::StringImpl::insert): Call new append instead of making a 
783         new StringImpl.
784         * platform/StringImpl.h:
785
786 2006-10-03  MorganL  <morganl.webkit@yahoo.com>
787
788         Reviewed by Darin.
789
790         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
791         HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
792
793         * platform/win/ResourceLoaderWin.cpp:
794         (WebCore::ResourceLoader::onHandleCreated):
795
796 2006-10-02  Geoffrey Garen  <ggaren@apple.com>
797
798         Feared, loathed, reviewed by Darin.
799
800         More frame/iframe merging. Merged IFRAME::willRemove and IFRAME::detach 
801         into FRAME, plus other cleanup.
802         
803         No new behavior, so no new test. Layout tests pass. Basic browsing and
804         Mail editing seem to work.
805         
806         * dom/Node.cpp:
807         (WebCore::Node::detach): Removed random commented-out code.
808         * html/HTMLFrameElement.cpp:
809         (WebCore::HTMLFrameElement::isURLAllowed): 
810         (1) Removed reference to FrameView, to dissociate frame loading from rendering.
811         (2) Renamed newURL to completeURL because the difference between newURL
812         and URLString is that newURL is a KURL that is the complete version of URLString,
813         not that it is new.
814         (WebCore::HTMLFrameElement::willRemove): 
815         (1) Removed close() call and moved close() code into willRemove(), also removing 
816         close() call from detach(), since willRemove is the well-defined place 
817         from DOM tear-down, not detach().
818         (2) Removed manual renderer detach code because the DOM is not responsible
819         for managing the render tree. I confirmed that this change not
820         regress <rdar://problem/4132581>.
821         (3) Removed questionable ASSERT. The ASSERT assumed that iframe elements
822         lost their content frames after being removed from the DOM. That's our 
823         current behavior, but it's going to change in future rounds of refactoring.
824         This also fixes <rdar://problem/4750835>.
825         (WebCore::HTMLFrameElement::setLocation): Removed wacky manual calls to
826         attach/detach, because the render tree should not be in charge of deciding
827         when to load.
828         * html/HTMLFrameElement.h:
829         * html/HTMLIFrameElement.cpp:
830         (WebCore::HTMLIFrameElement::attach): Renamed renderPart to renderPartObject,
831         because the renderer is a renderPartObject, not a renderPart.
832         * html/HTMLIFrameElement.h:
833
834 2006-10-03  Mark Rowe  <bdash@webkit.org>
835
836         Reviewed by Mitz.
837
838         http://bugs.webkit.org/show_bug.cgi?id=11137
839         Bug 11137: GdkLauncher dies with "pure virtual method called" if
840         window is closed while page still loading
841
842         * platform/gdk/FrameGdk.cpp:
843         (WebCore::FrameGdk::~FrameGdk): Call cancelAndClear to allow virtual
844         methods to be called before the FrameGdk portion of "this" is torn down.
845
846 2006-10-03  Adam Roben  <aroben@apple.com>
847
848         Reviewed by Darin.
849
850         Handle tab key presses in the DOM.
851
852         * dom/EventTargetNode.cpp:
853         (WebCore::EventTargetNode::defaultEventHandler): Add tab key handling.
854         * page/FrameView.cpp:
855         (WebCore::FrameView::advanceFocus): Rename and reimplement
856         focusNextPrevNode. Now we just call Element::focus().
857         * page/FrameView.h: Rename focusNextPrevNode to advanceFocus and make
858         it public.
859
860 2006-10-03  Justin Garcia  <justin.garcia@apple.com>
861
862         Reviewed by mjs
863         
864         <rdar://problem/4760612>
865         TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints
866         
867         No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.
868         
869         * dom/Range.cpp:
870         (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming 
871         positions are non-null since most of it's callers would be in a bad state if the positions 
872         were null.  boundaryPointsValid, which calls compareBoundaryPoints, is an exception.  
873         Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it 
874         from entering compareBoundaryPoints and hitting the assert.
875
876 2006-10-03  Adele Peterson  <adele@apple.com>
877
878         Reviewed by Geoff.
879
880         Make code for turning off new listbox implementation mac-only, since there's no implementation on other platforms.
881
882         * html/HTMLSelectElement.cpp:
883         (WebCore::HTMLSelectElement::recalcStyle):
884         (WebCore::HTMLSelectElement::isKeyboardFocusable):
885         (WebCore::HTMLSelectElement::isMouseFocusable):
886         (WebCore::HTMLSelectElement::createRenderer):
887         (WebCore::HTMLSelectElement::setRecalcListItems):
888         (WebCore::HTMLSelectElement::notifyOptionSelected):
889         (WebCore::HTMLSelectElement::defaultEventHandler):
890
891 2006-10-04  Darin Adler  <darin@apple.com>
892
893         Reviewed by Geoff.
894
895         - fix http://bugs.webkit.org/show_bug.cgi?id=11132
896           Caret disappears when you're typing
897
898         * editing/SelectionController.cpp:
899         (WebCore::SelectionController::setSelection): Remove unnecessary call to
900         clearCaretRectIfNeeded. The recomputeCaretRect now takes care of this.
901         (WebCore::SelectionController::recomputeCaretRect): Explicitly set m_needsLayout
902         to false so we can get the old caret repaint rect. Later we need to change the
903         design so getting the rect doesn't have a side effect of causing a layout without
904         invalidation.
905
906 2006-10-03  David Harrison  <harrison@apple.com>
907
908         Reviewed by Maciej.
909
910         <rdar://problem/4671286> Candidate Window isn't displayed and only first candidate is displayed at typing location.
911
912         Updated test:
913         * fast/text/justified-text-rect.html
914
915         * bridge/mac/WebCoreFrameBridge.mm:
916         (-[WebCoreFrameBridge convertToNSRange:]):
917         (-[WebCoreFrameBridge convertToDOMRange:]):
918         Make the selection's root editable element (or the document itself) be
919         the basis for NSRange conversions. This supports "shadow DOM" like
920         that for text fields and text areas.
921         
922         * editing/CompositeEditCommand.cpp:
923         (WebCore::CompositeEditCommand::moveParagraphs):
924         Pass the document element as the scope.
925         
926         * editing/TextIterator.cpp:
927         (WebCore::TextIterator::rangeFromLocationAndLength):
928         Make the first parameter the scope.
929         
930         * editing/TextIterator.h:
931         Make the first parameter of rangeFromLocationAndLength() the scope.
932
933 2006-10-03  Nikolas Zimmermann  <zimmermann@kde.org>
934
935         Reviewed by Eric.
936
937         Fix Qt/Linux build.
938
939         * CMakeLists.txt: Add counter related files.
940
941 2006-10-03  Mark Rowe  <bdash@webkit.org>
942
943         Reviewed by Eric.
944
945         http://bugs.webkit.org/show_bug.cgi?id=10981
946         Linux/GDK build fixes
947
948         Based on a patch by Krzysztof Kowalczyk.
949
950         * WebCoreSources.bkl:
951         * platform/gdk/FrameGdk.cpp:
952         (WebCore::doScroll):
953         (WebCore::FrameGdk::handleGdkEvent):
954         * platform/gdk/PlatformScrollBar.h: Added.
955         (WebCore::PlatformScrollBar::isWidget):
956         * platform/gdk/ScrollViewGdk.cpp:
957         * platform/gdk/TemporaryLinkStubs.cpp:
958         (FrameView::passMousePressEventToScrollbar):
959         (FrameView::passMousePressEventToSubframe):
960         (FrameView::passMouseReleaseEventToSubframe):
961         (FrameView::passMouseMoveEventToSubframe):
962         (FrameView::passWheelEventToSubframe):
963         (Cursor::Cursor):
964         (Widget::invalidate):
965         (Widget::invalidateRect):
966         (ScrollView::wheelEvent):
967         (ScrollView::convertToContainingWindow):
968         (ScrollView::convertFromContainingWindow):
969         (GraphicsContext::clip):
970         (PlatformScrollBar::PlatformScrollBar):
971         (PlatformScrollBar::updateThumbPosition):
972         (PlatformScrollBar::updateThumbProportion):
973         (ScrollBar::ScrollBar):
974         (ScrollBar::setProportion):
975         (WebCore::supportedKeySizes):
976         (WebCore::signedPublicKeyAndChallengeString):
977         * platform/gdk/WheelEventGdk.cpp:
978         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
979         * platform/gdk/WidgetGdk.cpp:
980         (WebCore::Widget::convertToContainingWindow):
981         (WebCore::Widget::convertFromContainingWindow):
982
983 2006-10-02  Adam Roben  <aroben@apple.com>
984
985         Reviewed by Maciej.
986
987         Let Windows determine which mouse button is pressed.
988
989         * platform/PlatformMouseEvent.h: Add message parameter to constructor.
990         * platform/win/MouseEventWin.cpp:
991         (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
992         parameter to determine which mouse button is pressed.
993
994 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
995
996         Reviewed by anders
997         
998         Build fix
999         
1000         * editing/SelectionController.cpp:
1001         (WebCore::SelectionController::empty):
1002         * editing/SelectionController.h:
1003
1004 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
1005
1006         Reviewed by john
1007         
1008         <rdar://problem/4755287>
1009         Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
1010
1011         * editing/markup.cpp:
1012         (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced 
1013         elements).  Don't skip blocks that aren't containers (like horizontal rules).
1014
1015 2006-10-03  Darin Adler  <darin@apple.com>
1016
1017         Reviewed by Justin Garcia.
1018
1019         - correct mistaken code that would restart blinking every
1020           time "invalidateSelection" is called even if the caret
1021           has not moved
1022
1023         * editing/SelectionController.h:
1024         * editing/SelectionController.cpp:
1025         (WebCore::SelectionController::setSelection): Update for name change.
1026         (WebCore::SelectionController::recomputeCaretRect): New function.
1027         Computes caret rect and does any necessary invalidation if the rect
1028         changes.
1029         (WebCore::SelectionController::invalidateCaretRect): Renamed from
1030         needsCaretRepaint. Invalidates the caret rect unconditionally. Also
1031         calls recomputeCaretRect as a side effect.
1032
1033         * page/Frame.cpp:
1034         (WebCore::Frame::invalidateSelection): Remove unneeded call to
1035         clearCaretRectIfNeeded.
1036         (WebCore::Frame::clearCaretRectIfNeeded): Updated for name change.
1037         (WebCore::Frame::selectionLayoutChanged): Restructured to use the new
1038         recomputeCaretRect function and not restart blinking if caret has
1039         not changed position.
1040         (WebCore::Frame::caretBlinkTimerFired): Removed some checks that
1041         are not needed since selectionLayoutChanged already checks these.
1042
1043         * page/FramePrivate.h: Removed unused m_blinkCaret.
1044
1045 2006-10-02  Beth Dakin  <bdakin@apple.com>
1046
1047         Reviewed by Adam.
1048
1049         Build fix. Add counters to vcproj.
1050
1051         * WebCore.vcproj/WebCore/WebCore.vcproj:
1052
1053 2006-10-02  Brady Eidson  <beidson@apple.com>
1054
1055         Reviewed by Adele
1056
1057         If the Icon DB schema changes underneath you, the latest ToT can crash and burn when writing
1058         icon data out because we don't correctly check SQL error conditions.
1059
1060         * loader/icon/IconDataCache.cpp:
1061         (WebCore::IconDataCache::writeToDatabase):
1062
1063 2006-10-02  Steve Falkenburg  <sfalken@apple.com>
1064
1065         Reviewed by Hyatt.
1066
1067         Added method to find out whether a layout has occurred.
1068
1069         * page/FrameView.cpp:
1070         (WebCore::FrameView::didFirstLayout):
1071         * page/FrameView.h:
1072
1073 2006-10-02  Beth Dakin  <bdakin@apple.com>
1074
1075         Reviewed by Darin.
1076
1077         Initial implementation of CSS2 counters. See http://
1078         bugs.webkit.org/show_bug.cgi?id=4980 for more details.
1079
1080         * WebCore.xcodeproj/project.pbxproj:
1081         * css/CSSComputedStyleDeclaration.cpp: 
1082         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return 
1083         the increment/reset list now that this is implemented.
1084         * css/CSSPrimitiveValue.cpp:
1085         (WebCore::CSSPrimitiveValue::cssText): 
1086         * css/Counter.h:
1087         (WebCore::Counter::Counter):
1088         (WebCore::Counter::~Counter):
1089         (WebCore::Counter::identifier):
1090         (WebCore::Counter::listStyle):
1091         (WebCore::Counter::separator):
1092         (WebCore::Counter::listStyleNumber):
1093         (WebCore::Counter::setIdentifier):
1094         (WebCore::Counter::setListStyle):
1095         (WebCore::Counter::setSeparator):
1096         * css/cssparser.cpp:
1097         (WebCore::CSSParser::addProperty): Take care of reset/increment
1098         (WebCore::CSSParser::parseValue):
1099         (WebCore::CSSParser::parseContent): content can now take counters
1100         (WebCore::CSSParser::parseCounterContent): Parse counter() and 
1101         counters()
1102         (WebCore::CSSParser::parseCounter): Parse counter-reset and 
1103         counter-increment
1104         * css/cssparser.h:
1105         * css/cssstyleselector.cpp:
1106         (WebCore::CSSStyleSelector::matchUARules):
1107         (WebCore::CSSStyleSelector::applyProperty):
1108         * platform/PlatformString.h:
1109         * platform/String.cpp:
1110         (WebCore::String::insert): Implemented a version of insert that 
1111         accepts a UChar* and a length.
1112         * platform/StringImpl.cpp:
1113         (WebCore::StringImpl::insert): Same as above.
1114         * platform/StringImpl.h:
1115         * rendering/CounterListItem.h: Added.
1116         * rendering/CounterNode.cpp: Added.
1117         (WebCore::CounterNode::CounterNode):
1118         (WebCore::CounterNode::insertAfter):
1119         (WebCore::CounterNode::removeChild):
1120         (WebCore::CounterNode::remove):
1121         (WebCore::CounterNode::setUsesSeparator):
1122         (WebCore::CounterNode::recountAndGetNext):
1123         (WebCore::CounterNode::recountTree):
1124         (WebCore::CounterNode::setSelfDirty):
1125         (WebCore::CounterNode::setParentDirty):
1126         * rendering/CounterNode.h: Added.
1127         (WebCore::CounterNode::~CounterNode):
1128         (WebCore::CounterNode::parent):
1129         (WebCore::CounterNode::previousSibling):
1130         (WebCore::CounterNode::nextSibling):
1131         (WebCore::CounterNode::firstChild):
1132         (WebCore::CounterNode::lastChild):
1133         (WebCore::CounterNode::value):
1134         (WebCore::CounterNode::setValue):
1135         (WebCore::CounterNode::count):
1136         (WebCore::CounterNode::setCount):
1137         (WebCore::CounterNode::setHasSeparator):
1138         (WebCore::CounterNode::isReset):
1139         (WebCore::CounterNode::hasSeparator):
1140         (WebCore::CounterNode::willNeedLayout):
1141         (WebCore::CounterNode::setWillNeedLayout):
1142         (WebCore::CounterNode::isRoot):
1143         (WebCore::CounterNode::setRenderer):
1144         (WebCore::CounterNode::renderer):
1145         * rendering/CounterResetNode.cpp: Added.
1146         (WebCore::CounterResetNode::CounterResetNode):
1147         (WebCore::CounterResetNode::insertAfter):
1148         (WebCore::CounterResetNode::removeChild):
1149         (WebCore::CounterResetNode::recountAndGetNext):
1150         (WebCore::CounterResetNode::setParentDirty):
1151         (WebCore::CounterResetNode::updateTotal):
1152         * rendering/CounterResetNode.h: Added.
1153         (WebCore::CounterResetNode::firstChild):
1154         (WebCore::CounterResetNode::lastChild):
1155         (WebCore::CounterResetNode::isReset):
1156         (WebCore::CounterResetNode::total):
1157         * rendering/RenderContainer.cpp:
1158         (WebCore::RenderContainer::updatePseudoChildForObject): Account for 
1159         counter content.
1160         * rendering/RenderCounter.cpp: Added.
1161         (WebCore::RenderCounter::RenderCounter):
1162         (WebCore::RenderCounter::layout):
1163         (WebCore::toRoman):
1164         (WebCore::toLetterString):
1165         (WebCore::toHebrew):
1166         (WebCore::RenderCounter::convertValueToType):
1167         (WebCore::RenderCounter::calcMinMaxWidth):
1168         * rendering/RenderCounter.h: Added.
1169         (WebCore::RenderCounter::renderName):
1170         (WebCore::RenderCounter::isCounter):
1171         * rendering/RenderObject.cpp:
1172         (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to 
1173         maps of CounterNodes
1174         (WebCore::RenderObject::RenderObject):
1175         (WebCore::RenderObject::destroy): Destroy the maps.
1176         (WebCore::RenderObject::findCounter): Finds/creates counters.
1177         * rendering/RenderObject.h:
1178         (WebCore::RenderObject::isCounter):
1179         * rendering/RenderStyle.cpp:
1180         (WebCore::StyleVisualData::StyleVisualData):
1181         (WebCore::RenderStyle::arenaDelete):
1182         (WebCore::RenderStyle::RenderStyle):
1183         (WebCore::RenderStyle::diff):
1184         (WebCore::RenderStyle::setContent):
1185         (WebCore::ContentData::clearContent):
1186         (WebCore::RenderStyle::counterDataEquivalent):
1187         (WebCore::hasCounter):
1188         (WebCore::RenderStyle::hasCounterReset):
1189         (WebCore::RenderStyle::hasCounterIncrement):
1190         (WebCore::readCounter):
1191         (WebCore::RenderStyle::counterReset):
1192         (WebCore::RenderStyle::counterIncrement):
1193         * rendering/RenderStyle.h:
1194         (WebCore::StyleVisualData::operator==):
1195         (WebCore::CounterData::CounterData):
1196         (WebCore::CounterData::identifier):
1197         (WebCore::CounterData::listStyle):
1198         (WebCore::CounterData::separator):
1199         (WebCore::ContentData::contentCounter):
1200         (WebCore::ContentData::):
1201         (WebCore::RenderStyle::counterIncrement):
1202         (WebCore::RenderStyle::counterReset):
1203         (WebCore::RenderStyle::setCounterIncrement):
1204         (WebCore::RenderStyle::setCounterReset):
1205         (WebCore::RenderStyle::setCounterResetList):
1206         (WebCore::RenderStyle::setCounterIncrementList):
1207         (WebCore::RenderStyle::counterResetValueList):
1208         (WebCore::RenderStyle::counterIncrementValueList):
1209
1210 2006-10-02  Adele Peterson  <adele@apple.com>
1211
1212         Reviewed by Adam.
1213
1214         - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
1215
1216         There are a few outstanding issues, so I've left the old code in for now.  So you can use the old-style listboxes
1217         by using "-webkit-appearance:none".
1218
1219         * css/html4.css:
1220
1221 2006-10-02  David Harrison  <harrison@apple.com>
1222
1223         Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
1224         addressed at a deeper level by r16696, the patch for <http://bugs.webkit.org/show_bug.cgi?id=10842>.
1225         Left the layout test.
1226         
1227         * rendering/bidi.cpp:
1228         (WebCore::checkMidpoints):
1229
1230 2006-10-02  Nikolas Zimmermann  <zimmermann@kde.org>
1231
1232         Reviewed by eseidel.  Landed by eseidel.
1233
1234         Fix Qt/Linux build.
1235
1236         * platform/qt/TemporaryLinkStubs.cpp: s/DeprecatedStringList/Vector<String>/
1237         (WebCore::supportedKeySizes):
1238
1239 2006-10-02  Nikolas Zimmermann <zimmermann@kde.org>
1240
1241         Reviewed by eseidel & mjs.  Landed by eseidel.
1242
1243         Fix Qt/Linux build with older gcc 3.3.4.
1244         http://bugs.webkit.org/show_bug.cgi?id=11116
1245
1246         As discussed with Maciej, the GCC_ROOT_NS_HACK
1247         can be completely removed, as well as the friendship
1248         between cacheGlobalObject & the JS* objects.
1249
1250         * bindings/scripts/CodeGeneratorJS.pm: Remove friendship.
1251         * platform/image-decoders/png/pnggccrd.c: Fix comments for gcc3.
1252         (png_read_filter_row_mmx_avg):
1253         * platform/image-decoders/png/pngvcrd.c: Ditto.
1254         (png_mmx_support):
1255         (png_read_filter_row_mmx_avg):
1256
1257 2006-10-01  Maciej Stachowiak  <mjs@apple.com>
1258
1259         Rubber stamped by Alexey.
1260
1261         - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=10893 since it led to layout test crashes
1262
1263         * css/CSSGrammar.y:
1264
1265 2006-10-01  Eric Seidel  <eric@webkit.org>
1266
1267         Reviewed by mjs.
1268
1269         Eliminate a few more hotspots in SVG drawing code.
1270         
1271         No test cases were harmed in the making of this patch.  (And SVG has no perf tests.)
1272
1273         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1274         (WebCore::KRenderingPaintServerSolidQuartz::setup): use a single shared colorspace, avoid a few mallocs
1275         * platform/mac/ColorMac.mm:
1276         (+[WebCoreControlTintObserver WebCore]): store a single shared colorspace instance
1277
1278 2006-10-01  Geoffrey Garen  <ggaren@apple.com>
1279
1280         Reviewed by Maciej.
1281         
1282         More frame/iframe merging.
1283         
1284         - Removed needWidgetUpdate and related code. needWidgetUpdate is always
1285         false, so this was dead code.
1286         - Removed FIXME about setInViewSourceMode inside openURL(). openURL(), rather
1287         than attach(), is the correct place for setInViewSourceMode, because
1288         openURL() is the function that creates our frame.
1289         - Moved IFRAME insertedIntoDocument() code into FRAME, and removed FRAME
1290         code that did the same thing in other places.
1291         - Made FRAME's attach() method suffuciently generic so that IFRAME could
1292         call up to it, rather than skipping its superclass and calling up directly 
1293         to ELEMENT.
1294         - Changed a few IFRAME up-calls to ELEMENT into up-calls to FRAME.
1295         - Replaced ad hoc frame loading code in FRAME::attach() with call to
1296         openURL(), the designated frame loading function.
1297
1298         Layout tests pass. I added a layout test for viewsource mode, since I
1299         broke it in the course of writing this patch.
1300
1301 2006-10-01  Anders Carlsson  <acarlsson@apple.com>
1302
1303         Reviewed by Geoff.
1304
1305         * dom/Document.cpp:
1306         (WebCore::Document::recalcStyleSelector):
1307         * dom/Document.h:
1308         Get rid of availableStyleSheets() and remove DeprecatedStringList.h include.
1309         
1310         * dom/Node.h:
1311         Remove DeprecatedStringList class forward declaration.
1312         
1313         * editing/markup.cpp:
1314         Include DeprecatedStringList.h here since it's not included by Document.h anymore.
1315         
1316         * kcanvas/KCanvasTreeDebug.cpp:
1317         * kcanvas/KCanvasTreeDebug.h:
1318         Remove unused functions.
1319         
1320         * loader/loader.cpp:
1321         * page/Frame.cpp:
1322         * page/Frame.h:
1323         * page/FrameView.h:
1324         Fixup DeprecatedStringList.h includes.
1325
1326 2006-09-30  David Harrison  <harrison@apple.com>
1327
1328         Reviewed by John Sullivan.
1329
1330         <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point
1331
1332         Problem was that the decision to trim was based only on whether the character
1333         is a soft hyphen, which caused pretty much any Japanese character to go.
1334         Changed to decide based on whether the character is ignorable whitespace.
1335         
1336         Test:
1337         * fast/text/international/wrap-CJK-001.html
1338
1339         * rendering/bidi.cpp:
1340         (WebCore::isTrimmableChar):
1341         New. Checks whether character is whitespace that can be ignored
1342         according to the text node's style.
1343         trimmed from the end of wrapped line.
1344         (WebCore::checkMidpoints):
1345         Call isTrimmable() rather than checking for char != SOFT_HYPHEN.
1346
1347 2006-10-01  Anders Carlsson  <acarlsson@apple.com>
1348
1349         Reviewed by Mitz Pettel.
1350
1351         Convert the SVG code to use Vector<String> instead of DeprecatedStringList.
1352
1353         * ksvg2/svg/SVGColor.cpp:
1354         (WebCore::SVGColor::setRGBColor):
1355         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1356         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1357         (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
1358         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1359         (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
1360         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1361         (SVGFESpecularLightingElement::parseMappedAttribute):
1362         * ksvg2/svg/SVGFETurbulenceElement.cpp:
1363         (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
1364         * ksvg2/svg/SVGLengthList.cpp:
1365         * ksvg2/svg/SVGNumberList.cpp:
1366         (SVGNumberList::parse):
1367         * ksvg2/svg/SVGNumberList.h:
1368         * ksvg2/svg/SVGPreserveAspectRatio.cpp:
1369         (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
1370         * ksvg2/svg/SVGStringList.cpp:
1371         (WebCore::SVGStringList::reset):
1372         * ksvg2/svg/SVGStringList.h:
1373         * ksvg2/svg/SVGTransformable.cpp:
1374         (SVGTransformable::parseTransformAttribute):
1375
1376 2006-10-01  Nikolas Zimmermann  <zimmermann@kde.org>
1377
1378         Reviewed by Eric, tweaked and landed by ap.
1379
1380         Fix Qt/Linux build.
1381
1382         * CMakeLists.txt:
1383         * platform/qt/PlatformScrollBar.h:
1384         * platform/qt/TemporaryLinkStubs.cpp:
1385         (WebCore::ScrollBar::ScrollBar):
1386         (WebCore::PlatformScrollBar::PlatformScrollBar):
1387         (FrameView::passMousePressEventToSubframe):
1388         (FrameView::passMouseMoveEventToSubframe):
1389         (FrameView::passMouseReleaseEventToSubframe):
1390         (FrameView::passWheelEventToSubframe):
1391         (FrameView::passMousePressEventToScrollbar):
1392         * ksvg2/svg/SVGDocument.h:
1393
1394 2006-10-01  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1395
1396         Reviewed by Darin.
1397
1398         Fix for http://bugs.webkit.org/show_bug.cgi?id=10190
1399         REGRESSION: Repro crash when navigating away from an image document that hasn't finished loading
1400
1401         No test case added (probably requires new DumpRenderTree functionality)
1402
1403         * rendering/RenderImage.cpp:
1404         (WebCore::RenderImage::imageChanged): Added early return if the document is
1405         being destroyed.
1406
1407 2006-10-01  Graham Dennis  <graham.dennis@gmail.com>
1408
1409         Reviewed by Hyatt.
1410
1411         Fix for http://bugs.webkit.org/show_bug.cgi?id=10842
1412         REGRESSION (r15418): contenteditable div truncates rightmost Japanese character
1413         
1414         Make sure we only break after a space (and not any other valid line-break) if
1415         the style is -webkit-line-break: after-white-space (e.g. for a contentEditable div).
1416         I also did a logic shuffle at Mitz's request to prevent doing an if on the same expression
1417         twice in quick succession.
1418
1419         * rendering/bidi.cpp:
1420         (WebCore::RenderBlock::findNextLineBreak): 
1421
1422 2006-10-01  Alexey Proskuryakov  <ap@nypop.com>
1423
1424         Reviewed by Maciej and Darin.
1425
1426         http://bugs.webkit.org/show_bug.cgi?id=4372
1427         JavaScript document.write page form does not submit in Safari
1428
1429         Test: fast/forms/document-write.html
1430
1431         * page/Frame.cpp:
1432         (WebCore::Frame::submitForm): Don't check for parsing().
1433
1434 2006-10-01  Alexey Proskuryakov  <ap@nypop.com>
1435
1436         Build fix.
1437
1438         * bridge/mac/FrameViewMac.mm: Add missing #imports.
1439
1440 2006-10-01  Dave Hyatt  <hyatt@apple.com>
1441
1442         Refactor the code that passes mouse presses to the Mac scrollbar and make it cross-platform.
1443        
1444         Reviewed by mitz
1445
1446         * bridge/mac/FrameMac.mm:
1447         (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
1448         * bridge/mac/FrameViewMac.mm:
1449         (WebCore::FrameView::passMousePressEventToScrollbar):
1450         * page/FrameView.cpp:
1451         (WebCore::FrameView::handleMousePressEvent):
1452         (WebCore::FrameView::setMousePressed):
1453         * page/FrameView.h:
1454         * platform/win/TemporaryLinkStubs.cpp:
1455         (FrameView::passMousePressEventToScrollbar):
1456
1457 2006-09-30  Sam Weinig  <sam.weinig@gmail.com>
1458
1459         Reviewed by Darin.
1460
1461         Patch for http://bugs.webkit.org/show_bug.cgi?id=11102
1462         Add more SVG Objective-C DOM bindings
1463
1464         - Auto-generate Objective-C DOM bindings for DOMSVGAElement,
1465           DOMSVGAnimateColorElement, DOMSVGAnimateElement, DOMSVGAnimateTransformElement,
1466           DOMSVGAnimatedPathData, DOMSVGAnimatedPoints, DOMSVGAnimatedPreserveAspectRatio,
1467           DOMSVGAnimationElement, DOMSVGCircleElement, DOMSVGClipPathElement, DOMSVGColor,
1468           DOMSVGCursorElement, DOMSVGDefsElement, DOMSVGDescElement, DOMSVGDocument, 
1469           DOMSVGEllipseElement, DOMSVGPreserveAspectRatio, and DOMSVGURIReference.
1470
1471         * DerivedSources.make:
1472         * WebCore.xcodeproj/project.pbxproj:
1473         * bindings/objc/DOMInternal.h:
1474         * bindings/objc/DOMSVG.h:
1475         * bindings/scripts/CodeGeneratorObjC.pm:
1476         * ksvg2/svg/SVGAElement.idl:
1477         * ksvg2/svg/SVGAnimateColorElement.idl:
1478         * ksvg2/svg/SVGAnimateElement.idl:
1479         * ksvg2/svg/SVGAnimateTransformElement.idl:
1480         * ksvg2/svg/SVGAnimatedPathData.idl:
1481         * ksvg2/svg/SVGAnimatedPoints.idl:
1482         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl:
1483         * ksvg2/svg/SVGAnimationElement.idl:
1484         * ksvg2/svg/SVGCircleElement.idl:
1485         * ksvg2/svg/SVGClipPathElement.idl:
1486         * ksvg2/svg/SVGColor.idl:
1487         * ksvg2/svg/SVGCursorElement.idl:
1488         * ksvg2/svg/SVGDefsElement.idl:
1489         * ksvg2/svg/SVGDescElement.idl:
1490         * ksvg2/svg/SVGDocument.idl:
1491         * ksvg2/svg/SVGEllipseElement.idl:
1492         * ksvg2/svg/SVGPointList.idl:
1493         * ksvg2/svg/SVGPreserveAspectRatio.idl:
1494         * ksvg2/svg/SVGRect.idl:
1495         * ksvg2/svg/SVGSVGElement.idl:
1496
1497 2006-09-30  Maciej Stachowiak  <mjs@apple.com>
1498
1499         Reviewed by Adele.
1500
1501         - fix build
1502
1503         * platform/FloatRect.h:
1504         (WebCore::FloatRect::contains): Added; not exactly the same semantic as IntRect containment
1505         but more appropriate for path-type stuff.
1506         * platform/cg/PathCG.cpp:
1507         (WebCore::Path::contains): Don't use enclosingIntRect, just use FloatRect::contains.
1508
1509 2006-09-30  Alexey Proskuryakov  <ap@nypop.com>
1510
1511         Reviewed by Darin.
1512
1513         http://bugs.webkit.org/show_bug.cgi?id=11011
1514         External CSS is parsed as iso-8859-1 even though the main document is utf-8
1515
1516         Test: fast/encoding/css-charset-default.xhtml
1517
1518         * loader/CachedResourceClient.h:
1519         (WebCore::CachedResourceClient::setCSSStyleSheet):
1520         (WebCore::CachedResourceClient::setXSLStyleSheet):
1521         Divided setStyleSheet into setCSSStyleSheet and setXSLStyleSheet. The former
1522         takes an additional charset parameter, to be passed to CSSStyleSheet constructor.
1523
1524         * css/CSSImportRule.cpp:
1525         (WebCore::CSSImportRule::setCSSStyleSheet):
1526         (WebCore::CSSImportRule::insertedIntoParent): Default to parent stylesheet's charset.
1527         * css/CSSImportRule.h:
1528
1529         * css/CSSStyleSheet.cpp:
1530         (WebCore::CSSStyleSheet::CSSStyleSheet):
1531         * css/CSSStyleSheet.h:
1532         Added an m_charset member to be used when loading child stylesheets. Removed an unused m_implicit
1533         member. Changed some String parameters to const String&.
1534
1535         * css/StyleSheet.cpp:
1536         (WebCore::StyleSheet::StyleSheet):
1537         * css/StyleSheet.h:
1538         Changed some String parameters to const String&. Removed an unused (even unimplemented) constructor.
1539
1540         * css/StyleSheetList.cpp:
1541         (WebCore::StyleSheetList::length):
1542         (WebCore::StyleSheetList::item):
1543         * css/StyleSheetList.h:
1544         Special-casing implicit stylesheets seemed to be dead code, removed.
1545
1546         * dom/Document.cpp:
1547         (WebCore::Document::setCSSStyleSheet):
1548         (WebCore::Document::recalcStyleSelector):
1549         * dom/Document.h:
1550         Renamed setStyleSheet() to setCSSStyleSheet().
1551
1552         * dom/ProcessingInstruction.cpp:
1553         (WebCore::ProcessingInstruction::checkStyleSheet): Pass a correct charset to requestCSSStyleSheet().
1554         (WebCore::ProcessingInstruction::setCSSStyleSheet):
1555         (WebCore::ProcessingInstruction::setXSLStyleSheet):
1556         (WebCore::ProcessingInstruction::parseStyleSheet):
1557         * dom/ProcessingInstruction.h:
1558
1559         * html/HTMLLinkElement.cpp:
1560         (WebCore::HTMLLinkElement::process): Default to document encoding if a charset attribute 
1561         is not specified.
1562         (WebCore::HTMLLinkElement::setCSSStyleSheet):
1563         * html/HTMLLinkElement.h:
1564
1565         * html/HTMLStyleElement.cpp:
1566         (WebCore::HTMLStyleElement::childrenChanged):
1567         * ksvg2/svg/SVGStyleElement.cpp:
1568         (WebCore::SVGStyleElement::childrenChanged):
1569         Inherit URL and charset from the document.
1570
1571         * loader/Cache.cpp:
1572         (WebCore::Cache::requestCSSStyleSheet):
1573         * loader/Cache.h:
1574         Adjust for setStyleSheet() renaming.
1575
1576         * loader/CachedCSSStyleSheet.h: Removed an unused constructor.
1577         * loader/CachedCSSStyleSheet.cpp:
1578         (WebCore::CachedCSSStyleSheet::ref):
1579         (WebCore::CachedCSSStyleSheet::deref):
1580         (WebCore::CachedCSSStyleSheet::checkNotify):
1581         Pass the encoding to setCSSStyleSheet().
1582
1583         * loader/CachedXSLStyleSheet.cpp:
1584         (WebCore::CachedXSLStyleSheet::ref):
1585         (WebCore::CachedXSLStyleSheet::checkNotify):
1586         * loader/DocLoader.cpp:
1587         (WebCore::DocLoader::requestCSSStyleSheet):
1588         * loader/DocLoader.h:
1589         * page/Frame.cpp:
1590         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
1591         (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
1592         * xml/XSLImportRule.cpp:
1593         (WebCore::XSLImportRule::setXSLStyleSheet):
1594         (WebCore::XSLImportRule::loadSheet):
1595         * xml/XSLImportRule.h:
1596         Adjust for setStyleSheet() renaming.
1597
1598 2006-09-30  Rob Buis  <buis@kde.org>
1599
1600         Reviewed by eseidel.
1601
1602         http://bugs.webkit.org/show_bug.cgi?id=11096
1603         Hit testing for polylines fails
1604
1605         Fix Path::contains so it handles filled, non-closed paths too.
1606
1607         * platform/cg/PathCG.cpp:
1608         (WebCore::Path::contains):
1609
1610 2006-09-30  Dave Hyatt  <hyatt@apple.com>
1611
1612         Refactor subframe event handling to hide more of the Mac-specific logic from the cross-platform code.
1613         Stub out a capturing API that mimics the way Web browsers capture events and route them to specific
1614         subframes while the mouse is down.
1615       
1616         Reviewed by mitzpettel
1617
1618         * bridge/mac/FrameMac.h:
1619         * bridge/mac/FrameMac.mm:
1620         (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
1621         (WebCore::FrameMac::passWheelEventToWidget):
1622         * bridge/mac/FrameViewMac.mm:
1623         (WebCore::FrameView::passMousePressEventToSubframe):
1624         (WebCore::FrameView::passMouseMoveEventToSubframe):
1625         (WebCore::FrameView::passMouseReleaseEventToSubframe):
1626         (WebCore::FrameView::passWheelEventToSubframe):
1627         * page/Frame.cpp:
1628         * page/Frame.h:
1629         * page/FrameView.cpp:
1630         (WebCore::subframeForTargetNode):
1631         (WebCore::FrameView::handleMousePressEvent):
1632         (WebCore::FrameView::handleMouseDoubleClickEvent):
1633         (WebCore::FrameView::handleMouseMoveEvent):
1634         (WebCore::FrameView::handleMouseReleaseEvent):
1635         (WebCore::FrameView::handleWheelEvent):
1636         * page/FrameView.h:
1637         * platform/ScrollBar.h:
1638         (WebCore::ScrollBar::handleMouseMoveEvent):
1639         (WebCore::ScrollBar::handleMouseOutEvent):
1640         * platform/Widget.h:
1641         (WebCore::Widget::handleMouseMoveEvent):
1642         (WebCore::Widget::handleMouseReleaseEvent):
1643         * platform/win/TemporaryLinkStubs.cpp:
1644         (FrameView::passMousePressEventToSubframe):
1645         (FrameView::passMouseMoveEventToSubframe):
1646         (FrameView::passMouseReleaseEventToSubframe):
1647         (FrameView::passWheelEventToSubframe):
1648         (Widget::capturingMouse):
1649         (Widget::setCapturingMouse):
1650         (Widget::capturingTarget):
1651         (Widget::capturingChild):
1652         (Widget::setCapturingChild):
1653         * rendering/RenderView.cpp:
1654         (WebCore::RenderView::paintBoxDecorations):
1655
1656 2006-09-29  MorganL  <morganl.webkit@yahoo.com>
1657
1658         Reviewed by Adele.
1659
1660         Fixes windows bustage:
1661         http://bugs.webkit.org/show_bug.cgi?id=11093
1662
1663         * platform/win/PlatformScrollBar.h:
1664         * platform/win/TemporaryLinkStubs.cpp:
1665         (PlatformScrollBar::PlatformScrollBar):
1666         (ScrollBar::ScrollBar):
1667
1668 2006-09-29  David Hyatt  <hyatt@apple.com>
1669
1670         Eliminate RenderLayer::gScrollBar in favor of caching the scrollbar hit
1671         in RenderObject::NodeInfo (and then propagating that Widget to
1672         MouseEventWithHitTestResults).
1673
1674         This allows RenderListBox and RenderBlock to do the same thing when the
1675         mouse is over the scrollbar.
1676
1677         Also land fix to support font-size: 0.
1678
1679         Reviewed by mjs (scrollbar), eric (font-size)
1680
1681         * dom/Document.cpp:
1682         (WebCore::Document::prepareMouseEvent):
1683         * page/Frame.cpp:
1684         (WebCore::Frame::passWidgetMouseDownEventToWidget):
1685         * page/FrameView.cpp:
1686         (WebCore::selectCursor):
1687         (WebCore::FrameView::handleMouseMoveEvent):
1688         (WebCore::FrameView::dispatchMouseEvent):
1689         * page/MouseEventWithHitTestResults.cpp:
1690         (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
1691         * page/MouseEventWithHitTestResults.h:
1692         (WebCore::MouseEventWithHitTestResults::scrollbar):
1693         * rendering/RenderBlock.cpp:
1694         (WebCore::RenderBlock::isPointInScrollbar):
1695         (WebCore::RenderBlock::nodeAtPoint):
1696         * rendering/RenderBlock.h:
1697         * rendering/RenderLayer.cpp:
1698         (WebCore::RenderLayer::hitTest):
1699         * rendering/RenderLayer.h:
1700         (WebCore::RenderLayer::getHiddenBehavior):
1701         * rendering/RenderListBox.cpp:
1702         (WebCore::RenderListBox::RenderListBox):
1703         (WebCore::RenderListBox::~RenderListBox):
1704         (WebCore::RenderListBox::isPointInScrollbar):
1705         * rendering/RenderListBox.h:
1706         * rendering/RenderObject.h:
1707         (WebCore::RenderObject::NodeInfo::NodeInfo):
1708         (WebCore::RenderObject::NodeInfo::scrollbar):
1709         (WebCore::RenderObject::NodeInfo::setScrollbar):
1710
1711 2006-09-29  MorganL  <morganl.webkit@yahoo.com>
1712
1713         Reviewed by Adele.
1714
1715         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
1716
1717         * platform/win/ScrollViewWin.cpp:
1718         (WebCore::ScrollView::convertToContainingWindow):
1719         (WebCore::ScrollView::convertFromContainingWindow):
1720         * platform/win/WidgetWin.cpp:
1721         (WebCore::Widget::convertToContainingWindow):
1722         (WebCore::Widget::convertFromContainingWindow):
1723
1724 2006-09-29  Adele Peterson  <adele@apple.com>
1725
1726         Updated with new argument for PlatformScrollBar.
1727
1728         * platform/win/TemporaryLinkStubs.cpp:
1729         (PlatformScrollBar::PlatformScrollBar):
1730
1731 2006-09-29  Adele Peterson  <adele@apple.com>
1732
1733         Reviewed by Hyatt.
1734
1735         Fixing build bustage with cast to int.
1736
1737         * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::lastSelectedListIndex):
1738
1739 2006-09-29  Adele Peterson  <adele@apple.com>
1740
1741         Fixing accidental include.
1742
1743         * rendering/RenderListBox.cpp:
1744
1745 2006-09-29  Adele Peterson  <adele@apple.com>
1746
1747         Adding RenderListBox files.
1748
1749         * WebCore.vcproj/WebCore/WebCore.vcproj:
1750
1751 2006-09-29  Adele Peterson  <adele@apple.com>
1752
1753         Reviewed by Adam.
1754
1755         Initial implementation of engine-based list box control.
1756
1757         * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
1758
1759         * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
1760         * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
1761         (WebCore::FrameMac::FrameMac):
1762         (WebCore::FrameMac::handleMousePressEvent):
1763         (WebCore::FrameMac::handleMouseMoveEvent):
1764         (WebCore::FrameMac::mouseDown):
1765
1766         * page/Frame.cpp:
1767         (WebCore::Frame::handleMouseMoveEvent):
1768         (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
1769         (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
1770         (WebCore::Frame::autoscrollTimerFired): ditto.
1771         (WebCore::Frame::stopAutoscrollTimer): ditto.
1772         (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
1773         * page/Frame.h:
1774         * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
1775
1776         * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
1777         (WebCore::FrameViewPrivate::reset):
1778         (WebCore::FrameView::currentMousePosition):
1779         (WebCore::FrameView::handleMousePressEvent):
1780         (WebCore::FrameView::handleMouseDoubleClickEvent):
1781         (WebCore::selectCursor):
1782         (WebCore::FrameView::handleMouseMoveEvent):
1783         (WebCore::FrameView::handleMouseReleaseEvent):
1784         * page/FrameView.h:
1785
1786         * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument.  The list box will use a smaller scroll bar size.
1787         * platform/ScrollBar.h:
1788         (WebCore::):
1789         (WebCore::ScrollBar::controlSize):
1790         * platform/mac/PlatformScrollBar.h:
1791         * platform/mac/PlatformScrollBarMac.mm:
1792         (NSControlSizeForScrollBarControlSize):
1793         (-[WebCoreScrollBar initWithPlatformScrollBar:]):
1794         (WebCore::PlatformScrollBar::PlatformScrollBar):
1795
1796         * rendering/RenderBlock.h:
1797         * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
1798         * rendering/RenderLayer.h:
1799         * rendering/RenderObject.cpp:
1800         (WebCore::RenderObject::shouldAutoscroll):
1801         (WebCore::RenderObject::autoscroll):
1802         * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
1803
1804         * css/html4.css: Added properties for new list boxes.
1805
1806         * html/HTMLOptionElement.cpp:
1807         (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
1808         (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
1809         * html/HTMLOptionElement.h: Added disabled method.
1810
1811         * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
1812         (WebCore::HTMLSelectElement::recalcStyle):
1813         (WebCore::HTMLSelectElement::lastSelectedListIndex):
1814         (WebCore::HTMLSelectElement::deselectItems):
1815         (WebCore::HTMLSelectElement::setSelectedIndex):
1816         (WebCore::HTMLSelectElement::isKeyboardFocusable):
1817         (WebCore::HTMLSelectElement::isMouseFocusable):
1818         (WebCore::HTMLSelectElement::createRenderer):
1819         (WebCore::HTMLSelectElement::recalcListItems):
1820         (WebCore::HTMLSelectElement::setRecalcListItems):
1821         (WebCore::HTMLSelectElement::reset):
1822         (WebCore::HTMLSelectElement::notifyOptionSelected):
1823         (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
1824         (WebCore::HTMLSelectElement::nextSelectableListIndex):
1825         (WebCore::HTMLSelectElement::previousSelectableListIndex):
1826         * html/HTMLSelectElement.h:
1827
1828         * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
1829         (WebCore::RenderTheme::paint):
1830         (WebCore::RenderTheme::paintBorderOnly):
1831         (WebCore::RenderTheme::paintDecorations):
1832         (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
1833         (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
1834         (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
1835         (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
1836         (WebCore::RenderTheme::isControlStyled):
1837         (WebCore::RenderTheme::supportsFocusRing):
1838         * rendering/RenderTheme.h:
1839         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
1840
1841         * rendering/RenderListBox.cpp: Added.
1842         (WebCore::RenderListBox::RenderListBox):
1843         (WebCore::RenderListBox::~RenderListBox):
1844         (WebCore::RenderListBox::setStyle):
1845         (WebCore::RenderListBox::updateFromElement):
1846         (WebCore::RenderListBox::calcMinMaxWidth):
1847         (WebCore::RenderListBox::size):
1848         (WebCore::RenderListBox::numItems):
1849         (WebCore::RenderListBox::calcHeight):
1850         (WebCore::RenderListBox::baselinePosition):
1851         (WebCore::RenderListBox::itemBoundingBoxRect):
1852         (WebCore::RenderListBox::paintObject):
1853         (WebCore::RenderListBox::paintScrollbar):
1854         (WebCore::RenderListBox::paintItemForeground):
1855         (WebCore::RenderListBox::paintItemBackground):
1856         (WebCore::RenderListBox::scrollBarTarget):
1857         (WebCore::RenderListBox::isPointInScrollbar):
1858         (WebCore::RenderListBox::optionAtPoint):
1859         (WebCore::RenderListBox::autoscroll):
1860         (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
1861         (WebCore::RenderListBox::scroll):
1862         (WebCore::RenderListBox::valueChanged):
1863         * rendering/RenderListBox.h: Added.
1864         (WebCore::RenderListBox::isListBox):
1865         (WebCore::RenderListBox::selectionChanged):
1866         (WebCore::RenderListBox::setSelectionChanged):
1867         (WebCore::RenderListBox::canHaveChildren):
1868         (WebCore::RenderListBox::renderName):
1869         (WebCore::RenderListBox::setOptionsChanged):
1870         (WebCore::RenderListBox::shouldAutoscroll):
1871         (WebCore::RenderListBox::listIndexIsVisible):
1872
1873 2006-09-29  Beth Dakin  <bdakin@apple.com>
1874
1875         Reviewed by Darin.
1876
1877         We had a bug where html4.css was ignoring Media Queries. In the end 
1878         the problem was that we were trying to send a char* to the 
1879         MediaQueryEvaluator constructor that expects a String, but the 
1880         char* got interpreted as a bool, the wrong constructor was called, 
1881         and the media type was never set.
1882
1883         No test case possible since this only affects html4.css
1884
1885         * css/MediaQueryEvaluator.cpp: New constructor that expects takes a 
1886         char*
1887         (WebCore::MediaQueryEvaluator):
1888         * css/MediaQueryEvaluator.h: Same.
1889
1890 2006-09-29  Geoffrey Garen  <ggaren@apple.com>
1891
1892         Reviewed by John, Maciej.
1893         
1894         Integrated some frame and iframe code. I'm trying to fix up frame ownership
1895         and loading. Reducing the number of different code paths involved
1896         seemed like a good first step.
1897         
1898         As a side effect, I fixed a bug where FRAME elements would report their
1899         src attributes as relative, rather than compelete, URLs. (IFRAME elements
1900         had the correct complete URL behavior.)
1901
1902         * html/HTMLFrameElement.cpp:
1903         (WebCore::HTMLFrameElement::isURLAllowed): Fixed comment typo
1904         (WebCore::HTMLFrameElement::openURL):
1905             (1) Removed checks that requestFrame does for us
1906             (2) Added isURLAllowed check, to have one clear bottleneck for it
1907             (3) Added viewsource check, to have one clear bottleneck for it
1908         (WebCore::HTMLFrameElement::close): Changed to use the common contentFrame()
1909         method, instead of finding our content frame in our own unique way.
1910         (WebCore::HTMLFrameElement::setLocation): Removed isURLAllowed check,
1911         since openURL does this for us now.
1912         (WebCore::HTMLFrameElement::src): Return complete URL instead of relative.
1913         This is what FF does, and it made no sense to have different behaviors
1914         for FRAME and IFRAME elements.
1915         * html/HTMLIFrameElement.cpp:
1916         (WebCore::HTMLIFrameElement::HTMLIFrameElement): Removed duplicate init
1917         code.
1918         * html/HTMLIFrameElement.h: Removed src() and openURL() methods, since
1919         HTMLFrameElement now does everything we need.
1920
1921 2006-09-30  Nikolas Zimmermann  <zimmermann@kde.org>
1922
1923         Reviewed by Hyatt.
1924
1925         Fix Qt/Linux build.
1926
1927         * CMakeLists.txt:
1928         * platform/qt/ScrollViewQt.cpp:
1929         (WebCore::ScrollView::convertToContainingWindow):
1930         (WebCore::ScrollView::convertFromContainingWindow):
1931         * platform/qt/TemporaryLinkStubs.cpp:
1932         (WebCore::signedPublicKeyAndChallengeString):
1933         * platform/qt/WidgetQt.cpp:
1934         (WebCore::Widget::convertToContainingWindow):
1935         (WebCore::Widget::convertFromContainingWindow):
1936
1937 2006-09-29  Sam Weinig  <sam.weinig@gmail.com>
1938
1939         Reviewed by Tim H.
1940
1941         Patch for http://bugs.webkit.org/show_bug.cgi?id=11082
1942         Simplify Internal methods for the auto-generated Objective-C DOM code
1943
1944         - Auto-generate the internal methods for more Objective-C classes.
1945
1946         * WebCore.xcodeproj/project.pbxproj:
1947         * bindings/objc/DOM.mm:
1948         * bindings/objc/DOMCSS.mm:
1949         (-[DOMStyleSheet WebCore::]):
1950         (+[DOMStyleSheet _styleSheetWith:WebCore::]):
1951         (-[DOMCSSRule WebCore::]):
1952         (-[DOMCSSRule _initWithCSSRule:WebCore::]):
1953         (+[DOMCSSRule _CSSRuleWith:WebCore::]):
1954         (-[DOMCSSValue WebCore::]):
1955         (-[DOMCSSValue _initWithCSSValue:WebCore::]):
1956         (+[DOMCSSValue _CSSValueWith:WebCore::]):
1957         * bindings/objc/DOMHTMLAppletElement.mm:
1958         (-[DOMHTMLAppletElement WebCore::]):
1959         (+[DOMHTMLAppletElement _HTMLOptionElementWith:WebCore::]):
1960         * bindings/objc/DOMHTMLEmbedElement.mm:
1961         (-[DOMHTMLEmbedElement WebCore::]):
1962         (+[DOMHTMLEmbedElement _HTMLEmbedElementWith:WebCore::]):
1963         * bindings/objc/DOMInternal.h:
1964         * bindings/objc/DOMInternal.mm:
1965         * bindings/scripts/CodeGeneratorObjC.pm:
1966         * css/CSSCharsetRule.idl:
1967         * css/CSSFontFaceRule.idl:
1968         * css/CSSImportRule.idl:
1969         * css/CSSMediaRule.idl:
1970         * css/CSSPageRule.idl:
1971         * css/CSSPrimitiveValue.idl:
1972         * css/CSSStyleRule.idl:
1973         * css/CSSStyleSheet.idl:
1974         * css/CSSUnknownRule.idl:
1975         * css/CSSValueList.idl:
1976         * dom/KeyboardEvent.idl:
1977         * dom/MouseEvent.idl:
1978         * dom/MutationEvent.idl:
1979         * dom/NodeIterator.idl:
1980         * dom/OverflowEvent.idl:
1981         * dom/UIEvent.idl:
1982         * dom/WheelEvent.idl:
1983
1984 2006-09-29  David Harrison  <harrison@apple.com>
1985
1986         Reviewed by John Sullivan.
1987
1988         <rdar://problem/4663772> REGRESSION: Cannot type in Japanese after replying to a particular message
1989         <rdar://problem/4673293> REGRESSION: Can't enter the Japanese characters in Mail or Blot
1990
1991         Test added
1992         * fast/text/attributed-substring-from-range-001.html
1993
1994         * bridge/mac/FrameMac.mm:
1995         (WebCore::FrameMac::attributedString):
1996         Handle non-zero offsets when start and/or end node is a container. Offset used to be ignored in this case.
1997         Also, add validation of the range.
1998
1999 2006-09-29  Rob Buis  <buis@kde.org>
2000
2001         Reviewed by Maciej.
2002
2003         http://bugs.webkit.org/show_bug.cgi?id=10893
2004         InsertRule can not handle @import statements
2005
2006         Allow @import as part of a css rule.
2007
2008         * css/CSSGrammar.y:
2009
2010 2006-09-28  David Hyatt  <hyatt@apple.com>
2011
2012         Switch over the Mac-specific uses of viewportToContents/contentsToViewport.
2013
2014         * bridge/mac/FrameMac.mm:
2015         (WebCore::FrameMac::eventMayStartDrag):
2016         (WebCore::FrameMac::dragHysteresisExceeded):
2017         (WebCore::FrameMac::mouseDown):
2018         (WebCore::FrameMac::shouldDragAutoNode):
2019         (WebCore::FrameMac::sendContextMenuEvent):
2020         * bridge/mac/WebCoreFrameBridge.mm:
2021         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
2022
2023 2006-09-28  Dave Hyatt  <hyatt@apple.com>
2024
2025         This patch eliminates viewportToContents/contentsToViewport in favor of convertTo/FromContainingWindow.
2026         ScrollView now subclasses these methods to factor in its scrollOffset and to deal with the document
2027         view.
2028        
2029         Reviewed by mjs (the convertTo/From changes), (I added the elimination of viewportToContents to
2030         the patch after review, once I realized that these new functions essentially do the same thing.)
2031
2032         * dom/EventTargetNode.cpp:
2033         (WebCore::EventTargetNode::dispatchMouseEvent):
2034         (WebCore::EventTargetNode::dispatchWheelEvent):
2035         * page/Frame.cpp:
2036         (WebCore::Frame::selectClosestWordFromMouseEvent):
2037         (WebCore::Frame::handleMousePressEventTripleClick):
2038         (WebCore::Frame::handleMousePressEventSingleClick):
2039         (WebCore::Frame::handleMouseMoveEvent):
2040         (WebCore::Frame::handleMouseReleaseEvent):
2041         * page/FrameView.cpp:
2042         (WebCore::FrameView::handleMousePressEvent):
2043         (WebCore::selectCursor):
2044         (WebCore::FrameView::dispatchDragEvent):
2045         (WebCore::FrameView::prepareMouseEvent):
2046         (WebCore::FrameView::handleWheelEvent):
2047         * platform/ScrollView.h:
2048         * platform/Widget.cpp:
2049         (WebCore::Widget::convertToContainingWindow):
2050         * platform/Widget.h:
2051         * platform/mac/ScrollViewMac.mm:
2052         (WebCore::ScrollView::convertToContainingWindow):
2053         (WebCore::ScrollView::convertFromContainingWindow):
2054         * platform/mac/WidgetMac.mm:
2055         (WebCore::Widget::convertToContainingWindow):
2056         (WebCore::Widget::convertFromContainingWindow):
2057         * platform/win/ScrollViewWin.cpp:
2058         (WebCore::ScrollView::convertToContainingWindow):
2059         (WebCore::ScrollView::convertFromContainingWindow):
2060         * rendering/RenderLayer.cpp:
2061         (WebCore::RenderLayer::resize):
2062
2063 2006-09-28  Alice Liu  <alice.liu@apple.com>
2064
2065         Build fix by adding missing files for CommandByName
2066
2067         * WebCore.xcodeproj/project.pbxproj:
2068
2069 2006-09-28  Alice Liu  <alice.liu@apple.com>
2070
2071         Adding CommandByName files to the vcproj
2072
2073         * WebCore.vcproj/WebCore/WebCore.vcproj:
2074
2075 2006-09-28  Alice Liu  <alice.liu@apple.com>
2076
2077         Reviewed by Adam Roben.
2078
2079         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. 
2080         This patch also exposes some UBRK-related utilities so that they can be used elsewhere.
2081         This patch also changes windows PlatformMouseEvent so that we can detect multiple-click mouse events
2082
2083         * editing/CommandByName.cpp: Added.
2084         Added a command class that hangs off the frame so the frame can call commands more easily.  
2085         (WebCore::Frame::commandImp):
2086         (WebCore::Frame::execCopy):
2087         (WebCore::Frame::execCut):
2088         (WebCore::Frame::execDelete):
2089         (WebCore::Frame::execForwardDelete):
2090         (WebCore::Frame::execPaste):
2091         (WebCore::Frame::execMoveLeft):
2092         (WebCore::Frame::execMoveRight):
2093         (WebCore::Frame::execMoveUp):
2094         (WebCore::Frame::execMoveDown):
2095         (WebCore::Frame::execSelectAll):
2096         (WebCore::Frame::execSelectLeft):
2097         (WebCore::Frame::execSelectRight):
2098         (WebCore::Frame::execSelectUp):
2099         (WebCore::Frame::execSelectDown):
2100         (WebCore::Frame::enabled):
2101         (WebCore::Frame::enabledAnySelection):
2102         (WebCore::Frame::enabledAnyEditableSelection):
2103         (WebCore::Frame::enabledPaste):
2104         (WebCore::Frame::enabledAnyRangeSelection):
2105         (WebCore::Frame::enabledAnyEditableRangeSelection):
2106         (WebCore::Frame::createCommandDictionary):
2107         (WebCore::Frame::Command::):
2108         (WebCore:::m_frame):
2109         (WebCore::CommandByName::execCommand):
2110         * editing/CommandByName.h: Added.
2111         * page/Frame.cpp:
2112         Added implementation of accessor for CommandByName member
2113         (WebCore::Frame::command):
2114         * page/Frame.h:
2115         Added accessor for CommandByName member
2116         * page/FramePrivate.h:
2117         Added a CommandByName member
2118         (WebCore::FramePrivate::FramePrivate):
2119         * platform/PlatformMouseEvent.h:
2120         Changed constructor prototype
2121         * platform/StringImpl.cpp:
2122         Exposing getWordBreakIterator to be used elsewhere
2123         (WebCore::getWordBreakIterator):
2124         * platform/StringImpl.h:
2125         Exposing getWordBreakIterator to be used elsewhere
2126         * platform/win/MouseEventWin.cpp:
2127         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
2128         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2129
2130 2006-09-28  Adam Roben  <aroben@apple.com>
2131
2132         Reviewed by Adele.
2133
2134         Remove no-longer-used PopUpButton.
2135
2136         * WebCore.vcproj/WebCore/WebCore.vcproj: Remove PopUpButton.h
2137         * WebCore.xcodeproj/project.pbxproj: Remove PopUpButton.h,
2138         PopUpButtonMac.mm
2139         * platform/PopUpButton.h: Removed.
2140         * platform/mac/PopUpButtonMac.mm: Removed.
2141         * platform/win/TemporaryLinkStubs.cpp: Remove PopUpButton:: methods
2142         * rendering/DeprecatedRenderSelect.cpp: Change #include of
2143         PopUpButton.h to ListBox.h
2144
2145 2006-09-28  Darin Adler  <darin@apple.com>
2146
2147         Reviewed by Alice.
2148
2149         - change that should fix <rdar://problem/4733044> REGRESSION: XML iBench shows
2150           10% perf. regression (copying strings while decoding)
2151
2152         Use Vector<UChar> instead of String when building up the decoded string in
2153         the ICU and Mac decoders. Using String leads to O(n^2) behavior because
2154         String grows the buffer every single time that append is called. Using
2155         Vector::append instead of String::append also avoids constructing a string
2156         each time just to append and a questionable copy that is done inside the
2157         String::append function which also contributed to the slowness.
2158
2159         * platform/PlatformString.h:
2160         * platform/String.cpp: (WebCore::String::adopt): Added. Makes a String from a
2161         Vector<UChar>, adopting the buffer from the vector to avoid copying and memory
2162         allocation.
2163         * platform/StringImpl.h:
2164         * platform/StringImpl.cpp: (WebCore::StringImpl::adopt): Ditto.
2165
2166         * platform/StreamingTextDecoder.h:
2167         * platform/StreamingTextDecoder.cpp: (WebCore::TextCodec::appendOmittingBOM):
2168         Change to use a Vector<UChar> instead of a String, since vectors have better
2169         resizing performance (they store a separate capacity).
2170
2171         * platform/StreamingTextDecoderICU.cpp: (WebCore::TextCodecICU::decode):
2172         * platform/mac/StreamingTextDecoderMac.cpp: (WebCore::TextCodecMac::decode):
2173         Change to use Vector<UChar> instead of String and then create a string at
2174         the end of the process using the new adopt function.
2175
2176 2006-09-28  Sam Weinig  <sam.weinig@gmail.com>
2177
2178         Reviewed by Tim H.
2179
2180         Patch for http://bugs.webkit.org/show_bug.cgi?id=11057
2181         Auto-generate more SVG Objective-C bindings
2182
2183         - Auto-generates DOMSVGAnimatedAngle, DOMSVGAnimatedBoolean, 
2184           DOMSVGAnimatedEnumeration, DOMSVGAnimatedInteger, DOMSVGAnimatedLength,
2185           DOMSVGAnimatedLengthList, DOMSVGAnimatedNumber, DOMSVGAnimatedString,
2186           DOMSVGAnimatedTransformList, DOMSVGExternalResourcesRequired,
2187           DOMSVGLangSpace, DOMSVGLocatable, DOMSVGMetadataElement, DOMSVGRectElement,
2188           DOMSVGStringList, DOMSVGStylable, DOMSVGStyleElement, DOMSVGTests, 
2189           and DOMSVGTransformable.
2190
2191         - Adds ability to CodeGeneratorObjC.pm to handle interfaces with mulitple
2192           parent interfaces and the SVG animated classes.
2193
2194         - Corrects CodeGenerator.pm to only skip the first parent for the main 
2195           interface.
2196
2197         * DerivedSources.make:
2198         * WebCore.xcodeproj/project.pbxproj:
2199         * bindings/objc/DOMInternal.h:
2200         * bindings/objc/DOMSVG.h:
2201         * bindings/scripts/CodeGenerator.pm:
2202         * bindings/scripts/CodeGeneratorObjC.pm:
2203         * ksvg2/svg/SVGAnimatedAngle.idl:
2204         * ksvg2/svg/SVGAnimatedBoolean.idl:
2205         * ksvg2/svg/SVGAnimatedEnumeration.idl:
2206         * ksvg2/svg/SVGAnimatedInteger.idl:
2207         * ksvg2/svg/SVGAnimatedLength.idl:
2208         * ksvg2/svg/SVGAnimatedLengthList.idl:
2209         * ksvg2/svg/SVGAnimatedNumber.idl:
2210         * ksvg2/svg/SVGAnimatedPathData.idl:
2211         * ksvg2/svg/SVGAnimatedString.idl:
2212         * ksvg2/svg/SVGAnimatedTransformList.idl:
2213         * ksvg2/svg/SVGExternalResourcesRequired.idl:
2214         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl:
2215         * ksvg2/svg/SVGFitToViewBox.idl:
2216         * ksvg2/svg/SVGLangSpace.idl:
2217         * ksvg2/svg/SVGLocatable.idl:
2218         * ksvg2/svg/SVGMetadataElement.idl:
2219         * ksvg2/svg/SVGStringList.idl:
2220         * ksvg2/svg/SVGStylable.idl:
2221         * ksvg2/svg/SVGStyleElement.idl:
2222         * ksvg2/svg/SVGTests.idl:
2223         * ksvg2/svg/SVGTransformable.idl:
2224         * ksvg2/svg/SVGURIReference.idl:
2225         * ksvg2/svg/SVGUnitTypes.idl:
2226         * ksvg2/svg/SVGZoomAndPan.idl:
2227
2228 2006-09-28  Brady Eidson  <beidson@apple.com>
2229
2230         Reviewed by Mitz Pettel!!!
2231
2232         Change the error code check for common functions from SQLResultOk to SQLResultDone 
2233
2234         * loader/icon/IconDatabase.cpp:
2235         (WebCore::IconDatabase::forgetPageURLQuery):
2236         (WebCore::IconDatabase::setIconIDForPageURLQuery):
2237         (WebCore::IconDatabase::addIconForIconURLQuery):
2238
2239 2006-09-28  Dave Hyatt  <hyatt@apple.com>
2240
2241         Just eliminate MapWindowPoints usage and use the HWND as
2242         the viewport.
2243
2244         * platform/win/MouseEventWin.cpp:
2245         (WebCore::positionForEvent):
2246         * platform/win/ScrollViewWin.cpp:
2247         (WebCore::ScrollView::viewportToContents):
2248         (WebCore::ScrollView::contentsToViewport):
2249
2250 2006-09-27  David Hyatt  <hyatt@apple.com>
2251
2252         Fix for bug 9222, cursor is wrong when mousing over overflow scrollbars in textareas.  Make sure
2253         selectCursor checks for whether or not a scrollbar was hit.  Also stub out a mouseMoved method for
2254         scrollbars to provide hover feedback if needed.
2255
2256         Reviewed by Eric
2257
2258         * page/FrameView.cpp:
2259         (WebCore::selectCursor):
2260         (WebCore::FrameView::handleMouseMoveEvent):
2261         * platform/ScrollBar.h:
2262         (WebCore::ScrollBar::mouseMoved):
2263
2264 2006-09-27  MorganL  <morganl.webkit@yahoo.com>
2265
2266         Reviewed by Maciej and Adam, landed by Adam
2267
2268         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11072
2269         Windows build is busted
2270
2271         * platform/win/TemporaryLinkStubs.cpp:
2272         (ScrollView::paint):
2273         (ScrollView::themeChanged):
2274
2275 2006-09-27  Eric Seidel  <eric@eseidel.com>
2276
2277         Reviewed by mitz.
2278
2279         paths with no fill specified default to black but do not recieve paint-related mouse events
2280         http://bugs.webkit.org/show_bug.cgi?id=11069
2281         The default fill was being applied at the wrong place in the rendering chain, causing this problem.
2282
2283         Test: svg/custom/hover-default-fill.svg
2284
2285         * kcanvas/RenderPath.cpp:
2286         (WebCore::RenderPath::nodeAtPoint): use isFilled and isStroked
2287         * ksvg2/css/SVGRenderStyle.h: use defaultFill() and defaultStroke()
2288         * ksvg2/misc/KCanvasRenderingStyle.cpp:
2289         (WebCore::KSVGPainterFactory::isFilled): remove null check
2290         (WebCore::KSVGPainterFactory::fillPaintServer): remove null check
2291         (WebCore::KSVGPainterFactory::isStroked): remove null check
2292         (WebCore::KSVGPainterFactory::strokePaintServer): remove null check
2293         * ksvg2/svg/SVGPaint.cpp:
2294         (WebCore::SVGPaint::defaultFill): added.
2295         (WebCore::SVGPaint::defaultStroke): added.
2296         * ksvg2/svg/SVGPaint.h:
2297
2298 2006-09-27  Rob Buis  <buis@kde.org>
2299
2300         Reviewed by eseidel.
2301
2302         http://bugs.webkit.org/show_bug.cgi?id=11015
2303         SVG handles em units incorrectly
2304
2305         Calculate viewport coordinates at layout time, since
2306         at this point the font size is known and lengths depending
2307         on font sizes can be calculated correctly.
2308
2309         * kcanvas/RenderSVGContainer.cpp:
2310         (WebCore::RenderSVGContainer::layout):
2311         (WebCore::RenderSVGContainer::viewport):
2312         (WebCore::RenderSVGContainer::calcViewport):
2313         * kcanvas/RenderSVGContainer.h:
2314         * ksvg2/svg/SVGLength.cpp:
2315         (WebCore::SVGLength::updateValue):
2316         * ksvg2/svg/SVGMarkerElement.cpp:
2317         (WebCore::SVGMarkerElement::createRenderer):
2318         * ksvg2/svg/SVGSVGElement.cpp:
2319         (WebCore::SVGSVGElement::createRenderer):
2320         (WebCore::SVGSVGElement::attributeChanged):
2321         * ksvg2/svg/SVGSVGElement.h:
2322
2323 2006-09-27  Eric Seidel  <eric@eseidel.com>
2324
2325         Reviewed by darin.
2326
2327         Change our invalid-fill error behavior to match Opera (and soon Firefox)
2328         http://bugs.webkit.org/show_bug.cgi?id=11017
2329
2330         * ksvg2/misc/KCanvasRenderingStyle.cpp:
2331         (WebCore::KSVGPainterFactory::isFilled):
2332         (WebCore::KSVGPainterFactory::fillPaintServer):
2333         (WebCore::KSVGPainterFactory::isStroked):
2334         (WebCore::KSVGPainterFactory::strokePaintServer):
2335
2336 2006-09-27  Brady Eidson  <beidson@apple.com>
2337
2338         Build fix
2339
2340         * loader/icon/IconDatabase.cpp:
2341         (WebCore::readySQLStatement):
2342
2343 2006-09-27  Brady Eidson  <beidson@apple.com>
2344
2345         Reviewed by Adam
2346
2347         In very specific circumstances, prepared SQLStatements can become invalid without
2348         any warning.  This checks for that state and re-prepares the statement and also
2349         adds more aggressive error-checking everywhere these statements are used.
2350
2351         * loader/icon/IconDatabase.cpp:
2352         (WebCore::readySQLStatement): Check if the statement is expired - reprepare it
2353         (WebCore::IconDatabase::imageDataForIconURLQuery): More thoroughly catch error cases
2354         (WebCore::IconDatabase::timeStampForIconURLQuery): Ditto
2355         (WebCore::IconDatabase::iconURLForPageURLQuery): Ditto
2356         (WebCore::IconDatabase::forgetPageURLQuery): Ditto
2357         (WebCore::IconDatabase::setIconIDForPageURLQuery): Ditto
2358         (WebCore::IconDatabase::getIconIDForIconURLQuery): Ditto
2359         (WebCore::IconDatabase::addIconForIconURLQuery): Ditto
2360         (WebCore::IconDatabase::hasIconForIconURLQuery): Ditto
2361         * loader/icon/SQLStatement.cpp:
2362         (WebCore::SQLStatement::isExpired): Added (accessor to sqlite3_expired())
2363         * loader/icon/SQLStatement.h:
2364
2365 2006-09-26  Darin Adler  <darin@apple.com>
2366
2367         Reviewed by Steve.
2368
2369         - clean up options for font code path
2370
2371         * platform/Font.h:
2372         * platform/Font.cpp:
2373         (WebCore::Font::setCodePath): Added. Replaces boolean version.
2374         (WebCore::Font::canUseGlyphCache): Update to handle "never use complex" case too.
2375
2376         * platform/mac/WebCoreTextRenderer.mm:
2377         (WebCoreSetAlwaysUseATSU): Change to call setCodePath.
2378
2379 2006-09-26  John Sullivan  <sullivan@apple.com>
2380
2381         Reviewed by Darin
2382
2383         * bridge/mac/WebCoreFrameBridge.h:
2384         * bridge/mac/WebCoreFrameBridge.mm:
2385         (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:limit:]):
2386         Added limit parameter, passed down to Frame
2387         
2388         * page/Frame.h:
2389         * page/Frame.cpp:
2390         (WebCore::Frame::markAllMatchesForText):
2391         Added limit parameter. Stop the search if it hits limit.
2392
2393 2006-09-26  Sean Gies  <seangies@apple.com>
2394
2395         Reviewed by Brady Eidson.
2396
2397         * platform/cg/ImageCG.cpp: Removed #if's -- Darin said we don't need these.
2398
2399 2006-09-26  Justin Garcia  <justin.garcia@apple.com>
2400
2401         Reviewed by john
2402         
2403         <rdar://problem/4747695> 
2404         Gmail Editor: Crash at WebCore::Range::startPosition() when decreasing a indent
2405         
2406         * editing/DeleteSelectionCommand.cpp:
2407         (WebCore::DeleteSelectionCommand::initializeStartEnd): Stop expanding
2408         to select special elements that are fully selected after expansion
2409         moves to positions that are visually distinct from the originals.
2410         * editing/InsertListCommand.cpp:
2411         (WebCore::InsertListCommand::doApply): If the content of the list 
2412         item will be moved into another list, put it in a list item.
2413
2414 2006-09-26  Geoffrey Garen <ggaren@apple.com>
2415
2416         Reviewed by Darin.
2417         
2418         Temporary work-around for frame lifetime issue.
2419
2420         * page/Frame.cpp:
2421         (WebCore::Frame::clear):
2422         (WebCore::Frame::disconnectOwnerElement):
2423
2424 2006-09-26  Sam Weinig  <sam.weinig@gmail.com>
2425
2426         Reviewed by Tim H.
2427
2428         Patch for http://bugs.webkit.org/show_bug.cgi?id=11038
2429         Auto-generate DOMSVGElement for the Objective-C bindings
2430
2431         - Auto-generates DOMSVGElement.
2432
2433         - Make SVGExceptions work like all the other ExceptionCode
2434           extensions (Range, XPath, etc.) by adding SVGExceptionOffset
2435           and SVGExceptionMax.
2436
2437         * DerivedSources.make:
2438         * WebCore.xcodeproj/project.pbxproj:
2439         * bindings/js/kjs_binding.cpp:
2440         (KJS::):
2441         (KJS::setDOMException):
2442         * bindings/objc/DOMInternal.h:
2443         * bindings/objc/DOMInternal.mm:
2444         (raiseDOMException):
2445         * bindings/objc/DOMSVG.h:
2446         * bindings/objc/DOMSVGExecption.h: Added.
2447         * ksvg2/ksvg.h:
2448         * ksvg2/svg/SVGElement.cpp:
2449         (WebCore::SVGElement::setId):
2450         (WebCore::SVGElement::setXmlbase):
2451         * ksvg2/svg/SVGElement.h:
2452         * ksvg2/svg/SVGElement.idl:
2453         * ksvg2/svg/SVGException.h: Added.
2454         (WebCore::):
2455
2456 2006-09-26  Eric Seidel  <eric@eseidel.com>
2457
2458         Reviewed by Tim H.
2459         
2460         viewbox parser does not allow <tab> as a delimiter
2461         http://bugs.webkit.org/show_bug.cgi?id=11014
2462
2463         Test: svg/hixie/viewbox/003.xml
2464
2465         * ksvg2/svg/svgpathparser.cpp:
2466         (WebCore::isWhitespace): new function
2467         (WebCore::skipOptionalSpaces):
2468         (WebCore::skipOptionalSpacesOrComma):
2469
2470 2006-09-26  Eric Seidel  <eric@eseidel.com>
2471
2472         Reviewed by Tim H.
2473
2474         SVGDocument::createElement does not create elements in the SVG namespace
2475         http://bugs.webkit.org/show_bug.cgi?id=10932
2476         
2477         Test: svg/custom/createelement.svg
2478
2479         * ksvg2/svg/SVGDocument.cpp:
2480         (WebCore::SVGDocument::createElement):
2481         * ksvg2/svg/SVGDocument.h:
2482
2483 2006-09-26  Eric Seidel  <eric@eseidel.com>
2484
2485         Reviewed by Tim H.
2486         
2487         RenderPath::nodeAtPoint does not respect stroke width
2488         http://bugs.webkit.org/show_bug.cgi?id=10829
2489
2490         Test: svg/custom/stroke-width-click.svg
2491
2492         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
2493         (WebCore::RenderPath::strokeContains):
2494         * kcanvas/device/quartz/QuartzSupport.h:
2495         * kcanvas/device/quartz/QuartzSupport.mm:
2496
2497 2006-09-26  Eric Seidel  <eric@eseidel.com>
2498
2499         Reviewed by mitz.
2500
2501         Bring animation back to life
2502         http://bugs.webkit.org/show_bug.cgi?id=11021
2503         
2504         Register/unregister SVGSVGElements as time containers on insertion/removal.
2505         Replace uses of DeprecatedString with String in SVGAnimationElement
2506         Various whitespace clean-up.
2507
2508         * ksvg2/misc/KSVGTimeScheduler.cpp:
2509         (WebCore::SVGTimer::notifyAll):
2510         * ksvg2/misc/SVGDocumentExtensions.cpp:
2511         (WebCore::SVGDocumentExtensions::startAnimations):
2512         (WebCore::SVGDocumentExtensions::pauseAnimations):
2513         (WebCore::SVGDocumentExtensions::unpauseAnimations):
2514         * ksvg2/svg/SVGAnimateTransformElement.cpp:
2515         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
2516         (WebCore::SVGAnimateTransformElement::parseTransformValue):
2517         * ksvg2/svg/SVGAnimateTransformElement.h:
2518         * ksvg2/svg/SVGAnimationElement.cpp:
2519         (WebCore::SVGAnimationElement::SVGAnimationElement):
2520         (WebCore::SVGAnimationElement::parseMappedAttribute):
2521         (WebCore::SVGAnimationElement::parseClockValue):
2522         (WebCore::SVGAnimationElement::targetAttribute):
2523         (WebCore::SVGAnimationElement::setTargetAttribute):
2524         (WebCore::SVGAnimationElement::attributeName):
2525         * ksvg2/svg/SVGAnimationElement.h:
2526         (WebCore::SVGAnimationElement::rendererIsNeeded):
2527         * ksvg2/svg/SVGSVGElement.cpp:
2528         (WebCore::SVGSVGElement::getScreenCTM):
2529         (WebCore::SVGSVGElement::createRenderer):
2530         (WebCore::SVGSVGElement::insertedIntoDocument): added, calls addTimeContainer(this)
2531         (WebCore::SVGSVGElement::removedFromDocument): added, calls removeTimeContainer(this)
2532         * ksvg2/svg/SVGSVGElement.h:
2533         * ksvg2/svg/SVGSetElement.cpp:
2534         (WebCore::SVGSetElement::handleTimerEvent):
2535         * ksvg2/svg/SVGURIReference.cpp:
2536         (WebCore::SVGURIReference::getTarget):
2537         * ksvg2/svg/SVGURIReference.h:
2538
2539 2006-09-26  Graham Dennis  <graham.dennis@gmail.com>
2540
2541         Reviewed by mitzpettel.
2542
2543         - fix http://bugs.webkit.org/show_bug.cgi?id=11020
2544         No-SVG build broken since r16549
2545         
2546         Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT
2547
2548         * css/cssparser.cpp:
2549         (WebCore::CSSParser::parseValue):
2550         * css/cssstyleselector.cpp:
2551         (WebCore::CSSStyleSelector::applyProperty):
2552         * page/FrameView.cpp:
2553         (WebCore::selectCursor):
2554         * platform/qt/GraphicsContextQt.cpp:
2555
2556 2006-09-26  Anders Carlsson  <acarlsson@apple.com>
2557
2558         Reviewed by Maciej.
2559
2560         http://bugs.webkit.org/show_bug.cgi?id=10820
2561         Add StringImpl::toDouble() and remove uses of .deprecatedString().toDouble()
2562         
2563         (Originally written by Eric Seidel).
2564         
2565         * bindings/js/kjs_window.cpp:
2566         (KJS::floatFeature):
2567         * ksvg2/svg/SVGAngle.cpp:
2568         (SVGAngle::setValueAsString):
2569         * ksvg2/svg/SVGAnimationElement.cpp:
2570         (SVGAnimationElement::parseMappedAttribute):
2571         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
2572         (SVGComponentTransferFunctionElement::parseMappedAttribute):
2573         * ksvg2/svg/SVGFECompositeElement.cpp:
2574         (WebCore::SVGFECompositeElement::parseMappedAttribute):
2575         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2576         (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
2577         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
2578         (SVGFEDisplacementMapElement::parseMappedAttribute):
2579         * ksvg2/svg/SVGFELightElement.cpp:
2580         (SVGFELightElement::parseMappedAttribute):
2581         * ksvg2/svg/SVGFEOffsetElement.cpp:
2582         (WebCore::SVGFEOffsetElement::parseMappedAttribute):
2583         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
2584         (SVGFESpecularLightingElement::parseMappedAttribute):
2585         * ksvg2/svg/SVGFETurbulenceElement.cpp:
2586         (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
2587         * ksvg2/svg/SVGStopElement.cpp:
2588         (SVGStopElement::parseMappedAttribute):
2589         * platform/AtomicString.h:
2590         (WebCore::AtomicString::toDouble):
2591         * platform/PlatformString.h:
2592         * platform/String.cpp:
2593         (WebCore::String::toDouble):
2594         * platform/StringImpl.cpp:
2595         (WebCore::StringImpl::toDouble):
2596         * platform/StringImpl.h:
2597         * rendering/DeprecatedSlider.cpp:
2598         (WebCore::DeprecatedSlider::updateFromElement):
2599         * xml/XPathGrammar.y:
2600
2601 2006-09-25  David Harrison  <harrison@apple.com>
2602
2603         Reviewed by Tim Omernick and Tim Hatcher.
2604
2605         <rdar://problem/4717965> Text Field text parameterized attributes should work
2606         <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
2607
2608         * bridge/mac/WebCoreAXObject.mm:
2609         (-[WebCoreAXObject accessibilityAttributeValue:]):
2610         Use new line number support to implement NSAccessibilityInsertionPointLineNumberAttribute.
2611         
2612         (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
2613         Cleaned up. Added text field and text area parameterzed attributes.
2614         
2615         (-[WebCoreAXObject doAXLineForTextMarker:]):
2616         Fixed to be zero-based and to deal with the first position properly.
2617         
2618         (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
2619         Minor formatting.
2620         
2621         (-[WebCoreAXObject textMarkerForIndex:lastIndexOK:]):
2622         (-[WebCoreAXObject indexForTextMarker:]):
2623         (-[WebCoreAXObject textMarkerRangeForRange:]):
2624         (-[WebCoreAXObject rangeForTextMarkerRange:]):
2625         New utility methods.
2626         
2627         (-[WebCoreAXObject doAXLineForIndex:]):
2628         (-[WebCoreAXObject doAXRangeForLine:]):
2629         (-[WebCoreAXObject doAXStringForRange:]):
2630         (-[WebCoreAXObject doAXRangeForPosition:]):
2631         (-[WebCoreAXObject doAXRangeForIndex:]):
2632         (-[WebCoreAXObject doAXBoundsForRange:]):
2633         (-[WebCoreAXObject doAXAttributedStringForRange:]):
2634         (-[WebCoreAXObject doAXRTFForRange:]):
2635         (-[WebCoreAXObject doAXStyleRangeForIndex:]):
2636         Implement text field and text area parameterized attributes.
2637          
2638         (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
2639         Added text field and text area parameterzed attributes.
2640
2641         * rendering/RenderTextControl.h:
2642         Made indexForVisiblePosition() and visiblePositionForIndex() public.
2643
2644 2006-09-25  Adam Roben  <aroben@apple.com>
2645
2646         Reviewed by Brady.
2647
2648         Build fixes.
2649
2650         * WebCore.vcproj/WebCore/WebCore.vcproj: Fix malformed XML.
2651         * platform/ResourceLoader.h: Store whether a particular job
2652         has received a response within the ResourceLoader object itself, since
2653         it's possible that we will enter the InternetReadFileExA while loop
2654         twice for the same job.
2655         * platform/ResourceLoaderInternal.h: Add private instance variable to
2656         store whether we've received a response.
2657         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2658         * platform/win/GraphicsContextWin.cpp: Fix order of preprocessor
2659         directives.
2660         * platform/win/ResourceLoaderWin.cpp: 
2661         (WebCore::ResourceLoader::onRequestComplete): Ask the ResourceLoader
2662         whether it has received a response instead of assuming it hasn't.
2663         (WebCore::ResourceLoader::setHasReceivedResponse): Added.
2664         (WebCore::ResourceLoader::hasReceivedResponse): Added.
2665         * platform/win/TemporaryLinkStubs.cpp: Rename setKnobProportion to
2666         setProportion
2667         (ScrollBar::setProportion):
2668
2669 2006-09-25  Brady Eidson  <beidson@apple.com>
2670
2671         Requested by ggaren
2672
2673         Disabled IconDatabase logging by default
2674
2675         * platform/Logging.cpp:
2676         (WebCore::):
2677
2678 2006-09-25  Steve Falkenburg  <sfalken@apple.com>
2679
2680         Build fix
2681
2682         * platform/cf/ResourceLoaderCFNet.cpp:
2683         (WebCore::willCacheResponse):
2684
2685 2006-09-25  Justin Garcia  <justin.garcia@apple.com>
2686
2687         Reviewed by john
2688         
2689         <http://bugs.webkit.org/show_bug.cgi?id=11002>
2690         Gmail Editor: Crash at WebCore::SplitElementCommand::doApply() when attempting to indent in a new message
2691         
2692         * editing/IndentOutdentCommand.cpp:
2693         (WebCore::IndentOutdentCommand::indentRegion): Special case
2694         an empty root editable element.
2695
2696 2006-09-25  Brady Eidson  <beidson@apple.com>
2697
2698         Reviewed by Steve
2699
2700         Math error in SystemTimeWin
2701
2702         * platform/win/SystemTimeWin.cpp:
2703         (WebCore::currentTime):
2704
2705 2006-09-25  Alexey Proskuryakov  <ap@nypop.com>
2706
2707         Reviewed by Eric.
2708
2709         Whitespace cleanup; rename *job variables to *loader.
2710
2711         * bindings/js/JSXMLHttpRequest.cpp:
2712         (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
2713         (KJS::JSXMLHttpRequestConstructorImp::implementsConstruct):
2714         (KJS::JSXMLHttpRequestConstructorImp::construct):
2715         (KJS::JSXMLHttpRequest::getOwnPropertySlot):
2716         (KJS::JSXMLHttpRequest::getValueProperty):
2717         (KJS::JSXMLHttpRequest::put):
2718         (KJS::JSXMLHttpRequest::putValueProperty):
2719         (KJS::JSXMLHttpRequest::mark):
2720         (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
2721         (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
2722         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
2723         * bindings/js/JSXMLHttpRequest.h:
2724         (KJS::JSXMLHttpRequest::toBoolean):
2725         * xml/xmlhttprequest.cpp:
2726         (WebCore::XMLHttpRequest::XMLHttpRequest):
2727         (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
2728         (WebCore::XMLHttpRequest::send):
2729         (WebCore::XMLHttpRequest::abort):
2730         (WebCore::XMLHttpRequest::receivedAllData):
2731         (WebCore::XMLHttpRequest::receivedData):
2732         * xml/xmlhttprequest.h:
2733         (WebCore::):
2734
2735 2006-09-25  Timothy Hatcher  <timothy@apple.com>
2736
2737         Reviewed by Brady.
2738
2739         - Deprecate the rest of the old-style methods that are not generated.
2740         - Add @property syntax to DOMRange.
2741
2742         * WebCore.xcodeproj/project.pbxproj:
2743         * bindings/objc/DOM.mm:
2744         (-[DOMRange setStart:offset:]):
2745         (-[DOMRange setEnd:offset:]):
2746         (-[DOMRange compareBoundaryPoints:sourceRange:]):
2747         (-[DOMRange setStart::]):
2748         (-[DOMRange setEnd::]):
2749         (-[DOMRange compareBoundaryPoints::]):
2750         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
2751         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
2752         (-[DOMDocument createNodeIterator::::]):
2753         (-[DOMDocument createTreeWalker::::]):
2754         * bindings/objc/DOMCSS.h:
2755         * bindings/objc/DOMCSS.mm:
2756         (-[DOMDocument getComputedStyle:pseudoElement:]):
2757         (-[DOMDocument getComputedStyle::]):
2758         (-[DOMDocument getMatchedCSSRules:pseudoElement:]):
2759         * bindings/objc/DOMExtensions.h:
2760         * bindings/objc/DOMHTML.h:
2761         * bindings/objc/DOMRange.h:
2762         * bindings/objc/DOMTraversal.h:
2763
2764 2006-09-25  Eric Seidel  <eric@eseidel.com>
2765
2766         Reviewed by mjs.
2767         
2768         Outermost <svg> element should clip to viewport
2769         http://bugs.webkit.org/show_bug.cgi?id=11007
2770
2771         Test: svg/custom/viewport-clip.svg
2772
2773         * css/svg.css: change svg:root overflow: from 'visible' to 'hidden'
2774
2775 2006-09-25  Anders Carlsson  <acarlsson@apple.com>
2776
2777         Reviewed by Maciej.
2778
2779         * css/MediaList.cpp:
2780         Remove unused header.
2781         
2782         * dom/Document.cpp:
2783         (WebCore::Document::clear):
2784         Use clear instead of iterating through the list of event listeners, removing each one.
2785         (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
2786         
2787         * html/HTMLKeygenElement.cpp:
2788         (WebCore::HTMLKeygenElement::HTMLKeygenElement):
2789         (WebCore::HTMLKeygenElement::appendFormData):
2790         Update due to changes in the SSL key generator.
2791         
2792         * ksvg2/svg/SVGAngle.cpp:
2793         Remove unused header.
2794         
2795         * ksvg2/svg/SVGAnimationElement.cpp:
2796         (SVGAnimationElement::parseMappedAttribute):
2797         Rename methods and pass Strings instead of DeprecatedStrings to
2798         parseSeparatedList.
2799         
2800         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
2801         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2802         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
2803         * ksvg2/svg/SVGFEMergeElement.cpp:
2804         * ksvg2/svg/SVGFEOffsetElement.cpp:
2805         Remove unused headers.
2806         
2807         * ksvg2/svg/SVGHelper.cpp:
2808         (WebCore::SVGHelper::parseSeparatedList):
2809         * ksvg2/svg/SVGHelper.h:
2810         Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a 
2811         DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
2812         
2813         * ksvg2/svg/SVGLengthList.cpp:
2814         (WebCore::SVGLengthList::parse):
2815         * ksvg2/svg/SVGLengthList.h:
2816         Use Vector<String> instead of DeprecatedStringList.
2817         
2818         * loader/Cache.cpp:
2819         (WebCore::Cache::requestImage):
2820         (WebCore::Cache::requestStyleSheet):
2821         (WebCore::Cache::requestScript):
2822         (WebCore::Cache::requestXSLStyleSheet):
2823         (WebCore::Cache::requestXBLDocument):
2824         (WebCore::Cache::remove):
2825         (WebCore::Cache::get):
2826         Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
2827         
2828         * loader/DocLoader.cpp:
2829         (WebCore::DocLoader::needReload):
2830         * loader/DocLoader.h:
2831         Use a HashSet instead of DeprecatedStringList.
2832         
2833         * page/FrameView.h:
2834         Remove declarations that have no functions.
2835         
2836         * platform/SSLKeyGenerator.h:
2837         * platform/mac/SSLKeyGeneratorMac.mm:
2838         (WebCore::supportedKeySizes):
2839         (WebCore::signedPublicKeyAndChallengeString):
2840         Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
2841         DeprecatedString.
2842
2843 2006-09-25  Dave Hyatt  <hyatt@apple.com>
2844
2845         Shunt the RenderTheme world transform adoption between
2846         Cairo and Windows into getWindowsContext and move the method
2847         out of GraphicsContextCairo and into GraphicsContextWin.
2848
2849         * ChangeLog:
2850         * WebCore.vcproj/WebCore/WebCore.vcproj:
2851         * platform/cairo/GraphicsContextCairo.cpp:
2852         * platform/win/GraphicsContextWin.cpp: Added.
2853         (WebCore::GraphicsContext::getWindowsContext):
2854         (WebCore::GraphicsContext::releaseWindowsContext):
2855         * rendering/RenderThemeWin.cpp:
2856         (WebCore::prepareForDrawing):
2857
2858 2006-09-24  Eric Seidel  <eric@eseidel.com>
2859
2860         Reviewed by hyatt.
2861
2862         <svg:a> cannot be styled with a:hover
2863         http://bugs.webkit.org/show_bug.cgi?id=11005
2864         
2865         Test: svg/hixie/cascade/002.xml
2866
2867         * css/cssstyleselector.cpp:
2868         (WebCore::checkPseudoState):
2869
2870 2006-09-24  Sam Weinig  <sam.weinig@gmail.com>
2871
2872         Reviewed by Tim H.
2873
2874         Patch for http://bugs.webkit.org/show_bug.cgi?id=10882
2875         SVG needs Obj-C DOM bindings
2876
2877         - Auto-generate the first 8 Objective-C SVG DOM bindings.  The 
2878           auto-generated classes are DOMSVGAngle, DOMSVGLength, DOMSVGLengthList,
2879           DOMSVGMatrix, DOMSVGPathSeg, DOMSVGPathSegList, DOMSVGTransform, and 
2880           DOMSVGTransformList.
2881
2882         * DerivedSources.make:
2883         * WebCore.xcodeproj/project.pbxproj:
2884         * bindings/objc/DOMInternal.h:
2885         * bindings/objc/DOMSVG.h: Added.
2886         * ksvg2/svg/SVGAngle.idl:
2887         * ksvg2/svg/SVGLength.idl:
2888         * ksvg2/svg/SVGLengthList.idl:
2889         * ksvg2/svg/SVGMatrix.idl:
2890         * ksvg2/svg/SVGPathSeg.idl:
2891         * ksvg2/svg/SVGPathSegList.idl:
2892         * ksvg2/svg/SVGTransform.idl:
2893         * ksvg2/svg/SVGTransformList.idl:
2894
2895 2006-09-24  Rob Buis  <buis@kde.org>
2896
2897         Reviewed by eseidel.
2898
2899         Fix for http://bugs.webkit.org/show_bug.cgi?id=6001
2900         WebKit does not handle fallback custom cursors
2901         Fix for http://bugs.webkit.org/show_bug.cgi?id=6002
2902         WebKit does not properly handle SVG <cursor> element
2903
2904         Add support for svg cursor images. Also make sure hotspot
2905         settings are handled correctly. Add tests for handling of css3
2906         cursor syntax with hotspots in strict and quirks mode. Finally
2907         implement fallback.
2908
2909         * WebCore.xcodeproj/project.pbxproj:
2910         * css/CSSComputedStyleDeclaration.cpp:
2911         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2912         * css/CSSCursorImageValue.cpp: Added.
2913         (WebCore::CSSCursorImageValue::CSSCursorImageValue):
2914         (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
2915         * css/CSSCursorImageValue.h: Added.
2916         (WebCore::CSSCursorImageValue::hotspot):
2917         * css/cssparser.cpp:
2918         (WebCore::CSSParser::parseValue):
2919         * css/cssstyleselector.cpp:
2920         (WebCore::CSSStyleSelector::applyProperty):
2921         * ksvg2/svg/SVGCursorElement.cpp:
2922         * manual-tests/css3-cursor-fallback-quirks.html: Added.
2923         * manual-tests/css3-cursor-fallback-strict.html: Added.
2924         * manual-tests/cursorfallback.xml: Added.
2925         * page/FrameView.cpp:
2926         (WebCore::selectCursor):
2927         * platform/Cursor.h:
2928         * platform/mac/CursorMac.mm:
2929         (WebCore::createCustomCursor):
2930         (WebCore::Cursor::Cursor):
2931         * platform/qt/CursorQt.cpp:
2932         (WebCore::Cursor::Cursor):
2933         * rendering/RenderStyle.cpp:
2934         (WebCore::StyleInheritedData::StyleInheritedData):
2935         (WebCore::StyleInheritedData::operator==):
2936         (WebCore::RenderStyle::diff):
2937         (WebCore::RenderStyle::addCursor):
2938         (WebCore::RenderStyle::addSVGCursor):
2939         (WebCore::RenderStyle::setCursorList):
2940         (WebCore::RenderStyle::clearCursorList):
2941         * rendering/RenderStyle.h:
2942         (WebCore::CursorData::CursorData):
2943         (WebCore::CursorList::operator[]):
2944         (WebCore::CursorList::size):
2945         (WebCore::CursorList::append):
2946         (WebCore::RenderStyle::cursors):
2947
2948 2006-09-24  Sam Weinig  <sam.weinig@gmail.com>
2949
2950         Reviewed by Tim H.
2951
2952         Patch for http://bugs.webkit.org/show_bug.cgi?id=11009
2953         Auto-generate the internal methods interfaces for the Objective-C bindings
2954
2955         - Auto-generate the internal method declarations into their own files
2956           named in the form DOMFooBarInternal.h for class DOMFooBar.
2957
2958         - Remove all use of DOM_cast from code.
2959
2960         - Assorted cleanups.
2961
2962         * WebCore.xcodeproj/project.pbxproj:
2963         * bindings/objc/DOM.mm:
2964         (-[DOMNode _initWithNode:WebCore::]):
2965         (-[DOMNode WebCore::]):
2966         (-[DOMRange dealloc]):
2967         (-[DOMRange finalize]):
2968         (-[DOMRange _initWithRange:WebCore::]):
2969         (-[DOMRange WebCore::]):
2970         (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
2971         (-[DOMNodeFilter WebCore::]):
2972         (-[DOMNodeFilter dealloc]):
2973         (-[DOMNodeFilter finalize]):
2974         (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
2975         (-[DOMNodeIterator WebCore::]):
2976         (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
2977         (-[DOMTreeWalker WebCore::]):
2978         * bindings/objc/DOMAbstractView.mm:
2979         (-[DOMAbstractView _initWithAbstractView:WebCore::]):
2980         * bindings/objc/DOMCSS.mm:
2981         (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
2982         (-[DOMCSSRule _initWithRule:WebCore::]):
2983         (-[DOMCSSValue _initWithValue:WebCore::]):
2984         * bindings/objc/DOMEvents.mm:
2985         (-[DOMEvent _initWithEvent:WebCore::]):
2986         * bindings/objc/DOMHTMLAppletElement.mm:
2987         (-[DOMHTMLAppletElement align]):
2988         (-[DOMHTMLAppletElement setAlign:]):
2989         (-[DOMHTMLAppletElement alt]):
2990         (-[DOMHTMLAppletElement setAlt:]):
2991         (-[DOMHTMLAppletElement archive]):
2992         (-[DOMHTMLAppletElement setArchive:]):
2993         (-[DOMHTMLAppletElement code]):
2994         (-[DOMHTMLAppletElement setCode:]):
2995         (-[DOMHTMLAppletElement codeBase]):
2996         (-[DOMHTMLAppletElement setCodeBase:]):
2997         (-[DOMHTMLAppletElement height]):
2998         (-[DOMHTMLAppletElement setHeight:]):
2999         (-[DOMHTMLAppletElement hspace]):
3000         (-[DOMHTMLAppletElement setHspace:]):
3001         (-[DOMHTMLAppletElement name]):
3002         (-[DOMHTMLAppletElement setName:]):
3003         (-[DOMHTMLAppletElement object]):
3004         (-[DOMHTMLAppletElement setObject:]):
3005         (-[DOMHTMLAppletElement vspace]):
3006         (-[DOMHTMLAppletElement setVspace:]):
3007         (-[DOMHTMLAppletElement width]):
3008         (-[DOMHTMLAppletElement setWidth:]):
3009         * bindings/objc/DOMInternal.h:
3010         (getDOMWrapper):
3011         (addDOMWrapper):
3012         (raiseOnDOMError):
3013         * bindings/objc/DOMXPath.mm:
3014         (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
3015         * bindings/scripts/CodeGeneratorObjC.pm:
3016
3017 2006-09-24  Nikolas Zimmermann  <zimmermann@kde.org>
3018
3019         Reviewed by eseidel.
3020
3021         Fix Qt/Linux build after Dave's Scrollbar changes.
3022
3023         * platform/qt/PlatformScrollBar.h: (Somehow this contained the file twice! Removed one instance!)
3024         * platform/qt/TemporaryLinkStubs.cpp:
3025         (WebCore::ScrollBar::setProportion):
3026         (WebCore::PlatformScrollBar::updateThumbPosition):
3027         (WebCore::PlatformScrollBar::updateThumbProportion):
3028
3029 2006-09-24  Nikolas Zimmermann  <zimmermann@kde.org>
3030
3031         Reviewed by eseidel.
3032
3033         Qt/Linux build system changes: enable xpath/xslt by default.
3034         Offer possibility to change all of these using 'ccmake'.
3035
3036         * CMakeLists.txt:
3037
3038 2006-09-24  Dave Hyatt  <hyatt@apple.com>
3039
3040         Cleanup of Scrollbar APIs.  Rename setKnobProportion to setProportion.  Rename setScrollbarValue to updateThumbPosition.
3041         Give setProportion a base class implementation and implement it using the same pattern as setValue/updateThumbPosition (so that
3042         the base calls a protected virtual function, updateThumbProportion, implemented by the derived class to update the actual scrollbar itself).
3043
3044         * platform/ScrollBar.cpp:
3045         (WebCore::ScrollBar::setValue):
3046         (WebCore::ScrollBar::setProportion):
3047         * platform/ScrollBar.h:
3048         (WebCore::ScrollBar::value):
3049         * platform/mac/PlatformScrollBar.h:
3050         * platform/mac/PlatformScrollBarMac.mm:
3051         (WebCore::PlatformScrollBar::updateThumbPosition):
3052         (WebCore::PlatformScrollBar::updateThumbProportion):
3053         * platform/win/PlatformScrollBar.h:
3054         * platform/win/TemporaryLinkStubs.cpp:
3055         (PlatformScrollBar::updateThumbPosition):
3056         (PlatformScrollBar::updateThumbProportion):
3057         * rendering/RenderLayer.cpp:
3058         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
3059
3060 2006-09-23  Alexey Proskuryakov  <ap@nypop.com>
3061
3062         Reviewed by Eric.
3063
3064         http://bugs.webkit.org/show_bug.cgi?id=4872
3065         XMLHttpRequest fails to throw an exception when there is a security violation
3066         (mismatching domains)
3067
3068         Raise an exception if there is a security violation, and also in cases required by
3069         the current draft of XHR specification.
3070
3071         * bindings/js/JSXMLHttpRequest.cpp:
3072         (KJS::JSXMLHttpRequest::getValueProperty): Raise an exception if a DOM method reports one.
3073         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Raise an exception if a DOM method
3074         reports one, and also if there were too few arguments passed. 
3075
3076         * bindings/js/kjs_binding.cpp:
3077         (KJS::setDOMException): Added support for custom XHR exceptions.
3078
3079         * xml/xmlhttprequest.h: Changed state names to match the current spec. Defined an
3080         exception code range for XHR exceptions.
3081
3082         * xml/xmlhttprequest.cpp:
3083         (WebCore::XMLHttpRequest::open): Removed a check for m_aborted that could never succeed.
3084         (WebCore::XMLHttpRequest::send):
3085         (WebCore::XMLHttpRequest::setRequestHeader):
3086         (WebCore::XMLHttpRequest::getStatus):
3087         (WebCore::XMLHttpRequest::getStatusText):
3088         (WebCore::XMLHttpRequest::processSyncLoadResults):
3089         (WebCore::XMLHttpRequest::receivedAllData):
3090         (WebCore::XMLHttpRequest::receivedData):
3091
3092 2006-09-22  Steve Falkenburg  <sfalken@apple.com>
3093
3094         Reviewed by Jeff Jenkins.
3095
3096         Tweak CF types.
3097
3098         * platform/cf/ResourceLoaderCFNet.cpp:
3099         (WebCore::willCacheResponse):
3100
3101 2006-09-22  Justin Garcia  <justin.garcia@apple.com>
3102
3103         Reviewed by darin
3104
3105         <http://bugs.webkit.org/show_bug.cgi?id=8029>
3106         Rename Node::isAncestor and RenderObject::hasAncestor to isDescendantOf
3107
3108         * dom/Document.cpp:
3109         (WebCore::Document::clearSelectionIfNeeded):
3110         * dom/Element.cpp:
3111         (WebCore::Element::contains):
3112         * dom/Node.cpp:
3113         (WebCore::Node::traverseNextNode):
3114         (WebCore::Node::traverseNextSibling):
3115         (WebCore::Node::traversePreviousNodePostOrder):
3116         (WebCore::Node::checkAddChild):
3117         (WebCore::Node::isDescendantOf):
3118         * dom/Node.h:
3119         * dom/NodeIterator.cpp:
3120         (WebCore::NodeIterator::notifyBeforeNodeRemoval):
3121         * editing/ApplyStyleCommand.cpp:
3122         (WebCore::ApplyStyleCommand::applyBlockStyle):
3123         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
3124         (WebCore::ApplyStyleCommand::applyInlineStyle):
3125         (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode):
3126         * editing/CompositeEditCommand.cpp:
3127         (WebCore::CompositeEditCommand::mergeIdenticalElements):
3128         (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
3129         * editing/DeleteSelectionCommand.cpp:
3130         (WebCore::updatePositionForNodeRemoval):
3131         (WebCore::DeleteSelectionCommand::handleGeneralDelete):
3132         (WebCore::DeleteSelectionCommand::mergeParagraphs):
3133         * editing/FormatBlockCommand.cpp:
3134         (WebCore::FormatBlockCommand::doApply):
3135         * editing/IndentOutdentCommand.cpp:
3136         (WebCore::enclosingListOrBlockquote):
3137         * editing/Selection.cpp:
3138         (WebCore::Selection::validate):
3139         * editing/SelectionController.cpp:
3140         (WebCore::SelectionController::nodeWillBeRemoved):
3141         * editing/TextIterator.cpp:
3142         (WebCore::SimplifiedBackwardsTextIterator::advance):
3143         * editing/VisiblePosition.cpp:
3144         (WebCore::VisiblePosition::next):
3145         (WebCore::VisiblePosition::previous):
3146         (WebCore::VisiblePosition::canonicalPosition):
3147         (WebCore::isFirstVisiblePositionInNode):
3148         (WebCore::isLastVisiblePositionInNode):
3149         * editing/htmlediting.cpp:
3150         (WebCore::firstEditablePositionAfterPositionInRoot):
3151         (WebCore::lastEditablePositionBeforePositionInRoot):
3152         (WebCore::enclosingNodeWithTag):
3153         (WebCore::enclosingList):
3154         (WebCore::enclosingListChild):
3155         * editing/markup.cpp:
3156         (WebCore::createMarkup):
3157
3158 2006-09-22  Timothy Hatcher  <timothy@apple.com>
3159
3160         Reviewed by Darin.
3161
3162         - Added @property syntax to non-generated headers
3163           inside #ifndef BUILDING_ON_TIGER.
3164         - Changed the DOMEventTarget protocol to have have new versions
3165           of addEventListener and removeEventListener with named parameters.
3166           These old style methods can be removed once Mail changes to use
3167           the new methods <rdar://problem/4746649>.
3168
3169         * WebCorePrefix.h: define BUILDING_ON_TIGER when Tiger is the target
3170         * bindings/objc/DOM.mm:
3171         (-[DOMNode addEventListener:listener:useCapture:]):
3172         (-[DOMNode addEventListener:::]): call the new method
3173         (-[DOMNode removeEventListener:listener:useCapture:]):
3174         (-[DOMNode removeEventListener:::]): call the new method
3175         * bindings/objc/DOMAbstractView.h:
3176         * bindings/objc/DOMEventTarget.h:
3177         * bindings/objc/DOMHTMLAppletElement.h:
3178         * bindings/objc/DOMHTMLEmbedElement.h:
3179         * bindings/objc/DOMHTMLOptionElement.h:
3180         * bindings/objc/DOMObject.h:
3181         * bindings/objc/DOMRGBColor.h:
3182
3183 2006-09-22  Nikolas Zimmermann  <zimmermann@kde.org>
3184
3185         Reviewed by Eric.
3186
3187         Fix Qt/Linux build and a really stupid mixup in GraphicsContextQt.
3188
3189         * platform/qt/FrameQt.cpp:
3190         * platform/qt/GraphicsContextQt.cpp:
3191         (WebCore::GraphicsContext::translate): Make it actually translate, not scale! :-)
3192         (WebCore::GraphicsContext::origin):
3193         * platform/qt/PlatformScrollBar.h: Added.
3194         (WebCore::PlatformScrollBar::isWidget):
3195         * platform/qt/WidgetQt.cpp:
3196         (WebCore::Widget::invalidate):
3197         (WebCore::Widget::invalidateRect):
3198
3199 2006-09-22  Dave Hyatt <hyatt@apple.com>
3200
3201         Super-minor tweaks to the systemFont function on Mac.
3202         Set the generic family to None rather than to Serif, and
3203         don't waste time setting the computed size, since that is
3204         set from the specified size over in CSSStyleSelector anyway.
3205
3206         * rendering/RenderThemeMac.mm:
3207         (WebCore::RenderThemeMac::systemFont):
3208
3209 2006-09-22  Timothy Hatcher  <timothy@apple.com>
3210
3211         Reviewed by Brady.
3212
3213         Build fix for Xcode 2.3. Convert GraphicsContext::translate() to
3214         take floats. There was already an implicit conversion to float/double
3215         when calling CGContextTranslateCTM or cairo_translate.
3216
3217         * platform/GraphicsContext.h:
3218         * platform/cairo/GraphicsContextCairo.cpp:
3219         (WebCore::GraphicsContext::translate):
3220         * platform/cg/GraphicsContextCG.cpp:
3221         (WebCore::GraphicsContext::translate):
3222
3223 2006-09-22  Brady Eidson  <beidson@apple.com>
3224
3225         Reviewed by Sfalken
3226
3227         Add redirect and other cleanup to ResourceLoaderWin.cpp
3228         Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10927
3229         Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10744
3230
3231         * WebCore.xcodeproj/project.pbxproj:
3232         * platform/ResourceLoader.h:
3233         * platform/win/ResourceLoaderWin.cpp:
3234         (WebCore::ResourceLoaderWndProc):
3235         (WebCore::initializeOffScreenResourceLoaderWindow):
3236         (WebCore::ResourceLoader::onHandleCreated):
3237         (WebCore::ResourceLoader::onRequestRedirected):
3238         (WebCore::ResourceLoader::onRequestComplete):
3239         (WebCore::transferJobStatusCallback):
3240
3241 2006-09-22  Alexey Proskuryakov  <ap@nypop.com>
3242
3243         Reviewed by Geoff.
3244
3245         http://bugs.webkit.org/show_bug.cgi?id=10803
3246         REGRESSION (r15536-r15544): manual-tests/bugzilla-6821.html failing
3247
3248         * page/FrameView.cpp:
3249         (WebCore::FrameView::hoverTimerFired): Use the current event.
3250
3251 2006-09-22  Nikolas Zimmermann  <zimmermann@kde.org>
3252
3253         Reviewed by Anders.
3254
3255         Fix (last) svg memory leak.
3256
3257         * ksvg2/svg/SVGTransformable.cpp: delete 't' in error case.
3258         (SVGTransformable::parseTransformAttribute):
3259
3260 2006-09-22  Eric Seidel  <eric@eseidel.com>
3261
3262         No review necessary, just removing a dead file.
3263
3264         Remove unused file (added previously by mistake) to make room for real implementation.
3265
3266         * platform/mac/BitmapImageMac.mm: Removed.
3267
3268 2006-09-22  Dave Hyatt <hyatt@apple.com>
3269
3270         Move PlatformScrollBar.h down into the platforms.
3271         
3272         Reviewed by andersca
3273
3274         * platform/PlatformScrollBar.h: Removed.
3275         * platform/win/PlatformScrollBar.h: Added.
3276         * platform/mac/PlatformScrollBar.h: Added.
3277
3278 2006-09-22   Dave Hyatt  <hyatt@apple.com>
3279
3280         Add support for invalidation of widgets.  This will be needed for the Win32 widget subsystem (and for
3281         any widget subsystems that don't have any underlying native objects backing the widgets.
3282
3283         Reviewed by anders
3284
3285         * platform/Widget.h:
3286         * platform/mac/WidgetMac.mm:
3287         (WebCore::Widget::invalidate):
3288         (WebCore::Widget::invalidateRect):
3289         * platform/win/TemporaryLinkStubs.cpp:
3290         (Widget::invalidate):
3291         (Widget::invalidateRect):
3292
3293 2006-09-22  Rob Buis  <buis@kd.org>
3294
3295         Reviewed by eseidel.
3296
3297         http://bugs.webkit.org/show_bug.cgi?id=10901
3298         Merge build fixes from unity
3299
3300         * CMakeLists.txt:
3301
3302 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
3303
3304         Reviewed by eseidel.
3305
3306         http://bugs.webkit.org/show_bug.cgi?id=10977
3307         SVGDocument does not expose 'rootElement' property
3308
3309         Enable 'rootElement' property.
3310
3311         * ksvg2/svg/SVGDocument.idl:
3312
3313 2006-09-21  Steve Falkenburg  <sfalken@apple.com>
3314
3315         Tweak includes.
3316
3317         * platform/ResourceLoaderInternal.h:
3318
3319 2006-09-21  Geoffrey Garen  <ggaren@apple.com>
3320
3321         build fixed. band happy.
3322         
3323         * platform/cg/GraphicsContextCG.cpp:
3324         (WebCore::GraphicsContext::translate):
3325         * platform/mac/WidgetMac.mm:
3326
3327 2006-09-21  Geoffrey Garen  <ggaren@apple.com>
3328
3329         Reviewed by Maciej.
3330         
3331         Some Widget refactoring.
3332
3333         * WebCore.vcproj/WebCore/WebCore.vcproj:
3334         * bridge/mac/FrameMac.mm:
3335         * bridge/win/FrameWin.cpp:
3336         (WebCore::FrameWin::runJavaScriptAlert):
3337         (WebCore::FrameWin::runJavaScriptConfirm):
3338         * bridge/win/PageWin.cpp:
3339         (WebCore::Page::Page):
3340         (WebCore::rootWindowForFrame):
3341         * html/CanvasRenderingContext2D.cpp:
3342         (WebCore::CanvasRenderingContext2D::translate):
3343         * page/FrameView.cpp:
3344         (WebCore::FrameView::isFrameView):
3345         * page/Page.h:
3346         (WebCore::Page::setInstanceHandle):
3347         (WebCore::Page::instanceHandle):
3348         * platform/GraphicsContext.h:
3349         * platform/ScrollView.h:
3350         * platform/Widget.h:
3351         * platform/cairo/GraphicsContextCairo.cpp:
3352         (WebCore::GraphicsContext::translate):
3353         (WebCore::GraphicsContext::origin):
3354         * platform/mac/WidgetMac.mm:
3355         (WebCore::Widget::clearFocus):
3356         * platform/win/ResourceLoaderWin.cpp:
3357         (WebCore::initializeOffScreenResourceLoaderWindow):
3358         * platform/win/ScreenWin.cpp:
3359         (WebCore::monitorInfo):
3360         * platform/win/ScrollViewWin.cpp:
3361         (WebCore::ScrollView::updateContents):
3362         (WebCore::ScrollView::visibleWidth):
3363         (WebCore::ScrollView::visibleHeight):
3364         (WebCore::ScrollView::visibleContentRect):
3365         (WebCore::ScrollView::viewportToContents):
3366         (WebCore::ScrollView::contentsToViewport):
3367         (WebCore::ScrollView::scrollBy):
3368         (WebCore::ScrollView::updateScrollInfo):
3369         (WebCore::ScrollView::updateScrollBars):
3370         * platform/win/SharedTimerWin.cpp:
3371         (WebCore::initializeOffScreenTimerWindow):
3372         * platform/win/TemporaryLinkStubs.cpp:
3373         (FrameView::updateBorder):
3374         (ScrollView::paint):
3375         (GraphicsContext::clip):
3376         * platform/win/WidgetWin.cpp:
3377         (WebCore::Widget::Widget):
3378         (WebCore::Widget::parentWindow):
3379         (WebCore::Widget::setParentWindow):
3380         (WebCore::Widget::frameGeometry):
3381         (WebCore::Widget::hasFocus):
3382         (WebCore::Widget::setFocus):
3383         (WebCore::Widget::show):
3384         (WebCore::Widget::hide):
3385         (WebCore::Widget::setFrameGeometry):
3386
3387 2006-09-22  Anders Carlsson  <acarlsson@apple.com>
3388
3389         Reviewed by Tim H.
3390
3391         * platform/TextEncoding.cpp:
3392         (WebCore::TextEncoding::backslashAsCurrencySymbol):
3393         Add comment clarifying why backslashAsCurrencySymbol is needed.
3394
3395 2006-09-21  Sean Gies  <seangies@apple.com>
3396
3397         Reviewed by Adam Roben.
3398
3399         Add utility functions to get and release HDC from GraphicsContext.
3400
3401         * platform/GraphicsContext.h: Add utilities to get and release HDC.
3402         * platform/cairo/GraphicsContextCairo.cpp: Implement new utilities.
3403         * rendering/RenderThemeWin.cpp: Switch to new utilities.
3404
3405 2006-09-21  Justin Garcia  <justin.garcia@apple.com>
3406
3407         Reviewed by anders
3408         
3409         <rdar://problem/4426622>
3410         Plain text paste slow.  Time spent mostly in WebCore::rebalanceWhitespaceInTextNode(...)
3411
3412         * editing/htmlediting.cpp:
3413         (WebCore::rebalanceWhitespaceInTextNode): We no longer need to use a RegExp replace because we
3414         aren't producing complicated sequences here.  Use multiple UChar -> UChar replaces instead for speed.
3415         Got rid of uses of DepricatedString.
3416
3417 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
3418
3419         Reviewed by eseidel.
3420
3421         Don't crash if no IconDatabase is available (ie. on Qt/Gdk)
3422
3423         * page/Frame.cpp:
3424         (WebCore::Frame::endIfNotLoading):
3425
3426 2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
3427
3428         Reviewed by eseidel.
3429
3430         Fix Qt/Linux build.
3431
3432         * CMakeLists.txt:
3433         * kcanvas/device/qt/KCanvasClipperQt.h:
3434         * kcanvas/device/qt/KRenderingDeviceQt.cpp:
3435         * platform/qt/FrameQt.cpp:
3436         (WebCore::FrameQt::isLoadTypeReload):
3437         (WebCore::FrameQt::originalRequestURL):
3438         * platform/qt/FrameQt.h:
3439         * platform/qt/GraphicsContextQt.cpp:
3440         (WebCore::GraphicsContext::concatCTM):
3441         * platform/qt/ScrollViewQt.cpp:
3442         (WebCore::ScrollView::wheelEvent):
3443         * platform/qt/TemporaryLinkStubs.cpp:
3444         (WebCore::IconDatabase::setIconURLForPageURL):
3445
3446 2006-09-20  Justin Garcia  <justin.garcia@apple.com>
3447
3448         Reviewed by john
3449         
3450         <http://bugs.webkit.org/show_bug.cgi?id=7165>
3451         TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
3452
3453         * editing/MoveSelectionCommand.cpp:
3454         (WebCore::MoveSelectionCommand::MoveSelectionCommand): Set the document
3455         to the position-to-move-to's document, not the fragment's document.  The 
3456         fragment's document is the document used to create the fragment and is irrelavant.
3457
3458 === Safari-521.27 ===
3459
3460 2006-09-21  Brady Eidson  <beidson@apple.com>
3461
3462         Reviewed by Anders
3463
3464         When your assumption is "IconDatabase::sharedIconDatabase()" will never fail but it does, you're in trouble
3465         This fixes Spinneret so it won't crash on its first load!
3466
3467         * page/Frame.cpp:
3468         (WebCore::Frame::endIfNotLoading):
3469
3470 2006-09-21  Brady Eidson  <beidson@apple.com>
3471
3472         Build fix
3473
3474         * platform/win/TemporaryLinkStubs.cpp:
3475         (ScrollView::wheelEvent):
3476
3477 2006-09-20  Rob Buis  <buis@kde.org>
3478
3479         Reviewed by eseidel.
3480
3481         http://bugs.webkit.org/show_bug.cgi?id=10946
3482         new marker code draws end-marker in wrong place
3483
3484         Keep track of the start of the subpath so we can handle
3485         closeTo/moveTo correctly.
3486
3487         * kcanvas/RenderPath.cpp:
3488         (WebCore::DrawMarkersData::DrawMarkersData):
3489         (WebCore::updateMarkerDataForElement):
3490
3491 2006-09-21  David Hyatt <hyatt@apple.com>
3492
3493         Wheel scrolling prep for Win32.
3494
3495         WARNING: NO TEST CASES ADDED OR CHANGED
3496
3497         * platform/PlatformWheelEvent.h:
3498         * platform/ScrollBar.h:
3499         * platform/ScrollView.h:
3500         * platform/mac/ScrollViewMac.mm:
3501         (WebCore::ScrollView::wheelEvent):
3502         * rendering/RenderLayer.cpp:
3503
3504 2006-09-20  Timothy Hatcher  <timothy@apple.com>
3505
3506         Reviewed by Hyatt.
3507
3508         Bug 10917: REGRESSION (r16027): iFrame transparency broken
3509         http://bugs.webkit.org/show_bug.cgi?id=10917
3510
3511         Don't paint the base background color if we transparent.
3512
3513         * rendering/RenderBox.cpp:
3514         (WebCore::RenderBox::paintBackgroundExtended):
3515
3516 2006-09-20  Adam Roben  <aroben@apple.com>
3517
3518         Reviewed by andersca.
3519
3520         * platform/FileChooser.h: Remove no-longer-necessary namespace std
3521
3522 2006-09-20  Eric Seidel  <eric@eseidel.com>
3523
3524         Reviewed by beth.
3525
3526         Cleanup style in KCanvas.
3527         Remove extra white-space, unneeded arguments, etc.
3528
3529         * WebCore.xcodeproj/project.pbxproj:
3530         * kcanvas/KCanvasClipper.cpp:
3531         (WebCore::operator<<):
3532         (WebCore::KCanvasClipper::externalRepresentation):
3533         * kcanvas/KCanvasClipper.h:
3534         * kcanvas/KCanvasFilters.cpp:
3535         (WebCore::KCanvasFilter::externalRepresentation):
3536         (WebCore::operator<<):
3537         (WebCore::KCanvasFilterEffect::externalRepresentation):
3538         (WebCore::KCPointLightSource::externalRepresentation):
3539         (WebCore::KCSpotLightSource::externalRepresentation):
3540         (WebCore::KCDistantLightSource::externalRepresentation):
3541         (WebCore::KCanvasFEBlend::externalRepresentation):
3542         (WebCore::KCanvasFEColorMatrix::externalRepresentation):
3543         (WebCore::KCanvasFEComponentTransfer::externalRepresentation):
3544         (WebCore::KCanvasFEComposite::externalRepresentation):
3545         (WebCore::KCanvasFEConvolveMatrix::externalRepresentation):
3546         (WebCore::KCanvasFEDiffuseLighting::externalRepresentation):
3547         (WebCore::KCanvasFEDisplacementMap::externalRepresentation):
3548         (WebCore::KCanvasFEFlood::externalRepresentation):
3549         (WebCore::KCanvasFEGaussianBlur::externalRepresentation):
3550         (WebCore::KCanvasFEImage::externalRepresentation):
3551         (WebCore::KCanvasFEMerge::externalRepresentation):
3552         (WebCore::KCanvasFEMorphology::externalRepresentation):
3553         (WebCore::KCanvasFEOffset::externalRepresentation):
3554         (WebCore::KCanvasFESpecularLighting::externalRepresentation):
3555         (WebCore::KCanvasFETile::externalRepresentation):
3556         (WebCore::KCanvasFETurbulence::externalRepresentation):
3557         * kcanvas/KCanvasFilters.h:
3558         (WebCore::KCanvasFEDiffuseLighting::lightSource):
3559         (WebCore::KCanvasFESpecularLighting::lightSource):
3560         * kcanvas/KCanvasImage.h:
3561         * kcanvas/KCanvasMarker.cpp:
3562         (WebCore::KCanvasMarker::externalRepresentation):
3563         * kcanvas/KCanvasMarker.h:
3564         * kcanvas/KCanvasResource.cpp:
3565         (WebCore::operator<<):
3566         * kcanvas/KCanvasResource.h:
3567         * kcanvas/KCanvasTreeDebug.cpp:
3568         (WebCore::operator<<):
3569         (WebCore::writeIndent):
3570         (WebCore::writeStyle):
3571         (WebCore::write):
3572         (WebCore::writeRenderResources):
3573         * kcanvas/KCanvasTreeDebug.h:
3574         (WebCore::operator<<):
3575         * kcanvas/RenderForeignObject.cpp:
3576         (WebCore::RenderForeignObject::paint):
3577         * kcanvas/RenderPath.cpp:
3578         (WebCore::RenderPath::paint):
3579         (WebCore::drawStartAndMidMarkers):
3580         * kcanvas/RenderSVGContainer.cpp:
3581         (WebCore::RenderSVGContainer::paint):
3582         * kcanvas/RenderSVGImage.cpp:
3583         (WebCore::RenderSVGImage::translateForAttributes):
3584         * kcanvas/RenderSVGImage.h:
3585         * kcanvas/device/KRenderingDevice.cpp:
3586         (WebCore::KRenderingDevice::currentContext):
3587         (WebCore::KRenderingDevice::popContext):
3588         (WebCore::KRenderingDevice::pushContext):
3589         * kcanvas/device/KRenderingDevice.h:
3590         * kcanvas/device/KRenderingFillPainter.h:
3591         * kcanvas/device/KRenderingPaintServer.h:
3592         (WebCore::KRenderingPaintServer::KRenderingPaintServer):
3593         (WebCore::KRenderingPaintServer::activeClient):
3594         (WebCore::KRenderingPaintServer::setActiveClient):
3595         * kcanvas/device/KRenderingPaintServerGradient.cpp:
3596         (WebCore::operator<<):
3597         (WebCore::KRenderingPaintServerGradient::externalRepresentation):
3598         (WebCore::KRenderingPaintServerLinearGradient::externalRepresentation):
3599         (WebCore::KRenderingPaintServerGradient::listener):
3600         (WebCore::KRenderingPaintServerGradient::setListener):
3601         (WebCore::KRenderingPaintServerRadialGradient::externalRepresentation):
3602         * kcanvas/device/KRenderingPaintServerGradient.h:
3603         * kcanvas/device/KRenderingPaintServerPattern.cpp:
3604         (WebCore::KRenderingPaintServerPattern::tile):
3605         (WebCore::KRenderingPaintServerPattern::setTile):
3606         (WebCore::KRenderingPaintServerPattern::listener):
3607         (WebCore::KRenderingPaintServerPattern::setListener):
3608         (WebCore::KRenderingPaintServerPattern::externalRepresentation):
3609         * kcanvas/device/KRenderingPaintServerPattern.h:
3610         * kcanvas/device/KRenderingPaintServerSolid.cpp:
3611         (WebCore::KRenderingPaintServerSolid::externalRepresentation):
3612         * kcanvas/device/KRenderingPaintServerSolid.h:
3613         * kcanvas/device/KRenderingStrokePainter.cpp:
3614         (WebCore::KRenderingStrokePainter::strokeMiterLimit):
3615         (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
3616         * kcanvas/device/KRenderingStrokePainter.h:
3617         * kcanvas/device/quartz/KCanvasFilterQuartz.h:
3618         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
3619         (WebCore::KCanvasFilterQuartz::prepareFilter):
3620         * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
3621         * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
3622         (WebCore::KCanvasMaskerQuartz::applyMask):
3623         * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
3624         (WebCore::KCanvasImageQuartz::init):
3625         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm: