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