Fix by Mitz Pettel, reviewed by Eric.
[WebKit-https.git] / WebCore / ChangeLog
1 2006-04-19  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2
3         Reviewed by Eric, landed by ap.
4
5         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8469
6           CRASH: WebCore::CSSParser::parseDashboardRegions when attr() is passed
7
8         Test: fast/css/dashboard-regions-attr-crash.html
9
10         * css/cssparser.cpp:
11         (WebCore::CSSParser::parseDashboardRegions): Added null check for args.
12
13 2006-04-18  Rob Buis  <buis@kde.org>
14
15         Reviewed by eseidel & darin.  Landed by eseidel.
16
17         No automated tests possible (from javascript).
18
19         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6664:
20         Inspector does not highlight SVG elements properly
21
22         Make sure RenderObject::absoluteBoundingBoxRect works for
23         svg specific render objects by overriding absoluteRects.
24         This fixes highlighting in the Inspector of svg shapes, paths,
25         images and text.
26
27         * kcanvas/RenderPath.cpp:
28         (WebCore::RenderPath::absoluteRects):
29         * kcanvas/RenderPath.h:
30         * kcanvas/RenderSVGImage.cpp:
31         (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
32         (WebCore::RenderSVGImage::absoluteRects):
33         * kcanvas/RenderSVGImage.h:
34         * kcanvas/RenderSVGText.cpp:
35         (WebCore::RenderSVGText::absoluteRects):
36         * kcanvas/RenderSVGText.h:
37
38 2006-04-17  Rob Buis  <buis@kde.org>
39
40         Reviewed by eseidel.  Landed by eseidel.
41
42         Test: svg/custom/tref-update.svg
43
44         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6427:
45         <tref> element not implemented
46
47         Implementation of <tref> element.
48
49         * WebCore.xcodeproj/project.pbxproj:
50         * ksvg2/svg/SVGTRefElement.cpp: Added.
51         (SVGTRefElement::SVGTRefElement):
52         (SVGTRefElement::~SVGTRefElement):
53         (SVGTRefElement::parseMappedAttribute):
54         (SVGTRefElement::closeRenderer):
55         (SVGTRefElement::childShouldCreateRenderer):
56         (SVGTRefElement::createRenderer):
57         * ksvg2/svg/SVGTRefElement.h: Added.
58         (WebCore::SVGTRefElement::rendererIsNeeded):
59         * ksvg2/svg/SVGTSpanElement.cpp:
60         (SVGTSpanElement::childShouldCreateRenderer):
61         * ksvg2/svg/SVGTextElement.cpp:
62         (WebCore::SVGTextElement::childShouldCreateRenderer):
63         * ksvg2/svg/svgtags.in:
64
65 2006-04-18  Darin Adler  <darin@apple.com>
66
67         * rendering/render_form.cpp: (WebCore::RenderSelect::updateFromElement):
68         Roll out accidentally-landed change for bug 8398.
69
70 2006-04-18  Beth Dakin  <bdakin@apple.com>
71
72         Reviewed by Darin.
73
74         Fix for a leak exposed by background-size and detected by the 
75         layout tests.
76
77         * css/css_valueimpl.cpp:
78         (WebCore::CSSPrimitiveValue::cleanup): We must deref pairs.
79
80 2006-04-18  Beth Dakin  <bdakin@apple.com>
81
82         Reviewed by Eric.
83
84         Build fix for Windows. Just a few typos from background-size patch.
85
86         * platform/cairo/GraphicsContextCairo.cpp:
87         (WebCore::GraphicsContext::drawTiledImage):
88         * platform/cairo/ImageCairo.cpp:
89         (WebCore::Image::tileInRect):
90
91 2006-04-18  Beth Dakin  <bdakin@apple.com>
92
93         Reviewed by Hyatt.
94
95         Implementation of CSS3 background-size property. See 
96         http://bugzilla.opendarwin.org/show_bug.cgi?id=8353 for details.
97
98         * Viewer/ImageView.cpp: Adjust parameters to drawTiledImage()
99         * css/CSSComputedStyleDeclaration.cpp: Add background-size
100         * css/CSSPropertyNames.in: Same.
101         * css/css_valueimpl.h: Add a constructor for Pair that takes the 
102         two halves of the pair.
103         * css/cssparser.cpp: Parse background-size. Still need to take care 
104         of parsing the shorthand.
105         * css/cssparser.h: Same.
106         * css/cssstyleselector.cpp: Address background-size.
107         * css/cssstyleselector.h: Same.
108         * platform/GraphicsContext.h: drawTiledImage() now takes the 
109         tileSize so that it can appropriately scale.
110         * platform/Image.h: Same as above, but for tileInRect()
111         * platform/cairo/GraphicsContextCairo.cpp:
112         (WebCore::GraphicsContext::drawTiledImage):
113         * platform/cairo/ImageCairo.cpp:
114         (WebCore::Image::tileInRect): Take care of scaling image in 
115         necessary in Cairo.
116         * platform/mac/GraphicsContextMac.mm:
117         (WebCore::GraphicsContext::drawTiledImage): 
118         * platform/mac/ImageMac.mm:
119         (WebCore::Image::tileInRect): Take care of scaling image if 
120         necessary in CG.
121         * rendering/RenderBox.cpp:
122         (WebCore::RenderBox::paintBackgroundExtended): Compute appropriate 
123         scale if background-size is set. If no-repeat is set, just call 
124         drawImage() directly.
125         * rendering/render_style.cpp: Add background-size to the style.
126         (WebCore::m_next):
127         (WebCore::BackgroundLayer::BackgroundLayer):
128         (WebCore::BackgroundLayer::operator=):
129         (WebCore::BackgroundLayer::operator==):
130         (WebCore::BackgroundLayer::fillUnsetProperties):
131         (WebCore::BackgroundLayer::cullEmptyLayers):
132         * rendering/render_style.h: Same.
133         (WebCore::BackgroundLayer::backgroundSize):
134         (WebCore::BackgroundLayer::isBackgroundSizeSet):
135         (WebCore::BackgroundLayer::setBackgroundSize):
136         (WebCore::BackgroundLayer::clearBackgroundSize):
137         (WebCore::RenderStyle::backgroundSize):
138         (WebCore::RenderStyle::initialBackgroundSize):
139
140 2006-04-17  Justin Garcia  <justin.garcia@apple.com>
141
142         Reviewed by harrison
143
144         * editing/CompositeEditCommand.cpp:
145         (WebCore::CompositeEditCommand::moveParagraph): The placeholder that's inserted 
146         to keep content from collapsing due to pruning was inserted at the position after 
147         the moved paragraph.  That's only appropriate when moving the paragraph backward 
148         into the previous paragraph.
149         
150         * editing/ReplaceSelectionCommand.cpp:
151         (WebCore::ReplaceSelectionCommand::doApply): The last paragraph of the incoming
152         fragment should be merged with the paragraph after the end of the selection being pasted
153         into even if the incoming fragment has only one block.   This fixes a bug and gets
154         rid of a use of the info gathered during the test insertion.
155
156 2006-04-17  Adele Peterson  <adele@apple.com>
157
158         Reviewed by Darin.
159
160         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8407
161         REGRESSION (NativeTextField): Leading and trailing spaces trimmed from text field value attribute
162
163         Test: fast/forms/input-spaces.html
164
165         * rendering/RenderTextField.cpp: (WebCore::RenderTextField::createDivStyle): 
166         Use white-space:pre for the inner div to avoid collapsing spaces in the text field.
167
168 2006-04-18  Mitz Pettel  <opendarwin.org@mitzpettel.com>
169
170         Reviewed by Darin.
171
172         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8437
173           iExploder(#293): Crash in StringImpl::hash()
174
175         * manual-tests/applet-param-no-name.html: Added.
176         * rendering/RenderApplet.cpp:
177         (WebCore::RenderApplet::createWidgetIfNecessary): Skip param elements with
178         empty name.
179
180 2006-04-18  Darin Adler  <darin@apple.com>
181
182         - try to fix the Windows build
183
184         * platform/cairo/GraphicsContextCairo.cpp: (WebCore::setColor):
185         Update for changes to getRGBA.
186
187 2006-04-17  Alexey Proskuryakov  <ap@nypop.com>
188
189         Reviewed by Darin.
190
191         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8440
192         iExploder(#3327): Crash in StringImpl::initWithQChar()
193
194         Test: fast/parser/number-sign-in-map-name.html
195
196         * html/html_imageimpl.cpp:
197         (WebCore::HTMLMapElement::parseMappedAttribute): Fixed handling of names starting with a '#'.
198
199 2006-04-17  Adele Peterson  <adele@apple.com>
200
201         Reviewed by Darin.
202
203         Fix for: http://bugzilla.opendarwin.org/show_bug.cgi?id=8269
204         REGRESSION: disabled text field does not display greyed-out text
205
206         * rendering/RenderTextField.cpp: (WebCore::RenderTextField::createDivStyle): 
207         For disabled text fields, lighten or darken text color based on background color.
208         Tries to get as close as possible to logic in AppKit for old text fields.
209         * platform/Color.h: Removed hsv and setHsv since they were just used within Color.cpp.
210         * platform/Color.cpp:
211         (WebCore::parseHexColor): Cleanup.
212         (WebCore::differenceSquared): Added. Returns the difference squared of two colors.
213         (WebCore::convertRGBToHSV): Added static function. Replaces hsv and setHSV, and fixes bug in old implementation of the algorithm.
214         (WebCore::convertHSVToRGB): ditto.
215         (WebCore::Color::light): No longer takes in a factor, since all callers use the same factor.  Uses new conversion functions.
216         (WebCore::Color::dark): ditto.
217         * rendering/InlineTextBox.cpp: Removed simpleDifferenceBetweenColors.
218         (WebCore::correctedTextColor):  Uses differenceSquared instead of simpleDifferenceBetweenColors.
219
220 2006-04-17  David Hyatt  <hyatt@apple.com>
221
222         Fix for bug 8270, text highlights outside of textfield when it shouldn't.
223
224         Reviewed by darin
225
226         Added fast/forms/input-double-click-selection-gap-bug.html
227
228         * rendering/RenderBlock.cpp:
229         (WebCore::RenderBlock::fillInlineSelectionGaps):
230
231 2006-04-17  David Hyatt  <hyatt@apple.com>
232
233         Fix for bug 8848, caret off by 1 pixel on numerous pixel tests.
234
235         Reviewed by darin
236
237         * rendering/InlineTextBox.cpp:
238         (WebCore::InlineTextBox::positionForOffset):
239         * rendering/RenderText.cpp:
240         (WebCore::RenderText::caretRect):
241
242 2006-04-17  Timothy Hatcher  <timothy@apple.com>
243
244         Reviewed by Darin.
245
246         <rdar://problem/4506601> TOT WebCore fails to build ppc64
247
248         Switch many CG calls to use CGFloat for colors and gradients
249
250         * bindings/objc/DOMCSS.mm:
251         (-[DOMRGBColor dealloc]): cast _internal to uintptr_t
252         (-[DOMRGBColor finalize]): cast _internal to uintptr_t
253         (-[DOMRGBColor red]): cast _internal to uintptr_t
254         (-[DOMRGBColor green]): cast _internal to uintptr_t
255         (-[DOMRGBColor blue]): cast _internal to uintptr_t
256         (-[DOMRGBColor alpha]): cast _internal to uintptr_t
257         (-[DOMRGBColor _color]): cast _internal to uintptr_t
258         * bridge/mac/FrameMac.mm:
259         (WebCore::regExpForLabels): use CFIndex as the type returned from indexOfObject:
260         * bridge/mac/WebCoreFrameBridge.mm:
261         (-[WebCoreFrameBridge baseWritingDirectionForSelectionStart]): workaround for <rdar://problem/4509035>
262         * config.h: define CGFloat if it isn't defined already
263         * html/CanvasGradient.cpp:
264         (WebCore::CanvasGradient::addColorStop):
265         (WebCore::gradientCallback):
266         (WebCore::CanvasGradient::platformShading):
267         * html/CanvasRenderingContext2D.cpp:
268         (WebCore::CanvasRenderingContext2D::setShadow):
269         (WebCore::CanvasRenderingContext2D::applyShadow):
270         (WebCore::CanvasRenderingContext2D::applyStrokePattern):
271         (WebCore::CanvasRenderingContext2D::applyFillPattern):
272         * html/CanvasStyle.cpp:
273         (WebCore::CanvasStyle::applyStrokeColor):
274         (WebCore::CanvasStyle::applyFillColor):
275         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
276         (WebCore::alphaImageForImage):
277         (WebCore::KCanvasFEColorMatrixQuartz::getCIFilter):
278         * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
279         (WebCore::applyLuminanceToAlphaFilter):
280         (WebCore::applyExpandAlphatoGrayscaleFilter):
281         (WebCore::transformImageIntoGrayscaleMask):
282         * kcanvas/device/quartz/KCanvasPathQuartz.mm:
283         (WebCore::scratchContext):
284         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
285         (WebCore::cgGradientCallback):
286         (WebCore::CGShadingRefForLinearGradient):
287         (WebCore::CGShadingRefForRadialGradient):
288         (WebCore::KRenderingPaintServerGradientQuartz::updateQuartzGradientStopsCache):
289         * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
290         (WebCore::):
291         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
292         (WebCore::KRenderingPaintServerPatternQuartz::setup):
293         * kcanvas/device/quartz/QuartzSupport.mm:
294         (WebCore::applyStrokeStyleToContext):
295         * kwq/WebCoreAXObject.mm:
296         (CreateCGColorIfDifferent):
297         * platform/Color.cpp:
298         (WebCore::Color::getRGBA): new name, was getRgbaF. getRGBA uses float and has a double overload
299         * platform/Color.h:
300         * platform/mac/ClipboardMac.h: no need to define NSDragOperation
301         * platform/mac/ColorMac.mm:
302         (+[WebCoreControlTintObserver WebCore]):
303         * platform/mac/GraphicsContextMac.mm:
304         (WebCore::GraphicsContext::drawLine):
305         * platform/mac/ImageMac.mm:
306         (WebCore::Image::checkForSolidColor):
307         (WebCore::Image::tileInRect):
308         (WebCore::Image::scaleAndTileInRect):
309         * platform/mac/TextEncodingMac.cpp:
310         (WebCore::TextEncoding::fromUnicode):
311
312 2006-04-17  Justin Garcia  <justin.garcia@apple.com>
313
314         Reviewed by darin
315         
316         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8402>
317         Fix interchange newline handling and avoid use of test rendering info
318
319         * editing/ReplaceSelectionCommand.cpp:
320         (WebCore::ReplaceSelectionCommand::doApply):
321         Fixed bugs in handling of interchange newlines at the end of incoming 
322         fragments.  Removed the use of !fragment.isBlockFlow since it isn't 
323         correct and relies on information gathered during the test insertion, which 
324         we're trying to get rid of. 
325         * editing/VisiblePosition.h:
326         (WebCore::VisiblePosition::rootEditableElement): Added for convenience.
327
328 2006-04-16  Mitz Pettel  <opendarwin.org@mitzpettel.com>
329
330         Reviewed by Darin.
331
332         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8408
333           Paint the highlight behind selected list markers
334
335         Test: fast/lists/markers-in-selection.html
336
337         * rendering/RenderObject.h: Added selectionColorImageOverlayAlpha constant -
338         the maximum opacity of the selection color when painted over images.
339         * rendering/render_list.cpp:
340         (WebCore::RenderListMarker::RenderListMarker):
341         (WebCore::RenderListMarker::paint): Paint the selection highlight
342         if selected: over the marker for image markers, under the marker for all other
343         markers.
344         (WebCore::RenderListMarker::setSelectionState): Added.
345         (WebCore::RenderListMarker::selectionRect): Added.
346         (WebCore::RenderListMarker::selectionColor): Added. Ensures that the selection
347         color is transparent for image markers.
348         * rendering/render_list.h:
349         (WebCore::RenderListMarker::selectionState):
350         (WebCore::RenderListMarker::canBeSelectionLeaf):
351         * rendering/render_replaced.cpp
352         (WebCore::RenderReplaced::selectionColor): Changed to use the selectionColorImageOverlayAlpha
353         constant.
354
355 2006-04-16  Mitz Pettel  <opendarwin.org@mitzpettel.com>
356
357         Reviewed by Darin.
358
359         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8420
360           iExploder(#12): Assertion failure in RenderContainer::removeChildNode
361
362         Test: fast/forms/button-inner-block-reuse.html
363
364         Buttons have a distinguished anonymous child that holds all their other
365         descendants. Descendants ended up in a sibling anonymous block as the
366         initial anonymous child was being reused to hold the initial part of an
367         inline that got split.
368
369         * rendering/RenderInline.cpp:
370         (WebCore::RenderInline::splitFlow): Check if the anonymous block's parent
371         allows us to reuse it.
372         * rendering/RenderObject.h:
373         (WebCore::RenderObject::allowsReusingAnonymousChild): Added. Returns true.
374         * rendering/render_button.h:
375         (WebCore::RenderButton::allowsReusingAnonymousChild): Added. Returns false.
376
377 2006-04-16  Mitz Pettel  <opendarwin.org@mitzpettel.com>
378
379         Reviewed by Justin.
380
381         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8394
382           Editable region does not accept dropped text if there is no selection
383
384         Test: editing/pasteboard/drop-text-without-selection.html
385
386         * bridge/mac/WebCoreFrameBridge.mm:
387         (-[WebCoreFrameBridge documentFragmentWithText:]): Changed to allow
388         creating a fragment regardless of the selection.
389
390 2006-04-16  Mitz Pettel  <opendarwin.org@mitzpettel.com>
391
392         Reviewed by Darin.
393
394         - WebCore part of fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8324
395           REGRESSION: textarea :focus not applied immediately
396
397         * bridge/mac/WebCoreFrameBridge.h:
398         * kwq/KWQComboBox.mm:
399         (-[KWQPopUpButton becomeFirstResponder]): Added call to formControlIsBecomingFirstResponder:.
400         (-[KWQPopUpButton resignFirstResponder]): Cleaned up.
401         * kwq/KWQListBox.mm: Ditto.
402         (-[KWQTableView becomeFirstResponder]):
403         (-[KWQTableView resignFirstResponder]):
404         * kwq/KWQSlider.mm:
405         (-[KWQSlider becomeFirstResponder]): Added call to formControlIsBecomingFirstResponder: and
406         cleaned up.
407         (-[KWQSlider resignFirstResponder]): Cleaned up.
408         * platform/mac/WebCoreTextArea.mm:
409         (-[WebCoreTextView becomeFirstResponder]): Added call to formControlIsBecomingFirstResponder:.
410         (-[WebCoreTextView resignFirstResponder]): Cleaned up.
411         * platform/mac/WebCoreTextField.mm:
412         (-[KWQTextFieldController setHasFocus:]): Added call to formControlIsBecomingFirstResponder:.
413         * manual-tests/textarea-focus.html: Added.
414
415 2006-04-16  Darin Adler  <darin@apple.com>
416
417         Reviewed by Adele and Justin.
418
419         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8298
420           REGRESSION: Crash occurs when attempting to drag selection into
421           Depart/Return input fields at http://www.travelocity.com/
422         - remove the mutation event listener that's installed all the time,
423           since it slows things down a bit
424
425         Calling SelectionController::nodeWillBeRemoved from Document::notifyBeforeNodeRemoval
426         fixes the crash, which was happening because the call that was removing the text
427         node, removeChildren, does not send a "node removed" mutation event (it sends a
428         "subtree modified" mutation event instead). So this change alone fixes the crash.
429
430         But I also changed setInnerText to not blow away the text node each time the value
431         is changed, and that makes the test case behave even better -- you don't even lose
432         the selection; it works as it did with the NSTextField-based text field.
433
434         * manual-tests/input-empty-on-focus.html: Added.
435
436         * page/Frame.h: Tweaked a few comments and functions related to selection.
437         * page/Frame.cpp: (WebCore::Frame::dragCaret): Made non-const.
438
439         * dom/Document.cpp: (WebCore::Document::notifyBeforeNodeRemoval):
440         Call nodeWillBeRemoved on the two selection controllers before removing
441         a node from the document.
442
443         * editing/SelectionController.h: Tweak formatting. Remove MutationListener
444         class and m_mutationListener field.
445         * editing/SelectionController.cpp:
446         (WebCore::SelectionController::SelectionController): Remove code to set up
447         the mutation event listener.
448         (WebCore::SelectionController::setSelection): Remove code to maintain the
449         mutation event listener.
450
451         * html/HTMLElement.cpp:
452         (WebCore::HTMLElement::setInnerHTML): In cases where the container has only a
453         single child use replaceChild, and in cases where the HTML being inserted
454         also has only a single child and both are text nodes use setData. It's common
455         to use setInnerHTML to set something that's just text.
456         (WebCore::HTMLElement::setInnerText): Same as above, but simpler since the
457         thing we're replacing with is always text.
458
459 2006-04-16  Kevin Ollivier  <kevino@theolliviers.com>
460
461         Reviewed by Darin.
462
463         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8417
464           make-css-file-arrays.pl hangs when run on Linux
465
466         * css/make-css-file-arrays.pl: Remove the "-" parameter from the invocation of cpp,
467         which means "send output to stdout". It's optional on Mac OS X, and is causing a
468         hang on Linux.
469         * rendering/RenderArena.cpp: Added a missing include of <assert.h>.
470
471 2006-04-15  Darin Adler  <darin@apple.com>
472
473         - removed references to a couple files that are obsolete
474           but were still in the Windows project file
475
476         * WebCore.vcproj/WebCore/WebCore.vcproj: Remove kjs_views.h and .cpp.
477
478 2006-04-15  Mitz Pettel  <opendarwin.org@mitzpettel.com>
479
480         Reviewed by Maciej.
481
482         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8405
483           REGRESSION: Web Inspector's Style pane is blank
484
485         * bindings/js/kjs_window.cpp:
486         (KJS::Window::isSafeScript): Use isEmpty() instead of isNull() for checking
487         the domain to determine if the document in a local file. 
488
489 2006-04-14  David Hyatt  <hyatt@apple.com>
490
491         CSS vendor-specific property/value cleanup.  Properly qualify background-clip,
492         background-origin, border-image and the border-radius properties.  Make sure
493         our overflow extensions of marquee and overlay are qualified as well.  Rename
494         the -khtml- extension to -webkit.
495
496         Reviewed by beth
497
498         * bindings/js/kjs_css.cpp:
499         (KJS::cssPropertyName):
500         * bindings/objc/DOMCSS.mm:
501         (-[DOMCSSStyleDeclaration _fontSizeDelta]):
502         (-[DOMCSSStyleDeclaration _setFontSizeDelta:]):
503         * bindings/objc/DOMHTML.mm:
504         (-[DOMHTMLInputElement _setAutofilled:]):
505         * bridge/mac/FrameMac.h:
506         * bridge/mac/FrameMac.mm:
507         * css/CSSComputedStyleDeclaration.cpp:
508         (WebCore::):
509         (WebCore::valueForTextAlign):
510         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
511         * css/CSSGrammar.y:
512         * css/CSSPropertyNames.in:
513         * css/CSSValueKeywords.in:
514         * css/css_base.cpp:
515         (WebCore::CSSSelector::extractPseudoType):
516         * css/css_valueimpl.cpp:
517         (WebCore::):
518         * css/css_valueimpl.h:
519         * css/cssparser.cpp:
520         (WebCore::CSSParser::parseRule):
521         (WebCore::CSSParser::parseValue):
522         (WebCore::CSSParser::parseColor):
523         (WebCore::CSSParser::parseDeclaration):
524         (WebCore::CSSParser::parseBackgroundShorthand):
525         (WebCore::CSSParser::parseBackgroundColor):
526         (WebCore::CSSParser::parseBackgroundProperty):
527         (WebCore::CSSParser::parseFontFamily):
528         (WebCore::CSSParser::parseShadow):
529         * css/cssstyleselector.cpp:
530         (WebCore::CSSStyleSelector::applyDeclarations):
531         (WebCore::CSSStyleSelector::applyProperty):
532         (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
533         * css/cssstyleselector.h:
534         * css/html4.css:
535         * css/quirks.css:
536         * css/tokenizer.flex:
537         * editing/ApplyStyleCommand.cpp:
538         (WebCore::StyleChange::init):
539         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
540         (WebCore::ApplyStyleCommand::removeInlineStyle):
541         * editing/CompositeEditCommand.cpp:
542         (WebCore::blockPlaceholderClassString):
543         * editing/JSEditor.cpp:
544         * editing/ReplaceSelectionCommand.cpp:
545         (WebCore::ReplaceSelectionCommand::fixupNodeStyles):
546         (WebCore::styleForNode):
547         * editing/htmlediting.cpp:
548         (WebCore::rebalanceWhitespaceInTextNode):
549         * html/HTMLElement.cpp:
550         (WebCore::HTMLElement::addHTMLAlignment):
551         (WebCore::HTMLElement::setContentEditable):
552         * html/html_blockimpl.cpp:
553         (WebCore::HTMLDivElement::parseMappedAttribute):
554         (WebCore::HTMLParagraphElement::parseMappedAttribute):
555         (WebCore::HTMLMarqueeElement::parseMappedAttribute):
556         * html/html_inlineimpl.cpp:
557         (WebCore::HTMLFontElement::parseMappedAttribute):
558         * html/html_tableimpl.cpp:
559         (WebCore::HTMLTablePartElement::parseMappedAttribute):
560         (WebCore::HTMLTableCellElement::parseMappedAttribute):
561         * page/Frame.cpp:
562         (WebCore::Frame::canMouseDownStartSelect):
563         * page/Frame.h:
564         * rendering/RenderObject.cpp:
565         (WebCore::RenderObject::draggableNode):
566
567 2006-04-14  Eric Seidel  <eseidel@apple.com>
568
569         Reviewed by beth.
570
571         Fix win32 build.
572
573         * WebCore.vcproj/WebCore/WebCore.vcproj:
574         * page/FramePrivate.h:
575
576 2006-04-04  Eric Seidel  <eseidel@apple.com>
577
578         Reviewed by darin.
579
580         Fix build-warnings in cairo code.
581         http://bugzilla.opendarwin.org/show_bug.cgi?id=8176
582
583         * platform/cairo/cairo/src/cairo-win32-surface.c:
584         (_cairo_win32_print_gdi_error):
585         (_cairo_win32_surface_create_for_dc):
586         (_composite_alpha_blend):
587         (cairo_win32_surface_create):
588         * platform/cairo/pixman/src/iccolor.c:
589         (pixman_pixel_to_color):
590
591 2006-04-14  David Hyatt  <hyatt@apple.com>
592
593         Fix for 8333, make sure newlines in whitespace:pre (and friends) get
594         line boxes created for them.  This resolves all the weird selection/navigation
595         issues that arise by not creating lines (and thus not having navigable positions
596         on those lines).
597
598         This checkin is also removing all of the layout test hacks that have piled
599         up, so layout test results are being regenerated completely.
600
601         Reviewed by eric
602
603         * dom/Position.cpp:
604         (WebCore::Position::downstream):
605         * editing/CompositeEditCommand.cpp:
606         (WebCore::CompositeEditCommand::moveParagraph):
607         * editing/DeleteSelectionCommand.cpp:
608         (WebCore::DeleteSelectionCommand::doApply):
609         * editing/visible_units.cpp:
610         (WebCore::startOfParagraph):
611         (WebCore::endOfParagraph):
612         * kwq/RenderTreeAsText.cpp:
613         (getTagName):
614         (operator<<):
615         * rendering/InlineTextBox.cpp:
616         (WebCore::InlineTextBox::selectionState):
617         (WebCore::InlineTextBox::isLineBreak):
618         (WebCore::InlineTextBox::nodeAtPoint):
619         (WebCore::InlineTextBox::paint):
620         (WebCore::InlineTextBox::offsetForPosition):
621         (WebCore::InlineTextBox::positionForOffset):
622         * rendering/InlineTextBox.h:
623         * rendering/RenderBR.cpp:
624         * rendering/RenderBR.h:
625         * rendering/RenderText.cpp:
626         (WebCore::RenderText::atLineWrap):
627         (WebCore::RenderText::caretRect):
628         (WebCore::RenderText::height):
629         (WebCore::RenderText::inlineBox):
630         * rendering/bidi.cpp:
631         (WebCore::RenderBlock::computeHorizontalPositionsForLine):
632         (WebCore::RenderBlock::layoutInlineChildren):
633         (WebCore::RenderBlock::findNextLineBreak):
634         * rendering/render_line.h:
635         (WebCore::InlineBox::isLineBreak):
636
637 2006-04-13  Darin Adler  <darin@apple.com>
638
639         Reviewed by Geoff.
640
641         - moved a few things out of kwq and cleaned up the
642           Java-applet-related renderers
643
644         * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for file location
645         and name changes.
646         * WebCore.xcodeproj/project.pbxproj: Ditto.
647
648         * kwq/JavaAppletWidget.h: Moved.
649         * kwq/JavaAppletWidget.mm: Moved.
650         * kwq/RegularExpression.cpp: Moved.
651         * kwq/RegularExpression.h: Moved.
652         * kwq/RenderTreeAsText.cpp: Moved.
653         * kwq/RenderTreeAsText.h: Moved.
654         * rendering/render_applet.cpp: Moved.
655         * rendering/render_applet.h: Moved.
656
657         * bridge/JavaAppletWidget.h: Moved here.
658         * bridge/mac/JavaAppletWidget.mm: Moved here.
659         * platform/RegularExpression.cpp: Moved here.
660         * platform/RegularExpression.h: Moved here.
661         * rendering/RenderTreeAsText.cpp: Moved here.
662         * rendering/RenderTreeAsText.h: Moved here.
663
664         * rendering/RenderApplet.h: Moved here and made changes.
665         Removed unused element() function.
666         * rendering/RenderApplet.cpp: Moved here and made changes.
667         (WebCore::RenderApplet::RenderApplet): Changed parameter type to
668         be more precise (HTMLAppletElement).
669         (WebCore::RenderApplet::intrinsicWidth): Removed unnecessary type
670         cast and simplified.
671         (WebCore::RenderApplet::intrinsicHeight): Ditto.
672         (WebCore::RenderApplet::createWidgetIfNecessary): Straightened out
673         the if statements and changed to use node() instead of element().
674         (WebCore::RenderApplet::layout): Removed unneeded check before
675         calling createWidgetIfNecessary.
676
677         * rendering/RenderEmptyApplet.h: Moved here and made changes.
678         Removed unneeded overrides of intrinsicWidth and intrinsicHeight.
679         * rendering/RenderEmptyApplet.cpp: Moved here and made changes.
680         (WebCore::RenderEmptyApplet::RenderEmptyApplet): Added code to
681         set the intrinsic width and height.
682
683         * rendering/render_replaced.cpp:
684         (WebCore::RenderWidget::RenderWidget): Initialize m_widget
685         with contructor syntax.
686         (WebCore::RenderWidget::paint): Changed _tx and _ty to be just
687         tx and ty. Rearranged the code so the transparent wash will draw
688         even if m_widget is 0.
689
690         * html/html_objectimpl.cpp: Update includes for new file names.
691
692 2006-04-12  Geoffrey Garen  <ggaren@apple.com>
693
694         Reviewed by Darin.
695
696         - Fixed <rdar://problem/4478467> document.defaultView should return 
697         the window object
698         
699         Also made part of the window object autogenerated by IDL file.
700         
701         * DerivedSources.make: Added /page to IDL file search path, added
702         JSDOMWindow.h, removed kjs_views.lut.h
703         * WebCore.xcodeproj/project.pbxproj: Added missing files, removed
704         obsolete files
705         * bindings/js/kjs_dom.cpp:
706         * bindings/js/kjs_events.cpp:
707         * bindings/js/kjs_proxy.cpp:
708         (WebCore::KJSProxy::initScriptIfNeeded):
709         * bindings/js/kjs_views.cpp: Removed.
710         * bindings/js/kjs_views.h: Removed.
711         * bindings/js/kjs_window.cpp: Removed document property -- it now
712         belongs to JSDOMWindow. Added toJS and toDOMWindow.
713         (KJS::Window::Window):
714         (KJS::Window::impl):
715         (KJS::Window::getValueProperty):
716         (KJS::Window::clear): Added call to setPrototype to ensure
717         that the prototype gets cleared during navigation. (Previously
718         this wasn't an issue because the window object had no real prototype.)
719         (WebCore::toJS):
720         (WebCore::toDOMWindow):
721         * bindings/js/kjs_window.h:
722         (KJS::Window::):
723         * bindings/objc/DOMCSS.mm: Added NULL checks for the AbstractView
724         (Presumably this is an issue after the window is closed.) Typedef-ed
725         AbstractView as DOMWindow. I could have just replaced AbstractView
726         with DOMWindow, but I think it's clearer to say, "There's this thing
727         called the AbstractView, but really it's just the window."
728         (-[DOMDocument getComputedStyle::]):
729         (-[DOMDocument getMatchedCSSRules::]):
730         * bindings/objc/DOMViews.mm:
731         * bindings/objc/DOMViewsInternal.h:
732         * bindings/scripts/CodeGeneratorJS.pm: Removed unused
733         GetLegacyImplementationIncludes. Added support for DOMWindow and new
734         "DoNotCache" attribute. Replaced C macros with text because (1) it
735         makes the generated source easier to read and debug and (2) it made 
736         it much easier to implement the DoNotCache attribute.
737         * bindings/scripts/IDLParser.pm: Return a hash reference instead of
738         a hash, because otherwise an interface with more than one attribute
739         returns too many arguments to be processed.
740         * bridge/mac/FrameMac.mm:
741         * dom/AbstractView.cpp: Removed.
742         * dom/AbstractView.h: Removed.
743         * dom/Document.cpp:
744         (WebCore::Document::Document):
745         (WebCore::Document::defaultView):
746         * dom/Document.h:
747         * dom/Document.idl:
748         * dom/KeyboardEvent.idl:
749         * dom/MouseEvent.idl:
750         * dom/Position.cpp:
751         * dom/UIEvent.idl:
752         * dom/dom2_eventsimpl.h:
753         * page/DOMWindow.cpp: Added.
754         (WebCore::DOMWindow::DOMWindow):
755         (WebCore::DOMWindow::frame):
756         (WebCore::DOMWindow::disconnectFrame):
757         (WebCore::DOMWindow::document):
758         (WebCore::DOMWindow::getComputedStyle):
759         (WebCore::DOMWindow::getMatchedCSSRules):
760         * page/DOMWindow.h: Added.
761         * page/DOMWindow.idl: Added.
762         * page/Frame.cpp:
763         (WebCore::Frame::~Frame): Disconnect the new DOMWindow object in
764         addition to the Window object. Maybe we can unify this in the future.
765         (WebCore::Frame::tree):
766         (WebCore::Frame::domWindow):
767         * page/Frame.h:
768         * page/FramePrivate.h:
769
770 2006-04-13  Alexey Proskuryakov  <ap@nypop.com>
771
772         Reviewed by Darin.
773
774         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7602
775         Only use fixupChar for entities
776
777         * html/HTMLTokenizer.cpp: Only use fixUpChar() when handling entities.
778         (WebCore::HTMLTokenizer::parseSpecial):
779         (WebCore::HTMLTokenizer::parseText):
780         (WebCore::HTMLTokenizer::parseTag):
781         (WebCore::HTMLTokenizer::write):
782         * platform/StreamingTextDecoder.cpp:
783         (WebCore::StreamingTextDecoder::convert): Remove the special case for Latin-1, because it is already handled 
784         via effectiveEncoding().
785         * platform/StreamingTextDecoder.h: Remove convertLatin1().
786
787 2006-04-13  Darin Adler  <darin@apple.com>
788
789         * platform/mac/GraphicsContextMac.mm: Fix one no-SVG compile problem by adding
790         a "using namespace std".
791
792 2006-04-12  Darin Adler  <darin@apple.com>
793
794         Rubber-stamped by Anders.
795
796         - fix Windows build
797
798         * WebCore.vcproj/Image\ Viewer/Image\ Viewer.vcproj: Add loader directory.
799
800         - use std::min/max exclusively intead of kMin/Max
801         - eliminate KWQDef.h since all it had left in it was kMin/Max
802
803         * WebCore.vcproj/WebCore/WebCore.vcproj: Remove KWQDef.h.
804         * WebCore.xcodeproj/project.pbxproj: Ditto.
805
806         * kwq/KWQDef.h: Removed.
807
808         * bridge/mac/FrameMac.mm:
809         (WebCore::FrameMac::attributedString):
810         * bridge/mac/WebCoreFrameBridge.mm:
811         (-[WebCoreFrameBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
812         * css/cssstyleselector.cpp:
813         (WebCore::CSSStyleSelector::applyProperty):
814         (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
815         (WebCore::CSSStyleSelector::fontSizeForKeyword):
816         * dom/Document.cpp:
817         (WebCore::Document::minimumLayoutDelay):
818         (WebCore::Document::addMarker):
819         * dom/StyledElement.cpp:
820         (WebCore::StyledElement::addCSSColor):
821         * dom/xml_tokenizer.cpp:
822         (WebCore::OffsetBuffer::readOutBytes):
823         * editing/ApplyStyleCommand.cpp:
824         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
825         * editing/CompositeEditCommand.cpp:
826         (WebCore::CompositeEditCommand::deleteInsignificantText):
827         * editing/TextIterator.cpp:
828         (WebCore::TextIterator::handleTextNode):
829         (WebCore::TextIterator::handleTextBox):
830         (WebCore::CharacterIterator::string):
831         (WebCore::findPlainText):
832         * editing/htmlediting.cpp:
833         (WebCore::rangeCompliantEquivalent):
834         * editing/markup.cpp:
835         (WebCore::renderedText):
836         * editing/visible_units.cpp:
837         (WebCore::startOfParagraph):
838         * html/HTMLSelectElement.cpp:
839         (WebCore::HTMLSelectElement::parseMappedAttribute):
840         * html/HTMLTokenizer.cpp:
841         (WebCore::HTMLTokenizer::parseComment):
842         (WebCore::HTMLTokenizer::parseEntity):
843         (WebCore::HTMLTokenizer::parseTag):
844         (WebCore::HTMLTokenizer::enlargeBuffer):
845         (WebCore::HTMLTokenizer::enlargeScriptBuffer):
846         * html/html_imageimpl.cpp:
847         (WebCore::HTMLAreaElement::getRegion):
848         * html/html_tableimpl.cpp:
849         (WebCore::HTMLTableElement::parseMappedAttribute):
850         * ksvg2/css/SVGCSSParser.cpp:
851         (WebCore::CSSParser::parseSVGPaint):
852         (WebCore::CSSParser::parseSVGColor):
853         * kwq/KWQComboBox.mm:
854         (QComboBox::sizeHint):
855         * kwq/KWQListBox.mm:
856         (QListBox::sizeForNumberOfLines):
857         * kwq/KWQSlider.mm:
858         (QSlider::setValue):
859         * loader/Cache.cpp:
860         (WebCore::Cache::setSize):
861         * page/Frame.cpp:
862         (WebCore::Frame::forceLayoutWithPageWidthRange):
863         * platform/DeprecatedPtrListImpl.h:
864         * platform/DeprecatedString.cpp:
865         (ucstrcmp):
866         * platform/DeprecatedString.h:
867         * platform/DeprecatedValueListImpl.h:
868         * platform/mac/GraphicsContextMac.mm:
869         (WebCore::GraphicsContext::addRoundedRectClip):
870         * platform/mac/WebCoreTextArea.mm:
871         (-[WebCoreTextView _trackResizeFromMouseDown:]):
872         * rendering/InlineTextBox.cpp:
873         (WebCore::InlineTextBox::isSelected):
874         (WebCore::InlineTextBox::selectionRect):
875         (WebCore::InlineTextBox::placeEllipsisBox):
876         (WebCore::InlineTextBox::selectionStartEnd):
877         (WebCore::InlineTextBox::paintMarkedTextBackground):
878         (WebCore::InlineTextBox::paintSpellingMarker):
879         (WebCore::InlineTextBox::paintTextMatchMarker):
880         (WebCore::InlineTextBox::paintMarkedTextUnderline):
881         * rendering/RenderBlock.cpp:
882         (WebCore::RenderBlock::overflowRect):
883         (WebCore::RenderBlock::layoutBlock):
884         (WebCore::RenderBlock::collapseMargins):
885         (WebCore::RenderBlock::clearFloatsIfNeeded):
886         (WebCore::RenderBlock::estimateVerticalPosition):
887         (WebCore::RenderBlock::determineHorizontalPosition):
888         (WebCore::RenderBlock::setCollapsedBottomMargin):
889         (WebCore::RenderBlock::handleBottomOfBlock):
890         (WebCore::RenderBlock::layoutBlockChildren):
891         (WebCore::RenderBlock::fillVerticalSelectionGap):
892         (WebCore::RenderBlock::fillLeftSelectionGap):
893         (WebCore::RenderBlock::fillRightSelectionGap):
894         (WebCore::RenderBlock::positionNewFloats):
895         (WebCore::RenderBlock::nearestFloatBottom):
896         (WebCore::RenderBlock::lowestPosition):
897         (WebCore::RenderBlock::rightmostPosition):
898         (WebCore::RenderBlock::leftmostPosition):
899         (WebCore::RenderBlock::getClearDelta):
900         (WebCore::RenderBlock::calcMinMaxWidth):
901         (WebCore::RenderBlock::calcInlineMinMaxWidth):
902         (WebCore::RenderBlock::calcBlocminMaxWidth):
903         * rendering/RenderBlock.h:
904         * rendering/RenderBox.cpp:
905         (WebCore::RenderBox::calcBorderBoxWidth):
906         (WebCore::RenderBox::calcBorderBoxHeight):
907         (WebCore::RenderBox::calcContentBoxWidth):
908         (WebCore::RenderBox::calcContentBoxHeight):
909         (WebCore::RenderBox::paintRootBoxDecorations):
910         (WebCore::RenderBox::paintBoxDecorations):
911         (WebCore::RenderBox::calcWidth):
912         (WebCore::RenderBox::calcWidthUsing):
913         (WebCore::RenderBox::calcHeight):
914         (WebCore::RenderBox::calcPercentageHeight):
915         (WebCore::RenderBox::calcReplacedWidth):
916         (WebCore::RenderBox::calcReplacedHeight):
917         (WebCore::RenderBox::calcAbsoluteHorizontalValues):
918         (WebCore::RenderBox::calcAbsoluteVerticalValues):
919         * rendering/RenderCanvas.cpp:
920         (WebCore::RenderCanvas::layout):
921         * rendering/RenderFlexibleBox.cpp:
922         (WebCore::RenderFlexibleBox::calcMinMaxWidth):
923         (WebCore::RenderFlexibleBox::layoutHorizontalBox):
924         (WebCore::RenderFlexibleBox::layoutVerticalBox):
925         (WebCore::RenderFlexibleBox::allowedChildFlex):
926         * rendering/RenderFlow.cpp:
927         (WebCore::RenderFlow::paintLines):
928         (WebCore::RenderFlow::lowestPosition):
929         (WebCore::RenderFlow::rightmostPosition):
930         (WebCore::RenderFlow::leftmostPosition):
931         (WebCore::RenderFlow::paintOutlineForLine):
932         * rendering/RenderImage.cpp:
933         (WebCore::RenderImage::imageChanged):
934         (WebCore::RenderImage::calcReplacedWidth):
935         (WebCore::RenderImage::calcReplacedHeight):
936         * rendering/RenderLayer.cpp:
937         (WebCore::RenderLayer::scrollRectToVisible):
938         (WebCore::RenderLayer::computeScrollDimensions):
939         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
940         (WebCore::RenderLayer::absoluteBoundingBox):
941         (WebCore::Marquee::marqueeSpeed):
942         (WebCore::Marquee::computePosition):
943         (WebCore::Marquee::timerFired):
944         * rendering/RenderObject.cpp:
945         (WebCore::RenderObject::drawBorder):
946         (WebCore::RenderObject::paintBorderImage):
947         (WebCore::RenderObject::paintBorder):
948         (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
949         * rendering/RenderTable.cpp:
950         (WebCore::RenderTable::calcWidth):
951         (WebCore::RenderTable::layout):
952         (WebCore::RenderTable::paintBoxDecorations):
953         * rendering/RenderTableCell.cpp:
954         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
955         * rendering/RenderTableSection.cpp:
956         (WebCore::RenderTableSection::layoutRows):
957         (WebCore::RenderTableSection::lowestPosition):
958         (WebCore::RenderTableSection::rightmostPosition):
959         (WebCore::RenderTableSection::leftmostPosition):
960         * rendering/RenderText.cpp:
961         (WebCore::RenderText::caretRect):
962         (WebCore::RenderText::calcMinMaxWidth):
963         (WebCore::RenderText::minXPos):
964         (WebCore::RenderText::width):
965         (WebCore::RenderText::caretMinOffset):
966         (WebCore::RenderText::caretMaxOffset):
967         * rendering/bidi.cpp:
968         (WebCore::RenderBlock::computeHorizontalPositionsForLine):
969         (WebCore::RenderBlock::layoutInlineChildren):
970         (WebCore::RenderBlock::checkLinesForOverflow):
971         * rendering/render_form.cpp:
972         (WebCore::RenderLineEdit::setSelectionStart):
973         (WebCore::RenderLineEdit::setSelectionEnd):
974         (WebCore::RenderLineEdit::setSelectionRange):
975         (WebCore::RenderFieldset::layoutLegend):
976         (WebCore::RenderFieldset::paintBoxDecorations):
977         (WebCore::RenderSelect::layout):
978         (WebCore::RenderTextArea::calcMinMaxWidth):
979         (WebCore::RenderSlider::updateFromElement):
980         * rendering/render_frames.cpp:
981         (WebCore::RenderFrameSet::layout):
982         * rendering/render_line.cpp:
983         (WebCore::InlineFlowBox::placeBoxesHorizontally):
984         (WebCore::InlineFlowBox::verticallyAlignBoxes):
985         (WebCore::InlineFlowBox::adjustMaxAscentAndDescent):
986         (WebCore::InlineFlowBox::placeBoxesVertically):
987         (WebCore::InlineFlowBox::paintBackgroundAndBorder):
988         * rendering/render_line.h:
989         (WebCore::RootInlineBox::selectionHeight):
990         * rendering/render_list.cpp:
991         (WebCore::RenderListItem::positionListMarker):
992         * rendering/render_replaced.cpp:
993         (WebCore::RenderReplaced::shouldPaint):
994         * rendering/table_layout.cpp:
995         (WebCore::FixedTableLayout::calcMinMaxWidth):
996         (WebCore::AutoTableLayout::recalcColumn):
997         (WebCore::AutoTableLayout::calcMinMaxWidth):
998         (WebCore::AutoTableLayout::calcEffectiveWidth):
999         (WebCore::AutoTableLayout::layout):
1000         Use min/max instead of kMin/kMax.
1001
1002 2006-04-12  Darin Adler  <darin@apple.com>
1003
1004         Rubber-stamped by Anders.
1005
1006         - get ready for some more de-KWQ-ing done by the renaming script in two ways
1007             1) stop using forwarding headers for things within WebCore
1008             2) remove a bit of unused stuff
1009
1010         * loader/CachedImage.h:
1011         * loader/CachedImage.cpp:
1012         * loader/DocLoader.cpp:
1013         * loader/DocLoader.h:
1014         * page/Frame.cpp:
1015         * xml/XSLTProcessor.cpp:
1016         Removed unused showAnimations functions and data. We can add back later if we need it.
1017         And if we do, we won't use a typedef from KHTMLSettings.
1018
1019         * ForwardingHeaders/java: Removed.
1020         * ForwardingHeaders/java/kjavaappletwidget.h: Removed.
1021         * ForwardingHeaders/khtml_settings.h: Removed.
1022         * ForwardingHeaders/kio: Removed.
1023         * ForwardingHeaders/kio/global.h: Removed.
1024         * ForwardingHeaders/ksslkeygen.h: Removed.
1025         * ForwardingHeaders/q3ptrlist.h: Removed.
1026         * ForwardingHeaders/q3valuelist.h: Removed.
1027         * ForwardingHeaders/qcombobox.h: Removed.
1028         * ForwardingHeaders/qfontmetrics.h: Removed.
1029         * ForwardingHeaders/qlineedit.h: Removed.
1030         * ForwardingHeaders/qmatrix.h: Removed.
1031         * ForwardingHeaders/qptrlist.h: Removed.
1032         * ForwardingHeaders/qptrqueue.h: Removed.
1033         * ForwardingHeaders/qregexp.h: Removed.
1034         * ForwardingHeaders/qscrollbar.h: Removed.
1035         * ForwardingHeaders/qtextedit.h: Removed.
1036         * ForwardingHeaders/qtextstream.h: Removed.
1037         * ForwardingHeaders/qvaluelist.h: Removed.
1038         * ForwardingHeaders/qwmatrix.h: Removed.
1039
1040         * WebCore+SVG/DOMList.h:
1041         * bindings/js/kjs_dom.cpp:
1042         * bindings/js/kjs_dom.h:
1043         * bindings/js/kjs_window.cpp:
1044         * css/css_stylesheetimpl.h:
1045         * css/css_valueimpl.cpp:
1046         * css/css_valueimpl.h:
1047         * css/cssstyleselector.cpp:
1048         * dom/CharacterData.cpp:
1049         * dom/Document.cpp:
1050         * dom/Document.h:
1051         * dom/EventTargetNode.cpp:
1052         * dom/Node.cpp:
1053         * editing/BreakBlockquoteCommand.h:
1054         * editing/htmlediting.cpp:
1055         * html/FormDataList.h:
1056         * html/HTMLKeygenElement.cpp:
1057         * html/HTMLTokenizer.h:
1058         * html/html_objectimpl.cpp:
1059         * kcanvas/KCanvasFilters.cpp:
1060         * kcanvas/KCanvasMatrix.cpp:
1061         * kcanvas/KCanvasMatrix.h:
1062         * kcanvas/KCanvasPath.cpp:
1063         * kcanvas/KCanvasPath.h:
1064         * kcanvas/KCanvasResources.cpp:
1065         * kcanvas/KCanvasTreeDebug.h:
1066         * kcanvas/RenderForeignObject.h:
1067         * kcanvas/RenderPath.h:
1068         * kcanvas/RenderSVGImage.h:
1069         * kcanvas/RenderSVGText.h:
1070         * kcanvas/device/KRenderingPaintServerGradient.cpp:
1071         * kcanvas/device/KRenderingPaintServerPattern.cpp:
1072         * kcanvas/device/KRenderingPaintServerSolid.cpp:
1073         * kcanvas/device/quartz/KCanvasItemQuartz.h:
1074         * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
1075         * ksvg2/svg/SVGColor.cpp:
1076         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1077         * ksvg2/svg/SVGDocument.h:
1078         * ksvg2/svg/SVGFEBlendElement.cpp:
1079         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1080         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
1081         * ksvg2/svg/SVGFECompositeElement.cpp:
1082         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1083         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1084         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1085         * ksvg2/svg/SVGFELightElement.cpp:
1086         * ksvg2/svg/SVGFEMergeElement.cpp:
1087         * ksvg2/svg/SVGFEOffsetElement.cpp:
1088         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1089         * ksvg2/svg/SVGFETileElement.cpp:
1090         * ksvg2/svg/SVGFETurbulenceElement.cpp:
1091         * ksvg2/svg/SVGFitToViewBox.cpp:
1092         * ksvg2/svg/SVGLengthList.cpp:
1093         * ksvg2/svg/SVGMatrix.h:
1094         * ksvg2/svg/SVGNumberList.cpp:
1095         * ksvg2/svg/SVGPreserveAspectRatio.cpp:
1096         * ksvg2/svg/SVGSVGElement.cpp:
1097         * ksvg2/svg/SVGStringList.cpp:
1098         * ksvg2/svg/SVGStyledElement.h:
1099         * ksvg2/svg/SVGStyledTransformableElement.cpp:
1100         * ksvg2/svg/SVGTransformable.cpp:
1101         * ksvg2/svg/SVGURIReference.h:
1102         * ksvg2/svg/svgpathparser.cpp:
1103         * kwq/KWQKHTMLSettings.h:
1104         * loader/Cache.h:
1105         * loader/CachedObject.h:
1106         * loader/Decoder.cpp:
1107         * loader/FormData.h:
1108         * loader/loader.h:
1109         * page/Frame.h:
1110         * page/FramePrivate.h:
1111         * platform/Font.cpp:
1112         * platform/SegmentedString.h:
1113         * platform/mac/FontMac.mm:
1114         * platform/mac/WebCoreTextField.mm:
1115         * rendering/RenderBlock.cpp:
1116         * rendering/RenderObject.cpp:
1117         * rendering/RenderTable.cpp:
1118         * rendering/RenderTableCell.cpp:
1119         * rendering/RenderTableCol.cpp:
1120         * rendering/RenderTableSection.cpp:
1121         * rendering/bidi.h:
1122         * rendering/break_lines.cpp:
1123         * rendering/render_applet.cpp:
1124         * rendering/render_form.cpp:
1125         * rendering/render_form.h:
1126         * rendering/render_frames.cpp:
1127         * rendering/render_style.h:
1128         * xml/xmlhttprequest.cpp:
1129         Updated includes.
1130
1131         * WebCore.xcodeproj/project.pbxproj: Resorted a couple things.
1132
1133 2006-04-12  Adele Peterson  <adele@apple.com>
1134
1135         Reviewed by Darin and Tim O.
1136
1137         WebCore part of fix for:
1138         http://bugzilla.opendarwin.org/show_bug.cgi?id=8061
1139         REGRESSION: New text fields need to send callbacks used by autocomplete
1140
1141         Fix for:
1142         http://bugzilla.opendarwin.org/show_bug.cgi?id=8156
1143         FrameMac::submitForm is busted after Vector changes
1144
1145         * bindings/objc/DOMHTML.mm:
1146         (-[DOMHTMLInputElement _rectOnScreen]): Use boundingBox method so this no longer relies on an NSTextField.  
1147         The old code is no longer needed because this method was used by autocomplete, and that was not enabled for password or search fields.
1148         (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]): New implementation that uses setValue and setSelectionRange
1149         instead of NSTextField specific code.
1150         (-[DOMHTMLInputElement _selectedRange]): Creates range by calling selectionStart and selectionEnd on the input element.
1151         (-[DOMHTMLInputElement _setAutofilled:]): Provides a way for the autofill code to set a flag on the input element so
1152          it knows when its value is set by autofill.  This is how we change the background color.
1153         * bindings/objc/DOMPrivate.h: Removed _displayedValue, _setDisplayedValue, _setBackgroundColor since these are no
1154          longer needed for the new text field implementation, and aren't used for remaining NSView-style password and search fields.
1155          Added _setAutofilled method.
1156         * bridge/mac/FrameMac.h: Added virtual clearRecordedFormValues and recordFormValue.  These were moved into Frame.cpp recently, which broke
1157         how Safari asked to add form values to the keychain.
1158
1159         * bridge/mac/FrameMac.mm:
1160         (WebCore::createNSDictionary): Added. Converts a hashmap to an NSDictionary for m_formValuesAboutToBeSubmitted.  This is needed to fix the submit form bug.
1161         (WebCore::selectorForKeyEvent): Added.  This helper function converts key events into selectors that the autocomplete code needs to know about.
1162         (WebCore::FrameMac::FrameMac):
1163         (WebCore::FrameMac::submitForm): Convert saved form and formValues into DOMElement and NSMutableDictionary.
1164         (WebCore::FrameMac::textFieldDidBeginEditing): Added so the input element can send this notification over the bridge.
1165         (WebCore::FrameMac::textFieldDidEndEditing): ditto.
1166         (WebCore::FrameMac::textDidChangeInTextField): ditto.
1167         (WebCore::FrameMac::doTextFieldCommandFromEvent): ditto. Also calls selectorForKeyEvent.
1168         (WebCore::FrameMac::textWillBeDeletedInTextField): ditto.
1169         * page/Frame.cpp:
1170         (WebCore::Frame::textFieldDidBeginEditing): ditto.
1171         (WebCore::Frame::textFieldDidEndEditing): ditto.
1172         (WebCore::Frame::textDidChangeInTextField): ditto.
1173         (WebCore::Frame::doTextFieldCommandFromEvent): ditto.
1174         (WebCore::Frame::textWillBeDeletedInTextField): ditto.
1175         * page/Frame.h: ditto.
1176         * platform/PlatformString.h: (WebCore::String::replace): Added to use an existing version of StringImpl::replace.
1177
1178         * rendering/RenderTextField.cpp:
1179         (WebCore::RenderTextField::setSelectionRange): Setting the selection here should close the typing command.
1180         (WebCore::RenderTextField::subtreeHasChanged): Calls textDidChangeInTextField.
1181
1182         * dom/Document.cpp: (WebCore::Document::setFocusNode): Calls dispatchFocusEvent and dispatchBlurEvent instead of directly dispatching the events.  This gives the node a chance to do other work before dispatching the event.
1183
1184         * dom/EventTargetNode.cpp:
1185         (WebCore:: EventTargetNode::dispatchFocusEvent): Added.
1186         (WebCore:: EventTargetNode::dispatchBlurEvent): Added.
1187         * dom/EventTargetNode.h:
1188
1189         * html/HTMLInputElement.cpp:
1190         (WebCore::HTMLInputElement::init): initializes m_autofilled.
1191         (WebCore::HTMLInputElement::dispatchFocusEvent): Calls textFieldDidBeginEditing and then calls up to the base class
1192         (WebCore::HTMLInputElement::dispatchBlurEvent): Calls textFieldDidEndEditing and then calls up to the base class
1193         (WebCore::HTMLInputElement::defaultEventHandler): For keypress events, calls doTextFieldCommandFromEvent so the form delegate will
1194         have a chance to say whether or not it is going to handle the event.
1195        (WebCore::HTMLInputElement::isKeyboardFocusable): Uses isNonWidgetTextField instead of checking the inputType.
1196         (WebCore::HTMLInputElement::isMouseFocusable): ditto.
1197         (WebCore::HTMLInputElement::focus): ditto.
1198         (WebCore::HTMLInputElement::constrainValue): Uses isTextField instead of checking inputType.
1199         * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::submit): ditto.
1200         * html/HTMLInputElement.h:
1201         (WebCore::HTMLInputElement::isTextField): Added. Checks for TEXT, PASSWORD, and SEARCH
1202         (WebCore::HTMLInputElement::isNonWidgetTextField): Added.  Checks for all converted controls.
1203         (WebCore::HTMLInputElement::autofilled): Added.
1204         (WebCore::HTMLInputElement::setAutofilled): Added.
1205         * html/HTMLTextFieldInnerElement.cpp: (WebCore::HTMLTextFieldInnerElement::defaultEventHandler): Uses isNonWidgetTextField instead of checking the inputType.
1206
1207         * editing/DeleteSelectionCommand.cpp: (WebCore::DeleteSelectionCommand::doApply):
1208          If the deletion is occuring in a text field, call textWillBeDeletedInTextField so the frame can
1209          call across the bridge to notify the form delegate.
1210
1211         * css/css_base.cpp: (WebCore::CSSSelector::extractPseudoType): Added autofill string for "-khtml-autofill".
1212         * css/css_base.h: (WebCore::CSSSelector::): Added PseudoAutofill to enum.
1213         * css/cssstyleselector.cpp:
1214         (WebCore::CSSStyleSelector::checkOneSelector): Added case for PseudoAutofill that checks the input element's autofilled flag.
1215         (WebCore::CSSStyleSelector::getColorFromPrimitiveValue): Changed  -webkit-focus-ring-color to -khtml-focus-ring-color for consistency.
1216         * css/html4.css: Added background-color and background-image for input:-khtml-autofill style.
1217          Changed -webkit-focus-ring-color to -khtml-focus-ring-color for consistency.
1218         * css/CSSValueKeywords.in: ditto.
1219         * css/cssparser.cpp:
1220         (WebCore::CSSParser::parseValue): ditto.
1221         (WebCore::CSSParser::parseShadow): ditto.
1222
1223 2006-04-12  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1224  
1225          Reviewed by hyatt
1226  
1227          - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4855
1228            List item's bullets fail to redraw correctly after their style is set with JavaScript
1229  
1230          * manual-tests/list-marker-repaint.html: Added.
1231          * rendering/RenderBlock.cpp:
1232          (WebCore::RenderBlock::layoutBlock): Call positionListMarker() after laying out
1233          the children.
1234          (WebCore::RenderBlock::calcInlineMinMaxWidth): Call calcWidth() on the child
1235          if we are going to use its marginLeft() or marginRight(), which is if they are
1236          given as a percentage or if the child is a list marker.
1237          * rendering/RenderBlock.h:
1238          (WebCore::RenderBlock::positionListMarker): Added this virtual function which
1239          RenderListItem implements and which is called from layoutBlock().
1240          * rendering/RenderFlow.cpp:
1241          (WebCore::RenderFlow::addFocusRingRects): Avoid adding focus rings around outside list
1242          markers. Previously it did not matter since the markers had zero width.
1243          * rendering/bidi.cpp:
1244          (WebCore::RenderBlock::findNextLineBreak): Outside list markers should not contribute
1245          to the line width, even now that they have width.
1246          * rendering/render_line.cpp:
1247          (WebCore::InlineFlowBox::placeBoxesHorizontally): Skip outside list markers.
1248          * rendering/render_list.cpp:
1249          (WebCore::RenderListItem::positionListMarker): Added.
1250          (WebCore::RenderListMarker::paint): Removed code that was used to right-align outside
1251          text markers, since that is achieved by margins now.
1252          (WebCore::RenderListMarker::calcMinMaxWidth): Changed the marker height to be the font height.
1253          Made the width of outside list markers non-zero and equal to the width of inside markers.
1254          Changed the width to include only the marker and not any padding. Increased the width of bullets
1255          by 2 to contain spillage due to antialiasing.
1256          (WebCore::RenderListMarker::calcWidth): Calculate horizontal margins. Padding that was
1257          previously included in the width is now part of the margins. 
1258          (WebCore::RenderListMarker::getRelativeMarkerRect): Adjusted for the changes to width and
1259          margins.
1260          * rendering/render_list.h:
1261
1262 2006-04-12  Darin Adler  <darin@apple.com>
1263
1264         Rubber-stamped by Hyatt.
1265
1266         - moved some more files out of KWQ to more-permanent homes
1267
1268         * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for new locations.
1269         * WebCore.xcodeproj/project.pbxproj: Ditto.
1270
1271         * kwq/BlockExceptions.h: Removed.
1272         * kwq/BlockExceptions.mm: Removed.
1273         * kwq/ClipboardMac.h: Removed.
1274         * kwq/ClipboardMac.mm: Removed.
1275         * kwq/DeprecatedPtrList.h: Removed.
1276         * kwq/DeprecatedPtrListImpl.cpp: Removed.
1277         * kwq/DeprecatedPtrListImpl.h: Removed.
1278         * kwq/DeprecatedValueList.h: Removed.
1279         * kwq/DeprecatedValueListImpl.cpp: Removed.
1280         * kwq/DeprecatedValueListImpl.h: Removed.
1281         * kwq/WebCoreTextArea.h: Removed.
1282         * kwq/WebCoreTextArea.mm: Removed.
1283         * kwq/WebCoreTextField.h: Removed.
1284         * kwq/WebCoreTextField.mm: Removed.
1285         * platform/DeprecatedPtrList.h: Added.
1286         * platform/DeprecatedPtrListImpl.cpp: Added.
1287         * platform/DeprecatedPtrListImpl.h: Added.
1288         * platform/DeprecatedValueList.h: Added.
1289         * platform/DeprecatedValueListImpl.cpp: Added.
1290         * platform/DeprecatedValueListImpl.h: Added.
1291         * platform/mac/BlockExceptions.h: Added.
1292         * platform/mac/BlockExceptions.mm: Added.
1293         * platform/mac/ClipboardMac.h: Added.
1294         * platform/mac/ClipboardMac.mm: Added.
1295         * platform/mac/WebCoreTextArea.h: Added.
1296         * platform/mac/WebCoreTextArea.mm: Added.
1297         * platform/mac/WebCoreTextField.h: Added.
1298         * platform/mac/WebCoreTextField.mm: Added.
1299
1300 2006-04-12  David Harrison  <harrison@apple.com>
1301
1302         Reviewed by Darin.
1303
1304         <rdar://problem/4386640> AX: AXPreviousSentenceStartTextMarkerForTextMarker does not respect paragraph boundary
1305         <rdar://problem/4414575> AX: Dictionary popup cannot find some words on Dictionary.app
1306
1307         AXPreviousSentenceStartTextMarkerForTextMarker failed to stop at the beginning a block because
1308         SimplifiedBackwardsTextIterator::handleNonTextNode() emitted a space when exiting the block.
1309         Fixed by emitting a newline instead.
1310         
1311         Word boundary failed to stop at the beginning of a block because no character at all was emitted
1312         when leaving the block, because the exitNode was checking specific html tags to decide whether the
1313         node is block, but the node was xml.  Fixed by using the node's renderer, if present.
1314         
1315         (see related changes in WebKit)
1316         
1317         Tests added:
1318         * editing/selection/extend-by-sentence-001.html: Added.
1319         * fast/dom/inner-text-001.html: Added.
1320         
1321         * bridge/mac/WebCoreFrameBridge.h:
1322         * bridge/mac/WebCoreFrameBridge.mm:
1323         (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
1324         Add sentence navigation/selection.
1325         
1326         * editing/Selection.cpp:
1327         (WebCore::Selection::validate):
1328         Add sentence navigation/selection.
1329
1330         * editing/SelectionController.cpp:
1331         (WebCore::SelectionController::modifyExtendingRightForward):
1332         (WebCore::SelectionController::modifyMovingRightForward):
1333         (WebCore::SelectionController::modifyExtendingLeftBackward):
1334         (WebCore::SelectionController::modifyMovingLeftBackward):
1335         (WebCore::SelectionController::modify):
1336         Add sentence navigation/selection.
1337
1338         * editing/TextGranularity.h:
1339         (WebCore::):
1340         Add SentenceGranularity and SentenceBoundary.
1341
1342         * editing/TextIterator.cpp:
1343         (WebCore::isTableCell):
1344         (WebCore::shouldEmitTabBeforeNode):
1345         (WebCore::shouldEmitNewlineForNode):
1346         (WebCore::shouldEmitNewlinesBeforeAndAfterNode):
1347         (WebCore::shouldEmitExtraNewlineForNode):
1348         New utility functions that prefer renderers over html tag names.
1349
1350         (WebCore::TextIterator::handleNonTextNode):
1351         (WebCore::TextIterator::exitNode):
1352         (WebCore::SimplifiedBackwardsTextIterator::advance):
1353         Use new utility functions.
1354         
1355         (WebCore::SimplifiedBackwardsTextIterator::handleNonTextNode):
1356         Use new utility functions.  Also emit linefeed instead of space,
1357         so sentence parsing works across block boundaries.
1358         
1359         (WebCore::SimplifiedBackwardsTextIterator::exitNode):
1360         Use new utility functions.
1361
1362         (WebCore::SimplifiedBackwardsTextIterator::emitNewline):
1363         Renamed from emitNewlineForBROrText because it is not always for BR or text.
1364         
1365         * editing/TextIterator.h:
1366         Renamed emitNewlineForBROrText to emitNewline.
1367         
1368         * editing/visible_units.cpp:
1369         * editing/visible_units.h:
1370         (WebCore::previousBoundary):
1371         (WebCore::nextBoundary):
1372         (WebCore::previousSentencePosition):
1373         (WebCore::nextSentencePosition):
1374         Add sentence navigation/selection.
1375
1376 2006-04-12  Darin Adler  <darin@apple.com>
1377
1378         Rubber-stamped by Hyatt.
1379
1380         - moved Decoder and FormData classes into loader directory
1381           (Decoder, because it's part of the loading process.
1382            FormData, because it's used as a parameter when specifying
1383            what to load. Arguably either could be in page instead.)
1384         - moved Length.h from css to renderer, cause that's where Hyatt
1385           says it belongs
1386
1387         * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for new locations.
1388         * WebCore.xcodeproj/project.pbxproj: Ditto.
1389
1390         * khtml: Removed.
1391         * loader/Decoder.cpp: Added.
1392         * loader/Decoder.h: Added.
1393         * loader/FormData.cpp: Added.
1394         * loader/FormData.h: Added.
1395
1396         * css/Length.h: Removed.
1397         * rendering/Length.h: Added.
1398
1399         * bridge/mac/WebCoreEncodings.mm:
1400         * dom/Document.h:
1401         * kwq/KWQFormData.mm:
1402         * loader/CachedXBLDocument.cpp:
1403         * loader/CachedXSLStyleSheet.cpp:
1404         * page/ResourceRequest.h:
1405         * platform/TransferJobInternal.h:
1406         * xml/xmlhttprequest.cpp:
1407         Updated includes.
1408
1409 2006-04-12  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1410
1411         Reviewed by darin
1412
1413         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8337
1414           Incomplete repaint of inlines' outline during editing
1415
1416         * manual-tests/inline-outline-repaint.html: Added.
1417         * rendering/RenderBlock.cpp:
1418         (WebCore::RenderBlock::layoutBlock): Add the maximal outline width to the
1419         inlines' repaint rect.
1420
1421 2006-04-12  Justin Garcia  <justin.garcia@apple.com>
1422
1423         Reviewed by darin
1424         
1425         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8335>
1426         Implement execCommand(InsertHorizontalRule)
1427
1428         * editing/JSEditor.cpp:
1429
1430 2006-04-12  Darin Adler  <darin@apple.com>
1431
1432         Rubber-stamped by Hyatt.
1433
1434         - moved xsl files into xml directory, removed xbl files (for now)
1435
1436         * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for new locations.
1437         * WebCore.xcodeproj/project.pbxproj: Ditto.
1438         * khtml/xbl: Removed.
1439         * khtml/xsl: Removed.
1440         * xml/XSLStyleSheet.cpp: Added.
1441         * xml/XSLStyleSheet.h: Added.
1442         * xml/XSLTProcessor.cpp: Added.
1443         * xml/XSLTProcessor.h: Added.
1444
1445 2006-04-12  David Hyatt  <hyatt@apple.com>
1446
1447         Fix for 5283, make sure overflow doesn't paint on top of positioned elements.
1448
1449         Reviewed by beth
1450
1451         * kwq/RenderTreeAsText.cpp:
1452         (writeLayers):
1453         * rendering/RenderLayer.cpp:
1454         (WebCore::RenderLayer::RenderLayer):
1455         (WebCore::RenderLayer::~RenderLayer):
1456         (WebCore::RenderLayer::addChild):
1457         (WebCore::RenderLayer::removeChild):
1458         (WebCore::RenderLayer::paintLayer):
1459         (WebCore::RenderLayer::hitTestLayer):
1460         (WebCore::RenderLayer::dirtyOverflowList):
1461         (WebCore::RenderLayer::updateOverflowList):
1462         (WebCore::RenderLayer::collectLayers):
1463         (WebCore::RenderLayer::shouldBeOverflowOnly):
1464         (WebCore::RenderLayer::styleChanged):
1465         * rendering/RenderLayer.h:
1466         (WebCore::RenderLayer::isOverflowOnly):
1467         (WebCore::RenderLayer::overflowList):
1468
1469 2006-04-12  Darin Adler  <darin@apple.com>
1470
1471         * WebCore.xcodeproj/project.pbxproj: Turn SVG support back on.
1472         I accidentally checked in this file with SVG off last night.
1473
1474 2006-04-12  Darin Adler  <darin@apple.com>
1475
1476         - try to fix Windows build
1477
1478         * platform/TransferJobInternal.h: Declare HANDLE.
1479         * platform/image-decoders/gif/GIFImageReader.h: Include GIFImageDecoder.h.
1480         * rendering/RenderThemeWin.h: Declare HANDLE and HMODULE.
1481
1482 2006-04-12  Darin Adler  <darin@apple.com>
1483
1484         - another attempt to get things building
1485
1486         * bindings/js/kjs_proxy.cpp: Add "kjs_events.h" include, needed when not
1487         building SVG (so for Windows too).
1488         * editing/TextIterator.h: Add back include of Vector.h.
1489
1490 2006-04-11  Darin Adler  <darin@apple.com>
1491
1492         - try to fix Windows build
1493
1494         * html/HTMLCollection.h: Add back include of Vector.h.
1495         * page/Frame.h: Ditto.
1496         * platform/Timer.h: Ditto.
1497
1498         - more changes for no-SVG (not working yet though)
1499
1500         * editing/CompositeEditCommand.h: Added css_valueimpl.h include.
1501
1502 2006-04-11  Darin Adler  <darin@apple.com>
1503
1504         - try to fix no-SVG build
1505
1506         * kwq/RenderTreeAsText.cpp: Added back an include only needed for non-SVG.
1507         * rendering/RenderObject.h: Ditto.
1508
1509 2006-04-11  Darin Adler  <darin@apple.com>
1510
1511         - try to fix Windows build
1512
1513         * ForwardingHeaders/kxmlcore/HashForward.h: Removed.
1514         * dom/xml_tokenizer.h: Include another header instead of HashForward.h.
1515         * loader/Cache.h: Ditto.
1516         * page/Page.h: Ditto.
1517         * platform/TransferJob.h: Ditto.
1518
1519 2006-04-11  Justin Garcia  <justin.garcia@apple.com>
1520
1521         Reviewed by harrison
1522         
1523         Fixes more instances of:
1524         <rdar://problem/3950559>
1525         CrashTracer: 2116 crashes in Mail at com.apple.WebCore: khtml::CompositeEditCommand::insertNodeAfter + 32
1526
1527         * editing/ReplaceSelectionCommand.cpp:
1528         (WebCore::ReplaceSelectionCommand::doApply): Do paragraph merging using moveParagraphs.
1529
1530 2006-04-11  Justin Garcia  <justin.garcia@apple.com>
1531
1532         Reviewed by harrison
1533         
1534         Some setup for work on paste performance.
1535
1536         * editing/CompositeEditCommand.cpp:
1537         (WebCore::CompositeEditCommand::moveParagraph): 
1538         Moved code from mergeParagraphs so that it can be used in ReplaceSelectionCommand.
1539         * editing/CompositeEditCommand.h:
1540         * editing/DeleteSelectionCommand.cpp:
1541         (WebCore::DeleteSelectionCommand::mergeParagraphs):
1542         (WebCore::DeleteSelectionCommand::doApply):
1543         * editing/VisiblePosition.cpp:
1544         (WebCore::VisiblePosition::init): Put the code that chooses m_deepPosition into initDeepPosition.
1545         (WebCore::VisiblePosition::initDeepPosition): 
1546         Fixed a bug: don't fall through to the code that's only for positions inside unrendered space between blocks when
1547         downstream() is a candidate.  Added a comment about why the fall through code is necessary.
1548         * editing/VisiblePosition.h:
1549
1550 2006-04-11  John Sullivan  <sullivan@apple.com>
1551
1552         Reviewed by Darin Adler.
1553         
1554         - fixed <rdar://problem/4509328> highlight all matches hangs when searching for tab character on www.google.com (and others)
1555         
1556         For reasons not yet completely understood, searching for a tab character on some pages (Google, Amazon) finds a match
1557         with a non-collapsed range but then claims that the end visible position of the match is the original start visible 
1558         position of the search range. This was causing the highlightAllMatches code to loop forever. Fixed the loop by 
1559         checking for the non-advancing search range explicitly. I'm going to track down a reduction of the bogus 
1560         search-for-tab issue, and write that up as a separate bug (that bug is not a regression; you can "find" a tab on 
1561         google in Tiger also).
1562
1563         * page/Frame.cpp:
1564         (WebCore::Frame::highlightAllMatchesForString):
1565         break the loop if the search range hasn't advanced
1566
1567 2006-04-10  Darin Adler  <darin@apple.com>
1568
1569         Rubber-stamped by John Sullivan (except for pbxproj change).
1570
1571         - updated to use the new Forward.h and HashForward.h headers
1572         - moved the showTree debugging functions out of the WebCore
1573           namespace so they are easier to call from gdb, and renamed
1574           the showTree member functions so they don't get in the way;
1575           now you can do "call showTree(x)" in gdb and it just works
1576         - removed a lot of unneeded includes
1577
1578         * WebCore.xcodeproj/project.pbxproj: Fixed a lot of paths that
1579         were not relative to the enclosing group.
1580
1581         * ForwardingHeaders/kxmlcore/Forward.h: Added.
1582         * ForwardingHeaders/kxmlcore/HashForward.h: Added.
1583         * bindings/js/JSCanvasRenderingContext2DBase.cpp:
1584         * bindings/js/JSXMLHttpRequest.cpp:
1585         * bindings/js/JSXMLHttpRequest.h:
1586         * bindings/js/JSXSLTProcessor.h:
1587         * bindings/js/kjs_binding.h:
1588         * bindings/js/kjs_dom.cpp:
1589         * bindings/js/kjs_dom.h:
1590         * bindings/js/kjs_events.cpp:
1591         * bindings/js/kjs_events.h:
1592         * bindings/js/kjs_html.cpp:
1593         * bindings/js/kjs_navigator.cpp:
1594         * bindings/js/kjs_navigator.h:
1595         * bindings/js/kjs_proxy.cpp:
1596         * bindings/js/kjs_traversal.h:
1597         * bindings/js/kjs_window.cpp:
1598         * bindings/js/kjs_window.h:
1599         * bindings/objc/DOM.mm:
1600         * bindings/objc/DOMCSS.mm:
1601         * bindings/objc/DOMCore.h:
1602         * bindings/objc/DOMEvents.mm:
1603         * bindings/objc/DOMHTML.mm:
1604         * bindings/objc/DOMImplementationFront.h:
1605         * bindings/objc/DOMInternal.mm:
1606         * bindings/objc/DOMUtility.mm:
1607         * bindings/objc/DOMViews.mm:
1608         * bridge/BrowserExtension.h:
1609         * bridge/mac/BrowserExtensionMac.mm:
1610         * bridge/mac/FrameMac.h:
1611         * bridge/mac/FrameMac.mm:
1612         * bridge/mac/WebCoreFrameBridge.mm:
1613         * bridge/mac/WebCoreFrameNamespaces.mm:
1614         * bridge/mac/WebCoreJavaScript.mm:
1615         * bridge/win/PageWin.cpp:
1616         * css/CSSComputedStyleDeclaration.cpp:
1617         * css/css_base.h:
1618         * css/css_ruleimpl.h:
1619         * css/css_valueimpl.cpp:
1620         * css/cssparser.cpp:
1621         * css/cssparser.h:
1622         * css/cssstyleselector.cpp:
1623         * css/cssstyleselector.h:
1624         * dom/AbstractView.h:
1625         * dom/AtomicStringList.h:
1626         * dom/Attribute.cpp:
1627         * dom/Attribute.h:
1628         * dom/Comment.cpp:
1629         * dom/ContainerNode.cpp:
1630         * dom/DOMImplementation.cpp:
1631         * dom/DOMImplementation.h:
1632         * dom/Document.cpp:
1633         * dom/Document.h:
1634         * dom/Element.h:
1635         * dom/EventTargetNode.cpp:
1636         (WebCore::EventTargetNode::dump):
1637         (WebCore::forbidEventDispatch):
1638         (WebCore::allowEventDispatch):
1639         (WebCore::eventDispatchForbidden):
1640         * dom/EventTargetNode.h:
1641         (WebCore::EventTargetNode::postDispatchEventHandler):
1642         * dom/NamedAttrMap.h:
1643         * dom/Node.cpp:
1644         (WebCore::Node::showNode):
1645         (WebCore::Node::showTree):
1646         (WebCore::Node::showTreeAndMark):
1647         (showTree):
1648         * dom/Node.h:
1649         * dom/NodeList.cpp:
1650         * dom/NodeList.h:
1651         * dom/Position.cpp:
1652         (showTree):
1653         * dom/Position.h:
1654         * dom/Range.cpp:
1655         * dom/Range.h:
1656         * dom/StyledElement.cpp:
1657         * dom/StyledElement.h:
1658         * dom/dom2_eventsimpl.cpp:
1659         * dom/dom2_eventsimpl.h:
1660         * dom/dom2_traversalimpl.h:
1661         * dom/dom_xmlimpl.cpp:
1662         * dom/xml_tokenizer.cpp:
1663         * dom/xml_tokenizer.h:
1664         * editing/AppendNodeCommand.cpp:
1665         * editing/ApplyStyleCommand.cpp:
1666         * editing/ApplyStyleCommand.h:
1667         * editing/BreakBlockquoteCommand.cpp:
1668         * editing/CompositeEditCommand.cpp:
1669         * editing/CreateLinkCommand.cpp:
1670         * editing/DeleteFromTextNodeCommand.cpp:
1671         * editing/DeleteFromTextNodeCommand.h:
1672         * editing/DeleteSelectionCommand.cpp:
1673         * editing/EditCommand.cpp:
1674         * editing/EditCommand.h:
1675         * editing/HTMLInterchange.cpp:
1676         * editing/InsertIntoTextNodeCommand.cpp:
1677         * editing/InsertIntoTextNodeCommand.h:
1678         * editing/InsertLineBreakCommand.cpp:
1679         * editing/InsertNodeBeforeCommand.cpp:
1680         * editing/InsertParagraphSeparatorCommand.cpp:
1681         * editing/InsertTextCommand.cpp:
1682         * editing/JSEditor.cpp:
1683         * editing/JoinTextNodesCommand.cpp:
1684         * editing/MergeIdenticalElementsCommand.cpp:
1685         * editing/ModifySelectionListLevelCommand.cpp:
1686         * editing/MoveSelectionCommand.cpp:
1687         * editing/RebalanceWhitespaceCommand.h:
1688         * editing/RemoveCSSPropertyCommand.h:
1689         * editing/ReplaceSelectionCommand.cpp:
1690         * editing/ReplaceSelectionCommand.h:
1691         * editing/Selection.cpp:
1692         (WebCore::Selection::formatForDebugger):
1693         (WebCore::Selection::showTree):
1694         (showTree):
1695         * editing/Selection.h:
1696         * editing/SelectionController.cpp:
1697         (WebCore::SelectionController::formatForDebugger):
1698         (WebCore::SelectionController::showTree):
1699         (showTree):
1700         * editing/SelectionController.h:
1701         * editing/TextIterator.cpp:
1702         * editing/TextIterator.h:
1703         * editing/TypingCommand.cpp:
1704         * editing/TypingCommand.h:
1705         * editing/UnlinkCommand.cpp:
1706         * editing/VisiblePosition.cpp:
1707         (WebCore::isEqualIgnoringAffinity):
1708         (WebCore::VisiblePosition::formatForDebugger):
1709         (WebCore::VisiblePosition::showTree):
1710         (showTree):
1711         * editing/VisiblePosition.h:
1712         (WebCore::VisiblePosition::VisiblePosition):
1713         (WebCore::operator==):
1714         * editing/WrapContentsInDummySpanCommand.cpp:
1715         * editing/htmlediting.h:
1716         * editing/markup.cpp:
1717         * editing/markup.h:
1718         (WebCore::):
1719         * editing/visible_units.cpp:
1720         * html/CanvasGradient.cpp:
1721         * html/CanvasRenderingContext2D.h:
1722         * html/CanvasStyle.cpp:
1723         * html/CanvasStyle.h:
1724         * html/FormDataList.cpp:
1725         * html/FormDataList.h:
1726         * html/HTMLCollection.cpp:
1727         * html/HTMLCollection.h:
1728         * html/HTMLDocument.cpp:
1729         * html/HTMLDocument.h:
1730         * html/HTMLElement.cpp:
1731         * html/HTMLElementFactory.cpp:
1732         * html/HTMLElementFactory.h:
1733         * html/HTMLFormCollection.cpp:
1734         * html/HTMLFormElement.cpp:
1735         * html/HTMLFormElement.h:
1736         * html/HTMLInputElement.cpp:
1737         * html/HTMLParser.cpp:
1738         * html/HTMLSelectElement.cpp:
1739         * html/HTMLSelectElement.h:
1740         * html/HTMLTokenizer.cpp:
1741         * html/HTMLTokenizer.h:
1742         * html/html_baseimpl.cpp:
1743         * html/html_headimpl.h:
1744         * kcanvas/KCanvasCreator.cpp:
1745         * kcanvas/KCanvasFilters.h:
1746         * kcanvas/KCanvasPath.h:
1747         * kcanvas/KCanvasResources.h:
1748         * kcanvas/KCanvasTreeDebug.cpp:
1749         * kcanvas/RenderPath.cpp:
1750         * kcanvas/RenderPath.h:
1751         * kcanvas/device/KRenderingDevice.h:
1752         * kcanvas/device/KRenderingPaintServerGradient.h:
1753         * kcanvas/device/KRenderingPaintServerPattern.h:
1754         * kcanvas/device/KRenderingPaintServerSolid.h:
1755         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
1756         * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
1757         * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
1758         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
1759         * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
1760         * khtml/misc/decoder.cpp:
1761         * khtml/misc/decoder.h:
1762         * khtml/xsl/XSLStyleSheet.cpp:
1763         * khtml/xsl/XSLTProcessor.cpp:
1764         * khtml/xsl/XSLTProcessor.h:
1765         * ksvg2/css/SVGRenderStyle.h:
1766         * ksvg2/ecma/GlobalObject.cpp:
1767         * ksvg2/misc/KCanvasRenderingStyle.h:
1768         * ksvg2/misc/SVGDocumentExtensions.h:
1769         * ksvg2/svg/SVGAngle.h:
1770         * ksvg2/svg/SVGAnimateColorElement.h:
1771         * ksvg2/svg/SVGAnimatedColor.h:
1772         * ksvg2/svg/SVGAnimatedLengthList.h:
1773         * ksvg2/svg/SVGAnimatedNumberList.h:
1774         * ksvg2/svg/SVGAnimatedString.h:
1775         * ksvg2/svg/SVGAnimatedTransformList.h:
1776         * ksvg2/svg/SVGAnimationElement.h:
1777         * ksvg2/svg/SVGColor.h:
1778         * ksvg2/svg/SVGCursorElement.h:
1779         * ksvg2/svg/SVGHelper.h:
1780         * ksvg2/svg/SVGLength.h:
1781         * ksvg2/svg/SVGList.h:
1782         * ksvg2/svg/SVGPaint.h:
1783         * ksvg2/svg/SVGPathSeg.h:
1784         * ksvg2/svg/SVGPatternElement.h:
1785         * ksvg2/svg/SVGSVGElement.cpp:
1786         * ksvg2/svg/SVGSVGElement.h:
1787         * ksvg2/svg/SVGStringList.h:
1788         * ksvg2/svg/SVGTransform.h:
1789         * kwq/AccessibilityObjectCache.mm:
1790         * kwq/ClipboardMac.mm:
1791         * kwq/JavaAppletWidget.mm:
1792         * kwq/KWQComboBox.mm:
1793         * kwq/KWQEditCommand.mm:
1794         * kwq/KWQFileButton.mm:
1795         * kwq/KWQKHTMLSettings.h:
1796         * kwq/KWQKSSLKeyGen.mm:
1797         * kwq/KWQLoader.mm:
1798         * kwq/KWQPageState.mm:
1799         * kwq/KWQTextEdit.mm:
1800         * kwq/RegularExpression.h:
1801         * kwq/RenderTreeAsText.cpp:
1802         * kwq/RenderTreeAsText.h:
1803         * kwq/WebCoreAXObject.mm:
1804         * loader/Cache.cpp:
1805         * loader/Cache.h:
1806         * loader/CachedCSSStyleSheet.cpp:
1807         * loader/CachedObject.h:
1808         * loader/CachedScript.cpp:
1809         * loader/CachedXBLDocument.cpp:
1810         * loader/CachedXBLDocument.h:
1811         * loader/CachedXSLStyleSheet.cpp:
1812         * loader/CachedXSLStyleSheet.h:
1813         * loader/DocLoader.cpp:
1814         * page/Frame.cpp:
1815         * page/Frame.h:
1816         * page/FramePrivate.h:
1817         * page/FrameTree.cpp:
1818         * page/FrameTree.h:
1819         * page/FrameView.cpp:
1820         * page/FrameView.h:
1821         * page/Page.cpp:
1822         * page/Page.h:
1823         * page/Plugin.h:
1824         (WebCore::Plugin::Plugin):
1825         (WebCore::Plugin::view):
1826         * platform/Color.cpp:
1827         * platform/FloatRect.h:
1828         * platform/Font.cpp:
1829         * platform/Font.h:
1830         * platform/FontFamily.cpp:
1831         * platform/GraphicsContext.cpp:
1832         * platform/Image.cpp:
1833         * platform/Image.h:
1834         * platform/IntRect.h:
1835         * platform/KURL.cpp:
1836         * platform/KURL.h:
1837         * platform/SegmentedString.h:
1838         * platform/Shared.h:
1839         * platform/StreamingTextDecoder.cpp:
1840         * platform/StringImpl.cpp:
1841         * platform/StringImpl.h:
1842         * platform/TextEncoding.h:
1843         * platform/Timer.cpp:
1844         * platform/Timer.h:
1845         * platform/TransferJob.cpp:
1846         * platform/TransferJob.h:
1847         * platform/TransferJobInternal.h:
1848         * platform/cairo/GraphicsContextCairo.cpp:
1849         * platform/cairo/ImageCairo.cpp:
1850         * platform/cairo/ImageSourceCairo.cpp:
1851         * platform/image-decoders/gif/GIFImageReader.cpp:
1852         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
1853         * platform/mac/FontFamilyMac.mm:
1854         * platform/mac/FontMac.mm:
1855         * platform/mac/ImageMac.mm:
1856         * platform/mac/TextEncodingMac.cpp:
1857         * platform/mac/TransferJobMac.mm:
1858         * platform/win/FontPlatformDataWin.cpp:
1859         * platform/win/TransferJobWin.cpp:
1860         * rendering/RenderBlock.cpp:
1861         * rendering/RenderBlock.h:
1862         * rendering/RenderBox.cpp:
1863         * rendering/RenderBox.h:
1864         * rendering/RenderCanvas.cpp:
1865         * rendering/RenderCanvas.h:
1866         * rendering/RenderContainer.cpp:
1867         * rendering/RenderFlexibleBox.h:
1868         * rendering/RenderFlow.cpp:
1869         * rendering/RenderFlow.h:
1870         * rendering/RenderImage.cpp:
1871         * rendering/RenderImage.h:
1872         * rendering/RenderLayer.cpp:
1873         * rendering/RenderLayer.h:
1874         * rendering/RenderObject.cpp:
1875         (showTree):
1876         * rendering/RenderObject.h:
1877         * rendering/RenderTableCell.h:
1878         * rendering/RenderTableSection.h:
1879         * rendering/RenderText.cpp:
1880         * rendering/RenderText.h:
1881         * rendering/RenderTextField.cpp:
1882         * rendering/RenderTextFragment.h:
1883         * rendering/RenderTheme.h:
1884         * rendering/RenderThemeMac.mm:
1885         * rendering/RenderThemeWin.cpp:
1886         * rendering/bidi.cpp:
1887         * rendering/render_form.h:
1888         * rendering/render_line.cpp:
1889         (showTree):
1890         * rendering/render_line.h:
1891         * rendering/render_list.cpp:
1892         * rendering/render_replaced.cpp:
1893         * rendering/render_replaced.h:
1894         * rendering/render_style.cpp:
1895         * rendering/render_style.h:
1896         * xml/xmlhttprequest.h:
1897
1898 2006-04-10  Darin Adler  <darin@apple.com>
1899
1900         - try to fix the Windows build
1901
1902         * WebCore.vcproj/WebCore/WebCore.vcproj: Fix mistaken bad editing of
1903         AdditionalIncludeDirectories.
1904
1905 2006-04-10  David Hyatt  <hyatt@apple.com>
1906
1907         Make focus ring painting respect clips set by WebCore (e.g., overflow).
1908
1909         Reviewed by darin
1910
1911         * platform/GraphicsContext.h:
1912         * platform/mac/GraphicsContextMac.mm:
1913         (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
1914         (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
1915         (WebCore::GraphicsContext::setFocusRingClip):
1916         (WebCore::GraphicsContext::clearFocusRingClip):
1917         (WebCore::GraphicsContext::drawFocusRing):
1918         * platform/mac/WebCoreGraphicsBridge.h:
1919         * platform/mac/WebCoreGraphicsBridge.m:
1920         (-[WebCoreGraphicsBridge drawFocusRingWithPath:radius:color:clipRect:]):
1921         * rendering/RenderLayer.cpp:
1922         (WebCore::setClip):
1923         (WebCore::restoreClip):
1924
1925 2006-04-10  Darin Adler  <darin@apple.com>
1926
1927         Reviewed by Geoff.
1928
1929         - death to khtml/ecma, long live bindings/js
1930
1931         * khtml/ecma: Removed. Moved all files to bindings/js.
1932
1933         * bindings/js/JSDOMParser.cpp: Added.
1934         * bindings/js/JSDOMParser.h: Added.
1935         * bindings/js/JSXMLHttpRequest.cpp: Added.
1936         * bindings/js/JSXMLHttpRequest.h: Added.
1937         * bindings/js/JSXMLSerializer.cpp: Added.
1938         * bindings/js/JSXMLSerializer.h: Added.
1939         * bindings/js/JSXSLTProcessor.cpp: Added.
1940         * bindings/js/JSXSLTProcessor.h: Added.
1941         * bindings/js/kjs_binding.cpp: Added.
1942         * bindings/js/kjs_binding.h: Added.
1943         * bindings/js/kjs_css.cpp: Added.
1944         * bindings/js/kjs_css.h: Added.
1945         * bindings/js/kjs_dom.cpp: Added.
1946         * bindings/js/kjs_dom.h: Added.
1947         * bindings/js/kjs_events.cpp: Added.
1948         * bindings/js/kjs_events.h: Added.
1949         * bindings/js/kjs_html.cpp: Added.
1950         * bindings/js/kjs_html.h: Added.
1951         * bindings/js/kjs_navigator.cpp: Added.
1952         * bindings/js/kjs_navigator.h: Added.
1953         * bindings/js/kjs_proxy.cpp: Added.
1954         * bindings/js/kjs_proxy.h: Added.
1955         * bindings/js/kjs_traversal.cpp: Added.
1956         * bindings/js/kjs_traversal.h: Added.
1957         * bindings/js/kjs_views.cpp: Added.
1958         * bindings/js/kjs_views.h: Added.
1959         * bindings/js/kjs_window.cpp: Added.
1960         * bindings/js/kjs_window.h: Added.
1961
1962         * DerivedSources.make: Removed khtml/ecma from directory list.
1963         * WebCore.vcproj/WebCore/WebCore.vcproj: Moved files from
1964         khtml/ecma to bindings/js.
1965         * WebCore.xcodeproj/project.pbxproj: Ditto.
1966
1967 2006-04-10  Darin Adler  <darin@apple.com>
1968
1969         Reviewed by Geoff.
1970
1971         - try to fix the Windows build
1972
1973         * html/HTMLCanvasElement.cpp: (WebCore::HTMLCanvasElement::reset):
1974         Put code to release m_drawingContext into an __APPLE__ ifdef.
1975
1976         * platform/win/TemporaryLinkStubs.cpp:
1977
1978 2006-04-10  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1979
1980         Reviewed by Eric, landed by ap.
1981
1982         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8295
1983           Dictionary pop-up panel targets the wrong word in a scrolled IFRAME
1984
1985         * kwq/WebCoreAXObject.mm:
1986         (-[WebCoreAXObject doAXTextMarkerForPosition:]): Removed the addition of scroll
1987         offsets, which is redundant for scrolled views, then changed the first view
1988         to be the document's scrolled view instead of its scroll view (all subsequent views were
1989         already scrolled views).
1990         * manual-tests/dictionary-scrolled-iframe.html: Added.
1991
1992 2006-04-09  Alexey Proskuryakov  <ap@nypop.com>
1993
1994         Reviewed by Darin.
1995
1996         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7877
1997         XMLHttpRequest ignores username/password passed to open()
1998
1999         Test: http/tests/xmlhttprequest/basic-auth.html
2000
2001         * platform/KURL.cpp:
2002         (KURL::setUser): Enable a code path that handles non-empty user name -
2003         it was already present, but commented out and protected with an assertion.
2004         (KURL::setPass): Ditto.
2005
2006 2006-04-09  Darin Adler  <darin@apple.com>
2007
2008         Reviewed by Anders.
2009
2010         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4884
2011           Canvas element breaks when RenderObject creation is deferred by external CSS
2012
2013         Test: fast/canvas/canvas-before-css.html
2014
2015         This patch makes us match the canvas documentation in Hixie's Web Applications
2016         draft as far as when the canvas is created and recreated and how it's sized.
2017         It also gets rid of the compositeOperation attribute of the canvas element.
2018         We can add that back if we need it. Anders points out that this specifically
2019         changes behavior for canvas elements where the size is set in CSS and not with
2020         width and height attributes. The CSS size now determines how big a box the canvas
2021         is rendered into, but has no effect on the size of the canvas's buffer.
2022
2023         * html/CanvasRenderingContext2D.h: Added overloads of drawImage that take
2024         HTMLCanvasElement, which is no longer derived from HTMLImageElement.
2025         * html/CanvasRenderingContext2D.cpp:
2026         (WebCore::imageSize): Renamed from imageOrCanvasSize. Now used for images only,
2027         because canvas is no longer derived from image.
2028         (WebCore::CanvasRenderingContext2D::drawImage): Split the implementation of this
2029         for image sources from the implementation for canvas sources.
2030         (WebCore::CanvasRenderingContext2D::willDraw): Changed to call a new willDraw
2031         function on the canvas element.
2032         (WebCore::CanvasRenderingContext2D::drawingContext): Changed to call drawingContext
2033         on the canvas element rather than the renderer.
2034
2035         * html/HTMLCanvasElement.h: Changed HTMLCanvasElement to derive from HTMLElement
2036         instead of HTMLImageElement. Added width, height, setWidth, setHeight, willDraw,
2037         paint, drawingContext, createDrawingContext, and reset functions. Added m_size,
2038         m_createdDrawingContext, m_data, and m_drawingContext data members. Removed
2039         mapToEntry, attach, detach, and isURLAttribute functins.
2040
2041         * html/HTMLCanvasElement.cpp:
2042         (WebCore::HTMLCanvasElement::HTMLCanvasElement): Added initializers for new m_size,
2043         m_createdDrawingContext, m_data, and m_drawingContext data members.
2044         (WebCore::HTMLCanvasElement::~HTMLCanvasElement): Free m_data and m_drawingContext.
2045         (WebCore::HTMLCanvasElement::parseMappedAttribute): Got rid of special case for
2046         srcAttr, which is no longer needed since we aren't deriving from HTMLImageElement.
2047         Added code that triggers a reset when either width or height is set.
2048         (WebCore::HTMLCanvasElement::createRenderer): Added code to set the intrinsic
2049         width and height of the renderer to the size of the element.
2050         (WebCore::HTMLCanvasElement::setHeight): Added. Sets the height attribute.
2051         (WebCore::HTMLCanvasElement::setWidth): Added. Sets the width attribute.
2052         (WebCore::HTMLCanvasElement::willDraw): Added. Tells the renderer to repaint.
2053         Also has FIXME mentioning we could dirty only the part that has changed in the future.
2054         (WebCore::HTMLCanvasElement::reset): Added. Sets the size of the canvas and discards
2055         the old buffer, which is an indirect way of resetting the buffer to transparent black.
2056         (WebCore::HTMLCanvasElement::paint): Added. Draws the canvas image into the graphics
2057         context that's passed in.
2058         (WebCore::HTMLCanvasElement::createDrawingContext): Added. Allocates a buffer for
2059         the bits, then creates a bitmap context for drawing into the buffer.
2060         (WebCore::HTMLCanvasElement::drawingContext): Added. Calls createDrawingContext if
2061         needed, then returns the current drawing context.
2062         (WebCore::HTMLCanvasElement::createPlatformImage): Changed to always call CGContextFlush
2063         and to create the image from the context in this class.
2064
2065         * rendering/RenderHTMLCanvas.h: Remove almost all of the contents of this file.
2066         Removed ~RenderHTMLCanvas, setNeedsImageUpdate, element, updateDrawnImage, drawingContext,
2067         createDrawingContext, and drawnImage functions and _drawingContext, _drawingContextData,
2068         _drawnImage, and _needsImageUpdate booleans. Changed RenderHTMLCanvas to derive from
2069         RenderReplaced instead of RenderImage.
2070
2071         * rendering/RenderHTMLCanvas.cpp:
2072         (WebCore::RenderHTMLCanvas::RenderHTMLCanvas): Changed to only initialize RenderReplaced.
2073         (WebCore::RenderHTMLCanvas::renderName): Moved this in here, since there's no good reason
2074         to have this virtual function inlined.
2075         (WebCore::RenderHTMLCanvas::paint): Changed implementation to use HTMLCanvasElement::paint
2076         instead ofcalling CGContextDrawImage directly.
2077         (WebCore::RenderHTMLCanvas::layout): Removed the code that detects changes in width and
2078         causes the drawing context to be recreated; instead, if the width and height changes we
2079         scale when we paint the canvas.
2080
2081         * bindings/js/JSCanvasRenderingContext2DBase.cpp:
2082         (WebCore::JSCanvasRenderingContext2DBaseProtoFunc::callAsFunction):
2083         Separated out handling for <canvas> vs. <img> elements in drawRect, since
2084         HTMLCanvasElement is no longer derived from HTMLImageElement.
2085
2086 2006-04-09  Rob Buis  <buis@kde.org>
2087
2088         Reviewed by eseidel.  Landed by eseidel.
2089
2090         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6027:
2091         Dirty rect invalidation issues in mozilla sample
2092
2093         Make sure the paths calculate the new bounding box and not
2094         use the cached bbox.
2095
2096         No automated test case possible.
2097
2098         * kcanvas/RenderPath.cpp:
2099         (WebCore::RenderPath::setPath):
2100
2101 2006-04-09  Rob Buis  <buis@kde.org>
2102
2103         Reviewed by darin.  Landed by eseidel.
2104
2105         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6930:
2106         % width/height on nested <svg> tags do not work
2107
2108         Set the context correctly for inner <svg>, so calculation of
2109         width/height for inner <svg> elements is done against the
2110         viewport element.
2111
2112         Test: svg/custom/inner-percent.svg
2113
2114         * ksvg2/svg/SVGSVGElement.cpp:
2115         (WebCore::SVGSVGElement::width):
2116         (WebCore::SVGSVGElement::height):
2117
2118 2006-04-08  Rob Buis  <buis@kde.org>
2119
2120         Reviewed by eseidel.  Landed by eseidel.
2121
2122         No automated test case possible.
2123
2124         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7531:
2125         hang in SVGPolygonElementImpl::toPathData in polygon test case
2126
2127         Make sure the points list is cleared, just like the path
2128         list is cleared first before (re)parsing.
2129
2130         * ksvg2/svg/SVGPolyElement.cpp:
2131         (SVGPolyElement::parseMappedAttribute):
2132
2133 2006-04-08  Darin Adler  <darin@apple.com>
2134
2135         Reviewed by Beth.
2136
2137         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7622
2138           REGRESSION: New text fields should compute maxlength considering composed character sequences
2139
2140         Test: fast/forms/input-text-maxlength.html
2141         Test: fast/forms/input-text-paste-maxlength.html
2142
2143         * html/HTMLInputElement.h: Removed all friend classes (not needed any more). Renamed
2144         typeEnum to InputType. Made init() function private. Tweaked parameter names and formatting
2145         in many function declarations. Made canHaveSelection, selectionStart, and selectionEnd
2146         const. Made data members except for m_name private instead of protected. Added private
2147         functions constrainValue and recheckValue. Removed unused isEditable function.
2148
2149         * html/HTMLInputElement.cpp:
2150         (WebCore::numGraphemeClusters): Added.
2151         (WebCore::numCharactersInGraphemeClusters): Added.
2152         (WebCore::HTMLInputElement::isKeyboardFocusable): Use inputType() instead of using m_type
2153         directly.
2154         (WebCore::HTMLInputElement::isMouseFocusable): Ditto.
2155         (WebCore::HTMLInputElement::focus): Ditto.
2156         (WebCore::HTMLInputElement::setInputType): Added code to call constrainValue or recheckValue
2157         so we will enforce maxLen if changing from a type that doesn't have maxLen to one that does.
2158         (WebCore::HTMLInputElement::type): More-standard formatting for switch statement. Put
2159         cases into alphabetical order.
2160         (WebCore::HTMLInputElement::state): Changed switch statement to include all case values and
2161         not include a default case to take advantage of gcc's missing case warning.
2162         (WebCore::HTMLInputElement::restoreState): Ditto.
2163         (WebCore::HTMLInputElement::canHaveSelection): Ditto.
2164         (WebCore::HTMLInputElement::selectionStart): Ditto.
2165         (WebCore::HTMLInputElement::selectionEnd): Ditto.
2166         (WebCore::HTMLInputElement::setSelectionStart): Ditto.
2167         (WebCore::HTMLInputElement::setSelectionEnd): Ditto.
2168         (WebCore::HTMLInputElement::select): Ditto.
2169         (WebCore::HTMLInputElement::setSelectionRange): Ditto.
2170         (WebCore::HTMLInputElement::click): Ditto.
2171         (WebCore::HTMLInputElement::accessKeyAction): Ditto.
2172         (WebCore::HTMLInputElement::parseMappedAttribute): Use inputType() instead of using m_type
2173         directly. Added call to recheckValue when parsing a new value for the maxlength attribute.
2174         (WebCore::HTMLInputElement::rendererIsNeeded): Changed switch statement to include all case
2175         values and not include a default case to take advantage of gcc's missing case warning.
2176         (WebCore::HTMLInputElement::createRenderer): Ditto.
2177         (WebCore::HTMLInputElement::attach): Remove code to condition the value attribute when done
2178         parsing. This is now all handled by constrainValue and recheckValue as needed.
2179         (WebCore::HTMLInputElement::isSuccessfulSubmitButton): Use inputType() instead of using
2180         m_type directly.
2181         (WebCore::HTMLInputElement::appendFormData): Ditto. Rearranged code a little.
2182         (WebCore::HTMLInputElement::setChecked): Ditto.
2183         (WebCore::HTMLInputElement::setIndeterminate): Ditto.
2184         (WebCore::HTMLInputElement::value): Ditto. Call constrainValue when reading the value out
2185         of the value attribute.
2186         (WebCore::HTMLInputElement::valueWithDefault): Use inputType() instead of using
2187         m_type directly. Changed switch statement to include all case values and not include a
2188         default case to take advantage of gcc's missing case warning.
2189         (WebCore::HTMLInputElement::setValue): Ditto. Call constrainValue when storing a value.
2190         (WebCore::HTMLInputElement::setValueFromRenderer): Added an assertion.
2191         (WebCore::HTMLInputElement::storesValueSeparateFromAttribute): Use inputType() instead of
2192         using m_type directly.
2193         (WebCore::HTMLInputElement::preDispatchEventHandler): Ditto.
2194         (WebCore::HTMLInputElement::postDispatchEventHandler): Ditto.
2195         (WebCore::HTMLInputElement::defaultEventHandler): Ditto. Changed code to truncate inserted
2196         text in a BeforeTextInsertedEvent to use the new constrainValue function and also the
2197         numGraphemeClusters function, so it's based on grapheme clusters instead of characters and
2198         shares code.
2199         (WebCore::HTMLInputElement::constrainValue): Added.
2200         (WebCore::HTMLInputElement::recheckValue): Added.
2201
2202         * html/HTMLIsIndexElement.cpp: (WebCore::HTMLIsIndexElement::HTMLIsIndexElement):
2203         Removed unneeded code to set m_type to TEXT, which is already what it gets set to by
2204         the base class's constructor.
2205
2206         * html/HTMLGenericFormElement.h: Removed unused isEditable function.
2207         * html/HTMLGenericFormElement.cpp: Ditto.
2208         * html/HTMLTextAreaElement.h: Ditto.
2209         * html/HTMLTextAreaElement.cpp: Ditto.
2210
2211         * platform/StringImpl.cpp: (WebCore::StringImpl::truncate): Changed > to >= so that
2212         truncating to the size of the string does nothing, efficiently.
2213
2214         * rendering/RenderText.h: Added declaration of characterBreakIterator.
2215         * rendering/RenderText.cpp:
2216         (WebCore::characterBreakIterator): Made this public so it can be used in other files.
2217         Maybe we should also move it to another source file later. Also renamed to remove the
2218         "get" from the title.
2219         (WebCore::RenderText::previousOffset): Updated for name change.
2220         (WebCore::RenderText::nextOffset): Updated for name change.
2221
2222         * rendering/RenderTextField.cpp: (WebCore::RenderTextField::updateFromElement):
2223         Removed code to implement maxlength checking. That's handled entirely in the DOM now.
2224         Also moved down the code to get the value into a string so that it's done only in the
2225         case where the string is used.
2226
2227         * rendering/render_form.cpp: (WebCore::RenderFileButton::valueChanged): Use setValueFromRenderer
2228         instead of setting the value directly in the input element. We changed this for all the other
2229         types a while ago, and it works just as well for the input element.
2230
2231         * dom/BeforeTextInsertedEvent.h: Added setText function. Previously, clients changed the text
2232         by modifying the text object in place, but going forward we'd like to avoid that sort of thing.
2233  
2234         * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplacementFragment::ReplacementFragment):
2235         Changed code to assume clients will change the text in the event rather than mutating the
2236         text object itself. This is compatible with possible future changes to String to be copy
2237         on write.
2238         * editing/TypingCommand.cpp: (WebCore::TypingCommand::insertText): Ditto.
2239
2240 2006-04-07  Darin Adler  <darin@apple.com>
2241
2242         Reviewed by Hyatt.
2243
2244         - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8134
2245           REGRESSION: dragging down from the middle of a text field does not select to end of field
2246
2247         * editing/Selection.cpp:
2248         (WebCore::comparePositions): Added. Takes shadow content into account.
2249         (WebCore::Selection::validate): Changed to call comparePositions instead of calling
2250         Range::compareBoundaryPoints directly. Also removed unneeded code to redundantly set
2251         m_start and m_end to null and did a bit of reformatting.
2252
2253         - some tiny efficiency improvements to the tokenizer -- no measurable speedup, but removes
2254           a little bit of unneeded code
2255
2256         * html/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::parseTag): Changed all the places
2257         that do "unsigned short x = *c" to "unsigned short x = c->unicode()" when c is a QChar,
2258         otherwise we do an unnecessary conversion to char (which requires a branch to see if
2259         the c fits in a char).
2260
2261 2006-04-07  Justin Garcia  <justin.garcia@apple.com>
2262
2263         Reviewed by harrison
2264         
2265         Rolled the fix for 8250 back in and fixed a bug:
2266         The local variables for the first and last nodes in the fragment
2267         need to be reset when the fragment is changed for plaintext-only mode
2268         or a change from the beforetextinserted event handler.
2269
2270         * editing/ReplaceSelectionCommand.cpp:
2271         (WebCore::ReplacementFragment::ReplacementFragment):
2272
2273 2006-04-07  Maciej Stachowiak  <mjs@apple.com>
2274
2275         Reviewed by Darin.
2276         
2277         - fixed REGRESSION: offsetParent on element with no offset parent crashes
2278
2279         * dom/Element.cpp:
2280         (WebCore::Element::offsetParent): Add missing null check.
2281
2282 2006-04-07  Justin Garcia  <justin.garcia@apple.com>
2283
2284         Reviewed by adele
2285         
2286         maxlength truncation in text fields didn't work if the fragment was a
2287         single text node.
2288
2289         * editing/ReplaceSelectionCommand.cpp:
2290         (WebCore::ReplacementFragment::ReplacementFragment):
2291
2292 2006-04-07  Justin Garcia  <justin.garcia@apple.com>
2293
2294         Reviewed by harrison
2295         
2296         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8250>
2297         REGRESSION: Interchange newlines aren't passed with the khtmlBeforeTextInsertedEvent
2298
2299         * editing/ReplaceSelectionCommand.cpp:
2300         (WebCore::ReplacementFragment::ReplacementFragment):
2301         Interchange content removal happened before khtmlBeforeTextInsertedEvent was sent.
2302
2303 2006-04-07  Justin Garcia  <justin.garcia@apple.com>
2304
2305         Reviewed by adele
2306         
2307         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8219>
2308         REGRESSION: Two extra newlines added when pasting a single styled line into a plaintext-only region
2309
2310         * editing/ReplaceSelectionCommand.cpp:
2311         (WebCore::ReplacementFragment::ReplacementFragment):
2312         Converting the fragment to plaintext introduced an extraneous newline because
2313         the range passed to plainText ended after the paragraph containing the fragment
2314         built from the markup that TextEdit put on the paste board.  TextIterator will
2315         emit a newline when it exits a paragraph.
2316         Two extra newlines were added because the '\n' in the plaintext string turns
2317         into an interchange newline, which isn't removed because of 8250, and the
2318         interchange newline looks like inline content that requires the insertion of
2319         a paragraph separator during paste.
2320         Fixed by creating a range using VisiblePositions at the start and the end of 
2321         the node that holds the fragment during paste's test rendering.
2322
2323 2006-04-06  Justin Garcia  <justin.garcia@apple.com>
2324
2325         Reviewed by harrison
2326         
2327         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8145>
2328         REGRESSION: Pasting text from TextEdit with a bold word into text field results in crash
2329
2330         * editing/AppendNodeCommand.cpp:
2331         (WebCore::AppendNodeCommand::doApply): 
2332         Assert that the node will be placed somewhere that's contenteditable.
2333         * editing/InsertNodeBeforeCommand.cpp:
2334         (WebCore::InsertNodeBeforeCommand::doApply): Ditto
2335         * editing/JSEditor.cpp: 
2336         Enabled insertHTML for plaintext-only regions since it's useful for debugging rich 
2337         content pastes into the new text fields.
2338         * editing/ReplaceSelectionCommand.cpp:
2339         (WebCore::ReplaceSelectionCommand::doApply):
2340         1) After the first paragraph of the fragment has been merged with the first part of the
2341         paragraph where the paste occured, if the next node to be inserted is inline, we put it 
2342         in a new paragraph because it was at the start of a paragraph in the fragment.  The change
2343         is to insert a paragraph separator if insertionPos.next() is null or outside of the current 
2344         editable region.
2345         2) Before the paste begins, a paragraph separator is inserted in order to avoid 
2346         nesting blocks from the fragment to be pasted inside the block where the paste will 
2347         occur.  I made two fixes to the code that decides whether or not to insert the 
2348         paragraph separator and added testcases for each.  Added a fixme because it appears that
2349         this code is also used to ensure that the aforementioned insertionPos will be at the end of 
2350         a paragraph.  This code should only be about preventing nesting.
2351
2352 2006-04-06  Maciej Stachowiak  <mjs@apple.com>
2353
2354         Reviewed by Anders.
2355
2356         - Convert Element JS bindings to be almost completely autogenerated
2357         http://bugzilla.opendarwin.org/show_bug.cgi?id=8227
2358
2359         * dom/Element.idl: Declare full interface in IDL.
2360         * dom/Element.h:
2361         (WebCore::Element::tagQName): Renamed from tagName, so the real DOM
2362         method can be called tagName.
2363         (WebCore::Element::tagName): inline alias for nodeName.
2364         * dom/Element.cpp:
2365         (WebCore::Element::scrollByUnits): Moved logic from JS bindings to
2366         core DOM.
2367         (WebCore::Element::scrollByLines): ditto
2368         (WebCore::Element::scrollByPages): ditto
2369         (WebCore::Element::offsetLeft): ditto, plus make unrendered elements return 0 not undefined
2370         (WebCore::Element::offsetTop): ditto, plus make unrendered elements return 0 not undefined
2371         (WebCore::Element::offsetWidth): ditto, plus make unrendered elements return 0 not undefined
2372         (WebCore::Element::offsetHeight): ditto, plus make unrendered elements return 0 not undefined
2373         (WebCore::Element::offsetParent): ditto
2374         (WebCore::Element::clientWidth): ditto, plus make unrendered elements return 0 not undefined
2375         (WebCore::Element::clientHeight): ditto, plus make unrendered elements return 0 not undefined
2376         (WebCore::Element::scrollLeft): ditto
2377         (WebCore::Element::scrollTop): ditto
2378         (WebCore::Element::setScrollLeft): ditto
2379         (WebCore::Element::setScrollTop): ditto
2380         (WebCore::Element::scrollWidth): ditto, plus make unrendered elements return 0 not undefined
2381         (WebCore::Element::scrollHeight): ditto, plus make unrendered elements return 0 not undefined
2382
2383         * bindings/scripts/CodeGeneratorJS.pm: Added support for
2384         ConvertUndefinedToTrue, for benefit of scroll methods where
2385         omitted arguments should be treated as true.  However, maybe
2386         explicit overloading in the IDL would be a better long-term
2387         approach for optional arguments.
2388
2389         * khtml/ecma/kjs_binding.cpp:
2390         (KJS::valueToStringWithNullCheck): fixed formatting
2391         (KJS::valueToBooleanTreatUndefinedAsTrue): added for binding of scrollIntoView
2392         (isn't this lame?)
2393         * khtml/ecma/kjs_binding.h:
2394         (KJS::toJS): fixed formatting, added new stuff
2395         * khtml/ecma/kjs_dom.cpp:
2396         (KJS::DOMElement::getValueProperty): removed most of contents
2397         (KJS::DOMElement::putValueProperty): ditto
2398         (KJS::DOMElementProtoFunc::callAsFunction): ditto
2399
2400         * css/cssstyleselector.cpp:
2401         (WebCore::CSSStyleSelector::canShareStyleWithElement): updated for rename
2402         of tagName to tagQName
2403         (WebCore::CSSStyleSelector::checkOneSelector): ditto
2404         * dom/Document.cpp:
2405         (WebCore::Document::importNode): ditto
2406         * editing/ApplyStyleCommand.cpp:
2407         (WebCore::ApplyStyleCommand::removeInlineStyle): ditto
2408         (WebCore::areIdenticalElements): ditto
2409         * html/HTMLElement.cpp:
2410         (WebCore::HTMLElement::inEitherTagList): ditto
2411         (WebCore::HTMLElement::inInlineTagList): ditto
2412         (WebCore::HTMLElement::inBlockTagList): ditto
2413
2414 2006-04-06  Beth Dakin  <bdakin@apple.com>
2415
2416         Reviewed by Darin.
2417
2418         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8203 
2419         REGRESSION: "Invite a friend" text field in GMail page spills out 
2420         of table
2421
2422         RenderReplaced::calcMinMaxWidth() sets m_minWidth to 0 when the 
2423         width is a percent, so this patch copies that behavior into 
2424         RenderTextField::calcMinMaxWidth().
2425
2426         * rendering/RenderTextField.cpp:
2427         (WebCore::RenderTextField::calcMinMaxWidth):
2428
2429 2006-04-06  Darin Adler  <darin@apple.com>
2430
2431         - try to fix Windows build
2432
2433         * WebCore.vcproj/WebCore/WebCore.vcproj: Add JSDocument.cpp.
2434
2435 2006-04-05  Darin Adler  <darin@apple.com>
2436
2437         Reviewed by Adele.
2438
2439         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8111
2440           REGRESSION (NativeTextField): first click in form field on weather.com leaves focus
2441           but no caret
2442
2443         Test: fast/forms/input-text-self-emptying-click.html
2444
2445         * page/MouseEventWithHitTestResults.h: Removed url, target, m_url and m_target,
2446         replacing them with isOverLink and m_isOverLink. Replaced innerNode with targetNode,
2447         and added logic to handle the case where the target node is removed from the document
2448         but the element the target node was in is still inside the document.
2449         * page/MouseEventWithHitTestResults.cpp: Added.
2450
2451         * WebCore.xcodeproj/project.pbxproj: Added MouseEventWithHitTestResults.cpp.
2452         * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
2453
2454         * kwq/RenderTreeAsText.cpp: (nodePosition): Added a call to shadowParentNode so we
2455         correctly dump positions within shadow trees. This was needed to give a good result
2456         from my new test for this bug.
2457
2458         * dom/Document.cpp:
2459         (WebCore::Document::prepareMouseEvent): Update to pass fewer parameters to the
2460         constructor for MouseEventWithHitTestResults. Now takes isOverLink boolean, and no
2461         longer takes href and target parameters.
2462
2463         * page/Frame.cpp:
2464         (WebCore::Frame::handleMousePressEventDoubleClick): Use new name targetNode, instead
2465         of old name innerNode.
2466         (WebCore::Frame::handleMousePressEventTripleClick): Ditto.
2467         (WebCore::Frame::handleMousePressEventSingleClick): Ditto. Also change code to check
2468         if over a link to use !isOverLink instead of url.isNull.
2469         (WebCore::Frame::handleMousePressEvent): Ditto. Also remove unused "url" local variable.
2470         (WebCore::Frame::handleMouseMoveEvent): Ditto.
2471         (WebCore::Frame::handleMouseReleaseEvent): Ditto.
2472         (WebCore::Frame::passWidgetMouseDownEventToWidget): Ditto.
2473
2474         * bridge/mac/FrameMac.mm:
2475         (WebCore::FrameMac::handleMousePressEvent): Use new name targetNode, instead of old
2476         name innerNode.
2477         (WebCore::FrameMac::handleMouseMoveEvent): Ditto.
2478         (WebCore::FrameMac::passSubframeEventToSubframe): Ditto.
2479         (WebCore::FrameMac::sendContextMenuEvent): Ditto.
2480
2481         * page/FrameView.cpp:
2482         (WebCore::subframeForEvent): Use new name targetNode, instead of old name innerNode.
2483         (WebCore::FrameView::handleMousePressEvent): Ditto.
2484         (WebCore::FrameView::handleMouseDoubleClickEvent): Ditto.
2485         (WebCore::selectCursor): Ditto. Also change code to check if over a link to use
2486         isOverLink instead of !url.isNull.
2487         (WebCore::FrameView::handleMouseMoveEvent): Ditto.
2488         (WebCore::FrameView::handleMouseReleaseEvent): Ditto.
2489         (WebCore::FrameView::updateDragAndDrop): Ditto.
2490
2491 2006-04-05  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2492
2493         Reviewed and landed by Maciej.
2494
2495         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8184
2496           REGRESSION (r13655): Layer outline not clipped where it should be
2497
2498         * rendering/RenderLayer.cpp:
2499         (WebCore::RenderLayer::calculateRects): Reverted this part of the fix for bug 7943.
2500         The outlineRect should not be inflated.
2501
2502 2006-04-05  Rob Buis  <buis@kde.org>
2503
2504         Reviewed by Eric, landed by Maciej.
2505
2506         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7627:
2507         SVG from the W3C SVG 1.1 test suite (cubic01.svg) renders as all black
2508
2509         Fix this svg stylesheet to use strict-mode, as this makes sure
2510         class selecting is done correctly.
2511
2512         * ksvg2/svg/SVGStyleElement.cpp:
2513         (SVGStyleElement::childrenChanged):
2514
2515 2006-04-05  Justin Garcia  <justin.garcia@apple.com>
2516
2517         Reviewed by mjs
2518
2519         I forgot to convert one of the implicit remove/inserts to an explicit remove/insert,
2520         so we were hitting the assert I just added to InsertNodeBeforeCommand that checked for
2521         implicit removes.
2522
2523         * editing/ReplaceSelectionCommand.cpp:
2524         (WebCore::ReplaceSelectionCommand::doApply):
2525
2526 2006-04-05  Maciej Stachowiak  <mjs@apple.com>
2527
2528         Reviewed by Anders.
2529
2530         - autogenerate bindings for all of the methods and properties of Document
2531         http://bugzilla.opendarwin.org/show_bug.cgi?id=8163
2532
2533         - also removed document.actualEncoding since it is not in any spec
2534         or implemented by any other browser
2535         
2536         * DerivedSources.make: add JSDocument.h to results
2537         * WebCore.xcodeproj/project.pbxproj: Added new files to project
2538         * bindings/scripts/CodeGeneratorJS.pm: Support for new stuff needed by Document.
2539         * dom/Document.cpp:
2540         (WebCore::Document::readyState): moved impl here from JS bindings
2541         (WebCore::Document::inputEncoding): ditto
2542         (WebCore::Document::defaultCharset): ditto
2543         (WebCore::Document::setCharset): ditto
2544         * dom/Document.h:
2545         (WebCore::Document::charset): added, synonym for inputEncoding.
2546         (WebCore::Document::characterSet): ditto
2547         * dom/Document.idl: Added. Full interface for the Document object.
2548         * khtml/ecma/JSXMLHttpRequest.cpp:
2549         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): JSDocument, not DOMDocument
2550         * khtml/ecma/JSXSLTProcessor.cpp:
2551         (KJS::XSLTProcessorProtoFunc::callAsFunction): ditto
2552         * khtml/ecma/kjs_binding.cpp:
2553         (KJS::jsStringOrFalse): Added this convenience for the method on Document
2554         that bizzarely returns false on failure and a string otherwise.
2555         * khtml/ecma/kjs_binding.h:
2556         * khtml/ecma/kjs_css.cpp:
2557         (KJS::toJS): renamed for consistency
2558         * khtml/ecma/kjs_css.h:
2559         * khtml/ecma/kjs_dom.cpp:
2560         - removed all traces of DOMDocument
2561         (KJS::toJS): JSDocument, not DOMDocument
2562         * khtml/ecma/kjs_dom.h:
2563         * khtml/ecma/kjs_html.cpp:
2564         (KJS::):
2565         (KJS::JSHTMLDocument::JSHTMLDocument): inherit from JSDocument
2566         (KJS::JSHTMLDocument::getOwnPropertySlot): ditto
2567         (KJS::JSHTMLDocument::put): ditto
2568         * khtml/ecma/kjs_html.h:
2569         * khtml/ecma/kjs_traversal.cpp:
2570         (KJS::toJS): added overloads
2571         (KJS::toNodeFilter): handle JS functions as well as impl NodeFilter objects
2572         * khtml/ecma/kjs_traversal.h:
2573         * platform/AtomicString.h:
2574         (WebCore::AtomicString::AtomicString): Allow implicit conversion from String.
2575
2576 2006-04-05  Justin Garcia  <justin.garcia@apple.com>
2577
2578         Reviewed by darin
2579         
2580         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8198>
2581         Hitting an assert on undo paste
2582         
2583         ReplaceSelectionCommand was doing a combination of undoable and non-undoable 
2584         removes from the ReplacementFragment.  On Undo Paste, the undoable removes 
2585         couldn't be undone because the tree was in a different state than it was
2586         at the time of the remove.  This patch makes all the removes from the fragment 
2587         non-undoable.  We could make them all undoable, but I can't think of any reason 
2588         why we'd want the fragment to be reconstructed on an Undo Paste.
2589
2590         * editing/AppendNodeCommand.cpp:
2591         (WebCore::AppendNodeCommand::doApply):
2592         Assert that the node to append isn't already in a tree, since if it is, it will 
2593         be removed in a non-undoable way.
2594         * editing/InsertNodeBeforeCommand.cpp:
2595         (WebCore::InsertNodeBeforeCommand::doApply): Ditto.
2596         * editing/ReplaceSelectionCommand.cpp:
2597         (WebCore::ReplaceSelectionCommand::doApply): 
2598         Nodes were being moved from the fragment to the document with undoable inserts.  
2599         Undoable inserts implicitly remove the node (in a non-undoable way) from its 
2600         old location if it is already in a tree.  I now explicitly remove the nodes 
2601         from the fragment before inserting them into the document to make it clear that 
2602         they are being removed in a non-non-undoable way.  I also changed the one undoable 
2603         remove from the fragment to a non-undoable remove.
2604         * editing/ReplaceSelectionCommand.h: 
2605         Made ReplacementFragment's non-undoable removeNode public.
2606
2607 2006-04-05  Darin Adler  <darin@apple.com>
2608
2609         - fixed the build
2610
2611         * WebCore.xcodeproj/project.pbxproj: Oops! Resolved merge conflict.
2612
2613 2006-04-05  Darin Adler  <darin@apple.com>
2614
2615         Reviewed by Maciej.
2616
2617         - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8049
2618           StringImpl hash traits deleted value creates an init routine for WebCore
2619           <rdar://problem/4442248> REGRESSION: WebCore has init routines (8049)
2620
2621         * platform/StringHash.h: Added. Moved hash functions and such for
2622         WebCore::String and friends into this file so we don't have to include
2623         the hash traits header everywhere. Changed hashing for WebCore::StringImpl
2624         and WebCore::String so that they use a raw pointer for the underlying
2625         storage type, taking advantage of the new feature added in JavaScriptCore.
2626
2627         * platform/AtomicString.h: Moved StrHash specialization to StringHash.h.
2628         * platform/PlatformString.h: Moved StrHash specialization to StringHash.h.
2629         * platform/StringImpl.h: Moved StrHash, CaseInsensitiveHash, and HashTraits
2630         to StringHash.h. Left DefaultHash behind so that you can't get the wrong
2631         hash function by accident if you forget to include "StringHash.h".
2632
2633         * platform/StringImpl.cpp: Added include of StringHash.h and removed
2634         RefPtr<StringImpl> HashTraits<RefPtr<StringImpl> >::_deleted, which is
2635         the object with a global initializer causing all the trouble!
2636
2637         * kwq/AccessibilityObjectCache.h: Changed hash function to be IntHash
2638         instead of PtrHash.
2639
2640         * dom/StyledElement.cpp: Changed MappedAttributeKeyTraits to inherit from
2641         the generic traits in KXMLCore so we get a StorageType. Also cleaned up a
2642         tiny bit by adding default values to the MappedAttributeKey constructor.
2643
2644         * platform/CharsetNames.cpp: Changed hash traits here to be a new
2645         TextEncodingIDHashTraits struct rather than defining new default traits
2646         for the integer type since more integer types have default traits in
2647         HashTraits.h now. Also added a specialization so this class will share
2648         the underlying implementation (since InvalidEncoding happens to be -1).
2649
2650         * bridge/mac/FrameMac.h:
2651         * dom/Document.h:
2652         * dom/xml_tokenizer.h:
2653         * khtml/xsl/XSLTProcessor.h:
2654         * kwq/JavaAppletWidget.h:
2655         * page/FramePrivate.h:
2656         * page/Page.cpp:
2657         * platform/AtomicString.cpp:
2658         * platform/TransferJob.h:
2659         * rendering/render_applet.h:
2660         Added include of StringHash.h.
2661
2662         * WebCore.xcodeproj/project.pbxproj: Added StringHash.h. Remove unneeded
2663         CREATE_HASH_TABLE variable in build settings. Re-sorted some file lists.
2664         Added quotes to the CREATE_HASH_TABLE initialization in the rule that
2665         builds generated files. Removed various unneeded build settings for that
2666         target as well.
2667
2668         * ForwardingHeaders/kxmlcore/HashTraits.h: Added.
2669
2670         - other minor cleanup
2671
2672         * bridge/mac/FrameMac.mm: Sorted includes.
2673         * dom/Node.cpp: Removed bogus symbol after #endif.
2674
2675         * khtml/xsl/XSLTProcessor.cpp: Sorted includes. Removed redundant using
2676         namespace WebCore.
2677         * loader/Cache.cpp: Ditto.
2678
2679 2006-04-05  Beth Dakin  <bdakin@apple.com>
2680
2681         Reviewed by Darin.
2682
2683         Fix for <rdar://problem/4502311> text-transform:capitalize needs to 
2684         treat nbsp as a regular space when ICU changes
2685
2686         There will be future changes in ICU to match the Unicode 4.1 
2687         standard which no longer recognizes &nbsp as a word separator. We 
2688         need to work around this with text-transform:capitalize because 
2689         words after non-breaking spaces still need to be capitalized.
2690
2691         No layout tests added because existing layout tests cover this.
2692
2693         * platform/StringImpl.cpp:
2694         (WebCore::StringImpl::capitalize): If the character is a non-
2695         breaking space, add a regular space to our temporary buffer, 
2696         otherwise, just copy the character in.
2697
2698 2006-04-05  Alexey Proskuryakov  <ap@nypop.com>
2699
2700         Reviewed by Darin.
2701
2702         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8110
2703           Define navigator.vendorSub (bcms.gov.uk doesn't allow access to login page)
2704
2705         Test: fast/dom/navigator-vendorSub.html
2706
2707         * khtml/ecma/kjs_navigator.cpp:
2708         (KJS::Navigator::getValueProperty): Return an empty string for vendorSub property.
2709         * khtml/ecma/kjs_navigator.h:
2710
2711 2006-04-04  Darin Adler  <darin@apple.com>
2712
2713         Reviewed by Justin (editing parts) and Adele (the rest).
2714
2715         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8182
2716           some text-field-related layout tests are failing
2717
2718         The smart paste code was getting confused and adding extra spaces.
2719
2720         * editing/ReplaceSelectionCommand.cpp:
2721         (WebCore::ReplaceSelectionCommand::doApply): Use isStartOfParagraph instead of
2722         isStartOfLine.
2723         (WebCore::ReplaceSelectionCommand::removeLinePlaceholderIfNeeded): Ditto.
2724
2725         * editing/InsertParagraphSeparatorCommand.cpp: (WebCore::enclosingEmptyListItem):
2726         Change to call isStart/EndOfParagraph instead of Line.
2727
2728         * editing/InsertTextCommand.cpp: (WebCore::InsertTextCommand::input):
2729         Add a comment about how isStartOfLine is almost certainly wrong here.
2730
2731         - clean up some loose ends in the Frame class from the recent renaming
2732
2733         * page/Frame.h: Removed declarations of deleteMe1, deleteMe2, and
2734         handleMouseMoveEventPart2.
2735         * page/Frame.cpp: (WebCore::Frame::handleMouseMoveEvent): Removed
2736         handleMouseMoveEventPart2 by renaming it to handleMouseMoveEvent and removing
2737         handleMouseMoveEvent itself.
2738
2739         - invoke the makefile directly, removing the generate-derived-sources script
2740
2741         * WebCore.vcproj/WebCore/build-generated-files.sh: Call make directly.
2742         * WebCore.xcodeproj/project.pbxproj: Ditto.
2743         * generate-derived-sources: Removed.
2744
2745 2006-04-04  Adele Peterson  <adele@apple.com>
2746
2747         Reviewed by Justin.
2748
2749         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8158
2750         REGRESSION: Clicking past RTL text in a new text field puts the caret on the wrong side of the text
2751
2752         Tests:
2753         editing/selection/caret-rtl.html
2754         editing/selection/caret-rtl-2.html
2755
2756         * rendering/RenderText.cpp: (WebCore::RenderText::positionForCoordinates):
2757         When calculating the position for the beginning or end of an InlineTextBox,
2758         we now use offsetForPosition instead of just using m_start and m_len, because
2759         offsetForPosition will take rtl text into account.  I also made some formatting
2760         changes.
2761
2762 2006-04-04  David Hyatt  <hyatt@apple.com>
2763
2764         Fix for bug 8065, inline blocks incorrectly loses spaces between them.
2765
2766         Reviewed by beth
2767
2768         * dom/Text.cpp:
2769         (WebCore::Text::rendererIsNeeded):
2770
2771 2006-04-04  Adele Peterson  <adele@apple.com>
2772
2773         Reviewed by Hyatt.
2774
2775         - Fix for:
2776         http://bugzilla.opendarwin.org/show_bug.cgi?id=8092
2777         REGRESSION (NativeTextField): table contents misaligned in Netflix queue
2778
2779         http://bugzilla.opendarwin.org/show_bug.cgi?id=8141
2780         REGRESSION: Native text field fails to wrap inside table
2781
2782         http://bugzilla.opendarwin.org/show_bug.cgi?id=8072
2783         REGRESSION: text fields at connect.apple.com spill out of the containing box
2784
2785         Test: fast/forms/input-table.html
2786
2787         Rewrote calcMinMaxWidth for text fields so it considers width, 
2788         min-width, and max-width settings as well as the size attribute.
2789
2790         * rendering/RenderTextField.cpp: (WebCore::RenderTextField::calcMinMaxWidth):
2791
2792 2006-04-04  Beth Dakin  <bdakin@apple.com>
2793
2794         Reviewed by Darin.
2795
2796         This is a followup to my fix for <rdar://problem/4493218>
2797         
2798         This patch re-names computeIntLength() and computeShortLength() to 
2799         be computeLengthInt() and computeLengthShort(), respectively, to 
2800         match the pre-existing computeLengthFloat(). This patch also adds 
2801         the slightly confusing-ly named computeLengthIntForLength() which 
2802         uses the max and min values of a 28-bit integer as bounds for 
2803         overflow. This function is necessary because Length objects expect 
2804         28-bit integers. 
2805
2806         * css/css_valueimpl.cpp:
2807         (WebCore::CSSPrimitiveValue::computeLengthInt):
2808         (WebCore::CSSPrimitiveValue::computeLengthIntForLength):
2809         (WebCore::CSSPrimitiveValue::computeLengthShort):
2810         * css/css_valueimpl.h:
2811         * css/cssstyleselector.cpp:
2812         (WebCore::convertToLength):
2813         (WebCore::CSSStyleSelector::applyProperty):
2814         (WebCore::CSSStyleSelector::mapBackgroundXPosition):
2815         (WebCore::CSSStyleSelector::mapBackgroundYPosition):
2816
2817 2006-04-04  Timothy Hatcher  <timothy@apple.com>
2818
2819         Reviewed by Darin.
2820
2821         The Debug and Release frameworks are now built with install paths relative to the build products directory.
2822         This removes the need for other projects to build with -framework WebCore and -framework JavaScriptCore. 
2823
2824         * WebCore.xcodeproj/project.pbxproj:
2825
2826 2006-04-04  Justin Garcia  <justin.garcia@apple.com>
2827
2828         Reviewed by darin
2829         
2830         <http://bugzilla.opendarwin.org/show_bug.cgi?id=6608>
2831         REGRESSION: Line disappears when deleting
2832         
2833         Rewrote moveNodesAfterNode to address these problems:
2834         It moved nodes without preserving their style. 
2835         It traversed over siblings looking for a br to know when
2836         to stop merging.  If the br was burried inside a span, it 
2837         wouldn't find it.  If the text is whitespace:pre, it wouldn't
2838         stop.
2839         In theory it would crash if the "enclosingInlineElements" of the start of the
2840         selection to delete and the end of the selection to delete were the
2841         same.  We think that this will fix these:
2842         <rdar://problems/3950559&4498113>
2843         CrashTracer: 2116 crashes in Mail at com.apple.WebCore: khtml::CompositeEditCommand::insertNodeAfter + 32
2844         CrashTracer: 1569 crashes in Mail at com.apple.WebCore: khtml::DeleteSelectionCommand::moveNodesAfterNode + 340
2845         But we haven't been able to construct a reproducible case.
2846         
2847         * editing/CompositeEditCommand.cpp:
2848         (WebCore::CompositeEditCommand::removeNodeAndPruneAncestors): Moved from ReplaceSelectionCommand.
2849         (WebCore::CompositeEditCommand::prune): Ditto.
2850         * editing/CompositeEditCommand.h:
2851         * editing/DeleteSelectionCommand.cpp:
2852         (WebCore::DeleteSelectionCommand::mergeParagraphs):
2853         (WebCore::DeleteSelectionCommand::doApply):
2854         * editing/DeleteSelectionCommand.h:
2855         * editing/ReplaceSelectionCommand.cpp:
2856         (WebCore::ReplaceSelectionCommand::doApply):
2857         * editing/ReplaceSelectionCommand.h:
2858         (WebCore::):
2859         * editing/markup.cpp:
2860         (WebCore::createMarkup): 
2861         Was crashing when passed a collapsed range.  I early return an empty string instead.
2862
2863 2006-04-04  John Sullivan  <sullivan@apple.com>
2864
2865         Reviewed by Adele Peterson.
2866         
2867         - WebCore part of <rdar://problem/4498418> "Autosaved" searchterms are saved during private browsing
2868
2869         * bridge/mac/WebCoreSettings.h:
2870         * bridge/mac/WebCoreSettings.mm:
2871         (-[WebCoreSettings setPrivateBrowsingEnabled:]):
2872         (-[WebCoreSettings privateBrowsingEnabled]):
2873         Teach WebCoreSettings about private browsing (WebKit knew, but WebCore didn't)
2874         
2875         * kwq/KWQKHTMLSettings.h:
2876         (KHTMLSettings::privateBrowsingEnabled):
2877         (KHTMLSettings::setPrivateBrowsingEnabled):
2878         Teach KHTMLSettings about private browsing
2879         
2880         * kwq/KWQLineEdit.mm:
2881         Fix wrong class in a category method declaration; the compiler didn't seem to mind.
2882         
2883         * kwq/WebCoreTextField.mm:
2884         (-[KWQSearchFieldCell _addStringToRecentSearches:]):
2885         Override this method to bail out if private browsing is enabled.
2886
2887 2006-04-04  Trey Matteson  <trey@usa.net>
2888
2889         Reviewed by Hyatt.
2890
2891         http://bugzilla.opendarwin.org/show_bug.cgi?id=7951
2892         REGRESSION: Safari crashes when printing a google map w/directions
2893
2894         Tests: none, because I believe it only happens when printing, due to the relayouts
2895
2896         * rendering/RenderTable.cpp:
2897         (WebCore::RenderTable::recalcSectionsIfNeeded): Add new utility to let the cells
2898         ensure the sections' grid data is up to date.
2899         * rendering/RenderTable.h:
2900         * rendering/RenderTableCell.cpp:
2901         (WebCore::RenderTableCell::calcMinMaxWidth):  Call above method.
2902
2903 2006-04-03  Justin Haygood <jhaygood@spsu.edu>
2904
2905         Reviewed by eseidel.  Landed by eseidel.
2906         
2907         - WIN32: maximumScroll() is the maximum scroll delta, not the maximum scroll position. Update to use
2908           the real maximum scroll position.
2909         http://bugzilla.opendarwin.org/show_bug.cgi?id=8160
2910
2911         * platform/win/ScrollViewWin.cpp:
2912         (WebCore::ScrollView::updateScrollBars):
2913
2914 2006-04-04  Eric Seidel  <eseidel@apple.com>
2915
2916         Reviewed by andersca.
2917
2918         Work-around spaces-in-pathnames issue in gnumake on win32.
2919         http://bugzilla.opendarwin.org/show_bug.cgi?id=8173
2920
2921         * WebCore.vcproj/WebCore/build-generated-files.sh:
2922
2923 2006-04-03  Darin Adler  <darin@apple.com>
2924
2925         - tried to fix build again
2926
2927         * WebCore.xcodeproj/project.pbxproj: Removed JSStyleSheet files.
2928         * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
2929
2930 2006-04-03  Darin Adler  <darin@apple.com>
2931
2932         - fixed properties on a bunch of files
2933           (removed allow-tabs and svn:executable from many)
2934
2935         * css/css_base.cpp:
2936         * html/html_headimpl.cpp:
2937         * khtml/ecma/kjs_traversal.cpp:
2938         * kwq/DeprecatedPtrListImpl.cpp:
2939         * kwq/DeprecatedValueListImpl.cpp:
2940         * loader/CachedScript.h:
2941         * platform/ArrayImpl.cpp:
2942         * platform/StringImpl.cpp:
2943         * rendering/DataRef.h:
2944         * rendering/RenderContainer.cpp:
2945         * rendering/RenderTableCell.cpp:
2946         * rendering/bidi.h:
2947         * rendering/render_list.cpp:
2948         * rendering/render_style.cpp:
2949         * rendering/table_layout.h:
2950         Converted tabs to spaces.
2951
2952 2006-04-03  Alexey Proskuryakov  <ap@nypop.com>
2953
2954         Reviewed by Darin.
2955
2956         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7118
2957           Property values with extra items do not get treated as invalid (they should)
2958
2959         Tests: fast/css/invalidation-errors.html
2960                fast/css/invalidation-errors-2.html
2961                fast/css/invalidation-errors-3.html
2962
2963         * css/CSSGrammar.y: Rollback the properties added by parseValue() when it returns false.
2964         * css/cssparser.h: Moved shorthand counting to ShorthandScope, a new class in cssparser.cpp.
2965         * css/cssparser.cpp:
2966         (WebCore::CSSParser::rollbackLastProperties): Added.
2967         (WebCore::CSSParser::parseValue): Return false if there are too many properties in the list.
2968         (WebCore::CSSParser::parseBackgroundShorthand): Use ShorthandScope.
2969         (WebCore::CSSParser::parseShorthand): Ditto.
2970         (WebCore::CSSParser::parse4Values): Ditto.
2971
2972 2006-04-03  Darin Adler  <darin@apple.com>
2973
2974         - changed StyleSheet back to hand-generated since the generated toJS
2975           function was not making the right type of wrapper for CSS style sheets
2976           (fixes failing layout tests)
2977
2978         * DerivedSources.make: Removed JSStyleSheet.h.
2979         * css/StyleSheet.idl: Removed.
2980         * khtml/ecma/kjs_css.cpp: Added DOMStyleSheet back in.
2981         * khtml/ecma/kjs_css.h: Ditto.
2982
2983 2006-04-03  Darin Adler  <darin@apple.com>
2984
2985         - fixed Macintosh build
2986
2987         * WebCore.xcodeproj/project.pbxproj: Fixed paths of some files that were absolute
2988         paths from my machine.
2989
2990 2006-04-03  Darin Adler  <darin@apple.com>
2991
2992         - try to fix Windows build
2993
2994         * WebCore.vcproj/WebCore/WebCore.vcproj: Add three new generated files as source files.
2995
2996 2006-04-03  Darin Adler  <darin@apple.com>
2997
2998         Reviewed by Maciej.
2999
3000         - get RTL right for bug http://bugzilla.opendarwin.org/show_bug.cgi?id=8106
3001           REGRESSION (NativeTextField): New text fields don't scroll to the beginning when losing focus
3002
3003         * rendering/RenderTextField.cpp: (WebCore::RenderTextField::forwardEvent):
3004         Scroll to the right if RTL.
3005
3006 2006-04-03  Darin Adler  <darin@apple.com>
3007
3008         Reviewed by Maciej.
3009
3010         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8147
3011           convert derived sources script to a Makefile
3012
3013         * DerivedSources.make: Added.
3014         * css/CSSPrimitiveValue.idl: Added.
3015         * css/Counter.idl: Added.
3016         * css/StyleSheet.idl: Added.
3017
3018         * WebCore.xcodeproj/project.pbxproj: Added new generated files, IDLs, and the makefile.
3019         * bindings/scripts/CodeGeneratorJS.pm:
3020
3021         * generate-derived-sources: Added license header. Removed most of the script, except for
3022         a single invocation of make.
3023
3024         * khtml/ecma/kjs_css.h: Removed DOMStyleSheet, DOMCSSPrimitiveValue,
3025         CSSPrimitiveValueConstructor, and DOMCounter.
3026         * khtml/ecma/kjs_css.cpp:
3027         (KJS::DOMCSSStyleSheet::DOMCSSStyleSheet): Changed to use JSStyleSheet as the base class.
3028         (KJS::DOMCSSStyleSheet::getOwnPropertySlot): Ditto.
3029         (KJS::DOMCSSValueProtoFunc::callAsFunction): Added.
3030         (KJS::toJS): Changed to use JSCSSPrimitiveValue.
3031         (KJS::DOMRGBColor::getValueProperty): Changed to call toJS instead of making a
3032         DOMCSSPrimitiveValue directly.
3033
3034 2006-04-03  Justin Garcia  <justin.garcia@apple.com>
3035
3036         Reviewed by harrison
3037         
3038         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8117>
3039         REGRESSION (NativeTextField): Drag and drop text within a text input field modifies page
3040         
3041         The frame's selection is only set after all sub-commands have been 
3042         performed.  When we send the khtmlBeforeTextInsertedEvent to the root 
3043         editable element we were using frame->selection(), which may no longer 
3044         be in the document.
3045         
3046         Had to move the construction of the ReplacementFragment to when the
3047         replace operation is applied, because endingSelection isn't the 
3048         endingSelection of the last operation when the replace operation
3049         is constructed.
3050
3051         * editing/ReplaceSelectionCommand.cpp:
3052         (WebCore::ReplacementFragment::ReplacementFragment):
3053         (WebCore::ReplaceSelectionCommand::ReplaceSelectionCommand):
3054         (WebCore::ReplaceSelectionCommand::doApply):
3055         * editing/ReplaceSelectionCommand.h:
3056
3057 2006-04-03  Beth Dakin  <bdakin@apple.com>
3058
3059         Reviewed by Hyatt.
3060
3061         Fix for <rdar://problem/4495644> crash when mousing over links at 
3062         nationalrealestateinvestors.com in 
3063         WebCore::RenderBlock::findNextLineBreak
3064
3065         This is a fix for a repro crasher where a rootLineBox had a stale 
3066         pointer to a render object.
3067
3068         * rendering/RenderFlow.cpp:
3069         (WebCore::RenderFlow::dirtyLinesFromChangedChild): Only break from 
3070         the function because of selfNeedsLayout() if we are not an inline 
3071         flow, because if we are, we will not re-layout before bad things 
3072         can happen.
3073
3074 2006-04-03  Timothy Hatcher  <timothy@apple.com>
3075
3076         Reviewed by Maciej.
3077
3078         Removing idl files and some scripts from the WebCore target to prevent
3079         them from being copied into the Resources.
3080
3081         * WebCore.xcodeproj/project.pbxproj:
3082
3083 2006-04-03  Dave Hyatt  <hyatt@apple.com>
3084
3085         Implement basic theme support on Win32.  Still much to do, but
3086         the backgrounds of buttons, textfields, checkboxes and radio
3087         controls now draw correctly.  Still work to do for the Classic look
3088         and to get the foreground defaults of the controls correct.
3089
3090         Reviewed by anders
3091
3092         * dom/Node.h:
3093         (WebCore::Node::isReadOnly):
3094         * html/HTMLInputElement.h:
3095         (WebCore::HTMLInputElement::isReadOnly):
3096         * platform/win/IntRectWin.cpp:
3097         (WebCore::IntRect::operator RECT):
3098         * rendering/RenderTheme.cpp:
3099         (WebCore::RenderTheme::isControlStyled):
3100         (WebCore::RenderTheme::stateChanged):
3101         (WebCore::RenderTheme::isReadOnly):
3102         (WebCore::RenderTheme::isHovered):
3103         * rendering/RenderTheme.h:
3104         (WebCore::RenderTheme::supportsHover):
3105         * rendering/RenderThemeMac.h:
3106         * rendering/RenderThemeMac.mm:
3107         (WebCore::RenderThemeMac::isControlStyled):
3108         * rendering/RenderThemeWin.cpp:
3109         (WebCore::m_textFieldTheme):
3110         (WebCore::RenderThemeWin::~RenderThemeWin):
3111         (WebCore::RenderThemeWin::close):
3112         (WebCore::RenderThemeWin::supportsFocus):
3113         (WebCore::RenderThemeWin::determineState):
3114         (WebCore::RenderThemeWin::getThemeData):
3115         (WebCore::RenderThemeWin::paintButton):
3116         (WebCore::RenderThemeWin::setCheckboxSize):
3117         (WebCore::RenderThemeWin::setRadioSize):
3118         (WebCore::RenderThemeWin::paintTextField):
3119         * rendering/RenderThemeWin.h:
3120         (WebCore::ThemeData::m_state):
3121         (WebCore::RenderThemeWin::supportsHover):
3122         (WebCore::RenderThemeWin::paintCheckbox):
3123         (WebCore::RenderThemeWin::paintRadio):
3124
3125 2006-04-03  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3126
3127         Reviewed by Beth.
3128
3129         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8085
3130           REGRESSION: Main menu positioned incorrectly on eia.org and fedex.com/us
3131
3132         Test: fast/dom/Element/offsetTop-table-cell.html
3133
3134         * rendering/RenderObject.cpp:
3135         (WebCore::RenderObject::offsetTop): Skip table rows when adding up
3136         the offsets, since a table cell's yPos() is relative to the table
3137         section, not the row.
3138
3139 2006-04-03  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3140
3141         Test: fast/repaint/layer-outline.html fast/repaint/layer-outline-horizontal.html
3142
3143         Reviewed by Darin.
3144
3145         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7943
3146           Layer outline does not repaint
3147
3148         * rendering/RenderLayer.cpp:
3149         (WebCore::RenderLayer::paintLayer): Use the outlineRect for the
3150         outline phase and do it only if the outlineRect isn't empty.
3151         (WebCore::RenderLayer::calculateRects): Actually add the outline width to the
3152         outline rect.
3153
3154 2006-04-03  Adele Peterson  <adele@apple.com>
3155
3156         Reviewed by Justin.
3157
3158         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8104
3159         REGRESSION (NativeTextField): New text fields should not allow pasting newlines
3160
3161         Test: fast/forms/input-truncate-newline.html
3162
3163         * html/HTMLInputElement.cpp:
3164         (WebCore::minPosition): Added helper function.
3165         (WebCore::HTMLInputElement::defaultEventHandler): Searches for /r or /n and 
3166          truncates the text to be inserted to the earliest newline.
3167
3168 2006-04-03  Alexey Proskuryakov  <ap@nypop.com>
3169
3170         Fixed a comment (forgot to save the file before the previous commit).
3171
3172         * xml/xmlhttprequest.cpp:
3173         (WebCore::XMLHttpRequest::open):
3174
3175 2006-04-03  Alexey Proskuryakov  <ap@nypop.com>
3176
3177         Reviewed by Darin.
3178
3179         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8099
3180           REGRESSION: XMLHttpRequest lowercase post requests broken
3181
3182         Test: http/tests/xmlhttprequest/methods-lower-case.html
3183
3184         * xml/xmlhttprequest.cpp:
3185         (WebCore::XMLHttpRequest::open): Uppercase some HTTP method names, to match a Firefox quirk.
3186         (WebCore::XMLHttpRequest::send): Account for the above change.
3187
3188 2006-04-02  Graham Dennis  <Graham.Dennis@gmail.com>
3189
3190         Reviewed by Darin.
3191
3192         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8032
3193           REGRESSION: Focus ring not completely redrawn after a Delete changes its size
3194
3195         * rendering/RenderObject.cpp:
3196         (WebCore::RenderObject::repaintAfterLayoutIfNeeded): When an element changes size, the
3197         delta rectangles that need to be invalidated must be inflated by the outline size to ensure
3198         that the previous outline is erased, and the space where the new outline is to be drawn is
3199         also invalidated. This behaviour is identical to the behaviour of borders that was fixed in
3200         bug 6301.
3201         * manual-tests/outline-repaint-glitch.html: Added. Manual testcase.
3202         This is just an outline version of border-repaint-glitch.html
3203
3204 2006-04-02  Trey Matteson  <trey@usa.net>
3205
3206         Reviewed by Maciej.
3207
3208         Support for fixing http://bugzilla.opendarwin.org/show_bug.cgi?id=8121
3209         REGRESSION: 404s are not displayed
3210
3211         * bridge/mac/WebCoreFrameBridge.mm:
3212         (-[WebCoreFrameBridge currentForm]): Nuke redundant nil check.
3213         (-[WebCoreFrameBridge frameElement]): Tweak to not rely on our document, which
3214         gives a correct result even at the start of our loading process.
3215         * bindings/objc/DOM.mm:
3216         (-[DOMDocument _ownerElement]): Nuke redundant nil check.
3217
3218 2006-04-02  David Kilzer  <ddkilzer@kilzer.net>
3219
3220         Reviewed by Maciej.
3221
3222         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8079
3223         REGRESSION: Redraw from page cache does not show visited links
3224
3225         * page/Frame.cpp: (WebCore::Frame::reparseConfiguration): Added back
3226         updateStyleSelector call that was removed as part of the patch for bug 7907.
3227
3228 2006-04-02  Maciej Stachowiak  <mjs@apple.com>
3229
3230         Reviewed by Hyatt.
3231
3232         - fixed <rdar://problem/4198619> REGRESSION: tabbing through links fails after hitting text field w/ sys's "tab to all controls" off
3233         - fixed <rdar://problem/4463760> REGRESSION: Can't tab from old text field (like password fields) to new text field (6811)
3234         (http://bugzilla.opendarwin.org/show_bug.cgi?id=6811)
3235         - fixed tab and shift tab don't select the right things
3236         http://bugzilla.opendarwin.org/show_bug.cgi?id=5685
3237
3238         * bridge/mac/FrameMac.mm:
3239         (WebCore::FrameMac::nextKeyViewInFrame):
3240         * bridge/mac/WebCoreFrameBridge.h:
3241
3242 2006-04-02  Darin Adler  <darin@apple.com>
3243
3244         - add a few stubs to get Windows closer to building
3245
3246         * platform/win/TemporaryLinkStubs.cpp:
3247         (WebCore::focusRingColor):
3248         (WebCore::setFocusRingColorChangeFunction):
3249         (Frame::setNeedsReapplyStyles):
3250
3251 2006-04-02  Darin Adler  <darin@apple.com>
3252
3253         - fix the build
3254
3255         * WebCore.xcodeproj/project.pbxproj: Removed a bunch of files that should not have been
3256         mentioned at all, and a bunch of others that should be in the project but not in the target.
3257
3258 2006-04-02  Darin Adler  <darin@apple.com>
3259
3260         Reviewed by Adele.
3261
3262         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8123
3263           focus ring on new text field doesn't look like the old one
3264
3265         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7685
3266           Focus ring color should change to match graphite when system theme is graphite
3267
3268         - some cleanup to how we parse user agent style sheets
3269
3270         * css/CSSValueKeywords.in: Added -webkit-focus-ring-color.
3271
3272         * css/cssstyleselector.cpp:
3273         (WebCore::parseUASheet): Parse an array of chars instead of UTF-16.
3274         Cuts the size of the style sheet in half.
3275         (WebCore::CSSStyleSelector::applyProperty): Allow negative value for
3276         outline-offset. Changed shadow parsing to use getColorFromPrimitiveValue
3277         instead of repeating the same logic.
3278         (WebCore::CSSStyleSelector::getColorFromPrimitiveValue): Added a case
3279         for the focus ring color.
3280         * rendering/render_style.h: (WebCore::RenderStyle::setOutlineOffset):
3281         Changed to allow negative values.
3282
3283         * css/html4.css: Removed a lot of excess spaces. Changed color of focus
3284         to -webkit-focus-ring-color. Changed width of focus to 5px.
3285         Added an outline-offset for <input type=text> of -2px.
3286
3287         * css/cssparser.cpp:
3288         (WebCore::CSSParser::parseValue): Added focus ring color as an outline color all
3289         the time, and as any other color when not in strict mode. I'm confused about what's
3290         best for this whole strict mode policy, and I may need advice on Hyatt to perfect
3291         this one later.
3292         (WebCore::CSSParser::parseColorFromValue): Removed code to pin r, g, and b because
3293         the functions in platform already take care of that. Kept the pinning of a, though
3294         because that's done in floating point before converting to an integer.
3295         (WebCore::CSSParser::parseShadow): Allow focus ring color when not in strict mode.
3296
3297         * bridge/mac/FrameMac.h: Eliminated the virtual detachFromView function.
3298         * bridge/mac/FrameMac.mm:
3299         (WebCore::FrameMac::FrameMac): Eliminated code to maintain the frame instances list.
3300         (WebCore::FrameMac::~FrameMac): Ditto.
3301         (WebCore::Frame::setNeedsReapplyStyles): Added.
3302
3303         * bridge/mac/WebCoreSettings.mm: (-[WebCoreSettings _updateAllViews]):
3304         * platform/mac/WebCoreTextRendererFactory.mm:
3305         (-[WebCoreTextRendererFactory clearCaches]):
3306         Changed to call the new Page::setNeedsReapplyStylesForSettingsChange instead of using the
3307         obsolete Frame::instances.
3308
3309         * page/Frame.h: Removed instances, mutableInstances, and detachFromView.
3310         * page/Frame.cpp: Ditto.
3311
3312         * page/FrameTree.cpp:
3313         (WebCore::FrameTree::~FrameTree): Call setView(0) instead of detachFromView().
3314         (WebCore::FrameTree::removeChild): Ditto.
3315
3316         * page/Page.h:
3317         * page/Page.cpp:
3318         (WebCore::Page::init): Added a set of pages instead of a page count. Also
3319         register a function for when the focus ring color changes the first time this
3320         is called.
3321         (WebCore::Page::~Page): Call setView(0) instead of detachFromView. Also update
3322         to manager the set of pages.
3323         (WebCore::Page::setNeedsReapplyStyles): Call setNeedsReapplyStyles on all frames.
3324         (WebCore::Page::setNeedsReapplyStylesForSettingsChange): Call setNeedsReapplyStyles
3325         on all frames with the passed-in settings.
3326
3327         * css/make-css-file-arrays.pl: Changed to run the C preprocessor on the
3328         input files and to generate an array of char instead of unsigned short.
3329
3330         * platform/PlatformString.h: Added a constructor that takes a char* and
3331         a length.
3332         * platform/String.cpp: (WebCore::String::String): Ditto.
3333
3334         * WebCore.xcodeproj/project.pbxproj: Just some tweaks; adding in a few files like
3335         the user agent style sheets.
3336
3337         * platform/Color.h: Removed all use of DeprecatedString. Cleaned up a bit.
3338         Added focusRingColor and setFocusRingColorChangeFunction.
3339         * platform/Color.cpp:
3340         (WebCore::makeRGB): Rewrote using max and min.
3341         (WebCore::makeRGBA): Ditto.
3342         (WebCore::parseHexColor): Cleaned up a bit; changed partway to String instead of
3343         DeprecatedString.
3344         (WebCore::Color::Color): Changed to use String and to call setNamedColor to save code.
3345         (WebCore::Color::setNamedColor): Changed to use String in the interface.
3346
3347         * platform/mac/ColorMac.mm:
3348         (WebCore::observeTheme): Added. Function used to start up the observer.
3349         (WebCore::setFocusRingColorChangeFunction): Added. Used to get a call back so we can
3350         update all the views when the color changes (including recomputing style to get the
3351         color change in).
3352         (WebCore::setFocusRingColorChangeFunction): Added. Returns one of the two focus
3353         ring colors. Both of these match what AppKit uses -- neither matches what we used
3354         to have in the html4.css file.
3355         (+[WebCoreControlTintObserver controlTintDidChange]): Added. Used to update when
3356         the appearance is changed from blue to graphite and back. We keep a global so we
3357         don't have to call over to AppKit every time; that's probably overkill but we need
3358         the obsever for the color change function anyway.
3359
3360 2006-04-02  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3361
3362         Test: fast/inline-block/overflow-clip.html
3363
3364         Reviewed by Darin.
3365
3366         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8118
3367           REGRESSION (r13595): Inline block's clipped overflow increases table row height
3368
3369         * rendering/render_line.cpp:
3370         (WebCore::InlineFlowBox::placeBoxesVertically): Don't look at interior overflow
3371         when calculating the contribution to the inline's vertical overflows.
3372
3373 2006-04-02  Eric Seidel  <eseidel@apple.com>
3374
3375         Reviewed by andersca.
3376
3377         Make WebCore safe against KJS::Node in JavaScriptCore private headers.
3378
3379         * editing/ReplaceSelectionCommand.h:
3380         * khtml/ecma/JSXMLSerializer.cpp:
3381         (KJS::XMLSerializerProtoFunc::callAsFunction):
3382         * khtml/ecma/JSXSLTProcessor.cpp:
3383         (KJS::XSLTProcessorProtoFunc::callAsFunction):
3384         * khtml/ecma/kjs_binding.cpp:
3385         (KJS::ScriptInterpreter::forgetDOMNodeForDocument):
3386         (KJS::ScriptInterpreter::putDOMNodeForDocument):
3387         * khtml/ecma/kjs_dom.cpp:
3388         (KJS::DOMNode::DOMNode):
3389         (KJS::DOMNode::mark):
3390         (KJS::DOMNode::getValueProperty):
3391         (KJS::DOMNode::putValueProperty):
3392         (KJS::DOMNodeProtoFunc::callAsFunction):
3393         (KJS::toNode):
3394         (KJS::DOMEventTargetNode::DOMEventTargetNode):
3395         (KJS::DOMDocumentProtoFunc::callAsFunction):
3396         (KJS::DOMElement::putValueProperty):
3397         (KJS::DOMElementProtoFunc::callAsFunction):
3398         (KJS::checkNodeSecurity):
3399         (KJS::toJS):
3400         (KJS::getRuntimeObject):
3401         (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
3402         (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
3403         * khtml/ecma/kjs_events.cpp:
3404         (KJS::JSLazyEventListener::JSLazyEventListener):
3405         (KJS::ClipboardProtoFunc::callAsFunction):
3406         * khtml/ecma/kjs_html.cpp:
3407         (KJS::JSHTMLDocument::namedItemGetter):
3408         (KJS::JSHTMLElement::framesetNameGetter):
3409         (KJS::JSHTMLElement::getOwnPropertySlot):
3410         (KJS::JSHTMLElement::pushEventHandlerScope):
3411         (KJS::JSHTMLCollection::callAsFunction):
3412         (KJS::JSHTMLCollection::getNamedItems):
3413         (KJS::JSHTMLSelectCollection::put):
3414         * khtml/ecma/kjs_traversal.cpp:
3415         (KJS::JSNodeFilterCondition::acceptNode):
3416         * khtml/ecma/kjs_window.cpp:
3417         (KJS::Window::put):
3418         * kwq/KWQPageState.mm:
3419         (-[KWQPageState WebCore::]):
3420
3421 2006-04-01  Darin Adler  <darin@apple.com>
3422
3423         Reviewed by Eric.
3424
3425         - removed a bunch of unneeded ForwardingHeaders and WebCore+SVG headers
3426
3427         * ForwardingHeaders/kcanvas: Removed.
3428         * ForwardingHeaders/kcanvas/KCanvas.h: Removed.
3429         * ForwardingHeaders/kdom: Removed.
3430         * ForwardingHeaders/kdom/DOMString.h: Removed.
3431         * ForwardingHeaders/kdom/Helper.h: Removed.
3432         * ForwardingHeaders/kdom/KDOMSettings.h: Removed.
3433         * ForwardingHeaders/kdom/Namespace.h: Removed.
3434         * ForwardingHeaders/kdom/cache: Removed.
3435         * ForwardingHeaders/kdom/cache/KDOMCachedImage.h: Removed.
3436         * ForwardingHeaders/kdom/cache/KDOMCachedObject.h: Removed.
3437         * ForwardingHeaders/kdom/cache/KDOMCachedObjectClient.h: Removed.
3438         * ForwardingHeaders/kdom/cache/KDOMCachedScript.h: Removed.
3439         * ForwardingHeaders/kdom/cache/KDOMLoader.h: Removed.
3440         * ForwardingHeaders/kdom/core: Removed.
3441         * ForwardingHeaders/kdom/core/DOMConfiguration.h: Removed.
3442         * ForwardingHeaders/kdom/core/DOMException.h: Removed.
3443         * ForwardingHeaders/kdom/core/DOMList.h: Removed.
3444         * ForwardingHeaders/kdom/core/DOMString.h: Removed.
3445         * ForwardingHeaders/kdom/core/NamedAttrMap.h: Removed.
3446         * ForwardingHeaders/kdom/core/ProcessingInstruction.h: Removed.
3447         * ForwardingHeaders/kdom/core/domattrs.h: Removed.
3448         * ForwardingHeaders/kdom/ecma: Removed.
3449         * ForwardingHeaders/kdom/ecma/GlobalObject.h: Removed.
3450         * ForwardingHeaders/kdom/events: Removed.
3451         * ForwardingHeaders/kdom/events/Event.h: Removed.
3452         * ForwardingHeaders/kdom/events/EventListener.h: Removed.
3453         * ForwardingHeaders/kdom/events/EventTarget.h: Removed.
3454         * ForwardingHeaders/kdom/events/KeyboardEvent.h: Removed.
3455         * ForwardingHeaders/kdom/events/MouseEvent.h: Removed.
3456         * ForwardingHeaders/kdom/events/UIEvent.h: Removed.
3457         * ForwardingHeaders/kdom/events/kdomevents.h: Removed.
3458         * ForwardingHeaders/kdom/kdom.h: Removed.
3459         * ForwardingHeaders/kdom/parser: Removed.
3460         * ForwardingHeaders/kdom/parser/KDOMParser.h: Removed.
3461         * ForwardingHeaders/ksvg2: Removed.
3462         * ForwardingHeaders/ksvg2/KSVGPart.h: Removed.
3463         * ForwardingHeaders/ksvg2/KSVGView.h: Removed.
3464         * ForwardingHeaders/ksvg2/css: Removed.
3465         * ForwardingHeaders/ksvg2/css/CSSPropertyNames.h: Removed.
3466         * ForwardingHeaders/ksvg2/css/CSSValueKeywords.h: Removed.
3467         * WebCore+SVG/KDOMHeaders.h: Removed.
3468         * WebCore+SVG/Namespace.h: Removed.
3469         * WebCore+SVG/kdom.h: Removed.
3470
3471         * WebCore.xcodeproj/project.pbxproj: Removed headers.
3472
3473         * kcanvas/KCanvasCreator.cpp:
3474         * kcanvas/KCanvasResources.cpp:
3475         * kcanvas/KCanvasTreeDebug.cpp:
3476         * kcanvas/RenderPath.cpp:
3477         * kcanvas/RenderSVGImage.cpp:
3478         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
3479         * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
3480         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
3481         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
3482         * ksvg2/css/SVGCSSStyleSelector.cpp:
3483         * ksvg2/events/SVGZoomEvent.h:
3484         * ksvg2/misc/KCanvasRenderingStyle.cpp:
3485         * ksvg2/misc/KSVGTimeScheduler.cpp:
3486         * ksvg2/misc/SVGImageLoader.cpp:
3487         * ksvg2/svg/SVGAElement.cpp:
3488         * ksvg2/svg/SVGAnimationElement.cpp:
3489         * ksvg2/svg/SVGCircleElement.cpp:
3490         * ksvg2/svg/SVGClipPathElement.cpp:
3491         * ksvg2/svg/SVGCursorElement.cpp:
3492         * ksvg2/svg/SVGCursorElement.h:
3493         * ksvg2/svg/SVGDOMImplementation.cpp: