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